const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/editor.main-Bvo9zIz-.js","assets/editor-DaTjv5g2.css","assets/codemirror-6RySw9bp.js","assets/codemirror-BikBsHz5.js","assets/javascript-BS6vv-xd.js","assets/htmlmixed-MX3Ck7D9.js","assets/simple-CYFXgNJN.js","assets/multiplex-Cq5OaIXI.js","assets/placeholder-CUlgbPkY.js","assets/Calendar-BpoT8iCg.js","assets/InputDate-pRnC2b9H.js","assets/CRUD-0sLzcv72.js","assets/omitBy-DA1lyzex.js","assets/CRUD2-mUp6pAhs.js","assets/Select-Vga2CY3Y.js","assets/Transfer-BzS7I0rL.js","assets/InputMonthRange-EL0jOWmP.js","assets/InputDateRange-88pd9AIh.js","assets/InputQuarterRange-fUc0-XRm.js","assets/InputYearRange-Dg-Cne6D.js","assets/InputArray-C5SQMAtW.js","assets/Combo-D94rAX9v.js","assets/TransferPicker-BVo8W4ph.js","assets/TabsTransfer-DSMPYBpk.js","assets/TabsTransferPicker-DjhaMOjM.js","assets/index-COFmONFF.js","assets/ColumnToggler-B-qSUVJW.js"])))=>i.map(i=>d[i]);
var iSe=Object.defineProperty;var oSe=(x_,eme,$P)=>eme in x_?iSe(x_,eme,{enumerable:!0,configurable:!0,writable:!0,value:$P}):x_[eme]=$P;var l6e=(x_,eme,$P)=>oSe(x_,typeof eme!="symbol"?eme+"":eme,$P);function _mergeNamespaces(x_,eme){for(var $P=0;$P<eme.length;$P++){const tme=eme[$P];if(typeof tme!="string"&&!Array.isArray(tme)){for(const ame in tme)if(ame!=="default"&&!(ame in x_)){const nme=Object.getOwnPropertyDescriptor(tme,ame);nme&&Object.defineProperty(x_,ame,nme.get?nme:{enumerable:!0,get:()=>tme[ame]})}}}return Object.freeze(Object.defineProperty(x_,Symbol.toStringTag,{value:"Module"}))}(function(){const eme=document.createElement("link").relList;if(eme&&eme.supports&&eme.supports("modulepreload"))return;for(const ame of document.querySelectorAll('link[rel="modulepreload"]'))tme(ame);new MutationObserver(ame=>{for(const nme of ame)if(nme.type==="childList")for(const rme of nme.addedNodes)rme.tagName==="LINK"&&rme.rel==="modulepreload"&&tme(rme)}).observe(document,{childList:!0,subtree:!0});function $P(ame){const nme={};return ame.integrity&&(nme.integrity=ame.integrity),ame.referrerPolicy&&(nme.referrerPolicy=ame.referrerPolicy),ame.crossOrigin==="use-credentials"?nme.credentials="include":ame.crossOrigin==="anonymous"?nme.credentials="omit":nme.credentials="same-origin",nme}function tme(ame){if(ame.ep)return;ame.ep=!0;const nme=$P(ame);fetch(ame.href,nme)}})();var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(x_){return x_&&x_.__esModule&&Object.prototype.hasOwnProperty.call(x_,"default")?x_.default:x_}function getAugmentedNamespace(x_){if(x_.__esModule)return x_;var eme=x_.default;if(typeof eme=="function"){var $P=function tme(){return this instanceof tme?Reflect.construct(eme,arguments,this.constructor):eme.apply(this,arguments)};$P.prototype=eme.prototype}else $P={};return Object.defineProperty($P,"__esModule",{value:!0}),Object.keys(x_).forEach(function(tme){var ame=Object.getOwnPropertyDescriptor(x_,tme);Object.defineProperty($P,tme,ame.get?ame:{enumerable:!0,get:function(){return x_[tme]}})}),$P}var react={exports:{}},react_production_min={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$w=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject$1(x_){if(x_==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(x_)}function shouldUseNative(){try{if(!Object.assign)return!1;var x_=new String("abc");if(x_[5]="de",Object.getOwnPropertyNames(x_)[0]==="5")return!1;for(var eme={},$P=0;$P<10;$P++)eme["_"+String.fromCharCode($P)]=$P;var tme=Object.getOwnPropertyNames(eme).map(function(nme){return eme[nme]});if(tme.join("")!=="0123456789")return!1;var ame={};return"abcdefghijklmnopqrst".split("").forEach(function(nme){ame[nme]=nme}),Object.keys(Object.assign({},ame)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var objectAssign=shouldUseNative()?Object.assign:function(x_,eme){for(var $P,tme=toObject$1(x_),ame,nme=1;nme<arguments.length;nme++){$P=Object(arguments[nme]);for(var rme in $P)hasOwnProperty$w.call($P,rme)&&(tme[rme]=$P[rme]);if(getOwnPropertySymbols){ame=getOwnPropertySymbols($P);for(var ime=0;ime<ame.length;ime++)propIsEnumerable.call($P,ame[ime])&&(tme[ame[ime]]=$P[ame[ime]])}}return tme};/** @license React v17.0.2
 * 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 l$4=objectAssign,n$6=60103,p$4=60106;react_production_min.Fragment=60107;react_production_min.StrictMode=60108;react_production_min.Profiler=60114;var q$4=60109,r$6=60110,t$4=60112;react_production_min.Suspense=60113;var u$4=60115,v$3=60116;if(typeof Symbol=="function"&&Symbol.for){var w$2=Symbol.for;n$6=w$2("react.element"),p$4=w$2("react.portal"),react_production_min.Fragment=w$2("react.fragment"),react_production_min.StrictMode=w$2("react.strict_mode"),react_production_min.Profiler=w$2("react.profiler"),q$4=w$2("react.provider"),r$6=w$2("react.context"),t$4=w$2("react.forward_ref"),react_production_min.Suspense=w$2("react.suspense"),u$4=w$2("react.memo"),v$3=w$2("react.lazy")}var x$2=typeof Symbol=="function"&&Symbol.iterator;function y$3(x_){return x_===null||typeof x_!="object"?null:(x_=x$2&&x_[x$2]||x_["@@iterator"],typeof x_=="function"?x_:null)}function z$2(x_){for(var eme="https://reactjs.org/docs/error-decoder.html?invariant="+x_,$P=1;$P<arguments.length;$P++)eme+="&args[]="+encodeURIComponent(arguments[$P]);return"Minified React error #"+x_+"; visit "+eme+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var A$2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B$3={};function C$2(x_,eme,$P){this.props=x_,this.context=eme,this.refs=B$3,this.updater=$P||A$2}C$2.prototype.isReactComponent={};C$2.prototype.setState=function(x_,eme){if(typeof x_!="object"&&typeof x_!="function"&&x_!=null)throw Error(z$2(85));this.updater.enqueueSetState(this,x_,eme,"setState")};C$2.prototype.forceUpdate=function(x_){this.updater.enqueueForceUpdate(this,x_,"forceUpdate")};function D$3(){}D$3.prototype=C$2.prototype;function E$3(x_,eme,$P){this.props=x_,this.context=eme,this.refs=B$3,this.updater=$P||A$2}var F$3=E$3.prototype=new D$3;F$3.constructor=E$3;l$4(F$3,C$2.prototype);F$3.isPureReactComponent=!0;var G$3={current:null},H$3=Object.prototype.hasOwnProperty,I$3={key:!0,ref:!0,__self:!0,__source:!0};function J$1(x_,eme,$P){var tme,ame={},nme=null,rme=null;if(eme!=null)for(tme in eme.ref!==void 0&&(rme=eme.ref),eme.key!==void 0&&(nme=""+eme.key),eme)H$3.call(eme,tme)&&!I$3.hasOwnProperty(tme)&&(ame[tme]=eme[tme]);var ime=arguments.length-2;if(ime===1)ame.children=$P;else if(1<ime){for(var ome=Array(ime),lme=0;lme<ime;lme++)ome[lme]=arguments[lme+2];ame.children=ome}if(x_&&x_.defaultProps)for(tme in ime=x_.defaultProps,ime)ame[tme]===void 0&&(ame[tme]=ime[tme]);return{$$typeof:n$6,type:x_,key:nme,ref:rme,props:ame,_owner:G$3.current}}function K$1(x_,eme){return{$$typeof:n$6,type:x_.type,key:eme,ref:x_.ref,props:x_.props,_owner:x_._owner}}function L$1(x_){return typeof x_=="object"&&x_!==null&&x_.$$typeof===n$6}function escape$4(x_){var eme={"=":"=0",":":"=2"};return"$"+x_.replace(/[=:]/g,function($P){return eme[$P]})}var M$2=/\/+/g;function N$2(x_,eme){return typeof x_=="object"&&x_!==null&&x_.key!=null?escape$4(""+x_.key):eme.toString(36)}function O$2(x_,eme,$P,tme,ame){var nme=typeof x_;(nme==="undefined"||nme==="boolean")&&(x_=null);var rme=!1;if(x_===null)rme=!0;else switch(nme){case"string":case"number":rme=!0;break;case"object":switch(x_.$$typeof){case n$6:case p$4:rme=!0}}if(rme)return rme=x_,ame=ame(rme),x_=tme===""?"."+N$2(rme,0):tme,Array.isArray(ame)?($P="",x_!=null&&($P=x_.replace(M$2,"$&/")+"/"),O$2(ame,eme,$P,"",function(lme){return lme})):ame!=null&&(L$1(ame)&&(ame=K$1(ame,$P+(!ame.key||rme&&rme.key===ame.key?"":(""+ame.key).replace(M$2,"$&/")+"/")+x_)),eme.push(ame)),1;if(rme=0,tme=tme===""?".":tme+":",Array.isArray(x_))for(var ime=0;ime<x_.length;ime++){nme=x_[ime];var ome=tme+N$2(nme,ime);rme+=O$2(nme,eme,$P,ome,ame)}else if(ome=y$3(x_),typeof ome=="function")for(x_=ome.call(x_),ime=0;!(nme=x_.next()).done;)nme=nme.value,ome=tme+N$2(nme,ime++),rme+=O$2(nme,eme,$P,ome,ame);else if(nme==="object")throw eme=""+x_,Error(z$2(31,eme==="[object Object]"?"object with keys {"+Object.keys(x_).join(", ")+"}":eme));return rme}function P$2(x_,eme,$P){if(x_==null)return x_;var tme=[],ame=0;return O$2(x_,tme,"","",function(nme){return eme.call($P,nme,ame++)}),tme}function Q$1(x_){if(x_._status===-1){var eme=x_._result;eme=eme(),x_._status=0,x_._result=eme,eme.then(function($P){x_._status===0&&($P=$P.default,x_._status=1,x_._result=$P)},function($P){x_._status===0&&(x_._status=2,x_._result=$P)})}if(x_._status===1)return x_._result;throw x_._result}var R$2={current:null};function S$2(){var x_=R$2.current;if(x_===null)throw Error(z$2(321));return x_}var T$2={ReactCurrentDispatcher:R$2,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G$3,IsSomeRendererActing:{current:!1},assign:l$4};react_production_min.Children={map:P$2,forEach:function(x_,eme,$P){P$2(x_,function(){eme.apply(this,arguments)},$P)},count:function(x_){var eme=0;return P$2(x_,function(){eme++}),eme},toArray:function(x_){return P$2(x_,function(eme){return eme})||[]},only:function(x_){if(!L$1(x_))throw Error(z$2(143));return x_}};react_production_min.Component=C$2;react_production_min.PureComponent=E$3;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T$2;react_production_min.cloneElement=function(x_,eme,$P){if(x_==null)throw Error(z$2(267,x_));var tme=l$4({},x_.props),ame=x_.key,nme=x_.ref,rme=x_._owner;if(eme!=null){if(eme.ref!==void 0&&(nme=eme.ref,rme=G$3.current),eme.key!==void 0&&(ame=""+eme.key),x_.type&&x_.type.defaultProps)var ime=x_.type.defaultProps;for(ome in eme)H$3.call(eme,ome)&&!I$3.hasOwnProperty(ome)&&(tme[ome]=eme[ome]===void 0&&ime!==void 0?ime[ome]:eme[ome])}var ome=arguments.length-2;if(ome===1)tme.children=$P;else if(1<ome){ime=Array(ome);for(var lme=0;lme<ome;lme++)ime[lme]=arguments[lme+2];tme.children=ime}return{$$typeof:n$6,type:x_.type,key:ame,ref:nme,props:tme,_owner:rme}};react_production_min.createContext=function(x_,eme){return eme===void 0&&(eme=null),x_={$$typeof:r$6,_calculateChangedBits:eme,_currentValue:x_,_currentValue2:x_,_threadCount:0,Provider:null,Consumer:null},x_.Provider={$$typeof:q$4,_context:x_},x_.Consumer=x_};react_production_min.createElement=J$1;react_production_min.createFactory=function(x_){var eme=J$1.bind(null,x_);return eme.type=x_,eme};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(x_){return{$$typeof:t$4,render:x_}};react_production_min.isValidElement=L$1;react_production_min.lazy=function(x_){return{$$typeof:v$3,_payload:{_status:-1,_result:x_},_init:Q$1}};react_production_min.memo=function(x_,eme){return{$$typeof:u$4,type:x_,compare:eme===void 0?null:eme}};react_production_min.useCallback=function(x_,eme){return S$2().useCallback(x_,eme)};react_production_min.useContext=function(x_,eme){return S$2().useContext(x_,eme)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(x_,eme){return S$2().useEffect(x_,eme)};react_production_min.useImperativeHandle=function(x_,eme,$P){return S$2().useImperativeHandle(x_,eme,$P)};react_production_min.useLayoutEffect=function(x_,eme){return S$2().useLayoutEffect(x_,eme)};react_production_min.useMemo=function(x_,eme){return S$2().useMemo(x_,eme)};react_production_min.useReducer=function(x_,eme,$P){return S$2().useReducer(x_,eme,$P)};react_production_min.useRef=function(x_){return S$2().useRef(x_)};react_production_min.useState=function(x_){return S$2().useState(x_)};react_production_min.version="17.0.2";react.exports=react_production_min;var reactExports=react.exports;const React__default=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React__default},[reactExports]);var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** @license React v0.20.2
 * 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(x_){var eme,$P,tme,ame;if(typeof performance=="object"&&typeof performance.now=="function"){var nme=performance;x_.unstable_now=function(){return nme.now()}}else{var rme=Date,ime=rme.now();x_.unstable_now=function(){return rme.now()-ime}}if(typeof window>"u"||typeof MessageChannel!="function"){var ome=null,lme=null,sme=function(){if(ome!==null)try{var Dme=x_.unstable_now();ome(!0,Dme),ome=null}catch(jme){throw setTimeout(sme,0),jme}};eme=function(Dme){ome!==null?setTimeout(eme,0,Dme):(ome=Dme,setTimeout(sme,0))},$P=function(Dme,jme){lme=setTimeout(Dme,jme)},tme=function(){clearTimeout(lme)},x_.unstable_shouldYield=function(){return!1},ame=x_.unstable_forceFrameRate=function(){}}else{var cme=window.setTimeout,dme=window.clearTimeout;if(typeof console<"u"){var ume=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof ume!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var fme=!1,pme=null,hme=-1,bme=5,mme=0;x_.unstable_shouldYield=function(){return x_.unstable_now()>=mme},ame=function(){},x_.unstable_forceFrameRate=function(Dme){0>Dme||125<Dme?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):bme=0<Dme?Math.floor(1e3/Dme):5};var vme=new MessageChannel,gme=vme.port2;vme.port1.onmessage=function(){if(pme!==null){var Dme=x_.unstable_now();mme=Dme+bme;try{pme(!0,Dme)?gme.postMessage(null):(fme=!1,pme=null)}catch(jme){throw gme.postMessage(null),jme}}else fme=!1},eme=function(Dme){pme=Dme,fme||(fme=!0,gme.postMessage(null))},$P=function(Dme,jme){hme=cme(function(){Dme(x_.unstable_now())},jme)},tme=function(){dme(hme),hme=-1}}function yme(Dme,jme){var Vme=Dme.length;Dme.push(jme);e:for(;;){var Wme=Vme-1>>>1,Lme=Dme[Wme];if(Lme!==void 0&&0<Cme(Lme,jme))Dme[Wme]=jme,Dme[Vme]=Lme,Vme=Wme;else break e}}function _me(Dme){return Dme=Dme[0],Dme===void 0?null:Dme}function $me(Dme){var jme=Dme[0];if(jme!==void 0){var Vme=Dme.pop();if(Vme!==jme){Dme[0]=Vme;e:for(var Wme=0,Lme=Dme.length;Wme<Lme;){var zme=2*(Wme+1)-1,Ume=Dme[zme],Gme=zme+1,Jme=Dme[Gme];if(Ume!==void 0&&0>Cme(Ume,Vme))Jme!==void 0&&0>Cme(Jme,Ume)?(Dme[Wme]=Jme,Dme[Gme]=Vme,Wme=Gme):(Dme[Wme]=Ume,Dme[zme]=Vme,Wme=zme);else if(Jme!==void 0&&0>Cme(Jme,Vme))Dme[Wme]=Jme,Dme[Gme]=Vme,Wme=Gme;else break e}}return jme}return null}function Cme(Dme,jme){var Vme=Dme.sortIndex-jme.sortIndex;return Vme!==0?Vme:Dme.id-jme.id}var Sme=[],Eme=[],xme=1,Tme=null,Ome=3,Rme=!1,Nme=!1,Ime=!1;function Pme(Dme){for(var jme=_me(Eme);jme!==null;){if(jme.callback===null)$me(Eme);else if(jme.startTime<=Dme)$me(Eme),jme.sortIndex=jme.expirationTime,yme(Sme,jme);else break;jme=_me(Eme)}}function Mme(Dme){if(Ime=!1,Pme(Dme),!Nme)if(_me(Sme)!==null)Nme=!0,eme(kme);else{var jme=_me(Eme);jme!==null&&$P(Mme,jme.startTime-Dme)}}function kme(Dme,jme){Nme=!1,Ime&&(Ime=!1,tme()),Rme=!0;var Vme=Ome;try{for(Pme(jme),Tme=_me(Sme);Tme!==null&&(!(Tme.expirationTime>jme)||Dme&&!x_.unstable_shouldYield());){var Wme=Tme.callback;if(typeof Wme=="function"){Tme.callback=null,Ome=Tme.priorityLevel;var Lme=Wme(Tme.expirationTime<=jme);jme=x_.unstable_now(),typeof Lme=="function"?Tme.callback=Lme:Tme===_me(Sme)&&$me(Sme),Pme(jme)}else $me(Sme);Tme=_me(Sme)}if(Tme!==null)var zme=!0;else{var Ume=_me(Eme);Ume!==null&&$P(Mme,Ume.startTime-jme),zme=!1}return zme}finally{Tme=null,Ome=Vme,Rme=!1}}var Bme=ame;x_.unstable_IdlePriority=5,x_.unstable_ImmediatePriority=1,x_.unstable_LowPriority=4,x_.unstable_NormalPriority=3,x_.unstable_Profiling=null,x_.unstable_UserBlockingPriority=2,x_.unstable_cancelCallback=function(Dme){Dme.callback=null},x_.unstable_continueExecution=function(){Nme||Rme||(Nme=!0,eme(kme))},x_.unstable_getCurrentPriorityLevel=function(){return Ome},x_.unstable_getFirstCallbackNode=function(){return _me(Sme)},x_.unstable_next=function(Dme){switch(Ome){case 1:case 2:case 3:var jme=3;break;default:jme=Ome}var Vme=Ome;Ome=jme;try{return Dme()}finally{Ome=Vme}},x_.unstable_pauseExecution=function(){},x_.unstable_requestPaint=Bme,x_.unstable_runWithPriority=function(Dme,jme){switch(Dme){case 1:case 2:case 3:case 4:case 5:break;default:Dme=3}var Vme=Ome;Ome=Dme;try{return jme()}finally{Ome=Vme}},x_.unstable_scheduleCallback=function(Dme,jme,Vme){var Wme=x_.unstable_now();switch(typeof Vme=="object"&&Vme!==null?(Vme=Vme.delay,Vme=typeof Vme=="number"&&0<Vme?Wme+Vme:Wme):Vme=Wme,Dme){case 1:var Lme=-1;break;case 2:Lme=250;break;case 5:Lme=1073741823;break;case 4:Lme=1e4;break;default:Lme=5e3}return Lme=Vme+Lme,Dme={id:xme++,callback:jme,priorityLevel:Dme,startTime:Vme,expirationTime:Lme,sortIndex:-1},Vme>Wme?(Dme.sortIndex=Vme,yme(Eme,Dme),_me(Sme)===null&&Dme===_me(Eme)&&(Ime?tme():Ime=!0,$P(Mme,Vme-Wme))):(Dme.sortIndex=Lme,yme(Sme,Dme),Nme||Rme||(Nme=!0,eme(kme))),Dme},x_.unstable_wrapCallback=function(Dme){var jme=Ome;return function(){var Vme=Ome;Ome=jme;try{return Dme.apply(this,arguments)}finally{Ome=Vme}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** @license React v17.0.2
 * 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 aa$1=reactExports,m$4=objectAssign,r$5=schedulerExports;function y$2(x_){for(var eme="https://reactjs.org/docs/error-decoder.html?invariant="+x_,$P=1;$P<arguments.length;$P++)eme+="&args[]="+encodeURIComponent(arguments[$P]);return"Minified React error #"+x_+"; visit "+eme+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa$1)throw Error(y$2(227));var ba$1=new Set,ca$1={};function da$1(x_,eme){ea$1(x_,eme),ea$1(x_+"Capture",eme)}function ea$1(x_,eme){for(ca$1[x_]=eme,x_=0;x_<eme.length;x_++)ba$1.add(eme[x_])}var fa$1=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ha$1=/^[: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]*$/,ia$1=Object.prototype.hasOwnProperty,ja$1={},ka$1={};function la$1(x_){return ia$1.call(ka$1,x_)?!0:ia$1.call(ja$1,x_)?!1:ha$1.test(x_)?ka$1[x_]=!0:(ja$1[x_]=!0,!1)}function ma$1(x_,eme,$P,tme){if($P!==null&&$P.type===0)return!1;switch(typeof eme){case"function":case"symbol":return!0;case"boolean":return tme?!1:$P!==null?!$P.acceptsBooleans:(x_=x_.toLowerCase().slice(0,5),x_!=="data-"&&x_!=="aria-");default:return!1}}function na$1(x_,eme,$P,tme){if(eme===null||typeof eme>"u"||ma$1(x_,eme,$P,tme))return!0;if(tme)return!1;if($P!==null)switch($P.type){case 3:return!eme;case 4:return eme===!1;case 5:return isNaN(eme);case 6:return isNaN(eme)||1>eme}return!1}function B$2(x_,eme,$P,tme,ame,nme,rme){this.acceptsBooleans=eme===2||eme===3||eme===4,this.attributeName=tme,this.attributeNamespace=ame,this.mustUseProperty=$P,this.propertyName=x_,this.type=eme,this.sanitizeURL=nme,this.removeEmptyString=rme}var D$2={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(x_){D$2[x_]=new B$2(x_,0,!1,x_,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(x_){var eme=x_[0];D$2[eme]=new B$2(eme,1,!1,x_[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(x_){D$2[x_]=new B$2(x_,2,!1,x_,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(x_){D$2[x_]=new B$2(x_,3,!1,x_.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(x_){D$2[x_]=new B$2(x_,3,!0,x_,null,!1,!1)});["capture","download"].forEach(function(x_){D$2[x_]=new B$2(x_,4,!1,x_,null,!1,!1)});["cols","rows","size","span"].forEach(function(x_){D$2[x_]=new B$2(x_,6,!1,x_,null,!1,!1)});["rowSpan","start"].forEach(function(x_){D$2[x_]=new B$2(x_,5,!1,x_.toLowerCase(),null,!1,!1)});var oa$1=/[\-:]([a-z])/g;function pa$1(x_){return x_[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(x_){var eme=x_.replace(oa$1,pa$1);D$2[eme]=new B$2(eme,1,!1,x_,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(x_){var eme=x_.replace(oa$1,pa$1);D$2[eme]=new B$2(eme,1,!1,x_,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(x_){var eme=x_.replace(oa$1,pa$1);D$2[eme]=new B$2(eme,1,!1,x_,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!1,!1)});D$2.xlinkHref=new B$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(x_){D$2[x_]=new B$2(x_,1,!1,x_.toLowerCase(),null,!0,!0)});function qa$1(x_,eme,$P,tme){var ame=D$2.hasOwnProperty(eme)?D$2[eme]:null,nme=ame!==null?ame.type===0:tme?!1:!(!(2<eme.length)||eme[0]!=="o"&&eme[0]!=="O"||eme[1]!=="n"&&eme[1]!=="N");nme||(na$1(eme,$P,ame,tme)&&($P=null),tme||ame===null?la$1(eme)&&($P===null?x_.removeAttribute(eme):x_.setAttribute(eme,""+$P)):ame.mustUseProperty?x_[ame.propertyName]=$P===null?ame.type===3?!1:"":$P:(eme=ame.attributeName,tme=ame.attributeNamespace,$P===null?x_.removeAttribute(eme):(ame=ame.type,$P=ame===3||ame===4&&$P===!0?"":""+$P,tme?x_.setAttributeNS(tme,eme,$P):x_.setAttribute(eme,$P))))}var ra$1=aa$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sa$1=60103,ta$1=60106,ua$1=60107,wa$1=60108,xa$1=60114,ya$1=60109,za$1=60110,Aa$1=60112,Ba$1=60113,Ca$1=60120,Da$1=60115,Ea$1=60116,Fa$1=60121,Ga$1=60128,Ha$1=60129,Ia$1=60130,Ja$1=60131;if(typeof Symbol=="function"&&Symbol.for){var E$2=Symbol.for;sa$1=E$2("react.element"),ta$1=E$2("react.portal"),ua$1=E$2("react.fragment"),wa$1=E$2("react.strict_mode"),xa$1=E$2("react.profiler"),ya$1=E$2("react.provider"),za$1=E$2("react.context"),Aa$1=E$2("react.forward_ref"),Ba$1=E$2("react.suspense"),Ca$1=E$2("react.suspense_list"),Da$1=E$2("react.memo"),Ea$1=E$2("react.lazy"),Fa$1=E$2("react.block"),E$2("react.scope"),Ga$1=E$2("react.opaque.id"),Ha$1=E$2("react.debug_trace_mode"),Ia$1=E$2("react.offscreen"),Ja$1=E$2("react.legacy_hidden")}var Ka$1=typeof Symbol=="function"&&Symbol.iterator;function La$1(x_){return x_===null||typeof x_!="object"?null:(x_=Ka$1&&x_[Ka$1]||x_["@@iterator"],typeof x_=="function"?x_:null)}var Ma$1;function Na$1(x_){if(Ma$1===void 0)try{throw Error()}catch($P){var eme=$P.stack.trim().match(/\n( *(at )?)/);Ma$1=eme&&eme[1]||""}return`
`+Ma$1+x_}var Oa$1=!1;function Pa$1(x_,eme){if(!x_||Oa$1)return"";Oa$1=!0;var $P=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(eme)if(eme=function(){throw Error()},Object.defineProperty(eme.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(eme,[])}catch(ome){var tme=ome}Reflect.construct(x_,[],eme)}else{try{eme.call()}catch(ome){tme=ome}x_.call(eme.prototype)}else{try{throw Error()}catch(ome){tme=ome}x_()}}catch(ome){if(ome&&tme&&typeof ome.stack=="string"){for(var ame=ome.stack.split(`
`),nme=tme.stack.split(`
`),rme=ame.length-1,ime=nme.length-1;1<=rme&&0<=ime&&ame[rme]!==nme[ime];)ime--;for(;1<=rme&&0<=ime;rme--,ime--)if(ame[rme]!==nme[ime]){if(rme!==1||ime!==1)do if(rme--,ime--,0>ime||ame[rme]!==nme[ime])return`
`+ame[rme].replace(" at new "," at ");while(1<=rme&&0<=ime);break}}}finally{Oa$1=!1,Error.prepareStackTrace=$P}return(x_=x_?x_.displayName||x_.name:"")?Na$1(x_):""}function Qa$1(x_){switch(x_.tag){case 5:return Na$1(x_.type);case 16:return Na$1("Lazy");case 13:return Na$1("Suspense");case 19:return Na$1("SuspenseList");case 0:case 2:case 15:return x_=Pa$1(x_.type,!1),x_;case 11:return x_=Pa$1(x_.type.render,!1),x_;case 22:return x_=Pa$1(x_.type._render,!1),x_;case 1:return x_=Pa$1(x_.type,!0),x_;default:return""}}function Ra$1(x_){if(x_==null)return null;if(typeof x_=="function")return x_.displayName||x_.name||null;if(typeof x_=="string")return x_;switch(x_){case ua$1:return"Fragment";case ta$1:return"Portal";case xa$1:return"Profiler";case wa$1:return"StrictMode";case Ba$1:return"Suspense";case Ca$1:return"SuspenseList"}if(typeof x_=="object")switch(x_.$$typeof){case za$1:return(x_.displayName||"Context")+".Consumer";case ya$1:return(x_._context.displayName||"Context")+".Provider";case Aa$1:var eme=x_.render;return eme=eme.displayName||eme.name||"",x_.displayName||(eme!==""?"ForwardRef("+eme+")":"ForwardRef");case Da$1:return Ra$1(x_.type);case Fa$1:return Ra$1(x_._render);case Ea$1:eme=x_._payload,x_=x_._init;try{return Ra$1(x_(eme))}catch{}}return null}function Sa$1(x_){switch(typeof x_){case"boolean":case"number":case"object":case"string":case"undefined":return x_;default:return""}}function Ta$1(x_){var eme=x_.type;return(x_=x_.nodeName)&&x_.toLowerCase()==="input"&&(eme==="checkbox"||eme==="radio")}function Ua$1(x_){var eme=Ta$1(x_)?"checked":"value",$P=Object.getOwnPropertyDescriptor(x_.constructor.prototype,eme),tme=""+x_[eme];if(!x_.hasOwnProperty(eme)&&typeof $P<"u"&&typeof $P.get=="function"&&typeof $P.set=="function"){var ame=$P.get,nme=$P.set;return Object.defineProperty(x_,eme,{configurable:!0,get:function(){return ame.call(this)},set:function(rme){tme=""+rme,nme.call(this,rme)}}),Object.defineProperty(x_,eme,{enumerable:$P.enumerable}),{getValue:function(){return tme},setValue:function(rme){tme=""+rme},stopTracking:function(){x_._valueTracker=null,delete x_[eme]}}}}function Va$1(x_){x_._valueTracker||(x_._valueTracker=Ua$1(x_))}function Wa$1(x_){if(!x_)return!1;var eme=x_._valueTracker;if(!eme)return!0;var $P=eme.getValue(),tme="";return x_&&(tme=Ta$1(x_)?x_.checked?"true":"false":x_.value),x_=tme,x_!==$P?(eme.setValue(x_),!0):!1}function Xa$1(x_){if(x_=x_||(typeof document<"u"?document:void 0),typeof x_>"u")return null;try{return x_.activeElement||x_.body}catch{return x_.body}}function Ya$1(x_,eme){var $P=eme.checked;return m$4({},eme,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:$P??x_._wrapperState.initialChecked})}function Za$1(x_,eme){var $P=eme.defaultValue==null?"":eme.defaultValue,tme=eme.checked!=null?eme.checked:eme.defaultChecked;$P=Sa$1(eme.value!=null?eme.value:$P),x_._wrapperState={initialChecked:tme,initialValue:$P,controlled:eme.type==="checkbox"||eme.type==="radio"?eme.checked!=null:eme.value!=null}}function $a$1(x_,eme){eme=eme.checked,eme!=null&&qa$1(x_,"checked",eme,!1)}function ab$1(x_,eme){$a$1(x_,eme);var $P=Sa$1(eme.value),tme=eme.type;if($P!=null)tme==="number"?($P===0&&x_.value===""||x_.value!=$P)&&(x_.value=""+$P):x_.value!==""+$P&&(x_.value=""+$P);else if(tme==="submit"||tme==="reset"){x_.removeAttribute("value");return}eme.hasOwnProperty("value")?bb$1(x_,eme.type,$P):eme.hasOwnProperty("defaultValue")&&bb$1(x_,eme.type,Sa$1(eme.defaultValue)),eme.checked==null&&eme.defaultChecked!=null&&(x_.defaultChecked=!!eme.defaultChecked)}function cb$1(x_,eme,$P){if(eme.hasOwnProperty("value")||eme.hasOwnProperty("defaultValue")){var tme=eme.type;if(!(tme!=="submit"&&tme!=="reset"||eme.value!==void 0&&eme.value!==null))return;eme=""+x_._wrapperState.initialValue,$P||eme===x_.value||(x_.value=eme),x_.defaultValue=eme}$P=x_.name,$P!==""&&(x_.name=""),x_.defaultChecked=!!x_._wrapperState.initialChecked,$P!==""&&(x_.name=$P)}function bb$1(x_,eme,$P){(eme!=="number"||Xa$1(x_.ownerDocument)!==x_)&&($P==null?x_.defaultValue=""+x_._wrapperState.initialValue:x_.defaultValue!==""+$P&&(x_.defaultValue=""+$P))}function db$1(x_){var eme="";return aa$1.Children.forEach(x_,function($P){$P!=null&&(eme+=$P)}),eme}function eb$1(x_,eme){return x_=m$4({children:void 0},eme),(eme=db$1(eme.children))&&(x_.children=eme),x_}function fb$1(x_,eme,$P,tme){if(x_=x_.options,eme){eme={};for(var ame=0;ame<$P.length;ame++)eme["$"+$P[ame]]=!0;for($P=0;$P<x_.length;$P++)ame=eme.hasOwnProperty("$"+x_[$P].value),x_[$P].selected!==ame&&(x_[$P].selected=ame),ame&&tme&&(x_[$P].defaultSelected=!0)}else{for($P=""+Sa$1($P),eme=null,ame=0;ame<x_.length;ame++){if(x_[ame].value===$P){x_[ame].selected=!0,tme&&(x_[ame].defaultSelected=!0);return}eme!==null||x_[ame].disabled||(eme=x_[ame])}eme!==null&&(eme.selected=!0)}}function gb$1(x_,eme){if(eme.dangerouslySetInnerHTML!=null)throw Error(y$2(91));return m$4({},eme,{value:void 0,defaultValue:void 0,children:""+x_._wrapperState.initialValue})}function hb$1(x_,eme){var $P=eme.value;if($P==null){if($P=eme.children,eme=eme.defaultValue,$P!=null){if(eme!=null)throw Error(y$2(92));if(Array.isArray($P)){if(!(1>=$P.length))throw Error(y$2(93));$P=$P[0]}eme=$P}eme==null&&(eme=""),$P=eme}x_._wrapperState={initialValue:Sa$1($P)}}function ib$1(x_,eme){var $P=Sa$1(eme.value),tme=Sa$1(eme.defaultValue);$P!=null&&($P=""+$P,$P!==x_.value&&(x_.value=$P),eme.defaultValue==null&&x_.defaultValue!==$P&&(x_.defaultValue=$P)),tme!=null&&(x_.defaultValue=""+tme)}function jb$1(x_){var eme=x_.textContent;eme===x_._wrapperState.initialValue&&eme!==""&&eme!==null&&(x_.value=eme)}var kb$1={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lb$1(x_){switch(x_){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 mb$1(x_,eme){return x_==null||x_==="http://www.w3.org/1999/xhtml"?lb$1(eme):x_==="http://www.w3.org/2000/svg"&&eme==="foreignObject"?"http://www.w3.org/1999/xhtml":x_}var nb$1,ob$1=function(x_){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(eme,$P,tme,ame){MSApp.execUnsafeLocalFunction(function(){return x_(eme,$P,tme,ame)})}:x_}(function(x_,eme){if(x_.namespaceURI!==kb$1.svg||"innerHTML"in x_)x_.innerHTML=eme;else{for(nb$1=nb$1||document.createElement("div"),nb$1.innerHTML="<svg>"+eme.valueOf().toString()+"</svg>",eme=nb$1.firstChild;x_.firstChild;)x_.removeChild(x_.firstChild);for(;eme.firstChild;)x_.appendChild(eme.firstChild)}});function pb$1(x_,eme){if(eme){var $P=x_.firstChild;if($P&&$P===x_.lastChild&&$P.nodeType===3){$P.nodeValue=eme;return}}x_.textContent=eme}var qb$1={animationIterationCount:!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},rb$1=["Webkit","ms","Moz","O"];Object.keys(qb$1).forEach(function(x_){rb$1.forEach(function(eme){eme=eme+x_.charAt(0).toUpperCase()+x_.substring(1),qb$1[eme]=qb$1[x_]})});function sb$1(x_,eme,$P){return eme==null||typeof eme=="boolean"||eme===""?"":$P||typeof eme!="number"||eme===0||qb$1.hasOwnProperty(x_)&&qb$1[x_]?(""+eme).trim():eme+"px"}function tb$1(x_,eme){x_=x_.style;for(var $P in eme)if(eme.hasOwnProperty($P)){var tme=$P.indexOf("--")===0,ame=sb$1($P,eme[$P],tme);$P==="float"&&($P="cssFloat"),tme?x_.setProperty($P,ame):x_[$P]=ame}}var ub$1=m$4({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 vb$1(x_,eme){if(eme){if(ub$1[x_]&&(eme.children!=null||eme.dangerouslySetInnerHTML!=null))throw Error(y$2(137,x_));if(eme.dangerouslySetInnerHTML!=null){if(eme.children!=null)throw Error(y$2(60));if(!(typeof eme.dangerouslySetInnerHTML=="object"&&"__html"in eme.dangerouslySetInnerHTML))throw Error(y$2(61))}if(eme.style!=null&&typeof eme.style!="object")throw Error(y$2(62))}}function wb$1(x_,eme){if(x_.indexOf("-")===-1)return typeof eme.is=="string";switch(x_){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}}function xb$1(x_){return x_=x_.target||x_.srcElement||window,x_.correspondingUseElement&&(x_=x_.correspondingUseElement),x_.nodeType===3?x_.parentNode:x_}var yb$1=null,zb$1=null,Ab$1=null;function Bb$1(x_){if(x_=Cb$1(x_)){if(typeof yb$1!="function")throw Error(y$2(280));var eme=x_.stateNode;eme&&(eme=Db$1(eme),yb$1(x_.stateNode,x_.type,eme))}}function Eb$1(x_){zb$1?Ab$1?Ab$1.push(x_):Ab$1=[x_]:zb$1=x_}function Fb$1(){if(zb$1){var x_=zb$1,eme=Ab$1;if(Ab$1=zb$1=null,Bb$1(x_),eme)for(x_=0;x_<eme.length;x_++)Bb$1(eme[x_])}}function Gb$1(x_,eme){return x_(eme)}function Hb$1(x_,eme,$P,tme,ame){return x_(eme,$P,tme,ame)}function Ib$1(){}var Jb$1=Gb$1,Kb$1=!1,Lb$1=!1;function Mb$1(){(zb$1!==null||Ab$1!==null)&&(Ib$1(),Fb$1())}function Nb$1(x_,eme,$P){if(Lb$1)return x_(eme,$P);Lb$1=!0;try{return Jb$1(x_,eme,$P)}finally{Lb$1=!1,Mb$1()}}function Ob$1(x_,eme){var $P=x_.stateNode;if($P===null)return null;var tme=Db$1($P);if(tme===null)return null;$P=tme[eme];e:switch(eme){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(tme=!tme.disabled)||(x_=x_.type,tme=!(x_==="button"||x_==="input"||x_==="select"||x_==="textarea")),x_=!tme;break e;default:x_=!1}if(x_)return null;if($P&&typeof $P!="function")throw Error(y$2(231,eme,typeof $P));return $P}var Pb$1=!1;if(fa$1)try{var Qb$1={};Object.defineProperty(Qb$1,"passive",{get:function(){Pb$1=!0}}),window.addEventListener("test",Qb$1,Qb$1),window.removeEventListener("test",Qb$1,Qb$1)}catch{Pb$1=!1}function Rb$1(x_,eme,$P,tme,ame,nme,rme,ime,ome){var lme=Array.prototype.slice.call(arguments,3);try{eme.apply($P,lme)}catch(sme){this.onError(sme)}}var Sb$1=!1,Tb$1=null,Ub$1=!1,Vb$1=null,Wb$1={onError:function(x_){Sb$1=!0,Tb$1=x_}};function Xb$1(x_,eme,$P,tme,ame,nme,rme,ime,ome){Sb$1=!1,Tb$1=null,Rb$1.apply(Wb$1,arguments)}function Yb$1(x_,eme,$P,tme,ame,nme,rme,ime,ome){if(Xb$1.apply(this,arguments),Sb$1){if(Sb$1){var lme=Tb$1;Sb$1=!1,Tb$1=null}else throw Error(y$2(198));Ub$1||(Ub$1=!0,Vb$1=lme)}}function Zb$1(x_){var eme=x_,$P=x_;if(x_.alternate)for(;eme.return;)eme=eme.return;else{x_=eme;do eme=x_,eme.flags&1026&&($P=eme.return),x_=eme.return;while(x_)}return eme.tag===3?$P:null}function $b$1(x_){if(x_.tag===13){var eme=x_.memoizedState;if(eme===null&&(x_=x_.alternate,x_!==null&&(eme=x_.memoizedState)),eme!==null)return eme.dehydrated}return null}function ac$1(x_){if(Zb$1(x_)!==x_)throw Error(y$2(188))}function bc$1(x_){var eme=x_.alternate;if(!eme){if(eme=Zb$1(x_),eme===null)throw Error(y$2(188));return eme!==x_?null:x_}for(var $P=x_,tme=eme;;){var ame=$P.return;if(ame===null)break;var nme=ame.alternate;if(nme===null){if(tme=ame.return,tme!==null){$P=tme;continue}break}if(ame.child===nme.child){for(nme=ame.child;nme;){if(nme===$P)return ac$1(ame),x_;if(nme===tme)return ac$1(ame),eme;nme=nme.sibling}throw Error(y$2(188))}if($P.return!==tme.return)$P=ame,tme=nme;else{for(var rme=!1,ime=ame.child;ime;){if(ime===$P){rme=!0,$P=ame,tme=nme;break}if(ime===tme){rme=!0,tme=ame,$P=nme;break}ime=ime.sibling}if(!rme){for(ime=nme.child;ime;){if(ime===$P){rme=!0,$P=nme,tme=ame;break}if(ime===tme){rme=!0,tme=nme,$P=ame;break}ime=ime.sibling}if(!rme)throw Error(y$2(189))}}if($P.alternate!==tme)throw Error(y$2(190))}if($P.tag!==3)throw Error(y$2(188));return $P.stateNode.current===$P?x_:eme}function cc$1(x_){if(x_=bc$1(x_),!x_)return null;for(var eme=x_;;){if(eme.tag===5||eme.tag===6)return eme;if(eme.child)eme.child.return=eme,eme=eme.child;else{if(eme===x_)break;for(;!eme.sibling;){if(!eme.return||eme.return===x_)return null;eme=eme.return}eme.sibling.return=eme.return,eme=eme.sibling}}return null}function dc$1(x_,eme){for(var $P=x_.alternate;eme!==null;){if(eme===x_||eme===$P)return!0;eme=eme.return}return!1}var ec$1,fc$1,gc$1,hc$1,ic$1=!1,jc$1=[],kc$1=null,lc$1=null,mc$1=null,nc$1=new Map,oc$1=new Map,pc$1=[],qc$1="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 rc$1(x_,eme,$P,tme,ame){return{blockedOn:x_,domEventName:eme,eventSystemFlags:$P|16,nativeEvent:ame,targetContainers:[tme]}}function sc$1(x_,eme){switch(x_){case"focusin":case"focusout":kc$1=null;break;case"dragenter":case"dragleave":lc$1=null;break;case"mouseover":case"mouseout":mc$1=null;break;case"pointerover":case"pointerout":nc$1.delete(eme.pointerId);break;case"gotpointercapture":case"lostpointercapture":oc$1.delete(eme.pointerId)}}function tc$1(x_,eme,$P,tme,ame,nme){return x_===null||x_.nativeEvent!==nme?(x_=rc$1(eme,$P,tme,ame,nme),eme!==null&&(eme=Cb$1(eme),eme!==null&&fc$1(eme)),x_):(x_.eventSystemFlags|=tme,eme=x_.targetContainers,ame!==null&&eme.indexOf(ame)===-1&&eme.push(ame),x_)}function uc$1(x_,eme,$P,tme,ame){switch(eme){case"focusin":return kc$1=tc$1(kc$1,x_,eme,$P,tme,ame),!0;case"dragenter":return lc$1=tc$1(lc$1,x_,eme,$P,tme,ame),!0;case"mouseover":return mc$1=tc$1(mc$1,x_,eme,$P,tme,ame),!0;case"pointerover":var nme=ame.pointerId;return nc$1.set(nme,tc$1(nc$1.get(nme)||null,x_,eme,$P,tme,ame)),!0;case"gotpointercapture":return nme=ame.pointerId,oc$1.set(nme,tc$1(oc$1.get(nme)||null,x_,eme,$P,tme,ame)),!0}return!1}function vc$1(x_){var eme=wc$1(x_.target);if(eme!==null){var $P=Zb$1(eme);if($P!==null){if(eme=$P.tag,eme===13){if(eme=$b$1($P),eme!==null){x_.blockedOn=eme,hc$1(x_.lanePriority,function(){r$5.unstable_runWithPriority(x_.priority,function(){gc$1($P)})});return}}else if(eme===3&&$P.stateNode.hydrate){x_.blockedOn=$P.tag===3?$P.stateNode.containerInfo:null;return}}}x_.blockedOn=null}function xc$1(x_){if(x_.blockedOn!==null)return!1;for(var eme=x_.targetContainers;0<eme.length;){var $P=yc$1(x_.domEventName,x_.eventSystemFlags,eme[0],x_.nativeEvent);if($P!==null)return eme=Cb$1($P),eme!==null&&fc$1(eme),x_.blockedOn=$P,!1;eme.shift()}return!0}function zc$1(x_,eme,$P){xc$1(x_)&&$P.delete(eme)}function Ac$1(){for(ic$1=!1;0<jc$1.length;){var x_=jc$1[0];if(x_.blockedOn!==null){x_=Cb$1(x_.blockedOn),x_!==null&&ec$1(x_);break}for(var eme=x_.targetContainers;0<eme.length;){var $P=yc$1(x_.domEventName,x_.eventSystemFlags,eme[0],x_.nativeEvent);if($P!==null){x_.blockedOn=$P;break}eme.shift()}x_.blockedOn===null&&jc$1.shift()}kc$1!==null&&xc$1(kc$1)&&(kc$1=null),lc$1!==null&&xc$1(lc$1)&&(lc$1=null),mc$1!==null&&xc$1(mc$1)&&(mc$1=null),nc$1.forEach(zc$1),oc$1.forEach(zc$1)}function Bc$1(x_,eme){x_.blockedOn===eme&&(x_.blockedOn=null,ic$1||(ic$1=!0,r$5.unstable_scheduleCallback(r$5.unstable_NormalPriority,Ac$1)))}function Cc$1(x_){function eme(ame){return Bc$1(ame,x_)}if(0<jc$1.length){Bc$1(jc$1[0],x_);for(var $P=1;$P<jc$1.length;$P++){var tme=jc$1[$P];tme.blockedOn===x_&&(tme.blockedOn=null)}}for(kc$1!==null&&Bc$1(kc$1,x_),lc$1!==null&&Bc$1(lc$1,x_),mc$1!==null&&Bc$1(mc$1,x_),nc$1.forEach(eme),oc$1.forEach(eme),$P=0;$P<pc$1.length;$P++)tme=pc$1[$P],tme.blockedOn===x_&&(tme.blockedOn=null);for(;0<pc$1.length&&($P=pc$1[0],$P.blockedOn===null);)vc$1($P),$P.blockedOn===null&&pc$1.shift()}function Dc$1(x_,eme){var $P={};return $P[x_.toLowerCase()]=eme.toLowerCase(),$P["Webkit"+x_]="webkit"+eme,$P["Moz"+x_]="moz"+eme,$P}var Ec$1={animationend:Dc$1("Animation","AnimationEnd"),animationiteration:Dc$1("Animation","AnimationIteration"),animationstart:Dc$1("Animation","AnimationStart"),transitionend:Dc$1("Transition","TransitionEnd")},Fc$1={},Gc$1={};fa$1&&(Gc$1=document.createElement("div").style,"AnimationEvent"in window||(delete Ec$1.animationend.animation,delete Ec$1.animationiteration.animation,delete Ec$1.animationstart.animation),"TransitionEvent"in window||delete Ec$1.transitionend.transition);function Hc$1(x_){if(Fc$1[x_])return Fc$1[x_];if(!Ec$1[x_])return x_;var eme=Ec$1[x_],$P;for($P in eme)if(eme.hasOwnProperty($P)&&$P in Gc$1)return Fc$1[x_]=eme[$P];return x_}var Ic$1=Hc$1("animationend"),Jc$1=Hc$1("animationiteration"),Kc$1=Hc$1("animationstart"),Lc$1=Hc$1("transitionend"),Mc$1=new Map,Nc$1=new Map,Oc$1=["abort","abort",Ic$1,"animationEnd",Jc$1,"animationIteration",Kc$1,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lc$1,"transitionEnd","waiting","waiting"];function Pc$1(x_,eme){for(var $P=0;$P<x_.length;$P+=2){var tme=x_[$P],ame=x_[$P+1];ame="on"+(ame[0].toUpperCase()+ame.slice(1)),Nc$1.set(tme,eme),Mc$1.set(tme,ame),da$1(ame,[tme])}}var Qc$1=r$5.unstable_now;Qc$1();var F$2=8;function Rc$1(x_){if(1&x_)return F$2=15,1;if(2&x_)return F$2=14,2;if(4&x_)return F$2=13,4;var eme=24&x_;return eme!==0?(F$2=12,eme):x_&32?(F$2=11,32):(eme=192&x_,eme!==0?(F$2=10,eme):x_&256?(F$2=9,256):(eme=3584&x_,eme!==0?(F$2=8,eme):x_&4096?(F$2=7,4096):(eme=4186112&x_,eme!==0?(F$2=6,eme):(eme=62914560&x_,eme!==0?(F$2=5,eme):x_&67108864?(F$2=4,67108864):x_&134217728?(F$2=3,134217728):(eme=805306368&x_,eme!==0?(F$2=2,eme):1073741824&x_?(F$2=1,1073741824):(F$2=8,x_))))))}function Sc$1(x_){switch(x_){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Tc$1(x_){switch(x_){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(y$2(358,x_))}}function Uc$1(x_,eme){var $P=x_.pendingLanes;if($P===0)return F$2=0;var tme=0,ame=0,nme=x_.expiredLanes,rme=x_.suspendedLanes,ime=x_.pingedLanes;if(nme!==0)tme=nme,ame=F$2=15;else if(nme=$P&134217727,nme!==0){var ome=nme&~rme;ome!==0?(tme=Rc$1(ome),ame=F$2):(ime&=nme,ime!==0&&(tme=Rc$1(ime),ame=F$2))}else nme=$P&~rme,nme!==0?(tme=Rc$1(nme),ame=F$2):ime!==0&&(tme=Rc$1(ime),ame=F$2);if(tme===0)return 0;if(tme=31-Vc$1(tme),tme=$P&((0>tme?0:1<<tme)<<1)-1,eme!==0&&eme!==tme&&!(eme&rme)){if(Rc$1(eme),ame<=F$2)return eme;F$2=ame}if(eme=x_.entangledLanes,eme!==0)for(x_=x_.entanglements,eme&=tme;0<eme;)$P=31-Vc$1(eme),ame=1<<$P,tme|=x_[$P],eme&=~ame;return tme}function Wc$1(x_){return x_=x_.pendingLanes&-1073741825,x_!==0?x_:x_&1073741824?1073741824:0}function Xc$1(x_,eme){switch(x_){case 15:return 1;case 14:return 2;case 12:return x_=Yc$1(24&~eme),x_===0?Xc$1(10,eme):x_;case 10:return x_=Yc$1(192&~eme),x_===0?Xc$1(8,eme):x_;case 8:return x_=Yc$1(3584&~eme),x_===0&&(x_=Yc$1(4186112&~eme),x_===0&&(x_=512)),x_;case 2:return eme=Yc$1(805306368&~eme),eme===0&&(eme=268435456),eme}throw Error(y$2(358,x_))}function Yc$1(x_){return x_&-x_}function Zc$1(x_){for(var eme=[],$P=0;31>$P;$P++)eme.push(x_);return eme}function $c$1(x_,eme,$P){x_.pendingLanes|=eme;var tme=eme-1;x_.suspendedLanes&=tme,x_.pingedLanes&=tme,x_=x_.eventTimes,eme=31-Vc$1(eme),x_[eme]=$P}var Vc$1=Math.clz32?Math.clz32:ad$1,bd$1=Math.log,cd$1=Math.LN2;function ad$1(x_){return x_===0?32:31-(bd$1(x_)/cd$1|0)|0}var dd$1=r$5.unstable_UserBlockingPriority,ed$1=r$5.unstable_runWithPriority,fd$1=!0;function gd$1(x_,eme,$P,tme){Kb$1||Ib$1();var ame=hd$1,nme=Kb$1;Kb$1=!0;try{Hb$1(ame,x_,eme,$P,tme)}finally{(Kb$1=nme)||Mb$1()}}function id$2(x_,eme,$P,tme){ed$1(dd$1,hd$1.bind(null,x_,eme,$P,tme))}function hd$1(x_,eme,$P,tme){if(fd$1){var ame;if((ame=(eme&4)===0)&&0<jc$1.length&&-1<qc$1.indexOf(x_))x_=rc$1(null,x_,eme,$P,tme),jc$1.push(x_);else{var nme=yc$1(x_,eme,$P,tme);if(nme===null)ame&&sc$1(x_,tme);else{if(ame){if(-1<qc$1.indexOf(x_)){x_=rc$1(nme,x_,eme,$P,tme),jc$1.push(x_);return}if(uc$1(nme,x_,eme,$P,tme))return;sc$1(x_,tme)}jd$1(x_,eme,tme,null,$P)}}}}function yc$1(x_,eme,$P,tme){var ame=xb$1(tme);if(ame=wc$1(ame),ame!==null){var nme=Zb$1(ame);if(nme===null)ame=null;else{var rme=nme.tag;if(rme===13){if(ame=$b$1(nme),ame!==null)return ame;ame=null}else if(rme===3){if(nme.stateNode.hydrate)return nme.tag===3?nme.stateNode.containerInfo:null;ame=null}else nme!==ame&&(ame=null)}}return jd$1(x_,eme,tme,ame,$P),null}var kd$1=null,ld$1=null,md$1=null;function nd$1(){if(md$1)return md$1;var x_,eme=ld$1,$P=eme.length,tme,ame="value"in kd$1?kd$1.value:kd$1.textContent,nme=ame.length;for(x_=0;x_<$P&&eme[x_]===ame[x_];x_++);var rme=$P-x_;for(tme=1;tme<=rme&&eme[$P-tme]===ame[nme-tme];tme++);return md$1=ame.slice(x_,1<tme?1-tme:void 0)}function od$1(x_){var eme=x_.keyCode;return"charCode"in x_?(x_=x_.charCode,x_===0&&eme===13&&(x_=13)):x_=eme,x_===10&&(x_=13),32<=x_||x_===13?x_:0}function pd$1(){return!0}function qd$1(){return!1}function rd$1(x_){function eme($P,tme,ame,nme,rme){this._reactName=$P,this._targetInst=ame,this.type=tme,this.nativeEvent=nme,this.target=rme,this.currentTarget=null;for(var ime in x_)x_.hasOwnProperty(ime)&&($P=x_[ime],this[ime]=$P?$P(nme):nme[ime]);return this.isDefaultPrevented=(nme.defaultPrevented!=null?nme.defaultPrevented:nme.returnValue===!1)?pd$1:qd$1,this.isPropagationStopped=qd$1,this}return m$4(eme.prototype,{preventDefault:function(){this.defaultPrevented=!0;var $P=this.nativeEvent;$P&&($P.preventDefault?$P.preventDefault():typeof $P.returnValue!="unknown"&&($P.returnValue=!1),this.isDefaultPrevented=pd$1)},stopPropagation:function(){var $P=this.nativeEvent;$P&&($P.stopPropagation?$P.stopPropagation():typeof $P.cancelBubble!="unknown"&&($P.cancelBubble=!0),this.isPropagationStopped=pd$1)},persist:function(){},isPersistent:pd$1}),eme}var sd$1={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(x_){return x_.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td$1=rd$1(sd$1),ud$1=m$4({},sd$1,{view:0,detail:0}),vd$1=rd$1(ud$1),wd$1,xd$1,yd$1,Ad$1=m$4({},ud$1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd$1,button:0,buttons:0,relatedTarget:function(x_){return x_.relatedTarget===void 0?x_.fromElement===x_.srcElement?x_.toElement:x_.fromElement:x_.relatedTarget},movementX:function(x_){return"movementX"in x_?x_.movementX:(x_!==yd$1&&(yd$1&&x_.type==="mousemove"?(wd$1=x_.screenX-yd$1.screenX,xd$1=x_.screenY-yd$1.screenY):xd$1=wd$1=0,yd$1=x_),wd$1)},movementY:function(x_){return"movementY"in x_?x_.movementY:xd$1}}),Bd$1=rd$1(Ad$1),Cd$1=m$4({},Ad$1,{dataTransfer:0}),Dd$1=rd$1(Cd$1),Ed$1=m$4({},ud$1,{relatedTarget:0}),Fd$1=rd$1(Ed$1),Gd$1=m$4({},sd$1,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd$1=rd$1(Gd$1),Id$1=m$4({},sd$1,{clipboardData:function(x_){return"clipboardData"in x_?x_.clipboardData:window.clipboardData}}),Jd$1=rd$1(Id$1),Kd$1=m$4({},sd$1,{data:0}),Ld$1=rd$1(Kd$1),Md$1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd$1={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"},Od$1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd$1(x_){var eme=this.nativeEvent;return eme.getModifierState?eme.getModifierState(x_):(x_=Od$1[x_])?!!eme[x_]:!1}function zd$1(){return Pd$1}var Qd$1=m$4({},ud$1,{key:function(x_){if(x_.key){var eme=Md$1[x_.key]||x_.key;if(eme!=="Unidentified")return eme}return x_.type==="keypress"?(x_=od$1(x_),x_===13?"Enter":String.fromCharCode(x_)):x_.type==="keydown"||x_.type==="keyup"?Nd$1[x_.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd$1,charCode:function(x_){return x_.type==="keypress"?od$1(x_):0},keyCode:function(x_){return x_.type==="keydown"||x_.type==="keyup"?x_.keyCode:0},which:function(x_){return x_.type==="keypress"?od$1(x_):x_.type==="keydown"||x_.type==="keyup"?x_.keyCode:0}}),Rd$1=rd$1(Qd$1),Sd$1=m$4({},Ad$1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td$1=rd$1(Sd$1),Ud$1=m$4({},ud$1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd$1}),Vd$1=rd$1(Ud$1),Wd$1=m$4({},sd$1,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd$1=rd$1(Wd$1),Yd$1=m$4({},Ad$1,{deltaX:function(x_){return"deltaX"in x_?x_.deltaX:"wheelDeltaX"in x_?-x_.wheelDeltaX:0},deltaY:function(x_){return"deltaY"in x_?x_.deltaY:"wheelDeltaY"in x_?-x_.wheelDeltaY:"wheelDelta"in x_?-x_.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd$1=rd$1(Yd$1),$d$1=[9,13,27,32],ae$1=fa$1&&"CompositionEvent"in window,be$1=null;fa$1&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=fa$1&&"TextEvent"in window&&!be$1,de$1=fa$1&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=" ",fe$1=!1;function ge$1(x_,eme){switch(x_){case"keyup":return $d$1.indexOf(eme.keyCode)!==-1;case"keydown":return eme.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(x_){return x_=x_.detail,typeof x_=="object"&&"data"in x_?x_.data:null}var ie$1=!1;function je$1(x_,eme){switch(x_){case"compositionend":return he$1(eme);case"keypress":return eme.which!==32?null:(fe$1=!0,ee$1);case"textInput":return x_=eme.data,x_===ee$1&&fe$1?null:x_;default:return null}}function ke$1(x_,eme){if(ie$1)return x_==="compositionend"||!ae$1&&ge$1(x_,eme)?(x_=nd$1(),md$1=ld$1=kd$1=null,ie$1=!1,x_):null;switch(x_){case"paste":return null;case"keypress":if(!(eme.ctrlKey||eme.altKey||eme.metaKey)||eme.ctrlKey&&eme.altKey){if(eme.char&&1<eme.char.length)return eme.char;if(eme.which)return String.fromCharCode(eme.which)}return null;case"compositionend":return de$1&&eme.locale!=="ko"?null:eme.data;default:return null}}var le$1={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 me$1(x_){var eme=x_&&x_.nodeName&&x_.nodeName.toLowerCase();return eme==="input"?!!le$1[x_.type]:eme==="textarea"}function ne$1(x_,eme,$P,tme){Eb$1(tme),eme=oe$1(eme,"onChange"),0<eme.length&&($P=new td$1("onChange","change",null,$P,tme),x_.push({event:$P,listeners:eme}))}var pe$1=null,qe$1=null;function re$1(x_){se$1(x_,0)}function te$1(x_){var eme=ue$1(x_);if(Wa$1(eme))return x_}function ve$1(x_,eme){if(x_==="change")return eme}var we$1=!1;if(fa$1){var xe$1;if(fa$1){var ye$1="oninput"in document;if(!ye$1){var ze$1=document.createElement("div");ze$1.setAttribute("oninput","return;"),ye$1=typeof ze$1.oninput=="function"}xe$1=ye$1}else xe$1=!1;we$1=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae$1(){pe$1&&(pe$1.detachEvent("onpropertychange",Be$1),qe$1=pe$1=null)}function Be$1(x_){if(x_.propertyName==="value"&&te$1(qe$1)){var eme=[];if(ne$1(eme,qe$1,x_,xb$1(x_)),x_=re$1,Kb$1)x_(eme);else{Kb$1=!0;try{Gb$1(x_,eme)}finally{Kb$1=!1,Mb$1()}}}}function Ce$1(x_,eme,$P){x_==="focusin"?(Ae$1(),pe$1=eme,qe$1=$P,pe$1.attachEvent("onpropertychange",Be$1)):x_==="focusout"&&Ae$1()}function De$1(x_){if(x_==="selectionchange"||x_==="keyup"||x_==="keydown")return te$1(qe$1)}function Ee$1(x_,eme){if(x_==="click")return te$1(eme)}function Fe$1(x_,eme){if(x_==="input"||x_==="change")return te$1(eme)}function Ge$1(x_,eme){return x_===eme&&(x_!==0||1/x_===1/eme)||x_!==x_&&eme!==eme}var He$1=typeof Object.is=="function"?Object.is:Ge$1,Ie$1=Object.prototype.hasOwnProperty;function Je$1(x_,eme){if(He$1(x_,eme))return!0;if(typeof x_!="object"||x_===null||typeof eme!="object"||eme===null)return!1;var $P=Object.keys(x_),tme=Object.keys(eme);if($P.length!==tme.length)return!1;for(tme=0;tme<$P.length;tme++)if(!Ie$1.call(eme,$P[tme])||!He$1(x_[$P[tme]],eme[$P[tme]]))return!1;return!0}function Ke$1(x_){for(;x_&&x_.firstChild;)x_=x_.firstChild;return x_}function Le$1(x_,eme){var $P=Ke$1(x_);x_=0;for(var tme;$P;){if($P.nodeType===3){if(tme=x_+$P.textContent.length,x_<=eme&&tme>=eme)return{node:$P,offset:eme-x_};x_=tme}e:{for(;$P;){if($P.nextSibling){$P=$P.nextSibling;break e}$P=$P.parentNode}$P=void 0}$P=Ke$1($P)}}function Me$1(x_,eme){return x_&&eme?x_===eme?!0:x_&&x_.nodeType===3?!1:eme&&eme.nodeType===3?Me$1(x_,eme.parentNode):"contains"in x_?x_.contains(eme):x_.compareDocumentPosition?!!(x_.compareDocumentPosition(eme)&16):!1:!1}function Ne$1(){for(var x_=window,eme=Xa$1();eme instanceof x_.HTMLIFrameElement;){try{var $P=typeof eme.contentWindow.location.href=="string"}catch{$P=!1}if($P)x_=eme.contentWindow;else break;eme=Xa$1(x_.document)}return eme}function Oe$1(x_){var eme=x_&&x_.nodeName&&x_.nodeName.toLowerCase();return eme&&(eme==="input"&&(x_.type==="text"||x_.type==="search"||x_.type==="tel"||x_.type==="url"||x_.type==="password")||eme==="textarea"||x_.contentEditable==="true")}var Pe$1=fa$1&&"documentMode"in document&&11>=document.documentMode,Qe$1=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(x_,eme,$P){var tme=$P.window===$P?$P.document:$P.nodeType===9?$P:$P.ownerDocument;Te$1||Qe$1==null||Qe$1!==Xa$1(tme)||(tme=Qe$1,"selectionStart"in tme&&Oe$1(tme)?tme={start:tme.selectionStart,end:tme.selectionEnd}:(tme=(tme.ownerDocument&&tme.ownerDocument.defaultView||window).getSelection(),tme={anchorNode:tme.anchorNode,anchorOffset:tme.anchorOffset,focusNode:tme.focusNode,focusOffset:tme.focusOffset}),Se$1&&Je$1(Se$1,tme)||(Se$1=tme,tme=oe$1(Re$1,"onSelect"),0<tme.length&&(eme=new td$1("onSelect","select",null,eme,$P),x_.push({event:eme,listeners:tme}),eme.target=Qe$1)))}Pc$1("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Pc$1("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Pc$1(Oc$1,2);for(var Ve$1="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We$1=0;We$1<Ve$1.length;We$1++)Nc$1.set(Ve$1[We$1],0);ea$1("onMouseEnter",["mouseout","mouseover"]);ea$1("onMouseLeave",["mouseout","mouseover"]);ea$1("onPointerEnter",["pointerout","pointerover"]);ea$1("onPointerLeave",["pointerout","pointerover"]);da$1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));da$1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));da$1("onBeforeInput",["compositionend","keypress","textInput","paste"]);da$1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));da$1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));da$1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xe$1="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye$1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xe$1));function Ze$1(x_,eme,$P){var tme=x_.type||"unknown-event";x_.currentTarget=$P,Yb$1(tme,eme,void 0,x_),x_.currentTarget=null}function se$1(x_,eme){eme=(eme&4)!==0;for(var $P=0;$P<x_.length;$P++){var tme=x_[$P],ame=tme.event;tme=tme.listeners;e:{var nme=void 0;if(eme)for(var rme=tme.length-1;0<=rme;rme--){var ime=tme[rme],ome=ime.instance,lme=ime.currentTarget;if(ime=ime.listener,ome!==nme&&ame.isPropagationStopped())break e;Ze$1(ame,ime,lme),nme=ome}else for(rme=0;rme<tme.length;rme++){if(ime=tme[rme],ome=ime.instance,lme=ime.currentTarget,ime=ime.listener,ome!==nme&&ame.isPropagationStopped())break e;Ze$1(ame,ime,lme),nme=ome}}}if(Ub$1)throw x_=Vb$1,Ub$1=!1,Vb$1=null,x_}function G$2(x_,eme){var $P=$e$1(eme),tme=x_+"__bubble";$P.has(tme)||(af$1(eme,x_,2,!1),$P.add(tme))}var bf$1="_reactListening"+Math.random().toString(36).slice(2);function cf$1(x_){x_[bf$1]||(x_[bf$1]=!0,ba$1.forEach(function(eme){Ye$1.has(eme)||df$1(eme,!1,x_,null),df$1(eme,!0,x_,null)}))}function df$1(x_,eme,$P,tme){var ame=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,nme=$P;x_==="selectionchange"&&$P.nodeType!==9&&(nme=$P.ownerDocument);var rme=$e$1(nme),ime=x_+"__"+(eme?"capture":"bubble");rme.has(ime)||(eme&&(ame|=4),af$1(nme,x_,ame,eme),rme.add(ime))}function af$1(x_,eme,$P,tme){var ame=Nc$1.get(eme);switch(ame===void 0?2:ame){case 0:ame=gd$1;break;case 1:ame=id$2;break;default:ame=hd$1}$P=ame.bind(null,eme,$P,x_),ame=void 0,!Pb$1||eme!=="touchstart"&&eme!=="touchmove"&&eme!=="wheel"||(ame=!0),tme?ame!==void 0?x_.addEventListener(eme,$P,{capture:!0,passive:ame}):x_.addEventListener(eme,$P,!0):ame!==void 0?x_.addEventListener(eme,$P,{passive:ame}):x_.addEventListener(eme,$P,!1)}function jd$1(x_,eme,$P,tme,ame){var nme=tme;if(!(eme&1)&&!(eme&2)&&tme!==null)e:for(;;){if(tme===null)return;var rme=tme.tag;if(rme===3||rme===4){var ime=tme.stateNode.containerInfo;if(ime===ame||ime.nodeType===8&&ime.parentNode===ame)break;if(rme===4)for(rme=tme.return;rme!==null;){var ome=rme.tag;if((ome===3||ome===4)&&(ome=rme.stateNode.containerInfo,ome===ame||ome.nodeType===8&&ome.parentNode===ame))return;rme=rme.return}for(;ime!==null;){if(rme=wc$1(ime),rme===null)return;if(ome=rme.tag,ome===5||ome===6){tme=nme=rme;continue e}ime=ime.parentNode}}tme=tme.return}Nb$1(function(){var lme=nme,sme=xb$1($P),cme=[];e:{var dme=Mc$1.get(x_);if(dme!==void 0){var ume=td$1,fme=x_;switch(x_){case"keypress":if(od$1($P)===0)break e;case"keydown":case"keyup":ume=Rd$1;break;case"focusin":fme="focus",ume=Fd$1;break;case"focusout":fme="blur",ume=Fd$1;break;case"beforeblur":case"afterblur":ume=Fd$1;break;case"click":if($P.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ume=Bd$1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ume=Dd$1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ume=Vd$1;break;case Ic$1:case Jc$1:case Kc$1:ume=Hd$1;break;case Lc$1:ume=Xd$1;break;case"scroll":ume=vd$1;break;case"wheel":ume=Zd$1;break;case"copy":case"cut":case"paste":ume=Jd$1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ume=Td$1}var pme=(eme&4)!==0,hme=!pme&&x_==="scroll",bme=pme?dme!==null?dme+"Capture":null:dme;pme=[];for(var mme=lme,vme;mme!==null;){vme=mme;var gme=vme.stateNode;if(vme.tag===5&&gme!==null&&(vme=gme,bme!==null&&(gme=Ob$1(mme,bme),gme!=null&&pme.push(ef$1(mme,gme,vme)))),hme)break;mme=mme.return}0<pme.length&&(dme=new ume(dme,fme,null,$P,sme),cme.push({event:dme,listeners:pme}))}}if(!(eme&7)){e:{if(dme=x_==="mouseover"||x_==="pointerover",ume=x_==="mouseout"||x_==="pointerout",dme&&!(eme&16)&&(fme=$P.relatedTarget||$P.fromElement)&&(wc$1(fme)||fme[ff$1]))break e;if((ume||dme)&&(dme=sme.window===sme?sme:(dme=sme.ownerDocument)?dme.defaultView||dme.parentWindow:window,ume?(fme=$P.relatedTarget||$P.toElement,ume=lme,fme=fme?wc$1(fme):null,fme!==null&&(hme=Zb$1(fme),fme!==hme||fme.tag!==5&&fme.tag!==6)&&(fme=null)):(ume=null,fme=lme),ume!==fme)){if(pme=Bd$1,gme="onMouseLeave",bme="onMouseEnter",mme="mouse",(x_==="pointerout"||x_==="pointerover")&&(pme=Td$1,gme="onPointerLeave",bme="onPointerEnter",mme="pointer"),hme=ume==null?dme:ue$1(ume),vme=fme==null?dme:ue$1(fme),dme=new pme(gme,mme+"leave",ume,$P,sme),dme.target=hme,dme.relatedTarget=vme,gme=null,wc$1(sme)===lme&&(pme=new pme(bme,mme+"enter",fme,$P,sme),pme.target=vme,pme.relatedTarget=hme,gme=pme),hme=gme,ume&&fme)t:{for(pme=ume,bme=fme,mme=0,vme=pme;vme;vme=gf$1(vme))mme++;for(vme=0,gme=bme;gme;gme=gf$1(gme))vme++;for(;0<mme-vme;)pme=gf$1(pme),mme--;for(;0<vme-mme;)bme=gf$1(bme),vme--;for(;mme--;){if(pme===bme||bme!==null&&pme===bme.alternate)break t;pme=gf$1(pme),bme=gf$1(bme)}pme=null}else pme=null;ume!==null&&hf$1(cme,dme,ume,pme,!1),fme!==null&&hme!==null&&hf$1(cme,hme,fme,pme,!0)}}e:{if(dme=lme?ue$1(lme):window,ume=dme.nodeName&&dme.nodeName.toLowerCase(),ume==="select"||ume==="input"&&dme.type==="file")var yme=ve$1;else if(me$1(dme))if(we$1)yme=Fe$1;else{yme=De$1;var _me=Ce$1}else(ume=dme.nodeName)&&ume.toLowerCase()==="input"&&(dme.type==="checkbox"||dme.type==="radio")&&(yme=Ee$1);if(yme&&(yme=yme(x_,lme))){ne$1(cme,yme,$P,sme);break e}_me&&_me(x_,dme,lme),x_==="focusout"&&(_me=dme._wrapperState)&&_me.controlled&&dme.type==="number"&&bb$1(dme,"number",dme.value)}switch(_me=lme?ue$1(lme):window,x_){case"focusin":(me$1(_me)||_me.contentEditable==="true")&&(Qe$1=_me,Re$1=lme,Se$1=null);break;case"focusout":Se$1=Re$1=Qe$1=null;break;case"mousedown":Te$1=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$1=!1,Ue$1(cme,$P,sme);break;case"selectionchange":if(Pe$1)break;case"keydown":case"keyup":Ue$1(cme,$P,sme)}var $me;if(ae$1)e:{switch(x_){case"compositionstart":var Cme="onCompositionStart";break e;case"compositionend":Cme="onCompositionEnd";break e;case"compositionupdate":Cme="onCompositionUpdate";break e}Cme=void 0}else ie$1?ge$1(x_,$P)&&(Cme="onCompositionEnd"):x_==="keydown"&&$P.keyCode===229&&(Cme="onCompositionStart");Cme&&(de$1&&$P.locale!=="ko"&&(ie$1||Cme!=="onCompositionStart"?Cme==="onCompositionEnd"&&ie$1&&($me=nd$1()):(kd$1=sme,ld$1="value"in kd$1?kd$1.value:kd$1.textContent,ie$1=!0)),_me=oe$1(lme,Cme),0<_me.length&&(Cme=new Ld$1(Cme,x_,null,$P,sme),cme.push({event:Cme,listeners:_me}),$me?Cme.data=$me:($me=he$1($P),$me!==null&&(Cme.data=$me)))),($me=ce$1?je$1(x_,$P):ke$1(x_,$P))&&(lme=oe$1(lme,"onBeforeInput"),0<lme.length&&(sme=new Ld$1("onBeforeInput","beforeinput",null,$P,sme),cme.push({event:sme,listeners:lme}),sme.data=$me))}se$1(cme,eme)})}function ef$1(x_,eme,$P){return{instance:x_,listener:eme,currentTarget:$P}}function oe$1(x_,eme){for(var $P=eme+"Capture",tme=[];x_!==null;){var ame=x_,nme=ame.stateNode;ame.tag===5&&nme!==null&&(ame=nme,nme=Ob$1(x_,$P),nme!=null&&tme.unshift(ef$1(x_,nme,ame)),nme=Ob$1(x_,eme),nme!=null&&tme.push(ef$1(x_,nme,ame))),x_=x_.return}return tme}function gf$1(x_){if(x_===null)return null;do x_=x_.return;while(x_&&x_.tag!==5);return x_||null}function hf$1(x_,eme,$P,tme,ame){for(var nme=eme._reactName,rme=[];$P!==null&&$P!==tme;){var ime=$P,ome=ime.alternate,lme=ime.stateNode;if(ome!==null&&ome===tme)break;ime.tag===5&&lme!==null&&(ime=lme,ame?(ome=Ob$1($P,nme),ome!=null&&rme.unshift(ef$1($P,ome,ime))):ame||(ome=Ob$1($P,nme),ome!=null&&rme.push(ef$1($P,ome,ime)))),$P=$P.return}rme.length!==0&&x_.push({event:eme,listeners:rme})}function jf$1(){}var kf$1=null,lf$1=null;function mf$1(x_,eme){switch(x_){case"button":case"input":case"select":case"textarea":return!!eme.autoFocus}return!1}function nf$1(x_,eme){return x_==="textarea"||x_==="option"||x_==="noscript"||typeof eme.children=="string"||typeof eme.children=="number"||typeof eme.dangerouslySetInnerHTML=="object"&&eme.dangerouslySetInnerHTML!==null&&eme.dangerouslySetInnerHTML.__html!=null}var of$1=typeof setTimeout=="function"?setTimeout:void 0,pf$1=typeof clearTimeout=="function"?clearTimeout:void 0;function qf$1(x_){x_.nodeType===1?x_.textContent="":x_.nodeType===9&&(x_=x_.body,x_!=null&&(x_.textContent=""))}function rf$1(x_){for(;x_!=null;x_=x_.nextSibling){var eme=x_.nodeType;if(eme===1||eme===3)break}return x_}function sf$1(x_){x_=x_.previousSibling;for(var eme=0;x_;){if(x_.nodeType===8){var $P=x_.data;if($P==="$"||$P==="$!"||$P==="$?"){if(eme===0)return x_;eme--}else $P==="/$"&&eme++}x_=x_.previousSibling}return null}var tf$1=0;function uf$1(x_){return{$$typeof:Ga$1,toString:x_,valueOf:x_}}var vf$1=Math.random().toString(36).slice(2),wf$1="__reactFiber$"+vf$1,xf$1="__reactProps$"+vf$1,ff$1="__reactContainer$"+vf$1,yf$1="__reactEvents$"+vf$1;function wc$1(x_){var eme=x_[wf$1];if(eme)return eme;for(var $P=x_.parentNode;$P;){if(eme=$P[ff$1]||$P[wf$1]){if($P=eme.alternate,eme.child!==null||$P!==null&&$P.child!==null)for(x_=sf$1(x_);x_!==null;){if($P=x_[wf$1])return $P;x_=sf$1(x_)}return eme}x_=$P,$P=x_.parentNode}return null}function Cb$1(x_){return x_=x_[wf$1]||x_[ff$1],!x_||x_.tag!==5&&x_.tag!==6&&x_.tag!==13&&x_.tag!==3?null:x_}function ue$1(x_){if(x_.tag===5||x_.tag===6)return x_.stateNode;throw Error(y$2(33))}function Db$1(x_){return x_[xf$1]||null}function $e$1(x_){var eme=x_[yf$1];return eme===void 0&&(eme=x_[yf$1]=new Set),eme}var zf$1=[],Af$1=-1;function Bf$1(x_){return{current:x_}}function H$2(x_){0>Af$1||(x_.current=zf$1[Af$1],zf$1[Af$1]=null,Af$1--)}function I$2(x_,eme){Af$1++,zf$1[Af$1]=x_.current,x_.current=eme}var Cf$1={},M$1=Bf$1(Cf$1),N$1=Bf$1(!1),Df$1=Cf$1;function Ef$1(x_,eme){var $P=x_.type.contextTypes;if(!$P)return Cf$1;var tme=x_.stateNode;if(tme&&tme.__reactInternalMemoizedUnmaskedChildContext===eme)return tme.__reactInternalMemoizedMaskedChildContext;var ame={},nme;for(nme in $P)ame[nme]=eme[nme];return tme&&(x_=x_.stateNode,x_.__reactInternalMemoizedUnmaskedChildContext=eme,x_.__reactInternalMemoizedMaskedChildContext=ame),ame}function Ff(x_){return x_=x_.childContextTypes,x_!=null}function Gf$1(){H$2(N$1),H$2(M$1)}function Hf$1(x_,eme,$P){if(M$1.current!==Cf$1)throw Error(y$2(168));I$2(M$1,eme),I$2(N$1,$P)}function If$1(x_,eme,$P){var tme=x_.stateNode;if(x_=eme.childContextTypes,typeof tme.getChildContext!="function")return $P;tme=tme.getChildContext();for(var ame in tme)if(!(ame in x_))throw Error(y$2(108,Ra$1(eme)||"Unknown",ame));return m$4({},$P,tme)}function Jf$1(x_){return x_=(x_=x_.stateNode)&&x_.__reactInternalMemoizedMergedChildContext||Cf$1,Df$1=M$1.current,I$2(M$1,x_),I$2(N$1,N$1.current),!0}function Kf$1(x_,eme,$P){var tme=x_.stateNode;if(!tme)throw Error(y$2(169));$P?(x_=If$1(x_,eme,Df$1),tme.__reactInternalMemoizedMergedChildContext=x_,H$2(N$1),H$2(M$1),I$2(M$1,x_)):H$2(N$1),I$2(N$1,$P)}var Lf$1=null,Mf$1=null,Nf$1=r$5.unstable_runWithPriority,Of$1=r$5.unstable_scheduleCallback,Pf$1=r$5.unstable_cancelCallback,Qf$1=r$5.unstable_shouldYield,Rf$1=r$5.unstable_requestPaint,Sf$1=r$5.unstable_now,Tf$1=r$5.unstable_getCurrentPriorityLevel,Uf$1=r$5.unstable_ImmediatePriority,Vf$1=r$5.unstable_UserBlockingPriority,Wf$1=r$5.unstable_NormalPriority,Xf$1=r$5.unstable_LowPriority,Yf$1=r$5.unstable_IdlePriority,Zf$1={},$f$1=Rf$1!==void 0?Rf$1:function(){},ag$1=null,bg$2=null,cg$1=!1,dg$1=Sf$1(),O$1=1e4>dg$1?Sf$1:function(){return Sf$1()-dg$1};function eg$1(){switch(Tf$1()){case Uf$1:return 99;case Vf$1:return 98;case Wf$1:return 97;case Xf$1:return 96;case Yf$1:return 95;default:throw Error(y$2(332))}}function fg$1(x_){switch(x_){case 99:return Uf$1;case 98:return Vf$1;case 97:return Wf$1;case 96:return Xf$1;case 95:return Yf$1;default:throw Error(y$2(332))}}function gg$1(x_,eme){return x_=fg$1(x_),Nf$1(x_,eme)}function hg$1(x_,eme,$P){return x_=fg$1(x_),Of$1(x_,eme,$P)}function ig$1(){if(bg$2!==null){var x_=bg$2;bg$2=null,Pf$1(x_)}jg$1()}function jg$1(){if(!cg$1&&ag$1!==null){cg$1=!0;var x_=0;try{var eme=ag$1;gg$1(99,function(){for(;x_<eme.length;x_++){var $P=eme[x_];do $P=$P(!0);while($P!==null)}}),ag$1=null}catch($P){throw ag$1!==null&&(ag$1=ag$1.slice(x_+1)),Of$1(Uf$1,ig$1),$P}finally{cg$1=!1}}}var kg$1=ra$1.ReactCurrentBatchConfig;function lg$1(x_,eme){if(x_&&x_.defaultProps){eme=m$4({},eme),x_=x_.defaultProps;for(var $P in x_)eme[$P]===void 0&&(eme[$P]=x_[$P]);return eme}return eme}var mg$1=Bf$1(null),ng$1=null,og$1=null,pg$1=null;function qg$1(){pg$1=og$1=ng$1=null}function rg$1(x_){var eme=mg$1.current;H$2(mg$1),x_.type._context._currentValue=eme}function sg$1(x_,eme){for(;x_!==null;){var $P=x_.alternate;if((x_.childLanes&eme)===eme){if($P===null||($P.childLanes&eme)===eme)break;$P.childLanes|=eme}else x_.childLanes|=eme,$P!==null&&($P.childLanes|=eme);x_=x_.return}}function tg$1(x_,eme){ng$1=x_,pg$1=og$1=null,x_=x_.dependencies,x_!==null&&x_.firstContext!==null&&(x_.lanes&eme&&(ug$1=!0),x_.firstContext=null)}function vg$1(x_,eme){if(pg$1!==x_&&eme!==!1&&eme!==0)if((typeof eme!="number"||eme===1073741823)&&(pg$1=x_,eme=1073741823),eme={context:x_,observedBits:eme,next:null},og$1===null){if(ng$1===null)throw Error(y$2(308));og$1=eme,ng$1.dependencies={lanes:0,firstContext:eme,responders:null}}else og$1=og$1.next=eme;return x_._currentValue}var wg$1=!1;function xg$1(x_){x_.updateQueue={baseState:x_.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function yg$1(x_,eme){x_=x_.updateQueue,eme.updateQueue===x_&&(eme.updateQueue={baseState:x_.baseState,firstBaseUpdate:x_.firstBaseUpdate,lastBaseUpdate:x_.lastBaseUpdate,shared:x_.shared,effects:x_.effects})}function zg$1(x_,eme){return{eventTime:x_,lane:eme,tag:0,payload:null,callback:null,next:null}}function Ag$1(x_,eme){if(x_=x_.updateQueue,x_!==null){x_=x_.shared;var $P=x_.pending;$P===null?eme.next=eme:(eme.next=$P.next,$P.next=eme),x_.pending=eme}}function Bg$2(x_,eme){var $P=x_.updateQueue,tme=x_.alternate;if(tme!==null&&(tme=tme.updateQueue,$P===tme)){var ame=null,nme=null;if($P=$P.firstBaseUpdate,$P!==null){do{var rme={eventTime:$P.eventTime,lane:$P.lane,tag:$P.tag,payload:$P.payload,callback:$P.callback,next:null};nme===null?ame=nme=rme:nme=nme.next=rme,$P=$P.next}while($P!==null);nme===null?ame=nme=eme:nme=nme.next=eme}else ame=nme=eme;$P={baseState:tme.baseState,firstBaseUpdate:ame,lastBaseUpdate:nme,shared:tme.shared,effects:tme.effects},x_.updateQueue=$P;return}x_=$P.lastBaseUpdate,x_===null?$P.firstBaseUpdate=eme:x_.next=eme,$P.lastBaseUpdate=eme}function Cg$1(x_,eme,$P,tme){var ame=x_.updateQueue;wg$1=!1;var nme=ame.firstBaseUpdate,rme=ame.lastBaseUpdate,ime=ame.shared.pending;if(ime!==null){ame.shared.pending=null;var ome=ime,lme=ome.next;ome.next=null,rme===null?nme=lme:rme.next=lme,rme=ome;var sme=x_.alternate;if(sme!==null){sme=sme.updateQueue;var cme=sme.lastBaseUpdate;cme!==rme&&(cme===null?sme.firstBaseUpdate=lme:cme.next=lme,sme.lastBaseUpdate=ome)}}if(nme!==null){cme=ame.baseState,rme=0,sme=lme=ome=null;do{ime=nme.lane;var dme=nme.eventTime;if((tme&ime)===ime){sme!==null&&(sme=sme.next={eventTime:dme,lane:0,tag:nme.tag,payload:nme.payload,callback:nme.callback,next:null});e:{var ume=x_,fme=nme;switch(ime=eme,dme=$P,fme.tag){case 1:if(ume=fme.payload,typeof ume=="function"){cme=ume.call(dme,cme,ime);break e}cme=ume;break e;case 3:ume.flags=ume.flags&-4097|64;case 0:if(ume=fme.payload,ime=typeof ume=="function"?ume.call(dme,cme,ime):ume,ime==null)break e;cme=m$4({},cme,ime);break e;case 2:wg$1=!0}}nme.callback!==null&&(x_.flags|=32,ime=ame.effects,ime===null?ame.effects=[nme]:ime.push(nme))}else dme={eventTime:dme,lane:ime,tag:nme.tag,payload:nme.payload,callback:nme.callback,next:null},sme===null?(lme=sme=dme,ome=cme):sme=sme.next=dme,rme|=ime;if(nme=nme.next,nme===null){if(ime=ame.shared.pending,ime===null)break;nme=ime.next,ime.next=null,ame.lastBaseUpdate=ime,ame.shared.pending=null}}while(!0);sme===null&&(ome=cme),ame.baseState=ome,ame.firstBaseUpdate=lme,ame.lastBaseUpdate=sme,Dg$1|=rme,x_.lanes=rme,x_.memoizedState=cme}}function Eg$1(x_,eme,$P){if(x_=eme.effects,eme.effects=null,x_!==null)for(eme=0;eme<x_.length;eme++){var tme=x_[eme],ame=tme.callback;if(ame!==null){if(tme.callback=null,tme=$P,typeof ame!="function")throw Error(y$2(191,ame));ame.call(tme)}}}var Fg$1=new aa$1.Component().refs;function Gg$1(x_,eme,$P,tme){eme=x_.memoizedState,$P=$P(tme,eme),$P=$P==null?eme:m$4({},eme,$P),x_.memoizedState=$P,x_.lanes===0&&(x_.updateQueue.baseState=$P)}var Kg$1={isMounted:function(x_){return(x_=x_._reactInternals)?Zb$1(x_)===x_:!1},enqueueSetState:function(x_,eme,$P){x_=x_._reactInternals;var tme=Hg$1(),ame=Ig$1(x_),nme=zg$1(tme,ame);nme.payload=eme,$P!=null&&(nme.callback=$P),Ag$1(x_,nme),Jg$1(x_,ame,tme)},enqueueReplaceState:function(x_,eme,$P){x_=x_._reactInternals;var tme=Hg$1(),ame=Ig$1(x_),nme=zg$1(tme,ame);nme.tag=1,nme.payload=eme,$P!=null&&(nme.callback=$P),Ag$1(x_,nme),Jg$1(x_,ame,tme)},enqueueForceUpdate:function(x_,eme){x_=x_._reactInternals;var $P=Hg$1(),tme=Ig$1(x_),ame=zg$1($P,tme);ame.tag=2,eme!=null&&(ame.callback=eme),Ag$1(x_,ame),Jg$1(x_,tme,$P)}};function Lg$1(x_,eme,$P,tme,ame,nme,rme){return x_=x_.stateNode,typeof x_.shouldComponentUpdate=="function"?x_.shouldComponentUpdate(tme,nme,rme):eme.prototype&&eme.prototype.isPureReactComponent?!Je$1($P,tme)||!Je$1(ame,nme):!0}function Mg$1(x_,eme,$P){var tme=!1,ame=Cf$1,nme=eme.contextType;return typeof nme=="object"&&nme!==null?nme=vg$1(nme):(ame=Ff(eme)?Df$1:M$1.current,tme=eme.contextTypes,nme=(tme=tme!=null)?Ef$1(x_,ame):Cf$1),eme=new eme($P,nme),x_.memoizedState=eme.state!==null&&eme.state!==void 0?eme.state:null,eme.updater=Kg$1,x_.stateNode=eme,eme._reactInternals=x_,tme&&(x_=x_.stateNode,x_.__reactInternalMemoizedUnmaskedChildContext=ame,x_.__reactInternalMemoizedMaskedChildContext=nme),eme}function Ng$1(x_,eme,$P,tme){x_=eme.state,typeof eme.componentWillReceiveProps=="function"&&eme.componentWillReceiveProps($P,tme),typeof eme.UNSAFE_componentWillReceiveProps=="function"&&eme.UNSAFE_componentWillReceiveProps($P,tme),eme.state!==x_&&Kg$1.enqueueReplaceState(eme,eme.state,null)}function Og$1(x_,eme,$P,tme){var ame=x_.stateNode;ame.props=$P,ame.state=x_.memoizedState,ame.refs=Fg$1,xg$1(x_);var nme=eme.contextType;typeof nme=="object"&&nme!==null?ame.context=vg$1(nme):(nme=Ff(eme)?Df$1:M$1.current,ame.context=Ef$1(x_,nme)),Cg$1(x_,$P,ame,tme),ame.state=x_.memoizedState,nme=eme.getDerivedStateFromProps,typeof nme=="function"&&(Gg$1(x_,eme,nme,$P),ame.state=x_.memoizedState),typeof eme.getDerivedStateFromProps=="function"||typeof ame.getSnapshotBeforeUpdate=="function"||typeof ame.UNSAFE_componentWillMount!="function"&&typeof ame.componentWillMount!="function"||(eme=ame.state,typeof ame.componentWillMount=="function"&&ame.componentWillMount(),typeof ame.UNSAFE_componentWillMount=="function"&&ame.UNSAFE_componentWillMount(),eme!==ame.state&&Kg$1.enqueueReplaceState(ame,ame.state,null),Cg$1(x_,$P,ame,tme),ame.state=x_.memoizedState),typeof ame.componentDidMount=="function"&&(x_.flags|=4)}var Pg$1=Array.isArray;function Qg$1(x_,eme,$P){if(x_=$P.ref,x_!==null&&typeof x_!="function"&&typeof x_!="object"){if($P._owner){if($P=$P._owner,$P){if($P.tag!==1)throw Error(y$2(309));var tme=$P.stateNode}if(!tme)throw Error(y$2(147,x_));var ame=""+x_;return eme!==null&&eme.ref!==null&&typeof eme.ref=="function"&&eme.ref._stringRef===ame?eme.ref:(eme=function(nme){var rme=tme.refs;rme===Fg$1&&(rme=tme.refs={}),nme===null?delete rme[ame]:rme[ame]=nme},eme._stringRef=ame,eme)}if(typeof x_!="string")throw Error(y$2(284));if(!$P._owner)throw Error(y$2(290,x_))}return x_}function Rg$1(x_,eme){if(x_.type!=="textarea")throw Error(y$2(31,Object.prototype.toString.call(eme)==="[object Object]"?"object with keys {"+Object.keys(eme).join(", ")+"}":eme))}function Sg$1(x_){function eme(hme,bme){if(x_){var mme=hme.lastEffect;mme!==null?(mme.nextEffect=bme,hme.lastEffect=bme):hme.firstEffect=hme.lastEffect=bme,bme.nextEffect=null,bme.flags=8}}function $P(hme,bme){if(!x_)return null;for(;bme!==null;)eme(hme,bme),bme=bme.sibling;return null}function tme(hme,bme){for(hme=new Map;bme!==null;)bme.key!==null?hme.set(bme.key,bme):hme.set(bme.index,bme),bme=bme.sibling;return hme}function ame(hme,bme){return hme=Tg$1(hme,bme),hme.index=0,hme.sibling=null,hme}function nme(hme,bme,mme){return hme.index=mme,x_?(mme=hme.alternate,mme!==null?(mme=mme.index,mme<bme?(hme.flags=2,bme):mme):(hme.flags=2,bme)):bme}function rme(hme){return x_&&hme.alternate===null&&(hme.flags=2),hme}function ime(hme,bme,mme,vme){return bme===null||bme.tag!==6?(bme=Ug$1(mme,hme.mode,vme),bme.return=hme,bme):(bme=ame(bme,mme),bme.return=hme,bme)}function ome(hme,bme,mme,vme){return bme!==null&&bme.elementType===mme.type?(vme=ame(bme,mme.props),vme.ref=Qg$1(hme,bme,mme),vme.return=hme,vme):(vme=Vg$1(mme.type,mme.key,mme.props,null,hme.mode,vme),vme.ref=Qg$1(hme,bme,mme),vme.return=hme,vme)}function lme(hme,bme,mme,vme){return bme===null||bme.tag!==4||bme.stateNode.containerInfo!==mme.containerInfo||bme.stateNode.implementation!==mme.implementation?(bme=Wg$1(mme,hme.mode,vme),bme.return=hme,bme):(bme=ame(bme,mme.children||[]),bme.return=hme,bme)}function sme(hme,bme,mme,vme,gme){return bme===null||bme.tag!==7?(bme=Xg$1(mme,hme.mode,vme,gme),bme.return=hme,bme):(bme=ame(bme,mme),bme.return=hme,bme)}function cme(hme,bme,mme){if(typeof bme=="string"||typeof bme=="number")return bme=Ug$1(""+bme,hme.mode,mme),bme.return=hme,bme;if(typeof bme=="object"&&bme!==null){switch(bme.$$typeof){case sa$1:return mme=Vg$1(bme.type,bme.key,bme.props,null,hme.mode,mme),mme.ref=Qg$1(hme,null,bme),mme.return=hme,mme;case ta$1:return bme=Wg$1(bme,hme.mode,mme),bme.return=hme,bme}if(Pg$1(bme)||La$1(bme))return bme=Xg$1(bme,hme.mode,mme,null),bme.return=hme,bme;Rg$1(hme,bme)}return null}function dme(hme,bme,mme,vme){var gme=bme!==null?bme.key:null;if(typeof mme=="string"||typeof mme=="number")return gme!==null?null:ime(hme,bme,""+mme,vme);if(typeof mme=="object"&&mme!==null){switch(mme.$$typeof){case sa$1:return mme.key===gme?mme.type===ua$1?sme(hme,bme,mme.props.children,vme,gme):ome(hme,bme,mme,vme):null;case ta$1:return mme.key===gme?lme(hme,bme,mme,vme):null}if(Pg$1(mme)||La$1(mme))return gme!==null?null:sme(hme,bme,mme,vme,null);Rg$1(hme,mme)}return null}function ume(hme,bme,mme,vme,gme){if(typeof vme=="string"||typeof vme=="number")return hme=hme.get(mme)||null,ime(bme,hme,""+vme,gme);if(typeof vme=="object"&&vme!==null){switch(vme.$$typeof){case sa$1:return hme=hme.get(vme.key===null?mme:vme.key)||null,vme.type===ua$1?sme(bme,hme,vme.props.children,gme,vme.key):ome(bme,hme,vme,gme);case ta$1:return hme=hme.get(vme.key===null?mme:vme.key)||null,lme(bme,hme,vme,gme)}if(Pg$1(vme)||La$1(vme))return hme=hme.get(mme)||null,sme(bme,hme,vme,gme,null);Rg$1(bme,vme)}return null}function fme(hme,bme,mme,vme){for(var gme=null,yme=null,_me=bme,$me=bme=0,Cme=null;_me!==null&&$me<mme.length;$me++){_me.index>$me?(Cme=_me,_me=null):Cme=_me.sibling;var Sme=dme(hme,_me,mme[$me],vme);if(Sme===null){_me===null&&(_me=Cme);break}x_&&_me&&Sme.alternate===null&&eme(hme,_me),bme=nme(Sme,bme,$me),yme===null?gme=Sme:yme.sibling=Sme,yme=Sme,_me=Cme}if($me===mme.length)return $P(hme,_me),gme;if(_me===null){for(;$me<mme.length;$me++)_me=cme(hme,mme[$me],vme),_me!==null&&(bme=nme(_me,bme,$me),yme===null?gme=_me:yme.sibling=_me,yme=_me);return gme}for(_me=tme(hme,_me);$me<mme.length;$me++)Cme=ume(_me,hme,$me,mme[$me],vme),Cme!==null&&(x_&&Cme.alternate!==null&&_me.delete(Cme.key===null?$me:Cme.key),bme=nme(Cme,bme,$me),yme===null?gme=Cme:yme.sibling=Cme,yme=Cme);return x_&&_me.forEach(function(Eme){return eme(hme,Eme)}),gme}function pme(hme,bme,mme,vme){var gme=La$1(mme);if(typeof gme!="function")throw Error(y$2(150));if(mme=gme.call(mme),mme==null)throw Error(y$2(151));for(var yme=gme=null,_me=bme,$me=bme=0,Cme=null,Sme=mme.next();_me!==null&&!Sme.done;$me++,Sme=mme.next()){_me.index>$me?(Cme=_me,_me=null):Cme=_me.sibling;var Eme=dme(hme,_me,Sme.value,vme);if(Eme===null){_me===null&&(_me=Cme);break}x_&&_me&&Eme.alternate===null&&eme(hme,_me),bme=nme(Eme,bme,$me),yme===null?gme=Eme:yme.sibling=Eme,yme=Eme,_me=Cme}if(Sme.done)return $P(hme,_me),gme;if(_me===null){for(;!Sme.done;$me++,Sme=mme.next())Sme=cme(hme,Sme.value,vme),Sme!==null&&(bme=nme(Sme,bme,$me),yme===null?gme=Sme:yme.sibling=Sme,yme=Sme);return gme}for(_me=tme(hme,_me);!Sme.done;$me++,Sme=mme.next())Sme=ume(_me,hme,$me,Sme.value,vme),Sme!==null&&(x_&&Sme.alternate!==null&&_me.delete(Sme.key===null?$me:Sme.key),bme=nme(Sme,bme,$me),yme===null?gme=Sme:yme.sibling=Sme,yme=Sme);return x_&&_me.forEach(function(xme){return eme(hme,xme)}),gme}return function(hme,bme,mme,vme){var gme=typeof mme=="object"&&mme!==null&&mme.type===ua$1&&mme.key===null;gme&&(mme=mme.props.children);var yme=typeof mme=="object"&&mme!==null;if(yme)switch(mme.$$typeof){case sa$1:e:{for(yme=mme.key,gme=bme;gme!==null;){if(gme.key===yme){switch(gme.tag){case 7:if(mme.type===ua$1){$P(hme,gme.sibling),bme=ame(gme,mme.props.children),bme.return=hme,hme=bme;break e}break;default:if(gme.elementType===mme.type){$P(hme,gme.sibling),bme=ame(gme,mme.props),bme.ref=Qg$1(hme,gme,mme),bme.return=hme,hme=bme;break e}}$P(hme,gme);break}else eme(hme,gme);gme=gme.sibling}mme.type===ua$1?(bme=Xg$1(mme.props.children,hme.mode,vme,mme.key),bme.return=hme,hme=bme):(vme=Vg$1(mme.type,mme.key,mme.props,null,hme.mode,vme),vme.ref=Qg$1(hme,bme,mme),vme.return=hme,hme=vme)}return rme(hme);case ta$1:e:{for(gme=mme.key;bme!==null;){if(bme.key===gme)if(bme.tag===4&&bme.stateNode.containerInfo===mme.containerInfo&&bme.stateNode.implementation===mme.implementation){$P(hme,bme.sibling),bme=ame(bme,mme.children||[]),bme.return=hme,hme=bme;break e}else{$P(hme,bme);break}else eme(hme,bme);bme=bme.sibling}bme=Wg$1(mme,hme.mode,vme),bme.return=hme,hme=bme}return rme(hme)}if(typeof mme=="string"||typeof mme=="number")return mme=""+mme,bme!==null&&bme.tag===6?($P(hme,bme.sibling),bme=ame(bme,mme),bme.return=hme,hme=bme):($P(hme,bme),bme=Ug$1(mme,hme.mode,vme),bme.return=hme,hme=bme),rme(hme);if(Pg$1(mme))return fme(hme,bme,mme,vme);if(La$1(mme))return pme(hme,bme,mme,vme);if(yme&&Rg$1(hme,mme),typeof mme>"u"&&!gme)switch(hme.tag){case 1:case 22:case 0:case 11:case 15:throw Error(y$2(152,Ra$1(hme.type)||"Component"))}return $P(hme,bme)}}var Yg$1=Sg$1(!0),Zg$1=Sg$1(!1),$g$1={},ah$1=Bf$1($g$1),bh$1=Bf$1($g$1),ch$1=Bf$1($g$1);function dh$1(x_){if(x_===$g$1)throw Error(y$2(174));return x_}function eh$1(x_,eme){switch(I$2(ch$1,eme),I$2(bh$1,x_),I$2(ah$1,$g$1),x_=eme.nodeType,x_){case 9:case 11:eme=(eme=eme.documentElement)?eme.namespaceURI:mb$1(null,"");break;default:x_=x_===8?eme.parentNode:eme,eme=x_.namespaceURI||null,x_=x_.tagName,eme=mb$1(eme,x_)}H$2(ah$1),I$2(ah$1,eme)}function fh$1(){H$2(ah$1),H$2(bh$1),H$2(ch$1)}function gh$1(x_){dh$1(ch$1.current);var eme=dh$1(ah$1.current),$P=mb$1(eme,x_.type);eme!==$P&&(I$2(bh$1,x_),I$2(ah$1,$P))}function hh$1(x_){bh$1.current===x_&&(H$2(ah$1),H$2(bh$1))}var P$1=Bf$1(0);function ih$1(x_){for(var eme=x_;eme!==null;){if(eme.tag===13){var $P=eme.memoizedState;if($P!==null&&($P=$P.dehydrated,$P===null||$P.data==="$?"||$P.data==="$!"))return eme}else if(eme.tag===19&&eme.memoizedProps.revealOrder!==void 0){if(eme.flags&64)return eme}else if(eme.child!==null){eme.child.return=eme,eme=eme.child;continue}if(eme===x_)break;for(;eme.sibling===null;){if(eme.return===null||eme.return===x_)return null;eme=eme.return}eme.sibling.return=eme.return,eme=eme.sibling}return null}var jh$1=null,kh=null,lh$1=!1;function mh$1(x_,eme){var $P=nh$1(5,null,null,0);$P.elementType="DELETED",$P.type="DELETED",$P.stateNode=eme,$P.return=x_,$P.flags=8,x_.lastEffect!==null?(x_.lastEffect.nextEffect=$P,x_.lastEffect=$P):x_.firstEffect=x_.lastEffect=$P}function oh$1(x_,eme){switch(x_.tag){case 5:var $P=x_.type;return eme=eme.nodeType!==1||$P.toLowerCase()!==eme.nodeName.toLowerCase()?null:eme,eme!==null?(x_.stateNode=eme,!0):!1;case 6:return eme=x_.pendingProps===""||eme.nodeType!==3?null:eme,eme!==null?(x_.stateNode=eme,!0):!1;case 13:return!1;default:return!1}}function ph$1(x_){if(lh$1){var eme=kh;if(eme){var $P=eme;if(!oh$1(x_,eme)){if(eme=rf$1($P.nextSibling),!eme||!oh$1(x_,eme)){x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_;return}mh$1(jh$1,$P)}jh$1=x_,kh=rf$1(eme.firstChild)}else x_.flags=x_.flags&-1025|2,lh$1=!1,jh$1=x_}}function qh$1(x_){for(x_=x_.return;x_!==null&&x_.tag!==5&&x_.tag!==3&&x_.tag!==13;)x_=x_.return;jh$1=x_}function rh$1(x_){if(x_!==jh$1)return!1;if(!lh$1)return qh$1(x_),lh$1=!0,!1;var eme=x_.type;if(x_.tag!==5||eme!=="head"&&eme!=="body"&&!nf$1(eme,x_.memoizedProps))for(eme=kh;eme;)mh$1(x_,eme),eme=rf$1(eme.nextSibling);if(qh$1(x_),x_.tag===13){if(x_=x_.memoizedState,x_=x_!==null?x_.dehydrated:null,!x_)throw Error(y$2(317));e:{for(x_=x_.nextSibling,eme=0;x_;){if(x_.nodeType===8){var $P=x_.data;if($P==="/$"){if(eme===0){kh=rf$1(x_.nextSibling);break e}eme--}else $P!=="$"&&$P!=="$!"&&$P!=="$?"||eme++}x_=x_.nextSibling}kh=null}}else kh=jh$1?rf$1(x_.stateNode.nextSibling):null;return!0}function sh$1(){kh=jh$1=null,lh$1=!1}var th$1=[];function uh$1(){for(var x_=0;x_<th$1.length;x_++)th$1[x_]._workInProgressVersionPrimary=null;th$1.length=0}var vh$1=ra$1.ReactCurrentDispatcher,wh$1=ra$1.ReactCurrentBatchConfig,xh$1=0,R$1=null,S$1=null,T$1=null,yh$1=!1,zh$1=!1;function Ah$1(){throw Error(y$2(321))}function Bh$1(x_,eme){if(eme===null)return!1;for(var $P=0;$P<eme.length&&$P<x_.length;$P++)if(!He$1(x_[$P],eme[$P]))return!1;return!0}function Ch$1(x_,eme,$P,tme,ame,nme){if(xh$1=nme,R$1=eme,eme.memoizedState=null,eme.updateQueue=null,eme.lanes=0,vh$1.current=x_===null||x_.memoizedState===null?Dh$1:Eh$1,x_=$P(tme,ame),zh$1){nme=0;do{if(zh$1=!1,!(25>nme))throw Error(y$2(301));nme+=1,T$1=S$1=null,eme.updateQueue=null,vh$1.current=Fh$1,x_=$P(tme,ame)}while(zh$1)}if(vh$1.current=Gh$1,eme=S$1!==null&&S$1.next!==null,xh$1=0,T$1=S$1=R$1=null,yh$1=!1,eme)throw Error(y$2(300));return x_}function Hh$1(){var x_={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_,T$1}function Ih$1(){if(S$1===null){var x_=R$1.alternate;x_=x_!==null?x_.memoizedState:null}else x_=S$1.next;var eme=T$1===null?R$1.memoizedState:T$1.next;if(eme!==null)T$1=eme,S$1=x_;else{if(x_===null)throw Error(y$2(310));S$1=x_,x_={memoizedState:S$1.memoizedState,baseState:S$1.baseState,baseQueue:S$1.baseQueue,queue:S$1.queue,next:null},T$1===null?R$1.memoizedState=T$1=x_:T$1=T$1.next=x_}return T$1}function Jh$1(x_,eme){return typeof eme=="function"?eme(x_):eme}function Kh$1(x_){var eme=Ih$1(),$P=eme.queue;if($P===null)throw Error(y$2(311));$P.lastRenderedReducer=x_;var tme=S$1,ame=tme.baseQueue,nme=$P.pending;if(nme!==null){if(ame!==null){var rme=ame.next;ame.next=nme.next,nme.next=rme}tme.baseQueue=ame=nme,$P.pending=null}if(ame!==null){ame=ame.next,tme=tme.baseState;var ime=rme=nme=null,ome=ame;do{var lme=ome.lane;if((xh$1&lme)===lme)ime!==null&&(ime=ime.next={lane:0,action:ome.action,eagerReducer:ome.eagerReducer,eagerState:ome.eagerState,next:null}),tme=ome.eagerReducer===x_?ome.eagerState:x_(tme,ome.action);else{var sme={lane:lme,action:ome.action,eagerReducer:ome.eagerReducer,eagerState:ome.eagerState,next:null};ime===null?(rme=ime=sme,nme=tme):ime=ime.next=sme,R$1.lanes|=lme,Dg$1|=lme}ome=ome.next}while(ome!==null&&ome!==ame);ime===null?nme=tme:ime.next=rme,He$1(tme,eme.memoizedState)||(ug$1=!0),eme.memoizedState=tme,eme.baseState=nme,eme.baseQueue=ime,$P.lastRenderedState=tme}return[eme.memoizedState,$P.dispatch]}function Lh$1(x_){var eme=Ih$1(),$P=eme.queue;if($P===null)throw Error(y$2(311));$P.lastRenderedReducer=x_;var tme=$P.dispatch,ame=$P.pending,nme=eme.memoizedState;if(ame!==null){$P.pending=null;var rme=ame=ame.next;do nme=x_(nme,rme.action),rme=rme.next;while(rme!==ame);He$1(nme,eme.memoizedState)||(ug$1=!0),eme.memoizedState=nme,eme.baseQueue===null&&(eme.baseState=nme),$P.lastRenderedState=nme}return[nme,tme]}function Mh$1(x_,eme,$P){var tme=eme._getVersion;tme=tme(eme._source);var ame=eme._workInProgressVersionPrimary;if(ame!==null?x_=ame===tme:(x_=x_.mutableReadLanes,(x_=(xh$1&x_)===x_)&&(eme._workInProgressVersionPrimary=tme,th$1.push(eme))),x_)return $P(eme._source);throw th$1.push(eme),Error(y$2(350))}function Nh$1(x_,eme,$P,tme){var ame=U$1;if(ame===null)throw Error(y$2(349));var nme=eme._getVersion,rme=nme(eme._source),ime=vh$1.current,ome=ime.useState(function(){return Mh$1(ame,eme,$P)}),lme=ome[1],sme=ome[0];ome=T$1;var cme=x_.memoizedState,dme=cme.refs,ume=dme.getSnapshot,fme=cme.source;cme=cme.subscribe;var pme=R$1;return x_.memoizedState={refs:dme,source:eme,subscribe:tme},ime.useEffect(function(){dme.getSnapshot=$P,dme.setSnapshot=lme;var hme=nme(eme._source);if(!He$1(rme,hme)){hme=$P(eme._source),He$1(sme,hme)||(lme(hme),hme=Ig$1(pme),ame.mutableReadLanes|=hme&ame.pendingLanes),hme=ame.mutableReadLanes,ame.entangledLanes|=hme;for(var bme=ame.entanglements,mme=hme;0<mme;){var vme=31-Vc$1(mme),gme=1<<vme;bme[vme]|=hme,mme&=~gme}}},[$P,eme,tme]),ime.useEffect(function(){return tme(eme._source,function(){var hme=dme.getSnapshot,bme=dme.setSnapshot;try{bme(hme(eme._source));var mme=Ig$1(pme);ame.mutableReadLanes|=mme&ame.pendingLanes}catch(vme){bme(function(){throw vme})}})},[eme,tme]),He$1(ume,$P)&&He$1(fme,eme)&&He$1(cme,tme)||(x_={pending:null,dispatch:null,lastRenderedReducer:Jh$1,lastRenderedState:sme},x_.dispatch=lme=Oh$1.bind(null,R$1,x_),ome.queue=x_,ome.baseQueue=null,sme=Mh$1(ame,eme,$P),ome.memoizedState=ome.baseState=sme),sme}function Ph$1(x_,eme,$P){var tme=Ih$1();return Nh$1(tme,x_,eme,$P)}function Qh$1(x_){var eme=Hh$1();return typeof x_=="function"&&(x_=x_()),eme.memoizedState=eme.baseState=x_,x_=eme.queue={pending:null,dispatch:null,lastRenderedReducer:Jh$1,lastRenderedState:x_},x_=x_.dispatch=Oh$1.bind(null,R$1,x_),[eme.memoizedState,x_]}function Rh$1(x_,eme,$P,tme){return x_={tag:x_,create:eme,destroy:$P,deps:tme,next:null},eme=R$1.updateQueue,eme===null?(eme={lastEffect:null},R$1.updateQueue=eme,eme.lastEffect=x_.next=x_):($P=eme.lastEffect,$P===null?eme.lastEffect=x_.next=x_:(tme=$P.next,$P.next=x_,x_.next=tme,eme.lastEffect=x_)),x_}function Sh$1(x_){var eme=Hh$1();return x_={current:x_},eme.memoizedState=x_}function Th$1(){return Ih$1().memoizedState}function Uh$1(x_,eme,$P,tme){var ame=Hh$1();R$1.flags|=x_,ame.memoizedState=Rh$1(1|eme,$P,void 0,tme===void 0?null:tme)}function Vh$1(x_,eme,$P,tme){var ame=Ih$1();tme=tme===void 0?null:tme;var nme=void 0;if(S$1!==null){var rme=S$1.memoizedState;if(nme=rme.destroy,tme!==null&&Bh$1(tme,rme.deps)){Rh$1(eme,$P,nme,tme);return}}R$1.flags|=x_,ame.memoizedState=Rh$1(1|eme,$P,nme,tme)}function Wh$1(x_,eme){return Uh$1(516,4,x_,eme)}function Xh$1(x_,eme){return Vh$1(516,4,x_,eme)}function Yh$1(x_,eme){return Vh$1(4,2,x_,eme)}function Zh$1(x_,eme){if(typeof eme=="function")return x_=x_(),eme(x_),function(){eme(null)};if(eme!=null)return x_=x_(),eme.current=x_,function(){eme.current=null}}function $h$1(x_,eme,$P){return $P=$P!=null?$P.concat([x_]):null,Vh$1(4,2,Zh$1.bind(null,eme,x_),$P)}function ai$1(){}function bi$1(x_,eme){var $P=Ih$1();eme=eme===void 0?null:eme;var tme=$P.memoizedState;return tme!==null&&eme!==null&&Bh$1(eme,tme[1])?tme[0]:($P.memoizedState=[x_,eme],x_)}function ci$1(x_,eme){var $P=Ih$1();eme=eme===void 0?null:eme;var tme=$P.memoizedState;return tme!==null&&eme!==null&&Bh$1(eme,tme[1])?tme[0]:(x_=x_(),$P.memoizedState=[x_,eme],x_)}function di$1(x_,eme){var $P=eg$1();gg$1(98>$P?98:$P,function(){x_(!0)}),gg$1(97<$P?97:$P,function(){var tme=wh$1.transition;wh$1.transition=1;try{x_(!1),eme()}finally{wh$1.transition=tme}})}function Oh$1(x_,eme,$P){var tme=Hg$1(),ame=Ig$1(x_),nme={lane:ame,action:$P,eagerReducer:null,eagerState:null,next:null},rme=eme.pending;if(rme===null?nme.next=nme:(nme.next=rme.next,rme.next=nme),eme.pending=nme,rme=x_.alternate,x_===R$1||rme!==null&&rme===R$1)zh$1=yh$1=!0;else{if(x_.lanes===0&&(rme===null||rme.lanes===0)&&(rme=eme.lastRenderedReducer,rme!==null))try{var ime=eme.lastRenderedState,ome=rme(ime,$P);if(nme.eagerReducer=rme,nme.eagerState=ome,He$1(ome,ime))return}catch{}finally{}Jg$1(x_,ame,tme)}}var Gh$1={readContext:vg$1,useCallback:Ah$1,useContext:Ah$1,useEffect:Ah$1,useImperativeHandle:Ah$1,useLayoutEffect:Ah$1,useMemo:Ah$1,useReducer:Ah$1,useRef:Ah$1,useState:Ah$1,useDebugValue:Ah$1,useDeferredValue:Ah$1,useTransition:Ah$1,useMutableSource:Ah$1,useOpaqueIdentifier:Ah$1,unstable_isNewReconciler:!1},Dh$1={readContext:vg$1,useCallback:function(x_,eme){return Hh$1().memoizedState=[x_,eme===void 0?null:eme],x_},useContext:vg$1,useEffect:Wh$1,useImperativeHandle:function(x_,eme,$P){return $P=$P!=null?$P.concat([x_]):null,Uh$1(4,2,Zh$1.bind(null,eme,x_),$P)},useLayoutEffect:function(x_,eme){return Uh$1(4,2,x_,eme)},useMemo:function(x_,eme){var $P=Hh$1();return eme=eme===void 0?null:eme,x_=x_(),$P.memoizedState=[x_,eme],x_},useReducer:function(x_,eme,$P){var tme=Hh$1();return eme=$P!==void 0?$P(eme):eme,tme.memoizedState=tme.baseState=eme,x_=tme.queue={pending:null,dispatch:null,lastRenderedReducer:x_,lastRenderedState:eme},x_=x_.dispatch=Oh$1.bind(null,R$1,x_),[tme.memoizedState,x_]},useRef:Sh$1,useState:Qh$1,useDebugValue:ai$1,useDeferredValue:function(x_){var eme=Qh$1(x_),$P=eme[0],tme=eme[1];return Wh$1(function(){var ame=wh$1.transition;wh$1.transition=1;try{tme(x_)}finally{wh$1.transition=ame}},[x_]),$P},useTransition:function(){var x_=Qh$1(!1),eme=x_[0];return x_=di$1.bind(null,x_[1]),Sh$1(x_),[x_,eme]},useMutableSource:function(x_,eme,$P){var tme=Hh$1();return tme.memoizedState={refs:{getSnapshot:eme,setSnapshot:null},source:x_,subscribe:$P},Nh$1(tme,x_,eme,$P)},useOpaqueIdentifier:function(){if(lh$1){var x_=!1,eme=uf$1(function(){throw x_||(x_=!0,$P("r:"+(tf$1++).toString(36))),Error(y$2(355))}),$P=Qh$1(eme)[1];return!(R$1.mode&2)&&(R$1.flags|=516,Rh$1(5,function(){$P("r:"+(tf$1++).toString(36))},void 0,null)),eme}return eme="r:"+(tf$1++).toString(36),Qh$1(eme),eme},unstable_isNewReconciler:!1},Eh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Kh$1,useRef:Th$1,useState:function(){return Kh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var eme=Kh$1(Jh$1),$P=eme[0],tme=eme[1];return Xh$1(function(){var ame=wh$1.transition;wh$1.transition=1;try{tme(x_)}finally{wh$1.transition=ame}},[x_]),$P},useTransition:function(){var x_=Kh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Kh$1(Jh$1)[0]},unstable_isNewReconciler:!1},Fh$1={readContext:vg$1,useCallback:bi$1,useContext:vg$1,useEffect:Xh$1,useImperativeHandle:$h$1,useLayoutEffect:Yh$1,useMemo:ci$1,useReducer:Lh$1,useRef:Th$1,useState:function(){return Lh$1(Jh$1)},useDebugValue:ai$1,useDeferredValue:function(x_){var eme=Lh$1(Jh$1),$P=eme[0],tme=eme[1];return Xh$1(function(){var ame=wh$1.transition;wh$1.transition=1;try{tme(x_)}finally{wh$1.transition=ame}},[x_]),$P},useTransition:function(){var x_=Lh$1(Jh$1)[0];return[Th$1().current,x_]},useMutableSource:Ph$1,useOpaqueIdentifier:function(){return Lh$1(Jh$1)[0]},unstable_isNewReconciler:!1},ei$1=ra$1.ReactCurrentOwner,ug$1=!1;function fi$1(x_,eme,$P,tme){eme.child=x_===null?Zg$1(eme,null,$P,tme):Yg$1(eme,x_.child,$P,tme)}function gi$1(x_,eme,$P,tme,ame){$P=$P.render;var nme=eme.ref;return tg$1(eme,ame),tme=Ch$1(x_,eme,$P,tme,nme,ame),x_!==null&&!ug$1?(eme.updateQueue=x_.updateQueue,eme.flags&=-517,x_.lanes&=~ame,hi$1(x_,eme,ame)):(eme.flags|=1,fi$1(x_,eme,tme,ame),eme.child)}function ii$1(x_,eme,$P,tme,ame,nme){if(x_===null){var rme=$P.type;return typeof rme=="function"&&!ji$1(rme)&&rme.defaultProps===void 0&&$P.compare===null&&$P.defaultProps===void 0?(eme.tag=15,eme.type=rme,ki$1(x_,eme,rme,tme,ame,nme)):(x_=Vg$1($P.type,null,tme,eme,eme.mode,nme),x_.ref=eme.ref,x_.return=eme,eme.child=x_)}return rme=x_.child,!(ame&nme)&&(ame=rme.memoizedProps,$P=$P.compare,$P=$P!==null?$P:Je$1,$P(ame,tme)&&x_.ref===eme.ref)?hi$1(x_,eme,nme):(eme.flags|=1,x_=Tg$1(rme,tme),x_.ref=eme.ref,x_.return=eme,eme.child=x_)}function ki$1(x_,eme,$P,tme,ame,nme){if(x_!==null&&Je$1(x_.memoizedProps,tme)&&x_.ref===eme.ref)if(ug$1=!1,(nme&ame)!==0)x_.flags&16384&&(ug$1=!0);else return eme.lanes=x_.lanes,hi$1(x_,eme,nme);return li$1(x_,eme,$P,tme,nme)}function mi$1(x_,eme,$P){var tme=eme.pendingProps,ame=tme.children,nme=x_!==null?x_.memoizedState:null;if(tme.mode==="hidden"||tme.mode==="unstable-defer-without-hiding")if(!(eme.mode&4))eme.memoizedState={baseLanes:0},ni$1(eme,$P);else if($P&1073741824)eme.memoizedState={baseLanes:0},ni$1(eme,nme!==null?nme.baseLanes:$P);else return x_=nme!==null?nme.baseLanes|$P:$P,eme.lanes=eme.childLanes=1073741824,eme.memoizedState={baseLanes:x_},ni$1(eme,x_),null;else nme!==null?(tme=nme.baseLanes|$P,eme.memoizedState=null):tme=$P,ni$1(eme,tme);return fi$1(x_,eme,ame,$P),eme.child}function oi$1(x_,eme){var $P=eme.ref;(x_===null&&$P!==null||x_!==null&&x_.ref!==$P)&&(eme.flags|=128)}function li$1(x_,eme,$P,tme,ame){var nme=Ff($P)?Df$1:M$1.current;return nme=Ef$1(eme,nme),tg$1(eme,ame),$P=Ch$1(x_,eme,$P,tme,nme,ame),x_!==null&&!ug$1?(eme.updateQueue=x_.updateQueue,eme.flags&=-517,x_.lanes&=~ame,hi$1(x_,eme,ame)):(eme.flags|=1,fi$1(x_,eme,$P,ame),eme.child)}function pi$1(x_,eme,$P,tme,ame){if(Ff($P)){var nme=!0;Jf$1(eme)}else nme=!1;if(tg$1(eme,ame),eme.stateNode===null)x_!==null&&(x_.alternate=null,eme.alternate=null,eme.flags|=2),Mg$1(eme,$P,tme),Og$1(eme,$P,tme,ame),tme=!0;else if(x_===null){var rme=eme.stateNode,ime=eme.memoizedProps;rme.props=ime;var ome=rme.context,lme=$P.contextType;typeof lme=="object"&&lme!==null?lme=vg$1(lme):(lme=Ff($P)?Df$1:M$1.current,lme=Ef$1(eme,lme));var sme=$P.getDerivedStateFromProps,cme=typeof sme=="function"||typeof rme.getSnapshotBeforeUpdate=="function";cme||typeof rme.UNSAFE_componentWillReceiveProps!="function"&&typeof rme.componentWillReceiveProps!="function"||(ime!==tme||ome!==lme)&&Ng$1(eme,rme,tme,lme),wg$1=!1;var dme=eme.memoizedState;rme.state=dme,Cg$1(eme,tme,rme,ame),ome=eme.memoizedState,ime!==tme||dme!==ome||N$1.current||wg$1?(typeof sme=="function"&&(Gg$1(eme,$P,sme,tme),ome=eme.memoizedState),(ime=wg$1||Lg$1(eme,$P,ime,tme,dme,ome,lme))?(cme||typeof rme.UNSAFE_componentWillMount!="function"&&typeof rme.componentWillMount!="function"||(typeof rme.componentWillMount=="function"&&rme.componentWillMount(),typeof rme.UNSAFE_componentWillMount=="function"&&rme.UNSAFE_componentWillMount()),typeof rme.componentDidMount=="function"&&(eme.flags|=4)):(typeof rme.componentDidMount=="function"&&(eme.flags|=4),eme.memoizedProps=tme,eme.memoizedState=ome),rme.props=tme,rme.state=ome,rme.context=lme,tme=ime):(typeof rme.componentDidMount=="function"&&(eme.flags|=4),tme=!1)}else{rme=eme.stateNode,yg$1(x_,eme),ime=eme.memoizedProps,lme=eme.type===eme.elementType?ime:lg$1(eme.type,ime),rme.props=lme,cme=eme.pendingProps,dme=rme.context,ome=$P.contextType,typeof ome=="object"&&ome!==null?ome=vg$1(ome):(ome=Ff($P)?Df$1:M$1.current,ome=Ef$1(eme,ome));var ume=$P.getDerivedStateFromProps;(sme=typeof ume=="function"||typeof rme.getSnapshotBeforeUpdate=="function")||typeof rme.UNSAFE_componentWillReceiveProps!="function"&&typeof rme.componentWillReceiveProps!="function"||(ime!==cme||dme!==ome)&&Ng$1(eme,rme,tme,ome),wg$1=!1,dme=eme.memoizedState,rme.state=dme,Cg$1(eme,tme,rme,ame);var fme=eme.memoizedState;ime!==cme||dme!==fme||N$1.current||wg$1?(typeof ume=="function"&&(Gg$1(eme,$P,ume,tme),fme=eme.memoizedState),(lme=wg$1||Lg$1(eme,$P,lme,tme,dme,fme,ome))?(sme||typeof rme.UNSAFE_componentWillUpdate!="function"&&typeof rme.componentWillUpdate!="function"||(typeof rme.componentWillUpdate=="function"&&rme.componentWillUpdate(tme,fme,ome),typeof rme.UNSAFE_componentWillUpdate=="function"&&rme.UNSAFE_componentWillUpdate(tme,fme,ome)),typeof rme.componentDidUpdate=="function"&&(eme.flags|=4),typeof rme.getSnapshotBeforeUpdate=="function"&&(eme.flags|=256)):(typeof rme.componentDidUpdate!="function"||ime===x_.memoizedProps&&dme===x_.memoizedState||(eme.flags|=4),typeof rme.getSnapshotBeforeUpdate!="function"||ime===x_.memoizedProps&&dme===x_.memoizedState||(eme.flags|=256),eme.memoizedProps=tme,eme.memoizedState=fme),rme.props=tme,rme.state=fme,rme.context=ome,tme=lme):(typeof rme.componentDidUpdate!="function"||ime===x_.memoizedProps&&dme===x_.memoizedState||(eme.flags|=4),typeof rme.getSnapshotBeforeUpdate!="function"||ime===x_.memoizedProps&&dme===x_.memoizedState||(eme.flags|=256),tme=!1)}return qi$1(x_,eme,$P,tme,nme,ame)}function qi$1(x_,eme,$P,tme,ame,nme){oi$1(x_,eme);var rme=(eme.flags&64)!==0;if(!tme&&!rme)return ame&&Kf$1(eme,$P,!1),hi$1(x_,eme,nme);tme=eme.stateNode,ei$1.current=eme;var ime=rme&&typeof $P.getDerivedStateFromError!="function"?null:tme.render();return eme.flags|=1,x_!==null&&rme?(eme.child=Yg$1(eme,x_.child,null,nme),eme.child=Yg$1(eme,null,ime,nme)):fi$1(x_,eme,ime,nme),eme.memoizedState=tme.state,ame&&Kf$1(eme,$P,!0),eme.child}function ri$1(x_){var eme=x_.stateNode;eme.pendingContext?Hf$1(x_,eme.pendingContext,eme.pendingContext!==eme.context):eme.context&&Hf$1(x_,eme.context,!1),eh$1(x_,eme.containerInfo)}var si$1={dehydrated:null,retryLane:0};function ti$1(x_,eme,$P){var tme=eme.pendingProps,ame=P$1.current,nme=!1,rme;return(rme=(eme.flags&64)!==0)||(rme=x_!==null&&x_.memoizedState===null?!1:(ame&2)!==0),rme?(nme=!0,eme.flags&=-65):x_!==null&&x_.memoizedState===null||tme.fallback===void 0||tme.unstable_avoidThisFallback===!0||(ame|=1),I$2(P$1,ame&1),x_===null?(tme.fallback!==void 0&&ph$1(eme),x_=tme.children,ame=tme.fallback,nme?(x_=ui$1(eme,x_,ame,$P),eme.child.memoizedState={baseLanes:$P},eme.memoizedState=si$1,x_):typeof tme.unstable_expectedLoadTime=="number"?(x_=ui$1(eme,x_,ame,$P),eme.child.memoizedState={baseLanes:$P},eme.memoizedState=si$1,eme.lanes=33554432,x_):($P=vi$1({mode:"visible",children:x_},eme.mode,$P,null),$P.return=eme,eme.child=$P)):x_.memoizedState!==null?nme?(tme=wi$1(x_,eme,tme.children,tme.fallback,$P),nme=eme.child,ame=x_.child.memoizedState,nme.memoizedState=ame===null?{baseLanes:$P}:{baseLanes:ame.baseLanes|$P},nme.childLanes=x_.childLanes&~$P,eme.memoizedState=si$1,tme):($P=xi$1(x_,eme,tme.children,$P),eme.memoizedState=null,$P):nme?(tme=wi$1(x_,eme,tme.children,tme.fallback,$P),nme=eme.child,ame=x_.child.memoizedState,nme.memoizedState=ame===null?{baseLanes:$P}:{baseLanes:ame.baseLanes|$P},nme.childLanes=x_.childLanes&~$P,eme.memoizedState=si$1,tme):($P=xi$1(x_,eme,tme.children,$P),eme.memoizedState=null,$P)}function ui$1(x_,eme,$P,tme){var ame=x_.mode,nme=x_.child;return eme={mode:"hidden",children:eme},!(ame&2)&&nme!==null?(nme.childLanes=0,nme.pendingProps=eme):nme=vi$1(eme,ame,0,null),$P=Xg$1($P,ame,tme,null),nme.return=x_,$P.return=x_,nme.sibling=$P,x_.child=nme,$P}function xi$1(x_,eme,$P,tme){var ame=x_.child;return x_=ame.sibling,$P=Tg$1(ame,{mode:"visible",children:$P}),!(eme.mode&2)&&($P.lanes=tme),$P.return=eme,$P.sibling=null,x_!==null&&(x_.nextEffect=null,x_.flags=8,eme.firstEffect=eme.lastEffect=x_),eme.child=$P}function wi$1(x_,eme,$P,tme,ame){var nme=eme.mode,rme=x_.child;x_=rme.sibling;var ime={mode:"hidden",children:$P};return!(nme&2)&&eme.child!==rme?($P=eme.child,$P.childLanes=0,$P.pendingProps=ime,rme=$P.lastEffect,rme!==null?(eme.firstEffect=$P.firstEffect,eme.lastEffect=rme,rme.nextEffect=null):eme.firstEffect=eme.lastEffect=null):$P=Tg$1(rme,ime),x_!==null?tme=Tg$1(x_,tme):(tme=Xg$1(tme,nme,ame,null),tme.flags|=2),tme.return=eme,$P.return=eme,$P.sibling=tme,eme.child=$P,tme}function yi$1(x_,eme){x_.lanes|=eme;var $P=x_.alternate;$P!==null&&($P.lanes|=eme),sg$1(x_.return,eme)}function zi$1(x_,eme,$P,tme,ame,nme){var rme=x_.memoizedState;rme===null?x_.memoizedState={isBackwards:eme,rendering:null,renderingStartTime:0,last:tme,tail:$P,tailMode:ame,lastEffect:nme}:(rme.isBackwards=eme,rme.rendering=null,rme.renderingStartTime=0,rme.last=tme,rme.tail=$P,rme.tailMode=ame,rme.lastEffect=nme)}function Ai$1(x_,eme,$P){var tme=eme.pendingProps,ame=tme.revealOrder,nme=tme.tail;if(fi$1(x_,eme,tme.children,$P),tme=P$1.current,tme&2)tme=tme&1|2,eme.flags|=64;else{if(x_!==null&&x_.flags&64)e:for(x_=eme.child;x_!==null;){if(x_.tag===13)x_.memoizedState!==null&&yi$1(x_,$P);else if(x_.tag===19)yi$1(x_,$P);else if(x_.child!==null){x_.child.return=x_,x_=x_.child;continue}if(x_===eme)break e;for(;x_.sibling===null;){if(x_.return===null||x_.return===eme)break e;x_=x_.return}x_.sibling.return=x_.return,x_=x_.sibling}tme&=1}if(I$2(P$1,tme),!(eme.mode&2))eme.memoizedState=null;else switch(ame){case"forwards":for($P=eme.child,ame=null;$P!==null;)x_=$P.alternate,x_!==null&&ih$1(x_)===null&&(ame=$P),$P=$P.sibling;$P=ame,$P===null?(ame=eme.child,eme.child=null):(ame=$P.sibling,$P.sibling=null),zi$1(eme,!1,ame,$P,nme,eme.lastEffect);break;case"backwards":for($P=null,ame=eme.child,eme.child=null;ame!==null;){if(x_=ame.alternate,x_!==null&&ih$1(x_)===null){eme.child=ame;break}x_=ame.sibling,ame.sibling=$P,$P=ame,ame=x_}zi$1(eme,!0,$P,null,nme,eme.lastEffect);break;case"together":zi$1(eme,!1,null,null,void 0,eme.lastEffect);break;default:eme.memoizedState=null}return eme.child}function hi$1(x_,eme,$P){if(x_!==null&&(eme.dependencies=x_.dependencies),Dg$1|=eme.lanes,$P&eme.childLanes){if(x_!==null&&eme.child!==x_.child)throw Error(y$2(153));if(eme.child!==null){for(x_=eme.child,$P=Tg$1(x_,x_.pendingProps),eme.child=$P,$P.return=eme;x_.sibling!==null;)x_=x_.sibling,$P=$P.sibling=Tg$1(x_,x_.pendingProps),$P.return=eme;$P.sibling=null}return eme.child}return null}var Bi$1,Ci$1,Di$1,Ei$1;Bi$1=function(x_,eme){for(var $P=eme.child;$P!==null;){if($P.tag===5||$P.tag===6)x_.appendChild($P.stateNode);else if($P.tag!==4&&$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===eme)break;for(;$P.sibling===null;){if($P.return===null||$P.return===eme)return;$P=$P.return}$P.sibling.return=$P.return,$P=$P.sibling}};Ci$1=function(){};Di$1=function(x_,eme,$P,tme){var ame=x_.memoizedProps;if(ame!==tme){x_=eme.stateNode,dh$1(ah$1.current);var nme=null;switch($P){case"input":ame=Ya$1(x_,ame),tme=Ya$1(x_,tme),nme=[];break;case"option":ame=eb$1(x_,ame),tme=eb$1(x_,tme),nme=[];break;case"select":ame=m$4({},ame,{value:void 0}),tme=m$4({},tme,{value:void 0}),nme=[];break;case"textarea":ame=gb$1(x_,ame),tme=gb$1(x_,tme),nme=[];break;default:typeof ame.onClick!="function"&&typeof tme.onClick=="function"&&(x_.onclick=jf$1)}vb$1($P,tme);var rme;$P=null;for(lme in ame)if(!tme.hasOwnProperty(lme)&&ame.hasOwnProperty(lme)&&ame[lme]!=null)if(lme==="style"){var ime=ame[lme];for(rme in ime)ime.hasOwnProperty(rme)&&($P||($P={}),$P[rme]="")}else lme!=="dangerouslySetInnerHTML"&&lme!=="children"&&lme!=="suppressContentEditableWarning"&&lme!=="suppressHydrationWarning"&&lme!=="autoFocus"&&(ca$1.hasOwnProperty(lme)?nme||(nme=[]):(nme=nme||[]).push(lme,null));for(lme in tme){var ome=tme[lme];if(ime=ame!=null?ame[lme]:void 0,tme.hasOwnProperty(lme)&&ome!==ime&&(ome!=null||ime!=null))if(lme==="style")if(ime){for(rme in ime)!ime.hasOwnProperty(rme)||ome&&ome.hasOwnProperty(rme)||($P||($P={}),$P[rme]="");for(rme in ome)ome.hasOwnProperty(rme)&&ime[rme]!==ome[rme]&&($P||($P={}),$P[rme]=ome[rme])}else $P||(nme||(nme=[]),nme.push(lme,$P)),$P=ome;else lme==="dangerouslySetInnerHTML"?(ome=ome?ome.__html:void 0,ime=ime?ime.__html:void 0,ome!=null&&ime!==ome&&(nme=nme||[]).push(lme,ome)):lme==="children"?typeof ome!="string"&&typeof ome!="number"||(nme=nme||[]).push(lme,""+ome):lme!=="suppressContentEditableWarning"&&lme!=="suppressHydrationWarning"&&(ca$1.hasOwnProperty(lme)?(ome!=null&&lme==="onScroll"&&G$2("scroll",x_),nme||ime===ome||(nme=[])):typeof ome=="object"&&ome!==null&&ome.$$typeof===Ga$1?ome.toString():(nme=nme||[]).push(lme,ome))}$P&&(nme=nme||[]).push("style",$P);var lme=nme;(eme.updateQueue=lme)&&(eme.flags|=4)}};Ei$1=function(x_,eme,$P,tme){$P!==tme&&(eme.flags|=4)};function Fi$1(x_,eme){if(!lh$1)switch(x_.tailMode){case"hidden":eme=x_.tail;for(var $P=null;eme!==null;)eme.alternate!==null&&($P=eme),eme=eme.sibling;$P===null?x_.tail=null:$P.sibling=null;break;case"collapsed":$P=x_.tail;for(var tme=null;$P!==null;)$P.alternate!==null&&(tme=$P),$P=$P.sibling;tme===null?eme||x_.tail===null?x_.tail=null:x_.tail.sibling=null:tme.sibling=null}}function Gi$1(x_,eme,$P){var tme=eme.pendingProps;switch(eme.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ff(eme.type)&&Gf$1(),null;case 3:return fh$1(),H$2(N$1),H$2(M$1),uh$1(),tme=eme.stateNode,tme.pendingContext&&(tme.context=tme.pendingContext,tme.pendingContext=null),(x_===null||x_.child===null)&&(rh$1(eme)?eme.flags|=4:tme.hydrate||(eme.flags|=256)),Ci$1(eme),null;case 5:hh$1(eme);var ame=dh$1(ch$1.current);if($P=eme.type,x_!==null&&eme.stateNode!=null)Di$1(x_,eme,$P,tme,ame),x_.ref!==eme.ref&&(eme.flags|=128);else{if(!tme){if(eme.stateNode===null)throw Error(y$2(166));return null}if(x_=dh$1(ah$1.current),rh$1(eme)){tme=eme.stateNode,$P=eme.type;var nme=eme.memoizedProps;switch(tme[wf$1]=eme,tme[xf$1]=nme,$P){case"dialog":G$2("cancel",tme),G$2("close",tme);break;case"iframe":case"object":case"embed":G$2("load",tme);break;case"video":case"audio":for(x_=0;x_<Xe$1.length;x_++)G$2(Xe$1[x_],tme);break;case"source":G$2("error",tme);break;case"img":case"image":case"link":G$2("error",tme),G$2("load",tme);break;case"details":G$2("toggle",tme);break;case"input":Za$1(tme,nme),G$2("invalid",tme);break;case"select":tme._wrapperState={wasMultiple:!!nme.multiple},G$2("invalid",tme);break;case"textarea":hb$1(tme,nme),G$2("invalid",tme)}vb$1($P,nme),x_=null;for(var rme in nme)nme.hasOwnProperty(rme)&&(ame=nme[rme],rme==="children"?typeof ame=="string"?tme.textContent!==ame&&(x_=["children",ame]):typeof ame=="number"&&tme.textContent!==""+ame&&(x_=["children",""+ame]):ca$1.hasOwnProperty(rme)&&ame!=null&&rme==="onScroll"&&G$2("scroll",tme));switch($P){case"input":Va$1(tme),cb$1(tme,nme,!0);break;case"textarea":Va$1(tme),jb$1(tme);break;case"select":case"option":break;default:typeof nme.onClick=="function"&&(tme.onclick=jf$1)}tme=x_,eme.updateQueue=tme,tme!==null&&(eme.flags|=4)}else{switch(rme=ame.nodeType===9?ame:ame.ownerDocument,x_===kb$1.html&&(x_=lb$1($P)),x_===kb$1.html?$P==="script"?(x_=rme.createElement("div"),x_.innerHTML="<script><\/script>",x_=x_.removeChild(x_.firstChild)):typeof tme.is=="string"?x_=rme.createElement($P,{is:tme.is}):(x_=rme.createElement($P),$P==="select"&&(rme=x_,tme.multiple?rme.multiple=!0:tme.size&&(rme.size=tme.size))):x_=rme.createElementNS(x_,$P),x_[wf$1]=eme,x_[xf$1]=tme,Bi$1(x_,eme,!1,!1),eme.stateNode=x_,rme=wb$1($P,tme),$P){case"dialog":G$2("cancel",x_),G$2("close",x_),ame=tme;break;case"iframe":case"object":case"embed":G$2("load",x_),ame=tme;break;case"video":case"audio":for(ame=0;ame<Xe$1.length;ame++)G$2(Xe$1[ame],x_);ame=tme;break;case"source":G$2("error",x_),ame=tme;break;case"img":case"image":case"link":G$2("error",x_),G$2("load",x_),ame=tme;break;case"details":G$2("toggle",x_),ame=tme;break;case"input":Za$1(x_,tme),ame=Ya$1(x_,tme),G$2("invalid",x_);break;case"option":ame=eb$1(x_,tme);break;case"select":x_._wrapperState={wasMultiple:!!tme.multiple},ame=m$4({},tme,{value:void 0}),G$2("invalid",x_);break;case"textarea":hb$1(x_,tme),ame=gb$1(x_,tme),G$2("invalid",x_);break;default:ame=tme}vb$1($P,ame);var ime=ame;for(nme in ime)if(ime.hasOwnProperty(nme)){var ome=ime[nme];nme==="style"?tb$1(x_,ome):nme==="dangerouslySetInnerHTML"?(ome=ome?ome.__html:void 0,ome!=null&&ob$1(x_,ome)):nme==="children"?typeof ome=="string"?($P!=="textarea"||ome!=="")&&pb$1(x_,ome):typeof ome=="number"&&pb$1(x_,""+ome):nme!=="suppressContentEditableWarning"&&nme!=="suppressHydrationWarning"&&nme!=="autoFocus"&&(ca$1.hasOwnProperty(nme)?ome!=null&&nme==="onScroll"&&G$2("scroll",x_):ome!=null&&qa$1(x_,nme,ome,rme))}switch($P){case"input":Va$1(x_),cb$1(x_,tme,!1);break;case"textarea":Va$1(x_),jb$1(x_);break;case"option":tme.value!=null&&x_.setAttribute("value",""+Sa$1(tme.value));break;case"select":x_.multiple=!!tme.multiple,nme=tme.value,nme!=null?fb$1(x_,!!tme.multiple,nme,!1):tme.defaultValue!=null&&fb$1(x_,!!tme.multiple,tme.defaultValue,!0);break;default:typeof ame.onClick=="function"&&(x_.onclick=jf$1)}mf$1($P,tme)&&(eme.flags|=4)}eme.ref!==null&&(eme.flags|=128)}return null;case 6:if(x_&&eme.stateNode!=null)Ei$1(x_,eme,x_.memoizedProps,tme);else{if(typeof tme!="string"&&eme.stateNode===null)throw Error(y$2(166));$P=dh$1(ch$1.current),dh$1(ah$1.current),rh$1(eme)?(tme=eme.stateNode,$P=eme.memoizedProps,tme[wf$1]=eme,tme.nodeValue!==$P&&(eme.flags|=4)):(tme=($P.nodeType===9?$P:$P.ownerDocument).createTextNode(tme),tme[wf$1]=eme,eme.stateNode=tme)}return null;case 13:return H$2(P$1),tme=eme.memoizedState,eme.flags&64?(eme.lanes=$P,eme):(tme=tme!==null,$P=!1,x_===null?eme.memoizedProps.fallback!==void 0&&rh$1(eme):$P=x_.memoizedState!==null,tme&&!$P&&eme.mode&2&&(x_===null&&eme.memoizedProps.unstable_avoidThisFallback!==!0||P$1.current&1?V$1===0&&(V$1=3):((V$1===0||V$1===3)&&(V$1=4),U$1===null||!(Dg$1&134217727)&&!(Hi$1&134217727)||Ii$1(U$1,W$1))),(tme||$P)&&(eme.flags|=4),null);case 4:return fh$1(),Ci$1(eme),x_===null&&cf$1(eme.stateNode.containerInfo),null;case 10:return rg$1(eme),null;case 17:return Ff(eme.type)&&Gf$1(),null;case 19:if(H$2(P$1),tme=eme.memoizedState,tme===null)return null;if(nme=(eme.flags&64)!==0,rme=tme.rendering,rme===null)if(nme)Fi$1(tme,!1);else{if(V$1!==0||x_!==null&&x_.flags&64)for(x_=eme.child;x_!==null;){if(rme=ih$1(x_),rme!==null){for(eme.flags|=64,Fi$1(tme,!1),nme=rme.updateQueue,nme!==null&&(eme.updateQueue=nme,eme.flags|=4),tme.lastEffect===null&&(eme.firstEffect=null),eme.lastEffect=tme.lastEffect,tme=$P,$P=eme.child;$P!==null;)nme=$P,x_=tme,nme.flags&=2,nme.nextEffect=null,nme.firstEffect=null,nme.lastEffect=null,rme=nme.alternate,rme===null?(nme.childLanes=0,nme.lanes=x_,nme.child=null,nme.memoizedProps=null,nme.memoizedState=null,nme.updateQueue=null,nme.dependencies=null,nme.stateNode=null):(nme.childLanes=rme.childLanes,nme.lanes=rme.lanes,nme.child=rme.child,nme.memoizedProps=rme.memoizedProps,nme.memoizedState=rme.memoizedState,nme.updateQueue=rme.updateQueue,nme.type=rme.type,x_=rme.dependencies,nme.dependencies=x_===null?null:{lanes:x_.lanes,firstContext:x_.firstContext}),$P=$P.sibling;return I$2(P$1,P$1.current&1|2),eme.child}x_=x_.sibling}tme.tail!==null&&O$1()>Ji$1&&(eme.flags|=64,nme=!0,Fi$1(tme,!1),eme.lanes=33554432)}else{if(!nme)if(x_=ih$1(rme),x_!==null){if(eme.flags|=64,nme=!0,$P=x_.updateQueue,$P!==null&&(eme.updateQueue=$P,eme.flags|=4),Fi$1(tme,!0),tme.tail===null&&tme.tailMode==="hidden"&&!rme.alternate&&!lh$1)return eme=eme.lastEffect=tme.lastEffect,eme!==null&&(eme.nextEffect=null),null}else 2*O$1()-tme.renderingStartTime>Ji$1&&$P!==1073741824&&(eme.flags|=64,nme=!0,Fi$1(tme,!1),eme.lanes=33554432);tme.isBackwards?(rme.sibling=eme.child,eme.child=rme):($P=tme.last,$P!==null?$P.sibling=rme:eme.child=rme,tme.last=rme)}return tme.tail!==null?($P=tme.tail,tme.rendering=$P,tme.tail=$P.sibling,tme.lastEffect=eme.lastEffect,tme.renderingStartTime=O$1(),$P.sibling=null,eme=P$1.current,I$2(P$1,nme?eme&1|2:eme&1),$P):null;case 23:case 24:return Ki$1(),x_!==null&&x_.memoizedState!==null!=(eme.memoizedState!==null)&&tme.mode!=="unstable-defer-without-hiding"&&(eme.flags|=4),null}throw Error(y$2(156,eme.tag))}function Li$1(x_){switch(x_.tag){case 1:Ff(x_.type)&&Gf$1();var eme=x_.flags;return eme&4096?(x_.flags=eme&-4097|64,x_):null;case 3:if(fh$1(),H$2(N$1),H$2(M$1),uh$1(),eme=x_.flags,eme&64)throw Error(y$2(285));return x_.flags=eme&-4097|64,x_;case 5:return hh$1(x_),null;case 13:return H$2(P$1),eme=x_.flags,eme&4096?(x_.flags=eme&-4097|64,x_):null;case 19:return H$2(P$1),null;case 4:return fh$1(),null;case 10:return rg$1(x_),null;case 23:case 24:return Ki$1(),null;default:return null}}function Mi$1(x_,eme){try{var $P="",tme=eme;do $P+=Qa$1(tme),tme=tme.return;while(tme);var ame=$P}catch(nme){ame=`
Error generating stack: `+nme.message+`
`+nme.stack}return{value:x_,source:eme,stack:ame}}function Ni$1(x_,eme){try{console.error(eme.value)}catch($P){setTimeout(function(){throw $P})}}var Oi$1=typeof WeakMap=="function"?WeakMap:Map;function Pi$1(x_,eme,$P){$P=zg$1(-1,$P),$P.tag=3,$P.payload={element:null};var tme=eme.value;return $P.callback=function(){Qi$1||(Qi$1=!0,Ri$1=tme),Ni$1(x_,eme)},$P}function Si$1(x_,eme,$P){$P=zg$1(-1,$P),$P.tag=3;var tme=x_.type.getDerivedStateFromError;if(typeof tme=="function"){var ame=eme.value;$P.payload=function(){return Ni$1(x_,eme),tme(ame)}}var nme=x_.stateNode;return nme!==null&&typeof nme.componentDidCatch=="function"&&($P.callback=function(){typeof tme!="function"&&(Ti$1===null?Ti$1=new Set([this]):Ti$1.add(this),Ni$1(x_,eme));var rme=eme.stack;this.componentDidCatch(eme.value,{componentStack:rme!==null?rme:""})}),$P}var Ui$1=typeof WeakSet=="function"?WeakSet:Set;function Vi$1(x_){var eme=x_.ref;if(eme!==null)if(typeof eme=="function")try{eme(null)}catch($P){Wi$1(x_,$P)}else eme.current=null}function Xi$1(x_,eme){switch(eme.tag){case 0:case 11:case 15:case 22:return;case 1:if(eme.flags&256&&x_!==null){var $P=x_.memoizedProps,tme=x_.memoizedState;x_=eme.stateNode,eme=x_.getSnapshotBeforeUpdate(eme.elementType===eme.type?$P:lg$1(eme.type,$P),tme),x_.__reactInternalSnapshotBeforeUpdate=eme}return;case 3:eme.flags&256&&qf$1(eme.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(y$2(163))}function Yi$1(x_,eme,$P){switch($P.tag){case 0:case 11:case 15:case 22:if(eme=$P.updateQueue,eme=eme!==null?eme.lastEffect:null,eme!==null){x_=eme=eme.next;do{if((x_.tag&3)===3){var tme=x_.create;x_.destroy=tme()}x_=x_.next}while(x_!==eme)}if(eme=$P.updateQueue,eme=eme!==null?eme.lastEffect:null,eme!==null){x_=eme=eme.next;do{var ame=x_;tme=ame.next,ame=ame.tag,ame&4&&ame&1&&(Zi$1($P,x_),$i$1($P,x_)),x_=tme}while(x_!==eme)}return;case 1:x_=$P.stateNode,$P.flags&4&&(eme===null?x_.componentDidMount():(tme=$P.elementType===$P.type?eme.memoizedProps:lg$1($P.type,eme.memoizedProps),x_.componentDidUpdate(tme,eme.memoizedState,x_.__reactInternalSnapshotBeforeUpdate))),eme=$P.updateQueue,eme!==null&&Eg$1($P,eme,x_);return;case 3:if(eme=$P.updateQueue,eme!==null){if(x_=null,$P.child!==null)switch($P.child.tag){case 5:x_=$P.child.stateNode;break;case 1:x_=$P.child.stateNode}Eg$1($P,eme,x_)}return;case 5:x_=$P.stateNode,eme===null&&$P.flags&4&&mf$1($P.type,$P.memoizedProps)&&x_.focus();return;case 6:return;case 4:return;case 12:return;case 13:$P.memoizedState===null&&($P=$P.alternate,$P!==null&&($P=$P.memoizedState,$P!==null&&($P=$P.dehydrated,$P!==null&&Cc$1($P))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(y$2(163))}function aj$1(x_,eme){for(var $P=x_;;){if($P.tag===5){var tme=$P.stateNode;if(eme)tme=tme.style,typeof tme.setProperty=="function"?tme.setProperty("display","none","important"):tme.display="none";else{tme=$P.stateNode;var ame=$P.memoizedProps.style;ame=ame!=null&&ame.hasOwnProperty("display")?ame.display:null,tme.style.display=sb$1("display",ame)}}else if($P.tag===6)$P.stateNode.nodeValue=eme?"":$P.memoizedProps;else if(($P.tag!==23&&$P.tag!==24||$P.memoizedState===null||$P===x_)&&$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===x_)break;for(;$P.sibling===null;){if($P.return===null||$P.return===x_)return;$P=$P.return}$P.sibling.return=$P.return,$P=$P.sibling}}function bj$1(x_,eme){if(Mf$1&&typeof Mf$1.onCommitFiberUnmount=="function")try{Mf$1.onCommitFiberUnmount(Lf$1,eme)}catch{}switch(eme.tag){case 0:case 11:case 14:case 15:case 22:if(x_=eme.updateQueue,x_!==null&&(x_=x_.lastEffect,x_!==null)){var $P=x_=x_.next;do{var tme=$P,ame=tme.destroy;if(tme=tme.tag,ame!==void 0)if(tme&4)Zi$1(eme,$P);else{tme=eme;try{ame()}catch(nme){Wi$1(tme,nme)}}$P=$P.next}while($P!==x_)}break;case 1:if(Vi$1(eme),x_=eme.stateNode,typeof x_.componentWillUnmount=="function")try{x_.props=eme.memoizedProps,x_.state=eme.memoizedState,x_.componentWillUnmount()}catch(nme){Wi$1(eme,nme)}break;case 5:Vi$1(eme);break;case 4:cj$1(x_,eme)}}function dj$1(x_){x_.alternate=null,x_.child=null,x_.dependencies=null,x_.firstEffect=null,x_.lastEffect=null,x_.memoizedProps=null,x_.memoizedState=null,x_.pendingProps=null,x_.return=null,x_.updateQueue=null}function ej$1(x_){return x_.tag===5||x_.tag===3||x_.tag===4}function fj$1(x_){e:{for(var eme=x_.return;eme!==null;){if(ej$1(eme))break e;eme=eme.return}throw Error(y$2(160))}var $P=eme;switch(eme=$P.stateNode,$P.tag){case 5:var tme=!1;break;case 3:eme=eme.containerInfo,tme=!0;break;case 4:eme=eme.containerInfo,tme=!0;break;default:throw Error(y$2(161))}$P.flags&16&&(pb$1(eme,""),$P.flags&=-17);e:t:for($P=x_;;){for(;$P.sibling===null;){if($P.return===null||ej$1($P.return)){$P=null;break e}$P=$P.return}for($P.sibling.return=$P.return,$P=$P.sibling;$P.tag!==5&&$P.tag!==6&&$P.tag!==18;){if($P.flags&2||$P.child===null||$P.tag===4)continue t;$P.child.return=$P,$P=$P.child}if(!($P.flags&2)){$P=$P.stateNode;break e}}tme?gj$1(x_,$P,eme):hj$1(x_,$P,eme)}function gj$1(x_,eme,$P){var tme=x_.tag,ame=tme===5||tme===6;if(ame)x_=ame?x_.stateNode:x_.stateNode.instance,eme?$P.nodeType===8?$P.parentNode.insertBefore(x_,eme):$P.insertBefore(x_,eme):($P.nodeType===8?(eme=$P.parentNode,eme.insertBefore(x_,$P)):(eme=$P,eme.appendChild(x_)),$P=$P._reactRootContainer,$P!=null||eme.onclick!==null||(eme.onclick=jf$1));else if(tme!==4&&(x_=x_.child,x_!==null))for(gj$1(x_,eme,$P),x_=x_.sibling;x_!==null;)gj$1(x_,eme,$P),x_=x_.sibling}function hj$1(x_,eme,$P){var tme=x_.tag,ame=tme===5||tme===6;if(ame)x_=ame?x_.stateNode:x_.stateNode.instance,eme?$P.insertBefore(x_,eme):$P.appendChild(x_);else if(tme!==4&&(x_=x_.child,x_!==null))for(hj$1(x_,eme,$P),x_=x_.sibling;x_!==null;)hj$1(x_,eme,$P),x_=x_.sibling}function cj$1(x_,eme){for(var $P=eme,tme=!1,ame,nme;;){if(!tme){tme=$P.return;e:for(;;){if(tme===null)throw Error(y$2(160));switch(ame=tme.stateNode,tme.tag){case 5:nme=!1;break e;case 3:ame=ame.containerInfo,nme=!0;break e;case 4:ame=ame.containerInfo,nme=!0;break e}tme=tme.return}tme=!0}if($P.tag===5||$P.tag===6){e:for(var rme=x_,ime=$P,ome=ime;;)if(bj$1(rme,ome),ome.child!==null&&ome.tag!==4)ome.child.return=ome,ome=ome.child;else{if(ome===ime)break e;for(;ome.sibling===null;){if(ome.return===null||ome.return===ime)break e;ome=ome.return}ome.sibling.return=ome.return,ome=ome.sibling}nme?(rme=ame,ime=$P.stateNode,rme.nodeType===8?rme.parentNode.removeChild(ime):rme.removeChild(ime)):ame.removeChild($P.stateNode)}else if($P.tag===4){if($P.child!==null){ame=$P.stateNode.containerInfo,nme=!0,$P.child.return=$P,$P=$P.child;continue}}else if(bj$1(x_,$P),$P.child!==null){$P.child.return=$P,$P=$P.child;continue}if($P===eme)break;for(;$P.sibling===null;){if($P.return===null||$P.return===eme)return;$P=$P.return,$P.tag===4&&(tme=!1)}$P.sibling.return=$P.return,$P=$P.sibling}}function ij$1(x_,eme){switch(eme.tag){case 0:case 11:case 14:case 15:case 22:var $P=eme.updateQueue;if($P=$P!==null?$P.lastEffect:null,$P!==null){var tme=$P=$P.next;do(tme.tag&3)===3&&(x_=tme.destroy,tme.destroy=void 0,x_!==void 0&&x_()),tme=tme.next;while(tme!==$P)}return;case 1:return;case 5:if($P=eme.stateNode,$P!=null){tme=eme.memoizedProps;var ame=x_!==null?x_.memoizedProps:tme;x_=eme.type;var nme=eme.updateQueue;if(eme.updateQueue=null,nme!==null){for($P[xf$1]=tme,x_==="input"&&tme.type==="radio"&&tme.name!=null&&$a$1($P,tme),wb$1(x_,ame),eme=wb$1(x_,tme),ame=0;ame<nme.length;ame+=2){var rme=nme[ame],ime=nme[ame+1];rme==="style"?tb$1($P,ime):rme==="dangerouslySetInnerHTML"?ob$1($P,ime):rme==="children"?pb$1($P,ime):qa$1($P,rme,ime,eme)}switch(x_){case"input":ab$1($P,tme);break;case"textarea":ib$1($P,tme);break;case"select":x_=$P._wrapperState.wasMultiple,$P._wrapperState.wasMultiple=!!tme.multiple,nme=tme.value,nme!=null?fb$1($P,!!tme.multiple,nme,!1):x_!==!!tme.multiple&&(tme.defaultValue!=null?fb$1($P,!!tme.multiple,tme.defaultValue,!0):fb$1($P,!!tme.multiple,tme.multiple?[]:"",!1))}}}return;case 6:if(eme.stateNode===null)throw Error(y$2(162));eme.stateNode.nodeValue=eme.memoizedProps;return;case 3:$P=eme.stateNode,$P.hydrate&&($P.hydrate=!1,Cc$1($P.containerInfo));return;case 12:return;case 13:eme.memoizedState!==null&&(jj$1=O$1(),aj$1(eme.child,!0)),kj$1(eme);return;case 19:kj$1(eme);return;case 17:return;case 23:case 24:aj$1(eme,eme.memoizedState!==null);return}throw Error(y$2(163))}function kj$1(x_){var eme=x_.updateQueue;if(eme!==null){x_.updateQueue=null;var $P=x_.stateNode;$P===null&&($P=x_.stateNode=new Ui$1),eme.forEach(function(tme){var ame=lj$1.bind(null,x_,tme);$P.has(tme)||($P.add(tme),tme.then(ame,ame))})}}function mj$1(x_,eme){return x_!==null&&(x_=x_.memoizedState,x_===null||x_.dehydrated!==null)?(eme=eme.memoizedState,eme!==null&&eme.dehydrated===null):!1}var nj$1=Math.ceil,oj$1=ra$1.ReactCurrentDispatcher,pj$1=ra$1.ReactCurrentOwner,X$1=0,U$1=null,Y$1=null,W$1=0,qj$1=0,rj$1=Bf$1(0),V$1=0,sj$1=null,tj$1=0,Dg$1=0,Hi$1=0,uj$1=0,vj$1=null,jj$1=0,Ji$1=1/0;function wj$1(){Ji$1=O$1()+500}var Z$1=null,Qi$1=!1,Ri$1=null,Ti$1=null,xj$1=!1,yj$1=null,zj$1=90,Aj$1=[],Bj$1=[],Cj$1=null,Dj$1=0,Ej$1=null,Fj$1=-1,Gj$1=0,Hj$1=0,Ij$1=null,Jj$1=!1;function Hg$1(){return X$1&48?O$1():Fj$1!==-1?Fj$1:Fj$1=O$1()}function Ig$1(x_){if(x_=x_.mode,!(x_&2))return 1;if(!(x_&4))return eg$1()===99?1:2;if(Gj$1===0&&(Gj$1=tj$1),kg$1.transition!==0){Hj$1!==0&&(Hj$1=vj$1!==null?vj$1.pendingLanes:0),x_=Gj$1;var eme=4186112&~Hj$1;return eme&=-eme,eme===0&&(x_=4186112&~x_,eme=x_&-x_,eme===0&&(eme=8192)),eme}return x_=eg$1(),X$1&4&&x_===98?x_=Xc$1(12,Gj$1):(x_=Sc$1(x_),x_=Xc$1(x_,Gj$1)),x_}function Jg$1(x_,eme,$P){if(50<Dj$1)throw Dj$1=0,Ej$1=null,Error(y$2(185));if(x_=Kj$1(x_,eme),x_===null)return null;$c$1(x_,eme,$P),x_===U$1&&(Hi$1|=eme,V$1===4&&Ii$1(x_,W$1));var tme=eg$1();eme===1?X$1&8&&!(X$1&48)?Lj$1(x_):(Mj$1(x_,$P),X$1===0&&(wj$1(),ig$1())):(!(X$1&4)||tme!==98&&tme!==99||(Cj$1===null?Cj$1=new Set([x_]):Cj$1.add(x_)),Mj$1(x_,$P)),vj$1=x_}function Kj$1(x_,eme){x_.lanes|=eme;var $P=x_.alternate;for($P!==null&&($P.lanes|=eme),$P=x_,x_=x_.return;x_!==null;)x_.childLanes|=eme,$P=x_.alternate,$P!==null&&($P.childLanes|=eme),$P=x_,x_=x_.return;return $P.tag===3?$P.stateNode:null}function Mj$1(x_,eme){for(var $P=x_.callbackNode,tme=x_.suspendedLanes,ame=x_.pingedLanes,nme=x_.expirationTimes,rme=x_.pendingLanes;0<rme;){var ime=31-Vc$1(rme),ome=1<<ime,lme=nme[ime];if(lme===-1){if(!(ome&tme)||ome&ame){lme=eme,Rc$1(ome);var sme=F$2;nme[ime]=10<=sme?lme+250:6<=sme?lme+5e3:-1}}else lme<=eme&&(x_.expiredLanes|=ome);rme&=~ome}if(tme=Uc$1(x_,x_===U$1?W$1:0),eme=F$2,tme===0)$P!==null&&($P!==Zf$1&&Pf$1($P),x_.callbackNode=null,x_.callbackPriority=0);else{if($P!==null){if(x_.callbackPriority===eme)return;$P!==Zf$1&&Pf$1($P)}eme===15?($P=Lj$1.bind(null,x_),ag$1===null?(ag$1=[$P],bg$2=Of$1(Uf$1,jg$1)):ag$1.push($P),$P=Zf$1):eme===14?$P=hg$1(99,Lj$1.bind(null,x_)):($P=Tc$1(eme),$P=hg$1($P,Nj$1.bind(null,x_))),x_.callbackPriority=eme,x_.callbackNode=$P}}function Nj$1(x_){if(Fj$1=-1,Hj$1=Gj$1=0,X$1&48)throw Error(y$2(327));var eme=x_.callbackNode;if(Oj$1()&&x_.callbackNode!==eme)return null;var $P=Uc$1(x_,x_===U$1?W$1:0);if($P===0)return null;var tme=$P,ame=X$1;X$1|=16;var nme=Pj$1();(U$1!==x_||W$1!==tme)&&(wj$1(),Qj$1(x_,tme));do try{Rj$1();break}catch(ime){Sj$1(x_,ime)}while(!0);if(qg$1(),oj$1.current=nme,X$1=ame,Y$1!==null?tme=0:(U$1=null,W$1=0,tme=V$1),tj$1&Hi$1)Qj$1(x_,0);else if(tme!==0){if(tme===2&&(X$1|=64,x_.hydrate&&(x_.hydrate=!1,qf$1(x_.containerInfo)),$P=Wc$1(x_),$P!==0&&(tme=Tj$1(x_,$P))),tme===1)throw eme=sj$1,Qj$1(x_,0),Ii$1(x_,$P),Mj$1(x_,O$1()),eme;switch(x_.finishedWork=x_.current.alternate,x_.finishedLanes=$P,tme){case 0:case 1:throw Error(y$2(345));case 2:Uj$1(x_);break;case 3:if(Ii$1(x_,$P),($P&62914560)===$P&&(tme=jj$1+500-O$1(),10<tme)){if(Uc$1(x_,0)!==0)break;if(ame=x_.suspendedLanes,(ame&$P)!==$P){Hg$1(),x_.pingedLanes|=x_.suspendedLanes&ame;break}x_.timeoutHandle=of$1(Uj$1.bind(null,x_),tme);break}Uj$1(x_);break;case 4:if(Ii$1(x_,$P),($P&4186112)===$P)break;for(tme=x_.eventTimes,ame=-1;0<$P;){var rme=31-Vc$1($P);nme=1<<rme,rme=tme[rme],rme>ame&&(ame=rme),$P&=~nme}if($P=ame,$P=O$1()-$P,$P=(120>$P?120:480>$P?480:1080>$P?1080:1920>$P?1920:3e3>$P?3e3:4320>$P?4320:1960*nj$1($P/1960))-$P,10<$P){x_.timeoutHandle=of$1(Uj$1.bind(null,x_),$P);break}Uj$1(x_);break;case 5:Uj$1(x_);break;default:throw Error(y$2(329))}}return Mj$1(x_,O$1()),x_.callbackNode===eme?Nj$1.bind(null,x_):null}function Ii$1(x_,eme){for(eme&=~uj$1,eme&=~Hi$1,x_.suspendedLanes|=eme,x_.pingedLanes&=~eme,x_=x_.expirationTimes;0<eme;){var $P=31-Vc$1(eme),tme=1<<$P;x_[$P]=-1,eme&=~tme}}function Lj$1(x_){if(X$1&48)throw Error(y$2(327));if(Oj$1(),x_===U$1&&x_.expiredLanes&W$1){var eme=W$1,$P=Tj$1(x_,eme);tj$1&Hi$1&&(eme=Uc$1(x_,eme),$P=Tj$1(x_,eme))}else eme=Uc$1(x_,0),$P=Tj$1(x_,eme);if(x_.tag!==0&&$P===2&&(X$1|=64,x_.hydrate&&(x_.hydrate=!1,qf$1(x_.containerInfo)),eme=Wc$1(x_),eme!==0&&($P=Tj$1(x_,eme))),$P===1)throw $P=sj$1,Qj$1(x_,0),Ii$1(x_,eme),Mj$1(x_,O$1()),$P;return x_.finishedWork=x_.current.alternate,x_.finishedLanes=eme,Uj$1(x_),Mj$1(x_,O$1()),null}function Vj$1(){if(Cj$1!==null){var x_=Cj$1;Cj$1=null,x_.forEach(function(eme){eme.expiredLanes|=24&eme.pendingLanes,Mj$1(eme,O$1())})}ig$1()}function Wj$1(x_,eme){var $P=X$1;X$1|=1;try{return x_(eme)}finally{X$1=$P,X$1===0&&(wj$1(),ig$1())}}function Xj$1(x_,eme){var $P=X$1;X$1&=-2,X$1|=8;try{return x_(eme)}finally{X$1=$P,X$1===0&&(wj$1(),ig$1())}}function ni$1(x_,eme){I$2(rj$1,qj$1),qj$1|=eme,tj$1|=eme}function Ki$1(){qj$1=rj$1.current,H$2(rj$1)}function Qj$1(x_,eme){x_.finishedWork=null,x_.finishedLanes=0;var $P=x_.timeoutHandle;if($P!==-1&&(x_.timeoutHandle=-1,pf$1($P)),Y$1!==null)for($P=Y$1.return;$P!==null;){var tme=$P;switch(tme.tag){case 1:tme=tme.type.childContextTypes,tme!=null&&Gf$1();break;case 3:fh$1(),H$2(N$1),H$2(M$1),uh$1();break;case 5:hh$1(tme);break;case 4:fh$1();break;case 13:H$2(P$1);break;case 19:H$2(P$1);break;case 10:rg$1(tme);break;case 23:case 24:Ki$1()}$P=$P.return}U$1=x_,Y$1=Tg$1(x_.current,null),W$1=qj$1=tj$1=eme,V$1=0,sj$1=null,uj$1=Hi$1=Dg$1=0}function Sj$1(x_,eme){do{var $P=Y$1;try{if(qg$1(),vh$1.current=Gh$1,yh$1){for(var tme=R$1.memoizedState;tme!==null;){var ame=tme.queue;ame!==null&&(ame.pending=null),tme=tme.next}yh$1=!1}if(xh$1=0,T$1=S$1=R$1=null,zh$1=!1,pj$1.current=null,$P===null||$P.return===null){V$1=1,sj$1=eme,Y$1=null;break}e:{var nme=x_,rme=$P.return,ime=$P,ome=eme;if(eme=W$1,ime.flags|=2048,ime.firstEffect=ime.lastEffect=null,ome!==null&&typeof ome=="object"&&typeof ome.then=="function"){var lme=ome;if(!(ime.mode&2)){var sme=ime.alternate;sme?(ime.updateQueue=sme.updateQueue,ime.memoizedState=sme.memoizedState,ime.lanes=sme.lanes):(ime.updateQueue=null,ime.memoizedState=null)}var cme=(P$1.current&1)!==0,dme=rme;do{var ume;if(ume=dme.tag===13){var fme=dme.memoizedState;if(fme!==null)ume=fme.dehydrated!==null;else{var pme=dme.memoizedProps;ume=pme.fallback===void 0?!1:pme.unstable_avoidThisFallback!==!0?!0:!cme}}if(ume){var hme=dme.updateQueue;if(hme===null){var bme=new Set;bme.add(lme),dme.updateQueue=bme}else hme.add(lme);if(!(dme.mode&2)){if(dme.flags|=64,ime.flags|=16384,ime.flags&=-2981,ime.tag===1)if(ime.alternate===null)ime.tag=17;else{var mme=zg$1(-1,1);mme.tag=2,Ag$1(ime,mme)}ime.lanes|=1;break e}ome=void 0,ime=eme;var vme=nme.pingCache;if(vme===null?(vme=nme.pingCache=new Oi$1,ome=new Set,vme.set(lme,ome)):(ome=vme.get(lme),ome===void 0&&(ome=new Set,vme.set(lme,ome))),!ome.has(ime)){ome.add(ime);var gme=Yj$1.bind(null,nme,lme,ime);lme.then(gme,gme)}dme.flags|=4096,dme.lanes=eme;break e}dme=dme.return}while(dme!==null);ome=Error((Ra$1(ime.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}V$1!==5&&(V$1=2),ome=Mi$1(ome,ime),dme=rme;do{switch(dme.tag){case 3:nme=ome,dme.flags|=4096,eme&=-eme,dme.lanes|=eme;var yme=Pi$1(dme,nme,eme);Bg$2(dme,yme);break e;case 1:nme=ome;var _me=dme.type,$me=dme.stateNode;if(!(dme.flags&64)&&(typeof _me.getDerivedStateFromError=="function"||$me!==null&&typeof $me.componentDidCatch=="function"&&(Ti$1===null||!Ti$1.has($me)))){dme.flags|=4096,eme&=-eme,dme.lanes|=eme;var Cme=Si$1(dme,nme,eme);Bg$2(dme,Cme);break e}}dme=dme.return}while(dme!==null)}Zj$1($P)}catch(Sme){eme=Sme,Y$1===$P&&$P!==null&&(Y$1=$P=$P.return);continue}break}while(!0)}function Pj$1(){var x_=oj$1.current;return oj$1.current=Gh$1,x_===null?Gh$1:x_}function Tj$1(x_,eme){var $P=X$1;X$1|=16;var tme=Pj$1();U$1===x_&&W$1===eme||Qj$1(x_,eme);do try{ak$1();break}catch(ame){Sj$1(x_,ame)}while(!0);if(qg$1(),X$1=$P,oj$1.current=tme,Y$1!==null)throw Error(y$2(261));return U$1=null,W$1=0,V$1}function ak$1(){for(;Y$1!==null;)bk$1(Y$1)}function Rj$1(){for(;Y$1!==null&&!Qf$1();)bk$1(Y$1)}function bk$1(x_){var eme=ck$1(x_.alternate,x_,qj$1);x_.memoizedProps=x_.pendingProps,eme===null?Zj$1(x_):Y$1=eme,pj$1.current=null}function Zj$1(x_){var eme=x_;do{var $P=eme.alternate;if(x_=eme.return,eme.flags&2048){if($P=Li$1(eme),$P!==null){$P.flags&=2047,Y$1=$P;return}x_!==null&&(x_.firstEffect=x_.lastEffect=null,x_.flags|=2048)}else{if($P=Gi$1($P,eme,qj$1),$P!==null){Y$1=$P;return}if($P=eme,$P.tag!==24&&$P.tag!==23||$P.memoizedState===null||qj$1&1073741824||!($P.mode&4)){for(var tme=0,ame=$P.child;ame!==null;)tme|=ame.lanes|ame.childLanes,ame=ame.sibling;$P.childLanes=tme}x_!==null&&!(x_.flags&2048)&&(x_.firstEffect===null&&(x_.firstEffect=eme.firstEffect),eme.lastEffect!==null&&(x_.lastEffect!==null&&(x_.lastEffect.nextEffect=eme.firstEffect),x_.lastEffect=eme.lastEffect),1<eme.flags&&(x_.lastEffect!==null?x_.lastEffect.nextEffect=eme:x_.firstEffect=eme,x_.lastEffect=eme))}if(eme=eme.sibling,eme!==null){Y$1=eme;return}Y$1=eme=x_}while(eme!==null);V$1===0&&(V$1=5)}function Uj$1(x_){var eme=eg$1();return gg$1(99,dk$1.bind(null,x_,eme)),null}function dk$1(x_,eme){do Oj$1();while(yj$1!==null);if(X$1&48)throw Error(y$2(327));var $P=x_.finishedWork;if($P===null)return null;if(x_.finishedWork=null,x_.finishedLanes=0,$P===x_.current)throw Error(y$2(177));x_.callbackNode=null;var tme=$P.lanes|$P.childLanes,ame=tme,nme=x_.pendingLanes&~ame;x_.pendingLanes=ame,x_.suspendedLanes=0,x_.pingedLanes=0,x_.expiredLanes&=ame,x_.mutableReadLanes&=ame,x_.entangledLanes&=ame,ame=x_.entanglements;for(var rme=x_.eventTimes,ime=x_.expirationTimes;0<nme;){var ome=31-Vc$1(nme),lme=1<<ome;ame[ome]=0,rme[ome]=-1,ime[ome]=-1,nme&=~lme}if(Cj$1!==null&&!(tme&24)&&Cj$1.has(x_)&&Cj$1.delete(x_),x_===U$1&&(Y$1=U$1=null,W$1=0),1<$P.flags?$P.lastEffect!==null?($P.lastEffect.nextEffect=$P,tme=$P.firstEffect):tme=$P:tme=$P.firstEffect,tme!==null){if(ame=X$1,X$1|=32,pj$1.current=null,kf$1=fd$1,rme=Ne$1(),Oe$1(rme)){if("selectionStart"in rme)ime={start:rme.selectionStart,end:rme.selectionEnd};else e:if(ime=(ime=rme.ownerDocument)&&ime.defaultView||window,(lme=ime.getSelection&&ime.getSelection())&&lme.rangeCount!==0){ime=lme.anchorNode,nme=lme.anchorOffset,ome=lme.focusNode,lme=lme.focusOffset;try{ime.nodeType,ome.nodeType}catch{ime=null;break e}var sme=0,cme=-1,dme=-1,ume=0,fme=0,pme=rme,hme=null;t:for(;;){for(var bme;pme!==ime||nme!==0&&pme.nodeType!==3||(cme=sme+nme),pme!==ome||lme!==0&&pme.nodeType!==3||(dme=sme+lme),pme.nodeType===3&&(sme+=pme.nodeValue.length),(bme=pme.firstChild)!==null;)hme=pme,pme=bme;for(;;){if(pme===rme)break t;if(hme===ime&&++ume===nme&&(cme=sme),hme===ome&&++fme===lme&&(dme=sme),(bme=pme.nextSibling)!==null)break;pme=hme,hme=pme.parentNode}pme=bme}ime=cme===-1||dme===-1?null:{start:cme,end:dme}}else ime=null;ime=ime||{start:0,end:0}}else ime=null;lf$1={focusedElem:rme,selectionRange:ime},fd$1=!1,Ij$1=null,Jj$1=!1,Z$1=tme;do try{ek$1()}catch(Sme){if(Z$1===null)throw Error(y$2(330));Wi$1(Z$1,Sme),Z$1=Z$1.nextEffect}while(Z$1!==null);Ij$1=null,Z$1=tme;do try{for(rme=x_;Z$1!==null;){var mme=Z$1.flags;if(mme&16&&pb$1(Z$1.stateNode,""),mme&128){var vme=Z$1.alternate;if(vme!==null){var gme=vme.ref;gme!==null&&(typeof gme=="function"?gme(null):gme.current=null)}}switch(mme&1038){case 2:fj$1(Z$1),Z$1.flags&=-3;break;case 6:fj$1(Z$1),Z$1.flags&=-3,ij$1(Z$1.alternate,Z$1);break;case 1024:Z$1.flags&=-1025;break;case 1028:Z$1.flags&=-1025,ij$1(Z$1.alternate,Z$1);break;case 4:ij$1(Z$1.alternate,Z$1);break;case 8:ime=Z$1,cj$1(rme,ime);var yme=ime.alternate;dj$1(ime),yme!==null&&dj$1(yme)}Z$1=Z$1.nextEffect}}catch(Sme){if(Z$1===null)throw Error(y$2(330));Wi$1(Z$1,Sme),Z$1=Z$1.nextEffect}while(Z$1!==null);if(gme=lf$1,vme=Ne$1(),mme=gme.focusedElem,rme=gme.selectionRange,vme!==mme&&mme&&mme.ownerDocument&&Me$1(mme.ownerDocument.documentElement,mme)){for(rme!==null&&Oe$1(mme)&&(vme=rme.start,gme=rme.end,gme===void 0&&(gme=vme),"selectionStart"in mme?(mme.selectionStart=vme,mme.selectionEnd=Math.min(gme,mme.value.length)):(gme=(vme=mme.ownerDocument||document)&&vme.defaultView||window,gme.getSelection&&(gme=gme.getSelection(),ime=mme.textContent.length,yme=Math.min(rme.start,ime),rme=rme.end===void 0?yme:Math.min(rme.end,ime),!gme.extend&&yme>rme&&(ime=rme,rme=yme,yme=ime),ime=Le$1(mme,yme),nme=Le$1(mme,rme),ime&&nme&&(gme.rangeCount!==1||gme.anchorNode!==ime.node||gme.anchorOffset!==ime.offset||gme.focusNode!==nme.node||gme.focusOffset!==nme.offset)&&(vme=vme.createRange(),vme.setStart(ime.node,ime.offset),gme.removeAllRanges(),yme>rme?(gme.addRange(vme),gme.extend(nme.node,nme.offset)):(vme.setEnd(nme.node,nme.offset),gme.addRange(vme)))))),vme=[],gme=mme;gme=gme.parentNode;)gme.nodeType===1&&vme.push({element:gme,left:gme.scrollLeft,top:gme.scrollTop});for(typeof mme.focus=="function"&&mme.focus(),mme=0;mme<vme.length;mme++)gme=vme[mme],gme.element.scrollLeft=gme.left,gme.element.scrollTop=gme.top}fd$1=!!kf$1,lf$1=kf$1=null,x_.current=$P,Z$1=tme;do try{for(mme=x_;Z$1!==null;){var _me=Z$1.flags;if(_me&36&&Yi$1(mme,Z$1.alternate,Z$1),_me&128){vme=void 0;var $me=Z$1.ref;if($me!==null){var Cme=Z$1.stateNode;switch(Z$1.tag){case 5:vme=Cme;break;default:vme=Cme}typeof $me=="function"?$me(vme):$me.current=vme}}Z$1=Z$1.nextEffect}}catch(Sme){if(Z$1===null)throw Error(y$2(330));Wi$1(Z$1,Sme),Z$1=Z$1.nextEffect}while(Z$1!==null);Z$1=null,$f$1(),X$1=ame}else x_.current=$P;if(xj$1)xj$1=!1,yj$1=x_,zj$1=eme;else for(Z$1=tme;Z$1!==null;)eme=Z$1.nextEffect,Z$1.nextEffect=null,Z$1.flags&8&&(_me=Z$1,_me.sibling=null,_me.stateNode=null),Z$1=eme;if(tme=x_.pendingLanes,tme===0&&(Ti$1=null),tme===1?x_===Ej$1?Dj$1++:(Dj$1=0,Ej$1=x_):Dj$1=0,$P=$P.stateNode,Mf$1&&typeof Mf$1.onCommitFiberRoot=="function")try{Mf$1.onCommitFiberRoot(Lf$1,$P,void 0,($P.current.flags&64)===64)}catch{}if(Mj$1(x_,O$1()),Qi$1)throw Qi$1=!1,x_=Ri$1,Ri$1=null,x_;return X$1&8||ig$1(),null}function ek$1(){for(;Z$1!==null;){var x_=Z$1.alternate;Jj$1||Ij$1===null||(Z$1.flags&8?dc$1(Z$1,Ij$1)&&(Jj$1=!0):Z$1.tag===13&&mj$1(x_,Z$1)&&dc$1(Z$1,Ij$1)&&(Jj$1=!0));var eme=Z$1.flags;eme&256&&Xi$1(x_,Z$1),!(eme&512)||xj$1||(xj$1=!0,hg$1(97,function(){return Oj$1(),null})),Z$1=Z$1.nextEffect}}function Oj$1(){if(zj$1!==90){var x_=97<zj$1?97:zj$1;return zj$1=90,gg$1(x_,fk$1)}return!1}function $i$1(x_,eme){Aj$1.push(eme,x_),xj$1||(xj$1=!0,hg$1(97,function(){return Oj$1(),null}))}function Zi$1(x_,eme){Bj$1.push(eme,x_),xj$1||(xj$1=!0,hg$1(97,function(){return Oj$1(),null}))}function fk$1(){if(yj$1===null)return!1;var x_=yj$1;if(yj$1=null,X$1&48)throw Error(y$2(331));var eme=X$1;X$1|=32;var $P=Bj$1;Bj$1=[];for(var tme=0;tme<$P.length;tme+=2){var ame=$P[tme],nme=$P[tme+1],rme=ame.destroy;if(ame.destroy=void 0,typeof rme=="function")try{rme()}catch(ome){if(nme===null)throw Error(y$2(330));Wi$1(nme,ome)}}for($P=Aj$1,Aj$1=[],tme=0;tme<$P.length;tme+=2){ame=$P[tme],nme=$P[tme+1];try{var ime=ame.create;ame.destroy=ime()}catch(ome){if(nme===null)throw Error(y$2(330));Wi$1(nme,ome)}}for(ime=x_.current.firstEffect;ime!==null;)x_=ime.nextEffect,ime.nextEffect=null,ime.flags&8&&(ime.sibling=null,ime.stateNode=null),ime=x_;return X$1=eme,ig$1(),!0}function gk$1(x_,eme,$P){eme=Mi$1($P,eme),eme=Pi$1(x_,eme,1),Ag$1(x_,eme),eme=Hg$1(),x_=Kj$1(x_,1),x_!==null&&($c$1(x_,1,eme),Mj$1(x_,eme))}function Wi$1(x_,eme){if(x_.tag===3)gk$1(x_,x_,eme);else for(var $P=x_.return;$P!==null;){if($P.tag===3){gk$1($P,x_,eme);break}else if($P.tag===1){var tme=$P.stateNode;if(typeof $P.type.getDerivedStateFromError=="function"||typeof tme.componentDidCatch=="function"&&(Ti$1===null||!Ti$1.has(tme))){x_=Mi$1(eme,x_);var ame=Si$1($P,x_,1);if(Ag$1($P,ame),ame=Hg$1(),$P=Kj$1($P,1),$P!==null)$c$1($P,1,ame),Mj$1($P,ame);else if(typeof tme.componentDidCatch=="function"&&(Ti$1===null||!Ti$1.has(tme)))try{tme.componentDidCatch(eme,x_)}catch{}break}}$P=$P.return}}function Yj$1(x_,eme,$P){var tme=x_.pingCache;tme!==null&&tme.delete(eme),eme=Hg$1(),x_.pingedLanes|=x_.suspendedLanes&$P,U$1===x_&&(W$1&$P)===$P&&(V$1===4||V$1===3&&(W$1&62914560)===W$1&&500>O$1()-jj$1?Qj$1(x_,0):uj$1|=$P),Mj$1(x_,eme)}function lj$1(x_,eme){var $P=x_.stateNode;$P!==null&&$P.delete(eme),eme=0,eme===0&&(eme=x_.mode,eme&2?eme&4?(Gj$1===0&&(Gj$1=tj$1),eme=Yc$1(62914560&~Gj$1),eme===0&&(eme=4194304)):eme=eg$1()===99?1:2:eme=1),$P=Hg$1(),x_=Kj$1(x_,eme),x_!==null&&($c$1(x_,eme,$P),Mj$1(x_,$P))}var ck$1;ck$1=function(x_,eme,$P){var tme=eme.lanes;if(x_!==null)if(x_.memoizedProps!==eme.pendingProps||N$1.current)ug$1=!0;else if($P&tme)ug$1=!!(x_.flags&16384);else{switch(ug$1=!1,eme.tag){case 3:ri$1(eme),sh$1();break;case 5:gh$1(eme);break;case 1:Ff(eme.type)&&Jf$1(eme);break;case 4:eh$1(eme,eme.stateNode.containerInfo);break;case 10:tme=eme.memoizedProps.value;var ame=eme.type._context;I$2(mg$1,ame._currentValue),ame._currentValue=tme;break;case 13:if(eme.memoizedState!==null)return $P&eme.child.childLanes?ti$1(x_,eme,$P):(I$2(P$1,P$1.current&1),eme=hi$1(x_,eme,$P),eme!==null?eme.sibling:null);I$2(P$1,P$1.current&1);break;case 19:if(tme=($P&eme.childLanes)!==0,x_.flags&64){if(tme)return Ai$1(x_,eme,$P);eme.flags|=64}if(ame=eme.memoizedState,ame!==null&&(ame.rendering=null,ame.tail=null,ame.lastEffect=null),I$2(P$1,P$1.current),tme)break;return null;case 23:case 24:return eme.lanes=0,mi$1(x_,eme,$P)}return hi$1(x_,eme,$P)}else ug$1=!1;switch(eme.lanes=0,eme.tag){case 2:if(tme=eme.type,x_!==null&&(x_.alternate=null,eme.alternate=null,eme.flags|=2),x_=eme.pendingProps,ame=Ef$1(eme,M$1.current),tg$1(eme,$P),ame=Ch$1(null,eme,tme,x_,ame,$P),eme.flags|=1,typeof ame=="object"&&ame!==null&&typeof ame.render=="function"&&ame.$$typeof===void 0){if(eme.tag=1,eme.memoizedState=null,eme.updateQueue=null,Ff(tme)){var nme=!0;Jf$1(eme)}else nme=!1;eme.memoizedState=ame.state!==null&&ame.state!==void 0?ame.state:null,xg$1(eme);var rme=tme.getDerivedStateFromProps;typeof rme=="function"&&Gg$1(eme,tme,rme,x_),ame.updater=Kg$1,eme.stateNode=ame,ame._reactInternals=eme,Og$1(eme,tme,x_,$P),eme=qi$1(null,eme,tme,!0,nme,$P)}else eme.tag=0,fi$1(null,eme,ame,$P),eme=eme.child;return eme;case 16:ame=eme.elementType;e:{switch(x_!==null&&(x_.alternate=null,eme.alternate=null,eme.flags|=2),x_=eme.pendingProps,nme=ame._init,ame=nme(ame._payload),eme.type=ame,nme=eme.tag=hk$1(ame),x_=lg$1(ame,x_),nme){case 0:eme=li$1(null,eme,ame,x_,$P);break e;case 1:eme=pi$1(null,eme,ame,x_,$P);break e;case 11:eme=gi$1(null,eme,ame,x_,$P);break e;case 14:eme=ii$1(null,eme,ame,lg$1(ame.type,x_),tme,$P);break e}throw Error(y$2(306,ame,""))}return eme;case 0:return tme=eme.type,ame=eme.pendingProps,ame=eme.elementType===tme?ame:lg$1(tme,ame),li$1(x_,eme,tme,ame,$P);case 1:return tme=eme.type,ame=eme.pendingProps,ame=eme.elementType===tme?ame:lg$1(tme,ame),pi$1(x_,eme,tme,ame,$P);case 3:if(ri$1(eme),tme=eme.updateQueue,x_===null||tme===null)throw Error(y$2(282));if(tme=eme.pendingProps,ame=eme.memoizedState,ame=ame!==null?ame.element:null,yg$1(x_,eme),Cg$1(eme,tme,null,$P),tme=eme.memoizedState.element,tme===ame)sh$1(),eme=hi$1(x_,eme,$P);else{if(ame=eme.stateNode,(nme=ame.hydrate)&&(kh=rf$1(eme.stateNode.containerInfo.firstChild),jh$1=eme,nme=lh$1=!0),nme){if(x_=ame.mutableSourceEagerHydrationData,x_!=null)for(ame=0;ame<x_.length;ame+=2)nme=x_[ame],nme._workInProgressVersionPrimary=x_[ame+1],th$1.push(nme);for($P=Zg$1(eme,null,tme,$P),eme.child=$P;$P;)$P.flags=$P.flags&-3|1024,$P=$P.sibling}else fi$1(x_,eme,tme,$P),sh$1();eme=eme.child}return eme;case 5:return gh$1(eme),x_===null&&ph$1(eme),tme=eme.type,ame=eme.pendingProps,nme=x_!==null?x_.memoizedProps:null,rme=ame.children,nf$1(tme,ame)?rme=null:nme!==null&&nf$1(tme,nme)&&(eme.flags|=16),oi$1(x_,eme),fi$1(x_,eme,rme,$P),eme.child;case 6:return x_===null&&ph$1(eme),null;case 13:return ti$1(x_,eme,$P);case 4:return eh$1(eme,eme.stateNode.containerInfo),tme=eme.pendingProps,x_===null?eme.child=Yg$1(eme,null,tme,$P):fi$1(x_,eme,tme,$P),eme.child;case 11:return tme=eme.type,ame=eme.pendingProps,ame=eme.elementType===tme?ame:lg$1(tme,ame),gi$1(x_,eme,tme,ame,$P);case 7:return fi$1(x_,eme,eme.pendingProps,$P),eme.child;case 8:return fi$1(x_,eme,eme.pendingProps.children,$P),eme.child;case 12:return fi$1(x_,eme,eme.pendingProps.children,$P),eme.child;case 10:e:{tme=eme.type._context,ame=eme.pendingProps,rme=eme.memoizedProps,nme=ame.value;var ime=eme.type._context;if(I$2(mg$1,ime._currentValue),ime._currentValue=nme,rme!==null)if(ime=rme.value,nme=He$1(ime,nme)?0:(typeof tme._calculateChangedBits=="function"?tme._calculateChangedBits(ime,nme):1073741823)|0,nme===0){if(rme.children===ame.children&&!N$1.current){eme=hi$1(x_,eme,$P);break e}}else for(ime=eme.child,ime!==null&&(ime.return=eme);ime!==null;){var ome=ime.dependencies;if(ome!==null){rme=ime.child;for(var lme=ome.firstContext;lme!==null;){if(lme.context===tme&&lme.observedBits&nme){ime.tag===1&&(lme=zg$1(-1,$P&-$P),lme.tag=2,Ag$1(ime,lme)),ime.lanes|=$P,lme=ime.alternate,lme!==null&&(lme.lanes|=$P),sg$1(ime.return,$P),ome.lanes|=$P;break}lme=lme.next}}else rme=ime.tag===10&&ime.type===eme.type?null:ime.child;if(rme!==null)rme.return=ime;else for(rme=ime;rme!==null;){if(rme===eme){rme=null;break}if(ime=rme.sibling,ime!==null){ime.return=rme.return,rme=ime;break}rme=rme.return}ime=rme}fi$1(x_,eme,ame.children,$P),eme=eme.child}return eme;case 9:return ame=eme.type,nme=eme.pendingProps,tme=nme.children,tg$1(eme,$P),ame=vg$1(ame,nme.unstable_observedBits),tme=tme(ame),eme.flags|=1,fi$1(x_,eme,tme,$P),eme.child;case 14:return ame=eme.type,nme=lg$1(ame,eme.pendingProps),nme=lg$1(ame.type,nme),ii$1(x_,eme,ame,nme,tme,$P);case 15:return ki$1(x_,eme,eme.type,eme.pendingProps,tme,$P);case 17:return tme=eme.type,ame=eme.pendingProps,ame=eme.elementType===tme?ame:lg$1(tme,ame),x_!==null&&(x_.alternate=null,eme.alternate=null,eme.flags|=2),eme.tag=1,Ff(tme)?(x_=!0,Jf$1(eme)):x_=!1,tg$1(eme,$P),Mg$1(eme,tme,ame),Og$1(eme,tme,ame,$P),qi$1(null,eme,tme,!0,x_,$P);case 19:return Ai$1(x_,eme,$P);case 23:return mi$1(x_,eme,$P);case 24:return mi$1(x_,eme,$P)}throw Error(y$2(156,eme.tag))};function ik$1(x_,eme,$P,tme){this.tag=x_,this.key=$P,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=eme,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tme,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function nh$1(x_,eme,$P,tme){return new ik$1(x_,eme,$P,tme)}function ji$1(x_){return x_=x_.prototype,!(!x_||!x_.isReactComponent)}function hk$1(x_){if(typeof x_=="function")return ji$1(x_)?1:0;if(x_!=null){if(x_=x_.$$typeof,x_===Aa$1)return 11;if(x_===Da$1)return 14}return 2}function Tg$1(x_,eme){var $P=x_.alternate;return $P===null?($P=nh$1(x_.tag,eme,x_.key,x_.mode),$P.elementType=x_.elementType,$P.type=x_.type,$P.stateNode=x_.stateNode,$P.alternate=x_,x_.alternate=$P):($P.pendingProps=eme,$P.type=x_.type,$P.flags=0,$P.nextEffect=null,$P.firstEffect=null,$P.lastEffect=null),$P.childLanes=x_.childLanes,$P.lanes=x_.lanes,$P.child=x_.child,$P.memoizedProps=x_.memoizedProps,$P.memoizedState=x_.memoizedState,$P.updateQueue=x_.updateQueue,eme=x_.dependencies,$P.dependencies=eme===null?null:{lanes:eme.lanes,firstContext:eme.firstContext},$P.sibling=x_.sibling,$P.index=x_.index,$P.ref=x_.ref,$P}function Vg$1(x_,eme,$P,tme,ame,nme){var rme=2;if(tme=x_,typeof x_=="function")ji$1(x_)&&(rme=1);else if(typeof x_=="string")rme=5;else e:switch(x_){case ua$1:return Xg$1($P.children,ame,nme,eme);case Ha$1:rme=8,ame|=16;break;case wa$1:rme=8,ame|=1;break;case xa$1:return x_=nh$1(12,$P,eme,ame|8),x_.elementType=xa$1,x_.type=xa$1,x_.lanes=nme,x_;case Ba$1:return x_=nh$1(13,$P,eme,ame),x_.type=Ba$1,x_.elementType=Ba$1,x_.lanes=nme,x_;case Ca$1:return x_=nh$1(19,$P,eme,ame),x_.elementType=Ca$1,x_.lanes=nme,x_;case Ia$1:return vi$1($P,ame,nme,eme);case Ja$1:return x_=nh$1(24,$P,eme,ame),x_.elementType=Ja$1,x_.lanes=nme,x_;default:if(typeof x_=="object"&&x_!==null)switch(x_.$$typeof){case ya$1:rme=10;break e;case za$1:rme=9;break e;case Aa$1:rme=11;break e;case Da$1:rme=14;break e;case Ea$1:rme=16,tme=null;break e;case Fa$1:rme=22;break e}throw Error(y$2(130,x_==null?x_:typeof x_,""))}return eme=nh$1(rme,$P,eme,ame),eme.elementType=x_,eme.type=tme,eme.lanes=nme,eme}function Xg$1(x_,eme,$P,tme){return x_=nh$1(7,x_,tme,eme),x_.lanes=$P,x_}function vi$1(x_,eme,$P,tme){return x_=nh$1(23,x_,tme,eme),x_.elementType=Ia$1,x_.lanes=$P,x_}function Ug$1(x_,eme,$P){return x_=nh$1(6,x_,null,eme),x_.lanes=$P,x_}function Wg$1(x_,eme,$P){return eme=nh$1(4,x_.children!==null?x_.children:[],x_.key,eme),eme.lanes=$P,eme.stateNode={containerInfo:x_.containerInfo,pendingChildren:null,implementation:x_.implementation},eme}function jk$1(x_,eme,$P){this.tag=eme,this.containerInfo=x_,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=$P,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Zc$1(0),this.expirationTimes=Zc$1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zc$1(0),this.mutableSourceEagerHydrationData=null}function kk$1(x_,eme,$P){var tme=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ta$1,key:tme==null?null:""+tme,children:x_,containerInfo:eme,implementation:$P}}function lk$1(x_,eme,$P,tme){var ame=eme.current,nme=Hg$1(),rme=Ig$1(ame);e:if($P){$P=$P._reactInternals;t:{if(Zb$1($P)!==$P||$P.tag!==1)throw Error(y$2(170));var ime=$P;do{switch(ime.tag){case 3:ime=ime.stateNode.context;break t;case 1:if(Ff(ime.type)){ime=ime.stateNode.__reactInternalMemoizedMergedChildContext;break t}}ime=ime.return}while(ime!==null);throw Error(y$2(171))}if($P.tag===1){var ome=$P.type;if(Ff(ome)){$P=If$1($P,ome,ime);break e}}$P=ime}else $P=Cf$1;return eme.context===null?eme.context=$P:eme.pendingContext=$P,eme=zg$1(nme,rme),eme.payload={element:x_},tme=tme===void 0?null:tme,tme!==null&&(eme.callback=tme),Ag$1(ame,eme),Jg$1(ame,rme,nme),rme}function mk$1(x_){if(x_=x_.current,!x_.child)return null;switch(x_.child.tag){case 5:return x_.child.stateNode;default:return x_.child.stateNode}}function nk$1(x_,eme){if(x_=x_.memoizedState,x_!==null&&x_.dehydrated!==null){var $P=x_.retryLane;x_.retryLane=$P!==0&&$P<eme?$P:eme}}function ok$1(x_,eme){nk$1(x_,eme),(x_=x_.alternate)&&nk$1(x_,eme)}function pk$1(){return null}function qk$1(x_,eme,$P){var tme=$P!=null&&$P.hydrationOptions!=null&&$P.hydrationOptions.mutableSources||null;if($P=new jk$1(x_,eme,$P!=null&&$P.hydrate===!0),eme=nh$1(3,null,null,eme===2?7:eme===1?3:0),$P.current=eme,eme.stateNode=$P,xg$1(eme),x_[ff$1]=$P.current,cf$1(x_.nodeType===8?x_.parentNode:x_),tme)for(x_=0;x_<tme.length;x_++){eme=tme[x_];var ame=eme._getVersion;ame=ame(eme._source),$P.mutableSourceEagerHydrationData==null?$P.mutableSourceEagerHydrationData=[eme,ame]:$P.mutableSourceEagerHydrationData.push(eme,ame)}this._internalRoot=$P}qk$1.prototype.render=function(x_){lk$1(x_,this._internalRoot,null,null)};qk$1.prototype.unmount=function(){var x_=this._internalRoot,eme=x_.containerInfo;lk$1(null,x_,null,function(){eme[ff$1]=null})};function rk$1(x_){return!(!x_||x_.nodeType!==1&&x_.nodeType!==9&&x_.nodeType!==11&&(x_.nodeType!==8||x_.nodeValue!==" react-mount-point-unstable "))}function sk$1(x_,eme){if(eme||(eme=x_?x_.nodeType===9?x_.documentElement:x_.firstChild:null,eme=!(!eme||eme.nodeType!==1||!eme.hasAttribute("data-reactroot"))),!eme)for(var $P;$P=x_.lastChild;)x_.removeChild($P);return new qk$1(x_,0,eme?{hydrate:!0}:void 0)}function tk$1(x_,eme,$P,tme,ame){var nme=$P._reactRootContainer;if(nme){var rme=nme._internalRoot;if(typeof ame=="function"){var ime=ame;ame=function(){var lme=mk$1(rme);ime.call(lme)}}lk$1(eme,rme,x_,ame)}else{if(nme=$P._reactRootContainer=sk$1($P,tme),rme=nme._internalRoot,typeof ame=="function"){var ome=ame;ame=function(){var lme=mk$1(rme);ome.call(lme)}}Xj$1(function(){lk$1(eme,rme,x_,ame)})}return mk$1(rme)}ec$1=function(x_){if(x_.tag===13){var eme=Hg$1();Jg$1(x_,4,eme),ok$1(x_,4)}};fc$1=function(x_){if(x_.tag===13){var eme=Hg$1();Jg$1(x_,67108864,eme),ok$1(x_,67108864)}};gc$1=function(x_){if(x_.tag===13){var eme=Hg$1(),$P=Ig$1(x_);Jg$1(x_,$P,eme),ok$1(x_,$P)}};hc$1=function(x_,eme){return eme()};yb$1=function(x_,eme,$P){switch(eme){case"input":if(ab$1(x_,$P),eme=$P.name,$P.type==="radio"&&eme!=null){for($P=x_;$P.parentNode;)$P=$P.parentNode;for($P=$P.querySelectorAll("input[name="+JSON.stringify(""+eme)+'][type="radio"]'),eme=0;eme<$P.length;eme++){var tme=$P[eme];if(tme!==x_&&tme.form===x_.form){var ame=Db$1(tme);if(!ame)throw Error(y$2(90));Wa$1(tme),ab$1(tme,ame)}}}break;case"textarea":ib$1(x_,$P);break;case"select":eme=$P.value,eme!=null&&fb$1(x_,!!$P.multiple,eme,!1)}};Gb$1=Wj$1;Hb$1=function(x_,eme,$P,tme,ame){var nme=X$1;X$1|=4;try{return gg$1(98,x_.bind(null,eme,$P,tme,ame))}finally{X$1=nme,X$1===0&&(wj$1(),ig$1())}};Ib$1=function(){!(X$1&49)&&(Vj$1(),Oj$1())};Jb$1=function(x_,eme){var $P=X$1;X$1|=2;try{return x_(eme)}finally{X$1=$P,X$1===0&&(wj$1(),ig$1())}};function uk$1(x_,eme){var $P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rk$1(eme))throw Error(y$2(200));return kk$1(x_,eme,null,$P)}var vk$1={Events:[Cb$1,ue$1,Db$1,Eb$1,Fb$1,Oj$1,{current:!1}]},wk$1={findFiberByHostInstance:wc$1,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},xk$1={bundleType:wk$1.bundleType,version:wk$1.version,rendererPackageName:wk$1.rendererPackageName,rendererConfig:wk$1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ra$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(x_){return x_=cc$1(x_),x_===null?null:x_.stateNode},findFiberByHostInstance:wk$1.findFiberByHostInstance||pk$1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yk$1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yk$1.isDisabled&&yk$1.supportsFiber)try{Lf$1=yk$1.inject(xk$1),Mf$1=yk$1}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vk$1;reactDom_production_min.createPortal=uk$1;reactDom_production_min.findDOMNode=function(x_){if(x_==null)return null;if(x_.nodeType===1)return x_;var eme=x_._reactInternals;if(eme===void 0)throw typeof x_.render=="function"?Error(y$2(188)):Error(y$2(268,Object.keys(x_)));return x_=cc$1(eme),x_=x_===null?null:x_.stateNode,x_};reactDom_production_min.flushSync=function(x_,eme){var $P=X$1;if($P&48)return x_(eme);X$1|=1;try{if(x_)return gg$1(99,x_.bind(null,eme))}finally{X$1=$P,ig$1()}};reactDom_production_min.hydrate=function(x_,eme,$P){if(!rk$1(eme))throw Error(y$2(200));return tk$1(null,x_,eme,!0,$P)};reactDom_production_min.render=function(x_,eme,$P){if(!rk$1(eme))throw Error(y$2(200));return tk$1(null,x_,eme,!1,$P)};reactDom_production_min.unmountComponentAtNode=function(x_){if(!rk$1(x_))throw Error(y$2(40));return x_._reactRootContainer?(Xj$1(function(){tk$1(null,null,x_,!1,function(){x_._reactRootContainer=null,x_[ff$1]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Wj$1;reactDom_production_min.unstable_createPortal=function(x_,eme){return uk$1(x_,eme,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};reactDom_production_min.unstable_renderSubtreeIntoContainer=function(x_,eme,$P,tme){if(!rk$1($P))throw Error(y$2(200));if(x_==null||x_._reactInternals===void 0)throw Error(y$2(38));return tk$1(x_,eme,$P,!1,tme)};reactDom_production_min.version="17.0.2";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(x_){console.error(x_)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports),ReactDOM$1=_mergeNamespaces({__proto__:null,default:ReactDOM},[reactDomExports]);function _typeof$4(x_){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(eme){return typeof eme}:function(eme){return eme&&typeof Symbol=="function"&&eme.constructor===Symbol&&eme!==Symbol.prototype?"symbol":typeof eme},_typeof$4(x_)}function toPrimitive$2(x_,eme){if(_typeof$4(x_)!="object"||!x_)return x_;var $P=x_[Symbol.toPrimitive];if($P!==void 0){var tme=$P.call(x_,eme||"default");if(_typeof$4(tme)!="object")return tme;throw new TypeError("@@toPrimitive must return a primitive value.")}return(eme==="string"?String:Number)(x_)}function toPropertyKey$1(x_){var eme=toPrimitive$2(x_,"string");return _typeof$4(eme)=="symbol"?eme:eme+""}function _defineProperty$7(x_,eme,$P){return(eme=toPropertyKey$1(eme))in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function ownKeys$4(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function _objectSpread2$4(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ownKeys$4(Object($P),!0).forEach(function(tme){_defineProperty$7(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ownKeys$4(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}function formatProdErrorMessage(x_){return"Minified Redux error #"+x_+"; visit https://redux.js.org/Errors?code="+x_+" for the full message or use the non-minified dev environment for full errors. "}var $$observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject$c(x_){if(typeof x_!="object"||x_===null)return!1;for(var eme=x_;Object.getPrototypeOf(eme)!==null;)eme=Object.getPrototypeOf(eme);return Object.getPrototypeOf(x_)===eme}function createStore(x_,eme,$P){var tme;if(typeof eme=="function"&&typeof $P=="function"||typeof $P=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage(0));if(typeof eme=="function"&&typeof $P>"u"&&($P=eme,eme=void 0),typeof $P<"u"){if(typeof $P!="function")throw new Error(formatProdErrorMessage(1));return $P(createStore)(x_,eme)}if(typeof x_!="function")throw new Error(formatProdErrorMessage(2));var ame=x_,nme=eme,rme=[],ime=rme,ome=!1;function lme(){ime===rme&&(ime=rme.slice())}function sme(){if(ome)throw new Error(formatProdErrorMessage(3));return nme}function cme(pme){if(typeof pme!="function")throw new Error(formatProdErrorMessage(4));if(ome)throw new Error(formatProdErrorMessage(5));var hme=!0;return lme(),ime.push(pme),function(){if(hme){if(ome)throw new Error(formatProdErrorMessage(6));hme=!1,lme();var mme=ime.indexOf(pme);ime.splice(mme,1),rme=null}}}function dme(pme){if(!isPlainObject$c(pme))throw new Error(formatProdErrorMessage(7));if(typeof pme.type>"u")throw new Error(formatProdErrorMessage(8));if(ome)throw new Error(formatProdErrorMessage(9));try{ome=!0,nme=ame(nme,pme)}finally{ome=!1}for(var hme=rme=ime,bme=0;bme<hme.length;bme++){var mme=hme[bme];mme()}return pme}function ume(pme){if(typeof pme!="function")throw new Error(formatProdErrorMessage(10));ame=pme,dme({type:ActionTypes.REPLACE})}function fme(){var pme,hme=cme;return pme={subscribe:function(mme){if(typeof mme!="object"||mme===null)throw new Error(formatProdErrorMessage(11));function vme(){mme.next&&mme.next(sme())}vme();var gme=hme(vme);return{unsubscribe:gme}}},pme[$$observable]=function(){return this},pme}return dme({type:ActionTypes.INIT}),tme={dispatch:dme,subscribe:cme,getState:sme,replaceReducer:ume},tme[$$observable]=fme,tme}var legacy_createStore=createStore;function assertReducerShape(x_){Object.keys(x_).forEach(function(eme){var $P=x_[eme],tme=$P(void 0,{type:ActionTypes.INIT});if(typeof tme>"u")throw new Error(formatProdErrorMessage(12));if(typeof $P(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers(x_){for(var eme=Object.keys(x_),$P={},tme=0;tme<eme.length;tme++){var ame=eme[tme];typeof x_[ame]=="function"&&($P[ame]=x_[ame])}var nme=Object.keys($P),rme;try{assertReducerShape($P)}catch(ime){rme=ime}return function(ome,lme){if(ome===void 0&&(ome={}),rme)throw rme;for(var sme=!1,cme={},dme=0;dme<nme.length;dme++){var ume=nme[dme],fme=$P[ume],pme=ome[ume],hme=fme(pme,lme);if(typeof hme>"u")throw lme&&lme.type,new Error(formatProdErrorMessage(14));cme[ume]=hme,sme=sme||hme!==pme}return sme=sme||nme.length!==Object.keys(ome).length,sme?cme:ome}}function bindActionCreator(x_,eme){return function(){return eme(x_.apply(this,arguments))}}function bindActionCreators(x_,eme){if(typeof x_=="function")return bindActionCreator(x_,eme);if(typeof x_!="object"||x_===null)throw new Error(formatProdErrorMessage(16));var $P={};for(var tme in x_){var ame=x_[tme];typeof ame=="function"&&($P[tme]=bindActionCreator(ame,eme))}return $P}function compose$1(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return eme.length===0?function(tme){return tme}:eme.length===1?eme[0]:eme.reduce(function(tme,ame){return function(){return tme(ame.apply(void 0,arguments))}})}function applyMiddleware(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return function(tme){return function(){var ame=tme.apply(void 0,arguments),nme=function(){throw new Error(formatProdErrorMessage(15))},rme={getState:ame.getState,dispatch:function(){return nme.apply(void 0,arguments)}},ime=eme.map(function(ome){return ome(rme)});return nme=compose$1.apply(void 0,ime)(ame.dispatch),_objectSpread2$4(_objectSpread2$4({},ame),{},{dispatch:nme})}}}const redux=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes,applyMiddleware,bindActionCreators,combineReducers,compose:compose$1,createStore,legacy_createStore},Symbol.toStringTag,{value:"Module"}));var propTypes$1={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function x_(tme,ame,nme,rme,ime,ome){if(ome!==ReactPropTypesSecret){var lme=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw lme.name="Invariant Violation",lme}}x_.isRequired=x_;function eme(){return x_}var $P={array:x_,bigint:x_,bool:x_,func:x_,number:x_,object:x_,string:x_,symbol:x_,any:x_,arrayOf:eme,element:x_,elementType:x_,instanceOf:eme,node:x_,objectOf:eme,oneOf:eme,oneOfType:eme,shape:eme,exact:eme,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return $P.PropTypes=$P,$P};propTypes$1.exports=factoryWithThrowingShims();var propTypesExports=propTypes$1.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var ReactReduxContext=React__default.createContext(null);function defaultNoopBatch$1(x_){x_()}var batch=defaultNoopBatch$1,setBatch=function(eme){return batch=eme},getBatch=function(){return batch};function createListenerCollection(){var x_=getBatch(),eme=null,$P=null;return{clear:function(){eme=null,$P=null},notify:function(){x_(function(){for(var ame=eme;ame;)ame.callback(),ame=ame.next})},get:function(){for(var ame=[],nme=eme;nme;)ame.push(nme),nme=nme.next;return ame},subscribe:function(ame){var nme=!0,rme=$P={callback:ame,next:null,prev:$P};return rme.prev?rme.prev.next=rme:eme=rme,function(){!nme||eme===null||(nme=!1,rme.next?rme.next.prev=rme.prev:$P=rme.prev,rme.prev?rme.prev.next=rme.next:eme=rme.next)}}}}var nullListeners={notify:function(){},get:function(){return[]}};function createSubscription(x_,eme){var $P,tme=nullListeners;function ame(cme){return ome(),tme.subscribe(cme)}function nme(){tme.notify()}function rme(){sme.onStateChange&&sme.onStateChange()}function ime(){return!!$P}function ome(){$P||($P=eme?eme.addNestedSub(rme):x_.subscribe(rme),tme=createListenerCollection())}function lme(){$P&&($P(),$P=void 0,tme.clear(),tme=nullListeners)}var sme={addNestedSub:ame,notifyNestedSubs:nme,handleChangeWrapper:rme,isSubscribed:ime,trySubscribe:ome,tryUnsubscribe:lme,getListeners:function(){return tme}};return sme}var useIsomorphicLayoutEffect$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?reactExports.useLayoutEffect:reactExports.useEffect,jsxRuntime={exports:{}},reactJsxRuntime_production_min={};/** @license React v17.0.2
 * 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 f$3=reactExports,g$3=60103;reactJsxRuntime_production_min.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var h$3=Symbol.for;g$3=h$3("react.element"),reactJsxRuntime_production_min.Fragment=h$3("react.fragment")}var m$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n$5=Object.prototype.hasOwnProperty,p$3={key:!0,ref:!0,__self:!0,__source:!0};function q$3(x_,eme,$P){var tme,ame={},nme=null,rme=null;$P!==void 0&&(nme=""+$P),eme.key!==void 0&&(nme=""+eme.key),eme.ref!==void 0&&(rme=eme.ref);for(tme in eme)n$5.call(eme,tme)&&!p$3.hasOwnProperty(tme)&&(ame[tme]=eme[tme]);if(x_&&x_.defaultProps)for(tme in eme=x_.defaultProps,eme)ame[tme]===void 0&&(ame[tme]=eme[tme]);return{$$typeof:g$3,type:x_,key:nme,ref:rme,props:ame,_owner:m$3.current}}reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports;const jsx=jsxRuntimeExports.jsx,jsxs=jsxRuntimeExports.jsxs,Fragment=jsxRuntimeExports.Fragment;function Provider(x_){var eme=x_.store,$P=x_.context,tme=x_.children,ame=reactExports.useMemo(function(){var ime=createSubscription(eme);return{store:eme,subscription:ime}},[eme]),nme=reactExports.useMemo(function(){return eme.getState()},[eme]);useIsomorphicLayoutEffect$1(function(){var ime=ame.subscription;return ime.onStateChange=ime.notifyNestedSubs,ime.trySubscribe(),nme!==eme.getState()&&ime.notifyNestedSubs(),function(){ime.tryUnsubscribe(),ime.onStateChange=null}},[ame,nme]);var rme=$P||ReactReduxContext;return jsx(rme.Provider,{value:ame,children:tme})}function _extends$4C(){return _extends$4C=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4C.apply(null,arguments)}function _objectWithoutPropertiesLoose$3(x_,eme){if(x_==null)return{};var $P={};for(var tme in x_)if({}.hasOwnProperty.call(x_,tme)){if(eme.includes(tme))continue;$P[tme]=x_[tme]}return $P}var reactIs$1={exports:{}},reactIs_production_min$2={};/** @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 hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min$2;hasRequiredReactIs_production_min=1;var x_=typeof Symbol=="function"&&Symbol.for,eme=x_?Symbol.for("react.element"):60103,$P=x_?Symbol.for("react.portal"):60106,tme=x_?Symbol.for("react.fragment"):60107,ame=x_?Symbol.for("react.strict_mode"):60108,nme=x_?Symbol.for("react.profiler"):60114,rme=x_?Symbol.for("react.provider"):60109,ime=x_?Symbol.for("react.context"):60110,ome=x_?Symbol.for("react.async_mode"):60111,lme=x_?Symbol.for("react.concurrent_mode"):60111,sme=x_?Symbol.for("react.forward_ref"):60112,cme=x_?Symbol.for("react.suspense"):60113,dme=x_?Symbol.for("react.suspense_list"):60120,ume=x_?Symbol.for("react.memo"):60115,fme=x_?Symbol.for("react.lazy"):60116,pme=x_?Symbol.for("react.block"):60121,hme=x_?Symbol.for("react.fundamental"):60117,bme=x_?Symbol.for("react.responder"):60118,mme=x_?Symbol.for("react.scope"):60119;function vme(yme){if(typeof yme=="object"&&yme!==null){var _me=yme.$$typeof;switch(_me){case eme:switch(yme=yme.type,yme){case ome:case lme:case tme:case nme:case ame:case cme:return yme;default:switch(yme=yme&&yme.$$typeof,yme){case ime:case sme:case fme:case ume:case rme:return yme;default:return _me}}case $P:return _me}}}function gme(yme){return vme(yme)===lme}return reactIs_production_min$2.AsyncMode=ome,reactIs_production_min$2.ConcurrentMode=lme,reactIs_production_min$2.ContextConsumer=ime,reactIs_production_min$2.ContextProvider=rme,reactIs_production_min$2.Element=eme,reactIs_production_min$2.ForwardRef=sme,reactIs_production_min$2.Fragment=tme,reactIs_production_min$2.Lazy=fme,reactIs_production_min$2.Memo=ume,reactIs_production_min$2.Portal=$P,reactIs_production_min$2.Profiler=nme,reactIs_production_min$2.StrictMode=ame,reactIs_production_min$2.Suspense=cme,reactIs_production_min$2.isAsyncMode=function(yme){return gme(yme)||vme(yme)===ome},reactIs_production_min$2.isConcurrentMode=gme,reactIs_production_min$2.isContextConsumer=function(yme){return vme(yme)===ime},reactIs_production_min$2.isContextProvider=function(yme){return vme(yme)===rme},reactIs_production_min$2.isElement=function(yme){return typeof yme=="object"&&yme!==null&&yme.$$typeof===eme},reactIs_production_min$2.isForwardRef=function(yme){return vme(yme)===sme},reactIs_production_min$2.isFragment=function(yme){return vme(yme)===tme},reactIs_production_min$2.isLazy=function(yme){return vme(yme)===fme},reactIs_production_min$2.isMemo=function(yme){return vme(yme)===ume},reactIs_production_min$2.isPortal=function(yme){return vme(yme)===$P},reactIs_production_min$2.isProfiler=function(yme){return vme(yme)===nme},reactIs_production_min$2.isStrictMode=function(yme){return vme(yme)===ame},reactIs_production_min$2.isSuspense=function(yme){return vme(yme)===cme},reactIs_production_min$2.isValidElementType=function(yme){return typeof yme=="string"||typeof yme=="function"||yme===tme||yme===lme||yme===nme||yme===ame||yme===cme||yme===dme||typeof yme=="object"&&yme!==null&&(yme.$$typeof===fme||yme.$$typeof===ume||yme.$$typeof===rme||yme.$$typeof===ime||yme.$$typeof===sme||yme.$$typeof===hme||yme.$$typeof===bme||yme.$$typeof===mme||yme.$$typeof===pme)},reactIs_production_min$2.typeOf=vme,reactIs_production_min$2}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs$1.exports=requireReactIs_production_min()),reactIs$1.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var x_=requireReactIs(),eme={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$P={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tme={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ame={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nme={};nme[x_.ForwardRef]=tme,nme[x_.Memo]=ame;function rme(fme){return x_.isMemo(fme)?ame:nme[fme.$$typeof]||eme}var ime=Object.defineProperty,ome=Object.getOwnPropertyNames,lme=Object.getOwnPropertySymbols,sme=Object.getOwnPropertyDescriptor,cme=Object.getPrototypeOf,dme=Object.prototype;function ume(fme,pme,hme){if(typeof pme!="string"){if(dme){var bme=cme(pme);bme&&bme!==dme&&ume(fme,bme,hme)}var mme=ome(pme);lme&&(mme=mme.concat(lme(pme)));for(var vme=rme(fme),gme=rme(pme),yme=0;yme<mme.length;++yme){var _me=mme[yme];if(!$P[_me]&&!(hme&&hme[_me])&&!(gme&&gme[_me])&&!(vme&&vme[_me])){var $me=sme(pme,_me);try{ime(fme,_me,$me)}catch{}}}}return fme}return hoistNonReactStatics_cjs=ume,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var reactIs_production_min$1={};/** @license React v17.0.2
 * 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 b$2=60103,c$3=60106,d$2=60107,e$5=60108,f$2=60114,g$2=60109,h$2=60110,k$2=60112,l$3=60113,m$2=60120,n$4=60115,p$2=60116,q$2=60121,r$4=60122,u$3=60117,v$2=60129,w$1=60131;if(typeof Symbol=="function"&&Symbol.for){var x$1=Symbol.for;b$2=x$1("react.element"),c$3=x$1("react.portal"),d$2=x$1("react.fragment"),e$5=x$1("react.strict_mode"),f$2=x$1("react.profiler"),g$2=x$1("react.provider"),h$2=x$1("react.context"),k$2=x$1("react.forward_ref"),l$3=x$1("react.suspense"),m$2=x$1("react.suspense_list"),n$4=x$1("react.memo"),p$2=x$1("react.lazy"),q$2=x$1("react.block"),r$4=x$1("react.server.block"),u$3=x$1("react.fundamental"),v$2=x$1("react.debug_trace_mode"),w$1=x$1("react.legacy_hidden")}function y$1(x_){if(typeof x_=="object"&&x_!==null){var eme=x_.$$typeof;switch(eme){case b$2:switch(x_=x_.type,x_){case d$2:case f$2:case e$5:case l$3:case m$2:return x_;default:switch(x_=x_&&x_.$$typeof,x_){case h$2:case k$2:case p$2:case n$4:case g$2:return x_;default:return eme}}case c$3:return eme}}}var z$1=g$2,A$1=b$2,B$1=k$2,C$1=d$2,D$1=p$2,E$1=n$4,F$1=c$3,G$1=f$2,H$1=e$5,I$1=l$3;reactIs_production_min$1.ContextConsumer=h$2;reactIs_production_min$1.ContextProvider=z$1;reactIs_production_min$1.Element=A$1;reactIs_production_min$1.ForwardRef=B$1;reactIs_production_min$1.Fragment=C$1;reactIs_production_min$1.Lazy=D$1;reactIs_production_min$1.Memo=E$1;reactIs_production_min$1.Portal=F$1;reactIs_production_min$1.Profiler=G$1;reactIs_production_min$1.StrictMode=H$1;reactIs_production_min$1.Suspense=I$1;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(x_){return y$1(x_)===h$2};reactIs_production_min$1.isContextProvider=function(x_){return y$1(x_)===g$2};reactIs_production_min$1.isElement=function(x_){return typeof x_=="object"&&x_!==null&&x_.$$typeof===b$2};reactIs_production_min$1.isForwardRef=function(x_){return y$1(x_)===k$2};reactIs_production_min$1.isFragment=function(x_){return y$1(x_)===d$2};reactIs_production_min$1.isLazy=function(x_){return y$1(x_)===p$2};reactIs_production_min$1.isMemo=function(x_){return y$1(x_)===n$4};reactIs_production_min$1.isPortal=function(x_){return y$1(x_)===c$3};reactIs_production_min$1.isProfiler=function(x_){return y$1(x_)===f$2};reactIs_production_min$1.isStrictMode=function(x_){return y$1(x_)===e$5};reactIs_production_min$1.isSuspense=function(x_){return y$1(x_)===l$3};reactIs_production_min$1.isValidElementType=function(x_){return typeof x_=="string"||typeof x_=="function"||x_===d$2||x_===f$2||x_===v$2||x_===e$5||x_===l$3||x_===m$2||x_===w$1||typeof x_=="object"&&x_!==null&&(x_.$$typeof===p$2||x_.$$typeof===n$4||x_.$$typeof===g$2||x_.$$typeof===h$2||x_.$$typeof===k$2||x_.$$typeof===u$3||x_.$$typeof===q$2||x_[0]===r$4)};reactIs_production_min$1.typeOf=y$1;function useReduxContext(){var x_=reactExports.useContext(ReactReduxContext);return x_}function createStoreHook(x_){x_===void 0&&(x_=ReactReduxContext);var eme=x_===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(x_)};return function(){var tme=eme(),ame=tme.store;return ame}}var useStore$1=createStoreHook();function createDispatchHook(x_){x_===void 0&&(x_=ReactReduxContext);var eme=x_===ReactReduxContext?useStore$1:createStoreHook(x_);return function(){var tme=eme();return tme.dispatch}}var useDispatch=createDispatchHook(),refEquality=function(eme,$P){return eme===$P};function useSelectorWithStoreAndSubscription(x_,eme,$P,tme){var ame=reactExports.useReducer(function(fme){return fme+1},0),nme=ame[1],rme=reactExports.useMemo(function(){return createSubscription($P,tme)},[$P,tme]),ime=reactExports.useRef(),ome=reactExports.useRef(),lme=reactExports.useRef(),sme=reactExports.useRef(),cme=$P.getState(),dme;try{if(x_!==ome.current||cme!==lme.current||ime.current){var ume=x_(cme);sme.current===void 0||!eme(ume,sme.current)?dme=ume:dme=sme.current}else dme=sme.current}catch(fme){throw ime.current&&(fme.message+=`
The error may be correlated with this previous error:
`+ime.current.stack+`

`),fme}return useIsomorphicLayoutEffect$1(function(){ome.current=x_,lme.current=cme,sme.current=dme,ime.current=void 0}),useIsomorphicLayoutEffect$1(function(){function fme(){try{var pme=$P.getState();if(pme===lme.current)return;var hme=ome.current(pme);if(eme(hme,sme.current))return;sme.current=hme,lme.current=pme}catch(bme){ime.current=bme}nme()}return rme.onStateChange=fme,rme.trySubscribe(),fme(),function(){return rme.tryUnsubscribe()}},[$P,rme]),dme}function createSelectorHook(x_){x_===void 0&&(x_=ReactReduxContext);var eme=x_===ReactReduxContext?useReduxContext:function(){return reactExports.useContext(x_)};return function(tme,ame){ame===void 0&&(ame=refEquality);var nme=eme(),rme=nme.store,ime=nme.subscription,ome=useSelectorWithStoreAndSubscription(tme,ame,rme,ime);return reactExports.useDebugValue(ome),ome}}var useSelector=createSelectorHook();setBatch(reactDomExports.unstable_batchedUpdates);function _setPrototypeOf(x_,eme){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function($P,tme){return $P.__proto__=tme,$P},_setPrototypeOf(x_,eme)}function _inheritsLoose(x_,eme){x_.prototype=Object.create(eme.prototype),x_.prototype.constructor=x_,_setPrototypeOf(x_,eme)}function isAbsolute(x_){return x_.charAt(0)==="/"}function spliceOne(x_,eme){for(var $P=eme,tme=$P+1,ame=x_.length;tme<ame;$P+=1,tme+=1)x_[$P]=x_[tme];x_.pop()}function resolvePathname(x_,eme){eme===void 0&&(eme="");var $P=x_&&x_.split("/")||[],tme=eme&&eme.split("/")||[],ame=x_&&isAbsolute(x_),nme=eme&&isAbsolute(eme),rme=ame||nme;if(x_&&isAbsolute(x_)?tme=$P:$P.length&&(tme.pop(),tme=tme.concat($P)),!tme.length)return"/";var ime;if(tme.length){var ome=tme[tme.length-1];ime=ome==="."||ome===".."||ome===""}else ime=!1;for(var lme=0,sme=tme.length;sme>=0;sme--){var cme=tme[sme];cme==="."?spliceOne(tme,sme):cme===".."?(spliceOne(tme,sme),lme++):lme&&(spliceOne(tme,sme),lme--)}if(!rme)for(;lme--;lme)tme.unshift("..");rme&&tme[0]!==""&&(!tme[0]||!isAbsolute(tme[0]))&&tme.unshift("");var dme=tme.join("/");return ime&&dme.substr(-1)!=="/"&&(dme+="/"),dme}function valueOf$2(x_){return x_.valueOf?x_.valueOf():Object.prototype.valueOf.call(x_)}function valueEqual(x_,eme){if(x_===eme)return!0;if(x_==null||eme==null)return!1;if(Array.isArray(x_))return Array.isArray(eme)&&x_.length===eme.length&&x_.every(function(ame,nme){return valueEqual(ame,eme[nme])});if(typeof x_=="object"||typeof eme=="object"){var $P=valueOf$2(x_),tme=valueOf$2(eme);return $P!==x_||tme!==eme?valueEqual($P,tme):Object.keys(Object.assign({},x_,eme)).every(function(ame){return valueEqual(x_[ame],eme[ame])})}return!1}var prefix$2="Invariant failed";function invariant$4(x_,eme){if(!x_)throw new Error(prefix$2)}function addLeadingSlash$1(x_){return x_.charAt(0)==="/"?x_:"/"+x_}function stripLeadingSlash(x_){return x_.charAt(0)==="/"?x_.substr(1):x_}function hasBasename(x_,eme){return x_.toLowerCase().indexOf(eme.toLowerCase())===0&&"/?#".indexOf(x_.charAt(eme.length))!==-1}function stripBasename$1(x_,eme){return hasBasename(x_,eme)?x_.substr(eme.length):x_}function stripTrailingSlash(x_){return x_.charAt(x_.length-1)==="/"?x_.slice(0,-1):x_}function parsePath$1(x_){var eme=x_||"/",$P="",tme="",ame=eme.indexOf("#");ame!==-1&&(tme=eme.substr(ame),eme=eme.substr(0,ame));var nme=eme.indexOf("?");return nme!==-1&&($P=eme.substr(nme),eme=eme.substr(0,nme)),{pathname:eme,search:$P==="?"?"":$P,hash:tme==="#"?"":tme}}function createPath(x_){var eme=x_.pathname,$P=x_.search,tme=x_.hash,ame=eme||"/";return $P&&$P!=="?"&&(ame+=$P.charAt(0)==="?"?$P:"?"+$P),tme&&tme!=="#"&&(ame+=tme.charAt(0)==="#"?tme:"#"+tme),ame}function createLocation(x_,eme,$P,tme){var ame;typeof x_=="string"?(ame=parsePath$1(x_),ame.state=eme):(ame=_extends$4C({},x_),ame.pathname===void 0&&(ame.pathname=""),ame.search?ame.search.charAt(0)!=="?"&&(ame.search="?"+ame.search):ame.search="",ame.hash?ame.hash.charAt(0)!=="#"&&(ame.hash="#"+ame.hash):ame.hash="",eme!==void 0&&ame.state===void 0&&(ame.state=eme));try{ame.pathname=decodeURI(ame.pathname)}catch(nme){throw nme instanceof URIError?new URIError('Pathname "'+ame.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):nme}return $P&&(ame.key=$P),tme?ame.pathname?ame.pathname.charAt(0)!=="/"&&(ame.pathname=resolvePathname(ame.pathname,tme.pathname)):ame.pathname=tme.pathname:ame.pathname||(ame.pathname="/"),ame}function locationsAreEqual(x_,eme){return x_.pathname===eme.pathname&&x_.search===eme.search&&x_.hash===eme.hash&&x_.key===eme.key&&valueEqual(x_.state,eme.state)}function createTransitionManager(){var x_=null;function eme(rme){return x_=rme,function(){x_===rme&&(x_=null)}}function $P(rme,ime,ome,lme){if(x_!=null){var sme=typeof x_=="function"?x_(rme,ime):x_;typeof sme=="string"?typeof ome=="function"?ome(sme,lme):lme(!0):lme(sme!==!1)}else lme(!0)}var tme=[];function ame(rme){var ime=!0;function ome(){ime&&rme.apply(void 0,arguments)}return tme.push(ome),function(){ime=!1,tme=tme.filter(function(lme){return lme!==ome})}}function nme(){for(var rme=arguments.length,ime=new Array(rme),ome=0;ome<rme;ome++)ime[ome]=arguments[ome];tme.forEach(function(lme){return lme.apply(void 0,ime)})}return{setPrompt:eme,confirmTransitionTo:$P,appendListener:ame,notifyListeners:nme}}var canUseDOM$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function getConfirmation(x_,eme){eme(window.confirm(x_))}function supportsHistory(){var x_=window.navigator.userAgent;return(x_.indexOf("Android 2.")!==-1||x_.indexOf("Android 4.0")!==-1)&&x_.indexOf("Mobile Safari")!==-1&&x_.indexOf("Chrome")===-1&&x_.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function supportsPopStateOnHashChange(){return window.navigator.userAgent.indexOf("Trident")===-1}function supportsGoWithoutReloadUsingHash(){return window.navigator.userAgent.indexOf("Firefox")===-1}function isExtraneousPopstateEvent(x_){return x_.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var PopStateEvent="popstate",HashChangeEvent="hashchange";function getHistoryState(){try{return window.history.state||{}}catch{return{}}}function createBrowserHistory(x_){x_===void 0&&(x_={}),canUseDOM$1||invariant$4(!1);var eme=window.history,$P=supportsHistory(),tme=!supportsPopStateOnHashChange(),ame=x_,nme=ame.forceRefresh,rme=nme===void 0?!1:nme,ime=ame.getUserConfirmation,ome=ime===void 0?getConfirmation:ime,lme=ame.keyLength,sme=lme===void 0?6:lme,cme=x_.basename?stripTrailingSlash(addLeadingSlash$1(x_.basename)):"";function dme(kme){var Bme=kme||{},Dme=Bme.key,jme=Bme.state,Vme=window.location,Wme=Vme.pathname,Lme=Vme.search,zme=Vme.hash,Ume=Wme+Lme+zme;return cme&&(Ume=stripBasename$1(Ume,cme)),createLocation(Ume,jme,Dme)}function ume(){return Math.random().toString(36).substr(2,sme)}var fme=createTransitionManager();function pme(kme){_extends$4C(Mme,kme),Mme.length=eme.length,fme.notifyListeners(Mme.location,Mme.action)}function hme(kme){isExtraneousPopstateEvent(kme)||vme(dme(kme.state))}function bme(){vme(dme(getHistoryState()))}var mme=!1;function vme(kme){if(mme)mme=!1,pme();else{var Bme="POP";fme.confirmTransitionTo(kme,Bme,ome,function(Dme){Dme?pme({action:Bme,location:kme}):gme(kme)})}}function gme(kme){var Bme=Mme.location,Dme=_me.indexOf(Bme.key);Dme===-1&&(Dme=0);var jme=_me.indexOf(kme.key);jme===-1&&(jme=0);var Vme=Dme-jme;Vme&&(mme=!0,Eme(Vme))}var yme=dme(getHistoryState()),_me=[yme.key];function $me(kme){return cme+createPath(kme)}function Cme(kme,Bme){var Dme="PUSH",jme=createLocation(kme,Bme,ume(),Mme.location);fme.confirmTransitionTo(jme,Dme,ome,function(Vme){if(Vme){var Wme=$me(jme),Lme=jme.key,zme=jme.state;if($P)if(eme.pushState({key:Lme,state:zme},null,Wme),rme)window.location.href=Wme;else{var Ume=_me.indexOf(Mme.location.key),Gme=_me.slice(0,Ume+1);Gme.push(jme.key),_me=Gme,pme({action:Dme,location:jme})}else window.location.href=Wme}})}function Sme(kme,Bme){var Dme="REPLACE",jme=createLocation(kme,Bme,ume(),Mme.location);fme.confirmTransitionTo(jme,Dme,ome,function(Vme){if(Vme){var Wme=$me(jme),Lme=jme.key,zme=jme.state;if($P)if(eme.replaceState({key:Lme,state:zme},null,Wme),rme)window.location.replace(Wme);else{var Ume=_me.indexOf(Mme.location.key);Ume!==-1&&(_me[Ume]=jme.key),pme({action:Dme,location:jme})}else window.location.replace(Wme)}})}function Eme(kme){eme.go(kme)}function xme(){Eme(-1)}function Tme(){Eme(1)}var Ome=0;function Rme(kme){Ome+=kme,Ome===1&&kme===1?(window.addEventListener(PopStateEvent,hme),tme&&window.addEventListener(HashChangeEvent,bme)):Ome===0&&(window.removeEventListener(PopStateEvent,hme),tme&&window.removeEventListener(HashChangeEvent,bme))}var Nme=!1;function Ime(kme){kme===void 0&&(kme=!1);var Bme=fme.setPrompt(kme);return Nme||(Rme(1),Nme=!0),function(){return Nme&&(Nme=!1,Rme(-1)),Bme()}}function Pme(kme){var Bme=fme.appendListener(kme);return Rme(1),function(){Rme(-1),Bme()}}var Mme={length:eme.length,action:"POP",location:yme,createHref:$me,push:Cme,replace:Sme,go:Eme,goBack:xme,goForward:Tme,block:Ime,listen:Pme};return Mme}var HashChangeEvent$1="hashchange",HashPathCoders={hashbang:{encodePath:function(eme){return eme.charAt(0)==="!"?eme:"!/"+stripLeadingSlash(eme)},decodePath:function(eme){return eme.charAt(0)==="!"?eme.substr(1):eme}},noslash:{encodePath:stripLeadingSlash,decodePath:addLeadingSlash$1},slash:{encodePath:addLeadingSlash$1,decodePath:addLeadingSlash$1}};function stripHash(x_){var eme=x_.indexOf("#");return eme===-1?x_:x_.slice(0,eme)}function getHashPath(){var x_=window.location.href,eme=x_.indexOf("#");return eme===-1?"":x_.substring(eme+1)}function pushHashPath(x_){window.location.hash=x_}function replaceHashPath(x_){window.location.replace(stripHash(window.location.href)+"#"+x_)}function createHashHistory(x_){x_===void 0&&(x_={}),canUseDOM$1||invariant$4(!1);var eme=window.history;supportsGoWithoutReloadUsingHash();var $P=x_,tme=$P.getUserConfirmation,ame=tme===void 0?getConfirmation:tme,nme=$P.hashType,rme=nme===void 0?"slash":nme,ime=x_.basename?stripTrailingSlash(addLeadingSlash$1(x_.basename)):"",ome=HashPathCoders[rme],lme=ome.encodePath,sme=ome.decodePath;function cme(){var Bme=sme(getHashPath());return ime&&(Bme=stripBasename$1(Bme,ime)),createLocation(Bme)}var dme=createTransitionManager();function ume(Bme){_extends$4C(kme,Bme),kme.length=eme.length,dme.notifyListeners(kme.location,kme.action)}var fme=!1,pme=null;function hme(Bme,Dme){return Bme.pathname===Dme.pathname&&Bme.search===Dme.search&&Bme.hash===Dme.hash}function bme(){var Bme=getHashPath(),Dme=lme(Bme);if(Bme!==Dme)replaceHashPath(Dme);else{var jme=cme(),Vme=kme.location;if(!fme&&hme(Vme,jme)||pme===createPath(jme))return;pme=null,mme(jme)}}function mme(Bme){if(fme)fme=!1,ume();else{var Dme="POP";dme.confirmTransitionTo(Bme,Dme,ame,function(jme){jme?ume({action:Dme,location:Bme}):vme(Bme)})}}function vme(Bme){var Dme=kme.location,jme=$me.lastIndexOf(createPath(Dme));jme===-1&&(jme=0);var Vme=$me.lastIndexOf(createPath(Bme));Vme===-1&&(Vme=0);var Wme=jme-Vme;Wme&&(fme=!0,xme(Wme))}var gme=getHashPath(),yme=lme(gme);gme!==yme&&replaceHashPath(yme);var _me=cme(),$me=[createPath(_me)];function Cme(Bme){var Dme=document.querySelector("base"),jme="";return Dme&&Dme.getAttribute("href")&&(jme=stripHash(window.location.href)),jme+"#"+lme(ime+createPath(Bme))}function Sme(Bme,Dme){var jme="PUSH",Vme=createLocation(Bme,void 0,void 0,kme.location);dme.confirmTransitionTo(Vme,jme,ame,function(Wme){if(Wme){var Lme=createPath(Vme),zme=lme(ime+Lme),Ume=getHashPath()!==zme;if(Ume){pme=Lme,pushHashPath(zme);var Gme=$me.lastIndexOf(createPath(kme.location)),Jme=$me.slice(0,Gme+1);Jme.push(Lme),$me=Jme,ume({action:jme,location:Vme})}else ume()}})}function Eme(Bme,Dme){var jme="REPLACE",Vme=createLocation(Bme,void 0,void 0,kme.location);dme.confirmTransitionTo(Vme,jme,ame,function(Wme){if(Wme){var Lme=createPath(Vme),zme=lme(ime+Lme),Ume=getHashPath()!==zme;Ume&&(pme=Lme,replaceHashPath(zme));var Gme=$me.indexOf(createPath(kme.location));Gme!==-1&&($me[Gme]=Lme),ume({action:jme,location:Vme})}})}function xme(Bme){eme.go(Bme)}function Tme(){xme(-1)}function Ome(){xme(1)}var Rme=0;function Nme(Bme){Rme+=Bme,Rme===1&&Bme===1?window.addEventListener(HashChangeEvent$1,bme):Rme===0&&window.removeEventListener(HashChangeEvent$1,bme)}var Ime=!1;function Pme(Bme){Bme===void 0&&(Bme=!1);var Dme=dme.setPrompt(Bme);return Ime||(Nme(1),Ime=!0),function(){return Ime&&(Ime=!1,Nme(-1)),Dme()}}function Mme(Bme){var Dme=dme.appendListener(Bme);return Nme(1),function(){Nme(-1),Dme()}}var kme={length:eme.length,action:"POP",location:_me,createHref:Cme,push:Sme,replace:Eme,go:xme,goBack:Tme,goForward:Ome,block:Pme,listen:Mme};return kme}function clamp(x_,eme,$P){return Math.min(Math.max(x_,eme),$P)}function createMemoryHistory(x_){x_===void 0&&(x_={});var eme=x_,$P=eme.getUserConfirmation,tme=eme.initialEntries,ame=tme===void 0?["/"]:tme,nme=eme.initialIndex,rme=nme===void 0?0:nme,ime=eme.keyLength,ome=ime===void 0?6:ime,lme=createTransitionManager();function sme(Cme){_extends$4C($me,Cme),$me.length=$me.entries.length,lme.notifyListeners($me.location,$me.action)}function cme(){return Math.random().toString(36).substr(2,ome)}var dme=clamp(rme,0,ame.length-1),ume=ame.map(function(Cme){return typeof Cme=="string"?createLocation(Cme,void 0,cme()):createLocation(Cme,void 0,Cme.key||cme())}),fme=createPath;function pme(Cme,Sme){var Eme="PUSH",xme=createLocation(Cme,Sme,cme(),$me.location);lme.confirmTransitionTo(xme,Eme,$P,function(Tme){if(Tme){var Ome=$me.index,Rme=Ome+1,Nme=$me.entries.slice(0);Nme.length>Rme?Nme.splice(Rme,Nme.length-Rme,xme):Nme.push(xme),sme({action:Eme,location:xme,index:Rme,entries:Nme})}})}function hme(Cme,Sme){var Eme="REPLACE",xme=createLocation(Cme,Sme,cme(),$me.location);lme.confirmTransitionTo(xme,Eme,$P,function(Tme){Tme&&($me.entries[$me.index]=xme,sme({action:Eme,location:xme}))})}function bme(Cme){var Sme=clamp($me.index+Cme,0,$me.entries.length-1),Eme="POP",xme=$me.entries[Sme];lme.confirmTransitionTo(xme,Eme,$P,function(Tme){Tme?sme({action:Eme,location:xme,index:Sme}):sme()})}function mme(){bme(-1)}function vme(){bme(1)}function gme(Cme){var Sme=$me.index+Cme;return Sme>=0&&Sme<$me.entries.length}function yme(Cme){return Cme===void 0&&(Cme=!1),lme.setPrompt(Cme)}function _me(Cme){return lme.appendListener(Cme)}var $me={length:ume.length,action:"POP",location:ume[dme],index:dme,entries:ume,createHref:fme,push:pme,replace:hme,go:bme,goBack:mme,goForward:vme,canGo:gme,block:yme,listen:_me};return $me}var pathToRegexp$2={exports:{}},isarray$1=Array.isArray||function(x_){return Object.prototype.toString.call(x_)=="[object Array]"},isarray=isarray$1;pathToRegexp$2.exports=pathToRegexp;pathToRegexp$2.exports.parse=parse$7;pathToRegexp$2.exports.compile=compile$2;pathToRegexp$2.exports.tokensToFunction=tokensToFunction$1;pathToRegexp$2.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse$7(x_,eme){for(var $P=[],tme=0,ame=0,nme="",rme=eme&&eme.delimiter||"/",ime;(ime=PATH_REGEXP.exec(x_))!=null;){var ome=ime[0],lme=ime[1],sme=ime.index;if(nme+=x_.slice(ame,sme),ame=sme+ome.length,lme){nme+=lme[1];continue}var cme=x_[ame],dme=ime[2],ume=ime[3],fme=ime[4],pme=ime[5],hme=ime[6],bme=ime[7];nme&&($P.push(nme),nme="");var mme=dme!=null&&cme!=null&&cme!==dme,vme=hme==="+"||hme==="*",gme=hme==="?"||hme==="*",yme=dme||rme,_me=fme||pme,$me=dme||(typeof $P[$P.length-1]=="string"?$P[$P.length-1]:"");$P.push({name:ume||tme++,prefix:dme||"",delimiter:yme,optional:gme,repeat:vme,partial:mme,asterisk:!!bme,pattern:_me?escapeGroup(_me):bme?".*":restrictBacktrack(yme,$me)})}return ame<x_.length&&(nme+=x_.substr(ame)),nme&&$P.push(nme),$P}function restrictBacktrack(x_,eme){return!eme||eme.indexOf(x_)>-1?"[^"+escapeString$2(x_)+"]+?":escapeString$2(eme)+"|(?:(?!"+escapeString$2(eme)+")[^"+escapeString$2(x_)+"])+?"}function compile$2(x_,eme){return tokensToFunction$1(parse$7(x_,eme),eme)}function encodeURIComponentPretty(x_){return encodeURI(x_).replace(/[\/?#]/g,function(eme){return"%"+eme.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(x_){return encodeURI(x_).replace(/[?#]/g,function(eme){return"%"+eme.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction$1(x_,eme){for(var $P=new Array(x_.length),tme=0;tme<x_.length;tme++)typeof x_[tme]=="object"&&($P[tme]=new RegExp("^(?:"+x_[tme].pattern+")$",flags$1(eme)));return function(ame,nme){for(var rme="",ime=ame||{},ome=nme||{},lme=ome.pretty?encodeURIComponentPretty:encodeURIComponent,sme=0;sme<x_.length;sme++){var cme=x_[sme];if(typeof cme=="string"){rme+=cme;continue}var dme=ime[cme.name],ume;if(dme==null)if(cme.optional){cme.partial&&(rme+=cme.prefix);continue}else throw new TypeError('Expected "'+cme.name+'" to be defined');if(isarray(dme)){if(!cme.repeat)throw new TypeError('Expected "'+cme.name+'" to not repeat, but received `'+JSON.stringify(dme)+"`");if(dme.length===0){if(cme.optional)continue;throw new TypeError('Expected "'+cme.name+'" to not be empty')}for(var fme=0;fme<dme.length;fme++){if(ume=lme(dme[fme]),!$P[sme].test(ume))throw new TypeError('Expected all "'+cme.name+'" to match "'+cme.pattern+'", but received `'+JSON.stringify(ume)+"`");rme+=(fme===0?cme.prefix:cme.delimiter)+ume}continue}if(ume=cme.asterisk?encodeAsterisk(dme):lme(dme),!$P[sme].test(ume))throw new TypeError('Expected "'+cme.name+'" to match "'+cme.pattern+'", but received "'+ume+'"');rme+=cme.prefix+ume}return rme}}function escapeString$2(x_){return x_.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(x_){return x_.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(x_,eme){return x_.keys=eme,x_}function flags$1(x_){return x_&&x_.sensitive?"":"i"}function regexpToRegexp(x_,eme){var $P=x_.source.match(/\((?!\?)/g);if($P)for(var tme=0;tme<$P.length;tme++)eme.push({name:tme,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(x_,eme)}function arrayToRegexp(x_,eme,$P){for(var tme=[],ame=0;ame<x_.length;ame++)tme.push(pathToRegexp(x_[ame],eme,$P).source);var nme=new RegExp("(?:"+tme.join("|")+")",flags$1($P));return attachKeys(nme,eme)}function stringToRegexp(x_,eme,$P){return tokensToRegExp(parse$7(x_,$P),eme,$P)}function tokensToRegExp(x_,eme,$P){isarray(eme)||($P=eme||$P,eme=[]),$P=$P||{};for(var tme=$P.strict,ame=$P.end!==!1,nme="",rme=0;rme<x_.length;rme++){var ime=x_[rme];if(typeof ime=="string")nme+=escapeString$2(ime);else{var ome=escapeString$2(ime.prefix),lme="(?:"+ime.pattern+")";eme.push(ime),ime.repeat&&(lme+="(?:"+ome+lme+")*"),ime.optional?ime.partial?lme=ome+"("+lme+")?":lme="(?:"+ome+"("+lme+"))?":lme=ome+"("+lme+")",nme+=lme}}var sme=escapeString$2($P.delimiter||"/"),cme=nme.slice(-sme.length)===sme;return tme||(nme=(cme?nme.slice(0,-sme.length):nme)+"(?:"+sme+"(?=$))?"),ame?nme+="$":nme+=tme&&cme?"":"(?="+sme+"|$)",attachKeys(new RegExp("^"+nme,flags$1($P)),eme)}function pathToRegexp(x_,eme,$P){return isarray(eme)||($P=eme||$P,eme=[]),$P=$P||{},x_ instanceof RegExp?regexpToRegexp(x_,eme):isarray(x_)?arrayToRegexp(x_,eme,$P):stringToRegexp(x_,eme,$P)}var pathToRegexpExports=pathToRegexp$2.exports;const pathToRegexp$1=getDefaultExportFromCjs(pathToRegexpExports);requireReactIs();var MAX_SIGNED_31_BIT_INT=1073741823,commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function getUniqueId(){var x_="__global_unique_id__";return commonjsGlobal[x_]=(commonjsGlobal[x_]||0)+1}function objectIs(x_,eme){return x_===eme?x_!==0||1/x_===1/eme:x_!==x_&&eme!==eme}function createEventEmitter(x_){var eme=[];return{on:function(tme){eme.push(tme)},off:function(tme){eme=eme.filter(function(ame){return ame!==tme})},get:function(){return x_},set:function(tme,ame){x_=tme,eme.forEach(function(nme){return nme(x_,ame)})}}}function onlyChild(x_){return Array.isArray(x_)?x_[0]:x_}function createReactContext(x_,eme){var $P,tme,ame="__create-react-context-"+getUniqueId()+"__",nme=function(ime){_inheritsLoose(ome,ime);function ome(){for(var sme,cme=arguments.length,dme=new Array(cme),ume=0;ume<cme;ume++)dme[ume]=arguments[ume];return sme=ime.call.apply(ime,[this].concat(dme))||this,sme.emitter=createEventEmitter(sme.props.value),sme}var lme=ome.prototype;return lme.getChildContext=function(){var cme;return cme={},cme[ame]=this.emitter,cme},lme.componentWillReceiveProps=function(cme){if(this.props.value!==cme.value){var dme=this.props.value,ume=cme.value,fme;objectIs(dme,ume)?fme=0:(fme=typeof eme=="function"?eme(dme,ume):MAX_SIGNED_31_BIT_INT,fme|=0,fme!==0&&this.emitter.set(cme.value,fme))}},lme.render=function(){return this.props.children},ome}(React__default.Component);nme.childContextTypes=($P={},$P[ame]=PropTypes.object.isRequired,$P);var rme=function(ime){_inheritsLoose(ome,ime);function ome(){for(var sme,cme=arguments.length,dme=new Array(cme),ume=0;ume<cme;ume++)dme[ume]=arguments[ume];return sme=ime.call.apply(ime,[this].concat(dme))||this,sme.observedBits=void 0,sme.state={value:sme.getValue()},sme.onUpdate=function(fme,pme){var hme=sme.observedBits|0;hme&pme&&sme.setState({value:sme.getValue()})},sme}var lme=ome.prototype;return lme.componentWillReceiveProps=function(cme){var dme=cme.observedBits;this.observedBits=dme??MAX_SIGNED_31_BIT_INT},lme.componentDidMount=function(){this.context[ame]&&this.context[ame].on(this.onUpdate);var cme=this.props.observedBits;this.observedBits=cme??MAX_SIGNED_31_BIT_INT},lme.componentWillUnmount=function(){this.context[ame]&&this.context[ame].off(this.onUpdate)},lme.getValue=function(){return this.context[ame]?this.context[ame].get():x_},lme.render=function(){return onlyChild(this.props.children)(this.state.value)},ome}(React__default.Component);return rme.contextTypes=(tme={},tme[ame]=PropTypes.object,tme),{Provider:nme,Consumer:rme}}var createContext=React__default.createContext||createReactContext,createNamedContext=function(eme){var $P=createContext();return $P.displayName=eme,$P},historyContext=createNamedContext("Router-History"),context=createNamedContext("Router"),Router=function(x_){_inheritsLoose(eme,x_),eme.computeRootMatch=function(ame){return{path:"/",url:"/",params:{},isExact:ame==="/"}};function eme(tme){var ame;return ame=x_.call(this,tme)||this,ame.state={location:tme.history.location},ame._isMounted=!1,ame._pendingLocation=null,tme.staticContext||(ame.unlisten=tme.history.listen(function(nme){ame._pendingLocation=nme})),ame}var $P=eme.prototype;return $P.componentDidMount=function(){var ame=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(nme){ame._isMounted&&ame.setState({location:nme})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},$P.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},$P.render=function(){return React__default.createElement(context.Provider,{value:{history:this.props.history,location:this.state.location,match:eme.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},React__default.createElement(historyContext.Provider,{children:this.props.children||null,value:this.props.history}))},eme}(React__default.Component);React__default.Component;var Lifecycle=function(x_){_inheritsLoose(eme,x_);function eme(){return x_.apply(this,arguments)||this}var $P=eme.prototype;return $P.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},$P.componentDidUpdate=function(ame){this.props.onUpdate&&this.props.onUpdate.call(this,this,ame)},$P.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},$P.render=function(){return null},eme}(React__default.Component),cache$6={},cacheLimit=1e4,cacheCount=0;function compilePath(x_){if(cache$6[x_])return cache$6[x_];var eme=pathToRegexp$1.compile(x_);return cacheCount<cacheLimit&&(cache$6[x_]=eme,cacheCount++),eme}function generatePath(x_,eme){return x_===void 0&&(x_="/"),eme===void 0&&(eme={}),x_==="/"?x_:compilePath(x_)(eme,{pretty:!0})}function Redirect(x_){var eme=x_.computedMatch,$P=x_.to,tme=x_.push,ame=tme===void 0?!1:tme;return React__default.createElement(context.Consumer,null,function(nme){nme||invariant$4(!1);var rme=nme.history,ime=nme.staticContext,ome=ame?rme.push:rme.replace,lme=createLocation(eme?typeof $P=="string"?generatePath($P,eme.params):_extends$4C({},$P,{pathname:generatePath($P.pathname,eme.params)}):$P);return ime?(ome(lme),null):React__default.createElement(Lifecycle,{onMount:function(){ome(lme)},onUpdate:function(cme,dme){var ume=createLocation(dme.to);locationsAreEqual(ume,_extends$4C({},lme,{key:ume.key}))||ome(lme)},to:$P})})}var cache$1$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(x_,eme){var $P=""+eme.end+eme.strict+eme.sensitive,tme=cache$1$1[$P]||(cache$1$1[$P]={});if(tme[x_])return tme[x_];var ame=[],nme=pathToRegexp$1(x_,ame,eme),rme={regexp:nme,keys:ame};return cacheCount$1<cacheLimit$1&&(tme[x_]=rme,cacheCount$1++),rme}function matchPath(x_,eme){eme===void 0&&(eme={}),(typeof eme=="string"||Array.isArray(eme))&&(eme={path:eme});var $P=eme,tme=$P.path,ame=$P.exact,nme=ame===void 0?!1:ame,rme=$P.strict,ime=rme===void 0?!1:rme,ome=$P.sensitive,lme=ome===void 0?!1:ome,sme=[].concat(tme);return sme.reduce(function(cme,dme){if(!dme&&dme!=="")return null;if(cme)return cme;var ume=compilePath$1(dme,{end:nme,strict:ime,sensitive:lme}),fme=ume.regexp,pme=ume.keys,hme=fme.exec(x_);if(!hme)return null;var bme=hme[0],mme=hme.slice(1),vme=x_===bme;return nme&&!vme?null:{path:dme,url:dme==="/"&&bme===""?"/":bme,isExact:vme,params:pme.reduce(function(gme,yme,_me){return gme[yme.name]=mme[_me],gme},{})}},null)}function isEmptyChildren(x_){return React__default.Children.count(x_)===0}var Route=function(x_){_inheritsLoose(eme,x_);function eme(){return x_.apply(this,arguments)||this}var $P=eme.prototype;return $P.render=function(){var ame=this;return React__default.createElement(context.Consumer,null,function(nme){nme||invariant$4(!1);var rme=ame.props.location||nme.location,ime=ame.props.computedMatch?ame.props.computedMatch:ame.props.path?matchPath(rme.pathname,ame.props):nme.match,ome=_extends$4C({},nme,{location:rme,match:ime}),lme=ame.props,sme=lme.children,cme=lme.component,dme=lme.render;return Array.isArray(sme)&&isEmptyChildren(sme)&&(sme=null),React__default.createElement(context.Provider,{value:ome},ome.match?sme?typeof sme=="function"?sme(ome):sme:cme?React__default.createElement(cme,ome):dme?dme(ome):null:typeof sme=="function"?sme(ome):null)})},eme}(React__default.Component);function addLeadingSlash(x_){return x_.charAt(0)==="/"?x_:"/"+x_}function addBasename(x_,eme){return x_?_extends$4C({},eme,{pathname:addLeadingSlash(x_)+eme.pathname}):eme}function stripBasename(x_,eme){if(!x_)return eme;var $P=addLeadingSlash(x_);return eme.pathname.indexOf($P)!==0?eme:_extends$4C({},eme,{pathname:eme.pathname.substr($P.length)})}function createURL(x_){return typeof x_=="string"?x_:createPath(x_)}function staticHandler(x_){return function(){invariant$4(!1)}}function noop$f(){}React__default.Component;var Switch$4=function(x_){_inheritsLoose(eme,x_);function eme(){return x_.apply(this,arguments)||this}var $P=eme.prototype;return $P.render=function(){var ame=this;return React__default.createElement(context.Consumer,null,function(nme){nme||invariant$4(!1);var rme=ame.props.location||nme.location,ime,ome;return React__default.Children.forEach(ame.props.children,function(lme){if(ome==null&&React__default.isValidElement(lme)){ime=lme;var sme=lme.props.path||lme.props.from;ome=sme?matchPath(rme.pathname,_extends$4C({},lme.props,{path:sme})):nme.match}}),ome?React__default.cloneElement(ime,{location:rme,computedMatch:ome}):null})},eme}(React__default.Component),useContext=React__default.useContext;function useHistory(){return useContext(historyContext)}function useLocation(){return useContext(context).location}React__default.Component;var HashRouter=function(x_){_inheritsLoose(eme,x_);function eme(){for(var tme,ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];return tme=x_.call.apply(x_,[this].concat(nme))||this,tme.history=createHashHistory(tme.props),tme}var $P=eme.prototype;return $P.render=function(){return React__default.createElement(Router,{history:this.history,children:this.props.children})},eme}(React__default.Component),resolveToLocation=function(eme,$P){return typeof eme=="function"?eme($P):eme},normalizeToLocation=function(eme,$P){return typeof eme=="string"?createLocation(eme,null,null,$P):eme},forwardRefShim=function(eme){return eme},forwardRef=React__default.forwardRef;typeof forwardRef>"u"&&(forwardRef=forwardRefShim);function isModifiedEvent$1(x_){return!!(x_.metaKey||x_.altKey||x_.ctrlKey||x_.shiftKey)}var LinkAnchor=forwardRef(function(x_,eme){var $P=x_.innerRef,tme=x_.navigate,ame=x_.onClick,nme=_objectWithoutPropertiesLoose$3(x_,["innerRef","navigate","onClick"]),rme=nme.target,ime=_extends$4C({},nme,{onClick:function(lme){try{ame&&ame(lme)}catch(sme){throw lme.preventDefault(),sme}!lme.defaultPrevented&&lme.button===0&&(!rme||rme==="_self")&&!isModifiedEvent$1(lme)&&(lme.preventDefault(),tme())}});return forwardRefShim!==forwardRef?ime.ref=eme||$P:ime.ref=$P,React__default.createElement("a",ime)}),Link$2=forwardRef(function(x_,eme){var $P=x_.component,tme=$P===void 0?LinkAnchor:$P,ame=x_.replace,nme=x_.to,rme=x_.innerRef,ime=_objectWithoutPropertiesLoose$3(x_,["component","replace","to","innerRef"]);return React__default.createElement(context.Consumer,null,function(ome){ome||invariant$4(!1);var lme=ome.history,sme=normalizeToLocation(resolveToLocation(nme,ome.location),ome.location),cme=sme?lme.createHref(sme):"",dme=_extends$4C({},ime,{href:cme,navigate:function(){var fme=resolveToLocation(nme,ome.location),pme=createPath(ome.location)===createPath(normalizeToLocation(fme)),hme=ame||pme?lme.replace:lme.push;hme(fme)}});return forwardRefShim!==forwardRef?dme.ref=eme||rme:dme.innerRef=rme,React__default.createElement(tme,dme)})}),forwardRefShim$1=function(eme){return eme},forwardRef$1=React__default.forwardRef;typeof forwardRef$1>"u"&&(forwardRef$1=forwardRefShim$1);function joinClassnames(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return eme.filter(function(tme){return tme}).join(" ")}forwardRef$1(function(x_,eme){var $P=x_["aria-current"],tme=$P===void 0?"page":$P,ame=x_.activeClassName,nme=ame===void 0?"active":ame,rme=x_.activeStyle,ime=x_.className,ome=x_.exact,lme=x_.isActive,sme=x_.location,cme=x_.sensitive,dme=x_.strict,ume=x_.style,fme=x_.to,pme=x_.innerRef,hme=_objectWithoutPropertiesLoose$3(x_,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return React__default.createElement(context.Consumer,null,function(bme){bme||invariant$4(!1);var mme=sme||bme.location,vme=normalizeToLocation(resolveToLocation(fme,mme),mme),gme=vme.pathname,yme=gme&&gme.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_me=yme?matchPath(mme.pathname,{path:yme,exact:ome,sensitive:cme,strict:dme}):null,$me=!!(lme?lme(_me,mme):_me),Cme=typeof ime=="function"?ime($me):ime,Sme=typeof ume=="function"?ume($me):ume;$me&&(Cme=joinClassnames(Cme,nme),Sme=_extends$4C({},Sme,rme));var Eme=_extends$4C({"aria-current":$me&&tme||null,className:Cme,style:Sme,to:vme},hme);return forwardRefShim$1!==forwardRef$1?Eme.ref=eme||pme:Eme.innerRef=pme,React__default.createElement(Link$2,Eme)})});const appLoaded=()=>{var x_;return(x_=document.getElementById("app-loader"))==null?void 0:x_.remove()},registerGlobalFunction=(x_,eme)=>{window.$owl={...window.$owl,[x_]:eme}},arrayGet=(x_,eme,$P=null)=>{try{if(eme===null)return x_;if(x_[eme]!==void 0)return x_[eme];for(const tme of eme.split("."))if(x_[tme]!==void 0)x_=x_[tme];else return $P}catch{return $P}return x_},mergeObject=(x_,eme)=>{for(const $P in eme)if(eme.hasOwnProperty($P)){const tme=eme[$P],ame=x_[$P];if(tme===null)continue;isObject$s(tme)&&isObject$s(ame)?x_[$P]=mergeObject(ame,tme):x_[$P]=tme}return x_},isArray$w=x_=>Object.prototype.toString.call(x_)==="[object Array]",isObject$s=x_=>Object.prototype.toString.call(x_)==="[object Object]",isString$b=x_=>Object.prototype.toString.call(x_)==="[object String]",isSSR=function(){try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}}(),getCacheKey=x_=>window.$adminApiPrefix.replace(/^\//,"")+"-"+x_,Token=()=>{const x_=getCacheKey("token");return{value:localStorage.getItem(x_),set:eme=>localStorage.setItem(x_,eme),clear:()=>localStorage.removeItem(x_)}},inLoginPage=()=>window.location.hash.startsWith("#/login"),goToLoginPage=()=>{const x_=window.location.hash.includes("?redirect=")?window.location.hash.split("?redirect=")[1]:window.location.hash;if(x_=="#/"){window.location.hash="#/login";return}window.location.hash="#/login?redirect="+x_.replace("#","")},msgHandler=(x_,eme)=>{if(!(x_!=null&&x_.length))return;const $P="owl-msg-"+x_;if(!localStorage.getItem($P)){localStorage.setItem($P,x_),setTimeout(()=>{localStorage.removeItem($P)},5e3);try{eme().then(()=>{localStorage.removeItem($P)})}catch{localStorage.removeItem($P)}}},clearMsgSign=()=>{Object.keys(localStorage).forEach(eme=>{eme.startsWith("owl-msg-")&&localStorage.removeItem(eme)})},defaultSettings={darkTheme:!1,footer:!1,breadcrumb:!0,themeColor:"#1677ff",layoutMode:"default",siderTheme:"light",topTheme:"light",animateInType:"alpha",animateInDuration:600,animateOutType:"alpha",animateOutDuration:600,loginTemplate:"default",keepAlive:!1,enableTab:!1,tabIcon:!0,accordionMenu:!1},defaultToken={token:{wireframe:!0,colorSplit:"var(--color-border)"},components:{Menu:{iconSize:18,collapsedIconSize:18,itemMarginInline:8,subMenuItemBg:"transparent"}}},initialState$1={settings:{system_theme_setting:defaultSettings},userInfo:{},routes:[],userLoading:!1,inited:!1,openSetting:!1,antdToken:defaultToken};function store$3(x_=initialState$1,eme){switch(eme.type){case"update-userInfo":{const{userInfo:$P=initialState$1.userInfo,userLoading:tme}=eme.payload;return $P!=null&&$P.name&&localStorage.setItem(getCacheKey("user_name"),($P==null?void 0:$P.name)||""),{...x_,userLoading:tme,userInfo:$P}}case"update-breadcrumb":{const{breadcrumb:$P}=eme.payload;return{...x_,breadcrumb:$P}}case"update-settings":{const{settings:$P}=eme.payload,tme=JSON.parse(JSON.stringify(mergeObject(x_.settings,$P)));return localStorage.setItem(getCacheKey("settings"),JSON.stringify(tme)),{...x_,settings:tme}}case"update-routes":{const{routes:$P}=eme.payload;return{...x_,routes:$P}}case"update-inited":{const{inited:$P}=eme.payload;return{...x_,inited:$P}}case"update-open-setting":{const{openSetting:$P}=eme.payload;return{...x_,openSetting:$P}}case"update-antd-token":{const{antdToken:$P}=eme.payload;return{...x_,antdToken:$P}}default:return x_}}const GlobalContext=reactExports.createContext({});var createUpdateEffect=function(x_){return function(eme,$P){var tme=reactExports.useRef(!1);x_(function(){return function(){tme.current=!1}},[]),x_(function(){if(!tme.current)tme.current=!0;else return eme()},$P)}},extendStatics$2=function(x_,eme){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)Object.prototype.hasOwnProperty.call(tme,ame)&&($P[ame]=tme[ame])},extendStatics$2(x_,eme)};function __extends$2(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Class extends value "+String(eme)+" is not a constructor or null");extendStatics$2(x_,eme);function $P(){this.constructor=x_}x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}var __assign$3=function(){return __assign$3=Object.assign||function(eme){for(var $P,tme=1,ame=arguments.length;tme<ame;tme++){$P=arguments[tme];for(var nme in $P)Object.prototype.hasOwnProperty.call($P,nme)&&(eme[nme]=$P[nme])}return eme},__assign$3.apply(this,arguments)};function __rest$14(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P}function __decorate$1(x_,eme,$P,tme){var ame=arguments.length,nme=ame<3?eme:tme===null?tme=Object.getOwnPropertyDescriptor(eme,$P):tme,rme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")nme=Reflect.decorate(x_,eme,$P,tme);else for(var ime=x_.length-1;ime>=0;ime--)(rme=x_[ime])&&(nme=(ame<3?rme(nme):ame>3?rme(eme,$P,nme):rme(eme,$P))||nme);return ame>3&&nme&&Object.defineProperty(eme,$P,nme),nme}function __metadata(x_,eme){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(x_,eme)}function __awaiter(x_,eme,$P,tme){function ame(nme){return nme instanceof $P?nme:new $P(function(rme){rme(nme)})}return new($P||($P=Promise))(function(nme,rme){function ime(sme){try{lme(tme.next(sme))}catch(cme){rme(cme)}}function ome(sme){try{lme(tme.throw(sme))}catch(cme){rme(cme)}}function lme(sme){sme.done?nme(sme.value):ame(sme.value).then(ime,ome)}lme((tme=tme.apply(x_,eme||[])).next())})}function __generator(x_,eme){var $P={label:0,sent:function(){if(nme[0]&1)throw nme[1];return nme[1]},trys:[],ops:[]},tme,ame,nme,rme=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return rme.next=ime(0),rme.throw=ime(1),rme.return=ime(2),typeof Symbol=="function"&&(rme[Symbol.iterator]=function(){return this}),rme;function ime(lme){return function(sme){return ome([lme,sme])}}function ome(lme){if(tme)throw new TypeError("Generator is already executing.");for(;rme&&(rme=0,lme[0]&&($P=0)),$P;)try{if(tme=1,ame&&(nme=lme[0]&2?ame.return:lme[0]?ame.throw||((nme=ame.return)&&nme.call(ame),0):ame.next)&&!(nme=nme.call(ame,lme[1])).done)return nme;switch(ame=0,nme&&(lme=[lme[0]&2,nme.value]),lme[0]){case 0:case 1:nme=lme;break;case 4:return $P.label++,{value:lme[1],done:!1};case 5:$P.label++,ame=lme[1],lme=[0];continue;case 7:lme=$P.ops.pop(),$P.trys.pop();continue;default:if(nme=$P.trys,!(nme=nme.length>0&&nme[nme.length-1])&&(lme[0]===6||lme[0]===2)){$P=0;continue}if(lme[0]===3&&(!nme||lme[1]>nme[0]&&lme[1]<nme[3])){$P.label=lme[1];break}if(lme[0]===6&&$P.label<nme[1]){$P.label=nme[1],nme=lme;break}if(nme&&$P.label<nme[2]){$P.label=nme[2],$P.ops.push(lme);break}nme[2]&&$P.ops.pop(),$P.trys.pop();continue}lme=eme.call(x_,$P)}catch(sme){lme=[6,sme],ame=0}finally{tme=nme=0}if(lme[0]&5)throw lme[1];return{value:lme[0]?lme[1]:void 0,done:!0}}}function __values$1(x_){var eme=typeof Symbol=="function"&&Symbol.iterator,$P=eme&&x_[eme],tme=0;if($P)return $P.call(x_);if(x_&&typeof x_.length=="number")return{next:function(){return x_&&tme>=x_.length&&(x_=void 0),{value:x_&&x_[tme++],done:!x_}}};throw new TypeError(eme?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$3(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme=$P.call(x_),ame,nme=[],rme;try{for(;(eme===void 0||eme-- >0)&&!(ame=tme.next()).done;)nme.push(ame.value)}catch(ime){rme={error:ime}}finally{try{ame&&!ame.done&&($P=tme.return)&&$P.call(tme)}finally{if(rme)throw rme.error}}return nme}function __spread$2(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_=x_.concat(__read$3(arguments[eme]));return x_}function __spreadArray(x_,eme,$P){if($P||arguments.length===2)for(var tme=0,ame=eme.length,nme;tme<ame;tme++)(nme||!(tme in eme))&&(nme||(nme=Array.prototype.slice.call(eme,0,tme)),nme[tme]=eme[tme]);return x_.concat(nme||Array.prototype.slice.call(eme))}typeof SuppressedError=="function"&&SuppressedError;var isFunction$d=function(x_){return typeof x_=="function"},isBoolean$1=function(x_){return typeof x_=="boolean"};function useMemoizedFn(x_){var eme=reactExports.useRef(x_);eme.current=reactExports.useMemo(function(){return x_},[x_]);var $P=reactExports.useRef();return $P.current||($P.current=function(){for(var tme=[],ame=0;ame<arguments.length;ame++)tme[ame]=arguments[ame];return eme.current.apply(this,tme)}),$P.current}const useUpdateEffect$1=createUpdateEffect(reactExports.useEffect);var useAutoRunPlugin=function(x_,eme){var $P=eme.manual,tme=eme.ready,ame=tme===void 0?!0:tme,nme=eme.defaultParams,rme=nme===void 0?[]:nme,ime=eme.refreshDeps,ome=ime===void 0?[]:ime,lme=eme.refreshDepsAction,sme=reactExports.useRef(!1);return sme.current=!1,useUpdateEffect$1(function(){!$P&&ame&&(sme.current=!0,x_.run.apply(x_,__spreadArray([],__read$3(rme),!1)))},[ame]),useUpdateEffect$1(function(){sme.current||$P||(sme.current=!0,lme?lme():x_.refresh())},__spreadArray([],__read$3(ome),!1)),{onBefore:function(){if(!ame)return{stopNow:!0}}}};useAutoRunPlugin.onInit=function(x_){var eme=x_.ready,$P=eme===void 0?!0:eme,tme=x_.manual;return{loading:!tme&&$P}};function depsAreSame(x_,eme){if(x_===eme)return!0;for(var $P=0;$P<x_.length;$P++)if(!Object.is(x_[$P],eme[$P]))return!1;return!0}function useCreation(x_,eme){var $P=reactExports.useRef({deps:eme,obj:void 0,initialized:!1}).current;return($P.initialized===!1||!depsAreSame($P.deps,eme))&&($P.deps=eme,$P.obj=x_(),$P.initialized=!0),$P.obj}function useLatest$1(x_){var eme=reactExports.useRef(x_);return eme.current=x_,eme}var useUnmount=function(x_){var eme=useLatest$1(x_);reactExports.useEffect(function(){return function(){eme.current()}},[])},cache$5=new Map,setCache=function(x_,eme,$P){var tme=cache$5.get(x_);tme!=null&&tme.timer&&clearTimeout(tme.timer);var ame=void 0;eme>-1&&(ame=setTimeout(function(){cache$5.delete(x_)},eme)),cache$5.set(x_,__assign$3(__assign$3({},$P),{timer:ame}))},getCache=function(x_){return cache$5.get(x_)},cachePromise=new Map,getCachePromise=function(x_){return cachePromise.get(x_)},setCachePromise=function(x_,eme){cachePromise.set(x_,eme),eme.then(function($P){return cachePromise.delete(x_),$P}).catch(function(){cachePromise.delete(x_)})},listeners$2={},trigger$1=function(x_,eme){listeners$2[x_]&&listeners$2[x_].forEach(function($P){return $P(eme)})},subscribe$2=function(x_,eme){return listeners$2[x_]||(listeners$2[x_]=[]),listeners$2[x_].push(eme),function(){var tme=listeners$2[x_].indexOf(eme);listeners$2[x_].splice(tme,1)}},useCachePlugin=function(x_,eme){var $P=eme.cacheKey,tme=eme.cacheTime,ame=tme===void 0?5*60*1e3:tme,nme=eme.staleTime,rme=nme===void 0?0:nme,ime=eme.setCache,ome=eme.getCache,lme=reactExports.useRef(),sme=reactExports.useRef(),cme=function(ume,fme){ime?ime(fme):setCache(ume,ame,fme),trigger$1(ume,fme.data)},dme=function(ume,fme){return fme===void 0&&(fme=[]),ome?ome(fme):getCache(ume)};return useCreation(function(){if($P){var ume=dme($P);ume&&Object.hasOwnProperty.call(ume,"data")&&(x_.state.data=ume.data,x_.state.params=ume.params,(rme===-1||new Date().getTime()-ume.time<=rme)&&(x_.state.loading=!1)),lme.current=subscribe$2($P,function(fme){x_.setState({data:fme})})}},[]),useUnmount(function(){var ume;(ume=lme.current)===null||ume===void 0||ume.call(lme)}),$P?{onBefore:function(ume){var fme=dme($P,ume);return!fme||!Object.hasOwnProperty.call(fme,"data")?{}:rme===-1||new Date().getTime()-fme.time<=rme?{loading:!1,data:fme==null?void 0:fme.data,error:void 0,returnNow:!0}:{data:fme==null?void 0:fme.data,error:void 0}},onRequest:function(ume,fme){var pme=getCachePromise($P);return pme&&pme!==sme.current?{servicePromise:pme}:(pme=ume.apply(void 0,__spreadArray([],__read$3(fme),!1)),sme.current=pme,setCachePromise($P,pme),{servicePromise:pme})},onSuccess:function(ume,fme){var pme;$P&&((pme=lme.current)===null||pme===void 0||pme.call(lme),cme($P,{data:ume,params:fme,time:new Date().getTime()}),lme.current=subscribe$2($P,function(hme){x_.setState({data:hme})}))},onMutate:function(ume){var fme;$P&&((fme=lme.current)===null||fme===void 0||fme.call(lme),cme($P,{data:ume,params:x_.state.params,time:new Date().getTime()}),lme.current=subscribe$2($P,function(pme){x_.setState({data:pme})}))}}:{}};function isObject$q(x_){var eme=typeof x_;return x_!=null&&(eme=="object"||eme=="function")}var isObject_1=isObject$q;const isObject$r=getDefaultExportFromCjs(isObject_1);var freeGlobal$2=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$2,freeGlobal$1=_freeGlobal,freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$b=freeGlobal$1||freeSelf$1||Function("return this")(),_root=root$b,root$a=_root,now$4=function(){return root$a.Date.now()},now_1=now$4,reWhitespace$1=/\s/;function trimmedEndIndex$2(x_){for(var eme=x_.length;eme--&&reWhitespace$1.test(x_.charAt(eme)););return eme}var _trimmedEndIndex=trimmedEndIndex$2,trimmedEndIndex$1=_trimmedEndIndex,reTrimStart$1=/^\s+/;function baseTrim$2(x_){return x_&&x_.slice(0,trimmedEndIndex$1(x_)+1).replace(reTrimStart$1,"")}var _baseTrim=baseTrim$2,root$9=_root,Symbol$8=root$9.Symbol,_Symbol=Symbol$8,Symbol$7=_Symbol,objectProto$A=Object.prototype,hasOwnProperty$v=objectProto$A.hasOwnProperty,nativeObjectToString$3=objectProto$A.toString,symToStringTag$3=Symbol$7?Symbol$7.toStringTag:void 0;function getRawTag$2(x_){var eme=hasOwnProperty$v.call(x_,symToStringTag$3),$P=x_[symToStringTag$3];try{x_[symToStringTag$3]=void 0;var tme=!0}catch{}var ame=nativeObjectToString$3.call(x_);return tme&&(eme?x_[symToStringTag$3]=$P:delete x_[symToStringTag$3]),ame}var _getRawTag=getRawTag$2,objectProto$z=Object.prototype,nativeObjectToString$2=objectProto$z.toString;function objectToString$2(x_){return nativeObjectToString$2.call(x_)}var _objectToString=objectToString$2,Symbol$6=_Symbol,getRawTag$1=_getRawTag,objectToString$1=_objectToString,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$b(x_){return x_==null?x_===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(x_)?getRawTag$1(x_):objectToString$1(x_)}var _baseGetTag=baseGetTag$b;function isObjectLike$f(x_){return x_!=null&&typeof x_=="object"}var isObjectLike_1=isObjectLike$f;const isObjectLike$g=getDefaultExportFromCjs(isObjectLike_1);var baseGetTag$a=_baseGetTag,isObjectLike$e=isObjectLike_1,symbolTag$5="[object Symbol]";function isSymbol$6(x_){return typeof x_=="symbol"||isObjectLike$e(x_)&&baseGetTag$a(x_)==symbolTag$5}var isSymbol_1=isSymbol$6,baseTrim$1=_baseTrim,isObject$p=isObject_1,isSymbol$5=isSymbol_1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$4(x_){if(typeof x_=="number")return x_;if(isSymbol$5(x_))return NAN$1;if(isObject$p(x_)){var eme=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=isObject$p(eme)?eme+"":eme}if(typeof x_!="string")return x_===0?x_:+x_;x_=baseTrim$1(x_);var $P=reIsBinary$1.test(x_);return $P||reIsOctal$1.test(x_)?freeParseInt$1(x_.slice(2),$P?2:8):reIsBadHex$1.test(x_)?NAN$1:+x_}var toNumber_1=toNumber$4,isObject$o=isObject_1,now$3=now_1,toNumber$3=toNumber_1,FUNC_ERROR_TEXT$5="Expected a function",nativeMax$8=Math.max,nativeMin$4=Math.min;function debounce$5(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme=0,sme=!1,cme=!1,dme=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$5);eme=toNumber$3(eme)||0,isObject$o($P)&&(sme=!!$P.leading,cme="maxWait"in $P,nme=cme?nativeMax$8(toNumber$3($P.maxWait)||0,eme):nme,dme="trailing"in $P?!!$P.trailing:dme);function ume(_me){var $me=tme,Cme=ame;return tme=ame=void 0,lme=_me,rme=x_.apply(Cme,$me),rme}function fme(_me){return lme=_me,ime=setTimeout(bme,eme),sme?ume(_me):rme}function pme(_me){var $me=_me-ome,Cme=_me-lme,Sme=eme-$me;return cme?nativeMin$4(Sme,nme-Cme):Sme}function hme(_me){var $me=_me-ome,Cme=_me-lme;return ome===void 0||$me>=eme||$me<0||cme&&Cme>=nme}function bme(){var _me=now$3();if(hme(_me))return mme(_me);ime=setTimeout(bme,pme(_me))}function mme(_me){return ime=void 0,dme&&tme?ume(_me):(tme=ame=void 0,rme)}function vme(){ime!==void 0&&clearTimeout(ime),lme=0,tme=ome=ame=ime=void 0}function gme(){return ime===void 0?rme:mme(now$3())}function yme(){var _me=now$3(),$me=hme(_me);if(tme=arguments,ame=this,ome=_me,$me){if(ime===void 0)return fme(ome);if(cme)return clearTimeout(ime),ime=setTimeout(bme,eme),ume(ome)}return ime===void 0&&(ime=setTimeout(bme,eme)),rme}return yme.cancel=vme,yme.flush=gme,yme}var debounce_1=debounce$5;const debounce$6=getDefaultExportFromCjs(debounce_1);var useDebouncePlugin=function(x_,eme){var $P=eme.debounceWait,tme=eme.debounceLeading,ame=eme.debounceTrailing,nme=eme.debounceMaxWait,rme=reactExports.useRef(),ime=reactExports.useMemo(function(){var ome={};return tme!==void 0&&(ome.leading=tme),ame!==void 0&&(ome.trailing=ame),nme!==void 0&&(ome.maxWait=nme),ome},[tme,ame,nme]);return reactExports.useEffect(function(){if($P){var ome=x_.runAsync.bind(x_);return rme.current=debounce$6(function(lme){lme()},$P,ime),x_.runAsync=function(){for(var lme=[],sme=0;sme<arguments.length;sme++)lme[sme]=arguments[sme];return new Promise(function(cme,dme){var ume;(ume=rme.current)===null||ume===void 0||ume.call(rme,function(){ome.apply(void 0,__spreadArray([],__read$3(lme),!1)).then(cme).catch(dme)})})},function(){var lme;(lme=rme.current)===null||lme===void 0||lme.cancel(),x_.runAsync=ome}}},[$P,ime]),$P?{onCancel:function(){var ome;(ome=rme.current)===null||ome===void 0||ome.cancel()}}:{}},useLoadingDelayPlugin=function(x_,eme){var $P=eme.loadingDelay,tme=eme.ready,ame=reactExports.useRef();if(!$P)return{};var nme=function(){ame.current&&clearTimeout(ame.current)};return{onBefore:function(){return nme(),tme!==!1&&(ame.current=setTimeout(function(){x_.setState({loading:!0})},$P)),{loading:!1}},onFinally:function(){nme()},onCancel:function(){nme()}}},isBrowser$1=!!(typeof window<"u"&&window.document&&window.document.createElement);function isDocumentVisible(){return isBrowser$1?document.visibilityState!=="hidden":!0}var listeners$1=[];function subscribe$1(x_){return listeners$1.push(x_),function(){var $P=listeners$1.indexOf(x_);listeners$1.splice($P,1)}}if(isBrowser$1){var revalidate$1=function(){if(isDocumentVisible())for(var x_=0;x_<listeners$1.length;x_++){var eme=listeners$1[x_];eme()}};window.addEventListener("visibilitychange",revalidate$1,!1)}var usePollingPlugin=function(x_,eme){var $P=eme.pollingInterval,tme=eme.pollingWhenHidden,ame=tme===void 0?!0:tme,nme=eme.pollingErrorRetryCount,rme=nme===void 0?-1:nme,ime=reactExports.useRef(),ome=reactExports.useRef(),lme=reactExports.useRef(0),sme=function(){var cme;ime.current&&clearTimeout(ime.current),(cme=ome.current)===null||cme===void 0||cme.call(ome)};return useUpdateEffect$1(function(){$P||sme()},[$P]),$P?{onBefore:function(){sme()},onError:function(){lme.current+=1},onSuccess:function(){lme.current=0},onFinally:function(){rme===-1||rme!==-1&&lme.current<=rme?ime.current=setTimeout(function(){!ame&&!isDocumentVisible()?ome.current=subscribe$1(function(){x_.refresh()}):x_.refresh()},$P):lme.current=0},onCancel:function(){sme()}}:{}};function limit(x_,eme){var $P=!1;return function(){for(var tme=[],ame=0;ame<arguments.length;ame++)tme[ame]=arguments[ame];$P||($P=!0,x_.apply(void 0,__spreadArray([],__read$3(tme),!1)),setTimeout(function(){$P=!1},eme))}}function isOnline(){return isBrowser$1&&typeof navigator.onLine<"u"?navigator.onLine:!0}var listeners=[];function subscribe(x_){return listeners.push(x_),function(){var $P=listeners.indexOf(x_);$P>-1&&listeners.splice($P,1)}}if(isBrowser$1){var revalidate=function(){if(!(!isDocumentVisible()||!isOnline()))for(var x_=0;x_<listeners.length;x_++){var eme=listeners[x_];eme()}};window.addEventListener("visibilitychange",revalidate,!1),window.addEventListener("focus",revalidate,!1)}var useRefreshOnWindowFocusPlugin=function(x_,eme){var $P=eme.refreshOnWindowFocus,tme=eme.focusTimespan,ame=tme===void 0?5e3:tme,nme=reactExports.useRef(),rme=function(){var ime;(ime=nme.current)===null||ime===void 0||ime.call(nme)};return reactExports.useEffect(function(){if($P){var ime=limit(x_.refresh.bind(x_),ame);nme.current=subscribe(function(){ime()})}return function(){rme()}},[$P,ame]),useUnmount(function(){rme()}),{}},useRetryPlugin=function(x_,eme){var $P=eme.retryInterval,tme=eme.retryCount,ame=reactExports.useRef(),nme=reactExports.useRef(0),rme=reactExports.useRef(!1);return tme?{onBefore:function(){rme.current||(nme.current=0),rme.current=!1,ame.current&&clearTimeout(ame.current)},onSuccess:function(){nme.current=0},onError:function(){if(nme.current+=1,tme===-1||nme.current<=tme){var ime=$P??Math.min(1e3*Math.pow(2,nme.current),3e4);ame.current=setTimeout(function(){rme.current=!0,x_.refresh()},ime)}else nme.current=0},onCancel:function(){nme.current=0,ame.current&&clearTimeout(ame.current)}}:{}},debounce$4=debounce_1,isObject$n=isObject_1,FUNC_ERROR_TEXT$4="Expected a function";function throttle$5(x_,eme,$P){var tme=!0,ame=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$4);return isObject$n($P)&&(tme="leading"in $P?!!$P.leading:tme,ame="trailing"in $P?!!$P.trailing:ame),debounce$4(x_,eme,{leading:tme,maxWait:eme,trailing:ame})}var throttle_1=throttle$5;const throttle$6=getDefaultExportFromCjs(throttle_1);var useThrottlePlugin=function(x_,eme){var $P=eme.throttleWait,tme=eme.throttleLeading,ame=eme.throttleTrailing,nme=reactExports.useRef(),rme={};return tme!==void 0&&(rme.leading=tme),ame!==void 0&&(rme.trailing=ame),reactExports.useEffect(function(){if($P){var ime=x_.runAsync.bind(x_);return nme.current=throttle$6(function(ome){ome()},$P,rme),x_.runAsync=function(){for(var ome=[],lme=0;lme<arguments.length;lme++)ome[lme]=arguments[lme];return new Promise(function(sme,cme){var dme;(dme=nme.current)===null||dme===void 0||dme.call(nme,function(){ime.apply(void 0,__spreadArray([],__read$3(ome),!1)).then(sme).catch(cme)})})},function(){var ome;x_.runAsync=ime,(ome=nme.current)===null||ome===void 0||ome.cancel()}}},[$P,tme,ame]),$P?{onCancel:function(){var ime;(ime=nme.current)===null||ime===void 0||ime.cancel()}}:{}},useMount=function(x_){reactExports.useEffect(function(){x_==null||x_()},[])},useUpdate$1=function(){var x_=__read$3(reactExports.useState({}),2),eme=x_[1];return reactExports.useCallback(function(){return eme({})},[])},Fetch=function(){function x_(eme,$P,tme,ame){ame===void 0&&(ame={}),this.serviceRef=eme,this.options=$P,this.subscribe=tme,this.initState=ame,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=__assign$3(__assign$3(__assign$3({},this.state),{loading:!$P.manual}),ame)}return x_.prototype.setState=function(eme){eme===void 0&&(eme={}),this.state=__assign$3(__assign$3({},this.state),eme),this.subscribe()},x_.prototype.runPluginHandler=function(eme){for(var $P=[],tme=1;tme<arguments.length;tme++)$P[tme-1]=arguments[tme];var ame=this.pluginImpls.map(function(nme){var rme;return(rme=nme[eme])===null||rme===void 0?void 0:rme.call.apply(rme,__spreadArray([nme],__read$3($P),!1))}).filter(Boolean);return Object.assign.apply(Object,__spreadArray([{}],__read$3(ame),!1))},x_.prototype.runAsync=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me;return __generator(this,function(Cme){switch(Cme.label){case 0:if(this.count+=1,tme=this.count,ame=this.runPluginHandler("onBefore",eme),nme=ame.stopNow,rme=nme===void 0?!1:nme,ime=ame.returnNow,ome=ime===void 0?!1:ime,lme=__rest$14(ame,["stopNow","returnNow"]),rme)return[2,new Promise(function(){})];if(this.setState(__assign$3({loading:!0,params:eme},lme)),ome)return[2,Promise.resolve(lme.data)];(pme=(fme=this.options).onBefore)===null||pme===void 0||pme.call(fme,eme),Cme.label=1;case 1:return Cme.trys.push([1,3,,4]),sme=this.runPluginHandler("onRequest",this.serviceRef.current,eme).servicePromise,sme||(sme=(ume=this.serviceRef).current.apply(ume,__spreadArray([],__read$3(eme),!1))),[4,sme];case 2:return cme=Cme.sent(),tme!==this.count?[2,new Promise(function(){})]:(this.setState({data:cme,error:void 0,loading:!1}),(bme=(hme=this.options).onSuccess)===null||bme===void 0||bme.call(hme,cme,eme),this.runPluginHandler("onSuccess",cme,eme),(vme=(mme=this.options).onFinally)===null||vme===void 0||vme.call(mme,eme,cme,void 0),tme===this.count&&this.runPluginHandler("onFinally",eme,cme,void 0),[2,cme]);case 3:if(dme=Cme.sent(),tme!==this.count)return[2,new Promise(function(){})];throw this.setState({error:dme,loading:!1}),(yme=(gme=this.options).onError)===null||yme===void 0||yme.call(gme,dme,eme),this.runPluginHandler("onError",dme,eme),($me=(_me=this.options).onFinally)===null||$me===void 0||$me.call(_me,eme,void 0,dme),tme===this.count&&this.runPluginHandler("onFinally",eme,void 0,dme),dme;case 4:return[2]}})})},x_.prototype.run=function(){for(var eme=this,$P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];this.runAsync.apply(this,__spreadArray([],__read$3($P),!1)).catch(function(ame){eme.options.onError||console.error(ame)})},x_.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},x_.prototype.refresh=function(){this.run.apply(this,__spreadArray([],__read$3(this.state.params||[]),!1))},x_.prototype.refreshAsync=function(){return this.runAsync.apply(this,__spreadArray([],__read$3(this.state.params||[]),!1))},x_.prototype.mutate=function(eme){var $P=isFunction$d(eme)?eme(this.state.data):eme;this.runPluginHandler("onMutate",$P),this.setState({data:$P})},x_}();function useRequestImplement(x_,eme,$P){eme===void 0&&(eme={}),$P===void 0&&($P=[]);var tme=eme.manual,ame=tme===void 0?!1:tme,nme=eme.ready,rme=nme===void 0?!0:nme,ime=__rest$14(eme,["manual","ready"]),ome=__assign$3({manual:ame,ready:rme},ime),lme=useLatest$1(x_),sme=useUpdate$1(),cme=useCreation(function(){var dme=$P.map(function(ume){var fme;return(fme=ume==null?void 0:ume.onInit)===null||fme===void 0?void 0:fme.call(ume,ome)}).filter(Boolean);return new Fetch(lme,ome,sme,Object.assign.apply(Object,__spreadArray([{}],__read$3(dme),!1)))},[]);return cme.options=ome,cme.pluginImpls=$P.map(function(dme){return dme(cme,ome)}),useMount(function(){if(!ame&&rme){var dme=cme.state.params||eme.defaultParams||[];cme.run.apply(cme,__spreadArray([],__read$3(dme),!1))}}),useUnmount(function(){cme.cancel()}),{loading:cme.state.loading,data:cme.state.data,error:cme.state.error,params:cme.state.params||[],cancel:useMemoizedFn(cme.cancel.bind(cme)),refresh:useMemoizedFn(cme.refresh.bind(cme)),refreshAsync:useMemoizedFn(cme.refreshAsync.bind(cme)),run:useMemoizedFn(cme.run.bind(cme)),runAsync:useMemoizedFn(cme.runAsync.bind(cme)),mutate:useMemoizedFn(cme.mutate.bind(cme))}}function useRequest(x_,eme,$P){return useRequestImplement(x_,eme,__spreadArray(__spreadArray([],__read$3([]),!1),[useDebouncePlugin,useLoadingDelayPlugin,usePollingPlugin,useRefreshOnWindowFocusPlugin,useThrottlePlugin,useAutoRunPlugin,useCachePlugin,useRetryPlugin],!1))}function getTargetElement(x_,eme){if(isBrowser$1){if(!x_)return eme;var $P;return isFunction$d(x_)?$P=x_():"current"in x_?$P=x_.current:$P=x_,$P}}var createEffectWithTarget=function(x_){var eme=function($P,tme,ame){var nme=reactExports.useRef(!1),rme=reactExports.useRef([]),ime=reactExports.useRef([]),ome=reactExports.useRef();x_(function(){var lme,sme=Array.isArray(ame)?ame:[ame],cme=sme.map(function(dme){return getTargetElement(dme)});if(!nme.current){nme.current=!0,rme.current=cme,ime.current=tme,ome.current=$P();return}(cme.length!==rme.current.length||!depsAreSame(rme.current,cme)||!depsAreSame(ime.current,tme))&&((lme=ome.current)===null||lme===void 0||lme.call(ome),rme.current=cme,ime.current=tme,ome.current=$P())}),useUnmount(function(){var lme;(lme=ome.current)===null||lme===void 0||lme.call(ome),nme.current=!1})};return eme},useEffectWithTarget$1=createEffectWithTarget(reactExports.useEffect),screenfull$1={exports:{}};/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/(function(x_){(function(){var eme=typeof window<"u"&&typeof window.document<"u"?window.document:{},$P=x_.exports,tme=function(){for(var rme,ime=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],ome=0,lme=ime.length,sme={};ome<lme;ome++)if(rme=ime[ome],rme&&rme[1]in eme){for(ome=0;ome<rme.length;ome++)sme[ime[0][ome]]=rme[ome];return sme}return!1}(),ame={change:tme.fullscreenchange,error:tme.fullscreenerror},nme={request:function(rme,ime){return new Promise((function(ome,lme){var sme=(function(){this.off("change",sme),ome()}).bind(this);this.on("change",sme),rme=rme||eme.documentElement;var cme=rme[tme.requestFullscreen](ime);cme instanceof Promise&&cme.then(sme).catch(lme)}).bind(this))},exit:function(){return new Promise((function(rme,ime){if(!this.isFullscreen){rme();return}var ome=(function(){this.off("change",ome),rme()}).bind(this);this.on("change",ome);var lme=eme[tme.exitFullscreen]();lme instanceof Promise&&lme.then(ome).catch(ime)}).bind(this))},toggle:function(rme,ime){return this.isFullscreen?this.exit():this.request(rme,ime)},onchange:function(rme){this.on("change",rme)},onerror:function(rme){this.on("error",rme)},on:function(rme,ime){var ome=ame[rme];ome&&eme.addEventListener(ome,ime,!1)},off:function(rme,ime){var ome=ame[rme];ome&&eme.removeEventListener(ome,ime,!1)},raw:tme};if(!tme){$P?x_.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(nme,{isFullscreen:{get:function(){return!!eme[tme.fullscreenElement]}},element:{enumerable:!0,get:function(){return eme[tme.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!eme[tme.fullscreenEnabled]}}}),$P?x_.exports=nme:window.screenfull=nme})()})(screenfull$1);var screenfullExports=screenfull$1.exports;const screenfull=getDefaultExportFromCjs(screenfullExports);var useFullscreen=function(x_,eme){var $P={},tme=$P.onExit,ame=$P.onEnter,nme=$P.pageFullscreen,rme=nme===void 0?!1:nme,ime=isBoolean$1(rme)||!rme?{}:rme,ome=ime.className,lme=ome===void 0?"ahooks-page-fullscreen":ome,sme=ime.zIndex,cme=sme===void 0?999999:sme,dme=useLatest$1(tme),ume=useLatest$1(ame),fme=__read$3(reactExports.useState(mme),2),pme=fme[0],hme=fme[1],bme=reactExports.useRef(mme());function mme(){return screenfull.isEnabled&&!!screenfull.element&&screenfull.element===getTargetElement(x_)}var vme=function(Eme){var xme,Tme;Eme?(xme=ume.current)===null||xme===void 0||xme.call(ume):(Tme=dme.current)===null||Tme===void 0||Tme.call(dme)},gme=function(Eme){bme.current!==Eme&&(vme(Eme),hme(Eme),bme.current=Eme)},yme=function(){var Eme=mme();gme(Eme)},_me=function(Eme){var xme=getTargetElement(x_);if(xme){var Tme=document.getElementById(lme);Eme?(xme.classList.add(lme),Tme||(Tme=document.createElement("style"),Tme.setAttribute("id",lme),Tme.textContent=`
          .`.concat(lme,` {
            position: fixed; left: 0; top: 0; right: 0; bottom: 0;
            width: 100% !important; height: 100% !important;
            z-index: `).concat(cme,`;
          }`),xme.appendChild(Tme))):(xme.classList.remove(lme),Tme&&Tme.remove()),gme(Eme)}},$me=function(){var Eme=getTargetElement(x_);if(Eme){if(rme){_me(!0);return}if(screenfull.isEnabled)try{screenfull.request(Eme)}catch(xme){console.error(xme)}}},Cme=function(){var Eme=getTargetElement(x_);if(Eme){if(rme){_me(!1);return}screenfull.isEnabled&&screenfull.element===Eme&&screenfull.exit()}},Sme=function(){pme?Cme():$me()};return reactExports.useEffect(function(){if(!(!screenfull.isEnabled||rme))return screenfull.on("change",yme),function(){screenfull.off("change",yme)}},[]),[pme,{enterFullscreen:useMemoizedFn($me),exitFullscreen:useMemoizedFn(Cme),toggleFullscreen:useMemoizedFn(Sme),isEnabled:screenfull.isEnabled}]};function useRafState(x_){var eme=reactExports.useRef(0),$P=__read$3(reactExports.useState(x_),2),tme=$P[0],ame=$P[1],nme=reactExports.useCallback(function(rme){cancelAnimationFrame(eme.current),eme.current=requestAnimationFrame(function(){ame(rme)})},[]);return useUnmount(function(){cancelAnimationFrame(eme.current)}),[tme,nme]}function overArg$3(x_,eme){return function($P){return x_(eme($P))}}var _overArg=overArg$3,overArg$2=_overArg,getPrototype$5=overArg$2(Object.getPrototypeOf,Object),_getPrototype=getPrototype$5,baseGetTag$9=_baseGetTag,getPrototype$4=_getPrototype,isObjectLike$d=isObjectLike_1,objectTag$8="[object Object]",funcProto$5=Function.prototype,objectProto$y=Object.prototype,funcToString$5=funcProto$5.toString,hasOwnProperty$u=objectProto$y.hasOwnProperty,objectCtorString$1=funcToString$5.call(Object);function isPlainObject$a(x_){if(!isObjectLike$d(x_)||baseGetTag$9(x_)!=objectTag$8)return!1;var eme=getPrototype$4(x_);if(eme===null)return!0;var $P=hasOwnProperty$u.call(eme,"constructor")&&eme.constructor;return typeof $P=="function"&&$P instanceof $P&&funcToString$5.call($P)==objectCtorString$1}var isPlainObject_1=isPlainObject$a;const isPlainObject$b=getDefaultExportFromCjs(isPlainObject_1);var MapShim=function(){if(typeof Map<"u")return Map;function x_(eme,$P){var tme=-1;return eme.some(function(ame,nme){return ame[0]===$P?(tme=nme,!0):!1}),tme}return function(){function eme(){this.__entries__=[]}return Object.defineProperty(eme.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),eme.prototype.get=function($P){var tme=x_(this.__entries__,$P),ame=this.__entries__[tme];return ame&&ame[1]},eme.prototype.set=function($P,tme){var ame=x_(this.__entries__,$P);~ame?this.__entries__[ame][1]=tme:this.__entries__.push([$P,tme])},eme.prototype.delete=function($P){var tme=this.__entries__,ame=x_(tme,$P);~ame&&tme.splice(ame,1)},eme.prototype.has=function($P){return!!~x_(this.__entries__,$P)},eme.prototype.clear=function(){this.__entries__.splice(0)},eme.prototype.forEach=function($P,tme){tme===void 0&&(tme=null);for(var ame=0,nme=this.__entries__;ame<nme.length;ame++){var rme=nme[ame];$P.call(tme,rme[1],rme[0])}},eme}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=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")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(x_){return setTimeout(function(){return x_(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle$4(x_,eme){var $P=!1,tme=!1,ame=0;function nme(){$P&&($P=!1,x_()),tme&&ime()}function rme(){requestAnimationFrame$1(nme)}function ime(){var ome=Date.now();if($P){if(ome-ame<trailingTimeout)return;tme=!0}else $P=!0,tme=!1,setTimeout(rme,eme);ame=ome}return ime}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function x_(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle$4(this.refresh.bind(this),REFRESH_DELAY)}return x_.prototype.addObserver=function(eme){~this.observers_.indexOf(eme)||this.observers_.push(eme),this.connected_||this.connect_()},x_.prototype.removeObserver=function(eme){var $P=this.observers_,tme=$P.indexOf(eme);~tme&&$P.splice(tme,1),!$P.length&&this.connected_&&this.disconnect_()},x_.prototype.refresh=function(){var eme=this.updateObservers_();eme&&this.refresh()},x_.prototype.updateObservers_=function(){var eme=this.observers_.filter(function($P){return $P.gatherActive(),$P.hasActive()});return eme.forEach(function($P){return $P.broadcastActive()}),eme.length>0},x_.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(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)},x_.prototype.disconnect_=function(){!isBrowser||!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)},x_.prototype.onTransitionEnd_=function(eme){var $P=eme.propertyName,tme=$P===void 0?"":$P,ame=transitionKeys.some(function(nme){return!!~tme.indexOf(nme)});ame&&this.refresh()},x_.getInstance=function(){return this.instance_||(this.instance_=new x_),this.instance_},x_.instance_=null,x_}(),defineConfigurable=function(x_,eme){for(var $P=0,tme=Object.keys(eme);$P<tme.length;$P++){var ame=tme[$P];Object.defineProperty(x_,ame,{value:eme[ame],enumerable:!1,writable:!1,configurable:!0})}return x_},getWindowOf=function(x_){var eme=x_&&x_.ownerDocument&&x_.ownerDocument.defaultView;return eme||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(x_){return parseFloat(x_)||0}function getBordersSize(x_){for(var eme=[],$P=1;$P<arguments.length;$P++)eme[$P-1]=arguments[$P];return eme.reduce(function(tme,ame){var nme=x_["border-"+ame+"-width"];return tme+toFloat(nme)},0)}function getPaddings(x_){for(var eme=["top","right","bottom","left"],$P={},tme=0,ame=eme;tme<ame.length;tme++){var nme=ame[tme],rme=x_["padding-"+nme];$P[nme]=toFloat(rme)}return $P}function getSVGContentRect(x_){var eme=x_.getBBox();return createRectInit(0,0,eme.width,eme.height)}function getHTMLElementContentRect(x_){var eme=x_.clientWidth,$P=x_.clientHeight;if(!eme&&!$P)return emptyRect;var tme=getWindowOf(x_).getComputedStyle(x_),ame=getPaddings(tme),nme=ame.left+ame.right,rme=ame.top+ame.bottom,ime=toFloat(tme.width),ome=toFloat(tme.height);if(tme.boxSizing==="border-box"&&(Math.round(ime+nme)!==eme&&(ime-=getBordersSize(tme,"left","right")+nme),Math.round(ome+rme)!==$P&&(ome-=getBordersSize(tme,"top","bottom")+rme)),!isDocumentElement(x_)){var lme=Math.round(ime+nme)-eme,sme=Math.round(ome+rme)-$P;Math.abs(lme)!==1&&(ime-=lme),Math.abs(sme)!==1&&(ome-=sme)}return createRectInit(ame.left,ame.top,ime,ome)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(x_){return x_ instanceof getWindowOf(x_).SVGGraphicsElement}:function(x_){return x_ instanceof getWindowOf(x_).SVGElement&&typeof x_.getBBox=="function"}}();function isDocumentElement(x_){return x_===getWindowOf(x_).document.documentElement}function getContentRect(x_){return isBrowser?isSVGGraphicsElement(x_)?getSVGContentRect(x_):getHTMLElementContentRect(x_):emptyRect}function createReadOnlyRect(x_){var eme=x_.x,$P=x_.y,tme=x_.width,ame=x_.height,nme=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,rme=Object.create(nme.prototype);return defineConfigurable(rme,{x:eme,y:$P,width:tme,height:ame,top:$P,right:eme+tme,bottom:ame+$P,left:eme}),rme}function createRectInit(x_,eme,$P,tme){return{x:x_,y:eme,width:$P,height:tme}}var ResizeObservation=function(){function x_(eme){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=eme}return x_.prototype.isActive=function(){var eme=getContentRect(this.target);return this.contentRect_=eme,eme.width!==this.broadcastWidth||eme.height!==this.broadcastHeight},x_.prototype.broadcastRect=function(){var eme=this.contentRect_;return this.broadcastWidth=eme.width,this.broadcastHeight=eme.height,eme},x_}(),ResizeObserverEntry=function(){function x_(eme,$P){var tme=createReadOnlyRect($P);defineConfigurable(this,{target:eme,contentRect:tme})}return x_}(),ResizeObserverSPI=function(){function x_(eme,$P,tme){if(this.activeObservations_=[],this.observations_=new MapShim,typeof eme!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=eme,this.controller_=$P,this.callbackCtx_=tme}return x_.prototype.observe=function(eme){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(eme instanceof getWindowOf(eme).Element))throw new TypeError('parameter 1 is not of type "Element".');var $P=this.observations_;$P.has(eme)||($P.set(eme,new ResizeObservation(eme)),this.controller_.addObserver(this),this.controller_.refresh())}},x_.prototype.unobserve=function(eme){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(eme instanceof getWindowOf(eme).Element))throw new TypeError('parameter 1 is not of type "Element".');var $P=this.observations_;$P.has(eme)&&($P.delete(eme),$P.size||this.controller_.removeObserver(this))}},x_.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},x_.prototype.gatherActive=function(){var eme=this;this.clearActive(),this.observations_.forEach(function($P){$P.isActive()&&eme.activeObservations_.push($P)})},x_.prototype.broadcastActive=function(){if(this.hasActive()){var eme=this.callbackCtx_,$P=this.activeObservations_.map(function(tme){return new ResizeObserverEntry(tme.target,tme.broadcastRect())});this.callback_.call(eme,$P,eme),this.clearActive()}},x_.prototype.clearActive=function(){this.activeObservations_.splice(0)},x_.prototype.hasActive=function(){return this.activeObservations_.length>0},x_}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=function(){function x_(eme){if(!(this instanceof x_))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $P=ResizeObserverController.getInstance(),tme=new ResizeObserverSPI(eme,$P,this);observers.set(this,tme)}return x_}();["observe","unobserve","disconnect"].forEach(function(x_){ResizeObserver$2.prototype[x_]=function(){var eme;return(eme=observers.get(this))[x_].apply(eme,arguments)}});var index$a=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$2}(),useEffectWithTarget=createEffectWithTarget(reactExports.useLayoutEffect),useIsomorphicLayoutEffectWithTarget=isBrowser$1?useEffectWithTarget:useEffectWithTarget$1;function useSize$1(x_){var eme=__read$3(useRafState(function(){var ame=getTargetElement(x_);return ame?{width:ame.clientWidth,height:ame.clientHeight}:void 0}),2),$P=eme[0],tme=eme[1];return useIsomorphicLayoutEffectWithTarget(function(){var ame=getTargetElement(x_);if(ame){var nme=new index$a(function(rme){rme.forEach(function(ime){var ome=ime.target,lme=ome.clientWidth,sme=ome.clientHeight;tme({width:lme,height:sme})})});return nme.observe(ame),function(){nme.disconnect()}}},[],x_),$P}var axios$7={exports:{}},bind$6=function(eme,$P){return function(){for(var ame=new Array(arguments.length),nme=0;nme<ame.length;nme++)ame[nme]=arguments[nme];return eme.apply($P,ame)}},bind$5=bind$6,toString$g=Object.prototype.toString;function isArray$v(x_){return toString$g.call(x_)==="[object Array]"}function isUndefined$6(x_){return typeof x_>"u"}function isBuffer$a(x_){return x_!==null&&!isUndefined$6(x_)&&x_.constructor!==null&&!isUndefined$6(x_.constructor)&&typeof x_.constructor.isBuffer=="function"&&x_.constructor.isBuffer(x_)}function isArrayBuffer$1(x_){return toString$g.call(x_)==="[object ArrayBuffer]"}function isFormData$1(x_){return typeof FormData<"u"&&x_ instanceof FormData}function isArrayBufferView$1(x_){var eme;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?eme=ArrayBuffer.isView(x_):eme=x_&&x_.buffer&&x_.buffer instanceof ArrayBuffer,eme}function isString$a(x_){return typeof x_=="string"}function isNumber$7(x_){return typeof x_=="number"}function isObject$m(x_){return x_!==null&&typeof x_=="object"}function isPlainObject$9(x_){if(toString$g.call(x_)!=="[object Object]")return!1;var eme=Object.getPrototypeOf(x_);return eme===null||eme===Object.prototype}function isDate$2(x_){return toString$g.call(x_)==="[object Date]"}function isFile$1(x_){return toString$g.call(x_)==="[object File]"}function isBlob$1(x_){return toString$g.call(x_)==="[object Blob]"}function isFunction$c(x_){return toString$g.call(x_)==="[object Function]"}function isStream$1(x_){return isObject$m(x_)&&isFunction$c(x_.pipe)}function isURLSearchParams$1(x_){return typeof URLSearchParams<"u"&&x_ instanceof URLSearchParams}function trim$2(x_){return x_.trim?x_.trim():x_.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv$1(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach$4(x_,eme){if(!(x_===null||typeof x_>"u"))if(typeof x_!="object"&&(x_=[x_]),isArray$v(x_))for(var $P=0,tme=x_.length;$P<tme;$P++)eme.call(null,x_[$P],$P,x_);else for(var ame in x_)Object.prototype.hasOwnProperty.call(x_,ame)&&eme.call(null,x_[ame],ame,x_)}function merge$7(){var x_={};function eme(ame,nme){isPlainObject$9(x_[nme])&&isPlainObject$9(ame)?x_[nme]=merge$7(x_[nme],ame):isPlainObject$9(ame)?x_[nme]=merge$7({},ame):isArray$v(ame)?x_[nme]=ame.slice():x_[nme]=ame}for(var $P=0,tme=arguments.length;$P<tme;$P++)forEach$4(arguments[$P],eme);return x_}function extend$7(x_,eme,$P){return forEach$4(eme,function(ame,nme){$P&&typeof ame=="function"?x_[nme]=bind$5(ame,$P):x_[nme]=ame}),x_}function stripBOM$1(x_){return x_.charCodeAt(0)===65279&&(x_=x_.slice(1)),x_}var utils$l={isArray:isArray$v,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$a,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$a,isNumber:isNumber$7,isObject:isObject$m,isPlainObject:isPlainObject$9,isUndefined:isUndefined$6,isDate:isDate$2,isFile:isFile$1,isBlob:isBlob$1,isFunction:isFunction$c,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isStandardBrowserEnv:isStandardBrowserEnv$1,forEach:forEach$4,merge:merge$7,extend:extend$7,trim:trim$2,stripBOM:stripBOM$1},utils$k=utils$l;function encode$3(x_){return encodeURIComponent(x_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$3=function(eme,$P,tme){if(!$P)return eme;var ame;if(tme)ame=tme($P);else if(utils$k.isURLSearchParams($P))ame=$P.toString();else{var nme=[];utils$k.forEach($P,function(ome,lme){ome===null||typeof ome>"u"||(utils$k.isArray(ome)?lme=lme+"[]":ome=[ome],utils$k.forEach(ome,function(cme){utils$k.isDate(cme)?cme=cme.toISOString():utils$k.isObject(cme)&&(cme=JSON.stringify(cme)),nme.push(encode$3(lme)+"="+encode$3(cme))}))}),ame=nme.join("&")}if(ame){var rme=eme.indexOf("#");rme!==-1&&(eme=eme.slice(0,rme)),eme+=(eme.indexOf("?")===-1?"?":"&")+ame}return eme},utils$j=utils$l;function InterceptorManager$3(){this.handlers=[]}InterceptorManager$3.prototype.use=function(eme,$P,tme){return this.handlers.push({fulfilled:eme,rejected:$P,synchronous:tme?tme.synchronous:!1,runWhen:tme?tme.runWhen:null}),this.handlers.length-1};InterceptorManager$3.prototype.eject=function(eme){this.handlers[eme]&&(this.handlers[eme]=null)};InterceptorManager$3.prototype.forEach=function(eme){utils$j.forEach(this.handlers,function(tme){tme!==null&&eme(tme)})};var InterceptorManager_1$1=InterceptorManager$3,utils$i=utils$l,normalizeHeaderName$2=function(eme,$P){utils$i.forEach(eme,function(ame,nme){nme!==$P&&nme.toUpperCase()===$P.toUpperCase()&&(eme[$P]=ame,delete eme[nme])})},enhanceError$1=function(eme,$P,tme,ame,nme){return eme.config=$P,tme&&(eme.code=tme),eme.request=ame,eme.response=nme,eme.isAxiosError=!0,eme.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},eme},createError$1,hasRequiredCreateError$1;function requireCreateError$1(){if(hasRequiredCreateError$1)return createError$1;hasRequiredCreateError$1=1;var x_=enhanceError$1;return createError$1=function($P,tme,ame,nme,rme){var ime=new Error($P);return x_(ime,tme,ame,nme,rme)},createError$1}var settle$1,hasRequiredSettle$1;function requireSettle$1(){if(hasRequiredSettle$1)return settle$1;hasRequiredSettle$1=1;var x_=requireCreateError$1();return settle$1=function($P,tme,ame){var nme=ame.config.validateStatus;!ame.status||!nme||nme(ame.status)?$P(ame):tme(x_("Request failed with status code "+ame.status,ame.config,null,ame.request,ame))},settle$1}var cookies$1,hasRequiredCookies$1;function requireCookies$1(){if(hasRequiredCookies$1)return cookies$1;hasRequiredCookies$1=1;var x_=utils$l;return cookies$1=x_.isStandardBrowserEnv()?function(){return{write:function(tme,ame,nme,rme,ime,ome){var lme=[];lme.push(tme+"="+encodeURIComponent(ame)),x_.isNumber(nme)&&lme.push("expires="+new Date(nme).toGMTString()),x_.isString(rme)&&lme.push("path="+rme),x_.isString(ime)&&lme.push("domain="+ime),ome===!0&&lme.push("secure"),document.cookie=lme.join("; ")},read:function(tme){var ame=document.cookie.match(new RegExp("(^|;\\s*)("+tme+")=([^;]*)"));return ame?decodeURIComponent(ame[3]):null},remove:function(tme){this.write(tme,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies$1}var isAbsoluteURL$1,hasRequiredIsAbsoluteURL$1;function requireIsAbsoluteURL$1(){return hasRequiredIsAbsoluteURL$1||(hasRequiredIsAbsoluteURL$1=1,isAbsoluteURL$1=function(eme){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(eme)}),isAbsoluteURL$1}var combineURLs$1,hasRequiredCombineURLs$1;function requireCombineURLs$1(){return hasRequiredCombineURLs$1||(hasRequiredCombineURLs$1=1,combineURLs$1=function(eme,$P){return $P?eme.replace(/\/+$/,"")+"/"+$P.replace(/^\/+/,""):eme}),combineURLs$1}var buildFullPath$1,hasRequiredBuildFullPath$1;function requireBuildFullPath$1(){if(hasRequiredBuildFullPath$1)return buildFullPath$1;hasRequiredBuildFullPath$1=1;var x_=requireIsAbsoluteURL$1(),eme=requireCombineURLs$1();return buildFullPath$1=function(tme,ame){return tme&&!x_(ame)?eme(tme,ame):ame},buildFullPath$1}var parseHeaders$1,hasRequiredParseHeaders$1;function requireParseHeaders$1(){if(hasRequiredParseHeaders$1)return parseHeaders$1;hasRequiredParseHeaders$1=1;var x_=utils$l,eme=["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"];return parseHeaders$1=function(tme){var ame={},nme,rme,ime;return tme&&x_.forEach(tme.split(`
`),function(lme){if(ime=lme.indexOf(":"),nme=x_.trim(lme.substr(0,ime)).toLowerCase(),rme=x_.trim(lme.substr(ime+1)),nme){if(ame[nme]&&eme.indexOf(nme)>=0)return;nme==="set-cookie"?ame[nme]=(ame[nme]?ame[nme]:[]).concat([rme]):ame[nme]=ame[nme]?ame[nme]+", "+rme:rme}}),ame},parseHeaders$1}var isURLSameOrigin$1,hasRequiredIsURLSameOrigin$1;function requireIsURLSameOrigin$1(){if(hasRequiredIsURLSameOrigin$1)return isURLSameOrigin$1;hasRequiredIsURLSameOrigin$1=1;var x_=utils$l;return isURLSameOrigin$1=x_.isStandardBrowserEnv()?function(){var $P=/(msie|trident)/i.test(navigator.userAgent),tme=document.createElement("a"),ame;function nme(rme){var ime=rme;return $P&&(tme.setAttribute("href",ime),ime=tme.href),tme.setAttribute("href",ime),{href:tme.href,protocol:tme.protocol?tme.protocol.replace(/:$/,""):"",host:tme.host,search:tme.search?tme.search.replace(/^\?/,""):"",hash:tme.hash?tme.hash.replace(/^#/,""):"",hostname:tme.hostname,port:tme.port,pathname:tme.pathname.charAt(0)==="/"?tme.pathname:"/"+tme.pathname}}return ame=nme(window.location.href),function(ime){var ome=x_.isString(ime)?nme(ime):ime;return ome.protocol===ame.protocol&&ome.host===ame.host}}():function(){return function(){return!0}}(),isURLSameOrigin$1}var Cancel_1$1,hasRequiredCancel$1;function requireCancel$1(){if(hasRequiredCancel$1)return Cancel_1$1;hasRequiredCancel$1=1;function x_(eme){this.message=eme}return x_.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},x_.prototype.__CANCEL__=!0,Cancel_1$1=x_,Cancel_1$1}var xhr$1,hasRequiredXhr$1;function requireXhr$1(){if(hasRequiredXhr$1)return xhr$1;hasRequiredXhr$1=1;var x_=utils$l,eme=requireSettle$1(),$P=requireCookies$1(),tme=buildURL$3,ame=requireBuildFullPath$1(),nme=requireParseHeaders$1(),rme=requireIsURLSameOrigin$1(),ime=requireCreateError$1(),ome=requireDefaults(),lme=requireCancel$1();return xhr$1=function(cme){return new Promise(function(ume,fme){var pme=cme.data,hme=cme.headers,bme=cme.responseType,mme;function vme(){cme.cancelToken&&cme.cancelToken.unsubscribe(mme),cme.signal&&cme.signal.removeEventListener("abort",mme)}x_.isFormData(pme)&&delete hme["Content-Type"];var gme=new XMLHttpRequest;if(cme.auth){var yme=cme.auth.username||"",_me=cme.auth.password?unescape(encodeURIComponent(cme.auth.password)):"";hme.Authorization="Basic "+btoa(yme+":"+_me)}var $me=ame(cme.baseURL,cme.url);gme.open(cme.method.toUpperCase(),tme($me,cme.params,cme.paramsSerializer),!0),gme.timeout=cme.timeout;function Cme(){if(gme){var Eme="getAllResponseHeaders"in gme?nme(gme.getAllResponseHeaders()):null,xme=!bme||bme==="text"||bme==="json"?gme.responseText:gme.response,Tme={data:xme,status:gme.status,statusText:gme.statusText,headers:Eme,config:cme,request:gme};eme(function(Rme){ume(Rme),vme()},function(Rme){fme(Rme),vme()},Tme),gme=null}}if("onloadend"in gme?gme.onloadend=Cme:gme.onreadystatechange=function(){!gme||gme.readyState!==4||gme.status===0&&!(gme.responseURL&&gme.responseURL.indexOf("file:")===0)||setTimeout(Cme)},gme.onabort=function(){gme&&(fme(ime("Request aborted",cme,"ECONNABORTED",gme)),gme=null)},gme.onerror=function(){fme(ime("Network Error",cme,null,gme)),gme=null},gme.ontimeout=function(){var xme=cme.timeout?"timeout of "+cme.timeout+"ms exceeded":"timeout exceeded",Tme=cme.transitional||ome.transitional;cme.timeoutErrorMessage&&(xme=cme.timeoutErrorMessage),fme(ime(xme,cme,Tme.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",gme)),gme=null},x_.isStandardBrowserEnv()){var Sme=(cme.withCredentials||rme($me))&&cme.xsrfCookieName?$P.read(cme.xsrfCookieName):void 0;Sme&&(hme[cme.xsrfHeaderName]=Sme)}"setRequestHeader"in gme&&x_.forEach(hme,function(xme,Tme){typeof pme>"u"&&Tme.toLowerCase()==="content-type"?delete hme[Tme]:gme.setRequestHeader(Tme,xme)}),x_.isUndefined(cme.withCredentials)||(gme.withCredentials=!!cme.withCredentials),bme&&bme!=="json"&&(gme.responseType=cme.responseType),typeof cme.onDownloadProgress=="function"&&gme.addEventListener("progress",cme.onDownloadProgress),typeof cme.onUploadProgress=="function"&&gme.upload&&gme.upload.addEventListener("progress",cme.onUploadProgress),(cme.cancelToken||cme.signal)&&(mme=function(Eme){gme&&(fme(!Eme||Eme&&Eme.type?new lme("canceled"):Eme),gme.abort(),gme=null)},cme.cancelToken&&cme.cancelToken.subscribe(mme),cme.signal&&(cme.signal.aborted?mme():cme.signal.addEventListener("abort",mme))),pme||(pme=null),gme.send(pme)})},xhr$1}var defaults_1$1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1$1;hasRequiredDefaults=1;var x_=utils$l,eme=normalizeHeaderName$2,$P=enhanceError$1,tme={"Content-Type":"application/x-www-form-urlencoded"};function ame(ome,lme){!x_.isUndefined(ome)&&x_.isUndefined(ome["Content-Type"])&&(ome["Content-Type"]=lme)}function nme(){var ome;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(ome=requireXhr$1()),ome}function rme(ome,lme,sme){if(x_.isString(ome))try{return(lme||JSON.parse)(ome),x_.trim(ome)}catch(cme){if(cme.name!=="SyntaxError")throw cme}return(0,JSON.stringify)(ome)}var ime={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:nme(),transformRequest:[function(lme,sme){return eme(sme,"Accept"),eme(sme,"Content-Type"),x_.isFormData(lme)||x_.isArrayBuffer(lme)||x_.isBuffer(lme)||x_.isStream(lme)||x_.isFile(lme)||x_.isBlob(lme)?lme:x_.isArrayBufferView(lme)?lme.buffer:x_.isURLSearchParams(lme)?(ame(sme,"application/x-www-form-urlencoded;charset=utf-8"),lme.toString()):x_.isObject(lme)||sme&&sme["Content-Type"]==="application/json"?(ame(sme,"application/json"),rme(lme)):lme}],transformResponse:[function(lme){var sme=this.transitional||ime.transitional,cme=sme&&sme.silentJSONParsing,dme=sme&&sme.forcedJSONParsing,ume=!cme&&this.responseType==="json";if(ume||dme&&x_.isString(lme)&&lme.length)try{return JSON.parse(lme)}catch(fme){if(ume)throw fme.name==="SyntaxError"?$P(fme,this,"E_JSON_PARSE"):fme}return lme}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(lme){return lme>=200&&lme<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return x_.forEach(["delete","get","head"],function(lme){ime.headers[lme]={}}),x_.forEach(["post","put","patch"],function(lme){ime.headers[lme]=x_.merge(tme)}),defaults_1$1=ime,defaults_1$1}var utils$h=utils$l,defaults$a=requireDefaults(),transformData$3=function(eme,$P,tme){var ame=this||defaults$a;return utils$h.forEach(tme,function(rme){eme=rme.call(ame,eme,$P)}),eme},isCancel$3,hasRequiredIsCancel$1;function requireIsCancel$1(){return hasRequiredIsCancel$1||(hasRequiredIsCancel$1=1,isCancel$3=function(eme){return!!(eme&&eme.__CANCEL__)}),isCancel$3}var utils$g=utils$l,transformData$2=transformData$3,isCancel$2=requireIsCancel$1(),defaults$9=requireDefaults(),Cancel=requireCancel$1();function throwIfCancellationRequested$1(x_){if(x_.cancelToken&&x_.cancelToken.throwIfRequested(),x_.signal&&x_.signal.aborted)throw new Cancel("canceled")}var dispatchRequest$3=function(eme){throwIfCancellationRequested$1(eme),eme.headers=eme.headers||{},eme.data=transformData$2.call(eme,eme.data,eme.headers,eme.transformRequest),eme.headers=utils$g.merge(eme.headers.common||{},eme.headers[eme.method]||{},eme.headers),utils$g.forEach(["delete","get","head","post","put","patch","common"],function(ame){delete eme.headers[ame]});var $P=eme.adapter||defaults$9.adapter;return $P(eme).then(function(ame){return throwIfCancellationRequested$1(eme),ame.data=transformData$2.call(eme,ame.data,ame.headers,eme.transformResponse),ame},function(ame){return isCancel$2(ame)||(throwIfCancellationRequested$1(eme),ame&&ame.response&&(ame.response.data=transformData$2.call(eme,ame.response.data,ame.response.headers,eme.transformResponse))),Promise.reject(ame)})},utils$f=utils$l,mergeConfig$6=function(eme,$P){$P=$P||{};var tme={};function ame(sme,cme){return utils$f.isPlainObject(sme)&&utils$f.isPlainObject(cme)?utils$f.merge(sme,cme):utils$f.isPlainObject(cme)?utils$f.merge({},cme):utils$f.isArray(cme)?cme.slice():cme}function nme(sme){if(utils$f.isUndefined($P[sme])){if(!utils$f.isUndefined(eme[sme]))return ame(void 0,eme[sme])}else return ame(eme[sme],$P[sme])}function rme(sme){if(!utils$f.isUndefined($P[sme]))return ame(void 0,$P[sme])}function ime(sme){if(utils$f.isUndefined($P[sme])){if(!utils$f.isUndefined(eme[sme]))return ame(void 0,eme[sme])}else return ame(void 0,$P[sme])}function ome(sme){if(sme in $P)return ame(eme[sme],$P[sme]);if(sme in eme)return ame(void 0,eme[sme])}var lme={url:rme,method:rme,data:rme,baseURL:ime,transformRequest:ime,transformResponse:ime,paramsSerializer:ime,timeout:ime,timeoutMessage:ime,withCredentials:ime,adapter:ime,responseType:ime,xsrfCookieName:ime,xsrfHeaderName:ime,onUploadProgress:ime,onDownloadProgress:ime,decompress:ime,maxContentLength:ime,maxBodyLength:ime,transport:ime,httpAgent:ime,httpsAgent:ime,cancelToken:ime,socketPath:ime,responseEncoding:ime,validateStatus:ome};return utils$f.forEach(Object.keys(eme).concat(Object.keys($P)),function(cme){var dme=lme[cme]||nme,ume=dme(cme);utils$f.isUndefined(ume)&&dme!==ome||(tme[cme]=ume)}),tme},data,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data={version:"0.24.0"}),data}var VERSION=requireData().version,validators$2={};["object","boolean","number","function","string","symbol"].forEach(function(x_,eme){validators$2[x_]=function(tme){return typeof tme===x_||"a"+(eme<1?"n ":" ")+x_}});var deprecatedWarnings={};validators$2.transitional=function(eme,$P,tme){function ame(nme,rme){return"[Axios v"+VERSION+"] Transitional option '"+nme+"'"+rme+(tme?". "+tme:"")}return function(nme,rme,ime){if(eme===!1)throw new Error(ame(rme," has been removed"+($P?" in "+$P:"")));return $P&&!deprecatedWarnings[rme]&&(deprecatedWarnings[rme]=!0,console.warn(ame(rme," has been deprecated since v"+$P+" and will be removed in the near future"))),eme?eme(nme,rme,ime):!0}};function assertOptions(x_,eme,$P){if(typeof x_!="object")throw new TypeError("options must be an object");for(var tme=Object.keys(x_),ame=tme.length;ame-- >0;){var nme=tme[ame],rme=eme[nme];if(rme){var ime=x_[nme],ome=ime===void 0||rme(ime,nme,x_);if(ome!==!0)throw new TypeError("option "+nme+" must be "+ome);continue}if($P!==!0)throw Error("Unknown option "+nme)}}var validator$1={assertOptions,validators:validators$2},utils$e=utils$l,buildURL$2=buildURL$3,InterceptorManager$2=InterceptorManager_1$1,dispatchRequest$2=dispatchRequest$3,mergeConfig$5=mergeConfig$6,validator=validator$1,validators$1=validator.validators;function Axios$3(x_){this.defaults=x_,this.interceptors={request:new InterceptorManager$2,response:new InterceptorManager$2}}Axios$3.prototype.request=function(eme){typeof eme=="string"?(eme=arguments[1]||{},eme.url=arguments[0]):eme=eme||{},eme=mergeConfig$5(this.defaults,eme),eme.method?eme.method=eme.method.toLowerCase():this.defaults.method?eme.method=this.defaults.method.toLowerCase():eme.method="get";var $P=eme.transitional;$P!==void 0&&validator.assertOptions($P,{silentJSONParsing:validators$1.transitional(validators$1.boolean),forcedJSONParsing:validators$1.transitional(validators$1.boolean),clarifyTimeoutError:validators$1.transitional(validators$1.boolean)},!1);var tme=[],ame=!0;this.interceptors.request.forEach(function(dme){typeof dme.runWhen=="function"&&dme.runWhen(eme)===!1||(ame=ame&&dme.synchronous,tme.unshift(dme.fulfilled,dme.rejected))});var nme=[];this.interceptors.response.forEach(function(dme){nme.push(dme.fulfilled,dme.rejected)});var rme;if(!ame){var ime=[dispatchRequest$2,void 0];for(Array.prototype.unshift.apply(ime,tme),ime=ime.concat(nme),rme=Promise.resolve(eme);ime.length;)rme=rme.then(ime.shift(),ime.shift());return rme}for(var ome=eme;tme.length;){var lme=tme.shift(),sme=tme.shift();try{ome=lme(ome)}catch(cme){sme(cme);break}}try{rme=dispatchRequest$2(ome)}catch(cme){return Promise.reject(cme)}for(;nme.length;)rme=rme.then(nme.shift(),nme.shift());return rme};Axios$3.prototype.getUri=function(eme){return eme=mergeConfig$5(this.defaults,eme),buildURL$2(eme.url,eme.params,eme.paramsSerializer).replace(/^\?/,"")};utils$e.forEach(["delete","get","head","options"],function(eme){Axios$3.prototype[eme]=function($P,tme){return this.request(mergeConfig$5(tme||{},{method:eme,url:$P,data:(tme||{}).data}))}});utils$e.forEach(["post","put","patch"],function(eme){Axios$3.prototype[eme]=function($P,tme,ame){return this.request(mergeConfig$5(ame||{},{method:eme,url:$P,data:tme}))}});var Axios_1$1=Axios$3,CancelToken_1$1,hasRequiredCancelToken$1;function requireCancelToken$1(){if(hasRequiredCancelToken$1)return CancelToken_1$1;hasRequiredCancelToken$1=1;var x_=requireCancel$1();function eme($P){if(typeof $P!="function")throw new TypeError("executor must be a function.");var tme;this.promise=new Promise(function(rme){tme=rme});var ame=this;this.promise.then(function(nme){if(ame._listeners){var rme,ime=ame._listeners.length;for(rme=0;rme<ime;rme++)ame._listeners[rme](nme);ame._listeners=null}}),this.promise.then=function(nme){var rme,ime=new Promise(function(ome){ame.subscribe(ome),rme=ome}).then(nme);return ime.cancel=function(){ame.unsubscribe(rme)},ime},$P(function(rme){ame.reason||(ame.reason=new x_(rme),tme(ame.reason))})}return eme.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},eme.prototype.subscribe=function(tme){if(this.reason){tme(this.reason);return}this._listeners?this._listeners.push(tme):this._listeners=[tme]},eme.prototype.unsubscribe=function(tme){if(this._listeners){var ame=this._listeners.indexOf(tme);ame!==-1&&this._listeners.splice(ame,1)}},eme.source=function(){var tme,ame=new eme(function(rme){tme=rme});return{token:ame,cancel:tme}},CancelToken_1$1=eme,CancelToken_1$1}var spread$1,hasRequiredSpread$1;function requireSpread$1(){return hasRequiredSpread$1||(hasRequiredSpread$1=1,spread$1=function(eme){return function(tme){return eme.apply(null,tme)}}),spread$1}var isAxiosError$1,hasRequiredIsAxiosError$1;function requireIsAxiosError$1(){return hasRequiredIsAxiosError$1||(hasRequiredIsAxiosError$1=1,isAxiosError$1=function(eme){return typeof eme=="object"&&eme.isAxiosError===!0}),isAxiosError$1}var utils$d=utils$l,bind$4=bind$6,Axios$2=Axios_1$1,mergeConfig$4=mergeConfig$6,defaults$8=requireDefaults();function createInstance$1(x_){var eme=new Axios$2(x_),$P=bind$4(Axios$2.prototype.request,eme);return utils$d.extend($P,Axios$2.prototype,eme),utils$d.extend($P,eme),$P.create=function(ame){return createInstance$1(mergeConfig$4(x_,ame))},$P}var axios$6=createInstance$1(defaults$8);axios$6.Axios=Axios$2;axios$6.Cancel=requireCancel$1();axios$6.CancelToken=requireCancelToken$1();axios$6.isCancel=requireIsCancel$1();axios$6.VERSION=requireData().version;axios$6.all=function(eme){return Promise.all(eme)};axios$6.spread=requireSpread$1();axios$6.isAxiosError=requireIsAxiosError$1();axios$7.exports=axios$6;axios$7.exports.default=axios$6;var axiosExports$1=axios$7.exports,axios$4=axiosExports$1;const axios$5=getDefaultExportFromCjs(axios$4);var classnames$4={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(x_){(function(){var eme={}.hasOwnProperty;function $P(){for(var nme="",rme=0;rme<arguments.length;rme++){var ime=arguments[rme];ime&&(nme=ame(nme,tme(ime)))}return nme}function tme(nme){if(typeof nme=="string"||typeof nme=="number")return nme;if(typeof nme!="object")return"";if(Array.isArray(nme))return $P.apply(null,nme);if(nme.toString!==Object.prototype.toString&&!nme.toString.toString().includes("[native code]"))return nme.toString();var rme="";for(var ime in nme)eme.call(nme,ime)&&nme[ime]&&(rme=ame(rme,ime));return rme}function ame(nme,rme){return rme?nme?nme+" "+rme:nme+rme:nme}x_.exports?($P.default=$P,x_.exports=$P):window.classNames=$P})()})(classnames$4);var classnamesExports$1=classnames$4.exports;const classNames=getDefaultExportFromCjs(classnamesExports$1);var reactIs={exports:{}},reactIs_production_min={};/**
 * @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 b$1=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e$4=Symbol.for("react.strict_mode"),f$1=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$2=Symbol.for("react.forward_ref"),m$1=Symbol.for("react.suspense"),n$3=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$3=Symbol.for("react.offscreen"),u$2;u$2=Symbol.for("react.module.reference");function v$1(x_){if(typeof x_=="object"&&x_!==null){var eme=x_.$$typeof;switch(eme){case b$1:switch(x_=x_.type,x_){case d$1:case f$1:case e$4:case m$1:case n$3:return x_;default:switch(x_=x_&&x_.$$typeof,x_){case k$1:case h$1:case l$2:case q$1:case p$1:case g$1:return x_;default:return eme}}case c$2:return eme}}}reactIs_production_min.ContextConsumer=h$1;reactIs_production_min.ContextProvider=g$1;reactIs_production_min.Element=b$1;reactIs_production_min.ForwardRef=l$2;reactIs_production_min.Fragment=d$1;reactIs_production_min.Lazy=q$1;reactIs_production_min.Memo=p$1;reactIs_production_min.Portal=c$2;reactIs_production_min.Profiler=f$1;reactIs_production_min.StrictMode=e$4;reactIs_production_min.Suspense=m$1;reactIs_production_min.SuspenseList=n$3;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function(x_){return v$1(x_)===h$1};reactIs_production_min.isContextProvider=function(x_){return v$1(x_)===g$1};reactIs_production_min.isElement=function(x_){return typeof x_=="object"&&x_!==null&&x_.$$typeof===b$1};reactIs_production_min.isForwardRef=function(x_){return v$1(x_)===l$2};reactIs_production_min.isFragment=function(x_){return v$1(x_)===d$1};reactIs_production_min.isLazy=function(x_){return v$1(x_)===q$1};reactIs_production_min.isMemo=function(x_){return v$1(x_)===p$1};reactIs_production_min.isPortal=function(x_){return v$1(x_)===c$2};reactIs_production_min.isProfiler=function(x_){return v$1(x_)===f$1};reactIs_production_min.isStrictMode=function(x_){return v$1(x_)===e$4};reactIs_production_min.isSuspense=function(x_){return v$1(x_)===m$1};reactIs_production_min.isSuspenseList=function(x_){return v$1(x_)===n$3};reactIs_production_min.isValidElementType=function(x_){return typeof x_=="string"||typeof x_=="function"||x_===d$1||x_===f$1||x_===e$4||x_===m$1||x_===n$3||x_===t$3||typeof x_=="object"&&x_!==null&&(x_.$$typeof===q$1||x_.$$typeof===p$1||x_.$$typeof===g$1||x_.$$typeof===h$1||x_.$$typeof===l$2||x_.$$typeof===u$2||x_.getModuleId!==void 0)};reactIs_production_min.typeOf=v$1;reactIs.exports=reactIs_production_min;var reactIsExports=reactIs.exports;function toArray$6(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$P=[];return React__default.Children.forEach(x_,function(tme){tme==null&&!eme.keepEmpty||(Array.isArray(tme)?$P=$P.concat(toArray$6(tme)):reactIsExports.isFragment(tme)&&tme.props?$P=$P.concat(toArray$6(tme.props.children,eme)):$P.push(tme))}),$P}var warned={},preMessage=function(eme){};function warning$3(x_,eme){}function note(x_,eme){}function resetWarned(){warned={}}function call(x_,eme,$P){!eme&&!warned[$P]&&(x_(!1,$P),warned[$P]=!0)}function warningOnce(x_,eme){call(warning$3,x_,eme)}function noteOnce(x_,eme){call(note,x_,eme)}warningOnce.preMessage=preMessage;warningOnce.resetWarned=resetWarned;warningOnce.noteOnce=noteOnce;function isDOM(x_){return x_ instanceof HTMLElement||x_ instanceof SVGElement}function getDOM(x_){return x_&&_typeof$4(x_)==="object"&&isDOM(x_.nativeElement)?x_.nativeElement:isDOM(x_)?x_:null}function findDOMNode$1(x_){var eme=getDOM(x_);if(eme)return eme;if(x_ instanceof React__default.Component){var $P;return($P=ReactDOM.findDOMNode)===null||$P===void 0?void 0:$P.call(ReactDOM,x_)}return null}function useMemo(x_,eme,$P){var tme=reactExports.useRef({});return(!("value"in tme.current)||$P(tme.current.condition,eme))&&(tme.current.value=x_(),tme.current.condition=eme),tme.current.value}var fillRef=function(eme,$P){typeof eme=="function"?eme($P):_typeof$4(eme)==="object"&&eme&&"current"in eme&&(eme.current=$P)},composeRef=function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];var ame=$P.filter(Boolean);return ame.length<=1?ame[0]:function(nme){$P.forEach(function(rme){fillRef(rme,nme)})}},useComposeRef=function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return useMemo(function(){return composeRef.apply(void 0,$P)},$P,function(ame,nme){return ame.length!==nme.length||ame.every(function(rme,ime){return rme!==nme[ime]})})},supportRef=function(eme){var $P,tme;if(isReactElement(eme)&&eme.props.propertyIsEnumerable("ref"))return!0;var ame=reactIsExports.isMemo(eme)?eme.type.type:eme.type;return!(typeof ame=="function"&&!(($P=ame.prototype)!==null&&$P!==void 0&&$P.render)&&ame.$$typeof!==reactIsExports.ForwardRef||typeof eme=="function"&&!((tme=eme.prototype)!==null&&tme!==void 0&&tme.render)&&eme.$$typeof!==reactIsExports.ForwardRef)};function isReactElement(x_){return reactExports.isValidElement(x_)&&!reactIsExports.isFragment(x_)}var supportNodeRef=function(eme){return isReactElement(eme)&&supportRef(eme)},CollectionContext=reactExports.createContext(null);function Collection(x_){var eme=x_.children,$P=x_.onBatchResize,tme=reactExports.useRef(0),ame=reactExports.useRef([]),nme=reactExports.useContext(CollectionContext),rme=reactExports.useCallback(function(ime,ome,lme){tme.current+=1;var sme=tme.current;ame.current.push({size:ime,element:ome,data:lme}),Promise.resolve().then(function(){sme===tme.current&&($P==null||$P(ame.current),ame.current=[])}),nme==null||nme(ime,ome,lme)},[$P,nme]);return reactExports.createElement(CollectionContext.Provider,{value:rme},eme)}var elementListeners=new Map;function onResize(x_){x_.forEach(function(eme){var $P,tme=eme.target;($P=elementListeners.get(tme))===null||$P===void 0||$P.forEach(function(ame){return ame(tme)})})}var resizeObserver=new index$a(onResize);function observe$2(x_,eme){elementListeners.has(x_)||(elementListeners.set(x_,new Set),resizeObserver.observe(x_)),elementListeners.get(x_).add(eme)}function unobserve(x_,eme){elementListeners.has(x_)&&(elementListeners.get(x_).delete(eme),elementListeners.get(x_).size||(resizeObserver.unobserve(x_),elementListeners.delete(x_)))}function _classCallCheck$d(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(x_,eme){for(var $P=0;$P<eme.length;$P++){var tme=eme[$P];tme.enumerable=tme.enumerable||!1,tme.configurable=!0,"value"in tme&&(tme.writable=!0),Object.defineProperty(x_,toPropertyKey$1(tme.key),tme)}}function _createClass$b(x_,eme,$P){return eme&&_defineProperties$1(x_.prototype,eme),$P&&_defineProperties$1(x_,$P),Object.defineProperty(x_,"prototype",{writable:!1}),x_}function _inherits$c(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function");x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,writable:!0,configurable:!0}}),Object.defineProperty(x_,"prototype",{writable:!1}),eme&&_setPrototypeOf(x_,eme)}function _getPrototypeOf(x_){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(eme){return eme.__proto__||Object.getPrototypeOf(eme)},_getPrototypeOf(x_)}function _isNativeReflectConstruct(){try{var x_=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!x_})()}function _assertThisInitialized(x_){if(x_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x_}function _possibleConstructorReturn$c(x_,eme){if(eme&&(_typeof$4(eme)=="object"||typeof eme=="function"))return eme;if(eme!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(x_)}function _createSuper(x_){var eme=_isNativeReflectConstruct();return function(){var $P,tme=_getPrototypeOf(x_);if(eme){var ame=_getPrototypeOf(this).constructor;$P=Reflect.construct(tme,arguments,ame)}else $P=tme.apply(this,arguments);return _possibleConstructorReturn$c(this,$P)}}var DomWrapper$1=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(){return _classCallCheck$d(this,$P),eme.apply(this,arguments)}return _createClass$b($P,[{key:"render",value:function(){return this.props.children}}]),$P}(reactExports.Component);function SingleObserver(x_,eme){var $P=x_.children,tme=x_.disabled,ame=reactExports.useRef(null),nme=reactExports.useRef(null),rme=reactExports.useContext(CollectionContext),ime=typeof $P=="function",ome=ime?$P(ame):$P,lme=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),sme=!ime&&reactExports.isValidElement(ome)&&supportRef(ome),cme=sme?ome.ref:null,dme=useComposeRef(cme,ame),ume=function(){var bme;return findDOMNode$1(ame.current)||(ame.current&&_typeof$4(ame.current)==="object"?findDOMNode$1((bme=ame.current)===null||bme===void 0?void 0:bme.nativeElement):null)||findDOMNode$1(nme.current)};reactExports.useImperativeHandle(eme,function(){return ume()});var fme=reactExports.useRef(x_);fme.current=x_;var pme=reactExports.useCallback(function(hme){var bme=fme.current,mme=bme.onResize,vme=bme.data,gme=hme.getBoundingClientRect(),yme=gme.width,_me=gme.height,$me=hme.offsetWidth,Cme=hme.offsetHeight,Sme=Math.floor(yme),Eme=Math.floor(_me);if(lme.current.width!==Sme||lme.current.height!==Eme||lme.current.offsetWidth!==$me||lme.current.offsetHeight!==Cme){var xme={width:Sme,height:Eme,offsetWidth:$me,offsetHeight:Cme};lme.current=xme;var Tme=$me===Math.round(yme)?yme:$me,Ome=Cme===Math.round(_me)?_me:Cme,Rme=_objectSpread2$4(_objectSpread2$4({},xme),{},{offsetWidth:Tme,offsetHeight:Ome});rme==null||rme(Rme,hme,vme),mme&&Promise.resolve().then(function(){mme(Rme,hme)})}},[]);return reactExports.useEffect(function(){var hme=ume();return hme&&!tme&&observe$2(hme,pme),function(){return unobserve(hme,pme)}},[ame.current,tme]),reactExports.createElement(DomWrapper$1,{ref:nme},sme?reactExports.cloneElement(ome,{ref:dme}):ome)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(x_,eme){var $P=x_.children,tme=typeof $P=="function"?[$P]:toArray$6($P);return tme.map(function(ame,nme){var rme=(ame==null?void 0:ame.key)||"".concat(INTERNAL_PREFIX_KEY,"-").concat(nme);return reactExports.createElement(RefSingleObserver,_extends$4C({},x_,{key:rme,ref:nme===0?eme:void 0}),ame)})}var RefResizeObserver=reactExports.forwardRef(ResizeObserver$1);RefResizeObserver.Collection=Collection;function omit$2(x_,eme){var $P=Object.assign({},x_);return Array.isArray(eme)&&eme.forEach(function(tme){delete $P[tme]}),$P}function _arrayLikeToArray$2(x_,eme){(eme==null||eme>x_.length)&&(eme=x_.length);for(var $P=0,tme=Array(eme);$P<eme;$P++)tme[$P]=x_[$P];return tme}function _arrayWithoutHoles$1(x_){if(Array.isArray(x_))return _arrayLikeToArray$2(x_)}function _iterableToArray$1(x_){if(typeof Symbol<"u"&&x_[Symbol.iterator]!=null||x_["@@iterator"]!=null)return Array.from(x_)}function _unsupportedIterableToArray$2(x_,eme){if(x_){if(typeof x_=="string")return _arrayLikeToArray$2(x_,eme);var $P={}.toString.call(x_).slice(8,-1);return $P==="Object"&&x_.constructor&&($P=x_.constructor.name),$P==="Map"||$P==="Set"?Array.from(x_):$P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($P)?_arrayLikeToArray$2(x_,eme):void 0}}function _nonIterableSpread$1(){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 _toConsumableArray$1(x_){return _arrayWithoutHoles$1(x_)||_iterableToArray$1(x_)||_unsupportedIterableToArray$2(x_)||_nonIterableSpread$1()}var raf$2=function(eme){return+setTimeout(eme,16)},caf$1=function(eme){return clearTimeout(eme)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf$2=function(eme){return window.requestAnimationFrame(eme)},caf$1=function(eme){return window.cancelAnimationFrame(eme)});var rafUUID=0,rafIds=new Map;function cleanup$1(x_){rafIds.delete(x_)}var wrapperRaf=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var tme=rafUUID;function ame(nme){if(nme===0)cleanup$1(tme),eme();else{var rme=raf$2(function(){ame(nme-1)});rafIds.set(tme,rme)}}return ame($P),tme};wrapperRaf.cancel=function(x_){var eme=rafIds.get(x_);return cleanup$1(x_),caf$1(eme)};function throttleByAnimationFrame(x_){let eme;const $P=ame=>()=>{eme=null,x_.apply(void 0,_toConsumableArray$1(ame))},tme=function(){if(eme==null){for(var ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];eme=wrapperRaf($P(nme))}};return tme.cancel=()=>{wrapperRaf.cancel(eme),eme=null},tme}function _arrayWithHoles$2(x_){if(Array.isArray(x_))return x_}function _iterableToArrayLimit$2(x_,eme){var $P=x_==null?null:typeof Symbol<"u"&&x_[Symbol.iterator]||x_["@@iterator"];if($P!=null){var tme,ame,nme,rme,ime=[],ome=!0,lme=!1;try{if(nme=($P=$P.call(x_)).next,eme===0){if(Object($P)!==$P)return;ome=!1}else for(;!(ome=(tme=nme.call($P)).done)&&(ime.push(tme.value),ime.length!==eme);ome=!0);}catch(sme){lme=!0,ame=sme}finally{try{if(!ome&&$P.return!=null&&(rme=$P.return(),Object(rme)!==rme))return}finally{if(lme)throw ame}}return ime}}function _nonIterableRest$2(){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 _slicedToArray$2(x_,eme){return _arrayWithHoles$2(x_)||_iterableToArrayLimit$2(x_,eme)||_unsupportedIterableToArray$2(x_,eme)||_nonIterableRest$2()}function murmur2(x_){for(var eme=0,$P,tme=0,ame=x_.length;ame>=4;++tme,ame-=4)$P=x_.charCodeAt(tme)&255|(x_.charCodeAt(++tme)&255)<<8|(x_.charCodeAt(++tme)&255)<<16|(x_.charCodeAt(++tme)&255)<<24,$P=($P&65535)*1540483477+(($P>>>16)*59797<<16),$P^=$P>>>24,eme=($P&65535)*1540483477+(($P>>>16)*59797<<16)^(eme&65535)*1540483477+((eme>>>16)*59797<<16);switch(ame){case 3:eme^=(x_.charCodeAt(tme+2)&255)<<16;case 2:eme^=(x_.charCodeAt(tme+1)&255)<<8;case 1:eme^=x_.charCodeAt(tme)&255,eme=(eme&65535)*1540483477+((eme>>>16)*59797<<16)}return eme^=eme>>>13,eme=(eme&65535)*1540483477+((eme>>>16)*59797<<16),((eme^eme>>>15)>>>0).toString(36)}function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function contains$1(x_,eme){if(!x_)return!1;if(x_.contains)return x_.contains(eme);for(var $P=eme;$P;){if($P===x_)return!0;$P=$P.parentNode}return!1}var APPEND_ORDER="data-rc-order",APPEND_PRIORITY="data-rc-priority",MARK_KEY="rc-util-key",containerCache=new Map;function getMark(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},eme=x_.mark;return eme?eme.startsWith("data-")?eme:"data-".concat(eme):MARK_KEY}function getContainer$1(x_){if(x_.attachTo)return x_.attachTo;var eme=document.querySelector("head");return eme||document.body}function getOrder(x_){return x_==="queue"?"prependQueue":x_?"prepend":"append"}function findStyles(x_){return Array.from((containerCache.get(x_)||x_).children).filter(function(eme){return eme.tagName==="STYLE"})}function injectCSS(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!canUseDom())return null;var $P=eme.csp,tme=eme.prepend,ame=eme.priority,nme=ame===void 0?0:ame,rme=getOrder(tme),ime=rme==="prependQueue",ome=document.createElement("style");ome.setAttribute(APPEND_ORDER,rme),ime&&nme&&ome.setAttribute(APPEND_PRIORITY,"".concat(nme)),$P!=null&&$P.nonce&&(ome.nonce=$P==null?void 0:$P.nonce),ome.innerHTML=x_;var lme=getContainer$1(eme),sme=lme.firstChild;if(tme){if(ime){var cme=(eme.styles||findStyles(lme)).filter(function(dme){if(!["prepend","prependQueue"].includes(dme.getAttribute(APPEND_ORDER)))return!1;var ume=Number(dme.getAttribute(APPEND_PRIORITY)||0);return nme>=ume});if(cme.length)return lme.insertBefore(ome,cme[cme.length-1].nextSibling),ome}lme.insertBefore(ome,sme)}else lme.appendChild(ome);return ome}function findExistNode(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$P=getContainer$1(eme);return(eme.styles||findStyles($P)).find(function(tme){return tme.getAttribute(getMark(eme))===x_})}function removeCSS(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$P=findExistNode(x_,eme);if($P){var tme=getContainer$1(eme);tme.removeChild($P)}}function syncRealContainer(x_,eme){var $P=containerCache.get(x_);if(!$P||!contains$1(document,$P)){var tme=injectCSS("",eme),ame=tme.parentNode;containerCache.set(x_,ame),x_.removeChild(tme)}}function updateCSS(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tme=getContainer$1($P),ame=findStyles(tme),nme=_objectSpread2$4(_objectSpread2$4({},$P),{},{styles:ame});syncRealContainer(tme,nme);var rme=findExistNode(eme,nme);if(rme){var ime,ome;if((ime=nme.csp)!==null&&ime!==void 0&&ime.nonce&&rme.nonce!==((ome=nme.csp)===null||ome===void 0?void 0:ome.nonce)){var lme;rme.nonce=(lme=nme.csp)===null||lme===void 0?void 0:lme.nonce}return rme.innerHTML!==x_&&(rme.innerHTML=x_),rme}var sme=injectCSS(x_,nme);return sme.setAttribute(getMark(nme),eme),sme}function _objectWithoutProperties$6(x_,eme){if(x_==null)return{};var $P,tme,ame=_objectWithoutPropertiesLoose$3(x_,eme);if(Object.getOwnPropertySymbols){var nme=Object.getOwnPropertySymbols(x_);for(tme=0;tme<nme.length;tme++)$P=nme[tme],eme.includes($P)||{}.propertyIsEnumerable.call(x_,$P)&&(ame[$P]=x_[$P])}return ame}function isEqual$2(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,tme=new Set;function ame(nme,rme){var ime=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ome=tme.has(nme);if(warningOnce(!ome,"Warning: There may be circular references"),ome)return!1;if(nme===rme)return!0;if($P&&ime>1)return!1;tme.add(nme);var lme=ime+1;if(Array.isArray(nme)){if(!Array.isArray(rme)||nme.length!==rme.length)return!1;for(var sme=0;sme<nme.length;sme++)if(!ame(nme[sme],rme[sme],lme))return!1;return!0}if(nme&&rme&&_typeof$4(nme)==="object"&&_typeof$4(rme)==="object"){var cme=Object.keys(nme);return cme.length!==Object.keys(rme).length?!1:cme.every(function(dme){return ame(nme[dme],rme[dme],lme)})}return!1}return ame(x_,eme)}var SPLIT$1="%";function pathKey(x_){return x_.join(SPLIT$1)}var Entity=function(){function x_(eme){_classCallCheck$d(this,x_),_defineProperty$7(this,"instanceId",void 0),_defineProperty$7(this,"cache",new Map),this.instanceId=eme}return _createClass$b(x_,[{key:"get",value:function($P){return this.opGet(pathKey($P))}},{key:"opGet",value:function($P){return this.cache.get($P)||null}},{key:"update",value:function($P,tme){return this.opUpdate(pathKey($P),tme)}},{key:"opUpdate",value:function($P,tme){var ame=this.cache.get($P),nme=tme(ame);nme===null?this.cache.delete($P):this.cache.set($P,nme)}}]),x_}(),ATTR_TOKEN="data-token-hash",ATTR_MARK="data-css-hash",CSS_IN_JS_INSTANCE="__cssinjs_instance__";function createCache(){var x_=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var eme=document.body.querySelectorAll("style[".concat(ATTR_MARK,"]"))||[],$P=document.head.firstChild;Array.from(eme).forEach(function(ame){ame[CSS_IN_JS_INSTANCE]=ame[CSS_IN_JS_INSTANCE]||x_,ame[CSS_IN_JS_INSTANCE]===x_&&document.head.insertBefore(ame,$P)});var tme={};Array.from(document.querySelectorAll("style[".concat(ATTR_MARK,"]"))).forEach(function(ame){var nme=ame.getAttribute(ATTR_MARK);if(tme[nme]){if(ame[CSS_IN_JS_INSTANCE]===x_){var rme;(rme=ame.parentNode)===null||rme===void 0||rme.removeChild(ame)}}else tme[nme]=!0})}return new Entity(x_)}var StyleContext=reactExports.createContext({hashPriority:"low",cache:createCache(),defaultCache:!0});function sameDerivativeOption(x_,eme){if(x_.length!==eme.length)return!1;for(var $P=0;$P<x_.length;$P++)if(x_[$P]!==eme[$P])return!1;return!0}var ThemeCache=function(){function x_(){_classCallCheck$d(this,x_),_defineProperty$7(this,"cache",void 0),_defineProperty$7(this,"keys",void 0),_defineProperty$7(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _createClass$b(x_,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function($P){var tme,ame,nme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rme={map:this.cache};return $P.forEach(function(ime){if(!rme)rme=void 0;else{var ome;rme=(ome=rme)===null||ome===void 0||(ome=ome.map)===null||ome===void 0?void 0:ome.get(ime)}}),(tme=rme)!==null&&tme!==void 0&&tme.value&&nme&&(rme.value[1]=this.cacheCallTimes++),(ame=rme)===null||ame===void 0?void 0:ame.value}},{key:"get",value:function($P){var tme;return(tme=this.internalGet($P,!0))===null||tme===void 0?void 0:tme[0]}},{key:"has",value:function($P){return!!this.internalGet($P)}},{key:"set",value:function($P,tme){var ame=this;if(!this.has($P)){if(this.size()+1>x_.MAX_CACHE_SIZE+x_.MAX_CACHE_OFFSET){var nme=this.keys.reduce(function(lme,sme){var cme=_slicedToArray$2(lme,2),dme=cme[1];return ame.internalGet(sme)[1]<dme?[sme,ame.internalGet(sme)[1]]:lme},[this.keys[0],this.cacheCallTimes]),rme=_slicedToArray$2(nme,1),ime=rme[0];this.delete(ime)}this.keys.push($P)}var ome=this.cache;$P.forEach(function(lme,sme){if(sme===$P.length-1)ome.set(lme,{value:[tme,ame.cacheCallTimes++]});else{var cme=ome.get(lme);cme?cme.map||(cme.map=new Map):ome.set(lme,{map:new Map}),ome=ome.get(lme).map}})}},{key:"deleteByPath",value:function($P,tme){var ame=$P.get(tme[0]);if(tme.length===1){var nme;return ame.map?$P.set(tme[0],{map:ame.map}):$P.delete(tme[0]),(nme=ame.value)===null||nme===void 0?void 0:nme[0]}var rme=this.deleteByPath(ame.map,tme.slice(1));return(!ame.map||ame.map.size===0)&&!ame.value&&$P.delete(tme[0]),rme}},{key:"delete",value:function($P){if(this.has($P))return this.keys=this.keys.filter(function(tme){return!sameDerivativeOption(tme,$P)}),this.deleteByPath(this.cache,$P)}}]),x_}();_defineProperty$7(ThemeCache,"MAX_CACHE_SIZE",20);_defineProperty$7(ThemeCache,"MAX_CACHE_OFFSET",5);var uuid$6=0,Theme=function(){function x_(eme){_classCallCheck$d(this,x_),_defineProperty$7(this,"derivatives",void 0),_defineProperty$7(this,"id",void 0),this.derivatives=Array.isArray(eme)?eme:[eme],this.id=uuid$6,eme.length===0&&(eme.length>0,void 0),uuid$6+=1}return _createClass$b(x_,[{key:"getDerivativeToken",value:function($P){return this.derivatives.reduce(function(tme,ame){return ame($P,tme)},void 0)}}]),x_}(),cacheThemes=new ThemeCache;function createTheme(x_){var eme=Array.isArray(x_)?x_:[x_];return cacheThemes.has(eme)||cacheThemes.set(eme,new Theme(eme)),cacheThemes.get(eme)}var resultCache=new WeakMap,RESULT_VALUE={};function memoResult(x_,eme){for(var $P=resultCache,tme=0;tme<eme.length;tme+=1){var ame=eme[tme];$P.has(ame)||$P.set(ame,new WeakMap),$P=$P.get(ame)}return $P.has(RESULT_VALUE)||$P.set(RESULT_VALUE,x_()),$P.get(RESULT_VALUE)}var flattenTokenCache=new WeakMap;function flattenToken(x_){var eme=flattenTokenCache.get(x_)||"";return eme||(Object.keys(x_).forEach(function($P){var tme=x_[$P];eme+=$P,tme instanceof Theme?eme+=tme.id:tme&&_typeof$4(tme)==="object"?eme+=flattenToken(tme):eme+=tme}),eme=murmur2(eme),flattenTokenCache.set(x_,eme)),eme}function token2key(x_,eme){return murmur2("".concat(eme,"_").concat(flattenToken(x_)))}var isClientSide=canUseDom();function unit$1(x_){return typeof x_=="number"?"".concat(x_,"px"):x_}function toStyleStr(x_,eme,$P){var tme,ame=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},nme=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(nme)return x_;var rme=_objectSpread2$4(_objectSpread2$4({},ame),{},(tme={},_defineProperty$7(tme,ATTR_TOKEN,eme),_defineProperty$7(tme,ATTR_MARK,$P),tme)),ime=Object.keys(rme).map(function(ome){var lme=rme[ome];return lme?"".concat(ome,'="').concat(lme,'"'):null}).filter(function(ome){return ome}).join(" ");return"<style ".concat(ime,">").concat(x_,"</style>")}var token2CSSVar=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat($P?"".concat($P,"-"):"").concat(eme).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()},serializeCSSVar=function(eme,$P,tme){return Object.keys(eme).length?".".concat($P).concat(tme!=null&&tme.scope?".".concat(tme.scope):"","{").concat(Object.entries(eme).map(function(ame){var nme=_slicedToArray$2(ame,2),rme=nme[0],ime=nme[1];return"".concat(rme,":").concat(ime,";")}).join(""),"}"):""},transformToken=function(eme,$P,tme){var ame={},nme={};return Object.entries(eme).forEach(function(rme){var ime,ome,lme=_slicedToArray$2(rme,2),sme=lme[0],cme=lme[1];if(tme!=null&&(ime=tme.preserve)!==null&&ime!==void 0&&ime[sme])nme[sme]=cme;else if((typeof cme=="string"||typeof cme=="number")&&!(tme!=null&&(ome=tme.ignore)!==null&&ome!==void 0&&ome[sme])){var dme,ume=token2CSSVar(sme,tme==null?void 0:tme.prefix);ame[ume]=typeof cme=="number"&&!(tme!=null&&(dme=tme.unitless)!==null&&dme!==void 0&&dme[sme])?"".concat(cme,"px"):String(cme),nme[sme]="var(".concat(ume,")")}}),[nme,serializeCSSVar(ame,$P,{scope:tme==null?void 0:tme.scope})]},useInternalLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect$1=function(eme,$P){var tme=reactExports.useRef(!0);useInternalLayoutEffect(function(){return eme(tme.current)},$P),useInternalLayoutEffect(function(){return tme.current=!1,function(){tme.current=!0}},[])},useLayoutUpdateEffect=function(eme,$P){useLayoutEffect$1(function(tme){if(!tme)return eme()},$P)},fullClone$3=_objectSpread2$4({},React$1),useInsertionEffect$1=fullClone$3.useInsertionEffect,useInsertionEffectPolyfill=function(eme,$P,tme){reactExports.useMemo(eme,tme),useLayoutEffect$1(function(){return $P(!0)},tme)},useCompatibleInsertionEffect=useInsertionEffect$1?function(x_,eme,$P){return useInsertionEffect$1(function(){return x_(),eme()},$P)}:useInsertionEffectPolyfill,fullClone$2=_objectSpread2$4({},React$1),useInsertionEffect=fullClone$2.useInsertionEffect,useCleanupRegister=function(eme){var $P=[],tme=!1;function ame(nme){tme||$P.push(nme)}return reactExports.useEffect(function(){return tme=!1,function(){tme=!0,$P.length&&$P.forEach(function(nme){return nme()})}},eme),ame},useRun=function(){return function(eme){eme()}},useEffectCleanupRegister=typeof useInsertionEffect<"u"?useCleanupRegister:useRun;function useGlobalCache(x_,eme,$P,tme,ame){var nme=reactExports.useContext(StyleContext),rme=nme.cache,ime=[x_].concat(_toConsumableArray$1(eme)),ome=pathKey(ime),lme=useEffectCleanupRegister([ome]),sme=function(fme){rme.opUpdate(ome,function(pme){var hme=pme||[void 0,void 0],bme=_slicedToArray$2(hme,2),mme=bme[0],vme=mme===void 0?0:mme,gme=bme[1],yme=gme,_me=yme||$P(),$me=[vme,_me];return fme?fme($me):$me})};reactExports.useMemo(function(){sme()},[ome]);var cme=rme.opGet(ome),dme=cme[1];return useCompatibleInsertionEffect(function(){ame==null||ame(dme)},function(ume){return sme(function(fme){var pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1];return ume&&hme===0&&(ame==null||ame(dme)),[hme+1,bme]}),function(){rme.opUpdate(ome,function(fme){var pme=fme||[],hme=_slicedToArray$2(pme,2),bme=hme[0],mme=bme===void 0?0:bme,vme=hme[1],gme=mme-1;return gme===0?(lme(function(){(ume||!rme.opGet(ome))&&(tme==null||tme(vme,!1))}),null):[mme-1,vme]})}},[ome]),dme}var EMPTY_OVERRIDE={},hashPrefix="css",tokenKeys=new Map;function recordCleanToken(x_){tokenKeys.set(x_,(tokenKeys.get(x_)||0)+1)}function removeStyleTags(x_,eme){if(typeof document<"u"){var $P=document.querySelectorAll("style[".concat(ATTR_TOKEN,'="').concat(x_,'"]'));$P.forEach(function(tme){if(tme[CSS_IN_JS_INSTANCE]===eme){var ame;(ame=tme.parentNode)===null||ame===void 0||ame.removeChild(tme)}})}}var TOKEN_THRESHOLD=0;function cleanTokenStyle(x_,eme){tokenKeys.set(x_,(tokenKeys.get(x_)||0)-1);var $P=Array.from(tokenKeys.keys()),tme=$P.filter(function(ame){var nme=tokenKeys.get(ame)||0;return nme<=0});$P.length-tme.length>TOKEN_THRESHOLD&&tme.forEach(function(ame){removeStyleTags(ame,eme),tokenKeys.delete(ame)})}var getComputedToken$1=function(eme,$P,tme,ame){var nme=tme.getDerivativeToken(eme),rme=_objectSpread2$4(_objectSpread2$4({},nme),$P);return ame&&(rme=ame(rme)),rme},TOKEN_PREFIX="token";function useCacheToken(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tme=reactExports.useContext(StyleContext),ame=tme.cache.instanceId,nme=tme.container,rme=$P.salt,ime=rme===void 0?"":rme,ome=$P.override,lme=ome===void 0?EMPTY_OVERRIDE:ome,sme=$P.formatToken,cme=$P.getComputedToken,dme=$P.cssVar,ume=memoResult(function(){return Object.assign.apply(Object,[{}].concat(_toConsumableArray$1(eme)))},eme),fme=flattenToken(ume),pme=flattenToken(lme),hme=dme?flattenToken(dme):"",bme=useGlobalCache(TOKEN_PREFIX,[ime,x_.id,fme,pme,hme],function(){var mme,vme=cme?cme(ume,lme,x_):getComputedToken$1(ume,lme,x_,sme),gme=_objectSpread2$4({},vme),yme="";if(dme){var _me=transformToken(vme,dme.key,{prefix:dme.prefix,ignore:dme.ignore,unitless:dme.unitless,preserve:dme.preserve}),$me=_slicedToArray$2(_me,2);vme=$me[0],yme=$me[1]}var Cme=token2key(vme,ime);vme._tokenKey=Cme,gme._tokenKey=token2key(gme,ime);var Sme=(mme=dme==null?void 0:dme.key)!==null&&mme!==void 0?mme:Cme;vme._themeKey=Sme,recordCleanToken(Sme);var Eme="".concat(hashPrefix,"-").concat(murmur2(Cme));return vme._hashId=Eme,[vme,Eme,gme,yme,(dme==null?void 0:dme.key)||""]},function(mme){cleanTokenStyle(mme[0]._themeKey,ame)},function(mme){var vme=_slicedToArray$2(mme,4),gme=vme[0],yme=vme[3];if(dme&&yme){var _me=updateCSS(yme,murmur2("css-variables-".concat(gme._themeKey)),{mark:ATTR_MARK,prepend:"queue",attachTo:nme,priority:-999});_me[CSS_IN_JS_INSTANCE]=ame,_me.setAttribute(ATTR_TOKEN,gme._themeKey)}});return bme}var extract$3=function(eme,$P,tme){var ame=_slicedToArray$2(eme,5),nme=ame[2],rme=ame[3],ime=ame[4],ome=tme||{},lme=ome.plain;if(!rme)return null;var sme=nme._tokenKey,cme=-999,dme={"data-rc-order":"prependQueue","data-rc-priority":"".concat(cme)},ume=toStyleStr(rme,ime,sme,dme,lme);return[cme,sme,ume]},unitlessKeys={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},COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from$1=String.fromCharCode;function trim$1(x_){return x_.trim()}function replace$1(x_,eme,$P){return x_.replace(eme,$P)}function indexof(x_,eme,$P){return x_.indexOf(eme,$P)}function charat(x_,eme){return x_.charCodeAt(eme)|0}function substr(x_,eme,$P){return x_.slice(eme,$P)}function strlen(x_){return x_.length}function sizeof(x_){return x_.length}function append$1(x_,eme){return eme.push(x_),x_}var line=1,column=1,length=0,position$2=0,character=0,characters="";function node(x_,eme,$P,tme,ame,nme,rme,ime){return{value:x_,root:eme,parent:$P,type:tme,props:ame,children:nme,line,column,length:rme,return:"",siblings:ime}}function char(){return character}function prev(){return character=position$2>0?charat(characters,--position$2):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$2<length?charat(characters,position$2++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position$2)}function caret(){return position$2}function slice(x_,eme){return substr(characters,x_,eme)}function token$2(x_){switch(x_){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 alloc(x_){return line=column=1,length=strlen(characters=x_),position$2=0,[]}function dealloc(x_){return characters="",x_}function delimit(x_){return trim$1(slice(position$2-1,delimiter(x_===91?x_+2:x_===40?x_+1:x_)))}function whitespace$2(x_){for(;(character=peek())&&character<33;)next();return token$2(x_)>2||token$2(character)>3?"":" "}function escaping(x_,eme){for(;--eme&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(x_,caret()+(eme<6&&peek()==32&&next()==32))}function delimiter(x_){for(;next();)switch(character){case x_:return position$2;case 34:case 39:x_!==34&&x_!==39&&delimiter(character);break;case 40:x_===41&&delimiter(x_);break;case 92:next();break}return position$2}function commenter(x_,eme){for(;next()&&x_+character!==57;)if(x_+character===84&&peek()===47)break;return"/*"+slice(eme,position$2-1)+"*"+from$1(x_===47?x_:next())}function identifier$1(x_){for(;!token$2(peek());)next();return slice(x_,position$2)}function compile$1(x_){return dealloc(parse$6("",null,null,null,[""],x_=alloc(x_),0,[0],x_))}function parse$6(x_,eme,$P,tme,ame,nme,rme,ime,ome){for(var lme=0,sme=0,cme=rme,dme=0,ume=0,fme=0,pme=1,hme=1,bme=1,mme=0,vme="",gme=ame,yme=nme,_me=tme,$me=vme;hme;)switch(fme=mme,mme=next()){case 40:if(fme!=108&&charat($me,cme-1)==58){indexof($me+=replace$1(delimit(mme),"&","&\f"),"&\f",abs$2(lme?ime[lme-1]:0))!=-1&&(bme=-1);break}case 34:case 39:case 91:$me+=delimit(mme);break;case 9:case 10:case 13:case 32:$me+=whitespace$2(fme);break;case 92:$me+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append$1(comment(commenter(next(),caret()),eme,$P,ome),ome),(token$2(fme||1)==5||token$2(peek()||1)==5)&&strlen($me)&&substr($me,-1,void 0)!==" "&&($me+=" ");break;default:$me+="/"}break;case 123*pme:ime[lme++]=strlen($me)*bme;case 125*pme:case 59:case 0:switch(mme){case 0:case 125:hme=0;case 59+sme:bme==-1&&($me=replace$1($me,/\f/g,"")),ume>0&&(strlen($me)-cme||pme===0&&fme===47)&&append$1(ume>32?declaration($me+";",tme,$P,cme-1,ome):declaration(replace$1($me," ","")+";",tme,$P,cme-2,ome),ome);break;case 59:$me+=";";default:if(append$1(_me=ruleset($me,eme,$P,lme,sme,ame,ime,vme,gme=[],yme=[],cme,nme),nme),mme===123)if(sme===0)parse$6($me,eme,_me,_me,gme,nme,cme,ime,yme);else switch(dme===99&&charat($me,3)===110?100:dme){case 100:case 108:case 109:case 115:parse$6(x_,_me,_me,tme&&append$1(ruleset(x_,_me,_me,0,0,ame,ime,vme,ame,gme=[],cme,yme),yme),ame,yme,cme,ime,tme?gme:yme);break;default:parse$6($me,_me,_me,_me,[""],yme,0,ime,yme)}}lme=sme=ume=0,pme=bme=1,vme=$me="",cme=rme;break;case 58:cme=1+strlen($me),ume=fme;default:if(pme<1){if(mme==123)--pme;else if(mme==125&&pme++==0&&prev()==125)continue}switch($me+=from$1(mme),mme*pme){case 38:bme=sme>0?1:($me+="\f",-1);break;case 44:ime[lme++]=(strlen($me)-1)*bme,bme=1;break;case 64:peek()===45&&($me+=delimit(next())),dme=peek(),sme=cme=strlen(vme=$me+=identifier$1(caret())),mme++;break;case 45:fme===45&&strlen($me)==2&&(pme=0)}}return nme}function ruleset(x_,eme,$P,tme,ame,nme,rme,ime,ome,lme,sme,cme){for(var dme=ame-1,ume=ame===0?nme:[""],fme=sizeof(ume),pme=0,hme=0,bme=0;pme<tme;++pme)for(var mme=0,vme=substr(x_,dme+1,dme=abs$2(hme=rme[pme])),gme=x_;mme<fme;++mme)(gme=trim$1(hme>0?ume[mme]+" "+vme:replace$1(vme,/&\f/g,ume[mme])))&&(ome[bme++]=gme);return node(x_,eme,$P,ame===0?RULESET:ime,ome,lme,sme,cme)}function comment(x_,eme,$P,tme){return node(x_,eme,$P,COMMENT,from$1(char()),substr(x_,2,-2),0,tme)}function declaration(x_,eme,$P,tme,ame){return node(x_,eme,$P,DECLARATION,substr(x_,0,tme),substr(x_,tme+1,-1),tme,ame)}function serialize(x_,eme){for(var $P="",tme=0;tme<x_.length;tme++)$P+=eme(x_[tme],tme,x_,eme)||"";return $P}function stringify$6(x_,eme,$P,tme){switch(x_.type){case LAYER:if(x_.children.length)break;case IMPORT:case DECLARATION:return x_.return=x_.return||x_.value;case COMMENT:return"";case KEYFRAMES:return x_.return=x_.value+"{"+serialize(x_.children,tme)+"}";case RULESET:if(!strlen(x_.value=x_.props.join(",")))return""}return strlen($P=serialize(x_.children,tme))?x_.return=x_.value+"{"+$P+"}":""}var ATTR_CACHE_MAP="data-ant-cssinjs-cache-path",CSS_FILE_STYLE="_FILE_STYLE__",cachePathMap,fromCSSFile=!0;function prepare$1(){if(!cachePathMap&&(cachePathMap={},canUseDom())){var x_=document.createElement("div");x_.className=ATTR_CACHE_MAP,x_.style.position="fixed",x_.style.visibility="hidden",x_.style.top="-9999px",document.body.appendChild(x_);var eme=getComputedStyle(x_).content||"";eme=eme.replace(/^"/,"").replace(/"$/,""),eme.split(";").forEach(function(ame){var nme=ame.split(":"),rme=_slicedToArray$2(nme,2),ime=rme[0],ome=rme[1];cachePathMap[ime]=ome});var $P=document.querySelector("style[".concat(ATTR_CACHE_MAP,"]"));if($P){var tme;fromCSSFile=!1,(tme=$P.parentNode)===null||tme===void 0||tme.removeChild($P)}document.body.removeChild(x_)}}function existPath(x_){return prepare$1(),!!cachePathMap[x_]}function getStyleAndHash(x_){var eme=cachePathMap[x_],$P=null;if(eme&&canUseDom())if(fromCSSFile)$P=CSS_FILE_STYLE;else{var tme=document.querySelector("style[".concat(ATTR_MARK,'="').concat(cachePathMap[x_],'"]'));tme?$P=tme.innerHTML:delete cachePathMap[x_]}return[$P,eme]}var SKIP_CHECK="_skip_check_",MULTI_VALUE="_multi_value_";function normalizeStyle(x_){var eme=serialize(compile$1(x_),stringify$6);return eme.replace(/\{%%%\:[^;];}/g,";")}function isCompoundCSSProperty(x_){return _typeof$4(x_)==="object"&&x_&&(SKIP_CHECK in x_||MULTI_VALUE in x_)}function injectSelectorHash(x_,eme,$P){if(!eme)return x_;var tme=".".concat(eme),ame=$P==="low"?":where(".concat(tme,")"):tme,nme=x_.split(",").map(function(rme){var ime,ome=rme.trim().split(/\s+/),lme=ome[0]||"",sme=((ime=lme.match(/^\w+/))===null||ime===void 0?void 0:ime[0])||"";return lme="".concat(sme).concat(ame).concat(lme.slice(sme.length)),[lme].concat(_toConsumableArray$1(ome.slice(1))).join(" ")});return nme.join(",")}var parseStyle=function x_(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},ame=tme.root,nme=tme.injectHash,rme=tme.parentSelectors,ime=$P.hashId,ome=$P.layer;$P.path;var lme=$P.hashPriority,sme=$P.transformers,cme=sme===void 0?[]:sme;$P.linters;var dme="",ume={};function fme(bme){var mme=bme.getName(ime);if(!ume[mme]){var vme=x_(bme.style,$P,{root:!1,parentSelectors:rme}),gme=_slicedToArray$2(vme,1),yme=gme[0];ume[mme]="@keyframes ".concat(bme.getName(ime)).concat(yme)}}function pme(bme){var mme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return bme.forEach(function(vme){Array.isArray(vme)?pme(vme,mme):vme&&mme.push(vme)}),mme}var hme=pme(Array.isArray(eme)?eme:[eme]);return hme.forEach(function(bme){var mme=typeof bme=="string"&&!ame?{}:bme;if(typeof mme=="string")dme+="".concat(mme,`
`);else if(mme._keyframe)fme(mme);else{var vme=cme.reduce(function(gme,yme){var _me;return(yme==null||(_me=yme.visit)===null||_me===void 0?void 0:_me.call(yme,gme))||gme},mme);Object.keys(vme).forEach(function(gme){var yme=vme[gme];if(_typeof$4(yme)==="object"&&yme&&(gme!=="animationName"||!yme._keyframe)&&!isCompoundCSSProperty(yme)){var _me=!1,$me=gme.trim(),Cme=!1;(ame||nme)&&ime?$me.startsWith("@")?_me=!0:$me==="&"?$me=injectSelectorHash("",ime,lme):$me=injectSelectorHash(gme,ime,lme):ame&&!ime&&($me==="&"||$me==="")&&($me="",Cme=!0);var Sme=x_(yme,$P,{root:Cme,injectHash:_me,parentSelectors:[].concat(_toConsumableArray$1(rme),[$me])}),Eme=_slicedToArray$2(Sme,2),xme=Eme[0],Tme=Eme[1];ume=_objectSpread2$4(_objectSpread2$4({},ume),Tme),dme+="".concat($me).concat(xme)}else{let Nme=function(Ime,Pme){var Mme=Ime.replace(/[A-Z]/g,function(Bme){return"-".concat(Bme.toLowerCase())}),kme=Pme;!unitlessKeys[Ime]&&typeof kme=="number"&&kme!==0&&(kme="".concat(kme,"px")),Ime==="animationName"&&Pme!==null&&Pme!==void 0&&Pme._keyframe&&(fme(Pme),kme=Pme.getName(ime)),dme+="".concat(Mme,":").concat(kme,";")};var Ome,Rme=(Ome=yme==null?void 0:yme.value)!==null&&Ome!==void 0?Ome:yme;_typeof$4(yme)==="object"&&yme!==null&&yme!==void 0&&yme[MULTI_VALUE]&&Array.isArray(Rme)?Rme.forEach(function(Ime){Nme(gme,Ime)}):Nme(gme,Rme)}})}}),ame?ome&&(dme&&(dme="@layer ".concat(ome.name," {").concat(dme,"}")),ome.dependencies&&(ume["@layer ".concat(ome.name)]=ome.dependencies.map(function(bme){return"@layer ".concat(bme,", ").concat(ome.name,";")}).join(`
`))):dme="{".concat(dme,"}"),[dme,ume]};function uniqueHash(x_,eme){return murmur2("".concat(x_.join("%")).concat(eme))}function Empty$2(){return null}var STYLE_PREFIX="style";function useStyleRegister(x_,eme){var $P=x_.token,tme=x_.path,ame=x_.hashId,nme=x_.layer,rme=x_.nonce,ime=x_.clientOnly,ome=x_.order,lme=ome===void 0?0:ome,sme=reactExports.useContext(StyleContext),cme=sme.autoClear;sme.mock;var dme=sme.defaultCache,ume=sme.hashPriority,fme=sme.container,pme=sme.ssrInline,hme=sme.transformers,bme=sme.linters,mme=sme.cache,vme=sme.layer,gme=$P._tokenKey,yme=[gme];vme&&yme.push("layer"),yme.push.apply(yme,_toConsumableArray$1(tme));var _me=isClientSide,$me=useGlobalCache(STYLE_PREFIX,yme,function(){var Tme=yme.join("|");if(existPath(Tme)){var Ome=getStyleAndHash(Tme),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1];if(Nme)return[Nme,gme,Ime,{},ime,lme]}var Pme=eme(),Mme=parseStyle(Pme,{hashId:ame,hashPriority:ume,layer:vme?nme:void 0,path:tme.join("-"),transformers:hme,linters:bme}),kme=_slicedToArray$2(Mme,2),Bme=kme[0],Dme=kme[1],jme=normalizeStyle(Bme),Vme=uniqueHash(yme,jme);return[jme,gme,Vme,Dme,ime,lme]},function(Tme,Ome){var Rme=_slicedToArray$2(Tme,3),Nme=Rme[2];(Ome||cme)&&isClientSide&&removeCSS(Nme,{mark:ATTR_MARK})},function(Tme){var Ome=_slicedToArray$2(Tme,4),Rme=Ome[0];Ome[1];var Nme=Ome[2],Ime=Ome[3];if(_me&&Rme!==CSS_FILE_STYLE){var Pme={mark:ATTR_MARK,prepend:vme?!1:"queue",attachTo:fme,priority:lme},Mme=typeof rme=="function"?rme():rme;Mme&&(Pme.csp={nonce:Mme});var kme=[],Bme=[];Object.keys(Ime).forEach(function(jme){jme.startsWith("@layer")?kme.push(jme):Bme.push(jme)}),kme.forEach(function(jme){updateCSS(normalizeStyle(Ime[jme]),"_layer-".concat(jme),_objectSpread2$4(_objectSpread2$4({},Pme),{},{prepend:!0}))});var Dme=updateCSS(Rme,Nme,Pme);Dme[CSS_IN_JS_INSTANCE]=mme.instanceId,Dme.setAttribute(ATTR_TOKEN,gme),Bme.forEach(function(jme){updateCSS(normalizeStyle(Ime[jme]),"_effect-".concat(jme),Pme)})}}),Cme=_slicedToArray$2($me,3),Sme=Cme[0],Eme=Cme[1],xme=Cme[2];return function(Tme){var Ome;if(!pme||_me||!dme)Ome=reactExports.createElement(Empty$2,null);else{var Rme;Ome=reactExports.createElement("style",_extends$4C({},(Rme={},_defineProperty$7(Rme,ATTR_TOKEN,Eme),_defineProperty$7(Rme,ATTR_MARK,xme),Rme),{dangerouslySetInnerHTML:{__html:Sme}}))}return reactExports.createElement(reactExports.Fragment,null,Ome,Tme)}}var extract$2=function(eme,$P,tme){var ame=_slicedToArray$2(eme,6),nme=ame[0],rme=ame[1],ime=ame[2],ome=ame[3],lme=ame[4],sme=ame[5],cme=tme||{},dme=cme.plain;if(lme)return null;var ume=nme,fme={"data-rc-order":"prependQueue","data-rc-priority":"".concat(sme)};return ume=toStyleStr(nme,rme,ime,fme,dme),ome&&Object.keys(ome).forEach(function(pme){if(!$P[pme]){$P[pme]=!0;var hme=normalizeStyle(ome[pme]),bme=toStyleStr(hme,rme,"_effect-".concat(pme),fme,dme);pme.startsWith("@layer")?ume=bme+ume:ume+=bme}}),[sme,ime,ume]},CSS_VAR_PREFIX="cssVar",useCSSVarRegister=function(eme,$P){var tme=eme.key,ame=eme.prefix,nme=eme.unitless,rme=eme.ignore,ime=eme.token,ome=eme.scope,lme=ome===void 0?"":ome,sme=reactExports.useContext(StyleContext),cme=sme.cache.instanceId,dme=sme.container,ume=ime._tokenKey,fme=[].concat(_toConsumableArray$1(eme.path),[tme,lme,ume]),pme=useGlobalCache(CSS_VAR_PREFIX,fme,function(){var hme=$P(),bme=transformToken(hme,tme,{prefix:ame,unitless:nme,ignore:rme,scope:lme}),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1],yme=uniqueHash(fme,gme);return[vme,gme,yme,tme]},function(hme){var bme=_slicedToArray$2(hme,3),mme=bme[2];isClientSide&&removeCSS(mme,{mark:ATTR_MARK})},function(hme){var bme=_slicedToArray$2(hme,3),mme=bme[1],vme=bme[2];if(mme){var gme=updateCSS(mme,vme,{mark:ATTR_MARK,prepend:"queue",attachTo:dme,priority:-999});gme[CSS_IN_JS_INSTANCE]=cme,gme.setAttribute(ATTR_TOKEN,tme)}});return pme},extract$1=function(eme,$P,tme){var ame=_slicedToArray$2(eme,4),nme=ame[1],rme=ame[2],ime=ame[3],ome=tme||{},lme=ome.plain;if(!nme)return null;var sme=-999,cme={"data-rc-order":"prependQueue","data-rc-priority":"".concat(sme)},dme=toStyleStr(nme,ime,rme,cme,lme);return[sme,rme,dme]},_ExtractStyleFns;_ExtractStyleFns={},_defineProperty$7(_ExtractStyleFns,STYLE_PREFIX,extract$2),_defineProperty$7(_ExtractStyleFns,TOKEN_PREFIX,extract$3),_defineProperty$7(_ExtractStyleFns,CSS_VAR_PREFIX,extract$1);var Keyframe=function(){function x_(eme,$P){_classCallCheck$d(this,x_),_defineProperty$7(this,"name",void 0),_defineProperty$7(this,"style",void 0),_defineProperty$7(this,"_keyframe",!0),this.name=eme,this.style=$P}return _createClass$b(x_,[{key:"getName",value:function(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $P?"".concat($P,"-").concat(this.name):this.name}}]),x_}();function noSplit(x_){return x_.notSplit=!0,x_}noSplit(["borderTop","borderBottom"]),noSplit(["borderTop"]),noSplit(["borderBottom"]),noSplit(["borderLeft","borderRight"]),noSplit(["borderLeft"]),noSplit(["borderRight"]);var IconContext=reactExports.createContext({});function _toArray(x_){return _arrayWithHoles$2(x_)||_iterableToArray$1(x_)||_unsupportedIterableToArray$2(x_)||_nonIterableRest$2()}function get$8(x_,eme){for(var $P=x_,tme=0;tme<eme.length;tme+=1){if($P==null)return;$P=$P[eme[tme]]}return $P}function internalSet(x_,eme,$P,tme){if(!eme.length)return $P;var ame=_toArray(eme),nme=ame[0],rme=ame.slice(1),ime;return!x_&&typeof nme=="number"?ime=[]:Array.isArray(x_)?ime=_toConsumableArray$1(x_):ime=_objectSpread2$4({},x_),tme&&$P===void 0&&rme.length===1?delete ime[nme][rme[0]]:ime[nme]=internalSet(ime[nme],rme,$P,tme),ime}function set$6(x_,eme,$P){var tme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return eme.length&&tme&&$P===void 0&&!get$8(x_,eme.slice(0,-1))?x_:internalSet(x_,eme,$P,tme)}function isObject$l(x_){return _typeof$4(x_)==="object"&&x_!==null&&Object.getPrototypeOf(x_)===Object.prototype}function createEmpty(x_){return Array.isArray(x_)?[]:{}}var keys$f=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function merge$6(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=createEmpty(eme[0]);return eme.forEach(function(ame){function nme(rme,ime){var ome=new Set(ime),lme=get$8(ame,rme),sme=Array.isArray(lme);if(sme||isObject$l(lme)){if(!ome.has(lme)){ome.add(lme);var cme=get$8(tme,rme);sme?tme=set$6(tme,rme,[]):(!cme||_typeof$4(cme)!=="object")&&(tme=set$6(tme,rme,createEmpty(lme))),keys$f(lme).forEach(function(dme){nme([].concat(_toConsumableArray$1(rme),[dme]),ome)})}}else tme=set$6(tme,rme,lme)}nme([])}),tme}function noop$e(){}const WarningContext=reactExports.createContext({}),devUseWarning=()=>{const x_=()=>{};return x_.deprecated=noop$e,x_},ValidateMessagesContext=reactExports.createContext(void 0);var locale$c={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"},commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},locale$b=_objectSpread2$4(_objectSpread2$4({},commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const locale$a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},locale$9={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"]},locale$b),timePickerLocale:Object.assign({},locale$a)},typeTemplate$3="${label} is not a valid ${type}",localeValues$2={locale:"en",Pagination:locale$c,DatePicker:locale$9,TimePicker:locale$a,Calendar:locale$9,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate$3,method:typeTemplate$3,array:typeTemplate$3,object:typeTemplate$3,number:typeTemplate$3,date:typeTemplate$3,boolean:typeTemplate$3,integer:typeTemplate$3,float:typeTemplate$3,regexp:typeTemplate$3,email:typeTemplate$3,url:typeTemplate$3,hex:typeTemplate$3},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"}};Object.assign({},localeValues$2.Modal);let localeList=[];const generateLocale=()=>localeList.reduce((x_,eme)=>Object.assign(Object.assign({},x_),eme),localeValues$2.Modal);function changeConfirmLocale(x_){if(x_){const eme=Object.assign({},x_);return localeList.push(eme),generateLocale(),()=>{localeList=localeList.filter($P=>$P!==eme),generateLocale()}}Object.assign({},localeValues$2.Modal)}const LocaleContext$1=reactExports.createContext(void 0),useLocale=(x_,eme)=>{const $P=reactExports.useContext(LocaleContext$1),tme=reactExports.useMemo(()=>{var nme;const rme=localeValues$2[x_],ime=(nme=$P==null?void 0:$P[x_])!==null&&nme!==void 0?nme:{};return Object.assign(Object.assign({},typeof rme=="function"?rme():rme),ime||{})},[x_,eme,$P]),ame=reactExports.useMemo(()=>{const nme=$P==null?void 0:$P.locale;return $P!=null&&$P.exist&&!nme?localeValues$2.locale:nme},[$P]);return[tme,ame]},ANT_MARK="internalMark",LocaleProvider=x_=>{const{locale:eme={},children:$P,_ANT_MARK__:tme}=x_;reactExports.useEffect(()=>changeConfirmLocale(eme==null?void 0:eme.Modal),[eme]);const ame=reactExports.useMemo(()=>Object.assign(Object.assign({},eme),{exist:!0}),[eme]);return reactExports.createElement(LocaleContext$1.Provider,{value:ame},$P)};function bound01$1(x_,eme){isOnePointZero$1(x_)&&(x_="100%");var $P=isPercentage$1(x_);return x_=eme===360?x_:Math.min(eme,Math.max(0,parseFloat(x_))),$P&&(x_=parseInt(String(x_*eme),10)/100),Math.abs(x_-eme)<1e-6?1:(eme===360?x_=(x_<0?x_%eme+eme:x_%eme)/parseFloat(String(eme)):x_=x_%eme/parseFloat(String(eme)),x_)}function clamp01$1(x_){return Math.min(1,Math.max(0,x_))}function isOnePointZero$1(x_){return typeof x_=="string"&&x_.indexOf(".")!==-1&&parseFloat(x_)===1}function isPercentage$1(x_){return typeof x_=="string"&&x_.indexOf("%")!==-1}function boundAlpha$1(x_){return x_=parseFloat(x_),(isNaN(x_)||x_<0||x_>1)&&(x_=1),x_}function convertToPercentage$1(x_){return x_<=1?"".concat(Number(x_)*100,"%"):x_}function pad2$1(x_){return x_.length===1?"0"+x_:String(x_)}function rgbToRgb$1(x_,eme,$P){return{r:bound01$1(x_,255)*255,g:bound01$1(eme,255)*255,b:bound01$1($P,255)*255}}function rgbToHsl$1(x_,eme,$P){x_=bound01$1(x_,255),eme=bound01$1(eme,255),$P=bound01$1($P,255);var tme=Math.max(x_,eme,$P),ame=Math.min(x_,eme,$P),nme=0,rme=0,ime=(tme+ame)/2;if(tme===ame)rme=0,nme=0;else{var ome=tme-ame;switch(rme=ime>.5?ome/(2-tme-ame):ome/(tme+ame),tme){case x_:nme=(eme-$P)/ome+(eme<$P?6:0);break;case eme:nme=($P-x_)/ome+2;break;case $P:nme=(x_-eme)/ome+4;break}nme/=6}return{h:nme,s:rme,l:ime}}function hue2rgb(x_,eme,$P){return $P<0&&($P+=1),$P>1&&($P-=1),$P<1/6?x_+(eme-x_)*(6*$P):$P<1/2?eme:$P<2/3?x_+(eme-x_)*(2/3-$P)*6:x_}function hslToRgb$1(x_,eme,$P){var tme,ame,nme;if(x_=bound01$1(x_,360),eme=bound01$1(eme,100),$P=bound01$1($P,100),eme===0)ame=$P,nme=$P,tme=$P;else{var rme=$P<.5?$P*(1+eme):$P+eme-$P*eme,ime=2*$P-rme;tme=hue2rgb(ime,rme,x_+1/3),ame=hue2rgb(ime,rme,x_),nme=hue2rgb(ime,rme,x_-1/3)}return{r:tme*255,g:ame*255,b:nme*255}}function rgbToHsv$1(x_,eme,$P){x_=bound01$1(x_,255),eme=bound01$1(eme,255),$P=bound01$1($P,255);var tme=Math.max(x_,eme,$P),ame=Math.min(x_,eme,$P),nme=0,rme=tme,ime=tme-ame,ome=tme===0?0:ime/tme;if(tme===ame)nme=0;else{switch(tme){case x_:nme=(eme-$P)/ime+(eme<$P?6:0);break;case eme:nme=($P-x_)/ime+2;break;case $P:nme=(x_-eme)/ime+4;break}nme/=6}return{h:nme,s:ome,v:rme}}function hsvToRgb$1(x_,eme,$P){x_=bound01$1(x_,360)*6,eme=bound01$1(eme,100),$P=bound01$1($P,100);var tme=Math.floor(x_),ame=x_-tme,nme=$P*(1-eme),rme=$P*(1-ame*eme),ime=$P*(1-(1-ame)*eme),ome=tme%6,lme=[$P,rme,nme,nme,ime,$P][ome],sme=[ime,$P,$P,rme,nme,nme][ome],cme=[nme,nme,ime,$P,$P,rme][ome];return{r:lme*255,g:sme*255,b:cme*255}}function rgbToHex$1(x_,eme,$P,tme){var ame=[pad2$1(Math.round(x_).toString(16)),pad2$1(Math.round(eme).toString(16)),pad2$1(Math.round($P).toString(16))];return tme&&ame[0].startsWith(ame[0].charAt(1))&&ame[1].startsWith(ame[1].charAt(1))&&ame[2].startsWith(ame[2].charAt(1))?ame[0].charAt(0)+ame[1].charAt(0)+ame[2].charAt(0):ame.join("")}function rgbaToHex$2(x_,eme,$P,tme,ame){var nme=[pad2$1(Math.round(x_).toString(16)),pad2$1(Math.round(eme).toString(16)),pad2$1(Math.round($P).toString(16)),pad2$1(convertDecimalToHex$1(tme))];return ame&&nme[0].startsWith(nme[0].charAt(1))&&nme[1].startsWith(nme[1].charAt(1))&&nme[2].startsWith(nme[2].charAt(1))&&nme[3].startsWith(nme[3].charAt(1))?nme[0].charAt(0)+nme[1].charAt(0)+nme[2].charAt(0)+nme[3].charAt(0):nme.join("")}function convertDecimalToHex$1(x_){return Math.round(parseFloat(x_)*255).toString(16)}function convertHexToDecimal$1(x_){return parseIntFromHex$1(x_)/255}function parseIntFromHex$1(x_){return parseInt(x_,16)}function numberInputToObject(x_){return{r:x_>>16,g:(x_&65280)>>8,b:x_&255}}var names$1={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 inputToRGB$1(x_){var eme={r:0,g:0,b:0},$P=1,tme=null,ame=null,nme=null,rme=!1,ime=!1;return typeof x_=="string"&&(x_=stringInputToObject$1(x_)),typeof x_=="object"&&(isValidCSSUnit$1(x_.r)&&isValidCSSUnit$1(x_.g)&&isValidCSSUnit$1(x_.b)?(eme=rgbToRgb$1(x_.r,x_.g,x_.b),rme=!0,ime=String(x_.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit$1(x_.h)&&isValidCSSUnit$1(x_.s)&&isValidCSSUnit$1(x_.v)?(tme=convertToPercentage$1(x_.s),ame=convertToPercentage$1(x_.v),eme=hsvToRgb$1(x_.h,tme,ame),rme=!0,ime="hsv"):isValidCSSUnit$1(x_.h)&&isValidCSSUnit$1(x_.s)&&isValidCSSUnit$1(x_.l)&&(tme=convertToPercentage$1(x_.s),nme=convertToPercentage$1(x_.l),eme=hslToRgb$1(x_.h,tme,nme),rme=!0,ime="hsl"),Object.prototype.hasOwnProperty.call(x_,"a")&&($P=x_.a)),$P=boundAlpha$1($P),{ok:rme,format:x_.format||ime,r:Math.min(255,Math.max(eme.r,0)),g:Math.min(255,Math.max(eme.g,0)),b:Math.min(255,Math.max(eme.b,0)),a:$P}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers$1={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject$1(x_){if(x_=x_.trim().toLowerCase(),x_.length===0)return!1;var eme=!1;if(names$1[x_])x_=names$1[x_],eme=!0;else if(x_==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $P=matchers$1.rgb.exec(x_);return $P?{r:$P[1],g:$P[2],b:$P[3]}:($P=matchers$1.rgba.exec(x_),$P?{r:$P[1],g:$P[2],b:$P[3],a:$P[4]}:($P=matchers$1.hsl.exec(x_),$P?{h:$P[1],s:$P[2],l:$P[3]}:($P=matchers$1.hsla.exec(x_),$P?{h:$P[1],s:$P[2],l:$P[3],a:$P[4]}:($P=matchers$1.hsv.exec(x_),$P?{h:$P[1],s:$P[2],v:$P[3]}:($P=matchers$1.hsva.exec(x_),$P?{h:$P[1],s:$P[2],v:$P[3],a:$P[4]}:($P=matchers$1.hex8.exec(x_),$P?{r:parseIntFromHex$1($P[1]),g:parseIntFromHex$1($P[2]),b:parseIntFromHex$1($P[3]),a:convertHexToDecimal$1($P[4]),format:eme?"name":"hex8"}:($P=matchers$1.hex6.exec(x_),$P?{r:parseIntFromHex$1($P[1]),g:parseIntFromHex$1($P[2]),b:parseIntFromHex$1($P[3]),format:eme?"name":"hex"}:($P=matchers$1.hex4.exec(x_),$P?{r:parseIntFromHex$1($P[1]+$P[1]),g:parseIntFromHex$1($P[2]+$P[2]),b:parseIntFromHex$1($P[3]+$P[3]),a:convertHexToDecimal$1($P[4]+$P[4]),format:eme?"name":"hex8"}:($P=matchers$1.hex3.exec(x_),$P?{r:parseIntFromHex$1($P[1]+$P[1]),g:parseIntFromHex$1($P[2]+$P[2]),b:parseIntFromHex$1($P[3]+$P[3]),format:eme?"name":"hex"}:!1)))))))))}function isValidCSSUnit$1(x_){return!!matchers$1.CSS_UNIT.exec(String(x_))}var TinyColor=function(){function x_(eme,$P){eme===void 0&&(eme=""),$P===void 0&&($P={});var tme;if(eme instanceof x_)return eme;typeof eme=="number"&&(eme=numberInputToObject(eme)),this.originalInput=eme;var ame=inputToRGB$1(eme);this.originalInput=eme,this.r=ame.r,this.g=ame.g,this.b=ame.b,this.a=ame.a,this.roundA=Math.round(100*this.a)/100,this.format=(tme=$P.format)!==null&&tme!==void 0?tme:ame.format,this.gradientType=$P.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=ame.ok}return x_.prototype.isDark=function(){return this.getBrightness()<128},x_.prototype.isLight=function(){return!this.isDark()},x_.prototype.getBrightness=function(){var eme=this.toRgb();return(eme.r*299+eme.g*587+eme.b*114)/1e3},x_.prototype.getLuminance=function(){var eme=this.toRgb(),$P,tme,ame,nme=eme.r/255,rme=eme.g/255,ime=eme.b/255;return nme<=.03928?$P=nme/12.92:$P=Math.pow((nme+.055)/1.055,2.4),rme<=.03928?tme=rme/12.92:tme=Math.pow((rme+.055)/1.055,2.4),ime<=.03928?ame=ime/12.92:ame=Math.pow((ime+.055)/1.055,2.4),.2126*$P+.7152*tme+.0722*ame},x_.prototype.getAlpha=function(){return this.a},x_.prototype.setAlpha=function(eme){return this.a=boundAlpha$1(eme),this.roundA=Math.round(100*this.a)/100,this},x_.prototype.isMonochrome=function(){var eme=this.toHsl().s;return eme===0},x_.prototype.toHsv=function(){var eme=rgbToHsv$1(this.r,this.g,this.b);return{h:eme.h*360,s:eme.s,v:eme.v,a:this.a}},x_.prototype.toHsvString=function(){var eme=rgbToHsv$1(this.r,this.g,this.b),$P=Math.round(eme.h*360),tme=Math.round(eme.s*100),ame=Math.round(eme.v*100);return this.a===1?"hsv(".concat($P,", ").concat(tme,"%, ").concat(ame,"%)"):"hsva(".concat($P,", ").concat(tme,"%, ").concat(ame,"%, ").concat(this.roundA,")")},x_.prototype.toHsl=function(){var eme=rgbToHsl$1(this.r,this.g,this.b);return{h:eme.h*360,s:eme.s,l:eme.l,a:this.a}},x_.prototype.toHslString=function(){var eme=rgbToHsl$1(this.r,this.g,this.b),$P=Math.round(eme.h*360),tme=Math.round(eme.s*100),ame=Math.round(eme.l*100);return this.a===1?"hsl(".concat($P,", ").concat(tme,"%, ").concat(ame,"%)"):"hsla(".concat($P,", ").concat(tme,"%, ").concat(ame,"%, ").concat(this.roundA,")")},x_.prototype.toHex=function(eme){return eme===void 0&&(eme=!1),rgbToHex$1(this.r,this.g,this.b,eme)},x_.prototype.toHexString=function(eme){return eme===void 0&&(eme=!1),"#"+this.toHex(eme)},x_.prototype.toHex8=function(eme){return eme===void 0&&(eme=!1),rgbaToHex$2(this.r,this.g,this.b,this.a,eme)},x_.prototype.toHex8String=function(eme){return eme===void 0&&(eme=!1),"#"+this.toHex8(eme)},x_.prototype.toHexShortString=function(eme){return eme===void 0&&(eme=!1),this.a===1?this.toHexString(eme):this.toHex8String(eme)},x_.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},x_.prototype.toRgbString=function(){var eme=Math.round(this.r),$P=Math.round(this.g),tme=Math.round(this.b);return this.a===1?"rgb(".concat(eme,", ").concat($P,", ").concat(tme,")"):"rgba(".concat(eme,", ").concat($P,", ").concat(tme,", ").concat(this.roundA,")")},x_.prototype.toPercentageRgb=function(){var eme=function($P){return"".concat(Math.round(bound01$1($P,255)*100),"%")};return{r:eme(this.r),g:eme(this.g),b:eme(this.b),a:this.a}},x_.prototype.toPercentageRgbString=function(){var eme=function($P){return Math.round(bound01$1($P,255)*100)};return this.a===1?"rgb(".concat(eme(this.r),"%, ").concat(eme(this.g),"%, ").concat(eme(this.b),"%)"):"rgba(".concat(eme(this.r),"%, ").concat(eme(this.g),"%, ").concat(eme(this.b),"%, ").concat(this.roundA,")")},x_.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var eme="#"+rgbToHex$1(this.r,this.g,this.b,!1),$P=0,tme=Object.entries(names$1);$P<tme.length;$P++){var ame=tme[$P],nme=ame[0],rme=ame[1];if(eme===rme)return nme}return!1},x_.prototype.toString=function(eme){var $P=!!eme;eme=eme??this.format;var tme=!1,ame=this.a<1&&this.a>=0,nme=!$P&&ame&&(eme.startsWith("hex")||eme==="name");return nme?eme==="name"&&this.a===0?this.toName():this.toRgbString():(eme==="rgb"&&(tme=this.toRgbString()),eme==="prgb"&&(tme=this.toPercentageRgbString()),(eme==="hex"||eme==="hex6")&&(tme=this.toHexString()),eme==="hex3"&&(tme=this.toHexString(!0)),eme==="hex4"&&(tme=this.toHex8String(!0)),eme==="hex8"&&(tme=this.toHex8String()),eme==="name"&&(tme=this.toName()),eme==="hsl"&&(tme=this.toHslString()),eme==="hsv"&&(tme=this.toHsvString()),tme||this.toHexString())},x_.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},x_.prototype.clone=function(){return new x_(this.toString())},x_.prototype.lighten=function(eme){eme===void 0&&(eme=10);var $P=this.toHsl();return $P.l+=eme/100,$P.l=clamp01$1($P.l),new x_($P)},x_.prototype.brighten=function(eme){eme===void 0&&(eme=10);var $P=this.toRgb();return $P.r=Math.max(0,Math.min(255,$P.r-Math.round(255*-(eme/100)))),$P.g=Math.max(0,Math.min(255,$P.g-Math.round(255*-(eme/100)))),$P.b=Math.max(0,Math.min(255,$P.b-Math.round(255*-(eme/100)))),new x_($P)},x_.prototype.darken=function(eme){eme===void 0&&(eme=10);var $P=this.toHsl();return $P.l-=eme/100,$P.l=clamp01$1($P.l),new x_($P)},x_.prototype.tint=function(eme){return eme===void 0&&(eme=10),this.mix("white",eme)},x_.prototype.shade=function(eme){return eme===void 0&&(eme=10),this.mix("black",eme)},x_.prototype.desaturate=function(eme){eme===void 0&&(eme=10);var $P=this.toHsl();return $P.s-=eme/100,$P.s=clamp01$1($P.s),new x_($P)},x_.prototype.saturate=function(eme){eme===void 0&&(eme=10);var $P=this.toHsl();return $P.s+=eme/100,$P.s=clamp01$1($P.s),new x_($P)},x_.prototype.greyscale=function(){return this.desaturate(100)},x_.prototype.spin=function(eme){var $P=this.toHsl(),tme=($P.h+eme)%360;return $P.h=tme<0?360+tme:tme,new x_($P)},x_.prototype.mix=function(eme,$P){$P===void 0&&($P=50);var tme=this.toRgb(),ame=new x_(eme).toRgb(),nme=$P/100,rme={r:(ame.r-tme.r)*nme+tme.r,g:(ame.g-tme.g)*nme+tme.g,b:(ame.b-tme.b)*nme+tme.b,a:(ame.a-tme.a)*nme+tme.a};return new x_(rme)},x_.prototype.analogous=function(eme,$P){eme===void 0&&(eme=6),$P===void 0&&($P=30);var tme=this.toHsl(),ame=360/$P,nme=[this];for(tme.h=(tme.h-(ame*eme>>1)+720)%360;--eme;)tme.h=(tme.h+ame)%360,nme.push(new x_(tme));return nme},x_.prototype.complement=function(){var eme=this.toHsl();return eme.h=(eme.h+180)%360,new x_(eme)},x_.prototype.monochromatic=function(eme){eme===void 0&&(eme=6);for(var $P=this.toHsv(),tme=$P.h,ame=$P.s,nme=$P.v,rme=[],ime=1/eme;eme--;)rme.push(new x_({h:tme,s:ame,v:nme})),nme=(nme+ime)%1;return rme},x_.prototype.splitcomplement=function(){var eme=this.toHsl(),$P=eme.h;return[this,new x_({h:($P+72)%360,s:eme.s,l:eme.l}),new x_({h:($P+216)%360,s:eme.s,l:eme.l})]},x_.prototype.onBackground=function(eme){var $P=this.toRgb(),tme=new x_(eme).toRgb(),ame=$P.a+tme.a*(1-$P.a);return new x_({r:($P.r*$P.a+tme.r*tme.a*(1-$P.a))/ame,g:($P.g*$P.a+tme.g*tme.a*(1-$P.a))/ame,b:($P.b*$P.a+tme.b*tme.a*(1-$P.a))/ame,a:ame})},x_.prototype.triad=function(){return this.polyad(3)},x_.prototype.tetrad=function(){return this.polyad(4)},x_.prototype.polyad=function(eme){for(var $P=this.toHsl(),tme=$P.h,ame=[this],nme=360/eme,rme=1;rme<eme;rme++)ame.push(new x_({h:(tme+rme*nme)%360,s:$P.s,l:$P.l}));return ame},x_.prototype.equals=function(eme){return this.toRgbString()===new x_(eme).toRgbString()},x_}(),hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function toHsv(x_){var eme=x_.r,$P=x_.g,tme=x_.b,ame=rgbToHsv$1(eme,$P,tme);return{h:ame.h*360,s:ame.s,v:ame.v}}function toHex(x_){var eme=x_.r,$P=x_.g,tme=x_.b;return"#".concat(rgbToHex$1(eme,$P,tme,!1))}function mix(x_,eme,$P){var tme=$P/100,ame={r:(eme.r-x_.r)*tme+x_.r,g:(eme.g-x_.g)*tme+x_.g,b:(eme.b-x_.b)*tme+x_.b};return ame}function getHue(x_,eme,$P){var tme;return Math.round(x_.h)>=60&&Math.round(x_.h)<=240?tme=$P?Math.round(x_.h)-hueStep*eme:Math.round(x_.h)+hueStep*eme:tme=$P?Math.round(x_.h)+hueStep*eme:Math.round(x_.h)-hueStep*eme,tme<0?tme+=360:tme>=360&&(tme-=360),tme}function getSaturation(x_,eme,$P){if(x_.h===0&&x_.s===0)return x_.s;var tme;return $P?tme=x_.s-saturationStep*eme:eme===darkColorCount?tme=x_.s+saturationStep:tme=x_.s+saturationStep2*eme,tme>1&&(tme=1),$P&&eme===lightColorCount&&tme>.1&&(tme=.1),tme<.06&&(tme=.06),Number(tme.toFixed(2))}function getValue$5(x_,eme,$P){var tme;return $P?tme=x_.v+brightnessStep1*eme:tme=x_.v-brightnessStep2*eme,tme>1&&(tme=1),Number(tme.toFixed(2))}function generate$1(x_){for(var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$P=[],tme=inputToRGB$1(x_),ame=lightColorCount;ame>0;ame-=1){var nme=toHsv(tme),rme=toHex(inputToRGB$1({h:getHue(nme,ame,!0),s:getSaturation(nme,ame,!0),v:getValue$5(nme,ame,!0)}));$P.push(rme)}$P.push(toHex(tme));for(var ime=1;ime<=darkColorCount;ime+=1){var ome=toHsv(tme),lme=toHex(inputToRGB$1({h:getHue(ome,ime),s:getSaturation(ome,ime),v:getValue$5(ome,ime)}));$P.push(lme)}return eme.theme==="dark"?darkColorMap.map(function(sme){var cme=sme.index,dme=sme.opacity,ume=toHex(mix(inputToRGB$1(eme.backgroundColor||"#141414"),inputToRGB$1($P[cme]),dme*100));return ume}):$P}var presetPrimaryColors={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"},red$1=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];red$1.primary=red$1[5];var volcano=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];volcano.primary=volcano[5];var orange$1=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];orange$1.primary=orange$1[5];var gold=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];gold.primary=gold[5];var yellow$1=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];yellow$1.primary=yellow$1[5];var lime$1=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];lime$1.primary=lime$1[5];var green$1=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];green$1.primary=green$1[5];var cyan$1=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];cyan$1.primary=cyan$1[5];var blue$1=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];blue$1.primary=blue$1[5];var geekblue=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];geekblue.primary=geekblue[5];var purple$1=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];purple$1.primary=purple$1[5];var magenta=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];magenta.primary=magenta[5];var grey=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];grey.primary=grey[5];var presetPalettes={red:red$1,volcano,orange:orange$1,gold,yellow:yellow$1,lime:lime$1,green:green$1,cyan:cyan$1,blue:blue$1,geekblue,purple:purple$1,magenta,grey};const 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"},seedToken=Object.assign(Object.assign({},defaultPresetColors),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function genColorMapToken(x_,eme){let{generateColorPalettes:$P,generateNeutralColorPalettes:tme}=eme;const{colorSuccess:ame,colorWarning:nme,colorError:rme,colorInfo:ime,colorPrimary:ome,colorBgBase:lme,colorTextBase:sme}=x_,cme=$P(ome),dme=$P(ame),ume=$P(nme),fme=$P(rme),pme=$P(ime),hme=tme(lme,sme),bme=x_.colorLink||x_.colorInfo,mme=$P(bme),vme=new TinyColor(fme[1]).mix(new TinyColor(fme[3]),50).toHexString();return Object.assign(Object.assign({},hme),{colorPrimaryBg:cme[1],colorPrimaryBgHover:cme[2],colorPrimaryBorder:cme[3],colorPrimaryBorderHover:cme[4],colorPrimaryHover:cme[5],colorPrimary:cme[6],colorPrimaryActive:cme[7],colorPrimaryTextHover:cme[8],colorPrimaryText:cme[9],colorPrimaryTextActive:cme[10],colorSuccessBg:dme[1],colorSuccessBgHover:dme[2],colorSuccessBorder:dme[3],colorSuccessBorderHover:dme[4],colorSuccessHover:dme[4],colorSuccess:dme[6],colorSuccessActive:dme[7],colorSuccessTextHover:dme[8],colorSuccessText:dme[9],colorSuccessTextActive:dme[10],colorErrorBg:fme[1],colorErrorBgHover:fme[2],colorErrorBgFilledHover:vme,colorErrorBgActive:fme[3],colorErrorBorder:fme[3],colorErrorBorderHover:fme[4],colorErrorHover:fme[5],colorError:fme[6],colorErrorActive:fme[7],colorErrorTextHover:fme[8],colorErrorText:fme[9],colorErrorTextActive:fme[10],colorWarningBg:ume[1],colorWarningBgHover:ume[2],colorWarningBorder:ume[3],colorWarningBorderHover:ume[4],colorWarningHover:ume[4],colorWarning:ume[6],colorWarningActive:ume[7],colorWarningTextHover:ume[8],colorWarningText:ume[9],colorWarningTextActive:ume[10],colorInfoBg:pme[1],colorInfoBgHover:pme[2],colorInfoBorder:pme[3],colorInfoBorderHover:pme[4],colorInfoHover:pme[4],colorInfo:pme[6],colorInfoActive:pme[7],colorInfoTextHover:pme[8],colorInfoText:pme[9],colorInfoTextActive:pme[10],colorLinkHover:mme[4],colorLink:mme[6],colorLinkActive:mme[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const genRadius=x_=>{let eme=x_,$P=x_,tme=x_,ame=x_;return x_<6&&x_>=5?eme=x_+1:x_<16&&x_>=6?eme=x_+2:x_>=16&&(eme=16),x_<7&&x_>=5?$P=4:x_<8&&x_>=7?$P=5:x_<14&&x_>=8?$P=6:x_<16&&x_>=14?$P=7:x_>=16&&($P=8),x_<6&&x_>=2?tme=1:x_>=6&&(tme=2),x_>4&&x_<8?ame=4:x_>=8&&(ame=6),{borderRadius:x_,borderRadiusXS:tme,borderRadiusSM:$P,borderRadiusLG:eme,borderRadiusOuter:ame}};function genCommonMapToken(x_){const{motionUnit:eme,motionBase:$P,borderRadius:tme,lineWidth:ame}=x_;return Object.assign({motionDurationFast:`${($P+eme).toFixed(1)}s`,motionDurationMid:`${($P+eme*2).toFixed(1)}s`,motionDurationSlow:`${($P+eme*3).toFixed(1)}s`,lineWidthBold:ame+1},genRadius(tme))}const genControlHeight=x_=>{const{controlHeight:eme}=x_;return{controlHeightSM:eme*.75,controlHeightXS:eme*.5,controlHeightLG:eme*1.25}};function getLineHeight(x_){return(x_+8)/x_}function getFontSizes(x_){const eme=new Array(10).fill(null).map(($P,tme)=>{const ame=tme-1,nme=x_*Math.pow(Math.E,ame/5),rme=tme>1?Math.floor(nme):Math.ceil(nme);return Math.floor(rme/2)*2});return eme[1]=x_,eme.map($P=>({size:$P,lineHeight:getLineHeight($P)}))}const genFontMapToken=x_=>{const eme=getFontSizes(x_),$P=eme.map(sme=>sme.size),tme=eme.map(sme=>sme.lineHeight),ame=$P[1],nme=$P[0],rme=$P[2],ime=tme[1],ome=tme[0],lme=tme[2];return{fontSizeSM:nme,fontSize:ame,fontSizeLG:rme,fontSizeXL:$P[3],fontSizeHeading1:$P[6],fontSizeHeading2:$P[5],fontSizeHeading3:$P[4],fontSizeHeading4:$P[3],fontSizeHeading5:$P[2],lineHeight:ime,lineHeightLG:lme,lineHeightSM:ome,fontHeight:Math.round(ime*ame),fontHeightLG:Math.round(lme*rme),fontHeightSM:Math.round(ome*nme),lineHeightHeading1:tme[6],lineHeightHeading2:tme[5],lineHeightHeading3:tme[4],lineHeightHeading4:tme[3],lineHeightHeading5:tme[2]}};function genSizeMapToken$1(x_){const{sizeUnit:eme,sizeStep:$P}=x_;return{sizeXXL:eme*($P+8),sizeXL:eme*($P+4),sizeLG:eme*($P+2),sizeMD:eme*($P+1),sizeMS:eme*$P,size:eme*$P,sizeSM:eme*($P-1),sizeXS:eme*($P-2),sizeXXS:eme*($P-3)}}const getAlphaColor$2=(x_,eme)=>new TinyColor(x_).setAlpha(eme).toRgbString(),getSolidColor$1=(x_,eme)=>new TinyColor(x_).darken(eme).toHexString(),generateColorPalettes$1=x_=>{const eme=generate$1(x_);return{1:eme[0],2:eme[1],3:eme[2],4:eme[3],5:eme[4],6:eme[5],7:eme[6],8:eme[4],9:eme[5],10:eme[6]}},generateNeutralColorPalettes$1=(x_,eme)=>{const $P=x_||"#fff",tme=eme||"#000";return{colorBgBase:$P,colorTextBase:tme,colorText:getAlphaColor$2(tme,.88),colorTextSecondary:getAlphaColor$2(tme,.65),colorTextTertiary:getAlphaColor$2(tme,.45),colorTextQuaternary:getAlphaColor$2(tme,.25),colorFill:getAlphaColor$2(tme,.15),colorFillSecondary:getAlphaColor$2(tme,.06),colorFillTertiary:getAlphaColor$2(tme,.04),colorFillQuaternary:getAlphaColor$2(tme,.02),colorBgSolid:getAlphaColor$2(tme,1),colorBgSolidHover:getAlphaColor$2(tme,.75),colorBgSolidActive:getAlphaColor$2(tme,.95),colorBgLayout:getSolidColor$1($P,4),colorBgContainer:getSolidColor$1($P,0),colorBgElevated:getSolidColor$1($P,0),colorBgSpotlight:getAlphaColor$2(tme,.85),colorBgBlur:"transparent",colorBorder:getSolidColor$1($P,15),colorBorderSecondary:getSolidColor$1($P,6)}};function derivative$2(x_){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;const eme=Object.keys(defaultPresetColors).map($P=>{const tme=x_[$P]===presetPrimaryColors[$P]?presetPalettes[$P]:generate$1(x_[$P]);return new Array(10).fill(1).reduce((ame,nme,rme)=>(ame[`${$P}-${rme+1}`]=tme[rme],ame[`${$P}${rme+1}`]=tme[rme],ame),{})}).reduce(($P,tme)=>($P=Object.assign(Object.assign({},$P),tme),$P),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x_),eme),genColorMapToken(x_,{generateColorPalettes:generateColorPalettes$1,generateNeutralColorPalettes:generateNeutralColorPalettes$1})),genFontMapToken(x_.fontSize)),genSizeMapToken$1(x_)),genControlHeight(x_)),genCommonMapToken(x_))}const defaultTheme$1=createTheme(derivative$2),defaultConfig$2={token:seedToken,override:{override:seedToken},hashed:!0},DesignTokenContext=React__default.createContext(defaultConfig$2),defaultPrefixCls="ant",defaultIconPrefixCls="anticon",Variants=["outlined","borderless","filled"],defaultGetPrefixCls=(x_,eme)=>eme||(x_?`${defaultPrefixCls}-${x_}`:defaultPrefixCls),ConfigContext=reactExports.createContext({getPrefixCls:defaultGetPrefixCls,iconPrefixCls:defaultIconPrefixCls}),dynamicStyleMark=`-ant-${Date.now()}-${Math.random()}`;function getStyle$1(x_,eme){const $P={},tme=(rme,ime)=>{let ome=rme.clone();return ome=(ime==null?void 0:ime(ome))||ome,ome.toRgbString()},ame=(rme,ime)=>{const ome=new TinyColor(rme),lme=generate$1(ome.toRgbString());$P[`${ime}-color`]=tme(ome),$P[`${ime}-color-disabled`]=lme[1],$P[`${ime}-color-hover`]=lme[4],$P[`${ime}-color-active`]=lme[6],$P[`${ime}-color-outline`]=ome.clone().setAlpha(.2).toRgbString(),$P[`${ime}-color-deprecated-bg`]=lme[0],$P[`${ime}-color-deprecated-border`]=lme[2]};if(eme.primaryColor){ame(eme.primaryColor,"primary");const rme=new TinyColor(eme.primaryColor),ime=generate$1(rme.toRgbString());ime.forEach((lme,sme)=>{$P[`primary-${sme+1}`]=lme}),$P["primary-color-deprecated-l-35"]=tme(rme,lme=>lme.lighten(35)),$P["primary-color-deprecated-l-20"]=tme(rme,lme=>lme.lighten(20)),$P["primary-color-deprecated-t-20"]=tme(rme,lme=>lme.tint(20)),$P["primary-color-deprecated-t-50"]=tme(rme,lme=>lme.tint(50)),$P["primary-color-deprecated-f-12"]=tme(rme,lme=>lme.setAlpha(lme.getAlpha()*.12));const ome=new TinyColor(ime[0]);$P["primary-color-active-deprecated-f-30"]=tme(ome,lme=>lme.setAlpha(lme.getAlpha()*.3)),$P["primary-color-active-deprecated-d-02"]=tme(ome,lme=>lme.darken(2))}return eme.successColor&&ame(eme.successColor,"success"),eme.warningColor&&ame(eme.warningColor,"warning"),eme.errorColor&&ame(eme.errorColor,"error"),eme.infoColor&&ame(eme.infoColor,"info"),`
  :root {
    ${Object.keys($P).map(rme=>`--${x_}-${rme}: ${$P[rme]};`).join(`
`)}
  }
  `.trim()}function registerTheme(x_,eme){const $P=getStyle$1(x_,eme);canUseDom()&&updateCSS($P,`${dynamicStyleMark}-dynamic-theme`)}const DisabledContext=reactExports.createContext(!1),DisabledContextProvider=x_=>{let{children:eme,disabled:$P}=x_;const tme=reactExports.useContext(DisabledContext);return reactExports.createElement(DisabledContext.Provider,{value:$P??tme},eme)},SizeContext=reactExports.createContext(void 0),SizeContextProvider=x_=>{let{children:eme,size:$P}=x_;const tme=reactExports.useContext(SizeContext);return reactExports.createElement(SizeContext.Provider,{value:$P||tme},eme)};function useConfig(){const x_=reactExports.useContext(DisabledContext),eme=reactExports.useContext(SizeContext);return{componentDisabled:x_,componentSize:eme}}var AbstractCalculator=_createClass$b(function x_(){_classCallCheck$d(this,x_)}),CALC_UNIT="CALC_UNIT",regexp$1=new RegExp(CALC_UNIT,"g");function unit(x_){return typeof x_=="number"?"".concat(x_).concat(CALC_UNIT):x_}var CSSCalculator=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme,ame){var nme;_classCallCheck$d(this,$P),nme=eme.call(this),_defineProperty$7(_assertThisInitialized(nme),"result",""),_defineProperty$7(_assertThisInitialized(nme),"unitlessCssVar",void 0),_defineProperty$7(_assertThisInitialized(nme),"lowPriority",void 0);var rme=_typeof$4(tme);return nme.unitlessCssVar=ame,tme instanceof $P?nme.result="(".concat(tme.result,")"):rme==="number"?nme.result=unit(tme):rme==="string"&&(nme.result=tme),nme}return _createClass$b($P,[{key:"add",value:function(ame){return ame instanceof $P?this.result="".concat(this.result," + ").concat(ame.getResult()):(typeof ame=="number"||typeof ame=="string")&&(this.result="".concat(this.result," + ").concat(unit(ame))),this.lowPriority=!0,this}},{key:"sub",value:function(ame){return ame instanceof $P?this.result="".concat(this.result," - ").concat(ame.getResult()):(typeof ame=="number"||typeof ame=="string")&&(this.result="".concat(this.result," - ").concat(unit(ame))),this.lowPriority=!0,this}},{key:"mul",value:function(ame){return this.lowPriority&&(this.result="(".concat(this.result,")")),ame instanceof $P?this.result="".concat(this.result," * ").concat(ame.getResult(!0)):(typeof ame=="number"||typeof ame=="string")&&(this.result="".concat(this.result," * ").concat(ame)),this.lowPriority=!1,this}},{key:"div",value:function(ame){return this.lowPriority&&(this.result="(".concat(this.result,")")),ame instanceof $P?this.result="".concat(this.result," / ").concat(ame.getResult(!0)):(typeof ame=="number"||typeof ame=="string")&&(this.result="".concat(this.result," / ").concat(ame)),this.lowPriority=!1,this}},{key:"getResult",value:function(ame){return this.lowPriority||ame?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(ame){var nme=this,rme=ame||{},ime=rme.unit,ome=!0;return typeof ime=="boolean"?ome=ime:Array.from(this.unitlessCssVar).some(function(lme){return nme.result.includes(lme)})&&(ome=!1),this.result=this.result.replace(regexp$1,ome?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),$P}(AbstractCalculator),NumCalculator=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme){var ame;return _classCallCheck$d(this,$P),ame=eme.call(this),_defineProperty$7(_assertThisInitialized(ame),"result",0),tme instanceof $P?ame.result=tme.result:typeof tme=="number"&&(ame.result=tme),ame}return _createClass$b($P,[{key:"add",value:function(ame){return ame instanceof $P?this.result+=ame.result:typeof ame=="number"&&(this.result+=ame),this}},{key:"sub",value:function(ame){return ame instanceof $P?this.result-=ame.result:typeof ame=="number"&&(this.result-=ame),this}},{key:"mul",value:function(ame){return ame instanceof $P?this.result*=ame.result:typeof ame=="number"&&(this.result*=ame),this}},{key:"div",value:function(ame){return ame instanceof $P?this.result/=ame.result:typeof ame=="number"&&(this.result/=ame),this}},{key:"equal",value:function(){return this.result}}]),$P}(AbstractCalculator),genCalc=function(eme,$P){var tme=eme==="css"?CSSCalculator:NumCalculator;return function(ame){return new tme(ame,$P)}},getCompVarPrefix=function(eme,$P){return"".concat([$P,eme.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function useEvent(x_){var eme=reactExports.useRef();eme.current=x_;var $P=reactExports.useCallback(function(){for(var tme,ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];return(tme=eme.current)===null||tme===void 0?void 0:tme.call.apply(tme,[eme].concat(nme))},[]);return $P}function useSafeState(x_){var eme=reactExports.useRef(!1),$P=reactExports.useState(x_),tme=_slicedToArray$2($P,2),ame=tme[0],nme=tme[1];reactExports.useEffect(function(){return eme.current=!1,function(){eme.current=!0}},[]);function rme(ime,ome){ome&&eme.current||nme(ime)}return[ame,rme]}function hasValue$1(x_){return x_!==void 0}function useMergedState(x_,eme){var $P=eme||{},tme=$P.defaultValue,ame=$P.value,nme=$P.onChange,rme=$P.postState,ime=useSafeState(function(){return hasValue$1(ame)?ame:hasValue$1(tme)?typeof tme=="function"?tme():tme:typeof x_=="function"?x_():x_}),ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1],cme=ame!==void 0?ame:lme,dme=rme?rme(cme):cme,ume=useEvent(nme),fme=useSafeState([cme]),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1];useLayoutUpdateEffect(function(){var vme=hme[0];lme!==vme&&ume(lme,vme)},[hme]),useLayoutUpdateEffect(function(){hasValue$1(ame)||sme(ame)},[ame]);var mme=useEvent(function(vme,gme){sme(vme,gme),bme([cme],gme)});return[dme,mme]}function getComponentToken(x_,eme,$P,tme){var ame=_objectSpread2$4({},eme[x_]);if(tme!=null&&tme.deprecatedTokens){var nme=tme.deprecatedTokens;nme.forEach(function(ime){var ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1];if(ame!=null&&ame[lme]||ame!=null&&ame[sme]){var cme;(cme=ame[sme])!==null&&cme!==void 0||(ame[sme]=ame==null?void 0:ame[lme])}})}var rme=_objectSpread2$4(_objectSpread2$4({},$P),ame);return Object.keys(rme).forEach(function(ime){rme[ime]===eme[ime]&&delete rme[ime]}),rme}var enableStatistic=typeof CSSINJS_STATISTIC<"u",recording=!0;function merge$5(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];if(!enableStatistic)return Object.assign.apply(Object,[{}].concat(eme));recording=!1;var tme={};return eme.forEach(function(ame){if(_typeof$4(ame)==="object"){var nme=Object.keys(ame);nme.forEach(function(rme){Object.defineProperty(tme,rme,{configurable:!0,enumerable:!0,get:function(){return ame[rme]}})})}}),recording=!0,tme}var statistic={};function noop$d(){}var statisticToken=function(eme){var $P,tme=eme,ame=noop$d;return enableStatistic&&typeof Proxy<"u"&&($P=new Set,tme=new Proxy(eme,{get:function(rme,ime){if(recording){var ome;(ome=$P)===null||ome===void 0||ome.add(ime)}return rme[ime]}}),ame=function(rme,ime){var ome;statistic[rme]={global:Array.from($P),component:_objectSpread2$4(_objectSpread2$4({},(ome=statistic[rme])===null||ome===void 0?void 0:ome.component),ime)}}),{token:tme,keys:$P,flush:ame}};function getDefaultComponentToken(x_,eme,$P){if(typeof $P=="function"){var tme;return $P(merge$5(eme,(tme=eme[x_])!==null&&tme!==void 0?tme:{}))}return $P??{}}function genMaxMin(x_){return x_==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var $P=arguments.length,tme=new Array($P),ame=0;ame<$P;ame++)tme[ame]=arguments[ame];return"max(".concat(tme.map(function(nme){return unit$1(nme)}).join(","),")")},min:function(){for(var $P=arguments.length,tme=new Array($P),ame=0;ame<$P;ame++)tme[ame]=arguments[ame];return"min(".concat(tme.map(function(nme){return unit$1(nme)}).join(","),")")}}}var BEAT_LIMIT=1e3*60*10,ArrayKeyMap=function(){function x_(){_classCallCheck$d(this,x_),_defineProperty$7(this,"map",new Map),_defineProperty$7(this,"objectIDMap",new WeakMap),_defineProperty$7(this,"nextID",0),_defineProperty$7(this,"lastAccessBeat",new Map),_defineProperty$7(this,"accessBeat",0)}return _createClass$b(x_,[{key:"set",value:function($P,tme){this.clear();var ame=this.getCompositeKey($P);this.map.set(ame,tme),this.lastAccessBeat.set(ame,Date.now())}},{key:"get",value:function($P){var tme=this.getCompositeKey($P),ame=this.map.get(tme);return this.lastAccessBeat.set(tme,Date.now()),this.accessBeat+=1,ame}},{key:"getCompositeKey",value:function($P){var tme=this,ame=$P.map(function(nme){return nme&&_typeof$4(nme)==="object"?"obj_".concat(tme.getObjectID(nme)):"".concat(_typeof$4(nme),"_").concat(nme)});return ame.join("|")}},{key:"getObjectID",value:function($P){if(this.objectIDMap.has($P))return this.objectIDMap.get($P);var tme=this.nextID;return this.objectIDMap.set($P,tme),this.nextID+=1,tme}},{key:"clear",value:function(){var $P=this;if(this.accessBeat>1e4){var tme=Date.now();this.lastAccessBeat.forEach(function(ame,nme){tme-ame>BEAT_LIMIT&&($P.map.delete(nme),$P.lastAccessBeat.delete(nme))}),this.accessBeat=0}}}]),x_}(),uniqueMap=new ArrayKeyMap;function useUniqueMemo(x_,eme){return React__default.useMemo(function(){var $P=uniqueMap.get(eme);if($P)return $P;var tme=x_();return uniqueMap.set(eme,tme),tme},eme)}var useDefaultCSP=function(){return{}};function genStyleUtils(x_){var eme=x_.useCSP,$P=eme===void 0?useDefaultCSP:eme,tme=x_.useToken,ame=x_.usePrefix,nme=x_.getResetStyles,rme=x_.getCommonStyle,ime=x_.getCompUnitless;function ome(dme,ume,fme,pme){var hme=Array.isArray(dme)?dme[0]:dme;function bme(Cme){return"".concat(String(hme)).concat(Cme.slice(0,1).toUpperCase()).concat(Cme.slice(1))}var mme=(pme==null?void 0:pme.unitless)||{},vme=typeof ime=="function"?ime(dme):{},gme=_objectSpread2$4(_objectSpread2$4({},vme),{},_defineProperty$7({},bme("zIndexPopup"),!0));Object.keys(mme).forEach(function(Cme){gme[bme(Cme)]=mme[Cme]});var yme=_objectSpread2$4(_objectSpread2$4({},pme),{},{unitless:gme,prefixToken:bme}),_me=sme(dme,ume,fme,yme),$me=lme(hme,fme,yme);return function(Cme){var Sme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cme,Eme=_me(Cme,Sme),xme=_slicedToArray$2(Eme,2),Tme=xme[1],Ome=$me(Sme),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1];return[Nme,Tme,Ime]}}function lme(dme,ume,fme){var pme=fme.unitless,hme=fme.injectStyle,bme=hme===void 0?!0:hme,mme=fme.prefixToken,vme=fme.ignore,gme=function($me){var Cme=$me.rootCls,Sme=$me.cssVar,Eme=Sme===void 0?{}:Sme,xme=tme(),Tme=xme.realToken;return useCSSVarRegister({path:[dme],prefix:Eme.prefix,key:Eme.key,unitless:pme,ignore:vme,token:Tme,scope:Cme},function(){var Ome=getDefaultComponentToken(dme,Tme,ume),Rme=getComponentToken(dme,Tme,Ome,{deprecatedTokens:fme==null?void 0:fme.deprecatedTokens});return Object.keys(Ome).forEach(function(Nme){Rme[mme(Nme)]=Rme[Nme],delete Rme[Nme]}),Rme}),null},yme=function($me){var Cme=tme(),Sme=Cme.cssVar;return[function(Eme){return bme&&Sme?React__default.createElement(React__default.Fragment,null,React__default.createElement(gme,{rootCls:$me,cssVar:Sme,component:dme}),Eme):Eme},Sme==null?void 0:Sme.key]};return yme}function sme(dme,ume,fme){var pme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},hme=Array.isArray(dme)?dme:[dme,dme],bme=_slicedToArray$2(hme,1),mme=bme[0],vme=hme.join("-"),gme=x_.layer||{name:"antd"};return function(yme){var _me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yme,$me=tme(),Cme=$me.theme,Sme=$me.realToken,Eme=$me.hashId,xme=$me.token,Tme=$me.cssVar,Ome=ame(),Rme=Ome.rootPrefixCls,Nme=Ome.iconPrefixCls,Ime=$P(),Pme=Tme?"css":"js",Mme=useUniqueMemo(function(){var Wme=new Set;return Tme&&Object.keys(pme.unitless||{}).forEach(function(Lme){Wme.add(token2CSSVar(Lme,Tme.prefix)),Wme.add(token2CSSVar(Lme,getCompVarPrefix(mme,Tme.prefix)))}),genCalc(Pme,Wme)},[Pme,mme,Tme==null?void 0:Tme.prefix]),kme=genMaxMin(Pme),Bme=kme.max,Dme=kme.min,jme={theme:Cme,token:xme,hashId:Eme,nonce:function(){return Ime.nonce},clientOnly:pme.clientOnly,layer:gme,order:pme.order||-999};typeof nme=="function"&&useStyleRegister(_objectSpread2$4(_objectSpread2$4({},jme),{},{clientOnly:!1,path:["Shared",Rme]}),function(){return nme(xme,{prefix:{rootPrefixCls:Rme,iconPrefixCls:Nme},csp:Ime})});var Vme=useStyleRegister(_objectSpread2$4(_objectSpread2$4({},jme),{},{path:[vme,yme,Nme]}),function(){if(pme.injectStyle===!1)return[];var Wme=statisticToken(xme),Lme=Wme.token,zme=Wme.flush,Ume=getDefaultComponentToken(mme,Sme,fme),Gme=".".concat(yme),Jme=getComponentToken(mme,Sme,Ume,{deprecatedTokens:pme.deprecatedTokens});Tme&&Ume&&_typeof$4(Ume)==="object"&&Object.keys(Ume).forEach(function(Kme){Ume[Kme]="var(".concat(token2CSSVar(Kme,getCompVarPrefix(mme,Tme.prefix)),")")});var Yme=merge$5(Lme,{componentCls:Gme,prefixCls:yme,iconCls:".".concat(Nme),antCls:".".concat(Rme),calc:Mme,max:Bme,min:Dme},Tme?Ume:Jme),Qme=ume(Yme,{hashId:Eme,prefixCls:yme,rootPrefixCls:Rme,iconPrefixCls:Nme});zme(mme,Jme);var Xme=typeof rme=="function"?rme(Yme,yme,_me,pme.resetFont):null;return[pme.resetStyle===!1?null:Xme,Qme]});return[Vme,Eme]}}function cme(dme,ume,fme){var pme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},hme=sme(dme,ume,fme,_objectSpread2$4({resetStyle:!1,order:-998},pme)),bme=function(vme){var gme=vme.prefixCls,yme=vme.rootCls,_me=yme===void 0?gme:yme;return hme(gme,_me),null};return bme}return{genStyleHooks:ome,genSubStyleComponent:cme,genComponentStyleHook:sme}}const PresetColors$1=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],version$3="5.22.3";function isStableColor(x_){return x_>=0&&x_<=255}function getAlphaColor$1(x_,eme){const{r:$P,g:tme,b:ame,a:nme}=new TinyColor(x_).toRgb();if(nme<1)return x_;const{r:rme,g:ime,b:ome}=new TinyColor(eme).toRgb();for(let lme=.01;lme<=1;lme+=.01){const sme=Math.round(($P-rme*(1-lme))/lme),cme=Math.round((tme-ime*(1-lme))/lme),dme=Math.round((ame-ome*(1-lme))/lme);if(isStableColor(sme)&&isStableColor(cme)&&isStableColor(dme))return new TinyColor({r:sme,g:cme,b:dme,a:Math.round(lme*100)/100}).toRgbString()}return new TinyColor({r:$P,g:tme,b:ame,a:1}).toRgbString()}var __rest$13=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function formatToken(x_){const{override:eme}=x_,$P=__rest$13(x_,["override"]),tme=Object.assign({},eme);Object.keys(seedToken).forEach(dme=>{delete tme[dme]});const ame=Object.assign(Object.assign({},$P),tme),nme=480,rme=576,ime=768,ome=992,lme=1200,sme=1600;if(ame.motion===!1){const dme="0s";ame.motionDurationFast=dme,ame.motionDurationMid=dme,ame.motionDurationSlow=dme}return Object.assign(Object.assign(Object.assign({},ame),{colorFillContent:ame.colorFillSecondary,colorFillContentHover:ame.colorFill,colorFillAlter:ame.colorFillQuaternary,colorBgContainerDisabled:ame.colorFillTertiary,colorBorderBg:ame.colorBgContainer,colorSplit:getAlphaColor$1(ame.colorBorderSecondary,ame.colorBgContainer),colorTextPlaceholder:ame.colorTextQuaternary,colorTextDisabled:ame.colorTextQuaternary,colorTextHeading:ame.colorText,colorTextLabel:ame.colorTextSecondary,colorTextDescription:ame.colorTextTertiary,colorTextLightSolid:ame.colorWhite,colorHighlight:ame.colorError,colorBgTextHover:ame.colorFillSecondary,colorBgTextActive:ame.colorFill,colorIcon:ame.colorTextTertiary,colorIconHover:ame.colorText,colorErrorOutline:getAlphaColor$1(ame.colorErrorBg,ame.colorBgContainer),colorWarningOutline:getAlphaColor$1(ame.colorWarningBg,ame.colorBgContainer),fontSizeIcon:ame.fontSizeSM,lineWidthFocus:ame.lineWidth*3,lineWidth:ame.lineWidth,controlOutlineWidth:ame.lineWidth*2,controlInteractiveSize:ame.controlHeight/2,controlItemBgHover:ame.colorFillTertiary,controlItemBgActive:ame.colorPrimaryBg,controlItemBgActiveHover:ame.colorPrimaryBgHover,controlItemBgActiveDisabled:ame.colorFill,controlTmpOutline:ame.colorFillQuaternary,controlOutline:getAlphaColor$1(ame.colorPrimaryBg,ame.colorBgContainer),lineType:ame.lineType,borderRadius:ame.borderRadius,borderRadiusXS:ame.borderRadiusXS,borderRadiusSM:ame.borderRadiusSM,borderRadiusLG:ame.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:ame.sizeXXS,paddingXS:ame.sizeXS,paddingSM:ame.sizeSM,padding:ame.size,paddingMD:ame.sizeMD,paddingLG:ame.sizeLG,paddingXL:ame.sizeXL,paddingContentHorizontalLG:ame.sizeLG,paddingContentVerticalLG:ame.sizeMS,paddingContentHorizontal:ame.sizeMS,paddingContentVertical:ame.sizeSM,paddingContentHorizontalSM:ame.size,paddingContentVerticalSM:ame.sizeXS,marginXXS:ame.sizeXXS,marginXS:ame.sizeXS,marginSM:ame.sizeSM,margin:ame.size,marginMD:ame.sizeMD,marginLG:ame.sizeLG,marginXL:ame.sizeXL,marginXXL:ame.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:nme,screenXSMin:nme,screenXSMax:rme-1,screenSM:rme,screenSMMin:rme,screenSMMax:ime-1,screenMD:ime,screenMDMin:ime,screenMDMax:ome-1,screenLG:ome,screenLGMin:ome,screenLGMax:lme-1,screenXL:lme,screenXLMin:lme,screenXLMax:sme-1,screenXXL:sme,screenXXLMin:sme,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new TinyColor("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)"}),tme)}var __rest$12=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const 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},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},preserve$1={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},getComputedToken=(x_,eme,$P)=>{const tme=$P.getDerivativeToken(x_),{override:ame}=eme,nme=__rest$12(eme,["override"]);let rme=Object.assign(Object.assign({},tme),{override:ame});return rme=formatToken(rme),nme&&Object.entries(nme).forEach(ime=>{let[ome,lme]=ime;const{theme:sme}=lme,cme=__rest$12(lme,["theme"]);let dme=cme;sme&&(dme=getComputedToken(Object.assign(Object.assign({},rme),cme),{override:cme},sme)),rme[ome]=dme}),rme};function useToken$1(){const{token:x_,hashed:eme,theme:$P,override:tme,cssVar:ame}=React__default.useContext(DesignTokenContext),nme=`${version$3}-${eme||""}`,rme=$P||defaultTheme$1,[ime,ome,lme]=useCacheToken(rme,[seedToken,x_],{salt:nme,override:tme,getComputedToken,formatToken,cssVar:ame&&{prefix:ame.prefix,key:ame.key,unitless,ignore,preserve:preserve$1}});return[rme,lme,eme?ome:"",ime,ame]}const textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},resetComponent=function(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:x_.colorText,fontSize:x_.fontSize,lineHeight:x_.lineHeight,listStyle:"none",fontFamily:eme?"inherit":x_.fontFamily}},resetIcon=()=>({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"}}),clearFix=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),genLinkStyle=x_=>({a:{color:x_.colorLink,textDecoration:x_.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${x_.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:x_.colorLinkHover},"&:active":{color:x_.colorLinkActive},"&:active, &:hover":{textDecoration:x_.linkHoverDecoration,outline:0},"&:focus":{textDecoration:x_.linkFocusDecoration,outline:0},"&[disabled]":{color:x_.colorTextDisabled,cursor:"not-allowed"}}}),genCommonStyle=(x_,eme,$P,tme)=>{const ame=`[class^="${eme}"], [class*=" ${eme}"]`,nme=$P?`.${$P}`:ame,rme={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let ime={};return tme!==!1&&(ime={fontFamily:x_.fontFamily,fontSize:x_.fontSize}),{[nme]:Object.assign(Object.assign(Object.assign({},ime),rme),{[ame]:rme})}},genFocusOutline=x_=>({outline:`${unit$1(x_.lineWidthFocus)} solid ${x_.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),genFocusStyle=x_=>({"&:focus-visible":Object.assign({},genFocusOutline(x_))}),useResetIconStyle=(x_,eme)=>{const[$P,tme]=useToken$1();return useStyleRegister({theme:$P,token:tme,hashId:"",path:["ant-design-icons",x_],nonce:()=>eme==null?void 0:eme.nonce,layer:{name:"antd"}},()=>[{[`.${x_}`]:Object.assign(Object.assign({},resetIcon()),{[`.${x_} .${x_}-icon`]:{display:"block"}})}])},{genStyleHooks,genComponentStyleHook,genSubStyleComponent}=genStyleUtils({usePrefix:()=>{const{getPrefixCls:x_,iconPrefixCls:eme}=reactExports.useContext(ConfigContext);return{rootPrefixCls:x_(),iconPrefixCls:eme}},useToken:()=>{const[x_,eme,$P,tme,ame]=useToken$1();return{theme:x_,realToken:eme,hashId:$P,token:tme,cssVar:ame}},useCSP:()=>{const{csp:x_,iconPrefixCls:eme}=reactExports.useContext(ConfigContext);return useResetIconStyle(eme,x_),x_??{}},getResetStyles:x_=>[{"&":genLinkStyle(x_)}],getCommonStyle:genCommonStyle,getCompUnitless:()=>unitless});function genPresetColor$1(x_,eme){return PresetColors$1.reduce(($P,tme)=>{const ame=x_[`${tme}1`],nme=x_[`${tme}3`],rme=x_[`${tme}6`],ime=x_[`${tme}7`];return Object.assign(Object.assign({},$P),eme(tme,{lightColor:ame,lightBorderColor:nme,darkColor:rme,textColor:ime}))},{})}const fullClone$1=Object.assign({},React$1),{useId:useId$3}=fullClone$1,useEmptyId=()=>"",useThemeKey=typeof useId$3>"u"?useEmptyId:useId$3;function useTheme$1(x_,eme,$P){var tme;devUseWarning();const ame=x_||{},nme=ame.inherit===!1||!eme?Object.assign(Object.assign({},defaultConfig$2),{hashed:(tme=eme==null?void 0:eme.hashed)!==null&&tme!==void 0?tme:defaultConfig$2.hashed,cssVar:eme==null?void 0:eme.cssVar}):eme,rme=useThemeKey();return useMemo(()=>{var ime,ome;if(!x_)return eme;const lme=Object.assign({},nme.components);Object.keys(x_.components||{}).forEach(dme=>{lme[dme]=Object.assign(Object.assign({},lme[dme]),x_.components[dme])});const sme=`css-var-${rme.replace(/:/g,"")}`,cme=((ime=ame.cssVar)!==null&&ime!==void 0?ime:nme.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:$P==null?void 0:$P.prefixCls},typeof nme.cssVar=="object"?nme.cssVar:{}),typeof ame.cssVar=="object"?ame.cssVar:{}),{key:typeof ame.cssVar=="object"&&((ome=ame.cssVar)===null||ome===void 0?void 0:ome.key)||sme});return Object.assign(Object.assign(Object.assign({},nme),ame),{token:Object.assign(Object.assign({},nme.token),ame.token),components:lme,cssVar:cme})},[ame,nme],(ime,ome)=>ime.some((lme,sme)=>{const cme=ome[sme];return!isEqual$2(lme,cme,!0)}))}var _excluded$S=["children"],Context$3=reactExports.createContext({});function MotionProvider(x_){var eme=x_.children,$P=_objectWithoutProperties$6(x_,_excluded$S);return reactExports.createElement(Context$3.Provider,{value:$P},eme)}var DomWrapper=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(){return _classCallCheck$d(this,$P),eme.apply(this,arguments)}return _createClass$b($P,[{key:"render",value:function(){return this.props.children}}]),$P}(reactExports.Component);function useSyncState$1(x_){var eme=reactExports.useReducer(function(ime){return ime+1},0),$P=_slicedToArray$2(eme,2),tme=$P[1],ame=reactExports.useRef(x_),nme=useEvent(function(){return ame.current}),rme=useEvent(function(ime){ame.current=typeof ime=="function"?ime(ame.current):ime,tme()});return[nme,rme]}var STATUS_NONE="none",STATUS_APPEAR="appear",STATUS_ENTER="enter",STATUS_LEAVE="leave",STEP_NONE="none",STEP_PREPARE="prepare",STEP_START="start",STEP_ACTIVE="active",STEP_ACTIVATED="end",STEP_PREPARED="prepared";function makePrefixMap(x_,eme){var $P={};return $P[x_.toLowerCase()]=eme.toLowerCase(),$P["Webkit".concat(x_)]="webkit".concat(eme),$P["Moz".concat(x_)]="moz".concat(eme),$P["ms".concat(x_)]="MS".concat(eme),$P["O".concat(x_)]="o".concat(eme.toLowerCase()),$P}function getVendorPrefixes(x_,eme){var $P={animationend:makePrefixMap("Animation","AnimationEnd"),transitionend:makePrefixMap("Transition","TransitionEnd")};return x_&&("AnimationEvent"in eme||delete $P.animationend.animation,"TransitionEvent"in eme||delete $P.transitionend.transition),$P}var vendorPrefixes=getVendorPrefixes(canUseDom(),typeof window<"u"?window:{}),style$2={};if(canUseDom()){var _document$createEleme=document.createElement("div");style$2=_document$createEleme.style}var prefixedEventNames={};function getVendorPrefixedEventName(x_){if(prefixedEventNames[x_])return prefixedEventNames[x_];var eme=vendorPrefixes[x_];if(eme)for(var $P=Object.keys(eme),tme=$P.length,ame=0;ame<tme;ame+=1){var nme=$P[ame];if(Object.prototype.hasOwnProperty.call(eme,nme)&&nme in style$2)return prefixedEventNames[x_]=eme[nme],prefixedEventNames[x_]}return""}var internalAnimationEndName=getVendorPrefixedEventName("animationend"),internalTransitionEndName=getVendorPrefixedEventName("transitionend"),supportTransition=!!(internalAnimationEndName&&internalTransitionEndName),animationEndName=internalAnimationEndName||"animationend",transitionEndName=internalTransitionEndName||"transitionend";function getTransitionName$1(x_,eme){if(!x_)return null;if(_typeof$4(x_)==="object"){var $P=eme.replace(/-\w/g,function(tme){return tme[1].toUpperCase()});return x_[$P]}return"".concat(x_,"-").concat(eme)}const useDomMotionEvents=function(x_){var eme=reactExports.useRef();function $P(ame){ame&&(ame.removeEventListener(transitionEndName,x_),ame.removeEventListener(animationEndName,x_))}function tme(ame){eme.current&&eme.current!==ame&&$P(eme.current),ame&&ame!==eme.current&&(ame.addEventListener(transitionEndName,x_),ame.addEventListener(animationEndName,x_),eme.current=ame)}return reactExports.useEffect(function(){return function(){$P(eme.current)}},[]),[tme,$P]};var useIsomorphicLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect;const useNextFrame=function(){var x_=reactExports.useRef(null);function eme(){wrapperRaf.cancel(x_.current)}function $P(tme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;eme();var nme=wrapperRaf(function(){ame<=1?tme({isCanceled:function(){return nme!==x_.current}}):$P(tme,ame-1)});x_.current=nme}return reactExports.useEffect(function(){return function(){eme()}},[]),[$P,eme]};var FULL_STEP_QUEUE=[STEP_PREPARE,STEP_START,STEP_ACTIVE,STEP_ACTIVATED],SIMPLE_STEP_QUEUE=[STEP_PREPARE,STEP_PREPARED],SkipStep=!1,DoStep=!0;function isActive(x_){return x_===STEP_ACTIVE||x_===STEP_ACTIVATED}const useStepQueue=function(x_,eme,$P){var tme=useSafeState(STEP_NONE),ame=_slicedToArray$2(tme,2),nme=ame[0],rme=ame[1],ime=useNextFrame(),ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1];function cme(){rme(STEP_PREPARE,!0)}var dme=eme?SIMPLE_STEP_QUEUE:FULL_STEP_QUEUE;return useIsomorphicLayoutEffect(function(){if(nme!==STEP_NONE&&nme!==STEP_ACTIVATED){var ume=dme.indexOf(nme),fme=dme[ume+1],pme=$P(nme);pme===SkipStep?rme(fme,!0):fme&&lme(function(hme){function bme(){hme.isCanceled()||rme(fme,!0)}pme===!0?bme():Promise.resolve(pme).then(bme)})}},[x_,nme]),reactExports.useEffect(function(){return function(){sme()}},[]),[cme,nme]};function useStatus$1(x_,eme,$P,tme){var ame=tme.motionEnter,nme=ame===void 0?!0:ame,rme=tme.motionAppear,ime=rme===void 0?!0:rme,ome=tme.motionLeave,lme=ome===void 0?!0:ome,sme=tme.motionDeadline,cme=tme.motionLeaveImmediately,dme=tme.onAppearPrepare,ume=tme.onEnterPrepare,fme=tme.onLeavePrepare,pme=tme.onAppearStart,hme=tme.onEnterStart,bme=tme.onLeaveStart,mme=tme.onAppearActive,vme=tme.onEnterActive,gme=tme.onLeaveActive,yme=tme.onAppearEnd,_me=tme.onEnterEnd,$me=tme.onLeaveEnd,Cme=tme.onVisibleChanged,Sme=useSafeState(),Eme=_slicedToArray$2(Sme,2),xme=Eme[0],Tme=Eme[1],Ome=useSyncState$1(STATUS_NONE),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1],Pme=useSafeState(null),Mme=_slicedToArray$2(Pme,2),kme=Mme[0],Bme=Mme[1],Dme=Nme(),jme=reactExports.useRef(!1),Vme=reactExports.useRef(null);function Wme(){return $P()}var Lme=reactExports.useRef(!1);function zme(){Ime(STATUS_NONE),Bme(null,!0)}var Ume=useEvent(function(hbe){var ube=Nme();if(ube!==STATUS_NONE){var mbe=Wme();if(!(hbe&&!hbe.deadline&&hbe.target!==mbe)){var pbe=Lme.current,_be;ube===STATUS_APPEAR&&pbe?_be=yme==null?void 0:yme(mbe,hbe):ube===STATUS_ENTER&&pbe?_be=_me==null?void 0:_me(mbe,hbe):ube===STATUS_LEAVE&&pbe&&(_be=$me==null?void 0:$me(mbe,hbe)),pbe&&_be!==!1&&zme()}}}),Gme=useDomMotionEvents(Ume),Jme=_slicedToArray$2(Gme,1),Yme=Jme[0],Qme=function(ube){switch(ube){case STATUS_APPEAR:return _defineProperty$7(_defineProperty$7(_defineProperty$7({},STEP_PREPARE,dme),STEP_START,pme),STEP_ACTIVE,mme);case STATUS_ENTER:return _defineProperty$7(_defineProperty$7(_defineProperty$7({},STEP_PREPARE,ume),STEP_START,hme),STEP_ACTIVE,vme);case STATUS_LEAVE:return _defineProperty$7(_defineProperty$7(_defineProperty$7({},STEP_PREPARE,fme),STEP_START,bme),STEP_ACTIVE,gme);default:return{}}},Xme=reactExports.useMemo(function(){return Qme(Dme)},[Dme]),Kme=useStepQueue(Dme,!x_,function(hbe){if(hbe===STEP_PREPARE){var ube=Xme[STEP_PREPARE];return ube?ube(Wme()):SkipStep}if(lbe in Xme){var mbe;Bme(((mbe=Xme[lbe])===null||mbe===void 0?void 0:mbe.call(Xme,Wme(),null))||null)}return lbe===STEP_ACTIVE&&Dme!==STATUS_NONE&&(Yme(Wme()),sme>0&&(clearTimeout(Vme.current),Vme.current=setTimeout(function(){Ume({deadline:!0})},sme))),lbe===STEP_PREPARED&&zme(),DoStep}),Zme=_slicedToArray$2(Kme,2),nbe=Zme[0],lbe=Zme[1],ibe=isActive(lbe);Lme.current=ibe,useIsomorphicLayoutEffect(function(){Tme(eme);var hbe=jme.current;jme.current=!0;var ube;!hbe&&eme&&ime&&(ube=STATUS_APPEAR),hbe&&eme&&nme&&(ube=STATUS_ENTER),(hbe&&!eme&&lme||!hbe&&cme&&!eme&&lme)&&(ube=STATUS_LEAVE);var mbe=Qme(ube);ube&&(x_||mbe[STEP_PREPARE])?(Ime(ube),nbe()):Ime(STATUS_NONE)},[eme]),reactExports.useEffect(function(){(Dme===STATUS_APPEAR&&!ime||Dme===STATUS_ENTER&&!nme||Dme===STATUS_LEAVE&&!lme)&&Ime(STATUS_NONE)},[ime,nme,lme]),reactExports.useEffect(function(){return function(){jme.current=!1,clearTimeout(Vme.current)}},[]);var abe=reactExports.useRef(!1);reactExports.useEffect(function(){xme&&(abe.current=!0),xme!==void 0&&Dme===STATUS_NONE&&((abe.current||xme)&&(Cme==null||Cme(xme)),abe.current=!0)},[xme,Dme]);var obe=kme;return Xme[STEP_PREPARE]&&lbe===STEP_START&&(obe=_objectSpread2$4({transition:"none"},obe)),[Dme,lbe,obe,xme??eme]}function genCSSMotion(x_){var eme=x_;_typeof$4(x_)==="object"&&(eme=x_.transitionSupport);function $P(ame,nme){return!!(ame.motionName&&eme&&nme!==!1)}var tme=reactExports.forwardRef(function(ame,nme){var rme=ame.visible,ime=rme===void 0?!0:rme,ome=ame.removeOnLeave,lme=ome===void 0?!0:ome,sme=ame.forceRender,cme=ame.children,dme=ame.motionName,ume=ame.leavedClassName,fme=ame.eventProps,pme=reactExports.useContext(Context$3),hme=pme.motion,bme=$P(ame,hme),mme=reactExports.useRef(),vme=reactExports.useRef();function gme(){try{return mme.current instanceof HTMLElement?mme.current:findDOMNode$1(vme.current)}catch{return null}}var yme=useStatus$1(bme,ime,gme,ame),_me=_slicedToArray$2(yme,4),$me=_me[0],Cme=_me[1],Sme=_me[2],Eme=_me[3],xme=reactExports.useRef(Eme);Eme&&(xme.current=!0);var Tme=reactExports.useCallback(function(kme){mme.current=kme,fillRef(nme,kme)},[nme]),Ome,Rme=_objectSpread2$4(_objectSpread2$4({},fme),{},{visible:ime});if(!cme)Ome=null;else if($me===STATUS_NONE)Eme?Ome=cme(_objectSpread2$4({},Rme),Tme):!lme&&xme.current&&ume?Ome=cme(_objectSpread2$4(_objectSpread2$4({},Rme),{},{className:ume}),Tme):sme||!lme&&!ume?Ome=cme(_objectSpread2$4(_objectSpread2$4({},Rme),{},{style:{display:"none"}}),Tme):Ome=null;else{var Nme;Cme===STEP_PREPARE?Nme="prepare":isActive(Cme)?Nme="active":Cme===STEP_START&&(Nme="start");var Ime=getTransitionName$1(dme,"".concat($me,"-").concat(Nme));Ome=cme(_objectSpread2$4(_objectSpread2$4({},Rme),{},{className:classNames(getTransitionName$1(dme,$me),_defineProperty$7(_defineProperty$7({},Ime,Ime&&Nme),dme,typeof dme=="string")),style:Sme}),Tme)}if(reactExports.isValidElement(Ome)&&supportRef(Ome)){var Pme=Ome,Mme=Pme.ref;Mme||(Ome=reactExports.cloneElement(Ome,{ref:Tme}))}return reactExports.createElement(DomWrapper,{ref:vme},Ome)});return tme.displayName="CSSMotion",tme}const CSSMotion=genCSSMotion(supportTransition);var STATUS_ADD="add",STATUS_KEEP="keep",STATUS_REMOVE="remove",STATUS_REMOVED="removed";function wrapKeyToObject(x_){var eme;return x_&&_typeof$4(x_)==="object"&&"key"in x_?eme=x_:eme={key:x_},_objectSpread2$4(_objectSpread2$4({},eme),{},{key:String(eme.key)})}function parseKeys$1(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return x_.map(wrapKeyToObject)}function diffKeys(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$P=[],tme=0,ame=eme.length,nme=parseKeys$1(x_),rme=parseKeys$1(eme);nme.forEach(function(lme){for(var sme=!1,cme=tme;cme<ame;cme+=1){var dme=rme[cme];if(dme.key===lme.key){tme<cme&&($P=$P.concat(rme.slice(tme,cme).map(function(ume){return _objectSpread2$4(_objectSpread2$4({},ume),{},{status:STATUS_ADD})})),tme=cme),$P.push(_objectSpread2$4(_objectSpread2$4({},dme),{},{status:STATUS_KEEP})),tme+=1,sme=!0;break}}sme||$P.push(_objectSpread2$4(_objectSpread2$4({},lme),{},{status:STATUS_REMOVE}))}),tme<ame&&($P=$P.concat(rme.slice(tme).map(function(lme){return _objectSpread2$4(_objectSpread2$4({},lme),{},{status:STATUS_ADD})})));var ime={};$P.forEach(function(lme){var sme=lme.key;ime[sme]=(ime[sme]||0)+1});var ome=Object.keys(ime).filter(function(lme){return ime[lme]>1});return ome.forEach(function(lme){$P=$P.filter(function(sme){var cme=sme.key,dme=sme.status;return cme!==lme||dme!==STATUS_REMOVE}),$P.forEach(function(sme){sme.key===lme&&(sme.status=STATUS_KEEP)})}),$P}var _excluded$R=["component","children","onVisibleChanged","onAllRemoved"],_excluded2$b=["status"],MOTION_PROP_NAMES=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function genCSSMotionList(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CSSMotion,$P=function(tme){_inherits$c(nme,tme);var ame=_createSuper(nme);function nme(){var rme;_classCallCheck$d(this,nme);for(var ime=arguments.length,ome=new Array(ime),lme=0;lme<ime;lme++)ome[lme]=arguments[lme];return rme=ame.call.apply(ame,[this].concat(ome)),_defineProperty$7(_assertThisInitialized(rme),"state",{keyEntities:[]}),_defineProperty$7(_assertThisInitialized(rme),"removeKey",function(sme){rme.setState(function(cme){var dme=cme.keyEntities.map(function(ume){return ume.key!==sme?ume:_objectSpread2$4(_objectSpread2$4({},ume),{},{status:STATUS_REMOVED})});return{keyEntities:dme}},function(){var cme=rme.state.keyEntities,dme=cme.filter(function(ume){var fme=ume.status;return fme!==STATUS_REMOVED}).length;dme===0&&rme.props.onAllRemoved&&rme.props.onAllRemoved()})}),rme}return _createClass$b(nme,[{key:"render",value:function(){var ime=this,ome=this.state.keyEntities,lme=this.props,sme=lme.component,cme=lme.children,dme=lme.onVisibleChanged;lme.onAllRemoved;var ume=_objectWithoutProperties$6(lme,_excluded$R),fme=sme||reactExports.Fragment,pme={};return MOTION_PROP_NAMES.forEach(function(hme){pme[hme]=ume[hme],delete ume[hme]}),delete ume.keys,reactExports.createElement(fme,ume,ome.map(function(hme,bme){var mme=hme.status,vme=_objectWithoutProperties$6(hme,_excluded2$b),gme=mme===STATUS_ADD||mme===STATUS_KEEP;return reactExports.createElement(eme,_extends$4C({},pme,{key:vme.key,visible:gme,eventProps:vme,onVisibleChanged:function(_me){dme==null||dme(_me,{key:vme.key}),_me||ime.removeKey(vme.key)}}),function(yme,_me){return cme(_objectSpread2$4(_objectSpread2$4({},yme),{},{index:bme}),_me)})}))}}],[{key:"getDerivedStateFromProps",value:function(ime,ome){var lme=ime.keys,sme=ome.keyEntities,cme=parseKeys$1(lme),dme=diffKeys(sme,cme);return{keyEntities:dme.filter(function(ume){var fme=sme.find(function(pme){var hme=pme.key;return ume.key===hme});return!(fme&&fme.status===STATUS_REMOVED&&ume.status===STATUS_REMOVE)})}}}]),nme}(reactExports.Component);return _defineProperty$7($P,"defaultProps",{component:"div"}),$P}const CSSMotionList=genCSSMotionList(supportTransition);function MotionWrapper(x_){const{children:eme}=x_,[,$P]=useToken$1(),{motion:tme}=$P,ame=reactExports.useRef(!1);return ame.current=ame.current||tme===!1,ame.current?reactExports.createElement(MotionProvider,{motion:tme},eme):eme}const PropWarning=()=>null;var __rest$11=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const PASSED_PROPS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let globalPrefixCls,globalIconPrefixCls,globalTheme,globalHolderRender;function getGlobalPrefixCls(){return globalPrefixCls||defaultPrefixCls}function getGlobalIconPrefixCls(){return globalIconPrefixCls||defaultIconPrefixCls}function isLegacyTheme(x_){return Object.keys(x_).some(eme=>eme.endsWith("Color"))}const setGlobalConfig=x_=>{const{prefixCls:eme,iconPrefixCls:$P,theme:tme,holderRender:ame}=x_;eme!==void 0&&(globalPrefixCls=eme),$P!==void 0&&(globalIconPrefixCls=$P),"holderRender"in x_&&(globalHolderRender=ame),tme&&(isLegacyTheme(tme)?registerTheme(getGlobalPrefixCls(),tme):globalTheme=tme)},globalConfig=()=>({getPrefixCls:(x_,eme)=>eme||(x_?`${getGlobalPrefixCls()}-${x_}`:getGlobalPrefixCls()),getIconPrefixCls:getGlobalIconPrefixCls,getRootPrefixCls:()=>globalPrefixCls||getGlobalPrefixCls(),getTheme:()=>globalTheme,holderRender:globalHolderRender}),ProviderChildren=x_=>{const{children:eme,csp:$P,autoInsertSpaceInButton:tme,alert:ame,anchor:nme,form:rme,locale:ime,componentSize:ome,direction:lme,space:sme,splitter:cme,virtual:dme,dropdownMatchSelectWidth:ume,popupMatchSelectWidth:fme,popupOverflow:pme,legacyLocale:hme,parentContext:bme,iconPrefixCls:mme,theme:vme,componentDisabled:gme,segmented:yme,statistic:_me,spin:$me,calendar:Cme,carousel:Sme,cascader:Eme,collapse:xme,typography:Tme,checkbox:Ome,descriptions:Rme,divider:Nme,drawer:Ime,skeleton:Pme,steps:Mme,image:kme,layout:Bme,list:Dme,mentions:jme,modal:Vme,progress:Wme,result:Lme,slider:zme,breadcrumb:Ume,menu:Gme,pagination:Jme,input:Yme,textArea:Qme,empty:Xme,badge:Kme,radio:Zme,rate:nbe,switch:lbe,transfer:ibe,avatar:abe,message:obe,tag:hbe,table:ube,card:mbe,tabs:pbe,timeline:_be,timePicker:Sbe,upload:vbe,notification:kbe,tree:Rbe,colorPicker:Pbe,datePicker:Mbe,rangePicker:Kbe,flex:Qbe,wave:Gbe,dropdown:Hbe,warning:d0e,tour:p0e,floatButtonGroup:S0e,variant:P0e,inputNumber:e0e,treeSelect:_0e}=x_,m0e=reactExports.useCallback((Wbe,a0e)=>{const{prefixCls:g0e}=x_;if(a0e)return a0e;const b0e=g0e||bme.getPrefixCls("");return Wbe?`${b0e}-${Wbe}`:b0e},[bme.getPrefixCls,x_.prefixCls]),Ybe=mme||bme.iconPrefixCls||defaultIconPrefixCls,Jbe=$P||bme.csp;useResetIconStyle(Ybe,Jbe);const c0e=useTheme$1(vme,bme.theme,{prefixCls:m0e("")}),zbe={csp:Jbe,autoInsertSpaceInButton:tme,alert:ame,anchor:nme,locale:ime||hme,direction:lme,space:sme,splitter:cme,virtual:dme,popupMatchSelectWidth:fme??ume,popupOverflow:pme,getPrefixCls:m0e,iconPrefixCls:Ybe,theme:c0e,segmented:yme,statistic:_me,spin:$me,calendar:Cme,carousel:Sme,cascader:Eme,collapse:xme,typography:Tme,checkbox:Ome,descriptions:Rme,divider:Nme,drawer:Ime,skeleton:Pme,steps:Mme,image:kme,input:Yme,textArea:Qme,layout:Bme,list:Dme,mentions:jme,modal:Vme,progress:Wme,result:Lme,slider:zme,breadcrumb:Ume,menu:Gme,pagination:Jme,empty:Xme,badge:Kme,radio:Zme,rate:nbe,switch:lbe,transfer:ibe,avatar:abe,message:obe,tag:hbe,table:ube,card:mbe,tabs:pbe,timeline:_be,timePicker:Sbe,upload:vbe,notification:kbe,tree:Rbe,colorPicker:Pbe,datePicker:Mbe,rangePicker:Kbe,flex:Qbe,wave:Gbe,dropdown:Hbe,warning:d0e,tour:p0e,floatButtonGroup:S0e,variant:P0e,inputNumber:e0e,treeSelect:_0e},R0e=Object.assign({},bme);Object.keys(zbe).forEach(Wbe=>{zbe[Wbe]!==void 0&&(R0e[Wbe]=zbe[Wbe])}),PASSED_PROPS.forEach(Wbe=>{const a0e=x_[Wbe];a0e&&(R0e[Wbe]=a0e)}),typeof tme<"u"&&(R0e.button=Object.assign({autoInsertSpace:tme},R0e.button));const $0e=useMemo(()=>R0e,R0e,(Wbe,a0e)=>{const g0e=Object.keys(Wbe),b0e=Object.keys(a0e);return g0e.length!==b0e.length||g0e.some(y0e=>Wbe[y0e]!==a0e[y0e])}),u0e=reactExports.useMemo(()=>({prefixCls:Ybe,csp:Jbe}),[Ybe,Jbe]);let t0e=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(PropWarning,{dropdownMatchSelectWidth:ume}),eme);const v0e=reactExports.useMemo(()=>{var Wbe,a0e,g0e,b0e;return merge$6(((Wbe=localeValues$2.Form)===null||Wbe===void 0?void 0:Wbe.defaultValidateMessages)||{},((g0e=(a0e=$0e.locale)===null||a0e===void 0?void 0:a0e.Form)===null||g0e===void 0?void 0:g0e.defaultValidateMessages)||{},((b0e=$0e.form)===null||b0e===void 0?void 0:b0e.validateMessages)||{},(rme==null?void 0:rme.validateMessages)||{})},[$0e,rme==null?void 0:rme.validateMessages]);Object.keys(v0e).length>0&&(t0e=reactExports.createElement(ValidateMessagesContext.Provider,{value:v0e},t0e)),ime&&(t0e=reactExports.createElement(LocaleProvider,{locale:ime,_ANT_MARK__:ANT_MARK},t0e)),(Ybe||Jbe)&&(t0e=reactExports.createElement(IconContext.Provider,{value:u0e},t0e)),ome&&(t0e=reactExports.createElement(SizeContextProvider,{size:ome},t0e)),t0e=reactExports.createElement(MotionWrapper,null,t0e);const L0e=reactExports.useMemo(()=>{const Wbe=c0e||{},{algorithm:a0e,token:g0e,components:b0e,cssVar:y0e}=Wbe,A0e=__rest$11(Wbe,["algorithm","token","components","cssVar"]),V0e=a0e&&(!Array.isArray(a0e)||a0e.length>0)?createTheme(a0e):defaultTheme$1,w0e={};Object.entries(b0e||{}).forEach($be=>{let[Ibe,n0e]=$be;const f0e=Object.assign({},n0e);"algorithm"in f0e&&(f0e.algorithm===!0?f0e.theme=V0e:(Array.isArray(f0e.algorithm)||typeof f0e.algorithm=="function")&&(f0e.theme=createTheme(f0e.algorithm)),delete f0e.algorithm),w0e[Ibe]=f0e});const T0e=Object.assign(Object.assign({},seedToken),g0e);return Object.assign(Object.assign({},A0e),{theme:V0e,token:T0e,components:w0e,override:Object.assign({override:T0e},w0e),cssVar:y0e})},[c0e]);return vme&&(t0e=reactExports.createElement(DesignTokenContext.Provider,{value:L0e},t0e)),$0e.warning&&(t0e=reactExports.createElement(WarningContext.Provider,{value:$0e.warning},t0e)),gme!==void 0&&(t0e=reactExports.createElement(DisabledContextProvider,{disabled:gme},t0e)),reactExports.createElement(ConfigContext.Provider,{value:$0e},t0e)},ConfigProvider=x_=>{const eme=reactExports.useContext(ConfigContext),$P=reactExports.useContext(LocaleContext$1);return reactExports.createElement(ProviderChildren,Object.assign({parentContext:eme,legacyLocale:$P},x_))};ConfigProvider.ConfigContext=ConfigContext;ConfigProvider.SizeContext=SizeContext;ConfigProvider.config=setGlobalConfig;ConfigProvider.useConfig=useConfig;Object.defineProperty(ConfigProvider,"SizeContext",{get:()=>SizeContext});var CheckCircleFilled$1={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 getRoot$1(x_){var eme;return x_==null||(eme=x_.getRootNode)===null||eme===void 0?void 0:eme.call(x_)}function inShadow(x_){return getRoot$1(x_)instanceof ShadowRoot}function getShadowRoot(x_){return inShadow(x_)?getRoot$1(x_):null}function camelCase$2(x_){return x_.replace(/-(.)/g,function(eme,$P){return $P.toUpperCase()})}function warning$2(x_,eme){warningOnce(x_,"[@ant-design/icons] ".concat(eme))}function isIconDefinition(x_){return _typeof$4(x_)==="object"&&typeof x_.name=="string"&&typeof x_.theme=="string"&&(_typeof$4(x_.icon)==="object"||typeof x_.icon=="function")}function normalizeAttrs(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(x_).reduce(function(eme,$P){var tme=x_[$P];switch($P){case"class":eme.className=tme,delete eme.class;break;default:delete eme[$P],eme[camelCase$2($P)]=tme}return eme},{})}function generate(x_,eme,$P){return $P?React__default.createElement(x_.tag,_objectSpread2$4(_objectSpread2$4({key:eme},normalizeAttrs(x_.attrs)),$P),(x_.children||[]).map(function(tme,ame){return generate(tme,"".concat(eme,"-").concat(x_.tag,"-").concat(ame))})):React__default.createElement(x_.tag,_objectSpread2$4({key:eme},normalizeAttrs(x_.attrs)),(x_.children||[]).map(function(tme,ame){return generate(tme,"".concat(eme,"-").concat(x_.tag,"-").concat(ame))}))}function getSecondaryColor(x_){return generate$1(x_)[0]}function normalizeTwoToneColors(x_){return x_?Array.isArray(x_)?x_:[x_]:[]}var 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);
  }
}
`,useInsertStyles=function(eme){var $P=reactExports.useContext(IconContext),tme=$P.csp,ame=$P.prefixCls,nme=iconStyles;ame&&(nme=nme.replace(/anticon/g,ame)),reactExports.useEffect(function(){var rme=eme.current,ime=getShadowRoot(rme);updateCSS(nme,"@ant-design-icons",{prepend:!0,csp:tme,attachTo:ime})},[])},_excluded$Q=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(x_){var eme=x_.primaryColor,$P=x_.secondaryColor;twoToneColorPalette.primaryColor=eme,twoToneColorPalette.secondaryColor=$P||getSecondaryColor(eme),twoToneColorPalette.calculated=!!$P}function getTwoToneColors(){return _objectSpread2$4({},twoToneColorPalette)}var IconBase=function(eme){var $P=eme.icon,tme=eme.className,ame=eme.onClick,nme=eme.style,rme=eme.primaryColor,ime=eme.secondaryColor,ome=_objectWithoutProperties$6(eme,_excluded$Q),lme=reactExports.useRef(),sme=twoToneColorPalette;if(rme&&(sme={primaryColor:rme,secondaryColor:ime||getSecondaryColor(rme)}),useInsertStyles(lme),warning$2(isIconDefinition($P),"icon should be icon definiton, but got ".concat($P)),!isIconDefinition($P))return null;var cme=$P;return cme&&typeof cme.icon=="function"&&(cme=_objectSpread2$4(_objectSpread2$4({},cme),{},{icon:cme.icon(sme.primaryColor,sme.secondaryColor)})),generate(cme.icon,"svg-".concat(cme.name),_objectSpread2$4(_objectSpread2$4({className:tme,onClick:ame,style:nme,"data-icon":cme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ome),{},{ref:lme}))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(x_){var eme=normalizeTwoToneColors(x_),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1];return IconBase.setTwoToneColors({primaryColor:tme,secondaryColor:ame})}function getTwoToneColor(){var x_=IconBase.getTwoToneColors();return x_.calculated?[x_.primaryColor,x_.secondaryColor]:x_.primaryColor}var _excluded$P=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor(blue$1.primary);var Icon$3=reactExports.forwardRef(function(x_,eme){var $P=x_.className,tme=x_.icon,ame=x_.spin,nme=x_.rotate,rme=x_.tabIndex,ime=x_.onClick,ome=x_.twoToneColor,lme=_objectWithoutProperties$6(x_,_excluded$P),sme=reactExports.useContext(IconContext),cme=sme.prefixCls,dme=cme===void 0?"anticon":cme,ume=sme.rootClassName,fme=classNames(ume,dme,_defineProperty$7(_defineProperty$7({},"".concat(dme,"-").concat(tme.name),!!tme.name),"".concat(dme,"-spin"),!!ame||tme.name==="loading"),$P),pme=rme;pme===void 0&&ime&&(pme=-1);var hme=nme?{msTransform:"rotate(".concat(nme,"deg)"),transform:"rotate(".concat(nme,"deg)")}:void 0,bme=normalizeTwoToneColors(ome),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1];return reactExports.createElement("span",_extends$4C({role:"img","aria-label":tme.name},lme,{ref:eme,tabIndex:pme,onClick:ime,className:fme}),reactExports.createElement(IconBase,{icon:tme,primaryColor:vme,secondaryColor:gme,style:hme}))});Icon$3.displayName="AntdIcon";Icon$3.getTwoToneColor=getTwoToneColor;Icon$3.setTwoToneColor=setTwoToneColor;var CheckCircleFilled=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:CheckCircleFilled$1}))},RefIcon$o=reactExports.forwardRef(CheckCircleFilled),CloseCircleFilled$1={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"},CloseCircleFilled=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:CloseCircleFilled$1}))},RefIcon$n=reactExports.forwardRef(CloseCircleFilled),CloseOutlined$1={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"},CloseOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:CloseOutlined$1}))},RefIcon$m=reactExports.forwardRef(CloseOutlined),ExclamationCircleFilled$1={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"},ExclamationCircleFilled=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:ExclamationCircleFilled$1}))},RefIcon$l=reactExports.forwardRef(ExclamationCircleFilled),InfoCircleFilled$1={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"},InfoCircleFilled=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:InfoCircleFilled$1}))},RefIcon$k=reactExports.forwardRef(InfoCircleFilled),attributes=`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`,eventsName=`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`,propList="".concat(attributes," ").concat(eventsName).split(/[\s\n]+/),ariaPrefix="aria-",dataPrefix="data-";function match(x_,eme){return x_.indexOf(eme)===0}function pickAttrs(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$P;eme===!1?$P={aria:!0,data:!0,attr:!0}:eme===!0?$P={aria:!0}:$P=_objectSpread2$4({},eme);var tme={};return Object.keys(x_).forEach(function(ame){($P.aria&&(ame==="role"||match(ame,ariaPrefix))||$P.data&&match(ame,dataPrefix)||$P.attr&&propList.includes(ame))&&(tme[ame]=x_[ame])}),tme}function isFragment(x_){return x_&&React__default.isValidElement(x_)&&x_.type===React__default.Fragment}const replaceElement=(x_,eme,$P)=>React__default.isValidElement(x_)?React__default.cloneElement(x_,typeof $P=="function"?$P(x_.props||{}):$P):eme;function cloneElement(x_,eme){return replaceElement(x_,x_,eme)}const t$2=x_=>typeof x_=="object"&&x_!=null&&x_.nodeType===1,e$3=(x_,eme)=>(!eme||x_!=="hidden")&&x_!=="visible"&&x_!=="clip",n$2=(x_,eme)=>{if(x_.clientHeight<x_.scrollHeight||x_.clientWidth<x_.scrollWidth){const $P=getComputedStyle(x_,null);return e$3($P.overflowY,eme)||e$3($P.overflowX,eme)||(tme=>{const ame=(nme=>{if(!nme.ownerDocument||!nme.ownerDocument.defaultView)return null;try{return nme.ownerDocument.defaultView.frameElement}catch{return null}})(tme);return!!ame&&(ame.clientHeight<tme.scrollHeight||ame.clientWidth<tme.scrollWidth)})(x_)}return!1},o$2=(x_,eme,$P,tme,ame,nme,rme,ime)=>nme<x_&&rme>eme||nme>x_&&rme<eme?0:nme<=x_&&ime<=$P||rme>=eme&&ime>=$P?nme-x_-tme:rme>eme&&ime<$P||nme<x_&&ime>$P?rme-eme+ame:0,l$1=x_=>{const eme=x_.parentElement;return eme??(x_.getRootNode().host||null)},r$3=(x_,eme)=>{var $P,tme,ame,nme;if(typeof document>"u")return[];const{scrollMode:rme,block:ime,inline:ome,boundary:lme,skipOverflowHiddenElements:sme}=eme,cme=typeof lme=="function"?lme:Ime=>Ime!==lme;if(!t$2(x_))throw new TypeError("Invalid target");const dme=document.scrollingElement||document.documentElement,ume=[];let fme=x_;for(;t$2(fme)&&cme(fme);){if(fme=l$1(fme),fme===dme){ume.push(fme);break}fme!=null&&fme===document.body&&n$2(fme)&&!n$2(document.documentElement)||fme!=null&&n$2(fme,sme)&&ume.push(fme)}const pme=(tme=($P=window.visualViewport)==null?void 0:$P.width)!=null?tme:innerWidth,hme=(nme=(ame=window.visualViewport)==null?void 0:ame.height)!=null?nme:innerHeight,{scrollX:bme,scrollY:mme}=window,{height:vme,width:gme,top:yme,right:_me,bottom:$me,left:Cme}=x_.getBoundingClientRect(),{top:Sme,right:Eme,bottom:xme,left:Tme}=(Ime=>{const Pme=window.getComputedStyle(Ime);return{top:parseFloat(Pme.scrollMarginTop)||0,right:parseFloat(Pme.scrollMarginRight)||0,bottom:parseFloat(Pme.scrollMarginBottom)||0,left:parseFloat(Pme.scrollMarginLeft)||0}})(x_);let Ome=ime==="start"||ime==="nearest"?yme-Sme:ime==="end"?$me+xme:yme+vme/2-Sme+xme,Rme=ome==="center"?Cme+gme/2-Tme+Eme:ome==="end"?_me+Eme:Cme-Tme;const Nme=[];for(let Ime=0;Ime<ume.length;Ime++){const Pme=ume[Ime],{height:Mme,width:kme,top:Bme,right:Dme,bottom:jme,left:Vme}=Pme.getBoundingClientRect();if(rme==="if-needed"&&yme>=0&&Cme>=0&&$me<=hme&&_me<=pme&&yme>=Bme&&$me<=jme&&Cme>=Vme&&_me<=Dme)return Nme;const Wme=getComputedStyle(Pme),Lme=parseInt(Wme.borderLeftWidth,10),zme=parseInt(Wme.borderTopWidth,10),Ume=parseInt(Wme.borderRightWidth,10),Gme=parseInt(Wme.borderBottomWidth,10);let Jme=0,Yme=0;const Qme="offsetWidth"in Pme?Pme.offsetWidth-Pme.clientWidth-Lme-Ume:0,Xme="offsetHeight"in Pme?Pme.offsetHeight-Pme.clientHeight-zme-Gme:0,Kme="offsetWidth"in Pme?Pme.offsetWidth===0?0:kme/Pme.offsetWidth:0,Zme="offsetHeight"in Pme?Pme.offsetHeight===0?0:Mme/Pme.offsetHeight:0;if(dme===Pme)Jme=ime==="start"?Ome:ime==="end"?Ome-hme:ime==="nearest"?o$2(mme,mme+hme,hme,zme,Gme,mme+Ome,mme+Ome+vme,vme):Ome-hme/2,Yme=ome==="start"?Rme:ome==="center"?Rme-pme/2:ome==="end"?Rme-pme:o$2(bme,bme+pme,pme,Lme,Ume,bme+Rme,bme+Rme+gme,gme),Jme=Math.max(0,Jme+mme),Yme=Math.max(0,Yme+bme);else{Jme=ime==="start"?Ome-Bme-zme:ime==="end"?Ome-jme+Gme+Xme:ime==="nearest"?o$2(Bme,jme,Mme,zme,Gme+Xme,Ome,Ome+vme,vme):Ome-(Bme+Mme/2)+Xme/2,Yme=ome==="start"?Rme-Vme-Lme:ome==="center"?Rme-(Vme+kme/2)+Qme/2:ome==="end"?Rme-Dme+Ume+Qme:o$2(Vme,Dme,kme,Lme,Ume+Qme,Rme,Rme+gme,gme);const{scrollLeft:nbe,scrollTop:lbe}=Pme;Jme=Zme===0?0:Math.max(0,Math.min(lbe+Jme/Zme,Pme.scrollHeight-Mme/Zme+Xme)),Yme=Kme===0?0:Math.max(0,Math.min(nbe+Yme/Kme,Pme.scrollWidth-kme/Kme+Qme)),Ome+=lbe-Jme,Rme+=nbe-Yme}Nme.push({el:Pme,top:Jme,left:Yme})}return Nme},o$1=x_=>x_===!1?{block:"end",inline:"nearest"}:(eme=>eme===Object(eme)&&Object.keys(eme).length!==0)(x_)?x_:{block:"start",inline:"nearest"};function e$2(x_,eme){if(!x_.isConnected||!(ame=>{let nme=ame;for(;nme&&nme.parentNode;){if(nme.parentNode===document)return!0;nme=nme.parentNode instanceof ShadowRoot?nme.parentNode.host:nme.parentNode}return!1})(x_))return;const $P=(ame=>{const nme=window.getComputedStyle(ame);return{top:parseFloat(nme.scrollMarginTop)||0,right:parseFloat(nme.scrollMarginRight)||0,bottom:parseFloat(nme.scrollMarginBottom)||0,left:parseFloat(nme.scrollMarginLeft)||0}})(x_);if((ame=>typeof ame=="object"&&typeof ame.behavior=="function")(eme))return eme.behavior(r$3(x_,eme));const tme=typeof eme=="boolean"||eme==null?void 0:eme.behavior;for(const{el:ame,top:nme,left:rme}of r$3(x_,o$1(eme))){const ime=nme-$P.top+$P.bottom,ome=rme-$P.left+$P.right;ame.scroll({top:ime,left:ome,behavior:tme})}}function isWindow$1(x_){return x_!=null&&x_===x_.window}const getScroll$2=x_=>{var eme,$P;if(typeof window>"u")return 0;let tme=0;return isWindow$1(x_)?tme=x_.pageYOffset:x_ instanceof Document?tme=x_.documentElement.scrollTop:(x_ instanceof HTMLElement||x_)&&(tme=x_.scrollTop),x_&&!isWindow$1(x_)&&typeof tme!="number"&&(tme=($P=((eme=x_.ownerDocument)!==null&&eme!==void 0?eme:x_).documentElement)===null||$P===void 0?void 0:$P.scrollTop),tme};function easeInOutCubic(x_,eme,$P,tme){const ame=$P-eme;return x_/=tme/2,x_<1?ame/2*x_*x_*x_+eme:ame/2*((x_-=2)*x_*x_+2)+eme}function scrollTo(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:$P=()=>window,callback:tme,duration:ame=450}=eme,nme=$P(),rme=getScroll$2(nme),ime=Date.now(),ome=()=>{const sme=Date.now()-ime,cme=easeInOutCubic(sme>ame?ame:sme,rme,x_,ame);isWindow$1(nme)?nme.scrollTo(window.pageXOffset,cme):nme instanceof Document||nme.constructor.name==="HTMLDocument"?nme.documentElement.scrollTop=cme:nme.scrollTop=cme,sme<ame?wrapperRaf(ome):typeof tme=="function"&&tme()};wrapperRaf(ome)}const useCSSVarCls=x_=>{const[,,,,eme]=useToken$1();return eme?`${x_}-css-var`:""};var KeyCode={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(eme){var $P=eme.keyCode;if(eme.altKey&&!eme.ctrlKey||eme.metaKey||$P>=KeyCode.F1&&$P<=KeyCode.F12)return!1;switch($P){case KeyCode.ALT:case KeyCode.CAPS_LOCK:case KeyCode.CONTEXT_MENU:case KeyCode.CTRL:case KeyCode.DOWN:case KeyCode.END:case KeyCode.ESC:case KeyCode.HOME:case KeyCode.INSERT:case KeyCode.LEFT:case KeyCode.MAC_FF_META:case KeyCode.META:case KeyCode.NUMLOCK:case KeyCode.NUM_CENTER:case KeyCode.PAGE_DOWN:case KeyCode.PAGE_UP:case KeyCode.PAUSE:case KeyCode.PRINT_SCREEN:case KeyCode.RIGHT:case KeyCode.SHIFT:case KeyCode.UP:case KeyCode.WIN_KEY:case KeyCode.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(eme){if(eme>=KeyCode.ZERO&&eme<=KeyCode.NINE||eme>=KeyCode.NUM_ZERO&&eme<=KeyCode.NUM_MULTIPLY||eme>=KeyCode.A&&eme<=KeyCode.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&eme===0)return!0;switch(eme){case KeyCode.SPACE:case KeyCode.QUESTION_MARK:case KeyCode.NUM_PLUS:case KeyCode.NUM_MINUS:case KeyCode.NUM_PERIOD:case KeyCode.NUM_DIVISION:case KeyCode.SEMICOLON:case KeyCode.DASH:case KeyCode.EQUALS:case KeyCode.COMMA:case KeyCode.PERIOD:case KeyCode.SLASH:case KeyCode.APOSTROPHE:case KeyCode.SINGLE_QUOTE:case KeyCode.OPEN_SQUARE_BRACKET:case KeyCode.BACKSLASH:case KeyCode.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Notify=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.style,ame=x_.className,nme=x_.duration,rme=nme===void 0?4.5:nme,ime=x_.showProgress,ome=x_.pauseOnHover,lme=ome===void 0?!0:ome,sme=x_.eventKey,cme=x_.content,dme=x_.closable,ume=x_.closeIcon,fme=ume===void 0?"x":ume,pme=x_.props,hme=x_.onClick,bme=x_.onNoticeClose,mme=x_.times,vme=x_.hovering,gme=reactExports.useState(!1),yme=_slicedToArray$2(gme,2),_me=yme[0],$me=yme[1],Cme=reactExports.useState(0),Sme=_slicedToArray$2(Cme,2),Eme=Sme[0],xme=Sme[1],Tme=reactExports.useState(0),Ome=_slicedToArray$2(Tme,2),Rme=Ome[0],Nme=Ome[1],Ime=vme||_me,Pme=rme>0&&ime,Mme=function(){bme(sme)},kme=function(Lme){(Lme.key==="Enter"||Lme.code==="Enter"||Lme.keyCode===KeyCode.ENTER)&&Mme()};reactExports.useEffect(function(){if(!Ime&&rme>0){var Wme=Date.now()-Rme,Lme=setTimeout(function(){Mme()},rme*1e3-Rme);return function(){lme&&clearTimeout(Lme),Nme(Date.now()-Wme)}}},[rme,Ime,mme]),reactExports.useEffect(function(){if(!Ime&&Pme&&(lme||Rme===0)){var Wme=performance.now(),Lme,zme=function Ume(){cancelAnimationFrame(Lme),Lme=requestAnimationFrame(function(Gme){var Jme=Gme+Rme-Wme,Yme=Math.min(Jme/(rme*1e3),1);xme(Yme*100),Yme<1&&Ume()})};return zme(),function(){lme&&cancelAnimationFrame(Lme)}}},[rme,Rme,Ime,Pme,mme]);var Bme=reactExports.useMemo(function(){return _typeof$4(dme)==="object"&&dme!==null?dme:dme?{closeIcon:fme}:{}},[dme,fme]),Dme=pickAttrs(Bme,!0),jme=100-(!Eme||Eme<0?0:Eme>100?100:Eme),Vme="".concat($P,"-notice");return reactExports.createElement("div",_extends$4C({},pme,{ref:eme,className:classNames(Vme,ame,_defineProperty$7({},"".concat(Vme,"-closable"),dme)),style:tme,onMouseEnter:function(Lme){var zme;$me(!0),pme==null||(zme=pme.onMouseEnter)===null||zme===void 0||zme.call(pme,Lme)},onMouseLeave:function(Lme){var zme;$me(!1),pme==null||(zme=pme.onMouseLeave)===null||zme===void 0||zme.call(pme,Lme)},onClick:hme}),reactExports.createElement("div",{className:"".concat(Vme,"-content")},cme),dme&&reactExports.createElement("a",_extends$4C({tabIndex:0,className:"".concat(Vme,"-close"),onKeyDown:kme,"aria-label":"Close"},Dme,{onClick:function(Lme){Lme.preventDefault(),Lme.stopPropagation(),Mme()}}),Bme.closeIcon),Pme&&reactExports.createElement("progress",{className:"".concat(Vme,"-progress"),max:"100",value:jme},jme+"%"))}),NotificationContext=React__default.createContext({}),NotificationProvider=function(eme){var $P=eme.children,tme=eme.classNames;return React__default.createElement(NotificationContext.Provider,{value:{classNames:tme}},$P)},DEFAULT_OFFSET$2=8,DEFAULT_THRESHOLD=3,DEFAULT_GAP=16,useStack=function(eme){var $P={offset:DEFAULT_OFFSET$2,threshold:DEFAULT_THRESHOLD,gap:DEFAULT_GAP};if(eme&&_typeof$4(eme)==="object"){var tme,ame,nme;$P.offset=(tme=eme.offset)!==null&&tme!==void 0?tme:DEFAULT_OFFSET$2,$P.threshold=(ame=eme.threshold)!==null&&ame!==void 0?ame:DEFAULT_THRESHOLD,$P.gap=(nme=eme.gap)!==null&&nme!==void 0?nme:DEFAULT_GAP}return[!!eme,$P]},_excluded$O=["className","style","classNames","styles"],NoticeList=function(eme){var $P=eme.configList,tme=eme.placement,ame=eme.prefixCls,nme=eme.className,rme=eme.style,ime=eme.motion,ome=eme.onAllNoticeRemoved,lme=eme.onNoticeClose,sme=eme.stack,cme=reactExports.useContext(NotificationContext),dme=cme.classNames,ume=reactExports.useRef({}),fme=reactExports.useState(null),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme=reactExports.useState([]),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=$P.map(function(Ime){return{config:Ime,key:String(Ime.key)}}),$me=useStack(sme),Cme=_slicedToArray$2($me,2),Sme=Cme[0],Eme=Cme[1],xme=Eme.offset,Tme=Eme.threshold,Ome=Eme.gap,Rme=Sme&&(gme.length>0||_me.length<=Tme),Nme=typeof ime=="function"?ime(tme):ime;return reactExports.useEffect(function(){Sme&&gme.length>1&&yme(function(Ime){return Ime.filter(function(Pme){return _me.some(function(Mme){var kme=Mme.key;return Pme===kme})})})},[gme,_me,Sme]),reactExports.useEffect(function(){var Ime;if(Sme&&ume.current[(Ime=_me[_me.length-1])===null||Ime===void 0?void 0:Ime.key]){var Pme;bme(ume.current[(Pme=_me[_me.length-1])===null||Pme===void 0?void 0:Pme.key])}},[_me,Sme]),jsx(CSSMotionList,{className:classNames(ame,"".concat(ame,"-").concat(tme),dme==null?void 0:dme.list,nme,_defineProperty$7(_defineProperty$7({},"".concat(ame,"-stack"),!!Sme),"".concat(ame,"-stack-expanded"),Rme)),style:rme,keys:_me,motionAppear:!0,...Nme,onAllRemoved:function(){ome(tme)},children:function(Ime,Pme){var Mme=Ime.config,kme=Ime.className,Bme=Ime.style,Dme=Ime.index,jme=Mme,Vme=jme.key,Wme=jme.times,Lme=String(Vme),zme=Mme,Ume=zme.className,Gme=zme.style,Jme=zme.classNames,Yme=zme.styles,Qme=_objectWithoutProperties$6(zme,_excluded$O),Xme=_me.findIndex(function(_be){return _be.key===Lme}),Kme={};if(Sme){var Zme=_me.length-1-(Xme>-1?Xme:Dme-1),nbe=tme==="top"||tme==="bottom"?"-50%":"0";if(Zme>0){var lbe,ibe,abe;Kme.height=Rme?(lbe=ume.current[Lme])===null||lbe===void 0?void 0:lbe.offsetHeight:hme==null?void 0:hme.offsetHeight;for(var obe=0,hbe=0;hbe<Zme;hbe++){var ube;obe+=((ube=ume.current[_me[_me.length-1-hbe].key])===null||ube===void 0?void 0:ube.offsetHeight)+Ome}var mbe=(Rme?obe:Zme*xme)*(tme.startsWith("top")?1:-1),pbe=!Rme&&hme!==null&&hme!==void 0&&hme.offsetWidth&&(ibe=ume.current[Lme])!==null&&ibe!==void 0&&ibe.offsetWidth?((hme==null?void 0:hme.offsetWidth)-xme*2*(Zme<3?Zme:3))/((abe=ume.current[Lme])===null||abe===void 0?void 0:abe.offsetWidth):1;Kme.transform="translate3d(".concat(nbe,", ").concat(mbe,"px, 0) scaleX(").concat(pbe,")")}else Kme.transform="translate3d(".concat(nbe,", 0, 0)")}return jsx("div",{ref:Pme,className:classNames("".concat(ame,"-notice-wrapper"),kme,Jme==null?void 0:Jme.wrapper),style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},Bme),Kme),Yme==null?void 0:Yme.wrapper),onMouseEnter:function(){return yme(function(Sbe){return Sbe.includes(Lme)?Sbe:[].concat(_toConsumableArray$1(Sbe),[Lme])})},onMouseLeave:function(){return yme(function(Sbe){return Sbe.filter(function(vbe){return vbe!==Lme})})},children:reactExports.createElement(Notify,{...Qme,ref:function(Sbe){Xme>-1?ume.current[Lme]=Sbe:delete ume.current[Lme]},prefixCls:ame,classNames:Jme,styles:Yme,className:classNames(Ume,dme==null?void 0:dme.notice),style:Gme,times:Wme,key:Vme,eventKey:Vme,onNoticeClose:lme,hovering:Sme&&gme.length>0})})}},tme)},Notifications=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-notification":$P,ame=x_.container,nme=x_.motion,rme=x_.maxCount,ime=x_.className,ome=x_.style,lme=x_.onAllRemoved,sme=x_.stack,cme=x_.renderNotifications,dme=reactExports.useState([]),ume=_slicedToArray$2(dme,2),fme=ume[0],pme=ume[1],hme=function(Sme){var Eme,xme=fme.find(function(Tme){return Tme.key===Sme});xme==null||(Eme=xme.onClose)===null||Eme===void 0||Eme.call(xme),pme(function(Tme){return Tme.filter(function(Ome){return Ome.key!==Sme})})};reactExports.useImperativeHandle(eme,function(){return{open:function(Sme){pme(function(Eme){var xme=_toConsumableArray$1(Eme),Tme=xme.findIndex(function(Nme){return Nme.key===Sme.key}),Ome=_objectSpread2$4({},Sme);if(Tme>=0){var Rme;Ome.times=(((Rme=Eme[Tme])===null||Rme===void 0?void 0:Rme.times)||0)+1,xme[Tme]=Ome}else Ome.times=0,xme.push(Ome);return rme>0&&xme.length>rme&&(xme=xme.slice(-rme)),xme})},close:function(Sme){hme(Sme)},destroy:function(){pme([])}}});var bme=reactExports.useState({}),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1];reactExports.useEffect(function(){var Cme={};fme.forEach(function(Sme){var Eme=Sme.placement,xme=Eme===void 0?"topRight":Eme;xme&&(Cme[xme]=Cme[xme]||[],Cme[xme].push(Sme))}),Object.keys(vme).forEach(function(Sme){Cme[Sme]=Cme[Sme]||[]}),gme(Cme)},[fme]);var yme=function(Sme){gme(function(Eme){var xme=_objectSpread2$4({},Eme),Tme=xme[Sme]||[];return Tme.length||delete xme[Sme],xme})},_me=reactExports.useRef(!1);if(reactExports.useEffect(function(){Object.keys(vme).length>0?_me.current=!0:_me.current&&(lme==null||lme(),_me.current=!1)},[vme]),!ame)return null;var $me=Object.keys(vme);return reactDomExports.createPortal(reactExports.createElement(reactExports.Fragment,null,$me.map(function(Cme){var Sme=vme[Cme],Eme=reactExports.createElement(NoticeList,{key:Cme,configList:Sme,placement:Cme,prefixCls:tme,className:ime==null?void 0:ime(Cme),style:ome==null?void 0:ome(Cme),motion:nme,onNoticeClose:hme,onAllNoticeRemoved:yme,stack:sme});return cme?cme(Eme,{prefixCls:tme,key:Cme}):Eme})),ame)}),_excluded$N=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],defaultGetContainer=function(){return document.body},uniqueKey=0;function mergeConfig$3(){for(var x_={},eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return $P.forEach(function(ame){ame&&Object.keys(ame).forEach(function(nme){var rme=ame[nme];rme!==void 0&&(x_[nme]=rme)})}),x_}function useNotification$1(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},eme=x_.getContainer,$P=eme===void 0?defaultGetContainer:eme,tme=x_.motion,ame=x_.prefixCls,nme=x_.maxCount,rme=x_.className,ime=x_.style,ome=x_.onAllRemoved,lme=x_.stack,sme=x_.renderNotifications,cme=_objectWithoutProperties$6(x_,_excluded$N),dme=reactExports.useState(),ume=_slicedToArray$2(dme,2),fme=ume[0],pme=ume[1],hme=reactExports.useRef(),bme=reactExports.createElement(Notifications,{container:fme,ref:hme,prefixCls:ame,motion:tme,maxCount:nme,className:rme,style:ime,onAllRemoved:ome,stack:lme,renderNotifications:sme}),mme=reactExports.useState([]),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=reactExports.useMemo(function(){return{open:function(Cme){var Sme=mergeConfig$3(cme,Cme);(Sme.key===null||Sme.key===void 0)&&(Sme.key="rc-notification-".concat(uniqueKey),uniqueKey+=1),yme(function(Eme){return[].concat(_toConsumableArray$1(Eme),[{type:"open",config:Sme}])})},close:function(Cme){yme(function(Sme){return[].concat(_toConsumableArray$1(Sme),[{type:"close",key:Cme}])})},destroy:function(){yme(function(Cme){return[].concat(_toConsumableArray$1(Cme),[{type:"destroy"}])})}}},[]);return reactExports.useEffect(function(){pme($P())}),reactExports.useEffect(function(){hme.current&&gme.length&&(gme.forEach(function($me){switch($me.type){case"open":hme.current.open($me.config);break;case"close":hme.current.close($me.key);break;case"destroy":hme.current.destroy();break}}),yme(function($me){return $me.filter(function(Cme){return!gme.includes(Cme)})}))},[gme]),[_me,bme]}var LoadingOutlined$1={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"},LoadingOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:LoadingOutlined$1}))},RefIcon$j=reactExports.forwardRef(LoadingOutlined);const zIndexContext=React__default.createContext(void 0),CONTAINER_OFFSET=100,CONTAINER_OFFSET_MAX_COUNT=10,CONTAINER_MAX_OFFSET=CONTAINER_OFFSET*CONTAINER_OFFSET_MAX_COUNT,containerBaseZIndexOffset={Modal:CONTAINER_OFFSET,Drawer:CONTAINER_OFFSET,Popover:CONTAINER_OFFSET,Popconfirm:CONTAINER_OFFSET,Tooltip:CONTAINER_OFFSET,Tour:CONTAINER_OFFSET,FloatButton:CONTAINER_OFFSET},consumerBaseZIndexOffset={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function isContainerType(x_){return x_ in containerBaseZIndexOffset}const useZIndex=(x_,eme)=>{const[,$P]=useToken$1(),tme=React__default.useContext(zIndexContext),ame=isContainerType(x_);let nme;if(eme!==void 0)nme=[eme,eme];else{let rme=tme??0;ame?rme+=(tme?0:$P.zIndexPopupBase)+containerBaseZIndexOffset[x_]:rme+=consumerBaseZIndexOffset[x_],nme=[tme===void 0?eme:rme,rme]}return nme},genMessageStyle=x_=>{const{componentCls:eme,iconCls:$P,boxShadow:tme,colorText:ame,colorSuccess:nme,colorError:rme,colorWarning:ime,colorInfo:ome,fontSizeLG:lme,motionEaseInOutCirc:sme,motionDurationSlow:cme,marginXS:dme,paddingXS:ume,borderRadiusLG:fme,zIndexPopup:pme,contentPadding:hme,contentBg:bme}=x_,mme=`${eme}-notice`,vme=new Keyframe("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:ume,transform:"translateY(0)",opacity:1}}),gme=new Keyframe("MessageMoveOut",{"0%":{maxHeight:x_.height,padding:ume,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),yme={padding:ume,textAlign:"center",[`${eme}-custom-content`]:{display:"flex",alignItems:"center"},[`${eme}-custom-content > ${$P}`]:{marginInlineEnd:dme,fontSize:lme},[`${mme}-content`]:{display:"inline-block",padding:hme,background:bme,borderRadius:fme,boxShadow:tme,pointerEvents:"all"},[`${eme}-success > ${$P}`]:{color:nme},[`${eme}-error > ${$P}`]:{color:rme},[`${eme}-warning > ${$P}`]:{color:ime},[`${eme}-info > ${$P},
      ${eme}-loading > ${$P}`]:{color:ome}};return[{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{color:ame,position:"fixed",top:dme,width:"100%",pointerEvents:"none",zIndex:pme,[`${eme}-move-up`]:{animationFillMode:"forwards"},[`
        ${eme}-move-up-appear,
        ${eme}-move-up-enter
      `]:{animationName:vme,animationDuration:cme,animationPlayState:"paused",animationTimingFunction:sme},[`
        ${eme}-move-up-appear${eme}-move-up-appear-active,
        ${eme}-move-up-enter${eme}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${eme}-move-up-leave`]:{animationName:gme,animationDuration:cme,animationPlayState:"paused",animationTimingFunction:sme},[`${eme}-move-up-leave${eme}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[eme]:{[`${mme}-wrapper`]:Object.assign({},yme)}},{[`${eme}-notice-pure-panel`]:Object.assign(Object.assign({},yme),{padding:0,textAlign:"start"})}]},prepareComponentToken$q=x_=>({zIndexPopup:x_.zIndexPopupBase+CONTAINER_MAX_OFFSET+10,contentBg:x_.colorBgElevated,contentPadding:`${(x_.controlHeightLG-x_.fontSize*x_.lineHeight)/2}px ${x_.paddingSM}px`}),useStyle$x=genStyleHooks("Message",x_=>{const eme=merge$5(x_,{height:150});return[genMessageStyle(eme)]},prepareComponentToken$q);var __rest$10=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const TypeIcon={info:reactExports.createElement(RefIcon$k,null),success:reactExports.createElement(RefIcon$o,null),error:reactExports.createElement(RefIcon$n,null),warning:reactExports.createElement(RefIcon$l,null),loading:reactExports.createElement(RefIcon$j,null)},PureContent$1=x_=>{let{prefixCls:eme,type:$P,icon:tme,children:ame}=x_;return reactExports.createElement("div",{className:classNames(`${eme}-custom-content`,`${eme}-${$P}`)},tme||TypeIcon[$P],reactExports.createElement("span",null,ame))},PurePanel$8=x_=>{const{prefixCls:eme,className:$P,type:tme,icon:ame,content:nme}=x_,rme=__rest$10(x_,["prefixCls","className","type","icon","content"]),{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=eme||ime("message"),lme=useCSSVarCls(ome),[sme,cme,dme]=useStyle$x(ome,lme);return sme(reactExports.createElement(Notify,Object.assign({},rme,{prefixCls:ome,className:classNames($P,cme,`${ome}-notice-pure-panel`,dme,lme),eventKey:"pure",duration:null,content:reactExports.createElement(PureContent$1,{prefixCls:ome,type:tme,icon:ame},nme)})))};function getMotion$3(x_,eme){return{motionName:eme??`${x_}-move-up`}}function wrapPromiseFn(x_){let eme;const $P=new Promise(ame=>{eme=x_(()=>{ame(!0)})}),tme=()=>{eme==null||eme()};return tme.then=(ame,nme)=>$P.then(ame,nme),tme.promise=$P,tme}var __rest$$=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const DEFAULT_OFFSET$1=8,DEFAULT_DURATION$2=3,Wrapper$1=x_=>{let{children:eme,prefixCls:$P}=x_;const tme=useCSSVarCls($P),[ame,nme,rme]=useStyle$x($P,tme);return ame(reactExports.createElement(NotificationProvider,{classNames:{list:classNames(nme,rme,tme)}},eme))},renderNotifications$1=(x_,eme)=>{let{prefixCls:$P,key:tme}=eme;return reactExports.createElement(Wrapper$1,{prefixCls:$P,key:tme},x_)},Holder$1=reactExports.forwardRef((x_,eme)=>{const{top:$P,prefixCls:tme,getContainer:ame,maxCount:nme,duration:rme=DEFAULT_DURATION$2,rtl:ime,transitionName:ome,onAllRemoved:lme}=x_,{getPrefixCls:sme,getPopupContainer:cme,message:dme,direction:ume}=reactExports.useContext(ConfigContext),fme=tme||sme("message"),pme=()=>({left:"50%",transform:"translateX(-50%)",top:$P??DEFAULT_OFFSET$1}),hme=()=>classNames({[`${fme}-rtl`]:ime??ume==="rtl"}),bme=()=>getMotion$3(fme,ome),mme=reactExports.createElement("span",{className:`${fme}-close-x`},reactExports.createElement(RefIcon$m,{className:`${fme}-close-icon`})),[vme,gme]=useNotification$1({prefixCls:fme,style:pme,className:hme,motion:bme,closable:!1,closeIcon:mme,duration:rme,getContainer:()=>(ame==null?void 0:ame())||(cme==null?void 0:cme())||document.body,maxCount:nme,onAllRemoved:lme,renderNotifications:renderNotifications$1});return reactExports.useImperativeHandle(eme,()=>Object.assign(Object.assign({},vme),{prefixCls:fme,message:dme})),gme});let keyIndex=0;function useInternalMessage(x_){const eme=reactExports.useRef(null);return devUseWarning(),[reactExports.useMemo(()=>{const tme=ome=>{var lme;(lme=eme.current)===null||lme===void 0||lme.close(ome)},ame=ome=>{if(!eme.current){const _me=()=>{};return _me.then=()=>{},_me}const{open:lme,prefixCls:sme,message:cme}=eme.current,dme=`${sme}-notice`,{content:ume,icon:fme,type:pme,key:hme,className:bme,style:mme,onClose:vme}=ome,gme=__rest$$(ome,["content","icon","type","key","className","style","onClose"]);let yme=hme;return yme==null&&(keyIndex+=1,yme=`antd-message-${keyIndex}`),wrapPromiseFn(_me=>(lme(Object.assign(Object.assign({},gme),{key:yme,content:reactExports.createElement(PureContent$1,{prefixCls:sme,type:pme,icon:fme},ume),placement:"top",className:classNames(pme&&`${dme}-${pme}`,bme,cme==null?void 0:cme.className),style:Object.assign(Object.assign({},cme==null?void 0:cme.style),mme),onClose:()=>{vme==null||vme(),_me()}})),()=>{tme(yme)}))},rme={open:ame,destroy:ome=>{var lme;ome!==void 0?tme(ome):(lme=eme.current)===null||lme===void 0||lme.destroy()}};return["info","success","warning","error","loading"].forEach(ome=>{const lme=(sme,cme,dme)=>{let ume;sme&&typeof sme=="object"&&"content"in sme?ume=sme:ume={content:sme};let fme,pme;typeof cme=="function"?pme=cme:(fme=cme,pme=dme);const hme=Object.assign(Object.assign({onClose:pme,duration:fme},ume),{type:ome});return ame(hme)};rme[ome]=lme}),rme},[]),reactExports.createElement(Holder$1,Object.assign({key:"message-holder"},x_,{ref:eme}))]}function useMessage(x_){return useInternalMessage(x_)}function _regeneratorRuntime$1(){_regeneratorRuntime$1=function(){return eme};var x_,eme={},$P=Object.prototype,tme=$P.hasOwnProperty,ame=Object.defineProperty||function(Ime,Pme,Mme){Ime[Pme]=Mme.value},nme=typeof Symbol=="function"?Symbol:{},rme=nme.iterator||"@@iterator",ime=nme.asyncIterator||"@@asyncIterator",ome=nme.toStringTag||"@@toStringTag";function lme(Ime,Pme,Mme){return Object.defineProperty(Ime,Pme,{value:Mme,enumerable:!0,configurable:!0,writable:!0}),Ime[Pme]}try{lme({},"")}catch{lme=function(Mme,kme,Bme){return Mme[kme]=Bme}}function sme(Ime,Pme,Mme,kme){var Bme=Pme&&Pme.prototype instanceof bme?Pme:bme,Dme=Object.create(Bme.prototype),jme=new Rme(kme||[]);return ame(Dme,"_invoke",{value:Eme(Ime,Mme,jme)}),Dme}function cme(Ime,Pme,Mme){try{return{type:"normal",arg:Ime.call(Pme,Mme)}}catch(kme){return{type:"throw",arg:kme}}}eme.wrap=sme;var dme="suspendedStart",ume="suspendedYield",fme="executing",pme="completed",hme={};function bme(){}function mme(){}function vme(){}var gme={};lme(gme,rme,function(){return this});var yme=Object.getPrototypeOf,_me=yme&&yme(yme(Nme([])));_me&&_me!==$P&&tme.call(_me,rme)&&(gme=_me);var $me=vme.prototype=bme.prototype=Object.create(gme);function Cme(Ime){["next","throw","return"].forEach(function(Pme){lme(Ime,Pme,function(Mme){return this._invoke(Pme,Mme)})})}function Sme(Ime,Pme){function Mme(Bme,Dme,jme,Vme){var Wme=cme(Ime[Bme],Ime,Dme);if(Wme.type!=="throw"){var Lme=Wme.arg,zme=Lme.value;return zme&&_typeof$4(zme)=="object"&&tme.call(zme,"__await")?Pme.resolve(zme.__await).then(function(Ume){Mme("next",Ume,jme,Vme)},function(Ume){Mme("throw",Ume,jme,Vme)}):Pme.resolve(zme).then(function(Ume){Lme.value=Ume,jme(Lme)},function(Ume){return Mme("throw",Ume,jme,Vme)})}Vme(Wme.arg)}var kme;ame(this,"_invoke",{value:function(Dme,jme){function Vme(){return new Pme(function(Wme,Lme){Mme(Dme,jme,Wme,Lme)})}return kme=kme?kme.then(Vme,Vme):Vme()}})}function Eme(Ime,Pme,Mme){var kme=dme;return function(Bme,Dme){if(kme===fme)throw Error("Generator is already running");if(kme===pme){if(Bme==="throw")throw Dme;return{value:x_,done:!0}}for(Mme.method=Bme,Mme.arg=Dme;;){var jme=Mme.delegate;if(jme){var Vme=xme(jme,Mme);if(Vme){if(Vme===hme)continue;return Vme}}if(Mme.method==="next")Mme.sent=Mme._sent=Mme.arg;else if(Mme.method==="throw"){if(kme===dme)throw kme=pme,Mme.arg;Mme.dispatchException(Mme.arg)}else Mme.method==="return"&&Mme.abrupt("return",Mme.arg);kme=fme;var Wme=cme(Ime,Pme,Mme);if(Wme.type==="normal"){if(kme=Mme.done?pme:ume,Wme.arg===hme)continue;return{value:Wme.arg,done:Mme.done}}Wme.type==="throw"&&(kme=pme,Mme.method="throw",Mme.arg=Wme.arg)}}}function xme(Ime,Pme){var Mme=Pme.method,kme=Ime.iterator[Mme];if(kme===x_)return Pme.delegate=null,Mme==="throw"&&Ime.iterator.return&&(Pme.method="return",Pme.arg=x_,xme(Ime,Pme),Pme.method==="throw")||Mme!=="return"&&(Pme.method="throw",Pme.arg=new TypeError("The iterator does not provide a '"+Mme+"' method")),hme;var Bme=cme(kme,Ime.iterator,Pme.arg);if(Bme.type==="throw")return Pme.method="throw",Pme.arg=Bme.arg,Pme.delegate=null,hme;var Dme=Bme.arg;return Dme?Dme.done?(Pme[Ime.resultName]=Dme.value,Pme.next=Ime.nextLoc,Pme.method!=="return"&&(Pme.method="next",Pme.arg=x_),Pme.delegate=null,hme):Dme:(Pme.method="throw",Pme.arg=new TypeError("iterator result is not an object"),Pme.delegate=null,hme)}function Tme(Ime){var Pme={tryLoc:Ime[0]};1 in Ime&&(Pme.catchLoc=Ime[1]),2 in Ime&&(Pme.finallyLoc=Ime[2],Pme.afterLoc=Ime[3]),this.tryEntries.push(Pme)}function Ome(Ime){var Pme=Ime.completion||{};Pme.type="normal",delete Pme.arg,Ime.completion=Pme}function Rme(Ime){this.tryEntries=[{tryLoc:"root"}],Ime.forEach(Tme,this),this.reset(!0)}function Nme(Ime){if(Ime||Ime===""){var Pme=Ime[rme];if(Pme)return Pme.call(Ime);if(typeof Ime.next=="function")return Ime;if(!isNaN(Ime.length)){var Mme=-1,kme=function Bme(){for(;++Mme<Ime.length;)if(tme.call(Ime,Mme))return Bme.value=Ime[Mme],Bme.done=!1,Bme;return Bme.value=x_,Bme.done=!0,Bme};return kme.next=kme}}throw new TypeError(_typeof$4(Ime)+" is not iterable")}return mme.prototype=vme,ame($me,"constructor",{value:vme,configurable:!0}),ame(vme,"constructor",{value:mme,configurable:!0}),mme.displayName=lme(vme,ome,"GeneratorFunction"),eme.isGeneratorFunction=function(Ime){var Pme=typeof Ime=="function"&&Ime.constructor;return!!Pme&&(Pme===mme||(Pme.displayName||Pme.name)==="GeneratorFunction")},eme.mark=function(Ime){return Object.setPrototypeOf?Object.setPrototypeOf(Ime,vme):(Ime.__proto__=vme,lme(Ime,ome,"GeneratorFunction")),Ime.prototype=Object.create($me),Ime},eme.awrap=function(Ime){return{__await:Ime}},Cme(Sme.prototype),lme(Sme.prototype,ime,function(){return this}),eme.AsyncIterator=Sme,eme.async=function(Ime,Pme,Mme,kme,Bme){Bme===void 0&&(Bme=Promise);var Dme=new Sme(sme(Ime,Pme,Mme,kme),Bme);return eme.isGeneratorFunction(Pme)?Dme:Dme.next().then(function(jme){return jme.done?jme.value:Dme.next()})},Cme($me),lme($me,ome,"Generator"),lme($me,rme,function(){return this}),lme($me,"toString",function(){return"[object Generator]"}),eme.keys=function(Ime){var Pme=Object(Ime),Mme=[];for(var kme in Pme)Mme.push(kme);return Mme.reverse(),function Bme(){for(;Mme.length;){var Dme=Mme.pop();if(Dme in Pme)return Bme.value=Dme,Bme.done=!1,Bme}return Bme.done=!0,Bme}},eme.values=Nme,Rme.prototype={constructor:Rme,reset:function(Pme){if(this.prev=0,this.next=0,this.sent=this._sent=x_,this.done=!1,this.delegate=null,this.method="next",this.arg=x_,this.tryEntries.forEach(Ome),!Pme)for(var Mme in this)Mme.charAt(0)==="t"&&tme.call(this,Mme)&&!isNaN(+Mme.slice(1))&&(this[Mme]=x_)},stop:function(){this.done=!0;var Pme=this.tryEntries[0].completion;if(Pme.type==="throw")throw Pme.arg;return this.rval},dispatchException:function(Pme){if(this.done)throw Pme;var Mme=this;function kme(Lme,zme){return jme.type="throw",jme.arg=Pme,Mme.next=Lme,zme&&(Mme.method="next",Mme.arg=x_),!!zme}for(var Bme=this.tryEntries.length-1;Bme>=0;--Bme){var Dme=this.tryEntries[Bme],jme=Dme.completion;if(Dme.tryLoc==="root")return kme("end");if(Dme.tryLoc<=this.prev){var Vme=tme.call(Dme,"catchLoc"),Wme=tme.call(Dme,"finallyLoc");if(Vme&&Wme){if(this.prev<Dme.catchLoc)return kme(Dme.catchLoc,!0);if(this.prev<Dme.finallyLoc)return kme(Dme.finallyLoc)}else if(Vme){if(this.prev<Dme.catchLoc)return kme(Dme.catchLoc,!0)}else{if(!Wme)throw Error("try statement without catch or finally");if(this.prev<Dme.finallyLoc)return kme(Dme.finallyLoc)}}}},abrupt:function(Pme,Mme){for(var kme=this.tryEntries.length-1;kme>=0;--kme){var Bme=this.tryEntries[kme];if(Bme.tryLoc<=this.prev&&tme.call(Bme,"finallyLoc")&&this.prev<Bme.finallyLoc){var Dme=Bme;break}}Dme&&(Pme==="break"||Pme==="continue")&&Dme.tryLoc<=Mme&&Mme<=Dme.finallyLoc&&(Dme=null);var jme=Dme?Dme.completion:{};return jme.type=Pme,jme.arg=Mme,Dme?(this.method="next",this.next=Dme.finallyLoc,hme):this.complete(jme)},complete:function(Pme,Mme){if(Pme.type==="throw")throw Pme.arg;return Pme.type==="break"||Pme.type==="continue"?this.next=Pme.arg:Pme.type==="return"?(this.rval=this.arg=Pme.arg,this.method="return",this.next="end"):Pme.type==="normal"&&Mme&&(this.next=Mme),hme},finish:function(Pme){for(var Mme=this.tryEntries.length-1;Mme>=0;--Mme){var kme=this.tryEntries[Mme];if(kme.finallyLoc===Pme)return this.complete(kme.completion,kme.afterLoc),Ome(kme),hme}},catch:function(Pme){for(var Mme=this.tryEntries.length-1;Mme>=0;--Mme){var kme=this.tryEntries[Mme];if(kme.tryLoc===Pme){var Bme=kme.completion;if(Bme.type==="throw"){var Dme=Bme.arg;Ome(kme)}return Dme}}throw Error("illegal catch attempt")},delegateYield:function(Pme,Mme,kme){return this.delegate={iterator:Nme(Pme),resultName:Mme,nextLoc:kme},this.method==="next"&&(this.arg=x_),hme}},eme}function asyncGeneratorStep(x_,eme,$P,tme,ame,nme,rme){try{var ime=x_[nme](rme),ome=ime.value}catch(lme){return void $P(lme)}ime.done?eme(ome):Promise.resolve(ome).then(tme,ame)}function _asyncToGenerator(x_){return function(){var eme=this,$P=arguments;return new Promise(function(tme,ame){var nme=x_.apply(eme,$P);function rme(ome){asyncGeneratorStep(nme,tme,ame,rme,ime,"next",ome)}function ime(ome){asyncGeneratorStep(nme,tme,ame,rme,ime,"throw",ome)}rme(void 0)})}}var fullClone=_objectSpread2$4({},ReactDOM$1),version$2=fullClone.version,reactRender=fullClone.render,unmountComponentAtNode=fullClone.unmountComponentAtNode,createRoot;try{var mainVersion=Number((version$2||"").split(".")[0]);mainVersion>=18&&(createRoot=fullClone.createRoot)}catch{}function toggleWarning(x_){var eme=fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;eme&&_typeof$4(eme)==="object"&&(eme.usingClientEntryPoint=x_)}var MARK="__rc_react_root__";function modernRender(x_,eme){toggleWarning(!0);var $P=eme[MARK]||createRoot(eme);toggleWarning(!1),$P.render(x_),eme[MARK]=$P}function legacyRender(x_,eme){reactRender(x_,eme)}function render$3(x_,eme){if(createRoot){modernRender(x_,eme);return}legacyRender(x_,eme)}function modernUnmount(x_){return _modernUnmount.apply(this,arguments)}function _modernUnmount(){return _modernUnmount=_asyncToGenerator(_regeneratorRuntime$1().mark(function x_(eme){return _regeneratorRuntime$1().wrap(function(tme){for(;;)switch(tme.prev=tme.next){case 0:return tme.abrupt("return",Promise.resolve().then(function(){var ame;(ame=eme[MARK])===null||ame===void 0||ame.unmount(),delete eme[MARK]}));case 1:case"end":return tme.stop()}},x_)})),_modernUnmount.apply(this,arguments)}function legacyUnmount(x_){unmountComponentAtNode(x_)}function unmount$1(x_){return _unmount.apply(this,arguments)}function _unmount(){return _unmount=_asyncToGenerator(_regeneratorRuntime$1().mark(function x_(eme){return _regeneratorRuntime$1().wrap(function(tme){for(;;)switch(tme.prev=tme.next){case 0:if(createRoot===void 0){tme.next=2;break}return tme.abrupt("return",modernUnmount(eme));case 2:legacyUnmount(eme);case 3:case"end":return tme.stop()}},x_)})),_unmount.apply(this,arguments)}const getCollapsedHeight=()=>({height:0,opacity:0}),getRealHeight=x_=>{const{scrollHeight:eme}=x_;return{height:eme,opacity:1}},getCurrentHeight=x_=>({height:x_?x_.offsetHeight:0}),skipOpacityTransition=(x_,eme)=>(eme==null?void 0:eme.deadline)===!0||eme.propertyName==="height",initCollapseMotion=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultPrefixCls}-motion-collapse`,onAppearStart:getCollapsedHeight,onEnterStart:getCollapsedHeight,onAppearActive:getRealHeight,onEnterActive:getRealHeight,onLeaveStart:getCurrentHeight,onLeaveActive:getCollapsedHeight,onAppearEnd:skipOpacityTransition,onEnterEnd:skipOpacityTransition,onLeaveEnd:skipOpacityTransition,motionDeadline:500}},getTransitionName=(x_,eme,$P)=>$P!==void 0?$P:`${x_}-${eme}`,isVisible$1=function(x_){if(!x_)return!1;if(x_ instanceof Element){if(x_.offsetParent)return!0;if(x_.getBBox){var eme=x_.getBBox(),$P=eme.width,tme=eme.height;if($P||tme)return!0}if(x_.getBoundingClientRect){var ame=x_.getBoundingClientRect(),nme=ame.width,rme=ame.height;if(nme||rme)return!0}}return!1},genWaveStyle=x_=>{const{componentCls:eme,colorPrimary:$P}=x_;return{[eme]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${$P})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${x_.motionEaseOutCirc}`,`opacity 2s ${x_.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${x_.motionDurationSlow} ${x_.motionEaseInOut}`,`opacity ${x_.motionDurationSlow} ${x_.motionEaseInOut}`].join(",")}}}}},useStyle$w=genComponentStyleHook("Wave",x_=>[genWaveStyle(x_)]),TARGET_CLS=`${defaultPrefixCls}-wave-target`;function isValidWaveColor(x_){return x_&&x_!=="#fff"&&x_!=="#ffffff"&&x_!=="rgb(255, 255, 255)"&&x_!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(x_)&&x_!=="transparent"}function getTargetWaveColor(x_){const{borderTopColor:eme,borderColor:$P,backgroundColor:tme}=getComputedStyle(x_);return isValidWaveColor(eme)?eme:isValidWaveColor($P)?$P:isValidWaveColor(tme)?tme:null}function validateNum(x_){return Number.isNaN(x_)?0:x_}const WaveEffect=x_=>{const{className:eme,target:$P,component:tme}=x_,ame=reactExports.useRef(null),[nme,rme]=reactExports.useState(null),[ime,ome]=reactExports.useState([]),[lme,sme]=reactExports.useState(0),[cme,dme]=reactExports.useState(0),[ume,fme]=reactExports.useState(0),[pme,hme]=reactExports.useState(0),[bme,mme]=reactExports.useState(!1),vme={left:lme,top:cme,width:ume,height:pme,borderRadius:ime.map(_me=>`${_me}px`).join(" ")};nme&&(vme["--wave-color"]=nme);function gme(){const _me=getComputedStyle($P);rme(getTargetWaveColor($P));const $me=_me.position==="static",{borderLeftWidth:Cme,borderTopWidth:Sme}=_me;sme($me?$P.offsetLeft:validateNum(-parseFloat(Cme))),dme($me?$P.offsetTop:validateNum(-parseFloat(Sme))),fme($P.offsetWidth),hme($P.offsetHeight);const{borderTopLeftRadius:Eme,borderTopRightRadius:xme,borderBottomLeftRadius:Tme,borderBottomRightRadius:Ome}=_me;ome([Eme,xme,Ome,Tme].map(Rme=>validateNum(parseFloat(Rme))))}if(reactExports.useEffect(()=>{if($P){const _me=wrapperRaf(()=>{gme(),mme(!0)});let $me;return typeof ResizeObserver<"u"&&($me=new ResizeObserver(gme),$me.observe($P)),()=>{wrapperRaf.cancel(_me),$me==null||$me.disconnect()}}},[]),!bme)return null;const yme=(tme==="Checkbox"||tme==="Radio")&&($P==null?void 0:$P.classList.contains(TARGET_CLS));return reactExports.createElement(CSSMotion,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_me,$me)=>{var Cme;if($me.deadline||$me.propertyName==="opacity"){const Sme=(Cme=ame.current)===null||Cme===void 0?void 0:Cme.parentElement;unmount$1(Sme).then(()=>{Sme==null||Sme.remove()})}return!1}},(_me,$me)=>{let{className:Cme}=_me;return reactExports.createElement("div",{ref:composeRef(ame,$me),className:classNames(eme,Cme,{"wave-quick":yme}),style:vme})})},showWaveEffect=(x_,eme)=>{var $P;const{component:tme}=eme;if(tme==="Checkbox"&&!(!(($P=x_.querySelector("input"))===null||$P===void 0)&&$P.checked))return;const ame=document.createElement("div");ame.style.position="absolute",ame.style.left="0px",ame.style.top="0px",x_==null||x_.insertBefore(ame,x_==null?void 0:x_.firstChild),render$3(reactExports.createElement(WaveEffect,Object.assign({},eme,{target:x_})),ame)},useWave=(x_,eme,$P)=>{const{wave:tme}=reactExports.useContext(ConfigContext),[,ame,nme]=useToken$1(),rme=useEvent(lme=>{const sme=x_.current;if(tme!=null&&tme.disabled||!sme)return;const cme=sme.querySelector(`.${TARGET_CLS}`)||sme,{showEffect:dme}=tme||{};(dme||showWaveEffect)(cme,{className:eme,token:ame,component:$P,event:lme,hashId:nme})}),ime=reactExports.useRef();return lme=>{wrapperRaf.cancel(ime.current),ime.current=wrapperRaf(()=>{rme(lme)})}},Wave=x_=>{const{children:eme,disabled:$P,component:tme}=x_,{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=reactExports.useRef(null),rme=ame("wave"),[,ime]=useStyle$w(rme),ome=useWave(nme,classNames(rme,ime),tme);if(React__default.useEffect(()=>{const sme=nme.current;if(!sme||sme.nodeType!==1||$P)return;const cme=dme=>{!isVisible$1(dme.target)||!sme.getAttribute||sme.getAttribute("disabled")||sme.disabled||sme.className.includes("disabled")||sme.className.includes("-leave")||ome(dme)};return sme.addEventListener("click",cme,!0),()=>{sme.removeEventListener("click",cme,!0)}},[$P]),!React__default.isValidElement(eme))return eme??null;const lme=supportRef(eme)?composeRef(eme.ref,nme):nme;return cloneElement(eme,{ref:lme})},useSize=x_=>{const eme=React__default.useContext(SizeContext);return React__default.useMemo(()=>x_?typeof x_=="string"?x_??eme:x_ instanceof Function?x_(eme):eme:eme,[x_,eme])},genSpaceCompactStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},genSpaceStyle=x_=>{const{componentCls:eme,antCls:$P}=x_;return{[eme]:{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"}},[`${eme}-item:empty`]:{display:"none"},[`${eme}-item > ${$P}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},genSpaceGapStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{"&-gap-row-small":{rowGap:x_.spaceGapSmallSize},"&-gap-row-middle":{rowGap:x_.spaceGapMiddleSize},"&-gap-row-large":{rowGap:x_.spaceGapLargeSize},"&-gap-col-small":{columnGap:x_.spaceGapSmallSize},"&-gap-col-middle":{columnGap:x_.spaceGapMiddleSize},"&-gap-col-large":{columnGap:x_.spaceGapLargeSize}}}},useStyle$v=genStyleHooks("Space",x_=>{const eme=merge$5(x_,{spaceGapSmallSize:x_.paddingXS,spaceGapMiddleSize:x_.padding,spaceGapLargeSize:x_.paddingLG});return[genSpaceStyle(eme),genSpaceGapStyle(eme),genSpaceCompactStyle(eme)]},()=>({}),{resetStyle:!1});var __rest$_=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const SpaceCompactItemContext=reactExports.createContext(null),useCompactItemContext=(x_,eme)=>{const $P=reactExports.useContext(SpaceCompactItemContext),tme=reactExports.useMemo(()=>{if(!$P)return"";const{compactDirection:ame,isFirstItem:nme,isLastItem:rme}=$P,ime=ame==="vertical"?"-vertical-":"-";return classNames(`${x_}-compact${ime}item`,{[`${x_}-compact${ime}first-item`]:nme,[`${x_}-compact${ime}last-item`]:rme,[`${x_}-compact${ime}item-rtl`]:eme==="rtl"})},[x_,eme,$P]);return{compactSize:$P==null?void 0:$P.compactSize,compactDirection:$P==null?void 0:$P.compactDirection,compactItemClassnames:tme}},NoCompactStyle=x_=>{let{children:eme}=x_;return reactExports.createElement(SpaceCompactItemContext.Provider,{value:null},eme)},CompactItem=x_=>{var{children:eme}=x_,$P=__rest$_(x_,["children"]);return reactExports.createElement(SpaceCompactItemContext.Provider,{value:$P},eme)},Compact$2=x_=>{const{getPrefixCls:eme,direction:$P}=reactExports.useContext(ConfigContext),{size:tme,direction:ame,block:nme,prefixCls:rme,className:ime,rootClassName:ome,children:lme}=x_,sme=__rest$_(x_,["size","direction","block","prefixCls","className","rootClassName","children"]),cme=useSize(vme=>tme??vme),dme=eme("space-compact",rme),[ume,fme]=useStyle$v(dme),pme=classNames(dme,fme,{[`${dme}-rtl`]:$P==="rtl",[`${dme}-block`]:nme,[`${dme}-vertical`]:ame==="vertical"},ime,ome),hme=reactExports.useContext(SpaceCompactItemContext),bme=toArray$6(lme),mme=reactExports.useMemo(()=>bme.map((vme,gme)=>{const yme=(vme==null?void 0:vme.key)||`${dme}-item-${gme}`;return reactExports.createElement(CompactItem,{key:yme,compactSize:cme,compactDirection:ame,isFirstItem:gme===0&&(!hme||(hme==null?void 0:hme.isFirstItem)),isLastItem:gme===bme.length-1&&(!hme||(hme==null?void 0:hme.isLastItem))},vme)}),[tme,bme,hme]);return bme.length===0?null:ume(reactExports.createElement("div",Object.assign({className:pme},sme),mme))};var __rest$Z=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const GroupSizeContext=reactExports.createContext(void 0),ButtonGroup=x_=>{const{getPrefixCls:eme,direction:$P}=reactExports.useContext(ConfigContext),{prefixCls:tme,size:ame,className:nme}=x_,rme=__rest$Z(x_,["prefixCls","size","className"]),ime=eme("btn-group",tme),[,,ome]=useToken$1();let lme="";switch(ame){case"large":lme="lg";break;case"small":lme="sm";break}const sme=classNames(ime,{[`${ime}-${lme}`]:lme,[`${ime}-rtl`]:$P==="rtl"},nme,ome);return reactExports.createElement(GroupSizeContext.Provider,{value:ame},reactExports.createElement("div",Object.assign({},rme,{className:sme})))},rxTwoCNChar=/^[\u4E00-\u9FA5]{2}$/,isTwoCNChar=rxTwoCNChar.test.bind(rxTwoCNChar);function isString$9(x_){return typeof x_=="string"}function isUnBorderedButtonVariant(x_){return x_==="text"||x_==="link"}function splitCNCharsBySpace(x_,eme){if(x_==null)return;const $P=eme?" ":"";return typeof x_!="string"&&typeof x_!="number"&&isString$9(x_.type)&&isTwoCNChar(x_.props.children)?cloneElement(x_,{children:x_.props.children.split("").join($P)}):isString$9(x_)?isTwoCNChar(x_)?React__default.createElement("span",null,x_.split("").join($P)):React__default.createElement("span",null,x_):isFragment(x_)?React__default.createElement("span",null,x_):x_}function spaceChildren(x_,eme){let $P=!1;const tme=[];return React__default.Children.forEach(x_,ame=>{const nme=typeof ame,rme=nme==="string"||nme==="number";if($P&&rme){const ime=tme.length-1,ome=tme[ime];tme[ime]=`${ome}${ame}`}else tme.push(ame);$P=rme}),React__default.Children.map(tme,ame=>splitCNCharsBySpace(ame,eme))}const IconWrapper=reactExports.forwardRef((x_,eme)=>{const{className:$P,style:tme,children:ame,prefixCls:nme}=x_,rme=classNames(`${nme}-icon`,$P);return jsx("span",{ref:eme,className:rme,style:tme,children:ame})}),InnerLoadingIcon=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,style:ame,iconClassName:nme}=x_,rme=classNames(`${$P}-loading-icon`,tme);return jsx(IconWrapper,{prefixCls:$P,className:rme,style:ame,ref:eme,children:jsx(RefIcon$j,{className:nme})})}),getCollapsedWidth=()=>({width:0,opacity:0,transform:"scale(0)"}),getRealWidth=x_=>({width:x_.scrollWidth,opacity:1,transform:"scale(1)"}),LoadingIcon=x_=>{const{prefixCls:eme,loading:$P,existIcon:tme,className:ame,style:nme}=x_,rme=!!$P;return tme?jsx(InnerLoadingIcon,{prefixCls:eme,className:ame,style:nme}):jsx(CSSMotion,{visible:rme,motionName:`${eme}-loading-icon-motion`,motionLeave:rme,removeOnLeave:!0,onAppearStart:getCollapsedWidth,onAppearActive:getRealWidth,onEnterStart:getCollapsedWidth,onEnterActive:getRealWidth,onLeaveStart:getRealWidth,onLeaveActive:getCollapsedWidth,children:(ime,ome)=>{let{className:lme,style:sme}=ime;return jsx(InnerLoadingIcon,{prefixCls:eme,className:ame,style:Object.assign(Object.assign({},nme),sme),ref:ome,iconClassName:lme})}})},genButtonBorderStyle=(x_,eme)=>({[`> span, > ${x_}`]:{"&:not(:last-child)":{[`&, & > ${x_}`]:{"&:not(:disabled)":{borderInlineEndColor:eme}}},"&:not(:first-child)":{[`&, & > ${x_}`]:{"&:not(:disabled)":{borderInlineStartColor:eme}}}}}),genGroupStyle$1=x_=>{const{componentCls:eme,fontSize:$P,lineWidth:tme,groupBorderColor:ame,colorErrorHover:nme}=x_;return{[`${eme}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${eme}`]:{"&:not(:last-child)":{[`&, & > ${eme}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:x_.calc(tme).mul(-1).equal(),[`&, & > ${eme}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[eme]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${eme}-icon-only`]:{fontSize:$P}},genButtonBorderStyle(`${eme}-primary`,ame),genButtonBorderStyle(`${eme}-danger`,nme)]}},round$1=Math.round;function splitColorStr(x_,eme){const $P=x_.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],tme=$P.map(ame=>parseFloat(ame));for(let ame=0;ame<3;ame+=1)tme[ame]=eme(tme[ame]||0,$P[ame]||"",ame);return $P[3]?tme[3]=$P[3].includes("%")?tme[3]/100:tme[3]:tme[3]=1,tme}const parseHSVorHSL=(x_,eme,$P)=>$P===0?x_:x_/100;function limitRange(x_,eme){const $P=eme||255;return x_>$P?$P:x_<0?0:x_}class FastColor{constructor(eme){_defineProperty$7(this,"isValid",!0),_defineProperty$7(this,"r",0),_defineProperty$7(this,"g",0),_defineProperty$7(this,"b",0),_defineProperty$7(this,"a",1),_defineProperty$7(this,"_h",void 0),_defineProperty$7(this,"_s",void 0),_defineProperty$7(this,"_l",void 0),_defineProperty$7(this,"_v",void 0),_defineProperty$7(this,"_max",void 0),_defineProperty$7(this,"_min",void 0),_defineProperty$7(this,"_brightness",void 0);function $P(tme){return tme[0]in eme&&tme[1]in eme&&tme[2]in eme}if(eme)if(typeof eme=="string"){let ame=function(nme){return tme.startsWith(nme)};const tme=eme.trim();/^#?[A-F\d]{3,8}$/i.test(tme)?this.fromHexString(tme):ame("rgb")?this.fromRgbString(tme):ame("hsl")?this.fromHslString(tme):(ame("hsv")||ame("hsb"))&&this.fromHsvString(tme)}else if(eme instanceof FastColor)this.r=eme.r,this.g=eme.g,this.b=eme.b,this.a=eme.a,this._h=eme._h,this._s=eme._s,this._l=eme._l,this._v=eme._v;else if($P("rgb"))this.r=limitRange(eme.r),this.g=limitRange(eme.g),this.b=limitRange(eme.b),this.a=typeof eme.a=="number"?limitRange(eme.a,1):1;else if($P("hsl"))this.fromHsl(eme);else if($P("hsv"))this.fromHsv(eme);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(eme))}setR(eme){return this._sc("r",eme)}setG(eme){return this._sc("g",eme)}setB(eme){return this._sc("b",eme)}setA(eme){return this._sc("a",eme,1)}setHue(eme){const $P=this.toHsv();return $P.h=eme,this._c($P)}getLuminance(){function eme(nme){const rme=nme/255;return rme<=.03928?rme/12.92:Math.pow((rme+.055)/1.055,2.4)}const $P=eme(this.r),tme=eme(this.g),ame=eme(this.b);return .2126*$P+.7152*tme+.0722*ame}getHue(){if(typeof this._h>"u"){const eme=this.getMax()-this.getMin();eme===0?this._h=0:this._h=round$1(60*(this.r===this.getMax()?(this.g-this.b)/eme+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/eme+2:(this.r-this.g)/eme+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const eme=this.getMax()-this.getMin();eme===0?this._s=0:this._s=eme/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(eme=10){const $P=this.getHue(),tme=this.getSaturation();let ame=this.getLightness()-eme/100;return ame<0&&(ame=0),this._c({h:$P,s:tme,l:ame,a:this.a})}lighten(eme=10){const $P=this.getHue(),tme=this.getSaturation();let ame=this.getLightness()+eme/100;return ame>1&&(ame=1),this._c({h:$P,s:tme,l:ame,a:this.a})}mix(eme,$P=50){const tme=this._c(eme),ame=$P/100,nme=ime=>(tme[ime]-this[ime])*ame+this[ime],rme={r:round$1(nme("r")),g:round$1(nme("g")),b:round$1(nme("b")),a:round$1(nme("a")*100)/100};return this._c(rme)}tint(eme=10){return this.mix({r:255,g:255,b:255,a:1},eme)}shade(eme=10){return this.mix({r:0,g:0,b:0,a:1},eme)}onBackground(eme){const $P=this._c(eme),tme=this.a+$P.a*(1-this.a),ame=nme=>round$1((this[nme]*this.a+$P[nme]*$P.a*(1-this.a))/tme);return this._c({r:ame("r"),g:ame("g"),b:ame("b"),a:tme})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(eme){return this.r===eme.r&&this.g===eme.g&&this.b===eme.b&&this.a===eme.a}clone(){return this._c(this)}toHexString(){let eme="#";const $P=(this.r||0).toString(16);eme+=$P.length===2?$P:"0"+$P;const tme=(this.g||0).toString(16);eme+=tme.length===2?tme:"0"+tme;const ame=(this.b||0).toString(16);if(eme+=ame.length===2?ame:"0"+ame,typeof this.a=="number"&&this.a>=0&&this.a<1){const nme=round$1(this.a*255).toString(16);eme+=nme.length===2?nme:"0"+nme}return eme}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const eme=this.getHue(),$P=round$1(this.getSaturation()*100),tme=round$1(this.getLightness()*100);return this.a!==1?`hsla(${eme},${$P}%,${tme}%,${this.a})`:`hsl(${eme},${$P}%,${tme}%)`}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(eme,$P,tme){const ame=this.clone();return ame[eme]=limitRange($P,tme),ame}_c(eme){return new this.constructor(eme)}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(eme){const $P=eme.replace("#","");function tme(ame,nme){return parseInt($P[ame]+$P[nme||ame],16)}$P.length<6?(this.r=tme(0),this.g=tme(1),this.b=tme(2),this.a=$P[3]?tme(3)/255:1):(this.r=tme(0,1),this.g=tme(2,3),this.b=tme(4,5),this.a=$P[6]?tme(6,7)/255:1)}fromHsl({h:eme,s:$P,l:tme,a:ame}){if(this._h=eme%360,this._s=$P,this._l=tme,this.a=typeof ame=="number"?ame:1,$P<=0){const dme=round$1(tme*255);this.r=dme,this.g=dme,this.b=dme}let nme=0,rme=0,ime=0;const ome=eme/60,lme=(1-Math.abs(2*tme-1))*$P,sme=lme*(1-Math.abs(ome%2-1));ome>=0&&ome<1?(nme=lme,rme=sme):ome>=1&&ome<2?(nme=sme,rme=lme):ome>=2&&ome<3?(rme=lme,ime=sme):ome>=3&&ome<4?(rme=sme,ime=lme):ome>=4&&ome<5?(nme=sme,ime=lme):ome>=5&&ome<6&&(nme=lme,ime=sme);const cme=tme-lme/2;this.r=round$1((nme+cme)*255),this.g=round$1((rme+cme)*255),this.b=round$1((ime+cme)*255)}fromHsv({h:eme,s:$P,v:tme,a:ame}){this._h=eme%360,this._s=$P,this._v=tme,this.a=typeof ame=="number"?ame:1;const nme=round$1(tme*255);if(this.r=nme,this.g=nme,this.b=nme,$P<=0)return;const rme=eme/60,ime=Math.floor(rme),ome=rme-ime,lme=round$1(tme*(1-$P)*255),sme=round$1(tme*(1-$P*ome)*255),cme=round$1(tme*(1-$P*(1-ome))*255);switch(ime){case 0:this.g=cme,this.b=lme;break;case 1:this.r=sme,this.b=lme;break;case 2:this.r=lme,this.b=cme;break;case 3:this.r=lme,this.g=sme;break;case 4:this.r=cme,this.g=lme;break;case 5:default:this.g=lme,this.b=sme;break}}fromHsvString(eme){const $P=splitColorStr(eme,parseHSVorHSL);this.fromHsv({h:$P[0],s:$P[1],v:$P[2],a:$P[3]})}fromHslString(eme){const $P=splitColorStr(eme,parseHSVorHSL);this.fromHsl({h:$P[0],s:$P[1],l:$P[2],a:$P[3]})}fromRgbString(eme){const $P=splitColorStr(eme,(tme,ame)=>ame.includes("%")?round$1(tme/100*255):tme);this.r=$P[0],this.g=$P[1],this.b=$P[2],this.a=$P[3]}}var _excluded$M=["b"],_excluded2$a=["v"],getRoundNumber$1=function(eme){return Math.round(Number(eme||0))},convertHsb2Hsv=function(eme){if(eme instanceof FastColor)return eme;if(eme&&_typeof$4(eme)==="object"&&"h"in eme&&"b"in eme){var $P=eme,tme=$P.b,ame=_objectWithoutProperties$6($P,_excluded$M);return _objectSpread2$4(_objectSpread2$4({},ame),{},{v:tme})}return typeof eme=="string"&&/hsb/.test(eme)?eme.replace(/hsb/,"hsv"):eme},Color$1=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme){return _classCallCheck$d(this,$P),eme.call(this,convertHsb2Hsv(tme))}return _createClass$b($P,[{key:"toHsbString",value:function(){var ame=this.toHsb(),nme=getRoundNumber$1(ame.s*100),rme=getRoundNumber$1(ame.b*100),ime=getRoundNumber$1(ame.h),ome=ame.a,lme="hsb(".concat(ime,", ").concat(nme,"%, ").concat(rme,"%)"),sme="hsba(".concat(ime,", ").concat(nme,"%, ").concat(rme,"%, ").concat(ome.toFixed(ome===0?0:2),")");return ome===1?lme:sme}},{key:"toHsb",value:function(){var ame=this.toHsv(),nme=ame.v,rme=_objectWithoutProperties$6(ame,_excluded2$a);return _objectSpread2$4(_objectSpread2$4({},rme),{},{b:nme,a:this.a})}}]),$P}(FastColor),ColorPickerPrefixCls="rc-color-picker",generateColor$1=function(eme){return eme instanceof Color$1?eme:new Color$1(eme)},defaultColor=generateColor$1("#1677ff"),calculateColor=function(eme){var $P=eme.offset,tme=eme.targetRef,ame=eme.containerRef,nme=eme.color,rme=eme.type,ime=ame.current.getBoundingClientRect(),ome=ime.width,lme=ime.height,sme=tme.current.getBoundingClientRect(),cme=sme.width,dme=sme.height,ume=cme/2,fme=dme/2,pme=($P.x+ume)/ome,hme=1-($P.y+fme)/lme,bme=nme.toHsb(),mme=pme,vme=($P.x+ume)/ome*360;if(rme)switch(rme){case"hue":return generateColor$1(_objectSpread2$4(_objectSpread2$4({},bme),{},{h:vme<=0?0:vme}));case"alpha":return generateColor$1(_objectSpread2$4(_objectSpread2$4({},bme),{},{a:mme<=0?0:mme}))}return generateColor$1({h:bme.h,s:pme<=0?0:pme,b:hme>=1?1:hme,a:bme.a})},calcOffset=function(eme,$P){var tme=eme.toHsb();switch($P){case"hue":return{x:tme.h/360*100,y:50};case"alpha":return{x:eme.a*100,y:50};default:return{x:tme.s*100,y:(1-tme.b)*100}}},ColorBlock=function(eme){var $P=eme.color,tme=eme.prefixCls,ame=eme.className,nme=eme.style,rme=eme.onClick,ime="".concat(tme,"-color-block");return React__default.createElement("div",{className:classNames(ime,ame),style:nme,onClick:rme},React__default.createElement("div",{className:"".concat(ime,"-inner"),style:{background:$P}}))};function getPosition$1(x_){var eme="touches"in x_?x_.touches[0]:x_,$P=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,tme=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:eme.pageX-$P,pageY:eme.pageY-tme}}function useColorDrag(x_){var eme=x_.targetRef,$P=x_.containerRef,tme=x_.direction,ame=x_.onDragChange,nme=x_.onDragChangeComplete,rme=x_.calculate,ime=x_.color,ome=x_.disabledDrag,lme=reactExports.useState({x:0,y:0}),sme=_slicedToArray$2(lme,2),cme=sme[0],dme=sme[1],ume=reactExports.useRef(null),fme=reactExports.useRef(null);reactExports.useEffect(function(){dme(rme())},[ime]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",ume.current),document.removeEventListener("mouseup",fme.current),document.removeEventListener("touchmove",ume.current),document.removeEventListener("touchend",fme.current),ume.current=null,fme.current=null}},[]);var pme=function(gme){var yme=getPosition$1(gme),_me=yme.pageX,$me=yme.pageY,Cme=$P.current.getBoundingClientRect(),Sme=Cme.x,Eme=Cme.y,xme=Cme.width,Tme=Cme.height,Ome=eme.current.getBoundingClientRect(),Rme=Ome.width,Nme=Ome.height,Ime=Rme/2,Pme=Nme/2,Mme=Math.max(0,Math.min(_me-Sme,xme))-Ime,kme=Math.max(0,Math.min($me-Eme,Tme))-Pme,Bme={x:Mme,y:tme==="x"?cme.y:kme};if(Rme===0&&Nme===0||Rme!==Nme)return!1;ame==null||ame(Bme)},hme=function(gme){gme.preventDefault(),pme(gme)},bme=function(gme){gme.preventDefault(),document.removeEventListener("mousemove",ume.current),document.removeEventListener("mouseup",fme.current),document.removeEventListener("touchmove",ume.current),document.removeEventListener("touchend",fme.current),ume.current=null,fme.current=null,nme==null||nme()},mme=function(gme){document.removeEventListener("mousemove",ume.current),document.removeEventListener("mouseup",fme.current),!ome&&(pme(gme),document.addEventListener("mousemove",hme),document.addEventListener("mouseup",bme),document.addEventListener("touchmove",hme),document.addEventListener("touchend",bme),ume.current=hme,fme.current=bme)};return[cme,mme]}var Handler=function(eme){var $P=eme.size,tme=$P===void 0?"default":$P,ame=eme.color,nme=eme.prefixCls;return React__default.createElement("div",{className:classNames("".concat(nme,"-handler"),_defineProperty$7({},"".concat(nme,"-handler-sm"),tme==="small")),style:{backgroundColor:ame}})},Palette=function(eme){var $P=eme.children,tme=eme.style,ame=eme.prefixCls;return React__default.createElement("div",{className:"".concat(ame,"-palette"),style:_objectSpread2$4({position:"relative"},tme)},$P)},Transform=reactExports.forwardRef(function(x_,eme){var $P=x_.children,tme=x_.x,ame=x_.y;return jsx("div",{ref:eme,style:{position:"absolute",left:"".concat(tme,"%"),top:"".concat(ame,"%"),zIndex:1,transform:"translate(-50%, -50%)"},children:$P})}),Picker$2=function(eme){var $P=eme.color,tme=eme.onChange,ame=eme.prefixCls,nme=eme.onChangeComplete,rme=eme.disabled,ime=reactExports.useRef(),ome=reactExports.useRef(),lme=reactExports.useRef($P),sme=useEvent(function(pme){var hme=calculateColor({offset:pme,targetRef:ome,containerRef:ime,color:$P});lme.current=hme,tme(hme)}),cme=useColorDrag({color:$P,containerRef:ime,targetRef:ome,calculate:function(){return calcOffset($P)},onDragChange:sme,onDragChangeComplete:function(){return nme==null?void 0:nme(lme.current)},disabledDrag:rme}),dme=_slicedToArray$2(cme,2),ume=dme[0],fme=dme[1];return jsx("div",{ref:ime,className:"".concat(ame,"-select"),onMouseDown:fme,onTouchStart:fme,children:jsxs(Palette,{prefixCls:ame,children:[jsx(Transform,{x:ume.x,y:ume.y,ref:ome,children:jsx(Handler,{color:$P.toRgbString(),prefixCls:ame})}),jsx("div",{className:"".concat(ame,"-saturation"),style:{backgroundColor:"hsl(".concat($P.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})]})})},useColorState=function(eme,$P){var tme=useMergedState(eme,{value:$P}),ame=_slicedToArray$2(tme,2),nme=ame[0],rme=ame[1],ime=reactExports.useMemo(function(){return generateColor$1(nme)},[nme]);return[ime,rme]},Gradient=function(eme){var $P=eme.colors,tme=eme.children,ame=eme.direction,nme=ame===void 0?"to right":ame,rme=eme.type,ime=eme.prefixCls,ome=reactExports.useMemo(function(){return $P.map(function(lme,sme){var cme=generateColor$1(lme);return rme==="alpha"&&sme===$P.length-1&&(cme=new Color$1(cme.setA(1))),cme.toRgbString()}).join(",")},[$P,rme]);return jsx("div",{className:"".concat(ime,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(nme,", ").concat(ome,")")},children:tme})},Slider$3=function(eme){var $P=eme.prefixCls,tme=eme.colors,ame=eme.disabled,nme=eme.onChange,rme=eme.onChangeComplete,ime=eme.color,ome=eme.type,lme=reactExports.useRef(),sme=reactExports.useRef(),cme=reactExports.useRef(ime),dme=function(yme){return ome==="hue"?yme.getHue():yme.a*100},ume=useEvent(function(gme){var yme=calculateColor({offset:gme,targetRef:sme,containerRef:lme,color:ime,type:ome});cme.current=yme,nme(dme(yme))}),fme=useColorDrag({color:ime,targetRef:sme,containerRef:lme,calculate:function(){return calcOffset(ime,ome)},onDragChange:ume,onDragChangeComplete:function(){rme(dme(cme.current))},direction:"x",disabledDrag:ame}),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme=React__default.useMemo(function(){if(ome==="hue"){var gme=ime.toHsb();gme.s=1,gme.b=1,gme.a=1;var yme=new Color$1(gme);return yme}return ime},[ime,ome]),vme=React__default.useMemo(function(){return tme.map(function(gme){return"".concat(gme.color," ").concat(gme.percent,"%")})},[tme]);return jsx("div",{ref:lme,className:classNames("".concat($P,"-slider"),"".concat($P,"-slider-").concat(ome)),onMouseDown:bme,onTouchStart:bme,children:jsxs(Palette,{prefixCls:$P,children:[jsx(Transform,{x:hme.x,y:hme.y,ref:sme,children:jsx(Handler,{size:"small",color:mme.toHexString(),prefixCls:$P})}),jsx(Gradient,{colors:vme,type:ome,prefixCls:$P})]})})};function useComponent(x_){return reactExports.useMemo(function(){var eme=x_||{},$P=eme.slider;return[$P||Slider$3]},[x_])}var HUE_COLORS=[{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}],ColorPicker$2=reactExports.forwardRef(function(x_,eme){var $P=x_.value,tme=x_.defaultValue,ame=x_.prefixCls,nme=ame===void 0?ColorPickerPrefixCls:ame,rme=x_.onChange,ime=x_.onChangeComplete,ome=x_.className,lme=x_.style,sme=x_.panelRender,cme=x_.disabledAlpha,dme=cme===void 0?!1:cme,ume=x_.disabled,fme=ume===void 0?!1:ume,pme=x_.components,hme=useComponent(pme),bme=_slicedToArray$2(hme,1),mme=bme[0],vme=useColorState(tme||defaultColor,$P),gme=_slicedToArray$2(vme,2),yme=gme[0],_me=gme[1],$me=reactExports.useMemo(function(){return yme.setA(1).toRgbString()},[yme]),Cme=function(kme,Bme){$P||_me(kme),rme==null||rme(kme,Bme)},Sme=function(kme){return new Color$1(yme.setHue(kme))},Eme=function(kme){return new Color$1(yme.setA(kme/100))},xme=function(kme){Cme(Sme(kme),{type:"hue",value:kme})},Tme=function(kme){Cme(Eme(kme),{type:"alpha",value:kme})},Ome=function(kme){ime&&ime(Sme(kme))},Rme=function(kme){ime&&ime(Eme(kme))},Nme=classNames("".concat(nme,"-panel"),ome,_defineProperty$7({},"".concat(nme,"-panel-disabled"),fme)),Ime={prefixCls:nme,disabled:fme,color:yme},Pme=jsxs(Fragment,{children:[jsx(Picker$2,{onChange:Cme,...Ime,onChangeComplete:ime}),jsxs("div",{className:"".concat(nme,"-slider-container"),children:[jsxs("div",{className:classNames("".concat(nme,"-slider-group"),_defineProperty$7({},"".concat(nme,"-slider-group-disabled-alpha"),dme)),children:[jsx(mme,{...Ime,type:"hue",colors:HUE_COLORS,min:0,max:359,value:yme.getHue(),onChange:xme,onChangeComplete:Ome}),!dme&&jsx(mme,{...Ime,type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:$me}],min:0,max:100,value:yme.a*100,onChange:Tme,onChangeComplete:Rme})]}),jsx(ColorBlock,{color:yme.toRgbString(),prefixCls:nme})]})]});return jsx("div",{className:Nme,style:lme,ref:eme,children:typeof sme=="function"?sme(Pme):Pme})});const toHexFormat=(x_,eme)=>(x_==null?void 0:x_.replace(/[^\w/]/g,"").slice(0,eme?8:6))||"",getHex=(x_,eme)=>x_?toHexFormat(x_,eme):"";let AggregationColor=function(){function x_(eme){_classCallCheck$d(this,x_);var $P;if(this.cleared=!1,eme instanceof x_){this.metaColor=eme.metaColor.clone(),this.colors=($P=eme.colors)===null||$P===void 0?void 0:$P.map(ame=>({color:new x_(ame.color),percent:ame.percent})),this.cleared=eme.cleared;return}const tme=Array.isArray(eme);tme&&eme.length?(this.colors=eme.map(ame=>{let{color:nme,percent:rme}=ame;return{color:new x_(nme),percent:rme}}),this.metaColor=new Color$1(this.colors[0].color.metaColor)):this.metaColor=new Color$1(tme?"":eme),(!eme||tme&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _createClass$b(x_,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return getHex(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:$P}=this;return $P?`linear-gradient(90deg, ${$P.map(ame=>`${ame.color.toRgbString()} ${ame.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function($P){return!$P||this.isGradient()!==$P.isGradient()?!1:this.isGradient()?this.colors.length===$P.colors.length&&this.colors.every((tme,ame)=>{const nme=$P.colors[ame];return tme.percent===nme.percent&&tme.color.equals(nme.color)}):this.toHexString()===$P.toHexString()}}])}();var RightOutlined$1={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"},RightOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:RightOutlined$1}))},RefIcon$i=reactExports.forwardRef(RightOutlined),PanelContent=React__default.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.forceRender,ame=x_.className,nme=x_.style,rme=x_.children,ime=x_.isActive,ome=x_.role,lme=x_.classNames,sme=x_.styles,cme=React__default.useState(ime||tme),dme=_slicedToArray$2(cme,2),ume=dme[0],fme=dme[1];return React__default.useEffect(function(){(tme||ime)&&fme(!0)},[tme,ime]),ume?React__default.createElement("div",{ref:eme,className:classNames("".concat($P,"-content"),_defineProperty$7(_defineProperty$7({},"".concat($P,"-content-active"),ime),"".concat($P,"-content-inactive"),!ime),ame),style:nme,role:ome},React__default.createElement("div",{className:classNames("".concat($P,"-content-box"),lme==null?void 0:lme.body),style:sme==null?void 0:sme.body},rme)):null});PanelContent.displayName="PanelContent";var _excluded$L=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],CollapsePanel$1=React__default.forwardRef(function(x_,eme){var $P=x_.showArrow,tme=$P===void 0?!0:$P,ame=x_.headerClass,nme=x_.isActive,rme=x_.onItemClick,ime=x_.forceRender,ome=x_.className,lme=x_.classNames,sme=lme===void 0?{}:lme,cme=x_.styles,dme=cme===void 0?{}:cme,ume=x_.prefixCls,fme=x_.collapsible,pme=x_.accordion,hme=x_.panelKey,bme=x_.extra,mme=x_.header,vme=x_.expandIcon,gme=x_.openMotion,yme=x_.destroyInactivePanel,_me=x_.children,$me=_objectWithoutProperties$6(x_,_excluded$L),Cme=fme==="disabled",Sme=bme!=null&&typeof bme!="boolean",Eme=_defineProperty$7(_defineProperty$7(_defineProperty$7({onClick:function(){rme==null||rme(hme)},onKeyDown:function(Pme){(Pme.key==="Enter"||Pme.keyCode===KeyCode.ENTER||Pme.which===KeyCode.ENTER)&&(rme==null||rme(hme))},role:pme?"tab":"button"},"aria-expanded",nme),"aria-disabled",Cme),"tabIndex",Cme?-1:0),xme=typeof vme=="function"?vme(x_):React__default.createElement("i",{className:"arrow"}),Tme=xme&&React__default.createElement("div",_extends$4C({className:"".concat(ume,"-expand-icon")},["header","icon"].includes(fme)?Eme:{}),xme),Ome=classNames("".concat(ume,"-item"),_defineProperty$7(_defineProperty$7({},"".concat(ume,"-item-active"),nme),"".concat(ume,"-item-disabled"),Cme),ome),Rme=classNames(ame,"".concat(ume,"-header"),_defineProperty$7({},"".concat(ume,"-collapsible-").concat(fme),!!fme),sme.header),Nme=_objectSpread2$4({className:Rme,style:dme.header},["header","icon"].includes(fme)?{}:Eme);return React__default.createElement("div",_extends$4C({},$me,{ref:eme,className:Ome}),React__default.createElement("div",Nme,tme&&Tme,React__default.createElement("span",_extends$4C({className:"".concat(ume,"-header-text")},fme==="header"?Eme:{}),mme),Sme&&React__default.createElement("div",{className:"".concat(ume,"-extra")},bme)),React__default.createElement(CSSMotion,_extends$4C({visible:nme,leavedClassName:"".concat(ume,"-content-hidden")},gme,{forceRender:ime,removeOnLeave:yme}),function(Ime,Pme){var Mme=Ime.className,kme=Ime.style;return React__default.createElement(PanelContent,{ref:Pme,prefixCls:ume,className:Mme,classNames:sme,style:kme,styles:dme,isActive:nme,forceRender:ime,role:pme?"tabpanel":void 0},_me)}))}),_excluded$K=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],convertItemsToNodes$1=function(eme,$P){var tme=$P.prefixCls,ame=$P.accordion,nme=$P.collapsible,rme=$P.destroyInactivePanel,ime=$P.onItemClick,ome=$P.activeKey,lme=$P.openMotion,sme=$P.expandIcon;return eme.map(function(cme,dme){var ume=cme.children,fme=cme.label,pme=cme.key,hme=cme.collapsible,bme=cme.onItemClick,mme=cme.destroyInactivePanel,vme=_objectWithoutProperties$6(cme,_excluded$K),gme=String(pme??dme),yme=hme??nme,_me=mme??rme,$me=function(Eme){yme!=="disabled"&&(ime(Eme),bme==null||bme(Eme))},Cme=!1;return ame?Cme=ome[0]===gme:Cme=ome.indexOf(gme)>-1,React__default.createElement(CollapsePanel$1,_extends$4C({},vme,{prefixCls:tme,key:gme,panelKey:gme,isActive:Cme,accordion:ame,openMotion:lme,expandIcon:sme,header:fme,collapsible:yme,onItemClick:$me,destroyInactivePanel:_me}),ume)})},getNewChild=function(eme,$P,tme){if(!eme)return null;var ame=tme.prefixCls,nme=tme.accordion,rme=tme.collapsible,ime=tme.destroyInactivePanel,ome=tme.onItemClick,lme=tme.activeKey,sme=tme.openMotion,cme=tme.expandIcon,dme=eme.key||String($P),ume=eme.props,fme=ume.header,pme=ume.headerClass,hme=ume.destroyInactivePanel,bme=ume.collapsible,mme=ume.onItemClick,vme=!1;nme?vme=lme[0]===dme:vme=lme.indexOf(dme)>-1;var gme=bme??rme,yme=function(Cme){gme!=="disabled"&&(ome(Cme),mme==null||mme(Cme))},_me={key:dme,panelKey:dme,header:fme,headerClass:pme,isActive:vme,prefixCls:ame,destroyInactivePanel:hme??ime,openMotion:sme,accordion:nme,children:eme.props.children,onItemClick:yme,expandIcon:cme,collapsible:gme};return typeof eme.type=="string"?eme:(Object.keys(_me).forEach(function($me){typeof _me[$me]>"u"&&delete _me[$me]}),React__default.cloneElement(eme,_me))};function useItems$1(x_,eme,$P){return Array.isArray(x_)?convertItemsToNodes$1(x_,$P):toArray$6(eme).map(function(tme,ame){return getNewChild(tme,ame,$P)})}function getActiveKeysArray(x_){var eme=x_;if(!Array.isArray(eme)){var $P=_typeof$4(eme);eme=$P==="number"||$P==="string"?[eme]:[]}return eme.map(function(tme){return String(tme)})}var Collapse$5=React__default.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-collapse":$P,ame=x_.destroyInactivePanel,nme=ame===void 0?!1:ame,rme=x_.style,ime=x_.accordion,ome=x_.className,lme=x_.children,sme=x_.collapsible,cme=x_.openMotion,dme=x_.expandIcon,ume=x_.activeKey,fme=x_.defaultActiveKey,pme=x_.onChange,hme=x_.items,bme=classNames(tme,ome),mme=useMergedState([],{value:ume,onChange:function(Sme){return pme==null?void 0:pme(Sme)},defaultValue:fme,postState:getActiveKeysArray}),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=function(Sme){return yme(function(){if(ime)return gme[0]===Sme?[]:[Sme];var Eme=gme.indexOf(Sme),xme=Eme>-1;return xme?gme.filter(function(Tme){return Tme!==Sme}):[].concat(_toConsumableArray$1(gme),[Sme])})};warningOnce(!lme,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var $me=useItems$1(hme,lme,{prefixCls:tme,accordion:ime,openMotion:cme,expandIcon:dme,collapsible:sme,destroyInactivePanel:nme,onItemClick:_me,activeKey:gme});return React__default.createElement("div",_extends$4C({ref:eme,className:bme,style:rme,role:ime?"tablist":void 0},pickAttrs(x_,{aria:!0,data:!0})),$me)});const Collapse$6=Object.assign(Collapse$5,{Panel:CollapsePanel$1});Collapse$6.Panel;const CollapsePanel=reactExports.forwardRef((x_,eme)=>{const{getPrefixCls:$P}=reactExports.useContext(ConfigContext),{prefixCls:tme,className:ame,showArrow:nme=!0}=x_,rme=$P("collapse",tme),ime=classNames({[`${rme}-no-arrow`]:!nme},ame);return reactExports.createElement(Collapse$6.Panel,Object.assign({ref:eme},x_,{prefixCls:rme,className:ime}))}),genCollapseMotion=x_=>({[x_.componentCls]:{[`${x_.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${x_.motionDurationMid} ${x_.motionEaseInOut},
        opacity ${x_.motionDurationMid} ${x_.motionEaseInOut} !important`}},[`${x_.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${x_.motionDurationMid} ${x_.motionEaseInOut},
        opacity ${x_.motionDurationMid} ${x_.motionEaseInOut} !important`}}}),initMotionCommon=x_=>({animationDuration:x_,animationFillMode:"both"}),initMotionCommonLeave=x_=>({animationDuration:x_,animationFillMode:"both"}),initMotion=function(x_,eme,$P,tme){const nme=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
      ${nme}${x_}-enter,
      ${nme}${x_}-appear
    `]:Object.assign(Object.assign({},initMotionCommon(tme)),{animationPlayState:"paused"}),[`${nme}${x_}-leave`]:Object.assign(Object.assign({},initMotionCommonLeave(tme)),{animationPlayState:"paused"}),[`
      ${nme}${x_}-enter${x_}-enter-active,
      ${nme}${x_}-appear${x_}-appear-active
    `]:{animationName:eme,animationPlayState:"running"},[`${nme}${x_}-leave${x_}-leave-active`]:{animationName:$P,animationPlayState:"running",pointerEvents:"none"}}},fadeIn=new Keyframe("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),fadeOut=new Keyframe("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),initFadeMotion=function(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:$P}=x_,tme=`${$P}-fade`,ame=eme?"&":"";return[initMotion(tme,fadeIn,fadeOut,x_.motionDurationMid,eme),{[`
        ${ame}${tme}-enter,
        ${ame}${tme}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${ame}${tme}-leave`]:{animationTimingFunction:"linear"}}]},moveDownIn=new Keyframe("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveDownOut=new Keyframe("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),moveLeftIn=new Keyframe("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveLeftOut=new Keyframe("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),moveRightIn=new Keyframe("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveRightOut=new Keyframe("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),moveUpIn=new Keyframe("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),moveUpOut=new Keyframe("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),moveMotion={"move-up":{inKeyframes:moveUpIn,outKeyframes:moveUpOut},"move-down":{inKeyframes:moveDownIn,outKeyframes:moveDownOut},"move-left":{inKeyframes:moveLeftIn,outKeyframes:moveLeftOut},"move-right":{inKeyframes:moveRightIn,outKeyframes:moveRightOut}},initMoveMotion=(x_,eme)=>{const{antCls:$P}=x_,tme=`${$P}-${eme}`,{inKeyframes:ame,outKeyframes:nme}=moveMotion[eme];return[initMotion(tme,ame,nme,x_.motionDurationMid),{[`
        ${tme}-enter,
        ${tme}-appear
      `]:{opacity:0,animationTimingFunction:x_.motionEaseOutCirc},[`${tme}-leave`]:{animationTimingFunction:x_.motionEaseInOutCirc}}]},slideUpIn=new Keyframe("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),slideUpOut=new Keyframe("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),slideDownIn=new Keyframe("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),slideDownOut=new Keyframe("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),slideLeftIn=new Keyframe("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),slideLeftOut=new Keyframe("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),slideRightIn=new Keyframe("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),slideRightOut=new Keyframe("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),slideMotion={"slide-up":{inKeyframes:slideUpIn,outKeyframes:slideUpOut},"slide-down":{inKeyframes:slideDownIn,outKeyframes:slideDownOut},"slide-left":{inKeyframes:slideLeftIn,outKeyframes:slideLeftOut},"slide-right":{inKeyframes:slideRightIn,outKeyframes:slideRightOut}},initSlideMotion=(x_,eme)=>{const{antCls:$P}=x_,tme=`${$P}-${eme}`,{inKeyframes:ame,outKeyframes:nme}=slideMotion[eme];return[initMotion(tme,ame,nme,x_.motionDurationMid),{[`
      ${tme}-enter,
      ${tme}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:x_.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${tme}-leave`]:{animationTimingFunction:x_.motionEaseInQuint}}]},zoomIn=new Keyframe("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zoomOut=new Keyframe("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),zoomBigIn=new Keyframe("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zoomBigOut=new Keyframe("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zoomUpIn=new Keyframe("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zoomUpOut=new Keyframe("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zoomLeftIn=new Keyframe("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),zoomLeftOut=new Keyframe("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),zoomRightIn=new Keyframe("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zoomRightOut=new Keyframe("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),zoomDownIn=new Keyframe("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),zoomDownOut=new Keyframe("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zoomMotion={zoom:{inKeyframes:zoomIn,outKeyframes:zoomOut},"zoom-big":{inKeyframes:zoomBigIn,outKeyframes:zoomBigOut},"zoom-big-fast":{inKeyframes:zoomBigIn,outKeyframes:zoomBigOut},"zoom-left":{inKeyframes:zoomLeftIn,outKeyframes:zoomLeftOut},"zoom-right":{inKeyframes:zoomRightIn,outKeyframes:zoomRightOut},"zoom-up":{inKeyframes:zoomUpIn,outKeyframes:zoomUpOut},"zoom-down":{inKeyframes:zoomDownIn,outKeyframes:zoomDownOut}},initZoomMotion=(x_,eme)=>{const{antCls:$P}=x_,tme=`${$P}-${eme}`,{inKeyframes:ame,outKeyframes:nme}=zoomMotion[eme];return[initMotion(tme,ame,nme,eme==="zoom-big-fast"?x_.motionDurationFast:x_.motionDurationMid),{[`
        ${tme}-enter,
        ${tme}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:x_.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${tme}-leave`]:{animationTimingFunction:x_.motionEaseInOutCirc}}]},genBaseStyle$5=x_=>{const{componentCls:eme,contentBg:$P,padding:tme,headerBg:ame,headerPadding:nme,collapseHeaderPaddingSM:rme,collapseHeaderPaddingLG:ime,collapsePanelBorderRadius:ome,lineWidth:lme,lineType:sme,colorBorder:cme,colorText:dme,colorTextHeading:ume,colorTextDisabled:fme,fontSizeLG:pme,lineHeight:hme,lineHeightLG:bme,marginSM:mme,paddingSM:vme,paddingLG:gme,paddingXS:yme,motionDurationSlow:_me,fontSizeIcon:$me,contentPadding:Cme,fontHeight:Sme,fontHeightLG:Eme}=x_,xme=`${unit$1(lme)} ${sme} ${cme}`;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{backgroundColor:ame,border:xme,borderRadius:ome,"&-rtl":{direction:"rtl"},[`& > ${eme}-item`]:{borderBottom:xme,"&:last-child":{[`
            &,
            & > ${eme}-header`]:{borderRadius:`0 0 ${unit$1(ome)} ${unit$1(ome)}`}},[`> ${eme}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:nme,color:ume,lineHeight:hme,cursor:"pointer",transition:`all ${_me}, visibility 0s`,[`> ${eme}-header-text`]:{flex:"auto"},[`${eme}-expand-icon`]:{height:Sme,display:"flex",alignItems:"center",paddingInlineEnd:mme},[`${eme}-arrow`]:Object.assign(Object.assign({},resetIcon()),{fontSize:$me,transition:`transform ${_me}`,svg:{transition:`transform ${_me}`}}),[`${eme}-header-text`]:{marginInlineEnd:"auto"}},[`${eme}-collapsible-header`]:{cursor:"default",[`${eme}-header-text`]:{flex:"none",cursor:"pointer"}},[`${eme}-collapsible-icon`]:{cursor:"unset",[`${eme}-expand-icon`]:{cursor:"pointer"}}},[`${eme}-content`]:{color:dme,backgroundColor:$P,borderTop:xme,[`& > ${eme}-content-box`]:{padding:Cme},"&-hidden":{display:"none"}},"&-small":{[`> ${eme}-item`]:{[`> ${eme}-header`]:{padding:rme,paddingInlineStart:yme,[`> ${eme}-expand-icon`]:{marginInlineStart:x_.calc(vme).sub(yme).equal()}},[`> ${eme}-content > ${eme}-content-box`]:{padding:vme}}},"&-large":{[`> ${eme}-item`]:{fontSize:pme,lineHeight:bme,[`> ${eme}-header`]:{padding:ime,paddingInlineStart:tme,[`> ${eme}-expand-icon`]:{height:Eme,marginInlineStart:x_.calc(gme).sub(tme).equal()}},[`> ${eme}-content > ${eme}-content-box`]:{padding:gme}}},[`${eme}-item:last-child`]:{borderBottom:0,[`> ${eme}-content`]:{borderRadius:`0 0 ${unit$1(ome)} ${unit$1(ome)}`}},[`& ${eme}-item-disabled > ${eme}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:fme,cursor:"not-allowed"}},[`&${eme}-icon-position-end`]:{[`& > ${eme}-item`]:{[`> ${eme}-header`]:{[`${eme}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:mme}}}}})}},genArrowStyle=x_=>{const{componentCls:eme}=x_,$P=`> ${eme}-item > ${eme}-header ${eme}-arrow`;return{[`${eme}-rtl`]:{[$P]:{transform:"rotate(180deg)"}}}},genBorderlessStyle$2=x_=>{const{componentCls:eme,headerBg:$P,paddingXXS:tme,colorBorder:ame}=x_;return{[`${eme}-borderless`]:{backgroundColor:$P,border:0,[`> ${eme}-item`]:{borderBottom:`1px solid ${ame}`},[`
        > ${eme}-item:last-child,
        > ${eme}-item:last-child ${eme}-header
      `]:{borderRadius:0},[`> ${eme}-item:last-child`]:{borderBottom:0},[`> ${eme}-item > ${eme}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${eme}-item > ${eme}-content > ${eme}-content-box`]:{paddingTop:tme}}}},genGhostStyle=x_=>{const{componentCls:eme,paddingSM:$P}=x_;return{[`${eme}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${eme}-item`]:{borderBottom:0,[`> ${eme}-content`]:{backgroundColor:"transparent",border:0,[`> ${eme}-content-box`]:{paddingBlock:$P}}}}}},prepareComponentToken$p=x_=>({headerPadding:`${x_.paddingSM}px ${x_.padding}px`,headerBg:x_.colorFillAlter,contentPadding:`${x_.padding}px 16px`,contentBg:x_.colorBgContainer}),useStyle$u=genStyleHooks("Collapse",x_=>{const eme=merge$5(x_,{collapseHeaderPaddingSM:`${unit$1(x_.paddingXS)} ${unit$1(x_.paddingSM)}`,collapseHeaderPaddingLG:`${unit$1(x_.padding)} ${unit$1(x_.paddingLG)}`,collapsePanelBorderRadius:x_.borderRadiusLG});return[genBaseStyle$5(eme),genBorderlessStyle$2(eme),genGhostStyle(eme),genArrowStyle(eme),genCollapseMotion(eme)]},prepareComponentToken$p),Collapse$3=reactExports.forwardRef((x_,eme)=>{const{getPrefixCls:$P,direction:tme,collapse:ame}=reactExports.useContext(ConfigContext),{prefixCls:nme,className:rme,rootClassName:ime,style:ome,bordered:lme=!0,ghost:sme,size:cme,expandIconPosition:dme="start",children:ume,expandIcon:fme}=x_,pme=useSize(xme=>{var Tme;return(Tme=cme??xme)!==null&&Tme!==void 0?Tme:"middle"}),hme=$P("collapse",nme),bme=$P(),[mme,vme,gme]=useStyle$u(hme),yme=reactExports.useMemo(()=>dme==="left"?"start":dme==="right"?"end":dme,[dme]),_me=fme??(ame==null?void 0:ame.expandIcon),$me=reactExports.useCallback(function(){let xme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Tme=typeof _me=="function"?_me(xme):reactExports.createElement(RefIcon$i,{rotate:xme.isActive?90:void 0,"aria-label":xme.isActive?"expanded":"collapsed"});return cloneElement(Tme,()=>{var Ome;return{className:classNames((Ome=Tme==null?void 0:Tme.props)===null||Ome===void 0?void 0:Ome.className,`${hme}-arrow`)}})},[_me,hme]),Cme=classNames(`${hme}-icon-position-${yme}`,{[`${hme}-borderless`]:!lme,[`${hme}-rtl`]:tme==="rtl",[`${hme}-ghost`]:!!sme,[`${hme}-${pme}`]:pme!=="middle"},ame==null?void 0:ame.className,rme,ime,vme,gme),Sme=Object.assign(Object.assign({},initCollapseMotion(bme)),{motionAppear:!1,leavedClassName:`${hme}-content-hidden`}),Eme=reactExports.useMemo(()=>ume?toArray$6(ume).map((xme,Tme)=>{var Ome,Rme;if(!((Ome=xme.props)===null||Ome===void 0)&&Ome.disabled){const Nme=(Rme=xme.key)!==null&&Rme!==void 0?Rme:String(Tme),{disabled:Ime,collapsible:Pme}=xme.props,Mme=Object.assign(Object.assign({},omit$2(xme.props,["disabled"])),{key:Nme,collapsible:Pme??(Ime?"disabled":void 0)});return cloneElement(xme,Mme)}return xme}):null,[ume]);return mme(reactExports.createElement(Collapse$6,Object.assign({ref:eme,openMotion:Sme},omit$2(x_,["rootClassName"]),{expandIcon:$me,prefixCls:hme,className:Cme,style:Object.assign(Object.assign({},ame==null?void 0:ame.style),ome)}),Eme))}),Collapse$4=Object.assign(Collapse$3,{Panel:CollapsePanel}),generateColor=x_=>x_ instanceof AggregationColor?x_:new AggregationColor(x_),getRoundNumber=x_=>Math.round(Number(x_||0)),getColorAlpha=x_=>getRoundNumber(x_.toHsb().a*100),genAlphaColor=(x_,eme)=>{const $P=x_.toRgb();if(!$P.r&&!$P.g&&!$P.b){const tme=x_.toHsb();return tme.a=1,generateColor(tme)}return $P.a=1,generateColor($P)},getGradientPercentColor=(x_,eme)=>{const $P=[{percent:0,color:x_[0].color}].concat(_toConsumableArray$1(x_),[{percent:100,color:x_[x_.length-1].color}]);for(let tme=0;tme<$P.length-1;tme+=1){const ame=$P[tme].percent,nme=$P[tme+1].percent,rme=$P[tme].color,ime=$P[tme+1].color;if(ame<=eme&&eme<=nme){const ome=nme-ame;if(ome===0)return rme;const lme=(eme-ame)/ome*100,sme=new Color$1(rme),cme=new Color$1(ime);return sme.mix(cme,lme).toRgbString()}}return""},genPresetColor=x_=>x_.map(eme=>(eme.colors=eme.colors.map(generateColor),eme)),isBright=(x_,eme)=>{const{r:$P,g:tme,b:ame,a:nme}=x_.toRgb(),rme=new Color$1(x_.toRgbString()).onBackground(eme).toHsv();return nme<=.5?rme.v>.5:$P*.299+tme*.587+ame*.114>192},genCollapsePanelKey=(x_,eme)=>typeof x_.label=="string"||typeof x_.label=="number"?`panel-${x_.label}-${eme}`:`panel-${eme}`,ColorPresets=x_=>{let{prefixCls:eme,presets:$P,value:tme,onChange:ame}=x_;const[nme]=useLocale("ColorPicker"),[,rme]=useToken$1(),[ime]=useMergedState(genPresetColor($P),{value:genPresetColor($P),postState:genPresetColor}),ome=`${eme}-presets`,lme=reactExports.useMemo(()=>ime.reduce((dme,ume,fme)=>{const{defaultOpen:pme=!0}=ume;return pme&&dme.push(genCollapsePanelKey(ume,fme)),dme},[]),[ime]),sme=dme=>{ame==null||ame(dme)},cme=ime.map((dme,ume)=>{var fme;return{key:genCollapsePanelKey(dme,ume),label:jsx("div",{className:`${ome}-label`,children:dme==null?void 0:dme.label}),children:jsx("div",{className:`${ome}-items`,children:Array.isArray(dme==null?void 0:dme.colors)&&((fme=dme.colors)===null||fme===void 0?void 0:fme.length)>0?dme.colors.map((pme,hme)=>jsx(ColorBlock,{color:generateColor(pme).toRgbString(),prefixCls:eme,className:classNames(`${ome}-color`,{[`${ome}-color-checked`]:pme.toHexString()===(tme==null?void 0:tme.toHexString()),[`${ome}-color-bright`]:isBright(pme,rme.colorBgElevated)}),onClick:()=>sme(pme)},`preset-${hme}-${pme.toHexString()}`)):jsx("span",{className:`${ome}-empty`,children:nme.presetEmpty})})}});return jsx("div",{className:ome,children:jsx(Collapse$4,{defaultActiveKey:lme,ghost:!0,items:cme})})},prepareToken$3=x_=>{const{paddingInline:eme,onlyIconSize:$P,paddingBlock:tme}=x_;return merge$5(x_,{buttonPaddingHorizontal:eme,buttonPaddingVertical:tme,buttonIconOnlyFontSize:$P})},prepareComponentToken$o=x_=>{var eme,$P,tme,ame,nme,rme;const ime=(eme=x_.contentFontSize)!==null&&eme!==void 0?eme:x_.fontSize,ome=($P=x_.contentFontSizeSM)!==null&&$P!==void 0?$P:x_.fontSize,lme=(tme=x_.contentFontSizeLG)!==null&&tme!==void 0?tme:x_.fontSizeLG,sme=(ame=x_.contentLineHeight)!==null&&ame!==void 0?ame:getLineHeight(ime),cme=(nme=x_.contentLineHeightSM)!==null&&nme!==void 0?nme:getLineHeight(ome),dme=(rme=x_.contentLineHeightLG)!==null&&rme!==void 0?rme:getLineHeight(lme),ume=isBright(new AggregationColor(x_.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${x_.controlOutlineWidth}px 0 ${x_.controlTmpOutline}`,primaryShadow:`0 ${x_.controlOutlineWidth}px 0 ${x_.controlOutline}`,dangerShadow:`0 ${x_.controlOutlineWidth}px 0 ${x_.colorErrorOutline}`,primaryColor:x_.colorTextLightSolid,dangerColor:x_.colorTextLightSolid,borderColorDisabled:x_.colorBorder,defaultGhostColor:x_.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:x_.colorBgContainer,paddingInline:x_.paddingContentHorizontal-x_.lineWidth,paddingInlineLG:x_.paddingContentHorizontal-x_.lineWidth,paddingInlineSM:8-x_.lineWidth,onlyIconSize:x_.fontSizeLG,onlyIconSizeSM:x_.fontSizeLG-2,onlyIconSizeLG:x_.fontSizeLG+2,groupBorderColor:x_.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:x_.colorText,textTextHoverColor:x_.colorText,textTextActiveColor:x_.colorText,textHoverBg:x_.colorFillTertiary,defaultColor:x_.colorText,defaultBg:x_.colorBgContainer,defaultBorderColor:x_.colorBorder,defaultBorderColorDisabled:x_.colorBorder,defaultHoverBg:x_.colorBgContainer,defaultHoverColor:x_.colorPrimaryHover,defaultHoverBorderColor:x_.colorPrimaryHover,defaultActiveBg:x_.colorBgContainer,defaultActiveColor:x_.colorPrimaryActive,defaultActiveBorderColor:x_.colorPrimaryActive,solidTextColor:ume,contentFontSize:ime,contentFontSizeSM:ome,contentFontSizeLG:lme,contentLineHeight:sme,contentLineHeightSM:cme,contentLineHeightLG:dme,paddingBlock:Math.max((x_.controlHeight-ime*sme)/2-x_.lineWidth,0),paddingBlockSM:Math.max((x_.controlHeightSM-ome*cme)/2-x_.lineWidth,0),paddingBlockLG:Math.max((x_.controlHeightLG-lme*dme)/2-x_.lineWidth,0)}},genSharedButtonStyle=x_=>{const{componentCls:eme,iconCls:$P,fontWeight:tme}=x_;return{[eme]:{outline:"none",position:"relative",display:"inline-flex",gap:x_.marginXS,alignItems:"center",justifyContent:"center",fontWeight:tme,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit$1(x_.lineWidth)} ${x_.lineType} transparent`,cursor:"pointer",transition:`all ${x_.motionDurationMid} ${x_.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:x_.colorText,"&:disabled > *":{pointerEvents:"none"},[`> span, ${eme}-icon`]:{display:"inline-flex"},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},genFocusStyle(x_)),[`&${eme}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${eme}-two-chinese-chars > *:not(${$P})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},genHoverActiveButtonStyle=(x_,eme,$P)=>({[`&:not(:disabled):not(${x_}-disabled)`]:{"&:hover":eme,"&:active":$P}}),genCircleButtonStyle=x_=>({minWidth:x_.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),genRoundButtonStyle=x_=>({borderRadius:x_.controlHeight,paddingInlineStart:x_.calc(x_.controlHeight).div(2).equal(),paddingInlineEnd:x_.calc(x_.controlHeight).div(2).equal()}),genDisabledStyle$1=x_=>({cursor:"not-allowed",borderColor:x_.borderColorDisabled,color:x_.colorTextDisabled,background:x_.colorBgContainerDisabled,boxShadow:"none"}),genGhostButtonStyle=(x_,eme,$P,tme,ame,nme,rme,ime)=>({[`&${x_}-background-ghost`]:Object.assign(Object.assign({color:$P||void 0,background:eme,borderColor:tme||void 0,boxShadow:"none"},genHoverActiveButtonStyle(x_,Object.assign({background:eme},rme),Object.assign({background:eme},ime))),{"&:disabled":{cursor:"not-allowed",color:ame||void 0,borderColor:nme||void 0}})}),genSolidDisabledButtonStyle=x_=>({[`&:disabled, &${x_.componentCls}-disabled`]:Object.assign({},genDisabledStyle$1(x_))}),genPureDisabledButtonStyle=x_=>({[`&:disabled, &${x_.componentCls}-disabled`]:{cursor:"not-allowed",color:x_.colorTextDisabled}}),genVariantButtonStyle=(x_,eme,$P,tme)=>{const nme=tme&&["link","text"].includes(tme)?genPureDisabledButtonStyle:genSolidDisabledButtonStyle;return Object.assign(Object.assign({},nme(x_)),genHoverActiveButtonStyle(x_.componentCls,eme,$P))},genSolidButtonStyle=(x_,eme,$P,tme,ame)=>({[`&${x_.componentCls}-variant-solid`]:Object.assign({color:eme,background:$P},genVariantButtonStyle(x_,tme,ame))}),genOutlinedDashedButtonStyle=(x_,eme,$P,tme,ame)=>({[`&${x_.componentCls}-variant-outlined, &${x_.componentCls}-variant-dashed`]:Object.assign({borderColor:eme,background:$P},genVariantButtonStyle(x_,tme,ame))}),genDashedButtonStyle=x_=>({[`&${x_.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),genFilledButtonStyle=(x_,eme,$P,tme)=>({[`&${x_.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:eme},genVariantButtonStyle(x_,$P,tme))}),genTextLinkButtonStyle=(x_,eme,$P,tme,ame)=>({[`&${x_.componentCls}-variant-${$P}`]:Object.assign({color:eme,boxShadow:"none"},genVariantButtonStyle(x_,tme,ame,$P))}),genDefaultButtonStyle=x_=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:x_.defaultColor,boxShadow:x_.defaultShadow},genSolidButtonStyle(x_,x_.solidTextColor,x_.colorBgSolid,{background:x_.colorBgSolidHover},{background:x_.colorBgSolidActive})),genDashedButtonStyle(x_)),genFilledButtonStyle(x_,x_.colorFillTertiary,{background:x_.colorFillSecondary},{background:x_.colorFill})),genTextLinkButtonStyle(x_,x_.textTextColor,"link",{color:x_.colorLinkHover,background:x_.linkHoverBg},{color:x_.colorLinkActive})),genGhostButtonStyle(x_.componentCls,x_.ghostBg,x_.defaultGhostColor,x_.defaultGhostBorderColor,x_.colorTextDisabled,x_.colorBorder)),genPrimaryButtonStyle=x_=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:x_.colorPrimary,boxShadow:x_.primaryShadow},genOutlinedDashedButtonStyle(x_,x_.colorPrimary,x_.colorBgContainer,{color:x_.colorPrimaryTextHover,borderColor:x_.colorPrimaryHover,background:x_.colorBgContainer},{color:x_.colorPrimaryTextActive,borderColor:x_.colorPrimaryActive,background:x_.colorBgContainer})),genDashedButtonStyle(x_)),genFilledButtonStyle(x_,x_.colorPrimaryBg,{background:x_.colorPrimaryBgHover},{background:x_.colorPrimaryBorder})),genTextLinkButtonStyle(x_,x_.colorLink,"text",{color:x_.colorPrimaryTextHover,background:x_.colorPrimaryBg},{color:x_.colorPrimaryTextActive,background:x_.colorPrimaryBorder})),genGhostButtonStyle(x_.componentCls,x_.ghostBg,x_.colorPrimary,x_.colorPrimary,x_.colorTextDisabled,x_.colorBorder,{color:x_.colorPrimaryHover,borderColor:x_.colorPrimaryHover},{color:x_.colorPrimaryActive,borderColor:x_.colorPrimaryActive})),genDangerousStyle=x_=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:x_.colorError,boxShadow:x_.dangerShadow},genSolidButtonStyle(x_,x_.dangerColor,x_.colorError,{background:x_.colorErrorHover},{background:x_.colorErrorActive})),genOutlinedDashedButtonStyle(x_,x_.colorError,x_.colorBgContainer,{color:x_.colorErrorHover,borderColor:x_.colorErrorBorderHover},{color:x_.colorErrorActive,borderColor:x_.colorErrorActive})),genDashedButtonStyle(x_)),genFilledButtonStyle(x_,x_.colorErrorBg,{background:x_.colorErrorBgFilledHover},{background:x_.colorErrorBgActive})),genTextLinkButtonStyle(x_,x_.colorError,"text",{color:x_.colorErrorHover,background:x_.colorErrorBg},{color:x_.colorErrorHover,background:x_.colorErrorBgActive})),genTextLinkButtonStyle(x_,x_.colorError,"link",{color:x_.colorErrorHover},{color:x_.colorErrorActive})),genGhostButtonStyle(x_.componentCls,x_.ghostBg,x_.colorError,x_.colorError,x_.colorTextDisabled,x_.colorBorder,{color:x_.colorErrorHover,borderColor:x_.colorErrorHover},{color:x_.colorErrorActive,borderColor:x_.colorErrorActive})),genColorButtonStyle=x_=>{const{componentCls:eme}=x_;return{[`${eme}-color-default`]:genDefaultButtonStyle(x_),[`${eme}-color-primary`]:genPrimaryButtonStyle(x_),[`${eme}-color-dangerous`]:genDangerousStyle(x_)}},genCompatibleButtonStyle=x_=>Object.assign(Object.assign(Object.assign(Object.assign({},genOutlinedDashedButtonStyle(x_,x_.defaultBorderColor,x_.defaultBg,{color:x_.defaultHoverColor,borderColor:x_.defaultHoverBorderColor,background:x_.defaultHoverBg},{color:x_.defaultActiveColor,borderColor:x_.defaultActiveBorderColor,background:x_.defaultActiveBg})),genTextLinkButtonStyle(x_,x_.textTextColor,"text",{color:x_.textTextHoverColor,background:x_.textHoverBg},{color:x_.textTextActiveColor,background:x_.colorBgTextActive})),genSolidButtonStyle(x_,x_.primaryColor,x_.colorPrimary,{background:x_.colorPrimaryHover,color:x_.primaryColor},{background:x_.colorPrimaryActive,color:x_.primaryColor})),genTextLinkButtonStyle(x_,x_.colorLink,"link",{color:x_.colorLinkHover,background:x_.linkHoverBg},{color:x_.colorLinkActive})),genButtonStyle=function(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:$P,controlHeight:tme,fontSize:ame,lineHeight:nme,borderRadius:rme,buttonPaddingHorizontal:ime,iconCls:ome,buttonPaddingVertical:lme,motionDurationSlow:sme,motionEaseInOut:cme,buttonIconOnlyFontSize:dme,opacityLoading:ume}=x_;return[{[eme]:{fontSize:ame,lineHeight:nme,height:tme,padding:`${unit$1(lme)} ${unit$1(ime)}`,borderRadius:rme,[`&${$P}-icon-only`]:{width:tme,paddingInline:0,[`&${$P}-compact-item`]:{flex:"none"},[`&${$P}-round`]:{width:"auto"},[ome]:{fontSize:dme}},[`&${$P}-loading`]:{opacity:ume,cursor:"default"},[`${$P}-loading-icon`]:{transition:`width ${sme} ${cme}, opacity ${sme} ${cme}`}}},{[`${$P}${$P}-circle${eme}`]:genCircleButtonStyle(x_)},{[`${$P}${$P}-round${eme}`]:genRoundButtonStyle(x_)}]},genSizeBaseButtonStyle=x_=>{const eme=merge$5(x_,{fontSize:x_.contentFontSize,lineHeight:x_.contentLineHeight});return genButtonStyle(eme,x_.componentCls)},genSizeSmallButtonStyle=x_=>{const eme=merge$5(x_,{controlHeight:x_.controlHeightSM,fontSize:x_.contentFontSizeSM,lineHeight:x_.contentLineHeightSM,padding:x_.paddingXS,buttonPaddingHorizontal:x_.paddingInlineSM,buttonPaddingVertical:x_.paddingBlockSM,borderRadius:x_.borderRadiusSM,buttonIconOnlyFontSize:x_.onlyIconSizeSM});return genButtonStyle(eme,`${x_.componentCls}-sm`)},genSizeLargeButtonStyle=x_=>{const eme=merge$5(x_,{controlHeight:x_.controlHeightLG,fontSize:x_.contentFontSizeLG,lineHeight:x_.contentLineHeightLG,buttonPaddingHorizontal:x_.paddingInlineLG,buttonPaddingVertical:x_.paddingBlockLG,borderRadius:x_.borderRadiusLG,buttonIconOnlyFontSize:x_.onlyIconSizeLG});return genButtonStyle(eme,`${x_.componentCls}-lg`)},genBlockButtonStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{[`&${eme}-block`]:{width:"100%"}}}},useStyle$t=genStyleHooks("Button",x_=>{const eme=prepareToken$3(x_);return[genSharedButtonStyle(eme),genSizeBaseButtonStyle(eme),genSizeSmallButtonStyle(eme),genSizeLargeButtonStyle(eme),genBlockButtonStyle(eme),genColorButtonStyle(eme),genCompatibleButtonStyle(eme),genGroupStyle$1(eme)]},prepareComponentToken$o,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function compactItemBorder(x_,eme,$P){const{focusElCls:tme,focus:ame,borderElCls:nme}=$P,rme=nme?"> *":"",ime=["hover",ame?"focus":null,"active"].filter(Boolean).map(ome=>`&:${ome} ${rme}`).join(",");return{[`&-item:not(${eme}-last-item)`]:{marginInlineEnd:x_.calc(x_.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[ime]:{zIndex:2}},tme?{[`&${tme}`]:{zIndex:2}}:{}),{[`&[disabled] ${rme}`]:{zIndex:0}})}}function compactItemBorderRadius(x_,eme,$P){const{borderElCls:tme}=$P,ame=tme?`> ${tme}`:"";return{[`&-item:not(${eme}-first-item):not(${eme}-last-item) ${ame}`]:{borderRadius:0},[`&-item:not(${eme}-last-item)${eme}-first-item`]:{[`& ${ame}, &${x_}-sm ${ame}, &${x_}-lg ${ame}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${eme}-first-item)${eme}-last-item`]:{[`& ${ame}, &${x_}-sm ${ame}, &${x_}-lg ${ame}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function genCompactItemStyle(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:$P}=x_,tme=`${$P}-compact`;return{[tme]:Object.assign(Object.assign({},compactItemBorder(x_,tme,eme)),compactItemBorderRadius($P,tme,eme))}}function compactItemVerticalBorder(x_,eme){return{[`&-item:not(${eme}-last-item)`]:{marginBottom:x_.calc(x_.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function compactItemBorderVerticalRadius(x_,eme){return{[`&-item:not(${eme}-first-item):not(${eme}-last-item)`]:{borderRadius:0},[`&-item${eme}-first-item:not(${eme}-last-item)`]:{[`&, &${x_}-sm, &${x_}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${eme}-last-item:not(${eme}-first-item)`]:{[`&, &${x_}-sm, &${x_}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function genCompactItemVerticalStyle(x_){const eme=`${x_.componentCls}-compact-vertical`;return{[eme]:Object.assign(Object.assign({},compactItemVerticalBorder(x_,eme)),compactItemBorderVerticalRadius(x_.componentCls,eme))}}const genButtonCompactStyle=x_=>{const{componentCls:eme,colorPrimaryHover:$P,lineWidth:tme,calc:ame}=x_,nme=ame(tme).mul(-1).equal(),rme=ime=>({[`${eme}-compact${ime?"-vertical":""}-item${eme}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:ime?nme:0,insetInlineStart:ime?0:nme,backgroundColor:$P,content:'""',width:ime?"100%":tme,height:ime?tme:"100%"}}});return Object.assign(Object.assign({},rme()),rme(!0))},Compact$1=genSubStyleComponent(["Button","compact"],x_=>{const eme=prepareToken$3(x_);return[genCompactItemStyle(eme),genCompactItemVerticalStyle(eme),genButtonCompactStyle(eme)]},prepareComponentToken$o);var __rest$Y=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function getLoadingConfig(x_){if(typeof x_=="object"&&x_){let eme=x_==null?void 0:x_.delay;return eme=!Number.isNaN(eme)&&typeof eme=="number"?eme:0,{loading:eme<=0,delay:eme}}return{loading:!!x_,delay:0}}const ButtonTypeMap={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},InternalCompoundedButton=React__default.forwardRef((x_,eme)=>{var $P,tme,ame,nme;const{loading:rme=!1,prefixCls:ime,color:ome,variant:lme,type:sme,danger:cme=!1,shape:dme="default",size:ume,styles:fme,disabled:pme,className:hme,rootClassName:bme,children:mme,icon:vme,iconPosition:gme="start",ghost:yme=!1,block:_me=!1,htmlType:$me="button",classNames:Cme,style:Sme={},autoInsertSpace:Eme,autoFocus:xme}=x_,Tme=__rest$Y(x_,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),Ome=sme||"default",[Rme,Nme]=reactExports.useMemo(()=>{if(ome&&lme)return[ome,lme];const Qbe=ButtonTypeMap[Ome]||[];return cme?["danger",Qbe[1]]:Qbe},[sme,ome,lme,cme]),Pme=Rme==="danger"?"dangerous":Rme,{getPrefixCls:Mme,direction:kme,button:Bme}=reactExports.useContext(ConfigContext),Dme=($P=Eme??(Bme==null?void 0:Bme.autoInsertSpace))!==null&&$P!==void 0?$P:!0,jme=Mme("btn",ime),[Vme,Wme,Lme]=useStyle$t(jme),zme=reactExports.useContext(DisabledContext),Ume=pme??zme,Gme=reactExports.useContext(GroupSizeContext),Jme=reactExports.useMemo(()=>getLoadingConfig(rme),[rme]),[Yme,Qme]=reactExports.useState(Jme.loading),[Xme,Kme]=reactExports.useState(!1),Zme=reactExports.useRef(),nbe=useComposeRef(eme,Zme),lbe=reactExports.Children.count(mme)===1&&!vme&&!isUnBorderedButtonVariant(Nme);reactExports.useEffect(()=>{let Qbe=null;Jme.delay>0?Qbe=setTimeout(()=>{Qbe=null,Qme(!0)},Jme.delay):Qme(Jme.loading);function Gbe(){Qbe&&(clearTimeout(Qbe),Qbe=null)}return Gbe},[Jme]),reactExports.useEffect(()=>{if(!Zme.current||!Dme)return;const Qbe=Zme.current.textContent||"";lbe&&isTwoCNChar(Qbe)?Xme||Kme(!0):Xme&&Kme(!1)}),reactExports.useEffect(()=>{xme&&Zme.current&&Zme.current.focus()},[]);const ibe=React__default.useCallback(Qbe=>{var Gbe;if(Yme||Ume){Qbe.preventDefault();return}(Gbe=x_.onClick)===null||Gbe===void 0||Gbe.call(x_,Qbe)},[x_.onClick,Yme,Ume]),{compactSize:abe,compactItemClassnames:obe}=useCompactItemContext(jme,kme),hbe={large:"lg",small:"sm",middle:void 0},ube=useSize(Qbe=>{var Gbe,Hbe;return(Hbe=(Gbe=ume??abe)!==null&&Gbe!==void 0?Gbe:Gme)!==null&&Hbe!==void 0?Hbe:Qbe}),mbe=ube&&(tme=hbe[ube])!==null&&tme!==void 0?tme:"",pbe=Yme?"loading":vme,_be=omit$2(Tme,["navigate"]),Sbe=classNames(jme,Wme,Lme,{[`${jme}-${dme}`]:dme!=="default"&&dme,[`${jme}-${Ome}`]:Ome,[`${jme}-dangerous`]:cme,[`${jme}-color-${Pme}`]:Pme,[`${jme}-variant-${Nme}`]:Nme,[`${jme}-${mbe}`]:mbe,[`${jme}-icon-only`]:!mme&&mme!==0&&!!pbe,[`${jme}-background-ghost`]:yme&&!isUnBorderedButtonVariant(Nme),[`${jme}-loading`]:Yme,[`${jme}-two-chinese-chars`]:Xme&&Dme&&!Yme,[`${jme}-block`]:_me,[`${jme}-rtl`]:kme==="rtl",[`${jme}-icon-end`]:gme==="end"},obe,hme,bme,Bme==null?void 0:Bme.className),vbe=Object.assign(Object.assign({},Bme==null?void 0:Bme.style),Sme),kbe=classNames(Cme==null?void 0:Cme.icon,(ame=Bme==null?void 0:Bme.classNames)===null||ame===void 0?void 0:ame.icon),Rbe=Object.assign(Object.assign({},(fme==null?void 0:fme.icon)||{}),((nme=Bme==null?void 0:Bme.styles)===null||nme===void 0?void 0:nme.icon)||{}),Pbe=vme&&!Yme?jsx(IconWrapper,{prefixCls:jme,className:kbe,style:Rbe,children:vme}):jsx(LoadingIcon,{existIcon:!!vme,prefixCls:jme,loading:Yme}),Mbe=mme||mme===0?spaceChildren(mme,lbe&&Dme):null;if(_be.href!==void 0)return Vme(jsxs("a",{...Object.assign({},_be,{className:classNames(Sbe,{[`${jme}-disabled`]:Ume}),href:Ume?void 0:_be.href,style:vbe,onClick:ibe,ref:nbe,tabIndex:Ume?-1:0}),children:[Pbe,Mbe]}));let Kbe=jsxs("button",{...Object.assign({},Tme,{type:$me,className:Sbe,style:vbe,onClick:ibe,disabled:Ume,ref:nbe}),children:[Pbe,Mbe,obe&&jsx(Compact$1,{prefixCls:jme})]});return isUnBorderedButtonVariant(Nme)||(Kbe=jsx(Wave,{component:"Button",disabled:Yme,children:Kbe})),Vme(Kbe)}),Button$3=InternalCompoundedButton;Button$3.Group=ButtonGroup;Button$3.__ANT_BUTTON=!0;var OrderContext=reactExports.createContext(null),EMPTY_LIST$2=[];function useDom(x_,eme){var $P=reactExports.useState(function(){if(!canUseDom())return null;var fme=document.createElement("div");return fme}),tme=_slicedToArray$2($P,1),ame=tme[0],nme=reactExports.useRef(!1),rme=reactExports.useContext(OrderContext),ime=reactExports.useState(EMPTY_LIST$2),ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1],cme=rme||(nme.current?void 0:function(fme){sme(function(pme){var hme=[fme].concat(_toConsumableArray$1(pme));return hme})});function dme(){ame.parentElement||document.body.appendChild(ame),nme.current=!0}function ume(){var fme;(fme=ame.parentElement)===null||fme===void 0||fme.removeChild(ame),nme.current=!1}return useLayoutEffect$1(function(){return x_?rme?rme(dme):dme():ume(),ume},[x_]),useLayoutEffect$1(function(){lme.length&&(lme.forEach(function(fme){return fme()}),sme(EMPTY_LIST$2))},[lme]),[ame,cme]}function measureScrollbarSize(x_){var eme="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),$P=document.createElement("div");$P.id=eme;var tme=$P.style;tme.position="absolute",tme.left="0",tme.top="0",tme.width="100px",tme.height="100px",tme.overflow="scroll";var ame,nme;if(x_){var rme=getComputedStyle(x_);tme.scrollbarColor=rme.scrollbarColor,tme.scrollbarWidth=rme.scrollbarWidth;var ime=getComputedStyle(x_,"::-webkit-scrollbar"),ome=parseInt(ime.width,10),lme=parseInt(ime.height,10);try{var sme=ome?"width: ".concat(ime.width,";"):"",cme=lme?"height: ".concat(ime.height,";"):"";updateCSS(`
#`.concat(eme,`::-webkit-scrollbar {
`).concat(sme,`
`).concat(cme,`
}`),eme)}catch(fme){console.error(fme),ame=ome,nme=lme}}document.body.appendChild($P);var dme=x_&&ame&&!isNaN(ame)?ame:$P.offsetWidth-$P.clientWidth,ume=x_&&nme&&!isNaN(nme)?nme:$P.offsetHeight-$P.clientHeight;return document.body.removeChild($P),removeCSS(eme),{width:dme,height:ume}}function getTargetScrollBarSize(x_){return typeof document>"u"||!x_||!(x_ instanceof Element)?{width:0,height:0}:measureScrollbarSize(x_)}function isBodyOverflowing(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var UNIQUE_ID="rc-util-locker-".concat(Date.now()),uuid$5=0;function useScrollLocker(x_){var eme=!!x_,$P=reactExports.useState(function(){return uuid$5+=1,"".concat(UNIQUE_ID,"_").concat(uuid$5)}),tme=_slicedToArray$2($P,1),ame=tme[0];useLayoutEffect$1(function(){if(eme){var nme=getTargetScrollBarSize(document.body).width,rme=isBodyOverflowing();updateCSS(`
html body {
  overflow-y: hidden;
  `.concat(rme?"width: calc(100% - ".concat(nme,"px);"):"",`
}`),ame)}else removeCSS(ame);return function(){removeCSS(ame)}},[eme,ame])}var inline=!1;function inlineMock(x_){return inline}var getPortalContainer=function(eme){return eme===!1?!1:!canUseDom()||!eme?null:typeof eme=="string"?document.querySelector(eme):typeof eme=="function"?eme():eme},Portal$1=reactExports.forwardRef(function(x_,eme){var $P=x_.open,tme=x_.autoLock,ame=x_.getContainer;x_.debug;var nme=x_.autoDestroy,rme=nme===void 0?!0:nme,ime=x_.children,ome=reactExports.useState($P),lme=_slicedToArray$2(ome,2),sme=lme[0],cme=lme[1],dme=sme||$P;reactExports.useEffect(function(){(rme||$P)&&cme($P)},[$P,rme]);var ume=reactExports.useState(function(){return getPortalContainer(ame)}),fme=_slicedToArray$2(ume,2),pme=fme[0],hme=fme[1];reactExports.useEffect(function(){var xme=getPortalContainer(ame);hme(xme??null)});var bme=useDom(dme&&!pme),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1],yme=pme??vme;useScrollLocker(tme&&$P&&canUseDom()&&(yme===vme||yme===document.body));var _me=null;if(ime&&supportRef(ime)&&eme){var $me=ime;_me=$me.ref}var Cme=useComposeRef(_me,eme);if(!dme||!canUseDom()||pme===void 0)return null;var Sme=yme===!1||inlineMock(),Eme=ime;return eme&&(Eme=reactExports.cloneElement(ime,{ref:Cme})),reactExports.createElement(OrderContext.Provider,{value:gme},Sme?Eme:reactDomExports.createPortal(Eme,yme))}),RefContext$1=reactExports.createContext({});function getUseId(){var x_=_objectSpread2$4({},React$1);return x_.useId}var uuid$4=0,useOriginId=getUseId();const useId$2=useOriginId?function(eme){var $P=useOriginId();return eme||$P}:function(eme){var $P=reactExports.useState("ssr-id"),tme=_slicedToArray$2($P,2),ame=tme[0],nme=tme[1];return reactExports.useEffect(function(){var rme=uuid$4;uuid$4+=1,nme("rc_unique_".concat(rme))},[]),eme||ame};function getMotionName(x_,eme,$P){var tme=eme;return!tme&&$P&&(tme="".concat(x_,"-").concat($P)),tme}function getScroll$1(x_,eme){var $P=x_["page".concat(eme?"Y":"X","Offset")],tme="scroll".concat(eme?"Top":"Left");if(typeof $P!="number"){var ame=x_.document;$P=ame.documentElement[tme],typeof $P!="number"&&($P=ame.body[tme])}return $P}function offset$2(x_){var eme=x_.getBoundingClientRect(),$P={left:eme.left,top:eme.top},tme=x_.ownerDocument,ame=tme.defaultView||tme.parentWindow;return $P.left+=getScroll$1(ame),$P.top+=getScroll$1(ame,!0),$P}const MemoChildren=reactExports.memo(function(x_){var eme=x_.children;return eme},function(x_,eme){var $P=eme.shouldUpdate;return!$P});var sentinelStyle$1={width:0,height:0,overflow:"hidden",outline:"none"},entityStyle={outline:"none"},Panel=React__default.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.className,ame=x_.style,nme=x_.title,rme=x_.ariaId,ime=x_.footer,ome=x_.closable,lme=x_.closeIcon,sme=x_.onClose,cme=x_.children,dme=x_.bodyStyle,ume=x_.bodyProps,fme=x_.modalRender,pme=x_.onMouseDown,hme=x_.onMouseUp,bme=x_.holderRef,mme=x_.visible,vme=x_.forceRender,gme=x_.width,yme=x_.height,_me=x_.classNames,$me=x_.styles,Cme=React__default.useContext(RefContext$1),Sme=Cme.panel,Eme=useComposeRef(bme,Sme),xme=reactExports.useRef(),Tme=reactExports.useRef();React__default.useImperativeHandle(eme,function(){return{focus:function(){var jme;(jme=xme.current)===null||jme===void 0||jme.focus({preventScroll:!0})},changeActive:function(jme){var Vme=document,Wme=Vme.activeElement;jme&&Wme===Tme.current?xme.current.focus({preventScroll:!0}):!jme&&Wme===xme.current&&Tme.current.focus({preventScroll:!0})}}});var Ome={};gme!==void 0&&(Ome.width=gme),yme!==void 0&&(Ome.height=yme);var Rme=ime?jsx("div",{className:classNames("".concat($P,"-footer"),_me==null?void 0:_me.footer),style:_objectSpread2$4({},$me==null?void 0:$me.footer),children:ime}):null,Nme=nme?jsx("div",{className:classNames("".concat($P,"-header"),_me==null?void 0:_me.header),style:_objectSpread2$4({},$me==null?void 0:$me.header),children:jsx("div",{className:"".concat($P,"-title"),id:rme,children:nme})}):null,Ime=reactExports.useMemo(function(){return _typeof$4(ome)==="object"&&ome!==null?ome:ome?{closeIcon:lme??jsx("span",{className:"".concat($P,"-close-x")})}:{}},[ome,lme,$P]),Pme=pickAttrs(Ime,!0),Mme=_typeof$4(ome)==="object"&&ome.disabled,kme=ome?jsx("button",{type:"button",onClick:sme,"aria-label":"Close",...Pme,className:"".concat($P,"-close"),disabled:Mme,children:Ime.closeIcon}):null,Bme=jsxs("div",{className:classNames("".concat($P,"-content"),_me==null?void 0:_me.content),style:$me==null?void 0:$me.content,children:[kme,Nme,jsx("div",{className:classNames("".concat($P,"-body"),_me==null?void 0:_me.body),style:_objectSpread2$4(_objectSpread2$4({},dme),$me==null?void 0:$me.body),...ume,children:cme}),Rme]});return jsxs("div",{role:"dialog","aria-labelledby":nme?rme:null,"aria-modal":"true",ref:Eme,style:_objectSpread2$4(_objectSpread2$4({},ame),Ome),className:classNames($P,tme),onMouseDown:pme,onMouseUp:hme,children:[jsx("div",{ref:xme,tabIndex:0,style:entityStyle,children:jsx(MemoChildren,{shouldUpdate:mme||vme,children:fme?fme(Bme):Bme})}),jsx("div",{tabIndex:0,ref:Tme,style:sentinelStyle$1})]},"dialog-element")}),Content$9=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.title,ame=x_.style,nme=x_.className,rme=x_.visible,ime=x_.forceRender,ome=x_.destroyOnClose,lme=x_.motionName,sme=x_.ariaId,cme=x_.onVisibleChanged,dme=x_.mousePosition,ume=reactExports.useRef(),fme=reactExports.useState(),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme={};hme&&(mme.transformOrigin=hme);function vme(){var gme=offset$2(ume.current);bme(dme&&(dme.x||dme.y)?"".concat(dme.x-gme.left,"px ").concat(dme.y-gme.top,"px"):"")}return reactExports.createElement(CSSMotion,{visible:rme,onVisibleChanged:cme,onAppearPrepare:vme,onEnterPrepare:vme,forceRender:ime,motionName:lme,removeOnLeave:ome,ref:ume},function(gme,yme){var _me=gme.className,$me=gme.style;return reactExports.createElement(Panel,_extends$4C({},x_,{ref:eme,title:tme,ariaId:sme,prefixCls:$P,holderRef:yme,style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},$me),ame),mme),className:classNames(nme,_me)}))})});Content$9.displayName="Content";var Mask$1=function(eme){var $P=eme.prefixCls,tme=eme.style,ame=eme.visible,nme=eme.maskProps,rme=eme.motionName,ime=eme.className;return reactExports.createElement(CSSMotion,{key:"mask",visible:ame,motionName:rme,leavedClassName:"".concat($P,"-mask-hidden")},function(ome,lme){var sme=ome.className,cme=ome.style;return reactExports.createElement("div",_extends$4C({ref:lme,style:_objectSpread2$4(_objectSpread2$4({},cme),tme),className:classNames("".concat($P,"-mask"),sme,ime)},nme))})},Dialog=function(eme){var $P=eme.prefixCls,tme=$P===void 0?"rc-dialog":$P,ame=eme.zIndex,nme=eme.visible,rme=nme===void 0?!1:nme,ime=eme.keyboard,ome=ime===void 0?!0:ime,lme=eme.focusTriggerAfterClose,sme=lme===void 0?!0:lme,cme=eme.wrapStyle,dme=eme.wrapClassName,ume=eme.wrapProps,fme=eme.onClose,pme=eme.afterOpenChange,hme=eme.afterClose,bme=eme.transitionName,mme=eme.animation,vme=eme.closable,gme=vme===void 0?!0:vme,yme=eme.mask,_me=yme===void 0?!0:yme,$me=eme.maskTransitionName,Cme=eme.maskAnimation,Sme=eme.maskClosable,Eme=Sme===void 0?!0:Sme,xme=eme.maskStyle,Tme=eme.maskProps,Ome=eme.rootClassName,Rme=eme.classNames,Nme=eme.styles,Ime=reactExports.useRef(),Pme=reactExports.useRef(),Mme=reactExports.useRef(),kme=reactExports.useState(rme),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=useId$2();function Wme(){contains$1(Pme.current,document.activeElement)||(Ime.current=document.activeElement)}function Lme(){if(!contains$1(Pme.current,document.activeElement)){var nbe;(nbe=Mme.current)===null||nbe===void 0||nbe.focus()}}function zme(nbe){if(nbe)Lme();else{if(jme(!1),_me&&Ime.current&&sme){try{Ime.current.focus({preventScroll:!0})}catch{}Ime.current=null}Dme&&(hme==null||hme())}pme==null||pme(nbe)}function Ume(nbe){fme==null||fme(nbe)}var Gme=reactExports.useRef(!1),Jme=reactExports.useRef(),Yme=function(){clearTimeout(Jme.current),Gme.current=!0},Qme=function(){Jme.current=setTimeout(function(){Gme.current=!1})},Xme=null;Eme&&(Xme=function(lbe){Gme.current?Gme.current=!1:Pme.current===lbe.target&&Ume(lbe)});function Kme(nbe){if(ome&&nbe.keyCode===KeyCode.ESC){nbe.stopPropagation(),Ume(nbe);return}rme&&nbe.keyCode===KeyCode.TAB&&Mme.current.changeActive(!nbe.shiftKey)}reactExports.useEffect(function(){rme&&(jme(!0),Wme())},[rme]),reactExports.useEffect(function(){return function(){clearTimeout(Jme.current)}},[]);var Zme=_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({zIndex:ame},cme),Nme==null?void 0:Nme.wrapper),{},{display:Dme?null:"none"});return reactExports.createElement("div",_extends$4C({className:classNames("".concat(tme,"-root"),Ome)},pickAttrs(eme,{data:!0})),reactExports.createElement(Mask$1,{prefixCls:tme,visible:_me&&rme,motionName:getMotionName(tme,$me,Cme),style:_objectSpread2$4(_objectSpread2$4({zIndex:ame},xme),Nme==null?void 0:Nme.mask),maskProps:Tme,className:Rme==null?void 0:Rme.mask}),reactExports.createElement("div",_extends$4C({tabIndex:-1,onKeyDown:Kme,className:classNames("".concat(tme,"-wrap"),dme,Rme==null?void 0:Rme.wrapper),ref:Pme,onClick:Xme,style:Zme},ume),reactExports.createElement(Content$9,_extends$4C({},eme,{onMouseDown:Yme,onMouseUp:Qme,ref:Mme,closable:gme,ariaId:Vme,prefixCls:tme,visible:rme&&Dme,onClose:Ume,onVisibleChanged:zme,motionName:getMotionName(tme,bme,mme)}))))},DialogWrap=function(eme){var $P=eme.visible,tme=eme.getContainer,ame=eme.forceRender,nme=eme.destroyOnClose,rme=nme===void 0?!1:nme,ime=eme.afterClose,ome=eme.panelRef,lme=reactExports.useState($P),sme=_slicedToArray$2(lme,2),cme=sme[0],dme=sme[1],ume=reactExports.useMemo(function(){return{panel:ome}},[ome]);return reactExports.useEffect(function(){$P&&dme(!0)},[$P]),!ame&&rme&&!cme?null:reactExports.createElement(RefContext$1.Provider,{value:ume},reactExports.createElement(Portal$1,{open:$P||ame||cme,autoDestroy:!1,getContainer:tme,autoLock:$P||cme},reactExports.createElement(Dialog,_extends$4C({},eme,{destroyOnClose:rme,afterClose:function(){ime==null||ime(),dme(!1)}}))))};DialogWrap.displayName="Dialog";var HOOK_MARK="RC_FORM_INTERNAL_HOOKS",warningFunc=function(){warningOnce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Context$2=reactExports.createContext({getFieldValue:warningFunc,getFieldsValue:warningFunc,getFieldError:warningFunc,getFieldWarning:warningFunc,getFieldsError:warningFunc,isFieldsTouched:warningFunc,isFieldTouched:warningFunc,isFieldValidating:warningFunc,isFieldsValidating:warningFunc,resetFields:warningFunc,setFields:warningFunc,setFieldValue:warningFunc,setFieldsValue:warningFunc,validateFields:warningFunc,submit:warningFunc,getInternalHooks:function(){return warningFunc(),{dispatch:warningFunc,initEntityValue:warningFunc,registerField:warningFunc,useSubscribe:warningFunc,setInitialValues:warningFunc,destroyForm:warningFunc,setCallbacks:warningFunc,registerWatch:warningFunc,getFields:warningFunc,setValidateMessages:warningFunc,setPreserve:warningFunc,getInitialValue:warningFunc}}}),ListContext=reactExports.createContext(null);function toArray$5(x_){return x_==null?[]:Array.isArray(x_)?x_:[x_]}function isFormInstance(x_){return x_&&!!x_._init}function newMessages(){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 eme=JSON.parse(JSON.stringify(this));return eme.clone=this.clone,eme}}}var messages=newMessages();function _isNativeFunction(x_){try{return Function.toString.call(x_).indexOf("[native code]")!==-1}catch{return typeof x_=="function"}}function _construct(x_,eme,$P){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var tme=[null];tme.push.apply(tme,eme);var ame=new(x_.bind.apply(x_,tme));return $P&&_setPrototypeOf(ame,$P.prototype),ame}function _wrapNativeSuper(x_){var eme=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(tme){if(tme===null||!_isNativeFunction(tme))return tme;if(typeof tme!="function")throw new TypeError("Super expression must either be null or a function");if(eme!==void 0){if(eme.has(tme))return eme.get(tme);eme.set(tme,ame)}function ame(){return _construct(tme,arguments,_getPrototypeOf(this).constructor)}return ame.prototype=Object.create(tme.prototype,{constructor:{value:ame,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(ame,tme)},_wrapNativeSuper(x_)}var define_process_env_default$2={},formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u";function convertFieldsError(x_){if(!x_||!x_.length)return null;var eme={};return x_.forEach(function($P){var tme=$P.field;eme[tme]=eme[tme]||[],eme[tme].push($P)}),eme}function format$2(x_){for(var eme=arguments.length,$P=new Array(eme>1?eme-1:0),tme=1;tme<eme;tme++)$P[tme-1]=arguments[tme];var ame=0,nme=$P.length;if(typeof x_=="function")return x_.apply(null,$P);if(typeof x_=="string"){var rme=x_.replace(formatRegExp,function(ime){if(ime==="%%")return"%";if(ame>=nme)return ime;switch(ime){case"%s":return String($P[ame++]);case"%d":return Number($P[ame++]);case"%j":try{return JSON.stringify($P[ame++])}catch{return"[Circular]"}break;default:return ime}});return rme}return x_}function isNativeStringType(x_){return x_==="string"||x_==="url"||x_==="hex"||x_==="email"||x_==="date"||x_==="pattern"}function isEmptyValue(x_,eme){return!!(x_==null||eme==="array"&&Array.isArray(x_)&&!x_.length||isNativeStringType(eme)&&typeof x_=="string"&&!x_)}function asyncParallelArray(x_,eme,$P){var tme=[],ame=0,nme=x_.length;function rme(ime){tme.push.apply(tme,_toConsumableArray$1(ime||[])),ame++,ame===nme&&$P(tme)}x_.forEach(function(ime){eme(ime,rme)})}function asyncSerialArray(x_,eme,$P){var tme=0,ame=x_.length;function nme(rme){if(rme&&rme.length){$P(rme);return}var ime=tme;tme=tme+1,ime<ame?eme(x_[ime],nme):$P([])}nme([])}function flattenObjArr(x_){var eme=[];return Object.keys(x_).forEach(function($P){eme.push.apply(eme,_toConsumableArray$1(x_[$P]||[]))}),eme}var AsyncValidationError=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme,ame){var nme;return _classCallCheck$d(this,$P),nme=eme.call(this,"Async Validation Error"),_defineProperty$7(_assertThisInitialized(nme),"errors",void 0),_defineProperty$7(_assertThisInitialized(nme),"fields",void 0),nme.errors=tme,nme.fields=ame,nme}return _createClass$b($P)}(_wrapNativeSuper(Error));function asyncMap(x_,eme,$P,tme,ame){if(eme.first){var nme=new Promise(function(dme,ume){var fme=function(bme){return tme(bme),bme.length?ume(new AsyncValidationError(bme,convertFieldsError(bme))):dme(ame)},pme=flattenObjArr(x_);asyncSerialArray(pme,$P,fme)});return nme.catch(function(dme){return dme}),nme}var rme=eme.firstFields===!0?Object.keys(x_):eme.firstFields||[],ime=Object.keys(x_),ome=ime.length,lme=0,sme=[],cme=new Promise(function(dme,ume){var fme=function(hme){if(sme.push.apply(sme,hme),lme++,lme===ome)return tme(sme),sme.length?ume(new AsyncValidationError(sme,convertFieldsError(sme))):dme(ame)};ime.length||(tme(sme),dme(ame)),ime.forEach(function(pme){var hme=x_[pme];rme.indexOf(pme)!==-1?asyncSerialArray(hme,$P,fme):asyncParallelArray(hme,$P,fme)})});return cme.catch(function(dme){return dme}),cme}function isErrorObj(x_){return!!(x_&&x_.message!==void 0)}function getValue$4(x_,eme){for(var $P=x_,tme=0;tme<eme.length;tme++){if($P==null)return $P;$P=$P[eme[tme]]}return $P}function complementError(x_,eme){return function($P){var tme;return x_.fullFields?tme=getValue$4(eme,x_.fullFields):tme=eme[$P.field||x_.fullField],isErrorObj($P)?($P.field=$P.field||x_.fullField,$P.fieldValue=tme,$P):{message:typeof $P=="function"?$P():$P,fieldValue:tme,field:$P.field||x_.fullField}}}function deepMerge(x_,eme){if(eme){for(var $P in eme)if(eme.hasOwnProperty($P)){var tme=eme[$P];_typeof$4(tme)==="object"&&_typeof$4(x_[$P])==="object"?x_[$P]=_objectSpread2$4(_objectSpread2$4({},x_[$P]),tme):x_[$P]=tme}}return x_}var ENUM$1="enum",enumerable$1=function(eme,$P,tme,ame,nme){eme[ENUM$1]=Array.isArray(eme[ENUM$1])?eme[ENUM$1]:[],eme[ENUM$1].indexOf($P)===-1&&ame.push(format$2(nme.messages[ENUM$1],eme.fullField,eme[ENUM$1].join(", ")))},pattern$2=function(eme,$P,tme,ame,nme){if(eme.pattern){if(eme.pattern instanceof RegExp)eme.pattern.lastIndex=0,eme.pattern.test($P)||ame.push(format$2(nme.messages.pattern.mismatch,eme.fullField,$P,eme.pattern));else if(typeof eme.pattern=="string"){var rme=new RegExp(eme.pattern);rme.test($P)||ame.push(format$2(nme.messages.pattern.mismatch,eme.fullField,$P,eme.pattern))}}},range$3=function(eme,$P,tme,ame,nme){var rme=typeof eme.len=="number",ime=typeof eme.min=="number",ome=typeof eme.max=="number",lme=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sme=$P,cme=null,dme=typeof $P=="number",ume=typeof $P=="string",fme=Array.isArray($P);if(dme?cme="number":ume?cme="string":fme&&(cme="array"),!cme)return!1;fme&&(sme=$P.length),ume&&(sme=$P.replace(lme,"_").length),rme?sme!==eme.len&&ame.push(format$2(nme.messages[cme].len,eme.fullField,eme.len)):ime&&!ome&&sme<eme.min?ame.push(format$2(nme.messages[cme].min,eme.fullField,eme.min)):ome&&!ime&&sme>eme.max?ame.push(format$2(nme.messages[cme].max,eme.fullField,eme.max)):ime&&ome&&(sme<eme.min||sme>eme.max)&&ame.push(format$2(nme.messages[cme].range,eme.fullField,eme.min,eme.max))},required$1=function(eme,$P,tme,ame,nme,rme){eme.required&&(!tme.hasOwnProperty(eme.field)||isEmptyValue($P,rme||eme.type))&&ame.push(format$2(nme.messages.required,eme.fullField))},urlReg;const getUrlRegex=function(){if(urlReg)return urlReg;var x_="[a-fA-F\\d:]",eme=function(_me){return _me&&_me.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(x_,")|(?<=").concat(x_,")(?=\\s|$))"):""},$P="(?: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}",tme="[a-fA-F\\d]{1,4}",ame=["(?:".concat(tme,":){7}(?:").concat(tme,"|:)"),"(?:".concat(tme,":){6}(?:").concat($P,"|:").concat(tme,"|:)"),"(?:".concat(tme,":){5}(?::").concat($P,"|(?::").concat(tme,"){1,2}|:)"),"(?:".concat(tme,":){4}(?:(?::").concat(tme,"){0,1}:").concat($P,"|(?::").concat(tme,"){1,3}|:)"),"(?:".concat(tme,":){3}(?:(?::").concat(tme,"){0,2}:").concat($P,"|(?::").concat(tme,"){1,4}|:)"),"(?:".concat(tme,":){2}(?:(?::").concat(tme,"){0,3}:").concat($P,"|(?::").concat(tme,"){1,5}|:)"),"(?:".concat(tme,":){1}(?:(?::").concat(tme,"){0,4}:").concat($P,"|(?::").concat(tme,"){1,6}|:)"),"(?::(?:(?::".concat(tme,"){0,5}:").concat($P,"|(?::").concat(tme,"){1,7}|:))")],nme="(?:%[0-9a-zA-Z]{1,})?",rme="(?:".concat(ame.join("|"),")").concat(nme),ime=new RegExp("(?:^".concat($P,"$)|(?:^").concat(rme,"$)")),ome=new RegExp("^".concat($P,"$")),lme=new RegExp("^".concat(rme,"$")),sme=function(_me){return _me&&_me.exact?ime:new RegExp("(?:".concat(eme(_me)).concat($P).concat(eme(_me),")|(?:").concat(eme(_me)).concat(rme).concat(eme(_me),")"),"g")};sme.v4=function(yme){return yme&&yme.exact?ome:new RegExp("".concat(eme(yme)).concat($P).concat(eme(yme)),"g")},sme.v6=function(yme){return yme&&yme.exact?lme:new RegExp("".concat(eme(yme)).concat(rme).concat(eme(yme)),"g")};var cme="(?:(?:[a-z]+:)?//)",dme="(?:\\S+(?::\\S*)?@)?",ume=sme.v4().source,fme=sme.v6().source,pme="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",hme="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",bme="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",mme="(?::\\d{2,5})?",vme='(?:[/?#][^\\s"]*)?',gme="(?:".concat(cme,"|www\\.)").concat(dme,"(?:localhost|").concat(ume,"|").concat(fme,"|").concat(pme).concat(hme).concat(bme,")").concat(mme).concat(vme);return urlReg=new RegExp("(?:^".concat(gme,"$)"),"i"),urlReg};var pattern$1={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},types$1={integer:function(eme){return types$1.number(eme)&&parseInt(eme,10)===eme},float:function(eme){return types$1.number(eme)&&!types$1.integer(eme)},array:function(eme){return Array.isArray(eme)},regexp:function(eme){if(eme instanceof RegExp)return!0;try{return!!new RegExp(eme)}catch{return!1}},date:function(eme){return typeof eme.getTime=="function"&&typeof eme.getMonth=="function"&&typeof eme.getYear=="function"&&!isNaN(eme.getTime())},number:function(eme){return isNaN(eme)?!1:typeof eme=="number"},object:function(eme){return _typeof$4(eme)==="object"&&!types$1.array(eme)},method:function(eme){return typeof eme=="function"},email:function(eme){return typeof eme=="string"&&eme.length<=320&&!!eme.match(pattern$1.email)},url:function(eme){return typeof eme=="string"&&eme.length<=2048&&!!eme.match(getUrlRegex())},hex:function(eme){return typeof eme=="string"&&!!eme.match(pattern$1.hex)}},type$1=function(eme,$P,tme,ame,nme){if(eme.required&&$P===void 0){required$1(eme,$P,tme,ame,nme);return}var rme=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ime=eme.type;rme.indexOf(ime)>-1?types$1[ime]($P)||ame.push(format$2(nme.messages.types[ime],eme.fullField,eme.type)):ime&&_typeof$4($P)!==eme.type&&ame.push(format$2(nme.messages.types[ime],eme.fullField,eme.type))},whitespace$1=function(eme,$P,tme,ame,nme){(/^\s+$/.test($P)||$P==="")&&ame.push(format$2(nme.messages.whitespace,eme.fullField))};const rules={required:required$1,whitespace:whitespace$1,type:type$1,range:range$3,enum:enumerable$1,pattern:pattern$2};var any=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme)}tme(rme)},array$1=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if($P==null&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme,"array"),$P!=null&&(rules.type(eme,$P,ame,rme,nme),rules.range(eme,$P,ame,rme,nme))}tme(rme)},boolean$1=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&rules.type(eme,$P,ame,rme,nme)}tme(rme)},date=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P,"date")&&!eme.required)return tme();if(rules.required(eme,$P,ame,rme,nme),!isEmptyValue($P,"date")){var ome;$P instanceof Date?ome=$P:ome=new Date($P),rules.type(eme,ome,ame,rme,nme),ome&&rules.range(eme,ome.getTime(),ame,rme,nme)}}tme(rme)},ENUM="enum",enumerable=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&rules[ENUM](eme,$P,ame,rme,nme)}tme(rme)},floatFn=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&(rules.type(eme,$P,ame,rme,nme),rules.range(eme,$P,ame,rme,nme))}tme(rme)},integer$1=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&(rules.type(eme,$P,ame,rme,nme),rules.range(eme,$P,ame,rme,nme))}tme(rme)},method=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&rules.type(eme,$P,ame,rme,nme)}tme(rme)},number$1=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if($P===""&&($P=void 0),isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&(rules.type(eme,$P,ame,rme,nme),rules.range(eme,$P,ame,rme,nme))}tme(rme)},object=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),$P!==void 0&&rules.type(eme,$P,ame,rme,nme)}tme(rme)},pattern=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P,"string")&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),isEmptyValue($P,"string")||rules.pattern(eme,$P,ame,rme,nme)}tme(rme)},regexp=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P)&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme),isEmptyValue($P)||rules.type(eme,$P,ame,rme,nme)}tme(rme)},required=function(eme,$P,tme,ame,nme){var rme=[],ime=Array.isArray($P)?"array":_typeof$4($P);rules.required(eme,$P,ame,rme,nme,ime),tme(rme)},string$1=function(eme,$P,tme,ame,nme){var rme=[],ime=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ime){if(isEmptyValue($P,"string")&&!eme.required)return tme();rules.required(eme,$P,ame,rme,nme,"string"),isEmptyValue($P,"string")||(rules.type(eme,$P,ame,rme,nme),rules.range(eme,$P,ame,rme,nme),rules.pattern(eme,$P,ame,rme,nme),eme.whitespace===!0&&rules.whitespace(eme,$P,ame,rme,nme))}tme(rme)},type=function(eme,$P,tme,ame,nme){var rme=eme.type,ime=[],ome=eme.required||!eme.required&&ame.hasOwnProperty(eme.field);if(ome){if(isEmptyValue($P,rme)&&!eme.required)return tme();rules.required(eme,$P,ame,ime,nme,rme),isEmptyValue($P,rme)||rules.type(eme,$P,ame,ime,nme)}tme(ime)};const validators={string:string$1,method,number:number$1,boolean:boolean$1,regexp,integer:integer$1,float:floatFn,array:array$1,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};var Schema=function(){function x_(eme){_classCallCheck$d(this,x_),_defineProperty$7(this,"rules",null),_defineProperty$7(this,"_messages",messages),this.define(eme)}return _createClass$b(x_,[{key:"define",value:function($P){var tme=this;if(!$P)throw new Error("Cannot configure a schema with no rules");if(_typeof$4($P)!=="object"||Array.isArray($P))throw new Error("Rules must be an object");this.rules={},Object.keys($P).forEach(function(ame){var nme=$P[ame];tme.rules[ame]=Array.isArray(nme)?nme:[nme]})}},{key:"messages",value:function($P){return $P&&(this._messages=deepMerge(newMessages(),$P)),this._messages}},{key:"validate",value:function($P){var tme=this,ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},rme=$P,ime=ame,ome=nme;if(typeof ime=="function"&&(ome=ime,ime={}),!this.rules||Object.keys(this.rules).length===0)return ome&&ome(null,rme),Promise.resolve(rme);function lme(fme){var pme=[],hme={};function bme(vme){if(Array.isArray(vme)){var gme;pme=(gme=pme).concat.apply(gme,_toConsumableArray$1(vme))}else pme.push(vme)}for(var mme=0;mme<fme.length;mme++)bme(fme[mme]);pme.length?(hme=convertFieldsError(pme),ome(pme,hme)):ome(null,rme)}if(ime.messages){var sme=this.messages();sme===messages&&(sme=newMessages()),deepMerge(sme,ime.messages),ime.messages=sme}else ime.messages=this.messages();var cme={},dme=ime.keys||Object.keys(this.rules);dme.forEach(function(fme){var pme=tme.rules[fme],hme=rme[fme];pme.forEach(function(bme){var mme=bme;typeof mme.transform=="function"&&(rme===$P&&(rme=_objectSpread2$4({},rme)),hme=rme[fme]=mme.transform(hme),hme!=null&&(mme.type=mme.type||(Array.isArray(hme)?"array":_typeof$4(hme)))),typeof mme=="function"?mme={validator:mme}:mme=_objectSpread2$4({},mme),mme.validator=tme.getValidationMethod(mme),mme.validator&&(mme.field=fme,mme.fullField=mme.fullField||fme,mme.type=tme.getType(mme),cme[fme]=cme[fme]||[],cme[fme].push({rule:mme,value:hme,source:rme,field:fme}))})});var ume={};return asyncMap(cme,ime,function(fme,pme){var hme=fme.rule,bme=(hme.type==="object"||hme.type==="array")&&(_typeof$4(hme.fields)==="object"||_typeof$4(hme.defaultField)==="object");bme=bme&&(hme.required||!hme.required&&fme.value),hme.field=fme.field;function mme($me,Cme){return _objectSpread2$4(_objectSpread2$4({},Cme),{},{fullField:"".concat(hme.fullField,".").concat($me),fullFields:hme.fullFields?[].concat(_toConsumableArray$1(hme.fullFields),[$me]):[$me]})}function vme(){var $me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Cme=Array.isArray($me)?$me:[$me];!ime.suppressWarning&&Cme.length&&x_.warning("async-validator:",Cme),Cme.length&&hme.message!==void 0&&(Cme=[].concat(hme.message));var Sme=Cme.map(complementError(hme,rme));if(ime.first&&Sme.length)return ume[hme.field]=1,pme(Sme);if(!bme)pme(Sme);else{if(hme.required&&!fme.value)return hme.message!==void 0?Sme=[].concat(hme.message).map(complementError(hme,rme)):ime.error&&(Sme=[ime.error(hme,format$2(ime.messages.required,hme.field))]),pme(Sme);var Eme={};hme.defaultField&&Object.keys(fme.value).map(function(Ome){Eme[Ome]=hme.defaultField}),Eme=_objectSpread2$4(_objectSpread2$4({},Eme),fme.rule.fields);var xme={};Object.keys(Eme).forEach(function(Ome){var Rme=Eme[Ome],Nme=Array.isArray(Rme)?Rme:[Rme];xme[Ome]=Nme.map(mme.bind(null,Ome))});var Tme=new x_(xme);Tme.messages(ime.messages),fme.rule.options&&(fme.rule.options.messages=ime.messages,fme.rule.options.error=ime.error),Tme.validate(fme.value,fme.rule.options||ime,function(Ome){var Rme=[];Sme&&Sme.length&&Rme.push.apply(Rme,_toConsumableArray$1(Sme)),Ome&&Ome.length&&Rme.push.apply(Rme,_toConsumableArray$1(Ome)),pme(Rme.length?Rme:null)})}}var gme;if(hme.asyncValidator)gme=hme.asyncValidator(hme,fme.value,vme,fme.source,ime);else if(hme.validator){try{gme=hme.validator(hme,fme.value,vme,fme.source,ime)}catch($me){var yme,_me;(yme=(_me=console).error)===null||yme===void 0||yme.call(_me,$me),ime.suppressValidatorError||setTimeout(function(){throw $me},0),vme($me.message)}gme===!0?vme():gme===!1?vme(typeof hme.message=="function"?hme.message(hme.fullField||hme.field):hme.message||"".concat(hme.fullField||hme.field," fails")):gme instanceof Array?vme(gme):gme instanceof Error&&vme(gme.message)}gme&&gme.then&&gme.then(function(){return vme()},function($me){return vme($me)})},function(fme){lme(fme)},rme)}},{key:"getType",value:function($P){if($P.type===void 0&&$P.pattern instanceof RegExp&&($P.type="pattern"),typeof $P.validator!="function"&&$P.type&&!validators.hasOwnProperty($P.type))throw new Error(format$2("Unknown rule type %s",$P.type));return $P.type||"string"}},{key:"getValidationMethod",value:function($P){if(typeof $P.validator=="function")return $P.validator;var tme=Object.keys($P),ame=tme.indexOf("message");return ame!==-1&&tme.splice(ame,1),tme.length===1&&tme[0]==="required"?validators.required:validators[this.getType($P)]||void 0}}]),x_}();_defineProperty$7(Schema,"register",function(eme,$P){if(typeof $P!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators[eme]=$P});_defineProperty$7(Schema,"warning",warning$1);_defineProperty$7(Schema,"messages",messages);_defineProperty$7(Schema,"validators",validators);var typeTemplate$2="'${name}' is not a valid ${type}",defaultValidateMessages={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:typeTemplate$2,method:typeTemplate$2,array:typeTemplate$2,object:typeTemplate$2,number:typeTemplate$2,date:typeTemplate$2,boolean:typeTemplate$2,integer:typeTemplate$2,float:typeTemplate$2,regexp:typeTemplate$2,email:typeTemplate$2,url:typeTemplate$2,hex:typeTemplate$2},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}"}},AsyncValidator=Schema;function replaceMessage(x_,eme){return x_.replace(/\\?\$\{\w+\}/g,function($P){if($P.startsWith("\\"))return $P.slice(1);var tme=$P.slice(2,-1);return eme[tme]})}var CODE_LOGIC_ERROR="CODE_LOGIC_ERROR";function validateRule(x_,eme,$P,tme,ame){return _validateRule.apply(this,arguments)}function _validateRule(){return _validateRule=_asyncToGenerator(_regeneratorRuntime$1().mark(function x_(eme,$P,tme,ame,nme){var rme,ime,ome,lme,sme,cme,dme,ume,fme;return _regeneratorRuntime$1().wrap(function(hme){for(;;)switch(hme.prev=hme.next){case 0:return rme=_objectSpread2$4({},tme),delete rme.ruleIndex,AsyncValidator.warning=function(){},rme.validator&&(ime=rme.validator,rme.validator=function(){try{return ime.apply(void 0,arguments)}catch(bme){return console.error(bme),Promise.reject(CODE_LOGIC_ERROR)}}),ome=null,rme&&rme.type==="array"&&rme.defaultField&&(ome=rme.defaultField,delete rme.defaultField),lme=new AsyncValidator(_defineProperty$7({},eme,[rme])),sme=merge$6(defaultValidateMessages,ame.validateMessages),lme.messages(sme),cme=[],hme.prev=10,hme.next=13,Promise.resolve(lme.validate(_defineProperty$7({},eme,$P),_objectSpread2$4({},ame)));case 13:hme.next=18;break;case 15:hme.prev=15,hme.t0=hme.catch(10),hme.t0.errors&&(cme=hme.t0.errors.map(function(bme,mme){var vme=bme.message,gme=vme===CODE_LOGIC_ERROR?sme.default:vme;return reactExports.isValidElement(gme)?reactExports.cloneElement(gme,{key:"error_".concat(mme)}):gme}));case 18:if(!(!cme.length&&ome)){hme.next=23;break}return hme.next=21,Promise.all($P.map(function(bme,mme){return validateRule("".concat(eme,".").concat(mme),bme,ome,ame,nme)}));case 21:return dme=hme.sent,hme.abrupt("return",dme.reduce(function(bme,mme){return[].concat(_toConsumableArray$1(bme),_toConsumableArray$1(mme))},[]));case 23:return ume=_objectSpread2$4(_objectSpread2$4({},tme),{},{name:eme,enum:(tme.enum||[]).join(", ")},nme),fme=cme.map(function(bme){return typeof bme=="string"?replaceMessage(bme,ume):bme}),hme.abrupt("return",fme);case 26:case"end":return hme.stop()}},x_,null,[[10,15]])})),_validateRule.apply(this,arguments)}function validateRules(x_,eme,$P,tme,ame,nme){var rme=x_.join("."),ime=$P.map(function(sme,cme){var dme=sme.validator,ume=_objectSpread2$4(_objectSpread2$4({},sme),{},{ruleIndex:cme});return dme&&(ume.validator=function(fme,pme,hme){var bme=!1,mme=function(){for(var yme=arguments.length,_me=new Array(yme),$me=0;$me<yme;$me++)_me[$me]=arguments[$me];Promise.resolve().then(function(){warningOnce(!bme,"Your validator function has already return a promise. `callback` will be ignored."),bme||hme.apply(void 0,_me)})},vme=dme(fme,pme,mme);bme=vme&&typeof vme.then=="function"&&typeof vme.catch=="function",warningOnce(bme,"`callback` is deprecated. Please return a promise instead."),bme&&vme.then(function(){hme()}).catch(function(gme){hme(gme||" ")})}),ume}).sort(function(sme,cme){var dme=sme.warningOnly,ume=sme.ruleIndex,fme=cme.warningOnly,pme=cme.ruleIndex;return!!dme==!!fme?ume-pme:dme?1:-1}),ome;if(ame===!0)ome=new Promise(function(){var sme=_asyncToGenerator(_regeneratorRuntime$1().mark(function cme(dme,ume){var fme,pme,hme;return _regeneratorRuntime$1().wrap(function(mme){for(;;)switch(mme.prev=mme.next){case 0:fme=0;case 1:if(!(fme<ime.length)){mme.next=12;break}return pme=ime[fme],mme.next=5,validateRule(rme,eme,pme,tme,nme);case 5:if(hme=mme.sent,!hme.length){mme.next=9;break}return ume([{errors:hme,rule:pme}]),mme.abrupt("return");case 9:fme+=1,mme.next=1;break;case 12:dme([]);case 13:case"end":return mme.stop()}},cme)}));return function(cme,dme){return sme.apply(this,arguments)}}());else{var lme=ime.map(function(sme){return validateRule(rme,eme,sme,tme,nme).then(function(cme){return{errors:cme,rule:sme}})});ome=(ame?finishOnFirstFailed(lme):finishOnAllFailed(lme)).then(function(sme){return Promise.reject(sme)})}return ome.catch(function(sme){return sme}),ome}function finishOnAllFailed(x_){return _finishOnAllFailed.apply(this,arguments)}function _finishOnAllFailed(){return _finishOnAllFailed=_asyncToGenerator(_regeneratorRuntime$1().mark(function x_(eme){return _regeneratorRuntime$1().wrap(function(tme){for(;;)switch(tme.prev=tme.next){case 0:return tme.abrupt("return",Promise.all(eme).then(function(ame){var nme,rme=(nme=[]).concat.apply(nme,_toConsumableArray$1(ame));return rme}));case 1:case"end":return tme.stop()}},x_)})),_finishOnAllFailed.apply(this,arguments)}function finishOnFirstFailed(x_){return _finishOnFirstFailed.apply(this,arguments)}function _finishOnFirstFailed(){return _finishOnFirstFailed=_asyncToGenerator(_regeneratorRuntime$1().mark(function x_(eme){var $P;return _regeneratorRuntime$1().wrap(function(ame){for(;;)switch(ame.prev=ame.next){case 0:return $P=0,ame.abrupt("return",new Promise(function(nme){eme.forEach(function(rme){rme.then(function(ime){ime.errors.length&&nme([ime]),$P+=1,$P===eme.length&&nme([])})})}));case 2:case"end":return ame.stop()}},x_)})),_finishOnFirstFailed.apply(this,arguments)}function getNamePath(x_){return toArray$5(x_)}function cloneByNamePathList(x_,eme){var $P={};return eme.forEach(function(tme){var ame=get$8(x_,tme);$P=set$6($P,tme,ame)}),$P}function containsNamePath(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return x_&&x_.some(function(tme){return matchNamePath(eme,tme,$P)})}function matchNamePath(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!x_||!eme||!$P&&x_.length!==eme.length?!1:eme.every(function(tme,ame){return x_[ame]===tme})}function isSimilar(x_,eme){if(x_===eme)return!0;if(!x_&&eme||x_&&!eme||!x_||!eme||_typeof$4(x_)!=="object"||_typeof$4(eme)!=="object")return!1;var $P=Object.keys(x_),tme=Object.keys(eme),ame=new Set([].concat($P,tme));return _toConsumableArray$1(ame).every(function(nme){var rme=x_[nme],ime=eme[nme];return typeof rme=="function"&&typeof ime=="function"?!0:rme===ime})}function defaultGetValueFromEvent(x_){var eme=arguments.length<=1?void 0:arguments[1];return eme&&eme.target&&_typeof$4(eme.target)==="object"&&x_ in eme.target?eme.target[x_]:eme}function move(x_,eme,$P){var tme=x_.length;if(eme<0||eme>=tme||$P<0||$P>=tme)return x_;var ame=x_[eme],nme=eme-$P;return nme>0?[].concat(_toConsumableArray$1(x_.slice(0,$P)),[ame],_toConsumableArray$1(x_.slice($P,eme)),_toConsumableArray$1(x_.slice(eme+1,tme))):nme<0?[].concat(_toConsumableArray$1(x_.slice(0,eme)),_toConsumableArray$1(x_.slice(eme+1,$P+1)),[ame],_toConsumableArray$1(x_.slice($P+1,tme))):x_}var _excluded$J=["name"],EMPTY_ERRORS=[];function requireUpdate(x_,eme,$P,tme,ame,nme){return typeof x_=="function"?x_(eme,$P,"source"in nme?{source:nme.source}:{}):tme!==ame}var Field=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme){var ame;if(_classCallCheck$d(this,$P),ame=eme.call(this,tme),_defineProperty$7(_assertThisInitialized(ame),"state",{resetCount:0}),_defineProperty$7(_assertThisInitialized(ame),"cancelRegisterFunc",null),_defineProperty$7(_assertThisInitialized(ame),"mounted",!1),_defineProperty$7(_assertThisInitialized(ame),"touched",!1),_defineProperty$7(_assertThisInitialized(ame),"dirty",!1),_defineProperty$7(_assertThisInitialized(ame),"validatePromise",void 0),_defineProperty$7(_assertThisInitialized(ame),"prevValidating",void 0),_defineProperty$7(_assertThisInitialized(ame),"errors",EMPTY_ERRORS),_defineProperty$7(_assertThisInitialized(ame),"warnings",EMPTY_ERRORS),_defineProperty$7(_assertThisInitialized(ame),"cancelRegister",function(){var ome=ame.props,lme=ome.preserve,sme=ome.isListField,cme=ome.name;ame.cancelRegisterFunc&&ame.cancelRegisterFunc(sme,lme,getNamePath(cme)),ame.cancelRegisterFunc=null}),_defineProperty$7(_assertThisInitialized(ame),"getNamePath",function(){var ome=ame.props,lme=ome.name,sme=ome.fieldContext,cme=sme.prefixName,dme=cme===void 0?[]:cme;return lme!==void 0?[].concat(_toConsumableArray$1(dme),_toConsumableArray$1(lme)):[]}),_defineProperty$7(_assertThisInitialized(ame),"getRules",function(){var ome=ame.props,lme=ome.rules,sme=lme===void 0?[]:lme,cme=ome.fieldContext;return sme.map(function(dme){return typeof dme=="function"?dme(cme):dme})}),_defineProperty$7(_assertThisInitialized(ame),"refresh",function(){ame.mounted&&ame.setState(function(ome){var lme=ome.resetCount;return{resetCount:lme+1}})}),_defineProperty$7(_assertThisInitialized(ame),"metaCache",null),_defineProperty$7(_assertThisInitialized(ame),"triggerMetaEvent",function(ome){var lme=ame.props.onMetaChange;if(lme){var sme=_objectSpread2$4(_objectSpread2$4({},ame.getMeta()),{},{destroy:ome});isEqual$2(ame.metaCache,sme)||lme(sme),ame.metaCache=sme}else ame.metaCache=null}),_defineProperty$7(_assertThisInitialized(ame),"onStoreChange",function(ome,lme,sme){var cme=ame.props,dme=cme.shouldUpdate,ume=cme.dependencies,fme=ume===void 0?[]:ume,pme=cme.onReset,hme=sme.store,bme=ame.getNamePath(),mme=ame.getValue(ome),vme=ame.getValue(hme),gme=lme&&containsNamePath(lme,bme);switch(sme.type==="valueUpdate"&&sme.source==="external"&&!isEqual$2(mme,vme)&&(ame.touched=!0,ame.dirty=!0,ame.validatePromise=null,ame.errors=EMPTY_ERRORS,ame.warnings=EMPTY_ERRORS,ame.triggerMetaEvent()),sme.type){case"reset":if(!lme||gme){ame.touched=!1,ame.dirty=!1,ame.validatePromise=void 0,ame.errors=EMPTY_ERRORS,ame.warnings=EMPTY_ERRORS,ame.triggerMetaEvent(),pme==null||pme(),ame.refresh();return}break;case"remove":{if(dme&&requireUpdate(dme,ome,hme,mme,vme,sme)){ame.reRender();return}break}case"setField":{var yme=sme.data;if(gme){"touched"in yme&&(ame.touched=yme.touched),"validating"in yme&&!("originRCField"in yme)&&(ame.validatePromise=yme.validating?Promise.resolve([]):null),"errors"in yme&&(ame.errors=yme.errors||EMPTY_ERRORS),"warnings"in yme&&(ame.warnings=yme.warnings||EMPTY_ERRORS),ame.dirty=!0,ame.triggerMetaEvent(),ame.reRender();return}else if("value"in yme&&containsNamePath(lme,bme,!0)){ame.reRender();return}if(dme&&!bme.length&&requireUpdate(dme,ome,hme,mme,vme,sme)){ame.reRender();return}break}case"dependenciesUpdate":{var _me=fme.map(getNamePath);if(_me.some(function($me){return containsNamePath(sme.relatedFields,$me)})){ame.reRender();return}break}default:if(gme||(!fme.length||bme.length||dme)&&requireUpdate(dme,ome,hme,mme,vme,sme)){ame.reRender();return}break}dme===!0&&ame.reRender()}),_defineProperty$7(_assertThisInitialized(ame),"validateRules",function(ome){var lme=ame.getNamePath(),sme=ame.getValue(),cme=ome||{},dme=cme.triggerName,ume=cme.validateOnly,fme=ume===void 0?!1:ume,pme=Promise.resolve().then(_asyncToGenerator(_regeneratorRuntime$1().mark(function hme(){var bme,mme,vme,gme,yme,_me,$me;return _regeneratorRuntime$1().wrap(function(Sme){for(;;)switch(Sme.prev=Sme.next){case 0:if(ame.mounted){Sme.next=2;break}return Sme.abrupt("return",[]);case 2:if(bme=ame.props,mme=bme.validateFirst,vme=mme===void 0?!1:mme,gme=bme.messageVariables,yme=bme.validateDebounce,_me=ame.getRules(),dme&&(_me=_me.filter(function(Eme){return Eme}).filter(function(Eme){var xme=Eme.validateTrigger;if(!xme)return!0;var Tme=toArray$5(xme);return Tme.includes(dme)})),!(yme&&dme)){Sme.next=10;break}return Sme.next=8,new Promise(function(Eme){setTimeout(Eme,yme)});case 8:if(ame.validatePromise===pme){Sme.next=10;break}return Sme.abrupt("return",[]);case 10:return $me=validateRules(lme,sme,_me,ome,vme,gme),$me.catch(function(Eme){return Eme}).then(function(){var Eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:EMPTY_ERRORS;if(ame.validatePromise===pme){var xme;ame.validatePromise=null;var Tme=[],Ome=[];(xme=Eme.forEach)===null||xme===void 0||xme.call(Eme,function(Rme){var Nme=Rme.rule.warningOnly,Ime=Rme.errors,Pme=Ime===void 0?EMPTY_ERRORS:Ime;Nme?Ome.push.apply(Ome,_toConsumableArray$1(Pme)):Tme.push.apply(Tme,_toConsumableArray$1(Pme))}),ame.errors=Tme,ame.warnings=Ome,ame.triggerMetaEvent(),ame.reRender()}}),Sme.abrupt("return",$me);case 13:case"end":return Sme.stop()}},hme)})));return fme||(ame.validatePromise=pme,ame.dirty=!0,ame.errors=EMPTY_ERRORS,ame.warnings=EMPTY_ERRORS,ame.triggerMetaEvent(),ame.reRender()),pme}),_defineProperty$7(_assertThisInitialized(ame),"isFieldValidating",function(){return!!ame.validatePromise}),_defineProperty$7(_assertThisInitialized(ame),"isFieldTouched",function(){return ame.touched}),_defineProperty$7(_assertThisInitialized(ame),"isFieldDirty",function(){if(ame.dirty||ame.props.initialValue!==void 0)return!0;var ome=ame.props.fieldContext,lme=ome.getInternalHooks(HOOK_MARK),sme=lme.getInitialValue;return sme(ame.getNamePath())!==void 0}),_defineProperty$7(_assertThisInitialized(ame),"getErrors",function(){return ame.errors}),_defineProperty$7(_assertThisInitialized(ame),"getWarnings",function(){return ame.warnings}),_defineProperty$7(_assertThisInitialized(ame),"isListField",function(){return ame.props.isListField}),_defineProperty$7(_assertThisInitialized(ame),"isList",function(){return ame.props.isList}),_defineProperty$7(_assertThisInitialized(ame),"isPreserve",function(){return ame.props.preserve}),_defineProperty$7(_assertThisInitialized(ame),"getMeta",function(){ame.prevValidating=ame.isFieldValidating();var ome={touched:ame.isFieldTouched(),validating:ame.prevValidating,errors:ame.errors,warnings:ame.warnings,name:ame.getNamePath(),validated:ame.validatePromise===null};return ome}),_defineProperty$7(_assertThisInitialized(ame),"getOnlyChild",function(ome){if(typeof ome=="function"){var lme=ame.getMeta();return _objectSpread2$4(_objectSpread2$4({},ame.getOnlyChild(ome(ame.getControlled(),lme,ame.props.fieldContext))),{},{isFunction:!0})}var sme=toArray$6(ome);return sme.length!==1||!reactExports.isValidElement(sme[0])?{child:sme,isFunction:!1}:{child:sme[0],isFunction:!1}}),_defineProperty$7(_assertThisInitialized(ame),"getValue",function(ome){var lme=ame.props.fieldContext.getFieldsValue,sme=ame.getNamePath();return get$8(ome||lme(!0),sme)}),_defineProperty$7(_assertThisInitialized(ame),"getControlled",function(){var ome=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lme=ame.props,sme=lme.name,cme=lme.trigger,dme=lme.validateTrigger,ume=lme.getValueFromEvent,fme=lme.normalize,pme=lme.valuePropName,hme=lme.getValueProps,bme=lme.fieldContext,mme=dme!==void 0?dme:bme.validateTrigger,vme=ame.getNamePath(),gme=bme.getInternalHooks,yme=bme.getFieldsValue,_me=gme(HOOK_MARK),$me=_me.dispatch,Cme=ame.getValue(),Sme=hme||function(Rme){return _defineProperty$7({},pme,Rme)},Eme=ome[cme],xme=sme!==void 0?Sme(Cme):{},Tme=_objectSpread2$4(_objectSpread2$4({},ome),xme);Tme[cme]=function(){ame.touched=!0,ame.dirty=!0,ame.triggerMetaEvent();for(var Rme,Nme=arguments.length,Ime=new Array(Nme),Pme=0;Pme<Nme;Pme++)Ime[Pme]=arguments[Pme];ume?Rme=ume.apply(void 0,Ime):Rme=defaultGetValueFromEvent.apply(void 0,[pme].concat(Ime)),fme&&(Rme=fme(Rme,Cme,yme(!0))),Rme!==Cme&&$me({type:"updateValue",namePath:vme,value:Rme}),Eme&&Eme.apply(void 0,Ime)};var Ome=toArray$5(mme||[]);return Ome.forEach(function(Rme){var Nme=Tme[Rme];Tme[Rme]=function(){Nme&&Nme.apply(void 0,arguments);var Ime=ame.props.rules;Ime&&Ime.length&&$me({type:"validateField",namePath:vme,triggerName:Rme})}}),Tme}),tme.fieldContext){var nme=tme.fieldContext.getInternalHooks,rme=nme(HOOK_MARK),ime=rme.initEntityValue;ime(_assertThisInitialized(ame))}return ame}return _createClass$b($P,[{key:"componentDidMount",value:function(){var ame=this.props,nme=ame.shouldUpdate,rme=ame.fieldContext;if(this.mounted=!0,rme){var ime=rme.getInternalHooks,ome=ime(HOOK_MARK),lme=ome.registerField;this.cancelRegisterFunc=lme(this)}nme===!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 ame=this.state.resetCount,nme=this.props.children,rme=this.getOnlyChild(nme),ime=rme.child,ome=rme.isFunction,lme;return ome?lme=ime:reactExports.isValidElement(ime)?lme=reactExports.cloneElement(ime,this.getControlled(ime.props)):(warningOnce(!ime,"`children` of Field is not validate ReactElement."),lme=ime),reactExports.createElement(reactExports.Fragment,{key:ame},lme)}}]),$P}(reactExports.Component);_defineProperty$7(Field,"contextType",Context$2);_defineProperty$7(Field,"defaultProps",{trigger:"onChange",valuePropName:"value"});function WrapperField(x_){var eme,$P=x_.name,tme=_objectWithoutProperties$6(x_,_excluded$J),ame=reactExports.useContext(Context$2),nme=reactExports.useContext(ListContext),rme=$P!==void 0?getNamePath($P):void 0,ime=(eme=tme.isListField)!==null&&eme!==void 0?eme:!!nme,ome="keep";return ime||(ome="_".concat((rme||[]).join("_"))),reactExports.createElement(Field,_extends$4C({key:ome,name:rme,isListField:ime},tme,{fieldContext:ame}))}function List$3(x_){var eme=x_.name,$P=x_.initialValue,tme=x_.children,ame=x_.rules,nme=x_.validateTrigger,rme=x_.isListField,ime=reactExports.useContext(Context$2),ome=reactExports.useContext(ListContext),lme=reactExports.useRef({keys:[],id:0}),sme=lme.current,cme=reactExports.useMemo(function(){var pme=getNamePath(ime.prefixName)||[];return[].concat(_toConsumableArray$1(pme),_toConsumableArray$1(getNamePath(eme)))},[ime.prefixName,eme]),dme=reactExports.useMemo(function(){return _objectSpread2$4(_objectSpread2$4({},ime),{},{prefixName:cme})},[ime,cme]),ume=reactExports.useMemo(function(){return{getKey:function(hme){var bme=cme.length,mme=hme[bme];return[sme.keys[mme],hme.slice(bme+1)]}}},[cme]);if(typeof tme!="function")return warningOnce(!1,"Form.List only accepts function as children."),null;var fme=function(hme,bme,mme){var vme=mme.source;return vme==="internal"?!1:hme!==bme};return reactExports.createElement(ListContext.Provider,{value:ume},reactExports.createElement(Context$2.Provider,{value:dme},reactExports.createElement(WrapperField,{name:[],shouldUpdate:fme,rules:ame,validateTrigger:nme,initialValue:$P,isList:!0,isListField:rme??!!ome},function(pme,hme){var bme=pme.value,mme=bme===void 0?[]:bme,vme=pme.onChange,gme=ime.getFieldValue,yme=function(){var Sme=gme(cme||[]);return Sme||[]},_me={add:function(Sme,Eme){var xme=yme();Eme>=0&&Eme<=xme.length?(sme.keys=[].concat(_toConsumableArray$1(sme.keys.slice(0,Eme)),[sme.id],_toConsumableArray$1(sme.keys.slice(Eme))),vme([].concat(_toConsumableArray$1(xme.slice(0,Eme)),[Sme],_toConsumableArray$1(xme.slice(Eme))))):(sme.keys=[].concat(_toConsumableArray$1(sme.keys),[sme.id]),vme([].concat(_toConsumableArray$1(xme),[Sme]))),sme.id+=1},remove:function(Sme){var Eme=yme(),xme=new Set(Array.isArray(Sme)?Sme:[Sme]);xme.size<=0||(sme.keys=sme.keys.filter(function(Tme,Ome){return!xme.has(Ome)}),vme(Eme.filter(function(Tme,Ome){return!xme.has(Ome)})))},move:function(Sme,Eme){if(Sme!==Eme){var xme=yme();Sme<0||Sme>=xme.length||Eme<0||Eme>=xme.length||(sme.keys=move(sme.keys,Sme,Eme),vme(move(xme,Sme,Eme)))}}},$me=mme||[];return Array.isArray($me)||($me=[]),tme($me.map(function(Cme,Sme){var Eme=sme.keys[Sme];return Eme===void 0&&(sme.keys[Sme]=sme.id,Eme=sme.keys[Sme],sme.id+=1),{name:Sme,key:Eme,isListField:!0}}),_me,hme)})))}function allPromiseFinish(x_){var eme=!1,$P=x_.length,tme=[];return x_.length?new Promise(function(ame,nme){x_.forEach(function(rme,ime){rme.catch(function(ome){return eme=!0,ome}).then(function(ome){$P-=1,tme[ime]=ome,!($P>0)&&(eme&&nme(tme),ame(tme))})})}):Promise.resolve([])}var SPLIT="__@field_split__";function normalize(x_){return x_.map(function(eme){return"".concat(_typeof$4(eme),":").concat(eme)}).join(SPLIT)}var NameMap=function(){function x_(){_classCallCheck$d(this,x_),_defineProperty$7(this,"kvs",new Map)}return _createClass$b(x_,[{key:"set",value:function($P,tme){this.kvs.set(normalize($P),tme)}},{key:"get",value:function($P){return this.kvs.get(normalize($P))}},{key:"update",value:function($P,tme){var ame=this.get($P),nme=tme(ame);nme?this.set($P,nme):this.delete($P)}},{key:"delete",value:function($P){this.kvs.delete(normalize($P))}},{key:"map",value:function($P){return _toConsumableArray$1(this.kvs.entries()).map(function(tme){var ame=_slicedToArray$2(tme,2),nme=ame[0],rme=ame[1],ime=nme.split(SPLIT);return $P({key:ime.map(function(ome){var lme=ome.match(/^([^:]*):(.*)$/),sme=_slicedToArray$2(lme,3),cme=sme[1],dme=sme[2];return cme==="number"?Number(dme):dme}),value:rme})})}},{key:"toJSON",value:function(){var $P={};return this.map(function(tme){var ame=tme.key,nme=tme.value;return $P[ame.join(".")]=nme,null}),$P}}]),x_}(),_excluded$I=["name"],FormStore$1=_createClass$b(function x_(eme){var $P=this;_classCallCheck$d(this,x_),_defineProperty$7(this,"formHooked",!1),_defineProperty$7(this,"forceRootUpdate",void 0),_defineProperty$7(this,"subscribable",!0),_defineProperty$7(this,"store",{}),_defineProperty$7(this,"fieldEntities",[]),_defineProperty$7(this,"initialValues",{}),_defineProperty$7(this,"callbacks",{}),_defineProperty$7(this,"validateMessages",null),_defineProperty$7(this,"preserve",null),_defineProperty$7(this,"lastValidatePromise",null),_defineProperty$7(this,"getForm",function(){return{getFieldValue:$P.getFieldValue,getFieldsValue:$P.getFieldsValue,getFieldError:$P.getFieldError,getFieldWarning:$P.getFieldWarning,getFieldsError:$P.getFieldsError,isFieldsTouched:$P.isFieldsTouched,isFieldTouched:$P.isFieldTouched,isFieldValidating:$P.isFieldValidating,isFieldsValidating:$P.isFieldsValidating,resetFields:$P.resetFields,setFields:$P.setFields,setFieldValue:$P.setFieldValue,setFieldsValue:$P.setFieldsValue,validateFields:$P.validateFields,submit:$P.submit,_init:!0,getInternalHooks:$P.getInternalHooks}}),_defineProperty$7(this,"getInternalHooks",function(tme){return tme===HOOK_MARK?($P.formHooked=!0,{dispatch:$P.dispatch,initEntityValue:$P.initEntityValue,registerField:$P.registerField,useSubscribe:$P.useSubscribe,setInitialValues:$P.setInitialValues,destroyForm:$P.destroyForm,setCallbacks:$P.setCallbacks,setValidateMessages:$P.setValidateMessages,getFields:$P.getFields,setPreserve:$P.setPreserve,getInitialValue:$P.getInitialValue,registerWatch:$P.registerWatch}):(warningOnce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_defineProperty$7(this,"useSubscribe",function(tme){$P.subscribable=tme}),_defineProperty$7(this,"prevWithoutPreserves",null),_defineProperty$7(this,"setInitialValues",function(tme,ame){if($P.initialValues=tme||{},ame){var nme,rme=merge$6(tme,$P.store);(nme=$P.prevWithoutPreserves)===null||nme===void 0||nme.map(function(ime){var ome=ime.key;rme=set$6(rme,ome,get$8(tme,ome))}),$P.prevWithoutPreserves=null,$P.updateStore(rme)}}),_defineProperty$7(this,"destroyForm",function(tme){if(tme)$P.updateStore({});else{var ame=new NameMap;$P.getFieldEntities(!0).forEach(function(nme){$P.isMergedPreserve(nme.isPreserve())||ame.set(nme.getNamePath(),!0)}),$P.prevWithoutPreserves=ame}}),_defineProperty$7(this,"getInitialValue",function(tme){var ame=get$8($P.initialValues,tme);return tme.length?merge$6(ame):ame}),_defineProperty$7(this,"setCallbacks",function(tme){$P.callbacks=tme}),_defineProperty$7(this,"setValidateMessages",function(tme){$P.validateMessages=tme}),_defineProperty$7(this,"setPreserve",function(tme){$P.preserve=tme}),_defineProperty$7(this,"watchList",[]),_defineProperty$7(this,"registerWatch",function(tme){return $P.watchList.push(tme),function(){$P.watchList=$P.watchList.filter(function(ame){return ame!==tme})}}),_defineProperty$7(this,"notifyWatch",function(){var tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if($P.watchList.length){var ame=$P.getFieldsValue(),nme=$P.getFieldsValue(!0);$P.watchList.forEach(function(rme){rme(ame,nme,tme)})}}),_defineProperty$7(this,"timeoutId",null),_defineProperty$7(this,"warningUnhooked",function(){}),_defineProperty$7(this,"updateStore",function(tme){$P.store=tme}),_defineProperty$7(this,"getFieldEntities",function(){var tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return tme?$P.fieldEntities.filter(function(ame){return ame.getNamePath().length}):$P.fieldEntities}),_defineProperty$7(this,"getFieldsMap",function(){var tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ame=new NameMap;return $P.getFieldEntities(tme).forEach(function(nme){var rme=nme.getNamePath();ame.set(rme,nme)}),ame}),_defineProperty$7(this,"getFieldEntitiesForNamePathList",function(tme){if(!tme)return $P.getFieldEntities(!0);var ame=$P.getFieldsMap(!0);return tme.map(function(nme){var rme=getNamePath(nme);return ame.get(rme)||{INVALIDATE_NAME_PATH:getNamePath(nme)}})}),_defineProperty$7(this,"getFieldsValue",function(tme,ame){$P.warningUnhooked();var nme,rme,ime;if(tme===!0||Array.isArray(tme)?(nme=tme,rme=ame):tme&&_typeof$4(tme)==="object"&&(ime=tme.strict,rme=tme.filter),nme===!0&&!rme)return $P.store;var ome=$P.getFieldEntitiesForNamePathList(Array.isArray(nme)?nme:null),lme=[];return ome.forEach(function(sme){var cme,dme,ume="INVALIDATE_NAME_PATH"in sme?sme.INVALIDATE_NAME_PATH:sme.getNamePath();if(ime){var fme,pme;if((fme=(pme=sme).isList)!==null&&fme!==void 0&&fme.call(pme))return}else if(!nme&&(cme=(dme=sme).isListField)!==null&&cme!==void 0&&cme.call(dme))return;if(!rme)lme.push(ume);else{var hme="getMeta"in sme?sme.getMeta():null;rme(hme)&&lme.push(ume)}}),cloneByNamePathList($P.store,lme.map(getNamePath))}),_defineProperty$7(this,"getFieldValue",function(tme){$P.warningUnhooked();var ame=getNamePath(tme);return get$8($P.store,ame)}),_defineProperty$7(this,"getFieldsError",function(tme){$P.warningUnhooked();var ame=$P.getFieldEntitiesForNamePathList(tme);return ame.map(function(nme,rme){return nme&&!("INVALIDATE_NAME_PATH"in nme)?{name:nme.getNamePath(),errors:nme.getErrors(),warnings:nme.getWarnings()}:{name:getNamePath(tme[rme]),errors:[],warnings:[]}})}),_defineProperty$7(this,"getFieldError",function(tme){$P.warningUnhooked();var ame=getNamePath(tme),nme=$P.getFieldsError([ame])[0];return nme.errors}),_defineProperty$7(this,"getFieldWarning",function(tme){$P.warningUnhooked();var ame=getNamePath(tme),nme=$P.getFieldsError([ame])[0];return nme.warnings}),_defineProperty$7(this,"isFieldsTouched",function(){$P.warningUnhooked();for(var tme=arguments.length,ame=new Array(tme),nme=0;nme<tme;nme++)ame[nme]=arguments[nme];var rme=ame[0],ime=ame[1],ome,lme=!1;ame.length===0?ome=null:ame.length===1?Array.isArray(rme)?(ome=rme.map(getNamePath),lme=!1):(ome=null,lme=rme):(ome=rme.map(getNamePath),lme=ime);var sme=$P.getFieldEntities(!0),cme=function(hme){return hme.isFieldTouched()};if(!ome)return lme?sme.every(function(pme){return cme(pme)||pme.isList()}):sme.some(cme);var dme=new NameMap;ome.forEach(function(pme){dme.set(pme,[])}),sme.forEach(function(pme){var hme=pme.getNamePath();ome.forEach(function(bme){bme.every(function(mme,vme){return hme[vme]===mme})&&dme.update(bme,function(mme){return[].concat(_toConsumableArray$1(mme),[pme])})})});var ume=function(hme){return hme.some(cme)},fme=dme.map(function(pme){var hme=pme.value;return hme});return lme?fme.every(ume):fme.some(ume)}),_defineProperty$7(this,"isFieldTouched",function(tme){return $P.warningUnhooked(),$P.isFieldsTouched([tme])}),_defineProperty$7(this,"isFieldsValidating",function(tme){$P.warningUnhooked();var ame=$P.getFieldEntities();if(!tme)return ame.some(function(rme){return rme.isFieldValidating()});var nme=tme.map(getNamePath);return ame.some(function(rme){var ime=rme.getNamePath();return containsNamePath(nme,ime)&&rme.isFieldValidating()})}),_defineProperty$7(this,"isFieldValidating",function(tme){return $P.warningUnhooked(),$P.isFieldsValidating([tme])}),_defineProperty$7(this,"resetWithFieldInitialValue",function(){var tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ame=new NameMap,nme=$P.getFieldEntities(!0);nme.forEach(function(ome){var lme=ome.props.initialValue,sme=ome.getNamePath();if(lme!==void 0){var cme=ame.get(sme)||new Set;cme.add({entity:ome,value:lme}),ame.set(sme,cme)}});var rme=function(lme){lme.forEach(function(sme){var cme=sme.props.initialValue;if(cme!==void 0){var dme=sme.getNamePath(),ume=$P.getInitialValue(dme);if(ume!==void 0)warningOnce(!1,"Form already set 'initialValues' with path '".concat(dme.join("."),"'. Field can not overwrite it."));else{var fme=ame.get(dme);if(fme&&fme.size>1)warningOnce(!1,"Multiple Field with path '".concat(dme.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(fme){var pme=$P.getFieldValue(dme),hme=sme.isListField();!hme&&(!tme.skipExist||pme===void 0)&&$P.updateStore(set$6($P.store,dme,_toConsumableArray$1(fme)[0].value))}}}})},ime;tme.entities?ime=tme.entities:tme.namePathList?(ime=[],tme.namePathList.forEach(function(ome){var lme=ame.get(ome);if(lme){var sme;(sme=ime).push.apply(sme,_toConsumableArray$1(_toConsumableArray$1(lme).map(function(cme){return cme.entity})))}})):ime=nme,rme(ime)}),_defineProperty$7(this,"resetFields",function(tme){$P.warningUnhooked();var ame=$P.store;if(!tme){$P.updateStore(merge$6($P.initialValues)),$P.resetWithFieldInitialValue(),$P.notifyObservers(ame,null,{type:"reset"}),$P.notifyWatch();return}var nme=tme.map(getNamePath);nme.forEach(function(rme){var ime=$P.getInitialValue(rme);$P.updateStore(set$6($P.store,rme,ime))}),$P.resetWithFieldInitialValue({namePathList:nme}),$P.notifyObservers(ame,nme,{type:"reset"}),$P.notifyWatch(nme)}),_defineProperty$7(this,"setFields",function(tme){$P.warningUnhooked();var ame=$P.store,nme=[];tme.forEach(function(rme){var ime=rme.name,ome=_objectWithoutProperties$6(rme,_excluded$I),lme=getNamePath(ime);nme.push(lme),"value"in ome&&$P.updateStore(set$6($P.store,lme,ome.value)),$P.notifyObservers(ame,[lme],{type:"setField",data:rme})}),$P.notifyWatch(nme)}),_defineProperty$7(this,"getFields",function(){var tme=$P.getFieldEntities(!0),ame=tme.map(function(nme){var rme=nme.getNamePath(),ime=nme.getMeta(),ome=_objectSpread2$4(_objectSpread2$4({},ime),{},{name:rme,value:$P.getFieldValue(rme)});return Object.defineProperty(ome,"originRCField",{value:!0}),ome});return ame}),_defineProperty$7(this,"initEntityValue",function(tme){var ame=tme.props.initialValue;if(ame!==void 0){var nme=tme.getNamePath(),rme=get$8($P.store,nme);rme===void 0&&$P.updateStore(set$6($P.store,nme,ame))}}),_defineProperty$7(this,"isMergedPreserve",function(tme){var ame=tme!==void 0?tme:$P.preserve;return ame??!0}),_defineProperty$7(this,"registerField",function(tme){$P.fieldEntities.push(tme);var ame=tme.getNamePath();if($P.notifyWatch([ame]),tme.props.initialValue!==void 0){var nme=$P.store;$P.resetWithFieldInitialValue({entities:[tme],skipExist:!0}),$P.notifyObservers(nme,[tme.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(rme,ime){var ome=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if($P.fieldEntities=$P.fieldEntities.filter(function(cme){return cme!==tme}),!$P.isMergedPreserve(ime)&&(!rme||ome.length>1)){var lme=rme?void 0:$P.getInitialValue(ame);if(ame.length&&$P.getFieldValue(ame)!==lme&&$P.fieldEntities.every(function(cme){return!matchNamePath(cme.getNamePath(),ame)})){var sme=$P.store;$P.updateStore(set$6(sme,ame,lme,!0)),$P.notifyObservers(sme,[ame],{type:"remove"}),$P.triggerDependenciesUpdate(sme,ame)}}$P.notifyWatch([ame])}}),_defineProperty$7(this,"dispatch",function(tme){switch(tme.type){case"updateValue":{var ame=tme.namePath,nme=tme.value;$P.updateValue(ame,nme);break}case"validateField":{var rme=tme.namePath,ime=tme.triggerName;$P.validateFields([rme],{triggerName:ime});break}}}),_defineProperty$7(this,"notifyObservers",function(tme,ame,nme){if($P.subscribable){var rme=_objectSpread2$4(_objectSpread2$4({},nme),{},{store:$P.getFieldsValue(!0)});$P.getFieldEntities().forEach(function(ime){var ome=ime.onStoreChange;ome(tme,ame,rme)})}else $P.forceRootUpdate()}),_defineProperty$7(this,"triggerDependenciesUpdate",function(tme,ame){var nme=$P.getDependencyChildrenFields(ame);return nme.length&&$P.validateFields(nme),$P.notifyObservers(tme,nme,{type:"dependenciesUpdate",relatedFields:[ame].concat(_toConsumableArray$1(nme))}),nme}),_defineProperty$7(this,"updateValue",function(tme,ame){var nme=getNamePath(tme),rme=$P.store;$P.updateStore(set$6($P.store,nme,ame)),$P.notifyObservers(rme,[nme],{type:"valueUpdate",source:"internal"}),$P.notifyWatch([nme]);var ime=$P.triggerDependenciesUpdate(rme,nme),ome=$P.callbacks.onValuesChange;if(ome){var lme=cloneByNamePathList($P.store,[nme]);ome(lme,$P.getFieldsValue())}$P.triggerOnFieldsChange([nme].concat(_toConsumableArray$1(ime)))}),_defineProperty$7(this,"setFieldsValue",function(tme){$P.warningUnhooked();var ame=$P.store;if(tme){var nme=merge$6($P.store,tme);$P.updateStore(nme)}$P.notifyObservers(ame,null,{type:"valueUpdate",source:"external"}),$P.notifyWatch()}),_defineProperty$7(this,"setFieldValue",function(tme,ame){$P.setFields([{name:tme,value:ame}])}),_defineProperty$7(this,"getDependencyChildrenFields",function(tme){var ame=new Set,nme=[],rme=new NameMap;$P.getFieldEntities().forEach(function(ome){var lme=ome.props.dependencies;(lme||[]).forEach(function(sme){var cme=getNamePath(sme);rme.update(cme,function(){var dme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return dme.add(ome),dme})})});var ime=function ome(lme){var sme=rme.get(lme)||new Set;sme.forEach(function(cme){if(!ame.has(cme)){ame.add(cme);var dme=cme.getNamePath();cme.isFieldDirty()&&dme.length&&(nme.push(dme),ome(dme))}})};return ime(tme),nme}),_defineProperty$7(this,"triggerOnFieldsChange",function(tme,ame){var nme=$P.callbacks.onFieldsChange;if(nme){var rme=$P.getFields();if(ame){var ime=new NameMap;ame.forEach(function(lme){var sme=lme.name,cme=lme.errors;ime.set(sme,cme)}),rme.forEach(function(lme){lme.errors=ime.get(lme.name)||lme.errors})}var ome=rme.filter(function(lme){var sme=lme.name;return containsNamePath(tme,sme)});ome.length&&nme(ome,rme)}}),_defineProperty$7(this,"validateFields",function(tme,ame){$P.warningUnhooked();var nme,rme;Array.isArray(tme)||typeof tme=="string"||typeof ame=="string"?(nme=tme,rme=ame):rme=tme;var ime=!!nme,ome=ime?nme.map(getNamePath):[],lme=[],sme=String(Date.now()),cme=new Set,dme=rme||{},ume=dme.recursive,fme=dme.dirty;$P.getFieldEntities(!0).forEach(function(mme){if(ime||ome.push(mme.getNamePath()),!(!mme.props.rules||!mme.props.rules.length)&&!(fme&&!mme.isFieldDirty())){var vme=mme.getNamePath();if(cme.add(vme.join(sme)),!ime||containsNamePath(ome,vme,ume)){var gme=mme.validateRules(_objectSpread2$4({validateMessages:_objectSpread2$4(_objectSpread2$4({},defaultValidateMessages),$P.validateMessages)},rme));lme.push(gme.then(function(){return{name:vme,errors:[],warnings:[]}}).catch(function(yme){var _me,$me=[],Cme=[];return(_me=yme.forEach)===null||_me===void 0||_me.call(yme,function(Sme){var Eme=Sme.rule.warningOnly,xme=Sme.errors;Eme?Cme.push.apply(Cme,_toConsumableArray$1(xme)):$me.push.apply($me,_toConsumableArray$1(xme))}),$me.length?Promise.reject({name:vme,errors:$me,warnings:Cme}):{name:vme,errors:$me,warnings:Cme}}))}}});var pme=allPromiseFinish(lme);$P.lastValidatePromise=pme,pme.catch(function(mme){return mme}).then(function(mme){var vme=mme.map(function(gme){var yme=gme.name;return yme});$P.notifyObservers($P.store,vme,{type:"validateFinish"}),$P.triggerOnFieldsChange(vme,mme)});var hme=pme.then(function(){return $P.lastValidatePromise===pme?Promise.resolve($P.getFieldsValue(ome)):Promise.reject([])}).catch(function(mme){var vme=mme.filter(function(gme){return gme&&gme.errors.length});return Promise.reject({values:$P.getFieldsValue(ome),errorFields:vme,outOfDate:$P.lastValidatePromise!==pme})});hme.catch(function(mme){return mme});var bme=ome.filter(function(mme){return cme.has(mme.join(sme))});return $P.triggerOnFieldsChange(bme),hme}),_defineProperty$7(this,"submit",function(){$P.warningUnhooked(),$P.validateFields().then(function(tme){var ame=$P.callbacks.onFinish;if(ame)try{ame(tme)}catch(nme){console.error(nme)}}).catch(function(tme){var ame=$P.callbacks.onFinishFailed;ame&&ame(tme)})}),this.forceRootUpdate=eme});function useForm$2(x_){var eme=reactExports.useRef(),$P=reactExports.useState({}),tme=_slicedToArray$2($P,2),ame=tme[1];if(!eme.current)if(x_)eme.current=x_;else{var nme=function(){ame({})},rme=new FormStore$1(nme);eme.current=rme.getForm()}return[eme.current]}var FormContext$1=reactExports.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),FormProvider$2=function(eme){var $P=eme.validateMessages,tme=eme.onFormChange,ame=eme.onFormFinish,nme=eme.children,rme=reactExports.useContext(FormContext$1),ime=reactExports.useRef({});return reactExports.createElement(FormContext$1.Provider,{value:_objectSpread2$4(_objectSpread2$4({},rme),{},{validateMessages:_objectSpread2$4(_objectSpread2$4({},rme.validateMessages),$P),triggerFormChange:function(lme,sme){tme&&tme(lme,{changedFields:sme,forms:ime.current}),rme.triggerFormChange(lme,sme)},triggerFormFinish:function(lme,sme){ame&&ame(lme,{values:sme,forms:ime.current}),rme.triggerFormFinish(lme,sme)},registerForm:function(lme,sme){lme&&(ime.current=_objectSpread2$4(_objectSpread2$4({},ime.current),{},_defineProperty$7({},lme,sme))),rme.registerForm(lme,sme)},unregisterForm:function(lme){var sme=_objectSpread2$4({},ime.current);delete sme[lme],ime.current=sme,rme.unregisterForm(lme)}})},nme)},_excluded$H=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Form$5=function(eme,$P){var tme=eme.name,ame=eme.initialValues,nme=eme.fields,rme=eme.form,ime=eme.preserve,ome=eme.children,lme=eme.component,sme=lme===void 0?"form":lme,cme=eme.validateMessages,dme=eme.validateTrigger,ume=dme===void 0?"onChange":dme,fme=eme.onValuesChange,pme=eme.onFieldsChange,hme=eme.onFinish,bme=eme.onFinishFailed,mme=eme.clearOnDestroy,vme=_objectWithoutProperties$6(eme,_excluded$H),gme=reactExports.useRef(null),yme=reactExports.useContext(FormContext$1),_me=useForm$2(rme),$me=_slicedToArray$2(_me,1),Cme=$me[0],Sme=Cme.getInternalHooks(HOOK_MARK),Eme=Sme.useSubscribe,xme=Sme.setInitialValues,Tme=Sme.setCallbacks,Ome=Sme.setValidateMessages,Rme=Sme.setPreserve,Nme=Sme.destroyForm;reactExports.useImperativeHandle($P,function(){return _objectSpread2$4(_objectSpread2$4({},Cme),{},{nativeElement:gme.current})}),reactExports.useEffect(function(){return yme.registerForm(tme,Cme),function(){yme.unregisterForm(tme)}},[yme,Cme,tme]),Ome(_objectSpread2$4(_objectSpread2$4({},yme.validateMessages),cme)),Tme({onValuesChange:fme,onFieldsChange:function(Wme){if(yme.triggerFormChange(tme,Wme),pme){for(var Lme=arguments.length,zme=new Array(Lme>1?Lme-1:0),Ume=1;Ume<Lme;Ume++)zme[Ume-1]=arguments[Ume];pme.apply(void 0,[Wme].concat(zme))}},onFinish:function(Wme){yme.triggerFormFinish(tme,Wme),hme&&hme(Wme)},onFinishFailed:bme}),Rme(ime);var Ime=reactExports.useRef(null);xme(ame,!Ime.current),Ime.current||(Ime.current=!0),reactExports.useEffect(function(){return function(){return Nme(mme)}},[]);var Pme,Mme=typeof ome=="function";if(Mme){var kme=Cme.getFieldsValue(!0);Pme=ome(kme,Cme)}else Pme=ome;Eme(!Mme);var Bme=reactExports.useRef();reactExports.useEffect(function(){isSimilar(Bme.current||[],nme||[])||Cme.setFields(nme||[]),Bme.current=nme},[nme,Cme]);var Dme=reactExports.useMemo(function(){return _objectSpread2$4(_objectSpread2$4({},Cme),{},{validateTrigger:ume})},[Cme,ume]),jme=reactExports.createElement(ListContext.Provider,{value:null},reactExports.createElement(Context$2.Provider,{value:Dme},Pme));return sme===!1?jme:reactExports.createElement(sme,_extends$4C({},vme,{ref:gme,onSubmit:function(Wme){Wme.preventDefault(),Wme.stopPropagation(),Cme.submit()},onReset:function(Wme){var Lme;Wme.preventDefault(),Cme.resetFields(),(Lme=vme.onReset)===null||Lme===void 0||Lme.call(vme,Wme)}}),jme)};function stringify$5(x_){try{return JSON.stringify(x_)}catch{return Math.random()}}function useWatch$2(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=eme[0],ame=eme[1],nme=ame===void 0?{}:ame,rme=isFormInstance(nme)?{form:nme}:nme,ime=rme.form,ome=reactExports.useState(),lme=_slicedToArray$2(ome,2),sme=lme[0],cme=lme[1],dme=reactExports.useMemo(function(){return stringify$5(sme)},[sme]),ume=reactExports.useRef(dme);ume.current=dme;var fme=reactExports.useContext(Context$2),pme=ime||fme,hme=pme&&pme._init,bme=getNamePath(tme),mme=reactExports.useRef(bme);return mme.current=bme,reactExports.useEffect(function(){if(hme){var vme=pme.getFieldsValue,gme=pme.getInternalHooks,yme=gme(HOOK_MARK),_me=yme.registerWatch,$me=function(xme,Tme){var Ome=rme.preserve?Tme:xme;return typeof tme=="function"?tme(Ome):get$8(Ome,mme.current)},Cme=_me(function(Eme,xme){var Tme=$me(Eme,xme),Ome=stringify$5(Tme);ume.current!==Ome&&(ume.current=Ome,cme(Tme))}),Sme=$me(vme(),vme(!0));return sme!==Sme&&cme(Sme),Cme}},[hme]),sme}var InternalForm$1=reactExports.forwardRef(Form$5),RefForm=InternalForm$1;RefForm.FormProvider=FormProvider$2;RefForm.Field=WrapperField;RefForm.List=List$3;RefForm.useForm=useForm$2;RefForm.useWatch=useWatch$2;const FormContext=reactExports.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),NoStyleItemContext=reactExports.createContext(null),FormProvider$1=x_=>{const eme=omit$2(x_,["prefixCls"]);return reactExports.createElement(FormProvider$2,Object.assign({},eme))},FormItemPrefixContext=reactExports.createContext({prefixCls:""}),FormItemInputContext=reactExports.createContext({}),NoFormStyle=x_=>{let{children:eme,status:$P,override:tme}=x_;const ame=reactExports.useContext(FormItemInputContext),nme=reactExports.useMemo(()=>{const rme=Object.assign({},ame);return tme&&delete rme.isFormItemInput,$P&&(delete rme.status,delete rme.hasFeedback,delete rme.feedbackIcon),rme},[$P,tme,ame]);return reactExports.createElement(FormItemInputContext.Provider,{value:nme},eme)},VariantContext=reactExports.createContext(void 0),ContextIsolator=x_=>{const{space:eme,form:$P,children:tme}=x_;if(tme==null)return null;let ame=tme;return $P&&(ame=React__default.createElement(NoFormStyle,{override:!0,status:!0},ame)),eme&&(ame=React__default.createElement(NoCompactStyle,null,ame)),ame};function pickClosable(x_){if(x_)return{closable:x_.closable,closeIcon:x_.closeIcon}}function useClosableConfig(x_){const{closable:eme,closeIcon:$P}=x_||{};return React__default.useMemo(()=>{if(!eme&&(eme===!1||$P===!1||$P===null))return!1;if(eme===void 0&&$P===void 0)return null;let tme={closeIcon:typeof $P!="boolean"&&$P!==null?$P:void 0};return eme&&typeof eme=="object"&&(tme=Object.assign(Object.assign({},tme),eme)),tme},[eme,$P])}function assignWithoutUndefined(){const x_={};for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return $P.forEach(ame=>{ame&&Object.keys(ame).forEach(nme=>{ame[nme]!==void 0&&(x_[nme]=ame[nme])})}),x_}const EmptyFallbackCloseCollection={};function useClosable(x_,eme){let $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EmptyFallbackCloseCollection;const tme=useClosableConfig(x_),ame=useClosableConfig(eme),nme=typeof tme!="boolean"?!!(tme!=null&&tme.disabled):!1,rme=React__default.useMemo(()=>Object.assign({closeIcon:React__default.createElement(RefIcon$m,null)},$P),[$P]),ime=React__default.useMemo(()=>tme===!1?!1:tme?assignWithoutUndefined(rme,ame,tme):ame===!1?!1:ame?assignWithoutUndefined(rme,ame):rme.closable?rme:!1,[tme,ame,rme]);return React__default.useMemo(()=>{if(ime===!1)return[!1,null,nme];const{closeIconRender:ome}=rme,{closeIcon:lme}=ime;let sme=lme;if(sme!=null){ome&&(sme=ome(lme));const cme=pickAttrs(ime,!0);Object.keys(cme).length&&(sme=React__default.isValidElement(sme)?React__default.cloneElement(sme,cme):React__default.createElement("span",Object.assign({},cme),sme))}return[!0,sme,nme]},[ime,rme])}const Element$2=x_=>{const{prefixCls:eme,className:$P,style:tme,size:ame,shape:nme}=x_,rme=classNames({[`${eme}-lg`]:ame==="large",[`${eme}-sm`]:ame==="small"}),ime=classNames({[`${eme}-circle`]:nme==="circle",[`${eme}-square`]:nme==="square",[`${eme}-round`]:nme==="round"}),ome=reactExports.useMemo(()=>typeof ame=="number"?{width:ame,height:ame,lineHeight:`${ame}px`}:{},[ame]);return reactExports.createElement("span",{className:classNames(eme,rme,ime,$P),style:Object.assign(Object.assign({},ome),tme)})},skeletonClsLoading=new Keyframe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),genSkeletonElementCommonSize=x_=>({height:x_,lineHeight:unit$1(x_)}),genSkeletonElementAvatarSize=x_=>Object.assign({width:x_},genSkeletonElementCommonSize(x_)),genSkeletonColor=x_=>({background:x_.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:skeletonClsLoading,animationDuration:x_.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),genSkeletonElementInputSize=(x_,eme)=>Object.assign({width:eme(x_).mul(5).equal(),minWidth:eme(x_).mul(5).equal()},genSkeletonElementCommonSize(x_)),genSkeletonElementAvatar=x_=>{const{skeletonAvatarCls:eme,gradientFromColor:$P,controlHeight:tme,controlHeightLG:ame,controlHeightSM:nme}=x_;return{[eme]:Object.assign({display:"inline-block",verticalAlign:"top",background:$P},genSkeletonElementAvatarSize(tme)),[`${eme}${eme}-circle`]:{borderRadius:"50%"},[`${eme}${eme}-lg`]:Object.assign({},genSkeletonElementAvatarSize(ame)),[`${eme}${eme}-sm`]:Object.assign({},genSkeletonElementAvatarSize(nme))}},genSkeletonElementInput=x_=>{const{controlHeight:eme,borderRadiusSM:$P,skeletonInputCls:tme,controlHeightLG:ame,controlHeightSM:nme,gradientFromColor:rme,calc:ime}=x_;return{[tme]:Object.assign({display:"inline-block",verticalAlign:"top",background:rme,borderRadius:$P},genSkeletonElementInputSize(eme,ime)),[`${tme}-lg`]:Object.assign({},genSkeletonElementInputSize(ame,ime)),[`${tme}-sm`]:Object.assign({},genSkeletonElementInputSize(nme,ime))}},genSkeletonElementImageSize=x_=>Object.assign({width:x_},genSkeletonElementCommonSize(x_)),genSkeletonElementImage=x_=>{const{skeletonImageCls:eme,imageSizeBase:$P,gradientFromColor:tme,borderRadiusSM:ame,calc:nme}=x_;return{[eme]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:tme,borderRadius:ame},genSkeletonElementImageSize(nme($P).mul(2).equal())),{[`${eme}-path`]:{fill:"#bfbfbf"},[`${eme}-svg`]:Object.assign(Object.assign({},genSkeletonElementImageSize($P)),{maxWidth:nme($P).mul(4).equal(),maxHeight:nme($P).mul(4).equal()}),[`${eme}-svg${eme}-svg-circle`]:{borderRadius:"50%"}}),[`${eme}${eme}-circle`]:{borderRadius:"50%"}}},genSkeletonElementButtonShape=(x_,eme,$P)=>{const{skeletonButtonCls:tme}=x_;return{[`${$P}${tme}-circle`]:{width:eme,minWidth:eme,borderRadius:"50%"},[`${$P}${tme}-round`]:{borderRadius:eme}}},genSkeletonElementButtonSize=(x_,eme)=>Object.assign({width:eme(x_).mul(2).equal(),minWidth:eme(x_).mul(2).equal()},genSkeletonElementCommonSize(x_)),genSkeletonElementButton=x_=>{const{borderRadiusSM:eme,skeletonButtonCls:$P,controlHeight:tme,controlHeightLG:ame,controlHeightSM:nme,gradientFromColor:rme,calc:ime}=x_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[$P]:Object.assign({display:"inline-block",verticalAlign:"top",background:rme,borderRadius:eme,width:ime(tme).mul(2).equal(),minWidth:ime(tme).mul(2).equal()},genSkeletonElementButtonSize(tme,ime))},genSkeletonElementButtonShape(x_,tme,$P)),{[`${$P}-lg`]:Object.assign({},genSkeletonElementButtonSize(ame,ime))}),genSkeletonElementButtonShape(x_,ame,`${$P}-lg`)),{[`${$P}-sm`]:Object.assign({},genSkeletonElementButtonSize(nme,ime))}),genSkeletonElementButtonShape(x_,nme,`${$P}-sm`))},genBaseStyle$4=x_=>{const{componentCls:eme,skeletonAvatarCls:$P,skeletonTitleCls:tme,skeletonParagraphCls:ame,skeletonButtonCls:nme,skeletonInputCls:rme,skeletonImageCls:ime,controlHeight:ome,controlHeightLG:lme,controlHeightSM:sme,gradientFromColor:cme,padding:dme,marginSM:ume,borderRadius:fme,titleHeight:pme,blockRadius:hme,paragraphLiHeight:bme,controlHeightXS:mme,paragraphMarginTop:vme}=x_;return{[eme]:{display:"table",width:"100%",[`${eme}-header`]:{display:"table-cell",paddingInlineEnd:dme,verticalAlign:"top",[$P]:Object.assign({display:"inline-block",verticalAlign:"top",background:cme},genSkeletonElementAvatarSize(ome)),[`${$P}-circle`]:{borderRadius:"50%"},[`${$P}-lg`]:Object.assign({},genSkeletonElementAvatarSize(lme)),[`${$P}-sm`]:Object.assign({},genSkeletonElementAvatarSize(sme))},[`${eme}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[tme]:{width:"100%",height:pme,background:cme,borderRadius:hme,[`+ ${ame}`]:{marginBlockStart:sme}},[ame]:{padding:0,"> li":{width:"100%",height:bme,listStyle:"none",background:cme,borderRadius:hme,"+ li":{marginBlockStart:mme}}},[`${ame}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${eme}-content`]:{[`${tme}, ${ame} > li`]:{borderRadius:fme}}},[`${eme}-with-avatar ${eme}-content`]:{[tme]:{marginBlockStart:ume,[`+ ${ame}`]:{marginBlockStart:vme}}},[`${eme}${eme}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},genSkeletonElementButton(x_)),genSkeletonElementAvatar(x_)),genSkeletonElementInput(x_)),genSkeletonElementImage(x_)),[`${eme}${eme}-block`]:{width:"100%",[nme]:{width:"100%"},[rme]:{width:"100%"}},[`${eme}${eme}-active`]:{[`
        ${tme},
        ${ame} > li,
        ${$P},
        ${nme},
        ${rme},
        ${ime}
      `]:Object.assign({},genSkeletonColor(x_))}}},prepareComponentToken$n=x_=>{const{colorFillContent:eme,colorFill:$P}=x_,tme=eme,ame=$P;return{color:tme,colorGradientEnd:ame,gradientFromColor:tme,gradientToColor:ame,titleHeight:x_.controlHeight/2,blockRadius:x_.borderRadiusSM,paragraphMarginTop:x_.marginLG+x_.marginXXS,paragraphLiHeight:x_.controlHeight/2}},useStyle$s=genStyleHooks("Skeleton",x_=>{const{componentCls:eme,calc:$P}=x_,tme=merge$5(x_,{skeletonAvatarCls:`${eme}-avatar`,skeletonTitleCls:`${eme}-title`,skeletonParagraphCls:`${eme}-paragraph`,skeletonButtonCls:`${eme}-button`,skeletonInputCls:`${eme}-input`,skeletonImageCls:`${eme}-image`,imageSizeBase:$P(x_.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${x_.gradientFromColor} 25%, ${x_.gradientToColor} 37%, ${x_.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[genBaseStyle$4(tme)]},prepareComponentToken$n,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SkeletonAvatar=x_=>{const{prefixCls:eme,className:$P,rootClassName:tme,active:ame,shape:nme="circle",size:rme="default"}=x_,{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("skeleton",eme),[lme,sme,cme]=useStyle$s(ome),dme=omit$2(x_,["prefixCls","className"]),ume=classNames(ome,`${ome}-element`,{[`${ome}-active`]:ame},$P,tme,sme,cme);return lme(reactExports.createElement("div",{className:ume},reactExports.createElement(Element$2,Object.assign({prefixCls:`${ome}-avatar`,shape:nme,size:rme},dme))))},SkeletonButton=x_=>{const{prefixCls:eme,className:$P,rootClassName:tme,active:ame,block:nme=!1,size:rme="default"}=x_,{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("skeleton",eme),[lme,sme,cme]=useStyle$s(ome),dme=omit$2(x_,["prefixCls"]),ume=classNames(ome,`${ome}-element`,{[`${ome}-active`]:ame,[`${ome}-block`]:nme},$P,tme,sme,cme);return lme(reactExports.createElement("div",{className:ume},reactExports.createElement(Element$2,Object.assign({prefixCls:`${ome}-button`,size:rme},dme))))},path="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",SkeletonImage=x_=>{const{prefixCls:eme,className:$P,rootClassName:tme,style:ame,active:nme}=x_,{getPrefixCls:rme}=reactExports.useContext(ConfigContext),ime=rme("skeleton",eme),[ome,lme,sme]=useStyle$s(ime),cme=classNames(ime,`${ime}-element`,{[`${ime}-active`]:nme},$P,tme,lme,sme);return ome(reactExports.createElement("div",{className:cme},reactExports.createElement("div",{className:classNames(`${ime}-image`,$P),style:ame},reactExports.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ime}-image-svg`},reactExports.createElement("title",null,"Image placeholder"),reactExports.createElement("path",{d:path,className:`${ime}-image-path`})))))},SkeletonInput=x_=>{const{prefixCls:eme,className:$P,rootClassName:tme,active:ame,block:nme,size:rme="default"}=x_,{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("skeleton",eme),[lme,sme,cme]=useStyle$s(ome),dme=omit$2(x_,["prefixCls"]),ume=classNames(ome,`${ome}-element`,{[`${ome}-active`]:ame,[`${ome}-block`]:nme},$P,tme,sme,cme);return lme(reactExports.createElement("div",{className:ume},reactExports.createElement(Element$2,Object.assign({prefixCls:`${ome}-input`,size:rme},dme))))},SkeletonNode=x_=>{const{prefixCls:eme,className:$P,rootClassName:tme,style:ame,active:nme,children:rme}=x_,{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("skeleton",eme),[lme,sme,cme]=useStyle$s(ome),dme=classNames(ome,`${ome}-element`,{[`${ome}-active`]:nme},sme,$P,tme,cme);return lme(reactExports.createElement("div",{className:dme},reactExports.createElement("div",{className:classNames(`${ome}-image`,$P),style:ame},rme)))},getWidth=(x_,eme)=>{const{width:$P,rows:tme=2}=eme;if(Array.isArray($P))return $P[x_];if(tme-1===x_)return $P},Paragraph=x_=>{const{prefixCls:eme,className:$P,style:tme,rows:ame}=x_,nme=_toConsumableArray$1(new Array(ame)).map((rme,ime)=>reactExports.createElement("li",{key:ime,style:{width:getWidth(ime,x_)}}));return reactExports.createElement("ul",{className:classNames(eme,$P),style:tme},nme)},Title=x_=>{let{prefixCls:eme,className:$P,width:tme,style:ame}=x_;return reactExports.createElement("h3",{className:classNames(eme,$P),style:Object.assign({width:tme},ame)})};function getComponentProps(x_){return x_&&typeof x_=="object"?x_:{}}function getAvatarBasicProps(x_,eme){return x_&&!eme?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function getTitleBasicProps(x_,eme){return!x_&&eme?{width:"38%"}:x_&&eme?{width:"50%"}:{}}function getParagraphBasicProps(x_,eme){const $P={};return(!x_||!eme)&&($P.width="61%"),!x_&&eme?$P.rows=3:$P.rows=2,$P}const Skeleton=x_=>{const{prefixCls:eme,loading:$P,className:tme,rootClassName:ame,style:nme,children:rme,avatar:ime=!1,title:ome=!0,paragraph:lme=!0,active:sme,round:cme}=x_,{getPrefixCls:dme,direction:ume,skeleton:fme}=reactExports.useContext(ConfigContext),pme=dme("skeleton",eme),[hme,bme,mme]=useStyle$s(pme);if($P||!("loading"in x_)){const vme=!!ime,gme=!!ome,yme=!!lme;let _me;if(vme){const Sme=Object.assign(Object.assign({prefixCls:`${pme}-avatar`},getAvatarBasicProps(gme,yme)),getComponentProps(ime));_me=reactExports.createElement("div",{className:`${pme}-header`},reactExports.createElement(Element$2,Object.assign({},Sme)))}let $me;if(gme||yme){let Sme;if(gme){const xme=Object.assign(Object.assign({prefixCls:`${pme}-title`},getTitleBasicProps(vme,yme)),getComponentProps(ome));Sme=reactExports.createElement(Title,Object.assign({},xme))}let Eme;if(yme){const xme=Object.assign(Object.assign({prefixCls:`${pme}-paragraph`},getParagraphBasicProps(vme,gme)),getComponentProps(lme));Eme=reactExports.createElement(Paragraph,Object.assign({},xme))}$me=reactExports.createElement("div",{className:`${pme}-content`},Sme,Eme)}const Cme=classNames(pme,{[`${pme}-with-avatar`]:vme,[`${pme}-active`]:sme,[`${pme}-rtl`]:ume==="rtl",[`${pme}-round`]:cme},fme==null?void 0:fme.className,tme,ame,bme,mme);return hme(reactExports.createElement("div",{className:Cme,style:Object.assign(Object.assign({},fme==null?void 0:fme.style),nme)},_me,$me))}return rme??null};Skeleton.Button=SkeletonButton;Skeleton.Avatar=SkeletonAvatar;Skeleton.Input=SkeletonInput;Skeleton.Image=SkeletonImage;Skeleton.Node=SkeletonNode;function voidFunc(){}const WatermarkContext=reactExports.createContext({add:voidFunc,remove:voidFunc});function usePanelRef(x_){const eme=reactExports.useContext(WatermarkContext),$P=reactExports.useRef();return useEvent(ame=>{if(ame){const nme=ame;eme.add(nme),$P.current=nme}else eme.remove($P.current)})}function box(x_){return{position:x_,inset:0}}const genModalMaskStyle=x_=>{const{componentCls:eme,antCls:$P}=x_;return[{[`${eme}-root`]:{[`${eme}${$P}-zoom-enter, ${eme}${$P}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:x_.motionDurationSlow,userSelect:"none"},[`${eme}${$P}-zoom-leave ${eme}-content`]:{pointerEvents:"none"},[`${eme}-mask`]:Object.assign(Object.assign({},box("fixed")),{zIndex:x_.zIndexPopupBase,height:"100%",backgroundColor:x_.colorBgMask,pointerEvents:"none",[`${eme}-hidden`]:{display:"none"}}),[`${eme}-wrap`]:Object.assign(Object.assign({},box("fixed")),{zIndex:x_.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${eme}-root`]:initFadeMotion(x_)}]},genModalStyle=x_=>{const{componentCls:eme}=x_;return[{[`${eme}-root`]:{[`${eme}-wrap-rtl`]:{direction:"rtl"},[`${eme}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[eme]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${x_.screenSMMax}px)`]:{[eme]:{maxWidth:"calc(100vw - 16px)",margin:`${unit$1(x_.marginXS)} auto`},[`${eme}-centered`]:{[eme]:{flex:1}}}}},{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit$1(x_.calc(x_.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:x_.paddingLG,[`${eme}-title`]:{margin:0,color:x_.titleColor,fontWeight:x_.fontWeightStrong,fontSize:x_.titleFontSize,lineHeight:x_.titleLineHeight,wordWrap:"break-word"},[`${eme}-content`]:{position:"relative",backgroundColor:x_.contentBg,backgroundClip:"padding-box",border:0,borderRadius:x_.borderRadiusLG,boxShadow:x_.boxShadow,pointerEvents:"auto",padding:x_.contentPadding},[`${eme}-close`]:Object.assign({position:"absolute",top:x_.calc(x_.modalHeaderHeight).sub(x_.modalCloseBtnSize).div(2).equal(),insetInlineEnd:x_.calc(x_.modalHeaderHeight).sub(x_.modalCloseBtnSize).div(2).equal(),zIndex:x_.calc(x_.zIndexPopupBase).add(10).equal(),padding:0,color:x_.modalCloseIconColor,fontWeight:x_.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:x_.borderRadiusSM,width:x_.modalCloseBtnSize,height:x_.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${x_.motionDurationMid}, background-color ${x_.motionDurationMid}`,"&-x":{display:"flex",fontSize:x_.fontSizeLG,fontStyle:"normal",lineHeight:unit$1(x_.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:x_.modalCloseIconHoverColor,backgroundColor:x_.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:x_.colorBgTextActive}},genFocusStyle(x_)),[`${eme}-header`]:{color:x_.colorText,background:x_.headerBg,borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0`,marginBottom:x_.headerMarginBottom,padding:x_.headerPadding,borderBottom:x_.headerBorderBottom},[`${eme}-body`]:{fontSize:x_.fontSize,lineHeight:x_.lineHeight,wordWrap:"break-word",padding:x_.bodyPadding,[`${eme}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit$1(x_.margin)} auto`}},[`${eme}-footer`]:{textAlign:"end",background:x_.footerBg,marginTop:x_.footerMarginTop,padding:x_.footerPadding,borderTop:x_.footerBorderTop,borderRadius:x_.footerBorderRadius,[`> ${x_.antCls}-btn + ${x_.antCls}-btn`]:{marginInlineStart:x_.marginXS}},[`${eme}-open`]:{overflow:"hidden"}})},{[`${eme}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${eme}-content,
          ${eme}-body,
          ${eme}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${eme}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=x_=>{const{componentCls:eme}=x_;return{[`${eme}-root`]:{[`${eme}-wrap-rtl`]:{direction:"rtl",[`${eme}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$2=x_=>{const eme=x_.padding,$P=x_.fontSizeHeading5,tme=x_.lineHeightHeading5;return merge$5(x_,{modalHeaderHeight:x_.calc(x_.calc(tme).mul($P).equal()).add(x_.calc(eme).mul(2).equal()).equal(),modalFooterBorderColorSplit:x_.colorSplit,modalFooterBorderStyle:x_.lineType,modalFooterBorderWidth:x_.lineWidth,modalCloseIconColor:x_.colorIcon,modalCloseIconHoverColor:x_.colorIconHover,modalCloseBtnSize:x_.controlHeight,modalConfirmIconSize:x_.fontHeight,modalTitleHeight:x_.calc(x_.titleFontSize).mul(x_.titleLineHeight).equal()})},prepareComponentToken$m=x_=>({footerBg:"transparent",headerBg:x_.colorBgElevated,titleLineHeight:x_.lineHeightHeading5,titleFontSize:x_.fontSizeHeading5,contentBg:x_.colorBgElevated,titleColor:x_.colorTextHeading,contentPadding:x_.wireframe?0:`${unit$1(x_.paddingMD)} ${unit$1(x_.paddingContentHorizontalLG)}`,headerPadding:x_.wireframe?`${unit$1(x_.padding)} ${unit$1(x_.paddingLG)}`:0,headerBorderBottom:x_.wireframe?`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`:"none",headerMarginBottom:x_.wireframe?0:x_.marginXS,bodyPadding:x_.wireframe?x_.paddingLG:0,footerPadding:x_.wireframe?`${unit$1(x_.paddingXS)} ${unit$1(x_.padding)}`:0,footerBorderTop:x_.wireframe?`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`:"none",footerBorderRadius:x_.wireframe?`0 0 ${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)}`:0,footerMarginTop:x_.wireframe?0:x_.marginSM,confirmBodyPadding:x_.wireframe?`${unit$1(x_.padding*2)} ${unit$1(x_.padding*2)} ${unit$1(x_.paddingLG)}`:0,confirmIconMarginInlineEnd:x_.wireframe?x_.margin:x_.marginSM,confirmBtnsMarginTop:x_.wireframe?x_.marginLG:x_.marginSM});genStyleHooks("Modal",x_=>{const eme=prepareToken$2(x_);return[genModalStyle(eme),genRTLStyle(eme),genModalMaskStyle(eme),initZoomMotion(eme,"zoom")]},prepareComponentToken$m,{unitless:{titleLineHeight:!0}});const genNotificationPlacementStyle=x_=>{const{componentCls:eme,notificationMarginEdge:$P,animationMaxHeight:tme}=x_,ame=`${eme}-notice`,nme=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),rme=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-tme,opacity:0},"100%":{top:0,opacity:1}}),ime=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:x_.calc(tme).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),ome=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[eme]:{[`&${eme}-top, &${eme}-bottom`]:{marginInline:0,[ame]:{marginInline:"auto auto"}},[`&${eme}-top`]:{[`${eme}-fade-enter${eme}-fade-enter-active, ${eme}-fade-appear${eme}-fade-appear-active`]:{animationName:rme}},[`&${eme}-bottom`]:{[`${eme}-fade-enter${eme}-fade-enter-active, ${eme}-fade-appear${eme}-fade-appear-active`]:{animationName:ime}},[`&${eme}-topRight, &${eme}-bottomRight`]:{[`${eme}-fade-enter${eme}-fade-enter-active, ${eme}-fade-appear${eme}-fade-appear-active`]:{animationName:nme}},[`&${eme}-topLeft, &${eme}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:$P,_skip_check_:!0},[ame]:{marginInlineEnd:"auto",marginInlineStart:0},[`${eme}-fade-enter${eme}-fade-enter-active, ${eme}-fade-appear${eme}-fade-appear-active`]:{animationName:ome}}}}},NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(x_,eme)=>{const{componentCls:$P}=x_;return{[`${$P}-${eme}`]:{[`&${$P}-stack > ${$P}-notice-wrapper`]:{[eme.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[eme]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=x_=>{const eme={};for(let $P=1;$P<x_.notificationStackLayer;$P++)eme[`&:nth-last-child(${$P+1})`]={overflow:"hidden",[`& > ${x_.componentCls}-notice`]:{opacity:0,transition:`opacity ${x_.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${x_.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},eme)},genStackedNoticeStyle=x_=>{const eme={};for(let $P=1;$P<x_.notificationStackLayer;$P++)eme[`&:nth-last-child(${$P+1})`]={background:x_.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},eme)},genStackStyle=x_=>{const{componentCls:eme}=x_;return Object.assign({[`${eme}-stack`]:{[`& > ${eme}-notice-wrapper`]:Object.assign({transition:`all ${x_.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},genStackChildrenStyle(x_))},[`${eme}-stack:not(${eme}-stack-expanded)`]:{[`& > ${eme}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(x_))},[`${eme}-stack${eme}-stack-expanded`]:{[`& > ${eme}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${x_.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:x_.margin,width:"100%",insetInline:0,bottom:x_.calc(x_.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},NotificationPlacements.map($P=>genPlacementStackStyle(x_,$P)).reduce(($P,tme)=>Object.assign(Object.assign({},$P),tme),{}))},genNoticeStyle=x_=>{const{iconCls:eme,componentCls:$P,boxShadow:tme,fontSizeLG:ame,notificationMarginBottom:nme,borderRadiusLG:rme,colorSuccess:ime,colorInfo:ome,colorWarning:lme,colorError:sme,colorTextHeading:cme,notificationBg:dme,notificationPadding:ume,notificationMarginEdge:fme,notificationProgressBg:pme,notificationProgressHeight:hme,fontSize:bme,lineHeight:mme,width:vme,notificationIconSize:gme,colorText:yme}=x_,_me=`${$P}-notice`;return{position:"relative",marginBottom:nme,marginInlineStart:"auto",background:dme,borderRadius:rme,boxShadow:tme,[_me]:{padding:ume,width:vme,maxWidth:`calc(100vw - ${unit$1(x_.calc(fme).mul(2).equal())})`,overflow:"hidden",lineHeight:mme,wordWrap:"break-word"},[`${_me}-message`]:{marginBottom:x_.marginXS,color:cme,fontSize:ame,lineHeight:x_.lineHeightLG},[`${_me}-description`]:{fontSize:bme,color:yme},[`${_me}-closable ${_me}-message`]:{paddingInlineEnd:x_.paddingLG},[`${_me}-with-icon ${_me}-message`]:{marginBottom:x_.marginXS,marginInlineStart:x_.calc(x_.marginSM).add(gme).equal(),fontSize:ame},[`${_me}-with-icon ${_me}-description`]:{marginInlineStart:x_.calc(x_.marginSM).add(gme).equal(),fontSize:bme},[`${_me}-icon`]:{position:"absolute",fontSize:gme,lineHeight:1,[`&-success${eme}`]:{color:ime},[`&-info${eme}`]:{color:ome},[`&-warning${eme}`]:{color:lme},[`&-error${eme}`]:{color:sme}},[`${_me}-close`]:Object.assign({position:"absolute",top:x_.notificationPaddingVertical,insetInlineEnd:x_.notificationPaddingHorizontal,color:x_.colorIcon,outline:"none",width:x_.notificationCloseButtonSize,height:x_.notificationCloseButtonSize,borderRadius:x_.borderRadiusSM,transition:`background-color ${x_.motionDurationMid}, color ${x_.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:x_.colorIconHover,backgroundColor:x_.colorBgTextHover},"&:active":{backgroundColor:x_.colorBgTextActive}},genFocusStyle(x_)),[`${_me}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit$1(rme)} * 2)`,left:{_skip_check_:!0,value:rme},right:{_skip_check_:!0,value:rme},bottom:0,blockSize:hme,border:0,"&, &::-webkit-progress-bar":{borderRadius:rme,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:pme},"&::-webkit-progress-value":{borderRadius:rme,background:pme}},[`${_me}-btn`]:{float:"right",marginTop:x_.marginSM}}},genNotificationStyle=x_=>{const{componentCls:eme,notificationMarginBottom:$P,notificationMarginEdge:tme,motionDurationMid:ame,motionEaseInOut:nme}=x_,rme=`${eme}-notice`,ime=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:x_.animationMaxHeight,marginBottom:$P},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"fixed",zIndex:x_.zIndexPopup,marginRight:{value:tme,_skip_check_:!0},[`${eme}-hook-holder`]:{position:"relative"},[`${eme}-fade-appear-prepare`]:{opacity:"0 !important"},[`${eme}-fade-enter, ${eme}-fade-appear`]:{animationDuration:x_.motionDurationMid,animationTimingFunction:nme,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${eme}-fade-leave`]:{animationTimingFunction:nme,animationFillMode:"both",animationDuration:ame,animationPlayState:"paused"},[`${eme}-fade-enter${eme}-fade-enter-active, ${eme}-fade-appear${eme}-fade-appear-active`]:{animationPlayState:"running"},[`${eme}-fade-leave${eme}-fade-leave-active`]:{animationName:ime,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${rme}-btn`]:{float:"left"}}})},{[eme]:{[`${rme}-wrapper`]:Object.assign({},genNoticeStyle(x_))}}]},prepareComponentToken$l=x_=>({zIndexPopup:x_.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384}),prepareNotificationToken=x_=>{const eme=x_.paddingMD,$P=x_.paddingLG;return merge$5(x_,{notificationBg:x_.colorBgElevated,notificationPaddingVertical:eme,notificationPaddingHorizontal:$P,notificationIconSize:x_.calc(x_.fontSizeLG).mul(x_.lineHeightLG).equal(),notificationCloseButtonSize:x_.calc(x_.controlHeightLG).mul(.55).equal(),notificationMarginBottom:x_.margin,notificationPadding:`${unit$1(x_.paddingMD)} ${unit$1(x_.paddingContentHorizontalLG)}`,notificationMarginEdge:x_.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${x_.colorPrimaryBorderHover}, ${x_.colorPrimary})`})},useStyle$r=genStyleHooks("Notification",x_=>{const eme=prepareNotificationToken(x_);return[genNotificationStyle(eme),genNotificationPlacementStyle(eme),genStackStyle(eme)]},prepareComponentToken$l),PurePanelStyle=genSubStyleComponent(["Notification","PurePanel"],x_=>{const eme=`${x_.componentCls}-notice`,$P=prepareNotificationToken(x_);return{[`${eme}-pure-panel`]:Object.assign(Object.assign({},genNoticeStyle($P)),{width:$P.width,maxWidth:`calc(100vw - ${unit$1(x_.calc($P.notificationMarginEdge).mul(2).equal())})`,margin:0})}},prepareComponentToken$l);var __rest$X=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function getCloseIcon(x_,eme){return eme===null||eme===!1?null:eme||reactExports.createElement(RefIcon$m,{className:`${x_}-close-icon`})}const typeToIcon={success:RefIcon$o,info:RefIcon$k,error:RefIcon$n,warning:RefIcon$l},PureContent=x_=>{const{prefixCls:eme,icon:$P,type:tme,message:ame,description:nme,btn:rme,role:ime="alert"}=x_;let ome=null;return $P?ome=reactExports.createElement("span",{className:`${eme}-icon`},$P):tme&&(ome=reactExports.createElement(typeToIcon[tme]||null,{className:classNames(`${eme}-icon`,`${eme}-icon-${tme}`)})),reactExports.createElement("div",{className:classNames({[`${eme}-with-icon`]:ome}),role:ime},ome,reactExports.createElement("div",{className:`${eme}-message`},ame),reactExports.createElement("div",{className:`${eme}-description`},nme),rme&&reactExports.createElement("div",{className:`${eme}-btn`},rme))},PurePanel$7=x_=>{const{prefixCls:eme,className:$P,icon:tme,type:ame,message:nme,description:rme,btn:ime,closable:ome=!0,closeIcon:lme,className:sme}=x_,cme=__rest$X(x_,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:dme}=reactExports.useContext(ConfigContext),ume=eme||dme("notification"),fme=`${ume}-notice`,pme=useCSSVarCls(ume),[hme,bme,mme]=useStyle$r(ume,pme);return hme(reactExports.createElement("div",{className:classNames(`${fme}-pure-panel`,bme,$P,mme,pme)},reactExports.createElement(PurePanelStyle,{prefixCls:ume}),reactExports.createElement(Notify,Object.assign({},cme,{prefixCls:ume,eventKey:"pure",duration:null,closable:ome,className:classNames({notificationClassName:sme}),closeIcon:getCloseIcon(ume,lme),content:reactExports.createElement(PureContent,{prefixCls:fme,icon:tme,type:ame,message:nme,description:rme,btn:ime})}))))};function getPlacementStyle(x_,eme,$P){let tme;switch(x_){case"top":tme={left:"50%",transform:"translateX(-50%)",right:"auto",top:eme,bottom:"auto"};break;case"topLeft":tme={left:0,top:eme,bottom:"auto"};break;case"topRight":tme={right:0,top:eme,bottom:"auto"};break;case"bottom":tme={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:$P};break;case"bottomLeft":tme={left:0,top:"auto",bottom:$P};break;default:tme={right:0,top:"auto",bottom:$P};break}return tme}function getMotion$2(x_){return{motionName:`${x_}-fade`}}var __rest$W=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const DEFAULT_OFFSET=24,DEFAULT_DURATION$1=4.5,DEFAULT_PLACEMENT="topRight",Wrapper=x_=>{let{children:eme,prefixCls:$P}=x_;const tme=useCSSVarCls($P),[ame,nme,rme]=useStyle$r($P,tme);return ame(jsx(NotificationProvider,{classNames:{list:classNames(nme,rme,tme)},children:eme}))},renderNotifications=(x_,eme)=>{let{prefixCls:$P,key:tme}=eme;return jsx(Wrapper,{prefixCls:$P,children:x_},tme)},Holder=React__default.forwardRef((x_,eme)=>{const{top:$P,bottom:tme,prefixCls:ame,getContainer:nme,maxCount:rme,rtl:ime,onAllRemoved:ome,stack:lme,duration:sme,pauseOnHover:cme=!0,showProgress:dme}=x_,{getPrefixCls:ume,getPopupContainer:fme,notification:pme,direction:hme}=reactExports.useContext(ConfigContext),[,bme]=useToken$1(),mme=ame||ume("notification"),vme=Cme=>getPlacementStyle(Cme,$P??DEFAULT_OFFSET,tme??DEFAULT_OFFSET),gme=()=>classNames({[`${mme}-rtl`]:ime??hme==="rtl"}),yme=()=>getMotion$2(mme),[_me,$me]=useNotification$1({prefixCls:mme,style:vme,className:gme,motion:yme,closable:!0,closeIcon:getCloseIcon(mme),duration:sme??DEFAULT_DURATION$1,getContainer:()=>(nme==null?void 0:nme())||(fme==null?void 0:fme())||document.body,maxCount:rme,pauseOnHover:cme,showProgress:dme,onAllRemoved:ome,renderNotifications,stack:lme===!1?!1:{threshold:typeof lme=="object"?lme==null?void 0:lme.threshold:void 0,offset:8,gap:bme.margin}});return React__default.useImperativeHandle(eme,()=>Object.assign(Object.assign({},_me),{prefixCls:mme,notification:pme})),$me});function useInternalNotification(x_){const eme=React__default.useRef(null);return devUseWarning(),[React__default.useMemo(()=>{const tme=ime=>{var ome;if(!eme.current)return;const{open:lme,prefixCls:sme,notification:cme}=eme.current,dme=`${sme}-notice`,{message:ume,description:fme,icon:pme,type:hme,btn:bme,className:mme,style:vme,role:gme="alert",closeIcon:yme,closable:_me}=ime,$me=__rest$W(ime,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),Cme=getCloseIcon(dme,typeof yme<"u"?yme:cme==null?void 0:cme.closeIcon);return lme(Object.assign(Object.assign({placement:(ome=x_==null?void 0:x_.placement)!==null&&ome!==void 0?ome:DEFAULT_PLACEMENT},$me),{content:jsx(PureContent,{prefixCls:dme,icon:pme,type:hme,message:ume,description:fme,btn:bme,role:gme}),className:classNames(hme&&`${dme}-${hme}`,mme,cme==null?void 0:cme.className),style:Object.assign(Object.assign({},cme==null?void 0:cme.style),vme),closeIcon:Cme,closable:_me??!!Cme}))},nme={open:tme,destroy:ime=>{var ome,lme;ime!==void 0?(ome=eme.current)===null||ome===void 0||ome.close(ime):(lme=eme.current)===null||lme===void 0||lme.destroy()}};return["success","info","warning","error"].forEach(ime=>{nme[ime]=ome=>tme(Object.assign(Object.assign({},ome),{type:ime}))}),nme},[]),jsx(Holder,{...Object.assign({key:"notification-holder"},x_,{ref:eme})})]}function useNotification(x_){return useInternalNotification(x_)}const AppConfigContext=React__default.createContext({});function withPureRenderTheme(x_){return eme=>reactExports.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},reactExports.createElement(x_,Object.assign({},eme)))}const genPurePanel=(x_,eme,$P,tme)=>withPureRenderTheme(nme=>{const{prefixCls:rme,style:ime}=nme,ome=reactExports.useRef(null),[lme,sme]=reactExports.useState(0),[cme,dme]=reactExports.useState(0),[ume,fme]=useMergedState(!1,{value:nme.open}),{getPrefixCls:pme}=reactExports.useContext(ConfigContext),hme=pme(eme||"select",rme);reactExports.useEffect(()=>{if(fme(!0),typeof ResizeObserver<"u"){const vme=new ResizeObserver(yme=>{const _me=yme[0].target;sme(_me.offsetHeight+8),dme(_me.offsetWidth)}),gme=setInterval(()=>{var yme;const _me=$P?`.${$P(hme)}`:`.${hme}-dropdown`,$me=(yme=ome.current)===null||yme===void 0?void 0:yme.querySelector(_me);$me&&(clearInterval(gme),vme.observe($me))},10);return()=>{clearInterval(gme),vme.disconnect()}}},[]);let bme=Object.assign(Object.assign({},nme),{style:Object.assign(Object.assign({},ime),{margin:0}),open:ume,visible:ume,getPopupContainer:()=>ome.current});tme&&(bme=tme(bme));const mme={paddingBottom:lme,position:"relative",minWidth:cme};return reactExports.createElement("div",{ref:ome,style:mme},reactExports.createElement(x_,Object.assign({},bme)))}),isMobile$3=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var x_=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(x_)||/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(x_==null?void 0:x_.substr(0,4))};var TransBtn=function(eme){var $P=eme.className,tme=eme.customizeIcon,ame=eme.customizeIconProps,nme=eme.children,rme=eme.onMouseDown,ime=eme.onClick,ome=typeof tme=="function"?tme(ame):tme;return reactExports.createElement("span",{className:$P,onMouseDown:function(sme){sme.preventDefault(),rme==null||rme(sme)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ime,"aria-hidden":!0},ome!==void 0?ome:reactExports.createElement("span",{className:classNames($P.split(/\s+/).map(function(lme){return"".concat(lme,"-icon")}))},nme))},useAllowClear=function(eme,$P,tme,ame,nme){var rme=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ime=arguments.length>6?arguments[6]:void 0,ome=arguments.length>7?arguments[7]:void 0,lme=React__default.useMemo(function(){if(_typeof$4(ame)==="object")return ame.clearIcon;if(nme)return nme},[ame,nme]),sme=React__default.useMemo(function(){return!!(!rme&&ame&&(tme.length||ime)&&!(ome==="combobox"&&ime===""))},[ame,rme,tme.length,ime,ome]);return{allowClear:sme,clearIcon:React__default.createElement(TransBtn,{className:"".concat(eme,"-clear"),onMouseDown:$P,customizeIcon:lme},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,eme=reactExports.useState(!1),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1],nme=reactExports.useRef(null),rme=function(){window.clearTimeout(nme.current)};reactExports.useEffect(function(){return rme},[]);var ime=function(lme,sme){rme(),nme.current=window.setTimeout(function(){ame(lme),sme&&sme()},x_)};return[tme,ime,rme]}function useLock(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,eme=reactExports.useRef(null),$P=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout($P.current)}},[]);function tme(ame){(ame||eme.current===null)&&(eme.current=ame),window.clearTimeout($P.current),$P.current=window.setTimeout(function(){eme.current=null},x_)}return[function(){return eme.current},tme]}function useSelectTriggerControl(x_,eme,$P,tme){var ame=reactExports.useRef(null);ame.current={open:eme,triggerOpen:$P,customizedTrigger:tme},reactExports.useEffect(function(){function nme(rme){var ime;if(!((ime=ame.current)!==null&&ime!==void 0&&ime.customizedTrigger)){var ome=rme.target;ome.shadowRoot&&rme.composed&&(ome=rme.composedPath()[0]||ome),ame.current.open&&x_().filter(function(lme){return lme}).every(function(lme){return!lme.contains(ome)&&lme!==ome})&&ame.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nme),function(){return window.removeEventListener("mousedown",nme)}},[])}function isValidateOpenKey(x_){return x_&&![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(x_)}var classnames$3={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(x_){(function(){var eme={}.hasOwnProperty;function $P(){for(var tme=[],ame=0;ame<arguments.length;ame++){var nme=arguments[ame];if(nme){var rme=typeof nme;if(rme==="string"||rme==="number")tme.push(nme);else if(Array.isArray(nme)){if(nme.length){var ime=$P.apply(null,nme);ime&&tme.push(ime)}}else if(rme==="object"){if(nme.toString!==Object.prototype.toString&&!nme.toString.toString().includes("[native code]")){tme.push(nme.toString());continue}for(var ome in nme)eme.call(nme,ome)&&nme[ome]&&tme.push(ome)}}}return tme.join(" ")}x_.exports?($P.default=$P,x_.exports=$P):window.classNames=$P})()})(classnames$3);var classnamesExports=classnames$3.exports;const cx$1=getDefaultExportFromCjs(classnamesExports);var _excluded$G=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(x_,eme){var $P=x_.prefixCls,tme=x_.invalidate,ame=x_.item,nme=x_.renderItem,rme=x_.responsive,ime=x_.responsiveDisabled,ome=x_.registerSize,lme=x_.itemKey,sme=x_.className,cme=x_.style,dme=x_.children,ume=x_.display,fme=x_.order,pme=x_.component,hme=pme===void 0?"div":pme,bme=_objectWithoutProperties$6(x_,_excluded$G),mme=rme&&!ume;function vme(Cme){ome(lme,Cme)}reactExports.useEffect(function(){return function(){vme(null)}},[]);var gme=nme&&ame!==UNDEFINED?nme(ame):dme,yme;tme||(yme={opacity:mme?0:1,height:mme?0:UNDEFINED,overflowY:mme?"hidden":UNDEFINED,order:rme?fme:UNDEFINED,pointerEvents:mme?"none":UNDEFINED,position:mme?"absolute":UNDEFINED});var _me={};mme&&(_me["aria-hidden"]=!0);var $me=reactExports.createElement(hme,_extends$4C({className:cx$1(!tme&&$P,sme),style:_objectSpread2$4(_objectSpread2$4({},yme),cme)},_me,bme,{ref:eme}),gme);return rme&&($me=reactExports.createElement(RefResizeObserver,{onResize:function(Sme){var Eme=Sme.offsetWidth;vme(Eme)},disabled:ime},$me)),$me}var Item$4=reactExports.forwardRef(InternalItem);Item$4.displayName="Item";function channelUpdate(x_){if(typeof MessageChannel>"u")wrapperRaf(x_);else{var eme=new MessageChannel;eme.port1.onmessage=function(){return x_()},eme.port2.postMessage(void 0)}}function useBatcher(){var x_=reactExports.useRef(null),eme=function(tme){x_.current||(x_.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){x_.current.forEach(function(ame){ame()}),x_.current=null})})),x_.current.push(tme)};return eme}function useEffectState(x_,eme){var $P=reactExports.useState(eme),tme=_slicedToArray$2($P,2),ame=tme[0],nme=tme[1],rme=useEvent(function(ime){x_(function(){nme(ime)})});return[ame,rme]}var OverflowContext=React__default.createContext(null),_excluded$F=["component"],_excluded2$9=["className"],_excluded3$2=["className"],InternalRawItem=function(eme,$P){var tme=reactExports.useContext(OverflowContext);if(!tme){var ame=eme.component,nme=ame===void 0?"div":ame,rme=_objectWithoutProperties$6(eme,_excluded$F);return reactExports.createElement(nme,_extends$4C({},rme,{ref:$P}))}var ime=tme.className,ome=_objectWithoutProperties$6(tme,_excluded2$9),lme=eme.className,sme=_objectWithoutProperties$6(eme,_excluded3$2);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$4,_extends$4C({ref:$P,className:cx$1(ime,lme)},ome,sme)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$E=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE$1="responsive",INVALIDATE$1="invalidate";function defaultRenderRest(x_){return"+ ".concat(x_.length," ...")}function Overflow(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-overflow":$P,ame=x_.data,nme=ame===void 0?[]:ame,rme=x_.renderItem,ime=x_.renderRawItem,ome=x_.itemKey,lme=x_.itemWidth,sme=lme===void 0?10:lme,cme=x_.ssr,dme=x_.style,ume=x_.className,fme=x_.maxCount,pme=x_.renderRest,hme=x_.renderRawRest,bme=x_.suffix,mme=x_.component,vme=mme===void 0?"div":mme,gme=x_.itemComponent,yme=x_.onVisibleChange,_me=_objectWithoutProperties$6(x_,_excluded$E),$me=cme==="full",Cme=useBatcher(),Sme=useEffectState(Cme,null),Eme=_slicedToArray$2(Sme,2),xme=Eme[0],Tme=Eme[1],Ome=xme||0,Rme=useEffectState(Cme,new Map),Nme=_slicedToArray$2(Rme,2),Ime=Nme[0],Pme=Nme[1],Mme=useEffectState(Cme,0),kme=_slicedToArray$2(Mme,2),Bme=kme[0],Dme=kme[1],jme=useEffectState(Cme,0),Vme=_slicedToArray$2(jme,2),Wme=Vme[0],Lme=Vme[1],zme=useEffectState(Cme,0),Ume=_slicedToArray$2(zme,2),Gme=Ume[0],Jme=Ume[1],Yme=reactExports.useState(null),Qme=_slicedToArray$2(Yme,2),Xme=Qme[0],Kme=Qme[1],Zme=reactExports.useState(null),nbe=_slicedToArray$2(Zme,2),lbe=nbe[0],ibe=nbe[1],abe=reactExports.useMemo(function(){return lbe===null&&$me?Number.MAX_SAFE_INTEGER:lbe||0},[lbe,xme]),obe=reactExports.useState(!1),hbe=_slicedToArray$2(obe,2),ube=hbe[0],mbe=hbe[1],pbe="".concat(tme,"-item"),_be=Math.max(Bme,Wme),Sbe=fme===RESPONSIVE$1,vbe=nme.length&&Sbe,kbe=fme===INVALIDATE$1,Rbe=vbe||typeof fme=="number"&&nme.length>fme,Pbe=reactExports.useMemo(function(){var $0e=nme;return vbe?xme===null&&$me?$0e=nme:$0e=nme.slice(0,Math.min(nme.length,Ome/sme)):typeof fme=="number"&&($0e=nme.slice(0,fme)),$0e},[nme,sme,xme,fme,vbe]),Mbe=reactExports.useMemo(function(){return vbe?nme.slice(abe+1):nme.slice(Pbe.length)},[nme,Pbe,vbe,abe]),Kbe=reactExports.useCallback(function($0e,u0e){var t0e;return typeof ome=="function"?ome($0e):(t0e=ome&&($0e==null?void 0:$0e[ome]))!==null&&t0e!==void 0?t0e:u0e},[ome]),Qbe=reactExports.useCallback(rme||function($0e){return $0e},[rme]);function Gbe($0e,u0e,t0e){lbe===$0e&&(u0e===void 0||u0e===Xme)||(ibe($0e),t0e||(mbe($0e<nme.length-1),yme==null||yme($0e)),u0e!==void 0&&Kme(u0e))}function Hbe($0e,u0e){Tme(u0e.clientWidth)}function d0e($0e,u0e){Pme(function(t0e){var v0e=new Map(t0e);return u0e===null?v0e.delete($0e):v0e.set($0e,u0e),v0e})}function p0e($0e,u0e){Lme(u0e),Dme(Wme)}function S0e($0e,u0e){Jme(u0e)}function P0e($0e){return Ime.get(Kbe(Pbe[$0e],$0e))}useLayoutEffect$1(function(){if(Ome&&typeof _be=="number"&&Pbe){var $0e=Gme,u0e=Pbe.length,t0e=u0e-1;if(!u0e){Gbe(0,null);return}for(var v0e=0;v0e<u0e;v0e+=1){var L0e=P0e(v0e);if($me&&(L0e=L0e||0),L0e===void 0){Gbe(v0e-1,void 0,!0);break}if($0e+=L0e,t0e===0&&$0e<=Ome||v0e===t0e-1&&$0e+P0e(t0e)<=Ome){Gbe(t0e,null);break}else if($0e+_be>Ome){Gbe(v0e-1,$0e-L0e-Gme+Wme);break}}bme&&P0e(0)+Gme>Ome&&Kme(null)}},[Ome,Ime,Wme,Gme,Kbe,Pbe]);var e0e=ube&&!!Mbe.length,_0e={};Xme!==null&&vbe&&(_0e={position:"absolute",left:Xme,top:0});var m0e={prefixCls:pbe,responsive:vbe,component:gme,invalidate:kbe},Ybe=ime?function($0e,u0e){var t0e=Kbe($0e,u0e);return reactExports.createElement(OverflowContext.Provider,{key:t0e,value:_objectSpread2$4(_objectSpread2$4({},m0e),{},{order:u0e,item:$0e,itemKey:t0e,registerSize:d0e,display:u0e<=abe})},ime($0e,u0e))}:function($0e,u0e){var t0e=Kbe($0e,u0e);return reactExports.createElement(Item$4,_extends$4C({},m0e,{order:u0e,key:t0e,item:$0e,renderItem:Qbe,itemKey:t0e,registerSize:d0e,display:u0e<=abe}))},Jbe,c0e={order:e0e?abe:Number.MAX_SAFE_INTEGER,className:"".concat(pbe,"-rest"),registerSize:p0e,display:e0e};if(hme)hme&&(Jbe=reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2$4(_objectSpread2$4({},m0e),c0e)},hme(Mbe)));else{var zbe=pme||defaultRenderRest;Jbe=reactExports.createElement(Item$4,_extends$4C({},m0e,c0e),typeof zbe=="function"?zbe(Mbe):zbe)}var R0e=reactExports.createElement(vme,_extends$4C({className:cx$1(!kbe&&tme,ume),style:dme,ref:eme},_me),Pbe.map(Ybe),Rbe?Jbe:null,bme&&reactExports.createElement(Item$4,_extends$4C({},m0e,{responsive:Sbe,responsiveDisabled:!vbe,order:abe,className:"".concat(pbe,"-suffix"),registerSize:S0e,display:!0,style:_0e}),bme));return Sbe&&(R0e=reactExports.createElement(RefResizeObserver,{onResize:Hbe,disabled:!vbe},R0e)),R0e}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE$1;ForwardOverflow.INVALIDATE=INVALIDATE$1;var Input$4=function(eme,$P){var tme,ame=eme.prefixCls,nme=eme.id,rme=eme.inputElement,ime=eme.disabled,ome=eme.tabIndex,lme=eme.autoFocus,sme=eme.autoComplete,cme=eme.editable,dme=eme.activeDescendantId,ume=eme.value,fme=eme.maxLength,pme=eme.onKeyDown,hme=eme.onMouseDown,bme=eme.onChange,mme=eme.onPaste,vme=eme.onCompositionStart,gme=eme.onCompositionEnd,yme=eme.open,_me=eme.attrs,$me=rme||reactExports.createElement("input",null),Cme=$me,Sme=Cme.ref,Eme=Cme.props,xme=Eme.onKeyDown,Tme=Eme.onChange,Ome=Eme.onMouseDown,Rme=Eme.onCompositionStart,Nme=Eme.onCompositionEnd,Ime=Eme.style;return"maxLength"in $me.props,$me=reactExports.cloneElement($me,_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({type:"search"},Eme),{},{id:nme,ref:composeRef($P,Sme),disabled:ime,tabIndex:ome,autoComplete:sme||"off",autoFocus:lme,className:classNames("".concat(ame,"-selection-search-input"),(tme=$me)===null||tme===void 0||(tme=tme.props)===null||tme===void 0?void 0:tme.className),role:"combobox","aria-expanded":yme||!1,"aria-haspopup":"listbox","aria-owns":"".concat(nme,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(nme,"_list"),"aria-activedescendant":yme?dme:void 0},_me),{},{value:cme?ume:"",maxLength:fme,readOnly:!cme,unselectable:cme?null:"on",style:_objectSpread2$4(_objectSpread2$4({},Ime),{},{opacity:cme?null:0}),onKeyDown:function(Mme){pme(Mme),xme&&xme(Mme)},onMouseDown:function(Mme){hme(Mme),Ome&&Ome(Mme)},onChange:function(Mme){bme(Mme),Tme&&Tme(Mme)},onCompositionStart:function(Mme){vme(Mme),Rme&&Rme(Mme)},onCompositionEnd:function(Mme){gme(Mme),Nme&&Nme(Mme)},onPaste:mme})),$me},RefInput=reactExports.forwardRef(Input$4);function toArray$4(x_){return Array.isArray(x_)?x_:x_!==void 0?[x_]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$2=isClient;function hasValue(x_){return x_!=null}function isComboNoValue(x_){return!x_&&x_!==0}function isTitleType$1(x_){return["string","number"].includes(_typeof$4(x_))}function getTitle(x_){var eme=void 0;return x_&&(isTitleType$1(x_.title)?eme=x_.title.toString():isTitleType$1(x_.label)&&(eme=x_.label.toString())),eme}function useLayoutEffect(x_,eme){isBrowserClient$2?reactExports.useLayoutEffect(x_,eme):reactExports.useEffect(x_,eme)}function itemKey(x_){var eme;return(eme=x_.key)!==null&&eme!==void 0?eme:x_.value}var onPreventMouseDown=function(eme){eme.preventDefault(),eme.stopPropagation()},SelectSelector=function(eme){var $P=eme.id,tme=eme.prefixCls,ame=eme.values,nme=eme.open,rme=eme.searchValue,ime=eme.autoClearSearchValue,ome=eme.inputRef,lme=eme.placeholder,sme=eme.disabled,cme=eme.mode,dme=eme.showSearch,ume=eme.autoFocus,fme=eme.autoComplete,pme=eme.activeDescendantId,hme=eme.tabIndex,bme=eme.removeIcon,mme=eme.maxTagCount,vme=eme.maxTagTextLength,gme=eme.maxTagPlaceholder,yme=gme===void 0?function(Kme){return"+ ".concat(Kme.length," ...")}:gme,_me=eme.tagRender,$me=eme.onToggleOpen,Cme=eme.onRemove,Sme=eme.onInputChange,Eme=eme.onInputPaste,xme=eme.onInputKeyDown,Tme=eme.onInputMouseDown,Ome=eme.onInputCompositionStart,Rme=eme.onInputCompositionEnd,Nme=reactExports.useRef(null),Ime=reactExports.useState(0),Pme=_slicedToArray$2(Ime,2),Mme=Pme[0],kme=Pme[1],Bme=reactExports.useState(!1),Dme=_slicedToArray$2(Bme,2),jme=Dme[0],Vme=Dme[1],Wme="".concat(tme,"-selection"),Lme=nme||cme==="multiple"&&ime===!1||cme==="tags"?rme:"",zme=cme==="tags"||cme==="multiple"&&ime===!1||dme&&(nme||jme);useLayoutEffect(function(){kme(Nme.current.scrollWidth)},[Lme]);var Ume=function(Zme,nbe,lbe,ibe,abe){return reactExports.createElement("span",{title:getTitle(Zme),className:classNames("".concat(Wme,"-item"),_defineProperty$7({},"".concat(Wme,"-item-disabled"),lbe))},reactExports.createElement("span",{className:"".concat(Wme,"-item-content")},nbe),ibe&&reactExports.createElement(TransBtn,{className:"".concat(Wme,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:abe,customizeIcon:bme},"×"))},Gme=function(Zme,nbe,lbe,ibe,abe,obe){var hbe=function(mbe){onPreventMouseDown(mbe),$me(!nme)};return reactExports.createElement("span",{onMouseDown:hbe},_me({label:nbe,value:Zme,disabled:lbe,closable:ibe,onClose:abe,isMaxTag:!!obe}))},Jme=function(Zme){var nbe=Zme.disabled,lbe=Zme.label,ibe=Zme.value,abe=!sme&&!nbe,obe=lbe;if(typeof vme=="number"&&(typeof lbe=="string"||typeof lbe=="number")){var hbe=String(obe);hbe.length>vme&&(obe="".concat(hbe.slice(0,vme),"..."))}var ube=function(pbe){pbe&&pbe.stopPropagation(),Cme(Zme)};return typeof _me=="function"?Gme(ibe,obe,nbe,abe,ube):Ume(Zme,obe,nbe,abe,ube)},Yme=function(Zme){var nbe=typeof yme=="function"?yme(Zme):yme;return typeof _me=="function"?Gme(void 0,nbe,!1,!1,void 0,!0):Ume({title:nbe},nbe,!1)},Qme=reactExports.createElement("div",{className:"".concat(Wme,"-search"),style:{width:Mme},onFocus:function(){Vme(!0)},onBlur:function(){Vme(!1)}},reactExports.createElement(RefInput,{ref:ome,open:nme,prefixCls:tme,id:$P,inputElement:null,disabled:sme,autoFocus:ume,autoComplete:fme,editable:zme,activeDescendantId:pme,value:Lme,onKeyDown:xme,onMouseDown:Tme,onChange:Sme,onPaste:Eme,onCompositionStart:Ome,onCompositionEnd:Rme,tabIndex:hme,attrs:pickAttrs(eme,!0)}),reactExports.createElement("span",{ref:Nme,className:"".concat(Wme,"-search-mirror"),"aria-hidden":!0},Lme," ")),Xme=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(Wme,"-overflow"),data:ame,renderItem:Jme,renderRest:Yme,suffix:Qme,itemKey,maxCount:mme});return reactExports.createElement("span",{className:"".concat(Wme,"-wrap")},Xme,!ame.length&&!Lme&&reactExports.createElement("span",{className:"".concat(Wme,"-placeholder")},lme))},SingleSelector=function(eme){var $P=eme.inputElement,tme=eme.prefixCls,ame=eme.id,nme=eme.inputRef,rme=eme.disabled,ime=eme.autoFocus,ome=eme.autoComplete,lme=eme.activeDescendantId,sme=eme.mode,cme=eme.open,dme=eme.values,ume=eme.placeholder,fme=eme.tabIndex,pme=eme.showSearch,hme=eme.searchValue,bme=eme.activeValue,mme=eme.maxLength,vme=eme.onInputKeyDown,gme=eme.onInputMouseDown,yme=eme.onInputChange,_me=eme.onInputPaste,$me=eme.onInputCompositionStart,Cme=eme.onInputCompositionEnd,Sme=eme.title,Eme=reactExports.useState(!1),xme=_slicedToArray$2(Eme,2),Tme=xme[0],Ome=xme[1],Rme=sme==="combobox",Nme=Rme||pme,Ime=dme[0],Pme=hme||"";Rme&&bme&&!Tme&&(Pme=bme),reactExports.useEffect(function(){Rme&&Ome(!1)},[Rme,bme]);var Mme=sme!=="combobox"&&!cme&&!pme?!1:!!Pme,kme=Sme===void 0?getTitle(Ime):Sme,Bme=reactExports.useMemo(function(){return Ime?null:reactExports.createElement("span",{className:"".concat(tme,"-selection-placeholder"),style:Mme?{visibility:"hidden"}:void 0},ume)},[Ime,Mme,ume,tme]);return reactExports.createElement("span",{className:"".concat(tme,"-selection-wrap")},reactExports.createElement("span",{className:"".concat(tme,"-selection-search")},reactExports.createElement(RefInput,{ref:nme,prefixCls:tme,id:ame,open:cme,inputElement:$P,disabled:rme,autoFocus:ime,autoComplete:ome,editable:Nme,activeDescendantId:lme,value:Pme,onKeyDown:vme,onMouseDown:gme,onChange:function(jme){Ome(!0),yme(jme)},onPaste:_me,onCompositionStart:$me,onCompositionEnd:Cme,tabIndex:fme,attrs:pickAttrs(eme,!0),maxLength:Rme?mme:void 0})),!Rme&&Ime?reactExports.createElement("span",{className:"".concat(tme,"-selection-item"),title:kme,style:Mme?{visibility:"hidden"}:void 0},Ime.label):null,Bme)},Selector=function(eme,$P){var tme=reactExports.useRef(null),ame=reactExports.useRef(!1),nme=eme.prefixCls,rme=eme.open,ime=eme.mode,ome=eme.showSearch,lme=eme.tokenWithEnter,sme=eme.disabled,cme=eme.prefix,dme=eme.autoClearSearchValue,ume=eme.onSearch,fme=eme.onSearchSubmit,pme=eme.onToggleOpen,hme=eme.onInputKeyDown,bme=eme.domRef;reactExports.useImperativeHandle($P,function(){return{focus:function(kme){tme.current.focus(kme)},blur:function(){tme.current.blur()}}});var mme=useLock(0),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=function(kme){var Bme=kme.which,Dme=tme.current instanceof HTMLTextAreaElement;!Dme&&rme&&(Bme===KeyCode.UP||Bme===KeyCode.DOWN)&&kme.preventDefault(),hme&&hme(kme),Bme===KeyCode.ENTER&&ime==="tags"&&!ame.current&&!rme&&(fme==null||fme(kme.target.value)),!(Dme&&!rme&&~[KeyCode.UP,KeyCode.DOWN,KeyCode.LEFT,KeyCode.RIGHT].indexOf(Bme))&&isValidateOpenKey(Bme)&&pme(!0)},$me=function(){yme(!0)},Cme=reactExports.useRef(null),Sme=function(kme){ume(kme,!0,ame.current)!==!1&&pme(!0)},Eme=function(){ame.current=!0},xme=function(kme){ame.current=!1,ime!=="combobox"&&Sme(kme.target.value)},Tme=function(kme){var Bme=kme.target.value;if(lme&&Cme.current&&/[\r\n]/.test(Cme.current)){var Dme=Cme.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Bme=Bme.replace(Dme,Cme.current)}Cme.current=null,Sme(Bme)},Ome=function(kme){var Bme=kme.clipboardData,Dme=Bme==null?void 0:Bme.getData("text");Cme.current=Dme||""},Rme=function(kme){var Bme=kme.target;if(Bme!==tme.current){var Dme=document.body.style.msTouchAction!==void 0;Dme?setTimeout(function(){tme.current.focus()}):tme.current.focus()}},Nme=function(kme){var Bme=gme();kme.target!==tme.current&&!Bme&&!(ime==="combobox"&&sme)&&kme.preventDefault(),(ime!=="combobox"&&(!ome||!Bme)||!rme)&&(rme&&dme!==!1&&ume("",!0,!1),pme())},Ime={inputRef:tme,onInputKeyDown:_me,onInputMouseDown:$me,onInputChange:Tme,onInputPaste:Ome,onInputCompositionStart:Eme,onInputCompositionEnd:xme},Pme=ime==="multiple"||ime==="tags"?reactExports.createElement(SelectSelector,_extends$4C({},eme,Ime)):reactExports.createElement(SingleSelector,_extends$4C({},eme,Ime));return reactExports.createElement("div",{ref:bme,className:"".concat(nme,"-selector"),onClick:Rme,onMouseDown:Nme},cme&&reactExports.createElement("div",{className:"".concat(nme,"-prefix")},cme),Pme)},ForwardSelector=reactExports.forwardRef(Selector);function Arrow(x_){var eme=x_.prefixCls,$P=x_.align,tme=x_.arrow,ame=x_.arrowPos,nme=tme||{},rme=nme.className,ime=nme.content,ome=ame.x,lme=ome===void 0?0:ome,sme=ame.y,cme=sme===void 0?0:sme,dme=reactExports.useRef();if(!$P||!$P.points)return null;var ume={position:"absolute"};if($P.autoArrow!==!1){var fme=$P.points[0],pme=$P.points[1],hme=fme[0],bme=fme[1],mme=pme[0],vme=pme[1];hme===mme||!["t","b"].includes(hme)?ume.top=cme:hme==="t"?ume.top=0:ume.bottom=0,bme===vme||!["l","r"].includes(bme)?ume.left=lme:bme==="l"?ume.left=0:ume.right=0}return reactExports.createElement("div",{ref:dme,className:classNames("".concat(eme,"-arrow"),rme),style:ume},ime)}function Mask(x_){var eme=x_.prefixCls,$P=x_.open,tme=x_.zIndex,ame=x_.mask,nme=x_.motion;return ame?reactExports.createElement(CSSMotion,_extends$4C({},nme,{motionAppear:!0,visible:$P,removeOnLeave:!0}),function(rme){var ime=rme.className;return reactExports.createElement("div",{style:{zIndex:tme},className:classNames("".concat(eme,"-mask"),ime)})}):null}var PopupContent=reactExports.memo(function(x_){var eme=x_.children;return eme},function(x_,eme){return eme.cache}),Popup$1=reactExports.forwardRef(function(x_,eme){var $P=x_.popup,tme=x_.className,ame=x_.prefixCls,nme=x_.style,rme=x_.target,ime=x_.onVisibleChanged,ome=x_.open,lme=x_.keepDom,sme=x_.fresh,cme=x_.onClick,dme=x_.mask,ume=x_.arrow,fme=x_.arrowPos,pme=x_.align,hme=x_.motion,bme=x_.maskMotion,mme=x_.forceRender,vme=x_.getPopupContainer,gme=x_.autoDestroy,yme=x_.portal,_me=x_.zIndex,$me=x_.onMouseEnter,Cme=x_.onMouseLeave,Sme=x_.onPointerEnter,Eme=x_.onPointerDownCapture,xme=x_.ready,Tme=x_.offsetX,Ome=x_.offsetY,Rme=x_.offsetR,Nme=x_.offsetB,Ime=x_.onAlign,Pme=x_.onPrepare,Mme=x_.stretch,kme=x_.targetWidth,Bme=x_.targetHeight,Dme=typeof $P=="function"?$P():$P,jme=ome||lme,Vme=(vme==null?void 0:vme.length)>0,Wme=reactExports.useState(!vme||!Vme),Lme=_slicedToArray$2(Wme,2),zme=Lme[0],Ume=Lme[1];if(useLayoutEffect$1(function(){!zme&&Vme&&rme&&Ume(!0)},[zme,Vme,rme]),!zme)return null;var Gme="auto",Jme={left:"-1000vw",top:"-1000vh",right:Gme,bottom:Gme};if(xme||!ome){var Yme,Qme=pme.points,Xme=pme.dynamicInset||((Yme=pme._experimental)===null||Yme===void 0?void 0:Yme.dynamicInset),Kme=Xme&&Qme[0][1]==="r",Zme=Xme&&Qme[0][0]==="b";Kme?(Jme.right=Rme,Jme.left=Gme):(Jme.left=Tme,Jme.right=Gme),Zme?(Jme.bottom=Nme,Jme.top=Gme):(Jme.top=Ome,Jme.bottom=Gme)}var nbe={};return Mme&&(Mme.includes("height")&&Bme?nbe.height=Bme:Mme.includes("minHeight")&&Bme&&(nbe.minHeight=Bme),Mme.includes("width")&&kme?nbe.width=kme:Mme.includes("minWidth")&&kme&&(nbe.minWidth=kme)),ome||(nbe.pointerEvents="none"),reactExports.createElement(yme,{open:mme||jme,getContainer:vme&&function(){return vme(rme)},autoDestroy:gme},reactExports.createElement(Mask,{prefixCls:ame,open:ome,zIndex:_me,mask:dme,motion:bme}),reactExports.createElement(RefResizeObserver,{onResize:Ime,disabled:!ome},function(lbe){return reactExports.createElement(CSSMotion,_extends$4C({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:mme,leavedClassName:"".concat(ame,"-hidden")},hme,{onAppearPrepare:Pme,onEnterPrepare:Pme,visible:ome,onVisibleChanged:function(abe){var obe;hme==null||(obe=hme.onVisibleChanged)===null||obe===void 0||obe.call(hme,abe),ime(abe)}}),function(ibe,abe){var obe=ibe.className,hbe=ibe.style,ube=classNames(ame,obe,tme);return reactExports.createElement("div",{ref:composeRef(lbe,eme,abe),className:ube,style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({"--arrow-x":"".concat(fme.x||0,"px"),"--arrow-y":"".concat(fme.y||0,"px")},Jme),nbe),hbe),{},{boxSizing:"border-box",zIndex:_me},nme),onMouseEnter:$me,onMouseLeave:Cme,onPointerEnter:Sme,onClick:cme,onPointerDownCapture:Eme},ume&&reactExports.createElement(Arrow,{prefixCls:ame,arrow:ume,arrowPos:fme,align:pme}),reactExports.createElement(PopupContent,{cache:!ome&&!sme},Dme))})}))}),TriggerWrapper=reactExports.forwardRef(function(x_,eme){var $P=x_.children,tme=x_.getTriggerDOMNode,ame=supportRef($P),nme=reactExports.useCallback(function(ime){fillRef(eme,tme?tme(ime):ime)},[tme]),rme=useComposeRef(nme,$P.ref);return ame?reactExports.cloneElement($P,{ref:rme}):$P}),TriggerContext=reactExports.createContext(null);function toArray$3(x_){return x_?Array.isArray(x_)?x_:[x_]:[]}function useAction(x_,eme,$P,tme){return reactExports.useMemo(function(){var ame=toArray$3($P??eme),nme=toArray$3(tme??eme),rme=new Set(ame),ime=new Set(nme);return x_&&(rme.has("hover")&&(rme.delete("hover"),rme.add("click")),ime.has("hover")&&(ime.delete("hover"),ime.add("click"))),[rme,ime]},[x_,eme,$P,tme])}function isPointsEq(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$P=arguments.length>2?arguments[2]:void 0;return $P?x_[0]===eme[0]:x_[0]===eme[0]&&x_[1]===eme[1]}function getAlignPopupClassName(x_,eme,$P,tme){for(var ame=$P.points,nme=Object.keys(x_),rme=0;rme<nme.length;rme+=1){var ime,ome=nme[rme];if(isPointsEq((ime=x_[ome])===null||ime===void 0?void 0:ime.points,ame,tme))return"".concat(eme,"-placement-").concat(ome)}return""}function getMotion$1(x_,eme,$P,tme){return eme||($P?{motionName:"".concat(x_,"-").concat($P)}:tme?{motionName:tme}:null)}function getWin(x_){return x_.ownerDocument.defaultView}function collectScroller(x_){for(var eme=[],$P=x_==null?void 0:x_.parentElement,tme=["hidden","scroll","clip","auto"];$P;){var ame=getWin($P).getComputedStyle($P),nme=ame.overflowX,rme=ame.overflowY,ime=ame.overflow;[nme,rme,ime].some(function(ome){return tme.includes(ome)})&&eme.push($P),$P=$P.parentElement}return eme}function toNum(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(x_)?eme:x_}function getPxValue(x_){return toNum(parseFloat(x_),0)}function getVisibleArea(x_,eme){var $P=_objectSpread2$4({},x_);return(eme||[]).forEach(function(tme){if(!(tme instanceof HTMLBodyElement||tme instanceof HTMLHtmlElement)){var ame=getWin(tme).getComputedStyle(tme),nme=ame.overflow,rme=ame.overflowClipMargin,ime=ame.borderTopWidth,ome=ame.borderBottomWidth,lme=ame.borderLeftWidth,sme=ame.borderRightWidth,cme=tme.getBoundingClientRect(),dme=tme.offsetHeight,ume=tme.clientHeight,fme=tme.offsetWidth,pme=tme.clientWidth,hme=getPxValue(ime),bme=getPxValue(ome),mme=getPxValue(lme),vme=getPxValue(sme),gme=toNum(Math.round(cme.width/fme*1e3)/1e3),yme=toNum(Math.round(cme.height/dme*1e3)/1e3),_me=(fme-pme-mme-vme)*gme,$me=(dme-ume-hme-bme)*yme,Cme=hme*yme,Sme=bme*yme,Eme=mme*gme,xme=vme*gme,Tme=0,Ome=0;if(nme==="clip"){var Rme=getPxValue(rme);Tme=Rme*gme,Ome=Rme*yme}var Nme=cme.x+Eme-Tme,Ime=cme.y+Cme-Ome,Pme=Nme+cme.width+2*Tme-Eme-xme-_me,Mme=Ime+cme.height+2*Ome-Cme-Sme-$me;$P.left=Math.max($P.left,Nme),$P.top=Math.max($P.top,Ime),$P.right=Math.min($P.right,Pme),$P.bottom=Math.min($P.bottom,Mme)}}),$P}function getUnitOffset(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$P="".concat(eme),tme=$P.match(/^(.*)\%$/);return tme?x_*(parseFloat(tme[1])/100):parseFloat($P)}function getNumberOffset(x_,eme){var $P=eme||[],tme=_slicedToArray$2($P,2),ame=tme[0],nme=tme[1];return[getUnitOffset(x_.width,ame),getUnitOffset(x_.height,nme)]}function splitPoints(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[x_[0],x_[1]]}function getAlignPoint(x_,eme){var $P=eme[0],tme=eme[1],ame,nme;return $P==="t"?nme=x_.y:$P==="b"?nme=x_.y+x_.height:nme=x_.y+x_.height/2,tme==="l"?ame=x_.x:tme==="r"?ame=x_.x+x_.width:ame=x_.x+x_.width/2,{x:ame,y:nme}}function reversePoints(x_,eme){var $P={t:"b",b:"t",l:"r",r:"l"};return x_.map(function(tme,ame){return ame===eme?$P[tme]||"c":tme}).join("")}function useAlign(x_,eme,$P,tme,ame,nme,rme){var ime=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ame[tme]||{}}),ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1],cme=reactExports.useRef(0),dme=reactExports.useMemo(function(){return eme?collectScroller(eme):[]},[eme]),ume=reactExports.useRef({}),fme=function(){ume.current={}};x_||fme();var pme=useEvent(function(){if(eme&&$P&&x_){let H1e=function(hye,Cye){var mye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_be,Qye=Wme.x+hye,e2e=Wme.y+Cye,R2e=Qye+Kme,I2e=e2e+Xme,N2e=Math.max(Qye,mye.left),F0e=Math.max(e2e,mye.top),U0e=Math.min(R2e,mye.right),C1e=Math.min(I2e,mye.bottom);return Math.max(0,(U0e-N2e)*(C1e-F0e))},Zye=function(){Ibe=Wme.y+t0e,n0e=Ibe+Xme,f0e=Wme.x+u0e,z0e=f0e+Kme};var mme,vme,gme,yme,_me=eme,$me=_me.ownerDocument,Cme=getWin(_me),Sme=Cme.getComputedStyle(_me),Eme=Sme.width,xme=Sme.height,Tme=Sme.position,Ome=_me.style.left,Rme=_me.style.top,Nme=_me.style.right,Ime=_me.style.bottom,Pme=_me.style.overflow,Mme=_objectSpread2$4(_objectSpread2$4({},ame[tme]),nme),kme=$me.createElement("div");(mme=_me.parentElement)===null||mme===void 0||mme.appendChild(kme),kme.style.left="".concat(_me.offsetLeft,"px"),kme.style.top="".concat(_me.offsetTop,"px"),kme.style.position=Tme,kme.style.height="".concat(_me.offsetHeight,"px"),kme.style.width="".concat(_me.offsetWidth,"px"),_me.style.left="0",_me.style.top="0",_me.style.right="auto",_me.style.bottom="auto",_me.style.overflow="hidden";var Bme;if(Array.isArray($P))Bme={x:$P[0],y:$P[1],width:0,height:0};else{var Dme,jme,Vme=$P.getBoundingClientRect();Vme.x=(Dme=Vme.x)!==null&&Dme!==void 0?Dme:Vme.left,Vme.y=(jme=Vme.y)!==null&&jme!==void 0?jme:Vme.top,Bme={x:Vme.x,y:Vme.y,width:Vme.width,height:Vme.height}}var Wme=_me.getBoundingClientRect();Wme.x=(vme=Wme.x)!==null&&vme!==void 0?vme:Wme.left,Wme.y=(gme=Wme.y)!==null&&gme!==void 0?gme:Wme.top;var Lme=$me.documentElement,zme=Lme.clientWidth,Ume=Lme.clientHeight,Gme=Lme.scrollWidth,Jme=Lme.scrollHeight,Yme=Lme.scrollTop,Qme=Lme.scrollLeft,Xme=Wme.height,Kme=Wme.width,Zme=Bme.height,nbe=Bme.width,lbe={left:0,top:0,right:zme,bottom:Ume},ibe={left:-Qme,top:-Yme,right:Gme-Qme,bottom:Jme-Yme},abe=Mme.htmlRegion,obe="visible",hbe="visibleFirst";abe!=="scroll"&&abe!==hbe&&(abe=obe);var ube=abe===hbe,mbe=getVisibleArea(ibe,dme),pbe=getVisibleArea(lbe,dme),_be=abe===obe?pbe:mbe,Sbe=ube?pbe:_be;_me.style.left="auto",_me.style.top="auto",_me.style.right="0",_me.style.bottom="0";var vbe=_me.getBoundingClientRect();_me.style.left=Ome,_me.style.top=Rme,_me.style.right=Nme,_me.style.bottom=Ime,_me.style.overflow=Pme,(yme=_me.parentElement)===null||yme===void 0||yme.removeChild(kme);var kbe=toNum(Math.round(Kme/parseFloat(Eme)*1e3)/1e3),Rbe=toNum(Math.round(Xme/parseFloat(xme)*1e3)/1e3);if(kbe===0||Rbe===0||isDOM($P)&&!isVisible$1($P))return;var Pbe=Mme.offset,Mbe=Mme.targetOffset,Kbe=getNumberOffset(Wme,Pbe),Qbe=_slicedToArray$2(Kbe,2),Gbe=Qbe[0],Hbe=Qbe[1],d0e=getNumberOffset(Bme,Mbe),p0e=_slicedToArray$2(d0e,2),S0e=p0e[0],P0e=p0e[1];Bme.x-=S0e,Bme.y-=P0e;var e0e=Mme.points||[],_0e=_slicedToArray$2(e0e,2),m0e=_0e[0],Ybe=_0e[1],Jbe=splitPoints(Ybe),c0e=splitPoints(m0e),zbe=getAlignPoint(Bme,Jbe),R0e=getAlignPoint(Wme,c0e),$0e=_objectSpread2$4({},Mme),u0e=zbe.x-R0e.x+Gbe,t0e=zbe.y-R0e.y+Hbe,v0e=H1e(u0e,t0e),L0e=H1e(u0e,t0e,pbe),Wbe=getAlignPoint(Bme,["t","l"]),a0e=getAlignPoint(Wme,["t","l"]),g0e=getAlignPoint(Bme,["b","r"]),b0e=getAlignPoint(Wme,["b","r"]),y0e=Mme.overflow||{},A0e=y0e.adjustX,V0e=y0e.adjustY,w0e=y0e.shiftX,T0e=y0e.shiftY,$be=function(Cye){return typeof Cye=="boolean"?Cye:Cye>=0},Ibe,n0e,f0e,z0e;Zye();var o0e=$be(V0e),gbe=c0e[0]===Jbe[0];if(o0e&&c0e[0]==="t"&&(n0e>Sbe.bottom||ume.current.bt)){var Tbe=t0e;gbe?Tbe-=Xme-Zme:Tbe=Wbe.y-b0e.y-Hbe;var Vbe=H1e(u0e,Tbe),Ube=H1e(u0e,Tbe,pbe);Vbe>v0e||Vbe===v0e&&(!ube||Ube>=L0e)?(ume.current.bt=!0,t0e=Tbe,Hbe=-Hbe,$0e.points=[reversePoints(c0e,0),reversePoints(Jbe,0)]):ume.current.bt=!1}if(o0e&&c0e[0]==="b"&&(Ibe<Sbe.top||ume.current.tb)){var x0e=t0e;gbe?x0e+=Xme-Zme:x0e=g0e.y-a0e.y-Hbe;var I0e=H1e(u0e,x0e),j0e=H1e(u0e,x0e,pbe);I0e>v0e||I0e===v0e&&(!ube||j0e>=L0e)?(ume.current.tb=!0,t0e=x0e,Hbe=-Hbe,$0e.points=[reversePoints(c0e,0),reversePoints(Jbe,0)]):ume.current.tb=!1}var O0e=$be(A0e),G0e=c0e[1]===Jbe[1];if(O0e&&c0e[1]==="l"&&(z0e>Sbe.right||ume.current.rl)){var W0e=u0e;G0e?W0e-=Kme-nbe:W0e=Wbe.x-b0e.x-Gbe;var i1e=H1e(W0e,t0e),t1e=H1e(W0e,t0e,pbe);i1e>v0e||i1e===v0e&&(!ube||t1e>=L0e)?(ume.current.rl=!0,u0e=W0e,Gbe=-Gbe,$0e.points=[reversePoints(c0e,1),reversePoints(Jbe,1)]):ume.current.rl=!1}if(O0e&&c0e[1]==="r"&&(f0e<Sbe.left||ume.current.lr)){var Ebe=u0e;G0e?Ebe+=Kme-nbe:Ebe=g0e.x-a0e.x-Gbe;var Cbe=H1e(Ebe,t0e),fbe=H1e(Ebe,t0e,pbe);Cbe>v0e||Cbe===v0e&&(!ube||fbe>=L0e)?(ume.current.lr=!0,u0e=Ebe,Gbe=-Gbe,$0e.points=[reversePoints(c0e,1),reversePoints(Jbe,1)]):ume.current.lr=!1}Zye();var ybe=w0e===!0?0:w0e;typeof ybe=="number"&&(f0e<pbe.left&&(u0e-=f0e-pbe.left-Gbe,Bme.x+nbe<pbe.left+ybe&&(u0e+=Bme.x-pbe.left+nbe-ybe)),z0e>pbe.right&&(u0e-=z0e-pbe.right-Gbe,Bme.x>pbe.right-ybe&&(u0e+=Bme.x-pbe.right+ybe)));var Abe=T0e===!0?0:T0e;typeof Abe=="number"&&(Ibe<pbe.top&&(t0e-=Ibe-pbe.top-Hbe,Bme.y+Zme<pbe.top+Abe&&(t0e+=Bme.y-pbe.top+Zme-Abe)),n0e>pbe.bottom&&(t0e-=n0e-pbe.bottom-Hbe,Bme.y>pbe.bottom-Abe&&(t0e+=Bme.y-pbe.bottom+Abe)));var Lbe=Wme.x+u0e,Nbe=Lbe+Kme,Fbe=Wme.y+t0e,i0e=Fbe+Xme,Bbe=Bme.x,Zbe=Bbe+nbe,E0e=Bme.y,M0e=E0e+Zme,B0e=Math.max(Lbe,Bbe),Z0e=Math.min(Nbe,Zbe),m1e=(B0e+Z0e)/2,$1e=m1e-Lbe,f1e=Math.max(Fbe,E0e),w1e=Math.min(i0e,M0e),b1e=(f1e+w1e)/2,I1e=b1e-Fbe;rme==null||rme(eme,$0e);var M1e=vbe.right-Wme.x-(u0e+Wme.width),L1e=vbe.bottom-Wme.y-(t0e+Wme.height);kbe===1&&(u0e=Math.round(u0e),M1e=Math.round(M1e)),Rbe===1&&(t0e=Math.round(t0e),L1e=Math.round(L1e));var pye={ready:!0,offsetX:u0e/kbe,offsetY:t0e/Rbe,offsetR:M1e/kbe,offsetB:L1e/Rbe,arrowX:$1e/kbe,arrowY:I1e/Rbe,scaleX:kbe,scaleY:Rbe,align:$0e};sme(pye)}}),hme=function(){cme.current+=1;var vme=cme.current;Promise.resolve().then(function(){cme.current===vme&&pme()})},bme=function(){sme(function(vme){return _objectSpread2$4(_objectSpread2$4({},vme),{},{ready:!1})})};return useLayoutEffect$1(bme,[tme]),useLayoutEffect$1(function(){x_||bme()},[x_]),[lme.ready,lme.offsetX,lme.offsetY,lme.offsetR,lme.offsetB,lme.arrowX,lme.arrowY,lme.scaleX,lme.scaleY,lme.align,hme]}function useWatch$1(x_,eme,$P,tme,ame){useLayoutEffect$1(function(){if(x_&&eme&&$P){let cme=function(){tme(),ame()};var nme=eme,rme=$P,ime=collectScroller(nme),ome=collectScroller(rme),lme=getWin(rme),sme=new Set([lme].concat(_toConsumableArray$1(ime),_toConsumableArray$1(ome)));return sme.forEach(function(dme){dme.addEventListener("scroll",cme,{passive:!0})}),lme.addEventListener("resize",cme,{passive:!0}),tme(),function(){sme.forEach(function(dme){dme.removeEventListener("scroll",cme),lme.removeEventListener("resize",cme)})}}},[x_,eme,$P])}function useWinClick(x_,eme,$P,tme,ame,nme,rme,ime){var ome=reactExports.useRef(x_);ome.current=x_;var lme=reactExports.useRef(!1);reactExports.useEffect(function(){if(eme&&tme&&(!ame||nme)){var cme=function(){lme.current=!1},dme=function(hme){var bme;ome.current&&!rme(((bme=hme.composedPath)===null||bme===void 0||(bme=bme.call(hme))===null||bme===void 0?void 0:bme[0])||hme.target)&&!lme.current&&ime(!1)},ume=getWin(tme);ume.addEventListener("pointerdown",cme,!0),ume.addEventListener("mousedown",dme,!0),ume.addEventListener("contextmenu",dme,!0);var fme=getShadowRoot($P);return fme&&(fme.addEventListener("mousedown",dme,!0),fme.addEventListener("contextmenu",dme,!0)),function(){ume.removeEventListener("pointerdown",cme,!0),ume.removeEventListener("mousedown",dme,!0),ume.removeEventListener("contextmenu",dme,!0),fme&&(fme.removeEventListener("mousedown",dme,!0),fme.removeEventListener("contextmenu",dme,!0))}}},[eme,$P,tme,ame,nme]);function sme(){lme.current=!0}return sme}var _excluded$D=["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 generateTrigger(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal$1,eme=reactExports.forwardRef(function($P,tme){var ame=$P.prefixCls,nme=ame===void 0?"rc-trigger-popup":ame,rme=$P.children,ime=$P.action,ome=ime===void 0?"hover":ime,lme=$P.showAction,sme=$P.hideAction,cme=$P.popupVisible,dme=$P.defaultPopupVisible,ume=$P.onPopupVisibleChange,fme=$P.afterPopupVisibleChange,pme=$P.mouseEnterDelay,hme=$P.mouseLeaveDelay,bme=hme===void 0?.1:hme,mme=$P.focusDelay,vme=$P.blurDelay,gme=$P.mask,yme=$P.maskClosable,_me=yme===void 0?!0:yme,$me=$P.getPopupContainer,Cme=$P.forceRender,Sme=$P.autoDestroy,Eme=$P.destroyPopupOnHide,xme=$P.popup,Tme=$P.popupClassName,Ome=$P.popupStyle,Rme=$P.popupPlacement,Nme=$P.builtinPlacements,Ime=Nme===void 0?{}:Nme,Pme=$P.popupAlign,Mme=$P.zIndex,kme=$P.stretch,Bme=$P.getPopupClassNameFromAlign,Dme=$P.fresh,jme=$P.alignPoint,Vme=$P.onPopupClick,Wme=$P.onPopupAlign,Lme=$P.arrow,zme=$P.popupMotion,Ume=$P.maskMotion,Gme=$P.popupTransitionName,Jme=$P.popupAnimation,Yme=$P.maskTransitionName,Qme=$P.maskAnimation,Xme=$P.className,Kme=$P.getTriggerDOMNode,Zme=_objectWithoutProperties$6($P,_excluded$D),nbe=Sme||Eme||!1,lbe=reactExports.useState(!1),ibe=_slicedToArray$2(lbe,2),abe=ibe[0],obe=ibe[1];useLayoutEffect$1(function(){obe(isMobile$3())},[]);var hbe=reactExports.useRef({}),ube=reactExports.useContext(TriggerContext),mbe=reactExports.useMemo(function(){return{registerSubPopup:function(U0e,C1e){hbe.current[U0e]=C1e,ube==null||ube.registerSubPopup(U0e,C1e)}}},[ube]),pbe=useId$2(),_be=reactExports.useState(null),Sbe=_slicedToArray$2(_be,2),vbe=Sbe[0],kbe=Sbe[1],Rbe=reactExports.useRef(null),Pbe=useEvent(function(F0e){Rbe.current=F0e,isDOM(F0e)&&vbe!==F0e&&kbe(F0e),ube==null||ube.registerSubPopup(pbe,F0e)}),Mbe=reactExports.useState(null),Kbe=_slicedToArray$2(Mbe,2),Qbe=Kbe[0],Gbe=Kbe[1],Hbe=reactExports.useRef(null),d0e=useEvent(function(F0e){isDOM(F0e)&&Qbe!==F0e&&(Gbe(F0e),Hbe.current=F0e)}),p0e=reactExports.Children.only(rme),S0e=(p0e==null?void 0:p0e.props)||{},P0e={},e0e=useEvent(function(F0e){var U0e,C1e,T1e=Qbe;return(T1e==null?void 0:T1e.contains(F0e))||((U0e=getShadowRoot(T1e))===null||U0e===void 0?void 0:U0e.host)===F0e||F0e===T1e||(vbe==null?void 0:vbe.contains(F0e))||((C1e=getShadowRoot(vbe))===null||C1e===void 0?void 0:C1e.host)===F0e||F0e===vbe||Object.values(hbe.current).some(function(E1e){return(E1e==null?void 0:E1e.contains(F0e))||F0e===E1e})}),_0e=getMotion$1(nme,zme,Jme,Gme),m0e=getMotion$1(nme,Ume,Qme,Yme),Ybe=reactExports.useState(dme||!1),Jbe=_slicedToArray$2(Ybe,2),c0e=Jbe[0],zbe=Jbe[1],R0e=cme??c0e,$0e=useEvent(function(F0e){cme===void 0&&zbe(F0e)});useLayoutEffect$1(function(){zbe(cme||!1)},[cme]);var u0e=reactExports.useRef(R0e);u0e.current=R0e;var t0e=reactExports.useRef([]);t0e.current=[];var v0e=useEvent(function(F0e){var U0e;$0e(F0e),((U0e=t0e.current[t0e.current.length-1])!==null&&U0e!==void 0?U0e:R0e)!==F0e&&(t0e.current.push(F0e),ume==null||ume(F0e))}),L0e=reactExports.useRef(),Wbe=function(){clearTimeout(L0e.current)},a0e=function(U0e){var C1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Wbe(),C1e===0?v0e(U0e):L0e.current=setTimeout(function(){v0e(U0e)},C1e*1e3)};reactExports.useEffect(function(){return Wbe},[]);var g0e=reactExports.useState(!1),b0e=_slicedToArray$2(g0e,2),y0e=b0e[0],A0e=b0e[1];useLayoutEffect$1(function(F0e){(!F0e||R0e)&&A0e(!0)},[R0e]);var V0e=reactExports.useState(null),w0e=_slicedToArray$2(V0e,2),T0e=w0e[0],$be=w0e[1],Ibe=reactExports.useState(null),n0e=_slicedToArray$2(Ibe,2),f0e=n0e[0],z0e=n0e[1],o0e=function(U0e){z0e([U0e.clientX,U0e.clientY])},gbe=useAlign(R0e,vbe,jme&&f0e!==null?f0e:Qbe,Rme,Ime,Pme,Wme),Tbe=_slicedToArray$2(gbe,11),Vbe=Tbe[0],Ube=Tbe[1],x0e=Tbe[2],I0e=Tbe[3],j0e=Tbe[4],O0e=Tbe[5],G0e=Tbe[6],W0e=Tbe[7],i1e=Tbe[8],t1e=Tbe[9],Ebe=Tbe[10],Cbe=useAction(abe,ome,lme,sme),fbe=_slicedToArray$2(Cbe,2),ybe=fbe[0],Abe=fbe[1],Lbe=ybe.has("click"),Nbe=Abe.has("click")||Abe.has("contextMenu"),Fbe=useEvent(function(){y0e||Ebe()}),i0e=function(){u0e.current&&jme&&Nbe&&a0e(!1)};useWatch$1(R0e,Qbe,vbe,Fbe,i0e),useLayoutEffect$1(function(){Fbe()},[f0e,Rme]),useLayoutEffect$1(function(){R0e&&!(Ime!=null&&Ime[Rme])&&Fbe()},[JSON.stringify(Pme)]);var Bbe=reactExports.useMemo(function(){var F0e=getAlignPopupClassName(Ime,nme,t1e,jme);return classNames(F0e,Bme==null?void 0:Bme(t1e))},[t1e,Bme,Ime,nme,jme]);reactExports.useImperativeHandle(tme,function(){return{nativeElement:Hbe.current,popupElement:Rbe.current,forceAlign:Fbe}});var Zbe=reactExports.useState(0),E0e=_slicedToArray$2(Zbe,2),M0e=E0e[0],B0e=E0e[1],Z0e=reactExports.useState(0),m1e=_slicedToArray$2(Z0e,2),$1e=m1e[0],f1e=m1e[1],w1e=function(){if(kme&&Qbe){var U0e=Qbe.getBoundingClientRect();B0e(U0e.width),f1e(U0e.height)}},b1e=function(){w1e(),Fbe()},I1e=function(U0e){A0e(!1),Ebe(),fme==null||fme(U0e)},M1e=function(){return new Promise(function(U0e){w1e(),$be(function(){return U0e})})};useLayoutEffect$1(function(){T0e&&(Ebe(),T0e(),$be(null))},[T0e]);function L1e(F0e,U0e,C1e,T1e){P0e[F0e]=function(E1e){var h2e;T1e==null||T1e(E1e),a0e(U0e,C1e);for(var A2e=arguments.length,g1e=new Array(A2e>1?A2e-1:0),p1e=1;p1e<A2e;p1e++)g1e[p1e-1]=arguments[p1e];(h2e=S0e[F0e])===null||h2e===void 0||h2e.call.apply(h2e,[S0e,E1e].concat(g1e))}}(Lbe||Nbe)&&(P0e.onClick=function(F0e){var U0e;u0e.current&&Nbe?a0e(!1):!u0e.current&&Lbe&&(o0e(F0e),a0e(!0));for(var C1e=arguments.length,T1e=new Array(C1e>1?C1e-1:0),E1e=1;E1e<C1e;E1e++)T1e[E1e-1]=arguments[E1e];(U0e=S0e.onClick)===null||U0e===void 0||U0e.call.apply(U0e,[S0e,F0e].concat(T1e))});var pye=useWinClick(R0e,Nbe,Qbe,vbe,gme,_me,e0e,a0e),H1e=ybe.has("hover"),Zye=Abe.has("hover"),hye,Cye;H1e&&(L1e("onMouseEnter",!0,pme,function(F0e){o0e(F0e)}),L1e("onPointerEnter",!0,pme,function(F0e){o0e(F0e)}),hye=function(U0e){(R0e||y0e)&&vbe!==null&&vbe!==void 0&&vbe.contains(U0e.target)&&a0e(!0,pme)},jme&&(P0e.onMouseMove=function(F0e){var U0e;(U0e=S0e.onMouseMove)===null||U0e===void 0||U0e.call(S0e,F0e)})),Zye&&(L1e("onMouseLeave",!1,bme),L1e("onPointerLeave",!1,bme),Cye=function(){a0e(!1,bme)}),ybe.has("focus")&&L1e("onFocus",!0,mme),Abe.has("focus")&&L1e("onBlur",!1,vme),ybe.has("contextMenu")&&(P0e.onContextMenu=function(F0e){var U0e;u0e.current&&Abe.has("contextMenu")?a0e(!1):(o0e(F0e),a0e(!0)),F0e.preventDefault();for(var C1e=arguments.length,T1e=new Array(C1e>1?C1e-1:0),E1e=1;E1e<C1e;E1e++)T1e[E1e-1]=arguments[E1e];(U0e=S0e.onContextMenu)===null||U0e===void 0||U0e.call.apply(U0e,[S0e,F0e].concat(T1e))}),Xme&&(P0e.className=classNames(S0e.className,Xme));var mye=_objectSpread2$4(_objectSpread2$4({},S0e),P0e),Qye={},e2e=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];e2e.forEach(function(F0e){Zme[F0e]&&(Qye[F0e]=function(){for(var U0e,C1e=arguments.length,T1e=new Array(C1e),E1e=0;E1e<C1e;E1e++)T1e[E1e]=arguments[E1e];(U0e=mye[F0e])===null||U0e===void 0||U0e.call.apply(U0e,[mye].concat(T1e)),Zme[F0e].apply(Zme,T1e)})});var R2e=reactExports.cloneElement(p0e,_objectSpread2$4(_objectSpread2$4({},mye),Qye)),I2e={x:O0e,y:G0e},N2e=Lme?_objectSpread2$4({},Lme!==!0?Lme:{}):null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(RefResizeObserver,{disabled:!R0e,ref:d0e,onResize:b1e},reactExports.createElement(TriggerWrapper,{getTriggerDOMNode:Kme},R2e)),reactExports.createElement(TriggerContext.Provider,{value:mbe},reactExports.createElement(Popup$1,{portal:x_,ref:Pbe,prefixCls:nme,popup:xme,className:classNames(Tme,Bbe),style:Ome,target:Qbe,onMouseEnter:hye,onMouseLeave:Cye,onPointerEnter:hye,zIndex:Mme,open:R0e,keepDom:y0e,fresh:Dme,onClick:Vme,onPointerDownCapture:pye,mask:gme,motion:_0e,maskMotion:m0e,onVisibleChanged:I1e,onPrepare:M1e,forceRender:Cme,autoDestroy:nbe,getPopupContainer:$me,align:t1e,arrow:N2e,arrowPos:I2e,ready:Vbe,offsetX:Ube,offsetY:x0e,offsetR:I0e,offsetB:j0e,onAlign:Fbe,stretch:kme,targetWidth:M0e/W0e,targetHeight:$1e/i1e})))});return eme}const Trigger=generateTrigger(Portal$1);var _excluded$C=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function(eme){var $P=eme===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$P,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$P,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$P,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$P,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(eme,$P){var tme=eme.prefixCls;eme.disabled;var ame=eme.visible,nme=eme.children,rme=eme.popupElement,ime=eme.animation,ome=eme.transitionName,lme=eme.dropdownStyle,sme=eme.dropdownClassName,cme=eme.direction,dme=cme===void 0?"ltr":cme,ume=eme.placement,fme=eme.builtinPlacements,pme=eme.dropdownMatchSelectWidth,hme=eme.dropdownRender,bme=eme.dropdownAlign,mme=eme.getPopupContainer,vme=eme.empty,gme=eme.getTriggerDOMNode,yme=eme.onPopupVisibleChange,_me=eme.onPopupMouseEnter,$me=_objectWithoutProperties$6(eme,_excluded$C),Cme="".concat(tme,"-dropdown"),Sme=rme;hme&&(Sme=hme(rme));var Eme=reactExports.useMemo(function(){return fme||getBuiltInPlacements$1(pme)},[fme,pme]),xme=ime?"".concat(Cme,"-").concat(ime):ome,Tme=typeof pme=="number",Ome=reactExports.useMemo(function(){return Tme?null:pme===!1?"minWidth":"width"},[pme,Tme]),Rme=lme;Tme&&(Rme=_objectSpread2$4(_objectSpread2$4({},Rme),{},{width:pme}));var Nme=reactExports.useRef(null);return reactExports.useImperativeHandle($P,function(){return{getPopupElement:function(){var Pme;return(Pme=Nme.current)===null||Pme===void 0?void 0:Pme.popupElement}}}),reactExports.createElement(Trigger,_extends$4C({},$me,{showAction:yme?["click"]:[],hideAction:yme?["click"]:[],popupPlacement:ume||(dme==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Eme,prefixCls:Cme,popupTransitionName:xme,popup:reactExports.createElement("div",{onMouseEnter:_me},Sme),ref:Nme,stretch:Ome,popupAlign:bme,popupVisible:ame,getPopupContainer:mme,popupClassName:classNames(sme,_defineProperty$7({},"".concat(Cme,"-empty"),vme)),popupStyle:Rme,getTriggerDOMNode:gme,onPopupVisibleChange:yme}),nme)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey$1(x_,eme){var $P=x_.key,tme;return"value"in x_&&(tme=x_.value),$P??(tme!==void 0?tme:"rc-index-key-".concat(eme))}function isValidCount(x_){return typeof x_<"u"&&!Number.isNaN(x_)}function fillFieldNames(x_,eme){var $P=x_||{},tme=$P.label,ame=$P.value,nme=$P.options,rme=$P.groupLabel,ime=tme||(eme?"children":"label");return{label:ime,value:ame||"value",options:nme||"options",groupLabel:rme||ime}}function flattenOptions(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$P=eme.fieldNames,tme=eme.childrenAsData,ame=[],nme=fillFieldNames($P,!1),rme=nme.label,ime=nme.value,ome=nme.options,lme=nme.groupLabel;function sme(cme,dme){Array.isArray(cme)&&cme.forEach(function(ume){if(dme||!(ome in ume)){var fme=ume[ime];ame.push({key:getKey$1(ume,ame.length),groupOption:dme,data:ume,label:ume[rme],value:fme})}else{var pme=ume[lme];pme===void 0&&tme&&(pme=ume.label),ame.push({key:getKey$1(ume,ame.length),group:!0,data:ume,label:pme}),sme(ume[ome],!0)}})}return sme(x_,!1),ame}function injectPropsWithOption(x_){var eme=_objectSpread2$4({},x_);return"props"in eme||Object.defineProperty(eme,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),eme}}),eme}var getSeparatedContent=function(eme,$P,tme){if(!$P||!$P.length)return null;var ame=!1,nme=function ime(ome,lme){var sme=_toArray(lme),cme=sme[0],dme=sme.slice(1);if(!cme)return[ome];var ume=ome.split(cme);return ame=ame||ume.length>1,ume.reduce(function(fme,pme){return[].concat(_toConsumableArray$1(fme),_toConsumableArray$1(ime(pme,dme)))},[]).filter(Boolean)},rme=nme(eme,$P);return ame?typeof tme<"u"?rme.slice(0,tme):rme:null},SelectContext=reactExports.createContext(null);function Polite(x_){var eme=x_.visible,$P=x_.values;if(!eme)return null;var tme=50;return reactExports.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat($P.slice(0,tme).map(function(ame){var nme=ame.label,rme=ame.value;return["number","string"].includes(_typeof$4(nme))?nme:rme}).join(", ")),$P.length>tme?", ...":null)}var _excluded$B=["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"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(eme){return eme==="tags"||eme==="multiple"},BaseSelect=reactExports.forwardRef(function(x_,eme){var $P,tme=x_.id,ame=x_.prefixCls,nme=x_.className,rme=x_.showSearch,ime=x_.tagRender,ome=x_.direction,lme=x_.omitDomProps,sme=x_.displayValues,cme=x_.onDisplayValuesChange,dme=x_.emptyOptions,ume=x_.notFoundContent,fme=ume===void 0?"Not Found":ume,pme=x_.onClear,hme=x_.mode,bme=x_.disabled,mme=x_.loading,vme=x_.getInputElement,gme=x_.getRawInputElement,yme=x_.open,_me=x_.defaultOpen,$me=x_.onDropdownVisibleChange,Cme=x_.activeValue,Sme=x_.onActiveValueChange,Eme=x_.activeDescendantId,xme=x_.searchValue,Tme=x_.autoClearSearchValue,Ome=x_.onSearch,Rme=x_.onSearchSplit,Nme=x_.tokenSeparators,Ime=x_.allowClear,Pme=x_.prefix,Mme=x_.suffixIcon,kme=x_.clearIcon,Bme=x_.OptionList,Dme=x_.animation,jme=x_.transitionName,Vme=x_.dropdownStyle,Wme=x_.dropdownClassName,Lme=x_.dropdownMatchSelectWidth,zme=x_.dropdownRender,Ume=x_.dropdownAlign,Gme=x_.placement,Jme=x_.builtinPlacements,Yme=x_.getPopupContainer,Qme=x_.showAction,Xme=Qme===void 0?[]:Qme,Kme=x_.onFocus,Zme=x_.onBlur,nbe=x_.onKeyUp,lbe=x_.onKeyDown,ibe=x_.onMouseDown,abe=_objectWithoutProperties$6(x_,_excluded$B),obe=isMultiple(hme),hbe=(rme!==void 0?rme:obe)||hme==="combobox",ube=_objectSpread2$4({},abe);DEFAULT_OMIT_PROPS.forEach(function(Bbe){delete ube[Bbe]}),lme==null||lme.forEach(function(Bbe){delete ube[Bbe]});var mbe=reactExports.useState(!1),pbe=_slicedToArray$2(mbe,2),_be=pbe[0],Sbe=pbe[1];reactExports.useEffect(function(){Sbe(isMobile$3())},[]);var vbe=reactExports.useRef(null),kbe=reactExports.useRef(null),Rbe=reactExports.useRef(null),Pbe=reactExports.useRef(null),Mbe=reactExports.useRef(null),Kbe=reactExports.useRef(!1),Qbe=useDelayReset(),Gbe=_slicedToArray$2(Qbe,3),Hbe=Gbe[0],d0e=Gbe[1],p0e=Gbe[2];reactExports.useImperativeHandle(eme,function(){var Bbe,Zbe;return{focus:(Bbe=Pbe.current)===null||Bbe===void 0?void 0:Bbe.focus,blur:(Zbe=Pbe.current)===null||Zbe===void 0?void 0:Zbe.blur,scrollTo:function(M0e){var B0e;return(B0e=Mbe.current)===null||B0e===void 0?void 0:B0e.scrollTo(M0e)},nativeElement:vbe.current||kbe.current}});var S0e=reactExports.useMemo(function(){var Bbe;if(hme!=="combobox")return xme;var Zbe=(Bbe=sme[0])===null||Bbe===void 0?void 0:Bbe.value;return typeof Zbe=="string"||typeof Zbe=="number"?String(Zbe):""},[xme,hme,sme]),P0e=hme==="combobox"&&typeof vme=="function"&&vme()||null,e0e=typeof gme=="function"&&gme(),_0e=useComposeRef(kbe,e0e==null||($P=e0e.props)===null||$P===void 0?void 0:$P.ref),m0e=reactExports.useState(!1),Ybe=_slicedToArray$2(m0e,2),Jbe=Ybe[0],c0e=Ybe[1];useLayoutEffect$1(function(){c0e(!0)},[]);var zbe=useMergedState(!1,{defaultValue:_me,value:yme}),R0e=_slicedToArray$2(zbe,2),$0e=R0e[0],u0e=R0e[1],t0e=Jbe?$0e:!1,v0e=!fme&&dme;(bme||v0e&&t0e&&hme==="combobox")&&(t0e=!1);var L0e=v0e?!1:t0e,Wbe=reactExports.useCallback(function(Bbe){var Zbe=Bbe!==void 0?Bbe:!t0e;bme||(u0e(Zbe),t0e!==Zbe&&($me==null||$me(Zbe)))},[bme,t0e,u0e,$me]),a0e=reactExports.useMemo(function(){return(Nme||[]).some(function(Bbe){return[`
`,`\r
`].includes(Bbe)})},[Nme]),g0e=reactExports.useContext(SelectContext)||{},b0e=g0e.maxCount,y0e=g0e.rawValues,A0e=function(Zbe,E0e,M0e){if(!(obe&&isValidCount(b0e)&&(y0e==null?void 0:y0e.size)>=b0e)){var B0e=!0,Z0e=Zbe;Sme==null||Sme(null);var m1e=getSeparatedContent(Zbe,Nme,isValidCount(b0e)?b0e-y0e.size:void 0),$1e=M0e?null:m1e;return hme!=="combobox"&&$1e&&(Z0e="",Rme==null||Rme($1e),Wbe(!1),B0e=!1),Ome&&S0e!==Z0e&&Ome(Z0e,{source:E0e?"typing":"effect"}),B0e}},V0e=function(Zbe){!Zbe||!Zbe.trim()||Ome(Zbe,{source:"submit"})};reactExports.useEffect(function(){!t0e&&!obe&&hme!=="combobox"&&A0e("",!1,!1)},[t0e]),reactExports.useEffect(function(){$0e&&bme&&u0e(!1),bme&&!Kbe.current&&d0e(!1)},[bme]);var w0e=useLock(),T0e=_slicedToArray$2(w0e,2),$be=T0e[0],Ibe=T0e[1],n0e=reactExports.useRef(!1),f0e=function(Zbe){var E0e=$be(),M0e=Zbe.key,B0e=M0e==="Enter";if(B0e&&(hme!=="combobox"&&Zbe.preventDefault(),t0e||Wbe(!0)),Ibe(!!S0e),M0e==="Backspace"&&!E0e&&obe&&!S0e&&sme.length){for(var Z0e=_toConsumableArray$1(sme),m1e=null,$1e=Z0e.length-1;$1e>=0;$1e-=1){var f1e=Z0e[$1e];if(!f1e.disabled){Z0e.splice($1e,1),m1e=f1e;break}}m1e&&cme(Z0e,{type:"remove",values:[m1e]})}for(var w1e=arguments.length,b1e=new Array(w1e>1?w1e-1:0),I1e=1;I1e<w1e;I1e++)b1e[I1e-1]=arguments[I1e];if(t0e&&(!B0e||!n0e.current)){var M1e;(M1e=Mbe.current)===null||M1e===void 0||M1e.onKeyDown.apply(M1e,[Zbe].concat(b1e))}B0e&&(n0e.current=!0),lbe==null||lbe.apply(void 0,[Zbe].concat(b1e))},z0e=function(Zbe){for(var E0e=arguments.length,M0e=new Array(E0e>1?E0e-1:0),B0e=1;B0e<E0e;B0e++)M0e[B0e-1]=arguments[B0e];if(t0e){var Z0e;(Z0e=Mbe.current)===null||Z0e===void 0||Z0e.onKeyUp.apply(Z0e,[Zbe].concat(M0e))}Zbe.key==="Enter"&&(n0e.current=!1),nbe==null||nbe.apply(void 0,[Zbe].concat(M0e))},o0e=function(Zbe){var E0e=sme.filter(function(M0e){return M0e!==Zbe});cme(E0e,{type:"remove",values:[Zbe]})},gbe=reactExports.useRef(!1),Tbe=function(){d0e(!0),bme||(Kme&&!gbe.current&&Kme.apply(void 0,arguments),Xme.includes("focus")&&Wbe(!0)),gbe.current=!0},Vbe=function(){Kbe.current=!0,d0e(!1,function(){gbe.current=!1,Kbe.current=!1,Wbe(!1)}),!bme&&(S0e&&(hme==="tags"?Ome(S0e,{source:"submit"}):hme==="multiple"&&Ome("",{source:"blur"})),Zme&&Zme.apply(void 0,arguments))},Ube=[];reactExports.useEffect(function(){return function(){Ube.forEach(function(Bbe){return clearTimeout(Bbe)}),Ube.splice(0,Ube.length)}},[]);var x0e=function(Zbe){var E0e,M0e=Zbe.target,B0e=(E0e=Rbe.current)===null||E0e===void 0?void 0:E0e.getPopupElement();if(B0e&&B0e.contains(M0e)){var Z0e=setTimeout(function(){var w1e=Ube.indexOf(Z0e);if(w1e!==-1&&Ube.splice(w1e,1),p0e(),!_be&&!B0e.contains(document.activeElement)){var b1e;(b1e=Pbe.current)===null||b1e===void 0||b1e.focus()}});Ube.push(Z0e)}for(var m1e=arguments.length,$1e=new Array(m1e>1?m1e-1:0),f1e=1;f1e<m1e;f1e++)$1e[f1e-1]=arguments[f1e];ibe==null||ibe.apply(void 0,[Zbe].concat($1e))},I0e=reactExports.useState({}),j0e=_slicedToArray$2(I0e,2),O0e=j0e[1];function G0e(){O0e({})}var W0e;e0e&&(W0e=function(Zbe){Wbe(Zbe)}),useSelectTriggerControl(function(){var Bbe;return[vbe.current,(Bbe=Rbe.current)===null||Bbe===void 0?void 0:Bbe.getPopupElement()]},L0e,Wbe,!!e0e);var i1e=reactExports.useMemo(function(){return _objectSpread2$4(_objectSpread2$4({},x_),{},{notFoundContent:fme,open:t0e,triggerOpen:L0e,id:tme,showSearch:hbe,multiple:obe,toggleOpen:Wbe})},[x_,fme,L0e,t0e,tme,hbe,obe,Wbe]),t1e=!!Mme||mme,Ebe;t1e&&(Ebe=reactExports.createElement(TransBtn,{className:classNames("".concat(ame,"-arrow"),_defineProperty$7({},"".concat(ame,"-arrow-loading"),mme)),customizeIcon:Mme,customizeIconProps:{loading:mme,searchValue:S0e,open:t0e,focused:Hbe,showSearch:hbe}}));var Cbe=function(){var Zbe;pme==null||pme(),(Zbe=Pbe.current)===null||Zbe===void 0||Zbe.focus(),cme([],{type:"clear",values:sme}),A0e("",!1,!1)},fbe=useAllowClear(ame,Cbe,sme,Ime,kme,bme,S0e,hme),ybe=fbe.allowClear,Abe=fbe.clearIcon,Lbe=reactExports.createElement(Bme,{ref:Mbe}),Nbe=classNames(ame,nme,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(ame,"-focused"),Hbe),"".concat(ame,"-multiple"),obe),"".concat(ame,"-single"),!obe),"".concat(ame,"-allow-clear"),Ime),"".concat(ame,"-show-arrow"),t1e),"".concat(ame,"-disabled"),bme),"".concat(ame,"-loading"),mme),"".concat(ame,"-open"),t0e),"".concat(ame,"-customize-input"),P0e),"".concat(ame,"-show-search"),hbe)),Fbe=reactExports.createElement(RefSelectTrigger,{ref:Rbe,disabled:bme,prefixCls:ame,visible:L0e,popupElement:Lbe,animation:Dme,transitionName:jme,dropdownStyle:Vme,dropdownClassName:Wme,direction:ome,dropdownMatchSelectWidth:Lme,dropdownRender:zme,dropdownAlign:Ume,placement:Gme,builtinPlacements:Jme,getPopupContainer:Yme,empty:dme,getTriggerDOMNode:function(Zbe){return kbe.current||Zbe},onPopupVisibleChange:W0e,onPopupMouseEnter:G0e},e0e?reactExports.cloneElement(e0e,{ref:_0e}):reactExports.createElement(ForwardSelector,_extends$4C({},x_,{domRef:kbe,prefixCls:ame,inputElement:P0e,ref:Pbe,id:tme,prefix:Pme,showSearch:hbe,autoClearSearchValue:Tme,mode:hme,activeDescendantId:Eme,tagRender:ime,values:sme,open:t0e,onToggleOpen:Wbe,activeValue:Cme,searchValue:S0e,onSearch:A0e,onSearchSubmit:V0e,onRemove:o0e,tokenWithEnter:a0e}))),i0e;return e0e?i0e=Fbe:i0e=reactExports.createElement("div",_extends$4C({className:Nbe},ube,{ref:vbe,onMouseDown:x0e,onKeyDown:f0e,onKeyUp:z0e,onFocus:Tbe,onBlur:Vbe}),reactExports.createElement(Polite,{visible:Hbe&&!t0e,values:sme}),Fbe,Ebe,ybe&&Abe),reactExports.createElement(BaseSelectContext.Provider,{value:i1e},i0e)}),OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;var Option=function(){return null};Option.isSelectOption=!0;var Filler=reactExports.forwardRef(function(x_,eme){var $P=x_.height,tme=x_.offsetY,ame=x_.offsetX,nme=x_.children,rme=x_.prefixCls,ime=x_.onInnerResize,ome=x_.innerProps,lme=x_.rtl,sme=x_.extra,cme={},dme={display:"flex",flexDirection:"column"};return tme!==void 0&&(cme={height:$P,position:"relative",overflow:"hidden"},dme=_objectSpread2$4(_objectSpread2$4({},dme),{},_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({transform:"translateY(".concat(tme,"px)")},lme?"marginRight":"marginLeft",-ame),"position","absolute"),"left",0),"right",0),"top",0))),reactExports.createElement("div",{style:cme},reactExports.createElement(RefResizeObserver,{onResize:function(fme){var pme=fme.offsetHeight;pme&&ime&&ime()}},reactExports.createElement("div",_extends$4C({style:dme,className:classNames(_defineProperty$7({},"".concat(rme,"-holder-inner"),rme)),ref:eme},ome),nme,sme)))});Filler.displayName="Filler";function Item$3(x_){var eme=x_.children,$P=x_.setRef,tme=reactExports.useCallback(function(ame){$P(ame)},[]);return reactExports.cloneElement(eme,{ref:tme})}function useChildren$1(x_,eme,$P,tme,ame,nme,rme,ime){var ome=ime.getKey;return x_.slice(eme,$P+1).map(function(lme,sme){var cme=eme+sme,dme=rme(lme,cme,{style:{width:tme},offsetX:ame}),ume=ome(lme);return reactExports.createElement(Item$3,{key:ume,setRef:function(pme){return nme(lme,pme)}},dme)})}function findListDiffIndex(x_,eme,$P){var tme=x_.length,ame=eme.length,nme,rme;if(tme===0&&ame===0)return null;tme<ame?(nme=x_,rme=eme):(nme=eme,rme=x_);var ime={__EMPTY_ITEM__:!0};function ome(fme){return fme!==void 0?$P(fme):ime}for(var lme=null,sme=Math.abs(tme-ame)!==1,cme=0;cme<rme.length;cme+=1){var dme=ome(nme[cme]),ume=ome(rme[cme]);if(dme!==ume){lme=cme,sme=sme||dme!==ome(rme[cme+1]);break}}return lme===null?null:{index:lme,multiple:sme}}function useDiffItem(x_,eme,$P){var tme=reactExports.useState(x_),ame=_slicedToArray$2(tme,2),nme=ame[0],rme=ame[1],ime=reactExports.useState(null),ome=_slicedToArray$2(ime,2),lme=ome[0],sme=ome[1];return reactExports.useEffect(function(){var cme=findListDiffIndex(nme||[],x_||[],eme);(cme==null?void 0:cme.index)!==void 0&&sme(x_[cme.index]),rme(x_)},[x_]),[lme]}var isFF=(typeof navigator>"u"?"undefined":_typeof$4(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(x_,eme,$P,tme){var ame=reactExports.useRef(!1),nme=reactExports.useRef(null);function rme(){clearTimeout(nme.current),ame.current=!0,nme.current=setTimeout(function(){ame.current=!1},50)}var ime=reactExports.useRef({top:x_,bottom:eme,left:$P,right:tme});return ime.current.top=x_,ime.current.bottom=eme,ime.current.left=$P,ime.current.right=tme,function(ome,lme){var sme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,cme=ome?lme<0&&ime.current.left||lme>0&&ime.current.right:lme<0&&ime.current.top||lme>0&&ime.current.bottom;return sme&&cme?(clearTimeout(nme.current),ame.current=!1):(!cme||ame.current)&&rme(),!ame.current&&cme}};function useFrameWheel(x_,eme,$P,tme,ame,nme,rme){var ime=reactExports.useRef(0),ome=reactExports.useRef(null),lme=reactExports.useRef(null),sme=reactExports.useRef(!1),cme=useOriginScroll(eme,$P,tme,ame);function dme(mme,vme){if(wrapperRaf.cancel(ome.current),!cme(!1,vme)){var gme=mme;if(!gme._virtualHandled)gme._virtualHandled=!0;else return;ime.current+=vme,lme.current=vme,isFF||gme.preventDefault(),ome.current=wrapperRaf(function(){var yme=sme.current?10:1;rme(ime.current*yme,!1),ime.current=0})}}function ume(mme,vme){rme(vme,!0),isFF||mme.preventDefault()}var fme=reactExports.useRef(null),pme=reactExports.useRef(null);function hme(mme){if(x_){wrapperRaf.cancel(pme.current),pme.current=wrapperRaf(function(){fme.current=null},2);var vme=mme.deltaX,gme=mme.deltaY,yme=mme.shiftKey,_me=vme,$me=gme;(fme.current==="sx"||!fme.current&&yme&&gme&&!vme)&&(_me=gme,$me=0,fme.current="sx");var Cme=Math.abs(_me),Sme=Math.abs($me);fme.current===null&&(fme.current=nme&&Cme>Sme?"x":"y"),fme.current==="y"?dme(mme,$me):ume(mme,_me)}}function bme(mme){x_&&(sme.current=mme.detail===lme.current)}return[hme,bme]}function useGetSize(x_,eme,$P,tme){var ame=reactExports.useMemo(function(){return[new Map,[]]},[x_,$P.id,tme]),nme=_slicedToArray$2(ame,2),rme=nme[0],ime=nme[1],ome=function(sme){var cme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sme,dme=rme.get(sme),ume=rme.get(cme);if(dme===void 0||ume===void 0)for(var fme=x_.length,pme=ime.length;pme<fme;pme+=1){var hme,bme=x_[pme],mme=eme(bme);rme.set(mme,pme);var vme=(hme=$P.get(mme))!==null&&hme!==void 0?hme:tme;if(ime[pme]=(ime[pme-1]||0)+vme,mme===sme&&(dme=pme),mme===cme&&(ume=pme),dme!==void 0&&ume!==void 0)break}return{top:ime[dme-1]||0,bottom:ime[ume]}};return ome}var CacheMap=function(){function x_(){_classCallCheck$d(this,x_),_defineProperty$7(this,"maps",void 0),_defineProperty$7(this,"id",0),this.maps=Object.create(null)}return _createClass$b(x_,[{key:"set",value:function($P,tme){this.maps[$P]=tme,this.id+=1}},{key:"get",value:function($P){return this.maps[$P]}}]),x_}();function parseNumber$1(x_){var eme=parseFloat(x_);return isNaN(eme)?0:eme}function useHeights(x_,eme,$P){var tme=reactExports.useState(0),ame=_slicedToArray$2(tme,2),nme=ame[0],rme=ame[1],ime=reactExports.useRef(new Map),ome=reactExports.useRef(new CacheMap),lme=reactExports.useRef();function sme(){wrapperRaf.cancel(lme.current)}function cme(){var ume=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;sme();var fme=function(){ime.current.forEach(function(hme,bme){if(hme&&hme.offsetParent){var mme=findDOMNode$1(hme),vme=mme.offsetHeight,gme=getComputedStyle(mme),yme=gme.marginTop,_me=gme.marginBottom,$me=parseNumber$1(yme),Cme=parseNumber$1(_me),Sme=vme+$me+Cme;ome.current.get(bme)!==Sme&&ome.current.set(bme,Sme)}}),rme(function(hme){return hme+1})};ume?fme():lme.current=wrapperRaf(fme)}function dme(ume,fme){var pme=x_(ume);ime.current.get(pme),fme?(ime.current.set(pme,fme),cme()):ime.current.delete(pme)}return reactExports.useEffect(function(){return sme},[]),[dme,cme,ome.current,nme]}var SMOOTH_PTG=14/15;function useMobileTouchMove(x_,eme,$P){var tme=reactExports.useRef(!1),ame=reactExports.useRef(0),nme=reactExports.useRef(0),rme=reactExports.useRef(null),ime=reactExports.useRef(null),ome,lme=function(ume){if(tme.current){var fme=Math.ceil(ume.touches[0].pageX),pme=Math.ceil(ume.touches[0].pageY),hme=ame.current-fme,bme=nme.current-pme,mme=Math.abs(hme)>Math.abs(bme);mme?ame.current=fme:nme.current=pme;var vme=$P(mme,mme?hme:bme,!1,ume);vme&&ume.preventDefault(),clearInterval(ime.current),vme&&(ime.current=setInterval(function(){mme?hme*=SMOOTH_PTG:bme*=SMOOTH_PTG;var gme=Math.floor(mme?hme:bme);(!$P(mme,gme,!0)||Math.abs(gme)<=.1)&&clearInterval(ime.current)},16))}},sme=function(){tme.current=!1,ome()},cme=function(ume){ome(),ume.touches.length===1&&!tme.current&&(tme.current=!0,ame.current=Math.ceil(ume.touches[0].pageX),nme.current=Math.ceil(ume.touches[0].pageY),rme.current=ume.target,rme.current.addEventListener("touchmove",lme,{passive:!1}),rme.current.addEventListener("touchend",sme,{passive:!0}))};ome=function(){rme.current&&(rme.current.removeEventListener("touchmove",lme),rme.current.removeEventListener("touchend",sme))},useLayoutEffect$1(function(){return x_&&eme.current.addEventListener("touchstart",cme,{passive:!0}),function(){var dme;(dme=eme.current)===null||dme===void 0||dme.removeEventListener("touchstart",cme),ome(),clearInterval(ime.current)}},[x_])}function smoothScrollOffset(x_){return Math.floor(Math.pow(x_,.5))}function getPageXY(x_,eme){var $P="touches"in x_?x_.touches[0]:x_;return $P[eme?"pageX":"pageY"]}function useScrollDrag(x_,eme,$P){reactExports.useEffect(function(){var tme=eme.current;if(x_&&tme){var ame=!1,nme,rme,ime=function(){wrapperRaf.cancel(nme)},ome=function dme(){ime(),nme=wrapperRaf(function(){$P(rme),dme()})},lme=function(ume){var fme=ume;fme._virtualHandled||(fme._virtualHandled=!0,ame=!0)},sme=function(){ame=!1,ime()},cme=function(ume){if(ame){var fme=getPageXY(ume,!1),pme=tme.getBoundingClientRect(),hme=pme.top,bme=pme.bottom;if(fme<=hme){var mme=hme-fme;rme=-smoothScrollOffset(mme),ome()}else if(fme>=bme){var vme=fme-bme;rme=smoothScrollOffset(vme),ome()}else ime()}};return tme.addEventListener("mousedown",lme),tme.ownerDocument.addEventListener("mouseup",sme),tme.ownerDocument.addEventListener("mousemove",cme),function(){tme.removeEventListener("mousedown",lme),tme.ownerDocument.removeEventListener("mouseup",sme),tme.ownerDocument.removeEventListener("mousemove",cme),ime()}}},[x_])}var MAX_TIMES=10;function useScrollTo(x_,eme,$P,tme,ame,nme,rme,ime){var ome=reactExports.useRef(),lme=reactExports.useState(null),sme=_slicedToArray$2(lme,2),cme=sme[0],dme=sme[1];return useLayoutEffect$1(function(){if(cme&&cme.times<MAX_TIMES){if(!x_.current){dme(function(kme){return _objectSpread2$4({},kme)});return}nme();var ume=cme.targetAlign,fme=cme.originAlign,pme=cme.index,hme=cme.offset,bme=x_.current.clientHeight,mme=!1,vme=ume,gme=null;if(bme){for(var yme=ume||fme,_me=0,$me=0,Cme=0,Sme=Math.min(eme.length-1,pme),Eme=0;Eme<=Sme;Eme+=1){var xme=ame(eme[Eme]);$me=_me;var Tme=$P.get(xme);Cme=$me+(Tme===void 0?tme:Tme),_me=Cme}for(var Ome=yme==="top"?hme:bme-hme,Rme=Sme;Rme>=0;Rme-=1){var Nme=ame(eme[Rme]),Ime=$P.get(Nme);if(Ime===void 0){mme=!0;break}if(Ome-=Ime,Ome<=0)break}switch(yme){case"top":gme=$me-hme;break;case"bottom":gme=Cme-bme+hme;break;default:{var Pme=x_.current.scrollTop,Mme=Pme+bme;$me<Pme?vme="top":Cme>Mme&&(vme="bottom")}}gme!==null&&rme(gme),gme!==cme.lastTop&&(mme=!0)}mme&&dme(_objectSpread2$4(_objectSpread2$4({},cme),{},{times:cme.times+1,targetAlign:vme,lastTop:gme}))}},[cme,x_.current]),function(ume){if(ume==null){ime();return}if(wrapperRaf.cancel(ome.current),typeof ume=="number")rme(ume);else if(ume&&_typeof$4(ume)==="object"){var fme,pme=ume.align;"index"in ume?fme=ume.index:fme=eme.findIndex(function(mme){return ame(mme)===ume.key});var hme=ume.offset,bme=hme===void 0?0:hme;dme({times:0,index:fme,offset:bme,originAlign:pme})}}}var ScrollBar=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.rtl,ame=x_.scrollOffset,nme=x_.scrollRange,rme=x_.onStartMove,ime=x_.onStopMove,ome=x_.onScroll,lme=x_.horizontal,sme=x_.spinSize,cme=x_.containerSize,dme=x_.style,ume=x_.thumbStyle,fme=reactExports.useState(!1),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme=reactExports.useState(null),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=reactExports.useState(null),$me=_slicedToArray$2(_me,2),Cme=$me[0],Sme=$me[1],Eme=!tme,xme=reactExports.useRef(),Tme=reactExports.useRef(),Ome=reactExports.useState(!1),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1],Pme=reactExports.useRef(),Mme=function(){clearTimeout(Pme.current),Ime(!0),Pme.current=setTimeout(function(){Ime(!1)},3e3)},kme=nme-cme||0,Bme=cme-sme||0,Dme=reactExports.useMemo(function(){if(ame===0||kme===0)return 0;var Yme=ame/kme;return Yme*Bme},[ame,kme,Bme]),jme=function(Qme){Qme.stopPropagation(),Qme.preventDefault()},Vme=reactExports.useRef({top:Dme,dragging:hme,pageY:gme,startTop:Cme});Vme.current={top:Dme,dragging:hme,pageY:gme,startTop:Cme};var Wme=function(Qme){bme(!0),yme(getPageXY(Qme,lme)),Sme(Vme.current.top),rme(),Qme.stopPropagation(),Qme.preventDefault()};reactExports.useEffect(function(){var Yme=function(Zme){Zme.preventDefault()},Qme=xme.current,Xme=Tme.current;return Qme.addEventListener("touchstart",Yme,{passive:!1}),Xme.addEventListener("touchstart",Wme,{passive:!1}),function(){Qme.removeEventListener("touchstart",Yme),Xme.removeEventListener("touchstart",Wme)}},[]);var Lme=reactExports.useRef();Lme.current=kme;var zme=reactExports.useRef();zme.current=Bme,reactExports.useEffect(function(){if(hme){var Yme,Qme=function(Zme){var nbe=Vme.current,lbe=nbe.dragging,ibe=nbe.pageY,abe=nbe.startTop;wrapperRaf.cancel(Yme);var obe=xme.current.getBoundingClientRect(),hbe=cme/(lme?obe.width:obe.height);if(lbe){var ube=(getPageXY(Zme,lme)-ibe)*hbe,mbe=abe;!Eme&&lme?mbe-=ube:mbe+=ube;var pbe=Lme.current,_be=zme.current,Sbe=_be?mbe/_be:0,vbe=Math.ceil(Sbe*pbe);vbe=Math.max(vbe,0),vbe=Math.min(vbe,pbe),Yme=wrapperRaf(function(){ome(vbe,lme)})}},Xme=function(){bme(!1),ime()};return window.addEventListener("mousemove",Qme,{passive:!0}),window.addEventListener("touchmove",Qme,{passive:!0}),window.addEventListener("mouseup",Xme,{passive:!0}),window.addEventListener("touchend",Xme,{passive:!0}),function(){window.removeEventListener("mousemove",Qme),window.removeEventListener("touchmove",Qme),window.removeEventListener("mouseup",Xme),window.removeEventListener("touchend",Xme),wrapperRaf.cancel(Yme)}}},[hme]),reactExports.useEffect(function(){return Mme(),function(){clearTimeout(Pme.current)}},[ame]),reactExports.useImperativeHandle(eme,function(){return{delayHidden:Mme}});var Ume="".concat($P,"-scrollbar"),Gme={position:"absolute",visibility:Nme?null:"hidden"},Jme={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return lme?(Gme.height=8,Gme.left=0,Gme.right=0,Gme.bottom=0,Jme.height="100%",Jme.width=sme,Eme?Jme.left=Dme:Jme.right=Dme):(Gme.width=8,Gme.top=0,Gme.bottom=0,Eme?Gme.right=0:Gme.left=0,Jme.width="100%",Jme.height=sme,Jme.top=Dme),reactExports.createElement("div",{ref:xme,className:classNames(Ume,_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(Ume,"-horizontal"),lme),"".concat(Ume,"-vertical"),!lme),"".concat(Ume,"-visible"),Nme)),style:_objectSpread2$4(_objectSpread2$4({},Gme),dme),onMouseDown:jme,onMouseMove:Mme},reactExports.createElement("div",{ref:Tme,className:classNames("".concat(Ume,"-thumb"),_defineProperty$7({},"".concat(Ume,"-thumb-moving"),hme)),style:_objectSpread2$4(_objectSpread2$4({},Jme),ume),onMouseDown:Wme}))}),MIN_SIZE=20;function getSpinSize(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$P=x_/eme*x_;return isNaN($P)&&($P=0),$P=Math.max($P,MIN_SIZE),Math.floor($P)}var _excluded$A=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-virtual-list":$P,ame=x_.className,nme=x_.height,rme=x_.itemHeight,ime=x_.fullHeight,ome=ime===void 0?!0:ime,lme=x_.style,sme=x_.data,cme=x_.children,dme=x_.itemKey,ume=x_.virtual,fme=x_.direction,pme=x_.scrollWidth,hme=x_.component,bme=hme===void 0?"div":hme,mme=x_.onScroll,vme=x_.onVirtualScroll,gme=x_.onVisibleChange,yme=x_.innerProps,_me=x_.extraRender,$me=x_.styles,Cme=_objectWithoutProperties$6(x_,_excluded$A),Sme=reactExports.useCallback(function(o0e){return typeof dme=="function"?dme(o0e):o0e==null?void 0:o0e[dme]},[dme]),Eme=useHeights(Sme),xme=_slicedToArray$2(Eme,4),Tme=xme[0],Ome=xme[1],Rme=xme[2],Nme=xme[3],Ime=!!(ume!==!1&&nme&&rme),Pme=reactExports.useMemo(function(){return Object.values(Rme.maps).reduce(function(o0e,gbe){return o0e+gbe},0)},[Rme.id,Rme.maps]),Mme=Ime&&sme&&(Math.max(rme*sme.length,Pme)>nme||!!pme),kme=fme==="rtl",Bme=classNames(tme,_defineProperty$7({},"".concat(tme,"-rtl"),kme),ame),Dme=sme||EMPTY_DATA,jme=reactExports.useRef(),Vme=reactExports.useRef(),Wme=reactExports.useRef(),Lme=reactExports.useState(0),zme=_slicedToArray$2(Lme,2),Ume=zme[0],Gme=zme[1],Jme=reactExports.useState(0),Yme=_slicedToArray$2(Jme,2),Qme=Yme[0],Xme=Yme[1],Kme=reactExports.useState(!1),Zme=_slicedToArray$2(Kme,2),nbe=Zme[0],lbe=Zme[1],ibe=function(){lbe(!0)},abe=function(){lbe(!1)},obe={getKey:Sme};function hbe(o0e){Gme(function(gbe){var Tbe;typeof o0e=="function"?Tbe=o0e(gbe):Tbe=o0e;var Vbe=Ybe(Tbe);return jme.current.scrollTop=Vbe,Vbe})}var ube=reactExports.useRef({start:0,end:Dme.length}),mbe=reactExports.useRef(),pbe=useDiffItem(Dme,Sme),_be=_slicedToArray$2(pbe,1),Sbe=_be[0];mbe.current=Sbe;var vbe=reactExports.useMemo(function(){if(!Ime)return{scrollHeight:void 0,start:0,end:Dme.length-1,offset:void 0};if(!Mme){var o0e;return{scrollHeight:((o0e=Vme.current)===null||o0e===void 0?void 0:o0e.offsetHeight)||0,start:0,end:Dme.length-1,offset:void 0}}for(var gbe=0,Tbe,Vbe,Ube,x0e=Dme.length,I0e=0;I0e<x0e;I0e+=1){var j0e=Dme[I0e],O0e=Sme(j0e),G0e=Rme.get(O0e),W0e=gbe+(G0e===void 0?rme:G0e);W0e>=Ume&&Tbe===void 0&&(Tbe=I0e,Vbe=gbe),W0e>Ume+nme&&Ube===void 0&&(Ube=I0e),gbe=W0e}return Tbe===void 0&&(Tbe=0,Vbe=0,Ube=Math.ceil(nme/rme)),Ube===void 0&&(Ube=Dme.length-1),Ube=Math.min(Ube+1,Dme.length-1),{scrollHeight:gbe,start:Tbe,end:Ube,offset:Vbe}},[Mme,Ime,Ume,Dme,Nme,nme]),kbe=vbe.scrollHeight,Rbe=vbe.start,Pbe=vbe.end,Mbe=vbe.offset;ube.current.start=Rbe,ube.current.end=Pbe;var Kbe=reactExports.useState({width:0,height:nme}),Qbe=_slicedToArray$2(Kbe,2),Gbe=Qbe[0],Hbe=Qbe[1],d0e=function(gbe){Hbe({width:gbe.offsetWidth,height:gbe.offsetHeight})},p0e=reactExports.useRef(),S0e=reactExports.useRef(),P0e=reactExports.useMemo(function(){return getSpinSize(Gbe.width,pme)},[Gbe.width,pme]),e0e=reactExports.useMemo(function(){return getSpinSize(Gbe.height,kbe)},[Gbe.height,kbe]),_0e=kbe-nme,m0e=reactExports.useRef(_0e);m0e.current=_0e;function Ybe(o0e){var gbe=o0e;return Number.isNaN(m0e.current)||(gbe=Math.min(gbe,m0e.current)),gbe=Math.max(gbe,0),gbe}var Jbe=Ume<=0,c0e=Ume>=_0e,zbe=Qme<=0,R0e=Qme>=pme,$0e=useOriginScroll(Jbe,c0e,zbe,R0e),u0e=function(){return{x:kme?-Qme:Qme,y:Ume}},t0e=reactExports.useRef(u0e()),v0e=useEvent(function(o0e){if(vme){var gbe=_objectSpread2$4(_objectSpread2$4({},u0e()),o0e);(t0e.current.x!==gbe.x||t0e.current.y!==gbe.y)&&(vme(gbe),t0e.current=gbe)}});function L0e(o0e,gbe){var Tbe=o0e;gbe?(reactDomExports.flushSync(function(){Xme(Tbe)}),v0e()):hbe(Tbe)}function Wbe(o0e){var gbe=o0e.currentTarget.scrollTop;gbe!==Ume&&hbe(gbe),mme==null||mme(o0e),v0e()}var a0e=function(gbe){var Tbe=gbe,Vbe=pme?pme-Gbe.width:0;return Tbe=Math.max(Tbe,0),Tbe=Math.min(Tbe,Vbe),Tbe},g0e=useEvent(function(o0e,gbe){gbe?(reactDomExports.flushSync(function(){Xme(function(Tbe){var Vbe=Tbe+(kme?-o0e:o0e);return a0e(Vbe)})}),v0e()):hbe(function(Tbe){var Vbe=Tbe+o0e;return Vbe})}),b0e=useFrameWheel(Ime,Jbe,c0e,zbe,R0e,!!pme,g0e),y0e=_slicedToArray$2(b0e,2),A0e=y0e[0],V0e=y0e[1];useMobileTouchMove(Ime,jme,function(o0e,gbe,Tbe,Vbe){var Ube=Vbe;return $0e(o0e,gbe,Tbe)?!1:!Ube||!Ube._virtualHandled?(Ube&&(Ube._virtualHandled=!0),A0e({preventDefault:function(){},deltaX:o0e?gbe:0,deltaY:o0e?0:gbe}),!0):!1}),useScrollDrag(Mme,jme,function(o0e){hbe(function(gbe){return gbe+o0e})}),useLayoutEffect$1(function(){function o0e(Tbe){var Vbe=Jbe&&Tbe.detail<0,Ube=c0e&&Tbe.detail>0;Ime&&!Vbe&&!Ube&&Tbe.preventDefault()}var gbe=jme.current;return gbe.addEventListener("wheel",A0e,{passive:!1}),gbe.addEventListener("DOMMouseScroll",V0e,{passive:!0}),gbe.addEventListener("MozMousePixelScroll",o0e,{passive:!1}),function(){gbe.removeEventListener("wheel",A0e),gbe.removeEventListener("DOMMouseScroll",V0e),gbe.removeEventListener("MozMousePixelScroll",o0e)}},[Ime,Jbe,c0e]),useLayoutEffect$1(function(){if(pme){var o0e=a0e(Qme);Xme(o0e),v0e({x:o0e})}},[Gbe.width,pme]);var w0e=function(){var gbe,Tbe;(gbe=p0e.current)===null||gbe===void 0||gbe.delayHidden(),(Tbe=S0e.current)===null||Tbe===void 0||Tbe.delayHidden()},T0e=useScrollTo(jme,Dme,Rme,rme,Sme,function(){return Ome(!0)},hbe,w0e);reactExports.useImperativeHandle(eme,function(){return{nativeElement:Wme.current,getScrollInfo:u0e,scrollTo:function(gbe){function Tbe(Vbe){return Vbe&&_typeof$4(Vbe)==="object"&&("left"in Vbe||"top"in Vbe)}Tbe(gbe)?(gbe.left!==void 0&&Xme(a0e(gbe.left)),T0e(gbe.top)):T0e(gbe)}}}),useLayoutEffect$1(function(){if(gme){var o0e=Dme.slice(Rbe,Pbe+1);gme(o0e,Dme)}},[Rbe,Pbe,Dme]);var $be=useGetSize(Dme,Sme,Rme,rme),Ibe=_me==null?void 0:_me({start:Rbe,end:Pbe,virtual:Mme,offsetX:Qme,offsetY:Mbe,rtl:kme,getSize:$be}),n0e=useChildren$1(Dme,Rbe,Pbe,pme,Qme,Tme,cme,obe),f0e=null;nme&&(f0e=_objectSpread2$4(_defineProperty$7({},ome?"height":"maxHeight",nme),ScrollStyle),Ime&&(f0e.overflowY="hidden",pme&&(f0e.overflowX="hidden"),nbe&&(f0e.pointerEvents="none")));var z0e={};return kme&&(z0e.dir="rtl"),reactExports.createElement("div",_extends$4C({ref:Wme,style:_objectSpread2$4(_objectSpread2$4({},lme),{},{position:"relative"}),className:Bme},z0e,Cme),reactExports.createElement(RefResizeObserver,{onResize:d0e},reactExports.createElement(bme,{className:"".concat(tme,"-holder"),style:f0e,ref:jme,onScroll:Wbe,onMouseEnter:w0e},reactExports.createElement(Filler,{prefixCls:tme,height:kbe,offsetX:Qme,offsetY:Mbe,scrollWidth:pme,onInnerResize:Ome,ref:Vme,innerProps:yme,rtl:kme,extra:Ibe},n0e))),Mme&&kbe>nme&&reactExports.createElement(ScrollBar,{ref:p0e,prefixCls:tme,scrollOffset:Ume,scrollRange:kbe,rtl:kme,onScroll:L0e,onStartMove:ibe,onStopMove:abe,spinSize:e0e,containerSize:Gbe.height,style:$me==null?void 0:$me.verticalScrollBar,thumbStyle:$me==null?void 0:$me.verticalScrollBarThumb}),Mme&&pme>Gbe.width&&reactExports.createElement(ScrollBar,{ref:S0e,prefixCls:tme,scrollOffset:Qme,scrollRange:pme,rtl:kme,onScroll:L0e,onStartMove:ibe,onStopMove:abe,spinSize:P0e,containerSize:Gbe.width,horizontal:!0,style:$me==null?void 0:$me.horizontalScrollBar,thumbStyle:$me==null?void 0:$me.horizontalScrollBarThumb}))}var List$2=reactExports.forwardRef(RawList);List$2.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$z=["disabled","title","children","style","className"];function isTitleType(x_){return typeof x_=="string"||typeof x_=="number"}var OptionList=function(eme,$P){var tme=useBaseProps(),ame=tme.prefixCls,nme=tme.id,rme=tme.open,ime=tme.multiple,ome=tme.mode,lme=tme.searchValue,sme=tme.toggleOpen,cme=tme.notFoundContent,dme=tme.onPopupScroll,ume=reactExports.useContext(SelectContext),fme=ume.maxCount,pme=ume.flattenOptions,hme=ume.onActiveValue,bme=ume.defaultActiveFirstOption,mme=ume.onSelect,vme=ume.menuItemSelectedIcon,gme=ume.rawValues,yme=ume.fieldNames,_me=ume.virtual,$me=ume.direction,Cme=ume.listHeight,Sme=ume.listItemHeight,Eme=ume.optionRender,xme="".concat(ame,"-item"),Tme=useMemo(function(){return pme},[rme,pme],function(Qme,Xme){return Xme[0]&&Qme[1]!==Xme[1]}),Ome=reactExports.useRef(null),Rme=reactExports.useMemo(function(){return ime&&isValidCount(fme)&&(gme==null?void 0:gme.size)>=fme},[ime,fme,gme==null?void 0:gme.size]),Nme=function(Xme){Xme.preventDefault()},Ime=function(Xme){var Kme;(Kme=Ome.current)===null||Kme===void 0||Kme.scrollTo(typeof Xme=="number"?{index:Xme}:Xme)},Pme=reactExports.useCallback(function(Qme){return ome==="combobox"?!1:gme.has(Qme)},[ome,_toConsumableArray$1(gme).toString(),gme.size]),Mme=function(Xme){for(var Kme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Zme=Tme.length,nbe=0;nbe<Zme;nbe+=1){var lbe=(Xme+nbe*Kme+Zme)%Zme,ibe=Tme[lbe]||{},abe=ibe.group,obe=ibe.data;if(!abe&&!(obe!=null&&obe.disabled)&&(Pme(obe.value)||!Rme))return lbe}return-1},kme=reactExports.useState(function(){return Mme(0)}),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=function(Xme){var Kme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;jme(Xme);var Zme={source:Kme?"keyboard":"mouse"},nbe=Tme[Xme];if(!nbe){hme(null,-1,Zme);return}hme(nbe.value,Xme,Zme)};reactExports.useEffect(function(){Vme(bme!==!1?Mme(0):-1)},[Tme.length,lme]);var Wme=reactExports.useCallback(function(Qme){return ome==="combobox"?String(Qme).toLowerCase()===lme.toLowerCase():gme.has(Qme)},[ome,lme,_toConsumableArray$1(gme).toString(),gme.size]);reactExports.useEffect(function(){var Qme=setTimeout(function(){if(!ime&&rme&&gme.size===1){var Kme=Array.from(gme)[0],Zme=Tme.findIndex(function(nbe){var lbe=nbe.data;return lbe.value===Kme});Zme!==-1&&(Vme(Zme),Ime(Zme))}});if(rme){var Xme;(Xme=Ome.current)===null||Xme===void 0||Xme.scrollTo(void 0)}return function(){return clearTimeout(Qme)}},[rme,lme]);var Lme=function(Xme){Xme!==void 0&&mme(Xme,{selected:!gme.has(Xme)}),ime||sme(!1)};if(reactExports.useImperativeHandle($P,function(){return{onKeyDown:function(Xme){var Kme=Xme.which,Zme=Xme.ctrlKey;switch(Kme){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var nbe=0;if(Kme===KeyCode.UP?nbe=-1:Kme===KeyCode.DOWN?nbe=1:isPlatformMac()&&Zme&&(Kme===KeyCode.N?nbe=1:Kme===KeyCode.P&&(nbe=-1)),nbe!==0){var lbe=Mme(Dme+nbe,nbe);Ime(lbe),Vme(lbe,!0)}break}case KeyCode.TAB:case KeyCode.ENTER:{var ibe,abe=Tme[Dme];abe&&!(abe!=null&&(ibe=abe.data)!==null&&ibe!==void 0&&ibe.disabled)&&!Rme?Lme(abe.value):Lme(void 0),rme&&Xme.preventDefault();break}case KeyCode.ESC:sme(!1),rme&&Xme.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Xme){Ime(Xme)}}}),Tme.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(nme,"_list"),className:"".concat(xme,"-empty"),onMouseDown:Nme},cme);var zme=Object.keys(yme).map(function(Qme){return yme[Qme]}),Ume=function(Xme){return Xme.label};function Gme(Qme,Xme){var Kme=Qme.group;return{role:Kme?"presentation":"option",id:"".concat(nme,"_list_").concat(Xme)}}var Jme=function(Xme){var Kme=Tme[Xme];if(!Kme)return null;var Zme=Kme.data||{},nbe=Zme.value,lbe=Kme.group,ibe=pickAttrs(Zme,!0),abe=Ume(Kme);return Kme?reactExports.createElement("div",_extends$4C({"aria-label":typeof abe=="string"&&!lbe?abe:null},ibe,{key:Xme},Gme(Kme,Xme),{"aria-selected":Wme(nbe)}),nbe):null},Yme={role:"listbox",id:"".concat(nme,"_list")};return reactExports.createElement(reactExports.Fragment,null,_me&&reactExports.createElement("div",_extends$4C({},Yme,{style:{height:0,width:0,overflow:"hidden"}}),Jme(Dme-1),Jme(Dme),Jme(Dme+1)),reactExports.createElement(List$2,{itemKey:"key",ref:Ome,data:Tme,height:Cme,itemHeight:Sme,fullHeight:!1,onMouseDown:Nme,onScroll:dme,virtual:_me,direction:$me,innerProps:_me?null:Yme},function(Qme,Xme){var Kme=Qme.group,Zme=Qme.groupOption,nbe=Qme.data,lbe=Qme.label,ibe=Qme.value,abe=nbe.key;if(Kme){var obe,hbe=(obe=nbe.title)!==null&&obe!==void 0?obe:isTitleType(lbe)?lbe.toString():void 0;return reactExports.createElement("div",{className:classNames(xme,"".concat(xme,"-group"),nbe.className),title:hbe},lbe!==void 0?lbe:abe)}var ube=nbe.disabled,mbe=nbe.title;nbe.children;var pbe=nbe.style,_be=nbe.className,Sbe=_objectWithoutProperties$6(nbe,_excluded$z),vbe=omit$2(Sbe,zme),kbe=Pme(ibe),Rbe=ube||!kbe&&Rme,Pbe="".concat(xme,"-option"),Mbe=classNames(xme,Pbe,_be,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(Pbe,"-grouped"),Zme),"".concat(Pbe,"-active"),Dme===Xme&&!Rbe),"".concat(Pbe,"-disabled"),Rbe),"".concat(Pbe,"-selected"),kbe)),Kbe=Ume(Qme),Qbe=!vme||typeof vme=="function"||kbe,Gbe=typeof Kbe=="number"?Kbe:Kbe||ibe,Hbe=isTitleType(Gbe)?Gbe.toString():void 0;return mbe!==void 0&&(Hbe=mbe),reactExports.createElement("div",_extends$4C({},pickAttrs(vbe),_me?{}:Gme(Qme,Xme),{"aria-selected":Wme(ibe),className:Mbe,title:Hbe,onMouseMove:function(){Dme===Xme||Rbe||Vme(Xme)},onClick:function(){Rbe||Lme(ibe)},style:pbe}),reactExports.createElement("div",{className:"".concat(Pbe,"-content")},typeof Eme=="function"?Eme(Qme,{index:Xme}):Gbe),reactExports.isValidElement(vme)||kbe,Qbe&&reactExports.createElement(TransBtn,{className:"".concat(xme,"-option-state"),customizeIcon:vme,customizeIconProps:{value:ibe,disabled:Rbe,isSelected:kbe}},kbe?"✓":null))}))},RefOptionList=reactExports.forwardRef(OptionList);const useCache=function(x_,eme){var $P=reactExports.useRef({values:new Map,options:new Map}),tme=reactExports.useMemo(function(){var nme=$P.current,rme=nme.values,ime=nme.options,ome=x_.map(function(cme){if(cme.label===void 0){var dme;return _objectSpread2$4(_objectSpread2$4({},cme),{},{label:(dme=rme.get(cme.value))===null||dme===void 0?void 0:dme.label})}return cme}),lme=new Map,sme=new Map;return ome.forEach(function(cme){lme.set(cme.value,cme),sme.set(cme.value,eme.get(cme.value)||ime.get(cme.value))}),$P.current.values=lme,$P.current.options=sme,ome},[x_,eme]),ame=reactExports.useCallback(function(nme){return eme.get(nme)||$P.current.options.get(nme)},[eme]);return[tme,ame]};function includes$2(x_,eme){return toArray$4(x_).join("").toUpperCase().includes(eme)}const useFilterOptions=function(x_,eme,$P,tme,ame){return reactExports.useMemo(function(){if(!$P||tme===!1)return x_;var nme=eme.options,rme=eme.label,ime=eme.value,ome=[],lme=typeof tme=="function",sme=$P.toUpperCase(),cme=lme?tme:function(ume,fme){return ame?includes$2(fme[ame],sme):fme[nme]?includes$2(fme[rme!=="children"?rme:"label"],sme):includes$2(fme[ime],sme)},dme=lme?function(ume){return injectPropsWithOption(ume)}:function(ume){return ume};return x_.forEach(function(ume){if(ume[nme]){var fme=cme($P,dme(ume));if(fme)ome.push(ume);else{var pme=ume[nme].filter(function(hme){return cme($P,dme(hme))});pme.length&&ome.push(_objectSpread2$4(_objectSpread2$4({},ume),{},_defineProperty$7({},nme,pme)))}return}cme($P,dme(ume))&&ome.push(ume)}),ome},[x_,tme,ame,$P,eme])};var uuid$3=0,isBrowserClient$1=canUseDom();function getUUID$1(){var x_;return isBrowserClient$1?(x_=uuid$3,uuid$3+=1):x_="TEST_OR_SSR",x_}function useId$1(x_){var eme=reactExports.useState(),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1];return reactExports.useEffect(function(){ame("rc_select_".concat(getUUID$1()))},[]),x_||tme}var _excluded$y=["children","value"],_excluded2$8=["children"];function convertNodeToOption(x_){var eme=x_,$P=eme.key,tme=eme.props,ame=tme.children,nme=tme.value,rme=_objectWithoutProperties$6(tme,_excluded$y);return _objectSpread2$4({key:$P,value:nme!==void 0?nme:$P,children:ame},rme)}function convertChildrenToData(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$6(x_).map(function($P,tme){if(!reactExports.isValidElement($P)||!$P.type)return null;var ame=$P,nme=ame.type.isSelectOptGroup,rme=ame.key,ime=ame.props,ome=ime.children,lme=_objectWithoutProperties$6(ime,_excluded2$8);return eme||!nme?convertNodeToOption($P):_objectSpread2$4(_objectSpread2$4({key:"__RC_SELECT_GRP__".concat(rme===null?tme:rme,"__"),label:rme},lme),{},{options:convertChildrenToData(ome)})}).filter(function($P){return $P})}var useOptions=function(eme,$P,tme,ame,nme){return reactExports.useMemo(function(){var rme=eme,ime=!eme;ime&&(rme=convertChildrenToData($P));var ome=new Map,lme=new Map,sme=function(ume,fme,pme){pme&&typeof pme=="string"&&ume.set(fme[pme],fme)},cme=function dme(ume){for(var fme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pme=0;pme<ume.length;pme+=1){var hme=ume[pme];!hme[tme.options]||fme?(ome.set(hme[tme.value],hme),sme(lme,hme,tme.label),sme(lme,hme,ame),sme(lme,hme,nme)):dme(hme[tme.options],!0)}};return cme(rme),{options:rme,valueOptions:ome,labelOptions:lme}},[eme,$P,tme,ame,nme])};function useRefFunc(x_){var eme=reactExports.useRef();eme.current=x_;var $P=reactExports.useCallback(function(){return eme.current.apply(eme,arguments)},[]);return $P}var _excluded$x=["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"],OMIT_DOM_PROPS=["inputValue"];function isRawValue(x_){return!x_||_typeof$4(x_)!=="object"}var Select$2=reactExports.forwardRef(function(x_,eme){var $P=x_.id,tme=x_.mode,ame=x_.prefixCls,nme=ame===void 0?"rc-select":ame,rme=x_.backfill,ime=x_.fieldNames,ome=x_.inputValue,lme=x_.searchValue,sme=x_.onSearch,cme=x_.autoClearSearchValue,dme=cme===void 0?!0:cme,ume=x_.onSelect,fme=x_.onDeselect,pme=x_.dropdownMatchSelectWidth,hme=pme===void 0?!0:pme,bme=x_.filterOption,mme=x_.filterSort,vme=x_.optionFilterProp,gme=x_.optionLabelProp,yme=x_.options,_me=x_.optionRender,$me=x_.children,Cme=x_.defaultActiveFirstOption,Sme=x_.menuItemSelectedIcon,Eme=x_.virtual,xme=x_.direction,Tme=x_.listHeight,Ome=Tme===void 0?200:Tme,Rme=x_.listItemHeight,Nme=Rme===void 0?20:Rme,Ime=x_.labelRender,Pme=x_.value,Mme=x_.defaultValue,kme=x_.labelInValue,Bme=x_.onChange,Dme=x_.maxCount,jme=_objectWithoutProperties$6(x_,_excluded$x),Vme=useId$1($P),Wme=isMultiple(tme),Lme=!!(!yme&&$me),zme=reactExports.useMemo(function(){return bme===void 0&&tme==="combobox"?!1:bme},[bme,tme]),Ume=reactExports.useMemo(function(){return fillFieldNames(ime,Lme)},[JSON.stringify(ime),Lme]),Gme=useMergedState("",{value:lme!==void 0?lme:ome,postState:function(a0e){return a0e||""}}),Jme=_slicedToArray$2(Gme,2),Yme=Jme[0],Qme=Jme[1],Xme=useOptions(yme,$me,Ume,vme,gme),Kme=Xme.valueOptions,Zme=Xme.labelOptions,nbe=Xme.options,lbe=reactExports.useCallback(function(Wbe){var a0e=toArray$4(Wbe);return a0e.map(function(g0e){var b0e,y0e,A0e,V0e,w0e;if(isRawValue(g0e))b0e=g0e;else{var T0e;A0e=g0e.key,y0e=g0e.label,b0e=(T0e=g0e.value)!==null&&T0e!==void 0?T0e:A0e}var $be=Kme.get(b0e);if($be){var Ibe;y0e===void 0&&(y0e=$be==null?void 0:$be[gme||Ume.label]),A0e===void 0&&(A0e=(Ibe=$be==null?void 0:$be.key)!==null&&Ibe!==void 0?Ibe:b0e),V0e=$be==null?void 0:$be.disabled,w0e=$be==null?void 0:$be.title}return{label:y0e,value:b0e,key:A0e,disabled:V0e,title:w0e}})},[Ume,gme,Kme]),ibe=useMergedState(Mme,{value:Pme}),abe=_slicedToArray$2(ibe,2),obe=abe[0],hbe=abe[1],ube=reactExports.useMemo(function(){var Wbe,a0e=Wme&&obe===null?[]:obe,g0e=lbe(a0e);return tme==="combobox"&&isComboNoValue((Wbe=g0e[0])===null||Wbe===void 0?void 0:Wbe.value)?[]:g0e},[obe,lbe,tme,Wme]),mbe=useCache(ube,Kme),pbe=_slicedToArray$2(mbe,2),_be=pbe[0],Sbe=pbe[1],vbe=reactExports.useMemo(function(){if(!tme&&_be.length===1){var Wbe=_be[0];if(Wbe.value===null&&(Wbe.label===null||Wbe.label===void 0))return[]}return _be.map(function(a0e){var g0e;return _objectSpread2$4(_objectSpread2$4({},a0e),{},{label:(g0e=typeof Ime=="function"?Ime(a0e):a0e.label)!==null&&g0e!==void 0?g0e:a0e.value})})},[tme,_be,Ime]),kbe=reactExports.useMemo(function(){return new Set(_be.map(function(Wbe){return Wbe.value}))},[_be]);reactExports.useEffect(function(){if(tme==="combobox"){var Wbe,a0e=(Wbe=_be[0])===null||Wbe===void 0?void 0:Wbe.value;Qme(hasValue(a0e)?String(a0e):"")}},[_be]);var Rbe=useRefFunc(function(Wbe,a0e){var g0e=a0e??Wbe;return _defineProperty$7(_defineProperty$7({},Ume.value,Wbe),Ume.label,g0e)}),Pbe=reactExports.useMemo(function(){if(tme!=="tags")return nbe;var Wbe=_toConsumableArray$1(nbe),a0e=function(b0e){return Kme.has(b0e)};return _toConsumableArray$1(_be).sort(function(g0e,b0e){return g0e.value<b0e.value?-1:1}).forEach(function(g0e){var b0e=g0e.value;a0e(b0e)||Wbe.push(Rbe(b0e,g0e.label))}),Wbe},[Rbe,nbe,Kme,_be,tme]),Mbe=useFilterOptions(Pbe,Ume,Yme,zme,vme),Kbe=reactExports.useMemo(function(){return tme!=="tags"||!Yme||Mbe.some(function(Wbe){return Wbe[vme||"value"]===Yme})||Mbe.some(function(Wbe){return Wbe[Ume.value]===Yme})?Mbe:[Rbe(Yme)].concat(_toConsumableArray$1(Mbe))},[Rbe,vme,tme,Mbe,Yme,Ume]),Qbe=function Wbe(a0e){var g0e=_toConsumableArray$1(a0e).sort(function(b0e,y0e){return mme(b0e,y0e,{searchValue:Yme})});return g0e.map(function(b0e){return Array.isArray(b0e.options)?_objectSpread2$4(_objectSpread2$4({},b0e),{},{options:b0e.options.length>0?Wbe(b0e.options):b0e.options}):b0e})},Gbe=reactExports.useMemo(function(){return mme?Qbe(Kbe):Kbe},[Kbe,mme,Yme]),Hbe=reactExports.useMemo(function(){return flattenOptions(Gbe,{fieldNames:Ume,childrenAsData:Lme})},[Gbe,Ume,Lme]),d0e=function(a0e){var g0e=lbe(a0e);if(hbe(g0e),Bme&&(g0e.length!==_be.length||g0e.some(function(A0e,V0e){var w0e;return((w0e=_be[V0e])===null||w0e===void 0?void 0:w0e.value)!==(A0e==null?void 0:A0e.value)}))){var b0e=kme?g0e:g0e.map(function(A0e){return A0e.value}),y0e=g0e.map(function(A0e){return injectPropsWithOption(Sbe(A0e.value))});Bme(Wme?b0e:b0e[0],Wme?y0e:y0e[0])}},p0e=reactExports.useState(null),S0e=_slicedToArray$2(p0e,2),P0e=S0e[0],e0e=S0e[1],_0e=reactExports.useState(0),m0e=_slicedToArray$2(_0e,2),Ybe=m0e[0],Jbe=m0e[1],c0e=Cme!==void 0?Cme:tme!=="combobox",zbe=reactExports.useCallback(function(Wbe,a0e){var g0e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b0e=g0e.source,y0e=b0e===void 0?"keyboard":b0e;Jbe(a0e),rme&&tme==="combobox"&&Wbe!==null&&y0e==="keyboard"&&e0e(String(Wbe))},[rme,tme]),R0e=function(a0e,g0e,b0e){var y0e=function(){var o0e,gbe=Sbe(a0e);return[kme?{label:gbe==null?void 0:gbe[Ume.label],value:a0e,key:(o0e=gbe==null?void 0:gbe.key)!==null&&o0e!==void 0?o0e:a0e}:a0e,injectPropsWithOption(gbe)]};if(g0e&&ume){var A0e=y0e(),V0e=_slicedToArray$2(A0e,2),w0e=V0e[0],T0e=V0e[1];ume(w0e,T0e)}else if(!g0e&&fme&&b0e!=="clear"){var $be=y0e(),Ibe=_slicedToArray$2($be,2),n0e=Ibe[0],f0e=Ibe[1];fme(n0e,f0e)}},$0e=useRefFunc(function(Wbe,a0e){var g0e,b0e=Wme?a0e.selected:!0;b0e?g0e=Wme?[].concat(_toConsumableArray$1(_be),[Wbe]):[Wbe]:g0e=_be.filter(function(y0e){return y0e.value!==Wbe}),d0e(g0e),R0e(Wbe,b0e),tme==="combobox"?e0e(""):(!isMultiple||dme)&&(Qme(""),e0e(""))}),u0e=function(a0e,g0e){d0e(a0e);var b0e=g0e.type,y0e=g0e.values;(b0e==="remove"||b0e==="clear")&&y0e.forEach(function(A0e){R0e(A0e.value,!1,b0e)})},t0e=function(a0e,g0e){if(Qme(a0e),e0e(null),g0e.source==="submit"){var b0e=(a0e||"").trim();if(b0e){var y0e=Array.from(new Set([].concat(_toConsumableArray$1(kbe),[b0e])));d0e(y0e),R0e(b0e,!0),Qme("")}return}g0e.source!=="blur"&&(tme==="combobox"&&d0e(a0e),sme==null||sme(a0e))},v0e=function(a0e){var g0e=a0e;tme!=="tags"&&(g0e=a0e.map(function(y0e){var A0e=Zme.get(y0e);return A0e==null?void 0:A0e.value}).filter(function(y0e){return y0e!==void 0}));var b0e=Array.from(new Set([].concat(_toConsumableArray$1(kbe),_toConsumableArray$1(g0e))));d0e(b0e),b0e.forEach(function(y0e){R0e(y0e,!0)})},L0e=reactExports.useMemo(function(){var Wbe=Eme!==!1&&hme!==!1;return _objectSpread2$4(_objectSpread2$4({},Xme),{},{flattenOptions:Hbe,onActiveValue:zbe,defaultActiveFirstOption:c0e,onSelect:$0e,menuItemSelectedIcon:Sme,rawValues:kbe,fieldNames:Ume,virtual:Wbe,direction:xme,listHeight:Ome,listItemHeight:Nme,childrenAsData:Lme,maxCount:Dme,optionRender:_me})},[Dme,Xme,Hbe,zbe,c0e,$0e,Sme,kbe,Ume,Eme,hme,xme,Ome,Nme,Lme,_me]);return reactExports.createElement(SelectContext.Provider,{value:L0e},reactExports.createElement(BaseSelect,_extends$4C({},jme,{id:Vme,prefixCls:nme,ref:eme,omitDomProps:OMIT_DOM_PROPS,mode:tme,displayValues:vbe,onDisplayValuesChange:u0e,direction:xme,searchValue:Yme,onSearch:t0e,autoClearSearchValue:dme,onSearchSplit:v0e,dropdownMatchSelectWidth:hme,OptionList:RefOptionList,emptyOptions:!Hbe.length,activeValue:P0e,activeDescendantId:"".concat(Vme,"_list_").concat(Ybe)})))}),TypedSelect=Select$2;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getStatusClassNames(x_,eme,$P){return classNames({[`${x_}-status-success`]:eme==="success",[`${x_}-status-warning`]:eme==="warning",[`${x_}-status-error`]:eme==="error",[`${x_}-status-validating`]:eme==="validating",[`${x_}-has-feedback`]:$P})}const getMergedStatus=(x_,eme)=>eme||x_,Empty$1=()=>{const[,x_]=useToken$1(),[eme]=useLocale("Empty"),tme=new TinyColor(x_.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:tme,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(eme==null?void 0:eme.description)||"Empty"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.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"}),reactExports.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)"}),reactExports.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"}),reactExports.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"})),reactExports.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"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Simple=()=>{const[,x_]=useToken$1(),[eme]=useLocale("Empty"),{colorFill:$P,colorFillTertiary:tme,colorFillQuaternary:ame,colorBgContainer:nme}=x_,{borderColor:rme,shadowColor:ime,contentColor:ome}=reactExports.useMemo(()=>({borderColor:new TinyColor($P).onBackground(nme).toHexShortString(),shadowColor:new TinyColor(tme).onBackground(nme).toHexShortString(),contentColor:new TinyColor(ame).onBackground(nme).toHexShortString()}),[$P,tme,ame,nme]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(eme==null?void 0:eme.description)||"Empty"),reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:ime,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:rme},reactExports.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"}),reactExports.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:ome}))))},genSharedEmptyStyle=x_=>{const{componentCls:eme,margin:$P,marginXS:tme,marginXL:ame,fontSize:nme,lineHeight:rme}=x_;return{[eme]:{marginInline:tme,fontSize:nme,lineHeight:rme,textAlign:"center",[`${eme}-image`]:{height:x_.emptyImgHeight,marginBottom:tme,opacity:x_.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${eme}-description`]:{color:x_.colorTextDescription},[`${eme}-footer`]:{marginTop:$P},"&-normal":{marginBlock:ame,color:x_.colorTextDescription,[`${eme}-description`]:{color:x_.colorTextDescription},[`${eme}-image`]:{height:x_.emptyImgHeightMD}},"&-small":{marginBlock:tme,color:x_.colorTextDescription,[`${eme}-image`]:{height:x_.emptyImgHeightSM}}}}},useStyle$q=genStyleHooks("Empty",x_=>{const{componentCls:eme,controlHeightLG:$P,calc:tme}=x_,ame=merge$5(x_,{emptyImgCls:`${eme}-img`,emptyImgHeight:tme($P).mul(2.5).equal(),emptyImgHeightMD:$P,emptyImgHeightSM:tme($P).mul(.875).equal()});return[genSharedEmptyStyle(ame)]});var __rest$V=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const defaultEmptyImg=reactExports.createElement(Empty$1,null),simpleEmptyImg=reactExports.createElement(Simple,null),Empty=x_=>{var{className:eme,rootClassName:$P,prefixCls:tme,image:ame=defaultEmptyImg,description:nme,children:rme,imageStyle:ime,style:ome}=x_,lme=__rest$V(x_,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:sme,direction:cme,empty:dme}=reactExports.useContext(ConfigContext),ume=sme("empty",tme),[fme,pme,hme]=useStyle$q(ume),[bme]=useLocale("Empty"),mme=typeof nme<"u"?nme:bme==null?void 0:bme.description,vme=typeof mme=="string"?mme:"empty";let gme=null;return typeof ame=="string"?gme=reactExports.createElement("img",{alt:vme,src:ame}):gme=ame,fme(reactExports.createElement("div",Object.assign({className:classNames(pme,hme,ume,dme==null?void 0:dme.className,{[`${ume}-normal`]:ame===simpleEmptyImg,[`${ume}-rtl`]:cme==="rtl"},eme,$P),style:Object.assign(Object.assign({},dme==null?void 0:dme.style),ome)},lme),reactExports.createElement("div",{className:`${ume}-image`,style:ime},gme),mme&&reactExports.createElement("div",{className:`${ume}-description`},mme),rme&&reactExports.createElement("div",{className:`${ume}-footer`},rme)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const DefaultRenderEmpty=x_=>{const{componentName:eme}=x_,{getPrefixCls:$P}=reactExports.useContext(ConfigContext),tme=$P("empty");switch(eme){case"Table":case"List":return jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return jsx(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,className:`${tme}-small`});case"Table.filter":return null;default:return jsx(Empty,{})}},useVariant=function(x_,eme){let $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var tme,ame;const{variant:nme,[x_]:rme}=reactExports.useContext(ConfigContext),ime=reactExports.useContext(VariantContext),ome=rme==null?void 0:rme.variant;let lme;typeof eme<"u"?lme=eme:$P===!1?lme="borderless":lme=(ame=(tme=ime??ome)!==null&&tme!==void 0?tme:nme)!==null&&ame!==void 0?ame:"outlined";const sme=Variants.includes(lme);return[lme,sme]},getBuiltInPlacements=x_=>{const $P={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:x_==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},$P),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},$P),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},$P),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},$P),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(x_,eme){return x_||getBuiltInPlacements(eme)}const genItemStyle=x_=>{const{optionHeight:eme,optionFontSize:$P,optionLineHeight:tme,optionPadding:ame}=x_;return{position:"relative",display:"block",minHeight:eme,padding:ame,color:x_.colorText,fontWeight:"normal",fontSize:$P,lineHeight:tme,boxSizing:"border-box"}},genSingleStyle$1=x_=>{const{antCls:eme,componentCls:$P}=x_,tme=`${$P}-item`,ame=`&${eme}-slide-up-enter${eme}-slide-up-enter-active`,nme=`&${eme}-slide-up-appear${eme}-slide-up-appear-active`,rme=`&${eme}-slide-up-leave${eme}-slide-up-leave-active`,ime=`${$P}-dropdown-placement-`;return[{[`${$P}-dropdown`]:Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",top:-9999,zIndex:x_.zIndexPopup,boxSizing:"border-box",padding:x_.paddingXXS,overflow:"hidden",fontSize:x_.fontSize,fontVariant:"initial",backgroundColor:x_.colorBgElevated,borderRadius:x_.borderRadiusLG,outline:"none",boxShadow:x_.boxShadowSecondary,[`
          ${ame}${ime}bottomLeft,
          ${nme}${ime}bottomLeft
        `]:{animationName:slideUpIn},[`
          ${ame}${ime}topLeft,
          ${nme}${ime}topLeft,
          ${ame}${ime}topRight,
          ${nme}${ime}topRight
        `]:{animationName:slideDownIn},[`${rme}${ime}bottomLeft`]:{animationName:slideUpOut},[`
          ${rme}${ime}topLeft,
          ${rme}${ime}topRight
        `]:{animationName:slideDownOut},"&-hidden":{display:"none"},[tme]:Object.assign(Object.assign({},genItemStyle(x_)),{cursor:"pointer",transition:`background ${x_.motionDurationSlow} ease`,borderRadius:x_.borderRadiusSM,"&-group":{color:x_.colorTextDescription,fontSize:x_.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},textEllipsis),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${tme}-option-disabled)`]:{backgroundColor:x_.optionActiveBg},[`&-selected:not(${tme}-option-disabled)`]:{color:x_.optionSelectedColor,fontWeight:x_.optionSelectedFontWeight,backgroundColor:x_.optionSelectedBg,[`${tme}-option-state`]:{color:x_.colorPrimary},[`&:has(+ ${tme}-option-selected:not(${tme}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${tme}-option-selected:not(${tme}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${tme}-option-selected`]:{backgroundColor:x_.colorBgContainerDisabled},color:x_.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:x_.calc(x_.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},genItemStyle(x_)),{color:x_.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},initSlideMotion(x_,"slide-up"),initSlideMotion(x_,"slide-down"),initMoveMotion(x_,"move-up"),initMoveMotion(x_,"move-down")]},getMultipleSelectorUnit=x_=>{const{multipleSelectItemHeight:eme,paddingXXS:$P,lineWidth:tme,INTERNAL_FIXED_ITEM_MARGIN:ame}=x_,nme=x_.max(x_.calc($P).sub(tme).equal(),0),rme=x_.max(x_.calc(nme).sub(ame).equal(),0);return{basePadding:nme,containerPadding:rme,itemHeight:unit$1(eme),itemLineHeight:unit$1(x_.calc(eme).sub(x_.calc(x_.lineWidth).mul(2)).equal())}},getSelectItemStyle=x_=>{const{multipleSelectItemHeight:eme,selectHeight:$P,lineWidth:tme}=x_;return x_.calc($P).sub(eme).div(2).sub(tme).equal()},genOverflowStyle=x_=>{const{componentCls:eme,iconCls:$P,borderRadiusSM:tme,motionDurationSlow:ame,paddingXS:nme,multipleItemColorDisabled:rme,multipleItemBorderColorDisabled:ime,colorIcon:ome,colorIconHover:lme,INTERNAL_FIXED_ITEM_MARGIN:sme}=x_;return{[`${eme}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${eme}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:sme,borderRadius:tme,cursor:"default",transition:`font-size ${ame}, line-height ${ame}, height ${ame}`,marginInlineEnd:x_.calc(sme).mul(2).equal(),paddingInlineStart:nme,paddingInlineEnd:x_.calc(nme).div(2).equal(),[`${eme}-disabled&`]:{color:rme,borderColor:ime,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:x_.calc(nme).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},resetIcon()),{display:"inline-flex",alignItems:"center",color:ome,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${$P}`]:{verticalAlign:"-0.2em"},"&:hover":{color:lme}})}}}},genSelectionStyle=(x_,eme)=>{const{componentCls:$P,INTERNAL_FIXED_ITEM_MARGIN:tme}=x_,ame=`${$P}-selection-overflow`,nme=x_.multipleSelectItemHeight,rme=getSelectItemStyle(x_),ime=eme?`${$P}-${eme}`:"",ome=getMultipleSelectorUnit(x_);return{[`${$P}-multiple${ime}`]:Object.assign(Object.assign({},genOverflowStyle(x_)),{[`${$P}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ome.basePadding,paddingBlock:ome.containerPadding,borderRadius:x_.borderRadius,[`${$P}-disabled&`]:{background:x_.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${unit$1(tme)} 0`,lineHeight:unit$1(nme),visibility:"hidden",content:'"\\a0"'}},[`${$P}-selection-item`]:{height:ome.itemHeight,lineHeight:unit$1(ome.itemLineHeight)},[`${$P}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:unit$1(nme),marginBlock:tme}},[`${$P}-prefix`]:{marginInlineStart:x_.calc(x_.inputPaddingHorizontalBase).sub(ome.basePadding).equal()},[`${ame}-item + ${ame}-item,
        ${$P}-prefix + ${$P}-selection-wrap
      `]:{[`${$P}-selection-search`]:{marginInlineStart:0},[`${$P}-selection-placeholder`]:{insetInlineStart:0}},[`${ame}-item-suffix`]:{minHeight:ome.itemHeight,marginBlock:tme},[`${$P}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:x_.calc(x_.inputPaddingHorizontalBase).sub(rme).equal(),"\n          &-input,\n          &-mirror\n        ":{height:nme,fontFamily:x_.fontFamily,lineHeight:unit$1(nme),transition:`all ${x_.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${$P}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:x_.calc(x_.inputPaddingHorizontalBase).sub(ome.basePadding).equal(),insetInlineEnd:x_.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${x_.motionDurationSlow}`}})}};function genSizeStyle$3(x_,eme){const{componentCls:$P}=x_,tme=eme?`${$P}-${eme}`:"",ame={[`${$P}-multiple${tme}`]:{fontSize:x_.fontSize,[`${$P}-selector`]:{[`${$P}-show-search&`]:{cursor:"text"}},[`
        &${$P}-show-arrow ${$P}-selector,
        &${$P}-allow-clear ${$P}-selector
      `]:{paddingInlineEnd:x_.calc(x_.fontSizeIcon).add(x_.controlPaddingHorizontal).equal()}}};return[genSelectionStyle(x_,eme),ame]}const genMultipleStyle=x_=>{const{componentCls:eme}=x_,$P=merge$5(x_,{selectHeight:x_.controlHeightSM,multipleSelectItemHeight:x_.multipleItemHeightSM,borderRadius:x_.borderRadiusSM,borderRadiusSM:x_.borderRadiusXS}),tme=merge$5(x_,{fontSize:x_.fontSizeLG,selectHeight:x_.controlHeightLG,multipleSelectItemHeight:x_.multipleItemHeightLG,borderRadius:x_.borderRadiusLG,borderRadiusSM:x_.borderRadius});return[genSizeStyle$3(x_),genSizeStyle$3($P,"sm"),{[`${eme}-multiple${eme}-sm`]:{[`${eme}-selection-placeholder`]:{insetInline:x_.calc(x_.controlPaddingHorizontalSM).sub(x_.lineWidth).equal()},[`${eme}-selection-search`]:{marginInlineStart:2}}},genSizeStyle$3(tme,"lg")]};function genSizeStyle$2(x_,eme){const{componentCls:$P,inputPaddingHorizontalBase:tme,borderRadius:ame}=x_,nme=x_.calc(x_.controlHeight).sub(x_.calc(x_.lineWidth).mul(2)).equal(),rme=eme?`${$P}-${eme}`:"";return{[`${$P}-single${rme}`]:{fontSize:x_.fontSize,height:x_.controlHeight,[`${$P}-selector`]:Object.assign(Object.assign({},resetComponent(x_,!0)),{display:"flex",borderRadius:ame,flex:"1 1 auto",[`${$P}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${$P}-selection-item,
          ${$P}-selection-placeholder
        `]:{display:"block",padding:0,lineHeight:unit$1(nme),transition:`all ${x_.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${$P}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${$P}-selection-item:empty:after`,`${$P}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${$P}-show-arrow ${$P}-selection-item,
        &${$P}-show-arrow ${$P}-selection-search,
        &${$P}-show-arrow ${$P}-selection-placeholder
      `]:{paddingInlineEnd:x_.showArrowPaddingInlineEnd},[`&${$P}-open ${$P}-selection-item`]:{color:x_.colorTextPlaceholder},[`&:not(${$P}-customize-input)`]:{[`${$P}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${unit$1(tme)}`,[`${$P}-selection-search-input`]:{height:nme},"&:after":{lineHeight:unit$1(nme)}}},[`&${$P}-customize-input`]:{[`${$P}-selector`]:{"&:after":{display:"none"},[`${$P}-selection-search`]:{position:"static",width:"100%"},[`${$P}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit$1(tme)}`,"&:after":{display:"none"}}}}}}}function genSingleStyle(x_){const{componentCls:eme}=x_,$P=x_.calc(x_.controlPaddingHorizontalSM).sub(x_.lineWidth).equal();return[genSizeStyle$2(x_),genSizeStyle$2(merge$5(x_,{controlHeight:x_.controlHeightSM,borderRadius:x_.borderRadiusSM}),"sm"),{[`${eme}-single${eme}-sm`]:{[`&:not(${eme}-customize-input)`]:{[`${eme}-selector`]:{padding:`0 ${unit$1($P)}`},[`&${eme}-show-arrow ${eme}-selection-search`]:{insetInlineEnd:x_.calc($P).add(x_.calc(x_.fontSize).mul(1.5)).equal()},[`
            &${eme}-show-arrow ${eme}-selection-item,
            &${eme}-show-arrow ${eme}-selection-placeholder
          `]:{paddingInlineEnd:x_.calc(x_.fontSize).mul(1.5).equal()}}}},genSizeStyle$2(merge$5(x_,{controlHeight:x_.singleItemHeightLG,fontSize:x_.fontSizeLG,borderRadius:x_.borderRadiusLG}),"lg")]}const prepareComponentToken$k=x_=>{const{fontSize:eme,lineHeight:$P,lineWidth:tme,controlHeight:ame,controlHeightSM:nme,controlHeightLG:rme,paddingXXS:ime,controlPaddingHorizontal:ome,zIndexPopupBase:lme,colorText:sme,fontWeightStrong:cme,controlItemBgActive:dme,controlItemBgHover:ume,colorBgContainer:fme,colorFillSecondary:pme,colorBgContainerDisabled:hme,colorTextDisabled:bme,colorPrimaryHover:mme,colorPrimary:vme,controlOutline:gme}=x_,yme=ime*2,_me=tme*2,$me=Math.min(ame-yme,ame-_me),Cme=Math.min(nme-yme,nme-_me),Sme=Math.min(rme-yme,rme-_me);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ime/2),zIndexPopup:lme+50,optionSelectedColor:sme,optionSelectedFontWeight:cme,optionSelectedBg:dme,optionActiveBg:ume,optionPadding:`${(ame-eme*$P)/2}px ${ome}px`,optionFontSize:eme,optionLineHeight:$P,optionHeight:ame,selectorBg:fme,clearBg:fme,singleItemHeightLG:rme,multipleItemBg:pme,multipleItemBorderColor:"transparent",multipleItemHeight:$me,multipleItemHeightSM:Cme,multipleItemHeightLG:Sme,multipleSelectorBgDisabled:hme,multipleItemColorDisabled:bme,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(x_.fontSize*1.25),hoverBorderColor:mme,activeBorderColor:vme,activeOutlineColor:gme,selectAffixPadding:ime}},genBaseOutlinedStyle$1=(x_,eme)=>{const{componentCls:$P,antCls:tme,controlOutlineWidth:ame}=x_;return{[`&:not(${$P}-customize-input) ${$P}-selector`]:{border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${eme.borderColor}`,background:x_.selectorBg},[`&:not(${$P}-disabled):not(${$P}-customize-input):not(${tme}-pagination-size-changer)`]:{[`&:hover ${$P}-selector`]:{borderColor:eme.hoverBorderHover},[`${$P}-focused& ${$P}-selector`]:{borderColor:eme.activeBorderColor,boxShadow:`0 0 0 ${unit$1(ame)} ${eme.activeOutlineColor}`,outline:0},[`${$P}-prefix`]:{color:eme.color}}}},genOutlinedStatusStyle$1=(x_,eme)=>({[`&${x_.componentCls}-status-${eme.status}`]:Object.assign({},genBaseOutlinedStyle$1(x_,eme))}),genOutlinedStyle$1=x_=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(x_,{borderColor:x_.colorBorder,hoverBorderHover:x_.hoverBorderColor,activeBorderColor:x_.activeBorderColor,activeOutlineColor:x_.activeOutlineColor,color:x_.colorText})),genOutlinedStatusStyle$1(x_,{status:"error",borderColor:x_.colorError,hoverBorderHover:x_.colorErrorHover,activeBorderColor:x_.colorError,activeOutlineColor:x_.colorErrorOutline,color:x_.colorError})),genOutlinedStatusStyle$1(x_,{status:"warning",borderColor:x_.colorWarning,hoverBorderHover:x_.colorWarningHover,activeBorderColor:x_.colorWarning,activeOutlineColor:x_.colorWarningOutline,color:x_.colorWarning})),{[`&${x_.componentCls}-disabled`]:{[`&:not(${x_.componentCls}-customize-input) ${x_.componentCls}-selector`]:{background:x_.colorBgContainerDisabled,color:x_.colorTextDisabled}},[`&${x_.componentCls}-multiple ${x_.componentCls}-selection-item`]:{background:x_.multipleItemBg,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(x_,eme)=>{const{componentCls:$P,antCls:tme}=x_;return{[`&:not(${$P}-customize-input) ${$P}-selector`]:{background:eme.bg,border:`${unit$1(x_.lineWidth)} ${x_.lineType} transparent`,color:eme.color},[`&:not(${$P}-disabled):not(${$P}-customize-input):not(${tme}-pagination-size-changer)`]:{[`&:hover ${$P}-selector`]:{background:eme.hoverBg},[`${$P}-focused& ${$P}-selector`]:{background:x_.selectorBg,borderColor:eme.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(x_,eme)=>({[`&${x_.componentCls}-status-${eme.status}`]:Object.assign({},genBaseFilledStyle$1(x_,eme))}),genFilledStyle$1=x_=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(x_,{bg:x_.colorFillTertiary,hoverBg:x_.colorFillSecondary,activeBorderColor:x_.activeBorderColor,color:x_.colorText})),genFilledStatusStyle$1(x_,{status:"error",bg:x_.colorErrorBg,hoverBg:x_.colorErrorBgHover,activeBorderColor:x_.colorError,color:x_.colorError})),genFilledStatusStyle$1(x_,{status:"warning",bg:x_.colorWarningBg,hoverBg:x_.colorWarningBgHover,activeBorderColor:x_.colorWarning,color:x_.colorWarning})),{[`&${x_.componentCls}-disabled`]:{[`&:not(${x_.componentCls}-customize-input) ${x_.componentCls}-selector`]:{borderColor:x_.colorBorder,background:x_.colorBgContainerDisabled,color:x_.colorTextDisabled}},[`&${x_.componentCls}-multiple ${x_.componentCls}-selection-item`]:{background:x_.colorBgContainer,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`}})}),genBorderlessStyle$1=x_=>({"&-borderless":{[`${x_.componentCls}-selector`]:{background:"transparent",border:`${unit$1(x_.lineWidth)} ${x_.lineType} transparent`},[`&${x_.componentCls}-disabled`]:{[`&:not(${x_.componentCls}-customize-input) ${x_.componentCls}-selector`]:{color:x_.colorTextDisabled}},[`&${x_.componentCls}-multiple ${x_.componentCls}-selection-item`]:{background:x_.multipleItemBg,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.multipleItemBorderColor}`},[`&${x_.componentCls}-status-error`]:{[`${x_.componentCls}-prefix, ${x_.componentCls}-selection-item`]:{color:x_.colorError}},[`&${x_.componentCls}-status-warning`]:{[`${x_.componentCls}-prefix, ${x_.componentCls}-selection-item`]:{color:x_.colorWarning}}}}),genVariantsStyle=x_=>({[x_.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(x_)),genFilledStyle$1(x_)),genBorderlessStyle$1(x_))}),genSelectorStyle=x_=>{const{componentCls:eme}=x_;return{position:"relative",transition:`all ${x_.motionDurationMid} ${x_.motionEaseInOut}`,input:{cursor:"pointer"},[`${eme}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${eme}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=x_=>{const{componentCls:eme}=x_;return{[`${eme}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},genBaseStyle$3=x_=>{const{antCls:eme,componentCls:$P,inputPaddingHorizontalBase:tme,iconCls:ame}=x_;return{[$P]:Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${$P}-customize-input) ${$P}-selector`]:Object.assign(Object.assign({},genSelectorStyle(x_)),getSearchInputWithoutBorderStyle(x_)),[`${$P}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${eme}-typography`]:{display:"inline"}}),[`${$P}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:x_.colorTextPlaceholder,pointerEvents:"none"}),[`${$P}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tme,height:x_.fontSizeIcon,marginTop:x_.calc(x_.fontSizeIcon).mul(-1).div(2).equal(),color:x_.colorTextQuaternary,fontSize:x_.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${x_.motionDurationSlow} ease`,[ame]:{verticalAlign:"top",transition:`transform ${x_.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$P}-suffix)`]:{pointerEvents:"auto"}},[`${$P}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$P}-selection-wrap`]:{display:"flex",width:"100%",position:"relative","&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${$P}-prefix`]:{flex:"none",marginInlineEnd:x_.selectAffixPadding},[`${$P}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tme,zIndex:1,display:"inline-block",width:x_.fontSizeIcon,height:x_.fontSizeIcon,marginTop:x_.calc(x_.fontSizeIcon).mul(-1).div(2).equal(),color:x_.colorTextQuaternary,fontSize:x_.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${x_.motionDurationMid} ease, opacity ${x_.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:x_.colorTextTertiary}},[`&:hover ${$P}-clear`]:{opacity:1,background:x_.colorBgBase,borderRadius:"50%"}}),[`${$P}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${$P}-has-feedback`]:{[`${$P}-clear`]:{insetInlineEnd:x_.calc(tme).add(x_.fontSize).add(x_.paddingXS).equal()}}}}}},genSelectStyle=x_=>{const{componentCls:eme}=x_;return[{[eme]:{[`&${eme}-in-form-item`]:{width:"100%"}}},genBaseStyle$3(x_),genSingleStyle(x_),genMultipleStyle(x_),genSingleStyle$1(x_),{[`${eme}-rtl`]:{direction:"rtl"}},genCompactItemStyle(x_,{borderElCls:`${eme}-selector`,focusElCls:`${eme}-focused`})]},useSelectStyle=genStyleHooks("Select",(x_,eme)=>{let{rootPrefixCls:$P}=eme;const tme=merge$5(x_,{rootPrefixCls:$P,inputPaddingHorizontalBase:x_.calc(x_.paddingSM).sub(1).equal(),multipleSelectItemHeight:x_.multipleItemHeight,selectHeight:x_.controlHeight});return[genSelectStyle(tme),genVariantsStyle(tme)]},prepareComponentToken$k,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$1={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"},CheckOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:CheckOutlined$1}))},RefIcon$h=reactExports.forwardRef(CheckOutlined),DownOutlined$1={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"},DownOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:DownOutlined$1}))},RefIcon$g=reactExports.forwardRef(DownOutlined),SearchOutlined$1={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"},SearchOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:SearchOutlined$1}))},RefIcon$f=reactExports.forwardRef(SearchOutlined);function useIcons(x_){let{suffixIcon:eme,clearIcon:$P,menuItemSelectedIcon:tme,removeIcon:ame,loading:nme,multiple:rme,hasFeedback:ime,prefixCls:ome,showSuffixIcon:lme,feedbackIcon:sme,showArrow:cme,componentName:dme}=x_;const ume=$P??reactExports.createElement(RefIcon$n,null),fme=mme=>eme===null&&!ime&&!cme?null:reactExports.createElement(reactExports.Fragment,null,lme!==!1&&mme,ime&&sme);let pme=null;if(eme!==void 0)pme=fme(eme);else if(nme)pme=fme(reactExports.createElement(RefIcon$j,{spin:!0}));else{const mme=`${ome}-suffix`;pme=vme=>{let{open:gme,showSearch:yme}=vme;return fme(gme&&yme?reactExports.createElement(RefIcon$f,{className:mme}):reactExports.createElement(RefIcon$g,{className:mme}))}}let hme=null;tme!==void 0?hme=tme:rme?hme=reactExports.createElement(RefIcon$h,null):hme=null;let bme=null;return ame!==void 0?bme=ame:bme=reactExports.createElement(RefIcon$m,null),{clearIcon:ume,suffixIcon:pme,itemIcon:hme,removeIcon:bme}}function useShowArrow(x_,eme){return eme!==void 0?eme:x_!==null}var __rest$U=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",InternalSelect=(x_,eme)=>{var $P;const{prefixCls:tme,bordered:ame,className:nme,rootClassName:rme,getPopupContainer:ime,popupClassName:ome,dropdownClassName:lme,listHeight:sme=256,placement:cme,listItemHeight:dme,size:ume,disabled:fme,notFoundContent:pme,status:hme,builtinPlacements:bme,dropdownMatchSelectWidth:mme,popupMatchSelectWidth:vme,direction:gme,style:yme,allowClear:_me,variant:$me,dropdownStyle:Cme,transitionName:Sme,tagRender:Eme,maxCount:xme,prefix:Tme}=x_,Ome=__rest$U(x_,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Rme,getPrefixCls:Nme,renderEmpty:Ime,direction:Pme,virtual:Mme,popupMatchSelectWidth:kme,popupOverflow:Bme,select:Dme}=reactExports.useContext(ConfigContext),[,jme]=useToken$1(),Vme=dme??(jme==null?void 0:jme.controlHeight),Wme=Nme("select",tme),Lme=Nme(),zme=gme??Pme,{compactSize:Ume,compactItemClassnames:Gme}=useCompactItemContext(Wme,zme),[Jme,Yme]=useVariant("select",$me,ame),Qme=useCSSVarCls(Wme),[Xme,Kme,Zme]=useSelectStyle(Wme,Qme),nbe=reactExports.useMemo(()=>{const{mode:P0e}=x_;if(P0e!=="combobox")return P0e===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":P0e},[x_.mode]),lbe=nbe==="multiple"||nbe==="tags",ibe=useShowArrow(x_.suffixIcon,x_.showArrow),abe=($P=vme??mme)!==null&&$P!==void 0?$P:kme,{status:obe,hasFeedback:hbe,isFormItemInput:ube,feedbackIcon:mbe}=reactExports.useContext(FormItemInputContext),pbe=getMergedStatus(obe,hme);let _be;pme!==void 0?_be=pme:nbe==="combobox"?_be=null:_be=(Ime==null?void 0:Ime("Select"))||reactExports.createElement(DefaultRenderEmpty,{componentName:"Select"});const{suffixIcon:Sbe,itemIcon:vbe,removeIcon:kbe,clearIcon:Rbe}=useIcons(Object.assign(Object.assign({},Ome),{multiple:lbe,hasFeedback:hbe,feedbackIcon:mbe,showSuffixIcon:ibe,prefixCls:Wme,componentName:"Select"})),Pbe=_me===!0?{clearIcon:Rbe}:_me,Mbe=omit$2(Ome,["suffixIcon","itemIcon"]),Kbe=classNames(ome||lme,{[`${Wme}-dropdown-${zme}`]:zme==="rtl"},rme,Zme,Qme,Kme),Qbe=useSize(P0e=>{var e0e;return(e0e=ume??Ume)!==null&&e0e!==void 0?e0e:P0e}),Gbe=reactExports.useContext(DisabledContext),Hbe=fme??Gbe,d0e=classNames({[`${Wme}-lg`]:Qbe==="large",[`${Wme}-sm`]:Qbe==="small",[`${Wme}-rtl`]:zme==="rtl",[`${Wme}-${Jme}`]:Yme,[`${Wme}-in-form-item`]:ube},getStatusClassNames(Wme,pbe,hbe),Gme,Dme==null?void 0:Dme.className,nme,rme,Zme,Qme,Kme),p0e=reactExports.useMemo(()=>cme!==void 0?cme:zme==="rtl"?"bottomRight":"bottomLeft",[cme,zme]),[S0e]=useZIndex("SelectLike",Cme==null?void 0:Cme.zIndex);return Xme(reactExports.createElement(TypedSelect,Object.assign({ref:eme,virtual:Mme,showSearch:Dme==null?void 0:Dme.showSearch},Mbe,{style:Object.assign(Object.assign({},Dme==null?void 0:Dme.style),yme),dropdownMatchSelectWidth:abe,transitionName:getTransitionName(Lme,"slide-up",Sme),builtinPlacements:mergedBuiltinPlacements(bme,Bme),listHeight:sme,listItemHeight:Vme,mode:nbe,prefixCls:Wme,placement:p0e,direction:zme,prefix:Tme,suffixIcon:Sbe,menuItemSelectedIcon:vbe,removeIcon:kbe,allowClear:Pbe,notFoundContent:_be,className:d0e,getPopupContainer:ime||Rme,dropdownClassName:Kbe,disabled:Hbe,dropdownStyle:Object.assign(Object.assign({},Cme),{zIndex:S0e}),maxCount:lbe?xme:void 0,tagRender:lbe?Eme:void 0})))},Select$1=reactExports.forwardRef(InternalSelect),PurePanel$6=genPurePanel(Select$1);Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select$1.Option=Option;Select$1.OptGroup=OptGroup;Select$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$6;const responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=x_=>({xs:`(max-width: ${x_.screenXSMax}px)`,sm:`(min-width: ${x_.screenSM}px)`,md:`(min-width: ${x_.screenMD}px)`,lg:`(min-width: ${x_.screenLG}px)`,xl:`(min-width: ${x_.screenXL}px)`,xxl:`(min-width: ${x_.screenXXL}px)`}),validateBreakpoints=x_=>{const eme=x_,$P=[].concat(responsiveArray).reverse();return $P.forEach((tme,ame)=>{const nme=tme.toUpperCase(),rme=`screen${nme}Min`,ime=`screen${nme}`;if(!(eme[rme]<=eme[ime]))throw new Error(`${rme}<=${ime} fails : !(${eme[rme]}<=${eme[ime]})`);if(ame<$P.length-1){const ome=`screen${nme}Max`;if(!(eme[ime]<=eme[ome]))throw new Error(`${ime}<=${ome} fails : !(${eme[ime]}<=${eme[ome]})`);const sme=`screen${$P[ame+1].toUpperCase()}Min`;if(!(eme[ome]<=eme[sme]))throw new Error(`${ome}<=${sme} fails : !(${eme[ome]}<=${eme[sme]})`)}}),x_};function useResponsiveObserver(){const[,x_]=useToken$1(),eme=getResponsiveMap(validateBreakpoints(x_));return React__default.useMemo(()=>{const $P=new Map;let tme=-1,ame={};return{matchHandlers:{},dispatch(nme){return ame=nme,$P.forEach(rme=>rme(ame)),$P.size>=1},subscribe(nme){return $P.size||this.register(),tme+=1,$P.set(tme,nme),nme(ame),tme},unsubscribe(nme){$P.delete(nme),$P.size||this.unregister()},unregister(){Object.keys(eme).forEach(nme=>{const rme=eme[nme],ime=this.matchHandlers[rme];ime==null||ime.mql.removeListener(ime==null?void 0:ime.listener)}),$P.clear()},register(){Object.keys(eme).forEach(nme=>{const rme=eme[nme],ime=lme=>{let{matches:sme}=lme;this.dispatch(Object.assign(Object.assign({},ame),{[nme]:sme}))},ome=window.matchMedia(rme);ome.addListener(ime),this.matchHandlers[rme]={mql:ome,listener:ime},ime(ome)})},responsiveMap:eme}},[x_])}const getRenderPropValue=x_=>x_?typeof x_=="function"?x_():x_:null;function Popup(x_){var eme=x_.children,$P=x_.prefixCls,tme=x_.id,ame=x_.overlayInnerStyle,nme=x_.className,rme=x_.style;return reactExports.createElement("div",{className:classNames("".concat($P,"-content"),nme),style:rme},reactExports.createElement("div",{className:"".concat($P,"-inner"),id:tme,role:"tooltip",style:ame},typeof eme=="function"?eme():eme))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset$1=[0,0],placements$2={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset:targetOffset$1},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset:targetOffset$1},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset:targetOffset$1},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset:targetOffset$1}},_excluded$w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$3=function(eme,$P){var tme=eme.overlayClassName,ame=eme.trigger,nme=ame===void 0?["hover"]:ame,rme=eme.mouseEnterDelay,ime=rme===void 0?0:rme,ome=eme.mouseLeaveDelay,lme=ome===void 0?.1:ome,sme=eme.overlayStyle,cme=eme.prefixCls,dme=cme===void 0?"rc-tooltip":cme,ume=eme.children,fme=eme.onVisibleChange,pme=eme.afterVisibleChange,hme=eme.transitionName,bme=eme.animation,mme=eme.motion,vme=eme.placement,gme=vme===void 0?"right":vme,yme=eme.align,_me=yme===void 0?{}:yme,$me=eme.destroyTooltipOnHide,Cme=$me===void 0?!1:$me,Sme=eme.defaultVisible,Eme=eme.getTooltipContainer,xme=eme.overlayInnerStyle;eme.arrowContent;var Tme=eme.overlay,Ome=eme.id,Rme=eme.showArrow,Nme=Rme===void 0?!0:Rme,Ime=_objectWithoutProperties$6(eme,_excluded$w),Pme=reactExports.useRef(null);reactExports.useImperativeHandle($P,function(){return Pme.current});var Mme=_objectSpread2$4({},Ime);"visible"in eme&&(Mme.popupVisible=eme.visible);var kme=function(){return reactExports.createElement(Popup,{key:"content",prefixCls:dme,id:Ome,overlayInnerStyle:xme},Tme)};return reactExports.createElement(Trigger,_extends$4C({popupClassName:tme,prefixCls:dme,popup:kme,action:nme,builtinPlacements:placements$2,popupPlacement:gme,ref:Pme,popupAlign:_me,getPopupContainer:Eme,onPopupVisibleChange:fme,afterPopupVisibleChange:pme,popupTransitionName:hme,popupAnimation:bme,popupMotion:mme,defaultPopupVisible:Sme,autoDestroy:Cme,mouseLeaveDelay:lme,popupStyle:sme,mouseEnterDelay:ime,arrow:Nme},Mme),ume)};const Tooltip$4=reactExports.forwardRef(Tooltip$3);function getArrowToken(x_){const{sizePopupArrow:eme,borderRadiusXS:$P,borderRadiusOuter:tme}=x_,ame=eme/2,nme=0,rme=ame,ime=tme*1/Math.sqrt(2),ome=ame-tme*(1-1/Math.sqrt(2)),lme=ame-$P*(1/Math.sqrt(2)),sme=tme*(Math.sqrt(2)-1)+$P*(1/Math.sqrt(2)),cme=2*ame-lme,dme=sme,ume=2*ame-ime,fme=ome,pme=2*ame-nme,hme=rme,bme=ame*Math.sqrt(2)+tme*(Math.sqrt(2)-2),mme=tme*(Math.sqrt(2)-1),vme=`polygon(${mme}px 100%, 50% ${mme}px, ${2*ame-mme}px 100%, ${mme}px 100%)`,gme=`path('M ${nme} ${rme} A ${tme} ${tme} 0 0 0 ${ime} ${ome} L ${lme} ${sme} A ${$P} ${$P} 0 0 1 ${cme} ${dme} L ${ume} ${fme} A ${tme} ${tme} 0 0 0 ${pme} ${hme} Z')`;return{arrowShadowWidth:bme,arrowPath:gme,arrowPolygon:vme}}const genRoundedArrow=(x_,eme,$P)=>{const{sizePopupArrow:tme,arrowPolygon:ame,arrowPath:nme,arrowShadowWidth:rme,borderRadiusXS:ime,calc:ome}=x_;return{pointerEvents:"none",width:tme,height:tme,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:tme,height:ome(tme).div(2).equal(),background:eme,clipPath:{_multi_value_:!0,value:[ame,nme]},content:'""'},"&::after":{content:'""',position:"absolute",width:rme,height:rme,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit$1(ime)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:$P,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(x_){const{contentRadius:eme,limitVerticalRadius:$P}=x_,tme=eme>12?eme+2:12;return{arrowOffsetHorizontal:tme,arrowOffsetVertical:$P?MAX_VERTICAL_CONTENT_RADIUS:tme}}function isInject(x_,eme){return x_?eme:{}}function getArrowStyle(x_,eme,$P){const{componentCls:tme,boxShadowPopoverArrow:ame,arrowOffsetVertical:nme,arrowOffsetHorizontal:rme}=x_,{arrowDistance:ime=0,arrowPlacement:ome={left:!0,right:!0,top:!0,bottom:!0}}=$P||{};return{[tme]:Object.assign(Object.assign(Object.assign(Object.assign({[`${tme}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(x_,eme,ame)),{"&:before":{background:eme}})]},isInject(!!ome.top,{[[`&-placement-top > ${tme}-arrow`,`&-placement-topLeft > ${tme}-arrow`,`&-placement-topRight > ${tme}-arrow`].join(",")]:{bottom:ime,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${tme}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":rme,[`> ${tme}-arrow`]:{left:{_skip_check_:!0,value:rme}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit$1(rme)})`,[`> ${tme}-arrow`]:{right:{_skip_check_:!0,value:rme}}}})),isInject(!!ome.bottom,{[[`&-placement-bottom > ${tme}-arrow`,`&-placement-bottomLeft > ${tme}-arrow`,`&-placement-bottomRight > ${tme}-arrow`].join(",")]:{top:ime,transform:"translateY(-100%)"},[`&-placement-bottom > ${tme}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":rme,[`> ${tme}-arrow`]:{left:{_skip_check_:!0,value:rme}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit$1(rme)})`,[`> ${tme}-arrow`]:{right:{_skip_check_:!0,value:rme}}}})),isInject(!!ome.left,{[[`&-placement-left > ${tme}-arrow`,`&-placement-leftTop > ${tme}-arrow`,`&-placement-leftBottom > ${tme}-arrow`].join(",")]:{right:{_skip_check_:!0,value:ime},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${tme}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${tme}-arrow`]:{top:nme},[`&-placement-leftBottom > ${tme}-arrow`]:{bottom:nme}})),isInject(!!ome.right,{[[`&-placement-right > ${tme}-arrow`,`&-placement-rightTop > ${tme}-arrow`,`&-placement-rightBottom > ${tme}-arrow`].join(",")]:{left:{_skip_check_:!0,value:ime},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${tme}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${tme}-arrow`]:{top:nme},[`&-placement-rightBottom > ${tme}-arrow`]:{bottom:nme}}))}}function getOverflowOptions(x_,eme,$P,tme){if(tme===!1)return{adjustX:!1,adjustY:!1};const ame=tme&&typeof tme=="object"?tme:{},nme={};switch(x_){case"top":case"bottom":nme.shiftX=eme.arrowOffsetHorizontal*2+$P,nme.shiftY=!0,nme.adjustY=!0;break;case"left":case"right":nme.shiftY=eme.arrowOffsetVertical*2+$P,nme.shiftX=!0,nme.adjustX=!0;break}const rme=Object.assign(Object.assign({},nme),ame);return rme.shiftX||(rme.adjustX=!0),rme.shiftY||(rme.adjustY=!0),rme}const PlacementAlignMap={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"]}},ArrowCenterPlacementAlignMap={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"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(x_){const{arrowWidth:eme,autoAdjustOverflow:$P,arrowPointAtCenter:tme,offset:ame,borderRadius:nme,visibleFirst:rme}=x_,ime=eme/2,ome={};return Object.keys(PlacementAlignMap).forEach(lme=>{const sme=tme&&ArrowCenterPlacementAlignMap[lme]||PlacementAlignMap[lme],cme=Object.assign(Object.assign({},sme),{offset:[0,0],dynamicInset:!0});switch(ome[lme]=cme,DisableAutoArrowList.has(lme)&&(cme.autoArrow=!1),lme){case"top":case"topLeft":case"topRight":cme.offset[1]=-ime-ame;break;case"bottom":case"bottomLeft":case"bottomRight":cme.offset[1]=ime+ame;break;case"left":case"leftTop":case"leftBottom":cme.offset[0]=-ime-ame;break;case"right":case"rightTop":case"rightBottom":cme.offset[0]=ime+ame;break}const dme=getArrowOffsetToken({contentRadius:nme,limitVerticalRadius:!0});if(tme)switch(lme){case"topLeft":case"bottomLeft":cme.offset[0]=-dme.arrowOffsetHorizontal-ime;break;case"topRight":case"bottomRight":cme.offset[0]=dme.arrowOffsetHorizontal+ime;break;case"leftTop":case"rightTop":cme.offset[1]=-dme.arrowOffsetHorizontal*2+ime;break;case"leftBottom":case"rightBottom":cme.offset[1]=dme.arrowOffsetHorizontal*2-ime;break}cme.overflow=getOverflowOptions(lme,dme,eme,$P),rme&&(cme.htmlRegion="visibleFirst")}),ome}const genTooltipStyle=x_=>{const{componentCls:eme,tooltipMaxWidth:$P,tooltipColor:tme,tooltipBg:ame,tooltipBorderRadius:nme,zIndexPopup:rme,controlHeight:ime,boxShadowSecondary:ome,paddingSM:lme,paddingXS:sme}=x_;return[{[eme]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",zIndex:rme,display:"block",width:"max-content",maxWidth:$P,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":ame,[`${eme}-inner`]:{minWidth:"1em",minHeight:ime,padding:`${unit$1(x_.calc(lme).div(2).equal())} ${unit$1(sme)}`,color:tme,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ame,borderRadius:nme,boxShadow:ome,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${eme}-inner`]:{borderRadius:x_.min(nme,MAX_VERTICAL_CONTENT_RADIUS)}},[`${eme}-content`]:{position:"relative"}}),genPresetColor$1(x_,(cme,dme)=>{let{darkColor:ume}=dme;return{[`&${eme}-${cme}`]:{[`${eme}-inner`]:{backgroundColor:ume},[`${eme}-arrow`]:{"--antd-arrow-background-color":ume}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(x_,"var(--antd-arrow-background-color)"),{[`${eme}-pure`]:{position:"relative",maxWidth:"none",margin:x_.sizePopupArrow}}]},prepareComponentToken$j=x_=>Object.assign(Object.assign({zIndexPopup:x_.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:x_.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge$5(x_,{borderRadiusOuter:Math.min(x_.borderRadiusOuter,4)}))),useStyle$p=function(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",tme=>{const{borderRadius:ame,colorTextLightSolid:nme,colorBgSpotlight:rme}=tme,ime=merge$5(tme,{tooltipMaxWidth:250,tooltipColor:nme,tooltipBorderRadius:ame,tooltipBg:rme});return[genTooltipStyle(ime),initZoomMotion(tme,"zoom-big-fast")]},prepareComponentToken$j,{resetStyle:!1,injectStyle:eme})(x_)},inverseColors=PresetColors$1.map(x_=>`${x_}-inverse`);function isPresetColor(x_){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray$1(inverseColors),_toConsumableArray$1(PresetColors$1)).includes(x_):PresetColors$1.includes(x_)}function parseColor$1(x_,eme){const $P=isPresetColor(eme),tme=classNames({[`${x_}-${eme}`]:eme&&$P}),ame={},nme={};return eme&&!$P&&(ame.background=eme,nme["--antd-arrow-background-color"]=eme),{className:tme,overlayStyle:ame,arrowStyle:nme}}const PurePanel$5=x_=>{const{prefixCls:eme,className:$P,placement:tme="top",title:ame,color:nme,overlayInnerStyle:rme}=x_,{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("tooltip",eme),[lme,sme,cme]=useStyle$p(ome),dme=parseColor$1(ome,nme),ume=dme.arrowStyle,fme=Object.assign(Object.assign({},rme),dme.overlayStyle),pme=classNames(sme,cme,ome,`${ome}-pure`,`${ome}-placement-${tme}`,$P,dme.className);return lme(reactExports.createElement("div",{className:pme,style:ume},reactExports.createElement("div",{className:`${ome}-arrow`}),reactExports.createElement(Popup,Object.assign({},x_,{className:sme,prefixCls:ome,overlayInnerStyle:fme}),ame)))};var __rest$T=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalTooltip=reactExports.forwardRef((x_,eme)=>{var $P,tme;const{prefixCls:ame,openClassName:nme,getTooltipContainer:rme,overlayClassName:ime,color:ome,overlayInnerStyle:lme,children:sme,afterOpenChange:cme,afterVisibleChange:dme,destroyTooltipOnHide:ume,arrow:fme=!0,title:pme,overlay:hme,builtinPlacements:bme,arrowPointAtCenter:mme=!1,autoAdjustOverflow:vme=!0}=x_,gme=!!fme,[,yme]=useToken$1(),{getPopupContainer:_me,getPrefixCls:$me,direction:Cme}=reactExports.useContext(ConfigContext),Sme=devUseWarning(),Eme=reactExports.useRef(null),xme=()=>{var pbe;(pbe=Eme.current)===null||pbe===void 0||pbe.forceAlign()};reactExports.useImperativeHandle(eme,()=>{var pbe;return{forceAlign:xme,forcePopupAlign:()=>{Sme.deprecated(!1,"forcePopupAlign","forceAlign"),xme()},nativeElement:(pbe=Eme.current)===null||pbe===void 0?void 0:pbe.nativeElement}});const[Tme,Ome]=useMergedState(!1,{value:($P=x_.open)!==null&&$P!==void 0?$P:x_.visible,defaultValue:(tme=x_.defaultOpen)!==null&&tme!==void 0?tme:x_.defaultVisible}),Rme=!pme&&!hme&&pme!==0,Nme=pbe=>{var _be,Sbe;Ome(Rme?!1:pbe),Rme||((_be=x_.onOpenChange)===null||_be===void 0||_be.call(x_,pbe),(Sbe=x_.onVisibleChange)===null||Sbe===void 0||Sbe.call(x_,pbe))},Ime=reactExports.useMemo(()=>{var pbe,_be;let Sbe=mme;return typeof fme=="object"&&(Sbe=(_be=(pbe=fme.pointAtCenter)!==null&&pbe!==void 0?pbe:fme.arrowPointAtCenter)!==null&&_be!==void 0?_be:mme),bme||getPlacements({arrowPointAtCenter:Sbe,autoAdjustOverflow:vme,arrowWidth:gme?yme.sizePopupArrow:0,borderRadius:yme.borderRadius,offset:yme.marginXXS,visibleFirst:!0})},[mme,fme,bme,yme]),Pme=reactExports.useMemo(()=>pme===0?pme:hme||pme||"",[hme,pme]),Mme=reactExports.createElement(ContextIsolator,{space:!0},typeof Pme=="function"?Pme():Pme),{getPopupContainer:kme,placement:Bme="top",mouseEnterDelay:Dme=.1,mouseLeaveDelay:jme=.1,overlayStyle:Vme,rootClassName:Wme}=x_,Lme=__rest$T(x_,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),zme=$me("tooltip",ame),Ume=$me(),Gme=x_["data-popover-inject"];let Jme=Tme;!("open"in x_)&&!("visible"in x_)&&Rme&&(Jme=!1);const Yme=reactExports.isValidElement(sme)&&!isFragment(sme)?sme:reactExports.createElement("span",null,sme),Qme=Yme.props,Xme=!Qme.className||typeof Qme.className=="string"?classNames(Qme.className,nme||`${zme}-open`):Qme.className,[Kme,Zme,nbe]=useStyle$p(zme,!Gme),lbe=parseColor$1(zme,ome),ibe=lbe.arrowStyle,abe=Object.assign(Object.assign({},lme),lbe.overlayStyle),obe=classNames(ime,{[`${zme}-rtl`]:Cme==="rtl"},lbe.className,Wme,Zme,nbe),[hbe,ube]=useZIndex("Tooltip",Lme.zIndex),mbe=reactExports.createElement(Tooltip$4,Object.assign({},Lme,{zIndex:hbe,showArrow:gme,placement:Bme,mouseEnterDelay:Dme,mouseLeaveDelay:jme,prefixCls:zme,overlayClassName:obe,overlayStyle:Object.assign(Object.assign({},ibe),Vme),getTooltipContainer:kme||rme||_me,ref:Eme,builtinPlacements:Ime,overlay:Mme,visible:Jme,onVisibleChange:Nme,afterVisibleChange:cme??dme,overlayInnerStyle:abe,arrowContent:reactExports.createElement("span",{className:`${zme}-arrow-content`}),motion:{motionName:getTransitionName(Ume,"zoom-big-fast",x_.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ume}),Jme?cloneElement(Yme,{className:Xme}):Yme);return Kme(reactExports.createElement(zIndexContext.Provider,{value:ube},mbe))}),Tooltip$2=InternalTooltip;Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$5;const genBaseStyle$2=x_=>{const{componentCls:eme,popoverColor:$P,titleMinWidth:tme,fontWeightStrong:ame,innerPadding:nme,boxShadowSecondary:rme,colorTextHeading:ime,borderRadiusLG:ome,zIndexPopup:lme,titleMarginBottom:sme,colorBgElevated:cme,popoverBg:dme,titleBorderBottom:ume,innerContentPadding:fme,titlePadding:pme}=x_;return[{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:lme,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":cme,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${eme}-content`]:{position:"relative"},[`${eme}-inner`]:{backgroundColor:dme,backgroundClip:"padding-box",borderRadius:ome,boxShadow:rme,padding:nme},[`${eme}-title`]:{minWidth:tme,marginBottom:sme,color:ime,fontWeight:ame,borderBottom:ume,padding:pme},[`${eme}-inner-content`]:{color:$P,padding:fme}})},getArrowStyle(x_,"var(--antd-arrow-background-color)"),{[`${eme}-pure`]:{position:"relative",maxWidth:"none",margin:x_.sizePopupArrow,display:"inline-block",[`${eme}-content`]:{display:"inline-block"}}}]},genColorStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:PresetColors$1.map($P=>{const tme=x_[`${$P}6`];return{[`&${eme}-${$P}`]:{"--antd-arrow-background-color":tme,[`${eme}-inner`]:{backgroundColor:tme},[`${eme}-arrow`]:{background:"transparent"}}}})}},prepareComponentToken$i=x_=>{const{lineWidth:eme,controlHeight:$P,fontHeight:tme,padding:ame,wireframe:nme,zIndexPopupBase:rme,borderRadiusLG:ime,marginXS:ome,lineType:lme,colorSplit:sme,paddingSM:cme}=x_,dme=$P-tme,ume=dme/2,fme=dme/2-eme,pme=ame;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:rme+30},getArrowToken(x_)),getArrowOffsetToken({contentRadius:ime,limitVerticalRadius:!0})),{innerPadding:nme?0:12,titleMarginBottom:nme?0:ome,titlePadding:nme?`${ume}px ${pme}px ${fme}px`:0,titleBorderBottom:nme?`${eme}px ${lme} ${sme}`:"none",innerContentPadding:nme?`${cme}px ${pme}px`:0})},useStyle$o=genStyleHooks("Popover",x_=>{const{colorBgElevated:eme,colorText:$P}=x_,tme=merge$5(x_,{popoverBg:eme,popoverColor:$P});return[genBaseStyle$2(tme),genColorStyle(tme),initZoomMotion(tme,"zoom-big")]},prepareComponentToken$i,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var __rest$S=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Overlay$2=x_=>{let{title:eme,content:$P,prefixCls:tme}=x_;return!eme&&!$P?null:reactExports.createElement(reactExports.Fragment,null,eme&&reactExports.createElement("div",{className:`${tme}-title`},eme),$P&&reactExports.createElement("div",{className:`${tme}-inner-content`},$P))},RawPurePanel=x_=>{const{hashId:eme,prefixCls:$P,className:tme,style:ame,placement:nme="top",title:rme,content:ime,children:ome}=x_,lme=getRenderPropValue(rme),sme=getRenderPropValue(ime),cme=classNames(eme,$P,`${$P}-pure`,`${$P}-placement-${nme}`,tme);return reactExports.createElement("div",{className:cme,style:ame},reactExports.createElement("div",{className:`${$P}-arrow`}),reactExports.createElement(Popup,Object.assign({},x_,{className:eme,prefixCls:$P}),ome||reactExports.createElement(Overlay$2,{prefixCls:$P,title:lme,content:sme})))},PurePanel$4=x_=>{const{prefixCls:eme,className:$P}=x_,tme=__rest$S(x_,["prefixCls","className"]),{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=ame("popover",eme),[rme,ime,ome]=useStyle$o(nme);return rme(reactExports.createElement(RawPurePanel,Object.assign({},tme,{prefixCls:nme,hashId:ime,className:classNames($P,ome)})))};var __rest$R=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalPopover=reactExports.forwardRef((x_,eme)=>{var $P,tme;const{prefixCls:ame,title:nme,content:rme,overlayClassName:ime,placement:ome="top",trigger:lme="hover",children:sme,mouseEnterDelay:cme=.1,mouseLeaveDelay:dme=.1,onOpenChange:ume,overlayStyle:fme={}}=x_,pme=__rest$R(x_,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:hme}=reactExports.useContext(ConfigContext),bme=hme("popover",ame),[mme,vme,gme]=useStyle$o(bme),yme=hme(),_me=classNames(ime,vme,gme),[$me,Cme]=useMergedState(!1,{value:($P=x_.open)!==null&&$P!==void 0?$P:x_.visible,defaultValue:(tme=x_.defaultOpen)!==null&&tme!==void 0?tme:x_.defaultVisible}),Sme=(Rme,Nme)=>{Cme(Rme,!0),ume==null||ume(Rme,Nme)},Eme=Rme=>{Rme.keyCode===KeyCode.ESC&&Sme(!1,Rme)},xme=Rme=>{Sme(Rme)},Tme=getRenderPropValue(nme),Ome=getRenderPropValue(rme);return mme(reactExports.createElement(Tooltip$2,Object.assign({placement:ome,trigger:lme,mouseEnterDelay:cme,mouseLeaveDelay:dme,overlayStyle:fme},pme,{prefixCls:bme,overlayClassName:_me,ref:eme,open:$me,onOpenChange:xme,overlay:Tme||Ome?reactExports.createElement(Overlay$2,{prefixCls:bme,title:Tme,content:Ome}):null,transitionName:getTransitionName(yme,"zoom-big",pme.transitionName),"data-popover-inject":!0}),cloneElement(sme,{onKeyDown:Rme=>{var Nme,Ime;reactExports.isValidElement(sme)&&((Ime=sme==null?void 0:(Nme=sme.props).onKeyDown)===null||Ime===void 0||Ime.call(Nme,Rme)),Eme(Rme)}})))}),Popover=InternalPopover;Popover._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$4;var VerticalAlignTopOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},VerticalAlignTopOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:VerticalAlignTopOutlined$1}))},RefIcon$e=reactExports.forwardRef(VerticalAlignTopOutlined);const antStatusProcessing=new Keyframe("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),antZoomBadgeIn=new Keyframe("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),antZoomBadgeOut=new Keyframe("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),antNoWrapperZoomBadgeIn=new Keyframe("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),antNoWrapperZoomBadgeOut=new Keyframe("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),antBadgeLoadingCircle=new Keyframe("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),genSharedBadgeStyle=x_=>{const{componentCls:eme,iconCls:$P,antCls:tme,badgeShadowSize:ame,textFontSize:nme,textFontSizeSM:rme,statusSize:ime,dotSize:ome,textFontWeight:lme,indicatorHeight:sme,indicatorHeightSM:cme,marginXS:dme,calc:ume}=x_,fme=`${tme}-scroll-number`,pme=genPresetColor$1(x_,(hme,bme)=>{let{darkColor:mme}=bme;return{[`&${eme} ${eme}-color-${hme}`]:{background:mme,[`&:not(${eme}-count)`]:{color:mme},"a:hover &":{background:mme}}}});return{[eme]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${eme}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:x_.indicatorZIndex,minWidth:sme,height:sme,color:x_.badgeTextColor,fontWeight:lme,fontSize:nme,lineHeight:unit$1(sme),whiteSpace:"nowrap",textAlign:"center",background:x_.badgeColor,borderRadius:ume(sme).div(2).equal(),boxShadow:`0 0 0 ${unit$1(ame)} ${x_.badgeShadowColor}`,transition:`background ${x_.motionDurationMid}`,a:{color:x_.badgeTextColor},"a:hover":{color:x_.badgeTextColor},"a:hover &":{background:x_.badgeColorHover}},[`${eme}-count-sm`]:{minWidth:cme,height:cme,fontSize:rme,lineHeight:unit$1(cme),borderRadius:ume(cme).div(2).equal()},[`${eme}-multiple-words`]:{padding:`0 ${unit$1(x_.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${eme}-dot`]:{zIndex:x_.indicatorZIndex,width:ome,minWidth:ome,height:ome,background:x_.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit$1(ame)} ${x_.badgeShadowColor}`},[`${eme}-count, ${eme}-dot, ${fme}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${$P}-spin`]:{animationName:antBadgeLoadingCircle,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${eme}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${eme}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:ime,height:ime,verticalAlign:"middle",borderRadius:"50%"},[`${eme}-status-success`]:{backgroundColor:x_.colorSuccess},[`${eme}-status-processing`]:{overflow:"visible",color:x_.colorInfo,backgroundColor:x_.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:ame,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:antStatusProcessing,animationDuration:x_.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${eme}-status-default`]:{backgroundColor:x_.colorTextPlaceholder},[`${eme}-status-error`]:{backgroundColor:x_.colorError},[`${eme}-status-warning`]:{backgroundColor:x_.colorWarning},[`${eme}-status-text`]:{marginInlineStart:dme,color:x_.colorText,fontSize:x_.fontSize}}}),pme),{[`${eme}-zoom-appear, ${eme}-zoom-enter`]:{animationName:antZoomBadgeIn,animationDuration:x_.motionDurationSlow,animationTimingFunction:x_.motionEaseOutBack,animationFillMode:"both"},[`${eme}-zoom-leave`]:{animationName:antZoomBadgeOut,animationDuration:x_.motionDurationSlow,animationTimingFunction:x_.motionEaseOutBack,animationFillMode:"both"},[`&${eme}-not-a-wrapper`]:{[`${eme}-zoom-appear, ${eme}-zoom-enter`]:{animationName:antNoWrapperZoomBadgeIn,animationDuration:x_.motionDurationSlow,animationTimingFunction:x_.motionEaseOutBack},[`${eme}-zoom-leave`]:{animationName:antNoWrapperZoomBadgeOut,animationDuration:x_.motionDurationSlow,animationTimingFunction:x_.motionEaseOutBack},[`&:not(${eme}-status)`]:{verticalAlign:"middle"},[`${fme}-custom-component, ${eme}-count`]:{transform:"none"},[`${fme}-custom-component, ${fme}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[fme]:{overflow:"hidden",transition:`all ${x_.motionDurationMid} ${x_.motionEaseOutBack}`,[`${fme}-only`]:{position:"relative",display:"inline-block",height:sme,transition:`all ${x_.motionDurationSlow} ${x_.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${fme}-only-unit`]:{height:sme,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${fme}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${eme}-count, ${eme}-dot, ${fme}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},prepareToken$1=x_=>{const{fontHeight:eme,lineWidth:$P,marginXS:tme,colorBorderBg:ame}=x_,nme=eme,rme=$P,ime=x_.colorTextLightSolid,ome=x_.colorError,lme=x_.colorErrorHover;return merge$5(x_,{badgeFontHeight:nme,badgeShadowSize:rme,badgeTextColor:ime,badgeColor:ome,badgeColorHover:lme,badgeShadowColor:ame,badgeProcessingDuration:"1.2s",badgeRibbonOffset:tme,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},prepareComponentToken$h=x_=>{const{fontSize:eme,lineHeight:$P,fontSizeSM:tme,lineWidth:ame}=x_;return{indicatorZIndex:"auto",indicatorHeight:Math.round(eme*$P)-2*ame,indicatorHeightSM:eme,dotSize:tme/2,textFontSize:tme,textFontSizeSM:tme,textFontWeight:"normal",statusSize:tme/2}},useStyle$n=genStyleHooks("Badge",x_=>{const eme=prepareToken$1(x_);return genSharedBadgeStyle(eme)},prepareComponentToken$h),genRibbonStyle=x_=>{const{antCls:eme,badgeFontHeight:$P,marginXS:tme,badgeRibbonOffset:ame,calc:nme}=x_,rme=`${eme}-ribbon`,ime=`${eme}-ribbon-wrapper`,ome=genPresetColor$1(x_,(lme,sme)=>{let{darkColor:cme}=sme;return{[`&${rme}-color-${lme}`]:{background:cme,color:cme}}});return{[ime]:{position:"relative"},[rme]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",top:tme,padding:`0 ${unit$1(x_.paddingXS)}`,color:x_.colorPrimary,lineHeight:unit$1($P),whiteSpace:"nowrap",backgroundColor:x_.colorPrimary,borderRadius:x_.borderRadiusSM,[`${rme}-text`]:{color:x_.badgeTextColor},[`${rme}-corner`]:{position:"absolute",top:"100%",width:ame,height:ame,color:"currentcolor",border:`${unit$1(nme(ame).div(2).equal())} solid`,transform:x_.badgeRibbonCornerTransform,transformOrigin:"top",filter:x_.badgeRibbonCornerFilter}}),ome),{[`&${rme}-placement-end`]:{insetInlineEnd:nme(ame).mul(-1).equal(),borderEndEndRadius:0,[`${rme}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${rme}-placement-start`]:{insetInlineStart:nme(ame).mul(-1).equal(),borderEndStartRadius:0,[`${rme}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},useStyle$m=genStyleHooks(["Badge","Ribbon"],x_=>{const eme=prepareToken$1(x_);return genRibbonStyle(eme)},prepareComponentToken$h),Ribbon=x_=>{const{className:eme,prefixCls:$P,style:tme,color:ame,children:nme,text:rme,placement:ime="end",rootClassName:ome}=x_,{getPrefixCls:lme,direction:sme}=reactExports.useContext(ConfigContext),cme=lme("ribbon",$P),dme=`${cme}-wrapper`,[ume,fme,pme]=useStyle$m(cme,dme),hme=isPresetColor(ame,!1),bme=classNames(cme,`${cme}-placement-${ime}`,{[`${cme}-rtl`]:sme==="rtl",[`${cme}-color-${ame}`]:hme},eme),mme={},vme={};return ame&&!hme&&(mme.background=ame,vme.color=ame),ume(reactExports.createElement("div",{className:classNames(dme,ome,fme,pme)},nme,reactExports.createElement("div",{className:classNames(bme,fme),style:Object.assign(Object.assign({},mme),tme)},reactExports.createElement("span",{className:`${cme}-text`},rme),reactExports.createElement("div",{className:`${cme}-corner`,style:vme}))))},UnitNumber=x_=>{const{prefixCls:eme,value:$P,current:tme,offset:ame=0}=x_;let nme;return ame&&(nme={position:"absolute",top:`${ame}00%`,left:0}),reactExports.createElement("span",{style:nme,className:classNames(`${eme}-only-unit`,{current:tme})},$P)};function getOffset$4(x_,eme,$P){let tme=x_,ame=0;for(;(tme+10)%10!==eme;)tme+=$P,ame+=$P;return ame}const SingleNumber=x_=>{const{prefixCls:eme,count:$P,value:tme}=x_,ame=Number(tme),nme=Math.abs($P),[rme,ime]=reactExports.useState(ame),[ome,lme]=reactExports.useState(nme),sme=()=>{ime(ame),lme(nme)};reactExports.useEffect(()=>{const ume=setTimeout(sme,1e3);return()=>clearTimeout(ume)},[ame]);let cme,dme;if(rme===ame||Number.isNaN(ame)||Number.isNaN(rme))cme=[reactExports.createElement(UnitNumber,Object.assign({},x_,{key:ame,current:!0}))],dme={transition:"none"};else{cme=[];const ume=ame+10,fme=[];for(let mme=ame;mme<=ume;mme+=1)fme.push(mme);const pme=ome<nme?1:-1,hme=fme.findIndex(mme=>mme%10===rme);cme=(pme<0?fme.slice(0,hme+1):fme.slice(hme)).map((mme,vme)=>{const gme=mme%10;return reactExports.createElement(UnitNumber,Object.assign({},x_,{key:mme,value:gme,offset:pme<0?vme-hme:vme,current:vme===hme}))}),dme={transform:`translateY(${-getOffset$4(rme,ame,pme)}00%)`}}return reactExports.createElement("span",{className:`${eme}-only`,style:dme,onTransitionEnd:sme},cme)};var __rest$Q=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const ScrollNumber=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,count:tme,className:ame,motionClassName:nme,style:rme,title:ime,show:ome,component:lme="sup",children:sme}=x_,cme=__rest$Q(x_,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:dme}=reactExports.useContext(ConfigContext),ume=dme("scroll-number",$P),fme=Object.assign(Object.assign({},cme),{"data-show":ome,style:rme,className:classNames(ume,ame,nme),title:ime});let pme=tme;if(tme&&Number(tme)%1===0){const hme=String(tme).split("");pme=reactExports.createElement("bdi",null,hme.map((bme,mme)=>reactExports.createElement(SingleNumber,{prefixCls:ume,count:Number(tme),value:bme,key:hme.length-mme})))}return rme!=null&&rme.borderColor&&(fme.style=Object.assign(Object.assign({},rme),{boxShadow:`0 0 0 1px ${rme.borderColor} inset`})),sme?cloneElement(sme,hme=>({className:classNames(`${ume}-custom-component`,hme==null?void 0:hme.className,nme)})):reactExports.createElement(lme,Object.assign({},fme,{ref:eme}),pme)});var __rest$P=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalBadge=reactExports.forwardRef((x_,eme)=>{var $P,tme,ame,nme,rme;const{prefixCls:ime,scrollNumberPrefixCls:ome,children:lme,status:sme,text:cme,color:dme,count:ume=null,overflowCount:fme=99,dot:pme=!1,size:hme="default",title:bme,offset:mme,style:vme,className:gme,rootClassName:yme,classNames:_me,styles:$me,showZero:Cme=!1}=x_,Sme=__rest$P(x_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:Eme,direction:xme,badge:Tme}=reactExports.useContext(ConfigContext),Ome=Eme("badge",ime),[Rme,Nme,Ime]=useStyle$n(Ome),Pme=ume>fme?`${fme}+`:ume,Mme=Pme==="0"||Pme===0,kme=ume===null||Mme&&!Cme,Bme=(sme!=null||dme!=null)&&kme,Dme=pme&&!Mme,jme=Dme?"":Pme,Vme=reactExports.useMemo(()=>(jme==null||jme===""||Mme&&!Cme)&&!Dme,[jme,Mme,Cme,Dme]),Wme=reactExports.useRef(ume);Vme||(Wme.current=ume);const Lme=Wme.current,zme=reactExports.useRef(jme);Vme||(zme.current=jme);const Ume=zme.current,Gme=reactExports.useRef(Dme);Vme||(Gme.current=Dme);const Jme=reactExports.useMemo(()=>{if(!mme)return Object.assign(Object.assign({},Tme==null?void 0:Tme.style),vme);const ibe={marginTop:mme[1]};return xme==="rtl"?ibe.left=parseInt(mme[0],10):ibe.right=-parseInt(mme[0],10),Object.assign(Object.assign(Object.assign({},ibe),Tme==null?void 0:Tme.style),vme)},[xme,mme,vme,Tme==null?void 0:Tme.style]),Yme=bme??(typeof Lme=="string"||typeof Lme=="number"?Lme:void 0),Qme=Vme||!cme?null:reactExports.createElement("span",{className:`${Ome}-status-text`},cme),Xme=!Lme||typeof Lme!="object"?void 0:cloneElement(Lme,ibe=>({style:Object.assign(Object.assign({},Jme),ibe.style)})),Kme=isPresetColor(dme,!1),Zme=classNames(_me==null?void 0:_me.indicator,($P=Tme==null?void 0:Tme.classNames)===null||$P===void 0?void 0:$P.indicator,{[`${Ome}-status-dot`]:Bme,[`${Ome}-status-${sme}`]:!!sme,[`${Ome}-color-${dme}`]:Kme}),nbe={};dme&&!Kme&&(nbe.color=dme,nbe.background=dme);const lbe=classNames(Ome,{[`${Ome}-status`]:Bme,[`${Ome}-not-a-wrapper`]:!lme,[`${Ome}-rtl`]:xme==="rtl"},gme,yme,Tme==null?void 0:Tme.className,(tme=Tme==null?void 0:Tme.classNames)===null||tme===void 0?void 0:tme.root,_me==null?void 0:_me.root,Nme,Ime);if(!lme&&Bme){const ibe=Jme.color;return Rme(reactExports.createElement("span",Object.assign({},Sme,{className:lbe,style:Object.assign(Object.assign(Object.assign({},$me==null?void 0:$me.root),(ame=Tme==null?void 0:Tme.styles)===null||ame===void 0?void 0:ame.root),Jme)}),reactExports.createElement("span",{className:Zme,style:Object.assign(Object.assign(Object.assign({},$me==null?void 0:$me.indicator),(nme=Tme==null?void 0:Tme.styles)===null||nme===void 0?void 0:nme.indicator),nbe)}),cme&&reactExports.createElement("span",{style:{color:ibe},className:`${Ome}-status-text`},cme)))}return Rme(reactExports.createElement("span",Object.assign({ref:eme},Sme,{className:lbe,style:Object.assign(Object.assign({},(rme=Tme==null?void 0:Tme.styles)===null||rme===void 0?void 0:rme.root),$me==null?void 0:$me.root)}),lme,reactExports.createElement(CSSMotion,{visible:!Vme,motionName:`${Ome}-zoom`,motionAppear:!1,motionDeadline:1e3},ibe=>{let{className:abe}=ibe;var obe,hbe;const ube=Eme("scroll-number",ome),mbe=Gme.current,pbe=classNames(_me==null?void 0:_me.indicator,(obe=Tme==null?void 0:Tme.classNames)===null||obe===void 0?void 0:obe.indicator,{[`${Ome}-dot`]:mbe,[`${Ome}-count`]:!mbe,[`${Ome}-count-sm`]:hme==="small",[`${Ome}-multiple-words`]:!mbe&&Ume&&Ume.toString().length>1,[`${Ome}-status-${sme}`]:!!sme,[`${Ome}-color-${dme}`]:Kme});let _be=Object.assign(Object.assign(Object.assign({},$me==null?void 0:$me.indicator),(hbe=Tme==null?void 0:Tme.styles)===null||hbe===void 0?void 0:hbe.indicator),Jme);return dme&&!Kme&&(_be=_be||{},_be.background=dme),reactExports.createElement(ScrollNumber,{prefixCls:ube,show:!Vme,motionClassName:abe,className:pbe,count:Ume,title:Yme,style:_be,key:"scrollNumber"},Xme)}),Qme))}),Badge$1=InternalBadge;Badge$1.Ribbon=Ribbon;var ESC$1=KeyCode.ESC,TAB=KeyCode.TAB;function useAccessibility$1(x_){var eme=x_.visible,$P=x_.triggerRef,tme=x_.onVisibleChange,ame=x_.autoFocus,nme=x_.overlayRef,rme=reactExports.useRef(!1),ime=function(){if(eme){var cme,dme;(cme=$P.current)===null||cme===void 0||(dme=cme.focus)===null||dme===void 0||dme.call(cme),tme==null||tme(!1)}},ome=function(){var cme;return(cme=nme.current)!==null&&cme!==void 0&&cme.focus?(nme.current.focus(),rme.current=!0,!0):!1},lme=function(cme){switch(cme.keyCode){case ESC$1:ime();break;case TAB:{var dme=!1;rme.current||(dme=ome()),dme?cme.preventDefault():ime();break}}};reactExports.useEffect(function(){return eme?(window.addEventListener("keydown",lme),ame&&wrapperRaf(ome,3),function(){window.removeEventListener("keydown",lme),rme.current=!1}):function(){rme.current=!1}},[eme])}var Overlay$1=reactExports.forwardRef(function(x_,eme){var $P=x_.overlay,tme=x_.arrow,ame=x_.prefixCls,nme=reactExports.useMemo(function(){var ime;return typeof $P=="function"?ime=$P():ime=$P,ime},[$P]),rme=composeRef(eme,nme==null?void 0:nme.ref);return jsxs(Fragment,{children:[tme&&jsx("div",{className:"".concat(ame,"-arrow")}),React__default.cloneElement(nme,{ref:supportRef(nme)?rme:void 0})]})}),autoAdjustOverflow$1={adjustX:1,adjustY:1},targetOffset=[0,0],placements$1={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflow$1,offset:[0,-4],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow$1,offset:[0,4],targetOffset}},_excluded$v=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Dropdown$2(x_,eme){var $P,tme=x_.arrow,ame=tme===void 0?!1:tme,nme=x_.prefixCls,rme=nme===void 0?"rc-dropdown":nme,ime=x_.transitionName,ome=x_.animation,lme=x_.align,sme=x_.placement,cme=sme===void 0?"bottomLeft":sme,dme=x_.placements,ume=dme===void 0?placements$1:dme,fme=x_.getPopupContainer,pme=x_.showAction,hme=x_.hideAction,bme=x_.overlayClassName,mme=x_.overlayStyle,vme=x_.visible,gme=x_.trigger,yme=gme===void 0?["hover"]:gme,_me=x_.autoFocus,$me=x_.overlay,Cme=x_.children,Sme=x_.onVisibleChange,Eme=_objectWithoutProperties$6(x_,_excluded$v),xme=React__default.useState(),Tme=_slicedToArray$2(xme,2),Ome=Tme[0],Rme=Tme[1],Nme="visible"in x_?vme:Ome,Ime=React__default.useRef(null),Pme=React__default.useRef(null),Mme=React__default.useRef(null);React__default.useImperativeHandle(eme,function(){return Ime.current});var kme=function(Gme){Rme(Gme),Sme==null||Sme(Gme)};useAccessibility$1({visible:Nme,triggerRef:Mme,onVisibleChange:kme,autoFocus:_me,overlayRef:Pme});var Bme=function(Gme){var Jme=x_.onOverlayClick;Rme(!1),Jme&&Jme(Gme)},Dme=function(){return React__default.createElement(Overlay$1,{ref:Pme,overlay:$me,prefixCls:rme,arrow:ame})},jme=function(){return typeof $me=="function"?Dme:Dme()},Vme=function(){var Gme=x_.minOverlayWidthMatchTrigger,Jme=x_.alignPoint;return"minOverlayWidthMatchTrigger"in x_?Gme:!Jme},Wme=function(){var Gme=x_.openClassName;return Gme!==void 0?Gme:"".concat(rme,"-open")},Lme=React__default.cloneElement(Cme,{className:classNames(($P=Cme.props)===null||$P===void 0?void 0:$P.className,Nme&&Wme()),ref:supportRef(Cme)?composeRef(Mme,Cme.ref):void 0}),zme=hme;return!zme&&yme.indexOf("contextMenu")!==-1&&(zme=["click"]),React__default.createElement(Trigger,_extends$4C({builtinPlacements:ume},Eme,{prefixCls:rme,ref:Ime,popupClassName:classNames(bme,_defineProperty$7({},"".concat(rme,"-show-arrow"),ame)),popupStyle:mme,action:yme,showAction:pme,hideAction:zme,popupPlacement:cme,popupAlign:lme,popupTransitionName:ime,popupAnimation:ome,popupVisible:Nme,stretch:Vme()?"minWidth":"",popup:jme(),onPopupVisibleChange:kme,onPopupClick:Bme,getPopupContainer:fme}),Lme)}const Dropdown$3=React__default.forwardRef(Dropdown$2);var IdContext=reactExports.createContext(null);function getMenuId(x_,eme){return x_===void 0?null:"".concat(x_,"-").concat(eme)}function useMenuId(x_){var eme=reactExports.useContext(IdContext);return getMenuId(eme,x_)}var _excluded$u=["children","locked"],MenuContext$2=reactExports.createContext(null);function mergeProps(x_,eme){var $P=_objectSpread2$4({},x_);return Object.keys(eme).forEach(function(tme){var ame=eme[tme];ame!==void 0&&($P[tme]=ame)}),$P}function InheritableContextProvider(x_){var eme=x_.children,$P=x_.locked,tme=_objectWithoutProperties$6(x_,_excluded$u),ame=reactExports.useContext(MenuContext$2),nme=useMemo(function(){return mergeProps(ame,tme)},[ame,tme],function(rme,ime){return!$P&&(rme[0]!==ime[0]||!isEqual$2(rme[1],ime[1],!0))});return reactExports.createElement(MenuContext$2.Provider,{value:nme},eme)}var EmptyList=[],PathRegisterContext=reactExports.createContext(null);function useMeasure(){return reactExports.useContext(PathRegisterContext)}var PathTrackerContext=reactExports.createContext(EmptyList);function useFullPath(x_){var eme=reactExports.useContext(PathTrackerContext);return reactExports.useMemo(function(){return x_!==void 0?[].concat(_toConsumableArray$1(eme),[x_]):eme},[eme,x_])}var PathUserContext=reactExports.createContext(null),PrivateContext=reactExports.createContext({});function focusable(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(isVisible$1(x_)){var $P=x_.nodeName.toLowerCase(),tme=["input","select","textarea","button"].includes($P)||x_.isContentEditable||$P==="a"&&!!x_.getAttribute("href"),ame=x_.getAttribute("tabindex"),nme=Number(ame),rme=null;return ame&&!Number.isNaN(nme)?rme=nme:tme&&rme===null&&(rme=0),tme&&x_.disabled&&(rme=null),rme!==null&&(rme>=0||eme&&rme<0)}return!1}function getFocusNodeList(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$P=_toConsumableArray$1(x_.querySelectorAll("*")).filter(function(tme){return focusable(tme,eme)});return focusable(x_,eme)&&$P.unshift(x_),$P}var LEFT=KeyCode.LEFT,RIGHT=KeyCode.RIGHT,UP$1=KeyCode.UP,DOWN=KeyCode.DOWN,ENTER$1=KeyCode.ENTER,ESC=KeyCode.ESC,HOME=KeyCode.HOME,END=KeyCode.END,ArrowKeys=[UP$1,DOWN,LEFT,RIGHT];function getOffset$3(x_,eme,$P,tme){var ame,nme="prev",rme="next",ime="children",ome="parent";if(x_==="inline"&&tme===ENTER$1)return{inlineTrigger:!0};var lme=_defineProperty$7(_defineProperty$7({},UP$1,nme),DOWN,rme),sme=_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},LEFT,$P?rme:nme),RIGHT,$P?nme:rme),DOWN,ime),ENTER$1,ime),cme=_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},UP$1,nme),DOWN,rme),ENTER$1,ime),ESC,ome),LEFT,$P?ime:ome),RIGHT,$P?ome:ime),dme={inline:lme,horizontal:sme,vertical:cme,inlineSub:lme,horizontalSub:cme,verticalSub:cme},ume=(ame=dme["".concat(x_).concat(eme?"":"Sub")])===null||ame===void 0?void 0:ame[tme];switch(ume){case nme:return{offset:-1,sibling:!0};case rme:return{offset:1,sibling:!0};case ome:return{offset:-1,sibling:!1};case ime:return{offset:1,sibling:!1};default:return null}}function findContainerUL(x_){for(var eme=x_;eme;){if(eme.getAttribute("data-menu-list"))return eme;eme=eme.parentElement}return null}function getFocusElement(x_,eme){for(var $P=x_||document.activeElement;$P;){if(eme.has($P))return $P;$P=$P.parentElement}return null}function getFocusableElements(x_,eme){var $P=getFocusNodeList(x_,!0);return $P.filter(function(tme){return eme.has(tme)})}function getNextFocusElement(x_,eme,$P){var tme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!x_)return null;var ame=getFocusableElements(x_,eme),nme=ame.length,rme=ame.findIndex(function(ime){return $P===ime});return tme<0?rme===-1?rme=nme-1:rme-=1:tme>0&&(rme+=1),rme=(rme+nme)%nme,ame[rme]}var refreshElements=function(eme,$P){var tme=new Set,ame=new Map,nme=new Map;return eme.forEach(function(rme){var ime=document.querySelector("[data-menu-id='".concat(getMenuId($P,rme),"']"));ime&&(tme.add(ime),nme.set(ime,rme),ame.set(rme,ime))}),{elements:tme,key2element:ame,element2key:nme}};function useAccessibility(x_,eme,$P,tme,ame,nme,rme,ime,ome,lme){var sme=reactExports.useRef(),cme=reactExports.useRef();cme.current=eme;var dme=function(){wrapperRaf.cancel(sme.current)};return reactExports.useEffect(function(){return function(){dme()}},[]),function(ume){var fme=ume.which;if([].concat(ArrowKeys,[ENTER$1,ESC,HOME,END]).includes(fme)){var pme=nme(),hme=refreshElements(pme,tme),bme=hme,mme=bme.elements,vme=bme.key2element,gme=bme.element2key,yme=vme.get(eme),_me=getFocusElement(yme,mme),$me=gme.get(_me),Cme=getOffset$3(x_,rme($me,!0).length===1,$P,fme);if(!Cme&&fme!==HOME&&fme!==END)return;(ArrowKeys.includes(fme)||[HOME,END].includes(fme))&&ume.preventDefault();var Sme=function(Pme){if(Pme){var Mme=Pme,kme=Pme.querySelector("a");kme!=null&&kme.getAttribute("href")&&(Mme=kme);var Bme=gme.get(Pme);ime(Bme),dme(),sme.current=wrapperRaf(function(){cme.current===Bme&&Mme.focus()})}};if([HOME,END].includes(fme)||Cme.sibling||!_me){var Eme;!_me||x_==="inline"?Eme=ame.current:Eme=findContainerUL(_me);var xme,Tme=getFocusableElements(Eme,mme);fme===HOME?xme=Tme[0]:fme===END?xme=Tme[Tme.length-1]:xme=getNextFocusElement(Eme,mme,_me,Cme.offset),Sme(xme)}else if(Cme.inlineTrigger)ome($me);else if(Cme.offset>0)ome($me,!0),dme(),sme.current=wrapperRaf(function(){hme=refreshElements(pme,tme);var Ime=_me.getAttribute("aria-controls"),Pme=document.getElementById(Ime),Mme=getNextFocusElement(Pme,hme.elements);Sme(Mme)},5);else if(Cme.offset<0){var Ome=rme($me,!0),Rme=Ome[Ome.length-2],Nme=vme.get(Rme);ome(Rme,!1),Sme(Nme)}}lme==null||lme(ume)}}function nextSlice(x_){Promise.resolve().then(x_)}var PATH_SPLIT="__RC_UTIL_PATH_SPLIT__",getPathStr=function(eme){return eme.join(PATH_SPLIT)},getPathKeys=function(eme){return eme.split(PATH_SPLIT)},OVERFLOW_KEY="rc-menu-more";function useKeyRecords(){var x_=reactExports.useState({}),eme=_slicedToArray$2(x_,2),$P=eme[1],tme=reactExports.useRef(new Map),ame=reactExports.useRef(new Map),nme=reactExports.useState([]),rme=_slicedToArray$2(nme,2),ime=rme[0],ome=rme[1],lme=reactExports.useRef(0),sme=reactExports.useRef(!1),cme=function(){sme.current||$P({})},dme=reactExports.useCallback(function(vme,gme){var yme=getPathStr(gme);ame.current.set(yme,vme),tme.current.set(vme,yme),lme.current+=1;var _me=lme.current;nextSlice(function(){_me===lme.current&&cme()})},[]),ume=reactExports.useCallback(function(vme,gme){var yme=getPathStr(gme);ame.current.delete(yme),tme.current.delete(vme)},[]),fme=reactExports.useCallback(function(vme){ome(vme)},[]),pme=reactExports.useCallback(function(vme,gme){var yme=tme.current.get(vme)||"",_me=getPathKeys(yme);return gme&&ime.includes(_me[0])&&_me.unshift(OVERFLOW_KEY),_me},[ime]),hme=reactExports.useCallback(function(vme,gme){return vme.filter(function(yme){return yme!==void 0}).some(function(yme){var _me=pme(yme,!0);return _me.includes(gme)})},[pme]),bme=function(){var gme=_toConsumableArray$1(tme.current.keys());return ime.length&&gme.push(OVERFLOW_KEY),gme},mme=reactExports.useCallback(function(vme){var gme="".concat(tme.current.get(vme)).concat(PATH_SPLIT),yme=new Set;return _toConsumableArray$1(ame.current.keys()).forEach(function(_me){_me.startsWith(gme)&&yme.add(ame.current.get(_me))}),yme},[]);return reactExports.useEffect(function(){return function(){sme.current=!0}},[]),{registerPath:dme,unregisterPath:ume,refreshOverflowKeys:fme,isSubPathKey:hme,getKeyPath:pme,getKeys:bme,getSubPathKeys:mme}}function useMemoCallback(x_){var eme=reactExports.useRef(x_);eme.current=x_;var $P=reactExports.useCallback(function(){for(var tme,ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];return(tme=eme.current)===null||tme===void 0?void 0:tme.call.apply(tme,[eme].concat(nme))},[]);return x_?$P:void 0}var uniquePrefix=Math.random().toFixed(5).toString().slice(2),internalId=0;function useUUID(x_){var eme=useMergedState(x_,{value:x_}),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1];return reactExports.useEffect(function(){internalId+=1;var nme="".concat(uniquePrefix,"-").concat(internalId);ame("rc-menu-uuid-".concat(nme))},[]),tme}function useActive(x_,eme,$P,tme){var ame=reactExports.useContext(MenuContext$2),nme=ame.activeKey,rme=ame.onActive,ime=ame.onInactive,ome={active:nme===x_};return eme||(ome.onMouseEnter=function(lme){$P==null||$P({key:x_,domEvent:lme}),rme(x_)},ome.onMouseLeave=function(lme){tme==null||tme({key:x_,domEvent:lme}),ime(x_)}),ome}function useDirectionStyle(x_){var eme=reactExports.useContext(MenuContext$2),$P=eme.mode,tme=eme.rtl,ame=eme.inlineIndent;if($P!=="inline")return null;var nme=x_;return tme?{paddingRight:nme*ame}:{paddingLeft:nme*ame}}function Icon$2(x_){var eme=x_.icon,$P=x_.props,tme=x_.children,ame;return eme===null||eme===!1?null:(typeof eme=="function"?ame=reactExports.createElement(eme,_objectSpread2$4({},$P)):typeof eme!="boolean"&&(ame=eme),ame||tme||null)}var _excluded$t=["item"];function warnItemProp(x_){var eme=x_.item,$P=_objectWithoutProperties$6(x_,_excluded$t);return Object.defineProperty($P,"item",{get:function(){return warningOnce(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),eme}}),$P}var _excluded$s=["title","attribute","elementRef"],_excluded2$7=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_excluded3$1=["active"],LegacyMenuItem=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(){return _classCallCheck$d(this,$P),eme.apply(this,arguments)}return _createClass$b($P,[{key:"render",value:function(){var ame=this.props,nme=ame.title,rme=ame.attribute,ime=ame.elementRef,ome=_objectWithoutProperties$6(ame,_excluded$s),lme=omit$2(ome,["eventKey","popupClassName","popupOffset","onTitleClick"]);return warningOnce(!rme,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),reactExports.createElement(ForwardOverflow.Item,_extends$4C({},rme,{title:typeof nme=="string"?nme:void 0},lme,{ref:ime}))}}]),$P}(reactExports.Component),InternalMenuItem=reactExports.forwardRef(function(x_,eme){var $P=x_.style,tme=x_.className,ame=x_.eventKey;x_.warnKey;var nme=x_.disabled,rme=x_.itemIcon,ime=x_.children,ome=x_.role,lme=x_.onMouseEnter,sme=x_.onMouseLeave,cme=x_.onClick,dme=x_.onKeyDown,ume=x_.onFocus,fme=_objectWithoutProperties$6(x_,_excluded2$7),pme=useMenuId(ame),hme=reactExports.useContext(MenuContext$2),bme=hme.prefixCls,mme=hme.onItemClick,vme=hme.disabled,gme=hme.overflowDisabled,yme=hme.itemIcon,_me=hme.selectedKeys,$me=hme.onActive,Cme=reactExports.useContext(PrivateContext),Sme=Cme._internalRenderMenuItem,Eme="".concat(bme,"-item"),xme=reactExports.useRef(),Tme=reactExports.useRef(),Ome=vme||nme,Rme=useComposeRef(eme,Tme),Nme=useFullPath(ame),Ime=function(Jme){return{key:ame,keyPath:_toConsumableArray$1(Nme).reverse(),item:xme.current,domEvent:Jme}},Pme=rme||yme,Mme=useActive(ame,Ome,lme,sme),kme=Mme.active,Bme=_objectWithoutProperties$6(Mme,_excluded3$1),Dme=_me.includes(ame),jme=useDirectionStyle(Nme.length),Vme=function(Jme){if(!Ome){var Yme=Ime(Jme);cme==null||cme(warnItemProp(Yme)),mme(Yme)}},Wme=function(Jme){if(dme==null||dme(Jme),Jme.which===KeyCode.ENTER){var Yme=Ime(Jme);cme==null||cme(warnItemProp(Yme)),mme(Yme)}},Lme=function(Jme){$me(ame),ume==null||ume(Jme)},zme={};x_.role==="option"&&(zme["aria-selected"]=Dme);var Ume=reactExports.createElement(LegacyMenuItem,_extends$4C({ref:xme,elementRef:Rme,role:ome===null?"none":ome||"menuitem",tabIndex:nme?null:-1,"data-menu-id":gme&&pme?null:pme},omit$2(fme,["extra"]),Bme,zme,{component:"li","aria-disabled":nme,style:_objectSpread2$4(_objectSpread2$4({},jme),$P),className:cx$1(Eme,_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(Eme,"-active"),kme),"".concat(Eme,"-selected"),Dme),"".concat(Eme,"-disabled"),Ome),tme),onClick:Vme,onKeyDown:Wme,onFocus:Lme}),ime,reactExports.createElement(Icon$2,{props:_objectSpread2$4(_objectSpread2$4({},x_),{},{isSelected:Dme}),icon:Pme}));return Sme&&(Ume=Sme(Ume,x_,{selected:Dme})),Ume});function MenuItem$3(x_,eme){var $P=x_.eventKey,tme=useMeasure(),ame=useFullPath($P);return reactExports.useEffect(function(){if(tme)return tme.registerPath($P,ame),function(){tme.unregisterPath($P,ame)}},[ame]),tme?null:reactExports.createElement(InternalMenuItem,_extends$4C({},x_,{ref:eme}))}const Item$2=reactExports.forwardRef(MenuItem$3);var _excluded$r=["className","children"],InternalSubMenuList=function(eme,$P){var tme=eme.className,ame=eme.children,nme=_objectWithoutProperties$6(eme,_excluded$r),rme=reactExports.useContext(MenuContext$2),ime=rme.prefixCls,ome=rme.mode,lme=rme.rtl;return reactExports.createElement("ul",_extends$4C({className:cx$1(ime,lme&&"".concat(ime,"-rtl"),"".concat(ime,"-sub"),"".concat(ime,"-").concat(ome==="inline"?"inline":"vertical"),tme),role:"menu"},nme,{"data-menu-list":!0,ref:$P}),ame)},SubMenuList=reactExports.forwardRef(InternalSubMenuList);SubMenuList.displayName="SubMenuList";function parseChildren(x_,eme){return toArray$6(x_).map(function($P,tme){if(reactExports.isValidElement($P)){var ame,nme,rme=$P.key,ime=(ame=(nme=$P.props)===null||nme===void 0?void 0:nme.eventKey)!==null&&ame!==void 0?ame:rme,ome=ime==null;ome&&(ime="tmp_key-".concat([].concat(_toConsumableArray$1(eme),[tme]).join("-")));var lme={key:ime,eventKey:ime};return reactExports.cloneElement($P,lme)}return $P})}var autoAdjustOverflow={adjustX:1,adjustY:1},placements={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow},topRight:{points:["br","tr"],overflow:autoAdjustOverflow},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflow},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflow},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflow},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflow}},placementsRtl={topLeft:{points:["bl","tl"],overflow:autoAdjustOverflow},topRight:{points:["br","tr"],overflow:autoAdjustOverflow},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflow},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflow},rightTop:{points:["tr","tl"],overflow:autoAdjustOverflow},rightBottom:{points:["br","bl"],overflow:autoAdjustOverflow},leftTop:{points:["tl","tr"],overflow:autoAdjustOverflow},leftBottom:{points:["bl","br"],overflow:autoAdjustOverflow}};function getMotion(x_,eme,$P){if(eme)return eme;if($P)return $P[x_]||$P.other}var popupPlacementMap={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function PopupTrigger(x_){var eme=x_.prefixCls,$P=x_.visible,tme=x_.children,ame=x_.popup,nme=x_.popupStyle,rme=x_.popupClassName,ime=x_.popupOffset,ome=x_.disabled,lme=x_.mode,sme=x_.onVisibleChange,cme=reactExports.useContext(MenuContext$2),dme=cme.getPopupContainer,ume=cme.rtl,fme=cme.subMenuOpenDelay,pme=cme.subMenuCloseDelay,hme=cme.builtinPlacements,bme=cme.triggerSubMenuAction,mme=cme.forceSubMenuRender,vme=cme.rootClassName,gme=cme.motion,yme=cme.defaultMotions,_me=reactExports.useState(!1),$me=_slicedToArray$2(_me,2),Cme=$me[0],Sme=$me[1],Eme=_objectSpread2$4(ume?_objectSpread2$4({},placementsRtl):_objectSpread2$4({},placements),hme),xme=popupPlacementMap[lme],Tme=getMotion(lme,gme,yme),Ome=reactExports.useRef(Tme);lme!=="inline"&&(Ome.current=Tme);var Rme=_objectSpread2$4(_objectSpread2$4({},Ome.current),{},{leavedClassName:"".concat(eme,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Nme=reactExports.useRef();return reactExports.useEffect(function(){return Nme.current=wrapperRaf(function(){Sme($P)}),function(){wrapperRaf.cancel(Nme.current)}},[$P]),reactExports.createElement(Trigger,{prefixCls:eme,popupClassName:cx$1("".concat(eme,"-popup"),_defineProperty$7({},"".concat(eme,"-rtl"),ume),rme,vme),stretch:lme==="horizontal"?"minWidth":null,getPopupContainer:dme,builtinPlacements:Eme,popupPlacement:xme,popupVisible:Cme,popup:ame,popupStyle:nme,popupAlign:ime&&{offset:ime},action:ome?[]:[bme],mouseEnterDelay:fme,mouseLeaveDelay:pme,onPopupVisibleChange:sme,forceRender:mme,popupMotion:Rme,fresh:!0},tme)}function InlineSubMenuList(x_){var eme=x_.id,$P=x_.open,tme=x_.keyPath,ame=x_.children,nme="inline",rme=reactExports.useContext(MenuContext$2),ime=rme.prefixCls,ome=rme.forceSubMenuRender,lme=rme.motion,sme=rme.defaultMotions,cme=rme.mode,dme=reactExports.useRef(!1);dme.current=cme===nme;var ume=reactExports.useState(!dme.current),fme=_slicedToArray$2(ume,2),pme=fme[0],hme=fme[1],bme=dme.current?$P:!1;reactExports.useEffect(function(){dme.current&&hme(!1)},[cme]);var mme=_objectSpread2$4({},getMotion(nme,lme,sme));tme.length>1&&(mme.motionAppear=!1);var vme=mme.onVisibleChanged;return mme.onVisibleChanged=function(gme){return!dme.current&&!gme&&hme(!0),vme==null?void 0:vme(gme)},pme?null:reactExports.createElement(InheritableContextProvider,{mode:nme,locked:!dme.current},reactExports.createElement(CSSMotion,_extends$4C({visible:bme},mme,{forceRender:ome,removeOnLeave:!1,leavedClassName:"".concat(ime,"-hidden")}),function(gme){var yme=gme.className,_me=gme.style;return reactExports.createElement(SubMenuList,{id:eme,className:yme,style:_me},ame)}))}var _excluded$q=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_excluded2$6=["active"],InternalSubMenu=reactExports.forwardRef(function(x_,eme){var $P=x_.style,tme=x_.className,ame=x_.title,nme=x_.eventKey;x_.warnKey;var rme=x_.disabled,ime=x_.internalPopupClose,ome=x_.children,lme=x_.itemIcon,sme=x_.expandIcon,cme=x_.popupClassName,dme=x_.popupOffset,ume=x_.popupStyle,fme=x_.onClick,pme=x_.onMouseEnter,hme=x_.onMouseLeave,bme=x_.onTitleClick,mme=x_.onTitleMouseEnter,vme=x_.onTitleMouseLeave,gme=_objectWithoutProperties$6(x_,_excluded$q),yme=useMenuId(nme),_me=reactExports.useContext(MenuContext$2),$me=_me.prefixCls,Cme=_me.mode,Sme=_me.openKeys,Eme=_me.disabled,xme=_me.overflowDisabled,Tme=_me.activeKey,Ome=_me.selectedKeys,Rme=_me.itemIcon,Nme=_me.expandIcon,Ime=_me.onItemClick,Pme=_me.onOpenChange,Mme=_me.onActive,kme=reactExports.useContext(PrivateContext),Bme=kme._internalRenderSubMenuItem,Dme=reactExports.useContext(PathUserContext),jme=Dme.isSubPathKey,Vme=useFullPath(),Wme="".concat($me,"-submenu"),Lme=Eme||rme,zme=reactExports.useRef(),Ume=reactExports.useRef(),Gme=lme??Rme,Jme=sme??Nme,Yme=Sme.includes(nme),Qme=!xme&&Yme,Xme=jme(Ome,nme),Kme=useActive(nme,Lme,mme,vme),Zme=Kme.active,nbe=_objectWithoutProperties$6(Kme,_excluded2$6),lbe=reactExports.useState(!1),ibe=_slicedToArray$2(lbe,2),abe=ibe[0],obe=ibe[1],hbe=function(d0e){Lme||obe(d0e)},ube=function(d0e){hbe(!0),pme==null||pme({key:nme,domEvent:d0e})},mbe=function(d0e){hbe(!1),hme==null||hme({key:nme,domEvent:d0e})},pbe=reactExports.useMemo(function(){return Zme||(Cme!=="inline"?abe||jme([Tme],nme):!1)},[Cme,Zme,Tme,abe,nme,jme]),_be=useDirectionStyle(Vme.length),Sbe=function(d0e){Lme||(bme==null||bme({key:nme,domEvent:d0e}),Cme==="inline"&&Pme(nme,!Yme))},vbe=useMemoCallback(function(Hbe){fme==null||fme(warnItemProp(Hbe)),Ime(Hbe)}),kbe=function(d0e){Cme!=="inline"&&Pme(nme,d0e)},Rbe=function(){Mme(nme)},Pbe=yme&&"".concat(yme,"-popup"),Mbe=reactExports.createElement("div",_extends$4C({role:"menuitem",style:_be,className:"".concat(Wme,"-title"),tabIndex:Lme?null:-1,ref:zme,title:typeof ame=="string"?ame:null,"data-menu-id":xme&&yme?null:yme,"aria-expanded":Qme,"aria-haspopup":!0,"aria-controls":Pbe,"aria-disabled":Lme,onClick:Sbe,onFocus:Rbe},nbe),ame,reactExports.createElement(Icon$2,{icon:Cme!=="horizontal"?Jme:void 0,props:_objectSpread2$4(_objectSpread2$4({},x_),{},{isOpen:Qme,isSubMenu:!0})},reactExports.createElement("i",{className:"".concat(Wme,"-arrow")}))),Kbe=reactExports.useRef(Cme);if(Cme!=="inline"&&Vme.length>1?Kbe.current="vertical":Kbe.current=Cme,!xme){var Qbe=Kbe.current;Mbe=reactExports.createElement(PopupTrigger,{mode:Qbe,prefixCls:Wme,visible:!ime&&Qme&&Cme!=="inline",popupClassName:cme,popupOffset:dme,popupStyle:ume,popup:reactExports.createElement(InheritableContextProvider,{mode:Qbe==="horizontal"?"vertical":Qbe},reactExports.createElement(SubMenuList,{id:Pbe,ref:Ume},ome)),disabled:Lme,onVisibleChange:kbe},Mbe)}var Gbe=reactExports.createElement(ForwardOverflow.Item,_extends$4C({ref:eme,role:"none"},gme,{component:"li",style:$P,className:cx$1(Wme,"".concat(Wme,"-").concat(Cme),tme,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(Wme,"-open"),Qme),"".concat(Wme,"-active"),pbe),"".concat(Wme,"-selected"),Xme),"".concat(Wme,"-disabled"),Lme)),onMouseEnter:ube,onMouseLeave:mbe}),Mbe,!xme&&reactExports.createElement(InlineSubMenuList,{id:Pbe,open:Qme,keyPath:Vme},ome));return Bme&&(Gbe=Bme(Gbe,x_,{selected:Xme,active:pbe,open:Qme,disabled:Lme})),reactExports.createElement(InheritableContextProvider,{onItemClick:vbe,mode:Cme==="horizontal"?"vertical":Cme,itemIcon:Gme,expandIcon:Jme},Gbe)}),SubMenu$3=reactExports.forwardRef(function(x_,eme){var $P=x_.eventKey,tme=x_.children,ame=useFullPath($P),nme=parseChildren(tme,ame),rme=useMeasure();reactExports.useEffect(function(){if(rme)return rme.registerPath($P,ame),function(){rme.unregisterPath($P,ame)}},[ame]);var ime;return rme?ime=nme:ime=reactExports.createElement(InternalSubMenu,_extends$4C({ref:eme},x_),nme),reactExports.createElement(PathTrackerContext.Provider,{value:ame},ime)});function Divider$1(x_){var eme=x_.className,$P=x_.style,tme=reactExports.useContext(MenuContext$2),ame=tme.prefixCls,nme=useMeasure();return nme?null:reactExports.createElement("li",{role:"separator",className:cx$1("".concat(ame,"-item-divider"),eme),style:$P})}var _excluded$p=["className","title","eventKey","children"],InternalMenuItemGroup=reactExports.forwardRef(function(x_,eme){var $P=x_.className,tme=x_.title;x_.eventKey;var ame=x_.children,nme=_objectWithoutProperties$6(x_,_excluded$p),rme=reactExports.useContext(MenuContext$2),ime=rme.prefixCls,ome="".concat(ime,"-item-group");return reactExports.createElement("li",_extends$4C({ref:eme,role:"presentation"},nme,{onClick:function(sme){return sme.stopPropagation()},className:cx$1(ome,$P)}),reactExports.createElement("div",{role:"presentation",className:"".concat(ome,"-title"),title:typeof tme=="string"?tme:void 0},tme),reactExports.createElement("ul",{role:"group",className:"".concat(ome,"-list")},ame))}),MenuItemGroup=reactExports.forwardRef(function(x_,eme){var $P=x_.eventKey,tme=x_.children,ame=useFullPath($P),nme=parseChildren(tme,ame),rme=useMeasure();return rme?nme:reactExports.createElement(InternalMenuItemGroup,_extends$4C({ref:eme},omit$2(x_,["warnKey"])),nme)}),_excluded$o=["label","children","key","type","extra"];function convertItemsToNodes(x_,eme,$P){var tme=eme.item,ame=eme.group,nme=eme.submenu,rme=eme.divider;return(x_||[]).map(function(ime,ome){if(ime&&_typeof$4(ime)==="object"){var lme=ime,sme=lme.label,cme=lme.children,dme=lme.key,ume=lme.type,fme=lme.extra,pme=_objectWithoutProperties$6(lme,_excluded$o),hme=dme??"tmp-".concat(ome);return cme||ume==="group"?ume==="group"?reactExports.createElement(ame,_extends$4C({key:hme},pme,{title:sme}),convertItemsToNodes(cme,eme,$P)):reactExports.createElement(nme,_extends$4C({key:hme},pme,{title:sme}),convertItemsToNodes(cme,eme,$P)):ume==="divider"?reactExports.createElement(rme,_extends$4C({key:hme},pme)):reactExports.createElement(tme,_extends$4C({key:hme},pme,{extra:fme}),sme,(!!fme||fme===0)&&reactExports.createElement("span",{className:"".concat($P,"-item-extra")},fme))}return null}).filter(function(ime){return ime})}function parseItems(x_,eme,$P,tme,ame){var nme=x_,rme=_objectSpread2$4({divider:Divider$1,item:Item$2,group:MenuItemGroup,submenu:SubMenu$3},tme);return eme&&(nme=convertItemsToNodes(eme,rme,ame)),parseChildren(nme,$P)}var _excluded$n=["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"],EMPTY_LIST$1=[],Menu$3=reactExports.forwardRef(function(x_,eme){var $P,tme=x_,ame=tme.prefixCls,nme=ame===void 0?"rc-menu":ame,rme=tme.rootClassName,ime=tme.style,ome=tme.className,lme=tme.tabIndex,sme=lme===void 0?0:lme,cme=tme.items,dme=tme.children,ume=tme.direction,fme=tme.id,pme=tme.mode,hme=pme===void 0?"vertical":pme,bme=tme.inlineCollapsed,mme=tme.disabled,vme=tme.disabledOverflow,gme=tme.subMenuOpenDelay,yme=gme===void 0?.1:gme,_me=tme.subMenuCloseDelay,$me=_me===void 0?.1:_me,Cme=tme.forceSubMenuRender,Sme=tme.defaultOpenKeys,Eme=tme.openKeys,xme=tme.activeKey,Tme=tme.defaultActiveFirst,Ome=tme.selectable,Rme=Ome===void 0?!0:Ome,Nme=tme.multiple,Ime=Nme===void 0?!1:Nme,Pme=tme.defaultSelectedKeys,Mme=tme.selectedKeys,kme=tme.onSelect,Bme=tme.onDeselect,Dme=tme.inlineIndent,jme=Dme===void 0?24:Dme,Vme=tme.motion,Wme=tme.defaultMotions,Lme=tme.triggerSubMenuAction,zme=Lme===void 0?"hover":Lme,Ume=tme.builtinPlacements,Gme=tme.itemIcon,Jme=tme.expandIcon,Yme=tme.overflowedIndicator,Qme=Yme===void 0?"...":Yme,Xme=tme.overflowedIndicatorPopupClassName,Kme=tme.getPopupContainer,Zme=tme.onClick,nbe=tme.onOpenChange,lbe=tme.onKeyDown;tme.openAnimation,tme.openTransitionName;var ibe=tme._internalRenderMenuItem,abe=tme._internalRenderSubMenuItem,obe=tme._internalComponents,hbe=_objectWithoutProperties$6(tme,_excluded$n),ube=reactExports.useMemo(function(){return[parseItems(dme,cme,EMPTY_LIST$1,obe,nme),parseItems(dme,cme,EMPTY_LIST$1,{},nme)]},[dme,cme,obe]),mbe=_slicedToArray$2(ube,2),pbe=mbe[0],_be=mbe[1],Sbe=reactExports.useState(!1),vbe=_slicedToArray$2(Sbe,2),kbe=vbe[0],Rbe=vbe[1],Pbe=reactExports.useRef(),Mbe=useUUID(fme),Kbe=ume==="rtl",Qbe=useMergedState(Sme,{value:Eme,postState:function(Zbe){return Zbe||EMPTY_LIST$1}}),Gbe=_slicedToArray$2(Qbe,2),Hbe=Gbe[0],d0e=Gbe[1],p0e=function(Zbe){var E0e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function M0e(){d0e(Zbe),nbe==null||nbe(Zbe)}E0e?reactDomExports.flushSync(M0e):M0e()},S0e=reactExports.useState(Hbe),P0e=_slicedToArray$2(S0e,2),e0e=P0e[0],_0e=P0e[1],m0e=reactExports.useRef(!1),Ybe=reactExports.useMemo(function(){return(hme==="inline"||hme==="vertical")&&bme?["vertical",bme]:[hme,!1]},[hme,bme]),Jbe=_slicedToArray$2(Ybe,2),c0e=Jbe[0],zbe=Jbe[1],R0e=c0e==="inline",$0e=reactExports.useState(c0e),u0e=_slicedToArray$2($0e,2),t0e=u0e[0],v0e=u0e[1],L0e=reactExports.useState(zbe),Wbe=_slicedToArray$2(L0e,2),a0e=Wbe[0],g0e=Wbe[1];reactExports.useEffect(function(){v0e(c0e),g0e(zbe),m0e.current&&(R0e?d0e(e0e):p0e(EMPTY_LIST$1))},[c0e,zbe]);var b0e=reactExports.useState(0),y0e=_slicedToArray$2(b0e,2),A0e=y0e[0],V0e=y0e[1],w0e=A0e>=pbe.length-1||t0e!=="horizontal"||vme;reactExports.useEffect(function(){R0e&&_0e(Hbe)},[Hbe]),reactExports.useEffect(function(){return m0e.current=!0,function(){m0e.current=!1}},[]);var T0e=useKeyRecords(),$be=T0e.registerPath,Ibe=T0e.unregisterPath,n0e=T0e.refreshOverflowKeys,f0e=T0e.isSubPathKey,z0e=T0e.getKeyPath,o0e=T0e.getKeys,gbe=T0e.getSubPathKeys,Tbe=reactExports.useMemo(function(){return{registerPath:$be,unregisterPath:Ibe}},[$be,Ibe]),Vbe=reactExports.useMemo(function(){return{isSubPathKey:f0e}},[f0e]);reactExports.useEffect(function(){n0e(w0e?EMPTY_LIST$1:pbe.slice(A0e+1).map(function(Bbe){return Bbe.key}))},[A0e,w0e]);var Ube=useMergedState(xme||Tme&&(($P=pbe[0])===null||$P===void 0?void 0:$P.key),{value:xme}),x0e=_slicedToArray$2(Ube,2),I0e=x0e[0],j0e=x0e[1],O0e=useMemoCallback(function(Bbe){j0e(Bbe)}),G0e=useMemoCallback(function(){j0e(void 0)});reactExports.useImperativeHandle(eme,function(){return{list:Pbe.current,focus:function(Zbe){var E0e,M0e=o0e(),B0e=refreshElements(M0e,Mbe),Z0e=B0e.elements,m1e=B0e.key2element,$1e=B0e.element2key,f1e=getFocusableElements(Pbe.current,Z0e),w1e=I0e??(f1e[0]?$1e.get(f1e[0]):(E0e=pbe.find(function(M1e){return!M1e.props.disabled}))===null||E0e===void 0?void 0:E0e.key),b1e=m1e.get(w1e);if(w1e&&b1e){var I1e;b1e==null||(I1e=b1e.focus)===null||I1e===void 0||I1e.call(b1e,Zbe)}}}});var W0e=useMergedState(Pme||[],{value:Mme,postState:function(Zbe){return Array.isArray(Zbe)?Zbe:Zbe==null?EMPTY_LIST$1:[Zbe]}}),i1e=_slicedToArray$2(W0e,2),t1e=i1e[0],Ebe=i1e[1],Cbe=function(Zbe){if(Rme){var E0e=Zbe.key,M0e=t1e.includes(E0e),B0e;Ime?M0e?B0e=t1e.filter(function(m1e){return m1e!==E0e}):B0e=[].concat(_toConsumableArray$1(t1e),[E0e]):B0e=[E0e],Ebe(B0e);var Z0e=_objectSpread2$4(_objectSpread2$4({},Zbe),{},{selectedKeys:B0e});M0e?Bme==null||Bme(Z0e):kme==null||kme(Z0e)}!Ime&&Hbe.length&&t0e!=="inline"&&p0e(EMPTY_LIST$1)},fbe=useMemoCallback(function(Bbe){Zme==null||Zme(warnItemProp(Bbe)),Cbe(Bbe)}),ybe=useMemoCallback(function(Bbe,Zbe){var E0e=Hbe.filter(function(B0e){return B0e!==Bbe});if(Zbe)E0e.push(Bbe);else if(t0e!=="inline"){var M0e=gbe(Bbe);E0e=E0e.filter(function(B0e){return!M0e.has(B0e)})}isEqual$2(Hbe,E0e,!0)||p0e(E0e,!0)}),Abe=function(Zbe,E0e){var M0e=E0e??!Hbe.includes(Zbe);ybe(Zbe,M0e)},Lbe=useAccessibility(t0e,I0e,Kbe,Mbe,Pbe,o0e,z0e,j0e,Abe,lbe);reactExports.useEffect(function(){Rbe(!0)},[]);var Nbe=reactExports.useMemo(function(){return{_internalRenderMenuItem:ibe,_internalRenderSubMenuItem:abe}},[ibe,abe]),Fbe=t0e!=="horizontal"||vme?pbe:pbe.map(function(Bbe,Zbe){return reactExports.createElement(InheritableContextProvider,{key:Bbe.key,overflowDisabled:Zbe>A0e},Bbe)}),i0e=reactExports.createElement(ForwardOverflow,_extends$4C({id:fme,ref:Pbe,prefixCls:"".concat(nme,"-overflow"),component:"ul",itemComponent:Item$2,className:cx$1(nme,"".concat(nme,"-root"),"".concat(nme,"-").concat(t0e),ome,_defineProperty$7(_defineProperty$7({},"".concat(nme,"-inline-collapsed"),a0e),"".concat(nme,"-rtl"),Kbe),rme),dir:ume,style:ime,role:"menu",tabIndex:sme,data:Fbe,renderRawItem:function(Zbe){return Zbe},renderRawRest:function(Zbe){var E0e=Zbe.length,M0e=E0e?pbe.slice(-E0e):null;return reactExports.createElement(SubMenu$3,{eventKey:OVERFLOW_KEY,title:Qme,disabled:w0e,internalPopupClose:E0e===0,popupClassName:Xme},M0e)},maxCount:t0e!=="horizontal"||vme?ForwardOverflow.INVALIDATE:ForwardOverflow.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Zbe){V0e(Zbe)},onKeyDown:Lbe},hbe));return reactExports.createElement(PrivateContext.Provider,{value:Nbe},reactExports.createElement(IdContext.Provider,{value:Mbe},reactExports.createElement(InheritableContextProvider,{prefixCls:nme,rootClassName:rme,mode:t0e,openKeys:Hbe,rtl:Kbe,disabled:mme,motion:kbe?Vme:null,defaultMotions:kbe?Wme:null,activeKey:I0e,onActive:O0e,onInactive:G0e,selectedKeys:t1e,inlineIndent:jme,subMenuOpenDelay:yme,subMenuCloseDelay:$me,forceSubMenuRender:Cme,builtinPlacements:Ume,triggerSubMenuAction:zme,getPopupContainer:Kme,itemIcon:Gme,expandIcon:Jme,onItemClick:fbe,onOpenChange:ybe},reactExports.createElement(PathUserContext.Provider,{value:Vbe},i0e),reactExports.createElement("div",{style:{display:"none"},"aria-hidden":!0},reactExports.createElement(PathRegisterContext.Provider,{value:Tbe},_be)))))}),ExportMenu=Menu$3;ExportMenu.Item=Item$2;ExportMenu.SubMenu=SubMenu$3;ExportMenu.ItemGroup=MenuItemGroup;ExportMenu.Divider=Divider$1;var BarsOutlined$1={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"},BarsOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:BarsOutlined$1}))},RefIcon$d=reactExports.forwardRef(BarsOutlined),LeftOutlined$1={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"},LeftOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:LeftOutlined$1}))},RefIcon$c=reactExports.forwardRef(LeftOutlined);const isNumeric$2=x_=>!isNaN(parseFloat(x_))&&isFinite(x_),LayoutContext=reactExports.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),genLayoutStyle=x_=>{const{antCls:eme,componentCls:$P,colorText:tme,footerBg:ame,headerHeight:nme,headerPadding:rme,headerColor:ime,footerPadding:ome,fontSize:lme,bodyBg:sme,headerBg:cme}=x_;return{[$P]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:sme,"&, *":{boxSizing:"border-box"},[`&${$P}-has-sider`]:{flexDirection:"row",[`> ${$P}, > ${$P}-content`]:{width:0}},[`${$P}-header, &${$P}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${$P}-header`]:{height:nme,padding:rme,color:ime,lineHeight:unit$1(nme),background:cme,[`${eme}-menu`]:{lineHeight:"inherit"}},[`${$P}-footer`]:{padding:ome,color:tme,fontSize:lme,background:ame},[`${$P}-content`]:{flex:"auto",color:tme,minHeight:0}}},prepareComponentToken$g=x_=>{const{colorBgLayout:eme,controlHeight:$P,controlHeightLG:tme,colorText:ame,controlHeightSM:nme,marginXXS:rme,colorTextLightSolid:ime,colorBgContainer:ome}=x_,lme=tme*1.25;return{colorBgHeader:"#001529",colorBgBody:eme,colorBgTrigger:"#002140",bodyBg:eme,headerBg:"#001529",headerHeight:$P*2,headerPadding:`0 ${lme}px`,headerColor:ame,footerPadding:`${nme}px ${lme}px`,footerBg:eme,siderBg:"#001529",triggerHeight:tme+rme*2,triggerBg:"#002140",triggerColor:ime,zeroTriggerWidth:tme,zeroTriggerHeight:tme,lightSiderBg:ome,lightTriggerBg:ome,lightTriggerColor:ame}},DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],useStyle$l=genStyleHooks("Layout",x_=>[genLayoutStyle(x_)],prepareComponentToken$g,{deprecatedTokens:DEPRECATED_TOKENS}),genSiderStyle=x_=>{const{componentCls:eme,siderBg:$P,motionDurationMid:tme,motionDurationSlow:ame,antCls:nme,triggerHeight:rme,triggerColor:ime,triggerBg:ome,headerHeight:lme,zeroTriggerWidth:sme,zeroTriggerHeight:cme,borderRadius:dme,lightSiderBg:ume,lightTriggerColor:fme,lightTriggerBg:pme,bodyBg:hme}=x_;return{[eme]:{position:"relative",minWidth:0,background:$P,transition:`all ${tme}, background 0s`,"&-has-trigger":{paddingBottom:rme},"&-right":{order:1},[`${eme}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${nme}-menu${nme}-menu-inline-collapsed`]:{width:"auto"}},[`${eme}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:rme,color:ime,lineHeight:unit$1(rme),textAlign:"center",background:ome,cursor:"pointer",transition:`all ${tme}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:lme,insetInlineEnd:x_.calc(sme).mul(-1).equal(),zIndex:1,width:sme,height:cme,color:ime,fontSize:x_.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$P,borderStartStartRadius:0,borderStartEndRadius:dme,borderEndEndRadius:dme,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ame} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ame}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:x_.calc(sme).mul(-1).equal(),borderStartStartRadius:dme,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:dme}}},"&-light":{background:ume,[`${eme}-trigger`]:{color:fme,background:pme},[`${eme}-zero-width-trigger`]:{color:fme,background:pme,border:`1px solid ${hme}`,borderInlineStart:0}}}}},useStyle$k=genStyleHooks(["Layout","Sider"],x_=>[genSiderStyle(x_)],prepareComponentToken$g,{deprecatedTokens:DEPRECATED_TOKENS});var __rest$O=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const dimensionMaxMap={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},SiderContext=reactExports.createContext({}),generateId$2=(()=>{let x_=0;return function(){let eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return x_+=1,`${eme}${x_}`}})(),Sider$3=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,trigger:ame,children:nme,defaultCollapsed:rme=!1,theme:ime="dark",style:ome={},collapsible:lme=!1,reverseArrow:sme=!1,width:cme=200,collapsedWidth:dme=80,zeroWidthTriggerStyle:ume,breakpoint:fme,onCollapse:pme,onBreakpoint:hme}=x_,bme=__rest$O(x_,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:mme}=reactExports.useContext(LayoutContext),[vme,gme]=reactExports.useState("collapsed"in x_?x_.collapsed:rme),[yme,_me]=reactExports.useState(!1);reactExports.useEffect(()=>{"collapsed"in x_&&gme(x_.collapsed)},[x_.collapsed]);const $me=(Pme,Mme)=>{"collapsed"in x_||gme(Pme),pme==null||pme(Pme,Mme)},{getPrefixCls:Cme}=reactExports.useContext(ConfigContext),Sme=Cme("layout-sider",$P),[Eme,xme,Tme]=useStyle$k(Sme),Ome=reactExports.useRef();Ome.current=Pme=>{_me(Pme.matches),hme==null||hme(Pme.matches),vme!==Pme.matches&&$me(Pme.matches,"responsive")},reactExports.useEffect(()=>{function Pme(kme){return Ome.current(kme)}let Mme;if(typeof window<"u"){const{matchMedia:kme}=window;if(kme&&fme&&fme in dimensionMaxMap){Mme=kme(`screen and (max-width: ${dimensionMaxMap[fme]})`);try{Mme.addEventListener("change",Pme)}catch{Mme.addListener(Pme)}Pme(Mme)}}return()=>{try{Mme==null||Mme.removeEventListener("change",Pme)}catch{Mme==null||Mme.removeListener(Pme)}}},[fme]),reactExports.useEffect(()=>{const Pme=generateId$2("ant-sider-");return mme.addSider(Pme),()=>mme.removeSider(Pme)},[]);const Rme=()=>{$me(!vme,"clickTrigger")},Nme=()=>{const Pme=omit$2(bme,["collapsed"]),Mme=vme?dme:cme,kme=isNumeric$2(Mme)?`${Mme}px`:String(Mme),Bme=parseFloat(String(dme||0))===0?reactExports.createElement("span",{onClick:Rme,className:classNames(`${Sme}-zero-width-trigger`,`${Sme}-zero-width-trigger-${sme?"right":"left"}`),style:ume},ame||reactExports.createElement(RefIcon$d,null)):null,Vme={expanded:sme?reactExports.createElement(RefIcon$i,null):reactExports.createElement(RefIcon$c,null),collapsed:sme?reactExports.createElement(RefIcon$c,null):reactExports.createElement(RefIcon$i,null)}[vme?"collapsed":"expanded"],Wme=ame!==null?Bme||reactExports.createElement("div",{className:`${Sme}-trigger`,onClick:Rme,style:{width:kme}},ame||Vme):null,Lme=Object.assign(Object.assign({},ome),{flex:`0 0 ${kme}`,maxWidth:kme,minWidth:kme,width:kme}),zme=classNames(Sme,`${Sme}-${ime}`,{[`${Sme}-collapsed`]:!!vme,[`${Sme}-has-trigger`]:lme&&ame!==null&&!Bme,[`${Sme}-below`]:!!yme,[`${Sme}-zero-width`]:parseFloat(kme)===0},tme,xme,Tme);return reactExports.createElement("aside",Object.assign({className:zme},Pme,{style:Lme,ref:eme}),reactExports.createElement("div",{className:`${Sme}-children`},nme),lme||yme&&Bme?Wme:null)},Ime=reactExports.useMemo(()=>({siderCollapsed:vme}),[vme]);return Eme(reactExports.createElement(SiderContext.Provider,{value:Ime},Nme()))});var EllipsisOutlined$1={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"},EllipsisOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:EllipsisOutlined$1}))},RefIcon$b=reactExports.forwardRef(EllipsisOutlined);const MenuContext$1=reactExports.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var __rest$N=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const MenuDivider=x_=>{const{prefixCls:eme,className:$P,dashed:tme}=x_,ame=__rest$N(x_,["prefixCls","className","dashed"]),{getPrefixCls:nme}=reactExports.useContext(ConfigContext),rme=nme("menu",eme),ime=classNames({[`${rme}-item-divider-dashed`]:!!tme},$P);return reactExports.createElement(Divider$1,Object.assign({className:ime},ame))},MenuItem$2=x_=>{var eme;const{className:$P,children:tme,icon:ame,title:nme,danger:rme,extra:ime}=x_,{prefixCls:ome,firstLevel:lme,direction:sme,disableMenuItemTitleTooltip:cme,inlineCollapsed:dme}=reactExports.useContext(MenuContext$1),ume=vme=>{const gme=tme==null?void 0:tme[0],yme=reactExports.createElement("span",{className:classNames(`${ome}-title-content`,{[`${ome}-title-content-with-extra`]:!!ime||ime===0})},tme);return(!ame||reactExports.isValidElement(tme)&&tme.type==="span")&&tme&&vme&&lme&&typeof gme=="string"?reactExports.createElement("div",{className:`${ome}-inline-collapsed-noicon`},gme.charAt(0)):yme},{siderCollapsed:fme}=reactExports.useContext(SiderContext);let pme=nme;typeof nme>"u"?pme=lme?tme:"":nme===!1&&(pme="");const hme={title:pme};!fme&&!dme&&(hme.title=null,hme.open=!1);const bme=toArray$6(tme).length;let mme=reactExports.createElement(Item$2,Object.assign({},omit$2(x_,["title","icon","danger"]),{className:classNames({[`${ome}-item-danger`]:rme,[`${ome}-item-only-child`]:(ame?bme+1:bme)===1},$P),title:typeof nme=="string"?nme:void 0}),cloneElement(ame,{className:classNames(reactExports.isValidElement(ame)?(eme=ame.props)===null||eme===void 0?void 0:eme.className:"",`${ome}-item-icon`)}),ume(dme));return cme||(mme=reactExports.createElement(Tooltip$2,Object.assign({},hme,{placement:sme==="rtl"?"left":"right",overlayClassName:`${ome}-inline-collapsed-tooltip`}),mme)),mme};var __rest$M=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const OverrideContext=reactExports.createContext(null),OverrideProvider=reactExports.forwardRef((x_,eme)=>{const{children:$P}=x_,tme=__rest$M(x_,["children"]),ame=reactExports.useContext(OverrideContext),nme=reactExports.useMemo(()=>Object.assign(Object.assign({},ame),tme),[ame,tme.prefixCls,tme.mode,tme.selectable,tme.rootClassName]),rme=supportNodeRef($P),ime=useComposeRef(eme,rme?$P.ref:null);return reactExports.createElement(OverrideContext.Provider,{value:nme},reactExports.createElement(ContextIsolator,{space:!0},rme?reactExports.cloneElement($P,{ref:ime}):$P))}),getHorizontalStyle=x_=>{const{componentCls:eme,motionDurationSlow:$P,horizontalLineHeight:tme,colorSplit:ame,lineWidth:nme,lineType:rme,itemPaddingInline:ime}=x_;return{[`${eme}-horizontal`]:{lineHeight:tme,border:0,borderBottom:`${unit$1(nme)} ${rme} ${ame}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${eme}-item, ${eme}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ime},[`> ${eme}-item:hover,
        > ${eme}-item-active,
        > ${eme}-submenu ${eme}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${eme}-item, ${eme}-submenu-title`]:{transition:[`border-color ${$P}`,`background ${$P}`].join(",")},[`${eme}-submenu-arrow`]:{display:"none"}}}},getRTLStyle=x_=>{let{componentCls:eme,menuArrowOffset:$P,calc:tme}=x_;return{[`${eme}-rtl`]:{direction:"rtl"},[`${eme}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${eme}-rtl${eme}-vertical,
    ${eme}-submenu-rtl ${eme}-vertical`]:{[`${eme}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit$1(tme($P).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit$1($P)})`}}}}},accessibilityFocus=x_=>Object.assign({},genFocusOutline(x_)),getThemeStyle=(x_,eme)=>{const{componentCls:$P,itemColor:tme,itemSelectedColor:ame,groupTitleColor:nme,itemBg:rme,subMenuItemBg:ime,itemSelectedBg:ome,activeBarHeight:lme,activeBarWidth:sme,activeBarBorderWidth:cme,motionDurationSlow:dme,motionEaseInOut:ume,motionEaseOut:fme,itemPaddingInline:pme,motionDurationMid:hme,itemHoverColor:bme,lineType:mme,colorSplit:vme,itemDisabledColor:gme,dangerItemColor:yme,dangerItemHoverColor:_me,dangerItemSelectedColor:$me,dangerItemActiveBg:Cme,dangerItemSelectedBg:Sme,popupBg:Eme,itemHoverBg:xme,itemActiveBg:Tme,menuSubMenuBg:Ome,horizontalItemSelectedColor:Rme,horizontalItemSelectedBg:Nme,horizontalItemBorderRadius:Ime,horizontalItemHoverBg:Pme}=x_;return{[`${$P}-${eme}, ${$P}-${eme} > ${$P}`]:{color:tme,background:rme,[`&${$P}-root:focus-visible`]:Object.assign({},accessibilityFocus(x_)),[`${$P}-item`]:{"&-group-title, &-extra":{color:nme}},[`${$P}-submenu-selected`]:{[`> ${$P}-submenu-title`]:{color:ame}},[`${$P}-item, ${$P}-submenu-title`]:{color:tme,[`&:not(${$P}-item-disabled):focus-visible`]:Object.assign({},accessibilityFocus(x_))},[`${$P}-item-disabled, ${$P}-submenu-disabled`]:{color:`${gme} !important`},[`${$P}-item:not(${$P}-item-selected):not(${$P}-submenu-selected)`]:{[`&:hover, > ${$P}-submenu-title:hover`]:{color:bme}},[`&:not(${$P}-horizontal)`]:{[`${$P}-item:not(${$P}-item-selected)`]:{"&:hover":{backgroundColor:xme},"&:active":{backgroundColor:Tme}},[`${$P}-submenu-title`]:{"&:hover":{backgroundColor:xme},"&:active":{backgroundColor:Tme}}},[`${$P}-item-danger`]:{color:yme,[`&${$P}-item:hover`]:{[`&:not(${$P}-item-selected):not(${$P}-submenu-selected)`]:{color:_me}},[`&${$P}-item:active`]:{background:Cme}},[`${$P}-item a`]:{"&, &:hover":{color:"inherit"}},[`${$P}-item-selected`]:{color:ame,[`&${$P}-item-danger`]:{color:$me},"a, a:hover":{color:"inherit"}},[`& ${$P}-item-selected`]:{backgroundColor:ome,[`&${$P}-item-danger`]:{backgroundColor:Sme}},[`&${$P}-submenu > ${$P}`]:{backgroundColor:Ome},[`&${$P}-popup > ${$P}`]:{backgroundColor:Eme},[`&${$P}-submenu-popup > ${$P}`]:{backgroundColor:Eme},[`&${$P}-horizontal`]:Object.assign(Object.assign({},eme==="dark"?{borderBottom:0}:{}),{[`> ${$P}-item, > ${$P}-submenu`]:{top:cme,marginTop:x_.calc(cme).mul(-1).equal(),marginBottom:0,borderRadius:Ime,"&::after":{position:"absolute",insetInline:pme,bottom:0,borderBottom:`${unit$1(lme)} solid transparent`,transition:`border-color ${dme} ${ume}`,content:'""'},"&:hover, &-active, &-open":{background:Pme,"&::after":{borderBottomWidth:lme,borderBottomColor:Rme}},"&-selected":{color:Rme,backgroundColor:Nme,"&:hover":{backgroundColor:Nme},"&::after":{borderBottomWidth:lme,borderBottomColor:Rme}}}}),[`&${$P}-root`]:{[`&${$P}-inline, &${$P}-vertical`]:{borderInlineEnd:`${unit$1(cme)} ${mme} ${vme}`}},[`&${$P}-inline`]:{[`${$P}-sub${$P}-inline`]:{background:ime},[`${$P}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit$1(sme)} solid ${ame}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${hme} ${fme}`,`opacity ${hme} ${fme}`].join(","),content:'""'},[`&${$P}-item-danger`]:{"&::after":{borderInlineEndColor:$me}}},[`${$P}-selected, ${$P}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${hme} ${ume}`,`opacity ${hme} ${ume}`].join(",")}}}}}},getVerticalInlineStyle=x_=>{const{componentCls:eme,itemHeight:$P,itemMarginInline:tme,padding:ame,menuArrowSize:nme,marginXS:rme,itemMarginBlock:ime,itemWidth:ome,itemPaddingInline:lme}=x_,sme=x_.calc(nme).add(ame).add(rme).equal();return{[`${eme}-item`]:{position:"relative",overflow:"hidden"},[`${eme}-item, ${eme}-submenu-title`]:{height:$P,lineHeight:unit$1($P),paddingInline:lme,overflow:"hidden",textOverflow:"ellipsis",marginInline:tme,marginBlock:ime,width:ome},[`> ${eme}-item,
            > ${eme}-submenu > ${eme}-submenu-title`]:{height:$P,lineHeight:unit$1($P)},[`${eme}-item-group-list ${eme}-submenu-title,
            ${eme}-submenu-title`]:{paddingInlineEnd:sme}}},getVerticalStyle=x_=>{const{componentCls:eme,iconCls:$P,itemHeight:tme,colorTextLightSolid:ame,dropdownWidth:nme,controlHeightLG:rme,motionEaseOut:ime,paddingXL:ome,itemMarginInline:lme,fontSizeLG:sme,motionDurationFast:cme,motionDurationSlow:dme,paddingXS:ume,boxShadowSecondary:fme,collapsedWidth:pme,collapsedIconSize:hme}=x_,bme={height:tme,lineHeight:unit$1(tme),listStylePosition:"inside",listStyleType:"disc"};return[{[eme]:{"&-inline, &-vertical":Object.assign({[`&${eme}-root`]:{boxShadow:"none"}},getVerticalInlineStyle(x_))},[`${eme}-submenu-popup`]:{[`${eme}-vertical`]:Object.assign(Object.assign({},getVerticalInlineStyle(x_)),{boxShadow:fme})}},{[`${eme}-submenu-popup ${eme}-vertical${eme}-sub`]:{minWidth:nme,maxHeight:`calc(100vh - ${unit$1(x_.calc(rme).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${eme}-inline`]:{width:"100%",[`&${eme}-root`]:{[`${eme}-item, ${eme}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${dme}`,`background ${dme}`,`padding ${cme} ${ime}`].join(","),[`> ${eme}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${eme}-sub${eme}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${eme}-submenu > ${eme}-submenu-title`]:bme,[`& ${eme}-item-group-title`]:{paddingInlineStart:ome}},[`${eme}-item`]:bme}},{[`${eme}-inline-collapsed`]:{width:pme,[`&${eme}-root`]:{[`${eme}-item, ${eme}-submenu ${eme}-submenu-title`]:{[`> ${eme}-inline-collapsed-noicon`]:{fontSize:sme,textAlign:"center"}}},[`> ${eme}-item,
          > ${eme}-item-group > ${eme}-item-group-list > ${eme}-item,
          > ${eme}-item-group > ${eme}-item-group-list > ${eme}-submenu > ${eme}-submenu-title,
          > ${eme}-submenu > ${eme}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${unit$1(x_.calc(sme).div(2).equal())} - ${unit$1(lme)})`,textOverflow:"clip",[`
            ${eme}-submenu-arrow,
            ${eme}-submenu-expand-icon
          `]:{opacity:0},[`${eme}-item-icon, ${$P}`]:{margin:0,fontSize:hme,lineHeight:unit$1(tme),"+ span":{display:"inline-block",opacity:0}}},[`${eme}-item-icon, ${$P}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${eme}-item-icon, ${$P}`]:{display:"none"},"a, a:hover":{color:ame}},[`${eme}-item-group-title`]:Object.assign(Object.assign({},textEllipsis),{paddingInline:ume})}}]},genMenuItemStyle=x_=>{const{componentCls:eme,motionDurationSlow:$P,motionDurationMid:tme,motionEaseInOut:ame,motionEaseOut:nme,iconCls:rme,iconSize:ime,iconMarginInlineEnd:ome}=x_;return{[`${eme}-item, ${eme}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${$P}`,`background ${$P}`,`padding calc(${$P} + 0.1s) ${ame}`].join(","),[`${eme}-item-icon, ${rme}`]:{minWidth:ime,fontSize:ime,transition:[`font-size ${tme} ${nme}`,`margin ${$P} ${ame}`,`color ${$P}`].join(","),"+ span":{marginInlineStart:ome,opacity:1,transition:[`opacity ${$P} ${ame}`,`margin ${$P}`,`color ${$P}`].join(",")}},[`${eme}-item-icon`]:Object.assign({},resetIcon()),[`&${eme}-item-only-child`]:{[`> ${rme}, > ${eme}-item-icon`]:{marginInlineEnd:0}}},[`${eme}-item-disabled, ${eme}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${eme}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},genSubMenuArrowStyle=x_=>{const{componentCls:eme,motionDurationSlow:$P,motionEaseInOut:tme,borderRadius:ame,menuArrowSize:nme,menuArrowOffset:rme}=x_;return{[`${eme}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:x_.margin,width:nme,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${$P} ${tme}, opacity ${$P}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:x_.calc(nme).mul(.6).equal(),height:x_.calc(nme).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ame,transition:[`background ${$P} ${tme}`,`transform ${$P} ${tme}`,`top ${$P} ${tme}`,`color ${$P} ${tme}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit$1(x_.calc(rme).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit$1(rme)})`}}}}},getBaseStyle=x_=>{const{antCls:eme,componentCls:$P,fontSize:tme,motionDurationSlow:ame,motionDurationMid:nme,motionEaseInOut:rme,paddingXS:ime,padding:ome,colorSplit:lme,lineWidth:sme,zIndexPopup:cme,borderRadiusLG:dme,subMenuItemBorderRadius:ume,menuArrowSize:fme,menuArrowOffset:pme,lineType:hme,groupTitleLineHeight:bme,groupTitleFontSize:mme}=x_;return[{"":{[$P]:Object.assign(Object.assign({},clearFix()),{"&-hidden":{display:"none"}})},[`${$P}-submenu-hidden`]:{display:"none"}},{[$P]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),clearFix()),{marginBottom:0,paddingInlineStart:0,fontSize:tme,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ame} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${$P}-item`]:{flex:"none"}},[`${$P}-item, ${$P}-submenu, ${$P}-submenu-title`]:{borderRadius:x_.itemBorderRadius},[`${$P}-item-group-title`]:{padding:`${unit$1(ime)} ${unit$1(ome)}`,fontSize:mme,lineHeight:bme,transition:`all ${ame}`},[`&-horizontal ${$P}-submenu`]:{transition:[`border-color ${ame} ${rme}`,`background ${ame} ${rme}`].join(",")},[`${$P}-submenu, ${$P}-submenu-inline`]:{transition:[`border-color ${ame} ${rme}`,`background ${ame} ${rme}`,`padding ${nme} ${rme}`].join(",")},[`${$P}-submenu ${$P}-sub`]:{cursor:"initial",transition:[`background ${ame} ${rme}`,`padding ${ame} ${rme}`].join(",")},[`${$P}-title-content`]:{transition:`color ${ame}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${eme}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${$P}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:x_.padding,fontSize:x_.fontSizeSM}},[`${$P}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${$P}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:lme,borderStyle:hme,borderWidth:0,borderTopWidth:sme,marginBlock:sme,padding:0,"&-dashed":{borderStyle:"dashed"}}}),genMenuItemStyle(x_)),{[`${$P}-item-group`]:{[`${$P}-item-group-list`]:{margin:0,padding:0,[`${$P}-item, ${$P}-submenu-title`]:{paddingInline:`${unit$1(x_.calc(tme).mul(2).equal())} ${unit$1(ome)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:cme,borderRadius:dme,boxShadow:"none",transformOrigin:"0 0",[`&${$P}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${$P}`]:Object.assign(Object.assign(Object.assign({borderRadius:dme},genMenuItemStyle(x_)),genSubMenuArrowStyle(x_)),{[`${$P}-item, ${$P}-submenu > ${$P}-submenu-title`]:{borderRadius:ume},[`${$P}-submenu-title::after`]:{transition:`transform ${ame} ${rme}`}})},"\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:x_.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:x_.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:x_.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:x_.paddingXS}}}),genSubMenuArrowStyle(x_)),{[`&-inline-collapsed ${$P}-submenu-arrow,
        &-inline ${$P}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit$1(pme)})`},"&::after":{transform:`rotate(45deg) translateX(${unit$1(x_.calc(pme).mul(-1).equal())})`}},[`${$P}-submenu-open${$P}-submenu-inline > ${$P}-submenu-title > ${$P}-submenu-arrow`]:{transform:`translateY(${unit$1(x_.calc(fme).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit$1(x_.calc(pme).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit$1(pme)})`}}})},{[`${eme}-layout-header`]:{[$P]:{lineHeight:"inherit"}}}]},prepareComponentToken$f=x_=>{var eme,$P,tme;const{colorPrimary:ame,colorError:nme,colorTextDisabled:rme,colorErrorBg:ime,colorText:ome,colorTextDescription:lme,colorBgContainer:sme,colorFillAlter:cme,colorFillContent:dme,lineWidth:ume,lineWidthBold:fme,controlItemBgActive:pme,colorBgTextHover:hme,controlHeightLG:bme,lineHeight:mme,colorBgElevated:vme,marginXXS:gme,padding:yme,fontSize:_me,controlHeightSM:$me,fontSizeLG:Cme,colorTextLightSolid:Sme,colorErrorHover:Eme}=x_,xme=(eme=x_.activeBarWidth)!==null&&eme!==void 0?eme:0,Tme=($P=x_.activeBarBorderWidth)!==null&&$P!==void 0?$P:ume,Ome=(tme=x_.itemMarginInline)!==null&&tme!==void 0?tme:x_.marginXXS,Rme=new TinyColor(Sme).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:x_.zIndexPopupBase+50,radiusItem:x_.borderRadiusLG,itemBorderRadius:x_.borderRadiusLG,radiusSubMenuItem:x_.borderRadiusSM,subMenuItemBorderRadius:x_.borderRadiusSM,colorItemText:ome,itemColor:ome,colorItemTextHover:ome,itemHoverColor:ome,colorItemTextHoverHorizontal:ame,horizontalItemHoverColor:ame,colorGroupTitle:lme,groupTitleColor:lme,colorItemTextSelected:ame,itemSelectedColor:ame,colorItemTextSelectedHorizontal:ame,horizontalItemSelectedColor:ame,colorItemBg:sme,itemBg:sme,colorItemBgHover:hme,itemHoverBg:hme,colorItemBgActive:dme,itemActiveBg:pme,colorSubItemBg:cme,subMenuItemBg:cme,colorItemBgSelected:pme,itemSelectedBg:pme,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:xme,colorActiveBarHeight:fme,activeBarHeight:fme,colorActiveBarBorderSize:ume,activeBarBorderWidth:Tme,colorItemTextDisabled:rme,itemDisabledColor:rme,colorDangerItemText:nme,dangerItemColor:nme,colorDangerItemTextHover:nme,dangerItemHoverColor:nme,colorDangerItemTextSelected:nme,dangerItemSelectedColor:nme,colorDangerItemBgActive:ime,dangerItemActiveBg:ime,colorDangerItemBgSelected:ime,dangerItemSelectedBg:ime,itemMarginInline:Ome,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bme,groupTitleLineHeight:mme,collapsedWidth:bme*2,popupBg:vme,itemMarginBlock:gme,itemPaddingInline:yme,horizontalLineHeight:`${bme*1.15}px`,iconSize:_me,iconMarginInlineEnd:$me-_me,collapsedIconSize:Cme,groupTitleFontSize:_me,darkItemDisabledColor:new TinyColor(Sme).setAlpha(.25).toRgbString(),darkItemColor:Rme,darkDangerItemColor:nme,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Sme,darkItemSelectedBg:ame,darkDangerItemSelectedBg:nme,darkItemHoverBg:"transparent",darkGroupTitleColor:Rme,darkItemHoverColor:Sme,darkDangerItemHoverColor:Eme,darkDangerItemSelectedColor:Sme,darkDangerItemActiveBg:nme,itemWidth:xme?`calc(100% + ${Tme}px)`:`calc(100% - ${Ome*2}px)`}},useStyle$j=function(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x_,$P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return genStyleHooks("Menu",ame=>{const{colorBgElevated:nme,controlHeightLG:rme,fontSize:ime,darkItemColor:ome,darkDangerItemColor:lme,darkItemBg:sme,darkSubMenuItemBg:cme,darkItemSelectedColor:dme,darkItemSelectedBg:ume,darkDangerItemSelectedBg:fme,darkItemHoverBg:pme,darkGroupTitleColor:hme,darkItemHoverColor:bme,darkItemDisabledColor:mme,darkDangerItemHoverColor:vme,darkDangerItemSelectedColor:gme,darkDangerItemActiveBg:yme,popupBg:_me,darkPopupBg:$me}=ame,Cme=ame.calc(ime).div(7).mul(5).equal(),Sme=merge$5(ame,{menuArrowSize:Cme,menuHorizontalHeight:ame.calc(rme).mul(1.15).equal(),menuArrowOffset:ame.calc(Cme).mul(.25).equal(),menuSubMenuBg:nme,calc:ame.calc,popupBg:_me}),Eme=merge$5(Sme,{itemColor:ome,itemHoverColor:bme,groupTitleColor:hme,itemSelectedColor:dme,itemBg:sme,popupBg:$me,subMenuItemBg:cme,itemActiveBg:"transparent",itemSelectedBg:ume,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pme,itemDisabledColor:mme,dangerItemColor:lme,dangerItemHoverColor:vme,dangerItemSelectedColor:gme,dangerItemActiveBg:yme,dangerItemSelectedBg:fme,menuSubMenuBg:cme,horizontalItemSelectedColor:dme,horizontalItemSelectedBg:ume});return[getBaseStyle(Sme),getHorizontalStyle(Sme),getVerticalStyle(Sme),getThemeStyle(Sme,"light"),getThemeStyle(Eme,"dark"),getRTLStyle(Sme),genCollapseMotion(Sme),initSlideMotion(Sme,"slide-up"),initSlideMotion(Sme,"slide-down"),initZoomMotion(Sme,"zoom-big")]},prepareComponentToken$f,{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:$P,unitless:{groupTitleLineHeight:!0}})(x_,eme)},SubMenu$2=x_=>{var eme;const{popupClassName:$P,icon:tme,title:ame,theme:nme}=x_,rme=reactExports.useContext(MenuContext$1),{prefixCls:ime,inlineCollapsed:ome,theme:lme}=rme,sme=useFullPath();let cme;if(!tme)cme=ome&&!sme.length&&ame&&typeof ame=="string"?reactExports.createElement("div",{className:`${ime}-inline-collapsed-noicon`},ame.charAt(0)):reactExports.createElement("span",{className:`${ime}-title-content`},ame);else{const fme=reactExports.isValidElement(ame)&&ame.type==="span";cme=reactExports.createElement(reactExports.Fragment,null,cloneElement(tme,{className:classNames(reactExports.isValidElement(tme)?(eme=tme.props)===null||eme===void 0?void 0:eme.className:"",`${ime}-item-icon`)}),fme?ame:reactExports.createElement("span",{className:`${ime}-title-content`},ame))}const dme=reactExports.useMemo(()=>Object.assign(Object.assign({},rme),{firstLevel:!1}),[rme]),[ume]=useZIndex("Menu");return reactExports.createElement(MenuContext$1.Provider,{value:dme},reactExports.createElement(SubMenu$3,Object.assign({},omit$2(x_,["icon"]),{title:cme,popupClassName:classNames(ime,$P,`${ime}-${nme||lme}`),popupStyle:Object.assign({zIndex:ume},x_.popupStyle)})))};var __rest$L=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function isEmptyIcon(x_){return x_===null||x_===!1}const MENU_COMPONENTS={item:MenuItem$2,submenu:SubMenu$2,divider:MenuDivider},InternalMenu=reactExports.forwardRef((x_,eme)=>{var $P;const tme=reactExports.useContext(OverrideContext),ame=tme||{},{getPrefixCls:nme,getPopupContainer:rme,direction:ime,menu:ome}=reactExports.useContext(ConfigContext),lme=nme(),{prefixCls:sme,className:cme,style:dme,theme:ume="light",expandIcon:fme,_internalDisableMenuItemTitleTooltip:pme,inlineCollapsed:hme,siderCollapsed:bme,rootClassName:mme,mode:vme,selectable:gme,onClick:yme,overflowedIndicatorPopupClassName:_me}=x_,$me=__rest$L(x_,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Cme=omit$2($me,["collapsedWidth"]);($P=ame.validator)===null||$P===void 0||$P.call(ame,{mode:vme});const Sme=useEvent(function(){var jme;yme==null||yme.apply(void 0,arguments),(jme=ame.onClick)===null||jme===void 0||jme.call(ame)}),Eme=ame.mode||vme,xme=gme??ame.selectable,Tme=hme??bme,Ome={horizontal:{motionName:`${lme}-slide-up`},inline:initCollapseMotion(lme),other:{motionName:`${lme}-zoom-big`}},Rme=nme("menu",sme||ame.prefixCls),Nme=useCSSVarCls(Rme),[Ime,Pme,Mme]=useStyle$j(Rme,Nme,!tme),kme=classNames(`${Rme}-${ume}`,ome==null?void 0:ome.className,cme),Bme=reactExports.useMemo(()=>{var jme,Vme;if(typeof fme=="function"||isEmptyIcon(fme))return fme||null;if(typeof ame.expandIcon=="function"||isEmptyIcon(ame.expandIcon))return ame.expandIcon||null;if(typeof(ome==null?void 0:ome.expandIcon)=="function"||isEmptyIcon(ome==null?void 0:ome.expandIcon))return(ome==null?void 0:ome.expandIcon)||null;const Wme=(jme=fme??(ame==null?void 0:ame.expandIcon))!==null&&jme!==void 0?jme:ome==null?void 0:ome.expandIcon;return cloneElement(Wme,{className:classNames(`${Rme}-submenu-expand-icon`,reactExports.isValidElement(Wme)?(Vme=Wme.props)===null||Vme===void 0?void 0:Vme.className:void 0)})},[fme,ame==null?void 0:ame.expandIcon,ome==null?void 0:ome.expandIcon,Rme]),Dme=reactExports.useMemo(()=>({prefixCls:Rme,inlineCollapsed:Tme||!1,direction:ime,firstLevel:!0,theme:ume,mode:Eme,disableMenuItemTitleTooltip:pme}),[Rme,Tme,ime,pme,ume]);return Ime(reactExports.createElement(OverrideContext.Provider,{value:null},reactExports.createElement(MenuContext$1.Provider,{value:Dme},reactExports.createElement(ExportMenu,Object.assign({getPopupContainer:rme,overflowedIndicator:reactExports.createElement(RefIcon$b,null),overflowedIndicatorPopupClassName:classNames(Rme,`${Rme}-${ume}`,_me),mode:Eme,selectable:xme,onClick:Sme},Cme,{inlineCollapsed:Tme,style:Object.assign(Object.assign({},ome==null?void 0:ome.style),dme),className:kme,prefixCls:Rme,direction:ime,defaultMotions:Ome,expandIcon:Bme,ref:eme,rootClassName:classNames(mme,Pme,ame.rootClassName,Mme,Nme),_internalComponents:MENU_COMPONENTS})))))}),Menu$2=reactExports.forwardRef((x_,eme)=>{const $P=reactExports.useRef(null),tme=reactExports.useContext(SiderContext);return reactExports.useImperativeHandle(eme,()=>({menu:$P.current,focus:ame=>{var nme;(nme=$P.current)===null||nme===void 0||nme.focus(ame)}})),reactExports.createElement(InternalMenu,Object.assign({ref:$P},x_,tme))});Menu$2.Item=MenuItem$2;Menu$2.SubMenu=SubMenu$2;Menu$2.Divider=MenuDivider;Menu$2.ItemGroup=MenuItemGroup;const genStatusStyle$1=x_=>{const{componentCls:eme,menuCls:$P,colorError:tme,colorTextLightSolid:ame}=x_,nme=`${$P}-item`;return{[`${eme}, ${eme}-menu-submenu`]:{[`${$P} ${nme}`]:{[`&${nme}-danger:not(${nme}-disabled)`]:{color:tme,"&:hover":{color:ame,backgroundColor:tme}}}}}},genBaseStyle$1=x_=>{const{componentCls:eme,menuCls:$P,zIndexPopup:tme,dropdownArrowDistance:ame,sizePopupArrow:nme,antCls:rme,iconCls:ime,motionDurationMid:ome,paddingBlock:lme,fontSize:sme,dropdownEdgeChildPadding:cme,colorTextDisabled:dme,fontSizeIcon:ume,controlPaddingHorizontal:fme,colorBgElevated:pme}=x_;return[{[eme]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:tme,display:"block","&::before":{position:"absolute",insetBlock:x_.calc(nme).div(2).sub(ame).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${rme}-btn`]:{[`& > ${ime}-down, & > ${rme}-btn-icon > ${ime}-down`]:{fontSize:ume}},[`${eme}-wrap`]:{position:"relative",[`${rme}-btn > ${ime}-down`]:{fontSize:ume},[`${ime}-down::before`]:{transition:`transform ${ome}`}},[`${eme}-wrap-open`]:{[`${ime}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${rme}-slide-down-enter${rme}-slide-down-enter-active${eme}-placement-bottomLeft,
          &${rme}-slide-down-appear${rme}-slide-down-appear-active${eme}-placement-bottomLeft,
          &${rme}-slide-down-enter${rme}-slide-down-enter-active${eme}-placement-bottom,
          &${rme}-slide-down-appear${rme}-slide-down-appear-active${eme}-placement-bottom,
          &${rme}-slide-down-enter${rme}-slide-down-enter-active${eme}-placement-bottomRight,
          &${rme}-slide-down-appear${rme}-slide-down-appear-active${eme}-placement-bottomRight`]:{animationName:slideUpIn},[`&${rme}-slide-up-enter${rme}-slide-up-enter-active${eme}-placement-topLeft,
          &${rme}-slide-up-appear${rme}-slide-up-appear-active${eme}-placement-topLeft,
          &${rme}-slide-up-enter${rme}-slide-up-enter-active${eme}-placement-top,
          &${rme}-slide-up-appear${rme}-slide-up-appear-active${eme}-placement-top,
          &${rme}-slide-up-enter${rme}-slide-up-enter-active${eme}-placement-topRight,
          &${rme}-slide-up-appear${rme}-slide-up-appear-active${eme}-placement-topRight`]:{animationName:slideDownIn},[`&${rme}-slide-down-leave${rme}-slide-down-leave-active${eme}-placement-bottomLeft,
          &${rme}-slide-down-leave${rme}-slide-down-leave-active${eme}-placement-bottom,
          &${rme}-slide-down-leave${rme}-slide-down-leave-active${eme}-placement-bottomRight`]:{animationName:slideUpOut},[`&${rme}-slide-up-leave${rme}-slide-up-leave-active${eme}-placement-topLeft,
          &${rme}-slide-up-leave${rme}-slide-up-leave-active${eme}-placement-top,
          &${rme}-slide-up-leave${rme}-slide-up-leave-active${eme}-placement-topRight`]:{animationName:slideDownOut}}},getArrowStyle(x_,pme,{arrowPlacement:{top:!0,bottom:!0}}),{[`${eme} ${$P}`]:{position:"relative",margin:0},[`${$P}-submenu-popup`]:{position:"absolute",zIndex:tme,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${eme}, ${eme}-menu-submenu`]:Object.assign(Object.assign({},resetComponent(x_)),{[$P]:Object.assign(Object.assign({padding:cme,listStyleType:"none",backgroundColor:pme,backgroundClip:"padding-box",borderRadius:x_.borderRadiusLG,outline:"none",boxShadow:x_.boxShadowSecondary},genFocusStyle(x_)),{"&:empty":{padding:0,boxShadow:"none"},[`${$P}-item-group-title`]:{padding:`${unit$1(lme)} ${unit$1(fme)}`,color:x_.colorTextDescription,transition:`all ${ome}`},[`${$P}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${$P}-item-icon`]:{minWidth:sme,marginInlineEnd:x_.marginXS,fontSize:x_.fontSizeSM},[`${$P}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ome}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${$P}-item-extra`]:{paddingInlineStart:x_.padding,marginInlineStart:"auto",fontSize:x_.fontSizeSM,color:x_.colorTextDescription}},[`${$P}-item, ${$P}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${unit$1(lme)} ${unit$1(fme)}`,color:x_.colorText,fontWeight:"normal",fontSize:sme,lineHeight:x_.lineHeight,cursor:"pointer",transition:`all ${ome}`,borderRadius:x_.borderRadiusSM,"&:hover, &-active":{backgroundColor:x_.controlItemBgHover}},genFocusStyle(x_)),{"&-selected":{color:x_.colorPrimary,backgroundColor:x_.controlItemBgActive,"&:hover, &-active":{backgroundColor:x_.controlItemBgActiveHover}},"&-disabled":{color:dme,cursor:"not-allowed","&:hover":{color:dme,backgroundColor:pme,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit$1(x_.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:x_.colorSplit},[`${eme}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:x_.paddingXS,[`${eme}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:x_.colorTextDescription,fontSize:ume,fontStyle:"normal"}}}),[`${$P}-item-group-list`]:{margin:`0 ${unit$1(x_.marginXS)}`,padding:0,listStyle:"none"},[`${$P}-submenu-title`]:{paddingInlineEnd:x_.calc(fme).add(x_.fontSizeSM).equal()},[`${$P}-submenu-vertical`]:{position:"relative"},[`${$P}-submenu${$P}-submenu-disabled ${eme}-menu-submenu-title`]:{[`&, ${eme}-menu-submenu-arrow-icon`]:{color:dme,backgroundColor:pme,cursor:"not-allowed"}},[`${$P}-submenu-selected ${eme}-menu-submenu-title`]:{color:x_.colorPrimary}})})},[initSlideMotion(x_,"slide-up"),initSlideMotion(x_,"slide-down"),initMoveMotion(x_,"move-up"),initMoveMotion(x_,"move-down"),initZoomMotion(x_,"zoom-big")]]},prepareComponentToken$e=x_=>Object.assign(Object.assign({zIndexPopup:x_.zIndexPopupBase+50,paddingBlock:(x_.controlHeight-x_.fontSize*x_.lineHeight)/2},getArrowOffsetToken({contentRadius:x_.borderRadiusLG,limitVerticalRadius:!0})),getArrowToken(x_)),useStyle$i=genStyleHooks("Dropdown",x_=>{const{marginXXS:eme,sizePopupArrow:$P,paddingXXS:tme,componentCls:ame}=x_,nme=merge$5(x_,{menuCls:`${ame}-menu`,dropdownArrowDistance:x_.calc($P).div(2).add(eme).equal(),dropdownEdgeChildPadding:tme});return[genBaseStyle$1(nme),genStatusStyle$1(nme)]},prepareComponentToken$e,{resetStyle:!1}),Dropdown$1=x_=>{var eme;const{menu:$P,arrow:tme,prefixCls:ame,children:nme,trigger:rme,disabled:ime,dropdownRender:ome,getPopupContainer:lme,overlayClassName:sme,rootClassName:cme,overlayStyle:dme,open:ume,onOpenChange:fme,visible:pme,onVisibleChange:hme,mouseEnterDelay:bme=.15,mouseLeaveDelay:mme=.1,autoAdjustOverflow:vme=!0,placement:gme="",overlay:yme,transitionName:_me}=x_,{getPopupContainer:$me,getPrefixCls:Cme,direction:Sme,dropdown:Eme}=reactExports.useContext(ConfigContext);devUseWarning();const xme=reactExports.useMemo(()=>{const Kme=Cme();return _me!==void 0?_me:gme.includes("top")?`${Kme}-slide-down`:`${Kme}-slide-up`},[Cme,gme,_me]),Tme=reactExports.useMemo(()=>gme?gme.includes("Center")?gme.slice(0,gme.indexOf("Center")):gme:Sme==="rtl"?"bottomRight":"bottomLeft",[gme,Sme]),Ome=Cme("dropdown",ame),Rme=useCSSVarCls(Ome),[Nme,Ime,Pme]=useStyle$i(Ome,Rme),[,Mme]=useToken$1(),kme=reactExports.Children.only(nme),Bme=cloneElement(kme,{className:classNames(`${Ome}-trigger`,{[`${Ome}-rtl`]:Sme==="rtl"},kme.props.className),disabled:(eme=kme.props.disabled)!==null&&eme!==void 0?eme:ime}),Dme=ime?[]:rme,jme=!!(Dme!=null&&Dme.includes("contextMenu")),[Vme,Wme]=useMergedState(!1,{value:ume??pme}),Lme=useEvent(Kme=>{fme==null||fme(Kme,{source:"trigger"}),hme==null||hme(Kme),Wme(Kme)}),zme=classNames(sme,cme,Ime,Pme,Rme,Eme==null?void 0:Eme.className,{[`${Ome}-rtl`]:Sme==="rtl"}),Ume=getPlacements({arrowPointAtCenter:typeof tme=="object"&&tme.pointAtCenter,autoAdjustOverflow:vme,offset:Mme.marginXXS,arrowWidth:tme?Mme.sizePopupArrow:0,borderRadius:Mme.borderRadius}),Gme=reactExports.useCallback(()=>{$P!=null&&$P.selectable&&($P!=null&&$P.multiple)||(fme==null||fme(!1,{source:"menu"}),Wme(!1))},[$P==null?void 0:$P.selectable,$P==null?void 0:$P.multiple]),Jme=()=>{let Kme;return $P!=null&&$P.items?Kme=reactExports.createElement(Menu$2,Object.assign({},$P)):typeof yme=="function"?Kme=yme():Kme=yme,ome&&(Kme=ome(Kme)),Kme=reactExports.Children.only(typeof Kme=="string"?reactExports.createElement("span",null,Kme):Kme),reactExports.createElement(OverrideProvider,{prefixCls:`${Ome}-menu`,rootClassName:classNames(Pme,Rme),expandIcon:reactExports.createElement("span",{className:`${Ome}-menu-submenu-arrow`},reactExports.createElement(RefIcon$i,{className:`${Ome}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Gme,validator:Zme=>{}},Kme)},[Yme,Qme]=useZIndex("Dropdown",dme==null?void 0:dme.zIndex);let Xme=reactExports.createElement(Dropdown$3,Object.assign({alignPoint:jme},omit$2(x_,["rootClassName"]),{mouseEnterDelay:bme,mouseLeaveDelay:mme,visible:Vme,builtinPlacements:Ume,arrow:!!tme,overlayClassName:zme,prefixCls:Ome,getPopupContainer:lme||$me,transitionName:xme,trigger:Dme,overlay:Jme,placement:Tme,onVisibleChange:Lme,overlayStyle:Object.assign(Object.assign(Object.assign({},Eme==null?void 0:Eme.style),dme),{zIndex:Yme})}),Bme);return Yme&&(Xme=reactExports.createElement(zIndexContext.Provider,{value:Qme},Xme)),Nme(Xme)};function postPureProps(x_){return Object.assign(Object.assign({},x_),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const PurePanel$3=genPurePanel(Dropdown$1,"dropdown",x_=>x_,postPureProps),WrapPurePanel=x_=>reactExports.createElement(PurePanel$3,Object.assign({},x_),reactExports.createElement("span",null));Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired=WrapPurePanel;const BreadcrumbSeparator=x_=>{let{children:eme}=x_;const{getPrefixCls:$P}=reactExports.useContext(ConfigContext),tme=$P("breadcrumb");return reactExports.createElement("li",{className:`${tme}-separator`,"aria-hidden":"true"},eme===""?eme:eme||"/")};BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR=!0;var __rest$K=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function getBreadcrumbName(x_,eme){if(x_.title===void 0||x_.title===null)return null;const $P=Object.keys(eme).join("|");return typeof x_.title=="object"?x_.title:String(x_.title).replace(new RegExp(`:(${$P})`,"g"),(tme,ame)=>eme[ame]||tme)}function renderItem(x_,eme,$P,tme){if($P==null)return null;const{className:ame,onClick:nme}=eme,rme=__rest$K(eme,["className","onClick"]),ime=Object.assign(Object.assign({},pickAttrs(rme,{data:!0,aria:!0})),{onClick:nme});return tme!==void 0?reactExports.createElement("a",Object.assign({},ime,{className:classNames(`${x_}-link`,ame),href:tme}),$P):reactExports.createElement("span",Object.assign({},ime,{className:classNames(`${x_}-link`,ame)}),$P)}function useItemRender(x_,eme){return(tme,ame,nme,rme,ime)=>{if(eme)return eme(tme,ame,nme,rme);const ome=getBreadcrumbName(tme,ame);return renderItem(x_,tme,ome,ime)}}var __rest$J=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalBreadcrumbItem=x_=>{const{prefixCls:eme,separator:$P="/",children:tme,menu:ame,overlay:nme,dropdownProps:rme,href:ime}=x_,lme=(sme=>{if(ame||nme){const cme=Object.assign({},rme);if(ame){const dme=ame||{},{items:ume}=dme,fme=__rest$J(dme,["items"]);cme.menu=Object.assign(Object.assign({},fme),{items:ume==null?void 0:ume.map((pme,hme)=>{var{key:bme,title:mme,label:vme,path:gme}=pme,yme=__rest$J(pme,["key","title","label","path"]);let _me=vme??mme;return gme&&(_me=reactExports.createElement("a",{href:`${ime}${gme}`},_me)),Object.assign(Object.assign({},yme),{key:bme??hme,label:_me})})})}else nme&&(cme.overlay=nme);return reactExports.createElement(Dropdown$1,Object.assign({placement:"bottom"},cme),reactExports.createElement("span",{className:`${eme}-overlay-link`},sme,reactExports.createElement(RefIcon$g,null)))}return sme})(tme);return lme!=null?reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("li",null,lme),$P&&reactExports.createElement(BreadcrumbSeparator,null,$P)):null},BreadcrumbItem$1=x_=>{const{prefixCls:eme,children:$P,href:tme}=x_,ame=__rest$J(x_,["prefixCls","children","href"]),{getPrefixCls:nme}=reactExports.useContext(ConfigContext),rme=nme("breadcrumb",eme);return reactExports.createElement(InternalBreadcrumbItem,Object.assign({},ame,{prefixCls:rme}),renderItem(rme,ame,$P,tme))};BreadcrumbItem$1.__ANT_BREADCRUMB_ITEM=!0;const genBreadcrumbStyle=x_=>{const{componentCls:eme,iconCls:$P,calc:tme}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{color:x_.itemColor,fontSize:x_.fontSize,[$P]:{fontSize:x_.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:x_.linkColor,transition:`color ${x_.motionDurationMid}`,padding:`0 ${unit$1(x_.paddingXXS)}`,borderRadius:x_.borderRadiusSM,height:x_.fontHeight,display:"inline-block",marginInline:tme(x_.marginXXS).mul(-1).equal(),"&:hover":{color:x_.linkHoverColor,backgroundColor:x_.colorBgTextHover}},genFocusStyle(x_)),"li:last-child":{color:x_.lastItemColor},[`${eme}-separator`]:{marginInline:x_.separatorMargin,color:x_.separatorColor},[`${eme}-link`]:{[`
          > ${$P} + span,
          > ${$P} + a
        `]:{marginInlineStart:x_.marginXXS}},[`${eme}-overlay-link`]:{borderRadius:x_.borderRadiusSM,height:x_.fontHeight,display:"inline-block",padding:`0 ${unit$1(x_.paddingXXS)}`,marginInline:tme(x_.marginXXS).mul(-1).equal(),[`> ${$P}`]:{marginInlineStart:x_.marginXXS,fontSize:x_.fontSizeIcon},"&:hover":{color:x_.linkHoverColor,backgroundColor:x_.colorBgTextHover,a:{color:x_.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${x_.componentCls}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$d=x_=>({itemColor:x_.colorTextDescription,lastItemColor:x_.colorText,iconFontSize:x_.fontSize,linkColor:x_.colorTextDescription,linkHoverColor:x_.colorText,separatorColor:x_.colorTextDescription,separatorMargin:x_.marginXS}),useStyle$h=genStyleHooks("Breadcrumb",x_=>{const eme=merge$5(x_,{});return genBreadcrumbStyle(eme)},prepareComponentToken$d);var __rest$I=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function route2item(x_){const{breadcrumbName:eme,children:$P}=x_,tme=__rest$I(x_,["breadcrumbName","children"]),ame=Object.assign({title:eme},tme);return $P&&(ame.menu={items:$P.map(nme=>{var{breadcrumbName:rme}=nme,ime=__rest$I(nme,["breadcrumbName"]);return Object.assign(Object.assign({},ime),{title:rme})})}),ame}function useItems(x_,eme){return reactExports.useMemo(()=>x_||(eme?eme.map(route2item):null),[x_,eme])}var __rest$H=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const getPath$2=(x_,eme)=>{if(eme===void 0)return eme;let $P=(eme||"").replace(/^\//,"");return Object.keys(x_).forEach(tme=>{$P=$P.replace(`:${tme}`,x_[tme])}),$P},Breadcrumb$2=x_=>{const{prefixCls:eme,separator:$P="/",style:tme,className:ame,rootClassName:nme,routes:rme,items:ime,children:ome,itemRender:lme,params:sme={}}=x_,cme=__rest$H(x_,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:dme,direction:ume,breadcrumb:fme}=reactExports.useContext(ConfigContext);let pme;const hme=dme("breadcrumb",eme),[bme,mme,vme]=useStyle$h(hme),gme=useItems(ime,rme),yme=useItemRender(hme,lme);if(gme&&gme.length>0){const Cme=[],Sme=ime||rme;pme=gme.map((Eme,xme)=>{const{path:Tme,key:Ome,type:Rme,menu:Nme,overlay:Ime,onClick:Pme,className:Mme,separator:kme,dropdownProps:Bme}=Eme,Dme=getPath$2(sme,Tme);Dme!==void 0&&Cme.push(Dme);const jme=Ome??xme;if(Rme==="separator")return reactExports.createElement(BreadcrumbSeparator,{key:jme},kme);const Vme={},Wme=xme===gme.length-1;Nme?Vme.menu=Nme:Ime&&(Vme.overlay=Ime);let{href:Lme}=Eme;return Cme.length&&Dme!==void 0&&(Lme=`#/${Cme.join("/")}`),reactExports.createElement(InternalBreadcrumbItem,Object.assign({key:jme},Vme,pickAttrs(Eme,{data:!0,aria:!0}),{className:Mme,dropdownProps:Bme,href:Lme,separator:Wme?"":$P,onClick:Pme,prefixCls:hme}),yme(Eme,sme,Sme,Cme,Lme))})}else if(ome){const Cme=toArray$6(ome).length;pme=toArray$6(ome).map((Sme,Eme)=>{if(!Sme)return Sme;const xme=Eme===Cme-1;return cloneElement(Sme,{separator:xme?"":$P,key:Eme})})}const _me=classNames(hme,fme==null?void 0:fme.className,{[`${hme}-rtl`]:ume==="rtl"},ame,nme,mme,vme),$me=Object.assign(Object.assign({},fme==null?void 0:fme.style),tme);return bme(reactExports.createElement("nav",Object.assign({className:_me,style:$me},cme),reactExports.createElement("ol",null,pme)))};Breadcrumb$2.Item=BreadcrumbItem$1;Breadcrumb$2.Separator=BreadcrumbSeparator;const RadioGroupContext=reactExports.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=reactExports.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$m=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$4=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-checkbox":$P,ame=x_.className,nme=x_.style,rme=x_.checked,ime=x_.disabled,ome=x_.defaultChecked,lme=ome===void 0?!1:ome,sme=x_.type,cme=sme===void 0?"checkbox":sme,dme=x_.title,ume=x_.onChange,fme=_objectWithoutProperties$6(x_,_excluded$m),pme=reactExports.useRef(null),hme=reactExports.useRef(null),bme=useMergedState(lme,{value:rme}),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1];reactExports.useImperativeHandle(eme,function(){return{focus:function(Cme){var Sme;(Sme=pme.current)===null||Sme===void 0||Sme.focus(Cme)},blur:function(){var Cme;(Cme=pme.current)===null||Cme===void 0||Cme.blur()},input:pme.current,nativeElement:hme.current}});var yme=classNames(tme,ame,_defineProperty$7(_defineProperty$7({},"".concat(tme,"-checked"),vme),"".concat(tme,"-disabled"),ime)),_me=function(Cme){ime||("checked"in x_||gme(Cme.target.checked),ume==null||ume({target:_objectSpread2$4(_objectSpread2$4({},x_),{},{type:cme,checked:Cme.target.checked}),stopPropagation:function(){Cme.stopPropagation()},preventDefault:function(){Cme.preventDefault()},nativeEvent:Cme.nativeEvent}))};return reactExports.createElement("span",{className:yme,title:dme,style:nme,ref:hme},reactExports.createElement("input",_extends$4C({},fme,{className:"".concat(tme,"-input"),ref:pme,onChange:_me,disabled:ime,checked:!!vme,type:cme})),reactExports.createElement("span",{className:"".concat(tme,"-inner")}))});const getGroupRadioStyle=x_=>{const{componentCls:eme,antCls:$P}=x_,tme=`${eme}-group`;return{[tme]:Object.assign(Object.assign({},resetComponent(x_)),{display:"inline-block",fontSize:0,[`&${tme}-rtl`]:{direction:"rtl"},[`&${tme}-block`]:{display:"flex"},[`${$P}-badge ${$P}-badge-count`]:{zIndex:1},[`> ${$P}-badge:not(:first-child) > ${$P}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=x_=>{const{componentCls:eme,wrapperMarginInlineEnd:$P,colorPrimary:tme,radioSize:ame,motionDurationSlow:nme,motionDurationMid:rme,motionEaseInOutCirc:ime,colorBgContainer:ome,colorBorder:lme,lineWidth:sme,colorBgContainerDisabled:cme,colorTextDisabled:dme,paddingXS:ume,dotColorDisabled:fme,lineType:pme,radioColor:hme,radioBgColor:bme,calc:mme}=x_,vme=`${eme}-inner`,yme=mme(ame).sub(mme(4).mul(2)),_me=mme(1).mul(ame).equal({unit:!0});return{[`${eme}-wrapper`]:Object.assign(Object.assign({},resetComponent(x_)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:$P,cursor:"pointer",[`&${eme}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:x_.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${eme}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit$1(sme)} ${pme} ${tme}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${eme}-wrapper:hover &,
        &:hover ${vme}`]:{borderColor:tme},[`${eme}-input:focus-visible + ${vme}`]:Object.assign({},genFocusOutline(x_)),[`${eme}:hover::after, ${eme}-wrapper:hover &::after`]:{visibility:"visible"},[`${eme}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:_me,height:_me,marginBlockStart:mme(1).mul(ame).div(-2).equal({unit:!0}),marginInlineStart:mme(1).mul(ame).div(-2).equal({unit:!0}),backgroundColor:hme,borderBlockStart:0,borderInlineStart:0,borderRadius:_me,transform:"scale(0)",opacity:0,transition:`all ${nme} ${ime}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:_me,height:_me,backgroundColor:ome,borderColor:lme,borderStyle:"solid",borderWidth:sme,borderRadius:"50%",transition:`all ${rme}`},[`${eme}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${eme}-checked`]:{[vme]:{borderColor:tme,backgroundColor:bme,"&::after":{transform:`scale(${x_.calc(x_.dotSize).div(ame).equal()})`,opacity:1,transition:`all ${nme} ${ime}`}}},[`${eme}-disabled`]:{cursor:"not-allowed",[vme]:{backgroundColor:cme,borderColor:lme,cursor:"not-allowed","&::after":{backgroundColor:fme}},[`${eme}-input`]:{cursor:"not-allowed"},[`${eme}-disabled + span`]:{color:dme,cursor:"not-allowed"},[`&${eme}-checked`]:{[vme]:{"&::after":{transform:`scale(${mme(yme).div(ame).equal()})`}}}},[`span${eme} + *`]:{paddingInlineStart:ume,paddingInlineEnd:ume}})}},getRadioButtonStyle=x_=>{const{buttonColor:eme,controlHeight:$P,componentCls:tme,lineWidth:ame,lineType:nme,colorBorder:rme,motionDurationSlow:ime,motionDurationMid:ome,buttonPaddingInline:lme,fontSize:sme,buttonBg:cme,fontSizeLG:dme,controlHeightLG:ume,controlHeightSM:fme,paddingXS:pme,borderRadius:hme,borderRadiusSM:bme,borderRadiusLG:mme,buttonCheckedBg:vme,buttonSolidCheckedColor:gme,colorTextDisabled:yme,colorBgContainerDisabled:_me,buttonCheckedBgDisabled:$me,buttonCheckedColorDisabled:Cme,colorPrimary:Sme,colorPrimaryHover:Eme,colorPrimaryActive:xme,buttonSolidCheckedBg:Tme,buttonSolidCheckedHoverBg:Ome,buttonSolidCheckedActiveBg:Rme,calc:Nme}=x_;return{[`${tme}-button-wrapper`]:{position:"relative",display:"inline-block",height:$P,margin:0,paddingInline:lme,paddingBlock:0,color:eme,fontSize:sme,lineHeight:unit$1(Nme($P).sub(Nme(ame).mul(2)).equal()),background:cme,border:`${unit$1(ame)} ${nme} ${rme}`,borderBlockStartWidth:Nme(ame).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:ame,cursor:"pointer",transition:[`color ${ome}`,`background ${ome}`,`box-shadow ${ome}`].join(","),a:{color:eme},[`> ${tme}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Nme(ame).mul(-1).equal(),insetInlineStart:Nme(ame).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ame,paddingInline:0,backgroundColor:rme,transition:`background-color ${ime}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit$1(ame)} ${nme} ${rme}`,borderStartStartRadius:hme,borderEndStartRadius:hme},"&:last-child":{borderStartEndRadius:hme,borderEndEndRadius:hme},"&:first-child:last-child":{borderRadius:hme},[`${tme}-group-large &`]:{height:ume,fontSize:dme,lineHeight:unit$1(Nme(ume).sub(Nme(ame).mul(2)).equal()),"&:first-child":{borderStartStartRadius:mme,borderEndStartRadius:mme},"&:last-child":{borderStartEndRadius:mme,borderEndEndRadius:mme}},[`${tme}-group-small &`]:{height:fme,paddingInline:Nme(pme).sub(ame).equal(),paddingBlock:0,lineHeight:unit$1(Nme(fme).sub(Nme(ame).mul(2)).equal()),"&:first-child":{borderStartStartRadius:bme,borderEndStartRadius:bme},"&:last-child":{borderStartEndRadius:bme,borderEndEndRadius:bme}},"&:hover":{position:"relative",color:Sme},"&:has(:focus-visible)":Object.assign({},genFocusOutline(x_)),[`${tme}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${tme}-button-wrapper-disabled)`]:{zIndex:1,color:Sme,background:vme,borderColor:Sme,"&::before":{backgroundColor:Sme},"&:first-child":{borderColor:Sme},"&:hover":{color:Eme,borderColor:Eme,"&::before":{backgroundColor:Eme}},"&:active":{color:xme,borderColor:xme,"&::before":{backgroundColor:xme}}},[`${tme}-group-solid &-checked:not(${tme}-button-wrapper-disabled)`]:{color:gme,background:Tme,borderColor:Tme,"&:hover":{color:gme,background:Ome,borderColor:Ome},"&:active":{color:gme,background:Rme,borderColor:Rme}},"&-disabled":{color:yme,backgroundColor:_me,borderColor:rme,cursor:"not-allowed","&:first-child, &:hover":{color:yme,backgroundColor:_me,borderColor:rme}},[`&-disabled${tme}-button-wrapper-checked`]:{color:Cme,backgroundColor:$me,borderColor:rme,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},prepareComponentToken$c=x_=>{const{wireframe:eme,padding:$P,marginXS:tme,lineWidth:ame,fontSizeLG:nme,colorText:rme,colorBgContainer:ime,colorTextDisabled:ome,controlItemBgActiveDisabled:lme,colorTextLightSolid:sme,colorPrimary:cme,colorPrimaryHover:dme,colorPrimaryActive:ume,colorWhite:fme}=x_,pme=4,hme=nme,bme=eme?hme-pme*2:hme-(pme+ame)*2;return{radioSize:hme,dotSize:bme,dotColorDisabled:ome,buttonSolidCheckedColor:sme,buttonSolidCheckedBg:cme,buttonSolidCheckedHoverBg:dme,buttonSolidCheckedActiveBg:ume,buttonBg:ime,buttonCheckedBg:ime,buttonColor:rme,buttonCheckedBgDisabled:lme,buttonCheckedColorDisabled:ome,buttonPaddingInline:$P-ame,wrapperMarginInlineEnd:tme,radioColor:eme?cme:fme,radioBgColor:eme?ime:cme}},useStyle$g=genStyleHooks("Radio",x_=>{const{controlOutline:eme,controlOutlineWidth:$P}=x_,tme=`0 0 0 ${unit$1($P)} ${eme}`,nme=merge$5(x_,{radioFocusShadow:tme,radioButtonFocusShadow:tme});return[getGroupRadioStyle(nme),getRadioBasicStyle(nme),getRadioButtonStyle(nme)]},prepareComponentToken$c,{unitless:{radioSize:!0,dotSize:!0}});var __rest$G=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalRadio=(x_,eme)=>{var $P,tme;const ame=reactExports.useContext(RadioGroupContext),nme=reactExports.useContext(RadioOptionTypeContext),{getPrefixCls:rme,direction:ime,radio:ome}=reactExports.useContext(ConfigContext),lme=reactExports.useRef(null),sme=composeRef(eme,lme),{isFormItemInput:cme}=reactExports.useContext(FormItemInputContext),dme=Rme=>{var Nme,Ime;(Nme=x_.onChange)===null||Nme===void 0||Nme.call(x_,Rme),(Ime=ame==null?void 0:ame.onChange)===null||Ime===void 0||Ime.call(ame,Rme)},{prefixCls:ume,className:fme,rootClassName:pme,children:hme,style:bme,title:mme}=x_,vme=__rest$G(x_,["prefixCls","className","rootClassName","children","style","title"]),gme=rme("radio",ume),yme=((ame==null?void 0:ame.optionType)||nme)==="button",_me=yme?`${gme}-button`:gme,$me=useCSSVarCls(gme),[Cme,Sme,Eme]=useStyle$g(gme,$me),xme=Object.assign({},vme),Tme=reactExports.useContext(DisabledContext);ame&&(xme.name=ame.name,xme.onChange=dme,xme.checked=x_.value===ame.value,xme.disabled=($P=xme.disabled)!==null&&$P!==void 0?$P:ame.disabled),xme.disabled=(tme=xme.disabled)!==null&&tme!==void 0?tme:Tme;const Ome=classNames(`${_me}-wrapper`,{[`${_me}-wrapper-checked`]:xme.checked,[`${_me}-wrapper-disabled`]:xme.disabled,[`${_me}-wrapper-rtl`]:ime==="rtl",[`${_me}-wrapper-in-form-item`]:cme,[`${_me}-wrapper-block`]:!!(ame!=null&&ame.block)},ome==null?void 0:ome.className,fme,pme,Sme,Eme,$me);return Cme(reactExports.createElement(Wave,{component:"Radio",disabled:xme.disabled},reactExports.createElement("label",{className:Ome,style:Object.assign(Object.assign({},ome==null?void 0:ome.style),bme),onMouseEnter:x_.onMouseEnter,onMouseLeave:x_.onMouseLeave,title:mme},reactExports.createElement(Checkbox$4,Object.assign({},xme,{className:classNames(xme.className,{[TARGET_CLS]:!yme}),type:"radio",prefixCls:_me,ref:sme})),hme!==void 0?reactExports.createElement("span",null,hme):null)))},Radio$1=reactExports.forwardRef(InternalRadio),RadioGroup=reactExports.forwardRef((x_,eme)=>{const{getPrefixCls:$P,direction:tme}=reactExports.useContext(ConfigContext),{prefixCls:ame,className:nme,rootClassName:rme,options:ime,buttonStyle:ome="outline",disabled:lme,children:sme,size:cme,style:dme,id:ume,optionType:fme,name:pme,defaultValue:hme,value:bme,block:mme=!1,onChange:vme,onMouseEnter:gme,onMouseLeave:yme,onFocus:_me,onBlur:$me}=x_,[Cme,Sme]=useMergedState(hme,{value:bme}),Eme=reactExports.useCallback(Dme=>{const jme=Cme,Vme=Dme.target.value;"value"in x_||Sme(Vme),Vme!==jme&&(vme==null||vme(Dme))},[Cme,Sme,vme]),xme=$P("radio",ame),Tme=`${xme}-group`,Ome=useCSSVarCls(xme),[Rme,Nme,Ime]=useStyle$g(xme,Ome);let Pme=sme;ime&&ime.length>0&&(Pme=ime.map(Dme=>typeof Dme=="string"||typeof Dme=="number"?reactExports.createElement(Radio$1,{key:Dme.toString(),prefixCls:xme,disabled:lme,value:Dme,checked:Cme===Dme},Dme):reactExports.createElement(Radio$1,{key:`radio-group-value-options-${Dme.value}`,prefixCls:xme,disabled:Dme.disabled||lme,value:Dme.value,checked:Cme===Dme.value,title:Dme.title,style:Dme.style,id:Dme.id,required:Dme.required},Dme.label)));const Mme=useSize(cme),kme=classNames(Tme,`${Tme}-${ome}`,{[`${Tme}-${Mme}`]:Mme,[`${Tme}-rtl`]:tme==="rtl",[`${Tme}-block`]:mme},nme,rme,Nme,Ime,Ome),Bme=reactExports.useMemo(()=>({onChange:Eme,value:Cme,disabled:lme,name:pme,optionType:fme,block:mme}),[Eme,Cme,lme,pme,fme,mme]);return Rme(reactExports.createElement("div",Object.assign({},pickAttrs(x_,{aria:!0,data:!0}),{className:kme,style:dme,onMouseEnter:gme,onMouseLeave:yme,onFocus:_me,onBlur:$me,id:ume,ref:eme}),reactExports.createElement(RadioGroupContextProvider,{value:Bme},Pme)))}),Group$2=reactExports.memo(RadioGroup);var __rest$F=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const RadioButton=(x_,eme)=>{const{getPrefixCls:$P}=reactExports.useContext(ConfigContext),{prefixCls:tme}=x_,ame=__rest$F(x_,["prefixCls"]),nme=$P("radio",tme);return reactExports.createElement(RadioOptionTypeContextProvider,{value:"button"},reactExports.createElement(Radio$1,Object.assign({prefixCls:nme},ame,{type:"radio",ref:eme})))},Button$2=reactExports.forwardRef(RadioButton),Radio=Radio$1;Radio.Button=Button$2;Radio.Group=Group$2;Radio.__ANT_RADIO=!0;function initInputToken(x_){return merge$5(x_,{inputAffixPadding:x_.paddingXXS})}const initComponentToken=x_=>{const{controlHeight:eme,fontSize:$P,lineHeight:tme,lineWidth:ame,controlHeightSM:nme,controlHeightLG:rme,fontSizeLG:ime,lineHeightLG:ome,paddingSM:lme,controlPaddingHorizontalSM:sme,controlPaddingHorizontal:cme,colorFillAlter:dme,colorPrimaryHover:ume,colorPrimary:fme,controlOutlineWidth:pme,controlOutline:hme,colorErrorOutline:bme,colorWarningOutline:mme,colorBgContainer:vme}=x_;return{paddingBlock:Math.max(Math.round((eme-$P*tme)/2*10)/10-ame,0),paddingBlockSM:Math.max(Math.round((nme-$P*tme)/2*10)/10-ame,0),paddingBlockLG:Math.ceil((rme-ime*ome)/2*10)/10-ame,paddingInline:lme-ame,paddingInlineSM:sme-ame,paddingInlineLG:cme-ame,addonBg:dme,activeBorderColor:fme,hoverBorderColor:ume,activeShadow:`0 0 0 ${pme}px ${hme}`,errorActiveShadow:`0 0 0 ${pme}px ${bme}`,warningActiveShadow:`0 0 0 ${pme}px ${mme}`,hoverBg:vme,activeBg:vme,inputFontSize:$P,inputFontSizeLG:ime,inputFontSizeSM:$P}},genHoverStyle=x_=>({borderColor:x_.hoverBorderColor,backgroundColor:x_.hoverBg}),genDisabledStyle=x_=>({color:x_.colorTextDisabled,backgroundColor:x_.colorBgContainerDisabled,borderColor:x_.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},genHoverStyle(merge$5(x_,{hoverBorderColor:x_.colorBorder,hoverBg:x_.colorBgContainerDisabled})))}),genBaseOutlinedStyle=(x_,eme)=>({background:x_.colorBgContainer,borderWidth:x_.lineWidth,borderStyle:x_.lineType,borderColor:eme.borderColor,"&:hover":{borderColor:eme.hoverBorderColor,backgroundColor:x_.hoverBg},"&:focus, &:focus-within":{borderColor:eme.activeBorderColor,boxShadow:eme.activeShadow,outline:0,backgroundColor:x_.activeBg}}),genOutlinedStatusStyle=(x_,eme)=>({[`&${x_.componentCls}-status-${eme.status}:not(${x_.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseOutlinedStyle(x_,eme)),{[`${x_.componentCls}-prefix, ${x_.componentCls}-suffix`]:{color:eme.affixColor}}),[`&${x_.componentCls}-status-${eme.status}${x_.componentCls}-disabled`]:{borderColor:eme.borderColor}}),genOutlinedStyle=(x_,eme)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle(x_,{borderColor:x_.colorBorder,hoverBorderColor:x_.hoverBorderColor,activeBorderColor:x_.activeBorderColor,activeShadow:x_.activeShadow})),{[`&${x_.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(x_))}),genOutlinedStatusStyle(x_,{status:"error",borderColor:x_.colorError,hoverBorderColor:x_.colorErrorBorderHover,activeBorderColor:x_.colorError,activeShadow:x_.errorActiveShadow,affixColor:x_.colorError})),genOutlinedStatusStyle(x_,{status:"warning",borderColor:x_.colorWarning,hoverBorderColor:x_.colorWarningBorderHover,activeBorderColor:x_.colorWarning,activeShadow:x_.warningActiveShadow,affixColor:x_.colorWarning})),eme)}),genOutlinedGroupStatusStyle=(x_,eme)=>({[`&${x_.componentCls}-group-wrapper-status-${eme.status}`]:{[`${x_.componentCls}-group-addon`]:{borderColor:eme.addonBorderColor,color:eme.addonColor}}}),genOutlinedGroupStyle=x_=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${x_.componentCls}-group`]:{"&-addon":{background:x_.addonBg,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},genOutlinedGroupStatusStyle(x_,{status:"error",addonBorderColor:x_.colorError,addonColor:x_.colorErrorText})),genOutlinedGroupStatusStyle(x_,{status:"warning",addonBorderColor:x_.colorWarning,addonColor:x_.colorWarningText})),{[`&${x_.componentCls}-group-wrapper-disabled`]:{[`${x_.componentCls}-group-addon`]:Object.assign({},genDisabledStyle(x_))}})}),genBorderlessStyle=(x_,eme)=>{const{componentCls:$P}=x_;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${$P}-disabled, &[disabled]`]:{color:x_.colorTextDisabled,cursor:"not-allowed"},[`&${$P}-status-error`]:{"&, & input, & textarea":{color:x_.colorError}},[`&${$P}-status-warning`]:{"&, & input, & textarea":{color:x_.colorWarning}}},eme)}},genBaseFilledStyle=(x_,eme)=>({background:eme.bg,borderWidth:x_.lineWidth,borderStyle:x_.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:eme==null?void 0:eme.inputColor},"&:hover":{background:eme.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:eme.activeBorderColor,backgroundColor:x_.activeBg}}),genFilledStatusStyle=(x_,eme)=>({[`&${x_.componentCls}-status-${eme.status}:not(${x_.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseFilledStyle(x_,eme)),{[`${x_.componentCls}-prefix, ${x_.componentCls}-suffix`]:{color:eme.affixColor}})}),genFilledStyle=(x_,eme)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle(x_,{bg:x_.colorFillTertiary,hoverBg:x_.colorFillSecondary,activeBorderColor:x_.activeBorderColor})),{[`&${x_.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(x_))}),genFilledStatusStyle(x_,{status:"error",bg:x_.colorErrorBg,hoverBg:x_.colorErrorBgHover,activeBorderColor:x_.colorError,inputColor:x_.colorErrorText,affixColor:x_.colorError})),genFilledStatusStyle(x_,{status:"warning",bg:x_.colorWarningBg,hoverBg:x_.colorWarningBgHover,activeBorderColor:x_.colorWarning,inputColor:x_.colorWarningText,affixColor:x_.colorWarning})),eme)}),genFilledGroupStatusStyle=(x_,eme)=>({[`&${x_.componentCls}-group-wrapper-status-${eme.status}`]:{[`${x_.componentCls}-group-addon`]:{background:eme.addonBg,color:eme.addonColor}}}),genFilledGroupStyle=x_=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${x_.componentCls}-group`]:{"&-addon":{background:x_.colorFillTertiary},[`${x_.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`}}}},genFilledGroupStatusStyle(x_,{status:"error",addonBg:x_.colorErrorBg,addonColor:x_.colorErrorText})),genFilledGroupStatusStyle(x_,{status:"warning",addonBg:x_.colorWarningBg,addonColor:x_.colorWarningText})),{[`&${x_.componentCls}-group-wrapper-disabled`]:{[`${x_.componentCls}-group`]:{"&-addon":{background:x_.colorFillTertiary,color:x_.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`,borderTop:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`,borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`,borderTop:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`,borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`}}}})}),genPlaceholderStyle=x_=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:x_,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),genInputLargeStyle=x_=>{const{paddingBlockLG:eme,lineHeightLG:$P,borderRadiusLG:tme,paddingInlineLG:ame}=x_;return{padding:`${unit$1(eme)} ${unit$1(ame)}`,fontSize:x_.inputFontSizeLG,lineHeight:$P,borderRadius:tme}},genInputSmallStyle=x_=>({padding:`${unit$1(x_.paddingBlockSM)} ${unit$1(x_.paddingInlineSM)}`,fontSize:x_.inputFontSizeSM,borderRadius:x_.borderRadiusSM}),genBasicInputStyle=x_=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit$1(x_.paddingBlock)} ${unit$1(x_.paddingInline)}`,color:x_.colorText,fontSize:x_.inputFontSize,lineHeight:x_.lineHeight,borderRadius:x_.borderRadius,transition:`all ${x_.motionDurationMid}`},genPlaceholderStyle(x_.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:x_.controlHeight,lineHeight:x_.lineHeight,verticalAlign:"bottom",transition:`all ${x_.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},genInputLargeStyle(x_)),"&-sm":Object.assign({},genInputSmallStyle(x_)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),genInputGroupStyle=x_=>{const{componentCls:eme,antCls:$P}=x_;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:x_.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${eme}, &-lg > ${eme}-group-addon`]:Object.assign({},genInputLargeStyle(x_)),[`&-sm ${eme}, &-sm > ${eme}-group-addon`]:Object.assign({},genInputSmallStyle(x_)),[`&-lg ${$P}-select-single ${$P}-select-selector`]:{height:x_.controlHeightLG},[`&-sm ${$P}-select-single ${$P}-select-selector`]:{height:x_.controlHeightSM},[`> ${eme}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${eme}-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 ${unit$1(x_.paddingInline)}`,color:x_.colorText,fontWeight:"normal",fontSize:x_.inputFontSize,textAlign:"center",borderRadius:x_.borderRadius,transition:`all ${x_.motionDurationSlow}`,lineHeight:1,[`${$P}-select`]:{margin:`${unit$1(x_.calc(x_.paddingBlock).add(1).mul(-1).equal())} ${unit$1(x_.calc(x_.paddingInline).mul(-1).equal())}`,[`&${$P}-select-single:not(${$P}-select-customize-input):not(${$P}-pagination-size-changer)`]:{[`${$P}-select-selector`]:{backgroundColor:"inherit",border:`${unit$1(x_.lineWidth)} ${x_.lineType} transparent`,boxShadow:"none"}}},[`${$P}-cascader-picker`]:{margin:`-9px ${unit$1(x_.calc(x_.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${$P}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[eme]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${eme}-search-with-button &`]:{zIndex:0}}},[`> ${eme}:first-child, ${eme}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${$P}-select ${$P}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${eme}-affix-wrapper`]:{[`&:not(:first-child) ${eme}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${eme}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${eme}:last-child, ${eme}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${$P}-select ${$P}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${eme}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${eme}-search &`]:{borderStartStartRadius:x_.borderRadius,borderEndStartRadius:x_.borderRadius}},[`&:not(:first-child), ${eme}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${eme}-group-compact`]:Object.assign(Object.assign({display:"block"},clearFix()),{[`${eme}-group-addon, ${eme}-group-wrap, > ${eme}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:x_.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${eme}-affix-wrapper,
        & > ${eme}-number-affix-wrapper,
        & > ${$P}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:x_.calc(x_.lineWidth).mul(-1).equal(),borderInlineEndWidth:x_.lineWidth},[eme]:{float:"none"},[`& > ${$P}-select > ${$P}-select-selector,
      & > ${$P}-select-auto-complete ${eme},
      & > ${$P}-cascader-picker ${eme},
      & > ${eme}-group-wrapper ${eme}`]:{borderInlineEndWidth:x_.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${$P}-select-focused`]:{zIndex:1},[`& > ${$P}-select > ${$P}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${$P}-select:first-child > ${$P}-select-selector,
      & > ${$P}-select-auto-complete:first-child ${eme},
      & > ${$P}-cascader-picker:first-child ${eme}`]:{borderStartStartRadius:x_.borderRadius,borderEndStartRadius:x_.borderRadius},[`& > *:last-child,
      & > ${$P}-select:last-child > ${$P}-select-selector,
      & > ${$P}-cascader-picker:last-child ${eme},
      & > ${$P}-cascader-picker-focused:last-child ${eme}`]:{borderInlineEndWidth:x_.lineWidth,borderStartEndRadius:x_.borderRadius,borderEndEndRadius:x_.borderRadius},[`& > ${$P}-select-auto-complete ${eme}`]:{verticalAlign:"top"},[`${eme}-group-wrapper + ${eme}-group-wrapper`]:{marginInlineStart:x_.calc(x_.lineWidth).mul(-1).equal(),[`${eme}-affix-wrapper`]:{borderRadius:0}},[`${eme}-group-wrapper:not(:last-child)`]:{[`&${eme}-search > ${eme}-group`]:{[`& > ${eme}-group-addon > ${eme}-search-button`]:{borderRadius:0},[`& > ${eme}`]:{borderStartStartRadius:x_.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:x_.borderRadius}}}})}},genInputStyle$1=x_=>{const{componentCls:eme,controlHeightSM:$P,lineWidth:tme,calc:ame}=x_,rme=ame($P).sub(ame(tme).mul(2)).sub(16).div(2).equal();return{[eme]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),genBasicInputStyle(x_)),genOutlinedStyle(x_)),genFilledStyle(x_)),genBorderlessStyle(x_)),{'&[type="color"]':{height:x_.controlHeight,[`&${eme}-lg`]:{height:x_.controlHeightLG},[`&${eme}-sm`]:{height:$P,paddingTop:rme,paddingBottom:rme}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},genAllowClearStyle=x_=>{const{componentCls:eme}=x_;return{[`${eme}-clear-icon`]:{margin:0,lineHeight:0,color:x_.colorTextQuaternary,fontSize:x_.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${x_.motionDurationSlow}`,"&:hover":{color:x_.colorTextTertiary},"&:active":{color:x_.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit$1(x_.inputAffixPadding)}`}}}},genAffixStyle=x_=>{const{componentCls:eme,inputAffixPadding:$P,colorTextDescription:tme,motionDurationSlow:ame,colorIcon:nme,colorIconHover:rme,iconCls:ime}=x_,ome=`${eme}-affix-wrapper`,lme=`${eme}-affix-wrapper-disabled`;return{[ome]:Object.assign(Object.assign(Object.assign(Object.assign({},genBasicInputStyle(x_)),{display:"inline-flex",[`&:not(${eme}-disabled):hover`]:{zIndex:1,[`${eme}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${eme}`]:{padding:0},[`> input${eme}, > textarea${eme}`]:{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"'},[eme]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:x_.paddingXS}},"&-show-count-suffix":{color:tme},"&-show-count-has-suffix":{marginInlineEnd:x_.paddingXXS},"&-prefix":{marginInlineEnd:$P},"&-suffix":{marginInlineStart:$P}}}),genAllowClearStyle(x_)),{[`${ime}${eme}-password-icon`]:{color:nme,cursor:"pointer",transition:`all ${ame}`,"&:hover":{color:rme}}}),[lme]:{[`${ime}${eme}-password-icon`]:{color:nme,cursor:"not-allowed","&:hover":{color:nme}}}}},genGroupStyle=x_=>{const{componentCls:eme,borderRadiusLG:$P,borderRadiusSM:tme}=x_;return{[`${eme}-group`]:Object.assign(Object.assign(Object.assign({},resetComponent(x_)),genInputGroupStyle(x_)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${eme}-group-addon`]:{borderRadius:$P,fontSize:x_.inputFontSizeLG}},"&-sm":{[`${eme}-group-addon`]:{borderRadius:tme}}},genOutlinedGroupStyle(x_)),genFilledGroupStyle(x_)),{[`&:not(${eme}-compact-first-item):not(${eme}-compact-last-item)${eme}-compact-item`]:{[`${eme}, ${eme}-group-addon`]:{borderRadius:0}},[`&:not(${eme}-compact-last-item)${eme}-compact-first-item`]:{[`${eme}, ${eme}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${eme}-compact-first-item)${eme}-compact-last-item`]:{[`${eme}, ${eme}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${eme}-compact-last-item)${eme}-compact-item`]:{[`${eme}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},genSearchInputStyle=x_=>{const{componentCls:eme,antCls:$P}=x_,tme=`${eme}-search`;return{[tme]:{[eme]:{"&:hover, &:focus":{[`+ ${eme}-group-addon ${tme}-button:not(${$P}-btn-primary)`]:{borderInlineStartColor:x_.colorPrimaryHover}}},[`${eme}-affix-wrapper`]:{height:x_.controlHeight,borderRadius:0},[`${eme}-lg`]:{lineHeight:x_.calc(x_.lineHeightLG).sub(2e-4).equal()},[`> ${eme}-group`]:{[`> ${eme}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${tme}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${tme}-button:not(${$P}-btn-primary)`]:{color:x_.colorTextDescription,"&:hover":{color:x_.colorPrimaryHover},"&:active":{color:x_.colorPrimaryActive},[`&${$P}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${tme}-button`]:{height:x_.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${eme}-affix-wrapper, ${tme}-button`]:{height:x_.controlHeightLG}},"&-small":{[`${eme}-affix-wrapper, ${tme}-button`]:{height:x_.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${eme}-compact-item`]:{[`&:not(${eme}-compact-last-item)`]:{[`${eme}-group-addon`]:{[`${eme}-search-button`]:{marginInlineEnd:x_.calc(x_.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${eme}-compact-first-item)`]:{[`${eme},${eme}-affix-wrapper`]:{borderRadius:0}},[`> ${eme}-group-addon ${eme}-search-button,
        > ${eme},
        ${eme}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${eme}-affix-wrapper-focused`]:{zIndex:2}}}}},genTextAreaStyle=x_=>{const{componentCls:eme,paddingLG:$P}=x_,tme=`${eme}-textarea`;return{[tme]:{position:"relative","&-show-count":{[`> ${eme}`]:{height:"100%"},[`${eme}-data-count`]:{position:"absolute",bottom:x_.calc(x_.fontSize).mul(x_.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:x_.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${eme},
        &-affix-wrapper${tme}-has-feedback ${eme}
      `]:{paddingInlineEnd:$P},[`&-affix-wrapper${eme}-affix-wrapper`]:{padding:0,[`> textarea${eme}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${eme}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${eme}-clear-icon`]:{position:"absolute",insetInlineEnd:x_.paddingInline,insetBlockStart:x_.paddingXS},[`${tme}-suffix`]:{position:"absolute",top:0,insetInlineEnd:x_.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${eme}-affix-wrapper-sm`]:{[`${eme}-suffix`]:{[`${eme}-clear-icon`]:{insetInlineEnd:x_.paddingInlineSM}}}}}},genRangeStyle=x_=>{const{componentCls:eme}=x_;return{[`${eme}-out-of-range`]:{[`&, & input, & textarea, ${eme}-show-count-suffix, ${eme}-data-count`]:{color:x_.colorError}}}},useStyle$f=genStyleHooks("Input",x_=>{const eme=merge$5(x_,initInputToken(x_));return[genInputStyle$1(eme),genTextAreaStyle(eme),genAffixStyle(eme),genGroupStyle(eme),genSearchInputStyle(eme),genRangeStyle(eme),genCompactItemStyle(eme)]},initComponentToken,{resetFont:!1});var PlusOutlined$1={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"},PlusOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:PlusOutlined$1}))},RefIcon$a=reactExports.forwardRef(PlusOutlined);const TabContext=reactExports.createContext(null);var useIndicator=function(eme){var $P=eme.activeTabOffset,tme=eme.horizontal,ame=eme.rtl,nme=eme.indicator,rme=nme===void 0?{}:nme,ime=rme.size,ome=rme.align,lme=ome===void 0?"center":ome,sme=reactExports.useState(),cme=_slicedToArray$2(sme,2),dme=cme[0],ume=cme[1],fme=reactExports.useRef(),pme=React__default.useCallback(function(bme){return typeof ime=="function"?ime(bme):typeof ime=="number"?ime:bme},[ime]);function hme(){wrapperRaf.cancel(fme.current)}return reactExports.useEffect(function(){var bme={};if($P)if(tme){bme.width=pme($P.width);var mme=ame?"right":"left";lme==="start"&&(bme[mme]=$P[mme]),lme==="center"&&(bme[mme]=$P[mme]+$P.width/2,bme.transform=ame?"translateX(50%)":"translateX(-50%)"),lme==="end"&&(bme[mme]=$P[mme]+$P.width,bme.transform="translateX(-100%)")}else bme.height=pme($P.height),lme==="start"&&(bme.top=$P.top),lme==="center"&&(bme.top=$P.top+$P.height/2,bme.transform="translateY(-50%)"),lme==="end"&&(bme.top=$P.top+$P.height,bme.transform="translateY(-100%)");return hme(),fme.current=wrapperRaf(function(){ume(bme)}),hme},[$P,tme,ame,lme,pme]),{style:dme}},DEFAULT_SIZE$3={width:0,height:0,left:0,top:0};function useOffsets(x_,eme,$P){return reactExports.useMemo(function(){for(var tme,ame=new Map,nme=eme.get((tme=x_[0])===null||tme===void 0?void 0:tme.key)||DEFAULT_SIZE$3,rme=nme.left+nme.width,ime=0;ime<x_.length;ime+=1){var ome=x_[ime].key,lme=eme.get(ome);if(!lme){var sme;lme=eme.get((sme=x_[ime-1])===null||sme===void 0?void 0:sme.key)||DEFAULT_SIZE$3}var cme=ame.get(ome)||_objectSpread2$4({},lme);cme.right=rme-cme.left-cme.width,ame.set(ome,cme)}return ame},[x_.map(function(tme){return tme.key}).join("_"),eme,$P])}function useSyncState(x_,eme){var $P=reactExports.useRef(x_),tme=reactExports.useState({}),ame=_slicedToArray$2(tme,2),nme=ame[1];function rme(ime){var ome=typeof ime=="function"?ime($P.current):ime;ome!==$P.current&&eme(ome,$P.current),$P.current=ome,nme({})}return[$P.current,rme]}var MIN_SWIPE_DISTANCE=.1,STOP_SWIPE_DISTANCE=.01,REFRESH_INTERVAL=20,SPEED_OFF_MULTIPLE=Math.pow(.995,REFRESH_INTERVAL);function useTouchMove(x_,eme){var $P=reactExports.useState(),tme=_slicedToArray$2($P,2),ame=tme[0],nme=tme[1],rme=reactExports.useState(0),ime=_slicedToArray$2(rme,2),ome=ime[0],lme=ime[1],sme=reactExports.useState(0),cme=_slicedToArray$2(sme,2),dme=cme[0],ume=cme[1],fme=reactExports.useState(),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme=reactExports.useRef();function vme(Sme){var Eme=Sme.touches[0],xme=Eme.screenX,Tme=Eme.screenY;nme({x:xme,y:Tme}),window.clearInterval(mme.current)}function gme(Sme){if(ame){var Eme=Sme.touches[0],xme=Eme.screenX,Tme=Eme.screenY;nme({x:xme,y:Tme});var Ome=xme-ame.x,Rme=Tme-ame.y;eme(Ome,Rme);var Nme=Date.now();lme(Nme),ume(Nme-ome),bme({x:Ome,y:Rme})}}function yme(){if(ame&&(nme(null),bme(null),hme)){var Sme=hme.x/dme,Eme=hme.y/dme,xme=Math.abs(Sme),Tme=Math.abs(Eme);if(Math.max(xme,Tme)<MIN_SWIPE_DISTANCE)return;var Ome=Sme,Rme=Eme;mme.current=window.setInterval(function(){if(Math.abs(Ome)<STOP_SWIPE_DISTANCE&&Math.abs(Rme)<STOP_SWIPE_DISTANCE){window.clearInterval(mme.current);return}Ome*=SPEED_OFF_MULTIPLE,Rme*=SPEED_OFF_MULTIPLE,eme(Ome*REFRESH_INTERVAL,Rme*REFRESH_INTERVAL)},REFRESH_INTERVAL)}}var _me=reactExports.useRef();function $me(Sme){var Eme=Sme.deltaX,xme=Sme.deltaY,Tme=0,Ome=Math.abs(Eme),Rme=Math.abs(xme);Ome===Rme?Tme=_me.current==="x"?Eme:xme:Ome>Rme?(Tme=Eme,_me.current="x"):(Tme=xme,_me.current="y"),eme(-Tme,-Tme)&&Sme.preventDefault()}var Cme=reactExports.useRef(null);Cme.current={onTouchStart:vme,onTouchMove:gme,onTouchEnd:yme,onWheel:$me},reactExports.useEffect(function(){function Sme(Ome){Cme.current.onTouchStart(Ome)}function Eme(Ome){Cme.current.onTouchMove(Ome)}function xme(Ome){Cme.current.onTouchEnd(Ome)}function Tme(Ome){Cme.current.onWheel(Ome)}return document.addEventListener("touchmove",Eme,{passive:!1}),document.addEventListener("touchend",xme,{passive:!0}),x_.current.addEventListener("touchstart",Sme,{passive:!0}),x_.current.addEventListener("wheel",Tme,{passive:!1}),function(){document.removeEventListener("touchmove",Eme),document.removeEventListener("touchend",xme)}},[])}function useUpdate(x_){var eme=reactExports.useState(0),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1],nme=reactExports.useRef(0),rme=reactExports.useRef();return rme.current=x_,useLayoutUpdateEffect(function(){var ime;(ime=rme.current)===null||ime===void 0||ime.call(rme)},[tme]),function(){nme.current===tme&&(nme.current+=1,ame(nme.current))}}function useUpdateState(x_){var eme=reactExports.useRef([]),$P=reactExports.useState({}),tme=_slicedToArray$2($P,2),ame=tme[1],nme=reactExports.useRef(typeof x_=="function"?x_():x_),rme=useUpdate(function(){var ome=nme.current;eme.current.forEach(function(lme){ome=lme(ome)}),eme.current=[],nme.current=ome,ame({})});function ime(ome){eme.current.push(ome),rme()}return[nme.current,ime]}var DEFAULT_SIZE$2={width:0,height:0,left:0,top:0,right:0};function useVisibleRange(x_,eme,$P,tme,ame,nme,rme){var ime=rme.tabs,ome=rme.tabPosition,lme=rme.rtl,sme,cme,dme;return["top","bottom"].includes(ome)?(sme="width",cme=lme?"right":"left",dme=Math.abs($P)):(sme="height",cme="top",dme=-$P),reactExports.useMemo(function(){if(!ime.length)return[0,0];for(var ume=ime.length,fme=ume,pme=0;pme<ume;pme+=1){var hme=x_.get(ime[pme].key)||DEFAULT_SIZE$2;if(Math.floor(hme[cme]+hme[sme])>Math.floor(dme+eme)){fme=pme-1;break}}for(var bme=0,mme=ume-1;mme>=0;mme-=1){var vme=x_.get(ime[mme].key)||DEFAULT_SIZE$2;if(vme[cme]<dme){bme=mme+1;break}}return bme>=fme?[0,0]:[bme,fme]},[x_,eme,tme,ame,nme,dme,ome,ime.map(function(ume){return ume.key}).join("_"),lme])}function stringify$4(x_){var eme;return x_ instanceof Map?(eme={},x_.forEach(function($P,tme){eme[tme]=$P})):eme=x_,JSON.stringify(eme)}var RC_TABS_DOUBLE_QUOTE="TABS_DQ";function genDataNodeKey(x_){return String(x_).replace(/"/g,RC_TABS_DOUBLE_QUOTE)}function getRemovable(x_,eme,$P,tme){return!(!$P||tme||x_===!1||x_===void 0&&(eme===!1||eme===null))}var AddButton=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.editable,ame=x_.locale,nme=x_.style;return!tme||tme.showAdd===!1?null:reactExports.createElement("button",{ref:eme,type:"button",className:"".concat($P,"-nav-add"),style:nme,"aria-label":(ame==null?void 0:ame.addAriaLabel)||"Add tab",onClick:function(ime){tme.onEdit("add",{event:ime})}},tme.addIcon||"+")}),ExtraContent=reactExports.forwardRef(function(x_,eme){var $P=x_.position,tme=x_.prefixCls,ame=x_.extra;if(!ame)return null;var nme,rme={};return _typeof$4(ame)==="object"&&!reactExports.isValidElement(ame)?rme=ame:rme.right=ame,$P==="right"&&(nme=rme.right),$P==="left"&&(nme=rme.left),nme?reactExports.createElement("div",{className:"".concat(tme,"-extra-content"),ref:eme},nme):null}),OperationNode=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.id,ame=x_.tabs,nme=x_.locale,rme=x_.mobile,ime=x_.more,ome=ime===void 0?{}:ime,lme=x_.style,sme=x_.className,cme=x_.editable,dme=x_.tabBarGutter,ume=x_.rtl,fme=x_.removeAriaLabel,pme=x_.onTabClick,hme=x_.getPopupContainer,bme=x_.popupClassName,mme=reactExports.useState(!1),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=reactExports.useState(null),$me=_slicedToArray$2(_me,2),Cme=$me[0],Sme=$me[1],Eme=ome.icon,xme=Eme===void 0?"More":Eme,Tme="".concat(tme,"-more-popup"),Ome="".concat($P,"-dropdown"),Rme=Cme!==null?"".concat(Tme,"-").concat(Cme):null,Nme=nme==null?void 0:nme.dropdownAriaLabel;function Ime(Vme,Wme){Vme.preventDefault(),Vme.stopPropagation(),cme.onEdit("remove",{key:Wme,event:Vme})}var Pme=reactExports.createElement(ExportMenu,{onClick:function(Wme){var Lme=Wme.key,zme=Wme.domEvent;pme(Lme,zme),yme(!1)},prefixCls:"".concat(Ome,"-menu"),id:Tme,tabIndex:-1,role:"listbox","aria-activedescendant":Rme,selectedKeys:[Cme],"aria-label":Nme!==void 0?Nme:"expanded dropdown"},ame.map(function(Vme){var Wme=Vme.closable,Lme=Vme.disabled,zme=Vme.closeIcon,Ume=Vme.key,Gme=Vme.label,Jme=getRemovable(Wme,zme,cme,Lme);return reactExports.createElement(Item$2,{key:Ume,id:"".concat(Tme,"-").concat(Ume),role:"option","aria-controls":tme&&"".concat(tme,"-panel-").concat(Ume),disabled:Lme},reactExports.createElement("span",null,Gme),Jme&&reactExports.createElement("button",{type:"button","aria-label":fme||"remove",tabIndex:0,className:"".concat(Ome,"-menu-item-remove"),onClick:function(Qme){Qme.stopPropagation(),Ime(Qme,Ume)}},zme||cme.removeIcon||"×"))}));function Mme(Vme){for(var Wme=ame.filter(function(Jme){return!Jme.disabled}),Lme=Wme.findIndex(function(Jme){return Jme.key===Cme})||0,zme=Wme.length,Ume=0;Ume<zme;Ume+=1){Lme=(Lme+Vme+zme)%zme;var Gme=Wme[Lme];if(!Gme.disabled){Sme(Gme.key);return}}}function kme(Vme){var Wme=Vme.which;if(!gme){[KeyCode.DOWN,KeyCode.SPACE,KeyCode.ENTER].includes(Wme)&&(yme(!0),Vme.preventDefault());return}switch(Wme){case KeyCode.UP:Mme(-1),Vme.preventDefault();break;case KeyCode.DOWN:Mme(1),Vme.preventDefault();break;case KeyCode.ESC:yme(!1);break;case KeyCode.SPACE:case KeyCode.ENTER:Cme!==null&&pme(Cme,Vme);break}}reactExports.useEffect(function(){var Vme=document.getElementById(Rme);Vme&&Vme.scrollIntoView&&Vme.scrollIntoView(!1)},[Cme]),reactExports.useEffect(function(){gme||Sme(null)},[gme]);var Bme=_defineProperty$7({},ume?"marginRight":"marginLeft",dme);ame.length||(Bme.visibility="hidden",Bme.order=1);var Dme=classNames(_defineProperty$7({},"".concat(Ome,"-rtl"),ume)),jme=rme?null:reactExports.createElement(Dropdown$3,_extends$4C({prefixCls:Ome,overlay:Pme,visible:ame.length?gme:!1,onVisibleChange:yme,overlayClassName:classNames(Dme,bme),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:hme},ome),reactExports.createElement("button",{type:"button",className:"".concat($P,"-nav-more"),style:Bme,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Tme,id:"".concat(tme,"-more"),"aria-expanded":gme,onKeyDown:kme},xme));return reactExports.createElement("div",{className:classNames("".concat($P,"-nav-operations"),sme),style:lme,ref:eme},jme,reactExports.createElement(AddButton,{prefixCls:$P,locale:nme,editable:cme}))});const OperationNode$1=reactExports.memo(OperationNode,function(x_,eme){return eme.tabMoving});var TabNode=function(eme){var $P=eme.prefixCls,tme=eme.id,ame=eme.active,nme=eme.tab,rme=nme.key,ime=nme.label,ome=nme.disabled,lme=nme.closeIcon,sme=nme.icon,cme=eme.closable,dme=eme.renderWrapper,ume=eme.removeAriaLabel,fme=eme.editable,pme=eme.onClick,hme=eme.onFocus,bme=eme.style,mme="".concat($P,"-tab"),vme=getRemovable(cme,lme,fme,ome);function gme(Cme){ome||pme(Cme)}function yme(Cme){Cme.preventDefault(),Cme.stopPropagation(),fme.onEdit("remove",{key:rme,event:Cme})}var _me=reactExports.useMemo(function(){return sme&&typeof ime=="string"?reactExports.createElement("span",null,ime):ime},[ime,sme]),$me=reactExports.createElement("div",{key:rme,"data-node-key":genDataNodeKey(rme),className:classNames(mme,_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(mme,"-with-remove"),vme),"".concat(mme,"-active"),ame),"".concat(mme,"-disabled"),ome)),style:bme,onClick:gme},reactExports.createElement("div",{role:"tab","aria-selected":ame,id:tme&&"".concat(tme,"-tab-").concat(rme),className:"".concat(mme,"-btn"),"aria-controls":tme&&"".concat(tme,"-panel-").concat(rme),"aria-disabled":ome,tabIndex:ome?null:0,onClick:function(Sme){Sme.stopPropagation(),gme(Sme)},onKeyDown:function(Sme){[KeyCode.SPACE,KeyCode.ENTER].includes(Sme.which)&&(Sme.preventDefault(),gme(Sme))},onFocus:hme},sme&&reactExports.createElement("span",{className:"".concat(mme,"-icon")},sme),ime&&_me),vme&&reactExports.createElement("button",{type:"button","aria-label":ume||"remove",tabIndex:0,className:"".concat(mme,"-remove"),onClick:function(Sme){Sme.stopPropagation(),yme(Sme)}},lme||fme.removeIcon||"×"));return dme?dme($me):$me},getTabSize=function(eme,$P){var tme=eme.offsetWidth,ame=eme.offsetHeight,nme=eme.offsetTop,rme=eme.offsetLeft,ime=eme.getBoundingClientRect(),ome=ime.width,lme=ime.height,sme=ime.left,cme=ime.top;return Math.abs(ome-tme)<1?[ome,lme,sme-$P.left,cme-$P.top]:[tme,ame,rme,nme]},getSize=function(eme){var $P=eme.current||{},tme=$P.offsetWidth,ame=tme===void 0?0:tme,nme=$P.offsetHeight,rme=nme===void 0?0:nme;if(eme.current){var ime=eme.current.getBoundingClientRect(),ome=ime.width,lme=ime.height;if(Math.abs(ome-ame)<1)return[ome,lme]}return[ame,rme]},getUnitValue=function(eme,$P){return eme[$P?0:1]},TabNavList=reactExports.forwardRef(function(x_,eme){var $P=x_.className,tme=x_.style,ame=x_.id,nme=x_.animated,rme=x_.activeKey,ime=x_.rtl,ome=x_.extra,lme=x_.editable,sme=x_.locale,cme=x_.tabPosition,dme=x_.tabBarGutter,ume=x_.children,fme=x_.onTabClick,pme=x_.onTabScroll,hme=x_.indicator,bme=reactExports.useContext(TabContext),mme=bme.prefixCls,vme=bme.tabs,gme=reactExports.useRef(null),yme=reactExports.useRef(null),_me=reactExports.useRef(null),$me=reactExports.useRef(null),Cme=reactExports.useRef(null),Sme=reactExports.useRef(null),Eme=reactExports.useRef(null),xme=cme==="top"||cme==="bottom",Tme=useSyncState(0,function(w0e,T0e){xme&&pme&&pme({direction:w0e>T0e?"left":"right"})}),Ome=_slicedToArray$2(Tme,2),Rme=Ome[0],Nme=Ome[1],Ime=useSyncState(0,function(w0e,T0e){!xme&&pme&&pme({direction:w0e>T0e?"top":"bottom"})}),Pme=_slicedToArray$2(Ime,2),Mme=Pme[0],kme=Pme[1],Bme=reactExports.useState([0,0]),Dme=_slicedToArray$2(Bme,2),jme=Dme[0],Vme=Dme[1],Wme=reactExports.useState([0,0]),Lme=_slicedToArray$2(Wme,2),zme=Lme[0],Ume=Lme[1],Gme=reactExports.useState([0,0]),Jme=_slicedToArray$2(Gme,2),Yme=Jme[0],Qme=Jme[1],Xme=reactExports.useState([0,0]),Kme=_slicedToArray$2(Xme,2),Zme=Kme[0],nbe=Kme[1],lbe=useUpdateState(new Map),ibe=_slicedToArray$2(lbe,2),abe=ibe[0],obe=ibe[1],hbe=useOffsets(vme,abe,zme[0]),ube=getUnitValue(jme,xme),mbe=getUnitValue(zme,xme),pbe=getUnitValue(Yme,xme),_be=getUnitValue(Zme,xme),Sbe=Math.floor(ube)<Math.floor(mbe+pbe),vbe=Sbe?ube-_be:ube-pbe,kbe="".concat(mme,"-nav-operations-hidden"),Rbe=0,Pbe=0;xme&&ime?(Rbe=0,Pbe=Math.max(0,mbe-vbe)):(Rbe=Math.min(0,vbe-mbe),Pbe=0);function Mbe(w0e){return w0e<Rbe?Rbe:w0e>Pbe?Pbe:w0e}var Kbe=reactExports.useRef(null),Qbe=reactExports.useState(),Gbe=_slicedToArray$2(Qbe,2),Hbe=Gbe[0],d0e=Gbe[1];function p0e(){d0e(Date.now())}function S0e(){Kbe.current&&clearTimeout(Kbe.current)}useTouchMove($me,function(w0e,T0e){function $be(Ibe,n0e){Ibe(function(f0e){var z0e=Mbe(f0e+n0e);return z0e})}return Sbe?(xme?$be(Nme,w0e):$be(kme,T0e),S0e(),p0e(),!0):!1}),reactExports.useEffect(function(){return S0e(),Hbe&&(Kbe.current=setTimeout(function(){d0e(0)},100)),S0e},[Hbe]);var P0e=useVisibleRange(hbe,vbe,xme?Rme:Mme,mbe,pbe,_be,_objectSpread2$4(_objectSpread2$4({},x_),{},{tabs:vme})),e0e=_slicedToArray$2(P0e,2),_0e=e0e[0],m0e=e0e[1],Ybe=useEvent(function(){var w0e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rme,T0e=hbe.get(w0e)||{width:0,height:0,left:0,right:0,top:0};if(xme){var $be=Rme;ime?T0e.right<Rme?$be=T0e.right:T0e.right+T0e.width>Rme+vbe&&($be=T0e.right+T0e.width-vbe):T0e.left<-Rme?$be=-T0e.left:T0e.left+T0e.width>-Rme+vbe&&($be=-(T0e.left+T0e.width-vbe)),kme(0),Nme(Mbe($be))}else{var Ibe=Mme;T0e.top<-Mme?Ibe=-T0e.top:T0e.top+T0e.height>-Mme+vbe&&(Ibe=-(T0e.top+T0e.height-vbe)),Nme(0),kme(Mbe(Ibe))}}),Jbe={};cme==="top"||cme==="bottom"?Jbe[ime?"marginRight":"marginLeft"]=dme:Jbe.marginTop=dme;var c0e=vme.map(function(w0e,T0e){var $be=w0e.key;return reactExports.createElement(TabNode,{id:ame,prefixCls:mme,key:$be,tab:w0e,style:T0e===0?void 0:Jbe,closable:w0e.closable,editable:lme,active:$be===rme,renderWrapper:ume,removeAriaLabel:sme==null?void 0:sme.removeAriaLabel,onClick:function(n0e){fme($be,n0e)},onFocus:function(){Ybe($be),p0e(),$me.current&&(ime||($me.current.scrollLeft=0),$me.current.scrollTop=0)}})}),zbe=function(){return obe(function(){var T0e,$be=new Map,Ibe=(T0e=Cme.current)===null||T0e===void 0?void 0:T0e.getBoundingClientRect();return vme.forEach(function(n0e){var f0e,z0e=n0e.key,o0e=(f0e=Cme.current)===null||f0e===void 0?void 0:f0e.querySelector('[data-node-key="'.concat(genDataNodeKey(z0e),'"]'));if(o0e){var gbe=getTabSize(o0e,Ibe),Tbe=_slicedToArray$2(gbe,4),Vbe=Tbe[0],Ube=Tbe[1],x0e=Tbe[2],I0e=Tbe[3];$be.set(z0e,{width:Vbe,height:Ube,left:x0e,top:I0e})}}),$be})};reactExports.useEffect(function(){zbe()},[vme.map(function(w0e){return w0e.key}).join("_")]);var R0e=useUpdate(function(){var w0e=getSize(gme),T0e=getSize(yme),$be=getSize(_me);Vme([w0e[0]-T0e[0]-$be[0],w0e[1]-T0e[1]-$be[1]]);var Ibe=getSize(Eme);Qme(Ibe);var n0e=getSize(Sme);nbe(n0e);var f0e=getSize(Cme);Ume([f0e[0]-Ibe[0],f0e[1]-Ibe[1]]),zbe()}),$0e=vme.slice(0,_0e),u0e=vme.slice(m0e+1),t0e=[].concat(_toConsumableArray$1($0e),_toConsumableArray$1(u0e)),v0e=hbe.get(rme),L0e=useIndicator({activeTabOffset:v0e,horizontal:xme,indicator:hme,rtl:ime}),Wbe=L0e.style;reactExports.useEffect(function(){Ybe()},[rme,Rbe,Pbe,stringify$4(v0e),stringify$4(hbe),xme]),reactExports.useEffect(function(){R0e()},[ime]);var a0e=!!t0e.length,g0e="".concat(mme,"-nav-wrap"),b0e,y0e,A0e,V0e;return xme?ime?(y0e=Rme>0,b0e=Rme!==Pbe):(b0e=Rme<0,y0e=Rme!==Rbe):(A0e=Mme<0,V0e=Mme!==Rbe),reactExports.createElement(RefResizeObserver,{onResize:R0e},reactExports.createElement("div",{ref:useComposeRef(eme,gme),role:"tablist",className:classNames("".concat(mme,"-nav"),$P),style:tme,onKeyDown:function(){p0e()}},reactExports.createElement(ExtraContent,{ref:yme,position:"left",extra:ome,prefixCls:mme}),reactExports.createElement(RefResizeObserver,{onResize:R0e},reactExports.createElement("div",{className:classNames(g0e,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(g0e,"-ping-left"),b0e),"".concat(g0e,"-ping-right"),y0e),"".concat(g0e,"-ping-top"),A0e),"".concat(g0e,"-ping-bottom"),V0e)),ref:$me},reactExports.createElement(RefResizeObserver,{onResize:R0e},reactExports.createElement("div",{ref:Cme,className:"".concat(mme,"-nav-list"),style:{transform:"translate(".concat(Rme,"px, ").concat(Mme,"px)"),transition:Hbe?"none":void 0}},c0e,reactExports.createElement(AddButton,{ref:Eme,prefixCls:mme,locale:sme,editable:lme,style:_objectSpread2$4(_objectSpread2$4({},c0e.length===0?void 0:Jbe),{},{visibility:a0e?"hidden":null})}),reactExports.createElement("div",{className:classNames("".concat(mme,"-ink-bar"),_defineProperty$7({},"".concat(mme,"-ink-bar-animated"),nme.inkBar)),style:Wbe}))))),reactExports.createElement(OperationNode$1,_extends$4C({},x_,{removeAriaLabel:sme==null?void 0:sme.removeAriaLabel,ref:Sme,prefixCls:mme,tabs:t0e,className:!a0e&&kbe,tabMoving:!!Hbe})),reactExports.createElement(ExtraContent,{ref:_me,position:"right",extra:ome,prefixCls:mme})))}),TabPane$1=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.className,ame=x_.style,nme=x_.id,rme=x_.active,ime=x_.tabKey,ome=x_.children;return reactExports.createElement("div",{id:nme&&"".concat(nme,"-panel-").concat(ime),role:"tabpanel",tabIndex:rme?0:-1,"aria-labelledby":nme&&"".concat(nme,"-tab-").concat(ime),"aria-hidden":!rme,style:ame,className:classNames($P,rme&&"".concat($P,"-active"),tme),ref:eme},ome)}),_excluded$l=["renderTabBar"],_excluded2$5=["label","key"],TabNavListWrapper=function(eme){var $P=eme.renderTabBar,tme=_objectWithoutProperties$6(eme,_excluded$l),ame=reactExports.useContext(TabContext),nme=ame.tabs;if($P){var rme=_objectSpread2$4(_objectSpread2$4({},tme),{},{panes:nme.map(function(ime){var ome=ime.label,lme=ime.key,sme=_objectWithoutProperties$6(ime,_excluded2$5);return reactExports.createElement(TabPane$1,_extends$4C({tab:ome,key:lme,tabKey:lme},sme))})});return $P(rme,TabNavList)}return reactExports.createElement(TabNavList,tme)},_excluded$k=["key","forceRender","style","className","destroyInactiveTabPane"],TabPanelList=function(eme){var $P=eme.id,tme=eme.activeKey,ame=eme.animated,nme=eme.tabPosition,rme=eme.destroyInactiveTabPane,ime=reactExports.useContext(TabContext),ome=ime.prefixCls,lme=ime.tabs,sme=ame.tabPane,cme="".concat(ome,"-tabpane");return reactExports.createElement("div",{className:classNames("".concat(ome,"-content-holder"))},reactExports.createElement("div",{className:classNames("".concat(ome,"-content"),"".concat(ome,"-content-").concat(nme),_defineProperty$7({},"".concat(ome,"-content-animated"),sme))},lme.map(function(dme){var ume=dme.key,fme=dme.forceRender,pme=dme.style,hme=dme.className,bme=dme.destroyInactiveTabPane,mme=_objectWithoutProperties$6(dme,_excluded$k),vme=ume===tme;return reactExports.createElement(CSSMotion,_extends$4C({key:ume,visible:vme,forceRender:fme,removeOnLeave:!!(rme||bme),leavedClassName:"".concat(cme,"-hidden")},ame.tabPaneMotion),function(gme,yme){var _me=gme.style,$me=gme.className;return reactExports.createElement(TabPane$1,_extends$4C({},mme,{prefixCls:cme,id:$P,tabKey:ume,animated:sme,active:vme,style:_objectSpread2$4(_objectSpread2$4({},pme),_me),className:classNames(hme,$me),ref:yme}))})})))};function useAnimateConfig$1(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},eme;return x_===!1?eme={inkBar:!1,tabPane:!1}:x_===!0?eme={inkBar:!0,tabPane:!1}:eme=_objectSpread2$4({inkBar:!0},_typeof$4(x_)==="object"?x_:{}),eme.tabPaneMotion&&eme.tabPane===void 0&&(eme.tabPane=!0),!eme.tabPaneMotion&&eme.tabPane&&(eme.tabPane=!1),eme}var _excluded$j=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uuid$2=0,Tabs$2=reactExports.forwardRef(function(x_,eme){var $P=x_.id,tme=x_.prefixCls,ame=tme===void 0?"rc-tabs":tme,nme=x_.className,rme=x_.items,ime=x_.direction,ome=x_.activeKey,lme=x_.defaultActiveKey,sme=x_.editable,cme=x_.animated,dme=x_.tabPosition,ume=dme===void 0?"top":dme,fme=x_.tabBarGutter,pme=x_.tabBarStyle,hme=x_.tabBarExtraContent,bme=x_.locale,mme=x_.more,vme=x_.destroyInactiveTabPane,gme=x_.renderTabBar,yme=x_.onChange,_me=x_.onTabClick,$me=x_.onTabScroll,Cme=x_.getPopupContainer,Sme=x_.popupClassName,Eme=x_.indicator,xme=_objectWithoutProperties$6(x_,_excluded$j),Tme=reactExports.useMemo(function(){return(rme||[]).filter(function(Zme){return Zme&&_typeof$4(Zme)==="object"&&"key"in Zme})},[rme]),Ome=ime==="rtl",Rme=useAnimateConfig$1(cme),Nme=reactExports.useState(!1),Ime=_slicedToArray$2(Nme,2),Pme=Ime[0],Mme=Ime[1];reactExports.useEffect(function(){Mme(isMobile$3())},[]);var kme=useMergedState(function(){var Zme;return(Zme=Tme[0])===null||Zme===void 0?void 0:Zme.key},{value:ome,defaultValue:lme}),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=reactExports.useState(function(){return Tme.findIndex(function(Zme){return Zme.key===Dme})}),Wme=_slicedToArray$2(Vme,2),Lme=Wme[0],zme=Wme[1];reactExports.useEffect(function(){var Zme=Tme.findIndex(function(lbe){return lbe.key===Dme});if(Zme===-1){var nbe;Zme=Math.max(0,Math.min(Lme,Tme.length-1)),jme((nbe=Tme[Zme])===null||nbe===void 0?void 0:nbe.key)}zme(Zme)},[Tme.map(function(Zme){return Zme.key}).join("_"),Dme,Lme]);var Ume=useMergedState(null,{value:$P}),Gme=_slicedToArray$2(Ume,2),Jme=Gme[0],Yme=Gme[1];reactExports.useEffect(function(){$P||(Yme("rc-tabs-".concat(uuid$2)),uuid$2+=1)},[]);function Qme(Zme,nbe){_me==null||_me(Zme,nbe);var lbe=Zme!==Dme;jme(Zme),lbe&&(yme==null||yme(Zme))}var Xme={id:Jme,activeKey:Dme,animated:Rme,tabPosition:ume,rtl:Ome,mobile:Pme},Kme=_objectSpread2$4(_objectSpread2$4({},Xme),{},{editable:sme,locale:bme,more:mme,tabBarGutter:fme,onTabClick:Qme,onTabScroll:$me,extra:hme,style:pme,panes:null,getPopupContainer:Cme,popupClassName:Sme,indicator:Eme});return reactExports.createElement(TabContext.Provider,{value:{tabs:Tme,prefixCls:ame}},reactExports.createElement("div",_extends$4C({ref:eme,id:$P,className:classNames(ame,"".concat(ame,"-").concat(ume),_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(ame,"-mobile"),Pme),"".concat(ame,"-editable"),sme),"".concat(ame,"-rtl"),Ome),nme)},xme),reactExports.createElement(TabNavListWrapper,_extends$4C({},Kme,{renderTabBar:gme})),reactExports.createElement(TabPanelList,_extends$4C({destroyInactiveTabPane:vme},Xme,{animated:Rme}))))});const motion={motionAppear:!1,motionEnter:!0,motionLeave:!0};function useAnimateConfig(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},$P;return eme===!1?$P={inkBar:!1,tabPane:!1}:eme===!0?$P={inkBar:!0,tabPane:!0}:$P=Object.assign({inkBar:!0},typeof eme=="object"?eme:{}),$P.tabPane&&($P.tabPaneMotion=Object.assign(Object.assign({},motion),{motionName:getTransitionName(x_,"switch")})),$P}var __rest$E=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function filter$2(x_){return x_.filter(eme=>eme)}function useLegacyItems(x_,eme){if(x_)return x_;const $P=toArray$6(eme).map(tme=>{if(reactExports.isValidElement(tme)){const{key:ame,props:nme}=tme,rme=nme||{},{tab:ime}=rme,ome=__rest$E(rme,["tab"]);return Object.assign(Object.assign({key:String(ame)},ome),{label:ime})}return null});return filter$2($P)}const genMotionStyle$1=x_=>{const{componentCls:eme,motionDurationSlow:$P}=x_;return[{[eme]:{[`${eme}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${$P}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${$P}`}}}}},[initSlideMotion(x_,"slide-up"),initSlideMotion(x_,"slide-down")]]},genCardStyle$1=x_=>{const{componentCls:eme,tabsCardPadding:$P,cardBg:tme,cardGutter:ame,colorBorderSecondary:nme,itemSelectedColor:rme}=x_;return{[`${eme}-card`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab`]:{margin:0,padding:$P,background:tme,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${nme}`,transition:`all ${x_.motionDurationSlow} ${x_.motionEaseInOut}`},[`${eme}-tab-active`]:{color:rme,background:x_.colorBgContainer},[`${eme}-ink-bar`]:{visibility:"hidden"}},[`&${eme}-top, &${eme}-bottom`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab + ${eme}-tab`]:{marginLeft:{_skip_check_:!0,value:unit$1(ame)}}}},[`&${eme}-top`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab`]:{borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0`},[`${eme}-tab-active`]:{borderBottomColor:x_.colorBgContainer}}},[`&${eme}-bottom`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab`]:{borderRadius:`0 0 ${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)}`},[`${eme}-tab-active`]:{borderTopColor:x_.colorBgContainer}}},[`&${eme}-left, &${eme}-right`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab + ${eme}-tab`]:{marginTop:unit$1(ame)}}},[`&${eme}-left`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(x_.borderRadiusLG)} 0 0 ${unit$1(x_.borderRadiusLG)}`}},[`${eme}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:x_.colorBgContainer}}}},[`&${eme}-right`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0`}},[`${eme}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:x_.colorBgContainer}}}}}}},genDropdownStyle=x_=>{const{componentCls:eme,itemHoverColor:$P,dropdownEdgeChildVerticalPadding:tme}=x_;return{[`${eme}-dropdown`]:Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x_.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${eme}-dropdown-menu`]:{maxHeight:x_.tabsDropdownHeight,margin:0,padding:`${unit$1(tme)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:x_.colorBgContainer,backgroundClip:"padding-box",borderRadius:x_.borderRadiusLG,outline:"none",boxShadow:x_.boxShadowSecondary,"&-item":Object.assign(Object.assign({},textEllipsis),{display:"flex",alignItems:"center",minWidth:x_.tabsDropdownWidth,margin:0,padding:`${unit$1(x_.paddingXXS)} ${unit$1(x_.paddingSM)}`,color:x_.colorText,fontWeight:"normal",fontSize:x_.fontSize,lineHeight:x_.lineHeight,cursor:"pointer",transition:`all ${x_.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:x_.marginSM},color:x_.colorTextDescription,fontSize:x_.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:$P}},"&:hover":{background:x_.controlItemBgHover},"&-disabled":{"&, &:hover":{color:x_.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},genPositionStyle=x_=>{const{componentCls:eme,margin:$P,colorBorderSecondary:tme,horizontalMargin:ame,verticalItemPadding:nme,verticalItemMargin:rme,calc:ime}=x_;return{[`${eme}-top, ${eme}-bottom`]:{flexDirection:"column",[`> ${eme}-nav, > div > ${eme}-nav`]:{margin:ame,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${tme}`,content:"''"},[`${eme}-ink-bar`]:{height:x_.lineWidthBold,"&-animated":{transition:`width ${x_.motionDurationSlow}, left ${x_.motionDurationSlow},
            right ${x_.motionDurationSlow}`}},[`${eme}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:x_.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:x_.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:x_.boxShadowTabsOverflowRight},[`&${eme}-nav-wrap-ping-left::before`]:{opacity:1},[`&${eme}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${eme}-top`]:{[`> ${eme}-nav,
        > div > ${eme}-nav`]:{"&::before":{bottom:0},[`${eme}-ink-bar`]:{bottom:0}}},[`${eme}-bottom`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{order:1,marginTop:$P,marginBottom:0,"&::before":{top:0},[`${eme}-ink-bar`]:{top:0}},[`> ${eme}-content-holder, > div > ${eme}-content-holder`]:{order:0}},[`${eme}-left, ${eme}-right`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{flexDirection:"column",minWidth:ime(x_.controlHeight).mul(1.25).equal(),[`${eme}-tab`]:{padding:nme,textAlign:"center"},[`${eme}-tab + ${eme}-tab`]:{margin:rme},[`${eme}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:x_.controlHeight},"&::before":{top:0,boxShadow:x_.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:x_.boxShadowTabsOverflowBottom},[`&${eme}-nav-wrap-ping-top::before`]:{opacity:1},[`&${eme}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${eme}-ink-bar`]:{width:x_.lineWidthBold,"&-animated":{transition:`height ${x_.motionDurationSlow}, top ${x_.motionDurationSlow}`}},[`${eme}-nav-list, ${eme}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${eme}-left`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${eme}-content-holder, > div > ${eme}-content-holder`]:{marginLeft:{_skip_check_:!0,value:unit$1(ime(x_.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`},[`> ${eme}-content > ${eme}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:x_.paddingLG}}}},[`${eme}-right`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{order:1,[`${eme}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${eme}-content-holder, > div > ${eme}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:ime(x_.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`},[`> ${eme}-content > ${eme}-tabpane`]:{paddingRight:{_skip_check_:!0,value:x_.paddingLG}}}}}},genSizeStyle$1=x_=>{const{componentCls:eme,cardPaddingSM:$P,cardPaddingLG:tme,horizontalItemPaddingSM:ame,horizontalItemPaddingLG:nme}=x_;return{[eme]:{"&-small":{[`> ${eme}-nav`]:{[`${eme}-tab`]:{padding:ame,fontSize:x_.titleFontSizeSM}}},"&-large":{[`> ${eme}-nav`]:{[`${eme}-tab`]:{padding:nme,fontSize:x_.titleFontSizeLG}}}},[`${eme}-card`]:{[`&${eme}-small`]:{[`> ${eme}-nav`]:{[`${eme}-tab`]:{padding:$P}},[`&${eme}-bottom`]:{[`> ${eme}-nav ${eme}-tab`]:{borderRadius:`0 0 ${unit$1(x_.borderRadius)} ${unit$1(x_.borderRadius)}`}},[`&${eme}-top`]:{[`> ${eme}-nav ${eme}-tab`]:{borderRadius:`${unit$1(x_.borderRadius)} ${unit$1(x_.borderRadius)} 0 0`}},[`&${eme}-right`]:{[`> ${eme}-nav ${eme}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${unit$1(x_.borderRadius)} ${unit$1(x_.borderRadius)} 0`}}},[`&${eme}-left`]:{[`> ${eme}-nav ${eme}-tab`]:{borderRadius:{_skip_check_:!0,value:`${unit$1(x_.borderRadius)} 0 0 ${unit$1(x_.borderRadius)}`}}}},[`&${eme}-large`]:{[`> ${eme}-nav`]:{[`${eme}-tab`]:{padding:tme}}}}}},genTabStyle=x_=>{const{componentCls:eme,itemActiveColor:$P,itemHoverColor:tme,iconCls:ame,tabsHorizontalItemMargin:nme,horizontalItemPadding:rme,itemSelectedColor:ime,itemColor:ome}=x_,lme=`${eme}-tab`;return{[lme]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:rme,fontSize:x_.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ome,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:$P}},genFocusStyle(x_)),"&-btn":{outline:"none",transition:`all ${x_.motionDurationSlow}`,[`${lme}-icon:not(:last-child)`]:{marginInlineEnd:x_.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:x_.calc(x_.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:x_.marginXS},color:x_.colorTextDescription,fontSize:x_.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${x_.motionDurationSlow}`,"&:hover":{color:x_.colorTextHeading}},"&:hover":{color:tme},[`&${lme}-active ${lme}-btn`]:{color:ime,textShadow:x_.tabsActiveTextShadow},[`&${lme}-disabled`]:{color:x_.colorTextDisabled,cursor:"not-allowed"},[`&${lme}-disabled ${lme}-btn, &${lme}-disabled ${eme}-remove`]:{"&:focus, &:active":{color:x_.colorTextDisabled}},[`& ${lme}-remove ${ame}`]:{margin:0},[`${ame}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:x_.marginSM}}},[`${lme} + ${lme}`]:{margin:{_skip_check_:!0,value:nme}}}},genRtlStyle$1=x_=>{const{componentCls:eme,tabsHorizontalItemMarginRTL:$P,iconCls:tme,cardGutter:ame,calc:nme}=x_;return{[`${eme}-rtl`]:{direction:"rtl",[`${eme}-nav`]:{[`${eme}-tab`]:{margin:{_skip_check_:!0,value:$P},[`${eme}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[tme]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:unit$1(x_.marginSM)}},[`${eme}-tab-remove`]:{marginRight:{_skip_check_:!0,value:unit$1(x_.marginXS)},marginLeft:{_skip_check_:!0,value:unit$1(nme(x_.marginXXS).mul(-1).equal())},[tme]:{margin:0}}}},[`&${eme}-left`]:{[`> ${eme}-nav`]:{order:1},[`> ${eme}-content-holder`]:{order:0}},[`&${eme}-right`]:{[`> ${eme}-nav`]:{order:0},[`> ${eme}-content-holder`]:{order:1}},[`&${eme}-card${eme}-top, &${eme}-card${eme}-bottom`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-tab + ${eme}-tab`]:{marginRight:{_skip_check_:!0,value:ame},marginLeft:{_skip_check_:!0,value:0}}}}},[`${eme}-dropdown-rtl`]:{direction:"rtl"},[`${eme}-menu-item`]:{[`${eme}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},genTabsStyle=x_=>{const{componentCls:eme,tabsCardPadding:$P,cardHeight:tme,cardGutter:ame,itemHoverColor:nme,itemActiveColor:rme,colorBorderSecondary:ime}=x_;return{[eme]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{display:"flex",[`> ${eme}-nav, > div > ${eme}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${eme}-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 ${x_.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${eme}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${x_.motionDurationSlow}`},[`${eme}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${eme}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${eme}-nav-more`]:{position:"relative",padding:$P,background:"transparent",border:0,color:x_.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:x_.calc(x_.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${eme}-nav-add`]:Object.assign({minWidth:tme,minHeight:tme,marginLeft:{_skip_check_:!0,value:ame},padding:`0 ${unit$1(x_.paddingXS)}`,background:"transparent",border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${ime}`,borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:x_.colorText,transition:`all ${x_.motionDurationSlow} ${x_.motionEaseInOut}`,"&:hover":{color:nme},"&:active, &:focus:not(:focus-visible)":{color:rme}},genFocusStyle(x_))},[`${eme}-extra-content`]:{flex:"none"},[`${eme}-ink-bar`]:{position:"absolute",background:x_.inkBarColor,pointerEvents:"none"}}),genTabStyle(x_)),{[`${eme}-content`]:{position:"relative",width:"100%"},[`${eme}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${eme}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${eme}-centered`]:{[`> ${eme}-nav, > div > ${eme}-nav`]:{[`${eme}-nav-wrap`]:{[`&:not([class*='${eme}-nav-wrap-ping']) > ${eme}-nav-list`]:{margin:"auto"}}}}}},prepareComponentToken$b=x_=>{const eme=x_.controlHeightLG;return{zIndexPopup:x_.zIndexPopupBase+50,cardBg:x_.colorFillAlter,cardHeight:eme,cardPadding:`${(eme-Math.round(x_.fontSize*x_.lineHeight))/2-x_.lineWidth}px ${x_.padding}px`,cardPaddingSM:`${x_.paddingXXS*1.5}px ${x_.padding}px`,cardPaddingLG:`${x_.paddingXS}px ${x_.padding}px ${x_.paddingXXS*1.5}px`,titleFontSize:x_.fontSize,titleFontSizeLG:x_.fontSizeLG,titleFontSizeSM:x_.fontSize,inkBarColor:x_.colorPrimary,horizontalMargin:`0 0 ${x_.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${x_.paddingSM}px 0`,horizontalItemPaddingSM:`${x_.paddingXS}px 0`,horizontalItemPaddingLG:`${x_.padding}px 0`,verticalItemPadding:`${x_.paddingXS}px ${x_.paddingLG}px`,verticalItemMargin:`${x_.margin}px 0 0 0`,itemColor:x_.colorText,itemSelectedColor:x_.colorPrimary,itemHoverColor:x_.colorPrimaryHover,itemActiveColor:x_.colorPrimaryActive,cardGutter:x_.marginXXS/2}},useStyle$e=genStyleHooks("Tabs",x_=>{const eme=merge$5(x_,{tabsCardPadding:x_.cardPadding,dropdownEdgeChildVerticalPadding:x_.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit$1(x_.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit$1(x_.horizontalItemGutter)}`});return[genSizeStyle$1(eme),genRtlStyle$1(eme),genPositionStyle(eme),genDropdownStyle(eme),genCardStyle$1(eme),genTabsStyle(eme),genMotionStyle$1(eme)]},prepareComponentToken$b),TabPane=()=>null;var __rest$D=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Tabs$1=x_=>{var eme,$P,tme,ame,nme,rme,ime,ome,lme,sme,cme;const{type:dme,className:ume,rootClassName:fme,size:pme,onEdit:hme,hideAdd:bme,centered:mme,addIcon:vme,removeIcon:gme,moreIcon:yme,more:_me,popupClassName:$me,children:Cme,items:Sme,animated:Eme,style:xme,indicatorSize:Tme,indicator:Ome}=x_,Rme=__rest$D(x_,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Nme}=Rme,{direction:Ime,tabs:Pme,getPrefixCls:Mme,getPopupContainer:kme}=reactExports.useContext(ConfigContext),Bme=Mme("tabs",Nme),Dme=useCSSVarCls(Bme),[jme,Vme,Wme]=useStyle$e(Bme,Dme);let Lme;dme==="editable-card"&&(Lme={onEdit:(Xme,Kme)=>{let{key:Zme,event:nbe}=Kme;hme==null||hme(Xme==="add"?nbe:Zme,Xme)},removeIcon:(eme=gme??(Pme==null?void 0:Pme.removeIcon))!==null&&eme!==void 0?eme:reactExports.createElement(RefIcon$m,null),addIcon:(vme??(Pme==null?void 0:Pme.addIcon))||reactExports.createElement(RefIcon$a,null),showAdd:bme!==!0});const zme=Mme(),Ume=useSize(pme),Gme=useLegacyItems(Sme,Cme),Jme=useAnimateConfig(Bme,Eme),Yme=Object.assign(Object.assign({},Pme==null?void 0:Pme.style),xme),Qme={align:($P=Ome==null?void 0:Ome.align)!==null&&$P!==void 0?$P:(tme=Pme==null?void 0:Pme.indicator)===null||tme===void 0?void 0:tme.align,size:(ime=(nme=(ame=Ome==null?void 0:Ome.size)!==null&&ame!==void 0?ame:Tme)!==null&&nme!==void 0?nme:(rme=Pme==null?void 0:Pme.indicator)===null||rme===void 0?void 0:rme.size)!==null&&ime!==void 0?ime:Pme==null?void 0:Pme.indicatorSize};return jme(reactExports.createElement(Tabs$2,Object.assign({direction:Ime,getPopupContainer:kme},Rme,{items:Gme,className:classNames({[`${Bme}-${Ume}`]:Ume,[`${Bme}-card`]:["card","editable-card"].includes(dme),[`${Bme}-editable-card`]:dme==="editable-card",[`${Bme}-centered`]:mme},Pme==null?void 0:Pme.className,ume,fme,Vme,Wme,Dme),popupClassName:classNames($me,Vme,Wme,Dme),style:Yme,editable:Lme,more:Object.assign({icon:(cme=(sme=(lme=(ome=Pme==null?void 0:Pme.more)===null||ome===void 0?void 0:ome.icon)!==null&&lme!==void 0?lme:Pme==null?void 0:Pme.moreIcon)!==null&&sme!==void 0?sme:yme)!==null&&cme!==void 0?cme:reactExports.createElement(RefIcon$b,null),transitionName:`${zme}-slide-up`},_me),prefixCls:Bme,animated:Jme,indicator:Qme})))};Tabs$1.TabPane=TabPane;var __rest$C=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Grid$1=x_=>{var{prefixCls:eme,className:$P,hoverable:tme=!0}=x_,ame=__rest$C(x_,["prefixCls","className","hoverable"]);const{getPrefixCls:nme}=reactExports.useContext(ConfigContext),rme=nme("card",eme),ime=classNames(`${rme}-grid`,$P,{[`${rme}-grid-hoverable`]:tme});return reactExports.createElement("div",Object.assign({},ame,{className:ime}))},genCardHeadStyle=x_=>{const{antCls:eme,componentCls:$P,headerHeight:tme,cardPaddingBase:ame,tabsMarginBottom:nme}=x_;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:tme,marginBottom:-1,padding:`0 ${unit$1(ame)}`,color:x_.colorTextHeading,fontWeight:x_.fontWeightStrong,fontSize:x_.headerFontSize,background:x_.headerBg,borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorderSecondary}`,borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0`},clearFix()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},textEllipsis),{[`
          > ${$P}-typography,
          > ${$P}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${eme}-tabs-top`]:{clear:"both",marginBottom:nme,color:x_.colorText,fontWeight:"normal",fontSize:x_.fontSize,"&-bar":{borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorderSecondary}`}}})},genCardGridStyle=x_=>{const{cardPaddingBase:eme,colorBorderSecondary:$P,cardShadow:tme,lineWidth:ame}=x_;return{width:"33.33%",padding:eme,border:0,borderRadius:0,boxShadow:`
      ${unit$1(ame)} 0 0 0 ${$P},
      0 ${unit$1(ame)} 0 0 ${$P},
      ${unit$1(ame)} ${unit$1(ame)} 0 0 ${$P},
      ${unit$1(ame)} 0 0 0 ${$P} inset,
      0 ${unit$1(ame)} 0 0 ${$P} inset;
    `,transition:`all ${x_.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:tme}}},genCardActionsStyle=x_=>{const{componentCls:eme,iconCls:$P,actionsLiMargin:tme,cardActionsIconSize:ame,colorBorderSecondary:nme,actionsBg:rme}=x_;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:rme,borderTop:`${unit$1(x_.lineWidth)} ${x_.lineType} ${nme}`,display:"flex",borderRadius:`0 0 ${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)}`},clearFix()),{"& > li":{margin:tme,color:x_.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:x_.calc(x_.cardActionsIconSize).mul(2).equal(),fontSize:x_.fontSize,lineHeight:x_.lineHeight,cursor:"pointer","&:hover":{color:x_.colorPrimary,transition:`color ${x_.motionDurationMid}`},[`a:not(${eme}-btn), > ${$P}`]:{display:"inline-block",width:"100%",color:x_.colorTextDescription,lineHeight:unit$1(x_.fontHeight),transition:`color ${x_.motionDurationMid}`,"&:hover":{color:x_.colorPrimary}},[`> ${$P}`]:{fontSize:ame,lineHeight:unit$1(x_.calc(ame).mul(x_.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${unit$1(x_.lineWidth)} ${x_.lineType} ${nme}`}}})},genCardMetaStyle=x_=>Object.assign(Object.assign({margin:`${unit$1(x_.calc(x_.marginXXS).mul(-1).equal())} 0`,display:"flex"},clearFix()),{"&-avatar":{paddingInlineEnd:x_.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:x_.marginXS}},"&-title":Object.assign({color:x_.colorTextHeading,fontWeight:x_.fontWeightStrong,fontSize:x_.fontSizeLG},textEllipsis),"&-description":{color:x_.colorTextDescription}}),genCardTypeInnerStyle=x_=>{const{componentCls:eme,cardPaddingBase:$P,colorFillAlter:tme}=x_;return{[`${eme}-head`]:{padding:`0 ${unit$1($P)}`,background:tme,"&-title":{fontSize:x_.fontSize}},[`${eme}-body`]:{padding:`${unit$1(x_.padding)} ${unit$1($P)}`}}},genCardLoadingStyle=x_=>{const{componentCls:eme}=x_;return{overflow:"hidden",[`${eme}-body`]:{userSelect:"none"}}},genCardStyle=x_=>{const{componentCls:eme,cardShadow:$P,cardHeadPadding:tme,colorBorderSecondary:ame,boxShadowTertiary:nme,cardPaddingBase:rme,extraColor:ime}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",background:x_.colorBgContainer,borderRadius:x_.borderRadiusLG,[`&:not(${eme}-bordered)`]:{boxShadow:nme},[`${eme}-head`]:genCardHeadStyle(x_),[`${eme}-extra`]:{marginInlineStart:"auto",color:ime,fontWeight:"normal",fontSize:x_.fontSize},[`${eme}-body`]:Object.assign({padding:rme,borderRadius:`0 0 ${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)}`},clearFix()),[`${eme}-grid`]:genCardGridStyle(x_),[`${eme}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0`}},[`${eme}-actions`]:genCardActionsStyle(x_),[`${eme}-meta`]:genCardMetaStyle(x_)}),[`${eme}-bordered`]:{border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${ame}`,[`${eme}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${eme}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${x_.motionDurationMid}, border-color ${x_.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:$P}},[`${eme}-contain-grid`]:{borderRadius:`${unit$1(x_.borderRadiusLG)} ${unit$1(x_.borderRadiusLG)} 0 0 `,[`${eme}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${eme}-loading) ${eme}-body`]:{marginBlockStart:x_.calc(x_.lineWidth).mul(-1).equal(),marginInlineStart:x_.calc(x_.lineWidth).mul(-1).equal(),padding:0}},[`${eme}-contain-tabs`]:{[`> div${eme}-head`]:{minHeight:0,[`${eme}-head-title, ${eme}-extra`]:{paddingTop:tme}}},[`${eme}-type-inner`]:genCardTypeInnerStyle(x_),[`${eme}-loading`]:genCardLoadingStyle(x_),[`${eme}-rtl`]:{direction:"rtl"}}},genCardSizeStyle=x_=>{const{componentCls:eme,cardPaddingSM:$P,headerHeightSM:tme,headerFontSizeSM:ame}=x_;return{[`${eme}-small`]:{[`> ${eme}-head`]:{minHeight:tme,padding:`0 ${unit$1($P)}`,fontSize:ame,[`> ${eme}-head-wrapper`]:{[`> ${eme}-extra`]:{fontSize:x_.fontSize}}},[`> ${eme}-body`]:{padding:$P}},[`${eme}-small${eme}-contain-tabs`]:{[`> ${eme}-head`]:{[`${eme}-head-title, ${eme}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},prepareComponentToken$a=x_=>({headerBg:"transparent",headerFontSize:x_.fontSizeLG,headerFontSizeSM:x_.fontSize,headerHeight:x_.fontSizeLG*x_.lineHeightLG+x_.padding*2,headerHeightSM:x_.fontSize*x_.lineHeight+x_.paddingXS*2,actionsBg:x_.colorBgContainer,actionsLiMargin:`${x_.paddingSM}px 0`,tabsMarginBottom:-x_.padding-x_.lineWidth,extraColor:x_.colorText}),useStyle$d=genStyleHooks("Card",x_=>{const eme=merge$5(x_,{cardShadow:x_.boxShadowCard,cardHeadPadding:x_.padding,cardPaddingBase:x_.paddingLG,cardActionsIconSize:x_.fontSize,cardPaddingSM:12});return[genCardStyle(eme),genCardSizeStyle(eme)]},prepareComponentToken$a);var __rest$B=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const ActionNode=x_=>{const{actionClasses:eme,actions:$P=[],actionStyle:tme}=x_;return reactExports.createElement("ul",{className:eme,style:tme},$P.map((ame,nme)=>{const rme=`action-${nme}`;return reactExports.createElement("li",{style:{width:`${100/$P.length}%`},key:rme},reactExports.createElement("span",null,ame))}))},Card$4=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,rootClassName:ame,style:nme,extra:rme,headStyle:ime={},bodyStyle:ome={},title:lme,loading:sme,bordered:cme=!0,size:dme,type:ume,cover:fme,actions:pme,tabList:hme,children:bme,activeTabKey:mme,defaultActiveTabKey:vme,tabBarExtraContent:gme,hoverable:yme,tabProps:_me={},classNames:$me,styles:Cme}=x_,Sme=__rest$B(x_,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:Eme,direction:xme,card:Tme}=reactExports.useContext(ConfigContext),Ome=abe=>{var obe;(obe=x_.onTabChange)===null||obe===void 0||obe.call(x_,abe)},Rme=abe=>{var obe;return classNames((obe=Tme==null?void 0:Tme.classNames)===null||obe===void 0?void 0:obe[abe],$me==null?void 0:$me[abe])},Nme=abe=>{var obe;return Object.assign(Object.assign({},(obe=Tme==null?void 0:Tme.styles)===null||obe===void 0?void 0:obe[abe]),Cme==null?void 0:Cme[abe])},Ime=reactExports.useMemo(()=>{let abe=!1;return reactExports.Children.forEach(bme,obe=>{(obe==null?void 0:obe.type)===Grid$1&&(abe=!0)}),abe},[bme]),Pme=Eme("card",$P),[Mme,kme,Bme]=useStyle$d(Pme),Dme=reactExports.createElement(Skeleton,{loading:!0,active:!0,paragraph:{rows:4},title:!1},bme),jme=mme!==void 0,Vme=Object.assign(Object.assign({},_me),{[jme?"activeKey":"defaultActiveKey"]:jme?mme:vme,tabBarExtraContent:gme});let Wme;const Lme=useSize(dme),zme=!Lme||Lme==="default"?"large":Lme,Ume=hme?reactExports.createElement(Tabs$1,Object.assign({size:zme},Vme,{className:`${Pme}-head-tabs`,onChange:Ome,items:hme.map(abe=>{var{tab:obe}=abe,hbe=__rest$B(abe,["tab"]);return Object.assign({label:obe},hbe)})})):null;if(lme||rme||Ume){const abe=classNames(`${Pme}-head`,Rme("header")),obe=classNames(`${Pme}-head-title`,Rme("title")),hbe=classNames(`${Pme}-extra`,Rme("extra")),ube=Object.assign(Object.assign({},ime),Nme("header"));Wme=reactExports.createElement("div",{className:abe,style:ube},reactExports.createElement("div",{className:`${Pme}-head-wrapper`},lme&&reactExports.createElement("div",{className:obe,style:Nme("title")},lme),rme&&reactExports.createElement("div",{className:hbe,style:Nme("extra")},rme)),Ume)}const Gme=classNames(`${Pme}-cover`,Rme("cover")),Jme=fme?reactExports.createElement("div",{className:Gme,style:Nme("cover")},fme):null,Yme=classNames(`${Pme}-body`,Rme("body")),Qme=Object.assign(Object.assign({},ome),Nme("body")),Xme=reactExports.createElement("div",{className:Yme,style:Qme},sme?Dme:bme),Kme=classNames(`${Pme}-actions`,Rme("actions")),Zme=pme!=null&&pme.length?reactExports.createElement(ActionNode,{actionClasses:Kme,actionStyle:Nme("actions"),actions:pme}):null,nbe=omit$2(Sme,["onTabChange"]),lbe=classNames(Pme,Tme==null?void 0:Tme.className,{[`${Pme}-loading`]:sme,[`${Pme}-bordered`]:cme,[`${Pme}-hoverable`]:yme,[`${Pme}-contain-grid`]:Ime,[`${Pme}-contain-tabs`]:hme==null?void 0:hme.length,[`${Pme}-${Lme}`]:Lme,[`${Pme}-type-${ume}`]:!!ume,[`${Pme}-rtl`]:xme==="rtl"},tme,ame,kme,Bme),ibe=Object.assign(Object.assign({},Tme==null?void 0:Tme.style),nme);return Mme(reactExports.createElement("div",Object.assign({ref:eme},nbe,{className:lbe,style:ibe}),Wme,Jme,Xme,Zme))});var __rest$A=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Meta=x_=>{const{prefixCls:eme,className:$P,avatar:tme,title:ame,description:nme}=x_,rme=__rest$A(x_,["prefixCls","className","avatar","title","description"]),{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("card",eme),lme=classNames(`${ome}-meta`,$P),sme=tme?reactExports.createElement("div",{className:`${ome}-meta-avatar`},tme):null,cme=ame?reactExports.createElement("div",{className:`${ome}-meta-title`},ame):null,dme=nme?reactExports.createElement("div",{className:`${ome}-meta-description`},nme):null,ume=cme||dme?reactExports.createElement("div",{className:`${ome}-meta-detail`},cme,dme):null;return reactExports.createElement("div",Object.assign({},rme,{className:lme}),sme,ume)},Card$3=Card$4;Card$3.Grid=Grid$1;Card$3.Meta=Meta;function throttle$3(x_,eme,$P){var tme=$P||{},ame=tme.noTrailing,nme=ame===void 0?!1:ame,rme=tme.noLeading,ime=rme===void 0?!1:rme,ome=tme.debounceMode,lme=ome===void 0?void 0:ome,sme,cme=!1,dme=0;function ume(){sme&&clearTimeout(sme)}function fme(hme){var bme=hme||{},mme=bme.upcomingOnly,vme=mme===void 0?!1:mme;ume(),cme=!vme}function pme(){for(var hme=arguments.length,bme=new Array(hme),mme=0;mme<hme;mme++)bme[mme]=arguments[mme];var vme=this,gme=Date.now()-dme;if(cme)return;function yme(){dme=Date.now(),eme.apply(vme,bme)}function _me(){sme=void 0}!ime&&lme&&!sme&&yme(),ume(),lme===void 0&&gme>x_?ime?(dme=Date.now(),nme||(sme=setTimeout(lme?_me:yme,x_))):yme():nme!==!0&&(sme=setTimeout(lme?_me:yme,lme===void 0?x_-gme:x_))}return pme.cancel=fme,pme}function debounce$3(x_,eme,$P){var tme={},ame=tme.atBegin,nme=ame===void 0?!1:ame;return throttle$3(x_,eme,{debounceMode:nme!==!1})}const genCheckboxStyle=x_=>{const{checkboxCls:eme}=x_,$P=`${eme}-wrapper`;return[{[`${eme}-group`]:Object.assign(Object.assign({},resetComponent(x_)),{display:"inline-flex",flexWrap:"wrap",columnGap:x_.marginXS,[`> ${x_.antCls}-row`]:{flex:1}}),[$P]:Object.assign(Object.assign({},resetComponent(x_)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${$P}`]:{marginInlineStart:0},[`&${$P}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:x_.borderRadiusSM,alignSelf:"center",[`${eme}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${eme}-inner`]:Object.assign({},genFocusOutline(x_))},[`${eme}-inner`]:{boxSizing:"border-box",display:"block",width:x_.checkboxSize,height:x_.checkboxSize,direction:"ltr",backgroundColor:x_.colorBgContainer,border:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorBorder}`,borderRadius:x_.borderRadiusSM,borderCollapse:"separate",transition:`all ${x_.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:x_.calc(x_.checkboxSize).div(14).mul(5).equal(),height:x_.calc(x_.checkboxSize).div(14).mul(8).equal(),border:`${unit$1(x_.lineWidthBold)} solid ${x_.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${x_.motionDurationFast} ${x_.motionEaseInBack}, opacity ${x_.motionDurationFast}`}},"& + span":{paddingInlineStart:x_.paddingXS,paddingInlineEnd:x_.paddingXS}})},{[`
        ${$P}:not(${$P}-disabled),
        ${eme}:not(${eme}-disabled)
      `]:{[`&:hover ${eme}-inner`]:{borderColor:x_.colorPrimary}},[`${$P}:not(${$P}-disabled)`]:{[`&:hover ${eme}-checked:not(${eme}-disabled) ${eme}-inner`]:{backgroundColor:x_.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${eme}-checked:not(${eme}-disabled):after`]:{borderColor:x_.colorPrimaryHover}}},{[`${eme}-checked`]:{[`${eme}-inner`]:{backgroundColor:x_.colorPrimary,borderColor:x_.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${x_.motionDurationMid} ${x_.motionEaseOutBack} ${x_.motionDurationFast}`}}},[`
        ${$P}-checked:not(${$P}-disabled),
        ${eme}-checked:not(${eme}-disabled)
      `]:{[`&:hover ${eme}-inner`]:{backgroundColor:x_.colorPrimaryHover,borderColor:"transparent"}}},{[eme]:{"&-indeterminate":{[`${eme}-inner`]:{backgroundColor:`${x_.colorBgContainer} !important`,borderColor:`${x_.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:x_.calc(x_.fontSizeLG).div(2).equal(),height:x_.calc(x_.fontSizeLG).div(2).equal(),backgroundColor:x_.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${eme}-inner`]:{backgroundColor:`${x_.colorBgContainer} !important`,borderColor:`${x_.colorPrimary} !important`}}}},{[`${$P}-disabled`]:{cursor:"not-allowed"},[`${eme}-disabled`]:{[`&, ${eme}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${eme}-inner`]:{background:x_.colorBgContainerDisabled,borderColor:x_.colorBorder,"&:after":{borderColor:x_.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:x_.colorTextDisabled},[`&${eme}-indeterminate ${eme}-inner::after`]:{background:x_.colorTextDisabled}}}]};function getStyle(x_,eme){const $P=merge$5(eme,{checkboxCls:`.${x_}`,checkboxSize:eme.controlInteractiveSize});return[genCheckboxStyle($P)]}const useStyle$c=genStyleHooks("Checkbox",(x_,eme)=>{let{prefixCls:$P}=eme;return[getStyle($P,x_)]}),GroupContext=React__default.createContext(null);var __rest$z=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalCheckbox=(x_,eme)=>{var $P;const{prefixCls:tme,className:ame,rootClassName:nme,children:rme,indeterminate:ime=!1,style:ome,onMouseEnter:lme,onMouseLeave:sme,skipGroup:cme=!1,disabled:dme}=x_,ume=__rest$z(x_,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:fme,direction:pme,checkbox:hme}=reactExports.useContext(ConfigContext),bme=reactExports.useContext(GroupContext),{isFormItemInput:mme}=reactExports.useContext(FormItemInputContext),vme=reactExports.useContext(DisabledContext),gme=($P=(bme==null?void 0:bme.disabled)||dme)!==null&&$P!==void 0?$P:vme,yme=reactExports.useRef(ume.value),_me=reactExports.useRef(null),$me=composeRef(eme,_me);reactExports.useEffect(()=>{bme==null||bme.registerValue(ume.value)},[]),reactExports.useEffect(()=>{if(!cme)return ume.value!==yme.current&&(bme==null||bme.cancelValue(yme.current),bme==null||bme.registerValue(ume.value),yme.current=ume.value),()=>bme==null?void 0:bme.cancelValue(ume.value)},[ume.value]),reactExports.useEffect(()=>{var Ime;!((Ime=_me.current)===null||Ime===void 0)&&Ime.input&&(_me.current.input.indeterminate=ime)},[ime]);const Cme=fme("checkbox",tme),Sme=useCSSVarCls(Cme),[Eme,xme,Tme]=useStyle$c(Cme,Sme),Ome=Object.assign({},ume);bme&&!cme&&(Ome.onChange=function(){ume.onChange&&ume.onChange.apply(ume,arguments),bme.toggleOption&&bme.toggleOption({label:rme,value:ume.value})},Ome.name=bme.name,Ome.checked=bme.value.includes(ume.value));const Rme=classNames(`${Cme}-wrapper`,{[`${Cme}-rtl`]:pme==="rtl",[`${Cme}-wrapper-checked`]:Ome.checked,[`${Cme}-wrapper-disabled`]:gme,[`${Cme}-wrapper-in-form-item`]:mme},hme==null?void 0:hme.className,ame,nme,Tme,Sme,xme),Nme=classNames({[`${Cme}-indeterminate`]:ime},TARGET_CLS,xme);return Eme(reactExports.createElement(Wave,{component:"Checkbox",disabled:gme},reactExports.createElement("label",{className:Rme,style:Object.assign(Object.assign({},hme==null?void 0:hme.style),ome),onMouseEnter:lme,onMouseLeave:sme},reactExports.createElement(Checkbox$4,Object.assign({},Ome,{prefixCls:Cme,className:Nme,disabled:gme,ref:$me})),rme!==void 0&&reactExports.createElement("span",null,rme))))},Checkbox$3=reactExports.forwardRef(InternalCheckbox);var __rest$y=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const CheckboxGroup=reactExports.forwardRef((x_,eme)=>{const{defaultValue:$P,children:tme,options:ame=[],prefixCls:nme,className:rme,rootClassName:ime,style:ome,onChange:lme}=x_,sme=__rest$y(x_,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:cme,direction:dme}=reactExports.useContext(ConfigContext),[ume,fme]=reactExports.useState(sme.value||$P||[]),[pme,hme]=reactExports.useState([]);reactExports.useEffect(()=>{"value"in sme&&fme(sme.value||[])},[sme.value]);const bme=reactExports.useMemo(()=>ame.map(Nme=>typeof Nme=="string"||typeof Nme=="number"?{label:Nme,value:Nme}:Nme),[ame]),mme=Nme=>{hme(Ime=>Ime.filter(Pme=>Pme!==Nme))},vme=Nme=>{hme(Ime=>[].concat(_toConsumableArray$1(Ime),[Nme]))},gme=Nme=>{const Ime=ume.indexOf(Nme.value),Pme=_toConsumableArray$1(ume);Ime===-1?Pme.push(Nme.value):Pme.splice(Ime,1),"value"in sme||fme(Pme),lme==null||lme(Pme.filter(Mme=>pme.includes(Mme)).sort((Mme,kme)=>{const Bme=bme.findIndex(jme=>jme.value===Mme),Dme=bme.findIndex(jme=>jme.value===kme);return Bme-Dme}))},yme=cme("checkbox",nme),_me=`${yme}-group`,$me=useCSSVarCls(yme),[Cme,Sme,Eme]=useStyle$c(yme,$me),xme=omit$2(sme,["value","disabled"]),Tme=ame.length?bme.map(Nme=>reactExports.createElement(Checkbox$3,{prefixCls:yme,key:Nme.value.toString(),disabled:"disabled"in Nme?Nme.disabled:sme.disabled,value:Nme.value,checked:ume.includes(Nme.value),onChange:Nme.onChange,className:`${_me}-item`,style:Nme.style,title:Nme.title,id:Nme.id,required:Nme.required},Nme.label)):tme,Ome={toggleOption:gme,value:ume,disabled:sme.disabled,name:sme.name,registerValue:vme,cancelValue:mme},Rme=classNames(_me,{[`${_me}-rtl`]:dme==="rtl"},rme,ime,Eme,$me,Sme);return Cme(reactExports.createElement("div",Object.assign({className:Rme,style:ome},xme,{ref:eme}),reactExports.createElement(GroupContext.Provider,{value:Ome},Tme)))}),Checkbox$2=Checkbox$3;Checkbox$2.Group=CheckboxGroup;Checkbox$2.__ANT_CHECKBOX=!0;const RowContext=reactExports.createContext({}),genGridRowStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{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"}}}},genGridColStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{position:"relative",maxWidth:"100%",minHeight:1}}},genLoopGridColumnsStyle=(x_,eme)=>{const{prefixCls:$P,componentCls:tme,gridColumns:ame}=x_,nme={};for(let rme=ame;rme>=0;rme--)rme===0?(nme[`${tme}${eme}-${rme}`]={display:"none"},nme[`${tme}-push-${rme}`]={insetInlineStart:"auto"},nme[`${tme}-pull-${rme}`]={insetInlineEnd:"auto"},nme[`${tme}${eme}-push-${rme}`]={insetInlineStart:"auto"},nme[`${tme}${eme}-pull-${rme}`]={insetInlineEnd:"auto"},nme[`${tme}${eme}-offset-${rme}`]={marginInlineStart:0},nme[`${tme}${eme}-order-${rme}`]={order:0}):(nme[`${tme}${eme}-${rme}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${rme/ame*100}%`,maxWidth:`${rme/ame*100}%`}],nme[`${tme}${eme}-push-${rme}`]={insetInlineStart:`${rme/ame*100}%`},nme[`${tme}${eme}-pull-${rme}`]={insetInlineEnd:`${rme/ame*100}%`},nme[`${tme}${eme}-offset-${rme}`]={marginInlineStart:`${rme/ame*100}%`},nme[`${tme}${eme}-order-${rme}`]={order:rme});return nme[`${tme}${eme}-flex`]={flex:`var(--${$P}${eme}-flex)`},nme},genGridStyle=(x_,eme)=>genLoopGridColumnsStyle(x_,eme),genGridMediaStyle=(x_,eme,$P)=>({[`@media (min-width: ${unit$1(eme)})`]:Object.assign({},genGridStyle(x_,$P))}),prepareRowComponentToken=()=>({}),prepareColComponentToken=()=>({}),useRowStyle=genStyleHooks("Grid",genGridRowStyle,prepareRowComponentToken),useColStyle=genStyleHooks("Grid",x_=>{const eme=merge$5(x_,{gridColumns:24}),$P={"-sm":eme.screenSMMin,"-md":eme.screenMDMin,"-lg":eme.screenLGMin,"-xl":eme.screenXLMin,"-xxl":eme.screenXXLMin};return[genGridColStyle(eme),genGridStyle(eme,""),genGridStyle(eme,"-xs"),Object.keys($P).map(tme=>genGridMediaStyle(eme,$P[tme],tme)).reduce((tme,ame)=>Object.assign(Object.assign({},tme),ame),{})]},prepareColComponentToken);var __rest$x=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function parseFlex(x_){return typeof x_=="number"?`${x_} ${x_} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(x_)?`0 0 ${x_}`:x_}const sizes=["xs","sm","md","lg","xl","xxl"],Col=reactExports.forwardRef((x_,eme)=>{const{getPrefixCls:$P,direction:tme}=reactExports.useContext(ConfigContext),{gutter:ame,wrap:nme}=reactExports.useContext(RowContext),{prefixCls:rme,span:ime,order:ome,offset:lme,push:sme,pull:cme,className:dme,children:ume,flex:fme,style:pme}=x_,hme=__rest$x(x_,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),bme=$P("col",rme),[mme,vme,gme]=useColStyle(bme),yme={};let _me={};sizes.forEach(Sme=>{let Eme={};const xme=x_[Sme];typeof xme=="number"?Eme.span=xme:typeof xme=="object"&&(Eme=xme||{}),delete hme[Sme],_me=Object.assign(Object.assign({},_me),{[`${bme}-${Sme}-${Eme.span}`]:Eme.span!==void 0,[`${bme}-${Sme}-order-${Eme.order}`]:Eme.order||Eme.order===0,[`${bme}-${Sme}-offset-${Eme.offset}`]:Eme.offset||Eme.offset===0,[`${bme}-${Sme}-push-${Eme.push}`]:Eme.push||Eme.push===0,[`${bme}-${Sme}-pull-${Eme.pull}`]:Eme.pull||Eme.pull===0,[`${bme}-rtl`]:tme==="rtl"}),Eme.flex&&(_me[`${bme}-${Sme}-flex`]=!0,yme[`--${bme}-${Sme}-flex`]=parseFlex(Eme.flex))});const $me=classNames(bme,{[`${bme}-${ime}`]:ime!==void 0,[`${bme}-order-${ome}`]:ome,[`${bme}-offset-${lme}`]:lme,[`${bme}-push-${sme}`]:sme,[`${bme}-pull-${cme}`]:cme},dme,_me,vme,gme),Cme={};if(ame&&ame[0]>0){const Sme=ame[0]/2;Cme.paddingLeft=Sme,Cme.paddingRight=Sme}return fme&&(Cme.flex=parseFlex(fme),nme===!1&&!Cme.minWidth&&(Cme.minWidth=0)),mme(reactExports.createElement("div",Object.assign({},hme,{style:Object.assign(Object.assign(Object.assign({},Cme),pme),yme),className:$me,ref:eme}),ume))});var __rest$w=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function useMergedPropByScreen(x_,eme){const[$P,tme]=reactExports.useState(typeof x_=="string"?x_:""),ame=()=>{if(typeof x_=="string"&&tme(x_),typeof x_=="object")for(let nme=0;nme<responsiveArray.length;nme++){const rme=responsiveArray[nme];if(!eme[rme])continue;const ime=x_[rme];if(ime!==void 0){tme(ime);return}}};return reactExports.useEffect(()=>{ame()},[JSON.stringify(x_),eme]),$P}const Row$2=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,justify:tme,align:ame,className:nme,style:rme,children:ime,gutter:ome=0,wrap:lme}=x_,sme=__rest$w(x_,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:cme,direction:dme}=reactExports.useContext(ConfigContext),[ume,fme]=reactExports.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[pme,hme]=reactExports.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),bme=useMergedPropByScreen(ame,pme),mme=useMergedPropByScreen(tme,pme),vme=reactExports.useRef(ome),gme=useResponsiveObserver();reactExports.useEffect(()=>{const Pme=gme.subscribe(Mme=>{hme(Mme);const kme=vme.current||0;(!Array.isArray(kme)&&typeof kme=="object"||Array.isArray(kme)&&(typeof kme[0]=="object"||typeof kme[1]=="object"))&&fme(Mme)});return()=>gme.unsubscribe(Pme)},[]);const yme=()=>{const Pme=[void 0,void 0];return(Array.isArray(ome)?ome:[ome,void 0]).forEach((kme,Bme)=>{if(typeof kme=="object")for(let Dme=0;Dme<responsiveArray.length;Dme++){const jme=responsiveArray[Dme];if(ume[jme]&&kme[jme]!==void 0){Pme[Bme]=kme[jme];break}}else Pme[Bme]=kme}),Pme},_me=cme("row",$P),[$me,Cme,Sme]=useRowStyle(_me),Eme=yme(),xme=classNames(_me,{[`${_me}-no-wrap`]:lme===!1,[`${_me}-${mme}`]:mme,[`${_me}-${bme}`]:bme,[`${_me}-rtl`]:dme==="rtl"},nme,Cme,Sme),Tme={},Ome=Eme[0]!=null&&Eme[0]>0?Eme[0]/-2:void 0;Ome&&(Tme.marginLeft=Ome,Tme.marginRight=Ome);const[Rme,Nme]=Eme;Tme.rowGap=Nme;const Ime=reactExports.useMemo(()=>({gutter:[Rme,Nme],wrap:lme}),[Rme,Nme,lme]);return $me(reactExports.createElement(RowContext.Provider,{value:Ime},reactExports.createElement("div",Object.assign({},sme,{className:xme,style:Object.assign(Object.assign({},Tme),rme),ref:eme}),ime)))}),genSharedDividerStyle=x_=>{const{componentCls:eme,sizePaddingEdgeHorizontal:$P,colorSplit:tme,lineWidth:ame,textPaddingInline:nme,orientationMargin:rme,verticalMarginInline:ime}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{borderBlockStart:`${unit$1(ame)} solid ${tme}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ime,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit$1(ame)} solid ${tme}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit$1(x_.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${eme}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit$1(x_.dividerHorizontalWithTextGutterMargin)} 0`,color:x_.colorTextHeading,fontWeight:500,fontSize:x_.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tme}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit$1(ame)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${eme}-with-text-left`]:{"&::before":{width:`calc(${rme} * 100%)`},"&::after":{width:`calc(100% - ${rme} * 100%)`}},[`&-horizontal${eme}-with-text-right`]:{"&::before":{width:`calc(100% - ${rme} * 100%)`},"&::after":{width:`calc(${rme} * 100%)`}},[`${eme}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:nme},"&-dashed":{background:"none",borderColor:tme,borderStyle:"dashed",borderWidth:`${unit$1(ame)} 0 0`},[`&-horizontal${eme}-with-text${eme}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${eme}-dashed`]:{borderInlineStartWidth:ame,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:tme,borderStyle:"dotted",borderWidth:`${unit$1(ame)} 0 0`},[`&-horizontal${eme}-with-text${eme}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${eme}-dotted`]:{borderInlineStartWidth:ame,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${eme}-with-text`]:{color:x_.colorText,fontWeight:"normal",fontSize:x_.fontSize},[`&-horizontal${eme}-with-text-left${eme}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${eme}-inner-text`]:{paddingInlineStart:$P}},[`&-horizontal${eme}-with-text-right${eme}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${eme}-inner-text`]:{paddingInlineEnd:$P}}})}},prepareComponentToken$9=x_=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:x_.marginXS}),useStyle$b=genStyleHooks("Divider",x_=>{const eme=merge$5(x_,{dividerHorizontalWithTextGutterMargin:x_.margin,dividerHorizontalGutterMargin:x_.marginLG,sizePaddingEdgeHorizontal:0});return[genSharedDividerStyle(eme)]},prepareComponentToken$9,{unitless:{orientationMargin:!0}});var __rest$v=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Divider=x_=>{const{getPrefixCls:eme,direction:$P,divider:tme}=reactExports.useContext(ConfigContext),{prefixCls:ame,type:nme="horizontal",orientation:rme="center",orientationMargin:ime,className:ome,rootClassName:lme,children:sme,dashed:cme,variant:dme="solid",plain:ume,style:fme}=x_,pme=__rest$v(x_,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),hme=eme("divider",ame),[bme,mme,vme]=useStyle$b(hme),gme=!!sme,yme=rme==="left"&&ime!=null,_me=rme==="right"&&ime!=null,$me=classNames(hme,tme==null?void 0:tme.className,mme,vme,`${hme}-${nme}`,{[`${hme}-with-text`]:gme,[`${hme}-with-text-${rme}`]:gme,[`${hme}-dashed`]:!!cme,[`${hme}-${dme}`]:dme!=="solid",[`${hme}-plain`]:!!ume,[`${hme}-rtl`]:$P==="rtl",[`${hme}-no-default-orientation-margin-left`]:yme,[`${hme}-no-default-orientation-margin-right`]:_me},ome,lme),Cme=reactExports.useMemo(()=>typeof ime=="number"?ime:/^\d+$/.test(ime)?Number(ime):ime,[ime]),Sme=Object.assign(Object.assign({},yme&&{marginLeft:Cme}),_me&&{marginRight:Cme});return bme(reactExports.createElement("div",Object.assign({className:$me,style:Object.assign(Object.assign({},tme==null?void 0:tme.style),fme)},pme,{role:"separator"}),sme&&nme!=="vertical"&&reactExports.createElement("span",{className:`${hme}-inner-text`,style:Sme},sme)))};var calcThumbStyle=function(eme,$P){if(!eme)return null;var tme={left:eme.offsetLeft,right:eme.parentElement.clientWidth-eme.clientWidth-eme.offsetLeft,width:eme.clientWidth,top:eme.offsetTop,bottom:eme.parentElement.clientHeight-eme.clientHeight-eme.offsetTop,height:eme.clientHeight};return $P?{left:0,right:0,width:0,top:tme.top,bottom:tme.bottom,height:tme.height}:{left:tme.left,right:tme.right,width:tme.width,top:0,bottom:0,height:0}},toPX=function(eme){return eme!==void 0?"".concat(eme,"px"):void 0};function MotionThumb(x_){var eme=x_.prefixCls,$P=x_.containerRef,tme=x_.value,ame=x_.getValueIndex,nme=x_.motionName,rme=x_.onMotionStart,ime=x_.onMotionEnd,ome=x_.direction,lme=x_.vertical,sme=lme===void 0?!1:lme,cme=reactExports.useRef(null),dme=reactExports.useState(tme),ume=_slicedToArray$2(dme,2),fme=ume[0],pme=ume[1],hme=function(Nme){var Ime,Pme=ame(Nme),Mme=(Ime=$P.current)===null||Ime===void 0?void 0:Ime.querySelectorAll(".".concat(eme,"-item"))[Pme];return(Mme==null?void 0:Mme.offsetParent)&&Mme},bme=reactExports.useState(null),mme=_slicedToArray$2(bme,2),vme=mme[0],gme=mme[1],yme=reactExports.useState(null),_me=_slicedToArray$2(yme,2),$me=_me[0],Cme=_me[1];useLayoutEffect$1(function(){if(fme!==tme){var Rme=hme(fme),Nme=hme(tme),Ime=calcThumbStyle(Rme,sme),Pme=calcThumbStyle(Nme,sme);pme(tme),gme(Ime),Cme(Pme),Rme&&Nme?rme():ime()}},[tme]);var Sme=reactExports.useMemo(function(){if(sme){var Rme;return toPX((Rme=vme==null?void 0:vme.top)!==null&&Rme!==void 0?Rme:0)}return toPX(ome==="rtl"?-(vme==null?void 0:vme.right):vme==null?void 0:vme.left)},[sme,ome,vme]),Eme=reactExports.useMemo(function(){if(sme){var Rme;return toPX((Rme=$me==null?void 0:$me.top)!==null&&Rme!==void 0?Rme:0)}return toPX(ome==="rtl"?-($me==null?void 0:$me.right):$me==null?void 0:$me.left)},[sme,ome,$me]),xme=function(){return sme?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Tme=function(){return sme?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},Ome=function(){gme(null),Cme(null),ime()};return!vme||!$me?null:reactExports.createElement(CSSMotion,{visible:!0,motionName:nme,motionAppear:!0,onAppearStart:xme,onAppearActive:Tme,onVisibleChanged:Ome},function(Rme,Nme){var Ime=Rme.className,Pme=Rme.style,Mme=_objectSpread2$4(_objectSpread2$4({},Pme),{},{"--thumb-start-left":Sme,"--thumb-start-width":toPX(vme==null?void 0:vme.width),"--thumb-active-left":Eme,"--thumb-active-width":toPX($me==null?void 0:$me.width),"--thumb-start-top":Sme,"--thumb-start-height":toPX(vme==null?void 0:vme.height),"--thumb-active-top":Eme,"--thumb-active-height":toPX($me==null?void 0:$me.height)}),kme={ref:composeRef(cme,Nme),style:Mme,className:classNames("".concat(eme,"-thumb"),Ime)};return reactExports.createElement("div",kme)})}var _excluded$i=["prefixCls","direction","vertical","options","disabled","defaultValue","value","onChange","className","motionName"];function getValidTitle(x_){if(typeof x_.title<"u")return x_.title;if(_typeof$4(x_.label)!=="object"){var eme;return(eme=x_.label)===null||eme===void 0?void 0:eme.toString()}}function normalizeOptions$2(x_){return x_.map(function(eme){if(_typeof$4(eme)==="object"&&eme!==null){var $P=getValidTitle(eme);return _objectSpread2$4(_objectSpread2$4({},eme),{},{title:$P})}return{label:eme==null?void 0:eme.toString(),title:eme==null?void 0:eme.toString(),value:eme}})}var InternalSegmentedOption=function(eme){var $P=eme.prefixCls,tme=eme.className,ame=eme.disabled,nme=eme.checked,rme=eme.label,ime=eme.title,ome=eme.value,lme=eme.onChange,sme=function(dme){ame||lme(dme,ome)};return reactExports.createElement("label",{className:classNames(tme,_defineProperty$7({},"".concat($P,"-item-disabled"),ame))},reactExports.createElement("input",{className:"".concat($P,"-item-input"),type:"radio",disabled:ame,checked:nme,onChange:sme}),reactExports.createElement("div",{className:"".concat($P,"-item-label"),title:ime,role:"option","aria-selected":nme},rme))},Segmented$1=reactExports.forwardRef(function(x_,eme){var $P,tme,ame=x_.prefixCls,nme=ame===void 0?"rc-segmented":ame,rme=x_.direction,ime=x_.vertical,ome=x_.options,lme=ome===void 0?[]:ome,sme=x_.disabled,cme=x_.defaultValue,dme=x_.value,ume=x_.onChange,fme=x_.className,pme=fme===void 0?"":fme,hme=x_.motionName,bme=hme===void 0?"thumb-motion":hme,mme=_objectWithoutProperties$6(x_,_excluded$i),vme=reactExports.useRef(null),gme=reactExports.useMemo(function(){return composeRef(vme,eme)},[vme,eme]),yme=reactExports.useMemo(function(){return normalizeOptions$2(lme)},[lme]),_me=useMergedState(($P=yme[0])===null||$P===void 0?void 0:$P.value,{value:dme,defaultValue:cme}),$me=_slicedToArray$2(_me,2),Cme=$me[0],Sme=$me[1],Eme=reactExports.useState(!1),xme=_slicedToArray$2(Eme,2),Tme=xme[0],Ome=xme[1],Rme=function(Pme,Mme){sme||(Sme(Mme),ume==null||ume(Mme))},Nme=omit$2(mme,["children"]);return reactExports.createElement("div",_extends$4C({role:"listbox","aria-label":"segmented control"},Nme,{className:classNames(nme,(tme={},_defineProperty$7(tme,"".concat(nme,"-rtl"),rme==="rtl"),_defineProperty$7(tme,"".concat(nme,"-disabled"),sme),_defineProperty$7(tme,"".concat(nme,"-vertical"),ime),tme),pme),ref:gme}),reactExports.createElement("div",{className:"".concat(nme,"-group")},reactExports.createElement(MotionThumb,{vertical:ime,prefixCls:nme,value:Cme,containerRef:vme,motionName:"".concat(nme,"-").concat(bme),direction:rme,getValueIndex:function(Pme){return yme.findIndex(function(Mme){return Mme.value===Pme})},onMotionStart:function(){Ome(!0)},onMotionEnd:function(){Ome(!1)}}),yme.map(function(Ime){return reactExports.createElement(InternalSegmentedOption,_extends$4C({},Ime,{key:Ime.value,prefixCls:nme,className:classNames(Ime.className,"".concat(nme,"-item"),_defineProperty$7({},"".concat(nme,"-item-selected"),Ime.value===Cme&&!Tme)),checked:Ime.value===Cme,onChange:Rme,disabled:!!sme||!!Ime.disabled}))})))}),TypedSegmented=Segmented$1;function getItemDisabledStyle(x_,eme){return{[`${x_}, ${x_}:hover, ${x_}:focus`]:{color:eme.colorTextDisabled,cursor:"not-allowed"}}}function getItemSelectedStyle(x_){return{backgroundColor:x_.itemSelectedBg,boxShadow:x_.boxShadowTertiary}}const segmentedTextEllipsisCss=Object.assign({overflow:"hidden"},textEllipsis),genSegmentedStyle=x_=>{const{componentCls:eme}=x_,$P=x_.calc(x_.controlHeight).sub(x_.calc(x_.trackPadding).mul(2)).equal(),tme=x_.calc(x_.controlHeightLG).sub(x_.calc(x_.trackPadding).mul(2)).equal(),ame=x_.calc(x_.controlHeightSM).sub(x_.calc(x_.trackPadding).mul(2)).equal();return{[eme]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{display:"inline-block",padding:x_.trackPadding,color:x_.itemColor,background:x_.trackBg,borderRadius:x_.borderRadius,transition:`all ${x_.motionDurationMid} ${x_.motionEaseInOut}`,[`${eme}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${eme}-rtl`]:{direction:"rtl"},[`&${eme}-vertical`]:{[`${eme}-group`]:{flexDirection:"column"},[`${eme}-thumb`]:{width:"100%",height:0,padding:`0 ${unit$1(x_.paddingXXS)}`}},[`&${eme}-block`]:{display:"flex"},[`&${eme}-block ${eme}-item`]:{flex:1,minWidth:0},[`${eme}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${x_.motionDurationMid} ${x_.motionEaseInOut}`,borderRadius:x_.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},getItemSelectedStyle(x_)),{color:x_.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${x_.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${eme}-item-selected):not(${eme}-item-disabled)`]:{color:x_.itemHoverColor,"&::after":{backgroundColor:x_.itemHoverBg}},[`&:active:not(${eme}-item-selected):not(${eme}-item-disabled)`]:{color:x_.itemHoverColor,"&::after":{backgroundColor:x_.itemActiveBg}},"&-label":Object.assign({minHeight:$P,lineHeight:unit$1($P),padding:`0 ${unit$1(x_.segmentedPaddingHorizontal)}`},segmentedTextEllipsisCss),"&-icon + *":{marginInlineStart:x_.calc(x_.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${eme}-thumb`]:Object.assign(Object.assign({},getItemSelectedStyle(x_)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit$1(x_.paddingXXS)} 0`,borderRadius:x_.borderRadiusSM,transition:`transform ${x_.motionDurationSlow} ${x_.motionEaseInOut}, height ${x_.motionDurationSlow} ${x_.motionEaseInOut}`,[`& ~ ${eme}-item:not(${eme}-item-selected):not(${eme}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${eme}-lg`]:{borderRadius:x_.borderRadiusLG,[`${eme}-item-label`]:{minHeight:tme,lineHeight:unit$1(tme),padding:`0 ${unit$1(x_.segmentedPaddingHorizontal)}`,fontSize:x_.fontSizeLG},[`${eme}-item, ${eme}-thumb`]:{borderRadius:x_.borderRadius}},[`&${eme}-sm`]:{borderRadius:x_.borderRadiusSM,[`${eme}-item-label`]:{minHeight:ame,lineHeight:unit$1(ame),padding:`0 ${unit$1(x_.segmentedPaddingHorizontalSM)}`},[`${eme}-item, ${eme}-thumb`]:{borderRadius:x_.borderRadiusXS}}}),getItemDisabledStyle(`&-disabled ${eme}-item`,x_)),getItemDisabledStyle(`${eme}-item-disabled`,x_)),{[`${eme}-thumb-motion-appear-active`]:{transition:`transform ${x_.motionDurationSlow} ${x_.motionEaseInOut}, width ${x_.motionDurationSlow} ${x_.motionEaseInOut}`,willChange:"transform, width"}})}},prepareComponentToken$8=x_=>{const{colorTextLabel:eme,colorText:$P,colorFillSecondary:tme,colorBgElevated:ame,colorFill:nme,lineWidthBold:rme,colorBgLayout:ime}=x_;return{trackPadding:rme,trackBg:ime,itemColor:eme,itemHoverColor:$P,itemHoverBg:tme,itemSelectedBg:ame,itemActiveBg:nme,itemSelectedColor:$P}},useStyle$a=genStyleHooks("Segmented",x_=>{const{lineWidth:eme,calc:$P}=x_,tme=merge$5(x_,{segmentedPaddingHorizontal:$P(x_.controlPaddingHorizontal).sub(eme).equal(),segmentedPaddingHorizontalSM:$P(x_.controlPaddingHorizontalSM).sub(eme).equal()});return[genSegmentedStyle(tme)]},prepareComponentToken$8);var __rest$u=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function isSegmentedLabeledOptionWithIcon(x_){return typeof x_=="object"&&!!(x_!=null&&x_.icon)}const InternalSegmented=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,rootClassName:ame,block:nme,options:rme=[],size:ime="middle",style:ome,vertical:lme}=x_,sme=__rest$u(x_,["prefixCls","className","rootClassName","block","options","size","style","vertical"]),{getPrefixCls:cme,direction:dme,segmented:ume}=reactExports.useContext(ConfigContext),fme=cme("segmented",$P),[pme,hme,bme]=useStyle$a(fme),mme=useSize(ime),vme=reactExports.useMemo(()=>rme.map(_me=>{if(isSegmentedLabeledOptionWithIcon(_me)){const{icon:$me,label:Cme}=_me,Sme=__rest$u(_me,["icon","label"]);return Object.assign(Object.assign({},Sme),{label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:`${fme}-item-icon`},$me),Cme&&reactExports.createElement("span",null,Cme))})}return _me}),[rme,fme]),gme=classNames(tme,ame,ume==null?void 0:ume.className,{[`${fme}-block`]:nme,[`${fme}-sm`]:mme==="small",[`${fme}-lg`]:mme==="large",[`${fme}-vertical`]:lme},hme,bme),yme=Object.assign(Object.assign({},ume==null?void 0:ume.style),ome);return pme(reactExports.createElement(TypedSegmented,Object.assign({},sme,{className:gme,style:yme,options:vme,ref:eme,prefixCls:fme,direction:dme,vertical:lme})))}),Segmented=InternalSegmented,PanelPickerContext=React__default.createContext({}),PanelPresetsContext=React__default.createContext({}),ColorClear=x_=>{let{prefixCls:eme,value:$P,onChange:tme}=x_;const ame=()=>{if(tme&&$P&&!$P.cleared){const nme=$P.toHsb();nme.a=0;const rme=generateColor(nme);rme.cleared=!0,tme(rme)}};return React__default.createElement("div",{className:`${eme}-clear`,onClick:ame})};var ColorFormat;(function(x_){x_.hex="hex",x_.rgb="rgb",x_.hsb="hsb"})(ColorFormat||(ColorFormat={}));var UpOutlined$1={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"},UpOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:UpOutlined$1}))},RefIcon$9=reactExports.forwardRef(UpOutlined);function supportBigInt(){return typeof BigInt=="function"}function isEmpty$5(x_){return!x_&&x_!==0&&!Number.isNaN(x_)||!String(x_).trim()}function trimNumber(x_){var eme=x_.trim(),$P=eme.startsWith("-");$P&&(eme=eme.slice(1)),eme=eme.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),eme.startsWith(".")&&(eme="0".concat(eme));var tme=eme||"0",ame=tme.split("."),nme=ame[0]||"0",rme=ame[1]||"0";nme==="0"&&rme==="0"&&($P=!1);var ime=$P?"-":"";return{negative:$P,negativeStr:ime,trimStr:tme,integerStr:nme,decimalStr:rme,fullStr:"".concat(ime).concat(tme)}}function isE(x_){var eme=String(x_);return!Number.isNaN(Number(eme))&&eme.includes("e")}function getNumberPrecision(x_){var eme=String(x_);if(isE(x_)){var $P=Number(eme.slice(eme.indexOf("e-")+2)),tme=eme.match(/\.(\d+)/);return tme!=null&&tme[1]&&($P+=tme[1].length),$P}return eme.includes(".")&&validateNumber(eme)?eme.length-eme.indexOf(".")-1:0}function num2str(x_){var eme=String(x_);if(isE(x_)){if(x_>Number.MAX_SAFE_INTEGER)return String(supportBigInt()?BigInt(x_).toString():Number.MAX_SAFE_INTEGER);if(x_<Number.MIN_SAFE_INTEGER)return String(supportBigInt()?BigInt(x_).toString():Number.MIN_SAFE_INTEGER);eme=x_.toFixed(getNumberPrecision(eme))}return trimNumber(eme).fullStr}function validateNumber(x_){return typeof x_=="number"?!Number.isNaN(x_):x_?/^\s*-?\d+(\.\d+)?\s*$/.test(x_)||/^\s*-?\d+\.\s*$/.test(x_)||/^\s*-?\.\d+\s*$/.test(x_):!1}var BigIntDecimal=function(){function x_(eme){if(_classCallCheck$d(this,x_),_defineProperty$7(this,"origin",""),_defineProperty$7(this,"negative",void 0),_defineProperty$7(this,"integer",void 0),_defineProperty$7(this,"decimal",void 0),_defineProperty$7(this,"decimalLen",void 0),_defineProperty$7(this,"empty",void 0),_defineProperty$7(this,"nan",void 0),isEmpty$5(eme)){this.empty=!0;return}if(this.origin=String(eme),eme==="-"||Number.isNaN(eme)){this.nan=!0;return}var $P=eme;if(isE($P)&&($P=Number($P)),$P=typeof $P=="string"?$P:num2str($P),validateNumber($P)){var tme=trimNumber($P);this.negative=tme.negative;var ame=tme.trimStr.split(".");this.integer=BigInt(ame[0]);var nme=ame[1]||"0";this.decimal=BigInt(nme),this.decimalLen=nme.length}else this.nan=!0}return _createClass$b(x_,[{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($P){var tme="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd($P,"0"));return BigInt(tme)}},{key:"negate",value:function(){var $P=new x_(this.toString());return $P.negative=!$P.negative,$P}},{key:"cal",value:function($P,tme,ame){var nme=Math.max(this.getDecimalStr().length,$P.getDecimalStr().length),rme=this.alignDecimal(nme),ime=$P.alignDecimal(nme),ome=tme(rme,ime).toString(),lme=ame(nme),sme=trimNumber(ome),cme=sme.negativeStr,dme=sme.trimStr,ume="".concat(cme).concat(dme.padStart(lme+1,"0"));return new x_("".concat(ume.slice(0,-lme),".").concat(ume.slice(-lme)))}},{key:"add",value:function($P){if(this.isInvalidate())return new x_($P);var tme=new x_($P);return tme.isInvalidate()?this:this.cal(tme,function(ame,nme){return ame+nme},function(ame){return ame})}},{key:"multi",value:function($P){var tme=new x_($P);return this.isInvalidate()||tme.isInvalidate()?new x_(NaN):this.cal(tme,function(ame,nme){return ame*nme},function(ame){return ame*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($P){return this.toString()===($P==null?void 0:$P.toString())}},{key:"lessEquals",value:function($P){return this.add($P.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $P?this.isInvalidate()?"":trimNumber("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),x_}(),NumberDecimal=function(){function x_(eme){if(_classCallCheck$d(this,x_),_defineProperty$7(this,"origin",""),_defineProperty$7(this,"number",void 0),_defineProperty$7(this,"empty",void 0),isEmpty$5(eme)){this.empty=!0;return}this.origin=String(eme),this.number=Number(eme)}return _createClass$b(x_,[{key:"negate",value:function(){return new x_(-this.toNumber())}},{key:"add",value:function($P){if(this.isInvalidate())return new x_($P);var tme=Number($P);if(Number.isNaN(tme))return this;var ame=this.number+tme;if(ame>Number.MAX_SAFE_INTEGER)return new x_(Number.MAX_SAFE_INTEGER);if(ame<Number.MIN_SAFE_INTEGER)return new x_(Number.MIN_SAFE_INTEGER);var nme=Math.max(getNumberPrecision(this.number),getNumberPrecision(tme));return new x_(ame.toFixed(nme))}},{key:"multi",value:function($P){var tme=Number($P);if(this.isInvalidate()||Number.isNaN(tme))return new x_(NaN);var ame=this.number*tme;if(ame>Number.MAX_SAFE_INTEGER)return new x_(Number.MAX_SAFE_INTEGER);if(ame<Number.MIN_SAFE_INTEGER)return new x_(Number.MIN_SAFE_INTEGER);var nme=Math.max(getNumberPrecision(this.number),getNumberPrecision(tme));return new x_(ame.toFixed(nme))}},{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($P){return this.toNumber()===($P==null?void 0:$P.toNumber())}},{key:"lessEquals",value:function($P){return this.add($P.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $P?this.isInvalidate()?"":num2str(this.number):this.origin}}]),x_}();function getMiniDecimal(x_){return supportBigInt()?new BigIntDecimal(x_):new NumberDecimal(x_)}function toFixed$1(x_,eme,$P){var tme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(x_==="")return"";var ame=trimNumber(x_),nme=ame.negativeStr,rme=ame.integerStr,ime=ame.decimalStr,ome="".concat(eme).concat(ime),lme="".concat(nme).concat(rme);if($P>=0){var sme=Number(ime[$P]);if(sme>=5&&!tme){var cme=getMiniDecimal(x_).add("".concat(nme,"0.").concat("0".repeat($P)).concat(10-sme));return toFixed$1(cme.toString(),eme,$P,tme)}return $P===0?lme:"".concat(lme).concat(eme).concat(ime.padEnd($P,"0").slice(0,$P))}return ome===".0"?lme:"".concat(lme).concat(ome)}function hasAddon(x_){return!!(x_.addonBefore||x_.addonAfter)}function hasPrefixSuffix$1(x_){return!!(x_.prefix||x_.suffix||x_.allowClear)}function cloneEvent(x_,eme,$P){var tme=eme.cloneNode(!0),ame=Object.create(x_,{target:{value:tme},currentTarget:{value:tme}});return tme.value=$P,typeof eme.selectionStart=="number"&&typeof eme.selectionEnd=="number"&&(tme.selectionStart=eme.selectionStart,tme.selectionEnd=eme.selectionEnd),tme.setSelectionRange=function(){eme.setSelectionRange.apply(eme,arguments)},ame}function resolveOnChange(x_,eme,$P,tme){if($P){var ame=eme;if(eme.type==="click"){ame=cloneEvent(eme,x_,""),$P(ame);return}if(x_.type!=="file"&&tme!==void 0){ame=cloneEvent(eme,x_,tme),$P(ame);return}$P(ame)}}function triggerFocus(x_,eme){if(x_){x_.focus(eme);var $P=eme||{},tme=$P.cursor;if(tme){var ame=x_.value.length;switch(tme){case"start":x_.setSelectionRange(0,0);break;case"end":x_.setSelectionRange(ame,ame);break;default:x_.setSelectionRange(0,ame)}}}}var BaseInput=React__default.forwardRef(function(x_,eme){var $P,tme,ame=x_.inputElement,nme=x_.children,rme=x_.prefixCls,ime=x_.prefix,ome=x_.suffix,lme=x_.addonBefore,sme=x_.addonAfter,cme=x_.className,dme=x_.style,ume=x_.disabled,fme=x_.readOnly,pme=x_.focused,hme=x_.triggerFocus,bme=x_.allowClear,mme=x_.value,vme=x_.handleReset,gme=x_.hidden,yme=x_.classes,_me=x_.classNames,$me=x_.dataAttrs,Cme=x_.styles,Sme=x_.components,Eme=x_.onClear,xme=nme??ame,Tme=(Sme==null?void 0:Sme.affixWrapper)||"span",Ome=(Sme==null?void 0:Sme.groupWrapper)||"span",Rme=(Sme==null?void 0:Sme.wrapper)||"span",Nme=(Sme==null?void 0:Sme.groupAddon)||"span",Ime=reactExports.useRef(null),Pme=function(Zme){var nbe;(nbe=Ime.current)!==null&&nbe!==void 0&&nbe.contains(Zme.target)&&(hme==null||hme())},Mme=hasPrefixSuffix$1(x_),kme=reactExports.cloneElement(xme,{value:mme,className:classNames(xme.props.className,!Mme&&(_me==null?void 0:_me.variant))||null}),Bme=reactExports.useRef(null);if(React__default.useImperativeHandle(eme,function(){return{nativeElement:Bme.current||Ime.current}}),Mme){var Dme=null;if(bme){var jme=!ume&&!fme&&mme,Vme="".concat(rme,"-clear-icon"),Wme=_typeof$4(bme)==="object"&&bme!==null&&bme!==void 0&&bme.clearIcon?bme.clearIcon:"✖";Dme=jsx("span",{onClick:function(Zme){vme==null||vme(Zme),Eme==null||Eme()},onMouseDown:function(Zme){return Zme.preventDefault()},className:classNames(Vme,_defineProperty$7(_defineProperty$7({},"".concat(Vme,"-hidden"),!jme),"".concat(Vme,"-has-suffix"),!!ome)),role:"button",tabIndex:-1,children:Wme})}var Lme="".concat(rme,"-affix-wrapper"),zme=classNames(Lme,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(rme,"-disabled"),ume),"".concat(Lme,"-disabled"),ume),"".concat(Lme,"-focused"),pme),"".concat(Lme,"-readonly"),fme),"".concat(Lme,"-input-with-clear-btn"),ome&&bme&&mme),yme==null?void 0:yme.affixWrapper,_me==null?void 0:_me.affixWrapper,_me==null?void 0:_me.variant),Ume=(ome||bme)&&jsxs("span",{className:classNames("".concat(rme,"-suffix"),_me==null?void 0:_me.suffix),style:Cme==null?void 0:Cme.suffix,children:[Dme,ome]});kme=jsxs(Tme,{className:zme,style:Cme==null?void 0:Cme.affixWrapper,onClick:Pme,...$me==null?void 0:$me.affixWrapper,ref:Ime,children:[ime&&jsx("span",{className:classNames("".concat(rme,"-prefix"),_me==null?void 0:_me.prefix),style:Cme==null?void 0:Cme.prefix,children:ime}),kme,Ume]})}if(hasAddon(x_)){var Gme="".concat(rme,"-group"),Jme="".concat(Gme,"-addon"),Yme="".concat(Gme,"-wrapper"),Qme=classNames("".concat(rme,"-wrapper"),Gme,yme==null?void 0:yme.wrapper,_me==null?void 0:_me.wrapper),Xme=classNames(Yme,_defineProperty$7({},"".concat(Yme,"-disabled"),ume),yme==null?void 0:yme.group,_me==null?void 0:_me.groupWrapper);kme=jsx(Ome,{className:Xme,ref:Bme,children:jsxs(Rme,{className:Qme,children:[lme&&jsx(Nme,{className:Jme,children:lme}),kme,sme&&jsx(Nme,{className:Jme,children:sme})]})})}return React__default.cloneElement(kme,{className:classNames(($P=kme.props)===null||$P===void 0?void 0:$P.className,cme)||null,style:_objectSpread2$4(_objectSpread2$4({},(tme=kme.props)===null||tme===void 0?void 0:tme.style),dme),hidden:gme})}),_excluded$h=["show"];function useCount(x_,eme){return reactExports.useMemo(function(){var $P={};eme&&($P.show=_typeof$4(eme)==="object"&&eme.formatter?eme.formatter:!!eme),$P=_objectSpread2$4(_objectSpread2$4({},$P),x_);var tme=$P,ame=tme.show,nme=_objectWithoutProperties$6(tme,_excluded$h);return _objectSpread2$4(_objectSpread2$4({},nme),{},{show:!!ame,showFormatter:typeof ame=="function"?ame:void 0,strategy:nme.strategy||function(rme){return rme.length}})},[x_,eme])}var _excluded$g=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Input$3=reactExports.forwardRef(function(x_,eme){var $P=x_.autoComplete,tme=x_.onChange,ame=x_.onFocus,nme=x_.onBlur,rme=x_.onPressEnter,ime=x_.onKeyDown,ome=x_.onKeyUp,lme=x_.prefixCls,sme=lme===void 0?"rc-input":lme,cme=x_.disabled,dme=x_.htmlSize,ume=x_.className,fme=x_.maxLength,pme=x_.suffix,hme=x_.showCount,bme=x_.count,mme=x_.type,vme=mme===void 0?"text":mme,gme=x_.classes,yme=x_.classNames,_me=x_.styles,$me=x_.onCompositionStart,Cme=x_.onCompositionEnd,Sme=_objectWithoutProperties$6(x_,_excluded$g),Eme=reactExports.useState(!1),xme=_slicedToArray$2(Eme,2),Tme=xme[0],Ome=xme[1],Rme=reactExports.useRef(!1),Nme=reactExports.useRef(!1),Ime=reactExports.useRef(null),Pme=reactExports.useRef(null),Mme=function(_be){Ime.current&&triggerFocus(Ime.current,_be)},kme=useMergedState(x_.defaultValue,{value:x_.value}),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=Dme==null?"":String(Dme),Wme=reactExports.useState(null),Lme=_slicedToArray$2(Wme,2),zme=Lme[0],Ume=Lme[1],Gme=useCount(bme,hme),Jme=Gme.max||fme,Yme=Gme.strategy(Vme),Qme=!!Jme&&Yme>Jme;reactExports.useImperativeHandle(eme,function(){var pbe;return{focus:Mme,blur:function(){var Sbe;(Sbe=Ime.current)===null||Sbe===void 0||Sbe.blur()},setSelectionRange:function(Sbe,vbe,kbe){var Rbe;(Rbe=Ime.current)===null||Rbe===void 0||Rbe.setSelectionRange(Sbe,vbe,kbe)},select:function(){var Sbe;(Sbe=Ime.current)===null||Sbe===void 0||Sbe.select()},input:Ime.current,nativeElement:((pbe=Pme.current)===null||pbe===void 0?void 0:pbe.nativeElement)||Ime.current}}),reactExports.useEffect(function(){Nme.current&&(Nme.current=!1),Ome(function(pbe){return pbe&&cme?!1:pbe})},[cme]);var Xme=function(_be,Sbe,vbe){var kbe=Sbe;if(!Rme.current&&Gme.exceedFormatter&&Gme.max&&Gme.strategy(Sbe)>Gme.max){if(kbe=Gme.exceedFormatter(Sbe,{max:Gme.max}),Sbe!==kbe){var Rbe,Pbe;Ume([((Rbe=Ime.current)===null||Rbe===void 0?void 0:Rbe.selectionStart)||0,((Pbe=Ime.current)===null||Pbe===void 0?void 0:Pbe.selectionEnd)||0])}}else if(vbe.source==="compositionEnd")return;jme(kbe),Ime.current&&resolveOnChange(Ime.current,_be,tme,kbe)};reactExports.useEffect(function(){if(zme){var pbe;(pbe=Ime.current)===null||pbe===void 0||pbe.setSelectionRange.apply(pbe,_toConsumableArray$1(zme))}},[zme]);var Kme=function(_be){Xme(_be,_be.target.value,{source:"change"})},Zme=function(_be){Rme.current=!1,Xme(_be,_be.currentTarget.value,{source:"compositionEnd"}),Cme==null||Cme(_be)},nbe=function(_be){rme&&_be.key==="Enter"&&!Nme.current&&(Nme.current=!0,rme(_be)),ime==null||ime(_be)},lbe=function(_be){_be.key==="Enter"&&(Nme.current=!1),ome==null||ome(_be)},ibe=function(_be){Ome(!0),ame==null||ame(_be)},abe=function(_be){Nme.current&&(Nme.current=!1),Ome(!1),nme==null||nme(_be)},obe=function(_be){jme(""),Mme(),Ime.current&&resolveOnChange(Ime.current,_be,tme)},hbe=Qme&&"".concat(sme,"-out-of-range"),ube=function(){var _be=omit$2(x_,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return jsx("input",{autoComplete:$P,..._be,onChange:Kme,onFocus:ibe,onBlur:abe,onKeyDown:nbe,onKeyUp:lbe,className:classNames(sme,_defineProperty$7({},"".concat(sme,"-disabled"),cme),yme==null?void 0:yme.input),style:_me==null?void 0:_me.input,ref:Ime,size:dme,type:vme,onCompositionStart:function(vbe){Rme.current=!0,$me==null||$me(vbe)},onCompositionEnd:Zme})},mbe=function(){var _be=Number(Jme)>0;if(pme||Gme.show){var Sbe=Gme.showFormatter?Gme.showFormatter({value:Vme,count:Yme,maxLength:Jme}):"".concat(Yme).concat(_be?" / ".concat(Jme):"");return jsxs(Fragment,{children:[Gme.show&&jsx("span",{className:classNames("".concat(sme,"-show-count-suffix"),_defineProperty$7({},"".concat(sme,"-show-count-has-suffix"),!!pme),yme==null?void 0:yme.count),style:_objectSpread2$4({},_me==null?void 0:_me.count),children:Sbe}),pme]})}return null};return jsx(BaseInput,{...Sme,prefixCls:sme,className:classNames(ume,hbe),handleReset:obe,value:Vme,focused:Tme,triggerFocus:Mme,suffix:mbe(),disabled:cme,classes:gme,classNames:yme,styles:_me,children:ube()})});function proxyObject(x_,eme){return typeof Proxy<"u"&&x_?new Proxy(x_,{get:function(tme,ame){if(eme[ame])return eme[ame];var nme=tme[ame];return typeof nme=="function"?nme.bind(tme):nme}}):x_}function useCursor$1(x_,eme){var $P=reactExports.useRef(null);function tme(){try{var nme=x_.selectionStart,rme=x_.selectionEnd,ime=x_.value,ome=ime.substring(0,nme),lme=ime.substring(rme);$P.current={start:nme,end:rme,value:ime,beforeTxt:ome,afterTxt:lme}}catch{}}function ame(){if(x_&&$P.current&&eme)try{var nme=x_.value,rme=$P.current,ime=rme.beforeTxt,ome=rme.afterTxt,lme=rme.start,sme=nme.length;if(nme.startsWith(ime))sme=ime.length;else if(nme.endsWith(ome))sme=nme.length-$P.current.afterTxt.length;else{var cme=ime[lme-1],dme=nme.indexOf(cme,lme-1);dme!==-1&&(sme=dme+1)}x_.setSelectionRange(sme,sme)}catch(ume){warningOnce(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(ume.message))}}return[tme,ame]}var useMobile=function(){var eme=reactExports.useState(!1),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1];return useLayoutEffect$1(function(){ame(isMobile$3())},[]),tme},STEP_INTERVAL$1=200,STEP_DELAY$1=600;function StepHandler$1(x_){var eme=x_.prefixCls,$P=x_.upNode,tme=x_.downNode,ame=x_.upDisabled,nme=x_.downDisabled,rme=x_.onStep,ime=reactExports.useRef(),ome=reactExports.useRef([]),lme=reactExports.useRef();lme.current=rme;var sme=function(){clearTimeout(ime.current)},cme=function(vme,gme){vme.preventDefault(),sme(),lme.current(gme);function yme(){lme.current(gme),ime.current=setTimeout(yme,STEP_INTERVAL$1)}ime.current=setTimeout(yme,STEP_DELAY$1)};reactExports.useEffect(function(){return function(){sme(),ome.current.forEach(function(mme){return wrapperRaf.cancel(mme)})}},[]);var dme=useMobile();if(dme)return null;var ume="".concat(eme,"-handler"),fme=classNames(ume,"".concat(ume,"-up"),_defineProperty$7({},"".concat(ume,"-up-disabled"),ame)),pme=classNames(ume,"".concat(ume,"-down"),_defineProperty$7({},"".concat(ume,"-down-disabled"),nme)),hme=function(){return ome.current.push(wrapperRaf(sme))},bme={unselectable:"on",role:"button",onMouseUp:hme,onMouseLeave:hme};return reactExports.createElement("div",{className:"".concat(ume,"-wrap")},reactExports.createElement("span",_extends$4C({},bme,{onMouseDown:function(vme){cme(vme,!0)},"aria-label":"Increase Value","aria-disabled":ame,className:fme}),$P||reactExports.createElement("span",{unselectable:"on",className:"".concat(eme,"-handler-up-inner")})),reactExports.createElement("span",_extends$4C({},bme,{onMouseDown:function(vme){cme(vme,!1)},"aria-label":"Decrease Value","aria-disabled":nme,className:pme}),tme||reactExports.createElement("span",{unselectable:"on",className:"".concat(eme,"-handler-down-inner")})))}function getDecupleSteps$1(x_){var eme=typeof x_=="number"?num2str(x_):trimNumber(x_).fullStr,$P=eme.includes(".");return $P?trimNumber(eme.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:x_+"0"}const useFrame$1=function(){var x_=reactExports.useRef(0),eme=function(){wrapperRaf.cancel(x_.current)};return reactExports.useEffect(function(){return eme},[]),function($P){eme(),x_.current=wrapperRaf(function(){$P()})}};var _excluded$f=["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"],_excluded2$4=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],getDecimalValue$1=function(eme,$P){return eme||$P.isEmpty()?$P.toString():$P.toNumber()},getDecimalIfValidate$1=function(eme){var $P=getMiniDecimal(eme);return $P.isInvalidate()?null:$P},InternalInputNumber=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.className,ame=x_.style,nme=x_.min,rme=x_.max,ime=x_.step,ome=ime===void 0?1:ime,lme=x_.defaultValue,sme=x_.value,cme=x_.disabled,dme=x_.readOnly,ume=x_.upHandler,fme=x_.downHandler,pme=x_.keyboard,hme=x_.changeOnWheel,bme=hme===void 0?!1:hme,mme=x_.controls,vme=mme===void 0?!0:mme;x_.classNames;var gme=x_.stringMode,yme=x_.parser,_me=x_.formatter,$me=x_.precision,Cme=x_.decimalSeparator,Sme=x_.onChange,Eme=x_.onInput,xme=x_.onPressEnter,Tme=x_.onStep,Ome=x_.changeOnBlur,Rme=Ome===void 0?!0:Ome,Nme=x_.domRef,Ime=_objectWithoutProperties$6(x_,_excluded$f),Pme="".concat($P,"-input"),Mme=reactExports.useRef(null),kme=reactExports.useState(!1),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=reactExports.useRef(!1),Wme=reactExports.useRef(!1),Lme=reactExports.useRef(!1),zme=reactExports.useState(function(){return getMiniDecimal(sme??lme)}),Ume=_slicedToArray$2(zme,2),Gme=Ume[0],Jme=Ume[1];function Yme(Ybe){sme===void 0&&Jme(Ybe)}var Qme=reactExports.useCallback(function(Ybe,Jbe){if(!Jbe)return $me>=0?$me:Math.max(getNumberPrecision(Ybe),getNumberPrecision(ome))},[$me,ome]),Xme=reactExports.useCallback(function(Ybe){var Jbe=String(Ybe);if(yme)return yme(Jbe);var c0e=Jbe;return Cme&&(c0e=c0e.replace(Cme,".")),c0e.replace(/[^\w.-]+/g,"")},[yme,Cme]),Kme=reactExports.useRef(""),Zme=reactExports.useCallback(function(Ybe,Jbe){if(_me)return _me(Ybe,{userTyping:Jbe,input:String(Kme.current)});var c0e=typeof Ybe=="number"?num2str(Ybe):Ybe;if(!Jbe){var zbe=Qme(c0e,Jbe);if(validateNumber(c0e)&&(Cme||zbe>=0)){var R0e=Cme||".";c0e=toFixed$1(c0e,R0e,zbe)}}return c0e},[_me,Qme,Cme]),nbe=reactExports.useState(function(){var Ybe=lme??sme;return Gme.isInvalidate()&&["string","number"].includes(_typeof$4(Ybe))?Number.isNaN(Ybe)?"":Ybe:Zme(Gme.toString(),!1)}),lbe=_slicedToArray$2(nbe,2),ibe=lbe[0],abe=lbe[1];Kme.current=ibe;function obe(Ybe,Jbe){abe(Zme(Ybe.isInvalidate()?Ybe.toString(!1):Ybe.toString(!Jbe),Jbe))}var hbe=reactExports.useMemo(function(){return getDecimalIfValidate$1(rme)},[rme,$me]),ube=reactExports.useMemo(function(){return getDecimalIfValidate$1(nme)},[nme,$me]),mbe=reactExports.useMemo(function(){return!hbe||!Gme||Gme.isInvalidate()?!1:hbe.lessEquals(Gme)},[hbe,Gme]),pbe=reactExports.useMemo(function(){return!ube||!Gme||Gme.isInvalidate()?!1:Gme.lessEquals(ube)},[ube,Gme]),_be=useCursor$1(Mme.current,Dme),Sbe=_slicedToArray$2(_be,2),vbe=Sbe[0],kbe=Sbe[1],Rbe=function(Jbe){return hbe&&!Jbe.lessEquals(hbe)?hbe:ube&&!ube.lessEquals(Jbe)?ube:null},Pbe=function(Jbe){return!Rbe(Jbe)},Mbe=function(Jbe,c0e){var zbe=Jbe,R0e=Pbe(zbe)||zbe.isEmpty();if(!zbe.isEmpty()&&!c0e&&(zbe=Rbe(zbe)||zbe,R0e=!0),!dme&&!cme&&R0e){var $0e=zbe.toString(),u0e=Qme($0e,c0e);return u0e>=0&&(zbe=getMiniDecimal(toFixed$1($0e,".",u0e)),Pbe(zbe)||(zbe=getMiniDecimal(toFixed$1($0e,".",u0e,!0)))),zbe.equals(Gme)||(Yme(zbe),Sme==null||Sme(zbe.isEmpty()?null:getDecimalValue$1(gme,zbe)),sme===void 0&&obe(zbe,c0e)),zbe}return Gme},Kbe=useFrame$1(),Qbe=function Ybe(Jbe){if(vbe(),Kme.current=Jbe,abe(Jbe),!Wme.current){var c0e=Xme(Jbe),zbe=getMiniDecimal(c0e);zbe.isNaN()||Mbe(zbe,!0)}Eme==null||Eme(Jbe),Kbe(function(){var R0e=Jbe;yme||(R0e=Jbe.replace(/。/g,".")),R0e!==Jbe&&Ybe(R0e)})},Gbe=function(){Wme.current=!0},Hbe=function(){Wme.current=!1,Qbe(Mme.current.value)},d0e=function(Jbe){Qbe(Jbe.target.value)},p0e=function(Jbe){var c0e;if(!(Jbe&&mbe||!Jbe&&pbe)){Vme.current=!1;var zbe=getMiniDecimal(Lme.current?getDecupleSteps$1(ome):ome);Jbe||(zbe=zbe.negate());var R0e=(Gme||getMiniDecimal(0)).add(zbe.toString()),$0e=Mbe(R0e,!1);Tme==null||Tme(getDecimalValue$1(gme,$0e),{offset:Lme.current?getDecupleSteps$1(ome):ome,type:Jbe?"up":"down"}),(c0e=Mme.current)===null||c0e===void 0||c0e.focus()}},S0e=function(Jbe){var c0e=getMiniDecimal(Xme(ibe)),zbe;c0e.isNaN()?zbe=Mbe(Gme,Jbe):zbe=Mbe(c0e,Jbe),sme!==void 0?obe(Gme,!1):zbe.isNaN()||obe(zbe,!1)},P0e=function(){Vme.current=!0},e0e=function(Jbe){var c0e=Jbe.key,zbe=Jbe.shiftKey;Vme.current=!0,Lme.current=zbe,c0e==="Enter"&&(Wme.current||(Vme.current=!1),S0e(!1),xme==null||xme(Jbe)),pme!==!1&&!Wme.current&&["Up","ArrowUp","Down","ArrowDown"].includes(c0e)&&(p0e(c0e==="Up"||c0e==="ArrowUp"),Jbe.preventDefault())},_0e=function(){Vme.current=!1,Lme.current=!1};reactExports.useEffect(function(){if(bme&&Dme){var Ybe=function(zbe){p0e(zbe.deltaY<0),zbe.preventDefault()},Jbe=Mme.current;if(Jbe)return Jbe.addEventListener("wheel",Ybe,{passive:!1}),function(){return Jbe.removeEventListener("wheel",Ybe)}}});var m0e=function(){Rme&&S0e(!1),jme(!1),Vme.current=!1};return useLayoutUpdateEffect(function(){Gme.isInvalidate()||obe(Gme,!1)},[$me,_me]),useLayoutUpdateEffect(function(){var Ybe=getMiniDecimal(sme);Jme(Ybe);var Jbe=getMiniDecimal(Xme(ibe));(!Ybe.equals(Jbe)||!Vme.current||_me)&&obe(Ybe,Vme.current)},[sme]),useLayoutUpdateEffect(function(){_me&&kbe()},[ibe]),reactExports.createElement("div",{ref:Nme,className:classNames($P,tme,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat($P,"-focused"),Dme),"".concat($P,"-disabled"),cme),"".concat($P,"-readonly"),dme),"".concat($P,"-not-a-number"),Gme.isNaN()),"".concat($P,"-out-of-range"),!Gme.isInvalidate()&&!Pbe(Gme))),style:ame,onFocus:function(){jme(!0)},onBlur:m0e,onKeyDown:e0e,onKeyUp:_0e,onCompositionStart:Gbe,onCompositionEnd:Hbe,onBeforeInput:P0e},vme&&reactExports.createElement(StepHandler$1,{prefixCls:$P,upNode:ume,downNode:fme,upDisabled:mbe,downDisabled:pbe,onStep:p0e}),reactExports.createElement("div",{className:"".concat(Pme,"-wrap")},reactExports.createElement("input",_extends$4C({autoComplete:"off",role:"spinbutton","aria-valuemin":nme,"aria-valuemax":rme,"aria-valuenow":Gme.isInvalidate()?null:Gme.toString(),step:ome},Ime,{ref:composeRef(Mme,eme),className:Pme,value:ibe,onChange:d0e,disabled:cme,readOnly:dme}))))}),InputNumber$2=reactExports.forwardRef(function(x_,eme){var $P=x_.disabled,tme=x_.style,ame=x_.prefixCls,nme=ame===void 0?"rc-input-number":ame,rme=x_.value,ime=x_.prefix,ome=x_.suffix,lme=x_.addonBefore,sme=x_.addonAfter,cme=x_.className,dme=x_.classNames,ume=_objectWithoutProperties$6(x_,_excluded2$4),fme=reactExports.useRef(null),pme=reactExports.useRef(null),hme=reactExports.useRef(null),bme=function(vme){hme.current&&triggerFocus(hme.current,vme)};return reactExports.useImperativeHandle(eme,function(){return proxyObject(hme.current,{focus:bme,nativeElement:fme.current.nativeElement||pme.current})}),reactExports.createElement(BaseInput,{className:cme,triggerFocus:bme,prefixCls:nme,value:rme,disabled:$P,style:tme,prefix:ime,suffix:ome,addonAfter:sme,addonBefore:lme,classNames:dme,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:fme},reactExports.createElement(InternalInputNumber,_extends$4C({prefixCls:nme,disabled:$P,ref:hme,domRef:pme,className:dme==null?void 0:dme.input},ume)))});const prepareComponentToken$7=x_=>{var eme;const $P=(eme=x_.handleVisible)!==null&&eme!==void 0?eme:"auto",tme=x_.controlHeightSM-x_.lineWidth*2;return Object.assign(Object.assign({},initComponentToken(x_)),{controlWidth:90,handleWidth:tme,handleFontSize:x_.fontSize/2,handleVisible:$P,handleActiveBg:x_.colorFillAlter,handleBg:x_.colorBgContainer,filledHandleBg:new TinyColor(x_.colorFillSecondary).onBackground(x_.colorBgContainer).toHexString(),handleHoverColor:x_.colorPrimary,handleBorderColor:x_.colorBorder,handleOpacity:$P===!0?1:0,handleVisibleWidth:$P===!0?tme:0})},genRadiusStyle=(x_,eme)=>{let{componentCls:$P,borderRadiusSM:tme,borderRadiusLG:ame}=x_;const nme=eme==="lg"?ame:tme;return{[`&-${eme}`]:{[`${$P}-handler-wrap`]:{borderStartEndRadius:nme,borderEndEndRadius:nme},[`${$P}-handler-up`]:{borderStartEndRadius:nme},[`${$P}-handler-down`]:{borderEndEndRadius:nme}}}},genInputNumberStyles=x_=>{const{componentCls:eme,lineWidth:$P,lineType:tme,borderRadius:ame,inputFontSizeSM:nme,inputFontSizeLG:rme,controlHeightLG:ime,controlHeightSM:ome,colorError:lme,paddingInlineSM:sme,paddingBlockSM:cme,paddingBlockLG:dme,paddingInlineLG:ume,colorTextDescription:fme,motionDurationMid:pme,handleHoverColor:hme,handleOpacity:bme,paddingInline:mme,paddingBlock:vme,handleBg:gme,handleActiveBg:yme,colorTextDisabled:_me,borderRadiusSM:$me,borderRadiusLG:Cme,controlWidth:Sme,handleBorderColor:Eme,filledHandleBg:xme,lineHeightLG:Tme,calc:Ome}=x_;return[{[eme]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),genBasicInputStyle(x_)),{display:"inline-block",width:Sme,margin:0,padding:0,borderRadius:ame}),genOutlinedStyle(x_,{[`${eme}-handler-wrap`]:{background:gme,[`${eme}-handler-down`]:{borderBlockStart:`${unit$1($P)} ${tme} ${Eme}`}}})),genFilledStyle(x_,{[`${eme}-handler-wrap`]:{background:xme,[`${eme}-handler-down`]:{borderBlockStart:`${unit$1($P)} ${tme} ${Eme}`}},"&:focus-within":{[`${eme}-handler-wrap`]:{background:gme}}})),genBorderlessStyle(x_)),{"&-rtl":{direction:"rtl",[`${eme}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:rme,lineHeight:Tme,borderRadius:Cme,[`input${eme}-input`]:{height:Ome(ime).sub(Ome($P).mul(2)).equal(),padding:`${unit$1(dme)} ${unit$1(ume)}`}},"&-sm":{padding:0,fontSize:nme,borderRadius:$me,[`input${eme}-input`]:{height:Ome(ome).sub(Ome($P).mul(2)).equal(),padding:`${unit$1(cme)} ${unit$1(sme)}`}},"&-out-of-range":{[`${eme}-input-wrap`]:{input:{color:lme}}},"&-group":Object.assign(Object.assign(Object.assign({},resetComponent(x_)),genInputGroupStyle(x_)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${eme}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${eme}-group-addon`]:{borderRadius:Cme,fontSize:x_.fontSizeLG}},"&-sm":{[`${eme}-group-addon`]:{borderRadius:$me}}},genOutlinedGroupStyle(x_)),genFilledGroupStyle(x_)),{[`&:not(${eme}-compact-first-item):not(${eme}-compact-last-item)${eme}-compact-item`]:{[`${eme}, ${eme}-group-addon`]:{borderRadius:0}},[`&:not(${eme}-compact-last-item)${eme}-compact-first-item`]:{[`${eme}, ${eme}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${eme}-compact-first-item)${eme}-compact-last-item`]:{[`${eme}, ${eme}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${eme}-input`]:{cursor:"not-allowed"},[eme]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{width:"100%",padding:`${unit$1(vme)} ${unit$1(mme)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ame,outline:0,transition:`all ${pme} linear`,appearance:"textfield",fontSize:"inherit"}),genPlaceholderStyle(x_.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${eme}-handler-wrap, &-focused ${eme}-handler-wrap`]:{width:x_.handleWidth,opacity:1}})},{[eme]:Object.assign(Object.assign(Object.assign({[`${eme}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:x_.handleVisibleWidth,opacity:bme,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ame,borderEndEndRadius:ame,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${pme}`,overflow:"hidden",[`${eme}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${eme}-handler-up-inner,
              ${eme}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:x_.handleFontSize}}},[`${eme}-handler`]:{height:"50%",overflow:"hidden",color:fme,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit$1($P)} ${tme} ${Eme}`,transition:`all ${pme} linear`,"&:active":{background:yme},"&:hover":{height:"60%",[`
              ${eme}-handler-up-inner,
              ${eme}-handler-down-inner
            `]:{color:hme}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},resetIcon()),{color:fme,transition:`all ${pme} linear`,userSelect:"none"})},[`${eme}-handler-up`]:{borderStartEndRadius:ame},[`${eme}-handler-down`]:{borderEndEndRadius:ame}},genRadiusStyle(x_,"lg")),genRadiusStyle(x_,"sm")),{"&-disabled, &-readonly":{[`${eme}-handler-wrap`]:{display:"none"},[`${eme}-input`]:{color:"inherit"}},[`
          ${eme}-handler-up-disabled,
          ${eme}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${eme}-handler-up-disabled:hover &-handler-up-inner,
          ${eme}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:_me}})}]},genAffixWrapperStyles=x_=>{const{componentCls:eme,paddingBlock:$P,paddingInline:tme,inputAffixPadding:ame,controlWidth:nme,borderRadiusLG:rme,borderRadiusSM:ime,paddingInlineLG:ome,paddingInlineSM:lme,paddingBlockLG:sme,paddingBlockSM:cme,motionDurationMid:dme}=x_;return{[`${eme}-affix-wrapper`]:Object.assign(Object.assign({[`input${eme}-input`]:{padding:`${unit$1($P)} 0`}},genBasicInputStyle(x_)),{position:"relative",display:"inline-flex",alignItems:"center",width:nme,padding:0,paddingInlineStart:tme,"&-lg":{borderRadius:rme,paddingInlineStart:ome,[`input${eme}-input`]:{padding:`${unit$1(sme)} 0`}},"&-sm":{borderRadius:ime,paddingInlineStart:lme,[`input${eme}-input`]:{padding:`${unit$1(cme)} 0`}},[`&:not(${eme}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${eme}-disabled`]:{background:"transparent"},[`> div${eme}`]:{width:"100%",border:"none",outline:"none",[`&${eme}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${eme}-handler-wrap`]:{zIndex:2},[eme]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ame},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:tme,marginInlineStart:ame,transition:`margin ${dme}`}},[`&:hover ${eme}-handler-wrap, &-focused ${eme}-handler-wrap`]:{width:x_.handleWidth,opacity:1},[`&:not(${eme}-affix-wrapper-without-controls):hover ${eme}-suffix`]:{marginInlineEnd:x_.calc(x_.handleWidth).add(tme).equal()}})}},useStyle$9=genStyleHooks("InputNumber",x_=>{const eme=merge$5(x_,initInputToken(x_));return[genInputNumberStyles(eme),genAffixWrapperStyles(eme),genCompactItemStyle(eme)]},prepareComponentToken$7,{unitless:{handleOpacity:!0}});var __rest$t=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InputNumber$1=reactExports.forwardRef((x_,eme)=>{const{getPrefixCls:$P,direction:tme}=reactExports.useContext(ConfigContext),ame=reactExports.useRef(null);reactExports.useImperativeHandle(eme,()=>ame.current);const{className:nme,rootClassName:rme,size:ime,disabled:ome,prefixCls:lme,addonBefore:sme,addonAfter:cme,prefix:dme,suffix:ume,bordered:fme,readOnly:pme,status:hme,controls:bme,variant:mme}=x_,vme=__rest$t(x_,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),gme=$P("input-number",lme),yme=useCSSVarCls(gme),[_me,$me,Cme]=useStyle$9(gme,yme),{compactSize:Sme,compactItemClassnames:Eme}=useCompactItemContext(gme,tme);let xme=reactExports.createElement(RefIcon$9,{className:`${gme}-handler-up-inner`}),Tme=reactExports.createElement(RefIcon$g,{className:`${gme}-handler-down-inner`});const Ome=typeof bme=="boolean"?bme:void 0;typeof bme=="object"&&(xme=typeof bme.upIcon>"u"?xme:reactExports.createElement("span",{className:`${gme}-handler-up-inner`},bme.upIcon),Tme=typeof bme.downIcon>"u"?Tme:reactExports.createElement("span",{className:`${gme}-handler-down-inner`},bme.downIcon));const{hasFeedback:Rme,status:Nme,isFormItemInput:Ime,feedbackIcon:Pme}=reactExports.useContext(FormItemInputContext),Mme=getMergedStatus(Nme,hme),kme=useSize(Gme=>{var Jme;return(Jme=ime??Sme)!==null&&Jme!==void 0?Jme:Gme}),Bme=reactExports.useContext(DisabledContext),Dme=ome??Bme,[jme,Vme]=useVariant("inputNumber",mme,fme),Wme=Rme&&reactExports.createElement(reactExports.Fragment,null,Pme),Lme=classNames({[`${gme}-lg`]:kme==="large",[`${gme}-sm`]:kme==="small",[`${gme}-rtl`]:tme==="rtl",[`${gme}-in-form-item`]:Ime},$me),zme=`${gme}-group`,Ume=reactExports.createElement(InputNumber$2,Object.assign({ref:ame,disabled:Dme,className:classNames(Cme,yme,nme,rme,Eme),upHandler:xme,downHandler:Tme,prefixCls:gme,readOnly:pme,controls:Ome,prefix:dme,suffix:Wme||ume,addonBefore:sme&&reactExports.createElement(ContextIsolator,{form:!0,space:!0},sme),addonAfter:cme&&reactExports.createElement(ContextIsolator,{form:!0,space:!0},cme),classNames:{input:Lme,variant:classNames({[`${gme}-${jme}`]:Vme},getStatusClassNames(gme,Mme,Rme)),affixWrapper:classNames({[`${gme}-affix-wrapper-sm`]:kme==="small",[`${gme}-affix-wrapper-lg`]:kme==="large",[`${gme}-affix-wrapper-rtl`]:tme==="rtl",[`${gme}-affix-wrapper-without-controls`]:bme===!1},$me),wrapper:classNames({[`${zme}-rtl`]:tme==="rtl"},$me),groupWrapper:classNames({[`${gme}-group-wrapper-sm`]:kme==="small",[`${gme}-group-wrapper-lg`]:kme==="large",[`${gme}-group-wrapper-rtl`]:tme==="rtl",[`${gme}-group-wrapper-${jme}`]:Vme},getStatusClassNames(`${gme}-group-wrapper`,Mme,Rme),$me)}},vme));return _me(Ume)}),TypedInputNumber=InputNumber$1,PureInputNumber=x_=>reactExports.createElement(ConfigProvider,{theme:{components:{InputNumber:{handleVisible:!0}}}},reactExports.createElement(InputNumber$1,Object.assign({},x_)));TypedInputNumber._InternalPanelDoNotUseOrYouWillBeFired=PureInputNumber;const ColorSteppers=x_=>{let{prefixCls:eme,min:$P=0,max:tme=100,value:ame,onChange:nme,className:rme,formatter:ime}=x_;const ome=`${eme}-steppers`,[lme,sme]=reactExports.useState(ame);return reactExports.useEffect(()=>{Number.isNaN(ame)||sme(ame)},[ame]),jsx(TypedInputNumber,{className:classNames(ome,rme),min:$P,max:tme,value:lme,formatter:ime,size:"small",onChange:cme=>{ame||sme(cme||0),nme==null||nme(cme)}})},ColorAlphaInput=x_=>{let{prefixCls:eme,value:$P,onChange:tme}=x_;const ame=`${eme}-alpha-input`,[nme,rme]=reactExports.useState(generateColor($P||"#000"));reactExports.useEffect(()=>{$P&&rme($P)},[$P]);const ime=ome=>{const lme=nme.toHsb();lme.a=(ome||0)/100;const sme=generateColor(lme);$P||rme(sme),tme==null||tme(sme)};return jsx(ColorSteppers,{value:getColorAlpha(nme),prefixCls:eme,formatter:ome=>`${ome}%`,className:ame,onChange:ime})},Group$1=x_=>{const{getPrefixCls:eme,direction:$P}=reactExports.useContext(ConfigContext),{prefixCls:tme,className:ame}=x_,nme=eme("input-group",tme),rme=eme("input"),[ime,ome]=useStyle$f(rme),lme=classNames(nme,{[`${nme}-lg`]:x_.size==="large",[`${nme}-sm`]:x_.size==="small",[`${nme}-compact`]:x_.compact,[`${nme}-rtl`]:$P==="rtl"},ome,ame),sme=reactExports.useContext(FormItemInputContext),cme=reactExports.useMemo(()=>Object.assign(Object.assign({},sme),{isFormItemInput:!1}),[sme]);return ime(reactExports.createElement("span",{className:lme,style:x_.style,onMouseEnter:x_.onMouseEnter,onMouseLeave:x_.onMouseLeave,onFocus:x_.onFocus,onBlur:x_.onBlur},reactExports.createElement(FormItemInputContext.Provider,{value:cme},x_.children)))},getAllowClear=x_=>{let eme;return typeof x_=="object"&&(x_!=null&&x_.clearIcon)?eme=x_:x_&&(eme={clearIcon:React__default.createElement(RefIcon$n,null)}),eme};function useRemovePasswordTimeout(x_,eme){const $P=reactExports.useRef([]),tme=()=>{$P.current.push(setTimeout(()=>{var ame,nme,rme,ime;!((ame=x_.current)===null||ame===void 0)&&ame.input&&((nme=x_.current)===null||nme===void 0?void 0:nme.input.getAttribute("type"))==="password"&&(!((rme=x_.current)===null||rme===void 0)&&rme.input.hasAttribute("value"))&&((ime=x_.current)===null||ime===void 0||ime.input.removeAttribute("value"))}))};return reactExports.useEffect(()=>(eme&&tme(),()=>$P.current.forEach(ame=>{ame&&clearTimeout(ame)})),[]),tme}function hasPrefixSuffix(x_){return!!(x_.prefix||x_.suffix||x_.allowClear||x_.showCount)}var __rest$s=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Input$2=reactExports.forwardRef((x_,eme)=>{var $P;const{prefixCls:tme,bordered:ame=!0,status:nme,size:rme,disabled:ime,onBlur:ome,onFocus:lme,suffix:sme,allowClear:cme,addonAfter:dme,addonBefore:ume,className:fme,style:pme,styles:hme,rootClassName:bme,onChange:mme,classNames:vme,variant:gme}=x_,yme=__rest$s(x_,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:_me,direction:$me,input:Cme}=React__default.useContext(ConfigContext),Sme=_me("input",tme),Eme=reactExports.useRef(null),xme=useCSSVarCls(Sme),[Tme,Ome,Rme]=useStyle$f(Sme,xme),{compactSize:Nme,compactItemClassnames:Ime}=useCompactItemContext(Sme,$me),Pme=useSize(Kme=>{var Zme;return(Zme=rme??Nme)!==null&&Zme!==void 0?Zme:Kme}),Mme=React__default.useContext(DisabledContext),kme=ime??Mme,{status:Bme,hasFeedback:Dme,feedbackIcon:jme}=reactExports.useContext(FormItemInputContext),Vme=getMergedStatus(Bme,nme),Wme=hasPrefixSuffix(x_)||!!Dme;reactExports.useRef(Wme);const Lme=useRemovePasswordTimeout(Eme,!0),zme=Kme=>{Lme(),ome==null||ome(Kme)},Ume=Kme=>{Lme(),lme==null||lme(Kme)},Gme=Kme=>{Lme(),mme==null||mme(Kme)},Jme=(Dme||sme)&&jsxs(Fragment,{children:[sme,Dme&&jme]}),Yme=getAllowClear(cme??(Cme==null?void 0:Cme.allowClear)),[Qme,Xme]=useVariant("input",gme,ame);return Tme(jsx(Input$3,{...Object.assign({ref:composeRef(eme,Eme),prefixCls:Sme,autoComplete:Cme==null?void 0:Cme.autoComplete},yme,{disabled:kme,onBlur:zme,onFocus:Ume,style:Object.assign(Object.assign({},Cme==null?void 0:Cme.style),pme),styles:Object.assign(Object.assign({},Cme==null?void 0:Cme.styles),hme),suffix:Jme,allowClear:Yme,className:classNames(fme,bme,Rme,xme,Ime,Cme==null?void 0:Cme.className),onChange:Gme,addonBefore:ume&&jsx(ContextIsolator,{form:!0,space:!0,children:ume}),addonAfter:dme&&jsx(ContextIsolator,{form:!0,space:!0,children:dme}),classNames:Object.assign(Object.assign(Object.assign({},vme),Cme==null?void 0:Cme.classNames),{input:classNames({[`${Sme}-sm`]:Pme==="small",[`${Sme}-lg`]:Pme==="large",[`${Sme}-rtl`]:$me==="rtl"},vme==null?void 0:vme.input,($P=Cme==null?void 0:Cme.classNames)===null||$P===void 0?void 0:$P.input,Ome),variant:classNames({[`${Sme}-${Qme}`]:Xme},getStatusClassNames(Sme,Vme)),affixWrapper:classNames({[`${Sme}-affix-wrapper-sm`]:Pme==="small",[`${Sme}-affix-wrapper-lg`]:Pme==="large",[`${Sme}-affix-wrapper-rtl`]:$me==="rtl"},Ome),wrapper:classNames({[`${Sme}-group-rtl`]:$me==="rtl"},Ome),groupWrapper:classNames({[`${Sme}-group-wrapper-sm`]:Pme==="small",[`${Sme}-group-wrapper-lg`]:Pme==="large",[`${Sme}-group-wrapper-rtl`]:$me==="rtl",[`${Sme}-group-wrapper-${Qme}`]:Xme},getStatusClassNames(`${Sme}-group-wrapper`,Vme,Dme),Ome)})})}))}),genOTPStyle=x_=>{const{componentCls:eme,paddingXS:$P}=x_;return{[eme]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:$P,"&-rtl":{direction:"rtl"},[`${eme}-input`]:{textAlign:"center",paddingInline:x_.paddingXXS},[`&${eme}-sm ${eme}-input`]:{paddingInline:x_.calc(x_.paddingXXS).div(2).equal()},[`&${eme}-lg ${eme}-input`]:{paddingInline:x_.paddingXS}}}},useStyle$8=genStyleHooks(["Input","OTP"],x_=>{const eme=merge$5(x_,initInputToken(x_));return[genOTPStyle(eme)]},initComponentToken);var __rest$r=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const OTPInput=reactExports.forwardRef((x_,eme)=>{const{value:$P,onChange:tme,onActiveChange:ame,index:nme,mask:rme}=x_,ime=__rest$r(x_,["value","onChange","onActiveChange","index","mask"]),ome=$P&&typeof rme=="string"?rme:$P,lme=fme=>{tme(nme,fme.target.value)},sme=reactExports.useRef(null);reactExports.useImperativeHandle(eme,()=>sme.current);const cme=()=>{wrapperRaf(()=>{var fme;const pme=(fme=sme.current)===null||fme===void 0?void 0:fme.input;document.activeElement===pme&&pme&&pme.select()})},dme=fme=>{const{key:pme,ctrlKey:hme,metaKey:bme}=fme;pme==="ArrowLeft"?ame(nme-1):pme==="ArrowRight"?ame(nme+1):pme==="z"&&(hme||bme)&&fme.preventDefault(),cme()},ume=fme=>{fme.key==="Backspace"&&!$P&&ame(nme-1),cme()};return reactExports.createElement(Input$2,Object.assign({type:rme===!0?"password":"text"},ime,{ref:sme,value:ome,onInput:lme,onFocus:cme,onKeyDown:dme,onKeyUp:ume,onMouseDown:cme,onMouseUp:cme}))});var __rest$q=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function strToArr(x_){return(x_||"").split("")}const OTP=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,length:tme=6,size:ame,defaultValue:nme,value:rme,onChange:ime,formatter:ome,variant:lme,disabled:sme,status:cme,autoFocus:dme,mask:ume,type:fme,onInput:pme,inputMode:hme}=x_,bme=__rest$q(x_,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:mme,direction:vme}=reactExports.useContext(ConfigContext),gme=mme("otp",$P),yme=pickAttrs(bme,{aria:!0,data:!0,attr:!0}),_me=useCSSVarCls(gme),[$me,Cme,Sme]=useStyle$8(gme,_me),Eme=useSize(Wme=>ame??Wme),xme=reactExports.useContext(FormItemInputContext),Tme=getMergedStatus(xme.status,cme),Ome=reactExports.useMemo(()=>Object.assign(Object.assign({},xme),{status:Tme,hasFeedback:!1,feedbackIcon:null}),[xme,Tme]),Rme=reactExports.useRef(null),Nme=reactExports.useRef({});reactExports.useImperativeHandle(eme,()=>({focus:()=>{var Wme;(Wme=Nme.current[0])===null||Wme===void 0||Wme.focus()},blur:()=>{var Wme;for(let Lme=0;Lme<tme;Lme+=1)(Wme=Nme.current[Lme])===null||Wme===void 0||Wme.blur()},nativeElement:Rme.current}));const Ime=Wme=>ome?ome(Wme):Wme,[Pme,Mme]=reactExports.useState(strToArr(Ime(nme||"")));reactExports.useEffect(()=>{rme!==void 0&&Mme(strToArr(rme))},[rme]);const kme=useEvent(Wme=>{Mme(Wme),pme&&pme(Wme),ime&&Wme.length===tme&&Wme.every(Lme=>Lme)&&Wme.some((Lme,zme)=>Pme[zme]!==Lme)&&ime(Wme.join(""))}),Bme=useEvent((Wme,Lme)=>{let zme=_toConsumableArray$1(Pme);for(let Gme=0;Gme<Wme;Gme+=1)zme[Gme]||(zme[Gme]="");Lme.length<=1?zme[Wme]=Lme:zme=zme.slice(0,Wme).concat(strToArr(Lme)),zme=zme.slice(0,tme);for(let Gme=zme.length-1;Gme>=0&&!zme[Gme];Gme-=1)zme.pop();const Ume=Ime(zme.map(Gme=>Gme||" ").join(""));return zme=strToArr(Ume).map((Gme,Jme)=>Gme===" "&&!zme[Jme]?zme[Jme]:Gme),zme}),Dme=(Wme,Lme)=>{var zme;const Ume=Bme(Wme,Lme),Gme=Math.min(Wme+Lme.length,tme-1);Gme!==Wme&&Ume[Wme]!==void 0&&((zme=Nme.current[Gme])===null||zme===void 0||zme.focus()),kme(Ume)},jme=Wme=>{var Lme;(Lme=Nme.current[Wme])===null||Lme===void 0||Lme.focus()},Vme={variant:lme,disabled:sme,status:Tme,mask:ume,type:fme,inputMode:hme};return $me(reactExports.createElement("div",Object.assign({},yme,{ref:Rme,className:classNames(gme,{[`${gme}-sm`]:Eme==="small",[`${gme}-lg`]:Eme==="large",[`${gme}-rtl`]:vme==="rtl"},Sme,Cme)}),reactExports.createElement(FormItemInputContext.Provider,{value:Ome},Array.from({length:tme}).map((Wme,Lme)=>{const zme=`otp-${Lme}`,Ume=Pme[Lme]||"";return reactExports.createElement(OTPInput,Object.assign({ref:Gme=>{Nme.current[Lme]=Gme},key:zme,index:Lme,size:Eme,htmlSize:1,className:`${gme}-input`,onChange:Dme,value:Ume,onActiveChange:jme,autoFocus:Lme===0&&dme},Vme))}))))});var EyeInvisibleOutlined$1={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"},EyeInvisibleOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:EyeInvisibleOutlined$1}))},RefIcon$8=reactExports.forwardRef(EyeInvisibleOutlined),EyeOutlined$1={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"},EyeOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:EyeOutlined$1}))},RefIcon$7=reactExports.forwardRef(EyeOutlined),__rest$p=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const defaultIconRender=x_=>x_?reactExports.createElement(RefIcon$7,null):reactExports.createElement(RefIcon$8,null),actionMap={click:"onClick",hover:"onMouseOver"},Password=reactExports.forwardRef((x_,eme)=>{const{disabled:$P,action:tme="click",visibilityToggle:ame=!0,iconRender:nme=defaultIconRender}=x_,rme=reactExports.useContext(DisabledContext),ime=$P??rme,ome=typeof ame=="object"&&ame.visible!==void 0,[lme,sme]=reactExports.useState(()=>ome?ame.visible:!1),cme=reactExports.useRef(null);reactExports.useEffect(()=>{ome&&sme(ame.visible)},[ome,ame]);const dme=useRemovePasswordTimeout(cme),ume=()=>{ime||(lme&&dme(),sme(Eme=>{var xme;const Tme=!Eme;return typeof ame=="object"&&((xme=ame.onVisibleChange)===null||xme===void 0||xme.call(ame,Tme)),Tme}))},fme=Eme=>{const xme=actionMap[tme]||"",Tme=nme(lme),Ome={[xme]:ume,className:`${Eme}-icon`,key:"passwordIcon",onMouseDown:Rme=>{Rme.preventDefault()},onMouseUp:Rme=>{Rme.preventDefault()}};return reactExports.cloneElement(reactExports.isValidElement(Tme)?Tme:reactExports.createElement("span",null,Tme),Ome)},{className:pme,prefixCls:hme,inputPrefixCls:bme,size:mme}=x_,vme=__rest$p(x_,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gme}=reactExports.useContext(ConfigContext),yme=gme("input",bme),_me=gme("input-password",hme),$me=ame&&fme(_me),Cme=classNames(_me,pme,{[`${_me}-${mme}`]:!!mme}),Sme=Object.assign(Object.assign({},omit$2(vme,["suffix","iconRender","visibilityToggle"])),{type:lme?"text":"password",className:Cme,prefixCls:yme,suffix:$me});return mme&&(Sme.size=mme),reactExports.createElement(Input$2,Object.assign({ref:composeRef(eme,cme)},Sme))});var __rest$o=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Search=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,inputPrefixCls:tme,className:ame,size:nme,suffix:rme,enterButton:ime=!1,addonAfter:ome,loading:lme,disabled:sme,onSearch:cme,onChange:dme,onCompositionStart:ume,onCompositionEnd:fme}=x_,pme=__rest$o(x_,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:hme,direction:bme}=reactExports.useContext(ConfigContext),mme=reactExports.useRef(!1),vme=hme("input-search",$P),gme=hme("input",tme),{compactSize:yme}=useCompactItemContext(vme,bme),_me=useSize(Bme=>{var Dme;return(Dme=nme??yme)!==null&&Dme!==void 0?Dme:Bme}),$me=reactExports.useRef(null),Cme=Bme=>{Bme!=null&&Bme.target&&Bme.type==="click"&&cme&&cme(Bme.target.value,Bme,{source:"clear"}),dme==null||dme(Bme)},Sme=Bme=>{var Dme;document.activeElement===((Dme=$me.current)===null||Dme===void 0?void 0:Dme.input)&&Bme.preventDefault()},Eme=Bme=>{var Dme,jme;cme&&cme((jme=(Dme=$me.current)===null||Dme===void 0?void 0:Dme.input)===null||jme===void 0?void 0:jme.value,Bme,{source:"input"})},xme=Bme=>{mme.current||lme||Eme(Bme)},Tme=typeof ime=="boolean"?reactExports.createElement(RefIcon$f,null):null,Ome=`${vme}-button`;let Rme;const Nme=ime||{},Ime=Nme.type&&Nme.type.__ANT_BUTTON===!0;Ime||Nme.type==="button"?Rme=cloneElement(Nme,Object.assign({onMouseDown:Sme,onClick:Bme=>{var Dme,jme;(jme=(Dme=Nme==null?void 0:Nme.props)===null||Dme===void 0?void 0:Dme.onClick)===null||jme===void 0||jme.call(Dme,Bme),Eme(Bme)},key:"enterButton"},Ime?{className:Ome,size:_me}:{})):Rme=reactExports.createElement(Button$3,{className:Ome,type:ime?"primary":void 0,size:_me,disabled:sme,key:"enterButton",onMouseDown:Sme,onClick:Eme,loading:lme,icon:Tme},ime),ome&&(Rme=[Rme,cloneElement(ome,{key:"addonAfter"})]);const Pme=classNames(vme,{[`${vme}-rtl`]:bme==="rtl",[`${vme}-${_me}`]:!!_me,[`${vme}-with-button`]:!!ime},ame),Mme=Bme=>{mme.current=!0,ume==null||ume(Bme)},kme=Bme=>{mme.current=!1,fme==null||fme(Bme)};return reactExports.createElement(Input$2,Object.assign({ref:composeRef($me,eme),onPressEnter:xme},pme,{size:_me,onCompositionStart:Mme,onCompositionEnd:kme,prefixCls:gme,addonAfter:Rme,suffix:rme,onChange:Cme,className:Pme,disabled:sme}))});var HIDDEN_TEXTAREA_STYLE$1=`
  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;
`,SIZING_STYLE$1=["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"],computedStyleCache={},hiddenTextarea$1;function calculateNodeStyling(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$P=x_.getAttribute("id")||x_.getAttribute("data-reactid")||x_.getAttribute("name");if(eme&&computedStyleCache[$P])return computedStyleCache[$P];var tme=window.getComputedStyle(x_),ame=tme.getPropertyValue("box-sizing")||tme.getPropertyValue("-moz-box-sizing")||tme.getPropertyValue("-webkit-box-sizing"),nme=parseFloat(tme.getPropertyValue("padding-bottom"))+parseFloat(tme.getPropertyValue("padding-top")),rme=parseFloat(tme.getPropertyValue("border-bottom-width"))+parseFloat(tme.getPropertyValue("border-top-width")),ime=SIZING_STYLE$1.map(function(lme){return"".concat(lme,":").concat(tme.getPropertyValue(lme))}).join(";"),ome={sizingStyle:ime,paddingSize:nme,borderSize:rme,boxSizing:ame};return eme&&$P&&(computedStyleCache[$P]=ome),ome}function calculateAutoSizeStyle(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,tme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;hiddenTextarea$1||(hiddenTextarea$1=document.createElement("textarea"),hiddenTextarea$1.setAttribute("tab-index","-1"),hiddenTextarea$1.setAttribute("aria-hidden","true"),hiddenTextarea$1.setAttribute("name","hiddenTextarea"),document.body.appendChild(hiddenTextarea$1)),x_.getAttribute("wrap")?hiddenTextarea$1.setAttribute("wrap",x_.getAttribute("wrap")):hiddenTextarea$1.removeAttribute("wrap");var ame=calculateNodeStyling(x_,eme),nme=ame.paddingSize,rme=ame.borderSize,ime=ame.boxSizing,ome=ame.sizingStyle;hiddenTextarea$1.setAttribute("style","".concat(ome,";").concat(HIDDEN_TEXTAREA_STYLE$1)),hiddenTextarea$1.value=x_.value||x_.placeholder||"";var lme=void 0,sme=void 0,cme,dme=hiddenTextarea$1.scrollHeight;if(ime==="border-box"?dme+=rme:ime==="content-box"&&(dme-=nme),$P!==null||tme!==null){hiddenTextarea$1.value=" ";var ume=hiddenTextarea$1.scrollHeight-nme;$P!==null&&(lme=ume*$P,ime==="border-box"&&(lme=lme+nme+rme),dme=Math.max(lme,dme)),tme!==null&&(sme=ume*tme,ime==="border-box"&&(sme=sme+nme+rme),cme=dme>sme?"":"hidden",dme=Math.min(sme,dme))}var fme={height:dme,overflowY:cme,resize:"none"};return lme&&(fme.minHeight=lme),sme&&(fme.maxHeight=sme),fme}var _excluded$e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],RESIZE_START=0,RESIZE_MEASURING=1,RESIZE_STABLE=2,ResizableTextArea=reactExports.forwardRef(function(x_,eme){var $P=x_,tme=$P.prefixCls,ame=$P.defaultValue,nme=$P.value,rme=$P.autoSize,ime=$P.onResize,ome=$P.className,lme=$P.style,sme=$P.disabled,cme=$P.onChange;$P.onInternalAutoSize;var dme=_objectWithoutProperties$6($P,_excluded$e),ume=useMergedState(ame,{value:nme,postState:function(Wme){return Wme??""}}),fme=_slicedToArray$2(ume,2),pme=fme[0],hme=fme[1],bme=function(Wme){hme(Wme.target.value),cme==null||cme(Wme)},mme=reactExports.useRef();reactExports.useImperativeHandle(eme,function(){return{textArea:mme.current}});var vme=reactExports.useMemo(function(){return rme&&_typeof$4(rme)==="object"?[rme.minRows,rme.maxRows]:[]},[rme]),gme=_slicedToArray$2(vme,2),yme=gme[0],_me=gme[1],$me=!!rme,Cme=function(){try{if(document.activeElement===mme.current){var Wme=mme.current,Lme=Wme.selectionStart,zme=Wme.selectionEnd,Ume=Wme.scrollTop;mme.current.setSelectionRange(Lme,zme),mme.current.scrollTop=Ume}}catch{}},Sme=reactExports.useState(RESIZE_STABLE),Eme=_slicedToArray$2(Sme,2),xme=Eme[0],Tme=Eme[1],Ome=reactExports.useState(),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1],Pme=function(){Tme(RESIZE_START)};useLayoutEffect$1(function(){$me&&Pme()},[nme,yme,_me,$me]),useLayoutEffect$1(function(){if(xme===RESIZE_START)Tme(RESIZE_MEASURING);else if(xme===RESIZE_MEASURING){var Vme=calculateAutoSizeStyle(mme.current,!1,yme,_me);Tme(RESIZE_STABLE),Ime(Vme)}else Cme()},[xme]);var Mme=reactExports.useRef(),kme=function(){wrapperRaf.cancel(Mme.current)},Bme=function(Wme){xme===RESIZE_STABLE&&(ime==null||ime(Wme),rme&&(kme(),Mme.current=wrapperRaf(function(){Pme()})))};reactExports.useEffect(function(){return kme},[]);var Dme=$me?Nme:null,jme=_objectSpread2$4(_objectSpread2$4({},lme),Dme);return(xme===RESIZE_START||xme===RESIZE_MEASURING)&&(jme.overflowY="hidden",jme.overflowX="hidden"),reactExports.createElement(RefResizeObserver,{onResize:Bme,disabled:!(rme||ime)},reactExports.createElement("textarea",_extends$4C({},dme,{ref:mme,style:jme,className:classNames(tme,ome,_defineProperty$7({},"".concat(tme,"-disabled"),sme)),disabled:sme,value:pme,onChange:bme})))}),_excluded$d=["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"],TextArea$1=React__default.forwardRef(function(x_,eme){var $P,tme=x_.defaultValue,ame=x_.value,nme=x_.onFocus,rme=x_.onBlur,ime=x_.onChange,ome=x_.allowClear,lme=x_.maxLength,sme=x_.onCompositionStart,cme=x_.onCompositionEnd,dme=x_.suffix,ume=x_.prefixCls,fme=ume===void 0?"rc-textarea":ume,pme=x_.showCount,hme=x_.count,bme=x_.className,mme=x_.style,vme=x_.disabled,gme=x_.hidden,yme=x_.classNames,_me=x_.styles,$me=x_.onResize,Cme=x_.onClear,Sme=x_.onPressEnter,Eme=x_.readOnly,xme=x_.autoSize,Tme=x_.onKeyDown,Ome=_objectWithoutProperties$6(x_,_excluded$d),Rme=useMergedState(tme,{value:ame,defaultValue:tme}),Nme=_slicedToArray$2(Rme,2),Ime=Nme[0],Pme=Nme[1],Mme=Ime==null?"":String(Ime),kme=React__default.useState(!1),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=React__default.useRef(!1),Wme=React__default.useState(null),Lme=_slicedToArray$2(Wme,2),zme=Lme[0],Ume=Lme[1],Gme=reactExports.useRef(null),Jme=reactExports.useRef(null),Yme=function(){var Hbe;return(Hbe=Jme.current)===null||Hbe===void 0?void 0:Hbe.textArea},Qme=function(){Yme().focus()};reactExports.useImperativeHandle(eme,function(){var Gbe;return{resizableTextArea:Jme.current,focus:Qme,blur:function(){Yme().blur()},nativeElement:((Gbe=Gme.current)===null||Gbe===void 0?void 0:Gbe.nativeElement)||Yme()}}),reactExports.useEffect(function(){jme(function(Gbe){return!vme&&Gbe})},[vme]);var Xme=React__default.useState(null),Kme=_slicedToArray$2(Xme,2),Zme=Kme[0],nbe=Kme[1];React__default.useEffect(function(){if(Zme){var Gbe;(Gbe=Yme()).setSelectionRange.apply(Gbe,_toConsumableArray$1(Zme))}},[Zme]);var lbe=useCount(hme,pme),ibe=($P=lbe.max)!==null&&$P!==void 0?$P:lme,abe=Number(ibe)>0,obe=lbe.strategy(Mme),hbe=!!ibe&&obe>ibe,ube=function(Hbe,d0e){var p0e=d0e;!Vme.current&&lbe.exceedFormatter&&lbe.max&&lbe.strategy(d0e)>lbe.max&&(p0e=lbe.exceedFormatter(d0e,{max:lbe.max}),d0e!==p0e&&nbe([Yme().selectionStart||0,Yme().selectionEnd||0])),Pme(p0e),resolveOnChange(Hbe.currentTarget,Hbe,ime,p0e)},mbe=function(Hbe){Vme.current=!0,sme==null||sme(Hbe)},pbe=function(Hbe){Vme.current=!1,ube(Hbe,Hbe.currentTarget.value),cme==null||cme(Hbe)},_be=function(Hbe){ube(Hbe,Hbe.target.value)},Sbe=function(Hbe){Hbe.key==="Enter"&&Sme&&Sme(Hbe),Tme==null||Tme(Hbe)},vbe=function(Hbe){jme(!0),nme==null||nme(Hbe)},kbe=function(Hbe){jme(!1),rme==null||rme(Hbe)},Rbe=function(Hbe){Pme(""),Qme(),resolveOnChange(Yme(),Hbe,ime)},Pbe=dme,Mbe;lbe.show&&(lbe.showFormatter?Mbe=lbe.showFormatter({value:Mme,count:obe,maxLength:ibe}):Mbe="".concat(obe).concat(abe?" / ".concat(ibe):""),Pbe=jsxs(Fragment,{children:[Pbe,jsx("span",{className:classNames("".concat(fme,"-data-count"),yme==null?void 0:yme.count),style:_me==null?void 0:_me.count,children:Mbe})]}));var Kbe=function(Hbe){var d0e;$me==null||$me(Hbe),(d0e=Yme())!==null&&d0e!==void 0&&d0e.style.height&&Ume(!0)},Qbe=!xme&&!pme&&!ome;return jsx(BaseInput,{ref:Gme,value:Mme,allowClear:ome,handleReset:Rbe,suffix:Pbe,prefixCls:fme,classNames:_objectSpread2$4(_objectSpread2$4({},yme),{},{affixWrapper:classNames(yme==null?void 0:yme.affixWrapper,_defineProperty$7(_defineProperty$7({},"".concat(fme,"-show-count"),pme),"".concat(fme,"-textarea-allow-clear"),ome))}),disabled:vme,focused:Dme,className:classNames(bme,hbe&&"".concat(fme,"-out-of-range")),style:_objectSpread2$4(_objectSpread2$4({},mme),zme&&!Qbe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Mbe=="string"?Mbe:void 0}},hidden:gme,readOnly:Eme,onClear:Cme,children:jsx(ResizableTextArea,{...Ome,autoSize:xme,maxLength:lme,onKeyDown:Sbe,onChange:_be,onFocus:vbe,onBlur:kbe,onCompositionStart:mbe,onCompositionEnd:pbe,className:classNames(yme==null?void 0:yme.textarea),style:_objectSpread2$4(_objectSpread2$4({},_me==null?void 0:_me.textarea),{},{resize:mme==null?void 0:mme.resize}),disabled:vme,prefixCls:fme,onResize:Kbe,ref:Jme,readOnly:Eme})})}),__rest$n=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const TextArea=reactExports.forwardRef((x_,eme)=>{var $P,tme;const{prefixCls:ame,bordered:nme=!0,size:rme,disabled:ime,status:ome,allowClear:lme,classNames:sme,rootClassName:cme,className:dme,style:ume,styles:fme,variant:pme}=x_,hme=__rest$n(x_,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:bme,direction:mme,textArea:vme}=reactExports.useContext(ConfigContext),gme=useSize(rme),yme=reactExports.useContext(DisabledContext),_me=ime??yme,{status:$me,hasFeedback:Cme,feedbackIcon:Sme}=reactExports.useContext(FormItemInputContext),Eme=getMergedStatus($me,ome),xme=reactExports.useRef(null);reactExports.useImperativeHandle(eme,()=>{var Bme;return{resizableTextArea:(Bme=xme.current)===null||Bme===void 0?void 0:Bme.resizableTextArea,focus:Dme=>{var jme,Vme;triggerFocus((Vme=(jme=xme.current)===null||jme===void 0?void 0:jme.resizableTextArea)===null||Vme===void 0?void 0:Vme.textArea,Dme)},blur:()=>{var Dme;return(Dme=xme.current)===null||Dme===void 0?void 0:Dme.blur()}}});const Tme=bme("input",ame),Ome=useCSSVarCls(Tme),[Rme,Nme,Ime]=useStyle$f(Tme,Ome),[Pme,Mme]=useVariant("textArea",pme,nme),kme=getAllowClear(lme??(vme==null?void 0:vme.allowClear));return Rme(reactExports.createElement(TextArea$1,Object.assign({autoComplete:vme==null?void 0:vme.autoComplete},hme,{style:Object.assign(Object.assign({},vme==null?void 0:vme.style),ume),styles:Object.assign(Object.assign({},vme==null?void 0:vme.styles),fme),disabled:_me,allowClear:kme,className:classNames(Ime,Ome,dme,cme,vme==null?void 0:vme.className),classNames:Object.assign(Object.assign(Object.assign({},sme),vme==null?void 0:vme.classNames),{textarea:classNames({[`${Tme}-sm`]:gme==="small",[`${Tme}-lg`]:gme==="large"},Nme,sme==null?void 0:sme.textarea,($P=vme==null?void 0:vme.classNames)===null||$P===void 0?void 0:$P.textarea),variant:classNames({[`${Tme}-${Pme}`]:Mme},getStatusClassNames(Tme,Eme)),affixWrapper:classNames(`${Tme}-textarea-affix-wrapper`,{[`${Tme}-affix-wrapper-rtl`]:mme==="rtl",[`${Tme}-affix-wrapper-sm`]:gme==="small",[`${Tme}-affix-wrapper-lg`]:gme==="large",[`${Tme}-textarea-show-count`]:x_.showCount||((tme=x_.count)===null||tme===void 0?void 0:tme.show)},Nme)}),prefixCls:Tme,suffix:Cme&&reactExports.createElement("span",{className:`${Tme}-textarea-suffix`},Sme),ref:xme})))}),Input$1=Input$2;Input$1.Group=Group$1;Input$1.Search=Search;Input$1.TextArea=TextArea;Input$1.Password=Password;Input$1.OTP=OTP;const hexReg=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,isHexString=x_=>hexReg.test(`#${x_}`),ColorHexInput=x_=>{let{prefixCls:eme,value:$P,onChange:tme}=x_;const ame=`${eme}-hex-input`,[nme,rme]=reactExports.useState(()=>$P?toHexFormat($P.toHexString()):void 0);return reactExports.useEffect(()=>{$P&&rme(toHexFormat($P.toHexString()))},[$P]),jsx(Input$1,{className:ame,value:nme,prefix:"#",onChange:ome=>{const lme=ome.target.value;rme(toHexFormat(lme)),isHexString(toHexFormat(lme,!0))&&(tme==null||tme(generateColor(lme)))},size:"small"})},ColorHsbInput=x_=>{let{prefixCls:eme,value:$P,onChange:tme}=x_;const ame=`${eme}-hsb-input`,[nme,rme]=reactExports.useState(generateColor($P||"#000"));reactExports.useEffect(()=>{$P&&rme($P)},[$P]);const ime=(ome,lme)=>{const sme=nme.toHsb();sme[lme]=lme==="h"?ome:(ome||0)/100;const cme=generateColor(sme);$P||rme(cme),tme==null||tme(cme)};return jsxs("div",{className:ame,children:[jsx(ColorSteppers,{max:360,min:0,value:Number(nme.toHsb().h),prefixCls:eme,className:ame,formatter:ome=>getRoundNumber(ome||0).toString(),onChange:ome=>ime(Number(ome),"h")}),jsx(ColorSteppers,{max:100,min:0,value:Number(nme.toHsb().s)*100,prefixCls:eme,className:ame,formatter:ome=>`${getRoundNumber(ome||0)}%`,onChange:ome=>ime(Number(ome),"s")}),jsx(ColorSteppers,{max:100,min:0,value:Number(nme.toHsb().b)*100,prefixCls:eme,className:ame,formatter:ome=>`${getRoundNumber(ome||0)}%`,onChange:ome=>ime(Number(ome),"b")})]})},ColorRgbInput=x_=>{let{prefixCls:eme,value:$P,onChange:tme}=x_;const ame=`${eme}-rgb-input`,[nme,rme]=reactExports.useState(generateColor($P||"#000"));reactExports.useEffect(()=>{$P&&rme($P)},[$P]);const ime=(ome,lme)=>{const sme=nme.toRgb();sme[lme]=ome||0;const cme=generateColor(sme);$P||rme(cme),tme==null||tme(cme)};return jsxs("div",{className:ame,children:[jsx(ColorSteppers,{max:255,min:0,value:Number(nme.toRgb().r),prefixCls:eme,className:ame,onChange:ome=>ime(Number(ome),"r")}),jsx(ColorSteppers,{max:255,min:0,value:Number(nme.toRgb().g),prefixCls:eme,className:ame,onChange:ome=>ime(Number(ome),"g")}),jsx(ColorSteppers,{max:255,min:0,value:Number(nme.toRgb().b),prefixCls:eme,className:ame,onChange:ome=>ime(Number(ome),"b")})]})},selectOptions=[ColorFormat.hex,ColorFormat.hsb,ColorFormat.rgb].map(x_=>({value:x_,label:x_.toLocaleUpperCase()})),ColorInput=x_=>{const{prefixCls:eme,format:$P,value:tme,disabledAlpha:ame,onFormatChange:nme,onChange:rme,disabledFormat:ime}=x_,[ome,lme]=useMergedState(ColorFormat.hex,{value:$P,onChange:nme}),sme=`${eme}-input`,cme=ume=>{lme(ume)},dme=reactExports.useMemo(()=>{const ume={value:tme,prefixCls:eme,onChange:rme};switch(ome){case ColorFormat.hsb:return jsx(ColorHsbInput,{...Object.assign({},ume)});case ColorFormat.rgb:return jsx(ColorRgbInput,{...Object.assign({},ume)});default:return jsx(ColorHexInput,{...Object.assign({},ume)})}},[ome,eme,tme,rme]);return jsxs("div",{className:`${sme}-container`,children:[!ime&&jsx(Select$1,{value:ome,variant:"borderless",getPopupContainer:ume=>ume,popupMatchSelectWidth:68,placement:"bottomRight",onChange:cme,className:`${eme}-format-select`,size:"small",options:selectOptions}),jsx("div",{className:sme,children:dme}),!ame&&jsx(ColorAlphaInput,{prefixCls:eme,value:tme,onChange:rme})]})};function getOffset$2(x_,eme,$P){return(x_-eme)/($P-eme)}function getDirectionStyle(x_,eme,$P,tme){var ame=getOffset$2(eme,$P,tme),nme={};switch(x_){case"rtl":nme.right="".concat(ame*100,"%"),nme.transform="translateX(50%)";break;case"btt":nme.bottom="".concat(ame*100,"%"),nme.transform="translateY(50%)";break;case"ttb":nme.top="".concat(ame*100,"%"),nme.transform="translateY(-50%)";break;default:nme.left="".concat(ame*100,"%"),nme.transform="translateX(-50%)";break}return nme}function getIndex(x_,eme){return Array.isArray(x_)?x_[eme]:x_}var SliderContext=reactExports.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),UnstableContext=reactExports.createContext({}),_excluded$c=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Handle=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.value,ame=x_.valueIndex,nme=x_.onStartMove,rme=x_.onDelete,ime=x_.style,ome=x_.render,lme=x_.dragging,sme=x_.draggingDelete,cme=x_.onOffsetChange,dme=x_.onChangeComplete,ume=x_.onFocus,fme=x_.onMouseEnter,pme=_objectWithoutProperties$6(x_,_excluded$c),hme=reactExports.useContext(SliderContext),bme=hme.min,mme=hme.max,vme=hme.direction,gme=hme.disabled,yme=hme.keyboard,_me=hme.range,$me=hme.tabIndex,Cme=hme.ariaLabelForHandle,Sme=hme.ariaLabelledByForHandle,Eme=hme.ariaValueTextFormatterForHandle,xme=hme.styles,Tme=hme.classNames,Ome="".concat($P,"-handle"),Rme=function(Wme){gme||nme(Wme,ame)},Nme=function(Wme){ume==null||ume(Wme,ame)},Ime=function(Wme){fme(Wme,ame)},Pme=function(Wme){if(!gme&&yme){var Lme=null;switch(Wme.which||Wme.keyCode){case KeyCode.LEFT:Lme=vme==="ltr"||vme==="btt"?-1:1;break;case KeyCode.RIGHT:Lme=vme==="ltr"||vme==="btt"?1:-1;break;case KeyCode.UP:Lme=vme!=="ttb"?1:-1;break;case KeyCode.DOWN:Lme=vme!=="ttb"?-1:1;break;case KeyCode.HOME:Lme="min";break;case KeyCode.END:Lme="max";break;case KeyCode.PAGE_UP:Lme=2;break;case KeyCode.PAGE_DOWN:Lme=-2;break;case KeyCode.BACKSPACE:case KeyCode.DELETE:rme(ame);break}Lme!==null&&(Wme.preventDefault(),cme(Lme,ame))}},Mme=function(Wme){switch(Wme.which||Wme.keyCode){case KeyCode.LEFT:case KeyCode.RIGHT:case KeyCode.UP:case KeyCode.DOWN:case KeyCode.HOME:case KeyCode.END:case KeyCode.PAGE_UP:case KeyCode.PAGE_DOWN:dme==null||dme();break}},kme=getDirectionStyle(vme,tme,bme,mme),Bme={};if(ame!==null){var Dme;Bme={tabIndex:gme?null:getIndex($me,ame),role:"slider","aria-valuemin":bme,"aria-valuemax":mme,"aria-valuenow":tme,"aria-disabled":gme,"aria-label":getIndex(Cme,ame),"aria-labelledby":getIndex(Sme,ame),"aria-valuetext":(Dme=getIndex(Eme,ame))===null||Dme===void 0?void 0:Dme(tme),"aria-orientation":vme==="ltr"||vme==="rtl"?"horizontal":"vertical",onMouseDown:Rme,onTouchStart:Rme,onFocus:Nme,onMouseEnter:Ime,onKeyDown:Pme,onKeyUp:Mme}}var jme=reactExports.createElement("div",_extends$4C({ref:eme,className:classNames(Ome,_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(Ome,"-").concat(ame+1),ame!==null&&_me),"".concat(Ome,"-dragging"),lme),"".concat(Ome,"-dragging-delete"),sme),Tme.handle),style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},kme),ime),xme.handle)},Bme,pme));return ome&&(jme=ome(jme,{index:ame,prefixCls:$P,value:tme,dragging:lme,draggingDelete:sme})),jme}),_excluded$b=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Handles=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=x_.style,ame=x_.onStartMove,nme=x_.onOffsetChange,rme=x_.values,ime=x_.handleRender,ome=x_.activeHandleRender,lme=x_.draggingIndex,sme=x_.draggingDelete,cme=x_.onFocus,dme=_objectWithoutProperties$6(x_,_excluded$b),ume=reactExports.useRef({}),fme=reactExports.useState(!1),pme=_slicedToArray$2(fme,2),hme=pme[0],bme=pme[1],mme=reactExports.useState(-1),vme=_slicedToArray$2(mme,2),gme=vme[0],yme=vme[1],_me=function(xme){yme(xme),bme(!0)},$me=function(xme,Tme){_me(Tme),cme==null||cme(xme)},Cme=function(xme,Tme){_me(Tme)};reactExports.useImperativeHandle(eme,function(){return{focus:function(xme){var Tme;(Tme=ume.current[xme])===null||Tme===void 0||Tme.focus()},hideHelp:function(){reactDomExports.flushSync(function(){bme(!1)})}}});var Sme=_objectSpread2$4({prefixCls:$P,onStartMove:ame,onOffsetChange:nme,render:ime,onFocus:$me,onMouseEnter:Cme},dme);return reactExports.createElement(reactExports.Fragment,null,rme.map(function(Eme,xme){var Tme=lme===xme;return reactExports.createElement(Handle,_extends$4C({ref:function(Rme){Rme?ume.current[xme]=Rme:delete ume.current[xme]},dragging:Tme,draggingDelete:Tme&&sme,style:getIndex(tme,xme),key:xme,value:Eme,valueIndex:xme},Sme))}),ome&&hme&&reactExports.createElement(Handle,_extends$4C({key:"a11y"},Sme,{value:rme[gme],valueIndex:null,dragging:lme!==-1,draggingDelete:sme,render:ome,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Mark=function(eme){var $P=eme.prefixCls,tme=eme.style,ame=eme.children,nme=eme.value,rme=eme.onClick,ime=reactExports.useContext(SliderContext),ome=ime.min,lme=ime.max,sme=ime.direction,cme=ime.includedStart,dme=ime.includedEnd,ume=ime.included,fme="".concat($P,"-text"),pme=getDirectionStyle(sme,nme,ome,lme);return reactExports.createElement("span",{className:classNames(fme,_defineProperty$7({},"".concat(fme,"-active"),ume&&cme<=nme&&nme<=dme)),style:_objectSpread2$4(_objectSpread2$4({},pme),tme),onMouseDown:function(bme){bme.stopPropagation()},onClick:function(){rme(nme)}},ame)},Marks=function(eme){var $P=eme.prefixCls,tme=eme.marks,ame=eme.onClick,nme="".concat($P,"-mark");return tme.length?reactExports.createElement("div",{className:nme},tme.map(function(rme){var ime=rme.value,ome=rme.style,lme=rme.label;return reactExports.createElement(Mark,{key:ime,prefixCls:nme,style:ome,value:ime,onClick:ame},lme)})):null},Dot=function(eme){var $P=eme.prefixCls,tme=eme.value,ame=eme.style,nme=eme.activeStyle,rme=reactExports.useContext(SliderContext),ime=rme.min,ome=rme.max,lme=rme.direction,sme=rme.included,cme=rme.includedStart,dme=rme.includedEnd,ume="".concat($P,"-dot"),fme=sme&&cme<=tme&&tme<=dme,pme=_objectSpread2$4(_objectSpread2$4({},getDirectionStyle(lme,tme,ime,ome)),typeof ame=="function"?ame(tme):ame);return fme&&(pme=_objectSpread2$4(_objectSpread2$4({},pme),typeof nme=="function"?nme(tme):nme)),reactExports.createElement("span",{className:classNames(ume,_defineProperty$7({},"".concat(ume,"-active"),fme)),style:pme})},Steps$2=function(eme){var $P=eme.prefixCls,tme=eme.marks,ame=eme.dots,nme=eme.style,rme=eme.activeStyle,ime=reactExports.useContext(SliderContext),ome=ime.min,lme=ime.max,sme=ime.step,cme=reactExports.useMemo(function(){var dme=new Set;if(tme.forEach(function(fme){dme.add(fme.value)}),ame&&sme!==null)for(var ume=ome;ume<=lme;)dme.add(ume),ume+=sme;return Array.from(dme)},[ome,lme,sme,ame,tme]);return reactExports.createElement("div",{className:"".concat($P,"-step")},cme.map(function(dme){return reactExports.createElement(Dot,{prefixCls:$P,key:dme,value:dme,style:nme,activeStyle:rme})}))},Track=function(eme){var $P=eme.prefixCls,tme=eme.style,ame=eme.start,nme=eme.end,rme=eme.index,ime=eme.onStartMove,ome=eme.replaceCls,lme=reactExports.useContext(SliderContext),sme=lme.direction,cme=lme.min,dme=lme.max,ume=lme.disabled,fme=lme.range,pme=lme.classNames,hme="".concat($P,"-track"),bme=getOffset$2(ame,cme,dme),mme=getOffset$2(nme,cme,dme),vme=function($me){!ume&&ime&&ime($me,-1)},gme={};switch(sme){case"rtl":gme.right="".concat(bme*100,"%"),gme.width="".concat(mme*100-bme*100,"%");break;case"btt":gme.bottom="".concat(bme*100,"%"),gme.height="".concat(mme*100-bme*100,"%");break;case"ttb":gme.top="".concat(bme*100,"%"),gme.height="".concat(mme*100-bme*100,"%");break;default:gme.left="".concat(bme*100,"%"),gme.width="".concat(mme*100-bme*100,"%")}var yme=ome||classNames(hme,_defineProperty$7(_defineProperty$7({},"".concat(hme,"-").concat(rme+1),rme!==null&&fme),"".concat($P,"-track-draggable"),ime),pme.track);return reactExports.createElement("div",{className:yme,style:_objectSpread2$4(_objectSpread2$4({},gme),tme),onMouseDown:vme,onTouchStart:vme})},Tracks=function(eme){var $P=eme.prefixCls,tme=eme.style,ame=eme.values,nme=eme.startPoint,rme=eme.onStartMove,ime=reactExports.useContext(SliderContext),ome=ime.included,lme=ime.range,sme=ime.min,cme=ime.styles,dme=ime.classNames,ume=reactExports.useMemo(function(){if(!lme){if(ame.length===0)return[];var pme=nme??sme,hme=ame[0];return[{start:Math.min(pme,hme),end:Math.max(pme,hme)}]}for(var bme=[],mme=0;mme<ame.length-1;mme+=1)bme.push({start:ame[mme],end:ame[mme+1]});return bme},[ame,lme,nme,sme]);if(!ome)return null;var fme=dme.tracks||cme.tracks?reactExports.createElement(Track,{index:null,prefixCls:$P,start:ume[0].start,end:ume[ume.length-1].end,replaceCls:classNames(dme.tracks,"".concat($P,"-tracks")),style:cme.tracks}):null;return reactExports.createElement(reactExports.Fragment,null,fme,ume.map(function(pme,hme){var bme=pme.start,mme=pme.end;return reactExports.createElement(Track,{index:hme,prefixCls:$P,style:_objectSpread2$4(_objectSpread2$4({},getIndex(tme,hme)),cme.track),start:bme,end:mme,key:hme,onStartMove:rme})}))},REMOVE_DIST=130;function getPosition(x_){var eme="targetTouches"in x_?x_.targetTouches[0]:x_;return{pageX:eme.pageX,pageY:eme.pageY}}function useDrag(x_,eme,$P,tme,ame,nme,rme,ime,ome,lme,sme){var cme=reactExports.useState(null),dme=_slicedToArray$2(cme,2),ume=dme[0],fme=dme[1],pme=reactExports.useState(-1),hme=_slicedToArray$2(pme,2),bme=hme[0],mme=hme[1],vme=reactExports.useState(!1),gme=_slicedToArray$2(vme,2),yme=gme[0],_me=gme[1],$me=reactExports.useState($P),Cme=_slicedToArray$2($me,2),Sme=Cme[0],Eme=Cme[1],xme=reactExports.useState($P),Tme=_slicedToArray$2(xme,2),Ome=Tme[0],Rme=Tme[1],Nme=reactExports.useRef(null),Ime=reactExports.useRef(null),Pme=reactExports.useRef(null),Mme=reactExports.useContext(UnstableContext),kme=Mme.onDragStart,Bme=Mme.onDragChange;useLayoutEffect$1(function(){bme===-1&&Eme($P)},[$P,bme]),reactExports.useEffect(function(){return function(){document.removeEventListener("mousemove",Nme.current),document.removeEventListener("mouseup",Ime.current),Pme.current&&(Pme.current.removeEventListener("touchmove",Nme.current),Pme.current.removeEventListener("touchend",Ime.current))}},[]);var Dme=function(zme,Ume,Gme){Ume!==void 0&&fme(Ume),Eme(zme);var Jme=zme;Gme&&(Jme=zme.filter(function(Yme,Qme){return Qme!==bme})),rme(Jme),Bme&&Bme({rawValues:zme,deleteIndex:Gme?bme:-1,draggingIndex:bme,draggingValue:Ume})},jme=useEvent(function(Lme,zme,Ume){if(Lme===-1){var Gme=Ome[0],Jme=Ome[Ome.length-1],Yme=tme-Gme,Qme=ame-Jme,Xme=zme*(ame-tme);Xme=Math.max(Xme,Yme),Xme=Math.min(Xme,Qme);var Kme=nme(Gme+Xme);Xme=Kme-Gme;var Zme=Ome.map(function(abe){return abe+Xme});Dme(Zme)}else{var nbe=(ame-tme)*zme,lbe=_toConsumableArray$1(Sme);lbe[Lme]=Ome[Lme];var ibe=ome(lbe,nbe,Lme,"dist");Dme(ibe.values,ibe.value,Ume)}}),Vme=function(zme,Ume,Gme){zme.stopPropagation();var Jme=Gme||$P,Yme=Jme[Ume];mme(Ume),fme(Yme),Rme(Jme),Eme(Jme),_me(!1);var Qme=getPosition(zme),Xme=Qme.pageX,Kme=Qme.pageY,Zme=!1;kme&&kme({rawValues:Jme,draggingIndex:Ume,draggingValue:Yme});var nbe=function(abe){abe.preventDefault();var obe=getPosition(abe),hbe=obe.pageX,ube=obe.pageY,mbe=hbe-Xme,pbe=ube-Kme,_be=x_.current.getBoundingClientRect(),Sbe=_be.width,vbe=_be.height,kbe,Rbe;switch(eme){case"btt":kbe=-pbe/vbe,Rbe=mbe;break;case"ttb":kbe=pbe/vbe,Rbe=mbe;break;case"rtl":kbe=-mbe/Sbe,Rbe=pbe;break;default:kbe=mbe/Sbe,Rbe=pbe}Zme=lme?Math.abs(Rbe)>REMOVE_DIST&&sme<Sme.length:!1,_me(Zme),jme(Ume,kbe,Zme)},lbe=function ibe(abe){abe.preventDefault(),document.removeEventListener("mouseup",ibe),document.removeEventListener("mousemove",nbe),Pme.current&&(Pme.current.removeEventListener("touchmove",Nme.current),Pme.current.removeEventListener("touchend",Ime.current)),Nme.current=null,Ime.current=null,Pme.current=null,ime(Zme),mme(-1),_me(!1)};document.addEventListener("mouseup",lbe),document.addEventListener("mousemove",nbe),zme.currentTarget.addEventListener("touchend",lbe),zme.currentTarget.addEventListener("touchmove",nbe),Nme.current=nbe,Ime.current=lbe,Pme.current=zme.currentTarget},Wme=reactExports.useMemo(function(){var Lme=_toConsumableArray$1($P).sort(function(Yme,Qme){return Yme-Qme}),zme=_toConsumableArray$1(Sme).sort(function(Yme,Qme){return Yme-Qme}),Ume={};zme.forEach(function(Yme){Ume[Yme]=(Ume[Yme]||0)+1}),Lme.forEach(function(Yme){Ume[Yme]=(Ume[Yme]||0)-1});var Gme=lme?1:0,Jme=Object.values(Ume).reduce(function(Yme,Qme){return Yme+Math.abs(Qme)},0);return Jme<=Gme?Sme:$P},[$P,Sme,lme]);return[bme,ume,yme,Wme,Vme]}function useOffset(x_,eme,$P,tme,ame,nme){var rme=reactExports.useCallback(function(ume){return Math.max(x_,Math.min(eme,ume))},[x_,eme]),ime=reactExports.useCallback(function(ume){if($P!==null){var fme=x_+Math.round((rme(ume)-x_)/$P)*$P,pme=function(vme){return(String(vme).split(".")[1]||"").length},hme=Math.max(pme($P),pme(eme),pme(x_)),bme=Number(fme.toFixed(hme));return x_<=bme&&bme<=eme?bme:null}return null},[$P,x_,eme,rme]),ome=reactExports.useCallback(function(ume){var fme=rme(ume),pme=tme.map(function(mme){return mme.value});$P!==null&&pme.push(ime(ume)),pme.push(x_,eme);var hme=pme[0],bme=eme-x_;return pme.forEach(function(mme){var vme=Math.abs(fme-mme);vme<=bme&&(hme=mme,bme=vme)}),hme},[x_,eme,tme,$P,rme,ime]),lme=function ume(fme,pme,hme){var bme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof pme=="number"){var mme,vme=fme[hme],gme=vme+pme,yme=[];tme.forEach(function(Eme){yme.push(Eme.value)}),yme.push(x_,eme),yme.push(ime(vme));var _me=pme>0?1:-1;bme==="unit"?yme.push(ime(vme+_me*$P)):yme.push(ime(gme)),yme=yme.filter(function(Eme){return Eme!==null}).filter(function(Eme){return pme<0?Eme<=vme:Eme>=vme}),bme==="unit"&&(yme=yme.filter(function(Eme){return Eme!==vme}));var $me=bme==="unit"?vme:gme;mme=yme[0];var Cme=Math.abs(mme-$me);if(yme.forEach(function(Eme){var xme=Math.abs(Eme-$me);xme<Cme&&(mme=Eme,Cme=xme)}),mme===void 0)return pme<0?x_:eme;if(bme==="dist")return mme;if(Math.abs(pme)>1){var Sme=_toConsumableArray$1(fme);return Sme[hme]=mme,ume(Sme,pme-_me,hme,bme)}return mme}else{if(pme==="min")return x_;if(pme==="max")return eme}},sme=function(fme,pme,hme){var bme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",mme=fme[hme],vme=lme(fme,pme,hme,bme);return{value:vme,changed:vme!==mme}},cme=function(fme){return nme===null&&fme===0||typeof nme=="number"&&fme<nme},dme=function(fme,pme,hme){var bme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",mme=fme.map(ome),vme=mme[hme],gme=lme(mme,pme,hme,bme);if(mme[hme]=gme,ame===!1){var yme=nme||0;hme>0&&mme[hme-1]!==vme&&(mme[hme]=Math.max(mme[hme],mme[hme-1]+yme)),hme<mme.length-1&&mme[hme+1]!==vme&&(mme[hme]=Math.min(mme[hme],mme[hme+1]-yme))}else if(typeof nme=="number"||nme===null){for(var _me=hme+1;_me<mme.length;_me+=1)for(var $me=!0;cme(mme[_me]-mme[_me-1])&&$me;){var Cme=sme(mme,1,_me);mme[_me]=Cme.value,$me=Cme.changed}for(var Sme=hme;Sme>0;Sme-=1)for(var Eme=!0;cme(mme[Sme]-mme[Sme-1])&&Eme;){var xme=sme(mme,-1,Sme-1);mme[Sme-1]=xme.value,Eme=xme.changed}for(var Tme=mme.length-1;Tme>0;Tme-=1)for(var Ome=!0;cme(mme[Tme]-mme[Tme-1])&&Ome;){var Rme=sme(mme,-1,Tme-1);mme[Tme-1]=Rme.value,Ome=Rme.changed}for(var Nme=0;Nme<mme.length-1;Nme+=1)for(var Ime=!0;cme(mme[Nme+1]-mme[Nme])&&Ime;){var Pme=sme(mme,1,Nme+1);mme[Nme+1]=Pme.value,Ime=Pme.changed}}return{value:mme[hme],values:mme}};return[ome,dme]}function useRange(x_){return reactExports.useMemo(function(){if(x_===!0||!x_)return[!!x_,!1,!1,0];var eme=x_.editable,$P=x_.draggableTrack,tme=x_.minCount,ame=x_.maxCount;return[!0,eme,!eme&&$P,tme||0,ame]},[x_])}var Slider$2=reactExports.forwardRef(function(x_,eme){var $P=x_.prefixCls,tme=$P===void 0?"rc-slider":$P,ame=x_.className,nme=x_.style,rme=x_.classNames,ime=x_.styles,ome=x_.id,lme=x_.disabled,sme=lme===void 0?!1:lme,cme=x_.keyboard,dme=cme===void 0?!0:cme,ume=x_.autoFocus,fme=x_.onFocus,pme=x_.onBlur,hme=x_.min,bme=hme===void 0?0:hme,mme=x_.max,vme=mme===void 0?100:mme,gme=x_.step,yme=gme===void 0?1:gme,_me=x_.value,$me=x_.defaultValue,Cme=x_.range,Sme=x_.count,Eme=x_.onChange,xme=x_.onBeforeChange,Tme=x_.onAfterChange,Ome=x_.onChangeComplete,Rme=x_.allowCross,Nme=Rme===void 0?!0:Rme,Ime=x_.pushable,Pme=Ime===void 0?!1:Ime,Mme=x_.reverse,kme=x_.vertical,Bme=x_.included,Dme=Bme===void 0?!0:Bme,jme=x_.startPoint,Vme=x_.trackStyle,Wme=x_.handleStyle,Lme=x_.railStyle,zme=x_.dotStyle,Ume=x_.activeDotStyle,Gme=x_.marks,Jme=x_.dots,Yme=x_.handleRender,Qme=x_.activeHandleRender,Xme=x_.track,Kme=x_.tabIndex,Zme=Kme===void 0?0:Kme,nbe=x_.ariaLabelForHandle,lbe=x_.ariaLabelledByForHandle,ibe=x_.ariaValueTextFormatterForHandle,abe=reactExports.useRef(null),obe=reactExports.useRef(null),hbe=reactExports.useMemo(function(){return kme?Mme?"ttb":"btt":Mme?"rtl":"ltr"},[Mme,kme]),ube=useRange(Cme),mbe=_slicedToArray$2(ube,5),pbe=mbe[0],_be=mbe[1],Sbe=mbe[2],vbe=mbe[3],kbe=mbe[4],Rbe=reactExports.useMemo(function(){return isFinite(bme)?bme:0},[bme]),Pbe=reactExports.useMemo(function(){return isFinite(vme)?vme:100},[vme]),Mbe=reactExports.useMemo(function(){return yme!==null&&yme<=0?1:yme},[yme]),Kbe=reactExports.useMemo(function(){return typeof Pme=="boolean"?Pme?Mbe:!1:Pme>=0?Pme:!1},[Pme,Mbe]),Qbe=reactExports.useMemo(function(){return Object.keys(Gme||{}).map(function(Vbe){var Ube=Gme[Vbe],x0e={value:Number(Vbe)};return Ube&&_typeof$4(Ube)==="object"&&!reactExports.isValidElement(Ube)&&("label"in Ube||"style"in Ube)?(x0e.style=Ube.style,x0e.label=Ube.label):x0e.label=Ube,x0e}).filter(function(Vbe){var Ube=Vbe.label;return Ube||typeof Ube=="number"}).sort(function(Vbe,Ube){return Vbe.value-Ube.value})},[Gme]),Gbe=useOffset(Rbe,Pbe,Mbe,Qbe,Nme,Kbe),Hbe=_slicedToArray$2(Gbe,2),d0e=Hbe[0],p0e=Hbe[1],S0e=useMergedState($me,{value:_me}),P0e=_slicedToArray$2(S0e,2),e0e=P0e[0],_0e=P0e[1],m0e=reactExports.useMemo(function(){var Vbe=e0e==null?[]:Array.isArray(e0e)?e0e:[e0e],Ube=_slicedToArray$2(Vbe,1),x0e=Ube[0],I0e=x0e===void 0?Rbe:x0e,j0e=e0e===null?[]:[I0e];if(pbe){if(j0e=_toConsumableArray$1(Vbe),Sme||e0e===void 0){var O0e=Sme>=0?Sme+1:2;for(j0e=j0e.slice(0,O0e);j0e.length<O0e;){var G0e;j0e.push((G0e=j0e[j0e.length-1])!==null&&G0e!==void 0?G0e:Rbe)}}j0e.sort(function(W0e,i1e){return W0e-i1e})}return j0e.forEach(function(W0e,i1e){j0e[i1e]=d0e(W0e)}),j0e},[e0e,pbe,Rbe,Sme,d0e]),Ybe=function(Ube){return pbe?Ube:Ube[0]},Jbe=useEvent(function(Vbe){var Ube=_toConsumableArray$1(Vbe).sort(function(x0e,I0e){return x0e-I0e});Eme&&!isEqual$2(Ube,m0e,!0)&&Eme(Ybe(Ube)),_0e(Ube)}),c0e=useEvent(function(Vbe){Vbe&&abe.current.hideHelp();var Ube=Ybe(m0e);Tme==null||Tme(Ube),warningOnce(!Tme,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),Ome==null||Ome(Ube)}),zbe=function(Ube){if(!(sme||!_be||m0e.length<=vbe)){var x0e=_toConsumableArray$1(m0e);x0e.splice(Ube,1),xme==null||xme(Ybe(x0e)),Jbe(x0e);var I0e=Math.max(0,Ube-1);abe.current.hideHelp(),abe.current.focus(I0e)}},R0e=useDrag(obe,hbe,m0e,Rbe,Pbe,d0e,Jbe,c0e,p0e,_be,vbe),$0e=_slicedToArray$2(R0e,5),u0e=$0e[0],t0e=$0e[1],v0e=$0e[2],L0e=$0e[3],Wbe=$0e[4],a0e=function(Ube,x0e){if(!sme){var I0e=_toConsumableArray$1(m0e),j0e=0,O0e=0,G0e=Pbe-Rbe;m0e.forEach(function(Cbe,fbe){var ybe=Math.abs(Ube-Cbe);ybe<=G0e&&(G0e=ybe,j0e=fbe),Cbe<Ube&&(O0e=fbe)});var W0e=j0e;_be&&G0e!==0&&(!kbe||m0e.length<kbe)?(I0e.splice(O0e+1,0,Ube),W0e=O0e+1):I0e[j0e]=Ube,pbe&&!m0e.length&&Sme===void 0&&I0e.push(Ube);var i1e=Ybe(I0e);if(xme==null||xme(i1e),Jbe(I0e),x0e){var t1e,Ebe;(t1e=document.activeElement)===null||t1e===void 0||(Ebe=t1e.blur)===null||Ebe===void 0||Ebe.call(t1e),abe.current.focus(W0e),Wbe(x0e,W0e,I0e)}else Tme==null||Tme(i1e),warningOnce(!Tme,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),Ome==null||Ome(i1e)}},g0e=function(Ube){Ube.preventDefault();var x0e=obe.current.getBoundingClientRect(),I0e=x0e.width,j0e=x0e.height,O0e=x0e.left,G0e=x0e.top,W0e=x0e.bottom,i1e=x0e.right,t1e=Ube.clientX,Ebe=Ube.clientY,Cbe;switch(hbe){case"btt":Cbe=(W0e-Ebe)/j0e;break;case"ttb":Cbe=(Ebe-G0e)/j0e;break;case"rtl":Cbe=(i1e-t1e)/I0e;break;default:Cbe=(t1e-O0e)/I0e}var fbe=Rbe+Cbe*(Pbe-Rbe);a0e(d0e(fbe),Ube)},b0e=reactExports.useState(null),y0e=_slicedToArray$2(b0e,2),A0e=y0e[0],V0e=y0e[1],w0e=function(Ube,x0e){if(!sme){var I0e=p0e(m0e,Ube,x0e);xme==null||xme(Ybe(m0e)),Jbe(I0e.values),V0e(I0e.value)}};reactExports.useEffect(function(){if(A0e!==null){var Vbe=m0e.indexOf(A0e);Vbe>=0&&abe.current.focus(Vbe)}V0e(null)},[A0e]);var T0e=reactExports.useMemo(function(){return Sbe&&Mbe===null?!1:Sbe},[Sbe,Mbe]),$be=useEvent(function(Vbe,Ube){Wbe(Vbe,Ube),xme==null||xme(Ybe(m0e))}),Ibe=u0e!==-1;reactExports.useEffect(function(){if(!Ibe){var Vbe=m0e.lastIndexOf(t0e);abe.current.focus(Vbe)}},[Ibe]);var n0e=reactExports.useMemo(function(){return _toConsumableArray$1(L0e).sort(function(Vbe,Ube){return Vbe-Ube})},[L0e]),f0e=reactExports.useMemo(function(){return pbe?[n0e[0],n0e[n0e.length-1]]:[Rbe,n0e[0]]},[n0e,pbe,Rbe]),z0e=_slicedToArray$2(f0e,2),o0e=z0e[0],gbe=z0e[1];reactExports.useImperativeHandle(eme,function(){return{focus:function(){abe.current.focus(0)},blur:function(){var Ube,x0e=document,I0e=x0e.activeElement;(Ube=obe.current)!==null&&Ube!==void 0&&Ube.contains(I0e)&&(I0e==null||I0e.blur())}}}),reactExports.useEffect(function(){ume&&abe.current.focus(0)},[]);var Tbe=reactExports.useMemo(function(){return{min:Rbe,max:Pbe,direction:hbe,disabled:sme,keyboard:dme,step:Mbe,included:Dme,includedStart:o0e,includedEnd:gbe,range:pbe,tabIndex:Zme,ariaLabelForHandle:nbe,ariaLabelledByForHandle:lbe,ariaValueTextFormatterForHandle:ibe,styles:ime||{},classNames:rme||{}}},[Rbe,Pbe,hbe,sme,dme,Mbe,Dme,o0e,gbe,pbe,Zme,nbe,lbe,ibe,ime,rme]);return reactExports.createElement(SliderContext.Provider,{value:Tbe},reactExports.createElement("div",{ref:obe,className:classNames(tme,ame,_defineProperty$7(_defineProperty$7(_defineProperty$7(_defineProperty$7({},"".concat(tme,"-disabled"),sme),"".concat(tme,"-vertical"),kme),"".concat(tme,"-horizontal"),!kme),"".concat(tme,"-with-marks"),Qbe.length)),style:nme,onMouseDown:g0e,id:ome},reactExports.createElement("div",{className:classNames("".concat(tme,"-rail"),rme==null?void 0:rme.rail),style:_objectSpread2$4(_objectSpread2$4({},Lme),ime==null?void 0:ime.rail)}),Xme!==!1&&reactExports.createElement(Tracks,{prefixCls:tme,style:Vme,values:m0e,startPoint:jme,onStartMove:T0e?$be:void 0}),reactExports.createElement(Steps$2,{prefixCls:tme,marks:Qbe,dots:Jme,style:zme,activeStyle:Ume}),reactExports.createElement(Handles,{ref:abe,prefixCls:tme,style:Wme,values:L0e,draggingIndex:u0e,draggingDelete:v0e,onStartMove:$be,onOffsetChange:w0e,onFocus:fme,onBlur:pme,handleRender:Yme,activeHandleRender:Qme,onChangeComplete:c0e,onDelete:_be?zbe:void 0}),reactExports.createElement(Marks,{prefixCls:tme,marks:Qbe,onClick:a0e})))});const SliderTooltip=reactExports.forwardRef((x_,eme)=>{const{open:$P,draggingDelete:tme}=x_,ame=reactExports.useRef(null),nme=$P&&!tme,rme=reactExports.useRef(null);function ime(){wrapperRaf.cancel(rme.current),rme.current=null}function ome(){rme.current=wrapperRaf(()=>{var lme;(lme=ame.current)===null||lme===void 0||lme.forceAlign(),rme.current=null})}return reactExports.useEffect(()=>(nme?ome():ime(),ime),[nme,x_.title]),reactExports.createElement(Tooltip$2,Object.assign({ref:composeRef(ame,eme)},x_,{open:nme}))}),genBaseStyle=x_=>{const{componentCls:eme,antCls:$P,controlSize:tme,dotSize:ame,marginFull:nme,marginPart:rme,colorFillContentHover:ime,handleColorDisabled:ome,calc:lme,handleSize:sme,handleSizeHover:cme,handleActiveColor:dme,handleActiveOutlineColor:ume,handleLineWidth:fme,handleLineWidthHover:pme,motionDurationMid:hme}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",height:tme,margin:`${unit$1(rme)} ${unit$1(nme)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit$1(nme)} ${unit$1(rme)}`},[`${eme}-rail`]:{position:"absolute",backgroundColor:x_.railBg,borderRadius:x_.borderRadiusXS,transition:`background-color ${hme}`},[`${eme}-track,${eme}-tracks`]:{position:"absolute",transition:`background-color ${hme}`},[`${eme}-track`]:{backgroundColor:x_.trackBg,borderRadius:x_.borderRadiusXS},[`${eme}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${eme}-rail`]:{backgroundColor:x_.railHoverBg},[`${eme}-track`]:{backgroundColor:x_.trackHoverBg},[`${eme}-dot`]:{borderColor:ime},[`${eme}-handle::after`]:{boxShadow:`0 0 0 ${unit$1(fme)} ${x_.colorPrimaryBorderHover}`},[`${eme}-dot-active`]:{borderColor:x_.dotActiveBorderColor}},[`${eme}-handle`]:{position:"absolute",width:sme,height:sme,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:lme(fme).mul(-1).equal(),insetBlockStart:lme(fme).mul(-1).equal(),width:lme(sme).add(lme(fme).mul(2)).equal(),height:lme(sme).add(lme(fme).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:sme,height:sme,backgroundColor:x_.colorBgElevated,boxShadow:`0 0 0 ${unit$1(fme)} ${x_.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${hme},
            inset-block-start ${hme},
            width ${hme},
            height ${hme},
            box-shadow ${hme},
            outline ${hme}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:lme(cme).sub(sme).div(2).add(pme).mul(-1).equal(),insetBlockStart:lme(cme).sub(sme).div(2).add(pme).mul(-1).equal(),width:lme(cme).add(lme(pme).mul(2)).equal(),height:lme(cme).add(lme(pme).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${unit$1(pme)} ${dme}`,outline:`6px solid ${ume}`,width:cme,height:cme,insetInlineStart:x_.calc(sme).sub(cme).div(2).equal(),insetBlockStart:x_.calc(sme).sub(cme).div(2).equal()}}},[`&-lock ${eme}-handle`]:{"&::before, &::after":{transition:"none"}},[`${eme}-mark`]:{position:"absolute",fontSize:x_.fontSize},[`${eme}-mark-text`]:{position:"absolute",display:"inline-block",color:x_.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:x_.colorText}},[`${eme}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${eme}-dot`]:{position:"absolute",width:ame,height:ame,backgroundColor:x_.colorBgElevated,border:`${unit$1(fme)} solid ${x_.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${x_.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:x_.dotActiveBorderColor}},[`&${eme}-disabled`]:{cursor:"not-allowed",[`${eme}-rail`]:{backgroundColor:`${x_.railBg} !important`},[`${eme}-track`]:{backgroundColor:`${x_.trackBgDisabled} !important`},[`
          ${eme}-dot
        `]:{backgroundColor:x_.colorBgElevated,borderColor:x_.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${eme}-handle::after`]:{backgroundColor:x_.colorBgElevated,cursor:"not-allowed",width:sme,height:sme,boxShadow:`0 0 0 ${unit$1(fme)} ${ome}`,insetInlineStart:0,insetBlockStart:0},[`
          ${eme}-mark-text,
          ${eme}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${$P}-tooltip-inner`]:{minWidth:"unset"}})}},genDirectionStyle=(x_,eme)=>{const{componentCls:$P,railSize:tme,handleSize:ame,dotSize:nme,marginFull:rme,calc:ime}=x_,ome=eme?"paddingBlock":"paddingInline",lme=eme?"width":"height",sme=eme?"height":"width",cme=eme?"insetBlockStart":"insetInlineStart",dme=eme?"top":"insetInlineStart",ume=ime(tme).mul(3).sub(ame).div(2).equal(),fme=ime(ame).sub(tme).div(2).equal(),pme=eme?{borderWidth:`${unit$1(fme)} 0`,transform:`translateY(${unit$1(ime(fme).mul(-1).equal())})`}:{borderWidth:`0 ${unit$1(fme)}`,transform:`translateX(${unit$1(x_.calc(fme).mul(-1).equal())})`};return{[ome]:tme,[sme]:ime(tme).mul(3).equal(),[`${$P}-rail`]:{[lme]:"100%",[sme]:tme},[`${$P}-track,${$P}-tracks`]:{[sme]:tme},[`${$P}-track-draggable`]:Object.assign({},pme),[`${$P}-handle`]:{[cme]:ume},[`${$P}-mark`]:{insetInlineStart:0,top:0,[dme]:ime(tme).mul(3).add(eme?0:rme).equal(),[lme]:"100%"},[`${$P}-step`]:{insetInlineStart:0,top:0,[dme]:tme,[lme]:"100%",[sme]:tme},[`${$P}-dot`]:{position:"absolute",[cme]:ime(tme).sub(nme).div(2).equal()}}},genHorizontalStyle$1=x_=>{const{componentCls:eme,marginPartWithMark:$P}=x_;return{[`${eme}-horizontal`]:Object.assign(Object.assign({},genDirectionStyle(x_,!0)),{[`&${eme}-with-marks`]:{marginBottom:$P}})}},genVerticalStyle$1=x_=>{const{componentCls:eme}=x_;return{[`${eme}-vertical`]:Object.assign(Object.assign({},genDirectionStyle(x_,!1)),{height:"100%"})}},prepareComponentToken$6=x_=>{const $P=x_.controlHeightLG/4,tme=x_.controlHeightSM/2,ame=x_.lineWidth+1,nme=x_.lineWidth+1*1.5,rme=x_.colorPrimary,ime=new TinyColor(rme).setAlpha(.2).toRgbString();return{controlSize:$P,railSize:4,handleSize:$P,handleSizeHover:tme,dotSize:8,handleLineWidth:ame,handleLineWidthHover:nme,railBg:x_.colorFillTertiary,railHoverBg:x_.colorFillSecondary,trackBg:x_.colorPrimaryBorder,trackHoverBg:x_.colorPrimaryBorderHover,handleColor:x_.colorPrimaryBorder,handleActiveColor:rme,handleActiveOutlineColor:ime,handleColorDisabled:new TinyColor(x_.colorTextDisabled).onBackground(x_.colorBgContainer).toHexShortString(),dotBorderColor:x_.colorBorderSecondary,dotActiveBorderColor:x_.colorPrimaryBorder,trackBgDisabled:x_.colorBgContainerDisabled}},useStyle$7=genStyleHooks("Slider",x_=>{const eme=merge$5(x_,{marginPart:x_.calc(x_.controlHeight).sub(x_.controlSize).div(2).equal(),marginFull:x_.calc(x_.controlSize).div(2).equal(),marginPartWithMark:x_.calc(x_.controlHeightLG).sub(x_.controlSize).equal()});return[genBaseStyle(eme),genHorizontalStyle$1(eme),genVerticalStyle$1(eme)]},prepareComponentToken$6),SliderInternalContext=reactExports.createContext({});function useRafLock(){const[x_,eme]=reactExports.useState(!1),$P=reactExports.useRef(),tme=()=>{wrapperRaf.cancel($P.current)},ame=nme=>{tme(),nme?eme(nme):$P.current=wrapperRaf(()=>{eme(nme)})};return reactExports.useEffect(()=>tme,[]),[x_,ame]}var __rest$m=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function getTipFormatter(x_,eme){return x_||x_===null?x_:eme||eme===null?eme:$P=>typeof $P=="number"?$P.toString():""}const Slider$1=React__default.forwardRef((x_,eme)=>{const{prefixCls:$P,range:tme,className:ame,rootClassName:nme,style:rme,disabled:ime,tooltipPrefixCls:ome,tipFormatter:lme,tooltipVisible:sme,getTooltipPopupContainer:cme,tooltipPlacement:dme,tooltip:ume={},onChangeComplete:fme}=x_,pme=__rest$m(x_,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:hme}=x_,{direction:bme,slider:mme,getPrefixCls:vme,getPopupContainer:gme}=React__default.useContext(ConfigContext),yme=React__default.useContext(DisabledContext),_me=ime??yme,{handleRender:$me,direction:Cme}=React__default.useContext(SliderInternalContext),Eme=(Cme||bme)==="rtl",[xme,Tme]=useRafLock(),[Ome,Rme]=useRafLock(),Nme=Object.assign({},ume),{open:Ime,placement:Pme,getPopupContainer:Mme,prefixCls:kme,formatter:Bme}=Nme,Dme=Ime??sme,jme=(xme||Ome)&&Dme!==!1,Vme=getTipFormatter(Bme,lme),[Wme,Lme]=useRafLock(),zme=ibe=>{fme==null||fme(ibe),Lme(!1)},Ume=(ibe,abe)=>ibe||(abe?Eme?"left":"right":"top"),Gme=vme("slider",$P),[Jme,Yme,Qme]=useStyle$7(Gme),Xme=classNames(ame,mme==null?void 0:mme.className,nme,{[`${Gme}-rtl`]:Eme,[`${Gme}-lock`]:Wme},Yme,Qme);Eme&&!pme.vertical&&(pme.reverse=!pme.reverse),React__default.useEffect(()=>{const ibe=()=>{wrapperRaf(()=>{Rme(!1)},1)};return document.addEventListener("mouseup",ibe),()=>{document.removeEventListener("mouseup",ibe)}},[]);const Kme=tme&&!Dme,Zme=$me||((ibe,abe)=>{const{index:obe}=abe,hbe=ibe.props;function ube(Sbe,vbe,kbe){var Rbe,Pbe,Mbe,Kbe;kbe&&((Pbe=(Rbe=pme)[Sbe])===null||Pbe===void 0||Pbe.call(Rbe,vbe)),(Kbe=(Mbe=hbe)[Sbe])===null||Kbe===void 0||Kbe.call(Mbe,vbe)}const mbe=Object.assign(Object.assign({},hbe),{onMouseEnter:Sbe=>{Tme(!0),ube("onMouseEnter",Sbe)},onMouseLeave:Sbe=>{Tme(!1),ube("onMouseLeave",Sbe)},onMouseDown:Sbe=>{Rme(!0),Lme(!0),ube("onMouseDown",Sbe)},onFocus:Sbe=>{var vbe;Rme(!0),(vbe=pme.onFocus)===null||vbe===void 0||vbe.call(pme,Sbe),ube("onFocus",Sbe,!0)},onBlur:Sbe=>{var vbe;Rme(!1),(vbe=pme.onBlur)===null||vbe===void 0||vbe.call(pme,Sbe),ube("onBlur",Sbe,!0)}}),pbe=React__default.cloneElement(ibe,mbe),_be=(!!Dme||jme)&&Vme!==null;return Kme?pbe:React__default.createElement(SliderTooltip,Object.assign({},Nme,{prefixCls:vme("tooltip",kme??ome),title:Vme?Vme(abe.value):"",open:_be,placement:Ume(Pme??dme,hme),key:obe,overlayClassName:`${Gme}-tooltip`,getPopupContainer:Mme||cme||gme}),pbe)}),nbe=Kme?(ibe,abe)=>{const obe=React__default.cloneElement(ibe,{style:Object.assign(Object.assign({},ibe.props.style),{visibility:"hidden"})});return React__default.createElement(SliderTooltip,Object.assign({},Nme,{prefixCls:vme("tooltip",kme??ome),title:Vme?Vme(abe.value):"",open:Vme!==null&&jme,placement:Ume(Pme??dme,hme),key:"tooltip",overlayClassName:`${Gme}-tooltip`,getPopupContainer:Mme||cme||gme,draggingDelete:abe.draggingDelete}),obe)}:void 0,lbe=Object.assign(Object.assign({},mme==null?void 0:mme.style),rme);return Jme(React__default.createElement(Slider$2,Object.assign({},pme,{step:pme.step,range:tme,className:Xme,style:lbe,disabled:_me,ref:eme,prefixCls:Gme,handleRender:Zme,activeHandleRender:nbe,onChangeComplete:zme})))});var __rest$l=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const GradientColorSlider=x_=>{const{prefixCls:eme,colors:$P,type:tme,color:ame,range:nme=!1,className:rme,activeIndex:ime,onActive:ome,onDragStart:lme,onDragChange:sme,onKeyDelete:cme}=x_,dme=__rest$l(x_,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),ume=Object.assign(Object.assign({},dme),{track:!1}),fme=reactExports.useMemo(()=>`linear-gradient(90deg, ${$P.map(_me=>`${_me.color} ${_me.percent}%`).join(", ")})`,[$P]),pme=reactExports.useMemo(()=>!ame||!tme?null:tme==="alpha"?ame.toRgbString():`hsl(${ame.toHsb().h}, 100%, 50%)`,[ame,tme]),hme=useEvent(lme),bme=useEvent(sme),mme=reactExports.useMemo(()=>({onDragStart:hme,onDragChange:bme}),[]),vme=useEvent((yme,_me)=>{const{onFocus:$me,style:Cme,className:Sme,onKeyDown:Eme}=yme.props,xme=Object.assign({},Cme);return tme==="gradient"&&(xme.background=getGradientPercentColor($P,_me.value)),reactExports.cloneElement(yme,{onFocus:Tme=>{ome==null||ome(_me.index),$me==null||$me(Tme)},style:xme,className:classNames(Sme,{[`${eme}-slider-handle-active`]:ime===_me.index}),onKeyDown:Tme=>{(Tme.key==="Delete"||Tme.key==="Backspace")&&cme&&cme(_me.index),Eme==null||Eme(Tme)}})}),gme=reactExports.useMemo(()=>({direction:"ltr",handleRender:vme}),[]);return reactExports.createElement(SliderInternalContext.Provider,{value:gme},reactExports.createElement(UnstableContext.Provider,{value:mme},reactExports.createElement(Slider$1,Object.assign({},ume,{className:classNames(rme,`${eme}-slider`),tooltip:{open:!1},range:{editable:nme,minCount:2},styles:{rail:{background:fme},handle:pme?{background:pme}:{}},classNames:{rail:`${eme}-slider-rail`,handle:`${eme}-slider-handle`}}))))},SingleColorSlider=x_=>{const{value:eme,onChange:$P,onChangeComplete:tme}=x_,ame=rme=>$P(rme[0]),nme=rme=>tme(rme[0]);return reactExports.createElement(GradientColorSlider,Object.assign({},x_,{value:[eme],onChange:ame,onChangeComplete:nme}))};function sortColors(x_){return _toConsumableArray$1(x_).sort((eme,$P)=>eme.percent-$P.percent)}const GradientColorBar=x_=>{const{prefixCls:eme,mode:$P,onChange:tme,onChangeComplete:ame,onActive:nme,activeIndex:rme,onGradientDragging:ime,colors:ome}=x_,lme=$P==="gradient",sme=reactExports.useMemo(()=>ome.map(bme=>({percent:bme.percent,color:bme.color.toRgbString()})),[ome]),cme=reactExports.useMemo(()=>sme.map(bme=>bme.percent),[sme]),dme=reactExports.useRef(sme),ume=bme=>{let{rawValues:mme,draggingIndex:vme,draggingValue:gme}=bme;if(mme.length>sme.length){const yme=getGradientPercentColor(sme,gme),_me=_toConsumableArray$1(sme);_me.splice(vme,0,{percent:gme,color:yme}),dme.current=_me}else dme.current=sme;ime(!0),tme(new AggregationColor(sortColors(dme.current)),!0)},fme=bme=>{let{deleteIndex:mme,draggingIndex:vme,draggingValue:gme}=bme,yme=_toConsumableArray$1(dme.current);mme!==-1?yme.splice(mme,1):(yme[vme]=Object.assign(Object.assign({},yme[vme]),{percent:gme}),yme=sortColors(yme)),tme(new AggregationColor(yme),!0)},pme=bme=>{const mme=_toConsumableArray$1(sme);mme.splice(bme,1);const vme=new AggregationColor(mme);tme(vme),ame(vme)},hme=bme=>{ame(new AggregationColor(sme)),rme>=bme.length&&nme(bme.length-1),ime(!1)};return lme?reactExports.createElement(GradientColorSlider,{min:0,max:100,prefixCls:eme,className:`${eme}-gradient-slider`,colors:sme,color:null,value:cme,range:!0,onChangeComplete:hme,disabled:!1,type:"gradient",activeIndex:rme,onActive:nme,onDragStart:ume,onDragChange:fme,onKeyDelete:pme}):null},GradientColorBar$1=reactExports.memo(GradientColorBar);var __rest$k=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const components={slider:SingleColorSlider},PanelPicker=()=>{const x_=reactExports.useContext(PanelPickerContext),{mode:eme,onModeChange:$P,modeOptions:tme,prefixCls:ame,allowClear:nme,value:rme,disabledAlpha:ime,onChange:ome,onClear:lme,onChangeComplete:sme,activeIndex:cme,gradientDragging:dme}=x_,ume=__rest$k(x_,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),fme=React__default.useMemo(()=>rme.cleared?[{percent:0,color:new AggregationColor("")},{percent:100,color:new AggregationColor("")}]:rme.getColors(),[rme]),pme=!rme.isGradient(),[hme,bme]=React__default.useState(rme);useLayoutEffect$1(()=>{var Rme;pme||bme((Rme=fme[cme])===null||Rme===void 0?void 0:Rme.color)},[dme,cme]);const mme=React__default.useMemo(()=>{var Rme;return pme?rme:dme?hme:(Rme=fme[cme])===null||Rme===void 0?void 0:Rme.color},[rme,cme,pme,hme,dme]),[vme,gme]=React__default.useState(mme),[yme,_me]=React__default.useState(0),$me=vme!=null&&vme.equals(mme)?mme:vme;useLayoutEffect$1(()=>{gme(mme)},[yme,mme==null?void 0:mme.toHexString()]);const Cme=(Rme,Nme)=>{let Ime=generateColor(Rme);if(rme.cleared){const Mme=Ime.toRgb();if(!Mme.r&&!Mme.g&&!Mme.b&&Nme){const{type:kme,value:Bme=0}=Nme;Ime=new AggregationColor({h:kme==="hue"?Bme:0,s:1,b:1,a:kme==="alpha"?Bme/100:1})}else Ime=genAlphaColor(Ime)}if(eme==="single")return Ime;const Pme=_toConsumableArray$1(fme);return Pme[cme]=Object.assign(Object.assign({},Pme[cme]),{color:Ime}),new AggregationColor(Pme)},Sme=(Rme,Nme,Ime)=>{const Pme=Cme(Rme,Ime);gme(Pme.isGradient()?Pme.getColors()[cme].color:Pme),ome(Pme,Nme)},Eme=(Rme,Nme)=>{sme(Cme(Rme,Nme)),_me(Ime=>Ime+1)},xme=Rme=>{ome(Cme(Rme))};let Tme=null;const Ome=tme.length>1;return(nme||Ome)&&(Tme=jsxs("div",{className:`${ame}-operation`,children:[Ome&&jsx(Segmented,{size:"small",options:tme,value:eme,onChange:$P}),jsx(ColorClear,{...Object.assign({prefixCls:ame,value:rme,onChange:Rme=>{ome(Rme),lme==null||lme()}},ume)})]})),jsxs(Fragment,{children:[Tme,jsx(GradientColorBar$1,{...Object.assign({},x_,{colors:fme})}),jsx(ColorPicker$2,{prefixCls:ame,value:$me==null?void 0:$me.toHsb(),disabledAlpha:ime,onChange:(Rme,Nme)=>{Sme(Rme,!0,Nme)},onChangeComplete:(Rme,Nme)=>{Eme(Rme,Nme)},components}),jsx(ColorInput,{...Object.assign({value:mme,onChange:xme,prefixCls:ame,disabledAlpha:ime},ume)})]})},PanelPresets=()=>{const{prefixCls:x_,value:eme,presets:$P,onChange:tme}=reactExports.useContext(PanelPresetsContext);return Array.isArray($P)?jsx(ColorPresets,{value:eme,presets:$P,prefixCls:x_,onChange:tme}):null},ColorPickerPanel=x_=>{const{prefixCls:eme,presets:$P,panelRender:tme,value:ame,onChange:nme,onClear:rme,allowClear:ime,disabledAlpha:ome,mode:lme,onModeChange:sme,modeOptions:cme,onChangeComplete:dme,activeIndex:ume,onActive:fme,format:pme,onFormatChange:hme,gradientDragging:bme,onGradientDragging:mme,disabledFormat:vme}=x_,gme=`${eme}-inner`,yme=React__default.useMemo(()=>({prefixCls:eme,value:ame,onChange:nme,onClear:rme,allowClear:ime,disabledAlpha:ome,mode:lme,onModeChange:sme,modeOptions:cme,onChangeComplete:dme,activeIndex:ume,onActive:fme,format:pme,onFormatChange:hme,gradientDragging:bme,onGradientDragging:mme,disabledFormat:vme}),[eme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme]),_me=React__default.useMemo(()=>({prefixCls:eme,value:ame,presets:$P,onChange:nme}),[eme,ame,$P,nme]),$me=React__default.createElement("div",{className:`${gme}-content`},React__default.createElement(PanelPicker,null),Array.isArray($P)&&React__default.createElement(Divider,null),React__default.createElement(PanelPresets,null));return React__default.createElement(PanelPickerContext.Provider,{value:yme},React__default.createElement(PanelPresetsContext.Provider,{value:_me},React__default.createElement("div",{className:gme},typeof tme=="function"?tme($me,{components:{Picker:PanelPicker,Presets:PanelPresets}}):$me)))};var __rest$j=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const ColorTrigger=reactExports.forwardRef((x_,eme)=>{const{color:$P,prefixCls:tme,open:ame,disabled:nme,format:rme,className:ime,showText:ome,activeIndex:lme}=x_,sme=__rest$j(x_,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),cme=`${tme}-trigger`,dme=`${cme}-text`,ume=`${dme}-cell`,[fme]=useLocale("ColorPicker"),pme=React__default.useMemo(()=>{if(!ome)return"";if(typeof ome=="function")return ome($P);if($P.cleared)return fme.transparent;if($P.isGradient())return $P.getColors().map((vme,gme)=>jsxs("span",{className:classNames(ume,lme!==-1&&lme!==gme&&`${ume}-inactive`),children:[vme.color.toRgbString()," ",vme.percent,"%"]},gme));const bme=$P.toHexString().toUpperCase(),mme=getColorAlpha($P);switch(rme){case"rgb":return $P.toRgbString();case"hsb":return $P.toHsbString();default:return mme<100?`${bme.slice(0,7)},${mme}%`:bme}},[$P,rme,ome,lme]),hme=reactExports.useMemo(()=>$P.cleared?jsx(ColorClear,{prefixCls:tme}):jsx(ColorBlock,{prefixCls:tme,color:$P.toCssString()}),[$P,tme]);return jsxs("div",{...Object.assign({ref:eme,className:classNames(cme,ime,{[`${cme}-active`]:ame,[`${cme}-disabled`]:nme})},pickAttrs(sme)),children:[hme,ome&&jsx("div",{className:dme,children:pme})]})});function useModeColor(x_,eme,$P){const[tme]=useLocale("ColorPicker"),[ame,nme]=useMergedState(x_,{value:eme}),[rme,ime]=reactExports.useState("single"),[ome,lme]=reactExports.useMemo(()=>{const pme=(Array.isArray($P)?$P:[$P]).filter(vme=>vme);pme.length||pme.push("single");const hme=new Set(pme),bme=[],mme=(vme,gme)=>{hme.has(vme)&&bme.push({label:gme,value:vme})};return mme("single",tme.singleColor),mme("gradient",tme.gradientColor),[bme,hme]},[$P]),[sme,cme]=reactExports.useState(null),dme=useEvent(pme=>{cme(pme),nme(pme)}),ume=reactExports.useMemo(()=>{const pme=generateColor(ame||"");return pme.equals(sme)?sme:pme},[ame,sme]),fme=reactExports.useMemo(()=>{var pme;return lme.has(rme)?rme:(pme=ome[0])===null||pme===void 0?void 0:pme.value},[lme,rme,ome]);return reactExports.useEffect(()=>{ime(ume.isGradient()?"gradient":"single")},[ume]),[ume,dme,fme,ime,ome]}const getTransBg=(x_,eme)=>({backgroundImage:`conic-gradient(${eme} 0 25%, transparent 0 50%, ${eme} 0 75%, transparent 0)`,backgroundSize:`${x_} ${x_}`}),genColorBlockStyle=(x_,eme)=>{const{componentCls:$P,borderRadiusSM:tme,colorPickerInsetShadow:ame,lineWidth:nme,colorFillSecondary:rme}=x_;return{[`${$P}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:tme,width:eme,height:eme,boxShadow:ame,flex:"none"},getTransBg("50%",x_.colorFillSecondary)),{[`${$P}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit$1(nme)} ${rme}`,borderRadius:"inherit"}})}},genInputStyle=x_=>{const{componentCls:eme,antCls:$P,fontSizeSM:tme,lineHeightSM:ame,colorPickerAlphaInputWidth:nme,marginXXS:rme,paddingXXS:ime,controlHeightSM:ome,marginXS:lme,fontSizeIcon:sme,paddingXS:cme,colorTextPlaceholder:dme,colorPickerInputNumberHandleWidth:ume,lineWidth:fme}=x_;return{[`${eme}-input-container`]:{display:"flex",[`${eme}-steppers${$P}-input-number`]:{fontSize:tme,lineHeight:ame,[`${$P}-input-number-input`]:{paddingInlineStart:ime,paddingInlineEnd:0},[`${$P}-input-number-handler-wrap`]:{width:ume}},[`${eme}-steppers${eme}-alpha-input`]:{flex:`0 0 ${unit$1(nme)}`,marginInlineStart:rme},[`${eme}-format-select${$P}-select`]:{marginInlineEnd:lme,width:"auto","&-single":{[`${$P}-select-selector`]:{padding:0,border:0},[`${$P}-select-arrow`]:{insetInlineEnd:0},[`${$P}-select-selection-item`]:{paddingInlineEnd:x_.calc(sme).add(rme).equal(),fontSize:tme,lineHeight:unit$1(ome)},[`${$P}-select-item-option-content`]:{fontSize:tme,lineHeight:ame},[`${$P}-select-dropdown`]:{[`${$P}-select-item`]:{minHeight:"auto"}}}},[`${eme}-input`]:{gap:rme,alignItems:"center",flex:1,width:0,[`${eme}-hsb-input,${eme}-rgb-input`]:{display:"flex",gap:rme,alignItems:"center"},[`${eme}-steppers`]:{flex:1},[`${eme}-hex-input${$P}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit$1(cme)}`,[`${$P}-input`]:{fontSize:tme,textTransform:"uppercase",lineHeight:unit$1(x_.calc(ome).sub(x_.calc(fme).mul(2)).equal())},[`${$P}-input-prefix`]:{color:dme}}}}}},genPickerStyle=x_=>{const{componentCls:eme,controlHeightLG:$P,borderRadiusSM:tme,colorPickerInsetShadow:ame,marginSM:nme,colorBgElevated:rme,colorFillSecondary:ime,lineWidthBold:ome,colorPickerHandlerSize:lme}=x_;return{userSelect:"none",[`${eme}-select`]:{[`${eme}-palette`]:{minHeight:x_.calc($P).mul(4).equal(),overflow:"hidden",borderRadius:tme},[`${eme}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:ame,inset:0},marginBottom:nme},[`${eme}-handler`]:{width:lme,height:lme,border:`${unit$1(ome)} solid ${rme}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${ame}, 0 0 0 1px ${ime}`}}},genPresetsStyle=x_=>{const{componentCls:eme,antCls:$P,colorTextQuaternary:tme,paddingXXS:ame,colorPickerPresetColorSize:nme,fontSizeSM:rme,colorText:ime,lineHeightSM:ome,lineWidth:lme,borderRadius:sme,colorFill:cme,colorWhite:dme,marginXXS:ume,paddingXS:fme,fontHeightSM:pme}=x_;return{[`${eme}-presets`]:{[`${$P}-collapse-item > ${$P}-collapse-header`]:{padding:0,[`${$P}-collapse-expand-icon`]:{height:pme,color:tme,paddingInlineEnd:ame}},[`${$P}-collapse`]:{display:"flex",flexDirection:"column",gap:ume},[`${$P}-collapse-item > ${$P}-collapse-content > ${$P}-collapse-content-box`]:{padding:`${unit$1(fme)} 0`},"&-label":{fontSize:rme,color:ime,lineHeight:ome},"&-items":{display:"flex",flexWrap:"wrap",gap:x_.calc(ume).mul(1.5).equal(),[`${eme}-presets-color`]:{position:"relative",cursor:"pointer",width:nme,height:nme,"&::before":{content:'""',pointerEvents:"none",width:x_.calc(nme).add(x_.calc(lme).mul(4)).equal(),height:x_.calc(nme).add(x_.calc(lme).mul(4)).equal(),position:"absolute",top:x_.calc(lme).mul(-2).equal(),insetInlineStart:x_.calc(lme).mul(-2).equal(),borderRadius:sme,border:`${unit$1(lme)} solid transparent`,transition:`border-color ${x_.motionDurationMid} ${x_.motionEaseInBack}`},"&:hover::before":{borderColor:cme},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:x_.calc(nme).div(13).mul(5).equal(),height:x_.calc(nme).div(13).mul(8).equal(),border:`${unit$1(x_.lineWidthBold)} solid ${x_.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${x_.motionDurationFast} ${x_.motionEaseInBack}, opacity ${x_.motionDurationFast}`},[`&${eme}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:dme,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${x_.motionDurationMid} ${x_.motionEaseOutBack} ${x_.motionDurationFast}`},[`&${eme}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:rme,color:tme}}}},genSliderStyle=x_=>{const{componentCls:eme,colorPickerInsetShadow:$P,colorBgElevated:tme,colorFillSecondary:ame,lineWidthBold:nme,colorPickerHandlerSizeSM:rme,colorPickerSliderHeight:ime,marginSM:ome,marginXS:lme}=x_,sme=x_.calc(rme).sub(x_.calc(nme).mul(2).equal()).equal(),cme=x_.calc(rme).add(x_.calc(nme).mul(2).equal()).equal(),dme={"&:after":{transform:"scale(1)",boxShadow:`${$P}, 0 0 0 1px ${x_.colorPrimaryActive}`}};return{[`${eme}-slider`]:[getTransBg(unit$1(ime),x_.colorFillSecondary),{margin:0,padding:0,height:ime,borderRadius:x_.calc(ime).div(2).equal(),"&-rail":{height:ime,borderRadius:x_.calc(ime).div(2).equal(),boxShadow:$P},[`& ${eme}-slider-handle`]:{width:sme,height:sme,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:cme,height:cme,borderRadius:"100%"},"&:after":{width:rme,height:rme,border:`${unit$1(nme)} solid ${tme}`,boxShadow:`${$P}, 0 0 0 1px ${ame}`,outline:"none",insetInlineStart:x_.calc(nme).mul(-1).equal(),top:x_.calc(nme).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":dme}}],[`${eme}-slider-container`]:{display:"flex",gap:ome,marginBottom:ome,[`${eme}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${eme}-gradient-slider`]:{marginBottom:lme,[`& ${eme}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":dme}}}},genActiveStyle=(x_,eme,$P)=>({borderInlineEndWidth:x_.lineWidth,borderColor:eme,boxShadow:`0 0 0 ${unit$1(x_.controlOutlineWidth)} ${$P}`,outline:0}),genRtlStyle=x_=>{const{componentCls:eme}=x_;return{"&-rtl":{[`${eme}-presets-color`]:{"&::after":{direction:"ltr"}},[`${eme}-clear`]:{"&::after":{direction:"ltr"}}}}},genClearStyle=(x_,eme,$P)=>{const{componentCls:tme,borderRadiusSM:ame,lineWidth:nme,colorSplit:rme,colorBorder:ime,red6:ome}=x_;return{[`${tme}-clear`]:Object.assign(Object.assign({width:eme,height:eme,borderRadius:ame,border:`${unit$1(nme)} solid ${rme}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${x_.motionDurationFast}`},$P),{"&::after":{content:'""',position:"absolute",insetInlineEnd:x_.calc(nme).mul(-1).equal(),top:x_.calc(nme).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:ome},"&:hover":{borderColor:ime}})}},genStatusStyle=x_=>{const{componentCls:eme,colorError:$P,colorWarning:tme,colorErrorHover:ame,colorWarningHover:nme,colorErrorOutline:rme,colorWarningOutline:ime}=x_;return{[`&${eme}-status-error`]:{borderColor:$P,"&:hover":{borderColor:ame},[`&${eme}-trigger-active`]:Object.assign({},genActiveStyle(x_,$P,rme))},[`&${eme}-status-warning`]:{borderColor:tme,"&:hover":{borderColor:nme},[`&${eme}-trigger-active`]:Object.assign({},genActiveStyle(x_,tme,ime))}}},genSizeStyle=x_=>{const{componentCls:eme,controlHeightLG:$P,controlHeightSM:tme,controlHeight:ame,controlHeightXS:nme,borderRadius:rme,borderRadiusSM:ime,borderRadiusXS:ome,borderRadiusLG:lme,fontSizeLG:sme}=x_;return{[`&${eme}-lg`]:{minWidth:$P,minHeight:$P,borderRadius:lme,[`${eme}-color-block, ${eme}-clear`]:{width:ame,height:ame,borderRadius:rme},[`${eme}-trigger-text`]:{fontSize:sme}},[`&${eme}-sm`]:{minWidth:tme,minHeight:tme,borderRadius:ime,[`${eme}-color-block, ${eme}-clear`]:{width:nme,height:nme,borderRadius:ome},[`${eme}-trigger-text`]:{lineHeight:unit$1(nme)}}}},genColorPickerStyle=x_=>{const{antCls:eme,componentCls:$P,colorPickerWidth:tme,colorPrimary:ame,motionDurationMid:nme,colorBgElevated:rme,colorTextDisabled:ime,colorText:ome,colorBgContainerDisabled:lme,borderRadius:sme,marginXS:cme,marginSM:dme,controlHeight:ume,controlHeightSM:fme,colorBgTextActive:pme,colorPickerPresetColorSize:hme,colorPickerPreviewSize:bme,lineWidth:mme,colorBorder:vme,paddingXXS:gme,fontSize:yme,colorPrimaryHover:_me,controlOutline:$me}=x_;return[{[$P]:Object.assign({[`${$P}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:tme,[`& > ${eme}-divider`]:{margin:`${unit$1(dme)} 0 ${unit$1(cme)}`}},[`${$P}-panel`]:Object.assign({},genPickerStyle(x_))},genSliderStyle(x_)),genColorBlockStyle(x_,bme)),genInputStyle(x_)),genPresetsStyle(x_)),genClearStyle(x_,hme,{marginInlineStart:"auto"})),{[`${$P}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:cme}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:ume,minHeight:ume,borderRadius:sme,border:`${unit$1(mme)} solid ${vme}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${nme}`,background:rme,padding:x_.calc(gme).sub(mme).equal(),[`${$P}-trigger-text`]:{marginInlineStart:cme,marginInlineEnd:x_.calc(cme).sub(x_.calc(gme).sub(mme)).equal(),fontSize:yme,color:ome,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:ime}}},"&:hover":{borderColor:_me},[`&${$P}-trigger-active`]:Object.assign({},genActiveStyle(x_,ame,$me)),"&-disabled":{color:ime,background:lme,cursor:"not-allowed","&:hover":{borderColor:pme},[`${$P}-trigger-text`]:{color:ime}}},genClearStyle(x_,fme)),genColorBlockStyle(x_,fme)),genStatusStyle(x_)),genSizeStyle(x_))},genRtlStyle(x_))},genCompactItemStyle(x_,{focusElCls:`${$P}-trigger-active`})]},useStyle$6=genStyleHooks("ColorPicker",x_=>{const{colorTextQuaternary:eme,marginSM:$P}=x_,tme=8,ame=merge$5(x_,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${eme}`,colorPickerSliderHeight:tme,colorPickerPreviewSize:x_.calc(tme).mul(2).add($P).equal()});return[genColorPickerStyle(ame)]});var __rest$i=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const ColorPicker$1=x_=>{const{mode:eme,value:$P,defaultValue:tme,format:ame,defaultFormat:nme,allowClear:rme=!1,presets:ime,children:ome,trigger:lme="click",open:sme,disabled:cme,placement:dme="bottomLeft",arrow:ume=!0,panelRender:fme,showText:pme,style:hme,className:bme,size:mme,rootClassName:vme,prefixCls:gme,styles:yme,disabledAlpha:_me=!1,onFormatChange:$me,onChange:Cme,onClear:Sme,onOpenChange:Eme,onChangeComplete:xme,getPopupContainer:Tme,autoAdjustOverflow:Ome=!0,destroyTooltipOnHide:Rme,disabledFormat:Nme}=x_,Ime=__rest$i(x_,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:Pme,direction:Mme,colorPicker:kme}=reactExports.useContext(ConfigContext),Bme=reactExports.useContext(DisabledContext),Dme=cme??Bme,[jme,Vme]=useMergedState(!1,{value:sme,postState:p0e=>!Dme&&p0e,onChange:Eme}),[Wme,Lme]=useMergedState(ame,{value:ame,defaultValue:nme,onChange:$me}),zme=Pme("color-picker",gme),[Ume,Gme,Jme,Yme,Qme]=useModeColor(tme,$P,eme),Xme=reactExports.useMemo(()=>getColorAlpha(Ume)<100,[Ume]),[Kme,Zme]=React__default.useState(null),nbe=p0e=>{if(xme){let S0e=generateColor(p0e);_me&&Xme&&(S0e=genAlphaColor(p0e)),xme(S0e)}},lbe=(p0e,S0e)=>{let P0e=generateColor(p0e);_me&&Xme&&(P0e=genAlphaColor(P0e)),Gme(P0e),Zme(null),Cme&&Cme(P0e,P0e.toCssString()),S0e||nbe(P0e)},[ibe,abe]=React__default.useState(0),[obe,hbe]=React__default.useState(!1),ube=p0e=>{if(Yme(p0e),p0e==="single"&&Ume.isGradient())abe(0),lbe(new AggregationColor(Ume.getColors()[0].color)),Zme(Ume);else if(p0e==="gradient"&&!Ume.isGradient()){const S0e=Xme?genAlphaColor(Ume):Ume;lbe(new AggregationColor(Kme||[{percent:0,color:S0e},{percent:100,color:S0e}]))}},{status:mbe}=React__default.useContext(FormItemInputContext),{compactSize:pbe,compactItemClassnames:_be}=useCompactItemContext(zme,Mme),Sbe=useSize(p0e=>{var S0e;return(S0e=mme??pbe)!==null&&S0e!==void 0?S0e:p0e}),vbe=useCSSVarCls(zme),[kbe,Rbe,Pbe]=useStyle$6(zme,vbe),Mbe={[`${zme}-rtl`]:Mme},Kbe=classNames(vme,Pbe,vbe,Mbe),Qbe=classNames(getStatusClassNames(zme,mbe),{[`${zme}-sm`]:Sbe==="small",[`${zme}-lg`]:Sbe==="large"},_be,kme==null?void 0:kme.className,Kbe,bme,Rbe),Gbe=classNames(zme,Kbe),Hbe={open:jme,trigger:lme,placement:dme,arrow:ume,rootClassName:vme,getPopupContainer:Tme,autoAdjustOverflow:Ome,destroyTooltipOnHide:Rme},d0e=Object.assign(Object.assign({},kme==null?void 0:kme.style),hme);return kbe(jsx(Popover,{...Object.assign({style:yme==null?void 0:yme.popup,overlayInnerStyle:yme==null?void 0:yme.popupOverlayInner,onOpenChange:p0e=>{(!p0e||!Dme)&&Vme(p0e)},content:jsx(ContextIsolator,{form:!0,children:jsx(ColorPickerPanel,{mode:Jme,onModeChange:ube,modeOptions:Qme,prefixCls:zme,value:Ume,allowClear:rme,disabled:Dme,disabledAlpha:_me,presets:ime,panelRender:fme,format:Wme,onFormatChange:Lme,onChange:lbe,onChangeComplete:nbe,onClear:Sme,activeIndex:ibe,onActive:abe,gradientDragging:obe,onGradientDragging:hbe,disabledFormat:Nme})}),overlayClassName:Gbe},Hbe),children:ome||jsx(ColorTrigger,{...Object.assign({activeIndex:jme?ibe:-1,open:jme,className:Qbe,style:d0e,prefixCls:zme,disabled:Dme,showText:pme,format:Wme},Ime,{color:Ume})})}))},PurePanel$2=genPurePanel(ColorPicker$1,"color-picker",x_=>x_,x_=>Object.assign(Object.assign({},x_),{placement:"bottom",autoAdjustOverflow:!1}));ColorPicker$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$2;var DrawerContext=reactExports.createContext(null),RefContext=reactExports.createContext({}),_excluded$a=["prefixCls","className","containerRef"],DrawerPanel$2=function(eme){var $P=eme.prefixCls,tme=eme.className,ame=eme.containerRef,nme=_objectWithoutProperties$6(eme,_excluded$a),rme=reactExports.useContext(RefContext),ime=rme.panel,ome=useComposeRef(ime,ame);return reactExports.createElement("div",_extends$4C({className:classNames("".concat($P,"-content"),tme),role:"dialog",ref:ome},pickAttrs(eme,{aria:!0}),{"aria-modal":"true"},nme))};function parseWidthHeight(x_){return typeof x_=="string"&&String(Number(x_))===x_?(warningOnce(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(x_)):x_}var sentinelStyle={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function DrawerPopup(x_,eme){var $P,tme,ame,nme=x_.prefixCls,rme=x_.open,ime=x_.placement,ome=x_.inline,lme=x_.push,sme=x_.forceRender,cme=x_.autoFocus,dme=x_.keyboard,ume=x_.classNames,fme=x_.rootClassName,pme=x_.rootStyle,hme=x_.zIndex,bme=x_.className,mme=x_.id,vme=x_.style,gme=x_.motion,yme=x_.width,_me=x_.height,$me=x_.children,Cme=x_.mask,Sme=x_.maskClosable,Eme=x_.maskMotion,xme=x_.maskClassName,Tme=x_.maskStyle,Ome=x_.afterOpenChange,Rme=x_.onClose,Nme=x_.onMouseEnter,Ime=x_.onMouseOver,Pme=x_.onMouseLeave,Mme=x_.onClick,kme=x_.onKeyDown,Bme=x_.onKeyUp,Dme=x_.styles,jme=x_.drawerRender,Vme=reactExports.useRef(),Wme=reactExports.useRef(),Lme=reactExports.useRef();reactExports.useImperativeHandle(eme,function(){return Vme.current});var zme=function(mbe){var pbe=mbe.keyCode,_be=mbe.shiftKey;switch(pbe){case KeyCode.TAB:{if(pbe===KeyCode.TAB){if(!_be&&document.activeElement===Lme.current){var Sbe;(Sbe=Wme.current)===null||Sbe===void 0||Sbe.focus({preventScroll:!0})}else if(_be&&document.activeElement===Wme.current){var vbe;(vbe=Lme.current)===null||vbe===void 0||vbe.focus({preventScroll:!0})}}break}case KeyCode.ESC:{Rme&&dme&&(mbe.stopPropagation(),Rme(mbe));break}}};reactExports.useEffect(function(){if(rme&&cme){var ube;(ube=Vme.current)===null||ube===void 0||ube.focus({preventScroll:!0})}},[rme]);var Ume=reactExports.useState(!1),Gme=_slicedToArray$2(Ume,2),Jme=Gme[0],Yme=Gme[1],Qme=reactExports.useContext(DrawerContext),Xme;typeof lme=="boolean"?Xme=lme?{}:{distance:0}:Xme=lme||{};var Kme=($P=(tme=(ame=Xme)===null||ame===void 0?void 0:ame.distance)!==null&&tme!==void 0?tme:Qme==null?void 0:Qme.pushDistance)!==null&&$P!==void 0?$P:180,Zme=reactExports.useMemo(function(){return{pushDistance:Kme,push:function(){Yme(!0)},pull:function(){Yme(!1)}}},[Kme]);reactExports.useEffect(function(){if(rme){var ube;Qme==null||(ube=Qme.push)===null||ube===void 0||ube.call(Qme)}else{var mbe;Qme==null||(mbe=Qme.pull)===null||mbe===void 0||mbe.call(Qme)}},[rme]),reactExports.useEffect(function(){return function(){var ube;Qme==null||(ube=Qme.pull)===null||ube===void 0||ube.call(Qme)}},[]);var nbe=Cme&&reactExports.createElement(CSSMotion,_extends$4C({key:"mask"},Eme,{visible:rme}),function(ube,mbe){var pbe=ube.className,_be=ube.style;return reactExports.createElement("div",{className:classNames("".concat(nme,"-mask"),pbe,ume==null?void 0:ume.mask,xme),style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},_be),Tme),Dme==null?void 0:Dme.mask),onClick:Sme&&rme?Rme:void 0,ref:mbe})}),lbe=typeof gme=="function"?gme(ime):gme,ibe={};if(Jme&&Kme)switch(ime){case"top":ibe.transform="translateY(".concat(Kme,"px)");break;case"bottom":ibe.transform="translateY(".concat(-Kme,"px)");break;case"left":ibe.transform="translateX(".concat(Kme,"px)");break;default:ibe.transform="translateX(".concat(-Kme,"px)");break}ime==="left"||ime==="right"?ibe.width=parseWidthHeight(yme):ibe.height=parseWidthHeight(_me);var abe={onMouseEnter:Nme,onMouseOver:Ime,onMouseLeave:Pme,onClick:Mme,onKeyDown:kme,onKeyUp:Bme},obe=reactExports.createElement(CSSMotion,_extends$4C({key:"panel"},lbe,{visible:rme,forceRender:sme,onVisibleChanged:function(mbe){Ome==null||Ome(mbe)},removeOnLeave:!1,leavedClassName:"".concat(nme,"-content-wrapper-hidden")}),function(ube,mbe){var pbe=ube.className,_be=ube.style,Sbe=reactExports.createElement(DrawerPanel$2,_extends$4C({id:mme,containerRef:mbe,prefixCls:nme,className:classNames(bme,ume==null?void 0:ume.content),style:_objectSpread2$4(_objectSpread2$4({},vme),Dme==null?void 0:Dme.content)},pickAttrs(x_,{aria:!0}),abe),$me);return reactExports.createElement("div",_extends$4C({className:classNames("".concat(nme,"-content-wrapper"),ume==null?void 0:ume.wrapper,pbe),style:_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},ibe),_be),Dme==null?void 0:Dme.wrapper)},pickAttrs(x_,{data:!0})),jme?jme(Sbe):Sbe)}),hbe=_objectSpread2$4({},pme);return hme&&(hbe.zIndex=hme),reactExports.createElement(DrawerContext.Provider,{value:Zme},reactExports.createElement("div",{className:classNames(nme,"".concat(nme,"-").concat(ime),fme,_defineProperty$7(_defineProperty$7({},"".concat(nme,"-open"),rme),"".concat(nme,"-inline"),ome)),style:hbe,tabIndex:-1,ref:Vme,onKeyDown:zme},nbe,reactExports.createElement("div",{tabIndex:0,ref:Wme,style:sentinelStyle,"aria-hidden":"true","data-sentinel":"start"}),obe,reactExports.createElement("div",{tabIndex:0,ref:Lme,style:sentinelStyle,"aria-hidden":"true","data-sentinel":"end"})))}var RefDrawerPopup=reactExports.forwardRef(DrawerPopup),Drawer$3=function(eme){var $P=eme.open,tme=$P===void 0?!1:$P,ame=eme.prefixCls,nme=ame===void 0?"rc-drawer":ame,rme=eme.placement,ime=rme===void 0?"right":rme,ome=eme.autoFocus,lme=ome===void 0?!0:ome,sme=eme.keyboard,cme=sme===void 0?!0:sme,dme=eme.width,ume=dme===void 0?378:dme,fme=eme.mask,pme=fme===void 0?!0:fme,hme=eme.maskClosable,bme=hme===void 0?!0:hme,mme=eme.getContainer,vme=eme.forceRender,gme=eme.afterOpenChange,yme=eme.destroyOnClose,_me=eme.onMouseEnter,$me=eme.onMouseOver,Cme=eme.onMouseLeave,Sme=eme.onClick,Eme=eme.onKeyDown,xme=eme.onKeyUp,Tme=eme.panelRef,Ome=reactExports.useState(!1),Rme=_slicedToArray$2(Ome,2),Nme=Rme[0],Ime=Rme[1],Pme=reactExports.useState(!1),Mme=_slicedToArray$2(Pme,2),kme=Mme[0],Bme=Mme[1];useLayoutEffect$1(function(){Bme(!0)},[]);var Dme=kme?tme:!1,jme=reactExports.useRef(),Vme=reactExports.useRef();useLayoutEffect$1(function(){Dme&&(Vme.current=document.activeElement)},[Dme]);var Wme=function(Jme){var Yme;if(Ime(Jme),gme==null||gme(Jme),!Jme&&Vme.current&&!((Yme=jme.current)!==null&&Yme!==void 0&&Yme.contains(Vme.current))){var Qme;(Qme=Vme.current)===null||Qme===void 0||Qme.focus({preventScroll:!0})}},Lme=reactExports.useMemo(function(){return{panel:Tme}},[Tme]);if(!vme&&!Nme&&!Dme&&yme)return null;var zme={onMouseEnter:_me,onMouseOver:$me,onMouseLeave:Cme,onClick:Sme,onKeyDown:Eme,onKeyUp:xme},Ume=_objectSpread2$4(_objectSpread2$4({},eme),{},{open:Dme,prefixCls:nme,placement:ime,autoFocus:lme,keyboard:cme,width:ume,mask:pme,maskClosable:bme,inline:mme===!1,afterOpenChange:Wme,ref:jme},zme);return reactExports.createElement(RefContext.Provider,{value:Lme},reactExports.createElement(Portal$1,{open:Dme||vme||Nme,autoDestroy:!1,getContainer:mme,autoLock:pme&&(Dme||Nme)},reactExports.createElement(RefDrawerPopup,Ume)))};const DrawerPanel$1=x_=>{var eme,$P;const{prefixCls:tme,title:ame,footer:nme,extra:rme,loading:ime,onClose:ome,headerStyle:lme,bodyStyle:sme,footerStyle:cme,children:dme,classNames:ume,styles:fme}=x_,{drawer:pme}=reactExports.useContext(ConfigContext),hme=reactExports.useCallback(yme=>reactExports.createElement("button",{type:"button",onClick:ome,"aria-label":"Close",className:`${tme}-close`},yme),[ome]),[bme,mme]=useClosable(pickClosable(x_),pickClosable(pme),{closable:!0,closeIconRender:hme}),vme=reactExports.useMemo(()=>{var yme,_me;return!ame&&!bme?null:reactExports.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(yme=pme==null?void 0:pme.styles)===null||yme===void 0?void 0:yme.header),lme),fme==null?void 0:fme.header),className:classNames(`${tme}-header`,{[`${tme}-header-close-only`]:bme&&!ame&&!rme},(_me=pme==null?void 0:pme.classNames)===null||_me===void 0?void 0:_me.header,ume==null?void 0:ume.header)},reactExports.createElement("div",{className:`${tme}-header-title`},mme,ame&&reactExports.createElement("div",{className:`${tme}-title`},ame)),rme&&reactExports.createElement("div",{className:`${tme}-extra`},rme))},[bme,mme,rme,lme,tme,ame]),gme=reactExports.useMemo(()=>{var yme,_me;if(!nme)return null;const $me=`${tme}-footer`;return reactExports.createElement("div",{className:classNames($me,(yme=pme==null?void 0:pme.classNames)===null||yme===void 0?void 0:yme.footer,ume==null?void 0:ume.footer),style:Object.assign(Object.assign(Object.assign({},(_me=pme==null?void 0:pme.styles)===null||_me===void 0?void 0:_me.footer),cme),fme==null?void 0:fme.footer)},nme)},[nme,cme,tme]);return reactExports.createElement(reactExports.Fragment,null,vme,reactExports.createElement("div",{className:classNames(`${tme}-body`,ume==null?void 0:ume.body,(eme=pme==null?void 0:pme.classNames)===null||eme===void 0?void 0:eme.body),style:Object.assign(Object.assign(Object.assign({},($P=pme==null?void 0:pme.styles)===null||$P===void 0?void 0:$P.body),sme),fme==null?void 0:fme.body)},ime?reactExports.createElement(Skeleton,{active:!0,title:!1,paragraph:{rows:5},className:`${tme}-body-skeleton`}):dme),gme)},getMoveTranslate=x_=>{const eme="100%";return{left:`translateX(-${eme})`,right:`translateX(${eme})`,top:`translateY(-${eme})`,bottom:`translateY(${eme})`}[x_]},getEnterLeaveStyle=(x_,eme)=>({"&-enter, &-appear":Object.assign(Object.assign({},x_),{"&-active":eme}),"&-leave":Object.assign(Object.assign({},eme),{"&-active":x_})}),getFadeStyle=(x_,eme)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${eme}`}}},getEnterLeaveStyle({opacity:x_},{opacity:1})),getPanelMotionStyles=(x_,eme)=>[getFadeStyle(.7,eme),getEnterLeaveStyle({transform:getMoveTranslate(x_)},{transform:"none"})],genMotionStyle=x_=>{const{componentCls:eme,motionDurationSlow:$P}=x_;return{[eme]:{[`${eme}-mask-motion`]:getFadeStyle(0,$P),[`${eme}-panel-motion`]:["left","right","top","bottom"].reduce((tme,ame)=>Object.assign(Object.assign({},tme),{[`&-${ame}`]:getPanelMotionStyles(ame,$P)}),{})}}},genDrawerStyle=x_=>{const{borderRadiusSM:eme,componentCls:$P,zIndexPopup:tme,colorBgMask:ame,colorBgElevated:nme,motionDurationSlow:rme,motionDurationMid:ime,paddingXS:ome,padding:lme,paddingLG:sme,fontSizeLG:cme,lineHeightLG:dme,lineWidth:ume,lineType:fme,colorSplit:pme,marginXS:hme,colorIcon:bme,colorIconHover:mme,colorBgTextHover:vme,colorBgTextActive:gme,colorText:yme,fontWeightStrong:_me,footerPaddingBlock:$me,footerPaddingInline:Cme,calc:Sme}=x_,Eme=`${$P}-content-wrapper`;return{[$P]:{position:"fixed",inset:0,zIndex:tme,pointerEvents:"none",color:yme,"&-pure":{position:"relative",background:nme,display:"flex",flexDirection:"column",[`&${$P}-left`]:{boxShadow:x_.boxShadowDrawerLeft},[`&${$P}-right`]:{boxShadow:x_.boxShadowDrawerRight},[`&${$P}-top`]:{boxShadow:x_.boxShadowDrawerUp},[`&${$P}-bottom`]:{boxShadow:x_.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${$P}-mask`]:{position:"absolute",inset:0,zIndex:tme,background:ame,pointerEvents:"auto"},[Eme]:{position:"absolute",zIndex:tme,maxWidth:"100vw",transition:`all ${rme}`,"&-hidden":{display:"none"}},[`&-left > ${Eme}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:x_.boxShadowDrawerLeft},[`&-right > ${Eme}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:x_.boxShadowDrawerRight},[`&-top > ${Eme}`]:{top:0,insetInline:0,boxShadow:x_.boxShadowDrawerUp},[`&-bottom > ${Eme}`]:{bottom:0,insetInline:0,boxShadow:x_.boxShadowDrawerDown},[`${$P}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:nme,pointerEvents:"auto"},[`${$P}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit$1(lme)} ${unit$1(sme)}`,fontSize:cme,lineHeight:dme,borderBottom:`${unit$1(ume)} ${fme} ${pme}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${$P}-extra`]:{flex:"none"},[`${$P}-close`]:Object.assign({display:"inline-flex",width:Sme(cme).add(ome).equal(),height:Sme(cme).add(ome).equal(),borderRadius:eme,justifyContent:"center",alignItems:"center",marginInlineEnd:hme,color:bme,fontWeight:_me,fontSize:cme,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${ime}`,textRendering:"auto","&:hover":{color:mme,backgroundColor:vme,textDecoration:"none"},"&:active":{backgroundColor:gme}},genFocusStyle(x_)),[`${$P}-title`]:{flex:1,margin:0,fontWeight:x_.fontWeightStrong,fontSize:cme,lineHeight:dme},[`${$P}-body`]:{flex:1,minWidth:0,minHeight:0,padding:sme,overflow:"auto",[`${$P}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${$P}-footer`]:{flexShrink:0,padding:`${unit$1($me)} ${unit$1(Cme)}`,borderTop:`${unit$1(ume)} ${fme} ${pme}`},"&-rtl":{direction:"rtl"}}}},prepareComponentToken$5=x_=>({zIndexPopup:x_.zIndexPopupBase,footerPaddingBlock:x_.paddingXS,footerPaddingInline:x_.padding}),useStyle$5=genStyleHooks("Drawer",x_=>{const eme=merge$5(x_,{});return[genDrawerStyle(eme),genMotionStyle(eme)]},prepareComponentToken$5);var __rest$h=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const defaultPushState={distance:180},Drawer$2=x_=>{const{rootClassName:eme,width:$P,height:tme,size:ame="default",mask:nme=!0,push:rme=defaultPushState,open:ime,afterOpenChange:ome,onClose:lme,prefixCls:sme,getContainer:cme,style:dme,className:ume,visible:fme,afterVisibleChange:pme,maskStyle:hme,drawerStyle:bme,contentWrapperStyle:mme}=x_,vme=__rest$h(x_,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:gme,getPrefixCls:yme,direction:_me,drawer:$me}=reactExports.useContext(ConfigContext),Cme=yme("drawer",sme),[Sme,Eme,xme]=useStyle$5(Cme),Tme=cme===void 0&&gme?()=>gme(document.body):cme,Ome=classNames({"no-mask":!nme,[`${Cme}-rtl`]:_me==="rtl"},eme,Eme,xme),Rme=reactExports.useMemo(()=>$P??(ame==="large"?736:378),[$P,ame]),Nme=reactExports.useMemo(()=>tme??(ame==="large"?736:378),[tme,ame]),Ime={motionName:getTransitionName(Cme,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pme=Lme=>({motionName:getTransitionName(Cme,`panel-motion-${Lme}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Mme=usePanelRef(),[kme,Bme]=useZIndex("Drawer",vme.zIndex),{classNames:Dme={},styles:jme={}}=vme,{classNames:Vme={},styles:Wme={}}=$me||{};return Sme(reactExports.createElement(ContextIsolator,{form:!0,space:!0},reactExports.createElement(zIndexContext.Provider,{value:Bme},reactExports.createElement(Drawer$3,Object.assign({prefixCls:Cme,onClose:lme,maskMotion:Ime,motion:Pme},vme,{classNames:{mask:classNames(Dme.mask,Vme.mask),content:classNames(Dme.content,Vme.content),wrapper:classNames(Dme.wrapper,Vme.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},jme.mask),hme),Wme.mask),content:Object.assign(Object.assign(Object.assign({},jme.content),bme),Wme.content),wrapper:Object.assign(Object.assign(Object.assign({},jme.wrapper),mme),Wme.wrapper)},open:ime??fme,mask:nme,push:rme,width:Rme,height:Nme,style:Object.assign(Object.assign({},$me==null?void 0:$me.style),dme),className:classNames($me==null?void 0:$me.className,ume),rootClassName:Ome,getContainer:Tme,afterOpenChange:ome??pme,panelRef:Mme,zIndex:kme}),reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:Cme},vme,{onClose:lme}))))))},PurePanel$1=x_=>{const{prefixCls:eme,style:$P,className:tme,placement:ame="right"}=x_,nme=__rest$h(x_,["prefixCls","style","className","placement"]),{getPrefixCls:rme}=reactExports.useContext(ConfigContext),ime=rme("drawer",eme),[ome,lme,sme]=useStyle$5(ime),cme=classNames(ime,`${ime}-pure`,`${ime}-${ame}`,lme,sme,tme);return ome(reactExports.createElement("div",{className:cme,style:$P},reactExports.createElement(DrawerPanel$1,Object.assign({prefixCls:ime},nme))))};Drawer$2._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;function isPresetSize(x_){return["small","middle","large"].includes(x_)}function isValidGapNumber(x_){return x_?typeof x_=="number"&&!Number.isNaN(x_):!1}const SpaceContext=React__default.createContext({latestIndex:0}),SpaceContextProvider=SpaceContext.Provider,Item$1=x_=>{let{className:eme,index:$P,children:tme,split:ame,style:nme}=x_;const{latestIndex:rme}=reactExports.useContext(SpaceContext);return tme==null?null:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:eme,style:nme},tme),$P<rme&&ame&&reactExports.createElement("span",{className:`${eme}-split`},ame))};var __rest$g=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalSpace=reactExports.forwardRef((x_,eme)=>{var $P,tme,ame;const{getPrefixCls:nme,space:rme,direction:ime}=reactExports.useContext(ConfigContext),{size:ome=($P=rme==null?void 0:rme.size)!==null&&$P!==void 0?$P:"small",align:lme,className:sme,rootClassName:cme,children:dme,direction:ume="horizontal",prefixCls:fme,split:pme,style:hme,wrap:bme=!1,classNames:mme,styles:vme}=x_,gme=__rest$g(x_,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[yme,_me]=Array.isArray(ome)?ome:[ome,ome],$me=isPresetSize(_me),Cme=isPresetSize(yme),Sme=isValidGapNumber(_me),Eme=isValidGapNumber(yme),xme=toArray$6(dme,{keepEmpty:!0}),Tme=lme===void 0&&ume==="horizontal"?"center":lme,Ome=nme("space",fme),[Rme,Nme,Ime]=useStyle$v(Ome),Pme=classNames(Ome,rme==null?void 0:rme.className,Nme,`${Ome}-${ume}`,{[`${Ome}-rtl`]:ime==="rtl",[`${Ome}-align-${Tme}`]:Tme,[`${Ome}-gap-row-${_me}`]:$me,[`${Ome}-gap-col-${yme}`]:Cme},sme,cme,Ime),Mme=classNames(`${Ome}-item`,(tme=mme==null?void 0:mme.item)!==null&&tme!==void 0?tme:(ame=rme==null?void 0:rme.classNames)===null||ame===void 0?void 0:ame.item);let kme=0;const Bme=xme.map((Vme,Wme)=>{var Lme,zme;Vme!=null&&(kme=Wme);const Ume=(Vme==null?void 0:Vme.key)||`${Mme}-${Wme}`;return reactExports.createElement(Item$1,{className:Mme,key:Ume,index:Wme,split:pme,style:(Lme=vme==null?void 0:vme.item)!==null&&Lme!==void 0?Lme:(zme=rme==null?void 0:rme.styles)===null||zme===void 0?void 0:zme.item},Vme)}),Dme=reactExports.useMemo(()=>({latestIndex:kme}),[kme]);if(xme.length===0)return null;const jme={};return bme&&(jme.flexWrap="wrap"),!Cme&&Eme&&(jme.columnGap=yme),!$me&&Sme&&(jme.rowGap=_me),Rme(reactExports.createElement("div",Object.assign({ref:eme,className:Pme,style:Object.assign(Object.assign(Object.assign({},jme),rme==null?void 0:rme.style),hme)},gme),reactExports.createElement(SpaceContextProvider,{value:Dme},Bme)))}),Space=InternalSpace;Space.Compact=Compact$2;var __rest$f=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const DropdownButton=x_=>{const{getPopupContainer:eme,getPrefixCls:$P,direction:tme}=reactExports.useContext(ConfigContext),{prefixCls:ame,type:nme="default",danger:rme,disabled:ime,loading:ome,onClick:lme,htmlType:sme,children:cme,className:dme,menu:ume,arrow:fme,autoFocus:pme,overlay:hme,trigger:bme,align:mme,open:vme,onOpenChange:gme,placement:yme,getPopupContainer:_me,href:$me,icon:Cme=reactExports.createElement(RefIcon$b,null),title:Sme,buttonsRender:Eme=Gme=>Gme,mouseEnterDelay:xme,mouseLeaveDelay:Tme,overlayClassName:Ome,overlayStyle:Rme,destroyPopupOnHide:Nme,dropdownRender:Ime}=x_,Pme=__rest$f(x_,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Mme=$P("dropdown",ame),kme=`${Mme}-button`,Bme={menu:ume,arrow:fme,autoFocus:pme,align:mme,disabled:ime,trigger:ime?[]:bme,onOpenChange:gme,getPopupContainer:_me||eme,mouseEnterDelay:xme,mouseLeaveDelay:Tme,overlayClassName:Ome,overlayStyle:Rme,destroyPopupOnHide:Nme,dropdownRender:Ime},{compactSize:Dme,compactItemClassnames:jme}=useCompactItemContext(Mme,tme),Vme=classNames(kme,jme,dme);"overlay"in x_&&(Bme.overlay=hme),"open"in x_&&(Bme.open=vme),"placement"in x_?Bme.placement=yme:Bme.placement=tme==="rtl"?"bottomLeft":"bottomRight";const Wme=reactExports.createElement(Button$3,{type:nme,danger:rme,disabled:ime,loading:ome,onClick:lme,htmlType:sme,href:$me,title:Sme},cme),Lme=reactExports.createElement(Button$3,{type:nme,danger:rme,icon:Cme}),[zme,Ume]=Eme([Wme,Lme]);return reactExports.createElement(Space.Compact,Object.assign({className:Vme,size:Dme,block:!0},Pme),zme,reactExports.createElement(Dropdown$1,Object.assign({},Bme),Ume))};DropdownButton.__ANT_BUTTON=!0;const Dropdown=Dropdown$1;Dropdown.Button=DropdownButton;const FloatButtonGroupContext=React__default.createContext(void 0),{Provider:FloatButtonGroupProvider}=FloatButtonGroupContext;var FileTextOutlined$1={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"},FileTextOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:FileTextOutlined$1}))},RefIcon$6=reactExports.forwardRef(FileTextOutlined);const FloatButtonContent=x_=>{const{icon:eme,description:$P,prefixCls:tme,className:ame}=x_,nme=jsx("div",{className:`${tme}-icon`,children:jsx(RefIcon$6,{})});return jsx("div",{onClick:x_.onClick,onFocus:x_.onFocus,onMouseEnter:x_.onMouseEnter,onMouseLeave:x_.onMouseLeave,className:classNames(ame,`${tme}-content`),children:eme||$P?jsxs(Fragment,{children:[eme&&jsx("div",{className:`${tme}-icon`,children:eme}),$P&&jsx("div",{className:`${tme}-description`,children:$P})]}):nme})},Content$8=reactExports.memo(FloatButtonContent),getOffset$1=x_=>x_===0?0:x_-Math.sqrt(Math.pow(x_,2)/2),floatButtonGroupMotion=x_=>{const{componentCls:eme,floatButtonSize:$P,motionDurationSlow:tme,motionEaseInOutCirc:ame,calc:nme}=x_,rme=new Keyframe("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${unit$1($P)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ime=new Keyframe("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${unit$1($P)}, 0)`,transformOrigin:"0 0",opacity:0}}),ome=new Keyframe("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${nme($P).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lme=new Keyframe("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${nme($P).mul(-1).equal()}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),sme=new Keyframe("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${nme($P).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cme=new Keyframe("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${nme($P).mul(-1).equal()}, 0)`,transformOrigin:"0 0",opacity:0}}),dme=new Keyframe("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${unit$1($P)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ume=new Keyframe("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${unit$1($P)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),fme=`${eme}-group`;return[{[fme]:{[`&${fme}-top ${fme}-wrap`]:initMotion(`${fme}-wrap`,rme,ime,tme,!0),[`&${fme}-bottom ${fme}-wrap`]:initMotion(`${fme}-wrap`,sme,cme,tme,!0),[`&${fme}-left ${fme}-wrap`]:initMotion(`${fme}-wrap`,dme,ume,tme,!0),[`&${fme}-right ${fme}-wrap`]:initMotion(`${fme}-wrap`,ome,lme,tme,!0)}},{[`${fme}-wrap`]:{[`&${fme}-wrap-enter, &${fme}-wrap-appear`]:{opacity:0,animationTimingFunction:ame},[`&${fme}-wrap-leave`]:{opacity:1,animationTimingFunction:ame}}}]},floatButtonGroupStyle=x_=>{const{antCls:eme,componentCls:$P,floatButtonSize:tme,margin:ame,borderRadiusLG:nme,borderRadiusSM:rme,badgeOffset:ime,floatButtonBodyPadding:ome,zIndexPopupBase:lme,calc:sme}=x_,cme=`${$P}-group`;return{[cme]:Object.assign(Object.assign({},resetComponent(x_)),{zIndex:lme,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:tme,minHeight:tme,insetInlineEnd:x_.floatButtonInsetInlineEnd,bottom:x_.floatButtonInsetBlockEnd,borderRadius:nme,[`${cme}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${cme}-rtl`]:{direction:"rtl"},[$P]:{position:"static"}}),[`${cme}-top > ${cme}-wrap`]:{flexDirection:"column",top:"auto",bottom:sme(tme).add(ame).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:ame,bottom:sme(ame).mul(-1).equal()}},[`${cme}-bottom > ${cme}-wrap`]:{flexDirection:"column",top:sme(tme).add(ame).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:ame,top:sme(ame).mul(-1).equal()}},[`${cme}-right > ${cme}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:sme(tme).add(ame).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:ame,height:"100%",left:{_skip_check_:!0,value:sme(ame).mul(-1).equal()}}},[`${cme}-left > ${cme}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:sme(tme).add(ame).equal()},"&::after":{content:'""',position:"absolute",width:ame,height:"100%",right:{_skip_check_:!0,value:sme(ame).mul(-1).equal()}}},[`${cme}-circle`]:{gap:ame,[`${cme}-wrap`]:{gap:ame}},[`${cme}-square`]:{[`${$P}-square`]:{padding:0,borderRadius:0,[`&${cme}-trigger`]:{borderRadius:nme},"&:first-child":{borderStartStartRadius:nme,borderStartEndRadius:nme},"&:last-child":{borderEndStartRadius:nme,borderEndEndRadius:nme},"&:not(:last-child)":{borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`},[`${eme}-badge`]:{[`${eme}-badge-count`]:{top:sme(sme(ome).add(ime)).mul(-1).equal(),insetInlineEnd:sme(sme(ome).add(ime)).mul(-1).equal()}}},[`${cme}-wrap`]:{borderRadius:nme,boxShadow:x_.boxShadowSecondary,[`${$P}-square`]:{boxShadow:"none",borderRadius:0,padding:ome,[`${$P}-body`]:{width:x_.floatButtonBodySize,height:x_.floatButtonBodySize,borderRadius:rme}}}},[`${cme}-top > ${cme}-wrap, ${cme}-bottom > ${cme}-wrap`]:{[`> ${$P}-square`]:{"&:first-child":{borderStartStartRadius:nme,borderStartEndRadius:nme},"&:last-child":{borderEndStartRadius:nme,borderEndEndRadius:nme},"&:not(:last-child)":{borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`}}},[`${cme}-left > ${cme}-wrap, ${cme}-right > ${cme}-wrap`]:{[`> ${$P}-square`]:{"&:first-child":{borderStartStartRadius:nme,borderEndStartRadius:nme},"&:last-child":{borderStartEndRadius:nme,borderEndEndRadius:nme},"&:not(:last-child)":{borderInlineEnd:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.colorSplit}`}}},[`${cme}-circle-shadow`]:{boxShadow:"none"},[`${cme}-square-shadow`]:{boxShadow:x_.boxShadowSecondary,[`${$P}-square`]:{boxShadow:"none",padding:ome,[`${$P}-body`]:{width:x_.floatButtonBodySize,height:x_.floatButtonBodySize,borderRadius:rme}}}}},sharedFloatButtonStyle=x_=>{const{antCls:eme,componentCls:$P,floatButtonBodyPadding:tme,floatButtonIconSize:ame,floatButtonSize:nme,borderRadiusLG:rme,badgeOffset:ime,dotOffsetInSquare:ome,dotOffsetInCircle:lme,zIndexPopupBase:sme,calc:cme}=x_;return{[$P]:Object.assign(Object.assign({},resetComponent(x_)),{border:"none",position:"fixed",cursor:"pointer",zIndex:sme,display:"block",width:nme,height:nme,insetInlineEnd:x_.floatButtonInsetInlineEnd,bottom:x_.floatButtonInsetBlockEnd,boxShadow:x_.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${eme}-badge`]:{width:"100%",height:"100%",[`${eme}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:cme(ime).mul(-1).equal(),insetInlineEnd:cme(ime).mul(-1).equal()}},[`${$P}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${x_.motionDurationMid}`,[`${$P}-content`]:{overflow:"hidden",textAlign:"center",minHeight:nme,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${unit$1(cme(tme).div(2).equal())} ${unit$1(tme)}`,[`${$P}-icon`]:{textAlign:"center",margin:"auto",width:ame,fontSize:ame,lineHeight:1}}}}),[`${$P}-rtl`]:{direction:"rtl"},[`${$P}-circle`]:{height:nme,borderRadius:"50%",[`${eme}-badge`]:{[`${eme}-badge-dot`]:{top:lme,insetInlineEnd:lme}},[`${$P}-body`]:{borderRadius:"50%"}},[`${$P}-square`]:{height:"auto",minHeight:nme,borderRadius:rme,[`${eme}-badge`]:{[`${eme}-badge-dot`]:{top:ome,insetInlineEnd:ome}},[`${$P}-body`]:{height:"auto",borderRadius:rme}},[`${$P}-default`]:{backgroundColor:x_.floatButtonBackgroundColor,transition:`background-color ${x_.motionDurationMid}`,[`${$P}-body`]:{backgroundColor:x_.floatButtonBackgroundColor,transition:`background-color ${x_.motionDurationMid}`,"&:hover":{backgroundColor:x_.colorFillContent},[`${$P}-content`]:{[`${$P}-icon`]:{color:x_.colorText},[`${$P}-description`]:{display:"flex",alignItems:"center",lineHeight:unit$1(x_.fontSizeLG),color:x_.colorText,fontSize:x_.fontSizeSM}}}},[`${$P}-primary`]:{backgroundColor:x_.colorPrimary,[`${$P}-body`]:{backgroundColor:x_.colorPrimary,transition:`background-color ${x_.motionDurationMid}`,"&:hover":{backgroundColor:x_.colorPrimaryHover},[`${$P}-content`]:{[`${$P}-icon`]:{color:x_.colorTextLightSolid},[`${$P}-description`]:{display:"flex",alignItems:"center",lineHeight:unit$1(x_.fontSizeLG),color:x_.colorTextLightSolid,fontSize:x_.fontSizeSM}}}}}},prepareComponentToken$4=x_=>({dotOffsetInCircle:getOffset$1(x_.controlHeightLG/2),dotOffsetInSquare:getOffset$1(x_.borderRadiusLG)}),useStyle$4=genStyleHooks("FloatButton",x_=>{const{colorTextLightSolid:eme,colorBgElevated:$P,controlHeightLG:tme,marginXXL:ame,marginLG:nme,fontSize:rme,fontSizeIcon:ime,controlItemBgHover:ome,paddingXXS:lme,calc:sme}=x_,cme=merge$5(x_,{floatButtonBackgroundColor:$P,floatButtonColor:eme,floatButtonHoverBackgroundColor:ome,floatButtonFontSize:rme,floatButtonIconSize:sme(ime).mul(1.5).equal(),floatButtonSize:tme,floatButtonInsetBlockEnd:ame,floatButtonInsetInlineEnd:nme,floatButtonBodySize:sme(tme).sub(sme(lme).mul(2)).equal(),floatButtonBodyPadding:lme,badgeOffset:sme(lme).mul(1.5).equal()});return[floatButtonGroupStyle(cme),sharedFloatButtonStyle(cme),initFadeMotion(x_),floatButtonGroupMotion(cme)]},prepareComponentToken$4);var __rest$e=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const floatButtonPrefixCls="float-btn",InternalFloatButton=React__default.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,rootClassName:ame,style:nme,type:rme="default",shape:ime="circle",icon:ome,description:lme,tooltip:sme,htmlType:cme="button",badge:dme={}}=x_,ume=__rest$e(x_,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:fme,direction:pme}=reactExports.useContext(ConfigContext),hme=reactExports.useContext(FloatButtonGroupContext),bme=fme(floatButtonPrefixCls,$P),mme=useCSSVarCls(bme),[vme,gme,yme]=useStyle$4(bme,mme),_me=hme||ime,$me=classNames(gme,yme,mme,bme,tme,ame,`${bme}-${rme}`,`${bme}-${_me}`,{[`${bme}-rtl`]:pme==="rtl"}),[Cme]=useZIndex("FloatButton",nme==null?void 0:nme.zIndex),Sme=Object.assign(Object.assign({},nme),{zIndex:Cme}),Eme=omit$2(dme,["title","children","status","text"]),xme=reactExports.useMemo(()=>({prefixCls:bme,description:lme,icon:ome,type:rme}),[bme,lme,ome,rme]);let Tme=jsx("div",{className:`${bme}-body`,children:jsx(Content$8,{...Object.assign({},xme)})});return"badge"in x_&&(Tme=jsx(Badge$1,{...Object.assign({},Eme),children:Tme})),"tooltip"in x_&&(Tme=jsx(Tooltip$2,{title:sme,placement:pme==="rtl"?"right":"left",children:Tme})),vme(x_.href?jsx("a",{...Object.assign({ref:eme},ume,{className:$me,style:Sme}),children:Tme}):jsx("button",{...Object.assign({ref:eme},ume,{className:$me,style:Sme,type:cme}),children:Tme}))}),FloatButton=InternalFloatButton;var __rest$d=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const BackTop$1=React__default.forwardRef((x_,eme)=>{const{prefixCls:$P,className:tme,type:ame="default",shape:nme="circle",visibilityHeight:rme=400,icon:ime=jsx(RefIcon$e,{}),target:ome,onClick:lme,duration:sme=450}=x_,cme=__rest$d(x_,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[dme,ume]=reactExports.useState(rme===0),fme=React__default.useRef(null);React__default.useImperativeHandle(eme,()=>({nativeElement:fme.current}));const pme=()=>{var Cme;return((Cme=fme.current)===null||Cme===void 0?void 0:Cme.ownerDocument)||window},hme=throttleByAnimationFrame(Cme=>{const Sme=getScroll$2(Cme.target);ume(Sme>=rme)});reactExports.useEffect(()=>{const Sme=(ome||pme)();return hme({target:Sme}),Sme==null||Sme.addEventListener("scroll",hme),()=>{hme.cancel(),Sme==null||Sme.removeEventListener("scroll",hme)}},[ome]);const bme=Cme=>{scrollTo(0,{getContainer:ome||pme,duration:sme}),lme==null||lme(Cme)},{getPrefixCls:mme}=reactExports.useContext(ConfigContext),vme=mme(floatButtonPrefixCls,$P),gme=mme(),_me=reactExports.useContext(FloatButtonGroupContext)||nme,$me=Object.assign({prefixCls:vme,icon:ime,type:ame,shape:_me},cme);return jsx(CSSMotion,{visible:dme,motionName:`${gme}-fade`,children:(Cme,Sme)=>{let{className:Eme}=Cme;return jsx(FloatButton,{...Object.assign({ref:composeRef(fme,Sme)},$me,{onClick:bme,className:classNames(tme,Eme)})})}})});var __rest$c=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const FloatButtonGroup=x_=>{var eme;const{prefixCls:$P,className:tme,style:ame,shape:nme="circle",type:rme="default",placement:ime="top",icon:ome=React__default.createElement(RefIcon$6,null),closeIcon:lme,description:sme,trigger:cme,children:dme,onOpenChange:ume,open:fme,onClick:pme}=x_,hme=__rest$c(x_,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:bme,getPrefixCls:mme,floatButtonGroup:vme}=React__default.useContext(ConfigContext),gme=(eme=lme??(vme==null?void 0:vme.closeIcon))!==null&&eme!==void 0?eme:React__default.createElement(RefIcon$m,null),yme=mme(floatButtonPrefixCls,$P),_me=useCSSVarCls(yme),[$me,Cme,Sme]=useStyle$4(yme,_me),Eme=`${yme}-group`,xme=cme&&["click","hover"].includes(cme),Tme=ime&&["top","left","right","bottom"].includes(ime),Ome=classNames(Eme,Cme,Sme,_me,tme,{[`${Eme}-rtl`]:bme==="rtl",[`${Eme}-${nme}`]:nme,[`${Eme}-${nme}-shadow`]:!xme,[`${Eme}-${ime}`]:xme&&Tme}),[Rme]=useZIndex("FloatButton",ame==null?void 0:ame.zIndex),Nme=Object.assign(Object.assign({},ame),{zIndex:Rme}),Ime=classNames(Cme,`${Eme}-wrap`),[Pme,Mme]=useMergedState(!1,{value:fme}),kme=React__default.useRef(null),Bme=cme==="hover",Dme=cme==="click",jme=useEvent(zme=>{Pme!==zme&&(Mme(zme),ume==null||ume(zme))}),Vme=()=>{Bme&&jme(!0)},Wme=()=>{Bme&&jme(!1)},Lme=zme=>{Dme&&jme(!Pme),pme==null||pme(zme)};return React__default.useEffect(()=>{if(Dme){const zme=Ume=>{var Gme;!((Gme=kme.current)===null||Gme===void 0)&&Gme.contains(Ume.target)||jme(!1)};return document.addEventListener("click",zme,{capture:!0}),()=>document.removeEventListener("click",zme,{capture:!0})}},[Dme]),$me(React__default.createElement(FloatButtonGroupProvider,{value:nme},React__default.createElement("div",{ref:kme,className:Ome,style:Nme,onMouseEnter:Vme,onMouseLeave:Wme},xme?React__default.createElement(React__default.Fragment,null,React__default.createElement(CSSMotion,{visible:Pme,motionName:`${Eme}-wrap`},zme=>{let{className:Ume}=zme;return React__default.createElement("div",{className:classNames(Ume,Ime)},dme)}),React__default.createElement(FloatButton,Object.assign({type:rme,icon:Pme?gme:ome,description:sme,"aria-label":x_["aria-label"],className:`${Eme}-trigger`,onClick:Lme},hme))):dme)))};var __rest$b=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const PureFloatButton=x_=>{var{backTop:eme}=x_,$P=__rest$b(x_,["backTop"]);return eme?reactExports.createElement(BackTop$1,Object.assign({},$P,{visibilityHeight:0})):reactExports.createElement(FloatButton,Object.assign({},$P))},PurePanel=x_=>{var{className:eme,items:$P}=x_,tme=__rest$b(x_,["className","items"]);const{prefixCls:ame}=tme,{getPrefixCls:nme}=reactExports.useContext(ConfigContext),ime=`${nme(floatButtonPrefixCls,ame)}-pure`;return $P?reactExports.createElement(FloatButtonGroup,Object.assign({className:classNames(eme,ime)},tme),$P.map((ome,lme)=>reactExports.createElement(PureFloatButton,Object.assign({key:lme},ome)))):reactExports.createElement(PureFloatButton,Object.assign({className:classNames(eme,ime)},tme))};FloatButton.BackTop=BackTop$1;FloatButton.Group=FloatButtonGroup;FloatButton._InternalPanelDoNotUseOrYouWillBeFired=PurePanel;function useDebounce(x_){const[eme,$P]=reactExports.useState(x_);return reactExports.useEffect(()=>{const tme=setTimeout(()=>{$P(x_)},x_.length?0:10);return()=>{clearTimeout(tme)}},[x_]),eme}const genFormValidateMotionStyle=x_=>{const{componentCls:eme}=x_,$P=`${eme}-show-help`,tme=`${eme}-show-help-item`;return{[$P]:{transition:`opacity ${x_.motionDurationFast} ${x_.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[tme]:{overflow:"hidden",transition:`height ${x_.motionDurationFast} ${x_.motionEaseInOut},
                     opacity ${x_.motionDurationFast} ${x_.motionEaseInOut},
                     transform ${x_.motionDurationFast} ${x_.motionEaseInOut} !important`,[`&${tme}-appear, &${tme}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${tme}-leave-active`]:{transform:"translateY(-5px)"}}}}},resetForm=x_=>({legend:{display:"block",width:"100%",marginBottom:x_.marginLG,padding:0,color:x_.colorTextDescription,fontSize:x_.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit$1(x_.lineWidth)} ${x_.lineType} ${x_.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 ${unit$1(x_.controlOutlineWidth)} ${x_.controlOutline}`},output:{display:"block",paddingTop:15,color:x_.colorText,fontSize:x_.fontSize,lineHeight:x_.lineHeight}}),genFormSize=(x_,eme)=>{const{formItemCls:$P}=x_;return{[$P]:{[`${$P}-label > label`]:{height:eme},[`${$P}-control-input`]:{minHeight:eme}}}},genFormStyle=x_=>{const{componentCls:eme}=x_;return{[x_.componentCls]:Object.assign(Object.assign(Object.assign({},resetComponent(x_)),resetForm(x_)),{[`${eme}-text`]:{display:"inline-block",paddingInlineEnd:x_.paddingSM},"&-small":Object.assign({},genFormSize(x_,x_.controlHeightSM)),"&-large":Object.assign({},genFormSize(x_,x_.controlHeightLG))})}},genFormItemStyle=x_=>{const{formItemCls:eme,iconCls:$P,componentCls:tme,rootPrefixCls:ame,antCls:nme,labelRequiredMarkColor:rme,labelColor:ime,labelFontSize:ome,labelHeight:lme,labelColonMarginInlineStart:sme,labelColonMarginInlineEnd:cme,itemMarginBottom:dme}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{marginBottom:dme,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${nme}-row`]:{display:"none"},"&-has-warning":{[`${eme}-split`]:{color:x_.colorError}},"&-has-error":{[`${eme}-split`]:{color:x_.colorWarning}},[`${eme}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:x_.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:lme,color:ime,fontSize:ome,[`> ${$P}`]:{fontSize:x_.fontSize,verticalAlign:"top"},[`&${eme}-required:not(${eme}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:x_.marginXXS,color:rme,fontSize:x_.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${tme}-hide-required-mark &`]:{display:"none"}},[`${eme}-optional`]:{display:"inline-block",marginInlineStart:x_.marginXXS,color:x_.colorTextDescription,[`${tme}-hide-required-mark &`]:{display:"none"}},[`${eme}-tooltip`]:{color:x_.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:x_.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:sme,marginInlineEnd:cme},[`&${eme}-no-colon::after`]:{content:'"\\a0"'}}},[`${eme}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ame}-col-'"]):not([class*="' ${ame}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:x_.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[eme]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:x_.colorTextDescription,fontSize:x_.fontSize,lineHeight:x_.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:x_.controlHeightSM,transition:`color ${x_.motionDurationMid} ${x_.motionEaseOut}`},"&-explain":{"&-error":{color:x_.colorError},"&-warning":{color:x_.colorWarning}}},[`&-with-help ${eme}-explain`]:{height:"auto",opacity:1},[`${eme}-feedback-icon`]:{fontSize:x_.fontSize,textAlign:"center",visibility:"visible",animationName:zoomIn,animationDuration:x_.motionDurationMid,animationTimingFunction:x_.motionEaseOutBack,pointerEvents:"none","&-success":{color:x_.colorSuccess},"&-error":{color:x_.colorError},"&-warning":{color:x_.colorWarning},"&-validating":{color:x_.colorPrimary}}})}},genHorizontalStyle=(x_,eme)=>{const{formItemCls:$P}=x_;return{[`${eme}-horizontal`]:{[`${$P}-label`]:{flexGrow:0},[`${$P}-control`]:{flex:"1 1 0",minWidth:0},[`${$P}-label[class$='-24'], ${$P}-label[class*='-24 ']`]:{[`& + ${$P}-control`]:{minWidth:"unset"}}}}},genInlineStyle=x_=>{const{componentCls:eme,formItemCls:$P,inlineItemMarginBottom:tme}=x_;return{[`${eme}-inline`]:{display:"flex",flexWrap:"wrap",[$P]:{flex:"none",marginInlineEnd:x_.margin,marginBottom:tme,"&-row":{flexWrap:"nowrap"},[`> ${$P}-label,
        > ${$P}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$P}-label`]:{flex:"none"},[`${eme}-text`]:{display:"inline-block"},[`${$P}-has-feedback`]:{display:"inline-block"}}}}},makeVerticalLayoutLabel=x_=>({padding:x_.verticalLabelPadding,margin:x_.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),makeVerticalLayout=x_=>{const{componentCls:eme,formItemCls:$P,rootPrefixCls:tme}=x_;return{[`${$P} ${$P}-label`]:makeVerticalLayoutLabel(x_),[`${eme}:not(${eme}-inline)`]:{[$P]:{flexWrap:"wrap",[`${$P}-label, ${$P}-control`]:{[`&:not([class*=" ${tme}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},genVerticalStyle=x_=>{const{componentCls:eme,formItemCls:$P,antCls:tme}=x_;return{[`${eme}-vertical`]:{[`${$P}:not(${$P}-horizontal)`]:{[`${$P}-row`]:{flexDirection:"column"},[`${$P}-label > label`]:{height:"auto"},[`${$P}-control`]:{width:"100%"},[`${$P}-label,
        ${tme}-col-24${$P}-label,
        ${tme}-col-xl-24${$P}-label`]:makeVerticalLayoutLabel(x_)}},[`@media (max-width: ${unit$1(x_.screenXSMax)})`]:[makeVerticalLayout(x_),{[eme]:{[`${$P}:not(${$P}-horizontal)`]:{[`${tme}-col-xs-24${$P}-label`]:makeVerticalLayoutLabel(x_)}}}],[`@media (max-width: ${unit$1(x_.screenSMMax)})`]:{[eme]:{[`${$P}:not(${$P}-horizontal)`]:{[`${tme}-col-sm-24${$P}-label`]:makeVerticalLayoutLabel(x_)}}},[`@media (max-width: ${unit$1(x_.screenMDMax)})`]:{[eme]:{[`${$P}:not(${$P}-horizontal)`]:{[`${tme}-col-md-24${$P}-label`]:makeVerticalLayoutLabel(x_)}}},[`@media (max-width: ${unit$1(x_.screenLGMax)})`]:{[eme]:{[`${$P}:not(${$P}-horizontal)`]:{[`${tme}-col-lg-24${$P}-label`]:makeVerticalLayoutLabel(x_)}}}}},genItemVerticalStyle=x_=>{const{formItemCls:eme,antCls:$P}=x_;return{[`${eme}-vertical`]:{[`${eme}-row`]:{flexDirection:"column"},[`${eme}-label > label`]:{height:"auto"},[`${eme}-control`]:{width:"100%"}},[`${eme}-vertical ${eme}-label,
      ${$P}-col-24${eme}-label,
      ${$P}-col-xl-24${eme}-label`]:makeVerticalLayoutLabel(x_),[`@media (max-width: ${unit$1(x_.screenXSMax)})`]:[makeVerticalLayout(x_),{[eme]:{[`${$P}-col-xs-24${eme}-label`]:makeVerticalLayoutLabel(x_)}}],[`@media (max-width: ${unit$1(x_.screenSMMax)})`]:{[eme]:{[`${$P}-col-sm-24${eme}-label`]:makeVerticalLayoutLabel(x_)}},[`@media (max-width: ${unit$1(x_.screenMDMax)})`]:{[eme]:{[`${$P}-col-md-24${eme}-label`]:makeVerticalLayoutLabel(x_)}},[`@media (max-width: ${unit$1(x_.screenLGMax)})`]:{[eme]:{[`${$P}-col-lg-24${eme}-label`]:makeVerticalLayoutLabel(x_)}}}},prepareComponentToken$3=x_=>({labelRequiredMarkColor:x_.colorError,labelColor:x_.colorTextHeading,labelFontSize:x_.fontSize,labelHeight:x_.controlHeight,labelColonMarginInlineStart:x_.marginXXS/2,labelColonMarginInlineEnd:x_.marginXS,itemMarginBottom:x_.marginLG,verticalLabelPadding:`0 0 ${x_.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),prepareToken=(x_,eme)=>merge$5(x_,{formItemCls:`${x_.componentCls}-item`,rootPrefixCls:eme}),useStyle$3=genStyleHooks("Form",(x_,eme)=>{let{rootPrefixCls:$P}=eme;const tme=prepareToken(x_,$P);return[genFormStyle(tme),genFormItemStyle(tme),genFormValidateMotionStyle(tme),genHorizontalStyle(tme,tme.componentCls),genHorizontalStyle(tme,tme.formItemCls),genInlineStyle(tme),genVerticalStyle(tme),genItemVerticalStyle(tme),genCollapseMotion(tme),zoomIn]},prepareComponentToken$3,{order:-1e3}),EMPTY_LIST=[];function toErrorEntity(x_,eme,$P){let tme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof x_=="string"?x_:`${eme}-${tme}`,error:x_,errorStatus:$P}}const ErrorList=x_=>{let{help:eme,helpStatus:$P,errors:tme=EMPTY_LIST,warnings:ame=EMPTY_LIST,className:nme,fieldId:rme,onVisibleChanged:ime}=x_;const{prefixCls:ome}=reactExports.useContext(FormItemPrefixContext),lme=`${ome}-item-explain`,sme=useCSSVarCls(ome),[cme,dme,ume]=useStyle$3(ome,sme),fme=reactExports.useMemo(()=>initCollapseMotion(ome),[ome]),pme=useDebounce(tme),hme=useDebounce(ame),bme=reactExports.useMemo(()=>eme!=null?[toErrorEntity(eme,"help",$P)]:[].concat(_toConsumableArray$1(pme.map((gme,yme)=>toErrorEntity(gme,"error","error",yme))),_toConsumableArray$1(hme.map((gme,yme)=>toErrorEntity(gme,"warning","warning",yme)))),[eme,$P,pme,hme]),mme=reactExports.useMemo(()=>{const gme={};return bme.forEach(yme=>{let{key:_me}=yme;gme[_me]=(gme[_me]||0)+1}),bme.map((yme,_me)=>Object.assign(Object.assign({},yme),{key:gme[yme.key]>1?`${yme.key}-fallback-${_me}`:yme.key}))},[bme]),vme={};return rme&&(vme.id=`${rme}_help`),cme(reactExports.createElement(CSSMotion,{motionDeadline:fme.motionDeadline,motionName:`${ome}-show-help`,visible:!!mme.length,onVisibleChanged:ime},gme=>{const{className:yme,style:_me}=gme;return reactExports.createElement("div",Object.assign({},vme,{className:classNames(lme,yme,ume,sme,nme,dme),style:_me,role:"alert"}),reactExports.createElement(CSSMotionList,Object.assign({keys:mme},initCollapseMotion(ome),{motionName:`${ome}-show-help-item`,component:!1}),$me=>{const{key:Cme,error:Sme,errorStatus:Eme,className:xme,style:Tme}=$me;return reactExports.createElement("div",{key:Cme,className:classNames(xme,{[`${lme}-${Eme}`]:Eme}),style:Tme},Sme)}))}))},formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$2(x_){return x_===void 0||x_===!1?[]:Array.isArray(x_)?x_:[x_]}function getFieldId(x_,eme){if(!x_.length)return;const $P=x_.join("_");return eme?`${eme}_${$P}`:formItemNameBlackList.includes($P)?`${defaultItemNamePrefixCls}_${$P}`:$P}function getStatus(x_,eme,$P,tme,ame,nme){let rme=tme;return nme!==void 0?rme=nme:$P.validating?rme="validating":x_.length?rme="error":eme.length?rme="warning":($P.touched||ame&&$P.validated)&&(rme="success"),rme}function toNamePathStr(x_){return toArray$2(x_).join("_")}function getFieldDOMNode(x_,eme){const $P=eme.getFieldInstance(x_),tme=getDOM($P);if(tme)return tme;const ame=getFieldId(toArray$2(x_),eme.__INTERNAL__.name);if(ame)return document.getElementById(ame)}function useForm$1(x_){const[eme]=useForm$2(),$P=reactExports.useRef({}),tme=reactExports.useMemo(()=>x_??Object.assign(Object.assign({},eme),{__INTERNAL__:{itemRef:ame=>nme=>{const rme=toNamePathStr(ame);nme?$P.current[rme]=nme:delete $P.current[rme]}},scrollToField:function(ame){let nme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const rme=getFieldDOMNode(ame,tme);rme&&e$2(rme,Object.assign({scrollMode:"if-needed",block:"nearest"},nme))},focusField:ame=>{var nme;const rme=getFieldDOMNode(ame,tme);rme&&((nme=rme.focus)===null||nme===void 0||nme.call(rme))},getFieldInstance:ame=>{const nme=toNamePathStr(ame);return $P.current[nme]}}),[x_,eme]);return[tme]}var __rest$a=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalForm=(x_,eme)=>{const $P=reactExports.useContext(DisabledContext),{getPrefixCls:tme,direction:ame,form:nme}=reactExports.useContext(ConfigContext),{prefixCls:rme,className:ime,rootClassName:ome,size:lme,disabled:sme=$P,form:cme,colon:dme,labelAlign:ume,labelWrap:fme,labelCol:pme,wrapperCol:hme,hideRequiredMark:bme,layout:mme="horizontal",scrollToFirstError:vme,requiredMark:gme,onFinishFailed:yme,name:_me,style:$me,feedbackIcons:Cme,variant:Sme}=x_,Eme=__rest$a(x_,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),xme=useSize(lme),Tme=reactExports.useContext(ValidateMessagesContext),Ome=reactExports.useMemo(()=>gme!==void 0?gme:bme?!1:nme&&nme.requiredMark!==void 0?nme.requiredMark:!0,[bme,gme,nme]),Rme=dme??(nme==null?void 0:nme.colon),Nme=tme("form",rme),Ime=useCSSVarCls(Nme),[Pme,Mme,kme]=useStyle$3(Nme,Ime),Bme=classNames(Nme,`${Nme}-${mme}`,{[`${Nme}-hide-required-mark`]:Ome===!1,[`${Nme}-rtl`]:ame==="rtl",[`${Nme}-${xme}`]:xme},kme,Ime,Mme,nme==null?void 0:nme.className,ime,ome),[Dme]=useForm$1(cme),{__INTERNAL__:jme}=Dme;jme.name=_me;const Vme=reactExports.useMemo(()=>({name:_me,labelAlign:ume,labelCol:pme,labelWrap:fme,wrapperCol:hme,vertical:mme==="vertical",colon:Rme,requiredMark:Ome,itemRef:jme.itemRef,form:Dme,feedbackIcons:Cme}),[_me,ume,pme,hme,mme,Rme,Ome,Dme,Cme]),Wme=reactExports.useRef(null);reactExports.useImperativeHandle(eme,()=>{var Ume;return Object.assign(Object.assign({},Dme),{nativeElement:(Ume=Wme.current)===null||Ume===void 0?void 0:Ume.nativeElement})});const Lme=(Ume,Gme)=>{if(Ume){let Jme={block:"nearest"};typeof Ume=="object"&&(Jme=Object.assign(Object.assign({},Jme),Ume)),Dme.scrollToField(Gme,Jme),Jme.focus&&Dme.focusField(Gme)}},zme=Ume=>{if(yme==null||yme(Ume),Ume.errorFields.length){const Gme=Ume.errorFields[0].name;if(vme!==void 0){Lme(vme,Gme);return}nme&&nme.scrollToFirstError!==void 0&&Lme(nme.scrollToFirstError,Gme)}};return Pme(reactExports.createElement(VariantContext.Provider,{value:Sme},reactExports.createElement(DisabledContextProvider,{disabled:sme},reactExports.createElement(SizeContext.Provider,{value:xme},reactExports.createElement(FormProvider$1,{validateMessages:Tme},reactExports.createElement(FormContext.Provider,{value:Vme},reactExports.createElement(RefForm,Object.assign({id:_me},Eme,{name:_me,onFinishFailed:zme,form:Dme,ref:Wme,style:Object.assign(Object.assign({},nme==null?void 0:nme.style),$me),className:Bme}))))))))},Form$4=reactExports.forwardRef(InternalForm);function useChildren(x_){if(typeof x_=="function")return x_;const eme=toArray$6(x_);return eme.length<=1?eme[0]:eme}const useFormItemStatus=()=>{const{status:x_,errors:eme=[],warnings:$P=[]}=reactExports.useContext(FormItemInputContext);return{status:x_,errors:eme,warnings:$P}};useFormItemStatus.Context=FormItemInputContext;function useFrameState(x_){const[eme,$P]=reactExports.useState(x_),tme=reactExports.useRef(null),ame=reactExports.useRef([]),nme=reactExports.useRef(!1);reactExports.useEffect(()=>(nme.current=!1,()=>{nme.current=!0,wrapperRaf.cancel(tme.current),tme.current=null}),[]);function rme(ime){nme.current||(tme.current===null&&(ame.current=[],tme.current=wrapperRaf(()=>{tme.current=null,$P(ome=>{let lme=ome;return ame.current.forEach(sme=>{lme=sme(lme)}),lme})})),ame.current.push(ime))}return[eme,rme]}function useItemRef(){const{itemRef:x_}=reactExports.useContext(FormContext),eme=reactExports.useRef({});function $P(tme,ame){const nme=ame&&typeof ame=="object"&&ame.ref,rme=tme.join("_");return(eme.current.name!==rme||eme.current.originRef!==nme)&&(eme.current.name=rme,eme.current.originRef=nme,eme.current.ref=composeRef(x_(tme),nme)),eme.current.ref}return $P}const genFallbackStyle=x_=>{const{formItemCls:eme}=x_;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${eme}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(x_,eme)=>{let{rootPrefixCls:$P}=eme;const tme=prepareToken(x_,$P);return[genFallbackStyle(tme)]});var __rest$9=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const GRID_MAX=24,FormItemInput=x_=>{const{prefixCls:eme,status:$P,labelCol:tme,wrapperCol:ame,children:nme,errors:rme,warnings:ime,_internalItemRender:ome,extra:lme,help:sme,fieldId:cme,marginBottom:dme,onErrorVisibleChanged:ume,label:fme}=x_,pme=`${eme}-item`,hme=reactExports.useContext(FormContext),bme=reactExports.useMemo(()=>{let Rme=Object.assign({},ame||hme.wrapperCol||{});return fme===null&&!tme&&!ame&&hme.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Ime=>{const Pme=Ime?[Ime]:[],Mme=get$8(hme.labelCol,Pme),kme=typeof Mme=="object"?Mme:{},Bme=get$8(Rme,Pme),Dme=typeof Bme=="object"?Bme:{};"span"in kme&&!("offset"in Dme)&&kme.span<GRID_MAX&&(Rme=set$6(Rme,[].concat(Pme,["offset"]),kme.span))}),Rme},[ame,hme]),mme=classNames(`${pme}-control`,bme.className),vme=reactExports.useMemo(()=>__rest$9(hme,["labelCol","wrapperCol"]),[hme]),gme=reactExports.useRef(null),[yme,_me]=reactExports.useState(0);useLayoutEffect$1(()=>{lme&&gme.current?_me(gme.current.clientHeight):_me(0)},[lme]);const $me=reactExports.createElement("div",{className:`${pme}-control-input`},reactExports.createElement("div",{className:`${pme}-control-input-content`},nme)),Cme=reactExports.useMemo(()=>({prefixCls:eme,status:$P}),[eme,$P]),Sme=dme!==null||rme.length||ime.length?reactExports.createElement(FormItemPrefixContext.Provider,{value:Cme},reactExports.createElement(ErrorList,{fieldId:cme,errors:rme,warnings:ime,help:sme,helpStatus:$P,className:`${pme}-explain-connected`,onVisibleChanged:ume})):null,Eme={};cme&&(Eme.id=`${cme}_extra`);const xme=lme?reactExports.createElement("div",Object.assign({},Eme,{className:`${pme}-extra`,ref:gme}),lme):null,Tme=Sme||xme?reactExports.createElement("div",{className:`${pme}-additional`,style:dme?{minHeight:dme+yme}:{}},Sme,xme):null,Ome=ome&&ome.mark==="pro_table_render"&&ome.render?ome.render(x_,{input:$me,errorList:Sme,extra:xme}):reactExports.createElement(reactExports.Fragment,null,$me,Tme);return reactExports.createElement(FormContext.Provider,{value:vme},reactExports.createElement(Col,Object.assign({},bme,{className:mme}),Ome),reactExports.createElement(FallbackCmp,{prefixCls:eme}))};var QuestionCircleOutlined$1={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"},QuestionCircleOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:QuestionCircleOutlined$1}))},RefIcon$5=reactExports.forwardRef(QuestionCircleOutlined),__rest$8=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function toTooltipProps(x_){return x_?typeof x_=="object"&&!reactExports.isValidElement(x_)?x_:{title:x_}:null}const FormItemLabel=x_=>{let{prefixCls:eme,label:$P,htmlFor:tme,labelCol:ame,labelAlign:nme,colon:rme,required:ime,requiredMark:ome,tooltip:lme,vertical:sme}=x_;var cme;const[dme]=useLocale("Form"),{labelAlign:ume,labelCol:fme,labelWrap:pme,colon:hme}=reactExports.useContext(FormContext);if(!$P)return null;const bme=ame||fme||{},mme=nme||ume,vme=`${eme}-item-label`,gme=classNames(vme,mme==="left"&&`${vme}-left`,bme.className,{[`${vme}-wrap`]:!!pme});let yme=$P;const _me=rme===!0||hme!==!1&&rme!==!1;_me&&!sme&&typeof $P=="string"&&$P.trim()&&(yme=$P.replace(/[:|：]\s*$/,""));const Cme=toTooltipProps(lme);if(Cme){const{icon:Tme=reactExports.createElement(RefIcon$5,null)}=Cme,Ome=__rest$8(Cme,["icon"]),Rme=reactExports.createElement(Tooltip$2,Object.assign({},Ome),reactExports.cloneElement(Tme,{className:`${eme}-item-tooltip`,title:"",onClick:Nme=>{Nme.preventDefault()},tabIndex:null}));yme=reactExports.createElement(reactExports.Fragment,null,yme,Rme)}const Sme=ome==="optional",Eme=typeof ome=="function";Eme?yme=ome(yme,{required:!!ime}):Sme&&!ime&&(yme=reactExports.createElement(reactExports.Fragment,null,yme,reactExports.createElement("span",{className:`${eme}-item-optional`,title:""},(dme==null?void 0:dme.optional)||((cme=localeValues$2.Form)===null||cme===void 0?void 0:cme.optional))));const xme=classNames({[`${eme}-item-required`]:ime,[`${eme}-item-required-mark-optional`]:Sme||Eme,[`${eme}-item-no-colon`]:!_me});return reactExports.createElement(Col,Object.assign({},bme,{className:gme}),reactExports.createElement("label",{htmlFor:tme,className:xme,title:typeof $P=="string"?$P:""},yme))},iconMap={success:RefIcon$o,warning:RefIcon$l,error:RefIcon$n,validating:RefIcon$j};function StatusProvider(x_){let{children:eme,errors:$P,warnings:tme,hasFeedback:ame,validateStatus:nme,prefixCls:rme,meta:ime,noStyle:ome}=x_;const lme=`${rme}-item`,{feedbackIcons:sme}=reactExports.useContext(FormContext),cme=getStatus($P,tme,ime,null,!!ame,nme),{isFormItemInput:dme,status:ume,hasFeedback:fme,feedbackIcon:pme}=reactExports.useContext(FormItemInputContext),hme=reactExports.useMemo(()=>{var bme;let mme;if(ame){const gme=ame!==!0&&ame.icons||sme,yme=cme&&((bme=gme==null?void 0:gme({status:cme,errors:$P,warnings:tme}))===null||bme===void 0?void 0:bme[cme]),_me=cme&&iconMap[cme];mme=yme!==!1&&_me?reactExports.createElement("span",{className:classNames(`${lme}-feedback-icon`,`${lme}-feedback-icon-${cme}`)},yme||reactExports.createElement(_me,null)):null}const vme={status:cme||"",errors:$P,warnings:tme,hasFeedback:!!ame,feedbackIcon:mme,isFormItemInput:!0};return ome&&(vme.status=(cme??ume)||"",vme.isFormItemInput=dme,vme.hasFeedback=!!(ame??fme),vme.feedbackIcon=ame!==void 0?vme.feedbackIcon:pme),vme},[cme,ame,ome,dme,ume]);return reactExports.createElement(FormItemInputContext.Provider,{value:hme},eme)}var __rest$7=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function ItemHolder(x_){const{prefixCls:eme,className:$P,rootClassName:tme,style:ame,help:nme,errors:rme,warnings:ime,validateStatus:ome,meta:lme,hasFeedback:sme,hidden:cme,children:dme,fieldId:ume,required:fme,isRequired:pme,onSubItemMetaChange:hme,layout:bme}=x_,mme=__rest$7(x_,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),vme=`${eme}-item`,{requiredMark:gme,vertical:yme}=reactExports.useContext(FormContext),_me=yme||bme==="vertical",$me=reactExports.useRef(null),Cme=useDebounce(rme),Sme=useDebounce(ime),Eme=nme!=null,xme=!!(Eme||rme.length||ime.length),Tme=!!$me.current&&isVisible$1($me.current),[Ome,Rme]=reactExports.useState(null);useLayoutEffect$1(()=>{if(xme&&$me.current){const kme=getComputedStyle($me.current);Rme(parseInt(kme.marginBottom,10))}},[xme,Tme]);const Nme=kme=>{kme||Rme(null)},Pme=function(){let kme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Bme=kme?Cme:lme.errors,Dme=kme?Sme:lme.warnings;return getStatus(Bme,Dme,lme,"",!!sme,ome)}(),Mme=classNames(vme,$P,tme,{[`${vme}-with-help`]:Eme||Cme.length||Sme.length,[`${vme}-has-feedback`]:Pme&&sme,[`${vme}-has-success`]:Pme==="success",[`${vme}-has-warning`]:Pme==="warning",[`${vme}-has-error`]:Pme==="error",[`${vme}-is-validating`]:Pme==="validating",[`${vme}-hidden`]:cme,[`${vme}-${bme}`]:bme});return reactExports.createElement("div",{className:Mme,style:ame,ref:$me},reactExports.createElement(Row$2,Object.assign({className:`${vme}-row`},omit$2(mme,["_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"])),reactExports.createElement(FormItemLabel,Object.assign({htmlFor:ume},x_,{requiredMark:gme,required:fme??pme,prefixCls:eme,vertical:_me})),reactExports.createElement(FormItemInput,Object.assign({},x_,lme,{errors:Cme,warnings:Sme,prefixCls:eme,status:Pme,help:nme,marginBottom:Ome,onErrorVisibleChanged:Nme}),reactExports.createElement(NoStyleItemContext.Provider,{value:hme},reactExports.createElement(StatusProvider,{prefixCls:eme,meta:lme,errors:lme.errors,warnings:lme.warnings,hasFeedback:sme,validateStatus:Pme},dme)))),!!Ome&&reactExports.createElement("div",{className:`${vme}-margin-offset`,style:{marginBottom:-Ome}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(x_,eme){const $P=Object.keys(x_),tme=Object.keys(eme);return $P.length===tme.length&&$P.every(ame=>{const nme=x_[ame],rme=eme[ame];return nme===rme||typeof nme=="function"||typeof rme=="function"})}const MemoInput=reactExports.memo(x_=>{let{children:eme}=x_;return eme},(x_,eme)=>isSimilarControl(x_.control,eme.control)&&x_.update===eme.update&&x_.childProps.length===eme.childProps.length&&x_.childProps.every(($P,tme)=>$P===eme.childProps[tme]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(x_){const{name:eme,noStyle:$P,className:tme,dependencies:ame,prefixCls:nme,shouldUpdate:rme,rules:ime,children:ome,required:lme,label:sme,messageVariables:cme,trigger:dme="onChange",validateTrigger:ume,hidden:fme,help:pme,layout:hme}=x_,{getPrefixCls:bme}=reactExports.useContext(ConfigContext),{name:mme}=reactExports.useContext(FormContext),vme=useChildren(ome),gme=typeof vme=="function",yme=reactExports.useContext(NoStyleItemContext),{validateTrigger:_me}=reactExports.useContext(Context$2),$me=ume!==void 0?ume:_me,Cme=eme!=null,Sme=bme("form",nme),Eme=useCSSVarCls(Sme),[xme,Tme,Ome]=useStyle$3(Sme,Eme);devUseWarning();const Rme=reactExports.useContext(ListContext),Nme=reactExports.useRef(),[Ime,Pme]=useFrameState({}),[Mme,kme]=useSafeState(()=>genEmptyMeta()),Bme=Ume=>{const Gme=Rme==null?void 0:Rme.getKey(Ume.name);if(kme(Ume.destroy?genEmptyMeta():Ume,!0),$P&&pme!==!1&&yme){let Jme=Ume.name;if(Ume.destroy)Jme=Nme.current||Jme;else if(Gme!==void 0){const[Yme,Qme]=Gme;Jme=[Yme].concat(_toConsumableArray$1(Qme)),Nme.current=Jme}yme(Ume,Jme)}},Dme=(Ume,Gme)=>{Pme(Jme=>{const Yme=Object.assign({},Jme),Xme=[].concat(_toConsumableArray$1(Ume.name.slice(0,-1)),_toConsumableArray$1(Gme)).join(NAME_SPLIT);return Ume.destroy?delete Yme[Xme]:Yme[Xme]=Ume,Yme})},[jme,Vme]=reactExports.useMemo(()=>{const Ume=_toConsumableArray$1(Mme.errors),Gme=_toConsumableArray$1(Mme.warnings);return Object.values(Ime).forEach(Jme=>{Ume.push.apply(Ume,_toConsumableArray$1(Jme.errors||[])),Gme.push.apply(Gme,_toConsumableArray$1(Jme.warnings||[]))}),[Ume,Gme]},[Ime,Mme.errors,Mme.warnings]),Wme=useItemRef();function Lme(Ume,Gme,Jme){return $P&&!fme?reactExports.createElement(StatusProvider,{prefixCls:Sme,hasFeedback:x_.hasFeedback,validateStatus:x_.validateStatus,meta:Mme,errors:jme,warnings:Vme,noStyle:!0},Ume):reactExports.createElement(ItemHolder,Object.assign({key:"row"},x_,{className:classNames(tme,Ome,Eme,Tme),prefixCls:Sme,fieldId:Gme,isRequired:Jme,errors:jme,warnings:Vme,meta:Mme,onSubItemMetaChange:Dme,layout:hme}),Ume)}if(!Cme&&!gme&&!ame)return xme(Lme(vme));let zme={};return typeof sme=="string"?zme.label=sme:eme&&(zme.label=String(eme)),cme&&(zme=Object.assign(Object.assign({},zme),cme)),xme(reactExports.createElement(WrapperField,Object.assign({},x_,{messageVariables:zme,trigger:dme,validateTrigger:$me,onMetaChange:Bme}),(Ume,Gme,Jme)=>{const Yme=toArray$2(eme).length&&Gme?Gme.name:[],Qme=getFieldId(Yme,mme),Xme=lme!==void 0?lme:!!(ime!=null&&ime.some(nbe=>{if(nbe&&typeof nbe=="object"&&nbe.required&&!nbe.warningOnly)return!0;if(typeof nbe=="function"){const lbe=nbe(Jme);return(lbe==null?void 0:lbe.required)&&!(lbe!=null&&lbe.warningOnly)}return!1})),Kme=Object.assign({},Ume);let Zme=null;if(Array.isArray(vme)&&Cme)Zme=vme;else if(!(gme&&(!(rme||ame)||Cme))){if(!(ame&&!gme&&!Cme))if(reactExports.isValidElement(vme)){const nbe=Object.assign(Object.assign({},vme.props),Kme);if(nbe.id||(nbe.id=Qme),pme||jme.length>0||Vme.length>0||x_.extra){const abe=[];(pme||jme.length>0)&&abe.push(`${Qme}_help`),x_.extra&&abe.push(`${Qme}_extra`),nbe["aria-describedby"]=abe.join(" ")}jme.length>0&&(nbe["aria-invalid"]="true"),Xme&&(nbe["aria-required"]="true"),supportRef(vme)&&(nbe.ref=Wme(Yme,vme)),new Set([].concat(_toConsumableArray$1(toArray$2(dme)),_toConsumableArray$1(toArray$2($me)))).forEach(abe=>{nbe[abe]=function(){for(var obe,hbe,ube,mbe,pbe,_be=arguments.length,Sbe=new Array(_be),vbe=0;vbe<_be;vbe++)Sbe[vbe]=arguments[vbe];(ube=Kme[abe])===null||ube===void 0||(obe=ube).call.apply(obe,[Kme].concat(Sbe)),(pbe=(mbe=vme.props)[abe])===null||pbe===void 0||(hbe=pbe).call.apply(hbe,[mbe].concat(Sbe))}});const ibe=[nbe["aria-required"],nbe["aria-invalid"],nbe["aria-describedby"]];Zme=reactExports.createElement(MemoInput,{control:Kme,update:vme,childProps:ibe},cloneElement(vme,nbe))}else gme&&(rme||ame)&&!Cme?Zme=vme(Jme):Zme=vme}return Lme(Zme,Qme,Xme)}))}const FormItem$1=InternalFormItem;FormItem$1.useStatus=useFormItemStatus;var __rest$6=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const FormList=x_=>{var{prefixCls:eme,children:$P}=x_,tme=__rest$6(x_,["prefixCls","children"]);const{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=ame("form",eme),rme=reactExports.useMemo(()=>({prefixCls:nme,status:"error"}),[nme]);return reactExports.createElement(List$3,Object.assign({},tme),(ime,ome,lme)=>reactExports.createElement(FormItemPrefixContext.Provider,{value:rme},$P(ime.map(sme=>Object.assign(Object.assign({},sme),{fieldKey:sme.key})),ome,{errors:lme.errors,warnings:lme.warnings})))};function useFormInstance(){const{form:x_}=reactExports.useContext(FormContext);return x_}const Form$3=Form$4;Form$3.Item=FormItem$1;Form$3.List=FormList;Form$3.ErrorList=ErrorList;Form$3.useForm=useForm$1;Form$3.useFormInstance=useFormInstance;Form$3.useWatch=useWatch$2;Form$3.Provider=FormProvider$1;Form$3.create=()=>{};function getClientSize(){var x_=document.documentElement.clientWidth,eme=window.innerHeight||document.documentElement.clientHeight;return{width:x_,height:eme}}function getOffset(x_){var eme=x_.getBoundingClientRect(),$P=document.documentElement;return{left:eme.left+(window.pageXOffset||$P.scrollLeft)-($P.clientLeft||document.body.clientLeft||0),top:eme.top+(window.pageYOffset||$P.scrollTop)-($P.clientTop||document.body.clientTop||0)}}function addEventListenerWrap(x_,eme,$P,tme){var ame=ReactDOM.unstable_batchedUpdates?function(rme){ReactDOM.unstable_batchedUpdates($P,rme)}:$P;return x_!=null&&x_.addEventListener&&x_.addEventListener(eme,ame,tme),{remove:function(){x_!=null&&x_.removeEventListener&&x_.removeEventListener(eme,ame,tme)}}}var PreviewGroupContext=reactExports.createContext(null),Operations=function(eme){var $P=eme.visible,tme=eme.maskTransitionName,ame=eme.getContainer,nme=eme.prefixCls,rme=eme.rootClassName,ime=eme.icons,ome=eme.countRender,lme=eme.showSwitch,sme=eme.showProgress,cme=eme.current,dme=eme.transform,ume=eme.count,fme=eme.scale,pme=eme.minScale,hme=eme.maxScale,bme=eme.closeIcon,mme=eme.onActive,vme=eme.onClose,gme=eme.onZoomIn,yme=eme.onZoomOut,_me=eme.onRotateRight,$me=eme.onRotateLeft,Cme=eme.onFlipX,Sme=eme.onFlipY,Eme=eme.onReset,xme=eme.toolbarRender,Tme=eme.zIndex,Ome=eme.image,Rme=reactExports.useContext(PreviewGroupContext),Nme=ime.rotateLeft,Ime=ime.rotateRight,Pme=ime.zoomIn,Mme=ime.zoomOut,kme=ime.close,Bme=ime.left,Dme=ime.right,jme=ime.flipX,Vme=ime.flipY,Wme="".concat(nme,"-operations-operation");reactExports.useEffect(function(){var lbe=function(abe){abe.keyCode===KeyCode.ESC&&vme()};return $P&&window.addEventListener("keydown",lbe),function(){window.removeEventListener("keydown",lbe)}},[$P]);var Lme=function(ibe,abe){ibe.preventDefault(),ibe.stopPropagation(),mme(abe)},zme=reactExports.useCallback(function(lbe){var ibe=lbe.type,abe=lbe.disabled,obe=lbe.onClick,hbe=lbe.icon;return reactExports.createElement("div",{key:ibe,className:classNames(Wme,"".concat(nme,"-operations-operation-").concat(ibe),_defineProperty$7({},"".concat(nme,"-operations-operation-disabled"),!!abe)),onClick:obe},hbe)},[Wme,nme]),Ume=lme?zme({icon:Bme,onClick:function(ibe){return Lme(ibe,-1)},type:"prev",disabled:cme===0}):void 0,Gme=lme?zme({icon:Dme,onClick:function(ibe){return Lme(ibe,1)},type:"next",disabled:cme===ume-1}):void 0,Jme=zme({icon:Vme,onClick:Sme,type:"flipY"}),Yme=zme({icon:jme,onClick:Cme,type:"flipX"}),Qme=zme({icon:Nme,onClick:$me,type:"rotateLeft"}),Xme=zme({icon:Ime,onClick:_me,type:"rotateRight"}),Kme=zme({icon:Mme,onClick:yme,type:"zoomOut",disabled:fme<=pme}),Zme=zme({icon:Pme,onClick:gme,type:"zoomIn",disabled:fme===hme}),nbe=reactExports.createElement("div",{className:"".concat(nme,"-operations")},Jme,Yme,Qme,Xme,Kme,Zme);return reactExports.createElement(CSSMotion,{visible:$P,motionName:tme},function(lbe){var ibe=lbe.className,abe=lbe.style;return reactExports.createElement(Portal$1,{open:!0,getContainer:ame??document.body},reactExports.createElement("div",{className:classNames("".concat(nme,"-operations-wrapper"),ibe,rme),style:_objectSpread2$4(_objectSpread2$4({},abe),{},{zIndex:Tme})},bme===null?null:reactExports.createElement("button",{className:"".concat(nme,"-close"),onClick:vme},bme||kme),lme&&reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",{className:classNames("".concat(nme,"-switch-left"),_defineProperty$7({},"".concat(nme,"-switch-left-disabled"),cme===0)),onClick:function(hbe){return Lme(hbe,-1)}},Bme),reactExports.createElement("div",{className:classNames("".concat(nme,"-switch-right"),_defineProperty$7({},"".concat(nme,"-switch-right-disabled"),cme===ume-1)),onClick:function(hbe){return Lme(hbe,1)}},Dme)),reactExports.createElement("div",{className:"".concat(nme,"-footer")},sme&&reactExports.createElement("div",{className:"".concat(nme,"-progress")},ome?ome(cme+1,ume):"".concat(cme+1," / ").concat(ume)),xme?xme(nbe,_objectSpread2$4(_objectSpread2$4({icons:{prevIcon:Ume,nextIcon:Gme,flipYIcon:Jme,flipXIcon:Yme,rotateLeftIcon:Qme,rotateRightIcon:Xme,zoomOutIcon:Kme,zoomInIcon:Zme},actions:{onActive:mme,onFlipY:Sme,onFlipX:Cme,onRotateLeft:$me,onRotateRight:_me,onZoomOut:yme,onZoomIn:gme,onReset:Eme,onClose:vme},transform:dme},Rme?{current:cme,total:ume}:{}),{},{image:Ome})):nbe)))})},initialTransform={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function useImageTransform(x_,eme,$P,tme){var ame=reactExports.useRef(null),nme=reactExports.useRef([]),rme=reactExports.useState(initialTransform),ime=_slicedToArray$2(rme,2),ome=ime[0],lme=ime[1],sme=function(fme){lme(initialTransform),isEqual$2(initialTransform,ome)||tme==null||tme({transform:initialTransform,action:fme})},cme=function(fme,pme){ame.current===null&&(nme.current=[],ame.current=wrapperRaf(function(){lme(function(hme){var bme=hme;return nme.current.forEach(function(mme){bme=_objectSpread2$4(_objectSpread2$4({},bme),mme)}),ame.current=null,tme==null||tme({transform:bme,action:pme}),bme})})),nme.current.push(_objectSpread2$4(_objectSpread2$4({},ome),fme))},dme=function(fme,pme,hme,bme,mme){var vme=x_.current,gme=vme.width,yme=vme.height,_me=vme.offsetWidth,$me=vme.offsetHeight,Cme=vme.offsetLeft,Sme=vme.offsetTop,Eme=fme,xme=ome.scale*fme;xme>$P?(xme=$P,Eme=$P/ome.scale):xme<eme&&(xme=mme?xme:eme,Eme=xme/ome.scale);var Tme=hme??innerWidth/2,Ome=bme??innerHeight/2,Rme=Eme-1,Nme=Rme*gme*.5,Ime=Rme*yme*.5,Pme=Rme*(Tme-ome.x-Cme),Mme=Rme*(Ome-ome.y-Sme),kme=ome.x-(Pme-Nme),Bme=ome.y-(Mme-Ime);if(fme<1&&xme===1){var Dme=_me*xme,jme=$me*xme,Vme=getClientSize(),Wme=Vme.width,Lme=Vme.height;Dme<=Wme&&jme<=Lme&&(kme=0,Bme=0)}cme({x:kme,y:Bme,scale:xme},pme)};return{transform:ome,resetTransform:sme,updateTransform:cme,dispatchZoomChange:dme}}function fixPoint(x_,eme,$P,tme){var ame=eme+$P,nme=($P-tme)/2;if($P>tme){if(eme>0)return _defineProperty$7({},x_,nme);if(eme<0&&ame<tme)return _defineProperty$7({},x_,-nme)}else if(eme<0||ame>tme)return _defineProperty$7({},x_,eme<0?nme:-nme);return{}}function getFixScaleEleTransPosition(x_,eme,$P,tme){var ame=getClientSize(),nme=ame.width,rme=ame.height,ime=null;return x_<=nme&&eme<=rme?ime={x:0,y:0}:(x_>nme||eme>rme)&&(ime=_objectSpread2$4(_objectSpread2$4({},fixPoint("x",$P,x_,nme)),fixPoint("y",tme,eme,rme))),ime}var BASE_SCALE_RATIO=1,WHEEL_MAX_SCALE_RATIO=1;function useMouseEvent(x_,eme,$P,tme,ame,nme,rme){var ime=ame.rotate,ome=ame.scale,lme=ame.x,sme=ame.y,cme=reactExports.useState(!1),dme=_slicedToArray$2(cme,2),ume=dme[0],fme=dme[1],pme=reactExports.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),hme=function(yme){!eme||yme.button!==0||(yme.preventDefault(),yme.stopPropagation(),pme.current={diffX:yme.pageX-lme,diffY:yme.pageY-sme,transformX:lme,transformY:sme},fme(!0))},bme=function(yme){$P&&ume&&nme({x:yme.pageX-pme.current.diffX,y:yme.pageY-pme.current.diffY},"move")},mme=function(){if($P&&ume){fme(!1);var yme=pme.current,_me=yme.transformX,$me=yme.transformY,Cme=lme!==_me&&sme!==$me;if(!Cme)return;var Sme=x_.current.offsetWidth*ome,Eme=x_.current.offsetHeight*ome,xme=x_.current.getBoundingClientRect(),Tme=xme.left,Ome=xme.top,Rme=ime%180!==0,Nme=getFixScaleEleTransPosition(Rme?Eme:Sme,Rme?Sme:Eme,Tme,Ome);Nme&&nme(_objectSpread2$4({},Nme),"dragRebound")}},vme=function(yme){if(!(!$P||yme.deltaY==0)){var _me=Math.abs(yme.deltaY/100),$me=Math.min(_me,WHEEL_MAX_SCALE_RATIO),Cme=BASE_SCALE_RATIO+$me*tme;yme.deltaY>0&&(Cme=BASE_SCALE_RATIO/Cme),rme(Cme,"wheel",yme.clientX,yme.clientY)}};return reactExports.useEffect(function(){var gme,yme,_me,$me;if(eme){_me=addEventListenerWrap(window,"mouseup",mme,!1),$me=addEventListenerWrap(window,"mousemove",bme,!1);try{window.top!==window.self&&(gme=addEventListenerWrap(window.top,"mouseup",mme,!1),yme=addEventListenerWrap(window.top,"mousemove",bme,!1))}catch{}}return function(){var Cme,Sme,Eme,xme;(Cme=_me)===null||Cme===void 0||Cme.remove(),(Sme=$me)===null||Sme===void 0||Sme.remove(),(Eme=gme)===null||Eme===void 0||Eme.remove(),(xme=yme)===null||xme===void 0||xme.remove()}},[$P,ume,lme,sme,ime,eme]),{isMoving:ume,onMouseDown:hme,onMouseMove:bme,onMouseUp:mme,onWheel:vme}}function isImageValid(x_){return new Promise(function(eme){var $P=document.createElement("img");$P.onerror=function(){return eme(!1)},$P.onload=function(){return eme(!0)},$P.src=x_})}function useStatus(x_){var eme=x_.src,$P=x_.isCustomPlaceholder,tme=x_.fallback,ame=reactExports.useState($P?"loading":"normal"),nme=_slicedToArray$2(ame,2),rme=nme[0],ime=nme[1],ome=reactExports.useRef(!1),lme=rme==="error";reactExports.useEffect(function(){var ume=!0;return isImageValid(eme).then(function(fme){!fme&&ume&&ime("error")}),function(){ume=!1}},[eme]),reactExports.useEffect(function(){$P&&!ome.current?ime("loading"):lme&&ime("normal")},[eme]);var sme=function(){ime("normal")},cme=function(fme){ome.current=!1,rme==="loading"&&fme!==null&&fme!==void 0&&fme.complete&&(fme.naturalWidth||fme.naturalHeight)&&(ome.current=!0,sme())},dme=lme&&tme?{src:tme}:{onLoad:sme,src:eme};return[cme,dme,rme]}function getDistance(x_,eme){var $P=x_.x-eme.x,tme=x_.y-eme.y;return Math.hypot($P,tme)}function getCenter(x_,eme,$P,tme){var ame=getDistance(x_,$P),nme=getDistance(eme,tme);if(ame===0&&nme===0)return[x_.x,x_.y];var rme=ame/(ame+nme),ime=x_.x+rme*(eme.x-x_.x),ome=x_.y+rme*(eme.y-x_.y);return[ime,ome]}function useTouchEvent(x_,eme,$P,tme,ame,nme,rme){var ime=ame.rotate,ome=ame.scale,lme=ame.x,sme=ame.y,cme=reactExports.useState(!1),dme=_slicedToArray$2(cme,2),ume=dme[0],fme=dme[1],pme=reactExports.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),hme=function(yme){pme.current=_objectSpread2$4(_objectSpread2$4({},pme.current),yme)},bme=function(yme){if(eme){yme.stopPropagation(),fme(!0);var _me=yme.touches,$me=_me===void 0?[]:_me;$me.length>1?hme({point1:{x:$me[0].clientX,y:$me[0].clientY},point2:{x:$me[1].clientX,y:$me[1].clientY},eventType:"touchZoom"}):hme({point1:{x:$me[0].clientX-lme,y:$me[0].clientY-sme},eventType:"move"})}},mme=function(yme){var _me=yme.touches,$me=_me===void 0?[]:_me,Cme=pme.current,Sme=Cme.point1,Eme=Cme.point2,xme=Cme.eventType;if($me.length>1&&xme==="touchZoom"){var Tme={x:$me[0].clientX,y:$me[0].clientY},Ome={x:$me[1].clientX,y:$me[1].clientY},Rme=getCenter(Sme,Eme,Tme,Ome),Nme=_slicedToArray$2(Rme,2),Ime=Nme[0],Pme=Nme[1],Mme=getDistance(Tme,Ome)/getDistance(Sme,Eme);rme(Mme,"touchZoom",Ime,Pme,!0),hme({point1:Tme,point2:Ome,eventType:"touchZoom"})}else xme==="move"&&(nme({x:$me[0].clientX-Sme.x,y:$me[0].clientY-Sme.y},"move"),hme({eventType:"move"}))},vme=function(){if($P){if(ume&&fme(!1),hme({eventType:"none"}),tme>ome)return nme({x:0,y:0,scale:tme},"touchZoom");var yme=x_.current.offsetWidth*ome,_me=x_.current.offsetHeight*ome,$me=x_.current.getBoundingClientRect(),Cme=$me.left,Sme=$me.top,Eme=ime%180!==0,xme=getFixScaleEleTransPosition(Eme?_me:yme,Eme?yme:_me,Cme,Sme);xme&&nme(_objectSpread2$4({},xme),"dragRebound")}};return reactExports.useEffect(function(){var gme;return $P&&eme&&(gme=addEventListenerWrap(window,"touchmove",function(yme){return yme.preventDefault()},{passive:!1})),function(){var yme;(yme=gme)===null||yme===void 0||yme.remove()}},[$P,eme]),{isTouching:ume,onTouchStart:bme,onTouchMove:mme,onTouchEnd:vme}}var _excluded$9=["fallback","src","imgRef"],_excluded2$3=["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"],PreviewImage=function(eme){var $P=eme.fallback,tme=eme.src,ame=eme.imgRef,nme=_objectWithoutProperties$6(eme,_excluded$9),rme=useStatus({src:tme,fallback:$P}),ime=_slicedToArray$2(rme,2),ome=ime[0],lme=ime[1];return jsx("img",{ref:function(cme){ame.current=cme,ome(cme)},...nme,...lme})},Preview$1=function(eme){var $P=eme.prefixCls,tme=eme.src,ame=eme.alt,nme=eme.imageInfo,rme=eme.fallback,ime=eme.movable,ome=ime===void 0?!0:ime,lme=eme.onClose,sme=eme.visible,cme=eme.icons,dme=cme===void 0?{}:cme,ume=eme.rootClassName,fme=eme.closeIcon,pme=eme.getContainer,hme=eme.current,bme=hme===void 0?0:hme,mme=eme.count,vme=mme===void 0?1:mme,gme=eme.countRender,yme=eme.scaleStep,_me=yme===void 0?.5:yme,$me=eme.minScale,Cme=$me===void 0?1:$me,Sme=eme.maxScale,Eme=Sme===void 0?50:Sme,xme=eme.transitionName,Tme=xme===void 0?"zoom":xme,Ome=eme.maskTransitionName,Rme=Ome===void 0?"fade":Ome,Nme=eme.imageRender,Ime=eme.imgCommonProps,Pme=eme.toolbarRender,Mme=eme.onTransform,kme=eme.onChange,Bme=_objectWithoutProperties$6(eme,_excluded2$3),Dme=reactExports.useRef(),jme=reactExports.useContext(PreviewGroupContext),Vme=jme&&vme>1,Wme=jme&&vme>=1,Lme=reactExports.useState(!0),zme=_slicedToArray$2(Lme,2),Ume=zme[0],Gme=zme[1],Jme=useImageTransform(Dme,Cme,Eme,Mme),Yme=Jme.transform,Qme=Jme.resetTransform,Xme=Jme.updateTransform,Kme=Jme.dispatchZoomChange,Zme=useMouseEvent(Dme,ome,sme,_me,Yme,Xme,Kme),nbe=Zme.isMoving,lbe=Zme.onMouseDown,ibe=Zme.onWheel,abe=useTouchEvent(Dme,ome,sme,Cme,Yme,Xme,Kme),obe=abe.isTouching,hbe=abe.onTouchStart,ube=abe.onTouchMove,mbe=abe.onTouchEnd,pbe=Yme.rotate,_be=Yme.scale,Sbe=classNames(_defineProperty$7({},"".concat($P,"-moving"),nbe));reactExports.useEffect(function(){Ume||Gme(!0)},[Ume]);var vbe=function(){Qme("close")},kbe=function(){Kme(BASE_SCALE_RATIO+_me,"zoomIn")},Rbe=function(){Kme(BASE_SCALE_RATIO/(BASE_SCALE_RATIO+_me),"zoomOut")},Pbe=function(){Xme({rotate:pbe+90},"rotateRight")},Mbe=function(){Xme({rotate:pbe-90},"rotateLeft")},Kbe=function(){Xme({flipX:!Yme.flipX},"flipX")},Qbe=function(){Xme({flipY:!Yme.flipY},"flipY")},Gbe=function(){Qme("reset")},Hbe=function(_0e){var m0e=bme+_0e;!Number.isInteger(m0e)||m0e<0||m0e>vme-1||(Gme(!1),Qme(_0e<0?"prev":"next"),kme==null||kme(m0e,bme))},d0e=function(_0e){!sme||!Vme||(_0e.keyCode===KeyCode.LEFT?Hbe(-1):_0e.keyCode===KeyCode.RIGHT&&Hbe(1))},p0e=function(_0e){sme&&(_be!==1?Xme({x:0,y:0,scale:1},"doubleClick"):Kme(BASE_SCALE_RATIO+_me,"doubleClick",_0e.clientX,_0e.clientY))};reactExports.useEffect(function(){var e0e=addEventListenerWrap(window,"keydown",d0e,!1);return function(){e0e.remove()}},[sme,Vme,bme]);var S0e=jsx(PreviewImage,{...Ime,width:eme.width,height:eme.height,imgRef:Dme,className:"".concat($P,"-img"),alt:ame,style:{transform:"translate3d(".concat(Yme.x,"px, ").concat(Yme.y,"px, 0) scale3d(").concat(Yme.flipX?"-":"").concat(_be,", ").concat(Yme.flipY?"-":"").concat(_be,", 1) rotate(").concat(pbe,"deg)"),transitionDuration:(!Ume||obe)&&"0s"},fallback:rme,src:tme,onWheel:ibe,onMouseDown:lbe,onDoubleClick:p0e,onTouchStart:hbe,onTouchMove:ube,onTouchEnd:mbe,onTouchCancel:mbe}),P0e=_objectSpread2$4({url:tme,alt:ame},nme);return jsxs(Fragment,{children:[jsx(DialogWrap,{transitionName:Tme,maskTransitionName:Rme,closable:!1,keyboard:!0,prefixCls:$P,onClose:lme,visible:sme,classNames:{wrapper:Sbe},rootClassName:ume,getContainer:pme,...Bme,afterClose:vbe,children:jsx("div",{className:"".concat($P,"-img-wrapper"),children:Nme?Nme(S0e,_objectSpread2$4({transform:Yme,image:P0e},jme?{current:bme}:{})):S0e})}),jsx(Operations,{visible:sme,transform:Yme,maskTransitionName:Rme,closeIcon:fme,getContainer:pme,prefixCls:$P,rootClassName:ume,icons:dme,countRender:gme,showSwitch:Vme,showProgress:Wme,current:bme,count:vme,scale:_be,minScale:Cme,maxScale:Eme,toolbarRender:Pme,onActive:Hbe,onZoomIn:kbe,onZoomOut:Rbe,onRotateRight:Pbe,onRotateLeft:Mbe,onFlipX:Kbe,onFlipY:Qbe,onClose:lme,onReset:Gbe,zIndex:Bme.zIndex!==void 0?Bme.zIndex+1:void 0,image:P0e})]})},COMMON_PROPS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function usePreviewItems(x_){var eme=reactExports.useState({}),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1],nme=reactExports.useCallback(function(ime,ome){return ame(function(lme){return _objectSpread2$4(_objectSpread2$4({},lme),{},_defineProperty$7({},ime,ome))}),function(){ame(function(lme){var sme=_objectSpread2$4({},lme);return delete sme[ime],sme})}},[]),rme=reactExports.useMemo(function(){return x_?x_.map(function(ime){if(typeof ime=="string")return{data:{src:ime}};var ome={};return Object.keys(ime).forEach(function(lme){["src"].concat(_toConsumableArray$1(COMMON_PROPS)).includes(lme)&&(ome[lme]=ime[lme])}),{data:ome}}):Object.keys(tme).reduce(function(ime,ome){var lme=tme[ome],sme=lme.canPreview,cme=lme.data;return sme&&ime.push({data:cme,id:ome}),ime},[])},[x_,tme]);return[rme,nme,!!x_]}var _excluded$8=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_excluded2$2=["src"],Group=function(eme){var $P,tme=eme.previewPrefixCls,ame=tme===void 0?"rc-image-preview":tme,nme=eme.children,rme=eme.icons,ime=rme===void 0?{}:rme,ome=eme.items,lme=eme.preview,sme=eme.fallback,cme=_typeof$4(lme)==="object"?lme:{},dme=cme.visible,ume=cme.onVisibleChange,fme=cme.getContainer,pme=cme.current,hme=cme.movable,bme=cme.minScale,mme=cme.maxScale,vme=cme.countRender,gme=cme.closeIcon,yme=cme.onChange,_me=cme.onTransform,$me=cme.toolbarRender,Cme=cme.imageRender,Sme=_objectWithoutProperties$6(cme,_excluded$8),Eme=usePreviewItems(ome),xme=_slicedToArray$2(Eme,3),Tme=xme[0],Ome=xme[1],Rme=xme[2],Nme=useMergedState(0,{value:pme}),Ime=_slicedToArray$2(Nme,2),Pme=Ime[0],Mme=Ime[1],kme=reactExports.useState(!1),Bme=_slicedToArray$2(kme,2),Dme=Bme[0],jme=Bme[1],Vme=(($P=Tme[Pme])===null||$P===void 0?void 0:$P.data)||{},Wme=Vme.src,Lme=_objectWithoutProperties$6(Vme,_excluded2$2),zme=useMergedState(!!dme,{value:dme,onChange:function(obe,hbe){ume==null||ume(obe,hbe,Pme)}}),Ume=_slicedToArray$2(zme,2),Gme=Ume[0],Jme=Ume[1],Yme=reactExports.useState(null),Qme=_slicedToArray$2(Yme,2),Xme=Qme[0],Kme=Qme[1],Zme=reactExports.useCallback(function(abe,obe,hbe,ube){var mbe=Rme?Tme.findIndex(function(pbe){return pbe.data.src===obe}):Tme.findIndex(function(pbe){return pbe.id===abe});Mme(mbe<0?0:mbe),Jme(!0),Kme({x:hbe,y:ube}),jme(!0)},[Tme,Rme]);reactExports.useEffect(function(){Gme?Dme||Mme(0):jme(!1)},[Gme]);var nbe=function(obe,hbe){Mme(obe),yme==null||yme(obe,hbe)},lbe=function(){Jme(!1),Kme(null)},ibe=reactExports.useMemo(function(){return{register:Ome,onPreview:Zme}},[Ome,Zme]);return reactExports.createElement(PreviewGroupContext.Provider,{value:ibe},nme,reactExports.createElement(Preview$1,_extends$4C({"aria-hidden":!Gme,movable:hme,visible:Gme,prefixCls:ame,closeIcon:gme,onClose:lbe,mousePosition:Xme,imgCommonProps:Lme,src:Wme,fallback:sme,icons:ime,minScale:bme,maxScale:mme,getContainer:fme,current:Pme,count:Tme.length,countRender:vme,onTransform:_me,toolbarRender:$me,imageRender:Cme,onChange:nbe},Sme)))},uid=0;function useRegisterImage(x_,eme){var $P=reactExports.useState(function(){return uid+=1,String(uid)}),tme=_slicedToArray$2($P,1),ame=tme[0],nme=reactExports.useContext(PreviewGroupContext),rme={data:eme,canPreview:x_};return reactExports.useEffect(function(){if(nme)return nme.register(ame,rme)},[]),reactExports.useEffect(function(){nme&&nme.register(ame,rme)},[x_,eme]),ame}var _excluded$7=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_excluded2$1=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ImageInternal=function(eme){var $P=eme.src,tme=eme.alt,ame=eme.onPreviewClose,nme=eme.prefixCls,rme=nme===void 0?"rc-image":nme,ime=eme.previewPrefixCls,ome=ime===void 0?"".concat(rme,"-preview"):ime,lme=eme.placeholder,sme=eme.fallback,cme=eme.width,dme=eme.height,ume=eme.style,fme=eme.preview,pme=fme===void 0?!0:fme,hme=eme.className,bme=eme.onClick,mme=eme.onError,vme=eme.wrapperClassName,gme=eme.wrapperStyle,yme=eme.rootClassName,_me=_objectWithoutProperties$6(eme,_excluded$7),$me=lme&&lme!==!0,Cme=_typeof$4(pme)==="object"?pme:{},Sme=Cme.src,Eme=Cme.visible,xme=Eme===void 0?void 0:Eme,Tme=Cme.onVisibleChange,Ome=Tme===void 0?ame:Tme,Rme=Cme.getContainer,Nme=Rme===void 0?void 0:Rme,Ime=Cme.mask,Pme=Cme.maskClassName,Mme=Cme.movable,kme=Cme.icons,Bme=Cme.scaleStep,Dme=Cme.minScale,jme=Cme.maxScale,Vme=Cme.imageRender,Wme=Cme.toolbarRender,Lme=_objectWithoutProperties$6(Cme,_excluded2$1),zme=Sme??$P,Ume=useMergedState(!!xme,{value:xme,onChange:Ome}),Gme=_slicedToArray$2(Ume,2),Jme=Gme[0],Yme=Gme[1],Qme=useStatus({src:$P,isCustomPlaceholder:$me,fallback:sme}),Xme=_slicedToArray$2(Qme,3),Kme=Xme[0],Zme=Xme[1],nbe=Xme[2],lbe=reactExports.useState(null),ibe=_slicedToArray$2(lbe,2),abe=ibe[0],obe=ibe[1],hbe=reactExports.useContext(PreviewGroupContext),ube=!!pme,mbe=function(){Yme(!1),obe(null)},pbe=classNames(rme,vme,yme,_defineProperty$7({},"".concat(rme,"-error"),nbe==="error")),_be=reactExports.useMemo(function(){var Rbe={};return COMMON_PROPS.forEach(function(Pbe){eme[Pbe]!==void 0&&(Rbe[Pbe]=eme[Pbe])}),Rbe},COMMON_PROPS.map(function(Rbe){return eme[Rbe]})),Sbe=reactExports.useMemo(function(){return _objectSpread2$4(_objectSpread2$4({},_be),{},{src:zme})},[zme,_be]),vbe=useRegisterImage(ube,Sbe),kbe=function(Pbe){var Mbe=getOffset(Pbe.target),Kbe=Mbe.left,Qbe=Mbe.top;hbe?hbe.onPreview(vbe,zme,Kbe,Qbe):(obe({x:Kbe,y:Qbe}),Yme(!0)),bme==null||bme(Pbe)};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("div",_extends$4C({},_me,{className:pbe,onClick:ube?kbe:bme,style:_objectSpread2$4({width:cme,height:dme},gme)}),reactExports.createElement("img",_extends$4C({},_be,{className:classNames("".concat(rme,"-img"),_defineProperty$7({},"".concat(rme,"-img-placeholder"),lme===!0),hme),style:_objectSpread2$4({height:dme},ume),ref:Kme},Zme,{width:cme,height:dme,onError:mme})),nbe==="loading"&&reactExports.createElement("div",{"aria-hidden":"true",className:"".concat(rme,"-placeholder")},lme),Ime&&ube&&reactExports.createElement("div",{className:classNames("".concat(rme,"-mask"),Pme),style:{display:(ume==null?void 0:ume.display)==="none"?"none":void 0}},Ime)),!hbe&&ube&&reactExports.createElement(Preview$1,_extends$4C({"aria-hidden":!Jme,visible:Jme,prefixCls:ome,onClose:mbe,mousePosition:abe,src:zme,alt:tme,imageInfo:{width:cme,height:dme},fallback:sme,getContainer:Nme,icons:kme,movable:Mme,scaleStep:Bme,minScale:Dme,maxScale:jme,rootClassName:yme,imageRender:Vme,imgCommonProps:_be,toolbarRender:Wme},Lme)))};ImageInternal.PreviewGroup=Group;var RotateLeftOutlined$1={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"},RotateLeftOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:RotateLeftOutlined$1}))},RefIcon$4=reactExports.forwardRef(RotateLeftOutlined),RotateRightOutlined$1={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"},RotateRightOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:RotateRightOutlined$1}))},RefIcon$3=reactExports.forwardRef(RotateRightOutlined),SwapOutlined$1={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"},SwapOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:SwapOutlined$1}))},RefIcon$2=reactExports.forwardRef(SwapOutlined),ZoomInOutlined$1={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"},ZoomInOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:ZoomInOutlined$1}))},RefIcon$1=reactExports.forwardRef(ZoomInOutlined),ZoomOutOutlined$1={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"},ZoomOutOutlined=function(eme,$P){return reactExports.createElement(Icon$3,_extends$4C({},eme,{ref:$P,icon:ZoomOutOutlined$1}))},RefIcon=reactExports.forwardRef(ZoomOutOutlined);const genBoxStyle=x_=>({position:x_||"absolute",inset:0}),genImageMaskStyle=x_=>{const{iconCls:eme,motionDurationSlow:$P,paddingXXS:tme,marginXXS:ame,prefixCls:nme,colorTextLightSolid:rme}=x_;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:rme,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${$P}`,[`.${nme}-mask-info`]:Object.assign(Object.assign({},textEllipsis),{padding:`0 ${unit$1(tme)}`,[eme]:{marginInlineEnd:ame,svg:{verticalAlign:"baseline"}}})}},genPreviewOperationsStyle=x_=>{const{previewCls:eme,modalMaskBg:$P,paddingSM:tme,marginXL:ame,margin:nme,paddingLG:rme,previewOperationColorDisabled:ime,previewOperationHoverColor:ome,motionDurationSlow:lme,iconCls:sme,colorTextLightSolid:cme}=x_,dme=new TinyColor($P).setAlpha(.1),ume=dme.clone().setAlpha(.2);return{[`${eme}-footer`]:{position:"fixed",bottom:ame,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:x_.previewOperationColor,transform:"translateX(-50%)"},[`${eme}-progress`]:{marginBottom:nme},[`${eme}-close`]:{position:"fixed",top:ame,right:{_skip_check_:!0,value:ame},display:"flex",color:cme,backgroundColor:dme.toRgbString(),borderRadius:"50%",padding:tme,outline:0,border:0,cursor:"pointer",transition:`all ${lme}`,"&:hover":{backgroundColor:ume.toRgbString()},[`& > ${sme}`]:{fontSize:x_.previewOperationSize}},[`${eme}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit$1(rme)}`,backgroundColor:dme.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:tme,padding:tme,cursor:"pointer",transition:`all ${lme}`,userSelect:"none",[`&:not(${eme}-operations-operation-disabled):hover > ${sme}`]:{color:ome},"&-disabled":{color:ime,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${sme}`]:{fontSize:x_.previewOperationSize}}}}},genPreviewSwitchStyle=x_=>{const{modalMaskBg:eme,iconCls:$P,previewOperationColorDisabled:tme,previewCls:ame,zIndexPopup:nme,motionDurationSlow:rme}=x_,ime=new TinyColor(eme).setAlpha(.1),ome=ime.clone().setAlpha(.2);return{[`${ame}-switch-left, ${ame}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:x_.calc(nme).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:x_.imagePreviewSwitchSize,height:x_.imagePreviewSwitchSize,marginTop:x_.calc(x_.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:x_.previewOperationColor,background:ime.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${rme}`,userSelect:"none","&:hover":{background:ome.toRgbString()},"&-disabled":{"&, &:hover":{color:tme,background:"transparent",cursor:"not-allowed",[`> ${$P}`]:{cursor:"not-allowed"}}},[`> ${$P}`]:{fontSize:x_.previewOperationSize}},[`${ame}-switch-left`]:{insetInlineStart:x_.marginSM},[`${ame}-switch-right`]:{insetInlineEnd:x_.marginSM}}},genImagePreviewStyle=x_=>{const{motionEaseOut:eme,previewCls:$P,motionDurationSlow:tme,componentCls:ame}=x_;return[{[`${ame}-preview-root`]:{[$P]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${$P}-body`]:Object.assign(Object.assign({},genBoxStyle()),{overflow:"hidden"}),[`${$P}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${tme} ${eme} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},genBoxStyle()),{transition:`transform ${tme} ${eme} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${$P}-moving`]:{[`${$P}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${ame}-preview-root`]:{[`${$P}-wrap`]:{zIndex:x_.zIndexPopup}}},{[`${ame}-preview-operations-wrapper`]:{position:"fixed",zIndex:x_.calc(x_.zIndexPopup).add(1).equal()},"&":[genPreviewOperationsStyle(x_),genPreviewSwitchStyle(x_)]}]},genImageStyle=x_=>{const{componentCls:eme}=x_;return{[eme]:{position:"relative",display:"inline-block",[`${eme}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${eme}-img-placeholder`]:{backgroundColor:x_.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${eme}-mask`]:Object.assign({},genImageMaskStyle(x_)),[`${eme}-mask:hover`]:{opacity:1},[`${eme}-placeholder`]:Object.assign({},genBoxStyle())}}},genPreviewMotion=x_=>{const{previewCls:eme}=x_;return{[`${eme}-root`]:initZoomMotion(x_,"zoom"),"&":initFadeMotion(x_,!0)}},prepareComponentToken$2=x_=>({zIndexPopup:x_.zIndexPopupBase+80,previewOperationColor:new TinyColor(x_.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(x_.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(x_.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:x_.fontSizeIcon*1.5}),useStyle$2=genStyleHooks("Image",x_=>{const eme=`${x_.componentCls}-preview`,$P=merge$5(x_,{previewCls:eme,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:x_.controlHeightLG});return[genImageStyle($P),genImagePreviewStyle($P),genModalMaskStyle(merge$5($P,{componentCls:eme})),genPreviewMotion($P)]},prepareComponentToken$2);var __rest$5=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const icons={rotateLeft:reactExports.createElement(RefIcon$4,null),rotateRight:reactExports.createElement(RefIcon$3,null),zoomIn:reactExports.createElement(RefIcon$1,null),zoomOut:reactExports.createElement(RefIcon,null),close:reactExports.createElement(RefIcon$m,null),left:reactExports.createElement(RefIcon$c,null),right:reactExports.createElement(RefIcon$i,null),flipX:reactExports.createElement(RefIcon$2,null),flipY:reactExports.createElement(RefIcon$2,{rotate:90})},InternalPreviewGroup=x_=>{var{previewPrefixCls:eme,preview:$P}=x_,tme=__rest$5(x_,["previewPrefixCls","preview"]);const{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=ame("image",eme),rme=`${nme}-preview`,ime=ame(),ome=useCSSVarCls(nme),[lme,sme,cme]=useStyle$2(nme,ome),[dme]=useZIndex("ImagePreview",typeof $P=="object"?$P.zIndex:void 0),ume=reactExports.useMemo(()=>{var fme;if($P===!1)return $P;const pme=typeof $P=="object"?$P:{},hme=classNames(sme,cme,ome,(fme=pme.rootClassName)!==null&&fme!==void 0?fme:"");return Object.assign(Object.assign({},pme),{transitionName:getTransitionName(ime,"zoom",pme.transitionName),maskTransitionName:getTransitionName(ime,"fade",pme.maskTransitionName),rootClassName:hme,zIndex:dme})},[$P]);return lme(reactExports.createElement(ImageInternal.PreviewGroup,Object.assign({preview:ume,previewPrefixCls:rme,icons},tme)))};var __rest$4=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const Image$2=x_=>{var eme;const{prefixCls:$P,preview:tme,className:ame,rootClassName:nme,style:rme}=x_,ime=__rest$4(x_,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ome,locale:lme=localeValues$2,getPopupContainer:sme,image:cme}=reactExports.useContext(ConfigContext),dme=ome("image",$P),ume=ome(),fme=lme.Image||localeValues$2.Image,pme=useCSSVarCls(dme),[hme,bme,mme]=useStyle$2(dme,pme),vme=classNames(nme,bme,mme,pme),gme=classNames(ame,bme,cme==null?void 0:cme.className),[yme]=useZIndex("ImagePreview",typeof tme=="object"?tme.zIndex:void 0),_me=reactExports.useMemo(()=>{var Cme;if(tme===!1)return tme;const Sme=typeof tme=="object"?tme:{},{getContainer:Eme,closeIcon:xme,rootClassName:Tme}=Sme,Ome=__rest$4(Sme,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:reactExports.createElement("div",{className:`${dme}-mask-info`},reactExports.createElement(RefIcon$7,null),fme==null?void 0:fme.preview),icons},Ome),{rootClassName:classNames(vme,Tme),getContainer:Eme??sme,transitionName:getTransitionName(ume,"zoom",Sme.transitionName),maskTransitionName:getTransitionName(ume,"fade",Sme.maskTransitionName),zIndex:yme,closeIcon:xme??((Cme=cme==null?void 0:cme.preview)===null||Cme===void 0?void 0:Cme.closeIcon)})},[tme,fme,(eme=cme==null?void 0:cme.preview)===null||eme===void 0?void 0:eme.closeIcon]),$me=Object.assign(Object.assign({},cme==null?void 0:cme.style),rme);return hme(reactExports.createElement(ImageInternal,Object.assign({prefixCls:dme,preview:_me,rootClassName:vme,className:gme,style:$me},ime)))};Image$2.PreviewGroup=InternalPreviewGroup;function useHasSider(x_,eme,$P){return typeof $P=="boolean"?$P:x_.length?!0:toArray$6(eme).some(ame=>ame.type===Sider$3)}var __rest$3=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};function generator(x_){let{suffixCls:eme,tagName:$P,displayName:tme}=x_;return ame=>reactExports.forwardRef((rme,ime)=>reactExports.createElement(ame,Object.assign({ref:ime,suffixCls:eme,tagName:$P},rme)))}const Basic=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,suffixCls:tme,className:ame,tagName:nme}=x_,rme=__rest$3(x_,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ime}=reactExports.useContext(ConfigContext),ome=ime("layout",$P),[lme,sme,cme]=useStyle$l(ome),dme=tme?`${ome}-${tme}`:ome;return lme(reactExports.createElement(nme,Object.assign({className:classNames($P||dme,ame,sme,cme),ref:eme},rme)))}),BasicLayout=reactExports.forwardRef((x_,eme)=>{const{direction:$P}=reactExports.useContext(ConfigContext),[tme,ame]=reactExports.useState([]),{prefixCls:nme,className:rme,rootClassName:ime,children:ome,hasSider:lme,tagName:sme,style:cme}=x_,dme=__rest$3(x_,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ume=omit$2(dme,["suffixCls"]),{getPrefixCls:fme,layout:pme}=reactExports.useContext(ConfigContext),hme=fme("layout",nme),bme=useHasSider(tme,ome,lme),[mme,vme,gme]=useStyle$l(hme),yme=classNames(hme,{[`${hme}-has-sider`]:bme,[`${hme}-rtl`]:$P==="rtl"},pme==null?void 0:pme.className,rme,ime,vme,gme),_me=reactExports.useMemo(()=>({siderHook:{addSider:$me=>{ame(Cme=>[].concat(_toConsumableArray$1(Cme),[$me]))},removeSider:$me=>{ame(Cme=>Cme.filter(Sme=>Sme!==$me))}}}),[]);return mme(reactExports.createElement(LayoutContext.Provider,{value:_me},reactExports.createElement(sme,Object.assign({ref:eme,className:yme,style:Object.assign(Object.assign({},pme==null?void 0:pme.style),cme)},ume),ome)))}),Layout$3=generator({tagName:"div",displayName:"Layout"})(BasicLayout),Header$5=generator({suffixCls:"header",tagName:"header",displayName:"Header"})(Basic),Footer=generator({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Basic),Content$7=generator({suffixCls:"content",tagName:"main",displayName:"Content"})(Basic),Layout$2=Layout$3;Layout$2.Header=Header$5;Layout$2.Footer=Footer;Layout$2.Content=Content$7;Layout$2.Sider=Sider$3;Layout$2._InternalSiderContext=SiderContext;const viewSize=100,borderWidth=viewSize/5,radius=viewSize/2-borderWidth/2,circumference=radius*2*Math.PI,position$1=50,CustomCircle=x_=>{const{dotClassName:eme,style:$P,hasCircleCls:tme}=x_;return reactExports.createElement("circle",{className:classNames(`${eme}-circle`,{[`${eme}-circle-bg`]:tme}),r:radius,cx:position$1,cy:position$1,strokeWidth:borderWidth,style:$P})},Progress$2=x_=>{let{percent:eme,prefixCls:$P}=x_;const tme=`${$P}-dot`,ame=`${tme}-holder`,nme=`${ame}-hidden`,[rme,ime]=reactExports.useState(!1);useLayoutEffect$1(()=>{eme!==0&&ime(!0)},[eme!==0]);const ome=Math.max(Math.min(eme,100),0);if(!rme)return null;const lme={strokeDashoffset:`${circumference/4}`,strokeDasharray:`${circumference*ome/100} ${circumference*(100-ome)/100}`};return reactExports.createElement("span",{className:classNames(ame,`${tme}-progress`,ome<=0&&nme)},reactExports.createElement("svg",{viewBox:`0 0 ${viewSize} ${viewSize}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ome},reactExports.createElement(CustomCircle,{dotClassName:tme,hasCircleCls:!0}),reactExports.createElement(CustomCircle,{dotClassName:tme,style:lme})))};function Looper(x_){const{prefixCls:eme,percent:$P=0}=x_,tme=`${eme}-dot`,ame=`${tme}-holder`,nme=`${ame}-hidden`;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:classNames(ame,$P>0&&nme)},reactExports.createElement("span",{className:classNames(tme,`${eme}-dot-spin`)},[1,2,3,4].map(rme=>reactExports.createElement("i",{className:`${eme}-dot-item`,key:rme})))),reactExports.createElement(Progress$2,{prefixCls:eme,percent:$P}))}function Indicator(x_){const{prefixCls:eme,indicator:$P,percent:tme}=x_,ame=`${eme}-dot`;return $P&&reactExports.isValidElement($P)?cloneElement($P,{className:classNames($P.props.className,ame),percent:tme}):reactExports.createElement(Looper,{prefixCls:eme,percent:tme})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=x_=>{const{componentCls:eme,calc:$P}=x_;return{[eme]:Object.assign(Object.assign({},resetComponent(x_)),{position:"absolute",display:"none",color:x_.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${x_.motionDurationSlow} ${x_.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${eme}-text`]:{fontSize:x_.fontSize,paddingTop:$P($P(x_.dotSize).sub(x_.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:x_.colorBgMask,zIndex:x_.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${x_.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[eme]:{[`${eme}-dot-holder`]:{color:x_.colorWhite},[`${eme}-text`]:{color:x_.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${eme}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:x_.contentHeight,[`${eme}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:$P(x_.dotSize).mul(-1).div(2).equal()},[`${eme}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${x_.colorBgContainer}`},[`&${eme}-show-text ${eme}-dot`]:{marginTop:$P(x_.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${eme}-dot`]:{margin:$P(x_.dotSizeSM).mul(-1).div(2).equal()},[`${eme}-text`]:{paddingTop:$P($P(x_.dotSizeSM).sub(x_.fontSize)).div(2).add(2).equal()},[`&${eme}-show-text ${eme}-dot`]:{marginTop:$P(x_.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${eme}-dot`]:{margin:$P(x_.dotSizeLG).mul(-1).div(2).equal()},[`${eme}-text`]:{paddingTop:$P($P(x_.dotSizeLG).sub(x_.fontSize)).div(2).add(2).equal()},[`&${eme}-show-text ${eme}-dot`]:{marginTop:$P(x_.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${eme}-container`]:{position:"relative",transition:`opacity ${x_.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:x_.colorBgContainer,opacity:0,transition:`all ${x_.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${eme}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:x_.spinDotDefault},[`${eme}-dot-holder`]:{width:"1em",height:"1em",fontSize:x_.dotSize,display:"inline-block",transition:`transform ${x_.motionDurationSlow} ease, opacity ${x_.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:x_.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${eme}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${eme}-dot`]:{position:"relative",display:"inline-block",fontSize:x_.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:$P(x_.dotSize).sub($P(x_.marginXXS).div(2)).div(2).equal(),height:$P(x_.dotSize).sub($P(x_.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(tme=>`${tme} ${x_.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:x_.colorFillSecondary}},[`&-sm ${eme}-dot`]:{"&, &-holder":{fontSize:x_.dotSizeSM}},[`&-sm ${eme}-dot-holder`]:{i:{width:$P($P(x_.dotSizeSM).sub($P(x_.marginXXS).div(2))).div(2).equal(),height:$P($P(x_.dotSizeSM).sub($P(x_.marginXXS).div(2))).div(2).equal()}},[`&-lg ${eme}-dot`]:{"&, &-holder":{fontSize:x_.dotSizeLG}},[`&-lg ${eme}-dot-holder`]:{i:{width:$P($P(x_.dotSizeLG).sub(x_.marginXXS)).div(2).equal(),height:$P($P(x_.dotSizeLG).sub(x_.marginXXS)).div(2).equal()}},[`&${eme}-show-text ${eme}-text`]:{display:"block"}})}},prepareComponentToken$1=x_=>{const{controlHeightLG:eme,controlHeight:$P}=x_;return{contentHeight:400,dotSize:eme/2,dotSizeSM:eme*.35,dotSizeLG:$P}},useStyle$1=genStyleHooks("Spin",x_=>{const eme=merge$5(x_,{spinDotDefault:x_.colorTextDescription});return[genSpinStyle(eme)]},prepareComponentToken$1),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(x_,eme){const[$P,tme]=reactExports.useState(0),ame=reactExports.useRef(),nme=eme==="auto";return reactExports.useEffect(()=>(nme&&x_&&(tme(0),ame.current=setInterval(()=>{tme(rme=>{const ime=100-rme;for(let ome=0;ome<STEP_BUCKETS.length;ome+=1){const[lme,sme]=STEP_BUCKETS[ome];if(rme<=lme)return rme+ime*sme}return rme})},AUTO_INTERVAL)),()=>{clearInterval(ame.current)}),[nme,x_]),nme?$P:eme}var __rest$2=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};let defaultIndicator;function shouldDelay(x_,eme){return!!x_&&!!eme&&!isNaN(Number(eme))}const Spin=x_=>{var eme;const{prefixCls:$P,spinning:tme=!0,delay:ame=0,className:nme,rootClassName:rme,size:ime="default",tip:ome,wrapperClassName:lme,style:sme,children:cme,fullscreen:dme=!1,indicator:ume,percent:fme}=x_,pme=__rest$2(x_,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:hme,direction:bme,spin:mme}=reactExports.useContext(ConfigContext),vme=hme("spin",$P),[gme,yme,_me]=useStyle$1(vme),[$me,Cme]=reactExports.useState(()=>tme&&!shouldDelay(tme,ame)),Sme=usePercent($me,fme);reactExports.useEffect(()=>{if(tme){const Ime=debounce$3(ame,()=>{Cme(!0)});return Ime(),()=>{var Pme;(Pme=Ime==null?void 0:Ime.cancel)===null||Pme===void 0||Pme.call(Ime)}}Cme(!1)},[ame,tme]);const Eme=reactExports.useMemo(()=>typeof cme<"u"&&!dme,[cme,dme]),xme=classNames(vme,mme==null?void 0:mme.className,{[`${vme}-sm`]:ime==="small",[`${vme}-lg`]:ime==="large",[`${vme}-spinning`]:$me,[`${vme}-show-text`]:!!ome,[`${vme}-rtl`]:bme==="rtl"},nme,!dme&&rme,yme,_me),Tme=classNames(`${vme}-container`,{[`${vme}-blur`]:$me}),Ome=(eme=ume??(mme==null?void 0:mme.indicator))!==null&&eme!==void 0?eme:defaultIndicator,Rme=Object.assign(Object.assign({},mme==null?void 0:mme.style),sme),Nme=reactExports.createElement("div",Object.assign({},pme,{style:Rme,className:xme,"aria-live":"polite","aria-busy":$me}),reactExports.createElement(Indicator,{prefixCls:vme,indicator:Ome,percent:Sme}),ome&&(Eme||dme)?reactExports.createElement("div",{className:`${vme}-text`},ome):null);return gme(Eme?reactExports.createElement("div",Object.assign({},pme,{className:classNames(`${vme}-nested-loading`,lme,yme,_me)}),$me&&reactExports.createElement("div",{key:"loading"},Nme),reactExports.createElement("div",{className:Tme,key:"container"},cme)):dme?reactExports.createElement("div",{className:classNames(`${vme}-fullscreen`,{[`${vme}-fullscreen-show`]:$me},rme,yme,_me)},Nme):Nme)};Spin.setDefaultIndicator=x_=>{defaultIndicator=x_};function toList(x_){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&x_==null?[]:Array.isArray(x_)?x_:[x_]}let message=null,act$1=x_=>x_(),taskQueue$1=[],defaultGlobalConfig$1={};function getGlobalContext$1(){const{getContainer:x_,duration:eme,rtl:$P,maxCount:tme,top:ame}=defaultGlobalConfig$1,nme=(x_==null?void 0:x_())||document.body;return{getContainer:()=>nme,duration:eme,rtl:$P,maxCount:tme,top:ame}}const GlobalHolder$1=React__default.forwardRef((x_,eme)=>{const{messageConfig:$P,sync:tme}=x_,{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=defaultGlobalConfig$1.prefixCls||ame("message"),rme=reactExports.useContext(AppConfigContext),[ime,ome]=useInternalMessage(Object.assign(Object.assign(Object.assign({},$P),{prefixCls:nme}),rme.message));return React__default.useImperativeHandle(eme,()=>{const lme=Object.assign({},ime);return Object.keys(lme).forEach(sme=>{lme[sme]=function(){return tme(),ime[sme].apply(ime,arguments)}}),{instance:lme,sync:tme}}),ome}),GlobalHolderWrapper$1=React__default.forwardRef((x_,eme)=>{const[$P,tme]=React__default.useState(getGlobalContext$1),ame=()=>{tme(getGlobalContext$1)};React__default.useEffect(ame,[]);const nme=globalConfig(),rme=nme.getRootPrefixCls(),ime=nme.getIconPrefixCls(),ome=nme.getTheme(),lme=jsx(GlobalHolder$1,{ref:eme,sync:ame,messageConfig:$P});return jsx(ConfigProvider,{prefixCls:rme,iconPrefixCls:ime,theme:ome,children:nme.holderRender?nme.holderRender(lme):lme})});function flushNotice$1(){if(!message){const x_=document.createDocumentFragment(),eme={fragment:x_};message=eme,act$1(()=>{render$3(jsx(GlobalHolderWrapper$1,{ref:$P=>{const{instance:tme,sync:ame}=$P||{};Promise.resolve().then(()=>{!eme.instance&&tme&&(eme.instance=tme,eme.sync=ame,flushNotice$1())})}}),x_)});return}message.instance&&(taskQueue$1.forEach(x_=>{const{type:eme,skipped:$P}=x_;if(!$P)switch(eme){case"open":{act$1(()=>{const tme=message.instance.open(Object.assign(Object.assign({},defaultGlobalConfig$1),x_.config));tme==null||tme.then(x_.resolve),x_.setCloseFn(tme)});break}case"destroy":act$1(()=>{message==null||message.instance.destroy(x_.key)});break;default:act$1(()=>{var tme;const ame=(tme=message.instance)[eme].apply(tme,_toConsumableArray$1(x_.args));ame==null||ame.then(x_.resolve),x_.setCloseFn(ame)})}}),taskQueue$1=[])}function setMessageGlobalConfig(x_){defaultGlobalConfig$1=Object.assign(Object.assign({},defaultGlobalConfig$1),x_),act$1(()=>{var eme;(eme=message==null?void 0:message.sync)===null||eme===void 0||eme.call(message)})}function open$2(x_){const eme=wrapPromiseFn($P=>{let tme;const ame={type:"open",config:x_,resolve:$P,setCloseFn:nme=>{tme=nme}};return taskQueue$1.push(ame),()=>{tme?act$1(()=>{tme()}):ame.skipped=!0}});return flushNotice$1(),eme}function typeOpen(x_,eme){const $P=wrapPromiseFn(tme=>{let ame;const nme={type:x_,args:eme,resolve:tme,setCloseFn:rme=>{ame=rme}};return taskQueue$1.push(nme),()=>{ame?act$1(()=>{ame()}):nme.skipped=!0}});return flushNotice$1(),$P}const destroy$2=x_=>{taskQueue$1.push({type:"destroy",key:x_}),flushNotice$1()},methods$1=["success","info","warning","error","loading"],baseStaticMethods$1={open:open$2,destroy:destroy$2,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$8},staticMethods$1=baseStaticMethods$1;methods$1.forEach(x_=>{staticMethods$1[x_]=function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return typeOpen(x_,$P)}});let notification=null,act=x_=>x_(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:x_,rtl:eme,maxCount:$P,top:tme,bottom:ame,showProgress:nme,pauseOnHover:rme}=defaultGlobalConfig,ime=(x_==null?void 0:x_())||document.body;return{getContainer:()=>ime,rtl:eme,maxCount:$P,top:tme,bottom:ame,showProgress:nme,pauseOnHover:rme}}const GlobalHolder=React__default.forwardRef((x_,eme)=>{const{notificationConfig:$P,sync:tme}=x_,{getPrefixCls:ame}=reactExports.useContext(ConfigContext),nme=defaultGlobalConfig.prefixCls||ame("notification"),rme=reactExports.useContext(AppConfigContext),[ime,ome]=useInternalNotification(Object.assign(Object.assign(Object.assign({},$P),{prefixCls:nme}),rme.notification));return React__default.useEffect(tme,[]),React__default.useImperativeHandle(eme,()=>{const lme=Object.assign({},ime);return Object.keys(lme).forEach(sme=>{lme[sme]=function(){return tme(),ime[sme].apply(ime,arguments)}}),{instance:lme,sync:tme}}),ome}),GlobalHolderWrapper=React__default.forwardRef((x_,eme)=>{const[$P,tme]=React__default.useState(getGlobalContext),ame=()=>{tme(getGlobalContext)};React__default.useEffect(ame,[]);const nme=globalConfig(),rme=nme.getRootPrefixCls(),ime=nme.getIconPrefixCls(),ome=nme.getTheme(),lme=jsx(GlobalHolder,{ref:eme,sync:ame,notificationConfig:$P});return jsx(ConfigProvider,{prefixCls:rme,iconPrefixCls:ime,theme:ome,children:nme.holderRender?nme.holderRender(lme):lme})});function flushNotice(){if(!notification){const x_=document.createDocumentFragment(),eme={fragment:x_};notification=eme,act(()=>{render$3(jsx(GlobalHolderWrapper,{ref:$P=>{const{instance:tme,sync:ame}=$P||{};Promise.resolve().then(()=>{!eme.instance&&tme&&(eme.instance=tme,eme.sync=ame,flushNotice())})}}),x_)});return}notification.instance&&(taskQueue.forEach(x_=>{switch(x_.type){case"open":{act(()=>{notification.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),x_.config))});break}case"destroy":act(()=>{notification==null||notification.instance.destroy(x_.key)});break}}),taskQueue=[])}function setNotificationGlobalConfig(x_){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),x_),act(()=>{var eme;(eme=notification==null?void 0:notification.sync)===null||eme===void 0||eme.call(notification)})}function open$1(x_){taskQueue.push({type:"open",config:x_}),flushNotice()}const destroy$1=x_=>{taskQueue.push({type:"destroy",key:x_}),flushNotice()},methods=["success","info","warning","error"],baseStaticMethods={open:open$1,destroy:destroy$1,config:setNotificationGlobalConfig,useNotification,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$7},staticMethods=baseStaticMethods;methods.forEach(x_=>{staticMethods[x_]=eme=>open$1(Object.assign(Object.assign({},eme),{type:x_}))});var _excluded$6=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$3=reactExports.forwardRef(function(x_,eme){var $P,tme=x_.prefixCls,ame=tme===void 0?"rc-switch":tme,nme=x_.className,rme=x_.checked,ime=x_.defaultChecked,ome=x_.disabled,lme=x_.loadingIcon,sme=x_.checkedChildren,cme=x_.unCheckedChildren,dme=x_.onClick,ume=x_.onChange,fme=x_.onKeyDown,pme=_objectWithoutProperties$6(x_,_excluded$6),hme=useMergedState(!1,{value:rme,defaultValue:ime}),bme=_slicedToArray$2(hme,2),mme=bme[0],vme=bme[1];function gme(Cme,Sme){var Eme=mme;return ome||(Eme=Cme,vme(Eme),ume==null||ume(Eme,Sme)),Eme}function yme(Cme){Cme.which===KeyCode.LEFT?gme(!1,Cme):Cme.which===KeyCode.RIGHT&&gme(!0,Cme),fme==null||fme(Cme)}function _me(Cme){var Sme=gme(!mme,Cme);dme==null||dme(Sme,Cme)}var $me=classNames(ame,nme,($P={},_defineProperty$7($P,"".concat(ame,"-checked"),mme),_defineProperty$7($P,"".concat(ame,"-disabled"),ome),$P));return reactExports.createElement("button",_extends$4C({},pme,{type:"button",role:"switch","aria-checked":mme,disabled:ome,className:$me,ref:eme,onKeyDown:yme,onClick:_me}),lme,reactExports.createElement("span",{className:"".concat(ame,"-inner")},reactExports.createElement("span",{className:"".concat(ame,"-inner-checked")},sme),reactExports.createElement("span",{className:"".concat(ame,"-inner-unchecked")},cme)))});Switch$3.displayName="Switch";const genSwitchSmallStyle=x_=>{const{componentCls:eme,trackHeightSM:$P,trackPadding:tme,trackMinWidthSM:ame,innerMinMarginSM:nme,innerMaxMarginSM:rme,handleSizeSM:ime,calc:ome}=x_,lme=`${eme}-inner`,sme=unit$1(ome(ime).add(ome(tme).mul(2)).equal()),cme=unit$1(ome(rme).mul(2).equal());return{[eme]:{[`&${eme}-small`]:{minWidth:ame,height:$P,lineHeight:unit$1($P),[`${eme}-inner`]:{paddingInlineStart:rme,paddingInlineEnd:nme,[`${lme}-checked, ${lme}-unchecked`]:{minHeight:$P},[`${lme}-checked`]:{marginInlineStart:`calc(-100% + ${sme} - ${cme})`,marginInlineEnd:`calc(100% - ${sme} + ${cme})`},[`${lme}-unchecked`]:{marginTop:ome($P).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${eme}-handle`]:{width:ime,height:ime},[`${eme}-loading-icon`]:{top:ome(ome(ime).sub(x_.switchLoadingIconSize)).div(2).equal(),fontSize:x_.switchLoadingIconSize},[`&${eme}-checked`]:{[`${eme}-inner`]:{paddingInlineStart:nme,paddingInlineEnd:rme,[`${lme}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${lme}-unchecked`]:{marginInlineStart:`calc(100% - ${sme} + ${cme})`,marginInlineEnd:`calc(-100% + ${sme} - ${cme})`}},[`${eme}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(ome(ime).add(tme).equal())})`}},[`&:not(${eme}-disabled):active`]:{[`&:not(${eme}-checked) ${lme}`]:{[`${lme}-unchecked`]:{marginInlineStart:ome(x_.marginXXS).div(2).equal(),marginInlineEnd:ome(x_.marginXXS).mul(-1).div(2).equal()}},[`&${eme}-checked ${lme}`]:{[`${lme}-checked`]:{marginInlineStart:ome(x_.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ome(x_.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=x_=>{const{componentCls:eme,handleSize:$P,calc:tme}=x_;return{[eme]:{[`${eme}-loading-icon${x_.iconCls}`]:{position:"relative",top:tme(tme($P).sub(x_.fontSize)).div(2).equal(),color:x_.switchLoadingIconColor,verticalAlign:"top"},[`&${eme}-checked ${eme}-loading-icon`]:{color:x_.switchColor}}}},genSwitchHandleStyle=x_=>{const{componentCls:eme,trackPadding:$P,handleBg:tme,handleShadow:ame,handleSize:nme,calc:rme}=x_,ime=`${eme}-handle`;return{[eme]:{[ime]:{position:"absolute",top:$P,insetInlineStart:$P,width:nme,height:nme,transition:`all ${x_.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:tme,borderRadius:rme(nme).div(2).equal(),boxShadow:ame,transition:`all ${x_.switchDuration} ease-in-out`,content:'""'}},[`&${eme}-checked ${ime}`]:{insetInlineStart:`calc(100% - ${unit$1(rme(nme).add($P).equal())})`},[`&:not(${eme}-disabled):active`]:{[`${ime}::before`]:{insetInlineEnd:x_.switchHandleActiveInset,insetInlineStart:0},[`&${eme}-checked ${ime}::before`]:{insetInlineEnd:0,insetInlineStart:x_.switchHandleActiveInset}}}}},genSwitchInnerStyle=x_=>{const{componentCls:eme,trackHeight:$P,trackPadding:tme,innerMinMargin:ame,innerMaxMargin:nme,handleSize:rme,calc:ime}=x_,ome=`${eme}-inner`,lme=unit$1(ime(rme).add(ime(tme).mul(2)).equal()),sme=unit$1(ime(nme).mul(2).equal());return{[eme]:{[ome]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:nme,paddingInlineEnd:ame,transition:`padding-inline-start ${x_.switchDuration} ease-in-out, padding-inline-end ${x_.switchDuration} ease-in-out`,[`${ome}-checked, ${ome}-unchecked`]:{display:"block",color:x_.colorTextLightSolid,fontSize:x_.fontSizeSM,transition:`margin-inline-start ${x_.switchDuration} ease-in-out, margin-inline-end ${x_.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:$P},[`${ome}-checked`]:{marginInlineStart:`calc(-100% + ${lme} - ${sme})`,marginInlineEnd:`calc(100% - ${lme} + ${sme})`},[`${ome}-unchecked`]:{marginTop:ime($P).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${eme}-checked ${ome}`]:{paddingInlineStart:ame,paddingInlineEnd:nme,[`${ome}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ome}-unchecked`]:{marginInlineStart:`calc(100% - ${lme} + ${sme})`,marginInlineEnd:`calc(-100% + ${lme} - ${sme})`}},[`&:not(${eme}-disabled):active`]:{[`&:not(${eme}-checked) ${ome}`]:{[`${ome}-unchecked`]:{marginInlineStart:ime(tme).mul(2).equal(),marginInlineEnd:ime(tme).mul(-1).mul(2).equal()}},[`&${eme}-checked ${ome}`]:{[`${ome}-checked`]:{marginInlineStart:ime(tme).mul(-1).mul(2).equal(),marginInlineEnd:ime(tme).mul(2).equal()}}}}}},genSwitchStyle=x_=>{const{componentCls:eme,trackHeight:$P,trackMinWidth:tme}=x_;return{[eme]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(x_)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:tme,height:$P,lineHeight:unit$1($P),verticalAlign:"middle",background:x_.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${x_.motionDurationMid}`,userSelect:"none",[`&:hover:not(${eme}-disabled)`]:{background:x_.colorTextTertiary}}),genFocusStyle(x_)),{[`&${eme}-checked`]:{background:x_.switchColor,[`&:hover:not(${eme}-disabled)`]:{background:x_.colorPrimaryHover}},[`&${eme}-loading, &${eme}-disabled`]:{cursor:"not-allowed",opacity:x_.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${eme}-rtl`]:{direction:"rtl"}})}},prepareComponentToken=x_=>{const{fontSize:eme,lineHeight:$P,controlHeight:tme,colorWhite:ame}=x_,nme=eme*$P,rme=tme/2,ime=2,ome=nme-ime*2,lme=rme-ime*2;return{trackHeight:nme,trackHeightSM:rme,trackMinWidth:ome*2+ime*4,trackMinWidthSM:lme*2+ime*2,trackPadding:ime,handleBg:ame,handleSize:ome,handleSizeSM:lme,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ome/2,innerMaxMargin:ome+ime+ime*2,innerMinMarginSM:lme/2,innerMaxMarginSM:lme+ime+ime*2}},useStyle=genStyleHooks("Switch",x_=>{const eme=merge$5(x_,{switchDuration:x_.motionDurationMid,switchColor:x_.colorPrimary,switchDisabledOpacity:x_.opacityLoading,switchLoadingIconSize:x_.calc(x_.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${x_.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(eme),genSwitchInnerStyle(eme),genSwitchHandleStyle(eme),genSwitchLoadingStyle(eme),genSwitchSmallStyle(eme)]},prepareComponentToken);var __rest$1=function(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P};const InternalSwitch=reactExports.forwardRef((x_,eme)=>{const{prefixCls:$P,size:tme,disabled:ame,loading:nme,className:rme,rootClassName:ime,style:ome,checked:lme,value:sme,defaultChecked:cme,defaultValue:dme,onChange:ume}=x_,fme=__rest$1(x_,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[pme,hme]=useMergedState(!1,{value:lme??sme,defaultValue:cme??dme}),{getPrefixCls:bme,direction:mme,switch:vme}=reactExports.useContext(ConfigContext),gme=reactExports.useContext(DisabledContext),yme=(ame??gme)||nme,_me=bme("switch",$P),$me=reactExports.createElement("div",{className:`${_me}-handle`},nme&&reactExports.createElement(RefIcon$j,{className:`${_me}-loading-icon`})),[Cme,Sme,Eme]=useStyle(_me),xme=useSize(tme),Tme=classNames(vme==null?void 0:vme.className,{[`${_me}-small`]:xme==="small",[`${_me}-loading`]:nme,[`${_me}-rtl`]:mme==="rtl"},rme,ime,Sme,Eme),Ome=Object.assign(Object.assign({},vme==null?void 0:vme.style),ome),Rme=function(){hme(arguments.length<=0?void 0:arguments[0]),ume==null||ume.apply(void 0,arguments)};return Cme(reactExports.createElement(Wave,{component:"Switch"},reactExports.createElement(Switch$3,Object.assign({},fme,{checked:pme,onChange:Rme,prefixCls:_me,className:Tme,style:Ome,disabled:yme,ref:eme,loadingIcon:$me}))))}),Switch$2=InternalSwitch;Switch$2.__ANT_SWITCH=!0;const getDesignToken=x_=>{const eme=x_!=null&&x_.algorithm?createTheme(x_.algorithm):createTheme(derivative$2),$P=Object.assign(Object.assign({},seedToken),x_==null?void 0:x_.token);return getComputedToken$1($P,{override:x_==null?void 0:x_.token},eme,formatToken)};function genSizeMapToken(x_){const{sizeUnit:eme,sizeStep:$P}=x_,tme=$P-2;return{sizeXXL:eme*(tme+10),sizeXL:eme*(tme+6),sizeLG:eme*(tme+2),sizeMD:eme*(tme+2),sizeMS:eme*(tme+1),size:eme*tme,sizeSM:eme*tme,sizeXS:eme*(tme-1),sizeXXS:eme*(tme-1)}}const derivative$1=(x_,eme)=>{const $P=eme??derivative$2(x_),tme=$P.fontSizeSM,ame=$P.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$P),genSizeMapToken(eme??x_)),genFontMapToken(tme)),{controlHeight:ame}),genControlHeight(Object.assign(Object.assign({},$P),{controlHeight:ame})))},getAlphaColor=(x_,eme)=>new TinyColor(x_).setAlpha(eme).toRgbString(),getSolidColor=(x_,eme)=>new TinyColor(x_).lighten(eme).toHexString(),generateColorPalettes=x_=>{const eme=generate$1(x_,{theme:"dark"});return{1:eme[0],2:eme[1],3:eme[2],4:eme[3],5:eme[6],6:eme[5],7:eme[4],8:eme[6],9:eme[5],10:eme[4]}},generateNeutralColorPalettes=(x_,eme)=>{const $P=x_||"#000",tme=eme||"#fff";return{colorBgBase:$P,colorTextBase:tme,colorText:getAlphaColor(tme,.85),colorTextSecondary:getAlphaColor(tme,.65),colorTextTertiary:getAlphaColor(tme,.45),colorTextQuaternary:getAlphaColor(tme,.25),colorFill:getAlphaColor(tme,.18),colorFillSecondary:getAlphaColor(tme,.12),colorFillTertiary:getAlphaColor(tme,.08),colorFillQuaternary:getAlphaColor(tme,.04),colorBgSolid:getAlphaColor(tme,.95),colorBgSolidHover:getAlphaColor(tme,1),colorBgSolidActive:getAlphaColor(tme,.9),colorBgElevated:getSolidColor($P,12),colorBgContainer:getSolidColor($P,8),colorBgLayout:getSolidColor($P,0),colorBgSpotlight:getSolidColor($P,26),colorBgBlur:getAlphaColor(tme,.04),colorBorder:getSolidColor($P,26),colorBorderSecondary:getSolidColor($P,19)}},derivative=(x_,eme)=>{const $P=Object.keys(defaultPresetColors).map(ame=>{const nme=generate$1(x_[ame],{theme:"dark"});return new Array(10).fill(1).reduce((rme,ime,ome)=>(rme[`${ame}-${ome+1}`]=nme[ome],rme[`${ame}${ome+1}`]=nme[ome],rme),{})}).reduce((ame,nme)=>(ame=Object.assign(Object.assign({},ame),nme),ame),{}),tme=eme??derivative$2(x_);return Object.assign(Object.assign(Object.assign({},tme),$P),genColorMapToken(x_,{generateColorPalettes,generateNeutralColorPalettes}))};function useToken(){const[x_,eme,$P]=useToken$1();return{theme:x_,token:eme,hashId:$P}}const theme$1={defaultSeed:defaultConfig$2.token,useToken,defaultAlgorithm:derivative$2,darkAlgorithm:derivative,compactAlgorithm:derivative$1,getDesignToken,defaultConfig:defaultConfig$2,_internalContext:DesignTokenContext};React__default.Component;var defaultOptions$3={subtree:!0,childList:!0,attributeFilter:["style","class"]};function useMutateObserver(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:defaultOptions$3;reactExports.useEffect(function(){if(!(!canUseDom()||!x_)){var tme,ame=Array.isArray(x_)?x_:[x_];return"MutationObserver"in window&&(tme=new MutationObserver(eme),ame.forEach(function(nme){tme.observe(nme,$P)})),function(){var nme,rme;(nme=tme)===null||nme===void 0||nme.takeRecords(),(rme=tme)===null||rme===void 0||rme.disconnect()}}},[$P,x_])}const FontGap=3;function prepareCanvas(x_,eme){let $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const tme=document.createElement("canvas"),ame=tme.getContext("2d"),nme=x_*$P,rme=eme*$P;return tme.setAttribute("width",`${nme}px`),tme.setAttribute("height",`${rme}px`),ame.save(),[ame,tme,nme,rme]}function useClips(){function x_(eme,$P,tme,ame,nme,rme,ime,ome){const[lme,sme,cme,dme]=prepareCanvas(ame,nme,tme);if(eme instanceof HTMLImageElement)lme.drawImage(eme,0,0,cme,dme);else{const{color:Dme,fontSize:jme,fontStyle:Vme,fontWeight:Wme,fontFamily:Lme,textAlign:zme}=rme,Ume=Number(jme)*tme;lme.font=`${Vme} normal ${Wme} ${Ume}px/${nme}px ${Lme}`,lme.fillStyle=Dme,lme.textAlign=zme,lme.textBaseline="top";const Gme=toList(eme);Gme==null||Gme.forEach((Jme,Yme)=>{lme.fillText(Jme??"",cme/2,Yme*(Ume+FontGap*tme))})}const ume=Math.PI/180*Number($P),fme=Math.max(ame,nme),[pme,hme,bme]=prepareCanvas(fme,fme,tme);pme.translate(bme/2,bme/2),pme.rotate(ume),cme>0&&dme>0&&pme.drawImage(sme,-cme/2,-dme/2);function mme(Dme,jme){const Vme=Dme*Math.cos(ume)-jme*Math.sin(ume),Wme=Dme*Math.sin(ume)+jme*Math.cos(ume);return[Vme,Wme]}let vme=0,gme=0,yme=0,_me=0;const $me=cme/2,Cme=dme/2;[[0-$me,0-Cme],[0+$me,0-Cme],[0+$me,0+Cme],[0-$me,0+Cme]].forEach(Dme=>{let[jme,Vme]=Dme;const[Wme,Lme]=mme(jme,Vme);vme=Math.min(vme,Wme),gme=Math.max(gme,Wme),yme=Math.min(yme,Lme),_me=Math.max(_me,Lme)});const Eme=vme+bme/2,xme=yme+bme/2,Tme=gme-vme,Ome=_me-yme,Rme=ime*tme,Nme=ome*tme,Ime=(Tme+Rme)*2,Pme=Ome+Nme,[Mme,kme]=prepareCanvas(Ime,Pme);function Bme(){let Dme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,jme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mme.drawImage(hme,Eme,xme,Tme,Ome,Dme,jme,Tme,Ome)}return Bme(),Bme(Tme+Rme,-Ome/2-Nme/2),Bme(Tme+Rme,+Ome/2+Nme/2),[kme.toDataURL(),Ime/tme,Pme/tme]}return x_}function useRafDebounce(x_){const eme=React__default.useRef(!1),$P=React__default.useRef(),tme=useEvent(x_);return()=>{eme.current||(eme.current=!0,tme(),$P.current=wrapperRaf(()=>{eme.current=!1}))}}function toLowercaseSeparator(x_){return x_.replace(/([A-Z])/g,"-$1").toLowerCase()}function getStyleStr(x_){return Object.keys(x_).map(eme=>`${toLowercaseSeparator(eme)}: ${x_[eme]};`).join(" ")}function getPixelRatio(){return window.devicePixelRatio||1}const reRendering=(x_,eme)=>{let $P=!1;return x_.removedNodes.length&&($P=Array.from(x_.removedNodes).some(tme=>eme(tme))),x_.type==="attributes"&&eme(x_.target)&&($P=!0),$P},emphasizedStyle={visibility:"visible !important"};function useWatermark(x_){const[eme]=reactExports.useState(()=>new Map);return[(nme,rme,ime)=>{if(ime){if(!eme.get(ime)){const lme=document.createElement("div");eme.set(ime,lme)}const ome=eme.get(ime);ome.setAttribute("style",getStyleStr(Object.assign(Object.assign(Object.assign({},x_),{backgroundImage:`url('${nme}')`,backgroundSize:`${Math.floor(rme)}px`}),emphasizedStyle))),ome.removeAttribute("class"),ome.parentElement!==ime&&ime.append(ome)}return eme.get(ime)},nme=>{const rme=eme.get(nme);rme&&nme&&nme.removeChild(rme),eme.delete(nme)},nme=>Array.from(eme.values()).includes(nme)]}function getSizeDiff(x_,eme){return x_.size===eme.size?x_:eme}const DEFAULT_GAP_X=100,DEFAULT_GAP_Y=100,fixedStyle={position:"relative",overflow:"hidden"},Watermark$1=x_=>{var eme,$P;const{zIndex:tme=9,rotate:ame=-22,width:nme,height:rme,image:ime,content:ome,font:lme={},style:sme,className:cme,rootClassName:dme,gap:ume=[DEFAULT_GAP_X,DEFAULT_GAP_Y],offset:fme,children:pme,inherit:hme=!0}=x_,bme=Object.assign(Object.assign({},fixedStyle),sme),[,mme]=useToken$1(),{color:vme=mme.colorFill,fontSize:gme=mme.fontSizeLG,fontWeight:yme="normal",fontStyle:_me="normal",fontFamily:$me="sans-serif",textAlign:Cme="center"}=lme,[Sme=DEFAULT_GAP_X,Eme=DEFAULT_GAP_Y]=ume,xme=Sme/2,Tme=Eme/2,Ome=(eme=fme==null?void 0:fme[0])!==null&&eme!==void 0?eme:xme,Rme=($P=fme==null?void 0:fme[1])!==null&&$P!==void 0?$P:Tme,Nme=React__default.useMemo(()=>{const Kme={zIndex:tme,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let Zme=Ome-xme,nbe=Rme-Tme;return Zme>0&&(Kme.left=`${Zme}px`,Kme.width=`calc(100% - ${Zme}px)`,Zme=0),nbe>0&&(Kme.top=`${nbe}px`,Kme.height=`calc(100% - ${nbe}px)`,nbe=0),Kme.backgroundPosition=`${Zme}px ${nbe}px`,Kme},[tme,Ome,xme,Rme,Tme]),[Ime,Pme]=React__default.useState(),[Mme,kme]=React__default.useState(new Set),Bme=React__default.useMemo(()=>{const Kme=Ime?[Ime]:[];return[].concat(Kme,_toConsumableArray$1(Array.from(Mme)))},[Ime,Mme]),Dme=Kme=>{let Zme=120,nbe=64;if(!ime&&Kme.measureText){Kme.font=`${Number(gme)}px ${$me}`;const lbe=toList(ome),ibe=lbe.map(abe=>{const obe=Kme.measureText(abe);return[obe.width,obe.fontBoundingBoxAscent+obe.fontBoundingBoxDescent]});Zme=Math.ceil(Math.max.apply(Math,_toConsumableArray$1(ibe.map(abe=>abe[0])))),nbe=Math.ceil(Math.max.apply(Math,_toConsumableArray$1(ibe.map(abe=>abe[1]))))*lbe.length+(lbe.length-1)*FontGap}return[nme??Zme,rme??nbe]},jme=useClips(),[Vme,Wme]=React__default.useState(null),zme=useRafDebounce(()=>{const Zme=document.createElement("canvas").getContext("2d");if(Zme){const nbe=getPixelRatio(),[lbe,ibe]=Dme(Zme),abe=obe=>{const[hbe,ube]=jme(obe||"",ame,nbe,lbe,ibe,{color:vme,fontSize:gme,fontStyle:_me,fontWeight:yme,fontFamily:$me,textAlign:Cme},Sme,Eme);Wme([hbe,ube])};if(ime){const obe=new Image;obe.onload=()=>{abe(obe)},obe.onerror=()=>{abe(ome)},obe.crossOrigin="anonymous",obe.referrerPolicy="no-referrer",obe.src=ime}else abe(ome)}}),[Ume,Gme,Jme]=useWatermark(Nme);reactExports.useEffect(()=>{Vme&&Bme.forEach(Kme=>{Ume(Vme[0],Vme[1],Kme)})},[Vme,Bme]);const Yme=useEvent(Kme=>{Kme.forEach(Zme=>{if(reRendering(Zme,Jme))zme();else if(Zme.target===Ime&&Zme.attributeName==="style"){const nbe=Object.keys(fixedStyle);for(let lbe=0;lbe<nbe.length;lbe+=1){const ibe=nbe[lbe],abe=bme[ibe],obe=Ime.style[ibe];abe&&abe!==obe&&(Ime.style[ibe]=abe)}}})});useMutateObserver(Bme,Yme),reactExports.useEffect(zme,[ame,tme,nme,rme,ime,ome,vme,gme,yme,_me,$me,Cme,Sme,Eme,Ome,Rme]);const Qme=React__default.useMemo(()=>({add:Kme=>{kme(Zme=>{const nbe=new Set(Zme);return nbe.add(Kme),getSizeDiff(Zme,nbe)})},remove:Kme=>{Gme(Kme),kme(Zme=>{const nbe=new Set(Zme);return nbe.delete(Kme),getSizeDiff(Zme,nbe)})}}),[]),Xme=hme?jsx(WatermarkContext.Provider,{value:Qme,children:pme}):pme;return jsx("div",{ref:Pme,className:classNames(cme,dme),style:bme,children:Xme})};var define_process_env_default$1={},OBFUSCATED_ERROR="An invariant failed, however the error is obfuscated because this is an production build.",EMPTY_ARRAY$1=[];Object.freeze(EMPTY_ARRAY$1);var EMPTY_OBJECT$2={};Object.freeze(EMPTY_OBJECT$2);var mockGlobal$1={};function getGlobal$1(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:mockGlobal$1}function getNextId(){return++globalState.mobxGuid}function fail(x_){throw invariant$3(!1,x_),"X"}function invariant$3(x_,eme){if(!x_)throw new Error("[mobx] "+(eme||OBFUSCATED_ERROR))}function once(x_){var eme=!1;return function(){if(!eme)return eme=!0,x_.apply(this,arguments)}}var noop$c=function(){};function unique(x_){var eme=[];return x_.forEach(function($P){eme.indexOf($P)===-1&&eme.push($P)}),eme}function isObject$k(x_){return x_!==null&&typeof x_=="object"}function isPlainObject$8(x_){if(x_===null||typeof x_!="object")return!1;var eme=Object.getPrototypeOf(x_);return eme===Object.prototype||eme===null}function convertToMap(x_){if(isES6Map(x_)||isObservableMap(x_))return x_;if(Array.isArray(x_))return new Map(x_);if(isPlainObject$8(x_)){var eme=new Map;for(var $P in x_)eme.set($P,x_[$P]);return eme}else return fail("Cannot convert to map from '"+x_+"'")}function makeNonEnumerable(x_,eme){for(var $P=0;$P<eme.length;$P++)addHiddenProp(x_,eme[$P],x_[eme[$P]])}function addHiddenProp(x_,eme,$P){Object.defineProperty(x_,eme,{enumerable:!1,writable:!0,configurable:!0,value:$P})}function addHiddenFinalProp$1(x_,eme,$P){Object.defineProperty(x_,eme,{enumerable:!1,writable:!1,configurable:!0,value:$P})}function createInstanceofPredicate(x_,eme){var $P="isMobX"+x_;return eme.prototype[$P]=!0,function(tme){return isObject$k(tme)&&tme[$P]===!0}}function areBothNaN(x_,eme){return typeof x_=="number"&&typeof eme=="number"&&isNaN(x_)&&isNaN(eme)}function isES6Map(x_){return getGlobal$1().Map!==void 0&&x_ instanceof getGlobal$1().Map}function isES6Set(x_){return x_ instanceof Set}function iteratorToArray(x_){for(var eme=[];;){var $P=x_.next();if($P.done)break;eme.push($P.value)}return eme}function primitiveSymbol(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function toPrimitive$1(x_){return x_===null?null:typeof x_=="object"?""+x_:x_}function forOf(x_,eme){for(var $P=x_.next();!$P.done;)eme($P.value),$P=x_.next()}function iteratorSymbol(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function declareIterator(x_,eme){addHiddenFinalProp$1(x_,iteratorSymbol(),eme)}function makeIterable(x_){return x_[iteratorSymbol()]=getSelf,x_}function toStringTagSymbol(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function getSelf(){return this}var Atom=function(){function x_(eme){eme===void 0&&(eme="Atom@"+getNextId()),this.name=eme,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=IDerivationState.NOT_TRACKING}return x_.prototype.onBecomeUnobserved=function(){},x_.prototype.onBecomeObserved=function(){},x_.prototype.reportObserved=function(){return reportObserved(this)},x_.prototype.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},x_.prototype.toString=function(){return this.name},x_}(),isAtom=createInstanceofPredicate("Atom",Atom);function createAtom(x_,eme,$P){eme===void 0&&(eme=noop$c),$P===void 0&&($P=noop$c);var tme=new Atom(x_);return onBecomeObserved(tme,eme),onBecomeUnobserved(tme,$P),tme}function identityComparer(x_,eme){return x_===eme}function structuralComparer(x_,eme){return deepEqual$1(x_,eme)}function shallowComparer(x_,eme){return deepEqual$1(x_,eme,1)}function defaultComparer(x_,eme){return areBothNaN(x_,eme)||identityComparer(x_,eme)}var comparer={identity:identityComparer,structural:structuralComparer,default:defaultComparer,shallow:shallowComparer};/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var extendStatics$1=function(x_,eme){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)tme.hasOwnProperty(ame)&&($P[ame]=tme[ame])},extendStatics$1(x_,eme)};function __extends$1(x_,eme){extendStatics$1(x_,eme);function $P(){this.constructor=x_}x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}var __assign$2=function(){return __assign$2=Object.assign||function(eme){for(var $P,tme=1,ame=arguments.length;tme<ame;tme++){$P=arguments[tme];for(var nme in $P)Object.prototype.hasOwnProperty.call($P,nme)&&(eme[nme]=$P[nme])}return eme},__assign$2.apply(this,arguments)};function __read$2(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme=$P.call(x_),ame,nme=[],rme;try{for(;(eme===void 0||eme-- >0)&&!(ame=tme.next()).done;)nme.push(ame.value)}catch(ime){rme={error:ime}}finally{try{ame&&!ame.done&&($P=tme.return)&&$P.call(tme)}finally{if(rme)throw rme.error}}return nme}function __spread$1(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_=x_.concat(__read$2(arguments[eme]));return x_}var enumerableDescriptorCache={},nonEnumerableDescriptorCache={};function createPropertyInitializerDescriptor(x_,eme){var $P=eme?enumerableDescriptorCache:nonEnumerableDescriptorCache;return $P[x_]||($P[x_]={configurable:!0,enumerable:eme,get:function(){return initializeInstance(this),this[x_]},set:function(tme){initializeInstance(this),this[x_]=tme}})}function initializeInstance(x_){if(x_.__mobxDidRunLazyInitializers!==!0){var eme=x_.__mobxDecorators;if(eme){addHiddenProp(x_,"__mobxDidRunLazyInitializers",!0);for(var $P in eme){var tme=eme[$P];tme.propertyCreator(x_,tme.prop,tme.descriptor,tme.decoratorTarget,tme.decoratorArguments)}}}}function createPropDecorator(x_,eme){return function(){var tme,ame=function(rme,ime,ome,lme){if(lme===!0)return eme(rme,ime,ome,rme,tme),null;if(!Object.prototype.hasOwnProperty.call(rme,"__mobxDecorators")){var sme=rme.__mobxDecorators;addHiddenProp(rme,"__mobxDecorators",__assign$2({},sme))}return rme.__mobxDecorators[ime]={prop:ime,propertyCreator:eme,descriptor:ome,decoratorTarget:rme,decoratorArguments:tme},createPropertyInitializerDescriptor(ime,x_)};return quacksLikeADecorator(arguments)?(tme=EMPTY_ARRAY$1,ame.apply(null,arguments)):(tme=Array.prototype.slice.call(arguments),ame)}}function quacksLikeADecorator(x_){return(x_.length===2||x_.length===3)&&typeof x_[1]=="string"||x_.length===4&&x_[3]===!0}function deepEnhancer(x_,eme,$P){return isObservable(x_)?x_:Array.isArray(x_)?observable.array(x_,{name:$P}):isPlainObject$8(x_)?observable.object(x_,void 0,{name:$P}):isES6Map(x_)?observable.map(x_,{name:$P}):isES6Set(x_)?observable.set(x_,{name:$P}):x_}function shallowEnhancer(x_,eme,$P){return x_==null||isObservableObject(x_)||isObservableArray(x_)||isObservableMap(x_)||isObservableSet(x_)?x_:Array.isArray(x_)?observable.array(x_,{name:$P,deep:!1}):isPlainObject$8(x_)?observable.object(x_,void 0,{name:$P,deep:!1}):isES6Map(x_)?observable.map(x_,{name:$P,deep:!1}):isES6Set(x_)?observable.set(x_,{name:$P,deep:!1}):fail(!1)}function referenceEnhancer(x_){return x_}function refStructEnhancer(x_,eme,$P){return deepEqual$1(x_,eme)?eme:x_}function createDecoratorForEnhancer(x_){invariant$3(x_);var eme=createPropDecorator(!0,function(tme,ame,nme,rme,ime){var ome=nme?nme.initializer?nme.initializer.call(tme):nme.value:void 0;defineObservableProperty(tme,ame,ome,x_)}),$P=(typeof process<"u",eme);return $P.enhancer=x_,$P}var defaultCreateObservableOptions={deep:!0,name:void 0,defaultDecorator:void 0};Object.freeze(defaultCreateObservableOptions);function asCreateObservableOptions(x_){return x_==null?defaultCreateObservableOptions:typeof x_=="string"?{name:x_,deep:!0}:x_}function getEnhancerFromOptions(x_){return x_.defaultDecorator?x_.defaultDecorator.enhancer:x_.deep===!1?referenceEnhancer:deepEnhancer}var deepDecorator=createDecoratorForEnhancer(deepEnhancer),shallowDecorator=createDecoratorForEnhancer(shallowEnhancer),refDecorator=createDecoratorForEnhancer(referenceEnhancer),refStructDecorator=createDecoratorForEnhancer(refStructEnhancer);function createObservable(x_,eme,$P){if(typeof arguments[1]=="string")return deepDecorator.apply(null,arguments);if(isObservable(x_))return x_;var tme=isPlainObject$8(x_)?observable.object(x_,eme,$P):Array.isArray(x_)?observable.array(x_,eme):isES6Map(x_)?observable.map(x_,eme):isES6Set(x_)?observable.set(x_,eme):x_;if(tme!==x_)return tme;fail(!1)}var observableFactories={box:function(x_,eme){arguments.length>2&&incorrectlyUsedAsDecorator("box");var $P=asCreateObservableOptions(eme);return new ObservableValue(x_,getEnhancerFromOptions($P),$P.name,!0,$P.equals)},shallowBox:function(x_,eme){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),observable.box(x_,{name:eme,deep:!1})},array:function(x_,eme){arguments.length>2&&incorrectlyUsedAsDecorator("array");var $P=asCreateObservableOptions(eme);return new ObservableArray(x_,getEnhancerFromOptions($P),$P.name)},shallowArray:function(x_,eme){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),observable.array(x_,{name:eme,deep:!1})},map:function(x_,eme){arguments.length>2&&incorrectlyUsedAsDecorator("map");var $P=asCreateObservableOptions(eme);return new ObservableMap(x_,getEnhancerFromOptions($P),$P.name)},shallowMap:function(x_,eme){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),observable.map(x_,{name:eme,deep:!1})},set:function(x_,eme){arguments.length>2&&incorrectlyUsedAsDecorator("set");var $P=asCreateObservableOptions(eme);return new ObservableSet(x_,getEnhancerFromOptions($P),$P.name)},object:function(x_,eme,$P){typeof arguments[1]=="string"&&incorrectlyUsedAsDecorator("object");var tme=asCreateObservableOptions($P);return extendObservable({},x_,eme,tme)},shallowObject:function(x_,eme){return typeof arguments[1]=="string"&&incorrectlyUsedAsDecorator("shallowObject"),observable.object(x_,{},{name:eme,deep:!1})},ref:refDecorator,shallow:shallowDecorator,deep:deepDecorator,struct:refStructDecorator},observable=createObservable;Object.keys(observableFactories).forEach(function(x_){return observable[x_]=observableFactories[x_]});function incorrectlyUsedAsDecorator(x_){fail("Expected one or two arguments to observable."+x_+". Did you accidentally try to use observable."+x_+" as decorator?")}var computedDecorator=createPropDecorator(!1,function(x_,eme,$P,tme,ame){var nme=$P.get,rme=$P.set,ime=ame[0]||{};defineComputedProperty(x_,eme,__assign$2({get:nme,set:rme},ime))}),computedStructDecorator=computedDecorator({equals:comparer.structural}),computed=function(eme,$P,tme){if(typeof $P=="string"||eme!==null&&typeof eme=="object"&&arguments.length===1)return computedDecorator.apply(null,arguments);var ame=typeof $P=="object"?$P:{};return ame.get=eme,ame.set=typeof $P=="function"?$P:ame.set,ame.name=ame.name||eme.name||"",new ComputedValue(ame)};computed.struct=computedStructDecorator;var IDerivationState;(function(x_){x_[x_.NOT_TRACKING=-1]="NOT_TRACKING",x_[x_.UP_TO_DATE=0]="UP_TO_DATE",x_[x_.POSSIBLY_STALE=1]="POSSIBLY_STALE",x_[x_.STALE=2]="STALE"})(IDerivationState||(IDerivationState={}));var TraceMode;(function(x_){x_[x_.NONE=0]="NONE",x_[x_.LOG=1]="LOG",x_[x_.BREAK=2]="BREAK"})(TraceMode||(TraceMode={}));var CaughtException=function(){function x_(eme){this.cause=eme}return x_}();function isCaughtException(x_){return x_ instanceof CaughtException}function shouldCompute(x_){switch(x_.dependenciesState){case IDerivationState.UP_TO_DATE:return!1;case IDerivationState.NOT_TRACKING:case IDerivationState.STALE:return!0;case IDerivationState.POSSIBLY_STALE:{for(var eme=allowStateReadsStart(!0),$P=untrackedStart(),tme=x_.observing,ame=tme.length,nme=0;nme<ame;nme++){var rme=tme[nme];if(isComputedValue(rme)){if(globalState.disableErrorBoundaries)rme.get();else try{rme.get()}catch{return untrackedEnd($P),allowStateReadsEnd(eme),!0}if(x_.dependenciesState===IDerivationState.STALE)return untrackedEnd($P),allowStateReadsEnd(eme),!0}}return changeDependenciesStateTo0(x_),untrackedEnd($P),allowStateReadsEnd(eme),!1}}}function checkIfStateModificationsAreAllowed(x_){var eme=x_.observers.length>0;globalState.computationDepth>0&&eme&&fail(!1),!globalState.allowStateChanges&&(eme||globalState.enforceActions==="strict")&&fail(!1)}function trackDerivedFunction(x_,eme,$P){var tme=allowStateReadsStart(!0);changeDependenciesStateTo0(x_),x_.newObserving=new Array(x_.observing.length+100),x_.unboundDepsCount=0,x_.runId=++globalState.runId;var ame=globalState.trackingDerivation;globalState.trackingDerivation=x_;var nme;if(globalState.disableErrorBoundaries===!0)nme=eme.call($P);else try{nme=eme.call($P)}catch(rme){nme=new CaughtException(rme)}return globalState.trackingDerivation=ame,bindDependencies(x_),x_.observing.length,allowStateReadsEnd(tme),nme}function bindDependencies(x_){for(var eme=x_.observing,$P=x_.observing=x_.newObserving,tme=IDerivationState.UP_TO_DATE,ame=0,nme=x_.unboundDepsCount,rme=0;rme<nme;rme++){var ime=$P[rme];ime.diffValue===0&&(ime.diffValue=1,ame!==rme&&($P[ame]=ime),ame++),ime.dependenciesState>tme&&(tme=ime.dependenciesState)}for($P.length=ame,x_.newObserving=null,nme=eme.length;nme--;){var ime=eme[nme];ime.diffValue===0&&removeObserver(ime,x_),ime.diffValue=0}for(;ame--;){var ime=$P[ame];ime.diffValue===1&&(ime.diffValue=0,addObserver(ime,x_))}tme!==IDerivationState.UP_TO_DATE&&(x_.dependenciesState=tme,x_.onBecomeStale())}function clearObserving(x_){var eme=x_.observing;x_.observing=[];for(var $P=eme.length;$P--;)removeObserver(eme[$P],x_);x_.dependenciesState=IDerivationState.NOT_TRACKING}function untracked(x_){var eme=untrackedStart(),$P=x_();return untrackedEnd(eme),$P}function untrackedStart(){var x_=globalState.trackingDerivation;return globalState.trackingDerivation=null,x_}function untrackedEnd(x_){globalState.trackingDerivation=x_}function allowStateReadsStart(x_){var eme=globalState.allowStateReads;return globalState.allowStateReads=x_,eme}function allowStateReadsEnd(x_){globalState.allowStateReads=x_}function changeDependenciesStateTo0(x_){if(x_.dependenciesState!==IDerivationState.UP_TO_DATE){x_.dependenciesState=IDerivationState.UP_TO_DATE;for(var eme=x_.observing,$P=eme.length;$P--;)eme[$P].lowestObserverState=IDerivationState.UP_TO_DATE}}var currentActionId=0,nextActionId$1=1,functionNameDescriptor=Object.getOwnPropertyDescriptor(function(){},"name");functionNameDescriptor&&functionNameDescriptor.configurable;function createAction(x_,eme){var $P=function(){return executeAction(x_,eme,this,arguments)};return $P.isMobxAction=!0,$P}function executeAction(x_,eme,$P,tme){var ame=_startAction(x_,$P,tme);try{return eme.apply($P,tme)}catch(nme){throw ame.error=nme,nme}finally{_endAction(ame)}}function _startAction(x_,eme,$P){var tme=isSpyEnabled()&&!!x_,ame=0;if(tme){ame=Date.now();var nme=$P&&$P.length||0,rme=new Array(nme);if(nme>0)for(var ime=0;ime<nme;ime++)rme[ime]=$P[ime];spyReportStart({type:"action",name:x_,object:eme,arguments:rme})}var ome=untrackedStart();startBatch();var lme=allowStateChangesStart(!0),sme=allowStateReadsStart(!0),cme={prevDerivation:ome,prevAllowStateChanges:lme,prevAllowStateReads:sme,notifySpy:tme,startTime:ame,actionId:nextActionId$1++,parentActionId:currentActionId};return currentActionId=cme.actionId,cme}function _endAction(x_){currentActionId!==x_.actionId&&fail("invalid action stack. did you forget to finish an action?"),currentActionId=x_.parentActionId,x_.error!==void 0&&(globalState.suppressReactionErrors=!0),allowStateChangesEnd(x_.prevAllowStateChanges),allowStateReadsEnd(x_.prevAllowStateReads),endBatch(),untrackedEnd(x_.prevDerivation),x_.notifySpy&&spyReportEnd({time:Date.now()-x_.startTime}),globalState.suppressReactionErrors=!1}function allowStateChanges(x_,eme){var $P=allowStateChangesStart(x_),tme;try{tme=eme()}finally{allowStateChangesEnd($P)}return tme}function allowStateChangesStart(x_){var eme=globalState.allowStateChanges;return globalState.allowStateChanges=x_,eme}function allowStateChangesEnd(x_){globalState.allowStateChanges=x_}function allowStateChangesInsideComputed(x_){var eme=globalState.computationDepth;globalState.computationDepth=0;var $P;try{$P=x_()}finally{globalState.computationDepth=eme}return $P}var ObservableValue=function(x_){__extends$1(eme,x_);function eme($P,tme,ame,nme,rme){ame===void 0&&(ame="ObservableValue@"+getNextId()),nme===void 0&&(nme=!0),rme===void 0&&(rme=comparer.default);var ime=x_.call(this,ame)||this;return ime.enhancer=tme,ime.name=ame,ime.equals=rme,ime.hasUnreportedChange=!1,ime.value=tme($P,void 0,ame),nme&&isSpyEnabled()&&spyReport({type:"create",name:ime.name,newValue:""+ime.value}),ime}return eme.prototype.dehanceValue=function($P){return this.dehancer!==void 0?this.dehancer($P):$P},eme.prototype.set=function($P){var tme=this.value;if($P=this.prepareNewValue($P),$P!==globalState.UNCHANGED){var ame=isSpyEnabled();ame&&spyReportStart({type:"update",name:this.name,newValue:$P,oldValue:tme}),this.setNewValue($P),ame&&spyReportEnd()}},eme.prototype.prepareNewValue=function($P){if(checkIfStateModificationsAreAllowed(this),hasInterceptors(this)){var tme=interceptChange(this,{object:this,type:"update",newValue:$P});if(!tme)return globalState.UNCHANGED;$P=tme.newValue}return $P=this.enhancer($P,this.value,this.name),this.equals(this.value,$P)?globalState.UNCHANGED:$P},eme.prototype.setNewValue=function($P){var tme=this.value;this.value=$P,this.reportChanged(),hasListeners(this)&&notifyListeners(this,{type:"update",object:this,newValue:$P,oldValue:tme})},eme.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},eme.prototype.intercept=function($P){return registerInterceptor(this,$P)},eme.prototype.observe=function($P,tme){return tme&&$P({object:this,type:"update",newValue:this.value,oldValue:void 0}),registerListener(this,$P)},eme.prototype.toJSON=function(){return this.get()},eme.prototype.toString=function(){return this.name+"["+this.value+"]"},eme.prototype.valueOf=function(){return toPrimitive$1(this.get())},eme}(Atom);ObservableValue.prototype[primitiveSymbol()]=ObservableValue.prototype.valueOf;var isObservableValue=createInstanceofPredicate("ObservableValue",ObservableValue),ComputedValue=function(){function x_(eme){this.dependenciesState=IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.value=new CaughtException(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=TraceMode.NONE,invariant$3(eme.get,"missing option for computed: get"),this.derivation=eme.get,this.name=eme.name||"ComputedValue@"+getNextId(),eme.set&&(this.setter=createAction(this.name+"-setter",eme.set)),this.equals=eme.equals||(eme.compareStructural||eme.struct?comparer.structural:comparer.default),this.scope=eme.context,this.requiresReaction=!!eme.requiresReaction,this.keepAlive=!!eme.keepAlive}return x_.prototype.onBecomeStale=function(){propagateMaybeChanged(this)},x_.prototype.onBecomeUnobserved=function(){},x_.prototype.onBecomeObserved=function(){},x_.prototype.get=function(){this.isComputing&&fail("Cycle detected in computation "+this.name+": "+this.derivation),globalState.inBatch===0&&this.observers.length===0&&!this.keepAlive?shouldCompute(this)&&(this.warnAboutUntrackedRead(),startBatch(),this.value=this.computeValue(!1),endBatch()):(reportObserved(this),shouldCompute(this)&&this.trackAndCompute()&&propagateChangeConfirmed(this));var eme=this.value;if(isCaughtException(eme))throw eme.cause;return eme},x_.prototype.peek=function(){var eme=this.computeValue(!1);if(isCaughtException(eme))throw eme.cause;return eme},x_.prototype.set=function(eme){if(this.setter){invariant$3(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,eme)}finally{this.isRunningSetter=!1}}else invariant$3(!1,!1)},x_.prototype.trackAndCompute=function(){isSpyEnabled()&&spyReport({object:this.scope,type:"compute",name:this.name});var eme=this.value,$P=this.dependenciesState===IDerivationState.NOT_TRACKING,tme=this.computeValue(!0),ame=$P||isCaughtException(eme)||isCaughtException(tme)||!this.equals(eme,tme);return ame&&(this.value=tme),ame},x_.prototype.computeValue=function(eme){this.isComputing=!0,globalState.computationDepth++;var $P;if(eme)$P=trackDerivedFunction(this,this.derivation,this.scope);else if(globalState.disableErrorBoundaries===!0)$P=this.derivation.call(this.scope);else try{$P=this.derivation.call(this.scope)}catch(tme){$P=new CaughtException(tme)}return globalState.computationDepth--,this.isComputing=!1,$P},x_.prototype.suspend=function(){this.keepAlive||(clearObserving(this),this.value=void 0)},x_.prototype.observe=function(eme,$P){var tme=this,ame=!0,nme=void 0;return autorun(function(){var rme=tme.get();if(!ame||$P){var ime=untrackedStart();eme({type:"update",object:tme,newValue:rme,oldValue:nme}),untrackedEnd(ime)}ame=!1,nme=rme})},x_.prototype.warnAboutUntrackedRead=function(){},x_.prototype.toJSON=function(){return this.get()},x_.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},x_.prototype.valueOf=function(){return toPrimitive$1(this.get())},x_}();ComputedValue.prototype[primitiveSymbol()]=ComputedValue.prototype.valueOf;var isComputedValue=createInstanceofPredicate("ComputedValue",ComputedValue),MobXGlobals=function(){function x_(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return x_}(),canMergeGlobalState=!0,isolateCalled=!1,globalState=function(){var x_=getGlobal$1();return x_.__mobxInstanceCount>0&&!x_.__mobxGlobals&&(canMergeGlobalState=!1),x_.__mobxGlobals&&x_.__mobxGlobals.version!==new MobXGlobals().version&&(canMergeGlobalState=!1),canMergeGlobalState?x_.__mobxGlobals?(x_.__mobxInstanceCount+=1,x_.__mobxGlobals.UNCHANGED||(x_.__mobxGlobals.UNCHANGED={}),x_.__mobxGlobals):(x_.__mobxInstanceCount=1,x_.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new MobXGlobals)}();function isolateGlobalState(){(globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),isolateCalled=!0,canMergeGlobalState&&(--getGlobal$1().__mobxInstanceCount===0&&(getGlobal$1().__mobxGlobals=void 0),globalState=new MobXGlobals)}function addObserver(x_,eme){var $P=x_.observers.length;$P&&(x_.observersIndexes[eme.__mapid]=$P),x_.observers[$P]=eme,x_.lowestObserverState>eme.dependenciesState&&(x_.lowestObserverState=eme.dependenciesState)}function removeObserver(x_,eme){if(x_.observers.length===1)x_.observers.length=0,queueForUnobservation(x_);else{var $P=x_.observers,tme=x_.observersIndexes,ame=$P.pop();if(ame!==eme){var nme=tme[eme.__mapid]||0;nme?tme[ame.__mapid]=nme:delete tme[ame.__mapid],$P[nme]=ame}delete tme[eme.__mapid]}}function queueForUnobservation(x_){x_.isPendingUnobservation===!1&&(x_.isPendingUnobservation=!0,globalState.pendingUnobservations.push(x_))}function startBatch(){globalState.inBatch++}function endBatch(){if(--globalState.inBatch===0){runReactions();for(var x_=globalState.pendingUnobservations,eme=0;eme<x_.length;eme++){var $P=x_[eme];$P.isPendingUnobservation=!1,$P.observers.length===0&&($P.isBeingObserved&&($P.isBeingObserved=!1,$P.onBecomeUnobserved()),$P instanceof ComputedValue&&$P.suspend())}globalState.pendingUnobservations=[]}}function reportObserved(x_){var eme=globalState.trackingDerivation;return eme!==null?(eme.runId!==x_.lastAccessedBy&&(x_.lastAccessedBy=eme.runId,eme.newObserving[eme.unboundDepsCount++]=x_,x_.isBeingObserved||(x_.isBeingObserved=!0,x_.onBecomeObserved())),!0):(x_.observers.length===0&&globalState.inBatch>0&&queueForUnobservation(x_),!1)}function propagateChanged(x_){if(x_.lowestObserverState!==IDerivationState.STALE){x_.lowestObserverState=IDerivationState.STALE;for(var eme=x_.observers,$P=eme.length;$P--;){var tme=eme[$P];tme.dependenciesState===IDerivationState.UP_TO_DATE&&(tme.isTracing!==TraceMode.NONE&&logTraceInfo(tme,x_),tme.onBecomeStale()),tme.dependenciesState=IDerivationState.STALE}}}function propagateChangeConfirmed(x_){if(x_.lowestObserverState!==IDerivationState.STALE){x_.lowestObserverState=IDerivationState.STALE;for(var eme=x_.observers,$P=eme.length;$P--;){var tme=eme[$P];tme.dependenciesState===IDerivationState.POSSIBLY_STALE?tme.dependenciesState=IDerivationState.STALE:tme.dependenciesState===IDerivationState.UP_TO_DATE&&(x_.lowestObserverState=IDerivationState.UP_TO_DATE)}}}function propagateMaybeChanged(x_){if(x_.lowestObserverState===IDerivationState.UP_TO_DATE){x_.lowestObserverState=IDerivationState.POSSIBLY_STALE;for(var eme=x_.observers,$P=eme.length;$P--;){var tme=eme[$P];tme.dependenciesState===IDerivationState.UP_TO_DATE&&(tme.dependenciesState=IDerivationState.POSSIBLY_STALE,tme.isTracing!==TraceMode.NONE&&logTraceInfo(tme,x_),tme.onBecomeStale())}}}function logTraceInfo(x_,eme){if(console.log("[mobx.trace] '"+x_.name+"' is invalidated due to a change in: '"+eme.name+"'"),x_.isTracing===TraceMode.BREAK){var $P=[];printDepTree(getDependencyTree(x_),$P,1),new Function(`debugger;
/*
Tracing '`+x_.name+`'

You are entering this break point because derivation '`+x_.name+"' is being traced and '"+eme.name+`' is now forcing it to update.
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
The stackframe you are looking for is at least ~6-8 stack-frames up.

`+(x_ instanceof ComputedValue?x_.derivation.toString().replace(/[*]\//g,"/"):"")+`

The dependencies for this derivation are:

`+$P.join(`
`)+`
*/
    `)()}}function printDepTree(x_,eme,$P){if(eme.length>=1e3){eme.push("(and many more)");return}eme.push(""+new Array($P).join("	")+x_.name),x_.dependencies&&x_.dependencies.forEach(function(tme){return printDepTree(tme,eme,$P+1)})}var Reaction=function(){function x_(eme,$P,tme,ame){eme===void 0&&(eme="Reaction@"+getNextId()),ame===void 0&&(ame=!1),this.name=eme,this.onInvalidate=$P,this.errorHandler=tme,this.requiresObservable=ame,this.observing=[],this.newObserving=[],this.dependenciesState=IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=TraceMode.NONE}return x_.prototype.onBecomeStale=function(){this.schedule()},x_.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,globalState.pendingReactions.push(this),runReactions())},x_.prototype.isScheduled=function(){return this._isScheduled},x_.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(eme){this.reportExceptionInDerivation(eme)}}endBatch()}},x_.prototype.track=function(eme){startBatch();var $P=isSpyEnabled(),tme;$P&&(tme=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var ame=trackDerivedFunction(this,eme,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(ame)&&this.reportExceptionInDerivation(ame.cause),$P&&spyReportEnd({time:Date.now()-tme}),endBatch()},x_.prototype.reportExceptionInDerivation=function(eme){var $P=this;if(this.errorHandler){this.errorHandler(eme,this);return}if(globalState.disableErrorBoundaries)throw eme;var tme="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";globalState.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(tme,eme),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:tme,error:""+eme}),globalState.globalReactionErrorHandlers.forEach(function(ame){return ame(eme,$P)})},x_.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},x_.prototype.getDisposer=function(){var eme=this.dispose.bind(this);return eme.$mobx=this,eme},x_.prototype.toString=function(){return"Reaction["+this.name+"]"},x_.prototype.trace=function(eme){eme===void 0&&(eme=!1),trace(this,eme)},x_}(),MAX_REACTION_ITERATIONS=100,reactionScheduler=function(x_){return x_()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var x_=globalState.pendingReactions,eme=0;x_.length>0;){++eme===MAX_REACTION_ITERATIONS&&(console.error("Reaction doesn't converge to a stable state after "+MAX_REACTION_ITERATIONS+" iterations."+(" Probably there is a cycle in the reactive function: "+x_[0])),x_.splice(0));for(var $P=x_.splice(0),tme=0,ame=$P.length;tme<ame;tme++)$P[tme].runReaction()}globalState.isRunningReactions=!1}var isReaction=createInstanceofPredicate("Reaction",Reaction);function setReactionScheduler(x_){var eme=reactionScheduler;reactionScheduler=function($P){return x_(function(){return eme($P)})}}function isSpyEnabled(){return!!globalState.spyListeners.length}function spyReport(x_){if(globalState.spyListeners.length)for(var eme=globalState.spyListeners,$P=0,tme=eme.length;$P<tme;$P++)eme[$P](x_)}function spyReportStart(x_){var eme=__assign$2(__assign$2({},x_),{spyReportStart:!0});spyReport(eme)}var END_EVENT={spyReportEnd:!0};function spyReportEnd(x_){spyReport(x_?__assign$2(__assign$2({},x_),{spyReportEnd:!0}):END_EVENT)}function spy(x_){return globalState.spyListeners.push(x_),once(function(){globalState.spyListeners=globalState.spyListeners.filter(function(eme){return eme!==x_})})}function dontReassignFields(){fail(!1)}function namedActionDecorator(x_){return function(eme,$P,tme){if(tme){if(tme.value)return{value:createAction(x_,tme.value),enumerable:!1,configurable:!0,writable:!0};var ame=tme.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return createAction(x_,ame.call(this))}}}return actionFieldDecorator(x_).apply(this,arguments)}}function actionFieldDecorator(x_){return function(eme,$P,tme){Object.defineProperty(eme,$P,{configurable:!0,enumerable:!1,get:function(){},set:function(ame){addHiddenProp(this,$P,action(x_,ame))}})}}function boundActionDecorator(x_,eme,$P,tme){return tme===!0?(defineBoundAction(x_,eme,$P.value),null):$P?{configurable:!0,enumerable:!1,get:function(){return defineBoundAction(this,eme,$P.value||$P.initializer.call(this)),this[eme]},set:dontReassignFields}:{enumerable:!1,configurable:!0,set:function(ame){defineBoundAction(this,eme,ame)},get:function(){}}}var action=function(eme,$P,tme,ame){if(arguments.length===1&&typeof eme=="function")return createAction(eme.name||"<unnamed action>",eme);if(arguments.length===2&&typeof $P=="function")return createAction(eme,$P);if(arguments.length===1&&typeof eme=="string")return namedActionDecorator(eme);if(ame===!0)eme[$P]=createAction(eme.name||$P,tme.value);else return namedActionDecorator($P).apply(null,arguments)};action.bound=boundActionDecorator;function defineBoundAction(x_,eme,$P){addHiddenProp(x_,eme,createAction(eme,$P.bind(x_)))}function autorun(x_,eme){eme===void 0&&(eme=EMPTY_OBJECT$2);var $P=eme&&eme.name||x_.name||"Autorun@"+getNextId(),tme=!eme.scheduler&&!eme.delay,ame;if(tme)ame=new Reaction($P,function(){this.track(ime)},eme.onError,eme.requiresObservable);else{var nme=createSchedulerFromOptions(eme),rme=!1;ame=new Reaction($P,function(){rme||(rme=!0,nme(function(){rme=!1,ame.isDisposed||ame.track(ime)}))},eme.onError,eme.requiresObservable)}function ime(){x_(ame)}return ame.schedule(),ame.getDisposer()}var run$1=function(x_){return x_()};function createSchedulerFromOptions(x_){return x_.scheduler?x_.scheduler:x_.delay?function(eme){return setTimeout(eme,x_.delay)}:run$1}function reaction(x_,eme,$P){$P===void 0&&($P=EMPTY_OBJECT$2),typeof $P=="boolean"&&($P={fireImmediately:$P});var tme=$P.name||"Reaction@"+getNextId(),ame=action(tme,$P.onError?wrapErrorHandler($P.onError,eme):eme),nme=!$P.scheduler&&!$P.delay,rme=createSchedulerFromOptions($P),ime=!0,ome=!1,lme,sme=$P.compareStructural?comparer.structural:$P.equals||comparer.default,cme=new Reaction(tme,function(){ime||nme?dme():ome||(ome=!0,rme(dme))},$P.onError,$P.requiresObservable);function dme(){if(ome=!1,!cme.isDisposed){var ume=!1;cme.track(function(){var fme=x_(cme);ume=ime||!sme(lme,fme),lme=fme}),ime&&$P.fireImmediately&&ame(lme,cme),!ime&&ume===!0&&ame(lme,cme),ime&&(ime=!1)}}return cme.schedule(),cme.getDisposer()}function wrapErrorHandler(x_,eme){return function(){try{return eme.apply(this,arguments)}catch($P){x_.call(this,$P)}}}function onBecomeObserved(x_,eme,$P){return interceptHook("onBecomeObserved",x_,eme)}function onBecomeUnobserved(x_,eme,$P){return interceptHook("onBecomeUnobserved",x_,eme)}function interceptHook(x_,eme,$P,tme){var ame=getAtom(eme),nme=$P,rme=ame[x_];return typeof rme!="function"?fail(!1):(ame[x_]=function(){rme.call(this),nme.call(this)},function(){ame[x_]=rme})}function configure(x_){var eme=x_.enforceActions,$P=x_.computedRequiresReaction,tme=x_.computedConfigurable,ame=x_.disableErrorBoundaries,nme=x_.arrayBuffer,rme=x_.reactionScheduler,ime=x_.reactionRequiresObservable,ome=x_.observableRequiresReaction;if(x_.isolateGlobalState===!0&&isolateGlobalState(),eme!==void 0){var lme=void 0;switch(eme){case!0:case"observed":lme=!0;break;case!1:case"never":lme=!1;break;case"strict":case"always":lme="strict";break;default:fail("Invalid value for 'enforceActions': '"+eme+"', expected 'never', 'always' or 'observed'")}globalState.enforceActions=lme,globalState.allowStateChanges=!(lme===!0||lme==="strict")}$P!==void 0&&(globalState.computedRequiresReaction=!!$P),ime!==void 0&&(globalState.reactionRequiresObservable=!!ime),ome!==void 0&&(globalState.observableRequiresReaction=!!ome,globalState.allowStateReads=!globalState.observableRequiresReaction),tme!==void 0&&(globalState.computedConfigurable=!!tme),ame!==void 0&&(ame===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),globalState.disableErrorBoundaries=!!ame),typeof nme=="number"&&reserveArrayBuffer(nme),rme&&setReactionScheduler(rme)}function extendObservable(x_,eme,$P,tme){var ame;tme=asCreateObservableOptions(tme);var nme=tme.defaultDecorator||(tme.deep===!1?refDecorator:deepDecorator);initializeInstance(x_),asObservableObject(x_,tme.name,nme.enhancer),startBatch();try{for(var rme=Object.getOwnPropertyNames(eme),ime=0,ome=rme.length;ime<ome;ime++){var ame=rme[ime],lme=Object.getOwnPropertyDescriptor(eme,ame),sme=$P&&ame in $P?$P[ame]:lme.get?computedDecorator:nme,cme=sme(x_,ame,lme,!0);cme&&Object.defineProperty(x_,ame,cme)}}finally{endBatch()}return x_}function getDependencyTree(x_,eme){return nodeToDependencyTree(getAtom(x_,eme))}function nodeToDependencyTree(x_){var eme={name:x_.name};return x_.observing&&x_.observing.length>0&&(eme.dependencies=unique(x_.observing).map(nodeToDependencyTree)),eme}function interceptReads(x_,eme,$P){var tme;if(isObservableMap(x_)||isObservableArray(x_)||isObservableValue(x_))tme=getAdministration(x_);else if(isObservableObject(x_)){if(typeof eme!="string")return fail(!1);tme=getAdministration(x_,eme)}else return fail(!1);return tme.dehancer!==void 0?fail(!1):(tme.dehancer=typeof eme=="function"?eme:$P,function(){tme.dehancer=void 0})}function intercept(x_,eme,$P){return interceptInterceptable(x_,eme)}function interceptInterceptable(x_,eme){return getAdministration(x_).intercept(eme)}function _isComputed(x_,eme){if(x_==null)return!1;if(eme!==void 0){if(isObservableObject(x_)===!1||!x_.$mobx.values[eme])return!1;var $P=getAtom(x_,eme);return isComputedValue($P)}return isComputedValue(x_)}function isComputed(x_){return arguments.length>1?fail(!1):_isComputed(x_)}function isComputedProp(x_,eme){return typeof eme!="string"?fail(!1):_isComputed(x_,eme)}function _isObservable(x_,eme){return x_==null?!1:isObservableObject(x_)||!!x_.$mobx||isAtom(x_)||isReaction(x_)||isComputedValue(x_)}function isObservable(x_){return arguments.length!==1&&fail(!1),_isObservable(x_)}function keys$e(x_){return isObservableObject(x_)?x_.$mobx.getKeys():isObservableMap(x_)||isObservableSet(x_)?iteratorToArray(x_.keys()):isObservableArray(x_)?x_.map(function(eme,$P){return $P}):fail(!1)}function values$3(x_){return isObservableObject(x_)?keys$e(x_).map(function(eme){return x_[eme]}):isObservableMap(x_)?keys$e(x_).map(function(eme){return x_.get(eme)}):isObservableSet(x_)?iteratorToArray(x_.values()):isObservableArray(x_)?x_.slice():fail(!1)}function entries(x_){return isObservableObject(x_)?keys$e(x_).map(function(eme){return[eme,x_[eme]]}):isObservableMap(x_)?keys$e(x_).map(function(eme){return[eme,x_.get(eme)]}):isObservableSet(x_)?iteratorToArray(x_.entries()):isObservableArray(x_)?x_.map(function(eme,$P){return[$P,eme]}):fail(!1)}function set$5(x_,eme,$P){if(arguments.length===2&&!isObservableSet(x_)){startBatch();var tme=eme;try{for(var ame in tme)set$5(x_,ame,tme[ame])}finally{endBatch()}return}if(isObservableObject(x_)){var nme=x_.$mobx,rme=nme.values[eme];rme?nme.write(x_,eme,$P):defineObservableProperty(x_,eme,$P,nme.defaultEnhancer)}else if(isObservableMap(x_))x_.set(eme,$P);else if(isObservableSet(x_))x_.add(eme);else if(isObservableArray(x_))typeof eme!="number"&&(eme=parseInt(eme,10)),invariant$3(eme>=0,"Not a valid index: '"+eme+"'"),startBatch(),eme>=x_.length&&(x_.length=eme+1),x_[eme]=$P,endBatch();else return fail(!1)}function observe$1(x_,eme,$P,tme){return observeObservable(x_,eme,$P)}function observeObservable(x_,eme,$P){return getAdministration(x_).observe(eme,$P)}var defaultOptions$2={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function cache$4(x_,eme,$P,tme){return tme.detectCycles&&x_.set(eme,$P),$P}function toJSHelper(x_,eme,$P){if(!eme.recurseEverything&&!isObservable(x_)||typeof x_!="object")return x_;if(x_===null)return null;if(x_ instanceof Date)return x_;if(isObservableValue(x_))return toJSHelper(x_.get(),eme,$P);isObservable(x_)&&keys$e(x_);var tme=eme.detectCycles===!0;if(tme&&x_!==null&&$P.has(x_))return $P.get(x_);if(isObservableArray(x_)||Array.isArray(x_)){var ame=cache$4($P,x_,[],eme),nme=x_.map(function(fme){return toJSHelper(fme,eme,$P)});ame.length=nme.length;for(var rme=0,ime=nme.length;rme<ime;rme++)ame[rme]=nme[rme];return ame}if(isObservableSet(x_)||Object.getPrototypeOf(x_)===Set.prototype)if(eme.exportMapsAsObjects===!1){var ome=cache$4($P,x_,new Set,eme);return x_.forEach(function(fme){ome.add(toJSHelper(fme,eme,$P))}),ome}else{var lme=cache$4($P,x_,[],eme);return x_.forEach(function(fme){lme.push(toJSHelper(fme,eme,$P))}),lme}if(isObservableMap(x_)||Object.getPrototypeOf(x_)===Map.prototype)if(eme.exportMapsAsObjects===!1){var sme=cache$4($P,x_,new Map,eme);return x_.forEach(function(fme,pme){sme.set(pme,toJSHelper(fme,eme,$P))}),sme}else{var cme=cache$4($P,x_,{},eme);return x_.forEach(function(fme,pme){cme[pme]=toJSHelper(fme,eme,$P)}),cme}var dme=cache$4($P,x_,{},eme);for(var ume in x_)dme[ume]=toJSHelper(x_[ume],eme,$P);return dme}function toJS(x_,eme){typeof eme=="boolean"&&(eme={detectCycles:eme}),eme||(eme=defaultOptions$2),eme.detectCycles=eme.detectCycles===void 0?eme.recurseEverything===!0:eme.detectCycles===!0;var $P;return eme.detectCycles&&($P=new Map),toJSHelper(x_,eme,$P)}function trace(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];var $P=!1;typeof x_[x_.length-1]=="boolean"&&($P=x_.pop());var tme=getAtomFromArgs(x_);if(!tme)return fail(!1);tme.isTracing===TraceMode.NONE&&console.log("[mobx.trace] '"+tme.name+"' tracing enabled"),tme.isTracing=$P?TraceMode.BREAK:TraceMode.LOG}function getAtomFromArgs(x_){switch(x_.length){case 0:return globalState.trackingDerivation;case 1:return getAtom(x_[0]);case 2:return getAtom(x_[0],x_[1])}}function transaction(x_,eme){eme===void 0&&(eme=void 0),startBatch();try{return x_.apply(eme)}finally{endBatch()}}function hasInterceptors(x_){return x_.interceptors!==void 0&&x_.interceptors.length>0}function registerInterceptor(x_,eme){var $P=x_.interceptors||(x_.interceptors=[]);return $P.push(eme),once(function(){var tme=$P.indexOf(eme);tme!==-1&&$P.splice(tme,1)})}function interceptChange(x_,eme){var $P=untrackedStart();try{var tme=x_.interceptors;if(tme)for(var ame=0,nme=tme.length;ame<nme&&(eme=tme[ame](eme),invariant$3(!eme||eme.type,"Intercept handlers should return nothing or a change object"),!!eme);ame++);return eme}finally{untrackedEnd($P)}}function hasListeners(x_){return x_.changeListeners!==void 0&&x_.changeListeners.length>0}function registerListener(x_,eme){var $P=x_.changeListeners||(x_.changeListeners=[]);return $P.push(eme),once(function(){var tme=$P.indexOf(eme);tme!==-1&&$P.splice(tme,1)})}function notifyListeners(x_,eme){var $P=untrackedStart(),tme=x_.changeListeners;if(tme){tme=tme.slice();for(var ame=0,nme=tme.length;ame<nme;ame++)tme[ame](eme);untrackedEnd($P)}}var MAX_SPLICE_SIZE=1e4,safariPrototypeSetterInheritanceBug=function(){var x_=!1,eme={};return Object.defineProperty(eme,"0",{set:function(){x_=!0}}),Object.create(eme)[0]=1,x_===!1}(),OBSERVABLE_ARRAY_BUFFER_SIZE=0,StubArray=function(){function x_(){}return x_}();function inherit(x_,eme){typeof Object.setPrototypeOf<"u"?Object.setPrototypeOf(x_.prototype,eme):typeof x_.prototype.__proto__<"u"?x_.prototype.__proto__=eme:x_.prototype=eme}inherit(StubArray,Array.prototype);Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(x_){Object.defineProperty(StubArray.prototype,x_,{configurable:!0,writable:!0,value:Array.prototype[x_]})});var ObservableArrayAdministration=function(){function x_(eme,$P,tme,ame){this.array=tme,this.owned=ame,this.values=[],this.lastKnownLength=0,this.atom=new Atom(eme||"ObservableArray@"+getNextId()),this.enhancer=function(nme,rme){return $P(nme,rme,eme+"[..]")}}return x_.prototype.dehanceValue=function(eme){return this.dehancer!==void 0?this.dehancer(eme):eme},x_.prototype.dehanceValues=function(eme){return this.dehancer!==void 0&&eme.length>0?eme.map(this.dehancer):eme},x_.prototype.intercept=function(eme){return registerInterceptor(this,eme)},x_.prototype.observe=function(eme,$P){return $P===void 0&&($P=!1),$P&&eme({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,eme)},x_.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},x_.prototype.setArrayLength=function(eme){if(typeof eme!="number"||eme<0)throw new Error("[mobx.array] Out of range: "+eme);var $P=this.values.length;if(eme!==$P)if(eme>$P){for(var tme=new Array(eme-$P),ame=0;ame<eme-$P;ame++)tme[ame]=void 0;this.spliceWithArray($P,0,tme)}else this.spliceWithArray(eme,$P-eme)},x_.prototype.updateArrayLength=function(eme,$P){if(eme!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=$P,$P>0&&eme+$P+1>OBSERVABLE_ARRAY_BUFFER_SIZE&&reserveArrayBuffer(eme+$P+1)},x_.prototype.spliceWithArray=function(eme,$P,tme){var ame=this;checkIfStateModificationsAreAllowed(this.atom);var nme=this.values.length;if(eme===void 0?eme=0:eme>nme?eme=nme:eme<0&&(eme=Math.max(0,nme+eme)),arguments.length===1?$P=nme-eme:$P==null?$P=0:$P=Math.max(0,Math.min($P,nme-eme)),tme===void 0&&(tme=EMPTY_ARRAY$1),hasInterceptors(this)){var rme=interceptChange(this,{object:this.array,type:"splice",index:eme,removedCount:$P,added:tme});if(!rme)return EMPTY_ARRAY$1;$P=rme.removedCount,tme=rme.added}tme=tme.length===0?tme:tme.map(function(lme){return ame.enhancer(lme,void 0)});var ime=tme.length-$P;this.updateArrayLength(nme,ime);var ome=this.spliceItemsIntoValues(eme,$P,tme);return($P!==0||tme.length!==0)&&this.notifyArraySplice(eme,tme,ome),this.dehanceValues(ome)},x_.prototype.spliceItemsIntoValues=function(eme,$P,tme){var ame;if(tme.length<MAX_SPLICE_SIZE)return(ame=this.values).splice.apply(ame,__spread$1([eme,$P],tme));var nme=this.values.slice(eme,eme+$P);return this.values=this.values.slice(0,eme).concat(tme,this.values.slice(eme+$P)),nme},x_.prototype.notifyArrayChildUpdate=function(eme,$P,tme){var ame=!this.owned&&isSpyEnabled(),nme=hasListeners(this),rme=nme||ame?{object:this.array,type:"update",index:eme,newValue:$P,oldValue:tme}:null;ame&&spyReportStart(__assign$2(__assign$2({},rme),{name:this.atom.name})),this.atom.reportChanged(),nme&&notifyListeners(this,rme),ame&&spyReportEnd()},x_.prototype.notifyArraySplice=function(eme,$P,tme){var ame=!this.owned&&isSpyEnabled(),nme=hasListeners(this),rme=nme||ame?{object:this.array,type:"splice",index:eme,removed:tme,added:$P,removedCount:tme.length,addedCount:$P.length}:null;ame&&spyReportStart(__assign$2(__assign$2({},rme),{name:this.atom.name})),this.atom.reportChanged(),nme&&notifyListeners(this,rme),ame&&spyReportEnd()},x_}(),ObservableArray=function(x_){__extends$1(eme,x_);function eme($P,tme,ame,nme){ame===void 0&&(ame="ObservableArray@"+getNextId()),nme===void 0&&(nme=!1);var rme=x_.call(this)||this,ime=new ObservableArrayAdministration(ame,tme,rme,nme);if(addHiddenFinalProp$1(rme,"$mobx",ime),$P&&$P.length){var ome=allowStateChangesStart(!0);rme.spliceWithArray(0,0,$P),allowStateChangesEnd(ome)}return safariPrototypeSetterInheritanceBug&&Object.defineProperty(ime.array,"0",ENTRY_0),rme}return eme.prototype.intercept=function($P){return this.$mobx.intercept($P)},eme.prototype.observe=function($P,tme){return tme===void 0&&(tme=!1),this.$mobx.observe($P,tme)},eme.prototype.clear=function(){return this.splice(0)},eme.prototype.concat=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),$P.map(function(ame){return isObservableArray(ame)?ame.peek():ame}))},eme.prototype.replace=function($P){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,$P)},eme.prototype.toJS=function(){return this.slice()},eme.prototype.toJSON=function(){return this.toJS()},eme.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},eme.prototype.find=function($P,tme,ame){ame===void 0&&(ame=0);var nme=this.findIndex.apply(this,arguments);return nme===-1?void 0:this.get(nme)},eme.prototype.findIndex=function($P,tme,ame){ame===void 0&&(ame=0);for(var nme=this.peek(),rme=nme.length,ime=ame;ime<rme;ime++)if($P.call(tme,nme[ime],ime,this))return ime;return-1},eme.prototype.splice=function($P,tme){for(var ame=[],nme=2;nme<arguments.length;nme++)ame[nme-2]=arguments[nme];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray($P);case 2:return this.$mobx.spliceWithArray($P,tme)}return this.$mobx.spliceWithArray($P,tme,ame)},eme.prototype.spliceWithArray=function($P,tme,ame){return this.$mobx.spliceWithArray($P,tme,ame)},eme.prototype.push=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=this.$mobx;return ame.spliceWithArray(ame.values.length,0,$P),ame.values.length},eme.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},eme.prototype.shift=function(){return this.splice(0,1)[0]},eme.prototype.unshift=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=this.$mobx;return ame.spliceWithArray(0,0,$P),ame.values.length},eme.prototype.reverse=function(){var $P=this.slice();return $P.reverse.apply($P,arguments)},eme.prototype.sort=function($P){var tme=this.slice();return tme.sort.apply(tme,arguments)},eme.prototype.remove=function($P){var tme=this.$mobx.dehanceValues(this.$mobx.values).indexOf($P);return tme>-1?(this.splice(tme,1),!0):!1},eme.prototype.move=function($P,tme){function ame(ime){if(ime<0)throw new Error("[mobx.array] Index out of bounds: "+ime+" is negative");var ome=this.$mobx.values.length;if(ime>=ome)throw new Error("[mobx.array] Index out of bounds: "+ime+" is not smaller than "+ome)}if(ame.call(this,$P),ame.call(this,tme),$P!==tme){var nme=this.$mobx.values,rme;$P<tme?rme=__spread$1(nme.slice(0,$P),nme.slice($P+1,tme+1),[nme[$P]],nme.slice(tme+1)):rme=__spread$1(nme.slice(0,tme),[nme[$P]],nme.slice(tme,$P),nme.slice($P+1)),this.replace(rme)}},eme.prototype.get=function($P){var tme=this.$mobx;if(tme){if($P<tme.values.length)return tme.atom.reportObserved(),tme.dehanceValue(tme.values[$P]);console.warn("[mobx.array] Attempt to read an array index ("+$P+") that is out of bounds ("+tme.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},eme.prototype.set=function($P,tme){var ame=this.$mobx,nme=ame.values;if($P<nme.length){checkIfStateModificationsAreAllowed(ame.atom);var rme=nme[$P];if(hasInterceptors(ame)){var ime=interceptChange(ame,{type:"update",object:this,index:$P,newValue:tme});if(!ime)return;tme=ime.newValue}tme=ame.enhancer(tme,rme);var ome=tme!==rme;ome&&(nme[$P]=tme,ame.notifyArrayChildUpdate($P,tme,rme))}else if($P===nme.length)ame.spliceWithArray($P,0,[tme]);else throw new Error("[mobx.array] Index out of bounds, "+$P+" is larger than "+nme.length)},eme}(StubArray);declareIterator(ObservableArray.prototype,function(){this.$mobx.atom.reportObserved();var x_=this,eme=0;return makeIterable({next:function(){return eme<x_.length?{value:x_[eme++],done:!1}:{done:!0,value:void 0}}})});Object.defineProperty(ObservableArray.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(x_){this.$mobx.setArrayLength(x_)}});addHiddenProp(ObservableArray.prototype,toStringTagSymbol(),"Array");["indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(x_){var eme=Array.prototype[x_];invariant$3(typeof eme=="function","Base function not defined on Array prototype: '"+x_+"'"),addHiddenProp(ObservableArray.prototype,x_,function(){return eme.apply(this.peek(),arguments)})});["every","filter","forEach","map","some"].forEach(function(x_){var eme=Array.prototype[x_];invariant$3(typeof eme=="function","Base function not defined on Array prototype: '"+x_+"'"),addHiddenProp(ObservableArray.prototype,x_,function($P,tme){var ame=this,nme=this.$mobx;nme.atom.reportObserved();var rme=nme.dehanceValues(nme.values);return rme[x_](function(ime,ome){return $P.call(tme,ime,ome,ame)},tme)})});["reduce","reduceRight"].forEach(function(x_){addHiddenProp(ObservableArray.prototype,x_,function(){var eme=this,$P=this.$mobx;$P.atom.reportObserved();var tme=arguments[0];return arguments[0]=function(ame,nme,rme){return nme=$P.dehanceValue(nme),tme(ame,nme,rme,eme)},$P.values[x_].apply($P.values,arguments)})});makeNonEnumerable(ObservableArray.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var ENTRY_0=createArrayEntryDescriptor(0);function createArrayEntryDescriptor(x_){return{enumerable:!1,configurable:!1,get:function(){return this.get(x_)},set:function(eme){this.set(x_,eme)}}}function createArrayBufferItem(x_){Object.defineProperty(ObservableArray.prototype,""+x_,createArrayEntryDescriptor(x_))}function reserveArrayBuffer(x_){for(var eme=OBSERVABLE_ARRAY_BUFFER_SIZE;eme<x_;eme++)createArrayBufferItem(eme);OBSERVABLE_ARRAY_BUFFER_SIZE=x_}reserveArrayBuffer(1e3);var isObservableArrayAdministration=createInstanceofPredicate("ObservableArrayAdministration",ObservableArrayAdministration);function isObservableArray(x_){return isObject$k(x_)&&isObservableArrayAdministration(x_.$mobx)}var ObservableMapMarker={},ObservableMap=function(){function x_(eme,$P,tme){if($P===void 0&&($P=deepEnhancer),tme===void 0&&(tme="ObservableMap@"+getNextId()),this.enhancer=$P,this.name=tme,this.$mobx=ObservableMapMarker,this._keysAtom=createAtom(this.name+".keys()"),typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(eme)}return x_.prototype._has=function(eme){return this._data.has(eme)},x_.prototype.has=function(eme){var $P=this;if(!globalState.trackingDerivation)return this._has(eme);var tme=this._hasMap.get(eme);if(!tme){var ame=tme=new ObservableValue(this._has(eme),referenceEnhancer,this.name+"."+stringifyKey(eme)+"?",!1);this._hasMap.set(eme,ame),onBecomeUnobserved(ame,function(){return $P._hasMap.delete(eme)})}return tme.get()},x_.prototype.set=function(eme,$P){var tme=this._has(eme);if(hasInterceptors(this)){var ame=interceptChange(this,{type:tme?"update":"add",object:this,newValue:$P,name:eme});if(!ame)return this;$P=ame.newValue}return tme?this._updateValue(eme,$P):this._addValue(eme,$P),this},x_.prototype.delete=function(eme){var $P=this;if(checkIfStateModificationsAreAllowed(this._keysAtom),hasInterceptors(this)){var tme=interceptChange(this,{type:"delete",object:this,name:eme});if(!tme)return!1}if(this._has(eme)){var ame=isSpyEnabled(),nme=hasListeners(this),tme=nme||ame?{type:"delete",object:this,oldValue:this._data.get(eme).value,name:eme}:null;return ame&&spyReportStart(__assign$2(__assign$2({},tme),{name:this.name,key:eme})),transaction(function(){$P._keysAtom.reportChanged(),$P._updateHasMapEntry(eme,!1);var ime=$P._data.get(eme);ime.setNewValue(void 0),$P._data.delete(eme)}),nme&&notifyListeners(this,tme),ame&&spyReportEnd(),!0}return!1},x_.prototype._updateHasMapEntry=function(eme,$P){var tme=this._hasMap.get(eme);tme&&tme.setNewValue($P)},x_.prototype._updateValue=function(eme,$P){var tme=this._data.get(eme);if($P=tme.prepareNewValue($P),$P!==globalState.UNCHANGED){var ame=isSpyEnabled(),nme=hasListeners(this),rme=nme||ame?{type:"update",object:this,oldValue:tme.value,name:eme,newValue:$P}:null;ame&&spyReportStart(__assign$2(__assign$2({},rme),{name:this.name,key:eme})),tme.setNewValue($P),nme&&notifyListeners(this,rme),ame&&spyReportEnd()}},x_.prototype._addValue=function(eme,$P){var tme=this;checkIfStateModificationsAreAllowed(this._keysAtom),transaction(function(){var ime=new ObservableValue($P,tme.enhancer,tme.name+"."+stringifyKey(eme),!1);tme._data.set(eme,ime),$P=ime.value,tme._updateHasMapEntry(eme,!0),tme._keysAtom.reportChanged()});var ame=isSpyEnabled(),nme=hasListeners(this),rme=nme||ame?{type:"add",object:this,name:eme,newValue:$P}:null;ame&&spyReportStart(__assign$2(__assign$2({},rme),{name:this.name,key:eme})),nme&&notifyListeners(this,rme),ame&&spyReportEnd()},x_.prototype.get=function(eme){return this.has(eme)?this.dehanceValue(this._data.get(eme).get()):this.dehanceValue(void 0)},x_.prototype.dehanceValue=function(eme){return this.dehancer!==void 0?this.dehancer(eme):eme},x_.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},x_.prototype.values=function(){var eme=this,$P=this.keys();return makeIterable({next:function(){var tme=$P.next(),ame=tme.done,nme=tme.value;return{done:ame,value:ame?void 0:eme.get(nme)}}})},x_.prototype.entries=function(){var eme=this,$P=this.keys();return makeIterable({next:function(){var tme=$P.next(),ame=tme.done,nme=tme.value;return{done:ame,value:ame?void 0:[nme,eme.get(nme)]}}})},x_.prototype.forEach=function(eme,$P){var tme=this;this._keysAtom.reportObserved(),this._data.forEach(function(ame,nme){return eme.call($P,tme.get(nme),nme,tme)})},x_.prototype.merge=function(eme){var $P=this;return isObservableMap(eme)&&(eme=eme.toJS()),transaction(function(){var tme=allowStateChangesStart(!0);try{isPlainObject$8(eme)?Object.keys(eme).forEach(function(ame){return $P.set(ame,eme[ame])}):Array.isArray(eme)?eme.forEach(function(ame){var nme=__read$2(ame,2),rme=nme[0],ime=nme[1];return $P.set(rme,ime)}):isES6Map(eme)?eme.constructor!==Map?fail("Cannot initialize from classes that inherit from Map: "+eme.constructor.name):eme.forEach(function(ame,nme){return $P.set(nme,ame)}):eme!=null&&fail("Cannot initialize map from "+eme)}finally{allowStateChangesEnd(tme)}}),this},x_.prototype.clear=function(){var eme=this;transaction(function(){untracked(function(){eme._data.forEach(function($P,tme){return eme.delete(tme)})})})},x_.prototype.replace=function(eme){var $P=this;return transaction(function(){var tme=convertToMap(eme),ame=new Map,nme=!1;if(forOf($P._data.keys(),function(sme){if(!tme.has(sme)){var cme=$P.delete(sme);if(cme)nme=!0;else{var dme=$P._data.get(sme);ame.set(sme,dme)}}}),forOf(tme.entries(),function(sme){var cme=__read$2(sme,2),dme=cme[0],ume=cme[1],fme=$P._data.has(dme);if($P.set(dme,ume),$P._data.has(dme)){var pme=$P._data.get(dme);ame.set(dme,pme),fme||(nme=!0)}}),!nme)if($P._data.size!==ame.size)$P._keysAtom.reportChanged();else for(var rme=$P._data.keys(),ime=ame.keys(),ome=rme.next(),lme=ime.next();!ome.done;){if(ome.value!==lme.value){$P._keysAtom.reportChanged();break}ome=rme.next(),lme=ime.next()}$P._data=ame}),this},Object.defineProperty(x_.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),x_.prototype.toPOJO=function(){var eme=this,$P={};return this.forEach(function(tme,ame){return $P[typeof ame=="symbol"?ame:stringifyKey(ame)]=eme.get(ame)}),$P},x_.prototype.toJS=function(){return new Map(this)},x_.prototype.toJSON=function(){return this.toPOJO()},x_.prototype.toString=function(){var eme=this;return this.name+"[{ "+iteratorToArray(this.keys()).map(function($P){return stringifyKey($P)+": "+(""+eme.get($P))}).join(", ")+" }]"},x_.prototype.observe=function(eme,$P){return registerListener(this,eme)},x_.prototype.intercept=function(eme){return registerInterceptor(this,eme)},x_}();function stringifyKey(x_){return x_&&x_.toString?x_.toString():new String(x_).toString()}declareIterator(ObservableMap.prototype,function(){return this.entries()});addHiddenFinalProp$1(ObservableMap.prototype,toStringTagSymbol(),"Map");var isObservableMap=createInstanceofPredicate("ObservableMap",ObservableMap),ObservableSetMarker={},ObservableSet=function(){function x_(eme,$P,tme){if($P===void 0&&($P=deepEnhancer),tme===void 0&&(tme="ObservableSet@"+getNextId()),this.name=tme,this.$mobx=ObservableSetMarker,this._data=new Set,this._atom=createAtom(this.name),typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(ame,nme){return $P(ame,nme,tme)},eme&&this.replace(eme)}return x_.prototype.dehanceValue=function(eme){return this.dehancer!==void 0?this.dehancer(eme):eme},x_.prototype.clear=function(){var eme=this;transaction(function(){untracked(function(){eme._data.forEach(function($P){eme.delete($P)})})})},x_.prototype.forEach=function(eme,$P){var tme=this;this._atom.reportObserved(),this._data.forEach(function(ame){eme.call($P,ame,ame,tme)})},Object.defineProperty(x_.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),x_.prototype.add=function(eme){var $P=this;if(checkIfStateModificationsAreAllowed(this._atom),hasInterceptors(this)){var tme=interceptChange(this,{type:"add",object:this,newValue:eme});if(!tme)return this}if(!this.has(eme)){transaction(function(){$P._data.add($P.enhancer(eme,void 0)),$P._atom.reportChanged()});var ame=isSpyEnabled(),nme=hasListeners(this),tme=nme||ame?{type:"add",object:this,newValue:eme}:null;nme&&notifyListeners(this,tme)}return this},x_.prototype.delete=function(eme){var $P=this;if(hasInterceptors(this)){var tme=interceptChange(this,{type:"delete",object:this,oldValue:eme});if(!tme)return!1}if(this.has(eme)){var ame=isSpyEnabled(),nme=hasListeners(this),tme=nme||ame?{type:"delete",object:this,oldValue:eme}:null;return transaction(function(){$P._atom.reportChanged(),$P._data.delete(eme)}),nme&&notifyListeners(this,tme),!0}return!1},x_.prototype.has=function(eme){return this._atom.reportObserved(),this._data.has(this.dehanceValue(eme))},x_.prototype.entries=function(){var eme=0,$P=iteratorToArray(this.keys()),tme=iteratorToArray(this.values());return makeIterable({next:function(){var ame=eme;return eme+=1,ame<tme.length?{value:[$P[ame],tme[ame]],done:!1}:{done:!0}}})},x_.prototype.keys=function(){return this.values()},x_.prototype.values=function(){this._atom.reportObserved();var eme=this,$P=0,tme;return this._data.values!==void 0?tme=iteratorToArray(this._data.values()):(tme=[],this._data.forEach(function(ame){return tme.push(ame)})),makeIterable({next:function(){return $P<tme.length?{value:eme.dehanceValue(tme[$P++]),done:!1}:{done:!0}}})},x_.prototype.replace=function(eme){var $P=this;return isObservableSet(eme)&&(eme=eme.toJS()),transaction(function(){var tme=allowStateChangesStart(!0);try{Array.isArray(eme)?($P.clear(),eme.forEach(function(ame){return $P.add(ame)})):isES6Set(eme)?($P.clear(),eme.forEach(function(ame){return $P.add(ame)})):eme!=null&&fail("Cannot initialize set from "+eme)}finally{allowStateChangesEnd(tme)}}),this},x_.prototype.observe=function(eme,$P){return registerListener(this,eme)},x_.prototype.intercept=function(eme){return registerInterceptor(this,eme)},x_.prototype.toJS=function(){return new Set(this)},x_.prototype.toString=function(){return this.name+"[ "+iteratorToArray(this.keys()).join(", ")+" ]"},x_}();declareIterator(ObservableSet.prototype,function(){return this.values()});addHiddenFinalProp$1(ObservableSet.prototype,toStringTagSymbol(),"Set");var isObservableSet=createInstanceofPredicate("ObservableSet",ObservableSet),ObservableObjectAdministration=function(){function x_(eme,$P,tme){this.target=eme,this.name=$P,this.defaultEnhancer=tme,this.values={}}return x_.prototype.read=function(eme,$P){if(!(this.target!==eme&&(this.illegalAccess(eme,$P),!this.values[$P])))return this.values[$P].get()},x_.prototype.write=function(eme,$P,tme){var ame=this.target;ame!==eme&&this.illegalAccess(eme,$P);var nme=this.values[$P];if(nme instanceof ComputedValue){nme.set(tme);return}if(hasInterceptors(this)){var rme=interceptChange(this,{type:"update",object:ame,name:$P,newValue:tme});if(!rme)return;tme=rme.newValue}if(tme=nme.prepareNewValue(tme),tme!==globalState.UNCHANGED){var ime=hasListeners(this),ome=isSpyEnabled(),rme=ime||ome?{type:"update",object:ame,oldValue:nme.value,name:$P,newValue:tme}:null;ome&&spyReportStart(__assign$2(__assign$2({},rme),{name:this.name,key:$P})),nme.setNewValue(tme),ime&&notifyListeners(this,rme),ome&&spyReportEnd()}},x_.prototype.remove=function(eme){if(this.values[eme]){var $P=this.target;if(hasInterceptors(this)){var tme=interceptChange(this,{object:$P,name:eme,type:"remove"});if(!tme)return}try{startBatch();var ame=hasListeners(this),nme=isSpyEnabled(),rme=this.values[eme].get();this.keys&&this.keys.remove(eme),delete this.values[eme],delete this.target[eme];var tme=ame||nme?{type:"remove",object:$P,oldValue:rme,name:eme}:null;nme&&spyReportStart(__assign$2(__assign$2({},tme),{name:this.name,key:eme})),ame&&notifyListeners(this,tme),nme&&spyReportEnd()}finally{endBatch()}}},x_.prototype.illegalAccess=function(eme,$P){console.warn("Property '"+$P+"' of '"+eme+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},x_.prototype.observe=function(eme,$P){return registerListener(this,eme)},x_.prototype.intercept=function(eme){return registerInterceptor(this,eme)},x_.prototype.getKeys=function(){var eme=this;return this.keys===void 0&&(this.keys=new ObservableArray(Object.keys(this.values).filter(function($P){return eme.values[$P]instanceof ObservableValue}),referenceEnhancer,"keys("+this.name+")",!0)),this.keys.slice()},x_}();function asObservableObject(x_,eme,$P){eme===void 0&&(eme=""),$P===void 0&&($P=deepEnhancer);var tme=x_.$mobx;return tme||(isPlainObject$8(x_)||(eme=(x_.constructor.name||"ObservableObject")+"@"+getNextId()),eme||(eme="ObservableObject@"+getNextId()),tme=new ObservableObjectAdministration(x_,eme,$P),addHiddenFinalProp$1(x_,"$mobx",tme),tme)}function defineObservableProperty(x_,eme,$P,tme){var ame=asObservableObject(x_);if(hasInterceptors(ame)){var nme=interceptChange(ame,{object:x_,name:eme,type:"add",newValue:$P});if(!nme)return;$P=nme.newValue}var rme=ame.values[eme]=new ObservableValue($P,tme,ame.name+"."+eme,!1);$P=rme.value,Object.defineProperty(x_,eme,generateObservablePropConfig(eme)),ame.keys&&ame.keys.push(eme),notifyPropertyAddition(ame,x_,eme,$P)}function defineComputedProperty(x_,eme,$P){var tme=asObservableObject(x_);$P.name=tme.name+"."+eme,$P.context=x_,tme.values[eme]=new ComputedValue($P),Object.defineProperty(x_,eme,generateComputedPropConfig(eme))}var observablePropertyConfigs=Object.create(null),computedPropertyConfigs=Object.create(null);function generateObservablePropConfig(x_){return observablePropertyConfigs[x_]||(observablePropertyConfigs[x_]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,x_)},set:function(eme){this.$mobx.write(this,x_,eme)}})}function getAdministrationForComputedPropOwner(x_){var eme=x_.$mobx;return eme||(initializeInstance(x_),x_.$mobx)}function generateComputedPropConfig(x_){return computedPropertyConfigs[x_]||(computedPropertyConfigs[x_]={configurable:globalState.computedConfigurable,enumerable:!1,get:function(){return getAdministrationForComputedPropOwner(this).read(this,x_)},set:function(eme){getAdministrationForComputedPropOwner(this).write(this,x_,eme)}})}function notifyPropertyAddition(x_,eme,$P,tme){var ame=hasListeners(x_),nme=isSpyEnabled(),rme=ame||nme?{type:"add",object:eme,name:$P,newValue:tme}:null;nme&&spyReportStart(__assign$2(__assign$2({},rme),{name:x_.name,key:$P})),ame&&notifyListeners(x_,rme),nme&&spyReportEnd()}var isObservableObjectAdministration=createInstanceofPredicate("ObservableObjectAdministration",ObservableObjectAdministration);function isObservableObject(x_){return isObject$k(x_)?(initializeInstance(x_),isObservableObjectAdministration(x_.$mobx)):!1}function getAtom(x_,eme){if(typeof x_=="object"&&x_!==null){if(isObservableArray(x_))return eme!==void 0&&fail(!1),x_.$mobx.atom;if(isObservableSet(x_))return x_.$mobx;if(isObservableMap(x_)){var $P=x_;if(eme===void 0)return $P._keysAtom;var tme=$P._data.get(eme)||$P._hasMap.get(eme);return tme||fail(!1),tme}if(initializeInstance(x_),eme&&!x_.$mobx&&x_[eme],isObservableObject(x_)){if(!eme)return fail(!1);var tme=x_.$mobx.values[eme];return tme||fail(!1),tme}if(isAtom(x_)||isComputedValue(x_)||isReaction(x_))return x_}else if(typeof x_=="function"&&isReaction(x_.$mobx))return x_.$mobx;return fail(!1)}function getAdministration(x_,eme){if(x_||fail("Expecting some object"),eme!==void 0)return getAdministration(getAtom(x_,eme));if(isAtom(x_)||isComputedValue(x_)||isReaction(x_)||isObservableMap(x_)||isObservableSet(x_))return x_;if(initializeInstance(x_),x_.$mobx)return x_.$mobx;fail(!1)}function getDebugName(x_,eme){var $P;return eme!==void 0?$P=getAtom(x_,eme):isObservableObject(x_)||isObservableMap(x_)||isObservableSet(x_)?$P=getAdministration(x_):$P=getAtom(x_),$P.name}var toString$f=Object.prototype.toString;function deepEqual$1(x_,eme,$P){return $P===void 0&&($P=-1),eq$9(x_,eme,$P)}function eq$9(x_,eme,$P,tme,ame){if(x_===eme)return x_!==0||1/x_===1/eme;if(x_==null||eme==null)return!1;if(x_!==x_)return eme!==eme;var nme=typeof x_;if(nme!=="function"&&nme!=="object"&&typeof eme!="object")return!1;x_=unwrap(x_),eme=unwrap(eme);var rme=toString$f.call(x_);if(rme!==toString$f.call(eme))return!1;switch(rme){case"[object RegExp]":case"[object String]":return""+x_==""+eme;case"[object Number]":return+x_!=+x_?+eme!=+eme:+x_==0?1/+x_===1/eme:+x_==+eme;case"[object Date]":case"[object Boolean]":return+x_==+eme;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(x_)===Symbol.valueOf.call(eme)}var ime=rme==="[object Array]";if(!ime){if(typeof x_!="object"||typeof eme!="object")return!1;var ome=x_.constructor,lme=eme.constructor;if(ome!==lme&&!(typeof ome=="function"&&ome instanceof ome&&typeof lme=="function"&&lme instanceof lme)&&"constructor"in x_&&"constructor"in eme)return!1}if($P===0)return!1;$P<0&&($P=-1),tme=tme||[],ame=ame||[];for(var sme=tme.length;sme--;)if(tme[sme]===x_)return ame[sme]===eme;if(tme.push(x_),ame.push(eme),ime){if(sme=x_.length,sme!==eme.length)return!1;for(;sme--;)if(!eq$9(x_[sme],eme[sme],$P-1,tme,ame))return!1}else{var cme=Object.keys(x_),dme=void 0;if(sme=cme.length,Object.keys(eme).length!==sme)return!1;for(;sme--;)if(dme=cme[sme],!(has$1$1(eme,dme)&&eq$9(x_[dme],eme[dme],$P-1,tme,ame)))return!1}return tme.pop(),ame.pop(),!0}function unwrap(x_){return isObservableArray(x_)?x_.peek():isES6Map(x_)||isObservableMap(x_)||isES6Set(x_)||isObservableSet(x_)?iteratorToArray(x_.entries()):x_}function has$1$1(x_,eme){return Object.prototype.hasOwnProperty.call(x_,eme)}(function(){function x_(){}if(x_.name!=="testCodeMinification"&&!1)var eme})();var $mobx="$mobx";typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy,extras:{getDebugName},$mobx});var define_process_env_default={},livelinessChecking="warn";function setLivelinessChecking(x_){livelinessChecking=x_}function getLivelinessChecking(){return livelinessChecking}var Hook;(function(x_){x_.afterCreate="afterCreate",x_.afterAttach="afterAttach",x_.afterCreationFinalization="afterCreationFinalization",x_.beforeDetach="beforeDetach",x_.beforeDestroy="beforeDestroy"})(Hook||(Hook={}));/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(x_,eme){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)tme.hasOwnProperty(ame)&&($P[ame]=tme[ame])},extendStatics(x_,eme)};function __extends(x_,eme){extendStatics(x_,eme);function $P(){this.constructor=x_}x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}var __assign$1=function(){return __assign$1=Object.assign||function(eme){for(var $P,tme=1,ame=arguments.length;tme<ame;tme++){$P=arguments[tme];for(var nme in $P)Object.prototype.hasOwnProperty.call($P,nme)&&(eme[nme]=$P[nme])}return eme},__assign$1.apply(this,arguments)};function __rest(x_,eme){var $P={};for(var tme in x_)Object.prototype.hasOwnProperty.call(x_,tme)&&eme.indexOf(tme)<0&&($P[tme]=x_[tme]);if(x_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ame=0,tme=Object.getOwnPropertySymbols(x_);ame<tme.length;ame++)eme.indexOf(tme[ame])<0&&Object.prototype.propertyIsEnumerable.call(x_,tme[ame])&&($P[tme[ame]]=x_[tme[ame]]);return $P}function __decorate(x_,eme,$P,tme){var ame=arguments.length,nme=ame<3?eme:tme===null?tme=Object.getOwnPropertyDescriptor(eme,$P):tme,rme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")nme=Reflect.decorate(x_,eme,$P,tme);else for(var ime=x_.length-1;ime>=0;ime--)(rme=x_[ime])&&(nme=(ame<3?rme(nme):ame>3?rme(eme,$P,nme):rme(eme,$P))||nme);return ame>3&&nme&&Object.defineProperty(eme,$P,nme),nme}function __values(x_){var eme=typeof Symbol=="function"&&Symbol.iterator,$P=eme&&x_[eme],tme=0;if($P)return $P.call(x_);if(x_&&typeof x_.length=="number")return{next:function(){return x_&&tme>=x_.length&&(x_=void 0),{value:x_&&x_[tme++],done:!x_}}};throw new TypeError(eme?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$1(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme=$P.call(x_),ame,nme=[],rme;try{for(;(eme===void 0||eme-- >0)&&!(ame=tme.next()).done;)nme.push(ame.value)}catch(ime){rme={error:ime}}finally{try{ame&&!ame.done&&($P=tme.return)&&$P.call(tme)}finally{if(rme)throw rme.error}}return nme}function __spread(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_=x_.concat(__read$1(arguments[eme]));return x_}function getType(x_){return getStateTreeNode(x_).type}function applyPatch(x_,eme){getStateTreeNode(x_).applyPatches(asArray(eme))}function getSnapshot(x_,eme){eme===void 0&&(eme=!0);var $P=getStateTreeNode(x_);return eme?$P.snapshot:$P.type.getSnapshot($P,!1)}function getParent(x_,eme){eme===void 0&&(eme=1);for(var $P=eme,tme=getStateTreeNode(x_).parent;tme;){if(--$P===0)return tme.storedValue;tme=tme.parent}throw fail$1("Failed to find the parent of "+getStateTreeNode(x_)+" at depth "+eme)}function getRoot(x_){return getStateTreeNode(x_).root.storedValue}function getPath$1(x_){return getStateTreeNode(x_).path}function getIdentifier(x_){return getStateTreeNode(x_).identifier}function clone$3(x_,eme){eme===void 0&&(eme=!0);var $P=getStateTreeNode(x_);return $P.type.create($P.snapshot,eme===!0?$P.root.environment:eme===!1?void 0:eme)}function destroy(x_){var eme=getStateTreeNode(x_);eme.isRoot?eme.die():eme.parent.removeChild(eme.subpath)}function isAlive(x_){return getStateTreeNode(x_).observableIsAlive}function getEnv(x_){var eme=getStateTreeNode(x_),$P=eme.root.environment;return $P||EMPTY_OBJECT$1}function cast(x_){return x_}var BaseNode=function(){function x_(eme,$P,tme,ame){this.type=eme,this.environment=ame,this._state=NodeLifeCycle.INITIALIZING,this.environment=ame,this.baseSetParent($P,tme)}return Object.defineProperty(x_.prototype,"subpath",{get:function(){return this._subpath},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"state",{get:function(){return this._state},set:function(eme){var $P=this.isAlive;this._state=eme;var tme=this.isAlive;this.aliveAtom&&$P!==tme&&this.aliveAtom.reportChanged()},enumerable:!1,configurable:!0}),x_.prototype.fireInternalHook=function(eme){this._hookSubscribers&&this._hookSubscribers.emit(eme,this,eme)},x_.prototype.registerHook=function(eme,$P){return this._hookSubscribers||(this._hookSubscribers=new EventHandlers),this._hookSubscribers.register(eme,$P)},Object.defineProperty(x_.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),x_.prototype.baseSetParent=function(eme,$P){this._parent=eme,this._subpath=$P,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(x_.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!1,configurable:!0}),x_.prototype.getEscapedPath=function(eme){return eme&&(this.pathAtom||(this.pathAtom=createAtom("path")),this.pathAtom.reportObserved()),this.parent?(this._escapedSubpath===void 0&&(this._escapedSubpath=this._subpath?escapeJsonPath(this._subpath):""),this.parent.getEscapedPath(eme)+"/"+this._escapedSubpath):""},Object.defineProperty(x_.prototype,"isRoot",{get:function(){return this.parent===null},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"isAlive",{get:function(){return this.state!==NodeLifeCycle.DEAD},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"isDetaching",{get:function(){return this.state===NodeLifeCycle.DETACHING},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!1,configurable:!0}),x_.prototype.baseFinalizeCreation=function(eme){if(this.state===NodeLifeCycle.CREATED){if(this.parent){if(this.parent.state!==NodeLifeCycle.FINALIZED)return;this.fireHook(Hook.afterAttach)}this.state=NodeLifeCycle.FINALIZED,eme&&eme()}},x_.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=NodeLifeCycle.DEAD},x_.prototype.baseAboutToDie=function(){this.fireHook(Hook.beforeDestroy)},x_}(),ScalarNode=function(x_){__extends(eme,x_);function eme($P,tme,ame,nme,rme){var ime=x_.call(this,$P,tme,ame,nme)||this;try{ime.storedValue=$P.createNewInstance(rme)}catch(ome){throw ime.state=NodeLifeCycle.DEAD,ome}return ime.state=NodeLifeCycle.CREATED,ime.finalizeCreation(),ime}return Object.defineProperty(eme.prototype,"root",{get:function(){if(!this.parent)throw fail$1("This scalar node is not part of a tree");return this.parent.root},enumerable:!1,configurable:!0}),eme.prototype.setParent=function($P,tme){var ame=this.parent!==$P,nme=this.subpath!==tme;!ame&&!nme||(this.environment=void 0,this.baseSetParent(this.parent,tme))},Object.defineProperty(eme.prototype,"snapshot",{get:function(){return this.getSnapshot()},enumerable:!1,configurable:!0}),eme.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},eme.prototype.toString=function(){var $P=(this.isAlive?this.path:this.pathUponDeath)||"<root>";return this.type.name+"@"+$P+(this.isAlive?"":" [dead]")},eme.prototype.die=function(){!this.isAlive||this.state===NodeLifeCycle.DETACHING||(this.aboutToDie(),this.finalizeDeath())},eme.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},eme.prototype.aboutToDie=function(){this.baseAboutToDie()},eme.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},eme.prototype.fireHook=function($P){this.fireInternalHook($P)},__decorate([action],eme.prototype,"die",null),eme}(BaseNode),nextNodeId=1,snapshotReactionOptions={onError:function(x_){throw x_}},ObjectNode=function(x_){__extends(eme,x_);function eme($P,tme,ame,nme,rme){var ime=x_.call(this,$P,tme,ame,nme)||this;if(ime.nodeId=++nextNodeId,ime.isProtectionEnabled=!0,ime._autoUnbox=!0,ime._isRunningAction=!1,ime._hasSnapshotReaction=!1,ime._observableInstanceState=0,ime._cachedInitialSnapshotCreated=!1,ime.unbox=ime.unbox.bind(ime),ime._initialSnapshot=rme,ime.identifierAttribute=$P.identifierAttribute,tme||(ime.identifierCache=new IdentifierCache),ime._childNodes=$P.initializeChildNodes(ime,ime._initialSnapshot),ime.identifier=null,ime.unnormalizedIdentifier=null,ime.identifierAttribute&&ime._initialSnapshot){var ome=ime._initialSnapshot[ime.identifierAttribute];if(ome===void 0){var lme=ime._childNodes[ime.identifierAttribute];lme&&(ome=lme.value)}if(typeof ome!="string"&&typeof ome!="number")throw fail$1("Instance identifier '"+ime.identifierAttribute+"' for type '"+ime.type.name+"' must be a string or a number");ime.identifier=normalizeIdentifier(ome),ime.unnormalizedIdentifier=ome}return tme?tme.root.identifierCache.addNodeToCache(ime):ime.identifierCache.addNodeToCache(ime),ime}return eme.prototype.applyPatches=function($P){this.createObservableInstanceIfNeeded(),this._applyPatches($P)},eme.prototype.applySnapshot=function($P){this.createObservableInstanceIfNeeded(),this._applySnapshot($P)},eme.prototype.createObservableInstanceIfNeeded=function(){this._observableInstanceState===0&&this.createObservableInstance()},eme.prototype.createObservableInstance=function(){var $P,tme;this._observableInstanceState=1;for(var ame=[],nme=this.parent;nme&&nme._observableInstanceState===0;)ame.unshift(nme),nme=nme.parent;try{for(var rme=__values(ame),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value;ome.createObservableInstanceIfNeeded()}}catch(sme){$P={error:sme}}finally{try{ime&&!ime.done&&(tme=rme.return)&&tme.call(rme)}finally{if($P)throw $P.error}}var lme=this.type;try{this.storedValue=lme.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,lme.finalizeNewInstance(this,this.storedValue)}catch(sme){throw this.state=NodeLifeCycle.DEAD,sme}finally{this._isRunningAction=!1}this._observableInstanceState=2,invalidateComputed(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=EMPTY_OBJECT$1,this.state=NodeLifeCycle.CREATED,this.fireHook(Hook.afterCreate),this.finalizeCreation()},Object.defineProperty(eme.prototype,"root",{get:function(){var $P=this.parent;return $P?$P.root:this},enumerable:!1,configurable:!0}),eme.prototype.clearParent=function(){if(this.parent){this.fireHook(Hook.beforeDetach);var $P=this.state;this.state=NodeLifeCycle.DETACHING;var tme=this.root,ame=tme.environment,nme=tme.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=ame,this.identifierCache=nme}finally{this.state=$P}}},eme.prototype.setParent=function($P,tme){var ame=$P!==this.parent,nme=tme!==this.subpath;!ame&&!nme||(ame?(this.environment=void 0,$P.root.identifierCache.mergeCache(this),this.baseSetParent($P,tme),this.fireHook(Hook.afterAttach)):nme&&this.baseSetParent(this.parent,tme))},eme.prototype.fireHook=function($P){var tme=this;this.fireInternalHook($P);var ame=this.storedValue&&typeof this.storedValue=="object"&&this.storedValue[$P];typeof ame=="function"&&(allowStateChangesInsideComputed?allowStateChangesInsideComputed(function(){ame.apply(tme.storedValue)}):ame.apply(this.storedValue))},Object.defineProperty(eme.prototype,"snapshot",{get:function(){return this.getSnapshot()},enumerable:!1,configurable:!0}),eme.prototype.getSnapshot=function(){return this.isAlive?this._observableInstanceState===2?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},eme.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},eme.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var $P=this.type,tme=this._childNodes,ame=this._initialSnapshot;this._cachedInitialSnapshot=$P.processInitialSnapshot(tme,ame),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},eme.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},eme.prototype.assertAlive=function($P){var tme=getLivelinessChecking();if(!this.isAlive&&tme!=="ignore"){var ame=this._getAssertAliveError($P);switch(tme){case"error":throw fail$1(ame);case"warn":warnError(ame)}}},eme.prototype._getAssertAliveError=function($P){var tme=this.getEscapedPath(!1)||this.pathUponDeath||"",ame=$P.subpath&&escapeJsonPath($P.subpath)||"",nme=$P.actionContext||getCurrentActionContext();nme&&nme.type!=="action"&&nme.parentActionEvent&&(nme=nme.parentActionEvent);var rme="";if(nme&&nme.name!=null){var ime=nme&&nme.context&&getPath$1(nme.context)||tme;rme=ime+"."+nme.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+tme+"', Subpath: '"+ame+"', Action: '"+rme+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},eme.prototype.getChildNode=function($P){this.assertAlive({subpath:$P}),this._autoUnbox=!1;try{return this._observableInstanceState===2?this.type.getChildNode(this,$P):this._childNodes[$P]}finally{this._autoUnbox=!0}},eme.prototype.getChildren=function(){this.assertAlive(EMPTY_OBJECT$1),this._autoUnbox=!1;try{return this._observableInstanceState===2?this.type.getChildren(this):convertChildNodesToArray(this._childNodes)}finally{this._autoUnbox=!0}},eme.prototype.getChildType=function($P){return this.type.getChildType($P)},Object.defineProperty(eme.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!1,configurable:!0}),eme.prototype.assertWritable=function($P){if(this.assertAlive($P),!this.isRunningAction()&&this.isProtected)throw fail$1("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},eme.prototype.removeChild=function($P){this.type.removeChild(this,$P)},eme.prototype.unbox=function($P){return $P&&(this.assertAlive({subpath:$P.subpath||$P.subpathUponDeath}),this._autoUnbox?$P.value:$P)},eme.prototype.toString=function(){var $P=(this.isAlive?this.path:this.pathUponDeath)||"<root>",tme=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+$P+tme+(this.isAlive?"":" [dead]")},eme.prototype.finalizeCreation=function(){var $P=this;this.baseFinalizeCreation(function(){var tme,ame;try{for(var nme=__values($P.getChildren()),rme=nme.next();!rme.done;rme=nme.next()){var ime=rme.value;ime.finalizeCreation()}}catch(ome){tme={error:ome}}finally{try{rme&&!rme.done&&(ame=nme.return)&&ame.call(nme)}finally{if(tme)throw tme.error}}$P.fireInternalHook(Hook.afterCreationFinalization)})},eme.prototype.detach=function(){if(!this.isAlive)throw fail$1("Error while detaching, node is not alive.");this.clearParent()},eme.prototype.preboot=function(){var $P=this;this._applyPatches=createActionInvoker(this.storedValue,"@APPLY_PATCHES",function(tme){tme.forEach(function(ame){var nme=splitJsonPath(ame.path),rme=resolveNodeByPathParts($P,nme.slice(0,-1));rme.applyPatchLocally(nme[nme.length-1],ame)})}),this._applySnapshot=createActionInvoker(this.storedValue,"@APPLY_SNAPSHOT",function(tme){if(tme!==$P.snapshot)return $P.type.applySnapshot($P,tme)}),addHiddenFinalProp(this.storedValue,"$treenode",this),addHiddenFinalProp(this.storedValue,"toJSON",toJSON$1)},eme.prototype.die=function(){!this.isAlive||this.state===NodeLifeCycle.DETACHING||(this.aboutToDie(),this.finalizeDeath())},eme.prototype.aboutToDie=function(){this._observableInstanceState!==0&&(this.getChildren().forEach(function($P){$P.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},eme.prototype.finalizeDeath=function(){this.getChildren().forEach(function(tme){tme.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var $P=this.snapshot;this._snapshotUponDeath=$P,this._internalEventsClearAll(),this.baseFinalizeDeath()},eme.prototype.onSnapshot=function($P){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",$P)},eme.prototype.emitSnapshot=function($P){this._internalEventsEmit("snapshot",$P)},eme.prototype.onPatch=function($P){return this._internalEventsRegister("patch",$P)},eme.prototype.emitPatch=function($P,tme){if(this._internalEventsHasSubscribers("patch")){var ame=extend$6({},$P,{path:tme.path.substr(this.path.length)+"/"+$P.path}),nme=__read$1(splitPatch(ame),2),rme=nme[0],ime=nme[1];this._internalEventsEmit("patch",rme,ime)}this.parent&&this.parent.emitPatch($P,tme)},eme.prototype.hasDisposer=function($P){return this._internalEventsHas("dispose",$P)},eme.prototype.addDisposer=function($P){if(!this.hasDisposer($P)){this._internalEventsRegister("dispose",$P,!0);return}throw fail$1("cannot add a disposer when it is already registered for execution")},eme.prototype.removeDisposer=function($P){if(!this._internalEventsHas("dispose",$P))throw fail$1("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",$P)},eme.prototype.removeMiddleware=function($P){if(this.middlewares){var tme=this.middlewares.indexOf($P);tme>=0&&this.middlewares.splice(tme,1)}},eme.prototype.addMiddleWare=function($P,tme){var ame=this;tme===void 0&&(tme=!0);var nme={handler:$P,includeHooks:tme};return this.middlewares?this.middlewares.push(nme):this.middlewares=[nme],function(){ame.removeMiddleware(nme)}},eme.prototype.applyPatchLocally=function($P,tme){this.assertWritable({subpath:$P}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,$P,tme)},eme.prototype._addSnapshotReaction=function(){var $P=this;if(!this._hasSnapshotReaction){var tme=reaction(function(){return $P.snapshot},function(ame){return $P.emitSnapshot(ame)},snapshotReactionOptions);this.addDisposer(tme),this._hasSnapshotReaction=!0}},eme.prototype._internalEventsHasSubscribers=function($P){return!!this._internalEvents&&this._internalEvents.hasSubscribers($P)},eme.prototype._internalEventsRegister=function($P,tme,ame){return ame===void 0&&(ame=!1),this._internalEvents||(this._internalEvents=new EventHandlers),this._internalEvents.register($P,tme,ame)},eme.prototype._internalEventsHas=function($P,tme){return!!this._internalEvents&&this._internalEvents.has($P,tme)},eme.prototype._internalEventsUnregister=function($P,tme){this._internalEvents&&this._internalEvents.unregister($P,tme)},eme.prototype._internalEventsEmit=function($P){for(var tme,ame=[],nme=1;nme<arguments.length;nme++)ame[nme-1]=arguments[nme];this._internalEvents&&(tme=this._internalEvents).emit.apply(tme,__spread([$P],ame))},eme.prototype._internalEventsClear=function($P){this._internalEvents&&this._internalEvents.clear($P)},eme.prototype._internalEventsClearAll=function(){this._internalEvents&&this._internalEvents.clearAll()},__decorate([action],eme.prototype,"createObservableInstance",null),__decorate([computed],eme.prototype,"snapshot",null),__decorate([action],eme.prototype,"detach",null),__decorate([action],eme.prototype,"die",null),eme}(BaseNode),TypeFlags;(function(x_){x_[x_.String=1]="String",x_[x_.Number=2]="Number",x_[x_.Boolean=4]="Boolean",x_[x_.Date=8]="Date",x_[x_.Literal=16]="Literal",x_[x_.Array=32]="Array",x_[x_.Map=64]="Map",x_[x_.Object=128]="Object",x_[x_.Frozen=256]="Frozen",x_[x_.Optional=512]="Optional",x_[x_.Reference=1024]="Reference",x_[x_.Identifier=2048]="Identifier",x_[x_.Late=4096]="Late",x_[x_.Refinement=8192]="Refinement",x_[x_.Union=16384]="Union",x_[x_.Null=32768]="Null",x_[x_.Undefined=65536]="Undefined",x_[x_.Integer=131072]="Integer",x_[x_.Custom=262144]="Custom",x_[x_.SnapshotProcessor=524288]="SnapshotProcessor"})(TypeFlags||(TypeFlags={}));var cannotDetermineSubtype="cannotDetermine",BaseType=function(){function x_(eme){this.isType=!0,this.name=eme}return x_.prototype.create=function(eme,$P){return typecheckInternal(this,eme),this.instantiate(null,"",$P,eme).value},x_.prototype.getSnapshot=function(eme,$P){throw fail$1("unimplemented method")},x_.prototype.isAssignableFrom=function(eme){return eme===this},x_.prototype.validate=function(eme,$P){var tme=getStateTreeNodeSafe(eme);if(tme){var ame=getType(eme);return this.isAssignableFrom(ame)?typeCheckSuccess():typeCheckFailure($P,eme)}return this.isValidSnapshot(eme,$P)},x_.prototype.is=function(eme){return this.validate(eme,[{path:"",type:this}]).length===0},Object.defineProperty(x_.prototype,"Type",{get:function(){throw fail$1("Factory.Type should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.Type`")},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"TypeWithoutSTN",{get:function(){throw fail$1("Factory.TypeWithoutSTN should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.TypeWithoutSTN`")},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"SnapshotType",{get:function(){throw fail$1("Factory.SnapshotType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.SnapshotType`")},enumerable:!1,configurable:!0}),Object.defineProperty(x_.prototype,"CreationType",{get:function(){throw fail$1("Factory.CreationType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.CreationType`")},enumerable:!1,configurable:!0}),__decorate([action],x_.prototype,"create",null),x_}(),ComplexType=function(x_){__extends(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.create=function($P,tme){return $P===void 0&&($P=this.getDefaultSnapshot()),x_.prototype.create.call(this,$P,tme)},eme.prototype.getValue=function($P){return $P.createObservableInstanceIfNeeded(),$P.storedValue},eme.prototype.tryToReconcileNode=function($P,tme){return $P.isDetaching?!1:$P.snapshot===tme||isStateTreeNode(tme)&&getStateTreeNode(tme)===$P?!0:$P.type===this&&isMutable(tme)&&!isStateTreeNode(tme)&&(!$P.identifierAttribute||$P.identifier===normalizeIdentifier(tme[$P.identifierAttribute]))?($P.applySnapshot(tme),!0):!1},eme.prototype.reconcile=function($P,tme,ame,nme){var rme=this.tryToReconcileNode($P,tme);if(rme)return $P.setParent(ame,nme),$P;if($P.die(),isStateTreeNode(tme)&&this.isAssignableFrom(getType(tme))){var ime=getStateTreeNode(tme);return ime.setParent(ame,nme),ime}return this.instantiate(ame,nme,void 0,tme)},eme.prototype.getSubTypes=function(){return null},__decorate([action],eme.prototype,"create",null),eme}(BaseType),SimpleType=function(x_){__extends(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.createNewInstance=function($P){return $P},eme.prototype.getValue=function($P){return $P.storedValue},eme.prototype.getSnapshot=function($P){return $P.storedValue},eme.prototype.reconcile=function($P,tme,ame,nme){if(!$P.isDetaching&&$P.type===this&&$P.storedValue===tme)return $P;var rme=this.instantiate(ame,nme,void 0,tme);return $P.die(),rme},eme.prototype.getSubTypes=function(){return null},eme}(BaseType);function isType(x_){return typeof x_=="object"&&x_&&x_.isType===!0}(function(){function x_(eme,$P){this.hooks=eme,this.call=$P,this.flowsPending=0,this.running=!0,eme&&eme.onStart($P)}return x_.prototype.finish=function(eme){this.running&&(this.running=!1,this.hooks&&this.hooks.onFinish(this.call,eme))},x_.prototype.incFlowsPending=function(){this.flowsPending++},x_.prototype.decFlowsPending=function(){this.flowsPending--},Object.defineProperty(x_.prototype,"hasFlowsPending",{get:function(){return this.flowsPending>0},enumerable:!1,configurable:!0}),x_})();var nextActionId=1,currentActionContext;function getCurrentActionContext(){return currentActionContext}function getNextActionId(){return nextActionId++}function runWithActionContext(x_,eme){var $P=getStateTreeNode(x_.context);x_.type==="action"&&$P.assertAlive({actionContext:x_});var tme=$P._isRunningAction;$P._isRunningAction=!0;var ame=currentActionContext;currentActionContext=x_;try{return runMiddleWares($P,x_,eme)}finally{currentActionContext=ame,$P._isRunningAction=tme}}function getParentActionContext(x_){if(x_)return x_.type==="action"?x_:x_.parentActionEvent}function createActionInvoker(x_,eme,$P){var tme=function(){var ame=getNextActionId(),nme=currentActionContext,rme=getParentActionContext(nme);return runWithActionContext({type:"action",name:eme,id:ame,args:argsToArray(arguments),context:x_,tree:getRoot(x_),rootId:nme?nme.rootId:ame,parentId:nme?nme.id:0,allParentIds:nme?__spread(nme.allParentIds,[nme.id]):[],parentEvent:nme,parentActionEvent:rme},$P)};return tme._isMSTAction=!0,tme}var CollectedMiddlewares=function(){function x_(eme,$P){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],$P.$mst_middleware&&this.middlewares.push($P.$mst_middleware);for(var tme=eme;tme;)tme.middlewares&&this.middlewares.push(tme.middlewares),tme=tme.parent}return Object.defineProperty(x_.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!1,configurable:!0}),x_.prototype.getNextMiddleware=function(){var eme=this.middlewares[this.arrayIndex];if(eme){var $P=eme[this.inArrayIndex++];return $P||(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())}},x_}();function runMiddleWares(x_,eme,$P){var tme=new CollectedMiddlewares(x_,$P);if(tme.isEmpty)return action($P).apply(null,eme.args);var ame=null;function nme(rme){var ime=tme.getNextMiddleware(),ome=ime&&ime.handler;if(!ome)return action($P).apply(null,rme.args);if(!ime.includeHooks&&Hook[rme.name])return nme(rme);function lme(cme,dme){ame=nme(cme),dme&&(ame=dme(ame))}function sme(cme){ame=cme}return ome(rme,lme,sme),ame}return nme(eme)}function safeStringify(x_){try{return JSON.stringify(x_)}catch(eme){return"<Unserializable: "+eme+">"}}function prettyPrintValue(x_){return typeof x_=="function"?"<function"+(x_.name?" "+x_.name:"")+">":isStateTreeNode(x_)?"<"+x_+">":"`"+safeStringify(x_)+"`"}function shortenPrintValue(x_){return x_.length<280?x_:x_.substring(0,272)+"......"+x_.substring(x_.length-8)}function toErrorString(x_){var eme=x_.value,$P=x_.context[x_.context.length-1].type,tme=x_.context.map(function(ime){var ome=ime.path;return ome}).filter(function(ime){return ime.length>0}).join("/"),ame=tme.length>0?'at path "/'+tme+'" ':"",nme=isStateTreeNode(eme)?"value of type "+getStateTreeNode(eme).type.name+":":isPrimitive$1(eme)?"value":"snapshot",rme=$P&&isStateTreeNode(eme)&&$P.is(getStateTreeNode(eme).snapshot);return""+ame+nme+" "+prettyPrintValue(eme)+" is not assignable "+($P?"to type: `"+$P.name+"`":"")+(x_.message?" ("+x_.message+")":"")+($P?isPrimitiveType($P)||isPrimitive$1(eme)?".":", expected an instance of `"+$P.name+"` or a snapshot like `"+$P.describe()+"` instead."+(rme?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function getContextForPath(x_,eme,$P){return x_.concat([{path:eme,type:$P}])}function typeCheckSuccess(){return EMPTY_ARRAY}function typeCheckFailure(x_,eme,$P){return[{context:x_,value:eme,message:$P}]}function flattenTypeErrors(x_){return x_.reduce(function(eme,$P){return eme.concat($P)},[])}function typecheckInternal(x_,eme){isTypeCheckingEnabled()&&typecheck(x_,eme)}function typecheck(x_,eme){var $P=x_.validate(eme,[{path:"",type:x_}]);if($P.length>0)throw fail$1(validationErrorsToString(x_,eme,$P))}function validationErrorsToString(x_,eme,$P){if($P.length!==0)return"Error while converting "+shortenPrintValue(prettyPrintValue(eme))+" to `"+x_.name+`\`:

    `+$P.map(toErrorString).join(`
    `)}var identifierCacheId=0,IdentifierCache=function(){function x_(){this.cacheId=identifierCacheId++,this.cache=observable.map(),this.lastCacheModificationPerId=observable.map()}return x_.prototype.updateLastCacheModificationPerId=function(eme){var $P=this.lastCacheModificationPerId.get(eme);this.lastCacheModificationPerId.set(eme,$P===void 0?1:$P+1)},x_.prototype.getLastCacheModificationPerId=function(eme){var $P=this.lastCacheModificationPerId.get(eme)||0;return this.cacheId+"-"+$P},x_.prototype.addNodeToCache=function(eme,$P){if($P===void 0&&($P=!0),eme.identifierAttribute){var tme=eme.identifier;this.cache.has(tme)||this.cache.set(tme,observable.array([],mobxShallow));var ame=this.cache.get(tme);if(ame.indexOf(eme)!==-1)throw fail$1("Already registered");ame.push(eme),$P&&this.updateLastCacheModificationPerId(tme)}},x_.prototype.mergeCache=function(eme){var $P=this;values$3(eme.identifierCache.cache).forEach(function(tme){return tme.forEach(function(ame){$P.addNodeToCache(ame)})})},x_.prototype.notifyDied=function(eme){if(eme.identifierAttribute){var $P=eme.identifier,tme=this.cache.get($P);tme&&(tme.remove(eme),tme.length||this.cache.delete($P),this.updateLastCacheModificationPerId(eme.identifier))}},x_.prototype.splitCache=function(eme){var $P=this,tme=new x_,ame=eme.path;return entries(this.cache).forEach(function(nme){for(var rme=__read$1(nme,2),ime=rme[0],ome=rme[1],lme=!1,sme=ome.length-1;sme>=0;sme--)ome[sme].path.indexOf(ame)===0&&(tme.addNodeToCache(ome[sme],!1),ome.splice(sme,1),lme=!0);lme&&$P.updateLastCacheModificationPerId(ime)}),tme},x_.prototype.has=function(eme,$P){var tme=this.cache.get($P);return tme?tme.some(function(ame){return eme.isAssignableFrom(ame.type)}):!1},x_.prototype.resolve=function(eme,$P){var tme=this.cache.get($P);if(!tme)return null;var ame=tme.filter(function(nme){return eme.isAssignableFrom(nme.type)});switch(ame.length){case 0:return null;case 1:return ame[0];default:throw fail$1("Cannot resolve a reference to type '"+eme.name+"' with id: '"+$P+"' unambigously, there are multiple candidates: "+ame.map(function(nme){return nme.path}).join(", "))}},x_}();function createObjectNode(x_,eme,$P,tme,ame){var nme=getStateTreeNodeSafe(ame);if(nme){if(nme.parent)throw fail$1("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(eme?eme.path:"")+"/"+$P+"', but it lives already at '"+nme.path+"'");return eme&&nme.setParent(eme,$P),nme}return new ObjectNode(x_,eme,$P,tme,ame)}function createScalarNode(x_,eme,$P,tme,ame){return new ScalarNode(x_,eme,$P,tme,ame)}function isNode(x_){return x_ instanceof ScalarNode||x_ instanceof ObjectNode}var NodeLifeCycle;(function(x_){x_[x_.INITIALIZING=0]="INITIALIZING",x_[x_.CREATED=1]="CREATED",x_[x_.FINALIZED=2]="FINALIZED",x_[x_.DETACHING=3]="DETACHING",x_[x_.DEAD=4]="DEAD"})(NodeLifeCycle||(NodeLifeCycle={}));function isStateTreeNode(x_){return!!(x_&&x_.$treenode)}function getStateTreeNode(x_){if(!isStateTreeNode(x_))throw fail$1("Value "+x_+" is no MST Node");return x_.$treenode}function getStateTreeNodeSafe(x_){return x_&&x_.$treenode||null}function toJSON$1(){return getStateTreeNode(this).snapshot}function resolveNodeByPathParts(x_,eme,$P){$P===void 0&&($P=!0);for(var tme=x_,ame=0;ame<eme.length;ame++){var nme=eme[ame];if(nme===".."){if(tme=tme.parent,tme)continue}else{if(nme===".")continue;if(tme){if(tme instanceof ScalarNode)try{var rme=tme.value;isStateTreeNode(rme)&&(tme=getStateTreeNode(rme))}catch(ome){if(!$P)return;throw ome}if(tme instanceof ObjectNode){var ime=tme.getChildType(nme);if(ime&&(tme=tme.getChildNode(nme),tme))continue}}}if($P)throw fail$1("Could not resolve '"+nme+"' in path '"+(joinJsonPath(eme.slice(0,ame))||"/")+"' while resolving '"+joinJsonPath(eme)+"'");return}return tme}function convertChildNodesToArray(x_){if(!x_)return EMPTY_ARRAY;var eme=Object.keys(x_);if(!eme.length)return EMPTY_ARRAY;var $P=new Array(eme.length);return eme.forEach(function(tme,ame){$P[ame]=x_[tme]}),$P}var EMPTY_ARRAY=Object.freeze([]),EMPTY_OBJECT$1=Object.freeze({}),mobxShallow={deep:!1};Object.freeze(mobxShallow);function fail$1(x_){return x_===void 0&&(x_="Illegal state"),new Error("[mobx-state-tree] "+x_)}function identity$8(x_){return x_}var isInteger$2=Number.isInteger||function(x_){return typeof x_=="number"&&isFinite(x_)&&Math.floor(x_)===x_};function isArray$u(x_){return Array.isArray(x_)||isObservableArray(x_)}function asArray(x_){return x_?isArray$u(x_)?x_:[x_]:EMPTY_ARRAY}function extend$6(x_){for(var eme=[],$P=1;$P<arguments.length;$P++)eme[$P-1]=arguments[$P];for(var tme=0;tme<eme.length;tme++){var ame=eme[tme];for(var nme in ame)x_[nme]=ame[nme]}return x_}function isPlainObject$7(x_){if(x_===null||typeof x_!="object")return!1;var eme=Object.getPrototypeOf(x_);return eme===Object.prototype||eme===null}function isMutable(x_){return x_!==null&&typeof x_=="object"&&!(x_ instanceof Date)&&!(x_ instanceof RegExp)}function isPrimitive$1(x_,eme){return eme===void 0&&(eme=!0),!!(x_==null||typeof x_=="string"||typeof x_=="number"||typeof x_=="boolean"||eme&&x_ instanceof Date)}function freeze(x_){return x_}function deepFreeze(x_){return x_}function isSerializable(x_){return typeof x_!="function"}function addHiddenFinalProp(x_,eme,$P){Object.defineProperty(x_,eme,{enumerable:!1,writable:!1,configurable:!0,value:$P})}var EventHandler=function(){function x_(){this.handlers=[]}return Object.defineProperty(x_.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!1,configurable:!0}),x_.prototype.register=function(eme,$P){var tme=this;return $P===void 0&&($P=!1),$P?this.handlers.unshift(eme):this.handlers.push(eme),function(){tme.unregister(eme)}},x_.prototype.has=function(eme){return this.handlers.indexOf(eme)>=0},x_.prototype.unregister=function(eme){var $P=this.handlers.indexOf(eme);$P>=0&&this.handlers.splice($P,1)},x_.prototype.clear=function(){this.handlers.length=0},x_.prototype.emit=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];var tme=this.handlers.slice();tme.forEach(function(ame){return ame.apply(void 0,__spread(eme))})},x_}(),EventHandlers=function(){function x_(){}return x_.prototype.hasSubscribers=function(eme){var $P=this.eventHandlers&&this.eventHandlers[eme];return!!$P&&$P.hasSubscribers},x_.prototype.register=function(eme,$P,tme){tme===void 0&&(tme=!1),this.eventHandlers||(this.eventHandlers={});var ame=this.eventHandlers[eme];return ame||(ame=this.eventHandlers[eme]=new EventHandler),ame.register($P,tme)},x_.prototype.has=function(eme,$P){var tme=this.eventHandlers&&this.eventHandlers[eme];return!!tme&&tme.has($P)},x_.prototype.unregister=function(eme,$P){var tme=this.eventHandlers&&this.eventHandlers[eme];tme&&tme.unregister($P)},x_.prototype.clear=function(eme){this.eventHandlers&&delete this.eventHandlers[eme]},x_.prototype.clearAll=function(){this.eventHandlers=void 0},x_.prototype.emit=function(eme){for(var $P,tme=[],ame=1;ame<arguments.length;ame++)tme[ame-1]=arguments[ame];var nme=this.eventHandlers&&this.eventHandlers[eme];nme&&($P=nme).emit.apply($P,__spread(tme))},x_}();function argsToArray(x_){for(var eme=new Array(x_.length),$P=0;$P<x_.length;$P++)eme[$P]=x_[$P];return eme}function invalidateComputed(x_,eme){var $P=getAtom(x_,eme);$P.trackAndCompute()}function stringStartsWith(x_,eme){return x_.indexOf(eme)===0}function warnError(x_){console.warn(new Error("[mobx-state-tree] "+x_))}function isTypeCheckingEnabled(){return typeof process<"u"&&define_process_env_default&&define_process_env_default.ENABLE_TYPE_CHECK==="true"}function setImmediateWithFallback(x_){typeof queueMicrotask=="function"?queueMicrotask(x_):typeof setImmediate=="function"?setImmediate(x_):setTimeout(x_,1)}function flow(x_){return createFlowSpawner(x_.name,x_)}function createFlowSpawner(x_,eme){var $P=function(){var ame=getNextActionId(),nme=getCurrentActionContext();if(!nme)throw fail$1("a mst flow must always have a parent context");var rme=getParentActionContext(nme);if(!rme)throw fail$1("a mst flow must always have a parent action context");var ime={name:x_,id:ame,tree:nme.tree,context:nme.context,parentId:nme.id,allParentIds:__spread(nme.allParentIds,[nme.id]),rootId:nme.rootId,parentEvent:nme,parentActionEvent:rme},ome=arguments;function lme(sme,cme,dme){sme.$mst_middleware=$P.$mst_middleware,runWithActionContext(__assign$1(__assign$1({},ime),{type:cme,args:[dme]}),sme)}return new Promise(function(sme,cme){var dme,ume=function(){dme=eme.apply(null,arguments),fme(void 0)};ume.$mst_middleware=$P.$mst_middleware,runWithActionContext(__assign$1(__assign$1({},ime),{type:"flow_spawn",args:argsToArray(ome)}),ume);function fme(bme){var mme;try{lme(function(vme){mme=dme.next(vme)},"flow_resume",bme)}catch(vme){setImmediateWithFallback(function(){lme(function(gme){cme(vme)},"flow_throw",vme)});return}hme(mme)}function pme(bme){var mme;try{lme(function(vme){mme=dme.throw(vme)},"flow_resume_error",bme)}catch(vme){setImmediateWithFallback(function(){lme(function(gme){cme(vme)},"flow_throw",vme)});return}hme(mme)}function hme(bme){if(bme.done){setImmediateWithFallback(function(){lme(function(mme){sme(mme)},"flow_return",bme.value)});return}if(!bme.value||typeof bme.value.then!="function")throw fail$1("Only promises can be yielded to `async`, got: "+bme);return bme.value.then(fme,pme)}})};return $P}function splitPatch(x_){if(!("oldValue"in x_))throw fail$1("Patches without `oldValue` field cannot be inversed");return[stripPatch(x_),invertPatch(x_)]}function stripPatch(x_){switch(x_.op){case"add":return{op:"add",path:x_.path,value:x_.value};case"remove":return{op:"remove",path:x_.path};case"replace":return{op:"replace",path:x_.path,value:x_.value}}}function invertPatch(x_){switch(x_.op){case"add":return{op:"remove",path:x_.path};case"remove":return{op:"add",path:x_.path,value:x_.oldValue};case"replace":return{op:"replace",path:x_.path,value:x_.oldValue}}}function isNumber$6(x_){return typeof x_=="number"}function escapeJsonPath(x_){return isNumber$6(x_)===!0?""+x_:x_.indexOf("/")===-1&&x_.indexOf("~")===-1?x_:x_.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPath(x_){return x_.replace(/~1/g,"/").replace(/~0/g,"~")}function joinJsonPath(x_){if(x_.length===0)return"";var eme=function($P){return $P.map(escapeJsonPath).join("/")};return x_[0]==="."||x_[0]===".."?eme(x_):"/"+eme(x_)}function splitJsonPath(x_){var eme=x_.split("/").map(unescapeJsonPath),$P=x_===""||x_==="."||x_===".."||stringStartsWith(x_,"/")||stringStartsWith(x_,"./")||stringStartsWith(x_,"../");if(!$P)throw fail$1("a json path must be either rooted, empty or relative, but got '"+x_+"'");return eme[0]===""&&eme.shift(),eme}var SnapshotProcessor=function(x_){__extends(eme,x_);function eme($P,tme,ame){var nme=x_.call(this,ame||$P.name)||this;return nme._subtype=$P,nme._processors=tme,nme}return Object.defineProperty(eme.prototype,"flags",{get:function(){return this._subtype.flags|TypeFlags.SnapshotProcessor},enumerable:!1,configurable:!0}),eme.prototype.describe=function(){return"snapshotProcessor("+this._subtype.describe()+")"},eme.prototype.preProcessSnapshot=function($P){return this._processors.preProcessor?this._processors.preProcessor.call(null,$P):$P},eme.prototype.postProcessSnapshot=function($P){return this._processors.postProcessor?this._processors.postProcessor.call(null,$P):$P},eme.prototype._fixNode=function($P){var tme=this;proxyNodeTypeMethods($P.type,this,"isAssignableFrom","create");var ame=$P.getSnapshot;$P.getSnapshot=function(){return tme.postProcessSnapshot(ame.call($P))}},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=isStateTreeNode(nme)?nme:this.preProcessSnapshot(nme),ime=this._subtype.instantiate($P,tme,ame,rme);return this._fixNode(ime),ime},eme.prototype.reconcile=function($P,tme,ame,nme){var rme=this._subtype.reconcile($P,isStateTreeNode(tme)?tme:this.preProcessSnapshot(tme),ame,nme);return rme!==$P&&this._fixNode(rme),rme},eme.prototype.getSnapshot=function($P,tme){tme===void 0&&(tme=!0);var ame=this._subtype.getSnapshot($P);return tme?this.postProcessSnapshot(ame):ame},eme.prototype.isValidSnapshot=function($P,tme){var ame=this.preProcessSnapshot($P);return this._subtype.validate(ame,tme)},eme.prototype.getSubTypes=function(){return this._subtype},eme.prototype.is=function($P){var tme=isType($P)?this._subtype:isStateTreeNode($P)?getSnapshot($P,!1):this.preProcessSnapshot($P);return this._subtype.validate(tme,[{path:"",type:this._subtype}]).length===0},eme}(BaseType);function proxyNodeTypeMethods(x_,eme){for(var $P,tme,ame=[],nme=2;nme<arguments.length;nme++)ame[nme-2]=arguments[nme];try{for(var rme=__values(ame),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value;x_[ome]=eme[ome].bind(eme)}}catch(lme){$P={error:lme}}finally{try{ime&&!ime.done&&(tme=rme.return)&&tme.call(rme)}finally{if($P)throw $P.error}}}function snapshotProcessor(x_,eme,$P){return new SnapshotProcessor(x_,eme,$P)}var needsIdentifierError="Map.put can only be used to store complex values that have an identifier type attribute";function tryCollectModelTypes(x_,eme){var $P,tme,ame=x_.getSubTypes();if(ame===cannotDetermineSubtype)return!1;if(ame){var nme=asArray(ame);try{for(var rme=__values(nme),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value;if(!tryCollectModelTypes(ome,eme))return!1}}catch(lme){$P={error:lme}}finally{try{ime&&!ime.done&&(tme=rme.return)&&tme.call(rme)}finally{if($P)throw $P.error}}}return x_ instanceof ModelType&&eme.push(x_),!0}var MapIdentifierMode;(function(x_){x_[x_.UNKNOWN=0]="UNKNOWN",x_[x_.YES=1]="YES",x_[x_.NO=2]="NO"})(MapIdentifierMode||(MapIdentifierMode={}));var MSTMap=function(x_){__extends(eme,x_);function eme($P){return x_.call(this,$P,observable.ref.enhancer)||this}return eme.prototype.get=function($P){return x_.prototype.get.call(this,""+$P)},eme.prototype.has=function($P){return x_.prototype.has.call(this,""+$P)},eme.prototype.delete=function($P){return x_.prototype.delete.call(this,""+$P)},eme.prototype.set=function($P,tme){return x_.prototype.set.call(this,""+$P,tme)},eme.prototype.put=function($P){if(!$P)throw fail$1("Map.put cannot be used to set empty values");if(isStateTreeNode($P)){var tme=getStateTreeNode($P);if(tme.identifier===null)throw fail$1(needsIdentifierError);return this.set(tme.identifier,$P),$P}else if(isMutable($P)){var ame=getStateTreeNode(this),nme=ame.type;if(nme.identifierMode!==MapIdentifierMode.YES)throw fail$1(needsIdentifierError);var rme=nme.mapIdentifierAttribute,ime=$P[rme];if(!isValidIdentifier(ime)){var ome=this.put(nme.getChildType().create($P,ame.environment));return this.put(getSnapshot(ome))}var lme=normalizeIdentifier(ime);return this.set(lme,$P),this.get(lme)}else throw fail$1("Map.put can only be used to store complex values")},eme}(ObservableMap),MapType$1=function(x_){__extends(eme,x_);function eme($P,tme,ame){ame===void 0&&(ame=[]);var nme=x_.call(this,$P)||this;return nme._subType=tme,nme.identifierMode=MapIdentifierMode.UNKNOWN,nme.mapIdentifierAttribute=void 0,nme.flags=TypeFlags.Map,nme.hookInitializers=[],nme._determineIdentifierMode(),nme.hookInitializers=ame,nme}return eme.prototype.hooks=function($P){var tme=this.hookInitializers.length>0?this.hookInitializers.concat($P):[$P];return new eme(this.name,this._subType,tme)},eme.prototype.instantiate=function($P,tme,ame,nme){return this._determineIdentifierMode(),createObjectNode(this,$P,tme,ame,nme)},eme.prototype._determineIdentifierMode=function(){if(this.identifierMode===MapIdentifierMode.UNKNOWN){var $P=[];if(tryCollectModelTypes(this._subType,$P)){var tme=void 0;$P.forEach(function(ame){if(ame.identifierAttribute){if(tme&&tme!==ame.identifierAttribute)throw fail$1("The objects in a map should all have the same identifier attribute, expected '"+tme+"', but child of type '"+ame.name+"' declared attribute '"+ame.identifierAttribute+"' as identifier");tme=ame.identifierAttribute}}),tme?(this.identifierMode=MapIdentifierMode.YES,this.mapIdentifierAttribute=tme):this.identifierMode=MapIdentifierMode.NO}}},eme.prototype.initializeChildNodes=function($P,tme){tme===void 0&&(tme={});var ame=$P.type._subType,nme={};return Object.keys(tme).forEach(function(rme){nme[rme]=ame.instantiate($P,rme,void 0,tme[rme])}),nme},eme.prototype.createNewInstance=function($P){return new MSTMap($P)},eme.prototype.finalizeNewInstance=function($P,tme){interceptReads(tme,$P.unbox);var ame=$P.type;ame.hookInitializers.forEach(function(nme){var rme=nme(tme);Object.keys(rme).forEach(function(ime){var ome=rme[ime],lme=createActionInvoker(tme,ime,ome);addHiddenFinalProp(tme,ime,lme)})}),intercept(tme,this.willChange),observe$1(tme,this.didChange)},eme.prototype.describe=function(){return"Map<string, "+this._subType.describe()+">"},eme.prototype.getChildren=function($P){return values$3($P.storedValue)},eme.prototype.getChildNode=function($P,tme){var ame=$P.storedValue.get(""+tme);if(!ame)throw fail$1("Not a child "+tme);return ame},eme.prototype.willChange=function($P){var tme=getStateTreeNode($P.object),ame=$P.name;tme.assertWritable({subpath:ame});var nme=tme.type,rme=nme._subType;switch($P.type){case"update":{var ime=$P.newValue,ome=$P.object.get(ame);if(ime===ome)return null;typecheckInternal(rme,ime),$P.newValue=rme.reconcile(tme.getChildNode(ame),$P.newValue,tme,ame),nme.processIdentifier(ame,$P.newValue)}break;case"add":typecheckInternal(rme,$P.newValue),$P.newValue=rme.instantiate(tme,ame,void 0,$P.newValue),nme.processIdentifier(ame,$P.newValue);break}return $P},eme.prototype.processIdentifier=function($P,tme){if(this.identifierMode===MapIdentifierMode.YES&&tme instanceof ObjectNode){var ame=tme.identifier;if(ame!==$P)throw fail$1("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+ame+"', but expected: '"+$P+"'")}},eme.prototype.getSnapshot=function($P){var tme={};return $P.getChildren().forEach(function(ame){tme[ame.subpath]=ame.snapshot}),tme},eme.prototype.processInitialSnapshot=function($P){var tme={};return Object.keys($P).forEach(function(ame){tme[ame]=$P[ame].getSnapshot()}),tme},eme.prototype.didChange=function($P){var tme=getStateTreeNode($P.object);switch($P.type){case"update":return void tme.emitPatch({op:"replace",path:escapeJsonPath($P.name),value:$P.newValue.snapshot,oldValue:$P.oldValue?$P.oldValue.snapshot:void 0},tme);case"add":return void tme.emitPatch({op:"add",path:escapeJsonPath($P.name),value:$P.newValue.snapshot,oldValue:void 0},tme);case"delete":var ame=$P.oldValue.snapshot;return $P.oldValue.die(),void tme.emitPatch({op:"remove",path:escapeJsonPath($P.name),oldValue:ame},tme)}},eme.prototype.applyPatchLocally=function($P,tme,ame){var nme=$P.storedValue;switch(ame.op){case"add":case"replace":nme.set(tme,ame.value);break;case"remove":nme.delete(tme);break}},eme.prototype.applySnapshot=function($P,tme){typecheckInternal(this,tme);var ame=$P.storedValue,nme={};if(Array.from(ame.keys()).forEach(function(ime){nme[ime]=!1}),tme)for(var rme in tme)ame.set(rme,tme[rme]),nme[""+rme]=!0;Object.keys(nme).forEach(function(ime){nme[ime]===!1&&ame.delete(ime)})},eme.prototype.getChildType=function(){return this._subType},eme.prototype.isValidSnapshot=function($P,tme){var ame=this;return isPlainObject$7($P)?flattenTypeErrors(Object.keys($P).map(function(nme){return ame._subType.validate($P[nme],getContextForPath(tme,nme,ame._subType))})):typeCheckFailure(tme,$P,"Value is not a plain object")},eme.prototype.getDefaultSnapshot=function(){return EMPTY_OBJECT$1},eme.prototype.removeChild=function($P,tme){$P.storedValue.delete(tme)},__decorate([action],eme.prototype,"applySnapshot",null),eme}(ComplexType);function map$4(x_){return new MapType$1("map<string, "+x_.name+">",x_)}var ArrayType=function(x_){__extends(eme,x_);function eme($P,tme,ame){ame===void 0&&(ame=[]);var nme=x_.call(this,$P)||this;return nme._subType=tme,nme.flags=TypeFlags.Array,nme.hookInitializers=[],nme.hookInitializers=ame,nme}return eme.prototype.hooks=function($P){var tme=this.hookInitializers.length>0?this.hookInitializers.concat($P):[$P];return new eme(this.name,this._subType,tme)},eme.prototype.instantiate=function($P,tme,ame,nme){return createObjectNode(this,$P,tme,ame,nme)},eme.prototype.initializeChildNodes=function($P,tme){tme===void 0&&(tme=[]);var ame=$P.type._subType,nme={};return tme.forEach(function(rme,ime){var ome=""+ime;nme[ome]=ame.instantiate($P,ome,void 0,rme)}),nme},eme.prototype.createNewInstance=function($P){return observable.array(convertChildNodesToArray($P),mobxShallow)},eme.prototype.finalizeNewInstance=function($P,tme){getAdministration(tme).dehancer=$P.unbox;var ame=$P.type;ame.hookInitializers.forEach(function(nme){var rme=nme(tme);Object.keys(rme).forEach(function(ime){var ome=rme[ime],lme=createActionInvoker(tme,ime,ome);addHiddenFinalProp(tme,ime,lme)})}),intercept(tme,this.willChange),observe$1(tme,this.didChange)},eme.prototype.describe=function(){return this._subType.describe()+"[]"},eme.prototype.getChildren=function($P){return $P.storedValue.slice()},eme.prototype.getChildNode=function($P,tme){var ame=Number(tme);if(ame<$P.storedValue.length)return $P.storedValue[ame];throw fail$1("Not a child: "+tme)},eme.prototype.willChange=function($P){var tme=getStateTreeNode($P.object);tme.assertWritable({subpath:""+$P.index});var ame=tme.type._subType,nme=tme.getChildren();switch($P.type){case"update":{if($P.newValue===$P.object[$P.index])return null;var rme=reconcileArrayChildren(tme,ame,[nme[$P.index]],[$P.newValue],[$P.index]);if(!rme)return null;$P.newValue=rme[0]}break;case"splice":{var ime=$P.index,ome=$P.removedCount,lme=$P.added,sme=reconcileArrayChildren(tme,ame,nme.slice(ime,ime+ome),lme,lme.map(function(dme,ume){return ime+ume}));if(!sme)return null;$P.added=sme;for(var cme=ime+ome;cme<nme.length;cme++)nme[cme].setParent(tme,""+(cme+lme.length-ome))}break}return $P},eme.prototype.getSnapshot=function($P){return $P.getChildren().map(function(tme){return tme.snapshot})},eme.prototype.processInitialSnapshot=function($P){var tme=[];return Object.keys($P).forEach(function(ame){tme.push($P[ame].getSnapshot())}),tme},eme.prototype.didChange=function($P){var tme=getStateTreeNode($P.object);switch($P.type){case"update":return void tme.emitPatch({op:"replace",path:""+$P.index,value:$P.newValue.snapshot,oldValue:$P.oldValue?$P.oldValue.snapshot:void 0},tme);case"splice":for(var ame=$P.removedCount-1;ame>=0;ame--)tme.emitPatch({op:"remove",path:""+($P.index+ame),oldValue:$P.removed[ame].snapshot},tme);for(var ame=0;ame<$P.addedCount;ame++)tme.emitPatch({op:"add",path:""+($P.index+ame),value:tme.getChildNode(""+($P.index+ame)).snapshot,oldValue:void 0},tme);return}},eme.prototype.applyPatchLocally=function($P,tme,ame){var nme=$P.storedValue,rme=tme==="-"?nme.length:Number(tme);switch(ame.op){case"replace":nme[rme]=ame.value;break;case"add":nme.splice(rme,0,ame.value);break;case"remove":nme.splice(rme,1);break}},eme.prototype.applySnapshot=function($P,tme){typecheckInternal(this,tme);var ame=$P.storedValue;ame.replace(tme)},eme.prototype.getChildType=function(){return this._subType},eme.prototype.isValidSnapshot=function($P,tme){var ame=this;return isArray$u($P)?flattenTypeErrors($P.map(function(nme,rme){return ame._subType.validate(nme,getContextForPath(tme,""+rme,ame._subType))})):typeCheckFailure(tme,$P,"Value is not an array")},eme.prototype.getDefaultSnapshot=function(){return EMPTY_ARRAY},eme.prototype.removeChild=function($P,tme){$P.storedValue.splice(Number(tme),1)},__decorate([action],eme.prototype,"applySnapshot",null),eme}(ComplexType);function array(x_){return new ArrayType(x_.name+"[]",x_)}function reconcileArrayChildren(x_,eme,$P,tme,ame){for(var nme=!0,rme=0;;rme++){var ime=rme<=tme.length-1,ome=$P[rme],lme=ime?tme[rme]:void 0,sme=""+ame[rme];if(isNode(lme)&&(lme=lme.storedValue),!ome&&!ime)break;if(!ime)nme=!1,$P.splice(rme,1),ome instanceof ObjectNode&&ome.createObservableInstanceIfNeeded(),ome.die(),rme--;else if(ome)if(areSame(ome,lme))$P[rme]=valueAsNode(eme,x_,sme,lme,ome);else{for(var dme=void 0,ume=rme;ume<$P.length;ume++)if(areSame($P[ume],lme)){dme=$P.splice(ume,1)[0];break}nme=!1;var cme=valueAsNode(eme,x_,sme,lme,dme);$P.splice(rme,0,cme)}else{if(isStateTreeNode(lme)&&getStateTreeNode(lme).parent===x_)throw fail$1("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+x_.path+"/"+sme+"', but it lives already at '"+getStateTreeNode(lme).path+"'");nme=!1;var cme=valueAsNode(eme,x_,sme,lme);$P.splice(rme,0,cme)}}return nme?null:$P}function valueAsNode(x_,eme,$P,tme,ame){typecheckInternal(x_,tme);function nme(){if(isStateTreeNode(tme)){var ime=getStateTreeNode(tme);if(ime.assertAlive(EMPTY_OBJECT$1),ime.parent!==null&&ime.parent===eme)return ime.setParent(eme,$P),ime}return ame?x_.reconcile(ame,tme,eme,$P):x_.instantiate(eme,$P,void 0,tme)}var rme=nme();return ame&&ame!==rme&&(ame instanceof ObjectNode&&ame.createObservableInstanceIfNeeded(),ame.die()),rme}function areSame(x_,eme){if(!x_.isAlive)return!1;if(isStateTreeNode(eme)){var $P=getStateTreeNode(eme);return $P.isAlive&&$P===x_}return x_.snapshot===eme?!0:x_ instanceof ObjectNode&&x_.identifier!==null&&x_.identifierAttribute&&isPlainObject$7(eme)&&x_.identifier===normalizeIdentifier(eme[x_.identifierAttribute])&&x_.type.is(eme)}var PRE_PROCESS_SNAPSHOT="preProcessSnapshot",POST_PROCESS_SNAPSHOT="postProcessSnapshot";function objectTypeToString(){return getStateTreeNode(this).toString()}var defaultObjectOptions={name:"AnonymousModel",properties:{},initializers:EMPTY_ARRAY};function toPropertiesObject(x_){return Object.keys(x_).reduce(function(eme,$P){var tme,ame,nme;if($P in Hook)throw fail$1("Hook '"+$P+"' was defined as property. Hooks should be defined as part of the actions");var rme=Object.getOwnPropertyDescriptor(eme,$P);if("get"in rme)throw fail$1("Getters are not supported as properties. Please use views instead");var ime=rme.value;if(ime==null)throw fail$1("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(isPrimitive$1(ime))return Object.assign({},eme,(tme={},tme[$P]=optional(getPrimitiveFactoryFromValue(ime),ime),tme));if(ime instanceof MapType$1)return Object.assign({},eme,(ame={},ame[$P]=optional(ime,{}),ame));if(ime instanceof ArrayType)return Object.assign({},eme,(nme={},nme[$P]=optional(ime,[]),nme));if(isType(ime))return eme;throw fail$1("Invalid type definition for property '"+$P+"', cannot infer a type from a value like '"+ime+"' ("+typeof ime+")")},x_)}var ModelType=function(x_){__extends(eme,x_);function eme($P){var tme=x_.call(this,$P.name||defaultObjectOptions.name)||this;return tme.flags=TypeFlags.Object,tme.named=function(ame){return tme.cloneAndEnhance({name:ame})},tme.props=function(ame){return tme.cloneAndEnhance({properties:ame})},tme.preProcessSnapshot=function(ame){var nme=tme.preProcessor;return nme?tme.cloneAndEnhance({preProcessor:function(rme){return nme(ame(rme))}}):tme.cloneAndEnhance({preProcessor:ame})},tme.postProcessSnapshot=function(ame){var nme=tme.postProcessor;return nme?tme.cloneAndEnhance({postProcessor:function(rme){return ame(nme(rme))}}):tme.cloneAndEnhance({postProcessor:ame})},Object.assign(tme,defaultObjectOptions,$P),tme.properties=toPropertiesObject(tme.properties),tme.properties,tme.propertyNames=Object.keys(tme.properties),tme.identifierAttribute=tme._getIdentifierAttribute(),tme}return eme.prototype._getIdentifierAttribute=function(){var $P=void 0;return this.forAllProps(function(tme,ame){if(ame.flags&TypeFlags.Identifier){if($P)throw fail$1("Cannot define property '"+tme+"' as object identifier, property '"+$P+"' is already defined as identifier property");$P=tme}}),$P},eme.prototype.cloneAndEnhance=function($P){return new eme({name:$P.name||this.name,properties:Object.assign({},this.properties,$P.properties),initializers:this.initializers.concat($P.initializers||[]),preProcessor:$P.preProcessor||this.preProcessor,postProcessor:$P.postProcessor||this.postProcessor})},eme.prototype.actions=function($P){var tme=this,ame=function(nme){return tme.instantiateActions(nme,$P(nme)),nme};return this.cloneAndEnhance({initializers:[ame]})},eme.prototype.instantiateActions=function($P,tme){if(!isPlainObject$7(tme))throw fail$1("actions initializer should return a plain object containing actions");Object.keys(tme).forEach(function(ame){if(ame===PRE_PROCESS_SNAPSHOT)throw fail$1("Cannot define action '"+PRE_PROCESS_SNAPSHOT+"', it should be defined using 'type.preProcessSnapshot(fn)' instead");if(ame===POST_PROCESS_SNAPSHOT)throw fail$1("Cannot define action '"+POST_PROCESS_SNAPSHOT+"', it should be defined using 'type.postProcessSnapshot(fn)' instead");var nme=tme[ame],rme=$P[ame];if(ame in Hook&&rme){var ime=nme;nme=function(){rme.apply(null,arguments),ime.apply(null,arguments)}}var ome=nme.$mst_middleware,lme=nme.bind(tme);lme.$mst_middleware=ome;var sme=createActionInvoker($P,ame,lme);tme[ame]=sme,addHiddenFinalProp($P,ame,sme)})},eme.prototype.volatile=function($P){var tme=this;if(typeof $P!="function")throw fail$1("You passed an "+typeof $P+" to volatile state as an argument, when function is expected");var ame=function(nme){return tme.instantiateVolatileState(nme,$P(nme)),nme};return this.cloneAndEnhance({initializers:[ame]})},eme.prototype.instantiateVolatileState=function($P,tme){if(!isPlainObject$7(tme))throw fail$1("volatile state initializer should return a plain object containing state");set$5($P,tme)},eme.prototype.extend=function($P){var tme=this,ame=function(nme){var rme=$P(nme),ime=rme.actions,ome=rme.views,lme=rme.state,sme=__rest(rme,["actions","views","state"]);for(var cme in sme)throw fail$1("The `extend` function should return an object with a subset of the fields 'actions', 'views' and 'state'. Found invalid key '"+cme+"'");return lme&&tme.instantiateVolatileState(nme,lme),ome&&tme.instantiateViews(nme,ome),ime&&tme.instantiateActions(nme,ime),nme};return this.cloneAndEnhance({initializers:[ame]})},eme.prototype.views=function($P){var tme=this,ame=function(nme){return tme.instantiateViews(nme,$P(nme)),nme};return this.cloneAndEnhance({initializers:[ame]})},eme.prototype.instantiateViews=function($P,tme){if(!isPlainObject$7(tme))throw fail$1("views initializer should return a plain object containing views");Object.keys(tme).forEach(function(ame){var nme=Object.getOwnPropertyDescriptor(tme,ame);if("get"in nme)if(isComputedProp($P,ame)){var rme=getAdministration($P,ame);rme.derivation=nme.get,rme.scope=$P,nme.set&&(rme.setter=action(rme.name+"-setter",nme.set))}else computed($P,ame,nme,!0);else if(typeof nme.value=="function")addHiddenFinalProp($P,ame,nme.value);else throw fail$1("A view member should either be a function or getter based property")})},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=isStateTreeNode(nme)?nme:this.applySnapshotPreProcessor(nme);return createObjectNode(this,$P,tme,ame,rme)},eme.prototype.initializeChildNodes=function($P,tme){tme===void 0&&(tme={});var ame=$P.type,nme={};return ame.forAllProps(function(rme,ime){nme[rme]=ime.instantiate($P,rme,void 0,tme[rme])}),nme},eme.prototype.createNewInstance=function($P){return observable.object($P,EMPTY_OBJECT$1,mobxShallow)},eme.prototype.finalizeNewInstance=function($P,tme){addHiddenFinalProp(tme,"toString",objectTypeToString),this.forAllProps(function(ame){interceptReads(tme,ame,$P.unbox)}),this.initializers.reduce(function(ame,nme){return nme(ame)},tme),intercept(tme,this.willChange),observe$1(tme,this.didChange)},eme.prototype.willChange=function($P){var tme=$P,ame=getStateTreeNode(tme.object),nme=tme.name;ame.assertWritable({subpath:nme});var rme=ame.type.properties[nme];return rme&&(typecheckInternal(rme,tme.newValue),tme.newValue=rme.reconcile(ame.getChildNode(nme),tme.newValue,ame,nme)),tme},eme.prototype.didChange=function($P){var tme=$P,ame=getStateTreeNode(tme.object),nme=ame.type.properties[tme.name];if(nme){var rme=tme.oldValue?tme.oldValue.snapshot:void 0;ame.emitPatch({op:"replace",path:escapeJsonPath(tme.name),value:tme.newValue.snapshot,oldValue:rme},ame)}},eme.prototype.getChildren=function($P){var tme=this,ame=[];return this.forAllProps(function(nme){ame.push(tme.getChildNode($P,nme))}),ame},eme.prototype.getChildNode=function($P,tme){if(!(tme in this.properties))throw fail$1("Not a value property: "+tme);var ame=getAdministration($P.storedValue,tme).value;if(!ame)throw fail$1("Node not available for property "+tme);return ame},eme.prototype.getSnapshot=function($P,tme){var ame=this;tme===void 0&&(tme=!0);var nme={};return this.forAllProps(function(rme,ime){getAtom($P.storedValue,rme).reportObserved(),nme[rme]=ame.getChildNode($P,rme).snapshot}),tme?this.applySnapshotPostProcessor(nme):nme},eme.prototype.processInitialSnapshot=function($P){var tme={};return Object.keys($P).forEach(function(ame){tme[ame]=$P[ame].getSnapshot()}),this.applySnapshotPostProcessor(tme)},eme.prototype.applyPatchLocally=function($P,tme,ame){if(!(ame.op==="replace"||ame.op==="add"))throw fail$1("object does not support operation "+ame.op);$P.storedValue[tme]=ame.value},eme.prototype.applySnapshot=function($P,tme){var ame=this.applySnapshotPreProcessor(tme);typecheckInternal(this,ame),this.forAllProps(function(nme){$P.storedValue[nme]=ame[nme]})},eme.prototype.applySnapshotPreProcessor=function($P){var tme=this.preProcessor;return tme?tme.call(null,$P):$P},eme.prototype.applySnapshotPostProcessor=function($P){var tme=this.postProcessor;return tme?tme.call(null,$P):$P},eme.prototype.getChildType=function($P){return this.properties[$P]},eme.prototype.isValidSnapshot=function($P,tme){var ame=this,nme=this.applySnapshotPreProcessor($P);return isPlainObject$7(nme)?flattenTypeErrors(this.propertyNames.map(function(rme){return ame.properties[rme].validate(nme[rme],getContextForPath(tme,rme,ame.properties[rme]))})):typeCheckFailure(tme,nme,"Value is not a plain object")},eme.prototype.forAllProps=function($P){var tme=this;this.propertyNames.forEach(function(ame){return $P(ame,tme.properties[ame])})},eme.prototype.describe=function(){var $P=this;return"{ "+this.propertyNames.map(function(tme){return tme+": "+$P.properties[tme].describe()}).join("; ")+" }"},eme.prototype.getDefaultSnapshot=function(){return EMPTY_OBJECT$1},eme.prototype.removeChild=function($P,tme){$P.storedValue[tme]=void 0},__decorate([action],eme.prototype,"applySnapshot",null),eme}(ComplexType);function model(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];var $P=typeof x_[0]=="string"?x_.shift():"AnonymousModel",tme=x_.shift()||{};return new ModelType({name:$P,properties:tme})}function compose(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];var $P=typeof x_[0]=="string",tme=$P?x_[0]:"AnonymousModel";return $P&&x_.shift(),x_.reduce(function(ame,nme){return ame.cloneAndEnhance({name:ame.name+"_"+nme.name,properties:nme.properties,initializers:nme.initializers,preProcessor:function(rme){return nme.applySnapshotPreProcessor(ame.applySnapshotPreProcessor(rme))},postProcessor:function(rme){return nme.applySnapshotPostProcessor(ame.applySnapshotPostProcessor(rme))}})}).named(tme)}function isModelType(x_){return isType(x_)&&(x_.flags&TypeFlags.Object)>0}var CoreType=function(x_){__extends(eme,x_);function eme($P,tme,ame,nme){nme===void 0&&(nme=identity$8);var rme=x_.call(this,$P)||this;return rme.flags=tme,rme.checker=ame,rme.initializer=nme,rme.flags=tme,rme}return eme.prototype.describe=function(){return this.name},eme.prototype.instantiate=function($P,tme,ame,nme){return createScalarNode(this,$P,tme,ame,nme)},eme.prototype.createNewInstance=function($P){return this.initializer($P)},eme.prototype.isValidSnapshot=function($P,tme){if(isPrimitive$1($P)&&this.checker($P))return typeCheckSuccess();var ame=this.name==="Date"?"Date or a unix milliseconds timestamp":this.name;return typeCheckFailure(tme,$P,"Value is not a "+ame)},eme}(SimpleType),string=new CoreType("string",TypeFlags.String,function(x_){return typeof x_=="string"}),number=new CoreType("number",TypeFlags.Number,function(x_){return typeof x_=="number"}),integer=new CoreType("integer",TypeFlags.Integer,function(x_){return isInteger$2(x_)}),boolean=new CoreType("boolean",TypeFlags.Boolean,function(x_){return typeof x_=="boolean"}),nullType=new CoreType("null",TypeFlags.Null,function(x_){return x_===null}),undefinedType=new CoreType("undefined",TypeFlags.Undefined,function(x_){return x_===void 0}),_DatePrimitive=new CoreType("Date",TypeFlags.Date,function(x_){return typeof x_=="number"||x_ instanceof Date},function(x_){return x_ instanceof Date?x_:new Date(x_)});_DatePrimitive.getSnapshot=function(x_){return x_.storedValue.getTime()};var DatePrimitive=_DatePrimitive;function getPrimitiveFactoryFromValue(x_){switch(typeof x_){case"string":return string;case"number":return number;case"boolean":return boolean;case"object":if(x_ instanceof Date)return DatePrimitive}throw fail$1("Cannot determine primitive type from value "+x_)}function isPrimitiveType(x_){return isType(x_)&&(x_.flags&(TypeFlags.String|TypeFlags.Number|TypeFlags.Integer|TypeFlags.Boolean|TypeFlags.Date))>0}var Literal=function(x_){__extends(eme,x_);function eme($P){var tme=x_.call(this,JSON.stringify($P))||this;return tme.flags=TypeFlags.Literal,tme.value=$P,tme}return eme.prototype.instantiate=function($P,tme,ame,nme){return createScalarNode(this,$P,tme,ame,nme)},eme.prototype.describe=function(){return JSON.stringify(this.value)},eme.prototype.isValidSnapshot=function($P,tme){return isPrimitive$1($P)&&$P===this.value?typeCheckSuccess():typeCheckFailure(tme,$P,"Value is not a literal "+JSON.stringify(this.value))},eme}(SimpleType);function literal(x_){return new Literal(x_)}var Refinement=function(x_){__extends(eme,x_);function eme($P,tme,ame,nme){var rme=x_.call(this,$P)||this;return rme._subtype=tme,rme._predicate=ame,rme._message=nme,rme}return Object.defineProperty(eme.prototype,"flags",{get:function(){return this._subtype.flags|TypeFlags.Refinement},enumerable:!1,configurable:!0}),eme.prototype.describe=function(){return this.name},eme.prototype.instantiate=function($P,tme,ame,nme){return this._subtype.instantiate($P,tme,ame,nme)},eme.prototype.isAssignableFrom=function($P){return this._subtype.isAssignableFrom($P)},eme.prototype.isValidSnapshot=function($P,tme){var ame=this._subtype.validate($P,tme);if(ame.length>0)return ame;var nme=isStateTreeNode($P)?getStateTreeNode($P).snapshot:$P;return this._predicate(nme)?typeCheckSuccess():typeCheckFailure(tme,$P,this._message($P))},eme.prototype.reconcile=function($P,tme,ame,nme){return this._subtype.reconcile($P,tme,ame,nme)},eme.prototype.getSubTypes=function(){return this._subtype},eme}(BaseType);function refinement(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];var $P=typeof x_[0]=="string"?x_.shift():isType(x_[0])?x_[0].name:null,tme=x_[0],ame=x_[1],nme=x_[2]?x_[2]:function(rme){return"Value does not respect the refinement predicate"};return new Refinement($P,tme,ame,nme)}function enumeration(x_,eme){var $P=typeof x_=="string"?eme:x_,tme=union.apply(void 0,__spread($P.map(function(ame){return literal(""+ame)})));return typeof x_=="string"&&(tme.name=x_),tme}var Union=function(x_){__extends(eme,x_);function eme($P,tme,ame){var nme=x_.call(this,$P)||this;return nme._types=tme,nme._eager=!0,ame=__assign$1({eager:!0,dispatcher:void 0},ame),nme._dispatcher=ame.dispatcher,ame.eager||(nme._eager=!1),nme}return Object.defineProperty(eme.prototype,"flags",{get:function(){var $P=TypeFlags.Union;return this._types.forEach(function(tme){$P|=tme.flags}),$P},enumerable:!1,configurable:!0}),eme.prototype.isAssignableFrom=function($P){return this._types.some(function(tme){return tme.isAssignableFrom($P)})},eme.prototype.describe=function(){return"("+this._types.map(function($P){return $P.describe()}).join(" | ")+")"},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=this.determineType(nme,void 0);if(!rme)throw fail$1("No matching type for union "+this.describe());return rme.instantiate($P,tme,ame,nme)},eme.prototype.reconcile=function($P,tme,ame,nme){var rme=this.determineType(tme,$P.type);if(!rme)throw fail$1("No matching type for union "+this.describe());return rme.reconcile($P,tme,ame,nme)},eme.prototype.determineType=function($P,tme){return this._dispatcher?this._dispatcher($P):tme?tme.is($P)?tme:this._types.filter(function(ame){return ame!==tme}).find(function(ame){return ame.is($P)}):this._types.find(function(ame){return ame.is($P)})},eme.prototype.isValidSnapshot=function($P,tme){if(this._dispatcher)return this._dispatcher($P).validate($P,tme);for(var ame=[],nme=0,rme=0;rme<this._types.length;rme++){var ime=this._types[rme],ome=ime.validate($P,tme);if(ome.length===0){if(this._eager)return typeCheckSuccess();nme++}else ame.push(ome)}return nme===1?typeCheckSuccess():typeCheckFailure(tme,$P,"No type is applicable for the union").concat(flattenTypeErrors(ame))},eme.prototype.getSubTypes=function(){return this._types},eme}(BaseType);function union(x_){for(var eme=[],$P=1;$P<arguments.length;$P++)eme[$P-1]=arguments[$P];var tme=isType(x_)?void 0:x_,ame=isType(x_)?__spread([x_],eme):eme,nme="("+ame.map(function(rme){return rme.name}).join(" | ")+")";return new Union(nme,ame,tme)}var OptionalValue=function(x_){__extends(eme,x_);function eme($P,tme,ame){var nme=x_.call(this,$P.name)||this;return nme._subtype=$P,nme._defaultValue=tme,nme.optionalValues=ame,nme}return Object.defineProperty(eme.prototype,"flags",{get:function(){return this._subtype.flags|TypeFlags.Optional},enumerable:!1,configurable:!0}),eme.prototype.describe=function(){return this._subtype.describe()+"?"},eme.prototype.instantiate=function($P,tme,ame,nme){if(this.optionalValues.indexOf(nme)>=0){var rme=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate($P,tme,ame,rme)}return this._subtype.instantiate($P,tme,ame,nme)},eme.prototype.reconcile=function($P,tme,ame,nme){return this._subtype.reconcile($P,this.optionalValues.indexOf(tme)<0&&this._subtype.is(tme)?tme:this.getDefaultInstanceOrSnapshot(),ame,nme)},eme.prototype.getDefaultInstanceOrSnapshot=function(){var $P=typeof this._defaultValue=="function"?this._defaultValue():this._defaultValue;return typeof this._defaultValue=="function"&&typecheckInternal(this,$P),$P},eme.prototype.isValidSnapshot=function($P,tme){return this.optionalValues.indexOf($P)>=0?typeCheckSuccess():this._subtype.validate($P,tme)},eme.prototype.isAssignableFrom=function($P){return this._subtype.isAssignableFrom($P)},eme.prototype.getSubTypes=function(){return this._subtype},eme}(BaseType);function checkOptionalPreconditions(x_,eme){if(typeof eme!="function"&&isStateTreeNode(eme))throw fail$1("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead")}function optional(x_,eme,$P){return checkOptionalPreconditions(x_,eme),new OptionalValue(x_,eme,$P||undefinedAsOptionalValues)}var undefinedAsOptionalValues=[void 0],optionalUndefinedType=optional(undefinedType,void 0),optionalNullType=optional(nullType,null);function maybe(x_){return union(x_,optionalUndefinedType)}function maybeNull(x_){return union(x_,optionalNullType)}var Late=function(x_){__extends(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return ame._definition=tme,ame}return Object.defineProperty(eme.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|TypeFlags.Late},enumerable:!1,configurable:!0}),eme.prototype.getSubType=function($P){if(!this._subType){var tme=void 0;try{tme=this._definition()}catch(ame){if(ame instanceof ReferenceError)tme=void 0;else throw ame}if($P&&tme===void 0)throw fail$1("Late type seems to be used too early, the definition (still) returns undefined");tme&&(this._subType=tme)}return this._subType},eme.prototype.instantiate=function($P,tme,ame,nme){return this.getSubType(!0).instantiate($P,tme,ame,nme)},eme.prototype.reconcile=function($P,tme,ame,nme){return this.getSubType(!0).reconcile($P,tme,ame,nme)},eme.prototype.describe=function(){var $P=this.getSubType(!1);return $P?$P.name:"<uknown late type>"},eme.prototype.isValidSnapshot=function($P,tme){var ame=this.getSubType(!1);return ame?ame.validate($P,tme):typeCheckSuccess()},eme.prototype.isAssignableFrom=function($P){var tme=this.getSubType(!1);return tme?tme.isAssignableFrom($P):!1},eme.prototype.getSubTypes=function(){var $P=this.getSubType(!1);return $P||cannotDetermineSubtype},eme}(BaseType);function late(x_,eme){var $P=typeof x_=="string"?x_:"late("+x_.toString()+")",tme=typeof x_=="string"?eme:x_;return new Late($P,tme)}var Frozen=function(x_){__extends(eme,x_);function eme($P){var tme=x_.call(this,$P?"frozen("+$P.name+")":"frozen")||this;return tme.subType=$P,tme.flags=TypeFlags.Frozen,tme}return eme.prototype.describe=function(){return"<any immutable value>"},eme.prototype.instantiate=function($P,tme,ame,nme){return createScalarNode(this,$P,tme,ame,nme)},eme.prototype.isValidSnapshot=function($P,tme){return isSerializable($P)?this.subType?this.subType.validate($P,tme):typeCheckSuccess():typeCheckFailure(tme,$P,"Value is not serializable and cannot be frozen")},eme}(SimpleType),untypedFrozenInstance=new Frozen;function frozen(x_){return arguments.length===0?untypedFrozenInstance:isType(x_)?new Frozen(x_):optional(untypedFrozenInstance,x_)}function getInvalidationCause(x_){switch(x_){case Hook.beforeDestroy:return"destroy";case Hook.beforeDetach:return"detach";default:return}}var StoredReference=function(){function x_(eme,$P){if(this.targetType=$P,isValidIdentifier(eme))this.identifier=eme;else if(isStateTreeNode(eme)){var tme=getStateTreeNode(eme);if(!tme.identifierAttribute)throw fail$1("Can only store references with a defined identifier attribute.");var ame=tme.unnormalizedIdentifier;if(ame==null)throw fail$1("Can only store references to tree nodes with a defined identifier.");this.identifier=ame}else throw fail$1("Can only store references to tree nodes or identifiers, got: '"+eme+"'")}return x_.prototype.updateResolvedReference=function(eme){var $P=normalizeIdentifier(this.identifier),tme=eme.root,ame=tme.identifierCache.getLastCacheModificationPerId($P);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==ame){var nme=this.targetType,rme=tme.identifierCache.resolve(nme,$P);if(!rme)throw new InvalidReferenceError("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+eme.path+")");this.resolvedReference={node:rme,lastCacheModification:ame}}},Object.defineProperty(x_.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!1,configurable:!0}),x_}(),InvalidReferenceError=function(x_){__extends(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return Object.setPrototypeOf(tme,eme.prototype),tme}return eme}(Error),BaseReferenceType=function(x_){__extends(eme,x_);function eme($P,tme){var ame=x_.call(this,"reference("+$P.name+")")||this;return ame.targetType=$P,ame.onInvalidated=tme,ame.flags=TypeFlags.Reference,ame}return eme.prototype.describe=function(){return this.name},eme.prototype.isAssignableFrom=function($P){return this.targetType.isAssignableFrom($P)},eme.prototype.isValidSnapshot=function($P,tme){return isValidIdentifier($P)?typeCheckSuccess():typeCheckFailure(tme,$P,"Value is not a valid identifier, which is a string or a number")},eme.prototype.fireInvalidated=function($P,tme,ame,nme){var rme=tme.parent;if(!(!rme||!rme.isAlive)){var ime=rme.storedValue;ime&&this.onInvalidated({cause:$P,parent:ime,invalidTarget:nme?nme.storedValue:void 0,invalidId:ame,replaceRef:function(ome){applyPatch(tme.root.storedValue,{op:"replace",value:ome,path:tme.path})},removeRef:function(){isModelType(rme.type)?this.replaceRef(void 0):applyPatch(tme.root.storedValue,{op:"remove",path:tme.path})}})}},eme.prototype.addTargetNodeWatcher=function($P,tme){var ame=this,nme=this.getValue($P);if(nme){var rme=getStateTreeNode(nme),ime=function(sme,cme){var dme=getInvalidationCause(cme);dme&&ame.fireInvalidated(dme,$P,tme,rme)},ome=rme.registerHook(Hook.beforeDetach,ime),lme=rme.registerHook(Hook.beforeDestroy,ime);return function(){ome(),lme()}}},eme.prototype.watchTargetNodeForInvalidations=function($P,tme,ame){var nme=this;if(this.onInvalidated){var rme;$P.registerHook(Hook.beforeDestroy,function(){rme&&rme()});var ime=function(ome){rme&&rme();var lme=$P.parent,sme=lme&&lme.storedValue;if(lme&&lme.isAlive&&sme){var cme=void 0;ame?cme=!!ame.get(tme,sme):cme=$P.root.identifierCache.has(nme.targetType,normalizeIdentifier(tme)),cme?rme=nme.addTargetNodeWatcher($P,tme):ome||nme.fireInvalidated("invalidSnapshotReference",$P,tme,null)}};$P.state===NodeLifeCycle.FINALIZED?ime(!0):($P.isRoot||$P.root.registerHook(Hook.afterCreationFinalization,function(){$P.parent&&$P.parent.createObservableInstanceIfNeeded()}),$P.registerHook(Hook.afterAttach,function(){ime(!1)}))}},eme}(SimpleType),IdentifierReferenceType=function(x_){__extends(eme,x_);function eme($P,tme){return x_.call(this,$P,tme)||this}return eme.prototype.getValue=function($P){if($P.isAlive){var tme=$P.storedValue;return tme.resolvedValue}},eme.prototype.getSnapshot=function($P){var tme=$P.storedValue;return tme.identifier},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=isStateTreeNode(nme)?getIdentifier(nme):nme,ime=new StoredReference(nme,this.targetType),ome=createScalarNode(this,$P,tme,ame,ime);return ime.node=ome,this.watchTargetNodeForInvalidations(ome,rme,void 0),ome},eme.prototype.reconcile=function($P,tme,ame,nme){if(!$P.isDetaching&&$P.type===this){var rme=isStateTreeNode(tme),ime=$P.storedValue;if(!rme&&ime.identifier===tme||rme&&ime.resolvedValue===tme)return $P.setParent(ame,nme),$P}var ome=this.instantiate(ame,nme,void 0,tme);return $P.die(),ome},eme}(BaseReferenceType),CustomReferenceType=function(x_){__extends(eme,x_);function eme($P,tme,ame){var nme=x_.call(this,$P,ame)||this;return nme.options=tme,nme}return eme.prototype.getValue=function($P){if($P.isAlive){var tme=this.options.get($P.storedValue,$P.parent?$P.parent.storedValue:null);return tme}},eme.prototype.getSnapshot=function($P){return $P.storedValue},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=isStateTreeNode(nme)?this.options.set(nme,$P?$P.storedValue:null):nme,ime=createScalarNode(this,$P,tme,ame,rme);return this.watchTargetNodeForInvalidations(ime,rme,this.options),ime},eme.prototype.reconcile=function($P,tme,ame,nme){var rme=isStateTreeNode(tme)?this.options.set(tme,$P?$P.storedValue:null):tme;if(!$P.isDetaching&&$P.type===this&&$P.storedValue===rme)return $P.setParent(ame,nme),$P;var ime=this.instantiate(ame,nme,void 0,rme);return $P.die(),ime},eme}(BaseReferenceType);function reference(x_,eme){var $P=eme||void 0,tme=eme?eme.onInvalidated:void 0;return $P&&($P.get||$P.set)?new CustomReferenceType(x_,{get:$P.get,set:$P.set},tme):new IdentifierReferenceType(x_,tme)}function safeReference(x_,eme){var $P=reference(x_,__assign$1(__assign$1({},eme),{onInvalidated:function(tme){eme&&eme.onInvalidated&&eme.onInvalidated(tme),tme.removeRef()}}));return eme&&eme.acceptsUndefined===!1?$P:maybe($P)}var BaseIdentifierType=function(x_){__extends(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return ame.validType=tme,ame.flags=TypeFlags.Identifier,ame}return eme.prototype.instantiate=function($P,tme,ame,nme){if(!$P||!($P.type instanceof ModelType))throw fail$1("Identifier types can only be instantiated as direct child of a model type");return createScalarNode(this,$P,tme,ame,nme)},eme.prototype.reconcile=function($P,tme,ame,nme){if($P.storedValue!==tme)throw fail$1("Tried to change identifier from '"+$P.storedValue+"' to '"+tme+"'. Changing identifiers is not allowed.");return $P.setParent(ame,nme),$P},eme.prototype.isValidSnapshot=function($P,tme){return typeof $P!==this.validType?typeCheckFailure(tme,$P,"Value is not a valid "+this.describe()+", expected a "+this.validType):typeCheckSuccess()},eme}(SimpleType),IdentifierType=function(x_){__extends(eme,x_);function eme(){var $P=x_.call(this,"identifier","string")||this;return $P.flags=TypeFlags.Identifier,$P}return eme.prototype.describe=function(){return"identifier"},eme}(BaseIdentifierType),IdentifierNumberType=function(x_){__extends(eme,x_);function eme(){return x_.call(this,"identifierNumber","number")||this}return eme.prototype.getSnapshot=function($P){return $P.storedValue},eme.prototype.describe=function(){return"identifierNumber"},eme}(BaseIdentifierType),identifier=new IdentifierType,identifierNumber=new IdentifierNumberType;function normalizeIdentifier(x_){return""+x_}function isValidIdentifier(x_){return typeof x_=="string"||typeof x_=="number"}function custom(x_){return new CustomType(x_)}var CustomType=function(x_){__extends(eme,x_);function eme($P){var tme=x_.call(this,$P.name)||this;return tme.options=$P,tme.flags=TypeFlags.Custom,tme}return eme.prototype.describe=function(){return this.name},eme.prototype.isValidSnapshot=function($P,tme){if(this.options.isTargetType($P))return typeCheckSuccess();var ame=this.options.getValidationMessage($P);return ame?typeCheckFailure(tme,$P,"Invalid value for type '"+this.name+"': "+ame):typeCheckSuccess()},eme.prototype.getSnapshot=function($P){return this.options.toSnapshot($P.storedValue)},eme.prototype.instantiate=function($P,tme,ame,nme){var rme=this.options.isTargetType(nme)?nme:this.options.fromSnapshot(nme,$P&&$P.root.environment);return createScalarNode(this,$P,tme,ame,rme)},eme.prototype.reconcile=function($P,tme,ame,nme){var rme=!this.options.isTargetType(tme);if(!$P.isDetaching){var ime=$P.type===this&&(rme?tme===$P.snapshot:tme===$P.storedValue);if(ime)return $P.setParent(ame,nme),$P}var ome=rme?this.options.fromSnapshot(tme,ame.root.environment):tme,lme=this.instantiate(ame,nme,void 0,ome);return $P.die(),lme},eme}(SimpleType),types={enumeration,model,compose,custom,reference,safeReference,union,optional,literal,maybe,maybeNull,refinement,string,boolean,number,integer,Date:DatePrimitive,map:map$4,array,frozen,identifier,identifierNumber,late,undefined:undefinedType,null:nullType,snapshotProcessor},baseGetTag$8=_baseGetTag,isObject$j=isObject_1,asyncTag$1="[object AsyncFunction]",funcTag$4="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$a(x_){if(!isObject$j(x_))return!1;var eme=baseGetTag$8(x_);return eme==funcTag$4||eme==genTag$2||eme==asyncTag$1||eme==proxyTag$1}var isFunction_1=isFunction$a;const isFunction$b=getDefaultExportFromCjs(isFunction_1);var root$8=_root,coreJsData$2=root$8["__core-js_shared__"],_coreJsData=coreJsData$2,coreJsData$1=_coreJsData,maskSrcKey$1=function(){var x_=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return x_?"Symbol(src)_1."+x_:""}();function isMasked$2(x_){return!!maskSrcKey$1&&maskSrcKey$1 in x_}var _isMasked=isMasked$2,funcProto$4=Function.prototype,funcToString$4=funcProto$4.toString;function toSource$3(x_){if(x_!=null){try{return funcToString$4.call(x_)}catch{}try{return x_+""}catch{}}return""}var _toSource=toSource$3,isFunction$9=isFunction_1,isMasked$1=_isMasked,isObject$i=isObject_1,toSource$2=_toSource,reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$3=Function.prototype,objectProto$x=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$t=objectProto$x.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$3.call(hasOwnProperty$t).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$2(x_){if(!isObject$i(x_)||isMasked$1(x_))return!1;var eme=isFunction$9(x_)?reIsNative$1:reIsHostCtor$1;return eme.test(toSource$2(x_))}var _baseIsNative=baseIsNative$2;function getValue$3(x_,eme){return x_==null?void 0:x_[eme]}var _getValue=getValue$3,baseIsNative$1=_baseIsNative,getValue$2=_getValue;function getNative$8(x_,eme){var $P=getValue$2(x_,eme);return baseIsNative$1($P)?$P:void 0}var _getNative=getNative$8,getNative$7=_getNative,nativeCreate$5=getNative$7(Object,"create"),_nativeCreate=nativeCreate$5,nativeCreate$4=_nativeCreate;function hashClear$2(){this.__data__=nativeCreate$4?nativeCreate$4(null):{},this.size=0}var _hashClear=hashClear$2;function hashDelete$2(x_){var eme=this.has(x_)&&delete this.__data__[x_];return this.size-=eme?1:0,eme}var _hashDelete=hashDelete$2,nativeCreate$3=_nativeCreate,HASH_UNDEFINED$5="__lodash_hash_undefined__",objectProto$w=Object.prototype,hasOwnProperty$s=objectProto$w.hasOwnProperty;function hashGet$2(x_){var eme=this.__data__;if(nativeCreate$3){var $P=eme[x_];return $P===HASH_UNDEFINED$5?void 0:$P}return hasOwnProperty$s.call(eme,x_)?eme[x_]:void 0}var _hashGet=hashGet$2,nativeCreate$2=_nativeCreate,objectProto$v=Object.prototype,hasOwnProperty$r=objectProto$v.hasOwnProperty;function hashHas$2(x_){var eme=this.__data__;return nativeCreate$2?eme[x_]!==void 0:hasOwnProperty$r.call(eme,x_)}var _hashHas=hashHas$2,nativeCreate$1=_nativeCreate,HASH_UNDEFINED$4="__lodash_hash_undefined__";function hashSet$2(x_,eme){var $P=this.__data__;return this.size+=this.has(x_)?0:1,$P[x_]=nativeCreate$1&&eme===void 0?HASH_UNDEFINED$4:eme,this}var _hashSet=hashSet$2,hashClear$1=_hashClear,hashDelete$1=_hashDelete,hashGet$1=_hashGet,hashHas$1=_hashHas,hashSet$1=_hashSet;function Hash$2(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}Hash$2.prototype.clear=hashClear$1;Hash$2.prototype.delete=hashDelete$1;Hash$2.prototype.get=hashGet$1;Hash$2.prototype.has=hashHas$1;Hash$2.prototype.set=hashSet$1;var _Hash=Hash$2;function listCacheClear$2(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$2;function eq$8(x_,eme){return x_===eme||x_!==x_&&eme!==eme}var eq_1=eq$8,eq$7=eq_1;function assocIndexOf$5(x_,eme){for(var $P=x_.length;$P--;)if(eq$7(x_[$P][0],eme))return $P;return-1}var _assocIndexOf=assocIndexOf$5,assocIndexOf$4=_assocIndexOf,arrayProto$3=Array.prototype,splice$2=arrayProto$3.splice;function listCacheDelete$2(x_){var eme=this.__data__,$P=assocIndexOf$4(eme,x_);if($P<0)return!1;var tme=eme.length-1;return $P==tme?eme.pop():splice$2.call(eme,$P,1),--this.size,!0}var _listCacheDelete=listCacheDelete$2,assocIndexOf$3=_assocIndexOf;function listCacheGet$2(x_){var eme=this.__data__,$P=assocIndexOf$3(eme,x_);return $P<0?void 0:eme[$P][1]}var _listCacheGet=listCacheGet$2,assocIndexOf$2=_assocIndexOf;function listCacheHas$2(x_){return assocIndexOf$2(this.__data__,x_)>-1}var _listCacheHas=listCacheHas$2,assocIndexOf$1=_assocIndexOf;function listCacheSet$2(x_,eme){var $P=this.__data__,tme=assocIndexOf$1($P,x_);return tme<0?(++this.size,$P.push([x_,eme])):$P[tme][1]=eme,this}var _listCacheSet=listCacheSet$2,listCacheClear$1=_listCacheClear,listCacheDelete$1=_listCacheDelete,listCacheGet$1=_listCacheGet,listCacheHas$1=_listCacheHas,listCacheSet$1=_listCacheSet;function ListCache$5(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}ListCache$5.prototype.clear=listCacheClear$1;ListCache$5.prototype.delete=listCacheDelete$1;ListCache$5.prototype.get=listCacheGet$1;ListCache$5.prototype.has=listCacheHas$1;ListCache$5.prototype.set=listCacheSet$1;var _ListCache=ListCache$5,getNative$6=_getNative,root$7=_root,Map$5=getNative$6(root$7,"Map"),_Map=Map$5,Hash$1=_Hash,ListCache$4=_ListCache,Map$4=_Map;function mapCacheClear$2(){this.size=0,this.__data__={hash:new Hash$1,map:new(Map$4||ListCache$4),string:new Hash$1}}var _mapCacheClear=mapCacheClear$2;function isKeyable$2(x_){var eme=typeof x_;return eme=="string"||eme=="number"||eme=="symbol"||eme=="boolean"?x_!=="__proto__":x_===null}var _isKeyable=isKeyable$2,isKeyable$1=_isKeyable;function getMapData$5(x_,eme){var $P=x_.__data__;return isKeyable$1(eme)?$P[typeof eme=="string"?"string":"hash"]:$P.map}var _getMapData=getMapData$5,getMapData$4=_getMapData;function mapCacheDelete$2(x_){var eme=getMapData$4(this,x_).delete(x_);return this.size-=eme?1:0,eme}var _mapCacheDelete=mapCacheDelete$2,getMapData$3=_getMapData;function mapCacheGet$2(x_){return getMapData$3(this,x_).get(x_)}var _mapCacheGet=mapCacheGet$2,getMapData$2=_getMapData;function mapCacheHas$2(x_){return getMapData$2(this,x_).has(x_)}var _mapCacheHas=mapCacheHas$2,getMapData$1=_getMapData;function mapCacheSet$2(x_,eme){var $P=getMapData$1(this,x_),tme=$P.size;return $P.set(x_,eme),this.size+=$P.size==tme?0:1,this}var _mapCacheSet=mapCacheSet$2,mapCacheClear$1=_mapCacheClear,mapCacheDelete$1=_mapCacheDelete,mapCacheGet$1=_mapCacheGet,mapCacheHas$1=_mapCacheHas,mapCacheSet$1=_mapCacheSet;function MapCache$4(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}MapCache$4.prototype.clear=mapCacheClear$1;MapCache$4.prototype.delete=mapCacheDelete$1;MapCache$4.prototype.get=mapCacheGet$1;MapCache$4.prototype.has=mapCacheHas$1;MapCache$4.prototype.set=mapCacheSet$1;var _MapCache=MapCache$4,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(x_){return this.__data__.set(x_,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(x_){return this.__data__.has(x_)}var _setCacheHas=setCacheHas$2,MapCache$3=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$5(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.__data__=new MapCache$3;++eme<$P;)this.add(x_[eme])}SetCache$5.prototype.add=SetCache$5.prototype.push=setCacheAdd$1;SetCache$5.prototype.has=setCacheHas$1;var _SetCache=SetCache$5;function baseFindIndex$3(x_,eme,$P,tme){for(var ame=x_.length,nme=$P+(tme?1:-1);tme?nme--:++nme<ame;)if(eme(x_[nme],nme,x_))return nme;return-1}var _baseFindIndex=baseFindIndex$3;function baseIsNaN$1(x_){return x_!==x_}var _baseIsNaN=baseIsNaN$1;function strictIndexOf$1(x_,eme,$P){for(var tme=$P-1,ame=x_.length;++tme<ame;)if(x_[tme]===eme)return tme;return-1}var _strictIndexOf=strictIndexOf$1,baseFindIndex$2=_baseFindIndex,baseIsNaN=_baseIsNaN,strictIndexOf=_strictIndexOf;function baseIndexOf$2(x_,eme,$P){return eme===eme?strictIndexOf(x_,eme,$P):baseFindIndex$2(x_,baseIsNaN,$P)}var _baseIndexOf=baseIndexOf$2,baseIndexOf$1=_baseIndexOf;function arrayIncludes$3(x_,eme){var $P=x_==null?0:x_.length;return!!$P&&baseIndexOf$1(x_,eme,0)>-1}var _arrayIncludes=arrayIncludes$3;function arrayIncludesWith$3(x_,eme,$P){for(var tme=-1,ame=x_==null?0:x_.length;++tme<ame;)if($P(eme,x_[tme]))return!0;return!1}var _arrayIncludesWith=arrayIncludesWith$3;function cacheHas$5(x_,eme){return x_.has(eme)}var _cacheHas=cacheHas$5,getNative$5=_getNative,root$6=_root,Set$4=getNative$5(root$6,"Set"),_Set=Set$4;function noop$b(){}var noop_1=noop$b;function setToArray$4(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme){$P[++eme]=tme}),$P}var _setToArray=setToArray$4,Set$3=_Set,noop$a=noop_1,setToArray$3=_setToArray,INFINITY$6=1/0,createSet$1=Set$3&&1/setToArray$3(new Set$3([,-0]))[1]==INFINITY$6?function(x_){return new Set$3(x_)}:noop$a,_createSet=createSet$1,SetCache$4=_SetCache,arrayIncludes$2=_arrayIncludes,arrayIncludesWith$2=_arrayIncludesWith,cacheHas$4=_cacheHas,createSet=_createSet,setToArray$2=_setToArray,LARGE_ARRAY_SIZE$3=200;function baseUniq$5(x_,eme,$P){var tme=-1,ame=arrayIncludes$2,nme=x_.length,rme=!0,ime=[],ome=ime;if($P)rme=!1,ame=arrayIncludesWith$2;else if(nme>=LARGE_ARRAY_SIZE$3){var lme=eme?null:createSet(x_);if(lme)return setToArray$2(lme);rme=!1,ame=cacheHas$4,ome=new SetCache$4}else ome=eme?[]:ime;e:for(;++tme<nme;){var sme=x_[tme],cme=eme?eme(sme):sme;if(sme=$P||sme!==0?sme:0,rme&&cme===cme){for(var dme=ome.length;dme--;)if(ome[dme]===cme)continue e;eme&&ome.push(cme),ime.push(sme)}else ame(ome,cme,$P)||(ome!==ime&&ome.push(cme),ime.push(sme))}return ime}var _baseUniq=baseUniq$5,baseUniq$4=_baseUniq;function uniq(x_){return x_&&x_.length?baseUniq$4(x_):[]}var uniq_1=uniq;const uniq$1=getDefaultExportFromCjs(uniq_1);function last$5(x_){var eme=x_==null?0:x_.length;return eme?x_[eme-1]:void 0}var last_1=last$5;const last$6=getDefaultExportFromCjs(last_1);var ListCache$3=_ListCache;function stackClear$2(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$2;function stackDelete$2(x_){var eme=this.__data__,$P=eme.delete(x_);return this.size=eme.size,$P}var _stackDelete=stackDelete$2;function stackGet$2(x_){return this.__data__.get(x_)}var _stackGet=stackGet$2;function stackHas$2(x_){return this.__data__.has(x_)}var _stackHas=stackHas$2,ListCache$2=_ListCache,Map$3=_Map,MapCache$2=_MapCache,LARGE_ARRAY_SIZE$2=200;function stackSet$2(x_,eme){var $P=this.__data__;if($P instanceof ListCache$2){var tme=$P.__data__;if(!Map$3||tme.length<LARGE_ARRAY_SIZE$2-1)return tme.push([x_,eme]),this.size=++$P.size,this;$P=this.__data__=new MapCache$2(tme)}return $P.set(x_,eme),this.size=$P.size,this}var _stackSet=stackSet$2,ListCache$1=_ListCache,stackClear$1=_stackClear,stackDelete$1=_stackDelete,stackGet$1=_stackGet,stackHas$1=_stackHas,stackSet$1=_stackSet;function Stack$5(x_){var eme=this.__data__=new ListCache$1(x_);this.size=eme.size}Stack$5.prototype.clear=stackClear$1;Stack$5.prototype.delete=stackDelete$1;Stack$5.prototype.get=stackGet$1;Stack$5.prototype.has=stackHas$1;Stack$5.prototype.set=stackSet$1;var _Stack=Stack$5,getNative$4=_getNative,defineProperty$5=function(){try{var x_=getNative$4(Object,"defineProperty");return x_({},"",{}),x_}catch{}}(),_defineProperty$6=defineProperty$5,defineProperty$4=_defineProperty$6;function baseAssignValue$6(x_,eme,$P){eme=="__proto__"&&defineProperty$4?defineProperty$4(x_,eme,{configurable:!0,enumerable:!0,value:$P,writable:!0}):x_[eme]=$P}var _baseAssignValue=baseAssignValue$6,baseAssignValue$5=_baseAssignValue,eq$6=eq_1;function assignMergeValue$3(x_,eme,$P){($P!==void 0&&!eq$6(x_[eme],$P)||$P===void 0&&!(eme in x_))&&baseAssignValue$5(x_,eme,$P)}var _assignMergeValue=assignMergeValue$3;function createBaseFor$2(x_){return function(eme,$P,tme){for(var ame=-1,nme=Object(eme),rme=tme(eme),ime=rme.length;ime--;){var ome=rme[x_?ime:++ame];if($P(nme[ome],ome,nme)===!1)break}return eme}}var _createBaseFor=createBaseFor$2,createBaseFor$1=_createBaseFor,baseFor$3=createBaseFor$1(),_baseFor=baseFor$3,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(x_,eme){var $P=_root,tme=eme&&!eme.nodeType&&eme,ame=tme&&!0&&x_&&!x_.nodeType&&x_,nme=ame&&ame.exports===tme,rme=nme?$P.Buffer:void 0,ime=rme?rme.allocUnsafe:void 0;function ome(lme,sme){if(sme)return lme.slice();var cme=lme.length,dme=ime?ime(cme):new lme.constructor(cme);return lme.copy(dme),dme}x_.exports=ome})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports,root$5=_root,Uint8Array$4=root$5.Uint8Array,_Uint8Array=Uint8Array$4,Uint8Array$3=_Uint8Array;function cloneArrayBuffer$4(x_){var eme=new x_.constructor(x_.byteLength);return new Uint8Array$3(eme).set(new Uint8Array$3(x_)),eme}var _cloneArrayBuffer=cloneArrayBuffer$4,cloneArrayBuffer$3=_cloneArrayBuffer;function cloneTypedArray$3(x_,eme){var $P=eme?cloneArrayBuffer$3(x_.buffer):x_.buffer;return new x_.constructor($P,x_.byteOffset,x_.length)}var _cloneTypedArray=cloneTypedArray$3;function copyArray$4(x_,eme){var $P=-1,tme=x_.length;for(eme||(eme=Array(tme));++$P<tme;)eme[$P]=x_[$P];return eme}var _copyArray=copyArray$4,isObject$h=isObject_1,objectCreate$1=Object.create,baseCreate$5=function(){function x_(){}return function(eme){if(!isObject$h(eme))return{};if(objectCreate$1)return objectCreate$1(eme);x_.prototype=eme;var $P=new x_;return x_.prototype=void 0,$P}}(),_baseCreate=baseCreate$5,objectProto$u=Object.prototype;function isPrototype$6(x_){var eme=x_&&x_.constructor,$P=typeof eme=="function"&&eme.prototype||objectProto$u;return x_===$P}var _isPrototype=isPrototype$6,baseCreate$4=_baseCreate,getPrototype$3=_getPrototype,isPrototype$5=_isPrototype;function initCloneObject$3(x_){return typeof x_.constructor=="function"&&!isPrototype$5(x_)?baseCreate$4(getPrototype$3(x_)):{}}var _initCloneObject=initCloneObject$3,baseGetTag$7=_baseGetTag,isObjectLike$c=isObjectLike_1,argsTag$6="[object Arguments]";function baseIsArguments$2(x_){return isObjectLike$c(x_)&&baseGetTag$7(x_)==argsTag$6}var _baseIsArguments=baseIsArguments$2,baseIsArguments$1=_baseIsArguments,isObjectLike$b=isObjectLike_1,objectProto$t=Object.prototype,hasOwnProperty$q=objectProto$t.hasOwnProperty,propertyIsEnumerable$3=objectProto$t.propertyIsEnumerable,isArguments$6=baseIsArguments$1(function(){return arguments}())?baseIsArguments$1:function(x_){return isObjectLike$b(x_)&&hasOwnProperty$q.call(x_,"callee")&&!propertyIsEnumerable$3.call(x_,"callee")},isArguments_1=isArguments$6,isArray$s=Array.isArray,isArray_1=isArray$s;const isArray$t=getDefaultExportFromCjs(isArray_1);var MAX_SAFE_INTEGER$5=9007199254740991;function isLength$4(x_){return typeof x_=="number"&&x_>-1&&x_%1==0&&x_<=MAX_SAFE_INTEGER$5}var isLength_1=isLength$4,isFunction$8=isFunction_1,isLength$3=isLength_1;function isArrayLike$b(x_){return x_!=null&&isLength$3(x_.length)&&!isFunction$8(x_)}var isArrayLike_1=isArrayLike$b,isArrayLike$a=isArrayLike_1,isObjectLike$a=isObjectLike_1;function isArrayLikeObject$6(x_){return isObjectLike$a(x_)&&isArrayLike$a(x_)}var isArrayLikeObject_1=isArrayLikeObject$6,isBuffer$9={exports:{}};function stubFalse$1(){return!1}var stubFalse_1=stubFalse$1;isBuffer$9.exports;(function(x_,eme){var $P=_root,tme=stubFalse_1,ame=eme&&!eme.nodeType&&eme,nme=ame&&!0&&x_&&!x_.nodeType&&x_,rme=nme&&nme.exports===ame,ime=rme?$P.Buffer:void 0,ome=ime?ime.isBuffer:void 0,lme=ome||tme;x_.exports=lme})(isBuffer$9,isBuffer$9.exports);var isBufferExports=isBuffer$9.exports,baseGetTag$6=_baseGetTag,isLength$2=isLength_1,isObjectLike$9=isObjectLike_1,argsTag$5="[object Arguments]",arrayTag$4="[object Array]",boolTag$5="[object Boolean]",dateTag$5="[object Date]",errorTag$5="[object Error]",funcTag$3="[object Function]",mapTag$a="[object Map]",numberTag$6="[object Number]",objectTag$7="[object Object]",regexpTag$6="[object RegExp]",setTag$a="[object Set]",stringTag$6="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$5="[object ArrayBuffer]",dataViewTag$7="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$5]=typedArrayTags$1[arrayTag$4]=typedArrayTags$1[arrayBufferTag$5]=typedArrayTags$1[boolTag$5]=typedArrayTags$1[dataViewTag$7]=typedArrayTags$1[dateTag$5]=typedArrayTags$1[errorTag$5]=typedArrayTags$1[funcTag$3]=typedArrayTags$1[mapTag$a]=typedArrayTags$1[numberTag$6]=typedArrayTags$1[objectTag$7]=typedArrayTags$1[regexpTag$6]=typedArrayTags$1[setTag$a]=typedArrayTags$1[stringTag$6]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(x_){return isObjectLike$9(x_)&&isLength$2(x_.length)&&!!typedArrayTags$1[baseGetTag$6(x_)]}var _baseIsTypedArray=baseIsTypedArray$2;function baseUnary$8(x_){return function(eme){return x_(eme)}}var _baseUnary=baseUnary$8,_nodeUtil={exports:{}};_nodeUtil.exports;(function(x_,eme){var $P=_freeGlobal,tme=eme&&!eme.nodeType&&eme,ame=tme&&!0&&x_&&!x_.nodeType&&x_,nme=ame&&ame.exports===tme,rme=nme&&$P.process,ime=function(){try{var ome=ame&&ame.require&&ame.require("util").types;return ome||rme&&rme.binding&&rme.binding("util")}catch{}}();x_.exports=ime})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray$1=_baseIsTypedArray,baseUnary$7=_baseUnary,nodeUtil$4=_nodeUtilExports,nodeIsTypedArray$1=nodeUtil$4&&nodeUtil$4.isTypedArray,isTypedArray$6=nodeIsTypedArray$1?baseUnary$7(nodeIsTypedArray$1):baseIsTypedArray$1,isTypedArray_1=isTypedArray$6;function safeGet$3(x_,eme){if(!(eme==="constructor"&&typeof x_[eme]=="function")&&eme!="__proto__")return x_[eme]}var _safeGet=safeGet$3,baseAssignValue$4=_baseAssignValue,eq$5=eq_1,objectProto$s=Object.prototype,hasOwnProperty$p=objectProto$s.hasOwnProperty;function assignValue$5(x_,eme,$P){var tme=x_[eme];(!(hasOwnProperty$p.call(x_,eme)&&eq$5(tme,$P))||$P===void 0&&!(eme in x_))&&baseAssignValue$4(x_,eme,$P)}var _assignValue=assignValue$5,assignValue$4=_assignValue,baseAssignValue$3=_baseAssignValue;function copyObject$a(x_,eme,$P,tme){var ame=!$P;$P||($P={});for(var nme=-1,rme=eme.length;++nme<rme;){var ime=eme[nme],ome=tme?tme($P[ime],x_[ime],ime,$P,x_):void 0;ome===void 0&&(ome=x_[ime]),ame?baseAssignValue$3($P,ime,ome):assignValue$4($P,ime,ome)}return $P}var _copyObject=copyObject$a;function baseTimes$3(x_,eme){for(var $P=-1,tme=Array(x_);++$P<x_;)tme[$P]=eme($P);return tme}var _baseTimes=baseTimes$3,MAX_SAFE_INTEGER$4=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$6(x_,eme){var $P=typeof x_;return eme=eme??MAX_SAFE_INTEGER$4,!!eme&&($P=="number"||$P!="symbol"&&reIsUint$1.test(x_))&&x_>-1&&x_%1==0&&x_<eme}var _isIndex=isIndex$6,baseTimes$2=_baseTimes,isArguments$5=isArguments_1,isArray$r=isArray_1,isBuffer$8=isBufferExports,isIndex$5=_isIndex,isTypedArray$5=isTypedArray_1,objectProto$r=Object.prototype,hasOwnProperty$o=objectProto$r.hasOwnProperty;function arrayLikeKeys$3(x_,eme){var $P=isArray$r(x_),tme=!$P&&isArguments$5(x_),ame=!$P&&!tme&&isBuffer$8(x_),nme=!$P&&!tme&&!ame&&isTypedArray$5(x_),rme=$P||tme||ame||nme,ime=rme?baseTimes$2(x_.length,String):[],ome=ime.length;for(var lme in x_)(eme||hasOwnProperty$o.call(x_,lme))&&!(rme&&(lme=="length"||ame&&(lme=="offset"||lme=="parent")||nme&&(lme=="buffer"||lme=="byteLength"||lme=="byteOffset")||isIndex$5(lme,ome)))&&ime.push(lme);return ime}var _arrayLikeKeys=arrayLikeKeys$3;function nativeKeysIn$2(x_){var eme=[];if(x_!=null)for(var $P in Object(x_))eme.push($P);return eme}var _nativeKeysIn=nativeKeysIn$2,isObject$g=isObject_1,isPrototype$4=_isPrototype,nativeKeysIn$1=_nativeKeysIn,objectProto$q=Object.prototype,hasOwnProperty$n=objectProto$q.hasOwnProperty;function baseKeysIn$2(x_){if(!isObject$g(x_))return nativeKeysIn$1(x_);var eme=isPrototype$4(x_),$P=[];for(var tme in x_)tme=="constructor"&&(eme||!hasOwnProperty$n.call(x_,tme))||$P.push(tme);return $P}var _baseKeysIn=baseKeysIn$2,arrayLikeKeys$2=_arrayLikeKeys,baseKeysIn$1=_baseKeysIn,isArrayLike$9=isArrayLike_1;function keysIn$8(x_){return isArrayLike$9(x_)?arrayLikeKeys$2(x_,!0):baseKeysIn$1(x_)}var keysIn_1=keysIn$8,copyObject$9=_copyObject,keysIn$7=keysIn_1;function toPlainObject$2(x_){return copyObject$9(x_,keysIn$7(x_))}var toPlainObject_1=toPlainObject$2,assignMergeValue$2=_assignMergeValue,cloneBuffer$2=_cloneBufferExports,cloneTypedArray$2=_cloneTypedArray,copyArray$3=_copyArray,initCloneObject$2=_initCloneObject,isArguments$4=isArguments_1,isArray$q=isArray_1,isArrayLikeObject$5=isArrayLikeObject_1,isBuffer$7=isBufferExports,isFunction$7=isFunction_1,isObject$f=isObject_1,isPlainObject$6=isPlainObject_1,isTypedArray$4=isTypedArray_1,safeGet$2=_safeGet,toPlainObject$1=toPlainObject_1;function baseMergeDeep$2(x_,eme,$P,tme,ame,nme,rme){var ime=safeGet$2(x_,$P),ome=safeGet$2(eme,$P),lme=rme.get(ome);if(lme){assignMergeValue$2(x_,$P,lme);return}var sme=nme?nme(ime,ome,$P+"",x_,eme,rme):void 0,cme=sme===void 0;if(cme){var dme=isArray$q(ome),ume=!dme&&isBuffer$7(ome),fme=!dme&&!ume&&isTypedArray$4(ome);sme=ome,dme||ume||fme?isArray$q(ime)?sme=ime:isArrayLikeObject$5(ime)?sme=copyArray$3(ime):ume?(cme=!1,sme=cloneBuffer$2(ome,!0)):fme?(cme=!1,sme=cloneTypedArray$2(ome,!0)):sme=[]:isPlainObject$6(ome)||isArguments$4(ome)?(sme=ime,isArguments$4(ime)?sme=toPlainObject$1(ime):(!isObject$f(ime)||isFunction$7(ime))&&(sme=initCloneObject$2(ome))):cme=!1}cme&&(rme.set(ome,sme),ame(sme,ome,tme,nme,rme),rme.delete(ome)),assignMergeValue$2(x_,$P,sme)}var _baseMergeDeep=baseMergeDeep$2,Stack$4=_Stack,assignMergeValue$1=_assignMergeValue,baseFor$2=_baseFor,baseMergeDeep$1=_baseMergeDeep,isObject$e=isObject_1,keysIn$6=keysIn_1,safeGet$1=_safeGet;function baseMerge$3(x_,eme,$P,tme,ame){x_!==eme&&baseFor$2(eme,function(nme,rme){if(ame||(ame=new Stack$4),isObject$e(nme))baseMergeDeep$1(x_,eme,rme,$P,baseMerge$3,tme,ame);else{var ime=tme?tme(safeGet$1(x_,rme),nme,rme+"",x_,eme,ame):void 0;ime===void 0&&(ime=nme),assignMergeValue$1(x_,rme,ime)}},keysIn$6)}var _baseMerge=baseMerge$3;function identity$7(x_){return x_}var identity_1=identity$7;function apply$3(x_,eme,$P){switch($P.length){case 0:return x_.call(eme);case 1:return x_.call(eme,$P[0]);case 2:return x_.call(eme,$P[0],$P[1]);case 3:return x_.call(eme,$P[0],$P[1],$P[2])}return x_.apply(eme,$P)}var _apply=apply$3,apply$2=_apply,nativeMax$7=Math.max;function overRest$3(x_,eme,$P){return eme=nativeMax$7(eme===void 0?x_.length-1:eme,0),function(){for(var tme=arguments,ame=-1,nme=nativeMax$7(tme.length-eme,0),rme=Array(nme);++ame<nme;)rme[ame]=tme[eme+ame];ame=-1;for(var ime=Array(eme+1);++ame<eme;)ime[ame]=tme[ame];return ime[eme]=$P(rme),apply$2(x_,this,ime)}}var _overRest=overRest$3;function constant$2(x_){return function(){return x_}}var constant_1=constant$2,constant$1=constant_1,defineProperty$3=_defineProperty$6,identity$6=identity_1,baseSetToString$2=defineProperty$3?function(x_,eme){return defineProperty$3(x_,"toString",{configurable:!0,enumerable:!1,value:constant$1(eme),writable:!0})}:identity$6,_baseSetToString=baseSetToString$2,HOT_COUNT$1=800,HOT_SPAN$1=16,nativeNow$1=Date.now;function shortOut$2(x_){var eme=0,$P=0;return function(){var tme=nativeNow$1(),ame=HOT_SPAN$1-(tme-$P);if($P=tme,ame>0){if(++eme>=HOT_COUNT$1)return arguments[0]}else eme=0;return x_.apply(void 0,arguments)}}var _shortOut=shortOut$2,baseSetToString$1=_baseSetToString,shortOut$1=_shortOut,setToString$3=shortOut$1(baseSetToString$1),_setToString=setToString$3,identity$5=identity_1,overRest$2=_overRest,setToString$2=_setToString;function baseRest$a(x_,eme){return setToString$2(overRest$2(x_,eme,identity$5),x_+"")}var _baseRest=baseRest$a,eq$4=eq_1,isArrayLike$8=isArrayLike_1,isIndex$4=_isIndex,isObject$d=isObject_1;function isIterateeCall$7(x_,eme,$P){if(!isObject$d($P))return!1;var tme=typeof eme;return(tme=="number"?isArrayLike$8($P)&&isIndex$4(eme,$P.length):tme=="string"&&eme in $P)?eq$4($P[eme],x_):!1}var _isIterateeCall=isIterateeCall$7,baseRest$9=_baseRest,isIterateeCall$6=_isIterateeCall;function createAssigner$6(x_){return baseRest$9(function(eme,$P){var tme=-1,ame=$P.length,nme=ame>1?$P[ame-1]:void 0,rme=ame>2?$P[2]:void 0;for(nme=x_.length>3&&typeof nme=="function"?(ame--,nme):void 0,rme&&isIterateeCall$6($P[0],$P[1],rme)&&(nme=ame<3?void 0:nme,ame=1),eme=Object(eme);++tme<ame;){var ime=$P[tme];ime&&x_(eme,ime,tme,nme)}return eme})}var _createAssigner=createAssigner$6,baseMerge$2=_baseMerge,createAssigner$5=_createAssigner,merge$3=createAssigner$5(function(x_,eme,$P){baseMerge$2(x_,eme,$P)}),merge_1=merge$3;const merge$4=getDefaultExportFromCjs(merge_1);var baseGetTag$5=_baseGetTag,isObjectLike$8=isObjectLike_1,numberTag$5="[object Number]";function isNumber$4(x_){return typeof x_=="number"||isObjectLike$8(x_)&&baseGetTag$5(x_)==numberTag$5}var isNumber_1=isNumber$4;const isNumber$5=getDefaultExportFromCjs(isNumber_1);var isNumber$3=isNumber_1;function isNaN$1(x_){return isNumber$3(x_)&&x_!=+x_}var _isNaN$1=isNaN$1;const isNaN$2=getDefaultExportFromCjs(_isNaN$1);var baseGetTag$4=_baseGetTag,isArray$p=isArray_1,isObjectLike$7=isObjectLike_1,stringTag$5="[object String]";function isString$7(x_){return typeof x_=="string"||!isArray$p(x_)&&isObjectLike$7(x_)&&baseGetTag$4(x_)==stringTag$5}var isString_1=isString$7;const isString$8=getDefaultExportFromCjs(isString_1);var replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(x_){return replace.call(x_,percentTwenties,"+")},RFC3986:function(x_){return String(x_)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$o=Array.isArray,hexTable=function(){for(var x_=[],eme=0;eme<256;++eme)x_.push("%"+((eme<16?"0":"")+eme.toString(16)).toUpperCase());return x_}(),compactQueue=function(eme){for(;eme.length>1;){var $P=eme.pop(),tme=$P.obj[$P.prop];if(isArray$o(tme)){for(var ame=[],nme=0;nme<tme.length;++nme)typeof tme[nme]<"u"&&ame.push(tme[nme]);$P.obj[$P.prop]=ame}}},arrayToObject=function(eme,$P){for(var tme=$P&&$P.plainObjects?Object.create(null):{},ame=0;ame<eme.length;++ame)typeof eme[ame]<"u"&&(tme[ame]=eme[ame]);return tme},merge$2=function x_(eme,$P,tme){if(!$P)return eme;if(typeof $P!="object"){if(isArray$o(eme))eme.push($P);else if(eme&&typeof eme=="object")(tme&&(tme.plainObjects||tme.allowPrototypes)||!has$2.call(Object.prototype,$P))&&(eme[$P]=!0);else return[eme,$P];return eme}if(!eme||typeof eme!="object")return[eme].concat($P);var ame=eme;return isArray$o(eme)&&!isArray$o($P)&&(ame=arrayToObject(eme,tme)),isArray$o(eme)&&isArray$o($P)?($P.forEach(function(nme,rme){if(has$2.call(eme,rme)){var ime=eme[rme];ime&&typeof ime=="object"&&nme&&typeof nme=="object"?eme[rme]=x_(ime,nme,tme):eme.push(nme)}else eme[rme]=nme}),eme):Object.keys($P).reduce(function(nme,rme){var ime=$P[rme];return has$2.call(nme,rme)?nme[rme]=x_(nme[rme],ime,tme):nme[rme]=ime,nme},ame)},assign$2=function(eme,$P){return Object.keys($P).reduce(function(tme,ame){return tme[ame]=$P[ame],tme},eme)},decode$2=function(x_,eme,$P){var tme=x_.replace(/\+/g," ");if($P==="iso-8859-1")return tme.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(tme)}catch{return tme}},encode$2=function(eme,$P,tme,ame,nme){if(eme.length===0)return eme;var rme=eme;if(typeof eme=="symbol"?rme=Symbol.prototype.toString.call(eme):typeof eme!="string"&&(rme=String(eme)),tme==="iso-8859-1")return escape(rme).replace(/%u[0-9a-f]{4}/gi,function(sme){return"%26%23"+parseInt(sme.slice(2),16)+"%3B"});for(var ime="",ome=0;ome<rme.length;++ome){var lme=rme.charCodeAt(ome);if(lme===45||lme===46||lme===95||lme===126||lme>=48&&lme<=57||lme>=65&&lme<=90||lme>=97&&lme<=122||nme===formats$2.RFC1738&&(lme===40||lme===41)){ime+=rme.charAt(ome);continue}if(lme<128){ime=ime+hexTable[lme];continue}if(lme<2048){ime=ime+(hexTable[192|lme>>6]+hexTable[128|lme&63]);continue}if(lme<55296||lme>=57344){ime=ime+(hexTable[224|lme>>12]+hexTable[128|lme>>6&63]+hexTable[128|lme&63]);continue}ome+=1,lme=65536+((lme&1023)<<10|rme.charCodeAt(ome)&1023),ime+=hexTable[240|lme>>18]+hexTable[128|lme>>12&63]+hexTable[128|lme>>6&63]+hexTable[128|lme&63]}return ime},compact$3=function(eme){for(var $P=[{obj:{o:eme},prop:"o"}],tme=[],ame=0;ame<$P.length;++ame)for(var nme=$P[ame],rme=nme.obj[nme.prop],ime=Object.keys(rme),ome=0;ome<ime.length;++ome){var lme=ime[ome],sme=rme[lme];typeof sme=="object"&&sme!==null&&tme.indexOf(sme)===-1&&($P.push({obj:rme,prop:lme}),tme.push(sme))}return compactQueue($P),eme},isRegExp$2=function(eme){return Object.prototype.toString.call(eme)==="[object RegExp]"},isBuffer$6=function(eme){return!eme||typeof eme!="object"?!1:!!(eme.constructor&&eme.constructor.isBuffer&&eme.constructor.isBuffer(eme))},combine=function(eme,$P){return[].concat(eme,$P)},maybeMap=function(eme,$P){if(isArray$o(eme)){for(var tme=[],ame=0;ame<eme.length;ame+=1)tme.push($P(eme[ame]));return tme}return $P(eme)},utils$c={arrayToObject,assign:assign$2,combine,compact:compact$3,decode:decode$2,encode:encode$2,isBuffer:isBuffer$6,isRegExp:isRegExp$2,maybeMap,merge:merge$2},utils$b=utils$c,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(eme){return eme+"[]"},comma:"comma",indices:function(eme,$P){return eme+"["+$P+"]"},repeat:function(eme){return eme}},isArray$n=Array.isArray,split=String.prototype.split,push=Array.prototype.push,pushToArray=function(x_,eme){push.apply(x_,isArray$n(eme)?eme:[eme])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$7={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$b.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(eme){return toISO.call(eme)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(eme){return typeof eme=="string"||typeof eme=="number"||typeof eme=="boolean"||typeof eme=="symbol"||typeof eme=="bigint"},stringify$3=function x_(eme,$P,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme){var pme=eme;if(typeof ime=="function"?pme=ime($P,pme):pme instanceof Date?pme=sme(pme):tme==="comma"&&isArray$n(pme)&&(pme=utils$b.maybeMap(pme,function(xme){return xme instanceof Date?sme(xme):xme})),pme===null){if(ame)return rme&&!ume?rme($P,defaults$7.encoder,fme,"key",cme):$P;pme=""}if(isNonNullishPrimitive(pme)||utils$b.isBuffer(pme)){if(rme){var hme=ume?$P:rme($P,defaults$7.encoder,fme,"key",cme);if(tme==="comma"&&ume){for(var bme=split.call(String(pme),","),mme="",vme=0;vme<bme.length;++vme)mme+=(vme===0?"":",")+dme(rme(bme[vme],defaults$7.encoder,fme,"value",cme));return[dme(hme)+"="+mme]}return[dme(hme)+"="+dme(rme(pme,defaults$7.encoder,fme,"value",cme))]}return[dme($P)+"="+dme(String(pme))]}var gme=[];if(typeof pme>"u")return gme;var yme;if(tme==="comma"&&isArray$n(pme))yme=[{value:pme.length>0?pme.join(",")||null:void 0}];else if(isArray$n(ime))yme=ime;else{var _me=Object.keys(pme);yme=ome?_me.sort(ome):_me}for(var $me=0;$me<yme.length;++$me){var Cme=yme[$me],Sme=typeof Cme=="object"&&typeof Cme.value<"u"?Cme.value:pme[Cme];if(!(nme&&Sme===null)){var Eme=isArray$n(pme)?typeof tme=="function"?tme($P,Cme):$P:$P+(lme?"."+Cme:"["+Cme+"]");pushToArray(gme,x_(Sme,Eme,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme))}}return gme},normalizeStringifyOptions=function(eme){if(!eme)return defaults$7;if(eme.encoder!==null&&typeof eme.encoder<"u"&&typeof eme.encoder!="function")throw new TypeError("Encoder has to be a function.");var $P=eme.charset||defaults$7.charset;if(typeof eme.charset<"u"&&eme.charset!=="utf-8"&&eme.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var tme=formats$1.default;if(typeof eme.format<"u"){if(!has$1.call(formats$1.formatters,eme.format))throw new TypeError("Unknown format option provided.");tme=eme.format}var ame=formats$1.formatters[tme],nme=defaults$7.filter;return(typeof eme.filter=="function"||isArray$n(eme.filter))&&(nme=eme.filter),{addQueryPrefix:typeof eme.addQueryPrefix=="boolean"?eme.addQueryPrefix:defaults$7.addQueryPrefix,allowDots:typeof eme.allowDots>"u"?defaults$7.allowDots:!!eme.allowDots,charset:$P,charsetSentinel:typeof eme.charsetSentinel=="boolean"?eme.charsetSentinel:defaults$7.charsetSentinel,delimiter:typeof eme.delimiter>"u"?defaults$7.delimiter:eme.delimiter,encode:typeof eme.encode=="boolean"?eme.encode:defaults$7.encode,encoder:typeof eme.encoder=="function"?eme.encoder:defaults$7.encoder,encodeValuesOnly:typeof eme.encodeValuesOnly=="boolean"?eme.encodeValuesOnly:defaults$7.encodeValuesOnly,filter:nme,format:tme,formatter:ame,serializeDate:typeof eme.serializeDate=="function"?eme.serializeDate:defaults$7.serializeDate,skipNulls:typeof eme.skipNulls=="boolean"?eme.skipNulls:defaults$7.skipNulls,sort:typeof eme.sort=="function"?eme.sort:null,strictNullHandling:typeof eme.strictNullHandling=="boolean"?eme.strictNullHandling:defaults$7.strictNullHandling}},stringify_1$1=function(x_,eme){var $P=x_,tme=normalizeStringifyOptions(eme),ame,nme;typeof tme.filter=="function"?(nme=tme.filter,$P=nme("",$P)):isArray$n(tme.filter)&&(nme=tme.filter,ame=nme);var rme=[];if(typeof $P!="object"||$P===null)return"";var ime;eme&&eme.arrayFormat in arrayPrefixGenerators?ime=eme.arrayFormat:eme&&"indices"in eme?ime=eme.indices?"indices":"repeat":ime="indices";var ome=arrayPrefixGenerators[ime];ame||(ame=Object.keys($P)),tme.sort&&ame.sort(tme.sort);for(var lme=0;lme<ame.length;++lme){var sme=ame[lme];tme.skipNulls&&$P[sme]===null||pushToArray(rme,stringify$3($P[sme],sme,ome,tme.strictNullHandling,tme.skipNulls,tme.encode?tme.encoder:null,tme.filter,tme.sort,tme.allowDots,tme.serializeDate,tme.format,tme.formatter,tme.encodeValuesOnly,tme.charset))}var cme=rme.join(tme.delimiter),dme=tme.addQueryPrefix===!0?"?":"";return tme.charsetSentinel&&(tme.charset==="iso-8859-1"?dme+="utf8=%26%2310003%3B&":dme+="utf8=%E2%9C%93&"),cme.length>0?dme+cme:""},utils$a=utils$c,has=Object.prototype.hasOwnProperty,isArray$m=Array.isArray,defaults$6={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$a.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(x_){return x_.replace(/&#(\d+);/g,function(eme,$P){return String.fromCharCode(parseInt($P,10))})},parseArrayValue=function(x_,eme){return x_&&typeof x_=="string"&&eme.comma&&x_.indexOf(",")>-1?x_.split(","):x_},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(eme,$P){var tme={},ame=$P.ignoreQueryPrefix?eme.replace(/^\?/,""):eme,nme=$P.parameterLimit===1/0?void 0:$P.parameterLimit,rme=ame.split($P.delimiter,nme),ime=-1,ome,lme=$P.charset;if($P.charsetSentinel)for(ome=0;ome<rme.length;++ome)rme[ome].indexOf("utf8=")===0&&(rme[ome]===charsetSentinel?lme="utf-8":rme[ome]===isoSentinel&&(lme="iso-8859-1"),ime=ome,ome=rme.length);for(ome=0;ome<rme.length;++ome)if(ome!==ime){var sme=rme[ome],cme=sme.indexOf("]="),dme=cme===-1?sme.indexOf("="):cme+1,ume,fme;dme===-1?(ume=$P.decoder(sme,defaults$6.decoder,lme,"key"),fme=$P.strictNullHandling?null:""):(ume=$P.decoder(sme.slice(0,dme),defaults$6.decoder,lme,"key"),fme=utils$a.maybeMap(parseArrayValue(sme.slice(dme+1),$P),function(pme){return $P.decoder(pme,defaults$6.decoder,lme,"value")})),fme&&$P.interpretNumericEntities&&lme==="iso-8859-1"&&(fme=interpretNumericEntities(fme)),sme.indexOf("[]=")>-1&&(fme=isArray$m(fme)?[fme]:fme),has.call(tme,ume)?tme[ume]=utils$a.combine(tme[ume],fme):tme[ume]=fme}return tme},parseObject$1=function(x_,eme,$P,tme){for(var ame=tme?eme:parseArrayValue(eme,$P),nme=x_.length-1;nme>=0;--nme){var rme,ime=x_[nme];if(ime==="[]"&&$P.parseArrays)rme=[].concat(ame);else{rme=$P.plainObjects?Object.create(null):{};var ome=ime.charAt(0)==="["&&ime.charAt(ime.length-1)==="]"?ime.slice(1,-1):ime,lme=parseInt(ome,10);!$P.parseArrays&&ome===""?rme={0:ame}:!isNaN(lme)&&ime!==ome&&String(lme)===ome&&lme>=0&&$P.parseArrays&&lme<=$P.arrayLimit?(rme=[],rme[lme]=ame):ome!=="__proto__"&&(rme[ome]=ame)}ame=rme}return ame},parseKeys=function(eme,$P,tme,ame){if(eme){var nme=tme.allowDots?eme.replace(/\.([^.[]+)/g,"[$1]"):eme,rme=/(\[[^[\]]*])/,ime=/(\[[^[\]]*])/g,ome=tme.depth>0&&rme.exec(nme),lme=ome?nme.slice(0,ome.index):nme,sme=[];if(lme){if(!tme.plainObjects&&has.call(Object.prototype,lme)&&!tme.allowPrototypes)return;sme.push(lme)}for(var cme=0;tme.depth>0&&(ome=ime.exec(nme))!==null&&cme<tme.depth;){if(cme+=1,!tme.plainObjects&&has.call(Object.prototype,ome[1].slice(1,-1))&&!tme.allowPrototypes)return;sme.push(ome[1])}return ome&&sme.push("["+nme.slice(ome.index)+"]"),parseObject$1(sme,$P,tme,ame)}},normalizeParseOptions=function(eme){if(!eme)return defaults$6;if(eme.decoder!==null&&eme.decoder!==void 0&&typeof eme.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof eme.charset<"u"&&eme.charset!=="utf-8"&&eme.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var $P=typeof eme.charset>"u"?defaults$6.charset:eme.charset;return{allowDots:typeof eme.allowDots>"u"?defaults$6.allowDots:!!eme.allowDots,allowPrototypes:typeof eme.allowPrototypes=="boolean"?eme.allowPrototypes:defaults$6.allowPrototypes,arrayLimit:typeof eme.arrayLimit=="number"?eme.arrayLimit:defaults$6.arrayLimit,charset:$P,charsetSentinel:typeof eme.charsetSentinel=="boolean"?eme.charsetSentinel:defaults$6.charsetSentinel,comma:typeof eme.comma=="boolean"?eme.comma:defaults$6.comma,decoder:typeof eme.decoder=="function"?eme.decoder:defaults$6.decoder,delimiter:typeof eme.delimiter=="string"||utils$a.isRegExp(eme.delimiter)?eme.delimiter:defaults$6.delimiter,depth:typeof eme.depth=="number"||eme.depth===!1?+eme.depth:defaults$6.depth,ignoreQueryPrefix:eme.ignoreQueryPrefix===!0,interpretNumericEntities:typeof eme.interpretNumericEntities=="boolean"?eme.interpretNumericEntities:defaults$6.interpretNumericEntities,parameterLimit:typeof eme.parameterLimit=="number"?eme.parameterLimit:defaults$6.parameterLimit,parseArrays:eme.parseArrays!==!1,plainObjects:typeof eme.plainObjects=="boolean"?eme.plainObjects:defaults$6.plainObjects,strictNullHandling:typeof eme.strictNullHandling=="boolean"?eme.strictNullHandling:defaults$6.strictNullHandling}},parse$5=function(x_,eme){var $P=normalizeParseOptions(eme);if(x_===""||x_===null||typeof x_>"u")return $P.plainObjects?Object.create(null):{};for(var tme=typeof x_=="string"?parseValues(x_,$P):x_,ame=$P.plainObjects?Object.create(null):{},nme=Object.keys(tme),rme=0;rme<nme.length;++rme){var ime=nme[rme],ome=parseKeys(ime,tme[ime],$P,typeof x_=="string");ame=utils$a.merge(ame,ome,$P)}return utils$a.compact(ame)},stringify$2=stringify_1$1,parse$4=parse$5,formats=formats$3,lib$5={formats,parse:parse$4,stringify:stringify$2};const qs$1=getDefaultExportFromCjs(lib$5);function lexer$1(x_){for(var eme=[],$P=0;$P<x_.length;){var tme=x_[$P];if(tme==="*"||tme==="+"||tme==="?"){eme.push({type:"MODIFIER",index:$P,value:x_[$P++]});continue}if(tme==="\\"){eme.push({type:"ESCAPED_CHAR",index:$P++,value:x_[$P++]});continue}if(tme==="{"){eme.push({type:"OPEN",index:$P,value:x_[$P++]});continue}if(tme==="}"){eme.push({type:"CLOSE",index:$P,value:x_[$P++]});continue}if(tme===":"){for(var ame="",nme=$P+1;nme<x_.length;){var rme=x_.charCodeAt(nme);if(rme>=48&&rme<=57||rme>=65&&rme<=90||rme>=97&&rme<=122||rme===95){ame+=x_[nme++];continue}break}if(!ame)throw new TypeError("Missing parameter name at "+$P);eme.push({type:"NAME",index:$P,value:ame}),$P=nme;continue}if(tme==="("){var ime=1,ome="",nme=$P+1;if(x_[nme]==="?")throw new TypeError('Pattern cannot start with "?" at '+nme);for(;nme<x_.length;){if(x_[nme]==="\\"){ome+=x_[nme++]+x_[nme++];continue}if(x_[nme]===")"){if(ime--,ime===0){nme++;break}}else if(x_[nme]==="("&&(ime++,x_[nme+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+nme);ome+=x_[nme++]}if(ime)throw new TypeError("Unbalanced pattern at "+$P);if(!ome)throw new TypeError("Missing pattern at "+$P);eme.push({type:"PATTERN",index:$P,value:ome}),$P=nme;continue}eme.push({type:"CHAR",index:$P,value:x_[$P++]})}return eme.push({type:"END",index:$P,value:""}),eme}function parse$3(x_,eme){eme===void 0&&(eme={});for(var $P=lexer$1(x_),tme=eme.prefixes,ame=tme===void 0?"./":tme,nme="[^"+escapeString$1(eme.delimiter||"/#?")+"]+?",rme=[],ime=0,ome=0,lme="",sme=function(_me){if(ome<$P.length&&$P[ome].type===_me)return $P[ome++].value},cme=function(_me){var $me=sme(_me);if($me!==void 0)return $me;var Cme=$P[ome],Sme=Cme.type,Eme=Cme.index;throw new TypeError("Unexpected "+Sme+" at "+Eme+", expected "+_me)},dme=function(){for(var _me="",$me;$me=sme("CHAR")||sme("ESCAPED_CHAR");)_me+=$me;return _me};ome<$P.length;){var ume=sme("CHAR"),fme=sme("NAME"),pme=sme("PATTERN");if(fme||pme){var hme=ume||"";ame.indexOf(hme)===-1&&(lme+=hme,hme=""),lme&&(rme.push(lme),lme=""),rme.push({name:fme||ime++,prefix:hme,suffix:"",pattern:pme||nme,modifier:sme("MODIFIER")||""});continue}var bme=ume||sme("ESCAPED_CHAR");if(bme){lme+=bme;continue}lme&&(rme.push(lme),lme="");var mme=sme("OPEN");if(mme){var hme=dme(),vme=sme("NAME")||"",gme=sme("PATTERN")||"",yme=dme();cme("CLOSE"),rme.push({name:vme||(gme?ime++:""),pattern:vme&&!gme?nme:gme,prefix:hme,suffix:yme,modifier:sme("MODIFIER")||""});continue}cme("END")}return rme}function compile(x_,eme){return tokensToFunction(parse$3(x_,eme),eme)}function tokensToFunction(x_,eme){eme===void 0&&(eme={});var $P=flags(eme),tme=eme.encode,ame=tme===void 0?function(ome){return ome}:tme,nme=eme.validate,rme=nme===void 0?!0:nme,ime=x_.map(function(ome){if(typeof ome=="object")return new RegExp("^(?:"+ome.pattern+")$",$P)});return function(ome){for(var lme="",sme=0;sme<x_.length;sme++){var cme=x_[sme];if(typeof cme=="string"){lme+=cme;continue}var dme=ome?ome[cme.name]:void 0,ume=cme.modifier==="?"||cme.modifier==="*",fme=cme.modifier==="*"||cme.modifier==="+";if(Array.isArray(dme)){if(!fme)throw new TypeError('Expected "'+cme.name+'" to not repeat, but got an array');if(dme.length===0){if(ume)continue;throw new TypeError('Expected "'+cme.name+'" to not be empty')}for(var pme=0;pme<dme.length;pme++){var hme=ame(dme[pme],cme);if(rme&&!ime[sme].test(hme))throw new TypeError('Expected all "'+cme.name+'" to match "'+cme.pattern+'", but got "'+hme+'"');lme+=cme.prefix+hme+cme.suffix}continue}if(typeof dme=="string"||typeof dme=="number"){var hme=ame(String(dme),cme);if(rme&&!ime[sme].test(hme))throw new TypeError('Expected "'+cme.name+'" to match "'+cme.pattern+'", but got "'+hme+'"');lme+=cme.prefix+hme+cme.suffix;continue}if(!ume){var bme=fme?"an array":"a string";throw new TypeError('Expected "'+cme.name+'" to be '+bme)}}return lme}}function escapeString$1(x_){return x_.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(x_){return x_&&x_.sensitive?"":"i"}var removeAccents$2={exports:{}},characterMap={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",Ĳ:"IJ",ĳ:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ŉ:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},chars=Object.keys(characterMap).join("|"),allAccents=new RegExp(chars,"g"),firstAccent=new RegExp(chars,"");function matcher(x_){return characterMap[x_]}var removeAccents=function(x_){return x_.replace(allAccents,matcher)},hasAccents=function(x_){return!!x_.match(firstAccent)};removeAccents$2.exports=removeAccents;removeAccents$2.exports.has=hasAccents;removeAccents$2.exports.remove=removeAccents;var removeAccentsExports=removeAccents$2.exports;const removeAccents$1=getDefaultExportFromCjs(removeAccentsExports);/**
 * @name match-sorter
 * @license MIT license.
 * @copyright (c) 2020 Kent C. Dodds
 * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
 */const rankings={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},defaultBaseSortFn=(x_,eme)=>String(x_.rankedValue).localeCompare(String(eme.rankedValue));function matchSorter(x_,eme,$P){$P===void 0&&($P={});const{keys:tme,threshold:ame=rankings.MATCHES,baseSort:nme=defaultBaseSortFn,sorter:rme=lme=>lme.sort((sme,cme)=>sortRankedValues(sme,cme,nme))}=$P,ime=x_.reduce(ome,[]);return rme(ime).map(lme=>{let{item:sme}=lme;return sme});function ome(lme,sme,cme){const dme=getHighestRanking(sme,tme,eme,$P),{rank:ume,keyThreshold:fme=ame}=dme;return ume>=fme&&lme.push({...dme,item:sme,index:cme}),lme}}matchSorter.rankings=rankings;function getHighestRanking(x_,eme,$P,tme){if(!eme){const nme=x_;return{rankedValue:nme,rank:getMatchRanking(nme,$P,tme),keyIndex:-1,keyThreshold:tme.threshold}}return getAllValuesToRank(x_,eme).reduce((nme,rme,ime)=>{let{rank:ome,rankedValue:lme,keyIndex:sme,keyThreshold:cme}=nme,{itemValue:dme,attributes:ume}=rme,fme=getMatchRanking(dme,$P,tme),pme=lme;const{minRanking:hme,maxRanking:bme,threshold:mme}=ume;return fme<hme&&fme>=rankings.MATCHES?fme=hme:fme>bme&&(fme=bme),fme>ome&&(ome=fme,sme=ime,cme=mme,pme=dme),{rankedValue:pme,rank:ome,keyIndex:sme,keyThreshold:cme}},{rankedValue:x_,rank:rankings.NO_MATCH,keyIndex:-1,keyThreshold:tme.threshold})}function getMatchRanking(x_,eme,$P){return x_=prepareValueForComparison(x_,$P),eme=prepareValueForComparison(eme,$P),eme.length>x_.length?rankings.NO_MATCH:x_===eme?rankings.CASE_SENSITIVE_EQUAL:(x_=x_.toLowerCase(),eme=eme.toLowerCase(),x_===eme?rankings.EQUAL:x_.startsWith(eme)?rankings.STARTS_WITH:x_.includes(` ${eme}`)?rankings.WORD_STARTS_WITH:x_.includes(eme)?rankings.CONTAINS:eme.length===1?rankings.NO_MATCH:getAcronym(x_).includes(eme)?rankings.ACRONYM:getClosenessRanking(x_,eme))}function getAcronym(x_){let eme="";return x_.split(" ").forEach(tme=>{tme.split("-").forEach(nme=>{eme+=nme.substr(0,1)})}),eme}function getClosenessRanking(x_,eme){let $P=0,tme=0;function ame(ome,lme,sme){for(let cme=sme,dme=lme.length;cme<dme;cme++)if(lme[cme]===ome)return $P+=1,cme+1;return-1}function nme(ome){const lme=1/ome,sme=$P/eme.length;return rankings.MATCHES+sme*lme}const rme=ame(eme[0],x_,0);if(rme<0)return rankings.NO_MATCH;tme=rme;for(let ome=1,lme=eme.length;ome<lme;ome++){const sme=eme[ome];if(tme=ame(sme,x_,tme),!(tme>-1))return rankings.NO_MATCH}const ime=tme-rme;return nme(ime)}function sortRankedValues(x_,eme,$P){const{rank:nme,keyIndex:rme}=x_,{rank:ime,keyIndex:ome}=eme;return nme===ime?rme===ome?$P(x_,eme):rme<ome?-1:1:nme>ime?-1:1}function prepareValueForComparison(x_,eme){let{keepDiacritics:$P}=eme;return x_=`${x_}`,$P||(x_=removeAccents$1(x_)),x_}function getItemValues(x_,eme){typeof eme=="object"&&(eme=eme.key);let $P;if(typeof eme=="function")$P=eme(x_);else if(x_==null)$P=null;else if(Object.hasOwnProperty.call(x_,eme))$P=x_[eme];else{if(eme.includes("."))return getNestedValues(eme,x_);$P=null}return $P==null?[]:Array.isArray($P)?$P:[String($P)]}function getNestedValues(x_,eme){const $P=x_.split(".");let tme=[eme];for(let ame=0,nme=$P.length;ame<nme;ame++){const rme=$P[ame];let ime=[];for(let ome=0,lme=tme.length;ome<lme;ome++){const sme=tme[ome];if(sme!=null)if(Object.hasOwnProperty.call(sme,rme)){const cme=sme[rme];cme!=null&&ime.push(cme)}else rme==="*"&&(ime=ime.concat(sme))}tme=ime}return Array.isArray(tme[0])?[].concat(...tme):tme}function getAllValuesToRank(x_,eme){const $P=[];for(let tme=0,ame=eme.length;tme<ame;tme++){const nme=eme[tme],rme=getKeyAttributes(nme),ime=getItemValues(x_,nme);for(let ome=0,lme=ime.length;ome<lme;ome++)$P.push({itemValue:ime[ome],attributes:rme})}return $P}const defaultKeyAttributes={maxRanking:1/0,minRanking:-1/0};function getKeyAttributes(x_){return typeof x_=="string"?defaultKeyAttributes:{...defaultKeyAttributes,...x_}}const scriptRel="modulepreload",assetsURL=function(x_){return"/admin-assets/"+x_},seen={},__vitePreload=function(eme,$P,tme){let ame=Promise.resolve();if($P&&$P.length>0){document.getElementsByTagName("link");const rme=document.querySelector("meta[property=csp-nonce]"),ime=(rme==null?void 0:rme.nonce)||(rme==null?void 0:rme.getAttribute("nonce"));ame=Promise.allSettled($P.map(ome=>{if(ome=assetsURL(ome),ome in seen)return;seen[ome]=!0;const lme=ome.endsWith(".css"),sme=lme?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${ome}"]${sme}`))return;const cme=document.createElement("link");if(cme.rel=lme?"stylesheet":scriptRel,lme||(cme.as="script"),cme.crossOrigin="",cme.href=ome,ime&&cme.setAttribute("nonce",ime),document.head.appendChild(cme),lme)return new Promise((dme,ume)=>{cme.addEventListener("load",dme),cme.addEventListener("error",()=>ume(new Error(`Unable to preload CSS for ${ome}`)))})}))}function nme(rme){const ime=new Event("vite:preloadError",{cancelable:!0});if(ime.payload=rme,window.dispatchEvent(ime),!ime.defaultPrevented)throw rme}return ame.then(rme=>{for(const ime of rme||[])ime.status==="rejected"&&nme(ime.reason);return eme().catch(nme)})};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(x_){hookCallback=x_}function isArray$l(x_){return x_ instanceof Array||Object.prototype.toString.call(x_)==="[object Array]"}function isObject$c(x_){return x_!=null&&Object.prototype.toString.call(x_)==="[object Object]"}function hasOwnProp(x_,eme){return Object.prototype.hasOwnProperty.call(x_,eme)}function isObjectEmpty(x_){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(x_).length===0;var eme;for(eme in x_)if(hasOwnProp(x_,eme))return!1;return!0}function isUndefined$5(x_){return x_===void 0}function isNumber$2(x_){return typeof x_=="number"||Object.prototype.toString.call(x_)==="[object Number]"}function isDate$1(x_){return x_ instanceof Date||Object.prototype.toString.call(x_)==="[object Date]"}function map$3(x_,eme){var $P=[],tme,ame=x_.length;for(tme=0;tme<ame;++tme)$P.push(eme(x_[tme],tme));return $P}function extend$5(x_,eme){for(var $P in eme)hasOwnProp(eme,$P)&&(x_[$P]=eme[$P]);return hasOwnProp(eme,"toString")&&(x_.toString=eme.toString),hasOwnProp(eme,"valueOf")&&(x_.valueOf=eme.valueOf),x_}function createUTC(x_,eme,$P,tme){return createLocalOrUTC(x_,eme,$P,tme,!0).utc()}function defaultParsingFlags(){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 getParsingFlags(x_){return x_._pf==null&&(x_._pf=defaultParsingFlags()),x_._pf}var some$2;Array.prototype.some?some$2=Array.prototype.some:some$2=function(x_){var eme=Object(this),$P=eme.length>>>0,tme;for(tme=0;tme<$P;tme++)if(tme in eme&&x_.call(this,eme[tme],tme,eme))return!0;return!1};function isValid(x_){var eme=null,$P=!1,tme=x_._d&&!isNaN(x_._d.getTime());if(tme&&(eme=getParsingFlags(x_),$P=some$2.call(eme.parsedDateParts,function(ame){return ame!=null}),tme=eme.overflow<0&&!eme.empty&&!eme.invalidEra&&!eme.invalidMonth&&!eme.invalidWeekday&&!eme.weekdayMismatch&&!eme.nullInput&&!eme.invalidFormat&&!eme.userInvalidated&&(!eme.meridiem||eme.meridiem&&$P),x_._strict&&(tme=tme&&eme.charsLeftOver===0&&eme.unusedTokens.length===0&&eme.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(x_))x_._isValid=tme;else return tme;return x_._isValid}function createInvalid(x_){var eme=createUTC(NaN);return x_!=null?extend$5(getParsingFlags(eme),x_):getParsingFlags(eme).userInvalidated=!0,eme}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(x_,eme){var $P,tme,ame,nme=momentProperties.length;if(isUndefined$5(eme._isAMomentObject)||(x_._isAMomentObject=eme._isAMomentObject),isUndefined$5(eme._i)||(x_._i=eme._i),isUndefined$5(eme._f)||(x_._f=eme._f),isUndefined$5(eme._l)||(x_._l=eme._l),isUndefined$5(eme._strict)||(x_._strict=eme._strict),isUndefined$5(eme._tzm)||(x_._tzm=eme._tzm),isUndefined$5(eme._isUTC)||(x_._isUTC=eme._isUTC),isUndefined$5(eme._offset)||(x_._offset=eme._offset),isUndefined$5(eme._pf)||(x_._pf=getParsingFlags(eme)),isUndefined$5(eme._locale)||(x_._locale=eme._locale),nme>0)for($P=0;$P<nme;$P++)tme=momentProperties[$P],ame=eme[tme],isUndefined$5(ame)||(x_[tme]=ame);return x_}function Moment(x_){copyConfig(this,x_),this._d=new Date(x_._d!=null?x_._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(x_){return x_ instanceof Moment||x_!=null&&x_._isAMomentObject!=null}function warn(x_){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+x_)}function deprecate(x_,eme){var $P=!0;return extend$5(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,x_),$P){var tme=[],ame,nme,rme,ime=arguments.length;for(nme=0;nme<ime;nme++){if(ame="",typeof arguments[nme]=="object"){ame+=`
[`+nme+"] ";for(rme in arguments[0])hasOwnProp(arguments[0],rme)&&(ame+=rme+": "+arguments[0][rme]+", ");ame=ame.slice(0,-2)}else ame=arguments[nme];tme.push(ame)}warn(x_+`
Arguments: `+Array.prototype.slice.call(tme).join("")+`
`+new Error().stack),$P=!1}return eme.apply(this,arguments)},eme)}var deprecations={};function deprecateSimple(x_,eme){hooks.deprecationHandler!=null&&hooks.deprecationHandler(x_,eme),deprecations[x_]||(warn(eme),deprecations[x_]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction$6(x_){return typeof Function<"u"&&x_ instanceof Function||Object.prototype.toString.call(x_)==="[object Function]"}function set$4(x_){var eme,$P;for($P in x_)hasOwnProp(x_,$P)&&(eme=x_[$P],isFunction$6(eme)?this[$P]=eme:this["_"+$P]=eme);this._config=x_,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(x_,eme){var $P=extend$5({},x_),tme;for(tme in eme)hasOwnProp(eme,tme)&&(isObject$c(x_[tme])&&isObject$c(eme[tme])?($P[tme]={},extend$5($P[tme],x_[tme]),extend$5($P[tme],eme[tme])):eme[tme]!=null?$P[tme]=eme[tme]:delete $P[tme]);for(tme in x_)hasOwnProp(x_,tme)&&!hasOwnProp(eme,tme)&&isObject$c(x_[tme])&&($P[tme]=extend$5({},$P[tme]));return $P}function Locale(x_){x_!=null&&this.set(x_)}var keys$d;Object.keys?keys$d=Object.keys:keys$d=function(x_){var eme,$P=[];for(eme in x_)hasOwnProp(x_,eme)&&$P.push(eme);return $P};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(x_,eme,$P){var tme=this._calendar[x_]||this._calendar.sameElse;return isFunction$6(tme)?tme.call(eme,$P):tme}function zeroFill(x_,eme,$P){var tme=""+Math.abs(x_),ame=eme-tme.length,nme=x_>=0;return(nme?$P?"+":"":"-")+Math.pow(10,Math.max(0,ame)).toString().substr(1)+tme}var formattingTokens=/(\[[^\[]*\])|(\\)?([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,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(x_,eme,$P,tme){var ame=tme;typeof tme=="string"&&(ame=function(){return this[tme]()}),x_&&(formatTokenFunctions[x_]=ame),eme&&(formatTokenFunctions[eme[0]]=function(){return zeroFill(ame.apply(this,arguments),eme[1],eme[2])}),$P&&(formatTokenFunctions[$P]=function(){return this.localeData().ordinal(ame.apply(this,arguments),x_)})}function removeFormattingTokens(x_){return x_.match(/\[[\s\S]/)?x_.replace(/^\[|\]$/g,""):x_.replace(/\\/g,"")}function makeFormatFunction(x_){var eme=x_.match(formattingTokens),$P,tme;for($P=0,tme=eme.length;$P<tme;$P++)formatTokenFunctions[eme[$P]]?eme[$P]=formatTokenFunctions[eme[$P]]:eme[$P]=removeFormattingTokens(eme[$P]);return function(ame){var nme="",rme;for(rme=0;rme<tme;rme++)nme+=isFunction$6(eme[rme])?eme[rme].call(ame,x_):eme[rme];return nme}}function formatMoment(x_,eme){return x_.isValid()?(eme=expandFormat(eme,x_.localeData()),formatFunctions[eme]=formatFunctions[eme]||makeFormatFunction(eme),formatFunctions[eme](x_)):x_.localeData().invalidDate()}function expandFormat(x_,eme){var $P=5;function tme(ame){return eme.longDateFormat(ame)||ame}for(localFormattingTokens.lastIndex=0;$P>=0&&localFormattingTokens.test(x_);)x_=x_.replace(localFormattingTokens,tme),localFormattingTokens.lastIndex=0,$P-=1;return x_}var defaultLongDateFormat={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 longDateFormat(x_){var eme=this._longDateFormat[x_],$P=this._longDateFormat[x_.toUpperCase()];return eme||!$P?eme:(this._longDateFormat[x_]=$P.match(formattingTokens).map(function(tme){return tme==="MMMM"||tme==="MM"||tme==="DD"||tme==="dddd"?tme.slice(1):tme}).join(""),this._longDateFormat[x_])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(x_){return this._ordinal.replace("%d",x_)}var defaultRelativeTime={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 relativeTime(x_,eme,$P,tme){var ame=this._relativeTime[$P];return isFunction$6(ame)?ame(x_,eme,$P,tme):ame.replace(/%d/i,x_)}function pastFuture(x_,eme){var $P=this._relativeTime[x_>0?"future":"past"];return isFunction$6($P)?$P(eme):$P.replace(/%s/i,eme)}var aliases={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 normalizeUnits(x_){return typeof x_=="string"?aliases[x_]||aliases[x_.toLowerCase()]:void 0}function normalizeObjectUnits(x_){var eme={},$P,tme;for(tme in x_)hasOwnProp(x_,tme)&&($P=normalizeUnits(tme),$P&&(eme[$P]=x_[tme]));return eme}var priorities={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 getPrioritizedUnits(x_){var eme=[],$P;for($P in x_)hasOwnProp(x_,$P)&&eme.push({unit:$P,priority:priorities[$P]});return eme.sort(function(tme,ame){return tme.priority-ame.priority}),eme}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[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,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(x_,eme,$P){regexes[x_]=isFunction$6(eme)?eme:function(tme,ame){return tme&&$P?$P:eme}}function getParseRegexForToken(x_,eme){return hasOwnProp(regexes,x_)?regexes[x_](eme._strict,eme._locale):new RegExp(unescapeFormat(x_))}function unescapeFormat(x_){return regexEscape(x_.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(eme,$P,tme,ame,nme){return $P||tme||ame||nme}))}function regexEscape(x_){return x_.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(x_){return x_<0?Math.ceil(x_)||0:Math.floor(x_)}function toInt(x_){var eme=+x_,$P=0;return eme!==0&&isFinite(eme)&&($P=absFloor(eme)),$P}var tokens={};function addParseToken(x_,eme){var $P,tme=eme,ame;for(typeof x_=="string"&&(x_=[x_]),isNumber$2(eme)&&(tme=function(nme,rme){rme[eme]=toInt(nme)}),ame=x_.length,$P=0;$P<ame;$P++)tokens[x_[$P]]=tme}function addWeekParseToken(x_,eme){addParseToken(x_,function($P,tme,ame,nme){ame._w=ame._w||{},eme($P,ame._w,ame,nme)})}function addTimeToArrayFromToken(x_,eme,$P){eme!=null&&hasOwnProp(tokens,x_)&&tokens[x_](eme,$P._a,$P,x_)}function isLeapYear(x_){return x_%4===0&&x_%100!==0||x_%400===0}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;addFormatToken("Y",0,0,function(){var x_=this.year();return x_<=9999?zeroFill(x_,4):"+"+x_});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(x_,eme){eme[YEAR]=x_.length===2?hooks.parseTwoDigitYear(x_):toInt(x_)});addParseToken("YY",function(x_,eme){eme[YEAR]=hooks.parseTwoDigitYear(x_)});addParseToken("Y",function(x_,eme){eme[YEAR]=parseInt(x_,10)});function daysInYear(x_){return isLeapYear(x_)?366:365}hooks.parseTwoDigitYear=function(x_){return toInt(x_)+(toInt(x_)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(x_,eme){return function($P){return $P!=null?(set$1$1(this,x_,$P),hooks.updateOffset(this,eme),this):get$7(this,x_)}}function get$7(x_,eme){if(!x_.isValid())return NaN;var $P=x_._d,tme=x_._isUTC;switch(eme){case"Milliseconds":return tme?$P.getUTCMilliseconds():$P.getMilliseconds();case"Seconds":return tme?$P.getUTCSeconds():$P.getSeconds();case"Minutes":return tme?$P.getUTCMinutes():$P.getMinutes();case"Hours":return tme?$P.getUTCHours():$P.getHours();case"Date":return tme?$P.getUTCDate():$P.getDate();case"Day":return tme?$P.getUTCDay():$P.getDay();case"Month":return tme?$P.getUTCMonth():$P.getMonth();case"FullYear":return tme?$P.getUTCFullYear():$P.getFullYear();default:return NaN}}function set$1$1(x_,eme,$P){var tme,ame,nme,rme,ime;if(!(!x_.isValid()||isNaN($P))){switch(tme=x_._d,ame=x_._isUTC,eme){case"Milliseconds":return void(ame?tme.setUTCMilliseconds($P):tme.setMilliseconds($P));case"Seconds":return void(ame?tme.setUTCSeconds($P):tme.setSeconds($P));case"Minutes":return void(ame?tme.setUTCMinutes($P):tme.setMinutes($P));case"Hours":return void(ame?tme.setUTCHours($P):tme.setHours($P));case"Date":return void(ame?tme.setUTCDate($P):tme.setDate($P));case"FullYear":break;default:return}nme=$P,rme=x_.month(),ime=x_.date(),ime=ime===29&&rme===1&&!isLeapYear(nme)?28:ime,ame?tme.setUTCFullYear(nme,rme,ime):tme.setFullYear(nme,rme,ime)}}function stringGet(x_){return x_=normalizeUnits(x_),isFunction$6(this[x_])?this[x_]():this}function stringSet(x_,eme){if(typeof x_=="object"){x_=normalizeObjectUnits(x_);var $P=getPrioritizedUnits(x_),tme,ame=$P.length;for(tme=0;tme<ame;tme++)this[$P[tme].unit](x_[$P[tme].unit])}else if(x_=normalizeUnits(x_),isFunction$6(this[x_]))return this[x_](eme);return this}function mod(x_,eme){return(x_%eme+eme)%eme}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(x_){var eme;for(eme=0;eme<this.length;++eme)if(this[eme]===x_)return eme;return-1};function daysInMonth(x_,eme){if(isNaN(x_)||isNaN(eme))return NaN;var $P=mod(eme,12);return x_+=(eme-$P)/12,$P===1?isLeapYear(x_)?29:28:31-$P%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(x_){return this.localeData().monthsShort(this,x_)});addFormatToken("MMMM",0,0,function(x_){return this.localeData().months(this,x_)});addRegexToken("M",match1to2,match1to2NoLeadingZero);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(x_,eme){return eme.monthsShortRegex(x_)});addRegexToken("MMMM",function(x_,eme){return eme.monthsRegex(x_)});addParseToken(["M","MM"],function(x_,eme){eme[MONTH]=toInt(x_)-1});addParseToken(["MMM","MMMM"],function(x_,eme,$P,tme){var ame=$P._locale.monthsParse(x_,tme,$P._strict);ame!=null?eme[MONTH]=ame:getParsingFlags($P).invalidMonth=x_});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(x_,eme){return x_?isArray$l(this._months)?this._months[x_.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(eme)?"format":"standalone"][x_.month()]:isArray$l(this._months)?this._months:this._months.standalone}function localeMonthsShort(x_,eme){return x_?isArray$l(this._monthsShort)?this._monthsShort[x_.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(eme)?"format":"standalone"][x_.month()]:isArray$l(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(x_,eme,$P){var tme,ame,nme,rme=x_.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],tme=0;tme<12;++tme)nme=createUTC([2e3,tme]),this._shortMonthsParse[tme]=this.monthsShort(nme,"").toLocaleLowerCase(),this._longMonthsParse[tme]=this.months(nme,"").toLocaleLowerCase();return $P?eme==="MMM"?(ame=indexOf.call(this._shortMonthsParse,rme),ame!==-1?ame:null):(ame=indexOf.call(this._longMonthsParse,rme),ame!==-1?ame:null):eme==="MMM"?(ame=indexOf.call(this._shortMonthsParse,rme),ame!==-1?ame:(ame=indexOf.call(this._longMonthsParse,rme),ame!==-1?ame:null)):(ame=indexOf.call(this._longMonthsParse,rme),ame!==-1?ame:(ame=indexOf.call(this._shortMonthsParse,rme),ame!==-1?ame:null))}function localeMonthsParse(x_,eme,$P){var tme,ame,nme;if(this._monthsParseExact)return handleStrictParse.call(this,x_,eme,$P);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),tme=0;tme<12;tme++){if(ame=createUTC([2e3,tme]),$P&&!this._longMonthsParse[tme]&&(this._longMonthsParse[tme]=new RegExp("^"+this.months(ame,"").replace(".","")+"$","i"),this._shortMonthsParse[tme]=new RegExp("^"+this.monthsShort(ame,"").replace(".","")+"$","i")),!$P&&!this._monthsParse[tme]&&(nme="^"+this.months(ame,"")+"|^"+this.monthsShort(ame,""),this._monthsParse[tme]=new RegExp(nme.replace(".",""),"i")),$P&&eme==="MMMM"&&this._longMonthsParse[tme].test(x_))return tme;if($P&&eme==="MMM"&&this._shortMonthsParse[tme].test(x_))return tme;if(!$P&&this._monthsParse[tme].test(x_))return tme}}function setMonth(x_,eme){if(!x_.isValid())return x_;if(typeof eme=="string"){if(/^\d+$/.test(eme))eme=toInt(eme);else if(eme=x_.localeData().monthsParse(eme),!isNumber$2(eme))return x_}var $P=eme,tme=x_.date();return tme=tme<29?tme:Math.min(tme,daysInMonth(x_.year(),$P)),x_._isUTC?x_._d.setUTCMonth($P,tme):x_._d.setMonth($P,tme),x_}function getSetMonth(x_){return x_!=null?(setMonth(this,x_),hooks.updateOffset(this,!0),this):get$7(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(x_){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),x_?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&x_?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(x_){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),x_?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&x_?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function x_(ome,lme){return lme.length-ome.length}var eme=[],$P=[],tme=[],ame,nme,rme,ime;for(ame=0;ame<12;ame++)nme=createUTC([2e3,ame]),rme=regexEscape(this.monthsShort(nme,"")),ime=regexEscape(this.months(nme,"")),eme.push(rme),$P.push(ime),tme.push(ime),tme.push(rme);eme.sort(x_),$P.sort(x_),tme.sort(x_),this._monthsRegex=new RegExp("^("+tme.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+$P.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+eme.join("|")+")","i")}function createDate(x_,eme,$P,tme,ame,nme,rme){var ime;return x_<100&&x_>=0?(ime=new Date(x_+400,eme,$P,tme,ame,nme,rme),isFinite(ime.getFullYear())&&ime.setFullYear(x_)):ime=new Date(x_,eme,$P,tme,ame,nme,rme),ime}function createUTCDate(x_){var eme,$P;return x_<100&&x_>=0?($P=Array.prototype.slice.call(arguments),$P[0]=x_+400,eme=new Date(Date.UTC.apply(null,$P)),isFinite(eme.getUTCFullYear())&&eme.setUTCFullYear(x_)):eme=new Date(Date.UTC.apply(null,arguments)),eme}function firstWeekOffset(x_,eme,$P){var tme=7+eme-$P,ame=(7+createUTCDate(x_,0,tme).getUTCDay()-eme)%7;return-ame+tme-1}function dayOfYearFromWeeks(x_,eme,$P,tme,ame){var nme=(7+$P-tme)%7,rme=firstWeekOffset(x_,tme,ame),ime=1+7*(eme-1)+nme+rme,ome,lme;return ime<=0?(ome=x_-1,lme=daysInYear(ome)+ime):ime>daysInYear(x_)?(ome=x_+1,lme=ime-daysInYear(x_)):(ome=x_,lme=ime),{year:ome,dayOfYear:lme}}function weekOfYear(x_,eme,$P){var tme=firstWeekOffset(x_.year(),eme,$P),ame=Math.floor((x_.dayOfYear()-tme-1)/7)+1,nme,rme;return ame<1?(rme=x_.year()-1,nme=ame+weeksInYear(rme,eme,$P)):ame>weeksInYear(x_.year(),eme,$P)?(nme=ame-weeksInYear(x_.year(),eme,$P),rme=x_.year()+1):(rme=x_.year(),nme=ame),{week:nme,year:rme}}function weeksInYear(x_,eme,$P){var tme=firstWeekOffset(x_,eme,$P),ame=firstWeekOffset(x_+1,eme,$P);return(daysInYear(x_)-tme+ame)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(x_,eme,$P,tme){eme[tme.substr(0,1)]=toInt(x_)});function localeWeek(x_){return weekOfYear(x_,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(x_){var eme=this.localeData().week(this);return x_==null?eme:this.add((x_-eme)*7,"d")}function getSetISOWeek(x_){var eme=weekOfYear(this,1,4).week;return x_==null?eme:this.add((x_-eme)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(x_){return this.localeData().weekdaysMin(this,x_)});addFormatToken("ddd",0,0,function(x_){return this.localeData().weekdaysShort(this,x_)});addFormatToken("dddd",0,0,function(x_){return this.localeData().weekdays(this,x_)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(x_,eme){return eme.weekdaysMinRegex(x_)});addRegexToken("ddd",function(x_,eme){return eme.weekdaysShortRegex(x_)});addRegexToken("dddd",function(x_,eme){return eme.weekdaysRegex(x_)});addWeekParseToken(["dd","ddd","dddd"],function(x_,eme,$P,tme){var ame=$P._locale.weekdaysParse(x_,tme,$P._strict);ame!=null?eme.d=ame:getParsingFlags($P).invalidWeekday=x_});addWeekParseToken(["d","e","E"],function(x_,eme,$P,tme){eme[tme]=toInt(x_)});function parseWeekday(x_,eme){return typeof x_!="string"?x_:isNaN(x_)?(x_=eme.weekdaysParse(x_),typeof x_=="number"?x_:null):parseInt(x_,10)}function parseIsoWeekday(x_,eme){return typeof x_=="string"?eme.weekdaysParse(x_)%7||7:isNaN(x_)?null:x_}function shiftWeekdays(x_,eme){return x_.slice(eme,7).concat(x_.slice(0,eme))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(x_,eme){var $P=isArray$l(this._weekdays)?this._weekdays:this._weekdays[x_&&x_!==!0&&this._weekdays.isFormat.test(eme)?"format":"standalone"];return x_===!0?shiftWeekdays($P,this._week.dow):x_?$P[x_.day()]:$P}function localeWeekdaysShort(x_){return x_===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):x_?this._weekdaysShort[x_.day()]:this._weekdaysShort}function localeWeekdaysMin(x_){return x_===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):x_?this._weekdaysMin[x_.day()]:this._weekdaysMin}function handleStrictParse$1(x_,eme,$P){var tme,ame,nme,rme=x_.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],tme=0;tme<7;++tme)nme=createUTC([2e3,1]).day(tme),this._minWeekdaysParse[tme]=this.weekdaysMin(nme,"").toLocaleLowerCase(),this._shortWeekdaysParse[tme]=this.weekdaysShort(nme,"").toLocaleLowerCase(),this._weekdaysParse[tme]=this.weekdays(nme,"").toLocaleLowerCase();return $P?eme==="dddd"?(ame=indexOf.call(this._weekdaysParse,rme),ame!==-1?ame:null):eme==="ddd"?(ame=indexOf.call(this._shortWeekdaysParse,rme),ame!==-1?ame:null):(ame=indexOf.call(this._minWeekdaysParse,rme),ame!==-1?ame:null):eme==="dddd"?(ame=indexOf.call(this._weekdaysParse,rme),ame!==-1||(ame=indexOf.call(this._shortWeekdaysParse,rme),ame!==-1)?ame:(ame=indexOf.call(this._minWeekdaysParse,rme),ame!==-1?ame:null)):eme==="ddd"?(ame=indexOf.call(this._shortWeekdaysParse,rme),ame!==-1||(ame=indexOf.call(this._weekdaysParse,rme),ame!==-1)?ame:(ame=indexOf.call(this._minWeekdaysParse,rme),ame!==-1?ame:null)):(ame=indexOf.call(this._minWeekdaysParse,rme),ame!==-1||(ame=indexOf.call(this._weekdaysParse,rme),ame!==-1)?ame:(ame=indexOf.call(this._shortWeekdaysParse,rme),ame!==-1?ame:null))}function localeWeekdaysParse(x_,eme,$P){var tme,ame,nme;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,x_,eme,$P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),tme=0;tme<7;tme++){if(ame=createUTC([2e3,1]).day(tme),$P&&!this._fullWeekdaysParse[tme]&&(this._fullWeekdaysParse[tme]=new RegExp("^"+this.weekdays(ame,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[tme]=new RegExp("^"+this.weekdaysShort(ame,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[tme]=new RegExp("^"+this.weekdaysMin(ame,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[tme]||(nme="^"+this.weekdays(ame,"")+"|^"+this.weekdaysShort(ame,"")+"|^"+this.weekdaysMin(ame,""),this._weekdaysParse[tme]=new RegExp(nme.replace(".",""),"i")),$P&&eme==="dddd"&&this._fullWeekdaysParse[tme].test(x_))return tme;if($P&&eme==="ddd"&&this._shortWeekdaysParse[tme].test(x_))return tme;if($P&&eme==="dd"&&this._minWeekdaysParse[tme].test(x_))return tme;if(!$P&&this._weekdaysParse[tme].test(x_))return tme}}function getSetDayOfWeek(x_){if(!this.isValid())return x_!=null?this:NaN;var eme=get$7(this,"Day");return x_!=null?(x_=parseWeekday(x_,this.localeData()),this.add(x_-eme,"d")):eme}function getSetLocaleDayOfWeek(x_){if(!this.isValid())return x_!=null?this:NaN;var eme=(this.day()+7-this.localeData()._week.dow)%7;return x_==null?eme:this.add(x_-eme,"d")}function getSetISODayOfWeek(x_){if(!this.isValid())return x_!=null?this:NaN;if(x_!=null){var eme=parseIsoWeekday(x_,this.localeData());return this.day(this.day()%7?eme:eme-7)}else return this.day()||7}function weekdaysRegex(x_){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),x_?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&x_?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(x_){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),x_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&x_?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(x_){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),x_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&x_?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function x_(sme,cme){return cme.length-sme.length}var eme=[],$P=[],tme=[],ame=[],nme,rme,ime,ome,lme;for(nme=0;nme<7;nme++)rme=createUTC([2e3,1]).day(nme),ime=regexEscape(this.weekdaysMin(rme,"")),ome=regexEscape(this.weekdaysShort(rme,"")),lme=regexEscape(this.weekdays(rme,"")),eme.push(ime),$P.push(ome),tme.push(lme),ame.push(ime),ame.push(ome),ame.push(lme);eme.sort(x_),$P.sort(x_),tme.sort(x_),ame.sort(x_),this._weekdaysRegex=new RegExp("^("+ame.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+tme.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+$P.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+eme.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(x_,eme){addFormatToken(x_,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),eme)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(x_,eme){return eme._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(x_,eme,$P){var tme=toInt(x_);eme[HOUR]=tme===24?0:tme});addParseToken(["a","A"],function(x_,eme,$P){$P._isPm=$P._locale.isPM(x_),$P._meridiem=x_});addParseToken(["h","hh"],function(x_,eme,$P){eme[HOUR]=toInt(x_),getParsingFlags($P).bigHour=!0});addParseToken("hmm",function(x_,eme,$P){var tme=x_.length-2;eme[HOUR]=toInt(x_.substr(0,tme)),eme[MINUTE]=toInt(x_.substr(tme)),getParsingFlags($P).bigHour=!0});addParseToken("hmmss",function(x_,eme,$P){var tme=x_.length-4,ame=x_.length-2;eme[HOUR]=toInt(x_.substr(0,tme)),eme[MINUTE]=toInt(x_.substr(tme,2)),eme[SECOND]=toInt(x_.substr(ame)),getParsingFlags($P).bigHour=!0});addParseToken("Hmm",function(x_,eme,$P){var tme=x_.length-2;eme[HOUR]=toInt(x_.substr(0,tme)),eme[MINUTE]=toInt(x_.substr(tme))});addParseToken("Hmmss",function(x_,eme,$P){var tme=x_.length-4,ame=x_.length-2;eme[HOUR]=toInt(x_.substr(0,tme)),eme[MINUTE]=toInt(x_.substr(tme,2)),eme[SECOND]=toInt(x_.substr(ame))});function localeIsPM(x_){return(x_+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(x_,eme,$P){return x_>11?$P?"pm":"PM":$P?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales$1={},localeFamilies={},globalLocale;function commonPrefix(x_,eme){var $P,tme=Math.min(x_.length,eme.length);for($P=0;$P<tme;$P+=1)if(x_[$P]!==eme[$P])return $P;return tme}function normalizeLocale(x_){return x_&&x_.toLowerCase().replace("_","-")}function chooseLocale(x_){for(var eme=0,$P,tme,ame,nme;eme<x_.length;){for(nme=normalizeLocale(x_[eme]).split("-"),$P=nme.length,tme=normalizeLocale(x_[eme+1]),tme=tme?tme.split("-"):null;$P>0;){if(ame=loadLocale(nme.slice(0,$P).join("-")),ame)return ame;if(tme&&tme.length>=$P&&commonPrefix(nme,tme)>=$P-1)break;$P--}eme++}return globalLocale}function isLocaleNameSane(x_){return!!(x_&&x_.match("^[^/\\\\]*$"))}function loadLocale(x_){var eme=null,$P;if(locales$1[x_]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(x_))try{eme=globalLocale._abbr,$P=require,$P("./locale/"+x_),getSetGlobalLocale(eme)}catch{locales$1[x_]=null}return locales$1[x_]}function getSetGlobalLocale(x_,eme){var $P;return x_&&(isUndefined$5(eme)?$P=getLocale(x_):$P=defineLocale(x_,eme),$P?globalLocale=$P:typeof console<"u"&&console.warn&&console.warn("Locale "+x_+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(x_,eme){if(eme!==null){var $P,tme=baseConfig;if(eme.abbr=x_,locales$1[x_]!=null)deprecateSimple("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."),tme=locales$1[x_]._config;else if(eme.parentLocale!=null)if(locales$1[eme.parentLocale]!=null)tme=locales$1[eme.parentLocale]._config;else if($P=loadLocale(eme.parentLocale),$P!=null)tme=$P._config;else return localeFamilies[eme.parentLocale]||(localeFamilies[eme.parentLocale]=[]),localeFamilies[eme.parentLocale].push({name:x_,config:eme}),null;return locales$1[x_]=new Locale(mergeConfigs(tme,eme)),localeFamilies[x_]&&localeFamilies[x_].forEach(function(ame){defineLocale(ame.name,ame.config)}),getSetGlobalLocale(x_),locales$1[x_]}else return delete locales$1[x_],null}function updateLocale(x_,eme){if(eme!=null){var $P,tme,ame=baseConfig;locales$1[x_]!=null&&locales$1[x_].parentLocale!=null?locales$1[x_].set(mergeConfigs(locales$1[x_]._config,eme)):(tme=loadLocale(x_),tme!=null&&(ame=tme._config),eme=mergeConfigs(ame,eme),tme==null&&(eme.abbr=x_),$P=new Locale(eme),$P.parentLocale=locales$1[x_],locales$1[x_]=$P),getSetGlobalLocale(x_)}else locales$1[x_]!=null&&(locales$1[x_].parentLocale!=null?(locales$1[x_]=locales$1[x_].parentLocale,x_===getSetGlobalLocale()&&getSetGlobalLocale(x_)):locales$1[x_]!=null&&delete locales$1[x_]);return locales$1[x_]}function getLocale(x_){var eme;if(x_&&x_._locale&&x_._locale._abbr&&(x_=x_._locale._abbr),!x_)return globalLocale;if(!isArray$l(x_)){if(eme=loadLocale(x_),eme)return eme;x_=[x_]}return chooseLocale(x_)}function listLocales(){return keys$d(locales$1)}function checkOverflow(x_){var eme,$P=x_._a;return $P&&getParsingFlags(x_).overflow===-2&&(eme=$P[MONTH]<0||$P[MONTH]>11?MONTH:$P[DATE]<1||$P[DATE]>daysInMonth($P[YEAR],$P[MONTH])?DATE:$P[HOUR]<0||$P[HOUR]>24||$P[HOUR]===24&&($P[MINUTE]!==0||$P[SECOND]!==0||$P[MILLISECOND]!==0)?HOUR:$P[MINUTE]<0||$P[MINUTE]>59?MINUTE:$P[SECOND]<0||$P[SECOND]>59?SECOND:$P[MILLISECOND]<0||$P[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(x_)._overflowDayOfYear&&(eme<YEAR||eme>DATE)&&(eme=DATE),getParsingFlags(x_)._overflowWeeks&&eme===-1&&(eme=WEEK),getParsingFlags(x_)._overflowWeekday&&eme===-1&&(eme=WEEKDAY),getParsingFlags(x_).overflow=eme),x_}var extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(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}))$/,obsOffsets={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 configFromISO(x_){var eme,$P,tme=x_._i,ame=extendedIsoRegex.exec(tme)||basicIsoRegex.exec(tme),nme,rme,ime,ome,lme=isoDates.length,sme=isoTimes.length;if(ame){for(getParsingFlags(x_).iso=!0,eme=0,$P=lme;eme<$P;eme++)if(isoDates[eme][1].exec(ame[1])){rme=isoDates[eme][0],nme=isoDates[eme][2]!==!1;break}if(rme==null){x_._isValid=!1;return}if(ame[3]){for(eme=0,$P=sme;eme<$P;eme++)if(isoTimes[eme][1].exec(ame[3])){ime=(ame[2]||" ")+isoTimes[eme][0];break}if(ime==null){x_._isValid=!1;return}}if(!nme&&ime!=null){x_._isValid=!1;return}if(ame[4])if(tzRegex.exec(ame[4]))ome="Z";else{x_._isValid=!1;return}x_._f=rme+(ime||"")+(ome||""),configFromStringAndFormat(x_)}else x_._isValid=!1}function extractFromRFC2822Strings(x_,eme,$P,tme,ame,nme){var rme=[untruncateYear(x_),defaultLocaleMonthsShort.indexOf(eme),parseInt($P,10),parseInt(tme,10),parseInt(ame,10)];return nme&&rme.push(parseInt(nme,10)),rme}function untruncateYear(x_){var eme=parseInt(x_,10);return eme<=49?2e3+eme:eme<=999?1900+eme:eme}function preprocessRFC2822(x_){return x_.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(x_,eme,$P){if(x_){var tme=defaultLocaleWeekdaysShort.indexOf(x_),ame=new Date(eme[0],eme[1],eme[2]).getDay();if(tme!==ame)return getParsingFlags($P).weekdayMismatch=!0,$P._isValid=!1,!1}return!0}function calculateOffset(x_,eme,$P){if(x_)return obsOffsets[x_];if(eme)return 0;var tme=parseInt($P,10),ame=tme%100,nme=(tme-ame)/100;return nme*60+ame}function configFromRFC2822(x_){var eme=rfc2822.exec(preprocessRFC2822(x_._i)),$P;if(eme){if($P=extractFromRFC2822Strings(eme[4],eme[3],eme[2],eme[5],eme[6],eme[7]),!checkWeekday(eme[1],$P,x_))return;x_._a=$P,x_._tzm=calculateOffset(eme[8],eme[9],eme[10]),x_._d=createUTCDate.apply(null,x_._a),x_._d.setUTCMinutes(x_._d.getUTCMinutes()-x_._tzm),getParsingFlags(x_).rfc2822=!0}else x_._isValid=!1}function configFromString(x_){var eme=aspNetJsonRegex.exec(x_._i);if(eme!==null){x_._d=new Date(+eme[1]);return}if(configFromISO(x_),x_._isValid===!1)delete x_._isValid;else return;if(configFromRFC2822(x_),x_._isValid===!1)delete x_._isValid;else return;x_._strict?x_._isValid=!1:hooks.createFromInputFallback(x_)}hooks.createFromInputFallback=deprecate("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(x_){x_._d=new Date(x_._i+(x_._useUTC?" UTC":""))});function defaults$5(x_,eme,$P){return x_??eme??$P}function currentDateArray(x_){var eme=new Date(hooks.now());return x_._useUTC?[eme.getUTCFullYear(),eme.getUTCMonth(),eme.getUTCDate()]:[eme.getFullYear(),eme.getMonth(),eme.getDate()]}function configFromArray(x_){var eme,$P,tme=[],ame,nme,rme;if(!x_._d){for(ame=currentDateArray(x_),x_._w&&x_._a[DATE]==null&&x_._a[MONTH]==null&&dayOfYearFromWeekInfo(x_),x_._dayOfYear!=null&&(rme=defaults$5(x_._a[YEAR],ame[YEAR]),(x_._dayOfYear>daysInYear(rme)||x_._dayOfYear===0)&&(getParsingFlags(x_)._overflowDayOfYear=!0),$P=createUTCDate(rme,0,x_._dayOfYear),x_._a[MONTH]=$P.getUTCMonth(),x_._a[DATE]=$P.getUTCDate()),eme=0;eme<3&&x_._a[eme]==null;++eme)x_._a[eme]=tme[eme]=ame[eme];for(;eme<7;eme++)x_._a[eme]=tme[eme]=x_._a[eme]==null?eme===2?1:0:x_._a[eme];x_._a[HOUR]===24&&x_._a[MINUTE]===0&&x_._a[SECOND]===0&&x_._a[MILLISECOND]===0&&(x_._nextDay=!0,x_._a[HOUR]=0),x_._d=(x_._useUTC?createUTCDate:createDate).apply(null,tme),nme=x_._useUTC?x_._d.getUTCDay():x_._d.getDay(),x_._tzm!=null&&x_._d.setUTCMinutes(x_._d.getUTCMinutes()-x_._tzm),x_._nextDay&&(x_._a[HOUR]=24),x_._w&&typeof x_._w.d<"u"&&x_._w.d!==nme&&(getParsingFlags(x_).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(x_){var eme,$P,tme,ame,nme,rme,ime,ome,lme;eme=x_._w,eme.GG!=null||eme.W!=null||eme.E!=null?(nme=1,rme=4,$P=defaults$5(eme.GG,x_._a[YEAR],weekOfYear(createLocal(),1,4).year),tme=defaults$5(eme.W,1),ame=defaults$5(eme.E,1),(ame<1||ame>7)&&(ome=!0)):(nme=x_._locale._week.dow,rme=x_._locale._week.doy,lme=weekOfYear(createLocal(),nme,rme),$P=defaults$5(eme.gg,x_._a[YEAR],lme.year),tme=defaults$5(eme.w,lme.week),eme.d!=null?(ame=eme.d,(ame<0||ame>6)&&(ome=!0)):eme.e!=null?(ame=eme.e+nme,(eme.e<0||eme.e>6)&&(ome=!0)):ame=nme),tme<1||tme>weeksInYear($P,nme,rme)?getParsingFlags(x_)._overflowWeeks=!0:ome!=null?getParsingFlags(x_)._overflowWeekday=!0:(ime=dayOfYearFromWeeks($P,tme,ame,nme,rme),x_._a[YEAR]=ime.year,x_._dayOfYear=ime.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(x_){if(x_._f===hooks.ISO_8601){configFromISO(x_);return}if(x_._f===hooks.RFC_2822){configFromRFC2822(x_);return}x_._a=[],getParsingFlags(x_).empty=!0;var eme=""+x_._i,$P,tme,ame,nme,rme,ime=eme.length,ome=0,lme,sme;for(ame=expandFormat(x_._f,x_._locale).match(formattingTokens)||[],sme=ame.length,$P=0;$P<sme;$P++)nme=ame[$P],tme=(eme.match(getParseRegexForToken(nme,x_))||[])[0],tme&&(rme=eme.substr(0,eme.indexOf(tme)),rme.length>0&&getParsingFlags(x_).unusedInput.push(rme),eme=eme.slice(eme.indexOf(tme)+tme.length),ome+=tme.length),formatTokenFunctions[nme]?(tme?getParsingFlags(x_).empty=!1:getParsingFlags(x_).unusedTokens.push(nme),addTimeToArrayFromToken(nme,tme,x_)):x_._strict&&!tme&&getParsingFlags(x_).unusedTokens.push(nme);getParsingFlags(x_).charsLeftOver=ime-ome,eme.length>0&&getParsingFlags(x_).unusedInput.push(eme),x_._a[HOUR]<=12&&getParsingFlags(x_).bigHour===!0&&x_._a[HOUR]>0&&(getParsingFlags(x_).bigHour=void 0),getParsingFlags(x_).parsedDateParts=x_._a.slice(0),getParsingFlags(x_).meridiem=x_._meridiem,x_._a[HOUR]=meridiemFixWrap(x_._locale,x_._a[HOUR],x_._meridiem),lme=getParsingFlags(x_).era,lme!==null&&(x_._a[YEAR]=x_._locale.erasConvertYear(lme,x_._a[YEAR])),configFromArray(x_),checkOverflow(x_)}function meridiemFixWrap(x_,eme,$P){var tme;return $P==null?eme:x_.meridiemHour!=null?x_.meridiemHour(eme,$P):(x_.isPM!=null&&(tme=x_.isPM($P),tme&&eme<12&&(eme+=12),!tme&&eme===12&&(eme=0)),eme)}function configFromStringAndArray(x_){var eme,$P,tme,ame,nme,rme,ime=!1,ome=x_._f.length;if(ome===0){getParsingFlags(x_).invalidFormat=!0,x_._d=new Date(NaN);return}for(ame=0;ame<ome;ame++)nme=0,rme=!1,eme=copyConfig({},x_),x_._useUTC!=null&&(eme._useUTC=x_._useUTC),eme._f=x_._f[ame],configFromStringAndFormat(eme),isValid(eme)&&(rme=!0),nme+=getParsingFlags(eme).charsLeftOver,nme+=getParsingFlags(eme).unusedTokens.length*10,getParsingFlags(eme).score=nme,ime?nme<tme&&(tme=nme,$P=eme):(tme==null||nme<tme||rme)&&(tme=nme,$P=eme,rme&&(ime=!0));extend$5(x_,$P||eme)}function configFromObject(x_){if(!x_._d){var eme=normalizeObjectUnits(x_._i),$P=eme.day===void 0?eme.date:eme.day;x_._a=map$3([eme.year,eme.month,$P,eme.hour,eme.minute,eme.second,eme.millisecond],function(tme){return tme&&parseInt(tme,10)}),configFromArray(x_)}}function createFromConfig(x_){var eme=new Moment(checkOverflow(prepareConfig(x_)));return eme._nextDay&&(eme.add(1,"d"),eme._nextDay=void 0),eme}function prepareConfig(x_){var eme=x_._i,$P=x_._f;return x_._locale=x_._locale||getLocale(x_._l),eme===null||$P===void 0&&eme===""?createInvalid({nullInput:!0}):(typeof eme=="string"&&(x_._i=eme=x_._locale.preparse(eme)),isMoment(eme)?new Moment(checkOverflow(eme)):(isDate$1(eme)?x_._d=eme:isArray$l($P)?configFromStringAndArray(x_):$P?configFromStringAndFormat(x_):configFromInput(x_),isValid(x_)||(x_._d=null),x_))}function configFromInput(x_){var eme=x_._i;isUndefined$5(eme)?x_._d=new Date(hooks.now()):isDate$1(eme)?x_._d=new Date(eme.valueOf()):typeof eme=="string"?configFromString(x_):isArray$l(eme)?(x_._a=map$3(eme.slice(0),function($P){return parseInt($P,10)}),configFromArray(x_)):isObject$c(eme)?configFromObject(x_):isNumber$2(eme)?x_._d=new Date(eme):hooks.createFromInputFallback(x_)}function createLocalOrUTC(x_,eme,$P,tme,ame){var nme={};return(eme===!0||eme===!1)&&(tme=eme,eme=void 0),($P===!0||$P===!1)&&(tme=$P,$P=void 0),(isObject$c(x_)&&isObjectEmpty(x_)||isArray$l(x_)&&x_.length===0)&&(x_=void 0),nme._isAMomentObject=!0,nme._useUTC=nme._isUTC=ame,nme._l=$P,nme._i=x_,nme._f=eme,nme._strict=tme,createFromConfig(nme)}function createLocal(x_,eme,$P,tme){return createLocalOrUTC(x_,eme,$P,tme,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x_=createLocal.apply(null,arguments);return this.isValid()&&x_.isValid()?x_<this?this:x_:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var x_=createLocal.apply(null,arguments);return this.isValid()&&x_.isValid()?x_>this?this:x_:createInvalid()});function pickBy$2(x_,eme){var $P,tme;if(eme.length===1&&isArray$l(eme[0])&&(eme=eme[0]),!eme.length)return createLocal();for($P=eme[0],tme=1;tme<eme.length;++tme)(!eme[tme].isValid()||eme[tme][x_]($P))&&($P=eme[tme]);return $P}function min(){var x_=[].slice.call(arguments,0);return pickBy$2("isBefore",x_)}function max(){var x_=[].slice.call(arguments,0);return pickBy$2("isAfter",x_)}var now$2=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(x_){var eme,$P=!1,tme,ame=ordering.length;for(eme in x_)if(hasOwnProp(x_,eme)&&!(indexOf.call(ordering,eme)!==-1&&(x_[eme]==null||!isNaN(x_[eme]))))return!1;for(tme=0;tme<ame;++tme)if(x_[ordering[tme]]){if($P)return!1;parseFloat(x_[ordering[tme]])!==toInt(x_[ordering[tme]])&&($P=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(x_){var eme=normalizeObjectUnits(x_),$P=eme.year||0,tme=eme.quarter||0,ame=eme.month||0,nme=eme.week||eme.isoWeek||0,rme=eme.day||0,ime=eme.hour||0,ome=eme.minute||0,lme=eme.second||0,sme=eme.millisecond||0;this._isValid=isDurationValid(eme),this._milliseconds=+sme+lme*1e3+ome*6e4+ime*1e3*60*60,this._days=+rme+nme*7,this._months=+ame+tme*3+$P*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(x_){return x_ instanceof Duration}function absRound(x_){return x_<0?Math.round(-1*x_)*-1:Math.round(x_)}function compareArrays(x_,eme,$P){var tme=Math.min(x_.length,eme.length),ame=Math.abs(x_.length-eme.length),nme=0,rme;for(rme=0;rme<tme;rme++)toInt(x_[rme])!==toInt(eme[rme])&&nme++;return nme+ame}function offset$1(x_,eme){addFormatToken(x_,0,0,function(){var $P=this.utcOffset(),tme="+";return $P<0&&($P=-$P,tme="-"),tme+zeroFill(~~($P/60),2)+eme+zeroFill(~~$P%60,2)})}offset$1("Z",":");offset$1("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(x_,eme,$P){$P._useUTC=!0,$P._tzm=offsetFromString(matchShortOffset,x_)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(x_,eme){var $P=(eme||"").match(x_),tme,ame,nme;return $P===null?null:(tme=$P[$P.length-1]||[],ame=(tme+"").match(chunkOffset)||["-",0,0],nme=+(ame[1]*60)+toInt(ame[2]),nme===0?0:ame[0]==="+"?nme:-nme)}function cloneWithOffset(x_,eme){var $P,tme;return eme._isUTC?($P=eme.clone(),tme=(isMoment(x_)||isDate$1(x_)?x_.valueOf():createLocal(x_).valueOf())-$P.valueOf(),$P._d.setTime($P._d.valueOf()+tme),hooks.updateOffset($P,!1),$P):createLocal(x_).local()}function getDateOffset(x_){return-Math.round(x_._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(x_,eme,$P){var tme=this._offset||0,ame;if(!this.isValid())return x_!=null?this:NaN;if(x_!=null){if(typeof x_=="string"){if(x_=offsetFromString(matchShortOffset,x_),x_===null)return this}else Math.abs(x_)<16&&!$P&&(x_=x_*60);return!this._isUTC&&eme&&(ame=getDateOffset(this)),this._offset=x_,this._isUTC=!0,ame!=null&&this.add(ame,"m"),tme!==x_&&(!eme||this._changeInProgress?addSubtract(this,createDuration(x_-tme,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?tme:getDateOffset(this)}function getSetZone(x_,eme){return x_!=null?(typeof x_!="string"&&(x_=-x_),this.utcOffset(x_,eme),this):-this.utcOffset()}function setOffsetToUTC(x_){return this.utcOffset(0,x_)}function setOffsetToLocal(x_){return this._isUTC&&(this.utcOffset(0,x_),this._isUTC=!1,x_&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var x_=offsetFromString(matchOffset,this._i);x_!=null?this.utcOffset(x_):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(x_){return this.isValid()?(x_=x_?createLocal(x_).utcOffset():0,(this.utcOffset()-x_)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined$5(this._isDSTShifted))return this._isDSTShifted;var x_={},eme;return copyConfig(x_,this),x_=prepareConfig(x_),x_._a?(eme=x_._isUTC?createUTC(x_._a):createLocal(x_._a),this._isDSTShifted=this.isValid()&&compareArrays(x_._a,eme.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(x_,eme){var $P=x_,tme=null,ame,nme,rme;return isDuration(x_)?$P={ms:x_._milliseconds,d:x_._days,M:x_._months}:isNumber$2(x_)||!isNaN(+x_)?($P={},eme?$P[eme]=+x_:$P.milliseconds=+x_):(tme=aspNetRegex.exec(x_))?(ame=tme[1]==="-"?-1:1,$P={y:0,d:toInt(tme[DATE])*ame,h:toInt(tme[HOUR])*ame,m:toInt(tme[MINUTE])*ame,s:toInt(tme[SECOND])*ame,ms:toInt(absRound(tme[MILLISECOND]*1e3))*ame}):(tme=isoRegex.exec(x_))?(ame=tme[1]==="-"?-1:1,$P={y:parseIso(tme[2],ame),M:parseIso(tme[3],ame),w:parseIso(tme[4],ame),d:parseIso(tme[5],ame),h:parseIso(tme[6],ame),m:parseIso(tme[7],ame),s:parseIso(tme[8],ame)}):$P==null?$P={}:typeof $P=="object"&&("from"in $P||"to"in $P)&&(rme=momentsDifference(createLocal($P.from),createLocal($P.to)),$P={},$P.ms=rme.milliseconds,$P.M=rme.months),nme=new Duration($P),isDuration(x_)&&hasOwnProp(x_,"_locale")&&(nme._locale=x_._locale),isDuration(x_)&&hasOwnProp(x_,"_isValid")&&(nme._isValid=x_._isValid),nme}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(x_,eme){var $P=x_&&parseFloat(x_.replace(",","."));return(isNaN($P)?0:$P)*eme}function positiveMomentsDifference(x_,eme){var $P={};return $P.months=eme.month()-x_.month()+(eme.year()-x_.year())*12,x_.clone().add($P.months,"M").isAfter(eme)&&--$P.months,$P.milliseconds=+eme-+x_.clone().add($P.months,"M"),$P}function momentsDifference(x_,eme){var $P;return x_.isValid()&&eme.isValid()?(eme=cloneWithOffset(eme,x_),x_.isBefore(eme)?$P=positiveMomentsDifference(x_,eme):($P=positiveMomentsDifference(eme,x_),$P.milliseconds=-$P.milliseconds,$P.months=-$P.months),$P):{milliseconds:0,months:0}}function createAdder(x_,eme){return function($P,tme){var ame,nme;return tme!==null&&!isNaN(+tme)&&(deprecateSimple(eme,"moment()."+eme+"(period, number) is deprecated. Please use moment()."+eme+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),nme=$P,$P=tme,tme=nme),ame=createDuration($P,tme),addSubtract(this,ame,x_),this}}function addSubtract(x_,eme,$P,tme){var ame=eme._milliseconds,nme=absRound(eme._days),rme=absRound(eme._months);x_.isValid()&&(tme=tme??!0,rme&&setMonth(x_,get$7(x_,"Month")+rme*$P),nme&&set$1$1(x_,"Date",get$7(x_,"Date")+nme*$P),ame&&x_._d.setTime(x_._d.valueOf()+ame*$P),tme&&hooks.updateOffset(x_,nme||rme))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString$6(x_){return typeof x_=="string"||x_ instanceof String}function isMomentInput(x_){return isMoment(x_)||isDate$1(x_)||isString$6(x_)||isNumber$2(x_)||isNumberOrStringArray(x_)||isMomentInputObject(x_)||x_===null||x_===void 0}function isMomentInputObject(x_){var eme=isObject$c(x_)&&!isObjectEmpty(x_),$P=!1,tme=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ame,nme,rme=tme.length;for(ame=0;ame<rme;ame+=1)nme=tme[ame],$P=$P||hasOwnProp(x_,nme);return eme&&$P}function isNumberOrStringArray(x_){var eme=isArray$l(x_),$P=!1;return eme&&($P=x_.filter(function(tme){return!isNumber$2(tme)&&isString$6(x_)}).length===0),eme&&$P}function isCalendarSpec(x_){var eme=isObject$c(x_)&&!isObjectEmpty(x_),$P=!1,tme=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],ame,nme;for(ame=0;ame<tme.length;ame+=1)nme=tme[ame],$P=$P||hasOwnProp(x_,nme);return eme&&$P}function getCalendarFormat(x_,eme){var $P=x_.diff(eme,"days",!0);return $P<-6?"sameElse":$P<-1?"lastWeek":$P<0?"lastDay":$P<1?"sameDay":$P<2?"nextDay":$P<7?"nextWeek":"sameElse"}function calendar$1(x_,eme){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(x_=arguments[0],eme=void 0):isCalendarSpec(arguments[0])&&(eme=arguments[0],x_=void 0):(x_=void 0,eme=void 0));var $P=x_||createLocal(),tme=cloneWithOffset($P,this).startOf("day"),ame=hooks.calendarFormat(this,tme)||"sameElse",nme=eme&&(isFunction$6(eme[ame])?eme[ame].call(this,$P):eme[ame]);return this.format(nme||this.localeData().calendar(ame,this,createLocal($P)))}function clone$2(){return new Moment(this)}function isAfter(x_,eme){var $P=isMoment(x_)?x_:createLocal(x_);return this.isValid()&&$P.isValid()?(eme=normalizeUnits(eme)||"millisecond",eme==="millisecond"?this.valueOf()>$P.valueOf():$P.valueOf()<this.clone().startOf(eme).valueOf()):!1}function isBefore(x_,eme){var $P=isMoment(x_)?x_:createLocal(x_);return this.isValid()&&$P.isValid()?(eme=normalizeUnits(eme)||"millisecond",eme==="millisecond"?this.valueOf()<$P.valueOf():this.clone().endOf(eme).valueOf()<$P.valueOf()):!1}function isBetween(x_,eme,$P,tme){var ame=isMoment(x_)?x_:createLocal(x_),nme=isMoment(eme)?eme:createLocal(eme);return this.isValid()&&ame.isValid()&&nme.isValid()?(tme=tme||"()",(tme[0]==="("?this.isAfter(ame,$P):!this.isBefore(ame,$P))&&(tme[1]===")"?this.isBefore(nme,$P):!this.isAfter(nme,$P))):!1}function isSame(x_,eme){var $P=isMoment(x_)?x_:createLocal(x_),tme;return this.isValid()&&$P.isValid()?(eme=normalizeUnits(eme)||"millisecond",eme==="millisecond"?this.valueOf()===$P.valueOf():(tme=$P.valueOf(),this.clone().startOf(eme).valueOf()<=tme&&tme<=this.clone().endOf(eme).valueOf())):!1}function isSameOrAfter(x_,eme){return this.isSame(x_,eme)||this.isAfter(x_,eme)}function isSameOrBefore(x_,eme){return this.isSame(x_,eme)||this.isBefore(x_,eme)}function diff$1(x_,eme,$P){var tme,ame,nme;if(!this.isValid())return NaN;if(tme=cloneWithOffset(x_,this),!tme.isValid())return NaN;switch(ame=(tme.utcOffset()-this.utcOffset())*6e4,eme=normalizeUnits(eme),eme){case"year":nme=monthDiff(this,tme)/12;break;case"month":nme=monthDiff(this,tme);break;case"quarter":nme=monthDiff(this,tme)/3;break;case"second":nme=(this-tme)/1e3;break;case"minute":nme=(this-tme)/6e4;break;case"hour":nme=(this-tme)/36e5;break;case"day":nme=(this-tme-ame)/864e5;break;case"week":nme=(this-tme-ame)/6048e5;break;default:nme=this-tme}return $P?nme:absFloor(nme)}function monthDiff(x_,eme){if(x_.date()<eme.date())return-monthDiff(eme,x_);var $P=(eme.year()-x_.year())*12+(eme.month()-x_.month()),tme=x_.clone().add($P,"months"),ame,nme;return eme-tme<0?(ame=x_.clone().add($P-1,"months"),nme=(eme-tme)/(tme-ame)):(ame=x_.clone().add($P+1,"months"),nme=(eme-tme)/(ame-tme)),-($P+nme)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString$e(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(x_){if(!this.isValid())return null;var eme=x_!==!0,$P=eme?this.clone().utc():this;return $P.year()<0||$P.year()>9999?formatMoment($P,eme?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction$6(Date.prototype.toISOString)?eme?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment($P,"Z")):formatMoment($P,eme?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var x_="moment",eme="",$P,tme,ame,nme;return this.isLocal()||(x_=this.utcOffset()===0?"moment.utc":"moment.parseZone",eme="Z"),$P="["+x_+'("]',tme=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ame="-MM-DD[T]HH:mm:ss.SSS",nme=eme+'[")]',this.format($P+tme+ame+nme)}function format$1(x_){x_||(x_=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var eme=formatMoment(this,x_);return this.localeData().postformat(eme)}function from(x_,eme){return this.isValid()&&(isMoment(x_)&&x_.isValid()||createLocal(x_).isValid())?createDuration({to:this,from:x_}).locale(this.locale()).humanize(!eme):this.localeData().invalidDate()}function fromNow(x_){return this.from(createLocal(),x_)}function to$1(x_,eme){return this.isValid()&&(isMoment(x_)&&x_.isValid()||createLocal(x_).isValid())?createDuration({from:this,to:x_}).locale(this.locale()).humanize(!eme):this.localeData().invalidDate()}function toNow(x_){return this.to(createLocal(),x_)}function locale$8(x_){var eme;return x_===void 0?this._locale._abbr:(eme=getLocale(x_),eme!=null&&(this._locale=eme),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(x_){return x_===void 0?this.localeData():this.locale(x_)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(x_,eme){return(x_%eme+eme)%eme}function localStartOfDate(x_,eme,$P){return x_<100&&x_>=0?new Date(x_+400,eme,$P)-MS_PER_400_YEARS:new Date(x_,eme,$P).valueOf()}function utcStartOfDate(x_,eme,$P){return x_<100&&x_>=0?Date.UTC(x_+400,eme,$P)-MS_PER_400_YEARS:Date.UTC(x_,eme,$P)}function startOf(x_){var eme,$P;if(x_=normalizeUnits(x_),x_===void 0||x_==="millisecond"||!this.isValid())return this;switch($P=this._isUTC?utcStartOfDate:localStartOfDate,x_){case"year":eme=$P(this.year(),0,1);break;case"quarter":eme=$P(this.year(),this.month()-this.month()%3,1);break;case"month":eme=$P(this.year(),this.month(),1);break;case"week":eme=$P(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":eme=$P(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":eme=$P(this.year(),this.month(),this.date());break;case"hour":eme=this._d.valueOf(),eme-=mod$1(eme+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":eme=this._d.valueOf(),eme-=mod$1(eme,MS_PER_MINUTE);break;case"second":eme=this._d.valueOf(),eme-=mod$1(eme,MS_PER_SECOND);break}return this._d.setTime(eme),hooks.updateOffset(this,!0),this}function endOf(x_){var eme,$P;if(x_=normalizeUnits(x_),x_===void 0||x_==="millisecond"||!this.isValid())return this;switch($P=this._isUTC?utcStartOfDate:localStartOfDate,x_){case"year":eme=$P(this.year()+1,0,1)-1;break;case"quarter":eme=$P(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":eme=$P(this.year(),this.month()+1,1)-1;break;case"week":eme=$P(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":eme=$P(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":eme=$P(this.year(),this.month(),this.date()+1)-1;break;case"hour":eme=this._d.valueOf(),eme+=MS_PER_HOUR-mod$1(eme+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":eme=this._d.valueOf(),eme+=MS_PER_MINUTE-mod$1(eme,MS_PER_MINUTE)-1;break;case"second":eme=this._d.valueOf(),eme+=MS_PER_SECOND-mod$1(eme,MS_PER_SECOND)-1;break}return this._d.setTime(eme),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray$1(){var x_=this;return[x_.year(),x_.month(),x_.date(),x_.hour(),x_.minute(),x_.second(),x_.millisecond()]}function toObject(){var x_=this;return{years:x_.year(),months:x_.month(),date:x_.date(),hours:x_.hours(),minutes:x_.minutes(),seconds:x_.seconds(),milliseconds:x_.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend$5({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(x_,eme,$P,tme){var ame=$P._locale.erasParse(x_,tme,$P._strict);ame?getParsingFlags($P).era=ame:getParsingFlags($P).invalidEra=x_});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(x_,eme,$P,tme){var ame;$P._locale._eraYearOrdinalRegex&&(ame=x_.match($P._locale._eraYearOrdinalRegex)),$P._locale.eraYearOrdinalParse?eme[YEAR]=$P._locale.eraYearOrdinalParse(x_,ame):eme[YEAR]=parseInt(x_,10)});function localeEras(x_,eme){var $P,tme,ame,nme=this._eras||getLocale("en")._eras;for($P=0,tme=nme.length;$P<tme;++$P){switch(typeof nme[$P].since){case"string":ame=hooks(nme[$P].since).startOf("day"),nme[$P].since=ame.valueOf();break}switch(typeof nme[$P].until){case"undefined":nme[$P].until=1/0;break;case"string":ame=hooks(nme[$P].until).startOf("day").valueOf(),nme[$P].until=ame.valueOf();break}}return nme}function localeErasParse(x_,eme,$P){var tme,ame,nme=this.eras(),rme,ime,ome;for(x_=x_.toUpperCase(),tme=0,ame=nme.length;tme<ame;++tme)if(rme=nme[tme].name.toUpperCase(),ime=nme[tme].abbr.toUpperCase(),ome=nme[tme].narrow.toUpperCase(),$P)switch(eme){case"N":case"NN":case"NNN":if(ime===x_)return nme[tme];break;case"NNNN":if(rme===x_)return nme[tme];break;case"NNNNN":if(ome===x_)return nme[tme];break}else if([rme,ime,ome].indexOf(x_)>=0)return nme[tme]}function localeErasConvertYear(x_,eme){var $P=x_.since<=x_.until?1:-1;return eme===void 0?hooks(x_.since).year():hooks(x_.since).year()+(eme-x_.offset)*$P}function getEraName(){var x_,eme,$P,tme=this.localeData().eras();for(x_=0,eme=tme.length;x_<eme;++x_)if($P=this.clone().startOf("day").valueOf(),tme[x_].since<=$P&&$P<=tme[x_].until||tme[x_].until<=$P&&$P<=tme[x_].since)return tme[x_].name;return""}function getEraNarrow(){var x_,eme,$P,tme=this.localeData().eras();for(x_=0,eme=tme.length;x_<eme;++x_)if($P=this.clone().startOf("day").valueOf(),tme[x_].since<=$P&&$P<=tme[x_].until||tme[x_].until<=$P&&$P<=tme[x_].since)return tme[x_].narrow;return""}function getEraAbbr(){var x_,eme,$P,tme=this.localeData().eras();for(x_=0,eme=tme.length;x_<eme;++x_)if($P=this.clone().startOf("day").valueOf(),tme[x_].since<=$P&&$P<=tme[x_].until||tme[x_].until<=$P&&$P<=tme[x_].since)return tme[x_].abbr;return""}function getEraYear(){var x_,eme,$P,tme,ame=this.localeData().eras();for(x_=0,eme=ame.length;x_<eme;++x_)if($P=ame[x_].since<=ame[x_].until?1:-1,tme=this.clone().startOf("day").valueOf(),ame[x_].since<=tme&&tme<=ame[x_].until||ame[x_].until<=tme&&tme<=ame[x_].since)return(this.year()-hooks(ame[x_].since).year())*$P+ame[x_].offset;return this.year()}function erasNameRegex(x_){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),x_?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(x_){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),x_?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(x_){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),x_?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(x_,eme){return eme.erasAbbrRegex(x_)}function matchEraName(x_,eme){return eme.erasNameRegex(x_)}function matchEraNarrow(x_,eme){return eme.erasNarrowRegex(x_)}function matchEraYearOrdinal(x_,eme){return eme._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var x_=[],eme=[],$P=[],tme=[],ame,nme,rme,ime,ome,lme=this.eras();for(ame=0,nme=lme.length;ame<nme;++ame)rme=regexEscape(lme[ame].name),ime=regexEscape(lme[ame].abbr),ome=regexEscape(lme[ame].narrow),eme.push(rme),x_.push(ime),$P.push(ome),tme.push(rme),tme.push(ime),tme.push(ome);this._erasRegex=new RegExp("^("+tme.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+eme.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+x_.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+$P.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(x_,eme){addFormatToken(0,[x_,x_.length],0,eme)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(x_,eme,$P,tme){eme[tme.substr(0,2)]=toInt(x_)});addWeekParseToken(["gg","GG"],function(x_,eme,$P,tme){eme[tme]=hooks.parseTwoDigitYear(x_)});function getSetWeekYear(x_){return getSetWeekYearHelper.call(this,x_,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(x_){return getSetWeekYearHelper.call(this,x_,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var x_=this.localeData()._week;return weeksInYear(this.year(),x_.dow,x_.doy)}function getWeeksInWeekYear(){var x_=this.localeData()._week;return weeksInYear(this.weekYear(),x_.dow,x_.doy)}function getSetWeekYearHelper(x_,eme,$P,tme,ame){var nme;return x_==null?weekOfYear(this,tme,ame).year:(nme=weeksInYear(x_,tme,ame),eme>nme&&(eme=nme),setWeekAll.call(this,x_,eme,$P,tme,ame))}function setWeekAll(x_,eme,$P,tme,ame){var nme=dayOfYearFromWeeks(x_,eme,$P,tme,ame),rme=createUTCDate(nme.year,0,nme.dayOfYear);return this.year(rme.getUTCFullYear()),this.month(rme.getUTCMonth()),this.date(rme.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(x_,eme){eme[MONTH]=(toInt(x_)-1)*3});function getSetQuarter(x_){return x_==null?Math.ceil((this.month()+1)/3):this.month((x_-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(x_,eme){return x_?eme._dayOfMonthOrdinalParse||eme._ordinalParse:eme._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(x_,eme){eme[DATE]=toInt(x_.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(x_,eme,$P){$P._dayOfYear=toInt(x_)});function getSetDayOfYear(x_){var eme=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return x_==null?eme:this.add(x_-eme,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token$1,getSetMillisecond;for(token$1="SSSS";token$1.length<=9;token$1+="S")addRegexToken(token$1,matchUnsigned);function parseMs(x_,eme){eme[MILLISECOND]=toInt(("0."+x_)*1e3)}for(token$1="S";token$1.length<=9;token$1+="S")addParseToken(token$1,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone$2;proto.diff=diff$1;proto.endOf=endOf;proto.format=format$1;proto.from=from;proto.fromNow=fromNow;proto.to=to$1;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale$8;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray$1;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString$e;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(x_){return createLocal(x_*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(x_){return x_}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set$4;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1$1(x_,eme,$P,tme){var ame=getLocale(),nme=createUTC().set(tme,eme);return ame[$P](nme,x_)}function listMonthsImpl(x_,eme,$P){if(isNumber$2(x_)&&(eme=x_,x_=void 0),x_=x_||"",eme!=null)return get$1$1(x_,eme,$P,"month");var tme,ame=[];for(tme=0;tme<12;tme++)ame[tme]=get$1$1(x_,tme,$P,"month");return ame}function listWeekdaysImpl(x_,eme,$P,tme){typeof x_=="boolean"?(isNumber$2(eme)&&($P=eme,eme=void 0),eme=eme||""):(eme=x_,$P=eme,x_=!1,isNumber$2(eme)&&($P=eme,eme=void 0),eme=eme||"");var ame=getLocale(),nme=x_?ame._week.dow:0,rme,ime=[];if($P!=null)return get$1$1(eme,($P+nme)%7,tme,"day");for(rme=0;rme<7;rme++)ime[rme]=get$1$1(eme,(rme+nme)%7,tme,"day");return ime}function listMonths(x_,eme){return listMonthsImpl(x_,eme,"months")}function listMonthsShort(x_,eme){return listMonthsImpl(x_,eme,"monthsShort")}function listWeekdays(x_,eme,$P){return listWeekdaysImpl(x_,eme,$P,"weekdays")}function listWeekdaysShort(x_,eme,$P){return listWeekdaysImpl(x_,eme,$P,"weekdaysShort")}function listWeekdaysMin(x_,eme,$P){return listWeekdaysImpl(x_,eme,$P,"weekdaysMin")}getSetGlobalLocale("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(x_){var eme=x_%10,$P=toInt(x_%100/10)===1?"th":eme===1?"st":eme===2?"nd":eme===3?"rd":"th";return x_+$P}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var x_=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),x_.milliseconds=mathAbs(x_.milliseconds),x_.seconds=mathAbs(x_.seconds),x_.minutes=mathAbs(x_.minutes),x_.hours=mathAbs(x_.hours),x_.months=mathAbs(x_.months),x_.years=mathAbs(x_.years),this}function addSubtract$1(x_,eme,$P,tme){var ame=createDuration(eme,$P);return x_._milliseconds+=tme*ame._milliseconds,x_._days+=tme*ame._days,x_._months+=tme*ame._months,x_._bubble()}function add$1(x_,eme){return addSubtract$1(this,x_,eme,1)}function subtract$1(x_,eme){return addSubtract$1(this,x_,eme,-1)}function absCeil(x_){return x_<0?Math.floor(x_):Math.ceil(x_)}function bubble(){var x_=this._milliseconds,eme=this._days,$P=this._months,tme=this._data,ame,nme,rme,ime,ome;return x_>=0&&eme>=0&&$P>=0||x_<=0&&eme<=0&&$P<=0||(x_+=absCeil(monthsToDays($P)+eme)*864e5,eme=0,$P=0),tme.milliseconds=x_%1e3,ame=absFloor(x_/1e3),tme.seconds=ame%60,nme=absFloor(ame/60),tme.minutes=nme%60,rme=absFloor(nme/60),tme.hours=rme%24,eme+=absFloor(rme/24),ome=absFloor(daysToMonths(eme)),$P+=ome,eme-=absCeil(monthsToDays(ome)),ime=absFloor($P/12),$P%=12,tme.days=eme,tme.months=$P,tme.years=ime,this}function daysToMonths(x_){return x_*4800/146097}function monthsToDays(x_){return x_*146097/4800}function as$1(x_){if(!this.isValid())return NaN;var eme,$P,tme=this._milliseconds;if(x_=normalizeUnits(x_),x_==="month"||x_==="quarter"||x_==="year")switch(eme=this._days+tme/864e5,$P=this._months+daysToMonths(eme),x_){case"month":return $P;case"quarter":return $P/3;case"year":return $P/12}else switch(eme=this._days+Math.round(monthsToDays(this._months)),x_){case"week":return eme/7+tme/6048e5;case"day":return eme+tme/864e5;case"hour":return eme*24+tme/36e5;case"minute":return eme*1440+tme/6e4;case"second":return eme*86400+tme/1e3;case"millisecond":return Math.floor(eme*864e5)+tme;default:throw new Error("Unknown unit "+x_)}}function makeAs(x_){return function(){return this.as(x_)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1$1(){return createDuration(this)}function get$2$1(x_){return x_=normalizeUnits(x_),this.isValid()?this[x_+"s"]():NaN}function makeGetter(x_){return function(){return this.isValid()?this._data[x_]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(x_,eme,$P,tme,ame){return ame.relativeTime(eme||1,!!$P,x_,tme)}function relativeTime$1(x_,eme,$P,tme){var ame=createDuration(x_).abs(),nme=round(ame.as("s")),rme=round(ame.as("m")),ime=round(ame.as("h")),ome=round(ame.as("d")),lme=round(ame.as("M")),sme=round(ame.as("w")),cme=round(ame.as("y")),dme=nme<=$P.ss&&["s",nme]||nme<$P.s&&["ss",nme]||rme<=1&&["m"]||rme<$P.m&&["mm",rme]||ime<=1&&["h"]||ime<$P.h&&["hh",ime]||ome<=1&&["d"]||ome<$P.d&&["dd",ome];return $P.w!=null&&(dme=dme||sme<=1&&["w"]||sme<$P.w&&["ww",sme]),dme=dme||lme<=1&&["M"]||lme<$P.M&&["MM",lme]||cme<=1&&["y"]||["yy",cme],dme[2]=eme,dme[3]=+x_>0,dme[4]=tme,substituteTimeAgo.apply(null,dme)}function getSetRelativeTimeRounding(x_){return x_===void 0?round:typeof x_=="function"?(round=x_,!0):!1}function getSetRelativeTimeThreshold(x_,eme){return thresholds[x_]===void 0?!1:eme===void 0?thresholds[x_]:(thresholds[x_]=eme,x_==="s"&&(thresholds.ss=eme-1),!0)}function humanize(x_,eme){if(!this.isValid())return this.localeData().invalidDate();var $P=!1,tme=thresholds,ame,nme;return typeof x_=="object"&&(eme=x_,x_=!1),typeof x_=="boolean"&&($P=x_),typeof eme=="object"&&(tme=Object.assign({},thresholds,eme),eme.s!=null&&eme.ss==null&&(tme.ss=eme.s-1)),ame=this.localeData(),nme=relativeTime$1(this,!$P,tme,ame),$P&&(nme=ame.pastFuture(+this,nme)),ame.postformat(nme)}var abs$1=Math.abs;function sign(x_){return(x_>0)-(x_<0)||+x_}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var x_=abs$1(this._milliseconds)/1e3,eme=abs$1(this._days),$P=abs$1(this._months),tme,ame,nme,rme,ime=this.asSeconds(),ome,lme,sme,cme;return ime?(tme=absFloor(x_/60),ame=absFloor(tme/60),x_%=60,tme%=60,nme=absFloor($P/12),$P%=12,rme=x_?x_.toFixed(3).replace(/\.?0+$/,""):"",ome=ime<0?"-":"",lme=sign(this._months)!==sign(ime)?"-":"",sme=sign(this._days)!==sign(ime)?"-":"",cme=sign(this._milliseconds)!==sign(ime)?"-":"",ome+"P"+(nme?lme+nme+"Y":"")+($P?lme+$P+"M":"")+(eme?sme+eme+"D":"")+(ame||tme||x_?"T":"")+(ame?cme+ame+"H":"")+(tme?cme+tme+"M":"")+(x_?cme+rme+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as$1;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1$1;proto$2.get=get$2$1;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale$8;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(x_,eme,$P){$P._d=new Date(parseFloat(x_)*1e3)});addParseToken("x",function(x_,eme,$P){$P._d=new Date(toInt(x_))});//! moment.js
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now$2;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate$1;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.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"};const moment$1=Object.freeze(Object.defineProperty({__proto__:null,default:hooks},Symbol.toStringTag,{value:"Module"}));function baseSlice$3(x_,eme,$P){var tme=-1,ame=x_.length;eme<0&&(eme=-eme>ame?0:ame+eme),$P=$P>ame?ame:$P,$P<0&&($P+=ame),ame=eme>$P?0:$P-eme>>>0,eme>>>=0;for(var nme=Array(ame);++tme<ame;)nme[tme]=x_[tme+eme];return nme}var _baseSlice=baseSlice$3,baseSlice$2=_baseSlice;function castSlice$3(x_,eme,$P){var tme=x_.length;return $P=$P===void 0?tme:$P,!eme&&$P>=tme?x_:baseSlice$2(x_,eme,$P)}var _castSlice=castSlice$3,rsAstralRange$3="\\ud800-\\udfff",rsComboMarksRange$4="\\u0300-\\u036f",reComboHalfMarksRange$4="\\ufe20-\\ufe2f",rsComboSymbolsRange$4="\\u20d0-\\u20ff",rsComboRange$4=rsComboMarksRange$4+reComboHalfMarksRange$4+rsComboSymbolsRange$4,rsVarRange$3="\\ufe0e\\ufe0f",rsZWJ$3="\\u200d",reHasUnicode=RegExp("["+rsZWJ$3+rsAstralRange$3+rsComboRange$4+rsVarRange$3+"]");function hasUnicode$5(x_){return reHasUnicode.test(x_)}var _hasUnicode=hasUnicode$5;function asciiToArray$1(x_){return x_.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsAstral$1="["+rsAstralRange$2+"]",rsCombo$3="["+rsComboRange$3+"]",rsFitz$2="\\ud83c[\\udffb-\\udfff]",rsModifier$2="(?:"+rsCombo$3+"|"+rsFitz$2+")",rsNonAstral$2="[^"+rsAstralRange$2+"]",rsRegional$2="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$2="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$2="\\u200d",reOptMod$2=rsModifier$2+"?",rsOptVar$2="["+rsVarRange$2+"]?",rsOptJoin$2="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$2,rsRegional$2,rsSurrPair$2].join("|")+")"+rsOptVar$2+reOptMod$2+")*",rsSeq$2=rsOptVar$2+reOptMod$2+rsOptJoin$2,rsSymbol$1="(?:"+[rsNonAstral$2+rsCombo$3+"?",rsCombo$3,rsRegional$2,rsSurrPair$2,rsAstral$1].join("|")+")",reUnicode$1=RegExp(rsFitz$2+"(?="+rsFitz$2+")|"+rsSymbol$1+rsSeq$2,"g");function unicodeToArray$1(x_){return x_.match(reUnicode$1)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$4=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$3(x_){return hasUnicode$4(x_)?unicodeToArray(x_):asciiToArray(x_)}var _stringToArray=stringToArray$3;function arrayMap$d(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length,ame=Array(tme);++$P<tme;)ame[$P]=eme(x_[$P],$P,x_);return ame}var _arrayMap=arrayMap$d,Symbol$5=_Symbol,arrayMap$c=_arrayMap,isArray$k=isArray_1,isSymbol$4=isSymbol_1,INFINITY$5=1/0,symbolProto$4=Symbol$5?Symbol$5.prototype:void 0,symbolToString$1=symbolProto$4?symbolProto$4.toString:void 0;function baseToString$6(x_){if(typeof x_=="string")return x_;if(isArray$k(x_))return arrayMap$c(x_,baseToString$6)+"";if(isSymbol$4(x_))return symbolToString$1?symbolToString$1.call(x_):"";var eme=x_+"";return eme=="0"&&1/x_==-INFINITY$5?"-0":eme}var _baseToString=baseToString$6,baseToString$5=_baseToString;function toString$d(x_){return x_==null?"":baseToString$5(x_)}var toString_1=toString$d,castSlice$2=_castSlice,hasUnicode$3=_hasUnicode,stringToArray$2=_stringToArray,toString$c=toString_1;function createCaseFirst$1(x_){return function(eme){eme=toString$c(eme);var $P=hasUnicode$3(eme)?stringToArray$2(eme):void 0,tme=$P?$P[0]:eme.charAt(0),ame=$P?castSlice$2($P,1).join(""):eme.slice(1);return tme[x_]()+ame}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1;const upperFirst$2=getDefaultExportFromCjs(upperFirst_1);var MAX_SAFE_INTEGER$3=9007199254740991,nativeFloor=Math.floor;function baseRepeat$1(x_,eme){var $P="";if(!x_||eme<1||eme>MAX_SAFE_INTEGER$3)return $P;do eme%2&&($P+=x_),eme=nativeFloor(eme/2),eme&&(x_+=x_);while(eme);return $P}var _baseRepeat=baseRepeat$1;function baseProperty$3(x_){return function(eme){return eme==null?void 0:eme[x_]}}var _baseProperty=baseProperty$3,baseProperty$2=_baseProperty,asciiSize$1=baseProperty$2("length"),_asciiSize=asciiSize$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeSize$1(x_){for(var eme=reUnicode.lastIndex=0;reUnicode.test(x_);)++eme;return eme}var _unicodeSize=unicodeSize$1,asciiSize=_asciiSize,hasUnicode$2=_hasUnicode,unicodeSize=_unicodeSize;function stringSize$3(x_){return hasUnicode$2(x_)?unicodeSize(x_):asciiSize(x_)}var _stringSize=stringSize$3,baseRepeat=_baseRepeat,baseToString$4=_baseToString,castSlice$1=_castSlice,hasUnicode$1=_hasUnicode,stringSize$2=_stringSize,stringToArray$1=_stringToArray,nativeCeil$2=Math.ceil;function createPadding$1(x_,eme){eme=eme===void 0?" ":baseToString$4(eme);var $P=eme.length;if($P<2)return $P?baseRepeat(eme,x_):eme;var tme=baseRepeat(eme,nativeCeil$2(x_/stringSize$2(eme)));return hasUnicode$1(eme)?castSlice$1(stringToArray$1(tme),0,x_).join(""):tme.slice(0,x_)}var _createPadding=createPadding$1,toNumber$2=toNumber_1,INFINITY$4=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$2(x_){if(!x_)return x_===0?x_:0;if(x_=toNumber$2(x_),x_===INFINITY$4||x_===-INFINITY$4){var eme=x_<0?-1:1;return eme*MAX_INTEGER}return x_===x_?x_:0}var toFinite_1=toFinite$2,toFinite$1=toFinite_1;function toInteger$a(x_){var eme=toFinite$1(x_),$P=eme%1;return eme===eme?$P?eme-$P:eme:0}var toInteger_1=toInteger$a,createPadding=_createPadding,stringSize$1=_stringSize,toInteger$9=toInteger_1,toString$b=toString_1;function padStart(x_,eme,$P){x_=toString$b(x_),eme=toInteger$9(eme);var tme=eme?stringSize$1(x_):0;return eme&&tme<eme?createPadding(eme-tme,$P)+x_:x_}var padStart_1=padStart;const padStart$1=getDefaultExportFromCjs(padStart_1);var toString$a=toString_1,upperFirst=upperFirst_1;function capitalize$1(x_){return upperFirst(toString$a(x_).toLowerCase())}var capitalize_1=capitalize$1;const capitalize$2=getDefaultExportFromCjs(capitalize_1);function basePropertyOf$2(x_){return function(eme){return x_==null?void 0:x_[eme]}}var _basePropertyOf=basePropertyOf$2,basePropertyOf$1=_basePropertyOf,htmlEscapes={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},escapeHtmlChar$1=basePropertyOf$1(htmlEscapes),_escapeHtmlChar=escapeHtmlChar$1,escapeHtmlChar=_escapeHtmlChar,toString$9=toString_1,reUnescapedHtml=/[&<>"']/g,reHasUnescapedHtml=RegExp(reUnescapedHtml.source);function escape$2(x_){return x_=toString$9(x_),x_&&reHasUnescapedHtml.test(x_)?x_.replace(reUnescapedHtml,escapeHtmlChar):x_}var _escape=escape$2;const escape$3=getDefaultExportFromCjs(_escape);var baseGetTag$3=_baseGetTag,isObjectLike$6=isObjectLike_1,regexpTag$5="[object RegExp]";function baseIsRegExp$1(x_){return isObjectLike$6(x_)&&baseGetTag$3(x_)==regexpTag$5}var _baseIsRegExp=baseIsRegExp$1,baseIsRegExp=_baseIsRegExp,baseUnary$6=_baseUnary,nodeUtil$3=_nodeUtilExports,nodeIsRegExp=nodeUtil$3&&nodeUtil$3.isRegExp,isRegExp$1=nodeIsRegExp?baseUnary$6(nodeIsRegExp):baseIsRegExp,isRegExp_1=isRegExp$1,baseToString$3=_baseToString,castSlice=_castSlice,hasUnicode=_hasUnicode,isObject$b=isObject_1,isRegExp=isRegExp_1,stringSize=_stringSize,stringToArray=_stringToArray,toInteger$8=toInteger_1,toString$8=toString_1,DEFAULT_TRUNC_LENGTH=30,DEFAULT_TRUNC_OMISSION="...",reFlags$1=/\w*$/;function truncate(x_,eme){var $P=DEFAULT_TRUNC_LENGTH,tme=DEFAULT_TRUNC_OMISSION;if(isObject$b(eme)){var ame="separator"in eme?eme.separator:ame;$P="length"in eme?toInteger$8(eme.length):$P,tme="omission"in eme?baseToString$3(eme.omission):tme}x_=toString$8(x_);var nme=x_.length;if(hasUnicode(x_)){var rme=stringToArray(x_);nme=rme.length}if($P>=nme)return x_;var ime=$P-stringSize(tme);if(ime<1)return tme;var ome=rme?castSlice(rme,0,ime).join(""):x_.slice(0,ime);if(ame===void 0)return ome+tme;if(rme&&(ime+=ome.length-ime),isRegExp(ame)){if(x_.slice(ime).search(ame)){var lme,sme=ome;for(ame.global||(ame=RegExp(ame.source,toString$8(reFlags$1.exec(ame))+"g")),ame.lastIndex=0;lme=ame.exec(sme);)var cme=lme.index;ome=ome.slice(0,cme===void 0?ime:cme)}}else if(x_.indexOf(baseToString$3(ame),ime)!=ime){var dme=ome.lastIndexOf(ame);dme>-1&&(ome=ome.slice(0,dme))}return ome+tme}var truncate_1=truncate;const truncate$1=getDefaultExportFromCjs(truncate_1);var baseUniq$3=_baseUniq;function uniqWith(x_,eme){return eme=typeof eme=="function"?eme:void 0,x_&&x_.length?baseUniq$3(x_,void 0,eme):[]}var uniqWith_1=uniqWith;const uniqWith$1=getDefaultExportFromCjs(uniqWith_1);function arraySome$3(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length;++$P<tme;)if(eme(x_[$P],$P,x_))return!0;return!1}var _arraySome=arraySome$3,SetCache$3=_SetCache,arraySome$2=_arraySome,cacheHas$3=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(x_,eme,$P,tme,ame,nme){var rme=$P&COMPARE_PARTIAL_FLAG$b,ime=x_.length,ome=eme.length;if(ime!=ome&&!(rme&&ome>ime))return!1;var lme=nme.get(x_),sme=nme.get(eme);if(lme&&sme)return lme==eme&&sme==x_;var cme=-1,dme=!0,ume=$P&COMPARE_UNORDERED_FLAG$7?new SetCache$3:void 0;for(nme.set(x_,eme),nme.set(eme,x_);++cme<ime;){var fme=x_[cme],pme=eme[cme];if(tme)var hme=rme?tme(pme,fme,cme,eme,x_,nme):tme(fme,pme,cme,x_,eme,nme);if(hme!==void 0){if(hme)continue;dme=!1;break}if(ume){if(!arraySome$2(eme,function(bme,mme){if(!cacheHas$3(ume,mme)&&(fme===bme||ame(fme,bme,$P,tme,nme)))return ume.push(mme)})){dme=!1;break}}else if(!(fme===pme||ame(fme,pme,$P,tme,nme))){dme=!1;break}}return nme.delete(x_),nme.delete(eme),dme}var _equalArrays=equalArrays$3;function mapToArray$3(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme,ame){$P[++eme]=[ame,tme]}),$P}var _mapToArray=mapToArray$3,Symbol$4=_Symbol,Uint8Array$2=_Uint8Array,eq$3=eq_1,equalArrays$2=_equalArrays,mapToArray$2=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$4="[object Boolean]",dateTag$4="[object Date]",errorTag$4="[object Error]",mapTag$9="[object Map]",numberTag$4="[object Number]",regexpTag$4="[object RegExp]",setTag$9="[object Set]",stringTag$4="[object String]",symbolTag$4="[object Symbol]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$6="[object DataView]",symbolProto$3=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf$2=symbolProto$3?symbolProto$3.valueOf:void 0;function equalByTag$2(x_,eme,$P,tme,ame,nme,rme){switch($P){case dataViewTag$6:if(x_.byteLength!=eme.byteLength||x_.byteOffset!=eme.byteOffset)return!1;x_=x_.buffer,eme=eme.buffer;case arrayBufferTag$4:return!(x_.byteLength!=eme.byteLength||!nme(new Uint8Array$2(x_),new Uint8Array$2(eme)));case boolTag$4:case dateTag$4:case numberTag$4:return eq$3(+x_,+eme);case errorTag$4:return x_.name==eme.name&&x_.message==eme.message;case regexpTag$4:case stringTag$4:return x_==eme+"";case mapTag$9:var ime=mapToArray$2;case setTag$9:var ome=tme&COMPARE_PARTIAL_FLAG$a;if(ime||(ime=setToArray$1),x_.size!=eme.size&&!ome)return!1;var lme=rme.get(x_);if(lme)return lme==eme;tme|=COMPARE_UNORDERED_FLAG$6,rme.set(x_,eme);var sme=equalArrays$2(ime(x_),ime(eme),tme,ame,nme,rme);return rme.delete(x_),sme;case symbolTag$4:if(symbolValueOf$2)return symbolValueOf$2.call(x_)==symbolValueOf$2.call(eme)}return!1}var _equalByTag=equalByTag$2;function arrayPush$4(x_,eme){for(var $P=-1,tme=eme.length,ame=x_.length;++$P<tme;)x_[ame+$P]=eme[$P];return x_}var _arrayPush=arrayPush$4,arrayPush$3=_arrayPush,isArray$j=isArray_1;function baseGetAllKeys$3(x_,eme,$P){var tme=eme(x_);return isArray$j(x_)?tme:arrayPush$3(tme,$P(x_))}var _baseGetAllKeys=baseGetAllKeys$3;function arrayFilter$3(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length,ame=0,nme=[];++$P<tme;){var rme=x_[$P];eme(rme,$P,x_)&&(nme[ame++]=rme)}return nme}var _arrayFilter=arrayFilter$3;function stubArray$3(){return[]}var stubArray_1=stubArray$3,arrayFilter$2=_arrayFilter,stubArray$2=stubArray_1,objectProto$p=Object.prototype,propertyIsEnumerable$2=objectProto$p.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$4=nativeGetSymbols$2?function(x_){return x_==null?[]:(x_=Object(x_),arrayFilter$2(nativeGetSymbols$2(x_),function(eme){return propertyIsEnumerable$2.call(x_,eme)}))}:stubArray$2,_getSymbols=getSymbols$4,overArg$1=_overArg,nativeKeys$2=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$2,isPrototype$3=_isPrototype,nativeKeys$1=_nativeKeys,objectProto$o=Object.prototype,hasOwnProperty$m=objectProto$o.hasOwnProperty;function baseKeys$3(x_){if(!isPrototype$3(x_))return nativeKeys$1(x_);var eme=[];for(var $P in Object(x_))hasOwnProperty$m.call(x_,$P)&&$P!="constructor"&&eme.push($P);return eme}var _baseKeys=baseKeys$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys$2=_baseKeys,isArrayLike$7=isArrayLike_1;function keys$b(x_){return isArrayLike$7(x_)?arrayLikeKeys$1(x_):baseKeys$2(x_)}var keys_1=keys$b;const keys$c=getDefaultExportFromCjs(keys_1);var baseGetAllKeys$2=_baseGetAllKeys,getSymbols$3=_getSymbols,keys$a=keys_1;function getAllKeys$3(x_){return baseGetAllKeys$2(x_,keys$a,getSymbols$3)}var _getAllKeys=getAllKeys$3,getAllKeys$2=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$n=Object.prototype,hasOwnProperty$l=objectProto$n.hasOwnProperty;function equalObjects$2(x_,eme,$P,tme,ame,nme){var rme=$P&COMPARE_PARTIAL_FLAG$9,ime=getAllKeys$2(x_),ome=ime.length,lme=getAllKeys$2(eme),sme=lme.length;if(ome!=sme&&!rme)return!1;for(var cme=ome;cme--;){var dme=ime[cme];if(!(rme?dme in eme:hasOwnProperty$l.call(eme,dme)))return!1}var ume=nme.get(x_),fme=nme.get(eme);if(ume&&fme)return ume==eme&&fme==x_;var pme=!0;nme.set(x_,eme),nme.set(eme,x_);for(var hme=rme;++cme<ome;){dme=ime[cme];var bme=x_[dme],mme=eme[dme];if(tme)var vme=rme?tme(mme,bme,dme,eme,x_,nme):tme(bme,mme,dme,x_,eme,nme);if(!(vme===void 0?bme===mme||ame(bme,mme,$P,tme,nme):vme)){pme=!1;break}hme||(hme=dme=="constructor")}if(pme&&!hme){var gme=x_.constructor,yme=eme.constructor;gme!=yme&&"constructor"in x_&&"constructor"in eme&&!(typeof gme=="function"&&gme instanceof gme&&typeof yme=="function"&&yme instanceof yme)&&(pme=!1)}return nme.delete(x_),nme.delete(eme),pme}var _equalObjects=equalObjects$2,getNative$3=_getNative,root$4=_root,DataView$2=getNative$3(root$4,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$3=_root,Promise$3=getNative$2(root$3,"Promise"),_Promise=Promise$3,getNative$1=_getNative,root$2=_root,WeakMap$3=getNative$1(root$2,"WeakMap"),_WeakMap=WeakMap$3,DataView$1=_DataView,Map$2=_Map,Promise$2=_Promise,Set$2=_Set,WeakMap$2=_WeakMap,baseGetTag$2=_baseGetTag,toSource$1=_toSource,mapTag$8="[object Map]",objectTag$6="[object Object]",promiseTag$1="[object Promise]",setTag$8="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$5="[object DataView]",dataViewCtorString$1=toSource$1(DataView$1),mapCtorString$1=toSource$1(Map$2),promiseCtorString$1=toSource$1(Promise$2),setCtorString$1=toSource$1(Set$2),weakMapCtorString$1=toSource$1(WeakMap$2),getTag$7=baseGetTag$2;(DataView$1&&getTag$7(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$5||Map$2&&getTag$7(new Map$2)!=mapTag$8||Promise$2&&getTag$7(Promise$2.resolve())!=promiseTag$1||Set$2&&getTag$7(new Set$2)!=setTag$8||WeakMap$2&&getTag$7(new WeakMap$2)!=weakMapTag$3)&&(getTag$7=function(x_){var eme=baseGetTag$2(x_),$P=eme==objectTag$6?x_.constructor:void 0,tme=$P?toSource$1($P):"";if(tme)switch(tme){case dataViewCtorString$1:return dataViewTag$5;case mapCtorString$1:return mapTag$8;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$8;case weakMapCtorString$1:return weakMapTag$3}return eme});var _getTag=getTag$7,Stack$3=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$6=_getTag,isArray$i=isArray_1,isBuffer$5=isBufferExports,isTypedArray$3=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",objectTag$5="[object Object]",objectProto$m=Object.prototype,hasOwnProperty$k=objectProto$m.hasOwnProperty;function baseIsEqualDeep$2(x_,eme,$P,tme,ame,nme){var rme=isArray$i(x_),ime=isArray$i(eme),ome=rme?arrayTag$3:getTag$6(x_),lme=ime?arrayTag$3:getTag$6(eme);ome=ome==argsTag$4?objectTag$5:ome,lme=lme==argsTag$4?objectTag$5:lme;var sme=ome==objectTag$5,cme=lme==objectTag$5,dme=ome==lme;if(dme&&isBuffer$5(x_)){if(!isBuffer$5(eme))return!1;rme=!0,sme=!1}if(dme&&!sme)return nme||(nme=new Stack$3),rme||isTypedArray$3(x_)?equalArrays$1(x_,eme,$P,tme,ame,nme):equalByTag$1(x_,eme,ome,$P,tme,ame,nme);if(!($P&COMPARE_PARTIAL_FLAG$8)){var ume=sme&&hasOwnProperty$k.call(x_,"__wrapped__"),fme=cme&&hasOwnProperty$k.call(eme,"__wrapped__");if(ume||fme){var pme=ume?x_.value():x_,hme=fme?eme.value():eme;return nme||(nme=new Stack$3),ame(pme,hme,$P,tme,nme)}}return dme?(nme||(nme=new Stack$3),equalObjects$1(x_,eme,$P,tme,ame,nme)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$5=isObjectLike_1;function baseIsEqual$5(x_,eme,$P,tme,ame){return x_===eme?!0:x_==null||eme==null||!isObjectLike$5(x_)&&!isObjectLike$5(eme)?x_!==x_&&eme!==eme:baseIsEqualDeep$1(x_,eme,$P,tme,baseIsEqual$5,ame)}var _baseIsEqual=baseIsEqual$5,Stack$2=_Stack,baseIsEqual$4=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(x_,eme,$P,tme){var ame=$P.length,nme=ame,rme=!tme;if(x_==null)return!nme;for(x_=Object(x_);ame--;){var ime=$P[ame];if(rme&&ime[2]?ime[1]!==x_[ime[0]]:!(ime[0]in x_))return!1}for(;++ame<nme;){ime=$P[ame];var ome=ime[0],lme=x_[ome],sme=ime[1];if(rme&&ime[2]){if(lme===void 0&&!(ome in x_))return!1}else{var cme=new Stack$2;if(tme)var dme=tme(lme,sme,ome,x_,eme,cme);if(!(dme===void 0?baseIsEqual$4(sme,lme,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,tme,cme):dme))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$a=isObject_1;function isStrictComparable$3(x_){return x_===x_&&!isObject$a(x_)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$9=keys_1;function getMatchData$2(x_){for(var eme=keys$9(x_),$P=eme.length;$P--;){var tme=eme[$P],ame=x_[tme];eme[$P]=[tme,ame,isStrictComparable$2(ame)]}return eme}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(x_,eme){return function($P){return $P==null?!1:$P[x_]===eme&&(eme!==void 0||x_ in Object($P))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(x_){var eme=getMatchData$1(x_);return eme.length==1&&eme[0][2]?matchesStrictComparable$2(eme[0][0],eme[0][1]):function($P){return $P===x_||baseIsMatch$1($P,x_,eme)}}var _baseMatches=baseMatches$2,isArray$h=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$5(x_,eme){if(isArray$h(x_))return!1;var $P=typeof x_;return $P=="number"||$P=="symbol"||$P=="boolean"||x_==null||isSymbol$3(x_)?!0:reIsPlainProp$1.test(x_)||!reIsDeepProp$1.test(x_)||eme!=null&&x_ in Object(eme)}var _isKey=isKey$5,MapCache$1=_MapCache,FUNC_ERROR_TEXT$3="Expected a function";function memoize$3(x_,eme){if(typeof x_!="function"||eme!=null&&typeof eme!="function")throw new TypeError(FUNC_ERROR_TEXT$3);var $P=function(){var tme=arguments,ame=eme?eme.apply(this,tme):tme[0],nme=$P.cache;if(nme.has(ame))return nme.get(ame);var rme=x_.apply(this,tme);return $P.cache=nme.set(ame,rme)||nme,rme};return $P.cache=new(memoize$3.Cache||MapCache$1),$P}memoize$3.Cache=MapCache$1;var memoize_1=memoize$3;const memoize$4=getDefaultExportFromCjs(memoize_1);var memoize$2=memoize_1,MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(x_){var eme=memoize$2(x_,function(tme){return $P.size===MAX_MEMOIZE_SIZE$1&&$P.clear(),tme}),$P=eme.cache;return eme}var _memoizeCapped=memoizeCapped$2,memoizeCapped$1=_memoizeCapped,rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$3=memoizeCapped$1(function(x_){var eme=[];return x_.charCodeAt(0)===46&&eme.push(""),x_.replace(rePropName$1,function($P,tme,ame,nme){eme.push(ame?nme.replace(reEscapeChar$1,"$1"):tme||$P)}),eme}),_stringToPath=stringToPath$3,isArray$g=isArray_1,isKey$4=_isKey,stringToPath$2=_stringToPath,toString$7=toString_1;function castPath$7(x_,eme){return isArray$g(x_)?x_:isKey$4(x_,eme)?[x_]:stringToPath$2(toString$7(x_))}var _castPath=castPath$7,isSymbol$2=isSymbol_1,INFINITY$3=1/0;function toKey$7(x_){if(typeof x_=="string"||isSymbol$2(x_))return x_;var eme=x_+"";return eme=="0"&&1/x_==-INFINITY$3?"-0":eme}var _toKey=toKey$7,castPath$6=_castPath,toKey$6=_toKey;function baseGet$8(x_,eme){eme=castPath$6(eme,x_);for(var $P=0,tme=eme.length;x_!=null&&$P<tme;)x_=x_[toKey$6(eme[$P++])];return $P&&$P==tme?x_:void 0}var _baseGet=baseGet$8,baseGet$7=_baseGet;function get$5(x_,eme,$P){var tme=x_==null?void 0:baseGet$7(x_,eme);return tme===void 0?$P:tme}var get_1=get$5;const get$6=getDefaultExportFromCjs(get_1);function baseHasIn$2(x_,eme){return x_!=null&&eme in Object(x_)}var _baseHasIn=baseHasIn$2,castPath$5=_castPath,isArguments$3=isArguments_1,isArray$f=isArray_1,isIndex$3=_isIndex,isLength$1=isLength_1,toKey$5=_toKey;function hasPath$2(x_,eme,$P){eme=castPath$5(eme,x_);for(var tme=-1,ame=eme.length,nme=!1;++tme<ame;){var rme=toKey$5(eme[tme]);if(!(nme=x_!=null&&$P(x_,rme)))break;x_=x_[rme]}return nme||++tme!=ame?nme:(ame=x_==null?0:x_.length,!!ame&&isLength$1(ame)&&isIndex$3(rme,ame)&&(isArray$f(x_)||isArguments$3(x_)))}var _hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(x_,eme){return x_!=null&&hasPath$1(x_,eme,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$3=_baseIsEqual,get$4=get_1,hasIn$2=hasIn_1,isKey$3=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$4=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(x_,eme){return isKey$3(x_)&&isStrictComparable$1(eme)?matchesStrictComparable$1(toKey$4(x_),eme):function($P){var tme=get$4($P,x_);return tme===void 0&&tme===eme?hasIn$2($P,x_):baseIsEqual$3(eme,tme,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$6=_baseGet;function basePropertyDeep$2(x_){return function(eme){return baseGet$6(eme,x_)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$2=_isKey,toKey$3=_toKey;function property$2(x_){return isKey$2(x_)?baseProperty$1(toKey$3(x_)):basePropertyDeep$1(x_)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$4=identity_1,isArray$e=isArray_1,property$1=property_1;function baseIteratee$f(x_){return typeof x_=="function"?x_:x_==null?identity$4:typeof x_=="object"?isArray$e(x_)?baseMatchesProperty$1(x_[0],x_[1]):baseMatches$1(x_):property$1(x_)}var _baseIteratee=baseIteratee$f,baseIteratee$e=_baseIteratee,baseUniq$2=_baseUniq;function uniqBy(x_,eme){return x_&&x_.length?baseUniq$2(x_,baseIteratee$e(eme)):[]}var uniqBy_1=uniqBy;const uniqBy$1=getDefaultExportFromCjs(uniqBy_1);var baseIsEqual$2=_baseIsEqual;function isEqual(x_,eme){return baseIsEqual$2(x_,eme)}var isEqual_1=isEqual;const isEqual$1=getDefaultExportFromCjs(isEqual_1);var FormulaEvalError=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.name="FormulaEvalError",tme}return eme}(Error),Evaluator=function(){function x_(eme,$P){$P===void 0&&($P={defaultFilter:"html"}),this.options=$P,this.functions={},this.contextStack=[],this.context=eme,this.contextStack.push(function(tme){return tme==="&"?eme:eme==null?void 0:eme[tme]}),this.filters=__assign$3(__assign$3(__assign$3({},x_.defaultFilters),this.filters),$P==null?void 0:$P.filters),this.functions=__assign$3(__assign$3(__assign$3({},x_.defaultFunctions),this.functions),$P==null?void 0:$P.functions)}return x_.extendDefaultFilters=function(eme){x_.defaultFilters=__assign$3(__assign$3({},x_.defaultFilters),eme)},x_.extendDefaultFunctions=function(eme){x_.defaultFunctions=__assign$3(__assign$3({},x_.defaultFunctions),eme)},x_.prototype.evalute=function(eme){if(eme&&eme.type){var $P=eme.type.replace(/(?:_|\-)(\w)/g,function(ame,nme){return nme.toUpperCase()}),tme=this.functions[$P]||this[$P];if(!tme)throw new Error("".concat(eme.type," unkown."));return tme.call(this,eme)}else return eme},x_.prototype.document=function(eme){var $P=this;if(eme.body.length){var tme=eme.body.length>1,ame=eme.body.map(function(nme){var rme=$P.evalute(nme);return tme&&rme==null?"":rme});return ame.length===1?ame[0]:ame.join("")}},x_.prototype.filter=function(eme){for(var $P=this,tme=this.evalute(eme.input),ame=eme.filters.concat(),nme={filter:void 0,data:this.context,restFilters:ame};ame.length;){var rme=ame.shift(),ime=this.filters[rme.name];if(!ime)throw new Error("filter `".concat(rme.name,"` not exists."));nme.filter=rme,tme=ime.apply(nme,[tme].concat(rme.args.map(function(ome){return(ome==null?void 0:ome.type)==="mixed"?ome.body.map(function(lme){return typeof lme=="string"?lme:$P.evalute(lme)}).join(""):ome.type?$P.evalute(ome):ome})))}return tme},x_.prototype.raw=function(eme){return eme.value},x_.prototype.script=function(eme){var $P,tme=this.options.defaultFilter;return tme&&~["getter","variable"].indexOf(($P=eme.body)===null||$P===void 0?void 0:$P.type)&&(eme=__assign$3(__assign$3({},eme),{body:{type:"filter",input:eme.body,filters:[{name:tme.replace(/^\s*\|\s*/,""),args:[]}]}})),this.evalute(eme.body)},x_.prototype.expressionList=function(eme){var $P=this;return eme.body.reduce(function(tme,ame){return $P.evalute(ame)})},x_.prototype.template=function(eme){var $P=this;return eme.body.map(function(tme){return $P.evalute(tme)}).join("")},x_.prototype.templateRaw=function(eme){return eme.value},x_.prototype.getter=function(eme){var $P,tme=this.evalute(eme.host),ame=this.evalute(eme.key);return typeof ame>"u"&&(($P=eme.key)===null||$P===void 0?void 0:$P.type)==="variable"&&(ame=eme.key.name),tme==null?void 0:tme[ame]},x_.prototype.unary=function(eme){var $P=this.evalute(eme.value);switch(eme.op){case"+":return+$P;case"-":return-$P;case"~":return~$P;case"!":return!$P}},x_.prototype.formatNumber=function(eme,$P){$P===void 0&&($P=!1);var tme=typeof eme;return tme==="string"?($P?parseInt(eme,10):parseFloat(eme))||0:tme==="number"&&$P?Math.round(eme):eme??0},x_.prototype.isValidValue=function(eme){return typeof eme=="number"||typeof eme=="string"&&/^\d+(\.\d+)?$/.test(eme)},x_.prototype.power=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return!this.isValidValue($P)||!this.isValidValue(tme)?$P:Math.pow($P,tme)},x_.prototype.multiply=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return stripNumber$1(this.formatNumber($P)*this.formatNumber(tme))},x_.prototype.divide=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return stripNumber$1(this.formatNumber($P)/this.formatNumber(tme))},x_.prototype.remainder=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return this.formatNumber($P)%this.formatNumber(tme)},x_.prototype.add=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return isNaN($P)||isNaN(tme)?$P+tme:stripNumber$1(this.formatNumber($P)+this.formatNumber(tme))},x_.prototype.minus=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return stripNumber$1(this.formatNumber($P)-this.formatNumber(tme))},x_.prototype.shift=function(eme){var $P=this.evalute(eme.left),tme=this.formatNumber(this.evalute(eme.right),!0);return eme.op==="<<"?$P<<tme:eme.op==">>"?$P>>tme:$P>>>tme},x_.prototype.lt=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P<tme},x_.prototype.gt=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P>tme},x_.prototype.le=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P<=tme},x_.prototype.ge=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P>=tme},x_.prototype.eq=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P==tme},x_.prototype.ne=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P!=tme},x_.prototype.streq=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P===tme},x_.prototype.strneq=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return $P!==tme},x_.prototype.binary=function(eme){var $P=this.evalute(eme.left),tme=this.evalute(eme.right);return eme.op==="&"?$P&tme:eme.op==="^"?$P^tme:$P|tme},x_.prototype.and=function(eme){var $P=this.evalute(eme.left);return $P&&this.evalute(eme.right)},x_.prototype.or=function(eme){var $P=this.evalute(eme.left);return $P||this.evalute(eme.right)},x_.prototype.number=function(eme){return eme.value},x_.prototype.convertHostGetterToVariable=function(eme){var $P,tme;if(eme.type!=="getter")return eme;for(var ame=eme,nme=[];(($P=ame.host)===null||$P===void 0?void 0:$P.type)==="getter";)nme.push("host"),ame=ame.host;if(((tme=ame.host)===null||tme===void 0?void 0:tme.type)==="variable"&&ame.host.name==="&"){var rme={host:eme},ime=nme.reduce(function(ome,lme){return ome[lme]=__assign$3({},ome[lme]),ome[lme]},rme);return ime.host={start:ime.host.start,end:ime.host.end,type:"variable",name:this.evalute(ime.host.key)},rme.host}return eme},x_.prototype.nsVariable=function(eme){var $P=this,tme=eme.body;if(eme.namespace==="window")this.contextStack.push(function(rme){return rme==="&"?window:window[rme]});else if(eme.namespace==="cookie")tme=this.convertHostGetterToVariable(tme),this.contextStack.push(function(rme){return getCookie(rme)});else if(eme.namespace==="ls"||eme.namespace==="ss"){var ame=eme.namespace;tme=this.convertHostGetterToVariable(tme),this.contextStack.push(function(rme){var ime=ame==="ss"?sessionStorage.getItem(rme):localStorage.getItem(rme);if(typeof ime=="string"){if(/^\d+$/.test(ime)){var ome=JSON.parse(ime);return"".concat(ome)===ime?ome:ime}return parseJson$1(ime,ime)}})}else throw new Error("Unsupported namespace: "+eme.namespace);var nme=this.evalute(tme);return nme!=null&&nme.then?nme.then(function(){return $P.contextStack.pop()}):this.contextStack.pop(),nme},x_.prototype.variable=function(eme){var $P=this.contextStack[this.contextStack.length-1];return $P(eme.name)},x_.prototype.identifier=function(eme){return eme.name},x_.prototype.array=function(eme){var $P=this;return eme.members.map(function(tme){return $P.evalute(tme)})},x_.prototype.literal=function(eme){return eme.value},x_.prototype.string=function(eme){return eme.value},x_.prototype.object=function(eme){var $P=this,tme={};return eme.members.forEach(function(ame){var nme=ame.key,rme=ame.value;tme[$P.evalute(nme)]=$P.evalute(rme)}),tme},x_.prototype.conditional=function(eme){return this.evalute(eme.test)?this.evalute(eme.consequent):this.evalute(eme.alternate)},x_.prototype.funcCall=function(eme){var $P=this,tme="fn".concat(eme.identifier),ame=this.functions[tme]||this[tme]||this.filters.hasOwnProperty(eme.identifier)&&this.filters[eme.identifier];if(!ame)throw new FormulaEvalError("".concat(eme.identifier,"函数没有定义"));var nme=eme.args;return~["IF","AND","OR","XOR","IFS"].indexOf(eme.identifier)?nme=nme.map(function(rme){return function(){return $P.evalute(rme)}}):nme=nme.map(function(rme){return $P.evalute(rme)}),ame.apply(this,nme)},x_.prototype.anonymousFunction=function(eme){return eme},x_.prototype.callAnonymousFunction=function(eme,$P){var tme=createObject$2(this.contextStack[this.contextStack.length-1]("&")||{},{});eme.args.forEach(function(nme){if(nme.type!=="variable")throw new Error("expected a variable as argument");tme[nme.name]=$P.shift()}),this.contextStack.push(function(nme){return nme==="&"?tme:tme[nme]});var ame=this.evalute(eme.return);return this.contextStack.pop(),ame},x_.prototype.fnIF=function(eme,$P,tme){return eme()?$P():tme()},x_.prototype.fnAND=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return eme.every(function(tme){return tme()})},x_.prototype.fnOR=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return eme.some(function(tme){return tme()})},x_.prototype.fnXOR=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return!!(eme.filter(function(tme){return tme()}).length%2)},x_.prototype.fnIFS=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];for(eme.length%2&&eme.splice(eme.length-1,0,function(){return!0});eme.length;){var tme=eme.shift(),ame=eme.shift();if(tme())return ame()}},x_.prototype.fnABS=function(eme){return eme=this.formatNumber(eme),Math.abs(eme)},x_.prototype.fnMAX=function(){for(var eme=this,$P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=normalizeArgs($P);return Math.max.apply(Math,ame.map(function(nme){return eme.formatNumber(nme)}))},x_.prototype.fnMIN=function(){for(var eme=this,$P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=normalizeArgs($P);return Math.min.apply(Math,ame.map(function(nme){return eme.formatNumber(nme)}))},x_.prototype.fnSUM=function(){for(var eme=this,$P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=normalizeArgs($P);return ame.reduce(function(nme,rme){return nme+eme.formatNumber(rme)||0},0)},x_.prototype.fnINT=function(eme){return Math.floor(this.formatNumber(eme))},x_.prototype.fnMOD=function(eme,$P){return this.formatNumber(eme)%this.formatNumber($P)},x_.prototype.fnPI=function(){return Math.PI},x_.prototype.fnROUND=function(eme,$P){$P===void 0&&($P=2),eme=this.formatNumber(eme),$P=this.formatNumber($P);var tme=Math.round($P);if(tme){var ame=Math.pow(10,tme);return Math.round(eme*ame)/ame}return Math.round(eme)},x_.prototype.fnFLOOR=function(eme,$P){$P===void 0&&($P=2),eme=this.formatNumber(eme),$P=this.formatNumber($P);var tme=Math.round($P);if(tme){var ame=Math.pow(10,tme);return Math.floor(eme*ame)/ame}return Math.floor(eme)},x_.prototype.fnCEIL=function(eme,$P){$P===void 0&&($P=2),eme=this.formatNumber(eme),$P=this.formatNumber($P);var tme=Math.round($P);if(tme){var ame=Math.pow(10,tme);return Math.ceil(eme*ame)/ame}return Math.ceil(eme)},x_.prototype.fnSQRT=function(eme){return Math.sqrt(this.formatNumber(eme))},x_.prototype.fnAVG=function(){for(var eme=this,$P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=normalizeArgs($P);return this.fnSUM.apply(this,ame.map(function(nme){return eme.formatNumber(nme)}))/ame.length},x_.prototype.fnDEVSQ=function(){for(var eme,$P,tme=this,ame=[],nme=0;nme<arguments.length;nme++)ame[nme]=arguments[nme];if(ame.length===0)return null;var rme=normalizeArgs(ame),ime=rme.map(function(fme){return tme.formatNumber(fme)}),ome=ime.reduce(function(fme,pme){return fme+pme||0},0),lme=ome/ime.length,sme=0;try{for(var cme=__values$1(ime),dme=cme.next();!dme.done;dme=cme.next()){var ume=dme.value;sme+=Math.pow(ume-lme,2)}}catch(fme){eme={error:fme}}finally{try{dme&&!dme.done&&($P=cme.return)&&$P.call(cme)}finally{if(eme)throw eme.error}}return sme},x_.prototype.fnAVEDEV=function(){for(var eme,$P,tme=this,ame=[],nme=0;nme<arguments.length;nme++)ame[nme]=arguments[nme];if(ame.length===0)return null;var rme=ame;ame.length===1&&Array.isArray(ame[0])&&(rme=ame[0]);var ime=rme.map(function(fme){return tme.formatNumber(fme)}),ome=ime.reduce(function(fme,pme){return fme+pme||0},0),lme=ome/ime.length,sme=0;try{for(var cme=__values$1(ime),dme=cme.next();!dme.done;dme=cme.next()){var ume=dme.value;sme+=Math.abs(ume-lme)}}catch(fme){eme={error:fme}}finally{try{dme&&!dme.done&&($P=cme.return)&&$P.call(cme)}finally{if(eme)throw eme.error}}return sme/ime.length},x_.prototype.fnHARMEAN=function(){for(var eme,$P,tme=this,ame=[],nme=0;nme<arguments.length;nme++)ame[nme]=arguments[nme];if(ame.length===0)return null;var rme=ame;ame.length===1&&Array.isArray(ame[0])&&(rme=ame[0]);var ime=rme.map(function(dme){return tme.formatNumber(dme)}),ome=0;try{for(var lme=__values$1(ime),sme=lme.next();!sme.done;sme=lme.next()){var cme=sme.value;ome+=1/cme}}catch(dme){eme={error:dme}}finally{try{sme&&!sme.done&&($P=lme.return)&&$P.call(lme)}finally{if(eme)throw eme.error}}return ime.length/ome},x_.prototype.fnLARGE=function(eme,$P){var tme=this;if(eme.length===0)return null;var ame=eme.map(function(nme){return tme.formatNumber(nme)});return $P<0||ame.length<$P?null:ame.sort(function(nme,rme){return rme-nme})[$P-1]},x_.prototype.fnUPPERMONEY=function(eme){var $P;eme=this.formatNumber(eme);var tme=14;if((($P=eme.toString().split(".")[0])===null||$P===void 0?void 0:$P.length)>tme)return"最大数额只支持到兆(既小数点前".concat(tme,"位)");var ame=["角","分"],nme=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],rme=[["元","万","亿","兆"],["","拾","佰","仟"]],ime=eme<0?"欠":"";eme=Math.abs(eme);for(var ome="",lme=0;lme<ame.length;lme++)ome+=(nme[Math.floor(eme*10*Math.pow(10,lme))%10]+ame[lme]).replace(/零./,"");ome=ome||"整",eme=Math.floor(eme);for(var lme=0;lme<rme[0].length&&eme>0;lme++){for(var sme="",cme=0;cme<rme[1].length&&eme>0;cme++)sme=nme[eme%10]+rme[1][cme]+sme,eme=Math.floor(eme/10);ome=sme.replace(/(零.)*零$/,"").replace(/^$/,"零")+rme[0][lme]+ome}return ime+ome.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")},x_.prototype.fnRAND=function(){return Math.random()},x_.prototype.fnLAST=function(eme){return eme.length?eme[eme.length-1]:null},x_.prototype.fnPOW=function(eme,$P){return!this.isValidValue(eme)||!this.isValidValue($P)?eme:Math.pow(eme,$P)},x_.prototype.normalizeText=function(eme){return eme instanceof Date?hooks(eme).format():"".concat(eme)},x_.prototype.fnLEFT=function(eme,$P){return eme=this.normalizeText(eme),eme.substring(0,$P)},x_.prototype.fnRIGHT=function(eme,$P){return eme=this.normalizeText(eme),eme.substring(eme.length-$P,eme.length)},x_.prototype.fnLEN=function(eme){return eme=this.normalizeText(eme),eme==null?void 0:eme.length},x_.prototype.fnLENGTH=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return this.fnLEN.call(this,eme)},x_.prototype.fnISEMPTY=function(eme){return!eme||!String(eme).trim()},x_.prototype.fnCONCATENATE=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return eme.join("")},x_.prototype.fnCHAR=function(eme){return String.fromCharCode(eme)},x_.prototype.fnLOWER=function(eme){return eme=this.normalizeText(eme),eme.toLowerCase()},x_.prototype.fnUPPER=function(eme){return eme=this.normalizeText(eme),eme.toUpperCase()},x_.prototype.fnUPPERFIRST=function(eme){return eme=this.normalizeText(eme),upperFirst$2(eme)},x_.prototype.fnPADSTART=function(eme,$P,tme){return eme=this.normalizeText(eme),padStart$1(eme,$P,tme)},x_.prototype.fnCAPITALIZE=function(eme){return eme=this.normalizeText(eme),capitalize$2(eme)},x_.prototype.fnESCAPE=function(eme){return eme=this.normalizeText(eme),escape$3(eme)},x_.prototype.fnTRUNCATE=function(eme,$P){return eme=this.normalizeText(eme),truncate$1(eme,{length:$P})},x_.prototype.fnBEFORELAST=function(eme,$P){return $P===void 0&&($P="."),eme=this.normalizeText(eme),$P=this.normalizeText($P),eme.split($P).slice(0,-1).join($P)||eme+""},x_.prototype.fnSPLIT=function(eme,$P){return $P===void 0&&($P=","),eme=this.normalizeText(eme),eme.split($P)},x_.prototype.fnTRIM=function(eme){return eme=this.normalizeText(eme),eme.trim()},x_.prototype.fnSTRIPTAG=function(eme){return eme=this.normalizeText(eme),eme.replace(/<\/?[^>]+(>|$)/g,"")},x_.prototype.fnLINEBREAK=function(eme){return eme=this.normalizeText(eme),eme.replace(/(?:\r\n|\r|\n)/g,"<br/>")},x_.prototype.fnSTARTSWITH=function(eme,$P){return $P=this.normalizeText($P),$P?(eme=this.normalizeText(eme),eme.indexOf($P)===0):!1},x_.prototype.fnENDSWITH=function(eme,$P){return $P=this.normalizeText($P),$P?(eme=this.normalizeText(eme),eme.indexOf($P,eme.length-$P.length)!==-1):!1},x_.prototype.fnCONTAINS=function(eme,$P){return $P=this.normalizeText($P),$P?(eme=this.normalizeText(eme),!!~eme.indexOf($P)):!1},x_.prototype.fnREPLACE=function(eme,$P,tme){eme=this.normalizeText(eme),$P=this.normalizeText($P),tme=this.normalizeText(tme);var ame=eme;if(typeof tme>"u"||!$P)return ame;for(var nme=!(typeof tme=="string"&&tme.includes($P));;){var rme=ame.indexOf($P);if(!~rme||(ame=ame.substring(0,rme)+tme+ame.substring(rme+$P.length),!nme))break}return ame},x_.prototype.fnSEARCH=function(eme,$P,tme){tme===void 0&&(tme=0),$P=this.normalizeText($P),eme=this.normalizeText(eme),tme=this.formatNumber(tme);var ame=eme.indexOf($P,tme);return~ame&&$P?ame:-1},x_.prototype.fnMID=function(eme,$P,tme){return eme=this.normalizeText(eme),$P=this.formatNumber($P),tme=this.formatNumber(tme),eme.substring($P,$P+tme)},x_.prototype.fnBASENAME=function(eme){return eme=this.normalizeText(eme),eme.split(/[\\/]/).pop()},x_.prototype.fnUUID=function(eme){eme===void 0&&(eme=36);var $P=Math.min(Math.max(eme,0),36);return uuidv4$1().slice(0,$P)},x_.prototype.fnDATE=function(eme,$P,tme,ame,nme,rme){return $P===void 0?new Date(eme):new Date(eme,$P,tme,ame,nme,rme)},x_.prototype.fnTIMESTAMP=function(eme,$P){return parseInt(hooks(this.normalizeDate(eme)).format($P==="x"?"x":"X"),10)},x_.prototype.fnTODAY=function(){return new Date},x_.prototype.fnNOW=function(){return new Date},x_.prototype.fnWEEKDAY=function(eme,$P){var tme=hooks(this.normalizeDate(eme));return $P===2?tme.isoWeekday():tme.weekday()},x_.prototype.fnWEEK=function(eme,$P){$P===void 0&&($P=!1);var tme=hooks(this.normalizeDate(eme));return $P?tme.isoWeek():tme.week()},x_.prototype.fnDATETOSTR=function(eme,$P){return $P===void 0&&($P="YYYY-MM-DD HH:mm:ss"),eme=this.normalizeDate(eme),hooks(eme).format($P)},x_.prototype.fnDATERANGESPLIT=function(eme,$P,tme,ame){var nme=this;if(ame===void 0&&(ame=","),!eme||typeof eme!="string")return eme;var rme=eme.split(ame).map(function(ime){return ime&&tme?hooks(nme.normalizeDate(ime.trim())).format(tme):ime.trim()});return[0,"0","start"].includes($P)?rme[0]:[1,"1","end"].includes($P)?rme[1]:rme},x_.prototype.fnSTARTOF=function(eme,$P,tme){var ame=hooks(this.normalizeDate(eme)).startOf($P||"day");return tme?ame.format(tme):ame.toDate()},x_.prototype.fnENDOF=function(eme,$P,tme){var ame=hooks(this.normalizeDate(eme)).endOf($P||"day");return tme?ame.format(tme):ame.toDate()},x_.prototype.normalizeDate=function(eme){if(typeof eme=="string"||typeof eme=="number"){var $P=["","YYYY-MM-DD HH:mm:ss","X"];for(/^\d{10}((\.\d+)*)$/.test(eme.toString())?$P=["X","x","YYYY-MM-DD HH:mm:ss",""]:/^\d{13}((\.\d+)*)$/.test(eme.toString())&&($P=["x","X","YYYY-MM-DD HH:mm:ss",""]);$P.length;){var tme=$P.shift(),ame=hooks(eme,tme);if(ame.isValid())return ame.toDate()}}return eme},x_.prototype.normalizeDateRange=function(eme){var $P=this;return(Array.isArray(eme)?eme:eme.split(",")).map(function(tme){return $P.normalizeDate(String(tme).trim())})},x_.prototype.fnYEAR=function(eme){return eme=this.normalizeDate(eme),eme.getFullYear()},x_.prototype.fnMONTH=function(eme){return eme=this.normalizeDate(eme),eme.getMonth()+1},x_.prototype.fnDAY=function(eme){return eme=this.normalizeDate(eme),eme.getDate()},x_.prototype.fnHOUR=function(eme){return eme=this.normalizeDate(eme),eme.getHours()},x_.prototype.fnMINUTE=function(eme){return eme=this.normalizeDate(eme),eme.getMinutes()},x_.prototype.fnSECOND=function(eme){return eme=this.normalizeDate(eme),eme.getSeconds()},x_.prototype.fnYEARS=function(eme,$P){return eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).diff(hooks($P),"year")},x_.prototype.fnMINUTES=function(eme,$P){return eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).diff(hooks($P),"minutes")},x_.prototype.fnDAYS=function(eme,$P){return eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).diff(hooks($P),"days")},x_.prototype.fnHOURS=function(eme,$P){return eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).diff(hooks($P),"hour")},x_.prototype.fnDATEMODIFY=function(eme,$P,tme){return eme=this.normalizeDate(eme),hooks(eme).add($P,tme).toDate()},x_.prototype.fnSTRTODATE=function(eme,$P){return $P===void 0&&($P=""),hooks(eme,$P).toDate()},x_.prototype.fnISBEFORE=function(eme,$P,tme){return tme===void 0&&(tme="day"),eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).isBefore(hooks($P),tme)},x_.prototype.fnISAFTER=function(eme,$P,tme){return tme===void 0&&(tme="day"),eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).isAfter(hooks($P),tme)},x_.prototype.fnBETWEENRANGE=function(eme,$P,tme,ame){tme===void 0&&(tme="day"),ame===void 0&&(ame="[]");var nme=this.normalizeDateRange($P);return hooks(this.normalizeDate(eme)).isBetween(nme[0],nme[1],tme,ame)},x_.prototype.fnISSAMEORBEFORE=function(eme,$P,tme){return tme===void 0&&(tme="day"),eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).isSameOrBefore(hooks($P),tme)},x_.prototype.fnISSAMEORAFTER=function(eme,$P,tme){return tme===void 0&&(tme="day"),eme=this.normalizeDate(eme),$P=this.normalizeDate($P),hooks(eme).isSameOrAfter(hooks($P),tme)},x_.prototype.fnCOUNT=function(eme){return Array.isArray(eme)?eme.length:eme?1:0},x_.prototype.fnARRAYMAP=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).map(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYFILTER=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).filter(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYFINDINDEX=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).findIndex(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYFIND=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).find(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYSOME=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).some(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYEVERY=function(eme,$P){var tme=this;if(!$P||$P.type!=="anonymous_function")throw new Error("expected an anonymous function get "+$P);return(Array.isArray(eme)?eme:[]).every(function(ame,nme,rme){return tme.callAnonymousFunction($P,[ame,nme,rme])})},x_.prototype.fnARRAYINCLUDES=function(eme,$P){return(Array.isArray(eme)?eme:[]).includes($P)},x_.prototype.fnCOMPACT=function(eme){var $P,tme;if(Array.isArray(eme)){var ame=0,nme=[];try{for(var rme=__values$1(eme),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value;ome&&(nme[ame++]=ome)}}catch(lme){$P={error:lme}}finally{try{ime&&!ime.done&&(tme=rme.return)&&tme.call(rme)}finally{if($P)throw $P.error}}return nme}else return[]},x_.prototype.fnJOIN=function(eme,$P){return $P===void 0&&($P=""),Array.isArray(eme)?eme.join($P):""},x_.prototype.fnCONCAT=function(){for(var eme=[],$P=0;$P<arguments.length;$P++)eme[$P]=arguments[$P];return eme!=null&&eme[0]&&!Array.isArray(eme[0])&&(eme[0]=[eme[0]]),eme.reduce(function(tme,ame){return tme.concat(ame)},[]).filter(function(tme){return tme})},x_.prototype.fnUNIQ=function(eme,$P){return $P?uniqBy$1(eme,$P):uniqWith$1(eme,isEqual$1)},x_.prototype.fnENCODEJSON=function(eme){return JSON.stringify(eme)},x_.prototype.fnDECODEJSON=function(eme){return JSON.parse(eme)},x_.prototype.fnGET=function(eme,$P,tme){return get$6(eme,$P,tme)},x_.prototype.fnISTYPE=function(eme,$P){switch($P){case"string":return typeof eme=="string";case"number":return typeof eme=="number";case"array":return Array.isArray(eme);case"date":return!!(eme&&eme instanceof Date);case"plain-object":return isPlainObject$b(eme);case"nil":return!eme}return!1},x_.defaultFilters={},x_.defaultFunctions={},x_}();Evaluator.setDefaultFilters=Evaluator.extendDefaultFilters;Evaluator.setDefaultFunctions=Evaluator.extendDefaultFunctions;function getCookie(x_){var eme="; ".concat(document.cookie),$P=eme.split("; ".concat(x_,"="));if($P.length===2)return $P.pop().split(";").shift()}function parseJson$1(x_,eme){try{return JSON.parse(x_)}catch{return eme}}function stripNumber$1(x_){return typeof x_=="number"&&!Number.isInteger(x_)?parseFloat(x_.toPrecision(16)):x_}function normalizeArgs(x_){return x_.length===1&&Array.isArray(x_[0])&&(x_=x_[0]),x_}function createObject$2(x_,eme,$P){var tme=x_?Object.create(x_,__assign$3(__assign$3({},$P),{__super:{value:x_,writable:!1,enumerable:!1}})):Object.create(Object.prototype,$P);return eme&&Object.keys(eme).forEach(function(ame){return tme[ame]=eme[ame]}),tme}function createStr$1(){return("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16)}function uuidv4$1(){var x_=createStr$1(),eme=createStr$1();return x_.slice(0,8)+"-"+x_.slice(8,12)+"-4"+x_.slice(13)+"-a"+eme.slice(1,4)+"-"+eme.slice(4)}function runSequence(x_,eme){return __awaiter(this,void 0,void 0,function(){var $P,tme=this;return __generator(this,function(ame){switch(ame.label){case 0:return $P=[],[4,x_.reduce(function(nme,rme,ime){return __awaiter(tme,void 0,void 0,function(){var ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return[4,nme];case 1:return sme.sent(),lme=(ome=$P).push,[4,eme(rme,ime)];case 2:return lme.apply(ome,[sme.sent()]),[2]}})})},Promise.resolve())];case 1:return ame.sent(),[2,$P]}})})}var AsyncEvaluator=function(x_){__extends$2(eme,x_);function eme($P,tme){return x_.call(this,$P,tme)||this}return eme.prototype.document=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:return $P.body.length?(tme=$P.body.length>1,[4,runSequence($P.body,function(ime){return __awaiter(nme,void 0,void 0,function(){var ome;return __generator(this,function(lme){return ome=this.evalute(ime),tme&&ome==null?[2,""]:[2,ome]})})})]):[2,void 0];case 1:return ame=rme.sent(),[2,ame.length===1?ame[0]:ame.join("")]}})})},eme.prototype.filter=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme=this;return __generator(this,function(sme){switch(sme.label){case 0:return[4,this.evalute($P.input)];case 1:tme=sme.sent(),ame=$P.filters.concat(),nme={filter:void 0,data:this.context,restFilters:ame},sme.label=2;case 2:if(!ame.length)return[3,4];if(rme=ame.shift(),ime=this.filters[rme.name],!ime)throw new Error("filter `".concat(rme.name,"` not exists."));return nme.filter=rme,[4,runSequence(rme.args,function(cme){return __awaiter(lme,void 0,void 0,function(){var dme,ume=this;return __generator(this,function(fme){switch(fme.label){case 0:return(cme==null?void 0:cme.type)!=="mixed"?[3,2]:[4,runSequence(cme.body,function(pme){return typeof pme=="string"?pme:ume.evalute(pme)})];case 1:return dme=fme.sent(),[2,dme.join("")];case 2:if(cme.type)return[2,this.evalute(cme)];fme.label=3;case 3:return[2,cme]}})})})];case 3:return ome=sme.sent(),tme=ime.apply(nme,[tme].concat(ome)),[3,2];case 4:return[2,tme]}})})},eme.prototype.template=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame=this;return __generator(this,function(nme){switch(nme.label){case 0:return[4,runSequence($P.body,function(rme){return ame.evalute(rme)})];case 1:return tme=nme.sent(),[2,tme.join("")]}})})},eme.prototype.getter=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:return[4,this.evalute($P.host)];case 1:return ame=rme.sent(),[4,this.evalute($P.key)];case 2:return nme=rme.sent(),typeof nme>"u"&&((tme=$P.key)===null||tme===void 0?void 0:tme.type)==="variable"&&(nme=$P.key.name),[2,ame==null?void 0:ame[nme]]}})})},eme.prototype.unary=function($P){return __awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,this.evalute($P.value)];case 1:switch(tme=ame.sent(),$P.op){case"+":return[2,+tme];case"-":return[2,-tme];case"~":return[2,~tme];case"!":return[2,!tme]}return[2]}})})},eme.prototype.power=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,Math.pow(this.formatNumber(tme),this.formatNumber(ame))]}})})},eme.prototype.multiply=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,stripNumber$1(this.formatNumber(tme)*this.formatNumber(ame))]}})})},eme.prototype.divide=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,stripNumber$1(this.formatNumber(tme)/this.formatNumber(ame))]}})})},eme.prototype.remainder=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,this.formatNumber(tme)%this.formatNumber(ame)]}})})},eme.prototype.add=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),isNaN(tme)||isNaN(ame)?[2,tme+ame]:[2,stripNumber$1(this.formatNumber(tme)+this.formatNumber(ame))]}})})},eme.prototype.minus=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,stripNumber$1(this.formatNumber(tme)-this.formatNumber(ame))]}})})},eme.prototype.shift=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.formatNumber(this.evalute($P.right),!0)];case 2:return ame=nme.sent(),$P.op==="<<"?[2,tme<<ame]:$P.op==">>"?[2,tme>>ame]:[2,tme>>>ame]}})})},eme.prototype.lt=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme<ame]}})})},eme.prototype.gt=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme>ame]}})})},eme.prototype.le=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme<=ame]}})})},eme.prototype.ge=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme>=ame]}})})},eme.prototype.eq=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme==ame]}})})},eme.prototype.ne=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme!=ame]}})})},eme.prototype.streq=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme===ame]}})})},eme.prototype.strneq=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),[2,tme!==ame]}})})},eme.prototype.binary=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=nme.sent(),[4,this.evalute($P.right)];case 2:return ame=nme.sent(),$P.op==="&"?[2,tme&ame]:$P.op==="^"?[2,tme^ame]:[2,tme|ame]}})})},eme.prototype.and=function($P){return __awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=ame.sent(),[2,tme&&this.evalute($P.right)]}})})},eme.prototype.or=function($P){return __awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,this.evalute($P.left)];case 1:return tme=ame.sent(),[2,tme||this.evalute($P.right)]}})})},eme.prototype.array=function($P){var tme=this;return runSequence($P.members,function(ame){return tme.evalute(ame)})},eme.prototype.object=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame=this;return __generator(this,function(nme){switch(nme.label){case 0:return tme={},[4,$P.members.reduce(function(rme,ime,ome){var lme=ime.key,sme=ime.value;return __awaiter(ame,void 0,void 0,function(){var cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:return[4,rme];case 1:return ume.sent(),[4,this.evalute(lme)];case 2:return cme=ume.sent(),[4,this.evalute(sme)];case 3:return dme=ume.sent(),tme[cme]=dme,[2]}})})},Promise.resolve())];case 1:return nme.sent(),[2,tme]}})})},eme.prototype.conditional=function($P){return __awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,this.evalute($P.test)];case 1:return ame.sent()?[4,this.evalute($P.consequent)]:[3,3];case 2:return tme=ame.sent(),[3,5];case 3:return[4,this.evalute($P.alternate)];case 4:tme=ame.sent(),ame.label=5;case 5:return[2,tme]}})})},eme.prototype.funcCall=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme=this;return __generator(this,function(ime){switch(ime.label){case 0:if(tme="fn".concat($P.identifier),ame=this.functions[tme]||this[tme]||this.filters.hasOwnProperty($P.identifier)&&this.filters[$P.identifier],!ame)throw new FormulaEvalError("".concat($P.identifier,"函数没有定义"));return nme=$P.args,~["IF","AND","OR","XOR","IFS"].indexOf($P.identifier)?(nme=nme.map(function(ome){return function(){return rme.evalute(ome)}}),[3,3]):[3,1];case 1:return[4,runSequence(nme,function(ome){return rme.evalute(ome)})];case 2:nme=ime.sent(),ime.label=3;case 3:return[2,ame.apply(this,nme)]}})})},eme.prototype.callAnonymousFunction=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:return ame=createObject$2(this.contextStack[this.contextStack.length-1]("&")||{},{}),$P.args.forEach(function(ime){if(ime.type!=="variable")throw new Error("expected a variable as argument");ame[ime.name]=tme.shift()}),this.contextStack.push(function(ime){return ime==="&"?ame:ame[ime]}),[4,this.evalute($P.return)];case 1:return nme=rme.sent(),this.contextStack.pop(),[2,nme]}})})},eme.prototype.fnIF=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme;return __generator(this,function(rme){switch(rme.label){case 0:return[4,$P()];case 1:return rme.sent()?[4,tme()]:[3,3];case 2:return nme=rme.sent(),[3,5];case 3:return[4,ame()];case 4:nme=rme.sent(),rme.label=5;case 5:return[2,nme]}})})},eme.prototype.fnAND=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return __awaiter(this,void 0,void 0,function(){var ame=this;return __generator(this,function(nme){return $P.length?[2,$P.reduce(function(rme,ime){return __awaiter(ame,void 0,void 0,function(){var ome;return __generator(this,function(lme){switch(lme.label){case 0:return[4,rme];case 1:return ome=lme.sent(),ome?[2,ime()]:[2,ome]}})})},Promise.resolve(!0))]:[2,!1]})})},eme.prototype.fnOR=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return __awaiter(this,void 0,void 0,function(){var ame=this;return __generator(this,function(nme){return $P.length?[2,$P.reduce(function(rme,ime){return __awaiter(ame,void 0,void 0,function(){var ome;return __generator(this,function(lme){switch(lme.label){case 0:return[4,rme];case 1:return ome=lme.sent(),ome?[2,!0]:[2,ime()]}})})},Promise.resolve(!1))]:[2,!1]})})},eme.prototype.fnXOR=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){switch(ame.label){case 0:return $P.length?[4,runSequence($P,function(nme){return nme()})]:[2,!1];case 1:return[2,!!(ame.sent().filter(function(nme){return nme}).length%2)]}})})},eme.prototype.fnIFS=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return __awaiter(this,void 0,void 0,function(){var ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:$P.length%2&&$P.splice($P.length-1,0,function(){return!0}),rme.label=1;case 1:return $P.length?(ame=$P.shift(),nme=$P.shift(),[4,ame()]):[3,5];case 2:return rme.sent()?[4,nme()]:[3,4];case 3:return[2,rme.sent()];case 4:return[3,1];case 5:return[2]}})})},eme.prototype.fnARRAYMAP=function($P,tme){var ame=this;if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return(Array.isArray($P)?$P:[]).reduce(function(nme,rme,ime){return __awaiter(ame,void 0,void 0,function(){var ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return[4,nme];case 1:return ome=cme.sent(),sme=(lme=ome).push,[4,this.callAnonymousFunction(tme,[rme,ime])];case 2:return sme.apply(lme,[cme.sent()]),[2,ome]}})})},Promise.resolve([]))},eme.prototype.fnARRAYFILTER=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame=this;return __generator(this,function(nme){switch(nme.label){case 0:if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return[4,(Array.isArray($P)?$P:[]).reduce(function(rme,ime,ome){return __awaiter(ame,void 0,void 0,function(){var lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return[4,rme];case 1:return lme=cme.sent(),[4,this.callAnonymousFunction(tme,[ime,ome])];case 2:return sme=cme.sent(),sme&&lme.push(ime),[2,lme]}})})},Promise.resolve([]))];case 1:return[2,nme.sent()]}})})},eme.prototype.fnARRAYFINDINDEX=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return ame=-1,[4,(Array.isArray($P)?$P:[]).reduce(function(ime,ome,lme){return __awaiter(nme,void 0,void 0,function(){var sme;return __generator(this,function(cme){switch(cme.label){case 0:return[4,ime];case 1:return cme.sent(),[4,this.callAnonymousFunction(tme,[ome,lme])];case 2:return sme=cme.sent(),sme&&(ame=lme),[2]}})})},Promise.resolve())];case 1:return rme.sent(),[2,ame]}})})},eme.prototype.fnARRAYFIND=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return ame=void 0,[4,(Array.isArray($P)?$P:[]).reduce(function(ime,ome,lme){return __awaiter(nme,void 0,void 0,function(){var sme;return __generator(this,function(cme){switch(cme.label){case 0:return[4,ime];case 1:return cme.sent(),[4,this.callAnonymousFunction(tme,[ome,lme])];case 2:return sme=cme.sent(),sme&&(ame=ome),[2]}})})},Promise.resolve())];case 1:return rme.sent(),[2,ame]}})})},eme.prototype.fnARRAYSOME=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return[4,(Array.isArray($P)?$P:[]).reduce(function(ime,ome,lme){return __awaiter(nme,void 0,void 0,function(){var sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return[4,ime];case 1:return sme=dme.sent(),[4,this.callAnonymousFunction(tme,[ome,lme])];case 2:return cme=dme.sent(),[2,sme||cme]}})})},Promise.resolve(!1))];case 1:return ame=rme.sent(),[2,ame]}})})},eme.prototype.fnARRAYEVERY=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:if(!tme||tme.type!=="anonymous_function")throw new Error("expected an anonymous function get "+tme);return[4,(Array.isArray($P)?$P:[]).reduce(function(ime,ome,lme){return __awaiter(nme,void 0,void 0,function(){var sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return[4,ime];case 1:return sme=dme.sent(),[4,this.callAnonymousFunction(tme,[ome,lme])];case 2:return cme=dme.sent(),[2,sme&&cme]}})})},Promise.resolve(!0))];case 1:return ame=rme.sent(),[2,ame]}})})},eme}(Evaluator),entityMap$1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},escapeHtml$1=function(x_){return String(x_).replace(/[&<>"'\/]/g,function(eme){return entityMap$1[eme]})},filters={raw:function(x_){return x_},html:function(x_){return x_==null?x_:escapeHtml$1(x_)}};function registerFilter(x_,eme){filters[x_]=eme,Evaluator.extendDefaultFilters(filters)}function extendsFilters(x_){Object.assign(filters,x_),Evaluator.extendDefaultFilters(filters)}function getFilters(){return filters}var TokenName={};TokenName[1]="Boolean";TokenName[2]="Raw";TokenName[3]="Variable";TokenName[4]="OpenScript";TokenName[5]="CloseScript";TokenName[6]="EOF";TokenName[7]="Identifier";TokenName[8]="Literal";TokenName[9]="Numeric";TokenName[10]="Punctuator";TokenName[11]="String";TokenName[12]="RegularExpression";TokenName[13]="TemplateRaw";TokenName[14]="TemplateLeftBrace";TokenName[15]="TemplateRightBrace";TokenName[16]="OpenFilter";TokenName[17]="Char";var mainStates={START:0,SCRIPT:1,EXPRESSION:2,BLOCK:3,Template:4,Filter:5},rawStates={START:0,ESCAPE:1},numberStates={START:0,ZERO:1,DIGIT:2,POINT:3,DIGIT_FRACTION:4,EXP:5},stringStates={START:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},punctuatorList=["===","!==",">>>","==","!=","<>","<=",">=","||","&&","++","--","<<",">>","**","+=","*=","/=","<",">","=","*","/","-","+","^","!","~","%","&","|","(",")","[","]","{","}","?",":",";",",",".","$"],escapes={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8};function isDigit1to9(x_){return x_>="1"&&x_<="9"}function isDigit(x_){return x_>="0"&&x_<="9"}function isExp(x_){return x_==="e"||x_==="E"}function escapeString(x_,eme){return eme===void 0&&(eme=[]),x_.replace(/\\(.)/g,function($P,tme){return tme==="b"?"\b":tme==="f"?"\f":tme==="n"?`
`:tme==="r"?"\r":tme==="t"?"	":tme==="v"?"\v":tme==="\\"?"\\":tme==="/"?"/":~eme.indexOf(tme)?tme:$P})}function formatNumber(x_){return Number(x_)}function lexer(x_,eme){eme===void 0&&(eme={});var $P=1,tme=1,ame=0,nme=mainStates.START,rme=[nme],ime=[];eme=__assign$3({},eme);var ome=eme.allowFilter!==!1;if(!eme.isFilter){var lme=Object.keys(getFilters());eme.filters&&lme.push.apply(lme,__spreadArray([],__read$3(Object.keys(eme.filters)),!1)),eme.isFilter=function(Eme){return lme.includes(Eme)}}(eme.evalMode||eme.variableMode)&&sme(mainStates.EXPRESSION);function sme(Eme){rme.push(nme=Eme)}function cme(){rme.pop(),nme=rme[rme.length-1]}function dme(Eme){if(Eme&&typeof Eme=="string"){var xme=Eme.split(/[\r\n]+/);return{index:ame+Eme.length,line:$P+xme.length-1,column:tme+xme[xme.length-1].length}}return{index:ame,line:$P,column:tme}}function ume(){if(ame>=x_.length)return{type:TokenName[6],value:void 0,start:dme(),end:dme()}}function fme(){if(nme!==mainStates.START)return null;for(var Eme="",xme=rawStates.START,Tme=ame;Tme<x_.length;){var Ome=x_[Tme];if(xme===rawStates.ESCAPE)if(escapes.hasOwnProperty(Ome)||Ome==="$")Eme+=Ome,Tme++,xme=rawStates.START;else{var Rme=dme(Eme+Ome);throw new SyntaxError("Unexpected token ".concat(Ome," in ").concat(Rme.line,":").concat(Rme.column))}else{if(Ome==="\\"){Eme+=Ome,Tme++,xme=rawStates.ESCAPE;continue}else if(Ome==="$"){var Nme=x_[Tme+1];if(Nme==="{")break;if(Nme==="$"){ime.push({type:TokenName[3],value:"&",raw:"$$",start:dme(x_.substring(ame,Tme)),end:dme(x_.substring(ame,Tme+2))});break}else{var Ime=/^[a-zA-Z0-9_]+(?:\.[a-zA-Z0-9_]+)*/.exec(x_.substring(Tme+1));if(Ime){ime.push({type:TokenName[3],value:Ime[0],raw:Ime[0],start:dme(x_.substring(ame,Tme)),end:dme(x_.substring(ame,Tme+1+Ime[0].length))});break}}}Tme++,Eme+=Ome}}return Tme>ame?{type:TokenName[2],value:escapeString(Eme,["`","$"]),raw:Eme,start:dme(),end:dme(Eme)}:ime.length?ime.shift():null}function pme(){if(nme===mainStates.Template||nme===mainStates.EXPRESSION)return null;var Eme=x_[ame];if(Eme==="$"){var xme=x_[ame+1];if(xme==="{"){sme(mainStates.SCRIPT);var Tme=x_.substring(ame,ame+2);return{type:TokenName[4],value:Tme,start:dme(),end:dme(Tme)}}}return null}function hme(){if(nme!==mainStates.SCRIPT&&nme!==mainStates.EXPRESSION&&nme!==mainStates.BLOCK&&nme!==mainStates.Filter)return null;var Eme=yme()||Cme()||_me()||$me()||gme()||bme();if((Eme==null?void 0:Eme.value)==="{"&&Eme.type=="Punctuator")sme(mainStates.BLOCK);else if((Eme==null?void 0:Eme.value)==="}"&&Eme.type=="Punctuator"){nme===mainStates.Filter&&cme();var xme=nme;if(cme(),xme===mainStates.SCRIPT||xme===mainStates.EXPRESSION)return{type:TokenName[xme===mainStates.EXPRESSION?15:5],value:Eme.value,start:dme(),end:dme(Eme.value)}}if(nme===mainStates.SCRIPT&&(Eme==null?void 0:Eme.type)=="Punctuator"&&Eme.value==="|"&&ome){if(eme!=null&&eme.isFilter){var Tme=x_.substring(Eme.start.index+1).trim(),Ome=/^[A-Za-z0-9_$@][A-Za-z0-9_\-$@]*/.exec(Tme);if(!Ome||!eme.isFilter(Ome[0]))return Eme}return sme(mainStates.Filter),{type:TokenName[16],value:"|",start:dme(),end:dme("|")}}else if(nme===mainStates.Filter&&(Eme==null?void 0:Eme.value)==="|"&&Eme.type=="Punctuator")return{type:TokenName[16],value:"|",start:dme(),end:dme("|")};return!Eme&&x_[ame]==="`"?(sme(mainStates.Template),{type:TokenName[10],value:"`",start:dme(),end:dme("`")}):Eme}function bme(){if(nme!==mainStates.Filter)return null;var Eme=ame,xme=x_[Eme];if(xme==="\\"){var Tme=x_[Eme+1];if(Tme==="$"||~punctuatorList.indexOf(Tme)||escapes.hasOwnProperty(Tme))Eme++,xme=Tme==="b"?"\b":Tme==="f"?"\f":Tme==="n"?`
`:Tme==="r"?"\r":Tme==="t"?"	":Tme==="v"?"\v":Tme;else{var Ome=dme(x_.substring(ame,ame+2));throw new SyntaxError("Unexpected token ".concat(Tme," in ").concat(Ome.line,":").concat(Ome.column))}}var Rme={type:TokenName[17],value:xme,start:dme(),end:dme(x_.substring(ame,Eme+1))};return Rme}function mme(){if(nme!==mainStates.Template)return null;for(var Eme=stringStates.START,xme=ame;xme<x_.length;){var Tme=x_[xme];if(Eme===stringStates.ESCAPE)if(escapes.hasOwnProperty(Tme)||Tme==="`"||Tme==="$")xme++,Eme=stringStates.START_QUOTE_OR_CHAR;else{var Ome=dme(x_.substring(ame,xme+1));throw new SyntaxError("Unexpected token ".concat(Tme," in ").concat(Ome.line,":").concat(Ome.column))}else if(Tme==="\\")xme++,Eme=stringStates.ESCAPE;else if(Tme==="`"){cme(),ime.push({type:TokenName[10],value:"`",start:dme(x_.substring(ame,xme)),end:dme(x_.substring(ame,xme+1))});break}else if(Tme==="$"){var Rme=x_[xme+1];if(Rme==="{"){sme(mainStates.EXPRESSION),ime.push({type:TokenName[14],value:"${",start:dme(x_.substring(ame,xme)),end:dme(x_.substring(ame,xme+2))});break}xme++}else xme++}if(xme>ame){var Nme=x_.substring(ame,xme);return{type:TokenName[13],value:escapeString(Nme,["`","$"]),raw:Nme,start:dme(),end:dme(Nme)}}return ime.length?ime.shift():null}function vme(){for(;ame<x_.length;){var Eme=x_[ame];if(Eme==="\r")ame++,$P++,tme=1,x_.charAt(ame)===`
`&&ame++;else if(Eme===`
`)ame++,$P++,tme=1;else if(Eme==="	"||Eme===" ")ame++,tme++;else break}}function gme(){var Eme=punctuatorList.find(function(xme){return x_.substring(ame,ame+xme.length)===xme});return Eme?{type:TokenName[10],value:Eme,start:dme(),end:dme(Eme)}:null}function yme(){var Eme=x_.substring(ame).match(/^\w{4,10}/);if(!Eme)return null;var xme=Eme[0].toLowerCase(),Tme=xme,Ome=!1;return xme==="true"||xme==="null"?(Ome=!0,Tme=xme==="true"?!0:null):xme==="false"?(Ome=!0,Tme=!1):xme==="undefined"&&(Ome=!0,Tme=void 0),Ome?{type:Tme===!0||Tme===!1?TokenName[1]:TokenName[8],value:Tme,raw:xme,start:dme(),end:dme(xme)}:null}function _me(){var Eme=ame,xme=Eme,Tme=numberStates.START;e:for(;Eme<x_.length;){var Ome=x_.charAt(Eme);switch(Tme){case numberStates.START:{if(Ome==="0")xme=Eme+1,Tme=numberStates.ZERO;else if(isDigit1to9(Ome))xme=Eme+1,Tme=numberStates.DIGIT;else return null;break}case numberStates.ZERO:{if(Ome===".")Tme=numberStates.POINT;else if(isExp(Ome))Tme=numberStates.EXP;else break e;break}case numberStates.DIGIT:{if(isDigit(Ome))xme=Eme+1;else if(Ome===".")Tme=numberStates.POINT;else if(isExp(Ome))Tme=numberStates.EXP;else break e;break}case numberStates.POINT:{if(isDigit(Ome))xme=Eme+1,Tme=numberStates.DIGIT_FRACTION;else break e;break}case numberStates.DIGIT_FRACTION:{if(isDigit(Ome))xme=Eme+1;else if(isExp(Ome))Tme=numberStates.EXP;else break e;break}}Eme++}if(xme>0){var Rme=x_.slice(ame,xme);return{type:TokenName[9],value:formatNumber(Rme),raw:Rme,start:dme(),end:dme(Rme)}}return null}function $me(){for(var Eme='"',xme=stringStates.START,Tme=ame;Tme<x_.length;){var Ome=x_[Tme];if(xme===stringStates.START)if(Ome==='"'||Ome==="'")Eme=Ome,Tme++,xme=stringStates.START_QUOTE_OR_CHAR;else break;else if(xme===stringStates.ESCAPE)if(escapes.hasOwnProperty(Ome)||Ome===Eme)Tme++,xme=stringStates.START_QUOTE_OR_CHAR;else{var Rme=dme(x_.substring(ame,Tme+1));throw new SyntaxError("Unexpected token ".concat(Ome," in ").concat(Rme.line,":").concat(Rme.column))}else if(Ome==="\\")Tme++,xme=stringStates.ESCAPE;else if(Ome===Eme){Tme++;break}else Tme++}if(Tme>ame){var Nme=x_.substring(ame,Tme);return{type:TokenName[11],value:escapeString(Nme.substring(1,Nme.length-1),[Eme]),raw:Nme,start:dme(),end:dme(Nme)}}return null}function Cme(){var Eme=eme!=null&&eme.variableMode?/^[\u4e00-\u9fa5A-Za-z0-9_$@][\u4e00-\u9fa5A-Za-z0-9_\-$@]*/:/^(?:[\u4e00-\u9fa5A-Za-z_$@]([\u4e00-\u9fa5A-Za-z0-9_$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*|\d+[\u4e00-\u9fa5A-Za-z_$@](?:[\u4e00-\u9fa5A-Za-z0-9_$@]|\\(?:\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,))*)/,xme=Eme.exec(x_.substring(ame,ame+256));return xme?{type:TokenName[7],value:xme[0].replace(/\\(\.|\[|\]|\(|\)|\{|\}|\s|=|!|>|<|\||&|\+|-|\*|\/|\^|~|%|&|\?|:|;|,)/g,function(Tme,Ome){return Ome}),start:dme(),end:dme(xme[0])}:null}function Sme(){return ime.length?ime.shift():((nme===mainStates.SCRIPT||nme===mainStates.EXPRESSION||nme===mainStates.BLOCK)&&vme(),ume()||fme()||pme()||hme()||mme())}return{next:function(){var Eme=Sme();if(Eme)return ame=Eme.end.index,$P=Eme.end.line,tme=Eme.end.column,Eme;var xme=dme();throw new SyntaxError('unexpected character "'.concat(x_[ame],'" at ').concat(xme.line,":").concat(xme.column))}}}var argListStates={START:0,COMMA:1,SET:2},tempalteStates={START:0,SCRIPTING:1},objectStates={START:0,KEY:1,COLON:2,VALUE:3,COMMA:4};function parse$2(x_,eme){var $P,tme,ame=lexer(x_,eme),nme=[],rme=[],ime=($P=eme==null?void 0:eme.variableNamespaces)!==null&&$P!==void 0?$P:["window","cookie","ls","ss"];Array.isArray(ime)||(ime=[]);function ome(){if(tme=rme.length?rme.shift():ame.next(),!tme)throw new TypeError("next token is undefined");nme.push(tme)}function lme(){rme.unshift(nme.pop()),tme=nme[nme.length-1]}function sme(abe){return tme.type===TokenName[10]&&(Array.isArray(abe)?~abe.indexOf(tme.value):tme.value===abe)}function cme(){throw TypeError("Unexpected token ".concat(tme.value||tme.type," in ").concat(tme.start.line,":").concat(tme.start.column))}function dme(abe){return abe||cme(),abe}function ume(){return Qme()}function fme(){for(;tme.type===TokenName[17]&&/^\s+$/m.test(tme.value);)ome()}function pme(){for(var abe=[];!sme(":")&&tme.type!==TokenName[16]&&tme.type!==TokenName[5];){var obe=Lme()||Dme()||Bme()||jme()||Ume()||Zme()||Yme();obe?abe.push(obe):(dme(~[TokenName[7],TokenName[10],TokenName[17]].indexOf(tme.type)),abe.length&&typeof abe[abe.length-1]=="string"?abe[abe.length-1]+=tme.raw||tme.value:abe.push(tme.raw||tme.value),ome())}return abe.length&&typeof abe[abe.length-1]=="string"&&(abe[abe.length-1]=abe[abe.length-1].replace(/\s+$/,""),abe[abe.length-1]||abe.pop()),abe}function hme(){for(var abe=ume(),obe=[];tme.type===TokenName[16];){ome(),fme();var hbe=dme(Vme()),ube=hbe.name,mbe=[];for(fme();sme(":");){ome(),fme();var pbe=pme();pbe.length===1?pbe=pbe[0]:pbe.length||(pbe=""),mbe.push(Array.isArray(pbe)?{type:"mixed",body:pbe}:pbe)}obe.push({name:ube,args:mbe})}return obe.length&&(abe={type:"filter",input:abe,filters:obe,start:abe.start,end:obe[obe.length-1].end}),abe}function bme(){var abe=Jme()||nbe(),obe=[],hbe;if((abe==null?void 0:abe.type)==="variable"?(obe=[abe],hbe=abe.start):(abe==null?void 0:abe.type)==="arg-list"&&(hbe=abe.start,obe=abe.body),Array.isArray(obe)&&sme("="))if(ome(),sme(">")){ome();var ube=dme(ume());return{type:"anonymous_function",args:obe,return:ube,start:hbe,end:ube.end}}else lme();return abe}function mme(){var abe=gme();if(!abe)return null;if(sme("?")){ome();var obe=Qme();dme(obe),dme(sme(":")),ome();var hbe=Qme();return dme(hbe),{type:"conditional",test:abe,consequent:obe,alternate:hbe,start:abe.start,end:hbe.end}}return abe}function vme(abe,obe,hbe,ube,mbe,pbe){var _be;ube===void 0&&(ube=hbe),mbe===void 0&&(mbe="left"),pbe===void 0&&(pbe="right");var Sbe=hbe();if(!Sbe)return null;if(sme(obe))for(;sme(obe);){ome();var vbe=dme(ube());Sbe=(_be={type:abe,op:obe},_be[mbe]=Sbe,_be[pbe]=vbe,_be.start=Sbe.start,_be.end=vbe.end,_be)}return Sbe}function gme(){return vme("or","||",yme)}function yme(){return vme("and","&&",_me)}function _me(){return vme("binary","|",$me)}function $me(){return vme("binary","^",Cme)}function Cme(){return vme("binary","&",Sme)}function Sme(){return vme("eq","==",function(){return vme("ne","!=",function(){return vme("streq","===",function(){return vme("strneq","!==",Eme)})})})}function Eme(){return vme("lt","<",function(){return vme("gt",">",function(){return vme("le","<=",function(){return vme("ge",">=",xme)})})})}function xme(){return vme("shift","<<",function(){return vme("shift",">>",function(){return vme("shift",">>>",Tme)})})}function Tme(){return vme("add","+",function(){return vme("minus","-",Ome)})}function Ome(){return vme("multiply","*",function(){return vme("divide","/",function(){return vme("remainder","%",Rme)})})}function Rme(){return vme("power","**",Nme)}function Nme(){for(var abe=["+","-","~","!"],obe=[];sme(abe);)obe.push(tme),ome();var hbe=Ime();for(dme(!obe.length||hbe);obe.length;){var ube=obe.pop();hbe={type:"unary",op:ube.value,value:hbe,start:ube.start,end:ube.end}}return hbe}function Ime(abe){abe===void 0&&(abe=Pme);var obe=abe();if(!obe)return null;for(;sme("[")||sme(".");){var hbe=sme(".");ome();var ube=dme(hbe?Vme()||Dme()||Zme():ume());hbe||(dme(sme("]")),ome()),obe={type:"getter",host:obe,key:ube,start:obe.start,end:ube.end}}return obe}function Pme(){return zme()||bme()||Wme()}function Mme(abe,obe){return abe===void 0&&(abe=!1),obe===void 0&&(obe=!1),(abe?nbe():Vme())||Bme()||Dme()||(obe?kme():jme())}function kme(){if(sme("[")){ome();var abe=dme(jme());return dme(sme("]")),ome(),abe}return null}function Bme(){if(tme.type===TokenName[11]){var abe=tme;return ome(),{type:"string",value:abe.value,start:abe.start,end:abe.end}}return null}function Dme(){if(tme.type===TokenName[9]){var abe=tme.value,obe=tme;return ome(),{type:"literal",value:abe,start:obe.start,end:obe.end}}return null}function jme(){if(sme("`")){var abe=tme,obe=abe;ome();for(var hbe=tempalteStates.START,ube={type:"template",body:[],start:abe.start,end:abe.end};;)if(hbe===tempalteStates.SCRIPTING){var mbe=dme(ume());ube.body.push(mbe),dme(tme.type===TokenName[15]),ome(),hbe=tempalteStates.START}else if(sme("`")){obe=tme,ome();break}else tme.type===TokenName[14]?(ome(),hbe=tempalteStates.SCRIPTING):tme.type===TokenName[13]?(ube.body.push({type:"template_raw",value:tme.value,start:tme.start,end:tme.end}),ome()):cme();return ube.end=obe.end,ube}return null}function Vme(){if(tme.type===TokenName[7]){var abe=tme;return ome(),{type:"identifier",name:abe.value,start:abe.start,end:abe.end}}return null}function Wme(){return nbe()||Lme()||Dme()||Bme()||jme()||Ume()||Yme()||function(){var abe=Gme();return(abe==null?void 0:abe.body.length)===1?abe.body[0]:abe}()||Zme()}function Lme(){if(tme.type===TokenName[8]||tme.type===TokenName[1]){var abe=tme.value,obe=tme;return ome(),{type:"literal",value:abe,start:obe.start,end:obe.end}}return null}function zme(){if(tme.type===TokenName[7]){var abe=tme;if(ome(),sme("(")){var obe=Gme();return dme(obe),{type:"func_call",identifier:abe.value,args:obe==null?void 0:obe.body,start:abe.start,end:obe.end}}else lme()}return null}function Ume(){if(sme("[")){var abe=Gme("[","]");return dme(abe),{type:"array",members:abe==null?void 0:abe.body,start:abe.start,end:abe.end}}return null}function Gme(abe,obe){if(abe===void 0&&(abe="("),obe===void 0&&(obe=")"),sme(abe)){var hbe=tme,ube=void 0;ome();for(var mbe=[],pbe=argListStates.START;;)if(pbe===argListStates.COMMA||!sme(obe)){var _be=dme(ume());mbe.push(_be),pbe=argListStates.START,sme(",")&&(ome(),pbe=argListStates.COMMA)}else if(sme(obe)){ube=tme,ome();break}return{type:"expression-list",body:mbe,start:hbe.start,end:ube.end}}return null}function Jme(abe,obe){abe===void 0&&(abe="("),obe===void 0&&(obe=")");var hbe=0,ube=function(){for(;hbe-- >0;)lme();return null};if(sme(abe)){var mbe=tme,pbe=mbe;ome(),hbe++;for(var _be=[],Sbe=argListStates.START;!sme(obe);)if(Sbe===argListStates.COMMA||Sbe===argListStates.START){var vbe=nbe(!1);if(!vbe)return ube();hbe++,_be.push(vbe),Sbe=argListStates.SET}else if(Sbe===argListStates.SET&&sme(","))ome(),hbe++,Sbe=argListStates.COMMA;else return ube();return sme(obe)?(pbe=tme,ome(),{type:"arg-list",body:_be,start:mbe.start,end:pbe.end}):ube()}return null}function Yme(){if(sme("{")){var abe=tme,obe=abe;ome();for(var hbe={type:"object",members:[],start:abe.start,end:abe.end},ube=objectStates.START,mbe=void 0,pbe=void 0;;)if(ube===objectStates.KEY)dme(sme(":")),ome(),ube=objectStates.COLON;else if(ube===objectStates.COLON)pbe=dme(ume()),hbe.members.push({key:mbe,value:pbe}),ube=objectStates.VALUE;else if(ube===objectStates.VALUE)if(sme(","))ome(),ube=objectStates.COMMA;else if(sme("}")){obe=tme,ome();break}else cme();else{if(ube!=objectStates.COMMA&&sme("}")){obe=tme,ome();break}mbe=dme(Mme(!1,!0)),ube=objectStates.KEY}return hbe.end=obe.end,hbe}return null}function Qme(){return mme()}function Xme(){for(var abe={type:"document",body:[],start:tme.start,end:tme.end};tme.type!==TokenName[6];){var obe=Kme()||Zme()||lbe();if(!obe)break;abe.body.push(obe)}return abe.body.length&&(abe.end=abe.body[abe.body.length-1].end),abe}function Kme(){if(tme.type!==TokenName[2])return null;var abe=tme;return ome(),{type:"raw",value:abe.value,start:abe.start,end:abe.end}}function Zme(){if(tme.type!==TokenName[4])return null;var abe=tme,obe=abe;ome();var hbe=dme(hme());return dme(tme.type===TokenName[5]),obe=tme,ome(),{type:"script",body:hbe,start:abe.start,end:obe.end}}function nbe(abe){if(abe===void 0&&(abe=!0),tme.type===TokenName[7]){var obe=tme;if(ome(),abe&&sme(":")&&~ime.indexOf(obe.value)){ome();var hbe=dme(Ime());return{type:"ns-variable",namespace:obe.value,body:hbe,start:obe.start,end:hbe.end}}return{type:"variable",name:obe.value,start:obe.start,end:obe.end}}else if(sme("&")){var ube=tme;return ome(),{type:"variable",name:"&",start:ube.start,end:ube.end}}return null}function lbe(){if(tme.type!==TokenName[3])return null;var abe=tme;return ome(),{type:"script",body:abe.value.split(".").reduce(function(obe,hbe){return obe?{type:"getter",host:obe,key:hbe,start:abe.start,end:abe.end}:{type:"variable",name:hbe,start:abe.start,end:abe.end}},null),start:abe.start,end:abe.end}}ome();var ibe=eme!=null&&eme.variableMode?Ime(nbe):eme!=null&&eme.evalMode?ume():Xme();return dme((tme==null?void 0:tme.type)===TokenName[6]),ibe}function registerFunction(x_,eme){var $P;Evaluator.extendDefaultFunctions(($P={},$P["fn".concat(x_)]=eme,$P))}var functionDocs={};function registerFunctionDoc(x_,eme){functionDocs[x_]?functionDocs[x_].push(eme):functionDocs[x_]=[eme]}function bulkRegisterFunctionDoc(x_){x_.forEach(function(eme){return registerFunctionDoc(eme.namespace||"Others",eme)})}function evaluate(x_,eme,$P){var tme=x_;return typeof x_=="string"&&(tme=parse$2(x_,$P)),new Evaluator(eme,$P).evalute(tme)}Evaluator.extendDefaultFilters(getFilters());AsyncEvaluator.setDefaultFilters(getFilters());function getFunctionsDoc(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(x_){switch(x_.label){case 0:return[4,__vitePreload(()=>import("./doc-CyxLhr73.js"),[])];case 1:return x_.sent(),[2,Object.entries(functionDocs).map(function(eme){var $P=__read$3(eme,2),tme=$P[0],ame=$P[1];return{groupName:tme,items:ame}})]}})})}var VisitedCache=function(){function x_(eme,$P){this.visitCountOrder=[],this.keyOrderMatrixForByCount={},this.capacity=eme,this.cache=new Map,this.releaseCount=this.capacity*($P||1/8)>>0||1}return x_.prototype.updateCacheEntryOrder=function(eme,$P,tme){var ame=$P.visitCount,nme=this.keyOrderMatrixForByCount[ame];if(Array.isArray(nme)){var rme=nme.indexOf(eme);rme!==-1&&nme.splice(rme,1)}this.keyOrderMatrixForByCount[tme]=Array.isArray(this.keyOrderMatrixForByCount[tme])?__spreadArray(__spreadArray([],__read$3(this.keyOrderMatrixForByCount[tme]),!1),[eme],!1):[eme],$P.visitCount=tme,this.visitCountOrder=__spreadArray([],__read$3(new Set(__spreadArray(__spreadArray([],__read$3(this.visitCountOrder),!1),[tme],!1))),!1).sort(function(ime,ome){return ime-ome})},x_.prototype.get=function(eme){if(this.cache.has(eme)){var $P=this.cache.get(eme);if($P!==void 0){var tme=$P.visitCount;return this.updateCacheEntryOrder(eme,$P,tme+1),$P.value}}},x_.prototype.set=function(eme,$P){if(this.cache.has(eme)){var tme=this.cache.get(eme);if(tme!==void 0){var ame=tme.visitCount;this.updateCacheEntryOrder(eme,tme,ame+1),tme.value=$P}}else{if(this.cache.size===this.capacity)for(var nme=this.releaseCount,rme=0,ime=0;ime<nme&&rme<=this.visitCountOrder.length-1;){var ome=this.visitCountOrder[rme],lme=this.keyOrderMatrixForByCount[ome];if(!lme.length)rme++;else for(;lme.length>0&&ime<nme;)this.cache.delete(lme.shift()),ime++}var sme={visitCount:1,value:$P};this.cache.set(eme,sme),this.updateCacheEntryOrder(eme,sme,1)}},x_.prototype.has=function(eme){return this.cache.has(eme)},x_}(),cache$3=new VisitedCache(40);function memoryParse(x_,eme){if(eme===void 0&&(eme={evalMode:!1}),typeof x_=="string"){var $P=x_+JSON.stringify(eme);if(cache$3.has($P))return cache$3.get($P);var tme=parse$2(x_,eme);return cache$3.set($P,tme),tme}}var AST_CACHE={};function memoParse(x_,eme){var $P="".concat(x_).concat(eme!=null&&eme.evalMode?"-eval":"").concat(eme!=null&&eme.allowFilter?"-filter":"").concat(eme!=null&&eme.variableMode?"-variable":""),tme=AST_CACHE[$P]||parse$2(x_,eme);return AST_CACHE[$P]=tme,tme}var tokenize=function(x_,eme,$P){if($P===void 0&&($P="| html"),!x_||typeof x_!="string")return x_;try{var tme=memoParse(x_,{evalMode:!1,allowFilter:!0}),ame=new Evaluator(eme,{defaultFilter:$P}).evalute(tme);return"".concat(ame??"")}catch(nme){return console.warn(nme),x_}},resolveVariableAndFilterForAsync=function(x_,eme,$P,tme,ame){return eme===void 0&&(eme={}),$P===void 0&&($P="| html"),tme===void 0&&(tme=function(nme){return nme}),ame===void 0&&(ame=!1),__awaiter(void 0,void 0,void 0,function(){var nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:if(!x_||typeof x_!="string")return[2,void 0];ome.label=1;case 1:return ome.trys.push([1,3,,4]),nme=memoryParse(x_,{evalMode:!1,allowFilter:!0}),[4,new AsyncEvaluator(eme,{defaultFilter:$P}).evalute(nme)];case 2:return rme=ome.sent(),[2,rme==null&&!~x_.indexOf("default")&&!~x_.indexOf("now")?tme(rme):rme];case 3:if(ime=ome.sent(),ime.name==="FormulaEvalError"){if(!ame)return[2,void 0];throw ime}return console.warn(ime),[2,void 0];case 4:return[2]}})})},keyToPath=function(x_){x_===void 0&&(x_="");var eme=[];return x_.charCodeAt(0)===46&&eme.push(""),x_.replace(new RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),function($P,tme,ame,nme){var rme=$P;return ame?rme=nme.replace(/\\(\\)?/g,"$1"):tme&&(rme=tme.trim()),eme.push(rme),""}),eme};function getVariable(x_,eme,$P){if($P===void 0&&($P=!0),!(!x_||!eme||typeof x_!="object"))return($P?eme in x_:x_.hasOwnProperty(eme))?x_[eme]:keyToPath(eme).reduce(function(tme,ame){return tme&&typeof tme=="object"&&($P?ame in tme:tme.hasOwnProperty(ame))?tme[ame]:void 0},x_)}function resolveVariable(x_,eme,$P){if(eme===void 0&&(eme={}),x_==="&"||x_=="$$")return eme;if(!x_||typeof x_!="string")return;if(!~x_.indexOf(":"))return getVariable(eme,x_[0]==="$"?x_.substring(1):x_,$P);try{return new Evaluator(eme).evalute(memoryParse(x_,{variableMode:!0,allowFilter:!1}))}catch{return}}function makeSorter(x_,eme,$P){return function(tme,ame){if(!tme||!ame)return 0;var nme=resolveVariable(x_,tme),rme=resolveVariable(x_,ame),ime=0;return eme==="numerical"?ime=(parseFloat(nme)||0)-(parseFloat(rme)||0):ime=String(nme).localeCompare(String(rme)),ime*($P==="desc"?-1:1)}}function arrayEach$4(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length;++$P<tme&&eme(x_[$P],$P,x_)!==!1;);return x_}var _arrayEach=arrayEach$4,baseFor$1=_baseFor,keys$8=keys_1;function baseForOwn$5(x_,eme){return x_&&baseFor$1(x_,eme,keys$8)}var _baseForOwn=baseForOwn$5,arrayEach$3=_arrayEach,baseCreate$3=_baseCreate,baseForOwn$4=_baseForOwn,baseIteratee$d=_baseIteratee,getPrototype$2=_getPrototype,isArray$d=isArray_1,isBuffer$4=isBufferExports,isFunction$5=isFunction_1,isObject$9=isObject_1,isTypedArray$2=isTypedArray_1;function transform(x_,eme,$P){var tme=isArray$d(x_),ame=tme||isBuffer$4(x_)||isTypedArray$2(x_);if(eme=baseIteratee$d(eme),$P==null){var nme=x_&&x_.constructor;ame?$P=tme?new nme:[]:isObject$9(x_)?$P=isFunction$5(nme)?baseCreate$3(getPrototype$2(x_)):{}:$P={}}return(ame?arrayEach$3:baseForOwn$4)(x_,function(rme,ime,ome){return eme($P,rme,ime,ome)}),$P}var transform_1=transform;const transform$1=getDefaultExportFromCjs(transform_1);function arrayAggregator$1(x_,eme,$P,tme){for(var ame=-1,nme=x_==null?0:x_.length;++ame<nme;){var rme=x_[ame];eme(tme,rme,$P(rme),x_)}return tme}var _arrayAggregator=arrayAggregator$1,isArrayLike$6=isArrayLike_1;function createBaseEach$2(x_,eme){return function($P,tme){if($P==null)return $P;if(!isArrayLike$6($P))return x_($P,tme);for(var ame=$P.length,nme=eme?ame:-1,rme=Object($P);(eme?nme--:++nme<ame)&&tme(rme[nme],nme,rme)!==!1;);return $P}}var _createBaseEach=createBaseEach$2,baseForOwn$3=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$6=createBaseEach$1(baseForOwn$3),_baseEach=baseEach$6,baseEach$5=_baseEach;function baseAggregator$1(x_,eme,$P,tme){return baseEach$5(x_,function(ame,nme,rme){eme(tme,ame,$P(ame),rme)}),tme}var _baseAggregator=baseAggregator$1,arrayAggregator=_arrayAggregator,baseAggregator=_baseAggregator,baseIteratee$c=_baseIteratee,isArray$c=isArray_1;function createAggregator$1(x_,eme){return function($P,tme){var ame=isArray$c($P)?arrayAggregator:baseAggregator,nme=eme?eme():{};return ame($P,x_,baseIteratee$c(tme),nme)}}var _createAggregator=createAggregator$1,baseAssignValue$2=_baseAssignValue,createAggregator=_createAggregator,objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty,groupBy=createAggregator(function(x_,eme,$P){hasOwnProperty$j.call(x_,$P)?x_[$P].push(eme):baseAssignValue$2(x_,$P,[eme])}),groupBy_1=groupBy;const groupBy$1=getDefaultExportFromCjs(groupBy_1);function createObject$1(x_,eme,$P){x_&&Object.isFrozen(x_)&&(x_=cloneObject$2(x_));var tme=x_?Object.create(x_,__assign$3(__assign$3({},$P),{__super:{value:x_,writable:!1,enumerable:!1}})):Object.create(Object.prototype,$P);return eme&&isObject$8(eme)&&Object.keys(eme).forEach(function(ame){return tme[ame]=eme[ame]}),tme}function extractObjectChain(x_){for(var eme=x_?[x_]:[];x_!=null&&x_.__super;)eme.unshift(x_.__super),x_=x_.__super;return eme}function createObjectFromChain(x_){return x_.filter(function(eme){return eme}).reduce(function(eme,$P){return eme=eme||Object.prototype,Object.isFrozen(eme)&&(eme=cloneObject$2(eme)),Object.assign(Object.create(eme,{__super:{value:eme,writable:!1,enumerable:!1}}),$P)})}function injectObjectChain(x_,eme){var $P=extractObjectChain(x_);return $P.splice($P.length-1,0,eme),createObjectFromChain($P)}function cloneObject$2(x_,eme){eme===void 0&&(eme=!0);var $P=x_&&x_.__super?Object.create(x_.__super,{__super:{value:x_.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return eme&&x_&&Object.keys(x_).forEach(function(tme){return $P[tme]=x_[tme]}),$P}function extendObject(x_,eme,$P){$P===void 0&&($P=!0);var tme=cloneObject$2(x_,$P);return eme&&Object.keys(eme).forEach(function(ame){return tme[ame]=eme[ame]}),tme}function isObject$8(x_){var eme=typeof x_;return x_&&eme!=="string"&&eme!=="number"&&eme!=="boolean"&&eme!=="function"&&!Array.isArray(x_)}function setVariable(x_,eme,$P,tme){if(x_=x_||{},eme in x_){x_[eme]=$P;return}for(var ame=tme!==!1?keyToPath(eme):[eme],nme=ame.pop(),rme=[];ame.length;){var ime=x_,ome=ame.shift();if(isPlainObject$b(x_[ome]))x_=x_[ome]=__assign$3({},x_[ome]);else if(Array.isArray(x_[ome]))x_[ome]=x_[ome].concat(),x_=x_[ome];else if(x_[ome])x_[ome]={},x_=x_[ome];else{if(/^\d+$/.test(ome)&&rme.length){var lme=rme[rme.length-1];!Array.isArray(lme.host[lme.key])&&!Object.keys(lme.host[lme.key]).length&&(ime=x_=lme.host[lme.key]=[])}x_[ome]={},x_=x_[ome]}rme.push({host:ime,key:ome})}x_[nme]=$P}function deleteVariable(x_,eme){if(x_){if(x_.hasOwnProperty(eme)){delete x_[eme];return}}else return;for(var $P=keyToPath(eme),tme=$P.pop();$P.length;){var ame=$P.shift();if(isPlainObject$b(x_[ame]))x_=x_[ame]=__assign$3({},x_[ame]);else{if(x_[ame])throw new Error("目标路径不是纯对象，不能修改");break}}x_&&x_.hasOwnProperty&&x_.hasOwnProperty(tme)&&delete x_[tme]}function pickValues(x_,eme){var $P,tme;if(!x_||(tme=x_.split(","))&&tme.length<2){var ame=x_.indexOf("~");if(~ame){var nme=x_.substring(0,ame),rme=x_.substring(ame+1);return $P={},$P[nme]=resolveVariable(rme,eme),$P}return resolveVariable(x_,eme)}var ime={};return tme.forEach(function(ome){var lme=ome.indexOf("~"),sme=ome;~lme&&(sme=ome.substring(lme+1),ome=ome.substring(0,lme)),setVariable(ime,ome,resolveVariable(sme,eme))}),ime}function string2regExp(x_,eme,$P){if(eme===void 0&&(eme=!1),$P===void 0&&($P=!1),typeof x_!="string")throw new TypeError("Expected a string");return new RegExp(x_.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),"".concat(eme?"":"i").concat($P?"g":""))}var entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},escapeHtml=function(x_){return String(x_).replace(/[&<>"'\/]/g,function(eme){return entityMap[eme]})};function formatDuration(x_){for(var eme=["秒","分","时","天","月","季","年"],$P=[1,60,3600,86400,2592e3,7776e3,31104e3],tme=$P.length,ame=[];tme--;)$P[tme]&&x_>=$P[tme]?(ame.push(Math.floor(x_/$P[tme])+eme[tme]),x_%=$P[tme]):tme===0&&x_&&ame.push((x_.toFixed?x_.toFixed(2):"0")+eme[0]);return ame.join("")}var UNITS=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],prettyBytes=function(x_,eme){if(eme===void 0&&(eme=1e3),x_&&typeof x_=="string"){if(x_.endsWith("B"))return x_;x_=parseFloat(x_)}if(!Number.isFinite(x_))throw new TypeError("Expected a finite number, got ".concat(typeof x_,": ").concat(x_));var $P=x_<0;if($P&&(x_=-x_),x_<1)return($P?"-":"")+x_+" B";var tme=Math.min(Math.floor(Math.log(x_)/Math.log(eme)),UNITS.length-1),ame=Number((x_/Math.pow(eme,tme)).toPrecision(3)),nme=UNITS[tme];return($P?"-":"")+ame+" "+nme};function stripNumber(x_,eme){return eme===void 0&&(eme=16),typeof x_=="number"&&!Number.isInteger(x_)?parseFloat(toFixed$1(x_.toString(),".",eme)):x_}var timeUnitMap={year:"Y",month:"M",week:"w",weekday:"W",day:"d",hour:"h",minute:"m",min:"m",second:"s",millisecond:"ms"},relativeValueRe=/^(.+)?(\+|-)(\d+)(minute|min|hour|day|week|month|year|weekday|second|millisecond)s?$/i,filterDate=function(x_,eme,$P,tme){eme===void 0&&(eme={}),$P===void 0&&($P="X"),tme===void 0&&(tme=!1);var ame,nme=tme?hooks.utc:hooks;typeof x_=="string"&&(x_=x_.trim());var rme=new Date;if(x_=tokenize(x_,createObject$1(eme,{now:nme().toDate(),today:nme([rme.getFullYear(),rme.getMonth(),rme.getDate()])}),"| raw"),x_&&typeof x_=="string"&&(ame=relativeValueRe.exec(x_))){var ime=new Date,ome=parseInt(ame[3],10),lme=ame[1]?filterDate(ame[1],eme,$P,tme):nme(/(minute|min|hour|second)s?/.test(ame[4])?[ime.getFullYear(),ime.getMonth(),ime.getDate(),ime.getHours(),ime.getMinutes(),ime.getSeconds()]:[ime.getFullYear(),ime.getMonth(),ime.getDate()]);return ame[2]==="-"?lme.subtract(ome,timeUnitMap[ame[4]]):lme.add(ome,timeUnitMap[ame[4]])}else{if(x_==="now")return nme();if(x_==="today"){var sme=new Date;return nme([sme.getFullYear(),sme.getMonth(),sme.getDate()])}else{var cme=tme?nme(x_).local():nme(x_);return cme.isValid()?cme:tme?nme(x_,$P).local():nme(x_,$P)}}};function parseDuration(x_){var eme=/^((?:\-|\+)?(?:\d*\.)?\d+)(minute|min|hour|day|week|month|quarter|year|weekday|second|millisecond)s?$/.exec(x_);if(eme){var $P=hooks.duration(parseFloat(eme[1]),eme[2]);if(hooks.isDuration($P))return $P}}function normalizeDate$1(x_,eme,$P){if(!(!x_||x_==="0")){var tme=$P!=null&&$P.utc?hooks.utc(x_,eme).local():hooks(x_,eme,!0);if(tme.isValid())return tme;if(typeof x_=="string"||typeof x_=="number"){var ame=["","YYYY-MM-DD HH:mm:ss","X"];for(/^\d{10}((\.\d+)*)$/.test(x_.toString())?ame=["X","x","YYYY-MM-DD HH:mm:ss",""]:/^\d{13}((\.\d+)*)$/.test(x_.toString())&&(ame=["x","X","YYYY-MM-DD HH:mm:ss",""]);ame.length;){var nme=ame.shift(),rme=hooks(x_,nme);if(rme.isValid())return rme}}}}function conditionalFilter(x_,eme,$P,tme,ame,nme,rme){var ime,ome,lme;rme===void 0&&(rme=1),(eme||tme)&&skipRestTest($P.restFilters);var sme=tme?ame:nme,cme=tme?(ime=$P.filter)===null||ime===void 0?void 0:ime.args[0+rme]:(ome=$P.filter)===null||ome===void 0?void 0:ome.args[1+rme];return tme||eme?(lme=getStrOrVariable(sme,$P.data,cme))!==null&&lme!==void 0?lme:sme:x_}function getStrOrVariable(x_,eme,$P){return $P!=null&&$P.type&&$P.type!=="literal"?x_:typeof x_=="string"&&/,/.test(x_)?x_.split(/\s*,\s*/).filter(function(tme){return tme}):typeof x_=="string"?resolveVariable(x_,eme):x_}function str2array(x_){return x_&&typeof x_=="string"?/^\[.*\]$/.test(x_)?x_.substring(1,x_.length-1).split(/\s*,\s*/).filter(function(eme){return eme}):x_.split(/\s*,\s*/).filter(function(eme){return eme}):x_}function skipRestTest(x_){for(var eme;~["isTrue","isFalse","isMatch","isEquals","notMatch","notEquals"].indexOf((eme=x_[0])===null||eme===void 0?void 0:eme.name);)x_.shift()}extendsFilters({map:function(x_,eme){for(var $P=this,tme=[],ame=2;ame<arguments.length;ame++)tme[ame-2]=arguments[ame];return Array.isArray(x_)&&filters[eme]?x_.map(function(nme){var rme;return(rme=filters[eme]).call.apply(rme,__spreadArray([$P,nme],__read$3(tme),!1))}):x_},html:function(x_){return x_==null?x_:escapeHtml(x_)},json:function(x_,eme){return eme===void 0&&(eme=2),eme?JSON.stringify(x_,null,parseInt(eme,10)):JSON.stringify(x_)},toJson:function(x_){if(typeof x_!="string")return x_;try{return JSON.parse(x_)}catch{return null}},toInt:function(x_){return typeof x_=="string"?parseInt(x_,10):x_},toFloat:function(x_){return typeof x_=="string"?parseFloat(x_):x_},raw:function(x_){return x_},now:function(){return new Date},toDate:function(x_,eme){eme===void 0&&(eme="");var $P=hooks(x_,eme);return $P.isValid()?$P.toDate():void 0},fromNow:function(x_,eme){return eme===void 0&&(eme=""),hooks(x_,eme).fromNow()},dateModify:function(x_,eme,$P,tme){return eme===void 0&&(eme="add"),$P===void 0&&($P=0),tme===void 0&&(tme="days"),x_ instanceof Date||(x_=hooks(x_).isValid()?hooks(x_).toDate():hooks().toDate()),eme==="endOf"||eme==="startOf"?hooks(x_)[eme==="endOf"?"endOf":"startOf"]($P||"day").toDate():hooks(x_)[eme==="add"?"add":"subtract"](parseInt($P,10)||0,tme).toDate()},date:function(x_,eme,$P){return eme===void 0&&(eme="LLL"),$P===void 0&&($P="X"),hooks(x_,$P).format(eme)},number:function(x_){var eme=String(x_).split(".");return eme[0]=eme[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),eme.join(".")},trim:function(x_){return typeof x_=="string"?x_.trim():x_},percent:function(x_,eme){eme===void 0&&(eme=0),x_=parseFloat(x_)||0,eme=parseInt(eme,10)||0;var $P=x_*100,tme=Math.pow(10,eme);return(Math.round($P*tme)/tme).toFixed(eme)+"%"},duration:function(x_){return x_&&formatDuration(x_)},bytes:function(x_,eme){var $P;return eme===void 0&&(eme=1e3),x_&&prettyBytes(x_,($P=parseInt(eme,10))!==null&&$P!==void 0?$P:1e3)},round:function(x_,eme){var $P;if(eme===void 0&&(eme=2),isNaN(x_))return 0;eme=($P=parseInt(eme,10))!==null&&$P!==void 0?$P:2;var tme=Math.pow(10,eme);return(Math.round(x_*tme)/tme).toFixed(eme)},truncate:function(x_,eme,$P){return typeof x_!="string"||($P=$P||"...",eme==null)?x_:(eme=parseInt(eme,10)||200,x_.substring(0,eme)+(x_.length>eme?$P:""))},url_encode:function(x_){return x_==null?"":encodeURIComponent(x_)},url_decode:function(x_){var eme,$P;try{$P=decodeURIComponent(x_)}catch(tme){console.warn("[amis] ".concat((eme=tme==null?void 0:tme.name)!==null&&eme!==void 0?eme:"URIError",": input string is not valid."))}return $P},default:function(x_,eme,$P){var tme;return $P===void 0&&($P=!1),(tme=$P?x_:x_||void 0)!==null&&tme!==void 0?tme:function(){try{return eme==="undefined"?void 0:JSON.parse(eme)}catch{return eme}}()},join:function(x_,eme){return x_&&x_.join?x_.join(eme):x_},split:function(x_,eme){return eme===void 0&&(eme=","),typeof x_=="string"?x_.split(eme):x_},sortBy:function(x_,eme,$P,tme){return eme===void 0&&(eme="&"),$P===void 0&&($P="alpha"),Array.isArray(x_)?x_.sort(makeSorter(eme,$P,tme)):x_},objectToArray:function(x_,eme,$P){return eme===void 0&&(eme="label"),$P===void 0&&($P="value"),transform$1(x_,function(tme,ame,nme){var rme;(tme||(tme=[])).push((rme={},rme[eme]=ame,rme[$P]=nme,rme))},[])},unique:function(x_,eme){return Array.isArray(x_)?eme?uniqBy$1(x_,eme):uniq$1(x_):x_},topAndOther:function(x_,eme,$P,tme){if(eme===void 0&&(eme=10),$P===void 0&&($P="name"),tme===void 0&&(tme="其他"),Array.isArray(x_)&&eme){var ame=groupBy$1(x_,function(nme){var rme=x_.indexOf(nme)+1;return rme>=eme?eme:rme});return Object.keys(ame).map(function(nme,rme){var ime=ame[nme],ome=ime.reduce(function(lme,sme){return Object.keys(sme).forEach(function(cme){!lme.hasOwnProperty(cme)||cme==="labelField"?lme[cme]=sme[cme]:typeof sme[cme]=="number"&&typeof lme[cme]=="number"?lme[cme]+=sme[cme]:typeof sme[cme]=="string"&&/^(?:\-|\.)\d/.test(sme[cme])&&typeof lme[cme]=="number"?lme[cme]+=parseFloat(sme[cme])||0:typeof sme[cme]=="string"&&typeof lme[cme]=="string"?lme[cme]+=", ".concat(sme[cme]):lme[cme]=sme[cme]}),lme},{});return rme===eme-1&&(ome[$P]=tme||"其他"),ome})}return x_},first:function(x_){return x_&&x_[0]},nth:function(x_,eme){return eme===void 0&&(eme=0),x_&&x_[eme]},last:function(x_){return x_&&(x_.length?x_[x_.length-1]:null)},minus:function(x_,eme){var $P;return eme===void 0&&(eme=1),stripNumber((Number(x_)||0)-Number(getStrOrVariable(eme,this.data,($P=this.filter)===null||$P===void 0?void 0:$P.args[0])))},plus:function(x_,eme){var $P;return eme===void 0&&(eme=1),stripNumber((Number(x_)||0)+Number(getStrOrVariable(eme,this.data,($P=this.filter)===null||$P===void 0?void 0:$P.args[0])))},times:function(x_,eme){var $P;return eme===void 0&&(eme=1),stripNumber((Number(x_)||0)*Number(getStrOrVariable(eme,this.data,($P=this.filter)===null||$P===void 0?void 0:$P.args[0])))},division:function(x_,eme){var $P;return eme===void 0&&(eme=1),stripNumber((Number(x_)||0)/Number(getStrOrVariable(eme,this.data,($P=this.filter)===null||$P===void 0?void 0:$P.args[0])))},count:function(x_){return Array.isArray(x_)||typeof x_=="string"?x_.length:0},sum:function(x_,eme){if(!Array.isArray(x_))return x_;var $P=x_.reduce(function(tme,ame){return tme+(parseFloat(eme?pickValues(eme,ame):ame)||0)},0);return stripNumber($P)},abs:function(x_){return typeof x_=="number"?Math.abs(x_):x_},pick:function(x_,eme){return eme===void 0&&(eme="&"),Array.isArray(x_)&&!/^\d+$/.test(eme)?x_.map(function($P,tme){return pickValues(eme,createObject$1({index:tme},$P))}):pickValues(eme,x_)},pick_if_exist:function(x_,eme){return eme===void 0&&(eme="&"),Array.isArray(x_)?x_.map(function($P){return resolveVariable(eme,$P)||$P}):resolveVariable(eme,x_)||x_},str2date:function(x_,eme,$P){return eme===void 0&&(eme="X"),$P===void 0&&($P="X"),x_?filterDate(x_,this.data,eme).format($P):""},asArray:function(x_){return Array.isArray(x_)?x_:x_&&[x_]},concat:function(x_){for(var eme=this,$P=[],tme=1;tme<arguments.length;tme++)$P[tme-1]=arguments[tme];return Array.isArray(x_)?x_.concat.apply(x_,__spreadArray([],__read$3($P.map(function(ame,nme){var rme;return getStrOrVariable(ame,eme.data,(rme=eme.filter)===null||rme===void 0?void 0:rme.args[nme])})),!1)):x_},filter:function(x_,eme,$P,tme){var ame,nme,rme,ime;if(!Array.isArray(x_)||!eme||!$P)return x_;var ome=$P,lme=function(){return!0};if(ome==="isTrue")lme=function(fme){return!!fme};else if(ome==="isFalse")lme=function(fme){return!fme};else if(ome==="isExists")lme=function(fme){return typeof fme<"u"};else if(ome==="equals"||ome==="equal")tme=tme?getStrOrVariable(tme,this.data,(ame=this.filter)===null||ame===void 0?void 0:ame.args[2]):"",lme=function(fme){return tme==fme};else if(ome==="isIn"){var sme=tme?getStrOrVariable(tme,this.data,(nme=this.filter)===null||nme===void 0?void 0:nme.args[2]):[];sme=str2array(sme),sme=Array.isArray(sme)?sme:sme?[sme]:[],lme=function(fme){return sme.length?!!~sme.indexOf(fme):!0}}else if(ome==="notIn"){var cme=tme?getStrOrVariable(tme,this.data,(rme=this.filter)===null||rme===void 0?void 0:rme.args[2]):[];cme=str2array(cme),cme=Array.isArray(cme)?cme:cme?[cme]:[],lme=function(fme){return!~cme.indexOf(fme)}}else{if(ome!=="match"&&(ome="match",tme=$P),tme=tme?getStrOrVariable(tme,this.data,(ime=this.filter)===null||ime===void 0?void 0:ime.args[2]):"",!tme)return x_;var dme=string2regExp("".concat(tme),!1);lme=function(fme){return dme.test(String(fme))}}var ume=/\s*\*\s*/.test(eme);return eme=eme.split(/\s*,\s*/),x_.filter(function(fme){return(ume?Object.keys(fme):eme).some(function(pme){return lme(resolveVariable(pme,fme),pme,fme)})})},base64Encode:function(x_){return btoa(encodeURIComponent(x_).replace(/%([0-9A-F]{2})/g,function($P,tme){return String.fromCharCode("0x"+tme)}))},base64Decode:function(x_){return decodeURIComponent(atob(x_).split("").map(function(eme){return"%"+("00"+eme.charCodeAt(0).toString(16)).slice(-2)}).join(""))},substring:function(x_,eme,$P){return x_&&typeof x_=="string"?x_.substring(eme,$P):x_},lowerCase:function(x_){return x_&&typeof x_=="string"?x_.toLowerCase():x_},upperCase:function(x_){return x_&&typeof x_=="string"?x_.toUpperCase():x_},isTrue:function(x_,eme,$P){var tme=arguments.length>2;return conditionalFilter(x_,tme,this,!!x_,eme,$P,0)},isFalse:function(x_,eme,$P){var tme=arguments.length>2;return conditionalFilter(x_,tme,this,!x_,eme,$P,0)},isMatch:function(x_,eme,$P,tme){var ame,nme,rme=arguments.length>3;return eme=(nme=getStrOrVariable(eme,this.data,(ame=this.filter)===null||ame===void 0?void 0:ame.args[0]))!==null&&nme!==void 0?nme:eme,conditionalFilter(x_,rme,this,eme&&string2regExp("".concat(eme),!1).test(String(x_)),$P,tme)},notMatch:function(x_,eme,$P,tme){var ame,nme,rme=arguments.length>3;return eme=(nme=getStrOrVariable(eme,this.data,(ame=this.filter)===null||ame===void 0?void 0:ame.args[0]))!==null&&nme!==void 0?nme:eme,conditionalFilter(x_,rme,this,eme&&!string2regExp("".concat(eme),!1).test(String(x_)),$P,tme)},isEquals:function(x_,eme,$P,tme){var ame,nme;eme=(nme=getStrOrVariable(eme,this.data,(ame=this.filter)===null||ame===void 0?void 0:ame.args[0]))!==null&&nme!==void 0?nme:eme;var rme=arguments.length>3;return conditionalFilter(x_,rme,this,x_===eme,$P,tme)},notEquals:function(x_,eme,$P,tme){var ame,nme;eme=(nme=getStrOrVariable(eme,this.data,(ame=this.filter)===null||ame===void 0?void 0:ame.args[0]))!==null&&nme!==void 0?nme:eme;var rme=arguments.length>3;return conditionalFilter(x_,rme,this,x_!==eme,$P,tme)}});function matchSynatax(x_){for(var eme=0;;){var $P=x_.indexOf("$",eme);if(~$P){var tme=x_[$P+1];if(!tme||~['"',"'"," "].indexOf(tme)){eme=$P+1;continue}var ame=x_[$P-1];if(ame&&ame==="\\"){eme=$P+1;continue}return!0}else break}return!1}function register$2(){var x_=this;return{name:"builtin",test:function(eme){return typeof eme=="string"&&matchSynatax(eme)},removeEscapeToken:function(eme){return typeof eme=="string"?eme.replace(/\\\$/g,"$"):eme},compile:function(eme,$P,tme){tme===void 0&&(tme="| html");try{return tokenize(eme,$P,tme)}catch(ame){return"error: ".concat(ame.message)}},asyncCompile:function(eme,$P,tme){return tme===void 0&&(tme="| html"),__awaiter(x_,void 0,void 0,function(){return __generator(this,function(ame){try{return[2,resolveVariableAndFilterForAsync(eme,$P,tme)]}catch(nme){return[2,"error: ".concat(nme.message)]}return[2]})})}}}var copyObject$8=_copyObject,createAssigner$4=_createAssigner,keysIn$5=keysIn_1,assignInWith$1=createAssigner$4(function(x_,eme,$P,tme){copyObject$8(eme,keysIn$5(eme),x_,tme)}),assignInWith_1=assignInWith$1,baseGetTag$1=_baseGetTag,isObjectLike$4=isObjectLike_1,isPlainObject$5=isPlainObject_1,domExcTag="[object DOMException]",errorTag$3="[object Error]";function isError$2(x_){if(!isObjectLike$4(x_))return!1;var eme=baseGetTag$1(x_);return eme==errorTag$3||eme==domExcTag||typeof x_.message=="string"&&typeof x_.name=="string"&&!isPlainObject$5(x_)}var isError_1=isError$2,apply$1=_apply,baseRest$8=_baseRest,isError$1=isError_1,attempt$1=baseRest$8(function(x_,eme){try{return apply$1(x_,void 0,eme)}catch($P){return isError$1($P)?$P:new Error($P)}}),attempt_1=attempt$1,arrayMap$b=_arrayMap;function baseValues$2(x_,eme){return arrayMap$b(eme,function($P){return x_[$P]})}var _baseValues=baseValues$2,eq$2=eq_1,objectProto$k=Object.prototype,hasOwnProperty$i=objectProto$k.hasOwnProperty;function customDefaultsAssignIn$1(x_,eme,$P,tme){return x_===void 0||eq$2(x_,objectProto$k[$P])&&!hasOwnProperty$i.call(tme,$P)?eme:x_}var _customDefaultsAssignIn=customDefaultsAssignIn$1,stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar$1(x_){return"\\"+stringEscapes[x_]}var _escapeStringChar=escapeStringChar$1,reInterpolate$2=/<%=([\s\S]+?)%>/g,_reInterpolate=reInterpolate$2,reEscape$1=/<%-([\s\S]+?)%>/g,_reEscape=reEscape$1,reEvaluate$1=/<%([\s\S]+?)%>/g,_reEvaluate=reEvaluate$1,escape$1=_escape,reEscape=_reEscape,reEvaluate=_reEvaluate,reInterpolate$1=_reInterpolate,templateSettings$1={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate$1,variable:"",imports:{_:{escape:escape$1}}},templateSettings_1=templateSettings$1,assignInWith=assignInWith_1,attempt=attempt_1,baseValues$1=_baseValues,customDefaultsAssignIn=_customDefaultsAssignIn,escapeStringChar=_escapeStringChar,isError=isError_1,isIterateeCall$5=_isIterateeCall,keys$7=keys_1,reInterpolate=_reInterpolate,templateSettings=templateSettings_1,toString$6=toString_1,INVALID_TEMPL_VAR_ERROR_TEXT="Invalid `variable` option passed into `_.template`",reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,objectProto$j=Object.prototype,hasOwnProperty$h=objectProto$j.hasOwnProperty;function template(x_,eme,$P){var tme=templateSettings.imports._.templateSettings||templateSettings;$P&&isIterateeCall$5(x_,eme,$P)&&(eme=void 0),x_=toString$6(x_),eme=assignInWith({},eme,tme,customDefaultsAssignIn);var ame=assignInWith({},eme.imports,tme.imports,customDefaultsAssignIn),nme=keys$7(ame),rme=baseValues$1(ame,nme),ime,ome,lme=0,sme=eme.interpolate||reNoMatch,cme="__p += '",dme=RegExp((eme.escape||reNoMatch).source+"|"+sme.source+"|"+(sme===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(eme.evaluate||reNoMatch).source+"|$","g"),ume=hasOwnProperty$h.call(eme,"sourceURL")?"//# sourceURL="+(eme.sourceURL+"").replace(/\s/g," ")+`
`:"";x_.replace(dme,function(hme,bme,mme,vme,gme,yme){return mme||(mme=vme),cme+=x_.slice(lme,yme).replace(reUnescapedString,escapeStringChar),bme&&(ime=!0,cme+=`' +
__e(`+bme+`) +
'`),gme&&(ome=!0,cme+=`';
`+gme+`;
__p += '`),mme&&(cme+=`' +
((__t = (`+mme+`)) == null ? '' : __t) +
'`),lme=yme+hme.length,hme}),cme+=`';
`;var fme=hasOwnProperty$h.call(eme,"variable")&&eme.variable;if(!fme)cme=`with (obj) {
`+cme+`
}
`;else if(reForbiddenIdentifierChars.test(fme))throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);cme=(ome?cme.replace(reEmptyStringLeading,""):cme).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;"),cme="function("+(fme||"obj")+`) {
`+(fme?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ime?", __e = _.escape":"")+(ome?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+cme+`return __p
}`;var pme=attempt(function(){return Function(nme,ume+"return "+cme).apply(void 0,rme)});if(pme.source=cme,isError(pme))throw pme;return pme}var template_1=template;const template$1=getDefaultExportFromCjs(template_1);var imports={default:void 0,moment:hooks,countDown:function(x_){if(!x_)return"--";var eme=new Date(parseInt(x_,10)*1e3),$P=Date.now();return eme.getTime()<$P?"已结束":Math.ceil((eme.getTime()-$P)/(1e3*60*60*24))+"天"},formatDate:function(x_,eme,$P){return eme===void 0&&(eme="LLL"),$P===void 0&&($P=""),hooks(x_,$P).format(eme)}},EVAL_CACHE$1={};function lodashCompile(x_,eme){try{var $P=getFilters(),tme=__assign$3(__assign$3(__assign$3({},$P),{formatTimeStamp:$P.date,formatNumber:$P.number,defaultValue:$P.defaut}),imports);delete tme.default;var ame=EVAL_CACHE$1[x_]||(EVAL_CACHE$1[x_]=template$1(x_,{imports:tme,variable:"data",interpolate:/<%=([\s\S]+?)%>/g}));return ame.call(eme,eme)}catch(nme){return'<span class="text-danger">'.concat(nme.message,"</span>")}}function register$1(){return{name:"lodash",test:function(x_){return!!~x_.indexOf("<%")},compile:function(x_,eme){return lodashCompile(x_,eme)},asyncCompile:function(x_,eme){return lodashCompile(x_,eme)}}}function baseClamp$2(x_,eme,$P){return x_===x_&&($P!==void 0&&(x_=x_<=$P?x_:$P),eme!==void 0&&(x_=x_>=eme?x_:eme)),x_}var _baseClamp=baseClamp$2,baseClamp$1=_baseClamp,baseToString$2=_baseToString,toInteger$7=toInteger_1,toString$5=toString_1;function endsWith(x_,eme,$P){x_=toString$5(x_),eme=baseToString$2(eme);var tme=x_.length;$P=$P===void 0?tme:baseClamp$1(toInteger$7($P),0,tme);var ame=$P;return $P-=eme.length,$P>=0&&x_.slice($P,ame)==eme}var endsWith_1=endsWith;const endsWith$1=getDefaultExportFromCjs(endsWith_1);var baseKeys$1=_baseKeys,getTag$5=_getTag,isArguments$2=isArguments_1,isArray$b=isArray_1,isArrayLike$5=isArrayLike_1,isBuffer$3=isBufferExports,isPrototype$2=_isPrototype,isTypedArray$1=isTypedArray_1,mapTag$7="[object Map]",setTag$7="[object Set]",objectProto$i=Object.prototype,hasOwnProperty$g=objectProto$i.hasOwnProperty;function isEmpty$3(x_){if(x_==null)return!0;if(isArrayLike$5(x_)&&(isArray$b(x_)||typeof x_=="string"||typeof x_.splice=="function"||isBuffer$3(x_)||isTypedArray$1(x_)||isArguments$2(x_)))return!x_.length;var eme=getTag$5(x_);if(eme==mapTag$7||eme==setTag$7)return!x_.size;if(isPrototype$2(x_))return!baseKeys$1(x_).length;for(var $P in x_)if(hasOwnProperty$g.call(x_,$P))return!1;return!0}var isEmpty_1=isEmpty$3;const isEmpty$4=getDefaultExportFromCjs(isEmpty_1);var baseClamp=_baseClamp,baseToString$1=_baseToString,toInteger$6=toInteger_1,toString$4=toString_1;function startsWith(x_,eme,$P){return x_=toString$4(x_),$P=$P==null?0:baseClamp(toInteger$6($P),0,x_.length),eme=baseToString$1(eme),x_.slice($P,$P+eme.length)==eme}var startsWith_1=startsWith;const startsWith$1=getDefaultExportFromCjs(startsWith_1);function isPureVariable(x_){if(typeof x_=="string")try{var eme=memoryParse(x_);return(eme==null?void 0:eme.body.length)===1&&eme.body[0].type==="script"}catch{return!1}return!1}var resolveVariableAndFilter=function(x_,eme,$P,tme){if(eme===void 0&&(eme={}),$P===void 0&&($P="| html"),tme===void 0&&(tme=function(rme){return rme}),!(!x_||typeof x_!="string"))try{var ame=parse$2(x_,{evalMode:!1,allowFilter:!0}),nme=new Evaluator(eme,{defaultFilter:$P}).evalute(ame);return nme==null&&!~x_.indexOf("default")&&!~x_.indexOf("now")?tme(nme):nme}catch(rme){console.warn(rme);return}},conditionResolverMap={},DEFAULT_RESULT=!0;function resolveConditionAsync(x_,eme,$P){return $P===void 0&&($P=!0),__awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:if(!x_||!x_.conjunction||!Array.isArray(x_.children)||!x_.children.length)return[2,$P];ame.label=1;case 1:return ame.trys.push([1,3,,6]),[4,computeConditionsAsync(x_.children,x_.conjunction,eme)];case 2:return[2,ame.sent()];case 3:return tme=ame.sent(),tme.name!=="FormulaEvalError"?[3,5]:[4,void 0];case 4:return[2,ame.sent()];case 5:return[2,$P];case 6:return[2]}})})}function resolveCondition(x_,eme,$P){if($P===void 0&&($P=!0),!x_||!x_.conjunction||!Array.isArray(x_.children)||!x_.children.length)return $P;try{return computeConditions(x_.children,x_.conjunction,eme)}catch(tme){return tme.name==="FormulaEvalError"?void 0:$P}}function computeConditionsAsync(x_,eme,$P){return eme===void 0&&(eme="and"),__awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:tme=!0,ame=0,nme=x_.length,lme.label=1;case 1:return ame<nme?(rme=x_[ame],rme.conjunction&&Array.isArray(rme.children)&&rme.children.length?[4,computeConditionsAsync(rme.children,rme.conjunction,$P)]:[3,3]):[3,7];case 2:return ome=lme.sent(),[3,5];case 3:return[4,computeConditionAsync(rme,ame,$P)];case 4:ome=lme.sent(),lme.label=5;case 5:if(ime=ome,tme=!!ime,ime&&eme==="or"||!ime&&eme==="and")return[3,7];lme.label=6;case 6:return ame++,[3,1];case 7:return[2,tme]}})})}function computeConditions(x_,eme,$P){eme===void 0&&(eme="and");for(var tme=!0,ame=0,nme=x_.length;ame<nme;ame++){var rme=x_[ame],ime=rme.conjunction&&Array.isArray(rme.children)&&rme.children.length?computeConditions(rme.children,rme.conjunction,$P):computeCondition(rme,ame,$P);if(tme=!!ime,ime&&eme==="or"||!ime&&eme==="and")break}return tme}function computeConditionAsync(x_,eme,$P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return ame=get$6($P,x_.left.field),[4,resolveVariableAndFilterForAsync(x_.right,$P,void 0,void 0,!0)];case 1:return nme=ime.sent(),rme=(tme=conditionResolverMap["".concat(x_.op,"For").concat(capitalize$2(x_.left.type))])!==null&&tme!==void 0?tme:conditionResolverMap[x_.op],[2,rme?rme(ame,nme,x_.left.type):DEFAULT_RESULT]}})})}function computeCondition(x_,eme,$P){var tme,ame=get$6($P,x_.left.field),nme=isPureVariable(x_.right)?resolveVariableAndFilter(x_.right,$P):x_.right,rme=(tme=conditionResolverMap["".concat(x_.op,"For").concat(capitalize$2(x_.left.type))])!==null&&tme!==void 0?tme:conditionResolverMap[x_.op];return rme&&typeof rme=="function"?rme(ame,nme,x_.left.type):DEFAULT_RESULT}function startsWithFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:startsWith$1(x_,eme)}function endsWithFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:endsWith$1(x_,eme)}function equalFunc(x_,eme){return isEqual$1(x_,eme)}function notEqualFunc(x_,eme){return!isEqual$1(x_,eme)}function isEmptyFunc(x_){return typeof x_=="string"?!x_:typeof x_=="number"?x_===void 0:Array.isArray(x_)?!x_.length:typeof x_=="object"?isEmpty$4(x_):DEFAULT_RESULT}function isNotEmptyFunc(x_){return typeof x_=="string"?!x_:typeof x_=="number"?x_!==void 0:Array.isArray(x_)?!!x_.length:typeof x_=="object"?!isEmpty$4(x_):DEFAULT_RESULT}function greaterFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:parseFloat(x_)>parseFloat(eme)}function normalizeDate(x_){if(typeof x_=="string"||typeof x_=="number"){var eme=["","YYYY-MM-DD HH:mm:ss","X"];for(/^\d{10}((\.\d+)*)$/.test(x_.toString())?eme=["X","x","YYYY-MM-DD HH:mm:ss",""]:/^\d{13}((\.\d+)*)$/.test(x_.toString())&&(eme=["x","X","YYYY-MM-DD HH:mm:ss",""]);eme.length;){var $P=eme.shift(),tme=hooks(x_,$P);if(tme.isValid())return tme.toDate()}}return x_}function normalizeDateRange(x_){return(Array.isArray(x_)?x_:x_.split(",")).map(function(eme){return normalizeDate(String(eme).trim())})}function greaterForDateFunc(x_,eme){return x_=normalizeDate(x_),eme=normalizeDate(eme),hooks(x_).isAfter(hooks(eme),"s")}function greaterOrEqualForDateFunc(x_,eme){return x_=normalizeDate(x_),eme=normalizeDate(eme),hooks(x_).isSameOrAfter(hooks(eme),"s")}function greaterOrEqualFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:parseFloat(x_)>=parseFloat(eme)}function lessFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:parseFloat(x_)<parseFloat(eme)}function lessForDateFunc(x_,eme){return x_=normalizeDate(x_),eme=normalizeDate(eme),hooks(x_).isBefore(hooks(eme),"s")}function lessOrEqualForDateFunc(x_,eme){return x_=normalizeDate(x_),eme=normalizeDate(eme),hooks(x_).isSameOrBefore(hooks(eme),"s")}function lessOrEqualFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:parseFloat(x_)<=parseFloat(eme)}function likeFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:!!~x_.indexOf(eme)}function notLikeFunc(x_,eme){return x_===void 0||eme===void 0?DEFAULT_RESULT:!~x_.indexOf(eme)}function betweenFunc(x_,eme){if(typeof x_=="number"&&eme!==void 0){var $P=__read$3(eme.sort(),2),tme=$P[0],ame=$P[1];return x_>=parseFloat(tme)&&x_<=parseFloat(ame)}return DEFAULT_RESULT}function betweenForDateFunc(x_,eme){if(eme!==void 0){var $P=__read$3(normalizeDateRange(eme),2),tme=$P[0],ame=$P[1];return hooks(normalizeDate(x_)).isBetween(tme,ame,"s","[]")}return DEFAULT_RESULT}function notBetweenFunc(x_,eme){if(typeof x_=="number"&&eme!==void 0){var $P=__read$3(eme.sort(),2),tme=$P[0],ame=$P[1];return x_<parseFloat(tme)&&x_>parseFloat(ame)}return DEFAULT_RESULT}function notBetweenForDateFunc(x_,eme){if(eme!==void 0){var $P=__read$3(normalizeDateRange(eme),2),tme=$P[0],ame=$P[1];return!hooks(normalizeDate(x_)).isBetween(tme,ame,"s","[]")}return DEFAULT_RESULT}function selectAnyInFunc(x_,eme){return Array.isArray(eme)?Array.isArray(x_)?eme.every(function($P){return x_.includes($P)}):eme.includes(x_):DEFAULT_RESULT}function selectNotAnyInFunc(x_,eme){return Array.isArray(eme)?Array.isArray(x_)?!eme.every(function($P){return x_.includes($P)}):!eme.includes(x_):DEFAULT_RESULT}function registerConditionComputer(x_,eme,$P){conditionResolverMap["".concat(x_).concat($P?"For"+capitalize$2($P):"")]=eme}registerConditionComputer("greater",greaterFunc);registerConditionComputer("greater",greaterForDateFunc,"date");registerConditionComputer("greater",greaterForDateFunc,"time");registerConditionComputer("greater",greaterForDateFunc,"datetime");registerConditionComputer("greater_or_equal",greaterOrEqualFunc);registerConditionComputer("greater_or_equal",greaterOrEqualForDateFunc,"date");registerConditionComputer("greater_or_equal",greaterOrEqualForDateFunc,"time");registerConditionComputer("greater_or_equal",greaterOrEqualForDateFunc,"datetime");registerConditionComputer("less",lessFunc);registerConditionComputer("less",lessForDateFunc,"date");registerConditionComputer("less",lessForDateFunc,"time");registerConditionComputer("less",lessForDateFunc,"datetime");registerConditionComputer("less_or_equal",lessOrEqualFunc);registerConditionComputer("less_or_equal",lessOrEqualForDateFunc,"date");registerConditionComputer("less_or_equal",lessOrEqualForDateFunc,"time");registerConditionComputer("less_or_equal",lessOrEqualForDateFunc,"datetime");registerConditionComputer("is_empty",isEmptyFunc);registerConditionComputer("is_not_empty",isNotEmptyFunc);registerConditionComputer("between",betweenFunc);registerConditionComputer("between",betweenForDateFunc,"date");registerConditionComputer("between",betweenForDateFunc,"time");registerConditionComputer("between",betweenForDateFunc,"datetime");registerConditionComputer("not_between",notBetweenFunc);registerConditionComputer("not_between",notBetweenForDateFunc,"date");registerConditionComputer("not_between",notBetweenForDateFunc,"time");registerConditionComputer("not_between",notBetweenForDateFunc,"datetime");registerConditionComputer("equal",equalFunc);registerConditionComputer("not_equal",notEqualFunc);registerConditionComputer("like",likeFunc);registerConditionComputer("not_like",notLikeFunc);registerConditionComputer("select_any_in",selectAnyInFunc);registerConditionComputer("select_not_any_in",selectNotAnyInFunc);registerConditionComputer("starts_with",startsWithFunc);registerConditionComputer("ends_with",endsWithFunc);var enginers={};function registerTplEnginer(x_,eme){enginers[x_]=eme}function filter$1(x_,eme){eme===void 0&&(eme={});for(var $P=[],tme=2;tme<arguments.length;tme++)$P[tme-2]=arguments[tme];if(!x_||typeof x_!="string")return"";for(var ame=Object.keys(enginers),nme=0,rme=ame.length;nme<rme;nme++){var ime=enginers[ame[nme]];if(ime.test(x_))return ime.compile.apply(ime,__spreadArray([x_,eme],__read$3($P),!1));ime.removeEscapeToken&&(x_=ime.removeEscapeToken(x_))}return x_}function asyncFilter(x_,eme){eme===void 0&&(eme={});for(var $P=[],tme=2;tme<arguments.length;tme++)$P[tme-2]=arguments[tme];if(!x_||typeof x_!="string")return Promise.resolve("");for(var ame=Object.keys(enginers),nme=0,rme=ame.length;nme<rme;nme++){var ime=enginers[ame[nme]];if(ime.test(x_))return ime.asyncCompile.apply(ime,__spreadArray([x_,eme],__read$3($P),!1));ime.removeEscapeToken&&(x_=ime.removeEscapeToken(x_))}return x_}var EVAL_CACHE={};function evalExpression(x_,eme){if(!x_||typeof x_!="string")return!1;try{if(typeof x_=="string"&&x_.substring(0,2)==="${"&&x_[x_.length-1]==="}")return!!evalFormula(x_,eme);var $P=!1,tme=x_.indexOf("debugger");~tme&&($P=!0,x_=x_.replace(/debugger;?/,""));var ame=void 0;return x_ in EVAL_CACHE?ame=EVAL_CACHE[x_]:(ame=new Function("data","utils","with(data) {".concat($P?"debugger;":"","return !!(").concat(x_,");}")),EVAL_CACHE[x_]=ame),eme=eme||{},ame.call(eme,eme,getFilters())}catch(nme){return console.warn(x_,nme),!1}}function evalExpressionWithConditionBuilderAsync(x_,eme,$P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){switch(tme.label){case 0:return Object.prototype.toString.call(x_)!=="[object Object]"?[3,2]:[4,resolveConditionAsync(x_,eme,$P)];case 1:return[2,tme.sent()];case 2:return[2,evalExpression(String(x_),eme)]}})})}function evalExpressionWithConditionBuilder(x_,eme,$P){return Object.prototype.toString.call(x_)==="[object Object]"?resolveCondition(x_,eme,$P):evalExpression(String(x_),eme)}function evalFormula(x_,eme){var $P=memoParse(x_,{evalMode:!1});return evaluate($P,eme,{defaultFilter:"raw"})}function evalJS(x_,eme){try{if(typeof x_=="string"&&x_.substring(0,2)==="${"&&x_[x_.length-1]==="}")return evalFormula(x_,eme);var $P=new Function("data","utils","with(data) {".concat(/^\s*return\b/.test(x_)?"":"return ").concat(x_,";}"));return eme=eme||{},$P.call(eme,eme,getFilters())}catch(tme){return console.warn(x_,tme),null}}[register$2,register$1].forEach(function(x_){if(x_){var eme=x_();registerTplEnginer(eme.name,{test:eme.test,compile:eme.compile,asyncCompile:eme.asyncCompile,removeEscapeToken:eme.removeEscapeToken})}});var defineProperty$2=Object.defineProperty,getPrototypeOf=Object.getPrototypeOf;function bind$3(x_,eme){return x_.bind?x_.bind(eme):function(){return x_.apply(eme,arguments)}}var mapStore;function getBoundSuper(x_,eme){if(typeof WeakMap>"u")throw new Error("Using @autobind on ".concat(eme.name,"() requires WeakMap support due to its use of super.").concat(eme.name,`()
        See https://github.com/jayphelps/core-decorators.js/issues/20`));mapStore||(mapStore=new WeakMap),mapStore.has(x_)||mapStore.set(x_,new WeakMap);var $P=mapStore.get(x_);return $P.has(eme)||$P.set(eme,bind$3(eme,x_)),$P.get(eme)}function createDefaultSetter(x_){return function($P){return defineProperty$2(this,x_,{configurable:!0,writable:!0,enumerable:!0,value:$P}),$P}}function autobindMethod(x_,eme,$P){var tme=$P.value,ame=$P.configurable,nme=$P.enumerable;if(typeof tme!="function")throw new SyntaxError("@autobind can only be used on functions, not: ".concat(tme));var rme=x_.constructor;return{configurable:ame,enumerable:nme,get:function(){if(this===x_||this.constructor!==rme&&getPrototypeOf(this).constructor===rme)return tme;if(this.constructor!==rme&&eme in this.constructor.prototype)return getBoundSuper(this,tme);var ime=bind$3(tme,this);return defineProperty$2(this,eme,{configurable:!0,writable:!0,enumerable:!1,value:ime}),ime},set:createDefaultSetter(eme)}}function traverseAst$1(x_,eme){!x_||!x_.type||(eme(x_),Object.keys(x_).forEach(function($P){var tme=x_[$P];Array.isArray(tme)?tme.forEach(function(ame){return traverseAst$1(ame,eme)}):traverseAst$1(tme,eme)}))}var COLLECT_EXPRESSION_CACHE={};function collectVariables(x_,eme){var $P=[];if(typeof x_=="string"&&COLLECT_EXPRESSION_CACHE[x_])return COLLECT_EXPRESSION_CACHE[x_];var tme=typeof x_=="string"?memoryParse(x_,{evalMode:!1}):x_;return traverseAst$1(tme,function(ame){ame.type==="variable"&&$P.push(ame.name)}),typeof x_=="string"&&(COLLECT_EXPRESSION_CACHE[x_]=$P),$P}var FORMULA_EVAL_CACHE={},FormulaExec={tpl:function(x_,eme){var $P=eme||{};return filter$1(x_,$P)},formula:function(x_,eme){if(/^\$\{([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})\}$/.test(x_))return x_.substring(2,x_.length-1);var $P=eme||{},tme=void 0;try{tme=resolveVariableAndFilter(x_,$P,"| raw")}catch{return console.warn("[formula]表达式执行异常，当前表达式: ",x_,"，当前上下文数据: ",eme),x_}return tme},evalFormula:function(x_,eme){var $P=eme||{},tme=void 0;try{tme=evaluate(x_,$P,{evalMode:!0,allowFilter:!1})}catch{return console.warn("[evalFormula]表达式执行异常，当前表达式: ",x_,"，当前上下文数据: ",eme),x_}return tme??x_},js:function(x_,eme){var $P=!1,tme=x_.indexOf("debugger");~tme&&($P=!0,x_=x_.replace(/debugger;?/,""));var ame;x_ in FORMULA_EVAL_CACHE?ame=FORMULA_EVAL_CACHE[x_]:(ame=new Function("data","utils","with(data) {".concat($P?"debugger;":"","return (").concat(x_,");}")),FORMULA_EVAL_CACHE[x_]=ame),eme=eme||{};var nme=void 0;try{nme=ame.call(eme,eme,getFilters())}catch{return console.warn("[formula:js]表达式执行异常，当前表达式: ",x_,"，当前上下文数据: ",eme),x_}return nme},var:function(x_,eme){var $P=eme||{},tme=getVariable($P,x_);return tme??x_},collect:function(x_){var eme=[];return isObject$r(x_)||isString$8(x_)?eme=collectVariables(x_):eme=[],eme}};function isExpression(x_){return!x_||!isString$8(x_)?!1:/(^|[^\\])\$\{[\s\S]+\}/.test(x_)}function isNeedFormula(x_,eme,$P){try{var tme=FormulaExec.collect(x_);return tme.some(function(ame){return FormulaExec.var(ame,eme)!==FormulaExec.var(ame,$P)})}catch{return console.warn("[isNeedFormula]表达式执行异常，当前表达式: ",x_,"，当前上下文数据: ",$P),!1}}function replaceExpression(x_){return x_&&isString$8(x_)&&/(\\)(\${).+(\})/.test(x_)?x_.replace(/\\\$\{/g,"${"):x_}function preventDefault(x_){(typeof x_.cancelable!="boolean"||x_.cancelable)&&x_.preventDefault()}function isMobile$2(){var x_,eme;return(eme=(x_=window).matchMedia)===null||eme===void 0?void 0:eme.call(x_,"(max-width: 768px)").matches}function range$2(x_,eme,$P){return Math.min(Math.max(x_,eme),$P)}function injectPropsToObject(x_,eme){var $P=Object.create(x_.__super||null);Object.keys(eme).forEach(function(ame){return $P[ame]=eme[ame]});var tme=Object.create($P);return Object.keys(x_).forEach(function(ame){return tme[ame]=x_[ame]}),tme}function isSuperDataModified(x_,eme,$P){var tme;return $P&&$P.storeType==="FormStore"?tme=uniq$1($P.items.map(function(ame){return"".concat(ame.name).replace(/\..*$/,"")}).concat(Object.keys($P.data))):tme=Object.keys($P.data),Array.isArray(tme)&&tme.length?tme.some(function(ame){return x_[ame]!==eme[ame]}):!1}function syncDataFromSuper(x_,eme,$P,tme,ame){var nme=__assign$3({},x_),rme=[];return tme&&tme.storeType==="FormStore"&&tme.canAccessSuperData!==!1?rme=uniq$1(tme.items.map(function(ime){return"".concat(ime.name).replace(/\..*$/,"")}).concat(Object.keys(nme))):ame&&(rme=Object.keys(nme)),(eme||$P)&&rme.forEach(function(ime){ime&&(eme&&typeof eme[ime]<"u"||$P&&typeof $P[ime]<"u")&&($P&&!eme||!$P&&eme||$P[ime]!==eme[ime])&&(nme[ime]=eme[ime])}),nme}function guid$1(){function x_(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return x_()+x_()+x_()}function findIndex$4(x_,eme){for(var $P=0,tme=x_.length;$P<tme;$P++)if(eme(x_[$P],$P))return $P;return-1}function noop$9(){}function anyChanged$1(x_,eme,$P,tme){return tme===void 0&&(tme=!0),(typeof x_=="string"?x_.split(",").map(function(ame){return ame.trim()}):x_).some(function(ame){return tme?!Object.is(eme[ame],$P[ame]):eme[ame]!=$P[ame]})}function changedEffect(x_,eme,$P,tme,ame){ame===void 0&&(ame=!0);var nme={},rme=typeof x_=="string"?x_.split(",").map(function(ime){return ime.trim()}):x_;rme.forEach(function(ime){(ame?!Object.is(eme[ime],$P[ime]):eme[ime]!=$P[ime])&&(nme[ime]=$P[ime])}),Object.keys(nme).length&&tme(nme)}function rmUndefined(x_){var eme={};if(typeof x_!="object")return x_;var $P=Object.keys(x_);return $P.forEach(function(tme){x_[tme]!==void 0&&(eme[tme]=x_[tme])}),eme}function isObjectShallowModified$1(x_,eme,$P,tme,ame,nme){if($P===void 0&&($P=!0),tme===void 0&&(tme=!1),ame===void 0&&(ame=[]),nme===void 0&&(nme=-1),Array.isArray(x_)&&Array.isArray(eme))return x_.length!==eme.length?!0:x_.some(function(sme,cme){return isObjectShallowModified$1(sme,eme[cme],$P,tme,ame)});if(isNaN$2(x_)&&isNaN$2(eme))return!1;if(x_==null||eme==null||!isObject$8(x_)||!isObject$8(eme)||x_.constructor!==Object||eme.constructor!==Object)return $P&&typeof $P=="function"?$P(x_,eme):$P?x_!==eme:x_!=eme;tme&&(x_=rmUndefined(x_),eme=rmUndefined(eme));var rme=Object.keys(x_),ime=Object.keys(eme);if(rme.length!==ime.length||rme.sort().join(",")!==ime.sort().join(","))return!0;if(~ame.indexOf(x_))return!1;if(ame.push(x_),nme>0&&ame.length>nme)return!0;for(var ome=rme.length-1;ome>=0;ome--){var lme=rme[ome];if(isObjectShallowModified$1(x_[lme],eme[lme],$P,tme,ame))return!0}return!1}function isArrayChildrenModified(x_,eme,$P){if($P===void 0&&($P=!0),!Array.isArray(x_)||!Array.isArray(eme))return $P?x_!==eme:x_!=eme;if(x_.length!==eme.length)return!0;for(var tme=x_.length-1;tme>=0;tme--)if(($P?x_[tme]!==eme[tme]:x_[tme]!=eme[tme])||isArrayChildrenModified(x_[tme].children,eme[tme].children,$P))return!0;return!1}function immutableExtends(x_,eme,$P){if(!isObject$8(x_)||!isObject$8(eme))return x_;var tme=x_;return Object.keys(eme).forEach(function(ame){var nme=x_[ame],rme=eme[ame];nme!==rme&&(tme=tme!==x_?tme:__assign$3({},x_),tme[ame]=rme)}),tme}function hasVisibleExpression(x_){return!!(x_.visibleOn||x_.hiddenOn)}function isVisible(x_,eme,$P){var tme;if((x_.id||x_.name)&&$P){var ame=filter$1(x_.id,eme),nme=filter$1(x_.name,eme),rme=isAlive($P)?(tme=$P.visibleState[ame])!==null&&tme!==void 0?tme:$P.visibleState[nme]:void 0;if(typeof rme<"u")return rme}return!(x_.hidden||x_.visible===!1||x_.hiddenOn&&evalExpressionWithConditionBuilder(x_.hiddenOn,eme)||x_.visibleOn&&!evalExpressionWithConditionBuilder(x_.visibleOn,eme))}function isUnfolded(x_,eme){var $P=eme.foldedField,tme=eme.unfoldedField;return tme||(tme="unfolded"),$P||($P="folded"),tme&&typeof x_[tme]<"u"?!!x_[tme]:$P&&typeof x_[$P]<"u"?!x_[$P]:!1}function visibilityFilter(x_,eme){return x_.filter(function($P){return isVisible($P,eme)})}function isDisabled(x_,eme){return x_.disabled||x_.disabledOn&&evalExpressionWithConditionBuilder(x_.disabledOn,eme)}function hasAbility(x_,eme,$P,tme){return tme===void 0&&(tme=!0),x_.hasOwnProperty(eme)?x_[eme]:x_.hasOwnProperty("".concat(eme,"On"))?evalExpressionWithConditionBuilder(x_["".concat(eme,"On")],x_):tme}function makeHorizontalDeeper$1(x_,eme){if(eme>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test(x_.left)){var $P=parseInt(RegExp.$2,10)*eme;return{leftFixed:x_.leftFixed,left:$P,right:12-$P,offset:$P}}else if(eme>1&&typeof x_.left=="number"){var $P=x_.left*eme;return{leftFixed:x_.leftFixed,left:$P,right:12-$P,offset:$P}}return x_}function promisify(x_){if(x_._promisified)return x_;var eme=function(){try{var $P=x_.apply(null,arguments);return $P&&$P.then?$P:typeof $P=="function"?new Promise(function(tme,ame){return $P(function(nme,rme){return nme?ame(nme):tme(rme)})}):Promise.resolve($P)}catch(tme){return Promise.reject(tme)}};return eme.raw=x_,eme._promisified=!0,eme}function getScrollParent(x_,eme){if(eme===void 0&&(eme=function(){return!0}),x_==null)return null;var $P=getComputedStyle(x_);if(!$P)return null;var tme=$P.getPropertyValue("overflow")+$P.getPropertyValue("overflow-x")+$P.getPropertyValue("overflow-y");return x_.nodeName==="BODY"||/auto|scroll/.test(tme)&&eme(x_)?x_:getScrollParent(x_.parentNode,eme)}function difference$2(x_,eme,$P){function tme(ame,nme){if(isObject$8(ame)&&isObject$8(nme)){var rme=uniq$1(Object.keys(ame).concat(Object.keys(nme))),ime={};return rme.forEach(function(ome){var lme=ame[ome],sme=nme[ome];$P&&~$P.indexOf(ome)&&(ime[ome]=lme),!(ame.hasOwnProperty(ome)&&nme.hasOwnProperty(ome)&&!isObjectShallowModified$1(lme,sme,!0,void 0,void 0,10))&&(ame.hasOwnProperty(ome)?Array.isArray(lme)&&Array.isArray(sme)?ime[ome]=lme:ime[ome]=tme(lme,sme):ime[ome]=void 0)}),ime}return ame}return tme(x_,eme)}var padArr=function(x_,eme,$P){eme===void 0&&(eme=4),$P===void 0&&($P=!1);for(var tme=[[]],ame=x_.concat(),nme=0;ame.length||$P&&tme[tme.length-1].length<eme;){var rme=tme[nme]||(tme[nme]=[]);if(rme.length>=eme){nme+=1;continue}rme.push(ame.shift())}return tme};function isBreakpoint(x_){if(typeof x_!="string")return!!x_;var eme=x_.split(/\s*,\s*|\s+/);if(window.matchMedia)return eme.some(function(tme){return tme==="*"||tme==="xs"&&matchMedia("screen and (max-width: 767px)").matches||tme==="sm"&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||tme==="md"&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||tme==="lg"&&matchMedia("screen and (min-width: 1200px)").matches});var $P=window.innerWidth;return eme.some(function(tme){return tme==="*"||tme==="xs"&&$P<768||tme==="sm"&&$P>=768&&$P<992||tme==="md"&&$P>=992&&$P<1200||tme==="lg"&&$P>=1200})}function until(x_,eme,$P,tme){var ame=this;tme===void 0&&(tme=5e3);var nme,rme=!1;return new Promise(function(ime,ome){var lme=function(){clearTimeout(nme),rme=!0},sme=function(){return __awaiter(ame,void 0,void 0,function(){var cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:return ume.trys.push([0,2,,3]),[4,x_()];case 1:return cme=ume.sent(),rme?[2]:(eme(cme)?(rme=!0,ime(cme)):nme=setTimeout(sme,tme),[3,3]);case 2:return dme=ume.sent(),ome(dme),[3,3];case 3:return[2]}})})};sme(),$P&&$P(lme)})}function omitControls$1(x_,eme){return x_.filter(function($P){return!~eme.indexOf($P.name||$P._name)})}function isEmpty$2(x_){return!(isObject$8(x_)&&Object.keys(x_).length)}var uuid$1=function(){return(+new Date).toString(36)},createStr=function(){return("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16)},uuidv4=function(){var x_=createStr(),eme=createStr();return x_.slice(0,8)+"-"+x_.slice(8,12)+"-4"+x_.slice(13)+"-a"+eme.slice(1,4)+"-"+eme.slice(4)};function mapTree(x_,eme,$P,tme,ame,nme){return $P===void 0&&($P=1),tme===void 0&&(tme=!1),ame===void 0&&(ame=[]),nme===void 0&&(nme=[]),x_.map(function(rme,ime){if(tme){var ome=rme.children?mapTree(rme.children,eme,$P+1,tme,ame.concat(rme),nme.concat(ime)):void 0;return ome&&(rme=__assign$3(__assign$3({},rme),{children:ome})),rme=eme(rme,ime,$P,ame,nme.concat(ime))||__assign$3({},rme),rme}return rme=eme(rme,ime,$P,ame,nme.concat(ime))||__assign$3({},rme),rme.children&&rme.children.splice&&(rme.children=mapTree(rme.children,eme,$P+1,tme,ame.concat(rme),nme.concat(ime))),rme})}function eachTree$1(x_,eme,$P,tme){var ame;$P===void 0&&($P=1),tme===void 0&&(tme=[]);for(var nme=x_.length,rme=0;rme<nme;rme++){var ime=x_[rme],ome=eme(ime,rme,$P,tme);if(ome==="break")break;ome!=="continue"&&!((ame=ime.children)===null||ame===void 0)&&ame.splice&&eachTree$1(ime.children,eme,$P+1,tme.concat(ime))}}var findTreeCache={tree:null,map:null};function findTree(x_,eme,$P){var tme=function(sme){return sme!==""&&(isString$8(sme)||isNumber$5(sme))};if($P&&tme($P.value)){var ame=$P.resolve,nme=$P.value,rme=$P.foundEffect;if(x_!==findTreeCache.tree||!findTreeCache.map){var ime=new Map;eachTree$1(x_,function(sme,cme,dme,ume){var fme=ame?ame(sme):sme;tme(fme)&&ime.set(String(fme),[sme,cme,dme,ume])}),findTreeCache.map=ime,findTreeCache.tree=x_}var ome=findTreeCache.map.get(String(nme));if(ome!=null)return rme&&rme.apply(null,ome.slice()),ome[0]}var lme=null;return everyTree(x_,function(sme,cme,dme,ume){return eme(sme,cme,dme,ume)?(lme=sme,!1):!0}),lme}function findTreeIndex(x_,eme,$P){var tme=[],ame=function(nme,rme,ime,ome){tme=[rme],ome=ome.concat(),ome.unshift({children:x_});for(var lme=ome.length-1;lme>0;lme--){var sme=ome[lme-1],cme=ome[lme];tme.unshift(sme.children.indexOf(cme))}};return findTree(x_,function(nme,rme,ime,ome){return eme(nme,rme,ime,ome)?(ame(nme,rme,ime,ome),!0):!1},$P?__assign$3(__assign$3({},$P),{foundEffect:ame}):void 0),tme.length?tme:void 0}function getTree(x_,eme){for(var $P=Array.isArray(eme)?eme.concat():[eme],tme=$P.pop(),ame=x_,nme=0,rme=$P.length;nme<rme;nme++){var ime=$P[nme];if(!ame[ime]){ame=null;break}ame=ame[ime].children}return ame?ame[tme]:void 0}function filterTree(x_,eme,$P,tme,ame){return $P===void 0&&($P=1),tme===void 0&&(tme=!1),ame===void 0&&(ame=[]),tme?x_.map(function(nme){var rme=nme.children?filterTree(nme.children,eme,$P+1,tme,ame.concat(nme)):void 0;return Array.isArray(rme)&&Array.isArray(nme.children)&&(nme=__assign$3(__assign$3({},nme),{children:rme})),nme}).filter(function(nme,rme){return eme(nme,rme,$P,ame)}):x_.filter(function(nme,rme){return eme(nme,rme,$P,ame)}).map(function(nme){var rme;if(!((rme=nme.children)===null||rme===void 0)&&rme.splice){var ime=filterTree(nme.children,eme,$P+1,tme,ame.concat(nme));Array.isArray(ime)&&Array.isArray(nme.children)&&(nme=__assign$3(__assign$3({},nme),{children:ime}))}return nme})}function everyTree(x_,eme,$P,tme,ame){var nme,rme=[];for(rme.push({item:null,index:-1,level:1,paths:[],indexes:[]});rme.length>0;){var ime=rme.pop(),ome=ime.item,lme=ime.index,sme=ime.level,cme=ime.paths,dme=ime.indexes;if(lme>=0){var ume=eme(ome,lme,sme,cme,dme);if(ume&&(!((nme=ome.children)===null||nme===void 0)&&nme.splice))for(var fme=ome.children,pme=fme.length-1;pme>=0;pme--)rme.push({item:fme[pme],index:pme,level:sme+1,paths:cme.concat(ome),indexes:dme.concat(lme)});else if(!ume)return!1}else{if(!Array.isArray(x_)&&!isObservableArray(x_))return!1;for(var pme=x_.length-1;pme>=0;pme--)rme.push({item:x_[pme],index:pme,level:1,paths:[],indexes:[]})}}return!0}function someTree(x_,eme){var $P=!1;return everyTree(x_,function(tme,ame,nme,rme){return eme(tme,ame,nme,rme)?($P=!0,!1):!0}),$P}function flattenTree(x_,eme){var $P=[];return eachTree$1(x_,function(tme,ame,nme,rme){return $P.push(eme?eme(tme,ame,nme,rme):tme)}),$P}function flattenTreeWithLeafNodes(x_,eme){var $P=[];return eachTree$1(x_,function(tme,ame){tme.hasOwnProperty("children")||$P.push(tme)}),$P}function spliceTree(x_,eme,$P){$P===void 0&&($P=0);for(var tme=[],ame=3;ame<arguments.length;ame++)tme[ame-3]=arguments[ame];var nme=x_.concat();if(typeof eme=="number")nme.splice.apply(nme,__spreadArray([eme,$P],__read$3(tme),!1));else if(Array.isArray(eme)&&eme.length){eme=eme.concat();var rme=eme.pop(),ime=eme.reduce(function(ome,lme){var sme=__assign$3(__assign$3({},ome[lme]),{children:ome[lme].children?ome[lme].children.concat():[]});return ome[lme]=sme,sme.children},nme);ime.splice.apply(ime,__spreadArray([rme,$P],__read$3(tme),!1))}return nme}function getTreeDepth(x_){return Array.isArray(x_)&&x_.length===0?0:Math.max.apply(Math,__spreadArray([],__read$3(x_.map(function(eme){return Array.isArray(eme.children)?1+getTreeDepth(eme.children):1})),!1))}function getTreeAncestors(x_,eme,$P){$P===void 0&&($P=!1);var tme=null;return findTree(x_,function(ame,nme,rme,ime){return ame===eme?(tme=ime,$P&&tme.push(ame),!0):!1}),tme}function getTreeParent(x_,eme){var $P=getTreeAncestors(x_,eme);return $P!=null&&$P.length?$P[$P.length-1]:null}function countTree(x_,eme){var $P=0;return eachTree$1(x_,function(tme,ame,nme,rme){(!eme||eme(tme,ame,nme,rme))&&$P++}),$P}function ucFirst(x_){return typeof x_=="string"?x_.substring(0,1).toUpperCase()+x_.substring(1):x_}function lcFirst(x_){return x_?x_.substring(0,1).toLowerCase()+x_.substring(1):""}function camel(x_){return x_?x_.split(/[\s_\-]/).map(function(eme,$P){return $P===0?lcFirst(eme):ucFirst(eme)}).join(""):""}function getWidthRate(x_,eme){return eme===void 0&&(eme=!1),typeof x_=="string"&&/\bcol\-\w+\-(\d+)\b/.test(x_)?parseInt(RegExp.$1,10):eme?0:x_||0}function getLevelFromClassName(x_,eme){return eme===void 0&&(eme="default"),/\b(?:btn|text)-(link|primary|secondary|info|success|warning|danger|light|dark)\b/.test(x_)?RegExp.$1:eme}function pickEventsProps(x_){var eme={};return x_&&Object.keys(x_).forEach(function($P){return/^on/.test($P)&&(eme[$P]=x_[$P])}),eme}var autobind$1=autobindMethod,bulkBindFunctions=function(x_,eme){eme.forEach(function($P){return x_[$P]=x_[$P].bind(x_)})};function sortArray(x_,eme,$P,tme){return x_.sort(function(ame,nme){var rme,ime=tme?tme(ame,eme):ame[eme],ome=tme?tme(nme,eme):nme[eme];return typeof ime=="number"&&typeof ome=="number"?rme=ime<ome?-1:ime===ome?0:1:rme=String(ime).localeCompare(String(ome)),rme*$P})}function applyFilters(x_,eme){return eme.matchFunc&&typeof eme.matchFunc=="function"?x_=eme.matchFunc(x_,x_,eme):Array.isArray(eme.columns)&&eme.columns.forEach(function($P){var tme=typeof $P.name=="string"?getVariable(eme.query,$P.name):void 0,ame=$P.name;if((eme.filterOnAllColumns||$P.searchable||$P.filterable)&&ame&&tme!=null)if(Array.isArray(tme)){if(tme.length>0){var nme=__spreadArray([],__read$3(x_),!1),rme=[];tme.forEach(function(ime){rme=__spreadArray(__spreadArray([],__read$3(rme),!1),__read$3(matchSorter(nme,ime,{keys:[ame],threshold:matchSorter.rankings.CONTAINS})),!1)}),x_=x_.filter(function(ime){return rme.find(function(ome){return ome===ime})})}}else x_=matchSorter(x_,tme,{keys:[ame],threshold:matchSorter.rankings.CONTAINS})}),x_}function hasFile(x_){return Object.keys(x_).some(function(eme){var $P=x_[eme];return $P instanceof File||Array.isArray($P)&&$P.length&&$P[0]instanceof File})}function qsstringify(x_,eme,$P){return eme===void 0&&(eme={arrayFormat:"indices",encodeValuesOnly:!0}),$P&&(x_=JSONValueMap(x_,function(tme){return Array.isArray(tme)&&!tme.length?"":tme})),qs$1.stringify(x_,eme)}function qsparse(x_,eme){return eme===void 0&&(eme={arrayFormat:"indices",encodeValuesOnly:!0,depth:1e3,arrayLimit:1e3}),qs$1.parse(x_,eme)}function object2formData(x_,eme,$P){eme===void 0&&(eme={arrayFormat:"indices",encodeValuesOnly:!0}),$P===void 0&&($P=new FormData);var tme=[],ame={};return Object.keys(x_).forEach(function(nme){var rme=x_[nme];rme instanceof File?tme.push([nme,rme]):Array.isArray(rme)&&rme.length&&rme[0]instanceof File?rme.forEach(function(ime){return tme.push(["".concat(nme,"[]"),ime])}):ame[nme]=rme}),qsstringify(ame,eme).split("&").forEach(function(nme){var rme=nme.split("=");rme[0]&&$P.append(rme[0],decodeURIComponent(rme[1]))}),tme.forEach(function(nme){return $P.append(nme[0],nme[1],nme[1].name)}),$P}function chainFunctions(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];return function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];return x_.reduce(function(ame,nme){return ame===!1?!1:typeof nme=="function"?nme.apply(void 0,__spreadArray([],__read$3($P),!1)):void 0},void 0)}}function chainEvents(x_,eme){var $P={};return Object.keys(x_).forEach(function(tme){var ame;tme.substr(0,2)==="on"&&typeof x_[tme]=="function"&&typeof eme[tme]=="function"&&eme[tme]!==x_[tme]?x_.formStore&&tme==="onChange"?$P[tme]=x_[tme]:$P[tme]=chainFunctions(eme[tme],x_[tme]):$P[tme]=(ame=x_[tme])!==null&&ame!==void 0?ame:eme[tme]}),$P}function mapObject(x_,eme,$P,tme){if($P=$P&&typeof $P=="function"?$P:function(nme){return nme instanceof File},$P(x_))return x_;if(Array.isArray(x_))return x_.map(function(nme){return mapObject(nme,eme,$P,tme)});if(isObject$8(x_)){var ame={};return Object.keys(x_).forEach(function(nme){var rme=tme?tme(nme):nme;ame[rme]=mapObject(x_[nme],eme,$P,tme)}),ame}return eme(x_)}function loadScript(x_){return new Promise(function(eme,$P){var tme=document.createElement("script");if(tme.onerror=function(nme){return $P(nme)},~x_.indexOf("{{callback}}")){var ame="loadscriptcallback_".concat(uuid$1());window[ame]=function(){eme(),delete window[ame]},x_=x_.replace("{{callback}}",ame)}else tme.onload=function(){return eme()};tme.src=x_,document.head.appendChild(tme)})}function loadStyle(x_){return new Promise(function(eme,$P){var tme=document.createElement("link");tme.rel="stylesheet",tme.onerror=function(ame){return $P(ame)},tme.onload=function(){return eme()},tme.href=x_,document.head.appendChild(tme)})}var SkipOperation=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme}(Error),ValidateError=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this)||this;return ame.name="ValidateError",ame.message=$P,ame.detail=tme,ame}return eme}(Error);function isCyclic(x_){var eme=[];function $P(tme){if(tme&&typeof tme=="object"){if(eme.indexOf(tme)!==-1)return!0;eme.push(tme);for(var ame in tme)if(tme.hasOwnProperty(ame)&&$P(tme[ame]))return!0}return!1}return $P(x_)}function internalFindObjectsWithKey(x_,eme){var $P=[];for(var tme in x_)x_.hasOwnProperty(tme)&&(tme===eme?$P.push(x_):typeof x_[tme]=="object"&&($P=$P.concat(internalFindObjectsWithKey(x_[tme],eme))));return $P}function findObjectsWithKey(x_,eme){return isCyclic(x_)?[]:internalFindObjectsWithKey(x_,eme)}var scrollbarWidth;function getScrollbarWidth$1(){if(typeof scrollbarWidth<"u")return scrollbarWidth;var x_=document.createElement("div");x_.style.visibility="hidden",x_.style.overflow="scroll",x_.style.msOverflowStyle="scrollbar",document.body.appendChild(x_);var eme=document.createElement("div");return x_.appendChild(eme),scrollbarWidth=x_.offsetWidth-eme.offsetWidth,x_.parentNode.removeChild(x_),scrollbarWidth}function resolveValueByName(x_,eme,$P){return isPureVariable(eme)?resolveVariableAndFilter(eme,x_,"|raw"):resolveVariable(eme,x_,$P)}function getPropValue(x_,eme,$P){var tme,ame;$P===void 0&&($P=x_.canAccessSuperData);var nme=x_.name,rme=x_.value,ime=x_.data,ome=x_.defaultValue;return(ame=(tme=rme??(eme==null?void 0:eme(x_)))!==null&&tme!==void 0?tme:resolveValueByName(ime,nme,$P))!==null&&ame!==void 0?ame:isExpression(ome)?resolveVariableAndFilter(ome,ime):replaceExpression(ome)}function detectPropValueChanged(x_,eme,$P,tme){var ame;typeof x_.value<"u"?x_.value!==eme.value&&$P(x_.value):(ame=tme==null?void 0:tme(x_))!==void 0?ame!==tme(eme)&&$P(ame):typeof x_.name=="string"&&(ame=resolveValueByName(x_.data,x_.name))!==void 0?ame!==resolveValueByName(eme.data,eme.name)&&$P(ame):x_.defaultValue!==eme.defaultValue&&$P(x_.defaultValue)}function removeHTMLTag(x_){return typeof x_=="string"?x_.replace(/<\/?[^>]+(>|$)/g,""):x_}function normalizeNodePath(x_,eme,$P,tme,ame,nme){var rme;$P===void 0&&($P="label"),tme===void 0&&(tme="value"),ame===void 0&&(ame="/"),nme===void 0&&(nme=",");var ime=[],ome=[],lme=function(sme){return last$6(sme?sme.toString().split(ame):[])};return typeof x_>"u"||!eme?{nodeValueArray:ime,nodePathArray:ome}:(Array.isArray(x_)?x_.forEach(function(sme){var cme;sme&&sme.hasOwnProperty(tme)?(ime.push(__assign$3(__assign$3({},sme),(cme={},cme[$P]=lme(sme[$P]),cme[tme]=lme(sme[tme]),cme))),ome.push(sme[tme])):(ime.push(lme(sme)),ome.push(sme))}):typeof x_=="string"?x_.toString().split(nme).forEach(function(sme){ime.push(lme(sme)),ome.push(sme)}):(ime.push(__assign$3(__assign$3({},x_),(rme={},rme[$P]=lme(x_[$P]),rme[tme||"value"]=lme(x_[tme]),rme))),ome.push(x_[tme])),{nodeValueArray:ime,nodePathArray:ome})}function isClickOnInput(x_){var eme=x_.target,$P;return!!(!x_.currentTarget.contains(eme)||~["INPUT","TEXTAREA"].indexOf(eme.tagName)||($P=eme.closest('button, a, [data-role="form-item"], label[data-role="checkbox"], label[data-role="switch"]'))&&x_.currentTarget.contains($P))}function hashCode(x_){return x_.split("").reduce(function(eme,$P){return eme=(eme<<5)-eme+$P.charCodeAt(0),eme&eme},0)}function JSONTraverse$1(x_,eme,$P){$P===void 0&&($P=Number.MAX_VALUE),!($P<=0)&&Object.keys(x_).forEach(function(tme){var ame=x_[tme];isObservable(ame)||(isPlainObject$b(ame)||Array.isArray(ame)?JSONTraverse$1(ame,eme,$P-1):eme(ame,tme,x_))})}function JSONValueMap(x_,eme,$P,tme){if($P===void 0&&($P=!1),tme===void 0&&(tme=[]),!isPlainObject$b(x_)&&!Array.isArray(x_))return x_;var ame=function(lme,sme,cme,dme){var ume,fme;if(dme===void 0&&(dme=[]),$P){var pme=JSONValueMap(lme,eme,$P,dme);return(ume=eme(pme,sme,cme,dme))!==null&&ume!==void 0?ume:pme}var hme=(fme=eme(lme,sme,cme,dme))!==null&&fme!==void 0?fme:lme;return hme===lme?JSONValueMap(lme,eme,$P,dme):hme};if(Array.isArray(x_)){var nme=!1,rme=x_.map(function(lme,sme){var cme=ame(lme,sme,x_,[x_].concat(tme));return nme=nme||cme!==lme,cme});return nme?rme:x_}var ime=!1,ome={};return Object.keys(x_).forEach(function(lme){var sme=x_[lme],cme=ame(sme,lme,x_,[x_].concat(tme));cme!==sme&&(ime=!0,ome[lme]=cme)}),ime?__assign$3(__assign$3({},x_),ome):x_}function convertArrayValueToMoment(x_,eme,$P){if(x_.length===0)return $P;for(var tme=0;tme<eme.length;tme++){var ame=eme[tme];$P.set(ame,x_[tme])}return $P}function getRange(x_,eme,$P){$P===void 0&&($P=1);for(var tme=[],ame=x_;ame<=eme;ame+=$P)tme.push(ame);return tme}function repeatCount(x_,eme){for(var $P=[],tme=0;x_--;)$P.push(eme(tme++));return $P}function isNumeric$1(x_){return typeof x_=="number"?!0:/^[-+]?(?:\d*[.])?\d+$/.test(x_)}function parsePrimitiveQueryString(x_,eme){if(!isPlainObject$b(x_))return x_;eme=eme||{primitiveTypes:["boolean"]},(!Array.isArray(eme.primitiveTypes)||eme.primitiveTypes.length===0)&&(eme.primitiveTypes=["boolean"]);var $P=JSONValueMap(x_,function(tme){var ame,nme;if(!((ame=eme==null?void 0:eme.primitiveTypes)===null||ame===void 0)&&ame.includes("boolean")&&tme==="true"||tme==="false")return tme==="true";if(!((nme=eme==null?void 0:eme.primitiveTypes)===null||nme===void 0)&&nme.includes("number")&&isNumeric$1(tme)&&isFinite(tme)&&tme>=-Number.MAX_SAFE_INTEGER&&tme<=Number.MAX_SAFE_INTEGER){var rme=Number(tme);return isNaN$2(rme)?tme:rme}return tme});return $P}function parseQuery(x_,eme){var $P,tme=eme||{},ame=tme.parsePrimitive,nme=ame===void 0?!1:ame,rme=tme.primitiveTypes,ime=rme===void 0?["boolean"]:rme,ome=x_&&!(x_ instanceof Location)&&(x_==null?void 0:x_.query)||x_&&(x_==null?void 0:x_.search)&&qsparse(x_.search.substring(1))||window.location.search&&qsparse(window.location.search.substring(1)),lme=isPlainObject$b(ome)?nme?parsePrimitiveQueryString(ome,{primitiveTypes:ime}):ome:{},sme=($P=window.location)===null||$P===void 0?void 0:$P.hash,cme={},dme=-1;return typeof sme=="string"&&~(dme=sme.indexOf("?"))&&(cme=qsparse(sme.substring(dme+1))),merge$4(lme,cme)}var differenceFromAllCache={allOptions:null,options:null,res:[]};function differenceFromAll(x_,eme,$P){if(x_===differenceFromAllCache.allOptions&&eme===differenceFromAllCache.options)return differenceFromAllCache.res;var tme=new Map(x_.map(function(nme){return[$P(nme),nme]})),ame=eme.filter(function(nme){return!tme.get($P(nme))});return differenceFromAllCache.allOptions=x_,differenceFromAllCache.options=eme,differenceFromAllCache.res=ame,ame}function buildTrackExpression(x_){if(!isPlainObject$b(x_)&&!Array.isArray(x_))return"";var eme=[];return JSONTraverse$1(x_,function($P,tme){typeof $P=="string"&&(tme==="name"?eme.push(isPureVariable($P)?$P:"${".concat($P,"}")):tme==="source"?eme.push($P):tme.endsWith("On")||tme==="condition"||tme==="trackExpression"?eme.push($P.startsWith("${")?$P:"<script>".concat($P,"<\/script>")):$P.includes("$")&&eme.push($P))},10),eme.join("|")}function evalTrackExpression(x_,eme){if(typeof x_!="string")return"";for(var $P=[];;){var tme=x_.indexOf("<script>");if(tme===-1)break;var ame=x_.indexOf("<\/script>");if(ame===-1)throw new Error("Invalid trackExpression miss end script token `<\/script>`");tme&&$P.push({type:"text",value:x_.substring(0,tme)}),$P.push({type:"script",value:x_.substring(tme+8,ame)}),x_=x_.substring(ame+9)}return x_&&$P.push({type:"text",value:x_}),$P.map(function(nme){return nme.type==="text"?tokenize(nme.value,eme):evalExpression(nme.value,eme)}).join("")}function importLazyComponent(x_){return x_.default.__esModule?x_.default:x_}function replaceUrlParams(x_,eme){return typeof x_=="string"&&/\:\w+/.test(x_)?compile(x_)(eme):x_}var TEST_ID_KEY="data-testid",TestIdBuilder=function(){function x_(eme){this.testId=eme}return x_.fast=function(eme){var $P;return $P={},$P[TEST_ID_KEY]=eme,$P},x_.prototype.getChild=function(eme,$P){return this.testId==null?new x_:new x_($P?filter$1("".concat(this.testId,"-").concat(eme),$P):"".concat(this.testId,"-").concat(eme))},x_.prototype.getTestId=function(eme){var $P;if(this.testId!=null)return $P={},$P[TEST_ID_KEY]=eme?filter$1(this.testId,eme):this.testId,$P},x_.prototype.getTestIdValue=function(eme){if(this.testId!=null)return eme?filter$1(this.testId,eme):this.testId},x_}();function formateId(x_){return x_=x_.replace(/[^a-zA-Z0-9-]/g,"-"),x_=x_.replace(/-{2,}/g,"-"),x_=x_.replace(/^-|-$/g,""),/^\d/.test(x_)&&(x_="amis-"+x_),x_}function formateCheckThemeCss(x_,eme){var $P;if(!x_)return{};var tme=x_["".concat(eme,"ClassName")]||{},ame=x_["".concat(eme,"ControlClassName")]||{},nme={},rme={},ime={},ome={};return Object.keys(tme).forEach(function(lme){if(lme.includes("checked-")){var sme=lme.replace("checked-","");ome[sme]=tme[lme]}else if(lme.includes("".concat(eme,"-"))){var sme=lme.replace("".concat(eme,"-"),"");ime[sme]=tme[lme]}else ime[lme]=tme[lme]}),Object.keys(ame).forEach(function(lme){if(lme.includes("checked-")){var sme=lme.replace("checked-","");rme[sme]=ame[lme]}else if(lme.includes("".concat(eme,"-"))){var sme=lme.replace("".concat(eme,"-"),"");nme[sme]=ame[lme]}else nme[lme]=ame[lme]}),__assign$3(__assign$3({},x_),($P={},$P["".concat(eme,"ControlClassName")]=nme,$P["".concat(eme,"ControlCheckedClassName")]=rme,$P["".concat(eme,"ClassName")]=ime,$P["".concat(eme,"CheckedClassName")]=ome,$P))}function resolveMapping(x_,eme,$P,tme){$P===void 0&&($P="| raw"),tme===void 0&&(tme=!1);var ame=typeof x_=="string"&&isPureVariable(x_)?resolveVariableAndFilter(x_,eme,$P,function(){return""}):typeof x_=="string"&&~x_.indexOf("$")?tokenize(x_,eme,$P):x_;return tme&&(ame==null||ame==="")?x_:ame}function resolveMappingObject(x_,eme){var $P,tme;try{for(var ame=__values$1(Object.keys(x_)),nme=ame.next();!nme.done;nme=ame.next()){var rme=nme.value;typeof x_[rme]=="string"&&(x_[rme]=resolveMapping(x_[rme],eme))}}catch(ime){$P={error:ime}}finally{try{nme&&!nme.done&&(tme=ame.return)&&tme.call(ame)}finally{if($P)throw $P.error}}return x_}function dataMapping(x_,eme,$P,tme,ame){if(eme===void 0&&(eme={}),$P===void 0&&($P=!1),ame===void 0&&(ame=!1),Array.isArray(x_))return x_.map(function(pme){return dataMapping(pme,eme,$P,tme,ame)});if(typeof x_=="string")return resolveMapping(x_,eme,void 0,ame);if(!isPlainObject$b(x_))return x_;var nme={},rme=Object.keys(x_);if(rme.length===1&&rme[0][0]==="$"&&isPlainObject$b(x_[rme[0]])){var ime=resolveMapping(rme[0],eme,"| raw");if(!Array.isArray(ime)&&ame)nme[rme[0]]=x_[rme[0]];else{var ome=Array.isArray(ime)?ime:[],lme=x_[rme[0]];nme=ome.map(function(pme){return dataMapping(lme,createObject$1(eme,__assign$3({item:pme},pme)),$P,tme,ame)})}}else{var sme=Object.keys(x_),cme=sme.indexOf("&");if(~cme){var dme=x_["&"];if(sme.splice(cme,1),dme==="$$")nme=__assign$3(__assign$3({},nme),eme);else{var ume,fme=isPlainObject$b(dme)&&(ume=Object.keys(dme))&&ume.length===1&&eme[ume[0].substring(1)]&&Array.isArray(eme[ume[0].substring(1)])?eme[ume[0].substring(1)].map(function(pme){return dataMapping(dme[ume[0]],createObject$1(eme,pme),$P,tme,ame)}):resolveMapping(dme,eme,void 0,ame);Array.isArray(fme)||typeof fme=="string"?nme=fme:typeof fme=="function"?nme=__assign$3(__assign$3({},nme),fme(eme)):nme=__assign$3(__assign$3({},nme),fme)}}sme.forEach(function(pme){var hme=x_[pme];if(typeof $P=="function"&&$P(pme,hme))setVariable(nme,pme,hme,tme);else if(hme==="$$")setVariable(nme,pme,eme,tme);else if(typeof hme=="string"&&hme.length>0&&hme[0]==="$"){var bme=resolveMapping(hme,eme,void 0,ame);setVariable(nme,pme,bme,tme),bme==="__undefined"&&deleteVariable(nme,pme)}else isPlainObject$b(hme)||Array.isArray(hme)?setVariable(nme,pme,dataMapping(hme,eme,$P,tme,ame),tme):typeof hme=="string"&&~hme.indexOf("$")?setVariable(nme,pme,resolveMapping(hme,eme,void 0,ame),tme):typeof hme=="function"&&$P!==!0?setVariable(nme,pme,hme(eme),tme):(setVariable(nme,pme,hme,tme),hme==="__undefined"&&deleteVariable(nme,pme))})}return nme}var baseIteratee$b=_baseIteratee,isArrayLike$4=isArrayLike_1,keys$6=keys_1;function createFind$1(x_){return function(eme,$P,tme){var ame=Object(eme);if(!isArrayLike$4(eme)){var nme=baseIteratee$b($P);eme=keys$6(eme),$P=function(ime){return nme(ame[ime],ime,ame)}}var rme=x_(eme,$P,tme);return rme>-1?ame[nme?eme[rme]:rme]:void 0}}var _createFind=createFind$1,baseFindIndex$1=_baseFindIndex,baseIteratee$a=_baseIteratee,toInteger$5=toInteger_1,nativeMax$6=Math.max;function findIndex$2(x_,eme,$P){var tme=x_==null?0:x_.length;if(!tme)return-1;var ame=$P==null?0:toInteger$5($P);return ame<0&&(ame=nativeMax$6(tme+ame,0)),baseFindIndex$1(x_,baseIteratee$a(eme),ame)}var findIndex_1=findIndex$2;const findIndex$3=getDefaultExportFromCjs(findIndex_1);var createFind=_createFind,findIndex$1=findIndex_1,find$2=createFind(findIndex$1),find_1=find$2;const find$3=getDefaultExportFromCjs(find_1);var SimpleMap=function(){function x_(){this.list=[]}return x_.prototype.has=function(eme){var $P=find$3(this.list,function(tme){return tme.key===eme});return!!$P},x_.prototype.set=function(eme,$P){this.list.push({key:eme,value:$P})},x_.prototype.get=function(eme){var $P=find$3(this.list,function(tme){return tme.key===eme});return $P?$P.value:null},x_.prototype.delete=function(eme){var $P=findIndex$3(this.list,function(tme){return tme.key===eme});~$P&&this.list.splice($P,1)},x_.prototype.dispose=function(){this.list.splice(0,this.list.length)},x_}(),stores$1={};function addStore(x_){if(stores$1[x_.id])return stores$1[x_.id];if(stores$1[x_.id]=x_,x_.parentId&&!/(?:dialog|drawer)$/.test(x_.path)){var eme=stores$1[x_.parentId];eme.addChildId(x_.id)}return cleanUp(),x_}var toDelete=[];function removeStore(x_){var eme=x_.id;toDelete.push(eme),x_.dispose(cleanUp)}function cleanUp(){for(var x_=toDelete.length-1;x_>=0;){var eme=toDelete[x_],$P=stores$1[eme];$P&&!isAlive($P)?(delete stores$1[eme],toDelete.splice(x_,1)):x_--}}function getStoreById(x_){return stores$1[x_]}function getStores(){return stores$1}var StoreNode=types.model("StoreNode",{id:types.identifier,path:"",storeType:types.string,disposed:!1,parentId:"",childrenIds:types.optional(types.array(types.string),[])}).views(function(x_){return{get parentStore(){return isAlive(x_)&&x_.parentId?getStoreById(x_.parentId):null},get __(){return getEnv(x_).translate},get hasChildren(){return!!x_.childrenIds.length},get children(){return x_.childrenIds.map(function(eme){return getStoreById(eme)})}}}).actions(function(x_){function eme(ame){x_.childrenIds.push(ame)}function $P(ame){var nme=x_.childrenIds.filter(function(rme){return rme!==ame});x_.childrenIds.replace(nme),x_.disposed&&tme()}function tme(ame){if(x_.disposed=!0,/(?:dialog|drawer)$/.test(x_.path))destroy(x_),ame==null||ame();else if(!x_.childrenIds.length){var nme=x_.parentStore;nme&&isAlive(nme)&&nme.onChildStoreDispose(x_),destroy(x_),ame==null||ame()}}return{onChildStoreDispose:function(ame){$P(ame.id)},syncProps:function(ame,nme,rme){rme===void 0&&(rme=Object.keys(ame));var ime=x_;rme.forEach(function(ome){if(!(nme&&ame[ome]===nme[ome])){var lme="set".concat(ome.substring(0,1).toUpperCase()).concat(ome.substring(1));typeof ime[lme]=="function"?ime[lme](ame[ome]):ime.hasOwnProperty(ome)&&(ime[ome]=ame[ome])}})},dispose:tme,addChildId:eme,removeChildId:$P}}),copyObject$7=_copyObject,keys$5=keys_1;function baseAssign$1(x_,eme){return x_&&copyObject$7(eme,keys$5(eme),x_)}var _baseAssign=baseAssign$1,copyObject$6=_copyObject,keysIn$4=keysIn_1;function baseAssignIn$1(x_,eme){return x_&&copyObject$6(eme,keysIn$4(eme),x_)}var _baseAssignIn=baseAssignIn$1,copyObject$5=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(x_,eme){return copyObject$5(x_,getSymbols$2(x_),eme)}var _copySymbols=copySymbols$1,arrayPush$2=_arrayPush,getPrototype$1=_getPrototype,getSymbols$1=_getSymbols,stubArray$1=stubArray_1,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols$1?function(x_){for(var eme=[];x_;)arrayPush$2(eme,getSymbols$1(x_)),x_=getPrototype$1(x_);return eme}:stubArray$1,_getSymbolsIn=getSymbolsIn$2,copyObject$4=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(x_,eme){return copyObject$4(x_,getSymbolsIn$1(x_),eme)}var _copySymbolsIn=copySymbolsIn$1,baseGetAllKeys$1=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$3=keysIn_1;function getAllKeysIn$3(x_){return baseGetAllKeys$1(x_,keysIn$3,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$3,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function initCloneArray$1(x_){var eme=x_.length,$P=new x_.constructor(eme);return eme&&typeof x_[0]=="string"&&hasOwnProperty$f.call(x_,"index")&&($P.index=x_.index,$P.input=x_.input),$P}var _initCloneArray=initCloneArray$1,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(x_,eme){var $P=eme?cloneArrayBuffer$2(x_.buffer):x_.buffer;return new x_.constructor($P,x_.byteOffset,x_.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(x_){var eme=new x_.constructor(x_.source,reFlags.exec(x_));return eme.lastIndex=x_.lastIndex,eme}var _cloneRegExp=cloneRegExp$1,Symbol$3=_Symbol,symbolProto$2=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function cloneSymbol$1(x_){return symbolValueOf$1?Object(symbolValueOf$1.call(x_)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray$1=_cloneTypedArray,boolTag$3="[object Boolean]",dateTag$3="[object Date]",mapTag$6="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",symbolTag$3="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";function initCloneByTag$1(x_,eme,$P){var tme=x_.constructor;switch(eme){case arrayBufferTag$3:return cloneArrayBuffer$1(x_);case boolTag$3:case dateTag$3:return new tme(+x_);case dataViewTag$4:return cloneDataView(x_,$P);case float32Tag$2:case float64Tag$2:case int8Tag$2:case int16Tag$2:case int32Tag$2:case uint8Tag$2:case uint8ClampedTag$2:case uint16Tag$2:case uint32Tag$2:return cloneTypedArray$1(x_,$P);case mapTag$6:return new tme;case numberTag$3:case stringTag$3:return new tme(x_);case regexpTag$3:return cloneRegExp(x_);case setTag$6:return new tme;case symbolTag$3:return cloneSymbol(x_)}}var _initCloneByTag=initCloneByTag$1,getTag$4=_getTag,isObjectLike$3=isObjectLike_1,mapTag$5="[object Map]";function baseIsMap$1(x_){return isObjectLike$3(x_)&&getTag$4(x_)==mapTag$5}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$5=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsMap=nodeUtil$2&&nodeUtil$2.isMap,isMap$1=nodeIsMap?baseUnary$5(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$3=_getTag,isObjectLike$2=isObjectLike_1,setTag$5="[object Set]";function baseIsSet$1(x_){return isObjectLike$2(x_)&&getTag$3(x_)==setTag$5}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary$4=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary$4(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$1=_Stack,arrayEach$2=_arrayEach,assignValue$3=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer$1=_cloneBufferExports,copyArray$2=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys$1=_getAllKeys,getAllKeysIn$2=_getAllKeysIn,getTag$2=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject$1=_initCloneObject,isArray$a=isArray_1,isBuffer$2=isBufferExports,isMap=isMap_1,isObject$7=isObject_1,isSet=isSet_1,keys$4=keys_1,keysIn$2=keysIn_1,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$4="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$3]=cloneableTags[arrayTag$2]=cloneableTags[arrayBufferTag$2]=cloneableTags[dataViewTag$3]=cloneableTags[boolTag$2]=cloneableTags[dateTag$2]=cloneableTags[float32Tag$1]=cloneableTags[float64Tag$1]=cloneableTags[int8Tag$1]=cloneableTags[int16Tag$1]=cloneableTags[int32Tag$1]=cloneableTags[mapTag$4]=cloneableTags[numberTag$2]=cloneableTags[objectTag$4]=cloneableTags[regexpTag$2]=cloneableTags[setTag$4]=cloneableTags[stringTag$2]=cloneableTags[symbolTag$2]=cloneableTags[uint8Tag$1]=cloneableTags[uint8ClampedTag$1]=cloneableTags[uint16Tag$1]=cloneableTags[uint32Tag$1]=!0;cloneableTags[errorTag$2]=cloneableTags[funcTag$2]=cloneableTags[weakMapTag$2]=!1;function baseClone$2(x_,eme,$P,tme,ame,nme){var rme,ime=eme&CLONE_DEEP_FLAG$2,ome=eme&CLONE_FLAT_FLAG$1,lme=eme&CLONE_SYMBOLS_FLAG$2;if($P&&(rme=ame?$P(x_,tme,ame,nme):$P(x_)),rme!==void 0)return rme;if(!isObject$7(x_))return x_;var sme=isArray$a(x_);if(sme){if(rme=initCloneArray(x_),!ime)return copyArray$2(x_,rme)}else{var cme=getTag$2(x_),dme=cme==funcTag$2||cme==genTag$1;if(isBuffer$2(x_))return cloneBuffer$1(x_,ime);if(cme==objectTag$4||cme==argsTag$3||dme&&!ame){if(rme=ome||dme?{}:initCloneObject$1(x_),!ime)return ome?copySymbolsIn(x_,baseAssignIn(rme,x_)):copySymbols(x_,baseAssign(rme,x_))}else{if(!cloneableTags[cme])return ame?x_:{};rme=initCloneByTag(x_,cme,ime)}}nme||(nme=new Stack$1);var ume=nme.get(x_);if(ume)return ume;nme.set(x_,rme),isSet(x_)?x_.forEach(function(hme){rme.add(baseClone$2(hme,eme,$P,hme,x_,nme))}):isMap(x_)&&x_.forEach(function(hme,bme){rme.set(bme,baseClone$2(hme,eme,$P,bme,x_,nme))});var fme=lme?ome?getAllKeysIn$2:getAllKeys$1:ome?keysIn$2:keys$4,pme=sme?void 0:fme(x_);return arrayEach$2(pme||x_,function(hme,bme){pme&&(bme=hme,hme=x_[bme]),assignValue$3(rme,bme,baseClone$2(hme,eme,$P,bme,x_,nme))}),rme}var _baseClone=baseClone$2,baseGet$5=_baseGet,baseSlice$1=_baseSlice;function parent$2(x_,eme){return eme.length<2?x_:baseGet$5(x_,baseSlice$1(eme,0,-1))}var _parent=parent$2,castPath$4=_castPath,last$4=last_1,parent$1=_parent,toKey$2=_toKey;function baseUnset$2(x_,eme){return eme=castPath$4(eme,x_),x_=parent$1(x_,eme),x_==null||delete x_[toKey$2(last$4(eme))]}var _baseUnset=baseUnset$2,isPlainObject$4=isPlainObject_1;function customOmitClone$1(x_){return isPlainObject$4(x_)?void 0:x_}var _customOmitClone=customOmitClone$1,Symbol$2=_Symbol,isArguments$1=isArguments_1,isArray$9=isArray_1,spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable$1(x_){return isArray$9(x_)||isArguments$1(x_)||!!(spreadableSymbol&&x_&&x_[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush$1=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$6(x_,eme,$P,tme,ame){var nme=-1,rme=x_.length;for($P||($P=isFlattenable),ame||(ame=[]);++nme<rme;){var ime=x_[nme];eme>0&&$P(ime)?eme>1?baseFlatten$6(ime,eme-1,$P,tme,ame):arrayPush$1(ame,ime):tme||(ame[ame.length]=ime)}return ame}var _baseFlatten=baseFlatten$6,baseFlatten$5=_baseFlatten;function flatten$3(x_){var eme=x_==null?0:x_.length;return eme?baseFlatten$5(x_,1):[]}var flatten_1=flatten$3;const flatten$4=getDefaultExportFromCjs(flatten_1);var flatten$2=flatten_1,overRest$1=_overRest,setToString$1=_setToString;function flatRest$2(x_){return setToString$1(overRest$1(x_,void 0,flatten$2),x_+"")}var _flatRest=flatRest$2,arrayMap$a=_arrayMap,baseClone$1=_baseClone,baseUnset$1=_baseUnset,castPath$3=_castPath,copyObject$3=_copyObject,customOmitClone=_customOmitClone,flatRest$1=_flatRest,getAllKeysIn$1=_getAllKeysIn,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,omit=flatRest$1(function(x_,eme){var $P={};if(x_==null)return $P;var tme=!1;eme=arrayMap$a(eme,function(nme){return nme=castPath$3(nme,x_),tme||(tme=nme.length>1),nme}),copyObject$3(x_,getAllKeysIn$1(x_),$P),tme&&($P=baseClone$1($P,CLONE_DEEP_FLAG$1|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG$1,customOmitClone));for(var ame=eme.length;ame--;)baseUnset$1($P,eme[ame]);return $P}),omit_1=omit;const omit$1=getDefaultExportFromCjs(omit_1);if(!reactExports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var __read=function(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme=$P.call(x_),ame,nme=[],rme;try{for(;(eme===void 0||eme-- >0)&&!(ame=tme.next()).done;)nme.push(ame.value)}catch(ime){rme={error:ime}}finally{try{ame&&!ame.done&&($P=tme.return)&&$P.call(tme)}finally{if(rme)throw rme.error}}return nme};function useForceUpdate(){var x_=__read(reactExports.useState(0),2),eme=x_[1],$P=reactExports.useCallback(function(){eme(function(tme){return tme+1})},[]);return $P}function getSymbol(x_){return typeof Symbol=="function"?Symbol.for(x_):"__$mobx-react "+x_+"__"}var mockGlobal={};function getGlobal(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:mockGlobal}var observerBatchingConfiguredSymbol=getSymbol("observerBatching");function defaultNoopBatch(x_){x_()}function observerBatching(x_){x_||(x_=defaultNoopBatch),configure({reactionScheduler:x_}),getGlobal()[observerBatchingConfiguredSymbol]=!0}function printDebugValue(x_){return getDependencyTree(x_)}function createTrackingData(x_){var eme={cleanAt:Date.now()+CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS,reaction:x_};return eme}var CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS=1e4,CLEANUP_TIMER_LOOP_MILLIS=1e4,uncommittedReactionRefs=new Set,reactionCleanupHandle;function ensureCleanupTimerRunning(){reactionCleanupHandle===void 0&&(reactionCleanupHandle=setTimeout(cleanUncommittedReactions,CLEANUP_TIMER_LOOP_MILLIS))}function scheduleCleanupOfReactionIfLeaked(x_){uncommittedReactionRefs.add(x_),ensureCleanupTimerRunning()}function recordReactionAsCommitted(x_){uncommittedReactionRefs.delete(x_)}function cleanUncommittedReactions(){reactionCleanupHandle=void 0;var x_=Date.now();uncommittedReactionRefs.forEach(function(eme){var $P=eme.current;$P&&x_>=$P.cleanAt&&($P.reaction.dispose(),eme.current=null,uncommittedReactionRefs.delete(eme))}),uncommittedReactionRefs.size>0&&ensureCleanupTimerRunning()}var insideRender=!1,forceUpdateQueue=[];function useQueuedForceUpdate(x_){return function(){insideRender?forceUpdateQueue.push(x_):x_()}}function useQueuedForceUpdateBlock(x_){insideRender=!0,forceUpdateQueue=[];try{var eme=x_();insideRender=!1;var $P=forceUpdateQueue.length>0?forceUpdateQueue:void 0;return React__default.useLayoutEffect(function(){$P&&$P.forEach(function(tme){return tme()})},[$P]),eme}finally{insideRender=!1}}var EMPTY_OBJECT={};function observerComponentNameFor(x_){return"observer"+x_}function useObserver(x_,eme,$P){eme===void 0&&(eme="observed"),$P===void 0&&($P=EMPTY_OBJECT);var tme=$P.useForceUpdate||useForceUpdate,ame=tme(),nme=useQueuedForceUpdate(ame),rme=React__default.useRef(null);if(!rme.current){var ime=new Reaction(observerComponentNameFor(eme),function(){ome.mounted?nme():(ime.dispose(),rme.current=null)}),ome=createTrackingData(ime);rme.current=ome,scheduleCleanupOfReactionIfLeaked(rme)}var lme=rme.current.reaction;return React__default.useDebugValue(lme,printDebugValue),React__default.useEffect(function(){return recordReactionAsCommitted(rme),rme.current?rme.current.mounted=!0:(rme.current={reaction:new Reaction(observerComponentNameFor(eme),function(){nme()}),cleanAt:1/0},nme()),function(){rme.current.reaction.dispose(),rme.current=null}},[]),useQueuedForceUpdateBlock(function(){var sme,cme;if(lme.track(function(){try{sme=x_()}catch(dme){cme=dme}}),cme)throw cme;return sme})}var __assign=function(){return __assign=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++){eme=arguments[$P];for(var ame in eme)Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame])}return x_},__assign.apply(this,arguments)};function observer$1(x_,eme){var $P=__assign({forwardRef:!1},eme),tme=x_.displayName||x_.name,ame=function(rme,ime){return useObserver(function(){return x_(rme,ime)},tme)};ame.displayName=tme;var nme;return $P.forwardRef?nme=reactExports.memo(reactExports.forwardRef(ame)):nme=reactExports.memo(ame),copyStaticProperties(x_,nme),nme.displayName=tme,nme}var hoistBlackList={$$typeof:!0,render:!0,compare:!0,type:!0};function copyStaticProperties(x_,eme){Object.keys(x_).forEach(function($P){hoistBlackList[$P]||Object.defineProperty(eme,$P,Object.getOwnPropertyDescriptor(x_,$P))})}function ObserverComponent(x_){var eme=x_.children,$P=x_.render,tme=eme||$P;return typeof tme!="function"?null:useObserver(tme)}ObserverComponent.propTypes={children:ObserverPropsCheck,render:ObserverPropsCheck};ObserverComponent.displayName="Observer";function ObserverPropsCheck(x_,eme,$P,tme,ame){var nme=eme==="children"?"render":"children",rme=typeof x_[eme]=="function",ime=typeof x_[nme]=="function";return rme&&ime?new Error("MobX Observer: Do not use children and render in the same time in`"+$P):rme||ime?null:new Error("Invalid prop `"+ame+"` of type `"+typeof x_[eme]+"` supplied to `"+$P+"`, expected `function`.")}observerBatching(reactDomExports.unstable_batchedUpdates);var symbolId=0;function createSymbol(x_){if(typeof Symbol=="function")return Symbol(x_);var eme="__$mobx-react "+x_+" ("+symbolId+")";return symbolId++,eme}var createdSymbols={};function newSymbol(x_){return createdSymbols[x_]||(createdSymbols[x_]=createSymbol(x_)),createdSymbols[x_]}function shallowEqual(x_,eme){if(is$1(x_,eme))return!0;if(typeof x_!="object"||x_===null||typeof eme!="object"||eme===null)return!1;var $P=Object.keys(x_),tme=Object.keys(eme);if($P.length!==tme.length)return!1;for(var ame=0;ame<$P.length;ame++)if(!Object.hasOwnProperty.call(eme,$P[ame])||!is$1(x_[$P[ame]],eme[$P[ame]]))return!1;return!0}function is$1(x_,eme){return x_===eme?x_!==0||1/x_===1/eme:x_!==x_&&eme!==eme}function setHiddenProp(x_,eme,$P){Object.hasOwnProperty.call(x_,eme)?x_[eme]=$P:Object.defineProperty(x_,eme,{enumerable:!1,configurable:!0,writable:!0,value:$P})}var mobxMixins=newSymbol("patchMixins"),mobxPatchedDefinition=newSymbol("patchedDefinition");function getMixins(x_,eme){var $P=x_[mobxMixins]=x_[mobxMixins]||{},tme=$P[eme]=$P[eme]||{};return tme.locks=tme.locks||0,tme.methods=tme.methods||[],tme}function wrapper(x_,eme){for(var $P=this,tme=arguments.length,ame=new Array(tme>2?tme-2:0),nme=2;nme<tme;nme++)ame[nme-2]=arguments[nme];eme.locks++;try{var rme;return x_!=null&&(rme=x_.apply(this,ame)),rme}finally{eme.locks--,eme.locks===0&&eme.methods.forEach(function(ime){ime.apply($P,ame)})}}function wrapFunction(x_,eme){var $P=function(){for(var ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];wrapper.call.apply(wrapper,[this,x_,eme].concat(nme))};return $P}function patch(x_,eme,$P){var tme=getMixins(x_,eme);tme.methods.indexOf($P)<0&&tme.methods.push($P);var ame=Object.getOwnPropertyDescriptor(x_,eme);if(!(ame&&ame[mobxPatchedDefinition])){var nme=x_[eme],rme=createDefinition(x_,eme,ame?ame.enumerable:void 0,tme,nme);Object.defineProperty(x_,eme,rme)}}function createDefinition(x_,eme,$P,tme,ame){var nme,rme=wrapFunction(ame,tme);return nme={},nme[mobxPatchedDefinition]=!0,nme.get=function(){return rme},nme.set=function(ome){if(this===x_)rme=wrapFunction(ome,tme);else{var lme=createDefinition(this,eme,$P,tme,ome);Object.defineProperty(this,eme,lme)}},nme.configurable=!0,nme.enumerable=$P,nme}var mobxAdminProperty=$mobx,mobxObserverProperty=newSymbol("isMobXReactObserver"),mobxIsUnmounted=newSymbol("isUnmounted"),skipRenderKey=newSymbol("skipRender"),isForcingUpdateKey=newSymbol("isForcingUpdate");function makeClassComponentObserver(x_){var eme=x_.prototype;if(x_[mobxObserverProperty]){var $P=getDisplayName(eme);console.warn("The provided component class ("+$P+`) 
                has already been declared as an observer component.`)}else x_[mobxObserverProperty]=!0;if(eme.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(x_.__proto__!==reactExports.PureComponent){if(!eme.shouldComponentUpdate)eme.shouldComponentUpdate=observerSCU;else if(eme.shouldComponentUpdate!==observerSCU)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}makeObservableProp(eme,"props"),makeObservableProp(eme,"state");var tme=eme.render;return eme.render=function(){return makeComponentReactive.call(this,tme)},patch(eme,"componentWillUnmount",function(){var ame;if((ame=this.render[mobxAdminProperty])===null||ame===void 0||ame.dispose(),this[mobxIsUnmounted]=!0,!this.render[mobxAdminProperty]){var nme=getDisplayName(this);console.warn("The reactive render of an observer class component ("+nme+`) 
                was overriden after MobX attached. This may result in a memory leak if the 
                overriden reactive render was not properly disposed.`)}}),x_}function getDisplayName(x_){return x_.displayName||x_.name||x_.constructor&&(x_.constructor.displayName||x_.constructor.name)||"<component>"}function makeComponentReactive(x_){var eme=this;setHiddenProp(this,skipRenderKey,!1),setHiddenProp(this,isForcingUpdateKey,!1);var $P=getDisplayName(this),tme=x_.bind(this),ame=!1,nme=new Reaction($P+".render()",function(){if(!ame&&(ame=!0,eme[mobxIsUnmounted]!==!0)){var ime=!0;try{setHiddenProp(eme,isForcingUpdateKey,!0),eme[skipRenderKey]||reactExports.Component.prototype.forceUpdate.call(eme),ime=!1}finally{setHiddenProp(eme,isForcingUpdateKey,!1),ime&&nme.dispose()}}});nme.reactComponent=this,rme[mobxAdminProperty]=nme,this.render=rme;function rme(){ame=!1;var ime=void 0,ome=void 0;if(nme.track(function(){try{ome=allowStateChanges(!1,tme)}catch(lme){ime=lme}}),ime)throw ime;return ome}return rme.call(this)}function observerSCU(x_,eme){return this.state!==eme?!0:!shallowEqual(this.props,x_)}function makeObservableProp(x_,eme){var $P=newSymbol("reactProp_"+eme+"_valueHolder"),tme=newSymbol("reactProp_"+eme+"_atomHolder");function ame(){return this[tme]||setHiddenProp(this,tme,createAtom("reactive "+eme)),this[tme]}Object.defineProperty(x_,eme,{configurable:!0,enumerable:!0,get:function(){var rme=!1;return allowStateReadsStart&&allowStateReadsEnd&&(rme=allowStateReadsStart(!0)),ame.call(this).reportObserved(),allowStateReadsStart&&allowStateReadsEnd&&allowStateReadsEnd(rme),this[$P]},set:function(rme){!this[isForcingUpdateKey]&&!shallowEqual(this[$P],rme)?(setHiddenProp(this,$P,rme),setHiddenProp(this,skipRenderKey,!0),ame.call(this).reportChanged(),setHiddenProp(this,skipRenderKey,!1)):setHiddenProp(this,$P,rme)}})}var hasSymbol=typeof Symbol=="function"&&Symbol.for,ReactForwardRefSymbol=hasSymbol?Symbol.for("react.forward_ref"):typeof reactExports.forwardRef=="function"&&reactExports.forwardRef(function(x_){return null}).$$typeof,ReactMemoSymbol=hasSymbol?Symbol.for("react.memo"):typeof reactExports.memo=="function"&&reactExports.memo(function(x_){return null}).$$typeof;function observer(x_){if(x_.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),ReactMemoSymbol&&x_.$$typeof===ReactMemoSymbol)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(ReactForwardRefSymbol&&x_.$$typeof===ReactForwardRefSymbol){var eme=x_.render;if(typeof eme!="function")throw new Error("render property of ForwardRef was not a function");return reactExports.forwardRef(function(){var tme=arguments;return reactExports.createElement(ObserverComponent,null,function(){return eme.apply(void 0,tme)})})}return typeof x_=="function"&&(!x_.prototype||!x_.prototype.render)&&!x_.isReactClass&&!Object.prototype.isPrototypeOf.call(reactExports.Component,x_)?observer$1(x_):makeClassComponentObserver(x_)}if(!reactExports.Component)throw new Error("mobx-react requires React to be available");if(!observable)throw new Error("mobx-react requires mobx to be available");function offset(x_){var eme=x_==null?void 0:x_.ownerDocument,$P={top:0,left:0,height:0,width:0},tme=eme&&eme.documentElement;return!tme||!tme.contains(x_)||(x_.getBoundingClientRect!==void 0&&($P=x_.getBoundingClientRect()),$P={top:$P.top+tme.scrollTop-(tme.clientTop||0),left:$P.left+tme.scrollLeft-(tme.clientLeft||0),width:$P.width,height:$P.height}),$P}var isHTMLElement$1=function(x_){return!!x_&&"offsetParent"in x_};function offsetParent(x_){for(var eme=x_==null?void 0:x_.ownerDocument,$P=x_&&x_.offsetParent;isHTMLElement$1($P)&&$P.nodeName!=="HTML"&&getComputedStyle($P).getPropertyValue("position")==="static";)$P=$P.offsetParent;return $P||eme.documentElement}var nodeName=function(x_){return x_.nodeName&&x_.nodeName.toLowerCase()};function position(x_,eme){var $P={top:0,left:0},tme;if(getComputedStyle(x_).getPropertyValue("position")==="fixed")tme=x_.getBoundingClientRect();else{var ame=eme||offsetParent(x_);if(tme=offset(x_),ame===x_)return{top:0,left:0,width:tme.width,height:tme.height};nodeName(ame)!=="html"&&($P=offset(ame));var nme=getComputedStyle(ame),rme=String(nme.getPropertyValue("border-top-width")||0);$P.top+=parseInt(rme,10)-ame.scrollTop||0;var ime=String(nme.getPropertyValue("border-left-width")||0);$P.left+=parseInt(ime,10)-ame.scrollLeft||0}return __assign$3(__assign$3({},tme),{top:tme.top-$P.top,left:tme.left-$P.left})}var JsonView$1=React__default.lazy(function(){return __vitePreload(()=>import("./main-B9CcSXi0.js").then(x_=>x_.m),[]).then(importLazyComponent)});(function(){function x_(){this.cat="",this.level="",this.msg="",this.ext=""}return __decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"cat",void 0),__decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"level",void 0),__decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"msg",void 0),__decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"ext",void 0),x_})();var AMISDebugStore=function(){function x_(){this.tab="log",this.position="right",this.logs=[],this.isExpanded=!1,this.inspectMode=!1}return x_.prototype.open=function(){this.isExpanded=!0,this.inspectMode=!0},x_.prototype.close=function(){this.isExpanded=!1,this.activeId="",this.hoverId="",this.inspectMode=!1},x_.prototype.toggleInspectMode=function(){this.inspectMode=!this.inspectMode},__decorate$1([observable,__metadata("design:type",String)],x_.prototype,"tab",void 0),__decorate$1([observable,__metadata("design:type",String)],x_.prototype,"position",void 0),__decorate$1([observable,__metadata("design:type",Array)],x_.prototype,"logs",void 0),__decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"isExpanded",void 0),__decorate$1([observable,__metadata("design:type",Object)],x_.prototype,"inspectMode",void 0),__decorate$1([observable,__metadata("design:type",String)],x_.prototype,"hoverId",void 0),__decorate$1([observable,__metadata("design:type",String)],x_.prototype,"activeId",void 0),__decorate$1([observable,__metadata("design:type",Number)],x_.prototype,"ellipsisThreshold",void 0),__decorate$1([action.bound,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],x_.prototype,"open",null),__decorate$1([action.bound,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],x_.prototype,"close",null),__decorate$1([action.bound,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],x_.prototype,"toggleInspectMode",null),x_}(),store$2=new AMISDebugStore,ComponentInfo={},LogView=observer(function(x_){var eme,$P=x_.store,tme=$P.logs,ame=(eme=$P.ellipsisThreshold)!==null&&eme!==void 0?eme:50;return jsx(Fragment,{children:tme.map(function(nme,rme){var ime=typeof nme.ext=="string"&&(nme.ext.startsWith("{")||nme.ext.startsWith("["))?parseJson(nme.ext):typeof nme.ext=="object"?normalizeDataForLog(nme.ext):nme.ext;return jsxs("div",{className:"AMISDebug-logLine",children:[jsxs("div",{className:"AMISDebug-logLineMsg",children:["[",nme.cat,"] ",nme.msg]}),typeof ime=="object"?jsx(React__default.Suspense,{fallback:jsx("div",{children:"Loading..."}),children:jsx(JsonView$1,{name:null,theme:"monokai",src:ime,collapsed:!0,enableClipboard:!1,displayDataTypes:!1,collapseStringsAfterLength:ame,iconStyle:"square"})}):jsx("pre",{className:"AMISDebug-value",children:JSON.stringify(ime)})]},"log-".concat(rme))})})}),AMISDebug=observer(function(x_){for(var eme,$P,tme,ame,nme=x_.store,rme=nme.activeId,ime=ComponentInfo[rme],ome=((ame=(tme=ime==null?void 0:ime.component)===null||tme===void 0?void 0:tme.props)===null||ame===void 0?void 0:ame.data)||{},lme=[ome];Object.getPrototypeOf(ome)!==Object.prototype;){var sme=Object.getPrototypeOf(ome);if(Object.prototype.toString.call(sme)!=="[object Object]")break;lme.push(sme),ome=sme}var cme=[];if(Object.keys(lme[0]).length||lme.length>1){var dme=0;try{for(var ume=__values$1(lme),fme=ume.next();!fme.done;fme=ume.next()){var pme=fme.value;cme.push(jsxs("div",{children:[jsxs("h3",{children:["Data Level-",dme]}),jsx(React__default.Suspense,{fallback:jsx("div",{children:"Loading..."}),children:jsx(JsonView$1,{name:null,theme:"monokai",src:pme,collapsed:dme!==0,enableClipboard:!1,displayDataTypes:!1,iconStyle:"square"},"dataview-".concat(pme))})]},"data-".concat(dme))),dme+=1}}catch(xme){eme={error:xme}}finally{try{fme&&!fme.done&&($P=ume.return)&&$P.call(ume)}finally{if(eme)throw eme.error}}}var hme=reactExports.useRef(null),bme=__read$3(reactExports.useState(!1),2),mme=bme[0],vme=bme[1],gme=__read$3(reactExports.useState(0),2),yme=gme[0],_me=gme[1],$me=__read$3(reactExports.useState(0),2),Cme=$me[0],Sme=$me[1];reactExports.useEffect(function(){var xme=function(){vme(!1)},Tme=function(Ome){if(mme){var Rme=nme.position==="right"?Ome.clientX-yme:yme-Ome.clientX,Nme=hme.current,Ime=Math.max(200,Cme-Rme);return Nme.style.width=Ime+"px",Ome.stopPropagation&&Ome.stopPropagation(),Ome.preventDefault&&Ome.preventDefault(),Ome.cancelBubble=!0,!1}};return mme&&(document.addEventListener("mousemove",Tme),document.addEventListener("mouseup",xme)),function(){mme&&(document.removeEventListener("mousemove",Tme),document.removeEventListener("mouseup",xme))}},[mme]);var Eme=React__default.useCallback(function(xme){var Tme;if(xme.key==="Enter"){var Ome=xme.target,Rme=Ome.value;Ome.value="";try{var Nme=nme.activeId,Ime=((Tme=ComponentInfo[Nme])===null||Tme===void 0?void 0:Tme.component.props.data)||{},Pme=Rme.startsWith("${")?resolveVariableAndFilter(Rme,Ime,"| raw"):callStrFunction(new Function("data","with(data) {return ".concat(Rme,";}")),["data"],Ime);debug("debug","evaluate expression `".concat(Rme,"`"),Pme)}catch(Mme){debug("error","evaluate expression `".concat(Rme,"`"),"Error: ".concat(Mme.message))}finally{nme.tab="log"}}},[]);return jsxs("div",{className:cx$1("AMISDebug",{"is-expanded":nme.isExpanded,"is-left":nme.position==="left"}),ref:hme,children:[jsx("div",{className:"AMISDebug-toggle",title:"open debug",onClick:nme.open,children:nme.isExpanded?jsx("i",{className:"fas fa-times"}):jsx("i",{className:"fas fa-bug"})}),nme.isExpanded?jsxs("div",{className:cx$1("AMISDebug-content"),children:[jsx("div",{className:"AMISDebug-close",title:"Close",onClick:nme.close,children:jsx("i",{className:"fas fa-times"})}),jsx("div",{className:"AMISDebug-resize",onMouseDown:function(xme){_me(xme.clientX),Sme(parseInt(getComputedStyle(hme.current).getPropertyValue("width"),10)),vme(!0)}}),jsxs("div",{className:"AMISDebug-tab",children:[jsx("button",{className:cx$1({active:nme.tab==="log"}),onClick:function(){nme.tab="log"},children:"Log"}),jsx("button",{className:cx$1({active:nme.tab==="inspect"}),onClick:function(){nme.tab="inspect"},children:"Inspect"})]}),jsx("div",{className:"AMISDebug-changePosition",children:nme.position==="right"?jsx("i",{className:"fas fa-chevron-left",title:"move to left",onClick:function(){nme.position="left"}}):jsx("i",{className:"fas fa-chevron-right",title:"move to right",onClick:function(){nme.position="right"}})}),nme.tab==="log"?jsxs("div",{className:"AMISDebug-log",children:[jsx("button",{onClick:function(){nme.logs=[]},children:"Clear Log"}),jsx(LogView,{store:nme})]}):null,nme.tab==="inspect"?jsxs("div",{className:"AMISDebug-inspect",children:[jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",className:"AMISDebug-inspectIcon ".concat(nme.inspectMode?"is-active":""),onClick:nme.toggleInspectMode,children:jsx("path",{d:"M64 192L128 128h768l64 64v384H896v-384H128v512h320V768H128l-64-64v-512z m941.226667 621.226667L576 384v602.496l173.226667-173.226667h256zM640 832v-293.504l210.773333 210.773333h-128L640 832z"})}),nme.inspectMode?jsx("span",{children:"Select an element in the page to inspect it."}):jsx("span",{children:"Click to inspect an element."}),rme?jsxs(Fragment,{children:[jsxs("h3",{children:["Component:"," ",jsx("span",{className:"primary",children:ime==null?void 0:ime.name})]}),cme]}):null]}):null,rme?jsxs("div",{className:"AMISDebug-footer",children:[jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",children:jsx("path",{d:"M724.48 521.728c-1.8432 7.7824-5.7344 14.848-11.3664 20.48l-341.9136 342.016c-16.6912 16.6912-43.7248 16.6912-60.3136 0s-16.6912-43.7248 0-60.3136L622.6944 512 310.8864 200.0896c-16.6912-16.6912-16.6912-43.7248 0-60.3136 16.6912-16.6912 43.7248-16.6912 60.3136 0l341.9136 341.9136c10.8544 10.8544 14.6432 26.112 11.3664 40.0384z",fill:"currentColor"})}),jsx("input",{type:"text",placeholder:"",onKeyUp:Eme})]}):null]}):null]})});function handleMouseMove(x_){if(store$2.inspectMode){var eme=x_.target,$P=eme.closest("[data-debug-id]");$P&&(store$2.hoverId=$P.getAttribute("data-debug-id"))}}function handleMouseclick(x_){if(store$2.inspectMode){x_.preventDefault();var eme=x_.target,$P=eme.closest("[data-debug-id]");$P&&!$P.closest(".AMISDebug")&&(store$2.activeId=$P.getAttribute("data-debug-id"),store$2.tab="inspect",store$2.inspectMode=!1)}}var amisHoverBox=document.createElement("div");amisHoverBox.className="AMISDebug-hoverBox";var amisActiveBox=document.createElement("div");amisActiveBox.className="AMISDebug-activeBox";var timer=null;autorun(function(){var x_=store$2.hoverId,eme=document.querySelector('[data-debug-id="'.concat(x_,'"]'));if(eme){var $P=position(eme,document.body);amisHoverBox.style.top="".concat($P.top,"px"),amisHoverBox.style.left="".concat($P.left,"px"),amisHoverBox.style.width="".concat($P.width,"px"),amisHoverBox.style.height="".concat($P.height,"px")}else amisHoverBox.style.top="-999999px"});autorun(function(){var x_=store$2.activeId,eme=document.querySelector('[data-debug-id="'.concat(x_,'"]'));if(eme){var $P=position(eme,document.body);amisActiveBox.style.top="".concat($P.top,"px"),amisActiveBox.style.left="".concat($P.left,"px"),amisActiveBox.style.width="".concat($P.width,"px"),amisActiveBox.style.height="".concat($P.height,"px"),amisActiveBox.classList.add("shake"),clearTimeout(timer),timer=setTimeout(function(){amisActiveBox.classList.remove("shake")},500)}else amisActiveBox.style.top="-999999px"});var isEnabled=!1,unmount;function enableDebug(){if(!isEnabled){isEnabled=!0;var x_=document.createElement("div");document.body.appendChild(x_);var eme=jsx(AMISDebug,{store:store$2});reactDomExports.render(eme,x_),unmount=function(){reactDomExports.unmountComponentAtNode(x_),document.body.removeChild(x_)},document.body.appendChild(amisHoverBox),document.body.appendChild(amisActiveBox),document.addEventListener("mousemove",handleMouseMove),document.addEventListener("click",handleMouseclick,!0)}}function disableDebug(){isEnabled&&(isEnabled=!1,unmount==null||unmount(),document.body.removeChild(amisHoverBox),document.body.removeChild(amisActiveBox),document.removeEventListener("mousemove",handleMouseMove),document.removeEventListener("click",handleMouseclick))}var DebugWrapper=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.debugId=uuidv4(),$P}return eme.prototype.componentDidMount=function(){var $P=reactDomExports.findDOMNode(this);if($P){var tme=this.props.renderer;$P.setAttribute("data-debug-id",this.debugId),ComponentInfo[this.debugId]={name:tme.name,component:this.props.children}}},eme.prototype.componentDidUpdate=function($P){var tme=this.props.renderer;ComponentInfo[this.debugId]&&(ComponentInfo[this.debugId]={name:tme.name,component:this.props.children})},eme.prototype.componentWillUnmount=function(){delete ComponentInfo[this.debugId],this.debugId===store$2.activeId&&(store$2.activeId=""),this.debugId===store$2.hoverId&&(store$2.hoverId="")},eme.prototype.render=function(){return this.props.children},eme}(reactExports.Component);function parseJson(x_){try{return JSON.parse(x_)}catch(eme){return eme}}function normalizeDataForLog(x_){try{return parseJson(JSON.stringify(x_))}catch{var eme={};return Object.keys(x_).forEach(function(tme){var ame=x_[tme];typeof ame=="object"&&ame!==null&&!isPlainObject$b(ame)?eme[tme]="[complicated data]":eme[tme]=ame}),eme}}function debug(x_,eme,$P){if(isEnabled){console.groupCollapsed("[amis debug]",eme),console.debug($P),console.groupEnd();var tme={cat:x_,level:"debug",msg:eme,ext:$P};store$2.logs.push(tme)}}var baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(x_){return baseClone(x_,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep;const cloneDeep$1=getDefaultExportFromCjs(cloneDeep_1);var rSchema=/(?:^|raw\:)(get|post|put|delete|patch|options|head|jsonp|js):/i,apiCaches=[],requestAdaptors=[],responseAdaptors=[],isIE$1=!!document.documentMode;function normalizeApi(x_,eme){if(eme===void 0&&(eme="get"),typeof x_=="string"){var $P=rSchema.test(x_)?RegExp.$1:"";$P&&(x_=x_.replace($P+":","")),x_={method:$P||eme,url:x_}}else x_=__assign$3({},x_);return x_.url=typeof x_.url=="string"?x_.url.trim():x_.url,x_}function buildApi(x_,eme,$P){$P===void 0&&($P={}),x_=normalizeApi(x_,$P.method);var tme=$P.autoAppend,ame=$P.ignoreData,nme=__rest$14($P,["autoAppend","ignoreData"]);if(x_.config=__assign$3({},nme),x_.method=(x_.method||$P.method||"get").toLowerCase(),x_.headers&&(x_.headers=dataMapping(x_.headers,eme,void 0,!1)),x_.requestAdaptor&&typeof x_.requestAdaptor=="string"&&(x_.requestAdaptor=str2AsyncFunction(x_.requestAdaptor,"api","context")),x_.adaptor&&typeof x_.adaptor=="string"&&(x_.adaptor=str2AsyncFunction(x_.adaptor,"payload","response","api","context")),eme){if(eme instanceof FormData||eme instanceof Blob||eme instanceof ArrayBuffer)return x_.data=eme,x_}else return x_;var rme=x_.url=x_.url||"",ime=void 0;try{ime=memoryParse(x_.url)}catch(vme){return console.warn("api 配置语法出错：".concat(vme)),x_}var ome=ime.body.map(function(vme,gme){return vme.type==="raw"?vme.value:"__expression__".concat(gme,"__")}).join(""),lme=ome.indexOf("?"),sme=function(vme,gme,yme){return gme===void 0&&(gme="url_encode"),yme===void 0&&(yme=void 0),vme.replace(/__expression__(\d+)__/g,function(_me,$me){var Cme;return(Cme=evaluate(ime.body[$me],eme,{defaultFilter:gme}))!==null&&Cme!==void 0?Cme:yme})},cme=function(vme){return qsstringify(vme,x_!=null&&x_.filterEmptyQuery?{filter:function(gme,yme){return yme===""?void 0:yme instanceof Date?Date.prototype.toISOString.call(yme):yme}}:void 0)},dme=function(vme,gme,yme){vme.originUrl=vme.originUrl||vme.url;var _me=vme.url.indexOf("?");if(~_me){var $me=vme.query=__assign$3(__assign$3(__assign$3({},qsparse(vme.url.substring(_me+1))),vme.query),gme);vme.url=vme.url.substring(0,_me)+"?"+cme($me)}else{vme.query=__assign$3(__assign$3({},vme.query),gme);var Cme=cme(yme?vme.query:gme);Cme&&(vme.url="".concat(vme.url,"?").concat(Cme))}return vme};if(~lme){var ume=ome.indexOf("#"),fme=qsparse(ome.substring(lme+1,~ume&&ume>lme?ume:void 0));JSONTraverse$1(fme,function(vme,gme,yme){var _me;typeof vme=="string"&&/^__expression__(\d+)__$/.test(vme)?yme[gme]=(_me=evaluate(ime.body[RegExp.$1].body,eme))!==null&&_me!==void 0?_me:"":typeof vme=="string"&&(yme[gme]=sme(yme[gme],"raw",""))});var pme=sme(ome.substring(0,lme),"raw","");Object.assign(fme,x_.query),x_.url=pme+(~pme.indexOf("?")?"&":"?")+cme(x_.query=dataMapping(fme,eme,void 0,x_.convertKeyToPath))+(~ume&&ume>lme?sme(ome.substring(ume)):"")}else x_.url=sme(ome,"raw","");if(ame)return x_;var hme=x_.data;if(x_.data?x_.body=x_.data=dataMapping(x_.data,eme,void 0,x_.convertKeyToPath):(x_.method==="post"||x_.method==="put"||x_.method==="patch")&&(x_.body=x_.data=eme),x_.query&&(x_.query=dataMapping(x_.query,eme,void 0,x_.convertKeyToPath)),x_.method==="get"||x_.method==="jsonp"||x_.method==="js")!x_.data&&(!~rme.indexOf("$")&&tme||x_.forceAppendDataToQuery)?(x_.data=eme,x_.query=__assign$3(__assign$3({},x_.query),eme)):x_.attachDataToQuery===!1&&x_.data&&(!~rme.indexOf("$")&&tme||x_.forceAppendDataToQuery)&&(x_=dme(x_,eme,!1)),x_.data&&x_.attachDataToQuery!==!1&&(x_=dme(x_,x_.data,!0),delete x_.data);else if(x_.method){var bme=x_.url.indexOf("?");if(~bme){var fme=x_.query=__assign$3(__assign$3({},qsparse(x_.url.substring(bme+1))),x_.query);x_.url=x_.url.substring(0,bme)+"?"+cme(fme)}else{var mme=cme(x_.query);mme&&(x_.url="".concat(x_.url,"?").concat(mme))}}return x_.graphql?x_.method==="get"?x_.query=x_.data=__assign$3(__assign$3({},x_.query),{query:x_.graphql}):(x_.method==="post"||x_.method==="put"||x_.method==="patch")&&(x_.body=x_.data={query:x_.graphql,operationName:x_.operationName,variables:cloneObject$2(x_.data)}):x_.jsonql&&(x_.method="post",x_.jsonql=dataMapping(x_.jsonql,extendObject(eme,__assign$3(__assign$3({},x_.query),eme),!1),void 0,!1,!0),x_.body=x_.data=hme&&x_.jsonql?{data:x_.data,jsonql:x_.jsonql}:x_.jsonql,x_.forceAppendDataToQuery&&(x_=dme(x_,eme,!0))),x_}function str2function(x_){for(var eme=[],$P=1;$P<arguments.length;$P++)eme[$P-1]=arguments[$P];try{var tme=new(Function.bind.apply(Function,__spreadArray(__spreadArray([void 0],__read$3(eme),!1),[x_],!1)));return tme}catch(ame){return console.warn(ame),null}}var AsyncFunction=Object.getPrototypeOf(function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(x_){return[2]})})}).constructor;function str2AsyncFunction(x_){for(var eme=[],$P=1;$P<arguments.length;$P++)eme[$P-1]=arguments[$P];try{var tme=new(AsyncFunction.bind.apply(AsyncFunction,__spreadArray(__spreadArray([void 0],__read$3(eme),!1),[x_],!1)));return tme}catch(ame){return console.warn(ame),null}}function callStrFunction(x_,eme){for(var $P=[],tme=2;tme<arguments.length;tme++)$P[tme-2]=arguments[tme];if(typeof x_=="function")return x_.apply(this,$P);if(typeof x_=="string"&&x_){var ame=str2function.apply(void 0,__spreadArray([x_],__read$3(eme),!1));return ame==null?void 0:ame.apply(this,$P)}}function responseAdaptor(x_,eme){var $P,tme=x_.data,ame=!0;if(!tme)throw new Error("Response is empty");if(typeof tme=="string"){var nme=(($P=x_.headers)===null||$P===void 0?void 0:$P["content-type"])||"";if(x_.headers&&nme.startsWith("text/")&&!nme.includes("markdown")&&eme.responseType!=="blob")try{if(tme=JSON.parse(tme),typeof tme>"u")throw new Error("Response should be JSON")}catch{var rme=typeof tme=="string"?escapeHtml(tme.substring(0,100)):"";throw new Error(`Response should be JSON
 `.concat(rme))}else{if(eme.responseType==="blob")throw new Error('Should have "Content-Disposition" in Header');if(!nme.includes("markdown"))throw new Error('Content is wrong content-type:"'.concat(nme,'" content: ').concat(escapeHtml(tme.substring(0,100))))}}tme.hasOwnProperty("errorCode")?(tme.status=tme.errorCode,tme.msg=tme.errorMessage||tme.errorMsg):tme.hasOwnProperty("errno")?(tme.status=tme.errno,tme.msg=tme.errmsg||tme.errstr||tme.msg):tme.hasOwnProperty("no")?(tme.status=tme.no,tme.msg=tme.error||tme.msg):tme.hasOwnProperty("error")&&(typeof tme.error=="object"&&tme.error.hasOwnProperty("code")?(tme.status=tme.error.code,tme.msg=tme.error.message):(tme.status=tme.error,tme.msg=tme.errmsg||tme.msg)),tme.hasOwnProperty("status")||(ame=!1);var ime={ok:ame===!1||tme.status==0,status:ame===!1?0:tme.status,msg:tme.msg||tme.message,defaultMsg:tme.defaultMsg,msgTimeout:tme.msgTimeout,data:!tme.data&&!ame?tme:tme.data};if(tme&&tme.type&&(ime.data=tme),ime.status==422&&(ime.errors=tme.errors),debug("api","response",ime),eme.responseData&&(ime.ok||!isEmpty$2(ime.data))){debug("api","before dataMapping",ime.data);var ome=dataMapping(eme.responseData,createObject$1({api:eme},normalizeApiResponseData(ime.data)),void 0,eme.convertKeyToPath);debug("api","after dataMapping",ome),ime.data=ome}return ime}function lazyResolve(x_,eme){return eme===void 0&&(eme=1e3),new Promise(function($P){setTimeout(function(){$P(x_)},eme)})}function wrapFetcher(x_,eme){if(x_._wrappedFetcher)return x_;var $P=function(tme,ame,nme){var rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,pme=this;return __generator(this,function(hme){switch(hme.label){case 0:return tme=buildApi(tme,ame,nme),tme.context=ame,cme=requestAdaptors.concat(),tme.requestAdaptor&&(dme=tme.requestAdaptor,cme.unshift(function(bme,mme){return __awaiter(pme,void 0,void 0,function(){var vme,gme,yme;return __generator(this,function(_me){switch(_me.label){case 0:return vme=bme.query,gme=isPlainObject$b(bme.query)?cloneDeep$1(bme.query):bme.query,debug("api","before requestAdaptor",bme),[4,dme.call(bme,bme,mme)];case 1:return bme=_me.sent()||bme,(bme.query!==vme||isPlainObject$b(bme.query)&&!isEqual$1(bme.query,gme))&&(yme=bme.url.indexOf("?"),bme.url="".concat(~yme?bme.url.substring(0,yme):bme.url,"?").concat(qsstringify(bme.query))),debug("api","after requestAdaptor",bme),[2,bme]}})})})),cme.length?[4,cme.reduce(function(bme,mme){return __awaiter(pme,void 0,void 0,function(){var vme;return __generator(this,function(gme){switch(gme.label){case 0:return[4,bme];case 1:return vme=gme.sent(),[4,mme(vme,ame)];case 2:return vme=gme.sent()||vme,[2,vme]}})})},Promise.resolve(tme))]:[3,2];case 1:tme=hme.sent(),hme.label=2;case 2:if(tme.data&&(tme.data instanceof FormData||hasFile(tme.data)||tme.dataType==="form-data")?tme.data=tme.data instanceof FormData?tme.data:object2formData(tme.data,tme.qsOptions):tme.data&&typeof tme.data!="string"&&tme.dataType==="form"?(tme.data=qsstringify(tme.data,tme.qsOptions),tme.headers=tme.headers||(tme.headers={}),tme.headers["Content-Type"]="application/x-www-form-urlencoded"):tme.data&&typeof tme.data!="string"&&tme.dataType==="json"&&(tme.data=JSON.stringify(tme.data),tme.headers=tme.headers||(tme.headers={}),tme.headers["Content-Type"]="application/json"),tme.mockResponse)return console.debug("fetch api ".concat(tme.url).concat(tme.data?"?".concat(typeof tme.data=="string"?tme.data:qsstringify(tme.data,tme.qsOptions)):""," with mock response"),tme.mockResponse,tme),[2,wrapAdaptor(lazyResolve(tme.mockResponse,(ime=(rme=tme.mockResponse)===null||rme===void 0?void 0:rme.delay)!==null&&ime!==void 0?ime:100),tme,ame)];if(!isValidApi(tme.url))throw new Error("invalid api url:".concat(tme.url));return debug("api","request api",tme),eme==null||eme({eventType:"api",eventData:omit$1(tme,["config","data","body"])},tme.data),((ome=tme.method)===null||ome===void 0?void 0:ome.toLocaleLowerCase())==="jsonp"?[2,wrapAdaptor(jsonpFetcher(tme),tme,ame)]:((lme=tme.method)===null||lme===void 0?void 0:lme.toLocaleLowerCase())==="js"?[2,wrapAdaptor(jsFetcher(x_,tme),tme,ame)]:typeof tme.cache=="number"&&tme.cache>0?(ume=getApiCache(tme),[2,wrapAdaptor(ume?ume.cachedPromise:setApiCache(tme,x_(tme)),tme,ame)]):(isIE$1&&tme&&((sme=tme.method)===null||sme===void 0?void 0:sme.toLocaleLowerCase())==="get"&&(fme="_t=".concat(Date.now()),tme.url.indexOf("?")===-1?tme.url=tme.url+"?".concat(fme):tme.url=tme.url+"&".concat(fme)),[2,wrapAdaptor(x_(tme),tme,ame)])}})})};return $P._wrappedFetcher=!0,$P}function wrapAdaptor(x_,eme,$P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme=this;return __generator(this,function(ime){switch(ime.label){case 0:return tme=responseAdaptors.concat(),eme.adaptor&&(ame=eme.adaptor,tme.push(function(ome,lme,sme,cme){return __awaiter(rme,void 0,void 0,function(){var dme;return __generator(this,function(ume){switch(ume.label){case 0:return debug("api","before adaptor data",lme.data),dme=ame(lme.data,lme,sme,cme),dme!=null&&dme.then?[4,dme]:[3,2];case 1:dme=ume.sent(),ume.label=2;case 2:return debug("api","after adaptor data",dme),[2,dme]}})})})),[4,tme.reduce(function(ome,lme){return __awaiter(rme,void 0,void 0,function(){var sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:return[4,ome];case 1:return sme=ume.sent(),cme=(dme=lme(sme.data,sme,eme,$P))!==null&&dme!==void 0?dme:sme.data,cme!=null&&cme.then?[4,cme]:[3,3];case 2:cme=ume.sent(),ume.label=3;case 3:return[2,__assign$3(__assign$3({},sme),{data:cme})]}})})},x_)];case 1:return nme=ime.sent(),[2,responseAdaptor(nme,eme)]}})})}function jsFetcher(x_,eme){return new Promise(function($P,tme){eme.method="get",x_(eme).then(function(ame){if(typeof ame.data=="string"){var nme=new Function("api",ame.data)(eme);$P({status:200,headers:{},data:{status:0,msg:"",data:nme}})}else tme("must return string: "+ame.data)})})}function jsonpFetcher(x_){return new Promise(function(eme,$P){var tme,ame=document.createElement("script"),nme=x_.url;ame.async=!0;function rme(){ame&&(ame.onload=ame.onreadystatechange=ame.onerror=null,ame.parentNode&&ame.parentNode.removeChild(ame),ame=null)}var ime=((tme=x_.query)===null||tme===void 0?void 0:tme.callback)||"axiosJsonpCallback"+uuid$1(),ome=window[ime];window[ime]=function(sme){window[ime]=ome;var cme={data:sme,status:200,headers:{}};eme(cme)};var lme={_:new Date().getTime(),_callback:ime};nme+=(nme.indexOf("?")>=0?"&":"?")+qsstringify(lme),ame.onload=ame.onreadystatechange=function(){(!ame.readyState||/loaded|complete/.test(ame.readyState))&&rme()},ame.onerror=function(){rme();var sme={status:0,headers:{}};$P(sme)},ame.src=nme,document.head.appendChild(ame)})}function isApiOutdatedWithData(x_,eme,$P,tme){if(eme){if(!x_)return!0}else return!1;return isObjectShallowModified$1(buildApi(normalizeApi(x_),$P),buildApi(normalizeApi(eme),tme))}function isApiOutdated(x_,eme,$P,tme){var ame;if(!eme)return!1;if(x_===void 0)return!0;if(eme=normalizeApi(eme),x_=x_&&normalizeApi(x_),eme.autoRefresh===!1)return!1;if(x_&&x_.url!==eme.url||!x_)return!!(isValidApi(eme.url)&&(!eme.sendOn||evalExpression(eme.sendOn,tme)));var nme=(ame=eme.trackExpression)!==null&&ame!==void 0?ame:eme.url;if(typeof nme!="string"||!~nme.indexOf("$"))return!1;var rme=!1;return eme.trackExpression||x_.trackExpression?rme=tokenize(x_.trackExpression||"",$P)!==tokenize(eme.trackExpression||"",tme):(x_=buildApi(x_,$P,{ignoreData:!0}),eme=buildApi(eme,tme,{ignoreData:!0}),rme=x_.url!==eme.url),!!(rme&&isValidApi(eme.url)&&(!eme.sendOn||evalExpression(eme.sendOn,tme)))}function isValidApi(x_){if(!x_||typeof x_!="string")return!1;var eme=x_.indexOf("://");if(~eme&&eme+3===x_.length)return!1;try{x_=(~eme?"":"schema://domain".concat(x_[0]==="/"?"":"/"))+x_,new URL(x_)}catch{return!1}return!0}function isEffectiveApi(x_,eme,$P,tme){return!x_||$P===!1||tme&&eme&&!evalExpression(tme,eme)?!1:typeof x_=="string"&&x_.length?!0:isObject$8(x_)&&x_.url?!(x_.sendOn&&eme&&!evalExpression(x_.sendOn,eme)):!1}function isSameApi(x_,eme){return x_.method===eme.method&&x_.url===eme.url&&!isObjectShallowModified$1(x_.data,eme.data,!1)}function getApiCache(x_){for(var eme=Date.now(),$P,tme=0,ame=apiCaches.length;tme<ame;tme++){var nme=apiCaches[tme];if(eme-nme.requestTime>nme.cache){apiCaches.splice(tme,1),ame--,tme--;continue}if(isSameApi(x_,nme)){$P=nme;break}}return $P}function setApiCache(x_,eme){return apiCaches.push(__assign$3(__assign$3({},x_),{cachedPromise:eme,requestTime:Date.now()})),eme}function normalizeApiResponseData(x_){var eme;return typeof x_>"u"?x_={}:isPlainObject$b(x_)||(x_=(eme={},eme[Array.isArray(x_)?"items":"result"]=x_,eme)),x_}var chromeVersion=function(){var eme=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return eme?parseInt(eme[2],10):!1}(),isSafari=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&navigator.userAgent.indexOf("CriOS")==-1&&navigator.userAgent.indexOf("FxiOS")==-1,Color=function(){function x_(eme,$P,tme,ame){ame===void 0&&(ame=1),this.r=eme,this.g=$P,this.b=tme,this.a=ame}return x_.prototype.toRGBString=function(){return"rgb(".concat(Math.floor(this.r*this.a),",").concat(Math.floor(this.g*this.a),",").concat(Math.floor(this.b*this.a),")")},x_.prototype.toRGBAString=function(){return"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")")},x_.prototype.toHexString=function(){return rgbaToHex$1(this)},x_}();function hexToColor(x_,eme){isValid3DigitHexColor(x_)&&(x_=convertTo6DigitHexColor(x_));var $P=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x_);if($P)return new Color(parseInt($P[1],16),parseInt($P[2],16),parseInt($P[3],16),eme);throw new Error("".concat(x_," is not a valid hex color."))}function isValid3DigitHexColor(x_){var eme=/^#(?:[0-9a-fA-F]{3})$/;return x_.match(eme)}function convertTo6DigitHexColor(x_){return x_.substring(1).split("").map(function(eme){return eme+eme}).join("")}function componentToHex(x_){var eme=x_.toString(16);return eme.length===1?"0"+eme:eme}function rgbaToHex$1(x_){var eme=Math.floor(x_.r*x_.a),$P=Math.floor(x_.g*x_.a),tme=Math.floor(x_.b*x_.a);return"#".concat(componentToHex(eme)).concat(componentToHex($P)).concat(componentToHex(tme))}var ColorScale=function(){function x_(eme,$P,tme,ame){var nme;ame===void 0&&(ame=1),this.min=isNaN(eme)?0:eme,this.max=isNaN($P)?0:$P,this.min===this.max&&(this.max=this.min+1),this.max<this.min&&(nme=__read$3([this.min,this.max],2),this.max=nme[0],this.min=nme[1]),tme.length<2&&(tme=["#FFEF9C","#FF7127"]),this.alpha=ame,this.colorStops=tme.map(function(rme){return hexToColor(rme,ame)})}return x_.prototype.getColor=function(eme){var $P=this.colorStops.length;if(eme<this.min)return this.colorStops[0];if(eme>this.max)return this.colorStops[$P-1];var tme=this.max-this.min,ame=(eme-this.min)/tme,nme=Math.max(Math.ceil(ame*($P-1)),1),rme=this.colorStops[nme-1],ime=this.colorStops[nme];ame=ame*($P-1)-(nme-1);var ome=Math.floor(ame*ime.r+(1-ame)*rme.r),lme=Math.floor(ame*ime.g+(1-ame)*rme.g),sme=Math.floor(ame*ime.b+(1-ame)*rme.b);return new Color(ome,lme,sme,this.alpha)},x_}(),baseSlice=_baseSlice,isIterateeCall$4=_isIterateeCall,toInteger$4=toInteger_1,nativeCeil$1=Math.ceil,nativeMax$5=Math.max;function chunk(x_,eme,$P){($P?isIterateeCall$4(x_,eme,$P):eme===void 0)?eme=1:eme=nativeMax$5(toInteger$4(eme),0);var tme=x_==null?0:x_.length;if(!tme||eme<1)return[];for(var ame=0,nme=0,rme=Array(nativeCeil$1(tme/eme));ame<tme;)rme[nme++]=baseSlice(x_,ame,ame+=eme);return rme}var chunk_1=chunk;const chunk$1=getDefaultExportFromCjs(chunk_1);function concatData(x_,eme,$P){$P=Array.isArray($P)?$P:$P.split(",").map(function(nme){return nme.trim()}).filter(function(nme){return nme});var tme=__assign$3({},x_),ame=!1;return eme&&$P.forEach(function(nme){var rme=getVariable(eme,nme),ime=getVariable(x_,nme),ome=[];typeof rme<"u"&&ome.push(rme),typeof ime<"u"&&ome.push(ime),ame=!0,setVariable(tme,nme,[].concat.apply([],ome))}),ame?tme:x_}var DATASCHEMA_TYPE_MAP={boolean:"布尔",integer:"整数",number:"数字",string:"文本",array:"数组",object:"对象"},DataScope=function(){function x_(eme,$P){this.children=[],this.schemas=[],this.setSchemas(Array.isArray(eme)?eme:[eme]),this.id=$P}return x_.prototype.addChild=function(eme,$P){var tme=new x_($P||{type:"object",properties:{}},eme);return this.children.push(tme),tme.parent=this,tme},x_.prototype.removeChild=function(eme){var $P=this.children.findIndex(function(ame){return typeof eme=="string"?eme===ame.id:ame===eme});if(~$P){var tme=this.children[$P];delete tme.parent,this.children.splice($P,1)}},x_.prototype.setSchemas=function(eme){var $P,tme;this.schemas.splice(0,this.schemas.length);try{for(var ame=__values$1(eme),nme=ame.next();!nme.done;nme=ame.next()){var rme=nme.value;if(rme.type!=="object")throw new TypeError("data scope accept only object");this.schemas.push(__assign$3({$id:guid$1()},rme))}}catch(ime){$P={error:ime}}finally{try{nme&&!nme.done&&(tme=ame.return)&&tme.call(ame)}finally{if($P)throw $P.error}}return this},x_.prototype.addSchema=function(eme){return eme=__assign$3({$id:guid$1()},eme),this.schemas.push(eme),this},x_.prototype.removeSchema=function(eme){var $P=this.schemas.findIndex(function(tme){return tme.$id===eme});return~$P&&this.schemas.splice($P,1),this},x_.prototype.contains=function(eme){for(var $P=eme;$P;){if(this===$P)return!0;$P=$P.parent}return!1},x_.prototype.assignSchema=function(eme,$P){var tme,ame;if(eme.type&&eme.type===$P.type){if(eme.type==="array")return eme.items?Array.isArray(eme.items)?$P.items?Array.isArray($P.items)?$P.items:__assign$3(__assign$3({},eme),{items:__spreadArray(__spreadArray([],__read$3(eme.items),!1),[$P.items],!1)}):__assign$3(__assign$3({},eme),$P):__assign$3(__assign$3({},eme),{items:this.assignSchema(eme.items,$P.items)}):$P;if(eme.type==="object"&&eme.properties){var nme={};try{for(var rme=__values$1(Array.from(new Set(__spreadArray(__spreadArray([],__read$3(Object.keys(eme.properties)),!1),__read$3(Object.keys($P.properties)),!1)))),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value,lme=eme.properties[ome];lme?nme[ome]=$P.properties[ome]?this.assignSchema(lme,$P.properties[ome]):lme:nme[ome]=$P.properties[ome]}}catch(sme){tme={error:sme}}finally{try{ime&&!ime.done&&(ame=rme.return)&&ame.call(rme)}finally{if(tme)throw tme.error}}return __assign$3(__assign$3({},eme),{properties:nme})}else return $P}else return Array.isArray(eme.oneOf)?__assign$3(__assign$3({},eme),{oneOf:__spreadArray(__spreadArray([],__read$3(eme.oneOf),!1),[$P],!1)}):__assign$3(__assign$3({},eme),{oneOf:[eme,$P]})},x_.prototype.getMergedSchema=function(){var eme=this,$P={type:"object",properties:{}};return this.schemas.forEach(function(tme){var ame=tme.properties||{};Object.keys(ame).forEach(function(nme){var rme=ame[nme];$P.properties[nme]?$P.properties[nme]=eme.assignSchema($P.properties[nme],rme):$P.properties[nme]=rme})}),$P},x_.prototype.buildOptions=function(eme,$P,tme,ame,nme){var rme=this,ime,ome,lme;tme===void 0&&(tme={label:"",value:""}),ame===void 0&&(ame="");var sme={label:$P.title||ame,value:$P.title==="成员"?"":tme.value,path:$P.title==="成员"?"":tme.label,type:$P.type,rawType:$P.rawType,tag:(ome=(ime=$P.typeLabel)!==null&&ime!==void 0?ime:DATASCHEMA_TYPE_MAP[$P.type])!==null&&ome!==void 0?ome:$P.type,description:$P.description,isMember:nme,disabled:$P.title==="成员"};if($P.group){var cme=eme.findIndex(function(ume){return ume.label===$P.group});~cme?eme[cme].children.push(sme):eme.push({label:$P.group,value:"",children:[sme]})}else eme.push(sme);if($P.type==="object"&&$P.properties){sme.children=[];var dme=Object.keys($P.properties);dme.forEach(function(ume){var fme,pme=$P.properties[ume];rme.buildOptions(sme.children,pme,{label:tme.label+(tme.label?".":"")+((fme=pme.title)!==null&&fme!==void 0?fme:ume),value:tme.value+(tme.value?".":"")+ume},ume,$P.title==="成员")})}else $P.type==="array"&&(!((lme=$P.items)===null||lme===void 0)&&lme.properties)&&(sme.children=[],this.buildOptions(sme.children,__assign$3(__assign$3({title:"成员"},$P.items),{disabled:!0}),{label:tme.label,value:tme.value},"items",$P.title==="成员"),sme.children=mapTree(sme.children,function(ume){return __assign$3({},ume)}))},x_.prototype.getDataPropsAsOptions=function(){var eme=[];return this.buildOptions(eme,this.getMergedSchema()),eme[0].children},x_.prototype.getSchemaByPath=function(eme){var $P,tme,ame=keyToPath(eme);try{for(var nme=__values$1(this.schemas),rme=nme.next();!rme.done;rme=nme.next()){var ime=rme.value,ome=ame.reduce(function(lme,sme){return lme&&lme.type==="object"&&lme.properties?lme.properties[sme]:null},ime);if(ome)return ome}}catch(lme){$P={error:lme}}finally{try{rme&&!rme.done&&(tme=nme.return)&&tme.call(nme)}finally{if($P)throw $P.error}}return null},x_.prototype.getSchemaById=function(eme){var $P;return($P=this.schemas)===null||$P===void 0?void 0:$P.find(function(tme){return tme.$id===eme})},x_}(),DataSchema=function(){function x_(eme){this.idMap={},this.root=new DataScope(eme,"root"),this.idMap.root=this.root,this.current=this.root}return x_.prototype.setSchema=function(eme){return this.current.setSchemas(eme),this},x_.prototype.addSchema=function(eme){return this.current.addSchema(eme),this},x_.prototype.removeSchema=function(eme){return this.current.removeSchema(eme),delete this.idMap[eme],this},x_.prototype.getSchemas=function(){for(var eme=[],$P=this.current;$P;)eme.push.apply(eme,__spreadArray([],__read$3($P.schemas),!1)),$P=$P.parent;return eme},x_.prototype.addScope=function(eme,$P){if($P===void 0&&($P=guid$1()),this.idMap[$P])throw new Error("scope id `"+$P+"` already exists");return this.current=this.current.addChild($P,eme),this.idMap[$P]=this.current,this},x_.prototype.removeScope=function(eme){var $P,tme=this.getScope(eme);if(!tme.parent)throw new Error("cannot remove root scope");return tme.contains(this.current)&&(this.current=tme.parent),($P=tme.parent)===null||$P===void 0||$P.removeChild(tme),delete this.idMap[tme.id],this},x_.prototype.hasScope=function(eme){var $P=typeof eme=="string"?eme:eme.id,tme=this.idMap[$P];return!!tme},x_.prototype.getScope=function(eme){var $P=typeof eme=="string"?eme:eme.id;return this.idMap[$P]},x_.prototype.switchToRoot=function(){return this.current=this.root,this},x_.prototype.switchTo=function(eme){var $P=this.getScope(eme);return this.current=$P,this},x_.prototype.pushVariable=function(eme,$P){eme.tag?$P.push({label:eme.tag,children:eme.getDataPropsAsOptions()}):$P.push.apply($P,__spreadArray([],__read$3(eme.getDataPropsAsOptions()),!1))},x_.prototype.getDataPropsAsOptions=function(){for(var eme,$P=[],tme=this.current;tme;){if(tme.group){var ame=[];this.pushVariable(tme,ame);var nme=$P.findIndex(function(rme){return rme.label===(tme==null?void 0:tme.group)});~nme?(eme=$P[nme].children).push.apply(eme,__spreadArray([],__read$3(ame),!1)):$P.push({label:tme.group,children:ame})}else this.pushVariable(tme,$P);tme=tme.parent}return $P},x_.prototype.getSchemaByPath=function(eme){for(var $P=this.current;$P;){var tme=$P.getSchemaByPath(eme);if(tme)return tme;$P=$P.parent}return null},x_}(),ServerError$2=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return ame.type="ServerError",ame.response=tme,ame}return eme}(Error),toDataURL=memoize$4(function(x_){return new Promise(function(eme,$P){var tme=new XMLHttpRequest;tme.onload=function(){var ame=new FileReader;ame.onloadend=function(){eme(ame.result)},ame.readAsDataURL(tme.response)},tme.onerror=$P,tme.open("GET",x_),tme.responseType="blob",tme.send()})}),getImageDimensions=memoize$4(function(x_){return new Promise(function(eme,$P){var tme=new Image;tme.onerror=$P,tme.onload=function(){eme({width:tme.width,height:tme.height})},tme.src=x_})}),LoopStatus;(function(x_){x_[x_.NORMAL=0]="NORMAL",x_[x_.BREAK=1]="BREAK",x_[x_.CONTINUE=2]="CONTINUE"})(LoopStatus||(LoopStatus={}));var ActionTypeMap={},registerAction=function(x_,eme){ActionTypeMap[x_]=eme},getActionByType=function(x_){return ActionTypeMap[x_]},getOmitActionProp=function(x_){var eme=[];switch(x_){case"toast":eme=["msgType","msg","position","closeButton","showIcon","timeout","title"];break;case"alert":eme=["msg"];break;case"confirm":eme=["msg","title"];break;case"ajax":case"download":eme=["api","messages","options"];break;case"setValue":eme=["value","index"];break;case"copy":eme=["content","copyFormat"];break;case"email":eme=["to","cc","bcc","subject","body"];break;case"link":eme=["link","blank","params"];break;case"url":eme=["url","blank","params"];break;case"for":eme=["loopName"];break;case"goPage":eme=["delta"];break;case"custom":eme=["script"];break;case"broadcast":eme=["eventName"];break;case"dialog":eme=["dialog"];break;case"drawer":eme=["drawer"];break;case"confirmDialog":eme=["dialog"];break;case"reload":eme=["resetPage"];break}return eme},runActions=function(x_,eme,$P){return __awaiter(void 0,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:Array.isArray(x_)||(x_=[x_]),ume.label=1;case 1:ume.trys.push([1,9,10,11]),tme=__values$1(x_),ame=tme.next(),ume.label=2;case 2:if(ame.done)return[3,8];nme=ame.value,rme=getActionByType(nme.actionType),!rme&&(nme.componentId||nme.componentName)?rme=["static","nonstatic","show","visibility","hidden","enabled","disabled","usability"].includes(nme.actionType)?getActionByType("status"):getActionByType("component"):["url","link","jump"].includes(nme.actionType)&&(rme=getActionByType("openlink")),rme||(rme=getActionByType("component")),ume.label=3;case 3:return ume.trys.push([3,5,,6]),[4,runAction(rme,nme,eme,$P)];case 4:return ume.sent(),[3,6];case 5:if(ime=ume.sent(),ome=(dme=nme.ignoreError)!==null&&dme!==void 0?dme:!1,!ome)throw Error("".concat(nme.actionType," 动作执行失败，原因：").concat(ime.message||"未知"));return[3,6];case 6:if($P.stoped)return[3,8];ume.label=7;case 7:return ame=tme.next(),[3,2];case 8:return[3,11];case 9:return lme=ume.sent(),sme={error:lme},[3,11];case 10:try{ame&&!ame.done&&(cme=tme.return)&&cme.call(tme)}finally{if(sme)throw sme.error}return[7];case 11:return[2]}})})},runAction=function(x_,eme,$P,tme){return __awaiter(void 0,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme;return __generator(this,function(Jme){switch(Jme.label){case 0:return ame={event:tme},nme=__assign$3({},eme),nme.args=__assign$3({},eme.args),rme=(Cme=($me=(_me=$P.props).getData)===null||$me===void 0?void 0:$me.call(_me))!==null&&Cme!==void 0?Cme:$P.props.data,!((Sme=tme.data)===null||Sme===void 0)&&Sme.__rendererData||(ame={event:tme,__rendererData:rme}),ime=createObject$1(createObject$1(rme.__super?createObject$1(rme.__super,ame):ame,rme),tme.data),ome=(Eme=nme.expression)!==null&&Eme!==void 0?Eme:nme.execOn,lme=!1,ome?[4,evalExpressionWithConditionBuilderAsync(ome,ime,!0)]:[3,2];case 1:lme=!Jme.sent(),Jme.label=2;case 2:return lme?[2]:(sme=!1,nme.preventDefault?[4,evalExpressionWithConditionBuilderAsync(nme.preventDefault,ime,!1)]:[3,4]);case 3:sme=Jme.sent(),Jme.label=4;case 4:return cme={componentId:dataMapping(nme.componentId,ime),componentName:dataMapping(nme.componentName,ime)},nme.actionType==="dialog"?(nme.dialog=__assign$3({},(xme=nme.dialog)!==null&&xme!==void 0?xme:(Tme=nme.args)===null||Tme===void 0?void 0:Tme.dialog),(Ome=nme.args)===null||Ome===void 0||delete Ome.dialog):nme.actionType==="drawer"?(nme.drawer=__assign$3({},(Rme=nme.drawer)!==null&&Rme!==void 0?Rme:(Nme=nme.args)===null||Nme===void 0?void 0:Nme.drawer),(Ime=nme.args)===null||Ime===void 0||delete Ime.drawer):["ajax","download"].includes(nme.actionType)&&(dme=(Pme=nme.api)!==null&&Pme!==void 0?Pme:(Mme=nme.args)===null||Mme===void 0?void 0:Mme.api,nme.api=typeof dme=="string"?dme:__assign$3({},dme),nme.options=__assign$3({},(kme=nme.options)!==null&&kme!==void 0?kme:(Bme=nme.args)===null||Bme===void 0?void 0:Bme.options),nme.messages=__assign$3({},(Dme=nme.messages)!==null&&Dme!==void 0?Dme:(jme=nme.args)===null||jme===void 0?void 0:jme.messages),(Vme=nme.args)===null||Vme===void 0||delete Vme.api,(Wme=nme.args)===null||Wme===void 0||delete Wme.options,(Lme=nme.args)===null||Lme===void 0||delete Lme.messages),ume=cme.componentId||cme.componentName,fme=ume?(zme=tme.context.scoped)===null||zme===void 0?void 0:zme[nme.componentId?"getComponentById":"getComponentByName"](ume):$P,pme=dataMapping(nme.args,ime,function(Yme){var Qme,Xme={ajax:["adaptor","responseAdaptor","requestAdaptor","responseData"]},Kme={"input-table":["condition"],table:["condition"],table2:["condition"],crud:["condition"],combo:["condition"],list:["condition"],cards:["condition"]},Zme=(Qme=fme==null?void 0:fme.props)===null||Qme===void 0?void 0:Qme.type,nbe=nme.actionType,lbe=__spreadArray(__spreadArray([],__read$3(Xme[nbe]||[]),!1),__read$3(Kme[Zme]||[]),!1);return lbe.includes(Yme)}),hme=dataMapping(nme.data,ime),bme=pme&&Object.keys(pme).length?omit$1(__assign$3(__assign$3({},pme),hme??{}),getOmitActionProp(nme.actionType)):hme,mme=bme!==void 0&&!["ajax","download","dialog","drawer"].includes(nme.actionType)?bme:ime,(Ume=console.group)===null||Ume===void 0||Ume.call(console,"run action ".concat(nme.actionType)),console.debug("[".concat(nme.actionType,"] action args, data"),pme,mme),debug("action","run action ".concat(nme.actionType," with args"),pme),debug("action","run action ".concat(nme.actionType," with data"),mme),vme=!1,[4,x_.run(__assign$3(__assign$3(__assign$3({},nme),{args:pme,rawData:eme.data,data:nme.actionType==="reload"?bme:mme}),cme),$P,tme,ime)];case 5:return gme=Jme.sent(),(nme==null?void 0:nme.actionType)==="confirmDialog"&&!gme&&(vme=!0,sme=!0),yme=!1,nme.stopPropagation?[4,evalExpressionWithConditionBuilderAsync(nme.stopPropagation,ime,!1)]:[3,7];case 6:yme=Jme.sent(),Jme.label=7;case 7:return console.debug("[".concat(nme.actionType,"] action end event"),tme),(Gme=console.groupEnd)===null||Gme===void 0||Gme.call(console),sme&&tme.preventDefault(),(yme||vme)&&tme.stopPropagation(),[2]}})})},EventQueue=function(){function x_(){this.q=[]}return x_.prototype.add=function(eme,$P){$P===void 0&&($P="both"),this.q.push({fn:eme,type:$P})},x_.prototype.call=function(eme){for(var $P=[],tme=1;tme<arguments.length;tme++)$P[tme-1]=arguments[tme];this.q.forEach(function(ame){(ame.type===eme||ame.type==="both"||eme==="both")&&ame.fn.apply(null,$P)})},x_}();function getComputedStyle$2(x_,eme){if(x_.currentStyle)return x_.currentStyle[eme];if(window.getComputedStyle){var $P=window.getComputedStyle(x_,void 0);return $P?$P.getPropertyValue(eme):void 0}else return x_.style[eme]}function attachResizeEvent(x_,eme,$P){if($P===void 0&&($P="both"),!!x_){if(!x_.resizedAttached)x_.resizedAttached=new EventQueue,x_.resizedAttached.add(eme,$P);else if(x_.resizedAttached){x_.resizedAttached.add(eme,$P);return}var tme=x_.resizeSensor=document.createElement("div");tme.className="resize-sensor";var ame="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",nme="position: absolute; left: 0; top: 0;";tme.style.cssText=ame,tme.innerHTML=`
  <div class="resize-sensor-expand" style="`.concat(ame,`">
    <div style="`).concat(nme,`"></div>
  </div>
  <div class="resize-sensor-shrink" style="`).concat(ame,`">
    <div style="`).concat(nme,` width: 200%; height: 200%"></div>
  </div>
  <div class="resize-sensor-appear" style="`).concat(ame,'animation-name: apearSensor; animation-duration: 0.2s;"></div>'),x_.appendChild(tme),x_.hasInlineStyle=x_.hasAttribute("style");var rme=x_.originPosition=getComputedStyle$2(x_,"position");~["fixed","absolute"].indexOf(rme)||(x_.style.position="relative");var ime=tme.children[0],ome=ime.children[0],lme=tme.children[1],sme=tme.children[2],cme,dme,ume=function(){ome.style.width=ime.offsetWidth+10+"px",ome.style.height=ime.offsetHeight+10+"px",ime.scrollLeft=ime.scrollWidth,ime.scrollTop=ime.scrollHeight,lme.scrollLeft=lme.scrollWidth,lme.scrollTop=lme.scrollHeight,cme=x_.offsetWidth,dme=x_.offsetHeight},fme=function(){ume(),vme&&(pme(),vme=!1)};ume();var pme=function(gme){gme===void 0&&(gme="both"),x_.resizedAttached&&x_.resizedAttached.call(gme)},hme=function(gme,yme,_me){gme.attachEvent?gme.attachEvent("on"+yme,_me):gme.addEventListener(yme,_me)},bme=function(gme,yme,_me){gme.detachEvent?gme.detachEvent("on"+yme,_me):gme.removeEventListener(yme,_me)},mme=function(gme){var yme=x_.offsetWidth!=cme,_me=x_.offsetHeight!=dme;(yme||_me)&&pme(yme&&_me?"both":yme?"width":"height"),ume()};hme(ime,"scroll",mme),hme(lme,"scroll",mme),hme(sme,"animationstart",fme);var vme=!ime.offsetWidth;return function(){bme(ime,"scroll",mme),bme(lme,"scroll",mme),bme(sme,"animationstart",fme)}}}function detach(x_){if(x_.resizeSensor){x_.hasInlineStyle?x_.style.position=x_.originPosition:x_.removeAttribute("style");try{x_.removeChild(x_.resizeSensor)}catch{}delete x_.resizeSensor,delete x_.resizedAttached,delete x_.hasInlineStyle,delete x_.originPosition}}function resizeSensor(x_,eme,$P,tme){if($P===void 0&&($P=!1),tme===void 0&&(tme="both"),!x_)return function(){};if(typeof ResizeObserver<"u"){var ame=x_.getBoundingClientRect(),nme=ame.width,rme=ame.height,ime=new ResizeObserver(function(sme){if($P&&ime.disconnect(),tme==="both")eme();else{var cme=sme[0],dme=cme.contentRect;(tme==="width"&&dme.width!==nme||tme==="height"&&dme.height!==rme)&&(eme(),nme=dme.width,rme=dme.height)}});return ime.observe(x_),function(){ime.disconnect()}}var ome=void 0;if($P)return ome=attachResizeEvent(x_,function(){eme.apply(this,arguments),ome==null||ome(),detach(x_)},tme),function(){};ome=attachResizeEvent(x_,eme,tme);var lme=!1;return function(){lme||(lme=!0,ome==null||ome(),detach(x_))}}function contains(x_,eme){if(x_.contains)return x_.contains(eme);if(x_.compareDocumentPosition)return x_===eme||!!(x_.compareDocumentPosition(eme)&16)}const canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);var optionsSupported=!1,onceSupported=!1;try{var options={get passive(){return optionsSupported=!0},get once(){return onceSupported=optionsSupported=!0}};canUseDOM&&(window.addEventListener("test",options,options),window.removeEventListener("test",options,!0))}catch{}function addEventListener(x_,eme,$P,tme){if(tme&&typeof tme!="boolean"&&!onceSupported){var ame=tme.once,nme=tme.capture,rme=$P;!onceSupported&&ame&&(rme=$P.__once||function ime(ome){this.removeEventListener(eme,ime,nme),$P.call(this,ome)},$P.__once=rme),x_.addEventListener(eme,rme,optionsSupported?tme:nme)}x_.addEventListener(eme,$P,tme)}function removeEventListener(x_,eme,$P,tme){var ame=tme&&typeof tme!="boolean"?tme.capture:tme;x_.removeEventListener(eme,$P,ame),$P.__once&&x_.removeEventListener(eme,$P.__once,ame)}function listen(x_,eme,$P,tme){return addEventListener(x_,eme,$P,tme),function(){removeEventListener(x_,eme,$P,tme)}}function useCommittedRef(x_){var eme=reactExports.useRef(x_);return reactExports.useEffect(function(){eme.current=x_},[x_]),eme}function useEventCallback(x_){var eme=useCommittedRef(x_);return reactExports.useCallback(function(){return eme.current&&eme.current.apply(eme,arguments)},[eme])}var warning_1,hasRequiredWarning;function requireWarning(){if(hasRequiredWarning)return warning_1;hasRequiredWarning=1;var x_=function(){};return warning_1=x_,warning_1}var warningExports=requireWarning();const warning=getDefaultExportFromCjs(warningExports);function ownerDocument$2(x_){return x_&&x_.ownerDocument||document}function safeFindDOMNode(x_){return x_&&"setState"in x_?ReactDOM.findDOMNode(x_):x_??null}const ownerDocument$1=function(x_){return ownerDocument$2(safeFindDOMNode(x_))};var escapeKeyCode=27,noop$8=function(){};function isLeftClickEvent(x_){return x_.button===0}function isModifiedEvent(x_){return!!(x_.metaKey||x_.altKey||x_.ctrlKey||x_.shiftKey)}var getRefTarget=function(eme){return eme&&("current"in eme?eme.current:eme)};function useRootClose(x_,eme,$P){var tme=$P===void 0?{}:$P,ame=tme.disabled,nme=tme.clickTrigger,rme=nme===void 0?"click":nme,ime=reactExports.useRef(!1),ome=eme||noop$8,lme=reactExports.useCallback(function(dme){var ume=getRefTarget(x_);warning(!!ume,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),ime.current=!ume||isModifiedEvent(dme)||!isLeftClickEvent(dme)||!!contains(ume,dme.target)},[x_]),sme=useEventCallback(function(dme){ime.current||ome(dme)}),cme=useEventCallback(function(dme){dme.keyCode===escapeKeyCode&&ome(dme)});reactExports.useEffect(function(){if(!(ame||x_==null)){var dme=window.event,ume=ownerDocument$1(getRefTarget(x_)),fme=listen(ume,rme,lme,!0),pme=listen(ume,rme,function(mme){if(mme===dme){dme=void 0;return}sme(mme)}),hme=listen(ume,"keyup",function(mme){if(mme===dme){dme=void 0;return}cme(mme)}),bme=[];return"ontouchstart"in ume.documentElement&&(bme=[].slice.call(ume.body.children).map(function(mme){return listen(mme,"mousemove",noop$8)})),function(){fme(),pme(),hme(),bme.forEach(function(mme){return mme()})}}},[x_,ame,rme,lme,sme,cme])}var baseAssignValue$1=_baseAssignValue,baseForOwn$2=_baseForOwn,baseIteratee$9=_baseIteratee;function mapValues(x_,eme){var $P={};return eme=baseIteratee$9(eme),baseForOwn$2(x_,function(tme,ame,nme){baseAssignValue$1($P,ame,eme(tme,ame,nme))}),$P}var mapValues_1=mapValues;const mapValues$1=getDefaultExportFromCjs(mapValues_1);function arrayReduce$2(x_,eme,$P,tme){var ame=-1,nme=x_==null?0:x_.length;for(tme&&nme&&($P=x_[++ame]);++ame<nme;)$P=eme($P,x_[ame],ame,x_);return $P}var _arrayReduce=arrayReduce$2,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$3=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(x_){return x_=toString$3(x_),x_&&x_.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(x_){return x_.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(x_){return reHasUnicodeWord.test(x_)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(x_){return x_.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString$2=toString_1,unicodeWords=_unicodeWords;function words$1(x_,eme,$P){return x_=toString$2(x_),eme=$P?void 0:eme,eme===void 0?hasUnicodeWord(x_)?unicodeWords(x_):asciiWords(x_):x_.match(eme)||[]}var words_1=words$1,arrayReduce$1=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$2(x_){return function(eme){return arrayReduce$1(words(deburr(eme).replace(reApos,"")),x_,"")}}var _createCompounder=createCompounder$2,capitalize=capitalize_1,createCompounder$1=_createCompounder,camelCase=createCompounder$1(function(x_,eme,$P){return eme=eme.toLowerCase(),x_+($P?capitalize(eme):eme)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);var baseEach$4=_baseEach,isArrayLike$3=isArrayLike_1;function baseMap$3(x_,eme){var $P=-1,tme=isArrayLike$3(x_)?Array(x_.length):[];return baseEach$4(x_,function(ame,nme,rme){tme[++$P]=eme(ame,nme,rme)}),tme}var _baseMap=baseMap$3,arrayMap$9=_arrayMap,baseIteratee$8=_baseIteratee,baseMap$2=_baseMap,isArray$8=isArray_1;function map$1(x_,eme){var $P=isArray$8(x_)?arrayMap$9:baseMap$2;return $P(x_,baseIteratee$8(eme))}var map_1=map$1;const map$2=getDefaultExportFromCjs(map_1);var createCompounder=_createCompounder,kebabCase=createCompounder(function(x_,eme,$P){return x_+($P?"-":"")+eme.toLowerCase()}),kebabCase_1=kebabCase;const kebabCase$1=getDefaultExportFromCjs(kebabCase_1);var invariant$1=function(x_,eme,$P,tme,ame,nme,rme,ime){if(!x_){var ome;if(eme===void 0)ome=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var lme=[$P,tme,ame,nme,rme,ime],sme=0;ome=new Error(eme.replace(/%s/g,function(){return lme[sme++]})),ome.name="Invariant Violation"}throw ome.framesToPop=1,ome}},browser=invariant$1;const invariant$2=getDefaultExportFromCjs(browser);var noop$7=function(){};function uncontrolledPropTypes(x_,eme){var $P={};return Object.keys(x_).forEach(function(tme){$P[defaultKey(tme)]=noop$7}),$P}function isProp(x_,eme){return x_[eme]!==void 0}function defaultKey(x_){return"default"+x_.charAt(0).toUpperCase()+x_.substr(1)}function canAcceptRef(x_){return!!x_&&(typeof x_!="function"||x_.prototype&&x_.prototype.isReactComponent)}function componentWillMount(){var x_=this.constructor.getDerivedStateFromProps(this.props,this.state);x_!=null&&this.setState(x_)}function componentWillReceiveProps(x_){function eme($P){var tme=this.constructor.getDerivedStateFromProps(x_,$P);return tme??null}this.setState(eme.bind(this))}function componentWillUpdate(x_,eme){try{var $P=this.props,tme=this.state;this.props=x_,this.state=eme,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate($P,tme)}finally{this.props=$P,this.state=tme}}componentWillMount.__suppressDeprecationWarning=!0;componentWillReceiveProps.__suppressDeprecationWarning=!0;componentWillUpdate.__suppressDeprecationWarning=!0;function polyfill(x_){var eme=x_.prototype;if(!eme||!eme.isReactComponent)throw new Error("Can only polyfill class components");if(typeof x_.getDerivedStateFromProps!="function"&&typeof eme.getSnapshotBeforeUpdate!="function")return x_;var $P=null,tme=null,ame=null;if(typeof eme.componentWillMount=="function"?$P="componentWillMount":typeof eme.UNSAFE_componentWillMount=="function"&&($P="UNSAFE_componentWillMount"),typeof eme.componentWillReceiveProps=="function"?tme="componentWillReceiveProps":typeof eme.UNSAFE_componentWillReceiveProps=="function"&&(tme="UNSAFE_componentWillReceiveProps"),typeof eme.componentWillUpdate=="function"?ame="componentWillUpdate":typeof eme.UNSAFE_componentWillUpdate=="function"&&(ame="UNSAFE_componentWillUpdate"),$P!==null||tme!==null||ame!==null){var nme=x_.displayName||x_.name,rme=typeof x_.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

`+nme+" uses "+rme+" but also contains the following legacy lifecycles:"+($P!==null?`
  `+$P:"")+(tme!==null?`
  `+tme:"")+(ame!==null?`
  `+ame:"")+`

The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof x_.getDerivedStateFromProps=="function"&&(eme.componentWillMount=componentWillMount,eme.componentWillReceiveProps=componentWillReceiveProps),typeof eme.getSnapshotBeforeUpdate=="function"){if(typeof eme.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");eme.componentWillUpdate=componentWillUpdate;var ime=eme.componentDidUpdate;eme.componentDidUpdate=function(lme,sme,cme){var dme=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:cme;ime.call(this,lme,sme,dme)}}return x_}var _jsxFileName="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function uncontrollable$1(x_,eme,$P){$P===void 0&&($P=[]);var tme=x_.displayName||x_.name||"Component",ame=canAcceptRef(x_),nme=Object.keys(eme),rme=nme.map(defaultKey);ame||!$P.length||invariant$2(!1);var ime=function(lme){_inheritsLoose(sme,lme);function sme(){for(var dme,ume=arguments.length,fme=new Array(ume),pme=0;pme<ume;pme++)fme[pme]=arguments[pme];dme=lme.call.apply(lme,[this].concat(fme))||this,dme.handlers=Object.create(null),nme.forEach(function(bme){var mme=eme[bme],vme=function(yme){if(dme.props[mme]){var _me;dme._notifying=!0;for(var $me=arguments.length,Cme=new Array($me>1?$me-1:0),Sme=1;Sme<$me;Sme++)Cme[Sme-1]=arguments[Sme];(_me=dme.props)[mme].apply(_me,[yme].concat(Cme)),dme._notifying=!1}dme.unmounted||dme.setState(function(Eme){var xme,Tme=Eme.values;return{values:_extends$4C(Object.create(null),Tme,(xme={},xme[bme]=yme,xme))}})};dme.handlers[mme]=vme}),$P.length&&(dme.attachRef=function(bme){dme.inner=bme});var hme=Object.create(null);return nme.forEach(function(bme){hme[bme]=dme.props[defaultKey(bme)]}),dme.state={values:hme,prevProps:{}},dme}var cme=sme.prototype;return cme.shouldComponentUpdate=function(){return!this._notifying},sme.getDerivedStateFromProps=function(ume,fme){var pme=fme.values,hme=fme.prevProps,bme={values:_extends$4C(Object.create(null),pme),prevProps:{}};return nme.forEach(function(mme){bme.prevProps[mme]=ume[mme],!isProp(ume,mme)&&isProp(hme,mme)&&(bme.values[mme]=ume[defaultKey(mme)])}),bme},cme.componentWillUnmount=function(){this.unmounted=!0},cme.render=function(){var ume=this,fme=this.props,pme=fme.innerRef,hme=_objectWithoutPropertiesLoose$3(fme,["innerRef"]);rme.forEach(function(mme){delete hme[mme]});var bme={};return nme.forEach(function(mme){var vme=ume.props[mme];bme[mme]=vme!==void 0?vme:ume.state.values[mme]}),React__default.createElement(x_,_extends$4C({},hme,bme,this.handlers,{ref:pme||this.attachRef}))},sme}(React__default.Component);polyfill(ime),ime.displayName="Uncontrolled("+tme+")",ime.propTypes=_extends$4C({innerRef:function(){}},uncontrolledPropTypes(eme)),$P.forEach(function(lme){ime.prototype[lme]=function(){var cme;return(cme=this.inner)[lme].apply(cme,arguments)}});var ome=ime;return React__default.forwardRef&&(ome=React__default.forwardRef(function(lme,sme){return React__default.createElement(ime,_extends$4C({},lme,{innerRef:sme,__source:{fileName:_jsxFileName,lineNumber:128},__self:this}))}),ome.propTypes=ime.propTypes),ome.ControlledComponent=x_,ome.deferControlTo=function(lme,sme,cme){return sme===void 0&&(sme={}),uncontrollable$1(lme,_extends$4C({},eme,sme),cme)},ome}function isId18(x_){if(!/^\d{17}(\d|X)$/.test(x_))return!1;var eme=getInfoFromId(x_);if(!eme)return!1;var $P=eme.province,tme=eme.city,ame=eme.country,nme=eme.birthday;return!verifyRegion($P,tme,ame)||!verifyBirthday(nme)?!1:verifyCheckCode(x_)}function isId15(x_){if(!/^\d{15}$/.test(x_))return!1;var eme=getInfoFromId(x_);if(!eme)return!1;var $P=eme.province,tme=eme.city,ame=eme.country,nme=eme.birthday;return verifyRegion($P,tme,ame)&&verifyBirthday(nme)}function isId(x_){return isId18(x_)||isId15(x_)}function getProvInfo(x_){return{11:"北京市",12:"天津市",13:"河北省",14:"山西省",15:"内蒙古自治区",21:"辽宁省",22:"吉林省",23:"黑龙江省",31:"上海省",32:"江苏省",33:"浙江省",34:"安徽省",35:"福建省",36:"江西省",37:"山东省",41:"河南省",42:"湖北省",43:"湖南省",44:"广东省",45:"广西壮族自治区",46:"海南省",50:"重庆市",51:"四川省",52:"贵州省",53:"云南省",54:"西藏自治区",61:"陕西省",62:"甘肃省",63:"青海省",64:"宁夏回族自治区",65:"新疆维吾尔自治区",71:"台湾省",81:"香港",82:"澳门",91:"国外"}[x_]}function getInfoFromId(x_){if(!(x_.length===18&&!/^\d{17}(\d|X)$/.test(x_)||x_.length===15&&!/^\d{15}$/.test(x_))){var eme;if(x_.length==18?eme=x_.match(/^(\d{2})(\d{2})(\d{2})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/):x_.length==15&&(eme=x_.match(/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{3})$/)),!!eme){var $P=__read$3(eme,9);$P[0];var tme=$P[1],ame=$P[2],nme=$P[3],rme=$P[4],ime=$P[5],ome=$P[6],lme=$P[7],sme=$P[8];return{province:tme,provinceName:getProvInfo(tme),city:ame,country:nme,year:rme,month:ime,day:ome,birthday:new Date(rme+"/"+ime+"/"+ome),sequenceCode:lme,checkCode:sme,isMale:+lme%2===1,isFemale:+lme%2===0}}}}function verifyRegion(x_,eme,$P){return!(!getProvInfo(x_)||!/^(?:[0-6]\d|70|90)$/.test(eme)||!/^\d\d$/.test($P))}function verifyBirthday(x_){var eme=hooks(new Date("1850-01-01")),$P=hooks().endOf("day");return!isNaN(+x_)&&hooks(x_).isBetween(eme,$P)}function verifyCheckCode(x_){for(var eme=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],$P=["1","0","X","9","8","7","6","5","4","3","2"],tme=0,ame=0;ame<17;ame++)tme+=+x_.slice(ame,ame+1)*eme[ame];return $P[tme%11]===x_.slice(17,18)}var isExisty=function(x_){return x_!=null},isEmpty$1=function(x_){return x_===""},makeRegexp=function(x_){return x_ instanceof RegExp?x_:/^(?:matchRegexp\:)?\/(.+)\/([gimuy]*)$/.test(x_)?new RegExp(RegExp.$1,RegExp.$2||""):typeof x_=="string"?new RegExp(x_):/^$/},makeUrlRegexp=memoize$4(function(x_){x_=__assign$3({schemes:["http","https","ftp","sftp"],allowLocal:!0,allowDataUrl:!1},isPlainObject$b(x_)?x_:{});var eme=x_.schemes,$P=x_.allowLocal,tme=x_.allowDataUrl;Array.isArray(eme)||(eme=["http","https","ftp","sftp"]);var ame="^(?:(?:"+eme.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",nme="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if($P?nme+="?":ame+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",ame+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+nme+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",tme){var rme="\\w+\\/[-+.\\w]+(?:;[\\w=]+)*",ime="[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*",ome="data:(?:"+rme+")?(?:;base64)?,"+ime;ame="(?:"+ame+")|(?:^"+ome+"$)"}return new RegExp(ame,"i")}),valueToString=function(x_){return typeof x_>"u"||x_===null?"":typeof x_=="string"?x_:x_ instanceof Date?x_.toISOString():JSON.stringify(x_)},validations={isRequired:function(x_,eme){return eme!==void 0&&eme!==""&&eme!==null&&(!Array.isArray(eme)||!!eme.length)},isExisty:function(x_,eme){return isExisty(eme)},matchRegexp:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||makeRegexp($P).test(eme)},isUndefined:function(x_,eme){return eme===void 0},isEmptyString:function(x_,eme){return isEmpty$1(eme)},isEmail:function(x_,eme){return validations.matchRegexp(x_,eme,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i)},isUrl:function(x_,eme,$P){return validations.matchRegexp(x_,eme,makeUrlRegexp($P))},isTrue:function(x_,eme){return eme===!0},isFalse:function(x_,eme){return eme===!1},isNumeric:function(x_,eme){return typeof eme=="number"?!0:validations.matchRegexp(x_,eme,/^[-+]?(?:\d*[.])?\d+$/)},isAlpha:function(x_,eme){return validations.matchRegexp(x_,eme,/^[A-Z]+$/i)},isAlphanumeric:function(x_,eme){return validations.matchRegexp(x_,eme,/^[0-9A-Z]+$/i)},isInt:function(x_,eme){return validations.matchRegexp(x_,eme,/^(?:[-+]?(?:0|[1-9]\d*))$/)},isFloat:function(x_,eme){return validations.matchRegexp(x_,eme,/^(?:[-+]?(?:\d+))?(?:\.\d*)?(?:[eE][\+\-]?(?:\d+))?$/)},isWords:function(x_,eme){return validations.matchRegexp(x_,eme,/^[A-Z\s]+$/i)},isSpecialWords:function(x_,eme){return validations.matchRegexp(x_,eme,/^[A-Z\s\u00C0-\u017F]+$/i)},isLength:function(x_,eme,$P){return eme=valueToString(eme),!isExisty(eme)||isEmpty$1(eme)||eme.length===$P},equals:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||eme==$P},equalsField:function(x_,eme,$P){return eme==x_[$P]},maxLength:function(x_,eme,$P){return eme=valueToString(eme),!isExisty(eme)||eme.length<=$P},minLength:function(x_,eme,$P){return eme=valueToString(eme),!isExisty(eme)||isEmpty$1(eme)||eme.length>=$P},isUrlPath:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||/^[a-z0-9_\\-]+$/i.test(eme)},maximum:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||(parseFloat(eme)||0)<=(parseFloat($P)||0)},lt:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||(parseFloat(eme)||0)<(parseFloat($P)||0)},minimum:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||(parseFloat(eme)||0)>=(parseFloat($P)||0)},gt:function(x_,eme,$P){return!isExisty(eme)||isEmpty$1(eme)||(parseFloat(eme)||0)>(parseFloat($P)||0)},isJson:function(x_,eme,$P){if(isExisty(eme)&&!isEmpty$1(eme)&&typeof eme=="string")try{var tme=JSON.parse(eme);return!!(typeof tme=="object"&&tme)}catch{return!1}return!0},isPhoneNumber:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||/^(\+\d{2}-)?[1]([3-9])[0-9]{9}$/.test(eme)},isTelNumber:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||/^(\+\d{2}-)?(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(eme)},isZipcode:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||/^\d{6}$/.test(eme)},isId:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||isId(String(eme))},isId18:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||isId18(String(eme))},isId15:function(x_,eme){return!isExisty(eme)||isEmpty$1(eme)||isId15(String(eme))},notEmptyString:function(x_,eme){return!isExisty(eme)||!(String(eme)&&String(eme).trim()==="")},matchRegexp1:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp2:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp3:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp4:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp5:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp6:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp7:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp8:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},matchRegexp9:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P)},isDateTimeSame:function(x_,eme,$P,tme){return hooks(eme).isSame(hooks($P),tme)},isDateTimeBefore:function(x_,eme,$P,tme){return hooks(eme).isBefore(hooks($P),tme)},isDateTimeAfter:function(x_,eme,$P,tme){return hooks(eme).isAfter(hooks($P),tme)},isDateTimeSameOrBefore:function(x_,eme,$P,tme){return hooks(eme).isSameOrBefore(hooks($P),tme)},isDateTimeSameOrAfter:function(x_,eme,$P,tme){return hooks(eme).isSameOrAfter(hooks($P),tme)},isDateTimeBetween:function(x_,eme,$P,tme,ame,nme){return hooks(eme).isBetween(hooks($P),hooks(tme),ame,nme)},isTimeSame:function(x_,eme,$P,tme,ame){return ame=ame??"hh:mm:ss",hooks(eme,ame).isSame(hooks($P,ame),tme)},isTimeBefore:function(x_,eme,$P,tme,ame){return ame=ame??"hh:mm:ss",hooks(eme,ame).isBefore(hooks($P,ame),tme)},isTimeAfter:function(x_,eme,$P,tme,ame){return ame=ame??"hh:mm:ss",hooks(eme,ame).isAfter(hooks($P,ame),tme)},isTimeSameOrBefore:function(x_,eme,$P,tme,ame){return ame=ame??"hh:mm:ss",hooks(eme,ame).isSameOrBefore(hooks($P,ame),tme)},isTimeSameOrAfter:function(x_,eme,$P,tme,ame){return ame=ame??"hh:mm:ss",hooks(eme,ame).isSameOrAfter(hooks($P,ame),tme)},isTimeBetween:function(x_,eme,$P,tme,ame,nme,rme){return rme=rme??"hh:mm:ss",hooks(eme,rme).isBetween(hooks($P,rme),hooks(tme,rme),ame,nme)},isVariableName:function(x_,eme,$P){return validations.matchRegexp(x_,eme,$P instanceof RegExp?$P:/^[a-zA-Z_]+[a-zA-Z0-9_]*$/)}},validateMessages={isEmail:"validate.isEmail",isRequired:"validate.isRequired",isUrl:"validate.isUrl",isInt:"validate.isInt",isAlpha:"validate.isAlpha",isNumeric:"validate.isNumeric",isAlphanumeric:"validate.isAlphanumeric",isFloat:"validate.isFloat",isWords:"validate.isWords",isUrlPath:"validate.isUrlPath",matchRegexp:"validate.matchRegexp",minLength:"validate.minLength",maxLength:"validate.maxLength",minLengthArray:"validate.array.minLength",maxLengthArray:"validate.array.maxLength",maximum:"validate.maximum",lt:"validate.lt",minimum:"validate.minimum",gt:"validate.gt",isJson:"validate.isJson",isLength:"validate.isLength",notEmptyString:"validate.notEmptyString",equalsField:"validate.equalsField",equals:"validate.equals",isPhoneNumber:"validate.isPhoneNumber",isTelNumber:"validate.isTelNumber",isZipcode:"validate.isZipcode",isId:"validate.isId",isId18:"validate.isId",isId15:"validate.isId",isDateTimeSame:"validate.isDateTimeSame",isDateTimeBefore:"validate.isDateTimeBefore",isDateTimeAfter:"validate.isDateTimeAfter",isDateTimeSameOrBefore:"validate.isDateTimeSameOrBefore",isDateTimeSameOrAfter:"validate.isDateTimeSameOrAfter",isDateTimeBetween:"validate.isDateTimeBetween",isTimeSame:"validate.isTimeSame",isTimeBefore:"validate.isTimeBefore",isTimeAfter:"validate.isTimeAfter",isTimeSameOrBefore:"validate.isTimeSameOrBefore",isTimeSameOrAfter:"validate.isTimeSameOrAfter",isTimeBetween:"validate.isTimeBetween",isVariableName:"validate.isVariableName"};function validate$1(x_,eme,$P,tme,ame){var nme;ame===void 0&&(ame=function(hme){return hme});var rme=[];if($P)for(var ime=Object.keys($P),ome=ime.length,lme=0;lme<ome;lme++){var sme=ime[lme];if(!(!$P[sme]&&$P[sme]!==0)){if(typeof validations[sme]!="function")throw new Error("Validation `"+sme+"` not exists!");var cme=validations[sme],dme=(Array.isArray($P[sme])?$P[sme]:[$P[sme]]).map(function(hme){return typeof hme=="string"&&isPureVariable(hme)?resolveVariableAndFilter(hme,eme,"|raw"):hme}),ume=cme.apply(void 0,__spreadArray([eme,x_],__read$3(dme),!1)),fme="";if(typeof ume=="object"&&ume.error===!0&&(fme=(nme=ume==null?void 0:ume.msg)!==null&&nme!==void 0?nme:""),!ume||fme){var pme=sme;return Array.isArray(x_)&&(pme="".concat(sme,"Array")),[{rule:sme,msg:filter$1(ame(tme&&tme[sme]||fme||validateMessages[pme]||validateMessages[sme]),__assign$3({},[""].concat(dme)))}]}}}return rme}function validateObject(x_,eme,$P,tme){tme===void 0&&(tme=function(nme){return nme});var ame={};return Object.keys(eme).forEach(function(nme){var rme=validate$1(x_[nme],x_,eme[nme]===!0?{isRequired:!0}:eme[nme],$P,tme);rme.length&&(ame[nme]=rme)}),ame}var splitValidations=function(x_){var eme=0,$P={};return x_.replace(/matchRegexp\d*\s*\:\s*\/.*?\/[igm]*/g,function(tme){return $P["__".concat(eme)]=tme,"__".concat(eme++)}).split(/,(?![^{\[]*[}\]])/g).map(function(tme){return/^__\d+$/.test(tme)?$P[tme]:tme.trim()})};function str2rules(x_){return typeof x_=="string"?x_?splitValidations(x_).reduce(function(eme,$P){var tme=$P.indexOf(":"),ame=$P,nme=[];return~tme&&(ame=$P.substring(0,tme),nme=/^matchRegexp/.test(ame)?[$P.substring(tme+1).trim()]:$P.substring(tme+1).split(",").map(function(rme){try{return JSON.parse(rme)}catch{return rme}})),eme[ame]=nme.length?nme:!0,eme},{}):{}:x_||{}}var AnimationDurtation=150,AnimationEasing="cubic-bezier(1, 0, 0, 1)",AnimationManager=function(){function x_(){this.animating=!1,this.states=[]}return x_.prototype.capture=function(eme){var $P=this;this.states=[];var tme=[].slice.call(eme.children);tme.forEach(function(ame){if(!ame.classList.contains("is-ghost")){var nme=getRect$2(ame);if(nme.width){var rme=__assign$3({},nme),ime={target:ame,rect:nme};if(ame.thisAnimationDuration){var ome=matrix$2(ame);ome&&(rme.top-=ome.f,rme.left-=ome.e)}ame.fromRect=rme,$P.states.push(ime)}}})},x_.prototype.animateAll=function(eme){var $P=this;this.animating=!1;var tme=0;this.states.forEach(function(ame){var nme=0,rme=ame.target,ime=rme.fromRect,ome=__assign$3({},getRect$2(rme)),lme=rme.prevFromRect,sme=rme.prevToRect,cme=ame.rect,dme=matrix$2(rme);dme&&(ome.top-=dme.f,ome.left-=dme.e),rme.toRect=ome,rme.thisAnimationDuration&&isRectEqual$2(lme,ome)&&!isRectEqual$2(ime,ome)&&(cme.top-ome.top)/(cme.left-ome.left)===(ime.top-ome.top)/(ime.left-ome.left)&&(nme=calculateRealTime$2(cme,lme,sme)),isRectEqual$2(ome,ime)||(rme.prevFromRect=ime,rme.prevToRect=ome,nme||(nme=AnimationDurtation),$P.animate(rme,cme,ome,nme)),nme&&($P.animating=!0,tme=Math.max(tme,nme),clearTimeout(rme.animationResetTimer),rme.animationResetTimer=setTimeout(function(){rme.animationTime=0,rme.prevFromRect=null,rme.fromRect=null,rme.prevToRect=null,rme.thisAnimationDuration=null},nme),rme.thisAnimationDuration=nme)}),clearTimeout(this.animationCallbackId),this.animating?this.animationCallbackId=setTimeout(function(){$P.animating=!1,typeof eme=="function"&&eme()},tme):typeof eme=="function"&&eme(),this.states=[]},x_.prototype.animate=function(eme,$P,tme,ame){if(ame){var nme=!1;css$2(eme,"transition",""),css$2(eme,"transform","");var rme=$P.left-tme.left,ime=$P.top-tme.top;eme.animatingX=!!rme,eme.animatingY=!!ime,css$2(eme,"transform","translate3d("+rme+"px,"+ime+"px,0)"),css$2(eme,"display")==="inline"&&(nme=!0,css$2(eme,"display","inline-block")),eme.offsetWidth,css$2(eme,"transition","transform "+ame+"ms"+(" "+AnimationEasing)),css$2(eme,"transform","translate3d(0,0,0)"),typeof eme.animated=="number"&&clearTimeout(eme.animated),eme.animated=setTimeout(function(){css$2(eme,"transition",""),css$2(eme,"transform",""),nme&&css$2(eme,"display",""),eme.animated=!1,eme.animatingX=!1,eme.animatingY=!1},ame)}},x_}();function matrix$2(x_){var eme="";if(typeof x_=="string")eme=x_;else{var $P=css$2(x_,"transform");$P&&$P!=="none"&&(eme=$P+" "+eme)}var tme=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return tme&&new tme(eme)}function css$2(x_,eme,$P){var tme=x_&&x_.style;if(tme){if($P===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$P=document.defaultView.getComputedStyle(x_,""):x_.currentStyle&&($P=x_.currentStyle),eme===void 0?$P:$P[eme];!(eme in tme)&&eme.indexOf("webkit")===-1&&(eme="-webkit-"+eme),tme[eme]=$P+(typeof $P=="string"?"":"px")}}function isRectEqual$2(x_,eme){return Math.round(x_.top)===Math.round(eme.top)&&Math.round(x_.left)===Math.round(eme.left)&&Math.round(x_.height)===Math.round(eme.height)&&Math.round(x_.width)===Math.round(eme.width)}function calculateRealTime$2(x_,eme,$P){return Math.sqrt(Math.pow(eme.top-x_.top,2)+Math.pow(eme.left-x_.left,2))/Math.sqrt(Math.pow(eme.top-$P.top,2)+Math.pow(eme.left-$P.left,2))*AnimationDurtation}function getWindowScrollingElement$2(){var x_=document.scrollingElement;return x_||document.documentElement}function getRect$2(x_,eme,$P,tme,ame){if(!(!x_.getBoundingClientRect&&x_!==window)){var nme,rme,ime,ome,lme,sme,cme;return x_!==window&&x_!==getWindowScrollingElement$2()?(nme=x_.getBoundingClientRect(),rme=nme.top,ime=nme.left,ome=nme.bottom,lme=nme.right,sme=nme.height,cme=nme.width):(rme=0,ime=0,ome=window.innerHeight,lme=window.innerWidth,sme=window.innerHeight,cme=window.innerWidth),{top:rme,left:ime,bottom:ome,right:lme,width:cme,height:sme}}}var Animation=new AnimationManager,iRendererStore=StoreNode.named("iRendererStore").props({hasRemoteData:types.optional(types.boolean,!1),data:types.optional(types.frozen(),{}),initedAt:0,updatedAt:0,pristine:types.optional(types.frozen(),{}),pristineRaw:types.optional(types.frozen(),{}),upStreamData:types.optional(types.frozen(),{}),action:types.optional(types.frozen(),void 0),dialogOpen:!1,dialogData:types.optional(types.frozen(),void 0),drawerOpen:!1,drawerData:types.optional(types.frozen(),void 0)}).views(function(x_){return{getValueByName:function(eme,$P){return $P===void 0&&($P=!0),getVariable(x_.data,eme,$P)},getPristineValueByName:function(eme){return getVariable(x_.pristine,eme,!1)},get pristineDiff(){var eme={};return Object.keys(x_.pristine).forEach(function($P){x_.pristine[$P]!==x_.pristineRaw[$P]&&(eme[$P]=x_.pristine[$P])}),eme}}}).actions(function(x_){var eme=new SimpleMap,$P=null,tme=null,ame=null;return{setTopStore:function(nme){ame=nme},initData:function(nme,rme,ime){nme===void 0&&(nme={}),rme===void 0&&(rme=!1),x_.initedAt=Date.now(),x_.data.__tag&&(nme=injectObjectChain(nme,x_.data.__tag)),rme||(x_.pristine=nme,x_.pristineRaw=nme),ime&&Object.isExtensible(nme)&&Object.defineProperty(nme,"__changeReason",{value:ime,enumerable:!1,configurable:!1,writable:!1}),x_.data=nme,x_.upStreamData=nme},reset:function(){x_.data=x_.pristine},updateData:function(nme,rme,ime,ome,lme){nme===void 0&&(nme={}),ome&&(nme=concatData(nme,x_.data,ome));var sme=x_.data,cme;if(rme){var dme=createObject$1(x_.data.__super||null,__assign$3(__assign$3({},rme),{__tag:rme}));cme=createObject$1(dme,__assign$3(__assign$3({},ime?{}:x_.data),nme))}else cme=extendObject(x_.data,nme,!ime);Object.defineProperty(cme,"__prev",{value:__assign$3({},sme),enumerable:!1,configurable:!1,writable:!1}),lme&&Object.isExtensible(cme)&&Object.defineProperty(cme,"__changeReason",{value:lme,enumerable:!1,configurable:!1,writable:!1}),x_.data=cme},changeValue:function(nme,rme,ime,ome,lme,sme){if(nme){var cme=getVariable(x_.data,nme,!1);if(!(rme===cme&&!ome)){var dme=x_.data,ume=cloneObject$2(x_.data);if(dme.hasOwnProperty("__prev")){var fme=cloneObject$2(dme.__prev);setVariable(fme,nme,cme),Object.defineProperty(ume,"__prev",{value:fme,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(ume,"__prev",{value:__assign$3({},dme),enumerable:!1,configurable:!1,writable:!1});if(rme===void 0?deleteVariable(ume,nme):setVariable(ume,nme,rme),lme==null||lme(ume),ime){var pme=cloneObject$2(x_.pristine);setVariable(pme,nme,rme),lme==null||lme(pme),x_.pristine=pme}ume.__pristine||Object.defineProperty(ume,"__pristine",{value:x_.pristine,enumerable:!1,configurable:!1,writable:!1}),sme&&Object.isExtensible(ume)&&Object.defineProperty(ume,"__changeReason",{value:sme,enumerable:!1,configurable:!1,writable:!1}),x_.data=ume}}},setCurrentAction:function(nme,rme){rme&&["dialog","drawer"].forEach(function(ime){var ome,lme;!((lme=nme[ime])===null||lme===void 0)&&lme.$ref&&(nme=__assign$3(__assign$3({},nme),(ome={},ome[ime]=__assign$3(__assign$3({},rme(nme[ime].$ref)),nme[ime]),ome)))}),x_.action=nme,x_.dialogData=!1,x_.drawerOpen=!1},openDialog:function(nme,rme,ime,ome){var lme,sme,cme=extractObjectChain(nme);cme.length===1&&cme.unshift(x_.data),rme&&cme.splice(cme.length-1,0,rme);var dme=createObjectFromChain(cme),ume=(lme=x_.action.data)!==null&&lme!==void 0?lme:(sme=x_.action.dialog)===null||sme===void 0?void 0:sme.data;if(ume){x_.dialogData=createObjectFromChain([ame==null?void 0:ame.context,dataMapping(ume,dme)]);var fme=__assign$3(__assign$3({},x_.action),{dialog:__assign$3({},x_.action.dialog)});delete fme.dialog.data,x_.action=fme}else x_.dialogData=dme;x_.dialogOpen=!0,ime&&eme.set(x_.dialogData,ime),$P=ome||null},closeDialog:function(nme,rme){var ime=eme.get(x_.dialogData);x_.dialogOpen=!1,$P=null,ime&&(eme.delete(x_.dialogData),setTimeout(function(){return ime(nme,rme)},200))},openDrawer:function(nme,rme,ime,ome){var lme,sme=extractObjectChain(nme);sme.length===1&&sme.unshift(x_.data),rme&&sme.splice(sme.length-1,0,rme);var cme=createObjectFromChain(sme),dme=(lme=x_.action.data)!==null&&lme!==void 0?lme:x_.action.drawer.data;if(dme){x_.drawerData=createObjectFromChain([ame==null?void 0:ame.context,dataMapping(dme,cme)]);var ume=__assign$3(__assign$3({},x_.action),{drawer:__assign$3({},x_.action.drawer)});delete ume.drawer.data,x_.action=ume}else x_.drawerData=cme;x_.drawerOpen=!0,ime&&eme.set(x_.drawerData,ime),tme=ome||null},closeDrawer:function(nme,rme){var ime=eme.get(x_.drawerData);x_.drawerOpen=!1,tme=null,ime&&(eme.delete(x_.drawerData),setTimeout(function(){return ime(nme,rme)},200))},getDialogScoped:function(){return $P},getDrawerScoped:function(){return tme}}});function replaceText(x_,eme,$P){if(eme&&isObject$8(eme)){var tme=Object.keys(eme);if(!tme.length)return x_;tme.sort(function(rme,ime){return ime.length-rme.length});var ame=new Set(Array.isArray($P)?$P:[]),nme=typeof $P=="function"?$P:function(rme){return ame.has(rme)};return JSONValueMap(x_,function(rme,ime,ome){var lme,sme;if(typeof rme=="string"&&!nme(ime,rme,ome))try{for(var cme=__values$1(tme),dme=cme.next();!dme.done;dme=cme.next()){var ume=dme.value;if(~rme.indexOf(ume))return rme.replaceAll(ume,eme[ume])}}catch(fme){lme={error:fme}}finally{try{dme&&!dme.done&&(sme=cme.return)&&sme.call(cme)}finally{if(lme)throw lme.error}}return rme})}return x_}var _a$d,_b$5,isMobile$1=!!(!((_b$5=(_a$d=window).matchMedia)===null||_b$5===void 0)&&_b$5.call(_a$d,"(max-width: 768px)").matches),envOverwrite=function(x_,eme){return JSONValueMap(x_,function($P){if(!isPlainObject$b($P))return $P;if(eme&&$P[eme]){var tme=Object.assign({},$P,$P[eme]);return delete tme[eme],tme}else if(isMobile$1&&$P.mobile){var tme=Object.assign({},$P,$P.mobile);return delete tme.mobile,tme}},!0)},ServiceStore=iRendererStore.named("ServiceStore").props({msg:"",error:!1,fetching:!1,saving:!1,busying:!1,checking:!1,initializing:!1,schema:types.optional(types.frozen(),null),schemaKey:""}).views(function(x_){return{get loading(){return x_.fetching||x_.saving||x_.busying||x_.initializing}}}).actions(function(x_){var eme,$P;function tme(pme){pme===void 0&&(pme=!0),x_.fetching=pme}function ame(pme){pme===void 0&&(pme=!0),x_.saving=pme}function nme(pme){pme===void 0&&(pme=!0),x_.busying=pme}function rme(pme,hme,bme){hme===void 0&&(hme=!1),bme&&(pme=concatData(pme,x_.data,bme));var mme=extendObject(x_.data,pme,!hme);x_.data=x_.pristine=mme}function ime(pme,hme){hme===void 0&&(hme=!1),x_.msg=pme&&filter$1(pme,x_.data)||"",x_.error=hme}function ome(){ime("")}var lme=flow(function(hme,bme,mme){var vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime;return __generator(this,function(Pme){switch(Pme.label){case 0:return Pme.trys.push([0,6,,7]),eme&&(eme(),eme=null,x_.fetching=!1),x_.fetching?[2]:(mme&&mme.silent||tme(!0),[4,getEnv(x_).fetcher(hme,bme,__assign$3(__assign$3({},mme),{cancelExecutor:function(Mme){return eme=Mme}}))]);case 1:return vme=Pme.sent(),eme=null,vme.ok?[3,2]:(ime((Tme=(xme=(Eme=hme==null?void 0:hme.messages)===null||Eme===void 0?void 0:Eme.failed)!==null&&xme!==void 0?xme:vme.msg)!==null&&Tme!==void 0?Tme:mme&&mme.errorMessage,!0),!hme.silent&&getEnv(x_).notify("error",x_.msg,vme.msgTimeout!==void 0?{closeButton:!0,timeout:vme.msgTimeout}:void 0),[3,5]);case 2:return x_.updatedAt=Date.now(),gme=!!hme.replaceData,yme=__assign$3(__assign$3({},gme?{}:x_.data),normalizeApiResponseData(vme.data)),rme(yme,gme,hme.concatDataFields),x_.hasRemoteData=!0,mme&&mme.onSuccess?(_me=mme.onSuccess(vme,yme),_me&&_me.then?[4,_me]:[3,4]):[3,4];case 3:Pme.sent(),Pme.label=4;case 4:ime((Ime=(Nme=(Rme=(Ome=hme==null?void 0:hme.messages)===null||Ome===void 0?void 0:Ome.success)!==null&&Rme!==void 0?Rme:vme.msg)!==null&&Nme!==void 0?Nme:mme&&mme.successMessage)!==null&&Ime!==void 0?Ime:vme.defaultMsg),mme&&mme.successMessage&&getEnv(x_).notify("success",x_.msg),Pme.label=5;case 5:return tme(!1),[2,vme];case 6:return $me=Pme.sent(),Cme=getEnv(x_),!isAlive(x_)||x_.disposed?[2]:Cme.isCancel($me)?[2]:(tme(!1),console.error($me),Sme=$me.message||$me,$me&&$me.message==="Network Error"&&(Sme=x_.__("networkError")),!hme.silent&&Cme.notify("error",Sme),[2]);case 7:return[2]}})}),sme=function(){x_.hasRemoteData=!0},cme=flow(function(hme,bme,mme){var vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome;return __generator(this,function(Rme){switch(Rme.label){case 0:return Rme.trys.push([0,6,,7]),eme&&(eme(),eme=null,x_.fetching=!1),x_.fetching?[2]:(mme&&mme.silent||tme(!0),[4,getEnv(x_).fetcher(hme,bme,__assign$3(__assign$3({},mme),{cancelExecutor:function(Nme){return eme=Nme}}))]);case 1:return vme=Rme.sent(),eme=null,(!isEmpty$2(vme.data)||vme.ok)&&(x_.updatedAt=Date.now(),vme.data&&x_.updateData(normalizeApiResponseData(vme.data),void 0,!!hme.replaceData,hme.concatDataFields,{type:"api"}),x_.hasRemoteData=!0),vme.ok?[3,2]:(ime((Eme=(Sme=(Cme=hme==null?void 0:hme.messages)===null||Cme===void 0?void 0:Cme.failed)!==null&&Sme!==void 0?Sme:vme.msg)!==null&&Eme!==void 0?Eme:mme&&mme.errorMessage,!0),!hme.silent&&getEnv(x_).notify("error",x_.msg,vme.msgTimeout!==void 0?{closeButton:!0,timeout:vme.msgTimeout}:void 0),[3,5]);case 2:return mme&&mme.onSuccess?(gme=mme.onSuccess(vme,vme.data),gme&&gme.then?[4,gme]:[3,4]):[3,4];case 3:Rme.sent(),Rme.label=4;case 4:ime((Ome=(Tme=(xme=hme==null?void 0:hme.messages)===null||xme===void 0?void 0:xme.success)!==null&&Tme!==void 0?Tme:vme.msg)!==null&&Ome!==void 0?Ome:mme&&mme.successMessage),mme&&mme.successMessage&&getEnv(x_).notify("success",x_.msg),Rme.label=5;case 5:return tme(!1),[2,vme];case 6:return yme=Rme.sent(),_me=getEnv(x_),!isAlive(x_)||x_.disposed?[2]:_me.isCancel(yme)?[2]:(tme(!1),console.error(yme),$me=yme.message||yme,yme&&yme.message==="Network Error"&&($me=x_.__("networkError")),!hme.silent&&_me.notify("error",$me),[2]);case 7:return[2]}})}),dme=flow(function(hme,bme,mme){var vme,gme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome;return mme===void 0&&(mme={}),__generator(this,function(Rme){switch(Rme.label){case 0:return Rme.trys.push([0,8,,9]),mme=__assign$3({method:"post"},mme),x_.saving?[2]:(ame(!0),[4,getEnv(x_).fetcher(hme,bme,mme)]);case 1:return vme=Rme.sent(),(!isEmpty$2(vme.data)||vme.ok)&&(x_.updatedAt=Date.now(),vme.data&&x_.updateData(normalizeApiResponseData(vme.data),void 0,!!hme.replaceData,hme.concatDataFields,{type:"api"})),vme.ok?[3,4]:mme&&mme.onFailed?(gme=mme.onFailed(vme),gme&&gme.then?[4,gme]:[3,3]):[3,3];case 2:Rme.sent(),Rme.label=3;case 3:throw ime((Eme=(Sme=(Cme=($me=hme==null?void 0:hme.messages)===null||$me===void 0?void 0:$me.failed)!==null&&Cme!==void 0?Cme:vme.msg)!==null&&Sme!==void 0?Sme:mme&&mme.errorMessage)!==null&&Eme!==void 0?Eme:x_.__("saveFailed"),!0),new ServerError$2(x_.msg,vme);case 4:return mme&&mme.onSuccess?(gme=mme.onSuccess(vme,vme.data),gme&&gme.then?[4,gme]:[3,6]):[3,6];case 5:Rme.sent(),Rme.label=6;case 6:ime((Ome=(Tme=(xme=hme==null?void 0:hme.messages)===null||xme===void 0?void 0:xme.success)!==null&&Tme!==void 0?Tme:vme.msg)!==null&&Ome!==void 0?Ome:mme&&mme.successMessage),x_.msg&&getEnv(x_).notify("success",x_.msg,vme.msgTimeout!==void 0?{closeButton:!0,timeout:vme.msgTimeout}:void 0),Rme.label=7;case 7:return ame(!1),[2,vme.data];case 8:if(yme=Rme.sent(),x_.saving=!1,!isAlive(x_)||x_.disposed)return[2];throw console.error(yme),hme.silent||(yme.type==="ServerError"?(_me=yme.response,getEnv(x_).notify("error",yme.message,_me.msgTimeout!==void 0?{closeButton:!0,timeout:_me.msgTimeout}:void 0)):getEnv(x_).notify("error",yme.message)),yme;case 9:return[2]}})}),ume=flow(function(hme,bme,mme){var vme,yme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme;return mme===void 0&&(mme={}),__generator(this,function(Nme){switch(Nme.label){case 0:return Nme.trys.push([0,2,,3]),mme=__assign$3(__assign$3({method:"post"},mme),{cancelExecutor:function(Ime){return $P=Ime}}),$P&&($P(),$P=null,x_.initializing=!1),x_.initializing?[2]:(x_.initializing=!0,typeof hme=="string"?hme+=(~hme.indexOf("?")?"&":"?")+"_replace=1":hme=__assign$3(__assign$3({},hme),{url:hme.url+(~hme.url.indexOf("?")?"&":"?")+"_replace=1"}),[4,getEnv(x_).fetcher(hme,bme,mme)]);case 1:return vme=Nme.sent(),$P=null,vme.ok?(vme.data&&(yme=getEnv(x_),vme.data=envOverwrite(vme.data,yme.locale),vme.data=replaceText(vme.data,yme.replaceText,yme.replaceTextIgnoreKeys),x_.schema=Array.isArray(vme.data)?vme.data:Object.assign(!((xme=vme.data)===null||xme===void 0)&&xme.type?{}:{type:"wrapper",wrap:!1},normalizeApiResponseData(vme.data)),x_.schemaKey=""+Date.now(),isObject$8(vme.data.data)&&x_.updateData(vme.data.data,void 0,!!hme.replaceData,hme.concatDataFields,{type:"api"})),ime((Rme=(Ome=(Tme=hme==null?void 0:hme.messages)===null||Tme===void 0?void 0:Tme.success)!==null&&Ome!==void 0?Ome:vme.msg)!==null&&Rme!==void 0?Rme:mme&&mme.successMessage),mme&&mme.successMessage&&getEnv(x_).notify("success",x_.msg)):(ime((Eme=(Sme=(Cme=($me=hme==null?void 0:hme.messages)===null||$me===void 0?void 0:$me.failed)!==null&&Cme!==void 0?Cme:vme.msg)!==null&&Sme!==void 0?Sme:mme&&mme.errorMessage)!==null&&Eme!==void 0?Eme:x_.__("fetchFailed"),!0),!(hme!=null&&hme.silent)&&getEnv(x_).notify("error",x_.msg,vme.msgTimeout!==void 0?{closeButton:!0,timeout:vme.msgTimeout}:void 0)),x_.initializing=!1,[2,vme.data];case 2:return gme=Nme.sent(),yme=getEnv(x_),x_.initializing=!1,!isAlive(x_)||x_.disposed?[2]:yme.isCancel(gme)?[2]:(console.error(gme),_me=gme.message||gme,gme&&gme.message==="Network Error"&&(_me=x_.__("networkError")),!(hme!=null&&hme.silent)&&yme.notify("error",_me),[3,3]);case 3:return[2]}})}),fme=flow(function(hme,bme,mme){var vme;return __generator(this,function(gme){switch(gme.label){case 0:if(x_.checking)return[2];gme.label=1;case 1:return gme.trys.push([1,,3,4]),x_.checking=!0,[4,getEnv(x_).fetcher(hme,bme,mme)];case 2:if(vme=gme.sent(),vme.ok&&x_.updateData(vme.data,void 0,!!hme.replaceData,hme.concatDataFields),!vme.ok)throw new Error(vme.msg);return[2,vme.data];case 3:return x_.checking=!1,[7];case 4:return[2]}})});return{markFetching:tme,markSaving:ame,markBusying:nme,fetchInitData:lme,fetchData:cme,reInitData:rme,updateMessage:ime,clearMessage:ome,setHasRemoteData:sme,saveRemote:dme,fetchSchema:ume,checkRemote:fme}}),UniqueGroup=types.model("UniqueGroup",{name:types.identifier,itemsRef:types.array(types.string)}).views(function(x_){return{get items(){return x_.itemsRef.map(function(eme){return getStoreById(eme)})}}}).actions(function(x_){return{removeItem:function(eme){x_.itemsRef.replace(x_.itemsRef.filter(function($P){return $P!==eme.id}))},addItem:function(eme){x_.itemsRef.push(eme.id)}}}),ComboStore=iRendererStore.named("ComboStore").props({uniques:types.map(UniqueGroup),multiple:!1,formsRef:types.optional(types.array(types.string),[]),minLength:0,maxLength:0,length:0,activeKey:0,memberValidMap:types.optional(types.frozen(),{})}).views(function(x_){function eme(){return x_.formsRef.map(function($P){return getStoreById($P)})}return{get forms(){return eme()},get addable(){if(x_.maxLength&&x_.length>=x_.maxLength)return!1;if(x_.uniques.size){var $P=!1;if(x_.uniques.forEach(function(tme){if(!($P||!tme.items.length)){var ame=countTree(tme.items[0].options,function(rme){return typeof rme.value<"u"}),nme=tme.items.reduce(function(rme,ime){return rme+ime.selectedOptions.length},0);$P=!!(ame&&nme>=ame)}}),$P)return!1}return!0},get removable(){return!(x_.minLength&&x_.minLength>=x_.length)},getItemsByName:function($P){var tme=eme();return x_.multiple?[tme[parseInt($P,10)]]:tme[0].getItemsByName($P)}}}).actions(function(x_){function eme(ome){typeof ome.multiple<"u"&&(x_.multiple=ome.multiple),typeof ome.minLength<"u"&&(x_.minLength=parseInt(ome.minLength,10)),typeof ome.maxLength<"u"&&(x_.maxLength=parseInt(ome.maxLength,10)),typeof ome.length<"u"&&(x_.length=ome.length)}function $P(ome){x_.uniques.has(ome.name)||x_.uniques.put({name:ome.name});var lme=x_.uniques.get(ome.name);lme.addItem(ome)}function tme(ome){var lme=x_.uniques.get(ome.name);lme.removeItem(ome),lme.items.length||x_.uniques.delete(ome.name)}function ame(ome){x_.formsRef.push(ome.id)}function nme(ome){if(ome.storeType==="FormStore"){var lme=x_.formsRef.indexOf(ome.id);~lme&&(x_.formsRef.splice(lme,1),ome.items.forEach(function(sme){sme.unique&&tme(sme)}),x_.forms.forEach(function(sme){return sme.items.forEach(function(cme){cme.unique&&(cme.syncOptions(void 0,sme.data),cme.errors.length&&cme.validate(cme.tmpValue))})}))}x_.removeChildId(ome.id)}function rme(ome){x_.activeKey=ome}function ime(ome,lme){var sme;x_.memberValidMap=__assign$3(__assign$3({},x_.memberValidMap),(sme={},sme[lme]=ome,sme))}return{config:eme,setActiveKey:rme,bindUniuqueItem:$P,unBindUniuqueItem:tme,addForm:ame,onChildStoreDispose:nme,setMemberValid:ime}}),arrayMap$8=_arrayMap;function baseToPairs$1(x_,eme){return arrayMap$8(eme,function($P){return[$P,x_[$P]]})}var _baseToPairs=baseToPairs$1;function setToPairs$1(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme){$P[++eme]=[tme,tme]}),$P}var _setToPairs=setToPairs$1,baseToPairs=_baseToPairs,getTag$1=_getTag,mapToArray$1=_mapToArray,setToPairs=_setToPairs,mapTag$3="[object Map]",setTag$3="[object Set]";function createToPairs$1(x_){return function(eme){var $P=getTag$1(eme);return $P==mapTag$3?mapToArray$1(eme):$P==setTag$3?setToPairs(eme):baseToPairs(eme,x_(eme))}}var _createToPairs=createToPairs$1,createToPairs=_createToPairs,keys$3=keys_1,toPairs=createToPairs(keys$3),toPairs_1=toPairs;const toPairs$1=getDefaultExportFromCjs(toPairs_1);var assignValue$2=_assignValue,castPath$2=_castPath,isIndex$2=_isIndex,isObject$6=isObject_1,toKey$1=_toKey;function baseSet$3(x_,eme,$P,tme){if(!isObject$6(x_))return x_;eme=castPath$2(eme,x_);for(var ame=-1,nme=eme.length,rme=nme-1,ime=x_;ime!=null&&++ame<nme;){var ome=toKey$1(eme[ame]),lme=$P;if(ome==="__proto__"||ome==="constructor"||ome==="prototype")return x_;if(ame!=rme){var sme=ime[ome];lme=tme?tme(sme,ome,ime):void 0,lme===void 0&&(lme=isObject$6(sme)?sme:isIndex$2(eme[ame+1])?[]:{})}assignValue$2(ime,ome,lme),ime=ime[ome]}return x_}var _baseSet=baseSet$3,baseGet$4=_baseGet,baseSet$2=_baseSet,castPath$1=_castPath;function basePickBy$2(x_,eme,$P){for(var tme=-1,ame=eme.length,nme={};++tme<ame;){var rme=eme[tme],ime=baseGet$4(x_,rme);$P(ime,rme)&&baseSet$2(nme,castPath$1(rme,x_),ime)}return nme}var _basePickBy=basePickBy$2,basePickBy$1=_basePickBy,hasIn$1=hasIn_1;function basePick$1(x_,eme){return basePickBy$1(x_,eme,function($P,tme){return hasIn$1(x_,tme)})}var _basePick=basePick$1,basePick=_basePick,flatRest=_flatRest,pick$2=flatRest(function(x_,eme){return x_==null?{}:basePick(x_,eme)}),pick_1=pick$2;const pick$3=getDefaultExportFromCjs(pick_1);var FormStore=ServiceStore.named("FormStore").props({inited:!1,validated:!1,submited:!1,submiting:!1,savedData:types.frozen(),canAccessSuperData:!0,persistData:types.optional(types.union(types.string,types.boolean),""),restError:types.optional(types.array(types.string),[])}).views(function(x_){function eme(){for(var $P=[],tme=x_.children.concat();tme.length;){var ame=tme.shift();ame.storeType==="FormItemStore"&&!ame.isControlled?$P.push(ame):["ComboStore","TableStore","FormStore"].includes(ame.storeType)||tme.push.apply(tme,__spreadArray([],__read$3(ame.children),!1))}return $P}return{get loading(){return x_.saving||x_.fetching},get items(){return eme()},get inputGroupItems(){for(var $P,tme,ame={},nme=this.items.concat();nme.length;){var rme=nme.shift();if(rme.inputGroupControl&&(!(($P=rme.inputGroupControl)===null||$P===void 0)&&$P.name)){var ime=(tme=rme.inputGroupControl)===null||tme===void 0?void 0:tme.name;ame.hasOwnProperty(ime)?ame[ime].push(rme):ame[ime]=[rme]}}return ame},get errors(){var $P={};return eme().forEach(function(tme){tme.valid||($P[tme.name]=Array.isArray($P[tme.name])?$P[tme.name].concat(tme.errors):tme.errors.concat())}),$P},getValueByName:function($P,tme){return tme===void 0&&(tme=x_.canAccessSuperData),getVariable(x_.data,$P,tme)},getPristineValueByName:function($P){return getVariable(x_.pristine,$P)},getItemById:function($P){return eme().find(function(tme){return tme.itemId===$P})},getItemByName:function($P){return eme().find(function(tme){return tme.name===$P})},getItemsByName:function($P){return eme().filter(function(tme){return tme.name===$P})},get valid(){return eme().every(function($P){return $P.valid})&&(!x_.restError||!x_.restError.length)},get validating(){return eme().some(function($P){return $P.validating})},get isPristine(){return isEqual$1(x_.pristine,x_.data)},get modified(){return x_.savedData?x_.savedData!==x_.data:!this.isPristine},get persistKey(){return"".concat(location.pathname,"/").concat(x_.path,"/").concat(typeof x_.persistData=="string"?filter$1(x_.persistData,x_.data):x_.persistData)}}}).actions(function(x_){function eme(xme,Tme,Ome,Rme,Nme){x_.updateData(xme,Tme,Ome,Rme,Nme),x_.items.forEach(function(Ime){if(Ime.extraName){var Pme=[getVariable(xme,Ime.name,!1),getVariable(xme,Ime.extraName,!1)];if(Pme.some(function(kme){return kme!==void 0})&&!isEqual$1(Pme,Ime.tmpValue)){var Mme=Ime.splitExtraValue(Ime.tmpValue);Ime.changeTmpValue(Pme.map(function(kme,Bme){return kme??Mme[Bme]}),"dataChanged"),Ime.changeEmitedValue(void 0)}}else{var Pme=getVariable(xme,Ime.name,!1);Pme!==void 0&&Pme!==Ime.tmpValue&&(Ime.changeTmpValue(Pme,"dataChanged"),Ime.changeEmitedValue(void 0))}Ime.reset(),x_.inited&&Ime.validateOnChange&&Ime.validate(x_.data)}),nme()}function $P(xme,Tme,Ome,Rme,Nme){Ome===void 0&&(Ome=!1),Rme===void 0&&(Rme=!1);var Ime=getVariable(x_.data,xme,!1),Pme=x_.data,Mme=cloneObject$2(x_.data);if(Tme!==Ime)if(Pme.hasOwnProperty("__prev")){var kme=cloneObject$2(Pme.__prev);setVariable(kme,xme,Ime),Object.defineProperty(Mme,"__prev",{value:kme,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(Mme,"__prev",{value:__assign$3({},Pme),enumerable:!1,configurable:!1,writable:!1});else if(!Rme)return;if(setVariable(Mme,xme,Tme),Ome){var Bme=cloneObject$2(x_.pristine);setVariable(Bme,xme,Tme),x_.pristine=Bme}Mme.__pristine||Object.defineProperty(Mme,"__pristine",{value:x_.pristine,enumerable:!1,configurable:!1,writable:!1}),Nme&&Object.isExtensible(Mme)&&Object.defineProperty(Mme,"__changeReason",{value:Nme,enumerable:!1,configurable:!1,writable:!1}),x_.data=Mme,nme()}function tme(xme,Tme){var Ome=x_.data,Rme=cloneObject$2(x_.data);if(Ome.hasOwnProperty("__prev")){var Nme=cloneObject$2(Ome.__prev);setVariable(Nme,xme,getVariable(Ome,xme)),Object.defineProperty(Rme,"__prev",{value:Nme,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(Rme,"__prev",{value:__assign$3({},Ome),enumerable:!1,configurable:!1,writable:!1});deleteVariable(Rme,xme),Tme&&Object.isExtensible(Rme)&&Object.defineProperty(Rme,"__changeReason",{value:Tme,enumerable:!1,configurable:!1,writable:!1}),x_.data=Rme}function ame(){var xme=mapObject(x_.data,function(Tme){return typeof Tme=="string"?Tme.trim():Tme});x_.updateData(xme)}var nme=debounce$6(function(){return x_.items.forEach(function(xme){return xme.syncOptions(void 0,x_.data)})},250,{trailing:!0,leading:!1});function rme(xme){x_.restError.replace(xme)}function ime(xme,Tme){var Ome=Tme?Array.isArray(Tme)?Tme.concat():[Tme]:null;if(Array.isArray(Ome)){var Rme={};Ome.forEach(function(Nme){return Rme[Nme]=xme}),sme(Rme,"rules")}else x_.restError.push(xme)}function ome(){rme([])}var lme=flow(function(Tme,Ome,Rme){var Pme,Nme,Pme,Ime,Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme,Yme,Qme,Xme,Kme;return Rme===void 0&&(Rme={}),__generator(this,function(Zme){switch(Zme.label){case 0:ome(),Zme.label=1;case 1:return Zme.trys.push([1,12,,15]),Rme=__assign$3({method:"post"},Rme),Rme&&Rme.beforeSend?(Pme=Rme.beforeSend(Ome),Pme&&Pme.then?[4,Pme]:[3,3]):[3,4];case 2:Pme=Zme.sent(),Zme.label=3;case 3:if(Pme===!1)return[2];Zme.label=4;case 4:return x_.markSaving(!0),[4,getEnv(x_).fetcher(Tme,Ome,Rme)];case 5:if(Nme=Zme.sent(),(!isEmpty$2(Nme.data)||Nme.ok)&&(x_.updatedAt=Date.now(),eme(normalizeApiResponseData(Nme.data),Nme.ok?{__saved:Date.now()}:void 0,!!Tme.replaceData,Tme.concatDataFields,{type:"api"})),Nme.ok)return[3,6];throw Nme.status===422&&Nme.errors?(sme(Nme.errors),x_.updateMessage((jme=(Dme=(Bme=(kme=Tme==null?void 0:Tme.messages)===null||kme===void 0?void 0:kme.failed)!==null&&Bme!==void 0?Bme:Nme.msg)!==null&&Dme!==void 0?Dme:x_.__(Rme&&Rme.errorMessage))!==null&&jme!==void 0?jme:x_.__("Form.validateFailed"),!0)):x_.updateMessage((Lme=(Wme=(Vme=Tme==null?void 0:Tme.messages)===null||Vme===void 0?void 0:Vme.failed)!==null&&Wme!==void 0?Wme:Nme.msg)!==null&&Lme!==void 0?Lme:x_.__(Rme&&Rme.errorMessage),!0),new ServerError$2(x_.msg,Nme);case 6:return Eme(),Pme=(zme=Rme==null?void 0:Rme.onSuccess)===null||zme===void 0?void 0:zme.call(Rme,Nme,Nme.data),Pme!=null&&Pme.then?[4,Pme]:[3,8];case 7:Pme=Zme.sent(),Zme.label=8;case 8:return!((Ume=Pme==null?void 0:Pme.cbResult)===null||Ume===void 0)&&Ume.then?[4,Pme.cbResult]:[3,10];case 9:Zme.sent(),Zme.label=10;case 10:return x_.markSaving(!1),x_.updateMessage((Qme=(Yme=(Jme=(Gme=Tme==null?void 0:Tme.messages)===null||Gme===void 0?void 0:Gme.success)!==null&&Jme!==void 0?Jme:Nme.msg)!==null&&Yme!==void 0?Yme:Rme.successMessage==="saveSuccess"?Nme.defaultMsg:x_.__(Rme&&Rme.successMessage))!==null&&Qme!==void 0?Qme:Nme.defaultMsg),!((Xme=Pme==null?void 0:Pme.dispatcher)===null||Xme===void 0)&&Xme.prevented||x_.msg&&getEnv(x_).notify("success",x_.msg,Nme.msgTimeout!==void 0?{closeButton:!0,timeout:Nme.msgTimeout}:void 0),[2,Nme.data];case 11:return[3,15];case 12:return Ime=Zme.sent(),x_.markSaving(!1),Pme=Rme&&Rme.onFailed&&Rme.onFailed(Ime.response||{}),Pme!=null&&Pme.then?[4,Pme]:[3,14];case 13:Pme=Zme.sent(),Zme.label=14;case 14:if(!isAlive(x_)||x_.disposed)return[2];if(!((Kme=Pme==null?void 0:Pme.dispatcher)===null||Kme===void 0)&&Kme.prevented)return[2];throw Tme!=null&&Tme.silent||(Ime.type==="ServerError"?(Mme=Ime.response,getEnv(x_).notify("error",Ime.message,Mme.msgTimeout!==void 0?{closeButton:!0,timeout:Mme.msgTimeout}:void 0)):getEnv(x_).notify("error",Ime.message)),Ime;case 15:return[2]}})});function sme(xme,Tme){Tme===void 0&&(Tme="remote"),Object.keys(xme).forEach(function(Ome){var Rme=x_.getItemById(Ome),Nme=x_.getItemsByName(Ome);if(Rme)Rme.setError(xme[Ome],Tme),delete xme[Ome];else if(Nme.length)Nme.forEach(function(Pme){return Pme.setError(xme[Ome],Tme)}),delete xme[Ome];else{var Ime=cme(Ome);Array.isArray(Ime)&&Ime.length&&(Ime.forEach(function(Pme){return Pme.setError("".concat(xme[Ome]),Tme)}),delete xme[Ome])}}),!isEmpty$2(xme)&&rme(Object.keys(xme).map(function(Ome){return String(xme[Ome])}))}var cme=function(xme){var Tme=keyToPath(xme),Ome=Tme.length;return Tme.reduce(function(Rme,Nme,Ime){if(Array.isArray(Rme)&&Rme.every(function(kme){return kme.getItemsByName})){var Pme=flatten$4(Rme.map(function(kme){return kme.getItemsByName(Nme)})).filter(function(kme){return kme}),Mme=Pme.map(function(kme){var Bme;return(Bme=kme==null?void 0:kme.getSubStore)===null||Bme===void 0?void 0:Bme.call(kme)}).filter(function(kme){return kme});return Mme.length&&Ime<Ome-1?Mme:Pme}return null},[x_])},dme=throttle$6(function(xme){var Tme=getEnv(x_);Tme.notify("error",xme)},1e4,{trailing:!1,leading:!0}),ume=flow(function(Tme,Ome,Rme,Nme,Ime){var Pme,Mme;return __generator(this,function(kme){switch(kme.label){case 0:x_.submited=!0,x_.submiting=!0,kme.label=1;case 1:return kme.trys.push([1,,5,6]),[4,fme(Ome,!0,!0,Rme,Nme)];case 2:return kme.sent(),Tme?(Pme=difference$2(x_.data,x_.pristine),[4,Tme(createObject$1(createObject$1(x_.data.__super,{diff:Pme,__diff:Pme,pristine:x_.pristine}),x_.data))]):[3,4];case 3:return Mme=kme.sent(),[2,Mme??x_.data];case 4:return[2,x_.data];case 5:return x_.submiting=!1,[7];case 6:return[2]}})}),fme=flow(function(Tme,Ome,Rme,Nme,Ime){var Pme,kme,Bme,Mme,kme,Bme,jme,Dme,jme,Vme;return __generator(this,function(Wme){switch(Wme.label){case 0:x_.validated=!0,Pme=x_.items.concat(),kme=0,Bme=Pme.length,Wme.label=1;case 1:return kme<Bme?(Mme=Pme[kme],Mme.clearError("rules"),Mme.validated&&isObject$8(Mme.rules)&&toPairs$1(Mme.rules).filter(function(Lme){var zme=__read$3(Lme,2),Ume=zme[0];return zme[1],/^is(Date)?Time/.test(Ume)}).some(function(Lme){var zme=__read$3(Lme,2);zme[0];var Ume=zme[1];return Array.isArray(Ume)?Ume.some(function(Gme){return isPureVariable(Gme)}):isPureVariable(Ume)})&&Mme.resetValidationStatus(),!Mme.validated||Mme.rules.equals||Mme.rules.equalsField||Mme.unique||Ome||Mme.validateApi||Mme.isValueSchemaExp?[4,Mme.validate(x_.data)]:[3,3]):[3,4];case 2:Wme.sent(),Wme.label=3;case 3:return kme++,[3,1];case 4:if(Wme.trys.push([4,9,,10]),!(Tme&&Tme.length))return[3,8];kme=0,Bme=Tme.length,Wme.label=5;case 5:return kme<Bme?[4,Tme[kme](x_.data)]:[3,8];case 6:if(jme=Wme.sent(),typeof jme=="string"&&jme)throw new Error(jme);if(jme===!1)throw new ValidateError(Nme||x_.__("Form.validateFailed"),x_.errors);Wme.label=7;case 7:return kme++,[3,5];case 8:return[3,10];case 9:if(Dme=Wme.sent(),Rme)throw Dme;return dme(Dme.message),[2,!1];case 10:return x_.valid?[3,14]:x_.items.some(function(Lme){return Lme.errorData.some(function(zme){return zme.tag!=="remote"})})||x_.restError.length?(jme=Nme??x_.__("Form.validateFailed"),Vme=Ime&&Ime(),Vme!=null&&Vme.then?[4,Vme]:[3,12]):[3,13];case 11:Vme=Wme.sent(),Wme.label=12;case 12:Vme!=null&&Vme.prevented||jme&&dme(jme),Wme.label=13;case 13:if(Rme)throw new ValidateError(Nme||x_.__("Form.validateFailed"),x_.errors);Wme.label=14;case 14:return[2,x_.valid]}})}),pme=flow(function(Tme){var Ome,Rme,Nme,Ime,Pme,Mme;return __generator(this,function(kme){switch(kme.label){case 0:Ome=x_.items.concat(),Rme=Tme.map(function(Bme){return typeof Bme=="string"?{name:Bme,rules:{}}:Bme}),Nme=[],Ime=function(Bme,Dme){var jme,Vme,Wme,Lme;return __generator(this,function(zme){switch(zme.label){case 0:return jme=Ome[Bme],Vme=find$3(Rme,function(Ume){return Ume.name===jme.name}),Vme?(Lme=(Wme=Nme).push,[4,jme.validate(x_.data,void 0,Vme.rules)]):[3,2];case 1:Lme.apply(Wme,[zme.sent()]),zme.label=2;case 2:return[2]}})},Pme=0,Mme=Ome.length,kme.label=1;case 1:return Pme<Mme?[5,Ime(Pme,Mme)]:[3,4];case 2:kme.sent(),kme.label=3;case 3:return Pme++,[3,1];case 4:return[2,Nme.every(function(Bme){return Bme})]}})});function hme(){var xme=x_.items.concat();xme.forEach(function(Tme){return Tme.reset()})}function bme(xme){x_.pristine=xme}function mme(xme,Tme){Tme===void 0&&(Tme=!0),Tme&&(x_.data=x_.pristine),x_.validated=!1,x_.submited=!1,x_.items.forEach(function(Ome){return Ome.reset()}),xme&&xme(x_.data)}function vme(xme){var Tme={};x_.items.forEach(function(Ome){Ome.name&&Ome.type!=="hidden"&&setVariable(Tme,Ome.name,Ome.resetValue),Ome.extraName&&typeof Ome.extraName=="string"&&setVariable(Tme,Ome.extraName,Ome.resetValue)}),eme(Tme),x_.validated=!1,x_.submited=!1,x_.items.forEach(function(Ome){return Ome.reset()}),xme&&xme(x_.data)}function gme(xme){xme===void 0&&(xme=!0),x_.canAccessSuperData=xme}function yme(xme){x_.inited=xme}function _me(xme){xme===void 0&&(xme=""),x_.persistData=xme}var $me=function(xme){var Tme=x_.data;xme&&xme.length&&(Tme=pick$3(Tme,xme)),localStorage.setItem(x_.persistKey,JSON.stringify(Tme))};function Cme(){var xme=localStorage.getItem(x_.persistKey);xme&&x_.updateData(JSON.parse(xme))}function Sme(){localStorage.removeItem(x_.persistKey)}function Eme(){x_.savedData=x_.data}return{setInited:yme,setValues:eme,setValueByName:$P,trimValues:ame,submit:ume,validate:fme,validateFields:pme,clearErrors:hme,saveRemote:lme,reset:mme,syncOptions:nme,setCanAccessSuperData:gme,deleteValueByName:tme,getLocalPersistData:Cme,setLocalPersistData:$me,clearLocalPersistData:Sme,setPristine:bme,setPersistData:_me,clear:vme,updateSavedData:Eme,setFormItemErrors:sme,getItemsByPath:cme,setRestError:rme,addRestError:ime,clearRestError:ome,beforeDestroy:function(){nme.cancel(),dme.cancel()}}}),FileSaver_min={exports:{}};(function(x_,eme){(function($P,tme){tme()})(commonjsGlobal$1,function(){function $P(lme,sme){return typeof sme>"u"?sme={autoBom:!1}:typeof sme!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),sme={autoBom:!sme}),sme.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(lme.type)?new Blob(["\uFEFF",lme],{type:lme.type}):lme}function tme(lme,sme,cme){var dme=new XMLHttpRequest;dme.open("GET",lme),dme.responseType="blob",dme.onload=function(){ome(dme.response,sme,cme)},dme.onerror=function(){console.error("could not download file")},dme.send()}function ame(lme){var sme=new XMLHttpRequest;sme.open("HEAD",lme,!1);try{sme.send()}catch{}return 200<=sme.status&&299>=sme.status}function nme(lme){try{lme.dispatchEvent(new MouseEvent("click"))}catch{var sme=document.createEvent("MouseEvents");sme.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),lme.dispatchEvent(sme)}}var rme=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal$1=="object"&&commonjsGlobal$1.global===commonjsGlobal$1?commonjsGlobal$1:void 0,ime=rme.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ome=rme.saveAs||(typeof window!="object"||window!==rme?function(){}:"download"in HTMLAnchorElement.prototype&&!ime?function(lme,sme,cme){var dme=rme.URL||rme.webkitURL,ume=document.createElement("a");sme=sme||lme.name||"download",ume.download=sme,ume.rel="noopener",typeof lme=="string"?(ume.href=lme,ume.origin===location.origin?nme(ume):ame(ume.href)?tme(lme,sme,cme):nme(ume,ume.target="_blank")):(ume.href=dme.createObjectURL(lme),setTimeout(function(){dme.revokeObjectURL(ume.href)},4e4),setTimeout(function(){nme(ume)},0))}:"msSaveOrOpenBlob"in navigator?function(lme,sme,cme){if(sme=sme||lme.name||"download",typeof lme!="string")navigator.msSaveOrOpenBlob($P(lme,cme),sme);else if(ame(lme))tme(lme,sme,cme);else{var dme=document.createElement("a");dme.href=lme,dme.target="_blank",setTimeout(function(){nme(dme)})}}:function(lme,sme,cme,dme){if(dme=dme||open("","_blank"),dme&&(dme.document.title=dme.document.body.innerText="downloading..."),typeof lme=="string")return tme(lme,sme,cme);var ume=lme.type==="application/octet-stream",fme=/constructor/i.test(rme.HTMLElement)||rme.safari,pme=/CriOS\/[\d]+/.test(navigator.userAgent);if((pme||ume&&fme||ime)&&typeof FileReader<"u"){var hme=new FileReader;hme.onloadend=function(){var vme=hme.result;vme=pme?vme:vme.replace(/^data:[^;]*;/,"data:attachment/file;"),dme?dme.location.href=vme:location=vme,dme=null},hme.readAsDataURL(lme)}else{var bme=rme.URL||rme.webkitURL,mme=bme.createObjectURL(lme);dme?dme.location=mme:location.href=mme,dme=null,setTimeout(function(){bme.revokeObjectURL(mme)},4e4)}});rme.saveAs=ome.saveAs=ome,x_.exports=ome})})(FileSaver_min);var FileSaver_minExports=FileSaver_min.exports;function baseSortBy$1(x_,eme){var $P=x_.length;for(x_.sort(eme);$P--;)x_[$P]=x_[$P].value;return x_}var _baseSortBy=baseSortBy$1,isSymbol$1=isSymbol_1;function compareAscending$1(x_,eme){if(x_!==eme){var $P=x_!==void 0,tme=x_===null,ame=x_===x_,nme=isSymbol$1(x_),rme=eme!==void 0,ime=eme===null,ome=eme===eme,lme=isSymbol$1(eme);if(!ime&&!lme&&!nme&&x_>eme||nme&&rme&&ome&&!ime&&!lme||tme&&rme&&ome||!$P&&ome||!ame)return 1;if(!tme&&!nme&&!lme&&x_<eme||lme&&$P&&ame&&!tme&&!nme||ime&&$P&&ame||!rme&&ame||!ome)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(x_,eme,$P){for(var tme=-1,ame=x_.criteria,nme=eme.criteria,rme=ame.length,ime=$P.length;++tme<rme;){var ome=compareAscending(ame[tme],nme[tme]);if(ome){if(tme>=ime)return ome;var lme=$P[tme];return ome*(lme=="desc"?-1:1)}}return x_.index-eme.index}var _compareMultiple=compareMultiple$1,arrayMap$7=_arrayMap,baseGet$3=_baseGet,baseIteratee$7=_baseIteratee,baseMap$1=_baseMap,baseSortBy=_baseSortBy,baseUnary$3=_baseUnary,compareMultiple=_compareMultiple,identity$3=identity_1,isArray$7=isArray_1;function baseOrderBy$1(x_,eme,$P){eme.length?eme=arrayMap$7(eme,function(nme){return isArray$7(nme)?function(rme){return baseGet$3(rme,nme.length===1?nme[0]:nme)}:nme}):eme=[identity$3];var tme=-1;eme=arrayMap$7(eme,baseUnary$3(baseIteratee$7));var ame=baseMap$1(x_,function(nme,rme,ime){var ome=arrayMap$7(eme,function(lme){return lme(nme)});return{criteria:ome,index:++tme,value:nme}});return baseSortBy(ame,function(nme,rme){return compareMultiple(nme,rme,$P)})}var _baseOrderBy=baseOrderBy$1,baseFlatten$4=_baseFlatten,baseOrderBy=_baseOrderBy,baseRest$7=_baseRest,isIterateeCall$3=_isIterateeCall,sortBy=baseRest$7(function(x_,eme){if(x_==null)return[];var $P=eme.length;return $P>1&&isIterateeCall$3(x_,eme[0],eme[1])?eme=[]:$P>2&&isIterateeCall$3(eme[0],eme[1],eme[2])&&(eme=[eme[0]]),baseOrderBy(x_,baseFlatten$4(eme,1),[])}),sortBy_1=sortBy;const sortBy$1=getDefaultExportFromCjs(sortBy_1);var PARTITION_INDEX=3;function initChildren(x_,eme,$P,tme,ame,nme){return ame===void 0&&(ame=""),eme+=1,x_.map(function(rme,ime){var ome;rme=isObject$8(rme)?rme:{item:rme};var lme=String(nme?nme(rme,ime):(ome=rme.__id)!==null&&ome!==void 0?ome:guid$1());return{id:String(lme),parentId:String(tme),key:String("".concat($P,"-").concat(eme,"-").concat(ime)),path:"".concat(ame).concat(ime),depth:eme,index:ime,newIndex:ime,pristine:rme,data:rme,defer:!!rme.defer,loaded:!1,loading:!1,rowSpans:{},children:rme&&Array.isArray(rme.children)?initChildren(rme.children,eme,ime,lme,"".concat(ame).concat(ime,"."),nme):[]}})}var SELECTED_STATUS;(function(x_){x_[x_.ALL=0]="ALL",x_[x_.PARTIAL=1]="PARTIAL",x_[x_.NONE=2]="NONE"})(SELECTED_STATUS||(SELECTED_STATUS={}));var Column$2=types.model("Column",{label:types.optional(types.frozen(),void 0),type:types.optional(types.string,"plain"),name:types.maybe(types.string),value:types.frozen(),id:"",groupName:"",toggled:!1,toggable:!0,expandable:!1,checkdisable:!1,searchable:types.maybe(types.frozen()),enableSearch:!0,sortable:!1,filterable:types.optional(types.frozen(),void 0),fixed:"",index:0,rawIndex:0,width:0,minWidth:0,realWidth:0,breakpoint:types.optional(types.frozen(),void 0),pristine:types.optional(types.frozen(),void 0),remark:types.optional(types.frozen(),void 0),className:types.union(types.string,types.frozen())}).views(function(x_){return{get isPrimary(){var eme,$P=getParent(x_,2);return((eme=$P.filteredColumns.find(function(tme){return!tme.type.startsWith("__")}))===null||eme===void 0?void 0:eme.id)===x_.id},get columnKey(){return x_.pristine.uid||x_.name||x_.label||x_.rawIndex}}}).actions(function(x_){return{toggleToggle:function(eme){eme===void 0&&(eme=1),x_.toggled=!x_.toggled;var $P=getParent(x_,2);$P.activeToggaleColumns.length<eme&&(x_.toggled=!0),$P.persistSaveToggledColumns()},setToggled:function(eme){x_.toggled=eme},setEnableSearch:function(eme,$P){if($P===void 0&&($P=!1),x_.enableSearch=eme,!$P){var tme=getParent(x_,2);tme.persistSaveToggledColumns()}},setMinWidth:function(eme){x_.minWidth=eme},setWidth:function(eme){x_.width=eme},setRealWidth:function(eme){x_.realWidth=eme}}}),Row$1=types.model("Row",{storeType:"Row",id:types.identifier,parentId:"",key:types.string,pristine:types.frozen({}),data:types.frozen({}),rowSpans:types.frozen({}),index:types.number,newIndex:types.number,path:"",checkdisable:!1,isHover:!1,children:types.optional(types.array(types.late(function(){return Row$1})),[]),defer:!1,loaded:!1,loading:!1,error:"",depth:types.number,appeared:!0,lazyRender:!1}).views(function(x_){return{get parent(){return getParent(x_,2)},get table(){return getParent(x_,x_.depth*2)},get expandable(){var eme;return!!(x_&&x_.children.length||x_&&x_.defer&&!x_.loaded||(eme=getParent(x_,x_.depth*2))&&eme.footable&&eme.footableColumns.length)},childrenSelected:function(){var eme=x_,$P=eme.children,tme=eme.table,ame=$P.filter(function(nme){return tme.isSelected(nme)}).length;return ame?ame===$P.length?SELECTED_STATUS.ALL:SELECTED_STATUS.PARTIAL:SELECTED_STATUS.NONE},get partial(){var eme=this.childrenSelected()===SELECTED_STATUS.PARTIAL,$P=x_.children.some(function(tme){return tme.partial});return eme||$P},get checked(){return getParent(x_,x_.depth*2).isSelected(x_)},get modified(){return x_.data?Object.keys(x_.data).some(function(eme){return!isEqual$1(x_.data[eme],x_.pristine[eme])}):!1},getDataWithModifiedChilden:function(){var eme=x_.data;return eme.children&&x_.children&&(eme=__assign$3(__assign$3({},eme),{children:x_.children.map(function($P){return $P.getDataWithModifiedChilden()})})),eme},get collapsed(){var eme=getParent(x_,x_.depth*2);if(eme.dragging)return!0;for(var $P=x_;$P&&$P!==eme;){if(!eme.isExpanded($P))return!0;$P=getParent($P,2)}return!1},get expanded(){return!this.collapsed},get moved(){return x_.index!==x_.newIndex},get locals(){var eme=null;x_.children.length&&(eme=x_.children.map(function(ame){return ame.locals}));var $P=getParent(x_,x_.depth*2),tme=getParent(x_,2);return createObject$1(extendObject(getParent(x_,x_.depth*2).data,{index:x_.index,parent:tme.storeType===Row$1.name?tme.data:void 0,selectedItems:$P.selectedRows.map(function(ame){return ame.data}),unSelectedItems:$P.unSelectedRows.map(function(ame){return ame.data})}),eme?__assign$3(__assign$3({},x_.data),{children:eme}):x_.data)},get checkable(){var eme=getParent(x_,x_.depth*2);return eme&&eme.itemCheckableOn?evalExpression(eme.itemCheckableOn,x_.locals):!0},get draggable(){var eme=getParent(x_,x_.depth*2);return eme&&eme.itemDraggableOn?evalExpression(eme.itemDraggableOn,x_.locals):!0},get isCheckAvaiableOnClick(){var eme,$P=getParent(x_,x_.depth*2),tme=$P.getSelectionUpperLimit();if(!Number.isInteger(tme)||tme===1/0)return!0;var ame=((eme=$P==null?void 0:$P.selectedRows)!==null&&eme!==void 0?eme:[]).map(function(rme){return rme.id}),nme=ame.includes(x_.id)?ame.length-1:ame.length+1;return!(nme>tme)},get indentStyle(){return{paddingLeft:"calc(".concat(x_.depth-1," * var(--Table-tree-indent))")}}}}).actions(function(x_){return{toggle:function(eme){var $P=x_.table,tme=x_;$P.toggle(tme,eme),$P.toggleAncestors(tme),$P.toggleDescendants(tme,eme)},toggleExpanded:function(){getParent(x_,x_.depth*2).toggleExpanded(x_)},setExpanded:function(eme){getParent(x_,x_.depth*2).setExpanded(x_,eme)},change:function(eme,$P){x_.data=immutableExtends(x_.data,eme),$P&&(x_.pristine=x_.data)},reset:function(){x_.newIndex=x_.index,x_.data=x_.pristine},setCheckdisable:function(eme){x_.checkdisable=eme},setIsHover:function(eme){x_.isHover=eme},replaceWith:function(eme){Object.keys(eme).forEach(function($P){$P!=="id"&&(x_[$P]=eme[$P])}),Array.isArray(eme.children)&&this.replaceChildren(eme.children)},replaceChildren:function(eme){var $P=eme,tme=$P.concat();x_.children.length>$P.length&&x_.children.splice($P.length,x_.children.length-$P.length);for(var ame=0,nme=x_.children.length;tme.length;){var rme=__assign$3(__assign$3({},tme.shift()),{parentId:x_.id});if(ame<nme)x_.children[ame].replaceWith(rme);else{var ime=Row$1.create(rme);x_.children.push(ime)}ame++}},markAppeared:function(eme){eme&&(x_.appeared=!!eme)},markLoading:function(eme){x_.loading=!!eme},markLoaded:function(eme){x_.loaded=!!eme},setError:function(eme){x_.error=String(eme)},resetDefered:function(){x_.error="",x_.loaded=!1},updateData:function(eme){var $P=eme.children,tme=__rest$14(eme,["children"]);x_.data=__assign$3(__assign$3({},x_.data),tme),Array.isArray($P)&&this.replaceChildren(initChildren($P,x_.depth,x_.index,x_.id,x_.path))}}}),TableStore=iRendererStore.named("TableStore").props({columns:types.array(Column$2),rows:types.array(Row$1),selectedRows:types.array(types.reference(Row$1)),expandedRows:types.array(types.string),primaryField:"id",orderBy:"",orderDir:types.optional(types.union(types.literal("asc"),types.literal("desc"),types.literal("")),"asc"),loading:!1,canAccessSuperData:!1,draggable:!1,dragging:!1,selectable:!1,multiple:!0,footable:types.frozen(),expandConfig:types.frozen(),isNested:!1,columnsTogglable:types.optional(types.union(types.boolean,types.literal("auto")),"auto"),itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,combineNum:0,combineFromIndex:0,formsRef:types.optional(types.array(types.frozen()),[]),maxKeepItemSelectionLength:1/0,keepItemSelectionOnPageChange:!1,maxItemSelectionLength:1/0,exportExcelLoading:!1,searchFormExpanded:!1,lazyRenderAfter:100,tableLayout:"auto",theadHeight:0}).views(function(x_){function eme(){return x_.columns.filter(function($me){return!/^__/.test($me.type)&&isVisible($me.pristine,hasVisibleExpression($me.pristine)?x_.data:{})})}function $P(){return x_.formsRef.map(function($me){return{store:getStoreById($me.id),rowIndex:$me.rowIndex}})}function tme(){return x_.columns.filter(function($me){return $me&&isVisible($me.pristine,hasVisibleExpression($me.pristine)?x_.data:{})&&($me.toggled||!$me.toggable)&&!/^__/.test($me.type)})}function ame(){return x_.columns.filter(function($me){return $me&&isVisible($me.pristine,hasVisibleExpression($me.pristine)?x_.data:{})&&($me.type==="__checkme"?x_.selectable&&!x_.dragging&&!x_.hideCheckToggler&&x_.rows.length:$me.type==="__dragme"?x_.dragging:$me.type==="__expandme"?nme().length&&!x_.dragging:($me.toggled||!$me.toggable)&&(!x_.footable||!$me.breakpoint||!isBreakpoint($me.breakpoint)))})}function nme(){return x_.columns.filter(function($me){return $me.type==="__checkme"||$me.type==="__dragme"||$me.type==="__expandme"?!1:($me.toggled||!$me.toggable)&&x_.footable&&$me.breakpoint&&isBreakpoint($me.breakpoint)})}function rme($me){return!!~x_.selectedRows.indexOf($me)}function ime($me){return x_.expandedRows.includes($me.id)}function ome(){return x_.columnsTogglable==="auto"?x_.columns.filter(function($me){return!/^__/.test($me.type)}).length>5:x_.columnsTogglable}function lme(){return x_.columns.filter(function($me){return isVisible($me.pristine,x_.data)&&$me.toggable!==!1})}function sme(){return lme().filter(function($me){return $me.toggled})}function cme($me,Cme){return $me===void 0&&($me=[]),Cme===void 0&&(Cme=[]),$me=$me&&$me.length?$me:x_.rows,$me.forEach(function(Sme){Sme.children&&Sme.children.length&&cme(Sme.children,Cme);var Eme=difference$2(Sme.data,Sme.pristine),xme=Object.keys(Eme).length;xme&&Cme.push(Sme)}),Cme}function dme(){return cme().length}function ume(){return flattenTree(x_.rows).filter(function($me){return $me.moved})}function fme(){return ume().length}function pme(){return flattenTree(x_.rows).find(function($me){return $me.isHover})}function hme(){return flattenTree(x_.rows).filter(function($me){return!$me.checked})}function bme($me){return createObject$1($me,{items:x_.rows.map(function(Cme){return Cme.data}),selectedItems:x_.selectedRows.map(function(Cme){return Cme.data}),unSelectedItems:hme().map(function(Cme){return Cme.data})})}function mme(){return x_.columns.findIndex(function($me){return!$me.toggled})!==-1}function vme(){var $me=ame(),Cme=$me.length;if(!Cme)return[];for(var Sme=[{label:$me[0].groupName,colSpan:1,rowSpan:1,index:$me[0].index,has:[$me[0]]}],Eme=$me.some(function(Nme){return Nme.groupName}),xme=1;xme<Cme;xme++){var Tme=Sme[Sme.length-1],Ome=$me[xme],Rme=Ome.groupName===Tme.label||resolveVariableAndFilter(Ome.groupName,x_.data)===resolveVariableAndFilter(Tme.label,x_.data);Rme&&(Eme&&Ome.groupName||!Eme)?(Tme.colSpan++,Tme.has.push(Ome)):Sme.push({label:~["__checkme","__expandme"].indexOf(Ome.type)?void 0:Ome.groupName||Ome.label||" ",colSpan:1,rowSpan:1,index:Ome.index,has:[Ome]})}return Sme.length===1&&!Sme[0].label&&Sme.pop(),Sme.map(function(Nme){var Ime=!Nme.label||Nme.has.length===1&&Nme.label===Nme.has[0].label?2:1;return __assign$3(__assign$3({},Nme),{rowSpan:Ime,label:Ime===2?Nme.label||Nme.has[0].label:Nme.label,fixed:Nme.has.every(function(Pme){return Pme.fixed})?Nme.has[0].fixed:void 0,get width(){return Nme.has.reduce(function(Pme,Mme){return Pme+Mme.width},0)}})})}function gme(){var $me=x_.columns.find(function(Cme){return!/^__/.test(Cme.type)&&Cme.toggled});return $me==null?null:$me.index}function yme(){return x_.columns.filter(function($me){return $me.searchable})}function _me(){var $me=x_.keepItemSelectionOnPageChange,Cme=$me&&x_.maxKeepItemSelectionLength!==1/0?x_.maxKeepItemSelectionLength:x_.maxItemSelectionLength;return Cme}return{getSelectionUpperLimit:_me,get columnsKey(){return location.pathname+x_.path},get columnsData(){return eme()},get forms(){return $P()},get searchableColumns(){return yme()},get activedSearchableColumns(){return yme().filter(function($me){return $me.enableSearch})},get exportColumns(){return tme()},get filteredColumns(){return ame()},get footableColumns(){return nme()},get toggableColumns(){return lme()},get activeToggaleColumns(){return sme()},get someChecked(){return!!x_.selectedRows.length},get allChecked(){var $me=_me();return $me!==1/0?x_.isSelectionThresholdReached:x_.checkableRows.every(function(Cme){return x_.selectedRows.includes(Cme)})},isSelected:rme,get allExpanded(){return!!(x_.expandedRows.length===this.expandableRows.length&&this.expandableRows.length)},isExpanded:ime,get toggable(){return ome()},get modified(){return dme()},get modifiedRows(){return cme()},get unSelectedRows(){return hme()},get falttenedRows(){return flattenTree(x_.rows)},get checkableRows(){return this.falttenedRows.filter(function($me){return $me.checkable})},get expandableRows(){return x_.rows.filter(function($me){return $me.expandable})},get moved(){return fme()},get movedRows(){return ume()},get hoverRow(){return pme()},get isSelectionThresholdReached(){var $me,Cme,Sme=(Cme=($me=x_.data)===null||$me===void 0?void 0:$me.selectedItems)===null||Cme===void 0?void 0:Cme.length,Eme=_me();return!x_.data||Eme===1/0?!1:Eme<=Sme},get firstToggledColumnIndex(){return gme()},getData:bme,get columnGroup(){return vme()},getRowById:function($me){return findTree(x_.rows,function(Cme){return Cme.id===$me})},getItemsByName:function($me){return this.forms.filter(function(Cme){return Cme.rowIndex===parseInt($me,10)}).map(function(Cme){return Cme.store})},hasColumnHidden:function(){return mme()},getExpandedRows:function(){var $me=[];return eachTree$1(x_.rows,function(Cme){x_.expandedRows.includes(Cme.id)&&$me.push(Cme)}),$me},get columnWidthReady(){return ame().every(function($me){return $me.realWidth})},getStickyStyles:function($me,Cme,Sme){Sme===void 0&&(Sme=1);var Eme="",xme={},Tme=["__checkme","__dragme","__expandme"];if($me.fixed==="left"||Tme.includes($me.type)){Eme="is-sticky is-sticky-left";var Ome=Cme.indexOf($me)-1;Cme.slice(Ome+(Sme-1)+2).every(function(Mme){return!(Mme&&Mme.fixed==="left"||Tme.includes(Mme.type))})&&(Eme+=" is-sticky-last-left");for(var Rme=[];Ome>=0;){var Nme=Cme[Ome];(Nme&&Nme.fixed==="left"||Tme.includes(Nme.type))&&Rme.push("var(--Table-column-".concat(Nme.index,"-width)")),Ome--}xme.left=Rme.length?Rme.length===1?Rme[0]:"calc(".concat(Rme.join(" + "),")"):0}else if($me.fixed==="right"){Eme="is-sticky is-sticky-right";var Ime=[],Ome=Cme.indexOf($me)+1;Cme.slice(0,Ome-1).every(function(kme){return kme.fixed!=="right"})&&(Eme+=" is-sticky-first-right");for(var Pme=Cme.length;Ome<Pme;){var Nme=Cme[Ome];Nme&&Nme.fixed==="right"&&Ime.push("var(--Table-column-".concat(Nme.index,"-width)")),Ome++}xme.right=Ime.length?Ime.length===1?Ime[0]:"calc(".concat(Ime.join(" + "),")"):0}return[xme,Eme]},get items(){return x_.rows.concat()},buildStyles:function($me){return $me=__assign$3(__assign$3({},$me),{"--Table-thead-height":x_.theadHeight+"px"}),ame().forEach(function(Cme){$me["--Table-column-".concat(Cme.index,"-width")]=Cme.realWidth+"px"}),$me}}}).actions(function(x_){var eme=null;function $P(Lme){eme=Lme}function tme(){return eme}function ame(Lme,zme){var Ume;if(Lme.primaryField!==void 0&&(x_.primaryField=Lme.primaryField),Lme.selectable!==void 0&&(x_.selectable=Lme.selectable),Lme.columnsTogglable!==void 0&&(x_.columnsTogglable=Lme.columnsTogglable),Lme.draggable!==void 0&&(x_.draggable=Lme.draggable),(typeof Lme.orderBy=="string"||typeof Lme.orderDir=="string")&&Tme((Ume=Lme.orderBy)!==null&&Ume!==void 0?Ume:x_.orderBy,Lme.orderDir!==void 0?Lme.orderDir==="desc"?"desc":"asc":x_.orderDir),Lme.multiple!==void 0&&(x_.multiple=Lme.multiple),Lme.footable!==void 0&&(x_.footable=Lme.footable),Lme.expandConfig!==void 0&&(x_.expandConfig=Lme.expandConfig),Lme.itemCheckableOn!==void 0&&(x_.itemCheckableOn=Lme.itemCheckableOn),Lme.itemDraggableOn!==void 0&&(x_.itemDraggableOn=Lme.itemDraggableOn),Lme.hideCheckToggler!==void 0&&(x_.hideCheckToggler=!!Lme.hideCheckToggler),Lme.combineNum!==void 0&&(x_.combineNum=parseInt(Lme.combineNum,10)||0),Lme.combineFromIndex!==void 0&&(x_.combineFromIndex=parseInt(Lme.combineFromIndex,10)||0),Lme.maxKeepItemSelectionLength!==void 0&&(x_.maxKeepItemSelectionLength=Lme.maxKeepItemSelectionLength),Lme.keepItemSelectionOnPageChange!==void 0&&(x_.keepItemSelectionOnPageChange=Lme.keepItemSelectionOnPageChange),Lme.maxItemSelectionLength!==void 0&&(x_.maxItemSelectionLength=Lme.maxItemSelectionLength),Lme.exportExcelLoading!==void 0&&(x_.exportExcelLoading=Lme.exportExcelLoading),Lme.loading!==void 0&&(x_.loading=Lme.loading),Lme.canAccessSuperData!==void 0&&(x_.canAccessSuperData=!!Lme.canAccessSuperData),typeof Lme.lazyRenderAfter=="number"&&(x_.lazyRenderAfter=Lme.lazyRenderAfter),typeof Lme.tableLayout=="string"&&(x_.tableLayout=Lme.tableLayout),Lme.columns&&Array.isArray(Lme.columns)){var Gme=Lme.columns.map(function(Kme){return zme!=null&&zme.resolveDefinitions&&typeof(Kme==null?void 0:Kme.$ref)=="string"&&Kme.$ref?__assign$3(__assign$3({},zme.resolveDefinitions(Kme.$ref)),Kme):Kme}).filter(function(Kme){return Kme}),Jme=x_.columnsKey,Yme=localStorage.getItem(Jme),Qme=null;if(Yme){try{Qme=JSON.parse(Yme)}catch{}var Xme=Qme==null?void 0:Qme.columnOrder;Array.isArray(Xme)&&Xme.length!=0&&(Gme=sortBy$1(Gme,function(Kme,Zme){var nbe=Kme.uid||Kme.name||Kme.label||Zme,lbe=Xme.indexOf(nbe);return lbe===-1?Number.MAX_SAFE_INTEGER:lbe}))}nme(Gme)}}function nme(Lme){if(Lme&&Array.isArray(Lme)){Lme=Lme.filter(function(Gme){return Gme}).concat(),Lme.length||Lme.push({type:"text",label:"空"}),Lme.unshift({type:"__expandme",toggable:!1,className:"Table-expandCell"}),Lme.unshift({type:"__checkme",fixed:"left",toggable:!1,className:"Table-checkCell"}),Lme.unshift({type:"__dragme",toggable:!1,className:"Table-dragCell"});var zme=x_.columns.concat(),Ume=[];Lme=Lme.map(function(Gme,Jme){var Yme=Gme.id?zme.find(function(Xme){return Xme.pristine.id===Gme.id}):zme[Jme],Qme=(Yme==null?void 0:Yme.id)||guid$1();return Ume.includes(Qme)&&(Qme=guid$1()),Ume.push(Qme),__assign$3(__assign$3({},Gme),{id:Qme,index:Jme,width:(Yme==null?void 0:Yme.width)||0,minWidth:(Yme==null?void 0:Yme.minWidth)||0,realWidth:(Yme==null?void 0:Yme.realWidth)||0,rawIndex:Jme-PARTITION_INDEX,type:Gme.type||"plain",pristine:Gme.pristine||Gme,toggled:Gme.toggled!==!1,breakpoint:Gme.breakpoint,isPrimary:Jme===PARTITION_INDEX})}),x_.columns.replace(Lme)}}function rme(){var Lme=eme;if(Lme){var zme=Lme.parentElement.offsetWidth,Ume=Lme.querySelector(":scope>thead"),Gme=null,Jme=[],Yme=x_.tableLayout==="fixed",Qme=x_.columns.some(function(lbe){return lbe.pristine.width}),Xme={};if(Yme&&(Gme=Lme.querySelector(":scope>tbody"),Jme.push('<table style="table-layout:auto!important;width:0!important;min-width:0!important;" class="'.concat(Lme.className,'">').concat(Ume.outerHTML,"</table>"))),(Qme||Yme)&&Jme.push('<table style="table-layout:auto!important;min-width:'.concat(zme,"px!important;width:").concat(zme,'px!important;" class="').concat(Lme.className.replace("is-layout-fixed",""),'">').concat(Ume.outerHTML).concat(Gme?"<tbody>".concat(Gme.innerHTML,"</tbody>"):"","</table>")),!!Jme.length){var Kme=document.createElement("div");Kme.className="amis-scope",Kme.style.cssText+="visibility: hidden!important;",Kme.innerHTML=Jme.join("");var Zme=[],nbe=[];Yme&&(Zme=[].slice.call(Kme.querySelectorAll(":scope>table:first-child>thead>tr>th[data-index]"))),(Qme||Yme)&&(nbe=[].slice.call(Kme.querySelectorAll(":scope>table:last-child>thead>tr>th[data-index]"))),Zme.forEach(function(lbe){lbe.style.cssText+="width: 0"}),nbe.forEach(function(lbe){var ibe=parseInt(lbe.getAttribute("data-index"),10),abe=x_.columns[ibe];lbe.style.cssText+="".concat(typeof abe.pristine.width=="number"?"width: ".concat(abe.pristine.width,"px;"):abe.pristine.width?"width: ".concat(abe.pristine.width,";min-width: ").concat(abe.pristine.width,";"):"")}),document.body.appendChild(Kme),Zme.forEach(function(lbe){var ibe=parseInt(lbe.getAttribute("data-index"),10);Xme[ibe]=lbe.clientWidth;var abe=x_.columns[ibe];abe.setMinWidth(Xme[ibe])}),nbe.forEach(function(lbe){var ibe=parseInt(lbe.getAttribute("data-index"),10),abe=x_.columns[ibe];(abe.pristine.width||Yme)&&abe.setWidth(Math.max(typeof abe.pristine.width=="number"?abe.pristine.width:lbe.clientWidth,Xme[ibe]||0))}),document.body.removeChild(Kme)}}}function ime(){var Lme=eme;if(Lme){var zme=Lme.querySelector(":scope>thead"),Ume=[].slice.call(zme.querySelectorAll("tr>th[data-index]"));x_.theadHeight=zme.offsetHeight,Ume.forEach(function(Gme){var Jme=parseInt(Gme.getAttribute("data-index"),10),Yme=x_.columns[Jme];Yme.setRealWidth(Gme.offsetWidth)})}}function ome(Lme,zme){if(!zme.length||!Lme.length)return Lme;var Ume=zme.shift(),Gme=0,Jme=Lme[Gme];Jme.rowSpans[Ume]=1;for(var Yme=resolveVariable(Ume,Jme.data),Qme=1,Xme=Lme.length;Qme<Xme;Qme++){var Kme=Lme[Qme];isEqual$1(resolveVariable(Ume,Kme.data),Yme)?(Jme.rowSpans[Ume]+=1,Kme.rowSpans[Ume]=0):(Jme.rowSpans[Ume]>1&&ome(Lme.slice(Gme,Qme),zme.concat()),Gme=Qme,Jme=Kme,Jme.rowSpans[Ume]=1,Yme=resolveVariable(Ume,Jme.data))}return Jme.rowSpans[Ume]>1&&zme.length&&ome(Lme.slice(Gme,Lme.length),zme.concat()),Lme}function lme(Lme,zme,Ume,Gme){if(Gme===void 0&&(Gme=0),!zme.length||!Ume||!Lme.length)return Lme;Gme=Gme||(Lme.some(function(Kme){return Array.isArray(Kme.children)&&Kme.children.length})?1:0);for(var Jme=[],Yme=0;Yme<zme.length&&Jme.length!==Ume;Yme++){var Qme=zme[Yme];if(Qme.type.substring(0,2)!=="__"){var Xme=Qme.name;if(!Xme)break;Gme>0?Gme--:Jme.push(Xme)}}return ome(Lme,Jme)}function sme(Lme,zme,Ume){x_.selectedRows.clear(),Lme=Array.isArray(Lme)?Lme:[];var Gme=Lme.map(function(Kme,Zme){var nbe;isObject$8(Kme)||(Kme={item:Kme});var lbe=String(zme?zme(Kme,Zme):(nbe=Kme.__id)!==null&&nbe!==void 0?nbe:guid$1());return{id:lbe,key:String("".concat(Zme,"-1-").concat(Zme)),depth:1,index:Zme,newIndex:Zme,pristine:Kme,path:"".concat(Zme),data:Kme,rowSpans:{},defer:!!Kme.defer,loaded:!1,loading:!1,children:Kme&&Array.isArray(Kme.children)?initChildren(Kme.children,1,Zme,lbe,"".concat(Zme,"."),zme):[]}});x_.combineNum&&(Gme=lme(Gme,x_.columns,x_.combineNum,x_.combineFromIndex));var Jme=dme(Gme,Ume);if(x_.isNested=x_.rows.some(function(Kme){return Kme.children.length||Kme.defer&&!Kme.loaded}),!Jme){if(x_.lazyRenderAfter&&x_.falttenedRows.length>x_.lazyRenderAfter)for(var Yme=x_.lazyRenderAfter,Qme=x_.falttenedRows.length;Yme<Qme;Yme++)x_.falttenedRows[Yme].appeared=!1,x_.falttenedRows[Yme].lazyRender=!0;var Xme=x_.footable&&x_.footable.expand;Xme==="first"||x_.expandConfig&&x_.expandConfig.expand==="first"?x_.rows.length&&x_.expandedRows.push(x_.rows[0].id):(Xme==="all"&&!x_.footable.accordion||x_.expandConfig&&x_.expandConfig.expand==="all"&&!x_.expandConfig.accordion)&&x_.expandedRows.replace(cme(x_.rows))}x_.dragging=!1}function cme(Lme){return Lme.reduce(function(zme,Ume){return zme.push(Ume.id),Ume.children&&Ume.children.length&&(zme=zme.concat(cme(Ume.children))),zme},[])}function dme(Lme,zme){if(zme===!1)return x_.rows.replace(Lme.map(function(Zme){return Row$1.create(Zme)})),!1;if(zme==="match"){var Ume=x_.falttenedRows,Gme=!0;return x_.rows.replace(Lme.map(function(Zme){var nbe=Ume.find(function(lbe){return lbe.id===Zme.id});return nbe?(nbe.replaceWith(Zme),nbe):(Gme=!1,Row$1.create(Zme))})),Gme}var Jme=Lme.concat();x_.rows.length>Lme.length&&x_.rows.splice(Lme.length,x_.rows.length-Lme.length);for(var Yme=0,Qme=x_.rows.length;Jme.length;){var Xme=Jme.shift();if(Yme<Qme)x_.rows[Yme].replaceWith(Xme);else{var Kme=Row$1.create(Xme);x_.rows.push(Kme)}Yme++}return!1}function ume(Lme,zme){x_.selectedRows.clear(),Lme.forEach(function(Ume){var Gme=findTree(x_.rows,function(Jme){return Jme.pristine===Ume});Gme||(Gme=findTree(x_.rows,function(Jme){var Yme=Ume[zme||"value"],Qme=Jme.pristine[zme||"value"];return Yme===Qme})),Gme||(Gme=findTree(x_.rows,function(Jme){var Yme=Ume[zme||"value"],Qme=Jme.pristine[zme||"value"];return Yme==Qme})),Gme&&x_.selectedRows.push(Gme)}),_me()}function fme(){var Lme,zme=x_.getSelectionUpperLimit(),Ume=(Lme=x_.data)===null||Lme===void 0?void 0:Lme.selectedItems;if(zme!==1/0&&Ume&&zme>=Ume.length){var Gme=x_.checkableRows.filter(function(Yme){return!Yme.checked}),Jme=Gme.filter(function(Yme,Qme){return Qme<zme-Ume.length});return __spreadArray(__spreadArray([],__read$3(x_.selectedRows),!1),__read$3(Jme),!1)}else return __spreadArray(__spreadArray([],__read$3(x_.selectedRows.filter(function(Yme){return!Yme.checkable})),!1),__read$3(x_.checkableRows),!1)}function pme(){x_.allChecked?x_.selectedRows.replace(x_.selectedRows.filter(function(Lme){return!Lme.checkable})):x_.selectedRows.replace(fme())}var hme=null;function bme(Lme,zme){if(Lme.checkable){hme=Lme;var Ume=x_.selectedRows.indexOf(Lme);x_.multiple?~Ume?!zme&&x_.selectedRows.splice(Ume,1):zme&&x_.selectedRows.push(Lme):~Ume?!zme&&x_.selectedRows.splice(Ume,1):zme&&x_.selectedRows.replace([Lme])}}function mme(Lme){var zme=Lme.parent;if(zme.depth){var Ume=zme.childrenSelected();bme(zme,Ume===SELECTED_STATUS.ALL),mme(zme)}}function vme(Lme,zme){var Ume=Lme.children;Ume!=null&&Ume.length&&Ume.forEach(function(Gme){bme(Gme,zme),vme(Gme,zme)})}function gme(Lme){var zme,Ume;if(!hme||Lme===hme||!x_.multiple)return[Lme];var Gme=[],Jme=x_.maxKeepItemSelectionLength,Yme=x_.checkableRows,Qme=Yme.findIndex(function(obe){return obe===hme}),Xme=Yme.findIndex(function(obe){return Lme===obe}),Kme=Qme>Xme?Xme:Qme+1,Zme=Qme>Xme?Qme:Xme+1,nbe=Yme.slice(Kme,Zme);try{for(var lbe=__values$1(nbe),ibe=lbe.next();!ibe.done;ibe=lbe.next()){var abe=ibe.value;hme.checked&&Jme&&x_.selectedRows.length+Gme.length>=Jme||Gme.push(abe)}}catch(obe){zme={error:obe}}finally{try{ibe&&!ibe.done&&(Ume=lbe.return)&&Ume.call(lbe)}finally{if(zme)throw zme.error}}return Gme}function yme(Lme,zme){var Ume=gme(Lme);if((Ume==null?void 0:Ume.length)===1){bme(Lme,zme);return}Ume.forEach(function(Gme){var Jme=x_.selectedRows.indexOf(Gme);Jme===-1&&zme?x_.selectedRows.push(Gme):~Jme&&!zme&&x_.selectedRows.splice(Jme,1)}),hme=Lme}function _me(){if(x_.data){var Lme=x_.getSelectionUpperLimit(),zme=x_.data.selectedItems;x_.selectedRows.map(function(Ume){return Ume.setCheckdisable(!1)}),Lme!==1/0&&Lme<=zme.length?x_.unSelectedRows.map(function(Ume){return!Ume.checked&&Ume.setCheckdisable(!0)}):x_.unSelectedRows.map(function(Ume){return Ume.checkdisable&&Ume.setCheckdisable(!1)})}}function $me(){x_.selectedRows.clear()}function Cme(){x_.allExpanded?x_.expandedRows.clear():x_.expandedRows.replace(x_.rows.filter(function(Lme){return Lme.expandable}).map(function(Lme){return Lme.id}))}function Sme(Lme){var zme=x_.expandedRows.indexOf(Lme.id);if(~zme)x_.expandedRows.splice(zme,1);else if(x_.footable&&x_.footable.accordion)x_.expandedRows.replace([Lme.id]);else if(x_.expandConfig&&x_.expandConfig.accordion){var Ume=x_.getExpandedRows().filter(function(Gme){return Gme.depth!==Lme.depth});Ume.push(Lme),x_.expandedRows.replace(Ume.map(function(Gme){return Gme.id}))}else x_.expandedRows.push(Lme.id)}function Eme(Lme,zme){var Ume=typeof Lme=="string"?Lme:Lme.id,Gme=x_.expandedRows.indexOf(Ume);zme?~Gme||x_.expandedRows.push(Ume):~Gme&&x_.expandedRows.splice(Gme,1)}function xme(Lme){var zme=x_.getExpandedRows().filter(function(Ume){return Ume.depth!==Lme});x_.expandedRows.replace(zme.map(function(Ume){return Ume.id}))}function Tme(Lme,zme){x_.orderBy=Lme,x_.orderDir=Lme?zme:""}function Ome(Lme,zme){Tme(Lme,zme);var Ume=/desc/i.test(x_.orderDir)?-1:1;x_.rows.replace(sortArray(x_.rows.concat(),x_.orderBy,Ume,function(Gme,Jme){return Gme.data[Jme]}))}function Rme(){x_.rows.forEach(function(zme){return zme.reset()});var Lme=x_.rows.concat();eachTree$1(Lme,function(zme){if(zme.children){var Ume=zme.children.concat().sort(function(Gme,Jme){return Gme.index-Jme.index});Ume.forEach(function(Gme){return Gme.reset()}),zme.children.replace(Ume)}}),Lme.forEach(function(zme){return zme.reset()}),Lme=Lme.sort(function(zme,Ume){return zme.index-Ume.index}),x_.rows.replace(Lme),x_.dragging=!1}function Nme(){x_.dragging=!x_.dragging}function Ime(){x_.dragging=!0}function Pme(){x_.dragging=!1}function Mme(Lme,zme,Ume){if(Ume=Ume||x_.rows[Lme],Ume.parentId){var Gme=x_.getRowById(Ume.parentId),Jme=Gme.children.indexOf(Ume)-Lme;zme+=Jme,Lme+=Jme;var Yme=Gme.children.concat();Yme.splice(Lme,1),Yme.splice(zme,0,Ume),Yme.forEach(function(Xme,Kme){return Xme.newIndex=Kme}),Gme.children.replace(Yme);return}var Qme=x_.rows.concat();Qme.splice(Lme,1),Qme.splice(zme,0,Ume),Qme.forEach(function(Xme,Kme){return Xme.newIndex=Kme}),x_.rows.replace(Qme)}function kme(){var Lme=x_.columnsKey,zme=x_.activeToggaleColumns,Ume=x_.activedSearchableColumns;localStorage.setItem(Lme,JSON.stringify({unToggledColumns:x_.columnsData.filter(function(Gme){return!zme.includes(Gme)}).map(function(Gme){return Gme.columnKey}),columnOrder:x_.columnsData.map(function(Gme){return Gme.columnKey}),disabledSearchableColumn:x_.columnsData.filter(function(Gme){return Gme.searchable&&!Ume.includes(Gme)}).map(function(Gme){return Gme.columnKey})}))}function Bme(Lme,zme){x_.formsRef.push({id:Lme.id,rowIndex:zme})}function Dme(Lme){Lme===void 0&&(Lme=1),x_.activeToggaleColumns.length?x_.activeToggaleColumns.length===x_.toggableColumns.length?(x_.toggableColumns.map(function(zme){return zme.setToggled(!1)}),jme(Lme)):x_.toggableColumns.map(function(zme){return zme.setToggled(!0)}):x_.toggableColumns.map(function(zme){return zme.setToggled(!0)}),kme()}function jme(Lme){var zme;if(Lme===void 0&&(Lme=1),x_.activeToggaleColumns.length<Lme)for(var Ume=0;Ume<Lme;Ume++)(zme=x_.toggableColumns[Ume])===null||zme===void 0||zme.setToggled(!0)}function Vme(Lme){x_.searchFormExpanded=!!Lme}function Wme(){x_.searchFormExpanded=!x_.searchFormExpanded}return{setTable:$P,getTable:tme,update:ame,updateColumns:nme,initTableWidth:rme,syncTableWidth:ime,initRows:sme,updateSelected:ume,toggleAll:pme,getSelectedRows:fme,toggle:bme,toggleAncestors:mme,toggleDescendants:vme,toggleShift:yme,getToggleShiftRows:gme,toggleExpandAll:Cme,toggleExpanded:Sme,setExpanded:Eme,collapseAllAtDepth:xme,clear:$me,setOrderByInfo:Tme,changeOrder:Ome,reset:Rme,toggleDragging:Nme,startDragging:Ime,stopDragging:Pme,exchange:Mme,addForm:Bme,toggleAllColumns:Dme,toggleColumnsAtLeast:jme,persistSaveToggledColumns:kme,setSearchFormExpanded:Vme,toggleSearchFormExpanded:Wme,afterCreate:function(){setTimeout(function(){if(isAlive(x_)){var Lme=x_.columnsKey,zme=localStorage.getItem(Lme);if(zme){var Ume=JSON.parse(zme),Gme=Array.isArray(Ume.unToggledColumns)?Ume.unToggledColumns:[],Jme=Array.isArray(Ume.disabledSearchableColumn)?Ume.disabledSearchableColumn:[];x_.toggableColumns.forEach(function(Yme){return Yme.setToggled(!Gme.includes(Yme.columnKey))}),x_.searchableColumns.forEach(function(Yme){Yme.setEnableSearch(!Jme.includes(Yme.columnKey),!0)})}}},200)}}}),ServerError$1=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return ame.type="ServerError",ame.response=tme,ame}return eme}(Error),CRUDStore=ServiceStore.named("CRUDStore").props({pristineQuery:types.optional(types.frozen(),{}),query:types.optional(types.frozen(),{}),prevPage:1,page:1,perPage:10,total:0,mode:"normal",hasNext:!1,selectedAction:types.frozen(),columns:types.frozen(),items:types.optional(types.array(types.frozen()),[]),selectedItems:types.optional(types.array(types.frozen()),[]),unSelectedItems:types.optional(types.array(types.frozen()),[]),filterTogggable:!1,filterVisible:!0,hasInnerModalOpen:!1}).views(function(x_){return{get lastPage(){return Math.max(Math.ceil(x_.total/(x_.perPage<1?10:x_.perPage)),1)},get filterData(){return createObject$1(x_.data,__assign$3({},x_.query))},get toolbarData(){return createObject$1(createObject$1(x_.data,{items:x_.items.concat(),selectedItems:x_.selectedItems.concat(),unSelectedItems:x_.unSelectedItems.concat()}),__assign$3({},x_.query))},get mergedData(){return extendObject(x_.data,__assign$3(__assign$3(__assign$3({},x_.query),x_.data),{selectedItems:x_.selectedItems,unSelectedItems:x_.unSelectedItems}))},get hasModalOpened(){return x_.dialogOpen||x_.drawerOpen||x_.hasInnerModalOpen},get selectedItemsAsArray(){return x_.selectedItems.concat()},fetchCtxOf:function(eme,$P){var tme;return createObject$1(eme,__assign$3(__assign$3(__assign$3({},x_.query),(tme={},tme[$P.pageField||"page"]=x_.page,tme[$P.perPageField||"perPage"]=x_.perPage,tme)),eme))}}}).actions(function(x_){var eme=null;function $P(){x_.pristineQuery=x_.query}function tme(yme,_me,$me,Cme,Sme){$me===void 0&&($me="page"),Cme===void 0&&(Cme="perPage"),Sme===void 0&&(Sme=!1);var Eme=x_.query,xme=__assign$3(Sme?{}:__assign$3({},Eme),yme),Tme=[[0,""],[!1,""],[!1,"0"],[!1,0],[!0,1],[!0,"1"]];isObjectShallowModified$1(Eme,xme,function(Ome,Rme){return Tme.some(function(Nme){return Nme.includes(Ome)&&Nme.includes(Rme)})?Ome!==Rme:Ome!=Rme})&&(xme[$me||"page"]&&(x_.page=parseInt(xme[$me||"page"],10)),xme[Cme||"perPage"]&&(x_.perPage=parseInt(xme[Cme||"perPage"],10)),x_.query=xme,_me&&setTimeout(_me.bind(null,"?".concat(qsstringify(xme))),4))}var ame=flow(function(_me,$me,Cme){var Sme,Eme,Vme,Yme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe,ube,mbe,pbe,_be,Sbe;return Cme===void 0&&(Cme={}),__generator(this,function(vbe){switch(vbe.label){case 0:return vbe.trys.push([0,2,,3]),Sme=Cme.source?resolveVariableAndFilter(Cme.source,createObject$1(x_.mergedData,{items:x_.data.itemsRaw,rows:x_.data.itemsRaw}),"| raw"):x_.items.concat(),!Cme.forceReload&&Cme.loadDataOnce&&(Sme!=null&&Sme.length)?(Eme=Cme.matchFunc,Vme=Sme,Vme=applyFilters(Vme,{query:x_.query,columns:Cme.columns,matchFunc:Eme,filterOnAllColumns:Cme.filterOnAllColumns}),x_.query.orderBy&&(Yme=/desc/i.test(x_.query.orderDir)?-1:1,Vme=sortArray(Vme,x_.query.orderBy,Yme)),xme=__assign$3(__assign$3({},x_.data),{total:Vme.length,items:Vme.slice((x_.page-1)*x_.perPage,x_.page*x_.perPage)}),x_.total=parseInt((lbe=xme.total)!==null&&lbe!==void 0?lbe:xme.count,10)||0,x_.reInitData(xme),[2]):(eme&&(eme(),eme=null,x_.fetching=!1),Cme.silent||x_.markFetching(!0),Tme=createObject$1(x_.data,__assign$3(__assign$3(__assign$3({},x_.query),$me),(Kme={},Kme[Cme.pageField||"page"]=x_.page,Kme[Cme.perPageField||"perPage"]=x_.perPage,Kme))),Cme.loadDataOnce&&delete Tme[Cme.perPageField||"perPage"],[4,getEnv(x_).fetcher(_me,Tme,__assign$3(__assign$3({},Cme),{cancelExecutor:function(kbe){return eme=kbe}}))]);case 1:if(Ome=vbe.sent(),eme=null,!Ome.ok)x_.updateMessage((hbe=(obe=(abe=(ibe=_me==null?void 0:_me.messages)===null||ibe===void 0?void 0:ibe.failed)!==null&&abe!==void 0?abe:Ome.msg)!==null&&obe!==void 0?obe:Cme.errorMessage)!==null&&hbe!==void 0?hbe:x_.__("CRUD.fetchFailed"),!0),!(_me!=null&&_me.silent)&&getEnv(x_).notify("error",Ome.msg,Ome.msgTimeout!==void 0?{closeButton:!0,timeout:Ome.msgTimeout}:void 0);else{if(!Ome.data)throw new Error(x_.__("CRUD.invalidData"));if(x_.updatedAt=Date.now(),Rme=normalizeApiResponseData(Ome.data),Nme=Rme.total,Ime=Rme.count,Pme=Rme.page,Mme=Rme.hasNext,kme=Rme.items,Bme=Rme.rows,Dme=Rme.columns,jme=__rest$14(Rme,["total","count","page","hasNext","items","rows","columns"]),Vme=void 0,Cme.source?Vme=resolveVariableAndFilter(Cme.source,createObject$1(x_.filterData,Rme),"| raw"):Vme=Rme.items||Rme.rows,Array.isArray(Vme))Vme==null&&(Vme=[]);else try{for(Wme=__values$1(Object.keys(Rme)),Lme=Wme.next();!Lme.done;Lme=Wme.next())if(zme=Lme.value,Rme.hasOwnProperty(zme)&&Array.isArray(Rme[zme])){Vme=Rme[zme];break}}catch(kbe){Zme={error:kbe}}finally{try{Lme&&!Lme.done&&(nbe=Wme.return)&&nbe.call(Wme)}finally{if(Zme)throw Zme.error}}if(Array.isArray(Vme))Vme.map(function(kbe){return typeof kbe=="string"?{text:kbe}:kbe});else throw new Error(x_.__("CRUD.invalidArray"));Ume=[],Cme.loadDataMode&&Array.isArray(x_.data.items)?Ume=x_.data.items.concat(Vme):Ume=Vme,Gme=__assign$3(__assign$3(__assign$3({},_me.replaceData?{}:x_.pristine),{items:Ume,count:Ime,total:Nme}),jme),Cme.loadDataOnce&&(Gme.itemsRaw=kme||Bme||Ume.concat(),Jme=applyFilters(Ume,{query:x_.query,columns:Cme.columns,filterOnAllColumns:!1,matchFunc:Cme.matchFunc}),x_.query.orderBy&&(Yme=/desc/i.test(x_.query.orderDir)?-1:1,Jme=sortArray(Jme,x_.query.orderBy,Yme)),Gme.items=Jme.slice((x_.page-1)*x_.perPage,x_.page*x_.perPage),Gme.count=Gme.total=Jme.length),Array.isArray(Dme)?x_.columns=Dme.concat():jme.isTable2&&(x_.columns=Cme.columns),x_.items.replace(Ume),x_.reInitData(Gme,!!_me.replaceData,_me.concatDataFields),Cme.syncResponse2Query!==!1&&tme(pick$3(jme,Object.keys(x_.query)),void 0,Cme.pageField||"page",Cme.perPageField||"perPage"),x_.total=parseInt((ube=Gme.total)!==null&&ube!==void 0?ube:Gme.count,10)||0,typeof Pme<"u"&&(x_.page=parseInt(Pme,10)),typeof Mme<"u"&&(x_.mode="simple",x_.total=0,x_.hasNext=!!Mme),x_.updateMessage((Sbe=(_be=(pbe=(mbe=_me.messages)===null||mbe===void 0?void 0:mbe.success)!==null&&pbe!==void 0?pbe:Ome.msg)!==null&&_be!==void 0?_be:Cme.successMessage)!==null&&Sbe!==void 0?Sbe:Ome.defaultMsg),Cme&&Cme.successMessage&&getEnv(x_).notify("success",x_.msg)}return x_.markFetching(!1),[2,Ome];case 2:return Qme=vbe.sent(),Xme=getEnv(x_),!isAlive(x_)||x_.disposed?[2]:(x_.markFetching(!1),Xme.isCancel(Qme)?[2]:(console.error(Qme),!(_me!=null&&_me.silent)&&Xme.notify("error",Qme.message),[2]));case 3:return[2]}})});function nme(yme,_me){var $me=typeof yme!="number"?parseInt(yme,10):yme;x_.page=isNaN($me)?1:$me,_me&&rme(_me)}function rme(yme){var _me=typeof yme!="number"?parseInt(yme,10):yme;x_.perPage=isNaN(_me)?10:_me}function ime(yme){x_.selectedAction=yme}var ome=flow(function(_me,$me,Cme){var Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme;return Cme===void 0&&(Cme={}),__generator(this,function(kme){switch(kme.label){case 0:return kme.trys.push([0,2,,3]),Cme=__assign$3({method:"post"},Cme),x_.markSaving(!0),[4,getEnv(x_).fetcher(_me,$me,Cme)];case 1:if(Sme=kme.sent(),x_.markSaving(!1),(!isEmpty$2(Sme.data)||Sme.ok)&&(x_.updateData(normalizeApiResponseData(Sme.data),{__saved:Date.now()},!!_me&&_me.replaceData,_me==null?void 0:_me.concatDataFields),x_.updatedAt=Date.now()),Sme.ok)x_.updateMessage((Mme=(Pme=(Ime=(Nme=_me==null?void 0:_me.messages)===null||Nme===void 0?void 0:Nme.success)!==null&&Ime!==void 0?Ime:Sme.msg)!==null&&Pme!==void 0?Pme:Cme.successMessage)!==null&&Mme!==void 0?Mme:Sme.defaultMsg),x_.msg&&getEnv(x_).notify("success",x_.msg,Sme.msgTimeout!==void 0?{closeButton:!0,timeout:Sme.msgTimeout}:void 0);else throw x_.updateMessage((Rme=(Ome=(Tme=(xme=_me==null?void 0:_me.messages)===null||xme===void 0?void 0:xme.failed)!==null&&Tme!==void 0?Tme:Sme.msg)!==null&&Ome!==void 0?Ome:Cme.errorMessage)!==null&&Rme!==void 0?Rme:x_.__("saveFailed"),!0),!(_me!=null&&_me.silent)&&getEnv(x_).notify("error",x_.msg,Sme.msgTimeout!==void 0?{closeButton:!0,timeout:Sme.msgTimeout}:void 0),new ServerError$1(x_.msg,Sme);return[2,Sme.data||{}];case 2:if(Eme=kme.sent(),!isAlive(x_)||x_.disposed)return[2];if(x_.markSaving(!1),getEnv(x_).isCancel(Eme))return[2];throw!(_me!=null&&_me.silent)&&Eme.type!=="ServerError"&&getEnv(x_).notify("error",Eme.message),Eme;case 3:return[2]}})}),lme=function(yme,_me){x_.filterTogggable=yme,_me!==void 0&&(x_.filterVisible=_me)},sme=function(yme){x_.filterVisible=yme},cme=function(yme){x_.selectedItems.replace(yme)},dme=function(yme){x_.unSelectedItems.replace(yme)},ume=function(yme,_me){x_.selectedItems.replace(yme),x_.unSelectedItems.replace(_me),x_.reInitData({selectedItems:yme,unSelectedItems:_me})},fme=function(yme){x_.hasInnerModalOpen=yme},pme=function(yme,_me,$me){var Cme,Sme=resolveVariableAndFilter(_me,yme,"| raw");if(!(!Array.isArray(Sme)&&!x_.items.length)){if(Sme=applyFilters(Array.isArray(Sme)?Sme:[],{query:x_.query,columns:$me.columns,matchFunc:$me.matchFunc,filterOnAllColumns:!0}),x_.query.orderBy){var Eme=/desc/i.test(x_.query.orderDir)?-1:1;Sme=sortArray(Sme.concat(),x_.query.orderBy,Eme)}var xme=__assign$3(__assign$3({},x_.pristine),{items:Sme.length>x_.perPage?Sme.slice((x_.page-1)*x_.perPage,x_.page*x_.perPage):Sme,count:Sme.length,total:Sme.length});x_.total=parseInt((Cme=xme.total)!==null&&Cme!==void 0?Cme:xme.count,10)||0,x_.items.replace(Sme),x_.reInitData(xme)}},hme=function(yme){return yme===void 0&&(yme={}),__awaiter(void 0,void 0,void 0,function(){var _me,$me,Cme,Sme,Eme,xme,Tme,Ome;return __generator(this,function(Rme){switch(Rme.label){case 0:return _me=yme.loadDataOnce?x_.data.itemsRaw:x_.data.items,$me=yme.filename?filter$1(yme.filename,yme.data,"| raw"):"data",yme.api?(Cme=yme.pageField||"page",Sme=yme.perPageField||"perPage",Eme=getEnv(x_),xme=createObject$1(x_.data,__assign$3(__assign$3(__assign$3({},x_.query),yme.data),(Ome={},Ome[Cme]=x_.page||1,Ome[Sme]=x_.perPage||10,Ome))),[4,Eme.fetcher(yme.api,xme,{autoAppend:!0,pageField:Cme,perPageField:Sme})]):[3,2];case 1:if(Tme=Rme.sent(),!Tme.data)return[2];Array.isArray(Tme.data)?_me=Tme.data:_me=Tme.data.rows||Tme.data.items,Rme.label=2;case 2:return __vitePreload(()=>import("./papaparse.min-D8zfA3TX.js").then(Nme=>Nme.p),[]).then(function(Nme){var Ime,Pme,Mme=[];try{for(var kme=__values$1(_me),Bme=kme.next();!Bme.done;Bme=kme.next()){var Dme=Bme.value,jme={};for(var Vme in Dme){var Wme=Dme[Vme];typeof Wme=="object"?jme[Vme]=JSON.stringify(Wme):jme[Vme]=Wme}Mme.push(jme)}}catch(Ume){Ime={error:Ume}}finally{try{Bme&&!Bme.done&&(Pme=kme.return)&&Pme.call(kme)}finally{if(Ime)throw Ime.error}}var Lme=Nme.unparse(Mme);if(Lme){var zme=new Blob([new Uint8Array([239,187,191]),Lme],{type:"text/plain;charset=utf-8"});FileSaver_minExports.saveAs(zme,"".concat($me,".csv"))}}),[2]}})})},bme=function(yme){return createObject$1(yme,{total:x_.total,page:x_.page,perPage:x_.perPage,items:x_.items.concat(),selectedItems:x_.selectedItems.concat(),unSelectedItems:x_.unSelectedItems.concat()})},mme=function(yme){x_.columns=yme},vme=function(yme){x_.total=yme||0},gme=function(){var yme,_me,$me,Cme;cme([]),dme([]);var Sme=(_me=(yme=x_==null?void 0:x_.children)===null||yme===void 0?void 0:yme.find)===null||_me===void 0?void 0:_me.call(yme,function(Eme){return Eme.storeType===TableStore.name});Sme&&((Cme=($me=Sme).clear)===null||Cme===void 0||Cme.call($me))};return{getData:bme,updateSelectData:ume,setPristineQuery:$P,updateQuery:tme,fetchInitData:ame,changePage:nme,changePerPage:rme,selectAction:ime,saveRemote:ome,setFilterTogglable:lme,setFilterVisible:sme,setSelectedItems:cme,setUnSelectedItems:dme,setInnerModalOpened:fme,initFromScope:pme,exportAsCSV:hme,updateColumns:mme,updateTotal:vme,resetSelection:gme}}),ServerError=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.type="ServerError",$P}return eme}(Error),Column$1=types.model("Column",{title:types.optional(types.frozen(),void 0),label:types.optional(types.frozen(),void 0),name:"",toggled:!1,breakpoint:types.optional(types.frozen(),void 0),pristine:types.optional(types.frozen(),void 0),toggable:!0,index:0,type:"",children:types.optional(types.array(types.late(function(){return Column$1})),[])}).actions(function(x_){return{toggleToggle:function(){x_.toggled=!x_.toggled;var eme=getParent(x_,2);eme.activeToggaleColumns.length||(x_.toggled=!0),eme.persistSaveToggledColumns()},setToggled:function(eme){x_.toggled=eme}}}),Row=types.model("Row",{storeType:"Row",id:types.identifier,parentId:"",name:types.string,pristine:types.frozen({}),data:types.frozen({}),index:types.number,newIndex:types.number,depth:types.number,children:types.optional(types.array(types.late(function(){return Row})),[]),path:""}).views(function(x_){return{get checked(){return getParent(x_,x_.depth*2).isSelected(x_)},get modified(){return x_.data?Object.keys(x_.data).some(function(eme){return!isEqual$1(x_.data[eme],x_.pristine[eme])}):!1},get moved(){return x_.index!==x_.newIndex},get locals(){var eme=null;x_.children.length&&(eme=x_.children.map(function(tme){return tme.locals}));var $P=getParent(x_,2);return createObject$1(extendObject(getParent(x_,x_.depth*2).data,{index:x_.index,parent:$P.storeType===Row.name?$P.data:void 0}),eme?__assign$3(__assign$3({},x_.data),{children:eme}):x_.data)},getDataWithModifiedChilden:function(){var eme=__assign$3({},x_.data);return eme.children&&x_.children&&(eme.children=x_.children.map(function($P){return $P.getDataWithModifiedChilden()})),eme}}}).actions(function(x_){return{replaceWith:function(eme){if(Object.keys(eme).forEach(function(ome){ome!=="id"&&(x_[ome]=eme[ome])}),Array.isArray(eme.children)){var $P=eme.children,tme=$P.concat();x_.children.length>$P.length&&x_.children.splice($P.length,x_.children.length-$P.length);for(var ame=0,nme=x_.children.length;tme.length;){var rme=__assign$3(__assign$3({},tme.shift()),{parentId:x_.id});if(ame<nme)x_.children[ame].replaceWith(rme);else{var ime=Row.create(rme);x_.children.push(ime)}ame++}}},change:function(eme,$P){x_.data=immutableExtends(x_.data,eme),$P&&(x_.pristine=x_.data)},reset:function(){x_.newIndex=x_.index,x_.data=x_.pristine}}}),TableStore2=ServiceStore.named("TableStore2").props({columns:types.array(Column$1),rows:types.array(Row),selectedRowKeys:types.array(types.frozen()),selectedRows:types.array(types.reference(Row)),expandedRowKeys:types.array(types.frozen()),columnsTogglable:types.optional(types.union(types.boolean,types.literal("auto"),types.frozen()),"auto"),orderBy:"",order:types.optional(types.union(types.literal("asc"),types.literal("desc")),"asc"),query:types.optional(types.frozen(),{}),pageNo:1,pageSize:10,dragging:!1,rowSelectionKeyField:"id",formsRef:types.optional(types.array(types.frozen()),[]),canAccessSuperData:!1}).views(function(x_){function eme(){return x_.columnsTogglable==="auto"?x_.columns.filter(function(pme){return!/^__/.test(pme.type)}).length>5:!!x_.columnsTogglable}function $P(){return x_.columns.findIndex(function(pme){return!pme.toggled})!==-1}function tme(){return x_.columns.filter(function(pme){return isVisible(pme.pristine,x_.data)&&pme.toggable!==!1})}function ame(){return tme().filter(function(pme){return pme.toggled})}function nme(pme){return pme?pme.filter(function(hme){return hme&&isVisible(hme.pristine,hasVisibleExpression(hme.pristine)?x_.data:{})&&(hme.toggled||!hme.toggable)}).map(function(hme){return __assign$3(__assign$3({},hme.pristine),{type:hme.type,children:hme.children?nme(hme.children):void 0})}):[]}function rme(){return nme(x_.columns)}function ime(){return flattenTree(x_.rows).filter(function(pme){return!pme.checked})}function ome(pme){return createObject$1(pme,{items:x_.rows.map(function(hme){return hme.data}),selectedItems:x_.selectedRows.map(function(hme){return hme.data}),unSelectedItems:ime().map(function(hme){return hme.data})})}function lme(pme,hme,bme){if(bme=bme||x_.rows,hme&&hme.length>0){var mme=+(hme.shift()||0);return lme(pme,hme,bme[mme].children)}return bme[pme]}function sme(pme){return!!~x_.selectedRows.indexOf(pme)}function cme(){return flattenTree(x_.rows).filter(function(pme){return pme.moved})}function dme(){return cme().length}function ume(pme,hme){return pme===void 0&&(pme=[]),hme===void 0&&(hme=[]),pme=pme&&pme.length?pme:x_.rows,pme.forEach(function(bme){bme.children&&bme.children.length&&ume(bme.children,hme);var mme=difference$2(bme.data,bme.pristine),vme=Object.keys(mme).length;vme&&hme.push(bme)}),hme}function fme(){return ume().length}return{get toggable(){return eme()},get columnsData(){return x_.columns},get toggableColumns(){return tme()},get filteredColumns(){return rme()},get activeToggaleColumns(){return ame()},get dataSource(){return x_.rows.map(function(pme){return x_.canAccessSuperData?pme.locals:pme.data})},get currentSelectedRowKeys(){return x_.data&&x_.data.selectedItems?x_.data.selectedItems.map(function(pme){return pme[x_.rowSelectionKeyField]})||[]:x_.selectedRowKeys.map(function(pme){return pme})},get currentExpandedKeys(){return x_.expandedRowKeys.map(function(pme){return pme})},get unSelectedRows(){return ime()},hasColumnHidden:function(){return $P()},getData:ome,getRowById:function(pme){return findTree(x_.rows,function(hme){return hme.id===pme})},isSelected:sme,getRowByIndex:lme,get moved(){return dme()},get movedRows(){return cme()},get keyField(){return x_.rowSelectionKeyField},get modified(){return fme()},get modifiedRows(){return ume()}}}).actions(function(x_){function eme(mme,vme){if(mme&&Array.isArray(mme)){var gme=mme.filter(function(yme){return yme}).concat();return gme=gme.map(function(yme,_me){return vme!=null&&vme.resolveDefinitions&&typeof(yme==null?void 0:yme.$ref)=="string"&&yme.$ref&&(yme=__assign$3(__assign$3({},vme.resolveDefinitions(yme.$ref)),yme)),__assign$3(__assign$3({},yme),{index:_me,type:yme.type||"plain",pristine:yme,toggled:yme.toggled!==!1,breakpoint:yme.breakpoint,children:yme.children?eme(yme.children,vme):[]})}),gme}}function $P(mme,vme){mme.columnsTogglable!==void 0&&(x_.columnsTogglable=mme.columnsTogglable),mme.canAccessSuperData!==void 0&&(x_.canAccessSuperData=!!mme.canAccessSuperData),typeof mme.orderBy=="string"&&rme(mme.orderBy,mme.order==="desc"?"desc":"asc"),mme.rowSelectionKeyField&&(x_.rowSelectionKeyField=mme.rowSelectionKeyField),mme.columns&&Array.isArray(mme.columns)&&x_.columns.replace(eme(mme.columns,vme))}function tme(mme,vme,gme){if(gme=gme||x_.rows[mme],gme!=null&&gme.parentId){var yme=x_.getRowById(gme.parentId),_me=yme.children.concat();_me.splice(mme,1),_me.splice(vme,0,gme),_me.forEach(function(Cme,Sme){return Cme.newIndex=Sme}),yme.children.replace(_me);return}var $me=x_.rows.concat();$me.splice(mme,1),$me.splice(vme,0,gme),$me.forEach(function(Cme,Sme){return Cme.newIndex=Sme}),x_.rows.replace($me)}function ame(){x_.activeToggaleColumns.length?x_.activeToggaleColumns.length===x_.toggableColumns.length?x_.toggableColumns.map(function(mme){return mme.setToggled(!1)}):x_.toggableColumns.map(function(mme){return mme.setToggled(!0)}):x_.toggableColumns.map(function(mme){return mme.setToggled(!0)}),nme()}function nme(){var mme=location.pathname+x_.path+x_.toggableColumns.map(function(vme){return vme.name||vme.index}).join("-");localStorage.setItem(mme,JSON.stringify(x_.activeToggaleColumns.map(function(vme){return vme.index})))}function rme(mme,vme){x_.orderBy=mme,x_.order=vme}function ime(mme,vme,gme,yme,_me){gme===void 0&&(gme="pageNo"),yme===void 0&&(yme="pageSize"),_me===void 0&&(_me=!1);var $me=x_.query;x_.query=__assign$3(_me?{}:__assign$3({},x_.query),mme),x_.query[gme||"pageNo"]&&(x_.pageNo=parseInt(x_.query[gme||"pageNo"],10)),x_.query[yme||"pageSize"]&&(x_.pageSize=parseInt(x_.query[yme||"pageSize"],10)),vme&&isObjectShallowModified$1($me,x_.query,!1)&&setTimeout(vme.bind(null,"?".concat(qsstringify(x_.query))),4)}function ome(mme,vme){var gme=x_.rowSelectionKeyField;eachTree$1(mme,function(yme){~vme.indexOf(yme.pristine[gme])||find$3(vme,function(_me){return _me&&_me==yme.pristine[gme]})?(x_.selectedRows.push(yme.id),x_.selectedRowKeys.push(yme.pristine[gme])):yme.children&&ome(yme.children,vme)})}function lme(mme){x_.selectedRows.clear(),x_.selectedRowKeys.clear(),ome(x_.rows,mme)}function sme(){var mme=[];eachTree$1(x_.rows,function(vme){return mme.push(vme.pristine[x_.rowSelectionKeyField])}),ome(x_.rows,mme)}function cme(mme,vme){x_.expandedRowKeys.clear(),eachTree$1(x_.rows,function(gme){(~mme.indexOf(gme.pristine[vme])||find$3(mme,function(yme){return yme&&yme==gme.pristine[vme]}))&&x_.expandedRowKeys.push(gme.pristine[vme])})}function dme(mme,vme){if(vme===!1){x_.rows.replace(mme.map(function(Sme){return Row.create(Sme)}));return}var gme=mme.concat();x_.rows.length>mme.length&&x_.rows.splice(mme.length,x_.rows.length-mme.length);for(var yme=0,_me=x_.rows.length;gme.length;){var $me=gme.shift();if(yme<_me)x_.rows[yme].replaceWith($me);else{var Cme=Row.create($me);x_.rows.push(Cme)}yme++}}function ume(mme,vme,gme,yme,_me,$me){_me===void 0&&(_me="");var Cme=$me||"children";return vme+=1,mme.map(function(Sme,Eme){Sme=isObject$8(Sme)?Sme:{item:Sme};var xme=guid$1();return{id:xme,parentId:yme,name:String("".concat(gme,"-").concat(vme,"-").concat(Eme)),path:"".concat(_me).concat(Eme),depth:vme,index:Eme,newIndex:Eme,pristine:Sme,data:Sme,rowSpans:{},children:Sme&&Array.isArray(Sme[Cme])?ume(Sme[Cme],vme,Eme,xme,"".concat(_me).concat(Eme,".")):[]}})}function fme(mme,vme,gme,yme){x_.selectedRows.clear();var _me=yme||"children",$me=mme.map(function(Cme,Sme){var Eme=vme?vme(Cme,Sme):guid$1();return{id:Eme,name:String("".concat(Sme,"-1-").concat(Sme)),index:Sme,newIndex:Sme,pristine:Cme,path:"".concat(Sme),data:Cme,depth:1,children:Cme&&Array.isArray(Cme[_me])?ume(Cme[_me],1,Sme,Eme,"".concat(Sme,"."),_me):[]}});dme($me,gme)}var pme=flow(function(vme,gme,yme){var _me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme;return yme===void 0&&(yme={}),__generator(this,function(Ime){switch(Ime.label){case 0:return Ime.trys.push([0,2,,3]),yme=__assign$3({method:"post"},yme),x_.markSaving(!0),[4,getEnv(x_).fetcher(vme,gme,yme)];case 1:if(_me=Ime.sent(),x_.markSaving(!1),(!isEmpty$2(_me.data)||_me.ok)&&(x_.updateData(normalizeApiResponseData(_me.data),{__saved:Date.now()},!!vme&&vme.replaceData,vme==null?void 0:vme.concatDataFields),x_.updatedAt=Date.now()),_me.ok)x_.updateMessage((Nme=(Rme=(Ome=(Tme=vme==null?void 0:vme.messages)===null||Tme===void 0?void 0:Tme.success)!==null&&Ome!==void 0?Ome:_me.msg)!==null&&Rme!==void 0?Rme:yme.successMessage)!==null&&Nme!==void 0?Nme:_me.defaultMsg),x_.msg&&getEnv(x_).notify("success",x_.msg,_me.msgTimeout!==void 0?{closeButton:!0,timeout:_me.msgTimeout}:void 0);else throw x_.updateMessage((xme=(Eme=(Sme=(Cme=vme==null?void 0:vme.messages)===null||Cme===void 0?void 0:Cme.failed)!==null&&Sme!==void 0?Sme:_me.msg)!==null&&Eme!==void 0?Eme:yme.errorMessage)!==null&&xme!==void 0?xme:x_.__("saveFailed"),!0),!(vme!=null&&vme.silent)&&getEnv(x_).notify("error",x_.msg,_me.msgTimeout!==void 0?{closeButton:!0,timeout:_me.msgTimeout}:void 0),new ServerError(x_.msg);return[2,_me.data];case 2:if($me=Ime.sent(),x_.markSaving(!1),!isAlive(x_)||x_.disposed)return[2];throw!(vme!=null&&vme.silent)&&$me.type!=="ServerError"&&getEnv(x_).notify("error",$me.message),$me;case 3:return[2]}})});function hme(){x_.rows.forEach(function(vme){return vme.reset()});var mme=x_.rows.concat();eachTree$1(mme,function(vme){if(vme.children){var gme=vme.children.concat().sort(function(yme,_me){return yme.index-_me.index});gme.forEach(function(yme){return yme.reset()}),vme.children.replace(gme)}}),mme.forEach(function(vme){return vme.reset()}),mme=mme.sort(function(vme,gme){return vme.index-gme.index}),x_.rows.replace(mme),x_.dragging=!1}function bme(mme,vme){x_.formsRef.push({id:mme.id,rowIndex:vme})}return{update:$P,persistSaveToggledColumns:nme,setOrderByInfo:rme,updateQuery:ime,initRows:fme,updateSelected:lme,updateSelectedAll:sme,updateExpanded:cme,exchange:tme,reset:hme,toggleAllColumns:ame,afterCreate:function(){setTimeout(function(){if(isAlive(x_)){var mme=location.pathname+x_.path+x_.toggableColumns.map(function(yme){return yme.name||yme.index}).join("-"),vme=localStorage.getItem(mme);if(vme){var gme=JSON.parse(vme);x_.toggableColumns.forEach(function(yme){return yme.setToggled(!!~gme.indexOf(yme.index))})}}},200)},saveRemote:pme,addForm:bme}}),Item=types.model("Item",{storeType:"Item",id:types.identifier,pristine:types.frozen(),data:types.frozen(),index:types.number,newIndex:types.number}).views(function(x_){return{get checked(){return getParent(x_,2).isSelected(x_)},get modified(){return x_.data?Object.keys(x_.data).some(function(eme){return!isEqual$1(x_.data[eme],x_.pristine[eme])}):!1},get moved(){return x_.index!==x_.newIndex},get locals(){var eme=getParent(x_,2);return createObject$1(extendObject(eme.data,{index:x_.index,selectedItems:eme.selectedItems.map(function($P){return $P.data}),unSelectedItems:eme.unSelectedItems.map(function($P){return $P.data})}),x_.data)},get checkable(){var eme=getParent(x_,2);return eme&&eme.itemCheckableOn?evalExpression(eme.itemCheckableOn,x_.locals):!0},get draggable(){var eme=getParent(x_,2);return eme&&eme.itemDraggableOn?evalExpression(eme.itemDraggableOn,x_.locals):eme.draggable}}}).actions(function(x_){return{toggle:function(){getParent(x_,2).toggle(x_)},change:function(eme,$P){x_.data=immutableExtends(x_.data,eme),$P&&(x_.pristine=x_.data)},reset:function(){x_.newIndex=x_.index,x_.data=x_.pristine},updateData:function(eme){eme.children;var $P=__rest$14(eme,["children"]);x_.data=__assign$3(__assign$3({},x_.data),$P)}}}),ListStore=iRendererStore.named("ListStore").props({items:types.array(Item),selectedItems:types.array(types.reference(Item)),primaryField:"id",orderBy:"",orderDir:types.optional(types.union(types.literal("asc"),types.literal("desc")),"asc"),draggable:!1,dragging:!1,multiple:!0,strictMode:!1,selectable:!1,itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1}).views(function(x_){function eme(rme){return!!~x_.selectedItems.indexOf(rme)}function $P(){return x_.items.filter(function(rme){return rme.modified})}function tme(){return $P().length}function ame(){return x_.items.filter(function(rme){return rme.moved})}function nme(){return ame().length}return{get allChecked(){return!!(x_.selectedItems.length===x_.checkableItems.length&&x_.checkableItems.length)},get checkableItems(){return x_.items.filter(function(rme){return rme.checkable})},get unSelectedItems(){return x_.items.filter(function(rme){return!rme.checked})},isSelected:eme,get modified(){return tme()},get modifiedItems(){return $P()},get moved(){return nme()},get movedItems(){return ame()}}}).actions(function(x_){function eme(hme){hme.selectable===void 0||(x_.selectable=hme.selectable),hme.draggable===void 0||(x_.draggable=hme.draggable),hme.multiple===void 0||(x_.multiple=hme.multiple),hme.strictMode===void 0||(x_.strictMode=hme.strictMode),hme.hideCheckToggler===void 0||(x_.hideCheckToggler=hme.hideCheckToggler),typeof hme.orderBy<"u"&&lme(hme.orderBy,hme.orderDir==="desc"?"desc":"asc"),hme.itemCheckableOn===void 0||(x_.itemCheckableOn=hme.itemCheckableOn),hme.itemDraggableOn===void 0||(x_.itemDraggableOn=hme.itemDraggableOn)}function $P(hme){var bme=hme.map(function(mme,vme){return mme=isObject$8(mme)?mme:{item:mme},{id:guid$1(),index:vme,newIndex:vme,pristine:mme,data:mme,modified:!1}});x_.selectedItems.clear(),x_.items.replace(bme),x_.dragging=!1}function tme(hme,bme){x_.selectedItems.clear(),hme.forEach(function(mme){var vme=x_.items.find(function(gme){return gme.pristine===mme});vme||(vme=x_.items.find(function(gme){var yme=mme[bme||"value"],_me=gme.pristine[bme||"value"];return yme===_me})),vme||(vme=x_.items.find(function(gme){var yme=mme[bme||"value"],_me=gme.pristine[bme||"value"];return yme==_me})),vme&&x_.selectedItems.push(vme)})}function ame(){x_.allChecked?x_.selectedItems.clear():x_.selectedItems.replace(x_.checkableItems)}function nme(){x_.selectedItems.clear()}function rme(){x_.selectedItems.replace(x_.checkableItems)}function ime(hme){if(hme.checkable){var bme=x_.selectedItems.indexOf(hme);x_.multiple?~bme?x_.selectedItems.splice(bme,1):x_.selectedItems.push(hme):~bme?x_.selectedItems.splice(bme,1):x_.selectedItems.replace([hme])}}function ome(){x_.selectedItems.clear()}function lme(hme,bme){x_.orderBy=hme,x_.orderDir=bme}function sme(){x_.items.forEach(function(hme){return hme.reset()}),x_.dragging=!1}function cme(){x_.dragging=!x_.dragging}function dme(){x_.dragging=!0}function ume(){x_.dragging=!1}function fme(hme,bme){var mme=x_.items[hme];mme.newIndex=bme;var vme=x_.items.slice();vme.splice(hme,1),vme.splice(bme,0,mme),x_.items.replace(vme)}function pme(hme){return createObject$1(hme,{items:x_.items.map(function(bme){return bme.data}),selectedItems:x_.selectedItems.map(function(bme){return bme.data}),unSelectedItems:x_.unSelectedItems.map(function(bme){return bme.data})})}return{getData:pme,update:eme,initItems:$P,updateSelected:tme,toggleAll:ame,clearAll:nme,selectAll:rme,toggle:ime,clear:ome,setOrderByInfo:lme,reset:sme,toggleDragging:cme,startDragging:dme,stopDragging:ume,exchange:fme}}),ModalStore=ServiceStore.named("ModalStore").props({form:types.frozen(),entered:!1,resizeCoord:0,schema:types.frozen()}).views(function(x_){return{get formData(){return createObject$1(x_.data,x_.form)}}}).actions(function(x_){return{setEntered:function(eme){x_.entered=eme},setFormData:function(eme){x_.form=eme},reset:function(){x_.form={},x_.reInitData({},!0)},setResizeCoord:function(eme){x_.resizeCoord=eme},setSchema:function(eme){if(eme&&eme.then){eme.then(function($P){return isAlive(x_)&&x_.setSchema($P)});return}x_.schema=eme}}}),baseIsEqual$1=_baseIsEqual;function isEqualWith(x_,eme,$P){$P=typeof $P=="function"?$P:void 0;var tme=$P?$P(x_,eme):void 0;return tme===void 0?baseIsEqual$1(x_,eme,void 0,$P):!!tme}var isEqualWith_1=isEqualWith;const isEqualWith$1=getDefaultExportFromCjs(isEqualWith_1);function normalizeOptions$1(x_,eme,$P){return eme===void 0&&(eme={values:[],options:[]}),$P===void 0&&($P="value"),typeof x_=="string"?x_.split(",").map(function(tme){var ame,nme=eme.values.indexOf(tme);if(~nme)return eme.options[nme];var rme=(ame={label:tme},ame[$P]=tme,ame);return eme.values.push(rme.value),eme.options.push(rme),rme}):Array.isArray(x_)&&(typeof x_[0]=="string"||typeof x_[0]=="number")?x_.map(function(tme){var ame,nme=eme.values.indexOf(tme);if(~nme)return eme.options[nme];var rme=(ame={label:tme},ame[$P]=tme,ame);return eme.values.push(rme[$P]),eme.options.push(rme),rme}):Array.isArray(x_)?x_.filter(function(tme){return tme!=null}).map(function(tme){var ame,nme=tme&&tme[$P],rme=nme!==void 0&&!tme.children?eme.values.indexOf(nme):-1;if(~rme)return eme.options[rme];var ime=__assign$3(__assign$3({},tme),(ame={},ame[$P]=nme,ame));return typeof ime.children<"u"?ime.children=normalizeOptions$1(ime.children,eme,$P):nme!==void 0&&(eme.values.push(nme),eme.options.push(ime)),ime}):isPlainObject$b(x_)?Object.keys(x_).map(function(tme){var ame,nme=eme.values.indexOf(tme);if(~nme)return eme.options[nme];var rme=(ame={label:x_[tme]},ame[$P]=tme,ame);return eme.values.push(rme.value),eme.options.push(rme),rme}):[]}function getOptionValue(x_,eme){return eme===void 0&&(eme="value"),isObject$8(x_)&&x_&&x_.hasOwnProperty(eme)?x_[eme]:x_}function getOptionValueBindField(x_){return x_===void 0&&(x_="value"),function(eme){return getOptionValue(eme,x_)}}function matchOptionValue$1(x_,eme,$P){$P===void 0&&($P="value");var tme=getOptionValue(x_,$P),ame=eme[$P||"value"];return isObject$8(tme)?isEqual$1(tme,ame):tme!==void 0&&ame!==void 0&&String(ame)===String(tme)}function optionValueCompare$1(x_,eme){return eme===void 0&&(eme="value"),function($P){return matchOptionValue$1(x_,$P,eme)}}var ErrorDetail=types.model("ErrorDetail",{msg:"",tag:"",rule:""}),getSelectedOptionsCache={value:null,nodeValueArray:null,res:null},FormItemStore=StoreNode.named("FormItemStore").props({isFocused:!1,isControlled:!1,type:"",label:"",unique:!1,loading:!1,required:!1,isValueSchemaExp:types.optional(types.boolean,!1),tmpValue:types.frozen(),emitedValue:types.frozen(),changeMotivation:"input",rules:types.optional(types.frozen(),{}),messages:types.optional(types.frozen(),{}),errorData:types.optional(types.array(ErrorDetail),[]),name:types.string,extraName:"",itemId:"",unsetValueOnInvisible:!1,itemsRef:types.optional(types.array(types.string),[]),inited:!1,validated:!1,validating:!1,multiple:!1,delimiter:",",valueField:"value",labelField:"label",joinValues:!0,extractValue:!1,options:types.optional(types.frozen(),[]),optionsRaw:types.optional(types.frozen(),[]),expressionsInOptions:!1,selectFirst:!1,autoFill:types.frozen(),clearValueOnHidden:!1,validateApi:types.optional(types.frozen(),""),selectedOptions:types.optional(types.frozen(),[]),filteredOptions:types.optional(types.frozen(),[]),dialogSchema:types.frozen(),dialogOpen:!1,dialogData:types.frozen(),resetValue:types.optional(types.frozen(),""),validateOnChange:!1,inputGroupControl:types.optional(types.frozen(),{}),colIndex:types.frozen(),rowIndex:types.frozen(),pagination:types.optional(types.frozen(),{enable:!1,page:1,perPage:10,total:0}),accumulatedOptions:types.optional(types.frozen(),[]),popOverOpen:!1,popOverData:types.frozen(),popOverSchema:types.frozen()}).views(function(x_){function eme(){var nme=x_.parentStore;return(nme==null?void 0:nme.storeType)===FormStore.name?nme:void 0}function $P(){var nme;return(nme=eme())===null||nme===void 0?void 0:nme.getValueByName(x_.name)}function tme(){return x_.selectedOptions.length?x_.selectedOptions[x_.selectedOptions.length-1].value:""}function ame(){return x_.errorData.map(function(nme){return nme.msg})}return{get subFormItems(){return x_.itemsRef.map(function(nme){return getStoreById(nme)})},get form(){return eme()},get value(){return $P()},get prinstine(){var nme;return(nme=eme())===null||nme===void 0?void 0:nme.getPristineValueByName(x_.name)},get errors(){return ame()},get valid(){var nme=ame();return!nme||!nme.length},get errClassNames(){return x_.errorData.map(function(nme){return nme.rule}).filter(function(nme,rme,ime){return nme&&ime.indexOf(nme)===rme}).map(function(nme){return"has-error--".concat(nme)}).join(" ")},get lastSelectValue(){return tme()},get enableSourcePagination(){return!!x_.pagination.enable},get sourcePageNum(){var nme;return(nme=x_.pagination.page)!==null&&nme!==void 0?nme:1},get sourcePerPageNum(){var nme;return(nme=x_.pagination.perPage)!==null&&nme!==void 0?nme:10},get sourceTotalNum(){var nme;return(nme=x_.pagination.total)!==null&&nme!==void 0?nme:0},getSelectedOptions:function(nme,rme){if(nme===void 0&&(nme=x_.tmpValue),nme!=null&&rme!=null&&isEqual$1(nme,getSelectedOptionsCache.value)&&isEqual$1(rme,getSelectedOptionsCache.nodeValueArray)&&getSelectedOptionsCache.res)return getSelectedOptionsCache.res;if(typeof nme>"u")return[];var ime=x_.filteredOptions,ome=x_.labelField,lme=x_.extractValue,sme=x_.multiple,cme=x_.delimiter,dme=x_.valueField||"value",ume=rme||(Array.isArray(nme)?nme:typeof nme=="string"&&sme?nme.split(cme||",").map(function(hme){return hme.trim()}):[nme]),fme=ume.map(function(hme){return hme&&hme.hasOwnProperty(dme)?hme[dme]:hme}),pme=[];return fme.forEach(function(hme,bme){var mme,vme,gme=findTree(ime,optionValueCompare$1(hme,dme),{resolve:getOptionValueBindField(dme),value:getOptionValue(hme,dme)});if(gme){pme.push(gme);return}var yme=ume&&ume[bme]||hme,_me=yme||yme===0;if(_me&&(typeof yme=="string"||typeof yme=="number")){yme=(mme={},mme[dme||"value"]=hme,mme[ome||"label"]=hme,mme.__unmatched=!0,mme);var $me=x_.selectedOptions?find$3(x_.selectedOptions,optionValueCompare$1(hme,dme)):null;$me&&(yme[ome]=$me[ome])}else _me&&lme&&(yme=(vme={},vme[dme||"value"]=hme,vme[ome||"label"]="UnKnown",vme.__unmatched=!0,vme));_me&&pme.push(yme)}),pme.length&&(getSelectedOptionsCache.value=nme,getSelectedOptionsCache.nodeValueArray=rme,getSelectedOptionsCache.res=pme),pme},splitExtraValue:function(nme){var rme=x_.delimiter||",",ime=Array.isArray(nme)?nme:typeof nme=="string"?nme.split(rme||",").map(function(ome){return ome.trim()}):[];return ime},getMergedData:function(nme){var rme=cloneObject$2(nme);return setVariable(rme,x_.name,x_.tmpValue),setVariable(rme,"__value",x_.tmpValue),setVariable(rme,"__name",x_.name),rme}}}).actions(function(x_){x_.form;var eme=new SimpleMap,$P=null,tme=[];function ame(Lme){var zme=Lme.name,Ume=Lme.extraName,Gme=Lme.required,Jme=Lme.unique;Lme.value;var Yme=Lme.isValueSchemaExp,Qme=Lme.rules,Xme=Lme.messages,Kme=Lme.delimiter,Zme=Lme.multiple,nbe=Lme.valueField,lbe=Lme.labelField,ibe=Lme.joinValues,abe=Lme.extractValue,obe=Lme.type,hbe=Lme.id,ube=Lme.selectFirst,mbe=Lme.autoFill,pbe=Lme.clearValueOnHidden,_be=Lme.validateApi,Sbe=Lme.maxLength,vbe=Lme.minLength,kbe=Lme.validateOnChange,Rbe=Lme.label,Pbe=Lme.inputGroupControl,Mbe=Lme.pagination;typeof Qme=="string"&&(Qme=str2rules(Qme)),typeof zme<"u"&&(x_.name=zme),typeof Ume<"u"&&(x_.extraName=Ume),typeof obe<"u"&&(x_.type=obe),typeof hbe<"u"&&(x_.itemId=hbe),typeof Xme<"u"&&(x_.messages=Xme),typeof Gme<"u"&&(x_.required=!!Gme),typeof Jme<"u"&&(x_.unique=!!Jme),typeof Zme<"u"&&(x_.multiple=!!Zme),typeof ube<"u"&&(x_.selectFirst=!!ube),typeof mbe<"u"&&(x_.autoFill=mbe),typeof ibe<"u"&&(x_.joinValues=!!ibe),typeof abe<"u"&&(x_.extractValue=!!abe),typeof Kme<"u"&&(x_.delimiter=Kme||","),typeof nbe<"u"&&(x_.valueField=nbe||"value"),typeof lbe<"u"&&(x_.labelField=lbe||"label"),typeof pbe<"u"&&(x_.clearValueOnHidden=!!pbe),typeof _be<"u"&&(x_.validateApi=_be),typeof kbe<"u"&&(x_.validateOnChange=!!kbe),typeof Rbe=="string"&&(x_.label=Rbe),x_.isValueSchemaExp=!!Yme,isObject$8(Pbe)&&(Pbe==null?void 0:Pbe.name)!=null&&(x_.inputGroupControl=Pbe),Mbe&&isObject$8(Mbe)&&Mbe.enable&&(x_.pagination={enable:!0,page:Mbe.page&&Mbe.page||1,perPage:Mbe.perPage&&Mbe.perPage||10,total:0}),(typeof Qme<"u"||typeof Gme<"u"||typeof vbe=="number"||typeof Sbe=="number")&&(Qme=__assign$3(__assign$3({},Qme??x_.rules),{isRequired:x_.required||(Qme==null?void 0:Qme.isRequired)}),~["input-text","textarea"].indexOf(x_.type)&&(typeof vbe=="number"&&(Qme.minLength=vbe),typeof Sbe=="number"&&(Qme.maxLength=Sbe)),isObjectShallowModified$1(Qme,x_.rules)&&(x_.rules=Qme,cme("builtin"),x_.validated=!1))}function nme(){x_.isFocused=!0}function rme(){x_.isFocused=!1}var ime=null,ome=flow(function(zme,Ume,Gme){var Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe;return __generator(this,function(obe){switch(obe.label){case 0:return x_.validating&&!isEffectiveApi(x_.validateApi,zme)?[2,x_.valid]:(x_.validating=!0,cme(),Ume?[4,Ume()]:[3,2]);case 1:obe.sent(),obe.label=2;case 2:if(sme(validate$1(x_.tmpValue,zme,Gme?str2rules(Gme):x_.rules,x_.messages,x_.__)),!(!x_.errors.length&&isEffectiveApi(x_.validateApi,zme)))return[3,6];ime&&(ime(),ime=null),obe.label=3;case 3:return obe.trys.push([3,5,,6]),[4,getEnv(x_).fetcher(x_.validateApi,createObject$1(zme,(Kme={},Kme[x_.name]=x_.tmpValue,Kme)),{cancelExecutor:function(hbe){return ime=hbe}})];case 4:return Jme=obe.sent(),ime=null,!Jme.ok&&Jme.status===422&&Jme.errors&&sme(String((lbe=(nbe=(Zme=x_.validateApi)===null||Zme===void 0?void 0:Zme.messages)===null||nbe===void 0?void 0:nbe.failed)!==null&&lbe!==void 0?lbe:Jme.errors||Jme.msg||"表单项「".concat(x_.name,"」校验失败"))),[3,6];case 5:return Yme=obe.sent(),sme(String(Yme)),[3,6];case 6:return x_.validated=!0,x_.unique&&((abe=(ibe=x_.form)===null||ibe===void 0?void 0:ibe.parentStore)===null||abe===void 0?void 0:abe.storeType)==="ComboStore"&&(Qme=x_.form.parentStore,Xme=Qme.uniques.get(x_.name),Xme.items.some(function(hbe){return hbe!==x_&&x_.tmpValue!==void 0&&x_.tmpValue!==""&&hbe.value===x_.tmpValue})&&sme(x_.__("Form.unique"))),x_.validating=!1,[2,x_.valid]}})});function lme(Lme,zme){zme===void 0&&(zme="builtin"),cme(),sme(Lme,zme)}function sme(Lme,zme){zme===void 0&&(zme="builtin");var Ume=Array.isArray(Lme)?Lme:[Lme];Ume.forEach(function(Gme){return x_.errorData.push({msg:typeof Gme=="string"?Gme:Gme.msg,rule:typeof Gme!="string"?Gme.rule:void 0,tag:zme})})}function cme(Lme){if(Lme){var zme=x_.errorData.filter(function(Ume){return Ume.tag!==Lme});x_.errorData.replace(zme)}else x_.errorData.clear()}function dme(Lme){var zme,Ume;if(Array.isArray(Lme))try{for(var Gme=__values$1(Lme),Jme=Gme.next();!Jme.done;Jme=Gme.next()){var Yme=Jme.value;if(Array.isArray(Yme.children)&&Yme.children.length){var Qme=dme(Yme.children);if(Qme!==void 0)return Qme}else if(Yme[x_.valueField||"value"]!=null&&!Yme.disabled)return Yme}}catch(Xme){zme={error:Xme}}finally{try{Jme&&!Jme.done&&(Ume=Gme.return)&&Ume.call(Gme)}finally{if(zme)throw zme.error}}}function ume(Lme){var zme=Lme||{},Ume=zme.page,Gme=zme.perPage,Jme=zme.total;x_.enableSourcePagination&&(x_.pagination=__assign$3(__assign$3(__assign$3(__assign$3({},x_.pagination),Ume!=null&&typeof Ume=="number"?{page:Ume}:{}),Gme!=null&&typeof Gme=="number"?{perPage:Gme}:{}),Jme!=null&&typeof Jme=="number"?{total:Jme}:{}))}function fme(Lme,zme,Ume){if(Array.isArray(Lme)){Lme=filterTree(Lme,function(Kme){return Kme});var Gme=x_.options.concat();x_.options=Lme,x_.accumulatedOptions=x_.enableSourcePagination?uniqWith$1(__spreadArray(__spreadArray([],__read$3(Gme),!1),__read$3(Lme),!1),function(Kme,Zme){var nbe,lbe;return Kme[(nbe=x_.valueField)!==null&&nbe!==void 0?nbe:"value"]===Zme[(lbe=x_.valueField)!==null&&lbe!==void 0?lbe:"value"]}):Lme,Cme(Gme,Ume);var Jme;if(zme&&x_.selectFirst&&x_.filteredOptions.length&&(Jme=x_.getSelectedOptions(x_.value))&&!Jme.filter(function(Kme){return!Kme.__unmatched}).length){var Yme=dme(x_.filteredOptions);if(!Yme)return;var Qme=[Yme].map(function(Kme){return x_.extractValue||x_.joinValues?Kme[x_.valueField||"value"]:Kme}),Xme=x_.joinValues&&x_.multiple?Qme.join(x_.delimiter):x_.multiple?Qme:Qme[0];zme(Xme)}}}var pme=null,hme=flow(function(zme,Ume,Gme,Jme){var Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe;return __generator(this,function(ube){switch(ube.label){case 0:return ube.trys.push([0,2,,3]),pme&&(pme(),pme=null,x_.loading=!1),Gme!=null&&Gme.silent||(x_.loading=!0),[4,getEnv(x_).fetcher(zme,Ume,__assign$3({autoAppend:!1,cancelExecutor:function(mbe){return pme=mbe}},Gme))];case 1:return Yme=ube.sent(),pme=null,Qme=null,Yme.ok?Qme=Yme:(Xme=buildApi(zme,Ume),Jme!==!1&&lme(x_.__("Form.loadOptionsFailed",{reason:(abe=(ibe=(lbe=Xme.messages)===null||lbe===void 0?void 0:lbe.failed)!==null&&ibe!==void 0?ibe:Yme.msg)!==null&&abe!==void 0?abe:Gme&&Gme.errorMessage})),Kme=Yme.msg,Kme||(Kme="status: ".concat(Yme.status)),!(zme!=null&&zme.silent)&&getEnv(x_).notify("error",(hbe=(obe=Xme.messages)===null||obe===void 0?void 0:obe.failed)!==null&&hbe!==void 0?hbe:x_.errors.join("")||"".concat(Xme.url,": ").concat(Kme),Yme.msgTimeout!==void 0?{closeButton:!0,timeout:Yme.msgTimeout}:void 0)),x_.loading=!1,[2,Qme];case 2:return Zme=ube.sent(),nbe=getEnv(x_),!isAlive(x_)||x_.disposed?[2]:(x_.loading=!1,nbe.isCancel(Zme)?[2]:(console.error(Zme),!(zme!=null&&zme.silent)&&nbe.notify("error",Zme.message),[2]));case 3:return[2]}})}),bme=flow(function(zme,Ume,Gme,Jme,Yme,Qme){var Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe;return __generator(this,function(ube){switch(ube.label){case 0:return[4,hme(zme,Ume,Gme,Qme)];case 1:return Xme=ube.sent(),Xme?(cme(),x_.validated=!1,Kme=((Zme=Xme.data)===null||Zme===void 0?void 0:Zme.options)||((nbe=Xme.data)===null||nbe===void 0?void 0:nbe.items)||((lbe=Xme.data)===null||lbe===void 0?void 0:lbe.rows)||Xme.data||[],Kme=normalizeOptions$1(Kme,void 0,x_.valueField),x_.enableSourcePagination&&(x_.pagination=__assign$3(__assign$3({},x_.pagination),{page:parseInt((ibe=Xme.data)===null||ibe===void 0?void 0:ibe.page,10)||1,total:parseInt((obe=(abe=Xme.data)===null||abe===void 0?void 0:abe.total)!==null&&obe!==void 0?obe:(hbe=Xme.data)===null||hbe===void 0?void 0:hbe.count,10)||0})),Gme!=null&&Gme.extendsOptions&&x_.selectedOptions.length>0&&x_.selectedOptions.forEach(function(mbe){var pbe=findTree(Kme,optionValueCompare$1(mbe,x_.valueField||"value"),{resolve:getOptionValueBindField(x_.valueField),value:getOptionValue(mbe,x_.valueField)});pbe||Kme.push(mbe)}),fme(Kme,Yme,Ume),Xme.data&&typeof Xme.data.value<"u"?Yme&&Yme(Xme.data.value,!1,!0):Jme&&!x_.selectFirst&&x_.selectedOptions.some(function(mbe){return mbe.__unmatched})&&Yme&&Yme(x_.joinValues===!1&&x_.multiple?[]:"",!1,!0),[2,Xme]):[2,null]}})});function mme(Lme,zme,Ume){var Gme=resolveVariableAndFilter(Lme,zme,"| raw");return Array.isArray(Gme)?(Gme=normalizeOptions$1(Gme,void 0,x_.valueField),x_.enableSourcePagination&&(x_.pagination=__assign$3(__assign$3(__assign$3(__assign$3({},x_.pagination),zme!=null&&zme.page?{page:zme==null?void 0:zme.page}:{}),zme!=null&&zme.perPage?{perPage:zme==null?void 0:zme.perPage}:{}),{total:Gme.length}),Gme=Gme.slice((x_.pagination.page-1)*x_.pagination.perPage,x_.pagination.page*x_.pagination.perPage)),fme(Gme,Ume,zme),Gme):[]}var vme=flow(function(zme,Ume,Gme){var Jme,Yme,Qme,Xme;return Gme===void 0&&(Gme=!0),__generator(this,function(Kme){switch(Kme.label){case 0:return $P&&($P(),$P=null),[4,getEnv(x_).fetcher(zme,Ume,{cancelExecutor:function(Zme){return $P=Zme}})];case 1:return Jme=Kme.sent(),$P=null,Jme?(Yme=((Qme=Jme.data)===null||Qme===void 0?void 0:Qme.items)||((Xme=Jme.data)===null||Xme===void 0?void 0:Xme.rows),(Yme==null?void 0:Yme.length)===1?[2,Yme[0]]:isPlainObject$b(Jme.data)?[2,Jme.data]:(!Gme&&!(zme!=null&&zme.silent)&&getEnv(x_).notify("info",x_.__("FormItem.autoFillLoadFailed")),[2])):[2]}})}),gme=flow(function(Lme,zme,Ume,Gme,Jme){var Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe;return __generator(this,function(abe){switch(abe.label){case 0:return Array.isArray(zme)?(Yme=findTreeIndex(x_.options,function(obe){return obe.leftOptions===zme}),Qme=findTreeIndex(zme,function(obe){return obe===Lme}),Xme=findTree(x_.options,function(obe){return obe.leftOptions===zme}),!Yme||!Qme||!Xme?[2]:(fme(spliceTree(x_.options,Yme,1,__assign$3(__assign$3({},Xme),{loading:!0,leftOptions:spliceTree(Xme.leftOptions,Qme,1,__assign$3(__assign$3({},Lme),{loading:!0}))})),void 0,Gme),[4,hme(Ume,Gme,__assign$3(__assign$3({},Jme),{silent:!0}),!1)])):[2];case 1:return Kme=abe.sent(),Kme?(Zme=((ibe=Kme.data)===null||ibe===void 0?void 0:ibe.options)||Kme.data.items||Kme.data.rows||Kme.data||[],nbe=spliceTree(Xme.leftOptions,Qme,1,__assign$3(__assign$3({},Lme),{loading:!1,loaded:!0,children:Zme})),fme(spliceTree(x_.options,Yme,1,__assign$3(__assign$3({},Xme),{loading:!1,loaded:!0,children:Zme,leftOptions:nbe})),void 0,Gme),Array.isArray(Xme.children)&&(lbe=Xme.children.concat(),flattenTree(nbe).forEach(function(obe){findTree(Xme.children,function(hbe){return hbe.ref===obe.value},{resolve:function(hbe){return hbe.ref},value:obe.value})||lbe.push({ref:obe.value,defer:!0})}),fme(spliceTree(x_.options,Yme,1,__assign$3(__assign$3({},Xme),{leftOptions:nbe,children:lbe})),void 0,Gme)),[2,Kme]):(fme(spliceTree(x_.options,Yme,1,__assign$3(__assign$3({},Xme),{loading:!1,error:!0,leftOptions:spliceTree(Xme.leftOptions,Qme,1,__assign$3(__assign$3({},Lme),{loading:!1,error:!0}))})),void 0,Gme),[2])}})}),yme=flow(function(Lme,zme,Ume,Gme,Jme){return __generator(this,function(Yme){switch(Yme.label){case 0:return[4,gme(Lme,zme,Ume,Gme,Jme)];case 1:return[2,Yme.sent()]}})}),_me=flow(function(Lme,zme,Ume,Gme){var Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe;return __generator(this,function(ibe){switch(ibe.label){case 0:return Jme=x_.labelField||"label",Yme=x_.valueField||"value",Qme=findTreeIndex(x_.options,function(abe){return abe===Lme||isEqualWith$1(abe,Lme,function(obe,hbe){return(obe==null?void 0:obe[Yme])!=null&&(hbe==null?void 0:hbe[Yme])!=null&&(obe==null?void 0:obe[Jme])===(hbe==null?void 0:hbe[Jme])&&(obe==null?void 0:obe[Yme])===(hbe==null?void 0:hbe[Yme])})}),Qme?[3,2]:(Xme=(nbe=x_.options[0])===null||nbe===void 0?void 0:nbe.leftOptions,[4,gme(Lme,Xme,zme,Ume,Gme)]);case 1:return[2,ibe.sent()];case 2:return fme(spliceTree(x_.options,Qme,1,__assign$3(__assign$3({},Lme),{loading:!0})),void 0,Ume),[4,hme(zme,Ume,__assign$3(__assign$3({},Gme),{silent:!0}),!1)];case 3:return Kme=ibe.sent(),Kme?(Zme=((lbe=Kme.data)===null||lbe===void 0?void 0:lbe.options)||Kme.data.items||Kme.data.rows||Kme.data||[],fme(spliceTree(x_.options,Qme,1,__assign$3(__assign$3({},Lme),{loading:!1,loaded:!0,children:Zme})),void 0,Ume),[2,Kme]):(fme(spliceTree(x_.options,Qme,1,__assign$3(__assign$3({},Lme),{loading:!1,error:!0})),void 0,Ume),[2])}})}),$me=flow(function(zme,Ume,Gme,Jme){var Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe;return __generator(this,function(hbe){switch(hbe.label){case 0:Yme=new Map,hbe.label=1;case 1:hbe.trys.push([1,8,9,10]),Qme=__values$1(zme),Xme=Qme.next(),hbe.label=2;case 2:if(Xme.done)return[3,7];if(Kme=Xme.value,Kme.length<=1)return[3,6];Zme=function(ube){var mbe,pbe,_be,Sbe,vbe,kbe;return __generator(this,function(Rbe){switch(Rbe.label){case 0:return mbe=x_.options.concat(),pbe=Kme[ube],Yme.has(pbe)?[2,"continue"]:(_be=findTree(mbe,function(Pbe,Mbe,Kbe){return Kbe===ube+1&&optionValueCompare$1(pbe,x_.valueField||"value")(Pbe)}),!_be||!_be.defer?[2,"continue"]:(Sbe=findTreeIndex(mbe,function(Pbe){return Pbe===_be}),fme(spliceTree(mbe,Sbe,1,__assign$3(__assign$3({},_be),{loading:!0})),void 0,_be),[4,hme(Ume,_be,__assign$3(__assign$3({},Jme),{silent:!0}),!1)]));case 1:return vbe=Rbe.sent(),vbe||fme(spliceTree(mbe,Sbe,1,__assign$3(__assign$3({},_be),{loading:!1,error:!0})),void 0,_be),Yme.set(pbe,!0),kbe=((obe=vbe.data)===null||obe===void 0?void 0:obe.options)||vbe.data.items||vbe.data.rows||vbe.data||[],fme(spliceTree(mbe,Sbe,1,__assign$3(__assign$3({},_be),{loading:!1,loaded:!0,children:kbe})),void 0,_be),[2]}})},nbe=0,hbe.label=3;case 3:return nbe<Kme.length-1?[5,Zme(nbe)]:[3,6];case 4:hbe.sent(),hbe.label=5;case 5:return nbe++,[3,3];case 6:return Xme=Qme.next(),[3,2];case 7:return[3,10];case 8:return lbe=hbe.sent(),ibe={error:lbe},[3,10];case 9:try{Xme&&!Xme.done&&(abe=Qme.return)&&abe.call(Qme)}finally{if(ibe)throw ibe.error}return[7];case 10:return[2]}})});function Cme(Lme,zme){var Ume;if(!x_.options.length&&typeof x_.value>"u"){isArrayChildrenModified(x_.filteredOptions,[])&&(x_.filteredOptions=[]),isArrayChildrenModified(x_.selectedOptions,[])&&(x_.selectedOptions=[]);return}var Gme=x_.tmpValue,Jme=x_.valueField||"value",Yme=x_.labelField||"label",Qme=Array.isArray(Gme)?Gme.map(function(pbe){return pbe&&pbe.hasOwnProperty(Jme)?pbe[Jme]:pbe}):typeof Gme=="string"?Gme.split(x_.delimiter||",").map(function(pbe){return pbe.trim()}):Gme===void 0?[]:[Gme&&Gme.hasOwnProperty(Jme)?Gme[Jme]:Gme];Gme&&Gme.hasOwnProperty(Yme)&&(Qme[0]=(Ume={},Ume[Yme]=Gme[Yme],Ume[Jme]=Gme[Jme],Ume));var Xme=!1,Kme=x_.filteredOptions,Zme=x_.options.filter(function(pbe){return!Xme&&(pbe.visibleOn||pbe.hiddenOn||pbe.disabledOn)&&(Xme=!0),pbe.visibleOn?evalExpression(pbe.visibleOn,zme)!==!1:pbe.hiddenOn?evalExpression(pbe.hiddenOn,zme)!==!0:pbe.visible!==!1&&pbe.hidden!==!0}).map(function(pbe,_be){var Sbe=evalExpression(pbe.disabledOn,zme),vbe=pbe.disabledOn?Kme.length>_be&&Kme[_be].disabled===Sbe?Kme[_be]:__assign$3(__assign$3({},pbe),{disabled:Sbe}):pbe;return vbe});x_.expressionsInOptions=Xme;var nbe=new Map,lbe=[];eachTree$1(Zme,function(pbe){var _be=getOptionValue(pbe,Jme);_be!=null&&nbe.set(_be,pbe),_be!=null&&lbe.push(pbe)});var ibe=[];Qme.forEach(function(pbe,_be){var Sbe,vbe,kbe=getOptionValue(pbe,Jme);if(nbe.get(kbe)){ibe.push(nbe.get(kbe));return}var Rbe=findIndex$3(lbe,optionValueCompare$1(pbe,Jme));if(~Rbe)ibe.push(lbe[Rbe]);else{var Pbe=kbe&&kbe[_be]||pbe,Mbe=Pbe||Pbe===0;if(Mbe&&(typeof Pbe=="string"||typeof Pbe=="number")){Pbe=(Sbe={},Sbe[Jme]=pbe,Sbe[Yme]=pbe,Sbe.__unmatched=!0,Sbe);var Kbe=Lme&&find$3(Lme,optionValueCompare$1(pbe,Jme));Kbe&&(Pbe[Yme]=Kbe[Yme])}else Mbe&&x_.extractValue&&(Pbe=(vbe={},vbe[Jme]=pbe,vbe[Yme]="UnKnown",vbe.__unmatched=!0,vbe));Mbe&&ibe.push(Pbe)}});var abe=x_.form,obe=abe==null?void 0:abe.parentStore;if((obe==null?void 0:obe.storeType)===ComboStore.name){var hbe=obe,ube=hbe.uniques.get(x_.name),mbe=[];ube&&ube.items.forEach(function(pbe){x_!==pbe&&mbe.push.apply(mbe,__spreadArray([],__read$3(pbe.selectedOptions.map(function(_be){return _be&&_be[Jme]})),!1))}),Zme.length&&mbe.length&&(Zme=mapTree(Zme,function(pbe){return~mbe.indexOf(pbe[Jme])?__assign$3(__assign$3({},pbe),{disabled:!0}):pbe}))}isArrayChildrenModified(x_.selectedOptions,ibe)&&(x_.selectedOptions=ibe),isArrayChildrenModified(x_.filteredOptions,Zme)&&(x_.filteredOptions=Zme)}function Sme(Lme){x_.loading=Lme}var Eme;function xme(){return Eme}function Tme(Lme){Eme=Lme}function Ome(Lme){if(Lme===void 0&&(Lme=!1),x_.validated=!1,Eme&&Eme.storeType==="ComboStore"){var zme=Eme;zme.forms.forEach(function(Ume){return Ume.reset(void 0,!1)})}!Lme&&cme()}function Rme(Lme){x_.validated=!1,cme()}function Nme(Lme,zme,Ume){Lme.data?x_.dialogData=dataMapping(Lme.data,zme):x_.dialogData=zme,x_.dialogSchema=Lme,x_.dialogOpen=!0,Ume&&eme.set(x_.dialogData,Ume)}function Ime(Lme,zme){var Ume=eme.get(x_.dialogData);x_.dialogOpen=!1,Ume&&(eme.delete(x_.dialogData),setTimeout(function(){return Ume(Lme,zme)},200))}function Pme(Lme,zme,Ume){x_.popOverData=zme||{},x_.popOverOpen=!0,x_.popOverSchema=Lme,Ume&&eme.set(x_.popOverData,Ume)}function Mme(Lme,zme){var Ume=eme.get(x_.popOverData);x_.popOverOpen=!1,Ume&&(eme.delete(x_.popOverData),setTimeout(function(){return Ume(Lme,zme)},200))}function kme(Lme,zme){x_.tmpValue=Lme,zme&&(x_.changeMotivation=zme)}function Bme(Lme){x_.emitedValue=Lme}function Dme(Lme){x_.itemsRef.push(Lme.id)}function jme(Lme){var zme=x_.itemsRef.findIndex(function(Ume){return Ume===Lme.id});~zme&&x_.itemsRef.splice(zme,1)}function Vme(Lme){x_.isControlled=!!Lme}var Wme=flow(function(){var zme,Ume,Gme,Jme,Yme,Qme,Xme;return __generator(this,function(Kme){switch(Kme.label){case 0:zme=tme.sort(function(Zme,nbe){return(Zme.__weight||0)-(nbe.__weight||0)}),Kme.label=1;case 1:Kme.trys.push([1,,10,11]),Kme.label=2;case 2:Kme.trys.push([2,7,8,9]),Ume=__values$1(zme),Gme=Ume.next(),Kme.label=3;case 3:return Gme.done?[3,6]:(Jme=Gme.value,[4,Jme(x_)]);case 4:Kme.sent(),Kme.label=5;case 5:return Gme=Ume.next(),[3,3];case 6:return[3,9];case 7:return Yme=Kme.sent(),Qme={error:Yme},[3,9];case 8:try{Gme&&!Gme.done&&(Xme=Ume.return)&&Xme.call(Ume)}finally{if(Qme)throw Qme.error}return[7];case 9:return[3,11];case 10:return isAlive(x_)&&(x_.inited=!0),[7];case 11:return[2]}})});return{focus:nme,blur:rme,config:ame,validate:ome,setError:lme,addError:sme,clearError:cme,setPagination:ume,setOptions:fme,loadOptions:bme,loadOptionsFromDataScope:mme,deferLoadOptions:_me,deferLoadLeftOptions:yme,expandTreeOptions:$me,syncOptions:Cme,setLoading:Sme,setSubStore:Tme,getSubStore:xme,reset:Ome,resetValidationStatus:Rme,openDialog:Nme,closeDialog:Ime,openPopOver:Pme,closePopOver:Mme,changeTmpValue:kme,changeEmitedValue:Bme,addSubFormItem:Dme,removeSubFormItem:jme,loadAutoUpdateData:vme,setIsControlled:Vme,init:Wme,addInitHook:function(Lme,zme){return zme===void 0&&(zme=0),Lme=promisify(Lme),tme.push(Lme),Lme.__weight=zme,function(){var Ume=tme.indexOf(Lme);~Ume&&tme.splice(Ume,1)}},beforeDestroy:function(){tme.splice(0,tme.length)}}}),PaginationStore=iRendererStore.named("PaginationStore").props({page:1,perPage:10,inputName:"",outputName:"",mode:"normal",ellipsisPageGap:5}).views(function(x_){return{get inputItems(){var eme=resolveVariable(x_.inputName||"items",x_.data);return Array.isArray(eme)?eme:[]},get locals(){var eme,$P=(x_.page-1)*x_.perPage;return createObject$1(x_.data,(eme={currentPage:x_.page,lastPage:this.lastPage},eme[x_.outputName||"items"]=this.inputItems.slice($P,$P+x_.perPage),eme))},get lastPage(){return Math.ceil(this.inputItems.length/x_.perPage)}}}).actions(function(x_){return{switchTo:function(eme,$P){x_.page=eme,typeof $P=="number"&&(x_.perPage=$P)}}}),AppStore=ServiceStore.named("AppStore").props({pages:types.frozen(),activePage:types.frozen(),folded:!1,offScreen:!1}).views(function(x_){return{get navigations(){return Array.isArray(x_.pages)?mapTree(x_.pages,function(eme){var $P=isVisible(eme,x_.data);return $P!==!1&&eme.path&&!~eme.path.indexOf("http")&&~eme.path.indexOf(":")&&($P=!1),{label:eme.label,icon:eme.icon,path:eme.path,children:eme.children,className:eme.className,visible:$P,badge:typeof eme.badge=="string"?filter$1(eme.badge,x_.data):eme.badge,badgeClassName:filter$1(eme.badgeClassName,x_.data)}}):[{label:x_.__("App.navigation"),children:[]}]},get bcn(){var eme;return((eme=x_.activePage)===null||eme===void 0?void 0:eme.bcn)||[]},get pageData(){var eme;return createObject$1(x_.data,{params:((eme=x_.activePage)===null||eme===void 0?void 0:eme.params)||{}})}}}).actions(function(x_){return{toggleFolded:function(){x_.folded=!x_.folded},toggleOffScreen:function(){x_.offScreen=!x_.offScreen},setPages:function(eme){if(eme&&!Array.isArray(eme))eme=[eme];else if(!Array.isArray(eme))return;eme=mapTree(eme,function($P,tme,ame,nme){var rme=$P.link||$P.url;if(($P.schema||$P.schemaApi)&&(rme=$P.url||"/".concat(nme.map(function(sme){return sme.index}).concat(tme).map(function(sme){return"page-".concat(sme+1)}).join("/")),rme&&rme[0]!=="/")){for(var ime="/",ome=nme.length;ome>0;){var lme=nme[ome-1];if(lme!=null&&lme.path){ime=lme.path+"/";break}ome--}rme=ime+rme}return __assign$3(__assign$3({},$P),{index:tme,id:$P.id||guid$1(),label:$P.label,icon:$P.icon,path:rme})}),x_.pages=eme},rewrite:function(eme,$P){var tme=findTree(x_.pages,function(ame){return ame.path===eme});tme&&this.setActivePage(tme,$P)},setActivePage:function(eme,$P,tme){var ame;if(((ame=x_.activePage)===null||ame===void 0?void 0:ame.id)!==eme.id){var nme=[];if(findTree(x_.pages,function(rme,ime,ome,lme){return rme.id===eme.id?(nme=lme.filter(function(sme){return sme.path&&sme.label}).map(function(sme){return __assign$3(__assign$3({},sme),{path:replaceUrlParams(sme.path,tme)})}),$P.showFullBreadcrumbPath&&(nme=lme.filter(function(sme){return sme.label})),nme.push(__assign$3(__assign$3({},rme),{path:""})),x_.__,$P.showBreadcrumbHomePath&&nme[0].path!=="/"&&nme.unshift({label:x_.__("App.home"),path:"/"}),!0):!1}),x_.activePage=__assign$3(__assign$3({},eme),{params:tme||{},bcn:nme}),eme.label&&(document.title=eme.label),eme.schema)x_.schema=eme.schema,x_.schemaKey=""+Date.now();else if(eme.schemaApi)x_.schema=null,x_.fetchSchema(eme.schemaApi,x_.activePage,{method:"get"});else if(eme.redirect){$P.jumpTo(eme.redirect,void 0,x_.data);return}else eme.rewrite?this.rewrite(eme.rewrite,$P):(x_.schema=null,x_.schemaKey="")}},updateActivePage:function(eme){if(Array.isArray(x_.pages)){var $P,tme=findTree(x_.pages,function(nme){return!!(nme.path&&($P=eme.isCurrentUrl(nme.path,nme),$P))});if(tme)this.setActivePage(tme,eme,typeof $P=="object"?$P.params:void 0);else{var ame=findTree(x_.pages,function(nme){return nme.isDefaultPage});ame?this.setActivePage(ame,eme):x_.activePage=null}}}}}),RootStore=ServiceStore.named("RootStore").props({runtimeError:types.frozen(),runtimeErrorStack:types.frozen(),query:types.frozen(),ready:!1}).volatile(function(x_){return{context:{}}}).views(function(x_){return{get downStream(){var eme=x_.data;if(x_.context||x_.query){var $P=extractObjectChain(eme);x_.context&&$P.unshift(x_.context),x_.query&&$P.splice($P.length-1,0,__assign$3(__assign$3({},x_.query),{__query:x_.query})),eme=createObjectFromChain($P)}return eme}}}).actions(function(x_){var eme=flow(function(tme){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return nme.trys.push([0,,3,4]),ame=tme(),ame!=null&&ame.then?[4,ame]:[3,2];case 1:nme.sent(),nme.label=2;case 2:return[3,4];case 3:return x_.ready=!0,[7];case 4:return[2]}})});return{updateContext:function($P){Object.assign(x_.context,$P)},setRuntimeError:function($P,tme){x_.runtimeError=$P,x_.runtimeErrorStack=tme},updateLocation:function($P,tme){var ame=tme?tme($P):parseQuery($P);isObjectShallowModified$1(ame,x_.query,!1)&&(x_.query=ame)},init:eme}});setLivelinessChecking("ignore");var allowedStoreList=[ServiceStore,FormStore,ComboStore,CRUDStore,TableStore,TableStore2,ListStore,ModalStore,FormItemStore,PaginationStore,AppStore],RendererStore=types.model("RendererStore",{storeType:"RendererStore"}).views(function(x_){return{get fetcher(){return getEnv(x_).fetcher},get notify(){return getEnv(x_).notify},get isCancel(){return getEnv(x_).isCancel},get __(){return getEnv(x_).translate},getStoreById:function(eme){return getStoreById(eme)},get stores(){return getStores()}}}).actions(function(x_){return{addStore:function(eme){if(eme.storeType===RootStore.name)return addStore(RootStore.create(eme,getEnv(x_)));var $P=find$3(allowedStoreList,function(tme){return tme.name===eme.storeType});return addStore($P.create(eme,getEnv(x_)))},removeStore:function(eme){removeStore(eme)}}}),normalizeLink=function(x_,eme){eme===void 0&&(eme=window.location),x_=x_||"",x_&&x_[0]==="#"?x_=eme.pathname+eme.search+x_:x_&&x_[0]==="?"&&(x_=eme.pathname+x_);var $P=x_.indexOf("?"),tme=x_.indexOf("#"),ame=x_,nme="",rme=eme.hash;if($P<tme?(ame=~$P?x_.substring(0,$P):~tme?x_.substring(0,tme):x_,rme=~tme?x_.substring(tme):eme.hash,nme=~$P?x_.substring($P,~tme?tme:void 0):""):$P>tme&&(ame=~tme?x_.substring(0,tme):~$P?x_.substring(0,$P):x_,rme=~tme?x_.substring(tme,~$P?$P:void 0):eme.hash,nme=~$P?x_.substring($P):""),!ame)ame=eme.pathname;else if(ame[0]!="/"&&!/^https?\:\/\//.test(ame)){var ime=eme.pathname,ome=ime.split("/");ome.pop();for(var lme=void 0;lme=/^\.\.?\//.exec(ame);)lme[0]==="../"&&ome.pop(),ame=ame.substring(lme[0].length);ame=ome.concat(ame).join("/")}var sme=$P<tme?nme+rme:rme+nme;return ame+sme},baseValues=_baseValues,keys$2=keys_1;function values$1(x_){return x_==null?[]:baseValues(x_,keys$2(x_))}var values_1=values$1;const values$2=getDefaultExportFromCjs(values_1);var rendererEventListeners=[];function createRendererEvent(x_,eme){var $P=Object.defineProperties({context:extendObject({pristineData:eme.data},eme),type:x_,prevented:!1,stoped:!1,preventDefault:function(){$P.prevented=!0},stopPropagation:function(){$P.stoped=!0},get data(){return $P.context.data},get pristineData(){return $P.context.pristineData},setData:function(tme){$P.context.data=tme},pendingPromise:[],allDone:function(){return Promise.all($P.pendingPromise)}},{context:{enumerable:!1},pristineData:{enumerable:!1},preventDefault:{enumerable:!1},stopPropagation:{enumerable:!1},setData:{enumerable:!1},pendingPromise:{enumerable:!1},allDone:{enumerable:!1}});return $P}var bindEvent=function(x_){var eme,$P,tme,ame,nme;if(x_){var rme=x_.props.$schema.onEvent;if(rme){var ime=function(cme){var dme=rendererEventListeners.find(function(ume){return ume.renderer===x_&&ume.type===cme});dme!=null&&dme.executing&&((ame=(tme=dme==null?void 0:dme.debounceInstance)===null||tme===void 0?void 0:tme.cancel)===null||ame===void 0||ame.call(tme),rendererEventListeners=rendererEventListeners.filter(function(ume){return!(ume.renderer===dme.renderer&&ume.type===dme.type)}),dme.actions.length&&rendererEventListeners.push({renderer:x_,type:cme,debounce:dme.debounce||null,track:rme[cme].track||null,weight:dme.weight||0,actions:dme.actions})),!dme&&(!((nme=rme[cme].actions)===null||nme===void 0)&&nme.length)&&rendererEventListeners.push({renderer:x_,type:cme,debounce:rme[cme].debounce||null,track:rme[cme].track||null,weight:rme[cme].weight||0,actions:rme[cme].actions})};try{for(var ome=__values$1(Object.keys(rme)),lme=ome.next();!lme.done;lme=ome.next()){var sme=lme.value;ime(sme)}}catch(cme){eme={error:cme}}finally{try{lme&&!lme.done&&($P=ome.return)&&$P.call(ome)}finally{if(eme)throw eme.error}}return function(cme){rendererEventListeners=rendererEventListeners.filter(function(dme){return cme===void 0?dme.renderer!==x_:dme.renderer!==x_||dme.type!==cme})}}}},bindGlobalEventForRenderer=function(x_){var eme,$P;if(x_){var tme=x_.props.$schema.onEvent,ame=[];if(tme){var nme=function(sme){var cme=tme[sme];if(!BroadcastChannel)return console.error("BroadcastChannel is not supported in your browser"),{value:void 0};var dme=new BroadcastChannel(sme);ame.push({renderer:x_,bc:dme}),dme.onmessage=function(ume){var fme,pme=ume.data,hme=pme.eventName,bme=pme.data,mme=createRendererEvent(hme,{env:(fme=x_==null?void 0:x_.props)===null||fme===void 0?void 0:fme.env,nativeEvent:hme,scoped:x_==null?void 0:x_.context,data:bme}),vme=cme.actions.filter(function(gme){return!(gme.actionType==="broadcast"&&gme.eventName===hme)});runActions(vme,x_,mme)}};try{for(var rme=__values$1(Object.keys(tme)),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value,lme=nme(ome);if(typeof lme=="object")return lme.value}}catch(sme){eme={error:sme}}finally{try{ime&&!ime.done&&($P=rme.return)&&$P.call(rme)}finally{if(eme)throw eme.error}}return function(){ame.filter(function(sme){return sme.renderer===x_}).forEach(function(sme){return sme.bc.close()})}}}};function dispatchEvent$2(x_,eme,$P,tme,ame){var nme,rme,ime,ome,lme,sme,cme,dme;return __awaiter(this,void 0,void 0,function(){var ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome=this;return __generator(this,function(Rme){switch(Rme.label){case 0:ume=null,fme=typeof x_=="string"?x_:x_.type,pme=(eme==null?void 0:eme.props.id)||(eme==null?void 0:eme.props.name)||"",debug("event","dispatch `".concat(fme,"` from 「").concat((eme==null?void 0:eme.props.type)||"unknown").concat(pme?"#".concat(pme):"","」"),tme),(ime=(rme=(nme=eme==null?void 0:eme.props)===null||nme===void 0?void 0:nme.env)===null||rme===void 0?void 0:rme.beforeDispatchEvent)===null||ime===void 0||ime.call(rme,x_,eme,$P,tme,ame);{if(hme=(lme=(ome=eme==null?void 0:eme.props)===null||ome===void 0?void 0:ome.onEvent)===null||lme===void 0?void 0:lme[fme],!hme)return[2,Promise.resolve()];ume=bindEvent(eme)}if(!rendererEventListeners.length)return[2,Promise.resolve()];bme=createRendererEvent(fme,{env:(sme=eme==null?void 0:eme.props)===null||sme===void 0?void 0:sme.env,nativeEvent:x_,data:tme,scoped:$P}),mme=rendererEventListeners.filter(function(Nme){return Nme.type===fme&&Nme.renderer===eme}).sort(function(Nme,Ime){return Ime.weight-Nme.weight}),vme=0,gme=function(){vme++,vme===mme.length&&(ume==null||ume(fme))},yme=function(Nme){var Ime,Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme;return __generator(this,function(Jme){switch(Jme.label){case 0:return Ime=(Nme==null?void 0:Nme.debounce)||{},Pme=Ime.wait,Mme=Pme===void 0?100:Pme,kme=Ime.trailing,Bme=kme===void 0?!0:kme,Dme=Ime.leading,jme=Dme===void 0?!1:Dme,Vme=Ime.maxWait,Wme=Vme===void 0?1e4:Vme,Nme!=null&&Nme.debounce?(Lme=debounce$6(function(){return __awaiter(Ome,void 0,void 0,function(){return __generator(this,function(Yme){switch(Yme.label){case 0:return[4,runActions(Nme.actions,Nme.renderer,bme)];case 1:return Yme.sent(),gme(),[2]}})})},Mme,{trailing:Bme,leading:jme,maxWait:Wme}),rendererEventListeners.forEach(function(Yme){Yme.renderer===Nme.renderer&&Nme.type===Yme.type&&(Yme.executing=!0,Yme.debounceInstance=Lme)}),Lme(),[3,3]):[3,1];case 1:return[4,runActions(Nme.actions,Nme.renderer,bme)];case 2:Jme.sent(),gme(),Jme.label=3;case 3:return Nme!=null&&Nme.track&&(zme=Nme.track,Ume=zme.id,Gme=zme.name,(dme=(cme=eme==null?void 0:eme.props)===null||cme===void 0?void 0:cme.env)===null||dme===void 0||dme.tracker({eventType:Nme.type,eventData:{trackId:Ume,trackName:Gme}})),bme.stoped?[2,"break"]:[2]}})},Rme.label=1;case 1:Rme.trys.push([1,6,7,8]),_me=__values$1(mme),$me=_me.next(),Rme.label=2;case 2:return $me.done?[3,5]:(Cme=$me.value,[5,yme(Cme)]);case 3:if(Sme=Rme.sent(),Sme==="break")return[3,5];Rme.label=4;case 4:return $me=_me.next(),[3,2];case 5:return[3,8];case 6:return Eme=Rme.sent(),xme={error:Eme},[3,8];case 7:try{$me&&!$me.done&&(Tme=_me.return)&&Tme.call(_me)}finally{if(xme)throw xme.error}return[7];case 8:return[2,Promise.resolve(bme)]}})})}function dispatchGlobalEvent(x_,eme){return __awaiter(this,void 0,void 0,function(){var $P;return __generator(this,function(tme){return BroadcastChannel?($P=new BroadcastChannel(x_),$P.postMessage({eventName:x_,data:eme}),$P.close(),[2]):(console.error("BroadcastChannel is not supported in your browser"),[2])})})}var resolveEventData=function(x_,eme,$P){var tme,ame,nme,rme;$P===void 0&&($P="value");var ime=(rme=(nme=x_.getData)===null||nme===void 0?void 0:nme.call(x_))!==null&&rme!==void 0?rme:x_.data;return createObject$1(ime,x_.name&&$P?__assign$3(__assign$3({},eme),(tme={},tme[x_.name]=eme[$P],tme.__rendererData=__assign$3(__assign$3({},ime),(ame={},ame[x_.name]=eme[$P],ame)),tme)):eme)};function getMatchedEventTargets(x_,eme,$P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme=this;return __generator(this,function(cme){switch(cme.label){case 0:return nme=[],typeof $P!="number"?[3,1]:(rme=x_[$P],rme&&nme.push(rme),[3,9]);case 1:return typeof $P!="string"?[3,5]:isExpression($P)?[4,resolveVariableAndFilterForAsync($P,eme)]:[3,3];case 2:return ime=cme.sent(),[3,4];case 3:ime=$P,cme.label=4;case 4:return $P=ime,$P.split(",").forEach(function(dme){if(dme=dme.trim(),dme){var ume=dme.split(".").map(function(pme){return parseInt(pme,10)}),fme=getTree(x_,ume);fme&&nme.push(fme)}}),[3,9];case 5:return tme?(ome=[],eachTree$1(x_,function(dme){var ume=dme.storeType?dme.data:dme;ome.push(function(){return __awaiter(sme,void 0,void 0,function(){var fme;return __generator(this,function(pme){switch(pme.label){case 0:return[4,evalExpressionWithConditionBuilderAsync(tme,createObject$1(eme,ume))];case 1:return fme=pme.sent(),fme&&nme.push(dme),[2]}})})})}),[4,Promise.all(ome.map(function(dme){return dme()}))]):[3,7];case 6:return cme.sent(),[3,9];case 7:return ame?(lme=[],eachTree$1(x_,function(dme,ume){var fme=dme.storeType?dme.data:dme;lme.push(function(){return __awaiter(sme,void 0,void 0,function(){var pme;return __generator(this,function(hme){return pme=evalExpression(ame,createObject$1(eme,{record:fme,rowIndex:ume,item:fme,index:ume,indexPath:dme.path})),pme&&nme.push(dme),[2]})})})}),[4,Promise.all(lme.map(function(dme){return dme()}))]):[3,9];case 8:cme.sent(),cme.label=9;case 9:return[2,nme]}})})}var LoopAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme,ame){var nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme;return __generator(this,function(_me){switch(_me.label){case 0:return ime=(nme=eme.args)===null||nme===void 0?void 0:nme.loopName,typeof ime!="string"?(console.error("loopName 必须是字符串类型"),[2]):(ome=resolveVariable(ime,ame)||[],ome?[3,1]:(console.error("没有找到数据 ".concat(ime)),[3,18]));case 1:return Array.isArray(ome)?[3,2]:(console.error("".concat(ime," 数据不是数组")),[3,18]);case 2:if(!(!((rme=eme.children)===null||rme===void 0)&&rme.length))return[3,18];lme=tme.data,_me.label=3;case 3:_me.trys.push([3,15,16,17]),sme=__values$1(ome),cme=sme.next(),_me.label=4;case 4:if(cme.done)return[3,14];dme=cme.value,$P.loopStatus=LoopStatus.NORMAL,tme.setData(createObject$1(tme.data,dme)),_me.label=5;case 5:_me.trys.push([5,10,11,12]),ume=(gme=void 0,__values$1(eme.children)),fme=ume.next(),_me.label=6;case 6:return fme.done?[3,9]:(pme=fme.value,$P.loopStatus===LoopStatus.CONTINUE?[3,8]:[4,runActions(pme,$P,tme)]);case 7:if(_me.sent(),$P.loopStatus===LoopStatus.BREAK||tme.stoped)return tme.setData(lme),tme.stopPropagation(),[3,9];_me.label=8;case 8:return fme=ume.next(),[3,6];case 9:return[3,12];case 10:return hme=_me.sent(),gme={error:hme},[3,12];case 11:try{fme&&!fme.done&&(yme=ume.return)&&yme.call(ume)}finally{if(gme)throw gme.error}return[7];case 12:if(tme.stoped)return tme.setData(lme),[3,14];_me.label=13;case 13:return cme=sme.next(),[3,4];case 14:return[3,17];case 15:return bme=_me.sent(),mme={error:bme},[3,17];case 16:try{cme&&!cme.done&&(vme=sme.return)&&vme.call(sme)}finally{if(mme)throw mme.error}return[7];case 17:$P.loopStatus=LoopStatus.NORMAL,tme.setData(lme),_me.label=18;case 18:return[2]}})})},x_}();registerAction("loop",new LoopAction);var BreakAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return $P.loopStatus=LoopStatus.BREAK,[2]})})},x_}();registerAction("break",new BreakAction);var ContinueAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return $P.loopStatus=LoopStatus.CONTINUE,[2]})})},x_}();registerAction("continue",new ContinueAction);var SwitchAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:dme.trys.push([0,6,7,8]),nme=__values$1(eme.children||[]),rme=nme.next(),dme.label=1;case 1:return rme.done?[3,5]:(ime=rme.value,ime.expression?[4,evalExpressionWithConditionBuilderAsync(ime.expression,ame)]:[3,4]);case 2:return ome=dme.sent(),ome?[4,runActions(ime,$P,tme)]:[3,4];case 3:return dme.sent(),[3,5];case 4:return rme=nme.next(),[3,1];case 5:return[3,8];case 6:return lme=dme.sent(),sme={error:lme},[3,8];case 7:try{rme&&!rme.done&&(cme=nme.return)&&cme.call(nme)}finally{if(sme)throw sme.error}return[7];case 8:return[2]}})})},x_}();registerAction("switch",new SwitchAction);var ParallelAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return eme.children&&eme.children.length?(ame=eme.children.map(function(rme){return runActions(rme,$P,tme)}),[4,Promise.all(ame)]):[3,2];case 1:nme.sent(),nme.label=2;case 2:return[2]}})})},x_}();registerAction("parallel",new ParallelAction);var CustomAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return rme=(nme=(ame=eme.args)===null||ame===void 0?void 0:ame.script)!==null&&nme!==void 0?nme:eme.script,typeof rme=="string"&&(rme=str2AsyncFunction(rme,"context","doAction","event")),ime=new Proxy({},{get:function(lme,sme,cme){var dme,ume;if(typeof sme=="string")return(ume=(dme=tme.context.scoped)===null||dme===void 0?void 0:dme.getComponentByName)===null||ume===void 0?void 0:ume.call(dme,sme)}}),[4,rme==null?void 0:rme.call(ime,$P,function(lme){return runActions(lme,$P,tme)},tme,eme)];case 1:return ome.sent(),[2]}})})},x_}();registerAction("custom",new CustomAction);var BroadcastAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme;return __awaiter(this,void 0,void 0,function(){var ime;return __generator(this,function(ome){switch(ome.label){case 0:return!(!((ame=eme.args)===null||ame===void 0)&&ame.eventName)&&!eme.eventName?(console.error("eventName 未定义，请定义事件名称"),[2]):(tme.setData(createObject$1(tme.data,(nme=eme.data)!==null&&nme!==void 0?nme:{})),ime=((rme=eme.args)===null||rme===void 0?void 0:rme.eventName)||eme.eventName,[4,dispatchGlobalEvent(ime,eme.data)]);case 1:return[2,ome.sent()]}})})},x_}();registerAction("broadcast",new BroadcastAction);var CmptAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme;return __awaiter(this,void 0,void 0,function(){var Bme,Dme,jme,Vme,Wme,Lme,zme,Kme,Ume,Gme,Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe;return __generator(this,function(ube){switch(ube.label){case 0:return Bme=eme.componentId||eme.componentName,Dme=eme.dataMergeMode||"merge",jme=(ame=eme.args)===null||ame===void 0?void 0:ame.path,eme.actionType==="setValue"&&jme&&typeof jme=="string"?(Vme=(rme=(nme=tme==null?void 0:tme.context)===null||nme===void 0?void 0:nme.env)===null||rme===void 0?void 0:rme.beforeSetData,Vme&&typeof Vme=="function"?[4,Vme($P,eme,tme)]:[3,2]):[3,2];case 1:if(Wme=ube.sent(),Wme===!1)return[2];ube.label=2;case 2:if(Lme=Bme?(ime=tme.context.scoped)===null||ime===void 0?void 0:ime[eme.componentId?"getComponentById":"getComponentByName"](Bme):$P,Bme&&!Lme){if(zme="尝试执行一个不存在的目标组件动作（".concat(Bme,"），请检查目标组件非隐藏状态，且正确指定了componentId或componentName"),eme.ignoreError===!1)throw Error(zme);console.warn(zme)}return eme.actionType==="setValue"?Lme!=null&&Lme.setData?[2,Lme==null?void 0:Lme.setData((ome=eme.args)===null||ome===void 0?void 0:ome.value,Dme==="override",(lme=eme.args)===null||lme===void 0?void 0:lme.index,(sme=eme.args)===null||sme===void 0?void 0:sme.condition)]:[2,(dme=Lme==null?void 0:(cme=Lme.props).onChange)===null||dme===void 0?void 0:dme.call(cme,(ume=eme.args)===null||ume===void 0?void 0:ume.value)]:eme.actionType!=="reload"?[3,4]:[4,(fme=Lme==null?void 0:Lme.reload)===null||fme===void 0?void 0:fme.call(Lme,void 0,eme.data,tme.data,void 0,Dme==="override",__assign$3(__assign$3({},eme.args),{resetPage:(hme=(pme=eme.args)===null||pme===void 0?void 0:pme.resetPage)!==null&&hme!==void 0?hme:eme.resetPage}))];case 3:return Kme=ube.sent(),Kme&&eme.outputVar&&tme.setData(extendObject(tme.data,(nbe={},nbe[eme.outputVar]=Kme,nbe))),[2,Kme];case 4:if(!(eme.actionType==="validateFormItem"&&(!((mme=getRendererByName((bme=Lme==null?void 0:Lme.props)===null||bme===void 0?void 0:bme.type))===null||mme===void 0)&&mme.isFormItem)))return[3,11];Ume=(Lme==null?void 0:Lme.props)||{},Gme=Ume.dispatchEvent,Jme=Ume.data,ube.label=5;case 5:return ube.trys.push([5,9,,10]),[4,(gme=Lme==null?void 0:(vme=Lme.props).onValidate)===null||gme===void 0?void 0:gme.call(vme)];case 6:return Qme=ube.sent(),Qme?[3,8]:[4,(yme=Lme==null?void 0:Lme.validate)===null||yme===void 0?void 0:yme.call(Lme)];case 7:Qme=ube.sent(),ube.label=8;case 8:return Yme=Qme,Yme?(tme.setData(createObject$1(tme.data,(lbe={},lbe[eme.outputVar||"".concat(eme.actionType,"Result")]={error:"",value:($me=(_me=Lme==null?void 0:Lme.props)===null||_me===void 0?void 0:_me.formItem)===null||$me===void 0?void 0:$me.value},lbe))),Gme&&Gme("formItemValidateSucc",Jme)):(tme.setData(createObject$1(tme.data,(ibe={},ibe[eme.outputVar||"".concat(eme.actionType,"Result")]={error:(((Sme=(Cme=Lme==null?void 0:Lme.props)===null||Cme===void 0?void 0:Cme.formItem)===null||Sme===void 0?void 0:Sme.errors)||[]).join(","),value:(xme=(Eme=Lme==null?void 0:Lme.props)===null||Eme===void 0?void 0:Eme.formItem)===null||xme===void 0?void 0:xme.value},ibe))),Gme&&Gme("formItemValidateError",Jme)),[3,10];case 9:return Xme=ube.sent(),tme.setData(createObject$1(tme.data,(abe={},abe[eme.outputVar||"".concat(eme.actionType,"Result")]={error:Xme.message||"未知错误",value:(Ome=(Tme=Lme==null?void 0:Lme.props)===null||Tme===void 0?void 0:Tme.formItem)===null||Ome===void 0?void 0:Ome.value},abe))),Gme&&Gme("formItemValidateError",Jme),[3,10];case 10:return[2];case 11:return ube.trys.push([11,13,,14]),[4,(Rme=Lme==null?void 0:Lme.doAction)===null||Rme===void 0?void 0:Rme.call(Lme,eme,tme.data,!0,eme.args)];case 12:return Kme=ube.sent(),["validate","submit"].includes(eme.actionType)&&tme.setData(createObject$1(tme.data,(obe={},obe[eme.outputVar||"".concat(eme.actionType,"Result")]={error:"",payload:(Nme=Kme==null?void 0:Kme.__payload)!==null&&Nme!==void 0?Nme:(Pme=(Ime=Lme==null?void 0:Lme.props)===null||Ime===void 0?void 0:Ime.store)===null||Pme===void 0?void 0:Pme.data,responseData:Kme==null?void 0:Kme.__response},obe))),[2,Kme];case 13:return Zme=ube.sent(),tme.setData(createObject$1(tme.data,(hbe={},hbe[eme.outputVar||"".concat(eme.actionType,"Result")]={error:Zme.message,errors:Zme.name==="ValidateError"?Zme.detail:Zme,payload:(kme=(Mme=Lme==null?void 0:Lme.props)===null||Mme===void 0?void 0:Mme.store)===null||kme===void 0?void 0:kme.data},hbe))),[3,14];case 14:return[2]}})})},x_}();registerAction("component",new CmptAction);var StatusAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome;return __generator(this,function(lme){return rme=eme.componentId||eme.componentName,["show","hidden","visibility"].includes(eme.actionType)?(ime=eme.actionType==="visibility"?(ame=eme.args)===null||ame===void 0?void 0:ame.value:eme.actionType==="show",[2,$P.props.statusStore.setVisible(rme,ime)]):["static","nonstatic"].includes(eme.actionType)?[2,$P.props.statusStore.setStatic(rme,eme.actionType==="static")]:["enabled","disabled","usability"].includes(eme.actionType)?(ome=eme.actionType==="usability"?!(!((nme=eme.args)===null||nme===void 0)&&nme.value):eme.actionType==="disabled",[2,$P.props.statusStore.setDisable(rme,ome)]):[2]})})},x_}();registerAction("status",new StatusAction);var AjaxAction=function(){function x_(eme){eme===void 0&&(eme="ajax"),this.fetcherType=eme}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme;return __awaiter(this,void 0,void 0,function(){var bme,mme,vme,gme,yme,Sme,_me,$me,Cme,Sme,Eme;return __generator(this,function(xme){switch(xme.label){case 0:if(!(!((ame=tme.context.env)===null||ame===void 0)&&ame.fetcher))throw new Error("env.fetcher is required!");if(!eme.api)throw new Error("api is required!");return this.fetcherType==="download"&&eme.actionType==="download"&&eme.api&&(eme.api.responseType="blob"),bme=tme.context.env,mme=((nme=eme==null?void 0:eme.options)===null||nme===void 0?void 0:nme.silent)||(eme==null?void 0:eme.api).silent,vme=(rme=eme==null?void 0:eme.api)===null||rme===void 0?void 0:rme.messages,gme=normalizeApi(eme.api),gme.sendOn===void 0?[3,2]:[4,evalExpressionWithConditionBuilderAsync(gme.sendOn,(ime=eme.data)!==null&&ime!==void 0?ime:{},!1)];case 1:if(yme=xme.sent(),!yme)return[2];xme.label=2;case 2:(gme==null?void 0:gme.data)==null&&(gme=__assign$3(__assign$3({},gme),{data:{}})),xme.label=3;case 3:return xme.trys.push([3,5,,6]),[4,bme.fetcher(gme,(ome=eme.data)!==null&&ome!==void 0?ome:{},(lme=eme==null?void 0:eme.options)!==null&&lme!==void 0?lme:{})];case 4:if(Sme=xme.sent(),_me=!isEmpty$2(Sme.data)||Sme.ok?normalizeApiResponseData(Sme.data):null,tme.setData(createObject$1(tme.data,__assign$3(__assign$3({},_me),(Eme={responseData:_me},Eme[eme.outputVar||"responseResult"]=__assign$3(__assign$3({},_me),{responseData:_me,responseStatus:Sme.status,responseMsg:Sme.msg}),Eme)))),!mme)if(Sme.ok)$me=(hme=(pme=(ume=vme==null?void 0:vme.success)!==null&&ume!==void 0?ume:(fme=eme.messages)===null||fme===void 0?void 0:fme.success)!==null&&pme!==void 0?pme:Sme.msg)!==null&&hme!==void 0?hme:Sme.defaultMsg,$me&&bme.notify("success",$me,Sme.msgTimeout!==void 0?{closeButton:!0,timeout:Sme.msgTimeout}:void 0);else throw new ServerError$2((dme=(sme=vme==null?void 0:vme.failed)!==null&&sme!==void 0?sme:(cme=eme.messages)===null||cme===void 0?void 0:cme.failed)!==null&&dme!==void 0?dme:Sme.msg,Sme);return[2,Sme.data];case 5:return Cme=xme.sent(),mme||(Cme.type==="ServerError"?(Sme=Cme.response,bme.notify("error",Cme.message,Sme.msgTimeout!==void 0?{closeButton:!0,timeout:Sme.msgTimeout}:void 0)):bme.notify("error",Cme.message)),[3,6];case 6:return[2]}})})},x_}();registerAction("ajax",new AjaxAction);registerAction("download",new AjaxAction("download"));var CopyAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(lme){if(!(!((ame=tme.context.env)===null||ame===void 0)&&ame.copy))throw new Error("env.copy is required!");return!((nme=eme.args)===null||nme===void 0)&&nme.content&&((ime=(rme=tme.context.env)===null||rme===void 0?void 0:rme.copy)===null||ime===void 0||ime.call(rme,eme.args.content,{format:(ome=eme.args)===null||ome===void 0?void 0:ome.copyFormat})),[2]})})},x_}();registerAction("copy",new CopyAction);var DialogAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return eme.$$id!==void 0?[2]:(rme=$P.handleAction?$P.handleAction(tme,{actionType:"dialog",dialog:eme.dialog,reload:"none",data:eme.rawData},eme.data):(nme=(ame=$P.props).onAction)===null||nme===void 0?void 0:nme.call(ame,tme,{actionType:"dialog",dialog:eme.dialog,reload:"none",data:eme.rawData},eme.data),tme.pendingPromise.push(rme),eme.waitForAction?[4,rme]:[3,2]);case 1:ime=cme.sent(),ome=ime.confirmed,lme=ime.value,tme.setData(extendObject(tme.data,(sme={},sme[eme.outputVar||"dialogResponse"]={confirmed:ome,value:lme},sme))),cme.label=2;case 2:return[2]}})})},x_}(),CloseDialogAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(rme){return eme.componentId?tme.context.scoped.closeById(eme.componentId):(nme=(ame=$P.props).onAction)===null||nme===void 0||nme.call(ame,tme,__assign$3(__assign$3({},eme),{actionType:"close"}),eme.data),[2]})})},x_}(),AlertAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(fme){return(nme=(ame=tme.context.env).alert)===null||nme===void 0||nme.call(ame,(ime=filter$1((rme=eme.dialog)===null||rme===void 0?void 0:rme.msg,tme.data))!==null&&ime!==void 0?ime:(ome=eme.args)===null||ome===void 0?void 0:ome.msg,(sme=filter$1((lme=eme.dialog)===null||lme===void 0?void 0:lme.title,tme.data))!==null&&sme!==void 0?sme:(cme=eme.args)===null||cme===void 0?void 0:cme.title,(ume=filter$1((dme=eme.dialog)===null||dme===void 0?void 0:dme.className,tme.data))!==null&&ume!==void 0?ume:""),[2]})})},x_}(),ConfirmAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me;return __awaiter(this,void 0,void 0,function(){var $me,Cme,Sme,Eme;return __generator(this,function(xme){switch(xme.label){case 0:return $me=(ame=eme.dialog)!==null&&ame!==void 0?ame:eme.args,$me.$ref&&$P.props.resolveDefinitions&&($me=__assign$3(__assign$3({},$P.props.resolveDefinitions($me.$ref)),$me)),Cme=$me==null?void 0:$me.type,Cme?[3,2]:[4,(rme=(nme=tme.context.env).confirm)===null||rme===void 0?void 0:rme.call(nme,filter$1($me==null?void 0:$me.msg,tme.data)||((ime=eme.args)===null||ime===void 0?void 0:ime.msg),filter$1((ome=eme.dialog)===null||ome===void 0?void 0:ome.title,tme.data)||((lme=eme.args)===null||lme===void 0?void 0:lme.title),{closeOnEsc:filter$1((sme=eme.dialog)===null||sme===void 0?void 0:sme.closeOnEsc,tme.data)||((cme=eme.args)===null||cme===void 0?void 0:cme.closeOnEsc),size:filter$1((dme=eme.dialog)===null||dme===void 0?void 0:dme.size,tme.data)||((ume=eme.args)===null||ume===void 0?void 0:ume.size),confirmText:filter$1((fme=eme.dialog)===null||fme===void 0?void 0:fme.confirmText,tme.data)||((pme=eme.args)===null||pme===void 0?void 0:pme.confirmText),cancelText:filter$1((hme=eme.dialog)===null||hme===void 0?void 0:hme.cancelText,tme.data)||((bme=eme.args)===null||bme===void 0?void 0:bme.cancelText),confirmBtnLevel:filter$1((mme=eme.dialog)===null||mme===void 0?void 0:mme.confirmBtnLevel,tme.data)||((vme=eme.args)===null||vme===void 0?void 0:vme.confirmBtnLevel),cancelBtnLevel:filter$1((gme=eme.dialog)===null||gme===void 0?void 0:gme.cancelBtnLevel,tme.data)||((yme=eme.args)===null||yme===void 0?void 0:yme.cancelBtnLevel),className:filter$1((_me=eme.dialog)===null||_me===void 0?void 0:_me.className,tme.data)||""})];case 1:return Sme=xme.sent(),[2,Sme];case 2:return[4,new Promise(function(Tme,Ome){var Rme,Nme;$P.handleAction?$P.handleAction(tme,{actionType:"dialog",dialog:$me,data:eme.rawData,reload:"none",callback:function(Ime){return Tme(Ime)}},eme.data):(Nme=(Rme=$P.props).onAction)===null||Nme===void 0||Nme.call(Rme,tme,{actionType:"dialog",dialog:$me,data:eme.rawData,reload:"none",callback:function(Ime){return Tme(Ime)}},eme.data)})];case 3:return Eme=xme.sent(),[2,Eme]}})})},x_}();registerAction("dialog",new DialogAction);registerAction("closeDialog",new CloseDialogAction);registerAction("alert",new AlertAction);registerAction("confirmDialog",new ConfirmAction);var DrawerAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return eme.$$id!==void 0?[2]:(rme=$P.handleAction?$P.handleAction(tme,{actionType:"drawer",drawer:eme.drawer,reload:"none",data:eme.rawData},eme.data):(nme=(ame=$P.props).onAction)===null||nme===void 0?void 0:nme.call(ame,tme,{actionType:"drawer",drawer:eme.drawer,reload:"none",data:eme.rawData},eme.data),tme.pendingPromise.push(rme),eme.waitForAction?[4,rme]:[3,2]);case 1:ime=cme.sent(),ome=ime.confirmed,lme=ime.value,tme.setData(extendObject(tme.data,(sme={},sme[eme.outputVar||"drawerResponse"]={confirmed:ome,value:lme},sme))),cme.label=2;case 2:return[2]}})})},x_}(),CloseDrawerAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(rme){return eme.componentId?tme.context.scoped.closeById(eme.componentId):(nme=(ame=$P.props).onAction)===null||nme===void 0||nme.call(ame,tme,__assign$3(__assign$3({},eme),{actionType:"close"}),eme.data),[2]})})},x_}();registerAction("drawer",new DrawerAction);registerAction("closeDrawer",new CloseDrawerAction);var EmailAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme;return __generator(this,function(sme){return rme=(ame=eme.args)===null||ame===void 0?void 0:ame.to,ime=pick$3((nme=eme.args)!==null&&nme!==void 0?nme:{},"cc","bcc","subject","body"),ome=qs$1.stringify(ime),lme="mailto:".concat(rme,"?").concat(ome),window.open(lme),[2]})})},x_}();registerAction("email",new EmailAction);var EventAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame;return __awaiter(this,void 0,void 0,function(){var nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:switch(nme=eme.actionType,nme){case"setEventData":return[3,1];case"preventDefault":return[3,5];case"stopPropagation":return[3,6]}return[3,7];case 1:return typeof((ame=eme.args)===null||ame===void 0?void 0:ame.key)!="string"?[3,4]:(rme=cloneObject$2(tme.data),ime=eme.args.value,isExpression(ime)?[4,resolveVariableAndFilterForAsync(ime,tme.data,"| raw")]:[3,3]);case 2:ime=ome.sent(),ome.label=3;case 3:setVariable(rme,eme.args.key,ime),tme.setData(rme),ome.label=4;case 4:return[3,7];case 5:return tme.preventDefault(),[3,7];case 6:return tme.stopPropagation(),[3,7];case 7:return[2]}})})},x_}();registerAction("setEventData",new EventAction);registerAction("preventDefault",new EventAction);registerAction("stopPropagation",new EventAction);var LinkAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme,sme,cme;return __awaiter(this,void 0,void 0,function(){var dme,ume;return __generator(this,function(fme){if(!(!((ame=tme.context.env)===null||ame===void 0)&&ame.jumpTo))throw new Error("env.jumpTo is required!");return dme=__assign$3(__assign$3({},(rme=(nme=eme.args)===null||nme===void 0?void 0:nme.params)!==null&&rme!==void 0?rme:{}),(ime=eme.data)!==null&&ime!==void 0?ime:{}),(eme==null?void 0:eme.actionType)==="link"&&(dme!=null&&dme.targetType)&&delete dme.targetType,ume=buildApi({url:((ome=eme.args)===null||ome===void 0?void 0:ome.url)||((lme=eme.args)===null||lme===void 0?void 0:lme.link),method:"get"},dme,{autoAppend:!0}),(sme=tme.context.env)===null||sme===void 0||sme.jumpTo(ume.url,__assign$3({actionType:eme.actionType,type:"button"},eme.args),(cme=eme.data)!==null&&cme!==void 0?cme:{}),[2]})})},x_}();registerAction("openlink",new LinkAction);var ToastAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(lme){if(!(!((ame=tme.context.env)===null||ame===void 0)&&ame.notify))throw new Error("env.notify is required!");return(rme=(nme=tme.context.env)===null||nme===void 0?void 0:nme.notify)===null||rme===void 0||rme.call(nme,((ime=eme.args)===null||ime===void 0?void 0:ime.msgType)||"info",String((ome=eme.args)===null||ome===void 0?void 0:ome.msg),__assign$3(__assign$3({},eme.args),{mobileUI:$P.props.mobileUI})),[2]})})},x_}();registerAction("toast",new ToastAction);var WaitAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame;return __awaiter(this,void 0,void 0,function(){var nme;return __generator(this,function(rme){switch(rme.label){case 0:return nme=(ame=eme.args)===null||ame===void 0?void 0:ame.time,typeof nme!="number"?[3,2]:[4,new Promise(function(ime){return setTimeout(ime,nme)})];case 1:rme.sent(),rme.label=2;case 2:return[2]}})})},x_}();registerAction("wait",new WaitAction);var PageGoBackAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return window.history.back(),[2]})})},x_}(),PageGoAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(nme){return window.history.go(((ame=eme.args)===null||ame===void 0?void 0:ame.delta)||0),[2]})})},x_}(),PageRefreshAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return window.location.reload(),[2]})})},x_}();registerAction("goBack",new PageGoBackAction);registerAction("refresh",new PageRefreshAction);registerAction("goPage",new PageGoAction);var hideFromPrintClass="pe-no-print",preservePrintClass="pe-preserve-print",preserveAncestorClass="pe-preserve-ancestor",bodyElementName="BODY";function hide(x_){x_.classList.contains(preservePrintClass)||x_.classList.add(hideFromPrintClass)}function preserve(x_,eme){x_.classList.remove(hideFromPrintClass),x_.classList.add(preservePrintClass),eme||x_.classList.add(preserveAncestorClass)}function clean$1(x_){x_.classList.remove(hideFromPrintClass),x_.classList.remove(preservePrintClass),x_.classList.remove(preserveAncestorClass)}function walkSiblings(x_,eme){for(var $P=x_.previousElementSibling;$P;)eme($P),$P=$P.previousElementSibling;for($P=x_.nextElementSibling;$P;)eme($P),$P=$P.nextElementSibling}function attachPrintClasses(x_,eme){preserve(x_,eme),walkSiblings(x_,hide)}function cleanup(x_,eme){clean$1(x_),walkSiblings(x_,clean$1)}function walkTree(x_,eme){var $P=x_;for(eme($P,!0),$P=$P.parentElement;$P&&$P.nodeName!==bodyElementName;)eme($P,!1),$P=$P.parentElement}function printElements(x_){for(var eme=0;eme<x_.length;eme++)walkTree(x_[eme],attachPrintClasses);window.print();for(var eme=0;eme<x_.length;eme++)walkTree(x_[eme],cleanup)}var PrintAction=function(){function x_(){}return x_.prototype.run=function(eme,$P,tme){var ame,nme,rme,ime;return __awaiter(this,void 0,void 0,function(){var ome,lme,sme;return __generator(this,function(cme){return eme.componentId?(ome=(ame=tme.context.scoped)===null||ame===void 0?void 0:ame.getComponentById(eme.componentId),(nme=ome==null?void 0:ome.doAction)===null||nme===void 0||nme.call(ome,eme,tme.data,!0,eme.args),[2]):(!((rme=eme.args)===null||rme===void 0)&&rme.id?(lme=document.querySelector("[data-id='".concat(eme.args.id,"']")),lme&&printElements([lme])):!((ime=eme.args)===null||ime===void 0)&&ime.ids&&(sme=[],eme.args.ids.forEach(function(dme){var ume=document.querySelector("[data-id='".concat(dme,"']"));ume&&sme.push(ume)}),printElements(sme)),[2])})})},x_}();registerAction("print",new PrintAction);function filterTarget(x_,eme){var $P=x_.indexOf("?");return~$P?filter$1(x_.slice(0,$P),eme)+x_.slice($P):filter$1(x_,eme,"| raw")}function splitTarget(x_){try{var eme=memoParse(x_),$P=[];if(eme.body.forEach(function(ame){if(ame.type==="raw"){var nme=ame.value.split(",");if(nme.length>1){nme.pop();var rme=ame.start.index;nme.forEach(function(ime){$P.push(rme+ime.length),rme+=ime.length+1})}}}),$P.length){var tme=[];return $P.reduceRight(function(ame,nme){var rme;return ame.unshift((rme=x_.slice(nme+1))===null||rme===void 0?void 0:rme.trim()),x_=x_.slice(0,nme),ame},tme),tme.unshift(x_),tme}}catch{}return[x_]}var rootScopedContext=createScopedTools(""),ScopedContext=React__default.createContext(rootScopedContext);function createScopedTools(x_,eme,$P,tme){var ame=[],nme={rendererType:tme,component:void 0,parent:eme,registerComponent:function(rme){if(rme.props.$path===x_&&eme)return nme.component=rme,eme.registerComponent(rme);~ame.indexOf(rme)||ame.push(rme)},unRegisterComponent:function(rme){if(rme.props.$path===x_&&eme){var ime=eme.children.indexOf(nme);return~ime&&eme.children.splice(ime,1),eme.unRegisterComponent(rme)}var ome=ame.indexOf(rme);~ome&&ame.splice(ome,1)},getComponentByName:function(rme){if(~rme.indexOf(".")){var ime=rme.split("."),ome=ime.length;return ime.reduce(function(sme,cme,dme){if(sme&&sme.getComponentByName){var ume=sme.getComponentByName(cme);return ume&&dme<ome-1?ume.context:ume}return null},this)}var lme=find$3(ame,function(sme){return filter$1(sme.props.name,sme.props.data)===rme||sme.props.id===rme});return lme||eme&&eme.getComponentByName(rme)},getComponentByIdUnderCurrentScope:function(rme,ime){var ome=void 0;return findTree([this],function(lme){return lme!==ime&&lme.getComponents().find(function(sme){return filter$1(sme.props.id,sme.props.data)===rme?(ome=sme,!0):!1})}),ome},getComponentById:function(rme){for(var ime=this,ome=void 0;ime;){var lme=ime.getComponentByIdUnderCurrentScope(rme,ome);if(lme)return lme;if(!ime.parent||ime.parent===rootScopedContext)break;ome=ime,ime=ime.parent}},getComponentsByRefPath:function(rme,ime){if(!ime||typeof ime!="string")return[];for(var ome={},lme=this;lme.parent;)lme=lme.parent;return eachTree$1([lme],function(sme){var cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme=sme.getComponents()||[];if(Array.isArray(yme))try{for(var _me=__values$1(yme),$me=_me.next();!$me.done;$me=_me.next()){var Cme=$me.value,Sme=(hme=(pme=Cme==null?void 0:Cme.props)===null||pme===void 0?void 0:pme.$path)!==null&&hme!==void 0?hme:"unknown",Eme=(mme=(bme=Cme==null?void 0:Cme.props)===null||bme===void 0?void 0:bme.$schema)!==null&&mme!==void 0?mme:{},xme=(gme=(vme=Cme==null?void 0:Cme.props.env)===null||vme===void 0?void 0:vme.session)!==null&&gme!==void 0?gme:"global";if(!(ome[Sme]||rme!==xme)){if(Cme!=null&&Cme.setData&&typeof Cme.setData=="function"){ome[Sme]=Cme;continue}try{for(var Tme=(ume=void 0,__values$1(Object.keys(Eme))),Ome=Tme.next();!Ome.done;Ome=Tme.next()){var Rme=Ome.value,Nme=Eme[Rme];if(typeof Nme=="string"&&isPureVariable(Nme)){var Ime=Nme.substring(2,Nme.length-1).split("|")[0];if(Ime&&Ime===ime){ome[Sme]=Cme;break}}}}catch(Pme){ume={error:Pme}}finally{try{Ome&&!Ome.done&&(fme=Tme.return)&&fme.call(Tme)}finally{if(ume)throw ume.error}}}}}catch(Pme){cme={error:Pme}}finally{try{$me&&!$me.done&&(dme=_me.return)&&dme.call(_me)}finally{if(cme)throw cme.error}}}),values$2(ome)},getComponents:function(){return ame.concat()},reload:function(rme,ime){var ome=this,lme=typeof rme=="string"?splitTarget(rme):rme;lme.forEach(function(sme){var cme=sme.indexOf("?"),dme=null;if(~cme){var ume=qsparse(sme.substring(cme+1).replace(/\$\{(.*?)\}/,function(mme,vme){return"${"+encodeURIComponent(vme)+"}"}));dme=dataMapping(ume,ime),sme=sme.substring(0,cme)}var fme=sme.indexOf("."),pme="";if(~fme&&(pme=sme.substring(1+fme),sme=sme.substring(0,fme)),sme==="window")if(dme){var hme=location.pathname+"?"+qsstringify(dme);$P?$P.updateLocation(hme,!0):location.replace(hme)}else location.reload();else{var bme=ome.getComponentByName(sme)||ome.getComponentById(sme);bme&&bme.reload&&bme.reload(pme,dme,ime)}})},send:function(rme,ime){var ome=this,lme=typeof rme=="string"?splitTarget(rme):rme;lme.forEach(function(sme){var cme=sme.indexOf("?");if(~cme){var dme=sme.substring(cme+1),ume=qsparse(dme.replace(/\$\{(.*?)\}/,function(mme,vme){return"${"+encodeURIComponent(vme)+"}"}));sme=sme.substring(0,cme),ime=dataMapping(ume,ime)}var fme=sme.indexOf("."),pme="";~fme&&(pme=sme.substring(1+fme),sme=sme.substring(0,fme));var hme=ome.getComponentByName(sme);if(hme&&hme.receive)hme.receive(ime,pme);else if(sme==="window"&&$P&&$P.updateLocation){var dme=__assign$3(__assign$3({},parseQuery(location)),ime),bme=location.pathname+"?"+qsstringify(dme);$P.updateLocation(bme,!0)}})},close:function(rme){var ime=this;typeof rme=="string"&&splitTarget(rme).map(function(ome){return ime.getComponentByName(ome)}).filter(function(ome){return ome&&ome.props.show}).forEach(closeDialog)},closeById:function(rme){var ime=this,ome=ime.getComponentById(rme);ome&&ome.props.show&&closeDialog(ome)},doAction:function(rme,ime){return __awaiter(this,void 0,void 0,function(){var ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return ome=this.getComponents()[0],lme=createRendererEvent("embed",{env:$P,nativeEvent:void 0,data:createObject$1(ome.props.data,ime),scoped:this}),[4,runActions(rme,ome,lme)];case 1:return sme.sent(),lme.prevented?[2]:[2]}})})}};return registerFunction("GETRENDERERDATA",function(rme,ime,ome){var lme;ome===void 0&&(ome=nme);var sme=ome.getComponentById(rme),cme=(lme=sme==null?void 0:sme.getData)===null||lme===void 0?void 0:lme.call(sme);if(ime){var dme=getVariable(cme,ime);return dme}return cme}),registerFunction("GETRENDERERPROP",function(rme,ime,ome){ome===void 0&&(ome=nme);var lme=ome.getComponentById(rme),sme=lme==null?void 0:lme.props;if(ime){var cme=getVariable(sme,ime);return cme}return sme}),eme&&(!eme.children&&(eme.children=[]),eme.children.push(nme)),nme}function closeDialog(x_){x_.context.getComponents().filter(function(eme){return eme&&(eme.props.type==="dialog"||eme.props.type==="drawer")&&eme.props.show}).forEach(closeDialog),x_.props.onClose&&x_.props.onClose()}function HocScoped(x_,eme){var $P=function(tme){__extends$2(ame,tme);function ame(nme,rme){var ime=tme.call(this,nme)||this;ime.scoped=createScopedTools(ime.props.$path,rme,ime.props.env,eme);var ome=nme.scopeRef;return ome&&ome(ime.scoped),ime}return ame.prototype.getWrappedInstance=function(){return this.ref},ame.prototype.childRef=function(nme){for(;nme&&nme.getWrappedInstance;)nme=nme.getWrappedInstance();this.ref=nme},ame.prototype.componentWillUnmount=function(){var nme=this.props.scopeRef;nme&&nme(null),delete this.scoped},ame.prototype.render=function(){var nme=this.props;nme.scopeRef;var rme=__rest$14(nme,["scopeRef"]);return React__default.createElement(ScopedContext.Provider,{value:this.scoped},React__default.createElement(x_,__assign$3({},rme,{ref:this.childRef})))},ame.displayName="Scoped(".concat(x_.displayName||x_.name,")"),ame.contextType=ScopedContext,ame.ComposedComponent=x_,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],ame.prototype,"childRef",null),ame}(React__default.Component);return hoistNonReactStatics($P,x_),$P}function filterClassNameObject(x_,eme){eme===void 0&&(eme={});var $P=x_;return x_&&typeof x_=="string"?$P=tokenize(x_,eme):x_&&isPlainObject$b(x_)&&($P=mapObject(x_,function(tme){return typeof tme=="string"?evalExpression(tme,eme):tme},void 0,function(tme){return tokenize(tme,eme)})),$P}function getExprProperties(x_,eme,$P,tme){eme===void 0&&(eme={}),$P===void 0&&($P=["addOn","ref"]);var ame={},nme=null;return Object.getOwnPropertyNames(x_).forEach(function(rme){if(!($P&&~$P.indexOf(rme))){var ime=/^(.*)(On|Expr|(?:c|C)lassName)(Raw)?$/.exec(rme),ome=ime==null?void 0:ime[2],lme=x_[rme];lme&&(typeof lme=="string"||Object.prototype.toString.call(lme)==="[object Object]")&&(ime!=null&&ime[1])&&(ome==="On"||ome==="Expr")?(rme=ime[1],(ome==="On"||ome==="Expr")&&(!nme&&tme&&typeof lme=="string"&&~lme.indexOf("__props")&&(nme=injectPropsToObject(eme,{__props:tme})),ome==="On"?lme=(tme==null?void 0:tme[rme])||evalExpressionWithConditionBuilder(lme,nme||eme):lme=filter$1(lme,nme||eme)),ame[rme]=lme):(ome==="className"||ome==="ClassName")&&!(tme!=null&&tme[rme])&&lme&&(typeof lme=="string"||isPlainObject$b(lme))&&(ame["".concat(rme,"Raw")]=lme,ame[rme]=filterClassNameObject(lme,eme))}}),ame}function hasExprPropertiesChanged(x_,eme){return Object.getOwnPropertyNames(x_).some(function($P){var tme=/^(.*)(On|Expr|(?:c|C)lassName)(Raw)?$/.exec($P);return tme?x_[$P]!==eme[$P]:!1})}var RootStoreContext=React__default.createContext(void 0);function withRootStore(x_){var eme,$P=hoistNonReactStatics((eme=function(tme){__extends$2(ame,tme);function ame(nme){var rme=tme.call(this,nme)||this;return rme.refFn=rme.refFn.bind(rme),rme}return ame.prototype.getWrappedInstance=function(){return this.ref.control},ame.prototype.refFn=function(nme){this.ref=nme},ame.prototype.render=function(){var nme=this.context,rme={rootStore:nme};return React__default.createElement(x_,__assign$3({},this.props,rme,{ref:this.refFn}))},ame}(React__default.Component),eme.displayName="WithRootStore(".concat(x_.displayName||x_.name,")"),eme.contextType=RootStoreContext,eme.ComposedComponent=x_,eme),x_);return $P}function ignoreSchemaProps(x_,eme){return!!(["clickAction"].includes(x_)&&typeof eme!="string")}function HocStoreFactory(x_){return function(eme){var $P=function(tme){__extends$2(ame,tme);function ame(nme,rme){var ime=tme.call(this,nme)||this,ome=rme;ime.renderChild=ime.renderChild.bind(ime),ime.refFn=ime.refFn.bind(ime);var lme=ome.addStore({id:guid$1(),path:ime.props.$path,storeType:x_.storeType,parentId:ime.props.store?ime.props.store.id:""});lme.setTopStore(nme.topStore),ime.store=lme;var sme=typeof x_.extendsData=="function"?x_.extendsData(nme):x_.extendsData;sme===!1?lme.initData(createObject$1(ime.props.data?ime.props.data.__super:null,__assign$3(__assign$3({},ime.formatData(dataMapping(ime.props.defaultData,ime.props.data,ignoreSchemaProps))),ime.formatData(ime.props.data)))):ime.props.scope||ime.props.data&&ime.props.data.__super?ime.props.store&&ime.props.data===ime.props.scope?lme.initData(createObject$1(ime.props.store.data,__assign$3({},ime.formatData(dataMapping(ime.props.defaultData,ime.props.data,ignoreSchemaProps))))):lme.initData(createObject$1(ime.props.data.__super||ime.props.scope,__assign$3(__assign$3({},ime.formatData(dataMapping(ime.props.defaultData,ime.props.data,ignoreSchemaProps))),ime.formatData(ime.props.data)))):lme.initData(__assign$3(__assign$3({},ime.formatData(dataMapping(ime.props.defaultData,ime.props.data,ignoreSchemaProps))),ime.formatData(ime.props.data))),ime.state={};var cme=nme.detectField,dme=__rest$14(nme,["detectField"]),ume={};return(!cme||cme==="data")&&(ume=getExprProperties(dme,lme.data),ime.state=__assign$3({},ume),ime.unReaction=reaction(function(){return JSON.stringify(getExprProperties(ime.props,lme.data))},function(){return ime.setState(__assign$3({},getExprProperties(ime.props,lme.data)))})),ime}return ame.prototype.getWrappedInstance=function(){return this.ref},ame.prototype.refFn=function(nme){this.ref=nme},ame.prototype.formatData=function(nme){return Array.isArray(nme)?{items:nme}:nme},ame.prototype.componentDidUpdate=function(nme){var rme=this,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me=this.props,Cme=this.store;if((!$me.detectField||$me.detectField==="data")&&hasExprPropertiesChanged(this.props,nme)){var Sme=getExprProperties(this.props,Cme.data);isObjectShallowModified$1(Sme,this.state)&&this.setState(Sme),(ime=this.unReaction)===null||ime===void 0||ime.call(this),this.unReaction=reaction(function(){return getExprProperties(rme.props,Cme.data)},function(Tme){return rme.setState(Tme)})}var Eme=(ome=x_.shouldSyncSuperStore)===null||ome===void 0?void 0:ome.call(x_,Cme,$me,nme);if(Eme!==!1){var xme=typeof x_.extendsData=="function"?x_.extendsData($me):x_.extendsData;xme===!1?(Eme===!0||nme.defaultData!==$me.defaultData||($me.trackExpression?tokenize($me.trackExpression,$me.data)!==tokenize($me.trackExpression,nme.data):isObjectShallowModified$1(nme.data,$me.data)||$me.data&&nme.data&&$me.data.__super!==nme.data.__super))&&Cme.initData(extendObject($me.data,__assign$3(__assign$3(__assign$3(__assign$3({},this.formatData(dataMapping(this.props.defaultData,this.props.data,ignoreSchemaProps))),Cme.hasRemoteData?Cme.data:null),this.formatData($me.defaultData)),this.formatData($me.data))),((lme=$me.updatePristineAfterStoreDataReInit)!==null&&lme!==void 0?lme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1,(sme=$me.data)===null||sme===void 0?void 0:sme.__changeReason):Eme===!0||($me.trackExpression?tokenize($me.trackExpression,$me.data)!==tokenize($me.trackExpression,nme.data):isObjectShallowModified$1(nme.data,$me.data)||$me.syncSuperStore!==!1&&isSuperDataModified($me.data,nme.data,Cme))?$me.store&&$me.scope===$me.data?Cme.initData(createObject$1($me.store.data,__assign$3(__assign$3({},this.formatData(dataMapping(this.props.defaultData,this.props.data,ignoreSchemaProps))),$me.syncSuperStore===!1?__assign$3({},Cme.data):syncDataFromSuper(Cme.data,$me.store.data,nme.scope,Cme,$me.syncSuperStore===!0))),((cme=$me.updatePristineAfterStoreDataReInit)!==null&&cme!==void 0?cme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1,(dme=$me.data)===null||dme===void 0?void 0:dme.__changeReason):$me.data&&$me.data.__super?Cme.initData(extendObject($me.data,__assign$3(__assign$3({},this.formatData(dataMapping(this.props.defaultData,this.props.data,ignoreSchemaProps))),Cme.hasRemoteData||!Cme.path.includes("/")?__assign$3(__assign$3({},Cme.data),$me.data):((ume=$me.store)===null||ume===void 0?void 0:ume.storeType)==="ComboStore"?void 0:syncDataFromSuper(__assign$3(__assign$3({},Cme.pristineDiff),$me.data),$me.data.__super,nme.data.__super,Cme,!1))),((fme=$me.updatePristineAfterStoreDataReInit)!==null&&fme!==void 0?fme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1,(pme=$me.data)===null||pme===void 0?void 0:pme.__changeReason):Cme.initData(createObject$1($me.scope,$me.data),((hme=$me.updatePristineAfterStoreDataReInit)!==null&&hme!==void 0?hme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1,(bme=$me.data)===null||bme===void 0?void 0:bme.__changeReason):!$me.trackExpression&&(!$me.store||$me.data!==$me.scope)&&$me.data&&$me.data.__super?(!nme.data||isObjectShallowModified$1($me.data.__super,nme.data.__super,!1))&&Cme.initData(createObject$1($me.data.__super,__assign$3(__assign$3({},$me.data),Cme.data)),((mme=$me.updatePristineAfterStoreDataReInit)!==null&&mme!==void 0?mme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1||Cme.storeType==="FormStore"&&((vme=nme.store)===null||vme===void 0?void 0:vme.storeType)==="CRUDStore",(gme=$me.data)===null||gme===void 0?void 0:gme.__changeReason):!$me.trackExpression&&$me.scope&&$me.data===$me.store.data&&nme.data!==$me.data&&Cme.initData(createObject$1($me.scope,__assign$3({},Cme.data)),((yme=$me.updatePristineAfterStoreDataReInit)!==null&&yme!==void 0?yme:$me.dataUpdatedAt!==nme.dataUpdatedAt)===!1,(_me=$me.data)===null||_me===void 0?void 0:_me.__changeReason)}},ame.prototype.componentWillUnmount=function(){var nme,rme=this.context,ime=this.store;(nme=this.unReaction)===null||nme===void 0||nme.call(this),isAlive(ime)&&(ime.setTopStore(null),rme.removeStore(ime)),delete this.store},ame.prototype.renderChild=function(nme,rme,ime){ime===void 0&&(ime={});var ome=this.props.render;return ome(nme,rme,__assign$3(__assign$3({data:this.store.data,dataUpdatedAt:this.store.updatedAt},ime),{scope:this.store.data,store:this.store}))},ame.prototype.render=function(){var nme,rme=this.props;rme.detectField;var ime=__rest$14(rme,["detectField"]);if(this.state.hidden||this.state.visible===!1)return null;var ome=!((nme=eme.prototype)===null||nme===void 0)&&nme.isReactComponent||eme.$$typeof===Symbol.for("react.forward_ref")?{ref:this.refFn}:{forwardedRef:this.refFn};return React__default.createElement(eme,__assign$3({},ime,this.state,ome,{data:this.store.data,dataUpdatedAt:this.store.updatedAt,store:this.store,scope:this.store.data,render:this.renderChild}))},ame.displayName="WithStore(".concat(eme.displayName||eme.name,")"),ame.ComposedComponent=eme,ame.contextType=RootStoreContext,ame=__decorate$1([observer,__metadata("design:paramtypes",[Object,void 0])],ame),ame}(React__default.Component);return hoistNonReactStatics($P,eme),$P}}var Placeholder=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.componentDidMount=function(){console.warn("Please implement this renderer(".concat(this.props.type,")"))},eme.prototype.render=function(){return null},eme}(React__default.Component),_a$c,_b$4,renderers=[],renderersTypeMap={},renderersMap={},schemaFilters=[],anonymousIndex=1;function addSchemaFilter(x_){schemaFilters.push(x_)}function filterSchema(x_,eme,$P){return schemaFilters.reduce(function(tme,ame){return ame(tme,eme,$P)},x_)}function Renderer(x_){return function(eme){var $P=registerRenderer(__assign$3(__assign$3({},x_),{component:eme}));return $P.component}}function fixMobxInjectRender(x_){var eme,$P=x_.prototype;if($P!=null&&$P.render&&($P.__originRender=$P.render),!((eme=$P==null?void 0:$P.__proto__)===null||eme===void 0)&&eme.hasOwnProperty("__originRender")){var tme=$P.__proto__;$P.__proto__=Object.create(tme.__proto__||Object),Object.assign($P.__proto__,tme),$P.__proto__.render=tme.__originRender}return x_}function rendererToComponent(x_,eme){return eme.storeType&&eme.component&&(x_=HocStoreFactory({storeType:eme.storeType,extendsData:eme.storeExtendsData,shouldSyncSuperStore:eme.shouldSyncSuperStore})(observer(fixMobxInjectRender(x_)))),eme.isolateScope&&(x_=HocScoped(x_,eme.type)),x_}function registerRenderer(x_){if(!x_.test&&!x_.type)throw new TypeError("please set config.type or config.test");!x_.type&&x_.name!=="static"&&console.warn("config.type is recommended for register renderer(".concat(x_.test,")")),typeof x_.type=="string"&&x_.type&&(x_.type=x_.type.toLowerCase(),x_.test=x_.test||new RegExp("(^|/)(?:".concat((x_.alias||[]).concat(x_.type).map(function(ame){return string2regExp(ame)}).join("|"),")$"),"i"));var eme=renderersTypeMap[x_.type||""],$P=__assign$3({},x_);if(eme&&eme.component&&eme.component!==Placeholder&&x_.component&&!eme.origin&&!x_.override)throw new Error('The renderer with type "'.concat(x_.type,'" has already exists, please try another type!'));if(eme&&(Object.assign(eme,x_),$P=eme),$P.weight=$P.weight||0,$P.name=$P.name||$P.type||"anonymous-".concat(anonymousIndex++),x_.component&&($P.Renderer=x_.component,$P.component=rendererToComponent(x_.component,$P)),!eme){var tme=findIndex$4(renderers,function(ame){return x_.weight<ame.weight});~tme?renderers.splice(tme,0,$P):renderers.push($P)}return renderersMap[$P.name]=!!($P.component&&$P.component!==Placeholder),$P.type&&(renderersTypeMap[$P.type]=$P),($P.alias||[]).forEach(function(ame){var nme=__assign$3(__assign$3({},$P),{type:ame,name:ame,alias:void 0,origin:$P}),rme=renderers.findIndex(function(ime){return ime.name===ame});~rme?Object.assign(renderers[rme],nme):renderers.push(nme),renderersTypeMap[ame]=nme,renderersMap[ame]=!0}),$P}function loadRendererError(x_,eme){return React__default.createElement("div",{className:"RuntimeError"},React__default.createElement("p",null,"Error: 找不到对应的渲染器"),React__default.createElement("p",null,"Path: ",eme),React__default.createElement("pre",null,React__default.createElement("code",null,JSON.stringify(x_,null,2))))}function loadAsyncRenderer(x_){return __awaiter(this,void 0,void 0,function(){var eme;return __generator(this,function($P){switch($P.label){case 0:return isAsyncRenderer(x_)?[4,x_.getComponent()]:[2];case 1:return eme=$P.sent(),!x_.component&&eme.default&&registerRenderer(__assign$3(__assign$3({},x_),{component:eme.default})),[2]}})})}function isAsyncRenderer(x_){return x_&&(!x_.component||x_.component===Placeholder)&&x_.getComponent}function hasAsyncRenderers(x_){return(Array.isArray(x_)?renderers.filter(function(eme){return eme.type&&x_.includes(eme.type)}):renderers).some(isAsyncRenderer)}function loadAsyncRenderersByType(x_,eme){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){switch(ame.label){case 0:return $P=Array.isArray(x_)?x_:[x_],tme=$P.map(function(nme){var rme=renderersTypeMap[nme];if(!rme&&!eme)throw new Error("Can not find the renderer by type: ".concat(nme));return rme}).filter(isAsyncRenderer),tme.length?[4,Promise.all(tme.map(function(nme){return loadAsyncRenderer(nme)}))]:[3,2];case 1:ame.sent(),ame.label=2;case 2:return[2]}})})}var defaultOptions$1={session:"global",richTextToken:"",useMobileUI:!0,enableAMISDebug:(_b$4=(_a$c=window.enableAMISDebug)!==null&&_a$c!==void 0?_a$c:location.search.indexOf("amisDebug=1")!==-1)!==null&&_b$4!==void 0?_b$4:!1,loadRenderer:loadRendererError,fetcher:function(){return Promise.reject("fetcher is required")},wsFetcher:function(x_,eme,$P){if(x_){var tme=new WebSocket(x_.url);return tme.onopen=function(ame){x_.body&&tme.send(JSON.stringify(x_.body))},tme.onmessage=function(ame){var nme;if(ame.data){var rme=void 0;try{rme=JSON.parse(ame.data)}catch{}if(typeof rme!="object"){var ime=x_.responseKey||"data";rme=(nme={},nme[ime]=ame.data,nme)}eme(rme)}},tme.onerror=$P,{close:tme.close}}else return{close:function(){}}},isCancel:function(){return console.error("Please implement isCancel. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97"),!1},updateLocation:function(){console.error("Please implement updateLocation. see https://aisuda.bce.baidu.com/amis/zh-CN/start/getting-started#%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97")},jumpTo:function(x_,eme){if(x_==="goBack")return window.history.back();if(x_=normalizeLink(x_),eme&&eme.actionType==="url"){eme.blank===!1?window.location.href=x_:window.open(x_);return}if((eme==null?void 0:eme.actionType)==="link"&&["blank","self"].includes(eme==null?void 0:eme.targetType)){eme.targetType==="self"?(window.history.pushState(null,"",x_),location.reload()):window.open(x_);return}/^https?:\/\//.test(x_)?window.location.replace(x_):location.href=x_},isCurrentUrl:function(x_){if(!x_)return!1;var eme=normalizeLink(x_),$P=window.location,tme=eme,ame="",nme=eme.indexOf("?");if(~nme&&(tme=eme.substring(0,nme),ame=eme.substring(nme)),ame){if(tme!==$P.pathname||!$P.search)return!1;var rme=qsparse(ame.substring(1)),ime=parseQuery($P);return Object.keys(rme).every(function(ome){return rme[ome]===ime[ome]})}else if(tme===$P.pathname)return!0;return!1},copy:function(x_){console.error("copy contents",x_)},tracker:function(x_,eme){},rendererResolver:resolveRenderer,replaceTextIgnoreKeys:["type","name","mode","target","reload","persistData"],filterHtml:function(x_){return x_},isMobile:isMobile$2},stores={};function clearStoresCache(x_){x_===void 0&&(x_=Object.keys(stores)),Array.isArray(x_)||(x_=[x_]),x_.forEach(function(eme){var $P=stores[eme];delete stores[eme],$P&&destroy($P)})}function extendDefaultEnv(x_){Object.assign(defaultOptions$1,x_)}var cache$2={};function resolveRenderer(x_,eme){var $P=typeof(eme==null?void 0:eme.type)=="string"?eme.type.toLowerCase():"";if($P&&renderersTypeMap[$P])return renderersTypeMap[$P];if(cache$2[x_])return cache$2[x_];if(x_&&x_.length>3072)throw new Error("Path太长是不是死循环了？");var tme=null;return renderers.some(function(ame){var nme=!1;return typeof ame.test=="function"?nme=ame.test(x_,eme,resolveRenderer):ame.test instanceof RegExp&&(nme=ame.test.test(x_)),nme&&(tme=ame),nme}),tme!==null&&tme.component!==Placeholder&&(tme.type||tme.test instanceof RegExp||typeof tme.test=="function"&&tme.test.length<2)&&(cache$2[x_]=tme),tme}function getRenderers(){return renderers.concat()}function getRendererByName(x_){return find$3(renderers,function(eme){return eme.name===x_})}var GlobalOptions={pdfjsWorkerSrc:""};function getGlobalOptions(){return GlobalOptions}"DragEvent"in window||Object.defineProperty(window,"DragEvent",{value:function(){function x_(){}return x_}()});var __defProp=Object.defineProperty,__defNormalProp=(x_,eme,$P)=>eme in x_?__defProp(x_,eme,{enumerable:!0,configurable:!0,writable:!0,value:$P}):x_[eme]=$P,__publicField=(x_,eme,$P)=>(__defNormalProp(x_,typeof eme!="symbol"?eme+"":eme,$P),$P),observerMap=new Map,RootIds=new WeakMap,rootId=0,unsupportedValue=void 0;function getRootId(x_){return x_?(RootIds.has(x_)||(rootId+=1,RootIds.set(x_,rootId.toString())),RootIds.get(x_)):"0"}function optionsToId(x_){return Object.keys(x_).sort().filter(eme=>x_[eme]!==void 0).map(eme=>`${eme}_${eme==="root"?getRootId(x_.root):x_[eme]}`).toString()}function createObserver(x_){let eme=optionsToId(x_),$P=observerMap.get(eme);if(!$P){const tme=new Map;let ame;const nme=new IntersectionObserver(rme=>{rme.forEach(ime=>{var ome;const lme=ime.isIntersecting&&ame.some(sme=>ime.intersectionRatio>=sme);x_.trackVisibility&&typeof ime.isVisible>"u"&&(ime.isVisible=lme),(ome=tme.get(ime.target))==null||ome.forEach(sme=>{sme(lme,ime)})})},x_);ame=nme.thresholds||(Array.isArray(x_.threshold)?x_.threshold:[x_.threshold||0]),$P={id:eme,observer:nme,elements:tme},observerMap.set(eme,$P)}return $P}function observe(x_,eme,$P={},tme=unsupportedValue){if(typeof window.IntersectionObserver>"u"&&tme!==void 0){const ome=x_.getBoundingClientRect();return eme(tme,{isIntersecting:tme,target:x_,intersectionRatio:typeof $P.threshold=="number"?$P.threshold:0,time:0,boundingClientRect:ome,intersectionRect:ome,rootBounds:ome}),()=>{}}const{id:ame,observer:nme,elements:rme}=createObserver($P);let ime=rme.get(x_)||[];return rme.has(x_)||rme.set(x_,ime),ime.push(eme),nme.observe(x_),function(){ime.splice(ime.indexOf(eme),1),ime.length===0&&(rme.delete(x_),nme.unobserve(x_)),rme.size===0&&(nme.disconnect(),observerMap.delete(ame))}}function isPlainChildren(x_){return typeof x_.children!="function"}var InView=class extends reactExports.Component{constructor(x_){super(x_),__publicField(this,"node",null),__publicField(this,"_unobserveCb",null),__publicField(this,"handleNode",eme=>{this.node&&(this.unobserve(),!eme&&!this.props.triggerOnce&&!this.props.skip&&this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=eme||null,this.observeNode()}),__publicField(this,"handleChange",(eme,$P)=>{eme&&this.props.triggerOnce&&this.unobserve(),isPlainChildren(this.props)||this.setState({inView:eme,entry:$P}),this.props.onChange&&this.props.onChange(eme,$P)}),this.state={inView:!!x_.initialInView,entry:void 0}}componentDidUpdate(x_){(x_.rootMargin!==this.props.rootMargin||x_.root!==this.props.root||x_.threshold!==this.props.threshold||x_.skip!==this.props.skip||x_.trackVisibility!==this.props.trackVisibility||x_.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve(),this.node=null}observeNode(){if(!this.node||this.props.skip)return;const{threshold:x_,root:eme,rootMargin:$P,trackVisibility:tme,delay:ame,fallbackInView:nme}=this.props;this._unobserveCb=observe(this.node,this.handleChange,{threshold:x_,root:eme,rootMargin:$P,trackVisibility:tme,delay:ame},nme)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:x_}=this.props;if(typeof x_=="function"){const{inView:ume,entry:fme}=this.state;return x_({inView:ume,entry:fme,ref:this.handleNode})}const{as:eme,triggerOnce:$P,threshold:tme,root:ame,rootMargin:nme,onChange:rme,skip:ime,trackVisibility:ome,delay:lme,initialInView:sme,fallbackInView:cme,...dme}=this.props;return reactExports.createElement(eme||"div",{ref:this.handleNode,...dme},x_)}};function useInView({threshold:x_,delay:eme,trackVisibility:$P,rootMargin:tme,root:ame,triggerOnce:nme,skip:rme,initialInView:ime,fallbackInView:ome,onChange:lme}={}){var sme;const[cme,dme]=reactExports.useState(null),ume=reactExports.useRef(),[fme,pme]=reactExports.useState({inView:!!ime,entry:void 0});ume.current=lme,reactExports.useEffect(()=>{if(rme||!cme)return;let vme;return vme=observe(cme,(gme,yme)=>{pme({inView:gme,entry:yme}),ume.current&&ume.current(gme,yme),yme.isIntersecting&&nme&&vme&&(vme(),vme=void 0)},{root:ame,rootMargin:tme,threshold:x_,trackVisibility:$P,delay:eme},ome),()=>{vme&&vme()}},[Array.isArray(x_)?x_.toString():x_,cme,ame,tme,nme,rme,$P,ome,eme]);const hme=(sme=fme.entry)==null?void 0:sme.target,bme=reactExports.useRef();!cme&&hme&&!nme&&!rme&&bme.current!==hme&&(bme.current=hme,pme({inView:!!ime,entry:void 0}));const mme=[dme,fme.inView,fme.entry];return mme.ref=mme[0],mme.inView=mme[1],mme.entry=mme[2],mme}var themes={default:{},cxd:{classPrefix:"cxd-"}};function theme(x_,eme){themes[x_]=__assign$3(__assign$3({},themes[x_]),eme)}var fns$1={};function makeClassnames(x_){if(x_&&fns$1[x_])return fns$1[x_];var eme=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=cx$1.apply(void 0,__spreadArray([],__read$3($P),!1));return ame&&x_?ame.replace(/(^|\s)([A-Z])/g,"$1"+x_+"$2").replace(/(^|\s)\:/g,"$1"):ame||""};return x_&&(fns$1[x_]=eme),eme}function hasTheme(x_){return!!themes[x_]}function classnames$2(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];return getTheme(defaultTheme).classnames.apply(null,x_)}function getClassPrefix(){return getTheme(defaultTheme).classPrefix}function getTheme(x_){typeof x_!="string"&&(x_="cxd");var eme=themes[x_||"cxd"];if(eme.getRendererConfig||(eme.getRendererConfig=function(tme){var ame=themes[x_||"cxd"];return ame.renderers&&tme?ame.renderers[tme]:null}),!eme.classnames){var $P=eme.classPrefix;eme.classnames=eme.classnames||makeClassnames($P)}return eme.getComponentConfig||(eme.getComponentConfig=function(tme){return eme.components&&tme?eme.components[tme]:null}),eme}var defaultTheme="cxd",ThemeContext=React__default.createContext("");function themeable(x_,eme){var $P,tme=hoistNonReactStatics(($P=function(ame){__extends$2(nme,ame);function nme(rme){var ime=ame.call(this,rme)||this;return ime.childRef=ime.childRef.bind(ime),ime.getWrappedInstance=ime.getWrappedInstance.bind(ime),ime}return nme.prototype.childRef=function(rme){for(;rme&&rme.getWrappedInstance;)rme=rme.getWrappedInstance();this.ref=rme},nme.prototype.getWrappedInstance=function(){return this.ref},nme.prototype.render=function(){var rme,ime=this.props.theme||this.context||defaultTheme,ome=hasTheme(ime)?getTheme(ime):getTheme(defaultTheme),lme={classPrefix:ome.classPrefix,classnames:ome.classnames,theme:ime},sme=!((rme=x_.prototype)===null||rme===void 0)&&rme.isReactComponent||x_.$$typeof===Symbol.for("react.forward_ref")?{ref:this.childRef}:{forwardedRef:this.childRef},cme=React__default.createElement(x_,__assign$3({},ome.getComponentConfig(x_.themeKey),this.props,lme,sme));return this.context?cme:React__default.createElement(ThemeContext.Provider,{value:ime},cme)},nme}(React__default.Component),$P.displayName="Themeable(".concat(x_.displayName||x_.name,")"),$P.contextType=ThemeContext,$P.ComposedComponent=x_,$P),x_);return Array.isArray(eme)&&eme.forEach(function(ame){x_.prototype[ame]&&(tme.prototype[ame]=function(){var nme,rme=(nme=this.ref)===null||nme===void 0?void 0:nme[ame];return rme?rme.apply(this.ref,arguments):void 0})}),tme}var LazyComponent=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame;return tme=x_.call(this,$P)||this,tme.mounted=!1,tme.handleVisibleChange=tme.handleVisibleChange.bind(tme),tme.mounted=!0,tme.state={visible:(ame=$P.defaultVisible)!==null&&ame!==void 0?ame:!1,component:$P.component},tme}return eme.prototype.componentDidMount=function(){(typeof jest<"u"||this.state.visible)&&this.handleVisibleChange(!0)},eme.prototype.componentWillUnmount=function(){this.mounted=!1},eme.prototype.handleVisibleChange=function($P,tme){var ame=this;this.setState({visible:$P}),!(!$P||this.state.component||!this.props.getComponent)&&this.props.getComponent().then(function(nme){return ame.mounted&&typeof nme=="function"&&ame.setState({component:nme})}).catch(function(nme){return ame.mounted&&ame.setState({component:function(){return React__default.createElement("div",{className:"alert alert-danger"},String(nme))}})})},eme.prototype.render=function(){var $P=this.props,tme=$P.placeholder,ame=$P.unMountOnHidden,nme=$P.childProps,rme=$P.partialVisibility,ime=$P.children,ome=$P.className,lme=__rest$14($P,["placeholder","unMountOnHidden","childProps","partialVisibility","children","className"]),sme=this.props.classnames,cme=this.state,dme=cme.visible,ume=cme.component;if(ame)return React__default.createElement(InView,{onChange:this.handleVisibleChange,threshold:rme?0:1},function(fme){var pme=fme.ref;return React__default.createElement("div",{ref:pme,className:"visibility-sensor ".concat(dme?"in":"")},ume&&dme?React__default.createElement(ume,__assign$3({},lme,nme)):ime&&dme?ime:tme)});if(dme){if(ume)return React__default.createElement(ume,__assign$3({},lme,nme));if(ime)return ime}else return React__default.createElement(InView,{onChange:this.handleVisibleChange,threshold:rme?0:1},function(fme){var pme=fme.ref;return React__default.createElement("div",{ref:pme,className:"visibility-sensor"},tme)});return React__default.createElement("div",{className:sme("LazyComponent",ome)},tme)},eme.defaultProps={placeholder:React__default.createElement("span",null,"Loading..."),unMountOnHidden:!1,partialVisibility:!0},eme}(React__default.Component),themedLazyComponent=themeable(LazyComponent);themedLazyComponent.defaultProps=LazyComponent.defaultProps;var valueMap={marginTop:"margin-top",marginRight:"margin-right",marginBottom:"margin-bottom",marginLeft:"margin-left",paddingTop:"padding-top",paddingRight:"padding-right",paddingBottom:"padding-bottom",paddingLeft:"padding-left","top-border-width":"border-top-width","right-border-width":"border-right-width","bottom-border-width":"border-bottom-width","left-border-width":"border-left-width","top-border-style":"border-top-style","right-border-style":"border-right-style","bottom-border-style":"border-bottom-style","left-border-style":"border-left-style","top-border-color":"border-top-color","right-border-color":"border-right-color","bottom-border-color":"border-bottom-color","left-border-color":"border-left-color",fontSize:"font-size",fontWeight:"font-weight",lineHeight:"line-height"},inheritValueMap={background:"bg-color",radius:"border"};function findOrCreateStyle(x_){var eme,$P=x_.classId,tme=x_.doc,ame=x_.before,nme=x_.id;tme=tme||document;var rme=tme.getElementById($P);if(!rme){rme=tme.createElement("style"),rme.id=$P,rme.setAttribute("class",nme||"");var ime=(eme=tme.getElementsByClassName(ame||""))===null||eme===void 0?void 0:eme[0];ime?ime.before(rme):tme.body.appendChild(rme)}return rme}function insertStyle(x_){var eme=x_.style,$P=x_.classId,tme=x_.id,ame=x_.doc,nme=x_.before,rme=findOrCreateStyle({classId:"amis-"+$P,doc:ame,before:nme,id:tme});rme.innerHTML=eme,eme||rme.remove()}function handleInheritData(x_,eme){eme&&["hover","active"].forEach(function($P){Object.keys(x_[$P]).forEach(function(tme){if(typeof x_[$P][tme]=="object")Object.keys(x_[$P][tme]).forEach(function(nme){if(x_[$P][tme][nme]==="inherit")if(x_.default[tme]&&x_.default[tme][nme])x_[$P][tme][nme]=x_.default[tme][nme];else{var rme=inheritValueMap[tme]||tme;x_[$P][tme][nme]=eme.default.body[rme][nme]}});else if(x_[$P][tme]==="inherit")if(x_.default[tme]&&x_.default[tme])x_[$P][tme]=x_.default[tme];else{var ame=inheritValueMap[tme]||tme;x_[$P][tme]=eme.default.body[ame]}})})}function formatStyle(x_,eme,$P,tme,ame){var nme,rme;if(!x_||!eme)return{value:"",origin:[]};var ime=[],ome={default:"",hover:":hover",active:":hover:active",focused:"",disabled:""},lme=function(ume){var fme=x_[ume.key];if(!fme)return"continue";var pme=ume.key+"-"+($P==null?void 0:$P.replace("u:","")),hme=ume.weights||{};typeof(ame==null?void 0:ame.index)=="number"&&(pme+="-".concat(ame.index));var bme={default:{},hover:{},active:{},focused:{},disabled:{}};Object.keys(fme).forEach(function(mme){mme!=="$$id"&&fme[mme]&&(~mme.indexOf(":default")?bme.default[mme.replace(":default","")]=fme[mme]:~mme.indexOf(":hover")?bme.hover[mme.replace(":hover","")]=fme[mme]:~mme.indexOf(":active")?bme.active[mme.replace(":active","")]=fme[mme]:~mme.indexOf(":focused")?bme.focused[mme.replace(":focused","")]=fme[mme]:~mme.indexOf(":disabled")?bme.disabled[mme.replace(":disabled","")]=fme[mme]:bme.default[mme]=fme[mme])}),handleInheritData(bme,tme),Object.keys(bme).forEach(function(mme){var vme=hme[mme],gme=[],yme=function(Sme,Eme){Sme=valueMap[Sme]||Sme,Eme=resolveVariableAndFilter(Eme,ame,"| raw")||Eme,gme.push("".concat(Sme.startsWith("--")?Sme:kebabCase$1(Sme),": ").concat(Eme+(vme!=null&&vme.important?" !important":""),";"))};if(Object.keys(bme[mme]).forEach(function(Sme){if(Sme!=="$$id"){var Eme=bme[mme][Sme];if(typeof Eme=="object")Sme==="radius"?yme("border-radius",[Eme["top-left-border-radius"]||0,Eme["top-right-border-radius"]||0,Eme["bottom-right-border-radius"]||0,Eme["bottom-left-border-radius"]||0].join(" ")):Object.keys(Eme).forEach(function(Tme){if(Tme!=="$$id"){var Ome=Eme[Tme];Ome&&yme(Tme,Ome)}});else{var xme=Eme;Sme==="iconSize"?(yme("width",xme),yme("height",xme),yme("font-size",xme)):xme&&yme(Sme,xme)}}}),gme.length>0){var _me=((vme==null?void 0:vme.pre)||"")+pme+((vme==null?void 0:vme.suf)||""),$me=(vme==null?void 0:vme.inner)||"",Cme=(vme==null?void 0:vme.parent)||"";ime.push({className:Cme+_me+ome[mme]+$me,content:"".concat(Cme," .").concat(_me+ome[mme]," ").concat($me,`{
  `).concat(gme.join(`
  `),`
}`)})}})};try{for(var sme=__values$1(eme),cme=sme.next();!cme.done;cme=sme.next()){var dme=cme.value;lme(dme)}}catch(ume){nme={error:ume}}finally{try{cme&&!cme.done&&(rme=sme.return)&&rme.call(sme)}finally{if(nme)throw nme.error}}return{value:ime.map(function(ume){return ume.content}).join(`
`),origin:ime}}function insertCustomStyle(x_){var eme,$P=x_.themeCss,tme=x_.classNames,ame=x_.id,nme=x_.defaultData,rme=x_.customStyleClassPrefix,ime=x_.doc,ome=x_.data;if($P){var lme=formatStyle($P,tme,ame,nme,ome).value;lme=rme?"".concat(rme," ").concat(lme):lme;var sme=((eme=ame==null?void 0:ame.replace)===null||eme===void 0?void 0:eme.call(ame,"u:",""))||ame+"";typeof(ome==null?void 0:ome.index)=="number"&&(sme+="-".concat(ome.index)),insertStyle({style:lme,classId:sme,doc:ime,id:sme.replace(/(-.*)/,""),before:sme.replace(/(-.*)/,"")})}}function traverseStyle(x_,eme,$P){Object.keys(x_).forEach(function(tme){if(tme!=="$$id")if(isObject$r(x_[tme])){var ame=eme?"".concat(eme," ").concat(tme):tme;traverseStyle(x_[tme],ame,$P)}else eme===""?(!$P[tme]&&($P[tme]={}),$P[tme]=x_[tme]):(!$P[eme]&&($P[eme]={}),$P[eme][tme]=x_[tme])})}function insertEditCustomStyle(x_){var eme,$P,tme=x_.customStyle,ame=x_.doc,nme=x_.data,rme=(($P=(eme=x_.id)===null||eme===void 0?void 0:eme.replace)===null||$P===void 0?void 0:$P.call(eme,"u:",""))||x_.id+"",ime={};traverseStyle(tme,"",ime);var ome="",lme="";if(typeof(nme==null?void 0:nme.index)=="number"&&(lme="-".concat(nme.index)),!isEmpty$4(ime)){var sme="wrapperCustomStyle-".concat(rme).concat(lme);Object.keys(ime).forEach(function(cme){if(!isObject$r(ime[cme]))ome+=`
.`.concat(sme,` {
  `).concat(cme,": ").concat(resolveVariableAndFilter(ime[cme].replace(/['|"]/g,""),nme,"| raw")||ime[cme],`
}`);else if(cme==="root"){var dme=map$2(ime[cme],function(fme,pme){return"".concat(pme,": ").concat(resolveVariableAndFilter(fme.replace(/['|"]/g,""),nme,"| raw")||fme,";")});ome+=`
.`.concat(sme,` {
  `).concat(dme.join(`
  `),`
}`)}else if(/^root:/.test(cme)){var dme=map$2(ime[cme],function(pme,hme){return"".concat(hme,": ").concat(resolveVariableAndFilter(pme.replace(/['|"]/g,""),nme,"| raw")||pme,";")}),ume=cme.replace("root","");ome+=`
.`.concat(sme," ").concat(ume,` {
  `).concat(dme.join(`
  `),`
}`)}else{var dme=map$2(ime[cme],function(pme,hme){return"".concat(hme,": ").concat(resolveVariableAndFilter(pme.replace(/['|"]/g,""),nme,"| raw")||pme,";")});ome+=`
.`.concat(sme," ").concat(cme,` {
  `).concat(dme.join(`
  `),`
}`)}})}insertStyle({style:ome,classId:"wrapperCustomStyle-"+(rme||uuid$1())+lme,doc:ame,id:rme.replace(/(-.*)/,"")})}function removeCustomStyle(x_,eme,$P,tme){var ame,nme="amis-"+(x_?x_+"-":"")+(((ame=eme.replace)===null||ame===void 0?void 0:ame.call(eme,"u:",""))||eme+"");typeof(tme==null?void 0:tme.index)=="number"&&(nme+="-".concat(tme.index));var rme=($P||document).getElementById(nme);rme&&rme.remove()}function formatInputThemeCss(x_){if(x_){var eme={inputControlClassName:{}},$P=(x_==null?void 0:x_.inputControlClassName)||{};return Object.keys($P).forEach(function(tme){~tme.indexOf("font")&&(eme.inputControlClassName[tme]=$P[tme])}),eme}}function setThemeClassName(x_){var eme=x_.name,$P=x_.id,tme=x_.themeCss,ame=x_.extra,nme=x_.data;if(!$P||!tme)return"";var rme="";typeof(nme==null?void 0:nme.index)=="number"&&(rme="-".concat(nme.index));function ime(ome,lme){var sme;return ome!=="wrapperCustomStyle"&&!tme[ome]?"":"".concat(ome,"-").concat(((sme=lme.replace)===null||sme===void 0?void 0:sme.call(lme,"u:",""))||lme)+(ame?"-".concat(ame):"")+rme}return typeof eme=="string"?ime(eme,$P):eme.map(function(ome){return ime(ome,$P)}).join(" ")}var styleIdCount=new Map;function CustomStyle(x_){var eme=x_.config,$P=x_.env,tme=x_.data,ame=eme.themeCss,nme=eme.classNames,rme=eme.defaultData,ime=eme.wrapperCustomStyle,ome=eme.id?"".concat(eme.id):eme.id;return reactExports.useEffect(function(){return styleIdCount.has(ome)?styleIdCount.set(ome,styleIdCount.get(ome)+1):ome&&styleIdCount.set(ome,1),function(){styleIdCount.has(ome)&&(styleIdCount.set(ome,styleIdCount.get(ome)-1),styleIdCount.get(ome)===0&&styleIdCount.delete(ome))}},[ome]),reactExports.useEffect(function(){var lme,sme;return ame&&ome&&insertCustomStyle({themeCss:ame,classNames:nme,id:ome,defaultData:rme,customStyleClassPrefix:$P==null?void 0:$P.customStyleClassPrefix,doc:(sme=(lme=$P==null?void 0:$P.getModalContainer)===null||lme===void 0?void 0:lme.call($P))===null||sme===void 0?void 0:sme.ownerDocument,data:tme}),function(){var cme,dme;ome&&!styleIdCount.get(ome)&&removeCustomStyle("",ome,(dme=(cme=$P==null?void 0:$P.getModalContainer)===null||cme===void 0?void 0:cme.call($P))===null||dme===void 0?void 0:dme.ownerDocument,tme)}},[ame,ome]),reactExports.useEffect(function(){var lme,sme;return ime&&ome&&insertEditCustomStyle({customStyle:ime,id:ome,doc:(sme=(lme=$P==null?void 0:$P.getModalContainer)===null||lme===void 0?void 0:lme.call($P))===null||sme===void 0?void 0:sme.ownerDocument,data:tme}),function(){var cme,dme;ome&&!styleIdCount.get(ome)&&removeCustomStyle("wrapperCustomStyle",ome,(dme=(cme=$P==null?void 0:$P.getModalContainer)===null||cme===void 0?void 0:cme.call($P))===null||dme===void 0?void 0:dme.ownerDocument,tme)}},[ime,ome]),null}var Form$2=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.hooks={},tme.toDispose=[],tme.shouldLoadInitApi=!1,tme.lazyEmitChange=debounce$6(tme.emitChange.bind(tme),250,{trailing:!0,leading:!1}),tme.flushing=!1,tme.emittedData=null,tme.emitting=!1,tme.onInit=tme.onInit.bind(tme),tme.handleAction=tme.handleAction.bind(tme),tme.handleQuery=tme.handleQuery.bind(tme),tme.handleChange=tme.handleChange.bind(tme),tme.handleDialogConfirm=tme.handleDialogConfirm.bind(tme),tme.handleDialogClose=tme.handleDialogClose.bind(tme),tme.handleDrawerConfirm=tme.handleDrawerConfirm.bind(tme),tme.handleDrawerClose=tme.handleDrawerClose.bind(tme),tme.handleFormSubmit=tme.handleFormSubmit.bind(tme),tme.validate=tme.validate.bind(tme),tme.submit=tme.submit.bind(tme),tme.addHook=tme.addHook.bind(tme),tme.removeHook=tme.removeHook.bind(tme),tme.emitChange=tme.emitChange.bind(tme),tme.handleBulkChange=tme.handleBulkChange.bind(tme),tme.renderFormItems=tme.renderFormItems.bind(tme),tme.reload=tme.reload.bind(tme),tme.silentReload=tme.silentReload.bind(tme),tme.initInterval=tme.initInterval.bind(tme),tme.dispatchInited=tme.dispatchInited.bind(tme),tme.blockRouting=tme.blockRouting.bind(tme),tme.beforePageUnload=tme.beforePageUnload.bind(tme),tme.formItemDispatchEvent=tme.formItemDispatchEvent.bind(tme),tme.flush=tme.flush.bind(tme);var ame=$P.store,nme=$P.canAccessSuperData,rme=$P.persistData,ime=$P.simpleMode,ome=$P.formLazyChange;if(ame.setCanAccessSuperData(nme!==!1),ame.setPersistData(rme),ime&&ame.setInited(!0),ame&&ame.parentStore&&ame.parentStore.storeType==="ComboStore"){var lme=ame.parentStore;lme.addForm(ame),lme.forms.forEach(function(sme){return sme.items.forEach(function(cme){return cme.unique&&cme.syncOptions(void 0,sme.data)})})}return tme.toDispose.push(reaction(function(){return ame.initedAt},function(){ame.inited&&(ome===!1?tme.emitChange:tme.lazyEmitChange)(!!tme.props.submitOnChange,!0)})),tme}return eme.prototype.componentDidMount=function(){var $P=this,tme,ame,nme=this.props,rme=nme.initApi,ime=nme.initFetch,ome=nme.initFetchOn,lme=nme.initAsyncApi,sme=nme.initFinishedField,cme=nme.initCheckInterval,dme=nme.store,ume=nme.messages,fme=ume.fetchSuccess,pme=ume.fetchFailed,hme=nme.onValidate,bme=nme.onValidChange,mme=nme.promptPageLeave,vme=nme.env,gme=this.getNormalizedRules();if(this.mounted=!0,hme){var yme=promisify(hme);this.toDispose.push(this.addHook(function(){return __awaiter($P,void 0,void 0,function(){var _me;return __generator(this,function($me){switch($me.label){case 0:return[4,yme(dme.data,dme)];case 1:return _me=$me.sent(),_me&&isObject$8(_me)&&(Object.keys(_me).forEach(function(Cme){var Sme=_me[Cme],Eme=dme.getItemsByPath(Cme);!Array.isArray(Eme)||!Eme.length||(Eme.forEach(function(xme){return xme.clearError()}),Sme&&(Sme=Array.isArray(Sme)?Sme:[Sme],Eme.forEach(function(xme){return xme.addError(Sme)})),delete _me[Cme])}),isEmpty$2(_me)?dme.clearRestError():dme.setRestError(Object.keys(_me).map(function(Cme){return _me[Cme]}))),[2]}})})}))}bme&&this.toDispose.push(reaction(function(){return dme.valid},function(_me){return bme(_me,$P.props)})),gme.length&&this.toDispose.push(this.addHook(function(){dme.valid&&gme.forEach(function(_me){return!evalExpression(_me.rule,dme.data)&&dme.addRestError(_me.message,_me.name)})})),isEffectiveApi(rme,dme.data,ime,ome)?dme.fetchInitData(rme,dme.data,{successMessage:fme,errorMessage:pme,onSuccess:function(_me,$me){if(dme.setValues($me,void 0,void 0,void 0,{type:"api"}),!(!isEffectiveApi(lme,dme.data)||dme.data[sme||"finished"]))return until(function(){return dme.checkRemote(lme,dme.data)},function(Cme){return Cme&&Cme[sme||"finished"]},function(Cme){return $P.asyncCancel=Cme},cme)}}).then(this.initInterval).then(this.onInit):setTimeout(this.onInit.bind(this),4),mme&&(window.addEventListener("beforeunload",this.beforePageUnload),this.unBlockRouting=(ame=(tme=vme.blockRouting)===null||tme===void 0?void 0:tme.call(vme,this.blockRouting))!==null&&ame!==void 0?ame:void 0)},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.store;if(isApiOutdated($P.initApi,tme.initApi,$P.data,tme.data)){var nme=tme.fetchSuccess,rme=tme.fetchFailed;ame[ame.hasRemoteData?"fetchData":"fetchInitData"](tme.initApi,ame.data,{successMessage:nme,errorMessage:rme}).then(this.initInterval).then(this.dispatchInited)}},eme.prototype.componentWillUnmount=function(){var $P;this.mounted=!1,clearTimeout(this.timer),this.lazyEmitChange.cancel(),this.asyncCancel&&this.asyncCancel(),this.toDispose.forEach(function(tme){return tme()}),this.toDispose=[],window.removeEventListener("beforeunload",this.beforePageUnload),($P=this.unBlockRouting)===null||$P===void 0||$P.call(this)},eme.prototype.getNormalizedRules=function(){var $P=this.props,tme=$P.rules,ame=$P.translate;return!Array.isArray(tme)||tme.length<1?[]:tme.map(function(nme){return __assign$3(__assign$3({},nme),!nme.message||typeof nme.message!="string"?{message:ame("Form.rules.message")}:{})}).filter(function(nme){return nme.rule&&typeof nme.rule=="string"})},eme.prototype.dispatchInited=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ame=this.props,nme=ame.data,rme=ame.store,ime=ame.dispatchEvent,!isAlive(rme)||rme.fetching?[2,$P]:[4,ime("inited",createObject$1(nme,__assign$3(__assign$3({},$P==null?void 0:$P.data),{responseData:(tme=$P==null?void 0:$P.data)!==null&&tme!==void 0?tme:{},responseStatus:rme.error?1:0,responseMsg:rme.msg})))];case 1:return ome=lme.sent(),[2,ome]}})})},eme.prototype.blockRouting=function(){var $P=this.props.store,tme=this.props,ame=tme.promptPageLeaveMessage,nme=tme.promptPageLeave;if(nme&&$P.modified)return ame||"新的修改没有保存，确认要离开？"},eme.prototype.beforePageUnload=function($P){var tme=this.blockRouting();tme&&($P.preventDefault(),$P.returnValue="")},eme.prototype.onInit=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return $P=this.props,tme=$P.onInit,ame=$P.store,nme=$P.persistData,rme=$P.submitOnInit,$P.dispatchEvent,isAlive(ame)?(ime=cloneObject$2(ame.data),ome=ame.initedAt,ame.setInited(!0),lme=this.hooks.init||[],sme=groupBy$1(lme,function(ume){return ume.__enforce==="prev"?"prev":ume.__enforce==="post"?"post":"normal"}),[4,Promise.all((sme.prev||[]).map(function(ume){return ume(ime)}))]):[2];case 1:return dme.sent(),[4,Promise.all((sme.normal||[]).map(function(ume){return lme.includes(ume)&&ume(ime)}))];case 2:return dme.sent(),[4,Promise.all((sme.post||[]).map(function(ume){return lme.includes(ume)&&ume(ime)}))];case 3:return dme.sent(),isAlive(ame)?(ame.initedAt!==ome&&(ime=__assign$3(__assign$3({},ime),ame.data)),nme&&(ame.getLocalPersistData(),ime=cloneObject$2(ame.data)),tme&&tme(ime,this.props),[4,this.dispatchInited({data:ime})]):[2];case 4:return cme=dme.sent(),cme!=null&&cme.prevented?[2]:(rme&&this.handleAction(void 0,{type:"submit"},ame.data),[2])}})})},eme.prototype.reload=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme=this;return __generator(this,function(bme){switch(bme.label){case 0:return tme?[2,this.receive(tme)]:(rme=this.props,ime=rme.store,ome=rme.initApi,lme=rme.initAsyncApi,sme=rme.initFinishedField,cme=rme.messages,dme=cme.fetchSuccess,ume=cme.fetchFailed,isEffectiveApi(lme,ime.data)&&ime.updateData((pme={},pme[sme||"finished"]=!1,pme)),fme=void 0,isEffectiveApi(ome,ime.data)?[4,ime.fetchInitData(ome,ime.data,{successMessage:dme,errorMessage:ume,silent:nme,onSuccess:function(mme,vme){if(ime.setValues(vme),!(!isEffectiveApi(lme,ime.data)||ime.data[sme||"finished"]))return until(function(){return ime.checkRemote(lme,ime.data)},function(gme){return gme&&gme[sme||"finished"]},function(gme){return hme.asyncCancel=gme})}})]:[3,2]);case 1:return fme=bme.sent(),fme!=null&&fme.ok&&(this.initInterval(fme),ime.reset(void 0,!1)),[3,3];case 2:ime.reset(void 0,!1),bme.label=3;case 3:return this.dispatchInited(fme),[2,ime.data]}})})},eme.prototype.receive=function($P,tme,ame){var nme=this.props.store;return nme.updateData($P,void 0,ame),this.reload()},eme.prototype.silentReload=function($P,tme){return this.reload($P,tme,void 0,!0)},eme.prototype.initInterval=function($P){var tme=this.props,ame=tme.interval,nme=tme.silentPolling,rme=tme.stopAutoRefreshWhen,ime=tme.data;return clearTimeout(this.timer),$P!=null&&$P.ok&&ame&&this.mounted&&(!rme||!evalExpression(rme,ime))&&(this.timer=setTimeout(nme?this.silentReload:this.reload,Math.max(ame,1e3))),$P},eme.prototype.isValidated=function(){return this.props.store.validated},eme.prototype.validate=function($P,tme,ame,nme){return tme===void 0&&(tme=!1),ame===void 0&&(ame=!0),nme===void 0&&(nme=!1),__awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:return rme=this.props,ime=rme.store,ome=rme.dispatchEvent,lme=rme.data,sme=rme.messages,cme=rme.translate,nme?[3,2]:[4,this.flush()];case 1:ume.sent(),ume.label=2;case 2:return[4,ime.validate(this.hooks.validate||[],$P,tme,ame===!1?"":typeof(sme==null?void 0:sme.validateFailed)=="string"?cme(filter$1(sme.validateFailed,ime.data)):void 0)];case 3:return dme=ume.sent(),ome(dme?"validateSucc":"validateError",lme),[2,dme]}})})},eme.prototype.setErrors=function($P,tme){tme===void 0&&(tme="remote");var ame=this.props.store;ame.setFormItemErrors($P,tme)},eme.prototype.clearErrors=function(){var $P=this.props.store;return $P.clearErrors()},eme.prototype.getValues=function(){var $P=this.props.store;return this.flush(),$P.data},eme.prototype.setValues=function($P,tme){var ame=this.props.store;this.flush(),ame.setValues($P,void 0,tme,void 0,{type:"action"})},eme.prototype.submit=function($P,tme,ame){return tme===void 0&&(tme=!1),ame===void 0&&(ame=!1),__awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return nme=this.props,rme=nme.store,ime=nme.messages,ome=nme.translate,lme=nme.dispatchEvent,sme=nme.data,ame?[3,2]:[4,this.flush()];case 1:dme.sent(),dme.label=2;case 2:return cme=function(){return lme("validateError",sme)},[2,rme.submit($P,this.hooks.validate||[],typeof(ime==null?void 0:ime.validateFailed)=="string"?ome(filter$1(ime.validateFailed,rme.data)):void 0,cme,tme)]}})})},eme.prototype.flush=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:if(lme.trys.push([0,,11,12]),this.flushing)return[2];this.flushing=!0,$P=this.hooks.flush||[],lme.label=1;case 1:lme.trys.push([1,6,7,8]),tme=__values$1($P),ame=tme.next(),lme.label=2;case 2:return ame.done?[3,5]:(nme=ame.value,[4,nme()]);case 3:lme.sent(),lme.label=4;case 4:return ame=tme.next(),[3,2];case 5:return[3,8];case 6:return rme=lme.sent(),ime={error:rme},[3,8];case 7:try{ame&&!ame.done&&(ome=tme.return)&&ome.call(tme)}finally{if(ime)throw ime.error}return[7];case 8:return this.emitting?[3,10]:[4,this.lazyEmitChange.flush()];case 9:lme.sent(),lme.label=10;case 10:return[3,12];case 11:return this.flushing=!1,[7];case 12:return[2]}})})},eme.prototype.reset=function(){var $P=this.props,tme=$P.store,ame=$P.onReset;tme.reset(ame)},eme.prototype.addHook=function($P,tme,ame){var nme=this;tme===void 0&&(tme="validate"),this.hooks[tme]=this.hooks[tme]||[];var rme=tme==="flush"?$P:promisify($P);return rme.__enforce=ame,this.hooks[tme].push(rme),function(){nme.removeHook($P,tme),$P=noop$9}},eme.prototype.removeHook=function($P,tme){tme===void 0&&(tme="validate");var ame=this.hooks[tme];if(ame)for(var nme=0,rme=ame.length;nme<rme;nme++){var ime=ame[nme];(ime===$P||ime.raw===$P)&&(ame.splice(nme,1),rme--,nme--)}},eme.prototype.handleChange=function($P,tme,ame,nme,rme){nme===void 0&&(nme=!1);var ime=this.props,ome=ime.store,lme=ime.formLazyChange,sme=ime.persistDataKeys;typeof tme=="string"&&(ome.changeValue(tme,$P,nme,void 0,void 0,rme||{type:"input"}),(!nme||typeof $P<"u")&&(lme===!1?this.emitChange:this.lazyEmitChange)(ame),ome.persistData&&ome.inited&&ome.setLocalPersistData(sme))},eme.prototype.formItemDispatchEvent=function($P,tme){var ame=this.props.dispatchEvent;return ame($P,tme)},eme.prototype.emitChange=function($P,tme){return tme===void 0&&(tme=!1),__awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return fme.trys.push([0,,4,5]),this.emitting=!0,ame=this.props,nme=ame.onChange,rme=ame.store,ime=ame.submitOnChange,ome=ame.dispatchEvent,lme=ame.data,sme=ame.originData,isAlive(rme)?(cme=difference$2(rme.data,sme??rme.upStreamData),tme&&(!Object.keys(cme).length||isEqual$1(rme.data,this.emittedData))?[2]:(this.emittedData=rme.data,dme=[rme.data,cme,this.props],[4,ome("change",createObject$1(lme,rme.data))])):[2];case 1:return ume=fme.sent(),ume!=null&&ume.prevented||nme&&nme.apply(null,dme),isAlive(rme)&&rme.clearRestError(),!tme&&($P||ime&&rme.inited)?[4,this.handleAction(void 0,{type:"submit",skipFormFlush:!0},rme.data)]:[3,3];case 2:fme.sent(),fme.label=3;case 3:return[3,5];case 4:return this.emitting=!1,[7];case 5:return[2]}})})},eme.prototype.handleBulkChange=function($P,tme,ame){var nme=this.props;nme.onChange;var rme=nme.store,ime=nme.formLazyChange;rme.setValues($P,void 0,void 0,void 0,ame||{type:"input"}),(ime===!1?this.emitChange:this.lazyEmitChange)(tme)},eme.prototype.handleFormSubmit=function($P){var tme=this.props,ame=tme.preventEnterSubmit,nme=tme.onActionSensor,rme=tme.close;if($P.preventDefault(),ame)return!1;var ime=this.handleAction($P,{type:"submit",close:rme},this.props.store.data);return nme==null||nme(ime),ime},eme.prototype.handleReset=function($P){var tme=this.props.onReset;return function(ame){tme&&tme(ame,$P)}},eme.prototype.handleAction=function($P,tme,ame,nme,rme){var ime,ome;return nme===void 0&&(nme=!1),__awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme,Bme,Lme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme=this;return __generator(this,function(Jme){switch(Jme.label){case 0:return lme=this.props,sme=lme.store,cme=lme.onSubmit,dme=lme.api,ume=lme.asyncApi,fme=lme.finishedField,pme=lme.checkInterval,hme=lme.messages,bme=hme.saveSuccess,mme=hme.saveFailed,vme=lme.resetAfterSubmit,gme=lme.clearAfterSubmit,yme=lme.onAction,_me=lme.onSaved,$me=lme.onReset,Cme=lme.onFinished,Sme=lme.onFailed,Eme=lme.redirect,xme=lme.reload,Tme=lme.target,Ome=lme.env,Rme=lme.onChange,Nme=lme.clearPersistDataAfterSubmit,Ime=lme.trimValues,Pme=lme.dispatchEvent,Mme=lme.translate,tme.skipFormFlush?[3,2]:[4,this.flush()];case 1:Jme.sent(),Jme.label=2;case 2:return isAlive(sme)?(Ime&&sme.trimValues(),ame===this.props.data&&(ame=sme.data),Array.isArray(tme.required)&&tme.required.length?(sme.clearErrors(),kme=tme.required.map(function(Yme){return{name:Yme,rules:{isRequired:!0}}}),[4,sme.validateFields(kme)]):[3,6]):[2];case 3:return Bme=Jme.sent(),Bme?[3,5]:[4,Pme("validateError",this.props.data)];case 4:return Lme=Jme.sent(),Lme!=null&&Lme.prevented||Ome.notify("error",Mme("Form.validateFailed")),[2,Promise.reject(Mme("Form.validateFailed"))];case 5:sme.clearErrors(),Jme.label=6;case 6:return tme.type==="submit"||tme.actionType==="submit"||tme.actionType==="confirm"||tme.actionType==="reset-and-submit"||tme.actionType==="clear-and-submit"?(Dme=this.props,jme=Dme.dispatchEvent,Vme=Dme.onEvent,Wme=(ome=(ime=Vme==null?void 0:Vme.submit)===null||ime===void 0?void 0:ime.actions)===null||ome===void 0?void 0:ome.length,[4,jme("submit",this.props.data)]):[3,8];case 7:return Lme=Jme.sent(),Lme!=null&&Lme.prevented||Wme?[2]:(sme.setCurrentAction(tme,this.props.resolveDefinitions),tme.actionType==="reset-and-submit"?sme.reset(this.handleReset(tme)):tme.actionType==="clear-and-submit"&&sme.clear(this.handleReset(tme)),[2,this.submit(function(Yme){return __awaiter(Gme,void 0,void 0,function(){var Qme,Xme,Kme,Zme=this;return __generator(this,function(nbe){switch(nbe.label){case 0:return cme?[4,cme(Yme,tme)]:[3,2];case 1:if(Qme=nbe.sent(),Qme===!1)return[2,Promise.resolve(!1)];nbe.label=2;case 2:if(jme("validateSucc",this.props.data),Tme)this.submitToTarget(filterTarget(Tme,Yme),Yme),Nme&&sme.clearLocalPersistData(),jme("submitSucc",createObject$1(this.props.data,Yme));else if(tme.actionType==="reload")tme.target&&this.reloadTarget(filterTarget(tme.target,Yme),Yme);else{if(tme.actionType==="dialog")return[2,new Promise(function(lbe){sme.openDialog(ame,void 0,function(ibe,abe){var obe;(obe=tme.callback)===null||obe===void 0||obe.call(tme,ibe,abe),lbe({confirmed:ibe,value:abe})},rme||Zme.context)})];if(tme.actionType==="drawer")return[2,new Promise(function(lbe){sme.openDrawer(ame,void 0,function(ibe,abe){var obe;(obe=tme.callback)===null||obe===void 0||obe.call(tme,ibe,abe),lbe({confirmed:ibe,value:abe})})})];if(isEffectiveApi(tme.api||dme,Yme))return Xme=tme.asyncApi||ume,isEffectiveApi(Xme,sme.data)&&sme.updateData((Kme={},Kme[fme||"finished"]=!1,Kme)),[2,sme.saveRemote(tme.api||dme,Yme,{successMessage:typeof bme=="string"?filter$1(bme,sme.data):void 0,errorMessage:typeof mme=="string"?filter$1(mme,sme.data):void 0,onSuccess:function(lbe){return __awaiter(Zme,void 0,void 0,function(){var ibe,abe,obe=this;return __generator(this,function(hbe){switch(hbe.label){case 0:return Nme&&sme.clearLocalPersistData(),[4,jme("submitSucc",createObject$1(this.props.data,{result:lbe}))];case 1:return ibe=hbe.sent(),!isEffectiveApi(Xme,sme.data)||sme.data[fme||"finished"]?[2,{cbResult:null,dispatcher:ibe}]:(abe=until(function(){return sme.checkRemote(Xme,sme.data)},function(ube){return ube&&ube[fme||"finished"]},function(ube){return obe.asyncCancel=ube},pme).then(function(ube){jme("asyncApiFinished",sme.data)}),[2,{cbResult:abe,dispatcher:ibe}])}})})},onFailed:function(lbe){return __awaiter(Zme,void 0,void 0,function(){var ibe;return __generator(this,function(abe){switch(abe.label){case 0:return[4,jme("submitFail",createObject$1(this.props.data,{error:lbe}))];case 1:return ibe=abe.sent(),[2,{dispatcher:ibe}]}})})}}).then(function(lbe){return __awaiter(Zme,void 0,void 0,function(){var ibe,abe;return __generator(this,function(obe){switch(obe.label){case 0:return _me&&_me(Yme,lbe),ibe=tme.feedback||this.props.feedback,ibe&&isVisible(ibe,sme.data)?[4,this.openFeedback(ibe,sme.data)]:[3,2];case 1:if(abe=obe.sent(),ibe.skipRestOnCancel&&!abe)throw new SkipOperation;if(ibe.skipRestOnConfirm&&abe)throw new SkipOperation;obe.label=2;case 2:return[2,injectObjectChain(sme.data,{__payload:Yme,__response:lbe})]}})})})];Nme&&sme.clearLocalPersistData(),jme("submitSucc",createObject$1(this.props.data,Yme))}return[2,Promise.resolve(null)]}})})},nme,!0).then(function(Yme){if(Yme===!1)return sme.data;if(Cme&&Cme(Yme,tme,sme)===!1)return Yme;if(vme&&sme.reset(Gme.handleReset(tme)),gme&&sme.clear(Gme.handleReset(tme)),Nme&&sme.clearLocalPersistData(),tme.redirect||Eme){var Qme=filter$1(tme.redirect||Eme,sme.data);Qme&&Ome.jumpTo(Qme,tme,sme.data)}else(tme.reload||xme)&&Gme.reloadTarget(filterTarget(tme.reload||xme,sme.data),sme.data);return tme.close&&Gme.closeTarget(tme.close),Yme}).catch(function(Yme){if(Sme&&Sme(Yme,sme.errors),nme)throw Yme})]);case 8:if(tme.type==="reset"||tme.actionType==="reset")sme.setCurrentAction(tme,this.props.resolveDefinitions),sme.reset($me);else if(tme.actionType==="clear")sme.setCurrentAction(tme,this.props.resolveDefinitions),sme.clear($me);else{if(tme.actionType==="validate")return sme.setCurrentAction(tme,this.props.resolveDefinitions),[2,this.validate(!0,nme,!0,!0)];if(tme.actionType==="dialog")return sme.setCurrentAction(tme,this.props.resolveDefinitions),[2,new Promise(function(Yme){sme.openDialog(ame,void 0,function(Qme,Xme){var Kme;(Kme=tme.callback)===null||Kme===void 0||Kme.call(tme,Qme,Xme),Yme({confirmed:Qme,value:Xme})},rme||Gme.context)})];if(tme.actionType==="drawer")return sme.setCurrentAction(tme,this.props.resolveDefinitions),[2,new Promise(function(Yme){sme.openDrawer(ame,void 0,function(Qme,Xme){var Kme;(Kme=tme.callback)===null||Kme===void 0||Kme.call(tme,Qme,Xme),Yme({confirmed:Qme,value:Xme})})})];if(tme.actionType==="ajax")return sme.setCurrentAction(tme,this.props.resolveDefinitions),isEffectiveApi(tme.api)?(zme=tme.messages&&tme.messages.success||bme,Ume=tme.messages&&tme.messages.failed||mme,[2,sme.saveRemote(tme.api,ame,{successMessage:Mme(typeof zme=="string"?filter$1(zme,sme.data):void 0),errorMessage:Mme(typeof Ume=="string"?filter$1(Ume,sme.data):void 0)}).then(function(Yme){return __awaiter(Gme,void 0,void 0,function(){var Qme;return __generator(this,function(Xme){switch(Xme.label){case 0:return Yme&&Rme&&Rme(sme.data,difference$2(sme.data,sme.pristine),this.props),sme.validated?[4,this.validate(!0)]:[3,2];case 1:Xme.sent(),Xme.label=2;case 2:return tme.feedback&&isVisible(tme.feedback,sme.data)?[4,this.openFeedback(tme.feedback,sme.data)]:[3,4];case 3:Xme.sent(),Xme.label=4;case 4:return Qme=tme.redirect&&filter$1(tme.redirect,sme.data),Qme&&Ome.jumpTo(Qme,tme,sme.data),tme.reload&&this.reloadTarget(filterTarget(tme.reload,sme.data),sme.data),tme.close&&this.closeTarget(tme.close),[2]}})})}).catch(function(Yme){if(Sme&&Sme(Yme,sme.errors),nme||tme.countDown)throw Yme})]):[2,Ome.alert(Mme("当 actionType 为 ajax 时，请设置 api 属性"))];if(tme.actionType==="reload")sme.setCurrentAction(tme,this.props.resolveDefinitions),tme.target?this.reloadTarget(filterTarget(tme.target,ame),ame):this.receive(ame);else if(yme)return[2,yme($P,tme,ame,nme,rme||this.context)]}Jme.label=9;case 9:return[2]}})})},eme.prototype.handleQuery=function($P){if(this.props.initApi){if($P!=null&&$P.hasOwnProperty("orderBy")&&!isApiOutdated(this.props.initApi,this.props.initApi,this.props.store.data,createObject$1(this.props.store.data,$P)))return!1;this.receive($P);return}return this.props.onQuery?this.props.onQuery($P):!1},eme.prototype.handleDialogConfirm=function($P,tme,ame,nme){var rme=this.props,ime=rme.store;rme.onChange,(tme.mergeData||ime.action.mergeData)&&$P.length===1&&$P[0]&&nme[0].props.type==="form"&&this.handleBulkChange($P[0],!1),ime.closeDialog(!0,$P)},eme.prototype.handleDialogClose=function($P){$P===void 0&&($P=!1);var tme=this.props.store;tme.closeDialog($P)},eme.prototype.handleDrawerConfirm=function($P,tme,ame,nme){var rme=this.props,ime=rme.store,ome=rme.onChange;(tme.mergeData||ime.action.mergeData)&&$P.length===1&&$P[0]&&nme[0].props.type==="form"&&(ime.updateData($P[0]),ome&&ome(ime.data,difference$2(ime.data,ime.pristine),this.props)),ime.closeDrawer(!0,$P)},eme.prototype.handleDrawerClose=function(){var $P=this.props.store;$P.closeDrawer(!1)},eme.prototype.submitToTarget=function($P,tme){},eme.prototype.reloadTarget=function($P,tme){},eme.prototype.closeTarget=function($P){},eme.prototype.openFeedback=function($P,tme){var ame=this;return new Promise(function(nme){var rme=ame.props.store;rme.setCurrentAction({type:"button",actionType:"dialog",dialog:$P},ame.props.resolveDefinitions),rme.openDialog(tme,void 0,function(ime){nme(ime)},ame.context)})},eme.prototype.buildActions=function(){var $P=this.props,tme=$P.actions,ame=$P.submitText,nme=$P.body,rme=$P.translate,ime=$P.loadingConfig;return typeof tme<"u"||!ame||Array.isArray(nme)&&nme.some(function(ome){var lme,sme,cme;return ome&&!!~["submit","button","button-group","reset"].indexOf(((sme=(lme=ome==null?void 0:ome.body)===null||lme===void 0?void 0:lme[0])===null||sme===void 0?void 0:sme.type)||((cme=ome==null?void 0:ome.body)===null||cme===void 0?void 0:cme.type)||ome.type)})?tme:[{type:"submit",label:rme(ame),primary:!0,loadingConfig:ime}]},eme.prototype.renderFormItems=function($P,tme,ame){tme===void 0&&(tme=""),ame===void 0&&(ame={});var nme=Array.isArray($P.body)?$P.body:$P.body?[$P.body]:[];return!nme.length&&$P.controls&&(console.warn("请用 body 代替 controls"),nme=[{size:"none",type:"wrapper",wrap:!1,controls:$P.controls}]),this.renderChildren(nme,tme,ame)},eme.prototype.renderChildren=function($P,tme,ame){var nme=this;ame===void 0&&(ame={}),$P=$P||[];var rme=this.props.classnames;if(Array.isArray($P)||($P=[$P]),this.props.mode==="row")return this.props.classPrefix,$P=flatten$4($P).filter(function(ome){if(ome.hidden||ome.visible===!1)return!1;var lme=getExprProperties(ome,nme.props.store.data,void 0,nme.props);return!(lme.hidden||lme.visible===!1)}),$P.length?React__default.createElement("div",{className:rme("Form-row")},$P.map(function(ome,lme){return~["hidden","formula"].indexOf(ome.type)||ome.mode==="inline"?nme.renderChild(ome,lme,ame):React__default.createElement("div",{key:lme,className:rme("Form-col",ome.columnClassName)},nme.renderChild(ome,"",__assign$3(__assign$3({},ame),{mode:"row"})))})):null;if(this.props.mode==="flex"){var ime=[];return $P.forEach(function(ome){typeof ome.row=="number"?ime[ome.row]?ime[ome.row].push(ome):ime[ome.row]=[ome]:ime.push([ome])}),React__default.createElement(React__default.Fragment,null,ime.map(function(ome,lme){return React__default.createElement("div",{className:rme("Form-flex"),role:"flex-row",key:lme},ome.map(function(sme,cme){var dme,ume=(dme=sme.colSize)===null||dme===void 0?void 0:dme.split("/"),fme=ume!=null&&ume[0]&&(ume!=null&&ume[1])?ume[0]/ume[1]*100+"%":sme.colSize;return~["hidden","formula"].indexOf(sme.type)?nme.renderChild(sme,cme,ame):React__default.createElement("div",{key:sme.id||cme,className:rme("Form-flex-col",sme.columnClassName),style:{flex:fme&&!["1","auto"].includes(fme)?"0 0 ".concat(fme):""},role:"flex-col"},nme.renderChild(sme,"",__assign$3(__assign$3({},ame),{mode:"flex"})))}))}))}return $P.map(function(ome,lme){return nme.renderChild(ome,lme,ame,tme)})},eme.prototype.renderChild=function($P,tme,ame,nme){if(tme===void 0&&(tme=""),ame===void 0&&(ame={}),nme===void 0&&(nme=""),$P)typeof $P=="string"&&($P={type:"tpl",tpl:$P});else return null;var rme=__assign$3(__assign$3({},this.props),ame),ime=this.props.store,ome=rme.render,lme=rme.mode,sme=rme.horizontal,cme=rme.store,dme=rme.disabled,ume=rme.controlWidth,fme=rme.resolveDefinitions,pme=rme.lazyChange;rme.formLazyChange,rme.dispatchEvent;var hme=rme.labelAlign,bme=rme.labelWidth;rme.static,rme.canAccessSuperData;var mme={formStore:ime,data:cme.data,key:"".concat($P.name||"","-").concat($P.type,"-").concat(tme),formInited:ime.inited,formSubmited:ime.submited,formMode:lme,formHorizontal:sme,formLabelAlign:!hme||!["left","right","top"].includes(hme)?"right":hme,formLabelWidth:bme,controlWidth:ume,disabled:dme||$P.disabled||(ime.loading?!0:void 0),btnDisabled:dme||ime.loading||ime.validating,onAction:this.handleAction,onQuery:this.handleQuery,onChange:this.handleChange,onBulkChange:this.handleBulkChange,addHook:this.addHook,removeHook:this.removeHook,renderFormItems:this.renderFormItems,formItemDispatchEvent:this.formItemDispatchEvent,formPristine:ime.pristine,onFlushForm:this.flush},vme=__assign$3({},$P);return vme.$ref&&(vme=__assign$3(__assign$3({},fme(vme.$ref)),vme)),pme===!1&&(vme.changeImmediately=!0),ome("".concat(nme?"".concat(nme,"/"):"").concat(tme),vme,mme)},eme.prototype.renderBody=function(){var $P=this.props,tme=$P.body,ame=$P.mode,nme=$P.className,rme=$P.classnames,ime=$P.debug,ome=$P.debugConfig,lme=$P.$path,sme=$P.store,cme=$P.columnCount,dme=$P.render,ume=$P.staticClassName,fme=$P.static,pme=fme===void 0?!1:fme,hme=$P.loadingConfig,bme=$P.themeCss,mme=$P.id,vme=$P.wrapperCustomStyle,gme=$P.env,yme=$P.wrapWithPanel;$P.testid;var _me=sme.restError,$me=this.props.wrapperComponent||(/(?:\/|^)form\//.test(lme)?"div":"form"),Cme=repeatCount(cme&&Array.isArray(tme)?(cme-tme.length%cme)%cme:0,function(Sme){return React__default.createElement("div",{className:rme("Form-item Form-item--".concat(ame," is-placeholder")),key:Sme})});return React__default.createElement($me,{className:rme("Form","Form--".concat(ame||"normal"),cme?"Form--column Form--column-".concat(cme):null,ume&&pme?ume:nme,pme?"Form--isStatic":null,setThemeClassName(__assign$3(__assign$3({},this.props),{name:["formControlClassName","itemClassName","staticClassName","itemLabelClassName"],id:mme,themeCss:bme})),!yme&&setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:mme,themeCss:vme}))),onSubmit:this.handleFormSubmit,noValidate:!0},React__default.createElement("input",{type:"submit",style:{display:"none"}}),ime?dme("form-debug-json",__assign$3({type:"json",value:sme.data,ellipsisThreshold:120,className:rme("Form--debug")},ome)):null,dme("spinner",{type:"spinner"},{overlay:!0,show:sme.loading,loadingConfig:hme}),this.renderFormItems({body:tme}),Cme,_me&&_me.length?React__default.createElement("ul",{className:rme("Form-restError","Form-feedback")},_me.map(function(Sme,Eme){return React__default.createElement("li",{key:Eme},Sme)})):null,dme("modal",__assign$3(__assign$3({},sme.action&&sme.action.dialog),{type:"dialog"}),{key:"dialog",data:sme.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:sme.dialogOpen}),dme("modal",__assign$3(__assign$3({},sme.action&&sme.action.drawer),{type:"drawer"}),{key:"drawer",data:sme.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:sme.drawerOpen}),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{themeCss:bme,classNames:[yme&&{key:"panelClassName"},!yme&&{key:"formControlClassName"},{key:"headerControlClassName",weights:{default:{parent:".".concat(rme("Panel"))}}},yme&&{key:"headerTitleControlClassName",weights:{default:{important:!0}}},yme&&{key:"bodyControlClassName"},yme&&{key:"actionsControlClassName",weights:{default:{parent:".".concat(rme("Panel--form"))}}},{key:"itemClassName",weights:{default:{inner:".".concat(rme("Form-item"))}}},{key:"staticClassName",weights:{default:{inner:".".concat(rme("Form-static"))}}},{key:"itemLabelClassName",weights:{default:{inner:".".concat(rme("Form-label"))}}}].filter(function(Sme){return Sme}),wrapperCustomStyle:vme,id:mme},env:gme})))},eme.prototype.render=function(){var $P=this.props;$P.$path,$P.$schema;var tme=$P.wrapWithPanel,ame=$P.render,nme=$P.title,rme=$P.store,ime=$P.panelClassName,ome=$P.headerClassName,lme=$P.footerClassName,sme=$P.footerWrapClassName,cme=$P.actionsClassName,dme=$P.bodyClassName,ume=$P.classnames,fme=$P.style,pme=$P.affixFooter,hme=$P.lazyLoad,bme=$P.translate,mme=$P.footer,vme=$P.id,gme=$P.wrapperCustomStyle,yme=$P.themeCss,_me=this.renderBody();return tme&&(_me=ame("body",{type:"panel",title:bme(nme)},{className:ume(ime,"Panel--form",setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:vme,themeCss:gme})),setThemeClassName(__assign$3(__assign$3({},this.props),{name:"panelClassName",id:vme,themeCss:yme}))),style:fme,formStore:this.props.store,children:_me,actions:this.buildActions(),onAction:this.handleAction,onQuery:this.handleQuery,disabled:rme.loading,btnDisabled:rme.loading||rme.validating,headerClassName:ome,headerControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"headerControlClassName",id:vme,themeCss:yme})),headerTitleControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"headerTitleControlClassName",id:vme,themeCss:yme})),footer:mme,footerClassName:lme,footerWrapClassName:sme,actionsClassName:cme,actionsControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"actionsControlClassName",id:vme,themeCss:yme})),bodyClassName:dme,bodyControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"bodyControlClassName",id:vme,themeCss:yme})),affixFooter:pme})),hme&&(_me=React__default.createElement(themedLazyComponent,null,_me)),_me},eme.defaultProps={title:"Form.title",submitText:"Form.submit",initFetch:!0,wrapWithPanel:!0,mode:"normal",collapsable:!1,controlWidth:"full",horizontal:{left:2,right:10,offset:2},columnCount:0,panelClassName:"Panel--default",messages:{fetchFailed:"fetchFailed",saveSuccess:"saveSuccess",saveFailed:"saveFailed"},wrapperComponent:"",finishedField:"finished",initFinishedField:"finished",labelAlign:"right"},eme.propsList=["title","header","controls","tabs","fieldSet","submitText","initFetch","wrapWithPanel","mode","columnCount","collapsable","horizontal","panelClassName","messages","wrapperComponent","resetAfterSubmit","clearAfterSubmit","submitOnInit","submitOnChange","onInit","onReset","onSubmit","onChange","onFailed","onFinished","onValidate","onValidChange","onSaved","canAccessSuperData","lazyChange","formLazyChange","lazyLoad","formInited","simpleMode","inputOnly","value","actions","multiple"],eme}(React__default.Component),FormRenderer=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this,nme=tme;return nme.registerComponent(ame),ame}return eme.prototype.componentDidMount=function(){if(x_.prototype.componentDidMount.call(this),this.props.autoFocus){var $P=this.context,tme=$P.getComponents(),ame=find$3(tme,function(nme){return nme.focus});ame&&setTimeout(function(){return ame.focus()},200)}},eme.prototype.componentWillUnmount=function(){var $P=this.context;$P.unRegisterComponent(this),x_.prototype.componentWillUnmount.call(this)},eme.prototype.doAction=function($P,tme,ame){return tme===void 0&&(tme=this.props.store.data),ame===void 0&&(ame=!1),this.handleAction(void 0,$P,tme,ame)},eme.prototype.handleAction=function($P,tme,ame,nme,rme){return nme===void 0&&(nme=!1),__awaiter(this,void 0,void 0,function(){var ime;return __generator(this,function(ome){return tme.target&&tme.actionType!=="reload"?(ime=this.context,[2,Promise.all(tme.target.split(",").map(function(lme){var sme=ime.getComponentByName(lme);return sme&&sme.doAction&&sme.doAction(__assign$3(__assign$3({},tme),{target:void 0}),ame,nme)}))]):[2,x_.prototype.handleAction.call(this,$P,tme,ame,nme,rme)]})})},eme.prototype.handleDialogConfirm=function($P,tme,ame,nme){x_.prototype.handleDialogConfirm.call(this,$P,tme,ame,nme);var rme=this.props.store,ime=this.context;tme.reload?ime.reload(tme.reload,ame):rme.action&&rme.action.reload&&ime.reload(rme.action.reload,ame)},eme.prototype.submitToTarget=function($P,tme){var ame=this.context;ame.send($P,tme)},eme.prototype.reloadTarget=function($P,tme){var ame=this.context;ame.reload($P,tme)},eme.prototype.closeTarget=function($P){var tme=this.context;tme.close($P)},eme.prototype.reload=function($P,tme,ame,nme,rme){return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return tme?[2,this.receive(tme,void 0,rme)]:(ime=this.context,ome="",sme=null,$P&&~(lme=$P.indexOf("."))&&(ome=$P.substring(lme+1),$P=$P.substring(0,lme)),cme=$P?$P.indexOf("?"):-1,~cme&&(sme=dataMapping(qsparse($P.substring(cme+1)),ame),$P=$P.substring(0,cme)),$P&&(dme=ime.getComponentByName($P))&&dme.reload?(dme.reload(ome,sme,ame),[3,4]):[3,1]);case 1:return $P!=="*"?[3,3]:[4,x_.prototype.reload.call(this,$P,tme,ame,nme)];case 2:return fme.sent(),ume=ime.getComponents(),ume.forEach(function(pme){return pme.reload&&pme.reload("",sme,ame)}),[3,4];case 3:return[2,x_.prototype.reload.call(this,$P,tme,ame,nme)];case 4:return[2]}})})},eme.prototype.receive=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome;return __generator(this,function(lme){return tme?(nme=this.context,rme=tme.indexOf("."),ime="",~rme&&(ime=tme.substring(1+rme),tme=tme.substring(0,rme)),ome=nme.getComponentByName(tme),ome&&ome.receive&&ome.receive($P,ime),[2]):[2,x_.prototype.receive.call(this,$P,void 0,ame)]})})},eme.prototype.setData=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.store;x_.prototype.setValues.call(this,$P,tme),nme&&nme(rme.data,difference$2(rme.data,rme.pristine),this.props)},eme.prototype.getData=function(){return this.getValues()},eme.contextType=ScopedContext,eme=__decorate$1([Renderer({type:"form",storeType:FormStore.name,isolateScope:!0,storeExtendsData:function($P){return $P.inheritData},shouldSyncSuperStore:function($P,tme,ame){var nme,rme;if(tme.quickEditFormRef&&tme.onQuickChange&&(isObjectShallowModified$1(ame.data,tme.data)||isObjectShallowModified$1(ame.data.__super,tme.data.__super)||isObjectShallowModified$1((nme=ame.data.__super)===null||nme===void 0?void 0:nme.__super,(rme=tme.data.__super)===null||rme===void 0?void 0:rme.__super)))return!0}}),__metadata("design:paramtypes",[Object,Object])],eme),eme}(Form$2);registerRenderer({type:"spinner",component:Placeholder});registerRenderer({type:"alert",component:Placeholder});registerRenderer({type:"dialog",component:Placeholder});registerRenderer({type:"drawer",component:Placeholder});function wrapControl$1(x_,eme){var $P,tme=hoistNonReactStatics(withRootStore(observer(($P=function(ame){__extends$2(nme,ame);function nme(rme){var ime=this,ome,lme;ime=ame.call(this,rme)||this,ime.value=void 0,ime.lazyEmitChange=debounce$6(ime.emitChange.bind(ime),250,{trailing:!0,leading:!1});var sme=ime.props,cme=sme.formStore,dme=sme.formItem,ume=sme.rootStore,fme=sme.store,pme=sme.onChange,hme=sme.data,bme=sme.inputGroupControl,mme=sme.colIndex,vme=sme.rowIndex,gme=sme.$schema,yme=gme.id,_me=gme.type,$me=gme.required,Cme=gme.validations,Sme=gme.validationErrors,Eme=gme.unique,xme=gme.value,Tme=gme.extraName;gme.multiple;var Ome=gme.delimiter,Rme=gme.valueField,Nme=gme.labelField,Ime=gme.joinValues,Pme=gme.extractValue,Mme=gme.selectFirst,kme=gme.autoFill,Bme=gme.clearValueOnHidden,Dme=gme.validateApi,jme=gme.minLength,Vme=gme.maxLength,Wme=gme.validateOnChange,Lme=gme.label,zme=gme.pagination;ime.getValue=ime.getValue.bind(ime),ime.setValue=ime.setValue.bind(ime),ime.handleChange=ime.handleChange.bind(ime),ime.setPrinstineValue=ime.setPrinstineValue.bind(ime),ime.controlRef=ime.controlRef.bind(ime),ime.handleBlur=ime.handleBlur.bind(ime),ime.validate=ime.validate.bind(ime),ime.flushChange=ime.flushChange.bind(ime),ime.renderChild=ime.renderChild.bind(ime);var Ume=ime.props.$schema.name||((ome=eme.defaultProps)===null||ome===void 0?void 0:ome.name);if(isExpression(Ume)&&(Ume=tokenize(Ume,hme)),!Ume)return ime;var Gme=ime.props.value,Jme=ume.addStore({id:guid$1(),path:ime.props.$path,storeType:x_.formItemStoreType||FormItemStore.name,parentId:fme==null?void 0:fme.id,name:Ume,colIndex:mme!==void 0?mme:void 0,rowIndex:vme!==void 0?vme:void 0});if(ime.model=Jme,dme==null||dme.addSubFormItem(Jme),Jme.config(__assign$3(__assign$3({},pick$3(__assign$3(__assign$3({},eme.defaultProps),ime.props.$schema),["multiple"])),{id:yme,type:_me,required:rme.required||$me,unique:Eme,value:xme,isValueSchemaExp:isExpression(xme),rules:Cme,messages:Sme,delimiter:Ome,valueField:Rme,labelField:Nme,joinValues:Ime,extractValue:Pme,selectFirst:Mme,autoFill:kme,clearValueOnHidden:Bme,validateApi:Dme,minLength:jme,maxLength:Vme,validateOnChange:Wme,label:Lme,inputGroupControl:bme,extraName:Tme,pagination:zme})),ime.model.unique&&((lme=cme==null?void 0:cme.parentStore)===null||lme===void 0?void 0:lme.storeType)===ComboStore.name){var Yme=cme.parentStore;Yme.bindUniuqueItem(Jme)}if(Gme!=null?(Jme.changeTmpValue(Gme,"controlled"),Jme.setIsControlled(!0)):ime.setInitialValue(xme),pme&&xme!==void 0&&Jme.tmpValue!==void 0)if(Jme.extraName){var Qme=Jme.splitExtraValue(Jme.tmpValue);pme(Qme[0],Jme.name,!1,!0),pme(Qme[1],Jme.extraName,!1,!0)}else pme(Jme.tmpValue,Jme.name,!1,!0);else if(pme&&typeof Gme>"u"&&typeof(fme==null?void 0:fme.getValueByName(Jme.name,!1))>"u"&&(fme==null?void 0:fme.storeType)!==TableStore.name)if(Jme.extraName){var Qme=Jme.splitExtraValue(Jme.tmpValue);pme(Qme[0],Jme.name,!1,!0),pme(Qme[1],Jme.extraName,!1,!0)}else pme(Jme.tmpValue,Jme.name,!1,!0);return ime}return nme.prototype.componentDidMount=function(){var rme=this,ime=this.props;ime.store,ime.formStore;var ome=ime.$schema.validate,lme=ime.addHook;this.hook3=function(){return rme.lazyEmitChange.flush()},lme==null||lme(this.hook3,"flush");var sme=this.model;if(sme&&ome){var cme=promisify(ome.bind(this.control));this.hook2=function(){return sme.clearError("control:valdiate"),cme(rme.props.data,rme.getValue(),sme.name).then(function(dme){(typeof dme=="string"||Array.isArray(dme))&&dme&&sme.addError(dme,"control:valdiate")})},lme==null||lme(this.hook2)}sme==null||sme.init()},nme.prototype.componentDidUpdate=function(rme){var ime=this,ome,lme,sme,cme=this.props,dme=this.model;if(dme){if(changedEffect(["name","id","validations","validationErrors","value","defaultValue","required","unique","multiple","delimiter","valueField","labelField","joinValues","extractValue","selectFirst","autoFill","clearValueOnHidden","validateApi","minLength","maxLength","label","extraName","pagination"],rme.$schema,cme.$schema,function(bme){dme.config(__assign$3(__assign$3({},bme),{isValueSchemaExp:isExpression(cme.$schema.value),inputGroupControl:cme==null?void 0:cme.inputGroupControl})),bme.hasOwnProperty("name")&&ime.setInitialValue(ime.props.$schema.value)}),cme.required!==rme.required&&dme.config({required:cme.required}),typeof cme.value<"u")!isEqual$1(cme.value,rme.value)&&!isEqual$1(cme.value,dme.tmpValue)&&dme.changeTmpValue(cme.value,"controlled");else if(typeof cme.defaultValue<"u"&&isExpression(cme.defaultValue)&&(!isEqual$1(cme.defaultValue,rme.defaultValue)||cme.data!==rme.data&&isNeedFormula(cme.defaultValue,cme.data,rme.data))){var ume=FormulaExec.formula(cme.defaultValue,cme.data),fme=FormulaExec.formula(rme.defaultValue,rme.data);if(!isEqual$1(ume,fme)&&!isEqual$1(ume,dme.tmpValue))if(dme.changeTmpValue(ume,"formulaChanged"),dme.extraName){var pme=dme.splitExtraValue(ume);(ome=cme.onChange)===null||ome===void 0||ome.call(cme,pme[0],dme.name,!1),(lme=cme.onChange)===null||lme===void 0||lme.call(cme,pme[1],dme.extraName,!1)}else(sme=cme.onChange)===null||sme===void 0||sme.call(cme,ume,dme.name,!1)}else if(cme.data!==rme.data&&(!dme.emitedValue||isEqual$1(dme.emitedValue,dme.tmpValue))){dme.changeEmitedValue(void 0);var hme=dme.extraName?[getVariable(cme.data,dme.name,!1),getVariable(cme.data,dme.extraName,!1)]:getVariable(cme.data,dme.name,!1);!isEqual$1(hme,dme.extraName?dme.splitExtraValue(dme.tmpValue):dme.tmpValue)&&(!isEqual$1(dme.extraName?hme[0]:hme,getVariable(rme.data,dme.name,!1))||dme.extraName&&!isEqual$1(hme[1],getVariable(rme.data,dme.extraName,!1)))&&(dme.changeTmpValue(hme,cme.formInited&&!rme.formInited?"formInited":"dataChanged"),this.checkValidate())}}},nme.prototype.componentWillUnmount=function(){var rme,ime,ome,lme,sme,cme,dme;this.hook&&((ime=(rme=this.props).removeHook)===null||ime===void 0||ime.call(rme,this.hook)),this.hook2&&((lme=(ome=this.props).removeHook)===null||lme===void 0||lme.call(ome,this.hook2)),this.hook3&&((cme=(sme=this.props).removeHook)===null||cme===void 0||cme.call(sme,this.hook3,"flush")),this.lazyEmitChange.cancel(),(dme=this.reaction)===null||dme===void 0||dme.call(this),this.disposeModel()},nme.prototype.setInitialValue=function(rme){var ime=this.model,ome=this.props,lme=ome.formStore,sme=ome.data,cme=ome.canAccessSuperData,dme=isExpression(rme),ume=ime.extraName?[getVariable(sme,ime.name,cme??(lme==null?void 0:lme.canAccessSuperData)),getVariable(sme,ime.extraName,cme??(lme==null?void 0:lme.canAccessSuperData))]:getVariable(sme,ime.name,cme??(lme==null?void 0:lme.canAccessSuperData));ime.extraName&&ume.every(function(fme){return fme===void 0})&&(ume=void 0),typeof ume>"u"&&(rme=dme?FormulaExec.formula(rme,sme):replaceExpression(rme)),ime.changeTmpValue(ume??rme,typeof ume<"u"?"initialValue":dme?"formulaChanged":"defaultValue")},nme.prototype.disposeModel=function(){var rme,ime=this.props,ome=ime.formStore,lme=ime.formItem,sme=ime.rootStore;if(this.model&&this.model.unique&&(ome!=null&&ome.parentStore)&&(ome==null?void 0:ome.parentStore.storeType)===ComboStore.name){var cme=ome.parentStore;cme.unBindUniuqueItem(this.model)}this.model&&(lme&&isAlive(lme)&&lme.removeSubFormItem(this.model),this.model.clearValueOnHidden&&((rme=this.model.form)===null||rme===void 0||rme.deleteValueByName(this.model.name,{type:"hide"})),isAlive(sme)&&sme.removeStore(this.model)),delete this.model},nme.prototype.controlRef=function(rme){var ime=this,ome=this.props,lme=ome.addHook,sme=ome.removeHook;ome.formStore;for(var cme=ome.formItemRef;rme&&rme.getWrappedInstance;)rme=rme.getWrappedInstance();if(rme&&!rme.props&&Object.defineProperty(rme,"props",{get:function(){return ime.props}}),rme&&rme.validate&&this.model){var dme=this.model,ume=promisify(rme.validate.bind(rme));this.hook=function(){return dme.clearError("component:valdiate"),ume(ime.props.data,ime.getValue(),dme.name).then(function(hme){(typeof hme=="string"||Array.isArray(hme))&&hme&&dme.setError(hme,"component:valdiate")})},lme==null||lme(this.hook)}else!rme&&this.hook&&(sme==null||sme(this.hook),this.hook=void 0);cme==null||cme(rme);var fme=this.control;this.control=rme;var pme=this.context;rme?pme.registerComponent(this.control):fme&&pme.unRegisterComponent(fme)},nme.prototype.checkValidate=function(){var rme;if(this.model){var ime=this.model.validated,ome=this.props,lme=ome.formSubmited,sme=ome.validateOnChange;sme===!0||sme!==!1&&(lme||ime)?this.validate():sme===!1&&((rme=this.model)===null||rme===void 0||rme.reset())}},nme.prototype.validate=function(){var rme,ime;return __awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme,pme,hme;return __generator(this,function(bme){switch(bme.label){case 0:return this.model?(ome=this.props,lme=ome.formStore,sme=ome.data,cme=ome.formItemDispatchEvent,this.model.unique&&(lme!=null&&lme.parentStore)&&lme.parentStore.storeType===ComboStore.name?(ume=lme.parentStore,fme=ume.uniques.get(this.model.name),pme=fme.items.map(function(mme){return mme.validate(sme)}),[4,Promise.all(pme)]):[3,2]):[2];case 1:return dme=bme.sent(),[3,4];case 2:return[4,this.model.validate(sme)];case 3:dme=[bme.sent()],bme.label=4;case 4:return hme=!dme.some(function(mme){return mme===!1}),(rme=cme??this.props.dispatchEvent)===null||rme===void 0||rme(hme?"formItemValidateSucc":"formItemValidateError",(ime=lme==null?void 0:lme.data)!==null&&ime!==void 0?ime:this.props.data),[2,hme]}})})},nme.prototype.flushChange=function(){this.lazyEmitChange.flush()},nme.prototype.handleChange=function(rme,ime,ome){ime===void 0&&(ime=this.props.$schema.submitOnChange),ome===void 0&&(ome=!1);var lme=this.props;lme.formStore;var sme=lme.onChange,cme=lme.$schema,dme=cme.type,ume=cme.pipeOut,fme=cme.changeImmediately,pme=lme.formInited,hme=lme.data;if(!this.model||~["service","group","hbox","panel","grid","input-group"].indexOf(dme)){sme&&sme.apply(null,arguments);return}if(ume){var bme=this.model.value;rme=callStrFunction.call(this,ume,["value","oldValue","data"],rme,bme,hme)}this.model.changeTmpValue(rme,dme==="formula"?"formulaChanged":"input"),ome||fme||!pme?this.emitChange(ime):this.lazyEmitChange(ime)},nme.prototype.emitChange=function(rme){rme===void 0&&(rme=this.props.$schema.submitOnChange);var ime=this.props,ome=ime.formStore,lme=ime.onChange,sme=ime.$schema,cme=sme.id,dme=sme.label,ume=sme.type,fme=sme.onChange;sme.maxLength,sme.minLength;var pme=ime.data,hme=ime.env;if(ime.validateOnChange,ime.formSubmited,!!this.model){var bme=this.model,mme=this.model.tmpValue,vme=void 0;if(!(!bme.isControlled&&(vme=bme.extraName?[getVariable(pme,bme.name,!1),getVariable(pme,bme.extraName,!1)]:getVariable(pme,bme.name,!1),bme.extraName?isEqual$1(vme,mme):vme===mme))&&(ume!=="input-password"&&(hme==null||hme.tracker({eventType:"formItemChange",eventData:{id:cme,name:bme.name,label:dme,type:ume,value:mme}},this.props)),this.model.changeEmitedValue(mme),(fme==null?void 0:fme(mme,vme,this.model,ome))!==!1&&this.model)){var gme={type:"input"};if(bme.changeMotivation==="formulaChanged"?gme.type="formula":(bme.changeMotivation==="initialValue"||bme.changeMotivation==="formInited"||bme.changeMotivation==="defaultValue")&&(gme.type="init"),bme.extraName){var yme=bme.splitExtraValue(mme);lme==null||lme(yme[0],bme.name,void 0,void 0,gme),lme==null||lme(yme[1],bme.extraName,rme===!0,void 0,gme)}else lme==null||lme(mme,bme.name,rme===!0,void 0,gme);this.checkValidate()}}},nme.prototype.handleBlur=function(rme){var ime=this.props,ome=ime.onBlur,lme=ime.$schema.validateOnBlur;lme&&this.model&&this.validate(),ome&&ome(rme)},nme.prototype.setPrinstineValue=function(rme){if(this.model){var ime=this.model,ome=this.props;ome.formStore;var lme=ome.$schema.pipeOut,sme=ome.onChange,cme=ome.value,dme=ome.data;if(lme&&(rme=callStrFunction.call(this,lme,["value","oldValue","data"],rme,cme,dme)),ime.extraName){var ume=ime.splitExtraValue(rme);sme==null||sme(ume[0],ime.name,!1,!0),sme==null||sme(ume[1],ime.extraName,!1,!0)}else sme==null||sme(rme,ime.name,!1,!0)}},nme.prototype.getValue=function(){var rme=this.props,ime=rme.formStore,ome=rme.data,lme=rme.$schema,sme=this.model?this.model.tmpValue:lme.value;return lme.pipeIn&&(sme=callStrFunction.call(this,lme.pipeIn,["value","store","data"],sme,ime,ome)),sme},nme.prototype.setValue=function(rme,ime){var ome,lme=this.props.onBulkChange;!ime||this.model&&ime===this.model.name?this.handleChange(rme):lme&&lme((ome={},ome[ime]=rme,ome))},nme.prototype.renderChild=function(rme,ime,ome){ome===void 0&&(ome={});var lme=this.props,sme=lme.render,cme=lme.data,dme=lme.store,ume=this.model;return sme(rme,ime,__assign$3({data:ume?ume.getMergedData(cme||(dme==null?void 0:dme.data)):cme||(dme==null?void 0:dme.data)},ome))},nme.prototype.render=function(){var rme,ime,ome,lme=this.props,sme=lme.controlWidth,cme=lme.disabled,dme=lme.formMode,ume=lme.$schema,fme=lme.store,pme=lme.data,hme=lme.invisible,bme=lme.defaultStatic;if(hme)return null;var mme=this.getValue(),vme=this.model,gme={defaultSize:sme,disabled:cme??ume.disabled,static:(ime=(rme=this.props.static)!==null&&rme!==void 0?rme:ume.static)!==null&&ime!==void 0?ime:bme,formItem:this.model,formMode:ume.mode||dme,ref:this.controlRef,data:pme||(fme==null?void 0:fme.data),name:(ome=vme==null?void 0:vme.name)!==null&&ome!==void 0?ome:ume.name,value:mme,changeMotivation:vme==null?void 0:vme.changeMotivation,defaultValue:ume.value,formItemValue:mme,onChange:this.handleChange,onBlur:this.handleBlur,setValue:this.setValue,getValue:this.getValue,prinstine:vme?vme.prinstine:void 0,setPrinstineValue:this.setPrinstineValue,onValidate:this.validate,onFlushChange:this.flushChange};return React__default.createElement(eme,__assign$3({},this.props,gme))},nme}(React__default.Component),$P.displayName="WrapControl".concat(eme.displayName||eme.name?"(".concat(eme.displayName||eme.name,")"):""),$P.contextType=ScopedContext,$P.defaultProps={},$P))),eme);return tme}var resolveContainerRef=function(eme){var $P;return typeof document>"u"?null:eme==null?ownerDocument$2().body:(typeof eme=="function"&&(eme=eme()),eme&&"current"in eme&&(eme=eme.current),($P=eme)!=null&&$P.nodeType&&eme||null)};function useWaitForDOMRef(x_,eme){var $P=reactExports.useState(function(){return resolveContainerRef(x_)}),tme=$P[0],ame=$P[1];if(!tme){var nme=resolveContainerRef(x_);nme&&ame(nme)}return reactExports.useEffect(function(){eme&&tme&&eme(tme)},[eme,tme]),reactExports.useEffect(function(){var rme=resolveContainerRef(x_);rme!==tme&&ame(rme)},[x_,tme]),tme}var propTypes={container:PropTypes.any,onRendered:PropTypes.func},Portal=function(eme){var $P=eme.container,tme=eme.children,ame=eme.onRendered,nme=useWaitForDOMRef($P,ame);return nme?React__default.createElement(React__default.Fragment,null,ReactDOM.createPortal(tme,nme)):null};Portal.displayName="Portal";Portal.propTypes=propTypes;function getContainer(x_,eme){return x_=typeof x_=="function"?x_():x_,ReactDOM.findDOMNode(x_)||eme}function ownerDocument(x_){var eme;return((eme=ReactDOM.findDOMNode(x_))===null||eme===void 0?void 0:eme.ownerDocument)||document}function getContainerDimensions(x_){var eme,$P,tme,ame;return x_.tagName==="BODY"?($P=window.innerWidth,tme=window.innerHeight,ame=ownerDocument(x_).documentElement.scrollTop||(x_==null?void 0:x_.scrollTop)):(eme=offset(x_),$P=eme.width,tme=eme.height,ame=x_.scrollTop),{width:$P,height:tme,scroll:ame}}function getTopDelta(x_,eme,$P,tme){var ame=getContainerDimensions($P),nme=ame.scroll,rme=ame.height,ime=x_-tme-nme,ome=x_+tme-nme+eme;return ime<0?-ime:ome>rme?rme-ome:0}function getLeftDelta(x_,eme,$P,tme){var ame=getContainerDimensions($P),nme=ame.width,rme=x_-tme,ime=x_+tme+eme;return rme<0?-rme:ime>nme?nme-ime:0}function calculatePosition(x_,eme,$P,tme,ame,nme){var rme;ame===void 0&&(ame=0),nme===void 0&&(nme=[0,0]);var ime=getScrollParent(tme),ome=tme.tagName==="BODY"?offset($P):position($P,tme),lme=offset(eme),sme=lme.height,cme=lme.width,dme=tme.getBoundingClientRect(),ume=eme.getBoundingClientRect(),fme=eme.offsetWidth?ume.width/eme.offsetWidth:1,pme=eme.offsetHeight?ume.height/eme.offsetHeight:1,hme=x_==="auto",bme="left-bottom-left-top";x_=hme?"left-bottom-left-top right-bottom-right-top left-top-left-bottom right-top-right-bottom ".concat(bme):x_;var mme=0,vme=0,gme="",yme="",_me=x_;if(x_==="asContextMenu"){ome.left+1+cme<=dme.width?mme=ome.left+1:ome.left-cme>=0?mme=ome.left-cme:mme=Math.max(dme.width-cme,10),ome.top+1+sme<=dme.height?vme=ome.top+1:vme=Math.max(dme.height-sme-5,10);var $me=__read$3(nme,2),Cme=$me[0],Sme=Cme===void 0?0:Cme,Eme=$me[1],xme=Eme===void 0?0:Eme;return{positionLeft:(mme+Sme)/fme,positionTop:(vme+xme)/pme,arrowOffsetLeft:gme,arrowOffsetTop:yme,activePlacement:_me}}if(~x_.indexOf("-"))for(var Tme=x_.split(/\s+/),Ome={};Tme.length;){var Rme=_me=Tme.shift();if(hme&&Tme.length===0){var Nme=__read$3(bme.split("-"),4),Ime=Nme[0],Pme=Nme[1],Mme=Nme[2],kme=Nme[3],Bme=Ome.atX,Dme=Bme===void 0?Ime:Bme,jme=Ome.atY,Vme=jme===void 0?Pme:jme,Wme=Ome.myX,Lme=Wme===void 0?Mme:Wme,zme=Ome.myY,Ume=zme===void 0?kme:zme;Rme=_me=[Dme,Vme,Lme,Ume].join("-")}var Gme=__read$3(Rme.split("-"),4),Jme=Gme[0],Yme=Gme[1],Qme=Gme[2],Xme=Gme[3];if(Qme=Qme||Jme,Xme=Xme||Yme,mme=Jme==="left"?ome.left:Jme==="right"?ome.left+ome.width:ome.left+ome.width/2,vme=Yme==="top"?ome.top:Yme==="bottom"?ome.top+ome.height:ome.top+ome.height/2,mme-=Qme==="left"?0:Qme==="right"?cme:cme/2,vme-=Xme==="top"?0:Xme==="bottom"?sme:sme/2,Tme.length||hme){var Kme={x:dme.x+mme/fme,y:dme.y+vme/pme,width:cme,height:sme},Zme=!1,nbe=!1;if(Kme.x>=0&&Kme.x+Kme.width<window.innerWidth+ime.scrollLeft&&(Zme=!0,!Ome.atX&&(Ome.atX=Jme),!Ome.myX&&(Ome.myX=Qme)),Kme.y>=0&&Kme.y+Kme.height<window.innerHeight+ime.scrollTop&&(nbe=!0,!Ome.atY&&(Ome.atY=Yme),!Ome.myY&&(Ome.myY=Xme)),Zme&&nbe)break;if(hme&&Tme.length===0){for(var lbe=eme.offsetParent;lbe&&window.getComputedStyle(lbe).position==="static";)lbe=lbe.offsetParent;var ibe=(rme=lbe==null?void 0:lbe.getBoundingClientRect)===null||rme===void 0?void 0:rme.call(lbe),abe={x:(ibe==null?void 0:ibe.x)||0,y:(ibe==null?void 0:ibe.y)||0};nbe||(vme=Math.max(10,window.innerHeight-Kme.height)+ime.scrollTop-abe.y-10),Zme||(mme=Math.max(10,window.innerWidth-Kme.width)+ime.scrollLeft-abe.x)}}}else if(x_==="left"||x_==="right"){x_==="left"?mme=ome.left-cme:mme=ome.left+ome.width,vme=ome.top+(ome.height-sme)/2;var obe=getTopDelta(vme,sme,tme,ame);vme+=obe,yme=50*(1-2*obe/sme)+"%"}else if(x_==="top"||x_==="bottom"){x_==="top"?vme=ome.top-sme:vme=ome.top+ome.height,mme=ome.left+(ome.width-cme)/2;var hbe=getLeftDelta(mme,cme,tme,ame);mme+=hbe,gme=50*(1-2*hbe/sme)+"%"}else if(x_==="center")mme=ome.left+(ome.width-cme)/2,vme=ome.top+(ome.height-sme)/2,gme=yme=void 0;else throw new Error('calcOverlayPosition(): No such placement of "'.concat(x_,'" found.'));var ube=__read$3(nme,2),mbe=ube[0],pbe=mbe===void 0?0:mbe,_be=ube[1],Sbe=_be===void 0?0:_be;return{positionLeft:(mme+pbe)/fme,positionTop:(vme+Sbe)/pme,arrowOffsetLeft:(gme+pbe)/fme,arrowOffsetTop:(yme+Sbe)/pme,activePlacement:_me}}function getStyleNumber(x_,eme){return x_&&parseInt(getComputedStyle(x_).getPropertyValue(eme),10)||0}function renderTextByKeyword(x_,eme){if(!x_||typeof x_!="string")return x_;if(eme&&~x_.indexOf(eme)){var $P=x_.indexOf(eme),tme=$P+eme.length;return React__default.createElement("span",null,x_.substring(0,$P),React__default.createElement("span",{className:"is-keyword"},eme),x_.substring(tme))}else return x_}var RootClose=function(x_){var eme=x_.children,$P=x_.onRootClose,tme=__rest$14(x_,["children","onRootClose"]),ame=__read$3(reactExports.useState(null),2),nme=ame[0],rme=ame[1],ime=reactDomExports.findDOMNode(nme);return useRootClose(ime,$P,tme),typeof eme=="function"?eme(rme):eme},EnvContext=React__default.createContext(void 0),SubPopoverDisplayedID="data-sub-popover-displayed";function onScroll(x_,eme){var $P=function(){requestAnimationFrame(eme)};return x_.addEventListener("scroll",$P),function(){x_.removeEventListener("scroll",$P)}}var Position=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.getTarget=function(){var ame=tme.props.target,nme=typeof ame=="function"?ame():ame;return nme&&ReactDOM.findDOMNode(nme)||null},tme.maybeUpdatePosition=function(ame){var nme=tme.getTarget();!tme.props.shouldUpdatePosition&&nme===tme._lastTarget&&!ame||tme.updatePosition(nme)},tme.state={ready:!1,positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},tme._lastTarget=null,tme.componentId=uuid$1(),tme}return eme.prototype.updatePosition=function($P){var tme=this,ame,nme;if(this._lastTarget=$P,$P){var rme=(ame=$P==null?void 0:$P.closest)===null||ame===void 0?void 0:ame.call($P,"[role=popover]");!this.parentPopover&&rme&&(this.parentPopover=rme,this.parentPopover.setAttribute(SubPopoverDisplayedID+"-"+this.componentId,!0))}if(!$P||!$P.offsetWidth)return this.setState({});var ime=this.props.watchTargetSizeChange,ome=this.overlay,lme=getContainer(this.props.container,ownerDocument(this).body);if(!this.watchedTarget||this.watchedTarget!==$P){(nme=this.resizeDispose)===null||nme===void 0||nme.forEach(function(cme){return cme()}),this.watchedTarget=$P,this.resizeDispose=[ime!==!1?resizeSensor($P,function(){return tme.updatePosition($P)}):noop$9,resizeSensor(ome,function(){return tme.updatePosition($P)})];var sme=getScrollParent($P);sme&&lme.contains(sme)&&this.resizeDispose.push(onScroll(sme,function(){tme.updatePosition($P)}))}this.setState(__assign$3(__assign$3({},calculatePosition(this.props.placement,ome,$P,lme,this.props.containerPadding,this.props.offset)),{ready:!0}))},eme.prototype.componentDidMount=function(){this.overlay=reactDomExports.findDOMNode(this),this.updatePosition(this.getTarget())},eme.prototype.componentDidUpdate=function($P){this.maybeUpdatePosition(this.props.placement!==$P.placement)},eme.prototype.componentWillUnmount=function(){var $P;this.parentPopover&&this.parentPopover.getAttribute(SubPopoverDisplayedID+"-"+this.componentId)&&(this.parentPopover.removeAttribute(SubPopoverDisplayedID+"-"+this.componentId),this.parentPopover=null),($P=this.resizeDispose)===null||$P===void 0||$P.forEach(function(tme){return tme()})},eme.prototype.render=function(){var $P=this.props,tme=$P.children,ame=$P.className,nme=__rest$14($P,["children","className"]),rme=this.state,ime=rme.ready,ome=rme.positionLeft,lme=rme.positionTop,sme=__rest$14(rme,["ready","positionLeft","positionTop"]);delete nme.target,delete nme.container,delete nme.containerPadding,delete nme.shouldUpdatePosition;var cme=React__default.Children.only(tme);return reactExports.cloneElement(cme,__assign$3(__assign$3(__assign$3(__assign$3({},nme),sme),cme.props.offset?{offset:cme.props.offset}:{}),{positionLeft:ome,positionTop:lme,className:cx$1(ame,cme.props.className),style:__assign$3(__assign$3({},cme.props.style),{left:ome,top:lme,visibility:ime?void 0:"hidden"}),componentId:this.componentId}))},eme.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},eme}(React__default.Component),Overlay=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.position=null,tme.positionRef=function(ame){tme.position=ame},tme.state={exited:!$P.show},tme}return eme.prototype.updatePosition=function(){var $P;($P=this.position)===null||$P===void 0||$P.maybeUpdatePosition(!0)},eme.prototype.componentDidUpdate=function($P,tme){var ame=this.props;$P.show!==ame.show&&ame.show?this.setState({exited:!1}):ame.transition!==$P.transition&&!ame.transition&&this.setState({exited:!0})},eme.prototype.onHiddenListener=function($P){this.setState({exited:!0}),this.props.onExited&&this.props.onExited($P)},eme.prototype.getContainerSelector=function(){var $P=this.props.containerSelector,tme=null;return typeof $P=="string"&&(tme=document.querySelector($P)),tme},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.containerPadding,nme=tme.target,rme=tme.placement,ime=tme.shouldUpdatePosition,ome=tme.rootClose,lme=tme.children;tme.watchTargetSizeChange;var sme=tme.transition,cme=tme.offset,dme=__rest$14(tme,["containerPadding","target","placement","shouldUpdatePosition","rootClose","children","watchTargetSizeChange","transition","offset"]),ume=(this.getContainerSelector()?this.getContainerSelector:this.props.container)||(($P=this.context)===null||$P===void 0?void 0:$P.getModalContainer),fme=dme.show||sme&&!this.state.exited;if(!fme)return null;var pme=lme;if(pme=jsx(Position,{...__assign$3({},{container:ume,containerPadding:ame,target:nme,placement:rme,shouldUpdatePosition:ime,offset:cme},{ref:this.positionRef}),children:pme}),sme){var hme=dme.onExit,bme=dme.onExiting,mme=dme.onEnter,vme=dme.onEntering,gme=dme.onEntered;pme=jsx(sme,{in:dme.show,appear:!0,onExit:hme,onExiting:bme,onExited:this.onHiddenListener,onEnter:mme,onEntering:vme,onEntered:gme,children:pme})}return ome?jsx(Portal,{container:ume,children:jsx(RootClose,{onRootClose:dme.onHide,children:function(yme){return React__default.isValidElement(pme)?React__default.cloneElement(pme,{ref:yme}):jsx("div",{ref:yme,children:pme})}})}):jsx(Portal,{container:ume,children:pme})},eme.defaultProps={placement:"auto"},eme.contextType=EnvContext,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"onHiddenListener",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getContainerSelector",null),eme}(React__default.Component),PopOver=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={xOffset:0,yOffset:0},$P.wrapperRef=React__default.createRef(),$P.isRootClosed=!1,$P}return eme.prototype.componentDidMount=function(){this.mayUpdateOffset();var $P=reactDomExports.findDOMNode(this);this.parent=$P.parentNode,this.parent.classList.add("has-popover"),this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.addEventListener("touchmove",preventDefault,{passive:!1,capture:!1}),document.body.addEventListener("mousedown",this.handleRootMouseDownCapture,!0),document.body.addEventListener("mouseup",this.handleRootMouseUpCapture,!0),document.body.addEventListener("mouseup",this.handleRootMouseUp)},eme.prototype.componentDidUpdate=function(){this.mayUpdateOffset()},eme.prototype.componentWillUnmount=function(){this.parent&&this.parent.classList.remove("has-popover"),this.wrapperRef&&this.wrapperRef.current&&this.wrapperRef.current.removeEventListener("touchmove",preventDefault),document.body.removeEventListener("mouseup",this.handleRootMouseUp),document.body.removeEventListener("mousedown",this.handleRootMouseDownCapture,!0),document.body.removeEventListener("mouseup",this.handleRootMouseUpCapture,!0)},eme.prototype.handleRootMouseDownCapture=function($P){var tme=$P.target,ame=this.props,nme=ame.overlay,rme=ame.classPrefix,ime=$P.button===1&&window.event!==null||$P.button===0;this.isRootClosed=!!(ime&&nme&&tme&&this.wrapperRef.current&&!this.wrapperRef.current.getAttributeNames().find(function(ome){return ome.startsWith(SubPopoverDisplayedID)})&&(!this.wrapperRef.current.contains(tme)&&!tme.closest("[role=dialog]")||tme.matches(".".concat(rme,"Modal"))&&tme===this.wrapperRef.current))},eme.prototype.handleRootMouseUpCapture=function($P){this.isRootClosed&&this.handleRootMouseDownCapture($P)},eme.prototype.handleRootMouseUp=function($P){var tme=this.props.onHide;if(this.isRootClosed&&!$P.defaultPrevented){var ame=function(nme){nme.stopPropagation(),window.removeEventListener("click",ame,!0)};window.addEventListener("click",ame,!0),tme==null||tme()}},eme.prototype.mayUpdateOffset=function(){var $P,tme=this.props.offset;if(tme&&typeof tme=="function"){var ame=this.props,nme=ame.placement,rme=ame.positionTop,ime=ame.positionLeft;$P=tme(reactDomExports.findDOMNode(this).getBoundingClientRect(),{x:ime,y:rme,placement:nme})}else $P=tme;this.setState({xOffset:$P&&$P.x?$P.x:0,yOffset:$P&&$P.y?$P.y:0})},eme.prototype.render=function(){var $P=this.props;$P.placement;var tme=$P.activePlacement,ame=$P.positionTop,nme=$P.positionLeft;$P.arrowOffsetLeft,$P.arrowOffsetTop;var rme=$P.style,ime=$P.children;$P.offset;var ome=$P.overlay,lme=$P.onHide,sme=$P.classPrefix,cme=$P.classnames,dme=$P.className;$P.componentId;var ume=$P.testIdBuilder,fme=__rest$14($P,["placement","activePlacement","positionTop","positionLeft","arrowOffsetLeft","arrowOffsetTop","style","children","offset","overlay","onHide","classPrefix","classnames","className","componentId","testIdBuilder"]),pme=this.state,hme=pme.xOffset,bme=pme.yOffset,mme=__assign$3(__assign$3({display:"block"},rme),{top:ame+bme,left:nme+hme}),vme=typeof tme=="string"?tme.split("-"):[];return React__default.createElement("div",__assign$3({ref:this.wrapperRef,role:"popover",className:cme("PopOver",dme,tme?"PopOver--".concat(camel(tme)):"",vme[3]?"PopOver--v-".concat(vme[3]):""),style:mme},ume==null?void 0:ume.getTestId(),fme),ome?React__default.createElement("div",__assign$3({className:"".concat(sme,"PopOver-overlay"),onClick:lme},ume==null?void 0:ume.getChild("overlay").getTestId())):null,ime)},eme.defaultProps={className:"",offset:{x:0,y:0},overlay:!1,placement:"auto"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseDownCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUpCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUp",null),eme}(React__default.PureComponent),PopOver$1=themeable(PopOver),getItemLabelClassName=function(x_){var eme=x_.staticLabelClassName,$P=x_.labelClassName,tme=x_.id,ame=x_.themeCss;return x_.static&&eme?eme:cx$1($P,setThemeClassName(__assign$3(__assign$3({},x_),{name:"labelClassName",id:tme,themeCss:ame,extra:"item"})))},getItemInputClassName=function(x_){var eme=x_.staticInputClassName,$P=x_.inputClassName;return x_.static&&eme?eme:$P},FormItemWrap=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.mounted=!1,tme.initedOptionFilled=!1,tme.initedApiFilled=!1,tme.toDispose=[],tme.syncApiAutoFill=debounce$6(function(lme,sme,cme){return cme===void 0&&(cme=!1),__awaiter(tme,void 0,void 0,function(){var dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me;return __generator(this,function(Cme){switch(Cme.label){case 0:return Cme.trys.push([0,4,,5]),dme=this.props,ume=dme.autoFill,fme=dme.onBulkChange,pme=dme.formItem,hme=dme.data,!fme||!pme||!ume||ume&&!(ume!=null&&ume.hasOwnProperty("api"))?[2]:cme&&(!ume.fillMapping||Object.keys(ume.fillMapping).some(function(Sme){return typeof getVariable(hme,Sme)<"u"}))?[2]:ume!=null&&ume.showSuggestion?(this.handleAutoFill("change"),[3,3]):[3,1];case 1:return bme=pme.name,mme=createObject$1(hme,{__term:lme}),setVariable(mme,bme,lme),sme||isEffectiveApi(ume.api,mme)&&this.lastSearchTerm!==lme?[4,pme.loadAutoUpdateData(ume.api,mme,!!(!((yme=ume.api)===null||yme===void 0)&&yme.silent))]:[3,3];case 2:if(vme=Cme.sent(),this.lastSearchTerm=(_me=vme&&getVariable(vme,bme))!==null&&_me!==void 0?_me:lme,!vme)return[2];this.applyMapping(($me=ume==null?void 0:ume.fillMapping)!==null&&$me!==void 0?$me:{"&":"$$"},vme,!1),Cme.label=3;case 3:return[3,5];case 4:return gme=Cme.sent(),console.error(gme),[3,5];case 5:return[2]}})})},250,{trailing:!0,leading:!1});var ame=$P.formItem,nme=$P.formInited,rme=$P.addHook,ime=$P.initAutoFill;if(!ame)return tme;tme.toDispose.push(reaction(function(){return"".concat(ame.errors.join("")).concat(ame.isFocused).concat(ame.dialogOpen).concat(JSON.stringify(ame.filteredOptions)).concat(ame.popOverOpen)},function(){return tme.forceUpdate()}));var ome=function(){var lme;tme.initedOptionFilled=!0,ime!==!1&&isAlive(ame)&&tme.syncOptionAutoFill(ame.getSelectedOptions(ame.tmpValue),ime==="fillIfNotSet"),tme.initedApiFilled=!0,ime!==!1&&isAlive(ame)&&tme.syncApiAutoFill((lme=ame.tmpValue)!==null&&lme!==void 0?lme:"",!1,ime==="fillIfNotSet"),tme.toDispose.push(reaction(function(){return JSON.stringify(ame.tmpValue)},function(){return tme.mounted&&tme.initedApiFilled&&tme.syncApiAutoFill(ame.tmpValue)})),tme.toDispose.push(reaction(function(){return JSON.stringify(ame.getSelectedOptions(ame.tmpValue))},function(){return tme.mounted&&tme.initedOptionFilled&&tme.syncOptionAutoFill(ame.getSelectedOptions(ame.tmpValue))}))};return tme.toDispose.push(nme||!rme?ame.addInitHook(ome,999):rme(ome,"init","post")),tme}return eme.prototype.componentDidMount=function(){this.mounted=!0,this.target=reactDomExports.findDOMNode(this)},eme.prototype.componentDidUpdate=function($P){var tme,ame,nme,rme=this.props,ime=rme.formItem;isEffectiveApi((tme=rme.autoFill)===null||tme===void 0?void 0:tme.api,rme.data)&&isApiOutdated((ame=$P.autoFill)===null||ame===void 0?void 0:ame.api,(nme=rme.autoFill)===null||nme===void 0?void 0:nme.api,$P.data,rme.data)&&this.syncApiAutoFill(ime==null?void 0:ime.tmpValue,!0)},eme.prototype.componentWillUnmount=function(){this.syncApiAutoFill.cancel(),this.mounted=!1,this.toDispose.forEach(function($P){return $P()}),this.toDispose=[]},eme.prototype.handleFocus=function($P){var tme=this.props,ame=tme.formItem,nme=tme.autoFill;ame&&ame.focus(),this.props.onFocus&&this.props.onFocus($P),!(!nme||nme&&!(nme!=null&&nme.hasOwnProperty("showSuggestion")))&&this.handleAutoFill("focus")},eme.prototype.handleBlur=function($P){var tme=this.props,ame=tme.formItem,nme=tme.autoFill;ame&&ame.blur(),this.props.onBlur&&this.props.onBlur($P),!(!nme||nme&&!(nme!=null&&nme.hasOwnProperty("showSuggestion")))&&this.handleAutoFill("blur")},eme.prototype.handleAutoFill=function($P){var tme=this,ame=this.props,nme=ame.autoFill,rme=ame.formItem,ime=ame.data,ome=nme.trigger,lme=nme.mode;ome===$P&&lme==="popOver"?rme==null||rme.openPopOver(this.buildAutoFillSchema(),ime,function(sme,cme){!sme||!(cme!=null&&cme.selectedItems)||tme.updateAutoFillData(cme.selectedItems)}):ome===$P&&(lme==="dialog"||lme==="drawer")&&(rme==null||rme.openDialog(this.buildAutoFillSchema(),ime,function(sme,cme){!sme||!(cme!=null&&cme.selectedItems)||tme.updateAutoFillData(cme.selectedItems)}))},eme.prototype.updateAutoFillData=function($P){var tme=this.props,ame=tme.data,nme=tme.autoFill;tme.onBulkChange;var rme=nme.fillMapping;nme.multiple;var ime=Array.isArray($P)?createObject$1(ame,{items:$P}):createObjectFromChain([ame,{items:[$P]},$P]);this.applyMapping(rme??{},ime,!1)},eme.prototype.syncOptionAutoFill=function($P,tme){tme===void 0&&(tme=!1);var ame=this.props,nme=ame.autoFill,rme=ame.multiple,ime=ame.onBulkChange,ome=ame.data,lme=this.props.formItem;nme!=null&&nme.hasOwnProperty("api")||ime&&nme&&!isEmpty$2(nme)&&lme.filteredOptions.length&&this.applyMapping(nme,rme?{items:$P.map(function(sme){return createObject$1(__assign$3(__assign$3({},ome),{ancestors:getTreeAncestors(lme.filteredOptions,sme,!0)}),sme)})}:createObject$1(__assign$3(__assign$3({},ome),{ancestors:getTreeAncestors(lme.filteredOptions,$P[0],!0)}),$P[0]),tme)},eme.prototype.applyMapping=function($P,tme,ame){ame===void 0&&(ame=!1);var nme=this.props,rme=nme.onBulkChange,ime=nme.data;nme.formItem;var ome=dataMapping($P,tme),lme=__assign$3({},ime),sme=__assign$3({},ome);Object.keys($P).forEach(function(cme){if(cme!=="&"){var dme=keyToPath(cme),ume=getVariable(ome,cme);if(ame){var fme=getVariable(ime,cme);typeof fme<"u"&&(ume=fme)}setVariable(sme,cme,ume),dme.length>1&&isPlainObject$b(lme[dme[0]])&&(setVariable(lme,cme,ume),sme[dme[0]]=lme[dme[0]])}}),rme(sme)},eme.prototype.buildAutoFillSchema=function(){var $P=this.props;$P.formItem;var tme=$P.autoFill,ame=$P.translate;if(!(!tme||tme&&!(tme!=null&&tme.hasOwnProperty("api")))){var nme=tme.api,rme=tme.mode,ime=tme.size,ome=tme.offset,lme=tme.position,sme=tme.placement,cme=tme.multiple,dme=tme.filter,ume=tme.columns,fme=tme.labelField,pme=tme.popOverContainer,hme=tme.popOverClassName,bme=tme.valueField,mme=tme.defaultSelection,vme={type:"form",title:"",className:"suggestion-form",body:[{type:"picker",embed:!0,joinValues:!1,strictMode:!1,label:!1,labelField:fme,valueField:bme||"value",multiple:cme,name:"selectedItems",value:mme||[],options:[],required:!0,source:nme,pickerSchema:{type:"crud",bodyClassName:"mb-0",affixHeader:!1,alwaysShowPagination:!0,keepItemSelectionOnPageChange:!0,headerToolbar:[],footerToolbar:[{type:"pagination",align:"left"},{type:"bulkActions",align:"right",className:"ml-2"}],multiple:cme,filter:dme,columns:ume||[]}}],actions:[{type:"button",actionType:"cancel",label:ame("cancel")},{type:"submit",actionType:"submit",level:"primary",label:ame("confirm")}]};return rme==="popOver"?{popOverContainer:pme,popOverClassName:hme,placement:sme??lme,offset:ome,body:vme}:{type:rme,className:"auto-fill-dialog",title:ame("FormItem.autoFillSuggest"),size:ime,body:__assign$3(__assign$3({},vme),{wrapWithPanel:!1}),actions:[{type:"button",actionType:"cancel",label:ame("cancel")},{type:"submit",actionType:"submit",level:"primary",label:ame("confirm")}]}}},eme.prototype.handlePopOverConfirm=function($P){var tme=this.props;tme.onBulkChange;var ame=tme.autoFill;!ame||ame&&!(ame!=null&&ame.hasOwnProperty("api"))||(this.updateAutoFillData($P.selectedItems),this.closePopOver())},eme.prototype.handlePopOverAction=function($P,tme,ame,nme,rme){nme===void 0&&(nme=!1);var ime=this.props.onAction;if(tme.actionType==="cancel")this.closePopOver();else if(ime)return ime($P,tme,ame,nme,rme)},eme.prototype.closePopOver=function(){var $P;($P=this.props.formItem)===null||$P===void 0||$P.closePopOver()},eme.prototype.handleOpenDialog=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){return ame=this.props.formItem,ame?[2,new Promise(function(rme){return ame.openDialog($P,tme,function(ime,ome){return rme(ime?ome:!1)})})]:[2]})})},eme.prototype.handleDialogConfirm=function($P){var tme=__read$3($P,1),ame=tme[0],nme=this.props.formItem;nme&&nme.closeDialog(!0,ame)},eme.prototype.handleDialogClose=function($P){$P===void 0&&($P=!1);var tme=this.props.formItem;tme&&tme.closeDialog($P)},eme.prototype.renderControl=function(){var $P,tme=this.props;tme.inputClassName;var ame=tme.formItem,nme=tme.classnames;tme.children;var rme=tme.type,ime=tme.renderControl;tme.formItemConfig;var ome=tme.sizeMutable,lme=tme.size,sme=tme.defaultSize,cme=tme.mobileUI,dme=__rest$14(tme,["inputClassName","formItem","classnames","children","type","renderControl","formItemConfig","sizeMutable","size","defaultSize","mobileUI"]);if(ime){var ume=lme||sme;return ime(__assign$3(__assign$3({},dme),{onOpenDialog:this.handleOpenDialog,type:rme,classnames:nme,formItem:ame,className:nme("Form-control",($P={"is-inline":!!dme.inline&&!cme,"is-error":ame&&!ame.valid,"is-full":lme==="full"},$P["Form-control--withSize Form-control--size".concat(ucFirst(ume))]=ome!==!1&&typeof ume=="string"&&!!ume&&ume!=="full",$P),ame==null?void 0:ame.errClassNames,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:dme.id,themeCss:dme.wrapperCustomStyle,extra:"item"})),getItemInputClassName(this.props))}))}return null},eme.prototype.render=function(){var $P=this,tme,ame,nme,rme,ime=this.props,ome=ime.formMode,lme=ime.inputOnly,sme=ime.wrap,cme=ime.render,dme=ime.formItem,ume=ime.css,fme=ime.themeCss,pme=ime.id,hme=ime.wrapperCustomStyle,bme=ime.env,mme=ime.classnames,vme=ime.popOverContainer;ime.data;var gme=this.props.mode||ome;if(sme===!1||lme)return this.renderControl();var yme=eme.layoutRenderers[gme]||eme.layoutRenderers.normal;return React__default.createElement(React__default.Fragment,null,yme(this.props,this.renderControl.bind(this)),dme?cme("modal",__assign$3({type:"dialog"},dme.dialogSchema),{show:dme.dialogOpen,onClose:this.handleDialogClose,onConfirm:this.handleDialogConfirm,data:dme.dialogData,formStore:void 0}):null,dme?React__default.createElement(Overlay,{container:vme||this.target,target:function(){return $P.target},placement:((tme=dme.popOverSchema)===null||tme===void 0?void 0:tme.placement)||"left-bottom-left-top",show:dme.popOverOpen},React__default.createElement(PopOver$1,{className:mme("Autofill-popOver",(ame=dme.popOverSchema)===null||ame===void 0?void 0:ame.popOverClassName),style:{minWidth:this.target?this.target.offsetWidth:void 0},offset:(nme=dme.popOverSchema)===null||nme===void 0?void 0:nme.offset,onHide:this.closePopOver},cme("popOver-auto-fill-form",(rme=dme.popOverSchema)===null||rme===void 0?void 0:rme.body,{onAction:this.handlePopOverAction,onSubmit:this.handlePopOverConfirm}))):null,React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{themeCss:fme||ume,classNames:[{key:"labelClassName",weights:{default:{suf:".".concat(mme("Form-label")),parent:".".concat(mme("Form-item"))}}},{key:"descriptionClassName"}],wrapperCustomStyle:hme,id:pme&&pme+"-item"},env:bme})))},eme.layoutRenderers={horizontal:function($P,tme){var ame,nme,rme,ime=$P.className,ome=$P.style,lme=$P.classnames,sme=$P.description,cme=$P.descriptionClassName,dme=$P.captionClassName,ume=$P.desc,fme=$P.label,pme=$P.render,hme=$P.required,bme=$P.caption,mme=$P.remark,vme=$P.labelRemark,gme=$P.env,yme=$P.formItem,_me=$P.renderLabel,$me=$P.renderDescription,Cme=$P.hint;$P.data;var Sme=$P.showErrorMsg,Eme=$P.mobileUI;$P.translate;var xme=$P.static,Tme=$P.staticClassName,Ome=$P.id,Rme=$P.wrapperCustomStyle,Nme=$P.themeCss;_me===!1&&(fme=fme===!1?!1:""),sme=sme||ume;var Ime=$P.horizontal||$P.formHorizontal||{},Pme=getWidthRate(Ime.left),Mme=getWidthRate(Ime.right),kme=$P.labelAlign!=="inherit"&&$P.labelAlign||$P.formLabelAlign,Bme=$P.labelWidth||$P.formLabelWidth;return React__default.createElement("div",{"data-role":"form-item","data-amis-name":$P.name,className:lme("Form-item Form-item--horizontal",xme&&Tme?Tme:ime,(ame={"Form-item--horizontal-justify":Ime.justify},ame["is-error"]=yme&&!yme.valid,ame["is-required"]=hme,ame),yme==null?void 0:yme.errClassNames,setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:Ome,themeCss:Rme,extra:"item"}))),style:ome},fme!==!1?React__default.createElement("label",{className:lme("Form-label",(nme={},nme["Form-itemColumn--".concat(typeof Ime.leftFixed=="string"?Ime.leftFixed:"normal")]=Ime.leftFixed,nme["Form-itemColumn--".concat(Pme)]=!Ime.leftFixed,nme["Form-label--left"]=kme==="left",nme["Form-label-noLabel"]=fme==="",nme),getItemLabelClassName($P)),style:Bme!=null?{width:Bme}:void 0},React__default.createElement("span",null,fme?pme("label",fme):null,hme&&(fme||vme)?React__default.createElement("span",{className:lme("Form-star")},"*"):null,vme?pme("label-remark",{type:"remark",icon:vme.icon||"warning-mark",tooltip:vme,mobileUI:Eme,className:lme("Form-labelRemark"),container:$P.popOverContainer||gme.getModalContainer}):null)):null,React__default.createElement("div",{className:lme("Form-value",(rme={},rme["Form-itemColumn--".concat(Mme)]=!Ime.leftFixed&&!!Mme&&Mme!==12-Pme,rme))},tme(),bme?pme("caption",bme,{className:lme("Form-caption",dme)}):null,mme?pme("remark",{type:"remark",icon:mme.icon||"warning-mark",tooltip:mme,className:lme("Form-remark"),mobileUI:Eme,container:$P.popOverContainer||gme.getModalContainer}):null,Cme&&yme&&yme.isFocused?pme("hint",Cme,{className:lme("Form-hint")}):null,yme&&!yme.valid&&Sme!==!1&&Array.isArray(yme.errors)?React__default.createElement("ul",{className:lme("Form-feedback")},yme.errors.map(function(Dme,jme){return React__default.createElement("li",{key:jme},Dme)})):null,$me!==!1&&sme?pme("description",sme,{className:lme("Form-description",cme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:Nme,extra:"item"})))}):null))},normal:function($P,tme){var ame,nme=$P.className,rme=$P.style,ime=$P.classnames,ome=$P.desc,lme=$P.description,sme=$P.label,cme=$P.render,dme=$P.required,ume=$P.caption,fme=$P.remark,pme=$P.labelRemark,hme=$P.env,bme=$P.descriptionClassName,mme=$P.captionClassName,vme=$P.formItem,gme=$P.renderLabel,yme=$P.renderDescription,_me=$P.hint;$P.data;var $me=$P.showErrorMsg,Cme=$P.mobileUI;$P.translate;var Sme=$P.static,Eme=$P.staticClassName,xme=$P.themeCss,Tme=$P.wrapperCustomStyle,Ome=$P.id;return lme=lme||ome,React__default.createElement("div",{"data-role":"form-item","data-amis-name":$P.name,className:ime("Form-item Form-item--normal",Sme&&Eme?Eme:nme,(ame={"is-error":vme&&!vme.valid},ame["is-required"]=dme,ame),vme==null?void 0:vme.errClassNames,setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:Ome,themeCss:Tme,extra:"item"}))),style:rme},sme&&gme!==!1?React__default.createElement("label",{className:ime("Form-label",getItemLabelClassName($P))},React__default.createElement("span",null,sme?cme("label",sme):null,dme&&(sme||pme)?React__default.createElement("span",{className:ime("Form-star")},"*"):null,pme?cme("label-remark",{type:"remark",icon:pme.icon||"warning-mark",tooltip:pme,className:ime("Form-lableRemark"),mobileUI:Cme,container:$P.popOverContainer||hme.getModalContainer}):null)):null,Cme?React__default.createElement("div",{className:ime("Form-item-controlBox")},tme(),ume?cme("caption",ume,{className:ime("Form-caption",mme)}):null,fme?cme("remark",{type:"remark",icon:fme.icon||"warning-mark",className:ime("Form-remark"),tooltip:fme,mobileUI:Cme,container:$P.popOverContainer||hme.getModalContainer}):null,_me&&vme&&vme.isFocused?cme("hint",_me,{className:ime("Form-hint")}):null,vme&&!vme.valid&&$me!==!1&&Array.isArray(vme.errors)?React__default.createElement("ul",{className:ime("Form-feedback")},vme.errors.map(function(Rme,Nme){return React__default.createElement("li",{key:Nme},Rme)})):null,yme!==!1&&lme?cme("description",lme,{className:ime("Form-description",bme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:xme,extra:"item"})))}):null):React__default.createElement(React__default.Fragment,null,tme(),ume?cme("caption",ume,{className:ime("Form-caption",mme)}):null,fme?cme("remark",{type:"remark",icon:fme.icon||"warning-mark",className:ime("Form-remark"),tooltip:fme,mobileUI:Cme,container:$P.popOverContainer||hme.getModalContainer}):null,_me&&vme&&vme.isFocused?cme("hint",_me,{className:ime("Form-hint")}):null,vme&&!vme.valid&&$me!==!1&&Array.isArray(vme.errors)?React__default.createElement("ul",{className:ime("Form-feedback")},vme.errors.map(function(Rme,Nme){return React__default.createElement("li",{key:Nme},Rme)})):null,yme!==!1&&lme?cme("description",lme,{className:ime("Form-description",bme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:xme,extra:"item"})))}):null))},inline:function($P,tme){var ame,nme=$P.className,rme=$P.style,ime=$P.classnames,ome=$P.desc,lme=$P.description,sme=$P.label,cme=$P.render,dme=$P.required,ume=$P.caption,fme=$P.descriptionClassName,pme=$P.captionClassName,hme=$P.formItem,bme=$P.remark,mme=$P.labelRemark,vme=$P.env,gme=$P.hint,yme=$P.renderLabel,_me=$P.renderDescription;$P.data;var $me=$P.showErrorMsg,Cme=$P.mobileUI;$P.translate;var Sme=$P.static,Eme=$P.staticClassName,xme=$P.themeCss,Tme=$P.wrapperCustomStyle,Ome=$P.id,Rme=$P.labelWidth||$P.formLabelWidth;return lme=lme||ome,React__default.createElement("div",{"data-role":"form-item","data-amis-name":$P.name,className:ime("Form-item Form-item--inline",Sme&&Eme?Eme:nme,(ame={"is-error":hme&&!hme.valid},ame["is-required"]=dme,ame),hme==null?void 0:hme.errClassNames,setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:Ome,themeCss:Tme,extra:"item"}))),style:rme},sme&&yme!==!1?React__default.createElement("label",{className:ime("Form-label",getItemLabelClassName($P)),style:Rme!=null?{width:Rme}:void 0},React__default.createElement("span",null,sme&&cme("label",sme),dme&&(sme||mme)?React__default.createElement("span",{className:ime("Form-star")},"*"):null,mme?cme("label-remark",{type:"remark",icon:mme.icon||"warning-mark",tooltip:mme,className:ime("Form-lableRemark"),mobileUI:Cme,container:$P.popOverContainer||vme.getModalContainer}):null)):null,React__default.createElement("div",{className:ime("Form-value")},tme(),ume?cme("caption",ume,{className:ime("Form-caption",pme)}):null,bme?cme("remark",{type:"remark",icon:bme.icon||"warning-mark",className:ime("Form-remark"),tooltip:bme,mobileUI:Cme,container:$P.popOverContainer||vme.getModalContainer}):null,gme&&hme&&hme.isFocused?cme("hint",gme,{className:ime("Form-hint")}):null,hme&&!hme.valid&&$me!==!1&&Array.isArray(hme.errors)?React__default.createElement("ul",{className:ime("Form-feedback")},hme.errors.map(function(Nme,Ime){return React__default.createElement("li",{key:Ime},Nme)})):null,_me!==!1&&lme?cme("description",lme,{className:ime("Form-description",fme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:xme,extra:"item"})))}):null))},row:function($P,tme){var ame,nme=$P.className,rme=$P.style,ime=$P.classnames,ome=$P.desc,lme=$P.description,sme=$P.label,cme=$P.render,dme=$P.required,ume=$P.caption,fme=$P.remark,pme=$P.labelRemark,hme=$P.env,bme=$P.descriptionClassName,mme=$P.captionClassName,vme=$P.formItem,gme=$P.renderLabel,yme=$P.renderDescription,_me=$P.hint;$P.data;var $me=$P.showErrorMsg,Cme=$P.mobileUI;$P.translate;var Sme=$P.static,Eme=$P.staticClassName,xme=$P.wrapperCustomStyle,Tme=$P.themeCss,Ome=$P.id;lme=lme||ome;var Rme=$P.labelWidth||$P.formLabelWidth;return React__default.createElement("div",{"data-role":"form-item","data-amis-name":$P.name,className:ime("Form-item Form-item--row",Sme&&Eme?Eme:nme,(ame={"is-error":vme&&!vme.valid},ame["is-required"]=dme,ame),vme==null?void 0:vme.errClassNames,setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:Ome,themeCss:xme,extra:"item"}))),style:rme},React__default.createElement("div",{className:ime("Form-rowInner")},sme&&gme!==!1?React__default.createElement("label",{className:ime("Form-label",getItemLabelClassName($P)),style:Rme!=null?{width:Rme}:void 0},React__default.createElement("span",null,cme("label",sme),dme&&(sme||pme)?React__default.createElement("span",{className:ime("Form-star")},"*"):null,pme?cme("label-remark",{type:"remark",icon:pme.icon||"warning-mark",tooltip:pme,className:ime("Form-lableRemark"),mobileUI:Cme,container:$P.popOverContainer||hme.getModalContainer}):null)):null,tme(),ume?cme("caption",ume,{className:ime("Form-caption",mme)}):null,fme?cme("remark",{type:"remark",icon:fme.icon||"warning-mark",className:ime("Form-remark"),tooltip:fme,container:$P.popOverContainer||hme.getModalContainer}):null),_me&&vme&&vme.isFocused?cme("hint",_me,{className:ime("Form-hint")}):null,vme&&!vme.valid&&$me!==!1&&Array.isArray(vme.errors)?React__default.createElement("ul",{className:ime("Form-feedback")},vme.errors.map(function(Nme,Ime){return React__default.createElement("li",{key:Ime},Nme)})):null,lme&&yme!==!1?cme("description",lme,{className:ime("Form-description",bme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:Tme,extra:"item"})))}):null)},flex:function($P,tme){var ame,nme=$P.className,rme=$P.style,ime=$P.classnames,ome=$P.desc,lme=$P.description,sme=$P.label,cme=$P.render,dme=$P.required,ume=$P.caption,fme=$P.remark,pme=$P.labelRemark,hme=$P.env,bme=$P.descriptionClassName,mme=$P.captionClassName,vme=$P.formItem,gme=$P.renderLabel,yme=$P.renderDescription,_me=$P.hint;$P.data;var $me=$P.showErrorMsg,Cme=$P.mobileUI;$P.translate;var Sme=$P.static,Eme=$P.staticClassName,xme=$P.wrapperCustomStyle,Tme=$P.themeCss,Ome=$P.id,Rme=$P.labelAlign!=="inherit"&&$P.labelAlign||$P.formLabelAlign,Nme=$P.labelWidth||$P.formLabelWidth;return lme=lme||ome,React__default.createElement("div",{"data-role":"form-item","data-amis-name":$P.name,className:ime("Form-item Form-item--flex",Sme&&Eme?Eme:nme,(ame={"is-error":vme&&!vme.valid},ame["is-required"]=dme,ame),vme==null?void 0:vme.errClassNames,setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:Ome,themeCss:xme,extra:"item"}))),style:rme},React__default.createElement("div",{className:ime("Form-flexInner",Rme&&"Form-flexInner--label-".concat(Rme))},sme&&gme!==!1?React__default.createElement("label",{className:ime("Form-label",getItemLabelClassName($P)),style:Nme!=null?{width:Rme==="top"?"100%":Nme}:void 0},React__default.createElement("span",null,cme("label",sme),dme&&(sme||pme)?React__default.createElement("span",{className:ime("Form-star")},"*"):null,pme?cme("label-remark",{type:"remark",icon:pme.icon||"warning-mark",tooltip:pme,className:ime("Form-lableRemark"),mobileUI:Cme,container:$P.popOverContainer||hme.getModalContainer}):null)):null,React__default.createElement("div",{className:ime("Form-value")},tme(),ume?cme("caption",ume,{className:ime("Form-caption",mme)}):null,fme?cme("remark",{type:"remark",icon:fme.icon||"warning-mark",className:ime("Form-remark"),tooltip:fme,container:$P.popOverContainer||hme.getModalContainer}):null,_me&&vme&&vme.isFocused?cme("hint",_me,{className:ime("Form-hint")}):null,vme&&!vme.valid&&$me!==!1&&Array.isArray(vme.errors)?React__default.createElement("ul",{className:ime("Form-feedback")},vme.errors.map(function(Ime,Pme){return React__default.createElement("li",{key:Pme},Ime)})):null,lme&&yme!==!1?cme("description",lme,{className:ime("Form-description",bme,setThemeClassName(__assign$3(__assign$3({},$P),{name:"descriptionClassName",id:Ome,themeCss:Tme,extra:"item"})))}):null)))}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePopOverConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Object,Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePopOverAction",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closePopOver",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleOpenDialog",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleDialogConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDialogClose",null),eme}(React__default.Component),detectProps$1=["formPristine","formInited","addable","addButtonClassName","addButtonText","addOn","btnClassName","btnLabel","style","btnDisabled","className","clearable","columns","columnsCount","controls","desc","description","disabled","static","staticClassName","staticLabelClassName","staticInputClassName","draggable","editable","editButtonClassName","formHorizontal","formMode","hideRoot","horizontal","icon","inline","inputClassName","label","labelClassName","labelField","language","level","max","maxRows","min","minRows","multiLine","multiple","option","placeholder","removable","required","remark","hint","rows","searchable","showCompressOptions","size","step","showInput","unit","value","diffValue","borderMode","items","showCounter","minLength","maxLength","embed","displayMode","revealPassword","loading","themeCss","formLabelAlign","formLabelWidth","formHorizontal","labelAlign","colSize"];function asFormItem(x_){return function(eme){var $P,tme=eme.prototype instanceof React__default.Component||eme.$$typeof===Symbol.for("react.forward_ref");if(x_.validate&&!eme.prototype.validate){var ame=x_.validate;eme.prototype.validate=function(){var nme={input:this};return ame.apply(nme,arguments)}}else x_.validate&&console.error("FormItem配置中的 validate 将不起作用，因为类的成员函数中已经定义了 validate 方法，将优先使用类里面的实现。");return x_.storeType&&(eme=HocStoreFactory({storeType:x_.storeType,extendsData:x_.extendsData})(observer(eme)),delete x_.storeType),wrapControl$1(x_,hoistNonReactStatics(($P=function(nme){__extends$2(rme,nme);function rme(ime){var ome=nme.call(this,ime)||this;ome.refFn=ome.refFn.bind(ome),ome.getData=ome.getData.bind(ome);var lme=ime.validations,sme=ime.formItem;return sme&&!lme&&x_.validations&&sme.config({rules:x_.validations}),ome}return rme.prototype.shouldComponentUpdate=function(ime){var ome;return!!(!((ome=x_.shouldComponentUpdate)===null||ome===void 0)&&ome.call(x_,this.props,ime)||ime.strictMode===!1||x_.strictMode===!1||anyChanged$1(detectProps$1.concat(x_.detectProps||[]),this.props,ime))},rme.prototype.getWrappedInstance=function(){return this.ref},rme.prototype.refFn=function(ime){this.ref=ime},rme.prototype.getData=function(){return this.props.data},rme.prototype.renderControl=function(){var ime,ome=this.props;ome.inputClassName;var lme=ome.formItem,sme=ome.classnames;ome.children;var cme=ome.type,dme=ome.size,ume=ome.defaultSize,fme=ome.mobileUI,pme=__rest$14(ome,["inputClassName","formItem","classnames","children","type","size","defaultSize","mobileUI"]),hme=dme&&["xs","sm","md","lg","full"].includes(dme),bme=hme?dme:ume;return React__default.createElement(React__default.Fragment,null,React__default.createElement(eme,__assign$3({},pme,{getData:this.getData,mobileUI:fme,onOpenDialog:this.handleOpenDialog,size:x_.sizeMutable!==!1?void 0:dme,onFocus:this.handleFocus,onBlur:this.handleBlur,type:cme,classnames:sme,ref:tme?this.refFn:void 0,forwardedRef:tme?void 0:this.refFn,formItem:lme,style:{width:!hme&&dme?dme:void 0},className:sme("Form-control",(ime={"is-inline":!!pme.inline&&!fme,"is-error":lme&&!lme.valid,"is-full":dme==="full","is-thin":x_.thin},ime["Form-control--withSize Form-control--size".concat(ucFirst(bme))]=x_.sizeMutable!==!1&&typeof bme=="string"&&!!bme&&bme!=="full",ime),lme==null?void 0:lme.errClassNames,getItemInputClassName(this.props))})))},rme}(FormItemWrap),$P.defaultProps=__assign$3({initAutoFill:"fillIfNotSet",className:"",renderLabel:x_.renderLabel,renderDescription:x_.renderDescription,sizeMutable:x_.sizeMutable,wrap:x_.wrap,showErrorMsg:x_.showErrorMsg},eme.defaultProps),$P.propsList=__spreadArray(["value","defaultValue","onChange","setPrinstineValue","readOnly","strictMode"],__read$3(eme.propsList||[]),!1),$P.displayName="FormItem".concat(x_.type?"(".concat(x_.type,")"):""),$P.ComposedComponent=eme,$P),eme))}}function registerFormItem(x_){var eme=asFormItem(x_)(x_.component);return registerRenderer(__assign$3(__assign$3({},x_),{weight:typeof x_.weight<"u"?x_.weight:-100,component:eme,isFormItem:!0}))}function FormItem(x_){return function(eme){var $P=registerFormItem(__assign$3(__assign$3({},x_),{component:eme}));return $P.component}}var detectProps=detectProps$1.concat(["value","options","size","buttons","columnsCount","multiple","hideRoot","checkAll","defaultCheckAll","showIcon","showRadio","btnDisabled","joinValues","extractValue","borderMode","hideSelected"]),OptionsControlBase=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=this,nme;ame=x_.call(this,$P)||this,ame.config=tme,ame.toDispose=[],ame.mounted=!1;var rme=$P.initFetch,ime=$P.formItem,ome=$P.source,lme=$P.data,sme=$P.setPrinstineValue,cme=$P.defaultValue,dme=$P.multiple,ume=$P.joinValues,fme=$P.extractValue,pme=$P.addHook,hme=$P.formInited,bme=$P.valueField,mme=$P.options,vme=$P.value,gme=$P.defaultCheckAll;if(!ime)return ame;ime.setOptions(normalizeOptions$1(mme,void 0,bme),ame.changeOptionValue,lme),ame.toDispose.push(reaction(function(){return JSON.stringify([ime.loading,ime.filteredOptions])},function(){return ame.mounted&&ame.forceUpdate()})),dme&&gme&&(!((nme=ime.filteredOptions)===null||nme===void 0)&&nme.length)&&!ome&&ame.defaultCheckAll();var yme=rme!==!1,_me=null;return ume===!1&&cme&&(_me=function(){var $me=fme?ime.getSelectedOptions(vme).map(function(Cme){return Cme[bme||"value"]}):ime.getSelectedOptions(vme);sme(dme?$me.concat():$me[0])}),yme&&tme.autoLoadOptionsFromSource!==!1?ame.toDispose.push(hme||!pme?ime.addInitHook(function(){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function($me){switch($me.label){case 0:return[4,this.reload()];case 1:return $me.sent(),_me==null||_me(),[2]}})})}):pme(function($me){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(Cme){switch(Cme.label){case 0:return[4,this.initOptions($me)];case 1:return Cme.sent(),_me==null||_me(),[2]}})})},"init")):_me==null||_me(),ame}return eme.prototype.componentDidMount=function(){this.mounted=!0,this.normalizeValue()},eme.prototype.shouldComponentUpdate=function($P){var tme;return this.config.strictMode===!1||$P.strictMode===!1||$P.source||$P.autoComplete||!((tme=$P.formItem)===null||tme===void 0)&&tme.expressionsInOptions?!0:!!anyChanged$1(detectProps,this.props,$P)},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props,nme=ame.formItem;if(!ame.source&&$P.options!==ame.options&&nme)nme.setOptions(normalizeOptions$1(ame.options||[],void 0,ame.valueField),this.changeOptionValue,ame.data),this.normalizeValue();else if(this.config.autoLoadOptionsFromSource!==!1&&(ame.formInited||typeof ame.formInited>"u")&&ame.source&&nme&&($P.source!==ame.source||$P.data!==ame.data))if(isPureVariable(ame.source)){var rme=resolveVariableAndFilter($P.source,$P.data,"| raw"),ime=resolveVariableAndFilter(ame.source,ame.data,"| raw");rme!==ime&&(nme.loadOptionsFromDataScope(ame.source,ame.data,this.changeOptionValue),this.normalizeValue())}else isEffectiveApi(ame.source,ame.data)&&isApiOutdated($P.source,ame.source,$P.data,ame.data)&&nme.loadOptions(ame.source,ame.data,void 0,!0,this.changeOptionValue).then(function(){return tme.normalizeValue()});($P.value!==ame.value||nme!=null&&nme.expressionsInOptions)&&(nme==null||nme.syncOptions(void 0,ame.data))},eme.prototype.componentWillUnmount=function(){var $P,tme;(tme=($P=this.props).removeHook)===null||tme===void 0||tme.call($P,this.reload,"init"),this.mounted=!1,this.toDispose.forEach(function(ame){return ame()}),this.toDispose=[]},eme.prototype.oldDispatchOptionEvent=function($P,tme){return tme===void 0&&(tme=""),__awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return ame=this.props,nme=ame.dispatchEvent,rme=ame.options,[4,nme($P,resolveEventData(this.props,{value:tme,options:rme,items:rme}))];case 1:return ime=ome.sent(),[2,!!(ime!=null&&ime.prevented)]}})})},eme.prototype.dispatchOptionEvent=function($P,tme){return tme===void 0&&(tme=""),__awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ame=this.props,nme=ame.dispatchEvent,rme=ame.options,ime=ame.value,[4,nme($P,resolveEventData(this.props,__assign$3({value:ime,options:rme,items:rme},tme)))];case 1:return ome=lme.sent(),[2,!!(ome!=null&&ome.prevented)]}})})},eme.prototype.doAction=function($P,tme,ame){var nme=this.props,rme=nme.resetValue,ime=nme.onChange,ome=$P==null?void 0:$P.actionType;ome==="clear"?ime==null||ime(""):ome==="reset"&&(ime==null||ime(rme??""))},eme.prototype.normalizeValue=function(){var $P=this.props,tme=$P.joinValues,ame=$P.extractValue,nme=$P.value,rme=$P.multiple,ime=$P.formItem,ome=$P.valueField;$P.enableNodePath,$P.pathSeparator;var lme=$P.onChange;if(!(!ime||tme!==!1||!ime.options.length)){if(ame===!1&&(typeof nme=="string"||typeof nme=="number")){var sme=ime.getSelectedOptions(nme);lme==null||lme(rme?sme.concat():sme[0])}else if(ame===!0&&nme&&!(Array.isArray(nme)&&nme.every(function(cme){return typeof cme=="string"||typeof cme=="number"})||typeof nme=="string"||typeof nme=="number")){var sme=ime.getSelectedOptions(nme).map(function(dme){return dme[ome||"value"]});lme==null||lme(rme?sme.concat():sme[0])}}},eme.prototype.getWrappedInstance=function(){return this.input},eme.prototype.inputRef=function($P){this.input=$P},eme.prototype.handleToggle=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return nme=this.props,rme=nme.onChange,ime=nme.formItem,ome=nme.value,ime?(lme=this.toggleValue($P,ome),[4,this.dispatchOptionEvent("change",{value:lme})]):[2];case 1:return sme=cme.sent(),sme||rme&&rme(lme,tme,ame),[2]}})})},eme.prototype.defaultCheckAll=function(){var $P=this.props,tme=$P.value,ame=$P.formItem,nme=$P.setPrinstineValue;if(!(!ame||ame.getSelectedOptions(tme).length)){var rme=ame.filteredOptions.concat(),ime=this.formatValueArray(rme);nme==null||nme(ime)}},eme.prototype.formatValueArray=function($P){var tme=this.props,ame=tme.joinValues,nme=tme.extractValue,rme=tme.valueField,ime=tme.delimiter,ome=tme.resetValue,lme=tme.multiple,sme="";return lme?(sme=getTreeDepth($P)>1?flattenTree($P):$P,ame?sme=sme.map(function(cme){return cme[rme||"value"]}).filter(function(cme){return cme!=null}).join(ime):nme&&(sme=sme.map(function(cme){return cme[rme||"value"]}).filter(function(cme){return cme!=null}))):(sme=$P[0]||ome,ame&&sme&&(sme=sme[rme||"value"])),sme},eme.prototype.handleToggleAll=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return $P=this.props,tme=$P.value,ame=$P.onChange,nme=$P.formItem,rme=$P.valueField,nme?(ime=nme.getSelectedOptions(tme),ome=flattenTree(nme.filteredOptions.concat()).filter(function(ume){return ume!=null&&ume[rme||"value"]!=null}),lme=ime.length===ome.length?[]:nme.filteredOptions.concat(),sme=this.formatValueArray(lme),[4,this.dispatchOptionEvent("change",{value:sme})]):[2];case 1:return cme=dme.sent(),cme||ame&&ame(sme),[2]}})})},eme.prototype.toggleValue=function($P,tme){var ame=this.props,nme=ame.joinValues,rme=ame.extractValue,ime=ame.valueField,ome=ame.delimiter,lme=ame.clearable,sme=ame.resetValue,cme=ame.multiple,dme=ame.formItem,ume=tme!==void 0?dme.getSelectedOptions(tme).concat():[],fme=findIndex$3(ume,optionValueCompare$1($P[ime||"value"],ime||"value")),pme="";return cme?(~fme?ume.splice(fme,1):ume.push($P),pme=ume,nme?pme=pme.map(function(hme){return hme[ime||"value"]}).join(ome):rme&&(pme=pme.map(function(hme){return hme[ime||"value"]}))):(~fme&&lme?ume.splice(fme,1):ume=[$P],pme=ume[0]||sme,(nme||rme)&&pme&&(pme=pme[ime||"value"])),pme},eme.prototype.reload=function(){return this.reloadOptions()},eme.prototype.reloadOptions=function($P,tme,ame){tme===void 0&&(tme=!1),ame===void 0&&(ame=this.props.data);var nme=this.props,rme=nme.source,ime=nme.formItem,ome=nme.onChange,lme=nme.setPrinstineValue;if(nme.valueField,ime&&isPureVariable(rme)){isAlive(ime)&&ime.loadOptionsFromDataScope(rme,ame,this.changeOptionValue);return}else if(!ime||!isEffectiveApi(rme,ame))return;return isAlive(ime)?ime.loadOptions(rme,ame,void 0,!1,tme?lme:ome,$P):void 0},eme.prototype.deferLoad=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return tme=this.props,ame=tme.deferApi,nme=tme.source,rme=tme.env,ime=tme.formItem,ome=tme.data,lme=$P.deferApi||ame||nme,lme?[4,ime==null?void 0:ime.deferLoadOptions($P,lme,createObject$1(ome,$P))]:(rme.notify("error","请在选项中设置 `deferApi` 或者表单项中设置 `deferApi`，用来加载子选项。"),[2]);case 1:return sme=cme.sent(),this.oldDispatchOptionEvent("loadFinished",sme),this.dispatchOptionEvent("deferLoadFinished",{result:sme}),[2]}})})},eme.prototype.leftDeferLoad=function($P,tme){var ame=this.props,nme=ame.deferApi,rme=ame.source,ime=ame.env,ome=ame.formItem,lme=ame.data,sme=$P.deferApi||nme||rme;if(!sme){ime.notify("error","请在选项中设置 `deferApi` 或者表单项中设置 `deferApi`，用来加载子选项。");return}ome==null||ome.deferLoadLeftOptions($P,tme,sme,createObject$1(lme,$P))},eme.prototype.expandTreeOptions=function($P){var tme=this.props,ame=tme.deferApi,nme=tme.source,rme=tme.env,ime=tme.formItem,ome=tme.data,lme=ame||nme;if(!lme){rme.notify("error","请在选项中设置 `deferApi` 或者表单项中设置 `deferApi`，用来加载子选项。");return}ime==null||ime.expandTreeOptions($P,lme,createObject$1(ome))},eme.prototype.initOptions=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return[4,this.reloadOptions(!1,!0)];case 1:return lme.sent(),ame=this.props,nme=ame.formItem,rme=ame.name,ime=ame.multiple,ome=ame.defaultCheckAll,nme?(isAlive(nme)&&nme.value&&setVariable($P,rme,nme.value),ime&&ome&&(!((tme=nme.filteredOptions)===null||tme===void 0)&&tme.length)&&this.defaultCheckAll(),[2]):[2]}})})},eme.prototype.focus=function(){this.input&&this.input.focus&&this.input.focus()},eme.prototype.changeOptionValue=function($P){var tme=this.props,ame=tme.onChange,nme=tme.formInited,rme=tme.setPrinstineValue,ime=tme.value;nme===!1?ime===void 0&&(rme==null||rme($P)):ame==null||ame($P)},eme.prototype.setOptions=function($P,tme){tme===void 0&&(tme=!1);var ame=this.props.formItem;ame&&ame.setOptions(tme?$P:normalizeOptions$1($P||[],void 0,this.props.valueField),this.changeOptionValue,this.props.data)},eme.prototype.syncOptions=function(){var $P=this.props.formItem;$P&&$P.syncOptions(void 0,this.props.data)},eme.prototype.setLoading=function($P){var tme=this.props.formItem;tme&&tme.setLoading($P)},eme.prototype.handleOptionAdd=function($P,tme,ame,nme){var rme,ime;return $P===void 0&&($P=-1),ame===void 0&&(ame=!1),__awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme,Bme=this;return __generator(this,function(Dme){switch(Dme.label){case 0:return ome=this.props,lme=ome.addControls,sme=ome.addDialog,cme=ome.disabled,dme=ome.labelField,ume=ome.onOpenDialog,fme=ome.optionLabel,pme=ome.addApi,hme=ome.source,bme=ome.data,mme=ome.valueField,vme=ome.deferField,gme=ome.formItem,yme=ome.createBtnLabel,_me=ome.env,$me=ome.translate,cme||!gme?[2]:(!ame&&(!Array.isArray(lme)||!lme.length)&&(lme=[{type:"text",name:dme||"label",label:!1,required:!0,placeholder:$me("Options.addPlaceholder")}]),Cme=Array.isArray($P)?getTree(gme.options,$P.slice(0,-1)):void 0,Sme=createObject$1(bme,Array.isArray($P)?__assign$3({parent:Cme},tme):tme),Eme=!1,ame?(Tme=Sme,[3,3]):[3,1]);case 1:return[4,ume(__assign$3(__assign$3({type:"dialog",title:yme||"新增".concat(fme||"选项")},sme),{body:{type:"form",api:pme,controls:__spreadArray([{type:"hidden",name:"idx",value:$P},{type:"hidden",name:"parent",value:Cme}],__read$3(lme||[]),!1),onSubmit:function(jme){return __awaiter(Bme,void 0,void 0,function(){var Vme,Wme,Lme,zme;return __generator(this,function(Ume){switch(Ume.label){case 0:return Vme=dme||"label",Wme=mme||"value",[4,this.dispatchOptionEvent("addConfirm",{item:(Lme={},Lme[Vme]=jme[Vme],Lme[Wme]=(zme=jme[Wme])!==null&&zme!==void 0?zme:jme[Vme],Lme)})];case 1:return Eme=Ume.sent(),[2,!Eme]}})})}}}),Sme)];case 2:Tme=Dme.sent(),Dme.label=3;case 3:return xme=Tme,ame?[4,this.dispatchOptionEvent("addConfirm",{item:xme})]:[3,5];case 4:return Ome=Dme.sent(),Ome?[2]:[3,6];case 5:if(Eme)return[2];Dme.label=6;case 6:if(!(ame&&pme))return[3,10];Dme.label=7;case 7:return Dme.trys.push([7,9,,10]),[4,_me.fetcher(pme,xme,{method:"post"})];case 8:return Rme=Dme.sent(),Rme.ok?xme=Rme.data||xme:(!pme.silent&&_me.notify("error",(ime=(rme=pme==null?void 0:pme.messages)===null||rme===void 0?void 0:rme.failed)!==null&&ime!==void 0?ime:Rme.msg||$me("Options.createFailed")),xme=null),[3,10];case 9:return Nme=Dme.sent(),xme=null,console.error(Nme),!pme.silent&&_me.notify("error",Nme.message),[3,10];case 10:return xme?(xme.hasOwnProperty(mme||"value")||(xme=__assign$3(__assign$3({},xme),(kme={},kme[mme||"value"]=xme[dme||"label"],kme))),[4,this.oldDispatchOptionEvent("add",__assign$3(__assign$3({},xme),{idx:$P}))]):[2];case 11:return Ime=Dme.sent(),Ime?[2]:[4,nme==null?void 0:nme(xme)];case 12:return Pme=Dme.sent(),Pme!==!1?[3,13]:[2];case 13:return Cme!=null&&Cme.hasOwnProperty(vme)&&Cme[vme]||Cme!=null&&Cme.defer?[4,this.deferLoad(Cme)]:[3,15];case 14:return Dme.sent(),[3,16];case 15:hme&&pme?this.reload():(Mme=gme.options.concat(),Array.isArray($P)?Mme=spliceTree(Mme,$P,0,__assign$3({},xme)):~$P?Mme.splice($P,0,__assign$3({},xme)):Mme.push(__assign$3({},xme)),gme.setOptions(Mme,this.changeOptionValue,bme)),Dme.label=16;case 16:return[2]}})})},eme.prototype.handleOptionEdit=function($P,tme,ame,nme){var rme,ime;return tme===void 0&&(tme=$P),ame===void 0&&(ame=!1),__awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime=this;return __generator(this,function(Pme){switch(Pme.label){case 0:return ome=this.props,lme=ome.editControls,sme=ome.editDialog,cme=ome.disabled,dme=ome.labelField,ume=ome.valueField,fme=ome.onOpenDialog,pme=ome.editApi,hme=ome.editInitApi,bme=ome.env,mme=ome.source,vme=ome.data,gme=ome.formItem,yme=ome.optionLabel,_me=ome.translate,cme||!gme?[2]:(!ame&&(!Array.isArray(lme)||!lme.length)&&(lme=[{type:"text",name:dme||"label",label:!1,placeholder:_me("Options.addPlaceholder")}]),$me=!1,ame?(Sme=$P,[3,3]):[3,1]);case 1:return[4,fme(__assign$3(__assign$3({type:"dialog",title:_me("Options.editLabel",{label:yme||_me("Options.label")})},sme),{body:{type:"form",initApi:hme,api:pme,controls:lme,onSubmit:function(Mme){return __awaiter(Ime,void 0,void 0,function(){var kme,Bme,Dme,jme;return __generator(this,function(Vme){switch(Vme.label){case 0:return kme=dme||"label",Bme=ume||"value",[4,this.dispatchOptionEvent("editConfirm",{item:(Dme={},Dme[kme]=Mme[kme],Dme[Bme]=(jme=Mme[Bme])!==null&&jme!==void 0?jme:Mme[kme],Dme)})];case 1:return $me=Vme.sent(),[2,!$me]}})})}}}),createObject$1(vme,$P))];case 2:Sme=Pme.sent(),Pme.label=3;case 3:return Cme=Sme,ame?[4,this.dispatchOptionEvent("editConfirm",{item:Cme})]:[3,5];case 4:return Eme=Pme.sent(),Eme?[2]:[3,6];case 5:if($me)return[2];Pme.label=6;case 6:if(!(ame&&pme))return[3,10];Pme.label=7;case 7:return Pme.trys.push([7,9,,10]),[4,bme.fetcher(pme,createObject$1(vme,Cme),{method:"post"})];case 8:return xme=Pme.sent(),xme.ok?Cme=xme.data||Cme:(!pme.silent&&bme.notify("error",(ime=(rme=pme==null?void 0:pme.messages)===null||rme===void 0?void 0:rme.failed)!==null&&ime!==void 0?ime:xme.msg||_me("saveFailed")),Cme=null),[3,10];case 9:return Tme=Pme.sent(),Cme=null,console.error(Tme),!pme.silent&&bme.notify("error",Tme.message),[3,10];case 10:return Cme?[4,this.oldDispatchOptionEvent("edit",Cme)]:[2];case 11:return Ome=Pme.sent(),Ome?[2]:[4,nme==null?void 0:nme(Cme)];case 12:return Rme=Pme.sent(),Rme===!1?[2]:(mme&&pme?this.reload():(Nme=findTreeIndex(gme.options,function(Mme){return Mme===tme}),Nme&&gme.setOptions(spliceTree(gme.options,Nme,1,__assign$3(__assign$3({},tme),Cme)),this.changeOptionValue,vme)),[2])}})})},eme.prototype.handleOptionDelete=function($P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme;return __generator(this,function(xme){switch(xme.label){case 0:return rme=this.props,ime=rme.deleteConfirmText,ome=rme.disabled,lme=rme.data,sme=rme.deleteApi,cme=rme.onDelete,dme=rme.env,ume=rme.formItem,fme=rme.source,pme=rme.valueField,hme=rme.translate,ome||!ume?[2]:(bme=createObject$1(lme,$P),ime?[4,dme.confirm(filter$1(hme(ime),bme))]:[3,2]);case 1:return vme=xme.sent(),[3,3];case 2:vme=!0,xme.label=3;case 3:return mme=vme,mme?[4,this.oldDispatchOptionEvent("delete",bme)]:[2];case 4:return gme=xme.sent(),gme?[2]:[4,this.dispatchOptionEvent("deleteConfirm",{item:$P})];case 5:if(yme=xme.sent(),yme)return[2];xme.label=6;case 6:return xme.trys.push([6,9,,10]),sme?[4,dme.fetcher(sme,bme,{method:"delete"})]:[3,8];case 7:if(_me=xme.sent(),!_me.ok)return!sme.silent&&dme.notify("error",(nme=(ame=sme==null?void 0:sme.messages)===null||ame===void 0?void 0:ame.failed)!==null&&nme!==void 0?nme:_me.msg||hme("deleteFailed")),[2];xme.label=8;case 8:return cme&&cme(bme),$me=tme==null?void 0:tme(bme),$me===!1?[2]:(fme?this.reload():(Cme=ume.options.concat(),Sme=findTreeIndex(Cme,function(Tme){return Tme[pme||"value"]==$P[pme||"value"]}),Sme&&ume.setOptions(spliceTree(Cme,Sme,1),this.changeOptionValue,lme)),[3,10]);case 9:return Eme=xme.sent(),console.error(Eme),!sme.silent&&dme.notify("error",Eme.message),[3,10];case 10:return[2]}})})},eme.prototype.render=function(){var $P=this.props,tme=$P.value,ame=$P.formItem,nme=$P.addApi,rme=$P.editApi,ime=$P.deleteApi,ome=$P.creatable,lme=$P.editable,sme=$P.removable,cme=$P.enableNodePath,dme=$P.pathSeparator,ume=$P.delimiter,fme=ume===void 0?",":ume,pme=$P.labelField,hme=pme===void 0?"label":pme,bme=$P.valueField,mme=bme===void 0?"value":bme,vme=$P.translate,gme=normalizeNodePath(tme,cme,hme,mme,dme,fme),yme=gme.nodePathArray,_me=gme.nodeValueArray,$me=this.config.component;return React__default.createElement($me,__assign$3({},this.props,{placeholder:vme(this.props.placeholder),ref:this.inputRef,options:ame?ame.filteredOptions:[],onToggle:this.handleToggle,onToggleAll:this.handleToggleAll,selectedOptions:ame?ame.getSelectedOptions(tme,cme?_me:void 0):[],nodePath:yme,loading:ame?ame.loading:!1,setLoading:this.setLoading,setOptions:this.setOptions,syncOptions:this.syncOptions,reloadOptions:this.reload,deferLoad:this.deferLoad,leftDeferLoad:this.leftDeferLoad,expandTreeOptions:this.expandTreeOptions,creatable:ome!==!1&&isEffectiveApi(nme)?!0:ome,editable:lme||lme!==!1&&isEffectiveApi(rme),removable:sme||sme!==!1&&isEffectiveApi(ime),onAdd:this.handleOptionAdd,onEdit:this.handleOptionEdit,onDelete:this.handleOptionDelete}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"inputRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean,Boolean]),__metadata("design:returntype",Promise)],eme.prototype,"handleToggle",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleToggleAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"reload",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean,Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"reloadOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"deferLoad",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"leftDeferLoad",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"expandTreeOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"initOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"changeOptionValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,Object]),__metadata("design:returntype",void 0)],eme.prototype,"setOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"syncOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"setLoading",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Boolean,Function]),__metadata("design:returntype",Promise)],eme.prototype,"handleOptionAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Boolean,Function]),__metadata("design:returntype",Promise)],eme.prototype,"handleOptionEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",Promise)],eme.prototype,"handleOptionDelete",null),eme}(React__default.Component);function registerOptionsControl(x_){var eme=x_.component,$P=function(tme){__extends$2(ame,tme);function ame(nme){return tme.call(this,nme,x_)||this}return ame.displayName="OptionsControl(".concat(x_.type,")"),ame.defaultProps=__assign$3({delimiter:",",labelField:"label",valueField:"value",joinValues:!0,extractValue:!1,multiple:!1,placeholder:"Select.placeholder",resetValue:"",deleteConfirmText:"deleteConfirm"},eme.defaultProps),ame.propsList=eme.propsList?__spreadArray([],__read$3(eme.propsList),!1):[],ame.ComposedComponent=eme,ame}(OptionsControlBase);return registerFormItem(__assign$3(__assign$3({},x_),{strictMode:!1,component:$P}))}function OptionsControl(x_){return function(eme){var $P=registerOptionsControl(__assign$3(__assign$3({},x_),{component:eme}));return $P.component}}function autoPreRegisterAmisCustomRenderers(){window.AmisCustomRenderers&&Object.keys(window.AmisCustomRenderers).forEach(function(x_){if(renderersMap[x_])console.warn("[amis-core]：预注册渲染器失败，当前已存在重名渲染器（".concat(x_,"）。"));else{var eme=window.AmisCustomRenderers[x_];eme&&registerAmisRendererByUsage(x_,eme)}})}autoPreRegisterAmisCustomRenderers();window.addEventListener("message",function(x_){var eme,$P,tme;if(x_.data&&((eme=x_.data)===null||eme===void 0?void 0:eme.type)==="amis-renderer-register-event"&&!(($P=x_.data)===null||$P===void 0)&&$P.amisRenderer&&x_.data.amisRenderer.type){var ame=(tme=x_.data)===null||tme===void 0?void 0:tme.amisRenderer,nme=(ame==null?void 0:ame.usage)||"renderer";renderersMap[ame.type]?console.warn("[amis-core]：动态注册渲染器失败，当前已存在重名渲染器（".concat(ame.type,"）。")):(console.info("[amis-core]响应动态注册渲染器事件：",ame.type),registerAmisRendererByUsage(nme,ame))}},!1);function registerAmisRendererByUsage(x_,eme){var $P={renderer:Renderer,formitem:FormItem,options:OptionsControl},tme=eme.component;!tme&&window.AmisCustomRenderers&&window.AmisCustomRenderers[eme.type]&&window.AmisCustomRenderers[eme.type].component&&(tme=window.AmisCustomRenderers[eme.type].component),tme&&["renderer","formitem","options"].includes(x_)&&$P[x_]&&$P[x_](__assign$3(__assign$3({},eme.config||{}),{type:eme.type,weight:eme.weight||0,autoVar:eme.autoVar||!1}))(tme)}function attachmentAdpator(x_,eme,$P){var tme;if(x_&&x_.headers&&x_.headers["content-disposition"]){var ame=x_.headers["content-disposition"],nme="";if(ame&&ame.indexOf("attachment")!==-1){if($P!=null&&$P.downloadFileName)nme=$P.downloadFileName;else{var rme=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/i,ime=ame.match(rme);ime&&ime.length?nme=ime[1].replace("UTF-8''","").replace(/['"]/g,""):nme=ame==null?void 0:ame.split(";")[1],nme&&nme.replace(/[^%]/g,"").length>2&&(nme=decodeURIComponent(nme),nme=nme.replace(/\+/g," "))}var ome=(tme=x_.headers)===null||tme===void 0?void 0:tme["content-type"],lme=x_.data.toString()==="[object Blob]"?x_.data:new Blob([x_.data],{type:ome});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(lme,nme);else{var sme=window.URL||window.webkitURL,cme=sme.createObjectURL(lme);if(nme){var dme=document.createElement("a");typeof dme.download>"u"?window.location=cme:(dme.href=cme,dme.download=nme,document.body.appendChild(dme),dme.click())}else window.location=cme;setTimeout(function(){sme.revokeObjectURL(cme)},100)}return __assign$3(__assign$3({},x_),{data:{status:0,msg:eme("Embed.downloading")}})}}else if(x_.data&&x_.data.toString()==="[object Blob]")return new Promise(function(ume,fme){var pme=new FileReader;pme.addEventListener("loadend",function(hme){var bme=pme.result;try{ume(__assign$3(__assign$3({},x_),{data:__assign$3({},JSON.parse(bme))}))}catch(mme){fme(mme)}}),pme.readAsText(x_.data)});return x_}function columnsSplit(x_,eme,$P){if(Array.isArray($P)&&$P.length){var tme=0,ame=[],nme=Math.max(Math.round(12/Math.max.apply(Math,__spreadArray([],__read$3($P),!1))),1),rme="Grid-col--sm".concat(nme);$P.forEach(function(lme,sme){lme&&(ame.push(React__default.createElement("div",{className:eme("Grid"),key:sme},Array.from({length:lme}).map(function(cme,dme){return tme+dme<x_.length?React__default.createElement("div",{key:dme,className:eme(rme)},x_[tme+dme]):null}))),tme=tme+lme)}),x_=ame}else if(typeof $P=="number"&&$P>1){var ime=12/$P,ome="Grid-col--sm".concat(ime===Math.round(ime)?ime:"");x_=chunk$1(x_,$P).map(function(lme,sme){return React__default.createElement("div",{className:eme("Grid"),key:sme},Array.from({length:$P}).map(function(cme,dme){return React__default.createElement("div",{key:dme,className:eme(ome)},lme[dme])}))})}return x_}function handleAction(x_,eme,$P,tme){x_.persist();var ame=$P.onAction,nme=eme.onClick;typeof nme=="string"&&(nme=str2function(nme,"event","props","data"));var rme=nme&&nme(x_,$P,tme||$P.data);if(!(x_.isDefaultPrevented()||rme===!1||!ame)){if(x_.preventDefault(),eme.actionType==="download"){eme.actionType="ajax";var ime=normalizeApi(eme.api);ime.responseType="blob",ime.downloadFileName=eme.downloadFileName,eme.api=ime}ame(x_,eme,tme||$P.data)}}function highlight(x_,eme,$P){if($P===void 0&&($P="is-matched"),!eme)return x_;x_=String(x_);var tme=string2regExp(eme,!1,!0);if(!tme.test(x_))return x_;var ame=[],nme=0,rme=null;for(tme.lastIndex=0;rme=tme.exec(x_);){var ime=x_.substring(nme,rme.index);ime&&ame.push(React__default.createElement("span",{key:ame.length},ime)),rme[0]&&ame.push(React__default.createElement("span",{className:$P,key:ame.length},rme[0])),nme=rme.index+rme[0].length}var ome=x_.substring(nme);return ome&&ame.push(React__default.createElement("span",{key:ame.length},ome)),ame}function labelToString(x_){var eme,$P,tme=typeof x_;if(tme==="string")return x_;if(tme==="number")return"".concat(x_);if(tme==="boolean")return String(x_);if(isPlainObject$b(x_))try{for(var ame=__values$1(["__title","label",Object.keys(x_)[0]]),nme=ame.next();!nme.done;nme=ame.next()){var rme=nme.value;if(typeof x_[rme]=="string")return x_[rme]}}catch(ime){eme={error:ime}}finally{try{nme&&!nme.done&&($P=ame.return)&&$P.call(ame)}finally{if(eme)throw eme.error}}return"invalid label"}var loopCount={},loopTimer={},loopResult={};function loopTooMuch(x_,eme){return eme===void 0&&(eme=20),loopResult[x_]?loopResult[x_]:(clearTimeout(loopTimer[x_]),loopTimer[x_]=setTimeout(function(){delete loopCount[x_],delete loopTimer[x_]},1e3),loopCount[x_]&&loopCount[x_]>eme?(loopResult[x_]=!0,!0):(loopCount[x_]=(loopCount[x_]||0)+1,!1))}function autoAddImageURL(x_){return typeof x_=="string"&&x_.indexOf(",")===-1&&x_.indexOf("(")===-1?'url("'.concat(x_,'")'):x_}function buildStyle(x_,eme){if(!x_)return x_;var $P=typeof x_=="string"?resolveVariableAndFilter(x_,eme,"| raw")||{}:mapValues$1(x_,function(tme){return resolveVariableAndFilter(tme,eme,"| raw")||tme});return Object.keys($P).forEach(function(tme){tme==="radius"&&($P.borderRadius=$P.radius["top-left-border-radius"]+" "+$P.radius["top-right-border-radius"]+" "+$P.radius["bottom-right-border-radius"]+" "+$P.radius["bottom-left-border-radius"],delete $P.radius),tme.indexOf("-")>0&&($P[camelCase$1(valueMap[tme]||tme)]=$P[tme],delete $P[tme])}),$P.backgroundImage&&($P.backgroundImage=autoAddImageURL($P.backgroundImage)),$P.borderImage&&($P.borderImage=autoAddImageURL($P.borderImage)),$P.listStyleImage&&($P.listStyleImage=autoAddImageURL($P.listStyleImage)),$P}function uncontrollable(x_,eme,$P){var tme=uncontrollable$1(x_,eme,$P);return hoistNonReactStatics(tme,x_)}function toNumber$1(x_,eme){eme===void 0&&(eme=0);var $P=parseInt(x_,10);return isNaN($P)?eme:$P}var decodeEntity=function(x_){var eme=document.createElement("textarea");return eme.innerHTML=x_,eme.value};function arraySlice(x_,eme){var $P,tme;if(typeof eme!="string"||(isObservableArray(x_)&&(x_=toJS(x_)),eme=eme.trim(),!eme||!Array.isArray(x_)))return x_;var ame=eme.split(","),nme=[],rme=x_.length;if(!rme)return x_;try{for(var ime=__values$1(ame),ome=ime.next();!ome.done;ome=ime.next()){var lme=ome.value;if(lme.indexOf(":")===-1){var sme=parseInt(lme,10);!isNaN(sme)&&sme<rme&&nme.push(x_[sme])}else{var cme=__read$3(lme.split(":"),2),dme=cme[0],ume=cme[1],fme=parseInt(dme||"0",10);if((isNaN(fme)||fme<0)&&(fme=0),fme>=rme)continue;var pme=parseInt(ume,10);if(isNaN(pme)&&(pme=rme),pme<0&&(pme=rme+pme),pme<fme)continue;pme>rme&&(pme=rme),nme.push.apply(nme,__spreadArray([],__read$3(x_.slice(fme,pme)),!1))}}}catch(hme){$P={error:hme}}finally{try{ome&&!ome.done&&(tme=ime.return)&&tme.call(ime)}finally{if($P)throw $P.error}}return nme}function safeAdd(x_,eme){var $P,tme,ame;try{$P=x_.toString().split(".")[1].length}catch{$P=0}try{tme=eme.toString().split(".")[1].length}catch{tme=0}return ame=Math.pow(10,Math.max($P,tme)),(x_*ame+eme*ame)/ame}function safeSub(x_,eme){var $P,tme,ame;try{$P=x_.toString().split(".")[1].length}catch{$P=0}try{tme=eme.toString().split(".")[1].length}catch{tme=0}return ame=Math.pow(10,Math.max($P,tme)),(x_*ame-eme*ame)/ame}function numberFormatter(x_,eme){var $P,tme=0,ame=+x_,nme=typeof eme=="number"?eme:(($P=ame.toString().split(".")[1])===null||$P===void 0?void 0:$P.length)||0;if(typeof ame=="number"&&!isNaN(ame)){var rme=nme?/(\d)(?=(\d{3})+\.)/g:/(\d)(?=(\d{3})+$)/g;return ame.toFixed(nme).replace(rme,"$1,")}return tme.toFixed(nme)}function isIntegerInRange(x_,eme){var $P=eme||{},tme=$P.start,ame=$P.end,nme=$P.left,rme=nme===void 0?"inclusive":nme,ime=$P.right,ome=ime===void 0?"inclusive":ime;return x_==null||typeof x_!="number"||!Number.isSafeInteger(x_)?!1:rme==="exclusive"&&ome==="exclusive"?x_>tme&&x_<ame:rme==="inclusive"&&ome==="exclusive"?x_>=tme&&x_<ame:rme==="exclusive"&&ome==="inclusive"?x_>tme&&x_<=ame:x_>=tme&&x_<=ame}var StyleManager=function(){function x_(){this.styles={},this.styleDom=document.createElement("style"),this.styleDom.id="amis-styles",document.head.appendChild(this.styleDom)}return x_.prototype.updateStyle=function(eme){var $P=this;Object.keys(eme).forEach(function(tme){$P.styles[tme]?$P.styles[tme]=__assign$3(__assign$3({},$P.styles[tme]),eme[tme]):$P.styles[tme]=eme[tme]}),this.updateStyleDom()},x_.prototype.removeStyles=function(eme){delete this.styles[eme],this.updateStyleDom()},x_.prototype.updateStyleDom=function(){var eme=this,$P=Object.keys(this.styles).map(function(tme){var ame=eme.styles[tme];return Object.keys(ame).map(function(nme){return"".concat(nme," {").concat(Object.keys(ame[nme]).map(function(rme){return"".concat(kebabCase$1(rme),": ").concat(ame[nme][rme],";")}).join(""),"}")}).join("")}).join("");this.styleDom.innerHTML=$P,this.styleText=$P},x_}(),styleManager=new StyleManager;function generateStyleByAnimation(x_,eme){var $P;return $P={},$P[x_.join(",")]={animationName:eme.name,animationDuration:"".concat(eme.duration||1,"s"),animationIterationCount:eme.iterationCount||1,animationDelay:"".concat(eme.delay||0,"s"),animationTimingFunction:eme.timingFunction||"ease",animationFillMode:eme.fillMode||"none"},$P}function createAnimationStyle(x_,eme){var $P,tme=eme.enter,ame={};tme!=null&&tme.type&&(ame=generateStyleByAnimation([".".concat(tme.type,"-").concat(x_,"-enter")],{name:tme.type,duration:tme.duration,delay:tme.delay,fillMode:"backwards"}));var nme=eme.attention,rme={};nme!=null&&nme.type&&(rme=generateStyleByAnimation([".".concat(nme.type,"-").concat(x_,"-attention")],{name:nme.type,duration:nme.duration,iterationCount:nme.repeat||"infinite",delay:nme.delay}));var ime=eme.exit,ome={};ime!=null&&ime.type&&(ome=generateStyleByAnimation([".".concat(ime.type,"-").concat(x_,"-exit")],{name:ime.type,duration:ime.duration,delay:ime.delay,fillMode:"forwards"})),styleManager.updateStyle(($P={},$P[x_]=Object.assign({},ame,rme,ome),$P))}var defaultLocale="zh-CN",momentLocaleMap={"zh-CN":"zh-cn","en-US":"en","de-DE":"de"},locales={};function register(x_,eme){extendLocale(x_,eme)}function extendLocale(x_,eme,$P){$P===void 0&&($P=!0),$P?locales[x_]=__assign$3(__assign$3({},locales[x_]||{}),eme):locales[x_]=__assign$3(__assign$3({},eme),locales[x_]||{})}var fns={};function format(x_,eme){return x_.replace(/(\\)?\{\{([\s\S]+?)\}\}/g,function($P,tme,ame){return tme?$P.substring(1):resolveVariable(ame,eme||{})})}function makeTranslator(x_){if(x_&&fns[x_])return fns[x_];var eme=function($P){for(var tme,ame,nme,rme=[],ime=1;ime<arguments.length;ime++)rme[ime-1]=arguments[ime];if(!$P||typeof $P!="string")return $P;var ome=((tme=locales[x_])===null||tme===void 0?void 0:tme[$P])||((ame=locales[defaultLocale])===null||ame===void 0?void 0:ame[$P])||((nme=locales["zh-CN"])===null||nme===void 0?void 0:nme[$P])||$P;return format.apply(void 0,__spreadArray([ome],__read$3(rme),!1))};return x_&&(fns[x_]=eme),eme}function getDefaultLocale(){return defaultLocale}function setDefaultLocale(x_){defaultLocale=x_}var LocaleContext=React__default.createContext("");function localeable(x_,eme){var $P,tme=hoistNonReactStatics(($P=function(ame){__extends$2(nme,ame);function nme(rme){var ime=ame.call(this,rme)||this;return ime.childRef=ime.childRef.bind(ime),ime.getWrappedInstance=ime.getWrappedInstance.bind(ime),ime}return nme.prototype.childRef=function(rme){for(;rme&&rme.getWrappedInstance;)rme=rme.getWrappedInstance();this.ref=rme},nme.prototype.getWrappedInstance=function(){return this.ref},nme.prototype.render=function(){var rme,ime,ome=this.props.locale||this.context||defaultLocale,lme=this.props.translate||makeTranslator(ome),sme={locale:ome,translate:lme};hooks.locale((rme=momentLocaleMap==null?void 0:momentLocaleMap[ome])!==null&&rme!==void 0?rme:ome);var cme=!((ime=x_.prototype)===null||ime===void 0)&&ime.isReactComponent||x_.$$typeof===Symbol.for("react.forward_ref")?{ref:this.childRef}:{forwardedRef:this.childRef},dme=React__default.createElement(x_,__assign$3({},this.props,sme,cme));return this.context?dme:React__default.createElement(LocaleContext.Provider,{value:ome},dme)},nme}(React__default.Component),$P.displayName="I18N(".concat(x_.displayName||x_.name,")"),$P.contextType=LocaleContext,$P.ComposedComponent=x_,$P),x_);return Array.isArray(eme)&&eme.forEach(function(ame){x_.prototype[ame]&&(tme.prototype[ame]=function(){var nme,rme=(nme=this.ref)===null||nme===void 0?void 0:nme[ame];return rme?rme.apply(this.ref,arguments):void 0})}),tme}var RootRenderer=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame;return tme=x_.call(this,$P)||this,tme.store=$P.rootStore.addStore({id:guid$1(),path:tme.props.$path,storeType:RootStore.name,parentId:""}),tme.store.updateContext($P.context),tme.store.initData($P.data),tme.store.updateLocation($P.location,(ame=tme.props.env)===null||ame===void 0?void 0:ame.parseLocation),bulkBindFunctions(tme,["handleAction","handleDialogConfirm","handleDialogClose","handleDrawerConfirm","handleDrawerClose","handlePageVisibilityChange"]),tme.store.init(function(){if(hasAsyncRenderers()){var nme=$P.schema,rme=["tpl","dialog","drawer"];return JSONTraverse$1(nme,function(ime,ome){ome==="type"&&(rme.push(ime),ime==="form"&&rme.push("panel"))}),hasAsyncRenderers(rme)?loadAsyncRenderersByType(rme,!0):void 0}}),tme}return eme.prototype.componentDidMount=function(){if(document.addEventListener("visibilitychange",this.handlePageVisibilityChange),typeof this.props.env.affixOffsetTop<"u"||typeof this.props.env.affixOffsetBottom<"u"){var $P=reactDomExports.findDOMNode(this);$P!=null&&$P.parentElement&&($P.parentElement.style.cssText+="--affix-offset-top: ".concat(this.props.env.affixOffsetTop||0,"px; --affix-offset-bottom: ").concat(this.props.env.affixOffsetBottom||0,"px;"))}},eme.prototype.componentDidUpdate=function($P){var tme,ame=this.props;ame.location!==$P.location&&this.store.updateLocation(ame.location,(tme=this.props.env)===null||tme===void 0?void 0:tme.parseLocation);var nme=!1;ame.context!==$P.context&&(nme=!0,this.store.updateContext(ame.context)),(ame.data!==$P.data||nme)&&this.store.initData(ame.data)},eme.prototype.componentDidCatch=function($P,tme){var ame,nme;(nme=(ame=this.props.env)===null||ame===void 0?void 0:ame.errorCatcher)===null||nme===void 0||nme.call(ame,$P,tme),this.store.setRuntimeError($P,tme)},eme.prototype.componentWillUnmount=function(){this.props.rootStore.removeStore(this.store),document.removeEventListener("visibilitychange",this.handlePageVisibilityChange)},eme.prototype.handlePageVisibilityChange=function(){var $P=this.props.env;document.visibilityState==="hidden"?$P==null||$P.tracker({eventType:"pageHidden"}):document.visibilityState==="visible"&&($P==null||$P.tracker({eventType:"pageVisible"}))},eme.prototype.handleAction=function($P,tme,ame,nme,rme){var ime=this,ome,lme;nme===void 0&&(nme=!1);var sme=this.props,cme=sme.env,dme=sme.messages,ume=sme.onAction,fme=sme.mobileUI,pme=sme.render,hme=this.store;if((ume==null?void 0:ume($P,tme,ame,nme,rme||this.context))!==!1){var bme=rme||this.context;if(tme.actionType==="reload")tme.target&&bme.reload(tme.target,ame);else if(tme.target)tme.target.split(",").forEach(function(Cme){var Sme=bme.getComponentByName(Cme);Sme&&Sme.doAction&&Sme.doAction(__assign$3(__assign$3({},tme),{target:void 0}),ame)});else if(tme.actionType==="url"||tme.actionType==="link"||tme.actionType==="jump"){if(!cme||!cme.jumpTo)throw new Error("env.jumpTo is required!");cme.jumpTo(filter$1(tme.to||tme.url||tme.link,ame,"| raw"),tme,ame)}else if(tme.actionType==="email"){var mme=filter$1(tme.to,ame),vme=mapValues$1(pick$3(tme,"to","cc","bcc","subject","body"),function(Cme){return filter$1(Cme,ame)}),gme=qs$1.stringify(vme),yme="mailto:".concat(mme,"?").concat(gme);window.open(yme)}else{if(tme.actionType==="dialog")return hme.setCurrentAction(tme,this.props.resolveDefinitions),new Promise(function(Cme){hme.openDialog(ame,void 0,function(Sme,Eme){var xme;(xme=tme.callback)===null||xme===void 0||xme.call(tme,Sme,Eme),Cme({confirmed:Sme,value:Eme})},rme||ime.context)});if(tme.actionType==="drawer")return hme.setCurrentAction(tme,this.props.resolveDefinitions),new Promise(function(Cme){hme.openDrawer(ame,void 0,function(Sme,Eme){var xme;(xme=tme.callback)===null||xme===void 0||xme.call(tme,Sme,Eme),Cme({confirmed:Sme,value:Eme})},rme)});if(tme.actionType==="toast")(lme=(ome=tme.toast)===null||ome===void 0?void 0:ome.items)===null||lme===void 0||lme.forEach(function(Cme){cme.notify(Cme.level||"info",Cme.body?pme("body",Cme.body,__assign$3(__assign$3({},ime.props),{data:ame,context:hme.context})):"",__assign$3(__assign$3(__assign$3({},tme.toast),Cme),{title:Cme.title?pme("title",Cme.title,__assign$3(__assign$3({},ime.props),{data:ame,context:hme.context})):null,mobileUI:fme}))});else if(tme.actionType==="ajax")hme.setCurrentAction(tme,this.props.resolveDefinitions),hme.saveRemote(tme.api,ame,{successMessage:tme.messages&&tme.messages.success||dme&&dme.saveSuccess,errorMessage:tme.messages&&tme.messages.failed||dme&&dme.saveSuccess}).then(function(){return __awaiter(ime,void 0,void 0,function(){var Cme;return __generator(this,function(Sme){switch(Sme.label){case 0:return tme.feedback&&isVisible(tme.feedback,hme.data)?[4,this.openFeedback(tme.feedback,hme.data)]:[3,2];case 1:Sme.sent(),Sme.label=2;case 2:return Cme=tme.redirect&&filter$1(tme.redirect,hme.data),Cme&&cme.jumpTo(Cme,tme,hme.data),tme.reload&&this.reloadTarget(rme||this.context,filterTarget(tme.reload,ame),hme.data),[2]}})})}).catch(function(Cme){if(nme||tme.countDown)throw Cme});else if(tme.actionType==="copy"&&(tme.content||tme.copy))cme.copy&&cme.copy(filter$1(tme.content||tme.copy,ame,"| raw"),{format:tme.copyFormat});else if(tme.actionType==="saveAs"){var _me=normalizeApi(tme.api);if(typeof _me.url=="string"){var $me=tme.fileName||"data.txt";!tme.fileName&&_me.url.indexOf(".")!==-1&&($me=_me.url.split("/").pop()),FileSaver_minExports.saveAs(_me.url,$me)}}}}},eme.prototype.handleDialogConfirm=function($P,tme){for(var ame,nme=[],rme=2;rme<arguments.length;rme++)nme[rme-2]=arguments[rme];var ime=this.store;tme.mergeData&&$P.length===1&&$P[0]&&ime.updateData($P[0]);var ome=ime.action.dialog;if(!(ome&&ome.onConfirm&&ome.onConfirm.apply(ome,__spreadArray([$P,tme],__read$3(nme),!1))===!1)){var lme=ime.action,sme=(ame=tme.reload)!==null&&ame!==void 0?ame:lme.reload,cme=ime.getDialogScoped()||this.context;ime.closeDialog(!0,$P),sme&&cme.reload(sme,ime.data)}},eme.prototype.handleDialogClose=function($P){$P===void 0&&($P=!1);var tme=this.store;tme.closeDialog($P)},eme.prototype.handleDrawerConfirm=function($P,tme){for(var ame,nme=[],rme=2;rme<arguments.length;rme++)nme[rme-2]=arguments[rme];var ime=this.store;tme.mergeData&&$P.length===1&&$P[0]&&ime.updateData($P[0]);var ome=ime.action.drawer;if(!(ome&&ome.onConfirm&&ome.onConfirm.apply(ome,__spreadArray([$P,tme],__read$3(nme),!1))===!1)){var lme=ime.action,sme=(ame=tme.reload)!==null&&ame!==void 0?ame:lme.reload,cme=ime.getDrawerScoped()||this.context;ime.closeDrawer(!0,$P),setTimeout(function(){sme&&cme.reload(sme,ime.data)},300)}},eme.prototype.handleDrawerClose=function(){var $P=this.store;$P.closeDrawer(!1)},eme.prototype.openFeedback=function($P,tme){var ame=this;return new Promise(function(nme){var rme=ame.store;rme.setCurrentAction({type:"button",actionType:"dialog",dialog:$P},ame.props.resolveDefinitions),rme.openDialog(tme,void 0,function(ime){nme(ime)},ame.context)})},eme.prototype.reloadTarget=function($P,tme,ame){$P.reload(tme,ame)},eme.prototype.renderRuntimeError=function(){var $P,tme=this.props,ame=tme.render,nme=__rest$14(tme,["render"]),rme=this.store;return ame("error",{type:"alert",level:"danger"},__assign$3(__assign$3({},nme),{topStore:rme,body:React__default.createElement(React__default.Fragment,null,React__default.createElement("h3",null,($P=rme.runtimeError)===null||$P===void 0?void 0:$P.toString()),React__default.createElement("pre",null,React__default.createElement("code",null,rme.runtimeErrorStack.componentStack)))}))},eme.prototype.renderSpinner=function(){var $P=this.props,tme=$P.render,ame=__rest$14($P,["render"]),nme=this.store;return tme("spinner",{type:"spinner"},__assign$3(__assign$3({},ame),{topStore:nme,show:nme.loading}))},eme.prototype.renderError=function(){var $P=this.props,tme=$P.render,ame=__rest$14($P,["render"]),nme=this.store;return nme.error?tme("error",{type:"alert"},__assign$3(__assign$3({},ame),{topStore:this.store,body:nme.msg,showCloseButton:!0,onClose:nme.clearMessage})):null},eme.prototype.renderDialog=function(){var $P=this.props,tme=$P.render,ame=__rest$14($P,["render"]),nme=this.store;return tme("dialog",__assign$3(__assign$3({},nme.action&&nme.action.dialog),{type:"dialog"}),__assign$3(__assign$3({},ame),{key:"dialog",topStore:this.store,data:nme.dialogData,context:nme.context,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:nme.dialogOpen,onAction:this.handleAction}))},eme.prototype.renderDrawer=function(){var $P=this.props,tme=$P.render,ame=__rest$14($P,["render"]),nme=this.store;return tme("drawer",__assign$3(__assign$3({},nme.action&&nme.action.drawer),{type:"drawer"}),__assign$3(__assign$3({},ame),{key:"drawer",topStore:this.store,data:nme.drawerData,context:nme.context,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:nme.drawerOpen,onAction:this.handleAction}))},eme.prototype.render=function(){var $P=this.props,tme=$P.pathPrefix,ame=$P.schema,nme=$P.render,rme=__rest$14($P,["pathPrefix","schema","render"]),ime=this.store;return ime.runtimeError?this.renderRuntimeError():ime.ready?React__default.createElement(React__default.Fragment,null,nme(tme,ame,__assign$3(__assign$3({},rme),{topStore:this.store,data:this.store.downStream,context:ime.context,onAction:this.handleAction})),this.renderSpinner(),this.renderError(),this.renderDialog(),this.renderDrawer()):React__default.createElement(themedLazyComponent,{className:"RootLoader"})},eme.contextType=ScopedContext,eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme),eme}(React__default.Component),SetCache$2=_SetCache,arrayIncludes$1=_arrayIncludes,arrayIncludesWith$1=_arrayIncludesWith,arrayMap$6=_arrayMap,baseUnary$2=_baseUnary,cacheHas$2=_cacheHas,LARGE_ARRAY_SIZE$1=200;function baseDifference$2(x_,eme,$P,tme){var ame=-1,nme=arrayIncludes$1,rme=!0,ime=x_.length,ome=[],lme=eme.length;if(!ime)return ome;$P&&(eme=arrayMap$6(eme,baseUnary$2($P))),tme?(nme=arrayIncludesWith$1,rme=!1):eme.length>=LARGE_ARRAY_SIZE$1&&(nme=cacheHas$2,rme=!1,eme=new SetCache$2(eme));e:for(;++ame<ime;){var sme=x_[ame],cme=$P==null?sme:$P(sme);if(sme=tme||sme!==0?sme:0,rme&&cme===cme){for(var dme=lme;dme--;)if(eme[dme]===cme)continue e;ome.push(sme)}else nme(eme,cme,tme)||ome.push(sme)}return ome}var _baseDifference=baseDifference$2,baseDifference$1=_baseDifference,baseFlatten$3=_baseFlatten,baseRest$6=_baseRest,isArrayLikeObject$4=isArrayLikeObject_1,difference=baseRest$6(function(x_,eme){return isArrayLikeObject$4(x_)?baseDifference$1(x_,baseFlatten$3(eme,1,isArrayLikeObject$4,!0)):[]}),difference_1=difference;const difference$1=getDefaultExportFromCjs(difference_1);function hasClass(x_,eme){return x_.classList?!!eme&&x_.classList.contains(eme):(" "+(x_.className.baseVal||x_.className)+" ").indexOf(" "+eme+" ")!==-1}function addClass(x_,eme){x_.classList?x_.classList.add(eme):hasClass(x_,eme)||(typeof x_.className=="string"?x_.className=x_.className+" "+eme:x_.setAttribute("class",(x_.className&&x_.className.baseVal||"")+" "+eme))}function replaceClassName(x_,eme){return x_.replace(new RegExp("(^|\\s)"+eme+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(x_,eme){x_.classList?x_.classList.remove(eme):typeof x_.className=="string"?x_.className=replaceClassName(x_.className,eme):x_.setAttribute("class",replaceClassName(x_.className&&x_.className.baseVal||"",eme))}const config$1={disabled:!1},TransitionGroupContext=React__default.createContext(null);var UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(x_){_inheritsLoose(eme,x_);function eme(tme,ame){var nme;nme=x_.call(this,tme,ame)||this;var rme=ame,ime=rme&&!rme.isMounting?tme.enter:tme.appear,ome;return nme.appearStatus=null,tme.in?ime?(ome=EXITED,nme.appearStatus=ENTERING):ome=ENTERED:tme.unmountOnExit||tme.mountOnEnter?ome=UNMOUNTED:ome=EXITED,nme.state={status:ome},nme.nextCallback=null,nme}eme.getDerivedStateFromProps=function(ame,nme){var rme=ame.in;return rme&&nme.status===UNMOUNTED?{status:EXITED}:null};var $P=eme.prototype;return $P.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},$P.componentDidUpdate=function(ame){var nme=null;if(ame!==this.props){var rme=this.state.status;this.props.in?rme!==ENTERING&&rme!==ENTERED&&(nme=ENTERING):(rme===ENTERING||rme===ENTERED)&&(nme=EXITING)}this.updateStatus(!1,nme)},$P.componentWillUnmount=function(){this.cancelNextCallback()},$P.getTimeouts=function(){var ame=this.props.timeout,nme,rme,ime;return nme=rme=ime=ame,ame!=null&&typeof ame!="number"&&(nme=ame.exit,rme=ame.enter,ime=ame.appear!==void 0?ame.appear:rme),{exit:nme,enter:rme,appear:ime}},$P.updateStatus=function(ame,nme){ame===void 0&&(ame=!1),nme!==null?(this.cancelNextCallback(),nme===ENTERING?this.performEnter(ame):this.performExit()):this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},$P.performEnter=function(ame){var nme=this,rme=this.props.enter,ime=this.context?this.context.isMounting:ame,ome=this.props.nodeRef?[ime]:[ReactDOM.findDOMNode(this),ime],lme=ome[0],sme=ome[1],cme=this.getTimeouts(),dme=ime?cme.appear:cme.enter;if(!ame&&!rme||config$1.disabled){this.safeSetState({status:ENTERED},function(){nme.props.onEntered(lme)});return}this.props.onEnter(lme,sme),this.safeSetState({status:ENTERING},function(){nme.props.onEntering(lme,sme),nme.onTransitionEnd(dme,function(){nme.safeSetState({status:ENTERED},function(){nme.props.onEntered(lme,sme)})})})},$P.performExit=function(){var ame=this,nme=this.props.exit,rme=this.getTimeouts(),ime=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!nme||config$1.disabled){this.safeSetState({status:EXITED},function(){ame.props.onExited(ime)});return}this.props.onExit(ime),this.safeSetState({status:EXITING},function(){ame.props.onExiting(ime),ame.onTransitionEnd(rme.exit,function(){ame.safeSetState({status:EXITED},function(){ame.props.onExited(ime)})})})},$P.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},$P.safeSetState=function(ame,nme){nme=this.setNextCallback(nme),this.setState(ame,nme)},$P.setNextCallback=function(ame){var nme=this,rme=!0;return this.nextCallback=function(ime){rme&&(rme=!1,nme.nextCallback=null,ame(ime))},this.nextCallback.cancel=function(){rme=!1},this.nextCallback},$P.onTransitionEnd=function(ame,nme){this.setNextCallback(nme);var rme=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),ime=ame==null&&!this.props.addEndListener;if(!rme||ime){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var ome=this.props.nodeRef?[this.nextCallback]:[rme,this.nextCallback],lme=ome[0],sme=ome[1];this.props.addEndListener(lme,sme)}ame!=null&&setTimeout(this.nextCallback,ame)},$P.render=function(){var ame=this.state.status;if(ame===UNMOUNTED)return null;var nme=this.props,rme=nme.children;nme.in,nme.mountOnEnter,nme.unmountOnExit,nme.appear,nme.enter,nme.exit,nme.timeout,nme.addEndListener,nme.onEnter,nme.onEntering,nme.onEntered,nme.onExit,nme.onExiting,nme.onExited,nme.nodeRef;var ime=_objectWithoutPropertiesLoose$3(nme,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React__default.createElement(TransitionGroupContext.Provider,{value:null},typeof rme=="function"?rme(ame,ime):React__default.cloneElement(React__default.Children.only(rme),ime))},eme}(React__default.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$6(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$6,onEntering:noop$6,onEntered:noop$6,onExit:noop$6,onExiting:noop$6,onExited:noop$6};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function(eme,$P){return eme&&$P&&$P.split(" ").forEach(function(tme){return addClass(eme,tme)})},removeClass=function(eme,$P){return eme&&$P&&$P.split(" ").forEach(function(tme){return removeClass$1(eme,tme)})},CSSTransition=function(x_){_inheritsLoose(eme,x_);function eme(){for(var tme,ame=arguments.length,nme=new Array(ame),rme=0;rme<ame;rme++)nme[rme]=arguments[rme];return tme=x_.call.apply(x_,[this].concat(nme))||this,tme.appliedClasses={appear:{},enter:{},exit:{}},tme.onEnter=function(ime,ome){var lme=tme.resolveArguments(ime,ome),sme=lme[0],cme=lme[1];tme.removeClasses(sme,"exit"),tme.addClass(sme,cme?"appear":"enter","base"),tme.props.onEnter&&tme.props.onEnter(ime,ome)},tme.onEntering=function(ime,ome){var lme=tme.resolveArguments(ime,ome),sme=lme[0],cme=lme[1],dme=cme?"appear":"enter";tme.addClass(sme,dme,"active"),tme.props.onEntering&&tme.props.onEntering(ime,ome)},tme.onEntered=function(ime,ome){var lme=tme.resolveArguments(ime,ome),sme=lme[0],cme=lme[1],dme=cme?"appear":"enter";tme.removeClasses(sme,dme),tme.addClass(sme,dme,"done"),tme.props.onEntered&&tme.props.onEntered(ime,ome)},tme.onExit=function(ime){var ome=tme.resolveArguments(ime),lme=ome[0];tme.removeClasses(lme,"appear"),tme.removeClasses(lme,"enter"),tme.addClass(lme,"exit","base"),tme.props.onExit&&tme.props.onExit(ime)},tme.onExiting=function(ime){var ome=tme.resolveArguments(ime),lme=ome[0];tme.addClass(lme,"exit","active"),tme.props.onExiting&&tme.props.onExiting(ime)},tme.onExited=function(ime){var ome=tme.resolveArguments(ime),lme=ome[0];tme.removeClasses(lme,"exit"),tme.addClass(lme,"exit","done"),tme.props.onExited&&tme.props.onExited(ime)},tme.resolveArguments=function(ime,ome){return tme.props.nodeRef?[tme.props.nodeRef.current,ime]:[ime,ome]},tme.getClassNames=function(ime){var ome=tme.props.classNames,lme=typeof ome=="string",sme=lme&&ome?ome+"-":"",cme=lme?""+sme+ime:ome[ime],dme=lme?cme+"-active":ome[ime+"Active"],ume=lme?cme+"-done":ome[ime+"Done"];return{baseClassName:cme,activeClassName:dme,doneClassName:ume}},tme}var $P=eme.prototype;return $P.addClass=function(ame,nme,rme){var ime=this.getClassNames(nme)[rme+"ClassName"],ome=this.getClassNames("enter"),lme=ome.doneClassName;nme==="appear"&&rme==="done"&&lme&&(ime+=" "+lme),rme==="active"&&ame&&ame.scrollTop,ime&&(this.appliedClasses[nme][rme]=ime,_addClass(ame,ime))},$P.removeClasses=function(ame,nme){var rme=this.appliedClasses[nme],ime=rme.base,ome=rme.active,lme=rme.done;this.appliedClasses[nme]={},ime&&removeClass(ame,ime),ome&&removeClass(ame,ome),lme&&removeClass(ame,lme)},$P.render=function(){var ame=this.props;ame.classNames;var nme=_objectWithoutPropertiesLoose$3(ame,["classNames"]);return React__default.createElement(Transition,_extends$4C({},nme,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},eme}(React__default.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};var RENDERER_TRANSMISSION_OMIT_PROPS=["type","name","$ref","className","style","data","originData","children","ref","visible","loading","visibleOn","hidden","hiddenOn","disabled","disabledOn","static","staticOn","component","detectField","defaultValue","defaultData","required","requiredOn","syncSuperStore","mode","body","id","inputOnly","label","renderLabel","trackExpression","editorSetting","updatePristineAfterStoreDataReInit","source"],componentCache=new SimpleMap,SchemaRenderer=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame;tme=x_.call(this,$P)||this,tme.rendererKey="",tme.animationTimeout={},tme.animationClassNames={},tme.toDispose=[],tme.unbindEvent=void 0,tme.unbindGlobalEvent=void 0,tme.isStatic=void 0;var nme=(ame=$P==null?void 0:$P.schema)===null||ame===void 0?void 0:ame.animations;if(nme){var rme=$P==null?void 0:$P.schema.id;rme=formateId(rme),nme.enter&&(tme.animationTimeout.enter=((nme.enter.duration||1)+(nme.enter.delay||0))*1e3,tme.animationClassNames.enter="".concat(nme.enter.type,"-").concat(rme,"-enter"),tme.animationClassNames.appear=tme.animationClassNames.enter),nme.exit&&(tme.animationTimeout.exit=((nme.exit.duration||1)+(nme.exit.delay||0))*1e3,tme.animationClassNames.exit="".concat(nme.exit.type,"-").concat(rme,"-exit"))}return tme.refFn=tme.refFn.bind(tme),tme.renderChild=tme.renderChild.bind(tme),tme.reRender=tme.reRender.bind(tme),tme.resolveRenderer(tme.props),tme.dispatchEvent=tme.dispatchEvent.bind(tme),tme.addAnimationAttention=tme.addAnimationAttention.bind(tme),tme.removeAnimationAttention=tme.removeAnimationAttention.bind(tme),tme.toDispose.push(reaction(function(){var ime,ome,lme,sme=filter$1($P.schema.id,$P.data),cme=filter$1($P.schema.name,$P.data);return"".concat((ime=$P.statusStore.visibleState[sme])!==null&&ime!==void 0?ime:$P.statusStore.visibleState[cme]).concat((ome=$P.statusStore.disableState[sme])!==null&&ome!==void 0?ome:$P.statusStore.disableState[cme]).concat((lme=$P.statusStore.staticState[sme])!==null&&lme!==void 0?lme:$P.statusStore.staticState[cme])},function(){return tme.forceUpdate()})),tme}return eme.prototype.componentDidMount=function(){if(this.props.schema.animations){var $P=this.props.schema,tme=$P.animations,ame=$P.id;ame=formateId(ame),createAnimationStyle(ame,tme)}},eme.prototype.componentWillUnmount=function(){var $P,tme;this.toDispose.forEach(function(ame){return ame()}),this.toDispose=[],($P=this.unbindEvent)===null||$P===void 0||$P.call(this),(tme=this.unbindGlobalEvent)===null||tme===void 0||tme.call(this),this.removeAnimationStyle()},eme.prototype.shouldComponentUpdate=function($P){var tme=this.props,ame=difference$1(Object.keys($P),["schema","scope"]);if(difference$1(Object.keys(tme),["schema","scope"]).length!==ame.length||anyChanged$1(ame,this.props,$P))return!0;var nme=Object.keys($P.schema);return!!(Object.keys(tme.schema).length!==nme.length||anyChanged$1(nme,tme.schema,$P.schema))},eme.prototype.removeAnimationStyle=function(){if(this.props.schema.animations){var $P=this.props.schema.id;$P=formateId($P),styleManager.removeStyles($P)}},eme.prototype.resolveRenderer=function($P,tme){tme===void 0&&(tme=!1);var ame=$P.schema,nme=$P.$path;if(ame&&ame.$ref&&(ame=__assign$3(__assign$3({},$P.resolveDefinitions(ame.$ref)),ame),nme=nme.replace(/(?!.*\/).*/,ame.type)),ame!=null&&ame.type&&(tme||!this.renderer||this.rendererKey!=="".concat(ame.type,"-").concat(ame.$$id))){var rme=$P.env.rendererResolver||resolveRenderer;this.renderer=rme(nme,ame,$P),this.rendererKey="".concat(ame.type,"-").concat(ame.$$id)}else if(ame.children&&!ame.component&&ame.asFormItem&&(ame.component=PlaceholderComponent,ame.renderChildren=ame.children,delete ame.children),ame.component&&!ame.component.wrapedAsFormItem&&ame.asFormItem){var ime=componentCache.get(ame.component);if(ime)ame.component=ime;else{var ome=asFormItem(__assign$3({strictMode:!1},ame.asFormItem))(ame.component);componentCache.set(ame.component,ome),ome.wrapedAsFormItem=!0,ame.component=ome}}return{path:nme,schema:ame}},eme.prototype.getWrappedInstance=function(){return this.cRef},eme.prototype.refFn=function($P){this.ref=$P},eme.prototype.childRef=function($P){for(var tme=this,ame,nme,rme;!((ame=$P==null?void 0:$P.getWrappedInstance)===null||ame===void 0)&&ame.call($P);)$P=$P.getWrappedInstance();$P&&!$P.props&&Object.defineProperty($P,"props",{get:function(){return tme.props}}),$P&&((nme=this.unbindEvent)===null||nme===void 0||nme.call(this),(rme=this.unbindGlobalEvent)===null||rme===void 0||rme.call(this),this.unbindEvent=bindEvent($P),this.unbindGlobalEvent=bindGlobalEventForRenderer($P)),this.cRef=$P},eme.prototype.dispatchEvent=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(nme){switch(nme.label){case 0:return[4,dispatchEvent$2($P,this.cRef||ame,this.context,tme)];case 1:return[2,nme.sent()]}})})},eme.prototype.renderChild=function($P,tme,ame){var nme,rme,ime,ome;ame===void 0&&(ame={});var lme=this.props,sme=lme.schema;lme.$path;var cme=lme.env,dme=lme.render,ume=__rest$14(lme,["schema","$path","env","render"]),fme=this.resolveRenderer(this.props).path,pme=RENDERER_TRANSMISSION_OMIT_PROPS.concat();if(this.renderer){var hme=this.renderer.component;hme!=null&&hme.propsList&&pme.push.apply(pme,hme.propsList)}return dme("".concat(fme).concat($P?"/".concat($P):""),tme||"",__assign$3(__assign$3(__assign$3(__assign$3({},omit$1(ume,pme)),{defaultStatic:(ime=(rme=!((nme=this.renderer)===null||nme===void 0)&&nme.type&&["drawer","dialog"].includes(this.renderer.type)?!1:void 0)!==null&&rme!==void 0?rme:this.isStatic)!==null&&ime!==void 0?ime:sme.staticOn?evalExpression(sme.staticOn,ume.data):(ome=sme.static)!==null&&ome!==void 0?ome:ume.defaultStatic}),ame),{data:ame.data||ume.data,env:cme}))},eme.prototype.reRender=function(){this.resolveRenderer(this.props,!0),this.forceUpdate()},eme.prototype.addAnimationAttention=function($P){var tme=(this.props||{}).schema,ame=((tme==null?void 0:tme.animations)||{}).attention;if(ame){var nme=tme.id;nme=formateId(nme),$P.classList.add("".concat(ame.type,"-").concat(nme,"-attention"))}},eme.prototype.removeAnimationAttention=function($P){var tme=(this.props||{}).schema,ame=((tme==null?void 0:tme.animations)||{}).attention;if(ame){var nme=tme.id;nme=formateId(nme),$P.classList.remove("".concat(ame.type,"-").concat(nme,"-attention"))}},eme.prototype.render=function(){var $P,tme,ame=this,nme,rme,ime,ome,lme,sme,cme,dme=this.props;dme.$path;var ume=dme.schema,fme=dme.rootStore,pme=dme.statusStore,hme=dme.render,bme=dme.key,mme=__rest$14(dme,["$path","schema","rootStore","statusStore","render","key"]);if(ume==null)return null;var vme=this.resolveRenderer(this.props),gme=vme.path,yme=vme.schema,_me=this.props.env.theme;if(Array.isArray(yme))return hme(gme,yme,mme);var $me=yme&&(yme.detectField==="&"?mme:mme[yme.detectField||"data"]),Cme=$me?getExprProperties(yme,$me,void 0,mme):{},Sme=filter$1(yme.id,mme.data),Eme=filter$1(yme.name,mme.data),xme=isAlive(pme)?(nme=pme.visibleState[Sme])!==null&&nme!==void 0?nme:pme.visibleState[Eme]:void 0,Tme=isAlive(pme)?(rme=pme.disableState[Sme])!==null&&rme!==void 0?rme:pme.disableState[Eme]:void 0,Ome=isAlive(pme)?(ime=pme.staticState[Sme])!==null&&ime!==void 0?ime:pme.staticState[Eme]:void 0;if(this.isStatic=Ome,(xme===!1||xme!==!0&&Cme&&(Cme.hidden||Cme.visible===!1||yme.hidden||yme.visible===!1||mme.hidden||mme.visible===!1))&&(mme.invisible=!0),yme.children)return mme.invisible?null:React__default.isValidElement(yme.children)?yme.children:typeof yme.children!="function"?null:yme.children(__assign$3(__assign$3(__assign$3({},mme),Cme),{$path:gme,$schema:yme,render:this.renderChild,forwardedRef:this.refFn,rootStore:fme,statusStore:pme,dispatchEvent:this.dispatchEvent}));if(yme.component&&reactIsExports.isValidElementType(yme.component)){var Rme=!(yme.component.prototype instanceof React__default.Component),Nme=yme.data,Ime=yme.value,Pme=yme.activeKey,Mme=__rest$14(yme,["data","value","activeKey"]);return mme.invisible?null:React__default.createElement(yme.component,__assign$3(__assign$3(__assign$3(__assign$3({},mme),Mme),Cme),{defaultData:Nme,defaultValue:Ime,defaultActiveKey:Pme,propKey:bme,$path:gme,$schema:yme,ref:Rme?void 0:this.refFn,forwardedRef:Rme?this.refFn:void 0,render:this.renderChild,rootStore:fme,statusStore:pme,dispatchEvent:this.dispatchEvent}))}else{if(Object.keys(yme).length===0)return null;if(this.renderer){if(this.renderer.getComponent&&!this.renderer.component)return mme.invisible?null:React__default.createElement(themedLazyComponent,{defaultVisible:!0,getComponent:function(){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(Xme){switch(Xme.label){case 0:return[4,loadAsyncRenderer(this.renderer)];case 1:return Xme.sent(),this.reRender(),[2,function(){return null}]}})})}})}else return mme.invisible?null:React__default.createElement(themedLazyComponent,{defaultVisible:!0,getComponent:function(){return __awaiter(ame,void 0,void 0,function(){var Xme;return __generator(this,function(Kme){switch(Kme.label){case 0:return[4,mme.env.loadRenderer(yme,gme,this.reRender)];case 1:return Xme=Kme.sent(),Xme&&typeof Xme=="function"?[2,Xme]:Xme&&React__default.isValidElement(Xme)?[2,function(){return Xme}]:(this.reRender(),[2,function(){return loadRendererError(yme,gme)}])}})})}})}var kme=this.renderer;yme=filterSchema(yme,kme,mme);var Bme=yme.data,Dme=yme.value,jme=yme.activeKey,Vme=__rest$14(yme,["data","value","activeKey"]),Wme=kme.component,Lme=!0;if(mme.invisible&&(Cme.hidden||Cme.visible===!1||!kme.isFormItem||yme.visible!==!1&&!yme.hidden))if(yme.animations)Lme=!1;else return null;kme.storeType&&(Cme={});var zme=((ome=Wme.prototype)===null||ome===void 0?void 0:ome.isReactComponent)||Wme.$$typeof===Symbol.for("react.forward_ref"),Ume=__assign$3(__assign$3(__assign$3(__assign$3(__assign$3(__assign$3({},(lme=kme.defaultProps)===null||lme===void 0?void 0:lme.call(kme,yme.type,yme)),_me.getRendererConfig(kme.name)),Vme),chainEvents(mme,Vme)),Cme),{defaultData:(sme=Vme.defaultData)!==null&&sme!==void 0?sme:Bme,defaultValue:(cme=Vme.defaultValue)!==null&&cme!==void 0?cme:Dme,defaultActiveKey:jme,propKey:bme,$path:gme,$schema:yme,render:this.renderChild,rootStore:fme,statusStore:pme,dispatchEvent:this.dispatchEvent,mobileUI:yme.useMobileUI===!1?!1:mme.mobileUI});if(yme.style&&(Ume.style=buildStyle(yme.style,$me)),Tme!==void 0&&(Ume.disabled=Tme),Ome!==void 0&&(Ume.static=Ome),mme.env.enableTestid&&(Ume.testid||Ume.id||Ume.testIdBuilder==null)&&(Ume.testIdBuilder instanceof TestIdBuilder||(Ume.testIdBuilder=new TestIdBuilder(Ume.testid||Ume.id))),kme.autoVar)try{for(var Gme=__values$1(Object.keys(yme)),Jme=Gme.next();!Jme.done;Jme=Gme.next()){var Yme=Jme.value;typeof Ume[Yme]=="string"&&isExpression(Ume[Yme])&&(Ume[Yme]=resolveVariableAndFilter(Ume[Yme],Ume.data,"| raw"))}}catch(Xme){$P={error:Xme}}finally{try{Jme&&!Jme.done&&(tme=Gme.return)&&tme.call(Gme)}finally{if($P)throw $P.error}}var Qme=zme?React__default.createElement(Wme,__assign$3({},Ume,{ref:this.childRef})):React__default.createElement(Wme,__assign$3({},Ume,{forwardedRef:this.childRef}));return yme.animations&&(Qme=React__default.createElement(CSSTransition,{in:Lme,timeout:this.animationTimeout,classNames:this.animationClassNames,onEntered:this.addAnimationAttention,onExit:this.removeAnimationAttention,appear:!0,unmountOnExit:!0},Qme)),this.props.env.enableAMISDebug?React__default.createElement(DebugWrapper,{renderer:kme},Qme):Qme},eme.displayName="Renderer",eme.contextType=ScopedContext,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"childRef",null),eme}(React__default.Component),PlaceholderComponent=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.childRef=React__default.createRef(),$P}return eme.prototype.getWrappedInstance=function(){return this.childRef.current},eme.prototype.render=function(){var $P=this.props,tme=$P.renderChildren,ame=__rest$14($P,["renderChildren"]);return typeof tme=="function"?tme(__assign$3(__assign$3({},ame),{ref:this.childRef})):null},eme}(React__default.Component),StatusStore=types.model("StatusStore",{visibleState:types.optional(types.frozen(),{}),disableState:types.optional(types.frozen(),{}),staticState:types.optional(types.frozen(),{})}).actions(function(x_){return{setVisible:function(eme,$P){var tme,ame=__assign$3(__assign$3({},x_.visibleState),(tme={},tme[eme]=$P,tme));x_.visibleState=ame},setDisable:function(eme,$P){var tme,ame=__assign$3(__assign$3({},x_.disableState),(tme={},tme[eme]=$P,tme));x_.disableState=ame},setStatic:function(eme,$P){var tme,ame=__assign$3(__assign$3({},x_.staticState),(tme={},tme[eme]=$P,tme));x_.staticState=ame},resetAll:function(){x_.visibleState={},x_.disableState={},x_.staticState={}}}});function StatusScopedWrapper(x_){var eme=x_.children,$P=React__default.useMemo(function(){return StatusStore.create({})},[]);return React__default.useEffect(function(){return function(){destroy($P)}},[]),eme({statusStore:$P})}function StatusScoped(x_){var eme=function($P,tme){return React__default.createElement(StatusScopedWrapper,null,function(ame){var nme=ame.statusStore;return React__default.createElement(x_,__assign$3({},$P,{statusStore:nme,ref:tme}))})};return React__default.forwardRef(eme)}var rootWrappers=[];function addRootWrapper(x_){rootWrappers.push(x_)}var Root=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.resolveDefinitions=function($P){var tme=this.props.schema.definitions;return!$P||isEmpty$2(tme)?{}:tme&&tme[$P]},eme.prototype.render=function(){var $P=this.props,tme=$P.schema,ame=$P.rootStore,nme=$P.env,rme=$P.pathPrefix,ime=$P.location,ome=$P.data,lme=$P.context,sme=$P.locale,cme=$P.translate,dme=__rest$14($P,["schema","rootStore","env","pathPrefix","location","data","context","locale","translate"]),ume=nme.theme,fme=this.props.theme||"cxd";return fme==="default"&&(fme="cxd"),React__default.createElement(RootStoreContext.Provider,{value:ame},React__default.createElement(ThemeContext.Provider,{value:fme},React__default.createElement(LocaleContext.Provider,{value:this.props.locale},rootWrappers.reduce(function(pme,hme){return __assign$3(__assign$3({},pme),{children:hme(pme)})},__assign$3(__assign$3({pathPrefix:rme||"",schema:isPlainObject$b(tme)?__assign$3({type:"page"},tme):tme},dme),{render:renderChild,rootStore:ame,resolveDefinitions:this.resolveDefinitions,location:ime,data:ome,env:nme,classnames:ume.classnames,classPrefix:ume.classPrefix,locale:sme,translate:cme,children:React__default.createElement(RootRenderer,__assign$3({pathPrefix:rme||"",schema:isPlainObject$b(tme)?__assign$3({type:"page"},tme):tme},dme,{render:renderChild,rootStore:ame,resolveDefinitions:this.resolveDefinitions,location:ime,data:ome,context:lme,env:nme,classnames:ume.classnames,classPrefix:ume.classPrefix,locale:sme,translate:cme}))})).children)))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"resolveDefinitions",null),eme}(React__default.Component);function renderChildren(x_,eme,$P){if(Array.isArray(eme)){var tme=$P.key||$P.propKey||$P.id||"";return eme.map(function(ame,nme){return renderChild("".concat(x_,"/").concat(nme),ame,__assign$3(__assign$3({},$P),{key:"".concat(tme?"".concat(tme,"-"):"").concat(nme)}))})}return renderChild(x_,eme,$P)}function renderChild(x_,eme,$P){var tme;if(Array.isArray(eme))return renderChildren(x_,eme,$P);var ame=typeof eme;if(ame==="undefined"||eme===null)return null;if(React__default.isValidElement(eme))return eme;var nme=ame==="string"||ame==="number"?{type:"tpl",tpl:String(eme)}:eme,rme=$P.propsTransform;rme&&($P=__assign$3({},$P),delete $P.propsTransform,$P=rme($P));var ime=$P.env.SchemaRenderer||SchemaRenderer;return["dialog","drawer"].includes(nme==null?void 0:nme.type)&&!(nme!=null&&nme.component)&&!(nme!=null&&nme.children)?React__default.createElement(StatusScopedWrapper,null,function(ome){var lme,sme=ome.statusStore;return React__default.createElement(ime,__assign$3({render:renderChild},$P,{key:(lme=$P.key)!==null&&lme!==void 0?lme:nme.key,schema:nme,propKey:nme.key,$path:"".concat(x_?"".concat(x_,"/"):"").concat(nme&&nme.type||""),statusStore:sme}))}):React__default.createElement(ime,__assign$3({render:renderChild},$P,{key:(tme=$P.key)!==null&&tme!==void 0?tme:nme.key,schema:nme,propKey:nme.key,$path:"".concat(x_?"".concat(x_,"/"):"").concat(nme&&nme.type||"")}))}var ScopedRootRenderer=StatusScoped(HocScoped(Root)),ErrorBoundary=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={hasError:!1},tme}return eme.prototype.componentDidCatch=function($P,tme){var ame=this.props.customErrorMsg;ame&&console.warn(ame),console.warn("错误对象：",$P),console.warn("错误信息：",tme),this.setState({hasError:!0})},eme.prototype.render=function(){var $P=this.props.fallback;return this.state.hasError?$P?$P():React__default.createElement("div",{className:"renderer-error-boundary"},"渲染发生错误，详细错误信息请查看控制台输出。"):this.props.children},eme}(React__default.Component);/** @license amis v@version
 *
 * Copyright Baidu
 *
 * This source code is licensed under the Apache license found in the
 * LICENSE file in the root directory of this source tree.
 */getClassPrefix();window.amisVersionInfo={version:"6.10.0",buildTime:"2024-12-02T05:47:11.804Z"};function render$2(x_,eme,$P,tme){return eme===void 0&&(eme={}),$P===void 0&&($P={}),tme===void 0&&(tme=""),React__default.createElement(AMISRenderer,__assign$3({},eme,{schema:x_,pathPrefix:tme,options:$P}))}function AMISRenderer(x_){var eme=x_.schema,$P=x_.options,tme=x_.pathPrefix,ame=__rest$14(x_,["schema","options","pathPrefix"]),nme=ame.locale||getDefaultLocale();nme=nme==="en"?"en-US":nme==="zh"||nme==="cn"?"zh-CN":nme.replace("_","-");var rme=React__default.useCallback(function(){var sme=ame.translate||makeTranslator(nme);return sme.apply(null,arguments)},[nme,ame.translate]),ime=React__default.useMemo(function(){var sme=stores[$P.session||"global"];if(!sme)$P=__assign$3(__assign$3(__assign$3({},defaultOptions$1),$P),{fetcher:$P.fetcher?wrapFetcher($P.fetcher,$P.tracker):defaultOptions$1.fetcher,confirm:promisify($P.confirm||defaultOptions$1.confirm||window.confirm),locale:nme,translate:rme}),sme=RendererStore.create({},$P),stores[$P.session||"global"]=sme;else{var cme=getEnv(sme);Object.assign(cme,__assign$3(__assign$3({},$P),{fetcher:$P.fetcher?wrapFetcher($P.fetcher,$P.tracker):cme.fetcher,confirm:$P.confirm?promisify($P.confirm):cme.confirm,locale:nme,translate:rme}))}return window.amisStore=sme,sme},Object.keys($P).concat(Object.values($P)).concat(nme)),ome=getEnv(ime),lme=ame.theme||$P.theme||"cxd";return lme==="default"&&(lme="cxd"),ome.theme=getTheme(lme),React__default.useEffect(function(){return ome.enableAMISDebug?enableDebug():disableDebug(),function(){return ome.enableAMISDebug||disableDebug()}},[ome.enableAMISDebug]),ame.locale!==void 0&&(ome.translate=rme,ome.locale=nme),$P.useMobileUI!==!1&&(ame.mobileUI=ome.isMobile()),eme=React__default.useMemo(function(){return eme=envOverwrite(eme,nme),eme=replaceText(eme,$P.replaceText,ome.replaceTextIgnoreKeys),eme},[eme,nme,$P.replaceText]),React__default.createElement(EnvContext.Provider,{value:ome},React__default.createElement(ScopedRootRenderer,__assign$3({},ame,{schema:eme,pathPrefix:tme,rootStore:ime,env:ome,theme:lme,locale:nme,translate:rme})))}var NotFound=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.links,ame=$P.footerText,nme=$P.description,rme=$P.children,ime=$P.code;return React__default.createElement("div",{className:"container w-xxl w-auto-xs m-auto"},React__default.createElement("div",{className:"text-center m-b-lg"},React__default.createElement("h1",{className:"text-shadow text-white"},ime||"404"),nme?React__default.createElement("div",{className:"text-danger"},nme):null),rme,tme?React__default.createElement("div",{className:"list-group bg-info auto m-b-sm m-b-lg"},tme):null,ame?React__default.createElement("div",{className:"text-center"},React__default.createElement("p",null,React__default.createElement("small",{className:"text-muted"},ame))):null)},eme}(React__default.Component),_404=themeable(NotFound),keycode$1={exports:{}};(function(x_,eme){function $P(ome){if(ome&&typeof ome=="object"){var lme=ome.which||ome.keyCode||ome.charCode;lme&&(ome=lme)}if(typeof ome=="number")return rme[ome];var sme=String(ome),cme=tme[sme.toLowerCase()];if(cme)return cme;var cme=ame[sme.toLowerCase()];if(cme)return cme;if(sme.length===1)return sme.charCodeAt(0)}$P.isEventKey=function(lme,sme){if(lme&&typeof lme=="object"){var cme=lme.which||lme.keyCode||lme.charCode;if(cme==null)return!1;if(typeof sme=="string"){var dme=tme[sme.toLowerCase()];if(dme)return dme===cme;var dme=ame[sme.toLowerCase()];if(dme)return dme===cme}else if(typeof sme=="number")return sme===cme;return!1}},eme=x_.exports=$P;var tme=eme.code=eme.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},ame=eme.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
 * Programatically add the following
 */for(nme=97;nme<123;nme++)tme[String.fromCharCode(nme)]=nme-32;for(var nme=48;nme<58;nme++)tme[nme-48]=nme;for(nme=1;nme<13;nme++)tme["f"+nme]=nme+111;for(nme=0;nme<10;nme++)tme["numpad "+nme]=nme+96;var rme=eme.names=eme.title={};for(nme in tme)rme[tme[nme]]=nme;for(var ime in ame)tme[ime]=ame[ime]})(keycode$1,keycode$1.exports);var keycodeExports=keycode$1.exports;const keycode=getDefaultExportFromCjs(keycodeExports);var modals=[];function current(){return modals.length}function currentModal(){return modals[modals.length-1]}function addModal$1(x_){modals.push(x_)}function removeModal(x_){modals=modals.filter(function(eme){return eme!==x_})}window.addEventListener("keydown",handleWindowKeyDown);function handleWindowKeyDown(x_){var eme=keycode(x_);if(eme==="esc"){var $P=currentModal();if($P){var tme=$P.props,ame=tme.disabled,nme=tme.closeOnEsc;nme&&!ame&&!x_.defaultPrevented&&$P.props.onHide(x_)}}}var _path$1Z;function _extends$4B(){return _extends$4B=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4B.apply(null,arguments)}var SvgClose=function(eme){return reactExports.createElement("svg",_extends$4B({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1Z||(_path$1Z=reactExports.createElement("path",{d:"m13.5 1.44 1.06 1.06L9.06 8l5.5 5.5-1.06 1.06L8 9.06l-5.5 5.5-1.06-1.06L6.938 8l-5.5-5.5L2.5 1.44 8 6.938z",fill:"currentColor"})))},_path$1Y,_path2$q;function _extends$4A(){return _extends$4A=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4A.apply(null,arguments)}var SvgCloseSmall=function(eme){return reactExports.createElement("svg",_extends$4A({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1Y||(_path$1Y=reactExports.createElement("path",{d:"M512 832a320 320 0 1 1 0-640 320 320 0 0 1 0 640z",fill:"currentColor"})),_path2$q||(_path2$q=reactExports.createElement("path",{d:"M670.144 398.848 556.992 512l113.152 113.152-45.248 45.248-113.152-113.152L398.592 670.4l-45.248-45.248L466.56 512 353.344 398.848l45.248-45.248 113.152 113.152L624.896 353.6l45.248 45.248z",fill:"#fff"})))},_path$1X;function _extends$4z(){return _extends$4z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4z.apply(null,arguments)}var SvgStatusClose=function(eme){return reactExports.createElement("svg",_extends$4z({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1X||(_path$1X=reactExports.createElement("path",{d:"m12.549 2.65.707.707-4.597 4.595 4.597 4.597-.707.708-4.596-4.598-4.596 4.598-.707-.708 4.596-4.597L2.65 3.357l.707-.707 4.596 4.595 4.596-4.595Z",fill:"currentColor",opacity:.5,fillRule:"evenodd"})))},_path$1W;function _extends$4y(){return _extends$4y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4y.apply(null,arguments)}var SvgUndo=function(eme){return reactExports.createElement("svg",_extends$4y({viewBox:"0 0 854 768",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1W||(_path$1W=reactExports.createElement("path",{d:"M576.333 213.333H82.04L265.293 30.08 235 0 .333 234.667 235 469.333l30.08-30.08L82.04 256h494.293c129.597.008 234.652 105.07 234.652 234.667S705.93 725.325 576.333 725.333H363V768h213.333c153.167 0 277.334-124.166 277.334-277.333 0-153.167-124.167-277.334-277.334-277.334Z",fill:"currentColor"})))},_path$1V,_path2$p;function _extends$4x(){return _extends$4x=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4x.apply(null,arguments)}var SvgUndoNormal=function(eme){return reactExports.createElement("svg",_extends$4x({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1V||(_path$1V=reactExports.createElement("path",{d:"M0 0h1024v1024H0z",fill:"currentColor",opacity:.01})),_path2$p||(_path2$p=reactExports.createElement("path",{d:"m5.632 356.199.768 1.382a51.2 51.2 0 0 0 10.803 13.517l.461.358c1.024.973 2.15 1.844 3.328 2.663l-3.789-3.072a51.61 51.61 0 0 0 10.445 7.219l1.024.512a50.944 50.944 0 0 0 4.66 2.048l.614.205a50.79 50.79 0 0 0 14.233 2.867L51.2 384h230.4a51.2 51.2 0 0 0 5.99-102.041l-5.99-.359H166.4l.41-.41c23.45-25.6 42.598-45.874 55.551-58.828a409.6 409.6 0 1 1 0 579.277 51.2 51.2 0 1 0-72.345 72.345A510.464 510.464 0 0 0 512 1024c282.777 0 512-229.222 512-512S794.776 0 512 0a510.464 510.464 0 0 0-362.035 149.965l-11.776 11.93c-6.35 6.656-13.466 14.131-21.3 22.528l-14.49 15.565V102.4A51.2 51.2 0 0 0 57.19 51.56l-5.99-.36A51.2 51.2 0 0 0 .358 96.41L0 102.4v230.4a51.13 51.13 0 0 0 5.222 22.528l.41.87z",fill:"currentColor"})))},_path$1U;function _extends$4w(){return _extends$4w=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4w.apply(null,arguments)}var SvgRedo=function(eme){return reactExports.createElement("svg",_extends$4w({viewBox:"0 0 854 768",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1U||(_path$1U=reactExports.createElement("path",{d:"m619 0-30.08 30.08 183.04 183.253H277.667C124.5 213.333.333 337.5.333 490.667S124.5 768 277.667 768H491v-42.667H277.667c-129.597-.008-234.652-105.07-234.652-234.666C43.015 361.07 148.07 256.008 277.667 256H771.96L588.707 439.253 619 469.333l234.667-234.666L619 0Z",fill:"currentColor"})))},_path$1T;function _extends$4v(){return _extends$4v=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4v.apply(null,arguments)}var SvgEnter=function(eme){return reactExports.createElement("svg",_extends$4v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:"icon"},eme),_path$1T||(_path$1T=reactExports.createElement("path",{d:"M864 192c-19.2 0-32 12.8-32 32v224c0 89.6-70.4 160-160 160H236.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-160 160c-3.2 3.2-6.4 6.4-6.4 9.6-3.2 6.4-3.2 16 0 25.6 3.2 3.2 3.2 6.4 6.4 9.6l160 160c6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L236.8 672H672c124.8 0 224-99.2 224-224V224c0-19.2-12.8-32-32-32z"})))},_path$1S,_path2$o;function _extends$4u(){return _extends$4u=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4u.apply(null,arguments)}var SvgVolume=function(eme){return reactExports.createElement("svg",_extends$4u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:"icon"},eme),_path$1S||(_path$1S=reactExports.createElement("path",{d:"M536.32 5.12a63.999 63.999 0 0 0-69.76 13.44L229.766 255.996H64.008A63.999 63.999 0 0 0 .009 319.994v383.994a63.999 63.999 0 0 0 63.999 63.999h165.757l236.796 237.435a63.999 63.999 0 0 0 45.439 18.56 53.76 53.76 0 0 0 24.32-5.12 63.999 63.999 0 0 0 39.679-58.879V64a63.999 63.999 0 0 0-39.68-58.88zM192.006 639.989h-64V383.993h64zM448 805.746 320.003 677.748V346.234l127.998-127.998zm431.353-657.269a63.999 63.999 0 0 0-94.719 87.039 402.553 402.553 0 0 1 0 552.95 63.999 63.999 0 0 0 47.36 107.518 63.999 63.999 0 0 0 46.719-20.48 531.83 531.83 0 0 0 0-727.027z",fill:"currentColor"})),_path2$o||(_path2$o=reactExports.createElement("path",{d:"M751.996 277.115a63.999 63.999 0 0 0-95.999 85.759 218.236 218.236 0 0 1 48 149.117 221.436 221.436 0 0 1-47.36 149.117 63.999 63.999 0 0 0 4.48 90.239 63.999 63.999 0 0 0 42.88 16.64 63.999 63.999 0 0 0 47.359-21.12 349.434 349.434 0 0 0 80.638-234.876 353.274 353.274 0 0 0-79.998-234.876z",fill:"currentColor"})))},_path$1R;function _extends$4t(){return _extends$4t=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4t.apply(null,arguments)}var SvgMute=function(eme){return reactExports.createElement("svg",_extends$4t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:"icon"},eme),_path$1R||(_path$1R=reactExports.createElement("path",{d:"M536.31 5.12a63.999 63.999 0 0 0-69.758 13.44L229.756 255.996H63.999A63.999 63.999 0 0 0 0 319.994v383.994a63.999 63.999 0 0 0 63.999 63.999h165.757l236.796 237.435a63.999 63.999 0 0 0 45.439 18.56 53.76 53.76 0 0 0 24.32-5.12 63.999 63.999 0 0 0 39.679-58.879V64a63.999 63.999 0 0 0-39.68-58.88zM191.998 639.989h-64V383.993h64zm255.995 165.757L319.994 677.748V346.234l127.998-127.998zM914.544 511.99l90.878-90.238a63.999 63.999 0 1 0-90.878-90.879l-90.238 90.879-90.239-90.879a63.999 63.999 0 0 0-90.878 90.879l90.878 90.238-90.878 90.238a63.999 63.999 0 0 0 90.878 90.879l90.239-90.879 90.238 90.879a63.999 63.999 0 1 0 90.878-90.879z",fill:"currentColor"})))},_path$1Q;function _extends$4s(){return _extends$4s=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4s.apply(null,arguments)}var SvgPlay=function(eme){return reactExports.createElement("svg",_extends$4s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 16",className:"icon"},eme),_path$1Q||(_path$1Q=reactExports.createElement("path",{d:"M13.572 7.254 1.284.115A.856.856 0 0 0 0 .861v14.278c0 .307.163.592.428.746a.85.85 0 0 0 .856-.001l12.288-7.138a.862.862 0 0 0 0-1.492Z"})))},_path$1P;function _extends$4r(){return _extends$4r=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4r.apply(null,arguments)}var SvgPause=function(eme){return reactExports.createElement("svg",_extends$4r({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:"icon"},eme),_path$1P||(_path$1P=reactExports.createElement("path",{d:"M757.52 73.107h-62.493c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.493c34.516 0 62.502-27.968 62.502-62.493V135.613c-.001-34.524-27.984-62.509-62.502-62.509zm-437.466 0h-62.502c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.502c34.505 0 62.493-27.968 62.493-62.493V135.613c-.001-34.524-27.984-62.509-62.493-62.509z",fill:"currentColor"})))},_path$1O;function _extends$4q(){return _extends$4q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4q.apply(null,arguments)}var SvgLeftArrow=function(eme){return reactExports.createElement("svg",_extends$4q({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1O||(_path$1O=reactExports.createElement("path",{stroke:"currentColor",fill:"none",strokeLinejoin:"round",d:"M10.497 13.664 4.84 8.007l5.657-5.657"})))},_path$1N;function _extends$4p(){return _extends$4p=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4p.apply(null,arguments)}var SvgRightArrow=function(eme){return reactExports.createElement("svg",_extends$4p({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1N||(_path$1N=reactExports.createElement("path",{stroke:"currentColor",fill:"none",strokeLinejoin:"round",d:"m5.497 13.664 5.657-5.657L5.497 2.35"})))},_path$1M,_path2$n;function _extends$4o(){return _extends$4o=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4o.apply(null,arguments)}var SvgArrowDoubleLeft=function(eme){return reactExports.createElement("svg",_extends$4o({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$1M||(_path$1M=reactExports.createElement("path",{d:"M842.667 864c-8.534 0-14.934-2.133-21.334-8.533L480 546.133c-6.4-6.4-10.667-14.933-10.667-23.466 0-8.534 4.267-17.067 10.667-23.467l341.333-309.333c12.8-12.8 34.134-10.667 44.8 2.133 12.8 12.8 10.667 34.133-2.133 44.8L548.267 522.667 864 808.533c12.8 10.667 14.933 32 2.133 44.8-6.4 6.4-14.933 10.667-23.466 10.667z",fill:"#1677ff"})),_path2$n||(_path2$n=reactExports.createElement("path",{d:"M512 864c-8.533 0-14.933-2.133-21.333-8.533L149.333 546.133c-6.4-6.4-10.666-14.933-10.666-23.466 0-8.534 4.266-17.067 10.666-23.467l341.334-309.333c12.8-12.8 34.133-10.667 44.8 2.133 12.8 12.8 10.666 34.133-2.134 44.8L217.6 522.667l315.733 285.866c12.8 12.8 14.934 32 2.134 44.8-6.4 6.4-14.934 10.667-23.467 10.667z",fill:"#1677ff"})))},_path$1L,_path2$m;function _extends$4n(){return _extends$4n=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4n.apply(null,arguments)}var SvgArrowDoubleRight=function(eme){return reactExports.createElement("svg",_extends$4n({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$1L||(_path$1L=reactExports.createElement("path",{d:"M544 522.667c0-8.534-4.267-17.067-10.667-23.467L192 189.867c-12.8-12.8-34.133-10.667-44.8 2.133-12.8 12.8-10.667 34.133 2.133 44.8l315.734 285.867-315.734 285.866c-12.8 12.8-14.933 32-2.133 44.8 6.4 6.4 14.933 10.667 23.467 10.667 8.533 0 14.933-2.133 21.333-8.533l341.333-309.334c6.4-6.4 10.667-14.933 10.667-23.466z",fill:"#1677ff"})),_path2$m||(_path2$m=reactExports.createElement("path",{d:"M864 499.2 522.667 189.867c-12.8-12.8-34.134-10.667-44.8 2.133-12.8 12.8-10.667 34.133 2.133 44.8l315.733 285.867L480 808.533c-12.8 12.8-14.933 32-2.133 44.8 6.4 6.4 14.933 10.667 23.466 10.667 8.534 0 14.934-2.133 21.334-8.533L864 546.133c6.4-6.4 10.667-14.933 10.667-23.466 0-8.534-4.267-17.067-10.667-23.467z",fill:"#1677ff"})))},_path$1K;function _extends$4m(){return _extends$4m=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4m.apply(null,arguments)}var SvgCheck=function(eme){return reactExports.createElement("svg",_extends$4m({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1K||(_path$1K=reactExports.createElement("path",{d:"M13.943 3 15 4.055l-8.531 8.54L1 7.12l1.057-1.056 4.412 4.418z",fill:"currentColor"})))},_path$1J;function _extends$4l(){return _extends$4l=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4l.apply(null,arguments)}var SvgPlus$1=function(eme){return reactExports.createElement("svg",_extends$4l({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1J||(_path$1J=reactExports.createElement("path",{d:"M6.6 6.6V12H5.4V6.6H0V5.4h5.4V0h1.2v5.4H12v1.2z",fill:"currentColor"})))},_path$1I;function _extends$4k(){return _extends$4k=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4k.apply(null,arguments)}var SvgSubPlus=function(eme){return reactExports.createElement("svg",_extends$4k({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$1I||(_path$1I=reactExports.createElement("path",{d:"M128.01 134.58h767.98c47.103 0 85.355 38.106 85.355 85.282v206.77c0 47.175-38.252 85.355-85.355 85.355H256.884v298.56c0 2.927 1.024 5.487 3.145 7.534a10.24 10.24 0 0 0 7.534 3.146h220.886a31.963 31.963 0 1 1 0 63.998H267.563a71.97 71.97 0 0 1-52.808-21.942 71.97 71.97 0 0 1-21.869-52.735V511.987H128.01a85.355 85.355 0 0 1-85.355-85.356v-206.77c0-47.175 38.252-85.355 85.355-85.355zm0 313.408h767.98a20.48 20.48 0 0 0 15.067-6.217 20.553 20.553 0 0 0 6.29-15.14v-206.77c0-5.85-2.121-10.97-6.29-15.066a20.48 20.48 0 0 0-15.067-6.29H128.01c-5.851 0-10.971 2.12-15.067 6.29a20.553 20.553 0 0 0-6.29 15.067v206.77c0 5.85 2.121 10.97 6.29 15.14a20.553 20.553 0 0 0 15.067 6.216zm575.692 532.174a31.963 31.963 0 0 1-31.962-31.963v-62.974h-62.755a32.036 32.036 0 0 1 0-63.998h62.755v-62.755a31.963 31.963 0 1 1 63.998 0v62.755h62.901a31.963 31.963 0 1 1 0 63.998h-62.9v62.901a31.963 31.963 0 0 1-32.037 32.036z"})))},_path$1H;function _extends$4j(){return _extends$4j=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4j.apply(null,arguments)}var SvgMinus=function(eme){return reactExports.createElement("svg",_extends$4j({viewBox:"0 0 12 2",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1H||(_path$1H=reactExports.createElement("path",{d:"M0 1.6V.4h12v1.2z",fill:"currentColor"})))},_path$1G;function _extends$4i(){return _extends$4i=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4i.apply(null,arguments)}var SvgPencil=function(eme){return reactExports.createElement("svg",_extends$4i({viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1G||(_path$1G=reactExports.createElement("path",{d:"m10.496.834 2.672 2.672a.797.797 0 0 1 0 1.128l-2.264 2.264L4.4 13.402H.6v-3.8l7.248-7.248 1.52-1.52a.797.797 0 0 1 1.128 0ZM7.67 3.663 1.4 9.933v2.669h2.669l6.269-6.271L7.67 3.663Zm2.262-2.262L8.235 3.098l2.669 2.669 1.697-1.697-2.669-2.669ZM7 12.6h4.8v.8H7v-.8Z",fill:"currentColor"})))},_path$1F;function _extends$4h(){return _extends$4h=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4h.apply(null,arguments)}var SvgView=function(eme){return reactExports.createElement("svg",_extends$4h({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1F||(_path$1F=reactExports.createElement("path",{d:"M8 3c3.989 0 7 3.873 7 5 0 .883-3.011 5-7 5-4.04 0-7-4.117-7-5 0-1.127 2.96-5 7-5Zm0 1C4.733 4 2.218 7.086 2.009 7.973 2.275 8.771 4.719 12 7.999 12c3.21 0 5.735-3.269 5.994-4.037C13.807 7.126 11.27 4 8 4Zm-.025 1.88a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 1a1.001 1.001 0 0 0 0 2 1.001 1.001 0 0 0 0-2Z",fill:"currentColor",fillRule:"evenodd"})))},_path$1E;function _extends$4g(){return _extends$4g=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4g.apply(null,arguments)}var SvgRemove=function(eme){return reactExports.createElement("svg",_extends$4g({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1E||(_path$1E=reactExports.createElement("path",{d:"M14 3.499V4.5h-1.503l.001 10h-9l-.001-10H2V3.499h12ZM11.498 4.5H4.497v9h7.001v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM9.999 1.5v.999H5.998V1.5h4.001Z",fill:"currentColor"})))},_g$2l;function _extends$4f(){return _extends$4f=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4f.apply(null,arguments)}var SvgRetry=function(eme){return reactExports.createElement("svg",_extends$4f({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2l||(_g$2l=reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M7 1v5l3.75-2.5z"}),reactExports.createElement("path",{d:"M8 3v1.44A4.56 4.56 0 1 0 12.56 9H14a6 6 0 1 1-6-6Z"}))))},_path$1D;function _extends$4e(){return _extends$4e=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4e.apply(null,arguments)}var SvgUpload=function(eme){return reactExports.createElement("svg",_extends$4e({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1D||(_path$1D=reactExports.createElement("path",{d:"M3 10v2.995h10V10h1v4h-1v-.005H3V14H2v-4h1Zm5.026-8 3.814 3.815-.707.707-2.616-2.617V11h-1V3.923L4.89 6.548l-.707-.706L8.026 2Z",fill:"currentColor"})))},_path$1C;function _extends$4d(){return _extends$4d=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4d.apply(null,arguments)}var SvgDownload=function(eme){return reactExports.createElement("svg",_extends$4d({"aria-hidden":"true","data-prefix":"fas","data-icon":"download",className:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},eme),_path$1C||(_path$1C=reactExports.createElement("path",{fill:"currentColor",d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"})))},_path$1B,_path2$l;function _extends$4c(){return _extends$4c=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4c.apply(null,arguments)}var SvgFile=function(eme){return reactExports.createElement("svg",_extends$4c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 16",className:"icon"},eme),_path$1B||(_path$1B=reactExports.createElement("path",{d:"M0 0v16h14V4.001L9.939 0H0Zm1 1h8v4h4v10H1V1Zm9 .464 2.575 2.537H10V1.464Z"})),_path2$l||(_path2$l=reactExports.createElement("path",{d:"M4 12h6v-1H4zm0-3h6V8H4z"})))},_g$2k;function _extends$4b(){return _extends$4b=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4b.apply(null,arguments)}var SvgSuccess=function(eme){return reactExports.createElement("svg",_extends$4b({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2k||(_g$2k=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round"},reactExports.createElement("path",{d:"M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z",stroke:"currentColor",fill:"currentColor"}),reactExports.createElement("path",{stroke:"#FFF",d:"m11.512 5.975-4.537 4.537L4.5 8.037"}))))},_g$2j;function _extends$4a(){return _extends$4a=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4a.apply(null,arguments)}var SvgFail=function(eme){return reactExports.createElement("svg",_extends$4a({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2j||(_g$2j=reactExports.createElement("g",{transform:"translate(1 1)",strokeLinejoin:"round"},reactExports.createElement("circle",{cx:7,cy:7,r:7,stroke:"currentColor",fill:"currentColor"}),reactExports.createElement("path",{stroke:"#FFF",fill:"none",d:"m4.643 9.357 4.714-4.714m-4.714 0 4.714 4.714"}))))},_path$1A;function _extends$49(){return _extends$49=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$49.apply(null,arguments)}var SvgSearch$1=function(eme){return reactExports.createElement("svg",_extends$49({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",className:"icon"},eme),_path$1A||(_path$1A=reactExports.createElement("path",{fill:"currentColor",d:"M2 8c0-3.309 2.691-6 6-6s6 2.691 6 6-2.691 6-6 6-6-2.691-6-6Zm16 8.586L14.314 12.9A7.955 7.955 0 0 0 16 8a8 8 0 1 0-8 8 7.955 7.955 0 0 0 4.9-1.686L16.586 18 18 16.586Z"})))},_path$1z;function _extends$48(){return _extends$48=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$48.apply(null,arguments)}var SvgBack=function(eme){return reactExports.createElement("svg",_extends$48({viewBox:"0 0 9 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1z||(_path$1z=reactExports.createElement("path",{d:"M8.294 10.473 3.494 6l4.8-4.473L6.694 0l-6.4 6 6.4 6z",fill:"currentColor"})))},_path$1y;function _extends$47(){return _extends$47=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$47.apply(null,arguments)}var SvgMove=function(eme){return reactExports.createElement("svg",_extends$47({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"icon"},eme),_path$1y||(_path$1y=reactExports.createElement("path",{d:"M8.02 0 5.161 2.859l1 1 .859-.858V7.02H3.001l.858-.86-1-.999L0 8.02l2.82 2.82 1-1-.819-.82H7.02v3.981l-.859-.86-1 1L8.02 16l2.819-2.82-1-.999-.819.82V9.02h3.981l-.821.82 1 1L16 8.02l-2.859-2.859-1 .999.86.86H9.02V3.001l.819.819 1-1z",fill:"currentColor",fillRule:"evenodd"})))},_circle$2,_path$1x;function _extends$46(){return _extends$46=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$46.apply(null,arguments)}var SvgInfo=function(eme){return reactExports.createElement("svg",_extends$46({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"icon"},eme),_circle$2||(_circle$2=reactExports.createElement("circle",{stroke:"currentColor",fill:"transparent",cx:8,cy:8,r:7.5})),_path$1x||(_path$1x=reactExports.createElement("path",{fill:"currentColor",d:"M7 3h2v2H7zm0 3h2v7H7z"})))},_path$1w;function _extends$45(){return _extends$45=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$45.apply(null,arguments)}var SvgLocation=function(eme){return reactExports.createElement("svg",_extends$45({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$1w||(_path$1w=reactExports.createElement("path",{d:"M511.968 0c-207.84 0-376.96 169.12-376.96 376.992 0 54.208 11.104 105.984 32.96 153.888 94.24 206.24 274.976 424 328.128 485.824 3.968 4.608 9.792 7.296 15.904 7.296s11.904-2.656 15.904-7.296c53.12-61.824 233.856-279.552 328.128-485.824 21.888-47.904 32.96-99.648 32.96-153.888C888.96 169.12 719.84 0 512 0zm0 572.8C404 572.8 316.16 484.96 316.16 376.992s87.84-195.84 195.808-195.84 195.808 87.84 195.808 195.84c0 107.968-87.84 195.808-195.808 195.808z"})))},_g$2i;function _extends$44(){return _extends$44=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$44.apply(null,arguments)}var SvgDragBar=function(eme){return reactExports.createElement("svg",_extends$44({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2i||(_g$2i=reactExports.createElement("g",{transform:"translate(5 1)",stroke:"currentColor"},reactExports.createElement("circle",{cx:1,cy:1,r:1}),reactExports.createElement("circle",{cx:5,cy:1,r:1}),reactExports.createElement("circle",{cx:1,cy:5,r:1}),reactExports.createElement("circle",{cx:5,cy:5,r:1}),reactExports.createElement("circle",{cx:1,cy:9,r:1}),reactExports.createElement("circle",{cx:5,cy:9,r:1}),reactExports.createElement("circle",{cx:1,cy:13,r:1}),reactExports.createElement("circle",{cx:5,cy:13,r:1}))))},_path$1v;function _extends$43(){return _extends$43=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$43.apply(null,arguments)}var SvgReload=function(eme){return reactExports.createElement("svg",_extends$43({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"icon"},eme),_path$1v||(_path$1v=reactExports.createElement("path",{d:"M8.05 14.056a6.041 6.041 0 0 1-5.132-2.82l2.113-2.042H0v4.862l1.409-1.362C2.919 14.736 5.333 16 8.05 16c4.025 0 7.447-2.82 7.95-6.708L13.987 9c-.402 2.917-2.918 5.056-5.937 5.056Zm6.541-10.75C13.081 1.264 10.667 0 7.95 0 3.925 0 .503 2.82 0 6.708L2.013 7C2.415 4.083 4.93 1.944 7.95 1.944a6.041 6.041 0 0 1 5.132 2.82l-2.113 2.042H16V1.944l-1.409 1.362Z",fill:"currentColor"})))},_path$1u;function _extends$42(){return _extends$42=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$42.apply(null,arguments)}var SvgExchange=function(eme){return reactExports.createElement("svg",_extends$42({viewBox:"0 0 175 201",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1u||(_path$1u=reactExports.createElement("path",{d:"M104.295 11.995v177.5c0 6.2 5.1 11.3 11.3 11.3 3.4 0 6.5-1.5 8.7-4.1.8-.6 1.5-1.4 2.1-2.2l46.5-66.3c3.6-5.1 2.4-12.1-2.7-15.7-5.1-3.6-12.1-2.3-15.7 2.8l-27.6 39.3v-142.6c-.1-6.2-5.2-11.3-11.4-11.3s-11.2 5.1-11.2 11.3Zm-33.2 0c0-6.2-5.1-11.3-11.3-11.3-3.4 0-6.5 1.5-8.7 4.1-.8.7-1.5 1.4-2.1 2.2l-46.5 66.3c-1.3 1.9-2 4.1-2 6.5 0 3.7 1.8 7.1 4.8 9.2 2.5 1.7 5.4 2.4 8.4 1.9s5.5-2.2 7.3-4.6l27.6-39.3v142.5c0 6.2 5.1 11.3 11.3 11.3 6.2-.1 11.2-5.2 11.2-11.4v-177.4Z",fill:"currentColor"})))},_path$1t;function _extends$41(){return _extends$41=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$41.apply(null,arguments)}var SvgColumns=function(eme){return reactExports.createElement("svg",_extends$41({viewBox:"0 0 122 123",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1t||(_path$1t=reactExports.createElement("path",{d:"M5.583.75h22.084c1.666 0 2.916.417 3.75 1.667.833 1.25 1.666 2.5 1.666 3.75V28.25c0 1.667-.416 2.917-1.666 3.75-1.25.833-2.5 1.667-3.75 1.667H5.583c-1.666 0-2.916-.417-3.75-1.667C.583 30.75.167 29.5.167 28.25V6.167c0-1.667.416-2.917 1.666-3.75C2.667 1.583 3.917.75 5.583.75Zm44.167 0h22.083c1.667 0 2.917.417 3.75 1.667 1.25 1.25 1.667 2.5 1.667 3.75V28.25c0 1.667-.417 2.917-1.667 3.75-1.25 1.25-2.5 1.667-3.75 1.667H49.75c-1.667 0-2.917-.417-3.75-1.667-1.25-1.25-1.667-2.5-1.667-3.75V6.167c0-1.667.417-2.917 1.667-3.75.833-.834 2.5-1.667 3.75-1.667Zm44.583 0h22.084c1.666 0 2.916.417 3.75 1.667.833 1.25 1.666 2.5 1.666 3.75V28.25c0 1.667-.416 2.917-1.666 3.75-1.25.833-2.5 1.667-3.75 1.667H94.333c-1.666 0-2.916-.417-3.75-1.667-.833-1.25-1.666-2.5-1.666-3.75V6.167c0-1.667.416-2.917 1.666-3.75 1.25-.834 2.084-1.667 3.75-1.667ZM5.583 45.333h22.084c1.666 0 2.916.417 3.75 1.667 1.25 1.25 1.666 2.5 1.666 3.75v22.083c0 1.667-.416 2.917-1.666 3.75-1.25.834-2.5 1.667-3.75 1.667H5.583c-1.666 0-2.916-.417-3.75-1.667-1.25-1.25-1.666-2.5-1.666-3.75V50.75c0-1.667.416-2.917 1.666-3.75.834-1.25 2.084-1.667 3.75-1.667Zm44.167 0h22.083c1.667 0 2.917.417 3.75 1.667 1.25 1.25 1.667 2.5 1.667 3.75v22.083c0 1.667-.417 2.917-1.667 3.75-1.25 1.25-2.5 1.667-3.75 1.667H49.75c-1.667 0-2.917-.417-3.75-1.667-1.25-1.25-1.667-2.5-1.667-3.75V50.75c0-1.667.417-2.917 1.667-3.75.833-1.25 2.5-1.667 3.75-1.667Zm44.583 0h22.084c1.666 0 2.916.417 3.75 1.667 1.25 1.25 1.666 2.5 1.666 3.75v22.083c0 1.667-.416 2.917-1.666 3.75-1.25.834-2.5 1.667-3.75 1.667H94.333c-1.666 0-2.916-.417-3.75-1.667-.833-1.25-1.666-2.5-1.666-3.75V50.75c0-1.667.416-2.917 1.666-3.75.834-1.25 2.084-1.667 3.75-1.667ZM5.583 89.917h22.084c1.666 0 2.916.416 3.75 1.666.833 1.25 1.666 2.5 1.666 3.75v22.084c0 1.666-.416 2.916-1.666 3.75-1.25.833-2.5 1.666-3.75 1.666H5.583c-1.666 0-2.916-.416-3.75-1.666-1.25-1.25-1.666-2.5-1.666-3.75V95.333c0-1.666.416-2.916 1.666-3.75.834-1.25 2.084-1.666 3.75-1.666Zm44.167 0h22.083c1.667 0 2.917.416 3.75 1.666 1.25 1.25 1.667 2.5 1.667 3.75v22.084c0 1.666-.417 2.916-1.667 3.75-1.25 1.25-2.5 1.666-3.75 1.666H49.75c-1.667 0-2.917-.416-3.75-1.666-1.25-1.25-1.667-2.5-1.667-3.75V95.333c0-1.666.417-2.916 1.667-3.75.833-1.25 2.5-1.666 3.75-1.666Zm44.583 0h22.084c1.666 0 2.916.416 3.75 1.666.833 1.25 1.666 2.5 1.666 3.75v22.084c0 1.666-.416 2.916-1.666 3.75-1.25.833-2.5 1.666-3.75 1.666H94.333c-1.666 0-2.916-.416-3.75-1.666-.833-1.25-1.666-2.5-1.666-3.75V95.333c0-1.666.416-2.916 1.666-3.75.834-1.25 2.084-1.666 3.75-1.666Z",fill:"currentColor"})))},_g$2h;function _extends$40(){return _extends$40=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$40.apply(null,arguments)}var SvgCalendar=function(eme){return reactExports.createElement("svg",_extends$40({viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2h||(_g$2h=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M23.5-7.5h-159v29h159v-29Z",stroke:"currentColor"}),reactExports.createElement("g",{fill:"currentColor",fillRule:"nonzero"},reactExports.createElement("path",{d:"M0 14h14V3H0v11Zm2-9h10v7H2V5ZM0 0h14v2H0z"}),reactExports.createElement("path",{d:"M9 6h2v2H9zm0 3h2v2H9zM6 6h2v2H6zm0 3h2v2H6zM3 6h2v2H3zm0 3h2v2H3z"})))))},_g$2g;function _extends$3$(){return _extends$3$=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3$.apply(null,arguments)}var SvgClock=function(eme){return reactExports.createElement("svg",_extends$3$({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2g||(_g$2g=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("path",{d:"M7.874 5.5v3.038L5.5 9.28"}))))},_path$1s;function _extends$3_(){return _extends$3_=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3_.apply(null,arguments)}var SvgTreeDown=function(eme){return reactExports.createElement("svg",_extends$3_({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},eme),_path$1s||(_path$1s=reactExports.createElement("path",{d:"M512 704 256 384h512z"})))},_path$1r;function _extends$3Z(){return _extends$3Z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3Z.apply(null,arguments)}var SvgCloudUpload=function(eme){return reactExports.createElement("svg",_extends$3Z({viewBox:"0 0 42 31",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1r||(_path$1r=reactExports.createElement("path",{d:"m20.872 15.498 4.512 6.003h-3.012v9h-3v-9H16.38l4.49-6.003Zm0-14.999c6.47 0 11.946 4.143 14.046 9.897 3.957.945 6.918 4.491 6.918 8.733 0 4.962-4.038 9-9 9-1.044 0-2.034-.213-2.964-.546v-3.315c.738.426 1.55.732 2.445.81.174.012.342.051.519.051 3.309 0 6-2.691 6-6 0-2.262-1.272-4.212-3.126-5.235-.858-.471-1.827-.765-2.874-.765-.07 0-.132.018-.201.021-.207-1.026-.576-1.983-1.023-2.898-1.953-3.981-6.012-6.753-10.74-6.753-4.725 0-8.778 2.769-10.737 6.744-.45.915-.82 1.872-1.026 2.898L9 13.129c-1.086 0-2.094.315-2.973.822C4.228 14.986 3 16.909 3 19.129c0 3.309 2.69 6 6 6 .147 0 .285-.033.432-.045.888-.063 1.698-.357 2.439-.759v3.285c-.906.315-1.86.519-2.871.519-4.962 0-9-4.038-9-9 0-4.203 2.91-7.716 6.813-8.7C8.904 4.66 14.389.499 20.872.499Z",fill:"currentColor",fillRule:"evenodd"})))},_path$1q;function _extends$3Y(){return _extends$3Y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3Y.apply(null,arguments)}var SvgImage$1=function(eme){return reactExports.createElement("svg",_extends$3Y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"icon"},eme),_path$1q||(_path$1q=reactExports.createElement("path",{d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"})))},_path$1p;function _extends$3X(){return _extends$3X=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3X.apply(null,arguments)}var SvgRefresh=function(eme){return reactExports.createElement("svg",_extends$3X({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1p||(_path$1p=reactExports.createElement("path",{d:"M8 1.5a6.5 6.5 0 1 1-.869 12.942.5.5 0 0 1 .133-.99 5.5 5.5 0 1 0-4.63-4.24.5.5 0 0 1-.976.218A6.5 6.5 0 0 1 8 1.5Z",fill:"currentColor"})))},_path$1o;function _extends$3W(){return _extends$3W=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3W.apply(null,arguments)}var SvgDrag=function(eme){return reactExports.createElement("svg",_extends$3W({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1o||(_path$1o=reactExports.createElement("path",{d:"M6 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm4 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"#151B26",fillRule:"evenodd"})))},_path$1n;function _extends$3V(){return _extends$3V=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3V.apply(null,arguments)}var SvgEdit$1=function(eme){return reactExports.createElement("svg",_extends$3V({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1n||(_path$1n=reactExports.createElement("path",{d:"M8.491 1.5v1H2.5v11h11V7.532h1V14.5h-13v-13h6.991Zm5.255.122.707.708-6.364 6.364-.708-.707 6.364-6.365Z",fillRule:"evenodd"})))},_defs$4,_g$2f;function _extends$3U(){return _extends$3U=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3U.apply(null,arguments)}var SvgDeskEmpty=function(eme){return reactExports.createElement("svg",_extends$3U({viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_defs$4||(_defs$4=reactExports.createElement("defs",null,reactExports.createElement("linearGradient",{x1:"16.498%",y1:"38.528%",x2:"56.262%",y2:"63.185%",id:"desk-empty_svg__a"},reactExports.createElement("stop",{stopColor:"#DCE0EF",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#DCDFEA",offset:"100%"})),reactExports.createElement("linearGradient",{x1:"28.893%",y1:"55.707%",x2:"93.898%",y2:"48.876%",id:"desk-empty_svg__b"},reactExports.createElement("stop",{stopColor:"#F1F3FA",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#E8EAF0",offset:"100%"})))),_g$2f||(_g$2f=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h100v100H0z"}),reactExports.createElement("ellipse",{fill:"url(#desk-empty_svg__a)",fillRule:"nonzero",cx:50,cy:60.8,rx:44.4,ry:22.8}),reactExports.createElement("ellipse",{fill:"url(#desk-empty_svg__b)",fillRule:"nonzero",cx:50,cy:58.4,rx:44.4,ry:22.8}),reactExports.createElement("path",{d:"M69.343 42.018c6.904 3.985 10.08 11.235 10.057 19.162-.011 3.963-1.42 6.745-3.683 8.05-2.275 1.284-5.406 1.082-8.853-.9L34.857 50.868C27.953 46.882 22.377 37.22 22.4 29.294c.023-7.927 5.643-11.113 12.547-7.127.89.506 1.746 1.103 2.579 1.79.766-8.096 7.05-11.136 14.675-6.745 7.614 4.392 13.865 14.672 14.574 23.623.823.27 1.69.676 2.568 1.183Z",fill:"#E0E3EF",fillRule:"nonzero"}),reactExports.createElement("path",{d:"M42.92 29.682a.81.81 0 0 1 1.263-.671l4.86 3.274a.81.81 0 0 1 .357.672v8.163l-1.129-.715 1.129.761v7.123a.81.81 0 0 1-1.243.684l-4.86-3.076a.81.81 0 0 1-.377-.684v-15.53Z",fill:"#FFF",fillRule:"nonzero"}),reactExports.createElement("path",{d:"m53.903 44.13 4.86 3.275a.81.81 0 0 1 .357.672v6.692a.81.81 0 0 1-1.243.684l-4.86-3.076a.81.81 0 0 1-.377-.684v-6.89a.81.81 0 0 1 1.263-.672Z",fill:"#F7F8FB",fillRule:"nonzero"}))))},_path$1m;function _extends$3T(){return _extends$3T=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3T.apply(null,arguments)}var SvgFullscreen=function(eme){return reactExports.createElement("svg",_extends$3T({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1m||(_path$1m=reactExports.createElement("path",{d:"M1011.2 384h-96V115.2H640V12.8h320c25.6 0 51.2 19.2 51.2 51.2v320zM384 1011.2H64c-25.6 0-51.2-19.2-51.2-51.2V640h96v268.8H384v102.4zM115.2 384H12.8V64C12.8 38.4 32 12.8 64 12.8h320v96H115.2V384zM960 1011.2H640v-96h268.8V640h96v320c6.4 25.6-19.2 51.2-44.8 51.2z",fill:"currentColor"})))},_path$1l;function _extends$3S(){return _extends$3S=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3S.apply(null,arguments)}var SvgUnfullscreen=function(eme){return reactExports.createElement("svg",_extends$3S({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1l||(_path$1l=reactExports.createElement("path",{d:"M940.8 732.8h-176a32 32 0 0 0-32 32v196.8a62.4 62.4 0 0 1-124.8 0V736a128 128 0 0 1 128-128h225.6a62.4 62.4 0 0 1 0 124.8h-20.8zm-649.6 208v-176a32 32 0 0 0-32-32H62.4a62.4 62.4 0 0 1 0-124.8H288a128 128 0 0 1 128 128v225.6a62.4 62.4 0 0 1-124.8 0v-20.8zM732.8 83.2v176a32 32 0 0 0 32 32h196.8a62.4 62.4 0 0 1 0 124.8H736a128 128 0 0 1-128-128V62.4a62.4 62.4 0 0 1 124.8 0v20.8zm-649.6 208h176a32 32 0 0 0 32-32V62.4a62.4 62.4 0 0 1 124.8 0V288a128 128 0 0 1-128 128H62.4a62.4 62.4 0 0 1 0-124.8h20.8z",fill:"currentColor"})))},_g$2e;function _extends$3R(){return _extends$3R=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3R.apply(null,arguments)}var SvgCopy=function(eme){return reactExports.createElement("svg",_extends$3R({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2e||(_g$2e=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 9.5h-2v-9h9v2"}),reactExports.createElement("path",{d:"M2.5 11.5h9v-9h-9z"}))))},_path$1k;function _extends$3Q(){return _extends$3Q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3Q.apply(null,arguments)}var SvgFilter=function(eme){return reactExports.createElement("svg",_extends$3Q({viewBox:"0 0 150 100",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1k||(_path$1k=reactExports.createElement("path",{d:"M58.333 100h33.334V83.333H58.333V100ZM0 0v16.667h150V0H0Zm25 58.333h100V41.667H25v16.666Z",fill:"currentColor"})))},_path$1j;function _extends$3P(){return _extends$3P=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3P.apply(null,arguments)}var SvgCaret=function(eme){return reactExports.createElement("svg",_extends$3P({viewBox:"0 0 12 8",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1j||(_path$1j=reactExports.createElement("path",{fill:"currentColor",d:"M10.473 0 6 4.8 1.527 0 0 1.6 6 8l6-6.4z"})))},_path$1i;function _extends$3O(){return _extends$3O=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3O.apply(null,arguments)}var SvgRightArrowBold=function(eme){return reactExports.createElement("svg",_extends$3O({viewBox:"0 0 99 176",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1i||(_path$1i=reactExports.createElement("path",{d:"M95.503 79.708a10.77 10.77 0 0 0-.914-.813L19.687 3.605c-4.17-4.17-10.932-4.17-15.102 0s-4.17 10.93 0 15.1L72.8 87.31 3.12 156.922c-4.17 4.17-4.17 10.931 0 15.102 4.17 4.17 10.931 4.17 15.102 0l76.366-76.301a10.645 10.645 0 0 0 4.04-8.414 10.643 10.643 0 0 0-3.125-7.601Z",fill:"currentColor"})))},_path$1h;function _extends$3N(){return _extends$3N=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3N.apply(null,arguments)}var SvgDownArrowBold=function(eme){return reactExports.createElement("svg",_extends$3N({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1h||(_path$1h=reactExports.createElement("path",{fill:"currentColor",d:"m12.233 5-4.24 4.24L3.753 5l-.713.713 4.95 4.95.003-.003.003.003 4.95-4.95z",fillRule:"evenodd"})))},_path$1g;function _extends$3M(){return _extends$3M=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3M.apply(null,arguments)}var SvgColumnFilter=function(eme){return reactExports.createElement("svg",_extends$3M({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1g||(_path$1g=reactExports.createElement("path",{d:"m0 0 4 4.999L4.082 10 8 12V4.999L12 0H0Zm5.053 9.054-.074-4.227-.006-.327-.217-.257L2 1h8L7.244 4.243l-.223.263V10l-1.968-.946Z",fill:"currentColor",fillRule:"evenodd"})))},_path$1f;function _extends$3L(){return _extends$3L=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3L.apply(null,arguments)}var SvgZoomIn=function(eme){return reactExports.createElement("svg",_extends$3L({viewBox:"0 0 201 200",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1f||(_path$1f=reactExports.createElement("path",{d:"m200.774 185.426-14.392 14.46-54.05-54.213a80.503 80.503 0 0 1-50.224 17.6c-37.958.228-71.066-25.737-79.89-62.657-8.824-36.92 8.964-75.05 42.924-92.01 33.96-16.96 75.128-8.275 99.343 20.959 24.214 29.233 25.083 71.3 2.097 101.508l54.192 54.353ZM82.108 18.666c-25.551-.097-48.642 15.22-58.488 38.798-9.845 23.58-4.504 50.768 13.53 68.87 18.034 18.102 45.203 23.545 68.819 13.788 23.615-9.758 39.019-32.79 39.016-58.343.026-34.775-28.102-63.008-62.877-63.113Zm9.117 99.787h-18.26v-27.51H45.583V72.609h27.382V45.12h18.26v27.49h27.402v18.334H91.225v27.51Z",fill:"currentColor"})))},_path$1e;function _extends$3K(){return _extends$3K=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3K.apply(null,arguments)}var SvgZoomOut=function(eme){return reactExports.createElement("svg",_extends$3K({viewBox:"0 0 187 187",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1e||(_path$1e=reactExports.createElement("path",{d:"M45.455 90.91h72.727V72.726H45.455V90.91Zm100.254 41.945a81.39 81.39 0 0 0 17.927-51.037C163.636 36.628 127.01 0 81.818 0 36.628 0 0 36.627 0 81.818c0 45.191 36.627 81.818 81.818 81.818 19.318 0 37.037-6.727 51.037-17.927l40.972 40.973 12.855-12.855-40.973-40.972Zm-63.89 12.6c-35.146 0-63.637-28.491-63.637-63.637 0-35.145 28.49-63.636 63.636-63.636s63.637 28.49 63.637 63.636-28.491 63.637-63.637 63.637Z",fill:"currentColor"})))},_path$1d;function _extends$3J(){return _extends$3J=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3J.apply(null,arguments)}var SvgQuestion=function(eme){return reactExports.createElement("svg",_extends$3J({viewBox:"0 0 175 175",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1d||(_path$1d=reactExports.createElement("path",{d:"M167.873 53.888c-4.389-10.378-10.671-19.696-18.672-27.697-8.001-8-17.32-14.283-27.697-18.672C110.757 2.973 99.344.668 87.584.668c-11.762 0-23.175 2.305-33.922 6.85-10.377 4.39-19.696 10.672-27.697 18.673-8 8-14.283 17.32-18.672 27.697-4.546 10.747-6.85 22.16-6.85 33.92 0 11.762 2.304 23.175 6.85 33.922 4.39 10.377 10.672 19.696 18.672 27.697 8.001 8 17.32 14.283 27.697 18.672 10.747 4.546 22.16 6.85 33.921 6.85s23.174-2.304 33.921-6.85c10.378-4.39 19.696-10.671 27.697-18.672 8.001-8.001 14.283-17.32 18.673-27.697 4.545-10.747 6.85-22.16 6.85-33.921s-2.305-23.174-6.85-33.921Zm-72.008 95.818c-2.37 2.109-5.109 3.16-8.216 3.16-3.212 0-6.016-1.04-8.413-3.12-2.396-2.08-3.594-4.99-3.594-8.726 0-3.321 1.158-6.11 3.476-8.377 2.317-2.263 5.16-3.395 8.531-3.395 3.318 0 6.109 1.132 8.374 3.395 2.263 2.267 3.397 5.056 3.397 8.377 0 3.685-1.185 6.58-3.555 8.686Zm29.504-73.146c-1.816 3.37-3.976 6.28-6.478 8.727-2.5 2.45-6.99 6.57-13.468 12.363-1.791 1.632-3.226 3.068-4.304 4.306-1.08 1.238-1.885 2.37-2.41 3.395a16.574 16.574 0 0 0-1.224 3.083c-.29 1.025-.726 2.83-1.304 5.412-1.001 5.475-4.135 8.215-9.4 8.215-2.74 0-5.043-.896-6.913-2.689-1.869-1.79-2.804-4.45-2.804-7.977 0-4.423.684-8.255 2.054-11.493 1.369-3.24 3.186-6.084 5.45-8.531 2.264-2.45 5.32-5.36 9.164-8.73 3.37-2.95 5.807-5.173 7.306-6.676a22.513 22.513 0 0 0 3.792-5.015c1.028-1.844 1.541-3.843 1.541-6.004 0-4.214-1.567-7.767-4.7-10.665-3.133-2.896-7.176-4.344-12.126-4.344-5.794 0-10.06 1.462-12.797 4.384-2.739 2.924-5.056 7.227-6.952 12.915-1.79 5.952-5.187 8.928-10.19 8.928-2.95 0-5.437-1.04-7.464-3.12-2.028-2.08-3.042-4.332-3.042-6.756 0-5.001 1.606-10.071 4.819-15.204 3.211-5.137 7.9-9.388 14.06-12.757 6.162-3.373 13.351-5.056 21.567-5.056 7.635 0 14.377 1.408 20.222 4.225 5.846 2.818 10.361 6.648 13.547 11.493 3.187 4.846 4.78 10.112 4.78 15.8 0 4.475-.908 8.398-2.726 11.771Z",fill:"currentColor"})))},_text;function _extends$3I(){return _extends$3I=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3I.apply(null,arguments)}var SvgQuestionMark=function(eme){return reactExports.createElement("svg",_extends$3I({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_text||(_text=reactExports.createElement("text",{fontFamily:"PingFangSC-Regular, PingFang SC",fontSize:12,fill:"currentColor",fillRule:"evenodd"},reactExports.createElement("tspan",{x:3,y:10.5}," ？ "))))},_path$1c;function _extends$3H(){return _extends$3H=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3H.apply(null,arguments)}var SvgWindowRestore=function(eme){return reactExports.createElement("svg",_extends$3H({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1c||(_path$1c=reactExports.createElement("path",{d:"M181.25 0h-125C45.898 0 37.5 8.398 37.5 18.75V37.5H18.75C8.398 37.5 0 45.898 0 56.25v125C0 191.602 8.398 200 18.75 200h125c10.352 0 18.75-8.398 18.75-18.75V162.5h18.75c10.352 0 18.75-8.398 18.75-18.75v-125C200 8.398 191.602 0 181.25 0Zm-37.5 181.25h-125V100h125v81.25Zm37.5-37.5H162.5v-87.5c0-10.352-8.398-18.75-18.75-18.75h-87.5V18.75h125v125Z",fill:"currentColor"})))},_path$1b;function _extends$3G(){return _extends$3G=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3G.apply(null,arguments)}var SvgInfoCircle=function(eme){return reactExports.createElement("svg",_extends$3G({viewBox:"0 0 172 172",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1b||(_path$1b=reactExports.createElement("path",{d:"M114.571 139.571v-17.857c0-1.041-.334-1.897-1.004-2.567-.67-.67-1.525-1.004-2.567-1.004h-10.714V61c0-1.042-.335-1.897-1.005-2.567-.67-.67-1.525-1.004-2.567-1.004H61c-1.042 0-1.897.334-2.567 1.004-.67.67-1.004 1.525-1.004 2.567v17.857c0 1.042.334 1.897 1.004 2.567.67.67 1.525 1.005 2.567 1.005h10.714v35.714H61c-1.042 0-1.897.335-2.567 1.004-.67.67-1.004 1.526-1.004 2.567v17.857c0 1.042.334 1.898 1.004 2.567.67.67 1.525 1.005 2.567 1.005h50c1.042 0 1.897-.335 2.567-1.005.67-.67 1.004-1.525 1.004-2.567Zm-14.285-100V21.714c0-1.041-.335-1.897-1.005-2.567-.67-.67-1.525-1.004-2.567-1.004H75.286c-1.042 0-1.898.335-2.567 1.004-.67.67-1.005 1.526-1.005 2.567v17.857c0 1.042.335 1.898 1.005 2.567.67.67 1.525 1.005 2.567 1.005h21.428c1.042 0 1.898-.335 2.567-1.005.67-.67 1.005-1.525 1.005-2.567ZM171.714 86c0 15.55-3.832 29.892-11.495 43.025-7.664 13.132-18.062 23.53-31.194 31.194-13.133 7.663-27.474 11.495-43.025 11.495-15.55 0-29.892-3.832-43.025-11.495-13.132-7.664-23.53-18.062-31.194-31.194C4.118 115.892.286 101.55.286 86c0-15.55 3.832-29.892 11.495-43.025 7.664-13.132 18.062-23.53 31.194-31.194C56.108 4.118 70.45.286 86 .286c15.55 0 29.892 3.832 43.025 11.495 13.132 7.664 23.53 18.062 31.194 31.194C167.882 56.108 171.714 70.45 171.714 86Z",fill:"currentColor"})))},_path$1a;function _extends$3F(){return _extends$3F=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3F.apply(null,arguments)}var SvgWarning=function(eme){return reactExports.createElement("svg",_extends$3F({viewBox:"0 0 150 138",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1a||(_path$1a=reactExports.createElement("path",{d:"M81.07 2.48a12.5 12.5 0 0 1 4.855 4.853l62.092 111.763a12.5 12.5 0 0 1-10.934 18.57H12.917a12.502 12.502 0 0 1-10.93-18.57L64.076 7.333C67.428 1.3 75.037-.873 81.071 2.48ZM75 13.403 12.913 125.167h124.17L75 13.404Zm6.25 86.763v12.5h-12.5v-12.5h12.5Zm0-53.992v45.658h-12.5V46.175h12.5Z",fill:"currentColor"})))},_path$19;function _extends$3E(){return _extends$3E=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3E.apply(null,arguments)}var SvgWarningMark=function(eme){return reactExports.createElement("svg",_extends$3E({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$19||(_path$19=reactExports.createElement("path",{d:"M5.5 2.5h1v5h-1zm0 7h1v1h-1z",stroke:"currentColor",fill:"none"})))},_g$2d;function _extends$3D(){return _extends$3D=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3D.apply(null,arguments)}var SvgSchedule=function(eme){return reactExports.createElement("svg",_extends$3D({viewBox:"0 0 176 176",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2d||(_g$2d=reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M88 .46C39.962.46.66 39.762.66 87.8c0 48.038 39.302 87.34 87.34 87.34 48.037 0 87.34-39.302 87.34-87.34C175.34 39.763 136.038.46 88 .46Zm0 157.213c-38.425 0-69.873-31.44-69.873-69.873 0-38.433 31.448-69.872 69.873-69.872 38.425 0 69.873 31.439 69.873 69.872S126.425 157.673 88 157.673Z"}),reactExports.createElement("path",{d:"M92.367 44.13H79.266v52.404l45.419 27.95 6.985-11.352L92.367 89.55z"}))))},_path$18;function _extends$3C(){return _extends$3C=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3C.apply(null,arguments)}var SvgHome=function(eme){return reactExports.createElement("svg",_extends$3C({viewBox:"0 0 200 189",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$18||(_path$18=reactExports.createElement("path",{d:"M195.851 92.925 110.601 7.75 104.914 2a6.95 6.95 0 0 0-9.8 0L4.15 92.925A14.104 14.104 0 0 0 0 103.075c.157 7.782 6.53 13.998 14.313 13.962h9.375v71.85h152.625v-71.85h9.575c3.762 0 7.312-1.475 9.987-4.137 2.675-2.675 4.125-6.225 4.125-10 0-3.75-1.475-7.3-4.15-9.975Zm-83.5 80.087h-24.7v-45h24.7v45Zm48.075-71.85v71.85h-33.95v-50.3a8.825 8.825 0 0 0-8.825-8.825h-35.3a8.825 8.825 0 0 0-8.825 8.826v50.3h-33.95v-71.85H18.401L100.026 19.6l5.088 5.1 76.5 76.462h-21.188Z",fill:"currentColor"})))},_g$2c;function _extends$3B(){return _extends$3B=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3B.apply(null,arguments)}var SvgFolder=function(eme){return reactExports.createElement("svg",_extends$3B({viewBox:"0 0 200 168",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2c||(_g$2c=reactExports.createElement("g",{fill:"currentFolder"},reactExports.createElement("path",{d:"M166.667 167.333H8.333C3.333 167.333 0 164 0 159V9C0 4 3.333.667 8.333.667h58.334C71.667.667 75 4 75 9v8.333h91.667c5 0 8.333 3.334 8.333 8.334V59c0 5-3.333 8.333-8.333 8.333S158.333 64 158.333 59V34H66.667c-5 0-8.334-3.333-8.334-8.333v-8.334H16.667v133.334h150c5 0 8.333 3.333 8.333 8.333s-3.333 8.333-8.333 8.333Z"}),reactExports.createElement("path",{d:"M166.667 167.333H8.333c-2.5 0-5-.833-6.666-3.333C0 161.5 0 159.833 0 157.333l25-100c.833-4.166 4.167-6.666 8.333-6.666h158.334c2.5 0 5 .833 6.666 3.333C200 56.5 200 58.167 200 60.667l-25 100c-.833 4.166-4.167 6.666-8.333 6.666Zm-147.5-16.666H160l20.833-83.334H40l-20.833 83.334Z"}))))},_path$17;function _extends$3A(){return _extends$3A=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3A.apply(null,arguments)}var SvgSortDefault=function(eme){return reactExports.createElement("svg",_extends$3A({viewBox:"0 0 7 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$17||(_path$17=reactExports.createElement("path",{d:"m3.535 0-.707.706L0 3.534l.707.708 2.328-2.329v3.122h1V1.913l2.328 2.33.707-.709L4.242.706zm-.5 7.035v3.12L.708 7.829 0 8.535l2.828 2.828.707.708.708-.708 2.828-2.828-.708-.707-2.327 2.328V7.035z",fill:"currentColor"})))},_path$16;function _extends$3z(){return _extends$3z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3z.apply(null,arguments)}var SvgSortAsc=function(eme){return reactExports.createElement("svg",_extends$3z({viewBox:"0 0 7 10",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$16||(_path$16=reactExports.createElement("path",{d:"m3.5 0-.7.703L0 3.514l.7.703 2.305-2.314V10h.99V1.903L6.3 4.217l.7-.703L4.2.703z",fill:"currentColor"})))},_path$15;function _extends$3y(){return _extends$3y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3y.apply(null,arguments)}var SvgSortDesc=function(eme){return reactExports.createElement("svg",_extends$3y({viewBox:"0 0 7 10",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$15||(_path$15=reactExports.createElement("path",{d:"m3.5 10-.7-.703L0 6.486l.7-.703 2.305 2.314V0h.99v8.097L6.3 5.783l.7.703-2.8 2.811z",fill:"currentColor"})))},_path$14;function _extends$3x(){return _extends$3x=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3x.apply(null,arguments)}var SvgSetting$1=function(eme){return reactExports.createElement("svg",_extends$3x({viewBox:"0 0 196 200",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$14||(_path$14=reactExports.createElement("path",{d:"M170.89 170.22c-2.881-1.067-4.91-1.707-6.83-2.454-5.87-2.241-11.526-4.803-17.502-6.83-1.708-.534-4.163-.32-5.763.533a91.14 91.14 0 0 0-12.06 7.044c-1.28.854-2.348 2.775-2.668 4.375-1.28 7.044-2.241 14.194-3.095 21.345-.533 4.055-2.454 5.87-6.617 5.763a2117.107 2117.107 0 0 0-36.818 0c-4.056 0-6.19-1.601-6.724-5.657-.96-7.15-2.134-14.194-2.988-21.344-.32-2.454-1.174-3.949-3.522-5.123-3.948-1.92-7.47-4.589-11.419-6.51-1.387-.747-3.522-1.067-5.016-.533-6.937 2.454-13.66 5.23-20.49 7.897-4.91 1.921-6.297 1.494-9.072-3.201-6.083-10.352-12.06-20.704-18.035-31.056-2.775-4.803-2.669-5.977 1.707-9.392 5.763-4.589 11.633-8.964 17.289-13.66 1.067-.854 1.814-2.775 1.814-4.162.214-3.949-.64-8.111 0-11.953.747-4.162-.96-6.297-3.949-8.538-5.336-3.842-10.245-8.11-15.474-11.952-3.095-2.348-3.842-4.803-1.814-8.218 6.51-10.992 12.913-22.091 19.316-33.19 1.814-3.095 4.162-3.736 7.47-2.455 7.044 2.775 14.088 5.656 21.238 8.218 1.494.533 3.842.213 5.336-.534 4.056-2.028 7.684-4.696 11.74-6.723 2.134-1.068 2.881-2.348 3.094-4.483.961-7.257 2.135-14.514 3.095-21.77C73.453 1.493 75.695 0 79.643 0c12.273.107 24.546.107 36.82 0 3.841 0 5.976 1.6 6.402 5.443.961 7.15 2.135 14.194 2.989 21.344.32 2.668 1.28 4.269 3.842 5.443 3.735 1.707 7.257 3.842 10.672 6.19 2.24 1.6 4.162 1.6 6.616.533 6.617-2.775 13.34-5.23 20.064-8.004 3.735-1.494 6.297-.747 8.324 2.882 6.083 10.778 12.487 21.45 18.677 32.123 2.454 4.269 2.134 5.656-1.815 8.75-5.656 4.376-11.312 8.859-17.075 13.234-1.921 1.494-2.455 2.882-2.241 5.336.427 4.483-.107 9.072.106 13.554.107 1.6.854 3.522 2.028 4.482 5.656 4.696 11.526 9.072 17.289 13.554 3.949 3.095 4.162 4.482 1.708 8.751a3226.595 3226.595 0 0 1-18.997 32.443c-1.067 1.921-2.881 2.988-4.162 4.162Zm-73.21-35.004c19.316.107 35.324-15.582 35.431-34.685.106-19.636-15.475-35.538-34.898-35.645C78.79 64.78 62.78 80.575 62.78 99.998c-.106 19.21 15.688 35.111 34.898 35.218Z",fill:"currentColor"})))},_path$13;function _extends$3w(){return _extends$3w=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3w.apply(null,arguments)}var SvgPlusCicle=function(eme){return reactExports.createElement("svg",_extends$3w({viewBox:"0 0 163 163",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$13||(_path$13=reactExports.createElement("path",{d:"M81.75.5C36.905.569.569 36.905.5 81.75c.069 44.845 36.405 81.181 81.25 81.25 44.845-.069 81.181-36.405 81.25-81.25C162.931 36.905 126.595.569 81.75.5Zm0 12.5c38.037 0 68.75 30.712 68.75 68.75 0 38.037-30.713 68.75-68.75 68.75A68.663 68.663 0 0 1 13 81.75C13 43.712 43.712 13 81.75 13ZM75.5 38v37.5H38V88h37.5v37.5H88V88h37.5V75.5H88V38H75.5Z"})))},_path$12;function _extends$3v(){return _extends$3v=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3v.apply(null,arguments)}var SvgPlusFine=function(eme){return reactExports.createElement("svg",_extends$3v({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$12||(_path$12=reactExports.createElement("path",{d:"M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z",fill:"currentColor"})))},_path$11;function _extends$3u(){return _extends$3u=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3u.apply(null,arguments)}var SvgEllipsisV=function(eme){return reactExports.createElement("svg",_extends$3u({viewBox:"0 0 26 126",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$11||(_path$11=reactExports.createElement("path",{d:"M13 .5C6.125.5.5 6.125.5 13S6.125 25.5 13 25.5 25.5 19.875 25.5 13 19.875.5 13 .5Zm0 50C6.125 50.5.5 56.125.5 63S6.125 75.5 13 75.5 25.5 69.875 25.5 63 19.875 50.5 13 50.5Zm0 50C6.125 100.5.5 106.125.5 113s5.625 12.5 12.5 12.5 12.5-5.625 12.5-12.5-5.625-12.5-12.5-12.5Z",fill:"currentColor"})))},_path$10;function _extends$3t(){return _extends$3t=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3t.apply(null,arguments)}var SvgExpandAlt=function(eme){return reactExports.createElement("svg",_extends$3t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"icon"},eme),_path$10||(_path$10=reactExports.createElement("path",{fill:"currentColor",d:"M212.686 315.314 120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z"})))},_path$$;function _extends$3s(){return _extends$3s=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3s.apply(null,arguments)}var SvgCompressAlt=function(eme){return reactExports.createElement("svg",_extends$3s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",className:"icon"},eme),_path$$||(_path$$=reactExports.createElement("path",{fill:"currentColor",d:"M4.686 427.314 104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686 344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z"})))},_defs$3,_rect;function _extends$3r(){return _extends$3r=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3r.apply(null,arguments)}var SvgTransparent=function(eme){return reactExports.createElement("svg",_extends$3r({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_defs$3||(_defs$3=reactExports.createElement("defs",null,reactExports.createElement("pattern",{id:"transparent_svg__a",width:20,height:20,patternUnits:"userSpaceOnUse"},reactExports.createElement("path",{opacity:.1,d:"M0 0h10v10H0z"}),reactExports.createElement("path",{fill:"#fff",d:"M10 0h10v10H10z"}),reactExports.createElement("path",{opacity:.1,d:"M10 10h10v10H10z"}),reactExports.createElement("path",{fill:"#fff",d:"M0 10h10v10H0z"})))),_rect||(_rect=reactExports.createElement("rect",{fill:"url(#transparent_svg__a)",width:"100%",height:"100%"})))},_path$_;function _extends$3q(){return _extends$3q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3q.apply(null,arguments)}var SvgLoadingOutline=function(eme){return reactExports.createElement("svg",_extends$3q({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"icon"},eme),_path$_||(_path$_=reactExports.createElement("path",{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 0 0-94.3-139.9 437.71 437.71 0 0 0-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"})))},_path$Z;function _extends$3p(){return _extends$3p=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3p.apply(null,arguments)}var SvgStar=function(eme){return reactExports.createElement("svg",_extends$3p({viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$Z||(_path$Z=reactExports.createElement("path",{d:"m3.991 3.57-2.485.36a1 1 0 0 0-.554 1.706L2.75 7.389l-.425 2.477a1 1 0 0 0 1.45 1.054L6 9.75l2.224 1.17a1 1 0 0 0 1.451-1.055L9.25 7.389l1.798-1.752a1 1 0 0 0-.554-1.706L8.008 3.57 6.897 1.317a1 1 0 0 0-1.794 0L3.991 3.57Z",fillRule:"evenodd"})))},_path$Y;function _extends$3o(){return _extends$3o=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3o.apply(null,arguments)}var SvgAlertSuccess=function(eme){return reactExports.createElement("svg",_extends$3o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},eme),_path$Y||(_path$Y=reactExports.createElement("path",{d:"m449.856 706.56-45.44-45.056.128-.064L268.16 526.016l45.12-45.44L449.6 616.064 720.192 343.68l45.376 45.056-315.712 317.888zM510.528 64A448 448 0 1 0 960 510.528 448 448 0 0 0 510.528 64z",fill:"#30BF13"})))},_path$X;function _extends$3n(){return _extends$3n=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3n.apply(null,arguments)}var SvgAlertInfo=function(eme){return reactExports.createElement("svg",_extends$3n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},eme),_path$X||(_path$X=reactExports.createElement("path",{d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm32 354.944h-64V768h64V418.944zM512 256a38.4 38.4 0 1 0-.128 76.672A38.4 38.4 0 0 0 512 256z",fill:"#2468F2"})))},_path$W;function _extends$3m(){return _extends$3m=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3m.apply(null,arguments)}var SvgAlertWarning=function(eme){return reactExports.createElement("svg",_extends$3m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},eme),_path$W||(_path$W=reactExports.createElement("path",{d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 627.2a38.4 38.4 0 1 0 0 76.8 38.4 38.4 0 0 0 0-76.8zM544 256h-64v349.12h64V256z",fill:"#FF9326"})))},_path$V;function _extends$3l(){return _extends$3l=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3l.apply(null,arguments)}var SvgAlertDanger=function(eme){return reactExports.createElement("svg",_extends$3l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},eme),_path$V||(_path$V=reactExports.createElement("path",{d:"M667.904 704.32 508.992 546.56 351.104 705.472l-45.376-45.056L463.552 501.44 304.64 343.488l45.12-45.376 158.912 157.824L666.56 297.088 712 342.144 553.984 501.12 712.96 659.008l-45.12 45.44zM510.528 64a448 448 0 1 0 2.944 896 448 448 0 0 0-2.944-896z",fill:"#F33E3E"})))},_path$U;function _extends$3k(){return _extends$3k=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3k.apply(null,arguments)}var SvgFunction=function(eme){return reactExports.createElement("svg",_extends$3k({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$U||(_path$U=reactExports.createElement("path",{d:"M6.855 1.437C7.72.883 9.146.984 9.828 1.061c.286.032.918.09.853.712-.052.496-.785.446-.98.446-.216 0-.435-.02-.653-.038l-.218-.016c-.906-.058-1.771.053-2.294 1.951L6.213 5.69h1.633c.3 0 .543.24.543.537a.54.54 0 0 1-.543.538H5.982l-1.467 7.132S4.374 15.043 3.662 15a.782.782 0 0 1-.07-.008A.533.533 0 0 1 3.5 15H1.467A.467.467 0 0 1 1 14.533v-.032c0-.242.183-.444.423-.466.517-.05.965-.13 1.347-.244.12-.036.223-.078.308-.126a.465.465 0 0 1 .182-.057l1.415-6.844H2.467a.535.535 0 0 1-.534-.491l.012.069.008-.019c.014-.016.037-.03.046-.05-.013-.015-.058-.03-.058-.047v.093l-.008-.046c.022-.462.214-.568.464-.582l.07-.002h2.441l.34-1.605c.242-1.136.74-2.091 1.607-2.647Zm7.879 4.441c.167.09.254.192.265.309.01.116-.036.23-.14.343l-1.964 2.108 1.937 2.63a.282.282 0 0 1 .042.276c-.03.105-.168.179-.35.275a.656.656 0 0 1-.488.06.613.613 0 0 1-.314-.23l-1.634-2.14-1.983 2.13c-.237.254-.506.291-.812.112-.126-.074-.356-.345-.384-.467-.026-.122.023-.25.15-.386l2.192-2.362-1.597-2.092c-.067-.096-.073-.208-.021-.335.05-.127.168-.202.295-.276a.798.798 0 0 1 .47-.095c.124.008.236.078.339.207l1.328 1.713 1.607-1.733c.139-.152.297-.206.449-.25.15-.042.45.113.613.203Z",fill:"currentColor"})))},_path$T;function _extends$3j(){return _extends$3j=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3j.apply(null,arguments)}var SvgInputClear=function(eme){return reactExports.createElement("svg",_extends$3j({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$T||(_path$T=reactExports.createElement("path",{d:"M512 39.385C250.092 39.385 39.385 250.092 39.385 512S250.092 984.615 512 984.615 984.615 773.908 984.615 512 773.908 39.385 512 39.385zm96.492 488.369 153.6 153.6c7.877 7.877 7.877 19.692 0 27.57l-55.138 55.138c-7.877 7.876-19.692 7.876-27.57 0l-153.6-153.6c-7.876-7.877-19.692-7.877-27.569 0l-153.6 153.6c-7.877 7.876-19.692 7.876-27.569 0l-55.138-55.139c-7.877-7.877-7.877-19.692 0-27.57l153.6-153.6c7.877-7.876 7.877-19.691 0-27.568l-155.57-155.57c-7.876-7.877-7.876-19.692 0-27.569l55.139-55.138c7.877-7.877 19.692-7.877 27.57 0l155.568 155.569c7.877 7.877 19.693 7.877 27.57 0l153.6-153.6c7.877-7.877 19.692-7.877 27.569 0l55.138 55.138c7.877 7.877 7.877 19.693 0 27.57l-153.6 153.6c-5.907 7.877-5.907 19.692 0 27.569z"})))},_path$S;function _extends$3i(){return _extends$3i=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3i.apply(null,arguments)}var SvgSliderHandleIcon=function(eme){return reactExports.createElement("svg",_extends$3i({viewBox:"0 0 6 4",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$S||(_path$S=reactExports.createElement("path",{d:"M1.5 0v4h-1V0h1Zm2 0v4h-1V0h1Zm2 0v4h-1V0h1Z",fill:"transparent",fillRule:"evenodd"})))},_path$R;function _extends$3h(){return _extends$3h=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3h.apply(null,arguments)}var SvgTrash=function(eme){return reactExports.createElement("svg",_extends$3h({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$R||(_path$R=reactExports.createElement("path",{d:"M14 3.499V4.5h-1.503l.001 10h-9l-.001-10H2V3.499h12ZM11.498 4.5H4.497v9h7.001v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM9.999 1.5v.999H5.998V1.5h4.001Z",fill:"currentColor",fillRule:"evenodd"})))},_path$Q;function _extends$3g(){return _extends$3g=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3g.apply(null,arguments)}var SvgMenu=function(eme){return reactExports.createElement("svg",_extends$3g({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$Q||(_path$Q=reactExports.createElement("path",{d:"M549.624 214.626H113.648c-18.1 0-32.84-14.74-32.84-32.84 0-18.101 14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.739 32.84 32.84-.13 18.1-14.869 32.84-32.97 32.84zm0 330.99H113.648c-18.1 0-32.84-14.74-32.84-32.84 0-18.101 14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.739 32.84 32.84-.13 18.1-14.869 32.84-32.97 32.84zm0 330.473H113.648c-18.1 0-32.84-14.74-32.84-32.84s14.74-32.84 32.84-32.84h436.106c18.1 0 32.84 14.738 32.84 32.84s-14.869 32.84-32.97 32.84zM932.59 659.006c-12.8-12.8-33.616-12.8-46.416 0L781.446 763.733V182.044c0-18.1-14.739-32.84-32.84-32.84-18.1 0-32.84 14.74-32.84 32.84v661.463c0 18.101 14.74 32.84 32.84 32.84 8.016 0 15.386-2.844 21.075-7.628.905-.776 162.78-163.167 162.78-163.167 12.929-12.8 12.929-33.746.129-46.546zm0 0"})))},_g$2b;function _extends$3f(){return _extends$3f=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3f.apply(null,arguments)}var SvgUserRemove=function(eme){return reactExports.createElement("svg",_extends$3f({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2b||(_g$2b=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("circle",{fill:"#F6654D",cx:8,cy:8,r:8}),reactExports.createElement("rect",{fill:"#FFF",x:4,y:7,width:8,height:2,rx:.5}))))},_g$2a;function _extends$3e(){return _extends$3e=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3e.apply(null,arguments)}var SvgRole=function(eme){return reactExports.createElement("svg",_extends$3e({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2a||(_g$2a=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{fillOpacity:.01,fill:"currentColor",fillRule:"nonzero",d:"M0 0h16v16H0z"}),reactExports.createElement("circle",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",cx:8,cy:4,r:2.667}),reactExports.createElement("path",{d:"M14 14.667a6 6 0 0 0-12 0",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 14.667 9.333 13 8 8.667 6.667 13z"}))))},_g$29;function _extends$3d(){return _extends$3d=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3d.apply(null,arguments)}var SvgDepartment=function(eme){return reactExports.createElement("svg",_extends$3d({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$29||(_g$29=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{fillOpacity:.01,fill:"currentColor",fillRule:"nonzero",d:"M0 0h16v16H0z"}),reactExports.createElement("circle",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",cx:4.667,cy:9.667,r:1.667}),reactExports.createElement("circle",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",cx:11.333,cy:9.667,r:1.667}),reactExports.createElement("circle",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",cx:8,cy:3,r:1.667}),reactExports.createElement("path",{d:"M8 14.667a3.333 3.333 0 0 0-6.667 0m13.334 0a3.333 3.333 0 0 0-6.667 0M11.333 8a3.333 3.333 0 0 0-6.666 0",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))))},_g$28;function _extends$3c(){return _extends$3c=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3c.apply(null,arguments)}var SvgPost=function(eme){return reactExports.createElement("svg",_extends$3c({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$28||(_g$28=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{fillOpacity:.01,fill:"currentColor",fillRule:"nonzero",d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M6.333 6.667a2.333 2.333 0 1 0 0-4.667 2.333 2.333 0 0 0 0 4.667Z",stroke:"currentColor",fill:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M10.87 2.333a2.332 2.332 0 0 1 0 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M1.333 13.6v.4h10v-.4c0-1.493 0-2.24-.29-2.81a2.667 2.667 0 0 0-1.166-1.166c-.57-.29-1.317-.29-2.81-.29H5.6c-1.493 0-2.24 0-2.81.29-.502.256-.91.664-1.166 1.165-.29.57-.29 1.318-.29 2.811Z",stroke:"currentColor",fill:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M14.667 14v-.4c0-1.493 0-2.24-.291-2.81a2.667 2.667 0 0 0-1.165-1.166",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))))},_g$27;function _extends$3b(){return _extends$3b=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3b.apply(null,arguments)}var SvgDot=function(eme){return reactExports.createElement("svg",_extends$3b({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$27||(_g$27=reactExports.createElement("g",{fill:"currentColor",fillRule:"evenodd"},reactExports.createElement("circle",{cx:8,cy:8,r:6}),reactExports.createElement("circle",{cx:8,cy:8,r:6,opacity:.5},reactExports.createElement("animate",{attributeName:"r",begin:0,values:"6;8;6",dur:1.5,repeatCount:"indefinite"})))))},_path$P;function _extends$3a(){return _extends$3a=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3a.apply(null,arguments)}var SvgStepsFinsh=function(eme){return reactExports.createElement("svg",_extends$3a({viewBox:"0 0 8 6",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$P||(_path$P=reactExports.createElement("path",{d:"m7.455.466.53.53-4.244 4.242-.53.531-2.65-2.652.53-.529 2.12 2.12z",fill:"#2468F2",fillRule:"evenodd"})))},_path$O;function _extends$39(){return _extends$39=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$39.apply(null,arguments)}var SvgInvisible=function(eme){return reactExports.createElement("svg",_extends$39({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$O||(_path$O=reactExports.createElement("path",{d:"M2.92 5c.24.56.57 1.078.977 1.535A5.655 5.655 0 0 0 8.14 8.44a5.664 5.664 0 0 0 4.212-1.87c.34-.375.628-.794.857-1.246l.13-.275.915.404a6.682 6.682 0 0 1-2.256 2.761l.959 1.66-.866.5-.95-1.645c-.763.384-1.6.622-2.473.69v1.553h-1V9.423a6.653 6.653 0 0 1-2.572-.715l-.947 1.64-.866-.5.96-1.662A6.694 6.694 0 0 1 3.15 7.2a6.638 6.638 0 0 1-1.022-1.527L2 5.393 2.92 5Z",fill:"currentColor",fillRule:"evenodd"})))},_g$26;function _extends$38(){return _extends$38=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$38.apply(null,arguments)}var SvgDate$1=function(eme){return reactExports.createElement("svg",_extends$38({viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$26||(_g$26=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M-1.338-2h16v16h-16z"}),reactExports.createElement("path",{d:"M4.662 0v1h4V0h1v1h3v11h-12V1h3V0h1Zm7 5h-10v6h10V5Zm-8-3h-2v2h10V2h-2v1h-1V2h-4v1h-1V2Z",fill:"currentColor"}))))},_path$N;function _extends$37(){return _extends$37=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$37.apply(null,arguments)}var SvgDown=function(eme){return reactExports.createElement("svg",_extends$37({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$N||(_path$N=reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"m2.35 5.497 5.657 5.657 5.657-5.657",fill:"none"})))},_path$M;function _extends$36(){return _extends$36=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$36.apply(null,arguments)}var SvgRightDoubleArrow$1=function(eme){return reactExports.createElement("svg",_extends$36({viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$M||(_path$M=reactExports.createElement("path",{d:"m.713.001 4.95 4.95-.003.003.003.003-4.95 4.95L0 9.194l4.24-4.24L0 .714.713.001Zm3.997 0 4.95 4.948-.004.004.004.003-4.95 4.95-.713-.714 4.24-4.239-4.24-4.24L4.71 0Z",fill:"currentColor",fillRule:"evenodd"})))},_path$L;function _extends$35(){return _extends$35=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$35.apply(null,arguments)}var SvgNewEdit=function(eme){return reactExports.createElement("svg",_extends$35({viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$L||(_path$L=reactExports.createElement("path",{d:"M6.991.5v1H1v11h11V6.532h1V13.5H0V.5h6.991Zm5.255.122.707.708-6.364 6.364-.708-.707L12.245.622Z",fill:"currentColor",fillRule:"evenodd"})))},_path$K,_path2$k;function _extends$34(){return _extends$34=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$34.apply(null,arguments)}var SvgRotateLeft=function(eme){return reactExports.createElement("svg",_extends$34({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$K||(_path$K=reactExports.createElement("path",{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"})),_path2$k||(_path2$k=reactExports.createElement("path",{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.8 11 40.7 14 82.7 8.9 124.8-.7 5.4-1.4 10.8-2.4 16.1h74.9c14.8-103.6-11.3-213-81-302.3z"})))},_path$J,_path2$j;function _extends$33(){return _extends$33=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$33.apply(null,arguments)}var SvgRotateRight=function(eme){return reactExports.createElement("svg",_extends$33({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$J||(_path$J=reactExports.createElement("path",{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.2-69.6 89.2-95.7 198.6-81.1 302.4h74.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"})),_path2$j||(_path2$j=reactExports.createElement("path",{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"})))},_path$I,_path2$i,_path3$i;function _extends$32(){return _extends$32=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$32.apply(null,arguments)}var SvgScaleOrigin=function(eme){return reactExports.createElement("svg",_extends$32({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$I||(_path$I=reactExports.createElement("path",{d:"M316 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8zm196-50c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39zm0-140c22.1 0 40-17.9 40-39 0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39z"})),_path2$i||(_path2$i=reactExports.createElement("path",{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"})),_path3$i||(_path3$i=reactExports.createElement("path",{d:"M648 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8z"})))},_path$H;function _extends$31(){return _extends$31=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$31.apply(null,arguments)}var SvgIf=function(eme){return reactExports.createElement("svg",_extends$31({className:"icon",viewBox:"0 0 1194 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$H||(_path$H=reactExports.createElement("path",{d:"M545.877 227.84C596.224 44.373 689.237 88.747 774.571 88.747c14.506 0 67.413 4.266 70.826-32.427 5.12-45.227-40.96-49.493-61.44-52.053-49.493-5.12-152.746-12.8-215.04 27.306-63.146 40.96-98.986 110.934-116.053 193.707l-24.747 116.907h-98.133c-20.48 0-36.693 5.973-38.4 42.666 1.707 20.48 17.92 36.694 38.4 36.694h81.067L306.09 935.253s-27.307 83.627 31.573 87.04c52.053 3.414 62.293-80.213 62.293-80.213L505.77 421.547h134.826a39.68 39.68 0 0 0 0-79.36h-117.76l23.04-114.347zM182.613 338.176a39.253 39.253 0 0 0-46.933 29.867L1.707 969.643c-4.267 19.626-1.707 37.546 33.28 46.933 20.48 2.56 39.253-10.24 43.52-29.867l133.973-601.6c4.267-21.333-8.533-41.813-29.867-46.933zm108.288 43.69zm0 0v9.387c0-2.56.854-4.266.854-5.973 0-.853-.854-2.56-.854-3.413zm-134.57-189.44c0 32.427 26.453 58.88 58.88 58.88 32.426 0 58.88-26.453 58.88-58.88 0-32.426-26.454-58.88-58.88-58.88-32.427 0-58.88 26.454-58.88 58.88zm707.328 203.18a39.253 39.253 0 0 0-62.294-1.707c-4.266 5.12-106.666 121.173-117.76 299.52-10.24 176.64 57.174 296.96 59.734 302.08 7.68 13.653 20.48 21.333 33.28 22.186 9.386.854 19.626-2.56 28.16-9.386 19.626-17.067 24.746-50.347 11.946-74.24-.853-.854-53.76-97.28-45.226-234.667 8.533-134.827 87.893-226.987 89.6-228.693a61.44 61.44 0 0 0 2.56-75.094zm172.373 617.983c12.8 2.56 26.453-2.56 36.693-13.653 4.267-5.12 93.867-107.52 116.907-281.6 24.747-177.493-53.76-314.88-56.32-320-13.653-23.893-40.96-29.013-61.44-11.947-20.48 16.214-25.6 49.494-11.093 73.387.853 2.56 60.586 110.08 42.666 244.053-18.773 136.534-89.6 218.454-90.453 219.307-17.067 20.48-18.773 53.76-1.707 75.093 6.827 8.534 15.36 13.654 24.747 15.36z",fill:"currentColor"})))},_path$G;function _extends$30(){return _extends$30=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$30.apply(null,arguments)}var SvgRotateScreen=function(eme){return reactExports.createElement("svg",_extends$30({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$G||(_path$G=reactExports.createElement("path",{d:"M104.192 489.263c18.99 0 34.397 15.383 34.397 34.373 0 178.037 120.832 327.867 284.951 371.922l5.353 1.396-34.444-34.443a34.374 34.374 0 0 1-2.327-45.987l2.327-2.63a34.374 34.374 0 0 1 46.034-2.35l2.606 2.35L547.956 918.76c21.644 21.643 6.307 58.694-24.32 58.694-250.647 0-453.818-203.171-453.818-453.819 0-18.99 15.383-34.373 34.374-34.373zM341.085 175.22a80.221 80.221 0 0 1 113.455 0l417.512 417.513a80.221 80.221 0 0 1 0 113.455L706.188 872.052a80.221 80.221 0 0 1-113.455 0L175.243 454.54a80.221 80.221 0 0 1 0-113.455zm64.815 48.64a11.45 11.45 0 0 0-16.198 0L223.837 389.702a11.45 11.45 0 0 0 0 16.198L641.35 823.412a11.45 11.45 0 0 0 16.22 0l165.866-165.841a11.45 11.45 0 0 0 0-16.198zM523.636 69.818c250.648 0 453.819 203.171 453.819 453.818a34.374 34.374 0 1 1-68.771 0c0-178.036-120.832-327.866-284.952-371.921l-5.352-1.396 34.443 34.443c12.568 12.567 13.359 32.489 2.328 45.987l-2.328 2.63c-12.614 12.567-32.512 13.358-46.033 2.35l-2.607-2.35-104.867-104.867c-21.643-21.644-6.307-58.694 24.32-58.694z",fill:"currentColor"})))},iconFactory={};function getIcon(x_){return iconFactory[x_]}function hasIcon(x_){return!!getIcon(x_)}function registerIcon(x_,eme){iconFactory[x_]=eme}registerIcon("close",SvgClose);registerIcon("close-small",SvgCloseSmall);registerIcon("status-close",SvgStatusClose);registerIcon("undo",SvgUndo);registerIcon("undo-normal",SvgUndoNormal);registerIcon("full-screen",SvgFullscreen);registerIcon("un-fullscreen",SvgUnfullscreen);registerIcon("redo",SvgRedo);registerIcon("enter",SvgEnter);registerIcon("volume",SvgVolume);registerIcon("mute",SvgMute);registerIcon("play",SvgPlay);registerIcon("pause",SvgPause);registerIcon("left-arrow",SvgLeftArrow);registerIcon("right-arrow",SvgRightArrow);registerIcon("prev",SvgLeftArrow);registerIcon("next",SvgRightArrow);registerIcon("check",SvgCheck);registerIcon("plus",SvgPlus$1);registerIcon("sub-plus",SvgSubPlus);registerIcon("add",SvgPlus$1);registerIcon("minus",SvgMinus);registerIcon("pencil",SvgPencil);registerIcon("view",SvgView);registerIcon("remove",SvgRemove);registerIcon("retry",SvgRetry);registerIcon("upload",SvgUpload);registerIcon("download",SvgDownload);registerIcon("file",SvgFile);registerIcon("success",SvgSuccess);registerIcon("fail",SvgFail);registerIcon("warning",SvgWarning);registerIcon("warning-mark",SvgWarningMark);registerIcon("search",SvgSearch$1);registerIcon("back",SvgBack);registerIcon("move",SvgMove);registerIcon("info",SvgInfo);registerIcon("info-circle",SvgInfoCircle);registerIcon("location",SvgLocation);registerIcon("drag-bar",SvgDragBar);registerIcon("reload",SvgReload);registerIcon("exchange",SvgExchange);registerIcon("columns",SvgColumns);registerIcon("calendar",SvgCalendar);registerIcon("clock",SvgClock);registerIcon("copy",SvgCopy);registerIcon("filter",SvgFilter);registerIcon("column-filter",SvgColumnFilter);registerIcon("caret",SvgCaret);registerIcon("right-arrow-bold",SvgRightArrowBold);registerIcon("down-arrow-bold",SvgDownArrowBold);registerIcon("zoom-in",SvgZoomIn);registerIcon("zoom-out",SvgZoomOut);registerIcon("question",SvgQuestion);registerIcon("question-mark",SvgQuestionMark);registerIcon("window-restore",SvgWindowRestore);registerIcon("schedule",SvgSchedule);registerIcon("home",SvgHome);registerIcon("folder",SvgFolder);registerIcon("sort-default",SvgSortDefault);registerIcon("sort-asc",SvgSortAsc);registerIcon("sort-desc",SvgSortDesc);registerIcon("setting",SvgSetting$1);registerIcon("plus-cicle",SvgPlusCicle);registerIcon("ellipsis-v",SvgEllipsisV);registerIcon("expand-alt",SvgExpandAlt);registerIcon("compress-alt",SvgCompressAlt);registerIcon("transparent",SvgTransparent);registerIcon("loading-outline",SvgLoadingOutline);registerIcon("star",SvgStar);registerIcon("alert-success",SvgAlertSuccess);registerIcon("alert-info",SvgAlertInfo);registerIcon("alert-warning",SvgAlertWarning);registerIcon("alert-danger",SvgAlertDanger);registerIcon("alert-fail",SvgAlertDanger);registerIcon("tree-down",SvgTreeDown);registerIcon("function",SvgFunction);registerIcon("input-clear",SvgInputClear);registerIcon("slider-handle",SvgSliderHandleIcon);registerIcon("cloud-upload",SvgCloudUpload);registerIcon("image",SvgImage$1);registerIcon("refresh",SvgRefresh);registerIcon("trash",SvgTrash);registerIcon("menu",SvgMenu);registerIcon("user-remove",SvgUserRemove);registerIcon("role",SvgRole);registerIcon("department",SvgDepartment);registerIcon("post",SvgPost);registerIcon("dot",SvgDot);registerIcon("drag",SvgDrag);registerIcon("edit",SvgEdit$1);registerIcon("desk-empty",SvgDeskEmpty);registerIcon("invisible",SvgInvisible);registerIcon("plus-fine",SvgPlusFine);registerIcon("steps-finsh",SvgStepsFinsh);registerIcon("date",SvgDate$1);registerIcon("remove",SvgRemove);registerIcon("invisible",SvgInvisible);registerIcon("down",SvgDown);registerIcon("right-double-arrow",SvgRightDoubleArrow$1);registerIcon("arrow-double-left",SvgArrowDoubleLeft);registerIcon("arrow-double-right",SvgArrowDoubleRight);registerIcon("new-edit",SvgNewEdit);registerIcon("rotate-left",SvgRotateLeft);registerIcon("rotate-right",SvgRotateRight);registerIcon("scale-origin",SvgScaleOrigin);registerIcon("if",SvgIf);registerIcon("rotate-screen",SvgRotateScreen);function Icon$1(x_){var eme,$P=x_.icon,tme=x_.className,ame=x_.classPrefix,nme=ame===void 0?"":ame,rme=x_.classNameProp,ime=x_.iconContent,ome=x_.vendor,lme=x_.cx,sme=x_.onClick,cme=x_.onMouseEnter,dme=x_.onMouseLeave,ume=x_.onMouseOver,fme=x_.onMouseOut,pme=x_.onMouseDown,hme=x_.onMouseUp,bme=x_.onMouseMove,mme=x_.onBlur,vme=x_.onFocus,gme=x_.onTouchStart,yme=x_.onTouchMove,_me=x_.onTouchEnd,$me=x_.onTouchCancel,Cme=x_.style,Sme=x_.testIdBuilder,Eme=lme||cx$1;if(typeof jest<"u"&&$P&&(ime=""),!$P&&!ime)return null;var xme={onClick:sme,onMouseEnter:cme,onMouseLeave:dme,onMouseOver:ume,onMouseOut:fme,onMouseDown:pme,onMouseUp:hme,onMouseMove:bme,onBlur:mme,onFocus:vme,onTouchStart:gme,onTouchMove:yme,onTouchEnd:_me,onTouchCancel:$me};if(React__default.isValidElement($P))return React__default.cloneElement($P,__assign$3(__assign$3(__assign$3({},xme),$P.props||{}),{className:cx$1(Eme(tme,rme),$P.props.className),style:Cme}));if(ime){var Tme=function(jme){if(jme){var Vme=getComputedStyle(jme),Wme=Vme.getPropertyValue("content"),Lme=/(<svg.*<\/svg>)/.exec(Wme);if(Lme){var zme=Lme[0].replace(/\\"/g,'"');jme.svgHTMLClone!==zme&&(jme.innerHTML=zme,jme.svgHTMLClone=zme,jme.style.display="")}}};return jsx("div",{...__assign$3({},xme,{className:Eme(ime,tme,rme),ref:Tme,style:Cme},Sme==null?void 0:Sme.getTestId())})}var Ome=getIcon($P);if(Ome)return jsx(Ome,{...__assign$3({},xme,{className:Eme(tme,"icon-".concat($P),rme),icon:$P,style:Cme},Sme==null?void 0:Sme.getTestId())});if(isObject$r($P)&&$P.type==="icon"&&$P.icon&&($P=$P.icon),isObject$r($P)&&typeof $P.id=="string"&&$P.id.startsWith("svg-")){var Rme=$P,Nme="".concat(Rme.id.replace(/^svg-/,""));if(!document.getElementById(Nme))$P=(eme=Rme.svg)===null||eme===void 0?void 0:eme.replace(/'/g,"");else return jsx("svg",{...__assign$3({},xme,{className:Eme("icon","icon-object",tme,rme),style:Cme}),children:jsx("use",{xlinkHref:"#"+Nme})})}if(typeof $P=="string"&&$P.startsWith("<svg")){var Ime=/<svg .*?>(.*?)<\/svg>/.exec($P),Pme=/viewBox="(.*?)"/.exec($P),Mme=reactExports.createElement("svg",__assign$3(__assign$3({},xme),{className:Eme("icon",tme,rme),style:Cme,dangerouslySetInnerHTML:{__html:Ime?Ime[1]:""},viewBox:(Pme==null?void 0:Pme[1])||"0 0 16 16"}));return Mme}var kme=typeof $P=="string"&&($P==null?void 0:$P.indexOf("."))!==-1;if(kme)return jsx("img",{...__assign$3({},xme,{className:Eme("".concat(nme,"Icon"),tme,rme),src:$P,style:Cme})});var Bme=typeof $P=="string",Dme="";return ome==="iconfont"?Dme="iconfont icon-".concat($P):ome==="fa"?Dme="".concat(ome," ").concat(ome,"-").concat($P):Dme=$P,Bme?jsx("i",{...__assign$3({},xme,{className:Eme($P,tme,rme,Dme),style:Cme})}):jsxs("span",{className:"text-danger",children:["没有 icon ",$P]})}var cjs={exports:{}},Draggable$2={};function r$2(x_){var eme,$P,tme="";if(typeof x_=="string"||typeof x_=="number")tme+=x_;else if(typeof x_=="object")if(Array.isArray(x_))for(eme=0;eme<x_.length;eme++)x_[eme]&&($P=r$2(x_[eme]))&&(tme&&(tme+=" "),tme+=$P);else for(eme in x_)x_[eme]&&(tme&&(tme+=" "),tme+=eme);return tme}function clsx(){for(var x_,eme,$P=0,tme="";$P<arguments.length;)(x_=arguments[$P++])&&(eme=r$2(x_))&&(tme&&(tme+=" "),tme+=eme);return tme}const clsx_m=Object.freeze(Object.defineProperty({__proto__:null,clsx,default:clsx},Symbol.toStringTag,{value:"Module"})),require$$3=getAugmentedNamespace(clsx_m);var domFns={},shims={};Object.defineProperty(shims,"__esModule",{value:!0});shims.dontSetMe=dontSetMe;shims.findInArray=findInArray;shims.int=int;shims.isFunction=isFunction$4;shims.isNum=isNum;function findInArray(x_,eme){for(let $P=0,tme=x_.length;$P<tme;$P++)if(eme.apply(eme,[x_[$P],$P,x_]))return x_[$P]}function isFunction$4(x_){return typeof x_=="function"||Object.prototype.toString.call(x_)==="[object Function]"}function isNum(x_){return typeof x_=="number"&&!isNaN(x_)}function int(x_){return parseInt(x_,10)}function dontSetMe(x_,eme,$P){if(x_[eme])return new Error("Invalid prop ".concat(eme," passed to ").concat($P," - do not set this, set it on the child."))}var getPrefix$1={};Object.defineProperty(getPrefix$1,"__esModule",{value:!0});getPrefix$1.browserPrefixToKey=browserPrefixToKey;getPrefix$1.browserPrefixToStyle=browserPrefixToStyle;getPrefix$1.default=void 0;getPrefix$1.getPrefix=getPrefix;const prefixes$2=["Moz","Webkit","O","ms"];function getPrefix(){var x_;let eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const $P=(x_=window.document)===null||x_===void 0||(x_=x_.documentElement)===null||x_===void 0?void 0:x_.style;if(!$P||eme in $P)return"";for(let tme=0;tme<prefixes$2.length;tme++)if(browserPrefixToKey(eme,prefixes$2[tme])in $P)return prefixes$2[tme];return""}function browserPrefixToKey(x_,eme){return eme?"".concat(eme).concat(kebabToTitleCase(x_)):x_}function browserPrefixToStyle(x_,eme){return eme?"-".concat(eme.toLowerCase(),"-").concat(x_):x_}function kebabToTitleCase(x_){let eme="",$P=!0;for(let tme=0;tme<x_.length;tme++)$P?(eme+=x_[tme].toUpperCase(),$P=!1):x_[tme]==="-"?$P=!0:eme+=x_[tme];return eme}getPrefix$1.default=getPrefix();Object.defineProperty(domFns,"__esModule",{value:!0});domFns.addClassName=addClassName;domFns.addEvent=addEvent$1;domFns.addUserSelectStyles=addUserSelectStyles;domFns.createCSSTransform=createCSSTransform;domFns.createSVGTransform=createSVGTransform;domFns.getTouch=getTouch;domFns.getTouchIdentifier=getTouchIdentifier;domFns.getTranslation=getTranslation;domFns.innerHeight=innerHeight$1;domFns.innerWidth=innerWidth$1;domFns.matchesSelector=matchesSelector;domFns.matchesSelectorAndParentsTo=matchesSelectorAndParentsTo;domFns.offsetXYFromParent=offsetXYFromParent;domFns.outerHeight=outerHeight;domFns.outerWidth=outerWidth;domFns.removeClassName=removeClassName;domFns.removeEvent=removeEvent$1;domFns.removeUserSelectStyles=removeUserSelectStyles;var _shims$2=shims,_getPrefix=_interopRequireWildcard$1(getPrefix$1);function _getRequireWildcardCache$1(x_){if(typeof WeakMap!="function")return null;var eme=new WeakMap,$P=new WeakMap;return(_getRequireWildcardCache$1=function(tme){return tme?$P:eme})(x_)}function _interopRequireWildcard$1(x_,eme){if(x_&&x_.__esModule)return x_;if(x_===null||typeof x_!="object"&&typeof x_!="function")return{default:x_};var $P=_getRequireWildcardCache$1(eme);if($P&&$P.has(x_))return $P.get(x_);var tme={},ame=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var nme in x_)if(nme!=="default"&&Object.prototype.hasOwnProperty.call(x_,nme)){var rme=ame?Object.getOwnPropertyDescriptor(x_,nme):null;rme&&(rme.get||rme.set)?Object.defineProperty(tme,nme,rme):tme[nme]=x_[nme]}return tme.default=x_,$P&&$P.set(x_,tme),tme}let matchesSelectorFunc="";function matchesSelector(x_,eme){return matchesSelectorFunc||(matchesSelectorFunc=(0,_shims$2.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function($P){return(0,_shims$2.isFunction)(x_[$P])})),(0,_shims$2.isFunction)(x_[matchesSelectorFunc])?x_[matchesSelectorFunc](eme):!1}function matchesSelectorAndParentsTo(x_,eme,$P){let tme=x_;do{if(matchesSelector(tme,eme))return!0;if(tme===$P)return!1;tme=tme.parentNode}while(tme);return!1}function addEvent$1(x_,eme,$P,tme){if(!x_)return;const ame={capture:!0,...tme};x_.addEventListener?x_.addEventListener(eme,$P,ame):x_.attachEvent?x_.attachEvent("on"+eme,$P):x_["on"+eme]=$P}function removeEvent$1(x_,eme,$P,tme){if(!x_)return;const ame={capture:!0,...tme};x_.removeEventListener?x_.removeEventListener(eme,$P,ame):x_.detachEvent?x_.detachEvent("on"+eme,$P):x_["on"+eme]=null}function outerHeight(x_){let eme=x_.clientHeight;const $P=x_.ownerDocument.defaultView.getComputedStyle(x_);return eme+=(0,_shims$2.int)($P.borderTopWidth),eme+=(0,_shims$2.int)($P.borderBottomWidth),eme}function outerWidth(x_){let eme=x_.clientWidth;const $P=x_.ownerDocument.defaultView.getComputedStyle(x_);return eme+=(0,_shims$2.int)($P.borderLeftWidth),eme+=(0,_shims$2.int)($P.borderRightWidth),eme}function innerHeight$1(x_){let eme=x_.clientHeight;const $P=x_.ownerDocument.defaultView.getComputedStyle(x_);return eme-=(0,_shims$2.int)($P.paddingTop),eme-=(0,_shims$2.int)($P.paddingBottom),eme}function innerWidth$1(x_){let eme=x_.clientWidth;const $P=x_.ownerDocument.defaultView.getComputedStyle(x_);return eme-=(0,_shims$2.int)($P.paddingLeft),eme-=(0,_shims$2.int)($P.paddingRight),eme}function offsetXYFromParent(x_,eme,$P){const ame=eme===eme.ownerDocument.body?{left:0,top:0}:eme.getBoundingClientRect(),nme=(x_.clientX+eme.scrollLeft-ame.left)/$P,rme=(x_.clientY+eme.scrollTop-ame.top)/$P;return{x:nme,y:rme}}function createCSSTransform(x_,eme){const $P=getTranslation(x_,eme,"px");return{[(0,_getPrefix.browserPrefixToKey)("transform",_getPrefix.default)]:$P}}function createSVGTransform(x_,eme){return getTranslation(x_,eme,"")}function getTranslation(x_,eme,$P){let{x:tme,y:ame}=x_,nme="translate(".concat(tme).concat($P,",").concat(ame).concat($P,")");if(eme){const rme="".concat(typeof eme.x=="string"?eme.x:eme.x+$P),ime="".concat(typeof eme.y=="string"?eme.y:eme.y+$P);nme="translate(".concat(rme,", ").concat(ime,")")+nme}return nme}function getTouch(x_,eme){return x_.targetTouches&&(0,_shims$2.findInArray)(x_.targetTouches,$P=>eme===$P.identifier)||x_.changedTouches&&(0,_shims$2.findInArray)(x_.changedTouches,$P=>eme===$P.identifier)}function getTouchIdentifier(x_){if(x_.targetTouches&&x_.targetTouches[0])return x_.targetTouches[0].identifier;if(x_.changedTouches&&x_.changedTouches[0])return x_.changedTouches[0].identifier}function addUserSelectStyles(x_){if(!x_)return;let eme=x_.getElementById("react-draggable-style-el");eme||(eme=x_.createElement("style"),eme.type="text/css",eme.id="react-draggable-style-el",eme.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,eme.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,x_.getElementsByTagName("head")[0].appendChild(eme)),x_.body&&addClassName(x_.body,"react-draggable-transparent-selection")}function removeUserSelectStyles(x_){if(x_)try{if(x_.body&&removeClassName(x_.body,"react-draggable-transparent-selection"),x_.selection)x_.selection.empty();else{const eme=(x_.defaultView||window).getSelection();eme&&eme.type!=="Caret"&&eme.removeAllRanges()}}catch{}}function addClassName(x_,eme){x_.classList?x_.classList.add(eme):x_.className.match(new RegExp("(?:^|\\s)".concat(eme,"(?!\\S)")))||(x_.className+=" ".concat(eme))}function removeClassName(x_,eme){x_.classList?x_.classList.remove(eme):x_.className=x_.className.replace(new RegExp("(?:^|\\s)".concat(eme,"(?!\\S)"),"g"),"")}var positionFns={};Object.defineProperty(positionFns,"__esModule",{value:!0});positionFns.canDragX=canDragX;positionFns.canDragY=canDragY;positionFns.createCoreData=createCoreData;positionFns.createDraggableData=createDraggableData;positionFns.getBoundPosition=getBoundPosition;positionFns.getControlPosition=getControlPosition;positionFns.snapToGrid=snapToGrid;var _shims$1=shims,_domFns$1=domFns;function getBoundPosition(x_,eme,$P){if(!x_.props.bounds)return[eme,$P];let{bounds:tme}=x_.props;tme=typeof tme=="string"?tme:cloneBounds(tme);const ame=findDOMNode(x_);if(typeof tme=="string"){const{ownerDocument:nme}=ame,rme=nme.defaultView;let ime;if(tme==="parent"?ime=ame.parentNode:ime=nme.querySelector(tme),!(ime instanceof rme.HTMLElement))throw new Error('Bounds selector "'+tme+'" could not find an element.');const ome=ime,lme=rme.getComputedStyle(ame),sme=rme.getComputedStyle(ome);tme={left:-ame.offsetLeft+(0,_shims$1.int)(sme.paddingLeft)+(0,_shims$1.int)(lme.marginLeft),top:-ame.offsetTop+(0,_shims$1.int)(sme.paddingTop)+(0,_shims$1.int)(lme.marginTop),right:(0,_domFns$1.innerWidth)(ome)-(0,_domFns$1.outerWidth)(ame)-ame.offsetLeft+(0,_shims$1.int)(sme.paddingRight)-(0,_shims$1.int)(lme.marginRight),bottom:(0,_domFns$1.innerHeight)(ome)-(0,_domFns$1.outerHeight)(ame)-ame.offsetTop+(0,_shims$1.int)(sme.paddingBottom)-(0,_shims$1.int)(lme.marginBottom)}}return(0,_shims$1.isNum)(tme.right)&&(eme=Math.min(eme,tme.right)),(0,_shims$1.isNum)(tme.bottom)&&($P=Math.min($P,tme.bottom)),(0,_shims$1.isNum)(tme.left)&&(eme=Math.max(eme,tme.left)),(0,_shims$1.isNum)(tme.top)&&($P=Math.max($P,tme.top)),[eme,$P]}function snapToGrid(x_,eme,$P){const tme=Math.round(eme/x_[0])*x_[0],ame=Math.round($P/x_[1])*x_[1];return[tme,ame]}function canDragX(x_){return x_.props.axis==="both"||x_.props.axis==="x"}function canDragY(x_){return x_.props.axis==="both"||x_.props.axis==="y"}function getControlPosition(x_,eme,$P){const tme=typeof eme=="number"?(0,_domFns$1.getTouch)(x_,eme):null;if(typeof eme=="number"&&!tme)return null;const ame=findDOMNode($P),nme=$P.props.offsetParent||ame.offsetParent||ame.ownerDocument.body;return(0,_domFns$1.offsetXYFromParent)(tme||x_,nme,$P.props.scale)}function createCoreData(x_,eme,$P){const tme=!(0,_shims$1.isNum)(x_.lastX),ame=findDOMNode(x_);return tme?{node:ame,deltaX:0,deltaY:0,lastX:eme,lastY:$P,x:eme,y:$P}:{node:ame,deltaX:eme-x_.lastX,deltaY:$P-x_.lastY,lastX:x_.lastX,lastY:x_.lastY,x:eme,y:$P}}function createDraggableData(x_,eme){const $P=x_.props.scale;return{node:eme.node,x:x_.state.x+eme.deltaX/$P,y:x_.state.y+eme.deltaY/$P,deltaX:eme.deltaX/$P,deltaY:eme.deltaY/$P,lastX:x_.state.x,lastY:x_.state.y}}function cloneBounds(x_){return{left:x_.left,top:x_.top,right:x_.right,bottom:x_.bottom}}function findDOMNode(x_){const eme=x_.findDOMNode();if(!eme)throw new Error("<DraggableCore>: Unmounted during event!");return eme}var DraggableCore$2={},log$1={};Object.defineProperty(log$1,"__esModule",{value:!0});log$1.default=log;function log(){}Object.defineProperty(DraggableCore$2,"__esModule",{value:!0});DraggableCore$2.default=void 0;var React=_interopRequireWildcard(reactExports),_propTypes$2=_interopRequireDefault$k(propTypesExports),_reactDom$1=_interopRequireDefault$k(reactDomExports),_domFns=domFns,_positionFns=positionFns,_shims=shims,_log=_interopRequireDefault$k(log$1);function _interopRequireDefault$k(x_){return x_&&x_.__esModule?x_:{default:x_}}function _getRequireWildcardCache(x_){if(typeof WeakMap!="function")return null;var eme=new WeakMap,$P=new WeakMap;return(_getRequireWildcardCache=function(tme){return tme?$P:eme})(x_)}function _interopRequireWildcard(x_,eme){if(x_&&x_.__esModule)return x_;if(x_===null||typeof x_!="object"&&typeof x_!="function")return{default:x_};var $P=_getRequireWildcardCache(eme);if($P&&$P.has(x_))return $P.get(x_);var tme={},ame=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var nme in x_)if(nme!=="default"&&Object.prototype.hasOwnProperty.call(x_,nme)){var rme=ame?Object.getOwnPropertyDescriptor(x_,nme):null;rme&&(rme.get||rme.set)?Object.defineProperty(tme,nme,rme):tme[nme]=x_[nme]}return tme.default=x_,$P&&$P.set(x_,tme),tme}function _defineProperty$5(x_,eme,$P){return eme=_toPropertyKey(eme),eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _toPropertyKey(x_){var eme=_toPrimitive(x_,"string");return typeof eme=="symbol"?eme:String(eme)}function _toPrimitive(x_,eme){if(typeof x_!="object"||x_===null)return x_;var $P=x_[Symbol.toPrimitive];if($P!==void 0){var tme=$P.call(x_,eme||"default");if(typeof tme!="object")return tme;throw new TypeError("@@toPrimitive must return a primitive value.")}return(eme==="string"?String:Number)(x_)}const eventsFor={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let dragEventFor=eventsFor.mouse,DraggableCore$1=class extends React.Component{constructor(){super(...arguments),_defineProperty$5(this,"dragging",!1),_defineProperty$5(this,"lastX",NaN),_defineProperty$5(this,"lastY",NaN),_defineProperty$5(this,"touchIdentifier",null),_defineProperty$5(this,"mounted",!1),_defineProperty$5(this,"handleDragStart",eme=>{if(this.props.onMouseDown(eme),!this.props.allowAnyClick&&typeof eme.button=="number"&&eme.button!==0)return!1;const $P=this.findDOMNode();if(!$P||!$P.ownerDocument||!$P.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:tme}=$P;if(this.props.disabled||!(eme.target instanceof tme.defaultView.Node)||this.props.handle&&!(0,_domFns.matchesSelectorAndParentsTo)(eme.target,this.props.handle,$P)||this.props.cancel&&(0,_domFns.matchesSelectorAndParentsTo)(eme.target,this.props.cancel,$P))return;eme.type==="touchstart"&&eme.preventDefault();const ame=(0,_domFns.getTouchIdentifier)(eme);this.touchIdentifier=ame;const nme=(0,_positionFns.getControlPosition)(eme,ame,this);if(nme==null)return;const{x:rme,y:ime}=nme,ome=(0,_positionFns.createCoreData)(this,rme,ime);(0,_log.default)("DraggableCore: handleDragStart: %j",ome),(0,_log.default)("calling",this.props.onStart),!(this.props.onStart(eme,ome)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,_domFns.addUserSelectStyles)(tme),this.dragging=!0,this.lastX=rme,this.lastY=ime,(0,_domFns.addEvent)(tme,dragEventFor.move,this.handleDrag),(0,_domFns.addEvent)(tme,dragEventFor.stop,this.handleDragStop))}),_defineProperty$5(this,"handleDrag",eme=>{const $P=(0,_positionFns.getControlPosition)(eme,this.touchIdentifier,this);if($P==null)return;let{x:tme,y:ame}=$P;if(Array.isArray(this.props.grid)){let ime=tme-this.lastX,ome=ame-this.lastY;if([ime,ome]=(0,_positionFns.snapToGrid)(this.props.grid,ime,ome),!ime&&!ome)return;tme=this.lastX+ime,ame=this.lastY+ome}const nme=(0,_positionFns.createCoreData)(this,tme,ame);if((0,_log.default)("DraggableCore: handleDrag: %j",nme),this.props.onDrag(eme,nme)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const ome=document.createEvent("MouseEvents");ome.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(ome)}return}this.lastX=tme,this.lastY=ame}),_defineProperty$5(this,"handleDragStop",eme=>{if(!this.dragging)return;const $P=(0,_positionFns.getControlPosition)(eme,this.touchIdentifier,this);if($P==null)return;let{x:tme,y:ame}=$P;if(Array.isArray(this.props.grid)){let ome=tme-this.lastX||0,lme=ame-this.lastY||0;[ome,lme]=(0,_positionFns.snapToGrid)(this.props.grid,ome,lme),tme=this.lastX+ome,ame=this.lastY+lme}const nme=(0,_positionFns.createCoreData)(this,tme,ame);if(this.props.onStop(eme,nme)===!1||this.mounted===!1)return!1;const ime=this.findDOMNode();ime&&this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)(ime.ownerDocument),(0,_log.default)("DraggableCore: handleDragStop: %j",nme),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,ime&&((0,_log.default)("DraggableCore: Removing handlers"),(0,_domFns.removeEvent)(ime.ownerDocument,dragEventFor.move,this.handleDrag),(0,_domFns.removeEvent)(ime.ownerDocument,dragEventFor.stop,this.handleDragStop))}),_defineProperty$5(this,"onMouseDown",eme=>(dragEventFor=eventsFor.mouse,this.handleDragStart(eme))),_defineProperty$5(this,"onMouseUp",eme=>(dragEventFor=eventsFor.mouse,this.handleDragStop(eme))),_defineProperty$5(this,"onTouchStart",eme=>(dragEventFor=eventsFor.touch,this.handleDragStart(eme))),_defineProperty$5(this,"onTouchEnd",eme=>(dragEventFor=eventsFor.touch,this.handleDragStop(eme)))}componentDidMount(){this.mounted=!0;const eme=this.findDOMNode();eme&&(0,_domFns.addEvent)(eme,eventsFor.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const eme=this.findDOMNode();if(eme){const{ownerDocument:$P}=eme;(0,_domFns.removeEvent)($P,eventsFor.mouse.move,this.handleDrag),(0,_domFns.removeEvent)($P,eventsFor.touch.move,this.handleDrag),(0,_domFns.removeEvent)($P,eventsFor.mouse.stop,this.handleDragStop),(0,_domFns.removeEvent)($P,eventsFor.touch.stop,this.handleDragStop),(0,_domFns.removeEvent)(eme,eventsFor.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,_domFns.removeUserSelectStyles)($P)}}findDOMNode(){var eme,$P;return(eme=this.props)!==null&&eme!==void 0&&eme.nodeRef?($P=this.props)===null||$P===void 0||($P=$P.nodeRef)===null||$P===void 0?void 0:$P.current:_reactDom$1.default.findDOMNode(this)}render(){return React.cloneElement(React.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};DraggableCore$2.default=DraggableCore$1;_defineProperty$5(DraggableCore$1,"displayName","DraggableCore");_defineProperty$5(DraggableCore$1,"propTypes",{allowAnyClick:_propTypes$2.default.bool,children:_propTypes$2.default.node.isRequired,disabled:_propTypes$2.default.bool,enableUserSelectHack:_propTypes$2.default.bool,offsetParent:function(x_,eme){if(x_[eme]&&x_[eme].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:_propTypes$2.default.arrayOf(_propTypes$2.default.number),handle:_propTypes$2.default.string,cancel:_propTypes$2.default.string,nodeRef:_propTypes$2.default.object,onStart:_propTypes$2.default.func,onDrag:_propTypes$2.default.func,onStop:_propTypes$2.default.func,onMouseDown:_propTypes$2.default.func,scale:_propTypes$2.default.number,className:_shims.dontSetMe,style:_shims.dontSetMe,transform:_shims.dontSetMe});_defineProperty$5(DraggableCore$1,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),Object.defineProperty(x_,"DraggableCore",{enumerable:!0,get:function(){return ome.default}}),x_.default=void 0;var eme=dme(reactExports),$P=sme(propTypesExports),tme=sme(reactDomExports),ame=sme(require$$3),nme=domFns,rme=positionFns,ime=shims,ome=sme(DraggableCore$2),lme=sme(log$1);function sme(mme){return mme&&mme.__esModule?mme:{default:mme}}function cme(mme){if(typeof WeakMap!="function")return null;var vme=new WeakMap,gme=new WeakMap;return(cme=function(yme){return yme?gme:vme})(mme)}function dme(mme,vme){if(mme&&mme.__esModule)return mme;if(mme===null||typeof mme!="object"&&typeof mme!="function")return{default:mme};var gme=cme(vme);if(gme&&gme.has(mme))return gme.get(mme);var yme={},_me=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $me in mme)if($me!=="default"&&Object.prototype.hasOwnProperty.call(mme,$me)){var Cme=_me?Object.getOwnPropertyDescriptor(mme,$me):null;Cme&&(Cme.get||Cme.set)?Object.defineProperty(yme,$me,Cme):yme[$me]=mme[$me]}return yme.default=mme,gme&&gme.set(mme,yme),yme}function ume(){return ume=Object.assign?Object.assign.bind():function(mme){for(var vme=1;vme<arguments.length;vme++){var gme=arguments[vme];for(var yme in gme)Object.prototype.hasOwnProperty.call(gme,yme)&&(mme[yme]=gme[yme])}return mme},ume.apply(this,arguments)}function fme(mme,vme,gme){return vme=pme(vme),vme in mme?Object.defineProperty(mme,vme,{value:gme,enumerable:!0,configurable:!0,writable:!0}):mme[vme]=gme,mme}function pme(mme){var vme=hme(mme,"string");return typeof vme=="symbol"?vme:String(vme)}function hme(mme,vme){if(typeof mme!="object"||mme===null)return mme;var gme=mme[Symbol.toPrimitive];if(gme!==void 0){var yme=gme.call(mme,vme||"default");if(typeof yme!="object")return yme;throw new TypeError("@@toPrimitive must return a primitive value.")}return(vme==="string"?String:Number)(mme)}class bme extends eme.Component{static getDerivedStateFromProps(vme,gme){let{position:yme}=vme,{prevPropsPosition:_me}=gme;return yme&&(!_me||yme.x!==_me.x||yme.y!==_me.y)?((0,lme.default)("Draggable: getDerivedStateFromProps %j",{position:yme,prevPropsPosition:_me}),{x:yme.x,y:yme.y,prevPropsPosition:{...yme}}):null}constructor(vme){super(vme),fme(this,"onDragStart",(gme,yme)=>{if((0,lme.default)("Draggable: onDragStart: %j",yme),this.props.onStart(gme,(0,rme.createDraggableData)(this,yme))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),fme(this,"onDrag",(gme,yme)=>{if(!this.state.dragging)return!1;(0,lme.default)("Draggable: onDrag: %j",yme);const _me=(0,rme.createDraggableData)(this,yme),$me={x:_me.x,y:_me.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Sme,y:Eme}=$me;$me.x+=this.state.slackX,$me.y+=this.state.slackY;const[xme,Tme]=(0,rme.getBoundPosition)(this,$me.x,$me.y);$me.x=xme,$me.y=Tme,$me.slackX=this.state.slackX+(Sme-$me.x),$me.slackY=this.state.slackY+(Eme-$me.y),_me.x=$me.x,_me.y=$me.y,_me.deltaX=$me.x-this.state.x,_me.deltaY=$me.y-this.state.y}if(this.props.onDrag(gme,_me)===!1)return!1;this.setState($me)}),fme(this,"onDragStop",(gme,yme)=>{if(!this.state.dragging||this.props.onStop(gme,(0,rme.createDraggableData)(this,yme))===!1)return!1;(0,lme.default)("Draggable: onDragStop: %j",yme);const $me={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Sme,y:Eme}=this.props.position;$me.x=Sme,$me.y=Eme}this.setState($me)}),this.state={dragging:!1,dragged:!1,x:vme.position?vme.position.x:vme.defaultPosition.x,y:vme.position?vme.position.y:vme.defaultPosition.y,prevPropsPosition:{...vme.position},slackX:0,slackY:0,isElementSVG:!1},vme.position&&!(vme.onDrag||vme.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var vme,gme;return(vme=(gme=this.props)===null||gme===void 0||(gme=gme.nodeRef)===null||gme===void 0?void 0:gme.current)!==null&&vme!==void 0?vme:tme.default.findDOMNode(this)}render(){const{axis:vme,bounds:gme,children:yme,defaultPosition:_me,defaultClassName:$me,defaultClassNameDragging:Cme,defaultClassNameDragged:Sme,position:Eme,positionOffset:xme,scale:Tme,...Ome}=this.props;let Rme={},Nme=null;const Pme=!!!Eme||this.state.dragging,Mme=Eme||_me,kme={x:(0,rme.canDragX)(this)&&Pme?this.state.x:Mme.x,y:(0,rme.canDragY)(this)&&Pme?this.state.y:Mme.y};this.state.isElementSVG?Nme=(0,nme.createSVGTransform)(kme,xme):Rme=(0,nme.createCSSTransform)(kme,xme);const Bme=(0,ame.default)(yme.props.className||"",$me,{[Cme]:this.state.dragging,[Sme]:this.state.dragged});return eme.createElement(ome.default,ume({},Ome,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),eme.cloneElement(eme.Children.only(yme),{className:Bme,style:{...yme.props.style,...Rme},transform:Nme}))}}x_.default=bme,fme(bme,"displayName","Draggable"),fme(bme,"propTypes",{...ome.default.propTypes,axis:$P.default.oneOf(["both","x","y","none"]),bounds:$P.default.oneOfType([$P.default.shape({left:$P.default.number,right:$P.default.number,top:$P.default.number,bottom:$P.default.number}),$P.default.string,$P.default.oneOf([!1])]),defaultClassName:$P.default.string,defaultClassNameDragging:$P.default.string,defaultClassNameDragged:$P.default.string,defaultPosition:$P.default.shape({x:$P.default.number,y:$P.default.number}),positionOffset:$P.default.shape({x:$P.default.oneOfType([$P.default.number,$P.default.string]),y:$P.default.oneOfType([$P.default.number,$P.default.string])}),position:$P.default.shape({x:$P.default.number,y:$P.default.number}),className:ime.dontSetMe,style:ime.dontSetMe,transform:ime.dontSetMe}),fme(bme,"defaultProps",{...ome.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Draggable$2);const{default:Draggable,DraggableCore}=Draggable$2;cjs.exports=Draggable;cjs.exports.default=Draggable;var DraggableCore_1=cjs.exports.DraggableCore=DraggableCore,cjsExports=cjs.exports;const Draggable$1=getDefaultExportFromCjs(cjsExports);var _a$b,_b$3,getContainerWithFullscreen=function(x_){return function(){var eme=typeof x_=="function"?x_():x_,$P=document.fullscreenElement;return $P&&(!eme||!$P.contains(eme))?$P:eme||null}},fadeStyles$5=(_a$b={},_a$b[ENTERING]="in",_a$b[ENTERED]="in",_a$b[EXITING]="out",_a$b),contentFadeStyles=(_b$3={},_b$3[ENTERING]="in",_b$3[ENTERED]="",_b$3[EXITING]="out",_b$3),Modal=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.isRootClosed=!1,$P.state={dragPos:void 0},$P.handleEnter=function(){if(document.body.classList.add("is-modalOpened"),window.innerWidth-document.documentElement.clientWidth>0||document.body.scrollHeight>document.body.clientHeight){var tme=getScrollbarWidth$1();document.body.style.width="calc(100% - ".concat(tme,"px)")}},$P.handleEntered=function(){var tme=$P.props.onEntered;document.body.addEventListener("mousedown",$P.handleRootMouseDownCapture,!0),document.body.addEventListener("mouseup",$P.handleRootMouseUpCapture,!0),document.body.addEventListener("mouseup",$P.handleRootMouseUp),tme&&tme()},$P.handleExited=function(){var tme=$P.props.onExited;document.body.removeEventListener("mouseup",$P.handleRootMouseUp),document.body.removeEventListener("mousedown",$P.handleRootMouseDownCapture,!0),document.body.removeEventListener("mouseup",$P.handleRootMouseUpCapture,!0),tme&&tme(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||(document.body.classList.remove("is-modalOpened"),document.body.style.width="")},200)},$P.modalRef=function(tme){$P.modalDom=tme;var ame=$P.props.classPrefix;tme?(addModal$1($P),tme.classList.add("".concat(ame,"Modal--").concat(current(),"th"))):removeModal($P)},$P.handleDragStart=function(tme,ame){var nme=ame.node,rme=nme.offsetParent;if(!(!nme||!rme)){var ime=window.document.documentElement,ome=ime.clientWidth,lme=ime.clientHeight,sme=getComputedStyle(nme),cme=parseInt(sme.marginTop,10),dme=parseInt(sme.width,10),ume=parseInt(sme.height,10),fme={left:0,right:ome-dme,top:-cme,bottom:lme-ume-cme},pme=rme.getBoundingClientRect(),hme=nme.getBoundingClientRect(),bme=hme.left,mme=pme.left,vme=hme.top,gme=pme.top,yme=bme-mme+rme.scrollLeft,_me=vme-gme+rme.scrollTop-cme;$P.setState({dragPos:{x:yme,y:_me},bounds:fme}),tme.stopPropagation()}},$P.handleDrag=function(tme,ame){var nme=ame.deltaX,rme=ame.deltaY;if(tme.stopPropagation(),!!$P.state.dragPos){var ime=$P.state,ome=ime.dragPos,lme=ome.x,sme=ome.y,cme=ime.bounds,dme=sme+rme,ume=lme+nme;isNumber$5(cme==null?void 0:cme.right)&&(ume=Math.min(ume,cme.right)),isNumber$5(cme==null?void 0:cme.bottom)&&(dme=Math.min(dme,cme.bottom)),isNumber$5(cme==null?void 0:cme.left)&&(ume=Math.max(ume,cme.left)),isNumber$5(cme==null?void 0:cme.top)&&(dme=Math.max(dme,cme.top)),$P.setState({dragPos:{x:ume,y:dme}})}},$P.handleDragStop=function(tme){tme.stopPropagation()},$P.getDragStyle=function(){var tme=$P.props.draggable,ame=$P.state.dragPos;if(!ame||!tme)return{};var nme=ame.x,rme=ame.y;return{top:"".concat(rme,"px"),left:"".concat(nme,"px"),position:"absolute"}},$P}return eme.prototype.componentDidMount=function(){this.props.show&&(this.handleEnter(),this.handleEntered())},eme.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited()},eme.prototype.handleRootMouseDownCapture=function($P){var tme=$P.target,ame=this.props,nme=ame.closeOnOutside,rme=ame.classPrefix,ime=ame.mobileUI,ome=$P.button===1&&window.event!==null||$P.button===0;this.isRootClosed=!!(ome&&nme&&tme&&this.modalDom&&(!ime&&!this.modalDom.contains(tme)&&!tme.closest("[role=dialog]")||tme.matches(".".concat(rme,"Modal"))&&tme===this.modalDom))},eme.prototype.handleRootMouseUpCapture=function($P){this.isRootClosed&&this.handleRootMouseDownCapture($P)},eme.prototype.handleRootMouseUp=function($P){var tme=this.props.onHide;this.isRootClosed&&!$P.defaultPrevented&&tme($P)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.contentClassName,rme=tme.children,ime=tme.container,ome=tme.show,lme=tme.size,sme=tme.style,cme=tme.overlay,dme=tme.width,ume=tme.height,fme=tme.modalClassName,pme=tme.modalMaskClassName,hme=tme.classnames,bme=tme.mobileUI,mme=tme.draggable,vme=tme.classPrefix,gme={width:sme!=null&&sme.width?sme==null?void 0:sme.width:dme,height:sme!=null&&sme.height?sme==null?void 0:sme.height:ume};return React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,in:ome,timeout:500,onEnter:this.handleEnter,onExited:this.handleExited,onEntered:this.handleEntered},function(yme){var _me;return React__default.createElement(Portal,{container:getContainerWithFullscreen(ime)},React__default.createElement("div",{ref:$P.modalRef,role:"dialog",className:hme("amis-dialog-widget Modal",(_me={},_me["Modal--".concat(lme)]=lme,_me),ame)},cme?React__default.createElement("div",{className:hme("Modal-overlay",fadeStyles$5[yme],pme)}):null,React__default.createElement(DraggableCore_1,{disabled:!mme||bme,onStart:$P.handleDragStart,onDrag:$P.handleDrag,onStop:$P.handleDragStop,handle:".".concat(vme,"Modal-header")},React__default.createElement("div",{className:hme("Modal-content",mme&&!bme?"Modal-draggable":"",lme==="custom"?"Modal-content-custom":"",nme,fme,contentFadeStyles[yme]),style:__assign$3(__assign$3({},gme),$P.getDragStyle())},yme===EXITED?null:rme))))})},eme.defaultProps={container:document.body,size:"",overlay:!0,draggable:!1},eme.Header=themeable(localeable(function($P){var tme=$P.classnames,ame=$P.className,nme=$P.showCloseButton,rme=$P.onClose,ime=$P.children;$P.classPrefix;var ome=$P.translate;$P.forwardedRef;var lme=__rest$14($P,["classnames","className","showCloseButton","onClose","children","classPrefix","translate","forwardedRef"]);return React__default.createElement("div",__assign$3({},lme,{className:tme("Modal-header",ame)}),nme!==!1?React__default.createElement("a",{"data-tooltip":ome("Dialog.close"),"data-position":"left",onClick:rme,className:tme("Modal-close")},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):null,ime)})),eme.Title=themeable(function($P){var tme=$P.classnames,ame=$P.className,nme=$P.children;$P.classPrefix,$P.forwardedRef;var rme=__rest$14($P,["classnames","className","children","classPrefix","forwardedRef"]);return React__default.createElement("div",__assign$3({},rme,{className:tme("Modal-title",ame)}),nme)}),eme.Body=themeable(function($P){var tme=$P.classnames,ame=$P.className,nme=$P.children;$P.classPrefix,$P.forwardedRef;var rme=__rest$14($P,["classnames","className","children","classPrefix","forwardedRef"]);return React__default.createElement("div",__assign$3({},rme,{className:tme("Modal-body",ame)}),nme)}),eme.Footer=themeable(function($P){var tme=$P.classnames,ame=$P.className,nme=$P.children;$P.classPrefix,$P.forwardedRef;var rme=__rest$14($P,["classnames","className","children","classPrefix","forwardedRef"]);return React__default.createElement("div",__assign$3({},rme,{className:tme("Modal-footer",ame)}),nme)}),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseDownCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUpCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUp",null),eme}(React__default.Component),FinalModal=themeable(localeable(Modal)),Html=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.htmlRef=tme.htmlRef.bind(tme),tme}return eme.prototype.componentDidUpdate=function($P){this.props.html!==$P.html&&this._render()},eme.prototype.htmlRef=function($P){this.dom=$P,$P&&this._render()},eme.prototype._render=function(){var $P=this.props,tme=$P.html,ame=$P.filterHtml;tme&&(this.dom.innerHTML=ame?ame(tme):tme)},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.wrapperComponent,nme=$P.inline;$P.classPrefix;var rme=$P.classnames,ime=ame||(nme?"span":"div");return React__default.createElement(ime,{ref:this.htmlRef,className:rme("Html",tme)})},eme.defaultProps={inline:!0},eme}(React__default.Component),Html$1=themeable(Html),Tooltip=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props;$P.classPrefix;var tme=$P.className,ame=$P.tooltipTheme,nme=$P.title,rme=$P.children,ime=$P.arrowProps,ome=$P.style;$P.placement,$P.arrowOffsetLeft,$P.arrowOffsetTop,$P.positionLeft,$P.positionTop;var lme=$P.classnames,sme=$P.activePlacement,cme=$P.showArrow,dme=$P.onMouseEnter,ume=$P.onMouseLeave,fme=$P.bodyClassName;$P.componentId;var pme=__rest$14($P,["classPrefix","className","tooltipTheme","title","children","arrowProps","style","placement","arrowOffsetLeft","arrowOffsetTop","positionLeft","positionTop","classnames","activePlacement","showArrow","onMouseEnter","onMouseLeave","bodyClassName","componentId"]);return React__default.createElement("div",__assign$3({},pme,{className:lme("Tooltip",sme?"Tooltip--".concat(sme):"",tme,"Tooltip--".concat(ame==="dark"?"dark":"light")),style:ome,onMouseEnter:dme,onMouseLeave:ume,role:"tooltip"}),cme?React__default.createElement("div",__assign$3({className:lme("Tooltip-arrow")},ime)):null,nme?React__default.createElement("div",{className:lme("Tooltip-title")},nme):null,React__default.createElement("div",{className:lme(fme,"Tooltip-body")},rme))},eme.defaultProps={className:"",tooltipTheme:"light",showArrow:!0},eme}(React__default.Component),Tooltip$1=themeable(Tooltip),waitToHide=null,TooltipWrapper=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.moutned=!0,tme.tooltipMouseEnter=function(ame){var nme,rme=tme.props.tooltip,ime=(nme=rme==null?void 0:rme.enterable)!==null&&nme!==void 0?nme:!0;ime&&clearTimeout(tme.timer)},tme.tooltipMouseLeave=function(ame){var nme,rme=tme.props.tooltip,ime=(nme=rme==null?void 0:rme.enterable)!==null&&nme!==void 0?nme:!0;ime&&clearTimeout(tme.timer),tme.hide()},tme.getTarget=tme.getTarget.bind(tme),tme.show=tme.show.bind(tme),tme.hide=tme.hide.bind(tme),tme.handleShow=tme.handleShow.bind(tme),tme.handleHide=tme.handleHide.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleFocus=tme.handleFocus.bind(tme),tme.handleBlur=tme.handleBlur.bind(tme),tme.handleMouseOver=tme.handleMouseOver.bind(tme),tme.handleMouseOut=tme.handleMouseOut.bind(tme),tme.state={show:!1},tme}return eme.prototype.componentWillUnmount=function(){clearTimeout(this.timer),this.moutned=!1},eme.prototype.getTarget=function(){return reactDomExports.findDOMNode(this)},eme.prototype.show=function(){var $P=this;this.setState({show:!0},function(){$P.props.onVisibleChange&&$P.props.onVisibleChange(!0)})},eme.prototype.hide=function(){var $P=this;waitToHide=null,this.moutned&&this.setState({show:!1},function(){$P.props.onVisibleChange&&$P.props.onVisibleChange(!1)})},eme.prototype.getChildProps=function(){var $P=React__default.Children.only(this.props.children);return $P&&$P.props},eme.prototype.handleShow=function(){this.timer&&clearTimeout(this.timer),waitToHide&&waitToHide();var $P=this.props.tooltip;if(isObject$8($P)){var tme=$P.mouseEnterDelay,ame=tme===void 0?0:tme;this.timer=setTimeout(this.show,ame)}else this.timer=setTimeout(this.show,0)},eme.prototype.handleHide=function(){clearTimeout(this.timer);var $P=this.props,tme=$P.delay,ame=$P.tooltip;if(waitToHide=this.hide.bind(this),isObject$8(ame)){var nme=ame.mouseLeaveDelay,rme=nme===void 0?300:nme;this.timer=setTimeout(this.hide,rme)}else this.timer=setTimeout(this.hide,tme)},eme.prototype.handleFocus=function($P){var tme=this.getChildProps().onFocus;this.handleShow(),tme&&tme($P)},eme.prototype.handleBlur=function($P){var tme=this.getChildProps().onBlur;this.handleHide(),tme&&tme($P)},eme.prototype.handleMouseOver=function($P){this.handleMouseOverOut(this.handleShow,$P,"fromElement")},eme.prototype.handleMouseOut=function($P){this.handleMouseOverOut(this.handleHide,$P,"toElement")},eme.prototype.handleMouseOverOut=function($P,tme,ame){var nme=tme.currentTarget,rme=tme.relatedTarget||tme.nativeEvent[ame];(!rme||rme!==nme)&&!nme.contains(rme)&&$P(tme)},eme.prototype.handleClick=function($P){var tme=this.getChildProps().onClick;this.state.show?this.hide():this.show(),tme&&tme($P)},eme.prototype.render=function(){var $P=this.props,tme=React__default.Children.only($P.children);if(!$P.tooltip)return tme;var ame=__assign$3({placement:$P.placement,container:$P.container,trigger:$P.trigger,rootClose:$P.rootClose,tooltipClassName:$P.tooltipClassName,style:$P.style,mouseLeaveDelay:$P.delay,tooltipTheme:$P.tooltipTheme},typeof $P.tooltip=="string"?{content:$P.tooltip}:$P.tooltip),nme=ame.title,rme=ame.content,ime=ame.placement,ome=ame.container,lme=ame.trigger,sme=ame.rootClose,cme=ame.tooltipClassName,dme=ame.tooltipBodyClassName,ume=ame.style,fme=ame.disabled,pme=fme===void 0?!1:fme,hme=ame.offset,bme=ame.tooltipTheme,mme=bme===void 0?"light":bme,vme=ame.showArrow,gme=vme===void 0?!0:vme,yme=ame.children,_me=ame.filterHtml,$me={key:"target"},Cme=Array.isArray(lme)?lme.concat():[lme];return~Cme.indexOf("click")&&($me.onClick=this.handleClick),~Cme.indexOf("focus")&&($me.onFocus=this.handleShow,$me.onBlur=this.handleHide),~Cme.indexOf("hover")&&($me.onMouseOver=this.handleMouseOver,$me.onMouseOut=this.handleMouseOut),[tme?React__default.cloneElement(tme,$me):null,React__default.createElement(Overlay,{key:"overlay",target:this.getTarget,show:this.state.show&&!pme,onHide:this.handleHide,rootClose:sme,placement:ime,container:ome,offset:Array.isArray(hme)?hme:[0,0]},React__default.createElement(Tooltip$1,{title:typeof nme=="string"?nme:void 0,style:ume,className:cme,tooltipTheme:mme,showArrow:gme,bodyClassName:dme,onMouseEnter:~Cme.indexOf("hover")?this.tooltipMouseEnter:function(){},onMouseLeave:~Cme.indexOf("hover")?this.tooltipMouseLeave:function(){}},yme?React__default.createElement(React__default.Fragment,null,typeof yme=="function"?yme():yme):React__default.createElement(Html$1,{html:typeof rme=="string"?rme:"",filterHtml:_me})))]},eme.defaultProps={placement:"top",trigger:["hover","focus"],rootClose:!1,delay:300},eme}(React__default.Component),TooltipWrapper$1=themeable(uncontrollable(TooltipWrapper,{show:"onVisibleChange"})),_a$a,fadeStyles$4=(_a$a={},_a$a[ENTERED]="in",_a$a[ENTERING]="in",_a$a),SpinnerSharedStore=types.model("SpinnerSharedStore",{}).volatile(function(x_){return{spinningContainers:observable.set([],{deep:!1})}}).actions(function(x_){return{push:function(eme){x_.spinningContainers.has(eme)||x_.spinningContainers.add(eme)},remove:function(eme){x_.spinningContainers.has(eme)&&x_.spinningContainers.delete(eme)},checkLoading:function(eme){if(x_.spinningContainers.has(eme)){if(!x_.spinningContainers.size)return!1;var $P=!0;return x_.spinningContainers.forEach(function(tme){tme.contains(eme)&&tme!==eme&&($P=!1)}),$P}return!1}}}),store$1=SpinnerSharedStore.create({}),Spinner=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={spinning:!1,showMarker:!0,idDarkBg:!1},$P.parent=null,$P.loadingTriggered=!1,$P.spinnerRef=function(tme){tme&&($P.parent=tme.parentNode)},$P.loadingChecker=reaction(function(){return store$1.spinningContainers.size},function(){$P.parent&&$P.setState({spinning:store$1.checkLoading($P.parent)&&$P.loadingTriggered})}),$P}return eme.prototype.componentDidUpdate=function(){var $P,tme,ame=(($P=this.props.loadingConfig)===null||$P===void 0?void 0:$P.show)===!0||typeof((tme=this.props.loadingConfig)===null||tme===void 0?void 0:tme.show)>"u";this.parent&&ame&&(this.props.show?(this.loadingTriggered=!0,store$1.push(this.parent)):this.state.spinning&&this.loadingTriggered&&(this.loadingTriggered=!1,store$1.remove(this.parent)))},eme.prototype.componentDidMount=function(){var $P,tme;if(this.parent&&this.state.showMarker&&this.setState({showMarker:!1}),this.parent){var ame=getComputedStyle(this.parent).getPropertyValue("background-color"),nme=(($P=ame.match(/\d+/g))===null||$P===void 0?void 0:$P.map(Number))||[],rme=(nme[0]*299+nme[1]*587+nme[2]*114)/1e3;nme[3]=(tme=nme[3])!==null&&tme!==void 0?tme:1,rme<200&&nme[3]>.4&&this.setState({idDarkBg:!0})}},eme.prototype.componentWillUnmount=function(){this.loadingChecker(),store$1.remove(this.parent)},eme.prototype.renderBody=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.className,rme=tme.spinnerClassName,ime=tme.size,ome=ime===void 0?"":ime,lme=tme.overlay,sme=tme.delay,cme=tme.icon,dme=tme.tip,ume=tme.tipPlacement,fme=ume===void 0?"":ume,pme=tme.loadingConfig,hme=tme.disabled,bme=pme!=null&&pme.root?void 0:cme,mme=bme&&React__default.isValidElement(bme),vme={enter:sme,exit:0},gme=(pme==null?void 0:pme.root)||lme;return React__default.createElement(React__default.Fragment,null,this.state.showMarker&&React__default.createElement("span",{className:ame("Spinner-mark"),ref:this.spinnerRef}),React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,in:this.state.spinning,timeout:vme},function(yme){var _me,$me,Cme;return React__default.createElement(React__default.Fragment,null,gme?React__default.createElement("div",{className:ame("Spinner-overlay",fadeStyles$4[yme])}):null,React__default.createElement("div",{"data-testid":"spinner",className:ame("Spinner",dme&&(_me={},_me["Spinner-tip--".concat(fme)]=["top","right","bottom","left"].includes(fme),_me),($me={},$me["Spinner--overlay"]=gme,$me),fadeStyles$4[yme],nme)},React__default.createElement("div",{className:ame("Spinner-icon",(Cme={},Cme["Spinner-icon--".concat(ome)]=["lg","sm"].includes(ome),Cme["Spinner-icon--default"]=!bme,Cme["Spinner-icon--simple"]=!mme&&bme,Cme["Spinner-icon--custom"]=mme,Cme["Spinner-icon--disabled"]=hme,Cme),rme,$P.state.idDarkBg&&"Spinner-icon--darkBg")},bme?React__default.createElement(Icon$1,{cx:ame,icon:bme,className:"icon"}):null),dme?React__default.createElement("span",{className:ame("Spinner-tip")},dme):""))}))},eme.prototype.render=function(){var $P=this.props.loadingConfig,tme=this.renderBody(),ame=$P==null?void 0:$P.root,nme=ame?document.querySelector(ame):null;return nme?ReactDOM.createPortal(tme,nme):tme},eme.defaultProps={show:!0,className:"",spinnerClassName:"",size:"",icon:"",tip:"",tipPlacement:"bottom",delay:0,overlay:!1,loadingConfig:{},disabled:!1},eme}(React__default.Component),Spinner$1=themeable(Spinner),Button=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderButton=function(){var $P,tme,ame=this.props,nme=ame.level,rme=ame.size,ime=rme===void 0?"default":rme,ome=ame.disabled,lme=ame.className,sme=ame.style,cme=ame.title,dme=ame.componentClass,ume=ame.classnames,fme=ame.children;ame.disabledTip;var pme=ame.block,hme=ame.type,bme=ame.active,mme=ame.iconOnly,vme=ame.href,gme=ame.loading,yme=ame.loadingClassName,_me=ame.overrideClassName,$me=ame.loadingConfig,Cme=ame.testIdBuilder,Sme=__rest$14(ame,["level","size","disabled","className","style","title","componentClass","classnames","children","disabledTip","block","type","active","iconOnly","href","loading","loadingClassName","overrideClassName","loadingConfig","testIdBuilder"]);return vme?dme="a":(dme==="button"&&ome||gme)&&(dme="div"),React__default.createElement(dme,__assign$3({type:dme==="input"||dme==="button"?hme:void 0},pickEventsProps(Sme),{onClick:Sme.onClick&&ome?function(){}:Sme.onClick,href:vme},Cme==null?void 0:Cme.getTestId(),{className:ume(_me?"":($P={Button:!0},$P["Button--".concat(nme)]=nme,$P["Button--size-".concat(ime)]=ime,$P["Button--block"]=pme,$P["Button--iconOnly"]=mme,$P["is-disabled"]=ome,$P["is-active"]=bme,$P),lme),style:sme,title:cme,disabled:ome}),gme&&!ome&&React__default.createElement(Spinner$1,{loadingConfig:$me,size:"sm",show:!0,icon:"loading-outline",className:ume(_me?"":(tme={},tme["Button--loading Button--loading--".concat(nme)]=nme,tme),yme)}),fme)},eme.prototype.render=function(){var $P=this.props,tme=$P.tooltip,ame=$P.tooltipPlacement,nme=$P.tooltipContainer,rme=$P.tooltipTrigger,ime=$P.tooltipRootClose,ome=$P.disabled,lme=$P.disabledTip;return $P.classnames,React__default.createElement(TooltipWrapper$1,{placement:ame,tooltip:ome?lme:tme,container:nme,trigger:rme,rootClose:ime},this.renderButton())},eme.defaultProps={componentClass:"button",level:"default",type:"button",tooltipPlacement:"top",tooltipTrigger:["hover","focus"],tooltipRootClose:!1},eme}(React__default.Component),Button$1=themeable(Button),Alert$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={show:!1,title:"",content:"",confirm:!1,size:"",confirmBtnLevel:"danger",cancelBtnLevel:"default",closeOnEsc:!1,confirmText:"确认",cancelText:"取消"},tme.unmount=!1,tme.close=tme.close.bind(tme),tme.handleConfirm=tme.handleConfirm.bind(tme),tme.handleCancel=tme.handleCancel.bind(tme),tme.modalRef=tme.modalRef.bind(tme),tme.handleFormSubmit=tme.handleFormSubmit.bind(tme),tme.scopeRef=tme.scopeRef.bind(tme),$P.isolate||(tme.originInstance=eme.instance,eme.instance=tme),tme}return eme.getInstance=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){return(!eme.instance||eme.instance.unmount)&&(console.warn("Alert 组件应该没有被渲染，所以隐性的渲染到 body 了"),$P=document.body,tme=document.createElement("div"),$P.appendChild(tme),reactDomExports.render(React__default.createElement(FinnalAlert,null),tme)),[2,eme.instance]})})},eme.prototype.componentDidMount=function(){this._body&&(this._body.innerHTML=this.state.content)},eme.prototype.componentDidUpdate=function($P,tme){tme.content!==this.state.content&&this._body&&(this._body.innerHTML=this.state.content)},eme.prototype.componentWillUnmount=function(){this.unmount=!0,eme.instance===this&&(eme.instance=this.originInstance||null,this.originInstance=null)},eme.prototype.scopeRef=function($P){this.schemaSope=$P},eme.prototype.handleConfirm=function(){var $P,tme=($P=this.schemaSope)===null||$P===void 0?void 0:$P.getComponentByName("form");tme?tme.doAction({type:"submit"}):this.close(!0)},eme.prototype.handleCancel=function(){this.close(!1)},eme.prototype.close=function($P){var tme=this,ame=this.state.confirm||this.state.prompt;this.setState({show:!1,prompt:!1,confirm:!1},ame?function(){return tme._resolve($P)}:void 0)},eme.prototype.alert=function($P,tme,ame){this.setState({title:tme,content:$P,show:!0,confirm:!1,className:ame})},eme.prototype.confirm=function($P,tme,ame,nme){var rme=this;return this.setState({title:tme,content:$P,show:!0,confirm:!0,confirmText:typeof ame=="string"?ame:ame==null?void 0:ame.confirmText,cancelText:nme,size:typeof ame=="string"?"":ame==null?void 0:ame.size,closeOnEsc:typeof ame=="string"?!1:ame==null?void 0:ame.closeOnEsc,className:typeof ame=="string"?"":ame==null?void 0:ame.className,confirmBtnLevel:typeof ame=="string"?"danger":ame==null?void 0:ame.confirmBtnLevel,cancelBtnLevel:typeof ame=="string"?"default":ame==null?void 0:ame.cancelBtnLevel}),new Promise(function(ime){rme._resolve=ime})},eme.prototype.prompt=function($P,tme,ame,nme){var rme=this;return ame===void 0&&(ame="placeholder.enter"),nme===void 0&&(nme="confirm"),typeof $P=="string"?($P=[{name:"text",label:$P,type:"text"}],typeof tme=="string"&&(tme={text:tme})):Array.isArray($P)||($P=[$P]),this.setState({title:ame,controls:$P,show:!0,prompt:!0,value:tme,confirmText:nme}),new Promise(function(ime){rme._resolve=ime})},eme.prototype.modalRef=function($P){this._modal=$P},eme.prototype.handleFormSubmit=function($P){this.close($P)},eme.prototype.render=function(){var $P,tme,ame,nme,rme,ime=this.props,ome=ime.container,lme=ime.cancelText,sme=ime.confirmText,cme=ime.title,dme=ime.confirmBtnLevel,ume=ime.alertBtnLevel,fme=ime.cancelBtnLevel,pme=ime.classnames,hme=this.props.theme||"cxd";hme==="default"&&(hme="cxd");var bme=this.props.translate,mme=bme(($P=this.state.title)!==null&&$P!==void 0?$P:cme),vme=bme((tme=this.state.confirmText)!==null&&tme!==void 0?tme:sme),gme=bme((ame=this.state.cancelText)!==null&&ame!==void 0?ame:lme),yme=(nme=this.state.confirmBtnLevel)!==null&&nme!==void 0?nme:dme,_me=(rme=this.state.cancelBtnLevel)!==null&&rme!==void 0?rme:fme;return React__default.createElement(FinalModal,{show:this.state.show,onHide:this.handleCancel,container:ome,ref:this.modalRef,closeOnEsc:this.state.closeOnEsc,size:this.state.size,className:pme(this.state.className)},mme?React__default.createElement("div",{className:pme("Modal-header")},React__default.createElement("div",{className:pme("Modal-title")},mme)):null,React__default.createElement("div",{className:pme("Modal-body")},this.state.prompt?renderForm(this.state.controls,this.state.value,this.handleFormSubmit,this.scopeRef,hme):typeof this.state.content=="string"?React__default.createElement(Html$1,{html:this.state.content}):React__default.createElement(React__default.Fragment,null,this.state.content)),vme?React__default.createElement("div",{className:pme("Modal-footer")},this.state.confirm||this.state.prompt?React__default.createElement(Button$1,{level:_me,onClick:this.handleCancel},bme(gme)):null,React__default.createElement(Button$1,{level:this.state.confirm||this.state.prompt?yme:ume,onClick:this.handleConfirm},vme)):null)},eme.instance=null,eme.defaultProps={confirmText:"confirm",cancelText:"cancel",title:"Alert.info",alertBtnLevel:"primary",confirmBtnLevel:"danger",cancelBtnLevel:"default"},eme}(React__default.Component),renderSchemaFn;function setRenderSchemaFn(x_){renderSchemaFn=x_}function renderForm(x_,eme,$P,tme,ame){return eme===void 0&&(eme={}),renderSchemaFn==null?void 0:renderSchemaFn(x_,eme,$P,tme,ame)}var alert=function(x_,eme,$P){return __awaiter(void 0,void 0,void 0,function(){var tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,Alert$1.getInstance()];case 1:return tme=ame.sent(),[2,tme.alert(x_,eme,$P)]}})})},confirm=function(x_,eme,$P,tme){return __awaiter(void 0,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,Alert$1.getInstance()];case 1:return ame=nme.sent(),[2,ame.confirm(x_,eme,$P,tme)]}})})},prompt=function(x_,eme,$P,tme){return __awaiter(void 0,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,Alert$1.getInstance()];case 1:return ame=nme.sent(),[2,ame.prompt(x_,eme,$P,tme)]}})})},FinnalAlert=themeable(localeable(Alert$1)),_a$9,fadeStyles$3=(_a$9={},_a$9[ENTERING]="in",_a$9[ENTERED]="in",_a$9[EXITING]="out",_a$9),ContextMenu=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isOpened:!1,menus:[],x:-99999,y:-99999,cursorX:-99999,cursorY:-99999},tme.menuRef=React__default.createRef(),tme.contentRef=React__default.createRef(),tme.unmount=!1,tme.menuEntered=!1,tme.resizeObserver=null,tme.originInstance=eme.instance,eme.instance=tme,tme.debounceCalculatePosition=debounce$6(tme.autoCalculatePosition.bind(tme),200),tme}return eme.getInstance=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){return(!eme.instance||eme.instance.unmount)&&($P=document.body,tme=document.createElement("div"),$P.appendChild(tme),reactDomExports.render(React__default.createElement(ThemedContextMenu,null),tme)),[2,eme.instance]})})},eme.prototype.componentDidMount=function(){document.body.addEventListener("click",this.handleOutClick,!0),document.addEventListener("keydown",this.handleKeyDown)},eme.prototype.componentWillUnmount=function(){this.unmount=!0,this.debounceCalculatePosition.cancel(),eme.instance=this.originInstance,document.body.removeEventListener("click",this.handleOutClick,!0),document.removeEventListener("keydown",this.handleKeyDown),delete this.originInstance},eme.prototype.openContextMenus=function($P,tme,ame,nme){var rme=this;if(this.state.isOpened){var ime=this.state,ome=ime.x,lme=ime.y,sme=ome+($P.x-(this.prevInfo&&this.prevInfo.x?this.prevInfo.x:0)),cme=lme+($P.y-(this.prevInfo&&this.prevInfo.y?this.prevInfo.y:0));this.setState({x:sme,y:cme,cursorX:sme,cursorY:cme,menus:tme,onClose:ame,contentClassName:nme==null?void 0:nme.contentClassName,preventClose:nme==null?void 0:nme.preventClose},function(){rme.handleEnter(rme.menuRef.current)})}else this.setState({isOpened:!0,x:$P.x,y:$P.y,cursorX:$P.x,cursorY:$P.y,menus:tme,onClose:ame,contentClassName:nme==null?void 0:nme.contentClassName,preventClose:nme==null?void 0:nme.preventClose});this.prevInfo=$P},eme.prototype.close=function($P){var tme=this,ame,nme,rme,ime;if(!(!((nme=(ame=this.state).preventClose)===null||nme===void 0)&&nme.call(ame,$P))){(rme=$P==null?void 0:$P.preventDefault)===null||rme===void 0||rme.call($P),this.menuEntered=!1,(ime=this.resizeObserver)===null||ime===void 0||ime.disconnect();var ome=this.state.onClose;this.setState({isOpened:!1,x:-99999,y:-99999,cursorX:-99999,cursorY:-99999,menus:[],contentClassName:"",preventClose:void 0},function(){ome==null||ome(tme)})}},eme.prototype.handleOutClick=function($P){!this.menuEntered||!$P.target||!this.menuRef.current||this.menuRef.current.contains($P.target)||this.state.isOpened&&this.close($P)},eme.prototype.handleClick=function($P){var tme=this,ame=this.state.onClose;$P.disabled||Array.isArray($P.children)&&$P.children.length||this.setState({isOpened:!1,x:-99999,y:-99999,cursorX:-99999,cursorY:-99999,menus:[]},function(){var nme;(nme=$P.onSelect)===null||nme===void 0||nme.call($P,$P.data),ame==null||ame(tme)})},eme.prototype.handleKeyDown=function($P){$P.keyCode===27&&this.state.isOpened&&this.close($P)},eme.prototype.handleMouseEnter=function($P){$P.disabled||!$P.onHighlight||$P.onHighlight(!0,$P.data)},eme.prototype.handleMouseLeave=function($P){$P.disabled||!$P.onHighlight||$P.onHighlight(!1,$P.data)},eme.prototype.handleEnter=function($P){this.autoCalculatePosition($P)},eme.prototype.handleEntered=function($P){var tme=this;this.menuEntered=!0,!(!this.contentRef.current||!window.ResizeObserver)&&(this.resizeObserver=new ResizeObserver(function(ame){ame.length&&tme.debounceCalculatePosition($P)}),this.resizeObserver.observe(this.contentRef.current))},eme.prototype.autoCalculatePosition=function($P){var tme=calculatePosition("asContextMenu",$P.lastChild,$P.children[1],$P.children[0]),ame=tme.positionLeft+300<window.innerWidth?"right":"left";this.setState({x:tme.positionLeft,y:tme.positionTop,align:ame})},eme.prototype.handleSelfContextMenu=function($P){$P.preventDefault()},eme.prototype.renderMenus=function($P){var tme=this,ame=this.props.classnames;return $P.map(function(nme,rme){if(nme==="|")return React__default.createElement("li",{key:rme,className:ame("ContextMenu-divider")});var ime=Array.isArray(nme.children)&&nme.children.length;return React__default.createElement("li",{key:"".concat(nme.label,"-").concat(rme),className:ame("ContextMenu-item",nme.className,{"has-child":ime,"is-disabled":nme.disabled})},React__default.createElement("a",{onClick:tme.handleClick.bind(tme,nme),onMouseEnter:tme.handleMouseEnter.bind(tme,nme),onMouseLeave:tme.handleMouseLeave.bind(tme,nme)},nme.icon?React__default.createElement("span",{className:ame("ContextMenu-itemIcon",nme.icon)}):null,nme.label),ime?React__default.createElement("ul",{className:ame("ContextMenu-subList")},tme.renderMenus(nme.children)):null)})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className;tme.container;var nme=tme.classnames;return React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,onEnter:this.handleEnter,in:this.state.isOpened,timeout:500,onEntered:this.handleEntered},function(rme){return React__default.createElement("div",{ref:$P.menuRef,role:"contextmenu",className:nme("ContextMenu",{"ContextMenu--left":$P.state.align==="left"},ame,$P.state.contentClassName),onContextMenu:$P.handleSelfContextMenu},React__default.createElement("div",{className:nme("ContextMenu-overlay",fadeStyles$3[rme])}),React__default.createElement("div",{className:nme("ContextMenu-cursor"),style:{left:"".concat($P.state.cursorX,"px"),top:"".concat($P.state.cursorY,"px")}}),React__default.createElement("div",{ref:$P.contentRef,style:{left:"".concat($P.state.x,"px"),top:"".concat($P.state.y,"px")},className:nme("ContextMenu-menu",fadeStyles$3[rme])},typeof $P.state.menus=="function"?$P.state.menus():React__default.createElement("ul",{className:nme("ContextMenu-list")},$P.renderMenus($P.state.menus))))})},eme.instance=null,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Array,Function,Object]),__metadata("design:returntype",void 0)],eme.prototype,"openContextMenus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event]),__metadata("design:returntype",void 0)],eme.prototype,"handleOutClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[KeyboardEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleEntered",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"autoCalculatePosition",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelfContextMenu",null),eme}(React__default.Component),ThemedContextMenu=themeable(ContextMenu);function openContextMenus(x_,eme,$P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return[2,ContextMenu.getInstance().then(function(nme){return nme.openContextMenus(x_,eme,$P,tme)})]})})}function closeContextMenus(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(x_){return[2,ContextMenu.getInstance().then(function(eme){return eme==null?void 0:eme.close()})]})})}var AsideNav=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=$P.isOpen,nme=1;return tme.state={navigations:mapTree($P.navigations,function(rme){var ime=typeof rme.active>"u"?$P.isActive(rme):rme.active;return __assign$3(__assign$3({},rme),{id:nme++,active:ime,open:ime||ame(rme)})},1,!0)},tme.renderLink=tme.renderLink.bind(tme),tme.toggleExpand=tme.toggleExpand.bind(tme),tme}return eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=$P.isOpen;if($P.navigations!==tme.navigations||$P.isActive!==tme.isActive){var nme=1;this.setState({navigations:mapTree(tme.navigations,function(rme){var ime=typeof rme.active>"u"?tme.isActive(rme):rme.active;return __assign$3(__assign$3({},rme),{id:nme++,active:ime,open:ime||ame(rme)})},1,!0)})}},eme.prototype.toggleExpand=function($P,tme){tme&&(tme.stopPropagation(),tme.preventDefault()),this.setState({navigations:mapTree(this.state.navigations,function(ame){return __assign$3(__assign$3({},ame),{open:$P.id===ame.id?!ame.open:ame.open})},1,!0)})},eme.prototype.renderLink=function($P,tme,ame,nme){var rme;ame===void 0&&(ame={}),nme===void 0&&(nme=1);var ime=this.props,ome=ime.renderLink;ime.isActive;var lme=ime.renderSubLinks,sme=ime.classnames,cme=__rest$14(ime,["renderLink","isActive","renderSubLinks","classnames"]),dme=ome(__assign$3({link:$P,active:$P.active,open:$P.open,toggleExpand:this.toggleExpand,depth:nme,classnames:sme,subHeader:tme==="subHeader"},cme));if(dme){if(tme==="subHeader")return React__default.cloneElement(dme,{key:tme})}else return;return React__default.createElement("li",__assign$3({},ame,{key:tme,className:sme("AsideNav-item",$P.className,(rme={},rme["is-open"]=$P.open,rme["is-active"]=$P.active,rme))}),dme,lme($P,this.renderLink,nme,this.props))},eme.prototype.render=function(){var $P=this,tme=this.state.navigations,ame=[],nme=this.props,rme=nme.className,ime=nme.classnames;return tme.forEach(function(ome,lme){if(Array.isArray(ome.children)){if(ome.prefix){var sme=typeof ome.prefix=="function"?ome.prefix($P.props):ome.prefix;ame.push(React__default.cloneElement(sme,__assign$3(__assign$3({},sme.props),{key:"".concat(lme,"-prefix")})))}if(ome.label&&ame.push(React__default.createElement("li",{key:"".concat(lme,"-label"),className:ime("AsideNav-label",ome.className)},React__default.createElement("span",null,ome.label))),ome.children.forEach(function(dme,ume){var fme=$P.renderLink(dme,"".concat(lme,"-").concat(ume));fme&&ame.push(fme)}),ome.affix){var cme=typeof ome.affix=="function"?ome.affix($P.props):ome.affix;ame.push(React__default.cloneElement(cme,__assign$3(__assign$3({},cme.props),{key:"".concat(lme,"-affix")})))}}}),React__default.createElement("nav",{className:ime("AsideNav",rme)},React__default.createElement("ul",{className:ime("AsideNav-list")},ame))},eme.defaultProps={renderLink:function($P){var tme;return React__default.createElement("a",__assign$3({},(tme=$P.testIdBuilder)===null||tme===void 0?void 0:tme.getTestId()),$P.label)},renderSubLinks:function($P,tme,ame,nme){var rme=nme.classnames;return $P.children&&$P.children.length?React__default.createElement("ul",{className:rme("AsideNav-subList")},$P.label?React__default.createElement("li",{key:"subHeader",className:rme("AsideNav-subHeader")},tme(__assign$3(__assign$3({},$P),{children:void 0}),"subHeader",{},ame)):null,$P.children.map(function(ime,ome){return tme(ime,ome,{},ame+1)})):$P.label&&ame===1?React__default.createElement("div",{className:rme("AsideNav-tooltip")},$P.label):null},isActive:function($P){return $P.open},isOpen:function($P){return $P.children?$P.children.some(function(tme){return tme.open}):!1}},eme}(React__default.Component),AsideNav$1=themeable(AsideNav),prefix$1="Avatar--",childPrefix=prefix$1+"text",Avatar=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={scale:1,hasImg:!0},tme.avatarChildrenRef=reactExports.createRef(),tme.avatarRef=reactExports.createRef(),tme.handleImageLoadError=tme.handleImageLoadError.bind(tme),tme}return eme.prototype.componentDidMount=function(){this.setScaleByGap()},eme.prototype.componentDidUpdate=function($P,tme){var ame=this.props,nme=ame.src,rme=ame.gap,ime=ame.text,ome=ame.children,lme=this.state.hasImg;$P.src!==nme&&this.setState({hasImg:!!nme}),(tme.hasImg&&!lme||$P.text!==ime||$P.children!==ome||$P.gap!==rme)&&this.setScaleByGap()},eme.prototype.handleImageLoadError=function($P){var tme=this.props.onError;this.setState({hasImg:tme?!tme($P):!1})},eme.prototype.setScaleByGap=function(){var $P=this.props.gap,tme=$P===void 0?4:$P;if(!(!this.avatarChildrenRef.current||!this.avatarRef.current)){var ame=this.avatarChildrenRef.current.offsetWidth,nme=this.avatarRef.current.offsetWidth;if(ame&&nme&&tme*2<nme){var rme=nme-tme*2;this.setState({scale:rme<ame?rme/ame:1})}}},eme.prototype.render=function(){var $P=this.props,tme=$P.style,ame=tme===void 0?{}:tme,nme=$P.className,rme=$P.shape,ime=$P.size,ome=$P.src,lme=$P.icon,sme=$P.alt,cme=$P.draggable,dme=$P.crossOrigin,ume=$P.fit,fme=$P.text,pme=$P.children,hme=$P.classnames,bme=$P.onClick,mme=$P.onMouseEnter,vme=$P.onMouseLeave,gme=this.state,yme=gme.scale,_me=gme.hasImg,$me=reactExports.isValidElement(ome),Cme=reactExports.isValidElement(lme),Sme,Eme={},xme="";typeof ime=="number"?Eme={height:ime,width:ime,lineHeight:ime+"px"}:typeof ime=="string"&&(xme=ime==="large"?"".concat(prefix$1,"lg"):ime==="small"?"".concat(prefix$1,"sm"):"");var Tme="scale(".concat(yme,") translateX(-50%)"),Ome={msTransform:Tme,WebkitTransform:Tme,transform:Tme};if(typeof ome=="string"&&_me){var Rme=ume?{objectFit:ume}:{};Sme=reactExports.createElement("img",{style:Rme,src:ome,alt:sme,draggable:cme,onError:this.handleImageLoadError,crossOrigin:dme})}else $me?Sme=ome:typeof fme=="string"||typeof fme=="number"?Sme=reactExports.createElement("span",{className:hme(childPrefix),ref:this.avatarChildrenRef,style:Ome},fme):["string","object"].includes(typeof lme)?Sme=reactExports.createElement(Icon$1,{cx:hme,icon:lme}):Cme?Sme=lme:Sme=reactExports.createElement("span",{className:hme(childPrefix),ref:this.avatarChildrenRef,style:Ome},typeof pme=="function"?pme():pme);return reactExports.createElement("span",{className:hme("Avatar",nme,prefix$1+rme,xme),style:__assign$3(__assign$3({},Eme),ame),onClick:bme,onMouseEnter:mme,onMouseLeave:vme,ref:this.avatarRef},Sme)},eme.defaultProps={shape:"circle",size:"default",fit:"cover",gap:4},eme}(reactExports.Component),Avatar$1=themeable(Avatar),Breadcrumb$1=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props.classnames,tme=this.props,ame=tme.className,nme=tme.style,rme=tme.separatorClassName,ime=tme.items,ome=tme.separator,lme=tme.testIdBuilder,sme=__rest$14(tme,["className","style","separatorClassName","items","separator","testIdBuilder"]),cme=ime==null?void 0:ime.length;if(!cme)return React__default.createElement("div",{className:$P("Breadcrumb",ame)});var dme=ime.map(function(ume,fme){var pme=lme==null?void 0:lme.getChild("item-".concat(ume.label||fme)),hme="middle";return fme===0&&(hme="start"),fme===cme-1&&(hme="end"),React__default.createElement(BreadcrumbItem,__assign$3({},sme,{item:ume,itemPlace:hme,key:fme,testIdBuilder:pme}))}).reduce(function(ume,fme,pme){return[ume,React__default.createElement("span",{className:$P("Breadcrumb-separator",rme),key:"separator-".concat(pme)},ome),fme]});return React__default.createElement("div",{className:$P("Breadcrumb",ame),style:nme},dme)},eme.defaultProps={separator:">",labelMaxLength:16,tooltipPosition:"top"},eme}(React__default.Component),BreadcrumbItem=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={tooltipTrigger:["hover","focus"],tooltipRootClose:!1,isOpened:!1},$P.domRef=function(tme){$P.target=tme},$P.toogle=function(tme){tme.preventDefault(),$P.setState({isOpened:!$P.state.isOpened})},$P.close=function(){$P.setState({isOpened:!1})},$P}return eme.prototype.renderBreadcrumbBaseItem=function($P,tme,ame,nme){var rme=this.props,ime=rme.itemClassName,ome=rme.dropdownItemClassName,lme=rme.classnames,sme=rme.testIdBuilder,cme=tme==="default"?ime:ome;return $P?React__default.createElement("a",__assign$3({href:ame.href,className:lme("Breadcrumb-item-"+tme,cme)},sme==null?void 0:sme.getTestId()),ame.icon?React__default.createElement(Icon$1,{cx:lme,icon:ame.icon,className:"Icon",classNameProp:"Breadcrumb-icon"}):null,React__default.createElement("span",{className:lme("TplField")},nme)):React__default.createElement("span",__assign$3({className:lme("Breadcrumb-item-"+tme,cme)},sme==null?void 0:sme.getTestId()),ame.icon?React__default.createElement(Icon$1,{cx:lme,icon:ame.icon,className:"Icon",classNameProp:"Breadcrumb-icon"}):null,React__default.createElement("span",{className:lme("TplField")},nme))},eme.prototype.renderBreadcrumbNode=function($P,tme,ame,nme){tme===void 0&&(tme="top");var rme=this.props,ime=rme.labelMaxLength,ome=rme.tooltipContainer,lme=this.state,sme=lme.tooltipTrigger,cme=lme.tooltipRootClose,dme=$P.label?removeHTMLTag($P.label):"",ume=ime&&+ime>1?+ime:1;if(dme.length>ume&&ame==="middle")return React__default.createElement(TooltipWrapper$1,{tooltip:dme,placement:tme,container:ome,trigger:sme,rootClose:cme},this.renderBreadcrumbBaseItem(!0,nme,$P,dme.substring(0,ume)+"..."));var fme=!$P.href||ame==="end";return this.renderBreadcrumbBaseItem(!fme,nme,$P,dme)},eme.prototype.renderDropdownNode=function($P){var tme=this,ame=this.props,nme=ame.dropdownClassName,rme=ame.classnames;return React__default.createElement(RootClose,{disabled:!this.state.isOpened,onRootClose:this.close},function(ime){return React__default.createElement("ul",{className:rme("Breadcrumb-dropdown",nme),onClick:tme.close,ref:ime},Array.isArray($P)&&$P.map(function(ome,lme){return React__default.createElement("li",{key:"dropdown-item"+lme},tme.renderBreadcrumbNode(ome,"right","middle","dropdown"))}))})},eme.prototype.render=function(){var $P=this.props,tme=$P.item,ame=$P.itemPlace,nme=$P.tooltipPosition,rme=$P.classnames,ime=tme.dropdown,ome=__rest$14(tme,["dropdown"]);return React__default.createElement("span",{className:rme("Breadcrumb-item",{"is-opened":this.state.isOpened},{"Breadcrumb-item-last":ame==="end"}),ref:this.domRef},this.renderBreadcrumbNode(__assign$3({},ome),nme,ame,"default"),ime?React__default.createElement("span",{onClick:this.toogle,className:rme("Breadcrumb-item-caret")},React__default.createElement(Icon$1,{icon:"down",className:"icon"})):null,ime&&this.state.isOpened?this.renderDropdownNode(ime):null)},eme}(React__default.Component),Breadcrumb$1$1=themeable(Breadcrumb$1),preventEvent$2=function(x_){return x_.stopPropagation()},Checkbox$1=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.labelRef=React__default.createRef(),$P}return eme.prototype.handleCheck=function($P){var tme=this.props,ame=tme.trueValue,nme=tme.falseValue,rme=tme.onChange;rme&&rme($P.currentTarget.checked?ame:nme,$P.nativeEvent.shiftKey)},eme.prototype.setClassName=function($P){this.setState({className:$P})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.size,nme=tme.className,rme=tme.classnames,ime=tme.value,ome=tme.label,lme=tme.partial,sme=tme.trueValue,cme=tme.children,dme=tme.disabled,ume=tme.description,fme=tme.readOnly,pme=tme.checked,hme=tme.type,bme=tme.name,mme=tme.labelClassName,vme=tme.optionType,gme=vme===void 0?"default":vme,yme=tme.mobileUI,_me=tme.testIdBuilder,$me=(this.state||{}).className,Cme=typeof pme<"u"?pme:typeof ime>"u"?ime:ime==sme;return React__default.createElement("label",__assign$3({className:rme("Checkbox","Checkbox--".concat(hme,"--").concat(gme),nme,$me,($P={"Checkbox--partial":lme},$P["Checkbox--".concat(ame)]=ame,$P["is-mobile"]=yme,$P.disabled=dme,$P.checked=Cme,$P["Checkbox--".concat(hme,"--").concat(gme,"--checked")]=!dme&&Cme,$P["Checkbox--".concat(hme,"--").concat(gme,"--disabled--unchecked")]=dme&&!Cme,$P["Checkbox--".concat(hme,"--").concat(gme,"--disabled--checked")]=dme&&Cme,$P)),"data-role":"checkbox"},_me==null?void 0:_me.getTestId(),{"data-amis-name":this.props.dataName,ref:this.labelRef}),React__default.createElement("input",{type:hme,checked:typeof pme<"u"?pme:typeof ime>"u"?ime:ime==sme,onChange:this.handleCheck,onClick:preventEvent$2,disabled:dme,readOnly:fme,name:bme}),React__default.createElement("i",__assign$3({},_me==null?void 0:_me.getChild("input").getTestId()),React__default.createElement(Icon$1,{iconContent:"".concat(hme,"-icon"),className:"icon"})),React__default.createElement("span",__assign$3({className:rme(mme)},_me==null?void 0:_me.getChild("label").getTestId()),cme||ome),ume?React__default.createElement("div",{className:rme("Checkbox-desc")},ume):null)},eme.defaultProps={trueValue:!0,falseValue:!1,type:"checkbox"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleCheck",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"setClassName",null),eme}(React__default.Component),Checkbox$1$1=themeable(Checkbox$1),_a$8,collapseStyles$1=(_a$8={},_a$8[EXITED]="out",_a$8[EXITING]="out",_a$8[ENTERING]="in",_a$8),Collapse$2=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={collapsed:!1},tme.contentRef=function(ame){return tme.contentDom=ame},tme.toggleCollapsed=tme.toggleCollapsed.bind(tme),tme.state.collapsed=$P.collapsable?!!$P.collapsed:!1,tme}return eme.getDerivedStateFromProps=function($P,tme){return $P.propsUpdate&&$P.collapsed!==tme.collapsed?{collapsed:!!$P.collapsed}:null},eme.prototype.toggleCollapsed=function($P){var tme;if(!isClickOnInput($P)){var ame=this.props;if(!(ame.disabled||ame.collapsable===!1)){var nme=!this.state.collapsed;(tme=ame.onCollapse)===null||tme===void 0||tme.call(ame,nme),this.setState({collapsed:nme})}}},eme.prototype.changeCollapsedState=function($P){var tme=this,ame=this.props,nme=ame.disabled,rme=ame.collapsable,ime=this.state.collapsed;nme||rme===!1||ime===$P||this.setState({collapsed:$P},function(){var ome,lme;(lme=(ome=tme.props).onCollapse)===null||lme===void 0||lme.call(ome,$P)})},eme.prototype.handleEnter=function($P){$P.style.height=""},eme.prototype.handleEntering=function($P){$P.style.height="".concat($P.scrollHeight,"px")},eme.prototype.handleEntered=function($P){$P.style.height=""},eme.prototype.handleExit=function($P){var tme=$P.offsetHeight,ame=tme+parseInt(getComputedStyle($P).getPropertyValue("margin-top"),10)+parseInt(getComputedStyle($P).getPropertyValue("margin-bottom"),10);$P.style.height="".concat(ame,"px"),$P.offsetHeight},eme.prototype.handleExiting=function($P){$P.style.height=""},eme.prototype.render=function(){var $P,tme=this,ame,nme=this.props,rme=nme.classnames,ime=nme.mountOnEnter,ome=nme.unmountOnExit;nme.classPrefix;var lme=nme.size,sme=nme.wrapperComponent,cme=nme.headingComponent,dme=nme.className,ume=nme.style,fme=nme.headingClassName,pme=nme.headerPosition,hme=nme.collapseHeader,bme=nme.header,mme=nme.body,vme=nme.bodyClassName,gme=nme.collapsable;nme.translate;var yme=nme.showArrow,_me=nme.expandIcon,$me=nme.disabled,Cme=nme.children,Sme=nme.mobileUI,Eme=nme.enableFieldSetStyle,xme=this.state.collapsed?bme:hme||bme,Tme=[React__default.createElement(cme,{key:"header",onClick:this.toggleCollapsed,className:rme("Collapse-header",{"is-mobile":Sme},fme,{noTitle:!xme})},yme&&gme?_me?React__default.cloneElement(_me,__assign$3(__assign$3({},_me.props),{className:rme("Collapse-icon-tranform",(ame=_me.props)===null||ame===void 0?void 0:ame.className)})):React__default.createElement("span",{className:rme("Collapse-arrow-wrap")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:rme("Collapse-arrow","icon"),classNameProp:rme("Collapse-arrow"),iconContent:"Collapse-arrow"})):"",xme),React__default.createElement(Transition,{key:"body",mountOnEnter:ime,unmountOnExit:ome,in:!this.state.collapsed,timeout:300,onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered,onExit:this.handleExit,onExiting:this.handleExiting},function(Ome){return Ome===ENTERING&&tme.contentDom.offsetWidth,React__default.createElement("div",{className:rme("Collapse-contentWrapper",collapseStyles$1[Ome]),ref:tme.contentRef},React__default.createElement("div",{className:rme("Collapse-body",vme)},React__default.createElement("div",{className:rme("Collapse-content")},mme||Cme)))})];return pme==="bottom"&&Tme.reverse(),React__default.createElement(sme,{className:rme("Collapse",($P={"is-mobile":Sme,"is-active":!this.state.collapsed},$P["Collapse--".concat(lme)]=lme,$P["Collapse--disabled"]=$me,$P["Collapse--title-bottom"]=pme==="bottom",$P["Collapse-fieldset--disabled"]=Eme===!1,$P),dme),style:ume},Tme)},eme.defaultProps={mountOnEnter:!1,unmountOnExit:!1,headerPosition:"top",wrapperComponent:"div",headingComponent:"div",className:"",headingClassName:"",bodyClassName:"",collapsable:!0,disabled:!1,showArrow:!0,propsUpdate:!1,enableFieldSetStyle:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"changeCollapsedState",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleEntering",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleEntered",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleExit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement]),__metadata("design:returntype",void 0)],eme.prototype,"handleExiting",null),eme}(React__default.Component),Collapse$1$1=themeable(Collapse$2),CollapseGroup=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.getItems=function(ame){return Array.isArray(ame)?ame.map(function(nme,rme){var ime=nme.props,ome=ime.propKey||String(rme),lme=tme.state.activeKeys.indexOf(ome)===-1;return React__default.cloneElement(nme,__assign$3(__assign$3({},ime),{key:ome,collapseId:ome,collapsed:lme,expandIcon:tme.props.expandIcon,propsUpdate:!0,onCollapse:function(sme){return tme.collapseChange(ome,sme)}}))}):ame},tme.updateActiveKey($P.defaultActiveKey,!0),tme}return eme.prototype.UNSAFE_componentWillReceiveProps=function($P){var tme=this.props;isEqual$1(tme.defaultActiveKey,$P.defaultActiveKey)||this.updateActiveKey($P.defaultActiveKey)},eme.prototype.updateActiveKey=function($P,tme){var ame=this.props,nme=$P;Array.isArray(nme)||(nme=nme?[nme]:[]),ame.accordion&&(nme=nme.length?[nme[0]]:[]),tme?this.state={activeKeys:nme.map(function(rme){return String(rme)})}:this.setState({activeKeys:nme.map(function(rme){return String(rme)})})},eme.prototype.collapseChange=function($P,tme){var ame,nme,rme=this.state.activeKeys.concat();if(tme)if(this.props.accordion)rme=[];else{var ime=rme.indexOf($P);ime!==-1&&rme.splice(ime,1)}else this.props.accordion?rme=[$P]:rme.indexOf($P)===-1&&rme.push($P);(nme=(ame=this.props).onCollapseChange)===null||nme===void 0||nme.call(ame,rme,$P,rme.indexOf($P)===-1),this.setState({activeKeys:rme})},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.style,rme=$P.expandIconPosition,ime=$P.children,ome=$P.mobileUI;return React__default.createElement("div",{className:tme("CollapseGroup",{"icon-position-right":rme==="right"},{"is-mobile":ome},ame),style:nme},this.getItems(ime))},eme.defaultProps={className:"",accordion:!1,expandIconPosition:"left"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"updateActiveKey",null),eme}(React__default.Component),CollapseGroup$1=themeable(CollapseGroup),_a$7,fadeStyles$2=(_a$7={},_a$7[ENTERED]="",_a$7[EXITING]="out",_a$7[EXITED]="",_a$7[ENTERING]="in",_a$7),PopUp=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.scrollTop=0,$P}return eme.prototype.componentDidUpdate=function(){this.props.isShow?(this.scrollTop=document.body.scrollTop||document.documentElement.scrollTop,document.body.style.overflow="hidden"):(document.body.style.overflow="auto",document.body.scrollTop=this.scrollTop)},eme.prototype.componentWillUnmount=function(){document.body.style.overflow="auto",document.body.scrollTop=this.scrollTop},eme.prototype.handleClick=function($P){$P.stopPropagation()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.style,nme=tme.title,rme=tme.children,ime=tme.overlay,ome=tme.onHide,lme=tme.onConfirm,sme=tme.classPrefix,cme=tme.classnames,dme=tme.className,ume=tme.isShow,fme=tme.container,pme=tme.showConfirm,hme=tme.translate,bme=tme.showClose,mme=tme.header,vme=tme.placement,gme=vme===void 0?"center":vme,yme=tme.onEntered,_me=tme.onExited,$me=__rest$14(tme,["style","title","children","overlay","onHide","onConfirm","classPrefix","classnames","className","isShow","container","showConfirm","translate","showClose","header","placement","onEntered","onExited"]),Cme=__assign$3({},ame);return delete Cme.top,React__default.createElement(Portal,{container:fme},React__default.createElement(Transition,{onEntered:yme,onExit:_me,mountOnEnter:!0,unmountOnExit:!0,in:ume,timeout:500,appear:!0},function(Sme){return React__default.createElement("div",__assign$3({className:cme("".concat(sme,"PopUp"),dme,fadeStyles$2[Sme]),style:Cme},$me,{onClick:$P.handleClick}),ime&&React__default.createElement("div",{className:"".concat(sme,"PopUp-overlay"),onClick:ome}),React__default.createElement("div",{className:cme("".concat(sme,"PopUp-inner"))},!pme&&bme?React__default.createElement("div",{className:cme("".concat(sme,"PopUp-closeWrap"))},mme,React__default.createElement("span",{className:cme("PopUp-closeBox"),onClick:ome},React__default.createElement(Icon$1,{icon:"close",className:cme("icon","".concat(sme,"PopUp-close"))}))):null,pme&&React__default.createElement("div",{className:cme("".concat(sme,"PopUp-toolbar"))},React__default.createElement(Button$1,{className:cme("".concat(sme,"PopUp-cancel")),level:"link",onClick:ome},hme("cancel")),nme&&React__default.createElement("span",{className:cme("".concat(sme,"PopUp-title"))},nme),React__default.createElement(Button$1,{className:cme("".concat(sme,"PopUp-confirm")),level:"link",onClick:lme},hme("confirm"))),React__default.createElement("div",{className:cme("".concat(sme,"PopUp-content"),"justify-".concat(gme))},ume?rme:null),React__default.createElement("div",{className:cme("PopUp-safearea")})))}))},eme.defaultProps={className:"",overlay:!0,isShow:!1,container:document.body,showClose:!0,onConfirm:function(){}},eme}(React__default.PureComponent),PopUp$1=themeable(localeable(PopUp));function t$1(x_){return typeof x_=="object"&&x_!=null&&x_.nodeType===1}function e$1(x_,eme){return(!eme||x_!=="hidden")&&x_!=="visible"&&x_!=="clip"}function n$1(x_,eme){if(x_.clientHeight<x_.scrollHeight||x_.clientWidth<x_.scrollWidth){var $P=getComputedStyle(x_,null);return e$1($P.overflowY,eme)||e$1($P.overflowX,eme)||function(tme){var ame=function(nme){if(!nme.ownerDocument||!nme.ownerDocument.defaultView)return null;try{return nme.ownerDocument.defaultView.frameElement}catch{return null}}(tme);return!!ame&&(ame.clientHeight<tme.scrollHeight||ame.clientWidth<tme.scrollWidth)}(x_)}return!1}function r$1(x_,eme,$P,tme,ame,nme,rme,ime){return nme<x_&&rme>eme||nme>x_&&rme<eme?0:nme<=x_&&ime<=$P||rme>=eme&&ime>=$P?nme-x_-tme:rme>eme&&ime<$P||nme<x_&&ime>$P?rme-eme+ame:0}var i$3=function(x_,eme){var $P=window,tme=eme.scrollMode,ame=eme.block,nme=eme.inline,rme=eme.boundary,ime=eme.skipOverflowHiddenElements,ome=typeof rme=="function"?rme:function(Zme){return Zme!==rme};if(!t$1(x_))throw new TypeError("Invalid target");for(var lme,sme,cme=document.scrollingElement||document.documentElement,dme=[],ume=x_;t$1(ume)&&ome(ume);){if((ume=(sme=(lme=ume).parentElement)==null?lme.getRootNode().host||null:sme)===cme){dme.push(ume);break}ume!=null&&ume===document.body&&n$1(ume)&&!n$1(document.documentElement)||ume!=null&&n$1(ume,ime)&&dme.push(ume)}for(var fme=$P.visualViewport?$P.visualViewport.width:innerWidth,pme=$P.visualViewport?$P.visualViewport.height:innerHeight,hme=window.scrollX||pageXOffset,bme=window.scrollY||pageYOffset,mme=x_.getBoundingClientRect(),vme=mme.height,gme=mme.width,yme=mme.top,_me=mme.right,$me=mme.bottom,Cme=mme.left,Sme=ame==="start"||ame==="nearest"?yme:ame==="end"?$me:yme+vme/2,Eme=nme==="center"?Cme+gme/2:nme==="end"?_me:Cme,xme=[],Tme=0;Tme<dme.length;Tme++){var Ome=dme[Tme],Rme=Ome.getBoundingClientRect(),Nme=Rme.height,Ime=Rme.width,Pme=Rme.top,Mme=Rme.right,kme=Rme.bottom,Bme=Rme.left;if(tme==="if-needed"&&yme>=0&&Cme>=0&&$me<=pme&&_me<=fme&&yme>=Pme&&$me<=kme&&Cme>=Bme&&_me<=Mme)return xme;var Dme=getComputedStyle(Ome),jme=parseInt(Dme.borderLeftWidth,10),Vme=parseInt(Dme.borderTopWidth,10),Wme=parseInt(Dme.borderRightWidth,10),Lme=parseInt(Dme.borderBottomWidth,10),zme=0,Ume=0,Gme="offsetWidth"in Ome?Ome.offsetWidth-Ome.clientWidth-jme-Wme:0,Jme="offsetHeight"in Ome?Ome.offsetHeight-Ome.clientHeight-Vme-Lme:0,Yme="offsetWidth"in Ome?Ome.offsetWidth===0?0:Ime/Ome.offsetWidth:0,Qme="offsetHeight"in Ome?Ome.offsetHeight===0?0:Nme/Ome.offsetHeight:0;if(cme===Ome)zme=ame==="start"?Sme:ame==="end"?Sme-pme:ame==="nearest"?r$1(bme,bme+pme,pme,Vme,Lme,bme+Sme,bme+Sme+vme,vme):Sme-pme/2,Ume=nme==="start"?Eme:nme==="center"?Eme-fme/2:nme==="end"?Eme-fme:r$1(hme,hme+fme,fme,jme,Wme,hme+Eme,hme+Eme+gme,gme),zme=Math.max(0,zme+bme),Ume=Math.max(0,Ume+hme);else{zme=ame==="start"?Sme-Pme-Vme:ame==="end"?Sme-kme+Lme+Jme:ame==="nearest"?r$1(Pme,kme,Nme,Vme,Lme+Jme,Sme,Sme+vme,vme):Sme-(Pme+Nme/2)+Jme/2,Ume=nme==="start"?Eme-Bme-jme:nme==="center"?Eme-(Bme+Ime/2)+Gme/2:nme==="end"?Eme-Mme+Wme+Gme:r$1(Bme,Mme,Ime,jme,Wme+Gme,Eme,Eme+gme,gme);var Xme=Ome.scrollLeft,Kme=Ome.scrollTop;Sme+=Kme-(zme=Math.max(0,Math.min(Kme+zme/Qme,Ome.scrollHeight-Nme/Qme+Jme))),Eme+=Xme-(Ume=Math.max(0,Math.min(Xme+Ume/Yme,Ome.scrollWidth-Ime/Yme+Gme)))}xme.push({el:Ome,top:zme,left:Ume})}return xme};let idCounter$2=0;function cbToCb(x_){return typeof x_=="function"?x_:noop$5}function noop$5(){}function scrollIntoView(x_,eme){if(!x_)return;i$3(x_,{boundary:eme,block:"nearest",scrollMode:"if-needed"}).forEach(tme=>{let{el:ame,top:nme,left:rme}=tme;ame.scrollTop=nme,ame.scrollLeft=rme})}function isOrContainsNode(x_,eme,$P){return x_===eme||eme instanceof $P.Node&&x_.contains&&x_.contains(eme)}function debounce$2(x_,eme){let $P;function tme(){$P&&clearTimeout($P)}function ame(){for(var nme=arguments.length,rme=new Array(nme),ime=0;ime<nme;ime++)rme[ime]=arguments[ime];tme(),$P=setTimeout(()=>{$P=null,x_(...rme)},eme)}return ame.cancel=tme,ame}function callAllEventHandlers(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return function(tme){for(var ame=arguments.length,nme=new Array(ame>1?ame-1:0),rme=1;rme<ame;rme++)nme[rme-1]=arguments[rme];return eme.some(ime=>(ime&&ime(tme,...nme),tme.preventDownshiftDefault||tme.hasOwnProperty("nativeEvent")&&tme.nativeEvent.preventDownshiftDefault))}}function handleRefs(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return tme=>{eme.forEach(ame=>{typeof ame=="function"?ame(tme):ame&&(ame.current=tme)})}}function generateId$1(){return String(idCounter$2++)}function getA11yStatusMessage$1(x_){let{isOpen:eme,resultCount:$P,previousResultCount:tme}=x_;return eme?$P?$P!==tme?`${$P} result${$P===1?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function unwrapArray(x_,eme){return x_=Array.isArray(x_)?x_[0]:x_,!x_&&eme?eme:x_}function isDOMElement(x_){return typeof x_.type=="string"}function getElementProps(x_){return x_.props}const stateKeys=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function pickState(x_){x_===void 0&&(x_={});const eme={};return stateKeys.forEach($P=>{x_.hasOwnProperty($P)&&(eme[$P]=x_[$P])}),eme}function getState(x_,eme){return Object.keys(x_).reduce(($P,tme)=>($P[tme]=isControlledProp(eme,tme)?eme[tme]:x_[tme],$P),{})}function isControlledProp(x_,eme){return x_[eme]!==void 0}function normalizeArrowKey(x_){const{key:eme,keyCode:$P}=x_;return $P>=37&&$P<=40&&eme.indexOf("Arrow")!==0?`Arrow${eme}`:eme}function getNextWrappingIndex(x_,eme,$P,tme,ame){if(ame===void 0&&(ame=!0),$P===0)return-1;const nme=$P-1;(typeof eme!="number"||eme<0||eme>=$P)&&(eme=x_>0?-1:nme+1);let rme=eme+x_;rme<0?rme=ame?nme:0:rme>nme&&(rme=ame?0:nme);const ime=getNextNonDisabledIndex(x_,rme,$P,tme,ame);return ime===-1?eme>=$P?-1:eme:ime}function getNextNonDisabledIndex(x_,eme,$P,tme,ame){const nme=tme(eme);if(!nme||!nme.hasAttribute("disabled"))return eme;if(x_>0){for(let rme=eme+1;rme<$P;rme++)if(!tme(rme).hasAttribute("disabled"))return rme}else for(let rme=eme-1;rme>=0;rme--)if(!tme(rme).hasAttribute("disabled"))return rme;return ame?x_>0?getNextNonDisabledIndex(1,0,$P,tme,!1):getNextNonDisabledIndex(-1,$P-1,$P,tme,!1):-1}function targetWithinDownshift(x_,eme,$P,tme){return tme===void 0&&(tme=!0),eme.some(ame=>ame&&(isOrContainsNode(ame,x_,$P)||tme&&isOrContainsNode(ame,$P.document.activeElement,$P)))}const cleanupStatus=debounce$2(x_=>{getStatusDiv(x_).textContent=""},500);function setStatus(x_,eme){const $P=getStatusDiv(eme);x_&&($P.textContent=x_,cleanupStatus(eme))}function getStatusDiv(x_){x_===void 0&&(x_=document);let eme=x_.getElementById("a11y-status-message");return eme||(eme=x_.createElement("div"),eme.setAttribute("id","a11y-status-message"),eme.setAttribute("role","status"),eme.setAttribute("aria-live","polite"),eme.setAttribute("aria-relevant","additions text"),Object.assign(eme.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),x_.body.appendChild(eme),eme)}const unknown=0,mouseUp=1,itemMouseEnter=2,keyDownArrowUp=3,keyDownArrowDown=4,keyDownEscape=5,keyDownEnter=6,keyDownHome=7,keyDownEnd=8,clickItem=9,blurInput=10,changeInput=11,keyDownSpaceButton=12,clickButton=13,blurButton=14,controlledPropUpdatedSelectedItem=15,touchEnd=16;var stateChangeTypes$3=Object.freeze({__proto__:null,unknown,mouseUp,itemMouseEnter,keyDownArrowUp,keyDownArrowDown,keyDownEscape,keyDownEnter,keyDownHome,keyDownEnd,clickItem,blurInput,changeInput,keyDownSpaceButton,clickButton,blurButton,controlledPropUpdatedSelectedItem,touchEnd});const Downshift=(()=>{class x_ extends reactExports.Component{constructor($P){var tme;super($P),tme=this,this.id=this.props.id||`downshift-${generateId$1()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(cme=>`${this.id}-item-${cme}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(cme,dme)=>{const ume=setTimeout(()=>{this.timeoutIds=this.timeoutIds.filter(fme=>fme!==ume),cme()},dme);this.timeoutIds.push(ume)},this.setItemCount=cme=>{this.itemCount=cme},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(cme,dme){cme===void 0&&(cme=tme.props.defaultHighlightedIndex),dme===void 0&&(dme={}),dme=pickState(dme),tme.internalSetState({highlightedIndex:cme,...dme})},this.clearSelection=cme=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},cme)},this.selectItem=(cme,dme,ume)=>{dme=pickState(dme),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:cme,inputValue:this.props.itemToString(cme),...dme},ume)},this.selectItemAtIndex=(cme,dme,ume)=>{const fme=this.items[cme];fme!=null&&this.selectItem(fme,dme,ume)},this.selectHighlightedItem=(cme,dme)=>this.selectItemAtIndex(this.getState().highlightedIndex,cme,dme),this.internalSetState=(cme,dme)=>{let ume,fme;const pme={},hme=typeof cme=="function";return!hme&&cme.hasOwnProperty("inputValue")&&this.props.onInputValueChange(cme.inputValue,{...this.getStateAndHelpers(),...cme}),this.setState(bme=>{bme=this.getState(bme);let mme=hme?cme(bme):cme;mme=this.props.stateReducer(bme,mme),ume=mme.hasOwnProperty("selectedItem");const vme={};return ume&&mme.selectedItem!==bme.selectedItem&&(fme=mme.selectedItem),mme.type=mme.type||unknown,Object.keys(mme).forEach(gme=>{bme[gme]!==mme[gme]&&(pme[gme]=mme[gme]),gme!=="type"&&(mme[gme],isControlledProp(this.props,gme)||(vme[gme]=mme[gme]))}),hme&&mme.hasOwnProperty("inputValue")&&this.props.onInputValueChange(mme.inputValue,{...this.getStateAndHelpers(),...mme}),vme},()=>{cbToCb(dme)(),Object.keys(pme).length>1&&this.props.onStateChange(pme,this.getStateAndHelpers()),ume&&this.props.onSelect(cme.selectedItem,this.getStateAndHelpers()),fme!==void 0&&this.props.onChange(fme,this.getStateAndHelpers()),this.props.onUserAction(pme,this.getStateAndHelpers())})},this.rootRef=cme=>this._rootNode=cme,this.getRootProps=function(cme,dme){let{refKey:ume="ref",ref:fme,...pme}=cme===void 0?{}:cme,{suppressRefError:hme=!1}=dme===void 0?{}:dme;tme.getRootProps.called=!0,tme.getRootProps.refKey=ume,tme.getRootProps.suppressRefError=hme;const{isOpen:bme}=tme.getState();return{[ume]:handleRefs(fme,tme.rootRef),role:"combobox","aria-expanded":bme,"aria-haspopup":"listbox","aria-owns":bme?tme.menuId:null,"aria-labelledby":tme.labelId,...pme}},this.keyDownHandlers={ArrowDown(cme){if(cme.preventDefault(),this.getState().isOpen){const dme=cme.shiftKey?5:1;this.moveHighlightedIndex(dme,{type:keyDownArrowDown})}else this.internalSetState({isOpen:!0,type:keyDownArrowDown},()=>{const dme=this.getItemCount();if(dme>0){const{highlightedIndex:ume}=this.getState(),fme=getNextWrappingIndex(1,ume,dme,pme=>this.getItemNodeFromIndex(pme));this.setHighlightedIndex(fme,{type:keyDownArrowDown})}})},ArrowUp(cme){if(cme.preventDefault(),this.getState().isOpen){const dme=cme.shiftKey?-5:-1;this.moveHighlightedIndex(dme,{type:keyDownArrowUp})}else this.internalSetState({isOpen:!0,type:keyDownArrowUp},()=>{const dme=this.getItemCount();if(dme>0){const{highlightedIndex:ume}=this.getState(),fme=getNextWrappingIndex(-1,ume,dme,pme=>this.getItemNodeFromIndex(pme));this.setHighlightedIndex(fme,{type:keyDownArrowUp})}})},Enter(cme){if(cme.which===229)return;const{isOpen:dme,highlightedIndex:ume}=this.getState();if(dme&&ume!=null){cme.preventDefault();const fme=this.items[ume],pme=this.getItemNodeFromIndex(ume);if(fme==null||pme&&pme.hasAttribute("disabled"))return;this.selectHighlightedItem({type:keyDownEnter})}},Escape(cme){cme.preventDefault(),this.reset({type:keyDownEscape,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(cme){cme.preventDefault(),this.toggleMenu({type:keyDownSpaceButton})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(cme){const{isOpen:dme}=this.getState();if(!dme)return;cme.preventDefault();const ume=this.getItemCount();if(ume<=0||!dme)return;const fme=getNextNonDisabledIndex(1,0,ume,pme=>this.getItemNodeFromIndex(pme),!1);this.setHighlightedIndex(fme,{type:keyDownHome})},End(cme){const{isOpen:dme}=this.getState();if(!dme)return;cme.preventDefault();const ume=this.getItemCount();if(ume<=0||!dme)return;const fme=getNextNonDisabledIndex(-1,ume-1,ume,pme=>this.getItemNodeFromIndex(pme),!1);this.setHighlightedIndex(fme,{type:keyDownEnd})}},this.getToggleButtonProps=function(cme){let{onClick:dme,onPress:ume,onKeyDown:fme,onKeyUp:pme,onBlur:hme,...bme}=cme===void 0?{}:cme;const{isOpen:mme}=tme.getState(),vme={onClick:callAllEventHandlers(dme,tme.buttonHandleClick),onKeyDown:callAllEventHandlers(fme,tme.buttonHandleKeyDown),onKeyUp:callAllEventHandlers(pme,tme.buttonHandleKeyUp),onBlur:callAllEventHandlers(hme,tme.buttonHandleBlur)},gme=bme.disabled?{}:vme;return{type:"button",role:"button","aria-label":mme?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...gme,...bme}},this.buttonHandleKeyUp=cme=>{cme.preventDefault()},this.buttonHandleKeyDown=cme=>{const dme=normalizeArrowKey(cme);this.buttonKeyDownHandlers[dme]&&this.buttonKeyDownHandlers[dme].call(this,cme)},this.buttonHandleClick=cme=>{cme.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&cme.target.focus(),this.internalSetTimeout(()=>this.toggleMenu({type:clickButton}))},this.buttonHandleBlur=cme=>{const dme=cme.target;this.internalSetTimeout(()=>{!this.isMouseDown&&(this.props.environment.document.activeElement==null||this.props.environment.document.activeElement.id!==this.inputId)&&this.props.environment.document.activeElement!==dme&&this.reset({type:blurButton})})},this.getLabelProps=cme=>({htmlFor:this.inputId,id:this.labelId,...cme}),this.getInputProps=function(cme){let{onKeyDown:dme,onBlur:ume,onChange:fme,onInput:pme,onChangeText:hme,...bme}=cme===void 0?{}:cme,mme,vme={};mme="onChange";const{inputValue:gme,isOpen:yme,highlightedIndex:_me}=tme.getState();return bme.disabled||(vme={[mme]:callAllEventHandlers(fme,pme,tme.inputHandleChange),onKeyDown:callAllEventHandlers(dme,tme.inputHandleKeyDown),onBlur:callAllEventHandlers(ume,tme.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":yme&&typeof _me=="number"&&_me>=0?tme.getItemId(_me):null,"aria-controls":yme?tme.menuId:null,"aria-labelledby":tme.labelId,autoComplete:"off",value:gme,id:tme.inputId,...vme,...bme}},this.inputHandleKeyDown=cme=>{const dme=normalizeArrowKey(cme);dme&&this.inputKeyDownHandlers[dme]&&this.inputKeyDownHandlers[dme].call(this,cme)},this.inputHandleChange=cme=>{this.internalSetState({type:changeInput,isOpen:!0,inputValue:cme.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout(()=>{const cme=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);!this.isMouseDown&&!cme&&this.reset({type:blurInput})})},this.menuRef=cme=>{this._menuNode=cme},this.getMenuProps=function(cme,dme){let{refKey:ume="ref",ref:fme,...pme}=cme===void 0?{}:cme,{suppressRefError:hme=!1}=dme===void 0?{}:dme;return tme.getMenuProps.called=!0,tme.getMenuProps.refKey=ume,tme.getMenuProps.suppressRefError=hme,{[ume]:handleRefs(fme,tme.menuRef),role:"listbox","aria-labelledby":pme&&pme["aria-label"]?null:tme.labelId,id:tme.menuId,...pme}},this.getItemProps=function(cme){let{onMouseMove:dme,onMouseDown:ume,onClick:fme,onPress:pme,index:hme,item:bme=void 0,...mme}=cme===void 0?{}:cme;hme===void 0?(tme.items.push(bme),hme=tme.items.indexOf(bme)):tme.items[hme]=bme;const vme="onClick",gme=fme,yme={onMouseMove:callAllEventHandlers(dme,()=>{hme!==tme.getState().highlightedIndex&&(tme.setHighlightedIndex(hme,{type:itemMouseEnter}),tme.avoidScrolling=!0,tme.internalSetTimeout(()=>tme.avoidScrolling=!1,250))}),onMouseDown:callAllEventHandlers(ume,$me=>{$me.preventDefault()}),[vme]:callAllEventHandlers(gme,()=>{tme.selectItemAtIndex(hme,{type:clickItem})})},_me=mme.disabled?{onMouseDown:yme.onMouseDown}:yme;return{id:tme.getItemId(hme),role:"option","aria-selected":tme.getState().highlightedIndex===hme,..._me,...mme}},this.clearItems=()=>{this.items=[]},this.reset=function(cme,dme){cme===void 0&&(cme={}),cme=pickState(cme),tme.internalSetState(ume=>{let{selectedItem:fme}=ume;return{isOpen:tme.props.defaultIsOpen,highlightedIndex:tme.props.defaultHighlightedIndex,inputValue:tme.props.itemToString(fme),...cme}},dme)},this.toggleMenu=function(cme,dme){cme===void 0&&(cme={}),cme=pickState(cme),tme.internalSetState(ume=>{let{isOpen:fme}=ume;return{isOpen:!fme,...fme&&{highlightedIndex:tme.props.defaultHighlightedIndex},...cme}},()=>{const{isOpen:ume,highlightedIndex:fme}=tme.getState();ume&&tme.getItemCount()>0&&typeof fme=="number"&&tme.setHighlightedIndex(fme,cme),cbToCb(dme)()})},this.openMenu=cme=>{this.internalSetState({isOpen:!0},cme)},this.closeMenu=cme=>{this.internalSetState({isOpen:!1},cme)},this.updateStatus=debounce$2(()=>{const cme=this.getState(),dme=this.items[cme.highlightedIndex],ume=this.getItemCount(),fme=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:ume,highlightedItem:dme,...cme});this.previousResultCount=ume,setStatus(fme,this.props.environment.document)},200);const{defaultHighlightedIndex:ame,initialHighlightedIndex:nme=ame,defaultIsOpen:rme,initialIsOpen:ime=rme,initialInputValue:ome="",initialSelectedItem:lme=null}=this.props,sme=this.getState({highlightedIndex:nme,isOpen:ime,inputValue:ome,selectedItem:lme});sme.selectedItem!=null&&this.props.initialInputValue===void 0&&(sme.inputValue=this.props.itemToString(sme.selectedItem)),this.state=sme}internalClearTimeouts(){this.timeoutIds.forEach($P=>{clearTimeout($P)}),this.timeoutIds=[]}getState($P){return $P===void 0&&($P=this.state),getState($P,this.props)}getItemCount(){let $P=this.items.length;return this.itemCount!=null?$P=this.itemCount:this.props.itemCount!==void 0&&($P=this.props.itemCount),$P}getItemNodeFromIndex($P){return this.props.environment.document.getElementById(this.getItemId($P))}scrollHighlightedItemIntoView(){{const $P=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView($P,this._menuNode)}}moveHighlightedIndex($P,tme){const ame=this.getItemCount(),{highlightedIndex:nme}=this.getState();if(ame>0){const rme=getNextWrappingIndex($P,nme,ame,ime=>this.getItemNodeFromIndex(ime));this.setHighlightedIndex(rme,tme)}}getStateAndHelpers(){const{highlightedIndex:$P,inputValue:tme,selectedItem:ame,isOpen:nme}=this.getState(),{itemToString:rme}=this.props,{id:ime}=this,{getRootProps:ome,getToggleButtonProps:lme,getLabelProps:sme,getMenuProps:cme,getInputProps:dme,getItemProps:ume,openMenu:fme,closeMenu:pme,toggleMenu:hme,selectItem:bme,selectItemAtIndex:mme,selectHighlightedItem:vme,setHighlightedIndex:gme,clearSelection:yme,clearItems:_me,reset:$me,setItemCount:Cme,unsetItemCount:Sme,internalSetState:Eme}=this;return{getRootProps:ome,getToggleButtonProps:lme,getLabelProps:sme,getMenuProps:cme,getInputProps:dme,getItemProps:ume,reset:$me,openMenu:fme,closeMenu:pme,toggleMenu:hme,selectItem:bme,selectItemAtIndex:mme,selectHighlightedItem:vme,setHighlightedIndex:gme,clearSelection:yme,clearItems:_me,setItemCount:Cme,unsetItemCount:Sme,setState:Eme,itemToString:rme,id:ime,highlightedIndex:$P,inputValue:tme,isOpen:nme,selectedItem:ame}}componentDidMount(){{const $P=()=>{this.isMouseDown=!0},tme=ome=>{this.isMouseDown=!1,!targetWithinDownshift(ome.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:mouseUp},()=>this.props.onOuterClick(this.getStateAndHelpers()))},ame=()=>{this.isTouchMove=!1},nme=()=>{this.isTouchMove=!0},rme=ome=>{const lme=targetWithinDownshift(ome.target,[this._rootNode,this._menuNode],this.props.environment,!1);!this.isTouchMove&&!lme&&this.getState().isOpen&&this.reset({type:touchEnd},()=>this.props.onOuterClick(this.getStateAndHelpers()))},{environment:ime}=this.props;ime.addEventListener("mousedown",$P),ime.addEventListener("mouseup",tme),ime.addEventListener("touchstart",ame),ime.addEventListener("touchmove",nme),ime.addEventListener("touchend",rme),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),ime.removeEventListener("mousedown",$P),ime.removeEventListener("mouseup",tme),ime.removeEventListener("touchstart",ame),ime.removeEventListener("touchmove",nme),ime.removeEventListener("touchend",rme)}}}shouldScroll($P,tme){const{highlightedIndex:ame}=this.props.highlightedIndex===void 0?this.getState():this.props,{highlightedIndex:nme}=tme.highlightedIndex===void 0?$P:tme;return ame&&this.getState().isOpen&&!$P.isOpen||ame!==nme}componentDidUpdate($P,tme){isControlledProp(this.props,"selectedItem")&&this.props.selectedItemChanged($P.selectedItem,this.props.selectedItem)&&this.internalSetState({type:controlledPropUpdatedSelectedItem,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(tme,$P)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const $P=unwrapArray(this.props.children,noop$5);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const tme=unwrapArray($P(this.getStateAndHelpers()));if(!tme)return null;if(this.getRootProps.called||this.props.suppressRefError)return tme;if(isDOMElement(tme))return reactExports.cloneElement(tme,this.getRootProps(getElementProps(tme)))}}return x_.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:getA11yStatusMessage$1,itemToString:eme=>eme==null?"":String(eme),onStateChange:noop$5,onInputValueChange:noop$5,onUserAction:noop$5,onChange:noop$5,onSelect:noop$5,onOuterClick:noop$5,selectedItemChanged:(eme,$P)=>eme!==$P,environment:typeof window>"u"?{}:window,stateReducer:(eme,$P)=>$P,suppressRefError:!1,scrollIntoView},x_.stateChangeTypes=stateChangeTypes$3,x_})();var Downshift$1=Downshift;function stateReducer(x_,eme){return eme.changes}function getA11ySelectionMessage(x_){const{selectedItem:eme,itemToString:$P}=x_;return eme?`${$P(eme)} has been selected.`:""}debounce$2((x_,eme)=>{setStatus(x_(),eme)},200);function itemToString(x_){return x_?String(x_):""}const defaultProps$3={itemToString,stateReducer,getA11ySelectionMessage,scrollIntoView,circularNavigation:!1,environment:typeof window>"u"?{}:window};PropTypes.array.isRequired,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.bool,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.bool,PropTypes.bool,PropTypes.bool,PropTypes.any,PropTypes.any,PropTypes.any,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.string,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})});function getA11yStatusMessage(x_){var eme=x_.isOpen,$P=x_.resultCount,tme=x_.previousResultCount;return eme?$P?$P!==tme?"".concat($P," result").concat($P===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}__assign$3(__assign$3({},defaultProps$3),{getA11yStatusMessage});PropTypes.array.isRequired,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.bool,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.bool,PropTypes.bool,PropTypes.bool,PropTypes.any,PropTypes.any,PropTypes.any,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.string,PropTypes.string,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})});({...defaultProps$3});function getA11yRemovalMessage(x_){const{removedSelectedItem:eme,itemToString:$P}=x_;return`${$P(eme)} has been removed.`}PropTypes.array,PropTypes.array,PropTypes.array,PropTypes.func,PropTypes.func,PropTypes.func,PropTypes.number,PropTypes.number,PropTypes.number,PropTypes.func,PropTypes.func,PropTypes.string,PropTypes.string,PropTypes.shape({addEventListener:PropTypes.func,removeEventListener:PropTypes.func,document:PropTypes.shape({getElementById:PropTypes.func,activeElement:PropTypes.any,body:PropTypes.any})});defaultProps$3.itemToString,defaultProps$3.stateReducer,defaultProps$3.environment;var copyObject$2=_copyObject,createAssigner$3=_createAssigner,keysIn$1=keysIn_1,assignIn=createAssigner$3(function(x_,eme){copyObject$2(eme,keysIn$1(eme),x_)}),assignIn_1=assignIn,extend$3=assignIn_1;const extend$4=getDefaultExportFromCjs(extend$3);var identity$2=identity_1;function castFunction$5(x_){return typeof x_=="function"?x_:identity$2}var _castFunction=castFunction$5,arrayEach$1=_arrayEach,baseEach$3=_baseEach,castFunction$4=_castFunction,isArray$6=isArray_1;function forEach$2(x_,eme){var $P=isArray$6(x_)?arrayEach$1:baseEach$3;return $P(x_,castFunction$4(eme))}var forEach_1=forEach$2;const forEach$3=getDefaultExportFromCjs(forEach_1);var each$1=forEach_1;const each$2=getDefaultExportFromCjs(each$1);var useSetState=function(x_){x_===void 0&&(x_={});var eme=__read$3(reactExports.useState(x_),2),$P=eme[0],tme=eme[1],ame=reactExports.useCallback(function(nme){tme(function(rme){return __assign$3(__assign$3({},rme),isFunction$b(nme)?nme(rme):nme)})},[]);return[$P,ame]},useUpdateEffect=function(x_,eme){var $P=reactExports.useRef(!1);reactExports.useEffect(function(){if(!$P.current)$P.current=!0;else return x_()},eme)},MIN_DISTANCE=10;function getDirection(x_,eme){return x_>eme&&x_>MIN_DISTANCE?"horizontal":eme>x_&&eme>MIN_DISTANCE?"vertical":""}var INITIAL_STATE={startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},useTouch=function(){var x_=reactExports.useRef(INITIAL_STATE),eme=x_.current,$P=function(ome){typeof ome=="function"&&(ome=ome(x_.current)),Object.entries(ome).forEach(function(lme){var sme=__read$3(lme,2),cme=sme[0],dme=sme[1];x_.current[cme]=dme})},tme=reactExports.useCallback(function(){return eme.direction==="vertical"},[eme.direction]),ame=reactExports.useCallback(function(){return eme.direction==="horizontal"},[eme.direction]),nme=function(){$P({deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""})},rme=function(ome){nme(),$P({startX:ome.touches[0].clientX,startY:ome.touches[0].clientY})},ime=function(ome){var lme=ome.touches[0];$P(function(sme){var cme=__assign$3({},sme);return cme.deltaX=lme.clientX<0?0:lme.clientX-cme.startX,cme.deltaY=lme.clientY-cme.startY,cme.offsetX=Math.abs(cme.deltaX),cme.offsetY=Math.abs(cme.deltaY),cme.direction||(cme.direction=getDirection(cme.offsetX,cme.offsetY)),cme})};return __assign$3(__assign$3({},eme),{move:ime,start:rme,reset:nme,isVertical:tme,isHorizontal:ame})},DEFAULT_DURATION=200,MOMENTUM_LIMIT_TIME=300,MOMENTUM_LIMIT_DISTANCE=15;function getElementTranslateY(x_){if(!x_)return 0;var eme=window.getComputedStyle(x_),$P=eme.transform||eme.webkitTransform,tme=$P.slice(7,$P.length-1).split(", ")[5];return Number(tme)}function isOptionDisabled(x_){return isObject$r(x_)&&x_.disabled}var PickerColumn=reactExports.forwardRef(function(x_,eme){var $P=x_.visibleItemCount,tme=$P===void 0?5:$P,ame=x_.itemHeight,nme=ame===void 0?48:ame,rme=x_.value,ime=x_.valueField,ome=ime===void 0?"value":ime,lme=x_.swipeDuration,sme=lme===void 0?1e3:lme,cme=x_.labelField,dme=cme===void 0?"text":cme,ume=x_.highlightTxt,fme=ume===void 0?"":ume,pme=x_.options,hme=pme===void 0?[]:pme,bme=x_.classnames,mme=reactExports.useRef(null),vme=reactExports.useRef(null),gme=reactExports.useRef(null),yme=reactExports.useRef(!1),_me=reactExports.useRef(0),$me=reactExports.useRef(null),Cme=reactExports.useRef(0),Sme=reactExports.useRef(0),Eme=useTouch(),xme=hme.length,Tme=function(Kme){return isObject$r(Kme)&&dme in Kme?labelToString(Kme[dme]):labelToString(Kme)},Ome=function(Kme){return isObject$r(Kme)&&ome in Kme?Kme[ome]:Kme},Rme=hme.findIndex(function(Kme){return Ome(Kme)===rme}),Nme=reactExports.useMemo(function(){return nme*(+tme-1)/2},[nme,tme]),Ime=function(Kme){if(Kme=range$2(Kme,0,xme),!!hme){for(var Zme=Kme;Zme<xme;Zme+=1)if(!isOptionDisabled(hme[Zme]))return Zme;for(var Zme=Kme-1;Zme>=0;Zme-=1)if(!isOptionDisabled(hme[Zme]))return Zme;return null}},Pme=__read$3(useSetState({index:Ime(Rme)||0,offset:0,duration:0,options:cloneDeep$1(hme)}),2),Mme=Pme[0],kme=Pme[1],Bme=function(Kme,Zme,nbe){Kme=Ime(Kme)||0;var lbe=-Kme*nme,ibe=function(){kme({index:Kme}),Zme&&x_.onChange&&requestAnimationFrame(function(){var abe;(abe=x_.onChange)===null||abe===void 0||abe.call(x_,Ome(hme[Kme]),Kme,nbe)})};yme.current&&lbe!==Mme.offset?$me.current=ibe:ibe(),kme({offset:lbe})},Dme=function(Kme){if(JSON.stringify(Kme)!==JSON.stringify(Mme.options)){kme({options:Kme});var Zme=Kme.findIndex(function(nbe){return Ome(nbe)===rme})||0;Bme(Zme,!0,!0)}},jme=function(Kme){yme.current||x_.readonly||($me.current=null,kme({duration:DEFAULT_DURATION}),Bme(Kme,!0,!0))},Vme=function(Kme){return range$2(Math.round(-Kme/nme),0,xme-1)},Wme=function(Kme,Zme){var nbe=Math.abs(Kme/Zme);Kme=Mme.offset+nbe/.003*(Kme<0?-1:1);var lbe=Vme(Kme);kme({duration:+sme}),Bme(lbe,!0)},Lme=function(){yme.current=!1,kme({duration:0}),$me.current&&($me.current(),$me.current=null)},zme=function(Kme){if(!x_.readonly){Eme.start(Kme);var Zme=Mme.offset;if(yme.current){var nbe=getElementTranslateY(gme.current);Zme=Math.min(0,nbe-Nme),_me.current=Zme}else _me.current=Zme;kme({duration:0,offset:Zme}),Cme.current=Date.now(),Sme.current=_me.current,$me.current=null}},Ume=function(Kme){if(!x_.readonly){Eme.move(Kme),Eme.isVertical()&&(yme.current=!0);var Zme=range$2(_me.current+Eme.deltaY,-(xme*nme),nme);kme({offset:Zme});var nbe=Date.now();nbe-Cme.current>MOMENTUM_LIMIT_TIME&&(Cme.current=nbe,Sme.current=Zme)}},Gme=function(){if(!x_.readonly){var Kme=Mme.offset-Sme.current,Zme=Date.now()-Cme.current,nbe=Zme<MOMENTUM_LIMIT_TIME&&Math.abs(Kme)>MOMENTUM_LIMIT_DISTANCE;if(nbe){Wme(Kme,Zme);return}var lbe=Vme(Mme.offset);kme({duration:DEFAULT_DURATION}),Bme(lbe,!0),setTimeout(function(){yme.current=!1},0)}},Jme=function(){var Kme={height:"".concat(nme,"px"),lineHeight:"".concat(nme,"px")};return Mme.options.map(function(Zme,nbe){var lbe=Tme(Zme),ibe=isOptionDisabled(Zme),abe={role:"button",key:nbe,style:Kme,tabIndex:ibe?-1:0,className:x_.classnames("PickerColumns-columnItem",{"is-disabled":ibe,"is-selected":nbe===Mme.index}),onClick:function(){jme(nbe)}},obe={className:"text-ellipsis",children:fme?highlight(lbe,fme,bme("Select-option-hl")):lbe};return jsx("li",{...__assign$3({},abe,{ref:vme}),children:x_.optionRender?x_.optionRender(Zme,{index:nbe,checked:Mme.index===nbe}):jsx("div",{...__assign$3({},obe)})})})},Yme=function(Kme){for(var Zme=Mme.options,nbe=0;nbe<Zme.length;nbe+=1)if(Zme[nbe]===Kme)return Bme(nbe);return null},Qme=reactExports.useCallback(function(){return Mme.options[Mme.index]},[Mme.index,Mme.options]);reactExports.useEffect(function(){Bme(Rme)},[Rme]),useUpdateEffect(function(){Dme(cloneDeep$1(hme))},[hme]),reactExports.useImperativeHandle(eme,function(){return{state:Mme,setIndex:Bme,getValue:Qme,setValue:Yme,setOptions:Dme,stopMomentum:Lme}});var Xme={transform:"translate3d(0, ".concat(Mme.offset+Nme,"px, 0)"),transitionDuration:"".concat(Mme.duration,"ms"),transitionProperty:Mme.duration?"all":"none"};return jsx("div",{ref:mme,className:x_.classnames("PickerColumns",x_.className),onTouchStart:zme,onTouchMove:Ume,onTouchEnd:Gme,onTouchCancel:Gme,children:jsx("ul",{ref:gme,style:Xme,className:x_.classnames("PickerColumns-columnWrapper"),onTransitionEnd:Lme,children:Jme()})})});PickerColumn.defaultProps={options:[],visibleItemCount:5,swipeDuration:1e3,itemHeight:48};var Column=themeable(uncontrollable(PickerColumn,{value:"onChange"}));function fixToArray(x_){return Array.isArray(x_)?x_:[x_]}var Picker=reactExports.memo(function(x_){var eme=x_.title,$P=x_.labelField,tme=x_.valueField,ame=x_.visibleItemCount,nme=ame===void 0?5:ame,rme=x_.value,ime=rme===void 0?[]:rme,ome=x_.swipeDuration,lme=ome===void 0?1e3:ome,sme=x_.columns,cme=sme===void 0?[]:sme,dme=x_.itemHeight,ume=dme===void 0?48:dme,fme=x_.showToolbar,pme=fme===void 0?!0:fme,hme=x_.className,bme=hme===void 0?"":hme,mme=x_.highlightTxt,vme=mme===void 0?"":mme,gme=x_.classnames,yme=x_.classPrefix,_me=x_.translate,$me=fixToArray(cme),Cme=__read$3(reactExports.useState(fixToArray(x_.value===void 0?x_.defaultValue||[]:ime)),2),Sme=Cme[0],Eme=Cme[1];reactExports.useEffect(function(){ime!==Sme&&Eme(fixToArray(ime))},[ime]);var xme=function(){x_.onClose&&x_.onClose(Sme)},Tme=function(){x_.onConfirm&&x_.onConfirm(Sme)},Ome=function(Bme,Dme,jme){var Vme=__spreadArray([],__read$3(Sme),!1);Vme[Dme]=Bme,Eme(Vme),x_.onChange&&x_.onChange(Vme,Dme,jme)},Rme=function(Bme,Dme){return jsx(Column,{...__assign$3({},Bme,{highlightTxt:vme,classnames:gme,classPrefix:yme,labelField:$P||Bme.labelField,valueField:tme||Bme.valueField,itemHeight:ume,swipeDuration:lme,visibleItemCount:nme,value:Sme[Dme],onChange:function(jme,Vme,Wme){Ome(jme,Dme,Wme)},key:"column".concat(Dme)})})},Nme=ume*+nme,Ime={height:"".concat(ume,"px")},Pme={height:"".concat(Nme,"px")},Mme={backgroundSize:"100% ".concat((Nme-ume)/2,"px")},kme=pme||eme;return jsxs("div",{className:gme(bme,"PickerColumns","PickerColumns-popOver"),children:[kme&&jsxs("div",{className:gme("PickerColumns-header"),children:[pme&&jsx(Button$1,{className:"PickerColumns-cancel",level:"link",onClick:xme,children:_me("cancel")}),eme&&jsx("div",{className:gme("PickerColumns-title"),children:eme}),pme&&jsx(Button$1,{className:"PickerColumns-confirm",level:"link",onClick:Tme,children:_me("confirm")})]}),jsxs("div",{className:gme("PickerColumns-columns"),style:Pme,children:[$me.map(function(Bme,Dme){return Rme(Bme,Dme)}),jsx("div",{className:gme("PickerColumns-mask"),style:Mme}),jsx("div",{className:gme("PickerColumns-frame"),style:Ime})]})]})}),Picker$1=themeable(localeable(uncontrollable(Picker,{value:"onChange"}))),CustomDaysView=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},tme.updateSelectedDate=function(sme){if(tme.props.requiredConfirm){var cme=tme.props.viewDate.clone(),dme=tme.props.selectedDate||cme,ume=sme.target,fme=0;~ume.className.indexOf("rdtNew")&&(fme=1),~ume.className.indexOf("rdtOld")&&(fme=-1),cme.month(cme.month()+fme).date(parseInt(ume.getAttribute("data-value"),10)).hours(dme.hours()).minutes(dme.minutes()).seconds(dme.seconds()).milliseconds(dme.milliseconds()),tme.props.setDateTimeState({viewDate:cme,selectedDate:cme.clone()});return}tme.props.updateSelectedDate(sme,!0)},tme.showTime=function(){var sme=tme.props,cme=sme.selectedDate,dme=sme.viewDate,ume=sme.timeFormat;return React__default.createElement("div",{key:"stb",className:"rdtShowTime"},(cme||dme||hooks()).format(ume))},tme.setTime=function(sme,cme){var dme=(tme.props.selectedDate||tme.props.viewDate).clone();dme[sme](cme);var ume=dme.clone();tme.props.setDateTimeState({viewDate:ume,selectedDate:ume}),tme.props.requiredConfirm||tme.props.onChange(dme,"time")},tme.scrollToTop=function(sme,cme,dme,ume){var fme,pme,hme=document.getElementById("".concat(tme.state.uniqueTag,"-").concat(dme,"-input")),bme=tme.timeConstraints[sme],mme=bme.min,vme=bme.step,gme=(cme-mme)/vme,yme=28;(pme=(fme=hme==null?void 0:hme.parentNode)===null||fme===void 0?void 0:fme.scrollTo)===null||pme===void 0||pme.call(fme,{top:gme*yme,behavior:ume==="init"?"auto":"smooth"})},tme.confirm=function(){var sme,cme,dme=(tme.props.selectedDate||tme.props.viewDate).clone();!((sme=tme.props.minDate)===null||sme===void 0)&&sme.isValid()&&(!((cme=tme.props.minDate)===null||cme===void 0)&&cme.isAfter(dme))&&(dme=tme.props.minDate.clone()),tme.props.setDateTimeState({selectedDate:dme}),tme.props.onChange(dme),tme.props.onClose&&tme.props.onClose()},tme.cancel=function(){tme.props.onClose&&tme.props.onClose()},tme.curfilterHtml=function(sme){var cme=tme.props.env;return cme!=null&&cme.filterHtml?cme.filterHtml(sme):sme},tme.renderDay=function(sme,cme){var dme,ume=sme.todayActiveStyle,fme=tme.props,pme=fme.classnames,hme=fme.translate,bme=fme.testIdBuilder,mme=omit$1(sme,["todayActiveStyle"]),vme=function(Ome){ume&&Ome&&each$2(ume,function(Rme,Nme){var Ime,Pme;typeof Rme=="string"&&~Rme.indexOf("!important")&&((Pme=(Ime=Ome==null?void 0:Ome.style)===null||Ime===void 0?void 0:Ime.setProperty)===null||Pme===void 0||Pme.call(Ime,kebabCase$1(Nme),String(Rme).replace(/\!important/,"").trim(),"important"))})};if(tme.props.schedules){var gme=[];if(tme.props.schedules.forEach(function(Ome){var Rme=cme.startOf("day"),Nme=hooks(Ome.startTime).startOf("day"),Ime=hooks(Ome.endTime).startOf("day");Rme.isSameOrAfter(Nme)&&Rme.isSameOrBefore(Ime)&&gme.push(Ome)}),gme.length>0){var yme={scheduleData:gme.map(function(Ome){return __assign$3(__assign$3({},Ome),{time:hooks(Ome.startTime).format("YYYY-MM-DD HH:mm:ss")+" - "+hooks(Ome.endTime).format("YYYY-MM-DD HH:mm:ss")})}),currentDate:cme};if(tme.props.largeMode){for(var _me=[],$me=0;$me<gme.length&&!(_me.length>3);$me++)if(hooks(gme[$me].startTime).isSame(cme,"day"))_me.push(gme[$me]);else if(cme.weekday()===0){var Cme=Math.min(hooks(gme[$me].endTime).diff(cme,"days")+1,7);_me.push(__assign$3(__assign$3({},gme[$me]),{width:Cme,startTime:hooks(cme),endTime:hooks(cme).add(Cme-1,"days")})),gme[$me].height===void 0&&(gme[$me].height=0)}else _me.push({width:1,className:"bg-transparent",content:"",height:gme[$me].height});[0,1,2].forEach(function(Ome){var Rme=findIndex$3(_me,function(Ime){return Ime.height===Ome});if(Rme===-1&&(Rme=findIndex$3(_me,function(Ime){return Ime.height===void 0})),Rme>-1&&Rme!==Ome&&_me[Ome]){var Nme=_me[Ome];_me[Ome]=_me[Rme],_me[Rme]=Nme}_me[Ome]&&_me[Ome].height===void 0&&(_me[Ome].height=Ome)}),_me=_me.slice(0,3);var Sme=tme.props.viewDate.localeData(),Eme=Sme.firstDayOfWeek(),xme=_me.map(function(Ome,Rme){var Nme=hooks(Ome.endTime).diff(hooks(Ome.startTime),"days");Nme<=0&&(Nme=hooks(Ome.endTime).endOf("day").diff(hooks(Ome.startTime).startOf("day"),"days")),Nme+=1;var Ime=7-(hooks(Ome.startTime).weekday()-Eme+1),Pme=Ome.width||Math.min(Nme,Ime)||1;return React__default.createElement("div",{key:mme.key+"content"+Rme,className:pme("ScheduleCalendar-large-schedule-content",Ome.className),style:{width:Pme+"00%"},onClick:function(){return tme.props.onScheduleClick&&tme.props.onScheduleClick(yme)}},React__default.createElement("div",{className:pme("ScheduleCalendar-text-overflow"),dangerouslySetInnerHTML:{__html:tme.curfilterHtml(Ome.content)}}))});return React__default.createElement("td",__assign$3({},mme),React__default.createElement("div",{className:pme("ScheduleCalendar-large-day-wrap")},React__default.createElement("div",{className:pme("ScheduleCalendar-large-schedule-header")},React__default.createElement("span",null,cme.date())),xme,gme.length>3&&React__default.createElement("div",{className:pme("ScheduleCalendar-large-schedule-footer")},gme.length-3," ",hme("more"))))}var Tme=React__default.createElement("div",{className:pme("ScheduleCalendar-icon",gme[0].className),onClick:function(){return tme.props.onScheduleClick&&tme.props.onScheduleClick(yme)}});return React__default.createElement("td",__assign$3({},mme),React__default.createElement("span",{style:ume,ref:vme},cme.date(),Tme))}}return React__default.createElement("td",__assign$3({},mme),React__default.createElement("span",__assign$3({style:ume,ref:vme},(dme=bme==null?void 0:bme.getChild(sme.key))===null||dme===void 0?void 0:dme.getTestId()),cme.date()))},tme.renderTimes=function(){var sme=tme.props,cme=sme.timeFormat,dme=sme.selectedDate,ume=sme.viewDate,fme=sme.isEndDate,pme=sme.classnames,hme=sme.testIdBuilder,bme=dme||(fme?ume.endOf("day"):ume),mme=[],vme=tme.timeConstraints;return cme.split(":").forEach(function(gme,yme){var _me=/h/i.test(gme)?"hours":/m/.test(gme)?"minutes":/s/.test(gme)?"seconds":"";if(_me){var $me=vme[_me].min,Cme=vme[_me].max,Sme=tme.computedTimeOptions(_me),Eme={hours:"HH",minutes:"mm",seconds:"ss"};mme.push(React__default.createElement(Downshift$1,{key:yme+"input",inputValue:bme.format(Eme[_me])},function(xme){var Tme=xme.getInputProps,Ome=xme.openMenu,Rme=xme.closeMenu;Tme({onFocus:function(){return Ome()},onChange:function(Ime){return tme.setTime(_me,Math.max($me,Math.min(parseInt(Ime.currentTarget.value.replace(/\D/g,""),10)||0,Cme)))}});var Nme=hme==null?void 0:hme.getChild(_me);return React__default.createElement("div",{className:pme("CalendarInputWrapper","CalendarInputWrapperMT")},React__default.createElement("div",{className:pme("CalendarInput-sugs",_me==="hours"?"CalendarInput-sugsHours":"CalendarInput-sugsTimes"),id:"".concat(tme.state.uniqueTag,"-").concat(yme,"-input")},Sme.map(function(Ime){var Pme,Mme;return React__default.createElement("div",__assign$3({key:Ime.value,className:pme("CalendarInput-sugsItem",{"is-highlight":dme?Ime.value===bme.format(Eme[_me]):Ime.value===((Pme=Sme==null?void 0:Sme[0])===null||Pme===void 0?void 0:Pme.value)})},(Mme=Nme==null?void 0:Nme.getChild(Ime.value))===null||Mme===void 0?void 0:Mme.getTestId(),{onClick:function(){tme.setTime(_me,parseInt(Ime.value,10)),tme.scrollToTop(_me,parseInt(Ime.value,10),yme),Rme()}}),Ime.value)})))})),mme.push(React__default.createElement("span",{key:yme+"divider"}))}}),mme.length&&mme.pop(),React__default.createElement("div",{className:pme("CalendarTimesWrapper")},tme.showTime(),React__default.createElement("div",{className:pme("CalendarInputsWrapper")},mme))},tme.renderFooter=function(){if(!tme.props.requiredConfirm)return null;var sme=tme.props,cme=sme.translate,dme=sme.classnames;return React__default.createElement("tfoot",{key:"tf"},React__default.createElement("tr",null,React__default.createElement("td",{colSpan:7},tme.props.requiredConfirm?React__default.createElement("div",{key:"button",className:"rdtActions"},React__default.createElement("a",{className:dme("Button","Button--default"),onClick:tme.cancel},cme("cancel")),React__default.createElement("a",{className:dme("Button","Button--primary","m-l-sm"),onClick:tme.confirm},cme("confirm"))):null)))},tme.onPickerConfirm=function(sme){tme.props.onConfirm&&tme.props.onConfirm(sme,tme.state.types)},tme.onPickerChange=function(sme,cme){var dme=tme.props,ume=dme.selectedDate,fme=dme.viewDate;if(cme===1||cme===0){var pme=(ume||fme||hooks()).clone(),hme=convertArrayValueToMoment(sme,["year","month"],pme),bme=tme.props.getDateBoundary(hme);tme.setState({columns:tme.getColumnsWithUnit(tme.props.getColumns(tme.state.types,bme)),pickerValue:sme})}},tme.renderPicker=function(){var sme=tme.props.translate,cme=tme.state.types.length>3?sme("Date.titleTime"):sme("Date.titleDate");return React__default.createElement(Picker$1,{translate:tme.props.translate,locale:tme.props.locale,title:cme,columns:tme.state.columns,value:tme.state.pickerValue,onChange:tme.onPickerChange,onConfirm:tme.onPickerConfirm,onClose:tme.cancel})};var ame=$P.selectedDate;$P.viewDate;var nme=$P.timeFormat,rme=ame||hooks(),ime=["year","month","date"];nme.split(":").forEach(function(sme){var cme=/h/i.test(sme)?"hours":/m/.test(sme)?"minutes":/s/.test(sme)?"seconds":"";cme&&ime.push(cme)});var ome=tme.props.getDateBoundary(rme),lme=tme.props.getColumns(ime,ome);return tme.state={columns:tme.getColumnsWithUnit(lme),types:ime,pickerValue:rme.toArray(),uniqueTag:new Date().valueOf()},tme.props.timeConstraints&&(tme.timeConstraints=merge$4(tme.timeConstraints,$P.timeConstraints)),tme}return eme.prototype.getDaysOfWeek=function($P){var tme=$P._weekdaysMin,ame=$P.firstDayOfWeek(),nme=[],rme=0;return tme.forEach(function(ime){nme[(7+rme++-ame)%7]=ime}),nme},eme.prototype.alwaysValidDate=function(){return 1},eme.prototype.renderDays=function(){var $P=this,tme=this.props.viewDate,ame=this.props.selectedDate&&this.props.selectedDate.clone(),nme=tme.clone().subtract(1,"months"),rme=tme.year(),ime=tme.month(),ome=[],lme=[],sme=this.props.renderDay||this.renderDay,cme=this.props.isValidDate||this.alwaysValidDate,dme,ume,fme,pme,hme=this.props.todayActiveStyle,bme=hme===void 0?{}:hme;nme.date(nme.daysInMonth()).startOf("week");for(var mme=nme.clone().add(42,"d");nme.isBefore(mme);)dme="rdtDay",pme=nme.clone(),nme.year()===rme&&nme.month()<ime||nme.year()<rme?dme+=" rdtOld":(nme.year()===rme&&nme.month()>ime||nme.year()>rme)&&(dme+=" rdtNew"),ame&&nme.isSame(ame,"day")&&(dme+=" rdtActive"),nme.isSame(hooks(),"day")&&(dme+=" rdtToday"),ume=!cme(pme,ame),ume&&(dme+=" rdtDisabled"),fme=extend$4({key:nme.format("M_D"),"data-value":nme.date(),className:dme},dme.includes("rdtToday")?{todayActiveStyle:bme}:{}),ume||(fme.onClick=function(vme){$P.props.onClick(vme),$P.updateSelectedDate(vme)},fme.onMouseEnter=function(vme){$P.props.onMouseEnter(vme)},fme.onMouseLeave=function(vme){$P.props.onMouseLeave(vme)}),lme.push(sme(fme,pme,ame)),lme.length===7&&(ome.push(React__default.createElement("tr",{key:nme.format("M_D")},lme)),lme=[]),nme.add(1,"d");return ome},eme.prototype.componentDidMount=function(){var $P=this.props,tme=$P.timeFormat,ame=$P.selectedDate,nme=$P.viewDate,rme=$P.isEndDate,ime=ame||(rme?nme.endOf("day"):nme);this.setupTime(ime,tme,"init")},eme.prototype.componentDidUpdate=function($P,tme,ame){var nme=this.props.selectedDate;if(hooks.isMoment(nme)&&nme.isValid()&&!nme.isSame($P.selectedDate)){var rme=this.props.timeFormat;this.setupTime(nme,rme)}},eme.prototype.setupTime=function($P,tme,ame){var nme=this,rme={hours:"HH",minutes:"mm",seconds:"ss"};tme.split(":").forEach(function(ime,ome){var lme=/h/i.test(ime)?"hours":/m/.test(ime)?"minutes":/s/.test(ime)?"seconds":"";lme&&nme.scrollToTop(lme,parseInt($P.format(rme[lme]),10),ome,ame)})},eme.prototype.getColumnsWithUnit=function($P){return this.props.locale==="zh-CN"&&$P.length===3?$P.map(function(tme,ame){var nme;return(nme=tme.options)===null||nme===void 0||nme.map(function(rme){return rme.text=rme.text+(ame===0?"年":ame===1?"月":"日"),rme}),tme}):$P},eme.prototype.computedTimeOptions=function($P){var tme,ame=(tme=this.timeConstraints)===null||tme===void 0?void 0:tme[$P],nme=ame.min,rme=ame.max,ime=ame.step;return Array.from({length:rme-nme+1},function(ome,lme){var sme=(lme+nme).toString().padStart($P!=="milliseconds"?2:3,"0");return lme%ime===0?{label:sme,value:sme}:void 0}).filter(function(ome){return!!ome})},eme.prototype.render=function(){var $P=this.props,tme=$P.viewDate,ame=$P.mobileUI,nme=$P.embed,rme=$P.timeFormat;$P.classnames;var ime=$P.testIdBuilder,ome=tme.localeData(),lme=this.props.translate;if(ame&&!nme)return React__default.createElement("div",{className:"rdtYears"},this.renderPicker());var sme=[this.props.hideHeader?null:React__default.createElement("thead",{key:"th"},React__default.createElement("tr",null,React__default.createElement("th",{colSpan:7},React__default.createElement("div",{className:"rdtHeader"},React__default.createElement("a",__assign$3({className:"rdtPrev",onClick:this.props.subtractTime(1,"years")},ime==null?void 0:ime.getChild("prev-year").getTestId()),React__default.createElement(Icon$1,{icon:"right-double-arrow",className:"icon date-icon-arrow-left"})),React__default.createElement("a",__assign$3({className:"rdtPrev",onClick:this.props.subtractTime(1,"months")},ime==null?void 0:ime.getChild("prev-month").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon date-icon-arrow-left"})),React__default.createElement("div",{className:"rdtCenter"},React__default.createElement("a",__assign$3({className:"rdtSwitch",onClick:this.props.showView("years")},ime==null?void 0:ime.getChild("switch-years").getTestId()),tme.format(lme("dateformat.year"))),React__default.createElement("a",__assign$3({className:"rdtSwitch",onClick:this.props.showView("months")},ime==null?void 0:ime.getChild("switch-months").getTestId()),tme.format(lme("MMM")))),React__default.createElement("a",__assign$3({className:"rdtNext",onClick:this.props.addTime(1,"months")},ime==null?void 0:ime.getChild("next-month").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon date-icon-arrow"})),React__default.createElement("a",__assign$3({className:"rdtNext",onClick:this.props.addTime(1,"years")},ime==null?void 0:ime.getChild("next-year").getTestId()),React__default.createElement(Icon$1,{icon:"right-double-arrow",className:"icon date-icon-arrow"}))),React__default.createElement("div",{className:"header-line"}))),React__default.createElement("tr",null,this.getDaysOfWeek(ome).map(function(cme,dme){return React__default.createElement("th",{key:cme+dme,className:"dow"},cme)}))),React__default.createElement("tbody",{key:"tb"},this.renderDays())];return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:rme?"rdtDays":""},React__default.createElement("table",{className:rme?"rdtDaysPart":""},sme),rme?React__default.createElement("div",{className:rme.toLowerCase().indexOf("s")>0?"rdtTimePartWithS":"rdtTimePart"},this.renderTimes()):null),React__default.createElement("table",null,this.renderFooter()))},eme}(React__default.Component),CustomDaysView$1=localeable(CustomDaysView),CustomYearsView=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.renderYear=function(ime,ome,lme){var sme=tme.props.testIdBuilder;return React__default.createElement("td",__assign$3({},ime),React__default.createElement("span",__assign$3({},sme==null?void 0:sme.getChild(ime.key).getTestId()),ome))},tme.onConfirm=function(ime){tme.props.onConfirm&&tme.props.onConfirm(ime,["year"])},tme.onPickerChange=function(ime){tme.setState({pickerValue:ime[0]})},tme.renderYearPicker=function(){var ime=tme.props,ome=ime.translate,lme=ime.minDate,sme=ime.maxDate,cme=ime.selectedDate,dme=ime.viewDate,ume=(cme||dme||hooks()).year(),fme=sme?sme.toObject().years:ume+100,pme=lme?lme.toObject().years:ume-100,hme=ome("Date.titleYear"),bme=[{options:getRange(pme,fme,1)}];return React__default.createElement(Picker$1,{translate:tme.props.translate,locale:tme.props.locale,title:hme,columns:bme,value:tme.state.pickerValue,onConfirm:tme.onConfirm,onChange:tme.onPickerChange,onClose:tme.props.onClose})};var ame=$P.selectedDate,nme=$P.viewDate,rme=ame||nme||hooks();return tme.state={pickerValue:rme.toObject().years},tme.updateSelectedYear=tme.updateSelectedYear.bind(tme),tme}return eme.prototype.renderYears=function($P){var tme=[],ame=-1,nme=[],rme=this.props.renderYear||this.renderYear,ime=this.props.selectedDate,ome=this.props.isValidDate||this.alwaysValidDate,lme,sme,cme,dme,ume,fme,pme,hme=0,bme=1;for($P--;ame<11;)lme="rdtYear",cme=this.props.viewDate.clone().set({year:$P,month:hme,date:bme}),ume=parseInt(cme.endOf("year").format("DDD"),10),fme=Array.from({length:ume},function(mme,vme){return vme+1}),pme=fme.find(function(mme){var vme=cme.clone().dayOfYear(mme);return ome(vme)}),dme=pme===void 0,dme&&(lme+=" rdtDisabled"),ime&&ime.year()===$P&&(lme+=" rdtActive"),(ame===-1||ame===10)&&(lme+=" text-muted"),sme={key:$P,"data-value":$P,className:lme},dme||(sme.onClick=this.props.updateOn==="years"?this.updateSelectedYear:this.props.setDate&&this.props.setDate("year")),tme.push(rme(sme,$P,ime&&ime.clone())),tme.length===3&&(nme.push(React__default.createElement("tr",{key:ame},tme)),tme=[]),$P++,ame++;return nme},eme.prototype.updateSelectedYear=function($P){this.props.updateSelectedDate($P)},eme.prototype.alwaysValidDate=function(){return!0},eme.prototype.render=function(){var $P=this.props.viewDate.year();$P=$P-$P%10;var tme=this.props,ame=tme.testIdBuilder,nme=tme.translate;return this.props.mobileUI?React__default.createElement("div",{className:"rdtYears"},this.renderYearPicker()):React__default.createElement("div",{className:"rdtYears"},React__default.createElement("table",{className:"headerTable"},React__default.createElement("thead",null,React__default.createElement("tr",null,React__default.createElement("th",__assign$3({className:"rdtPrev",onClick:this.props.subtractTime(10,"years")},ame==null?void 0:ame.getChild("prev-year").getTestId()),"«"),React__default.createElement("th",{className:"rdtSwitch"},nme("year-to-year",{from:$P,to:$P+9})),React__default.createElement("th",__assign$3({className:"rdtNext",onClick:this.props.addTime(10,"years")},ame==null?void 0:ame.getChild("next-year").getTestId()),"»")))),React__default.createElement("table",null,React__default.createElement("tbody",null,this.renderYears($P))))},eme}(React__default.Component),CustomYearsView$1=localeable(CustomYearsView),CustomMonthsView=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.renderMonth=function(lme,sme,cme,dme){var ume=tme.props,fme=ume.translate,pme=ume.testIdBuilder,hme=lme.viewDate,bme=__rest$14(lme,["viewDate"]),mme=hme.month(sme).format(fme("MMM")),vme=3,gme=mme.substring(0,vme);return React__default.createElement("td",__assign$3({},bme),React__default.createElement("span",__assign$3({},pme==null?void 0:pme.getChild(lme.key).getTestId()),gme))},tme.onConfirm=function(lme,sme){tme.props.onConfirm&&tme.props.onConfirm(lme,["year","month"])},tme.onPickerChange=function(lme,sme){var cme=tme.props,dme=cme.maxDate,ume=cme.minDate,fme=hooks().year(),pme=__spreadArray([],__read$3(tme.state.columns),!1),hme=dme?dme.toObject():{years:fme+100,months:11},bme=ume?ume.toObject():{years:fme-100,months:0},mme=[];sme===0&&(lme[0]===bme.years&&lme[0]===hme.years?mme=getRange(bme.months,hme.months,1):lme[0]===bme.years?mme=getRange(bme.months,11,1):lme[0]===hme.years?mme=getRange(0,hme.months,1):mme=getRange(0,11,1),pme[1]={options:mme.map(function(vme){return{text:tme.props.timeCell(vme+1,"month"),value:vme}})},tme.setState({columns:tme.getColumnsWithUnit(pme),pickerValue:lme}))},tme.renderPicker=function(){var lme=tme.props.translate,sme=lme("Date.titleMonth");return React__default.createElement(Picker$1,{translate:tme.props.translate,locale:tme.props.locale,title:sme,columns:tme.state.columns,value:tme.state.pickerValue,onChange:tme.onPickerChange,onConfirm:tme.onConfirm,onClose:tme.props.onClose})};var ame=$P.selectedDate,nme=$P.viewDate,rme=ame||nme||hooks(),ime=tme.props.getDateBoundary(rme),ome=tme.props.getColumns(["year","month"],ime);return tme.state={columns:tme.getColumnsWithUnit(ome),pickerValue:rme.toArray()},tme.updateSelectedMonth=tme.updateSelectedMonth.bind(tme),tme}return eme.prototype.renderMonths=function(){this.props.testIdBuilder;var $P=this.props.selectedDate;this.props.viewDate.month();for(var tme=this.props.viewDate.year(),ame=[],nme=0,rme=[],ime=this.props.renderMonth||this.renderMonth,ome=this.props.isValidDate||this.alwaysValidDate,lme,sme,cme,dme,ume,fme,pme,hme=1;nme<12;)lme="rdtMonth",cme=this.props.viewDate.clone().set({year:tme,month:nme,date:hme}),ume=parseInt(cme.endOf("month").format("D"),10),fme=Array.from({length:ume},function(bme,mme){return mme+1}),pme=fme.find(function(bme){var mme=cme.clone().set("date",bme);return ome(mme)}),dme=pme===void 0,dme&&(lme+=" rdtDisabled"),$P&&nme===$P.month()&&tme===$P.year()&&(lme+=" rdtActive"),sme={key:nme,"data-value":nme,className:lme,viewDate:this.props.viewDate},dme||(sme.onClick=this.props.updateOn==="months"?this.updateSelectedMonth:this.props.setDate&&this.props.setDate("month")),rme.push(ime(sme,nme,tme,$P&&$P.clone())),rme.length===3&&(ame.push(React__default.createElement("tr",{key:nme},rme)),rme=[]),nme++;return ame},eme.prototype.updateSelectedMonth=function($P){this.props.updateSelectedDate($P)},eme.prototype.getColumnsWithUnit=function($P){return this.props.locale==="zh-CN"&&$P.length===2?$P.map(function(tme,ame){var nme;return(nme=tme.options)===null||nme===void 0||nme.map(function(rme){return rme.text=rme.text+(ame===0?"年":"月"),rme}),tme}):$P},eme.prototype.alwaysValidDate=function(){return!0},eme.prototype.render=function(){var $P=this.props.translate,tme=this.props.testIdBuilder,ame=!/^mm$/i.test(this.props.inputFormat||"")&&!this.props.hideHeader,nme=/yy/i.test(this.props.inputFormat||"");return this.props.mobileUI?React__default.createElement("div",{className:"rdtYears"},this.renderPicker()):React__default.createElement("div",{className:"rdtMonths"},ame&&React__default.createElement("table",{className:"headerTable"},React__default.createElement("thead",null,React__default.createElement("tr",null,React__default.createElement("th",__assign$3({className:"rdtPrev",onClick:this.props.subtractTime(1,"years")},tme==null?void 0:tme.getChild("prev-year").getTestId()),"«"),nme?React__default.createElement("th",__assign$3({className:"rdtSwitch",onClick:this.props.showView("years")},tme==null?void 0:tme.getChild("switch-year").getTestId()),this.props.viewDate.format($P("dateformat.year"))):React__default.createElement("th",{className:"rdtSwitch"},this.props.viewDate.format($P("dateformat.year"))),React__default.createElement("th",__assign$3({className:"rdtNext",onClick:this.props.addTime(1,"years")},tme==null?void 0:tme.getChild("next-year").getTestId()),"»")))),React__default.createElement("table",null,React__default.createElement("tbody",null,this.renderMonths())))},eme}(React__default.Component),CustomMonthsView$1=localeable(CustomMonthsView),CustomTimeView=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.padValues={hours:2,minutes:2,seconds:2,milliseconds:3},tme.timeConstraints={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},tme.timeList=[],tme.shoudExtractTimeConstraintsList=function(){var ame=tme.timeConstraints,nme=!1;return!ame||!isObject$8(ame)||["hours","minutes","seconds"].forEach(function(rme){var ime=ame[rme],ome=ime.min,lme=ime.max,sme=ime.step;nme===!1&&(rme==="hours"?nme=ome>0||lme<23||sme>1:(rme==="minutes"||rme==="seconds")&&(nme=ome>0||lme<59||sme>1))}),nme},tme.updateSelectedDate=function(ame){if(tme.props.requiredConfirm){var nme=tme.props.viewDate.clone(),rme=tme.props.selectedDate||nme,ime=ame.target,ome=0;~ime.className.indexOf("rdtNew")&&(ome=1),~ime.className.indexOf("rdtOld")&&(ome=-1),nme.month(nme.month()+ome).date(parseInt(ime.getAttribute("data-value"),10)).hours(rme.hours()).minutes(rme.minutes()).seconds(rme.seconds()).milliseconds(rme.milliseconds()),tme.props.setDateTimeState({viewDate:nme,selectedDate:nme.clone()});return}tme.props.updateSelectedDate(ame,!0)},tme.renderDayPart=function(){var ame=tme.props,nme=ame.translate,rme=ame.classnames;return React__default.createElement("div",{key:"dayPart",className:rme("CalendarCounter CalendarCounter--daypart")},React__default.createElement("span",{key:"up",className:rme("CalendarCounter-btn CalendarCounter-btn--up"),onClick:tme.onStartClicking("toggleDayPart","hours"),onContextMenu:tme.disableContextMenu},React__default.createElement(Icon$1,{icon:"right-arrow-bold"})),React__default.createElement("div",{className:rme("CalendarCounter-value"),key:tme.state.daypart},nme(tme.state.daypart)),React__default.createElement("span",{key:"down",className:rme("CalendarCounter-btn CalendarCounter-btn--down"),onClick:tme.onStartClicking("toggleDayPart","hours"),onContextMenu:tme.disableContextMenu},React__default.createElement(Icon$1,{icon:"right-arrow-bold"})))},tme.getCounterValue=function(ame){if(ame!=="daypart"){var nme=tme.state[ame];return ame==="hours"&&tme.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(nme=(nme-1)%12+1,nme===0&&(nme=12)),parseInt(nme)}return 0},tme.renderCounter=function(ame){var nme=tme.props.classnames;if(ame!=="daypart"){var rme=tme.getCounterValue(ame),ime=tme.timeConstraints[ame],ome=ime.min,lme=ime.max,sme=ime.step;return React__default.createElement("div",{key:ame,className:nme("CalendarCounter")},React__default.createElement("span",{key:"up",className:nme("CalendarCounter-btn CalendarCounter-btn--up"),onMouseDown:tme.onStartClicking("increase",ame),onContextMenu:tme.disableContextMenu},React__default.createElement(Icon$1,{icon:"right-arrow-bold"})),React__default.createElement("div",{key:"c",className:nme("CalendarCounter-value")},React__default.createElement("input",{type:"text",value:tme.pad(ame,rme),className:nme("CalendarInput"),min:ome,max:lme,step:sme,onChange:function(cme){return tme.props.setTime(ame,Math.max(ome,Math.min(parseInt(cme.currentTarget.value.replace(/\D/g,""),10)||0,lme)))}})),React__default.createElement("span",{key:"do",className:nme("CalendarCounter-btn CalendarCounter-btn--down"),onMouseDown:tme.onStartClicking("decrease",ame),onContextMenu:tme.disableContextMenu},React__default.createElement(Icon$1,{icon:"right-arrow-bold"})))}return null},tme.onConfirm=function(ame){var nme=tme.state.counters.indexOf("hours");if(nme!==-1&&tme.state.daypart!==!1&&tme.props.timeFormat.toLowerCase().indexOf(" a")!==-1){var rme=ame.splice(-1,1)[0],ime=ame[nme]%12;rme.toLowerCase().indexOf("p")!==-1&&(ime=ime+12),ame[nme]=ime}tme.props.onConfirm&&tme.props.onConfirm(ame,tme.state.counters)},tme.getDayPartOptions=function(){var ame=tme.props.translate,nme=["am","pm"];return tme.props.timeFormat.indexOf(" A")!==-1&&(nme=["AM","PM"]),nme.map(function(rme){return{text:ame(rme),value:rme}})},tme.onPickerChange=function(ame,nme){var rme={};tme.state.counters.forEach(function(ime,ome){return rme[ime]=ame[ome]}),tme.state.daypart!==!1&&nme>tme.state.counters.length-1&&(rme.daypart=ame[ame.length-1]),tme.setState(function(ime){return __assign$3(__assign$3({},ime),rme)}),tme.props.onChange&&tme.props.onChange(ame)},tme.renderTimeViewPicker=function(){var ame=tme.props.translate,nme=ame("Date.titleTime"),rme=[],ime=[];return tme.state.counters.forEach(function(ome){if(ome!=="daypart"){var lme=tme.timeConstraints[ome],sme=lme.min,cme=lme.max,dme=lme.step;ome==="hours"&&tme.state.daypart!==!1&&tme.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(cme=cme>12?12:cme),rme.push({options:getRange(sme,cme,dme).map(function(ume){return{text:tme.pad(ome,ume),value:ume}})}),ime.push(parseInt(tme.state[ome],10))}}),tme.state.daypart!==!1&&(rme.push({options:tme.getDayPartOptions()}),ime.push(tme.state.daypart)),React__default.createElement(Picker$1,{translate:tme.props.translate,locale:tme.props.locale,title:nme,columns:rme,value:ime,onConfirm:tme.onConfirm,onClose:tme.props.onClose,showToolbar:tme.props.showToolbar,onChange:tme.onPickerChange})},tme.setTime=function(ame,nme){var rme=(tme.props.selectedDate||tme.props.viewDate).clone();rme[ame](nme),tme.props.setDateTimeState({viewDate:rme.clone(),selectedDate:rme.clone()}),tme.props.requiredConfirm||tme.props.onChange(rme)},tme.scrollToTop=function(ame,nme,rme,ime){var ome,lme,sme=document.getElementById("".concat(tme.state.uniqueTag,"-").concat(rme,"-input")),cme=tme.timeConstraints[ame],dme=cme.min,ume=cme.step,fme=(nme-dme)/ume,pme=28;(lme=(ome=sme==null?void 0:sme.parentNode)===null||ome===void 0?void 0:ome.scrollTo)===null||lme===void 0||lme.call(ome,{top:fme*pme,behavior:ime==="init"?"auto":"smooth"})},tme.selectNowTime=function(){var ame=tme.props,nme=ame.setDateTimeState,rme=ame.timeFormat,ime=tme.shoudExtractTimeConstraintsList();if(ime){var ome=tme.timeList,lme=hooks().clone(),sme=lme.clone(),cme=1/0;ome.forEach(function(dme,ume){var fme=hooks(dme,rme),pme=Math.abs(lme.diff(fme));pme<cme&&(cme=pme,sme=fme)}),nme({viewDate:sme,selectedDate:sme},function(){return tme.confirm()})}else nme({viewDate:hooks().clone(),selectedDate:hooks().clone()},function(){return tme.confirm()})},tme.confirm=function(){var ame,nme,rme=(tme.props.selectedDate||tme.props.viewDate).clone();!((ame=tme.props.minDate)===null||ame===void 0)&&ame.isValid()&&(!((nme=tme.props.minDate)===null||nme===void 0)&&nme.isAfter(rme))&&(rme=tme.props.minDate.clone()),tme.props.setDateTimeState({selectedDate:rme}),tme.props.onChange(rme),tme.props.onClose&&tme.props.onClose()},tme.cancel=function(){tme.props.onClose&&tme.props.onClose()},tme.state=__assign$3(__assign$3({},tme.calculateState(tme.props)),{uniqueTag:new Date().valueOf()}),tme.props.timeConstraints&&(tme.timeConstraints=merge$4(tme.timeConstraints,tme.props.timeConstraints)),tme}return eme.prototype.componentDidMount=function(){var $P,tme,ame,nme,rme,ime,ome=this,lme=this.props,sme=lme.timeFormat,cme=lme.selectedDate,dme=lme.viewDate,ume=lme.isEndDate,fme={hours:"HH",minutes:"mm",seconds:"ss"},pme=cme||(ume?dme.endOf("day"):dme);if(sme.split(":").forEach(function(Ome,Rme){var Nme=/h/i.test(Ome)?"hours":/m/.test(Ome)?"minutes":/s/.test(Ome)?"seconds":"";Nme&&ome.scrollToTop(Nme,parseInt(pme.format(fme[Nme]),10),Rme,"init")}),this.shoudExtractTimeConstraintsList()){var hme=this.computedTimeOptions("hours").map(function(Ome){return Ome.value}),bme=sme.split(":").some(function(Ome){return/^(mm|m)$/.test(Ome)})?this.computedTimeOptions("minutes").map(function(Ome){return Ome.value}):["00"],mme=sme.split(":").some(function(Ome){return/^(ss|s)$/.test(Ome)})?this.computedTimeOptions("seconds").map(function(Ome){return Ome.value}):["00"],vme=[];try{for(var gme=__values$1(hme),yme=gme.next();!yme.done;yme=gme.next()){var _me=yme.value;try{for(var $me=(ame=void 0,__values$1(bme)),Cme=$me.next();!Cme.done;Cme=$me.next()){var Sme=Cme.value;try{for(var Eme=(rme=void 0,__values$1(mme)),xme=Eme.next();!xme.done;xme=Eme.next()){var Tme=xme.value;vme.push("".concat(_me,":").concat(Sme,":").concat(Tme))}}catch(Ome){rme={error:Ome}}finally{try{xme&&!xme.done&&(ime=Eme.return)&&ime.call(Eme)}finally{if(rme)throw rme.error}}}}catch(Ome){ame={error:Ome}}finally{try{Cme&&!Cme.done&&(nme=$me.return)&&nme.call($me)}finally{if(ame)throw ame.error}}}}catch(Ome){$P={error:Ome}}finally{try{yme&&!yme.done&&(tme=gme.return)&&tme.call(gme)}finally{if($P)throw $P.error}}this.timeList=vme}},eme.prototype.componentDidUpdate=function($P){($P.viewDate!==this.props.viewDate||$P.selectedDate!==this.props.selectedDate||$P.timeFormat!==this.props.timeFormat)&&this.setState(this.calculateState(this.props))},eme.prototype.onStartClicking=function($P,tme){var ame=this;return function(){var nme={};nme[tme]=ame[$P](tme),ame.setState(nme),ame.timer=setTimeout(function(){ame.increaseTimer=setInterval(function(){nme[tme]=ame[$P](tme),ame.setState(nme)},70)},500),ame.mouseUpListener=function(){clearTimeout(ame.timer),clearInterval(ame.increaseTimer),ame.props.setTime(tme,ame.state[tme]),document.body.removeEventListener("mouseup",ame.mouseUpListener),document.body.removeEventListener("touchend",ame.mouseUpListener)},document.body.addEventListener("mouseup",ame.mouseUpListener),document.body.addEventListener("touchend",ame.mouseUpListener)}},eme.prototype.updateMilli=function($P){var tme=parseInt($P.target.value,10);tme===$P.target.value&&tme>=0&&tme<1e3&&(this.props.setTime("milliseconds",tme),this.setState({milliseconds:tme}))},eme.prototype.renderHeader=function(){if(!this.props.dateFormat)return null;var $P=this.props.selectedDate||this.props.viewDate;return React__default.createElement("thead",{key:"h"},React__default.createElement("tr",{},React__default.createElement("th",{className:"rdtSwitch",colSpan:4,onClick:this.props.showView("days")},$P.format(this.props.dateFormat))))},eme.prototype.toggleDayPart=function($P){var tme=parseInt(this.state[$P],10)+12;return tme>this.timeConstraints[$P].max&&(tme=this.timeConstraints[$P].min+(tme-(this.timeConstraints[$P].max+1))),this.pad($P,tme)},eme.prototype.increase=function($P){var tme=parseInt(this.state[$P],10)+this.timeConstraints[$P].step;return tme>this.timeConstraints[$P].max&&(tme=this.timeConstraints[$P].min+(tme-(this.timeConstraints[$P].max+1))),tme<this.timeConstraints[$P].min&&(tme=this.timeConstraints[$P].min),this.pad($P,tme)},eme.prototype.decrease=function($P){var tme=parseInt(this.state[$P],10)-this.timeConstraints[$P].step;return tme<this.timeConstraints[$P].min&&(tme=this.timeConstraints[$P].max+1-(this.timeConstraints[$P].min-tme)),this.pad($P,tme)},eme.prototype.pad=function($P,tme){for(var ame=tme+"";ame.length<this.padValues[$P];)ame="0"+ame;return ame},eme.prototype.disableContextMenu=function($P){return $P.preventDefault(),!1},eme.prototype.calculateState=function($P){var tme=$P.selectedDate||$P.viewDate,ame=$P.timeFormat,nme=[];ame.toLowerCase().indexOf("h")!==-1&&(nme.push("hours"),ame.indexOf("m")!==-1&&(nme.push("minutes"),ame.indexOf("s")!==-1&&nme.push("seconds")));var rme=parseInt(tme.format("H"),10),ime=!1;return this.state!==null&&this.props.timeFormat.toLowerCase().indexOf(" a")!==-1&&(this.props.timeFormat.indexOf(" A")!==-1?ime=rme>=12?"PM":"AM":ime=rme>=12?"pm":"am"),{hours:rme,minutes:tme.format("mm"),seconds:tme.format("ss"),milliseconds:tme.format("SSS"),daypart:ime,counters:nme}},eme.prototype.computedTimeOptions=function($P){var tme,ame=(tme=this.timeConstraints)===null||tme===void 0?void 0:tme[$P],nme=ame.min,rme=ame.max,ime=ame.step;return Array.from({length:rme-nme+1},function(ome,lme){var sme=(lme+nme).toString().padStart($P!=="milliseconds"?2:3,"0");return lme%ime===0?{label:sme,value:sme}:void 0}).filter(function(ome){return!!ome})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.timeFormat,nme=tme.selectedDate,rme=tme.viewDate,ime=tme.isEndDate,ome=tme.classnames,lme=tme.timeRangeHeader,sme=tme.mobileUI,cme=tme.testIdBuilder,dme=this.props.translate,ume=nme||(ime?rme.endOf("day"):rme),fme=[],pme=this.timeConstraints;if(sme)return React__default.createElement("div",{className:ome("CalendarTime")},this.renderTimeViewPicker());ame.split(":").forEach(function(bme,mme){var vme=/h/i.test(bme)?"hours":/m/.test(bme)?"minutes":/s/.test(bme)?"seconds":"";if(vme){var gme=pme[vme].min,yme=pme[vme].max,_me=$P.computedTimeOptions(vme),$me={hours:"HH",minutes:"mm",seconds:"ss"};fme.push(React__default.createElement(Downshift$1,{key:mme+"input",inputValue:ume.format($me[vme])},function(Cme){var Sme=Cme.getInputProps,Eme=Cme.openMenu,xme=Cme.closeMenu;Sme({onFocus:function(){return Eme()},onChange:function(Ome){return $P.setTime(vme,Math.max(gme,Math.min(parseInt(Ome.currentTarget.value.replace(/\D/g,""),10)||0,yme)))}});var Tme=cme==null?void 0:cme.getChild(vme);return React__default.createElement("div",{className:ome("CalendarInputWrapper")},React__default.createElement("div",{className:ome("CalendarInput-sugs",vme==="hours"?"CalendarInput-sugsHours":"CalendarInput-sugsTimes"),id:"".concat($P.state.uniqueTag,"-").concat(mme,"-input")},_me.map(function(Ome){var Rme;return React__default.createElement("div",__assign$3({key:Ome.value,className:ome("CalendarInput-sugsItem",{"is-mobile":sme,"is-highlight":nme?Ome.value===ume.format($me[vme]):Ome.value===((Rme=_me==null?void 0:_me[0])===null||Rme===void 0?void 0:Rme.value)&&!sme})},Tme==null?void 0:Tme.getChild(Ome.value).getTestId(),{onClick:function(){$P.setTime(vme,parseInt(Ome.value,10)),$P.scrollToTop(vme,parseInt(Ome.value,10),mme),xme()}}),Ome.value)})))})),fme.push(React__default.createElement("span",{key:mme+"divider"}))}}),fme.length&&fme.pop();var hme=[React__default.createElement("a",__assign$3({key:"select-now",onClick:this.selectNowTime},cme==null?void 0:cme.getChild("select-now").getTestId()),dme("TimeNow"))];return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:ome(lme?"TimeRangeHeaderWrapper":null)},lme),React__default.createElement("div",{className:ome("TimeContentWrapper")},fme),this.props.requiredConfirm&&React__default.createElement("div",{className:ome("TimeFooterWrapper")},React__default.createElement("div",{className:ome("QuickWrapper")},hme),React__default.createElement("a",__assign$3({className:ome("Button","Button--primary","Button--size-sm"),onClick:this.confirm},cme==null?void 0:cme.getChild("confirm").getTestId()),dme("confirm"))))},eme.defaultProps={showToolbar:!0},eme}(React__default.Component),CustomTimeView$1=localeable(CustomTimeView),QuarterView=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={columns:[],pickerValue:[$P.props.viewDate.year(),$P.props.viewDate.quarter()]},$P.renderQuarter=function(tme,ame,nme,rme){var ime=$P.props.testIdBuilder;return React__default.createElement("td",__assign$3({},tme),React__default.createElement("span",__assign$3({},ime==null?void 0:ime.getChild(tme.key).getTestId()),"Q",ame))},$P.updateSelectedQuarter=function(tme){$P.props.updateSelectedDate(tme)},$P.onPickerConfirm=function(tme){$P.props.onConfirm&&$P.props.onConfirm(tme,["year","quarter"])},$P.onPickerChange=function(tme,ame){$P.setState({pickerValue:tme})},$P}return eme.prototype.renderYear=function(){var $P=this.props,tme=$P.translate,ame=$P.testIdBuilder,nme=!/^mm$/i.test(this.props.inputFormat||"");if(!nme)return null;var rme=/yy/i.test(this.props.inputFormat||"");return React__default.createElement("table",null,React__default.createElement("thead",null,React__default.createElement("tr",null,React__default.createElement("th",__assign$3({className:"rdtPrev",onClick:this.props.subtractTime(1,"years")},ame==null?void 0:ame.getChild("prev-year").getTestId()),"«"),rme?React__default.createElement("th",__assign$3({className:"rdtSwitch",onClick:this.props.showView("years")},ame==null?void 0:ame.getChild("switch-year").getTestId()),this.props.viewDate.format(tme("dateformat.year"))):React__default.createElement("th",{className:"rdtSwitch"},this.props.viewDate.format(tme("dateformat.year"))),React__default.createElement("th",__assign$3({className:"rdtNext",onClick:this.props.addTime(1,"years")},ame==null?void 0:ame.getChild("next-year").getTestId()),"»"))))},eme.prototype.renderQuarters=function(){for(var $P=this.props.selectedDate,tme=this.props.viewDate.quarter(),ame=this.props.viewDate.year(),nme=[],rme=1,ime=[],ome=this.props.renderQuarter||this.renderQuarter,lme=this.props.isValidDate||this.alwaysValidDate,sme,cme,dme;rme<5;)sme="rdtQuarter",dme=!lme(hooks("".concat(ame,"-").concat(rme),"YYYY-Q")),dme&&(sme+=" rdtDisabled"),$P&&rme===$P.quarter()&&ame===$P.year()&&(sme+=" rdtActive"),cme={key:rme,"data-value":rme,className:sme},dme||(cme.onClick=this.props.updateOn==="quarters"?this.updateSelectedQuarter:this.props.setDate("quarter")),ime.push(ome(cme,rme,ame,$P&&$P.clone())),ime.length===2&&(nme.push(React__default.createElement("tr",{key:tme+"_"+nme.length},ime)),ime=[]),rme++;return nme},eme.prototype.alwaysValidDate=function(){return!0},eme.prototype.cancel=function(){var $P,tme;(tme=($P=this.props).onClose)===null||tme===void 0||tme.call($P)},eme.prototype.renderPicker=function(){var $P=this.props.translate,tme=$P("Date.titleQuarter"),ame=new Date().getFullYear()-100,nme=new Date().getFullYear()+100,rme=[{options:getRange(ame,nme,1)},{options:getRange(1,4).map(function(ime){return{text:"Q"+ime,value:ime}})}];return React__default.createElement(Picker$1,{translate:this.props.translate,locale:this.props.locale,title:tme,columns:rme,value:this.state.pickerValue,onChange:this.onPickerChange,onConfirm:this.onPickerConfirm,onClose:this.cancel})},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.hideHeader,nme=$P.mobileUI;return nme?this.renderPicker():React__default.createElement("div",{className:tme("ClalendarQuarter")},ame?null:this.renderYear(),React__default.createElement("table",null,React__default.createElement("tbody",null,this.renderQuarters())))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"cancel",null),eme}(React__default.Component),QuartersView=localeable(QuarterView),CustomCalendarContainer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.viewComponents=__assign$3(__assign$3({},$P.viewComponents),{days:CustomDaysView$1,years:CustomYearsView$1,months:CustomMonthsView$1,time:CustomTimeView$1,quarters:QuartersView}),$P}return eme.prototype.render=function(){return React__default.createElement(this.viewComponents[this.props.view],this.props.viewProps)},eme}(React__default.Component);//! moment.js locale configuration
//! locale : Chinese (China) [zh-cn]
//! author : suupic : https://github.com/suupic
//! author : Zeno Zeng : https://github.com/zenozeng
//! author : uu109 : https://github.com/uu109
hooks.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{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"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(x_,eme){return x_===12&&(x_=0),eme==="凌晨"||eme==="早上"||eme==="上午"?x_:eme==="下午"||eme==="晚上"?x_+12:x_>=11?x_:x_+12},meridiem:function(x_,eme,$P){var tme=x_*100+eme;return tme<600?"凌晨":tme<900?"早上":tme<1130?"上午":tme<1230?"中午":tme<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(x_){return x_.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(x_){return this.week()!==x_.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(x_,eme){switch(eme){case"d":case"D":case"DDD":return x_+"日";case"M":return x_+"月";case"w":case"W":return x_+"周";default:return x_}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}});function commonjsRequire(x_){throw new Error('Could not dynamically require "'+x_+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var moment={exports:{}},hasRequiredMoment;function requireMoment(){return hasRequiredMoment||(hasRequiredMoment=1,function(x_,eme){(function($P,tme){x_.exports=tme()})(commonjsGlobal$1,function(){var $P;function tme(){return $P.apply(null,arguments)}function ame(Fme){$P=Fme}function nme(Fme){return Fme instanceof Array||Object.prototype.toString.call(Fme)==="[object Array]"}function rme(Fme){return Fme!=null&&Object.prototype.toString.call(Fme)==="[object Object]"}function ime(Fme,qme){return Object.prototype.hasOwnProperty.call(Fme,qme)}function ome(Fme){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(Fme).length===0;var qme;for(qme in Fme)if(ime(Fme,qme))return!1;return!0}function lme(Fme){return Fme===void 0}function sme(Fme){return typeof Fme=="number"||Object.prototype.toString.call(Fme)==="[object Number]"}function cme(Fme){return Fme instanceof Date||Object.prototype.toString.call(Fme)==="[object Date]"}function dme(Fme,qme){var tbe=[],rbe,cbe=Fme.length;for(rbe=0;rbe<cbe;++rbe)tbe.push(qme(Fme[rbe],rbe));return tbe}function ume(Fme,qme){for(var tbe in qme)ime(qme,tbe)&&(Fme[tbe]=qme[tbe]);return ime(qme,"toString")&&(Fme.toString=qme.toString),ime(qme,"valueOf")&&(Fme.valueOf=qme.valueOf),Fme}function fme(Fme,qme,tbe,rbe){return b2e(Fme,qme,tbe,rbe,!0).utc()}function pme(){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 hme(Fme){return Fme._pf==null&&(Fme._pf=pme()),Fme._pf}var bme;Array.prototype.some?bme=Array.prototype.some:bme=function(Fme){var qme=Object(this),tbe=qme.length>>>0,rbe;for(rbe=0;rbe<tbe;rbe++)if(rbe in qme&&Fme.call(this,qme[rbe],rbe,qme))return!0;return!1};function mme(Fme){var qme=null,tbe=!1,rbe=Fme._d&&!isNaN(Fme._d.getTime());if(rbe&&(qme=hme(Fme),tbe=bme.call(qme.parsedDateParts,function(cbe){return cbe!=null}),rbe=qme.overflow<0&&!qme.empty&&!qme.invalidEra&&!qme.invalidMonth&&!qme.invalidWeekday&&!qme.weekdayMismatch&&!qme.nullInput&&!qme.invalidFormat&&!qme.userInvalidated&&(!qme.meridiem||qme.meridiem&&tbe),Fme._strict&&(rbe=rbe&&qme.charsLeftOver===0&&qme.unusedTokens.length===0&&qme.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(Fme))Fme._isValid=rbe;else return rbe;return Fme._isValid}function vme(Fme){var qme=fme(NaN);return Fme!=null?ume(hme(qme),Fme):hme(qme).userInvalidated=!0,qme}var gme=tme.momentProperties=[],yme=!1;function _me(Fme,qme){var tbe,rbe,cbe,wbe=gme.length;if(lme(qme._isAMomentObject)||(Fme._isAMomentObject=qme._isAMomentObject),lme(qme._i)||(Fme._i=qme._i),lme(qme._f)||(Fme._f=qme._f),lme(qme._l)||(Fme._l=qme._l),lme(qme._strict)||(Fme._strict=qme._strict),lme(qme._tzm)||(Fme._tzm=qme._tzm),lme(qme._isUTC)||(Fme._isUTC=qme._isUTC),lme(qme._offset)||(Fme._offset=qme._offset),lme(qme._pf)||(Fme._pf=hme(qme)),lme(qme._locale)||(Fme._locale=qme._locale),wbe>0)for(tbe=0;tbe<wbe;tbe++)rbe=gme[tbe],cbe=qme[rbe],lme(cbe)||(Fme[rbe]=cbe);return Fme}function $me(Fme){_me(this,Fme),this._d=new Date(Fme._d!=null?Fme._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),yme===!1&&(yme=!0,tme.updateOffset(this),yme=!1)}function Cme(Fme){return Fme instanceof $me||Fme!=null&&Fme._isAMomentObject!=null}function Sme(Fme){tme.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+Fme)}function Eme(Fme,qme){var tbe=!0;return ume(function(){if(tme.deprecationHandler!=null&&tme.deprecationHandler(null,Fme),tbe){var rbe=[],cbe,wbe,Xbe,k0e=arguments.length;for(wbe=0;wbe<k0e;wbe++){if(cbe="",typeof arguments[wbe]=="object"){cbe+=`
[`+wbe+"] ";for(Xbe in arguments[0])ime(arguments[0],Xbe)&&(cbe+=Xbe+": "+arguments[0][Xbe]+", ");cbe=cbe.slice(0,-2)}else cbe=arguments[wbe];rbe.push(cbe)}Sme(Fme+`
Arguments: `+Array.prototype.slice.call(rbe).join("")+`
`+new Error().stack),tbe=!1}return qme.apply(this,arguments)},qme)}var xme={};function Tme(Fme,qme){tme.deprecationHandler!=null&&tme.deprecationHandler(Fme,qme),xme[Fme]||(Sme(qme),xme[Fme]=!0)}tme.suppressDeprecationWarnings=!1,tme.deprecationHandler=null;function Ome(Fme){return typeof Function<"u"&&Fme instanceof Function||Object.prototype.toString.call(Fme)==="[object Function]"}function Rme(Fme){var qme,tbe;for(tbe in Fme)ime(Fme,tbe)&&(qme=Fme[tbe],Ome(qme)?this[tbe]=qme:this["_"+tbe]=qme);this._config=Fme,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Nme(Fme,qme){var tbe=ume({},Fme),rbe;for(rbe in qme)ime(qme,rbe)&&(rme(Fme[rbe])&&rme(qme[rbe])?(tbe[rbe]={},ume(tbe[rbe],Fme[rbe]),ume(tbe[rbe],qme[rbe])):qme[rbe]!=null?tbe[rbe]=qme[rbe]:delete tbe[rbe]);for(rbe in Fme)ime(Fme,rbe)&&!ime(qme,rbe)&&rme(Fme[rbe])&&(tbe[rbe]=ume({},tbe[rbe]));return tbe}function Ime(Fme){Fme!=null&&this.set(Fme)}var Pme;Object.keys?Pme=Object.keys:Pme=function(Fme){var qme,tbe=[];for(qme in Fme)ime(Fme,qme)&&tbe.push(qme);return tbe};var Mme={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function kme(Fme,qme,tbe){var rbe=this._calendar[Fme]||this._calendar.sameElse;return Ome(rbe)?rbe.call(qme,tbe):rbe}function Bme(Fme,qme,tbe){var rbe=""+Math.abs(Fme),cbe=qme-rbe.length,wbe=Fme>=0;return(wbe?tbe?"+":"":"-")+Math.pow(10,Math.max(0,cbe)).toString().substr(1)+rbe}var Dme=/(\[[^\[]*\])|(\\)?([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,jme=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vme={},Wme={};function Lme(Fme,qme,tbe,rbe){var cbe=rbe;typeof rbe=="string"&&(cbe=function(){return this[rbe]()}),Fme&&(Wme[Fme]=cbe),qme&&(Wme[qme[0]]=function(){return Bme(cbe.apply(this,arguments),qme[1],qme[2])}),tbe&&(Wme[tbe]=function(){return this.localeData().ordinal(cbe.apply(this,arguments),Fme)})}function zme(Fme){return Fme.match(/\[[\s\S]/)?Fme.replace(/^\[|\]$/g,""):Fme.replace(/\\/g,"")}function Ume(Fme){var qme=Fme.match(Dme),tbe,rbe;for(tbe=0,rbe=qme.length;tbe<rbe;tbe++)Wme[qme[tbe]]?qme[tbe]=Wme[qme[tbe]]:qme[tbe]=zme(qme[tbe]);return function(cbe){var wbe="",Xbe;for(Xbe=0;Xbe<rbe;Xbe++)wbe+=Ome(qme[Xbe])?qme[Xbe].call(cbe,Fme):qme[Xbe];return wbe}}function Gme(Fme,qme){return Fme.isValid()?(qme=Jme(qme,Fme.localeData()),Vme[qme]=Vme[qme]||Ume(qme),Vme[qme](Fme)):Fme.localeData().invalidDate()}function Jme(Fme,qme){var tbe=5;function rbe(cbe){return qme.longDateFormat(cbe)||cbe}for(jme.lastIndex=0;tbe>=0&&jme.test(Fme);)Fme=Fme.replace(jme,rbe),jme.lastIndex=0,tbe-=1;return Fme}var Yme={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 Qme(Fme){var qme=this._longDateFormat[Fme],tbe=this._longDateFormat[Fme.toUpperCase()];return qme||!tbe?qme:(this._longDateFormat[Fme]=tbe.match(Dme).map(function(rbe){return rbe==="MMMM"||rbe==="MM"||rbe==="DD"||rbe==="dddd"?rbe.slice(1):rbe}).join(""),this._longDateFormat[Fme])}var Xme="Invalid date";function Kme(){return this._invalidDate}var Zme="%d",nbe=/\d{1,2}/;function lbe(Fme){return this._ordinal.replace("%d",Fme)}var ibe={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 abe(Fme,qme,tbe,rbe){var cbe=this._relativeTime[tbe];return Ome(cbe)?cbe(Fme,qme,tbe,rbe):cbe.replace(/%d/i,Fme)}function obe(Fme,qme){var tbe=this._relativeTime[Fme>0?"future":"past"];return Ome(tbe)?tbe(qme):tbe.replace(/%s/i,qme)}var hbe={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 ube(Fme){return typeof Fme=="string"?hbe[Fme]||hbe[Fme.toLowerCase()]:void 0}function mbe(Fme){var qme={},tbe,rbe;for(rbe in Fme)ime(Fme,rbe)&&(tbe=ube(rbe),tbe&&(qme[tbe]=Fme[rbe]));return qme}var pbe={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 _be(Fme){var qme=[],tbe;for(tbe in Fme)ime(Fme,tbe)&&qme.push({unit:tbe,priority:pbe[tbe]});return qme.sort(function(rbe,cbe){return rbe.priority-cbe.priority}),qme}var Sbe=/\d/,vbe=/\d\d/,kbe=/\d{3}/,Rbe=/\d{4}/,Pbe=/[+-]?\d{6}/,Mbe=/\d\d?/,Kbe=/\d\d\d\d?/,Qbe=/\d\d\d\d\d\d?/,Gbe=/\d{1,3}/,Hbe=/\d{1,4}/,d0e=/[+-]?\d{1,6}/,p0e=/\d+/,S0e=/[+-]?\d+/,P0e=/Z|[+-]\d\d:?\d\d/gi,e0e=/Z|[+-]\d\d(?::?\d\d)?/gi,_0e=/[+-]?\d+(\.\d{1,3})?/,m0e=/[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,Ybe=/^[1-9]\d?/,Jbe=/^([1-9]\d|\d)/,c0e;c0e={};function zbe(Fme,qme,tbe){c0e[Fme]=Ome(qme)?qme:function(rbe,cbe){return rbe&&tbe?tbe:qme}}function R0e(Fme,qme){return ime(c0e,Fme)?c0e[Fme](qme._strict,qme._locale):new RegExp($0e(Fme))}function $0e(Fme){return u0e(Fme.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(qme,tbe,rbe,cbe,wbe){return tbe||rbe||cbe||wbe}))}function u0e(Fme){return Fme.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function t0e(Fme){return Fme<0?Math.ceil(Fme)||0:Math.floor(Fme)}function v0e(Fme){var qme=+Fme,tbe=0;return qme!==0&&isFinite(qme)&&(tbe=t0e(qme)),tbe}var L0e={};function Wbe(Fme,qme){var tbe,rbe=qme,cbe;for(typeof Fme=="string"&&(Fme=[Fme]),sme(qme)&&(rbe=function(wbe,Xbe){Xbe[qme]=v0e(wbe)}),cbe=Fme.length,tbe=0;tbe<cbe;tbe++)L0e[Fme[tbe]]=rbe}function a0e(Fme,qme){Wbe(Fme,function(tbe,rbe,cbe,wbe){cbe._w=cbe._w||{},qme(tbe,cbe._w,cbe,wbe)})}function g0e(Fme,qme,tbe){qme!=null&&ime(L0e,Fme)&&L0e[Fme](qme,tbe._a,tbe,Fme)}function b0e(Fme){return Fme%4===0&&Fme%100!==0||Fme%400===0}var y0e=0,A0e=1,V0e=2,w0e=3,T0e=4,$be=5,Ibe=6,n0e=7,f0e=8;Lme("Y",0,0,function(){var Fme=this.year();return Fme<=9999?Bme(Fme,4):"+"+Fme}),Lme(0,["YY",2],0,function(){return this.year()%100}),Lme(0,["YYYY",4],0,"year"),Lme(0,["YYYYY",5],0,"year"),Lme(0,["YYYYYY",6,!0],0,"year"),zbe("Y",S0e),zbe("YY",Mbe,vbe),zbe("YYYY",Hbe,Rbe),zbe("YYYYY",d0e,Pbe),zbe("YYYYYY",d0e,Pbe),Wbe(["YYYYY","YYYYYY"],y0e),Wbe("YYYY",function(Fme,qme){qme[y0e]=Fme.length===2?tme.parseTwoDigitYear(Fme):v0e(Fme)}),Wbe("YY",function(Fme,qme){qme[y0e]=tme.parseTwoDigitYear(Fme)}),Wbe("Y",function(Fme,qme){qme[y0e]=parseInt(Fme,10)});function z0e(Fme){return b0e(Fme)?366:365}tme.parseTwoDigitYear=function(Fme){return v0e(Fme)+(v0e(Fme)>68?1900:2e3)};var o0e=Tbe("FullYear",!0);function gbe(){return b0e(this.year())}function Tbe(Fme,qme){return function(tbe){return tbe!=null?(Ube(this,Fme,tbe),tme.updateOffset(this,qme),this):Vbe(this,Fme)}}function Vbe(Fme,qme){if(!Fme.isValid())return NaN;var tbe=Fme._d,rbe=Fme._isUTC;switch(qme){case"Milliseconds":return rbe?tbe.getUTCMilliseconds():tbe.getMilliseconds();case"Seconds":return rbe?tbe.getUTCSeconds():tbe.getSeconds();case"Minutes":return rbe?tbe.getUTCMinutes():tbe.getMinutes();case"Hours":return rbe?tbe.getUTCHours():tbe.getHours();case"Date":return rbe?tbe.getUTCDate():tbe.getDate();case"Day":return rbe?tbe.getUTCDay():tbe.getDay();case"Month":return rbe?tbe.getUTCMonth():tbe.getMonth();case"FullYear":return rbe?tbe.getUTCFullYear():tbe.getFullYear();default:return NaN}}function Ube(Fme,qme,tbe){var rbe,cbe,wbe,Xbe,k0e;if(!(!Fme.isValid()||isNaN(tbe))){switch(rbe=Fme._d,cbe=Fme._isUTC,qme){case"Milliseconds":return void(cbe?rbe.setUTCMilliseconds(tbe):rbe.setMilliseconds(tbe));case"Seconds":return void(cbe?rbe.setUTCSeconds(tbe):rbe.setSeconds(tbe));case"Minutes":return void(cbe?rbe.setUTCMinutes(tbe):rbe.setMinutes(tbe));case"Hours":return void(cbe?rbe.setUTCHours(tbe):rbe.setHours(tbe));case"Date":return void(cbe?rbe.setUTCDate(tbe):rbe.setDate(tbe));case"FullYear":break;default:return}wbe=tbe,Xbe=Fme.month(),k0e=Fme.date(),k0e=k0e===29&&Xbe===1&&!b0e(wbe)?28:k0e,cbe?rbe.setUTCFullYear(wbe,Xbe,k0e):rbe.setFullYear(wbe,Xbe,k0e)}}function x0e(Fme){return Fme=ube(Fme),Ome(this[Fme])?this[Fme]():this}function I0e(Fme,qme){if(typeof Fme=="object"){Fme=mbe(Fme);var tbe=_be(Fme),rbe,cbe=tbe.length;for(rbe=0;rbe<cbe;rbe++)this[tbe[rbe].unit](Fme[tbe[rbe].unit])}else if(Fme=ube(Fme),Ome(this[Fme]))return this[Fme](qme);return this}function j0e(Fme,qme){return(Fme%qme+qme)%qme}var O0e;Array.prototype.indexOf?O0e=Array.prototype.indexOf:O0e=function(Fme){var qme;for(qme=0;qme<this.length;++qme)if(this[qme]===Fme)return qme;return-1};function G0e(Fme,qme){if(isNaN(Fme)||isNaN(qme))return NaN;var tbe=j0e(qme,12);return Fme+=(qme-tbe)/12,tbe===1?b0e(Fme)?29:28:31-tbe%7%2}Lme("M",["MM",2],"Mo",function(){return this.month()+1}),Lme("MMM",0,0,function(Fme){return this.localeData().monthsShort(this,Fme)}),Lme("MMMM",0,0,function(Fme){return this.localeData().months(this,Fme)}),zbe("M",Mbe,Ybe),zbe("MM",Mbe,vbe),zbe("MMM",function(Fme,qme){return qme.monthsShortRegex(Fme)}),zbe("MMMM",function(Fme,qme){return qme.monthsRegex(Fme)}),Wbe(["M","MM"],function(Fme,qme){qme[A0e]=v0e(Fme)-1}),Wbe(["MMM","MMMM"],function(Fme,qme,tbe,rbe){var cbe=tbe._locale.monthsParse(Fme,rbe,tbe._strict);cbe!=null?qme[A0e]=cbe:hme(tbe).invalidMonth=Fme});var W0e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),i1e="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),t1e=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ebe=m0e,Cbe=m0e;function fbe(Fme,qme){return Fme?nme(this._months)?this._months[Fme.month()]:this._months[(this._months.isFormat||t1e).test(qme)?"format":"standalone"][Fme.month()]:nme(this._months)?this._months:this._months.standalone}function ybe(Fme,qme){return Fme?nme(this._monthsShort)?this._monthsShort[Fme.month()]:this._monthsShort[t1e.test(qme)?"format":"standalone"][Fme.month()]:nme(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Abe(Fme,qme,tbe){var rbe,cbe,wbe,Xbe=Fme.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],rbe=0;rbe<12;++rbe)wbe=fme([2e3,rbe]),this._shortMonthsParse[rbe]=this.monthsShort(wbe,"").toLocaleLowerCase(),this._longMonthsParse[rbe]=this.months(wbe,"").toLocaleLowerCase();return tbe?qme==="MMM"?(cbe=O0e.call(this._shortMonthsParse,Xbe),cbe!==-1?cbe:null):(cbe=O0e.call(this._longMonthsParse,Xbe),cbe!==-1?cbe:null):qme==="MMM"?(cbe=O0e.call(this._shortMonthsParse,Xbe),cbe!==-1?cbe:(cbe=O0e.call(this._longMonthsParse,Xbe),cbe!==-1?cbe:null)):(cbe=O0e.call(this._longMonthsParse,Xbe),cbe!==-1?cbe:(cbe=O0e.call(this._shortMonthsParse,Xbe),cbe!==-1?cbe:null))}function Lbe(Fme,qme,tbe){var rbe,cbe,wbe;if(this._monthsParseExact)return Abe.call(this,Fme,qme,tbe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),rbe=0;rbe<12;rbe++){if(cbe=fme([2e3,rbe]),tbe&&!this._longMonthsParse[rbe]&&(this._longMonthsParse[rbe]=new RegExp("^"+this.months(cbe,"").replace(".","")+"$","i"),this._shortMonthsParse[rbe]=new RegExp("^"+this.monthsShort(cbe,"").replace(".","")+"$","i")),!tbe&&!this._monthsParse[rbe]&&(wbe="^"+this.months(cbe,"")+"|^"+this.monthsShort(cbe,""),this._monthsParse[rbe]=new RegExp(wbe.replace(".",""),"i")),tbe&&qme==="MMMM"&&this._longMonthsParse[rbe].test(Fme))return rbe;if(tbe&&qme==="MMM"&&this._shortMonthsParse[rbe].test(Fme))return rbe;if(!tbe&&this._monthsParse[rbe].test(Fme))return rbe}}function Nbe(Fme,qme){if(!Fme.isValid())return Fme;if(typeof qme=="string"){if(/^\d+$/.test(qme))qme=v0e(qme);else if(qme=Fme.localeData().monthsParse(qme),!sme(qme))return Fme}var tbe=qme,rbe=Fme.date();return rbe=rbe<29?rbe:Math.min(rbe,G0e(Fme.year(),tbe)),Fme._isUTC?Fme._d.setUTCMonth(tbe,rbe):Fme._d.setMonth(tbe,rbe),Fme}function Fbe(Fme){return Fme!=null?(Nbe(this,Fme),tme.updateOffset(this,!0),this):Vbe(this,"Month")}function i0e(){return G0e(this.year(),this.month())}function Bbe(Fme){return this._monthsParseExact?(ime(this,"_monthsRegex")||E0e.call(this),Fme?this._monthsShortStrictRegex:this._monthsShortRegex):(ime(this,"_monthsShortRegex")||(this._monthsShortRegex=Ebe),this._monthsShortStrictRegex&&Fme?this._monthsShortStrictRegex:this._monthsShortRegex)}function Zbe(Fme){return this._monthsParseExact?(ime(this,"_monthsRegex")||E0e.call(this),Fme?this._monthsStrictRegex:this._monthsRegex):(ime(this,"_monthsRegex")||(this._monthsRegex=Cbe),this._monthsStrictRegex&&Fme?this._monthsStrictRegex:this._monthsRegex)}function E0e(){function Fme(X0e,n1e){return n1e.length-X0e.length}var qme=[],tbe=[],rbe=[],cbe,wbe,Xbe,k0e;for(cbe=0;cbe<12;cbe++)wbe=fme([2e3,cbe]),Xbe=u0e(this.monthsShort(wbe,"")),k0e=u0e(this.months(wbe,"")),qme.push(Xbe),tbe.push(k0e),rbe.push(k0e),rbe.push(Xbe);qme.sort(Fme),tbe.sort(Fme),rbe.sort(Fme),this._monthsRegex=new RegExp("^("+rbe.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+tbe.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+qme.join("|")+")","i")}function M0e(Fme,qme,tbe,rbe,cbe,wbe,Xbe){var k0e;return Fme<100&&Fme>=0?(k0e=new Date(Fme+400,qme,tbe,rbe,cbe,wbe,Xbe),isFinite(k0e.getFullYear())&&k0e.setFullYear(Fme)):k0e=new Date(Fme,qme,tbe,rbe,cbe,wbe,Xbe),k0e}function B0e(Fme){var qme,tbe;return Fme<100&&Fme>=0?(tbe=Array.prototype.slice.call(arguments),tbe[0]=Fme+400,qme=new Date(Date.UTC.apply(null,tbe)),isFinite(qme.getUTCFullYear())&&qme.setUTCFullYear(Fme)):qme=new Date(Date.UTC.apply(null,arguments)),qme}function Z0e(Fme,qme,tbe){var rbe=7+qme-tbe,cbe=(7+B0e(Fme,0,rbe).getUTCDay()-qme)%7;return-cbe+rbe-1}function m1e(Fme,qme,tbe,rbe,cbe){var wbe=(7+tbe-rbe)%7,Xbe=Z0e(Fme,rbe,cbe),k0e=1+7*(qme-1)+wbe+Xbe,X0e,n1e;return k0e<=0?(X0e=Fme-1,n1e=z0e(X0e)+k0e):k0e>z0e(Fme)?(X0e=Fme+1,n1e=k0e-z0e(Fme)):(X0e=Fme,n1e=k0e),{year:X0e,dayOfYear:n1e}}function $1e(Fme,qme,tbe){var rbe=Z0e(Fme.year(),qme,tbe),cbe=Math.floor((Fme.dayOfYear()-rbe-1)/7)+1,wbe,Xbe;return cbe<1?(Xbe=Fme.year()-1,wbe=cbe+f1e(Xbe,qme,tbe)):cbe>f1e(Fme.year(),qme,tbe)?(wbe=cbe-f1e(Fme.year(),qme,tbe),Xbe=Fme.year()+1):(Xbe=Fme.year(),wbe=cbe),{week:wbe,year:Xbe}}function f1e(Fme,qme,tbe){var rbe=Z0e(Fme,qme,tbe),cbe=Z0e(Fme+1,qme,tbe);return(z0e(Fme)-rbe+cbe)/7}Lme("w",["ww",2],"wo","week"),Lme("W",["WW",2],"Wo","isoWeek"),zbe("w",Mbe,Ybe),zbe("ww",Mbe,vbe),zbe("W",Mbe,Ybe),zbe("WW",Mbe,vbe),a0e(["w","ww","W","WW"],function(Fme,qme,tbe,rbe){qme[rbe.substr(0,1)]=v0e(Fme)});function w1e(Fme){return $1e(Fme,this._week.dow,this._week.doy).week}var b1e={dow:0,doy:6};function I1e(){return this._week.dow}function M1e(){return this._week.doy}function L1e(Fme){var qme=this.localeData().week(this);return Fme==null?qme:this.add((Fme-qme)*7,"d")}function pye(Fme){var qme=$1e(this,1,4).week;return Fme==null?qme:this.add((Fme-qme)*7,"d")}Lme("d",0,"do","day"),Lme("dd",0,0,function(Fme){return this.localeData().weekdaysMin(this,Fme)}),Lme("ddd",0,0,function(Fme){return this.localeData().weekdaysShort(this,Fme)}),Lme("dddd",0,0,function(Fme){return this.localeData().weekdays(this,Fme)}),Lme("e",0,0,"weekday"),Lme("E",0,0,"isoWeekday"),zbe("d",Mbe),zbe("e",Mbe),zbe("E",Mbe),zbe("dd",function(Fme,qme){return qme.weekdaysMinRegex(Fme)}),zbe("ddd",function(Fme,qme){return qme.weekdaysShortRegex(Fme)}),zbe("dddd",function(Fme,qme){return qme.weekdaysRegex(Fme)}),a0e(["dd","ddd","dddd"],function(Fme,qme,tbe,rbe){var cbe=tbe._locale.weekdaysParse(Fme,rbe,tbe._strict);cbe!=null?qme.d=cbe:hme(tbe).invalidWeekday=Fme}),a0e(["d","e","E"],function(Fme,qme,tbe,rbe){qme[rbe]=v0e(Fme)});function H1e(Fme,qme){return typeof Fme!="string"?Fme:isNaN(Fme)?(Fme=qme.weekdaysParse(Fme),typeof Fme=="number"?Fme:null):parseInt(Fme,10)}function Zye(Fme,qme){return typeof Fme=="string"?qme.weekdaysParse(Fme)%7||7:isNaN(Fme)?null:Fme}function hye(Fme,qme){return Fme.slice(qme,7).concat(Fme.slice(0,qme))}var Cye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),e2e=m0e,R2e=m0e,I2e=m0e;function N2e(Fme,qme){var tbe=nme(this._weekdays)?this._weekdays:this._weekdays[Fme&&Fme!==!0&&this._weekdays.isFormat.test(qme)?"format":"standalone"];return Fme===!0?hye(tbe,this._week.dow):Fme?tbe[Fme.day()]:tbe}function F0e(Fme){return Fme===!0?hye(this._weekdaysShort,this._week.dow):Fme?this._weekdaysShort[Fme.day()]:this._weekdaysShort}function U0e(Fme){return Fme===!0?hye(this._weekdaysMin,this._week.dow):Fme?this._weekdaysMin[Fme.day()]:this._weekdaysMin}function C1e(Fme,qme,tbe){var rbe,cbe,wbe,Xbe=Fme.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],rbe=0;rbe<7;++rbe)wbe=fme([2e3,1]).day(rbe),this._minWeekdaysParse[rbe]=this.weekdaysMin(wbe,"").toLocaleLowerCase(),this._shortWeekdaysParse[rbe]=this.weekdaysShort(wbe,"").toLocaleLowerCase(),this._weekdaysParse[rbe]=this.weekdays(wbe,"").toLocaleLowerCase();return tbe?qme==="dddd"?(cbe=O0e.call(this._weekdaysParse,Xbe),cbe!==-1?cbe:null):qme==="ddd"?(cbe=O0e.call(this._shortWeekdaysParse,Xbe),cbe!==-1?cbe:null):(cbe=O0e.call(this._minWeekdaysParse,Xbe),cbe!==-1?cbe:null):qme==="dddd"?(cbe=O0e.call(this._weekdaysParse,Xbe),cbe!==-1||(cbe=O0e.call(this._shortWeekdaysParse,Xbe),cbe!==-1)?cbe:(cbe=O0e.call(this._minWeekdaysParse,Xbe),cbe!==-1?cbe:null)):qme==="ddd"?(cbe=O0e.call(this._shortWeekdaysParse,Xbe),cbe!==-1||(cbe=O0e.call(this._weekdaysParse,Xbe),cbe!==-1)?cbe:(cbe=O0e.call(this._minWeekdaysParse,Xbe),cbe!==-1?cbe:null)):(cbe=O0e.call(this._minWeekdaysParse,Xbe),cbe!==-1||(cbe=O0e.call(this._weekdaysParse,Xbe),cbe!==-1)?cbe:(cbe=O0e.call(this._shortWeekdaysParse,Xbe),cbe!==-1?cbe:null))}function T1e(Fme,qme,tbe){var rbe,cbe,wbe;if(this._weekdaysParseExact)return C1e.call(this,Fme,qme,tbe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),rbe=0;rbe<7;rbe++){if(cbe=fme([2e3,1]).day(rbe),tbe&&!this._fullWeekdaysParse[rbe]&&(this._fullWeekdaysParse[rbe]=new RegExp("^"+this.weekdays(cbe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[rbe]=new RegExp("^"+this.weekdaysShort(cbe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[rbe]=new RegExp("^"+this.weekdaysMin(cbe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[rbe]||(wbe="^"+this.weekdays(cbe,"")+"|^"+this.weekdaysShort(cbe,"")+"|^"+this.weekdaysMin(cbe,""),this._weekdaysParse[rbe]=new RegExp(wbe.replace(".",""),"i")),tbe&&qme==="dddd"&&this._fullWeekdaysParse[rbe].test(Fme))return rbe;if(tbe&&qme==="ddd"&&this._shortWeekdaysParse[rbe].test(Fme))return rbe;if(tbe&&qme==="dd"&&this._minWeekdaysParse[rbe].test(Fme))return rbe;if(!tbe&&this._weekdaysParse[rbe].test(Fme))return rbe}}function E1e(Fme){if(!this.isValid())return Fme!=null?this:NaN;var qme=Vbe(this,"Day");return Fme!=null?(Fme=H1e(Fme,this.localeData()),this.add(Fme-qme,"d")):qme}function h2e(Fme){if(!this.isValid())return Fme!=null?this:NaN;var qme=(this.day()+7-this.localeData()._week.dow)%7;return Fme==null?qme:this.add(Fme-qme,"d")}function A2e(Fme){if(!this.isValid())return Fme!=null?this:NaN;if(Fme!=null){var qme=Zye(Fme,this.localeData());return this.day(this.day()%7?qme:qme-7)}else return this.day()||7}function g1e(Fme){return this._weekdaysParseExact?(ime(this,"_weekdaysRegex")||S_e.call(this),Fme?this._weekdaysStrictRegex:this._weekdaysRegex):(ime(this,"_weekdaysRegex")||(this._weekdaysRegex=e2e),this._weekdaysStrictRegex&&Fme?this._weekdaysStrictRegex:this._weekdaysRegex)}function p1e(Fme){return this._weekdaysParseExact?(ime(this,"_weekdaysRegex")||S_e.call(this),Fme?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ime(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=R2e),this._weekdaysShortStrictRegex&&Fme?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function e8e(Fme){return this._weekdaysParseExact?(ime(this,"_weekdaysRegex")||S_e.call(this),Fme?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ime(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=I2e),this._weekdaysMinStrictRegex&&Fme?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function S_e(){function Fme(q1e,Rye){return Rye.length-q1e.length}var qme=[],tbe=[],rbe=[],cbe=[],wbe,Xbe,k0e,X0e,n1e;for(wbe=0;wbe<7;wbe++)Xbe=fme([2e3,1]).day(wbe),k0e=u0e(this.weekdaysMin(Xbe,"")),X0e=u0e(this.weekdaysShort(Xbe,"")),n1e=u0e(this.weekdays(Xbe,"")),qme.push(k0e),tbe.push(X0e),rbe.push(n1e),cbe.push(k0e),cbe.push(X0e),cbe.push(n1e);qme.sort(Fme),tbe.sort(Fme),rbe.sort(Fme),cbe.sort(Fme),this._weekdaysRegex=new RegExp("^("+cbe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+rbe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+tbe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+qme.join("|")+")","i")}function x_e(){return this.hours()%12||12}function t8e(){return this.hours()||24}Lme("H",["HH",2],0,"hour"),Lme("h",["hh",2],0,x_e),Lme("k",["kk",2],0,t8e),Lme("hmm",0,0,function(){return""+x_e.apply(this)+Bme(this.minutes(),2)}),Lme("hmmss",0,0,function(){return""+x_e.apply(this)+Bme(this.minutes(),2)+Bme(this.seconds(),2)}),Lme("Hmm",0,0,function(){return""+this.hours()+Bme(this.minutes(),2)}),Lme("Hmmss",0,0,function(){return""+this.hours()+Bme(this.minutes(),2)+Bme(this.seconds(),2)});function J_e(Fme,qme){Lme(Fme,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),qme)})}J_e("a",!0),J_e("A",!1);function Z_e(Fme,qme){return qme._meridiemParse}zbe("a",Z_e),zbe("A",Z_e),zbe("H",Mbe,Jbe),zbe("h",Mbe,Ybe),zbe("k",Mbe,Ybe),zbe("HH",Mbe,vbe),zbe("hh",Mbe,vbe),zbe("kk",Mbe,vbe),zbe("hmm",Kbe),zbe("hmmss",Qbe),zbe("Hmm",Kbe),zbe("Hmmss",Qbe),Wbe(["H","HH"],w0e),Wbe(["k","kk"],function(Fme,qme,tbe){var rbe=v0e(Fme);qme[w0e]=rbe===24?0:rbe}),Wbe(["a","A"],function(Fme,qme,tbe){tbe._isPm=tbe._locale.isPM(Fme),tbe._meridiem=Fme}),Wbe(["h","hh"],function(Fme,qme,tbe){qme[w0e]=v0e(Fme),hme(tbe).bigHour=!0}),Wbe("hmm",function(Fme,qme,tbe){var rbe=Fme.length-2;qme[w0e]=v0e(Fme.substr(0,rbe)),qme[T0e]=v0e(Fme.substr(rbe)),hme(tbe).bigHour=!0}),Wbe("hmmss",function(Fme,qme,tbe){var rbe=Fme.length-4,cbe=Fme.length-2;qme[w0e]=v0e(Fme.substr(0,rbe)),qme[T0e]=v0e(Fme.substr(rbe,2)),qme[$be]=v0e(Fme.substr(cbe)),hme(tbe).bigHour=!0}),Wbe("Hmm",function(Fme,qme,tbe){var rbe=Fme.length-2;qme[w0e]=v0e(Fme.substr(0,rbe)),qme[T0e]=v0e(Fme.substr(rbe))}),Wbe("Hmmss",function(Fme,qme,tbe){var rbe=Fme.length-4,cbe=Fme.length-2;qme[w0e]=v0e(Fme.substr(0,rbe)),qme[T0e]=v0e(Fme.substr(rbe,2)),qme[$be]=v0e(Fme.substr(cbe))});function Q_e(Fme){return(Fme+"").toLowerCase().charAt(0)==="p"}var a8e=/[ap]\.?m?\.?/i,B1e=Tbe("Hours",!0);function E_e(Fme,qme,tbe){return Fme>11?tbe?"pm":"PM":tbe?"am":"AM"}var Hye={calendar:Mme,longDateFormat:Yme,invalidDate:Xme,ordinal:Zme,dayOfMonthOrdinalParse:nbe,relativeTime:ibe,months:W0e,monthsShort:i1e,week:b1e,weekdays:Cye,weekdaysMin:Qye,weekdaysShort:mye,meridiemParse:a8e},x1e={},t2e={},z1e;function e3e(Fme,qme){var tbe,rbe=Math.min(Fme.length,qme.length);for(tbe=0;tbe<rbe;tbe+=1)if(Fme[tbe]!==qme[tbe])return tbe;return rbe}function w_e(Fme){return Fme&&Fme.toLowerCase().replace("_","-")}function t3e(Fme){for(var qme=0,tbe,rbe,cbe,wbe;qme<Fme.length;){for(wbe=w_e(Fme[qme]).split("-"),tbe=wbe.length,rbe=w_e(Fme[qme+1]),rbe=rbe?rbe.split("-"):null;tbe>0;){if(cbe=P2e(wbe.slice(0,tbe).join("-")),cbe)return cbe;if(rbe&&rbe.length>=tbe&&e3e(wbe,rbe)>=tbe-1)break;tbe--}qme++}return z1e}function a3e(Fme){return!!(Fme&&Fme.match("^[^/\\\\]*$"))}function P2e(Fme){var qme=null,tbe;if(x1e[Fme]===void 0&&x_&&x_.exports&&a3e(Fme))try{qme=z1e._abbr,tbe=commonjsRequire,tbe("./locale/"+Fme),Pye(qme)}catch{x1e[Fme]=null}return x1e[Fme]}function Pye(Fme,qme){var tbe;return Fme&&(lme(qme)?tbe=N1e(Fme):tbe=U1e(Fme,qme),tbe?z1e=tbe:typeof console<"u"&&console.warn&&console.warn("Locale "+Fme+" not found. Did you forget to load it?")),z1e._abbr}function U1e(Fme,qme){if(qme!==null){var tbe,rbe=Hye;if(qme.abbr=Fme,x1e[Fme]!=null)Tme("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."),rbe=x1e[Fme]._config;else if(qme.parentLocale!=null)if(x1e[qme.parentLocale]!=null)rbe=x1e[qme.parentLocale]._config;else if(tbe=P2e(qme.parentLocale),tbe!=null)rbe=tbe._config;else return t2e[qme.parentLocale]||(t2e[qme.parentLocale]=[]),t2e[qme.parentLocale].push({name:Fme,config:qme}),null;return x1e[Fme]=new Ime(Nme(rbe,qme)),t2e[Fme]&&t2e[Fme].forEach(function(cbe){U1e(cbe.name,cbe.config)}),Pye(Fme),x1e[Fme]}else return delete x1e[Fme],null}function n8e(Fme,qme){if(qme!=null){var tbe,rbe,cbe=Hye;x1e[Fme]!=null&&x1e[Fme].parentLocale!=null?x1e[Fme].set(Nme(x1e[Fme]._config,qme)):(rbe=P2e(Fme),rbe!=null&&(cbe=rbe._config),qme=Nme(cbe,qme),rbe==null&&(qme.abbr=Fme),tbe=new Ime(qme),tbe.parentLocale=x1e[Fme],x1e[Fme]=tbe),Pye(Fme)}else x1e[Fme]!=null&&(x1e[Fme].parentLocale!=null?(x1e[Fme]=x1e[Fme].parentLocale,Fme===Pye()&&Pye(Fme)):x1e[Fme]!=null&&delete x1e[Fme]);return x1e[Fme]}function N1e(Fme){var qme;if(Fme&&Fme._locale&&Fme._locale._abbr&&(Fme=Fme._locale._abbr),!Fme)return z1e;if(!nme(Fme)){if(qme=P2e(Fme),qme)return qme;Fme=[Fme]}return t3e(Fme)}function r8e(){return Pme(x1e)}function J2e(Fme){var qme,tbe=Fme._a;return tbe&&hme(Fme).overflow===-2&&(qme=tbe[A0e]<0||tbe[A0e]>11?A0e:tbe[V0e]<1||tbe[V0e]>G0e(tbe[y0e],tbe[A0e])?V0e:tbe[w0e]<0||tbe[w0e]>24||tbe[w0e]===24&&(tbe[T0e]!==0||tbe[$be]!==0||tbe[Ibe]!==0)?w0e:tbe[T0e]<0||tbe[T0e]>59?T0e:tbe[$be]<0||tbe[$be]>59?$be:tbe[Ibe]<0||tbe[Ibe]>999?Ibe:-1,hme(Fme)._overflowDayOfYear&&(qme<y0e||qme>V0e)&&(qme=V0e),hme(Fme)._overflowWeeks&&qme===-1&&(qme=n0e),hme(Fme)._overflowWeekday&&qme===-1&&(qme=f0e),hme(Fme).overflow=qme),Fme}var Uye=/^\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)?)?$/,Z2e=/^\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)?)?$/,T_e=/Z|[+-]\d\d(?::?\d\d)?/,_1e=[["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]],Sye=[["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/]],O_e=/^\/?Date\((-?\d+)/i,i8e=/^(?:(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}))$/,R_e={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 n3e(Fme){var qme,tbe,rbe=Fme._i,cbe=Uye.exec(rbe)||Z2e.exec(rbe),wbe,Xbe,k0e,X0e,n1e=_1e.length,q1e=Sye.length;if(cbe){for(hme(Fme).iso=!0,qme=0,tbe=n1e;qme<tbe;qme++)if(_1e[qme][1].exec(cbe[1])){Xbe=_1e[qme][0],wbe=_1e[qme][2]!==!1;break}if(Xbe==null){Fme._isValid=!1;return}if(cbe[3]){for(qme=0,tbe=q1e;qme<tbe;qme++)if(Sye[qme][1].exec(cbe[3])){k0e=(cbe[2]||" ")+Sye[qme][0];break}if(k0e==null){Fme._isValid=!1;return}}if(!wbe&&k0e!=null){Fme._isValid=!1;return}if(cbe[4])if(T_e.exec(cbe[4]))X0e="Z";else{Fme._isValid=!1;return}Fme._f=Xbe+(k0e||"")+(X0e||""),N_e(Fme)}else Fme._isValid=!1}function o8e(Fme,qme,tbe,rbe,cbe,wbe){var Xbe=[l8e(Fme),i1e.indexOf(qme),parseInt(tbe,10),parseInt(rbe,10),parseInt(cbe,10)];return wbe&&Xbe.push(parseInt(wbe,10)),Xbe}function l8e(Fme){var qme=parseInt(Fme,10);return qme<=49?2e3+qme:qme<=999?1900+qme:qme}function r3e(Fme){return Fme.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Q2e(Fme,qme,tbe){if(Fme){var rbe=mye.indexOf(Fme),cbe=new Date(qme[0],qme[1],qme[2]).getDay();if(rbe!==cbe)return hme(tbe).weekdayMismatch=!0,tbe._isValid=!1,!1}return!0}function m2e(Fme,qme,tbe){if(Fme)return R_e[Fme];if(qme)return 0;var rbe=parseInt(tbe,10),cbe=rbe%100,wbe=(rbe-cbe)/100;return wbe*60+cbe}function i3e(Fme){var qme=i8e.exec(r3e(Fme._i)),tbe;if(qme){if(tbe=o8e(qme[4],qme[3],qme[2],qme[5],qme[6],qme[7]),!Q2e(qme[1],tbe,Fme))return;Fme._a=tbe,Fme._tzm=m2e(qme[8],qme[9],qme[10]),Fme._d=B0e.apply(null,Fme._a),Fme._d.setUTCMinutes(Fme._d.getUTCMinutes()-Fme._tzm),hme(Fme).rfc2822=!0}else Fme._isValid=!1}function o3e(Fme){var qme=O_e.exec(Fme._i);if(qme!==null){Fme._d=new Date(+qme[1]);return}if(n3e(Fme),Fme._isValid===!1)delete Fme._isValid;else return;if(i3e(Fme),Fme._isValid===!1)delete Fme._isValid;else return;Fme._strict?Fme._isValid=!1:tme.createFromInputFallback(Fme)}tme.createFromInputFallback=Eme("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(Fme){Fme._d=new Date(Fme._i+(Fme._useUTC?" UTC":""))});function a2e(Fme,qme,tbe){return Fme??qme??tbe}function I_e(Fme){var qme=new Date(tme.now());return Fme._useUTC?[qme.getUTCFullYear(),qme.getUTCMonth(),qme.getUTCDate()]:[qme.getFullYear(),qme.getMonth(),qme.getDate()]}function k2e(Fme){var qme,tbe,rbe=[],cbe,wbe,Xbe;if(!Fme._d){for(cbe=I_e(Fme),Fme._w&&Fme._a[V0e]==null&&Fme._a[A0e]==null&&l3e(Fme),Fme._dayOfYear!=null&&(Xbe=a2e(Fme._a[y0e],cbe[y0e]),(Fme._dayOfYear>z0e(Xbe)||Fme._dayOfYear===0)&&(hme(Fme)._overflowDayOfYear=!0),tbe=B0e(Xbe,0,Fme._dayOfYear),Fme._a[A0e]=tbe.getUTCMonth(),Fme._a[V0e]=tbe.getUTCDate()),qme=0;qme<3&&Fme._a[qme]==null;++qme)Fme._a[qme]=rbe[qme]=cbe[qme];for(;qme<7;qme++)Fme._a[qme]=rbe[qme]=Fme._a[qme]==null?qme===2?1:0:Fme._a[qme];Fme._a[w0e]===24&&Fme._a[T0e]===0&&Fme._a[$be]===0&&Fme._a[Ibe]===0&&(Fme._nextDay=!0,Fme._a[w0e]=0),Fme._d=(Fme._useUTC?B0e:M0e).apply(null,rbe),wbe=Fme._useUTC?Fme._d.getUTCDay():Fme._d.getDay(),Fme._tzm!=null&&Fme._d.setUTCMinutes(Fme._d.getUTCMinutes()-Fme._tzm),Fme._nextDay&&(Fme._a[w0e]=24),Fme._w&&typeof Fme._w.d<"u"&&Fme._w.d!==wbe&&(hme(Fme).weekdayMismatch=!0)}}function l3e(Fme){var qme,tbe,rbe,cbe,wbe,Xbe,k0e,X0e,n1e;qme=Fme._w,qme.GG!=null||qme.W!=null||qme.E!=null?(wbe=1,Xbe=4,tbe=a2e(qme.GG,Fme._a[y0e],$1e(S1e(),1,4).year),rbe=a2e(qme.W,1),cbe=a2e(qme.E,1),(cbe<1||cbe>7)&&(X0e=!0)):(wbe=Fme._locale._week.dow,Xbe=Fme._locale._week.doy,n1e=$1e(S1e(),wbe,Xbe),tbe=a2e(qme.gg,Fme._a[y0e],n1e.year),rbe=a2e(qme.w,n1e.week),qme.d!=null?(cbe=qme.d,(cbe<0||cbe>6)&&(X0e=!0)):qme.e!=null?(cbe=qme.e+wbe,(qme.e<0||qme.e>6)&&(X0e=!0)):cbe=wbe),rbe<1||rbe>f1e(tbe,wbe,Xbe)?hme(Fme)._overflowWeeks=!0:X0e!=null?hme(Fme)._overflowWeekday=!0:(k0e=m1e(tbe,rbe,cbe,wbe,Xbe),Fme._a[y0e]=k0e.year,Fme._dayOfYear=k0e.dayOfYear)}tme.ISO_8601=function(){},tme.RFC_2822=function(){};function N_e(Fme){if(Fme._f===tme.ISO_8601){n3e(Fme);return}if(Fme._f===tme.RFC_2822){i3e(Fme);return}Fme._a=[],hme(Fme).empty=!0;var qme=""+Fme._i,tbe,rbe,cbe,wbe,Xbe,k0e=qme.length,X0e=0,n1e,q1e;for(cbe=Jme(Fme._f,Fme._locale).match(Dme)||[],q1e=cbe.length,tbe=0;tbe<q1e;tbe++)wbe=cbe[tbe],rbe=(qme.match(R0e(wbe,Fme))||[])[0],rbe&&(Xbe=qme.substr(0,qme.indexOf(rbe)),Xbe.length>0&&hme(Fme).unusedInput.push(Xbe),qme=qme.slice(qme.indexOf(rbe)+rbe.length),X0e+=rbe.length),Wme[wbe]?(rbe?hme(Fme).empty=!1:hme(Fme).unusedTokens.push(wbe),g0e(wbe,rbe,Fme)):Fme._strict&&!rbe&&hme(Fme).unusedTokens.push(wbe);hme(Fme).charsLeftOver=k0e-X0e,qme.length>0&&hme(Fme).unusedInput.push(qme),Fme._a[w0e]<=12&&hme(Fme).bigHour===!0&&Fme._a[w0e]>0&&(hme(Fme).bigHour=void 0),hme(Fme).parsedDateParts=Fme._a.slice(0),hme(Fme).meridiem=Fme._meridiem,Fme._a[w0e]=A_e(Fme._locale,Fme._a[w0e],Fme._meridiem),n1e=hme(Fme).era,n1e!==null&&(Fme._a[y0e]=Fme._locale.erasConvertYear(n1e,Fme._a[y0e])),k2e(Fme),J2e(Fme)}function A_e(Fme,qme,tbe){var rbe;return tbe==null?qme:Fme.meridiemHour!=null?Fme.meridiemHour(qme,tbe):(Fme.isPM!=null&&(rbe=Fme.isPM(tbe),rbe&&qme<12&&(qme+=12),!rbe&&qme===12&&(qme=0)),qme)}function P_e(Fme){var qme,tbe,rbe,cbe,wbe,Xbe,k0e=!1,X0e=Fme._f.length;if(X0e===0){hme(Fme).invalidFormat=!0,Fme._d=new Date(NaN);return}for(cbe=0;cbe<X0e;cbe++)wbe=0,Xbe=!1,qme=_me({},Fme),Fme._useUTC!=null&&(qme._useUTC=Fme._useUTC),qme._f=Fme._f[cbe],N_e(qme),mme(qme)&&(Xbe=!0),wbe+=hme(qme).charsLeftOver,wbe+=hme(qme).unusedTokens.length*10,hme(qme).score=wbe,k0e?wbe<rbe&&(rbe=wbe,tbe=qme):(rbe==null||wbe<rbe||Xbe)&&(rbe=wbe,tbe=qme,Xbe&&(k0e=!0));ume(Fme,tbe||qme)}function s8e(Fme){if(!Fme._d){var qme=mbe(Fme._i),tbe=qme.day===void 0?qme.date:qme.day;Fme._a=dme([qme.year,qme.month,tbe,qme.hour,qme.minute,qme.second,qme.millisecond],function(rbe){return rbe&&parseInt(rbe,10)}),k2e(Fme)}}function s3e(Fme){var qme=new $me(J2e(G1e(Fme)));return qme._nextDay&&(qme.add(1,"d"),qme._nextDay=void 0),qme}function G1e(Fme){var qme=Fme._i,tbe=Fme._f;return Fme._locale=Fme._locale||N1e(Fme._l),qme===null||tbe===void 0&&qme===""?vme({nullInput:!0}):(typeof qme=="string"&&(Fme._i=qme=Fme._locale.preparse(qme)),Cme(qme)?new $me(J2e(qme)):(cme(qme)?Fme._d=qme:nme(tbe)?P_e(Fme):tbe?N_e(Fme):k_e(Fme),mme(Fme)||(Fme._d=null),Fme))}function k_e(Fme){var qme=Fme._i;lme(qme)?Fme._d=new Date(tme.now()):cme(qme)?Fme._d=new Date(qme.valueOf()):typeof qme=="string"?o3e(Fme):nme(qme)?(Fme._a=dme(qme.slice(0),function(tbe){return parseInt(tbe,10)}),k2e(Fme)):rme(qme)?s8e(Fme):sme(qme)?Fme._d=new Date(qme):tme.createFromInputFallback(Fme)}function b2e(Fme,qme,tbe,rbe,cbe){var wbe={};return(qme===!0||qme===!1)&&(rbe=qme,qme=void 0),(tbe===!0||tbe===!1)&&(rbe=tbe,tbe=void 0),(rme(Fme)&&ome(Fme)||nme(Fme)&&Fme.length===0)&&(Fme=void 0),wbe._isAMomentObject=!0,wbe._useUTC=wbe._isUTC=cbe,wbe._l=tbe,wbe._i=Fme,wbe._f=qme,wbe._strict=rbe,s3e(wbe)}function S1e(Fme,qme,tbe,rbe){return b2e(Fme,qme,tbe,rbe,!1)}var c3e=Eme("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var Fme=S1e.apply(null,arguments);return this.isValid()&&Fme.isValid()?Fme<this?this:Fme:vme()}),c8e=Eme("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var Fme=S1e.apply(null,arguments);return this.isValid()&&Fme.isValid()?Fme>this?this:Fme:vme()});function d3e(Fme,qme){var tbe,rbe;if(qme.length===1&&nme(qme[0])&&(qme=qme[0]),!qme.length)return S1e();for(tbe=qme[0],rbe=1;rbe<qme.length;++rbe)(!qme[rbe].isValid()||qme[rbe][Fme](tbe))&&(tbe=qme[rbe]);return tbe}function d8e(){var Fme=[].slice.call(arguments,0);return d3e("isBefore",Fme)}function u8e(){var Fme=[].slice.call(arguments,0);return d3e("isAfter",Fme)}var f8e=function(){return Date.now?Date.now():+new Date},xye=["year","quarter","month","week","day","hour","minute","second","millisecond"];function p8e(Fme){var qme,tbe=!1,rbe,cbe=xye.length;for(qme in Fme)if(ime(Fme,qme)&&!(O0e.call(xye,qme)!==-1&&(Fme[qme]==null||!isNaN(Fme[qme]))))return!1;for(rbe=0;rbe<cbe;++rbe)if(Fme[xye[rbe]]){if(tbe)return!1;parseFloat(Fme[xye[rbe]])!==v0e(Fme[xye[rbe]])&&(tbe=!0)}return!0}function h8e(){return this._isValid}function D_e(){return o1e(NaN)}function D2e(Fme){var qme=mbe(Fme),tbe=qme.year||0,rbe=qme.quarter||0,cbe=qme.month||0,wbe=qme.week||qme.isoWeek||0,Xbe=qme.day||0,k0e=qme.hour||0,X0e=qme.minute||0,n1e=qme.second||0,q1e=qme.millisecond||0;this._isValid=p8e(qme),this._milliseconds=+q1e+n1e*1e3+X0e*6e4+k0e*1e3*60*60,this._days=+Xbe+wbe*7,this._months=+cbe+rbe*3+tbe*12,this._data={},this._locale=N1e(),this._bubble()}function bye(Fme){return Fme instanceof D2e}function v2e(Fme){return Fme<0?Math.round(-1*Fme)*-1:Math.round(Fme)}function m8e(Fme,qme,tbe){var rbe=Math.min(Fme.length,qme.length),cbe=Math.abs(Fme.length-qme.length),wbe=0,Xbe;for(Xbe=0;Xbe<rbe;Xbe++)v0e(Fme[Xbe])!==v0e(qme[Xbe])&&wbe++;return wbe+cbe}function u3e(Fme,qme){Lme(Fme,0,0,function(){var tbe=this.utcOffset(),rbe="+";return tbe<0&&(tbe=-tbe,rbe="-"),rbe+Bme(~~(tbe/60),2)+qme+Bme(~~tbe%60,2)})}u3e("Z",":"),u3e("ZZ",""),zbe("Z",e0e),zbe("ZZ",e0e),Wbe(["Z","ZZ"],function(Fme,qme,tbe){tbe._useUTC=!0,tbe._tzm=Wye(e0e,Fme)});var b8e=/([\+\-]|\d\d)/gi;function Wye(Fme,qme){var tbe=(qme||"").match(Fme),rbe,cbe,wbe;return tbe===null?null:(rbe=tbe[tbe.length-1]||[],cbe=(rbe+"").match(b8e)||["-",0,0],wbe=+(cbe[1]*60)+v0e(cbe[2]),wbe===0?0:cbe[0]==="+"?wbe:-wbe)}function Y1e(Fme,qme){var tbe,rbe;return qme._isUTC?(tbe=qme.clone(),rbe=(Cme(Fme)||cme(Fme)?Fme.valueOf():S1e(Fme).valueOf())-tbe.valueOf(),tbe._d.setTime(tbe._d.valueOf()+rbe),tme.updateOffset(tbe,!1),tbe):S1e(Fme).local()}function e_e(Fme){return-Math.round(Fme._d.getTimezoneOffset())}tme.updateOffset=function(){};function v8e(Fme,qme,tbe){var rbe=this._offset||0,cbe;if(!this.isValid())return Fme!=null?this:NaN;if(Fme!=null){if(typeof Fme=="string"){if(Fme=Wye(e0e,Fme),Fme===null)return this}else Math.abs(Fme)<16&&!tbe&&(Fme=Fme*60);return!this._isUTC&&qme&&(cbe=e_e(this)),this._offset=Fme,this._isUTC=!0,cbe!=null&&this.add(cbe,"m"),rbe!==Fme&&(!qme||this._changeInProgress?p3e(this,o1e(Fme-rbe,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,tme.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?rbe:e_e(this)}function g8e(Fme,qme){return Fme!=null?(typeof Fme!="string"&&(Fme=-Fme),this.utcOffset(Fme,qme),this):-this.utcOffset()}function y8e(Fme){return this.utcOffset(0,Fme)}function _8e(Fme){return this._isUTC&&(this.utcOffset(0,Fme),this._isUTC=!1,Fme&&this.subtract(e_e(this),"m")),this}function $8e(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var Fme=Wye(P0e,this._i);Fme!=null?this.utcOffset(Fme):this.utcOffset(0,!0)}return this}function g2e(Fme){return this.isValid()?(Fme=Fme?S1e(Fme).utcOffset():0,(this.utcOffset()-Fme)%60===0):!1}function Dbe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function r0e(){if(!lme(this._isDSTShifted))return this._isDSTShifted;var Fme={},qme;return _me(Fme,this),Fme=G1e(Fme),Fme._a?(qme=Fme._isUTC?fme(Fme._a):S1e(Fme._a),this._isDSTShifted=this.isValid()&&m8e(Fme._a,qme.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qbe(){return this.isValid()?!this._isUTC:!1}function D0e(){return this.isValid()?this._isUTC:!1}function J0e(){return this.isValid()?this._isUTC&&this._offset===0:!1}var h1e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,k1e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function o1e(Fme,qme){var tbe=Fme,rbe=null,cbe,wbe,Xbe;return bye(Fme)?tbe={ms:Fme._milliseconds,d:Fme._days,M:Fme._months}:sme(Fme)||!isNaN(+Fme)?(tbe={},qme?tbe[qme]=+Fme:tbe.milliseconds=+Fme):(rbe=h1e.exec(Fme))?(cbe=rbe[1]==="-"?-1:1,tbe={y:0,d:v0e(rbe[V0e])*cbe,h:v0e(rbe[w0e])*cbe,m:v0e(rbe[T0e])*cbe,s:v0e(rbe[$be])*cbe,ms:v0e(v2e(rbe[Ibe]*1e3))*cbe}):(rbe=k1e.exec(Fme))?(cbe=rbe[1]==="-"?-1:1,tbe={y:kye(rbe[2],cbe),M:kye(rbe[3],cbe),w:kye(rbe[4],cbe),d:kye(rbe[5],cbe),h:kye(rbe[6],cbe),m:kye(rbe[7],cbe),s:kye(rbe[8],cbe)}):tbe==null?tbe={}:typeof tbe=="object"&&("from"in tbe||"to"in tbe)&&(Xbe=Q1e(S1e(tbe.from),S1e(tbe.to)),tbe={},tbe.ms=Xbe.milliseconds,tbe.M=Xbe.months),wbe=new D2e(tbe),bye(Fme)&&ime(Fme,"_locale")&&(wbe._locale=Fme._locale),bye(Fme)&&ime(Fme,"_isValid")&&(wbe._isValid=Fme._isValid),wbe}o1e.fn=D2e.prototype,o1e.invalid=D_e;function kye(Fme,qme){var tbe=Fme&&parseFloat(Fme.replace(",","."));return(isNaN(tbe)?0:tbe)*qme}function f3e(Fme,qme){var tbe={};return tbe.months=qme.month()-Fme.month()+(qme.year()-Fme.year())*12,Fme.clone().add(tbe.months,"M").isAfter(qme)&&--tbe.months,tbe.milliseconds=+qme-+Fme.clone().add(tbe.months,"M"),tbe}function Q1e(Fme,qme){var tbe;return Fme.isValid()&&qme.isValid()?(qme=Y1e(qme,Fme),Fme.isBefore(qme)?tbe=f3e(Fme,qme):(tbe=f3e(qme,Fme),tbe.milliseconds=-tbe.milliseconds,tbe.months=-tbe.months),tbe):{milliseconds:0,months:0}}function F2e(Fme,qme){return function(tbe,rbe){var cbe,wbe;return rbe!==null&&!isNaN(+rbe)&&(Tme(qme,"moment()."+qme+"(period, number) is deprecated. Please use moment()."+qme+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),wbe=tbe,tbe=rbe,rbe=wbe),cbe=o1e(tbe,rbe),p3e(this,cbe,Fme),this}}function p3e(Fme,qme,tbe,rbe){var cbe=qme._milliseconds,wbe=v2e(qme._days),Xbe=v2e(qme._months);Fme.isValid()&&(rbe=rbe??!0,Xbe&&Nbe(Fme,Vbe(Fme,"Month")+Xbe*tbe),wbe&&Ube(Fme,"Date",Vbe(Fme,"Date")+wbe*tbe),cbe&&Fme._d.setTime(Fme._d.valueOf()+cbe*tbe),rbe&&tme.updateOffset(Fme,wbe||Xbe))}var y2e=F2e(1,"add"),t_e=F2e(-1,"subtract");function M2e(Fme){return typeof Fme=="string"||Fme instanceof String}function v1e(Fme){return Cme(Fme)||cme(Fme)||M2e(Fme)||sme(Fme)||h3e(Fme)||C8e(Fme)||Fme===null||Fme===void 0}function C8e(Fme){var qme=rme(Fme)&&!ome(Fme),tbe=!1,rbe=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],cbe,wbe,Xbe=rbe.length;for(cbe=0;cbe<Xbe;cbe+=1)wbe=rbe[cbe],tbe=tbe||ime(Fme,wbe);return qme&&tbe}function h3e(Fme){var qme=nme(Fme),tbe=!1;return qme&&(tbe=Fme.filter(function(rbe){return!sme(rbe)&&M2e(Fme)}).length===0),qme&&tbe}function a_e(Fme){var qme=rme(Fme)&&!ome(Fme),tbe=!1,rbe=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],cbe,wbe;for(cbe=0;cbe<rbe.length;cbe+=1)wbe=rbe[cbe],tbe=tbe||ime(Fme,wbe);return qme&&tbe}function S8e(Fme,qme){var tbe=Fme.diff(qme,"days",!0);return tbe<-6?"sameElse":tbe<-1?"lastWeek":tbe<0?"lastDay":tbe<1?"sameDay":tbe<2?"nextDay":tbe<7?"nextWeek":"sameElse"}function x8e(Fme,qme){arguments.length===1&&(arguments[0]?v1e(arguments[0])?(Fme=arguments[0],qme=void 0):a_e(arguments[0])&&(qme=arguments[0],Fme=void 0):(Fme=void 0,qme=void 0));var tbe=Fme||S1e(),rbe=Y1e(tbe,this).startOf("day"),cbe=tme.calendarFormat(this,rbe)||"sameElse",wbe=qme&&(Ome(qme[cbe])?qme[cbe].call(this,tbe):qme[cbe]);return this.format(wbe||this.localeData().calendar(cbe,this,S1e(tbe)))}function E8e(){return new $me(this)}function n_e(Fme,qme){var tbe=Cme(Fme)?Fme:S1e(Fme);return this.isValid()&&tbe.isValid()?(qme=ube(qme)||"millisecond",qme==="millisecond"?this.valueOf()>tbe.valueOf():tbe.valueOf()<this.clone().startOf(qme).valueOf()):!1}function qye(Fme,qme){var tbe=Cme(Fme)?Fme:S1e(Fme);return this.isValid()&&tbe.isValid()?(qme=ube(qme)||"millisecond",qme==="millisecond"?this.valueOf()<tbe.valueOf():this.clone().endOf(qme).valueOf()<tbe.valueOf()):!1}function r_e(Fme,qme,tbe,rbe){var cbe=Cme(Fme)?Fme:S1e(Fme),wbe=Cme(qme)?qme:S1e(qme);return this.isValid()&&cbe.isValid()&&wbe.isValid()?(rbe=rbe||"()",(rbe[0]==="("?this.isAfter(cbe,tbe):!this.isBefore(cbe,tbe))&&(rbe[1]===")"?this.isBefore(wbe,tbe):!this.isAfter(wbe,tbe))):!1}function m3e(Fme,qme){var tbe=Cme(Fme)?Fme:S1e(Fme),rbe;return this.isValid()&&tbe.isValid()?(qme=ube(qme)||"millisecond",qme==="millisecond"?this.valueOf()===tbe.valueOf():(rbe=tbe.valueOf(),this.clone().startOf(qme).valueOf()<=rbe&&rbe<=this.clone().endOf(qme).valueOf())):!1}function i_e(Fme,qme){return this.isSame(Fme,qme)||this.isAfter(Fme,qme)}function b3e(Fme,qme){return this.isSame(Fme,qme)||this.isBefore(Fme,qme)}function v3e(Fme,qme,tbe){var rbe,cbe,wbe;if(!this.isValid())return NaN;if(rbe=Y1e(Fme,this),!rbe.isValid())return NaN;switch(cbe=(rbe.utcOffset()-this.utcOffset())*6e4,qme=ube(qme),qme){case"year":wbe=n2e(this,rbe)/12;break;case"month":wbe=n2e(this,rbe);break;case"quarter":wbe=n2e(this,rbe)/3;break;case"second":wbe=(this-rbe)/1e3;break;case"minute":wbe=(this-rbe)/6e4;break;case"hour":wbe=(this-rbe)/36e5;break;case"day":wbe=(this-rbe-cbe)/864e5;break;case"week":wbe=(this-rbe-cbe)/6048e5;break;default:wbe=this-rbe}return tbe?wbe:t0e(wbe)}function n2e(Fme,qme){if(Fme.date()<qme.date())return-n2e(qme,Fme);var tbe=(qme.year()-Fme.year())*12+(qme.month()-Fme.month()),rbe=Fme.clone().add(tbe,"months"),cbe,wbe;return qme-rbe<0?(cbe=Fme.clone().add(tbe-1,"months"),wbe=(qme-rbe)/(rbe-cbe)):(cbe=Fme.clone().add(tbe+1,"months"),wbe=(qme-rbe)/(cbe-rbe)),-(tbe+wbe)||0}tme.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",tme.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function g3e(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function L2e(Fme){if(!this.isValid())return null;var qme=Fme!==!0,tbe=qme?this.clone().utc():this;return tbe.year()<0||tbe.year()>9999?Gme(tbe,qme?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ome(Date.prototype.toISOString)?qme?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Gme(tbe,"Z")):Gme(tbe,qme?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function r2e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Fme="moment",qme="",tbe,rbe,cbe,wbe;return this.isLocal()||(Fme=this.utcOffset()===0?"moment.utc":"moment.parseZone",qme="Z"),tbe="["+Fme+'("]',rbe=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",cbe="-MM-DD[T]HH:mm:ss.SSS",wbe=qme+'[")]',this.format(tbe+rbe+cbe+wbe)}function o_e(Fme){Fme||(Fme=this.isUtc()?tme.defaultFormatUtc:tme.defaultFormat);var qme=Gme(this,Fme);return this.localeData().postformat(qme)}function w8e(Fme,qme){return this.isValid()&&(Cme(Fme)&&Fme.isValid()||S1e(Fme).isValid())?o1e({to:this,from:Fme}).locale(this.locale()).humanize(!qme):this.localeData().invalidDate()}function T8e(Fme){return this.from(S1e(),Fme)}function O8e(Fme,qme){return this.isValid()&&(Cme(Fme)&&Fme.isValid()||S1e(Fme).isValid())?o1e({from:this,to:Fme}).locale(this.locale()).humanize(!qme):this.localeData().invalidDate()}function l_e(Fme){return this.to(S1e(),Fme)}function B2e(Fme){var qme;return Fme===void 0?this._locale._abbr:(qme=N1e(Fme),qme!=null&&(this._locale=qme),this)}var s_e=Eme("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(Fme){return Fme===void 0?this.localeData():this.locale(Fme)});function y3e(){return this._locale}var j2e=1e3,_2e=60*j2e,c_e=60*_2e,A1e=(365*400+97)*24*c_e;function O1e(Fme,qme){return(Fme%qme+qme)%qme}function _3e(Fme,qme,tbe){return Fme<100&&Fme>=0?new Date(Fme+400,qme,tbe)-A1e:new Date(Fme,qme,tbe).valueOf()}function $3e(Fme,qme,tbe){return Fme<100&&Fme>=0?Date.UTC(Fme+400,qme,tbe)-A1e:Date.UTC(Fme,qme,tbe)}function C3e(Fme){var qme,tbe;if(Fme=ube(Fme),Fme===void 0||Fme==="millisecond"||!this.isValid())return this;switch(tbe=this._isUTC?$3e:_3e,Fme){case"year":qme=tbe(this.year(),0,1);break;case"quarter":qme=tbe(this.year(),this.month()-this.month()%3,1);break;case"month":qme=tbe(this.year(),this.month(),1);break;case"week":qme=tbe(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":qme=tbe(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":qme=tbe(this.year(),this.month(),this.date());break;case"hour":qme=this._d.valueOf(),qme-=O1e(qme+(this._isUTC?0:this.utcOffset()*_2e),c_e);break;case"minute":qme=this._d.valueOf(),qme-=O1e(qme,_2e);break;case"second":qme=this._d.valueOf(),qme-=O1e(qme,j2e);break}return this._d.setTime(qme),tme.updateOffset(this,!0),this}function R8e(Fme){var qme,tbe;if(Fme=ube(Fme),Fme===void 0||Fme==="millisecond"||!this.isValid())return this;switch(tbe=this._isUTC?$3e:_3e,Fme){case"year":qme=tbe(this.year()+1,0,1)-1;break;case"quarter":qme=tbe(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":qme=tbe(this.year(),this.month()+1,1)-1;break;case"week":qme=tbe(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":qme=tbe(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":qme=tbe(this.year(),this.month(),this.date()+1)-1;break;case"hour":qme=this._d.valueOf(),qme+=c_e-O1e(qme+(this._isUTC?0:this.utcOffset()*_2e),c_e)-1;break;case"minute":qme=this._d.valueOf(),qme+=_2e-O1e(qme,_2e)-1;break;case"second":qme=this._d.valueOf(),qme+=j2e-O1e(qme,j2e)-1;break}return this._d.setTime(qme),tme.updateOffset(this,!0),this}function F_e(){return this._d.valueOf()-(this._offset||0)*6e4}function z2e(){return Math.floor(this.valueOf()/1e3)}function M_e(){return new Date(this.valueOf())}function $2e(){var Fme=this;return[Fme.year(),Fme.month(),Fme.date(),Fme.hour(),Fme.minute(),Fme.second(),Fme.millisecond()]}function V2e(){var Fme=this;return{years:Fme.year(),months:Fme.month(),date:Fme.date(),hours:Fme.hours(),minutes:Fme.minutes(),seconds:Fme.seconds(),milliseconds:Fme.milliseconds()}}function H2e(){return this.isValid()?this.toISOString():null}function d_e(){return mme(this)}function C2e(){return ume({},hme(this))}function I8e(){return hme(this).overflow}function N8e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Lme("N",0,0,"eraAbbr"),Lme("NN",0,0,"eraAbbr"),Lme("NNN",0,0,"eraAbbr"),Lme("NNNN",0,0,"eraName"),Lme("NNNNN",0,0,"eraNarrow"),Lme("y",["y",1],"yo","eraYear"),Lme("y",["yy",2],0,"eraYear"),Lme("y",["yyy",3],0,"eraYear"),Lme("y",["yyyy",4],0,"eraYear"),zbe("N",a1e),zbe("NN",a1e),zbe("NNN",a1e),zbe("NNNN",D8e),zbe("NNNNN",F8e),Wbe(["N","NN","NNN","NNNN","NNNNN"],function(Fme,qme,tbe,rbe){var cbe=tbe._locale.erasParse(Fme,rbe,tbe._strict);cbe?hme(tbe).era=cbe:hme(tbe).invalidEra=Fme}),zbe("y",p0e),zbe("yy",p0e),zbe("yyy",p0e),zbe("yyyy",p0e),zbe("yo",M8e),Wbe(["y","yy","yyy","yyyy"],y0e),Wbe(["yo"],function(Fme,qme,tbe,rbe){var cbe;tbe._locale._eraYearOrdinalRegex&&(cbe=Fme.match(tbe._locale._eraYearOrdinalRegex)),tbe._locale.eraYearOrdinalParse?qme[y0e]=tbe._locale.eraYearOrdinalParse(Fme,cbe):qme[y0e]=parseInt(Fme,10)});function A8e(Fme,qme){var tbe,rbe,cbe,wbe=this._eras||N1e("en")._eras;for(tbe=0,rbe=wbe.length;tbe<rbe;++tbe){switch(typeof wbe[tbe].since){case"string":cbe=tme(wbe[tbe].since).startOf("day"),wbe[tbe].since=cbe.valueOf();break}switch(typeof wbe[tbe].until){case"undefined":wbe[tbe].until=1/0;break;case"string":cbe=tme(wbe[tbe].until).startOf("day").valueOf(),wbe[tbe].until=cbe.valueOf();break}}return wbe}function P8e(Fme,qme,tbe){var rbe,cbe,wbe=this.eras(),Xbe,k0e,X0e;for(Fme=Fme.toUpperCase(),rbe=0,cbe=wbe.length;rbe<cbe;++rbe)if(Xbe=wbe[rbe].name.toUpperCase(),k0e=wbe[rbe].abbr.toUpperCase(),X0e=wbe[rbe].narrow.toUpperCase(),tbe)switch(qme){case"N":case"NN":case"NNN":if(k0e===Fme)return wbe[rbe];break;case"NNNN":if(Xbe===Fme)return wbe[rbe];break;case"NNNNN":if(X0e===Fme)return wbe[rbe];break}else if([Xbe,k0e,X0e].indexOf(Fme)>=0)return wbe[rbe]}function k8e(Fme,qme){var tbe=Fme.since<=Fme.until?1:-1;return qme===void 0?tme(Fme.since).year():tme(Fme.since).year()+(qme-Fme.offset)*tbe}function u_e(){var Fme,qme,tbe,rbe=this.localeData().eras();for(Fme=0,qme=rbe.length;Fme<qme;++Fme)if(tbe=this.clone().startOf("day").valueOf(),rbe[Fme].since<=tbe&&tbe<=rbe[Fme].until||rbe[Fme].until<=tbe&&tbe<=rbe[Fme].since)return rbe[Fme].name;return""}function U2e(){var Fme,qme,tbe,rbe=this.localeData().eras();for(Fme=0,qme=rbe.length;Fme<qme;++Fme)if(tbe=this.clone().startOf("day").valueOf(),rbe[Fme].since<=tbe&&tbe<=rbe[Fme].until||rbe[Fme].until<=tbe&&tbe<=rbe[Fme].since)return rbe[Fme].narrow;return""}function S3e(){var Fme,qme,tbe,rbe=this.localeData().eras();for(Fme=0,qme=rbe.length;Fme<qme;++Fme)if(tbe=this.clone().startOf("day").valueOf(),rbe[Fme].since<=tbe&&tbe<=rbe[Fme].until||rbe[Fme].until<=tbe&&tbe<=rbe[Fme].since)return rbe[Fme].abbr;return""}function dbe(){var Fme,qme,tbe,rbe,cbe=this.localeData().eras();for(Fme=0,qme=cbe.length;Fme<qme;++Fme)if(tbe=cbe[Fme].since<=cbe[Fme].until?1:-1,rbe=this.clone().startOf("day").valueOf(),cbe[Fme].since<=rbe&&rbe<=cbe[Fme].until||cbe[Fme].until<=rbe&&rbe<=cbe[Fme].since)return(this.year()-tme(cbe[Fme].since).year())*tbe+cbe[Fme].offset;return this.year()}function S2e(Fme){return ime(this,"_erasNameRegex")||Dye.call(this),Fme?this._erasNameRegex:this._erasRegex}function f_e(Fme){return ime(this,"_erasAbbrRegex")||Dye.call(this),Fme?this._erasAbbrRegex:this._erasRegex}function lye(Fme){return ime(this,"_erasNarrowRegex")||Dye.call(this),Fme?this._erasNarrowRegex:this._erasRegex}function a1e(Fme,qme){return qme.erasAbbrRegex(Fme)}function D8e(Fme,qme){return qme.erasNameRegex(Fme)}function F8e(Fme,qme){return qme.erasNarrowRegex(Fme)}function M8e(Fme,qme){return qme._eraYearOrdinalRegex||p0e}function Dye(){var Fme=[],qme=[],tbe=[],rbe=[],cbe,wbe,Xbe,k0e,X0e,n1e=this.eras();for(cbe=0,wbe=n1e.length;cbe<wbe;++cbe)Xbe=u0e(n1e[cbe].name),k0e=u0e(n1e[cbe].abbr),X0e=u0e(n1e[cbe].narrow),qme.push(Xbe),Fme.push(k0e),tbe.push(X0e),rbe.push(Xbe),rbe.push(k0e),rbe.push(X0e);this._erasRegex=new RegExp("^("+rbe.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+qme.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+Fme.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+tbe.join("|")+")","i")}Lme(0,["gg",2],0,function(){return this.weekYear()%100}),Lme(0,["GG",2],0,function(){return this.isoWeekYear()%100});function p_e(Fme,qme){Lme(0,[Fme,Fme.length],0,qme)}p_e("gggg","weekYear"),p_e("ggggg","weekYear"),p_e("GGGG","isoWeekYear"),p_e("GGGGG","isoWeekYear"),zbe("G",S0e),zbe("g",S0e),zbe("GG",Mbe,vbe),zbe("gg",Mbe,vbe),zbe("GGGG",Hbe,Rbe),zbe("gggg",Hbe,Rbe),zbe("GGGGG",d0e,Pbe),zbe("ggggg",d0e,Pbe),a0e(["gggg","ggggg","GGGG","GGGGG"],function(Fme,qme,tbe,rbe){qme[rbe.substr(0,2)]=v0e(Fme)}),a0e(["gg","GG"],function(Fme,qme,tbe,rbe){qme[rbe]=tme.parseTwoDigitYear(Fme)});function L8e(Fme){return x3e.call(this,Fme,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function B8e(Fme){return x3e.call(this,Fme,this.isoWeek(),this.isoWeekday(),1,4)}function j8e(){return f1e(this.year(),1,4)}function z8e(){return f1e(this.isoWeekYear(),1,4)}function Fye(){var Fme=this.localeData()._week;return f1e(this.year(),Fme.dow,Fme.doy)}function V8e(){var Fme=this.localeData()._week;return f1e(this.weekYear(),Fme.dow,Fme.doy)}function x3e(Fme,qme,tbe,rbe,cbe){var wbe;return Fme==null?$1e(this,rbe,cbe).year:(wbe=f1e(Fme,rbe,cbe),qme>wbe&&(qme=wbe),H8e.call(this,Fme,qme,tbe,rbe,cbe))}function H8e(Fme,qme,tbe,rbe,cbe){var wbe=m1e(Fme,qme,tbe,rbe,cbe),Xbe=B0e(wbe.year,0,wbe.dayOfYear);return this.year(Xbe.getUTCFullYear()),this.month(Xbe.getUTCMonth()),this.date(Xbe.getUTCDate()),this}Lme("Q",0,"Qo","quarter"),zbe("Q",Sbe),Wbe("Q",function(Fme,qme){qme[A0e]=(v0e(Fme)-1)*3});function U8e(Fme){return Fme==null?Math.ceil((this.month()+1)/3):this.month((Fme-1)*3+this.month()%3)}Lme("D",["DD",2],"Do","date"),zbe("D",Mbe,Ybe),zbe("DD",Mbe,vbe),zbe("Do",function(Fme,qme){return Fme?qme._dayOfMonthOrdinalParse||qme._ordinalParse:qme._dayOfMonthOrdinalParseLenient}),Wbe(["D","DD"],V0e),Wbe("Do",function(Fme,qme){qme[V0e]=v0e(Fme.match(Mbe)[0])});var E3e=Tbe("Date",!0);Lme("DDD",["DDDD",3],"DDDo","dayOfYear"),zbe("DDD",Gbe),zbe("DDDD",kbe),Wbe(["DDD","DDDD"],function(Fme,qme,tbe){tbe._dayOfYear=v0e(Fme)});function Mye(Fme){var qme=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return Fme==null?qme:this.add(Fme-qme,"d")}Lme("m",["mm",2],0,"minute"),zbe("m",Mbe,Jbe),zbe("mm",Mbe,vbe),Wbe(["m","mm"],T0e);var W8e=Tbe("Minutes",!1);Lme("s",["ss",2],0,"second"),zbe("s",Mbe,Jbe),zbe("ss",Mbe,vbe),Wbe(["s","ss"],$be);var q8e=Tbe("Seconds",!1);Lme("S",0,0,function(){return~~(this.millisecond()/100)}),Lme(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Lme(0,["SSS",3],0,"millisecond"),Lme(0,["SSSS",4],0,function(){return this.millisecond()*10}),Lme(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Lme(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Lme(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Lme(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Lme(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),zbe("S",Gbe,Sbe),zbe("SS",Gbe,vbe),zbe("SSS",Gbe,kbe);var Gye,w3e;for(Gye="SSSS";Gye.length<=9;Gye+="S")zbe(Gye,p0e);function G8e(Fme,qme){qme[Ibe]=v0e(("0."+Fme)*1e3)}for(Gye="S";Gye.length<=9;Gye+="S")Wbe(Gye,G8e);w3e=Tbe("Milliseconds",!1),Lme("z",0,0,"zoneAbbr"),Lme("zz",0,0,"zoneName");function i2e(){return this._isUTC?"UTC":""}function K8e(){return this._isUTC?"Coordinated Universal Time":""}var C0e=$me.prototype;C0e.add=y2e,C0e.calendar=x8e,C0e.clone=E8e,C0e.diff=v3e,C0e.endOf=R8e,C0e.format=o_e,C0e.from=w8e,C0e.fromNow=T8e,C0e.to=O8e,C0e.toNow=l_e,C0e.get=x0e,C0e.invalidAt=I8e,C0e.isAfter=n_e,C0e.isBefore=qye,C0e.isBetween=r_e,C0e.isSame=m3e,C0e.isSameOrAfter=i_e,C0e.isSameOrBefore=b3e,C0e.isValid=d_e,C0e.lang=s_e,C0e.locale=B2e,C0e.localeData=y3e,C0e.max=c8e,C0e.min=c3e,C0e.parsingFlags=C2e,C0e.set=I0e,C0e.startOf=C3e,C0e.subtract=t_e,C0e.toArray=$2e,C0e.toObject=V2e,C0e.toDate=M_e,C0e.toISOString=L2e,C0e.inspect=r2e,typeof Symbol<"u"&&Symbol.for!=null&&(C0e[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),C0e.toJSON=H2e,C0e.toString=g3e,C0e.unix=z2e,C0e.valueOf=F_e,C0e.creationData=N8e,C0e.eraName=u_e,C0e.eraNarrow=U2e,C0e.eraAbbr=S3e,C0e.eraYear=dbe,C0e.year=o0e,C0e.isLeapYear=gbe,C0e.weekYear=L8e,C0e.isoWeekYear=B8e,C0e.quarter=C0e.quarters=U8e,C0e.month=Fbe,C0e.daysInMonth=i0e,C0e.week=C0e.weeks=L1e,C0e.isoWeek=C0e.isoWeeks=pye,C0e.weeksInYear=Fye,C0e.weeksInWeekYear=V8e,C0e.isoWeeksInYear=j8e,C0e.isoWeeksInISOWeekYear=z8e,C0e.date=E3e,C0e.day=C0e.days=E1e,C0e.weekday=h2e,C0e.isoWeekday=A2e,C0e.dayOfYear=Mye,C0e.hour=C0e.hours=B1e,C0e.minute=C0e.minutes=W8e,C0e.second=C0e.seconds=q8e,C0e.millisecond=C0e.milliseconds=w3e,C0e.utcOffset=v8e,C0e.utc=y8e,C0e.local=_8e,C0e.parseZone=$8e,C0e.hasAlignedHourOffset=g2e,C0e.isDST=Dbe,C0e.isLocal=qbe,C0e.isUtcOffset=D0e,C0e.isUtc=J0e,C0e.isUTC=J0e,C0e.zoneAbbr=i2e,C0e.zoneName=K8e,C0e.dates=Eme("dates accessor is deprecated. Use date instead.",E3e),C0e.months=Eme("months accessor is deprecated. Use month instead",Fbe),C0e.years=Eme("years accessor is deprecated. Use year instead",o0e),C0e.zone=Eme("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",g8e),C0e.isDSTShifted=Eme("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",r0e);function vye(Fme){return S1e(Fme*1e3)}function Y8e(){return S1e.apply(null,arguments).parseZone()}function T3e(Fme){return Fme}var u1e=Ime.prototype;u1e.calendar=kme,u1e.longDateFormat=Qme,u1e.invalidDate=Kme,u1e.ordinal=lbe,u1e.preparse=T3e,u1e.postformat=T3e,u1e.relativeTime=abe,u1e.pastFuture=obe,u1e.set=Rme,u1e.eras=A8e,u1e.erasParse=P8e,u1e.erasConvertYear=k8e,u1e.erasAbbrRegex=f_e,u1e.erasNameRegex=S2e,u1e.erasNarrowRegex=lye,u1e.months=fbe,u1e.monthsShort=ybe,u1e.monthsParse=Lbe,u1e.monthsRegex=Zbe,u1e.monthsShortRegex=Bbe,u1e.week=w1e,u1e.firstDayOfYear=M1e,u1e.firstDayOfWeek=I1e,u1e.weekdays=N2e,u1e.weekdaysMin=U0e,u1e.weekdaysShort=F0e,u1e.weekdaysParse=T1e,u1e.weekdaysRegex=g1e,u1e.weekdaysShortRegex=p1e,u1e.weekdaysMinRegex=e8e,u1e.isPM=Q_e,u1e.meridiem=E_e;function h_e(Fme,qme,tbe,rbe){var cbe=N1e(),wbe=fme().set(rbe,qme);return cbe[tbe](wbe,Fme)}function O3e(Fme,qme,tbe){if(sme(Fme)&&(qme=Fme,Fme=void 0),Fme=Fme||"",qme!=null)return h_e(Fme,qme,tbe,"month");var rbe,cbe=[];for(rbe=0;rbe<12;rbe++)cbe[rbe]=h_e(Fme,rbe,tbe,"month");return cbe}function m_e(Fme,qme,tbe,rbe){typeof Fme=="boolean"?(sme(qme)&&(tbe=qme,qme=void 0),qme=qme||""):(qme=Fme,tbe=qme,Fme=!1,sme(qme)&&(tbe=qme,qme=void 0),qme=qme||"");var cbe=N1e(),wbe=Fme?cbe._week.dow:0,Xbe,k0e=[];if(tbe!=null)return h_e(qme,(tbe+wbe)%7,rbe,"day");for(Xbe=0;Xbe<7;Xbe++)k0e[Xbe]=h_e(qme,(Xbe+wbe)%7,rbe,"day");return k0e}function R3e(Fme,qme){return O3e(Fme,qme,"months")}function X8e(Fme,qme){return O3e(Fme,qme,"monthsShort")}function J8e(Fme,qme,tbe){return m_e(Fme,qme,tbe,"weekdays")}function L_e(Fme,qme,tbe){return m_e(Fme,qme,tbe,"weekdaysShort")}function W2e(Fme,qme,tbe){return m_e(Fme,qme,tbe,"weekdaysMin")}Pye("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(Fme){var qme=Fme%10,tbe=v0e(Fme%100/10)===1?"th":qme===1?"st":qme===2?"nd":qme===3?"rd":"th";return Fme+tbe}}),tme.lang=Eme("moment.lang is deprecated. Use moment.locale instead.",Pye),tme.langData=Eme("moment.langData is deprecated. Use moment.localeData instead.",N1e);var sye=Math.abs;function Z8e(){var Fme=this._data;return this._milliseconds=sye(this._milliseconds),this._days=sye(this._days),this._months=sye(this._months),Fme.milliseconds=sye(Fme.milliseconds),Fme.seconds=sye(Fme.seconds),Fme.minutes=sye(Fme.minutes),Fme.hours=sye(Fme.hours),Fme.months=sye(Fme.months),Fme.years=sye(Fme.years),this}function B_e(Fme,qme,tbe,rbe){var cbe=o1e(qme,tbe);return Fme._milliseconds+=rbe*cbe._milliseconds,Fme._days+=rbe*cbe._days,Fme._months+=rbe*cbe._months,Fme._bubble()}function Q8e(Fme,qme){return B_e(this,Fme,qme,1)}function Lye(Fme,qme){return B_e(this,Fme,qme,-1)}function b_e(Fme){return Fme<0?Math.floor(Fme):Math.ceil(Fme)}function o2e(){var Fme=this._milliseconds,qme=this._days,tbe=this._months,rbe=this._data,cbe,wbe,Xbe,k0e,X0e;return Fme>=0&&qme>=0&&tbe>=0||Fme<=0&&qme<=0&&tbe<=0||(Fme+=b_e(j_e(tbe)+qme)*864e5,qme=0,tbe=0),rbe.milliseconds=Fme%1e3,cbe=t0e(Fme/1e3),rbe.seconds=cbe%60,wbe=t0e(cbe/60),rbe.minutes=wbe%60,Xbe=t0e(wbe/60),rbe.hours=Xbe%24,qme+=t0e(Xbe/24),X0e=t0e(X1e(qme)),tbe+=X0e,qme-=b_e(j_e(X0e)),k0e=t0e(tbe/12),tbe%=12,rbe.days=qme,rbe.months=tbe,rbe.years=k0e,this}function X1e(Fme){return Fme*4800/146097}function j_e(Fme){return Fme*146097/4800}function I3e(Fme){if(!this.isValid())return NaN;var qme,tbe,rbe=this._milliseconds;if(Fme=ube(Fme),Fme==="month"||Fme==="quarter"||Fme==="year")switch(qme=this._days+rbe/864e5,tbe=this._months+X1e(qme),Fme){case"month":return tbe;case"quarter":return tbe/3;case"year":return tbe/12}else switch(qme=this._days+Math.round(j_e(this._months)),Fme){case"week":return qme/7+rbe/6048e5;case"day":return qme+rbe/864e5;case"hour":return qme*24+rbe/36e5;case"minute":return qme*1440+rbe/6e4;case"second":return qme*86400+rbe/1e3;case"millisecond":return Math.floor(qme*864e5)+rbe;default:throw new Error("Unknown unit "+Fme)}}function Eye(Fme){return function(){return this.as(Fme)}}var x2e=Eye("ms"),Kye=Eye("s"),N3e=Eye("m"),e4e=Eye("h"),v_e=Eye("d"),t4e=Eye("w"),A3e=Eye("M"),j1e=Eye("Q"),z_e=Eye("y"),P3e=x2e;function wye(){return o1e(this)}function V_e(Fme){return Fme=ube(Fme),this.isValid()?this[Fme+"s"]():NaN}function Tye(Fme){return function(){return this.isValid()?this._data[Fme]:NaN}}var l2e=Tye("milliseconds"),k3e=Tye("seconds"),W1e=Tye("minutes"),H_e=Tye("hours"),a4e=Tye("days"),n4e=Tye("months"),r4e=Tye("years");function U_e(){return t0e(this.days()/7)}var Bye=Math.round,Oye={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function D3e(Fme,qme,tbe,rbe,cbe){return cbe.relativeTime(qme||1,!!tbe,Fme,rbe)}function i4e(Fme,qme,tbe,rbe){var cbe=o1e(Fme).abs(),wbe=Bye(cbe.as("s")),Xbe=Bye(cbe.as("m")),k0e=Bye(cbe.as("h")),X0e=Bye(cbe.as("d")),n1e=Bye(cbe.as("M")),q1e=Bye(cbe.as("w")),Rye=Bye(cbe.as("y")),jye=wbe<=tbe.ss&&["s",wbe]||wbe<tbe.s&&["ss",wbe]||Xbe<=1&&["m"]||Xbe<tbe.m&&["mm",Xbe]||k0e<=1&&["h"]||k0e<tbe.h&&["hh",k0e]||X0e<=1&&["d"]||X0e<tbe.d&&["dd",X0e];return tbe.w!=null&&(jye=jye||q1e<=1&&["w"]||q1e<tbe.w&&["ww",q1e]),jye=jye||n1e<=1&&["M"]||n1e<tbe.M&&["MM",n1e]||Rye<=1&&["y"]||["yy",Rye],jye[2]=qme,jye[3]=+Fme>0,jye[4]=rbe,D3e.apply(null,jye)}function o4e(Fme){return Fme===void 0?Bye:typeof Fme=="function"?(Bye=Fme,!0):!1}function q2e(Fme,qme){return Oye[Fme]===void 0?!1:qme===void 0?Oye[Fme]:(Oye[Fme]=qme,Fme==="s"&&(Oye.ss=qme-1),!0)}function l4e(Fme,qme){if(!this.isValid())return this.localeData().invalidDate();var tbe=!1,rbe=Oye,cbe,wbe;return typeof Fme=="object"&&(qme=Fme,Fme=!1),typeof Fme=="boolean"&&(tbe=Fme),typeof qme=="object"&&(rbe=Object.assign({},Oye,qme),qme.s!=null&&qme.ss==null&&(rbe.ss=qme.s-1)),cbe=this.localeData(),wbe=i4e(this,!tbe,rbe,cbe),tbe&&(wbe=cbe.pastFuture(+this,wbe)),cbe.postformat(wbe)}var W_e=Math.abs;function Yye(Fme){return(Fme>0)-(Fme<0)||+Fme}function G2e(){if(!this.isValid())return this.localeData().invalidDate();var Fme=W_e(this._milliseconds)/1e3,qme=W_e(this._days),tbe=W_e(this._months),rbe,cbe,wbe,Xbe,k0e=this.asSeconds(),X0e,n1e,q1e,Rye;return k0e?(rbe=t0e(Fme/60),cbe=t0e(rbe/60),Fme%=60,rbe%=60,wbe=t0e(tbe/12),tbe%=12,Xbe=Fme?Fme.toFixed(3).replace(/\.?0+$/,""):"",X0e=k0e<0?"-":"",n1e=Yye(this._months)!==Yye(k0e)?"-":"",q1e=Yye(this._days)!==Yye(k0e)?"-":"",Rye=Yye(this._milliseconds)!==Yye(k0e)?"-":"",X0e+"P"+(wbe?n1e+wbe+"Y":"")+(tbe?n1e+tbe+"M":"")+(qme?q1e+qme+"D":"")+(cbe||rbe||Fme?"T":"")+(cbe?Rye+cbe+"H":"")+(rbe?Rye+rbe+"M":"")+(Fme?Rye+Xbe+"S":"")):"P0D"}var c1e=D2e.prototype;c1e.isValid=h8e,c1e.abs=Z8e,c1e.add=Q8e,c1e.subtract=Lye,c1e.as=I3e,c1e.asMilliseconds=x2e,c1e.asSeconds=Kye,c1e.asMinutes=N3e,c1e.asHours=e4e,c1e.asDays=v_e,c1e.asWeeks=t4e,c1e.asMonths=A3e,c1e.asQuarters=j1e,c1e.asYears=z_e,c1e.valueOf=P3e,c1e._bubble=o2e,c1e.clone=wye,c1e.get=V_e,c1e.milliseconds=l2e,c1e.seconds=k3e,c1e.minutes=W1e,c1e.hours=H_e,c1e.days=a4e,c1e.weeks=U_e,c1e.months=n4e,c1e.years=r4e,c1e.humanize=l4e,c1e.toISOString=G2e,c1e.toString=G2e,c1e.toJSON=G2e,c1e.locale=B2e,c1e.localeData=y3e,c1e.toIsoString=Eme("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",G2e),c1e.lang=s_e,Lme("X",0,0,"unix"),Lme("x",0,0,"valueOf"),zbe("x",S0e),zbe("X",_0e),Wbe("X",function(Fme,qme,tbe){tbe._d=new Date(parseFloat(Fme)*1e3)}),Wbe("x",function(Fme,qme,tbe){tbe._d=new Date(v0e(Fme))});//! moment.js
return tme.version="2.30.1",ame(S1e),tme.fn=C0e,tme.min=d8e,tme.max=u8e,tme.now=f8e,tme.utc=fme,tme.unix=vye,tme.months=R3e,tme.isDate=cme,tme.locale=Pye,tme.invalid=vme,tme.duration=o1e,tme.isMoment=Cme,tme.weekdays=J8e,tme.parseZone=Y8e,tme.localeData=N1e,tme.isDuration=bye,tme.monthsShort=X8e,tme.weekdaysMin=W2e,tme.defineLocale=U1e,tme.updateLocale=n8e,tme.locales=r8e,tme.weekdaysShort=L_e,tme.normalizeUnits=ube,tme.relativeTimeRounding=o4e,tme.relativeTimeThreshold=q2e,tme.calendarFormat=S8e,tme.prototype=C0e,tme.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"},tme})}(moment)),moment.exports}(function(x_,eme){(function($P,tme){tme(typeof commonjsRequire=="function"?requireMoment():$P.moment)})(commonjsGlobal$1,function($P){//! moment.js locale configuration
function tme(nme,rme,ime,ome){var lme={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[nme+" Tage",nme+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[nme+" Monate",nme+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[nme+" Jahre",nme+" Jahren"]};return rme?lme[ime][0]:lme[ime][1]}var ame=$P.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:tme,mm:"%d Minuten",h:tme,hh:"%d Stunden",d:tme,dd:tme,w:tme,ww:"%d Wochen",M:tme,MM:tme,y:tme,yy:tme},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return ame})})();var viewModes=Object.freeze({YEARS:"years",MONTHS:"months",DAYS:"days",TIME:"time"}),BaseDatePicker=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.timeCellLength={year:4,month:2,date:2,hours:2,minutes:2,seconds:2,milliseconds:3},tme.getUpdateOn=function(nme){return nme.date.match(/[lLD]/)?"days":nme.date.indexOf("M")!==-1?"months":nme.date.indexOf("Q")!==-1?"quarters":nme.date.indexOf("Y")!==-1?"years":"days"},tme.componentProps={fromProps:["value","isValidDate","renderDay","renderMonth","renderYear","timeConstraints"],fromState:["viewDate","selectedDate","updateOn"],fromThis:["setDate","setTime","showView","addTime","subtractTime","updateSelectedDate","localMoment","handleClickOutside","onClick","onMouseEnter","onMouseLeave"]},tme.showView=function(nme){return function(){tme.setState({currentView:nme})}},tme.subtractTime=function(nme,rme,ime){return function(){tme.updateTime("subtract",nme,rme,ime)}},tme.addTime=function(nme,rme,ime){return function(){tme.updateTime("add",nme,rme,ime)}},tme.allowedSetTime=["hours","minutes","seconds","milliseconds"],tme.setTime=function(nme,rme){var ime=tme.allowedSetTime.indexOf(nme)+1,ome=tme.state,lme=(ome.selectedDate||ome.viewDate).clone(),sme;for(lme[nme](rme);ime<tme.allowedSetTime.length;ime++)sme=tme.allowedSetTime[ime],lme[sme](lme[sme]());tme.props.value||tme.setState({selectedDate:lme,inputValue:lme.format(ome.displayForamt)}),tme.props.onChange&&tme.props.onChange(lme,"time")},tme.setDate=function(nme){var rme=tme.props.viewMode==="months"&&!/^mm$/i.test(tme.props.inputFormat||tme.props.displayForamt||""),ime={month:rme?"months":"days",year:rme?"months":"days",quarters:""};return tme.props.viewMode==="quarters"&&(ime.year="quarters"),function(ome){tme.setState({viewDate:tme.state.viewDate.clone()[nme](parseInt(ome.target.closest("td").getAttribute("data-value"),10)).startOf(nme),currentView:ime[nme]})}},tme.getTargetDate=function(nme){var rme=nme.currentTarget,ime=0,ome=tme.state.viewDate,lme=tme.state.selectedDate||ome,sme;return rme.className.indexOf("rdtDay")!==-1?(rme.className.indexOf("rdtNew")!==-1?ime=1:rme.className.indexOf("rdtOld")!==-1&&(ime=-1),sme=ome.clone().month(ome.month()+ime).date(parseInt(rme.getAttribute("data-value"),10))):rme.className.indexOf("rdtMonth")!==-1?sme=ome.clone().month(parseInt(rme.getAttribute("data-value"),10)).date(lme.date()):rme.className.indexOf("rdtQuarter")!==-1?sme=ome.clone().quarter(parseInt(rme.getAttribute("data-value"),10)).startOf("quarter").date(lme.date()):rme.className.indexOf("rdtYear")!==-1&&(sme=ome.clone().month(lme.month()).date(lme.date()).year(parseInt(rme.getAttribute("data-value"),10))),sme==null||sme.hours(lme.hours()).minutes(lme.minutes()).seconds(lme.seconds()).milliseconds(lme.milliseconds()),sme},tme.updateSelectedDate=function(nme,rme){var ime=tme,ome=ime.props,lme=ome.embed,sme=ome.status,cme=ime.getTargetDate(nme);if(tme.props.value)tme.setState({selectedDate:cme,viewDate:cme==null?void 0:cme.clone().startOf("month"),inputValue:cme==null?void 0:cme.format(tme.state.displayForamt)}),tme.props.closeOnSelect&&rme&&ime.closeCalendar();else{var dme=!(tme.props.closeOnSelect&&rme);!dme&&!lme&&ime.props.onBlur(cme),tme.setState({selectedDate:cme,viewDate:cme==null?void 0:cme.clone().startOf("month"),inputValue:cme==null?void 0:cme.format(tme.state.displayForamt),open:dme})}ime.props.onChange(cme,"days",sme)},tme.getDateBoundary=function(nme){var rme,ime,ome=nme.toObject(),lme=ome.years,sme=ome.months,cme=(rme=tme.props.maxDate)===null||rme===void 0?void 0:rme.toObject(),dme=(ime=tme.props.minDate)===null||ime===void 0?void 0:ime.toObject(),ume={max:cme?cme.years:lme+100,min:dme?dme.years:lme-100},fme={max:lme===(cme==null?void 0:cme.years)?cme.months:11,min:lme===(dme==null?void 0:dme.years)?dme.months:0},pme={max:lme===(cme==null?void 0:cme.years)&&sme===(cme==null?void 0:cme.months)?cme.date:nme.daysInMonth(),min:lme===(dme==null?void 0:dme.years)&&sme===(dme==null?void 0:dme.months)?dme.date:1};return{year:ume,month:fme,date:pme,hours:{max:23,min:0},minutes:{max:59,min:0},seconds:{max:59,min:0}}},tme.timeCell=function(nme,rme){for(var ime=nme+"";ime.length<tme.timeCellLength[rme];)ime="0"+ime;return ime},tme.getColumns=function(nme,rme){var ime=[];return nme.map(function(ome){var lme=getRange(rme[ome].min,rme[ome].max,1).map(function(sme){return{text:ome==="month"?tme.timeCell(sme+1,ome):tme.timeCell(sme,ome),value:sme}});ime.push({options:lme})}),ime},tme.onConfirm=function(nme,rme){var ime=(tme.state.selectedDate||tme.state.viewDate||hooks()).clone(),ome=convertArrayValueToMoment(nme,rme,ime);(rme==null?void 0:rme[1])==="quarter"&&(ome=ome.startOf("quarter").date(ime.date())),tme.props.value||tme.setState({selectedDate:ome,viewDate:ome,inputValue:ome.format(tme.state.displayForamt)}),tme.props.onChange&&tme.props.onChange(ome),tme.onClose()},tme.onClose=function(){tme.setState({currentView:tme.state.initView}),tme.props.onClose&&tme.props.onClose()};var ame=tme.getStateFromProps(tme.props);return ame.open===void 0&&(ame.open=!tme.props.input),ame.currentView=tme.props.dateFormat?tme.props.viewMode||ame.updateOn||"days":tme.props.viewMode||"time",ame.initView=ame.currentView,tme.state=ame,tme.onClick=tme.onClick.bind(tme),tme.onMouseEnter=tme.onMouseEnter.bind(tme),tme.onMouseLeave=tme.onMouseLeave.bind(tme),tme}return eme.prototype.getFormats=function($P){var tme={date:$P.dateFormat||"",time:$P.timeFormat||""},ame=this.localMoment($P.date,void 0,$P).localeData();return tme.date===!0?tme.date=ame.longDateFormat("L"):this.getUpdateOn(tme)!==viewModes.DAYS&&(tme.time=""),tme.time===!0&&(tme.time=ame.longDateFormat("LT")),tme.datetime=tme.date&&tme.time?tme.date+" "+tme.time:tme.date||tme.time,tme},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=this.getFormats(tme),nme={};if((tme.value!==$P.value||ame.datetime!==this.getFormats($P).datetime)&&(nme=this.getStateFromProps(tme)),tme.viewMode!==$P.viewMode&&(nme.currentView=tme.viewMode),tme.locale!==$P.locale){if(this.state.viewDate){var rme=this.state.viewDate.clone().locale(tme.locale);nme.viewDate=rme}if(this.state.selectedDate){var ime=this.state.selectedDate.clone().locale(tme.locale);nme.selectedDate=ime,nme.inputValue=ime.format(ame.datetime)}}(tme.utc!==$P.utc||tme.displayTimeZone!==$P.displayTimeZone)&&(tme.utc?(this.state.viewDate&&(nme.viewDate=this.state.viewDate.clone().utc()),this.state.selectedDate&&(nme.selectedDate=this.state.selectedDate.clone().utc(),nme.inputValue=nme.selectedDate.format(ame.datetime))):tme.displayTimeZone?(this.state.viewDate&&(nme.viewDate=this.state.viewDate.clone().tz(tme.displayTimeZone)),this.state.selectedDate&&(nme.selectedDate=this.state.selectedDate.clone().tz(tme.displayTimeZone),nme.inputValue=nme.selectedDate.tz(tme.displayTimeZone).format(ame.datetime))):(this.state.viewDate&&(nme.viewDate=this.state.viewDate.clone().local()),this.state.selectedDate&&(nme.selectedDate=this.state.selectedDate.clone().local(),nme.inputValue=nme.selectedDate.format(ame.datetime)))),tme.viewDate!==$P.viewDate&&(nme.viewDate=hooks(tme.viewDate)),Object.keys(nme).length&&this.setState(nme),this.checkTZ(tme)},eme.prototype.checkTZ=function($P){var tme=console;$P.displayTimeZone&&!this.tzWarning&&!hooks.tz&&(this.tzWarning=!0,tme&&tme.error('react-datetime: displayTimeZone prop with value "'+$P.displayTimeZone+'" is used but moment.js timezone is not loaded.'))},eme.prototype.localMoment=function($P,tme,ame){ame=ame||this.props;var nme=null;return ame.utc?nme=hooks.utc($P,tme,ame.strictParsing):ame.displayTimeZone?nme=hooks.tz($P,tme,ame.displayTimeZone):nme=hooks($P,tme,ame.strictParsing),ame.locale&&nme.locale(ame.locale),nme},eme.prototype.parseDate=function($P,tme){var ame;return $P&&typeof $P=="string"?ame=this.localMoment($P,tme.datetime):$P&&(ame=this.localMoment($P)),ame&&!ame.isValid()&&(ame=null),ame},eme.prototype.getStateFromProps=function($P){var tme=this.getFormats($P),ame=$P.value||$P.defaultValue||"",nme,rme,ime,ome;return nme=this.parseDate(ame,tme),rme=this.parseDate($P.viewDate,tme),rme=nme?nme.clone().startOf("month"):rme?rme.clone().startOf("month"):this.localMoment().startOf("month"),ime=this.getUpdateOn(tme),nme?ome=nme.format(tme.datetime):ame.isValid&&!ame.isValid()?ome="":ome=ame||"",{updateOn:ime,displayForamt:tme.datetime,viewDate:rme,selectedDate:nme,inputValue:ome,open:$P.open}},eme.prototype.getComponentProps=function(){var $P=this,tme=this,ame=this.getFormats(this.props),nme={dateFormat:ame.date,timeFormat:ame.time};return this.componentProps.fromProps.forEach(function(rme){nme[rme]=tme.props[rme]}),this.componentProps.fromState.forEach(function(rme){nme[rme]=tme.state[rme]}),this.componentProps.fromThis.forEach(function(rme){nme[rme]=tme[rme]}),nme.setDateTimeState=this.setState.bind(this),["inputFormat","displayForamt","onChange","requiredConfirm","classPrefix","prevIcon","nextIcon","isEndDate","classnames","minDate","maxDate","schedules","largeMode","todayActiveStyle","onScheduleClick","hideHeader","updateOn","mobileUI","showToolbar","embed","env","testIdBuilder"].forEach(function(rme){return nme[rme]=$P.props[rme]}),nme},eme.prototype.updateTime=function($P,tme,ame,nme){var rme={},ime=nme?"selectedDate":"viewDate";rme[ime]=this.state[ime].clone()[$P](tme,ame),this.setState(rme)},eme.prototype.onClick=function($P){var tme=this.getTargetDate($P);this.props.onClick&&this.props.onClick(tme)},eme.prototype.onMouseEnter=function($P){var tme=this.getTargetDate($P);this.props.onMouseEnter&&this.props.onMouseEnter(tme)},eme.prototype.onMouseLeave=function($P){var tme=this.getTargetDate($P);this.props.onMouseLeave&&this.props.onMouseLeave(tme)},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.viewMode,nme=tme.timeFormat,rme=tme.dateFormat,ime=tme.timeRangeHeader,ome=tme.mobileUI,lme=tme.testIdBuilder,sme=CustomCalendarContainer,cme=this.getComponentProps();return ame==="quarters"?($P=__read$3(["quarters",this.props.renderQuarter],2),cme.updateOn=$P[0],cme.renderQuarter=$P[1]):ame==="years"?cme.updateOn="years":ame==="months"&&(cme.updateOn="months"),cme.onConfirm=this.onConfirm,cme.onClose=this.onClose,cme.getDateBoundary=this.getDateBoundary,cme.getColumns=this.getColumns,cme.timeCell=this.timeCell,cme.timeRangeHeader=this.props.timeRangeHeader,React__default.createElement("div",__assign$3({className:cx$1("rdt rdtStatic rdtOpen",this.props.className,nme&&!rme||typeof rme!="string"?"rdtTimeWithoutD":nme&&nme.toLowerCase().indexOf("s")>0?"rdtTimeWithS":nme?"rdtTime":"")},lme==null?void 0:lme.getTestId()),React__default.createElement("div",{key:"dt",className:cx$1("rdtPicker",{"is-mobile-year":ome&&ame==="years"},{"is-mobile-embed":ome&&cme.embed},nme&&!rme?"rdtPickerTimeWithoutD":nme&&rme?"rdtPickerTime":rme&&!nme?"rdtPickerDate":"")},React__default.createElement(sme,{view:this.state.currentView,viewProps:cme,timeRangeHeader:ime})))},eme}(React__default.Component),Calendar=themeable(BaseDatePicker),CalendarMobile=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.mobileBody=React__default.createRef(),tme.mobileHeader=React__default.createRef();var ame=tme.props,nme=ame.startDate,rme=ame.endDate,ime=ame.defaultDate,ome=ame.minDate,lme=ame.maxDate,sme=tme.getDateRange(ome,lme,ime);return tme.state={minDate:sme.minDate,maxDate:sme.maxDate,startDate:nme,endDate:rme,showToast:!1,currentDate:sme.currentDate,isScrollToBottom:!1,dateTime:rme?[rme.hour(),rme.minute()]:[0,0],isPopupOpen:!1},tme}return eme.prototype.getDateRange=function($P,tme,ame){!hooks.isMoment($P)||!$P.isValid()&&($P=void 0),!hooks.isMoment(tme)||!tme.isValid()&&(tme=void 0);var nme=ame||hooks(),rme={minDate:nme.clone().subtract(1,"year").startOf("months"),maxDate:nme.clone().add(1,"year").endOf("months")};return $P&&tme?rme={minDate:$P,maxDate:tme}:$P&&!tme?(rme={minDate:$P,maxDate:hooks($P).add(2,"year")},nme=$P.clone()):!$P&&tme&&(rme={minDate:hooks(tme).subtract(2,"year"),maxDate:tme},nme=tme.clone()),nme.isBetween(rme.minDate,rme.maxDate,"days","[]")||(nme=rme.minDate.clone()),__assign$3(__assign$3({},rme),{currentDate:nme})},eme.prototype.componentDidMount=function(){this.initMonths()},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props,nme=ame.classPrefix;if($P.minDate!==ame.minDate||$P.maxDate!==ame.maxDate){var rme=this.state.currentDate,ime=this.getDateRange(ame.minDate,ame.maxDate,hooks(rme));this.setState({minDate:ime.minDate,maxDate:ime.maxDate,currentDate:ime.currentDate},function(){return tme.initMonths()})}($P.startDate!==ame.startDate&&ame.startDate!==this.state.startDate||$P.endDate!==ame.endDate&&ame.endDate!==this.state.endDate)&&this.setState({startDate:ame.startDate,endDate:ame.endDate},function(){return requestAnimationFrame(function(){var ome;(ome=document.querySelector(".".concat(nme,"CalendarMobile:not(.").concat(nme,"CalendarMobile-embed) .rdtRangeStart:not(.rdtNew)")))===null||ome===void 0||ome.scrollIntoView()})})},eme.prototype.componentWillUnmount=function(){this.setState({showToast:!1}),clearTimeout(this.timer)},eme.prototype.initMonths=function(){if(this.mobileBody.current){for(var $P=this.mobileHeader.current,tme=[],ame=this.mobileBody.current.children,nme=0;nme<ame.length;nme++)tme[nme]=ame[nme].offsetTop-$P.clientHeight;this.setState({monthHeights:tme});var rme=this.props.defaultDate||this.state.currentDate;this.scollToDate(rme?hooks(rme):hooks())}},eme.prototype.scollToDate=function($P){var tme=this.props.showViewMode,ame=this.state.minDate,nme=$P.diff(ame,tme),rme=this.mobileBody.current.children[nme];if(rme){var ime=this.mobileHeader.current;this.mobileBody.current.scrollBy(0,rme.offsetTop-this.mobileBody.current.scrollTop-ime.clientHeight)}},eme.prototype.onMobileBodyScroll=function($P){var tme,ame,nme=this.props.showViewMode,rme=this.state.monthHeights,ime=(tme=this.state.minDate)===null||tme===void 0?void 0:tme.clone();if(!(!(!((ame=this.mobileBody)===null||ame===void 0)&&ame.current)||!rme||!ime)){var ome=this.mobileBody.current.scrollTop,lme=this.mobileBody.current.clientHeight,sme=this.mobileBody.current.scrollHeight,cme=0;for(cme;cme<rme.length&&!(ome<rme[cme]);cme++);cme--,cme<0&&(cme=0);var dme=ime.add(cme,nme);this.setState({currentDate:dme,isScrollToBottom:ome+lme===sme})}},eme.prototype.scrollPreYear=function(){if(this.state.currentDate){var $P=this.state,tme=$P.currentDate,ame=$P.minDate;tme=tme.clone().subtract(1,"years"),ame&&tme.isBefore(ame)&&(tme=ame),this.setState({currentDate:tme}),this.scollToDate(tme)}},eme.prototype.scrollAfterYear=function(){if(this.state.currentDate){var $P=this.state,tme=$P.currentDate,ame=$P.maxDate;tme=tme.clone().add(1,"years"),ame&&tme.isAfter(ame)&&(tme=ame),this.setState({currentDate:tme}),this.scollToDate(tme)}},eme.prototype.getDaysOfWeek=function(){var $P=hooks().localeData(),tme=$P.weekdaysMin(),ame=$P.firstDayOfWeek(),nme=[],rme=0;return tme.forEach(function(ime){nme[(7+rme++-ame)%7]=ime}),nme},eme.prototype.handleCalendarClick=function($P){var tme=this;$P&&(this.setState({showToast:!0}),this.timer=setTimeout(function(){tme.setState({showToast:!1})},2e3))},eme.prototype.getRenderProps=function($P,tme){var ame=this.state,nme=ame.startDate,rme=ame.endDate,ime=this.props,ome=ime.translate,lme=ime.viewMode,sme=ime.isDatePicker,cme=lme==="time"?"hours":lme||"day",dme="";nme&&rme&&tme.isBetween(nme,rme,cme,"()")?$P.className+=" rdtBetween":nme&&rme&&nme.isSame(rme,cme)&&tme.isSame(nme,cme)?($P.className+=" rdtRangeStart",dme=ome("Calendar.beginAndEnd")):nme&&tme.isSame(nme,cme)?($P.className+=" rdtRangeStart",dme=ome("Calendar.begin"),rme&&($P.className+=" rdtRangeHasEnd")):rme&&tme.isSame(rme,cme)&&($P.className+=" rdtRangeEnd",dme=ome("Calendar.end")),cme==="day"&&tme.date()===1&&tme.day()===1&&($P.className+=" rdtOldNone"),sme&&(dme="");var ume=$P.className.indexOf("rdtDisabled")>-1;return{props:$P,footerText:dme,rdtDisabled:ume}},eme.prototype.handleTimeChange=function($P){var tme=this;if($P){var ame=this.props.onChange,nme=this.state,rme=nme.startDate,ime=nme.endDate;if(rme){var ome={dateTime:$P,startDate:ime?rme:rme==null?void 0:rme.clone().set({hour:$P[0],minute:$P[1],second:$P[2]||0}),endDate:ime&&(ime==null?void 0:ime.clone().set({hour:$P[0],minute:$P[1],second:$P[2]||0}))};this.setState(ome,function(){ame&&ame(tme.state)})}}},eme.prototype.checkIsValidDate=function($P){var tme=this.state,ame=tme.startDate,nme=tme.endDate,rme=tme.minDate,ime=tme.maxDate,ome=this.props,lme=ome.minDuration,sme=ome.maxDuration,cme=ome.viewMode,dme=cme==="time"?"hours":cme||"day";if(rme&&$P.isBefore(rme,dme))return!1;if(ime&&$P.isAfter(ime,dme))return!1;if(ame&&!nme){if(lme&&$P.isBefore(ame.clone().add(lme))&&$P.isSameOrAfter(ame))return!1;if(sme&&$P.isAfter(ame.clone().add(sme)))return!1}return!0},eme.prototype.renderMobileDay=function($P,tme){var ame=this,nme=this.props.classnames,rme=this.getRenderProps($P,tme);return React__default.createElement("td",__assign$3({},rme.props),React__default.createElement("div",{className:"calendar-wrap",onClick:function(){return ame.handleCalendarClick(rme.rdtDisabled)}},tme.date(),React__default.createElement("div",{className:nme("CalendarMobile-range-text")},rme.footerText)))},eme.prototype.renderMonth=function($P,tme,ame){var nme=this,rme=this.props.classnames,ime=hooks().year(ame).month(tme),ome=ime.localeData().monthsShort(ime.month(tme)),lme=3,sme=ome.substring(0,lme),cme=this.getRenderProps($P,ime);return React__default.createElement("td",__assign$3({},cme.props),React__default.createElement("div",{className:"calendar-wrap",onClick:function(){return nme.handleCalendarClick(cme.rdtDisabled)}},sme,React__default.createElement("div",{className:rme("CalendarMobile-range-text")},cme.footerText)))},eme.prototype.renderQuarter=function($P,tme,ame){var nme=this,rme=this.props.classnames,ime=hooks().year(ame).quarter(tme),ome=this.getRenderProps($P,ime);return React__default.createElement("td",__assign$3({},$P),React__default.createElement("div",{className:"calendar-wrap",onClick:function(){return nme.handleCalendarClick(ome.rdtDisabled)}},"Q",tme,React__default.createElement("div",{className:rme("CalendarMobile-range-text")},ome.footerText)))},eme.prototype.handleMobileChange=function($P){var tme=this,ame=this.props,nme=ame.embed,rme=ame.minDuration,ime=ame.maxDuration,ome=ame.confirm,lme=ame.onChange,sme=ame.viewMode,cme=ame.isDatePicker,dme=this.state,ume=dme.startDate,fme=dme.endDate,pme=dme.dateTime,hme=dme.minDate,bme=dme.maxDate,mme=sme==="time"?"hours":sme||"day";if(hme&&$P&&$P.isBefore(hme,"second")&&($P=hme),bme&&$P&&$P.isAfter(bme,"second")&&($P=bme),!cme&&ume&&!fme&&$P.isSameOrAfter(ume)&&(!rme||$P.isSameOrAfter(ume.clone().add(rme)))&&(!ime||$P.isSameOrBefore(ume.clone().add(ime))))return this.setState({endDate:$P.clone().endOf(mme)},function(){lme&&lme(tme.state,function(){return nme&&ome&&ome(ume,fme)})});this.setState({startDate:$P.clone().startOf(mme).set({hour:pme[0],minute:pme[1],second:pme[2]||0}),endDate:void 0},function(){lme&&lme(tme.state)})},eme.prototype.renderMobileCalendarBody=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.dateFormat;tme.timeFormat;var rme=tme.inputFormat,ime=tme.displayForamt,ome=tme.locale,lme=tme.viewMode,sme=lme===void 0?"days":lme,cme=tme.close,dme=tme.defaultDate,ume=tme.showViewMode,fme=tme.isEndDate,pme=this.props.translate,hme=this.state,bme=hme.minDate,mme=hme.maxDate;if(!(!bme||!mme)){for(var vme=[],gme=bme.clone();gme.isSameOrBefore(mme);gme.add(1,ume)){var yme=gme.clone();dme&&(yme=hooks(dme).set({year:yme.get("year"),month:yme.get("month")})),vme.push(yme)}return React__default.createElement("div",{className:ame("CalendarMobile-body"),ref:this.mobileBody,onScroll:this.onMobileBodyScroll},vme.map(function(_me,$me){var Cme=ume==="months"&&_me.clone().startOf("month").day()===1?"rdtOldNone":"";return React__default.createElement("div",{className:ame("CalendarMobile-calendar-wrap",Cme),key:"calendar-wrap"+$me},ume==="months"&&React__default.createElement("div",{className:ame("CalendarMobile-calendar-mark"),key:"calendar-mark"+$me},_me.month()+1),React__default.createElement("div",{className:ame("CalendarMobile-calendar-header")},React__default.createElement("span",{className:"rdtSwitch"},_me.format(pme("dateformat.year"))),ume==="months"&&React__default.createElement("span",{className:"rdtSwitch"},_me.format(pme("MMM")))),React__default.createElement(Calendar,{className:ame("CalendarMobile-calendar",Cme),viewDate:_me,value:_me,onChange:$P.handleMobileChange,requiredConfirm:!1,dateFormat:nme,displayForamt:ime||rme,timeFormat:"",isValidDate:$P.checkIsValidDate,viewMode:sme,input:!1,onClose:cme,renderDay:$P.renderMobileDay,renderMonth:$P.renderMonth,renderQuarter:$P.renderQuarter,locale:ome,hideHeader:!0,updateOn:sme,key:"calendar"+$me,isEndDate:fme}))}))}},eme.prototype.renderMobileTimePicker=function(){var $P=this.props,tme=$P.classnames,ame=$P.timeFormat,nme=$P.locale,rme=$P.close,ime=$P.timeConstraints,ome=$P.defaultDate,lme=$P.isDatePicker,sme=$P.isEndDate,cme=this.props.translate,dme=this.state,ume=dme.startDate,fme=dme.endDate,pme=dme.dateTime;return React__default.createElement("div",{className:tme("CalendarMobile-time")},React__default.createElement("div",{className:tme("CalendarMobile-time-title")},cme(lme?"Date.titleTime":ume&&fme?"Calendar.endPick":"Calendar.startPick")),React__default.createElement(Calendar,{className:tme("CalendarMobile-time-calendar"),value:ome,onChange:this.handleTimeChange,requiredConfirm:!1,timeFormat:ame,viewMode:"time",input:!1,onClose:rme,locale:nme,mobileUI:!0,showToolbar:!1,viewDate:hooks().set({hour:pme[0],minute:pme[1],second:pme[2]||0}),timeConstraints:ime,isValidDate:this.checkIsValidDate,isEndDate:sme}))},eme.prototype.openDatePicker=function(){this.setState({isPopupOpen:!0})},eme.prototype.closePopup=function(){this.setState({isPopupOpen:!1})},eme.prototype.handleDateChange=function($P){this.setState({currentDate:$P}),this.scollToDate($P),this.closePopup()},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.classnames,nme=$P.embed,rme=$P.close,ime=$P.confirm,ome=$P.footerExtra,lme=$P.timeFormat,sme=$P.showViewMode,cme=$P.isDatePicker,dme=$P.locale,ume=$P.popOverContainer,fme=$P.timeConstraints,pme=this.props.translate,hme=this.state,bme=hme.startDate,mme=hme.endDate,vme=hme.currentDate,gme=hme.showToast,yme=hme.isScrollToBottom,_me=hme.minDate,$me=hme.maxDate,Cme=hme.isPopupOpen,Sme=vme?vme.format(pme("Calendar.".concat(sme==="months"?"yearmonth":"year"))):hooks().format(pme("Calendar.".concat(sme==="months"?"yearmonth":"year"))),Eme=React__default.createElement("div",{className:ame("CalendarMobile-header"),ref:this.mobileHeader},React__default.createElement("div",{className:ame("CalendarMobile-subtitle")},React__default.createElement("span",{className:"subtitle-text"},vme&&vme.isSameOrBefore(_me,sme)?null:React__default.createElement("a",{className:"rdtPrev",onClick:this.scrollPreYear},"‹"),React__default.createElement("span",{onClick:this.openDatePicker},Sme),vme&&vme.isSameOrAfter($me,sme)||yme?null:React__default.createElement("a",{className:"rdtNext",onClick:this.scrollAfterYear},"›"))),sme==="months"?React__default.createElement("div",{className:ame("CalendarMobile-weekdays")},this.getDaysOfWeek().map(function(Tme,Ome){return React__default.createElement("span",{key:Tme+Ome,className:"weekday"},Tme)})):null),xme=React__default.createElement("div",{className:ame("CalendarMobile-footer")},lme&&bme&&this.renderMobileTimePicker(),React__default.createElement("div",{className:ame("CalendarMobile-footer-toolbar")},React__default.createElement("div",{className:ame("CalendarMobile-footer-ranges")},ome),ime&&!nme&&React__default.createElement("a",{className:ame("Button","Button--primary","date-range-confirm",{"is-disabled":!bme||!(mme||cme)}),onClick:function(){ime(bme,mme),rme&&rme()}},pme("confirm"))));return React__default.createElement("div",{className:ame("CalendarMobile",nme?"CalendarMobile-embed":"",tme)},React__default.createElement("div",{className:ame("CalendarMobile-wrap")},Eme,this.renderMobileCalendarBody(),xme),gme?React__default.createElement("div",{className:ame("CalendarMobile-toast")},pme("Calendar.toast")):null,React__default.createElement(PopUp$1,{className:ame("DatePicker-popup DatePicker-mobile"),container:ume,isShow:Cme,showClose:!1,onHide:this.closePopup},React__default.createElement(Calendar,{value:vme,onChange:this.handleDateChange,requiredConfirm:!1,isValidDate:this.checkIsValidDate,viewMode:"months",timeConstraints:fme,input:!1,onClose:this.closePopup,locale:dme,minDate:_me,maxDate:$me,mobileUI:!0})))},eme.defaultProps={showViewMode:"months"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onMobileBodyScroll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"scrollPreYear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"scrollAfterYear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleCalendarClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleTimeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"checkIsValidDate",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderMobileDay",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderMonth",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderQuarter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMobileChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderMobileCalendarBody",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderMobileTimePicker",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"openDatePicker",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closePopup",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDateChange",null),eme}(React__default.Component),CalendarMobile$1=themeable(localeable(CalendarMobile)),InputInner=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.isOnComposition=!1,$P.state={value:$P.props.value},$P}return eme.prototype.componentDidUpdate=function($P){var tme=this.props;$P.value!==tme.value&&this.setState({value:tme.value})},eme.prototype.handleComposition=function($P){this.isOnComposition=$P.type!=="compositionend",this.isOnComposition||this.handleChange($P)},eme.prototype.handleChange=function($P){var tme=this.props.onChange,ame=$P.currentTarget.value;this.isOnComposition||tme&&tme($P),this.setState({value:ame})},eme.prototype.handleKeyDown=function($P){var tme=this.props.onKeyDown;this.isOnComposition||tme==null||tme($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.forwardedRef,ame=$P.testIdBuilder,nme=__rest$14($P,["forwardedRef","testIdBuilder"]);return React__default.createElement("input",__assign$3({type:"text"},nme,{value:this.state.value,ref:tme,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onCompositionStart:this.handleComposition,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleComposition},ame==null?void 0:ame.getTestId()))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleComposition",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyDown",null),eme}(React__default.Component),Input=React__default.forwardRef(function(x_,eme){return React__default.createElement(InputInner,__assign$3({},x_,{forwardedRef:eme}))}),availableShortcuts$1={now:{label:"Date.now",date:function(x_){return x_}},today:{label:"Date.today",date:function(x_){return x_.startOf("day")}},yesterday:{label:"Date.yesterday",date:function(x_){return x_.add(-1,"days").startOf("day")}},thisweek:{label:"Date.monday",date:function(x_){return x_.startOf("week").startOf("day")}},thismonth:{label:"Date.startOfMonth",date:function(x_){return x_.startOf("month")}},prevmonth:{label:"Date.startOfLastMonth",date:function(x_){return x_.startOf("month").add(-1,"month")}},prevquarter:{label:"Date.startOfLastQuarter",date:function(x_){return x_.startOf("quarter").add(-1,"quarter")}},thisquarter:{label:"Date.startOfQuarter",date:function(x_){return x_.startOf("quarter")}},tomorrow:{label:"Date.tomorrow",date:function(x_){return x_.add(1,"days").startOf("day")}},endofthisweek:{label:"Date.endOfWeek",date:function(x_){return x_.endOf("week")}},endofthismonth:{label:"Date.endOfMonth",date:function(x_){return x_.endOf("month")}},endoflastmonth:{label:"Date.endOfLastMonth",date:function(x_){return x_.add(-1,"month").endOf("month")}}},advancedShortcuts=[{regexp:/^(\d+)hoursago$/,resolve:function(x_,eme,$P){return{label:x_("Date.hoursago",{hours:$P}),date:function(tme){return tme.subtract($P,"hours")}}}},{regexp:/^(\d+)hourslater$/,resolve:function(x_,eme,$P){return{label:x_("Date.hourslater",{hours:$P}),date:function(tme){return tme.add($P,"hours")}}}},{regexp:/^(\d+)daysago$/,resolve:function(x_,eme,$P){return{label:x_("Date.daysago",{days:$P}),date:function(tme){return tme.subtract($P,"days")}}}},{regexp:/^(\d+)dayslater$/,resolve:function(x_,eme,$P){return{label:x_("Date.dayslater",{days:$P}),date:function(tme){return tme.add($P,"days")}}}},{regexp:/^(\d+)weeksago$/,resolve:function(x_,eme,$P){return{label:x_("Date.weeksago",{weeks:$P}),date:function(tme){return tme.subtract($P,"weeks")}}}},{regexp:/^(\d+)weekslater$/,resolve:function(x_,eme,$P){return{label:x_("Date.weekslater",{weeks:$P}),date:function(tme){return tme.add($P,"weeks")}}}},{regexp:/^(\d+)monthsago$/,resolve:function(x_,eme,$P){return{label:x_("Date.monthsago",{months:$P}),date:function(tme){return tme.subtract($P,"months")}}}},{regexp:/^(\d+)monthslater$/,resolve:function(x_,eme,$P){return{label:x_("Date.monthslater",{months:$P}),date:function(tme){return tme.add($P,"months")}}}},{regexp:/^(\d+)quartersago$/,resolve:function(x_,eme,$P){return{label:x_("Date.quartersago",{quarters:$P}),date:function(tme){return tme.subtract($P,"quarters")}}}},{regexp:/^(\d+)quarterslater$/,resolve:function(x_,eme,$P){return{label:x_("Date.quarterslater",{quarters:$P}),date:function(tme){return tme.add($P,"quarters")}}}}],dateFormats$1={Y:{format:"YYYY"},Q:{format:"YYYY [Q]Q"},M:{format:"YYYY-MM"},D:{format:"YYYY-MM-DD"}},timeFormats$1={h:{format:"HH"},H:{format:"HH"},m:{format:"mm"},s:{format:"ss"},S:{format:"ss"}},DatePicker=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame;tme=x_.call(this,$P)||this,tme.domRef=function(hme){tme.dom=hme},tme.inputRef=React__default.createRef(),tme.handleChange=tme.handleChange.bind(tme),tme.selectShortcut=tme.selectShortcut.bind(tme),tme.checkIsValidDate=tme.checkIsValidDate.bind(tme),tme.open=tme.open.bind(tme),tme.close=tme.close.bind(tme),tme.handleFocus=tme.handleFocus.bind(tme),tme.handleBlur=tme.handleBlur.bind(tme),tme.clearValue=tme.clearValue.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleKeyPress=tme.handleKeyPress.bind(tme),tme.getParent=tme.getParent.bind(tme),tme.getTarget=tme.getTarget.bind(tme),tme.handlePopOverClick=tme.handlePopOverClick.bind(tme),tme.renderShortCuts=tme.renderShortCuts.bind(tme),tme.inputChange=tme.inputChange.bind(tme),tme.onInputBlur=tme.onInputBlur.bind(tme);var nme=tme.props,rme=nme.value,ime=nme.format,ome=nme.valueFormat,lme=nme.displayFormat,sme=nme.inputFormat,cme=nme.dateFormat,dme=nme.timeFormat,ume=cme??"",fme=dme??"",pme=[];return!cme&&Object.keys(dateFormats$1).forEach(function(hme){var bme;!((bme=lme||sme)===null||bme===void 0)&&bme.includes(hme)&&(ume=dateFormats$1[hme].format)}),!dme&&Object.keys(timeFormats$1).forEach(function(hme){var bme;!((bme=lme||sme)===null||bme===void 0)&&bme.includes(hme)&&pme.push(timeFormats$1[hme].format)}),fme=pme.length?pme.join(":"):fme,tme.state={isOpened:!1,isFocused:!1,value:normalizeDate$1(rme,ome||ime),inputValue:((ame=normalizeDate$1(rme,ome||ime))===null||ame===void 0?void 0:ame.format(lme||sme))||"",curTimeFormat:fme,curDateFormat:ume,isModified:!1},tme}return eme.prototype.componentDidMount=function(){var $P,tme;(tme=($P=this.props)===null||$P===void 0?void 0:$P.onRef)===null||tme===void 0||tme.call($P,this);var ame=this.props,nme=ame.value,rme=ame.format,ime=ame.valueFormat,ome=ame.inputFormat,lme=ame.displayFormat,sme=ame.dateFormat,cme=ame.timeFormat;if(nme){var dme=normalizeDate$1(nme,ime||rme);this.inputValueCache=(dme==null?void 0:dme.format(lme||ome))||""}var ume=sme??"",fme=cme??"",pme=[];!sme&&Object.keys(dateFormats$1).forEach(function(hme){var bme;!((bme=lme||ome)===null||bme===void 0)&&bme.includes(hme)&&(ume=dateFormats$1[hme].format)}),!cme&&Object.keys(timeFormats$1).forEach(function(hme){var bme;!((bme=lme||ome)===null||bme===void 0)&&bme.includes(hme)&&pme.push(timeFormats$1[hme].format)}),fme=pme.length?pme.join(":"):fme,this.setState({curDateFormat:ume,curTimeFormat:fme})},eme.prototype.componentDidUpdate=function($P){var tme,ame=this.props,nme=$P.value;if(nme!==ame.value){var rme={value:normalizeDate$1(ame.value,ame.valueFormat||ame.format,{utc:ame.utc})};rme.inputValue=((tme=rme.value)===null||tme===void 0?void 0:tme.format(this.props.displayFormat||this.props.inputFormat))||"",this.inputValueCache=rme.inputValue,this.setState(rme)}},eme.prototype.isConfirmMode=function(){var $P=this.props,tme=$P.closeOnSelect,ame=$P.embed,nme=$P.mobileUI,rme=this.state.curTimeFormat;return tme===!1&&!!rme&&!ame&&!nme},eme.prototype.focus=function(){this.dom&&this.dom.focus()},eme.prototype.handleFocus=function($P){this.setState({isFocused:!0});var tme=this.props.onFocus;tme&&tme($P)},eme.prototype.handleBlur=function($P){this.setState({isFocused:!1});var tme=this.props.onBlur;tme&&tme($P)},eme.prototype.handleKeyPress=function($P){$P.key===" "&&(this.handleClick(),$P.preventDefault())},eme.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},eme.prototype.handlePopOverClick=function($P){$P.stopPropagation(),$P.preventDefault()},eme.prototype.open=function($P){if(!this.props.disabled){this.setState({isOpened:!0},$P);var tme=this.inputRef.current;tme&&tme.focus()}},eme.prototype.close=function(){var $P,tme=this.isConfirmMode();if(tme){var ame=this.props,nme=ame.value,rme=ame.valueFormat,ime=ame.format,ome=ame.displayFormat,lme=ame.inputFormat;this.setState({value:normalizeDate$1(nme,rme||ime),inputValue:(($P=normalizeDate$1(nme,rme||ime))===null||$P===void 0?void 0:$P.format(ome||lme))||""})}this.setState({isOpened:!1,isModified:!1})},eme.prototype.clearValue=function($P){$P.preventDefault(),$P.stopPropagation();var tme=this.props.onChange;tme(""),this.setState({inputValue:"",isModified:!1})},eme.prototype.clear=function(){var $P=this.props.onChange;$P(""),this.setState({inputValue:"",isModified:!1})},eme.prototype.reset=function($P){var tme;if($P){var ame=this.props,nme=ame.format,rme=ame.valueFormat,ime=ame.inputFormat,ome=ame.displayFormat,lme=ame.onChange;lme($P),this.setState({inputValue:(tme=normalizeDate$1($P,rme||nme))===null||tme===void 0?void 0:tme.format(ome||ime||""),isModified:!1})}},eme.prototype.handleConfirm=function(){var $P=this.props,tme=$P.onChange,ame=$P.format,nme=$P.valueFormat,rme=$P.minDate,ime=$P.maxDate,ome=$P.inputFormat,lme=$P.displayFormat,sme=$P.utc,cme=this.state.value,dme=this.isConfirmMode();!dme||!cme||(rme&&cme&&cme.isBefore(rme,"second")?cme=rme:ime&&cme&&cme.isAfter(ime,"second")&&(cme=ime),tme(sme?hooks.utc(cme).format(nme||ame):cme.format(nme||ame)),this.setState({inputValue:sme?hooks.utc(cme).format(lme||ome):cme.format(lme||ome),isOpened:!1,isModified:!0}))},eme.prototype.handleChange=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.format,ime=ame.valueFormat,ome=ame.minDate,lme=ame.maxDate,sme=ame.inputFormat,cme=ame.displayFormat,dme=ame.closeOnSelect,ume=ame.utc;ame.value;var fme=this.state,pme=fme.curDateFormat,hme=fme.curTimeFormat;fme.isModified;var bme=this.isConfirmMode();if(hooks.isMoment($P)){ome&&$P&&$P.isBefore(ome,"second")?$P=ome:lme&&$P&&$P.isAfter(lme,"second")&&($P=lme);var mme=ume?hooks.utc($P).format(ime||rme):$P.format(ime||rme),vme=$P.format(cme||sme);bme?(this.setState({value:$P,inputValue:vme}),this.inputValueCache=vme):(nme(mme),dme&&pme&&!hme&&this.close(),this.setState({inputValue:vme})),this.setState({isModified:!0})}},eme.prototype.inputChange=function($P){var tme=this.props,ame=tme.onChange,nme=tme.inputFormat,rme=tme.format,ime=tme.displayFormat,ome=tme.valueFormat,lme=tme.utc,sme=tme.minDate,cme=tme.maxDate,dme=$P.currentTarget.value;if(this.setState({inputValue:dme}),dme==="")ame("");else{var ume=new RegExp((nme||ime).replace(/[ymdhs]/gi,"\\d").replace(/-/gi,"\\-"));if(ume.test(dme)){var fme=hooks(dme,ime||nme),pme=lme?hooks.utc(fme).format(ome||rme):fme.format(ome||rme),hme=sme!=null&&sme.isValid()?fme.isSameOrAfter(sme):!0,bme=cme!=null&&cme.isValid()?fme.isSameOrBefore(cme):!0;!pme.startsWith("-")&&hme&&bme&&ame(pme)}}},eme.prototype.onInputBlur=function(){this.setState({inputValue:this.inputValueCache})},eme.prototype.selectShortcut=function($P){var tme=this.props,ame=tme.closeOnSelect,nme=tme.minDateRaw,rme=tme.maxDateRaw,ime=tme.data,ome=tme.format,lme=tme.valueFormat,sme=hooks(),cme=nme?filterDate(nme,ime,lme||ome):void 0,dme=rme?filterDate(rme,ime,lme||ome):void 0,ume=$P.date(sme.clone());cme&&hooks.isMoment(cme)&&(cme!=null&&cme.isValid())&&(ume=hooks.max(ume,cme)),dme&&hooks.isMoment(dme)&&(dme!=null&&dme.isValid())&&(ume=hooks.min(dme,ume)),this.handleChange(ume),ame&&this.close()},eme.prototype.checkIsValidDate=function($P){var tme=this.props,ame=tme.minDate,nme=tme.maxDate,rme=tme.disabledDate;return ame&&$P.isBefore(ame,"day")||nme&&$P.isAfter(nme,"day")?!1:typeof rme=="function"?!rme($P):!0},eme.prototype.getTarget=function(){return this.dom},eme.prototype.getParent=function(){return this.dom},eme.prototype.getAvailableShortcuts=function($P){if(availableShortcuts$1[$P])return availableShortcuts$1[$P];for(var tme=this.props.translate,ame=0,nme=advancedShortcuts.length;ame<nme;ame++){var rme=advancedShortcuts[ame],ime=rme.regexp.exec($P);if(ime)return rme.resolve.apply(rme,__spreadArray([tme],__read$3(ime),!1))}return null},eme.prototype.renderShortCuts=function($P){var tme=this;if(!$P)return null;var ame=this.props;ame.classPrefix;var nme=ame.classnames,rme=ame.translate,ime=ame.format,ome=ame.valueFormat,lme=ame.data,sme;return typeof $P=="string"?sme=$P.split(","):sme=$P,React__default.createElement("ul",{className:nme("DatePicker-shortcuts")},sme.map(function(cme,dme){if(!cme)return null;var ume={};if(typeof cme=="string")ume=tme.getAvailableShortcuts(cme),ume.key=cme;else if(cme.date){var fme=__assign$3({},cme);ume=__assign$3(__assign$3({},cme),{date:function(){var pme=isExpression(fme.date)?hooks(FormulaExec.formula(fme.date,lme),ome||ime):fme.date;return pme&&hooks.isMoment(pme)&&(pme!=null&&pme.isValid())?pme:cme.date}})}return React__default.createElement("li",{className:nme("DatePicker-shortcut"),onClick:function(){return tme.selectShortcut(ume)},key:dme},React__default.createElement("a",null,rme(ume.label)))}))},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.classPrefix,nme=tme.classnames,rme=tme.className,ime=tme.popoverClassName,ome=tme.value,lme=tme.placeholder,sme=tme.disabled,cme=tme.inputFormat,dme=tme.displayFormat;tme.dateFormat,tme.timeFormat;var ume=tme.viewMode,fme=tme.timeConstraints,pme=tme.popOverContainer,hme=tme.popOverContainerSelector,bme=tme.clearable,mme=tme.shortcuts;tme.utc;var vme=tme.isEndDate,gme=tme.overlayPlacement,yme=tme.locale,_me=tme.format,$me=tme.valueFormat,Cme=tme.borderMode,Sme=tme.embed,Eme=tme.minDate,xme=tme.mobileUI,Tme=tme.maxDate,Ome=tme.schedules,Rme=tme.largeMode,Nme=tme.scheduleClassNames,Ime=tme.todayActiveStyle,Pme=tme.onScheduleClick,Mme=tme.mobileCalendarMode,kme=tme.label,Bme=tme.env,Dme=tme.testIdBuilder,jme=tme.onClick,Vme=tme.onMouseEnter,Wme=tme.onMouseLeave,Lme=tme.inputForbid;tme.closeOnSelect;var zme=this.props.translate,Ume=this.state,Gme=Ume.curTimeFormat,Jme=Ume.curDateFormat,Yme=Ume.isOpened,Qme=this.isConfirmMode(),Xme=this.state.value,Kme=!1;if(Qme){var Zme=normalizeDate$1(ome,$me||_me);Kme=Xme&&Zme?hooks(Xme).isSame(Zme,"second"):Xme===Zme}var nbe=React__default.createElement(CalendarMobile$1,{isDatePicker:!0,timeFormat:Gme,displayForamt:dme||cme,startDate:Xme,defaultDate:Xme,minDate:Eme,maxDate:Tme,dateFormat:Jme,embed:Sme,viewMode:ume,close:this.close,confirm:this.handleChange,footerExtra:this.renderShortCuts(mme),showViewMode:ume==="quarters"||ume==="months"?"years":"months",timeConstraints:fme,isEndDate:vme}),lbe=React__default.createElement("div",{className:"".concat(ame,"CalendarMobile-title")},kme&&typeof kme=="string"?kme:zme("Calendar.datepicker")),ibe=xme&&["days","months","quarters"].indexOf(ume)>-1;if(Sme){var abe=void 0;if(Ome&&Array.isArray(Ome)){var obe=0;abe=Ome.map(function(hbe){var ube=hbe.className;return!ube&&Nme&&(ube=Nme[obe],obe++,obe>=Nme.length&&(obe=0)),__assign$3(__assign$3({},hbe),{className:ube})})}return React__default.createElement("div",{className:nme("DateCalendar",{"is-disabled":sme,ScheduleCalendar:abe,"ScheduleCalendar-large":Rme},rme)},React__default.createElement(Calendar,{value:Xme,onChange:this.handleChange,requiredConfirm:!1,dateFormat:Jme,timeFormat:Gme,isValidDate:this.checkIsValidDate,viewMode:ume,timeConstraints:fme,input:!1,onClose:this.close,locale:yme,minDate:Eme,maxDate:Tme,schedules:abe,env:Bme,largeMode:Rme,todayActiveStyle:Ime,onScheduleClick:Pme,embed:Sme,mobileUI:xme,isEndDate:vme,onClick:jme,onMouseEnter:Vme,onMouseLeave:Wme,testIdBuilder:Dme==null?void 0:Dme.getChild("calendar")}))}return React__default.createElement("div",__assign$3({tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:nme("DatePicker",($P={"is-disabled":sme,"is-focused":!sme&&this.state.isFocused},$P["DatePicker--border".concat(ucFirst(Cme))]=Cme,$P["is-mobile"]=xme,$P),rme),ref:this.domRef,onClick:this.handleClick},Dme==null?void 0:Dme.getTestId()),React__default.createElement(Input,__assign$3({className:nme("DatePicker-input"),onChange:this.inputChange,onBlur:this.onInputBlur,ref:this.inputRef,placeholder:lme,autoComplete:"off",value:this.state.inputValue||"",disabled:sme,readOnly:xme||Lme},Dme==null?void 0:Dme.getChild("input").getTestId())),bme&&!sme&&normalizeDate$1(ome,$me||_me)?React__default.createElement("a",__assign$3({className:nme("DatePicker-clear"),onClick:this.clearValue},Dme==null?void 0:Dme.getChild("clear").getTestId()),React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,React__default.createElement("a",__assign$3({className:nme("DatePicker-toggler")},Dme==null?void 0:Dme.getChild("toggler").getTestId()),React__default.createElement(Icon$1,{icon:ume==="time"?"clock":"date",className:"icon",iconContent:ume==="time"?"DatePicker-toggler-clock":"DatePicker-toggler-date"})),!xme&&Yme?React__default.createElement(Overlay,{target:this.getTarget,container:pme||this.getParent,containerSelector:hme,rootClose:!1,placement:gme,show:!0},React__default.createElement(PopOver$1,{classPrefix:ame,className:nme("DatePicker-popover",ime),onHide:this.close,overlay:!0,testIdBuilder:Dme==null?void 0:Dme.getChild("popover"),onClick:this.handlePopOverClick},this.renderShortCuts(mme),React__default.createElement(Calendar,{value:Xme,onChange:this.handleChange,requiredConfirm:ume==="time",dateFormat:Jme,displayForamt:dme||cme,timeFormat:Gme,isValidDate:this.checkIsValidDate,viewMode:ume,timeConstraints:fme,input:!1,onClose:this.close,locale:yme,minDate:Eme,maxDate:Tme,mobileUI:xme,isEndDate:vme,onClick:jme,onMouseEnter:Vme,onMouseLeave:Wme,testIdBuilder:Dme==null?void 0:Dme.getChild("calendar")}),Qme?React__default.createElement("div",{className:"".concat(ame,"DateRangePicker-actions")},React__default.createElement(Button$1,{size:"sm",onClick:this.close},zme("cancel")),React__default.createElement(Button$1,{level:"primary",size:"sm",disabled:Kme,className:nme("m-l-sm"),onClick:this.handleConfirm},zme("confirm"))):null)):null,xme?Mme==="calendar"&&ibe?React__default.createElement(PopUp$1,{isShow:Yme,className:nme("".concat(ame,"CalendarMobile-pop")),onHide:this.close,header:lbe},nbe):React__default.createElement(PopUp$1,{className:nme("".concat(ame,"DatePicker-popup DatePicker-mobile")),container:pme,isShow:Yme,showClose:!1,onHide:this.handleClick},React__default.createElement(Calendar,{value:Xme,onChange:this.handleChange,requiredConfirm:!1,dateFormat:Jme,displayForamt:dme||cme,timeFormat:Gme,isValidDate:this.checkIsValidDate,viewMode:ume,timeConstraints:fme,input:!1,onClose:this.close,locale:yme,minDate:Eme,maxDate:Tme,mobileUI:xme,onClick:jme,onMouseEnter:Vme,onMouseLeave:Wme,testIdBuilder:Dme==null?void 0:Dme.getChild("calendar")})):null)},eme.defaultProps={viewMode:"days",shortcuts:"",closeOnSelect:!0,overlayPlacement:"auto",scheduleClassNames:["bg-warning","bg-danger","bg-success","bg-info","bg-secondary"]},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),eme}(React__default.Component),DatePicker$1=themeable(localeable(DatePicker)),availableShortcuts={today:{label:"Date.today",startDate:function(x_){return x_.startOf("day")},endDate:function(x_){return x_}},yesterday:{label:"Date.yesterday",startDate:function(x_){return x_.add(-1,"days").startOf("day")},endDate:function(x_){return x_.add(-1,"days").endOf("day")}},tomorrow:{label:"Date.tomorrow",startDate:function(x_){return x_.add(1,"days").startOf("day")},endDate:function(x_){return x_.add(1,"days").endOf("day")}},"1daysago":{label:"DateRange.1daysago",startDate:function(x_){return x_.add(-1,"days")},endDate:function(x_){return x_}},"1dayago":{label:"DateRange.1daysago",startDate:function(x_){return x_.add(-1,"days")},endDate:function(x_){return x_}},"7daysago":{label:"DateRange.7daysago",startDate:function(x_){return x_.add(-7,"days").startOf("day")},endDate:function(x_){return x_.add(-1,"days").endOf("day")}},"30daysago":{label:"DateRange.30daysago",startDate:function(x_){return x_.add(-30,"days").startOf("day")},endDate:function(x_){return x_.add(-1,"days").endOf("day")}},"90daysago":{label:"DateRange.90daysago",startDate:function(x_){return x_.add(-90,"days").startOf("day")},endDate:function(x_){return x_.add(-1,"days").endOf("day")}},prevweek:{label:"DateRange.lastWeek",startDate:function(x_){return x_.startOf("week").add(-1,"weeks")},endDate:function(x_){return x_.startOf("week").add(-1,"days").endOf("day")}},thisweek:{label:"DateRange.thisWeek",startDate:function(x_){return x_.startOf("week")},endDate:function(x_){return x_.endOf("week")}},thismonth:{label:"DateRange.thisMonth",startDate:function(x_){return x_.startOf("month")},endDate:function(x_){return x_.endOf("month")}},thisquarter:{label:"DateRange.thisQuarter",startDate:function(x_){return x_.startOf("quarter")},endDate:function(x_){return x_.endOf("quarter")}},prevmonth:{label:"DateRange.lastMonth",startDate:function(x_){return x_.startOf("month").add(-1,"month")},endDate:function(x_){return x_.startOf("month").add(-1,"day").endOf("day")}},prevquarter:{label:"DateRange.lastQuarter",startDate:function(x_){return x_.startOf("quarter").add(-1,"quarter")},endDate:function(x_){return x_.startOf("quarter").add(-1,"day").endOf("day")}},thisyear:{label:"DateRange.thisYear",startDate:function(x_){return x_.startOf("year")},endDate:function(x_){return x_.endOf("year")}},prevyear:{label:"DateRange.lastYear",startDate:function(x_){return x_.startOf("year").add(-1,"year")},endDate:function(x_){return x_.endOf("year").add(-1,"year").endOf("day")}},lastYear:{label:"DateRange.lastYear",startDate:function(x_){return x_.startOf("year").add(-1,"year")},endDate:function(x_){return x_.endOf("year").add(-1,"year").endOf("day")}}},advancedRanges=[{regexp:/^(\d+)hoursago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.hoursago",{hours:$P}),startDate:function(tme){return tme.add(-$P,"hours").startOf("hour")},endDate:function(tme){return tme.add(-1,"hours").endOf("hours")}}}},{regexp:/^(\d+)hourslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.hourslater",{hours:$P}),startDate:function(tme){return tme.startOf("hour")},endDate:function(tme){return tme.add($P,"hours").endOf("hour")}}}},{regexp:/^(\d+)daysago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.daysago",{days:$P}),startDate:function(tme){return tme.add(-$P,"days").startOf("day")},endDate:function(tme){return tme.add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)dayslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.dayslater",{days:$P}),startDate:function(tme){return tme.startOf("day")},endDate:function(tme){return tme.add($P,"days").endOf("day")}}}},{regexp:/^(\d+)weeksago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.weeksago",{weeks:$P}),startDate:function(tme){return tme.startOf("week").add(-$P,"weeks")},endDate:function(tme){return tme.startOf("week").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)weekslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.weekslater",{weeks:$P}),startDate:function(tme){return tme.startOf("week")},endDate:function(tme){return tme.startOf("week").add($P,"weeks").endOf("day")}}}},{regexp:/^(\d+)monthsago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.monthsago",{months:$P}),startDate:function(tme){return tme.startOf("months").add(-$P,"months")},endDate:function(tme){return tme.startOf("month").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)monthslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.monthslater",{months:$P}),startDate:function(tme){return tme.startOf("month")},endDate:function(tme){return tme.startOf("month").add($P,"months").endOf("day")}}}},{regexp:/^(\d+)quartersago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.quartersago",{quarters:$P}),startDate:function(tme){return tme.startOf("quarters").add(-$P,"quarters")},endDate:function(tme){return tme.startOf("quarter").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)quarterslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.quarterslater",{quarters:$P}),startDate:function(tme){return tme.startOf("quarter")},endDate:function(tme){return tme.startOf("quarter").add($P,"quarters").endOf("day")}}}},{regexp:/^(\d+)yearsago$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.yearsago",{years:$P}),startDate:function(tme){return tme.startOf("years").add(-$P,"years")},endDate:function(tme){return tme.startOf("year").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)yearslater$/,resolve:function(x_,eme,$P){return{label:x_("DateRange.yearslater",{years:$P}),startDate:function(tme){return tme.startOf("year")},endDate:function(tme){return tme.startOf("year").add($P,"years").endOf("day")}}}}],dateFormats={Y:{format:"YYYY"},Q:{format:"YYYY [Q]Q"},M:{format:"YYYY-MM"},D:{format:"YYYY-MM-DD"}},timeFormats={h:{format:"HH"},H:{format:"HH"},m:{format:"mm"},s:{format:"ss"},S:{format:"ss"}},DateRangePicker=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.isFirstClick=!0,tme.nextMonth=hooks().add(1,"months").startOf("day"),tme.currentMonth=hooks().startOf("day"),tme.startInputRef=React__default.createRef(),tme.endInputRef=React__default.createRef(),tme.separatorRef=React__default.createRef(),tme.calendarRef=React__default.createRef(),tme.open=tme.open.bind(tme),tme.openStart=tme.openStart.bind(tme),tme.openEnd=tme.openEnd.bind(tme),tme.close=tme.close.bind(tme),tme.startInputChange=tme.startInputChange.bind(tme),tme.endInputChange=tme.endInputChange.bind(tme),tme.handleDateChange=tme.handleDateChange.bind(tme),tme.handleStartDateChange=tme.handleStartDateChange.bind(tme),tme.handelEndDateChange=tme.handelEndDateChange.bind(tme),tme.handleTimeStartChange=tme.handleTimeStartChange.bind(tme),tme.handleTimeEndChange=tme.handleTimeEndChange.bind(tme),tme.handleFocus=tme.handleFocus.bind(tme),tme.handleBlur=tme.handleBlur.bind(tme),tme.checkStartIsValidDate=tme.checkStartIsValidDate.bind(tme),tme.checkEndIsValidDate=tme.checkEndIsValidDate.bind(tme),tme.confirm=tme.confirm.bind(tme),tme.clearValue=tme.clearValue.bind(tme),tme.dom=React__default.createRef(),tme.handleClick=tme.handleClick.bind(tme),tme.handleKeyPress=tme.handleKeyPress.bind(tme),tme.handlePopOverClick=tme.handlePopOverClick.bind(tme),tme.renderDay=tme.renderDay.bind(tme),tme.renderMonth=tme.renderMonth.bind(tme),tme.renderQuarter=tme.renderQuarter.bind(tme),tme.renderYear=tme.renderYear.bind(tme),tme.handleMobileChange=tme.handleMobileChange.bind(tme),tme.handleOutClick=tme.handleOutClick.bind(tme);var ame=tme.props,nme=ame.format,rme=ame.valueFormat,ime=ame.joinValues,ome=ame.delimiter,lme=ame.value,sme=ame.inputFormat,cme=ame.displayFormat,dme=ame.dateFormat,ume=ame.timeFormat,fme=ame.data,pme=ame.utc,hme=eme.unFormatValue(lme,rme||nme,ime,ome,fme,pme),bme=hme.startDate,mme=hme.endDate,vme=dme??"",gme=ume??"",yme=[];return!dme&&Object.keys(dateFormats).forEach(function(_me){var $me;!(($me=cme||sme)===null||$me===void 0)&&$me.includes(_me)&&(vme=dateFormats[_me].format)}),!ume&&Object.keys(timeFormats).forEach(function(_me){var $me;!(($me=cme||sme)===null||$me===void 0)&&$me.includes(_me)&&yme.push(timeFormats[_me].format)}),gme=yme.length?yme.join(":"):gme,tme.state={isOpened:!1,isFocused:!1,editState:"start",startDate:bme,endDate:mme,oldStartDate:bme,oldEndDate:mme,startInputValue:bme==null?void 0:bme.format(cme||sme),endInputValue:mme==null?void 0:mme.format(cme||sme),endDateOpenedFirst:!1,curDateFormat:vme,curTimeFormat:gme},tme}return eme.formatValue=function($P,tme,ame,nme,rme){var ime,ome;return rme===void 0&&(rme=!1),$P=[(ime=rme?hooks.utc($P.startDate):$P.startDate)===null||ime===void 0?void 0:ime.format(tme),(ome=rme?hooks.utc($P.endDate):$P.endDate)===null||ome===void 0?void 0:ome.format(tme)],ame&&($P=$P.join(nme)),$P},eme.unFormatValue=function($P,tme,ame,nme,rme,ime){if(!$P)return{startDate:void 0,endDate:void 0};ame&&typeof $P=="string"&&($P=$P.split(nme));var ome=filterDate($P==null?void 0:$P[0],rme,tme,ime),lme=filterDate($P==null?void 0:$P[1],rme,tme,ime);return{startDate:$P[0]&&ome.isValid()?ome:void 0,endDate:$P[1]&&lme.isValid()?lme:void 0}},eme.prototype.componentDidMount=function(){var $P,tme;document.body.addEventListener("click",this.handleOutClick,!0),(tme=($P=this.props)===null||$P===void 0?void 0:$P.onRef)===null||tme===void 0||tme.call($P,this)},eme.prototype.componentWillUnmount=function(){document.body.removeEventListener("click",this.handleOutClick,!0)},eme.prototype.handleOutClick=function($P){!$P.target||!this.dom.current||this.dom.current.contains($P.target)||!this.calendarRef.current||this.calendarRef.current.contains($P.target)||this.state.isOpened&&($P.preventDefault(),this.close())},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.value,nme=tme.format,rme=tme.valueFormat,ime=tme.joinValues,ome=tme.inputFormat,lme=tme.displayFormat,sme=tme.dateFormat,cme=tme.timeFormat,dme=tme.delimiter,ume=tme.data,fme=tme.utc;if($P.displayFormat!=lme||$P.inputFormat!=ome){var pme=sme??"",hme=cme??"",bme=[];!sme&&Object.keys(dateFormats).forEach(function(yme){var _me;!((_me=lme||ome)===null||_me===void 0)&&_me.includes(yme)&&(pme=dateFormats[yme].format)}),!cme&&Object.keys(timeFormats).forEach(function(yme){var _me;!((_me=lme||ome)===null||_me===void 0)&&_me.includes(yme)&&bme.push(timeFormats[yme].format)}),this.setState({curDateFormat:pme,curTimeFormat:bme.length?bme.join(":"):hme})}if($P.value!==ame){var mme=eme.unFormatValue(ame,rme||nme,ime,dme,ume,fme),vme=mme.startDate,gme=mme.endDate;this.setState({startDate:vme,endDate:gme,startInputValue:vme&&(vme!=null&&vme.isValid())?vme==null?void 0:vme.format(lme||ome):"",endInputValue:gme&&(gme!=null&&gme.isValid())?gme==null?void 0:gme.format(lme||ome):""})}},eme.prototype.focus=function(){!this.dom.current||this.props.disabled||this.dom.current.focus()},eme.prototype.blur=function(){!this.dom.current||this.props.disabled||this.dom.current.blur()},eme.prototype.handleFocus=function($P){this.setState({isFocused:!0});var tme=this.props.onFocus;tme&&tme($P)},eme.prototype.handleBlur=function($P){this.setState({isFocused:!1});var tme=this.props.onBlur;tme&&tme($P)},eme.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},eme.prototype.openStart=function(){this.props.disabled||this.setState({isOpened:!0,editState:"start"})},eme.prototype.openEnd=function(){this.props.disabled||this.setState({isOpened:!0,editState:"end",endDateOpenedFirst:!0})},eme.prototype.close=function($P){if($P===void 0&&($P=!1),$P)this.setState({oldStartDate:this.state.startDate,oldEndDate:this.state.endDate});else{var tme=this.props,ame=tme.value,nme=tme.format,rme=tme.valueFormat,ime=tme.joinValues,ome=tme.delimiter,lme=tme.inputFormat,sme=tme.displayFormat,cme=tme.data,dme=tme.utc,ume=eme.unFormatValue(ame,rme||nme,ime,ome,cme,dme),fme=ume.startDate,pme=ume.endDate;this.setState({startDate:fme,endDate:pme,oldStartDate:fme,oldEndDate:pme,startInputValue:fme&&hooks(fme).isValid()?fme.format(sme||lme):"",endInputValue:pme&&hooks(pme).isValid()?pme.format(sme||lme):""})}this.setState({isOpened:!1,editState:void 0,endDateOpenedFirst:!1},this.blur)},eme.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},eme.prototype.handlePopOverClick=function($P){$P.stopPropagation(),$P.preventDefault()},eme.prototype.handleKeyPress=function($P){$P.key===" "&&(this.handleClick(),$P.preventDefault())},eme.prototype.confirm=function(){var $P=this.props,tme=$P.format,ame=$P.valueFormat,nme=$P.joinValues,rme=$P.delimiter,ime=$P.utc,ome=this.state,lme=ome.startDate,sme=ome.endDate;!lme&&!sme||sme&&(lme!=null&&lme.isAfter(this.state.endDate))||(this.props.onChange(eme.formatValue({startDate:lme,endDate:sme},ame||tme,nme,rme,ime)),lme&&!sme?this.setState({editState:"end",endDateOpenedFirst:!1}):this.close(!0))},eme.prototype.filterDate=function($P,tme){tme===void 0&&(tme={type:"start"});var ame=tme||{type:"start"},nme=ame.type,rme=ame.originValue,ime=ame.timeFormat,ome=ame.subControlViewMode,lme=ame.autoInitDefaultValue,sme=$P.clone(),cme=this.props,dme=cme.transform,ume=cme.data,fme=this.state,pme=fme.startDate,hme=fme.endDate;if(lme===!0){var bme=hooks();if(!pme&&hme&&nme==="start"&&bme.isAfter(hme))return sme=hme.clone(),sme;var mme={date:sme.get("date"),hour:sme.get("hour"),minute:sme.get("minute"),second:sme.get("second"),millisecond:sme.get("millisecond")};return Object.keys(mme).forEach(function(gme){(gme==="date"&&ome==="time"||gme!=="date"&&mme[gme]===0)&&(mme[gme]=bme.get(gme))}),sme.set(mme),sme}if(ome&&ome==="time")return sme;var vme=dme&&typeof dme=="string"?str2function(dme,"value","config","props","data","moment"):dme;return rme?typeof ime=="string"&&/ss/.test(ime)?sme=sme[nme==="start"?"startOf":"endOf"]("second"):typeof ime=="string"&&/mm/.test(ime)?sme=sme[nme==="start"?"startOf":"endOf"]("minute"):typeof ime=="string"&&/HH/i.test(ime)?sme=sme[nme==="start"?"startOf":"endOf"]("hour"):typeof ime=="string"&&/Q/i.test(ime)?sme=sme[nme==="start"?"startOf":"endOf"]("quarter"):sme=sme[nme==="start"?"startOf":"endOf"]("day"):sme=sme[nme==="start"?"startOf":"endOf"]("day"),typeof vme=="function"&&(sme=vme(sme,{type:nme,originValue:rme,timeFormat:ime},this.props,ume,hooks)),sme},eme.prototype.handleDateChange=function($P,tme,ame){var nme=this.props.embed,rme=nme?this.state.editState||ame:this.state.editState;rme==="start"?this.handleStartDateChange($P):rme==="end"&&this.handelEndDateChange($P)},eme.prototype.handleStartDateChange=function($P,tme){var ame=this.props,nme=ame.minDate,rme=ame.inputFormat,ime=ame.displayFormat,ome=ame.type;ame.value;var lme=this.state,sme=lme.startDate;lme.oldStartDate;var cme=lme.endDateOpenedFirst,dme=lme.curTimeFormat;nme&&$P.isBefore(nme)&&($P=nme);var ume=this.filterDate($P,{type:"start",originValue:sme||nme,timeFormat:dme,subControlViewMode:tme,autoInitDefaultValue:!!dme&&$P&&!sme}),fme={startDate:ume,startInputValue:ume.format(ime||rme)};!cme&&(ome==="input-date-range"||ome==="input-year-range"||ome==="input-quarter-range"||ome==="input-month-range")&&(fme.editState="end"),this.setState(fme)},eme.prototype.handelEndDateChange=function($P,tme){var ame=this,nme=this.props,rme=nme.embed,ime=nme.inputFormat,ome=nme.displayFormat,lme=nme.type;nme.value;var sme=this.state;sme.startDate;var cme=sme.endDate;sme.oldEndDate;var dme=sme.endDateOpenedFirst,ume=sme.curTimeFormat;$P=this.getEndDateByDuration($P);var fme=dme?"start":"end",pme=this.filterDate($P,{type:"end",originValue:cme,timeFormat:ume,subControlViewMode:tme,autoInitDefaultValue:!!ume&&$P&&!cme});this.setState({endDate:pme,endInputValue:pme.format(ome||ime)},function(){rme&&ame.confirm()}),lme!=="input-datetime-range"&&this.setState({editState:fme})},eme.prototype.startInputChange=function($P){var tme=this.props,ame=tme.onChange,nme=tme.displayFormat,rme=tme.inputFormat;tme.utc;var ime=$P.currentTarget.value;if(this.setState({startInputValue:ime}),ime==="")ame("");else{var ome=this.getStartDateByDuration(hooks(ime,nme||rme));this.setState({startDate:ome})}},eme.prototype.endInputChange=function($P){var tme=this.props,ame=tme.onChange,nme=tme.displayFormat,rme=tme.inputFormat;tme.utc;var ime=$P.currentTarget.value;if(this.setState({endInputValue:ime}),ime==="")ame("");else{var ome=this.getEndDateByDuration(hooks(ime,nme||rme));this.setState({endDate:ome})}},eme.prototype.getEndDateByDuration=function($P){var tme=this.props,ame=tme.minDuration,nme=tme.maxDuration,rme=tme.type,ime=tme.maxDate,ome=this.state,lme=ome.startDate;return ome.endDate,ome.editState,lme&&(rme==="input-time-range"&&lme&&$P.set({year:lme.year(),month:lme.month(),date:lme.date()}),ame&&$P.isBefore(lme.clone().add(ame))&&($P=lme.clone().add(ame)),nme&&$P.isAfter(lme.clone().add(nme))&&($P=lme.clone().add(nme)),ime&&$P&&$P.isAfter(ime,"second")&&($P=ime)),$P},eme.prototype.getStartDateByDuration=function($P){var tme=this.props,ame=tme.minDuration,nme=tme.maxDuration,rme=tme.type,ime=this.state,ome=ime.endDate;return ime.editState,ome&&(rme==="input-time-range"&&ome&&$P.set({year:ome.year(),month:ome.month(),date:ome.date()}),ame&&$P.isBefore(ome.clone().subtract(ame))&&($P=ome.clone().subtract(ame)),nme&&$P.isAfter(ome.clone().subtract(nme))&&($P=ome.clone().subtract(nme))),$P},eme.prototype.handleTimeStartChange=function($P){var tme=this,ame=this.props,nme=ame.embed,rme=ame.inputFormat,ime=ame.displayFormat;ame.minDuration,ame.maxDuration;var ome=ame.minDate,lme=this.state;lme.startDate;var sme=lme.endDate;sme&&$P.set({year:sme.year(),month:sme.month(),date:sme.date()}),ome&&$P&&$P.isBefore(ome,"second")&&($P=ome),this.setState({startDate:$P,startInputValue:$P.format(ime||rme)},function(){nme&&tme.confirm()})},eme.prototype.handleTimeEndChange=function($P){var tme=this,ame=this.props,nme=ame.embed,rme=ame.inputFormat,ime=ame.displayFormat,ome=ame.minDuration,lme=ame.maxDuration,sme=ame.maxDate,cme=this.state,dme=cme.startDate;cme.endDate,dme&&$P.set({year:dme.year(),month:dme.month(),date:dme.date()}),sme&&$P&&$P.isAfter(sme,"second")&&($P=sme),dme&&ome&&$P.isBefore(dme.clone().add(ome))&&($P=dme.clone().add(ome)),dme&&lme&&$P.isAfter(dme.clone().add(lme))&&($P=dme.clone().add(lme)),this.setState({endDate:$P,endInputValue:$P.format(ime||rme)},function(){nme&&tme.confirm()})},eme.prototype.handleMobileChange=function($P,tme){this.setState({startDate:$P.startDate,endDate:$P.endDate},tme)},eme.prototype.selectShortcut=function($P){var tme=this.props,ame=tme.closeOnSelect,nme=tme.minDateRaw,rme=tme.maxDateRaw,ime=tme.format,ome=tme.valueFormat,lme=tme.data,sme=tme.mobileUI,cme=hooks(),dme=nme?filterDate(nme,lme,ome||ime):void 0,ume=rme?filterDate(rme,lme,ome||ime):void 0,fme=$P.startDate(cme.clone()),pme=$P.endDate(cme.clone());this.setState({startDate:dme&&(dme!=null&&dme.isValid())?hooks.max(fme,dme):fme,endDate:ume&&(ume!=null&&ume.isValid())?hooks.min(ume,pme):pme},ame&&!sme?this.confirm:noop$9)},eme.prototype.renderShortcuts=function($P){var tme=this;if(!$P)return null;var ame=this.props,nme=ame.classPrefix,rme=ame.format,ime=ame.valueFormat,ome=ame.data,lme=ame.translate,sme=ame.testIdBuilder,cme;typeof $P=="string"?cme=$P.split(","):cme=$P;var dme=sme==null?void 0:sme.getChild("shortcut");return React__default.createElement("ul",{className:"".concat(nme,"DateRangePicker-rangers")},cme.map(function(ume,fme){if(!ume)return null;var pme={};if(typeof ume=="string")if(availableShortcuts[ume])pme=availableShortcuts[ume],pme.key=ume;else for(var hme=0,bme=advancedRanges.length;hme<bme;hme++){var mme=advancedRanges[hme],vme=mme.regexp.exec(ume);vme&&(pme=mme.resolve.apply(ume,__spreadArray([lme],__read$3(vme),!1)),pme.key=ume)}else if(ume.startDate&&ume.endDate){var gme=__assign$3({},ume);pme=__assign$3(__assign$3({},ume),{startDate:function(){var yme=isExpression(gme.startDate)?hooks(FormulaExec.formula(gme.startDate,ome),ime||rme):typeof gme.startDate=="string"?hooks(gme.startDate,ime||rme):gme.startDate;return yme&&hooks.isMoment(yme)&&yme.isValid()?yme:ume.startDate},endDate:function(){var yme=isExpression(gme.endDate)?hooks(FormulaExec.formula(gme.endDate,ome),ime||rme):typeof gme.endDate=="string"?hooks(gme.endDate,ime||rme):gme.endDate;return yme&&hooks.isMoment(yme)&&yme.isValid()?yme:ume.endDate}})}return Object.keys(pme).length?React__default.createElement("li",{className:"".concat(nme,"DateRangePicker-ranger"),onClick:function(){return tme.selectShortcut(pme)},key:fme},React__default.createElement("a",__assign$3({},dme==null?void 0:dme.getChild(pme.key).getTestId()),lme(pme.label))):null}))},eme.prototype.clearValue=function($P){$P.preventDefault(),$P.stopPropagation();var tme=this.props.onChange;this.setState({startInputValue:"",endInputValue:""}),tme("")},eme.prototype.clear=function(){var $P=this.props.onChange;this.setState({startInputValue:"",endInputValue:""}),$P("")},eme.prototype.reset=function($P){var tme=this.props,ame=tme.onChange,nme=tme.format,rme=tme.valueFormat,ime=tme.joinValues,ome=tme.delimiter,lme=tme.inputFormat,sme=tme.displayFormat,cme=tme.data,dme=tme.utc,ume=$P??this.props.resetValue,fme=eme.unFormatValue(ume,rme||nme,ime,ome,cme,dme),pme=fme.startDate,hme=fme.endDate;ame==null||ame(ume),this.setState({startInputValue:pme==null?void 0:pme.format(sme||lme),endInputValue:hme==null?void 0:hme.format(sme||lme)})},eme.prototype.checkStartIsValidDate=function($P){var tme=this.state,ame=tme.endDate;tme.startDate;var nme=this.props,rme=nme.minDate,ime=nme.maxDate,ome=nme.minDuration,lme=nme.maxDuration,sme=nme.viewMode,cme=sme==="time"?"hours":sme||"day";return ime=ime&&ame?ime.isBefore(ame)?ime:ame:ime||ame,rme&&$P.isBefore(rme,cme)||ime&&$P.isAfter(ime,cme)||ame&&ome&&$P.isAfter(ame.clone().subtract(ome))?!1:!(ame&&lme&&$P.isBefore(ame.clone().subtract(lme)))},eme.prototype.checkEndIsValidDate=function($P){var tme=this.state.startDate,ame=this.props,nme=ame.minDate,rme=ame.maxDate,ime=ame.minDuration,ome=ame.maxDuration,lme=ame.viewMode,sme=lme==="time"?"hours":lme||"day";return nme=nme&&tme?nme.isAfter(tme)?nme:tme:nme||tme,nme&&$P.startOf("day").isBefore(nme.clone().startOf("day"),sme)||rme&&$P.isAfter(rme,sme)||tme&&ime&&$P.isBefore(tme.clone().add(ime))?!1:!(tme&&ome&&$P.isAfter(tme.clone().add(ome)))},eme.prototype.renderDay=function($P,tme){var ame,nme=this.state,rme=nme.startDate,ime=nme.endDate,ome=this.props.testIdBuilder;rme&&ime&&tme.isBetween(rme,ime,"day","[]")&&($P.className+=" rdtBetween"),rme&&ime&&$P.className.includes("rdtActive")&&($P.className=$P.className.replace("rdtActive","")),rme&&tme.isSame(rme,"day")&&($P.className+=" rdtActive rdtStart"),ime&&tme.isSame(ime,"day")&&($P.className+=" rdtActive rdtEnd");var lme=this.getDisabledElementProps(tme,"day"),sme=lme.className,cme=__rest$14(lme,["className"]);return $P.className+=sme,React__default.createElement("td",__assign$3({},omit$1($P,["todayActiveStyle"]),cme),React__default.createElement("span",__assign$3({},(ame=ome==null?void 0:ome.getChild($P.key))===null||ame===void 0?void 0:ame.getTestId()),tme.date()))},eme.prototype.renderMonth=function($P,tme,ame,nme){var rme=$P.viewDate.year(ame).month(tme),ime=this.state,ome=ime.startDate,lme=ime.endDate,sme=this.props,cme=sme.translate,dme=sme.testIdBuilder,ume=rme.format(cme("MMM")),fme=3,pme=ume.substring(0,fme);ome&&lme&&rme.isBetween(ome,lme,"month","[]")&&($P.className+=" rdtBetween"),ome&&lme&&$P.className.includes("rdtActive")&&($P.className=$P.className.replace("rdtActive","")),ome&&rme.isSame(ome,"month")&&($P.className+=" rdtActive rdtStart"),lme&&rme.isSame(lme,"month")&&($P.className+=" rdtActive rdtEnd");var hme=this.getDisabledElementProps(rme,"month"),bme=hme.className,mme=__rest$14(hme,["className"]);return $P.className+=bme,React__default.createElement("td",__assign$3({},omit$1($P,"viewDate"),mme),React__default.createElement("span",__assign$3({},dme==null?void 0:dme.getChild($P.key).getTestId()),pme))},eme.prototype.renderQuarter=function($P,tme,ame){var nme=hooks().year(ame).quarter(tme),rme=this.state,ime=rme.startDate,ome=rme.endDate,lme=this.props.testIdBuilder;ime&&ome&&nme.isBetween(ime,ome,"quarter","[]")&&($P.className+=" rdtBetween"),ime&&ome&&$P.className.includes("rdtActive")&&($P.className=$P.className.replace("rdtActive","")),ime&&nme.isSame(ime,"quarter")&&($P.className+=" rdtActive rdtStart"),ome&&nme.isSame(ome,"quarter")&&($P.className+=" rdtActive rdtEnd");var sme=this.getDisabledElementProps(nme,"quarter"),cme=sme.className,dme=__rest$14(sme,["className"]);return $P.className+=cme,React__default.createElement("td",__assign$3({},$P,dme),React__default.createElement("span",__assign$3({},lme==null?void 0:lme.getChild($P.key).getTestId()),"Q",tme))},eme.prototype.renderYear=function($P,tme){var ame=hooks().year(tme),nme=this.state,rme=nme.startDate,ime=nme.endDate,ome=this.props.testIdBuilder;rme&&ime&&ame.isBetween(rme,ime,"year","[]")&&($P.className+=" rdtBetween"),rme&&ime&&$P.className.includes("rdtActive")&&($P.className=$P.className.replace("rdtActive","")),rme&&ame.isSame(rme,"year")&&($P.className+=" rdtActive rdtStart"),ime&&ame.isSame(ime,"year")&&($P.className+=" rdtActive rdtEnd");var lme=this.getDisabledElementProps(ame,"year"),sme=lme.className,cme=__rest$14(lme,["className"]);return $P.className+=sme,React__default.createElement("td",__assign$3({},$P,cme),React__default.createElement("span",__assign$3({},ome==null?void 0:ome.getChild($P.key).getTestId()),tme))},eme.prototype.renderCalendar=function(){var $P=this,tme=this.props,ame=tme.classPrefix,nme=tme.classnames,rme=tme.inputFormat,ime=tme.displayFormat,ome=tme.ranges,lme=tme.shortcuts,sme=tme.locale,cme=tme.embed,dme=tme.type,ume=tme.viewMode,fme=ume===void 0?"days":ume,pme=tme.label,hme=tme.mobileUI,bme=tme.testIdBuilder,mme=this.props.translate,vme=this.state,gme=vme.startDate,yme=vme.endDate,_me=vme.editState,$me=vme.curDateFormat,Cme=vme.curTimeFormat,Sme=dme==="input-datetime-range",Eme=dme==="input-date-range",xme=Sme||fme==="time",Tme=xme&&_me==="start"&&!gme||xme&&_me==="end"&&!yme||gme&&(yme==null?void 0:yme.isBefore(this.state.startDate))||Eme&&(!gme||!yme||!(gme!=null&&gme.isValid())||!(yme!=null&&yme.isValid()));return React__default.createElement("div",{className:nme("".concat(ame,"DateRangePicker-wrap"),{"is-mobile":hme}),ref:this.calendarRef},hme&&!cme?React__default.createElement("div",{className:nme("PickerColumns-header")},React__default.createElement(Button$1,{className:"PickerColumns-cancel",level:"link",onClick:function(){return $P.close(!1)}},mme("cancel")),pme&&typeof pme=="string"?pme:mme("Calendar.datepicker"),React__default.createElement(Button$1,{className:"PickerColumns-confirm",level:"link",disabled:Tme||!gme||!yme,onClick:this.confirm},mme("confirm"))):null,this.renderShortcuts(ome||lme),React__default.createElement("div",{className:nme("".concat(ame,"DateRangePicker-picker-wrap"),{"is-vertical":cme})},(!xme||_me==="start"&&!cme||hme&&xme)&&React__default.createElement(Calendar,{className:"".concat(ame,"DateRangePicker-start"),value:gme,onChange:Sme?this.handleStartDateChange:fme==="time"?this.handleTimeStartChange:this.handleDateChange,requiredConfirm:!1,dateFormat:$me,displayForamt:ime||rme,timeFormat:Cme,isValidDate:this.checkStartIsValidDate,viewMode:fme,input:!1,onClose:this.close,renderDay:this.renderDay,renderMonth:this.renderMonth,renderQuarter:this.renderQuarter,renderYear:this.renderYear,locale:sme,timeRangeHeader:"开始时间",embed:cme,status:"start",testIdBuilder:bme==null?void 0:bme.getChild("calendar-start")}),(!xme||_me==="end"&&!cme||hme&&xme)&&React__default.createElement(Calendar,{className:"".concat(ame,"DateRangePicker-end"),value:yme,onChange:Sme?this.handelEndDateChange:fme==="time"?this.handleTimeEndChange:this.handleDateChange,requiredConfirm:!1,dateFormat:$me,displayForamt:ime||rme,timeFormat:Cme,viewDate:Sme?this.currentMonth:this.nextMonth,isValidDate:this.checkEndIsValidDate,viewMode:fme,input:!1,onClose:this.close,renderDay:this.renderDay,renderMonth:this.renderMonth,renderQuarter:this.renderQuarter,renderYear:this.renderYear,locale:sme,timeRangeHeader:"结束时间",embed:cme,status:"end",testIdBuilder:bme==null?void 0:bme.getChild("calendar-end")})),cme||hme?null:React__default.createElement("div",{key:"button",className:"".concat(ame,"DateRangePicker-actions")},React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.close()}},mme("cancel")),React__default.createElement(Button$1,{level:"primary",size:"sm",className:nme("m-l-sm"),disabled:Tme,onClick:this.confirm},mme("confirm"))))},eme.prototype.getDisabledElementProps=function($P,tme){var ame=this.state;ame.endDateOpenedFirst;var nme=ame.endDate,rme=ame.startDate,ime=ame.editState,ome=ime==="start"&&nme&&$P.isAfter(nme,tme),lme=ime==="end"&&rme&&!$P.isSameOrAfter(rme,tme);return ome||lme?{className:" is-disabled",onClick:void 0}:{className:""}},eme.prototype.getValidWidthValue=function($P,tme){if(!$P||!tme)return 0;var ame=parseInt(getComputedStyle$2($P,kebabCase$1(tme)),10);return isNaN(ame)?0:ame},eme.prototype.renderActiveCursor=function(){var $P,tme,ame,nme,rme=this.props.classnames,ime=this.state,ome=ime.editState,lme=ime.isFocused,sme=0,cme=0,dme=($P=this===null||this===void 0?void 0:this.dom)===null||$P===void 0?void 0:$P.current,ume=(tme=this===null||this===void 0?void 0:this.startInputRef)===null||tme===void 0?void 0:tme.current,fme=(ame=this===null||this===void 0?void 0:this.endInputRef)===null||ame===void 0?void 0:ame.current,pme=(nme=this===null||this===void 0?void 0:this.separatorRef)===null||nme===void 0?void 0:nme.current;if(dme&&ume&&fme&&pme)if(ome==="start"){var hme=this.getValidWidthValue(dme,"paddingLeft");cme=hme,sme=ume.offsetWidth}else if(ome==="end"){var bme=pme.offsetWidth+this.getValidWidthValue(dme,"paddingLeft")+this.getValidWidthValue(dme,"marginLeft")+this.getValidWidthValue(dme,"paddingRight")+this.getValidWidthValue(dme,"marginRight");cme=ume.offsetWidth+bme,sme=fme.offsetWidth}else sme=0;return React__default.createElement("div",{className:rme("DateRangePicker-activeCursor",{isFocused:lme}),style:{position:"absolute",left:cme,width:sme}})},eme.prototype.getDefaultDate=function(){var $P,tme=this.props,ame=tme.value,nme=tme.data,rme=tme.valueFormat,ime=tme.format,ome=tme.delimiter;if(ame){var lme=filterDate(Array.isArray(ame)?ame[0]||ame[1]:($P=String(ame).split(ome))===null||$P===void 0?void 0:$P[0],nme,rme||ime);return lme}},eme.prototype.render=function(){var $P,tme=this,ame=this.props,nme=ame.className,rme=ame.popoverClassName,ime=ame.classPrefix,ome=ame.classnames,lme=ame.value,sme=ame.startPlaceholder,cme=ame.endPlaceholder,dme=ame.popOverContainer,ume=ame.popOverContainerSelector,fme=ame.inputFormat,pme=ame.displayFormat;ame.joinValues,ame.delimiter;var hme=ame.clearable,bme=ame.inputForbid,mme=ame.disabled,vme=ame.embed,gme=ame.overlayPlacement,yme=ame.borderMode,_me=ame.mobileUI;ame.timeFormat;var $me=ame.minDate,Cme=ame.maxDate,Sme=ame.minDuration,Eme=ame.maxDuration;ame.dateFormat;var xme=ame.viewMode,Tme=xme===void 0?"days":xme,Ome=ame.ranges,Rme=ame.shortcuts,Nme=ame.label,Ime=ame.animation,Pme=ame.testIdBuilder,Mme=ame.locale,kme=_me&&["days","months","quarters"].indexOf(Tme)>-1,Bme=this.state,Dme=Bme.isOpened,jme=Bme.isFocused,Vme=Bme.startDate,Wme=Bme.endDate,Lme=Bme.curDateFormat,zme=Bme.curTimeFormat,Ume=this.props.translate,Gme=React__default.createElement(CalendarMobile$1,{popOverContainer:dme,timeFormat:zme,displayForamt:pme||fme,defaultDate:this.getDefaultDate(),startDate:Vme,endDate:Wme,minDate:$me,maxDate:Cme,minDuration:Sme,maxDuration:Eme,dateFormat:Lme,embed:vme,viewMode:Tme,close:this.close,confirm:this.confirm,onChange:this.handleMobileChange,footerExtra:this.renderShortcuts(Ome||Rme),locale:Mme,showViewMode:Tme==="quarters"||Tme==="months"?"years":"months"});if(vme)return React__default.createElement("div",{className:ome("".concat(ime,"DateRangeCalendar"),{"is-mobile":_me},{"is-disabled":mme},nme)},kme?Gme:this.renderCalendar());var Jme=React__default.createElement("div",{className:"".concat(ime,"CalendarMobile-title")},Nme&&typeof Nme=="string"?Nme:Ume("Calendar.datepicker")),Yme=Ime!==!1;return React__default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:ome("".concat(ime,"DateRangePicker"),($P={"is-disabled":mme,"is-focused":jme},$P["".concat(ime,"DateRangePicker--border").concat(ucFirst(yme))]=yme,$P["is-mobile"]=_me,$P),nme),ref:this.dom},React__default.createElement(Input,{className:ome("DateRangePicker-input",{isActive:!Yme&&this.state.editState==="start"&&Dme}),onChange:this.startInputChange,onClick:this.openStart,ref:this.startInputRef,placeholder:Ume(sme),autoComplete:"off",value:this.state.startInputValue||"",disabled:mme,readOnly:_me||bme,testIdBuilder:Pme==null?void 0:Pme.getChild("start")}),React__default.createElement("span",{className:ome("DateRangePicker-input-separator"),ref:this.separatorRef},React__default.createElement("span",{className:ome("DateRangePicker-input-separator-line")})),React__default.createElement(Input,{className:ome("DateRangePicker-input",{isActive:!Yme&&this.state.editState==="end"&&Dme}),onChange:this.endInputChange,onClick:this.openEnd,ref:this.endInputRef,placeholder:Ume(cme),autoComplete:"off",value:this.state.endInputValue||"",disabled:mme,readOnly:_me||bme,testIdBuilder:Pme==null?void 0:Pme.getChild("end")}),Yme?this.renderActiveCursor():null,hme&&!mme&&lme?React__default.createElement("a",{className:"".concat(ime,"DateRangePicker-clear"),onClick:this.clearValue},React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,React__default.createElement("a",{className:ome("DateRangePicker-toggler")},React__default.createElement(Icon$1,{icon:Tme==="time"?"clock":"date",className:"icon",iconContent:Tme==="time"?"DatePicker-toggler-clock":"DatePicker-toggler-date"})),Dme?_me?React__default.createElement(PopUp$1,{isShow:Dme,container:dme,className:ome("".concat(ime,"CalendarMobile-pop"),"".concat(ime,"CalendarMobile-pop--").concat(Tme)),onHide:this.close,header:Jme,showClose:!1},kme?Gme:this.renderCalendar()):React__default.createElement(Overlay,{target:function(){return tme.dom.current},onHide:this.close,container:dme||function(){return reactDomExports.findDOMNode(tme)},containerSelector:ume,rootClose:!1,placement:gme,show:!0},React__default.createElement(PopOver$1,{classPrefix:ime,className:ome("".concat(ime,"DateRangePicker-popover"),rme),onHide:this.close,onClick:this.handlePopOverClick},this.renderCalendar())):null)},eme.defaultProps={startPlaceholder:"Calendar.startPick",endPlaceholder:"Calendar.endPick",format:"X",inputFormat:"YYYY-MM-DD",joinValues:!0,clearable:!0,delimiter:",",ranges:"",shortcuts:"yesterday,7daysago,prevweek,thismonth,prevmonth,prevquarter",resetValue:"",closeOnSelect:!0,overlayPlacement:"auto",endDateOpenedFirst:!1},eme}(React__default.Component),DateRangePicker$1=themeable(localeable(DateRangePicker)),_a$6,fadeStyles$1=(_a$6={},_a$6[ENTERING]="in",_a$6[ENTERED]="in",_a$6),Drawer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.isRootClosed=!1,$P.resizer=React__default.createRef(),$P.resizeCoord=0,$P.contentRef=function(tme){return $P.contentDom=tme},$P.handleEnter=function(){if(document.body.classList.add("is-modalOpened"),window.innerWidth-document.documentElement.clientWidth>0||document.body.scrollHeight>document.body.clientHeight){var tme=getScrollbarWidth$1();tme&&(document.body.style.width="calc(100% - ".concat(tme,"px)"))}},$P.handleEntered=function(){var tme=$P.props.onEntered;document.body.addEventListener("mousedown",$P.handleRootMouseDownCapture,!0),document.body.addEventListener("mouseup",$P.handleRootMouseUpCapture,!0),document.body.addEventListener("mouseup",$P.handleRootMouseUp),tme&&tme()},$P.handleExited=function(){var tme,ame,nme=$P.props.onExited;document.activeElement&&((ame=(tme=document.activeElement)===null||tme===void 0?void 0:tme.blur)===null||ame===void 0||ame.call(tme)),document.body.removeEventListener("mouseup",$P.handleRootMouseUp),document.body.removeEventListener("mouseup",$P.handleRootMouseUpCapture,!0),document.body.removeEventListener("mousedown",$P.handleRootMouseDownCapture,!0),nme&&nme(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||(document.body.classList.remove("is-modalOpened"),document.body.style.width="")},200)},$P.modalRef=function(tme){$P.modalDom=tme,tme?(addModal$1($P),tme.classList.add("".concat($P.props.classPrefix,"Modal--").concat(current(),"th"))):removeModal($P)},$P}return eme.prototype.componentDidMount=function(){this.props.show&&this.handleEntered()},eme.prototype.componentDidUpdate=function($P){var tme=this;typeof jest<"u"&&$P.show!==this.props.show&&this.props.show&&setTimeout(function(){tme.handleEntered()},300)},eme.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited()},eme.prototype.handleRootMouseDownCapture=function($P){var tme=$P.target,ame=this.props,nme=ame.closeOnOutside,rme=ame.classPrefix,ime=ame.mobileUI,ome=$P.button===1&&window.event!==null||$P.button===0;this.isRootClosed=!!(ome&&nme&&tme&&this.modalDom&&(!ime&&!this.modalDom.contains(tme)&&!tme.closest("[role=dialog]")||tme.matches(".".concat(rme,"Drawer-overlay"))&&tme.parentElement===this.modalDom))},eme.prototype.handleRootMouseUpCapture=function($P){this.isRootClosed&&this.handleRootMouseDownCapture($P)},eme.prototype.handleRootMouseUp=function($P){var tme=this.props.onHide;this.isRootClosed&&!$P.defaultPrevented&&tme($P)},eme.prototype.getDrawerStyle=function(){var $P=this.props,tme=$P.width,ame=$P.height,nme=$P.position,rme={};return(nme==="left"||nme==="right")&&tme!==void 0?rme.width=tme:(nme==="top"||nme==="bottom")&&ame!==void 0&&(rme.height=ame),rme},eme.prototype.resizeMouseDown=function($P){var tme=this.props,ame=tme.position;tme.classPrefix;var nme=this.contentDom,rme=this.resizer.current,ime=getComputedStyle(nme).width,ome=getComputedStyle(nme).height;this.resizeCoord=ame==="left"&&$P.clientX-rme.offsetWidth-parseInt(ime.substring(0,ime.length-2))||ame==="right"&&document.body.offsetWidth-$P.clientX-rme.offsetWidth-parseInt(ime.substring(0,ime.length-2))||ame==="top"&&$P.clientY-rme.offsetHeight-parseInt(ome.substring(0,ome.length-2))||ame==="bottom"&&document.body.offsetHeight-$P.clientY-rme.offsetHeight-parseInt(ome.substring(0,ome.length-2))||0,document.body.addEventListener("mousemove",this.bindResize),document.body.addEventListener("mouseup",this.removeResize)},eme.prototype.bindResize=function($P){var tme=this.props.position,ame="calc(100% - 50px)",nme=this.contentDom,rme=nme.style,ime=tme==="left"&&$P.clientX||tme==="right"&&document.body.offsetWidth-$P.clientX||tme==="top"&&$P.clientY||tme==="bottom"&&document.body.offsetHeight-$P.clientY||0;ime=ime-this.resizeCoord+"px",(tme==="left"||tme==="right")&&(rme.maxWidth=ame,rme.width=ime),(tme==="top"||tme==="bottom")&&(rme.maxHeight=ame,rme.height=ime)},eme.prototype.removeResize=function(){document.body.removeEventListener("mousemove",this.bindResize),document.body.removeEventListener("mouseup",this.removeResize)},eme.prototype.renderResizeCtrl=function(){var $P=this.props.classnames;return React__default.createElement("div",{className:$P("Drawer-resizeCtrl"),ref:this.resizer,onMouseDown:this.resizeMouseDown},React__default.createElement("div",{className:$P("Drawer-resizeIcon")},"···"))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classPrefix,nme=tme.className,rme=tme.children,ime=tme.container,ome=tme.show,lme=tme.showCloseButton,sme=tme.position,cme=tme.size,dme=tme.onHide,ume=tme.disabled,fme=tme.overlay,pme=tme.bodyClassName,hme=tme.resizable,bme=tme.drawerClassName,mme=tme.drawerMaskClassName,vme=this.getDrawerStyle();return React__default.createElement(Portal,{container:getContainerWithFullscreen(ime)},React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,in:ome,timeout:500,onEnter:this.handleEnter,onExited:this.handleExited,onEntered:this.handleEntered},function(gme){var yme;return gme===ENTERING&&$P.contentDom.offsetWidth,React__default.createElement("div",{ref:$P.modalRef,role:"dialog",className:cx$1("amis-dialog-widget ".concat(ame,"Drawer"),(yme={},yme["".concat(ame,"Drawer--").concat(sme)]=sme,yme["".concat(ame,"Drawer--").concat(cme)]=cme,yme["".concat(ame,"Drawer--noOverlay")]=!fme,yme),nme)},fme?React__default.createElement("div",{className:cx$1("".concat(ame,"Drawer-overlay"),fadeStyles$1[gme],mme)}):null,React__default.createElement("div",{ref:$P.contentRef,style:vme,className:cx$1("".concat(ame,"Drawer-content"),pme,fadeStyles$1[gme],bme)},ome&&lme?React__default.createElement("a",{onClick:ume?void 0:dme,className:"".concat(ame,"Drawer-close")},React__default.createElement(Icon$1,{icon:"close",className:"icon",iconContent:"Drawer-close"})):null,gme===EXITED?null:rme,hme?$P.renderResizeCtrl():null))}))},eme.defaultProps={container:document.body,position:"left",size:"md",showCloseButton:!0,overlay:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseDownCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUpCapture",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRootMouseUp",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"resizeMouseDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"bindResize",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"removeResize",null),eme}(React__default.Component),Drawer$1=themeable(Drawer),PopOverContainer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isOpened:!1},$P}return eme.prototype.targetRef=function($P){this.target=$P?reactDomExports.findDOMNode($P):null},eme.prototype.handleClick=function(){this.props.disabled||this.setState({isOpened:!0})},eme.prototype.close=function(){var $P=this.props,tme=$P.onBeforeHide,ame=$P.onAfterHide;tme&&typeof tme=="function"&&(tme==null||tme()),this.setState({isOpened:!1}),ame&&typeof ame=="function"&&(ame==null||ame())},eme.prototype.getTarget=function(){return this.target||reactDomExports.findDOMNode(this)},eme.prototype.getParent=function(){var $P;return($P=this.getTarget())===null||$P===void 0?void 0:$P.parentElement},eme.prototype.onConfirm=function(){var $P,tme;(tme=($P=this.props).onConfirm)===null||tme===void 0||tme.call($P),this.close()},eme.calcOverlayWidth=function($P,tme){var ame=$P&&$P.width;if(!(!ame||!isNumber$5(tme)||tme<1)){if(typeof ame=="number"||/^\d+$/.test(ame))return toNumber$1(ame);if(/^\d+(px|%|rem|em|vw)$/.test(ame))return ame;if(/^(\+|\-)\d+(px|%|rem|em|vw)$/.test(ame))return ame.replace(/^(\+|\-)(.*)/,"calc(".concat(tme,"px $1 $2)"))}},eme.alignToPlacement=function($P){var tme=$P&&$P.align;return tme&&eme.alignPlacementMap[tme]||"auto"},eme.prototype.getOverlayStyle=function(){var $P,tme,ame=this.props,nme=ame.overlayWidth,rme=ame.overlayWidthField;return $P={},$P[rme||"minWidth"]=eme.calcOverlayWidth({width:nme},(tme=this.target)===null||tme===void 0?void 0:tme.offsetWidth)||(this.target?Math.max(this.target.offsetWidth,100):"auto"),$P},eme.prototype.render=function(){var $P=this.props,tme=$P.mobileUI,ame=$P.children,nme=$P.popOverContainer,rme=$P.popOverClassName,ime=$P.popOverRender,ome=$P.placement,lme=$P.align,sme=$P.showConfirm;$P.onConfirm;var cme=$P.disabled;return React__default.createElement(React__default.Fragment,null,ame({isOpened:this.state.isOpened&&this.props.show!==!1,onClick:this.handleClick,ref:this.targetRef,disabled:cme}),tme?React__default.createElement(PopUp$1,{isShow:this.state.isOpened&&this.props.show!==!1,container:nme,className:rme,showConfirm:sme,onHide:this.close,onConfirm:this.onConfirm},ime({onClose:this.close})):React__default.createElement(Overlay,{container:nme||this.getParent,target:this.getTarget,placement:ome||eme.alignToPlacement({align:lme}),show:this.state.isOpened&&this.props.show!==!1},React__default.createElement(PopOver$1,{overlay:!0,className:rme,style:this.getOverlayStyle(),onHide:this.close},ime({onClose:this.close}))))},eme.alignPlacementMap={left:"left-bottom-left-top",right:"right-bottom-right-top",center:"center-bottom-center-top"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"targetRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getTarget",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getParent",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onConfirm",null),eme}(React__default.Component);/**!
 * Sortable 1.15.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function ownKeys$3(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function _objectSpread2$3(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ownKeys$3(Object($P),!0).forEach(function(tme){_defineProperty$4(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ownKeys$3(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}function _typeof$3(x_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(eme){return typeof eme}:_typeof$3=function(eme){return eme&&typeof Symbol=="function"&&eme.constructor===Symbol&&eme!==Symbol.prototype?"symbol":typeof eme},_typeof$3(x_)}function _defineProperty$4(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _extends$2$(){return _extends$2$=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2$.apply(this,arguments)}function _objectWithoutPropertiesLoose$2(x_,eme){if(x_==null)return{};var $P={},tme=Object.keys(x_),ame,nme;for(nme=0;nme<tme.length;nme++)ame=tme[nme],!(eme.indexOf(ame)>=0)&&($P[ame]=x_[ame]);return $P}function _objectWithoutProperties$5(x_,eme){if(x_==null)return{};var $P=_objectWithoutPropertiesLoose$2(x_,eme),tme,ame;if(Object.getOwnPropertySymbols){var nme=Object.getOwnPropertySymbols(x_);for(ame=0;ame<nme.length;ame++)tme=nme[ame],!(eme.indexOf(tme)>=0)&&Object.prototype.propertyIsEnumerable.call(x_,tme)&&($P[tme]=x_[tme])}return $P}var version$1="1.15.0";function userAgent$1(x_){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(x_)}var IE11OrLess$1=userAgent$1(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge$1=userAgent$1(/Edge/i),FireFox$1=userAgent$1(/firefox/i),Safari$1=userAgent$1(/safari/i)&&!userAgent$1(/chrome/i)&&!userAgent$1(/android/i),IOS$1=userAgent$1(/iP(ad|od|hone)/i),ChromeForAndroid$1=userAgent$1(/chrome/i)&&userAgent$1(/android/i),captureMode$1={capture:!1,passive:!1};function on$2(x_,eme,$P){x_.addEventListener(eme,$P,!IE11OrLess$1&&captureMode$1)}function off$1(x_,eme,$P){x_.removeEventListener(eme,$P,!IE11OrLess$1&&captureMode$1)}function matches$1(x_,eme){if(eme){if(eme[0]===">"&&(eme=eme.substring(1)),x_)try{if(x_.matches)return x_.matches(eme);if(x_.msMatchesSelector)return x_.msMatchesSelector(eme);if(x_.webkitMatchesSelector)return x_.webkitMatchesSelector(eme)}catch{return!1}return!1}}function getParentOrHost$1(x_){return x_.host&&x_!==document&&x_.host.nodeType?x_.host:x_.parentNode}function closest$1(x_,eme,$P,tme){if(x_){$P=$P||document;do{if(eme!=null&&(eme[0]===">"?x_.parentNode===$P&&matches$1(x_,eme):matches$1(x_,eme))||tme&&x_===$P)return x_;if(x_===$P)break}while(x_=getParentOrHost$1(x_))}return null}var R_SPACE$1=/\s+/g;function toggleClass$1(x_,eme,$P){if(x_&&eme)if(x_.classList)x_.classList[$P?"add":"remove"](eme);else{var tme=(" "+x_.className+" ").replace(R_SPACE$1," ").replace(" "+eme+" "," ");x_.className=(tme+($P?" "+eme:"")).replace(R_SPACE$1," ")}}function css$1(x_,eme,$P){var tme=x_&&x_.style;if(tme){if($P===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$P=document.defaultView.getComputedStyle(x_,""):x_.currentStyle&&($P=x_.currentStyle),eme===void 0?$P:$P[eme];!(eme in tme)&&eme.indexOf("webkit")===-1&&(eme="-webkit-"+eme),tme[eme]=$P+(typeof $P=="string"?"":"px")}}function matrix$1(x_,eme){var $P="";if(typeof x_=="string")$P=x_;else do{var tme=css$1(x_,"transform");tme&&tme!=="none"&&($P=tme+" "+$P)}while(!eme&&(x_=x_.parentNode));var ame=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return ame&&new ame($P)}function find$1(x_,eme,$P){if(x_){var tme=x_.getElementsByTagName(eme),ame=0,nme=tme.length;if($P)for(;ame<nme;ame++)$P(tme[ame],ame);return tme}return[]}function getWindowScrollingElement$1(){var x_=document.scrollingElement;return x_||document.documentElement}function getRect$1(x_,eme,$P,tme,ame){if(!(!x_.getBoundingClientRect&&x_!==window)){var nme,rme,ime,ome,lme,sme,cme;if(x_!==window&&x_.parentNode&&x_!==getWindowScrollingElement$1()?(nme=x_.getBoundingClientRect(),rme=nme.top,ime=nme.left,ome=nme.bottom,lme=nme.right,sme=nme.height,cme=nme.width):(rme=0,ime=0,ome=window.innerHeight,lme=window.innerWidth,sme=window.innerHeight,cme=window.innerWidth),(eme||$P)&&x_!==window&&(ame=ame||x_.parentNode,!IE11OrLess$1))do if(ame&&ame.getBoundingClientRect&&(css$1(ame,"transform")!=="none"||$P&&css$1(ame,"position")!=="static")){var dme=ame.getBoundingClientRect();rme-=dme.top+parseInt(css$1(ame,"border-top-width")),ime-=dme.left+parseInt(css$1(ame,"border-left-width")),ome=rme+nme.height,lme=ime+nme.width;break}while(ame=ame.parentNode);if(tme&&x_!==window){var ume=matrix$1(ame||x_),fme=ume&&ume.a,pme=ume&&ume.d;ume&&(rme/=pme,ime/=fme,cme/=fme,sme/=pme,ome=rme+sme,lme=ime+cme)}return{top:rme,left:ime,bottom:ome,right:lme,width:cme,height:sme}}}function isScrolledPast$1(x_,eme,$P){for(var tme=getParentAutoScrollElement$1(x_,!0),ame=getRect$1(x_)[eme];tme;){var nme=getRect$1(tme)[$P],rme=void 0;if(rme=ame>=nme,!rme)return tme;if(tme===getWindowScrollingElement$1())break;tme=getParentAutoScrollElement$1(tme,!1)}return!1}function getChild$1(x_,eme,$P,tme){for(var ame=0,nme=0,rme=x_.children;nme<rme.length;){if(rme[nme].style.display!=="none"&&rme[nme]!==Sortable$1.ghost&&(tme||rme[nme]!==Sortable$1.dragged)&&closest$1(rme[nme],$P.draggable,x_,!1)){if(ame===eme)return rme[nme];ame++}nme++}return null}function lastChild$1(x_,eme){for(var $P=x_.lastElementChild;$P&&($P===Sortable$1.ghost||css$1($P,"display")==="none"||eme&&!matches$1($P,eme));)$P=$P.previousElementSibling;return $P||null}function index$9(x_,eme){var $P=0;if(!x_||!x_.parentNode)return-1;for(;x_=x_.previousElementSibling;)x_.nodeName.toUpperCase()!=="TEMPLATE"&&x_!==Sortable$1.clone&&(!eme||matches$1(x_,eme))&&$P++;return $P}function getRelativeScrollOffset$1(x_){var eme=0,$P=0,tme=getWindowScrollingElement$1();if(x_)do{var ame=matrix$1(x_),nme=ame.a,rme=ame.d;eme+=x_.scrollLeft*nme,$P+=x_.scrollTop*rme}while(x_!==tme&&(x_=x_.parentNode));return[eme,$P]}function indexOfObject$1(x_,eme){for(var $P in x_)if(x_.hasOwnProperty($P)){for(var tme in eme)if(eme.hasOwnProperty(tme)&&eme[tme]===x_[$P][tme])return Number($P)}return-1}function getParentAutoScrollElement$1(x_,eme){if(!x_||!x_.getBoundingClientRect)return getWindowScrollingElement$1();var $P=x_,tme=!1;do if($P.clientWidth<$P.scrollWidth||$P.clientHeight<$P.scrollHeight){var ame=css$1($P);if($P.clientWidth<$P.scrollWidth&&(ame.overflowX=="auto"||ame.overflowX=="scroll")||$P.clientHeight<$P.scrollHeight&&(ame.overflowY=="auto"||ame.overflowY=="scroll")){if(!$P.getBoundingClientRect||$P===document.body)return getWindowScrollingElement$1();if(tme||eme)return $P;tme=!0}}while($P=$P.parentNode);return getWindowScrollingElement$1()}function extend$2(x_,eme){if(x_&&eme)for(var $P in eme)eme.hasOwnProperty($P)&&(x_[$P]=eme[$P]);return x_}function isRectEqual$1(x_,eme){return Math.round(x_.top)===Math.round(eme.top)&&Math.round(x_.left)===Math.round(eme.left)&&Math.round(x_.height)===Math.round(eme.height)&&Math.round(x_.width)===Math.round(eme.width)}var _throttleTimeout$1;function throttle$2(x_,eme){return function(){if(!_throttleTimeout$1){var $P=arguments,tme=this;$P.length===1?x_.call(tme,$P[0]):x_.apply(tme,$P),_throttleTimeout$1=setTimeout(function(){_throttleTimeout$1=void 0},eme)}}}function cancelThrottle$1(){clearTimeout(_throttleTimeout$1),_throttleTimeout$1=void 0}function scrollBy$1(x_,eme,$P){x_.scrollLeft+=eme,x_.scrollTop+=$P}function clone$1(x_){var eme=window.Polymer,$P=window.jQuery||window.Zepto;return eme&&eme.dom?eme.dom(x_).cloneNode(!0):$P?$P(x_).clone(!0)[0]:x_.cloneNode(!0)}var expando$1="Sortable"+new Date().getTime();function AnimationStateManager$1(){var x_=[],eme;return{captureAnimationState:function(){if(x_=[],!!this.options.animation){var tme=[].slice.call(this.el.children);tme.forEach(function(ame){if(!(css$1(ame,"display")==="none"||ame===Sortable$1.ghost)){x_.push({target:ame,rect:getRect$1(ame)});var nme=_objectSpread2$3({},x_[x_.length-1].rect);if(ame.thisAnimationDuration){var rme=matrix$1(ame,!0);rme&&(nme.top-=rme.f,nme.left-=rme.e)}ame.fromRect=nme}})}},addAnimationState:function(tme){x_.push(tme)},removeAnimationState:function(tme){x_.splice(indexOfObject$1(x_,{target:tme}),1)},animateAll:function(tme){var ame=this;if(!this.options.animation){clearTimeout(eme),typeof tme=="function"&&tme();return}var nme=!1,rme=0;x_.forEach(function(ime){var ome=0,lme=ime.target,sme=lme.fromRect,cme=getRect$1(lme),dme=lme.prevFromRect,ume=lme.prevToRect,fme=ime.rect,pme=matrix$1(lme,!0);pme&&(cme.top-=pme.f,cme.left-=pme.e),lme.toRect=cme,lme.thisAnimationDuration&&isRectEqual$1(dme,cme)&&!isRectEqual$1(sme,cme)&&(fme.top-cme.top)/(fme.left-cme.left)===(sme.top-cme.top)/(sme.left-cme.left)&&(ome=calculateRealTime$1(fme,dme,ume,ame.options)),isRectEqual$1(cme,sme)||(lme.prevFromRect=sme,lme.prevToRect=cme,ome||(ome=ame.options.animation),ame.animate(lme,fme,cme,ome)),ome&&(nme=!0,rme=Math.max(rme,ome),clearTimeout(lme.animationResetTimer),lme.animationResetTimer=setTimeout(function(){lme.animationTime=0,lme.prevFromRect=null,lme.fromRect=null,lme.prevToRect=null,lme.thisAnimationDuration=null},ome),lme.thisAnimationDuration=ome)}),clearTimeout(eme),nme?eme=setTimeout(function(){typeof tme=="function"&&tme()},rme):typeof tme=="function"&&tme(),x_=[]},animate:function(tme,ame,nme,rme){if(rme){css$1(tme,"transition",""),css$1(tme,"transform","");var ime=matrix$1(this.el),ome=ime&&ime.a,lme=ime&&ime.d,sme=(ame.left-nme.left)/(ome||1),cme=(ame.top-nme.top)/(lme||1);tme.animatingX=!!sme,tme.animatingY=!!cme,css$1(tme,"transform","translate3d("+sme+"px,"+cme+"px,0)"),this.forRepaintDummy=repaint$1(tme),css$1(tme,"transition","transform "+rme+"ms"+(this.options.easing?" "+this.options.easing:"")),css$1(tme,"transform","translate3d(0,0,0)"),typeof tme.animated=="number"&&clearTimeout(tme.animated),tme.animated=setTimeout(function(){css$1(tme,"transition",""),css$1(tme,"transform",""),tme.animated=!1,tme.animatingX=!1,tme.animatingY=!1},rme)}}}}function repaint$1(x_){return x_.offsetWidth}function calculateRealTime$1(x_,eme,$P,tme){return Math.sqrt(Math.pow(eme.top-x_.top,2)+Math.pow(eme.left-x_.left,2))/Math.sqrt(Math.pow(eme.top-$P.top,2)+Math.pow(eme.left-$P.left,2))*tme.animation}var plugins$1=[],defaults$4={initializeByDefault:!0},PluginManager$1={mount:function(eme){for(var $P in defaults$4)defaults$4.hasOwnProperty($P)&&!($P in eme)&&(eme[$P]=defaults$4[$P]);plugins$1.forEach(function(tme){if(tme.pluginName===eme.pluginName)throw"Sortable: Cannot mount plugin ".concat(eme.pluginName," more than once")}),plugins$1.push(eme)},pluginEvent:function(eme,$P,tme){var ame=this;this.eventCanceled=!1,tme.cancel=function(){ame.eventCanceled=!0};var nme=eme+"Global";plugins$1.forEach(function(rme){$P[rme.pluginName]&&($P[rme.pluginName][nme]&&$P[rme.pluginName][nme](_objectSpread2$3({sortable:$P},tme)),$P.options[rme.pluginName]&&$P[rme.pluginName][eme]&&$P[rme.pluginName][eme](_objectSpread2$3({sortable:$P},tme)))})},initializePlugins:function(eme,$P,tme,ame){plugins$1.forEach(function(ime){var ome=ime.pluginName;if(!(!eme.options[ome]&&!ime.initializeByDefault)){var lme=new ime(eme,$P,eme.options);lme.sortable=eme,lme.options=eme.options,eme[ome]=lme,_extends$2$(tme,lme.defaults)}});for(var nme in eme.options)if(eme.options.hasOwnProperty(nme)){var rme=this.modifyOption(eme,nme,eme.options[nme]);typeof rme<"u"&&(eme.options[nme]=rme)}},getEventProperties:function(eme,$P){var tme={};return plugins$1.forEach(function(ame){typeof ame.eventProperties=="function"&&_extends$2$(tme,ame.eventProperties.call($P[ame.pluginName],eme))}),tme},modifyOption:function(eme,$P,tme){var ame;return plugins$1.forEach(function(nme){eme[nme.pluginName]&&nme.optionListeners&&typeof nme.optionListeners[$P]=="function"&&(ame=nme.optionListeners[$P].call(eme[nme.pluginName],tme))}),ame}};function dispatchEvent$1(x_){var eme=x_.sortable,$P=x_.rootEl,tme=x_.name,ame=x_.targetEl,nme=x_.cloneEl,rme=x_.toEl,ime=x_.fromEl,ome=x_.oldIndex,lme=x_.newIndex,sme=x_.oldDraggableIndex,cme=x_.newDraggableIndex,dme=x_.originalEvent,ume=x_.putSortable,fme=x_.extraEventProperties;if(eme=eme||$P&&$P[expando$1],!!eme){var pme,hme=eme.options,bme="on"+tme.charAt(0).toUpperCase()+tme.substr(1);window.CustomEvent&&!IE11OrLess$1&&!Edge$1?pme=new CustomEvent(tme,{bubbles:!0,cancelable:!0}):(pme=document.createEvent("Event"),pme.initEvent(tme,!0,!0)),pme.to=rme||$P,pme.from=ime||$P,pme.item=ame||$P,pme.clone=nme,pme.oldIndex=ome,pme.newIndex=lme,pme.oldDraggableIndex=sme,pme.newDraggableIndex=cme,pme.originalEvent=dme,pme.pullMode=ume?ume.lastPutMode:void 0;var mme=_objectSpread2$3(_objectSpread2$3({},fme),PluginManager$1.getEventProperties(tme,eme));for(var vme in mme)pme[vme]=mme[vme];$P&&$P.dispatchEvent(pme),hme[bme]&&hme[bme].call(eme,pme)}}var _excluded$5=["evt"],pluginEvent$1=function(eme,$P){var tme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ame=tme.evt,nme=_objectWithoutProperties$5(tme,_excluded$5);PluginManager$1.pluginEvent.bind(Sortable$1)(eme,$P,_objectSpread2$3({dragEl:dragEl$1,parentEl:parentEl$1,ghostEl:ghostEl$1,rootEl:rootEl$1,nextEl:nextEl$1,lastDownEl:lastDownEl$1,cloneEl:cloneEl$1,cloneHidden:cloneHidden$1,dragStarted:moved$1,putSortable:putSortable$1,activeSortable:Sortable$1.active,originalEvent:ame,oldIndex:oldIndex$1,oldDraggableIndex:oldDraggableIndex$1,newIndex:newIndex$1,newDraggableIndex:newDraggableIndex$1,hideGhostForTarget:_hideGhostForTarget$1,unhideGhostForTarget:_unhideGhostForTarget$1,cloneNowHidden:function(){cloneHidden$1=!0},cloneNowShown:function(){cloneHidden$1=!1},dispatchSortableEvent:function(ime){_dispatchEvent$1({sortable:$P,name:ime,originalEvent:ame})}},nme))};function _dispatchEvent$1(x_){dispatchEvent$1(_objectSpread2$3({putSortable:putSortable$1,cloneEl:cloneEl$1,targetEl:dragEl$1,rootEl:rootEl$1,oldIndex:oldIndex$1,oldDraggableIndex:oldDraggableIndex$1,newIndex:newIndex$1,newDraggableIndex:newDraggableIndex$1},x_))}var dragEl$1,parentEl$1,ghostEl$1,rootEl$1,nextEl$1,lastDownEl$1,cloneEl$1,cloneHidden$1,oldIndex$1,newIndex$1,oldDraggableIndex$1,newDraggableIndex$1,activeGroup$1,putSortable$1,awaitingDragStarted$1=!1,ignoreNextClick$1=!1,sortables$1=[],tapEvt$1,touchEvt$2,lastDx$1,lastDy$1,tapDistanceLeft$1,tapDistanceTop$1,moved$1,lastTarget$1,lastDirection$1,pastFirstInvertThresh$1=!1,isCircumstantialInvert$1=!1,targetMoveDistance$1,ghostRelativeParent$1,ghostRelativeParentInitialScroll$1=[],_silent$1=!1,savedInputChecked$1=[],documentExists$1=typeof document<"u",PositionGhostAbsolutely$1=IOS$1,CSSFloatProperty$1=Edge$1||IE11OrLess$1?"cssFloat":"float",supportDraggable$1=documentExists$1&&!ChromeForAndroid$1&&!IOS$1&&"draggable"in document.createElement("div"),supportCssPointerEvents$1=function(){if(documentExists$1){if(IE11OrLess$1)return!1;var x_=document.createElement("x");return x_.style.cssText="pointer-events:auto",x_.style.pointerEvents==="auto"}}(),_detectDirection$1=function(eme,$P){var tme=css$1(eme),ame=parseInt(tme.width)-parseInt(tme.paddingLeft)-parseInt(tme.paddingRight)-parseInt(tme.borderLeftWidth)-parseInt(tme.borderRightWidth),nme=getChild$1(eme,0,$P),rme=getChild$1(eme,1,$P),ime=nme&&css$1(nme),ome=rme&&css$1(rme),lme=ime&&parseInt(ime.marginLeft)+parseInt(ime.marginRight)+getRect$1(nme).width,sme=ome&&parseInt(ome.marginLeft)+parseInt(ome.marginRight)+getRect$1(rme).width;if(tme.display==="flex")return tme.flexDirection==="column"||tme.flexDirection==="column-reverse"?"vertical":"horizontal";if(tme.display==="grid")return tme.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(nme&&ime.float&&ime.float!=="none"){var cme=ime.float==="left"?"left":"right";return rme&&(ome.clear==="both"||ome.clear===cme)?"vertical":"horizontal"}return nme&&(ime.display==="block"||ime.display==="flex"||ime.display==="table"||ime.display==="grid"||lme>=ame&&tme[CSSFloatProperty$1]==="none"||rme&&tme[CSSFloatProperty$1]==="none"&&lme+sme>ame)?"vertical":"horizontal"},_dragElInRowColumn$1=function(eme,$P,tme){var ame=tme?eme.left:eme.top,nme=tme?eme.right:eme.bottom,rme=tme?eme.width:eme.height,ime=tme?$P.left:$P.top,ome=tme?$P.right:$P.bottom,lme=tme?$P.width:$P.height;return ame===ime||nme===ome||ame+rme/2===ime+lme/2},_detectNearestEmptySortable$1=function(eme,$P){var tme;return sortables$1.some(function(ame){var nme=ame[expando$1].options.emptyInsertThreshold;if(!(!nme||lastChild$1(ame))){var rme=getRect$1(ame),ime=eme>=rme.left-nme&&eme<=rme.right+nme,ome=$P>=rme.top-nme&&$P<=rme.bottom+nme;if(ime&&ome)return tme=ame}}),tme},_prepareGroup$1=function(eme){function $P(nme,rme){return function(ime,ome,lme,sme){var cme=ime.options.group.name&&ome.options.group.name&&ime.options.group.name===ome.options.group.name;if(nme==null&&(rme||cme))return!0;if(nme==null||nme===!1)return!1;if(rme&&nme==="clone")return nme;if(typeof nme=="function")return $P(nme(ime,ome,lme,sme),rme)(ime,ome,lme,sme);var dme=(rme?ime:ome).options.group.name;return nme===!0||typeof nme=="string"&&nme===dme||nme.join&&nme.indexOf(dme)>-1}}var tme={},ame=eme.group;(!ame||_typeof$3(ame)!="object")&&(ame={name:ame}),tme.name=ame.name,tme.checkPull=$P(ame.pull,!0),tme.checkPut=$P(ame.put),tme.revertClone=ame.revertClone,eme.group=tme},_hideGhostForTarget$1=function(){!supportCssPointerEvents$1&&ghostEl$1&&css$1(ghostEl$1,"display","none")},_unhideGhostForTarget$1=function(){!supportCssPointerEvents$1&&ghostEl$1&&css$1(ghostEl$1,"display","")};documentExists$1&&!ChromeForAndroid$1&&document.addEventListener("click",function(x_){if(ignoreNextClick$1)return x_.preventDefault(),x_.stopPropagation&&x_.stopPropagation(),x_.stopImmediatePropagation&&x_.stopImmediatePropagation(),ignoreNextClick$1=!1,!1},!0);var nearestEmptyInsertDetectEvent$1=function(eme){if(dragEl$1){eme=eme.touches?eme.touches[0]:eme;var $P=_detectNearestEmptySortable$1(eme.clientX,eme.clientY);if($P){var tme={};for(var ame in eme)eme.hasOwnProperty(ame)&&(tme[ame]=eme[ame]);tme.target=tme.rootEl=$P,tme.preventDefault=void 0,tme.stopPropagation=void 0,$P[expando$1]._onDragOver(tme)}}},_checkOutsideTargetEl$1=function(eme){dragEl$1&&dragEl$1.parentNode[expando$1]._isOutsideThisEl(eme.target)};function Sortable$1(x_,eme){if(!(x_&&x_.nodeType&&x_.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(x_));this.el=x_,this.options=eme=_extends$2$({},eme),x_[expando$1]=this;var $P={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(x_.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection$1(x_,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(rme,ime){rme.setData("Text",ime.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable$1.supportPointer!==!1&&"PointerEvent"in window&&!Safari$1,emptyInsertThreshold:5};PluginManager$1.initializePlugins(this,x_,$P);for(var tme in $P)!(tme in eme)&&(eme[tme]=$P[tme]);_prepareGroup$1(eme);for(var ame in this)ame.charAt(0)==="_"&&typeof this[ame]=="function"&&(this[ame]=this[ame].bind(this));this.nativeDraggable=eme.forceFallback?!1:supportDraggable$1,this.nativeDraggable&&(this.options.touchStartThreshold=1),eme.supportPointer?on$2(x_,"pointerdown",this._onTapStart):(on$2(x_,"mousedown",this._onTapStart),on$2(x_,"touchstart",this._onTapStart)),this.nativeDraggable&&(on$2(x_,"dragover",this),on$2(x_,"dragenter",this)),sortables$1.push(this.el),eme.store&&eme.store.get&&this.sort(eme.store.get(this)||[]),_extends$2$(this,AnimationStateManager$1())}Sortable$1.prototype={constructor:Sortable$1,_isOutsideThisEl:function(eme){!this.el.contains(eme)&&eme!==this.el&&(lastTarget$1=null)},_getDirection:function(eme,$P){return typeof this.options.direction=="function"?this.options.direction.call(this,eme,$P,dragEl$1):this.options.direction},_onTapStart:function(eme){if(eme.cancelable){var $P=this,tme=this.el,ame=this.options,nme=ame.preventOnFilter,rme=eme.type,ime=eme.touches&&eme.touches[0]||eme.pointerType&&eme.pointerType==="touch"&&eme,ome=(ime||eme).target,lme=eme.target.shadowRoot&&(eme.path&&eme.path[0]||eme.composedPath&&eme.composedPath()[0])||ome,sme=ame.filter;if(_saveInputCheckedState$1(tme),!dragEl$1&&!(/mousedown|pointerdown/.test(rme)&&eme.button!==0||ame.disabled)&&!lme.isContentEditable&&!(!this.nativeDraggable&&Safari$1&&ome&&ome.tagName.toUpperCase()==="SELECT")&&(ome=closest$1(ome,ame.draggable,tme,!1),!(ome&&ome.animated)&&lastDownEl$1!==ome)){if(oldIndex$1=index$9(ome),oldDraggableIndex$1=index$9(ome,ame.draggable),typeof sme=="function"){if(sme.call(this,eme,ome,this)){_dispatchEvent$1({sortable:$P,rootEl:lme,name:"filter",targetEl:ome,toEl:tme,fromEl:tme}),pluginEvent$1("filter",$P,{evt:eme}),nme&&eme.cancelable&&eme.preventDefault();return}}else if(sme&&(sme=sme.split(",").some(function(cme){if(cme=closest$1(lme,cme.trim(),tme,!1),cme)return _dispatchEvent$1({sortable:$P,rootEl:cme,name:"filter",targetEl:ome,fromEl:tme,toEl:tme}),pluginEvent$1("filter",$P,{evt:eme}),!0}),sme)){nme&&eme.cancelable&&eme.preventDefault();return}ame.handle&&!closest$1(lme,ame.handle,tme,!1)||this._prepareDragStart(eme,ime,ome)}}},_prepareDragStart:function(eme,$P,tme){var ame=this,nme=ame.el,rme=ame.options,ime=nme.ownerDocument,ome;if(tme&&!dragEl$1&&tme.parentNode===nme){var lme=getRect$1(tme);if(rootEl$1=nme,dragEl$1=tme,parentEl$1=dragEl$1.parentNode,nextEl$1=dragEl$1.nextSibling,lastDownEl$1=tme,activeGroup$1=rme.group,Sortable$1.dragged=dragEl$1,tapEvt$1={target:dragEl$1,clientX:($P||eme).clientX,clientY:($P||eme).clientY},tapDistanceLeft$1=tapEvt$1.clientX-lme.left,tapDistanceTop$1=tapEvt$1.clientY-lme.top,this._lastX=($P||eme).clientX,this._lastY=($P||eme).clientY,dragEl$1.style["will-change"]="all",ome=function(){if(pluginEvent$1("delayEnded",ame,{evt:eme}),Sortable$1.eventCanceled){ame._onDrop();return}ame._disableDelayedDragEvents(),!FireFox$1&&ame.nativeDraggable&&(dragEl$1.draggable=!0),ame._triggerDragStart(eme,$P),_dispatchEvent$1({sortable:ame,name:"choose",originalEvent:eme}),toggleClass$1(dragEl$1,rme.chosenClass,!0)},rme.ignore.split(",").forEach(function(sme){find$1(dragEl$1,sme.trim(),_disableDraggable$1)}),on$2(ime,"dragover",nearestEmptyInsertDetectEvent$1),on$2(ime,"mousemove",nearestEmptyInsertDetectEvent$1),on$2(ime,"touchmove",nearestEmptyInsertDetectEvent$1),on$2(ime,"mouseup",ame._onDrop),on$2(ime,"touchend",ame._onDrop),on$2(ime,"touchcancel",ame._onDrop),FireFox$1&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl$1.draggable=!0),pluginEvent$1("delayStart",this,{evt:eme}),rme.delay&&(!rme.delayOnTouchOnly||$P)&&(!this.nativeDraggable||!(Edge$1||IE11OrLess$1))){if(Sortable$1.eventCanceled){this._onDrop();return}on$2(ime,"mouseup",ame._disableDelayedDrag),on$2(ime,"touchend",ame._disableDelayedDrag),on$2(ime,"touchcancel",ame._disableDelayedDrag),on$2(ime,"mousemove",ame._delayedDragTouchMoveHandler),on$2(ime,"touchmove",ame._delayedDragTouchMoveHandler),rme.supportPointer&&on$2(ime,"pointermove",ame._delayedDragTouchMoveHandler),ame._dragStartTimer=setTimeout(ome,rme.delay)}else ome()}},_delayedDragTouchMoveHandler:function(eme){var $P=eme.touches?eme.touches[0]:eme;Math.max(Math.abs($P.clientX-this._lastX),Math.abs($P.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){dragEl$1&&_disableDraggable$1(dragEl$1),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var eme=this.el.ownerDocument;off$1(eme,"mouseup",this._disableDelayedDrag),off$1(eme,"touchend",this._disableDelayedDrag),off$1(eme,"touchcancel",this._disableDelayedDrag),off$1(eme,"mousemove",this._delayedDragTouchMoveHandler),off$1(eme,"touchmove",this._delayedDragTouchMoveHandler),off$1(eme,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(eme,$P){$P=$P||eme.pointerType=="touch"&&eme,!this.nativeDraggable||$P?this.options.supportPointer?on$2(document,"pointermove",this._onTouchMove):$P?on$2(document,"touchmove",this._onTouchMove):on$2(document,"mousemove",this._onTouchMove):(on$2(dragEl$1,"dragend",this),on$2(rootEl$1,"dragstart",this._onDragStart));try{document.selection?_nextTick$1(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(eme,$P){if(awaitingDragStarted$1=!1,rootEl$1&&dragEl$1){pluginEvent$1("dragStarted",this,{evt:$P}),this.nativeDraggable&&on$2(document,"dragover",_checkOutsideTargetEl$1);var tme=this.options;!eme&&toggleClass$1(dragEl$1,tme.dragClass,!1),toggleClass$1(dragEl$1,tme.ghostClass,!0),Sortable$1.active=this,eme&&this._appendGhost(),_dispatchEvent$1({sortable:this,name:"start",originalEvent:$P})}else this._nulling()},_emulateDragOver:function(){if(touchEvt$2){this._lastX=touchEvt$2.clientX,this._lastY=touchEvt$2.clientY,_hideGhostForTarget$1();for(var eme=document.elementFromPoint(touchEvt$2.clientX,touchEvt$2.clientY),$P=eme;eme&&eme.shadowRoot&&(eme=eme.shadowRoot.elementFromPoint(touchEvt$2.clientX,touchEvt$2.clientY),eme!==$P);)$P=eme;if(dragEl$1.parentNode[expando$1]._isOutsideThisEl(eme),$P)do{if($P[expando$1]){var tme=void 0;if(tme=$P[expando$1]._onDragOver({clientX:touchEvt$2.clientX,clientY:touchEvt$2.clientY,target:eme,rootEl:$P}),tme&&!this.options.dragoverBubble)break}eme=$P}while($P=$P.parentNode);_unhideGhostForTarget$1()}},_onTouchMove:function(eme){if(tapEvt$1){var $P=this.options,tme=$P.fallbackTolerance,ame=$P.fallbackOffset,nme=eme.touches?eme.touches[0]:eme,rme=ghostEl$1&&matrix$1(ghostEl$1,!0),ime=ghostEl$1&&rme&&rme.a,ome=ghostEl$1&&rme&&rme.d,lme=PositionGhostAbsolutely$1&&ghostRelativeParent$1&&getRelativeScrollOffset$1(ghostRelativeParent$1),sme=(nme.clientX-tapEvt$1.clientX+ame.x)/(ime||1)+(lme?lme[0]-ghostRelativeParentInitialScroll$1[0]:0)/(ime||1),cme=(nme.clientY-tapEvt$1.clientY+ame.y)/(ome||1)+(lme?lme[1]-ghostRelativeParentInitialScroll$1[1]:0)/(ome||1);if(!Sortable$1.active&&!awaitingDragStarted$1){if(tme&&Math.max(Math.abs(nme.clientX-this._lastX),Math.abs(nme.clientY-this._lastY))<tme)return;this._onDragStart(eme,!0)}if(ghostEl$1){rme?(rme.e+=sme-(lastDx$1||0),rme.f+=cme-(lastDy$1||0)):rme={a:1,b:0,c:0,d:1,e:sme,f:cme};var dme="matrix(".concat(rme.a,",").concat(rme.b,",").concat(rme.c,",").concat(rme.d,",").concat(rme.e,",").concat(rme.f,")");css$1(ghostEl$1,"webkitTransform",dme),css$1(ghostEl$1,"mozTransform",dme),css$1(ghostEl$1,"msTransform",dme),css$1(ghostEl$1,"transform",dme),lastDx$1=sme,lastDy$1=cme,touchEvt$2=nme}eme.cancelable&&eme.preventDefault()}},_appendGhost:function(){if(!ghostEl$1){var eme=this.options.fallbackOnBody?document.body:rootEl$1,$P=getRect$1(dragEl$1,!0,PositionGhostAbsolutely$1,!0,eme),tme=this.options;if(PositionGhostAbsolutely$1){for(ghostRelativeParent$1=eme;css$1(ghostRelativeParent$1,"position")==="static"&&css$1(ghostRelativeParent$1,"transform")==="none"&&ghostRelativeParent$1!==document;)ghostRelativeParent$1=ghostRelativeParent$1.parentNode;ghostRelativeParent$1!==document.body&&ghostRelativeParent$1!==document.documentElement?(ghostRelativeParent$1===document&&(ghostRelativeParent$1=getWindowScrollingElement$1()),$P.top+=ghostRelativeParent$1.scrollTop,$P.left+=ghostRelativeParent$1.scrollLeft):ghostRelativeParent$1=getWindowScrollingElement$1(),ghostRelativeParentInitialScroll$1=getRelativeScrollOffset$1(ghostRelativeParent$1)}ghostEl$1=dragEl$1.cloneNode(!0),toggleClass$1(ghostEl$1,tme.ghostClass,!1),toggleClass$1(ghostEl$1,tme.fallbackClass,!0),toggleClass$1(ghostEl$1,tme.dragClass,!0),css$1(ghostEl$1,"transition",""),css$1(ghostEl$1,"transform",""),css$1(ghostEl$1,"box-sizing","border-box"),css$1(ghostEl$1,"margin",0),css$1(ghostEl$1,"top",$P.top),css$1(ghostEl$1,"left",$P.left),css$1(ghostEl$1,"width",$P.width),css$1(ghostEl$1,"height",$P.height),css$1(ghostEl$1,"opacity","0.8"),css$1(ghostEl$1,"position",PositionGhostAbsolutely$1?"absolute":"fixed"),css$1(ghostEl$1,"zIndex","100000"),css$1(ghostEl$1,"pointerEvents","none"),Sortable$1.ghost=ghostEl$1,eme.appendChild(ghostEl$1),css$1(ghostEl$1,"transform-origin",tapDistanceLeft$1/parseInt(ghostEl$1.style.width)*100+"% "+tapDistanceTop$1/parseInt(ghostEl$1.style.height)*100+"%")}},_onDragStart:function(eme,$P){var tme=this,ame=eme.dataTransfer,nme=tme.options;if(pluginEvent$1("dragStart",this,{evt:eme}),Sortable$1.eventCanceled){this._onDrop();return}pluginEvent$1("setupClone",this),Sortable$1.eventCanceled||(cloneEl$1=clone$1(dragEl$1),cloneEl$1.removeAttribute("id"),cloneEl$1.draggable=!1,cloneEl$1.style["will-change"]="",this._hideClone(),toggleClass$1(cloneEl$1,this.options.chosenClass,!1),Sortable$1.clone=cloneEl$1),tme.cloneId=_nextTick$1(function(){pluginEvent$1("clone",tme),!Sortable$1.eventCanceled&&(tme.options.removeCloneOnHide||rootEl$1.insertBefore(cloneEl$1,dragEl$1),tme._hideClone(),_dispatchEvent$1({sortable:tme,name:"clone"}))}),!$P&&toggleClass$1(dragEl$1,nme.dragClass,!0),$P?(ignoreNextClick$1=!0,tme._loopId=setInterval(tme._emulateDragOver,50)):(off$1(document,"mouseup",tme._onDrop),off$1(document,"touchend",tme._onDrop),off$1(document,"touchcancel",tme._onDrop),ame&&(ame.effectAllowed="move",nme.setData&&nme.setData.call(tme,ame,dragEl$1)),on$2(document,"drop",tme),css$1(dragEl$1,"transform","translateZ(0)")),awaitingDragStarted$1=!0,tme._dragStartId=_nextTick$1(tme._dragStarted.bind(tme,$P,eme)),on$2(document,"selectstart",tme),moved$1=!0,Safari$1&&css$1(document.body,"user-select","none")},_onDragOver:function(eme){var $P=this.el,tme=eme.target,ame,nme,rme,ime=this.options,ome=ime.group,lme=Sortable$1.active,sme=activeGroup$1===ome,cme=ime.sort,dme=putSortable$1||lme,ume,fme=this,pme=!1;if(_silent$1)return;function hme(Mme,kme){pluginEvent$1(Mme,fme,_objectSpread2$3({evt:eme,isOwner:sme,axis:ume?"vertical":"horizontal",revert:rme,dragRect:ame,targetRect:nme,canSort:cme,fromSortable:dme,target:tme,completed:mme,onMove:function(Dme,jme){return _onMove$1(rootEl$1,$P,dragEl$1,ame,Dme,getRect$1(Dme),eme,jme)},changed:vme},kme))}function bme(){hme("dragOverAnimationCapture"),fme.captureAnimationState(),fme!==dme&&dme.captureAnimationState()}function mme(Mme){return hme("dragOverCompleted",{insertion:Mme}),Mme&&(sme?lme._hideClone():lme._showClone(fme),fme!==dme&&(toggleClass$1(dragEl$1,putSortable$1?putSortable$1.options.ghostClass:lme.options.ghostClass,!1),toggleClass$1(dragEl$1,ime.ghostClass,!0)),putSortable$1!==fme&&fme!==Sortable$1.active?putSortable$1=fme:fme===Sortable$1.active&&putSortable$1&&(putSortable$1=null),dme===fme&&(fme._ignoreWhileAnimating=tme),fme.animateAll(function(){hme("dragOverAnimationComplete"),fme._ignoreWhileAnimating=null}),fme!==dme&&(dme.animateAll(),dme._ignoreWhileAnimating=null)),(tme===dragEl$1&&!dragEl$1.animated||tme===$P&&!tme.animated)&&(lastTarget$1=null),!ime.dragoverBubble&&!eme.rootEl&&tme!==document&&(dragEl$1.parentNode[expando$1]._isOutsideThisEl(eme.target),!Mme&&nearestEmptyInsertDetectEvent$1(eme)),!ime.dragoverBubble&&eme.stopPropagation&&eme.stopPropagation(),pme=!0}function vme(){newIndex$1=index$9(dragEl$1),newDraggableIndex$1=index$9(dragEl$1,ime.draggable),_dispatchEvent$1({sortable:fme,name:"change",toEl:$P,newIndex:newIndex$1,newDraggableIndex:newDraggableIndex$1,originalEvent:eme})}if(eme.preventDefault!==void 0&&eme.cancelable&&eme.preventDefault(),tme=closest$1(tme,ime.draggable,$P,!0),hme("dragOver"),Sortable$1.eventCanceled)return pme;if(dragEl$1.contains(eme.target)||tme.animated&&tme.animatingX&&tme.animatingY||fme._ignoreWhileAnimating===tme)return mme(!1);if(ignoreNextClick$1=!1,lme&&!ime.disabled&&(sme?cme||(rme=parentEl$1!==rootEl$1):putSortable$1===this||(this.lastPutMode=activeGroup$1.checkPull(this,lme,dragEl$1,eme))&&ome.checkPut(this,lme,dragEl$1,eme))){if(ume=this._getDirection(eme,tme)==="vertical",ame=getRect$1(dragEl$1),hme("dragOverValid"),Sortable$1.eventCanceled)return pme;if(rme)return parentEl$1=rootEl$1,bme(),this._hideClone(),hme("revert"),Sortable$1.eventCanceled||(nextEl$1?rootEl$1.insertBefore(dragEl$1,nextEl$1):rootEl$1.appendChild(dragEl$1)),mme(!0);var gme=lastChild$1($P,ime.draggable);if(!gme||_ghostIsLast$1(eme,ume,this)&&!gme.animated){if(gme===dragEl$1)return mme(!1);if(gme&&$P===eme.target&&(tme=gme),tme&&(nme=getRect$1(tme)),_onMove$1(rootEl$1,$P,dragEl$1,ame,tme,nme,eme,!!tme)!==!1)return bme(),gme&&gme.nextSibling?$P.insertBefore(dragEl$1,gme.nextSibling):$P.appendChild(dragEl$1),parentEl$1=$P,vme(),mme(!0)}else if(gme&&_ghostIsFirst$1(eme,ume,this)){var yme=getChild$1($P,0,ime,!0);if(yme===dragEl$1)return mme(!1);if(tme=yme,nme=getRect$1(tme),_onMove$1(rootEl$1,$P,dragEl$1,ame,tme,nme,eme,!1)!==!1)return bme(),$P.insertBefore(dragEl$1,yme),parentEl$1=$P,vme(),mme(!0)}else if(tme.parentNode===$P){nme=getRect$1(tme);var _me=0,$me,Cme=dragEl$1.parentNode!==$P,Sme=!_dragElInRowColumn$1(dragEl$1.animated&&dragEl$1.toRect||ame,tme.animated&&tme.toRect||nme,ume),Eme=ume?"top":"left",xme=isScrolledPast$1(tme,"top","top")||isScrolledPast$1(dragEl$1,"top","top"),Tme=xme?xme.scrollTop:void 0;lastTarget$1!==tme&&($me=nme[Eme],pastFirstInvertThresh$1=!1,isCircumstantialInvert$1=!Sme&&ime.invertSwap||Cme),_me=_getSwapDirection$1(eme,tme,nme,ume,Sme?1:ime.swapThreshold,ime.invertedSwapThreshold==null?ime.swapThreshold:ime.invertedSwapThreshold,isCircumstantialInvert$1,lastTarget$1===tme);var Ome;if(_me!==0){var Rme=index$9(dragEl$1);do Rme-=_me,Ome=parentEl$1.children[Rme];while(Ome&&(css$1(Ome,"display")==="none"||Ome===ghostEl$1))}if(_me===0||Ome===tme)return mme(!1);lastTarget$1=tme,lastDirection$1=_me;var Nme=tme.nextElementSibling,Ime=!1;Ime=_me===1;var Pme=_onMove$1(rootEl$1,$P,dragEl$1,ame,tme,nme,eme,Ime);if(Pme!==!1)return(Pme===1||Pme===-1)&&(Ime=Pme===1),_silent$1=!0,setTimeout(_unsilent$1,30),bme(),Ime&&!Nme?$P.appendChild(dragEl$1):tme.parentNode.insertBefore(dragEl$1,Ime?Nme:tme),xme&&scrollBy$1(xme,0,Tme-xme.scrollTop),parentEl$1=dragEl$1.parentNode,$me!==void 0&&!isCircumstantialInvert$1&&(targetMoveDistance$1=Math.abs($me-getRect$1(tme)[Eme])),vme(),mme(!0)}if($P.contains(dragEl$1))return mme(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){off$1(document,"mousemove",this._onTouchMove),off$1(document,"touchmove",this._onTouchMove),off$1(document,"pointermove",this._onTouchMove),off$1(document,"dragover",nearestEmptyInsertDetectEvent$1),off$1(document,"mousemove",nearestEmptyInsertDetectEvent$1),off$1(document,"touchmove",nearestEmptyInsertDetectEvent$1)},_offUpEvents:function(){var eme=this.el.ownerDocument;off$1(eme,"mouseup",this._onDrop),off$1(eme,"touchend",this._onDrop),off$1(eme,"pointerup",this._onDrop),off$1(eme,"touchcancel",this._onDrop),off$1(document,"selectstart",this)},_onDrop:function(eme){var $P=this.el,tme=this.options;if(newIndex$1=index$9(dragEl$1),newDraggableIndex$1=index$9(dragEl$1,tme.draggable),pluginEvent$1("drop",this,{evt:eme}),parentEl$1=dragEl$1&&dragEl$1.parentNode,newIndex$1=index$9(dragEl$1),newDraggableIndex$1=index$9(dragEl$1,tme.draggable),Sortable$1.eventCanceled){this._nulling();return}awaitingDragStarted$1=!1,isCircumstantialInvert$1=!1,pastFirstInvertThresh$1=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick$1(this.cloneId),_cancelNextTick$1(this._dragStartId),this.nativeDraggable&&(off$1(document,"drop",this),off$1($P,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari$1&&css$1(document.body,"user-select",""),css$1(dragEl$1,"transform",""),eme&&(moved$1&&(eme.cancelable&&eme.preventDefault(),!tme.dropBubble&&eme.stopPropagation()),ghostEl$1&&ghostEl$1.parentNode&&ghostEl$1.parentNode.removeChild(ghostEl$1),(rootEl$1===parentEl$1||putSortable$1&&putSortable$1.lastPutMode!=="clone")&&cloneEl$1&&cloneEl$1.parentNode&&cloneEl$1.parentNode.removeChild(cloneEl$1),dragEl$1&&(this.nativeDraggable&&off$1(dragEl$1,"dragend",this),_disableDraggable$1(dragEl$1),dragEl$1.style["will-change"]="",moved$1&&!awaitingDragStarted$1&&toggleClass$1(dragEl$1,putSortable$1?putSortable$1.options.ghostClass:this.options.ghostClass,!1),toggleClass$1(dragEl$1,this.options.chosenClass,!1),_dispatchEvent$1({sortable:this,name:"unchoose",toEl:parentEl$1,newIndex:null,newDraggableIndex:null,originalEvent:eme}),rootEl$1!==parentEl$1?(newIndex$1>=0&&(_dispatchEvent$1({rootEl:parentEl$1,name:"add",toEl:parentEl$1,fromEl:rootEl$1,originalEvent:eme}),_dispatchEvent$1({sortable:this,name:"remove",toEl:parentEl$1,originalEvent:eme}),_dispatchEvent$1({rootEl:parentEl$1,name:"sort",toEl:parentEl$1,fromEl:rootEl$1,originalEvent:eme}),_dispatchEvent$1({sortable:this,name:"sort",toEl:parentEl$1,originalEvent:eme})),putSortable$1&&putSortable$1.save()):newIndex$1!==oldIndex$1&&newIndex$1>=0&&(_dispatchEvent$1({sortable:this,name:"update",toEl:parentEl$1,originalEvent:eme}),_dispatchEvent$1({sortable:this,name:"sort",toEl:parentEl$1,originalEvent:eme})),Sortable$1.active&&((newIndex$1==null||newIndex$1===-1)&&(newIndex$1=oldIndex$1,newDraggableIndex$1=oldDraggableIndex$1),_dispatchEvent$1({sortable:this,name:"end",toEl:parentEl$1,originalEvent:eme}),this.save()))),this._nulling()},_nulling:function(){pluginEvent$1("nulling",this),rootEl$1=dragEl$1=parentEl$1=ghostEl$1=nextEl$1=cloneEl$1=lastDownEl$1=cloneHidden$1=tapEvt$1=touchEvt$2=moved$1=newIndex$1=newDraggableIndex$1=oldIndex$1=oldDraggableIndex$1=lastTarget$1=lastDirection$1=putSortable$1=activeGroup$1=Sortable$1.dragged=Sortable$1.ghost=Sortable$1.clone=Sortable$1.active=null,savedInputChecked$1.forEach(function(eme){eme.checked=!0}),savedInputChecked$1.length=lastDx$1=lastDy$1=0},handleEvent:function(eme){switch(eme.type){case"drop":case"dragend":this._onDrop(eme);break;case"dragenter":case"dragover":dragEl$1&&(this._onDragOver(eme),_globalDragOver$1(eme));break;case"selectstart":eme.preventDefault();break}},toArray:function(){for(var eme=[],$P,tme=this.el.children,ame=0,nme=tme.length,rme=this.options;ame<nme;ame++)$P=tme[ame],closest$1($P,rme.draggable,this.el,!1)&&eme.push($P.getAttribute(rme.dataIdAttr)||_generateId$1($P));return eme},sort:function(eme,$P){var tme={},ame=this.el;this.toArray().forEach(function(nme,rme){var ime=ame.children[rme];closest$1(ime,this.options.draggable,ame,!1)&&(tme[nme]=ime)},this),$P&&this.captureAnimationState(),eme.forEach(function(nme){tme[nme]&&(ame.removeChild(tme[nme]),ame.appendChild(tme[nme]))}),$P&&this.animateAll()},save:function(){var eme=this.options.store;eme&&eme.set&&eme.set(this)},closest:function(eme,$P){return closest$1(eme,$P||this.options.draggable,this.el,!1)},option:function(eme,$P){var tme=this.options;if($P===void 0)return tme[eme];var ame=PluginManager$1.modifyOption(this,eme,$P);typeof ame<"u"?tme[eme]=ame:tme[eme]=$P,eme==="group"&&_prepareGroup$1(tme)},destroy:function(){pluginEvent$1("destroy",this);var eme=this.el;eme[expando$1]=null,off$1(eme,"mousedown",this._onTapStart),off$1(eme,"touchstart",this._onTapStart),off$1(eme,"pointerdown",this._onTapStart),this.nativeDraggable&&(off$1(eme,"dragover",this),off$1(eme,"dragenter",this)),Array.prototype.forEach.call(eme.querySelectorAll("[draggable]"),function($P){$P.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables$1.splice(sortables$1.indexOf(this.el),1),this.el=eme=null},_hideClone:function(){if(!cloneHidden$1){if(pluginEvent$1("hideClone",this),Sortable$1.eventCanceled)return;css$1(cloneEl$1,"display","none"),this.options.removeCloneOnHide&&cloneEl$1.parentNode&&cloneEl$1.parentNode.removeChild(cloneEl$1),cloneHidden$1=!0}},_showClone:function(eme){if(eme.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden$1){if(pluginEvent$1("showClone",this),Sortable$1.eventCanceled)return;dragEl$1.parentNode==rootEl$1&&!this.options.group.revertClone?rootEl$1.insertBefore(cloneEl$1,dragEl$1):nextEl$1?rootEl$1.insertBefore(cloneEl$1,nextEl$1):rootEl$1.appendChild(cloneEl$1),this.options.group.revertClone&&this.animate(dragEl$1,cloneEl$1),css$1(cloneEl$1,"display",""),cloneHidden$1=!1}}};function _globalDragOver$1(x_){x_.dataTransfer&&(x_.dataTransfer.dropEffect="move"),x_.cancelable&&x_.preventDefault()}function _onMove$1(x_,eme,$P,tme,ame,nme,rme,ime){var ome,lme=x_[expando$1],sme=lme.options.onMove,cme;return window.CustomEvent&&!IE11OrLess$1&&!Edge$1?ome=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(ome=document.createEvent("Event"),ome.initEvent("move",!0,!0)),ome.to=eme,ome.from=x_,ome.dragged=$P,ome.draggedRect=tme,ome.related=ame||eme,ome.relatedRect=nme||getRect$1(eme),ome.willInsertAfter=ime,ome.originalEvent=rme,x_.dispatchEvent(ome),sme&&(cme=sme.call(lme,ome,rme)),cme}function _disableDraggable$1(x_){x_.draggable=!1}function _unsilent$1(){_silent$1=!1}function _ghostIsFirst$1(x_,eme,$P){var tme=getRect$1(getChild$1($P.el,0,$P.options,!0)),ame=10;return eme?x_.clientX<tme.left-ame||x_.clientY<tme.top&&x_.clientX<tme.right:x_.clientY<tme.top-ame||x_.clientY<tme.bottom&&x_.clientX<tme.left}function _ghostIsLast$1(x_,eme,$P){var tme=getRect$1(lastChild$1($P.el,$P.options.draggable)),ame=10;return eme?x_.clientX>tme.right+ame||x_.clientX<=tme.right&&x_.clientY>tme.bottom&&x_.clientX>=tme.left:x_.clientX>tme.right&&x_.clientY>tme.top||x_.clientX<=tme.right&&x_.clientY>tme.bottom+ame}function _getSwapDirection$1(x_,eme,$P,tme,ame,nme,rme,ime){var ome=tme?x_.clientY:x_.clientX,lme=tme?$P.height:$P.width,sme=tme?$P.top:$P.left,cme=tme?$P.bottom:$P.right,dme=!1;if(!rme){if(ime&&targetMoveDistance$1<lme*ame){if(!pastFirstInvertThresh$1&&(lastDirection$1===1?ome>sme+lme*nme/2:ome<cme-lme*nme/2)&&(pastFirstInvertThresh$1=!0),pastFirstInvertThresh$1)dme=!0;else if(lastDirection$1===1?ome<sme+targetMoveDistance$1:ome>cme-targetMoveDistance$1)return-lastDirection$1}else if(ome>sme+lme*(1-ame)/2&&ome<cme-lme*(1-ame)/2)return _getInsertDirection$1(eme)}return dme=dme||rme,dme&&(ome<sme+lme*nme/2||ome>cme-lme*nme/2)?ome>sme+lme/2?1:-1:0}function _getInsertDirection$1(x_){return index$9(dragEl$1)<index$9(x_)?1:-1}function _generateId$1(x_){for(var eme=x_.tagName+x_.className+x_.src+x_.href+x_.textContent,$P=eme.length,tme=0;$P--;)tme+=eme.charCodeAt($P);return tme.toString(36)}function _saveInputCheckedState$1(x_){savedInputChecked$1.length=0;for(var eme=x_.getElementsByTagName("input"),$P=eme.length;$P--;){var tme=eme[$P];tme.checked&&savedInputChecked$1.push(tme)}}function _nextTick$1(x_){return setTimeout(x_,0)}function _cancelNextTick$1(x_){return clearTimeout(x_)}documentExists$1&&on$2(document,"touchmove",function(x_){(Sortable$1.active||awaitingDragStarted$1)&&x_.cancelable&&x_.preventDefault()});Sortable$1.utils={on:on$2,off:off$1,css:css$1,find:find$1,is:function(eme,$P){return!!closest$1(eme,$P,eme,!1)},extend:extend$2,throttle:throttle$2,closest:closest$1,toggleClass:toggleClass$1,clone:clone$1,index:index$9,nextTick:_nextTick$1,cancelNextTick:_cancelNextTick$1,detectDirection:_detectDirection$1,getChild:getChild$1};Sortable$1.get=function(x_){return x_[expando$1]};Sortable$1.mount=function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];eme[0].constructor===Array&&(eme=eme[0]),eme.forEach(function(tme){if(!tme.prototype||!tme.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(tme));tme.utils&&(Sortable$1.utils=_objectSpread2$3(_objectSpread2$3({},Sortable$1.utils),tme.utils)),PluginManager$1.mount(tme)})};Sortable$1.create=function(x_,eme){return new Sortable$1(x_,eme)};Sortable$1.version=version$1;var autoScrolls$1=[],scrollEl$1,scrollRootEl$1,scrolling$1=!1,lastAutoScrollX$1,lastAutoScrollY$1,touchEvt$1$1,pointerElemChangedInterval$1;function AutoScrollPlugin$1(){function x_(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var eme in this)eme.charAt(0)==="_"&&typeof this[eme]=="function"&&(this[eme]=this[eme].bind(this))}return x_.prototype={dragStarted:function($P){var tme=$P.originalEvent;this.sortable.nativeDraggable?on$2(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on$2(document,"pointermove",this._handleFallbackAutoScroll):tme.touches?on$2(document,"touchmove",this._handleFallbackAutoScroll):on$2(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function($P){var tme=$P.originalEvent;!this.options.dragOverBubble&&!tme.rootEl&&this._handleAutoScroll(tme)},drop:function(){this.sortable.nativeDraggable?off$1(document,"dragover",this._handleAutoScroll):(off$1(document,"pointermove",this._handleFallbackAutoScroll),off$1(document,"touchmove",this._handleFallbackAutoScroll),off$1(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval$1(),clearAutoScrolls$1(),cancelThrottle$1()},nulling:function(){touchEvt$1$1=scrollRootEl$1=scrollEl$1=scrolling$1=pointerElemChangedInterval$1=lastAutoScrollX$1=lastAutoScrollY$1=null,autoScrolls$1.length=0},_handleFallbackAutoScroll:function($P){this._handleAutoScroll($P,!0)},_handleAutoScroll:function($P,tme){var ame=this,nme=($P.touches?$P.touches[0]:$P).clientX,rme=($P.touches?$P.touches[0]:$P).clientY,ime=document.elementFromPoint(nme,rme);if(touchEvt$1$1=$P,tme||this.options.forceAutoScrollFallback||Edge$1||IE11OrLess$1||Safari$1){autoScroll$1($P,this.options,ime,tme);var ome=getParentAutoScrollElement$1(ime,!0);scrolling$1&&(!pointerElemChangedInterval$1||nme!==lastAutoScrollX$1||rme!==lastAutoScrollY$1)&&(pointerElemChangedInterval$1&&clearPointerElemChangedInterval$1(),pointerElemChangedInterval$1=setInterval(function(){var lme=getParentAutoScrollElement$1(document.elementFromPoint(nme,rme),!0);lme!==ome&&(ome=lme,clearAutoScrolls$1()),autoScroll$1($P,ame.options,lme,tme)},10),lastAutoScrollX$1=nme,lastAutoScrollY$1=rme)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement$1(ime,!0)===getWindowScrollingElement$1()){clearAutoScrolls$1();return}autoScroll$1($P,this.options,getParentAutoScrollElement$1(ime,!1),!1)}}},_extends$2$(x_,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls$1(){autoScrolls$1.forEach(function(x_){clearInterval(x_.pid)}),autoScrolls$1=[]}function clearPointerElemChangedInterval$1(){clearInterval(pointerElemChangedInterval$1)}var autoScroll$1=throttle$2(function(x_,eme,$P,tme){if(eme.scroll){var ame=(x_.touches?x_.touches[0]:x_).clientX,nme=(x_.touches?x_.touches[0]:x_).clientY,rme=eme.scrollSensitivity,ime=eme.scrollSpeed,ome=getWindowScrollingElement$1(),lme=!1,sme;scrollRootEl$1!==$P&&(scrollRootEl$1=$P,clearAutoScrolls$1(),scrollEl$1=eme.scroll,sme=eme.scrollFn,scrollEl$1===!0&&(scrollEl$1=getParentAutoScrollElement$1($P,!0)));var cme=0,dme=scrollEl$1;do{var ume=dme,fme=getRect$1(ume),pme=fme.top,hme=fme.bottom,bme=fme.left,mme=fme.right,vme=fme.width,gme=fme.height,yme=void 0,_me=void 0,$me=ume.scrollWidth,Cme=ume.scrollHeight,Sme=css$1(ume),Eme=ume.scrollLeft,xme=ume.scrollTop;ume===ome?(yme=vme<$me&&(Sme.overflowX==="auto"||Sme.overflowX==="scroll"||Sme.overflowX==="visible"),_me=gme<Cme&&(Sme.overflowY==="auto"||Sme.overflowY==="scroll"||Sme.overflowY==="visible")):(yme=vme<$me&&(Sme.overflowX==="auto"||Sme.overflowX==="scroll"),_me=gme<Cme&&(Sme.overflowY==="auto"||Sme.overflowY==="scroll"));var Tme=yme&&(Math.abs(mme-ame)<=rme&&Eme+vme<$me)-(Math.abs(bme-ame)<=rme&&!!Eme),Ome=_me&&(Math.abs(hme-nme)<=rme&&xme+gme<Cme)-(Math.abs(pme-nme)<=rme&&!!xme);if(!autoScrolls$1[cme])for(var Rme=0;Rme<=cme;Rme++)autoScrolls$1[Rme]||(autoScrolls$1[Rme]={});(autoScrolls$1[cme].vx!=Tme||autoScrolls$1[cme].vy!=Ome||autoScrolls$1[cme].el!==ume)&&(autoScrolls$1[cme].el=ume,autoScrolls$1[cme].vx=Tme,autoScrolls$1[cme].vy=Ome,clearInterval(autoScrolls$1[cme].pid),(Tme!=0||Ome!=0)&&(lme=!0,autoScrolls$1[cme].pid=setInterval((function(){tme&&this.layer===0&&Sortable$1.active._onTouchMove(touchEvt$1$1);var Nme=autoScrolls$1[this.layer].vy?autoScrolls$1[this.layer].vy*ime:0,Ime=autoScrolls$1[this.layer].vx?autoScrolls$1[this.layer].vx*ime:0;typeof sme=="function"&&sme.call(Sortable$1.dragged.parentNode[expando$1],Ime,Nme,x_,touchEvt$1$1,autoScrolls$1[this.layer].el)!=="continue"||scrollBy$1(autoScrolls$1[this.layer].el,Ime,Nme)}).bind({layer:cme}),24))),cme++}while(eme.bubbleScroll&&dme!==ome&&(dme=getParentAutoScrollElement$1(dme,!1)));scrolling$1=lme}},30),drop$1=function(eme){var $P=eme.originalEvent,tme=eme.putSortable,ame=eme.dragEl,nme=eme.activeSortable,rme=eme.dispatchSortableEvent,ime=eme.hideGhostForTarget,ome=eme.unhideGhostForTarget;if($P){var lme=tme||nme;ime();var sme=$P.changedTouches&&$P.changedTouches.length?$P.changedTouches[0]:$P,cme=document.elementFromPoint(sme.clientX,sme.clientY);ome(),lme&&!lme.el.contains(cme)&&(rme("spill"),this.onSpill({dragEl:ame,putSortable:tme}))}};function Revert$1(){}Revert$1.prototype={startIndex:null,dragStart:function(eme){var $P=eme.oldDraggableIndex;this.startIndex=$P},onSpill:function(eme){var $P=eme.dragEl,tme=eme.putSortable;this.sortable.captureAnimationState(),tme&&tme.captureAnimationState();var ame=getChild$1(this.sortable.el,this.startIndex,this.options);ame?this.sortable.el.insertBefore($P,ame):this.sortable.el.appendChild($P),this.sortable.animateAll(),tme&&tme.animateAll()},drop:drop$1};_extends$2$(Revert$1,{pluginName:"revertOnSpill"});function Remove$1(){}Remove$1.prototype={onSpill:function(eme){var $P=eme.dragEl,tme=eme.putSortable,ame=tme||this.sortable;ame.captureAnimationState(),$P.parentNode&&$P.parentNode.removeChild($P),ame.animateAll()},drop:drop$1};_extends$2$(Remove$1,{pluginName:"removeOnSpill"});Sortable$1.mount(new AutoScrollPlugin$1);Sortable$1.mount(Remove$1,Revert$1);var _a$5,transitionStyles=(_a$5={},_a$5[ENTERING]="in",_a$5[ENTERED]="in",_a$5),TabComponent=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.touch={},$P.contentRef=function(tme){return $P.contentDom=tme},$P}return eme.prototype.onTouchStart=function($P){this.touch.startX=$P.touches[0].clientX,this.touch.startY=$P.touches[0].clientY,this.touchStartTime=Date.now()},eme.prototype.onTouchMove=function($P){var tme=$P.touches[0],ame=__assign$3({},this.touch);ame.deltaX=tme.clientX<0?0:tme.clientX-ame.startX,ame.deltaY=tme.clientY-ame.startY,ame.offsetX=Math.abs(ame.deltaX),ame.offsetY=Math.abs(ame.deltaY),this.touch=ame},eme.prototype.onTouchEnd=function(){var $P=Date.now()-this.touchStartTime,tme=this.touch.deltaX/$P,ame=Math.abs(tme)>.25,nme=this.props,rme=nme.prevKey,ime=nme.nextKey,ome=nme.onSelect;ame&&(this.touch.deltaX>0?rme!==void 0&&(ome==null||ome(rme)):ime&&(ome==null||ome(ime)))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.mountOnEnter,rme=tme.reload,ime=tme.unmountOnExit,ome=tme.eventKey,lme=tme.activeKey,sme=tme.children,cme=tme.className,dme=tme.swipeable,ume=tme.mobileUI,fme=tme.testIdBuilder;return React__default.createElement(Transition,{in:lme===ome,mountOnEnter:nme,unmountOnExit:typeof rme=="boolean"?rme:ime,timeout:500},function(pme){return pme===ENTERING&&$P.contentDom.offsetWidth,React__default.createElement("div",__assign$3({ref:$P.contentRef,className:ame(transitionStyles[pme],lme===ome?"is-active":"","Tabs-pane",cme),onTouchStart:dme&&ume?$P.onTouchStart:noop$9,onTouchMove:dme&&ume?$P.onTouchMove:noop$9,onTouchEnd:dme&&ume?$P.onTouchEnd:noop$9,onTouchCancel:dme&&ume?$P.onTouchEnd:noop$9},fme==null?void 0:fme.getTestId()),sme)})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchStart",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchEnd",null),eme}(React__default.PureComponent),Tab$1=themeable(TabComponent),Tabs=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.navMain=React__default.createRef(),tme.scroll=!1,tme.id=guid$1(),tme.draging=!1,tme.toDispose=[],tme.resizeDom=React__default.createRef(),tme.checkArrowStatus=debounce$6(function(){var ame=tme.navMain.current||{scrollLeft:0,scrollWidth:0,clientWidth:0},nme=ame.scrollLeft,rme=ame.scrollWidth,ime=ame.clientWidth,ome=tme.state,lme=ome.arrowRightDisabled,sme=ome.arrowLeftDisabled;nme===0&&!sme?tme.setState({arrowRightDisabled:!1,arrowLeftDisabled:!0}):rme===nme+ime&&!lme?tme.setState({arrowRightDisabled:!0,arrowLeftDisabled:!1}):nme!==0&&sme?tme.setState({arrowLeftDisabled:!1}):rme!==nme+ime&&lme&&tme.setState({arrowRightDisabled:!1})},100,{trailing:!0,leading:!1}),tme.state={isOverflow:!1,arrowLeftDisabled:!1,arrowRightDisabled:!1,dragIndicator:null,editingIndex:null,editInputText:null,editOriginText:null},tme}return eme.prototype.componentDidMount=function(){var $P=this,tme,ame;this.computedWidth(),this.navMain&&((tme=this.navMain.current)===null||tme===void 0||tme.addEventListener("wheel",this.handleWheel,{passive:!1}),this.checkArrowStatus()),!((ame=this.resizeDom)===null||ame===void 0)&&ame.current&&this.toDispose.push(resizeSensor(this.resizeDom.current,function(){return $P.computedWidth()}))},eme.prototype.componentDidUpdate=function($P){var tme,ame=isObjectShallowModified$1({activeKey:this.props.activeKey,children:Array.isArray(this.props.children)?this.props.children.map(function(fme){var pme,hme;return{eventKey:(pme=fme==null?void 0:fme.props)===null||pme===void 0?void 0:pme.eventKey,title:typeof((hme=fme==null?void 0:fme.props)===null||hme===void 0?void 0:hme.title)=="string"?fme.props.title:""}}):[]},{activeKey:$P.activeKey,children:Array.isArray($P.children)?$P.children.map(function(fme){var pme,hme;return{eventKey:(pme=fme==null?void 0:fme.props)===null||pme===void 0?void 0:pme.eventKey,title:typeof((hme=fme==null?void 0:fme.props)===null||hme===void 0?void 0:hme.title)=="string"?fme.props.title:""}}):[]});!this.scroll&&!this.draging&&ame&&this.computedWidth();var nme=this.props;nme.classPrefix;var rme=nme.activeKey,ime=nme.mobileUI;if(ime&&$P.activeKey!==rme){var ome=this.props.classPrefix,lme=reactDomExports.findDOMNode(this),sme=lme.querySelector(".".concat(ome,"Tabs-link.is-active")),cme=((tme=sme.parentNode)===null||tme===void 0?void 0:tme.parentNode).offsetWidth,dme=sme.offsetLeft,ume=sme.offsetWidth;sme.parentNode&&(sme.parentNode.scrollLeft=dme>cme?dme/cme*cme-cme/2+ume/2:dme-cme/2+ume/2)}this.scroll=!1},eme.prototype.componentWillUnmount=function(){this.checkArrowStatus.cancel(),this.toDispose.forEach(function($P){return $P()}),this.toDispose=[]},eme.prototype.computedWidth=function(){var $P=this.props,tme=$P.mode,ame=$P.tabsMode,nme=ame||tme;if(!["vertical","sidebar"].includes(nme)){var rme=this.navMain.current,ime=(rme==null?void 0:rme.clientWidth)||0,ome=(rme==null?void 0:rme.scrollWidth)||0,lme=ome>ime;lme!==this.state.isOverflow&&this.setState({isOverflow:lme}),lme&&!this.draging&&this.showSelected()}},eme.prototype.showSelected=function($P){var tme,ame,nme,rme,ime,ome=this.props,lme=ome.mode,sme=ome.tabsMode,cme=this.state.isOverflow,dme=sme||lme;if(!(["vertical","sidebar"].includes(dme)||!cme)){var ume=this.props,fme=ume.activeKey,pme=ume.children,hme=$P!==void 0?$P:fme,bme=pme==null?void 0:pme.findIndex(function(Cme){return Cme===null?!1:Cme.props.eventKey===hme}),mme=((tme=this.navMain.current)===null||tme===void 0?void 0:tme.children)||[],vme=mme[bme],gme=vme==null?void 0:vme.offsetLeft,yme=vme==null?void 0:vme.clientWidth,_me=((ame=this.navMain.current)===null||ame===void 0?void 0:ame.scrollLeft)||0,$me=((nme=this.navMain.current)===null||nme===void 0?void 0:nme.clientWidth)||0;_me>gme&&((rme=this.navMain.current)===null||rme===void 0||rme.scrollTo({left:gme,behavior:"smooth"})),gme+yme>_me+$me&&((ime=this.navMain.current)===null||ime===void 0||ime.scrollTo({left:gme+yme-$me,behavior:"smooth"}))}},eme.prototype.handleSelect=function($P){var tme=this,ame=this.props.onSelect;this.showSelected($P),setTimeout(function(){tme.checkArrowStatus()},500),ame&&ame($P)},eme.prototype.handleStartEdit=function($P,tme){this.setState({editingIndex:$P,editInputText:tme,editOriginText:tme})},eme.prototype.handleEditInputChange=function($P){this.setState({editInputText:$P.currentTarget.value})},eme.prototype.handleEdit=function(){var $P=this.state,tme=$P.editingIndex,ame=$P.editInputText,nme=$P.editOriginText,rme=this.props.onEdit;this.setState({editingIndex:null,editInputText:null,editOriginText:null}),rme&&(ame=String(ame).trim())&&ame!==nme&&rme(tme,ame)},eme.prototype.dragTipRef=function($P){!this.dragTip&&$P?this.initDragging():this.dragTip&&!$P&&this.destroyDragging(),this.dragTip=$P},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.initDragging=function(){var $P=this,tme=this.props,ame=tme.classPrefix,nme=tme.onDragChange,rme=reactDomExports.findDOMNode(this);this.sortable=new Sortable$1(rme.querySelector(".".concat(ame,"Tabs-links")),{group:this.id,animation:250,handle:".".concat(ame,"Tabs-link"),ghostClass:"".concat(ame,"Tabs-link--dragging"),onStart:function(){$P.draging=!0},onEnd:function(ime){if(ime.newIndex!==ime.oldIndex){var ome=ime.to;ime.oldIndex<ome.childNodes.length-1?ome.insertBefore(ime.item,ome.childNodes[ime.oldIndex>ime.newIndex?ime.oldIndex+1:ime.oldIndex]):ome.appendChild(ime.item),setTimeout(function(){$P.draging=!1}),nme&&nme(ime)}}})},eme.prototype.handleArrow=function($P){var tme,ame,nme=this.navMain.current||{scrollLeft:0,scrollWidth:0,clientWidth:0},rme=nme.scrollLeft,ime=nme.scrollWidth,ome=nme.clientWidth;if($P==="left"&&rme>0){var lme=rme-ome;(tme=this.navMain.current)===null||tme===void 0||tme.scrollTo({left:lme>0?lme:0,behavior:"smooth"}),this.setState({arrowRightDisabled:!1,arrowLeftDisabled:lme<=0})}else if($P==="right"&&ime>rme+ome){var lme=rme+ome;(ame=this.navMain.current)===null||ame===void 0||ame.scrollTo({left:lme>ime?ime:lme,behavior:"smooth"}),this.setState({arrowRightDisabled:lme>ime-ome,arrowLeftDisabled:!1})}this.scroll=!0},eme.prototype.handleWheel=function($P){var tme,ame,nme=$P.deltaY,rme=$P.deltaX,ime=Math.abs(rme),ome=Math.abs(nme);ome>ime&&((tme=this.navMain.current)===null||tme===void 0||tme.scrollTo({left:((ame=this.navMain.current)===null||ame===void 0?void 0:ame.scrollLeft)+nme}),$P.preventDefault()),this.checkArrowStatus(),this.scroll=!0},eme.prototype.generateTabKey=function($P,tme,ame){return($P===tme?"hash-":"")+(tme??ame)},eme.prototype.renderNav=function($P,tme,ame){var nme=this;if($P){var rme=this.props,ime=rme.classnames,ome=rme.activeKey,lme=rme.mode,sme=rme.closable;rme.draggable;var cme=rme.showTip,dme=rme.showTipClassName,ume=rme.editable,fme=rme.testIdBuilder,pme=rme.titleClassName,hme=$P.props,bme=hme.eventKey,mme=hme.disabled,vme=hme.icon,gme=hme.iconPosition,yme=hme.title,_me=hme.toolbar,$me=hme.tabClassName,Cme=hme.closable,Sme=hme.tip,Eme=hme.hash,xme=this.state,Tme=xme.editingIndex,Ome=xme.editInputText,Rme=ome===void 0&&tme===0?bme:ome,Nme=React__default.createElement(Icon$1,{cx:ime,icon:vme,className:"Icon"}),Ime=React__default.createElement("a",{title:typeof yme=="string"?yme:void 0},ume&&Tme===tme?React__default.createElement("input",{className:ime("Tabs-link-edit"),type:"text",value:Ome,autoFocus:!0,onFocus:function(Mme){return Mme.currentTarget.select()},onChange:this.handleEditInputChange,onBlur:this.handleEdit,onKeyPress:function(Mme){return Mme&&Mme.key==="Enter"&&nme.handleEdit()}}):React__default.createElement(React__default.Fragment,null,vme?gme==="right"?React__default.createElement(React__default.Fragment,null,React__default.createElement("span",{className:ime("Tabs-link-text mr-1")},yme),Nme):React__default.createElement(React__default.Fragment,null,Nme,React__default.createElement("span",{className:ime("Tabs-link-text ml-1")},yme)):React__default.createElement("span",{className:ime("Tabs-link-text")},yme),React__default.isValidElement(_me)?_me:null)),Pme=fme==null?void 0:fme.getChild("tab-".concat(typeof yme=="string"?yme:tme));return React__default.createElement("li",__assign$3({className:ime("Tabs-link",pme,Rme===bme?"is-active":"",mme?"is-disabled":"",$me),key:this.generateTabKey(Eme,bme,tme),onClick:function(){return mme?"":nme.handleSelect(bme)},onDoubleClick:function(){ume&&typeof yme=="string"&&nme.handleStartEdit(tme,yme)}},Pme==null?void 0:Pme.getChild("link").getTestId()),cme?React__default.createElement(TooltipWrapper$1,{placement:"top",tooltip:Sme??(typeof yme=="string"?yme:""),trigger:"hover",tooltipClassName:dme},Ime):Ime,ame&&(Cme??sme)&&React__default.createElement("span",__assign$3({className:ime("Tabs-link-close"),onClick:function(Mme){Mme.stopPropagation(),nme.props.onClose&&nme.props.onClose(bme)}},Pme==null?void 0:Pme.getChild("close").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:ime("Tabs-link-close-icon")})),lme==="chrome"?React__default.createElement("div",{className:"chrome-tab-background"},React__default.createElement("svg",{viewBox:"0 0 124 124",className:"chrome-tab-background--right"},React__default.createElement("path",{d:"M0,0 C0,68.483309 55.516691,124 124,124 L0,124 L0,-1 C0.00132103964,-0.667821298 0,-0.334064922 0,0 Z"})),React__default.createElement("svg",{viewBox:"0 0 124 124",className:"chrome-tab-background--left"},React__default.createElement("path",{d:"M124,0 L124,125 L0,125 L0,125 C68.483309,125 124,69.483309 124,1 L123.992,0 L124,0 Z"}))):null)}},eme.prototype.renderTab=function($P,tme){if($P){var ame=($P==null?void 0:$P.props)||{},nme=ame.hash,rme=ame.eventKey,ime=this.props,ome=ime.activeKey,lme=ime.classnames,sme=ome===void 0&&tme===0?rme:ome;return React__default.cloneElement($P,__assign$3(__assign$3({},$P.props),{key:this.generateTabKey(nme,rme,tme),classnames:lme,activeKey:sme}))}},eme.prototype.renderArrow=function($P){var tme=this,ame=this.props,nme=ame.mode,rme=ame.tabsMode,ime=ame.testIdBuilder,ome=rme||nme;if(!["vertical","sidebar"].includes(ome)){var lme=this.props.classnames,sme=this.state,cme=sme.isOverflow,dme=sme.arrowLeftDisabled,ume=sme.arrowRightDisabled,fme=$P==="left"?dme:ume;return cme?React__default.createElement("div",__assign$3({onClick:function(){return tme.handleArrow($P)},className:lme("Tabs-linksContainer-arrow","Tabs-linksContainer-arrow--"+$P,fme&&"Tabs-linksContainer-arrow--disabled")},ime==null?void 0:ime.getChild("arrow-".concat($P)).getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null}},eme.prototype.handleAddBtn=function(){var $P=this.props.onAdd;$P&&$P()},eme.prototype.renderNavs=function($P){var tme=this;$P===void 0&&($P=!1);var ame=this.props,nme=ame.children,rme=ame.collapseOnExceed,ime=ame.translate,ome=ame.classnames,lme=ame.popOverContainer,sme=ame.collapseBtnLabel,cme=ame.titleClassName;if(!Array.isArray(nme))return null;var dme=nme.map(function(fme,pme){return tme.renderNav(fme,pme,$P)});if(typeof rme=="number"&&rme&&dme.length>rme){var ume=dme.splice(rme-1,dme.length+1-rme);dme.push(React__default.createElement(PopOverContainer,{key:"togglor",placement:"center-bottom-center-top center-top-center-bottom",popOverClassName:ome("Tabs-PopOver"),popOverContainer:lme||function(){return reactDomExports.findDOMNode(tme)},popOverRender:function(fme){var pme=fme.onClose;return React__default.createElement("ul",{className:ome("Tabs-PopOverList","DropDown-menu"),onClick:pme},ume)}},function(fme){var pme=fme.onClick;fme.ref;var hme=fme.isOpened;return React__default.createElement("li",{className:ome("Tabs-link",cme,ume.some(function(bme){return~bme.props.className.indexOf("is-active")})?"is-active":"")},React__default.createElement("a",{className:ome("Tabs-togglor",hme?"is-opened":""),onClick:pme},React__default.createElement("span",null,ime(sme||"more")),React__default.createElement("span",{className:ome("Tabs-togglor-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))))}))}return dme},eme.prototype.render=function(){var $P,tme=this,ame=this.props,nme=ame.classnames,rme=ame.contentClassName,ime=ame.className,ome=ame.style,lme=ame.mode,sme=ame.tabsMode,cme=ame.children,dme=ame.additionBtns,ume=ame.toolbar,fme=ame.linksClassName,pme=ame.addable,hme=ame.draggable,bme=ame.sidePosition,mme=ame.addBtnText,vme=ame.mobileUI,gme=ame.testIdBuilder,yme=this.state.isOverflow;if(!Array.isArray(cme))return null;var _me=sme||lme,$me=React__default.createElement(React__default.Fragment,null,pme&&React__default.createElement("div",__assign$3({className:nme("Tabs-addable"),onClick:function(){return tme.handleAddBtn()}},gme==null?void 0:gme.getChild("add-tab").getTestId()),React__default.createElement(Icon$1,{icon:"plus",className:nme("Tabs-addable-icon")}),mme),ume);return React__default.createElement("div",__assign$3({className:nme("Tabs",($P={},$P["Tabs--".concat(_me)]=_me,$P["sidebar--".concat(bme)]=_me==="sidebar",$P),ime),style:ome},gme==null?void 0:gme.getTestId()),["vertical","sidebar","chrome"].includes(_me)?React__default.createElement("div",{className:nme("Tabs-linksWrapper")},React__default.createElement("ul",__assign$3({className:nme("Tabs-links",fme,{"is-mobile":vme}),role:"tablist"},gme==null?void 0:gme.getChild("links").getTestId()),this.renderNavs(),dme,ume)):React__default.createElement("div",{className:nme("Tabs-linksContainer-wrapper",ume&&"Tabs-linksContainer-wrapper--toolbar"),ref:this.resizeDom},React__default.createElement("div",__assign$3({className:nme("Tabs-linksContainer",yme&&"Tabs-linksContainer--overflow")},gme==null?void 0:gme.getChild("links").getTestId()),vme?null:this.renderArrow("left"),React__default.createElement("div",{className:nme("Tabs-linksContainer-main")},React__default.createElement("ul",{className:nme("Tabs-links",fme,{"is-mobile":vme}),role:"tablist",ref:this.navMain},this.renderNavs(!0),dme,!yme&&$me)),vme?null:this.renderArrow("right")),yme&&$me),React__default.createElement("div",{className:nme("Tabs-content",rme)},cme.map(function(Cme,Sme){return tme.renderTab(Cme,Sme)})),hme&&React__default.createElement("div",__assign$3({className:nme("Tabs-drag-tip"),ref:this.dragTipRef},gme==null?void 0:gme.getChild("drag").getTestId())))},eme.defaultProps={mode:"",contentClassName:"",showTip:!1,showTipClassName:"",sidePosition:"left",addBtnText:"新增",collapseBtnLabel:"more"},eme.Tab=Tab$1,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleStartEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditInputChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragTipRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"destroyDragging",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"initDragging",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[WheelEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleWheel",null),eme}(React__default.Component),ThemedTabs=localeable(themeable(uncontrollable(Tabs,{activeKey:"onSelect"})));function filterUrl(x_){return x_}window.MonacoEnvironment||(window.MonacoEnvironment={getWorkerUrl:function(x_,eme){var $P="/pkg/editor.worker.js";return eme==="json"?$P="/pkg/json.worker.js":eme==="css"?$P="/pkg/css.worker.js":eme==="html"?$P="/pkg/html.worker.js":(eme==="typescript"||eme==="javascript")&&($P="/pkg/ts.worker.js"),$P=$P,/^https?/.test($P)?"data:text/javascript;charset=utf-8,".concat(encodeURIComponent(`
        importScripts('`.concat($P,"');")),`
      `):$P}});function monacoFactory(x_,eme,$P){return eme.editor.create(x_,__assign$3({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},scrollbar:{alwaysConsumeMouseWheel:!1},"bracketPairColorization.enabled":!0},$P))}var Editor$3=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isFullscreen:!1,innerWidth:"auto",innerHeight:"auto"},tme.disposes=[],tme.wrapperRef=tme.wrapperRef.bind(tme),tme.getDom=tme.getDom.bind(tme),tme.currentValue=$P.value,tme}return eme.prototype.componentDidUpdate=function($P){var tme,ame;if(this.props.value!==this.currentValue&&this.editor&&!this.props.isDiffEditor){var nme=String(this.props.value);if(this.props.language==="json")try{nme=JSON.stringify(JSON.parse(nme),null,2)}catch{}this.preventTriggerChangeEvent=!0;var rme=this.editor.getModifiedEditor?this.editor.getModifiedEditor():this.editor,ime=rme.getModel();rme.pushUndoStop(),ime.pushEditOperations([],[{range:ime.getFullModelRange(),text:nme}]),rme.pushUndoStop(),this.preventTriggerChangeEvent=!1}this.props.options.readOnly!==$P.options.readOnly&&this.editor&&((ame=(tme=this.editor).updateOptions)===null||ame===void 0||ame.call(tme,this.props.options))},eme.prototype.componentWillUnmount=function(){var $P;if(this.editor){var tme=this.props.context||window,ame=tme.monaco||window.monaco,nme=this.props.editorWillUnmount;nme&&nme(this.editor,ame)}this.disposes.forEach(function(rme){return rme()}),this.disposes=[],($P=this.editor)===null||$P===void 0||$P.dispose()},eme.prototype.wrapperRef=function($P){if(this.container=$P,$P)this.loadMonaco();else try{this.disposes.forEach(function(tme){return tme()}),this.disposes=[],this.editor&&(this.editor.getModel().dispose(),this.editor.dispose()),this.editor=null}catch{}},eme.prototype.getDom=function(){return this.container},eme.prototype.loadMonaco=function(){var $P=this;window.__amis_monaco_editor_locale=this.props.locale,__vitePreload(()=>import("./editor.main-Bvo9zIz-.js").then(tme=>tme.b),__vite__mapDeps([0,1])).then(function(tme){return $P.initMonaco(tme)})},eme.prototype.initMonaco=function($P){var tme,ame,nme=this.props.value!==null?this.props.value:this.props.defaultValue,rme=this.props,ime=rme.language,ome=rme.editorTheme,lme=rme.options,sme=rme.editorFactory,cme=this.container;if(cme){if(this.editorWillMount($P),this.props.language==="json")try{nme=JSON.stringify(typeof nme=="string"?JSON.parse(nme):nme,null,2)}catch{}var dme=sme||monacoFactory;this.editor=dme(cme,$P,__assign$3(__assign$3({},lme),{readOnly:this.props.disabled,automaticLayout:!0,value:nme,language:ime,editorTheme:ome,theme:ome})),(tme=$P.languages.json)===null||tme===void 0||tme.jsonDefaults.setDiagnosticsOptions(__assign$3({enableSchemaRequest:!0,validate:!0,allowComments:!0},(ame=$P.languages.json)===null||ame===void 0?void 0:ame.jsonDefaults.diagnosticsOptions)),this.editorDidMount(this.editor,$P)}},eme.prototype.editorWillMount=function($P){var tme=this.props.editorWillMount;tme&&tme($P)},eme.prototype.editorDidMount=function($P,tme){var ame=this,nme,rme,ime,ome=this.props,lme=ome.editorDidMount,sme=ome.onChange,cme=ome.onFocus,dme=ome.onBlur;lme&&lme($P,tme),$P.onDidChangeModelContent&&this.disposes.push($P.onDidChangeModelContent(function(mme){var vme=$P.getValue();ame.currentValue=vme,!ame.preventTriggerChangeEvent&&sme&&sme(vme,mme)}).dispose),cme&&$P.onDidFocusEditorWidget&&this.disposes.push($P.onDidFocusEditorWidget(cme).dispose),dme&&$P.onDidBlurEditorWidget&&this.disposes.push($P.onDidBlurEditorWidget(dme).dispose);var ume=(ime=(rme=(nme=this===null||this===void 0?void 0:this.editor)===null||nme===void 0?void 0:nme._configuration)===null||rme===void 0?void 0:rme._elementSizeObserver)!==null&&ime!==void 0?ime:{},fme=ume.width,pme=fme===void 0?"auto":fme,hme=ume.height,bme=hme===void 0?"auto":hme;this.setState({innerHeight:bme,innerWidth:pme})},eme.prototype.handleFullscreenModeChange=function(){var $P=this;this.setState({isFullscreen:!this.state.isFullscreen},function(){return!$P.state.isFullscreen&&$P.editor.layout({width:$P.state.innerWidth,height:$P.state.innerHeight})})},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.width,nme=$P.height,rme=$P.translate,ime=$P.placeholder,ome=$P.classnames,lme=$P.value,sme=__assign$3({},this.props.style||{});return sme.width=ame,sme.height=nme,React__default.createElement("div",{className:ome("MonacoEditor",{"is-fullscreen":this.state.isFullscreen},tme),style:sme,ref:this.wrapperRef},this.editor&&ime&&!lme?React__default.createElement("span",{className:ome("MonacoEditor-placeholder")},ime):null,this.editor&&this.props.allowFullscreen?React__default.createElement("div",{className:ome("MonacoEditor-header")},React__default.createElement("a",{className:ome("Modal-close","MonacoEditor-fullscreen"),"data-tooltip":this.state.isFullscreen?rme("Editor.exitFullscreen"):rme("Editor.fullscreen"),"data-position":"left",onClick:this.handleFullscreenModeChange},React__default.createElement(Icon$1,{icon:this.state.isFullscreen?"compress-alt":"expand-alt",className:"icon"}))):null)},eme.defaultProps={language:"javascript",editorTheme:"vs",width:"100%",height:"100%",allowFullscreen:!1,options:{}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFullscreenModeChange",null),eme}(React__default.Component),MonacoEditor=themeable(localeable(Editor$3,["getDom"]),["getDom"]),DiffEditor=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.toDispose=[],$P.domRef=React__default.createRef(),$P.prevHeight=0,$P}return eme.prototype.componentDidUpdate=function($P){var tme,ame,nme=this.props,rme=nme.value,ime=nme.originValue;if(this.originalEditor&&ime!==$P.originValue&&this.originalEditor.getModel().setValue(ime||""),this.modifiedEditor&&rme!==$P.value){var ome=this.modifiedEditor.getModel().getValue();ome!==rme&&this.modifiedEditor.getModel().setValue(rme||"")}this.props.disabled!==$P.disabled&&this.modifiedEditor&&((ame=(tme=this.modifiedEditor).updateOptions)===null||ame===void 0||ame.call(tme,{readOnly:this.props.disabled}))},eme.prototype.componentWillUnmount=function(){this.toDispose.forEach(function($P){return $P()})},eme.prototype.updateContainerSize=function($P,tme){var ame,nme,rme=(ame=this.domRef.current)===null||ame===void 0?void 0:ame.getDom();if(rme){var ime=$P.getOption(tme.editor.EditorOption.lineHeight),ome=((nme=$P.getModel())===null||nme===void 0?void 0:nme.getLineCount())||1,lme=$P.getTopForLineNumber(ome+1)+ime;this.prevHeight!==lme&&rme.parentElement&&(this.prevHeight=lme,rme.parentElement.style.height="".concat(lme,"px"),$P.layout())}},eme.prototype.editorFactory=function($P,tme,ame){return this.props.editorFactory?this.props.editorFactory($P,tme,ame):tme.editor.createDiffEditor($P,ame)},eme.prototype.handleModifiedEditorChange=function($P){var tme=this.props.onChange,ame=this.modifiedEditor.getModel().getValue();tme==null||tme(ame,$P)},eme.prototype.editorDidMount=function($P,tme){var ame=this,nme=this.props,rme=nme.value,ime=nme.originValue,ome=nme.language,lme=nme.onFocus,sme=nme.onBlur,cme=nme.editorDidMount;cme==null||cme($P,tme),this.monaco=tme,this.editor=$P,this.modifiedEditor=$P.getModifiedEditor(),this.originalEditor=$P.getOriginalEditor(),lme&&this.toDispose.push(this.modifiedEditor.onDidFocusEditorWidget(lme).dispose),sme&&this.toDispose.push(this.modifiedEditor.onDidBlurEditorWidget(sme).dispose),this.toDispose.push(this.modifiedEditor.onDidChangeModelDecorations(function(){ame.updateContainerSize(ame.modifiedEditor,tme),requestAnimationFrame(ame.updateContainerSize.bind(ame,ame.modifiedEditor,tme))}).dispose),this.toDispose.push(this.modifiedEditor.onDidChangeModelContent(this.handleModifiedEditorChange).dispose),this.editor.setModel({original:this.monaco.editor.createModel(ime||"",ome),modified:this.monaco.editor.createModel(rme,ome)})},eme.prototype.render=function(){var $P=this.props;$P.value,$P.originValue,$P.options;var tme=__rest$14($P,["value","originValue","options"]);return React__default.createElement(MonacoEditor,__assign$3({},tme,{ref:this.domRef,editorDidMount:this.editorDidMount,editorFactory:this.editorFactory,isDiffEditor:!0}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateContainerSize",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorFactory",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleModifiedEditorChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorDidMount",null),eme}(React__default.Component);function Layout$1(x_){var eme,$P=x_.header,tme=x_.headerClassName,ame=x_.aside,nme=x_.asideClassName,rme=nme===void 0?"":nme,ime=x_.children,ome=x_.className,lme=x_.contentClassName,sme=x_.folded,cme=x_.asideFixed,dme=cme===void 0?!0:cme,ume=x_.headerFixed,fme=ume===void 0?!0:ume,pme=x_.footer,hme=pme===void 0?!1:pme,bme=x_.offScreen,mme=bme===void 0?!1:bme,vme=x_.size,gme=x_.boxed,yme=x_.classnames,_me=x_.bodyClassName,$me=x_.mainClassName,Cme=React__default.createElement("div",{className:yme("Layout-body",lme)},ime);return ame&&(Cme=React__default.createElement("div",{className:yme("Layout-content"),role:"main"},Cme)),React__default.useEffect(function(){return _me&&document.body.classList.add(_me),function(){_me&&document.body.classList.remove(_me)}},[_me]),React__default.createElement("div",{className:yme("Layout",ome,(eme={"Layout--boxed":gme,"Layout--withAside":!!ame,"Layout--headerFixed":$P?fme:!1,"Layout--asideFixed":ame?dme:!1,"Layout--folded":sme,"Layout--offScreen":mme},eme["Layout--".concat(vme)]=vme,eme["Layout--noFooter"]=!hme,eme["Layout--noHeader"]=!$P,eme))},$P?React__default.createElement("div",{className:yme("Layout-header",tme)},$P):null,React__default.createElement("div",{className:yme("Layout-main",$me)},ame?React__default.createElement("div",{className:yme("Layout-aside",rme)},React__default.createElement("div",{className:yme("Layout-asideWrap")},React__default.createElement("div",{id:"asideInner",className:yme("Layout-asideInner")},ame))):null,Cme),hme?React__default.createElement("footer",{className:yme("Layout-footer"),role:"footer"},hme):null)}var Layout$1$1=themeable(Layout$1),toInteger$3=toInteger_1;function isInteger(x_){return typeof x_=="number"&&x_==toInteger$3(x_)}var isInteger_1=isInteger;const isInteger$1=getDefaultExportFromCjs(isInteger_1);var _a$4,_b$2,_c$2,_d$2,_e$2,ALIGNMENT;(function(x_){x_.AUTO="auto",x_.START="start",x_.CENTER="center",x_.END="end"})(ALIGNMENT||(ALIGNMENT={}));var DIRECTION;(function(x_){x_.HORIZONTAL="horizontal",x_.VERTICAL="vertical"})(DIRECTION||(DIRECTION={}));var SCROLL_CHANGE_REASON;(function(x_){x_.OBSERVED="observed",x_.REQUESTED="requested"})(SCROLL_CHANGE_REASON||(SCROLL_CHANGE_REASON={}));var scrollProp=(_a$4={},_a$4[DIRECTION.VERTICAL]="scrollTop",_a$4[DIRECTION.HORIZONTAL]="scrollLeft",_a$4),sizeProp=(_b$2={},_b$2[DIRECTION.VERTICAL]="height",_b$2[DIRECTION.HORIZONTAL]="width",_b$2),positionProp=(_c$2={},_c$2[DIRECTION.VERTICAL]="top",_c$2[DIRECTION.HORIZONTAL]="left",_c$2),marginProp=(_d$2={},_d$2[DIRECTION.VERTICAL]="marginTop",_d$2[DIRECTION.HORIZONTAL]="marginLeft",_d$2),oppositeMarginProp=(_e$2={},_e$2[DIRECTION.VERTICAL]="marginBottom",_e$2[DIRECTION.HORIZONTAL]="marginRight",_e$2),SizeAndPositionManager=function(){function x_(eme){var $P=eme.itemCount,tme=eme.itemSizeGetter,ame=eme.estimatedItemSize;this.itemSizeGetter=tme,this.itemCount=$P,this.estimatedItemSize=ame,this.itemSizeAndPositionData={},this.lastMeasuredIndex=-1}return x_.prototype.updateConfig=function(eme){var $P=eme.itemCount,tme=eme.itemSizeGetter,ame=eme.estimatedItemSize;$P!=null&&(this.itemCount=$P),ame!=null&&(this.estimatedItemSize=ame),tme!=null&&(this.itemSizeGetter=tme)},x_.prototype.getLastMeasuredIndex=function(){return this.lastMeasuredIndex},x_.prototype.getSizeAndPositionForIndex=function(eme){if(eme<0||eme>=this.itemCount)throw Error("Requested index ".concat(eme," is outside of range 0..").concat(this.itemCount));if(eme>this.lastMeasuredIndex){for(var $P=this.getSizeAndPositionOfLastMeasuredItem(),tme=$P.offset+$P.size,ame=this.lastMeasuredIndex+1;ame<=eme;ame++){var nme=this.itemSizeGetter(ame);if(nme==null||isNaN(nme))throw Error("Invalid size returned for index ".concat(ame," of value ").concat(nme));this.itemSizeAndPositionData[ame]={offset:tme,size:nme},tme+=nme}this.lastMeasuredIndex=eme}return this.itemSizeAndPositionData[eme]},x_.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}},x_.prototype.getTotalSize=function(){var eme=this.getSizeAndPositionOfLastMeasuredItem();return eme.offset+eme.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize},x_.prototype.getUpdatedOffsetForIndex=function(eme){var $P=eme.align,tme=$P===void 0?ALIGNMENT.START:$P,ame=eme.containerSize,nme=eme.currentOffset,rme=eme.targetIndex;if(ame<=0)return 0;var ime=this.getSizeAndPositionForIndex(rme),ome=ime.offset,lme=ome-ame+ime.size,sme;switch(tme){case ALIGNMENT.END:sme=lme;break;case ALIGNMENT.CENTER:sme=ome-(ame-ime.size)/2;break;case ALIGNMENT.START:sme=ome;break;default:sme=Math.max(lme,Math.min(ome,nme))}var cme=this.getTotalSize();return Math.max(0,Math.min(cme-ame,sme))},x_.prototype.getVisibleRange=function(eme){var $P=eme.containerSize,tme=eme.offset,ame=eme.overscanCount,nme=this.getTotalSize();if(nme===0)return{};var rme=tme+$P,ime=this.findNearestItem(tme);if(typeof ime>"u")throw Error("Invalid offset ".concat(tme," specified"));var ome=this.getSizeAndPositionForIndex(ime);tme=ome.offset+ome.size;for(var lme=ime;tme<rme&&lme<this.itemCount-1;)lme++,tme+=this.getSizeAndPositionForIndex(lme).size;return ame&&(ime=Math.max(0,ime-ame),lme=Math.min(lme+ame,this.itemCount-1)),{start:ime,stop:lme}},x_.prototype.resetItem=function(eme){this.lastMeasuredIndex=Math.min(this.lastMeasuredIndex,eme-1)},x_.prototype.findNearestItem=function(eme){if(isNaN(eme))throw Error("Invalid offset ".concat(eme," specified"));eme=Math.max(0,eme);var $P=this.getSizeAndPositionOfLastMeasuredItem(),tme=Math.max(0,this.lastMeasuredIndex);return $P.offset>=eme?this.binarySearch({high:tme,low:0,offset:eme}):this.exponentialSearch({index:tme,offset:eme})},x_.prototype.binarySearch=function(eme){for(var $P=eme.low,tme=eme.high,ame=eme.offset,nme=0,rme=0;$P<=tme;){if(nme=$P+Math.floor((tme-$P)/2),rme=this.getSizeAndPositionForIndex(nme).offset,rme===ame)return nme;rme<ame?$P=nme+1:rme>ame&&(tme=nme-1)}return $P>0?$P-1:0},x_.prototype.exponentialSearch=function(eme){for(var $P=eme.index,tme=eme.offset,ame=1;$P<this.itemCount&&this.getSizeAndPositionForIndex($P).offset<tme;)$P+=ame,ame*=2;return this.binarySearch({high:Math.min($P,this.itemCount-1),low:Math.floor($P/2),offset:tme})},x_}(),AutoSizer=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={width:0,height:0},tme}return eme.prototype.componentDidMount=function(){var $P=this,tme=reactDomExports.findDOMNode(this);this.unSensor=resizeSensor(tme,function(){return $P.sizer(tme)}),this.sizer(tme)},eme.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},eme.prototype.sizer=function($P){var tme,ame,nme=$P.offsetWidth,rme=$P.offsetHeight;(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onResize)===null||ame===void 0||ame.call(tme,{width:nme,height:rme}),this.setState({width:nme,height:rme})},eme.prototype.render=function(){var $P=this.props,tme=$P.children,ame=$P.WrapperComponent,nme=$P.minHeight,rme=this.state,ime=rme.width,ome=rme.height,lme=ame??"div";return reactExports.createElement(lme,{style:__assign$3({display:"block",position:"relative",width:"100%",height:"100%"},nme?{minHeight:nme}:{})},tme({width:ime,height:ome}))},eme}(reactExports.PureComponent),STYLE_WRAPPER={overflow:"auto",willChange:"transform",WebkitOverflowScrolling:"touch"},STYLE_INNER={position:"relative",width:"auto",whiteSpace:"nowrap",minHeight:"100%"},STYLE_ITEM={position:"absolute",top:0,left:0,width:"100%"},STYLE_STICKY_ITEM=__assign$3(__assign$3({},STYLE_ITEM),{position:"sticky"}),VirtualList=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.itemSizeGetter=function(tme){return function(ame){return $P.getSize(ame,tme)}},$P.sizeAndPositionManager=new SizeAndPositionManager({itemCount:$P.props.itemCount,itemSizeGetter:$P.itemSizeGetter($P.props.itemSize),estimatedItemSize:$P.getEstimatedItemSize()}),$P.state={offset:$P.props.scrollOffset||$P.props.scrollToIndex!=null&&$P.getOffsetForIndex($P.props.scrollToIndex)||0,scrollChangeReason:SCROLL_CHANGE_REASON.REQUESTED},$P.styleCache={},$P.getRef=function(tme){tme&&($P.rootNode=tme)},$P.handleScroll=function(tme){var ame=$P.props.onScroll,nme=$P.getNodeOffset();nme<0||$P.state.offset===nme||tme.target!==$P.rootNode||($P.setState({offset:nme,scrollChangeReason:SCROLL_CHANGE_REASON.OBSERVED}),typeof ame=="function"&&ame(nme,tme))},$P}return eme.prototype.componentDidMount=function(){var $P=this.props,tme=$P.scrollOffset,ame=$P.scrollToIndex;this.rootNode.addEventListener("scroll",this.handleScroll,{passive:!0}),this.updateRootWidth(),tme!=null?this.scrollTo(tme):ame!=null&&this.scrollTo(this.getOffsetForIndex(ame))},eme.prototype.updateRootWidth=function(){for(var $P=this.rootNode.children[0].children,tme=window.innerWidth-document.documentElement.clientWidth||15,ame=this.rootNode.parentElement.getBoundingClientRect().width,nme=0,rme=0;rme<$P.length;rme++){var ime=$P[rme].getBoundingClientRect().width;ime>nme&&(nme=ime)}nme>ame&&(this.rootNode.style.width=nme+tme+"px")},eme.prototype.componentDidUpdate=function($P,tme){var ame=this.props,nme=$P.estimatedItemSize,rme=$P.itemCount,ime=$P.itemSize,ome=$P.scrollOffset,lme=$P.scrollToAlignment,sme=$P.scrollToIndex,cme=ame.scrollToIndex!==sme||ame.scrollToAlignment!==lme,dme=ame.itemCount!==rme||ame.itemSize!==ime||ame.estimatedItemSize!==nme;ame.itemSize!==ime&&this.sizeAndPositionManager.updateConfig({itemSizeGetter:this.itemSizeGetter(ame.itemSize)}),(ame.itemCount!==rme||ame.estimatedItemSize!==nme)&&this.sizeAndPositionManager.updateConfig({itemCount:ame.itemCount,estimatedItemSize:this.getEstimatedItemSize(ame)}),dme&&this.recomputeSizes(),ame.scrollOffset!==ome?this.setState({offset:ame.scrollOffset||0,scrollChangeReason:SCROLL_CHANGE_REASON.REQUESTED}):typeof ame.scrollToIndex=="number"&&(cme||dme)&&this.setState({offset:this.getOffsetForIndex(ame.scrollToIndex,ame.scrollToAlignment,ame.itemCount),scrollChangeReason:SCROLL_CHANGE_REASON.REQUESTED});var ume=this.state,fme=ume.offset,pme=ume.scrollChangeReason;tme.offset!==fme&&pme===SCROLL_CHANGE_REASON.REQUESTED&&this.scrollTo(fme),ame.itemCount!==rme&&this.forceUpdate()},eme.prototype.componentWillUnmount=function(){this.rootNode.removeEventListener("scroll",this.handleScroll)},eme.prototype.scrollTo=function($P){var tme=this.props.scrollDirection,ame=tme===void 0?DIRECTION.VERTICAL:tme;this.rootNode[scrollProp[ame]]=$P},eme.prototype.getOffsetForIndex=function($P,tme,ame){tme===void 0&&(tme=this.props.scrollToAlignment),ame===void 0&&(ame=this.props.itemCount);var nme=this.props.scrollDirection,rme=nme===void 0?DIRECTION.VERTICAL:nme;return($P<0||$P>=ame)&&($P=0),this.sizeAndPositionManager.getUpdatedOffsetForIndex({align:tme,containerSize:this.props[sizeProp[rme]],currentOffset:this.state&&this.state.offset||0,targetIndex:$P})},eme.prototype.recomputeSizes=function($P){$P===void 0&&($P=0),this.styleCache={},this.sizeAndPositionManager.resetItem($P)},eme.prototype.render=function(){var $P,tme=this,ame=this.props;ame.estimatedItemSize;var nme=ame.height,rme=ame.overscanCount,ime=rme===void 0?3:rme,ome=ame.renderItem;ame.itemCount,ame.itemSize;var lme=ame.onItemsRendered;ame.onScroll;var sme=ame.scrollDirection,cme=sme===void 0?DIRECTION.VERTICAL:sme;ame.scrollOffset,ame.scrollToIndex,ame.scrollToAlignment;var dme=ame.stickyIndices,ume=ame.style,fme=ame.width,pme=ame.WrapperComponent,hme=ame.InnerComponent,bme=ame.prefix,mme=ame.innerStyleFilter,vme=__rest$14(ame,["estimatedItemSize","height","overscanCount","renderItem","itemCount","itemSize","onItemsRendered","onScroll","scrollDirection","scrollOffset","scrollToIndex","scrollToAlignment","stickyIndices","style","width","WrapperComponent","InnerComponent","prefix","innerStyleFilter"]),gme=this.state.offset,yme=this.sizeAndPositionManager.getVisibleRange({containerSize:this.props[sizeProp[cme]]||0,offset:gme,overscanCount:ime}),_me=yme.start,$me=yme.stop,Cme=[],Sme=__assign$3(__assign$3(__assign$3({},STYLE_WRAPPER),ume),{height:nme,width:fme}),Eme=__assign$3(__assign$3({},STYLE_INNER),($P={},$P[sizeProp[cme]]=this.sizeAndPositionManager.getTotalSize(),$P));if(dme!=null&&dme.length!==0&&(dme.forEach(function(Rme){return Cme.push(ome({index:Rme,style:tme.getStyle(Rme,!0)}))}),cme===DIRECTION.HORIZONTAL&&(Eme.display="flex")),typeof _me<"u"&&typeof $me<"u"){for(var xme=_me;xme<=$me;xme++)dme!=null&&~dme.indexOf(xme)||Cme.push(ome({index:xme,style:this.getStyle(xme,!1)}));typeof lme=="function"&&lme({startIndex:_me,stopIndex:$me})}var Tme=pme||"div",Ome=hme||"div";return reactExports.createElement(Tme,__assign$3({ref:this.getRef},vme,{style:Sme}),bme??null,reactExports.createElement(Ome,{style:mme?mme(Eme):Eme},Cme))},eme.prototype.getNodeOffset=function(){var $P=this.props.scrollDirection,tme=$P===void 0?DIRECTION.VERTICAL:$P;return this.rootNode[scrollProp[tme]]},eme.prototype.getEstimatedItemSize=function($P){return $P===void 0&&($P=this.props),$P.estimatedItemSize||typeof $P.itemSize=="number"&&$P.itemSize||50},eme.prototype.getSize=function($P,tme){return typeof tme=="function"?tme($P):Array.isArray(tme)?tme[$P]:tme},eme.prototype.getStyle=function($P,tme){var ame,nme,rme=this.styleCache[$P];if(rme)return rme;var ime=this.props.scrollDirection,ome=ime===void 0?DIRECTION.VERTICAL:ime,lme=this.sizeAndPositionManager.getSizeAndPositionForIndex($P),sme=lme.size,cme=lme.offset;return this.styleCache[$P]=tme?__assign$3(__assign$3({},STYLE_STICKY_ITEM),(ame={},ame[sizeProp[ome]]=sme,ame[marginProp[ome]]=cme,ame[oppositeMarginProp[ome]]=-(cme+sme),ame.zIndex=1,ame)):__assign$3(__assign$3({},STYLE_ITEM),(nme={},nme[sizeProp[ome]]=sme,nme[positionProp[ome]]=cme,nme))},eme.defaultProps={overscanCount:3,scrollDirection:DIRECTION.VERTICAL,width:"100%"},eme.propTypes={estimatedItemSize:propTypesExports.number,height:propTypesExports.oneOfType([propTypesExports.number,propTypesExports.string]).isRequired,itemCount:propTypesExports.number.isRequired,itemSize:propTypesExports.oneOfType([propTypesExports.number,propTypesExports.array,propTypesExports.func]).isRequired,onScroll:propTypesExports.func,onItemsRendered:propTypesExports.func,overscanCount:propTypesExports.number,renderItem:propTypesExports.func.isRequired,scrollOffset:propTypesExports.number,scrollToIndex:propTypesExports.number,scrollToAlignment:propTypesExports.oneOf([ALIGNMENT.AUTO,ALIGNMENT.START,ALIGNMENT.CENTER,ALIGNMENT.END]),scrollDirection:propTypesExports.oneOf([DIRECTION.HORIZONTAL,DIRECTION.VERTICAL]),stickyIndices:propTypesExports.arrayOf(propTypesExports.number),style:propTypesExports.object,width:propTypesExports.oneOfType([propTypesExports.number,propTypesExports.string])},eme}(reactExports.PureComponent);function withStore(x_){return function(eme){var $P;eme=observer(eme);var tme=hoistNonReactStatics(($P=function(ame){__extends$2(nme,ame);function nme(){var rme=ame!==null&&ame.apply(this,arguments)||this;return rme.store=x_(rme.props),rme.refFn=function(ime){rme.ref=ime},rme}return nme.prototype.componentWillUnmount=function(){this.store&&destroy(this.store),delete this.store},nme.prototype.getWrappedInstance=function(){return this.ref},nme.prototype.render=function(){var rme={store:this.store};return React__default.createElement(eme,__assign$3({},this.props,rme,{ref:this.refFn}))},nme}(React__default.Component),$P.displayName="WithStore(".concat(eme.displayName||"Unkown",")"),$P.ComposedComponent=eme,$P),eme);return tme}}var Store=types.model("RemoteConfigStore").props({fetching:!1,errorMsg:"",config:types.frozen(),data:types.frozen({})}).actions(function(x_){var eme=void 0,$P=null,tme=flow(function(ame,nme,rme,ime){var ome,lme,sme,cme,dme;return ime===void 0&&(ime={}),__generator(this,function(ume){switch(ume.label){case 0:return ume.trys.push([0,2,3,4]),$P&&($P==null||$P("remote load request cancelled."),$P=null,x_.fetching=!1),x_.fetching?[2]:(x_.fetching=!0,[4,ame.fetcher(nme,rme,{cancelExecutor:function(fme){return $P=fme}})]);case 1:if(ome=ume.sent(),$P=null,!isAlive(x_))return[2];if(ome.ok)return lme=normalizeApiResponseData(ome.data),sme=ime.adaptor?ime.adaptor(lme,eme.props):lme,x_.setConfig(sme,ime,"remote"),(dme=ime.afterLoad)===null||dme===void 0||dme.call(ime,lme,x_.config,eme.props),[2,ome];throw new Error(ome.msg||"fetch error");case 2:return cme=ume.sent(),isAlive(x_)&&(x_.errorMsg=cme.message),[3,4];case 3:return isAlive(x_)&&(x_.fetching=!1),[7];case 4:return[2]}})});return{setComponent:function(ame){eme=ame},load:tme,setData:function(ame){x_.data=ame||{}},setConfig:function(ame,nme,rme){nme.normalizeConfig&&(ame=nme.normalizeConfig(ame,x_.config,eme.props,rme)||ame),x_.config=ame}}});function withRemoteConfig(x_){return x_===void 0&&(x_={}),function(eme){var $P,tme=hoistNonReactStatics(withStore(function(){return Store.create()})(($P=function(ame){__extends$2(nme,ame);function nme(rme){var ime=this,ome;return ime=ame.call(this,rme)||this,ime.toDispose=[],ime.loadOptions=debounce$6(ime.loadAutoComplete.bind(ime),250,{trailing:!0,leading:!1}),ime.setConfig=ime.setConfig.bind(ime),ime.childRef=ime.childRef.bind(ime),rme.store.setComponent(ime),ime.deferLoadConfig=ime.deferLoadConfig.bind(ime),(ome=rme.remoteConfigRef)===null||ome===void 0||ome.call(rme,ime),rme.store.setData(rme.data),ime.syncConfig(),ime}return nme.prototype.componentDidMount=function(){var rme=this,ime=this.props.env||this.context,ome=this.props,lme=ome.store,sme=ome.data,cme=this.props[x_.sourceField||"source"];isPureVariable(cme)?this.toDispose.push(reaction(function(){return resolveVariableAndFilter(cme,lme.data,"| raw")},function(){return rme.syncConfig()},{equals:comparer.structural})):ime&&isEffectiveApi(cme,sme)&&(this.loadConfig(),cme.autoRefresh!==!1&&this.toDispose.push(reaction(function(){var dme=normalizeApi(cme);return dme.trackExpression?tokenize(dme.trackExpression,lme.data):buildApi(dme,lme.data,{ignoreData:!0}).url},function(){return rme.loadConfig()})))},nme.prototype.componentDidUpdate=function(rme){var ime=this.props;ime.data!==rme.data&&ime.store.setData(ime.data)},nme.prototype.componentWillUnmount=function(){var rme,ime;this.toDispose.forEach(function(ome){return ome()}),this.toDispose=[],(ime=(rme=this.props).remoteConfigRef)===null||ime===void 0||ime.call(rme,void 0),this.loadOptions.cancel()},nme.prototype.loadConfig=function(rme){return rme===void 0&&(rme=this.props.data),__awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ime=this.props.env||this.context,ome=this.props,lme=ome.store,sme=ome.data,cme=this.props[x_.sourceField||"source"],isPureVariable(cme)&&(cme=resolveVariableAndFilter(cme,sme,"| raw")),ime&&isEffectiveApi(cme,rme)?[4,lme.load(ime,cme,rme,x_)]:[3,2];case 1:dme.sent(),dme.label=2;case 2:return[2]}})})},nme.prototype.loadAutoComplete=function(rme){var ime=this.props.env||this.context,ome=this.props,lme=ome.autoComplete,sme=ome.data,cme=ome.store;if(!ime||!ime.fetcher)throw new Error("fetcher is required");var dme=createObject$1(sme,{term:rme,value:rme});return isEffectiveApi(lme,dme)?cme.load(ime,lme,dme,x_):Promise.resolve({options:[]})},nme.prototype.setConfig=function(rme,ime){var ome=this.props.store;ome.setConfig(rme,x_,ime)},nme.prototype.syncConfig=function(){var rme=this.props,ime=rme.store,ome=rme.data,lme=this.props[x_.sourceField||"source"];isPureVariable(lme)?(lme=resolveVariableAndFilter(lme,ome,"| raw")||[],isEffectiveApi(lme,ome)?this.loadConfig():ime.setConfig(lme,x_,"syncConfig")):isObject$8(lme)&&!lme.method&&ime.setConfig(lme,x_,"syncConfig")},nme.prototype.deferLoadConfig=function(rme){var ime,ome;return __awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme;return __generator(this,function(gme){switch(gme.label){case 0:lme=this.props,sme=lme.store,cme=lme.data,dme=lme.deferApi,ume=this.props[x_.sourceField||"source"],fme=this.props.env||this.context,pme=findTreeIndex(sme.config,function(yme){return yme===rme}),hme=(ime=x_.beforeDeferLoad)===null||ime===void 0?void 0:ime.call(x_,rme,pme,sme.config,this.props),hme&&sme.setConfig(hme,x_,"before-defer-load"),gme.label=1;case 1:if(gme.trys.push([1,3,,4]),!isEffectiveApi(rme.deferApi||dme||ume))throw new Error("deferApi is required");return[4,fme.fetcher(rme.deferApi||dme||ume,createObject$1(cme,rme))];case 2:return bme=gme.sent(),[3,4];case 3:return mme=gme.sent(),bme={ok:!1,msg:mme.message,status:500,data:void 0},[3,4];case 4:return[4,(ome=x_.afterDeferLoad)===null||ome===void 0?void 0:ome.call(x_,rme,pme,bme,sme.config,this.props)];case 5:return vme=gme.sent(),vme&&sme.setConfig(vme,x_,"after-defer-load"),[2]}})})},nme.prototype.childRef=function(rme){for(;rme&&rme.getWrappedInstance;)rme=rme.getWrappedInstance();this.ref=rme},nme.prototype.getWrappedInstance=function(){return this.ref},nme.prototype.render=function(){var rme,ime=this.props.store,ome=this.props.env||this.context,lme={config:ime.config,loading:ime.fetching,deferLoad:this.deferLoadConfig,updateConfig:this.setConfig},sme=this.props;sme.remoteConfigRef;var cme=sme.autoComplete,dme=__rest$14(sme,["remoteConfigRef","autoComplete"]),ume=!((rme=eme.prototype)===null||rme===void 0)&&rme.isReactComponent||eme.$$typeof===Symbol.for("react.forward_ref")?{ref:this.childRef}:{forwardedRef:this.childRef};return React__default.createElement(eme,__assign$3({},dme,ome&&isEffectiveApi(cme)&&this.loadOptions?{loadOptions:this.loadOptions}:{},x_.injectedPropsFilter?x_.injectedPropsFilter(lme,this.props):lme,ume))},nme}(React__default.Component),$P.displayName="WithRemoteConfig(".concat(eme.displayName||eme.name,")"),$P.ComposedComponent=eme,$P.contextType=EnvContext,$P)),eme);return tme}}var SelectMobile=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={selection:value2array($P.value,$P),isFocused:!1,inputValue:"",itemHeight:32},tme}return eme.prototype.handleChange=function($P){var tme=__read$3($P,1),ame=tme[0],nme=this.props;nme.onChange;var rme=nme.multiple;nme.simpleValue;var ime=nme.valueField,ome=nme.options,lme=this.state.selection,sme=ome.find(function(ume){return rme?ume[ime]===ame[ime]:ume[ime]===ame});if(rme){var cme=lme.map(function(ume){return ume[ime]});lme=lme.concat();var dme=cme.indexOf(sme==null?void 0:sme[ime]);~dme?lme.splice(dme,1):sme&&lme.push(sme),this.setState({selection:lme})}else this.setState({selection:sme?[sme]:[]})},eme.prototype.handleInputChange=function($P){var tme=this,ame=this.props.loadOptions;this.setState({inputValue:$P.currentTarget.value},function(){return ame&&ame(tme.state.inputValue)})},eme.prototype.getTarget=function(){return this.target||(this.target=reactDomExports.findDOMNode(this)),this.target},eme.prototype.inputRef=function($P){this.input=$P},eme.prototype.toggleCheckAll=function(){var $P=this.props,tme=$P.options;$P.onChange,$P.simpleValue;var ame=$P.checkAllBySearch,nme=$P.labelField,rme=$P.valueField,ime=this.state.inputValue,ome=this.state.selection,lme=ime&&ame!==!1?matchSorter(tme,ime,{keys:[nme||"label",rme||"value"],threshold:matchSorter.rankings.CONTAINS}):tme.concat(),sme=lme.map(function(ume){return ume.value}),cme=ome.map(function(ume){return ume.value}),dme=sme.every(function(ume){return cme.indexOf(ume)>-1});ome=dme?[]:lme,this.setState({selection:ome})},eme.prototype.handleAddClick=function(){var $P=this.props.onAdd;$P&&$P()},eme.prototype.handleEditClick=function($P,tme){var ame=this.props.onEdit;$P.preventDefault(),$P.stopPropagation(),ame&&ame(tme)},eme.prototype.handleDeleteClick=function($P,tme){var ame=this.props.onDelete;$P.preventDefault(),$P.stopPropagation(),ame&&ame(tme)},eme.prototype.onFocus=function($P){var tme=this.props.simpleValue,ame=this.state.selection,nme=tme?ame.map(function(rme){return rme.value}):ame;this.props.disabled||this.props.isOpen||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(__assign$3(__assign$3({},$P),{value:nme}))},eme.prototype.onBlur=function($P){var tme=this.props.simpleValue,ame=this.state.selection,nme=tme?ame.map(function(rme){return rme.value}):ame;this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(__assign$3(__assign$3({},$P),{value:nme}))},eme.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},eme.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},eme.prototype.clearSearchValue=function(){var $P=this.props.loadOptions;this.setState({inputValue:""},function(){return $P==null?void 0:$P("")})},eme.prototype.onConfirm=function(){var $P,tme,ame=this.state.selection,nme=this.props,rme=nme.multiple,ime=nme.onChange,ome=nme.simpleValue,lme=nme.valueField,sme=nme.options,cme=nme.loadOptions,dme=nme.labelField;if(rme)ime(ome?ame.map(function(pme){return pme[lme]}):ame);else{var ume=this.state.inputValue,fme=(ume&&!cme?matchSorter(sme,ume,{keys:[dme||"label",lme||"value"],threshold:matchSorter.rankings.CONTAINS}):sme.concat()).filter(function(pme){return!pme.hidden&&pme.visible!==!1});!ame.length&&fme.length?ime(ome?($P=fme[0])===null||$P===void 0?void 0:$P[lme]:fme[0]):ime(ome?(tme=ame[0])===null||tme===void 0?void 0:tme[lme]:ame[0])}},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.popOverContainer,rme=ame.options,ime=ame.valueField,ome=ame.labelField,lme=ame.noResultsText,sme=ame.loadOptions,cme=ame.multiple,dme=ame.valuesNoWrap,ume=ame.classnames,fme=ame.checkAll,pme=ame.checkAllLabel,hme=ame.checkAllBySearch,bme=ame.searchable,mme=ame.disabled,vme=ame.searchPromptText,gme=ame.visibleItemCount,yme=ame.translate,_me=ame.hideSelected,$me=ame.renderMenu,Cme=ame.virtualThreshold,Sme=Cme===void 0?100:Cme,Eme=ame.isOpen,xme=ame.onClose,Tme=ame.getInputProps,Ome=ame.getItemProps,Rme=ame.selectedItem,Nme=this.state.selection,Ime=this.state.inputValue,Pme=!1,Mme=!1,kme=(Ime&&Eme&&!sme?matchSorter(rme,Ime,{keys:[ome||"label",ime||"value"],threshold:matchSorter.rankings.CONTAINS}):rme.concat()).filter(function(Ume){return!Ume.hidden&&Ume.visible!==!1&&Ume[ome||"label"]}),Bme=kme.length&&kme.length>Sme,Dme=Nme.map(function(Ume){return Ume[ime]});if(cme&&fme){var jme=(hme!==!1?kme:rme).map(function(Ume){return Ume[ime]});Pme=jme.every(function(Ume){return Dme.indexOf(Ume)>-1}),Mme=jme.some(function(Ume){return Dme.indexOf(Ume)>-1})}var Vme=this.props.itemHeight||this.state.itemHeight,Wme=function(Ume){var Gme=Ume.index,Jme=Ume.style,Yme=kme[Gme];if(!Yme)return null;var Qme=Rme===Yme||!!~Dme.indexOf(Yme[ime]);return _me&&Qme?null:React__default.createElement("div",__assign$3({},Ome({key:typeof Yme.value=="string"?"".concat(Yme.label,"-").concat(Yme.value):Gme,index:Gme,item:Yme,disabled:Yme.disabled}),{style:merge$4(Jme,Bme?{width:"100%"}:{}),className:ume("Select-option",{"is-disabled":Yme.disabled,"is-active":Qme,"is-mobile":!0})}),$me?cme?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{title:Yme[ome],className:ume("Select-option-item-check"),onClick:function(){return!Yme.disabled&&$P.handleChange([Yme])}},$me(Yme,{multiple:cme,checkAll:fme,checked:Qme,onChange:function(){return $P.handleChange(Yme)},inputValue:Ime||"",searchable:bme,index:Gme})),Qme?React__default.createElement(Icon$1,{icon:"check",className:ume("Select-option-mcheck")}):null):$me(Yme,{multiple:cme,checkAll:fme,checked:Qme,onChange:function(){return $P.handleChange(Yme)},inputValue:Ime||"",searchable:bme,index:Gme}):cme?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{title:Yme[ome],className:ume("Select-option-item-check"),onClick:function(){return!Yme.disabled&&$P.handleChange([Yme])}},Yme.disabled?Yme[ome]:highlight(Yme[ome],Ime,ume("Select-option-hl")),Yme.tip),Qme?React__default.createElement(Icon$1,{icon:"check",className:ume("Select-option-mcheck")}):null):React__default.createElement("span",{className:ume("Select-option-content"),title:typeof Yme[ome]=="string"?Yme[ome]:""},Yme.disabled?Yme[ome]:highlight(Yme[ome],Ime,ume("Select-option-hl")),Yme.tip))},Lme=React__default.createElement("div",{className:ume("Select-input",{"is-focused":this.state.isFocused})},React__default.createElement(Icon$1,{icon:"search",className:"icon"}),React__default.createElement(Input,__assign$3({},Tme({onFocus:this.onFocus,onBlur:this.onBlur,disabled:mme,placeholder:yme(vme),onChange:this.handleInputChange,ref:this.inputRef}))),Ime!=null&&Ime.length?React__default.createElement("a",{onClick:this.clearSearchValue,className:ume("Select-clear")},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):null),zme=React__default.createElement("div",{className:ume("Select-menu",{"Select--longlist":Bme,"is-mobile":!0})},bme?Lme:null,cme&&dme?React__default.createElement("div",{className:ume("Select-option")},"已选择(",Dme.length,")"):null,cme&&fme&&kme.length?React__default.createElement("div",{className:ume("Select-option")},React__default.createElement(Checkbox$1$1,{checked:Mme,partial:Mme&&!Pme,onChange:this.toggleCheckAll,size:"sm"},yme(pme))):null,kme.length?kme.length>Sme?React__default.createElement(VirtualList,{height:kme.length>8?266:kme.length*Vme,itemCount:kme.length,itemSize:Vme,renderItem:Wme}):kme.map(function(Ume,Gme){return Wme({index:Gme})}):React__default.createElement("div",{className:ume("Select-noResult")},yme(lme)));return React__default.createElement(PopUp$1,{className:ume("Select-popup"),container:nme,isShow:Eme,showConfirm:!0,onConfirm:this.onConfirm,onHide:xme},cme?zme:React__default.createElement("div",{className:ume("Select-popup-inner")},bme?Lme:null,React__default.createElement(Picker$1,{className:"Select-picker",columns:{options:kme,optionRender:$me},highlightTxt:Ime,onChange:function(Ume){return $P.handleChange(Ume)},showToolbar:!1,labelField:ome,valueField:ime,itemHeight:40,visibleItemCount:gme,value:[(tme=Nme[0])===null||tme===void 0?void 0:tme[ime]]})))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getTarget",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLInputElement]),__metadata("design:returntype",void 0)],eme.prototype,"inputRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleCheckAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDeleteClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"focus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearchValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onConfirm",null),eme}(React__default.Component),defaultFilterOption=function(x_,eme,$P){return matchSorter(x_,eme,__assign$3({threshold:matchSorter.rankings.CONTAINS},$P))};function value2array(x_,eme,$P){$P===void 0&&($P=!1);var tme=eme.labelField,ame=eme.valueField,nme=ame===void 0?"value":ame,rme=eme.pathSeparator,ime=eme.delimiter,ome=eme.options,lme=eme.multi,sme=eme.multiple;if($P&&(x_=normalizeNodePath(x_,$P,tme,nme,rme,ime).nodeValueArray),lme||sme){if(typeof x_=="string"&&(x_=x_.split(ime||",")),!Array.isArray(x_)){if(x_==null)return[];x_=[x_]}return x_.map(function(dme){return expandValue(dme,ome,nme)||(isObject$8(dme)&&dme.hasOwnProperty(nme)?dme:void 0)}).filter(function(dme){return dme})}else Array.isArray(x_)&&(x_=x_[0]);var cme=expandValue(x_,ome,nme);return cme?[cme]:isObject$8(x_)&&x_.hasOwnProperty(nme||"value")?[x_]:[]}function expandValue(x_,eme,$P){var tme;$P===void 0&&($P="value");var ame=typeof x_;return ame!=="string"&&ame!=="number"&&ame!=="boolean"&&ame!=="object"?x_:eme?(ame==="object"&&x_&&x_.hasOwnProperty($P||"value")&&(x_=(tme=x_[$P||"value"])!==null&&tme!==void 0?tme:""),findTree(eme,optionValueCompare(x_,$P||"value"),{resolve:getOptionValueBindField($P),value:getOptionValue(x_,$P)})):null}function matchOptionValue(x_,eme,$P){return $P===void 0&&($P="value"),isObject$8(x_)?x_===eme[$P||"value"]:String(eme[$P||"value"])===String(x_)}function optionValueCompare(x_,eme){return eme===void 0&&(eme="value"),function($P){return matchOptionValue(x_,$P,eme)}}function normalizeOptions(x_,eme,$P){return eme===void 0&&(eme={values:[],options:[]}),$P===void 0&&($P="value"),typeof x_=="string"?x_.split(",").map(function(tme){var ame=eme.values.indexOf(tme);if(~ame)return eme.options[ame];var nme={label:tme,value:tme};return eme.values.push(nme.value),eme.options.push(nme),nme}):Array.isArray(x_)&&typeof x_[0]=="string"?x_.map(function(tme){var ame=eme.values.indexOf(tme);if(~ame)return eme.options[ame];var nme={label:tme,value:tme};return eme.values.push(nme.value),eme.options.push(nme),nme}):Array.isArray(x_)?x_.map(function(tme){var ame=tme&&tme[$P],nme=ame!==void 0&&!tme.children?eme.values.indexOf(ame):-1;if(~nme)return eme.options[nme];var rme=__assign$3(__assign$3({},tme),{value:ame});return typeof rme.children<"u"?rme.children=normalizeOptions(rme.children,eme,$P):ame!==void 0&&(eme.values.push(ame),eme.options.push(rme)),rme}):isPlainObject$b(x_)?Object.keys(x_).map(function(tme){var ame=eme.values.indexOf(tme);if(~ame)return eme.options[ame];var nme={label:x_[tme],value:tme};return eme.values.push(nme.value),eme.options.push(nme),nme}):[]}var DownshiftChangeTypes=Downshift$1.stateChangeTypes,Select=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.menu=React__default.createRef(),tme.state={isOpen:$P.defaultOpen||!1,isFocused:!1,inputValue:"",highlightedIndex:-1,selection:value2array($P.value,$P),itemHeight:32,pickerSelectItem:""},tme}return eme.prototype.componentDidMount=function(){var $P=this.props.loadOptions;$P&&$P("")},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=noop$9;if(JSON.stringify(tme.value)!==JSON.stringify($P.value)||JSON.stringify(tme.options)!==JSON.stringify($P.options)){var nme=value2array(tme.value,tme);this.setState({selection:nme},ame)}},eme.prototype.open=function(){var $P=this,tme=this.props,ame=tme.disabled,nme=tme.loading;ame||nme||this.setState({isOpen:!0,highlightedIndex:-1},function(){return setTimeout($P.focus,500)})},eme.prototype.close=function(){this.setState({isOpen:!1})},eme.prototype.confirm=function(){this.handleChange(this.state.pickerSelectItem),this.setState({isOpen:!1})},eme.prototype.toggle=function($P){var tme=this,ame=this.props,nme=ame.disabled,rme=ame.loading;$P&&this.menu.current&&this.menu.current.contains($P.target)||nme||rme||this.setState({isOpen:!this.state.isOpen,highlightedIndex:-1},this.state.isOpen?void 0:function(){return setTimeout(tme.focus,500)})},eme.prototype.onFocus=function($P){var tme=this.props,ame=tme.simpleValue,nme=tme.disabled,rme=tme.loading,ime=this.state,ome=ime.selection,lme=ime.isOpen,sme=ame?ome.map(function(cme){return cme.value}):ome;!nme&&!rme&&!lme&&this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(__assign$3(__assign$3({},$P),{value:sme}))},eme.prototype.onBlur=function($P){var tme=this.props.simpleValue,ame=this.state.selection,nme=tme?ame.map(function(rme){return rme.value}):ame;this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(__assign$3(__assign$3({},$P),{value:nme}))},eme.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},eme.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},eme.prototype.getTarget=function(){return this.target||(this.target=reactDomExports.findDOMNode(this)),this.target},eme.prototype.inputRef=function($P){this.input=$P},eme.prototype.toggleCheckAll=function(){var $P=this.props,tme=$P.options,ame=$P.onChange,nme=$P.simpleValue,rme=$P.checkAllBySearch,ime=$P.labelField,ome=$P.valueField,lme=$P.filterOption,sme=lme===void 0?defaultFilterOption:lme,cme=this.state.inputValue,dme=this.state.selection,ume=cme&&rme!==!1?sme(tme,cme,{keys:[ime||"label",ome||"value"]}):tme.concat(),fme=ume.map(function(bme){return bme.value}),pme=dme.map(function(bme){return bme.value}),hme=fme.every(function(bme){return pme.indexOf(bme)>-1});dme=hme?[]:ume,ame(nme?dme.map(function(bme){return bme.value}):dme)},eme.prototype.removeItem=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.simpleValue,ime=ame.disabled;if(!ime){var ome=this.state.selection;tme&&tme.stopPropagation(),ome=Array.isArray(ome)?ome.concat():[ome],ome.splice($P,1),nme(rme?ome.map(function(lme){return lme.value}):ome)}},eme.prototype.handleInputChange=function($P){var tme=this,ame=this.props.loadOptions;this.setState({inputValue:$P.currentTarget.value},function(){return ame&&ame(tme.state.inputValue)})},eme.prototype.handlePickerChange=function($P,tme,ame){this.props.multiple||($P=$P[0]),this.setState({pickerSelectItem:$P}),ame&&this.handleChange($P)},eme.prototype.handleChange=function($P){var tme=this.props,ame=tme.onChange,nme=tme.multiple,rme=tme.simpleValue,ime=tme.valueField,ome=this.state.selection;if($P!=null)if(nme){var lme=ome.map(function(cme){return cme[ime]});ome=ome.concat();var sme=lme.indexOf($P[ime]);~sme?ome.splice(sme,1):ome.push($P),ame(rme?ome.map(function(cme){return cme[ime]}):ome)}else(!ome.length||ome[0][ime]!==$P[ime])&&ame(rme?$P[ime]:$P)},eme.prototype.handleStateChange=function($P){var tme=this.props,ame=tme.multiple,nme=tme.checkAll,rme={};switch($P.type){case DownshiftChangeTypes.keyDownEnter:case DownshiftChangeTypes.clickItem:rme=__assign$3(__assign$3({},rme),{isOpen:!!ame,isFocused:!!(ame&&nme)});break;case DownshiftChangeTypes.controlledPropUpdatedSelectedItem:break;case DownshiftChangeTypes.changeInput:rme.highlightedIndex=0;break;case DownshiftChangeTypes.keyDownArrowDown:case DownshiftChangeTypes.keyDownArrowUp:case DownshiftChangeTypes.itemMouseEnter:rme=__assign$3(__assign$3({},rme),$P);break}Object.keys(rme).length&&this.setState(rme)},eme.prototype.handleKeyPress=function($P){$P.key===" "&&$P.shiftKey&&(this.toggle(),$P.preventDefault())},eme.prototype.clearValue=function($P){var tme=this.props.onChange;$P.preventDefault(),$P.stopPropagation(),tme(this.props.resetValue)},eme.prototype.clearSearchValue=function(){var $P=this.props.loadOptions;this.setState({inputValue:""},function(){return $P==null?void 0:$P("")})},eme.prototype.handleAddClick=function(){var $P=this.props.onAdd;$P&&$P()},eme.prototype.handleEditClick=function($P,tme){var ame=this.props.onEdit;$P.preventDefault(),$P.stopPropagation(),ame&&ame(tme)},eme.prototype.handleDeleteClick=function($P,tme){var ame=this.props.onDelete;$P.preventDefault(),$P.stopPropagation(),ame&&ame(tme)},eme.prototype.renderValue=function($P){var tme,ame=this;$P.inputValue,$P.isOpen;var nme=this.props,rme=nme.classnames,ime=nme.multiple,ome=nme.valuesNoWrap,lme=nme.placeholder,sme=nme.labelField,cme=nme.disabled,dme=nme.maxTagCount,ume=nme.overflowTagPopover,fme=nme.showInvalidMatch,pme=nme.renderValueLabel,hme=nme.popOverContainer,bme=nme.translate,mme=this.state.selection,vme=sme||"label";if(!mme.length)return React__default.createElement("div",{key:"placeholder",className:rme("Select-placeholder")},bme(lme));if(ime&&dme!=null&&isInteger$1(Math.floor(dme))&&Math.floor(dme)>=0&&Math.floor(dme)<mme.length){var gme=Math.floor(dme),yme=__assign$3({placement:"top",trigger:"hover",showArrow:!1,offset:[0,-10],tooltipClassName:rme("Select-overflow",ume==null?void 0:ume.tooltipClassName)},omit$1(ume,["children","content","tooltipClassName"]));return __spreadArray(__spreadArray([],__read$3(mme.slice(0,gme)),!1),[(tme={},tme[vme]="+ ".concat(mme.length-gme," ..."),tme)],!1).map(function(_me,$me){var Cme=labelToString(_me[vme]);return $me===gme?React__default.createElement(TooltipWrapper$1,{key:mme.length,container:hme,tooltip:__assign$3(__assign$3({},yme),{children:function(){return React__default.createElement("div",{className:rme("Select-overflow-wrapper")},mme.slice(gme,mme.length).map(function(Sme,Eme){var xme=Eme+gme,Tme=labelToString(Sme[vme]);return React__default.createElement("div",{key:xme,className:rme("Select-value",{"is-disabled":cme,"is-invalid":fme?Sme.__unmatched:!1})},React__default.createElement("span",{className:rme("Select-valueLabel")},pme?pme(Sme):Tme),React__default.createElement("span",{className:rme("Select-valueIcon",{"is-disabled":cme||Sme.disabled}),onClick:ame.removeItem.bind(ame,xme)},React__default.createElement(Icon$1,{icon:"close",className:"icon"})))}))}})},React__default.createElement("div",{className:rme("Select-value",{"is-disabled":cme,"is-invalid":fme?_me.__unmatched:!1}),onClick:function(Sme){return Sme.stopPropagation()}},React__default.createElement("span",{className:rme("Select-valueLabel")},pme?pme(_me):Cme))):React__default.createElement(TooltipWrapper$1,{container:hme,placement:"top",tooltip:Cme,trigger:"hover",key:$me},React__default.createElement("div",{className:rme("Select-value",{"is-disabled":cme,"is-invalid":fme?_me.__unmatched:!1})},React__default.createElement("span",{className:rme("Select-valueLabel")},pme?pme(_me):Cme),React__default.createElement("span",{className:rme("Select-valueIcon",{"is-disabled":cme||_me.disabled}),onClick:ame.removeItem.bind(ame,$me)},React__default.createElement(Icon$1,{icon:"close",className:"icon"}))))})}return mme.map(function(_me,$me){var Cme=labelToString(_me[vme]);return ime?ome?"".concat(Cme).concat($me===mme.length-1?"":" + "):React__default.createElement(TooltipWrapper$1,{container:hme,placement:"top",tooltip:Cme,trigger:"hover",key:$me},React__default.createElement("div",{className:rme("Select-value",{"is-disabled":cme,"is-invalid":fme?_me.__unmatched:!1})},React__default.createElement("span",{className:rme("Select-valueLabel")},pme?pme(_me):Cme),React__default.createElement("span",{className:rme("Select-valueIcon",{"is-disabled":cme||_me.disabled}),onClick:ame.removeItem.bind(ame,$me)},React__default.createElement(Icon$1,{icon:"close",className:"icon"})))):React__default.createElement("div",{className:rme("Select-value",{"is-disabled":cme,"is-invalid":fme?_me.__unmatched:!1}),key:$me},pme?pme(_me):Cme)})},eme.prototype.renderOuter=function($P){var tme=this,ame,nme=$P.selectedItem,rme=$P.getItemProps,ime=$P.highlightedIndex,ome=$P.inputValue,lme=$P.isOpen;$P.getToggleButtonProps;var sme=$P.getInputProps,cme=this.props,dme=cme.popOverContainer,ume=cme.options,fme=cme.valueField,pme=cme.labelField,hme=cme.noResultsText,bme=cme.loadOptions,mme=cme.creatable,vme=cme.multiple,gme=cme.valuesNoWrap,yme=cme.classnames,_me=cme.popoverClassName,$me=cme.popOverContainerSelector,Cme=cme.checkAll,Sme=cme.checkAllLabel,Eme=cme.checkAllBySearch,xme=cme.searchable,Tme=cme.createBtnLabel,Ome=cme.disabled,Rme=cme.searchPromptText,Nme=cme.editable,Ime=cme.removable,Pme=cme.overlayPlacement,Mme=cme.translate,kme=cme.hideSelected,Bme=cme.renderMenu;cme.mobileClassName;var Dme=cme.virtualThreshold,jme=Dme===void 0?100:Dme,Vme=cme.mobileUI,Wme=cme.filterOption,Lme=Wme===void 0?defaultFilterOption:Wme,zme=cme.overlay,Ume=cme.loading,Gme=cme.testIdBuilder,Jme=this.state.selection,Yme=!1,Qme=!1,Xme=(ome&&lme&&!bme?Lme(ume,ome,{keys:[pme||"label",fme||"value"]}):ume.concat()).filter(function(obe){return!obe.hidden&&obe.visible!==!1}),Kme=Xme.length&&Xme.length>jme,Zme=Jme.map(function(obe){return obe[fme]});if(vme&&Cme){var nbe=(Eme!==!1?Xme:ume).map(function(obe){return obe[fme]});Yme=nbe.every(function(obe){return Zme.indexOf(obe)>-1}),Qme=nbe.some(function(obe){return Zme.indexOf(obe)>-1})}var lbe=this.props.itemHeight||this.state.itemHeight,ibe=function(obe){var hbe=obe.index,ube=obe.style,mbe=Xme[hbe];if(!mbe)return null;var pbe=nme===mbe||!!~Zme.indexOf(mbe[fme]);if(kme&&pbe)return null;var _be=labelToString(mbe[pme]),Sbe=Gme==null?void 0:Gme.getChild("option-".concat(_be||hbe));return React__default.createElement("div",__assign$3({},rme({key:typeof mbe.value=="string"?"".concat(mbe.label,"-").concat(mbe.value):hbe,index:hbe,item:mbe,disabled:mbe.disabled}),{style:merge$4(ube,Kme?{width:"100%"}:{}),className:yme("Select-option",{"is-disabled":mbe.disabled,"is-highlight":ime===hbe,"is-active":pbe})},Sbe==null?void 0:Sbe.getTestId()),Bme?vme?React__default.createElement(Checkbox$1$1,{checked:pbe,trueValue:mbe.value,onChange:function(){tme.handleChange(mbe)},disabled:mbe.disabled,testIdBuilder:Sbe==null?void 0:Sbe.getChild("chekbx")},Bme(mbe,{multiple:vme,checkAll:Cme,checked:pbe,onChange:function(){return tme.handleChange(mbe)},inputValue:ome||"",searchable:xme,index:hbe})):Bme(mbe,{multiple:vme,checkAll:Cme,checked:pbe,onChange:function(){return tme.handleChange(mbe)},inputValue:ome||"",searchable:xme,index:hbe}):vme?React__default.createElement("div",{title:_be,className:yme("Select-option-checkbox")},React__default.createElement(Checkbox$1$1,{checked:pbe,trueValue:mbe.value,onChange:function(){tme.handleChange(mbe)},disabled:mbe.disabled,size:"sm"},mbe.disabled?_be:highlight(_be,ome,yme("Select-option-hl")),mbe.tip?React__default.createElement("span",null,mbe.tip):null)):React__default.createElement("span",__assign$3({className:yme("Select-option-content"),title:typeof _be=="string"?_be:""},Sbe==null?void 0:Sbe.getChild("content").getTestId()),mbe.disabled?_be:highlight(_be,ome,yme("Select-option-hl")),mbe.tip?React__default.createElement("span",null,mbe.tip):null),Nme?React__default.createElement("a",{"data-tooltip":Mme("Select.edit"),"data-position":"left"},React__default.createElement(Icon$1,{icon:"pencil",className:"icon",onClick:function(vbe){return tme.handleEditClick(vbe,mbe)}})):null,Ime?React__default.createElement("a",{"data-tooltip":Mme("Select.clear"),"data-position":"left"},React__default.createElement(Icon$1,{icon:"close",className:"icon",onClick:function(vbe){return tme.handleDeleteClick(vbe,mbe)}})):null)},abe=React__default.createElement("div",{ref:this.menu,className:yme("Select-menu",{"Select--longlist":Kme,"is-mobile":Vme})},xme?React__default.createElement("div",{className:yme("Select-input",{"is-focused":this.state.isFocused})},React__default.createElement(Icon$1,{icon:"search",className:"icon"}),React__default.createElement(Input,__assign$3({},sme({onFocus:this.onFocus,onBlur:this.onBlur,disabled:Ome,placeholder:Mme(Rme),onChange:this.handleInputChange,ref:this.inputRef}))),ome!=null&&ome.length?React__default.createElement("a",{onClick:this.clearSearchValue,className:yme("Select-clear")},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):null):null,Ume?React__default.createElement("div",{className:yme("Select-noResult")},Mme("loading")):React__default.createElement(React__default.Fragment,null,vme&&gme?React__default.createElement("div",{className:yme("Select-option")},Mme("Select.selected"),"(",Zme.length,")"):null,vme&&Cme&&Xme.length?React__default.createElement("div",{className:yme("Select-option")},React__default.createElement(Checkbox$1$1,{checked:Qme,partial:Qme&&!Yme,onChange:this.toggleCheckAll,size:"sm"},Mme(Sme))):null,mme&&!Ome?React__default.createElement("a",{className:yme("Select-addBtn"),onClick:this.handleAddClick},React__default.createElement(Icon$1,{icon:"plus",className:"icon"}),Mme(Tme)):null,Xme.length?Xme.length>jme?React__default.createElement(VirtualList,{height:Xme.length>8?266:Xme.length*lbe,itemCount:Xme.length,itemSize:lbe,renderItem:ibe}):Xme.map(function(obe,hbe){return ibe({index:hbe})}):React__default.createElement("div",{className:yme("Select-noResult")},Mme(hme))));return Vme?React__default.createElement(SelectMobile,__assign$3({},this.props,{highlightedIndex:ime,isOpen:lme,getItemProps:rme,getInputProps:sme,selectedItem:nme,onChange:function(obe){tme.setState({isOpen:!1}),tme.props.onChange(obe)},onClose:this.close})):React__default.createElement(Overlay,{container:dme||this.getTarget,containerSelector:$me,target:this.getTarget,placement:Pme==="auto"?PopOverContainer.alignToPlacement(zme):Pme,show:!0},React__default.createElement(PopOver$1,{overlay:!0,className:yme("Select-popover",_me),style:{width:zme&&PopOverContainer.calcOverlayWidth(zme,(ame=this.target)===null||ame===void 0?void 0:ame.offsetWidth)||(this.target?this.target.offsetWidth:"auto")},onHide:this.close},abe))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.multiple,rme=tme.valuesNoWrap,ime=tme.searchable,ome=tme.inline,lme=tme.block,sme=tme.className,cme=tme.value,dme=tme.loading,ume=tme.clearable,fme=tme.labelField,pme=tme.disabled;tme.checkAll;var hme=tme.borderMode,bme=tme.mobileUI,mme=tme.hasError,vme=tme.testIdBuilder,gme=tme.loadingConfig,yme=tme.controlStyle,_me=this.state.selection,$me=this.state.inputValue,Cme=this.props.resetValue;return React__default.createElement(Downshift$1,{selectedItem:_me,highlightedIndex:this.state.highlightedIndex,isOpen:this.state.isOpen,inputValue:$me,onChange:nme?noop$9:this.handleChange,onStateChange:this.handleStateChange,itemToString:function(Sme){return Sme?"".concat(labelToString(Sme[fme])):""}},function(Sme){var Eme,xme=Sme.isOpen;return React__default.createElement("div",__assign$3({tabIndex:pme?-1:0,onKeyPress:$P.handleKeyPress,onClick:$P.toggle,onFocus:$P.onFocus,onBlur:$P.onBlur},vme==null?void 0:vme.getTestId(),{className:ame("Select",(Eme={},Eme["Select--multi"]=nme,Eme["Select--inline"]=ome,Eme["Select--block"]=lme,Eme["Select--searchable"]=ime,Eme["is-opened"]=xme,Eme["is-focused"]=$P.state.isFocused,Eme["is-disabled"]=pme||dme,Eme["is-mobile"]=bme,Eme["is-error"]=mme,Eme["Select--border".concat(ucFirst(hme))]=hme,Eme),sme),"data-amis-name":$P.props.dataName,style:yme}),React__default.createElement("div",{className:ame("Select-valueWrap",{"Select-valuesNoWrap":rme})},$P.renderValue(Sme)),ume&&!pme&&(Array.isArray(cme)?cme.length:cme!=null&&cme!==Cme)?React__default.createElement("a",__assign$3({onClick:$P.clearValue,className:ame("Select-clear")},vme==null?void 0:vme.getChild("clear").getTestId()),React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,dme?React__default.createElement(Spinner$1,{show:!0,icon:"reload",size:"sm",spinnerClassName:ame("Select-spinner"),loadingConfig:gme}):null,React__default.createElement("span",__assign$3({className:ame("Select-arrow")},vme==null?void 0:vme.getChild("arrow").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})),xme?$P.renderOuter(Sme):null)})},eme.defaultProps={multiple:!1,clearable:!0,creatable:!1,showInvalidMatch:!1,createBtnLabel:"Select.createLabel",searchPromptText:"Select.searchPromptText",loadingPlaceholder:"loading",noResultsText:"noResult",clearAllText:"Select.clearAll",clearValueText:"Select.clear",placeholder:"Select.placeholder",valueField:"value",labelField:"label",resetValue:"",inline:!1,disabled:!1,checkAll:!1,checkAllLabel:"Select.checkAll",defaultCheckAll:!1,overlayPlacement:"auto",virtualThreshold:100},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"open",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"confirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"toggle",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"focus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getTarget",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLInputElement]),__metadata("design:returntype",void 0)],eme.prototype,"inputRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleCheckAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handlePickerChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleStateChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyPress",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"clearValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearchValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDeleteClick",null),eme}(React__default.Component),EnhancedSelect=themeable(localeable(uncontrollable(Select,{value:"onChange"}))),SelectWithRemoteOptions=withRemoteConfig({adaptor:function(x_){return x_.options||x_.items||x_.rows||x_},normalizeConfig:function(x_,eme){return x_=normalizeOptions(x_),Array.isArray(x_)?x_.concat():eme}})(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.loading,ame=$P.config;$P.deferLoad,$P.updateConfig;var nme=__rest$14($P,["loading","config","deferLoad","updateConfig"]);return React__default.createElement(EnhancedSelect,__assign$3({},nme,{options:ame||nme.options||[],loading:tme}))},eme}(React__default.Component)),defaultLabelRender=function(x_,eme){return React__default.createElement(React__default.Fragment,null,"".concat(x_[eme.labelField||"label"]))},Radios=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.toggleOption=function($P){var tme=this.props,ame=tme.value,nme=tme.onChange,rme=tme.valueField,ime=tme.clearable,ome=tme.delimiter,lme=tme.options,sme=value2array(ame,{multiple:!1,delimiter:ome,valueField:rme,options:lme}),cme=sme.indexOf($P);~cme?ime&&sme.splice(cme,1):sme=[$P];var dme=sme[0];nme&&nme(dme)},eme.prototype.renderGroup=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.classnames;rme.optionType,rme.classPrefix;var ome=rme.renderLabel,lme=ome===void 0?defaultLabelRender:ome;return React__default.createElement("div",{key:tme,className:ime("RadiosControl-group",$P.className)},React__default.createElement("label",{className:ime("RadiosControl-groupLabel",$P.labelClassName)},lme($P,this.props)),$P.children&&$P.children.length?$P.children.map(function(sme,cme){return nme.renderItem(sme,cme,ame)}):null)},eme.prototype.renderItem=function($P,tme,ame){var nme=this,rme;if(!((rme=$P.children)===null||rme===void 0)&&rme.length)return this.renderGroup($P,tme,ame);var ime=this.props,ome=ime.disabled,lme=ime.inline,sme=ime.itemClassName,cme=ime.classnames,dme=ime.labelClassName;ime.labelField;var ume=ime.optionType;ime.level,ime.btnActiveLevel,ime.classPrefix;var fme=ime.testIdBuilder,pme=ime.renderLabel,hme=pme===void 0?defaultLabelRender:pme,bme=fme==null?void 0:fme.getChild($P.value||tme);return React__default.createElement(Checkbox$1$1,{type:"radio",key:tme,onChange:function(){return nme.toggleOption($P)},checked:!!~ame.indexOf($P),className:cme(sme,$P.className),disabled:ome||$P.disabled,description:$P.description,inline:lme,labelClassName:dme,testIdBuilder:bme,optionType:ume},hme($P,this.props))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.value,nme=tme.options,rme=tme.className,ime=tme.style,ome=tme.classnames,lme=tme.placeholder,sme=tme.columnsCount;tme.joinValues,tme.extractValue,tme.disabled;var cme=tme.inline,dme=tme.delimiter,ume=tme.valueField,fme=value2array(ame,{multiple:!1,delimiter:dme,valueField:ume,options:nme}),pme=[];return nme&&(pme=nme.map(function(hme,bme){return $P.renderItem(hme,bme,fme)})),cme||(pme=columnsSplit(pme,ome,sme)),React__default.createElement("div",{className:rme,style:ime},pme&&pme.length?pme:lme)},eme.defaultProps={type:"radio",btnActiveLevel:"primary",resetValue:"",inline:!0,joinValues:!0,clearable:!1,columnsCount:1},eme}(React__default.Component),Radios$1=themeable(uncontrollable(Radios,{value:"onChange"})),nativeCeil=Math.ceil,nativeMax$4=Math.max;function baseRange$1(x_,eme,$P,tme){for(var ame=-1,nme=nativeMax$4(nativeCeil((eme-x_)/($P||1)),0),rme=Array(nme);nme--;)rme[tme?nme:++ame]=x_,x_+=$P;return rme}var _baseRange=baseRange$1,baseRange=_baseRange,isIterateeCall$2=_isIterateeCall,toFinite=toFinite_1;function createRange$1(x_){return function(eme,$P,tme){return tme&&typeof tme!="number"&&isIterateeCall$2(eme,$P,tme)&&($P=tme=void 0),eme=toFinite(eme),$P===void 0?($P=eme,eme=0):$P=toFinite($P),tme=tme===void 0?eme<$P?1:-1:toFinite(tme),baseRange(eme,$P,tme,x_)}}var _createRange=createRange$1,createRange=_createRange,range=createRange(),range_1=range;const range$1=getDefaultExportFromCjs(range_1);var MARKS_REG=/^[0-9]+(\.?[0-9]+)?%$/,valueToOffsetLeft=function(x_,eme,$P){return Math.floor((x_-eme)*1e4/($P-eme))/100+"%"},HandleItem=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleRef=React__default.createRef(),tme.state={isDrag:!1,labelActive:!1},tme}return eme.prototype.onMouseDown=function(){this.setState({isDrag:!0,labelActive:!0}),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp)},eme.prototype.onMouseMove=function($P){var tme=this.state.isDrag,ame=this.props.type,nme=ame===void 0?"min":ame;tme&&this.props.onChange($P.pageX,nme)},eme.prototype.onMouseUp=function(){this.setState({isDrag:!1});var $P=this.props.onAfterChange;$P&&$P(),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},eme.prototype.onMouseEnter=function(){this.setState({labelActive:!0})},eme.prototype.onMouseLeave=function(){var $P=this.state.isDrag;$P||this.setState({labelActive:!1})},eme.prototype.onTouchStart=function(){this.setState({isDrag:!0,labelActive:!0})},eme.prototype.onTouchMove=function($P){var tme=this.state.isDrag,ame=this.props.type,nme=ame===void 0?"min":ame;tme&&this.props.onChange($P.touches[0].clientX,nme)},eme.prototype.onTouchEnd=function(){this.setState({labelActive:!1})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.disabled,rme=tme.value,ime=tme.min,ome=tme.max,lme=tme.tooltipVisible,sme=tme.tipFormatter,cme=tme.unit,dme=tme.tooltipPlacement,ume=dme===void 0?"auto":dme,fme=tme.mobileUI,pme=this.state,hme=pme.isDrag,bme=pme.labelActive,mme={left:valueToOffsetLeft(rme,ime,ome),zIndex:hme?2:1};return nme?React__default.createElement("div",{className:ame("InputRange-handle"),style:mme},React__default.createElement("div",{className:ame("InputRange-handle-icon")},React__default.createElement(Icon$1,{icon:"slider-handle",className:"icon"}))):React__default.createElement("div",{className:ame("InputRange-handle",{"is-mobile":fme}),style:mme,ref:this.handleRef},React__default.createElement("div",{className:ame(hme?"InputRange-handle-drage":"InputRange-handle-icon"),onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd},React__default.createElement(Icon$1,{icon:"slider-handle",className:"icon"})),React__default.createElement(Overlay,{placement:ume,target:function(){return reactDomExports.findDOMNode($P)},container:function(){return reactDomExports.findDOMNode($P)},rootClose:!1,show:!0},React__default.createElement(Label,{show:bme,classPrefix:this.props.classPrefix,classnames:ame,value:rme,tooltipVisible:lme,tipFormatter:sme,unit:cme,placement:ume})))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseUp",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchStart",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onTouchEnd",null),eme}(React__default.Component),Label=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.value,nme=$P.show,rme=$P.tooltipVisible,ime=$P.tipFormatter,ome=$P.unit,lme=ome===void 0?"":ome,sme=$P.positionLeft,cme=sme===void 0?0:sme,dme=$P.positionTop,ume=dme===void 0?0:dme,fme=this.props.placement;fme==="auto"&&(cme>=0&&ume>=0&&(fme="top"),cme>=0&&ume<0&&(fme="bottom"),cme<0&&ume>=0&&(fme="left"),cme<0&&ume<0&&(fme="right"));var pme=rme!==void 0?rme&&ime?ime(ame):rme:nme;return React__default.createElement("div",{className:tme("InputRange-label","pos-".concat(camel(fme)),{"InputRange-label-visible":pme})},React__default.createElement("span",null,ame+lme))},eme}(React__default.Component),Range=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.multipleValue={min:$P.props.value.min,max:$P.props.value.max},$P.trackRef=React__default.createRef(),$P}return eme.prototype.updateValue=function($P){var tme=this.props.onChange;tme&&tme($P)},eme.prototype.getBoundingClient=function($P){var tme=$P==null?void 0:$P.getBoundingClientRect(),ame=tme.x,nme=tme.y,rme=tme.width,ime=tme.height;return{x:ame,y:nme,width:rme,height:ime}},eme.prototype.pageXToValue=function($P){var tme=this.getBoundingClient(this.trackRef.current),ame=tme.x,nme=tme.width,rme=this.props,ime=rme.max,ome=rme.min;return($P-ame)*(ime-ome)/nme+ome},eme.prototype.onChange=function($P,tme){var ame;tme===void 0&&(tme="min");var nme=this.props,rme=nme.max,ime=nme.min,ome=nme.step,lme=nme.multiple,sme=nme.value,cme=this.pageXToValue($P);if(!(cme>rme||cme<ime)){var dme=stripNumber(this.getStepValue(cme,ome));dme!==sme&&(lme?this.updateValue(__assign$3(__assign$3({},sme),(ame={},ame[tme]=dme,ame))):this.updateValue(dme))}},eme.prototype.getStepValue=function($P,tme){var ame=$P%tme,nme=0,rme=$P-ame;return Math.abs(ame)>=tme/2?nme=$P>=0?safeAdd(rme,tme):safeSub(rme,tme):nme=rme,nme},eme.prototype.onClickTrack=function($P){if(!this.props.disabled){var tme=this.props.value,ame=this.pageXToValue($P.pageX),nme=Math.abs(ame-tme.min)>Math.abs(ame-tme.max)?"max":"min";this.onChange($P.pageX,nme)}},eme.prototype.renderSteps=function(){var $P=this.props,tme=$P.max,ame=$P.min,nme=$P.step,rme=$P.showSteps,ime=$P.classnames,ome=$P.parts,lme=rme;(ome>1||Array.isArray(ome))&&(lme=!0);var sme=tme-ame,cme=ome>1?ome:Math.floor(sme/nme),dme=sme/cme,ume=Array.isArray(ome)?ome.map(function(fme){return fme-ame}):range$1(cme-1).map(function(fme){return(fme+1)*dme});return lme&&React__default.createElement("div",null,ume.map(function(fme){return React__default.createElement("span",{key:fme,className:ime("InputRange-track-dot"),style:{left:fme*100/(tme-ame)+"%"}})}))},eme.prototype.onGetChangeValue=function($P,tme){var ame=this.props,nme=ame.max,rme=ame.min,ime=this.pageXToValue($P);if(!(ime>nme||ime<rme)){this.multipleValue[tme]=stripNumber(this.getStepValue(ime,this.props.step));var ome=Math.min(this.multipleValue.min,this.multipleValue.max),lme=Math.max(this.multipleValue.min,this.multipleValue.max);this.updateValue({max:lme,min:ome})}},eme.prototype.getOffsetLeft=function($P,tme){var ame=this.props,nme=ame.max,rme=ame.min;return isString$8($P)&&MARKS_REG.test($P)?tme?parseFloat($P):$P:($P=Math.min(Math.max(+$P,rme),nme),tme?($P-rme)*100/(nme-rme):($P-rme)*100/(nme-rme)+"%")},eme.prototype.getMarkMaxWidth=function($P,tme){var ame=this.props,nme=ame.max,rme=ame.min,ime=ame.mobileUI,ome=isString$8($P)?parseInt($P,10):$P,lme=Math.abs(nme-rme);return keys$c(tme).forEach(function(sme){var cme=isString$8(sme)?parseInt(sme,10):sme;sme!==$P&&!isNaN(cme)&&(lme=Math.min(Math.abs(ome-cme),lme))}),ime?Math.floor(lme)+"%":Math.floor(lme/2)+"%"},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.marks,rme=tme.multiple,ime=tme.value,ome=tme.max,lme=tme.min,sme=tme.disabled,cme=tme.tooltipVisible,dme=tme.unit,ume=tme.tooltipPlacement,fme=tme.tipFormatter,pme=tme.onAfterChange,hme=tme.mobileUI,bme={width:valueToOffsetLeft(rme?ime.max-ime.min+lme:ime,lme,ome),left:valueToOffsetLeft(rme?ime.min:lme,lme,ome)},mme=difference$1(Object.values(ime),Object.values(this.multipleValue));mme&&mme.length&&(this.multipleValue={min:ime.min,max:ime.max});var vme=nme?keys$c(nme).sort(function(gme,yme){return $P.getOffsetLeft(gme,!0)-$P.getOffsetLeft(yme,!0)}):[];return React__default.createElement("div",{className:ame("InputRange-wrap")},React__default.createElement("div",{ref:this.trackRef,className:ame("InputRange-track","InputRange-track--background"),onClick:this.onClickTrack},React__default.createElement("div",{className:ame("InputRange-track-active"),style:bme}),this.renderSteps(),rme?["min","max"].map(function(gme){return React__default.createElement(HandleItem,{key:gme,value:$P.multipleValue[gme],type:gme,min:lme,max:ome,classPrefix:$P.props.classPrefix,classnames:ame,disabled:sme,tooltipVisible:cme,tipFormatter:fme,unit:dme,mobileUI:hme,tooltipPlacement:ume,onAfterChange:pme,onChange:$P.onGetChangeValue.bind($P)})}):React__default.createElement(HandleItem,{value:+ime,min:lme,max:ome,classPrefix:this.props.classPrefix,classnames:ame,disabled:sme,tooltipVisible:cme,tipFormatter:fme,unit:dme,mobileUI:hme,tooltipPlacement:ume,onAfterChange:pme,onChange:this.onChange.bind(this)}),nme&&React__default.createElement("div",{className:ame("InputRange-marks")},vme.map(function(gme){var yme,_me,$me,Cme=$P.getOffsetLeft(gme),Sme=$P.getMarkMaxWidth(gme,nme);return MARKS_REG.test(Cme)?React__default.createElement("div",{key:gme,style:{left:Cme,width:Sme}},React__default.createElement(TooltipWrapper$1,{placement:"bottom",tooltip:((yme=nme[gme])===null||yme===void 0?void 0:yme.label)||nme[gme],trigger:["hover","focus"],rootClose:!1},React__default.createElement("span",{style:(_me=nme[gme])===null||_me===void 0?void 0:_me.style},(($me=nme[gme])===null||$me===void 0?void 0:$me.label)||nme[gme]))):null}))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Element]),__metadata("design:returntype",void 0)],eme.prototype,"getBoundingClient",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"onChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onClickTrack",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderSteps",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Object]),__metadata("design:returntype",void 0)],eme.prototype,"onGetChangeValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"getOffsetLeft",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"getMarkMaxWidth",null),eme}(React__default.Component),Range$1=themeable(uncontrollable(Range,{value:"onChange"})),Rating=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.ratingRef=React__default.createRef(),tme.starsNode={},tme.state={value:$P.value||0,stars:[],isClear:!1,halfStar:{at:Math.floor($P.value),hidden:$P.half&&$P.value%1<.5},showColor:"",showText:null,hoverValue:null},tme.getRate=tme.getRate.bind(tme),tme.getStars=tme.getStars.bind(tme),tme.moreThanHalf=tme.moreThanHalf.bind(tme),tme.mouseOver=tme.mouseOver.bind(tme),tme.mouseLeave=tme.mouseLeave.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.saveRef=tme.saveRef.bind(tme),tme.handleStarMouseLeave=tme.handleStarMouseLeave.bind(tme),tme}return eme.prototype.componentDidMount=function(){var $P=this.state.value;this.setState({stars:this.getStars($P)}),this.getShowColorAndText($P)},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props;isObjectShallowModified$1({value:ame.value,count:ame.count},{value:$P.value,count:$P.count})?this.setState({stars:this.getStars(ame.value),value:ame.value,halfStar:{at:Math.floor(ame.value),hidden:ame.half&&ame.value%1<.5}},function(){tme.getShowColorAndText(ame.value)}):(isObjectShallowModified$1(ame.colors,$P.colors)||isObjectShallowModified$1(ame.texts,$P.texts))&&this.getShowColorAndText(ame.value)},eme.prototype.sortKeys=function($P){return Object.keys($P).filter(function(tme){return validations.isNumeric({},tme)}).sort(function(tme,ame){return Number(tme)-Number(ame)})},eme.prototype.getShowColorAndText=function($P){var tme=this.props,ame=tme.colors,nme=tme.texts,rme=tme.half,ime=ame;if(this.ratingRef.current){var ome=getComputedStyle(this.ratingRef.current),lme=[];try{lme=JSON.parse(JSON.parse(ome.getPropertyValue("content")))}catch(hme){console.warn(hme)}var sme={};lme.forEach(function(hme){sme[hme.id]=hme.value}),isEmpty$4(ame)&&!isEmpty$4(sme)&&(ime=sme)}if(!$P)return this.setState({showText:null});if(rme?$P=Math.floor(Number($P)*2)/2:$P=Math.floor($P),ime&&typeof ime!="string"){var cme=this.sortKeys(ime),dme=cme.filter(function(hme){return Number(hme)<$P}).length,ume=cme[dme]!==void 0&&ime[cme[dme]],fme=cme.length&&ime[cme[cme.length-1]];this.setState({showColor:ume||fme||""})}else ime&&typeof ime=="string"&&this.setState({showColor:ime});if(nme&&isObject$8(nme)){var cme=this.sortKeys(nme),dme=cme.filter(function(mme){return Number(mme)<$P}).length,pme=cme[dme]!==void 0&&nme[cme[dme]];this.setState({showText:pme||""})}},eme.prototype.getRate=function(){var $P,tme=this.state.value,ame=this.props.half;return ame?$P=Math.floor(tme):$P=Math.round(tme),$P},eme.prototype.getStars=function($P){typeof $P>"u"&&($P=this.getRate());for(var tme=[],ame=this.props.count,nme=0;nme<ame;nme++)tme.push({active:nme<=$P-1});return tme},eme.prototype.saveRef=function($P){var tme=this;return function(ame){tme.starsNode[String($P)]=ame}},eme.prototype.mouseOver=function($P,tme){var ame=this.state.isClear;if(!ame){var nme=this.props,rme=nme.readOnly,ime=nme.half;if(!rme){if(ime){var ome=this.moreThanHalf($P,tme),lme=ome?tme+1:tme+.5;this.getShowColorAndText(lme),this.onHoverChange(lme),ome&&(tme=tme+1),this.setState({halfStar:{at:tme,hidden:ome}})}else tme=tme+1,this.onHoverChange(tme),this.getShowColorAndText(tme);this.setState({stars:this.getStars(tme)})}}},eme.prototype.onHoverChange=function($P){var tme=this.props.onHoverChange,ame=this.state.hoverValue;(!ame||ame&&ame!==$P)&&(this.setState({hoverValue:$P}),tme&&tme($P))},eme.prototype.moreThanHalf=function($P,tme){var ame=this.starsNode[tme],nme=ame.getBoundingClientRect().left;return $P.clientX-nme>ame.clientWidth/2},eme.prototype.mouseLeave=function(){var $P=this.state,tme=$P.value,ame=$P.isClear,nme=this.props,rme=nme.half,ime=nme.readOnly;if(!ime){if(ame)return this.setState({isClear:!1,hoverValue:null});rme&&this.setState({halfStar:{at:Math.floor(tme),hidden:tme%1===0}}),this.setState({stars:this.getStars(),hoverValue:null}),this.getShowColorAndText(tme)}},eme.prototype.handleStarMouseLeave=function($P,tme){var ame=this.starsNode[tme],nme=ame.getBoundingClientRect().left,rme=this.state.isClear;if(rme)return this.setState({isClear:!1});$P.clientX<=nme&&(this.getShowColorAndText(tme),this.setState({stars:this.getStars(tme),halfStar:{at:tme,hidden:!0}}))},eme.prototype.handleClick=function($P,tme){var ame=this.props,nme=ame.half,rme=ame.readOnly,ime=ame.onChange,ome=ame.allowClear;if(!rme){var lme;if(nme){var sme=this.moreThanHalf($P,tme);sme&&(tme=tme+1),lme=sme?tme:tme+.5,this.setState({halfStar:{at:tme,hidden:sme}})}else lme=tme=tme+1;var cme=ome&&lme===this.state.value;cme&&(lme=tme=0),this.setState({value:lme,stars:this.getStars(tme),isClear:cme}),this.getShowColorAndText(lme),ime&&ime(lme)}},eme.prototype.renderStars=function(){var $P=this,tme=this.state,ame=tme.halfStar,nme=tme.stars,rme=tme.showColor,ime=this.props,ome=ime.inactiveColor,lme=ime.char,sme=ime.half,cme=ime.disabled,dme=ime.readOnly,ume=ime.charClassName,fme=ime.classnames;return React__default.createElement("ul",{onMouseLeave:this.mouseLeave},nme.map(function(pme,hme){var bme=sme&&!ame.hidden&&ame.at===hme;return React__default.createElement("li",{ref:$P.saveRef(hme),className:fme("Rating-star",ume,{"is-half":bme,"is-active":pme.active,"is-disabled":dme||cme}),key:hme,style:{color:pme.active?rme:ome},onMouseOver:function(mme){return $P.mouseOver(mme,hme)},onMouseMove:function(mme){return $P.mouseOver(mme,hme)},onClick:function(mme){return $P.handleClick(mme,hme)},onMouseLeave:function(mme){return $P.handleStarMouseLeave(mme,hme)}},bme&&React__default.createElement("div",{className:fme("Rating-star-half"),style:{color:rme}},lme),lme)}))},eme.prototype.renderText=function(){var $P,tme=this.state.showText,ame=this.props,nme=ame.textClassName,rme=ame.textPosition,ime=ame.classnames;return tme?React__default.createElement("span",{className:ime("Rating-text",nme,($P={},$P["Rating-text--".concat(rme==="left"?"left":"right")]=rme,$P))},tme):null},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.textPosition,nme=$P.classnames;return React__default.createElement("div",{className:nme("Rating",tme),ref:this.ratingRef},ame==="left"?React__default.createElement(React__default.Fragment,null,this.renderText(),this.renderStars()):React__default.createElement(React__default.Fragment,null,this.renderStars(),this.renderText()))},eme.defaultProps={containerClass:"rating",readOnly:!1,half:!0,allowClear:!0,value:0,count:5,char:React__default.createElement(Icon$1,{icon:"star",className:"icon",iconContent:"Rating-star-icon"}),colors:"",textPosition:"right"},eme}(React__default.Component),Rating$1=themeable(Rating),SparkLine=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.normalizeValue=function($P){return typeof $P=="number"?$P:$P&&typeof $P.value=="number"?$P.value:Number($P)||0},eme.prototype.renderLines=function(){var $P=this,tme=this.props,ame=tme.width,nme=tme.height,rme=tme.value,ime=tme.classnames,ome=rme.map(function(hme){return $P.normalizeValue(hme)}),lme=Math.max.apply(Math,__spreadArray([],__read$3(ome),!1)),sme=Math.min.apply(Math,__spreadArray([],__read$3(ome),!1)),cme=lme-sme||1,dme=ame/(ome.length-1),ume=[];ome.forEach(function(hme,bme){ume.push({x:bme*dme,y:nme-(hme-sme)*nme/cme})});var fme=ume.map(function(hme,bme){return"".concat(bme===0?"M":"L"," ").concat(hme.x," ").concat(hme.y)}).join(" "),pme="".concat(fme," V ").concat(nme," L 0 ").concat(nme," Z");return React__default.createElement("g",null,React__default.createElement("path",{className:ime("Sparkline-area"),d:pme,stroke:"none"}),React__default.createElement("path",{className:ime("Sparkline-line"),d:fme,fill:"none"}))},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.style,rme=$P.value,ime=$P.width,ome=$P.height,lme=$P.placeholder,sme=$P.translate,cme=$P.onClick,dme=$P.id,ume=$P.wrapperCustomStyle,fme=$P.themeCss;return React__default.createElement("div",{className:tme("Sparkline",ame,cme?"Sparkline--clickable":"",setThemeClassName(__assign$3(__assign$3({},this.props),{name:"baseControlClassName",id:dme,themeCss:fme})),setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:dme,themeCss:ume}))),style:nme,onClick:cme},Array.isArray(rme)&&rme.length>1?React__default.createElement("svg",{className:tme("Sparkline-svg"),width:ime,height:ome,viewBox:"0 0 ".concat(ime," ").concat(ome)},this.renderLines()):lme??sme("placeholder.empty"))},eme.defaultProps={width:100,height:50},eme}(React__default.Component),SparkLine$1=themeable(localeable(SparkLine)),sizeMap={sm:"Switch--sm",md:"Switch--md",middle:"Switch--md",lg:"Switch--lg",large:"Switch--lg"},levelMap={info:"bg-info",primary:"bg-primary",danger:"bg-danger"},Switch=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.hanldeCheck=tme.hanldeCheck.bind(tme),tme}return eme.prototype.hanldeCheck=function($P){var tme=this.props,ame=tme.trueValue,nme=tme.falseValue,rme=tme.onChange;rme&&rme($P.currentTarget.checked?ame:nme)},eme.prototype.render=function(){var $P=this.props,tme=$P.size,ame=$P.level,nme=$P.className,rme=$P.classPrefix;$P.onChange;var ime=$P.value;$P.inline;var ome=$P.trueValue;$P.falseValue;var lme=$P.onText,sme=lme===void 0?"":lme,cme=$P.offText,dme=cme===void 0?"":cme,ume=$P.disabled,fme=$P.readOnly,pme=$P.checked,hme=$P.classnames,bme=$P.loading,mme=$P.loadingConfig,vme=$P.testIdBuilder,gme=__rest$14($P,["size","level","className","classPrefix","onChange","value","inline","trueValue","falseValue","onText","offText","disabled","readOnly","checked","classnames","loading","loadingConfig","testIdBuilder"]);nme=(nme||"")+(tme&&sizeMap[tme]?" ".concat(sizeMap[tme]):"")+(ame&&levelMap[ame]?" ".concat(levelMap[ame]):"");var yme=typeof pme<"u"?pme:typeof ime>"u"?!1:ime==ome,_me=ume||bme;return React__default.createElement("label",__assign$3({className:hme("Switch",nme,{"is-checked":yme,"is-disabled":_me}),"data-role":"switch"},vme==null?void 0:vme.getTestId()),React__default.createElement("input",__assign$3({type:"checkbox",checked:yme,onChange:this.hanldeCheck,disabled:_me,readOnly:fme},gme)),React__default.createElement("span",{className:"text"},yme?sme:dme),React__default.createElement("span",{className:"slider"},bme?React__default.createElement(Spinner,{classnames:hme,classPrefix:rme,className:hme("Switch-spinner",{"Switch-spinner--sm":tme==="sm","Switch-spinner--checked":yme}),spinnerClassName:hme("Switch-spinner-icon"),disabled:!yme,size:"sm",icon:"loading-outline",loadingConfig:mme}):null))},eme.defaultProps={trueValue:!0,falseValue:!1},eme}(React__default.PureComponent),Switch$1=themeable(Switch),index$8=reactExports.useLayoutEffect,useLatest=function(eme){var $P=reactExports.useRef(eme);return index$8(function(){$P.current=eme}),$P},updateRef=function(eme,$P){if(typeof eme=="function"){eme($P);return}eme.current=$P},useComposedRef=function(eme,$P){var tme=reactExports.useRef();return reactExports.useCallback(function(ame){eme.current=ame,tme.current&&updateRef(tme.current,null),tme.current=$P,$P&&updateRef($P,ame)},[$P])},HIDDEN_TEXTAREA_STYLE={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},forceHiddenStyles=function(eme){Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function($P){eme.style.setProperty($P,HIDDEN_TEXTAREA_STYLE[$P],"important")})},hiddenTextarea=null,getHeight=function(eme,$P){var tme=eme.scrollHeight;return $P.sizingStyle.boxSizing==="border-box"?tme+$P.borderSize:tme-$P.paddingSize};function calculateNodeHeight(x_,eme,$P,tme){$P===void 0&&($P=1),tme===void 0&&(tme=1/0),hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),hiddenTextarea.setAttribute("tabindex","-1"),hiddenTextarea.setAttribute("aria-hidden","true"),forceHiddenStyles(hiddenTextarea)),hiddenTextarea.parentNode===null&&document.body.appendChild(hiddenTextarea);var ame=x_.paddingSize,nme=x_.borderSize,rme=x_.sizingStyle,ime=rme.boxSizing;Object.keys(rme).forEach(function(dme){var ume=dme;hiddenTextarea.style[ume]=rme[ume]}),forceHiddenStyles(hiddenTextarea),hiddenTextarea.value=eme;var ome=getHeight(hiddenTextarea,x_);hiddenTextarea.value="x";var lme=hiddenTextarea.scrollHeight-ame,sme=lme*$P;ime==="border-box"&&(sme=sme+ame+nme),ome=Math.max(sme,ome);var cme=lme*tme;return ime==="border-box"&&(cme=cme+ame+nme),ome=Math.min(cme,ome),[ome,lme]}var noop$4=function(){},pick$1=function(eme,$P){return eme.reduce(function(tme,ame){return tme[ame]=$P[ame],tme},{})},SIZING_STYLE=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],isIE=!!document.documentElement.currentStyle,getSizingData=function(eme){var $P=window.getComputedStyle(eme);if($P===null)return null;var tme=pick$1(SIZING_STYLE,$P),ame=tme.boxSizing;if(ame==="")return null;isIE&&ame==="border-box"&&(tme.width=parseFloat(tme.width)+parseFloat(tme.borderRightWidth)+parseFloat(tme.borderLeftWidth)+parseFloat(tme.paddingRight)+parseFloat(tme.paddingLeft)+"px");var nme=parseFloat(tme.paddingBottom)+parseFloat(tme.paddingTop),rme=parseFloat(tme.borderBottomWidth)+parseFloat(tme.borderTopWidth);return{sizingStyle:tme,paddingSize:nme,borderSize:rme}},useWindowResizeListener=function(eme){var $P=useLatest(eme);reactExports.useLayoutEffect(function(){var tme=function(nme){$P.current(nme)};return window.addEventListener("resize",tme),function(){window.removeEventListener("resize",tme)}},[])},TextareaAutosize=function(eme,$P){var tme=eme.cacheMeasurements,ame=eme.maxRows,nme=eme.minRows,rme=eme.onChange,ime=rme===void 0?noop$4:rme,ome=eme.onHeightChange,lme=ome===void 0?noop$4:ome,sme=_objectWithoutPropertiesLoose$3(eme,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),cme=sme.value!==void 0,dme=reactExports.useRef(null),ume=useComposedRef(dme,$P),fme=reactExports.useRef(0),pme=reactExports.useRef(),hme=function(){var vme=dme.current,gme=tme&&pme.current?pme.current:getSizingData(vme);if(gme){pme.current=gme;var yme=calculateNodeHeight(gme,vme.value||vme.placeholder||"x",nme,ame),_me=yme[0],$me=yme[1];fme.current!==_me&&(fme.current=_me,vme.style.setProperty("height",_me+"px","important"),lme(_me,{rowHeight:$me}))}},bme=function(vme){cme||hme(),ime(vme)};return reactExports.useLayoutEffect(hme),useWindowResizeListener(hme),reactExports.createElement("textarea",_extends$4C({},sme,{onChange:bme,ref:ume}))},index$7=reactExports.forwardRef(TextareaAutosize),Textarea=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={focused:!1},$P.inputRef=function(tme){return $P.input=reactDomExports.findDOMNode(tme),$P.props.forwardRef&&($P.props.forwardRef.current=$P.input),$P.input},$P}return eme.prototype.valueToString=function($P){return typeof $P>"u"||$P===null?"":typeof $P=="string"?$P:JSON.stringify($P)},eme.prototype.focus=function(){var $P=this;this.input&&this.setState({focused:!0},function(){if($P.input){$P.input.focus();var tme=$P.input.value.length;tme&&$P.input.setSelectionRange(tme,tme)}})},eme.prototype.handleChange=function($P){var tme=this.props.onChange,ame=$P.currentTarget.value;tme==null||tme(ame)},eme.prototype.handleFocus=function($P){var tme=this.props.onFocus;this.setState({focused:!0},function(){tme==null||tme($P)})},eme.prototype.handleBlur=function($P){var tme=this.props,ame=tme.onBlur;tme.trimContents,tme.value,tme.onChange,this.setState({focused:!1},function(){ame&&ame($P)})},eme.prototype.handleClear=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame;return __generator(this,function(nme){return $P=this.props,tme=$P.onChange,ame=$P.resetValue,tme==null||tme(ame),this.focus(),[2]})})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className;tme.classPrefix;var nme=tme.value,rme=tme.placeholder,ime=tme.disabled,ome=tme.minRows,lme=tme.maxRows,sme=tme.readOnly,cme=tme.name,dme=tme.borderMode,ume=tme.classnames,fme=tme.maxLength,pme=tme.showCounter,hme=tme.clearable,bme=tme.testIdBuilder,mme=tme.style,vme=pme?this.valueToString(nme).length:0;return React__default.createElement("div",{className:ume("TextareaControl",($P={},$P["TextareaControl--border".concat(ucFirst(dme))]=dme,$P["is-focused"]=this.state.focused,$P["is-disabled"]=ime||sme,$P),ame),style:mme},React__default.createElement(index$7,__assign$3({className:ume("TextareaControl-input",{"TextareaControl-input--counter":pme}),autoComplete:"off",ref:this.inputRef,name:cme,disabled:ime,value:this.valueToString(nme),placeholder:rme,autoCorrect:"off",spellCheck:"false",maxLength:fme,readOnly:sme,minRows:ome||void 0,maxRows:lme||void 0,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur},bme==null?void 0:bme.getTestId())),hme&&!ime&&nme?React__default.createElement("a",{onClick:this.handleClear,className:ume("TextareaControl-clear")},React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,pme?React__default.createElement("span",{className:ume("TextareaControl-counter",{"is-empty":vme===0,"is-clearable":hme&&!ime&&nme})},React__default.createElement("span",null,vme),typeof fme=="number"&&fme?React__default.createElement(React__default.Fragment,null,React__default.createElement("i",null,"/"),React__default.createElement("span",null,fme)):null):null)},eme.defaultProps={minRows:3,maxRows:20,trimContents:!0,resetValue:"",clearable:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleClear",null),eme}(React__default.Component),Textarea$1=themeable(localeable(Textarea)),TitleBar=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.title,nme=$P.titleClassName,rme=$P.right,ime=$P.classnames,ome=ame?React__default.createElement("div",{className:nme},ame):null,lme=ome;return rme?lme=React__default.createElement("div",{className:"hbox hbox-auto-xs h-auto"},React__default.createElement("div",{className:"col bg-light b-b wrapper"},ome),React__default.createElement("div",{className:"col v-middle padder-md text-right bg-light b-b wrapper-sm"},rme)):lme=React__default.createElement("div",{className:"wrapper"},ome),React__default.createElement("div",{className:ime(tme,"TitleBar")},lme)},eme.defaultProps={className:"bg-light lter b-b",title:"标题",titleClassName:"m-n font-thin h3",right:!1},eme}(React__default.PureComponent);themeable(TitleBar);var _a$3,fadeStyles=(_a$3={},_a$3[ENTERING]="in",_a$3[ENTERED]="in",_a$3[EXITING]="out",_a$3),toastRef=null,show=function(x_,eme,$P){eme===void 0&&(eme={}),!(!toastRef||!toastRef[$P])&&toastRef[$P](x_,__assign$3({},eme))},ToastComponent=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.hasRendered=!1,$P.state={items:[]},$P}return eme.prototype.componentDidMount=function(){this.hasRendered=!0,toastRef=this},eme.prototype.componentWillUnmount=function(){this.hasRendered&&(toastRef=null)},eme.prototype.notifiy=function($P,tme,ame){var nme=ame.mobileUI||this.props.mobileUI;this.setState(function(rme){var ime=rme.items.concat();return nme&&(ime=[]),ime.push(__assign$3(__assign$3({body:tme,level:$P},ame),{id:guid$1(),className:ame.className||"",position:ame.position||(nme?"center":ame.position),timeout:ame.timeout||(nme?3e3:void 0)})),{items:ime,mobileUI:nme}})},eme.prototype.success=function($P,tme){this.notifiy("success",$P,tme)},eme.prototype.error=function($P,tme){this.notifiy("error",$P,tme)},eme.prototype.info=function($P,tme){this.notifiy("info",$P,tme)},eme.prototype.warning=function($P,tme){this.notifiy("warning",$P,tme)},eme.prototype.handleDismissed=function($P){var tme,ame=this.state.items.concat(),nme=__read$3(ame.splice($P,1),1),rme=nme[0];(tme=rme==null?void 0:rme.onDissmiss)===null||tme===void 0||tme.call(rme),this.setState({items:ame})},eme.prototype.render=function(){var $P=this;if(toastRef&&!this.hasRendered)return null;var tme=this.props,ame=tme.classnames,nme=tme.className,rme=tme.timeout,ime=tme.errorTimeout,ome=tme.position,lme=tme.showIcon,sme=tme.translate,cme=tme.closeButton,dme=this.state.items,ume=this.state.mobileUI||this.props.mobileUI,fme=groupBy$1(dme,function(pme){return pme.position||ome});return Object.keys(fme).map(function(pme){var hme=fme[pme];return React__default.createElement("div",{key:pme,className:ame("Toast-wrap Toast-wrap--".concat(pme.replace(/\-(\w)/g,function(bme,mme){return mme.toUpperCase()})),{"Toast-mobile":ume},nme)},hme.map(function(bme,mme){var vme,gme,yme,_me=bme.level||"info",$me=(vme=bme.timeout)!==null&&vme!==void 0?vme:_me==="error"?ime:rme;return React__default.createElement(ToastMessage,{classnames:ame,key:bme.id||mme,title:bme.title,body:bme.body,level:_me,className:bme.className,timeout:$me,closeButton:!ume&&((gme=bme.closeButton)!==null&&gme!==void 0?gme:cme),onDismiss:$P.handleDismissed.bind($P,dme.indexOf(bme)),translate:sme,showIcon:(yme=bme.showIcon)!==null&&yme!==void 0?yme:lme,mobileUI:ume})}))})},eme.defaultProps={position:"top-center",closeButton:!1,timeout:4e3,errorTimeout:6e3,items:[]},eme.themeKey="toast",__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"success",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"error",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"info",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"warning",null),eme}(React__default.Component);themeable(localeable(ToastComponent));var ToastMessage=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={visible:!1},$P.mounted=!1,$P}return eme.prototype.componentDidMount=function(){this.mounted=!0,this.setState({visible:!0})},eme.prototype.componentWillUnmount=function(){clearTimeout(this.timer),this.mounted=!1},eme.prototype.handleMouseEnter=function(){clearTimeout(this.timer)},eme.prototype.handleMouseLeave=function(){this.handleEntered()},eme.prototype.handleEntered=function(){var $P=this.props.timeout;this.mounted&&$P&&(this.timer=setTimeout(this.close,$P))},eme.prototype.close=function(){clearTimeout(this.timer),this.setState({visible:!1})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.onDismiss,nme=tme.classnames,rme=tme.closeButton,ime=tme.title,ome=tme.body,lme=tme.allowHtml,sme=tme.level,cme=tme.showIcon,dme=tme.mobileUI;tme.translate;var ume=tme.className,fme=dme?"":"alert-";return React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,in:this.state.visible,timeout:750,onEntered:this.handleEntered,onExited:ame},function(pme){var hme,bme,mme,vme;return React__default.createElement("div",{className:nme("Toast Toast--".concat(sme),ume,fadeStyles[pme],{"Toast-mobile--has-icon":dme&&cme!==!1}),onMouseEnter:$P.handleMouseEnter,onMouseLeave:$P.handleMouseLeave,onClick:rme?noop$9:$P.close},cme===!1?null:React__default.createElement("div",{className:nme("Toast-icon")},sme==="success"?React__default.createElement(Icon$1,{icon:fme+"success",className:"icon"}):sme=="error"?React__default.createElement(Icon$1,{icon:fme+"fail",className:"icon"}):sme=="info"?React__default.createElement(Icon$1,{icon:fme+"info",className:"icon"}):sme=="warning"?React__default.createElement(Icon$1,{icon:fme+"warning",className:"icon"}):null),React__default.createElement("div",{className:nme("Toast-content")},typeof ime=="string"?React__default.createElement("span",{className:nme("Toast-title")},ime):React__default.isValidElement(ime)?React__default.cloneElement(ime,{className:nme("Toast-title",(bme=(hme=ime==null?void 0:ime.props)===null||hme===void 0?void 0:hme.className)!==null&&bme!==void 0?bme:"")}):null,React__default.isValidElement(ome)?React__default.cloneElement(ome,{className:nme("Toast-body",(vme=(mme=ome==null?void 0:ome.props)===null||mme===void 0?void 0:mme.className)!==null&&vme!==void 0?vme:"")}):typeof ome=="string"||typeof ome=="object"?React__default.createElement("div",{className:nme("Toast-body")},lme?React__default.createElement(Html$1,{html:ome==null?void 0:ome.toString()}):ome==null?void 0:ome.toString()):null),rme?React__default.createElement("a",{onClick:$P.close,className:nme("Toast-close")},React__default.createElement(Icon$1,{icon:"status-close",className:"icon"})):null)})},eme.defaultProps={timeout:5e3,classPrefix:"",position:"top-center",allowHtml:!0,level:"info"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleEntered",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),eme}(React__default.Component),toast={container:toastRef,success:function(x_,eme){return show(x_,eme,"success")},error:function(x_,eme){return show(x_,eme,"error")},info:function(x_,eme){return show(x_,eme,"info")},warning:function(x_,eme){return show(x_,eme,"warning")}},TreeSelector=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.unfolded=new WeakMap,tme.relations=new WeakMap,tme.levels=new WeakMap,tme.startPoint={x:0,y:0},tme.root=React__default.createRef(),tme.virtualListRef=React__default.createRef();var ame=value2array($P.value,{multiple:$P.multiple,delimiter:$P.delimiter,valueField:$P.valueField,labelField:$P.labelField,options:$P.options,pathSeparator:$P.pathSeparator},$P.enableNodePath);return tme.state={value:ame,valueSet:new Set(ame),flattenedOptions:[],inputValue:"",addingParent:null,isAdding:!1,isEditing:!1,editingItem:null,dropIndicator:void 0},tme.syncUnFolded($P,void 0,!0),tme.flattenOptions($P,!0),tme}return eme.prototype.componentDidMount=function(){var $P,tme,ame=this.props.enableNodePath;(tme=($P=this.props).onRef)===null||tme===void 0||tme.call($P,this),ame&&this.expandLazyLoadNodes()},eme.prototype.componentDidUpdate=function($P){var tme=this.props;if($P.options!==tme.options&&(this.syncUnFolded(tme),this.flattenOptions(tme)),$P.value!==tme.value||$P.options!==tme.options){var ame=value2array(tme.value,{multiple:tme.multiple,delimiter:tme.delimiter,valueField:tme.valueField,pathSeparator:tme.pathSeparator,options:tme.options,labelField:tme.labelField},tme.enableNodePath);this.setState({value:ame,valueSet:new Set(ame)})}},eme.prototype.componentWillUnmount=function(){this.relations=this.unfolded=this.levels=new WeakMap},eme.prototype.expandLazyLoadNodes=function(){var $P=this.props,tme=$P.pathSeparator,ame=$P.onExpandTree,nme=$P.nodePath,rme=nme===void 0?[]:nme,ime=rme.map(function(ome){return ome?ome.toString().split(tme):[]});ame==null||ame(ime)},eme.prototype.syncUnFolded=function($P,tme,ame){var nme=typeof tme<"u",rme=Number(nme?tme:$P.unfoldedLevel),ime=this.unfolded,ome=this.props,lme=ome.deferField,sme=ome.foldedField,cme=ome.unfoldedField;return eachTree$1($P.options,function(dme,ume,fme){if(!(ime.has(dme)&&!nme)&&dme.children&&dme.children.length){var pme=!0;dme[lme]&&dme.loaded&&!nme&&cme&&dme[cme]!==!1?pme=!0:cme&&typeof dme[cme]<"u"?pme=!!dme[cme]:sme&&typeof dme[sme]<"u"?pme=!dme[sme]:(pme=!!$P.initiallyOpen&&!nme,!pme&&fme<=rme&&(pme=!0)),ime.set(dme,pme)}}),nme&&this.forceUpdate(),this.flattenOptions(void 0,ame),ime},eme.prototype.toggleUnfolded=function($P){var tme=this.unfolded,ame=this.props,nme=ame.deferField,rme=ame.onDeferLoad,ime=ame.unfoldedField;if($P[nme]&&!$P.loaded){rme==null||rme($P);return}$P[nme]&&$P.loaded&&($P[ime]=!tme.get($P)),tme.set($P,!tme.get($P)),this.flattenOptions(),this.forceUpdate()},eme.prototype.isUnfolded=function($P){var tme=this.unfolded,ame=this.relations.get($P);return ame?!!tme.get($P)&&this.isUnfolded(ame):!!tme.get($P)},eme.prototype.clearSelect=function(){var $P=this;this.setState({value:[]},function(){var tme=$P.props,ame=tme.joinValues,nme=tme.rootValue,rme=tme.onChange;rme(ame?nme:[])})},eme.prototype.transform2NodePath=function($P){var tme=this.props,ame=tme.multiple,nme=tme.options,rme=tme.valueField,ime=tme.labelField,ome=tme.joinValues,lme=tme.extractValue,sme=tme.pathSeparator,cme=tme.delimiter,dme=[],ume=Array.isArray($P)?$P.concat():[$P],fme=ume.map(function(pme){var hme,bme,mme,vme=(mme=getTreeAncestors(nme,pme,!0))===null||mme===void 0?void 0:mme.reduce(function(yme,_me){return yme[ime].push(_me[ime]),yme[rme].push(_me[rme]),yme},(hme={},hme[ime]=[],hme[rme]=[],hme)),gme=vme[rme].join(sme);return dme.push(gme),__assign$3(__assign$3({},pme),(bme={},bme[ime]=vme[ime].join(sme),bme[rme]=gme,bme))});return ame?ome?dme.join(cme):lme?dme:fme:ome||lme?fme[0][rme]:fme[0]},eme.prototype.handleSelect=function($P,tme){var ame=this,nme=this.props,rme=nme.joinValues,ime=nme.valueField,ome=nme.deferField,lme=nme.onChange,sme=nme.enableNodePath,cme=nme.onlyLeaf;if($P[ime]===void 0){$P[ome]&&!$P.loaded&&this.toggleUnfolded($P);return}cme&&Array.isArray($P.children)&&$P.children.length||this.setState({value:[$P]},function(){lme(sme?ame.transform2NodePath($P):rme?$P[ime]:$P)})},eme.prototype.handleItemClick=function($P,tme){var ame,nme=this.props,rme=nme.onHandleNodeClick,ime=nme.multiple,ome=nme.nodeBehavior,lme=ome===void 0?["check"]:ome;rme&&rme($P),lme!=null&&lme.includes("unfold")&&(!((ame=$P.children)===null||ame===void 0)&&ame.length)&&this.toggleUnfolded($P),lme!=null&&lme.includes("check")&&(ime?this.handleCheck($P,!tme):this.handleSelect($P))},eme.prototype.handleCheck=function($P,tme){var ame=this,nme=this.props,rme=this.state.valueSet,ime=nme.onlyChildren,ome=nme.withChildren,lme=nme.cascade,sme=nme.autoCheckChildren,cme=nme.autoCancelParent;if(tme){if(rme.has($P)||rme.add($P),sme){var dme=$P.children?__spreadArray([],__read$3($P.children),!1):[],ume=flattenTree(dme).some(function(vme){return vme==null?void 0:vme.disabled});if(ime){var fme=flattenTreeWithLeafNodes(dme).filter(function(vme){return!(vme!=null&&vme.disabled)}).every(function(vme){return rme.has(vme)});for(rme.has($P)&&dme.length&&rme.delete($P);dme.length;){var pme=dme.shift();if(pme.children&&pme.children.length){dme.push.apply(dme,pme.children);continue}if(ume&&fme){rme.has(pme)&&pme.value!=="undefined"&&!(pme!=null&&pme.disabled)&&rme.delete(pme);continue}!rme.has(pme)&&pme.value!=="undefined"&&!(pme!=null&&pme.disabled)&&rme.add(pme)}}else{for(var fme=flattenTree(dme).filter(function(gme){return!(gme!=null&&gme.disabled)}).every(function(gme){return rme.has(gme)});dme.length;){var pme=dme.shift();pme!=null&&pme.disabled||(ume?fme?rme.delete(pme):rme.add(pme):(rme.has(pme)&&rme.delete(pme),(ome||lme)&&rme.add(pme)),pme.children&&pme.children.length&&dme.push.apply(dme,pme.children))}for(var hme=$P;;){var bme=getTreeParent(nme.options,hme);if(bme!=null&&bme.value&&!rme.has(bme)&&bme.children.every(function(gme){return rme.has(gme)})){!lme&&!ome&&bme.children.forEach(function(gme){rme.has(gme)&&rme.delete(gme)}),rme.add(bme),hme=bme;continue}break}}}}else{if(rme.has($P)&&rme.delete($P),sme&&(lme||ome||ime))for(var dme=$P.children?__spreadArray([],__read$3($P.children),!1):[];dme.length;){var pme=dme.shift();rme.has(pme)&&!(pme!=null&&pme.disabled)&&rme.delete(pme),pme.children&&pme.children.length&&dme.push.apply(dme,pme.children)}if(cme&&lme)for(var hme=$P;;){var mme=getTreeParent(nme.options,hme);if(rme.has(mme)){rme.delete(mme),hme=mme;continue}break}}this.setState({value:__spreadArray([],__read$3(rme),!1)},function(){return ame.fireChange(__spreadArray([],__read$3(rme),!1))})},eme.prototype.fireChange=function($P){var tme=this.props,ame=tme.joinValues,nme=tme.extractValue,rme=tme.valueField,ime=tme.delimiter,ome=tme.onChange,lme=tme.enableNodePath;ome(lme?this.transform2NodePath($P):ame?$P.map(function(sme){return sme[rme]}).join(ime):nme?$P.map(function(sme){return sme[rme]}):$P)},eme.prototype.handleAdd=function($P){var tme=this;$P===void 0&&($P=null);var ame=this.props,nme=ame.bultinCUD,rme=ame.onAdd,ime=ame.options;if(nme)this.setState({isEditing:!1,isAdding:!0,addingParent:$P},function(){var lme,sme;if($P){var cme=[];try{for(var dme=__values$1(tme.state.flattenedOptions),ume=dme.next();!ume.done;ume=dme.next()){var fme=ume.value;if(cme.push(fme),fme===$P){var pme={isAdding:!0};tme.levels.set(pme,(tme.levels.get(fme)||0)+1),cme.push(pme)}}}catch(hme){lme={error:hme}}finally{try{ume&&!ume.done&&(sme=dme.return)&&sme.call(dme)}finally{if(lme)throw lme.error}}tme.setState({flattenedOptions:cme})}});else{var ome=findTreeIndex(ime,function(lme){return lme===$P})||[];return rme&&rme(ome.concat(0))}},eme.prototype.handleEdit=function($P){var tme=this.props,ame=tme.bultinCUD,nme=tme.onEdit,rme=tme.labelField;tme.options,ame?this.setState({isEditing:!0,isAdding:!1,editingItem:$P,inputValue:$P[rme]}):nme==null||nme($P)},eme.prototype.handleRemove=function($P){var tme=this.props.onDelete;tme&&tme($P)},eme.prototype.handleInputChange=function($P){this.setState({inputValue:$P.currentTarget.value})},eme.prototype.handleConfirm=function(){var $P=this.state,tme=$P.inputValue,ame=$P.isAdding,nme=$P.addingParent,rme=$P.editingItem,ime=$P.isEditing;if(tme){var ome=this.props,lme=ome.labelField,sme=ome.onAdd,cme=ome.options,dme=ome.onEdit;this.setState({inputValue:"",isAdding:!1,isEditing:!1},function(){var ume,fme;if(ame&&sme){var pme=nme&&findTreeIndex(cme,function(hme){return hme===nme})||[];sme(pme.concat(0),(ume={},ume[lme]=tme,ume),!0)}else ime&&dme&&dme(__assign$3(__assign$3({},rme),(fme={},fme[lme]=tme,fme)),rme,!0)})}},eme.prototype.handleCancel=function(){var $P=this.state.flattenedOptions,tme=$P.filter(function(ame){return!ame.isAdding});this.setState({inputValue:"",isAdding:!1,isEditing:!1,flattenedOptions:tme})},eme.prototype.renderInput=function($P,tme){$P===void 0&&($P=null);var ame=this.props,nme=ame.classnames,rme=ame.mobileUI,ime=ame.translate,ome=this.state.inputValue;return React__default.createElement("div",{className:nme("Tree-itemLabel",{"is-mobile":rme})},React__default.createElement("div",{className:nme("Tree-itemInput",{"is-mobile":rme})},$P,React__default.createElement("input",__assign$3({onChange:this.handleInputChange,value:ome,placeholder:ime("placeholder.enter")},tme==null?void 0:tme.getChild("input").getTestId())),React__default.createElement("a",__assign$3({"data-tooltip":ime("cancel"),onClick:this.handleCancel},tme==null?void 0:tme.getChild("cancel").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"})),React__default.createElement("a",__assign$3({"data-tooltip":ime("confirm"),onClick:this.handleConfirm},tme==null?void 0:tme.getChild("confirm").getTestId()),React__default.createElement(Icon$1,{icon:"check",className:"icon"}))))},eme.prototype.getOffsetPosition=function($P){for(var tme=0,ame=0;$P.offsetParent;)tme+=$P.offsetLeft,ame+=$P.offsetTop,$P=$P.offsetParent;return{left:tme,top:ame}},eme.prototype.getDropInfo=function($P,tme){var ame,nme=$P.currentTarget.getBoundingClientRect(),rme=this.dragNode,ime=Math.min(50,nme.width*.3),ome=!((ame=tme==null?void 0:tme.children)===null||ame===void 0)&&ame.length?0:16,lme=this.getOffsetPosition(this.root.current),sme=this.getOffsetPosition($P.currentTarget),cme=sme.left-lme.left,dme=sme.top-lme.top,ume=$P.clientX,fme=$P.clientY,pme=fme>=nme.top+nme.height/2?"bottom":"top",hme;return pme==="bottom"&&ume>=this.startPoint.x+ime?(pme="self",hme={top:dme,left:cme,width:nme.width,height:nme.height}):hme={top:pme==="bottom"?dme+nme.height:dme,left:cme+ome,width:nme.width-ome},{node:tme,dragNode:rme,position:pme,indicator:hme}},eme.prototype.updateDropIndicator=function($P,tme){this.dropInfo=this.getDropInfo($P,tme);var ame=this.dropInfo,nme=ame.dragNode,rme=ame.indicator;if(tme===nme){this.setState({dropIndicator:void 0});return}this.setState({dropIndicator:rme})},eme.prototype.onDragStart=function($P){var tme=this,ame=this.props.draggable;return function(nme){var rme;ame?(nme.dataTransfer.effectAllowed="copyMove",tme.dragNode=$P,tme.dropInfo=null,tme.startPoint={x:nme.clientX,y:nme.clientY},!((rme=$P==null?void 0:$P.children)===null||rme===void 0)&&rme.length&&(tme.unfolded.set($P,!1),tme.flattenOptions(),tme.forceUpdate())):(tme.dragNode=null,tme.dropInfo=null),nme.stopPropagation()}},eme.prototype.onDragOver=function($P){var tme=this;return function(ame){tme.dragNode&&(tme.updateDropIndicator(ame,$P),ame.preventDefault())}},eme.prototype.onDragEnd=function($P){var tme=this;return function(ame){var nme,rme,ime;tme.setState({dropIndicator:void 0});var ome=(nme=tme.dropInfo)===null||nme===void 0?void 0:nme.node;!tme.dropInfo||!ome||$P===ome||((ime=(rme=tme.props).onMove)===null||ime===void 0||ime.call(rme,tme.dropInfo),tme.dragNode=null,tme.dropInfo=null,ame.preventDefault())}},eme.prototype.flattenOptions=function($P,tme){var ame=this,nme=[];eachTree$1(($P==null?void 0:$P.options)||this.props.options,function(rme,ime,ome,lme){var sme=lme[lme.length-1];isVisible(rme)&&(ame.levels.set(rme,ome),sme&&ame.relations.set(rme,sme),(lme.length===0||ame.isUnfolded(sme))&&nme.push(rme))}),tme?this.state=__assign$3(__assign$3({},this.state),{flattenedOptions:nme}):this.setState({flattenedOptions:nme})},eme.prototype.isParentChecked=function($P){if(!$P||!this.relations.get($P))return!1;for(var tme=this.state.valueSet,ame=$P;ame;){var nme=this.relations.get(ame);if(!nme)return!1;if(tme.has(nme))return!0;ame=nme}return!1},eme.prototype.isItemChildrenChecked=function($P){var tme=this;return!$P||!$P.children?!0:!$P.children.some(function(ame){return!tme.isItemChecked(ame)})},eme.prototype.isItemChildrenPartialChecked=function($P,tme){var ame,nme;if(!$P||!$P.children||tme)return!1;var rme=0,ime=0;try{for(var ome=__values$1($P.children),lme=ome.next();!lme.done;lme=ome.next()){var sme=lme.value;this.isItemChecked(sme)?rme++:this.isItemChildrenPartialChecked(sme,!1)&&ime++}}catch(cme){ame={error:cme}}finally{try{lme&&!lme.done&&(nme=ome.return)&&nme.call(ome)}finally{if(ame)throw ame.error}}return rme!==0||ime!==0},eme.prototype.isItemChecked=function($P){var tme;if(!$P)return!1;var ame=this.props,nme=ame.autoCheckChildren,rme=ame.onlyChildren,ime=ame.multiple,ome=ame.withChildren,lme=ame.cascade,sme=this.state.valueSet,cme=sme.has($P);if(cme||!((tme=$P.children)===null||tme===void 0)&&tme.length&&rme&&nme&&this.isItemChildrenChecked($P))return!0;var dme=this.relations.get($P);return dme&&ime&&nme?ome||lme?!1:this.isParentChecked($P):!1},eme.prototype.isItemDisabled=function($P,tme){var ame=this.props,nme=ame.disabledField,rme=ame.disabled,ime=ame.autoCheckChildren,ome=ame.valueField,lme=ame.multiple,sme=ame.maxLength,cme=ame.minLength,dme=ame.cascade,ume=ame.onlyChildren,fme=this.state.value,pme=$P[nme],hme=!!rme||pme||lme&&!ime&&!$P[ome];if(hme||sme&&!tme&&fme.length>=sme||cme&&tme&&fme.length<=cme)return!0;var bme=this.relations.get($P);return ime&&lme&&tme&&bme?!this.isItemChecked(bme)||ume?!1:!dme:!1},eme.prototype.renderItem=function($P){var tme=this,ame=$P.index,nme=$P.style,rme=this.props,ime=rme.itemClassName,ome=rme.showIcon,lme=rme.showRadio,sme=rme.multiple,cme=rme.labelField,dme=rme.iconField,ume=rme.deferField,fme=rme.cascade,pme=rme.classnames,hme=rme.highlightTxt,bme=rme.creatable,mme=rme.editable,vme=rme.removable,gme=rme.createTip,yme=rme.editTip,_me=rme.removeTip,$me=rme.translate,Cme=rme.itemRender,Sme=rme.draggable,Eme=rme.loadingConfig,xme=rme.enableDefaultIcon,Tme=rme.valueField,Ome=rme.mobileUI,Rme=rme.testIdBuilder,Nme=rme.itemActionsRender,Ime=rme.actionClassName,Pme=this.state.flattenedOptions[ame];if(!Pme)return null;var Mme=this.state,kme=Mme.isAdding,Bme=Mme.editingItem,Dme=Mme.isEditing,jme=this.isItemChecked(Pme),Vme=this.isItemDisabled(Pme,jme),Wme=this.isItemChildrenPartialChecked(Pme,jme),Lme=!!~this.state.value.indexOf(Pme),zme=Rme==null?void 0:Rme.getChild("item-".concat(Pme[Tme]||Pme[cme]||ame)),Ume=sme?React__default.createElement(Checkbox$1$1,{size:"sm",disabled:Vme,checked:jme||Wme,partial:Wme,onChange:this.handleCheck.bind(this,Pme,!jme),testIdBuilder:zme==null?void 0:zme.getChild("chekbx")}):lme?React__default.createElement(Checkbox$1$1,{size:"sm",disabled:Vme,checked:jme,onChange:this.handleSelect.bind(this,Pme),testIdBuilder:zme==null?void 0:zme.getChild("chekbx")}):null,Gme=(!Pme.children||!Pme.children.length)&&!Pme.placeholder,Jme=Pme[dme]||(xme!==!1?Array.isArray(Pme.children)&&Pme.children.length||Pme[ume]?"folder":"file":!1),Yme=this.levels.has(Pme)?this.levels.get(Pme)-1:0,Qme=null;if(Dme&&Bme===Pme)Qme=this.renderInput(Ume,zme==null?void 0:zme.getChild("edit"));else if(Pme.isAdding)Qme=this.renderInput(React__default.createElement("span",{className:pme("Tree-itemArrowPlaceholder")}),zme==null?void 0:zme.getChild("add"));else{var Xme=!this.isUnfolded(Pme);Qme=React__default.createElement("div",{className:pme("Tree-itemLabel",{"is-children-checked":sme&&!fme&&this.isItemChildrenChecked(Pme)&&!Vme,"is-checked":Lme,"is-disabled":Vme}),draggable:Sme,onDragStart:this.onDragStart(Pme),onDragOver:this.onDragOver(Pme),onDragEnd:this.onDragEnd(Pme)},Sme&&React__default.createElement("a",__assign$3({className:pme("Tree-itemDrager drag-bar")},zme==null?void 0:zme.getChild("drag-bar").getTestId()),React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),Pme.loading?React__default.createElement(Spinner$1,{size:"sm",show:!0,icon:"reload",spinnerClassName:pme("Tree-spinner"),loadingConfig:Eme}):!Gme||Pme[ume]&&!Pme.loaded?React__default.createElement("div",__assign$3({onClick:function(){return tme.toggleUnfolded(Pme)},className:pme("Tree-itemArrow",{"is-folded":Xme})},zme==null?void 0:zme.getChild(Xme?"open":"fold").getTestId()),React__default.createElement(Icon$1,{icon:"down-arrow-bold",className:"icon"})):React__default.createElement("span",{className:pme("Tree-itemArrowPlaceholder")}),Ume,React__default.createElement("div",__assign$3({className:pme("Tree-itemLabel-item",{"is-mobile":Ome})},zme==null?void 0:zme.getChild("content").getTestId(),{onClick:function(){return!Vme&&tme.handleItemClick(Pme,jme)}}),ome?React__default.createElement("i",{className:pme("Tree-itemIcon ".concat(Array.isArray(Pme.children)&&Pme.children.length||Pme[ume]?"Tree-folderIcon":"Tree-leafIcon"))},Jme?React__default.createElement(Icon$1,{icon:Jme,className:"icon"}):null):null,React__default.createElement("span",__assign$3({className:pme("Tree-itemText"),title:Pme[cme]},zme==null?void 0:zme.getChild("text").getTestId()),Cme?Cme(Pme,{index:ame,multiple:sme,checked:jme,labelField:cme,onChange:function(){return tme.handleCheck(Pme,!jme)},disabled:Vme||Pme.disabled,classnames:pme}):hme?highlight("".concat(Pme[cme]),hme):"".concat(Pme[cme])),!Vme&&!kme&&!Dme?React__default.createElement("div",{className:pme("Tree-item-icons",Ime),onClick:function(Kme){return Kme.stopPropagation()}},bme&&!(Pme[ume]&&!Pme.loaded)&&hasAbility(Pme,"creatable")?React__default.createElement(TooltipWrapper$1,{placement:"bottom",tooltip:$me(gme),trigger:"hover",tooltipTheme:"dark"},React__default.createElement("a",__assign$3({onClick:this.handleAdd.bind(this,Pme)},zme==null?void 0:zme.getChild("add").getTestId()),React__default.createElement(Icon$1,{icon:"plus",className:"icon"}))):null,vme&&hasAbility(Pme,"removable")?React__default.createElement(TooltipWrapper$1,{placement:"bottom",tooltip:$me(_me),trigger:"hover",tooltipTheme:"dark"},React__default.createElement("a",__assign$3({onClick:this.handleRemove.bind(this,Pme)},zme==null?void 0:zme.getChild("remove").getTestId()),React__default.createElement(Icon$1,{icon:"minus",className:"icon"}))):null,mme&&hasAbility(Pme,"editable")?React__default.createElement(TooltipWrapper$1,{placement:"bottom",tooltip:$me(yme),trigger:"hover",tooltipTheme:"dark"},React__default.createElement("a",__assign$3({onClick:this.handleEdit.bind(this,Pme)},zme==null?void 0:zme.getChild("edit").getTestId()),React__default.createElement(Icon$1,{icon:"new-edit",className:"icon"}))):null,Nme&&React__default.createElement("div",{className:pme("Tree-itemActions")},Nme(Pme,__assign$3(__assign$3({},Pme),{index:ame,multiple:sme,checked:jme,labelField:cme,onChange:function(){return tme.handleCheck(Pme,!jme)},disabled:Vme||Pme.disabled,classnames:pme})))):null))}return React__default.createElement("li",__assign$3({key:"".concat(Pme[Tme||"value"],"-").concat(ame),className:pme("Tree-item ".concat(ime||""),{"Tree-item--isLeaf":Gme,"is-child":this.relations.get(Pme)}),style:__assign$3(__assign$3({},nme),{paddingLeft:"calc(".concat(Yme," * var(--Tree-indent))")})},zme==null?void 0:zme.getTestId()),Qme)},eme.prototype.isEmptyOrNotExist=function($P){return $P===""||$P===void 0||$P===null},eme.prototype.getAvailableOptions=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.onlyChildren,rme=tme.valueField,ime=flattenTree(ame,function(ome){return nme?ome.children?null:ome:$P.isEmptyOrNotExist(ome[rme||"value"])?null:ome}).filter(function(ome){return ome&&!ome.disabled});return ime},eme.prototype.handleCheckAll=function($P,tme){var ame=this;this.setState({value:tme?[]:$P},function(){return ame.fireChange(tme?[]:$P)})},eme.prototype.handleToggle=function($P){var tme=this,ame=this.getAvailableOptions();if($P===void 0){var nme=ame.every(function(rme){return tme.isItemChecked(rme)});this.handleCheckAll(ame,nme);return}this.handleCheckAll(ame,$P)},eme.prototype.renderCheckAll=function(){var $P=this,tme=this.props,ame=tme.multiple,nme=tme.checkAll,rme=tme.checkAllLabel,ime=tme.classnames,ome=tme.translate,lme=tme.disabled,sme=tme.mobileUI;if(!ame||!nme)return null;var cme=this.getAvailableOptions(),dme=cme.every(function(fme){return $P.isItemChecked(fme)}),ume=cme.some(function(fme){return $P.isItemChecked(fme)});return React__default.createElement("div",{className:ime("Tree-itemLabel"),onClick:function(){return $P.handleCheckAll(cme,dme)}},React__default.createElement(Checkbox$1$1,{size:"sm",disabled:lme,checked:ume,partial:ume&&!dme}),React__default.createElement("div",{className:ime("Tree-itemLabel-item",{"is-mobile":sme})},React__default.createElement("span",{className:ime("Tree-itemText")},ome(rme))))},eme.prototype.renderList=function($P,tme){var ame=this,nme=this.props,rme=nme.virtualThreshold,ime=nme.itemHeight,ome=ime===void 0?32:ime,lme=nme.virtualHeight;return rme&&$P.length>rme?React__default.createElement("div",{ref:this.virtualListRef},React__default.createElement(VirtualList,{height:lme!==void 0?lme:266,itemCount:$P.length,prefix:this.renderCheckAll(),itemSize:ome,renderItem:this.renderItem.bind(this)})):React__default.createElement(React__default.Fragment,null,this.renderCheckAll(),$P.map(function(sme,cme){return ame.renderItem({index:cme})}))},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.placeholder,nme=$P.hideRoot,rme=$P.rootLabel,ime=$P.showOutline,ome=$P.showIcon,lme=$P.classnames,sme=$P.creatable,cme=$P.rootCreatable,dme=$P.rootCreateTip,ume=$P.disabled,fme=$P.draggable,pme=$P.translate,hme=$P.testIdBuilder,bme=$P.actionClassName,mme=this.state,vme=mme.value,gme=mme.isAdding,yme=mme.addingParent,_me=mme.isEditing,$me=mme.dropIndicator,Cme=mme.flattenedOptions,Sme=null;return sme&&cme!==!1&&nme&&(Sme=React__default.createElement("a",__assign$3({className:lme("Tree-addTopBtn",{"is-disabled":gme||_me}),onClick:this.handleAdd.bind(this,null)},hme==null?void 0:hme.getChild("add").getTestId()),React__default.createElement(Icon$1,{icon:"plus",className:"icon"}),React__default.createElement("span",null,pme(dme)))),React__default.createElement("div",__assign$3({className:lme("Tree ".concat(tme||""),{"Tree--outline":ime,"is-disabled":ume,"is-draggable":fme}),ref:this.root},hme==null?void 0:hme.getTestId()),Cme&&Cme.length||Sme||nme===!1?React__default.createElement("ul",{className:lme("Tree-list")},nme?React__default.createElement(React__default.Fragment,null,Sme,gme&&!yme?React__default.createElement("li",{className:lme("Tree-item")},this.renderInput()):null,this.renderList(Cme,vme)):React__default.createElement("li",{className:lme("Tree-rootItem",{"is-checked":!vme||!vme.length})},React__default.createElement("div",{className:lme("Tree-itemLabel")},React__default.createElement("span",__assign$3({className:lme("Tree-itemText"),onClick:this.clearSelect},hme==null?void 0:hme.getChild("root-item").getTestId()),ome?React__default.createElement("i",{className:lme("Tree-itemIcon Tree-rootIcon")},React__default.createElement(Icon$1,{icon:"home",className:"icon"})):null,rme),!ume&&sme&&cme!==!1&&!gme&&!_me?React__default.createElement("div",{className:lme("Tree-item-icons",bme)},sme?React__default.createElement("a",__assign$3({onClick:this.handleAdd.bind(this,null),"data-tooltip":dme,"data-position":"left"},hme==null?void 0:hme.getChild("root-add").getTestId()),React__default.createElement(Icon$1,{icon:"plus",className:"icon"})):null):null),React__default.createElement("ul",{className:lme("Tree-sublist")},gme&&!yme?React__default.createElement("li",{className:lme("Tree-item")},this.renderInput()):null,this.renderList(Cme,vme)))):React__default.createElement("div",{className:lme("Tree-placeholder")},ame),$me&&React__default.createElement("div",{className:lme("Tree-dropIndicator",{"Tree-dropIndicator--hover":!!$me.height}),style:$me}))},eme.defaultProps={showIcon:!0,showOutline:!1,initiallyOpen:!0,unfoldedLevel:1,showRadio:!1,multiple:!1,disabled:!1,withChildren:!1,onlyChildren:!1,labelField:"label",valueField:"value",iconField:"icon",deferField:"defer",unfoldedField:"unfolded",foldedField:"foled",disabledField:"disabled",joinValues:!0,extractValue:!1,delimiter:",",hideRoot:!0,rootLabel:"Tree.root",rootValue:0,autoCheckChildren:!0,autoCancelParent:!1,cascade:!1,selfDisabledAffectChildren:!0,rootCreateTip:"Tree.addRoot",createTip:"Tree.addChild",editTip:"Tree.editNode",removeTip:"Tree.removeNode",enableNodePath:!1,pathSeparator:"/",nodePath:[],virtualThreshold:100,itemHeight:32,enableDefaultIcon:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"toggleUnfolded",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleCheck",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleRemove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",Object)],eme.prototype,"getDropInfo",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateDropIndicator",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onDragStart",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onDragOver",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onDragEnd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderItem",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleCheckAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleToggle",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Array]),__metadata("design:returntype",void 0)],eme.prototype,"renderList",null),eme}(React__default.Component),Tree=themeable(localeable(TreeSelector)),Alert=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleClick=tme.handleClick.bind(tme),tme.state={show:!0},tme}return eme.prototype.handleClick=function(){this.setState({show:!1},this.props.onClose)},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.style,rme=$P.level,ime=$P.children,ome=$P.actions,lme=$P.showCloseButton,sme=$P.title,cme=$P.icon,dme=$P.showIcon,ume=$P.iconClassName,fme=$P.closeButtonClassName,pme=dme?React__default.createElement(Icon$1,{cx:tme,icon:cme||"alert-".concat(rme),className:"icon"}):null;return this.state.show?React__default.createElement("div",{className:tme("Alert",rme?"Alert--".concat(rme):"",sme?"Alert-has-title":"",ame),style:nme},dme&&pme?React__default.createElement("div",{className:tme("Alert-icon",ume)},pme):null,React__default.createElement("div",{className:tme("Alert-content")},sme?React__default.createElement("div",{className:tme("Alert-title")},sme):null,React__default.createElement("div",{className:tme("Alert-desc")},ime)),ome?React__default.createElement("div",{className:tme("Alert-actions")},ome):null,lme?React__default.createElement("button",{className:tme("Alert-close",fme),onClick:this.handleClick,type:"button"},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):null):null},eme.defaultProps={level:"info",className:"",showCloseButton:!1},eme.propsList=["level","className","showCloseButton","onClose"],eme}(React__default.Component),Alert2=themeable(Alert),SetCache$1=_SetCache,arrayIncludes=_arrayIncludes,arrayIncludesWith=_arrayIncludesWith,arrayMap$5=_arrayMap,baseUnary$1=_baseUnary,cacheHas$1=_cacheHas,nativeMin$3=Math.min;function baseIntersection$3(x_,eme,$P){for(var tme=$P?arrayIncludesWith:arrayIncludes,ame=x_[0].length,nme=x_.length,rme=nme,ime=Array(nme),ome=1/0,lme=[];rme--;){var sme=x_[rme];rme&&eme&&(sme=arrayMap$5(sme,baseUnary$1(eme))),ome=nativeMin$3(sme.length,ome),ime[rme]=!$P&&(eme||ame>=120&&sme.length>=120)?new SetCache$1(rme&&sme):void 0}sme=x_[0];var cme=-1,dme=ime[0];e:for(;++cme<ame&&lme.length<ome;){var ume=sme[cme],fme=eme?eme(ume):ume;if(ume=$P||ume!==0?ume:0,!(dme?cacheHas$1(dme,fme):tme(lme,fme,$P))){for(rme=nme;--rme;){var pme=ime[rme];if(!(pme?cacheHas$1(pme,fme):tme(x_[rme],fme,$P)))continue e}dme&&dme.push(fme),lme.push(ume)}}return lme}var _baseIntersection=baseIntersection$3,isArrayLikeObject$3=isArrayLikeObject_1;function castArrayLikeObject$3(x_){return isArrayLikeObject$3(x_)?x_:[]}var _castArrayLikeObject=castArrayLikeObject$3,arrayMap$4=_arrayMap,baseIntersection$2=_baseIntersection,baseRest$5=_baseRest,castArrayLikeObject$2=_castArrayLikeObject,last$3=last_1,intersectionWith=baseRest$5(function(x_){var eme=last$3(x_),$P=arrayMap$4(x_,castArrayLikeObject$2);return eme=typeof eme=="function"?eme:void 0,eme&&$P.pop(),$P.length&&$P[0]===x_[0]?baseIntersection$2($P,void 0,eme):[]}),intersectionWith_1=intersectionWith;const intersectionWith$1=getDefaultExportFromCjs(intersectionWith_1);var baseIndexOf=_baseIndexOf,isArrayLike$2=isArrayLike_1,isString$5=isString_1,toInteger$2=toInteger_1,values=values_1,nativeMax$3=Math.max;function includes(x_,eme,$P,tme){x_=isArrayLike$2(x_)?x_:values(x_),$P=$P&&!tme?toInteger$2($P):0;var ame=x_.length;return $P<0&&($P=nativeMax$3(ame+$P,0)),isString$5(x_)?$P<=ame&&x_.indexOf(eme,$P)>-1:!!ame&&baseIndexOf(x_,eme,$P)>-1}var includes_1=includes;const includes$1=getDefaultExportFromCjs(includes_1);var baseFlatten$2=_baseFlatten,baseRest$4=_baseRest,baseUniq$1=_baseUniq,isArrayLikeObject$2=isArrayLikeObject_1,last$2=last_1,unionWith=baseRest$4(function(x_){var eme=last$2(x_);return eme=typeof eme=="function"?eme:void 0,baseUniq$1(baseFlatten$2(x_,1,isArrayLikeObject$2,!0),void 0,eme)}),unionWith_1=unionWith;const unionWith$1=getDefaultExportFromCjs(unionWith_1);var BaseSelection=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}eme.itemRender=function(tme,ame){var nme=tme[(ame==null?void 0:ame.labelField)||"label"],rme=tme.tip||"",ime=ame.classnames,ome=ame.testIdBuilder,lme=typeof nme=="string"||typeof nme=="number",sme=typeof rme=="string"||typeof nme=="number",cme=lme&&sme?"".concat(nme," ").concat(rme):"";return React__default.createElement("span",__assign$3({title:cme,className:"".concat(cx$1({"is-invalid":tme==null?void 0:tme.__unmatched})," ").concat(ime("Selection-ellipsis-line"))},ome==null?void 0:ome.getChild("span").getTestId()),nme,rme)},eme.value2array=function(tme,ame,nme,rme){return nme===void 0&&(nme=function(ime){return ime}),tme===void 0?[]:(Array.isArray(tme)||(tme=[tme]),tme.map(function(ime){var ome=findTree(ame,function(lme){return isEqual$1(nme(lme),ime)},rme?{value:getOptionValue(ime,rme),resolve:getOptionValueBindField(rme)}:void 0);return ome||ime}))},eme.resolveSelected=function(tme,ame,nme){return nme===void 0&&(nme=function(rme){return rme}),tme=Array.isArray(tme)?tme[0]:tme,findTree(ame,function(rme){return isEqual$1(nme(rme),tme)})},eme.prototype.intersectArray=function(tme,ame){if(!Array.isArray(tme)||!Array.isArray(ame))return[];var nme=tme.length,rme=ame.length;return nme<rme?this.intersectArray(ame,tme):Array.from(new Set(tme.filter(function(ime){return ame.includes(ime)})))},eme.prototype.toggleOption=function(tme){var ame=this.props,nme=ame.value,rme=ame.onChange,ime=ame.option2value,ome=ame.options,lme=ame.disabled,sme=ame.multiple,cme=ame.clearable,dme=ame.valueField;if(!(lme||tme.disabled)){var ume=eme.value2array(nme,ome,ime,dme),fme=ume.indexOf(tme);~fme&&(sme||cme)?ume.splice(fme,1):sme?ume.push(tme):ume=[tme];var pme=ime?ume.map(function(hme){return ime(hme)}):ume;rme&&rme(sme?pme:pme[0])}},eme.prototype.getAvailableOptions=function(){var tme=this.props.options,ame=flattenTree(tme,function(nme){return nme.children?null:nme}).filter(function(nme){return nme&&!nme.disabled});return ame},eme.prototype.toggleAll=function(){var tme=this.props,ame=tme.value,nme=tme.onChange,rme=tme.option2value;tme.options;var ime=[],ome=this.getAvailableOptions(),lme=this.intersectArray(ame,ome);Array.isArray(ame)?lme.length<ome.length?ime=Array.from(new Set(__spreadArray(__spreadArray([],__read$3(ame),!1),__read$3(ome),!1))):ime=ame.filter(function(cme){return!ome.includes(cme)}):ime=ome;var sme=rme?ime.map(function(cme){return rme(cme)}):ime;nme&&nme(sme)},eme.prototype.render=function(){var tme=this,ame=this.props,nme=ame.value,rme=ame.options,ime=ame.className,ome=ame.placeholder,lme=ame.inline,sme=ame.labelClassName,cme=ame.disabled,dme=ame.classnames,ume=ame.option2value,fme=ame.itemClassName,pme=ame.itemRender,hme=ame.multiple,bme=ame.labelField,mme=ame.valueField,vme=ame.onClick,gme=ame.testIdBuilder,yme=this.props.translate,_me=eme.value2array(nme,rme,ume,mme),$me=[];return Array.isArray(rme)&&rme.length&&($me=rme.map(function(Cme,Sme){return React__default.createElement(Checkbox$1$1,{type:hme?"checkbox":"radio",className:dme(fme,Cme.className),key:Sme,onChange:function(){return tme.toggleOption(Cme)},checked:!!~_me.indexOf(Cme),disabled:cme||Cme.disabled,labelClassName:sme,description:Cme.description},pme(Cme,{index:Sme,multiple:hme,checked:!!~_me.indexOf(Cme),onChange:function(){return tme.toggleOption(Cme)},labelField:bme,classnames:dme,disabled:cme||Cme.disabled,testIdBuilder:gme==null?void 0:gme.getChild(Sme)}))})),React__default.createElement("div",{className:dme("Selection",ime,lme?"Selection--inline":""),onClick:vme},$me&&$me.length?$me:React__default.createElement("div",null,yme(ome)))};var $P;return $P=eme,eme.defaultProps={placeholder:"placeholder.noOption",itemRender:$P.itemRender,multiple:!0,clearable:!1,virtualThreshold:1e3,itemHeight:32},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleAll",null),eme}(React__default.Component),Selection=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme}(BaseSelection),Selection$1=themeable(localeable(uncontrollable(Selection,{value:"onChange"}))),InputBox=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isFocused:!1},$P}return eme.prototype.clearValue=function($P){$P.preventDefault(),$P.stopPropagation();var tme=this.props.onClear,ame=this.props.onChange;tme==null||tme($P),ame==null||ame("")},eme.prototype.handleChange=function($P){var tme=this.props.onChange;tme&&tme($P.currentTarget?$P.currentTarget.value:$P)},eme.prototype.handleFocus=function($P){var tme=this.props.onFocus;tme&&tme($P),this.setState({isFocused:!0})},eme.prototype.handleBlur=function($P){var tme=this.props.onBlur;tme&&tme($P),this.setState({isFocused:!1})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className,nme=tme.classnames;tme.classPrefix;var rme=tme.clearable,ime=tme.disabled,ome=tme.hasError,lme=tme.value,sme=tme.placeholder,cme=tme.prefix,dme=tme.children,ume=tme.borderMode,fme=tme.onClick,pme=tme.mobileUI,hme=tme.testIdBuilder,bme=tme.inputRender,mme=tme.dataName,vme=__rest$14(tme,["className","classnames","classPrefix","clearable","disabled","hasError","value","placeholder","prefix","children","borderMode","onClick","mobileUI","testIdBuilder","inputRender","dataName"]),gme=this.state.isFocused;return React__default.createElement("div",{className:nme("InputBox",ame,($P={"is-mobile":pme,"is-focused":gme,"is-disabled":ime,"is-error":ome,"is-clickable":fme},$P["InputBox--border".concat(ucFirst(ume))]=ume,$P)),onClick:fme,"data-amis-name":mme},cme,typeof bme=="function"?bme(__assign$3(__assign$3(__assign$3({},vme),{value:lme??"",onChange:this.handleChange,placeholder:sme,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:ime}),hme==null?void 0:hme.getTestId())):React__default.createElement(Input,__assign$3({},vme,{value:lme??"",onChange:this.handleChange,placeholder:sme,onFocus:this.handleFocus,onBlur:this.handleBlur,size:12,disabled:ime},hme==null?void 0:hme.getTestId())),rme&&!ime&&lme?React__default.createElement("a",{onClick:this.clearValue,className:nme("InputBox-clear")},React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,dme)},eme.defaultProps={clearable:!0,placeholder:""},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"clearValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),eme}(React__default.Component),InputBox$1=themeable(InputBox),TransferSearch=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={inputValue:""},$P.lazySearch=debounce$6(function(){var tme=$P.state.inputValue;if(tme){var ame=$P.props.onSearch;ame(tme)}},250,{trailing:!0,leading:!1}),$P}return eme.prototype.componentWillUnmount=function(){this.lazySearch.cancel()},eme.prototype.handleSearch=function($P){var tme=this;this.setState({inputValue:$P},function(){$P?(tme.cancelSearch&&tme.cancelSearch(),tme.lazySearch()):tme.handleSeachCancel()})},eme.prototype.handleSearchKeyDown=function($P){$P.key==="Enter"&&$P.preventDefault()},eme.prototype.handleSeachCancel=function(){var $P,tme;(tme=($P=this.props).onCancelSearch)===null||tme===void 0||tme.call($P),this.setState({inputValue:""})},eme.prototype.clearInput=function(){this.setState({inputValue:""})},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames;$P.translate;var ame=$P.placeholder,nme=$P.mobileUI,rme=this.state.inputValue;return React__default.createElement("div",{className:tme("Transfer-search")},React__default.createElement(InputBox$1,{value:rme,onChange:this.handleSearch,clearable:!1,onKeyDown:this.handleSearchKeyDown,placeholder:ame,mobileUI:nme},rme?React__default.createElement("a",{onClick:this.handleSeachCancel},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"})))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearchKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSeachCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearInput",null),eme}(React__default.Component),TransferSearch$1=themeable(localeable(TransferSearch)),ResultList=function(x_){__extends$2(eme,x_);function eme(){var tme=x_!==null&&x_.apply(this,arguments)||this;return tme.state={searchResult:null},tme.id=guid$1(),tme.unmounted=!1,tme}eme.itemRender=function(tme,ame){var nme=tme.scopeLabel||"",rme=tme[(ame==null?void 0:ame.labelField)||"label"],ime=typeof nme=="string"||typeof nme=="number",ome=typeof rme=="string"||typeof rme=="number",lme=ime&&ome?"".concat(nme).concat(rme):"",sme=ame.classnames;return React__default.createElement("span",{title:lme,className:sme("Selection-ellipsis-line")},nme,rme)},eme.prototype.componentDidMount=function(){this.props.sortable&&this.initSortable()},eme.prototype.componentDidUpdate=function(){this.props.sortable?this.sortable||this.initSortable():this.desposeSortable()},eme.prototype.componentWillUnmount=function(){this.desposeSortable(),this.unmounted=!0},eme.prototype.domSearchRef=function(tme){for(;tme&&tme.getWrappedInstance;)tme=tme.getWrappedInstance();this.searchRef=tme},eme.prototype.initSortable=function(){var tme=this,ame=this.props.classPrefix,nme=reactDomExports.findDOMNode(this),rme=nme.querySelector(".".concat(ame,"Selections-items"));rme&&(this.sortable=new Sortable$1(rme,{group:"selections-".concat(this.id),animation:150,handle:".".concat(ame,"Selections-dragbar"),ghostClass:"".concat(ame,"Selections-item--dragging"),onEnd:function(ime){var ome,lme;if(ime.newIndex!==ime.oldIndex){var sme=ime.to;ime.oldIndex<sme.childNodes.length-1?sme.insertBefore(ime.item,sme.childNodes[ime.oldIndex>ime.newIndex?ime.oldIndex+1:ime.oldIndex]):sme.appendChild(ime.item);var cme=tme.props.value;if(Array.isArray(cme)){var dme=cme.concat();dme.splice(ime.newIndex,0,dme.splice(ime.oldIndex,1)[0]),(lme=(ome=tme.props).onChange)===null||lme===void 0||lme.call(ome,dme)}}}}))},eme.prototype.desposeSortable=function(){var tme;(tme=this.sortable)===null||tme===void 0||tme.destroy(),delete this.sortable},eme.prototype.handleValueChange=function(tme,ame,nme){var rme;if(typeof nme=="string"){var ime=this.props,ome=ime.value,lme=ime.onChange,sme=Array.isArray(ome)?ome.concat():[];sme[tme]&&(sme.splice(tme,1,__assign$3(__assign$3({},sme[tme]),(rme={},rme[nme]=ame,rme))),lme==null||lme(sme,!0))}},eme.prototype.search=function(tme){var ame=this.props,nme=ame.onSearch,rme=ame.value,ime=(rme||[]).filter(function(ome){return nme&&nme(tme,ome)});this.setState({searchResult:ime})},eme.prototype.clearSearch=function(){this.setState({searchResult:null})},eme.prototype.clearInput=function(){var tme,ame;this.props.searchable&&((ame=(tme=this.searchRef)===null||tme===void 0?void 0:tme.clearInput)===null||ame===void 0||ame.call(tme)),this.clearSearch()},eme.prototype.handleCloseItem=function(tme,ame){var nme=this.props,rme=nme.value,ime=nme.onChange,ome=nme.disabled,lme=nme.searchable,sme=nme.valueField,cme=sme===void 0?"value":sme;if(!(ome||ame.disabled)){var dme=this.state.searchResult;if(lme&&dme){var ume=cloneDeep$1(rme)||[],fme=ume.findIndex(function(yme){return yme[cme]===ame[cme]});fme>-1&&(ume.splice(fme,1),ime&&ime(ume));var pme=parseInt(tme.currentTarget.getAttribute("data-index"),10);pme>-1&&(dme.splice(pme,1),this.setState({searchResult:dme}))}else{var hme=parseInt(tme.currentTarget.getAttribute("data-index"),10),bme=this.props,mme=bme.value,vme=bme.onChange;if(!Array.isArray(mme))return;var gme=mme.concat();gme.splice(hme,1),vme==null||vme(gme)}}},eme.prototype.renderOption=function(tme,ame,nme,rme){var ime=this;rme===void 0&&(rme={});var ome=this.props,lme=ome.classnames,sme=ome.itemRender,cme=ome.disabled,dme=ome.itemClassName,ume=ome.sortable,fme=ome.labelField;ome.translate;var pme=ome.showInvalidMatch,hme=ome.testIdBuilder,bme=hme==null?void 0:hme.getChild("item-".concat(tme.value||ame));return React__default.createElement("div",{style:rme,className:lme("Selections-item",dme,tme==null?void 0:tme.className),key:ame},ume&&!cme&&nme.length>1?React__default.createElement(Icon$1,{className:lme("Selections-dragbar icon"),icon:"drag-bar"}):null,React__default.createElement("label",{className:lme("Selections-label",{"is-invalid":pme?tme==null?void 0:tme.__unmatched:!1})},sme(tme,{index:ame,disabled:cme,onChange:this.handleValueChange.bind(this,ame),labelField:fme,classnames:lme})),cme?null:React__default.createElement("a",__assign$3({className:lme("Selections-delBtn"),"data-index":ame,onClick:function(mme){return ime.handleCloseItem(mme,tme)}},bme==null?void 0:bme.getChild("close").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"})))},eme.prototype.renderNormalList=function(tme){var ame=this,nme=this.props,rme=nme.classnames,ime=nme.translate,ome=nme.placeholder,lme=nme.virtualThreshold,sme=lme===void 0?1e3:lme,cme=nme.itemHeight,dme=cme===void 0?30:cme;return React__default.createElement(React__default.Fragment,null,Array.isArray(tme)&&tme.length?React__default.createElement("div",{className:rme("Selections-items")},tme.length>sme?React__default.createElement(AutoSizer,null,function(ume){var fme=ume.height;return React__default.createElement(VirtualList,{height:fme,itemCount:tme.length,itemSize:dme,renderItem:function(pme){var hme=pme.index,bme=pme.style,mme=tme[hme];return mme?ame.renderOption(mme,hme,tme,__assign$3(__assign$3({},bme),{width:"100%"})):null}})}):tme.map(function(ume,fme){return ame.renderOption(ume,fme,tme)})):React__default.createElement("div",{className:rme("Selections-placeholder")},ime(ome)))},eme.prototype.render=function(){var tme=this.props,ame=tme.classnames,nme=tme.className,rme=tme.title,ime=tme.searchable,ome=tme.value,lme=tme.translate,sme=tme.searchPlaceholder,cme=sme===void 0?lme("Transfer.searchKeyword"):sme,dme=this.state.searchResult;return React__default.createElement("div",{className:ame("Selections",nme)},rme?React__default.createElement("div",{className:ame("Selections-title")},rme):null,ime?React__default.createElement(TransferSearch$1,{ref:this.domSearchRef,placeholder:cme,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderNormalList(dme!==null?dme:ome))};var $P;return $P=eme,eme.defaultProps={placeholder:"placeholder.selectData",itemRender:$P.itemRender,searchPlaceholder:"",virtualThreshold:100,itemHeight:32},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"domSearchRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"search",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearInput",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleCloseItem",null),eme}(React__default.Component),ResultList$1=themeable(localeable(ResultList)),TableSelection=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={rowRenderScope:null,colsWidth:[],tableWidth:0},tme}return eme.prototype.getColumns=function(){var $P=this.props.columns;return(!Array.isArray($P)||!$P.length)&&($P=[{label:"Label",name:"label"}]),$P},eme.prototype.renderTHead=function(){var $P=this.props,tme=$P.options,ame=$P.classnames,nme=$P.value,rme=$P.disabled,ime=$P.option2value,ome=$P.multiple,lme=$P.testIdBuilder,sme=this.getColumns(),cme=BaseSelection.value2array(nme,tme,ime),dme=tme.filter(function(pme){return!pme.disabled}),ume=!1,fme=!!dme.length;return dme.forEach(function(pme){var hme=!!~cme.indexOf(pme);hme&&!ume?ume=!0:!hme&&fme&&(fme=!1)}),React__default.createElement(React__default.Fragment,null,React__default.createElement("thead",null,React__default.createElement("tr",null,ome&&Array.isArray(tme)&&tme.length?React__default.createElement("th",{className:ame("Table-checkCell")},React__default.createElement(Checkbox$1$1,{key:"checkbox",size:"sm",disabled:rme,onChange:this.toggleAll,checked:ume,partial:ume&&!fme,testIdBuilder:lme==null?void 0:lme.getChild("check-all")})):null,sme.map(function(pme,hme){return React__default.createElement("th",{key:hme},pme.label)}))))},eme.prototype.renderTr=function($P){var tme=this,ame=$P.option,nme=$P.rowIndex,rme=$P.valueArray,ime=$P.columns,ome=$P.styles,lme=this.props,sme=lme.classnames,cme=lme.cellRender,dme=lme.disabled,ume=lme.multiple;lme.translate;var fme=lme.itemClassName,pme=lme.resultMode,hme=lme.testIdBuilder,bme=rme.indexOf(ame)!==-1,mme=hme==null?void 0:hme.getChild("item-".concat(ame.value||nme));return React__default.createElement("tr",{style:ome??{},key:nme,onClick:pme?noop$9:function(vme){return vme.defaultPrevented||tme.toggleOption(ame)},className:sme(fme,ame.className,dme||ame.disabled?"is-disabled":"",~rme.indexOf(ame)?"is-active":"")},ume?React__default.createElement("td",{className:sme("Table-checkCell"),key:"checkbox",onClick:function(vme){vme.stopPropagation(),tme.toggleOption(ame)}},React__default.createElement(Checkbox$1$1,{size:"sm",checked:bme,disabled:dme,testIdBuilder:mme})):null,ime.map(function(vme,gme){return React__default.createElement("td",{key:gme},cme(vme,ame,gme,nme))}))},eme.prototype.renderTBody=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.placeholder,rme=tme.value,ime=tme.option2value,ome=tme.translate,lme=this.getColumns(),sme=BaseSelection.value2array(rme,ame,ime);return React__default.createElement("tbody",null,Array.isArray(ame)&&ame.length?ame.map(function(cme,dme){return $P.renderTr({option:cme,rowIndex:dme,valueArray:sme,columns:lme})}):React__default.createElement("tr",null,React__default.createElement("td",{colSpan:lme.length},ome(nme))))},eme.prototype.tableHeadRef=function($P){$P&&(this.ref=$P)},eme.prototype.handleVirtualTableResize=function($P){var tme=$P.width;if(!(tme&&tme===this.state.width)){var ame={};this.ref&&forEach$3(this.ref.querySelectorAll("thead>tr:last-child>th"),function(rme,ime){ame[ime]=rme.getBoundingClientRect().width});var nme=[];Object.keys(ame).filter(function(rme){return!isNaN(Number(rme))}).sort().forEach(function(rme){nme.push(ame[rme])}),this.setState({colsWidth:nme,tableWidth:tme})}},eme.prototype.renderVirtualTable=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.value,rme=tme.classnames,ime=tme.option2value;tme.translate;var ome=tme.itemHeight,lme=ome===void 0?30:ome,sme=tme.virtualListHeight,cme=this.getColumns(),dme=BaseSelection.value2array(nme,ame,ime),ume=this.state.rowRenderScope||{},fme=ume.startIndex,pme=fme===void 0?0:fme,hme=ume.stopIndex,bme=hme===void 0?10:hme,mme=null;if(pme!==void 0&&bme!==void 0){for(var vme=[],gme=pme;gme<=bme;gme++){var yme=ame[gme];if(!yme)break;vme.push(this.renderTr({option:yme,rowIndex:gme,valueArray:dme,columns:cme,styles:{height:"".concat(lme,"px")}}))}mme=React__default.createElement("table",{className:rme("Table-table"),style:{marginTop:(pme||0)*lme+"px"}},this.state.colsWidth.length?React__default.createElement("colgroup",null,this.state.colsWidth.map(function(_me,$me){return React__default.createElement("col",{style:{width:"".concat(_me,"px")},key:"col-".concat($me)})})):null,React__default.createElement("tbody",null,vme))}return React__default.createElement("div",{className:rme("Table-content","is-virtual")},React__default.createElement("table",{className:rme("Table-table"),ref:this.tableHeadRef.bind(this)},this.renderTHead()),React__default.createElement("div",{className:rme("Table-content-virtual")},React__default.createElement(AutoSizer,{minHeight:sme,onResize:this.handleVirtualTableResize.bind(this)},function(_me){var $me=_me.height;return React__default.createElement(VirtualList,{onItemsRendered:function(Cme){isEqual$1($P.state.rowRenderScope,Cme)||setTimeout(function(){$P.setState({rowRenderScope:Cme})})},height:$me,itemCount:ame.length,itemSize:lme,WrapperComponent:"div",InnerComponent:"div",prefix:mme,innerStyleFilter:function(Cme){return __assign$3(__assign$3({},Cme),{position:"absolute",top:0,minWidth:void 0,width:"1px",visibility:"hidden"})},renderItem:function(){return null}})})))},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.classnames,nme=$P.options,rme=$P.virtualThreshold,ime=rme===void 0?1e3:rme,ome=Array.isArray(nme)&&nme.length>ime?this.renderVirtualTable():React__default.createElement("div",{className:ame("Table-content")},React__default.createElement("table",{className:ame("Table-table")},this.renderTHead(),this.renderTBody()));return React__default.createElement("div",{className:ame("TableSelection",tme)},ome)},eme.defaultProps=__assign$3(__assign$3({},BaseSelection.defaultProps),{cellRender:function($P,tme,ame,nme){return React__default.createElement("span",null,resolveVariable($P.name,tme))}}),eme}(BaseSelection),TableCheckboxes=themeable(localeable(uncontrollable(TableSelection,{value:"onChange"}))),GroupedSelection=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderOption=function($P,tme,ame,nme,rme){var ime=this;ame===void 0&&(ame="".concat(tme)),nme===void 0&&(nme={});var ome=this.props,lme=ome.disabled,sme=ome.classnames,cme=ome.itemRender,dme=ome.multiple,ume=ome.labelField,fme=ume===void 0?"label":ume,pme=rme==null?void 0:rme.getChild(tme);return Array.isArray($P.children)?$P[fme]?React__default.createElement("div",{key:tme,className:sme("GroupedSelection-group",$P.className)},React__default.createElement("div",{className:sme("GroupedSelection-itemLabel")},cme($P,{index:tme,multiple:dme,checked:!1,onChange:function(){},disabled:lme||$P.disabled,labelField:fme,classnames:sme,testIdBuilder:pme==null?void 0:pme.getChild("label")})),React__default.createElement("div",{className:sme("GroupedSelection-items",$P.className)},$P.children.map(function(hme,bme){return ime.renderOption(hme,bme,"".concat(bme),{},pme)}))):React__default.createElement(React__default.Fragment,null,$P.children.map(function(hme,bme){return ime.renderOption(hme,bme,"".concat(bme),{},pme)})):this.renderPureOption($P,tme,ame,nme,pme)},eme.prototype.renderOptionOrLabel=function($P,tme,ame,nme){ame===void 0&&(ame=!1),nme===void 0&&(nme={});var rme=this.props,ime=rme.disabled,ome=rme.classnames,lme=rme.itemRender,sme=rme.multiple,cme=rme.labelField;return $P.children?React__default.createElement("div",{key:tme,style:nme,className:ome("GroupedSelection-group",$P.className)},React__default.createElement("div",{className:ome("GroupedSelection-itemLabel")},lme($P,{index:tme,multiple:sme,checked:!1,onChange:function(){},disabled:ime||$P.disabled,labelField:cme,classnames:ome}))):ame?React__default.createElement("div",{key:"group"+tme,style:nme,className:ome("GroupedSelection-group",$P.className)},React__default.createElement("div",{className:ome("GroupedSelection-items",$P.className)},this.renderPureOption($P,tme))):this.renderPureOption($P,tme,void 0,nme)},eme.prototype.renderPureOption=function($P,tme,ame,nme,rme){var ime=this;nme===void 0&&(nme={});var ome=this.props,lme=ome.labelClassName,sme=ome.disabled,cme=ome.classnames,dme=ome.itemClassName,ume=ome.itemRender,fme=ome.multiple,pme=ome.labelField,hme=this.valueArray,bme=rme==null?void 0:rme.getChild("item-".concat(tme));return React__default.createElement("div",__assign$3({key:tme,style:nme,className:cme("GroupedSelection-item",dme,$P.className,sme||$P.disabled?"is-disabled":"",~hme.indexOf($P)?"is-active":""),onClick:function(){return ime.toggleOption($P)}},bme==null?void 0:bme.getTestId()),fme?React__default.createElement(Checkbox$1$1,{size:"sm",checked:!!~hme.indexOf($P),disabled:sme||$P.disabled,labelClassName:lme,description:$P.description,testIdBuilder:bme==null?void 0:bme.getChild("checkbox")}):null,React__default.createElement("div",{className:cme("GroupedSelection-itemLabel")},ume($P,{index:tme,multiple:fme,checked:!!~hme.indexOf($P),onChange:function(){return ime.toggleOption($P)},disabled:sme||$P.disabled,labelField:pme,classnames:cme,testIdBuilder:bme==null?void 0:bme.getChild("label")})))},eme.prototype.renderCheckAll=function(){var $P=this.props,tme=$P.multiple,ame=$P.checkAll,nme=$P.checkAllLabel,rme=$P.classnames,ime=$P.translate,ome=$P.labelClassName,lme=$P.itemClassName;if(!tme||!ame)return null;var sme=this.getAvailableOptions(),cme=this.valueArray,dme=sme.every(function(fme){return cme.indexOf(fme)>-1}),ume=sme.some(function(fme){return cme.indexOf(fme)>-1});return React__default.createElement("div",{className:rme("GroupedSelection-item",lme),onClick:this.toggleAll},React__default.createElement(Checkbox$1$1,{checked:ume,partial:ume&&!dme,size:"sm",labelClassName:ome}),React__default.createElement("div",{className:rme("GroupedSelection-itemLabel")},ime(nme)))},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.value,rme=ame.options,ime=ame.className,ome=ame.placeholder,lme=ame.classnames,sme=ame.option2value,cme=ame.onClick,dme=ame.placeholderRender,ume=ame.virtualThreshold,fme=ume===void 0?1e3:ume,pme=ame.itemHeight,hme=pme===void 0?32:pme,bme=ame.virtualListHeight,mme=ame.testIdBuilder,vme=this.props.translate;this.valueArray=BaseSelection.value2array(nme,rme,sme);var gme=null;if(Array.isArray(rme)&&rme.length){var yme=flattenTree(rme,function(_me,$me,Cme){return{option:_me,hasParent:Cme>1}});gme=yme.length>fme?React__default.createElement(AutoSizer,{minHeight:bme},function(_me){var $me=_me.height;return React__default.createElement(VirtualList,{height:$me,itemCount:yme.length,itemSize:hme,prefix:$P.renderCheckAll(),renderItem:function(Cme){var Sme=Cme.index,Eme=Cme.style,xme=yme[Sme]||{},Tme=xme.option,Ome=xme.hasParent;return Tme?$P.renderOptionOrLabel(Tme,Sme,Ome,__assign$3(__assign$3({},Eme),{width:"100%"})):null}})}):React__default.createElement(React__default.Fragment,null,this.renderCheckAll(),rme.map(function(_me,$me){return $P.renderOption(_me,$me,"".concat($me),{},mme)}))}return React__default.createElement("div",{className:lme("GroupedSelection",ime),onClick:cme},gme||React__default.createElement("div",{className:lme("GroupedSelection-placeholder")},(tme=dme==null?void 0:dme(this.props))!==null&&tme!==void 0?tme:vme(ome)))},eme}(BaseSelection),GroupedSelection$1=themeable(localeable(uncontrollable(GroupedSelection,{value:"onChange"}))),baseTimes$1=_baseTimes,castFunction$3=_castFunction,toInteger$1=toInteger_1,MAX_SAFE_INTEGER$2=9007199254740991,MAX_ARRAY_LENGTH$1=4294967295,nativeMin$2=Math.min;function times(x_,eme){if(x_=toInteger$1(x_),x_<1||x_>MAX_SAFE_INTEGER$2)return[];var $P=MAX_ARRAY_LENGTH$1,tme=nativeMin$2(x_,MAX_ARRAY_LENGTH$1);eme=castFunction$3(eme),x_-=MAX_ARRAY_LENGTH$1;for(var ame=baseTimes$1(tme,eme);++$P<x_;)eme($P);return ame}var times_1=times;const times$1=getDefaultExportFromCjs(times_1);var ChainedSelection=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={selected:[]},$P}return eme.prototype.componentDidMount=function(){var $P=this.props.defaultSelectedIndex;$P!==void 0&&this.setState({selected:["".concat($P)]})},eme.prototype.selectOption=function($P,tme,ame){var nme=this.props,rme=nme.onDeferLoad,ime=nme.deferField,ome=ime===void 0?"defer":ime,lme=this.state.selected.concat();lme.splice(tme,lme.length-tme),lme.push(ame),this.setState({selected:lme},$P[ome]&&rme?function(){return rme($P)}:void 0)},eme.prototype.renderItem=function($P,tme,ame,nme,rme){var ime=this;rme===void 0&&(rme={});var ome=this.props,lme=ome.labelClassName,sme=ome.disabled,cme=ome.classnames,dme=ome.itemClassName,ume=ome.itemRender,fme=ome.multiple,pme=ome.labelField,hme=ome.testIdBuilder,bme=this.valueArray,mme=hme==null?void 0:hme.getChild("item-".concat($P.value||tme));return React__default.createElement("div",{style:rme,key:tme,className:cme("ChainedSelection-item",dme,$P.className,sme||$P.disabled?"is-disabled":"",~bme.indexOf($P)?"is-active":""),onClick:function(){return ime.toggleOption($P)}},fme?React__default.createElement(Checkbox$1$1,{size:"sm",checked:!!~bme.indexOf($P),disabled:sme||$P.disabled,labelClassName:lme,description:$P.description,testIdBuilder:mme}):null,React__default.createElement("div",{className:cme("ChainedSelection-itemLabel")},ume($P,{index:tme,multiple:fme,checked:!!~bme.indexOf($P),onChange:function(){return ime.toggleOption($P)},disabled:sme||$P.disabled,labelField:pme,classnames:cme})))},eme.prototype.renderOption=function($P,tme,ame,nme,rme){var ime=this;rme===void 0&&(rme={});var ome=this.props;ome.labelClassName;var lme=ome.disabled,sme=ome.classnames,cme=ome.itemClassName,dme=ome.itemRender,ume=ome.multiple,fme=ome.labelField,pme=ome.deferField,hme=pme===void 0?"defer":pme,bme=ome.loadingConfig,mme=ome.testIdBuilder;this.valueArray;var vme=mme==null?void 0:mme.getChild("item-".concat($P.value||tme));return Array.isArray($P.children)||$P[hme]?React__default.createElement("div",__assign$3({style:rme,key:tme,className:sme("ChainedSelection-item",cme,$P.className,lme||$P.disabled?"is-disabled":"",~this.state.selected.indexOf(nme)?"is-active":""),onClick:function(){return ime.selectOption($P,ame,nme)}},vme==null?void 0:vme.getTestId()),React__default.createElement("div",{className:sme("ChainedSelection-itemLabel")},dme($P,{index:tme,multiple:ume,checked:!!~this.state.selected.indexOf(nme),onChange:function(){return ime.selectOption($P,ame,nme)},disabled:lme||$P.disabled,labelField:fme,classnames:sme})),$P[hme]&&$P.loading?React__default.createElement(Spinner$1,{loadingConfig:bme,size:"sm",show:!0}):null):this.renderItem($P,tme,ame,nme,rme)},eme.prototype.renderCheckAll=function(){var $P=this.props,tme=$P.multiple,ame=$P.checkAll,nme=$P.checkAllLabel,rme=$P.classnames,ime=$P.translate,ome=$P.labelClassName,lme=$P.itemClassName;if(!tme||!ame)return null;var sme=this.getAvailableOptions(),cme=this.valueArray,dme=sme.every(function(fme){return cme.indexOf(fme)>-1}),ume=sme.some(function(fme){return cme.indexOf(fme)>-1});return React__default.createElement("div",{className:rme("ChainedSelection-item","ChainedSelection-checkAll",lme),onClick:this.toggleAll},React__default.createElement(Checkbox$1$1,{checked:ume,partial:ume&&!dme,size:"sm",labelClassName:ome}),React__default.createElement("div",{className:rme("ChainedSelection-itemLabel")},React__default.createElement("span",null,ime(nme))))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.value,nme=tme.options,rme=tme.className,ime=tme.placeholder,ome=tme.classnames,lme=tme.option2value;tme.itemRender;var sme=tme.translate,cme=tme.virtualThreshold,dme=cme===void 0?1e3:cme,ume=tme.itemHeight,fme=ume===void 0?32:ume,pme=tme.virtualListHeight;tme.testIdBuilder,this.valueArray=BaseSelection.value2array(ame,nme,lme);var hme=[];if(Array.isArray(nme)&&nme.length){var bme=this.state.selected.concat(),mme=Math.min(getTreeDepth(nme),3);times$1(Math.max(mme-bme.length,1),function(){return bme.push(null)}),bme.reduce(function(vme,gme,yme){var _me=vme.body,$me=vme.options,Cme=vme.subTitle,Sme=vme.indexes,Eme=vme.placeholder,xme=[],Tme="",Ome="",Rme=Sme;if(Array.isArray($me)&&$me.length>dme){$me.forEach(function(Ime,Pme){var Mme=Sme.concat(Pme).join("-");Mme===gme&&(Tme=Ime.subTitle,xme=Ime.children,Rme=Sme.concat(Pme),Ome=Ime.placeholder)});var Nme=$me.concat();Cme&&Nme.unshift({type:"chainedSelection-subTitle",value:Cme}),_me.push(React__default.createElement("div",{key:yme,className:ome("ChainedSelection-col")},React__default.createElement(AutoSizer,{minHeight:pme},function(Ime){var Pme=Ime.height;return React__default.createElement(VirtualList,{height:Pme,itemCount:Nme.length,itemSize:fme,renderItem:function(Mme){var kme=Mme.index,Bme=Mme.style,Dme=Nme[kme];if(!Dme)return null;if((Dme==null?void 0:Dme.type)==="chainedSelection-subTitle")return React__default.createElement("div",{style:__assign$3(__assign$3({},Bme),{width:"100%"}),key:Sme.join("-")+"subTitle",className:ome("ChainedSelection-subTitle")},Dme.value);kme=Cme?kme-1:kme;var jme=Sme.concat(kme).join("-");return $P.renderOption(Dme,kme,yme,jme,__assign$3(__assign$3({},Bme),{width:"100%"}))}})})))}else _me.push(React__default.createElement("div",{key:yme,className:ome("ChainedSelection-col")},Cme?React__default.createElement("div",{className:ome("ChainedSelection-subTitle")},Cme):null,Array.isArray($me)&&$me.length?$me.map(function(Ime,Pme){var Mme=Sme.concat(Pme).join("-");return Mme===gme&&(Tme=Ime.subTitle,xme=Ime.children,Rme=Sme.concat(Pme),Ome=Ime.placeholder),$P.renderOption(Ime,Pme,yme,Mme)}):React__default.createElement("div",{className:ome("ChainedSelection-placeholder")},sme(Eme))));return{options:xme,subTitle:Tme,placeholder:Ome,indexes:Rme,body:_me}},{options:nme,body:hme,indexes:[],placeholder:ime})}return React__default.createElement("div",{className:ome("ChainedSelection",rme)},hme&&hme.length?React__default.createElement(React__default.Fragment,null,this.renderCheckAll(),hme):React__default.createElement("div",{className:ome("ChainedSelection-placeholder")},sme(ime)))},eme}(BaseSelection),ChainedCheckboxes=themeable(localeable(uncontrollable(ChainedSelection,{value:"onChange"}))),AssociatedSelection=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={leftValue:$P.props.leftDefaultValue},$P}return eme.prototype.componentDidMount=function(){var $P=this.state.leftValue,tme=this.props,ame=tme.options,nme=tme.onDeferLoad,rme=tme.deferField,ime=rme===void 0?"defer":rme;if($P){var ome=BaseSelection.resolveSelected($P,ame,function(lme){return lme.ref});ome&&nme&&ome[ime]&&nme(ome)}},eme.prototype.leftOption2Value=function($P){return $P.value},eme.prototype.handleLeftSelect=function($P){var tme=this.props,ame=tme.options,nme=tme.onDeferLoad,rme=tme.deferField,ime=rme===void 0?"defer":rme;this.setState({leftValue:$P});var ome=BaseSelection.resolveSelected($P,ame,function(lme){return lme.ref});ome&&nme&&ome[ime]&&nme(ome)},eme.prototype.handleLeftDeferLoad=function($P){var tme=this.props,ame=tme.leftOptions,nme=tme.onLeftDeferLoad,rme=tme.onDeferLoad;if(typeof nme=="function")return nme==null?void 0:nme($P,ame);if(typeof rme=="function")return rme==null?void 0:rme($P)},eme.prototype.handleRetry=function($P){var tme=this.props.onDeferLoad;tme==null||tme($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.leftOptions,rme=$P.options,ime=$P.option2value,ome=$P.rightMode,lme=$P.onChange,sme=$P.columns,cme=$P.value,dme=$P.disabled,ume=$P.leftMode,fme=$P.cellRender,pme=$P.multiple,hme=$P.itemRender,bme=$P.labelField,mme=$P.virtualThreshold,vme=$P.itemHeight,gme=$P.loadingConfig,yme=$P.checkAll,_me=$P.checkAllLabel,$me=$P.deferField,Cme=$me===void 0?"defer":$me,Sme=$P.testIdBuilder,Eme=BaseSelection.resolveSelected(this.state.leftValue,rme,function(Tme){return Tme.ref}),xme=this.props.translate;return React__default.createElement("div",{className:tme("AssociatedSelection",ame)},React__default.createElement("div",{className:tme("AssociatedSelection-left")},ume==="tree"?React__default.createElement(Tree,{multiple:!1,disabled:dme,value:this.state.leftValue,options:nme,onChange:this.handleLeftSelect,onDeferLoad:this.handleLeftDeferLoad,virtualThreshold:mme,itemHeight:vme,loadingConfig:gme,testIdBuilder:Sme==null?void 0:Sme.getChild("left-selection")}):React__default.createElement(GroupedSelection$1,{option2value:this.leftOption2Value,options:nme,value:this.state.leftValue,disabled:dme,onChange:this.handleLeftSelect,multiple:!1,clearable:!1,virtualThreshold:mme,itemHeight:vme,testIdBuilder:Sme==null?void 0:Sme.getChild("left-selection")})),React__default.createElement("div",{className:tme("AssociatedSelection-right")},this.state.leftValue?Eme?Eme[Cme]&&!Eme.loaded?React__default.createElement("div",{className:tme("AssociatedSelection-box")},React__default.createElement("div",{className:tme("AssociatedSelection-reload",Eme.loading?"is-spin":"is-clickable"),onClick:Eme.loading?void 0:this.handleRetry.bind(this,Eme)},React__default.createElement(Icon$1,{icon:"reload",className:"icon"})),Eme.loading?React__default.createElement("p",null,xme("loading")):React__default.createElement("p",null,xme("Transfer.refreshIcon"))):ome==="table"?React__default.createElement(TableCheckboxes,{columns:sme,value:cme,disabled:dme,options:Eme.children||[],onChange:lme,option2value:ime,cellRender:fme,multiple:pme,virtualThreshold:mme,itemHeight:vme,testIdBuilder:Sme==null?void 0:Sme.getChild("right-selection")}):ome==="tree"?React__default.createElement(Tree,{value:cme,disabled:dme,options:Eme.children||[],onChange:lme,multiple:pme,labelField:bme,virtualThreshold:mme,itemHeight:vme,loadingConfig:gme,checkAllLabel:_me,checkAll:yme,testIdBuilder:Sme==null?void 0:Sme.getChild("right-selection")}):ome==="chained"?React__default.createElement(ChainedCheckboxes,{value:cme,disabled:dme,options:Eme.children||[],onChange:lme,option2value:ime,multiple:pme,itemRender:hme,labelField:bme,virtualThreshold:mme,itemHeight:vme,loadingConfig:gme,checkAllLabel:_me,checkAll:yme,testIdBuilder:Sme==null?void 0:Sme.getChild("right-selection")}):React__default.createElement(GroupedSelection$1,{value:cme,disabled:dme,options:Eme.children||[],onChange:lme,option2value:ime,multiple:pme,itemRender:hme,labelField:bme,virtualThreshold:mme,itemHeight:vme,checkAllLabel:_me,checkAll:yme,testIdBuilder:Sme==null?void 0:Sme.getChild("right-selection")}):React__default.createElement("div",{className:tme("AssociatedSelection-box")},xme("Transfer.configError")):React__default.createElement("div",{className:tme("AssociatedSelection-box")},xme("Transfer.selectFromLeft"))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"leftOption2Value",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftDeferLoad",null),eme}(BaseSelection),AssociatedCheckboxes=themeable(localeable(uncontrollable(AssociatedSelection,{value:"onChange"}))),BaseResultTableSelection=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={tableOptions:[],searching:!1,searchTableOptions:[]},$P}return eme.getDerivedStateFromProps=function($P){var tme=$P.options,ame=$P.value,nme=$P.option2value,rme=$P.valueField,ime=BaseSelection.value2array(ame,tme,nme,rme);return{tableOptions:ime}},eme.prototype.domSearchRef=function($P){for(;$P&&$P.getWrappedInstance;)$P=$P.getWrappedInstance();this.searchRef=$P},eme.prototype.handleCloseItem=function($P){var tme=this.props,ame=tme.value,nme=tme.onChange,rme=tme.option2value,ime=tme.options,ome=tme.disabled,lme=tme.valueField,sme=this.state,cme=sme.searching,dme=sme.searchTableOptions;if(!(ome||$P.disabled)){var ume=BaseSelection.value2array(ame,ime,rme,lme),fme=ume.indexOf($P);ume.splice(fme,1);var pme=rme?ume.map(function(mme){return rme(mme)}):ume;if(nme&&nme(pme),cme){var hme=BaseSelection.value2array(dme,ime,rme,lme),bme=hme.indexOf($P);dme.splice(bme,1),this.setState({searchTableOptions:dme})}}},eme.prototype.search=function($P){if(!$P){this.clearSearch();return}var tme=this.props,ame=tme.value,nme=tme.onSearch,rme=(ame||[]).filter(function(ime){return nme==null?void 0:nme($P,ime)});this.setState({searching:!0,searchTableOptions:rme})},eme.prototype.clearSearch=function(){this.setState({searching:!1,searchTableOptions:[]})},eme.prototype.clearInput=function(){var $P,tme;this.props.searchable&&((tme=($P=this.searchRef)===null||$P===void 0?void 0:$P.clearInput)===null||tme===void 0||tme.call($P)),this.clearSearch()},eme.prototype.renderTable=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.className,rme=tme.columns,ime=tme.cellRender,ome=tme.value,lme=tme.disabled,sme=tme.option2value,cme=tme.onChange,dme=tme.translate,ume=tme.placeholder,fme=tme.virtualThreshold,pme=tme.itemHeight,hme=tme.testIdBuilder,bme=this.state,mme=bme.searching,vme=bme.tableOptions,gme=bme.searchTableOptions;return React__default.createElement("div",{className:ame("ResultTableList",nme)},Array.isArray(ome)&&ome.length?React__default.createElement(TableCheckboxes,{columns:rme,options:mme?gme:vme,value:ome,disabled:lme,option2value:sme,onChange:cme,multiple:!1,resultMode:!0,virtualThreshold:fme,itemHeight:pme,cellRender:function(yme,_me,$me,Cme){var Sme=ime(yme,_me,$me,Cme),Eme=hme==null?void 0:hme.getChild("item-".concat(_me.value||Cme));return $me===rme.length-1?React__default.createElement(React__default.Fragment,null,Sme,React__default.createElement("span",__assign$3({className:ame("ResultTableList-close-btn"),onClick:function(xme){xme.stopPropagation(),$P.handleCloseItem(_me)}},Eme==null?void 0:Eme.getChild("close").getTestId()),React__default.createElement(SvgClose,null))):Sme}}):React__default.createElement("div",{className:ame("Selections-placeholder")},dme(ume)))},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.title,rme=$P.searchable,ime=$P.translate,ome=$P.searchPlaceholder,lme=ome===void 0?ime("Transfer.searchKeyword"):ome;return React__default.createElement("div",{className:tme("Selections",ame)},nme?React__default.createElement("div",{className:tme("Selections-title")},nme):null,rme?React__default.createElement(TransferSearch$1,{ref:this.domSearchRef,placeholder:lme,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderTable())},eme.defaultProps=__assign$3(__assign$3({},BaseSelection.defaultProps),{cellRender:function($P,tme,ame,nme){return React__default.createElement("span",null,resolveVariable($P.name,tme))}}),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"domSearchRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleCloseItem",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"search",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearInput",null),eme}(BaseSelection),ResultTableList=themeable(localeable(BaseResultTableSelection));function getDeep(x_,eme,$P,tme){if(x_[tme]&&eme(x_)){x_.isChecked=!0;for(var ame=$P.length-2;ame>=0;ame--){if(!$P[ame].isChecked){$P[ame].isChecked=!0;continue}break}}else x_.children&&Array.isArray(x_.children)&&x_.children.forEach(function(nme){$P.push(nme),getDeep(nme,eme,$P,tme),$P.pop()})}function deepCheckedTreeNode(x_){for(var eme=[],$P=0;$P<x_.length;$P++){var tme=x_[$P];tme.isChecked&&(tme.children&&Array.isArray(tme.children)&&(tme.children=deepCheckedTreeNode(tme.children)),eme.push(tme))}return eme}function getResultOptions(x_,eme,$P){x_===void 0&&(x_=[]);var tme=cloneDeep$1(eme),ame=function(nme){return!!(x_||[]).find(function(rme){return rme[$P]===nme[$P]})};return tme&&tme.forEach(function(nme){getDeep(nme,ame,[nme],$P)}),deepCheckedTreeNode(tme)}function deepTree(x_,eme){for(var $P=0;$P<x_.length;$P++){var tme=x_[$P];eme(tme),tme.children&&Array.isArray(tme.children)&&deepTree(tme.children,eme)}}function deepDeleteTree(x_,eme,$P){for(var tme=[],ame=0;ame<x_.length;ame++){var nme=x_[ame];isEqual$1(nme,eme)||(nme.children&&Array.isArray(nme.children)&&(nme.children=deepDeleteTree(nme.children,eme,$P)),(nme.children&&nme.children.length>0||nme[$P]!==void 0)&&tme.push(nme))}return tme}var BaseResultTreeList=function(x_){__extends$2(eme,x_);function eme(){var tme=x_!==null&&x_.apply(this,arguments)||this;return tme.state={searching:!1,treeOptions:[],searchTreeOptions:[]},tme}eme.itemRender=function(tme){return React__default.createElement("span",null,"".concat(tme.scopeLabel||"").concat(tme.label))},eme.getDerivedStateFromProps=function(tme){var ame=getResultOptions(tme.value,tme.options,tme.valueField);return{treeOptions:cloneDeep$1(ame)}},eme.prototype.domSearchRef=function(tme){for(;tme&&tme.getWrappedInstance;)tme=tme.getWrappedInstance();this.searchRef=tme},eme.prototype.deleteTreeChecked=function(tme){var ame=this.props,nme=ame.value,rme=nme===void 0?[]:nme,ime=ame.onChange,ome=ame.valueField,lme=this.state,sme=lme.searching,cme=lme.treeOptions,dme=[],ume=function(hme){isEqual$1(omit$1(hme,"parent"),omit$1(tme,"parent"))&&(dme=[hme])};deepTree(cme||[],ume);var fme=[],pme=function(hme){hme.isChecked&&hme[ome]&&fme.push(hme)};deepTree(dme,pme),ime&&ime(rme.filter(function(hme){return!fme.find(function(bme){return isEqual$1(omit$1(bme,["isChecked","childrens","parent"]),omit$1(hme,"parent"))})})),sme&&this.deleteResultTreeNode(tme)},eme.prototype.deleteResultTreeNode=function(tme){var ame=deepDeleteTree(cloneDeep$1(this.state.searchTreeOptions)||[],tme,this.props.valueField);this.setState({searchTreeOptions:ame})},eme.prototype.search=function(tme){if(!tme){this.clearSearch();return}var ame=this.props,nme=ame.valueField,rme=ame.onSearch,ime=this.state.treeOptions||[],ome=function(sme){return sme.isChecked=!1,!0};deepTree(ime,ome);var lme=function(sme){return rme==null?void 0:rme(tme,sme)};ime&&ime.forEach(function(sme){getDeep(sme,lme,[sme],nme)}),this.setState({searching:!0,searchTreeOptions:deepCheckedTreeNode(ime)})},eme.prototype.clearSearch=function(){this.setState({searching:!1,searchTreeOptions:[]})},eme.prototype.clearInput=function(){var tme,ame;this.props.searchable&&((ame=(tme=this.searchRef)===null||tme===void 0?void 0:tme.clearInput)===null||ame===void 0||ame.call(tme)),this.clearSearch()},eme.prototype.renderTree=function(){var tme=this,ame=this.props,nme=ame.className,rme=ame.classnames,ime=ame.value,ome=ame.valueField,lme=ame.itemRender,sme=ame.translate,cme=ame.placeholder,dme=ame.virtualThreshold,ume=ame.itemHeight,fme=ame.loadingConfig,pme=ame.testIdBuilder,hme=this.state,bme=hme.treeOptions,mme=hme.searching,vme=hme.searchTreeOptions;return React__default.createElement("div",{className:rme("ResultTreeList",nme)},Array.isArray(ime)&&ime.length?React__default.createElement(Tree,{className:rme("Transfer-tree"),options:mme?vme:bme,valueField:ome,value:[],onChange:noop$9,showIcon:!1,itemRender:lme,removable:!0,loadingConfig:fme,onDelete:function(gme){return tme.deleteTreeChecked(gme)},virtualThreshold:dme,itemHeight:ume,testIdBuilder:pme}):React__default.createElement("div",{className:rme("Selections-placeholder")},sme(cme)))},eme.prototype.render=function(){var tme=this.props,ame=tme.classnames,nme=tme.className,rme=tme.title,ime=tme.searchable,ome=tme.translate,lme=tme.searchPlaceholder,sme=lme===void 0?ome("Transfer.searchKeyword"):lme;return React__default.createElement("div",{className:ame("Selections",nme)},rme?React__default.createElement("div",{className:ame("Selections-title")},rme):null,ime?React__default.createElement(TransferSearch$1,{ref:this.domSearchRef,placeholder:sme,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderTree())};var $P;return $P=eme,eme.defaultProps={placeholder:"placeholder.selectData",itemRender:$P.itemRender},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"domSearchRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"deleteTreeChecked",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"search",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearInput",null),eme}(React__default.Component),ResultTreeList=themeable(localeable(BaseResultTreeList)),Pagination=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={pageNum:"",internalPageNum:"1",perPage:Number(tme.props.perPage)},tme.handlePageNumChange=tme.handlePageNumChange.bind(tme),tme.renderPageItem=tme.renderPageItem.bind(tme),tme.renderEllipsis=tme.renderEllipsis.bind(tme),tme.handlePageNums=tme.handlePageNums.bind(tme),tme}return eme.prototype.componentDidUpdate=function($P){if($P.perPage!==this.props.perPage){var tme=Number(this.props.perPage);this.setState({perPage:isInteger$1(tme)?tme:10})}},eme.prototype.componentWillReceiveProps=function($P){this.props.mode==="simple"&&$P.activePage!==Number(this.state.internalPageNum)&&this.setState({internalPageNum:String($P.activePage)})},eme.prototype.handlePageNumChange=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome;return __generator(this,function(lme){return nme=this.props,rme=nme.disabled,ime=nme.onPageChange,ome=isNaN(Number($P))||Number($P)<1?1:$P,rme?[2]:(ime==null||ime(ome,tme,ame),[2])})})},eme.prototype.renderPageItem=function($P){var tme=this,ame=this.props,nme=ame.classnames,rme=ame.activePage,ime=ame.testIdBuilder,ome=this.state.perPage;return React__default.createElement("li",{onClick:function(){return tme.handlePageNumChange($P,ome)},key:$P,className:nme("Pagination-pager-item",{"is-active":$P===rme})},React__default.createElement("a",__assign$3({role:"button"},ime==null?void 0:ime.getChild("page-".concat($P)).getTestId()),$P))},eme.prototype.renderEllipsis=function($P){var tme=this,ame=this.props,nme=ame.classnames,rme=ame.activePage,ime=ame.ellipsisPageGap,ome=ame.testIdBuilder,lme=this.state.perPage,sme=this.getLastPage(),cme=isNaN(Number(ime))||Number(ime)<1?5:Number(ime),dme=$P==="prev-ellipsis",ume=dme?React__default.createElement(Icon$1,{icon:"arrow-double-left",className:"icon"}):React__default.createElement(Icon$1,{icon:"arrow-double-right",className:"icon"}),fme=dme?Math.max(1,rme-cme):Math.min(sme,rme+cme);return React__default.createElement("li",__assign$3({key:$P,className:nme("Pagination-ellipsis"),onClick:function(pme){return tme.handlePageNumChange(fme,lme,dme?"backward":"forward")}},ome==null?void 0:ome.getChild($P).getTestId()),React__default.createElement("a",{role:"button"},"..."),React__default.createElement("span",{className:"icon"},ume))},eme.prototype.handlePageNums=function($P,tme,ame,nme){var rme=[];if(tme===0)return rme;for(var ime=0,ome=$P;;){if(rme.length>=tme||$P-ime<ame&&$P+ime>nme)return rme;ome=$P-ime,rme.length<tme&&ome>=ame&&rme.unshift(this.renderPageItem(ome)),ome=$P+ime,ime!==0&&rme.length<tme&&ome<=nme&&rme.push(this.renderPageItem(ome)),ime++}},eme.prototype.getLastPage=function(){var $P=this.props,tme=$P.total,ame=$P.lastPage,nme=$P.activePage,rme=$P.hasNext,ime=this.state.perPage;return tme&&ime?Math.ceil(tme/ime):Number(ame||(rme?nme+1:nme))},eme.prototype.handlePageChange=function($P){var tme=this.getLastPage(),ame=$P.currentTarget.value;/^\d+$/.test(ame)&&parseInt(ame,10)>tme&&(ame=String(tme)),this.setState({pageNum:ame})},eme.prototype.handleSimpleKeyUp=function($P){var tme=this.getLastPage(),ame=$P.key,nme=parseInt($P.currentTarget.value,10);switch(ame){case"ArrowDown":nme=isNaN(nme)||nme<2?1:nme-1;break;case"ArrowUp":nme=nme+1;break}if(/^\d+$/.test(String(nme))&&nme>=tme&&(nme=tme),this.setState({internalPageNum:String(nme)}),!nme){this.setState({internalPageNum:""});return}["ArrowUp","ArrowDown","Enter"].includes(ame)&&this.handlePageNumChange(nme,this.props.perPage)},eme.prototype.handleSimpleBlur=function(){this.setState({internalPageNum:String(this.props.activePage)})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.layout,nme=tme.mode,rme=tme.activePage,ime=tme.total,ome=tme.showPerPage,lme=tme.perPageAvailable,sme=tme.classnames,cme=tme.showPageInput,dme=tme.className,ume=tme.style,fme=tme.disabled,pme=tme.hasNext,hme=tme.popOverContainer,bme=tme.popOverContainerSelector,mme=tme.mobileUI,vme=tme.size,gme=tme.translate,yme=tme.testIdBuilder,_me=this.props.maxButtons,$me=this.state,Cme=$me.pageNum,Sme=$me.perPage,Eme=$me.internalPageNum,xme=this.getLastPage(),Tme=null;if(nme==="simple")return Tme=React__default.createElement("li",{className:sme("Pagination-simplego"),key:"simple-go"},React__default.createElement("input",__assign$3({className:sme("Pagination-simplego-input"),key:"simple-input",type:"text",disabled:fme,onChange:this.handleSimpleKeyUp,onKeyUp:this.handleSimpleKeyUp,onBlur:this.handleSimpleBlur,value:Eme},yme==null?void 0:yme.getChild("simple-input").getTestId())),"/",React__default.createElement("span",{className:sme("Pagination-simplego-right"),key:"go-right"},xme)),React__default.createElement("div",__assign$3({className:sme("Pagination-wrap","Pagination-wrap-size--".concat(vme),"Pagination-simple",{disabled:fme},dme),style:ume},yme==null?void 0:yme.getTestId()),React__default.createElement("ul",{key:"pager-items",className:sme("Pagination","Pagination--sm","Pagination-pager-items","Pagination-item")},React__default.createElement("li",{className:sme("Pagination-prev",{"is-disabled":rme<2}),onClick:function(Bme){return rme<2?Bme.preventDefault():$P.handlePageNumChange(rme-1,void 0,"backward")},key:"prev"},React__default.createElement("span",__assign$3({},yme==null?void 0:yme.getChild("go-prev").getTestId()),React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"}))),Tme,React__default.createElement("li",{className:sme("Pagination-next",{"is-disabled":!pme}),onClick:function(Bme){return pme?$P.handlePageNumChange(rme+1,Sme,"forward"):Bme.preventDefault()},key:"next"},React__default.createElement("span",__assign$3({},yme==null?void 0:yme.getChild("go-next").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon"})))));var Ome=[],Rme=Array.isArray(ame)?ame:typeof ame=="string"?ame.split(","):[];if(Rme.includes("pager")||Rme.unshift("pager"),Rme=Rme.map(function(Bme){return Bme.trim().toLowerCase()}),cme&&!Rme.includes("go")&&Rme.push("go"),ome&&!Rme.includes("perpage")&&Rme.unshift("perpage"),xme<=_me)Ome=this.handlePageNums(rme,_me,1,Math.min(_me,xme));else if(rme<=_me-3)Ome=this.handlePageNums(rme,_me-2,1,Math.min(_me-2,xme)),Ome.push(this.renderEllipsis("next-ellipsis")),Ome.push(this.renderPageItem(xme));else if(rme>xme-(_me-3)){var Nme=xme-(_me-3);Ome=this.handlePageNums(rme,_me-2,Nme,xme),Ome.unshift(this.renderEllipsis("prev-ellipsis")),Ome.unshift(this.renderPageItem(1))}else Ome=this.handlePageNums(rme,_me-2,3,xme-3),Ome.unshift(this.renderEllipsis("prev-ellipsis")),Ome.unshift(this.renderPageItem(1)),Ome.push(this.renderEllipsis("next-ellipsis")),Ome.push(this.renderPageItem(xme));Ome.unshift(React__default.createElement("li",{className:sme("Pagination-prev",{"is-disabled":rme<2}),onClick:function(Bme){return rme<2?Bme.preventDefault():$P.handlePageNumChange(rme-1,Sme)},key:"prev"},React__default.createElement("span",__assign$3({},yme==null?void 0:yme.getChild("go-prev").getTestId()),React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"})))),Ome.push(React__default.createElement("li",{className:sme("Pagination-next",{"is-disabled":rme===xme}),onClick:function(Bme){return rme===xme?Bme.preventDefault():$P.handlePageNumChange(rme+1,Sme)},key:"next"},React__default.createElement("span",__assign$3({},yme==null?void 0:yme.getChild("go-next").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon"})))),mme&&(Ome=[Ome[0],this.renderPageItem(rme),Ome[Ome.length-1]]);var Ime=React__default.createElement("div",{className:sme("Pagination-inputGroup Pagination-item"),key:"go"},mme?null:React__default.createElement("span",{className:sme("Pagination-inputGroup-left"),key:"go-left"},gme("Pagination.goto")),React__default.createElement("input",__assign$3({className:sme("Pagination-inputGroup-input"),key:"go-input",type:"text",disabled:fme,onChange:this.handlePageChange,onFocus:function(Bme){return Bme.currentTarget.select()},onKeyUp:function(Bme){var Dme=parseInt(Bme.currentTarget.value,10);!Dme||Bme.code!="Enter"||($P.setState({pageNum:""}),$P.handlePageNumChange(Dme,Sme))},value:Cme},yme==null?void 0:yme.getChild("go-input").getTestId())),React__default.createElement("span",__assign$3({className:sme("Pagination-inputGroup-right"),key:"go-right",onClick:function(Bme){Cme&&($P.setState({pageNum:""}),$P.handlePageNumChange(+Cme,Sme))}},yme==null?void 0:yme.getChild("go").getTestId()),gme("Pagination.go"))),Pme=lme.filter(function(Bme){return!!Bme}).map(function(Bme){return{label:gme("Pagination.select",{count:Bme}),value:Bme}}),Mme=React__default.createElement(EnhancedSelect,__assign$3({key:"perpage",className:sme("Pagination-perpage","Pagination-item"),clearable:!1,disabled:fme,value:Sme,options:Pme,popOverContainer:hme,popOverContainerSelector:bme,onChange:function(Bme){$P.setState({perPage:Bme.value,pageNum:""}),$P.handlePageNumChange(1,Bme.value)}},yme==null?void 0:yme.getChild("perpage").getTestId())),kme=ime||xme?React__default.createElement("div",{className:sme("Pagination-total Pagination-item"),key:"total"},ime||ime===0?gme("Pagination.totalCount",{total:ime}):gme("Pagination.totalPage",{lastPage:xme})):null;return React__default.createElement("div",__assign$3({className:sme("Pagination-wrap","Pagination-wrap-size--".concat(vme),{disabled:fme},dme)},yme==null?void 0:yme.getTestId()),Rme.map(function(Bme){return Bme==="pager"?React__default.createElement("ul",{key:"pager-items",className:sme("Pagination","Pagination--sm","Pagination-item")},Ome):Bme==="go"?Ime:Bme==="perpage"?Mme:Bme==="total"?kme:null}))},eme.defaultProps={layout:["pager"],maxButtons:5,mode:"normal",activePage:1,perPage:10,perPageAvailable:[10,20,50,100],ellipsisPageGap:5,size:"md"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePageChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSimpleKeyUp",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSimpleBlur",null),eme}(React__default.Component),Pagination$1=themeable(localeable(Pagination)),Transfer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={inputValue:"",searchResult:null,searchResultPage:null,isTreeDeferLoad:!1,resultSelectMode:"list"},$P.unmounted=!1,$P.lazySearch=debounce$6($P.searchRequest,250,{trailing:!0,leading:!1}),$P}return eme.prototype.componentDidMount=function(){var $P,tme;(tme=($P=this.props)===null||$P===void 0?void 0:$P.onRef)===null||tme===void 0||tme.call($P,this)},eme.getDerivedStateFromProps=function($P){var tme=$P.selectMode==="tree"&&!!findTree($P.options,function(nme){return nme.deferApi||nme[$P.deferField||"defer"]}),ame="list";return $P.selectMode==="tree"&&$P.resultListModeFollowSelect&&!tme&&(ame="tree"),$P.selectMode==="table"&&$P.resultListModeFollowSelect&&(ame="table"),{isTreeDeferLoad:tme,resultSelectMode:ame}},eme.prototype.componentWillUnmount=function(){this.lazySearch.cancel(),this.unmounted=!0},eme.prototype.domRef=function($P){for(;$P&&$P.getWrappedInstance;)$P=$P.getWrappedInstance();this.treeRef=$P},eme.prototype.domResultRef=function($P){for(;$P&&$P.getWrappedInstance;)$P=$P.getWrappedInstance();this.resultRef=$P},eme.prototype.toggleAll=function(){var $P,tme=this.props,ame=tme.options,nme=tme.option2value,rme=tme.onChange,ime=tme.value,ome=tme.onSelectAll,lme=tme.valueField,sme=lme===void 0?"value":lme,cme=tme.selectMode,dme=BaseSelection.value2array(ime,ame,nme,sme),ume=this.availableOptions;if(cme==="tree"){($P=this.treeRef)===null||$P===void 0||$P.handleToggle();return}var fme=intersectionWith$1(ume,dme,isEqual$1).length===ume.length;fme?dme=differenceFromAll(ume,dme,function(hme){return hme[sme]}):dme=unionWith$1(dme,ume,isEqual$1);var pme=nme?dme.map(function(hme){return nme(hme)}):dme;fme||(ome==null||ome(pme)),rme==null||rme(pme)},eme.prototype.selectAll=function(){var $P,tme=this.props,ame=tme.options,nme=tme.option2value,rme=tme.onChange,ime=tme.valueField,ome=ime===void 0?"value":ime,lme=tme.selectMode;if(lme==="tree"){($P=this.treeRef)===null||$P===void 0||$P.handleToggle(!0);return}var sme=flattenTree(ame).filter(function(dme,ume,fme){return!dme.disabled&&dme[ome]!==void 0&&fme.indexOf(dme)===ume}),cme=nme?sme.map(function(dme){return nme(dme)}):sme;rme==null||rme(cme)},eme.prototype.clearSearch=function($P){var tme,ame;$P||(this.handleSeachCancel(),(tme=this.resultRef)===null||tme===void 0||tme.clearInput()),$P!=null&&$P.left&&this.handleSeachCancel(),$P!=null&&$P.right&&((ame=this.resultRef)===null||ame===void 0||ame.clearInput())},eme.prototype.clearAll=function(){var $P=this.props.onChange;$P&&$P([])},eme.prototype.handleSearchKeyDown=function($P){$P.key==="Enter"&&$P.preventDefault()},eme.prototype.handleSearch=function($P){var tme=this;this.setState({inputValue:$P},function(){$P?(tme.cancelSearch&&tme.cancelSearch(),tme.lazySearch()):tme.handleSeachCancel()})},eme.prototype.handleSeachCancel=function(){this.setState({inputValue:"",searchResult:null,searchResultPage:null})},eme.prototype.searchRequest=function($P,tme){var ame;return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme,cme=this;return __generator(this,function(dme){switch(dme.label){case 0:return nme=this.props.pagination,rme=this.state.inputValue,rme?(ime=this.props.onSearch,[4,ime(rme,function(ume){return cme.cancelSearch=ume},!((ame=this.props.pagination)===null||ame===void 0)&&ame.enable?{page:$P||1,perPage:tme||(nme==null?void 0:nme.perPage)||10}:void 0)]):[2];case 1:if(ome=dme.sent(),this.unmounted)return[2];if(ome){if(lme=ome.items,sme=__rest$14(ome,["items"]),!Array.isArray(lme))throw new Error("onSearch 需要返回数组");this.setState({searchResult:lme,searchResultPage:__assign$3({},sme)})}return[2]}})})},eme.prototype.getFlattenArr=function($P){var tme=this.props.valueField,ame=tme===void 0?"value":tme;return flattenTree($P).filter(function(nme,rme,ime){return!nme.disabled&&nme[ame]!==void 0&&ime.indexOf(nme)===rme})},eme.prototype.handleSearchTreeChange=function($P,tme,ame){var nme=ame.value,rme=ame.valueField,ime=rme===void 0?"value":rme,ome=ame.multiple,lme=ame.onChange,sme=this.getFlattenArr(tme);$P=Array.isArray($P)?$P:$P?[$P]:[];var cme=intersectionWith$1(sme,$P,function(fme,pme){return fme[ime]===pme[ime]}),dme=differenceFromAll($P,sme,function(fme){return fme[ime]}),ume=[];ome&&Array.isArray(nme)&&nme.forEach(function(fme){dme.find(function(pme){return pme[ime]===fme[ime]})||ume.push(fme)}),cme.forEach(function(fme){ume.find(function(pme){return pme[ime]===fme[ime]})||ume.push(fme)}),lme&&lme(ume)},eme.prototype.optionItemRender=function($P,tme){var ame=this.props,nme=ame.optionItemRender,rme=ame.labelField,ime=rme===void 0?"label":rme,ome=ame.classnames;return nme?nme($P,tme):BaseSelection.itemRender($P,__assign$3(__assign$3({labelField:ime},tme),{classnames:ome}))},eme.prototype.resultItemRender=function($P,tme){var ame=this.props,nme=ame.resultItemRender,rme=ame.classnames;return nme?nme($P,tme):ResultList$1.itemRender($P,__assign$3(__assign$3({},tme),{classnames:rme}))},eme.prototype.onPageChangeHandle=function($P,tme,ame){var nme=this.props,rme=nme.onPageChange;nme.onSearch;var ime=this.state,ome=ime.searchResult;ime.inputValue,ome?this.searchRequest($P,tme):rme&&rme($P,tme,ame)},eme.prototype.renderSelect=function($P){var tme=$P.selectRender,ame=$P.selectMode,nme=$P.classnames,rme=$P.selectTitle,ime=$P.onSearch,ome=$P.disabled,lme=$P.options,sme=$P.statistics,cme=$P.translate,dme=$P.searchPlaceholder,ume=dme===void 0?cme("Transfer.searchKeyword"):dme,fme=$P.mobileUI,pme=$P.valueField,hme=pme===void 0?"value":pme,bme=$P.testIdBuilder;if(tme)return tme(__assign$3(__assign$3({},$P),{onSearch:this.handleSearch,onSearchCancel:this.handleSeachCancel,searchResult:this.state.searchResult}));var mme=!1,vme=!1,gme=new Set(this.valueArray);vme=this.availableOptions.every(function(_me){return gme.has(_me)}),mme=this.availableOptions.some(function(_me){return gme.has(_me)});var yme=differenceFromAll(this.availableOptions,this.valueArray,function(_me){return _me[hme]}).length;return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:nme("Transfer-title",ame==="table"?"Transfer-title--light":"")},React__default.createElement("span",null,includes$1(["list","tree"],ame)?React__default.createElement(Checkbox$1$1,{checked:mme,partial:mme&&!vme,onChange:$P.onToggleAll||this.toggleAll,size:"sm",testIdBuilder:bme==null?void 0:bme.getChild("toggle-all")}):null,cme(rme||"Transfer.available"),sme!==!1?React__default.createElement("span",null,"（",this.availableOptions.length-this.valueArray.length+yme,"/",this.availableOptions.length,"）"):null),includes$1(["chained","associated"],ame)?React__default.createElement("a",__assign$3({onClick:$P.onToggleAll||this.toggleAll,className:nme("Transfer-checkAll",ome||!lme.length?"is-disabled":"")},bme==null?void 0:bme.getChild("toggle-all").getTestId()),cme("Select.checkAll")):null),ime?React__default.createElement("div",{className:nme("Transfer-search",{"is-mobile":fme})},React__default.createElement(InputBox$1,{value:this.state.inputValue,onChange:this.handleSearch,clearable:!1,onKeyDown:this.handleSearchKeyDown,placeholder:ume,mobileUI:fme,testIdBuilder:bme==null?void 0:bme.getChild("search-input")},this.state.searchResult!==null?React__default.createElement("a",__assign$3({onClick:this.handleSeachCancel},bme==null?void 0:bme.getChild("search-cancel").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"}))):null,this.state.searchResult!==null?this.renderSearchResult($P):this.renderOptions($P),this.renderFooter())},eme.prototype.renderFooter=function(){var $P=this.props,tme=$P.classnames,ame=$P.pagination,nme=this.state,rme=nme.searchResult,ime=nme.searchResultPage;if(!ame||!(ame!=null&&ame.enable))return null;var ome=rme&&ime?{page:ime.page,perPage:ime.perPage,total:ime.total}:{page:ame.page,perPage:ame.perPage,total:ame.total};return React__default.createElement("div",{className:tme("Transfer-footer")},React__default.createElement(Pagination$1,{className:tme("Transfer-footer-pagination",ame.className),activePage:ome.page,perPage:ome.perPage,total:ome.total,layout:ame.layout,maxButtons:ame.maxButtons,perPageAvailable:ame.perPageAvailable,popOverContainer:ame.popOverContainer,popOverContainerSelector:ame.popOverContainerSelector,onPageChange:this.onPageChangeHandle}))},eme.prototype.renderSearchResult=function($P){var tme=this,ame=$P.searchResultMode,nme=$P.selectMode,rme=$P.noResultsText,ime=$P.searchResultColumns,ome=$P.columns,lme=$P.classnames,sme=$P.value,cme=$P.disabled,dme=$P.onChange,ume=$P.option2value,fme=$P.optionItemRender,pme=$P.cellRender,hme=$P.multiple,bme=$P.labelField,mme=$P.valueField,vme=mme===void 0?"value":mme,gme=$P.virtualThreshold,yme=$P.itemHeight,_me=$P.virtualListHeight,$me=$P.checkAll,Cme=$P.checkAllLabel,Sme=$P.onlyChildren,Eme=$P.autoCheckChildren,xme=$P.testIdBuilder,Tme=this.state,Ome=Tme.isTreeDeferLoad,Rme=Tme.searchResult,Nme=Tme.inputValue,Ime=Rme??[],Pme=ame||nme,Mme=ime||ome,kme=!Rme||fme?this.optionItemRender:void 0,Bme=Rme?Nme:void 0;return Pme==="table"?React__default.createElement(TableCheckboxes,{placeholder:rme,className:lme("Transfer-selection"),columns:Mme,options:Ime,value:sme,disabled:cme,onChange:dme,option2value:ume,cellRender:pme,itemRender:this.optionItemRender,valueField:vme,multiple:hme,virtualThreshold:gme,itemHeight:yme,virtualListHeight:_me,testIdBuilder:xme==null?void 0:xme.getChild("search-result")}):Pme==="tree"?React__default.createElement(Tree,{ref:this.domRef,placeholder:rme,className:lme("Transfer-selection"),options:Ime,value:sme,disabled:cme,onChange:function(Dme){return tme.handleSearchTreeChange(Dme,Ime,$P)},joinValues:!1,showIcon:!1,multiple:hme,cascade:!0,onlyChildren:Sme??!Ome,highlightTxt:Bme,itemRender:kme,labelField:bme,valueField:vme,virtualThreshold:gme,itemHeight:yme,checkAllLabel:Cme,checkAll:$me,autoCheckChildren:Eme}):Pme==="chained"?React__default.createElement(ChainedCheckboxes,{placeholder:rme,className:lme("Transfer-selection"),options:Ime,value:sme,disabled:cme,onChange:dme,option2value:ume,itemRender:this.optionItemRender,multiple:hme,labelField:bme,valueField:vme,virtualThreshold:gme,itemHeight:yme,virtualListHeight:_me,checkAllLabel:Cme,checkAll:$me}):React__default.createElement(GroupedSelection$1,{placeholder:rme,className:lme("Transfer-selection"),options:Ime,value:sme,disabled:cme,onChange:dme,option2value:ume,itemRender:this.optionItemRender,multiple:hme,labelField:bme,valueField:vme,virtualThreshold:gme,itemHeight:yme,virtualListHeight:_me,checkAllLabel:Cme,checkAll:$me,testIdBuilder:xme==null?void 0:xme.getChild("search-result")})},eme.prototype.renderOptions=function($P){var tme=$P.selectMode,ame=$P.columns,nme=$P.options,rme=$P.value,ime=$P.disabled,ome=$P.onChange,lme=$P.option2value,sme=$P.classnames,cme=$P.onDeferLoad,dme=$P.leftOptions,ume=$P.leftMode,fme=$P.rightMode,pme=$P.cellRender,hme=$P.leftDefaultValue,bme=$P.multiple,mme=$P.noResultsText,vme=$P.labelField,gme=$P.valueField,yme=gme===void 0?"value":gme,_me=$P.deferField,$me=_me===void 0?"defer":_me,Cme=$P.virtualThreshold,Sme=$P.itemHeight,Eme=$P.virtualListHeight,xme=$P.loadingConfig,Tme=$P.checkAll,Ome=$P.checkAllLabel,Rme=$P.onlyChildren,Nme=$P.autoCheckChildren,Ime=Nme===void 0?!0:Nme,Pme=$P.initiallyOpen,Mme=Pme===void 0?!0:Pme,kme=$P.testIdBuilder;return tme==="table"?React__default.createElement(TableCheckboxes,{className:sme("Transfer-selection"),columns:ame,options:nme||[],value:rme,disabled:ime,onChange:ome,option2value:lme,onDeferLoad:cme,cellRender:pme,multiple:bme,virtualThreshold:Cme,itemHeight:Sme,virtualListHeight:Eme,checkAllLabel:Ome,checkAll:Tme,testIdBuilder:kme==null?void 0:kme.getChild("selection")}):tme==="tree"?React__default.createElement(Tree,{ref:this.domRef,placeholder:mme,className:sme("Transfer-selection"),options:nme,value:rme,onChange:ome,onlyChildren:Rme??!this.state.isTreeDeferLoad,itemRender:this.optionItemRender,onDeferLoad:cme,joinValues:!1,showIcon:!1,multiple:bme,cascade:!0,labelField:vme,valueField:yme,virtualThreshold:Cme,itemHeight:Sme,loadingConfig:xme,checkAllLabel:Ome,checkAll:Tme,initiallyOpen:Mme,autoCheckChildren:Ime,testIdBuilder:kme==null?void 0:kme.getChild("selection")}):tme==="chained"?React__default.createElement(ChainedCheckboxes,{className:sme("Transfer-selection"),options:nme||[],value:rme,disabled:ime,onChange:ome,option2value:lme,onDeferLoad:cme,itemRender:this.optionItemRender,multiple:bme,labelField:vme,valueField:yme,virtualThreshold:Cme,itemHeight:Sme,virtualListHeight:Eme,loadingConfig:xme,checkAllLabel:Ome,checkAll:Tme,testIdBuilder:kme==null?void 0:kme.getChild("selection")}):tme==="associated"?React__default.createElement(AssociatedCheckboxes,{className:sme("Transfer-selection"),options:nme||[],value:rme,disabled:ime,onChange:ome,option2value:lme,onDeferLoad:cme,columns:ame,leftOptions:dme||[],leftMode:ume,rightMode:fme,leftDefaultValue:hme,itemRender:this.optionItemRender,multiple:bme,labelField:vme,valueField:yme,deferField:$me,virtualThreshold:Cme,itemHeight:Sme,virtualListHeight:Eme,loadingConfig:xme,checkAllLabel:Ome,checkAll:Tme,testIdBuilder:kme==null?void 0:kme.getChild("selection")}):React__default.createElement(GroupedSelection$1,{className:sme("Transfer-selection"),options:nme||[],value:rme,disabled:ime,onChange:ome,option2value:lme,onDeferLoad:cme,itemRender:this.optionItemRender,multiple:bme,labelField:vme,valueField:yme,virtualThreshold:Cme,itemHeight:Sme,virtualListHeight:Eme,checkAllLabel:Ome,checkAll:Tme,testIdBuilder:kme==null?void 0:kme.getChild("selection")})},eme.prototype.renderResult=function(){var $P=this.props,tme=$P.columns,ame=$P.options,nme=$P.disabled,rme=$P.option2value,ime=$P.classnames,ome=$P.cellRender,lme=$P.onChange,sme=$P.value,cme=$P.resultSearchable,dme=$P.resultSearchPlaceholder,ume=$P.onResultSearch,fme=$P.sortable,pme=$P.labelField,hme=$P.translate,bme=$P.placeholder,mme=bme===void 0?hme("Transfer.selectFromLeft"):bme,vme=$P.virtualThreshold,gme=$P.itemHeight,yme=$P.loadingConfig,_me=$P.showInvalidMatch,$me=$P.pagination,Cme=$P.accumulatedOptions,Sme=$P.testIdBuilder,Eme=this.state,xme=Eme.resultSelectMode,Tme=Eme.isTreeDeferLoad,Ome=!Tme&&cme;switch(xme){case"table":return React__default.createElement(ResultTableList,{ref:this.domResultRef,classnames:ime,columns:tme,options:($me!=null&&$me.enable?Cme:ame)||[],value:sme,disabled:nme,option2value:rme,cellRender:ome,onChange:lme,multiple:!1,searchable:Ome,placeholder:mme,searchPlaceholder:dme,onSearch:ume,virtualThreshold:vme,itemHeight:gme,testIdBuilder:Sme==null?void 0:Sme.getChild("result")});case"tree":return React__default.createElement(ResultTreeList,{ref:this.domResultRef,loadingConfig:yme,classnames:ime,className:ime("Transfer-value"),options:($me!=null&&$me.enable?Cme:ame)||[],valueField:"value",value:sme||[],onChange:lme,itemRender:this.resultItemRender,searchable:Ome,placeholder:mme,searchPlaceholder:dme,onSearch:ume,labelField:pme,virtualThreshold:vme,itemHeight:gme,testIdBuilder:Sme==null?void 0:Sme.getChild("result")});default:return React__default.createElement(ResultList$1,{ref:this.domResultRef,className:ime("Transfer-value"),sortable:fme,disabled:nme,value:sme,onChange:lme,placeholder:mme,searchPlaceholder:dme,itemRender:this.resultItemRender,searchable:Ome,onSearch:ume,labelField:pme,virtualThreshold:vme,itemHeight:gme,showInvalidMatch:_me,testIdBuilder:Sme==null?void 0:Sme.getChild("result")})}},eme.prototype.render=function(){var $P=this.props,tme=$P.inline,ame=$P.classnames,nme=$P.className,rme=$P.value,ime=$P.resultTitle,ome=$P.options,lme=$P.option2value,sme=$P.disabled,cme=$P.statistics,dme=$P.showArrow,ume=$P.resultListModeFollowSelect,fme=$P.selectMode,pme=fme===void 0?"list":fme,hme=$P.translate,bme=$P.valueField,mme=bme===void 0?"value":bme,vme=$P.mobileUI,gme=$P.pagination,yme=$P.testIdBuilder,_me=this.state.searchResult;this.valueArray=BaseSelection.value2array(rme,ome,lme,mme),this.availableOptions=flattenTree(_me??ome).filter(function(Cme,Sme,Eme){return!Cme.disabled&&Cme[mme]!==void 0&&Eme.indexOf(Cme)===Sme});var $me=ume&&pme==="table";return React__default.createElement("div",{className:ame("Transfer",nme,tme?"Transfer--inline":"")},React__default.createElement("div",{className:ame("Transfer-select",{"Transfer-select--pagination":!!(gme!=null&&gme.enable)})},this.renderSelect(this.props)),React__default.createElement("div",{className:ame("Transfer-mid",{"is-mobile":vme})},dme?React__default.createElement("div",{className:ame("Transfer-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon"})):null),React__default.createElement("div",{className:ame("Transfer-result",{"is-mobile":vme,"Transfer-select--pagination":!!(gme!=null&&gme.enable)})},React__default.createElement("div",{className:ame("Transfer-title",$me?"Transfer-table-title":"",pme==="table"?"Transfer-title--light":"")},React__default.createElement("span",null,hme(ime||"Transfer.selectd"),cme!==!1?React__default.createElement("span",null,"（",this.valueArray.length,"）"):null),React__default.createElement("a",__assign$3({onClick:this.clearAll,className:ame("Transfer-clearAll",sme||!this.valueArray.length?"is-disabled":"")},yme==null?void 0:yme.getChild("clear-all").getTestId()),hme("clear"))),this.renderResult()))},eme.defaultProps={multiple:!0,resultListModeFollowSelect:!1,selectMode:"list",statistics:!0,virtualThreshold:100,itemHeight:38,checkAllLabel:"Select.checkAll",valueField:"value"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"domRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"domResultRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearAll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearchKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSeachCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Number]),__metadata("design:returntype",Promise)],eme.prototype,"searchRequest",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,Array,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearchTreeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"optionItemRender",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"resultItemRender",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"onPageChangeHandle",null),eme}(React__default.Component),Transfer$1=themeable(localeable(uncontrollable(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme}(Transfer),{value:"onChange"}))),TabsTransfer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={inputValue:"",searchResult:null},$P.unmounted=!1,$P.lazySearch=debounce$6(function(tme,ame){(function(nme){return __awaiter($P,void 0,void 0,function(){var rme,ime,ome=this;return __generator(this,function(lme){switch(lme.label){case 0:return rme=this.props.onSearch,[4,rme(nme,ame,function(sme){return ome.cancelSearch=sme})];case 1:if(ime=lme.sent(),this.unmounted)return[2];if(!Array.isArray(ime))throw new Error("onSearch 需要返回数组");return this.setState({searchResult:ime}),[2]}})})})(tme).catch(function(nme){return console.error(nme)})},250,{trailing:!0,leading:!1}),$P}return eme.prototype.componentWillUnmount=function(){this.lazySearch.cancel(),this.unmounted=!0},eme.prototype.handleSearch=function($P,tme){var ame=this;$P?this.setState({inputValue:$P},function(){ame.cancelSearch&&ame.cancelSearch(),ame.lazySearch($P,tme)}):this.handleSeachCancel()},eme.prototype.handleSeachCancel=function(){this.setState({inputValue:"",searchResult:null})},eme.prototype.handleSearchKeyDown=function($P){$P.key==="Enter"&&$P.preventDefault()},eme.prototype.handleTabChange=function($P){var tme,ame;(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onTabChange)===null||ame===void 0||ame.call(tme,$P),this.handleSeachCancel()},eme.prototype.renderSearchResult=function($P){var tme=this.props,ame=tme.searchResultMode,nme=tme.noResultsText,rme=tme.searchResultColumns,ime=tme.classnames,ome=tme.value,lme=tme.disabled,sme=tme.onChange,cme=tme.option2value,dme=tme.cellRender,ume=tme.optionItemRender,fme=tme.itemHeight,pme=tme.virtualThreshold,hme=tme.onlyChildren,bme=tme.selectMode;tme.loadingConfig;var mme=tme.activeKey,vme=tme.options,gme=tme.valueField,yme=gme===void 0?"value":gme,_me=tme.labelField,$me=_me===void 0?"label":_me,Cme=tme.testIdBuilder,Sme=$P||[],Eme=ame||bme,xme=Cme==null?void 0:Cme.getChild("search-result"),Tme=vme[mme];return Eme==="table"?React__default.createElement(TableCheckboxes,{placeholder:nme,className:ime("Transfer-checkboxes"),columns:rme,options:Sme,value:ome,disabled:lme,onChange:sme,option2value:cme,cellRender:dme,itemHeight:fme,virtualThreshold:pme,testIdBuilder:xme}):Eme==="tree"?React__default.createElement(Tree,{placeholder:nme,className:ime("Transfer-checkboxes"),options:Sme,value:ome,disabled:lme,onChange:sme,joinValues:!1,onlyChildren:hme,showIcon:!1,multiple:!0,cascade:!0,autoCheckChildren:Tme.autoCheckChildren,itemRender:ume?function(Ome,Rme){return ume(Ome,Rme,{panel:"result"})}:void 0,valueField:yme,labelField:$me,testIdBuilder:xme}):Eme==="chained"?React__default.createElement(ChainedCheckboxes,{placeholder:nme,className:ime("Transfer-checkboxes"),options:Sme,value:ome,disabled:lme,onChange:sme,option2value:cme,itemRender:ume?function(Ome,Rme){return ume(Ome,Rme,{panel:"result"})}:void 0,itemHeight:fme,virtualThreshold:pme,valueField:yme,labelField:$me,testIdBuilder:xme}):React__default.createElement(GroupedSelection$1,{placeholder:nme,className:ime("Transfer-checkboxes"),options:Sme,value:ome,disabled:lme,onChange:sme,option2value:cme,itemRender:ume?function(Ome,Rme){return ume(Ome,Rme,{panel:"result"})}:void 0,itemHeight:fme,virtualThreshold:pme,valueField:yme,labelField:$me,testIdBuilder:xme})},eme.prototype.renderSelect=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.placeholder,rme=tme.activeKey,ime=tme.classnames,ome=tme.translate,lme=tme.ctx,sme=tme.mobileUI,cme=tme.searchable,dme=tme.testIdBuilder,ume=ame.filter(function(fme){return fme.visible!==!1});return!Array.isArray(ame)||!ame.length?React__default.createElement("div",{className:ime("TabsTransfer-placeholder")},ome(nme||"placeholder.noOption")):React__default.createElement(ThemedTabs,{mode:"line",className:ime("TabsTransfer-tabs"),onSelect:this.handleTabChange,activeKey:rme,testIdBuilder:dme==null?void 0:dme.getChild("tabs")},ume.map(function(fme,pme){return React__default.createElement(Tab$1,{eventKey:pme,key:pme,title:filter$1(fme.label||fme.title,createObject$1(lme,fme)),className:"TabsTransfer-tab",testIdBuilder:dme==null?void 0:dme.getChild("tab-".concat(pme))},fme.searchable||cme?React__default.createElement("div",{className:ime("TabsTransfer-search",{"is-mobile":sme})},React__default.createElement(InputBox$1,{value:$P.state.inputValue,onChange:function(hme){return $P.handleSearch(hme,fme)},placeholder:ome("Transfer.searchKeyword"),clearable:!1,onKeyDown:$P.handleSearchKeyDown},$P.state.searchResult!==null?React__default.createElement("a",{onClick:$P.handleSeachCancel},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"}))):null,$P.state.searchResult!==null?$P.renderSearchResult($P.state.searchResult):$P.renderOptions(fme))}))},eme.prototype.renderOptions=function($P){var tme,ame=this.props,nme=ame.classnames,rme=ame.value,ime=ame.disabled,ome=ame.multiple,lme=ame.onChange,sme=ame.option2value,cme=ame.onDeferLoad,dme=ame.onLeftDeferLoad,ume=ame.cellRender;ame.translate;var fme=ame.optionItemRender,pme=ame.itemHeight,hme=ame.virtualThreshold,bme=ame.onlyChildren,mme=ame.loadingConfig,vme=ame.initiallyOpen,gme=vme===void 0?!0:vme,yme=ame.valueField,_me=yme===void 0?"value":yme,$me=ame.labelField,Cme=$me===void 0?"label":$me,Sme=ame.deferField,Eme=Sme===void 0?"defer":Sme,xme=ame.testIdBuilder,Tme=$P.selectMode||this.props.selectMode,Ome=xme==null?void 0:xme.getChild("selection");return Tme==="table"?React__default.createElement(TableCheckboxes,{className:nme("Transfer-checkboxes"),columns:$P.columns,options:$P.children||[],value:rme,multiple:ome,disabled:ime,onChange:lme,option2value:sme,onDeferLoad:cme,cellRender:ume,itemHeight:pme,virtualThreshold:hme,valueField:_me,labelField:Cme,testIdBuilder:Ome}):Tme==="tree"?React__default.createElement(Tree,{loadingConfig:mme,className:nme("Transfer-checkboxes"),options:$P.children||[],value:rme,multiple:ome,disabled:ime,onChange:lme,joinValues:!1,showIcon:!1,onlyChildren:(tme=$P.onlyChildren)!==null&&tme!==void 0?tme:bme,cascade:!0,onDeferLoad:cme,autoCheckChildren:$P.autoCheckChildren,itemRender:fme?function(Rme,Nme){return fme(Rme,Nme,{panel:"tab",tag:$P})}:void 0,itemHeight:pme,virtualThreshold:hme,valueField:_me,labelField:Cme,initiallyOpen:gme,testIdBuilder:Ome}):Tme==="chained"?React__default.createElement(ChainedCheckboxes,{className:nme("Transfer-checkboxes"),options:$P.children||[],value:rme,multiple:ome,disabled:ime,onChange:lme,option2value:sme,onDeferLoad:cme,defaultSelectedIndex:$P.defaultSelectedIndex,itemRender:fme?function(Rme,Nme){return fme(Rme,Nme,{panel:"tab",tag:$P})}:void 0,itemHeight:pme,virtualThreshold:hme,valueField:_me,labelField:Cme,testIdBuilder:Ome}):Tme==="associated"?React__default.createElement(AssociatedCheckboxes,{className:nme("Transfer-checkboxes"),options:$P.children||[],value:rme,multiple:ome,disabled:ime,onChange:lme,option2value:sme,onDeferLoad:cme,onLeftDeferLoad:dme,leftMode:$P.leftMode,leftOptions:$P.leftOptions,leftDefaultValue:$P.leftDefaultValue,loadingConfig:mme,itemRender:fme?function(Rme,Nme){return fme(Rme,Nme,{panel:"tab",tag:$P})}:void 0,itemHeight:pme,virtualThreshold:hme,valueField:_me,labelField:Cme,deferField:Eme,testIdBuilder:Ome}):React__default.createElement(GroupedSelection$1,{className:nme("Transfer-checkboxes"),options:$P.children||[],value:rme,multiple:ome,disabled:ime,onChange:lme,option2value:sme,onDeferLoad:cme,itemRender:fme?function(Rme,Nme){return fme(Rme,Nme,{panel:"tab",tag:$P})}:void 0,itemHeight:pme,virtualThreshold:hme,valueField:_me,labelField:Cme,testIdBuilder:Ome})},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.classnames;$P.optionItemRender,$P.onSearch;var nme=$P.mobileUI,rme=__rest$14($P,["className","classnames","optionItemRender","onSearch","mobileUI"]);return React__default.createElement(Transfer$1,__assign$3({},rme,{mobileUI:nme,statistics:!1,classnames:ame,className:ame("TabsTransfer",tme),selectRender:this.renderSelect}))},eme.defaultProps={multiple:!0,onlyChildren:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSeachCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearchKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleTabChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderOptions",null),eme}(React__default.Component),TabsTransfer$1=themeable(localeable(TabsTransfer)),ResultBox=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isFocused:!1},$P.inputRef=React__default.createRef(),$P}return eme.prototype.focus=function(){var $P;($P=this.inputRef.current)===null||$P===void 0||$P.focus()},eme.prototype.blur=function(){var $P;($P=this.inputRef.current)===null||$P===void 0||$P.blur()},eme.prototype.clearValue=function($P){$P.preventDefault(),$P.stopPropagation(),this.props.onClear&&this.props.onClear($P),this.props.onResultChange&&this.props.onResultChange([])},eme.prototype.handleFocus=function($P){var tme=this.props.onFocus;tme&&tme($P),this.setState({isFocused:!0})},eme.prototype.handleBlur=function($P){var tme=this.props.onBlur;tme&&tme($P),this.setState({isFocused:!1})},eme.prototype.removeItem=function($P){$P.stopPropagation(),$P.preventDefault();var tme=this.props,ame=tme.result,nme=tme.onResultChange,rme=parseInt($P.currentTarget.getAttribute("data-index"),10),ime=Array.isArray(ame)?ame.concat():[];ime.splice(rme,1),nme&&nme(ime)},eme.prototype.handleItemClick=function($P){$P.stopPropagation(),$P.preventDefault();var tme=this.props,ame=tme.result,nme=tme.onItemClick,rme=parseInt($P.currentTarget.getAttribute("data-index"),10),ime=Array.isArray(ame)?ame.concat():[];nme&&nme(ime[rme]||{})},eme.prototype.handleChange=function($P){var tme=this.props.onChange;tme==null||tme($P.currentTarget.value)},eme.prototype.renderMultipeTags=function($P){var tme=this,ame=this.props,nme=ame.maxTagCount,rme=ame.overflowTagPopover,ime=ame.itemRender,ome=ame.classnames,lme=ame.showInvalidMatch,sme=ame.popOverContainer,cme=ame.testIdBuilder;if(nme!=null&&isInteger$1(Math.floor(nme))&&Math.floor(nme)>=0&&Math.floor(nme)<$P.length){var dme=Math.floor(nme),ume=__assign$3({placement:"top",trigger:"hover",showArrow:!1,offset:[0,-10],tooltipClassName:ome("ResultBox-overflow",rme==null?void 0:rme.tooltipClassName)},omit$1(rme,["children","content","tooltipClassName"]));return __spreadArray(__spreadArray([],__read$3($P.slice(0,dme)),!1),[{label:"+ ".concat($P.length-dme," ...")}],!1).map(function(fme,pme){var hme=lme&&(fme==null?void 0:fme.__unmatched),bme=cme==null?void 0:cme.getChild(fme.value||pme);return pme===dme?React__default.createElement(TooltipWrapper$1,{key:$P.length,container:sme,tooltip:__assign$3(__assign$3({},ume),{children:function(){return React__default.createElement("div",{className:ome("ResultBox-overflow-wrapper")},$P.slice(dme,$P.length).map(function(mme,vme){var gme=vme+dme;return React__default.createElement("div",__assign$3({className:ome("ResultBox-value",{"is-invalid":lme&&(mme==null?void 0:mme.__unmatched)}),key:gme,onClick:tme.handleItemClick},bme==null?void 0:bme.getTestId()),React__default.createElement("span",__assign$3({className:ome("ResultBox-valueLabel"),"data-index":vme},bme==null?void 0:bme.getChild("click").getTestId()),ime(mme)),React__default.createElement("a",__assign$3({"data-index":gme,onClick:tme.removeItem},bme==null?void 0:bme.getChild("close").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"})))}))}})},React__default.createElement("div",{className:ome("ResultBox-value",{"is-invalid":hme}),key:pme},React__default.createElement("span",{className:ome("ResultBox-valueLabel")},fme.label))):React__default.createElement(TooltipWrapper$1,{container:sme,placement:"top",tooltip:fme.label,trigger:"hover",key:pme},React__default.createElement("div",__assign$3({className:ome("ResultBox-value",{"is-invalid":hme}),onClick:tme.handleItemClick},bme==null?void 0:bme.getTestId()),React__default.createElement("span",__assign$3({className:ome("ResultBox-valueLabel"),"data-index":pme},bme==null?void 0:bme.getChild("click").getTestId()),ime(fme)),React__default.createElement("a",__assign$3({"data-index":pme,onClick:tme.removeItem},bme==null?void 0:bme.getChild("close").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"}))))})}return $P.map(function(fme,pme){var hme=cme==null?void 0:cme.getChild(pme);return React__default.createElement(TooltipWrapper$1,{container:sme,placement:"top",tooltip:fme.label,trigger:"hover",key:pme},React__default.createElement("div",__assign$3({className:ome("ResultBox-value",{"is-invalid":lme&&(fme==null?void 0:fme.__unmatched)}),onClick:tme.handleItemClick},hme==null?void 0:hme.getTestId()),React__default.createElement("span",__assign$3({className:ome("ResultBox-valueLabel"),"data-index":pme},hme==null?void 0:hme.getChild("click").getTestId()),ime(fme)),React__default.createElement("a",__assign$3({"data-index":pme,onClick:tme.removeItem},hme==null?void 0:hme.getChild("close").getTestId()),React__default.createElement(Icon$1,{icon:"close",className:"icon"}))))})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className,nme=tme.classnames;tme.classPrefix;var rme=tme.clearable,ime=tme.disabled,ome=tme.hasError,lme=tme.result,sme=tme.value,cme=tme.placeholder,dme=tme.children,ume=tme.itemRender,fme=tme.allowInput,pme=tme.inputPlaceholder;tme.onResultChange,tme.onChange;var hme=tme.onResultClick,bme=tme.translate;tme.locale;var mme=tme.onKeyPress,vme=tme.onFocus,gme=tme.onBlur,yme=tme.borderMode,_me=tme.mobileUI,$me=tme.hasDropDownArrow,Cme=tme.actions;tme.onClear,tme.maxTagCount,tme.overflowTagPopover;var Sme=tme.showArrow;tme.popOverContainer;var Eme=tme.testIdBuilder,xme=__rest$14(tme,["className","classnames","classPrefix","clearable","disabled","hasError","result","value","placeholder","children","itemRender","allowInput","inputPlaceholder","onResultChange","onChange","onResultClick","translate","locale","onKeyPress","onFocus","onBlur","borderMode","mobileUI","hasDropDownArrow","actions","onClear","maxTagCount","overflowTagPopover","showArrow","popOverContainer","testIdBuilder"]),Tme=this.state.isFocused;return React__default.createElement("div",__assign$3({className:nme("ResultBox",ame,($P={"is-focused":Tme,"is-disabled":ime,"is-error":ome,"is-clickable":hme,"is-clearable":rme,"is-mobile":_me,"is-group":Array.isArray(lme)},$P["ResultBox--border".concat(ucFirst(yme))]=yme,$P)),onClick:hme,tabIndex:!fme&&!ime&&vme?0:-1,onKeyPress:fme?void 0:mme,onFocus:fme?void 0:vme,onBlur:fme?void 0:gme},Eme==null?void 0:Eme.getTestId()),React__default.createElement("div",{className:nme("ResultBox-value-wrap")},Array.isArray(lme)&&lme.length?this.renderMultipeTags(lme):lme&&!Array.isArray(lme)?React__default.createElement("span",{className:nme("ResultBox-singleValue")},isPlainObject$b(lme)?ume(lme):lme):fme&&!ime?null:React__default.createElement("span",{className:nme("ResultBox-placeholder")},bme(cme||"placeholder.noData")),fme&&!ime?React__default.createElement(Input,__assign$3({},xme,{className:nme("ResultBox-value-input"),onKeyPress:mme,ref:this.inputRef,value:sme||"",onChange:this.handleChange,placeholder:bme(Array.isArray(lme)?lme.length>0?pme:cme:lme?"":cme),onFocus:this.handleFocus,onBlur:this.handleBlur,testIdBuilder:Eme==null?void 0:Eme.getChild("input")})):null,dme),React__default.createElement("div",{className:nme("ResultBox-actions")},rme&&!ime&&(Array.isArray(lme)?lme.length:lme)?React__default.createElement("a",__assign$3({onClick:this.clearValue,className:nme("ResultBox-clear",{"ResultBox-clear-with-arrow":$me})},Eme==null?void 0:Eme.getChild("clear").getTestId()),React__default.createElement("div",{className:nme("ResultBox-clear-wrap")},React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"}))):null,Cme,$me&&!_me&&React__default.createElement("span",{className:nme("ResultBox-pc-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})),!fme&&_me&&Sme?React__default.createElement("span",{className:nme("ResultBox-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null))},eme.defaultProps={clearable:!1,placeholder:"placeholder.noData",inputPlaceholder:"placeholder.enter",showArrow:!0,itemRender:function($P){return React__default.createElement("span",null,"".concat($P.scopeLabel||"").concat($P.label))}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"clearValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"removeItem",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),eme}(React__default.Component),ResultBox$1=themeable(localeable(uncontrollable(ResultBox,{value:"onChange",result:"onResultChange"}))),ListGroup=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.expand,rme=$P.placeholder,ime=$P.items,ome=$P.children,lme=$P.itemClassName,sme=$P.itemRender,cme=$P.getItemProps;$P.classPrefix;var dme=__rest$14($P,["classnames","className","expand","placeholder","items","children","itemClassName","itemRender","getItemProps","classPrefix"]);return React__default.createElement("div",__assign$3({},dme,{className:tme("ListGroup",ame,nme?"ListGroup--expanded":"")}),Array.isArray(ime)&&ime.length?ime.map(function(ume,fme){var pme=(cme==null?void 0:cme({item:ume,index:fme}))||{};return React__default.createElement("div",__assign$3({key:fme},pme,{className:tme("ListGroup-item",lme,pme.className)}),sme(ume,fme))}):rme?React__default.createElement("div",{className:tme("Placeholder ListGroup-placeholder")}):null,ome)},eme.defaultProps={itemRender:function($P){return React__default.createElement(React__default.Fragment,null,"".concat($P))}},eme}(React__default.Component);themeable(ListGroup);var STEP_INTERVAL=200,STEP_DELAY=600;function StepHandler(x_){var eme=x_.prefixCls,$P=x_.upNode,tme=x_.downNode,ame=x_.upDisabled,nme=x_.downDisabled,rme=x_.onStep,ime=reactExports.useRef(),ome=reactExports.useRef();ome.current=rme;var lme=function(bme,mme){bme.preventDefault(),ome.current(mme);function vme(){ome.current(mme),ime.current=setTimeout(vme,STEP_INTERVAL)}ime.current=setTimeout(vme,STEP_DELAY)},sme=function(){clearTimeout(ime.current)};reactExports.useEffect(function(){return sme},[]);var cme=useMobile();if(cme)return null;var dme="".concat(eme,"-handler"),ume=cx$1(dme,"".concat(dme,"-up"),_defineProperty$7({},"".concat(dme,"-up-disabled"),ame)),fme=cx$1(dme,"".concat(dme,"-down"),_defineProperty$7({},"".concat(dme,"-down-disabled"),nme)),pme={unselectable:"on",role:"button",onMouseUp:sme,onMouseLeave:sme};return reactExports.createElement("div",{className:"".concat(dme,"-wrap")},reactExports.createElement("span",_extends$4C({},pme,{onMouseDown:function(bme){lme(bme,!0)},"aria-label":"Increase Value","aria-disabled":ame,className:ume}),$P||reactExports.createElement("span",{unselectable:"on",className:"".concat(eme,"-handler-up-inner")})),reactExports.createElement("span",_extends$4C({},pme,{onMouseDown:function(bme){lme(bme,!1)},"aria-label":"Decrease Value","aria-disabled":nme,className:fme}),tme||reactExports.createElement("span",{unselectable:"on",className:"".concat(eme,"-handler-down-inner")})))}function getDecupleSteps(x_){var eme=typeof x_=="number"?num2str(x_):trimNumber(x_).fullStr,$P=eme.includes(".");return $P?trimNumber(eme.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:x_+"0"}function useCursor(x_,eme){var $P=reactExports.useRef(null);function tme(){try{var nme=x_.selectionStart,rme=x_.selectionEnd,ime=x_.value,ome=ime.substring(0,nme),lme=ime.substring(rme);$P.current={start:nme,end:rme,value:ime,beforeTxt:ome,afterTxt:lme}}catch{}}function ame(){if(x_&&$P.current&&eme)try{var nme=x_.value,rme=$P.current,ime=rme.beforeTxt,ome=rme.afterTxt,lme=rme.start,sme=nme.length;if(nme.endsWith(ome))sme=nme.length-$P.current.afterTxt.length;else if(nme.startsWith(ime))sme=ime.length;else{var cme=ime[lme-1],dme=nme.indexOf(cme,lme-1);dme!==-1&&(sme=dme+1)}x_.setSelectionRange(sme,sme)}catch(ume){warningOnce(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(ume.message))}}return[tme,ame]}const useFrame=function(){var x_=reactExports.useRef(0),eme=function(){wrapperRaf.cancel(x_.current)};return reactExports.useEffect(function(){return eme},[]),function($P){eme(),x_.current=wrapperRaf(function(){$P()})}};var _excluded$4=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],getDecimalValue=function(eme,$P){return eme||$P.isEmpty()?$P.toString():$P.toNumber()},getDecimalIfValidate=function(eme){var $P=getMiniDecimal(eme);return $P.isInvalidate()?null:$P},InputNumber=reactExports.forwardRef(function(x_,eme){var $P,tme=x_.prefixCls,ame=tme===void 0?"rc-input-number":tme,nme=x_.className,rme=x_.style,ime=x_.min,ome=x_.max,lme=x_.step,sme=lme===void 0?1:lme,cme=x_.defaultValue,dme=x_.value,ume=x_.disabled,fme=x_.readOnly,pme=x_.upHandler,hme=x_.downHandler,bme=x_.keyboard,mme=x_.controls,vme=mme===void 0?!0:mme,gme=x_.stringMode,yme=x_.parser,_me=x_.formatter,$me=x_.precision,Cme=x_.decimalSeparator,Sme=x_.onChange,Eme=x_.onInput,xme=x_.onPressEnter,Tme=x_.onStep,Ome=_objectWithoutProperties$6(x_,_excluded$4),Rme="".concat(ame,"-input"),Nme=reactExports.useRef(null),Ime=reactExports.useState(!1),Pme=_slicedToArray$2(Ime,2),Mme=Pme[0],kme=Pme[1],Bme=reactExports.useRef(!1),Dme=reactExports.useRef(!1),jme=reactExports.useRef(!1),Vme=reactExports.useState(function(){return getMiniDecimal(dme??cme)}),Wme=_slicedToArray$2(Vme,2),Lme=Wme[0],zme=Wme[1];function Ume(e0e){dme===void 0&&zme(e0e)}var Gme=reactExports.useCallback(function(e0e,_0e){if(!_0e)return $me>=0?$me:Math.max(getNumberPrecision(e0e),getNumberPrecision(sme))},[$me,sme]),Jme=reactExports.useCallback(function(e0e){var _0e=String(e0e);if(yme)return yme(_0e);var m0e=_0e;return Cme&&(m0e=m0e.replace(Cme,".")),m0e.replace(/[^\w.-]+/g,"")},[yme,Cme]),Yme=reactExports.useRef(""),Qme=reactExports.useCallback(function(e0e,_0e){if(_me)return _me(e0e,{userTyping:_0e,input:String(Yme.current)});var m0e=typeof e0e=="number"?num2str(e0e):e0e;if(!_0e){var Ybe=Gme(m0e,_0e);if(validateNumber(m0e)&&(Cme||Ybe>=0)){var Jbe=Cme||".";m0e=toFixed$1(m0e,Jbe,Ybe)}}return m0e},[_me,Gme,Cme]),Xme=reactExports.useState(function(){var e0e=cme??dme;return Lme.isInvalidate()&&["string","number"].includes(_typeof$4(e0e))?Number.isNaN(e0e)?"":e0e:Qme(Lme.toString(),!1)}),Kme=_slicedToArray$2(Xme,2),Zme=Kme[0],nbe=Kme[1];Yme.current=Zme;function lbe(e0e,_0e){nbe(Qme(e0e.isInvalidate()?e0e.toString(!1):e0e.toString(!_0e),_0e))}var ibe=reactExports.useMemo(function(){return getDecimalIfValidate(ome)},[ome,$me]),abe=reactExports.useMemo(function(){return getDecimalIfValidate(ime)},[ime,$me]),obe=reactExports.useMemo(function(){return!ibe||!Lme||Lme.isInvalidate()?!1:ibe.lessEquals(Lme)},[ibe,Lme]),hbe=reactExports.useMemo(function(){return!abe||!Lme||Lme.isInvalidate()?!1:Lme.lessEquals(abe)},[abe,Lme]),ube=useCursor(Nme.current,Mme),mbe=_slicedToArray$2(ube,2),pbe=mbe[0],_be=mbe[1],Sbe=function(_0e){return ibe&&!_0e.lessEquals(ibe)?ibe:abe&&!abe.lessEquals(_0e)?abe:null},vbe=function(_0e){return!Sbe(_0e)},kbe=function(_0e,m0e){var Ybe=_0e,Jbe=vbe(Ybe)||Ybe.isEmpty();if(!Ybe.isEmpty()&&!m0e&&(Ybe=Sbe(Ybe)||Ybe,Jbe=!0),!fme&&!ume&&Jbe){var c0e=Ybe.toString(),zbe=Gme(c0e,m0e);return zbe>=0&&(Ybe=getMiniDecimal(toFixed$1(c0e,".",zbe)),vbe(Ybe)||(Ybe=getMiniDecimal(toFixed$1(c0e,".",zbe,!0)))),Ybe.equals(Lme)||(Ume(Ybe),Sme==null||Sme(Ybe.isEmpty()?null:getDecimalValue(gme,Ybe)),dme===void 0&&lbe(Ybe,m0e)),Ybe}return Lme},Rbe=useFrame(),Pbe=function e0e(_0e){if(pbe(),nbe(_0e),!Dme.current){var m0e=Jme(_0e),Ybe=getMiniDecimal(m0e);Ybe.isNaN()||kbe(Ybe,!0)}Eme==null||Eme(_0e),Rbe(function(){var Jbe=_0e;yme||(Jbe=_0e.replace(/。/g,".")),Jbe!==_0e&&e0e(Jbe)})},Mbe=function(){Dme.current=!0},Kbe=function(){Dme.current=!1,Pbe(Nme.current.value)},Qbe=function(_0e){Pbe(_0e.target.value)},Gbe=function(_0e){var m0e;if(!(_0e&&obe||!_0e&&hbe)){Bme.current=!1;var Ybe=getMiniDecimal(jme.current?getDecupleSteps(sme):sme);_0e||(Ybe=Ybe.negate());var Jbe=(Lme||getMiniDecimal(0)).add(Ybe.toString()),c0e=kbe(Jbe,!1);Tme==null||Tme(getDecimalValue(gme,c0e),{offset:jme.current?getDecupleSteps(sme):sme,type:_0e?"up":"down"}),(m0e=Nme.current)===null||m0e===void 0||m0e.focus()}},Hbe=function(_0e){var m0e=getMiniDecimal(Jme(Zme)),Ybe=m0e;m0e.isNaN()?Ybe=Lme:Ybe=kbe(m0e,_0e),dme!==void 0?lbe(Lme,!1):Ybe.isNaN()||lbe(Ybe,!1)},d0e=function(){Bme.current=!0},p0e=function(_0e){var m0e=_0e.which,Ybe=_0e.shiftKey;Bme.current=!0,Ybe?jme.current=!0:jme.current=!1,m0e===KeyCode.ENTER&&(Dme.current||(Bme.current=!1),Hbe(!1),xme==null||xme(_0e)),bme!==!1&&!Dme.current&&[KeyCode.UP,KeyCode.DOWN].includes(m0e)&&(Gbe(KeyCode.UP===m0e),_0e.preventDefault())},S0e=function(){Bme.current=!1,jme.current=!1},P0e=function(){Hbe(!1),kme(!1),Bme.current=!1};return useLayoutUpdateEffect(function(){Lme.isInvalidate()||lbe(Lme,!1)},[$me]),useLayoutUpdateEffect(function(){var e0e=getMiniDecimal(dme);zme(e0e);var _0e=getMiniDecimal(Jme(Zme));(!e0e.equals(_0e)||!Bme.current||_me)&&lbe(e0e,Bme.current)},[dme]),useLayoutUpdateEffect(function(){_me&&_be()},[Zme]),reactExports.createElement("div",{className:cx$1(ame,nme,($P={},_defineProperty$7($P,"".concat(ame,"-focused"),Mme),_defineProperty$7($P,"".concat(ame,"-disabled"),ume),_defineProperty$7($P,"".concat(ame,"-readonly"),fme),_defineProperty$7($P,"".concat(ame,"-not-a-number"),Lme.isNaN()),_defineProperty$7($P,"".concat(ame,"-out-of-range"),!Lme.isInvalidate()&&!vbe(Lme)),$P)),style:rme,onFocus:function(){kme(!0)},onBlur:P0e,onKeyDown:p0e,onKeyUp:S0e,onCompositionStart:Mbe,onCompositionEnd:Kbe,onBeforeInput:d0e},vme&&reactExports.createElement(StepHandler,{prefixCls:ame,upNode:pme,downNode:hme,upDisabled:obe,downDisabled:hbe,onStep:Gbe}),reactExports.createElement("div",{className:"".concat(Rme,"-wrap")},reactExports.createElement("input",_extends$4C({autoComplete:"off",role:"spinbutton","aria-valuemin":ime,"aria-valuemax":ome,"aria-valuenow":Lme.isInvalidate()?null:Lme.toString(),step:sme},Ome,{ref:composeRef(Nme,eme),className:Rme,value:Zme,onChange:Qbe,disabled:ume,readOnly:fme}))))});InputNumber.displayName="InputNumber";var NumberInput=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.isBig=!1,tme.isBig=!!$P.big,tme.state={focused:!1},tme}return eme.prototype.componentDidUpdate=function($P){var tme=!!this.props.big;!!($P!=null&&$P.big)!==tme&&(this.isBig=tme)},eme.prototype.handleChange=function($P){var tme=this.props,ame=tme.min,nme=tme.max,rme=tme.step,ime=tme.resetValue,ome=tme.clearValueOnEmpty,lme=tme.onChange,sme=this.props,cme=sme.suffix,dme=sme.precision,ume=sme.showAsPercent;ume&&cme=="%"&&($P=$P/100,dme=(dme||0)+2);var fme=eme.normalizePrecision(dme,rme),pme=eme.normalizeValue($P,ame,nme,fme,ime,ome,this.isBig);lme==null||lme(pme)},eme.prototype.handleFocus=function($P){var tme=this.props.onFocus;this.setState({focused:!0}),tme&&tme($P)},eme.prototype.handleBlur=function($P){var tme=this.props.onBlur;this.setState({focused:!1}),tme&&tme($P)},eme.prototype.handleClick=function($P){$P.stopPropagation()},eme.prototype.handleEnhanceModeChange=function($P,tme){tme.stopPropagation();var ame=this.props,nme=ame.value,rme=ame.step,ime=rme===void 0?1:rme,ome=ame.disabled,lme=ame.readOnly,sme=ame.precision,cme=nme||0;if(!(ome||lme)&&!(isNaN(Number(ime))||!Number(ime))){var dme=getMiniDecimal(ime);$P!=="add"&&(dme=dme.negate());var ume=getMiniDecimal(cme).add(dme.toString()),fme=function(bme){return sme!=null&&sme>=0?sme:Math.max(getNumberPrecision(bme),getNumberPrecision(Number(ime)||1))},pme=function(bme,mme){var vme=bme,gme=vme.toString(),yme=fme(gme);return yme>=0&&(vme=getMiniDecimal(toFixed$1(gme,".",yme))),vme},hme=pme(ume);this.isBig?this.handleChange(hme.toString()):(cme=Number(hme.toString()),this.handleChange(cme))}},eme.prototype.renderBase=function(){var $P,tme=this.props,ame=tme.className,nme=tme.classPrefix,rme=tme.classnames,ime=tme.step,ome=tme.precision,lme=tme.disabled,sme=tme.placeholder,cme=tme.showSteps,dme=tme.formatter,ume=tme.suffix,fme=tme.showAsPercent,pme=tme.parser,hme=tme.borderMode,bme=tme.readOnly,mme=tme.displayMode,vme=tme.inputRef,gme=tme.keyboard,yme=tme.inputControlClassName,_me=tme.mobileUI,$me=tme.name,Cme=tme.testIdBuilder,Sme=this.props,Eme=Sme.value,xme=Sme.max,Tme=Sme.min;fme&&ume=="%"&&Eme&&(Eme=parseFloat((Number(Eme)*100).toFixed(ome)),xme=xme!=null?Math.round(Number(xme)*100):xme,Tme=Tme!=null?Math.round(Number(Tme)*100):Tme);var Ome={precision:eme.normalizePrecision(ome,ime)};return React__default.createElement(InputNumber,__assign$3({name:$me,className:rme(ame,cme===!1||bme?"no-steps":"",mme==="enhance"?"Number--enhance-input":yme,($P={},$P["Number--border".concat(ucFirst(hme))]=hme,$P),{"is-mobile":_me}),ref:vme,readOnly:bme,prefixCls:"".concat(nme,"Number"),value:Eme,step:ime,max:xme,min:Tme,formatter:dme,parser:pme,onChange:this.handleChange,disabled:lme,placeholder:sme,onFocus:this.handleFocus,onClick:this.handleClick,onBlur:this.handleBlur,stringMode:!!this.isBig,keyboard:gme},Ome,Cme==null?void 0:Cme.getTestId()))},eme.prototype.render=function(){var $P,tme=this,ame,nme=this.props,rme=nme.classnames,ime=nme.value,ome=nme.max,lme=nme.min,sme=nme.disabled,cme=nme.showSteps,dme=nme.borderMode,ume=nme.readOnly,fme=nme.displayMode,pme=nme.inputControlClassName;return nme.mobileUI,React__default.createElement(React__default.Fragment,null,fme==="enhance"?React__default.createElement("div",{className:rme("Number--enhance",sme?"Number--enhance-disabled":"",cme===!1?"Number--enhance-no-steps":"",($P={},$P["Number--enhance-border".concat(ucFirst(dme))]=dme,$P),pme,((ame=this.state)===null||ame===void 0?void 0:ame.focused)&&"focused")},React__default.createElement("div",{className:rme("Number--enhance-left-icon",ime&&ime===lme?"Number--enhance-border-min":"",sme?"Number--enhance-border-disabled":"",ume?"Number--enhance-border-readOnly":""),onClick:function(hme){return tme.handleEnhanceModeChange("subtract",hme)}},React__default.createElement(Icon$1,{icon:"minus",className:"icon",classNameProp:rme("InputNumber-enhance-minus icon"),iconContent:"InputNumber-enhance-minus"})),this.renderBase(),React__default.createElement("div",{className:rme("Number--enhance-right-icon",ime&&ime===ome?"Number--enhance-border-max":"",sme?"Number--enhance-border-disabled":"",ume?"Number--enhance-border-readOnly":""),onClick:function(hme){return tme.handleEnhanceModeChange("add",hme)}},React__default.createElement(Icon$1,{icon:"plus",className:"icon",classNameProp:rme("InputNumber-enhance-plus icon"),iconContent:"InputNumber-enhance-plus"}))):this.renderBase())},eme.defaultProps={step:1,readOnly:!1,borderMode:"full",resetValue:""},eme.normalizeValue=function($P,tme,ame,nme,rme,ime,ome){if(!isNumeric$1($P)){if(!isNumeric$1(rme))return ime?void 0:"";$P=rme}if(typeof $P=="number"&&(typeof tme=="number"&&($P=Math.max($P,tme)),typeof ame=="number"&&($P=Math.min($P,ame))),typeof $P=="string"){var lme=getMiniDecimal($P);if(typeof tme<"u"){var sme=getMiniDecimal(tme);lme.lessEquals(sme)&&($P=tme)}if(typeof ame<"u"){var cme=getMiniDecimal(ame);cme.lessEquals(lme)&&($P=ame)}}return!ome&&getNumberPrecision($P)!==nme&&($P=getMiniDecimal(toFixed$1(num2str($P),".",nme)).toNumber()),$P},eme.normalizeValue2=function($P,tme,ame){if(!isNumeric$1($P)){if(!isNumeric$1(tme))return ame?void 0:"";$P=tme}return $P},eme.normalizePrecision=function($P,tme){return typeof $P=="number"&&isInteger$1($P)&&$P>=0?Math.max($P,getNumberPrecision(tme??1)):tme!=null?Math.max(0,getNumberPrecision(tme)):0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnhanceModeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderBase",null),eme}(React__default.Component),NumberInput$1=themeable(NumberInput),ArrayInput=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.id=guid$1(),$P}return eme.prototype.handleItemOnChange=function($P,tme){var ame=this.props.onChange,nme=this.props.value,rme=Array.isArray(nme)?nme.concat():[];rme.splice($P,1,tme),ame==null||ame(rme)},eme.prototype.dragTipRef=function($P){!this.dragTip&&$P?this.initDragging():this.dragTip&&!$P&&this.destroyDragging(),this.dragTip=$P},eme.prototype.handleAdd=function(){var $P=this.props,tme=$P.value,ame=$P.onChange,nme=$P.itemInitalValue,rme=Array.isArray(tme)?tme.concat():[];rme.push(nme),ame==null||ame(rme)},eme.prototype.handleRemove=function($P){var tme=parseInt($P.currentTarget.getAttribute("data-index"),10),ame=this.props,nme=ame.value,rme=ame.onChange;ame.itemInitalValue;var ime=Array.isArray(nme)?nme.concat():[];ime.splice(tme,1),rme==null||rme(ime)},eme.prototype.initDragging=function(){var $P=this,tme=this.props.onChange,ame=this.props.classPrefix,nme=reactDomExports.findDOMNode(this);this.sortable=new Sortable$1(nme.querySelector(".drag-group"),{group:"array-input-".concat(this.id),animation:150,handle:".drag-bar",ghostClass:"".concat(ame,"ArrayInput-item--dragging"),onEnd:function(rme){if(rme.newIndex!==rme.oldIndex){var ime=rme.to;rme.oldIndex<ime.childNodes.length-1?ime.insertBefore(rme.item,ime.childNodes[rme.oldIndex>rme.newIndex?rme.oldIndex+1:rme.oldIndex]):ime.appendChild(rme.item);var ome=$P.props.value;if(Array.isArray(ome)){var lme=ome.concat();lme.splice(rme.newIndex,0,lme.splice(rme.oldIndex,1)[0]),tme==null||tme(lme)}}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.renderItem=function($P,tme,ame){var nme=this.props,rme=nme.itemRender,ime=nme.disabled,ome=nme.classnames,lme=nme.sortable,sme=nme.removable,cme=nme.minLength;return React__default.createElement("div",{className:ome("ArrayInput-item"),key:tme},lme&&ame.length>1&&!ime?React__default.createElement("a",{className:ome("ArrayInput-itemDrager drag-bar")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})):null,rme({value:$P,onChange:this.handleItemOnChange.bind(this,tme),index:tme,disabled:ime}),sme!==!1&&!ime&&(!cme||ame.length>cme)?React__default.createElement("a",{"data-index":tme,className:ome("ArrayInput-itemRemove"),onClick:this.handleRemove},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):null)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.value,rme=tme.placeholder,ime=tme.translate,ome=tme.maxLength,lme=tme.sortable,sme=tme.sortTip,cme=tme.disabled;return React__default.createElement("div",{className:ame("ArrayInput")},Array.isArray(nme)&&nme.length?React__default.createElement("div",{className:ame("ArrayInput-items drag-group")},nme.map(function(dme,ume){return $P.renderItem(dme,ume,nme)})):React__default.createElement("div",{className:ame("ArrayInput-placeholder")},ime(rme)),React__default.createElement("div",{className:ame("ArrayInput-toolbar",lme&&Array.isArray(nme)&&nme.length>1?"ArrayInput-toolbar--dnd":"")},!Array.isArray(nme)||!ome||nme.length<ome?React__default.createElement(Button$1,{className:ame("ArrayInput-addBtn"),onClick:this.handleAdd,level:"",disabled:cme},React__default.createElement(Icon$1,{icon:"plus",className:"icon"}),React__default.createElement("span",null,ime("add"))):null,lme&&Array.isArray(nme)&&nme.length?React__default.createElement("span",{className:ame("ArrayInput-sortTip"),ref:this.dragTipRef},Array.isArray(nme)&&nme.length>1?ime(sme):""):null))},eme.defaultProps={placeholder:"empty",itemRender:function($P){var tme=$P.value,ame=$P.onChange;return React__default.createElement(InputBox$1,{value:tme,onChange:ame})}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragTipRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleRemove",null),eme}(React__default.Component);themeable(localeable(uncontrollable(ArrayInput,{value:"onChange"})));function baseLodash$3(){}var _baseLodash=baseLodash$3,baseCreate$2=_baseCreate,baseLodash$2=_baseLodash,MAX_ARRAY_LENGTH=4294967295;function LazyWrapper$2(x_){this.__wrapped__=x_,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=MAX_ARRAY_LENGTH,this.__views__=[]}LazyWrapper$2.prototype=baseCreate$2(baseLodash$2.prototype);LazyWrapper$2.prototype.constructor=LazyWrapper$2;var _LazyWrapper=LazyWrapper$2,baseCreate$1=_baseCreate,baseLodash$1=_baseLodash;function LodashWrapper$2(x_,eme){this.__wrapped__=x_,this.__actions__=[],this.__chain__=!!eme,this.__index__=0,this.__values__=void 0}LodashWrapper$2.prototype=baseCreate$1(baseLodash$1.prototype);LodashWrapper$2.prototype.constructor=LodashWrapper$2;var _LodashWrapper=LodashWrapper$2,LazyWrapper$1=_LazyWrapper,LodashWrapper$1=_LodashWrapper,copyArray$1=_copyArray;function wrapperClone$1(x_){if(x_ instanceof LazyWrapper$1)return x_.clone();var eme=new LodashWrapper$1(x_.__wrapped__,x_.__chain__);return eme.__actions__=copyArray$1(x_.__actions__),eme.__index__=x_.__index__,eme.__values__=x_.__values__,eme}var _wrapperClone=wrapperClone$1,LazyWrapper=_LazyWrapper,LodashWrapper=_LodashWrapper,baseLodash=_baseLodash,isArray$5=isArray_1,isObjectLike$1=isObjectLike_1,wrapperClone=_wrapperClone,objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function lodash$2(x_){if(isObjectLike$1(x_)&&!isArray$5(x_)&&!(x_ instanceof LazyWrapper)){if(x_ instanceof LodashWrapper)return x_;if(hasOwnProperty$e.call(x_,"__wrapped__"))return wrapperClone(x_)}return new LodashWrapper(x_)}lodash$2.prototype=baseLodash.prototype;lodash$2.prototype.constructor=lodash$2;var wrapperLodash=lodash$2,lodash$1=wrapperLodash;function chain(x_){var eme=lodash$1(x_);return eme.__chain__=!0,eme}var chain_1=chain;const chain$1=getDefaultExportFromCjs(chain_1);var historyDefaultOptions={enable:!1,key:"amis:search_history",limit:5,dropdownClassName:""},SearchBox=function(x_){__extends$2(eme,x_);function eme(){var $P=this,tme;return $P=x_.apply(this,__spreadArray([],__read$3(arguments),!1))||this,$P.inputRef=React__default.createRef(),$P.state={isHistoryOpened:!1,isFocused:!1,inputValue:(tme=$P.props.value)!==null&&tme!==void 0?tme:"",historyRecords:$P.getHistoryRecords()},$P.lazyEmitSearch=debounce$6(function(){var ame,nme=$P.props.onSearch;nme==null||nme((ame=$P.state.inputValue)!==null&&ame!==void 0?ame:"")},250,{leading:!1,trailing:!0}),$P}return eme.prototype.componentDidUpdate=function($P){var tme;$P.value!==this.props.value&&this.setState({inputValue:(tme=this.props.value)!==null&&tme!==void 0?tme:""})},eme.prototype.componentWillUnmount=function(){this.lazyEmitSearch.cancel()},eme.prototype.handleActive=function(){var $P,tme=this.props.onActiveChange;tme==null||tme(!0),($P=this.inputRef.current)===null||$P===void 0||$P.focus()},eme.prototype.handleCancel=function(){var $P=this.props,tme=$P.onActiveChange,ame=$P.onCancel,nme=$P.onChange;tme==null||tme(!1),ame==null||ame(),this.setState({inputValue:""},function(){return nme==null?void 0:nme("")})},eme.prototype.handleChange=function($P){var tme=this,ame=this.props,nme=ame.searchImediately,rme=ame.onChange,ime=$P.currentTarget.value;this.setState({inputValue:ime},function(){rme==null||rme(ime),nme&&tme.lazyEmitSearch()})},eme.prototype.handleSearch=function(){var $P=this.props.onSearch,tme=this.state.inputValue,ame=this.getHistoryOptions().enable;ame&&(this.insertHistoryRecord(tme),this.setState({isFocused:!1,isHistoryOpened:!1})),$P==null||$P(tme||"")},eme.prototype.handleKeyDown=function($P){$P.key==="Enter"&&(this.handleSearch(),$P.preventDefault())},eme.prototype.handleClear=function(){var $P=this,tme=this.props,ame=tme.searchImediately,nme=tme.clearAndSubmit,rme=tme.onChange;this.setState({inputValue:""},function(){rme==null||rme(""),(nme===!0||ame)&&$P.lazyEmitSearch()})},eme.prototype.handleFocus=function(){var $P,tme,ame=this.getHistoryOptions().enable;this.setState({isFocused:!0,isHistoryOpened:ame}),(tme=($P=this.props).onFocus)===null||tme===void 0||tme.call($P)},eme.prototype.handleBlur=function($P){var tme,ame;this.setState({isFocused:!1,isHistoryOpened:!1}),(ame=(tme=this.props).onBlur)===null||ame===void 0||ame.call(tme)},eme.prototype.handleHistoryRecordSelect=function($P){var tme=this;this.setState({inputValue:$P.value,isHistoryOpened:!1,isFocused:!1},function(){return tme.handleSearch()})},eme.prototype.getHistoryOptions=function(){var $P,tme,ame=this.props.history,nme={enable:!!(ame!=null&&ame.enable),key:($P=ame==null?void 0:ame.key)!==null&&$P!==void 0?$P:historyDefaultOptions.key,limit:ame!=null&&ame.limit&&isInteger$1(ame==null?void 0:ame.limit)&&(ame==null?void 0:ame.limit)>0?ame==null?void 0:ame.limit:historyDefaultOptions.limit,dropdownClassName:(tme=ame==null?void 0:ame.dropdownClassName)!==null&&tme!==void 0?tme:""};return nme},eme.prototype.getHistoryRecords=function(){var $P=this.getHistoryOptions(),tme=$P.key,ame=$P.limit;try{var nme=localStorage.getItem(tme);return chain$1(nme?JSON.parse(nme):[]).uniqBy("value").orderBy(["timestamp"],["desc"]).slice(0,ame).value()}catch{}return[]},eme.prototype.clearHistoryRecords=function(){var $P=this.getHistoryOptions().key;return localStorage.removeItem($P),this.setState({historyRecords:[]}),[]},eme.prototype.removeHistoryRecord=function($P){var tme=this.getHistoryOptions().key,ame=this.getHistoryRecords(),nme=ame.findIndex(function(rme){return rme.value===$P.value});return~nme&&(ame.splice(nme,1),localStorage.setItem(tme,JSON.stringify(ame)),this.setState({historyRecords:ame})),ame},eme.prototype.insertHistoryRecord=function($P){var tme=this.getHistoryRecords();if(!$P||tme.find(function(ome){return ome.value===$P}))return tme;try{var ame=this.getHistoryOptions(),nme=ame.key,rme=ame.limit,ime=chain$1(__spreadArray(__spreadArray([],__read$3(tme),!1),[{value:$P,timestamp:hooks().unix()}],!1)).orderBy(["timestamp"],["desc"]).slice(0,rme).value();return localStorage.setItem(nme,JSON.stringify(ime)),this.setState({historyRecords:ime}),ime}catch{}return tme},eme.prototype.renderInput=function($P){var tme=this.props,ame=tme.classnames,nme=tme.classPrefix,rme=tme.active,ime=tme.name,ome=tme.className,lme=tme.style,sme=tme.disabled,cme=tme.placeholder,dme=tme.mini,ume=tme.enhance,fme=tme.clearable,pme=tme.mobileUI,hme=tme.translate,bme=tme.loading,mme=tme.loadingConfig,vme=tme.testIdBuilder,gme=this.state,yme=gme.isFocused,_me=gme.inputValue,$me=this.getHistoryOptions().enable;return React__default.createElement("div",__assign$3({className:ame("SearchBox",ume&&"SearchBox--enhance",$P?"":ome,sme?"is-disabled":"",yme?"is-focused":"",!dme||rme?"is-active":"",{"is-history":$me},{"is-mobile":pme}),style:lme},vme==null?void 0:vme.getTestId()),React__default.createElement(Input,{name:ime,ref:this.inputRef,disabled:sme,placeholder:hme(cme||"placeholder.enter"),value:_me??"",autoComplete:"off",onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,testIdBuilder:vme==null?void 0:vme.getChild("input")}),!dme&&fme&&_me&&!sme?React__default.createElement("div",__assign$3({className:ame("SearchBox-clearable"),onClick:this.handleClear},vme==null?void 0:vme.getChild("clear").getTestId()),React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,dme?rme?React__default.createElement("a",{className:ame("SearchBox-cancelBtn"),onClick:this.handleCancel},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement("a",{className:ame("SearchBox-activeBtn"),onClick:this.handleActive},React__default.createElement(Icon$1,{icon:"search",className:"icon"})):React__default.createElement("a",__assign$3({className:ame("SearchBox-searchBtn",{"SearchBox-searchBtn--loading":bme}),onClick:this.handleSearch},vme==null?void 0:vme.getChild("search").getTestId()),bme?React__default.createElement(Spinner$1,{classnames:ame,classPrefix:nme,className:ame("SearchBox-spinner"),spinnerClassName:ame("SearchBox-spinner-icon"),disabled:sme,size:"sm",icon:"loading-outline",loadingConfig:mme}):React__default.createElement(Icon$1,{icon:"search",className:"icon"})))},eme.prototype.renderTag=function($P,tme){var ame=this,nme=this.props.classnames;return React__default.createElement("span",{className:nme("Tag","SearchBox-history-tag"),key:tme},React__default.createElement("span",{className:nme("SearchBox-history-tag-text"),onMouseDown:function(rme){rme.preventDefault(),ame.handleHistoryRecordSelect($P)}},$P.value),React__default.createElement("span",{className:nme("SearchBox-history-tag-close"),onMouseDown:function(rme){rme.preventDefault(),ame.removeHistoryRecord($P)}},React__default.createElement(Icon$1,{icon:"close",className:"icon"})))},eme.prototype.renderHitoryMode=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.translate,rme=tme.className,ime=tme.style,ome=this.state,lme=ome.isHistoryOpened,sme=ome.inputValue,cme=ome.historyRecords,dme=this.getHistoryOptions().dropdownClassName,ume=lme&&!sme&&cme.length>0;return React__default.createElement("div",{id:"searchbox-history",className:ame("SearchBox-history",rme),style:ime},this.renderInput(!0),React__default.createElement("div",{className:ame("SearchBox-history-dropdown",dme,{"is-active":ume})},React__default.createElement("header",null,React__default.createElement("h4",null,nme("searchHistory")),React__default.createElement("a",{onMouseDown:function(fme){fme.preventDefault(),$P.clearHistoryRecords()}},nme("clear"))),React__default.createElement("div",{className:ame("SearchBox-history-content")},cme.map(function(fme,pme){return $P.renderTag(fme,pme)}))))},eme.prototype.render=function(){var $P=this.getHistoryOptions().enable;return $P?this.renderHitoryMode():this.renderInput()},eme.defaultProps={mini:!0,enhance:!1,clearable:!1,searchImediately:!0,history:historyDefaultOptions,clearAndSubmit:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleActive",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),eme}(React__default.Component),SearchBox$1=themeable(localeable(uncontrollable(SearchBox,{active:"onActiveChange",value:"onChange"}))),AnchorNavSectionComponent=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.contentRef=function(tme){return $P.contentDom=tme},$P}return eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.children,nme=$P.className,rme=$P.name;return React__default.createElement("div",{ref:this.contentRef,className:tme("AnchorNav-section",nme),"data-id":rme+""},ame)},eme}(React__default.PureComponent),AnchorNavSection=themeable(AnchorNavSectionComponent),AnchorNav=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.contentDom=React__default.createRef(),$P.sections=[],$P.fromSelect=!1,$P}return eme.prototype.componentDidMount=function(){var $P=this;this.observer=new IntersectionObserver(this.scrollToNav),this.sections.forEach(function(tme){$P.observer.observe(tme.element)}),this.props.active&&this.scrollToSection(this.props.active)},eme.prototype.componentWillUnmount=function(){this.observer.disconnect()},eme.prototype.scrollToNav=function($P){var tme=this;$P.forEach(function(nme){var rme=nme.target.getAttribute("data-id"),ime=tme.sections.find(function(ome){return ome.key===rme});ime&&(ime.isIntersecting=nme.isIntersecting)});var ame=this.sections.find(function(nme){return nme.isIntersecting});this.fromSelect?(this.fromSelectTimer&&clearTimeout(this.fromSelectTimer),this.fromSelectTimer=setTimeout(function(){tme.fromSelect=!1},300)):ame&&this.fireSelect(ame.key)},eme.prototype.scrollToSection=function($P){var tme,ame;this.fromSelect=!0;var nme=(tme=find$3(this.sections,function(rme){return rme.key===$P}))===null||tme===void 0?void 0:tme.element;(ame=nme==null?void 0:nme.scrollIntoView)===null||ame===void 0||ame.call(nme,{behavior:"smooth"})},eme.prototype.handleSelect=function($P){this.scrollToSection($P),this.fireSelect($P)},eme.prototype.fireSelect=function($P){var tme=this.props.onSelect;tme&&tme($P)},eme.prototype.renderLink=function($P,tme){var ame=this,nme;if($P){var rme=this.props,ime=rme.classnames,ome=rme.active,lme=$P.props,sme=lme.title,cme=lme.name,dme=ome===void 0&&tme===0?cme:ome,ume=((nme=$P.key)===null||nme===void 0?void 0:nme.split("-").length)>=2;return React__default.createElement("li",{className:ime("AnchorNav-link",ume?"AnchorNav-link-child":"",String(dme)===String(cme)?"is-active":""),key:$P.key,onClick:function(){return ame.handleSelect(cme)}},React__default.createElement("a",{title:sme},sme))}},eme.prototype.renderSection=function($P,tme){var ame=this;if($P){var nme=this.props,rme=nme.active,ime=nme.classnames,ome=$P.props.name,lme=$P.key,sme=rme===void 0&&tme===0?ome:rme;return React__default.cloneElement($P,__assign$3(__assign$3({},$P.props),{key:lme,classnames:ime,active:sme,ref:function(cme){cme&&!ame.sections.find(function(dme){return dme.key===ome})&&ame.sections.push({key:ome,element:cme.ref.contentDom})}}))}},eme.prototype.render=function(){var $P,tme=this,ame=this.props,nme=ame.classnames,rme=ame.className,ime=ame.style,ome=ame.linkClassName,lme=ame.sectionClassName,sme=ame.children,cme=ame.direction;return Array.isArray(sme)?React__default.createElement("div",{className:nme("AnchorNav",($P={},$P["AnchorNav--".concat(cme)]=cme,$P),rme),style:ime},React__default.createElement("ul",{className:nme("AnchorNav-link-wrap",ome),role:"anchorlist"},sme.map(function(dme,ume){return tme.renderLink(dme,ume)})),React__default.createElement("div",{className:nme("AnchorNav-section-wrap",lme),ref:this.contentDom},sme.map(function(dme,ume){return tme.renderSection(dme,ume)}))):null},eme.defaultProps={linkClassName:"",sectionClassName:"",direction:"vertical"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"scrollToNav",null),eme}(React__default.Component),ThemedAnchorNav=themeable(uncontrollable(AnchorNav,{active:"onSelect"})),TreeSelection=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={expanded:[]},$P}return eme.prototype.componentDidMount=function(){this.syncExpanded()},eme.prototype.componentDidUpdate=function($P){var tme=this.props;(tme.expand!==$P.expand||tme.options!==$P.options)&&this.syncExpanded()},eme.prototype.syncExpanded=function(){var $P=this.props.options,tme=this.props.expand,ame=[];Array.isArray($P)&&(tme==="first"||tme==="root"?$P.every(function(nme,rme){return Array.isArray(nme.children)?(ame.push("".concat(rme)),tme==="root"):!0}):tme==="all"&&everyTree($P,function(nme,rme,ime,ome,lme){return Array.isArray(nme.children)&&ame.push("".concat(lme.concat(rme).join("-"))),!0}),this.setState({expanded:ame}))},eme.prototype.toggleOption=function($P){var tme=this.props,ame=tme.value,nme=tme.onChange,rme=tme.option2value,ime=tme.options,ome=tme.onDeferLoad,lme=tme.disabled,sme=tme.multiple,cme=tme.clearable,dme=tme.valueField,ume=tme.deferField,fme=ume===void 0?"defer":ume;if(!(lme||$P.disabled)){if($P[fme]&&!$P.loaded){ome==null||ome($P);return}var pme=BaseSelection.value2array(ame,ime,rme,dme);if($P.value===void 0&&Array.isArray($P.children)&&$P.children.length&&sme){var hme=function(yme){return(Array.isArray(yme.children)&&yme.children.length?yme.children.some(hme):!1)||yme.value!==void 0&&~pme.indexOf(yme)},bme=$P.children.some(hme),mme=function(yme){if(Array.isArray(yme.children)&&yme.children.length&&yme.children.forEach(mme),yme.value!==void 0){var _me=pme.indexOf(yme);~_me&&pme.splice(_me,1),bme||pme.push(yme)}};$P.children.forEach(mme)}else{var vme=pme.indexOf($P);~vme&&(sme||cme)?pme.splice(vme,1):sme?pme.push($P):pme=[$P]}var gme=rme?pme.map(function(yme){return rme(yme)}):pme;nme&&nme(sme?gme:gme[0])}},eme.prototype.toggleCollapsed=function($P,tme){var ame=this.props,nme=ame.onDeferLoad,rme=ame.deferField,ime=rme===void 0?"defer":rme,ome=this.state.expanded.concat(),lme=ome.indexOf(tme);~lme?ome.splice(lme,1):ome.push(tme),this.setState({expanded:ome},$P[ime]&&nme?function(){return nme($P)}:void 0)},eme.prototype.renderItem=function($P,tme,ame){var nme=this;ame===void 0&&(ame=[]);var rme=this.props,ime=rme.labelClassName,ome=rme.disabled,lme=rme.classnames,sme=rme.itemClassName,cme=rme.itemRender,dme=rme.multiple,ume=rme.loadingConfig,fme=rme.deferField,pme=fme===void 0?"defer":fme,hme=ame.join("-"),bme=this.valueArray,mme=!1,vme=!1,gme=Array.isArray($P.children)&&$P.children.length;if($P.value===void 0&&gme){var yme=!0,_me=!1,$me=function(Sme){if(Array.isArray(Sme.children)&&Sme.children.length&&Sme.children.forEach($me),Sme.value!==void 0){var Eme=!!~bme.indexOf(Sme);Eme&&!_me?_me=!0:!Eme&&yme&&(yme=!1),vme=_me,mme=_me&&!yme}};$P.children.forEach($me)}else vme=!!~bme.indexOf($P);var Cme=!!~this.state.expanded.indexOf(hme);return React__default.createElement("div",{key:tme,className:lme("TreeSelection-item",ome||$P.disabled||$P[pme]&&$P.loading?"is-disabled":"",Cme?"is-expanded":"")},React__default.createElement("div",{className:lme("TreeSelection-itemInner",sme,$P.className,vme?"is-active":""),onClick:function(){return nme.toggleOption($P)}},gme||$P[pme]?React__default.createElement("a",{onClick:function(Sme){Sme.stopPropagation(),nme.toggleCollapsed($P,hme)},className:lme("Table-expandBtn",Cme?"is-active":"")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null,$P[pme]&&$P.loading?React__default.createElement(Spinner$1,{loadingConfig:ume,show:!0,size:"sm"}):null,dme&&(!$P[pme]||$P.loaded)?React__default.createElement(Checkbox$1$1,{size:"sm",checked:vme,partial:mme,disabled:ome||$P.disabled,labelClassName:ime,description:$P.description}):null,React__default.createElement("div",{className:lme("TreeSelection-itemLabel")},cme($P,{index:tme,multiple:dme,checked:vme,onChange:function(){return nme.toggleOption($P)},disabled:ome||$P.disabled,classnames:lme})),$P[pme]&&$P.loading?React__default.createElement(Spinner$1,{loadingConfig:ume,show:!0,size:"sm"}):null),gme?React__default.createElement("div",{className:lme("TreeSelection-sublist")},$P.children.map(function(Sme,Eme){return nme.renderItem(Sme,Eme,ame.concat(Eme))})):null)},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.value,rme=ame.options,ime=ame.className,ome=ame.placeholder,lme=ame.classnames,sme=ame.option2value,cme=ame.placeholderRender,dme=ame.valueField,ume=ame.translate;this.valueArray=BaseSelection.value2array(nme,rme,sme,dme);var fme=[];return Array.isArray(rme)&&rme.length&&(fme=rme.map(function(pme,hme){return $P.renderItem(pme,hme,[hme])})),React__default.createElement("div",{className:lme("TreeSelection",ime)},fme&&fme.length?fme:React__default.createElement("div",{className:lme("TreeSelection-placeholder")},(tme=cme==null?void 0:cme(this.props))!==null&&tme!==void 0?tme:ume(ome)))},eme.defaultProps=__assign$3(__assign$3({},BaseSelection.defaultProps),{expand:"first"}),eme}(BaseSelection),TreeSelection$1=themeable(localeable(uncontrollable(TreeSelection,{value:"onChange"}))),useOnScreen=function(x_){var eme=__read$3(reactExports.useState(!1),2),$P=eme[0],tme=eme[1];return reactExports.useEffect(function(){var ame=new IntersectionObserver(function(nme){var rme=__read$3(nme,1),ime=rme[0];tme(ime.isIntersecting)});return x_.current&&ame.observe(x_.current),function(){x_.current&&ame.unobserve(x_.current)}},[x_]),$P},defaultProps$2={successDuration:0,loadingDuration:0,direction:"down"},defaultHeaderHeight=28,PullRefresh=reactExports.forwardRef(function(x_,eme){var $P,tme,ame,nme,rme,ime,ome=x_.classnames,lme=x_.translate,sme=x_.children,cme=x_.successDuration,dme=x_.loadingDuration,ume=x_.direction,fme=x_.completed,pme={normalText:($P=x_.normalText)!==null&&$P!==void 0?$P:lme("pullRefresh.normalText"),pullingText:(tme=x_.pullingText)!==null&&tme!==void 0?tme:lme("pullRefresh.pullingText"),loosingText:(ame=x_.loosingText)!==null&&ame!==void 0?ame:lme("pullRefresh.loosingText"),loadingText:(nme=x_.loadingText)!==null&&nme!==void 0?nme:lme("pullRefresh.loadingText"),successText:(rme=x_.successText)!==null&&rme!==void 0?rme:lme("pullRefresh.successText"),completedText:(ime=x_.completedText)!==null&&ime!==void 0?ime:lme("pullRefresh.completedText")},hme=useTouch(),bme=React__default.useRef(null),mme=useOnScreen(bme);reactExports.useEffect(function(){x_.loading===!1&&Sme()},[x_.loading]);var vme=__read$3(useSetState({status:"normal",offsetY:0}),2),gme=vme[0],yme=vme[1],_me=function(){return!fme&&mme&&!x_.disabled&&gme.status!=="loading"&&gme.status!=="success"},$me=function(Ime){var Pme=defaultHeaderHeight;return Ime>Pme&&(Ime<Pme*2?Ime=Pme+(Ime-Pme)/2:Ime=Pme*1.5+(Ime-Pme*2)/4),Math.round(Ime)},Cme=function(Ime,Pme){var Mme=defaultHeaderHeight,kme="normal";Pme?kme="loading":Ime===0?kme="normal":Math.abs(Ime)<Mme?kme="pulling":kme="loosing",yme({offsetY:Ime,status:kme})},Sme=function(){if(!cme){Cme(0);return}yme({status:"success"}),setTimeout(function(){Cme(0)},cme)},Eme=function(Ime){Ime.stopPropagation(),_me()&&gme.offsetY===0&&(hme.start(Ime),yme({}))},xme=function(Ime){return Ime.stopPropagation(),_me()&&(hme.move(Ime),yme({}),hme.isVertical()&&(ume==="down"&&hme.deltaY>0?Cme($me(hme.deltaY)):ume==="up"&&hme.deltaY<0&&Cme(-1*$me(-1*hme.deltaY)))),!1},Tme=function(Ime){Ime.stopPropagation(),_me()&&gme.offsetY!==0&&(gme.status==="loosing"?(dme?Cme(defaultHeaderHeight,!0):Cme(0),x_.onRefresh&&x_.onRefresh()):Cme(0))},Ome=__assign$3({transform:"translate3d(0, ".concat(gme.offsetY,"px, 0)")},ume==="down"?{touchAction:"none"}:{}),Rme=function(Ime){return x_.loading?pme.loadingText:fme?pme.completedText:pme["".concat(Ime,"Text")]},Nme=function(Ime){return jsxs("div",{className:Ime,ref:bme,children:[gme.status==="loading"&&jsx(Icon$1,{icon:"loading-outline",className:"icon loading-icon"}),Rme(gme.status)]})};return jsx("div",{className:ome("PullRefresh"),onTouchStart:Eme,onTouchMove:xme,onTouchEnd:Tme,onTouchCancel:Tme,children:jsxs("div",{className:ome("PullRefresh-wrap"),style:Ome,children:[ume==="down"?Nme(ome("PullRefresh-header")):null,sme,ume==="up"?Nme(ome("PullRefresh-footer")):null]})})});PullRefresh.defaultProps=defaultProps$2;var PullRefresh$1=themeable(PullRefresh),arrayMap$3=_arrayMap,baseIntersection$1=_baseIntersection,baseRest$3=_baseRest,castArrayLikeObject$1=_castArrayLikeObject,intersection=baseRest$3(function(x_){var eme=arrayMap$3(x_,castArrayLikeObject$1);return eme.length&&eme[0]===x_[0]?baseIntersection$1(eme):[]}),intersection_1=intersection;const intersection$1=getDefaultExportFromCjs(intersection_1);var ItemActionsWrapper$2=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.classnames,rme=ame.children,ime=ame.dom;if(ime){var ome=(tme=($P=ime.closest("table"))===null||$P===void 0?void 0:$P.parentElement)===null||tme===void 0?void 0:tme.parentElement,lme=ime.getBoundingClientRect(),sme=lme.height,cme=lme.top-ome.getBoundingClientRect().top;return React__default.createElement("div",{className:nme("Table-itemActions-wrap"),style:{top:cme+"px",height:sme+"px"}},rme)}},eme}(React__default.PureComponent),zIndex=1,BodyCell=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P,tme=this.props,ame=tme.fixed,nme=tme.rowSpan,rme=tme.colSpan,ime=tme.children,ome=tme.className,lme=tme.column,sme=tme.style,cme=tme.depth,dme=tme.col,ume=tme.wrapperComponent,fme=tme.classnames,pme=tme.testIdBuilder;return React__default.createElement(ume,__assign$3({rowSpan:nme&&nme>1?nme:null,colSpan:rme&&rme>1?rme:null,className:fme("Table-cell",ome,($P={},$P[fme("Table-cell-fix-".concat(ame))]=ame,$P["text-".concat(lme==null?void 0:lme.align)]=lme==null?void 0:lme.align,$P)),style:__assign$3(ame?{position:"sticky",zIndex}:{},sme),"data-depth":cme||null,"data-col":dme},pme==null?void 0:pme.getTestId()),ime)},eme.defaultProps={fixed:"",wrapperComponent:"td",rowSpan:null,colSpan:null},eme}(React__default.PureComponent),baseFindIndex=_baseFindIndex,baseIteratee$6=_baseIteratee,toInteger=toInteger_1,nativeMax$2=Math.max,nativeMin$1=Math.min;function findLastIndex(x_,eme,$P){var tme=x_==null?0:x_.length;if(!tme)return-1;var ame=tme-1;return $P!==void 0&&(ame=toInteger($P),ame=$P<0?nativeMax$2(tme+ame,0):nativeMin$1(ame,tme-1)),baseFindIndex(x_,baseIteratee$6(eme),ame,!0)}var findLastIndex_1=findLastIndex;const findLastIndex$1=getDefaultExportFromCjs(findLastIndex_1);function checkChildrenRow(x_,eme){return x_[eme]&&Array.isArray(x_[eme])&&x_[eme].length>0}function getDataChildrenKeys(x_,eme,$P){var tme=[];return checkChildrenRow(x_,eme)&&x_[eme].forEach(function(ame){return tme=__spreadArray(__spreadArray(__spreadArray([],__read$3(tme),!1),__read$3(getDataChildrenKeys(ame,eme,$P)),!1),[ame[$P]],!1)}),tme}function getAllSelectableRows(x_,eme,$P,tme,ame,nme){var rme=[],ime=[];x_.forEach(function(sme){rme.push(sme[eme]),ime.push(sme),!tme&&checkChildrenRow(sme,$P)&&(rme=__spreadArray(__spreadArray([],__read$3(rme),!1),__read$3(getDataChildrenKeys(sme,$P,eme)),!1),sme[$P].forEach(function(cme){return ime.push(cme)}))});var ome=ame==null?void 0:ame.filter(function(sme){return!rme.includes(sme)});if(nme&&Number.isInteger(nme)&&ome.length+rme.length>nme){var lme=nme-ome.length;rme=rme.slice(0,lme),ime=ime.slice(0,lme)}return{rows:ime,rowKeys:rme,restSelectedKeys:ome}}function getRowsByKeys(x_,eme,$P,tme){var ame=[],nme=[];return x_.forEach(function(rme){if(eme.find(function(ome){return ome===rme[$P]})?ame.push(rme):nme.push(rme),checkChildrenRow(rme,tme)){var ime=getRowsByKeys(rme[tme],eme,$P,tme);ame=__spreadArray(__spreadArray([],__read$3(ame),!1),__read$3(ime.selectedRows),!1),nme=__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(ime.unSelectedRows),!1)}}),{selectedRows:ame,unSelectedRows:nme}}function getMaxLevelThRowSpan(x_){var eme=0;return Array.isArray(x_)&&x_.forEach(function($P){var tme=getThRowSpan($P);eme<tme&&(eme=tme)}),eme}function getThRowSpan(x_){return!x_.children||x_.children&&!x_.children.length?1:1+getMaxLevelThRowSpan(x_.children)}function getThColSpan(x_){if(!x_.children||x_.children&&!x_.children.length)return 1;var eme=0;return x_.children.forEach(function($P){return eme+=getThColSpan($P)}),eme}function buildColumns(x_,eme,$P,tme,ame,nme){x_===void 0&&(x_=[]),$P===void 0&&($P=[]),ame===void 0&&(ame=0),Array.isArray(x_)&&x_.forEach(function(rme){var ime=0;rme.children&&(ime=getMaxLevelThRowSpan(rme.children));var ome=__assign$3(__assign$3({},rme),{rowSpan:ime?1:tme-ame,colSpan:getThColSpan(rme),depth:ame}),lme=__assign$3({},rme);if(nme&&(ome.fixed=nme,lme.fixed=nme),eme[ame]||(eme[ame]=[]),eme[ame].push(ome),rme.children&&rme.children.length>0)buildColumns(rme.children,eme,$P,tme,ame+1,rme.fixed);else{lme.children;var sme=__rest$14(lme,["children"]);$P.push(sme)}})}function getBuildColumns(x_){var eme=x_.filter(function(ame){return!ame.breakpoint||!isBreakpoint(ame.breakpoint)}),$P=[],tme=[];return buildColumns(eme,$P,tme,getMaxLevelThRowSpan(eme)),{thColumns:$P,tdColumns:tme}}function isFixedLeftColumn(x_){return x_===!0||x_==="left"}function isFixedRightColumn(x_){return x_==="right"}function getPreviousLeftWidth(x_,eme,$P){for(var tme=0,ame=0;ame<eme;ame++)if($P&&$P[ame]&&isFixedLeftColumn($P[ame].fixed)){var nme=x_[ame];tme+=nme.offsetWidth}return tme}function getAfterRightWidth(x_,eme,$P){for(var tme=0,ame=x_.length-0;ame>eme;ame--)if($P&&$P[ame]&&isFixedRightColumn($P[ame].fixed)){var nme=x_[ame];nme&&(tme+=nme.offsetWidth)}return tme}function updateFixedRow(x_,eme,$P){for(var tme,ame,nme,rme=(x_==null?void 0:x_.children)||[],ime=0;ime<rme.length;ime++){var ome=rme[ime];ome.style.removeProperty("left"),ome.style.removeProperty("right");var lme=eme[ime]&&eme[ime].fixed||"";isFixedLeftColumn(lme)?ome.style.left=ime>0?getPreviousLeftWidth(rme,ime,eme)+"px":"0":isFixedRightColumn(lme)&&(ome.style.right=ime<rme.length-1?getAfterRightWidth(rme,ime,eme)+"px":"0"),ome.classList.remove($P("Table-cell-fix-left-last")),ome.classList.remove($P("Table-cell-fix-right-first")),ome.classList.remove($P("Table-cell-fix-right-first-prev"))}var sme=findLastIndex$1(eme,function(dme){return isFixedLeftColumn(dme.fixed)});sme>-1&&((tme=rme[sme])===null||tme===void 0||tme.classList.add($P("Table-cell-fix-left-last")));var cme=eme.findIndex(function(dme){return isFixedRightColumn(dme.fixed)});cme>-1&&((ame=rme[cme])===null||ame===void 0||ame.classList.add($P("Table-cell-fix-right-first")),cme>0&&((nme=rme[cme-1])===null||nme===void 0||nme.classList.add($P("Table-cell-fix-right-first-prev"))))}function hasFixedColumn(x_){return find$3(x_,function(eme){return eme.fixed})}function levelsSplit(x_){return x_?x_.split(",").map(function(eme){return+eme}):[]}function getSortData(x_,eme,$P,tme){var ame=x_.slice();if(!(tme!=null&&tme.orderBy))return ame;var nme=eme.find(function(ime){return ime.name===tme.orderBy});if(!nme||typeof nme.sorter!="function")return ame;var rme=tme.orderDir;return ame.sort(function(ime,ome){var lme=typeof nme.sorter=="function"?nme.sorter(ime,ome,rme):0;return lme!==0?rme==="asc"?lme:-lme:0}).map(function(ime){var ome,lme=ime[$P];return lme?__assign$3(__assign$3({},ime),(ome={},ome[$P]=getSortData(x_,eme,$P,tme),ome)):ime})}function ColGroup$2(x_){var eme=x_.columns,$P=x_.colWidths,tme=x_.isFixed,ame=x_.syncTableWidth,nme=x_.initTableWidth,rme=x_.selectable,ime=x_.expandable,ome=x_.draggable,lme=x_.rowSelectionColumnWidth,sme=x_.expandableColumnWidth,cme=x_.isRightExpandable,dme=x_.isLeftExpandable,ume=x_.showReal,fme=getBuildColumns(eme).tdColumns,pme=React__default.createRef();return React__default.useEffect(function(){pme.current&&(nme(),ame())},[]),React__default.useEffect(function(){var hme=pme.current.parentElement,bme=new MutationObserver(function(){ame()});return bme.observe(hme,{attributes:!0,childList:!0,subtree:!0}),function(){bme.disconnect()}},[]),React__default.createElement("colgroup",{ref:pme},ome?React__default.createElement("col",{style:{width:DefaultCellWidth+"px"}}):null,rme?React__default.createElement("col",{style:{width:lme+"px"}}):null,ime&&dme?React__default.createElement("col",{style:{width:sme+"px"}}):null,fme.map(function(hme,bme){var mme,vme={};return!((mme=$P[hme==null?void 0:hme.name])===null||mme===void 0)&&mme.width?vme.width=$P[hme==null?void 0:hme.name].width:hme.width?vme.width=hme.width:ume&&(vme.width=hme.realWidth),!tme&&vme.width&&(vme.minWidth=vme.width),React__default.createElement("col",{style:vme,key:bme})}),ime&&cme?React__default.createElement("col",{style:{width:sme+"px"}}):null)}var BodyRow=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.domRef=React__default.createRef(),$P}return eme.prototype.onExpand=function(){var $P=this.props,tme=$P.onExpand,ame=$P.data;tme&&tme([ame])},eme.prototype.onCollapse=function(){var $P=this.props,tme=$P.onCollapse,ame=$P.data;tme&&tme([ame])},eme.prototype.onMouseEnter=function($P,tme,ame){var nme=this.props.onMouseEnter;nme&&nme($P,tme,ame)},eme.prototype.onMouseLeave=function($P,tme,ame){var nme=this.props.onMouseLeave;nme&&nme($P,tme,ame)},eme.prototype.onClick=function($P,tme,ame){if(!isClickOnInput($P)){var nme=this.props.onClick;nme&&nme($P,tme,ame)}},eme.prototype.onDoubleClick=function($P,tme,ame){var nme=this.props.onDoubleClick;nme&&nme($P,tme,ame)},eme.prototype.getExpandedIcons=function(){var $P=this.props,tme=$P.classnames,ame=$P.isExpanded;return ame?React__default.createElement("i",{className:tme("Table-expandBtn","is-active"),onClick:this.onCollapse},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):React__default.createElement("i",{className:tme("Table-expandBtn"),onClick:this.onExpand},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))},eme.prototype.prependColumns=function($P){var tme=this.props,ame=tme.selectable,nme=tme.expandable,rme=tme.expandableFixed,ime=tme.draggable,ome=tme.rowSelectionFixed;ime?$P.unshift({}):(nme&&$P.unshift({fixed:rme}),ame&&$P.unshift({fixed:ome}))},eme.prototype.updateFixedRow=function(){var $P=this.props.classnames,tme=__spreadArray([],__read$3(this.tdColumns),!1);this.prependColumns(tme),hasFixedColumn(tme)&&updateFixedRow(this.domRef.current,tme,$P)},eme.prototype.componentDidMount=function(){this.updateFixedRow()},eme.prototype.componentDidUpdate=function(){this.updateFixedRow()},eme.prototype.onCheckChange=function($P){var tme=this.props.data;this.props.onChange&&this.props.onChange($P,tme),event&&event.stopPropagation()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.isChecked,rme=tme.selectable,ime=tme.expandable,ome=tme.draggable,lme=tme.indentSize,sme=tme.rowClassName,cme=tme.lineHeight,dme=tme.levels,ume=tme.columns,fme=tme.data,pme=tme.isExpandable,hme=tme.rowIndex,bme=tme.keyField,mme=tme.colCount,vme=tme.isRightExpandable,gme=tme.isLeftExpandable,yme=tme.classPrefix,_me=tme.rowSelectionFixed,$me=tme.rowSelectionType,Cme=tme.isExpandableRow,Sme=tme.hasChildrenRow,Eme=tme.hasChildrenChecked,xme=tme.expandedRowClassName,Tme=tme.expandedRowRender,Ome=tme.isExpanded;tme.childrenColumnName;var Rme=tme.expandableFixed;tme.onExpand,tme.onCollapse,tme.onMouseEnter,tme.onMouseLeave,tme.onClick,tme.onChange;var Nme=tme.testIdBuilder,Ime=__rest$14(tme,["classnames","isChecked","selectable","expandable","draggable","indentSize","rowClassName","lineHeight","levels","columns","data","isExpandable","rowIndex","keyField","colCount","isRightExpandable","isLeftExpandable","classPrefix","rowSelectionFixed","rowSelectionType","isExpandableRow","hasChildrenRow","hasChildrenChecked","expandedRowClassName","expandedRowRender","isExpanded","childrenColumnName","expandableFixed","onExpand","onCollapse","onMouseEnter","onMouseLeave","onClick","onChange","testIdBuilder"]),Pme=getBuildColumns(ume).tdColumns;this.tdColumns=Pme;var Mme=levelsSplit(dme).length,kme=dme.length>0?React__default.createElement("span",{className:ame("Table-row-indent","indent-level-".concat(Mme)),style:(dme==null?void 0:dme.length)>0?{width:lme*Mme+"px"}:{}}):null,Bme=Pme.map(function(Lme,zme){var Ume,Gme,Jme=Nme==null?void 0:Nme.getChild("cell-".concat(zme)),Yme=Lme.render&&typeof Lme.render=="function"?Lme.render(fme[Lme.name],fme,hme,zme,levelsSplit(dme)):null,Qme={rowSpan:1,colSpan:1},Xme=Yme;Yme&&!React__default.isValidElement(Yme)&&isObject$8(Yme)&&(Yme.props&&(Qme=Yme.props),Xme=Yme.children,Qme.rowSpan>1&&Cme&&Sme&&Qme.rowSpan);var Kme=typeof Lme.className=="function"?Lme.className(fme,hme):"";return Qme.rowSpan===0||Qme.colSpan===0?null:React__default.createElement(BodyCell,__assign$3({classnames:ame,classPrefix:yme,key:zme},Qme,{fixed:Lme.fixed===!0?"left":Lme.fixed,column:Lme,className:ame((Ume={},Ume["".concat(Kme)]=!!Kme,Ume)),col:zme>-1?zme.toString():void 0,testIdBuilder:Jme}),React__default.createElement("div",{className:ame("Table-cell-wrapper",(Gme={},Gme[ame("Table-cell-wrapper-prefix")]=zme===0&&(!!kme||dme.length===0&&Sme),Gme[ame("Table-cell-height-".concat(cme))]=!!cme,Gme))},zme===0&&dme.length>0?kme:null,zme===0&&Sme?$P.getExpandedIcons():null,Yme?Xme:fme[Lme.name]))}),Dme=sme&&typeof sme=="function"?sme(fme,hme):"",jme=!ome&&Cme&&Ome?React__default.createElement("tr",{key:"expandedRow",className:ame("Table-expanded-row",xme)},React__default.createElement(BodyCell,{key:"expanded",classnames:ame,classPrefix:yme,colSpan:Pme.length+mme},ime&&Tme&&typeof Tme=="function"?Tme(fme,hme):null)):null,Vme=$me==="radio",Wme=!ome&&pme?React__default.createElement(BodyCell,{key:"expandable",classnames:ame,classPrefix:yme,fixed:ime&&Rme?vme?"right":"left":"",className:ame("Table-cell-expand-icon-cell")},Cme||Sme?this.getExpandedIcons():null):null;return[React__default.createElement("tr",{ref:this.domRef,key:"".concat(fme[bme||"key"]||hme),"row-index":hme,"row-levels":dme,className:ame("Table-row","Table-row-level-".concat(Mme),Dme,{"Table-row-disabled":!!Ime.disabled}),onMouseEnter:function(Lme){return $P.onMouseEnter(Lme,fme,hme)},onMouseLeave:function(Lme){return $P.onMouseLeave(Lme,fme,hme)},onClick:function(Lme){return $P.onClick(Lme,fme,hme)},onDoubleClick:function(Lme){return $P.onDoubleClick(Lme,fme,hme)}},ome?React__default.createElement(BodyCell,{key:"drag",classPrefix:yme,classnames:ame,className:ame("Table-dragCell")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})):null,!ome&&rme?React__default.createElement(BodyCell,{key:"select",classPrefix:yme,classnames:ame,fixed:_me?"left":"",className:ame("Table-checkCell")},React__default.createElement(Checkbox$1$1,__assign$3({name:"Table-checkbox",type:$me||"checkbox",partial:!Vme&&Eme&&!nme,checked:Vme?nme:Eme||nme,onChange:this.onCheckChange},Ime))):null,gme?Wme:null,Bme,vme?Wme:null),jme]},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onExpand",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onCollapse",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"onCheckChange",null),eme}(React__default.PureComponent),LazyRow=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=$P.lazyRenderAfter,nme=$P.rowIndex;return tme.state={visible:nme+1<ame},tme}return eme.prototype.handleVisibleChange=function($P,tme){this.setState({visible:$P})},eme.prototype.render=function(){var $P=this,tme=this.state.visible,ame=this.props,nme=ame.columns,rme=ame.lazyRenderAfter,ime=ame.rowIndex,ome=ame.classnames,lme=getBuildColumns(nme).tdColumns;return React__default.createElement(InView,{onChange:this.handleVisibleChange,skip:ime+1<rme},function(sme){var cme=sme.ref;return tme?React__default.createElement(BodyRow,__assign$3({},$P.props)):React__default.createElement("tr",{ref:cme},lme.map(function(dme,ume){return React__default.createElement("td",{key:"empty-cell-".concat(ume)},React__default.createElement("div",{className:ome("Table-emptyBlock")}," "))}))})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleVisibleChange",null),eme}(React__default.PureComponent),HeadCellSort=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={orderDir:"",orderBy:""},tme}return eme.prototype.componentDidUpdate=function($P){var tme=this.props;(tme==null?void 0:tme.active)!==void 0&&!(tme!=null&&tme.active)&&tme.active!==($P==null?void 0:$P.active)&&this.setState({orderBy:"",orderDir:""})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.active,nme=tme.column,rme=tme.onSort,ime=tme.classnames,ome=tme.testIdBuilder;return React__default.createElement("span",__assign$3({className:ime("TableCell-sortBtn","aaa")},ome==null?void 0:ome.getTestId(),{onClick:function(){return __awaiter($P,void 0,void 0,function(){var lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return lme={orderBy:"",orderDir:""},nme.name===this.state.orderBy?this.state.orderDir==="desc"?lme={orderBy:"",orderDir:""}:lme={orderBy:nme.name,orderDir:"desc"}:lme={orderBy:nme.name,orderDir:"asc"},rme?[4,rme({orderBy:lme.orderBy,orderDir:lme.orderDir})]:[3,2];case 1:if(sme=cme.sent(),sme)return[2];cme.label=2;case 2:return this.setState(lme),[2]}})})}}),React__default.createElement("i",{className:ime("TableCell-sortBtn--down",ame&&this.state.orderDir==="desc"?"is-active":"")},React__default.createElement(Icon$1,{icon:"sort-desc",className:"icon",iconContent:"table-sort-down",testIdBuilder:ome==null?void 0:ome.getChild("desc")})),React__default.createElement("i",{className:ime("TableCell-sortBtn--up",ame&&this.state.orderDir==="asc"?"is-active":"")},React__default.createElement(Icon$1,{icon:"sort-asc",className:"icon",iconContent:"table-sort-up",testIdBuilder:ome==null?void 0:ome.getChild("asc")})),React__default.createElement("i",{className:ime("TableCell-sortBtn--default",ame?"":"is-active")},React__default.createElement(Icon$1,{icon:"sort-default",className:"icon",iconContent:"table-sort-default",testIdBuilder:ome==null?void 0:ome.getChild("default")})))},eme}(React__default.PureComponent),HeadCellSort$1=themeable(localeable(HeadCellSort)),HeadCellDropDown=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isOpened:!1},tme.openLayer=tme.openLayer.bind(tme),tme.closeLayer=tme.closeLayer.bind(tme),tme}return eme.prototype.render=function(){var $P=this,tme=this.state.isOpened,ame=this.props,nme=ame.popOverContainer,rme=ame.active,ime=ame.className,ome=ame.layerClassName,lme=ame.filterIcon,sme=ame.filterDropdown,cme=ame.classnames,dme=ame.classPrefix;return React__default.createElement("span",{className:cme(ime,rme?"is-active":"")},React__default.createElement("span",{onClick:this.openLayer},lme&&typeof lme=="function"?lme(rme):lme||null),tme?React__default.createElement(Overlay,{container:nme||function(){return reactDomExports.findDOMNode($P)},placement:"left-bottom-left-top right-bottom-right-top",target:nme?function(){return reactDomExports.findDOMNode($P).parentNode}:null,show:!0},React__default.createElement(PopOver$1,{classPrefix:dme,onHide:this.closeLayer,className:cme(ome),overlay:!0},sme&&typeof sme=="function"?sme(__assign$3(__assign$3({},this.props),{confirm:function(ume){ume&&ume.closeDropdown===!1||$P.closeLayer()}})):React__default.isValidElement(sme)?sme:null)):null)},eme.prototype.openLayer=function(){this.setState({isOpened:!0})},eme.prototype.closeLayer=function(){this.setState({isOpened:!1})},eme}(React__default.PureComponent),HeadCellDropDown$1=themeable(localeable(HeadCellDropDown)),HeadCellFilter=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={options:[],filteredValue:$P.filteredValue||[]},tme}return eme.prototype.alterOptions=function($P){var tme=this;return $P=$P.map(function(ame){return __assign$3(__assign$3({},ame),{selected:tme.state.filteredValue.indexOf(ame.value)>-1})}),$P},eme.prototype.componentDidMount=function(){var $P=this.props.column;$P.filters&&$P.filters.length>0&&this.setState({options:this.alterOptions($P.filters)})},eme.prototype.componentDidUpdate=function($P,tme){var ame=this.props.column;ame.filters&&ame.filters.length>0&&!isEqual$1(tme.filteredValue,this.state.filteredValue)&&this.setState({options:this.alterOptions(ame.filters)})},eme.prototype.render=function(){var $P=this,tme=this.state.options,ame=this.props,nme=ame.column,rme=ame.popOverContainer,ime=ame.classnames,ome=ame.classPrefix,lme=ame.testIdBuilder,sme={filterDropdown:function(cme){var dme=cme.setSelectedKeys;cme.selectedKeys;var ume=cme.confirm;return cme.clearFilters,tme&&tme.length>0?React__default.createElement("ul",{className:ime("DropDown-menu")},nme.filterMultiple?tme.map(function(fme,pme){return React__default.createElement("li",{key:pme},React__default.createElement(Checkbox$1$1,{classPrefix:ome,onChange:function(hme){return $P.handleCheck(ume,dme,hme?[fme.value]:fme.value)},checked:fme.selected,testIdBuilder:lme==null?void 0:lme.getChild("ckbx-".concat(pme))},fme.text))}):tme.map(function(fme,pme){return React__default.createElement("li",__assign$3({key:pme,className:ime({"is-active":fme.selected}),onClick:function(){return $P.handleClick(ume,dme,[fme.value])}},lme==null?void 0:lme.getChild("".concat(pme)).getTestId()),fme.text)}),nme.filterMultiple?React__default.createElement("li",{key:"dropDown-multiple-menu",className:ime("DropDown-multiple-menu")},React__default.createElement(Button$1,{size:"xs",level:"primary",onClick:function(){return $P.handleConfirmClick(ume)},testIdBuilder:lme==null?void 0:lme.getChild("btn-confirm")},"确定"),React__default.createElement(Button$1,{size:"xs",onClick:function(){return $P.handleCancelClick(ume,dme)},testIdBuilder:lme==null?void 0:lme.getChild("btn-cancel")},"取消")):null):null},setSelectedKeys:function(cme){return $P.setState({filteredValue:cme})}};return React__default.createElement(HeadCellDropDown$1,__assign$3({className:"".concat(ome,"TableCell-filterBtn"),layerClassName:"".concat(ome,"TableCell-filterPopOver"),filterIcon:React__default.createElement(Icon$1,{icon:"column-filter",className:"icon",iconContent:"table-filter-icon",testIdBuilder:lme==null?void 0:lme.getChild("icon")}),active:nme.filtered||tme&&tme.some(function(cme){return cme.selected}),popOverContainer:rme||function(){return reactDomExports.findDOMNode($P)},selectedKeys:this.state.filteredValue},sme))},eme.prototype.handleClick=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime;return __generator(this,function(ome){return nme=this.props,rme=nme.onFilter,ime=nme.column,tme&&tme(ame),rme&&rme({filterName:ime.name,filterValue:ame==null?void 0:ame.join(",")}),$P(),[2]})})},eme.prototype.handleCheck=function($P,tme,ame){var nme=this.state.filteredValue;Array.isArray(ame)?tme&&tme(__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(ame),!1)):tme&&tme(nme.filter(function(rme){return rme!==ame}))},eme.prototype.handleConfirmClick=function($P){var tme,ame=this.props,nme=ame.onFilter,rme=ame.column;nme&&nme((tme={},tme[rme.name]=this.state.filteredValue,tme)),$P()},eme.prototype.handleCancelClick=function($P,tme){var ame;tme&&tme([]);var nme=this.props,rme=nme.onFilter,ime=nme.column;rme&&rme((ame={},ame[ime.name]="",ame)),$P()},eme.defaultProps={filteredValue:[],filterMultiple:!1},eme}(React__default.PureComponent),HeadCellFilter$1=themeable(localeable(HeadCellFilter)),HeadCellSelect=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={key:""},tme}return eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.selections,nme=tme.keys,rme=tme.popOverContainer,ime=tme.classnames,ome=tme.classPrefix;return React__default.createElement(HeadCellDropDown$1,{className:"".concat(ome,"TableCell-selectionBtn"),layerClassName:"".concat(ome,"TableCell-selectionPopOver"),filterIcon:React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"}),active:!1,popOverContainer:rme||function(){return reactDomExports.findDOMNode($P)},filterDropdown:function(lme){var sme=lme.setSelectedKeys;lme.selectedKeys;var cme=lme.confirm;return lme.clearFilters,React__default.createElement("ul",{className:ime("DropDown-menu")},ame.map(function(dme,ume){return React__default.createElement("li",{key:ume,onClick:function(){dme.onSelect&&dme.onSelect(nme),$P.handleClick(cme,sme,dme.key)}},dme.text)}))},setSelectedKeys:function(lme){return $P.setState({key:lme})},selectedKeys:this.state.key})},eme.prototype.handleClick=function($P,tme,ame){tme&&tme(ame),$P()},eme.defaultProps={selections:[]},eme}(React__default.PureComponent),HeadCellSelect$1=themeable(localeable(HeadCellSelect)),Head=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.domRef=React__default.createRef(),$P}return eme.prototype.prependColumns=function($P){var tme=this.props,ame=tme.rowSelectionFixed,nme=tme.expandableFixed,rme=tme.draggable,ime=tme.selectable,ome=tme.expandable;ome&&$P.unshift({}),rme||ime?$P.unshift({}):(nme&&$P.unshift({fixed:nme}),ame&&$P.unshift({fixed:!0}))},eme.prototype.updateFixedRow=function(){for(var $P=this.props.classnames,tme=this.domRef.current,ame=tme==null?void 0:tme.children,nme=0;nme<((ame==null?void 0:ame.length)||0);nme++){var rme=__spreadArray([],__read$3(this.thColumns[nme]),!1);nme===0&&this.prependColumns(rme),hasFixedColumn(rme)&&updateFixedRow(ame==null?void 0:ame[nme],rme,$P)}},eme.prototype.componentDidMount=function(){this.updateFixedRow()},eme.prototype.componentDidUpdate=function(){this.updateFixedRow()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.dataSource,nme=tme.classnames,rme=tme.classPrefix,ime=tme.expandable,ome=tme.draggable,lme=tme.resizable,sme=tme.selectable,cme=tme.rowSelectionKeyField,dme=tme.isExpandable,ume=tme.childrenColumnName,fme=tme.selectedRowKeys,pme=tme.maxSelectedLength,hme=tme.rowSelectionFixed,bme=tme.rowSelectionType,mme=tme.popOverContainer,vme=tme.isRightExpandable,gme=tme.isLeftExpandable,yme=tme.orderBy,_me=tme.columns,$me=tme.selections,Cme=tme.expandableFixed,Sme=tme.onSort,Eme=tme.onSelectAll,xme=tme.onFilter,Tme=tme.onResizeMouseDown,Ome=tme.testIdBuilder,Rme=tme.className,Nme=getBuildColumns(_me),Ime=Nme.thColumns,Pme=Nme.tdColumns;this.thColumns=Ime,this.tdColumns=Pme;var Mme=0;this.thColumns.forEach(function(zme){zme.length>Mme&&(Mme=zme.length)});var kme=!ome&&dme?React__default.createElement(BodyCell,{key:"expandable",wrapperComponent:"th",rowSpan:_me.length,fixed:Cme?"left":"",className:nme("Table-row-expand-icon-cell"),classnames:nme,classPrefix:rme}):null,Bme=getAllSelectableRows(ame,cme,ume,ime,fme,pme),Dme=Bme.rows,jme=Bme.rowKeys,Vme=Bme.restSelectedKeys,Wme=fme.filter(function(zme){return jme.includes(zme)}),Lme=0;return React__default.createElement("thead",{ref:this.domRef,className:nme("Table-thead",Rme)},this.thColumns.map(function(zme,Ume){return React__default.createElement("tr",{key:"th-cell-"+Ume},ome&&Ume===0?React__default.createElement(BodyCell,{key:"drag-".concat(Ume),wrapperComponent:"th",rowSpan:$P.thColumns.length,className:nme("Table-dragCell"),col:"drag",classnames:nme,classPrefix:rme,testIdBuilder:Ome==null?void 0:Ome.getChild("drag-".concat(Ume))}):null,!ome&&sme&&Ume===0?React__default.createElement(BodyCell,{key:"select-".concat(Ume),wrapperComponent:"th",rowSpan:$P.thColumns.length,fixed:hme?"left":"",className:nme("Table-checkCell"),col:"select",classnames:nme,classPrefix:rme,testIdBuilder:Ome==null?void 0:Ome.getChild("select-".concat(Ume))},bme!=="radio"?[React__default.createElement(Checkbox$1$1,{key:"checkAll",partial:Wme.length>0&&Wme.length<jme.length,checked:Wme.length>0,onChange:function(Gme){return __awaiter($P,void 0,void 0,function(){var Jme,Yme;return __generator(this,function(Qme){return Jme=Gme?Dme:[],Yme=Gme?jme:[],Eme&&Eme(Gme,Yme,Jme,Vme),[2]})})}}),$me&&$me.length>0?React__default.createElement(HeadCellSelect$1,{key:"checkSelection",keys:jme,selections:$me,popOverContainer:mme}):null]:null):null,gme&&Ume===0?kme:null,zme.map(function(Gme,Jme){var Yme,Qme;Lme++;var Xme=null;Gme.sorter&&(Xme=React__default.createElement(HeadCellSort$1,{column:Gme,active:!!yme&&yme===(Gme==null?void 0:Gme.name),onSort:function(obe){Sme&&Sme(obe,Gme)},testIdBuilder:Ome==null?void 0:Ome.getChild("sort-".concat(Jme))}));var Kme=null;Gme.filterDropdown?Kme=Gme.filterDropdown:Gme.filters&&Gme.filters.length>0&&(Kme=React__default.createElement(HeadCellFilter$1,{column:Gme,popOverContainer:mme,onFilter:xme,testIdBuilder:Ome==null?void 0:Ome.getChild("filter-".concat(Jme))}));var Zme=!(!((Yme=Gme.children)===null||Yme===void 0)&&Yme.length),nbe=-1;Zme&&(nbe=$P.tdColumns.findIndex(function(obe){return obe.name===Gme.name}));var lbe=Gme.width,ibe=typeof lbe=="number"&&lbe>0,abe=!((Qme=Gme.children)===null||Qme===void 0)&&Qme.length?null:React__default.createElement(React__default.Fragment,null,Xme,Kme,lme?React__default.createElement("i",{className:nme("Table-thead-resizable",{"Table-thead-resizable--disabled":ibe}),onMouseDown:function(obe){ibe||Tme==null||Tme(obe,nbe)}}):null);return React__default.createElement(BodyCell,{key:"cell-".concat(Jme),wrapperComponent:"th",rowSpan:Gme.rowSpan,colSpan:Gme.colSpan,classnames:nme,classPrefix:rme,fixed:Gme.fixed===!0?"left":Gme.fixed,className:nme({"Table-cell-last":Lme===Mme}),depth:Gme.depth,col:String(Jme),testIdBuilder:Ome==null?void 0:Ome.getChild("cell-".concat(Jme))},typeof Gme.title=="function"?Gme.title(abe):Gme.title)}),vme&&Ume===0?kme:null)}))},eme}(React__default.PureComponent),SummaryRow=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.domRef=React__default.createRef(),$P}return eme.prototype.updateFixedRow=function(){var $P=this.props,tme=$P.classnames,ame=$P.row;if(ame&&hasFixedColumn(ame)){var nme=this.domRef.current;updateFixedRow(nme,ame||[],tme)}},eme.prototype.componentDidMount=function(){this.updateFixedRow()},eme.prototype.componentDidUpdate=function(){this.updateFixedRow()},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.dataSource,nme=$P.classPrefix,rme=$P.row,ime=$P.colCount,ome=$P.isRightExpandable,lme=$P.onMouseEnter,sme=$P.onMouseLeave,cme=[],dme=ome?1:0;return rme==null||rme.forEach(function(ume,fme){cme.push(React__default.createElement(BodyCell,{classnames:tme,classPrefix:nme,className:ume.cellClassName,key:"summary-cell-"+fme,fixed:ume.fixed,colSpan:cme.length===0?(ume.colSpan||1)+ime-dme:fme===rme.length-1?(ume.colSpan||1)+dme:ume.colSpan},typeof ume.render=="function"?ume.render(ame):ume.render))}),React__default.createElement("tr",{ref:this.domRef,onMouseEnter:function(ume){return lme&&lme(ume)},onMouseLeave:function(ume){return sme&&sme(ume)},className:tme("Table-summary-row")},cme)},eme}(React__default.PureComponent),SummaryRows=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.summary,ame=__rest$14($P,["summary"]),nme=[[]];return Array.isArray(tme)&&tme.forEach(function(rme){Array.isArray(rme)?nme.push(rme):nme[0].push(rme)}),nme.map(function(rme,ime){return React__default.createElement(SummaryRow,__assign$3({key:"summary-".concat(ime)},ame,{row:rme}))})},eme}(React__default.PureComponent),DefaultCellWidth=40,Table$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.tableDom=React__default.createRef(),tme.tbodyDom=React__default.createRef(),tme.contentDom=React__default.createRef(),tme.headerDom=React__default.createRef(),tme.footDom=React__default.createRef(),tme.containerDom=React__default.createRef(),tme.toDispose=[],tme.updateTableInfoLazy=debounce$6(tme.updateTableInfo.bind(tme),250,{trailing:!0,leading:!1}),tme.updateAutoFillHeightLazy=debounce$6(tme.updateAutoFillHeight.bind(tme),250,{trailing:!0,leading:!1}),tme.state={selectedRowKeys:$P.rowSelection?$P.rowSelection.selectedRowKeys.map(function(ame){return ame})||[]:[],expandedRowKeys:__spreadArray(__spreadArray([],__read$3($P.expandable?$P.expandable.expandedRowKeys||[]:[]),!1),__read$3($P.expandable?$P.expandable.defaultExpandedRowKeys||[]:[]),!1),colWidths:{},hoverRow:null},tme}return eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.componentDidMount=function(){var $P=this,tme,ame,nme,rme,ime;if((ame=(tme=this.props)===null||tme===void 0?void 0:tme.onRef)===null||ame===void 0||ame.call(tme,this),!this.props.loading){if(!((nme=this.headerDom)===null||nme===void 0)&&nme.current){var ome=[this.headerDom,this.footDom];ome.forEach(function(cme){return cme&&cme.current&&cme.current.addEventListener("wheel",$P.onWheel.bind($P))})}var lme=(rme=this.contentDom)===null||rme===void 0?void 0:rme.current;lme&&this.updateTableDom(lme),this.props.draggable&&(!((ime=this.tbodyDom)===null||ime===void 0)&&ime.current)&&this.initDragging(),this.updateStickyHeader();var sme=reactDomExports.findDOMNode(this);this.props.autoFillHeight&&(this.toDispose.push(resizeSensor(sme.parentElement,this.updateAutoFillHeightLazy,!1,"height")),this.updateAutoFillHeight()),this.toDispose.push(resizeSensor(sme,this.updateTableInfoLazy,!1,"width"))}},eme.prototype.componentDidUpdate=function($P,tme){var ame,nme,rme,ime;if(($P.autoFillHeight!==this.props.autoFillHeight||$P.loading!==this.props.loading&&this.props.autoFillHeight)&&this.updateAutoFillHeight(),!isEqual$1(tme.selectedRowKeys,this.state.selectedRowKeys)){var ome=this.getRowSelectionKeyField(),lme=this.getChildrenColumnName(),sme=getRowsByKeys(this.props.dataSource,this.state.selectedRowKeys,ome,lme),cme=this.props.rowSelection;cme&&cme.onChange&&cme.onChange(this.state.selectedRowKeys,sme.selectedRows)}if(isEqual$1((ame=$P.rowSelection)===null||ame===void 0?void 0:ame.selectedRowKeys,(nme=this.props.rowSelection)===null||nme===void 0?void 0:nme.selectedRowKeys)||this.props.rowSelection&&this.setState({selectedRowKeys:this.props.rowSelection.selectedRowKeys}),isEqual$1((rme=$P==null?void 0:$P.expandable)===null||rme===void 0?void 0:rme.expandedRowKeys,(ime=this.props.expandable)===null||ime===void 0?void 0:ime.expandedRowKeys)||this.props.expandable&&this.setState({expandedRowKeys:this.props.expandable.expandedRowKeys||[]}),!isEqual$1(tme.expandedRowKeys,this.state.expandedRowKeys)&&this.props.expandable){var lme=this.getChildrenColumnName(),dme=this.getExpandableKeyField(),ume=this.props.expandable.onExpandedRowsChange,fme=getRowsByKeys(this.props.dataSource,this.state.selectedRowKeys,dme,lme);ume&&ume(fme.selectedRows)}$P.sticky!==this.props.sticky&&this.updateStickyHeader(),$P.columns!==this.props.columns&&this.syncTableWidth()},eme.prototype.componentWillUnmount=function(){var $P=this,tme=[this.headerDom,this.footDom];tme.forEach(function(ame){return ame&&ame.current&&ame.current.removeEventListener("wheel",$P.onWheel.bind($P))}),this.destroyDragging(),this.toDispose.forEach(function(ame){return ame()}),this.toDispose=[],this.updateTableInfoLazy.cancel(),this.updateAutoFillHeightLazy.cancel()},eme.prototype.updateAutoFillHeight=function(){var $P=this.containerDom.current;if($P){$P.removeAttribute("style");var tme=this.props.autoFillHeight;if(tme){var ame=window.innerHeight,nme=offset($P).top,rme=getScrollParent($P.parentElement);rme&&rme!==document.body&&(ame=rme.clientHeight-1,nme=position($P,rme).top);for(var ime=0,ome=$P,lme=ome.parentElement;lme;){for(var sme=getStyleNumber(lme,"padding-bottom"),cme=getStyleNumber(lme,"border-bottom-width"),dme=0,ume=ome.nextElementSibling;ume;){var fme=getComputedStyle(ume).position;fme!=="absolute"&&fme!=="fixed"&&(dme+=ume.offsetHeight+getStyleNumber(ume,"margin-bottom")),ume=ume.nextElementSibling}var pme=getStyleNumber(ome,"margin-bottom");if(ime+=sme+cme+pme+dme,ome=lme,lme=ome.parentElement,rme&&rme!==document.body&&rme===ome)break}var hme=tme&&tme.maxHeight?"maxHeight":"height",bme=isObject$8(tme)?tme[hme]:0,mme=bme||Math.round(ame-nme-ime);mme>0&&($P.style[hme]="".concat(mme,"px"),$P.style.overflow="auto")}}},eme.prototype.initDragging=function(){var $P=this,tme,ame=this.props,nme=ame.classnames,rme=ame.onDrag;this.sortable=new Sortable$1((tme=this.tbodyDom)===null||tme===void 0?void 0:tme.current,{group:"table",animation:150,handle:".".concat(nme("Table-dragCell")),ghostClass:"is-dragging",onMove:function(ime){var ome=ime.dragged,lme=ime.related;if(lme&&lme.classList.contains("".concat(nme("Table-summary-row"))))return!1;var sme=ome.getAttribute("row-levels"),cme=lme.getAttribute("row-levels");return sme===cme},onEnd:function(ime){return __awaiter($P,void 0,void 0,function(){var ome,lme,sme,cme;return __generator(this,function(dme){if(ime.newIndex===ime.oldIndex)return[2];if(ome=ime.oldIndex,lme=ime.newIndex,sme=levelsSplit(ime.item.getAttribute("row-levels")),sme.length)for(cme=0;cme<sme.length;)ome=ome-sme[cme]-1,lme=lme-sme[cme]-1,cme++;return rme&&rme(ome,lme,sme),[2]})})}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy(),this.sortable=null},eme.prototype.updateStickyHeader=function(){var $P=this,tme,ame;if(this.props.sticky){var nme=(ame=(tme=this.headerDom)===null||tme===void 0?void 0:tme.current)===null||ame===void 0?void 0:ame.parentElement;setTimeout(function(){for(;nme&&window.getComputedStyle(nme,null).getPropertyValue("overflow")!=="auto";)nme=nme.parentElement;if(nme&&window.getComputedStyle(nme,null).getPropertyValue("overflow")==="auto"){var rme=window.getComputedStyle(nme,null).getPropertyValue("padding-top");rme&&$P.headerDom&&$P.headerDom.current&&($P.headerDom.current.style.top="-"+rme)}})}},eme.prototype.renderColGroup=function($P){var tme=this.props,ame=tme.scroll,nme=tme.tableLayout,rme=tme.columns,ime=tme.rowSelection,ome=tme.expandable,lme=tme.draggable,sme=!!(ame&&ame.x||nme==="fixed");return React__default.createElement(ColGroup$2,{columns:rme,colWidths:this.state.colWidths,isFixed:sme,syncTableWidth:this.syncTableWidth,initTableWidth:this.initTableWidth,selectable:!!ime,expandable:!!ome,draggable:!!lme,rowSelectionColumnWidth:(ime==null?void 0:ime.columnWidth)||DefaultCellWidth,expandableColumnWidth:(ome==null?void 0:ome.columnWidth)||DefaultCellWidth,isRightExpandable:this.isRightExpandable(),isLeftExpandable:this.isLeftExpandable(),showReal:$P})},eme.prototype.onResizeMouseDown=function($P,tme){this.resizeStart=$P.clientX,this.resizeTarget=$P.currentTarget;var ame=this.tdColumns[tme];this.resizeIndex=tme;var nme=this.state.colWidths[ame.name];this.resizeWidth=nme.width||nme.realWidth,this.resizeTarget.classList.add("is-resizing"),document.addEventListener("mousemove",this.onResizeMouseMove),document.addEventListener("mouseup",this.onResizeMouseUp),$P&&$P.stopPropagation()},eme.prototype.onResizeMouseMove=function($P){if(this.resizeTarget){var tme=$P.clientX-this.resizeStart,ame=this.tdColumns[this.resizeIndex],nme=0;tme>0?nme=this.resizeWidth+tme:nme=Math.max(this.resizeWidth+tme,DefaultCellWidth,ame.minWidth||0);var rme=this.state.colWidths;rme[ame.name].width=nme,this.setState({colWidths:__assign$3({},rme)})}$P&&$P.stopPropagation()},eme.prototype.onResizeMouseUp=function($P){this.resizeTarget.classList.remove("is-resizing"),document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),this.resizeStart=-1,this.resizeWidth=0,delete this.resizeTarget},eme.prototype.renderHead=function(){var $P=this,tme,ame=this.props,nme=ame.columns,rme=ame.classnames,ime=ame.classPrefix,ome=ame.expandable,lme=ame.rowSelection,sme=ame.draggable,cme=ame.resizable,dme=ame.dataSource,ume=ame.onSort,fme=ame.onSelectAll,pme=ame.onFilter,hme=ame.testIdBuilder,bme=ame.headerClassName,mme=this.getRowSelectionKeyField(),vme=lme&&lme.getCheckboxProps?filterTree(dme,function(gme,yme,_me){var $me=lme.getCheckboxProps(gme,yme);return!$me.disabled}):dme;return React__default.createElement(Head,{key:"thead",columns:nme,draggable:!!sme,selectable:!!lme,rowSelectionFixed:!!(lme!=null&&lme.fixed),rowSelectionType:lme==null?void 0:lme.type,selections:lme==null?void 0:lme.selections,rowSelectionKeyField:mme,maxSelectedLength:lme==null?void 0:lme.maxSelectedLength,isExpandable:this.isExpandableTable(),isRightExpandable:this.isRightExpandable(),isLeftExpandable:this.isLeftExpandable(),selectedRowKeys:this.state.selectedRowKeys,dataSource:vme,resizable:cme,expandable:!!ome,expandableFixed:ome==null?void 0:ome.fixed,childrenColumnName:this.getChildrenColumnName(),orderBy:(tme=this.state.sort)===null||tme===void 0?void 0:tme.orderBy,popOverContainer:this.getPopOverContainer,classnames:rme,className:bme,classPrefix:ime,onSort:function(gme,yme){$P.setState({sort:gme}),ume&&ume(gme)},onSelectAll:function(gme,yme,_me,$me){return __awaiter($P,void 0,void 0,function(){var Cme,Sme;return __generator(this,function(Eme){switch(Eme.label){case 0:return fme?[4,fme(_me,gme?yme:[],gme?[]:_me)]:[3,2];case 1:if(Cme=Eme.sent(),Cme)return[2];Eme.label=2;case 2:return Sme=__spreadArray(__spreadArray([],__read$3(yme),!1),__read$3($me),!1),isEqual$1(Sme,this.state.selectedRowKeys)||this.setState({selectedRowKeys:Sme}),[2]}})})},onFilter:pme,onResizeMouseDown:this.onResizeMouseDown.bind(this),testIdBuilder:hme==null?void 0:hme.getChild("head")})},eme.prototype.onRowClick=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return nme=this.props,rme=nme.rowSelection,ime=nme.onRow,ime&&ime.onRowClick?[4,ime.onRowClick($P,tme,ame)]:[3,2];case 1:if(ome=cme.sent(),ome)return[2];cme.label=2;case 2:return rme&&rme.type&&rme.rowClick&&(lme=this.getRowSelectionKeyField(),sme=!!find$3(this.state.selectedRowKeys,function(dme){return dme===tme[lme]}),this.selectedSingleRow(!sme,tme)),[2]}})})},eme.prototype.onRowDbClick=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return nme=this.props.onRow,nme&&nme.onRowDbClick?[4,nme.onRowDbClick($P,tme,ame)]:[3,2];case 1:if(rme=ime.sent(),rme===!1)return[2];ime.label=2;case 2:return[2]}})})},eme.prototype.onRowMouseEnter=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return nme=this.props,rme=nme.onRow,ime=nme.itemActions,rme&&rme.onRowMouseEnter?[4,rme.onRowMouseEnter($P,tme,ame)]:[3,2];case 1:if(ome=sme.sent(),ome)return[2];sme.label=2;case 2:return tme&&ime&&(lme=$P.target,(lme==null?void 0:lme.tagName)!=="TR"&&(lme=lme==null?void 0:lme.closest("tr")),this.setState({hoverRow:{target:lme,rowIndex:ame,record:tme}})),[2]}})})},eme.prototype.onRowMouseLeave=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme;return __generator(this,function(rme){return nme=this.props.onRow,nme&&nme.onRowMouseLeave&&nme.onRowMouseLeave($P,tme,ame),[2]})})},eme.prototype.onMouseLeave=function(){var $P=this.props.itemActions;$P&&this.setState({hoverRow:null})},eme.prototype.onExpandRows=function($P){var tme=this,ame=this.state.expandedRowKeys,nme=this.props.expandable,rme=$P.map(function(ime){return ime[tme.getExpandableKeyField()]});this.setState({expandedRowKeys:__spreadArray(__spreadArray([],__read$3(ame),!1),__read$3(rme),!1)}),nme!=null&&nme.onExpand&&(nme==null||nme.onExpand(!0,$P))},eme.prototype.onCollapseRows=function($P){var tme=this,ame=this.state.expandedRowKeys,nme=this.props.expandable,rme=$P.map(function(ime){return ime[tme.getExpandableKeyField()]});this.setState({expandedRowKeys:ame.filter(function(ime){return!rme.find(function(ome){return ome==ime})})}),nme!=null&&nme.onExpand&&(nme==null||nme.onExpand(!0,$P))},eme.prototype.getChildrenColumnName=function(){var $P=this.props.childrenColumnName;return $P||"children"},eme.prototype.getRowSelectionKeyField=function(){var $P=this.props,tme=$P.rowSelection,ame=$P.keyField;return(tme==null?void 0:tme.keyField)||ame||"key"},eme.prototype.getExpandableKeyField=function(){var $P=this.props,tme=$P.expandable,ame=$P.keyField;return(tme==null?void 0:tme.keyField)||ame||"key"},eme.prototype.hasCheckedChildrenRows=function($P){var tme=this.state.selectedRowKeys,ame=this.getChildrenColumnName(),nme=this.getRowSelectionKeyField(),rme=getDataChildrenKeys($P,ame,nme),ime=intersection$1(tme,rme).length;return ime>0},eme.prototype.getSelectedRowKeys=function($P,tme){var ame=this.props.rowSelection,nme=this.getRowSelectionKeyField(),rme=this.getChildrenColumnName(),ime=ame&&ame.type==="radio",ome=[];return $P?ime?ome=[tme[nme]]:ome=__spreadArray(__spreadArray(__spreadArray([],__read$3(this.state.selectedRowKeys),!1),[tme[nme]],!1),__read$3(getDataChildrenKeys(tme,rme,nme)),!1).filter(function(lme,sme,cme){return cme.indexOf(lme)===sme}):ime||(ome=this.state.selectedRowKeys.filter(function(lme){return!__spreadArray([tme[nme]],__read$3(getDataChildrenKeys(tme,rme,nme)),!1).includes(lme)})),ome},eme.prototype.selectedSingleRow=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ame=this.props,nme=ame.onSelect,rme=ame.dataSource,ime=this.getSelectedRowKeys($P,tme),nme?(ome=this.getRowSelectionKeyField(),lme=this.getChildrenColumnName(),sme=getRowsByKeys(rme,ime,ome,lme),[4,nme(sme.selectedRows,ime,sme.unSelectedRows)]):[3,2];case 1:if(cme=dme.sent(),cme)return[2];dme.label=2;case 2:return isEqual$1(this.state.selectedRowKeys,ime)||this.setState({selectedRowKeys:ime}),[2]}})})},eme.prototype.isExpandableRow=function($P,tme){var ame=this.props.expandable;return ame&&(!ame.rowExpandable||ame.rowExpandable&&ame.rowExpandable($P,tme))},eme.prototype.isExpanded=function($P){var tme=this.getExpandableKeyField();return!!find$3(this.state.expandedRowKeys,function(ame){return ame==$P[tme]})},eme.prototype.renderRow=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.rowSelection,ome=rme.expandable,lme=rme.indentSize,sme=rme.lineHeight,cme=rme.draggable,dme=rme.rowClassName,ume=rme.keyField,fme=rme.columns,pme=rme.lazyRenderAfter,hme=rme.classPrefix,bme=rme.classnames,mme=rme.testIdBuilder,vme=this.getRowSelectionKeyField(),gme=!!find$3(this.state.selectedRowKeys,function(Rme){return Rme===$P[vme]}),yme=mme==null?void 0:mme.getChild("row-".concat(tme)),_me=this.getChildrenColumnName(),$me=this.isExpandableRow($P,tme),Cme=checkChildrenRow($P,_me),Sme=!!ime&&Cme&&this.hasCheckedChildrenRows($P),Eme=ome&&ome.expandedRowClassName&&typeof ome.expandedRowClassName=="function"?ome.expandedRowClassName($P,tme):"",xme=this.isExpanded($P),Tme=ime&&ime.getCheckboxProps?ime.getCheckboxProps($P,tme):{},Ome=!ome&&_me&&Cme&&xme?$P[_me].map(function(Rme,Nme){return nme.renderRow(Rme,Nme,__spreadArray(__spreadArray([],__read$3(ame),!1),[tme],!1))}):null;return[React__default.createElement(LazyRow,__assign$3({key:"row-".concat(tme),data:$P,rowIndex:tme,levels:ame.join(","),columns:fme,selectable:!!ime,rowSelectionFixed:!!(ime!=null&&ime.fixed),rowSelectionType:(ime==null?void 0:ime.type)||"checkbox",expandable:!!ome,expandableFixed:ome==null?void 0:ome.fixed,expandedRowClassName:Eme,expandedRowRender:ome==null?void 0:ome.expandedRowRender,isExpanded:xme,hasChildrenRow:Cme,hasChildrenChecked:Sme,indentSize:lme,lineHeight:sme,draggable:!!cme,isExpandable:this.isExpandableTable(),isExpandableRow:$me,colCount:this.getExtraColumnCount(),isRightExpandable:this.isRightExpandable(),isLeftExpandable:this.isLeftExpandable(),isChecked:gme,rowClassName:dme,onExpand:this.onExpandRows,onCollapse:this.onCollapseRows,onMouseEnter:this.onRowMouseEnter,onMouseLeave:this.onRowMouseLeave,onClick:this.onRowClick,onDoubleClick:this.onRowDbClick,onChange:this.onRowChange,childrenColumnName:this.getChildrenColumnName(),keyField:ume,lazyRenderAfter:pme,classnames:bme,classPrefix:hme,testIdBuilder:yme},Tme)),Ome]},eme.prototype.onRowChange=function($P,tme){var ame=this.props.rowSelection;ame&&ame.rowClick||this.selectedSingleRow($P,tme)},eme.prototype.renderBody=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.headSummary,rme=tme.scroll,ime=tme.placeholder,ome=tme.sticky,lme=tme.loading,sme=tme.loadingConfig,cme=tme.classPrefix,dme=this.tdColumns,ume=rme&&rme.y,fme=this.getExtraColumnCount(),pme=this.getChildrenColumnName(),hme=getSortData(this.props.dataSource,dme,pme,this.state.sort);return React__default.createElement("tbody",{ref:this.tbodyDom,className:ame("Table-tbody")},!ume&&!ome&&nme?this.renderSummaryRow(nme):null,lme?React__default.createElement("tr",{className:ame("Table-row","Table-loading-row")},React__default.createElement(BodyCell,{classnames:ame,classPrefix:cme,colSpan:dme.length+fme},React__default.createElement("div",{className:ame("Table-loading")},typeof lme=="boolean"?React__default.createElement(Spinner$1,{overlay:!0,show:lme,loadingConfig:sme}):React__default.isValidElement(lme)?lme:null))):hme.length?hme.map(function(bme,mme){return $P.renderRow(bme,mme,[])}):React__default.createElement("tr",{className:ame("Table-row","Table-empty-row")},React__default.createElement(BodyCell,{classnames:ame,classPrefix:cme,colSpan:dme.length+fme},React__default.createElement("div",{className:ame("Table-empty")},typeof ime=="function"?ime():ime))))},eme.prototype.isExpandableTable=function(){var $P=this.props.expandable;return!!$P},eme.prototype.isRightExpandable=function(){var $P=this.props.expandable;return $P&&$P.position==="right"},eme.prototype.isLeftExpandable=function(){var $P=this.props.expandable;return $P&&(!$P.position||$P.position==="left")},eme.prototype.getExtraColumnCount=function(){var $P=this.props,tme=$P.draggable,ame=$P.rowSelection,nme=$P.expandable,rme=0;return tme?rme++:(this.isExpandableTable()&&(nme==null?void 0:nme.position)!=="none"&&rme++,ame&&rme++),rme},eme.prototype.renderSummaryRow=function($P){var tme=this.props,ame=tme.classnames,nme=tme.classPrefix,rme=tme.dataSource;return typeof $P=="function"?$P(rme):React__default.isValidElement($P)?$P:React__default.createElement(SummaryRows,{summary:$P,colCount:this.getExtraColumnCount(),isRightExpandable:this.isRightExpandable(),classnames:ame,classPrefix:nme,dataSource:rme,onMouseEnter:this.onRowMouseEnter,onMouseLeave:this.onRowMouseLeave})},eme.prototype.renderFoot=function(){var $P=this.props,tme=$P.classnames,ame=$P.footSummary;return React__default.createElement("tfoot",{className:tme("Table-summary")},this.renderSummaryRow(ame))},eme.prototype.updateTableDom=function($P){var tme=this.props.classnames,ame=$P.scrollLeft,nme=$P.scrollWidth,rme=$P.offsetWidth,ime=this.tableDom.current,ome=tme("Table-ping-left");ame>0?ime==null||ime.classList.add(ome):ime==null||ime.classList.remove(ome);var lme=tme("Table-ping-right");ame+rme<nme?ime==null||ime.classList.add(lme):ime==null||ime.classList.remove(lme)},eme.prototype.onTableContentScroll=function($P){this.updateTableDom($P.target)},eme.prototype.onWheel=function($P){var tme=$P,ame=tme.currentTarget,nme=tme.deltaX;nme&&(this.onTableScroll({target:ame,scrollLeft:ame.scrollLeft+nme}),$P.preventDefault())},eme.prototype.onTableScroll=function($P){var tme=[this.headerDom,this.contentDom,this.footDom],ame=$P.target,nme=$P.scrollLeft;tme.forEach(function(rme){var ime=rme&&rme.current;ime&&ime!==ame&&(ime.scrollLeft=nme||ame.scrollLeft)}),this.updateTableDom(ame)},eme.prototype.renderTable=function(){var $P=this.props,tme=$P.scroll,ame=$P.footSummary,nme=$P.showHeader,rme=$P.itemActions,ime=$P.tableLayout,ome=$P.classnames,lme=$P.bodyClassname,sme=tme&&tme.x,cme=this.state.hoverRow,dme=sme?{width:tme.x+"px",tableLayout:"fixed"}:{};return React__default.createElement("div",{ref:this.contentDom,className:ome("Table-content"),style:sme?{overflow:"auto hidden"}:{},onMouseLeave:this.onMouseLeave,onScroll:this.onTableContentScroll.bind(this)},rme&&cme?React__default.createElement(ItemActionsWrapper$2,{dom:cme.target,classnames:ome},typeof rme=="function"?rme(cme.record,cme.rowIndex):null):null,React__default.createElement("table",{style:__assign$3(__assign$3({},dme),{tableLayout:ime==="fixed"?"fixed":"auto"}),className:ome("Table-table",lme)},this.renderColGroup(),nme?this.renderHead():null,this.renderBody(),ame?this.renderFoot():null))},eme.prototype.renderScrollTableHeader=function(){var $P,tme=this.props,ame=tme.scroll,nme=tme.headSummary,rme=tme.sticky,ime=tme.showHeader,ome=tme.classnames,lme=tme.headerClassName,sme={overflow:"hidden"};rme&&Object.assign(sme,{top:0});var cme={};return ame&&(ame.y||ame.x)&&Object.assign(cme,{width:ame&&ame.x?typeof ame.x=="number"?ame.x+"px":ame.x:"100%"}),React__default.createElement("div",{ref:this.headerDom,className:ome("Table-header",($P={},$P[ome("Table-sticky-holder")]=!!rme,$P),lme),style:sme},React__default.createElement("table",{className:ome("Table-table"),style:__assign$3(__assign$3({},cme),{tableLayout:"fixed"})},this.renderColGroup(!0),ime?this.renderHead():null,nme?React__default.createElement("tbody",null,this.renderSummaryRow(nme)):null))},eme.prototype.renderScrollTableBody=function(){var $P=this.props,tme=$P.scroll,ame=$P.itemActions,nme=$P.classnames,rme=$P.bodyClassname,ime={},ome={};tme&&(tme.y||tme.x)&&(Object.assign(ime,{overflow:"auto scroll",maxHeight:tme.y}),Object.assign(ome,{width:tme&&tme.x?typeof tme.x=="number"?tme.x+"px":tme.x:"100%"}));var lme=this.state.hoverRow;return React__default.createElement("div",{ref:this.contentDom,className:nme("Table-body"),style:ime,onMouseLeave:this.onMouseLeave,onScroll:this.onTableScroll},ame&&lme?React__default.createElement(ItemActionsWrapper$2,{dom:lme.target,classnames:nme},typeof ame=="function"?ame(lme.record,lme.rowIndex):null):null,React__default.createElement("table",{className:nme("Table-table",rme),style:__assign$3(__assign$3({},ome),{tableLayout:"fixed"})},this.renderColGroup(),this.renderBody()))},eme.prototype.renderScrollTableFoot=function(){var $P=this.props,tme=$P.scroll,ame=$P.classnames;return React__default.createElement("div",{ref:this.footDom,className:ame("Table-summary"),style:{overflow:"hidden"}},React__default.createElement("table",{className:ame("Table-table"),style:{width:(tme==null?void 0:tme.x)+"px"||"100%",tableLayout:"fixed"}},this.renderFoot()))},eme.prototype.renderScrollTable=function(){var $P=this.props,tme=$P.footSummary,ame=$P.classnames;return React__default.createElement("div",{className:ame("Table-container"),ref:this.containerDom},this.renderScrollTableHeader(),this.renderScrollTableBody(),tme?this.renderScrollTableFoot():null)},eme.prototype.syncTableWidth=function(){var $P=this,tme=this.tbodyDom.current;if(tme){var ame=[].slice.call(tme==null?void 0:tme.querySelectorAll(":scope>tr>td[data-col]")),nme={};ame.forEach(function(rme){var ime=parseInt(rme.getAttribute("data-col"),10),ome=$P.tdColumns[ime],lme=$P.state.colWidths[ome.name];ome&&(nme[ome.name]={width:(lme==null?void 0:lme.originWidth)!==(ome==null?void 0:ome.width)?ome==null?void 0:ome.width:lme==null?void 0:lme.width,minWidth:ome==null?void 0:ome.minWidth,realWidth:rme.offsetWidth,originWidth:ome==null?void 0:ome.width})}),isEqual$1(nme,this.state.colWidths)||this.setState({colWidths:nme})}},eme.prototype.initTableWidth=function(){var $P=this,tme=this.contentDom.current;if(tme){var ame=this.props,nme=ame.scroll,rme=ame.tableLayout,ime=tme.querySelector("table"),ome=tme.querySelector("thead");ome||this.headerDom.current&&(ome=this.headerDom.current.querySelector("thead"));var lme=nme&&nme.x?nme.x:tme.offsetWidth,sme=null,cme=[],dme=rme==="fixed"||nme&&nme.x,ume=this.tdColumns.some(function(vme){return vme.width}),fme={};if(dme&&(sme=(ime==null?void 0:ime.querySelector(":scope>tbody"))||null,cme.push('<table style="table-layout:auto!important;width:0!important;min-width:0!important;" class="'.concat(ime==null?void 0:ime.className,'">').concat(ome==null?void 0:ome.outerHTML,"</table>"))),(ume||dme)&&cme.push('<table style="table-layout:auto!important;min-width:'.concat(lme,"px!important;width:").concat(lme,'px!important;" class="').concat(ime==null?void 0:ime.className,'">').concat(ome?ome.outerHTML:"").concat(sme?"<tbody>".concat(sme.innerHTML,"</tbody>"):"","</table>")),!!cme.length){var pme=document.createElement("div");pme.className="amis-scope",pme.style.cssText+="visibility: hidden!important;",pme.innerHTML=cme.join("");var hme=[],bme=[];dme&&(hme=[].slice.call(pme.querySelectorAll(":scope>table:first-child>thead>tr>th[data-col]"))),(ume||dme)&&(bme=[].slice.call(pme.querySelectorAll(":scope>table:last-child>thead>tr>th[data-col]"))),hme.forEach(function(vme){vme.style.cssText+="width: 0"}),bme.forEach(function(vme,gme){var yme=$P.tdColumns[gme];vme.style.cssText+="".concat(typeof(yme==null?void 0:yme.width)=="number"?"width: ".concat(yme==null?void 0:yme.width,"px;"):yme!=null&&yme.width?"width: ".concat(yme==null?void 0:yme.width,";"):"")}),document.body.appendChild(pme);var mme={};hme.forEach(function(vme){var gme=parseInt(vme.getAttribute("data-col"),10),yme=$P.tdColumns[gme];fme[gme]=vme.clientWidth,mme[gme]?mme[yme==null?void 0:yme.name].minWidth=vme.clientWidth:mme[yme==null?void 0:yme.name]={minWidth:vme.clientWidth}}),bme.forEach(function(vme){var gme=parseInt(vme.getAttribute("data-col"),10),yme=$P.tdColumns[gme];if(yme&&(yme.width||dme)){var _me=Math.max(typeof yme.width=="number"?yme.width:vme.clientWidth,fme[gme]||0);mme[yme==null?void 0:yme.name]?mme[yme==null?void 0:yme.name].width=_me:mme[yme==null?void 0:yme.name]={width:_me},yme.width&&(mme[yme==null?void 0:yme.name].originWidth=yme.width)}}),isEqual$1(mme,this.state.colWidths)||this.setState({colWidths:mme}),document.body.removeChild(pme)}}},eme.prototype.updateTableInfo=function(){this.resizeTarget||(this.syncTableWidth(),this.initTableWidth())},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.title,nme=tme.footer,rme=tme.className,ime=tme.scroll,ome=tme.size,lme=tme.bordered,sme=tme.resizable,cme=tme.columns,dme=tme.sticky,ume=tme.classnames,fme=getBuildColumns(cme),pme=fme.thColumns,hme=fme.tdColumns;this.thColumns=pme,this.tdColumns=hme;var bme=ime&&ime.y,mme=ime&&ime.x;return React__default.createElement("div",{ref:this.tableDom,className:ume("Table2",rme,($P={},$P[ume("Table-scroll-horizontal")]=mme,$P[ume("Table-".concat(ome))]=ome,$P[ume("Table-bordered")]=lme,$P[ume("Table-resizable")]=sme,$P))},ame?React__default.createElement("div",{className:ume("Table-title")},typeof ame=="function"?ame():ame):null,bme||dme?this.renderScrollTable():React__default.createElement("div",{className:ume("Table-container"),ref:this.containerDom},this.renderTable()),nme?React__default.createElement("div",{className:ume("Table-footer")},typeof nme=="function"?nme():nme):null)},eme.defaultProps={title:"",className:"",dataSource:[],columns:[],indentSize:15,placeholder:"暂无数据",showHeader:!0,tableLayout:"auto"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getPopOverContainer",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"updateAutoFillHeight",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onResizeMouseMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"onResizeMouseUp",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"onRowClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"onRowDbClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"onRowMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"onRowMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"onExpandRows",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"onCollapseRows",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"onRowChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onTableScroll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"syncTableWidth",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"initTableWidth",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"updateTableInfo",null),eme}(React__default.PureComponent),Table$1$1=themeable(localeable(Table$1));function ConfirmBox(x_){var eme=this,$P=x_.type,tme=x_.size,ame=x_.closeOnEsc,nme=x_.show,rme=x_.onCancel,ime=x_.title,ome=x_.showTitle,lme=x_.headerClassName,sme=x_.translate,cme=x_.children,dme=x_.showFooter,ume=x_.onConfirm,fme=x_.beforeConfirm,pme=x_.popOverContainer,hme=x_.position,bme=x_.resizable,mme=x_.classnames,vme=x_.className,gme=x_.bodyClassName,yme=x_.footerClassName,_me=x_.mobileUI,$me=x_.disabled,Cme=x_.testIdBuilder,Sme=x_.onEntered,Eme=x_.onExited,xme=__read$3(React__default.useState(),2),Tme=xme[0],Ome=xme[1],Rme=__read$3(React__default.useState(),2),Nme=Rme[0],Ime=Rme[1],Pme=React__default.useRef(),Mme=React__default.useRef(),kme=React__default.useCallback(function(){var Vme=Mme.current&&!Mme.current.nodeType?reactDomExports.findDOMNode(Mme.current):null;return Vme==null?void 0:Vme.parentElement},[]),Bme=React__default.useCallback(function(){return __awaiter(eme,void 0,void 0,function(){var Vme,Wme,Lme,zme,Ume;return __generator(this,function(Gme){switch(Gme.label){case 0:Ime(""),Ome(!0),Gme.label=1;case 1:return Gme.trys.push([1,7,8,9]),fme?[4,fme==null?void 0:fme(Pme.current)]:[3,3];case 2:return Wme=Gme.sent(),[3,5];case 3:return[4,(Ume=(zme=Pme.current)===null||zme===void 0?void 0:zme.submit)===null||Ume===void 0?void 0:Ume.call(zme)];case 4:Wme=Gme.sent(),Gme.label=5;case 5:return Vme=Wme,Vme===!1?[2]:typeof Vme=="string"?(Ime(Vme),[2]):[4,ume==null?void 0:ume(Vme)];case 6:return Gme.sent(),[3,9];case 7:return Lme=Gme.sent(),Ime(Lme.message),[3,9];case 8:return Ome(!1),setTimeout(function(){return Ime("")},5e3),[7];case 9:return[2]}})})},[ume,fme]);React__default.useEffect(function(){nme&&Ime("")},[nme]);function Dme(){return _me?React__default.createElement(PopUp$1,{isShow:nme,showConfirm:!0,onConfirm:Bme,onHide:rme,container:pme,onEntered:Sme,onExited:Eme},typeof cme=="function"?cme({bodyRef:Pme,loading:Tme,popOverContainer:kme,onConfirm:Bme}):cme):React__default.createElement(FinalModal,{size:tme,closeOnEsc:ame,show:nme,onHide:rme,container:pme,className:vme,onEntered:Sme,onExited:Eme},ome!==!1&&ime?React__default.createElement(FinalModal.Header,{onClose:rme,className:lme},ime):null,React__default.createElement(FinalModal.Body,{ref:Mme,className:gme},typeof cme=="function"?cme({bodyRef:Pme,loading:Tme,onConfirm:Bme,popOverContainer:kme}):cme),dme??!0?React__default.createElement(FinalModal.Footer,{className:yme},Tme||Nme?React__default.createElement("div",{className:mme("Dialog-info")},React__default.createElement(Spinner$1,{size:"sm",key:"info",show:Tme}),Nme?React__default.createElement("span",{className:mme("Dialog-error")},Nme):null):null,React__default.createElement(Button$1,{disabled:Tme,onClick:rme,testIdBuilder:Cme==null?void 0:Cme.getChild("cancel")},sme("cancel")),React__default.createElement(Button$1,{disabled:Tme||$me,onClick:Bme,level:"primary",testIdBuilder:Cme==null?void 0:Cme.getChild("confirm")},sme("confirm"))):null)}function jme(){return React__default.createElement(Drawer$1,{size:tme,closeOnEsc:ame,show:nme,onHide:rme,container:pme,position:hme,resizable:bme,showCloseButton:!1,className:vme},ome!==!1&&ime?React__default.createElement("div",{className:mme("Drawer-header",lme)},React__default.createElement("div",{className:mme("Drawer-title")},ime)):null,React__default.createElement("div",{ref:Mme,className:mme("Drawer-body",gme)},typeof cme=="function"?cme({bodyRef:Pme,loading:Tme,popOverContainer:kme,onConfirm:Bme}):cme),dme??!0?React__default.createElement("div",{className:mme("Drawer-footer",yme)},Tme||Nme?React__default.createElement("div",{className:mme("Drawer-info")},React__default.createElement(Spinner$1,{size:"sm",key:"info",show:Tme}),Nme?React__default.createElement("span",{className:mme("Drawer-error")},Nme):null):null,React__default.createElement(Button$1,{onClick:Bme,level:"primary"},sme("confirm")),React__default.createElement(Button$1,{onClick:rme},sme("cancel"))):null)}return $P==="drawer"?jme():Dme()}ConfirmBox.defaultProps={type:"dialog",position:"right"};var ConfirmBox$1=localeable(themeable(ConfirmBox)),PickerContainer=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isOpened:!1,value:$P.props.value},$P}return eme.prototype.componentDidUpdate=function($P){var tme=this.props;tme.value!==$P.value&&this.setState({value:tme.value})},eme.prototype.handleClick=function(){var $P,tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme=this;return __generator(this,function(ime){switch(ime.label){case 0:return nme=[{value:this.props.value}],[4,(tme=($P=this.props).onPickerOpen)===null||tme===void 0?void 0:tme.call($P,this.props)];case 1:return ame=__assign$3.apply(void 0,[__assign$3.apply(void 0,nme.concat([ime.sent()])),{isOpened:!0}]),this.setState(ame,function(){var ome,lme;return(lme=(ome=rme.props).onFocus)===null||lme===void 0?void 0:lme.call(ome)}),[2]}})})},eme.prototype.close=function($P,tme){var ame=this;this.setState({isOpened:!1},function(){var nme,rme,ime,ome;if((rme=(nme=ame.props).onClose)===null||rme===void 0||rme.call(nme),tme){tme();return}(ome=(ime=ame.props).onCancel)===null||ome===void 0||ome.call(ime)})},eme.prototype.handleChange=function($P){this.setState({value:$P})},eme.prototype.beforeConfirm=function($P){var tme,ame;return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return nme=this.props,rme=nme.onConfirm,ime=nme.beforeConfirm,ime?[4,ime==null?void 0:ime($P)]:[3,2];case 1:return lme=cme.sent(),[3,4];case 2:return[4,(tme=$P==null?void 0:$P.submit)===null||tme===void 0?void 0:tme.call($P)];case 3:lme=cme.sent(),cme.label=4;case 4:return ome=lme,sme={isOpened:!1},ome===!1?[2,!1]:(isObject$8(ome)&&(sme.value=ome),[4,rme==null?void 0:rme((ame=sme.value)!==null&&ame!==void 0?ame:this.state.value)]);case 5:return cme.sent(),this.setState(sme),[2]}})})},eme.prototype.updateState=function($P){$P===void 0&&($P={}),$P.isOpened;var tme=__rest$14($P,["isOpened"]);this.setState(__assign$3(__assign$3({},this.state),tme))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.children,nme=tme.bodyRender,rme=tme.title,ime=tme.showTitle,ome=tme.headerClassName,lme=tme.bodyClassName,sme=tme.className,cme=tme.translate,dme=tme.size,ume=tme.showFooter,fme=tme.closeOnEsc,pme=tme.popOverContainer,hme=tme.mobileUI,bme=tme.disabled,mme=tme.testIdBuilder;return React__default.createElement(React__default.Fragment,null,ame({isOpened:this.state.isOpened,onClick:this.handleClick,setState:this.updateState}),React__default.createElement(ConfirmBox$1,{type:"dialog",size:dme,closeOnEsc:fme,show:this.state.isOpened,onCancel:this.close,title:rme||cme("Select.placeholder"),showTitle:ime,headerClassName:ome,bodyClassName:lme,className:sme,showFooter:ume,beforeConfirm:this.beforeConfirm,popOverContainer:pme,mobileUI:hme,disabled:bme,testIdBuilder:mme==null?void 0:mme.getChild("confirm-box")},function(vme){var gme=vme.popOverContainer,yme=vme.loading,_me=vme.onConfirm,$me=vme.bodyRef;return nme==null?void 0:nme(__assign$3(__assign$3({},$P.state),{ref:$me,setState:$P.updateState,onClose:$P.close,onChange:$P.handleChange,onConfirm:_me,popOverContainer:gme,loading:yme}))}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"beforeConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateState",null),eme}(React__default.Component),PickerContainer$1=themeable(localeable(PickerContainer)),Badge=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.renderBadge=function($P,tme,ame,nme,rme,ime){var ome=this.props,lme=ome.classnames,sme=ome.badge,cme=ome.data,dme=sme,ume=dme.mode,fme=ume===void 0?"dot":ume,pme=dme.level,hme=pme===void 0?"danger":pme,bme=dme.style,mme=buildStyle(bme,cme);switch(typeof hme=="string"&&hme[0]==="$"&&(hme=resolveVariableAndFilter(hme,cme)),fme){case"dot":return React__default.createElement("span",{className:lme("Badge-dot","Badge--".concat(ame),"Badge--".concat(hme)),style:__assign$3(__assign$3(__assign$3({},nme),rme),mme)},ime);case"text":return React__default.createElement("span",{className:lme("Badge-text","Badge--".concat(ame),"Badge--".concat(hme)),style:__assign$3(__assign$3(__assign$3({},nme),rme),mme)},$P,ime);case"ribbon":var vme=tme*Math.sqrt(2)+5;return React__default.createElement("div",{className:lme("Badge-ribbon-out","Badge-ribbon-out--".concat(ame)),style:{width:vme,height:vme}},React__default.createElement("span",{className:lme("Badge-ribbon","Badge-ribbon--".concat(ame),"Badge--".concat(hme)),style:__assign$3(__assign$3({},rme),mme)},$P,ime));default:return null}},eme.prototype.render=function(){var $P=this.props.badge;if(!$P)return this.props.children;var tme=this.props,ame=tme.children,nme=tme.classnames,rme=tme.data,ime=!0;typeof $P=="string"&&(ime=evalExpression($P,rme)===!0);var ome=$P.mode,lme=ome===void 0?"dot":ome,sme=$P.text;$P.level;var cme=$P.size,dme=$P.style,ume=$P.offset,fme=$P.position,pme=fme===void 0?"top-right":fme,hme=$P.overflowCount,bme=hme===void 0?99:hme,mme=$P.visibleOn,vme=$P.className,gme=$P.animation;mme&&(ime=evalExpression(mme,rme)===!0),typeof sme=="string"&&sme[0]==="$"&&(sme=resolveVariableAndFilter(sme,rme)),typeof cme>"u"&&(lme==="dot"?cme=6:lme==="ribbon"?cme=12:cme=16);var yme={};lme==="text"&&(yme={borderRadius:cme/2,height:cme+2,lineHeight:cme+"px"},typeof bme=="number"&&(typeof sme=="number"||sme&&!isNaN(Number(sme)))&&(sme=sme>bme?"".concat(bme,"+"):sme),sme||(ime=!1)),lme==="dot"&&(yme={width:cme,height:cme}),lme==="ribbon"&&(yme={height:cme,lineHeight:cme+"px",fontSize:cme});var _me={};if(ume&&ume.length){var $me="calc(50% + ".concat(parseInt(ume[0],10),"px)"),Cme="calc(-50% + ".concat(parseInt(ume[1],10),"px)");_me={transform:"translate(".concat($me,", ").concat(Cme,")")}}var Sme="var(--danger)";dme&&dme.background&&(Sme=dme.background);var Eme=gme?React__default.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"1px solid ".concat(Sme),borderRadius:"50%",animation:"badgeDotAnimation 1.2s infinite ease-in-out"}}):null;return React__default.createElement("div",{className:nme("Badge",vme)},ame,ime?this.renderBadge(sme,cme,pme,_me,yme,Eme):null)},eme.propsList=["body","className","children"],eme}(React__default.Component);function withBadge(x_){var eme;return hoistNonReactStatics((eme=function($P){__extends$2(tme,$P);function tme(){return $P!==null&&$P.apply(this,arguments)||this}return tme.prototype.render=function(){var ame=this.props.badge;return ame?React__default.createElement(Badge,__assign$3({},this.props),React__default.createElement(x_,__assign$3({},this.props))):React__default.createElement(x_,__assign$3({},this.props))},tme}(React__default.Component),eme.displayName="WithBadge(".concat(x_.displayName||x_.name,")"),eme),x_)}var memberOpers=[{label:"取列值",value:"ARRAYMAP(${arr}, item => item.${member})",description:"取当前列的所有值（数组）"},{label:"取条件值",value:"ARRAYFILTER(ARRAYMAP(${arr}, item => item.${member}), item => item === 条件)",description:"取当前列中符合配置条件的值（数组）"},{label:"取表值",value:"ARRAYFILTER(${arr}, item => item.${member} === 条件)",description:"取列表中符合配置条件的值（数组）"},{label:"计数",value:"COUNT(ARRAYFILTER(${arr}, item => item.${member} === 条件))",description:"统计表中符合配置条件的值的总数"},{label:"去重计数",value:"COUNT(UNIQ(${arr}, item.${member}))",description:"对表中当前值进行去重，并统计去重后的值的数量",simple:!0},{label:"求和",value:"SUM(ARRAYMAP(${arr}, item => item.${member}))",description:"求当前列的所有值之和",simple:!0},{label:"平均值",value:"AVG(ARRAYMAP(${arr}, item => item.${member}))",description:"求当前列的平均值",simple:!0},{label:"最大值",value:"MAX(ARRAYMAP(${arr}, item => item.${member}))",description:"取当前列的最大值",simple:!0},{label:"最小值",value:"MIN(ARRAYMAP(${arr}, item => item.${member}))",description:"取当前列的最小值",simple:!0}];function VariableList(x_){var eme=React__default.useRef(null),$P=x_.className,tme=x_.classnames,ame=x_.tabsMode,nme=ame===void 0?"line":ame,rme=x_.classPrefix,ime=x_.itemClassName,ome=x_.selectMode,lme=x_.onSelect,sme=x_.placeholderRender,cme=x_.selfVariableName,dme=x_.expandTree,ume=x_.simplifyMemberOprs,fme=x_.popOverContainer,pme=__read$3(React__default.useState([]),2),hme=pme[0],bme=pme[1],mme=__read$3(React__default.useState([]),2),vme=mme[0],gme=mme[1],yme="".concat(rme,"FormulaEditor-VariableList");React__default.useEffect(function(){var xme=mapTree(x_.data,function(Tme,Ome,Rme,Nme){var Ime,Pme=Nme==null?void 0:Nme.reduce(function(Mme,kme){var Bme;return kme.value?"".concat(Mme).concat(Mme?".":"").concat((Bme=kme.label)!==null&&Bme!==void 0?Bme:kme.value):Mme},"");return __assign$3(__assign$3(__assign$3({},Tme),{path:"".concat(Pme).concat(Pme?".":"").concat(Tme.label)}),Tme.isMember||Nme.some(function(Mme){return Mme.isMember})?{memberDepth:(Ime=Nme==null?void 0:Nme.filter(function(Mme){return Mme.type==="array"}))===null||Ime===void 0?void 0:Ime.length}:{})});bme(xme),gme(xme)},[x_.data]);var _me=x_.itemRender&&typeof x_.itemRender=="function"?x_.itemRender:function(xme,Tme){var Ome;return React__default.createElement("div",{key:Tme.index},React__default.createElement("div",{className:tme("".concat(yme,"-item"),ime)},xme.label&&cme&&xme.value===cme&&React__default.createElement(Badge,{classnames:tme,badge:{mode:"text",text:"self",offset:[15,2]}},React__default.createElement("label",null,xme.label)),xme.memberDepth===void 0&&xme.label&&(!cme||xme.value!==cme)&&React__default.createElement(TooltipWrapper$1,{tooltip:(Ome=xme.description)!==null&&Ome!==void 0?Ome:xme.label,tooltipTheme:"dark"},React__default.createElement("label",null,xme.label)),xme.memberDepth!==void 0&&xme.label&&(!cme||xme.value!==cme)?xme.memberDepth<2?React__default.createElement(PopOverContainer,{popOverContainer:fme||function(){return document.querySelector(".".concat(tme("FormulaPicker-Modal")))},popOverRender:function(Rme){var Nme=Rme.onClose;return React__default.createElement("ul",{className:tme("".concat(yme,"-item-oper"))},memberOpers.filter(function(Ime){return!ume||Ime.simple}).map(function(Ime,Pme){return React__default.createElement(TooltipWrapper$1,{key:Pme,tooltip:Ime.description,tooltipTheme:"dark"},React__default.createElement("li",{key:Pme,onClick:function(){return $me(__assign$3(__assign$3({},Ime),{isMember:!0}),xme,Nme)}},React__default.createElement("span",null,Ime.label)))}))}},function(Rme){var Nme,Ime=Rme.onClick;return Rme.ref,Rme.isOpened,React__default.createElement(TooltipWrapper$1,{tooltip:(Nme=xme.description)!==null&&Nme!==void 0?Nme:xme.label,tooltipTheme:"dark"},React__default.createElement(React__default.Fragment,null,React__default.createElement("label",{onClick:Ime},xme.label),React__default.createElement(Icon$1,{onClick:Ime,icon:"ellipsis-v",className:"icon"})))}):React__default.createElement("label",null,xme.label):null,xme!=null&&xme.tag?React__default.createElement("span",{className:tme("".concat(yme,"-item-tag"))},xme.tag):null))};function $me(xme,Tme,Ome){var Rme=Tme.value.lastIndexOf("."),Nme=Tme.value.substring(0,Rme),Ime=Tme.value.substring(Rme+1),Pme=xme.value.replace("${arr}",Nme).replace("${member}",Ime);Ome==null||Ome(),lme==null||lme(__assign$3(__assign$3({},xme),{label:Pme,value:Pme}))}function Cme(xme){var Tme=filterTree(hme,function(Ome,Rme,Nme,Ime){return!!(Array.isArray(Ome.children)&&Ome.children.length||matchSorter([Ome].concat(Ime),xme,{keys:["label","value"],threshold:matchSorter.rankings.CONTAINS}).length)},1,!0);gme(xme?Tme:hme)}function Sme(){return React__default.createElement("div",{className:tme("FormulaEditor-VariableList-searchBox")},React__default.createElement(SearchBox$1,{mini:!1,onSearch:Cme,mobileUI:x_.mobileUI}))}function Eme(xme){xme.isMember||xme.memberDepth!==void 0||lme==null||lme(xme)}return React__default.createElement("div",{className:tme($P,"FormulaEditor-VariableList",ome&&"FormulaEditor-VariableList-".concat(ome)),ref:eme},ome==="tabs"?React__default.createElement(ThemedTabs,{tabsMode:nme,className:tme("".concat(yme,"-base ").concat(yme,"-tabs"))},vme.map(function(xme,Tme){return React__default.createElement(Tab$1,{className:tme("".concat(yme,"-tab")),eventKey:Tme,key:Tme,title:xme.label},React__default.createElement(VariableList,{classnames:tme,classPrefix:"".concat(yme,"-sub-"),className:tme("".concat(yme,"-sub")),itemRender:_me,placeholderRender:sme,selectMode:xme.selectMode,data:xme.children,onSelect:Eme,selfVariableName:cme}))})):ome==="tree"?React__default.createElement("div",{className:tme("FormulaEditor-VariableList-body")},Sme(),React__default.createElement(TreeSelection$1,{itemRender:_me,placeholderRender:sme,className:tme("".concat(yme,"-base"),"is-scrollable"),multiple:!1,expand:dme?"all":"none",options:vme,onChange:function(xme){return Eme(xme)}})):React__default.createElement("div",{className:tme("FormulaEditor-VariableList-body")},Sme(),React__default.createElement(GroupedSelection$1,{itemRender:_me,placeholderRender:sme,className:tme("".concat(yme,"-base"),"is-scrollable"),multiple:!1,options:vme,onChange:function(xme){return Eme(xme)}})))}var VariableList$1=themeable(VariableList),SchemaVariableList=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={variables:$P.schemasToVaraibles($P.props)},$P}return eme.prototype.componentDidUpdate=function($P){var tme=this.props;tme.schemas!==$P.schemas&&this.setState({variables:this.schemasToVaraibles(tme)})},eme.prototype.schemasToVaraibles=function($P){var tme,ame,nme=Array.isArray($P.schemas)?$P.schemas.concat():$P.schemas?[$P.schemas]:[],rme=new DataSchema(nme);return this.dataSchema=rme,(ame=(tme=this.props).beforeBuildVariables)===null||ame===void 0||ame.call(tme,rme),rme.getDataPropsAsOptions()},eme.prototype.handleSelect=function($P){var tme,ame=this.props.onSelect,nme=(tme=this.dataSchema)===null||tme===void 0?void 0:tme.getSchemaByPath($P.value);ame==null||ame($P.value,nme)},eme.prototype.itemRender=function($P){var tme=this.props,ame=tme.classnames,nme=tme.translate;return React__default.createElement("span",{className:ame("FormulaEditor-VariableList-item")},React__default.createElement("label",null,$P.label),React__default.createElement(TooltipWrapper$1,{tooltip:$P.description,tooltipTheme:"dark"},React__default.createElement("span",{className:ame("FormulaEditor-VariableList-item-tag")},nme("SchemaType.".concat($P.type||"any")))))},eme.prototype.render=function(){var $P=this.props,tme=$P.selectMode,ame=$P.value,nme=$P.placeholderRender;return React__default.createElement(VariableList$1,{data:this.state.variables,value:ame,onSelect:this.handleSelect,selectMode:tme||"tree",itemRender:this.itemRender,placeholderRender:nme})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"itemRender",null),eme}(React__default.Component),SchemaVariableList$1=localeable(themeable(SchemaVariableList)),SchemaVariableListPicker=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.translate,ame=$P.schemas,nme=$P.value,rme=$P.onConfirm,ime=$P.onCancel,ome=$P.children,lme=$P.title,sme=$P.selectMode,cme=$P.beforeBuildVariables,dme=$P.onPickerOpen,ume=$P.placeholderRender;return React__default.createElement(PickerContainer$1,{onPickerOpen:dme,title:lme??tme("Select.placeholder"),bodyRender:function(fme){var pme,hme=fme.value,bme=fme.onChange,mme=fme.schemas,vme=fme.isOpened;return vme?React__default.createElement(SchemaVariableList$1,{value:(pme=hme==null?void 0:hme.value)!==null&&pme!==void 0?pme:hme,onSelect:function(gme,yme){return bme({value:gme,schema:yme})},schemas:mme??ame,selectMode:sme,beforeBuildVariables:cme,placeholderRender:ume}):React__default.createElement(React__default.Fragment,null)},value:nme,onConfirm:rme,onCancel:ime},ome)},eme}(React__default.Component);localeable(themeable(SchemaVariableListPicker));function editorFactory$2(x_,eme,$P,tme){return registerLaunguageMode(eme),eme(x_,__assign$3({value:$P.value||"",autofocus:!1,mode:$P.evalMode?"text/formula":"text/formula-template",readOnly:$P.readOnly?"nocursor":!1},tme))}function traverseAst(x_,eme){if(!(!x_||!x_.type)){var $P=eme(x_);$P!==!1&&Object.keys(x_).forEach(function(tme){var ame=x_[tme];Array.isArray(ame)?ame.forEach(function(nme){return traverseAst(nme,eme)}):traverseAst(ame,eme)})}}var FormulaPlugin$1=function(){function x_(eme,$P){var tme=this;this.editor=eme,this.cm=$P,this.variables=[],this.functions=[],this.evalMode=!0,this.highlightMode="formula",this.disableAutoMark=!1,this.widgets=[],this.marks=[],this.autoMarkText=debounce$6(this.autoMarkText.bind(this),250,{leading:!1,trailing:!0}),eme.on("blur",function(){return tme.autoMarkText()})}return x_.prototype.setVariables=function(eme){this.variables=Array.isArray(eme)?eme:[]},x_.prototype.setFunctions=function(eme){this.functions=Array.isArray(eme)?eme:[]},x_.prototype.setEvalMode=function(eme){this.evalMode=eme},x_.prototype.setHighlightMode=function(eme){this.highlightMode=eme},x_.prototype.setDisableAutoMark=function(eme){this.disableAutoMark=eme,this.autoMarkText(!0)},x_.prototype.autoMarkText=function(eme){var $P;eme===void 0&&(eme=!1),(eme||!this.editor.hasFocus())&&(($P=this.editor)===null||$P===void 0||$P.getAllMarks().forEach(function(tme){return tme.clear()})),this.disableAutoMark||this.autoMark()},x_.prototype.computedBracesPosition=function(eme){var $P=[];return eme==null||eme.replace(/\$\{/g,function(tme,ame){if(tme)for(var nme=eme.slice(ame+tme.length).split(""),rme=["${"],ime=0;ime<nme.length;ime++){var ome=nme[ime];if(ome==="$"&&nme[ime+1]==="{"?rme.push("${"):ome==="}"&&rme.pop(),rme.length===0){$P.push({begin:ame+2,end:ime+ame+2});break}}return""}),$P},x_.prototype.checkStrIsInBraces=function(eme,$P){var tme=__read$3(eme,2),ame=tme[0],nme=tme[1],rme=!1;if($P.length)for(var ime=0;ime<$P.length;ime++){var ome=$P[ime];if(ame>=ome.begin&&nme<=ome.end){rme=!0;break}}return rme},x_.prototype.insertBraces=function(eme,$P){var tme=this.editor.getValue(),ame=this.computedBracesPosition(tme);this.checkStrIsInBraces([eme.ch,$P.ch],ame)||(this.editor.setCursor({line:eme.line,ch:eme.ch}),this.editor.replaceSelection("${"),this.editor.setCursor({line:$P.line,ch:$P.ch+2}),this.editor.replaceSelection("}"))},x_.prototype.insertContent=function(eme,$P){var tme=this.editor.getCursor(),ame=this.evalMode;if($P==="variable"){this.editor.replaceSelection(eme.key);var nme=this.editor.getCursor();!ame&&this.insertBraces(tme,nme)}else if($P==="func"){this.editor.replaceSelection("".concat(eme,"()"));var nme=this.editor.getCursor();this.editor.setCursor({line:nme.line,ch:nme.ch-1}),ame||(this.insertBraces(tme,nme),this.editor.setCursor({line:nme.line,ch:nme.ch+1}))}else typeof eme=="string"&&this.editor.replaceSelection(eme);this.editor.focus()},x_.prototype.setValue=function(eme){this.editor.setValue(eme)},x_.prototype.getValue=function(){return this.editor.getValue()},x_.prototype.markText=function(eme,$P,tme,ame,nme){ame===void 0&&(ame="cm-func");var rme=document.createElement("span");return rme.className=ame,rme.innerText=tme,nme&&(rme.setAttribute("data-tooltip",nme),rme.setAttribute("data-position","bottom")),this.editor.markText(eme,$P,{atomic:!0,replacedWith:rme})},x_.prototype.autoMark=function(){var eme=this,$P=this.editor,tme=$P.getValue(),ame=this.functions,nme=this.variables,rme=this.highlightMode;this.widgets.forEach(function(fme){return $P.removeLineWidget(fme)}),this.widgets=[],this.marks.forEach(function(fme){return fme.clear()}),this.marks=[];try{var ime=parse$2(tme,{evalMode:this.evalMode,variableMode:!1});traverseAst(ime,function(fme){var pme,hme;if(rme==="expression"){fme.type==="script"&&eme.markText({line:fme.start.line-1,ch:fme.start.column-1},{line:fme.end.line-1,ch:fme.end.column-1},tme.substring(fme.start.index+2,fme.end.index-1),"cm-expression",tme);return}if(fme.type==="func_call"){var bme=fme.identifier,mme=ame.some(function(Ome){return Ome.items.some(function(Rme){return Rme.name===bme})});mme&&eme.markText({line:fme.start.line-1,ch:fme.start.column-1},{line:fme.start.line-1,ch:fme.start.column+bme.length-1},bme,"cm-func")}else if(fme.type==="getter"){for(var vme=[fme],gme=fme;(gme==null?void 0:gme.type)==="getter";)gme=gme.host,vme.unshift(gme);var yme=vme.shift();if((yme==null?void 0:yme.type)==="variable"){var _me=findTree(nme,function(Ome){return Ome.value===yme.name});if(_me){eme.markText({line:yme.start.line-1,ch:yme.start.column-1},{line:yme.end.line-1,ch:yme.end.column-1},_me.label,"cm-field",yme.name);for(var $me=yme.name+".",Cme=_me.children||[],Sme=function(Ome,Rme){var Nme=(pme=vme[Ome])===null||pme===void 0?void 0:pme.key;if((Nme==null?void 0:Nme.type)==="identifier"){var Ime=(hme=findTree(Cme,function(Pme){return Pme.value===$me+Nme.name}))!==null&&hme!==void 0?hme:findTree(Cme,function(Pme){return Pme.value===Nme.name});if(Ime)eme.markText({line:Nme.start.line-1,ch:Nme.start.column-1},{line:Nme.end.line-1,ch:Nme.end.column-1},Ime.label,"cm-field",Nme.name),$me+=Nme.name+".",Cme=Ime.children||[];else return"break"}},Eme=0,xme=vme.length;Eme<xme;Eme++){var Tme=Sme(Eme,xme);if(Tme==="break")break}}}return!1}else if(fme.type==="variable"){var _me=findTree(nme,function(Rme){return Rme.value===fme.name});return _me&&eme.markText({line:fme.start.line-1,ch:fme.start.column-1},{line:fme.end.line-1,ch:fme.end.column-1},_me.label,"cm-field",fme.name),!1}})}catch(fme){var ome=/^Unexpected\stoken\s(.+)\sin\s(\d+):(\d+)$/.exec(fme.message);if(ome){var lme=ome[1],sme=parseInt(ome[2],10),cme=parseInt(ome[3],10),dme=document.createElement("div"),ume=dme.appendChild(document.createElement("span"));ume.innerText="!!",ume.className="lint-error-icon",dme.appendChild(document.createTextNode("Unexpected token `".concat(lme,"`"))),dme.className="lint-error",this.widgets.push($P.addLineWidget(sme-1,dme,{coverGutter:!1,noHScroll:!0})),this.marks.push(this.markText({line:sme-1,ch:cme-1},{line:sme-1,ch:cme+lme.length-1},lme,"cm-error-token"))}console.warn("synax error, ignore it")}},x_.prototype.focus=function(eme){this.editor.setCursor({line:0,ch:(eme==null?void 0:eme.length)||0})},x_.prototype.dispose=function(){this.autoMarkText.cancel()},x_.prototype.validate=function(){},x_}(),modeRegisted=!1;function registerLaunguageMode(x_){modeRegisted||(modeRegisted=!0,x_.defineMode("formula",function(eme,$P){var tme=x_.getMode(eme,"javascript");return!$P||!$P.base?tme:x_.multiplexingMode(x_.getMode(eme,$P.base),{open:"${",close:"}",mode:tme})}),x_.defineMIME("text/formula",{name:"formula"}),x_.defineMIME("text/formula-template",{name:"formula",base:"htmlmixed"}))}function FuncList(x_){var eme,$P=x_.title,tme=x_.className,ame=x_.classnames,nme=x_.bodyClassName,rme=x_.descClassName,ime=x_.mobileUI,ome=__read$3(React__default.useState(""),2),lme=ome[0],sme=ome[1],cme=__read$3(React__default.useState(x_.data),2),dme=cme[0],ume=cme[1],fme=__read$3(React__default.useState(null),2),pme=fme[0],hme=fme[1],bme=React__default.useCallback(function(mme){var vme=x_.data.map(function(gme){return __assign$3(__assign$3({},gme),{items:mme?gme.items.filter(function(yme){return~yme.name.indexOf(mme.toUpperCase())}):gme.items})}).filter(function(gme){return gme.items.length});ume(vme)},[x_.data]);return React__default.useEffect(function(){bme(lme)},[x_.data]),React__default.createElement("div",{className:ame("FormulaEditor-panel","left",tme)},React__default.createElement("div",{className:ame("FormulaEditor-FuncList",pme!=null&&pme.name?"withDoc":"")},React__default.createElement("div",{className:ame("FormulaEditor-panel-header")},$P),React__default.createElement("div",{className:ame("FormulaEditor-panel-body")},React__default.createElement("div",{className:ame("FormulaEditor-FuncList-searchBox")},React__default.createElement(SearchBox$1,{value:lme,onChange:sme,mini:!1,onSearch:bme,mobileUI:ime})),React__default.createElement("div",{className:ame("FormulaEditor-FuncList-body",nme)},React__default.createElement(CollapseGroup$1,{className:ame("FormulaEditor-FuncList-collapseGroup"),defaultActiveKey:(eme=dme[0])===null||eme===void 0?void 0:eme.groupName,expandIcon:React__default.createElement(Icon$1,{cx:ame,icon:"fa fa-chevron-right FormulaEditor-FuncList-expandIcon",className:"Icon"}),accordion:!0},dme.map(function(mme){return React__default.createElement(Collapse$1$1,{className:ame("FormulaEditor-FuncList-collapse"),headingClassName:ame("FormulaEditor-FuncList-groupTitle"),bodyClassName:ame("FormulaEditor-FuncList-groupBody"),propKey:mme.groupName,header:mme.groupName,key:mme.groupName},mme.items.map(function(vme){return React__default.createElement("div",{className:ame("FormulaEditor-FuncList-item",{"is-active":vme.name===(pme==null?void 0:pme.name)}),onMouseEnter:function(){return hme(vme)},onClick:function(){var gme;return(gme=x_.onSelect)===null||gme===void 0?void 0:gme.call(x_,vme)},key:vme.name},vme.name)}))}))))),pme!=null&&pme.name?React__default.createElement("div",{className:ame("FormulaEditor-FuncDoc")},React__default.createElement("div",{className:ame("FormulaEditor-panel-header")},(pme==null?void 0:pme.name)||""),React__default.createElement("div",{className:ame("FormulaEditor-panel-body")},React__default.createElement("div",{className:ame("FormulaEditor-FuncList-doc",rme)},pme?React__default.createElement(React__default.Fragment,null,Array.isArray(pme.params)?React__default.createElement("pre",null,React__default.createElement(TooltipWrapper$1,{placement:"top",tooltip:{children:function(){return React__default.createElement("table",{className:ame("FormulaEditor-FuncList-doc-example","Table-table")},React__default.createElement("thead",null,React__default.createElement("tr",null,["参数名称","类型","描述"].map(function(mme,vme){return React__default.createElement("th",{key:vme},mme)}))),React__default.createElement("tbody",null,pme.params.map(function(mme,vme){return React__default.createElement("tr",{key:vme},React__default.createElement("td",null,mme.name),React__default.createElement("td",null,mme.type),React__default.createElement("td",null,mme.description))})))}},trigger:"hover"},React__default.createElement("code",null,pme.example))):null,React__default.createElement("div",{className:ame("FormulaEditor-FuncList-doc-desc")},pme.description)):null))):null)}var FuncList$1=themeable(FuncList),CodeMirrorEditor=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.dom=React__default.createRef(),$P.toDispose=[],$P.unmounted=!1,$P}return eme.prototype.componentDidMount=function(){var $P,tme,ame,nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome=this;return __generator(this,function(lme){switch(lme.label){case 0:return[4,__vitePreload(()=>import("./codemirror-6RySw9bp.js").then(sme=>sme.c),__vite__mapDeps([2,3]))];case 1:return ime=lme.sent().default,[4,__vitePreload(()=>import("./javascript-BS6vv-xd.js").then(sme=>sme.j),__vite__mapDeps([4,3]))];case 2:return lme.sent(),[4,__vitePreload(()=>import("./htmlmixed-MX3Ck7D9.js").then(sme=>sme.h),__vite__mapDeps([5,3,4]))];case 3:return lme.sent(),[4,__vitePreload(()=>import("./simple-CYFXgNJN.js").then(sme=>sme.s),__vite__mapDeps([6,3]))];case 4:return lme.sent(),[4,__vitePreload(()=>import("./multiplex-Cq5OaIXI.js").then(sme=>sme.m),__vite__mapDeps([7,3]))];case 5:return lme.sent(),[4,__vitePreload(()=>import("./placeholder-CUlgbPkY.js").then(sme=>sme.p),__vite__mapDeps([8,3]))];case 6:return lme.sent(),this.unmounted?[2]:(this.dom.current.innerHTML="",this.editor=(ame=(tme=($P=this.props).editorFactory)===null||tme===void 0?void 0:tme.call($P,this.dom.current,ime,this.props))!==null&&ame!==void 0?ame:ime(this.dom.current,{value:this.props.value||"",readOnly:this.props.readOnly?"nocursor":!1,autofocus:!1}),(rme=(nme=this.props).editorDidMount)===null||rme===void 0||rme.call(nme,ime,this.editor),this.editor.on("change",this.handleChange),this.editor.on("blur",this.handleBlur),this.editor.on("focus",this.handleFocus),this.props.value&&this.setValue(this.props.value),this.toDispose.push(resizeSensor(this.dom.current,function(){var sme;return(sme=ome.editor)===null||sme===void 0?void 0:sme.refresh()})),setTimeout(function(){var sme;return(sme=ome.editor)===null||sme===void 0?void 0:sme.refresh()},350),this.toDispose.push(function(){var sme,cme;(cme=(sme=ome.props).editorWillUnMount)===null||cme===void 0||cme.call(sme,ime,ome.editor)}),[2])}})})},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props;ame.value!==$P.value&&this.editor&&this.setValue(ame.value),changedEffect(["readOnly"],$P,this.props,function(nme){var rme;(rme=tme.editor)===null||rme===void 0||rme.setOption("readOnly",nme.readOnly?"nocursor":!1)})},eme.prototype.componentWillUnmount=function(){var $P,tme,ame;this.unmounted=!0,($P=this.editor)===null||$P===void 0||$P.off("change",this.handleChange),(tme=this.editor)===null||tme===void 0||tme.off("blur",this.handleBlur),(ame=this.editor)===null||ame===void 0||ame.off("focus",this.handleFocus),this.toDispose.forEach(function(nme){return nme()}),this.toDispose=[]},eme.prototype.handleChange=function($P){var tme,ame;(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P.getValue())},eme.prototype.handleBlur=function($P){var tme,ame;(ame=(tme=this.props).onBlur)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.handleFocus=function($P){var tme,ame;(ame=(tme=this.props).onFocus)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.setValue=function($P){var tme=this.editor.getDoc();if($P!==tme.getValue()){var ame=tme.getCursor();tme.setValue($P||""),tme.setCursor(ame)}},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.style;return React__default.createElement("div",{className:tme,style:ame,ref:this.dom})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),eme}(React__default.Component);function CodeEditor(x_,eme){var $P=x_.classnames,tme=x_.className,ame=x_.value,nme=x_.onChange,rme=x_.editorDidMount,ime=x_.onFocus,ome=x_.onBlur,lme=x_.functions,sme=x_.variables,cme=x_.evalMode,dme=x_.singleLine,ume=x_.autoFocus,fme=x_.editorTheme,pme=x_.theme,hme=x_.editorOptions,bme=x_.placeholder,mme=x_.highlightMode,vme=React__default.useRef(),gme=React__default.useCallback(function(Eme,xme){var Tme=(fme??((pme||"").includes("dark")?"dark":"light"))==="dark"?"base16-dark":"idea",Ome=__assign$3({autoFocus:ume,indentUnit:2,lineNumbers:!0,lineWrapping:!0,theme:Tme,placeholder:bme},hme);return dme&&(Ome=__assign$3({lineNumbers:!1,indentWithTabs:!1,indentUnit:4,lineWrapping:!1,scrollbarStyle:null,theme:Tme,placeholder:bme},hme)),editorFactory$2(Eme,xme,x_,Ome)},[]),yme=__read$3(React__default.useState(x_.readOnly),2),_me=yme[0],$me=yme[1];React__default.useEffect(function(){return $me(x_.readOnly)},[x_.readOnly]),React__default.useEffect(function(){var Eme,xme;return(xme=(Eme=vme.current)===null||Eme===void 0?void 0:Eme.editor)===null||xme===void 0?void 0:xme.setOption("placeholder",bme)},[bme]);var Cme=React__default.useCallback(function(Eme,xme){var Tme=xme.origin==="+input"&&typeof xme.text=="object"&&xme.text.join("")==="";if(Tme)return xme.cancel();var Ome=xme.origin==="paste"&&typeof xme.text=="object"&&xme.text.length>1;if(Ome){var Rme=xme.text.join(" ");return xme.update(null,null,[Rme])}return null},[]),Sme=React__default.useCallback(function(Eme,xme){var Tme=vme.current=new FormulaPlugin$1(xme,Eme);if(Tme.setEvalMode(!!cme),Tme.setFunctions(lme||[]),Tme.setVariables(sme||[]),Tme.setHighlightMode(mme||"formula"),rme==null||rme(Eme,xme,Tme),Tme.autoMarkText(),dme){xme.on("beforeChange",Cme);var Ome=xme.getValue();Ome&&/[\n\r]/.test(Ome)&&($me(!0),xme.setValue(Ome.replace(/[\n\r]+/g,"")))}},[cme,lme,sme]);return React__default.useEffect(function(){return function(){var Eme,xme;(Eme=vme.current)===null||Eme===void 0||Eme.editor.off("beforeChange",Cme),(xme=vme.current)===null||xme===void 0||xme.dispose()}},[]),React__default.useImperativeHandle(eme,function(){return{insertContent:function(Eme,xme){var Tme;return(Tme=vme.current)===null||Tme===void 0?void 0:Tme.insertContent(Eme,xme)},setValue:function(Eme){var xme;return(xme=vme.current)===null||xme===void 0?void 0:xme.setValue(Eme)},getValue:function(){var Eme;return(Eme=vme.current)===null||Eme===void 0?void 0:Eme.getValue()},setDisableAutoMark:function(Eme){var xme;return(xme=vme.current)===null||xme===void 0?void 0:xme.setDisableAutoMark(Eme)}}}),React__default.useEffect(function(){var Eme=vme.current;Eme&&(Eme.setEvalMode(!!cme),Eme.setFunctions(lme||[]),Eme.setVariables(sme||[]),Eme.autoMarkText())},[cme,lme,sme,ame]),React__default.createElement(CodeMirrorEditor,{className:$P("FormulaCodeEditor",tme,dme?"FormulaCodeEditor--singleLine":""),value:ame,onChange:nme,editorFactory:gme,editorDidMount:Sme,onFocus:ime,onBlur:ome,readOnly:_me})}var CodeEditor$1=themeable(React__default.forwardRef(CodeEditor)),_a$2,collapseStyles=(_a$2={},_a$2[EXITED]="out",_a$2[EXITING]="out",_a$2[ENTERING]="in",_a$2),FormulaEditor=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={focused:!1,isCodeMode:!1,showRunPanel:!1,expandTree:!1,functions:tme.props.functions,runContext:`{
}`,runResult:"",runValid:!1},tme.unmounted=!1,tme.editor=React__default.createRef(),tme.runCode=debounce$6(tme.runCode.bind(tme),250,{leading:!1,trailing:!0}),tme}return eme.buildFunctions=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return[4,getFunctionsDoc()];case 1:return ame=ime.sent(),nme=Array.isArray($P)?$P:[],rme=__spreadArray(__spreadArray([],__read$3(ame),!1),__read$3(nme),!1),tme?[2,tme(rme)]:[2,rme]}})})},eme.replaceStrByIndex=function($P,tme,ame,nme){var rme=$P.slice(0,tme),ime=$P.slice(tme);return rme+ime.replace(ame,nme)},eme.getRegExpByMode=function($P,tme){var ame=$P?"\\b".concat(tme,"\\b"):"\\$\\{[^\\{\\}]*\\b".concat(tme,"\\b[^\\{\\}]*\\}");return new RegExp(ame)},eme.highlightValue=function($P,tme,ame,nme){if(ame===void 0&&(ame=!0),nme===void 0&&(nme=!0),!(!Array.isArray(tme)||!tme.length||!$P)){if(typeof $P!="string")try{$P=JSON.stringify($P)}catch{console.error("[amis][formula] given value is not a string"),$P=""}var rme={};eachTree$1(tme,function(cme){var dme;if(cme.value){var ume=cme.value;rme[ume]=(dme=cme.path)!==null&&dme!==void 0?dme:cme.label}});var ime=Object.keys(rme).filter(function(cme){return cme}).sort(function(cme,dme){return dme.length-cme.length}),ome=$P||"",lme="";lme=ome.replace(/([A-Z]+)\s*\(/g,function(cme,dme,ume){return cme==null?void 0:cme.replace(dme,'<span class="c-func">'.concat(dme,"</span>"))});var sme="AMIS_FORMULA_REPLACE_KEY";return ime.forEach(function(cme){for(var dme=0,ume=-1;~(ume=ome.indexOf(cme,dme));){var fme=eme.replaceStrByIndex(lme,ume,cme,sme),pme=eme.getRegExpByMode(ame,sme);pme.test(fme)?lme=fme.replace(sme,'<span class="c-field">'.concat(nme?cme:rme[cme],"</span>")):lme=fme.replace(sme,cme),dme=ume+cme.length}}),{html:lme}}},eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P;return __generator(this,function(tme){switch(tme.label){case 0:return this.state.functions?[3,2]:[4,eme.buildFunctions()];case 1:if($P=tme.sent(),this.unmounted)return[2];this.setState({functions:$P}),tme.label=2;case 2:return[2]}})})},eme.prototype.componentDidUpdate=function($P){$P.functions!==this.props.functions&&this.setState({functions:this.props.functions})},eme.prototype.componentWillUnmount=function(){this.unmounted=!0,this.runCode.cancel()},eme.prototype.handleFocus=function(){this.setState({focused:!0})},eme.prototype.handleBlur=function(){this.setState({focused:!1})},eme.prototype.getEditor=function(){for(var $P=this.editor.current;$P!=null&&$P.getWrappedInstance;)$P=$P.getWrappedInstance();return $P},eme.prototype.insertValue=function($P,tme){var ame;(ame=this.getEditor())===null||ame===void 0||ame.insertContent($P,tme)},eme.prototype.validate=function(){var $P=this.props.value;try{$P&&parse$2($P,{evalMode:this.props.evalMode})}catch(tme){return tme.message}},eme.prototype.handleFunctionSelect=function($P){var tme;(tme=this.getEditor())===null||tme===void 0||tme.insertContent("".concat($P.name),"func")},eme.prototype.handleVariableSelect=function($P){var tme,ame=this.props.selfVariableName;if($P&&$P.value&&ame&&ame===$P.value){toast.warning("不能使用当前变量[self]，避免循环引用。");return}$P.value&&((tme=this.getEditor())===null||tme===void 0||tme.insertContent($P.isMember?$P.value:{key:$P.value,name:$P.label,path:$P.path},$P.isMember?void 0:"variable","cm-field",!this.state.isCodeMode))},eme.prototype.handleOnChange=function($P){var tme=this.props.onChange;tme==null||tme($P),this.runCode()},eme.prototype.editorFactory=function($P,tme){var ame=this.props;ame.editorOptions;var nme=__rest$14(ame,["editorOptions"]);return editorFactory$2($P,tme,nme,{lineWrapping:!0,autoFocus:!0})},eme.prototype.handleIsCodeModeChange=function($P){var tme=this;this.setState({isCodeMode:$P},function(){var ame;return(ame=tme.getEditor())===null||ame===void 0?void 0:ame.setDisableAutoMark(!!$P)})},eme.prototype.toggleRunPanel=function(){this.setState({showRunPanel:!this.state.showRunPanel},this.runCode)},eme.prototype.handleRunContextChange=function($P){this.setState({runContext:$P},this.runCode)},eme.prototype.runCode=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:if($P=this.props.value||"",!this.state.showRunPanel)return[2];ime.label=1;case 1:return ime.trys.push([1,3,,4]),parse$2($P,{evalMode:this.props.evalMode}),tme=JSON.parse(this.state.runContext),ame=this.props.evalMode?"${".concat($P,"}"):$P,[4,resolveVariableAndFilterForAsync(ame,tme)];case 2:return nme=ime.sent(),this.unmounted||this.setState({runValid:!0,runResult:JSON.stringify(nme)}),[3,4];case 3:return rme=ime.sent(),this.unmounted||this.setState({runValid:!1,runResult:rme.message}),[3,4];case 4:return[2]}})})},eme.prototype.handleExpandTreeChange=function($P){this.setState({expandTree:$P})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.header,nme=tme.value,rme=tme.variables,ime=tme.variableMode,ome=tme.translate,lme=tme.classnames,sme=tme.variableClassName,cme=tme.functionClassName,dme=tme.classPrefix,ume=tme.selfVariableName,fme=tme.evalMode,pme=tme.simplifyMemberOprs,hme=tme.enableRunPanel,bme=hme===void 0?!0:hme,mme=this.state,vme=mme.focused,gme=mme.isCodeMode,yme=mme.showRunPanel,_me=mme.expandTree,$me=mme.functions,Cme=mme.runContext,Sme=mme.runResult,Eme=mme.runValid;return React__default.createElement("div",{className:lme("FormulaEditor",{"is-focused":vme})},React__default.createElement("section",{className:lme("FormulaEditor-settings")},React__default.createElement(FuncList$1,{className:cme,title:ome("FormulaEditor.function"),data:$me||[],onSelect:this.handleFunctionSelect}),React__default.createElement("div",{className:lme("FormulaEditor-content")},React__default.createElement("header",{className:lme("FormulaEditor-header")},ome(ame||"FormulaEditor.title"),bme?React__default.createElement("div",{className:lme("FormulaEditor-header-toolbar m-l")},React__default.createElement("span",null,ome("FormulaEditor.run")),React__default.createElement(Switch$1,{value:yme,onChange:this.toggleRunPanel})):null,React__default.createElement("div",{className:lme("FormulaEditor-header-toolbar")},React__default.createElement("span",null,ome("FormulaEditor.sourceMode")),React__default.createElement(Switch$1,{value:gme,onChange:this.handleIsCodeModeChange}))),React__default.createElement(CodeEditor$1,{evalMode:fme,functions:$me,variables:rme,className:lme("FormulaEditor-editor"),value:nme,onChange:this.handleOnChange,ref:this.editor,onFocus:this.handleFocus,onBlur:this.handleBlur,autoFocus:!0}),React__default.createElement(Transition,{mountOnEnter:!0,unmountOnExit:!0,key:"run-panel",in:yme,timeout:300},function(xme){return React__default.createElement("div",{className:lme("FormulaEditor-runPanel",collapseStyles[xme])},React__default.createElement("div",{className:lme("FormulaEditor-runPanel-context")},React__default.createElement("header",null,ome("FormulaEditor.runContext")),React__default.createElement("div",null,React__default.createElement(MonacoEditor,{value:Cme,onChange:$P.handleRunContextChange,language:"json",options:{tabSize:2,lineNumbers:!1}}))),React__default.createElement("div",{className:lme("FormulaEditor-runPanel-result",Eme?"":"is-error")},React__default.createElement("header",null,ome("FormulaEditor.runResult")),React__default.createElement("div",null,Sme)))})),React__default.createElement("div",{className:lme("FormulaEditor-panel","right")},ime!=="tabs"?React__default.createElement("div",{className:lme("FormulaEditor-panel-header")},ome("FormulaEditor.variable"),ime==="tree"?React__default.createElement("div",{className:lme("FormulaEditor-header-toolbar")},React__default.createElement("span",null,ome("FormulaEditor.toggleAll")),React__default.createElement(Switch$1,{value:_me,onChange:this.handleExpandTreeChange})):null):null,React__default.createElement("div",{className:lme("FormulaEditor-panel-body",ime&&"FormulaEditor-panel-body--".concat(ime))},React__default.createElement(VariableList$1,{classPrefix:dme,className:lme("FormulaEditor-VariableList","FormulaEditor-VariableList-root",sme),expandTree:_me,selectMode:ime,data:rme,onSelect:this.handleVariableSelect,selfVariableName:ume,simplifyMemberOprs:pme})))))},eme.defaultProps={variables:[],evalMode:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",void 0)],eme.prototype,"insertValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"validate",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFunctionSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleVariableSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleOnChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorFactory",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleIsCodeModeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleRunPanel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleRunContextChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleExpandTreeChange",null),eme}(React__default.Component),Editor$2=uncontrollable(themeable(localeable(FormulaEditor)),{value:"onChange"},["validate"]),PRESET_COLOR=["inactive","active","success","processing","error","warning"],Tag=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderCloseIcon=function(){var $P=this.props,tme=$P.closeIcon,ame=$P.classnames,nme=$P.closable;if(!nme)return null;var rme=React__default.createElement(Icon$1,{cx:ame,icon:tme||"close",className:"icon"});return React__default.createElement("span",{className:ame("Tag--close"),onClick:this.handleClose},rme)},eme.prototype.handleClose=function($P){var tme=this.props.onClose;$P.stopPropagation(),tme==null||tme($P)},eme.prototype.handleClick=function($P){var tme=this.props.onClick;tme==null||tme($P)},eme.prototype.handleMouseEnter=function($P){var tme=this.props.onMouseEnter;tme==null||tme($P)},eme.prototype.handleMouseLeave=function($P){var tme=this.props.onMouseLeave;tme==null||tme($P)},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.children,nme=tme.classnames,rme=tme.className,ime=tme.displayMode,ome=tme.disabled,lme=tme.color,sme=tme.icon,cme=tme.style,dme=tme.label,ume=lme&&PRESET_COLOR.indexOf(lme)!==-1,fme=lme&&!ume?lme:void 0,pme=__assign$3({backgroundColor:ime==="normal"?fme:void 0,borderColor:ime==="rounded"?fme:void 0,color:ime==="rounded"?fme:void 0},cme),hme;if(ime==="status"){var bme=void 0;sme&&(bme=React__default.createElement(Icon$1,{icon:sme,className:"icon"})),bme||(bme=React__default.createElement(Icon$1,{icon:"dot",className:nme("icon","Tag-default-icon")}));var mme=fme?{style:{color:fme}}:{};hme=React__default.createElement("span",__assign$3({className:nme("Tag--prev")},mme),bme)}return React__default.createElement("span",{className:nme("Tag","Tag--".concat(ime),rme,($P={},$P["Tag--".concat(ime,"--").concat(lme)]=ume,$P["Tag--".concat(ime,"--hasColor")]=lme,$P["Tag--disabled"]=ome,$P)),style:pme,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},React__default.createElement("span",{className:nme("Tag-text"),title:typeof dme=="string"?dme:void 0},hme,dme||ame),this.renderCloseIcon())},eme.defaultProps={displayMode:"normal"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClose",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),eme}(React__default.Component),CheckableTagComp=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleClick=function($P){var tme=this.props,ame=tme.onChange,nme=tme.onClick,rme=tme.checked;ame==null||ame(!rme),nme==null||nme($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.disabled,rme=$P.label,ime=$P.children,ome=$P.checked,lme=$P.style,sme=lme===void 0?{}:lme;return React__default.createElement("span",{className:tme(ame,"Tag","Tag--checkable",{"Tag--checkable--checked":ome,"Tag--checkable--disabled":nme}),onClick:nme?noop$9:this.handleClick,style:sme,title:typeof rme=="string"?rme:void 0},rme||ime)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),eme}(React__default.Component);themeable(CheckableTagComp);var Tag$1=themeable(Tag),FormulaInput=function(x_,eme){var $P,tme,ame,nme=x_.translate,rme=x_.className,ime=x_.classnames,ome=x_.placeholder,lme=x_.borderMode,sme=x_.evalMode;x_.mixedMode;var cme=x_.value,dme=x_.variables,ume=x_.functions,fme=x_.inputSettings,pme=fme===void 0?{type:"text"}:fme,hme=x_.popOverContainer,bme=x_.onChange,mme=x_.customInputRender,vme=pme.type,gme=pick$3(x_,["disabled","clearable","data"]),yme=reactExports.useCallback(function(Sme){return vme==="number"?Sme=isNaN(+Sme)?Sme:+Sme:vme==="boolean"&&(Sme=Sme==="true"?!0:Sme==="false"?!1:Sme),Sme},[vme]),_me=reactExports.useCallback(function(Sme){var Eme=Sme;if(Sme===void 0){bme==null||bme(Eme);return}if(vme==="boolean")Eme=Sme.value;else if(vme==="select"){var xme=pme.joinValues,Tme=xme===void 0?!0:xme,Ome=pme.extractValue,Rme=pme.delimiter,Nme=pme.multiple,Ime=pme.valueField,Pme=Ime===void 0?"value":Ime;Tme?Nme?Eme=Array.isArray(Sme)?Sme.map(function(Mme){return Mme[Pme]}).join(Rme):Sme?Sme[Pme]:"":Eme=Sme?Sme[Pme]:"":Ome&&(Nme?Eme=Array.isArray(Sme)?Sme.map(function(Mme){return Mme[Pme]}):Sme?[Sme[Pme||"value"]]:[]:Eme=Sme?Sme[Pme]:"")}bme==null||bme(Eme)},[vme,bme,pme]),$me=yme(cme??pme.defaultValue),Cme=isExpression($me);return!Cme&&vme==="number"?jsx(NumberInput$1,{...__assign$3({},gme,{className:ime(rme,"FormulaPicker-input-number"),borderMode:"none",placeholder:nme(ome??"NumberInput.placeholder"),step:pme.step,min:pme.minimum,max:pme.maximum,precision:pme.precision,value:$me,onChange:_me})}):!Cme&&vme==="date"?jsx(DatePicker$1,{...__assign$3({},gme,{className:ime(rme,"FormulaPicker-input-date"),borderMode:"none",closeOnSelect:!0,placeholder:nme(ome??"Date.placeholder"),format:pme.format||"YYYY-MM-DD",inputFormat:pme.inputFormat||"YYYY-MM-DD",timeFormat:"",popOverContainer:hme,value:$me,onChange:_me})}):!Cme&&vme==="time"?jsx(DatePicker$1,{...__assign$3({},gme,{className:ime(rme,"FormulaPicker-input-time"),viewMode:"time",borderMode:"none",closeOnSelect:!0,placeholder:nme(ome??"Time.placeholder"),format:pme.format||"HH:mm",inputFormat:pme.inputFormat||"HH:mm",dateFormat:"",timeFormat:pme.format||"HH:mm",popOverContainer:hme,value:$me,onChange:_me})}):!Cme&&vme==="datetime"?jsx(DatePicker$1,{...__assign$3({},gme,{className:ime(rme,"FormulaPicker-input-datetime"),borderMode:"none",closeOnSelect:!0,placeholder:nme(ome??"Time.placeholder"),format:pme.format||"",inputFormat:pme.inputFormat||"YYYY-MM-DD HH:mm",timeFormat:pme.timeFormat||"HH:mm",popOverContainer:hme,value:$me,onChange:_me})}):!Cme&&(vme==="select"||vme==="boolean")?jsx(SelectWithRemoteOptions,{...__assign$3({},gme,{className:ime(rme,"FormulaPicker-input-".concat(vme)),borderMode:"none",multiple:vme==="boolean"?!1:pme.multiple,options:vme==="boolean"?[{label:nme(($P=pme==null?void 0:pme.trueLabel)!==null&&$P!==void 0?$P:"FormulaInput.True"),value:!0},{label:nme((tme=pme==null?void 0:pme.falseLabel)!==null&&tme!==void 0?tme:"FormulaInput.False"),value:!1}]:(ame=pme.options)!==null&&ame!==void 0?ame:[],source:pme.source,value:yme(cme),renderValueLabel:function(Sme){var Eme,xme,Tme=(xme=(Eme=Sme.label)===null||Eme===void 0?void 0:Eme.toString())!==null&&xme!==void 0?xme:"";return vme==="boolean"||!pme.multiple?jsx(Tag$1,{label:Tme,className:ime("rounded")}):jsx(Fragment,{children:Tme})},onChange:_me})}):!Cme&&vme==="custom"&&mme?mme({value:$me,onChange:_me,inputSettings:pme,className:"FormulaPicker-input-custom"}):jsx(InputBox$1,{className:ime("FormulaPicker-input"),inputRender:function(Sme){var Eme=Sme.value,xme=Sme.onChange,Tme=Sme.onFocus,Ome=Sme.onBlur,Rme=Sme.placeholder;return jsx(CodeEditor$1,{singleLine:!0,value:Eme,onChange:xme,onFocus:Tme,onBlur:Ome,functions:ume,variables:dme,evalMode:sme,placeholder:Rme})},borderMode:lme,value:$me,onChange:_me,placeholder:nme(ome??"placeholder.enter")})},FormulaInput$1=themeable(localeable(uncontrollable(React__default.forwardRef(FormulaInput),{value:"onChange"}))),InputSchemaType=["text","number","boolean","date","time","datetime","select","custom"],FormulaPicker$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.unmounted=!1,tme.props.onRef&&tme.props.onRef(tme),tme.state={isOpened:!1,value:tme.props.value,editorValue:tme.value2EditorValue(tme.props),isError:!1,variables:Array.isArray($P.variables)?$P.variables:[]},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return $P=this.props,tme=$P.variables,ame=$P.data,typeof tme!="function"?[3,2]:[4,tme(this.props)];case 1:return nme=ime.sent(),this.setState({variables:nme}),[3,4];case 2:return typeof tme=="string"&&isExpression(tme)?[4,resolveVariableAndFilterForAsync(tme,ame,"|raw")]:[3,4];case 3:rme=ime.sent(),this.setState({variables:rme}),ime.label=4;case 4:return this.buildFunctions(),[2]}})})},eme.prototype.componentDidUpdate=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return tme=this.props.value,tme!==$P.value&&!this.state.isOpened&&this.setState({value:typeof tme=="string"||!this.isTextInput()?tme:"",editorValue:this.value2EditorValue(this.props)}),anyChanged$1(["variables","data"],this.props,$P)?(ame=this.props,nme=ame.variables,rme=ame.data,typeof nme!="function"?[3,2]:[4,nme(this.props)]):[3,4];case 1:return ime=lme.sent(),this.setState({variables:ime}),[3,4];case 2:return typeof nme=="string"&&isExpression(nme)?[4,resolveVariableAndFilterForAsync(nme,rme,"|raw")]:[3,4];case 3:ome=lme.sent(),this.setState({variables:ome}),lme.label=4;case 4:return $P.functions!==this.props.functions&&this.buildFunctions(),[2]}})})},eme.prototype.componentWillUnmount=function(){this.unmounted=!0},eme.prototype.buildFunctions=function($P,tme){return $P===void 0&&($P=this.props.functions),tme===void 0&&(tme=!0),__awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,FormulaEditor.buildFunctions($P,this.props.functionsFilter)];case 1:return ame=nme.sent(),this.unmounted?[2]:tme?(this.setState({functions:ame}),[2]):[2,ame]}})})},eme.prototype.value2EditorValue=function($P){var tme=$P.value,ame=$P.mixedMode;if($P.inputSettings,ame&&typeof tme=="string"&&/^\s*\$\{([\s\S]+)\}\s*$/.test(tme))return RegExp.$1;if(typeof tme!="string"){var nme="";try{nme=JSON.stringify(tme)}catch{}return nme}else return tme?ame?isExpression(tme)?"`".concat(tme.replace(/`/g,"\\`"),"`"):JSON.stringify(tme):tme:""},eme.prototype.isTextInput=function(){var $P=this.props.inputSettings;return!$P||($P==null?void 0:$P.type)==="text"||!InputSchemaType.includes($P==null?void 0:$P.type)},eme.prototype.handleConfirm=function(){var $P,tme,ame=this.state.value;this.props.onConfirm?this.props.onConfirm(ame):(tme=($P=this.props).onChange)===null||tme===void 0||tme.call($P,ame)},eme.prototype.handleInputChange=function($P){var tme=this;this.setState({value:$P},function(){return tme.handleConfirm()})},eme.prototype.handleInputGroupChange=function($P){var tme=this.props.onChange;tme&&tme($P.currentTarget.value)},eme.prototype.handleEditorChange=function($P){this.setState({editorValue:$P,isError:!1})},eme.prototype.handleEditorConfirm=function(){var $P,tme,ame=this.props;ame.translate;var nme=ame.inputSettings,rme=this.state.editorValue,ime;try{ime=parse$2(rme,{evalMode:this.props.mixedMode?!0:this.props.evalMode,allowFilter:!1})}catch(lme){this.setState({isError:($P=lme==null?void 0:lme.message)!==null&&$P!==void 0?$P:!0});return}if(nme!=null&&nme.type&&["boolean","number"].includes(nme==null?void 0:nme.type)){var ome=rme;return(ime.type==="literal"||ime.type==="string")&&(ome=(tme=ime.value)!==null&&tme!==void 0?tme:""),this.setState({isError:!1}),this.confirm(ome)}return this.confirm(rme,ime)},eme.prototype.confirm=function($P,tme){var ame=this,nme=this.props.mixedMode,rme=this.state.onConfirm,ime=this.validate($P);if(ime===!0){var ome=$P;nme&&typeof $P=="string"&&(ome=(tme==null?void 0:tme.type)==="string"?tme.value:(tme==null?void 0:tme.type)==="template"&&tme.body.length===1&&tme.body[0].type==="template_raw"?tme.body[0].value:"${".concat($P,"}")),this.setState({value:ome,onConfirm:void 0},function(){ame.close(void 0,function(){rme?rme(ame.state.value):ame.handleConfirm()})})}else this.setState({isError:ime})},eme.prototype.handleClick=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function($P){return[2,this.openEditor(this.value2EditorValue(this.props))]})})},eme.prototype.openEditor=function($P,tme){var ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ime=[{}],[4,(nme=(ame=this.props).onPickerOpen)===null||nme===void 0?void 0:nme.call(ame,this.props)];case 1:return rme=__assign$3.apply(void 0,[__assign$3.apply(void 0,ime.concat([lme.sent()])),{editorValue:$P,isOpened:!0,onConfirm:tme}]),rme.functions?(ome=rme,[4,this.buildFunctions(rme.functions,!1)]):[3,3];case 2:ome.functions=lme.sent(),lme.label=3;case 3:return this.setState(rme),[2]}})})},eme.prototype.close=function($P,tme){this.setState({isOpened:!1,isError:!1},function(){if(tme){tme();return}})},eme.prototype.updateState=function($P){$P===void 0&&($P={}),$P.isOpened;var tme=__rest$14($P,["isOpened"]);this.setState(__assign$3(__assign$3({},this.state),tme))},eme.prototype.validate=function($P){var tme=this.props,ame=tme.translate,nme=tme.inputSettings;if(nme&&!this.isTextInput()){var rme=nme==null?void 0:nme.type,ime=ame("FormulaEditor.invalidValue");return typeof $P=="string"?!0:["number","boolean"].includes(rme)?typeof $P===rme?!0:ime:["text","date","time","datetime"].includes(rme)?typeof $P=="string"?!0:ime:rme==="select"&&nme.multiple?Array.isArray($P)?!0:ime:!0}try{return $P&&parse$2($P,{evalMode:this.props.mixedMode?!1:this.props.evalMode,allowFilter:!1}),!0}catch(sme){if(/\s(\d+:\d+)$/.test(sme.message)){var ome=__read$3(/\s(\d+:\d+)$/.exec(sme.message)||[],2),lme=ome[1];return lme}return sme.message}},eme.prototype.render=function(){var $P,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume=this.props,fme=ume.classnames,pme=ume.translate,hme=ume.disabled,bme=ume.className,mme=ume.style;ume.onChange,ume.size;var vme=ume.borderMode,gme=ume.placeholder,yme=ume.mode,_me=yme===void 0?"input-button":yme,$me=ume.btnLabel,Cme=ume.level,Sme=ume.btnSize,Eme=ume.icon,xme=ume.title,Tme=ume.clearable,Ome=ume.functions,Rme=ume.children,Nme=ume.variableMode,Ime=ume.mixedMode,Pme=ume.evalMode,Mme=ume.popOverContainer,kme=ume.mobileUI,Bme=ume.inputSettings,Dme=ume.customInputRender,jme=__rest$14(ume,["classnames","translate","disabled","className","style","onChange","size","borderMode","placeholder","mode","btnLabel","level","btnSize","icon","title","clearable","functions","children","variableMode","mixedMode","evalMode","popOverContainer","mobileUI","inputSettings","customInputRender"]),Vme=this.state,Wme=Vme.isOpened,Lme=Vme.value,zme=Vme.editorValue,Ume=Vme.isError,Gme=React__default.createElement(Icon$1,{cx:fme,icon:Eme,className:"Icon"});return React__default.createElement(React__default.Fragment,null,Rme?Rme({isOpened:this.state.isOpened,onClick:this.handleClick,setState:this.updateState,value:Lme,onChange:this.handleInputChange,disabled:hme}):React__default.createElement("div",{className:fme("FormulaPicker",_me==="input-group"?"is-input-group":"",{"FormulaPicker--text":this.isTextInput()},bme),style:mme},_me==="button"&&React__default.createElement(Button$1,{className:fme("FormulaPicker-action","w-full"),level:Cme,size:Sme,active:!!Lme,onClick:this.handleClick},Gme?React__default.cloneElement(Gme,{className:fme((rme=(nme=Gme==null?void 0:Gme.props)===null||nme===void 0?void 0:nme.className)!==null&&rme!==void 0?rme:"","FormulaPicker-icon",($P={},$P["is-filled"]=!!Lme,$P))}):React__default.createElement(Icon$1,{icon:"function",className:fme("FormulaPicker-icon","icon",(tme={},tme["is-filled"]=!!Lme,tme))}),React__default.createElement("span",{className:fme("FormulaPicker-label")},pme($me||"FormulaEditor.btnLabel"))),_me==="input-button"&&React__default.createElement(React__default.Fragment,null,React__default.createElement(FormulaInput$1,{className:fme("FormulaPicker-input",Wme?"is-active":"",Ume?"is-error":""),inputSettings:Bme,customInputRender:Dme,clearable:Tme,evalMode:Ime?!1:Pme,variables:this.state.variables,functions:(ime=this.state.functions)!==null&&ime!==void 0?ime:Ome,value:Lme,onChange:this.handleInputChange,disabled:hme,borderMode:vme,placeholder:gme}),React__default.createElement(Button$1,{className:fme("FormulaPicker-action"),onClick:this.handleClick},React__default.createElement(Icon$1,{icon:"function",className:fme("FormulaPicker-icon","icon",(ame={},ame["is-filled"]=!!Lme,ame))}))),_me==="input-group"&&React__default.createElement(React__default.Fragment,null,React__default.createElement(FormulaInput$1,{className:fme("FormulaPicker-input",Wme?"is-active":"",Ume?"is-error":""),inputSettings:Bme,customInputRender:Dme,clearable:Tme,evalMode:Ime?!1:Pme,variables:this.state.variables,functions:(ome=this.state.functions)!==null&&ome!==void 0?ome:Ome,value:Lme,onChange:this.handleInputChange,disabled:hme,borderMode:vme,placeholder:gme}),React__default.createElement("a",{className:fme("FormulaPicker-toggler"),onClick:this.handleClick},React__default.createElement(Icon$1,{icon:"function",className:"icon"})))),kme?React__default.createElement(PopUp$1,{className:fme("FormulaPicker-popup"),isShow:this.state.isOpened,showConfirm:!0,onHide:this.close,onConfirm:this.handleEditorConfirm,container:Mme},React__default.createElement("div",{className:fme("FormulaPicker-popup-inner")},React__default.createElement(Editor$2,__assign$3({},jme,{evalMode:Ime?!0:Pme,variables:this.state.variables,functions:(lme=this.state.functions)!==null&&lme!==void 0?lme:Ome,variableMode:(sme=this.state.variableMode)!==null&&sme!==void 0?sme:Nme,value:zme,onChange:this.handleEditorChange,selfVariableName:this.props.selfVariableName})),Ume?React__default.createElement("div",{className:fme("Dialog-info"),key:"info"},React__default.createElement("span",{className:fme("Dialog-error")},pme("FormulaEditor.invalidData",{err:Ume}))):null)):React__default.createElement(FinalModal,{size:"lg",closeOnEsc:!0,show:this.state.isOpened,onHide:this.close,container:Mme},React__default.createElement(FinalModal.Header,{onClose:this.close,className:"font-bold"},pme(xme||"FormulaEditor.title")),React__default.createElement(FinalModal.Body,null,React__default.createElement(Editor$2,__assign$3({},jme,{evalMode:Ime?!0:Pme,variables:this.state.variables,functions:(cme=this.state.functions)!==null&&cme!==void 0?cme:Ome,variableMode:(dme=this.state.variableMode)!==null&&dme!==void 0?dme:Nme,value:zme,onChange:this.handleEditorChange,selfVariableName:this.props.selfVariableName}))),React__default.createElement(FinalModal.Footer,null,Ume?React__default.createElement("div",{className:fme("Dialog-info"),key:"info"},React__default.createElement("span",{className:fme("Dialog-error")},pme("FormulaEditor.invalidData",{err:Ume}))):null,React__default.createElement(Button$1,{onClick:this.close},pme("cancel")),React__default.createElement(Button$1,{onClick:this.handleEditorConfirm,level:"primary"},pme("confirm")))))},eme.defaultProps={evalMode:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputGroupChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditorChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditorConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Function]),__metadata("design:returntype",Promise)],eme.prototype,"openEditor",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateState",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"validate",null),eme}(React__default.Component),FormulaPicker$1$1=themeable(localeable(uncontrollable(FormulaPicker$1,{value:"onChange"})));function InputJSONSchemaArray(x_){var eme,$P,tme,ame=x_.classnames,nme=x_.value,rme=x_.onChange,ime=x_.disabled,ome=x_.translate,lme=x_.collapsable,sme=x_.renderValue,cme=x_.mobileUI,dme=React__default.useCallback(function(Tme,Ome){var Rme=[],Nme=Array.isArray(Ome)?Ome.length:1;typeof Tme.minContains=="number"&&(Nme=Math.max(Nme,Tme.minContains));for(var Ime=typeof Tme.maxContains=="number"?Tme.maxContains:0;Nme--;)Rme.push({key:guid$1(),index:Rme.length,schema:Tme.items,invalid:Ime?Ime<Rme.length:!1});return Rme},[]),ume=__read$3(React__default.useState(dme(x_.schema,nme)),2),fme=ume[0],pme=ume[1],hme=React__default.useRef(fme);hme.current=fme;var bme=__read$3(React__default.useState(!!lme),2),mme=bme[0],vme=bme[1],gme=function(){vme(!mme)},yme=function(Tme,Ome){var Rme=Array.isArray(x_.value)?x_.value.concat():[];Rme[Tme.index]=Ome,rme==null||rme(Rme)},_me=function(Tme){var Ome=fme.indexOf(Tme);if(!~Ome)throw new Error("member object not found");var Rme=fme.concat();Rme.splice(Ome,1),pme(Rme);var Nme=Array.isArray(x_.value)?x_.value.concat():[];Nme.splice(Tme.index,1),rme==null||rme(Nme)};React__default.useEffect(function(){pme(dme(x_.schema,x_.value))},[JSON.stringify(x_.schema)]),React__default.useEffect(function(){var Tme=x_.value,Ome=x_.schema,Rme=Array.isArray(Tme)?Tme.length:1;typeof Ome.minContains=="number"&&(Rme=Math.max(Rme,Ome.minContains)),typeof Ome.maxContains=="number"&&(Rme=Math.min(Ome.maxContains,Rme));var Nme=hme.current.concat();if(Nme.length!==Rme){for(;Nme.length!==Rme;)Nme.length>Rme?Nme.pop():Nme.push({key:guid$1(),index:Nme.length,schema:Ome.items});pme(Nme)}},[JSON.stringify(x_.value)]);var $me=React__default.useCallback(function(){var Tme=fme.concat();Tme.push({key:guid$1(),index:fme.length,schema:x_.schema.items,invalid:!1}),pme(Tme)},[fme]),Cme=typeof((eme=x_.schema)===null||eme===void 0?void 0:eme.maxContains)=="number"?x_.schema.maxContains:0,Sme=typeof(($P=x_.schema)===null||$P===void 0?void 0:$P.minContains)=="number"?x_.schema.minContains:0,Eme=!Cme||Cme>fme.length,xme=!Sme||Sme<fme.length;return React__default.createElement(React__default.Fragment,null,lme?React__default.createElement("a",{className:ame("JSONSchemaObject-caret",{"is-collapsed":mme}),onClick:gme},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null,React__default.createElement("div",{className:ame("JSONSchemaObject",{"is-mobile":cme,"is-expanded":lme&&!mme})},mme?sme?React__default.createElement(InputJSONSchemaItem$1,__assign$3({},x_,{value:nme,onChange:rme,schema:{type:"string"},placeholder:(tme=x_.schema)===null||tme===void 0?void 0:tme.description})):null:fme.map(function(Tme){return React__default.createElement("div",{key:Tme.key,className:ame("JSONSchemaMember")},React__default.createElement("div",{className:ame("JSONSchemaMember-value")},React__default.createElement(InputJSONSchemaItem$1,__assign$3({},x_,{value:nme==null?void 0:nme[Tme.index],onChange:yme.bind(null,Tme),schema:Tme.schema||{type:"string"},collapsable:!0}))),xme?React__default.createElement(Button$1,{className:ame("SchemaEditor-btn"),onClick:_me.bind(null,Tme),iconOnly:!0,disabled:ime||!!(nme!=null&&nme.$ref)},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})):null)}),mme?null:React__default.createElement(Button$1,{level:"link",onClick:$me,size:"xs",disabled:ime||!Eme},ome("JSONSchema.add_prop"))))}var option2value$4=function(x_){return x_.value},InputBoxWithSuggestion=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={searchText:""},tme.onSearch=tme.onSearch.bind(tme),tme.filterOptions=tme.filterOptions.bind(tme),tme}return eme.prototype.onSearch=function($P){var tme=$P.toLowerCase();this.setState({searchText:tme})},eme.prototype.filterOptions=function($P){var tme=this;return this.props.value?matchSorter($P,this.props.value,{keys:["label","value"],threshold:matchSorter.rankings.CONTAINS}).filter(function(ame){return ame.value!==tme.props.value}):$P},eme.prototype.onPopClose=function($P,tme){this.setState({searchText:""}),tme()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.placeholder,nme=tme.onChange,rme=tme.value,ime=tme.classnames,ome=tme.disabled;tme.translate;var lme=tme.searchable,sme=tme.popOverContainer,cme=tme.clearable,dme=tme.hasError,ume=tme.mobileUI,fme=tme.className,pme=this.filterOptions(Array.isArray(this.props.options)?this.props.options:[]);return React__default.createElement(PopOverContainer,{show:!!pme.length,popOverContainer:sme||function(){return reactDomExports.findDOMNode($P)},popOverRender:function(hme){var bme=hme.onClose;return React__default.createElement(React__default.Fragment,null,lme?React__default.createElement(SearchBox$1,{mini:!1,onSearch:$P.onSearch}):null,React__default.createElement(GroupedSelection$1,{multiple:!1,onClick:function(mme){return $P.onPopClose(mme,bme)},options:pme,value:[rme],option2value:option2value$4,onChange:function(mme){nme==null||nme(mme)}}))}},function(hme){var bme,mme,vme=hme.onClick,gme=hme.ref,yme=hme.isOpened;return React__default.createElement(InputBox$1,{className:ime("InputBox--sug",fme,yme?"is-active":""),ref:gme,placeholder:ame,disabled:ome,value:(mme=(bme=pme.find(function(_me){return _me.value===rme}))===null||bme===void 0?void 0:bme.label)!==null&&mme!==void 0?mme:rme,onChange:nme,clearable:cme,onClick:vme,hasError:dme,mobileUI:ume},pme.length?React__default.createElement("span",{className:ime("InputBox-caret")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null)})},eme}(React__default.Component),InputBoxWithSuggestion$1=themeable(localeable(InputBoxWithSuggestion));function InputJSONSchemaObject(x_,eme){var $P,tme,ame=x_.classnames,nme=x_.value,rme=x_.onChange,ime=x_.disabled,ome=x_.translate,lme=x_.renderKey,sme=x_.collapsable,cme=x_.renderValue,dme=x_.mobileUI,ume=x_.className,fme=x_.addButtonText,pme=React__default.useCallback(function(Mme,kme){var Bme,Dme,jme,Vme=[],Wme=Array.isArray(Mme.required)?Mme.required:[];Object.keys(Mme.properties||{}).forEach(function(Yme){var Qme,Xme=Mme.properties[Yme];Vme.push({key:guid$1(),name:Yme,nameMutable:!Wme.includes(Yme),required:Wme.includes(Yme),schema:Xme,value:(Qme=kme==null?void 0:kme[Yme])!==null&&Qme!==void 0?Qme:Xme.default})});var Lme=Object.keys(kme||{}),zme=function(Yme){var Qme=Vme.find(function(Xme){return Xme.name===Yme});!Qme&&Mme.additionalProperties!==!1&&Vme.push({key:guid$1(),name:Yme,nameMutable:!0,schema:{type:"string",default:""},value:(jme=kme[Yme])!==null&&jme!==void 0?jme:""})};try{for(var Ume=__values$1(Lme),Gme=Ume.next();!Gme.done;Gme=Ume.next()){var Jme=Gme.value;zme(Jme)}}catch(Yme){Bme={error:Yme}}finally{try{Gme&&!Gme.done&&(Dme=Ume.return)&&Dme.call(Ume)}finally{if(Bme)throw Bme.error}}return!Vme.length&&Mme.additionalProperties!==!1&&Vme.push({key:guid$1(),name:"",nameMutable:!0,schema:{type:"string",default:""},value:""}),Vme},[]),hme=__read$3(React__default.useState([]),2),bme=hme[0],mme=hme[1],vme=React__default.useRef();vme.current=bme;var gme=function(Mme){mme(Mme),vme.current=Mme},yme=__read$3(React__default.useState(!!sme),2),_me=yme[0],$me=yme[1],Cme=function(){$me(!_me)},Sme=function(){var Mme=vme.current,kme={};Mme.forEach(function(Bme){!Bme.invalid&&(typeof Bme.value<"u"||typeof kme[Bme.name]<"u")&&(kme[Bme.name]=Bme.value)}),isEqual$1(kme,x_.value||{})||rme==null||rme(kme)},Eme=function(Mme,kme){var Bme=bme.concat(),Dme=Bme.indexOf(Mme);if(!~Dme)throw new Error("member object not found");Bme.splice(Dme,1,__assign$3(__assign$3({},Bme[Dme]),{value:kme})),gme(Bme),Sme()},xme=function(Mme,kme){var Bme,Dme,jme=bme.indexOf(Mme);if(!~jme)throw new Error("member object not found");var Vme=bme[jme].schema,Wme=((Dme=(Bme=x_.schema)===null||Bme===void 0?void 0:Bme.properties)===null||Dme===void 0?void 0:Dme[kme])||{type:"string",default:""},Lme=bme.concat(),zme=__assign$3(__assign$3({},Mme),{schema:Wme,name:kme,invalid:!kme||bme.some(function(Ume,Gme){return Ume.name===kme&&Gme!==jme})?"key":void 0});zme.value===Vme.default&&Vme!==Wme&&Vme.default!==Wme.default&&(zme.value=Wme.default),Lme.splice(jme,1,zme),gme(Lme),Sme()},Tme=function(Mme){var kme=bme.indexOf(Mme);if(!~kme)throw new Error("member object not found");var Bme=bme.concat();Bme.splice(kme,1),gme(Bme),Sme()};React__default.useEffect(function(){var Mme=pme(x_.schema,x_.value);gme(Mme),Sme()},[JSON.stringify(x_.schema)]),React__default.useEffect(function(){var Mme,kme,Bme,Dme=x_.value,jme=vme.current.concat(),Vme=Object.keys(Dme||{}),Wme=function(Gme){var Jme=jme.findIndex(function(Qme){return Qme.name===Gme}),Yme=jme[Jme];!Yme&&x_.schema.additionalProperties!==!1?jme.push({key:guid$1(),name:Gme,nameMutable:!0,schema:{type:"string",default:""},value:(Bme=Dme==null?void 0:Dme[Gme])!==null&&Bme!==void 0?Bme:""}):jme.splice(Jme,1,__assign$3(__assign$3({},Yme),{value:Dme==null?void 0:Dme[Gme]}))};try{for(var Lme=__values$1(Vme),zme=Lme.next();!zme.done;zme=Lme.next()){var Ume=zme.value;Wme(Ume)}}catch(Gme){Mme={error:Gme}}finally{try{zme&&!zme.done&&(kme=Lme.return)&&kme.call(Lme)}finally{if(Mme)throw Mme.error}}gme(jme)},[JSON.stringify(x_.value)]);var Ome=React__default.useCallback(function(){var Mme=bme.concat();Mme.push({key:guid$1(),name:"",invalid:"key",nameMutable:!0,schema:{type:"string",default:""},value:""}),gme(Mme),Sme()},[bme]),Rme=[],Nme=(($P=x_.schema)===null||$P===void 0?void 0:$P.properties)||{};Object.keys(Nme).forEach(function(Mme){var kme;Rme.push({label:((kme=Nme[Mme])===null||kme===void 0?void 0:kme.title)||Mme,value:Mme})});var Ime=!(x_.schema.additionalProperties===!1&&Rme.every(function(Mme){return bme.find(function(kme){return kme.name===Mme.value})})),Pme=x_.schema.additionalProperties!==!1;return React__default.useImperativeHandle(eme,function(){return{validate:function(){var Mme;if(!((Mme=vme.current)===null||Mme===void 0)&&Mme.some(function(kme){return kme.invalid==="key"}))return ome("JSONSchema.key_invalid")}}}),React__default.createElement(React__default.Fragment,null,sme?React__default.createElement("a",{className:ame("JSONSchemaObject-caret",{"is-collapsed":_me}),onClick:Cme},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null,React__default.createElement("div",{className:ame("JSONSchemaObject",ume,{"is-mobile":dme,"is-expanded":sme&&!_me})},_me?cme?React__default.createElement(InputJSONSchemaItem$1,__assign$3({},x_,{value:nme,onChange:rme,schema:{type:"string"},placeholder:(tme=x_.schema)===null||tme===void 0?void 0:tme.description})):null:bme.map(function(Mme){var kme,Bme,Dme=Rme.filter(function(jme){return!bme.find(function(Vme){return Vme!==Mme&&Vme.name===jme.value})});return React__default.createElement("div",{key:Mme.key,className:ame("JSONSchemaMember")},React__default.createElement("div",{className:ame("JSONSchemaMember-key",{"is-mobile":dme})},Mme.nameMutable?React__default.createElement(React__default.Fragment,null,lme?lme(Mme.name,xme.bind(null,Mme),Mme.schema,x_):Dme.length?Pme?React__default.createElement(InputBoxWithSuggestion$1,{value:Mme.name,hasError:Mme.invalid==="key",onChange:xme.bind(null,Mme),clearable:!1,placeholder:ome("JSONSchema.key"),options:Dme,mobileUI:dme}):React__default.createElement(EnhancedSelect,{simpleValue:!0,block:!0,value:Mme.name,hasError:Mme.invalid==="key",onChange:xme.bind(null,Mme),clearable:!1,placeholder:ome("JSONSchema.key"),options:Dme,mobileUI:dme}):React__default.createElement(InputBox$1,{value:Mme.name,hasError:Mme.invalid==="key",onChange:xme.bind(null,Mme),clearable:!1,placeholder:ome("JSONSchema.key"),mobileUI:dme})):React__default.createElement("span",null,Mme.required?React__default.createElement("span",{className:ame("Form-star")},"*"):null,((kme=Mme.schema)===null||kme===void 0?void 0:kme.title)||Mme.name)),React__default.createElement("div",{className:ame("JSONSchemaMember-value")},React__default.createElement(InputJSONSchemaItem$1,__assign$3({},x_,{className:"",addButtonText:void 0,required:Mme.required,value:nme==null?void 0:nme[Mme.name],onChange:Eme.bind(null,Mme),schema:Mme.schema||{type:"string"},placeholder:(Bme=Mme.schema)===null||Bme===void 0?void 0:Bme.description,collapsable:!0}))),Mme.required?null:React__default.createElement(Button$1,{className:ame("SchemaEditor-btn"),onClick:Tme.bind(null,Mme),iconOnly:!0,disabled:ime||!!(nme!=null&&nme.$ref)},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})))}),Ime&&!_me?React__default.createElement(Button$1,{level:"link",onClick:Ome,size:"xs",disabled:ime},fme??ome("JSONSchema.add_prop")):null))}var InputJSONSchemaObject$1=React__default.forwardRef(InputJSONSchemaObject);function InputJSONSchemaItem(x_,eme){var $P,tme,ame,nme,rme,ime=React__default.useRef();React__default.useImperativeHandle(eme,function(){return{validate:function(){var cme;return(cme=ime.current)===null||cme===void 0?void 0:cme.validate()}}});var ome=x_.schema,lme=x_.formula;if(ome.type==="object")return React__default.createElement(InputJSONSchemaObject$1,__assign$3({},x_,{ref:ime}));if(ome.type==="array")return React__default.createElement(InputJSONSchemaArray,__assign$3({},x_));if(x_.renderValue)return x_.renderValue(x_.value,x_.onChange,ome,x_);if(lme){var sme=React__default.useMemo(function(){var cme=__assign$3({},lme.inputSettings);return ome.type==="number"||ome.type==="integer"?cme.type="number":ome.type==="boolean"&&(cme.type="boolean"),cme},[lme.inputSettings,ome.type]);return React__default.createElement(FormulaPicker$1,__assign$3({mode:"input-group",mixedMode:!0},lme,{inputSettings:sme,value:($P=x_.value)!==null&&$P!==void 0?$P:ome.default,onChange:x_.onChange,className:x_.className,disabled:x_.disabled,placeholder:x_.placeholder,theme:x_.theme,classPrefix:x_.classPrefix,classnames:x_.classnames,translate:x_.translate,locale:x_.locale}))}else{if(ome.type=="number")return React__default.createElement(NumberInput$1,{className:x_.className,value:(tme=x_.value)!==null&&tme!==void 0?tme:ome.default,onChange:x_.onChange,placeholder:x_.placeholder,mobileUI:x_.mobileUI});if(ome.type=="integer")return React__default.createElement(NumberInput$1,{className:x_.className,value:(ame=x_.value)!==null&&ame!==void 0?ame:ome.default,onChange:x_.onChange,precision:0,placeholder:x_.placeholder,mobileUI:x_.mobileUI});if(ome.type=="boolean")return React__default.createElement(Switch$1,{value:(nme=x_.value)!==null&&nme!==void 0?nme:ome.default,onChange:x_.onChange,className:"mt-2"})}return React__default.createElement(InputBox$1,{className:x_.className,value:(rme=x_.value)!==null&&rme!==void 0?rme:ome.default,onChange:x_.onChange,placeholder:x_.placeholder,mobileUI:x_.mobileUI})}var InputJSONSchemaItem$1=React__default.forwardRef(InputJSONSchemaItem);function InputJSONSchema(x_,eme){var $P=x_.schema||{type:"object",properties:{}},tme=React__default.useRef();return React__default.useImperativeHandle(eme,function(){return{validate:function(){var ame;return(ame=tme.current)===null||ame===void 0?void 0:ame.validate()}}}),React__default.createElement(InputJSONSchemaItem$1,__assign$3({},x_,{schema:$P,ref:tme}))}var InputJSONSchema$1=themeable(localeable(React__default.forwardRef(InputJSONSchema))),DropDownSelection=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={searchText:""},tme.onSearch=tme.onSearch.bind(tme),tme.filterOptions=tme.filterOptions.bind(tme),tme}return eme.prototype.onSearch=function($P){this.setState({searchText:$P})},eme.prototype.filterOptions=function($P){var tme=this.props,ame=tme.valueField,nme=ame===void 0?"value":ame,rme=tme.labelField,ime=this.state.searchText;return ime?filterTree($P,function(ome,lme,sme,cme){return!!(Array.isArray(ome.children)&&ome.children.length||matchSorter([ome].concat(cme),ime,{keys:[rme||"label",nme||"value"],threshold:matchSorter.rankings.CONTAINS}).length)},0,!0):this.props.options},eme.prototype.onPopClose=function($P){this.setState({searchText:""}),$P()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.onChange,rme=tme.value,ime=tme.classnames,ome=tme.disabled,lme=tme.translate,sme=tme.searchable,cme=tme.mode,dme=cme===void 0?"list":cme,ume=tme.valueField,fme=ume===void 0?"value":ume,pme=tme.option2value,hme=tme.loadingConfig,bme=tme.popOverContainer,mme=tme.testIdBuilder,vme=tme.mobileUI,gme=tme.classPrefix;return React__default.createElement(PopOverContainer,{mobileUI:vme,overlayWidthField:"width",popOverContainer:bme||function(){return reactDomExports.findDOMNode($P)},popOverRender:function(yme){var _me=yme.onClose;return React__default.createElement("div",null,sme?React__default.createElement(SearchBox$1,{className:ime("".concat(gme,"DropDownSelection-searchbox")),mini:!1,onSearch:$P.onSearch,testIdBuilder:mme==null?void 0:mme.getChild("searchbox")}):null,dme==="list"?React__default.createElement(GroupedSelection$1,{multiple:!1,onClick:function(){return $P.onPopClose(_me)},options:$P.filterOptions($P.props.options),value:rme,option2value:pme,testIdBuilder:mme==null?void 0:mme.getChild("selection"),onChange:function($me){nme(Array.isArray($me)?$me[0]:$me)}}):React__default.createElement(TreeSelection$1,{className:"is-scrollable",multiple:!1,options:$P.filterOptions($P.props.options),value:rme,loadingConfig:hme,testIdBuilder:mme==null?void 0:mme.getChild("selection"),onChange:function($me){$P.onPopClose(_me),nme($me[fme])}}))}},function(yme){var _me=yme.onClick,$me=yme.ref,Cme=yme.isOpened;return React__default.createElement("div",{className:ime("DropDownSelection")},React__default.createElement(ResultBox$1,{className:ime("DropDownSelection-input",Cme?"is-active":""),ref:$me,allowInput:!1,result:rme?findTree(ame,function(Sme){return Sme[fme]===rme}):"",onResultChange:noop$9,onResultClick:_me,placeholder:lme("Condition.field_placeholder"),disabled:ome,mobileUI:vme,testIdBuilder:mme==null?void 0:mme.getChild("resultbox")},vme?null:React__default.createElement("span",{className:ime("DropDownSelection-caret")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))))})},eme}(BaseSelection),DropDownSelection$1=themeable(localeable(DropDownSelection)),ChainedDropdownSelection=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state=tme.computed($P.value,$P.options),tme}return eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.options,nme=tme.value;(ame!==$P.options||$P.value!==nme)&&this.setState(this.computed(nme,ame))},eme.prototype.computed=function($P,tme){var ame=this.props.valueField,nme=[],rme=function(ime,ome){ome===void 0&&(ome=[]),ime.forEach(function(lme){var sme,cme=ame?lme[ame]:(sme=lme==null?void 0:lme.value)!==null&&sme!==void 0?sme:"";cme===$P?nme=__spreadArray(__spreadArray([],__read$3(ome),!1),[cme],!1):lme.children&&rme(lme.children,__spreadArray(__spreadArray([],__read$3(ome),!1),[cme],!1))})};return rme(tme),{values:nme,stacks:this.computedStask(nme)}},eme.prototype.getFlatOptions=function($P){return $P.map(function(tme){return omit$1(tme,"children")})},eme.prototype.handleSelect=function($P,tme){var ame=this,nme=this.state.values;nme.splice($P,nme.length-$P),tme&&nme.push(tme);var rme=this.computedStask(nme);this.setState({stacks:rme,values:nme},function(){var ime,ome;(ome=(ime=ame.props)===null||ime===void 0?void 0:ime.onChange)===null||ome===void 0||ome.call(ime,tme)})},eme.prototype.computedStask=function($P){var tme=this,ame=this.props,nme=ame.options,rme=ame.valueField,ime=function(ome,lme,sme){return sme.push(tme.getFlatOptions(ome)),ome.forEach(function(cme){var dme,ume=rme?cme[rme]:(dme=cme==null?void 0:cme.value)!==null&&dme!==void 0?dme:"";ume===$P[lme]&&cme.children&&$P.length-1>=lme&&ime(cme.children,lme+1,sme)}),sme};return ime(nme,0,[])},eme.prototype.render=function(){var $P=this,tme=this.state,ame=tme.stacks,nme=tme.values,rme=this.props,ime=rme.className,ome=rme.classnames,lme=rme.testIdBuilder;return React__default.createElement("div",{className:ome("ChainedDropdownSelection",ime)},ame.map(function(sme,cme){return React__default.createElement("div",{className:ome("ChainedDropdownSelection-item"),key:cme},React__default.createElement(DropDownSelection$1,__assign$3({},$P.props,{value:nme[cme],options:sme,onChange:function(dme){return $P.handleSelect(cme,dme)},testIdBuilder:lme==null?void 0:lme.getChild("chained-".concat(cme))})))}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),eme}(BaseSelection),ChainedDropdownSelection$1=themeable(localeable(uncontrollable(ChainedDropdownSelection,{value:"onChange"}))),option2value$3=function(x_){return x_.name},ConditionField=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.onChange,ame=$P.value,nme=$P.classnames,rme=$P.disabled,ime=$P.translate,ome=$P.searchable,lme=$P.selectMode,sme=lme===void 0?"list":lme,cme=$P.options,dme=$P.loadingConfig,ume=$P.testIdBuilder;return sme==="chained"?React__default.createElement(ChainedDropdownSelection$1,{multiple:!1,classnames:nme,translate:ime,options:cme,value:ame,valueField:"name",option2value:option2value$3,searchable:ome,disabled:rme,testIdBuilder:ume==null?void 0:ume.getChild("s-chained"),onChange:function(fme){tme(Array.isArray(fme)?fme[0]:fme)}}):sme==="tree"?React__default.createElement(DropDownSelection$1,{className:"is-scrollable",classnames:nme,translate:ime,multiple:!1,option2value:option2value$3,searchable:ome,disabled:rme,valueField:"name",mode:"tree",options:cme,value:ame,loadingConfig:dme,testIdBuilder:ume==null?void 0:ume.getChild("s-tree"),onChange:function(fme){tme(fme)}}):React__default.createElement(DropDownSelection$1,{classnames:nme,translate:ime,options:cme,value:ame,valueField:"name",option2value:option2value$3,searchable:ome,disabled:rme,testIdBuilder:ume==null?void 0:ume.getChild("s-default"),onChange:function(fme){return tme(Array.isArray(fme)?fme[0]:fme)}})},eme}(React__default.Component),ConditionField$1=themeable(localeable(ConditionField)),Value=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderCustomValue=function($P){var tme=this.props,ame=tme.renderEtrValue,nme=tme.data,rme=tme.classnames,ime=$P.inputSettings;return ame?ame(__assign$3(__assign$3({},ime.value),{name:"TMP_WHATEVER_NAME"}),{data:nme,onChange:$P.onChange,value:$P.value,inputClassName:rme(ime.className,$P.className)}):null},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.classnames,nme=tme.field,rme=tme.value,ime=tme.onChange,ome=tme.op,lme=tme.translate,sme=tme.data,cme=tme.disabled,dme=tme.formula,ume=tme.popOverContainer,fme=tme.mobileUI,pme=tme.testIdBuilder,hme=void 0;if(dme){dme=__assign$3(__assign$3({},dme),{translate:lme,classnames:ame,data:sme,value:rme??nme.defaultValue,onChange:ime,disabled:cme});var bme=dme!=null&&dme.inputSettings?__assign$3(__assign$3(__assign$3({},dme==null?void 0:dme.inputSettings),nme),{multiple:nme.type==="select"&&ome&&typeof ome=="string"&&["select_any_in","select_not_any_in"].includes(ome)}):void 0;hme=React__default.createElement(FormulaPicker$1,__assign$3({},dme,{inputSettings:bme,customInputRender:this.renderCustomValue}))}else if(nme.type==="text")hme=React__default.createElement(InputBox$1,{value:rme??nme.defaultValue,onChange:ime,placeholder:lme(nme.placeholder),disabled:cme,mobileUI:fme,testIdBuilder:pme==null?void 0:pme.getChild("text")});else if(nme.type==="number")hme=React__default.createElement(NumberInput$1,{placeholder:lme(nme.placeholder)||lme("NumberInput.placeholder"),step:nme.step,min:nme.minimum,max:nme.maximum,precision:nme.precision,value:rme??nme.defaultValue,onChange:ime,disabled:cme,mobileUI:fme,testIdBuilder:pme==null?void 0:pme.getChild("number")});else if(nme.type==="date")hme=React__default.createElement(DatePicker$1,{placeholder:lme(nme.placeholder)||lme("Date.placeholder"),format:nme.format||"YYYY-MM-DD",inputFormat:nme.inputFormat||"YYYY-MM-DD",value:rme??nme.defaultValue,onChange:ime,timeFormat:"",disabled:cme,popOverContainer:ume,mobileUI:fme,testIdBuilder:pme==null?void 0:pme.getChild("date")});else if(nme.type==="time")hme=React__default.createElement(DatePicker$1,{viewMode:"time",placeholder:lme(nme.placeholder)||lme("Time.placeholder"),format:nme.format||"HH:mm",inputFormat:nme.inputFormat||"HH:mm",value:rme??nme.defaultValue,onChange:ime,dateFormat:"",timeFormat:nme.format||"HH:mm",disabled:cme,popOverContainer:ume,mobileUI:fme,testIdBuilder:pme==null?void 0:pme.getChild("time")});else if(nme.type==="datetime")hme=React__default.createElement(DatePicker$1,{placeholder:lme(nme.placeholder)||lme("Time.placeholder"),format:nme.format||"",inputFormat:nme.inputFormat||"YYYY-MM-DD HH:mm",value:rme??nme.defaultValue,onChange:ime,timeFormat:nme.timeFormat||"HH:mm",disabled:cme,popOverContainer:ume,mobileUI:fme,testIdBuilder:pme==null?void 0:pme.getChild("datetime")});else if(nme.type==="select"){var mme=nme.autoComplete;hme=React__default.createElement(SelectWithRemoteOptions,{simpleValue:!0,options:nme.options,placeholder:lme(nme.placeholder)||"Select.placeholder",source:nme.source,autoComplete:mme,searchable:nme.searchable,value:($P=rme??nme.defaultValue)!==null&&$P!==void 0?$P:"",data:sme,onChange:ime,multiple:ome==="select_any_in"||ome==="select_not_any_in",disabled:cme,popOverContainer:ume,mobileUI:fme,maxTagCount:nme.maxTagCount,overflowTagPopover:nme.overflowTagPopover,testIdBuilder:pme==null?void 0:pme.getChild("select")})}else nme.type==="boolean"?hme=React__default.createElement("div",{className:ame("SwitchControl")},React__default.createElement(Switch$1,{value:rme??nme.defaultValue,onChange:ime,disabled:cme,testIdBuilder:pme==null?void 0:pme.getChild("switch")})):nme.type==="custom"?hme=this.renderCustomValue({value:rme??nme.defaultValue,onChange:ime,inputSettings:nme,testIdBuilder:pme==null?void 0:pme.getChild("custom")}):hme=this.renderCustomValue({value:rme??nme.defaultValue,onChange:ime,testIdBuilder:pme==null?void 0:pme.getChild("custom"),inputSettings:{value:omit$1(nme,["label","operators","defaultOp","defaultValue"])}});return React__default.createElement("div",{className:ame("CBValue")},hme)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderCustomValue",null),eme}(React__default.Component),Value$1=themeable(localeable(Value)),option2value$2=function(x_){return x_.value};function InputSwitch(x_){var eme=x_.options,$P=x_.value,tme=x_.onChange,ame=x_.classnames,nme=x_.disabled,rme=x_.popOverContainer,ime=x_.testIdBuilder;return React__default.createElement(PopOverContainer,{popOverContainer:rme,popOverRender:function(ome){var lme=ome.onClose;return React__default.createElement(GroupedSelection$1,{onClick:lme,option2value:option2value$2,onChange:tme,options:eme,value:$P,multiple:!1,disabled:nme,testIdBuilder:ime==null?void 0:ime.getChild("group")})}},function(ome){var lme=ome.onClick,sme=ome.isOpened,cme=ome.ref;return React__default.createElement("div",__assign$3({className:ame("CBInputSwitch",sme?"is-active":"")},ime==null?void 0:ime.getTestId()),React__default.createElement("a",{onClick:lme,ref:cme},React__default.createElement(Icon$1,{icon:"ellipsis-v"})))})}var InputSwitch$1=themeable(InputSwitch),option2value$1=function(x_){return x_.type},ConditionFunc=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleFuncChange=function($P){var tme=__assign$3({},this.props.value);tme.func=$P,this.props.onChange(tme)},eme.prototype.handleArgChange=function($P,tme){var ame=__assign$3({},this.props.value);ame.args=Array.isArray(ame.args)?ame.args.concat():[],ame.args.splice(tme,1,$P),this.props.onChange(ame)},eme.prototype.renderFunc=function($P){var tme=this,ame=this.props,nme=ame.classnames,rme=ame.fields,ime=ame.value,ome=ame.funcs,lme=ame.config,sme=ame.disabled,cme=ame.testIdBuilder;return React__default.createElement("div",{className:nme("CBFunc-args")},React__default.createElement("span",null,"("),Array.isArray($P.args)&&$P.args.length?React__default.createElement("div",null,$P.args.map(function(dme,ume){return React__default.createElement(Expression$1,{config:lme,key:ume,index:ume,fields:rme,value:ime==null?void 0:ime.args[ume],valueField:{type:dme.type},onChange:tme.handleArgChange,funcs:ome,disabled:sme,testIdBuilder:cme==null?void 0:cme.getChild("exp-".concat(ume))})})):null,React__default.createElement("span",null,")"))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.value,nme=tme.classnames,rme=tme.fieldClassName,ime=tme.funcs,ome=tme.disabled,lme=tme.testIdBuilder,sme=tme.translate,cme=ame?findTree(ime,function(dme){return dme.type===ame.func}):null;return React__default.createElement("div",{className:nme("CBFunc")},React__default.createElement(PopOverContainer,{popOverRender:function(dme){var ume=dme.onClose;return React__default.createElement(GroupedSelection$1,{onClick:ume,options:ime,value:cme==null?void 0:cme.type,option2value:option2value$1,onChange:$P.handleFuncChange,multiple:!1,testIdBuilder:lme==null?void 0:lme.getChild("group")})}},function(dme){var ume=dme.onClick,fme=dme.ref,pme=dme.isOpened;return React__default.createElement("div",{className:nme("CBFunc-select")},React__default.createElement(ResultBox$1,{className:nme("CBGroup-fieldInput",rme,pme?"is-active":""),ref:fme,allowInput:!1,result:cme,onResultChange:noop$9,onResultClick:ume,placeholder:sme("Condition.field_placeholder"),disabled:ome,testIdBuilder:lme==null?void 0:lme.getChild("resbox")},React__default.createElement("span",{className:nme("CBGroup-fieldCaret")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))))}),cme?this.renderFunc(cme):React__default.createElement("span",{className:nme("CBFunc-error")},sme("Condition.fun_error")))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleFuncChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleArgChange",null),eme}(React__default.Component),ConditionFunc$1=themeable(localeable(ConditionFunc)),fieldMap={value:"值",field:"字段",func:"函数"},Expression=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleInputTypeChange=function($P){var tme,ame=this.props.value,nme=this.props.onChange;$P==="value"?ame="":$P==="func"?ame={type:"func",func:(tme=findTree(this.props.funcs,function(rme){return rme.type}))===null||tme===void 0?void 0:tme.type,args:[]}:$P==="field"&&(ame={type:"field",field:""}),nme(ame,this.props.index)},eme.prototype.handleValueChange=function($P){this.props.onChange($P,this.props.index)},eme.prototype.handleFieldChange=function($P){var tme=this.props.value,ame=this.props.onChange;tme={type:"field",field:$P},ame(tme,this.props.index)},eme.prototype.handleFuncChange=function($P){var tme=this.props.value,ame=this.props.onChange;tme=__assign$3(__assign$3({},$P),{type:"func"}),ame(tme,this.props.index)},eme.prototype.render=function(){var $P=this.props,tme=$P.value,ame=$P.valueField,nme=$P.allowedTypes,rme=$P.funcs,ime=$P.fields,ome=$P.op;$P.classnames;var lme=$P.fieldClassName,sme=$P.config,cme=$P.data,dme=$P.disabled,ume=$P.searchable,fme=$P.formula,pme=$P.popOverContainer,hme=$P.selectMode,bme=$P.renderEtrValue,mme=$P.testIdBuilder,vme=((tme==null?void 0:tme.type)==="field"?"field":(tme==null?void 0:tme.type)==="func"?"func":tme!==void 0?"value":void 0)||(nme==null?void 0:nme[0])||"value",gme=nme||["value","field","func"];return(!Array.isArray(rme)||!rme.length)&&~gme.indexOf("func")&&gme.splice(gme.indexOf("func"),1),React__default.createElement(React__default.Fragment,null,vme==="value"?React__default.createElement(Value$1,{field:ame,value:tme,onChange:this.handleValueChange,op:ome,data:cme,disabled:dme,formula:fme,popOverContainer:pme,renderEtrValue:bme,testIdBuilder:mme==null?void 0:mme.getChild("tValue")}):null,vme==="field"?React__default.createElement(ConditionField$1,{value:tme==null?void 0:tme.field,onChange:this.handleFieldChange,fieldClassName:lme,disabled:dme,searchable:ume,popOverContainer:pme,selectMode:hme,testIdBuilder:mme==null?void 0:mme.getChild("tField"),options:ame?filterTree(ime,function(yme){return yme.children||yme.type===ame.type}):ime}):null,vme==="func"?React__default.createElement(ConditionFunc$1,{config:sme,value:tme,onChange:this.handleFuncChange,fieldClassName:lme,funcs:rme,fields:ime,allowedTypes:nme,disabled:dme,testIdBuilder:mme==null?void 0:mme.getChild("tFunc")}):null,gme.length>1?React__default.createElement(InputSwitch$1,{disabled:dme,value:vme,popOverContainer:pme,onChange:this.handleInputTypeChange,testIdBuilder:mme==null?void 0:mme.getChild("tSwitch"),options:gme.map(function(yme){return{label:fieldMap[yme],value:yme}})}):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleInputTypeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleValueChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleFieldChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFuncChange",null),eme}(React__default.Component),Expression$1=themeable(localeable(Expression)),OperationMap={equal:"Condition.equal",not_equal:"Condition.not_equal",less:"Condition.less",less_or_equal:"Condition.less_or_equal",greater:"Condition.greater",greater_or_equal:"Condition.greater_or_equal",between:"Condition.between",not_between:"Condition.not_between",is_empty:"Condition.is_empty",is_not_empty:"Condition.is_not_empty",like:"Condition.like",not_like:"Condition.not_like",starts_with:"Condition.starts_with",ends_with:"Condition.ends_with",select_equals:"Condition.select_equals",select_not_equals:"Condition.select_not_equals",select_any_in:"Condition.select_any_in",select_not_any_in:"Condition.select_not_any_in"},defaultConfig$1={valueTypes:["value"],types:{text:{placeholder:"Condition.placeholder",defaultOp:"equal",operators:["equal","not_equal","is_empty","is_not_empty","like","not_like","starts_with","ends_with"]},number:{defaultOp:"equal",operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_empty","is_not_empty"]},date:{defaultOp:"equal",operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_empty","is_not_empty"]},time:{defaultOp:"equal",operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_empty","is_not_empty"]},datetime:{defaultOp:"equal",operators:["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","is_empty","is_not_empty"]},select:{defaultOp:"select_equals",operators:["select_equals","select_not_equals","select_any_in","select_not_any_in"],valueTypes:["value"]},boolean:{defaultOp:"equal",operators:["equal","not_equal"]}}},option2value=function(x_){return x_.value},ConditionItem=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleLeftFieldSelect=function($P){var tme=__assign$3({},this.props.value),ame=this.props.onChange;tme.left=$P,ame(tme,this.props.index)},eme.prototype.handleLeftInputTypeChange=function($P){var tme=__assign$3({},this.props.value),ame=this.props.onChange;$P==="func"?tme.left={type:"func"}:tme.left="",ame(tme,this.props.index)},eme.prototype.handleLeftChange=function($P){var tme,ame,nme,rme,ime=this.props,ome=ime.fields,lme=ime.config,sme=findTree(ome,function(ume){return ume.name===$P.field}),cme=__assign$3(__assign$3({},this.props.value),{left:$P,op:(rme=(ame=(tme=sme==null?void 0:sme.defaultOp)!==null&&tme!==void 0?tme:Array.isArray(sme==null?void 0:sme.operators)&&sme.operators.length===1?sme.operators[0].value||sme.operators[0]:void 0)!==null&&ame!==void 0?ame:(nme=lme.types[sme==null?void 0:sme.type])===null||nme===void 0?void 0:nme.defaultOp)!==null&&rme!==void 0?rme:void 0,right:void 0}),dme=this.props.onChange;dme(cme,this.props.index)},eme.prototype.handleOperatorChange=function($P){var tme,ame=this.props,nme=ame.fields,rme=ame.value,ime=ame.index,ome=ame.onChange,lme=ame.formula,sme=(lme==null?void 0:lme.mode)==="input-group"&&(lme==null?void 0:lme.inputSettings),cme=findTree(nme,function(ume){var fme;return ume.name===((fme=rme==null?void 0:rme.left)===null||fme===void 0?void 0:fme.field)}),dme=__assign$3(__assign$3({},rme),{op:$P,right:sme?cme==null?void 0:cme.defaultValue:(tme=rme.right)!==null&&tme!==void 0?tme:cme==null?void 0:cme.defaultValue});ome(dme,ime)},eme.prototype.handleRightChange=function($P){var tme=__assign$3(__assign$3({},this.props.value),{right:$P}),ame=this.props.onChange;ame(tme,this.props.index)},eme.prototype.handleRightSubChange=function($P,tme){var ame,nme,rme;typeof $P=="string"?(rme=Object.assign({},(ame=this.props.value)===null||ame===void 0?void 0:ame.right),rme[$P]=tme):(rme=Array.isArray((nme=this.props.value)===null||nme===void 0?void 0:nme.right)?this.props.value.right.concat():[],rme[$P]=tme);var ime=__assign$3(__assign$3({},this.props.value),{right:rme}),ome=this.props.onChange;ome(ime,this.props.index)},eme.prototype.renderLeft=function(){var $P=this.props,tme=$P.value,ame=$P.fields,nme=$P.funcs,rme=$P.config,ime=$P.disabled,ome=$P.fieldClassName,lme=$P.searchable,sme=$P.popOverContainer,cme=$P.selectMode,dme=$P.testIdBuilder;return React__default.createElement(Expression$1,{config:rme,funcs:nme,value:tme.left,fieldClassName:ome,onChange:this.handleLeftChange,fields:ame,disabled:ime,searchable:lme,popOverContainer:sme,selectMode:cme,testIdBuilder:dme==null?void 0:dme.getChild("left"),allowedTypes:["field","func"].filter(function(ume){return ume==="field"||ume==="func"})})},eme.prototype.renderOperator=function(){var $P=this,tme,ame,nme=this.props,rme=nme.funcs,ime=nme.config,ome=nme.fields,lme=nme.value,sme=nme.classnames,cme=nme.disabled,dme=nme.popOverContainer,ume=nme.testIdBuilder,fme=nme.mobileUI,pme=lme==null?void 0:lme.left,hme=[];if((pme==null?void 0:pme.type)==="func"){var bme=findTree(rme,function(yme){return yme.type===pme.func});bme&&(hme=(tme=ime.types[bme.returnType])===null||tme===void 0?void 0:tme.operators)}else if((pme==null?void 0:pme.type)==="field"){var mme=findTree(ome,function(yme){return yme.name===pme.field});mme&&(hme=mme.operators||((ame=ime.types[mme.type])===null||ame===void 0?void 0:ame.operators))}if(Array.isArray(hme)&&hme.length){var vme=this.props.translate,gme=hme.map(function(yme){return typeof yme=="string"?{label:vme(OperationMap[yme]),value:yme}:yme});return React__default.createElement(PopOverContainer,{mobileUI:fme,disabled:!!(lme!=null&&lme.op&&hme.length<2),popOverContainer:dme||function(){return reactDomExports.findDOMNode($P)},popOverRender:function(yme){var _me=yme.onClose;return React__default.createElement(GroupedSelection$1,{onClick:_me,option2value,onChange:$P.handleOperatorChange,options:gme,value:lme.op,multiple:!1,testIdBuilder:ume==null?void 0:ume.getChild("operator-group")})}},function(yme){var _me,$me=yme.onClick,Cme=yme.isOpened,Sme=yme.ref;return yme.disabled,React__default.createElement("div",{className:sme("CBGroup-operator")},React__default.createElement(ResultBox$1,{className:sme("CBGroup-operatorInput",Cme?"is-active":""),ref:Sme,allowInput:!1,result:((_me=gme.find(function(Eme){return Eme.value===lme.op}))===null||_me===void 0?void 0:_me.label)||vme(OperationMap[lme==null?void 0:lme.op]),onResultChange:noop$9,onResultClick:$me,disabled:cme,placeholder:vme("Condition.cond_placeholder"),mobileUI:fme,testIdBuilder:ume==null?void 0:ume.getChild("operator-resbox")},fme?null:React__default.createElement("span",{className:sme("CBGroup-operatorCaret")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))))})}return null},eme.prototype.renderRight=function(){var $P=this.props,tme=$P.value,ame=$P.funcs,nme=$P.fields;if(!(tme!=null&&tme.op))return null;var rme=tme==null?void 0:tme.left,ime="";if((rme==null?void 0:rme.type)==="func"){var ome=findTree(ame,function(sme){return sme.type===rme.func});ome&&(ime=ome.returnType)}else if((rme==null?void 0:rme.type)==="field"){var lme=findTree(nme,function(sme){return sme.name===rme.field});lme&&(ime=lme.type)}return ime?this.renderRightWidgets(ime,tme.op):null},eme.prototype.renderRightWidgets=function($P,tme){var ame=this,nme,rme,ime,ome,lme=this.props,sme=lme.funcs,cme=lme.value,dme=lme.data,ume=lme.fields,fme=lme.config,pme=lme.classnames,hme=lme.disabled,bme=lme.formula,mme=lme.popOverContainer,vme=lme.renderEtrValue,gme=lme.testIdBuilder,yme=__assign$3(__assign$3({},fme.types[$P]),{type:$P}),_me;if(((nme=cme==null?void 0:cme.left)===null||nme===void 0?void 0:nme.type)==="field"){var $me=findTree(ume,function(Cme){return Cme.name===(cme==null?void 0:cme.left).field});$me&&(yme=__assign$3(__assign$3({},yme),$me),_me=(rme=yme.operators)===null||rme===void 0?void 0:rme.find(function(Cme){return typeof Cme!="string"&&(Cme==null?void 0:Cme.value)===tme}))}return tme==="is_empty"||tme==="is_not_empty"?null:tme==="between"||tme==="not_between"?React__default.createElement(React__default.Fragment,null,React__default.createElement(Expression$1,{key:"".concat(yme.name,"-0"),config:fme,funcs:sme,valueField:yme,value:(ime=cme.right)===null||ime===void 0?void 0:ime[0],data:dme,onChange:this.handleRightSubChange.bind(this,0),fields:ume,allowedTypes:(yme==null?void 0:yme.valueTypes)||fme.valueTypes||["value","field","func"],disabled:hme,formula:bme,popOverContainer:mme,renderEtrValue:vme,testIdBuilder:gme==null?void 0:gme.getChild("right-".concat(tme,"-").concat(yme.name,"-exp-0"))}),React__default.createElement("span",{className:pme("CBSeprator")},"~"),React__default.createElement(Expression$1,{key:"".concat(yme.name,"-1"),config:fme,funcs:sme,valueField:yme,value:(ome=cme.right)===null||ome===void 0?void 0:ome[1],data:dme,onChange:this.handleRightSubChange.bind(this,1),fields:ume,allowedTypes:(yme==null?void 0:yme.valueTypes)||fme.valueTypes||["value","field","func"],disabled:hme,formula:bme,popOverContainer:mme,renderEtrValue:vme,testIdBuilder:gme==null?void 0:gme.getChild("right-".concat(tme,"-").concat(yme.name,"-exp-1"))})):_me&&typeof _me!="string"&&_me.values?_me.values.map(function(Cme,Sme){return React__default.createElement("span",{key:Sme},React__default.createElement(Expression$1,{key:"".concat(yme.name,"-").concat(Sme),config:fme,op:tme,funcs:sme,valueField:__assign$3(__assign$3({},yme),{value:Cme}),value:getVariable(cme.right,Cme.name),data:dme,onChange:ame.handleRightSubChange.bind(ame,Cme.name),fields:ume,allowedTypes:(yme==null?void 0:yme.valueTypes)||fme.valueTypes||["value","field","func"],disabled:hme,formula:bme,popOverContainer:mme,renderEtrValue:vme,testIdBuilder:gme==null?void 0:gme.getChild("right-".concat(tme,"-").concat(yme.name,"-exp-").concat(Sme))}))}):React__default.createElement(Expression$1,{key:"".concat(yme.name,"-0"),config:fme,op:tme,funcs:sme,valueField:yme,value:cme.right,data:dme,onChange:this.handleRightChange,fields:ume,allowedTypes:(yme==null?void 0:yme.valueTypes)||fme.valueTypes||["value","field","func"],disabled:hme,formula:bme,popOverContainer:mme,renderEtrValue:vme,testIdBuilder:gme==null?void 0:gme.getChild("right-".concat(tme,"-").concat(yme.name,"-exp"))})},eme.prototype.render=function(){var $P=this.props.classnames;return React__default.createElement("div",{className:$P("CBItem")},this.renderLeft(),this.renderOperator(),this.renderRight())},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftFieldSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftInputTypeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleOperatorChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleRightChange",null),eme}(React__default.Component),ConditionItem$1=themeable(localeable(ConditionItem)),CBGroupOrItem=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={hover:!1},$P}return eme.prototype.handleItemChange=function($P){this.props.onChange($P,this.props.index)},eme.prototype.handleItemRemove=function(){var $P,tme;(tme=($P=this.props).onRemove)===null||tme===void 0||tme.call($P,this.props.index)},eme.prototype.handlerHoverIn=function($P){this.props.mobileUI||($P.stopPropagation(),this.setState({hover:!0}))},eme.prototype.handlerHoverOut=function($P){this.setState({hover:!1})},eme.prototype.handleIfChange=function($P){var tme=__assign$3(__assign$3({},this.props.value),{if:$P});this.props.onChange(tme,this.props.index)},eme.prototype.render=function(){var $P=this.props,tme=$P.builderMode,ame=$P.classnames,nme=$P.fieldClassName,rme=$P.value,ime=$P.config,ome=$P.fields,lme=$P.funcs,sme=$P.draggable,cme=$P.data,dme=$P.disabled,ume=$P.searchable,fme=$P.onDragStart,pme=$P.formula,hme=$P.popOverContainer,bme=$P.selectMode,mme=$P.renderEtrValue,vme=$P.isCollapsed,gme=$P.depth,yme=$P.isAddBtnVisibleOn,_me=$P.isAddGroupBtnVisibleOn,$me=$P.showIf,Cme=$P.formulaForIf,Sme=$P.testIdBuilder,Eme=$P.mobileUI;return React__default.createElement("div",{className:ame("CBGroupOrItem".concat(tme==="simple"?"-simple":""),{"is-mobile":Eme}),"data-id":rme==null?void 0:rme.id},React__default.createElement("div",{className:ame("CBGroupOrItem-body")},rme!=null&&rme.conjunction?React__default.createElement("div",{className:ame("CBGroupOrItem-body-group",{"is-hover":this.state.hover||Eme}),onMouseOver:this.handlerHoverIn,onMouseOut:this.handlerHoverOut},sme&&!dme?React__default.createElement("a",{draggable:!0,onDragStart:fme,className:ame("CBGroupOrItem-dragbar")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})):null,React__default.createElement(ConditionGroup$1,{isCollapsed:vme,draggable:sme,disabled:dme,searchable:ume,selectMode:bme,onDragStart:fme,config:ime,fields:ome,formula:pme,value:rme,onChange:this.handleItemChange,fieldClassName:nme,funcs:lme,removeable:!0,onRemove:this.handleItemRemove,data:cme,renderEtrValue:mme,depth:gme+1,isAddBtnVisibleOn:yme,isAddGroupBtnVisibleOn:_me,showIf:$me,formulaForIf:Cme,testIdBuilder:Sme==null?void 0:Sme.getChild("sub-".concat(gme))})):React__default.createElement("div",{className:ame("CBGroupOrItem-body-item")},sme&&!dme?React__default.createElement("a",{draggable:!0,onDragStart:fme,className:ame("CBGroupOrItem-dragbar")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})):null,React__default.createElement(ConditionItem$1,{disabled:dme,searchable:ume,config:ime,fields:ome,value:rme,onChange:this.handleItemChange,fieldClassName:nme,funcs:lme,data:cme,formula:pme,popOverContainer:hme,renderEtrValue:mme,selectMode:bme,testIdBuilder:Sme==null?void 0:Sme.getChild("cItem")}),$me?React__default.createElement(FormulaPicker$1$1,__assign$3({},Cme,{evalMode:!0,mixedMode:!1,header:"设置条件",value:(rme==null?void 0:rme.if)||"",onChange:this.handleIfChange}),function(xme){var Tme=xme.onClick;return React__default.createElement(TooltipWrapper$1,{tooltip:"配置启动条件，当前规则只有在此条件成立时才会生效",tooltipTheme:"dark",container:hme},React__default.createElement("a",{className:ame("CBIf",rme!=null&&rme.if?"is-active":""),onClick:Tme},React__default.createElement(Icon$1,{icon:"if",className:"icon"})))}):null,React__default.createElement(Button$1,{className:ame("CBDelete"),onClick:this.handleItemRemove,disabled:dme,level:"link",testIdBuilder:Sme==null?void 0:Sme.getChild("delete")},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemRemove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlerHoverIn",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlerHoverOut",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleIfChange",null),eme}(React__default.Component),GroupOrItem=themeable(CBGroupOrItem),ConditionGroup=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isCollapsed:!1},tme}return eme.prototype.componentDidUpdate=function($P){$P.isCollapsed!==this.props.isCollapsed&&this.setState({isCollapsed:this.props.isCollapsed||!1})},eme.prototype.getValue=function(){return __assign$3({id:guid$1(),conjunction:"and"},this.props.value)},eme.prototype.handleNotClick=function(){var $P=this.props.onChange,tme=this.getValue();tme.not=!tme.not,$P(tme)},eme.prototype.handleConjunctionChange=function($P){var tme=this.props.onChange,ame=this.getValue();ame.conjunction=$P.value,tme(ame)},eme.prototype.handleAdd=function(){var $P=this.props.onChange,tme=this.getValue();tme.children=Array.isArray(tme.children)?tme.children.concat():[],tme.children.push({id:guid$1()}),$P(tme)},eme.prototype.handleAddGroup=function(){var $P=this.props.onChange,tme=this.getValue();tme.children=Array.isArray(tme.children)?tme.children.concat():[],tme.children.push({id:guid$1(),conjunction:"and",children:[{id:guid$1()}]}),$P(tme)},eme.prototype.handleItemChange=function($P,tme){var ame=this.props.onChange,nme=this.getValue();nme.children=Array.isArray(nme.children)?nme.children.concat():[],nme.children.splice(tme,1,$P),ame(nme)},eme.prototype.handleItemRemove=function($P){var tme=this.props.onChange,ame=this.getValue();ame.children=Array.isArray(ame.children)?ame.children.concat():[],ame.children.splice($P,1),tme(ame)},eme.prototype.toggleCollapse=function(){this.setState(function($P){return{isCollapsed:!$P.isCollapsed}})},eme.prototype.render=function(){var $P=this,tme,ame,nme,rme=this.props,ime=rme.builderMode,ome=rme.classnames,lme=rme.fieldClassName,sme=rme.value,cme=rme.data,dme=rme.fields,ume=rme.funcs,fme=rme.config,pme=rme.removeable,hme=rme.onRemove,bme=rme.onDragStart,mme=rme.showNot,vme=rme.showANDOR,gme=vme===void 0?!1:vme,yme=rme.disabled,_me=rme.searchable,$me=rme.translate,Cme=rme.formula,Sme=rme.popOverContainer,Eme=rme.selectMode,xme=rme.renderEtrValue,Tme=rme.draggable,Ome=rme.depth,Rme=rme.isAddBtnVisibleOn,Nme=rme.isAddGroupBtnVisibleOn,Ime=rme.showIf,Pme=rme.formulaForIf,Mme=rme.testIdBuilder,kme=this.state.isCollapsed,Bme=Array.isArray(sme==null?void 0:sme.children)&&sme.children.length?kme?sme.children.slice(0,1):sme.children:null,Dme={depth:Ome,breadth:(tme=Bme==null?void 0:Bme.length)!==null&&tme!==void 0?tme:0},jme=(ame=Rme==null?void 0:Rme(Dme))!==null&&ame!==void 0?ame:!0,Vme=(nme=Nme==null?void 0:Nme(Dme))!==null&&nme!==void 0?nme:!0;return React__default.createElement("div",{className:ome("CBGroup"),"data-group-id":sme==null?void 0:sme.id},ime==="simple"&&gme===!1?null:React__default.createElement("div",{className:ome("CBGroup-toolbarCondition"),draggable:Tme,onDragStart:bme},Array.isArray(sme==null?void 0:sme.children)&&sme.children.length>1?React__default.createElement("div",{className:ome("CBGroup-toolbarCondition-arrow",{"is-collapse":kme}),onClick:this.toggleCollapse},React__default.createElement(SvgDownArrowBold,null)):null,mme?React__default.createElement(Button$1,{onClick:this.handleNotClick,className:"m-b-sm z-10",size:"xs",active:sme==null?void 0:sme.not,disabled:yme},$me("Condition.not")):null,React__default.createElement(EnhancedSelect,{options:[{label:$me("Condition.and"),value:"and"},{label:$me("Condition.or"),value:"or"}],testIdBuilder:Mme==null?void 0:Mme.getChild((sme==null?void 0:sme.conjunction)||"and"),value:(sme==null?void 0:sme.conjunction)||"and",disabled:yme,onChange:this.handleConjunctionChange,clearable:!1})),React__default.createElement("div",{className:ome("CBGroup-body-wrapper")},React__default.createElement("div",{className:ome("CBGroup-body")},Bme?Bme.map(function(Wme,Lme){return React__default.createElement(GroupOrItem,{draggable:Tme&&sme.children.length>1,onDragStart:bme,config:fme,key:Wme.id,fields:dme,fieldClassName:lme,value:Wme,index:Lme,onChange:$P.handleItemChange,funcs:ume,onRemove:$P.handleItemRemove,data:cme,disabled:yme,searchable:_me,builderMode:ime,formula:Cme,popOverContainer:Sme,renderEtrValue:xme,selectMode:Eme,isCollapsed:kme,depth:Ome,isAddBtnVisibleOn:Rme,isAddGroupBtnVisibleOn:Nme,showIf:Ime,formulaForIf:Pme,testIdBuilder:Mme==null?void 0:Mme.getChild("group-".concat(Lme))})}):React__default.createElement("div",{className:ome("CBGroup-placeholder ".concat(ime==="simple"?"simple":""))},$me("Condition.blank")),kme?React__default.createElement("div",{className:ome("CBGroup-body-collapse")},React__default.createElement("span",{onClick:this.toggleCollapse},$me("Condition.collapse")," ",React__default.createElement(SvgDownArrowBold,null))):null),kme?null:React__default.createElement("div",{className:ome("CBGroup-toolbar"),draggable:Tme,onDragStart:bme},React__default.createElement("div",{className:ome("CBGroup-toolbarConditionAdd".concat(ime==="simple"?"-simple":""))},React__default.createElement("div",{className:ome("ButtonGroup")},jme?React__default.createElement(Button$1,{level:"link",onClick:this.handleAdd,size:"xs",disabled:yme,testIdBuilder:Mme==null?void 0:Mme.getChild("add")},$me("Condition.add_cond")):null,Vme&&ime!=="simple"?React__default.createElement(Button$1,{onClick:this.handleAddGroup,size:"xs",disabled:yme,level:"link",testIdBuilder:Mme==null?void 0:Mme.getChild("add-group")},$me("Condition.add_cond_group")):null,pme?React__default.createElement(Button$1,{onClick:hme,size:"xs",disabled:yme,level:"link",testIdBuilder:Mme==null?void 0:Mme.getChild("add-del")},$me("Condition.delete_cond_group")):null)))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleNotClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConjunctionChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddGroup",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemRemove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleCollapse",null),eme}(React__default.Component),ConditionGroup$1=themeable(localeable(ConditionGroup)),QueryBuilder=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.config=__assign$3(__assign$3({},defaultConfig$1),$P.props.config),$P.lastMoveAt=0,$P}return eme.prototype.handleDragStart=function($P){var tme=this.props.draggable,ame=tme===void 0?!0:tme;if(ame){var nme=$P.currentTarget,rme=nme.closest("[data-id]");this.dragTarget=rme,this.host=rme.closest("[data-group-id]");var ime=rme.cloneNode(!0);ime.classList.add("is-ghost"),this.ghost=ime,$P.dataTransfer.setDragImage(rme.firstChild,0,0),nme.addEventListener("dragend",this.handleDragEnd),document.body.addEventListener("dragover",this.handleDragOver),document.body.addEventListener("drop",this.handleDragDrop),this.lastX=$P.clientX,this.lastY=$P.clientY,setTimeout(function(){rme.classList.add("is-dragging")},5)}},eme.prototype.handleDragOver=function($P){$P.preventDefault();var tme=$P.target.closest("[data-id]"),ame=$P.clientX-this.lastX,nme=$P.clientY-this.lastY,rme=Math.max(Math.abs(ame),Math.abs(nme)),ime=Date.now();if(rme<5){if(this.lastMoveAt!==0){if(ime-this.lastMoveAt>500){var ome=$P.target.closest("[data-group-id]");if(ome){this.host=ome,this.lastMoveAt=ime,this.lastX=0,this.lastY=0,this.handleDragOver($P);return}}}return}if(this.lastMoveAt=ime,this.lastX=$P.clientX,this.lastY=$P.clientY,!(!tme||tme.classList.contains("is-ghost")||tme.closest("[data-group-id]")!==this.host)){var lme=tme.parentElement,sme=[].slice.apply(lme.children),cme=sme.indexOf(tme);this.ghost.parentElement!==lme&&lme.appendChild(this.ghost);var dme=tme.getBoundingClientRect(),ume=nme>0&&$P.clientY>dme.top+dme.height/2,fme=ume?cme:cme-1,pme=sme.indexOf(this.ghost);fme!==pme&&(Animation.capture(lme),fme===sme.length-1?lme.appendChild(this.ghost):lme.insertBefore(this.ghost,sme[fme+1]),Animation.animateAll())}},eme.prototype.handleDragDrop=function(){var $P,tme,ame=this.props.onChange,nme=this.dragTarget.getAttribute("data-id"),rme=this.host.getAttribute("data-group-id"),ime=[].slice.call(this.ghost.parentElement.children),ome=ime.indexOf(this.dragTarget);~ome&&ime.splice(ome,1);var lme=ime.indexOf(this.ghost),sme=this.props.value,cme=findTreeIndex([sme],function(fme){return fme.id===nme});if(cme){var dme=getTree([sme],cme.concat());$P=__read$3(spliceTree([sme],cme,1),1),sme=$P[0];var ume=findTreeIndex([sme],function(fme){return fme.id===rme});ume&&(tme=__read$3(spliceTree([sme],ume.concat(lme),0,dme),1),sme=tme[0],ame(sme))}},eme.prototype.handleDragEnd=function($P){var tme,ame=$P.target;ame.removeEventListener("dragend",this.handleDragEnd),document.body.removeEventListener("dragover",this.handleDragOver),document.body.removeEventListener("drop",this.handleDragDrop),this.dragTarget.classList.remove("is-dragging"),delete this.dragTarget,(tme=this.ghost.parentElement)===null||tme===void 0||tme.removeChild(this.ghost),delete this.ghost},eme.prototype.handleClear=function(){this.props.onChange()},eme.prototype.highlightValue=function($P){var tme=this.props,ame=tme.classnames,nme=tme.translate,rme={__html:'<span class="label label-info">'.concat(nme("Condition.configured"),"</span>")};return React__default.createElement("div",{className:ame("CPGroup-result"),dangerouslySetInnerHTML:rme})},eme.prototype.renderBody=function($P,tme,ame){var nme=this.props,rme=nme.classnames,ime=nme.fieldClassName,ome=nme.fields,lme=nme.funcs,sme=nme.showNot,cme=nme.showANDOR,dme=nme.data,ume=nme.disabled,fme=nme.draggable,pme=fme===void 0?!0:fme,hme=nme.searchable,bme=nme.builderMode,mme=nme.formula,vme=nme.renderEtrValue,gme=nme.selectMode,yme=nme.isAddBtnVisibleOn,_me=nme.isAddGroupBtnVisibleOn,$me=nme.showIf,Cme=nme.formulaForIf,Sme=nme.testIdBuilder,Eme=Array.isArray(tme==null?void 0:tme.children)?__assign$3(__assign$3({},tme),{children:mapTree(tme.children,function(xme){return xme.id?xme:__assign$3(__assign$3({},xme),{id:guid$1()})})}):tme;return React__default.createElement(ConditionGroup$1,{builderMode:bme,config:this.config,funcs:lme||this.config.funcs,fields:ome||this.config.fields,value:Eme,onChange:$P,classnames:rme,fieldClassName:ime,removeable:!1,onDragStart:this.handleDragStart,showANDOR:cme,showNot:sme,data:dme,disabled:ume,draggable:pme,searchable:hme,formula:mme,renderEtrValue:vme,popOverContainer:ame,selectMode:gme,depth:1,isAddBtnVisibleOn:yme,isAddGroupBtnVisibleOn:_me,showIf:$me,formulaForIf:Cme,testIdBuilder:Sme==null?void 0:Sme.getChild("group")})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.placeholder,rme=tme.embed,ime=rme===void 0?!0:rme,ome=tme.pickerIcon,lme=tme.locale,sme=tme.translate,cme=tme.classPrefix,dme=tme.onChange,ume=tme.value,fme=tme.title,pme=tme.disabled,hme=tme.popOverContainer,bme=tme.testIdBuilder,mme=tme.mobileUI;if(ime)return this.renderBody(dme,ume,hme);var vme=ime===!1&&(!ume||!(ume!=null&&ume.hasOwnProperty("children"))||!Array.isArray(ume.children)||ume.children.length<1)?void 0:ume;return React__default.createElement(PickerContainer$1,{classnames:ame,classPrefix:cme,translate:sme,locale:lme,onConfirm:dme,value:ume,size:"md",popOverContainer:hme,bodyRender:function(gme){return $P.renderBody(gme.onChange,gme.value)},title:fme},function(gme){var yme=gme.onClick,_me=gme.isOpened;return React__default.createElement(ResultBox$1,{classnames:ame,classPrefix:cme,translate:sme,locale:lme,className:ame("CBGroup-result",{"is-active":_me}),allowInput:!1,clearable:!0,result:vme,itemRender:$P.highlightValue,onResultChange:noop$9,onClear:$P.handleClear,disabled:pme,borderMode:"full",placeholder:nme,actions:ome&&React__default.createElement("span",{className:ame("CBPicker-trigger"),onClick:yme},ome),mobileUI:mme,onResultClick:yme,testIdBuilder:bme==null?void 0:bme.getChild("result-box")})})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragStart",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragOver",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragDrop",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Event]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragEnd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"highlightValue",null),eme}(React__default.Component),ConditionBuilder=themeable(localeable(uncontrollable(QueryBuilder,{value:"onChange"}))),CityArea=reactExports.memo(function(x_){var eme,$P=x_.joinValues,tme=$P===void 0?!0:$P,ame=x_.extractValue,nme=ame===void 0?!0:ame,rme=x_.delimiter,ime=rme===void 0?",":rme,ome=x_.allowCity,lme=ome===void 0?!0:ome,sme=x_.allowDistrict,cme=sme===void 0?!0:sme,dme=x_.allowStreet,ume=dme===void 0?!1:dme,fme=x_.value,pme=fme===void 0?110101:fme,hme=x_.classnames,bme=x_.style,mme=x_.translate,vme=x_.disabled,gme=vme===void 0?!1:vme,yme=x_.popOverContainer,_me=x_.mobileUI,$me=__read$3(reactExports.useState([]),2),Cme=$me[0],Sme=$me[1],Eme=__read$3(reactExports.useState(""),2),xme=Eme[0],Tme=Eme[1],Ome=__read$3(reactExports.useState(),2),Rme=Ome[0],Nme=Ome[1],Ime=__read$3(useSetState(),2),Pme=Ime[0],Mme=Ime[1],kme=__read$3(useSetState({columns:[]}),2),Bme=kme[0],Dme=kme[1],jme=__read$3(reactExports.useState(!1),2),Vme=jme[0],Wme=jme[1],Lme=function(Kme,Zme){for(var nbe,lbe,ibe,abe,obe;Kme[Zme++];)Kme[Zme++]=-1;var hbe=__read$3(Kme,3),ube=hbe[0],mbe=hbe[1],pbe=hbe[2];mbe===-1&&(mbe=(lbe=(nbe=Pme.city)===null||nbe===void 0?void 0:nbe[ube])===null||lbe===void 0?void 0:lbe[0]),pbe===-1&&(pbe=(obe=(abe=(ibe=Pme.district)===null||ibe===void 0?void 0:ibe[ube])===null||abe===void 0?void 0:abe[mbe])===null||obe===void 0?void 0:obe[0]);var _be=[ube,mbe,pbe];cme||_be.splice(2,1),lme||_be.splice(1,1),Sme(_be)},zme=function(){var Kme=x_.onChange,Zme=__read$3(Cme,3),nbe=Zme[0],lbe=Zme[1],ibe=Zme[2],abe=cme&&ibe?ibe:lme&&lbe?lbe:nbe;Kme((typeof nme>"u"?tme:nme)?abe?ume&&xme?[abe,xme].join(ime):String(abe):"":{code:abe,provinceCode:nbe,province:Pme[nbe],cityCode:lbe,city:Pme[lbe],districtCode:ibe,district:Pme[ibe],street:xme})},Ume=function(){var Kme=Cme.map(function(Zme){return{text:Pme[Zme],value:Zme}});Nme(Kme),zme(),Wme(!1)},Gme=function(){Wme(!1),x_.onCancel&&x_.onCancel()},Jme=function(){var Kme,Zme=pme&&pme.code||typeof pme=="number"&&pme||typeof pme=="string"&&/(\d{6})/.test(pme)&&RegExp.$1||110101,nbe=[];if(Zme&&Pme[Zme]){Zme=parseInt(Zme,10);var lbe=Zme-Zme%1e4,ibe=Zme-Zme%100;if(Pme[lbe]&&(nbe[0]=lbe),Pme[ibe]&&lme?nbe[1]=ibe:~((Kme=Pme.city[lbe])===null||Kme===void 0?void 0:Kme.indexOf(Zme))&&lme&&(nbe[1]=Zme),Zme%100&&cme&&(nbe[2]=Zme),Sme(nbe),x_.value){var abe=nbe.map(function(obe){return{text:Pme[obe],value:obe}});Nme(abe)}}},Yme=function(){if(Pme){var Kme=__read$3(Cme,3),Zme=Kme[0],nbe=Kme[1],lbe=Kme[2],ibe=Pme.province.map(function(ube){return{text:Pme[ube],value:ube,disabled:gme}}),abe=nbe?Pme.city[Zme].map(function(ube){return{text:Pme[ube],value:ube,disabled:gme}}):[],obe=nbe&&lbe?Pme.district[Zme][nbe].map(function(ube){return{text:Pme[ube],value:ube,disabled:gme}}):[],hbe=[{options:ibe},{options:abe},{options:obe}];(!cme||!lme)&&hbe.splice(2,1),lme||hbe.splice(1,1),Dme({columns:hbe})}},Qme=function(){__vitePreload(()=>import("./CityDB-BE15Pmsw.js"),[]).then(function(Kme){Mme(__assign$3(__assign$3({},Kme.default),{province:Kme.province,city:Kme.city,district:Kme.district}))})};reactExports.useEffect(function(){Qme()},[]),reactExports.useEffect(function(){Pme&&(x_.value||Vme)&&Jme()},[Pme,Vme,x_.value]),reactExports.useEffect(function(){xme&&zme()},[xme]),useUpdateEffect(function(){Cme.length&&Yme()},[Cme]);var Xme=(eme=Rme==null?void 0:Rme.filter(function(Kme){return Kme==null?void 0:Kme.value}))===null||eme===void 0?void 0:eme.map(function(Kme){return Kme.text}).join(ime);return jsxs("div",{className:hme("CityArea"),style:bme,children:[jsx(ResultBox$1,{className:hme("CityArea-Input",Vme?"is-active":""),allowInput:!1,result:Xme,onResultChange:function(){},onResultClick:function(){return Wme(!Vme)},placeholder:mme("Select.placeholder"),mobileUI:_me,disabled:gme}),ume&&Cme[0]?jsx("input",{className:hme("CityArea-Input"),value:xme,onChange:function(Kme){return Tme(Kme.currentTarget.value)},placeholder:mme("City.street"),disabled:gme,readOnly:!0}):null,jsx(PopUp$1,{className:hme("CityArea-popup"),container:yme,isShow:Vme,showConfirm:!0,onConfirm:Ume,onHide:Gme,children:jsx(Picker$1,{className:"CityArea-picker",columns:Bme.columns,onChange:Lme,showToolbar:!1,labelField:"text",itemHeight:40,value:Cme,classnames:x_.classnames,classPrefix:x_.classPrefix})})]})}),CityArea$1=themeable(localeable(uncontrollable(CityArea,{value:"onChange"}))),ListMenu=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderItem=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.classnames,ome=rme.itemRender,lme=rme.disabled,sme=rme.getItemProps,cme=rme.highlightIndex,dme=rme.selectedOptions;rme.mobileUI;var ume=rme.onSelect,fme=rme.testIdBuilder;if(Array.isArray(tme.children)&&tme.children.length){var pme={items:[],index:$P.index};return $P.items.push(React__default.createElement("div",{className:ime("ListMenu-group"),key:ame},React__default.createElement("div",{className:ime("ListMenu-groupLabel")},ome(tme)),tme.children.reduce(function(bme,mme,vme){return nme.renderItem(bme,mme,vme)},pme).items)),$P.index=pme.index,$P}var hme=$P.index++;return $P.items.push(React__default.createElement("div",__assign$3({className:ime("ListMenu-item",tme.className,lme||tme.disabled?"is-disabled":"",hme===cme?"is-highlight":"",~(dme||[]).indexOf(tme)?"is-active":""),key:hme,onClick:ume?function(bme){return ume(bme,tme)}:void 0},fme==null?void 0:fme.getChild(tme.value||hme).getTestId(),sme({item:tme,index:hme})),React__default.createElement("div",{className:ime("ListMenu-itemLabel")},ome(tme)))),$P},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.options,rme=tme.placeholder,ime=tme.prefix,ome=tme.children,lme=tme.mobileUI;tme.selectedOptions;var sme=this.props.translate;return React__default.createElement("div",{className:ame("ListMenu",{"is-mobile":lme})},ime,Array.isArray(nme)&&nme.length?nme.reduce(function(cme,dme,ume){return $P.renderItem(cme,dme,ume)},{items:[],index:0}).items:React__default.createElement("span",{className:ame("ListMenu-placeholder")},sme(rme)),ome)},eme.defaultProps={placeholder:"placeholder.noOption",itemRender:function($P){return React__default.createElement(React__default.Fragment,null,$P.label)},getItemProps:function($P){return null}},eme}(React__default.Component),ListMenu$1=themeable(localeable(ListMenu)),isCheckBoxInput=x_=>x_.type==="checkbox",isDateObject=x_=>x_ instanceof Date,isNullOrUndefined$1=x_=>x_==null;const isObjectType=x_=>typeof x_=="object";var isObject$5=x_=>!isNullOrUndefined$1(x_)&&!Array.isArray(x_)&&isObjectType(x_)&&!isDateObject(x_),getEventValue=x_=>isObject$5(x_)&&x_.target?isCheckBoxInput(x_.target)?x_.target.checked:x_.target.value:x_,getNodeParentName=x_=>x_.substring(0,x_.search(/\.\d+(\.|$)/))||x_,isNameInFieldArray=(x_,eme)=>x_.has(getNodeParentName(eme)),compact$2=x_=>Array.isArray(x_)?x_.filter(Boolean):[],isUndefined$4=x_=>x_===void 0,get$3=(x_,eme,$P)=>{if(!eme||!isObject$5(x_))return $P;const tme=compact$2(eme.split(/[,[\].]+?/)).reduce((ame,nme)=>isNullOrUndefined$1(ame)?ame:ame[nme],x_);return isUndefined$4(tme)||tme===x_?isUndefined$4(x_[eme])?$P:x_[eme]:tme};const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React__default.createContext(null),useFormContext=()=>React__default.useContext(HookFormContext),FormProvider=x_=>{const{children:eme,...$P}=x_;return React__default.createElement(HookFormContext.Provider,{value:$P},eme)};var getProxyFormState=(x_,eme,$P,tme=!0)=>{const ame={defaultValues:eme._defaultValues};for(const nme in x_)Object.defineProperty(ame,nme,{get:()=>{const rme=nme;return eme._proxyFormState[rme]!==VALIDATION_MODE.all&&(eme._proxyFormState[rme]=!tme||VALIDATION_MODE.all),$P&&($P[rme]=!0),x_[rme]}});return ame},isEmptyObject=x_=>isObject$5(x_)&&!Object.keys(x_).length,shouldRenderFormState=(x_,eme,$P)=>{const{name:tme,...ame}=x_;return isEmptyObject(ame)||Object.keys(ame).length>=Object.keys(eme).length||Object.keys(ame).find(nme=>eme[nme]===(!$P||VALIDATION_MODE.all))},convertToArrayPayload=x_=>Array.isArray(x_)?x_:[x_],shouldSubscribeByName=(x_,eme,$P)=>$P&&eme?x_===eme:!x_||!eme||x_===eme||convertToArrayPayload(x_).some(tme=>tme&&(tme.startsWith(eme)||eme.startsWith(tme)));function useSubscribe(x_){const eme=React__default.useRef(x_);eme.current=x_,React__default.useEffect(()=>{const $P=!x_.disabled&&eme.current.subject.subscribe({next:eme.current.callback});return()=>{$P&&$P.unsubscribe()}},[x_.disabled])}function useFormState(x_){const eme=useFormContext(),{control:$P=eme.control,disabled:tme,name:ame,exact:nme}=x_||{},[rme,ime]=React__default.useState($P._formState),ome=React__default.useRef(!0),lme=React__default.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),sme=React__default.useRef(ame);return sme.current=ame,useSubscribe({disabled:tme,callback:React__default.useCallback(cme=>ome.current&&shouldSubscribeByName(sme.current,cme.name,nme)&&shouldRenderFormState(cme,lme.current)&&ime({...$P._formState,...cme}),[$P,nme]),subject:$P._subjects.state}),React__default.useEffect(()=>(ome.current=!0,()=>{ome.current=!1}),[]),getProxyFormState(rme,$P,lme.current,!1)}var isString$4=x_=>typeof x_=="string",generateWatchOutput=(x_,eme,$P,tme)=>{const ame=Array.isArray(x_);return isString$4(x_)?(tme&&eme.watch.add(x_),get$3($P,x_)):ame?x_.map(nme=>(tme&&eme.watch.add(nme),get$3($P,nme))):(tme&&(eme.watchAll=!0),$P)},isFunction$3=x_=>typeof x_=="function",objectHasFunction=x_=>{for(const eme in x_)if(isFunction$3(x_[eme]))return!0;return!1};function useWatch(x_){const eme=useFormContext(),{control:$P=eme.control,name:tme,defaultValue:ame,disabled:nme,exact:rme}=x_||{},ime=React__default.useRef(tme);ime.current=tme,useSubscribe({disabled:nme,subject:$P._subjects.watch,callback:React__default.useCallback(sme=>{if(shouldSubscribeByName(ime.current,sme.name,rme)){const cme=generateWatchOutput(ime.current,$P._names,sme.values||$P._formValues);lme(isUndefined$4(ime.current)||isObject$5(cme)&&!objectHasFunction(cme)?{...cme}:Array.isArray(cme)?[...cme]:isUndefined$4(cme)?ame:cme)}},[$P,rme,ame])});const[ome,lme]=React__default.useState(isUndefined$4(ame)?$P._getWatch(tme):ame);return React__default.useEffect(()=>$P._removeUnmounted()),ome}function useController(x_){const eme=useFormContext(),{name:$P,control:tme=eme.control,shouldUnregister:ame}=x_,nme=isNameInFieldArray(tme._names.array,$P),rme=useWatch({control:tme,name:$P,defaultValue:get$3(tme._formValues,$P,get$3(tme._defaultValues,$P,x_.defaultValue)),exact:!0}),ime=useFormState({control:tme,name:$P}),ome=React__default.useRef(tme.register($P,{...x_.rules,value:rme}));return React__default.useEffect(()=>{const lme=(sme,cme)=>{const dme=get$3(tme._fields,sme);dme&&(dme._f.mount=cme)};return lme($P,!0),()=>{const sme=tme._options.shouldUnregister||ame;(nme?sme&&!tme._stateFlags.action:sme)?tme.unregister($P):lme($P,!1)}},[$P,tme,nme,ame]),{field:{name:$P,value:rme,onChange:React__default.useCallback(lme=>ome.current.onChange({target:{value:getEventValue(lme),name:$P},type:EVENTS.CHANGE}),[$P]),onBlur:React__default.useCallback(()=>ome.current.onBlur({target:{value:get$3(tme._formValues,$P),name:$P},type:EVENTS.BLUR}),[$P,tme]),ref:lme=>{const sme=get$3(tme._fields,$P);sme&&lme&&(sme._f.ref=lme)}},formState:ime,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get$3(ime.errors,$P)},isDirty:{enumerable:!0,get:()=>!!get$3(ime.dirtyFields,$P)},isTouched:{enumerable:!0,get:()=>!!get$3(ime.touchedFields,$P)},error:{enumerable:!0,get:()=>get$3(ime.errors,$P)}})}}const Controller$1=x_=>x_.render(useController(x_));var appendErrors=(x_,eme,$P,tme,ame)=>eme?{...$P[x_],types:{...$P[x_]&&$P[x_].types?$P[x_].types:{},[tme]:ame||!0}}:{},isKey$1=x_=>/^\w*$/.test(x_),stringToPath$1=x_=>compact$2(x_.replace(/["|']|\]/g,"").split(/\.|\[/));function set$3(x_,eme,$P){let tme=-1;const ame=isKey$1(eme)?[eme]:stringToPath$1(eme),nme=ame.length,rme=nme-1;for(;++tme<nme;){const ime=ame[tme];let ome=$P;if(tme!==rme){const lme=x_[ime];ome=isObject$5(lme)||Array.isArray(lme)?lme:isNaN(+ame[tme+1])?{}:[]}x_[ime]=ome,x_=x_[ime]}return x_}const focusFieldBy=(x_,eme,$P)=>{for(const tme of $P||Object.keys(x_)){const ame=get$3(x_,tme);if(ame){const{_f:nme,...rme}=ame;if(nme&&eme(nme.name)){if(nme.ref.focus){nme.ref.focus();break}else if(nme.refs&&nme.refs[0].focus){nme.refs[0].focus();break}}else isObject$5(rme)&&focusFieldBy(rme,eme)}}};var generateId=()=>{const x_=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,eme=>{const $P=(Math.random()*16+x_)%16|0;return(eme=="x"?$P:$P&3|8).toString(16)})},getFocusFieldName=(x_,eme,$P={})=>$P.shouldFocus||isUndefined$4($P.shouldFocus)?$P.focusName||`${x_}.${isUndefined$4($P.focusIndex)?eme:$P.focusIndex}.`:"",isWatched=(x_,eme,$P)=>!$P&&(eme.watchAll||eme.watch.has(x_)||[...eme.watch].some(tme=>x_.startsWith(tme)&&/^\.\w+/.test(x_.slice(tme.length)))),updateFieldArrayRootError=(x_,eme,$P)=>{const tme=compact$2(get$3(x_,$P));return set$3(tme,"root",eme[$P]),set$3(x_,$P,tme),x_},isBoolean=x_=>typeof x_=="boolean",isFileInput=x_=>x_.type==="file",isMessage=x_=>isString$4(x_)||React__default.isValidElement(x_),isRadioInput=x_=>x_.type==="radio",isRegex=x_=>x_ instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=x_=>{if(Array.isArray(x_)){if(x_.length>1){const eme=x_.filter($P=>$P&&$P.checked&&!$P.disabled).map($P=>$P.value);return{value:eme,isValid:!!eme.length}}return x_[0].checked&&!x_[0].disabled?x_[0].attributes&&!isUndefined$4(x_[0].attributes.value)?isUndefined$4(x_[0].value)||x_[0].value===""?validResult:{value:x_[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=x_=>Array.isArray(x_)?x_.reduce((eme,$P)=>$P&&$P.checked&&!$P.disabled?{isValid:!0,value:$P.value}:eme,defaultReturn):defaultReturn;function getValidateError(x_,eme,$P="validate"){if(isMessage(x_)||Array.isArray(x_)&&x_.every(isMessage)||isBoolean(x_)&&!x_)return{type:$P,message:isMessage(x_)?x_:"",ref:eme}}var getValueAndMessage=x_=>isObject$5(x_)&&!isRegex(x_)?x_:{value:x_,message:""},validateField=async(x_,eme,$P,tme,ame)=>{const{ref:nme,refs:rme,required:ime,maxLength:ome,minLength:lme,min:sme,max:cme,pattern:dme,validate:ume,name:fme,valueAsNumber:pme,mount:hme,disabled:bme}=x_._f;if(!hme||bme)return{};const mme=rme?rme[0]:nme,vme=xme=>{tme&&isString$4(xme)&&(mme.setCustomValidity(xme),mme.reportValidity())},gme={},yme=isRadioInput(nme),_me=isCheckBoxInput(nme),$me=yme||_me,Cme=(pme||isFileInput(nme))&&!nme.value||eme===""||Array.isArray(eme)&&!eme.length,Sme=appendErrors.bind(null,fme,$P,gme),Eme=(xme,Tme,Ome,Rme=INPUT_VALIDATION_RULES.maxLength,Nme=INPUT_VALIDATION_RULES.minLength)=>{const Ime=xme?Tme:Ome;gme[fme]={type:xme?Rme:Nme,message:Ime,ref:nme,...Sme(xme?Rme:Nme,Ime)}};if(ame?!Array.isArray(eme)||!eme.length:ime&&(!$me&&(Cme||isNullOrUndefined$1(eme))||isBoolean(eme)&&!eme||_me&&!getCheckboxValue(rme).isValid||yme&&!getRadioValue(rme).isValid)){const{value:xme,message:Tme}=isMessage(ime)?{value:!!ime,message:ime}:getValueAndMessage(ime);if(xme&&(gme[fme]={type:INPUT_VALIDATION_RULES.required,message:Tme,ref:mme,...Sme(INPUT_VALIDATION_RULES.required,Tme)},!$P))return vme(Tme),gme}if(!Cme&&(!isNullOrUndefined$1(sme)||!isNullOrUndefined$1(cme))){let xme,Tme;const Ome=getValueAndMessage(cme),Rme=getValueAndMessage(sme);if(!isNullOrUndefined$1(eme)&&!isNaN(eme)){const Nme=nme.valueAsNumber||eme&&+eme;isNullOrUndefined$1(Ome.value)||(xme=Nme>Ome.value),isNullOrUndefined$1(Rme.value)||(Tme=Nme<Rme.value)}else{const Nme=nme.valueAsDate||new Date(eme),Ime=kme=>new Date(new Date().toDateString()+" "+kme),Pme=nme.type=="time",Mme=nme.type=="week";isString$4(Ome.value)&&eme&&(xme=Pme?Ime(eme)>Ime(Ome.value):Mme?eme>Ome.value:Nme>new Date(Ome.value)),isString$4(Rme.value)&&eme&&(Tme=Pme?Ime(eme)<Ime(Rme.value):Mme?eme<Rme.value:Nme<new Date(Rme.value))}if((xme||Tme)&&(Eme(!!xme,Ome.message,Rme.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!$P))return vme(gme[fme].message),gme}if((ome||lme)&&!Cme&&(isString$4(eme)||ame&&Array.isArray(eme))){const xme=getValueAndMessage(ome),Tme=getValueAndMessage(lme),Ome=!isNullOrUndefined$1(xme.value)&&eme.length>xme.value,Rme=!isNullOrUndefined$1(Tme.value)&&eme.length<Tme.value;if((Ome||Rme)&&(Eme(Ome,xme.message,Tme.message),!$P))return vme(gme[fme].message),gme}if(dme&&!Cme&&isString$4(eme)){const{value:xme,message:Tme}=getValueAndMessage(dme);if(isRegex(xme)&&!eme.match(xme)&&(gme[fme]={type:INPUT_VALIDATION_RULES.pattern,message:Tme,ref:nme,...Sme(INPUT_VALIDATION_RULES.pattern,Tme)},!$P))return vme(Tme),gme}if(ume){if(isFunction$3(ume)){const xme=await ume(eme),Tme=getValidateError(xme,mme);if(Tme&&(gme[fme]={...Tme,...Sme(INPUT_VALIDATION_RULES.validate,Tme.message)},!$P))return vme(Tme.message),gme}else if(isObject$5(ume)){let xme={};for(const Tme in ume){if(!isEmptyObject(xme)&&!$P)break;const Ome=getValidateError(await ume[Tme](eme),mme,Tme);Ome&&(xme={...Ome,...Sme(Tme,Ome.message)},vme(Ome.message),$P&&(gme[fme]=xme))}if(!isEmptyObject(xme)&&(gme[fme]={ref:mme,...xme},!$P))return gme}}return vme(!0),gme};function append(x_,eme){return[...x_,...convertToArrayPayload(eme)]}var isPlainObject$3=x_=>{const eme=x_.constructor&&x_.constructor.prototype;return isObject$5(eme)&&eme.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject$1(x_){let eme;const $P=Array.isArray(x_);if(x_ instanceof Date)eme=new Date(x_);else if(x_ instanceof Set)eme=new Set(x_);else if(!(isWeb&&(x_ instanceof Blob||x_ instanceof FileList))&&($P||isObject$5(x_)))if(eme=$P?[]:{},!Array.isArray(x_)&&!isPlainObject$3(x_))eme=x_;else for(const tme in x_)eme[tme]=cloneObject$1(x_[tme]);else return x_;return eme}var fillEmptyArray=x_=>Array.isArray(x_)?x_.map(()=>{}):void 0,getValidationModes=x_=>({isOnSubmit:!x_||x_===VALIDATION_MODE.onSubmit,isOnBlur:x_===VALIDATION_MODE.onBlur,isOnChange:x_===VALIDATION_MODE.onChange,isOnAll:x_===VALIDATION_MODE.all,isOnTouch:x_===VALIDATION_MODE.onTouched});function insert(x_,eme,$P){return[...x_.slice(0,eme),...convertToArrayPayload($P),...x_.slice(eme)]}var moveArrayAt=(x_,eme,$P)=>Array.isArray(x_)?(isUndefined$4(x_[$P])&&(x_[$P]=void 0),x_.splice($P,0,x_.splice(eme,1)[0]),x_):[];function prepend(x_,eme){return[...convertToArrayPayload(eme),...convertToArrayPayload(x_)]}function removeAtIndexes(x_,eme){let $P=0;const tme=[...x_];for(const ame of eme)tme.splice(ame-$P,1),$P++;return compact$2(tme).length?tme:[]}var removeArrayAt=(x_,eme)=>isUndefined$4(eme)?[]:removeAtIndexes(x_,convertToArrayPayload(eme).sort(($P,tme)=>$P-tme)),swapArrayAt=(x_,eme,$P)=>{x_[eme]=[x_[$P],x_[$P]=x_[eme]][0]};function baseGet$2(x_,eme){const $P=eme.slice(0,-1).length;let tme=0;for(;tme<$P;)x_=isUndefined$4(x_)?tme++:x_[eme[tme++]];return x_}function isEmptyArray(x_){for(const eme in x_)if(!isUndefined$4(x_[eme]))return!1;return!0}function unset(x_,eme){const $P=isKey$1(eme)?[eme]:stringToPath$1(eme),tme=$P.length==1?x_:baseGet$2(x_,$P),ame=$P[$P.length-1];let nme;tme&&delete tme[ame];for(let rme=0;rme<$P.slice(0,-1).length;rme++){let ime=-1,ome;const lme=$P.slice(0,-(rme+1)),sme=lme.length-1;for(rme>0&&(nme=x_);++ime<lme.length;){const cme=lme[ime];ome=ome?ome[cme]:x_[cme],sme===ime&&(isObject$5(ome)&&isEmptyObject(ome)||Array.isArray(ome)&&isEmptyArray(ome))&&(nme?delete nme[cme]:delete x_[cme]),nme=ome}}return x_}var updateAt=(x_,eme,$P)=>(x_[eme]=$P,x_);function useFieldArray(x_){const eme=useFormContext(),{control:$P=eme.control,name:tme,keyName:ame="id",shouldUnregister:nme}=x_,[rme,ime]=React__default.useState($P._getFieldArray(tme)),ome=React__default.useRef($P._getFieldArray(tme).map(generateId)),lme=React__default.useRef(rme),sme=React__default.useRef(tme),cme=React__default.useRef(!1);sme.current=tme,lme.current=rme,$P._names.array.add(tme),x_.rules&&$P.register(tme,x_.rules);const dme=React__default.useCallback(({values:_me,name:$me})=>{if($me===sme.current||!$me){const Cme=get$3(_me,sme.current);Array.isArray(Cme)&&(ime(Cme),ome.current=Cme.map(generateId))}},[]);useSubscribe({callback:dme,subject:$P._subjects.array});const ume=React__default.useCallback(_me=>{cme.current=!0,$P._updateFieldArray(tme,_me)},[$P,tme]),fme=(_me,$me)=>{const Cme=convertToArrayPayload(cloneObject$1(_me)),Sme=append($P._getFieldArray(tme),Cme);$P._names.focus=getFocusFieldName(tme,Sme.length-1,$me),ome.current=append(ome.current,Cme.map(generateId)),ume(Sme),ime(Sme),$P._updateFieldArray(tme,Sme,append,{argA:fillEmptyArray(_me)})},pme=(_me,$me)=>{const Cme=convertToArrayPayload(cloneObject$1(_me)),Sme=prepend($P._getFieldArray(tme),Cme);$P._names.focus=getFocusFieldName(tme,0,$me),ome.current=prepend(ome.current,Cme.map(generateId)),ume(Sme),ime(Sme),$P._updateFieldArray(tme,Sme,prepend,{argA:fillEmptyArray(_me)})},hme=_me=>{const $me=removeArrayAt($P._getFieldArray(tme),_me);ome.current=removeArrayAt(ome.current,_me),ume($me),ime($me),$P._updateFieldArray(tme,$me,removeArrayAt,{argA:_me})},bme=(_me,$me,Cme)=>{const Sme=convertToArrayPayload(cloneObject$1($me)),Eme=insert($P._getFieldArray(tme),_me,Sme);$P._names.focus=getFocusFieldName(tme,_me,Cme),ome.current=insert(ome.current,_me,Sme.map(generateId)),ume(Eme),ime(Eme),$P._updateFieldArray(tme,Eme,insert,{argA:_me,argB:fillEmptyArray($me)})},mme=(_me,$me)=>{const Cme=$P._getFieldArray(tme);swapArrayAt(Cme,_me,$me),swapArrayAt(ome.current,_me,$me),ume(Cme),ime(Cme),$P._updateFieldArray(tme,Cme,swapArrayAt,{argA:_me,argB:$me},!1)},vme=(_me,$me)=>{const Cme=$P._getFieldArray(tme);moveArrayAt(Cme,_me,$me),moveArrayAt(ome.current,_me,$me),ume(Cme),ime(Cme),$P._updateFieldArray(tme,Cme,moveArrayAt,{argA:_me,argB:$me},!1)},gme=(_me,$me)=>{const Cme=cloneObject$1($me),Sme=updateAt($P._getFieldArray(tme),_me,Cme);ome.current=[...Sme].map((Eme,xme)=>!Eme||xme===_me?generateId():ome.current[xme]),ume(Sme),ime([...Sme]),$P._updateFieldArray(tme,Sme,updateAt,{argA:_me,argB:Cme},!0,!1)},yme=_me=>{const $me=convertToArrayPayload(cloneObject$1(_me));ome.current=$me.map(generateId),ume([...$me]),ime([...$me]),$P._updateFieldArray(tme,[...$me],Cme=>Cme,{},!0,!1)};return React__default.useEffect(()=>{if($P._stateFlags.action=!1,isWatched(tme,$P._names)&&$P._subjects.state.next({}),cme.current&&(!getValidationModes($P._options.mode).isOnSubmit||$P._formState.isSubmitted))if($P._options.resolver)$P._executeSchema([tme]).then(_me=>{const $me=get$3(_me.errors,tme),Cme=get$3($P._formState.errors,tme);(Cme?!$me&&Cme.type:$me&&$me.type)&&($me?set$3($P._formState.errors,tme,$me):unset($P._formState.errors,tme),$P._subjects.state.next({errors:$P._formState.errors}))});else{const _me=get$3($P._fields,tme);_me&&_me._f&&validateField(_me,get$3($P._formValues,tme),$P._options.criteriaMode===VALIDATION_MODE.all,$P._options.shouldUseNativeValidation,!0).then($me=>!isEmptyObject($me)&&$P._subjects.state.next({errors:updateFieldArrayRootError($P._formState.errors,$me,tme)}))}$P._subjects.watch.next({name:tme,values:$P._formValues}),$P._names.focus&&focusFieldBy($P._fields,_me=>!!_me&&_me.startsWith($P._names.focus)),$P._names.focus="",$P._proxyFormState.isValid&&$P._updateValid()},[rme,tme,$P]),React__default.useEffect(()=>(!get$3($P._formValues,tme)&&$P._updateFieldArray(tme),()=>{($P._options.shouldUnregister||nme)&&$P.unregister(tme)}),[tme,$P,ame,nme]),{swap:React__default.useCallback(mme,[ume,tme,$P]),move:React__default.useCallback(vme,[ume,tme,$P]),prepend:React__default.useCallback(pme,[ume,tme,$P]),append:React__default.useCallback(fme,[ume,tme,$P]),remove:React__default.useCallback(hme,[ume,tme,$P]),insert:React__default.useCallback(bme,[ume,tme,$P]),update:React__default.useCallback(gme,[ume,tme,$P]),replace:React__default.useCallback(yme,[ume,tme,$P]),fields:React__default.useMemo(()=>rme.map((_me,$me)=>({..._me,[ame]:ome.current[$me]||generateId()})),[rme,ame])}}function createSubject(){let x_=[];return{get observers(){return x_},next:ame=>{for(const nme of x_)nme.next(ame)},subscribe:ame=>(x_.push(ame),{unsubscribe:()=>{x_=x_.filter(nme=>nme!==ame)}}),unsubscribe:()=>{x_=[]}}}var isPrimitive=x_=>isNullOrUndefined$1(x_)||!isObjectType(x_);function deepEqual(x_,eme){if(isPrimitive(x_)||isPrimitive(eme))return x_===eme;if(isDateObject(x_)&&isDateObject(eme))return x_.getTime()===eme.getTime();const $P=Object.keys(x_),tme=Object.keys(eme);if($P.length!==tme.length)return!1;for(const ame of $P){const nme=x_[ame];if(!tme.includes(ame))return!1;if(ame!=="ref"){const rme=eme[ame];if(isDateObject(nme)&&isDateObject(rme)||isObject$5(nme)&&isObject$5(rme)||Array.isArray(nme)&&Array.isArray(rme)?!deepEqual(nme,rme):nme!==rme)return!1}}return!0}var isHTMLElement=x_=>{const eme=x_?x_.ownerDocument:0,$P=eme&&eme.defaultView?eme.defaultView.HTMLElement:HTMLElement;return x_ instanceof $P},isMultipleSelect=x_=>x_.type==="select-multiple",isRadioOrCheckbox=x_=>isRadioInput(x_)||isCheckBoxInput(x_),live=x_=>isHTMLElement(x_)&&x_.isConnected;function markFieldsDirty(x_,eme={}){const $P=Array.isArray(x_);if(isObject$5(x_)||$P)for(const tme in x_)Array.isArray(x_[tme])||isObject$5(x_[tme])&&!objectHasFunction(x_[tme])?(eme[tme]=Array.isArray(x_[tme])?[]:{},markFieldsDirty(x_[tme],eme[tme])):isNullOrUndefined$1(x_[tme])||(eme[tme]=!0);return eme}function getDirtyFieldsFromDefaultValues(x_,eme,$P){const tme=Array.isArray(x_);if(isObject$5(x_)||tme)for(const ame in x_)Array.isArray(x_[ame])||isObject$5(x_[ame])&&!objectHasFunction(x_[ame])?isUndefined$4(eme)||isPrimitive($P[ame])?$P[ame]=Array.isArray(x_[ame])?markFieldsDirty(x_[ame],[]):{...markFieldsDirty(x_[ame])}:getDirtyFieldsFromDefaultValues(x_[ame],isNullOrUndefined$1(eme)?{}:eme[ame],$P[ame]):deepEqual(x_[ame],eme[ame])?delete $P[ame]:$P[ame]=!0;return $P}var getDirtyFields=(x_,eme)=>getDirtyFieldsFromDefaultValues(x_,eme,markFieldsDirty(eme)),getFieldValueAs=(x_,{valueAsNumber:eme,valueAsDate:$P,setValueAs:tme})=>isUndefined$4(x_)?x_:eme?x_===""?NaN:x_&&+x_:$P&&isString$4(x_)?new Date(x_):tme?tme(x_):x_;function getFieldValue(x_){const eme=x_.ref;if(!(x_.refs?x_.refs.every($P=>$P.disabled):eme.disabled))return isFileInput(eme)?eme.files:isRadioInput(eme)?getRadioValue(x_.refs).value:isMultipleSelect(eme)?[...eme.selectedOptions].map(({value:$P})=>$P):isCheckBoxInput(eme)?getCheckboxValue(x_.refs).value:getFieldValueAs(isUndefined$4(eme.value)?x_.ref.value:eme.value,x_)}var getResolverOptions=(x_,eme,$P,tme)=>{const ame={};for(const nme of x_){const rme=get$3(eme,nme);rme&&set$3(ame,nme,rme._f)}return{criteriaMode:$P,names:[...x_],fields:ame,shouldUseNativeValidation:tme}},getRuleValue=x_=>isUndefined$4(x_)?void 0:isRegex(x_)?x_.source:isObject$5(x_)?isRegex(x_.value)?x_.value.source:x_.value:x_,hasValidation=x_=>x_.mount&&(x_.required||x_.min||x_.max||x_.maxLength||x_.minLength||x_.pattern||x_.validate);function schemaErrorLookup(x_,eme,$P){const tme=get$3(x_,$P);if(tme||isKey$1($P))return{error:tme,name:$P};const ame=$P.split(".");for(;ame.length;){const nme=ame.join("."),rme=get$3(eme,nme),ime=get$3(x_,nme);if(rme&&!Array.isArray(rme)&&$P!==nme)return{name:$P};if(ime&&ime.type)return{name:nme,error:ime};ame.pop()}return{name:$P}}var skipValidation=(x_,eme,$P,tme,ame)=>ame.isOnAll?!1:!$P&&ame.isOnTouch?!(eme||x_):($P?tme.isOnBlur:ame.isOnBlur)?!x_:($P?tme.isOnChange:ame.isOnChange)?x_:!0,unsetEmptyArray=(x_,eme)=>!compact$2(get$3(x_,eme)).length&&unset(x_,eme);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(x_={}){let eme={...defaultOptions,...x_},$P={submitCount:0,isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},tme={},ame=cloneObject$1(eme.defaultValues)||{},nme=eme.shouldUnregister?{}:cloneObject$1(ame),rme={action:!1,mount:!1,watch:!1},ime={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ome,lme=0,sme={};const cme={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},dme={watch:createSubject(),array:createSubject(),state:createSubject()},ume=getValidationModes(eme.mode),fme=getValidationModes(eme.reValidateMode),pme=eme.criteriaMode===VALIDATION_MODE.all,hme=Xme=>Kme=>{clearTimeout(lme),lme=window.setTimeout(Xme,Kme)},bme=async()=>{let Xme=!1;return cme.isValid&&(Xme=eme.resolver?isEmptyObject((await $me()).errors):await Sme(tme,!0),Xme!==$P.isValid&&($P.isValid=Xme,dme.state.next({isValid:Xme}))),Xme},mme=(Xme,Kme=[],Zme,nbe,lbe=!0,ibe=!0)=>{if(nbe&&Zme){if(rme.action=!0,ibe&&Array.isArray(get$3(tme,Xme))){const abe=Zme(get$3(tme,Xme),nbe.argA,nbe.argB);lbe&&set$3(tme,Xme,abe)}if(cme.errors&&ibe&&Array.isArray(get$3($P.errors,Xme))){const abe=Zme(get$3($P.errors,Xme),nbe.argA,nbe.argB);lbe&&set$3($P.errors,Xme,abe),unsetEmptyArray($P.errors,Xme)}if(cme.touchedFields&&ibe&&Array.isArray(get$3($P.touchedFields,Xme))){const abe=Zme(get$3($P.touchedFields,Xme),nbe.argA,nbe.argB);lbe&&set$3($P.touchedFields,Xme,abe)}cme.dirtyFields&&($P.dirtyFields=getDirtyFields(ame,nme)),dme.state.next({isDirty:xme(Xme,Kme),dirtyFields:$P.dirtyFields,errors:$P.errors,isValid:$P.isValid})}else set$3(nme,Xme,Kme)},vme=(Xme,Kme)=>{set$3($P.errors,Xme,Kme),dme.state.next({errors:$P.errors})},gme=(Xme,Kme,Zme,nbe)=>{const lbe=get$3(tme,Xme);if(lbe){const ibe=get$3(nme,Xme,isUndefined$4(Zme)?get$3(ame,Xme):Zme);isUndefined$4(ibe)||nbe&&nbe.defaultChecked||Kme?set$3(nme,Xme,Kme?ibe:getFieldValue(lbe._f)):Rme(Xme,ibe),rme.mount&&bme()}},yme=(Xme,Kme,Zme,nbe,lbe)=>{let ibe=!1;const abe={name:Xme},obe=get$3($P.touchedFields,Xme);if(cme.isDirty){const hbe=$P.isDirty;$P.isDirty=abe.isDirty=xme(),ibe=hbe!==abe.isDirty}if(cme.dirtyFields&&(!Zme||nbe)){const hbe=get$3($P.dirtyFields,Xme);deepEqual(get$3(ame,Xme),Kme)?unset($P.dirtyFields,Xme):set$3($P.dirtyFields,Xme,!0),abe.dirtyFields=$P.dirtyFields,ibe=ibe||hbe!==get$3($P.dirtyFields,Xme)}return Zme&&!obe&&(set$3($P.touchedFields,Xme,Zme),abe.touchedFields=$P.touchedFields,ibe=ibe||cme.touchedFields&&obe!==Zme),ibe&&lbe&&dme.state.next(abe),ibe?abe:{}},_me=(Xme,Kme,Zme,nbe)=>{const lbe=get$3($P.errors,Xme),ibe=cme.isValid&&isBoolean(Kme)&&$P.isValid!==Kme;if(x_.delayError&&Zme?(ome=hme(()=>vme(Xme,Zme)),ome(x_.delayError)):(clearTimeout(lme),ome=null,Zme?set$3($P.errors,Xme,Zme):unset($P.errors,Xme)),(Zme?!deepEqual(lbe,Zme):lbe)||!isEmptyObject(nbe)||ibe){const abe={...nbe,...ibe&&isBoolean(Kme)?{isValid:Kme}:{},errors:$P.errors,name:Xme};$P={...$P,...abe},dme.state.next(abe)}sme[Xme]--,cme.isValidating&&!Object.values(sme).some(abe=>abe)&&(dme.state.next({isValidating:!1}),sme={})},$me=async Xme=>eme.resolver?await eme.resolver({...nme},eme.context,getResolverOptions(Xme||ime.mount,tme,eme.criteriaMode,eme.shouldUseNativeValidation)):{},Cme=async Xme=>{const{errors:Kme}=await $me();if(Xme)for(const Zme of Xme){const nbe=get$3(Kme,Zme);nbe?set$3($P.errors,Zme,nbe):unset($P.errors,Zme)}else $P.errors=Kme;return Kme},Sme=async(Xme,Kme,Zme={valid:!0})=>{for(const nbe in Xme){const lbe=Xme[nbe];if(lbe){const{_f:ibe,...abe}=lbe;if(ibe){const obe=ime.array.has(ibe.name),hbe=await validateField(lbe,get$3(nme,ibe.name),pme,eme.shouldUseNativeValidation,obe);if(hbe[ibe.name]&&(Zme.valid=!1,Kme))break;!Kme&&(get$3(hbe,ibe.name)?obe?updateFieldArrayRootError($P.errors,hbe,ibe.name):set$3($P.errors,ibe.name,hbe[ibe.name]):unset($P.errors,ibe.name))}abe&&await Sme(abe,Kme,Zme)}}return Zme.valid},Eme=()=>{for(const Xme of ime.unMount){const Kme=get$3(tme,Xme);Kme&&(Kme._f.refs?Kme._f.refs.every(Zme=>!live(Zme)):!live(Kme._f.ref))&&Wme(Xme)}ime.unMount=new Set},xme=(Xme,Kme)=>(Xme&&Kme&&set$3(nme,Xme,Kme),!deepEqual(kme(),ame)),Tme=(Xme,Kme,Zme)=>{const nbe={...rme.mount?nme:isUndefined$4(Kme)?ame:isString$4(Xme)?{[Xme]:Kme}:Kme};return generateWatchOutput(Xme,ime,nbe,Zme)},Ome=Xme=>compact$2(get$3(rme.mount?nme:ame,Xme,x_.shouldUnregister?get$3(ame,Xme,[]):[])),Rme=(Xme,Kme,Zme={})=>{const nbe=get$3(tme,Xme);let lbe=Kme;if(nbe){const ibe=nbe._f;ibe&&(!ibe.disabled&&set$3(nme,Xme,getFieldValueAs(Kme,ibe)),lbe=isWeb&&isHTMLElement(ibe.ref)&&isNullOrUndefined$1(Kme)?"":Kme,isMultipleSelect(ibe.ref)?[...ibe.ref.options].forEach(abe=>abe.selected=lbe.includes(abe.value)):ibe.refs?isCheckBoxInput(ibe.ref)?ibe.refs.length>1?ibe.refs.forEach(abe=>(!abe.defaultChecked||!abe.disabled)&&(abe.checked=Array.isArray(lbe)?!!lbe.find(obe=>obe===abe.value):lbe===abe.value)):ibe.refs[0]&&(ibe.refs[0].checked=!!lbe):ibe.refs.forEach(abe=>abe.checked=abe.value===lbe):isFileInput(ibe.ref)?ibe.ref.value="":(ibe.ref.value=lbe,ibe.ref.type||dme.watch.next({name:Xme})))}(Zme.shouldDirty||Zme.shouldTouch)&&yme(Xme,lbe,Zme.shouldTouch,Zme.shouldDirty,!0),Zme.shouldValidate&&Mme(Xme)},Nme=(Xme,Kme,Zme)=>{for(const nbe in Kme){const lbe=Kme[nbe],ibe=`${Xme}.${nbe}`,abe=get$3(tme,ibe);(ime.array.has(Xme)||!isPrimitive(lbe)||abe&&!abe._f)&&!isDateObject(lbe)?Nme(ibe,lbe,Zme):Rme(ibe,lbe,Zme)}},Ime=(Xme,Kme,Zme={})=>{const nbe=get$3(tme,Xme),lbe=ime.array.has(Xme),ibe=cloneObject$1(Kme);set$3(nme,Xme,ibe),lbe?(dme.array.next({name:Xme,values:nme}),(cme.isDirty||cme.dirtyFields)&&Zme.shouldDirty&&($P.dirtyFields=getDirtyFields(ame,nme),dme.state.next({name:Xme,dirtyFields:$P.dirtyFields,isDirty:xme(Xme,ibe)}))):nbe&&!nbe._f&&!isNullOrUndefined$1(ibe)?Nme(Xme,ibe,Zme):Rme(Xme,ibe,Zme),isWatched(Xme,ime)&&dme.state.next({}),dme.watch.next({name:Xme})},Pme=async Xme=>{const Kme=Xme.target;let Zme=Kme.name;const nbe=get$3(tme,Zme);if(nbe){let lbe,ibe;const abe=Kme.type?getFieldValue(nbe._f):getEventValue(Xme),obe=Xme.type===EVENTS.BLUR||Xme.type===EVENTS.FOCUS_OUT,hbe=!hasValidation(nbe._f)&&!eme.resolver&&!get$3($P.errors,Zme)&&!nbe._f.deps||skipValidation(obe,get$3($P.touchedFields,Zme),$P.isSubmitted,fme,ume),ube=isWatched(Zme,ime,obe);set$3(nme,Zme,abe),obe?(nbe._f.onBlur&&nbe._f.onBlur(Xme),ome&&ome(0)):nbe._f.onChange&&nbe._f.onChange(Xme);const mbe=yme(Zme,abe,obe,!1),pbe=!isEmptyObject(mbe)||ube;if(!obe&&dme.watch.next({name:Zme,type:Xme.type}),hbe)return cme.isValid&&bme(),pbe&&dme.state.next({name:Zme,...ube?{}:mbe});if(!obe&&ube&&dme.state.next({}),sme[Zme]=sme[Zme]?sme[Zme]+1:1,dme.state.next({isValidating:!0}),eme.resolver){const{errors:_be}=await $me([Zme]),Sbe=schemaErrorLookup($P.errors,tme,Zme),vbe=schemaErrorLookup(_be,tme,Sbe.name||Zme);lbe=vbe.error,Zme=vbe.name,ibe=isEmptyObject(_be)}else lbe=(await validateField(nbe,get$3(nme,Zme),pme,eme.shouldUseNativeValidation))[Zme],bme();nbe._f.deps&&Mme(nbe._f.deps),_me(Zme,ibe,lbe,mbe)}},Mme=async(Xme,Kme={})=>{let Zme,nbe;const lbe=convertToArrayPayload(Xme);if(dme.state.next({isValidating:!0}),eme.resolver){const ibe=await Cme(isUndefined$4(Xme)?Xme:lbe);Zme=isEmptyObject(ibe),nbe=Xme?!lbe.some(abe=>get$3(ibe,abe)):Zme}else Xme?(nbe=(await Promise.all(lbe.map(async ibe=>{const abe=get$3(tme,ibe);return await Sme(abe&&abe._f?{[ibe]:abe}:abe)}))).every(Boolean),!(!nbe&&!$P.isValid)&&bme()):nbe=Zme=await Sme(tme);return dme.state.next({...!isString$4(Xme)||cme.isValid&&Zme!==$P.isValid?{}:{name:Xme},...eme.resolver||!Xme?{isValid:Zme}:{},errors:$P.errors,isValidating:!1}),Kme.shouldFocus&&!nbe&&focusFieldBy(tme,ibe=>ibe&&get$3($P.errors,ibe),Xme?lbe:ime.mount),nbe},kme=Xme=>{const Kme={...ame,...rme.mount?nme:{}};return isUndefined$4(Xme)?Kme:isString$4(Xme)?get$3(Kme,Xme):Xme.map(Zme=>get$3(Kme,Zme))},Bme=(Xme,Kme)=>({invalid:!!get$3((Kme||$P).errors,Xme),isDirty:!!get$3((Kme||$P).dirtyFields,Xme),isTouched:!!get$3((Kme||$P).touchedFields,Xme),error:get$3((Kme||$P).errors,Xme)}),Dme=Xme=>{Xme?convertToArrayPayload(Xme).forEach(Kme=>unset($P.errors,Kme)):$P.errors={},dme.state.next({errors:$P.errors})},jme=(Xme,Kme,Zme)=>{const nbe=(get$3(tme,Xme,{_f:{}})._f||{}).ref;set$3($P.errors,Xme,{...Kme,ref:nbe}),dme.state.next({name:Xme,errors:$P.errors,isValid:!1}),Zme&&Zme.shouldFocus&&nbe&&nbe.focus&&nbe.focus()},Vme=(Xme,Kme)=>isFunction$3(Xme)?dme.watch.subscribe({next:Zme=>Xme(Tme(void 0,Kme),Zme)}):Tme(Xme,Kme,!0),Wme=(Xme,Kme={})=>{for(const Zme of Xme?convertToArrayPayload(Xme):ime.mount)ime.mount.delete(Zme),ime.array.delete(Zme),get$3(tme,Zme)&&(Kme.keepValue||(unset(tme,Zme),unset(nme,Zme)),!Kme.keepError&&unset($P.errors,Zme),!Kme.keepDirty&&unset($P.dirtyFields,Zme),!Kme.keepTouched&&unset($P.touchedFields,Zme),!eme.shouldUnregister&&!Kme.keepDefaultValue&&unset(ame,Zme));dme.watch.next({}),dme.state.next({...$P,...Kme.keepDirty?{isDirty:xme()}:{}}),!Kme.keepIsValid&&bme()},Lme=(Xme,Kme={})=>{let Zme=get$3(tme,Xme);const nbe=isBoolean(Kme.disabled);return set$3(tme,Xme,{...Zme||{},_f:{...Zme&&Zme._f?Zme._f:{ref:{name:Xme}},name:Xme,mount:!0,...Kme}}),ime.mount.add(Xme),Zme?nbe&&set$3(nme,Xme,Kme.disabled?void 0:get$3(nme,Xme,getFieldValue(Zme._f))):gme(Xme,!0,Kme.value),{...nbe?{disabled:Kme.disabled}:{},...eme.shouldUseNativeValidation?{required:!!Kme.required,min:getRuleValue(Kme.min),max:getRuleValue(Kme.max),minLength:getRuleValue(Kme.minLength),maxLength:getRuleValue(Kme.maxLength),pattern:getRuleValue(Kme.pattern)}:{},name:Xme,onChange:Pme,onBlur:Pme,ref:lbe=>{if(lbe){Lme(Xme,Kme),Zme=get$3(tme,Xme);const ibe=isUndefined$4(lbe.value)&&lbe.querySelectorAll&&lbe.querySelectorAll("input,select,textarea")[0]||lbe,abe=isRadioOrCheckbox(ibe),obe=Zme._f.refs||[];if(abe?obe.find(hbe=>hbe===ibe):ibe===Zme._f.ref)return;set$3(tme,Xme,{_f:{...Zme._f,...abe?{refs:[...obe.filter(live),ibe,...Array.isArray(get$3(ame,Xme))?[{}]:[]],ref:{type:ibe.type,name:Xme}}:{ref:ibe}}}),gme(Xme,!1,void 0,ibe)}else Zme=get$3(tme,Xme,{}),Zme._f&&(Zme._f.mount=!1),(eme.shouldUnregister||Kme.shouldUnregister)&&!(isNameInFieldArray(ime.array,Xme)&&rme.action)&&ime.unMount.add(Xme)}}},zme=()=>eme.shouldFocusError&&focusFieldBy(tme,Xme=>Xme&&get$3($P.errors,Xme),ime.mount),Ume=(Xme,Kme)=>async Zme=>{Zme&&(Zme.preventDefault&&Zme.preventDefault(),Zme.persist&&Zme.persist());let nbe=!0,lbe=cloneObject$1(nme);dme.state.next({isSubmitting:!0});try{if(eme.resolver){const{errors:ibe,values:abe}=await $me();$P.errors=ibe,lbe=abe}else await Sme(tme);isEmptyObject($P.errors)?(dme.state.next({errors:{},isSubmitting:!0}),await Xme(lbe,Zme)):(Kme&&await Kme({...$P.errors},Zme),zme())}catch(ibe){throw nbe=!1,ibe}finally{$P.isSubmitted=!0,dme.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject($P.errors)&&nbe,submitCount:$P.submitCount+1,errors:$P.errors})}},Gme=(Xme,Kme={})=>{get$3(tme,Xme)&&(isUndefined$4(Kme.defaultValue)?Ime(Xme,get$3(ame,Xme)):(Ime(Xme,Kme.defaultValue),set$3(ame,Xme,Kme.defaultValue)),Kme.keepTouched||unset($P.touchedFields,Xme),Kme.keepDirty||(unset($P.dirtyFields,Xme),$P.isDirty=Kme.defaultValue?xme(Xme,get$3(ame,Xme)):xme()),Kme.keepError||(unset($P.errors,Xme),cme.isValid&&bme()),dme.state.next({...$P}))},Jme=(Xme,Kme={})=>{const Zme=Xme||ame,nbe=cloneObject$1(Zme),lbe=Xme&&!isEmptyObject(Xme)?nbe:ame;if(Kme.keepDefaultValues||(ame=Zme),!Kme.keepValues){if(Kme.keepDirtyValues)for(const ibe of ime.mount)get$3($P.dirtyFields,ibe)?set$3(lbe,ibe,get$3(nme,ibe)):Ime(ibe,get$3(lbe,ibe));else{if(isWeb&&isUndefined$4(Xme))for(const ibe of ime.mount){const abe=get$3(tme,ibe);if(abe&&abe._f){const obe=Array.isArray(abe._f.refs)?abe._f.refs[0]:abe._f.ref;if(isHTMLElement(obe)){const hbe=obe.closest("form");if(hbe){hbe.reset();break}}}}tme={}}nme=x_.shouldUnregister?Kme.keepDefaultValues?cloneObject$1(ame):{}:nbe,dme.array.next({values:lbe}),dme.watch.next({values:lbe})}ime={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},rme.mount=!cme.isValid||!!Kme.keepIsValid,rme.watch=!!x_.shouldUnregister,dme.state.next({submitCount:Kme.keepSubmitCount?$P.submitCount:0,isDirty:Kme.keepDirty||Kme.keepDirtyValues?$P.isDirty:!!(Kme.keepDefaultValues&&!deepEqual(Xme,ame)),isSubmitted:Kme.keepIsSubmitted?$P.isSubmitted:!1,dirtyFields:Kme.keepDirty||Kme.keepDirtyValues?$P.dirtyFields:Kme.keepDefaultValues&&Xme?getDirtyFields(ame,Xme):{},touchedFields:Kme.keepTouched?$P.touchedFields:{},errors:Kme.keepErrors?$P.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})};return{control:{register:Lme,unregister:Wme,getFieldState:Bme,_executeSchema:$me,_focusError:zme,_getWatch:Tme,_getDirty:xme,_updateValid:bme,_removeUnmounted:Eme,_updateFieldArray:mme,_getFieldArray:Ome,_subjects:dme,_proxyFormState:cme,get _fields(){return tme},get _formValues(){return nme},get _stateFlags(){return rme},set _stateFlags(Xme){rme=Xme},get _defaultValues(){return ame},get _names(){return ime},set _names(Xme){ime=Xme},get _formState(){return $P},set _formState(Xme){$P=Xme},get _options(){return eme},set _options(Xme){eme={...eme,...Xme}}},trigger:Mme,register:Lme,handleSubmit:Ume,watch:Vme,setValue:Ime,getValues:kme,reset:(Xme,Kme)=>Jme(isFunction$3(Xme)?Xme(nme):Xme,Kme),resetField:Gme,clearErrors:Dme,unregister:Wme,setError:jme,setFocus:(Xme,Kme={})=>{const Zme=get$3(tme,Xme),nbe=Zme&&Zme._f;if(nbe){const lbe=nbe.refs?nbe.refs[0]:nbe.ref;lbe.focus&&(lbe.focus(),Kme.shouldSelect&&lbe.select())}},getFieldState:Bme}}function useForm(x_={}){const eme=React__default.useRef(),[$P,tme]=React__default.useState({isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:x_.defaultValues});eme.current||(eme.current={...createFormControl(x_),formState:$P});const ame=eme.current.control;return ame._options=x_,useSubscribe({subject:ame._subjects.state,callback:React__default.useCallback(nme=>{shouldRenderFormState(nme,ame._proxyFormState,!0)&&(ame._formState={...ame._formState,...nme},tme({...ame._formState}))},[ame])}),React__default.useEffect(()=>{ame._stateFlags.mount||(ame._proxyFormState.isValid&&ame._updateValid(),ame._stateFlags.mount=!0),ame._stateFlags.watch&&(ame._stateFlags.watch=!1,ame._subjects.state.next({})),ame._removeUnmounted()}),React__default.useEffect(()=>{$P.submitCount&&ame._focusError()},[ame,$P.submitCount]),eme.current.formState=getProxyFormState($P,ame),eme.current}function formatErrors(x_){var eme={};return Object.keys(x_).forEach(function($P){var tme=x_[$P][0];tme&&(eme[$P]={type:tme.rule,message:tme.msg})}),eme}function useValidationResolver(x_,eme){var $P=this;return x_===void 0&&(x_=function(tme){return tme}),React__default.useCallback(function(tme,ame,nme){return __awaiter($P,void 0,void 0,function(){var rme,ime,ome,lme,sme,pme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me;return __generator(this,function(Cme){switch(Cme.label){case 0:rme={},ime={},ome=Object.keys(validations);try{for(lme=__values$1(Object.keys(nme.fields)),sme=lme.next();!sme.done;sme=lme.next())pme=sme.value,cme=nme.fields[pme],rme[pme]=pick$3(cme,ome),cme.required&&(rme[pme].isRequired=!0),typeof cme.validate=="function"&&(ime[pme]=cme.validate)}catch(Sme){gme={error:Sme}}finally{try{sme&&!sme.done&&(yme=lme.return)&&yme.call(lme)}finally{if(gme)throw gme.error}}dme=validateObject(tme,rme,void 0,x_),Cme.label=1;case 1:Cme.trys.push([1,6,7,8]),ume=__values$1(Object.keys(ime)),fme=ume.next(),Cme.label=2;case 2:return fme.done?[3,5]:(pme=fme.value,hme=ime[pme],[4,hme(tme[pme])]);case 3:bme=Cme.sent(),typeof bme=="string"&&(dme[pme]=dme[pme]||[],dme[pme].push({rule:"custom",msg:bme})),Cme.label=4;case 4:return fme=ume.next(),[3,2];case 5:return[3,8];case 6:return mme=Cme.sent(),_me={error:mme},[3,8];case 7:try{fme&&!fme.done&&($me=ume.return)&&$me.call(ume)}finally{if(_me)throw _me.error}return[7];case 8:return Cme.trys.push([8,10,,11]),[4,eme==null?void 0:eme(dme,tme,ame,nme)];case 9:return Cme.sent(),[3,11];case 10:return vme=Cme.sent(),dme.customValidate=[{rule:"custom",msg:vme.message||vme}],[3,11];case 11:return[2,{values:tme,errors:formatErrors(dme)}]}})})},[x_,eme])}function Form(x_){var eme,$P,tme=x_.classnames,ame=x_.className,nme=x_.autoSubmit,rme=x_.value,ime=x_.onChange,ome=(eme=x_.value)!==null&&eme!==void 0?eme:x_.defaultValue,lme=useForm({defaultValues:ome,resolver:useValidationResolver(x_.translate,x_.onValidate)}),sme=React__default.useRef(lme.handleSubmit(x_.onSubmit||noop$9));return nme&&(sme=React__default.useRef(debounce$6(lme.handleSubmit(x_.onSubmit||noop$9),250,{leading:!1,trailing:!0})),React__default.useEffect(function(){var cme=lme.watch(sme.current);return function(){var dme,ume;cme.unsubscribe(),(ume=(dme=sme.current)===null||dme===void 0?void 0:dme.cancel)===null||ume===void 0||ume.call(dme)}},[])),React__default.useEffect(function(){rme&&isObjectShallowModified$1(rme,lme.getValues(),!1)&&Object.keys(rme).forEach(function(cme){lme.setValue(cme,rme[cme])})},[rme]),ime&&React__default.useEffect(function(){var cme=lme.watch(function(dme,ume){ime(__assign$3(__assign$3({},ome),dme))});return function(){return cme.unsubscribe()}},[ime]),React__default.useImperativeHandle(x_.forwardRef,function(){return{submit:function(){return new Promise(function(cme){lme.handleSubmit(function(dme){var ume;(ume=x_.onSubmit)===null||ume===void 0||ume.call(x_,dme),cme(dme)},function(dme){var ume;return cme(((ume=dme.customValidate)===null||ume===void 0?void 0:ume.message)||!1)})()})},validate:function(){return new Promise(function(cme){lme.handleSubmit(function(){cme("")},function(dme){var ume;return cme(((ume=dme.customValidate)===null||ume===void 0?void 0:ume.message)||x_.translate("Form.validateFailed"))})()})}}},[]),React__default.createElement(FormProvider,__assign$3({},lme),React__default.createElement("form",{className:tme("Form",ame),onSubmit:sme.current,noValidate:!0},React__default.createElement("input",{type:"submit",style:{display:"none"}}),($P=x_.children)===null||$P===void 0?void 0:$P.call(x_,__assign$3(__assign$3({},lme),{onSubmit:sme.current}))))}var ThemedForm=themeable(localeable(Form)),Form$1=React__default.forwardRef(function(x_,eme){return React__default.createElement(ThemedForm,__assign$3({},x_,{forwardRef:eme}))});function FormField(x_){var eme,$P,tme,ame,nme=x_.mode,rme=x_.children,ime=x_.classnames,ome=x_.className;x_.style;var lme=x_.hasError,sme=x_.isRequired,cme=x_.label,dme=x_.labelAlign,ume=x_.labelClassName,fme=x_.description,pme=Array.isArray(x_.errors)?x_.errors:x_.errors?[x_.errors]:[];if(nme==="horizontal"){var hme=x_.horizontal||{leftFixed:!0};return React__default.createElement("div",{"data-role":"form-item",className:ime("Form-item Form-item--horizontal",ome,(eme={"is-error":lme},eme["is-required"]=sme,eme["Form-item--horizontal-justify"]=hme.justify,eme))},cme!==!1?React__default.createElement("label",{className:ime("Form-label",($P={},$P["Form-itemColumn--".concat(typeof hme.leftFixed=="string"?hme.leftFixed:"normal")]=hme.leftFixed,$P["Form-itemColumn--".concat(hme.left)]=!hme.leftFixed,$P["Form-label--left"]=dme==="left",$P),ume)},React__default.createElement("span",null,cme,sme&&cme?React__default.createElement("span",{className:ime("Form-star")},"*"):null)):null,React__default.createElement("div",{className:ime("Form-value",(tme={},tme["Form-itemColumn--".concat(hme.right)]=!hme.leftFixed&&!!hme.right&&hme.right!==12-hme.left,tme))},rme,lme&&pme.length?React__default.createElement("ul",{className:ime("Form-feedback")},pme.map(function(bme,mme){return React__default.createElement("li",{key:mme},bme)})):null,fme?React__default.createElement("div",{className:ime("Form-description")},fme):null))}return React__default.createElement("div",{"data-role":"form-item",className:ime("Form-item Form-item--normal",ome,(ame={"is-error":lme},ame["is-required"]=sme,ame))},cme?React__default.createElement("label",{className:ime("Form-label",ume)},React__default.createElement("span",null,cme,sme&&cme?React__default.createElement("span",{className:ime("Form-star")},"*"):null)):null,rme,lme&&pme.length?React__default.createElement("ul",{className:ime("Form-feedback")},pme.map(function(bme,mme){return React__default.createElement("li",{key:mme},bme)})):null,fme?React__default.createElement("div",{className:ime("Form-description")},fme):null)}var ThemedFormField=themeable(localeable(React__default.memo(FormField)));function Controller(x_){var eme=x_.render,$P=x_.name,tme=x_.shouldUnregister,ame=x_.defaultValue,nme=x_.control,rme=x_.wrap,ime=__rest$14(x_,["render","name","shouldUnregister","defaultValue","control","wrap"]),ome=React__default.useMemo(function(){var lme=__assign$3({},x_.rules);return x_.isRequired&&(lme.required=!0),lme},[x_.rules,x_.isRequired]);return React__default.createElement(Controller$1,{name:$P||"",rules:ome,shouldUnregister:tme,defaultValue:ame,control:nme,render:function(lme){var sme;return rme===!1?eme(lme):React__default.createElement(ThemedFormField,__assign$3({},ime,{hasError:!!lme.fieldState.error,errors:(sme=lme.fieldState.error)===null||sme===void 0?void 0:sme.message}),eme(lme))}})}var schemaEditorItemPlaceholder={key:"JSONSchema.key",title:"JSONSchema.title",description:"JSONSchema.description",default:"JSONSchema.default",empty:"placeholder.empty"},SchemaEditorItemCommon=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleTypeChange=function($P){var tme,ame=this.props,nme=ame.value,rme=ame.onChange,ime=ame.onTypeChange,ome={type:$P,title:nme==null?void 0:nme.title};ome=(tme=ime==null?void 0:ime($P,ome,nme))!==null&&tme!==void 0?tme:ome,rme==null||rme(ome)},eme.prototype.handlePropsChange=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return tme=this.props,ame=tme.onFormConfirm,nme=tme.onChange,rme=tme.value,ame?[4,ame($P)]:[3,2];case 1:ime.sent(),ime.label=2;case 2:return nme==null||nme(__assign$3(__assign$3({},rme),$P)),[2]}})})},eme.prototype.handleBeforeSubmit=function($P){return $P.submit()},eme.prototype.renderCommon=function(){var $P=this,tme,ame=this.props,nme=ame.label,rme=ame.value,ime=ame.translate,ome=ame.locale,lme=ame.typeMutable,sme=ame.disabled,cme=ame.classnames,dme=ame.classPrefix,ume=ame.required,fme=ame.onRequiredChange,pme=ame.renderExtraProps,hme=ame.renderModalProps,bme=ame.enableAdvancedSetting,mme=ame.popOverContainer,vme=ame.prefix,gme=ame.affix,yme=ame.types,_me=ame.placeholder,$me=ame.mobileUI,Cme=ame.mini,Sme=ame.formPrefixRender,Eme=ame.formAffixRender;return React__default.createElement(React__default.Fragment,null,vme,Cme?React__default.createElement("span",{className:cme("SchemaEditor-info")},React__default.createElement("span",{className:cme("SchemaEditor-label")},rme!=null&&rme.isRequired?React__default.createElement("span",{className:cme("Form-star")},"*"):"",nme??((rme==null?void 0:rme.title)||(rme==null?void 0:rme.key)||"")),React__default.createElement("span",{className:cme("SchemaEditor-typeLabel")},((tme=yme.find(function(xme){return xme.value===(rme==null?void 0:rme.type)}))===null||tme===void 0?void 0:tme.label)||"")):null,!Cme&&yme.length>1?React__default.createElement(EnhancedSelect,{options:yme,className:cme("SchemaEditor-type"),value:(rme==null?void 0:rme.$ref)||(rme==null?void 0:rme.type)||"string",onChange:this.handleTypeChange,clearable:!1,disabled:sme||lme===!1,simpleValue:!0,mobileUI:$me,popOverContainer:mme,dataName:fme?"".concat(this.props.dataName,"-type"):""}):null,!Cme&&fme?React__default.createElement(Checkbox$1$1,{className:cme("SchemaEditor-required"),label:ime("Required"),value:ume,onChange:fme,disabled:sme,dataName:"".concat(this.props.dataName,"-required")}):null,pme==null?void 0:pme(rme,this.handlePropsChange),bme||Cme?React__default.createElement(PickerContainer$1,{mobileUI:$me,value:rme,bodyRender:function(xme){var Tme=xme.isOpened,Ome=xme.value,Rme=xme.onChange,Nme=xme.ref;return Tme?React__default.createElement(SchemaEditorItem,{types:yme,value:Ome,onChange:Rme,renderExtraProps:pme,renderModalProps:hme,locale:ome,translate:ime,classnames:cme,classPrefix:dme,disabled:sme,onTypeChange:$P.handleTypeChange,enableAdvancedSetting:bme,popOverContainer:mme,placeholder:_me,mobileUI:$me,mini:Cme,formRef:Nme,formMode:!0,formPrefixRender:Sme,formAffixRender:Eme}):null},beforeConfirm:this.handleBeforeSubmit,onConfirm:this.handlePropsChange,title:ime("SubForm.editDetail"),popOverContainer:mme},function(xme){var Tme=xme.onClick;return React__default.createElement(Button$1,{disabled:sme||!!(rme!=null&&rme.$ref),className:cme("SchemaEditor-btn"),onClick:Tme,level:Cme?"link":"default"},React__default.createElement(Icon$1,{icon:Cme?"edit":"setting",className:"icon"}))}):null,gme)},eme.prototype.handleFormChange=function($P){var tme=this.props,ame=tme.value,nme=tme.onChange;($P==null?void 0:$P.type)!==(ame==null?void 0:ame.type)&&nme($P)},eme.prototype.renderForm=function($P){var tme=__assign$3(__assign$3({},this.props),$P),ame=tme.value,nme=tme.onChange,rme=tme.formRef,ime=tme.translate,ome=tme.disabled,lme=tme.placeholder,sme=tme.mobileUI,cme=tme.renderModalProps,dme=tme.mini,ume=tme.types,fme=tme.classnames,pme=tme.popOverContainer,hme=tme.formPrefixRender,bme=tme.formAffixRender;return React__default.createElement(Form$1,{defaultValue:ame,onChange:this.handleFormChange,onSubmit:nme,ref:rme},function(mme){var vme,gme;return React__default.createElement(React__default.Fragment,null,(vme=hme==null?void 0:hme(mme))!==null&&vme!==void 0?vme:null,dme?React__default.createElement(Controller,{label:ime("JSONSchema.type"),name:"type",control:mme.control,rules:{maxLength:20},isRequired:!0,render:function(yme){var _me=yme.field;return React__default.createElement(EnhancedSelect,__assign$3({},_me,{block:!0,options:ume,className:fme("SchemaEditor-type"),clearable:!1,disabled:ome,simpleValue:!0,mobileUI:sme,popOverContainer:pme}))}}):null,React__default.createElement(Controller,{label:ime("JSONSchema.title"),name:"title",control:mme.control,rules:{maxLength:20},render:function(yme){var _me,$me=yme.field;return React__default.createElement(InputBox$1,__assign$3({},$me,{disabled:ome,placeholder:ime((_me=lme==null?void 0:lme.title)!==null&&_me!==void 0?_me:""),mobileUI:sme}))}}),React__default.createElement(Controller,{label:ime("JSONSchema.description"),name:"description",control:mme.control,render:function(yme){var _me,$me=yme.field;return React__default.createElement(Textarea$1,__assign$3({},$me,{disabled:ome,mobileUI:sme,placeholder:ime((_me=lme==null?void 0:lme.description)!==null&&_me!==void 0?_me:"")}))}}),React__default.createElement(Controller,{label:ime("JSONSchema.default"),name:"default",control:mme.control,render:function(yme){var _me,$me=yme.field;return React__default.createElement(InputBox$1,__assign$3({},$me,{disabled:ome,placeholder:ime((_me=lme==null?void 0:lme.default)!==null&&_me!==void 0?_me:""),mobileUI:sme}))}}),(gme=bme==null?void 0:bme(mme))!==null&&gme!==void 0?gme:null,cme==null?void 0:cme(mme.getValues(),function(yme){Object.keys(yme).forEach(function(_me){return mme.setValue(_me,yme[_me])})}))})},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.formMode,nme=$P.mini;return ame?this.renderForm():React__default.createElement("div",{className:tme("SchemaEditorItem",{"SchemaEditorItem--mini":nme}),"data-amis-name":this.props.dataName},this.renderCommon())},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleTypeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handlePropsChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBeforeSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFormChange",null),eme}(React__default.Component),ITEMMAP={},SchemaEditorItem=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props.value,tme=($P==null?void 0:$P.type)&&ITEMMAP[$P==null?void 0:$P.type]||SchemaEditorItemCommon;return React__default.createElement(tme,__assign$3({},this.props,{key:($P==null?void 0:$P.type)||"string"}))},eme}(React__default.Component),SchemaEditorItemArray=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={collapsed:!1},$P}return eme.prototype.toggleCollapsed=function(){this.setState({collapsed:!this.state.collapsed})},eme.prototype.handleItemsChange=function($P){var tme,ame,nme=__assign$3(__assign$3({},this.props.value),{type:"array",items:$P});(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,nme)},eme.prototype.renderItems=function(){var $P,tme=this.props,ame=tme.classnames,nme=tme.value,rme=tme.renderExtraProps,ime=tme.renderModalProps,ome=tme.locale,lme=tme.translate,sme=tme.classPrefix,cme=tme.disabled,dme=tme.showInfo,ume=tme.types,fme=tme.onTypeChange,pme=tme.enableAdvancedSetting,hme=tme.popOverContainer,bme=tme.placeholder,mme=tme.mobileUI,vme=tme.mini,gme=(nme==null?void 0:nme.items)||{type:"string"};return React__default.createElement("div",{className:ame("SchemaEditorProps SchemaEditorArrayProps",{"SchemaEditorProps--depth":dme!==!1})},React__default.createElement(SchemaEditorItem,{dataName:this.props.dataName,types:ume,onTypeChange:fme,label:($P=ume==null?void 0:ume.find(function(yme){return yme.value===(gme==null?void 0:gme.type)}))===null||$P===void 0?void 0:$P.label,prefix:React__default.createElement("div",{className:ame("SchemaEditor-itemsLabel")},lme("JSONSchema.array_items")),value:gme,onChange:this.handleItemsChange,renderExtraProps:rme,renderModalProps:ime,locale:ome,translate:lme,classnames:ame,classPrefix:sme,disabled:cme||!!(gme!=null&&gme.$ref),enableAdvancedSetting:pme,popOverContainer:hme,placeholder:bme,mobileUI:mme,mini:vme}))},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.showInfo,nme=$P.formMode,rme=$P.mini;$P.disabled;var ime=$P.mobileUI,ome=$P.locale,lme=$P.classPrefix,sme=$P.types,cme=$P.translate,dme=$P.placeholder;return nme?this.renderForm({formAffixRender:function(ume){return React__default.createElement(React__default.Fragment,null,React__default.createElement(Controller,{label:cme("JSONSchema.array_items"),name:"items",control:ume.control,render:function(fme){var pme=fme.field;return React__default.createElement(SchemaEditorItem,__assign$3({},pme,{types:sme,placeholder:dme,mobileUI:ime,locale:ome,translate:cme,classnames:tme,classPrefix:lme,mini:!1}))}}))}}):React__default.createElement("div",{className:tme("SchemaEditorItem SchemaEditorArray",{"SchemaEditorItem--mini":rme}),"data-amis-name":this.props.dataName},ame!==!1?React__default.createElement(React__default.Fragment,null,rme?null:React__default.createElement("a",{className:tme("SchemaEditor-caret",{"is-collapsed":this.state.collapsed}),onClick:this.toggleCollapsed},React__default.createElement(Icon$1,{icon:"caret",className:"icon"})),this.renderCommon()):null,this.state.collapsed||rme?null:this.renderItems())},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleCollapsed",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemsChange",null),eme}(SchemaEditorItemCommon);ITEMMAP.array=SchemaEditorItemArray;var SchemaEditorItemObject=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={members:$P.propsToMembers($P.props),collapsed:!1},$P}return eme.prototype.componentDidUpdate=function($P){var tme=this.props;tme.value!==$P.value&&JSON.stringify(tme.value)!==JSON.stringify(this.lastValue)&&this.setState({members:this.propsToMembers(tme)})},eme.prototype.propsToMembers=function($P){var tme,ame,nme=[],rme=Array.isArray((tme=$P.value)===null||tme===void 0?void 0:tme.required)?$P.value.required:[];if(!((ame=$P.value)===null||ame===void 0)&&ame.properties){var ime=$P.value.properties;Object.keys(ime).forEach(function(ome){var lme=ime[ome];nme.push({id:guid$1(),key:ome||"",hasError:!ome||nme.some(function(sme){return sme.key===ome}),required:!!~rme.indexOf(ome),schema:lme})})}return nme},eme.prototype.pipeOut=function(){var $P=this.state.members,tme=this.props,ame=tme.value,nme=tme.onChange,rme={},ime=[];$P.filter(function(ome){return!ome.hasError}).forEach(function(ome){rme[ome.key]=ome.schema,ome.required&&ime.push(ome.key)}),this.lastValue=__assign$3(__assign$3({},ame),{properties:rme,required:ime}),nme==null||nme(this.lastValue)},eme.prototype.handleAdd=function(){var $P=this.state.members.concat();$P.push({id:guid$1(),key:"",hasError:!0,required:!1,schema:{type:"string"}}),this.setState({members:$P},this.pipeOut)},eme.prototype.handleAddProppertyConfirm=function($P){var tme=$P.key,ame=$P.isRequired,nme=__rest$14($P,["key","isRequired"]),rme=this.state.members.concat();if(rme.some(function(ime){return ime.key===tme}))throw new Error(this.props.translate("JSONSchema.key_duplicated"));rme.push({id:guid$1(),key:tme||"",hasError:!1,required:ame,schema:nme}),this.setState({members:rme},this.pipeOut)},eme.prototype.handleEditProppertyConfirm=function($P,tme){var ame=this.state.members.some(function(nme,rme){return rme!==$P&&nme.key===tme.key});if(ame)throw new Error(this.props.translate("JSONSchema.key_duplicated"))},eme.prototype.handlePropKeyChange=function($P,tme){var ame=this.state.members.concat();ame[$P]=__assign$3(__assign$3({},ame[$P]),{key:tme,hasError:!tme||ame.some(function(nme,rme){return rme!==$P&&nme.key===tme})}),this.setState({members:ame},this.pipeOut)},eme.prototype.handlePropTitleChange=function($P,tme){var ame=this.state.members.concat();ame[$P]=__assign$3(__assign$3({},ame[$P]),{schema:__assign$3(__assign$3({},ame[$P].schema),{title:tme})}),this.setState({members:ame},this.pipeOut)},eme.prototype.handlePropRemove=function($P){var tme=this.state.members.concat();tme.splice($P,1),this.setState({members:tme},this.pipeOut)},eme.prototype.handlePropChange=function($P,tme){var ame=tme.key,nme=tme.isRequired,rme=__rest$14(tme,["key","isRequired"]),ime=this.props.mini,ome=this.state.members.concat();ome[$P]=__assign$3(__assign$3(__assign$3({},ome[$P]),ime?{key:ame,required:nme}:void 0),{schema:__assign$3({},rme)}),this.setState({members:ome},this.pipeOut)},eme.prototype.handlePropRequiredChange=function($P,tme){var ame=this.state.members.concat();ame[$P]=__assign$3(__assign$3({},ame[$P]),{required:tme}),this.setState({members:ame},this.pipeOut)},eme.prototype.toggleCollapsed=function(){this.setState({collapsed:!this.state.collapsed})},eme.prototype.renderFormPrefix=function($P){var tme=this.props,ame=tme.placeholder,nme=tme.mobileUI,rme=tme.classnames,ime=tme.translate;return React__default.createElement(React__default.Fragment,null,React__default.createElement(Controller,{label:ime("JSONSchema.key"),name:"key",control:$P.control,rules:{maxLength:20,isVariableName:!0},isRequired:!0,render:function(ome){var lme,sme=ome.field;return React__default.createElement(InputBox$1,__assign$3({},sme,{placeholder:ime((lme=ame==null?void 0:ame.key)!==null&&lme!==void 0?lme:""),mobileUI:nme}))}}),React__default.createElement(Controller,{label:ime("JSONSchema.required"),name:"isRequired",control:$P.control,render:function(ome){var lme=ome.field;return React__default.createElement(Checkbox$1$1,__assign$3({},lme,{value:!!lme.value,className:rme("SchemaEditor-required"),label:ime("Required")}))}}))},eme.prototype.rendererProps=function(){var $P=this,tme,ame=this.props,nme=ame.value,rme=ame.translate,ime=ame.classnames,ome=ame.renderExtraProps,lme=ame.renderModalProps,sme=ame.locale,cme=ame.classPrefix,dme=ame.disabled,ume=ame.showInfo,fme=ame.types,pme=ame.onTypeChange,hme=ame.enableAdvancedSetting,bme=ame.popOverContainer,mme=ame.placeholder,vme=ame.mobileUI,gme=ame.mini,yme=ame.addButtonText,_me=ame.dataName,$me=this.state.members;return React__default.createElement("div",{className:ime("SchemaEditorProps",{"SchemaEditorProps--depth":ume!==!1})},$me.length?$me.map(function(Cme,Sme){var Eme,xme,Tme=_me?_me+"-"+Cme.key:Cme.key;return React__default.createElement(SchemaEditorItem,{dataName:Tme,mobileUI:vme,mini:gme,key:Cme.id,types:fme,onTypeChange:pme,enableAdvancedSetting:hme,popOverContainer:bme,prefix:gme?void 0:React__default.createElement(React__default.Fragment,null,React__default.createElement(InputBox$1,{className:ime("SchemaEditor-key"),hasError:Cme.hasError,value:Cme.key||"",onChange:$P.handlePropKeyChange.bind($P,Sme),placeholder:rme((Eme=mme==null?void 0:mme.key)!==null&&Eme!==void 0?Eme:""),disabled:dme||!!(nme!=null&&nme.$ref),mobileUI:vme,dataName:"".concat(Tme,"-key")}),React__default.createElement(InputBox$1,{className:ime("SchemaEditor-title"),value:Cme.schema.title||"",onChange:$P.handlePropTitleChange.bind($P,Sme),placeholder:rme((xme=mme==null?void 0:mme.title)!==null&&xme!==void 0?xme:""),disabled:dme||!!(nme!=null&&nme.$ref),mobileUI:vme,dataName:"".concat(Tme,"-title")})),affix:React__default.createElement(Button$1,{className:ime("SchemaEditor-btn"),onClick:$P.handlePropRemove.bind($P,Sme),iconOnly:!gme,level:gme?"link":"default",disabled:dme||!!(nme!=null&&nme.$ref)},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})),value:gme?__assign$3(__assign$3({},Cme.schema),{key:Cme.key,isRequired:Cme.required}):Cme.schema,onChange:$P.handlePropChange.bind($P,Sme),onFormConfirm:$P.handleEditProppertyConfirm.bind($P,Sme),renderExtraProps:ome,renderModalProps:lme,locale:sme,translate:rme,classnames:ime,classPrefix:cme,disabled:dme||!!(nme!=null&&nme.$ref),required:Cme.required,onRequiredChange:$P.handlePropRequiredChange.bind($P,Sme),placeholder:mme,formPrefixRender:$P.renderFormPrefix})}):React__default.createElement("div",{className:ime("SchemaEditorProps-placeholder")},rme((tme=mme==null?void 0:mme.empty)!==null&&tme!==void 0?tme:"")),gme?React__default.createElement(PickerContainer$1,{mobileUI:vme,value:{type:"string"},bodyRender:function(Cme){var Sme=Cme.isOpened,Eme=Cme.value,xme=Cme.onChange,Tme=Cme.ref;return Sme?React__default.createElement(SchemaEditorItem,{types:fme,value:Eme,onChange:xme,renderExtraProps:ome,renderModalProps:lme,locale:sme,translate:rme,classnames:ime,classPrefix:cme,disabled:dme,onTypeChange:$P.handleTypeChange,enableAdvancedSetting:hme,popOverContainer:bme,placeholder:mme,mobileUI:vme,mini:gme,formRef:Tme,formMode:!0,formPrefixRender:$P.renderFormPrefix}):null},beforeConfirm:this.handleBeforeSubmit,onConfirm:this.handleAddProppertyConfirm,title:rme("JSONSchema.add_prop"),popOverContainer:bme},function(Cme){var Sme=Cme.onClick;return React__default.createElement(Button$1,{level:"enhance",block:!0,onClick:Sme,size:"sm",disabled:dme||!!(nme!=null&&nme.$ref)},yme??rme("JSONSchema.add_prop"))}):React__default.createElement(Button$1,{level:"link",onClick:this.handleAdd,size:"xs",disabled:dme||!!(nme!=null&&nme.$ref)},yme??rme("JSONSchema.add_prop")))},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.showInfo,nme=$P.translate,rme=$P.formMode;$P.disabled;var ime=$P.locale,ome=$P.classPrefix,lme=$P.mini,sme=$P.types,cme=$P.placeholder,dme=$P.mobileUI,ume=$P.expandMembers;return rme?this.renderForm({formAffixRender:function(fme){return React__default.createElement(React__default.Fragment,null,React__default.createElement(Controller,{label:nme("JSONSchema.members"),name:"properties",control:fme.control,render:function(pme){var hme=pme.field;return React__default.createElement(SchemaEditorItem,__assign$3({},hme,{types:sme,value:{type:"object",required:[],properties:hme.value},onChange:function(bme){return hme.onChange(bme.properties)},placeholder:cme,mobileUI:dme,locale:ime,translate:nme,classnames:tme,classPrefix:ome,mini:!1}))}}))}}):React__default.createElement("div",{className:tme("SchemaEditorItem SchemaEditorObject",{"is-collapsed":this.state.collapsed,"SchemaEditorItem--mini":lme}),"data-amis-name":this.props.dataName},ame!==!1?React__default.createElement(React__default.Fragment,null,lme?null:React__default.createElement("a",{className:tme("SchemaEditor-caret",{"is-collapsed":this.state.collapsed}),onClick:this.toggleCollapsed},React__default.createElement(Icon$1,{icon:"caret",className:"icon"})),this.renderCommon()):null,this.state.collapsed||lme&&ume!==!0?null:this.rendererProps())},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"pipeOut",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddProppertyConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditProppertyConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handlePropKeyChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handlePropTitleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",void 0)],eme.prototype,"handlePropRemove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePropChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handlePropRequiredChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleCollapsed",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderFormPrefix",null),eme}(SchemaEditorItemCommon);ITEMMAP.object=SchemaEditorItemObject;var SchemaEditor$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=$P.translate;return tme.defaultTypes=[{label:ame("SchemaType.string"),value:"string"},{label:ame("SchemaType.number"),value:"number"},{label:ame("SchemaType.integer"),value:"integer"},{label:ame("SchemaType.boolean"),value:"boolean"},{label:ame("SchemaType.null"),value:"null"},{label:ame("SchemaType.object"),value:"object"},{label:ame("SchemaType.array"),value:"array"}],tme}return eme.prototype.handleTypeChange=function($P,tme,ame){var nme=this.props.definitions;return $P==="array"&&(tme.items={type:"string"}),nme!=null&&nme[$P]&&(tme=__assign$3(__assign$3(__assign$3({},tme),nme[$P]),{$ref:$P})),tme},eme.prototype.render=function(){var $P=this.props,tme=$P.defaultType,ame=$P.classnames,nme=$P.onChange,rme=$P.renderExtraProps,ime=$P.renderModalProps,ome=$P.translate,lme=$P.locale,sme=$P.classPrefix,cme=$P.rootTypeMutable,dme=$P.showRootInfo,ume=$P.disabled,fme=$P.definitions,pme=$P.enableAdvancedSetting,hme=$P.popOverContainer,bme=$P.placeholder,mme=$P.mobileUI,vme=$P.mini,gme=$P.className,yme=$P.addButtonText,_me=this.props.value||{type:tme||"object"},$me=Array.isArray(this.props.disabledTypes)?this.props.disabledTypes:[],Cme=this.defaultTypes.concat();if(fme){var Sme=Object.keys(fme);Sme.forEach(function(Eme){var xme=fme[Eme];xme!=null&&xme.type&&xme.title&&["string","number","integer","object","array","boolean","null"].includes(xme.type)&&Cme.push({value:Eme,label:ome(xme.title)})})}return $me.length&&(Cme=Cme.filter(function(Eme){return!~$me.indexOf(Eme.value)})),React__default.createElement("div",{className:ame("SchemaEditor",gme)},React__default.createElement(SchemaEditorItem,{types:Cme,typeMutable:cme,showInfo:dme,value:_me,onChange:nme,renderExtraProps:rme,renderModalProps:ime,locale:lme,translate:ome,classnames:ame,classPrefix:sme,disabled:ume,onTypeChange:this.handleTypeChange,enableAdvancedSetting:pme,popOverContainer:hme,placeholder:bme,mobileUI:mme,mini:vme,addButtonText:yme,expandMembers:!0}))},eme.defaultProps={defaultType:"object",rootTypeMutable:!1,showRootInfo:!1,disabledTypes:["null"],placeholder:schemaEditorItemPlaceholder},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleTypeChange",null),eme}(React__default.Component),JSONSchemaEditor=themeable(localeable(uncontrollable(SchemaEditor$1,{value:"onChange"}))),COORDINATES_GCJ02=3,COORDINATES_BD09=5,BaiduMapPicker$1=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={inputValue:"",locs:[],locIndex:-1,sugs:[]},$P.id=uuid$1(),$P.mapRef=React__default.createRef(),$P.search=debounce$6(function(){var tme;$P.state.inputValue?(tme=$P.ac)===null||tme===void 0||tme.search($P.state.inputValue):$P.setState({sugs:[]})},250,{trailing:!0,leading:!1}),$P}return eme.prototype.componentDidMount=function(){window.BMap?this.initMap():loadScript("//api.map.baidu.com/api?v=3.0&ak=".concat(this.props.ak,"&callback={{callback}}")).then(this.initMap)},eme.prototype.componentWillUnmount=function(){var $P,tme;(tme=($P=this.ac)===null||$P===void 0?void 0:$P.dispose)===null||tme===void 0||tme.call($P),this.placeholderInput&&document.body.removeChild(this.placeholderInput),delete this.placeholderInput,delete this.map},eme.prototype.initMap=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme=this;return __generator(this,function(sme){switch(sme.label){case 0:return tme=($P=this.props.autoSelectCurrentLoc)!==null&&$P!==void 0?$P:!1,ame=new BMap.Map(this.mapRef.current,{enableMapClick:!1}),this.map=ame,this.convertor=new BMap.Convertor,nme=this.props.value,rme=nme?new BMap.Point(nme.lng,nme.lat):new BMap.Point(116.404,39.915),this.props.coordinatesType!="gcj02"?[3,2]:[4,this.covertPoint(rme,COORDINATES_GCJ02,COORDINATES_BD09)];case 1:return rme=sme.sent(),ame.centerAndZoom(rme,15),[3,3];case 2:ame.centerAndZoom(rme,15),sme.label=3;case 3:return ame.addControl(new BMap.NavigationControl({type:BMAP_NAVIGATION_CONTROL_SMALL})),ime=new BMap.GeolocationControl,ime.addEventListener("locationSuccess",function(cme){lme.getLocations(cme.point,tme)}),ame.addControl(ime),ame.addEventListener("click",function(cme){lme.props.onlySelectCurrentLoc||lme.getLocations(cme.point,!0)}),ome=document.createElement("input"),ome.className="invisible",this.placeholderInput=ome,document.body.appendChild(ome),this.ac=new BMap.Autocomplete({input:ome,location:ame,onSearchComplete:function(cme){if(lme.map){var dme=[],ume=cme.getNumPois();if(ume){for(var fme=0;fme<ume;fme++){var pme=cme.getPoi(fme);pme&&dme.push([pme.province,pme.city,pme.district,pme.street,pme.business].join(" "))}lme.setState({sugs:dme})}}}}),nme?this.getLocations(rme):ime.location(),[2]}})})},eme.prototype.getLocations=function($P,tme){var ame=this,nme=this.map;nme.clearOverlays();var rme=new BMap.Marker($P);nme.addOverlay(rme),nme.panTo($P);var ime=new BMap.Geocoder;ime.getLocation($P,function(ome){if(ame.map){var lme=0,sme=[];sme.push({title:"当前位置",address:ome.address,city:ome.addressComponents.city,lat:ome.point.lat,lng:ome.point.lng}),Array.isArray(ome.surroundingPois)&&ome.surroundingPois.forEach(function(cme){sme.push({title:cme.title,address:cme.address,city:cme.city,lat:cme.point.lat,lng:cme.point.lng})}),ame.setState({locIndex:lme,locs:sme},function(){tme&&ame.triggerOnChange(sme[0])})}})},eme.prototype.handleChange=function($P){this.setState({inputValue:$P.currentTarget.value},this.search)},eme.prototype.handleSelect=function($P){var tme=this,ame=parseInt($P.currentTarget.getAttribute("data-index"),10),nme=this.state.locs[ame];this.setState({locIndex:ame},function(){var rme=new BMap.Point(nme.lng,nme.lat);tme.map.clearOverlays();var ime=new BMap.Marker(rme);tme.map.addOverlay(ime),tme.map.panTo(rme),tme.triggerOnChange(nme)})},eme.prototype.covertPoint=function($P,tme,ame){var nme=this;return new Promise(function(rme,ime){nme.convertor.translate([$P],tme,ame,function(ome){ome.status===0&&ome.points.length?rme(new BMap.Point(ome.points[0].lng,ome.points[0].lat)):ime()})})},eme.prototype.triggerOnChange=function($P){var tme=this,ame,nme,rme=new BMap.Point($P.lng,$P.lat);this.props.coordinatesType=="gcj02"?this.covertPoint(rme,COORDINATES_BD09,COORDINATES_GCJ02).then(function(ime){var ome;typeof((ome=tme.props)===null||ome===void 0?void 0:ome.onChange)=="function"&&tme.props.onChange({address:$P.address.trim()||$P.title,lat:ime.lat,lng:ime.lng,city:$P.city})}):typeof((ame=this.props)===null||ame===void 0?void 0:ame.onChange)=="function"&&((nme=this.props)===null||nme===void 0||nme.onChange({address:$P.address.trim()||$P.title,lat:$P.lat,lng:$P.lng,city:$P.city}))},eme.prototype.handleSugSelect=function($P){var tme=this,ame=$P.currentTarget.innerText;this.setState({inputValue:ame});var nme=new BMap.LocalSearch(this.map,{onSearchComplete:function(){var rme=nme.getResults(),ime=rme.getPoi(0);tme.setState({inputValue:ime==null?void 0:ime.title,sugs:[]}),tme.getLocations(ime==null?void 0:ime.point,!0)}});nme.search(ame)},eme.prototype.render=function(){var $P=this,tme,ame=this.props.classnames,nme=(tme=this.props.onlySelectCurrentLoc)!==null&&tme!==void 0?tme:!1,rme=this.state,ime=rme.locIndex,ome=rme.locs,lme=rme.inputValue,sme=rme.sugs,cme=Array.isArray(sme)&&sme.length;return React__default.createElement("div",{className:ame("MapPicker")},!nme&&React__default.createElement("div",{className:ame("MapPicker-search TextControl-control")},React__default.createElement("div",{className:ame("TextControl-input")},React__default.createElement("input",{onChange:this.handleChange,value:lme,placeholder:"搜索地点"}))),React__default.createElement("div",{ref:this.mapRef,className:ame("MapPicker-map",{invisible:cme})}),React__default.createElement("div",{className:ame("MapPicker-result",{invisible:cme})},!nme&&ome.map(function(dme,ume){return React__default.createElement("div",{onClick:$P.handleSelect,key:ume,"data-index":ume,className:ame("MapPicker-item")},React__default.createElement("div",{className:ame("MapPicker-itemTitle")},dme.title),React__default.createElement("div",{className:ame("MapPicker-itemDesc")},dme.address),ime===ume?React__default.createElement(Icon$1,{icon:"success",className:"icon"}):null)}),nme&&ome.length>0&&React__default.createElement("div",{onClick:this.handleSelect,key:"locs-current","data-index":0,className:ame("MapPicker-item")},React__default.createElement("div",{className:ame("MapPicker-itemTitle")},ome[0].title),React__default.createElement("div",{className:ame("MapPicker-itemDesc")},ome[0].address),ime===0?React__default.createElement(Icon$1,{icon:"success",className:"icon"}):null)),cme&&!nme?React__default.createElement("div",{className:ame("MapPicker-sug")},sme.map(function(dme){return React__default.createElement("div",{onClick:$P.handleSugSelect,className:ame("MapPicker-sugItem"),key:dme},dme)})):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"initMap",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"getLocations",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSugSelect",null),eme}(React__default.Component),BaiduMapPicker$1$1=themeable(BaiduMapPicker$1),BaiduMapPicker=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={inputValue:"",locs:[],locIndex:-1,sugs:[]},$P.id=uuid$1(),$P.mapRef=React__default.createRef(),$P.resultListRef=React__default.createRef(),$P.search=debounce$6(function(){var tme;$P.state.inputValue?(tme=$P.placeSearch)===null||tme===void 0||tme.search($P.state.inputValue):$P.setState({sugs:[]})},250,{trailing:!0,leading:!1}),$P}return eme.prototype.componentDidMount=function(){window.AMap?this.initMap():(loadStyle("https://cache.amap.com/lbs/static/main1119.css"),loadScript("//webapi.amap.com/maps?v=2.0&key=".concat(this.props.ak)).then(this.initMap))},eme.prototype.initMap=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme=this;return __generator(this,function(ame){return $P=new AMap.Map(this.mapRef.current,{resizeEnable:!0,zoom:13}),this.map=$P,$P.plugin(["AMap.Geocoder"],function(){tme.geocoder=new AMap.Geocoder({radius:1e3,extensions:"all"})}),$P.plugin("AMap.Geolocation",function(){tme.geolocation=new AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4,maximumAge:0,convert:!0}),$P.addControl(tme.geolocation)}),AMap.plugin(["AMap.PlaceSearch"],function(){tme.placeSearch=new AMap.PlaceSearch({pageSize:5,pageIndex:1,map:$P,panel:tme.resultListRef.current,autoFitView:!0}),tme.placeSearch.on("selectChanged",function(nme){var rme=nme.selected.data.location;tme.syncLocation({lng:rme.lng,lat:rme.lat,address:nme.selected.data.address,city:nme.selected.data.cityname})})}),this.props.value?($P.setZoomAndCenter(13,[this.props.value.lng,this.props.value.lat]),this.mark=new AMap.Marker({position:[this.props.value.lng,this.props.value.lat]}),this.mark.setMap($P)):this.geolocation.getCurrentPosition(function(nme,rme){}),$P.on("click",function(nme){$P.setCenter(nme.lnglat);var rme=new AMap.Marker({position:[nme.lnglat.lng,nme.lnglat.lat]});rme.setMap($P),tme.mark&&tme.mark.setMap(null),tme.mark=rme,tme.syncLocation(nme.lnglat)}),[2]})})},eme.prototype.syncLocation=function($P){return __awaiter(this,void 0,void 0,function(){var tme=this;return __generator(this,function(ame){return new Promise(function(nme,rme){var ime,ome;if($P.address&&$P.city){var lme={lng:$P.lng,lat:$P.lat,address:$P.address,city:$P.city,vendor:"gaode"};!((ime=tme.props)===null||ime===void 0)&&ime.onChange&&((ome=tme.props)===null||ome===void 0||ome.onChange(lme))}tme.geocoder.getAddress($P,function(sme,cme){var dme,ume;if(sme==="complete"&&cme.info==="OK"){nme({status:sme,result:cme});var fme={lng:$P.lng,lat:$P.lat,address:cme.regeocode.formattedAddress,city:cme.regeocode.addressComponent.city||cme.regeocode.addressComponent.province||cme.regeocode.addressComponent.district,vendor:"gaode"};!((dme=tme.props)===null||dme===void 0)&&dme.onChange&&((ume=tme.props)===null||ume===void 0||ume.onChange(fme))}else rme({status:sme,result:cme})})}),[2]})})},eme.prototype.handleChange=function($P){this.setState({inputValue:$P.currentTarget.value},this.search)},eme.prototype.render=function(){var $P=this.props.classnames,tme=this.state;tme.locIndex,tme.locs;var ame=tme.inputValue;return tme.sugs,React__default.createElement("div",{className:$P("MapPicker")},React__default.createElement("div",{className:$P("MapPicker-search TextControl-control")},React__default.createElement("div",{className:$P("TextControl-input")},React__default.createElement("input",{onChange:this.handleChange,value:ame,placeholder:"搜索地点"}))),React__default.createElement("div",{ref:this.mapRef,className:$P("MapPicker-map",{invisible:!1})}),React__default.createElement("div",{ref:this.resultListRef,className:$P("MapPicker-result",{invisible:!1})}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"initMap",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"syncLocation",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),eme}(React__default.Component),GaodeMapPicker=themeable(BaiduMapPicker),LocationPicker=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.domRef=React__default.createRef(),$P.state={isFocused:!1,isOpened:!1},$P}return eme.prototype.handleKeyPress=function($P){$P.key===" "&&(this.handleClick(),$P.preventDefault())},eme.prototype.handleFocus=function(){this.setState({isFocused:!0})},eme.prototype.handleBlur=function(){this.setState({isFocused:!0})},eme.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},eme.prototype.getTarget=function(){return this.domRef.current},eme.prototype.getParent=function(){var $P;return($P=this.domRef.current)===null||$P===void 0?void 0:$P.parentElement},eme.prototype.open=function($P){this.props.disabled||this.setState({isOpened:!0},$P),this.tempValue=this.props.value},eme.prototype.close=function(){this.setState({isOpened:!1})},eme.prototype.clearValue=function($P){$P.preventDefault(),$P.stopPropagation();var tme=this.props.onChange;tme("")},eme.prototype.handlePopOverClick=function($P){$P.stopPropagation(),$P.preventDefault()},eme.prototype.handleChange=function($P){$P&&($P=__assign$3(__assign$3({},$P),{vendor:this.props.vendor})),this.props.onChange($P)},eme.prototype.handleTempChange=function($P){$P&&($P=__assign$3(__assign$3({},$P),{vendor:this.props.vendor})),this.tempValue=$P},eme.prototype.handleConfirm=function(){this.props.onChange(this.tempValue),this.close()},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.classnames,rme=ame.value,ime=ame.className,ome=ame.popoverClassName,lme=ame.disabled,sme=ame.placeholder,cme=ame.getLocationPlaceholder,dme=ame.clearable,ume=ame.popOverContainer,fme=ame.vendor,pme=ame.coordinatesType,hme=ame.ak,bme=ame.mobileUI,mme=ame.autoSelectCurrentLoc,vme=ame.onlySelectCurrentLoc,gme=this.props.translate,yme=this.state,_me=yme.isFocused,$me=yme.isOpened;return function(){switch(fme){case"baidu":return React__default.createElement(BaiduMapPicker$1$1,{ak:hme,value:rme,coordinatesType:pme,autoSelectCurrentLoc:mme,onlySelectCurrentLoc:vme,onChange:$P.handleChange});case"gaode":return React__default.createElement(GaodeMapPicker,{ak:hme,value:rme,coordinatesType:pme,onChange:$P.handleChange});default:return React__default.createElement(Alert2,null,gme("{{vendor}} 地图控件不支持",{vendor:fme}))}}(),React__default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:nme("LocationPicker",{"is-mobile":bme,"is-disabled":lme,"is-focused":_me,"is-active":$me},ime),ref:this.domRef,onClick:this.handleClick},rme?React__default.createElement("span",{className:nme("LocationPicker-value")},rme.address):React__default.createElement("span",{className:nme("LocationPicker-placeholder")},gme(vme?cme:sme)),dme&&!lme&&rme?React__default.createElement("a",{className:nme("LocationPicker-clear"),onClick:this.clearValue},React__default.createElement(Icon$1,{icon:"input-clear",className:"icon"})):null,React__default.createElement("a",{className:nme("LocationPicker-toggler")},React__default.createElement(Icon$1,{icon:"location",className:"icon"})),bme?React__default.createElement(PopUp$1,{className:nme("LocationPicker-popup"),container:ume||this.getParent,isShow:$me,onHide:this.close,showConfirm:!0,onConfirm:this.handleConfirm},React__default.createElement("div",{className:nme("LocationPicker-popup-inner")},fme==="baidu"?React__default.createElement(BaiduMapPicker$1$1,{ak:hme,value:rme,coordinatesType:pme,autoSelectCurrentLoc:mme,onlySelectCurrentLoc:vme,onChange:this.handleTempChange}):React__default.createElement(Alert2,null,gme("{{vendor}} 地图控件不支持",{vendor:fme})))):React__default.createElement(Overlay,{target:this.getTarget,container:ume||this.getParent,rootClose:!1,show:$me},React__default.createElement(PopOver$1,{className:nme("LocationPicker-popover",ome),onHide:this.close,overlay:!0,onClick:this.handlePopOverClick,style:{width:(tme=this.getTarget())===null||tme===void 0?void 0:tme.offsetWidth}},fme==="baidu"?React__default.createElement(BaiduMapPicker$1$1,{ak:hme,value:rme,coordinatesType:pme,autoSelectCurrentLoc:mme,onlySelectCurrentLoc:vme,onChange:this.handleChange}):React__default.createElement(Alert2,null,gme("{{vendor}} 地图控件不支持",{vendor:fme})))))},eme.defaultProps={placeholder:"LocationPicker.placeholder",getLocationPlaceholder:"LocationPicker.getLocation",clearable:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyPress",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getTarget",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getParent",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Function]),__metadata("design:returntype",void 0)],eme.prototype,"open",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"clearValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePopOverClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleTempChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),eme}(React__default.Component),ThemedCity=themeable(localeable(LocationPicker)),arrayMap$2=_arrayMap,baseIntersection=_baseIntersection,baseIteratee$5=_baseIteratee,baseRest$2=_baseRest,castArrayLikeObject=_castArrayLikeObject,last$1=last_1,intersectionBy=baseRest$2(function(x_){var eme=last$1(x_),$P=arrayMap$2(x_,castArrayLikeObject);return eme===last$1($P)?eme=void 0:$P.pop(),$P.length&&$P[0]===x_[0]?baseIntersection($P,baseIteratee$5(eme)):[]}),intersectionBy_1=intersectionBy;const intersectionBy$1=getDefaultExportFromCjs(intersectionBy_1);function compact(x_){for(var eme=-1,$P=x_==null?0:x_.length,tme=0,ame=[];++eme<$P;){var nme=x_[eme];nme&&(ame[tme++]=nme)}return ame}var compact_1=compact;const compact$1=getDefaultExportFromCjs(compact_1);var Cascader=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.tabsRef=React__default.createRef(),tme.tabRef=React__default.createRef(),tme.getParentTree=function(ame,nme){var rme=tme.getOptionParent(ame);return rme?(nme.push(rme),tme.getParentTree(rme,nme)):nme},tme.state={activePaths:[],selectedOptions:tme.props.selectedOptions||[],tabs:[{options:tme.props.options.slice()||[]}],disableConfirm:!1},tme}return eme.prototype.componentDidMount=function(){var $P=this.props,tme=$P.multiple,ame=$P.options,nme=$P.valueField,rme=nme===void 0?"value":nme,ime=$P.cascade;$P.onlyLeaf;var ome=this.props.selectedOptions.slice(),lme=0,sme=[];ome.forEach(function(ume){var fme=getTreeAncestors(ame,ume);fme&&(fme==null?void 0:fme.length)>lme&&(sme=fme,lme=sme.length)});var cme=ome.map(function(ume){return ume[rme]}),dme=sme.map(function(ume){var fme;return tme&&!ime&&cme.includes(ume[rme])&&!((fme=ume==null?void 0:ume.children)===null||fme===void 0)&&fme.length&&ume.children.forEach(function(pme){return pme.disabled=!0}),{options:ume.children?ume.children:[]}});this.setState({selectedOptions:ome,tabs:__spreadArray(__spreadArray([],__read$3(this.state.tabs),!1),__read$3(dme),!1)})},eme.prototype.getOptionParent=function($P){var tme=this.props,ame=tme.options,nme=tme.valueField,rme=nme===void 0?"value":nme,ime=[];return findTree(ame,function(ome,lme,sme,cme){return ome[rme]===$P[rme]?(ime=cme,!0):!1}),ime.length?ime[ime.length-1]:null},eme.prototype.dealParentSelect=function($P,tme){var ame,nme=this.props,rme=nme.valueField,ime=rme===void 0?"value":rme,ome=nme.onlyLeaf,lme=this.getOptionParent($P);if(lme&&!ome){var sme=lme==null?void 0:lme.children,cme=intersectionBy$1(tme,sme,ime),dme=find$3(tme,(ame={},ame[ime]=lme[ime],ame));if(cme.length===(sme==null?void 0:sme.length)&&!dme&&tme.push(lme),cme.length!==(sme==null?void 0:sme.length)&&dme){var ume=tme.findIndex(function(fme){return fme[ime]===lme[ime]});tme.splice(ume,1)}return this.dealParentSelect(lme,tme)}else return tme},eme.prototype.flattenTreeWithLeafNodes=function($P){return compact$1(flattenTree(Array.isArray($P)?$P:[$P],function(tme){return tme}))},eme.prototype.adjustOptionSelect=function($P){var tme=this.props.valueField,ame=tme===void 0?"value":tme,nme=this.state.selectedOptions;function rme(ime){return ime.length?ime.some(function(ome){return ome[ame]===$P[ame]}):!1}return rme(nme)},eme.prototype.getOnlyChildrenSelect=function($P,tme){var ame,nme=this.props.onlyChildren;return tme=tme||this.state.selectedOptions,nme&&((ame=$P.children)===null||ame===void 0?void 0:ame.filter(function(rme){var ime;return!(!((ime=rme.children)===null||ime===void 0)&&ime.length)}).every(function(rme){var ime;return!(!((ime=rme.children)===null||ime===void 0)&&ime.length)&&(tme==null?void 0:tme.includes(rme))}))},eme.prototype.getSelectedChildNum=function($P){var tme=this,ame=0,nme=function(rme){var ime,ome;if(!(!rme||!rme.length))try{for(var lme=__values$1(rme),sme=lme.next();!sme.done;sme=lme.next()){var cme=sme.value;cme.children?nme(cme.children||[]):tme.adjustOptionSelect(cme)&&ame++}}catch(dme){ime={error:dme}}finally{try{sme&&!sme.done&&(ome=lme.return)&&ome.call(lme)}finally{if(ime)throw ime.error}}};return nme($P.children||[]),ame},eme.prototype.dealOptionDisable=function($P){var tme=this.props,ame=tme.valueField,nme=ame===void 0?"value":ame,rme=tme.options,ime=tme.cascade,ome=tme.multiple,lme=tme.onlyLeaf,sme=tme.onlyChildren;if(!(!ome||ime||sme||lme)){var cme=$P.map(function(ume){return ume[nme]}),dme=function(ume){ume.children&&ume.children&&ume.children.forEach(function(fme){!cme.includes(ume[nme])&&!ume.disabled&&(fme.disabled=!1),(cme.includes(ume[nme])||ume.disabled)&&(fme.disabled=!0),dme(fme)})};rme.forEach(function(ume){return dme(ume)})}},eme.prototype.dealChildrenSelect=function($P,tme){var ame,nme=this.props,rme=nme.valueField,ime=rme===void 0?"value":rme,ome=nme.onlyChildren,lme=tme.findIndex(function(dme){return dme[ime]===$P[ime]}),sme=this.getOnlyChildrenSelect($P,tme);lme!==-1?tme.splice(lme,1):sme||ome&&(!((ame=$P.children)===null||ame===void 0)&&ame.length)||tme.push($P);function cme(dme){dme.children&&dme.children.forEach(function(ume){var fme;lme!==-1||sme?tme=tme.filter(function(pme){return pme[ime]!==ume[ime]}):ome&&(!((fme=ume.children)===null||fme===void 0)&&fme.length)||tme.push(ume),cme(ume)})}return cme($P),tme},eme.prototype.onSelect=function($P,tme){var ame,nme=this.props,rme=nme.multiple,ime=nme.valueField,ome=ime===void 0?"value":ime,lme=nme.cascade,sme=nme.onlyLeaf,cme=nme.onlyChildren,dme=nme.withChildren,ume=this.state.selectedOptions,fme=$P.disabled;if(!fme)if(rme)if(lme){var pme=ume.findIndex(function(bme){return bme[ome]===$P[ome]});pme!==-1?ume.splice(pme,1):ume.push($P)}else{if(dme||cme)ume=this.dealChildrenSelect($P,ume);else{var pme=ume.findIndex(function(mme){return mme[ome]===$P[ome]});pme!==-1?ume.splice(pme,1):ume.push($P)}ume=this.dealParentSelect($P,ume)}else sme?!((ame=$P.children)===null||ame===void 0)&&ame.length||(ume=[$P]):ume=[$P];this.dealOptionDisable(ume);var hme=!1;sme&&ume.length&&ume[0].children&&(hme=!0),this.setState({selectedOptions:ume,disableConfirm:hme})},eme.prototype.handleExpand=function($P,tme){var ame=this,nme,rme=this.state.activePaths.slice();!((nme=$P.children)===null||nme===void 0)&&nme.length?rme[tme]=$P:rme.splice(tme);var ime=this.state.tabs.slice();if(ime.length>tme+1&&(ime=ime.slice(0,tme+1)),$P!=null&&$P.children){var ome={options:$P.children};ime[tme+1]?ime[tme+1]=ome:ime.push(ome)}requestAnimationFrame(function(){var lme,sme,cme=((lme=ame.tabRef.current)===null||lme===void 0?void 0:lme.offsetWidth)||1,dme=ame.getParentTree($P,[$P]),ume=(dme.length-2)*cme;ume!==0&&((sme=ame.tabsRef.current)===null||sme===void 0||sme.scrollTo(ume,0))}),this.setState({activePaths:rme,tabs:ime})},eme.prototype.getSubmitOptions=function($P){var tme=[],ame=this.props,nme=ame.multiple,rme=ame.options,ime=ame.valueField,ome=ime===void 0?"value":ime,lme=ame.cascade,sme=ame.onlyChildren,cme=ame.withChildren;if(lme||sme||cme||!nme)return $P;var dme=$P.map(function(fme){return fme[ome]});function ume(fme){!fme||!fme.length||fme.forEach(function(pme){dme.includes(pme[ome])?tme.push(pme):ume(pme.children?pme.children:[])})}return ume(rme),tme},eme.prototype.confirm=function(){var $P=this.props,tme=$P.onChange,ame=$P.onClose,nme=$P.onlyLeaf,rme=this.getSelectedOptions();nme&&rme.length&&rme[0].children||(tme(rme),ame&&ame())},eme.prototype.getSelectedOptions=function(){return uniqBy$1(this.getSubmitOptions(this.state.selectedOptions),this.props.valueField)},eme.prototype.renderOption=function($P,tme){var ame=this,nme,rme,ime,ome=this.props,lme=ome.onlyLeaf,sme=ome.activeColor,cme=ome.optionRender,dme=ome.labelField,ume=ome.valueField,fme=ume===void 0?"value":ume,pme=ome.multiple,hme=ome.classnames,bme=this.state,mme=bme.selectedOptions,vme=bme.activePaths,gme=mme.map(function(Cme){return Cme[fme]}),yme=gme.includes($P[fme]),_me=$P.color||(yme?sme:void 0),$me=cme?cme({option:$P,selected:yme}):React__default.createElement("span",null,$P[dme]);return React__default.createElement("li",{className:hme("Cascader-option",{selected:yme,disabled:$P.disabled,"is-active":vme.includes($P)},$P.className),style:{color:_me},key:tme+"-"+$P[fme],onClick:function(){!pme&&ame.onSelect($P,tme),ame.handleExpand($P,tme)}},pme?React__default.createElement(Checkbox$1$1,{disabled:$P.disabled||lme&&((nme=$P.children)===null||nme===void 0?void 0:nme.length),checked:mme.includes($P)||this.getOnlyChildrenSelect($P),onChange:function(){return ame.onSelect($P,tme)}},React__default.createElement("span",{className:hme("Cascader-option--text")},$me)):React__default.createElement("span",{className:hme("Cascader-option--text",{disabled:lme&&((rme=$P.children)===null||rme===void 0?void 0:rme.length)})},$me),!((ime=$P.children)===null||ime===void 0)&&ime.length?React__default.createElement("span",{className:hme("Cascader-option-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null)},eme.prototype.renderOptions=function($P,tme){var ame=this,nme=this.props.classnames;return React__default.createElement("ul",{key:tme,className:nme("Cascader-options")},$P.map(function(rme){return ame.renderOption(rme,tme)}))},eme.prototype.renderTabs=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.options,rme=this.state.tabs,ime=getTreeDepth(nme);return React__default.createElement("div",{className:ame("Cascader-tabs",ime>3?"scrollable":""),ref:this.tabsRef},rme.map(function(ome,lme){var sme=ome.options;return React__default.createElement("div",{className:ame("Cascader-tab depth-".concat(lme)),ref:$P.tabRef,key:lme},$P.renderOptions(sme,lme))}),ime<=3&&nme.length?Array(getTreeDepth(nme)-rme.length).fill(1).map(function(ome,lme){return React__default.createElement("div",{className:ame("Cascader-tab depth-".concat(lme+1)),key:lme})}):null)},eme.prototype.render=function(){var $P=this.props;$P.classPrefix;var tme=$P.classnames,ame=$P.className,nme=$P.onClose;$P.valueField;var rme=$P.translate;return React__default.createElement("div",{className:tme("Cascader",ame)},React__default.createElement("div",{className:tme("Cascader-btnGroup")},React__default.createElement(Button$1,{className:tme("Cascader-btnCancel"),level:"link",onClick:nme},rme("cancel")),React__default.createElement(Button$1,{className:tme("Cascader-btnConfirm"),level:"link",onClick:this.confirm,disabled:this.state.disableConfirm},rme("confirm"))),this.renderTabs())},eme.defaultProps={labelField:"label",valueField:"value"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"getOptionParent",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",Object)],eme.prototype,"dealParentSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"flattenTreeWithLeafNodes",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Boolean)],eme.prototype,"adjustOptionSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Array]),__metadata("design:returntype",void 0)],eme.prototype,"getOnlyChildrenSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Number)],eme.prototype,"getSelectedChildNum",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dealOptionDisable",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"dealChildrenSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"onSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleExpand",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Object)],eme.prototype,"getSubmitOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"confirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getSelectedOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderOption",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderTabs",null),eme}(React__default.Component),Cascader$1=themeable(Cascader),TransferDropDown=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={tempValue:$P.value,inputValue:"",searchResult:null,isTreeDeferLoad:!1,resultSelectMode:"list"},tme}return eme.prototype.componentDidUpdate=function($P){this.props.value!==$P.value&&this.setState({tempValue:this.props.value})},eme.prototype.handleAfterPopoverHide=function(){this.setState({inputValue:"",searchResult:null})},eme.prototype.handleChange=function($P,tme){var ame=this.props,nme=ame.multiple,rme=ame.onChange,ime=ame.mobileUI;ime?this.setState({tempValue:$P}):(rme==null||rme($P),nme||tme())},eme.prototype.onConfirm=function(){var $P=this.props.onChange;$P==null||$P(this.state.tempValue)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.value,rme=tme.itemRender,ime=tme.translate,ome=tme.disabled,lme=tme.clearable,sme=tme.className,cme=tme.onChange,dme=tme.onSearch,ume=tme.multiple,fme=tme.borderMode,pme=tme.mobileUI,hme=tme.popOverContainer,bme=tme.placeholder,mme=tme.maxTagCount,vme=tme.overflowTagPopover;tme.itemHeight,tme.virtualThreshold;var gme=tme.showInvalidMatch,yme=tme.overlay,_me=this.state,$me=_me.inputValue,Cme=_me.searchResult;return React__default.createElement(PopOverContainer,{onAfterHide:this.handleAfterPopoverHide,mobileUI:pme,popOverContainer:hme,overlayWidth:yme&&(yme==null?void 0:yme.width),align:yme&&(yme==null?void 0:yme.align),popOverClassName:ame("TransferDropDown-popover"),showConfirm:!0,onConfirm:this.onConfirm,popOverRender:function(Sme){var Eme=Sme.onClose;return React__default.createElement("div",{className:ame("TransferDropDown-content",{"is-mobile":pme})},dme?React__default.createElement("div",{className:ame("Transfer-search")},React__default.createElement(InputBox$1,{value:$me,onChange:$P.handleSearch,placeholder:bme??ime("Transfer.searchKeyword"),clearable:!1,onKeyDown:$P.handleSearchKeyDown,mobileUI:pme},Cme!==null?React__default.createElement("a",{onClick:$P.handleSeachCancel},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"}))):null,Cme!==null?$P.renderSearchResult(__assign$3(__assign$3({},$P.props),{value:$P.state.tempValue,onChange:function(xme){return $P.handleChange(xme,Eme)},multiple:ume})):$P.renderOptions(__assign$3(__assign$3({},$P.props),{value:$P.state.tempValue,onChange:function(xme){return $P.handleChange(xme,Eme)},multiple:ume})))}},function(Sme){var Eme=Sme.onClick,xme=Sme.isOpened,Tme=Sme.ref;return React__default.createElement(ResultBox$1,{className:ame("TransferDropDown",sme,xme?"is-opened":""),borderMode:fme,allowInput:!1,result:ume?nme:nme!=null&&nme[0]?nme==null?void 0:nme[0]:null,onResultChange:cme,onResultClick:Eme,placeholder:bme??ime("Select.placeholder"),disabled:ome,clearable:lme,maxTagCount:mme,overflowTagPopover:vme,popOverContainer:hme,ref:Tme,itemRender:rme,mobileUI:pme,hasDropDownArrow:!pme,showInvalidMatch:gme})})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAfterPopoverHide",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onConfirm",null),eme}(Transfer),TransferDropDown$1=themeable(localeable(uncontrollable(TransferDropDown,{value:"onChange"}))),TransferPicker$2=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.optionModified=!1,$P}return eme.prototype.handleConfirm=function($P){var tme,ame;(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P,this.optionModified),this.optionModified=!1},eme.prototype.onFocus=function(){var $P,tme;(tme=($P=this.props).onFocus)===null||tme===void 0||tme.call($P)},eme.prototype.onBlur=function(){var $P,tme;(tme=($P=this.props).onBlur)===null||tme===void 0||tme.call($P)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.value,rme=tme.translate,ime=tme.disabled,ome=tme.className,lme=tme.onChange,sme=tme.size,cme=tme.labelField,dme=cme===void 0?"label":cme,ume=tme.mobileUI,fme=tme.popOverContainer,pme=tme.maxTagCount,hme=tme.overflowTagPopover,bme=tme.placeholder,mme=__rest$14(tme,["classnames","value","translate","disabled","className","onChange","size","labelField","mobileUI","popOverContainer","maxTagCount","overflowTagPopover","placeholder"]);return React__default.createElement(PickerContainer$1,{title:rme("Select.placeholder"),mobileUI:ume,popOverContainer:fme,onFocus:this.onFocus,onClose:this.onBlur,bodyRender:function(vme){vme.onClose;var gme=vme.value,yme=vme.onChange,_me=vme.setState,$me=__rest$14(vme,["onClose","value","onChange","setState"]);return React__default.createElement(TabsTransfer$1,__assign$3({},mme,$me,{value:gme,mobileUI:ume,onChange:function(Cme,Sme){if(Sme){var Eme=mapTree(mme.options,function(xme){return Cme.find(function(Tme){return Tme.value===xme.value})||xme});$P.optionModified=!0,_me({options:Eme,value:Cme})}else yme(Cme)},labelField:dme}))},value:nme,onConfirm:this.handleConfirm,size:sme},function(vme){var gme=vme.onClick,yme=vme.isOpened;return React__default.createElement(ResultBox$1,{className:ame("TransferPicker",ome,yme?"is-active":""),allowInput:!1,result:nme,onResultChange:lme,onResultClick:gme,placeholder:bme??rme("Select.placeholder"),disabled:ime,itemRender:function(_me){return React__default.createElement("span",null,_me&&_me[dme]||"undefiend")},mobileUI:ume,maxTagCount:pme,overflowTagPopover:hme},ume?null:React__default.createElement("span",{className:ame("TransferPicker-icon")},React__default.createElement(Icon$1,{icon:"pencil",className:"icon"})))})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onBlur",null),eme}(React__default.Component),TabsTransferPicker=themeable(localeable(uncontrollable(TransferPicker$2,{value:"onChange"}))),TransferPicker=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={tempValue:null},$P.optionModified=!1,$P}return eme.prototype.handleConfirm=function($P){var tme,ame;this.setState({tempValue:null}),(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P,this.optionModified),this.optionModified=!1},eme.prototype.onFocus=function(){var $P,tme;(tme=($P=this.props).onFocus)===null||tme===void 0||tme.call($P)},eme.prototype.onBlur=function(){var $P,tme;this.setState({tempValue:null}),(tme=($P=this.props).onBlur)===null||tme===void 0||tme.call($P)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.value,rme=tme.translate,ime=tme.disabled,ome=tme.className,lme=tme.onChange,sme=tme.onItemClick,cme=tme.size,dme=tme.borderMode,ume=tme.labelField,fme=ume===void 0?"label":ume,pme=tme.mobileUI,hme=tme.popOverContainer,bme=tme.maxTagCount,mme=tme.overflowTagPopover,vme=tme.placeholder,gme=__rest$14(tme,["classnames","value","translate","disabled","className","onChange","onItemClick","size","borderMode","labelField","mobileUI","popOverContainer","maxTagCount","overflowTagPopover","placeholder"]),yme={value:this.state.tempValue||nme,onChange:function(_me){$P.setState({tempValue:_me})}};return React__default.createElement(PickerContainer$1,{title:rme("Select.placeholder"),onFocus:this.onFocus,onClose:this.onBlur,mobileUI:pme,popOverContainer:hme,bodyRender:function(_me){_me.onClose;var $me=_me.value;_me.onChange;var Cme=_me.setState,Sme=__rest$14(_me,["onClose","value","onChange","setState"]);return React__default.createElement(Transfer$1,__assign$3({mobileUI:pme},gme,Sme,{value:$me,labelField:fme,onChange:function(Eme,xme){if(xme){var Tme=mapTree(gme.options,function(Ome){return Eme.find(function(Rme){return Rme.value===Ome.value})||Ome});$P.optionModified=!0,Cme({options:Tme,value:Eme})}else yme.onChange(Eme)}}))},value:yme.value,onConfirm:this.handleConfirm,size:cme},function(_me){var $me=_me.onClick,Cme=_me.isOpened;return React__default.createElement(ResultBox$1,{className:ame("TransferPicker",ome,Cme?"is-active":""),allowInput:!1,result:nme,onItemClick:sme,onResultChange:lme,onResultClick:$me,placeholder:vme??rme("Select.placeholder"),disabled:ime,borderMode:dme,itemRender:function(Sme){return React__default.createElement("span",null,Sme&&Sme[fme]||"undefined")},mobileUI:pme,maxTagCount:bme,overflowTagPopover:mme},pme?null:React__default.createElement("span",{className:ame("TransferPicker-icon")},React__default.createElement(Icon$1,{icon:"pencil",className:"icon"})))})},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onBlur",null),eme}(React__default.Component),TransferPicker$1=themeable(localeable(uncontrollable(TransferPicker,{value:"onChange"}))),defaultIcons=["user-default-department","user-default-role","user-default-post"],UserSelect=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.unmounted=!1,tme.lazySearch=debounce$6(function(ame){(function(nme){return __awaiter(tme,void 0,void 0,function(){var rme,ime,ome=this;return __generator(this,function(lme){switch(lme.label){case 0:return rme=this.props.onSearch,[4,rme(nme,function(sme){return ome.cancelSearch=sme})];case 1:if(ime=lme.sent(),this.unmounted)return[2];if(!Array.isArray(ime))throw new Error("onSearch 需要返回数组");return this.setState({searchList:ime,searchLoading:!1}),[2]}})})})(ame).catch(function(nme){tme.setState({searchLoading:!1}),console.error(nme)})},250,{trailing:!0,leading:!1}),tme.state={isOpened:!1,isSelectOpened:!1,inputValue:"",options:tme.props.options||[],breadList:[],searchList:[],tempSelection:[],selection:$P.selection||[],isSearch:!1,searchLoading:!1,isEdit:!1},tme}return eme.prototype.componentDidMount=function(){},eme.prototype.componentDidUpdate=function($P){var tme,ame=this.props,nme=ame.options,rme=ame.value;if($P.options!==nme)if(nme&&nme.length&&nme[0].leftOptions&&Array.isArray(nme[0].children)){var ime=nme[0].leftOptions;this.setState({options:ime})}else this.setState({options:nme});if(JSON.stringify(rme)!==JSON.stringify($P.value)||JSON.stringify(nme)!==JSON.stringify($P.options)&&(!((tme=$P.options)===null||tme===void 0)&&tme.length)){var ome=value2array(rme,this.props);this.setState({selection:ome})}},eme.prototype.componentWillUnmount=function(){this.unmounted=!0},eme.prototype.onClose=function(){this.setState({isOpened:!1,isSearch:!1,inputValue:"",searchList:[],searchLoading:!1})},eme.prototype.handleSearch=function($P){var tme=this;$P?this.setState({isSearch:!0,searchLoading:!0,inputValue:$P},function(){tme.cancelSearch&&tme.cancelSearch(),tme.lazySearch($P)}):this.handleSeachCancel()},eme.prototype.handleSeachCancel=function(){this.setState({isSearch:!1,searchLoading:!1,inputValue:""})},eme.prototype.swapSelectPosition=function($P,tme){var ame=this.state.tempSelection;ame.splice(tme,0,ame.splice($P,1)[0]),this.setState({tempSelection:ame})},eme.prototype.dragRef=function($P){$P&&this.initDragging()},eme.prototype.initDragging=function(){var $P=this,tme=this.props.classPrefix;this.sortable=new Sortable$1(document.querySelector(".".concat(tme,"UserSelect-checkContent")),{group:"UserSelect-checkContent",animation:150,handle:".".concat(tme,"UserSelect-dragBar"),ghostClass:"".concat(tme,"UserSelect--dragging"),onEnd:function(ame){if(!(!$P.state.isEdit||ame.newIndex===ame.oldIndex)){var nme=ame.to;ame.oldIndex<nme.childNodes.length-1?nme.insertBefore(ame.item,nme.childNodes[ame.oldIndex>ame.newIndex?ame.oldIndex+1:ame.oldIndex]):nme.appendChild(ame.item),$P.swapSelectPosition(ame.oldIndex,ame.newIndex)}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.onOpen=function(){var $P=this.props.selection;this.setState({isOpened:!0,selection:$P||[]})},eme.prototype.handleBack=function(){this.setState({isOpened:!1,inputValue:"",isSearch:!1,searchList:[],selection:[],breadList:[]})},eme.prototype.handleExpand=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return ame=this.props,nme=ame.deferLoad,rme=ame.isRef,ime=ame.isDep,!$P.isLoaded||!rme&&ime&&!(!((tme=$P.children)===null||tme===void 0)&&tme.length)?($P.isLoaded=!0,ome=$P.deferApi?{deferApi:$P.deferApi}:{},rme?[4,Promise.all([nme($P,!1,ome)])]:[3,2]):[3,4];case 1:return lme=cme.sent(),$P.children=flatten$4(lme),[3,4];case 2:return $P.deferApi?[4,nme($P,!1,ome)]:[3,4];case 3:lme=cme.sent(),$P.children=lme||[],cme.label=4;case 4:return sme=this.state.breadList,sme.push($P),this.setState({breadList:sme}),[2]}})})},eme.prototype.handleSelectChange=function($P,tme){var ame=this.props,nme=ame.multiple,rme=ame.onChange,ime=ame.valueField,ome=ime===void 0?"value":ime,lme=ame.controlled;if(lme){rme($P);return}var sme=this.state.selection.slice();if(tme)sme=$P,rme(sme);else{var cme=sme.map(function(ume){return ume[ome]}),dme=cme.indexOf($P[ome]);dme!==-1?sme.splice(sme.indexOf($P),1):nme?sme.push($P):sme=[$P]}return this.setState({selection:sme}),!1},eme.prototype.handleSubmit=function(){var $P=this.props,tme=$P.onChange,ame=$P.multiple,nme=this.state.selection,rme=ame?nme:nme==null?void 0:nme[0];tme(rme),this.handleBack()},eme.prototype.onDelete=function($P,tme){tme===void 0&&(tme=!1);var ame=this.props,nme=ame.valueField,rme=nme===void 0?"value":nme,ime=ame.controlled,ome=ame.onChange,lme=this.state,sme=lme.tempSelection,cme=lme.selection,dme=tme?sme:cme;dme=dme.filter(function(ume){return ume[rme]!==$P[rme]}),tme?this.setState({tempSelection:dme}):ime?ome($P,!1,!0):this.setState({selection:dme})},eme.prototype.handleBreadChange=function($P,tme){var ame=this.state.breadList.slice(0,tme);this.setState({breadList:ame})},eme.prototype.handleSort=function(){var $P,tme=this.props.controlled;this.setState({isSelectOpened:!0,isEdit:!0,tempSelection:tme?(($P=this.props.selection)===null||$P===void 0?void 0:$P.slice())||[]:this.state.selection.slice()})},eme.prototype.handleEdit=function(){var $P=this.props,tme=$P.multiple,ame=$P.onChange,nme=$P.controlled,rme=this.state,ime=rme.isEdit,ome=rme.tempSelection;if(ime)if(nme){ame(tme?ome:ome==null?void 0:ome[0],!0),this.setState({isSelectOpened:!1,isEdit:!1});return}else this.setState({isSelectOpened:!1,isEdit:!1,selection:ome});else this.setState({isEdit:!0})},eme.prototype.handleClear=function(){this.setState({tempSelection:[]})},eme.prototype.getResult=function(){var $P,tme,ame=this.props,nme=ame.valueField,rme=nme===void 0?"value":nme,ime=ame.labelField,ome=ime===void 0?"label":ime,lme=ame.options,sme=lme===void 0?[]:lme,cme=(($P=this.props.selection)===null||$P===void 0?void 0:$P.concat())||[];return Array.isArray((tme=sme==null?void 0:sme[0])===null||tme===void 0?void 0:tme.leftOptions)&&eachTree$1(sme[0].leftOptions,function(dme){var ume=cme.findIndex(function(fme){return fme[rme]===dme[rme]});~ume&&cme.splice(ume,1,__assign$3(__assign$3({},cme[ume]),{label:dme[ome]}))}),eachTree$1(sme,function(dme){var ume=cme.findIndex(function(fme){return fme[rme]===dme[rme]});~ume&&cme.splice(ume,1,__assign$3(__assign$3({},cme[ume]),{label:dme[ome]}))}),cme},eme.prototype.renderIcon=function($P,tme){var ame,nme=this.props,rme=nme.labelField,ime=rme===void 0?"label":rme,ome=nme.classnames,lme=nme.isRef,sme=this.state.isSearch;if(!$P.icon)return $P.isRef||(sme||tme)&&lme?React__default.createElement("span",{className:ome("UserSelect-text-userPic")},(ame=$P[ime])===null||ame===void 0?void 0:ame.slice(0,1)):React__default.createElement("span",{className:ome("icon","UserSelect-icon-box","department")},React__default.createElement(Icon$1,{icon:"department",className:"icon"}));var cme;switch($P.icon){case"user-default-department":cme=React__default.createElement("span",{className:ome("icon","UserSelect-icon-box","department")},React__default.createElement(Icon$1,{icon:"department",className:"icon"}));break;case"user-default-role":cme=React__default.createElement("span",{className:ome("icon","UserSelect-icon-box","role")},React__default.createElement(Icon$1,{icon:"role",className:"icon"}));break;case"user-default-post":cme=React__default.createElement("span",{className:ome("icon","UserSelect-icon-box","post")},React__default.createElement(Icon$1,{icon:"post",className:"icon"}));break;case"":cme=React__default.createElement("span",{className:ome("UserSelect-text-userPic")},$P[ime].slice(0,1));break;default:cme=React__default.createElement("img",{src:$P.icon,className:ome("UserSelect-userPic")})}return cme},eme.prototype.renderList=function($P,tme,ame){var nme=this;$P===void 0&&($P=[]);var rme=this.props,ime=rme.classnames,ome=rme.valueField,lme=ome===void 0?"value":ome;rme.labelField;var sme=rme.isDep,cme=rme.isRef,dme=rme.translate,ume=rme.controlled,fme=rme.displayFields,pme=rme.isTab,hme=rme.multiple,bme=rme.deferField,mme=bme===void 0?"defer":bme,vme=ume?this.props.selection||[]:this.state.selection,gme=vme.map(function(yme){return yme[lme]});return $P.length?React__default.createElement("div",{className:ime("UserSelect-memberList-box"),key:tme},React__default.createElement("ul",{className:ime("UserSelect-memberList"),key:tme},$P.map(function(yme,_me){var $me,Cme,Sme=cme&&!yme.isRef||sme&&(yme[mme]||(($me=yme.children)===null||$me===void 0?void 0:$me.length)),Eme=sme&&cme||cme&&yme.isRef||sme&&!cme||ame,xme=nme.renderIcon(yme),Tme=yme.type==="user"&&fme?fme:["label"],Ome=Tme.find(function(Ime){return Ime==="avatar"}),Rme=((Cme=yme.label)===null||Cme===void 0?void 0:Cme.substring(0,1).toLocaleUpperCase())||"A",Nme=Tme.filter(function(Ime){return Ime!=="avatar"});return yme.type==="post"&&Nme.push("desc"),React__default.createElement("li",{key:_me,className:Nme.length===2?ime("UserSelect-h2"):""},(pme||hme)&&Eme?React__default.createElement(Checkbox$1$1,{size:"sm",checked:gme.includes(yme[lme]),label:"",onChange:function(){return nme.handleSelectChange(yme)}}):null,React__default.createElement("span",{className:ime("UserSelect-memberName"),onClick:function(){return Eme?nme.handleSelectChange(yme):Sme&&nme.handleExpand(yme)}},!Ome&&xme&&(sme||defaultIcons.includes(yme.icon))?React__default.createElement("span",{className:ime("UserSelect-userPic-box")},xme):null,yme.isRef?null:React__default.createElement("span",{className:ime("UserSelect-label")},yme.label),Ome&&yme.isRef?yme.avatar?React__default.createElement("img",{className:"option-avatar-img ".concat(Nme.length===2?"avatar-2":""),src:yme.avatar}):React__default.createElement("span",{className:"option-avatar-txt ".concat(Nme.length===2?"avatar-2":"")},Rme):null,yme.isRef?React__default.createElement("div",{className:"option-fields"},Nme.map(function(Ime){return React__default.createElement("span",{className:ime("option-item"),key:Ime},yme[Ime])})):null),!ame&&Sme?React__default.createElement("span",{className:ime("UserSelect-more"),onClick:function(){return nme.handleExpand(yme)}},React__default.createElement(Icon$1,{icon:"caret",className:"icon"})):null)}))):React__default.createElement("div",{className:ime("UserSelect-noRecord")},dme("placeholder.noOption"),"~")},eme.prototype.renderselectList=function($P){var tme=this;$P===void 0&&($P=[]);var ame=this.props,nme=ame.classnames,rme=ame.labelField,ime=rme===void 0?"label":rme,ome=ame.valueField,lme=ome===void 0?"value":ome,sme=ame.displayFields,cme=ame.isDep,dme=ame.translate,ume=this.state.isEdit;return $P.length?React__default.createElement("div",{className:nme("UserSelect-selection-wrap")},React__default.createElement("ul",{className:nme("UserSelect-selection","UserSelect-checkContent"),ref:this.dragRef},$P.map(function(fme,pme){var hme,bme=tme.renderIcon(fme,!0),mme=tme.state.options,vme=findTree(mme,function(Cme){return Cme[lme]===fme[lme]}),gme=fme.type==="user"&&sme?sme:["label"],yme=gme.find(function(Cme){return Cme==="avatar"}),_me=((hme=fme.label)===null||hme===void 0?void 0:hme.substring(0,1).toLocaleUpperCase())||"A",$me=gme.filter(function(Cme){return Cme!=="avatar"});return fme.type==="post"&&$me.push("desc"),React__default.createElement("li",{key:pme,className:$me.length===2?nme("UserSelect-h2"):""},ume?React__default.createElement("span",{className:nme("UserSelect-del"),onClick:function(){return tme.onDelete(fme,!0)}},React__default.createElement(Icon$1,{icon:"user-remove",className:"icon"})):null,React__default.createElement("span",{className:nme("UserSelect-memberName")},!yme&&bme&&(cme||defaultIcons.includes(fme.icon))?React__default.createElement("span",{className:nme("UserSelect-userPic-box")},bme):null,fme.isRef?null:ime==="avatar"?fme[ime]?React__default.createElement("img",{className:nme("UserSelect-avatar-img"),src:fme[ime],alt:""}):React__default.createElement("span",{className:nme("UserSelect-avatar-text")},fme[lme].slice(0,1).toLocaleUpperCase()):React__default.createElement("span",{className:nme("UserSelect-label")},vme?vme[ime]:fme[ime]),yme&&fme.isRef?fme.avatar?React__default.createElement("img",{className:"option-avatar-img ".concat($me.length===2?"avatar-2":""),src:fme.avatar}):React__default.createElement("span",{className:"option-avatar-txt ".concat($me.length===2?"avatar-2":"")},_me):null,fme.isRef?React__default.createElement("div",{className:"option-fields"},$me.map(function(Cme){return React__default.createElement("span",{className:nme("option-item"),key:Cme},fme[Cme])})):null),ume?React__default.createElement("a",{className:nme("UserSelect-dragBar")},React__default.createElement(Icon$1,{icon:"drag-bar",className:nme("icon")})):null)}))):React__default.createElement("div",{className:nme("UserSelect-noRecord")},dme("placeholder.noOption"),"~")},eme.prototype.renderContent=function(){var $P=this,tme=this.props,ame=tme.navTitle,nme=tme.showNav,rme=tme.searchable,ime=tme.searchPlaceholder,ome=tme.controlled,lme=tme.labelField,sme=lme===void 0?"label":lme,cme=tme.valueField,dme=cme===void 0?"value":cme,ume=tme.classnames,fme=tme.multiple,pme=tme.translate,hme=tme.loadingConfig,bme=tme.mobileUI,mme=this.state,vme=mme.breadList,gme=mme.options,yme=mme.isSearch,_me=mme.searchList,$me=mme.searchLoading,Cme=ome?this.props.selection:this.state.selection;return React__default.createElement("div",{className:ume("UserSelect-wrap")},nme?React__default.createElement("div",{className:ume("UserSelect-navbar")},React__default.createElement("span",{className:"left-arrow-box",onClick:this.handleBack},React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"})),React__default.createElement("div",{className:ume("UserSelect-navbar-title")},ame)):null,rme?React__default.createElement("div",{className:ume("UserSelect-searchBox")},React__default.createElement(InputBox$1,{className:ume("UserSelect-search"),value:this.state.inputValue,onChange:this.handleSearch,placeholder:ime,clearable:!1,mobileUI:bme},this.state.isSearch?React__default.createElement("a",{onClick:this.handleSeachCancel},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"}))):null,vme.length?React__default.createElement("div",{className:ume("UserSelect-breadcrumb")},vme.map(function(Sme,Eme){return React__default.createElement("span",{className:ume("UserSelect-breadcrumb-item"),key:Eme,onClick:function(){return $P.handleBreadChange(Sme,Eme)}},Sme.label)}).reduce(function(Sme,Eme,xme){return[Sme,React__default.createElement(Icon$1,{icon:"caret",className:ume("UserSelect-breadcrumb-separator","icon"),key:"separator-".concat(xme)}),Eme]})):null,Cme!=null&&Cme.length?React__default.createElement("div",{className:ume("UserSelect-resultBox")},React__default.createElement("div",{className:ume("UserSelect-resultBox-shadow")}),React__default.createElement("ul",{className:ume("UserSelect-selectList")},Cme.map(function(Sme,Eme){var xme=findTree(gme,function(Tme){return Tme[dme]===Sme[dme]});return React__default.createElement("li",{key:Eme,className:ume("UserSelect-selectList-item")},sme==="avatar"?Sme[sme]?React__default.createElement("img",{className:ume("UserSelect-avatar-img"),src:Sme[sme],alt:""}):React__default.createElement("span",{className:ume("UserSelect-avatar-text")},Sme[dme].slice(0,1).toLocaleUpperCase()):React__default.createElement("span",null,xme?xme[sme]:Sme[sme]),React__default.createElement("span",{className:ume("UserSelect-selectList-item-closeBox"),onClick:function(){return $P.onDelete(Sme)}},React__default.createElement(Icon$1,{icon:"close",className:"icon"})))})),fme?React__default.createElement("span",{className:ume("UserSelect-selectSort-box"),onClick:this.handleSort},React__default.createElement(Icon$1,{icon:"menu",className:ume("UserSelect-selectSort","icon")})):null):null,yme?$me?React__default.createElement("div",{className:ume("UserSelect-searchLoadingBox")},React__default.createElement(Spinner$1,{loadingConfig:hme})):React__default.createElement("div",{className:ume("UserSelect-searchResult")},this.renderList(_me,-1,!0)):React__default.createElement("div",{className:ume("UserSelect-contentBox")},React__default.createElement("div",{className:ume("UserSelect-scroll"),style:{width:100*(vme.length+1)+"vw",left:-vme.length*100+"vw"}},this.renderList(gme),vme.map(function(Sme,Eme){var xme=findTree(gme,optionValueCompare(Sme[dme],dme||"value")),Tme=xme.children,Ome=Array.isArray(Tme)&&Tme;return Ome?$P.renderList(Tme,Sme[dme]):React__default.createElement("div",{className:ume("UserSelect-spinnerBox"),key:Eme},React__default.createElement(Spinner$1,{loadingConfig:hme}))}))),ome?null:React__default.createElement("div",{className:ume("UserSelect-footer")},React__default.createElement("button",{type:"button",className:ume("Button Button--md Button--primary"),onClick:this.handleSubmit},pme("UserSelect.sure"))))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.translate,rme=tme.placeholder,ime=rme===void 0?"请选择":rme,ome=tme.showResultBox,lme=tme.labelField,sme=lme===void 0?"label":lme,cme=tme.valueField,dme=cme===void 0?"value":cme,ume=tme.mobileUI,fme=this.state,pme=fme.isOpened,hme=fme.isEdit,bme=fme.isSelectOpened;return React__default.createElement("div",{className:ame("UserSelect")},ome?React__default.createElement(ResultBox$1,{className:ame("UserSelect-input",pme?"is-active":""),allowInput:!1,result:this.getResult(),itemRender:function(mme){return sme!=="avatar"?React__default.createElement("span",null,"".concat(mme.scopeLabel||"").concat(mme.label)):mme[sme]?React__default.createElement("img",{className:ame("UserSelect-avatar-img"),src:mme[sme],alt:""}):React__default.createElement("span",{className:ame("UserSelect-avatar-text")},mme[dme].slice(0,1).toLocaleUpperCase())},onResultChange:function(mme){return $P.handleSelectChange(mme,!0)},onResultClick:this.onOpen,placeholder:ime,mobileUI:ume}):null,ome?React__default.createElement(PopUp$1,{isShow:pme,className:ame("UserSelect-popup"),onHide:this.onClose,showClose:!1},this.renderContent()):this.renderContent(),React__default.createElement(PopUp$1,{isShow:bme,className:ame("UserSelect-selectPopup"),onHide:function(){return $P.setState({isSelectOpened:!1,isEdit:!1})},showClose:!1},React__default.createElement("div",{className:ame("UserSelect-selectBody")},React__default.createElement("div",{className:ame("UserSelect-navbar")},React__default.createElement("span",{className:"left-arrow-box",onClick:function(){return $P.setState({isSelectOpened:!1,isEdit:!1})}},React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"})),React__default.createElement("div",{className:ame("UserSelect-navbar-title")},nme("UserSelect.resultSort")),React__default.createElement("span",{className:ame("UserSelect-navbar-btnEdit"),onClick:this.handleEdit},nme(hme?"UserSelect.save":"UserSelect.edit"))),React__default.createElement("div",{className:ame("UserSelect-selectList-box")},React__default.createElement("div",{className:ame("UserSelect-select-head")},React__default.createElement("span",{className:ame("UserSelect-select-head-text")},nme("UserSelect.selected")),hme?React__default.createElement("span",{className:ame("UserSelect-select-head-btnClear"),onClick:this.handleClear},nme("UserSelect.clear")):null),this.renderselectList(this.state.tempSelection)))))},eme.defaultProps={showResultBox:!0,labelField:"label",valueField:"value",deferField:"defer"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onClose",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSeachCancel",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onOpen",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleBack",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleExpand",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelectChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"onDelete",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleBreadChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSort",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getResult",null),eme}(React__default.Component),UserSelect$1=themeable(localeable(UserSelect)),UserTabSelect=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.unmounted=!1,tme.state={isOpened:!1,isSelectOpened:!1,inputValue:"",options:[],breadList:[],searchList:[],selection:$P.selection?$P.selection:[],isSearch:!1,searchLoading:!1,isEdit:!1,activeKey:0},tme}return eme.prototype.componentDidMount=function(){},eme.prototype.componentDidUpdate=function($P){},eme.prototype.componentWillUnmount=function(){this.unmounted=!0},eme.prototype.onClose=function(){this.setState({isOpened:!1,isSearch:!1,inputValue:"",searchList:[],searchLoading:!1,activeKey:0,selection:[]})},eme.prototype.onOpen=function(){var $P=this.props.selection,tme=$P===void 0?[]:$P;this.setState({isOpened:!0,selection:tme.slice()})},eme.prototype.handleSubmit=function(){var $P=this.props.onChange;$P(this.state.selection),this.onClose()},eme.prototype.handleSelectChange=function($P,tme,ame){var nme=this.props,rme=nme.multiple,ime=nme.valueField,ome=ime===void 0?"value":ime,lme=this.state.selection.slice(),sme=lme.map(function(dme){return dme[ome]});if(ame)lme=lme.filter(function(dme){return dme[ome]!==$P[ome]});else if(tme&&Array.isArray($P))lme=$P.slice();else if(!Array.isArray($P)){var cme=sme.indexOf($P[ome]);cme!==-1?lme.splice(cme,1):rme?lme.push($P):lme=[$P]}return this.setState({selection:lme}),!1},eme.prototype.handleImmediateChange=function($P){var tme=this.props.onChange;Array.isArray($P)&&(this.setState({selection:$P}),tme($P))},eme.prototype.handleTabChange=function($P){this.setState({activeKey:$P})},eme.prototype.getResult=function(){var $P,tme,ame,nme,rme=this.props,ime=rme.selection,ome=rme.tabOptions,lme=rme.valueField,sme=lme===void 0?"value":lme,cme=rme.labelField,dme=cme===void 0?"label":cme,ume=(ime==null?void 0:ime.slice())||[];if(ome)try{for(var fme=__values$1(ome),pme=fme.next();!pme.done;pme=fme.next()){var hme=pme.value,bme=function(yme){var _me=ume.find(function($me){return $me[sme]===yme[sme]});_me&&(_me[dme]=yme[dme])};try{for(var mme=(ame=void 0,__values$1(hme.options)),vme=mme.next();!vme.done;vme=mme.next()){var gme=vme.value;bme(gme)}}catch(yme){ame={error:yme}}finally{try{vme&&!vme.done&&(nme=mme.return)&&nme.call(mme)}finally{if(ame)throw ame.error}}}}catch(yme){$P={error:yme}}finally{try{pme&&!pme.done&&(tme=fme.return)&&tme.call(fme)}finally{if($P)throw $P.error}}return ume},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.translate,rme=tme.placeholder,ime=rme===void 0?"请选择":rme,ome=tme.tabOptions,lme=tme.onSearch,sme=tme.deferLoad,cme=tme.data,dme=tme.displayFields,ume=tme.mobileUI,fme=this.state,pme=fme.activeKey,hme=fme.isOpened;return React__default.createElement("div",{className:ame("UserTabSelect")},React__default.createElement(ResultBox$1,{className:ame("UserTabSelect-input",hme?"is-active":""),allowInput:!1,result:this.getResult(),onResultChange:this.handleImmediateChange,onResultClick:this.onOpen,placeholder:ime,mobileUI:ume}),React__default.createElement(PopUp$1,{isShow:hme,className:ame("UserTabSelect-popup"),onHide:this.onClose,showClose:!1},React__default.createElement("div",{className:ame("UserTabSelect-wrap")},React__default.createElement("div",{className:ame("UserSelect-navbar")},React__default.createElement("span",{className:"left-arrow-box",onClick:this.onClose},React__default.createElement(Icon$1,{icon:"left-arrow",className:"icon"})),React__default.createElement("div",{className:ame("UserSelect-navbar-title")},"人员选择")),React__default.createElement(ThemedTabs,{mode:"tiled",className:ame("UserTabSelect-tabs"),onSelect:this.handleTabChange,activeKey:pme},ome==null?void 0:ome.map(function(bme,mme){return React__default.createElement(Tab$1,__assign$3({},$P.props,{eventKey:mme,key:mme,title:bme.title,className:"TabsTransfer-tab"}),React__default.createElement(UserSelect$1,__assign$3({isTab:!0,selection:$P.state.selection,showResultBox:!1},bme,{options:typeof bme.options=="string"&&cme?resolveVariableAndFilter(bme.options,cme,"| raw"):bme.options,multiple:!0,controlled:!0,displayFields:dme,onChange:$P.handleSelectChange,onSearch:function(vme,gme){return bme.searchable&&lme?lme(vme,gme,{searchApi:bme.searchApi,searchParam:bme.searchParam,searchTerm:bme.searchTerm}):void 0},deferLoad:function(vme,gme,yme){return sme(vme,gme,__assign$3({deferApi:bme.deferApi},yme||{}))}})))})),React__default.createElement("div",{className:ame("UserTabSelect-footer")},React__default.createElement("button",{type:"button",className:ame("Button Button--md Button--primary"),onClick:this.handleSubmit},nme("UserSelect.sure"))))))},eme.defaultProps={},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onClose",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onOpen",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelectChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleImmediateChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleTabChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getResult",null),eme}(React__default.Component),UserTabSelect$1=themeable(localeable(UserTabSelect)),Card$2=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleClick=tme.handleClick.bind(tme),tme}return eme.prototype.handleClick=function($P){isClickOnInput($P)||this.props.onClick&&this.props.onClick($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.style,rme=$P.headerClassName,ime=$P.bodyClassName,ome=$P.titleClassName,lme=$P.subTitleClassName,sme=$P.descriptionClassName,cme=$P.avatarClassName,dme=$P.avatarTextStyle,ume=$P.imageClassName,fme=$P.avatarTextClassName,pme=$P.secondaryClassName,hme=$P.footerClassName,bme=$P.media,mme=$P.mediaPosition,vme=$P.mediaActionPosition,gme=$P.actions,yme=$P.children,_me=$P.onClick,$me=$P.toolbar,Cme=$P.title,Sme=$P.subTitle,Eme=$P.subTitlePlaceholder,xme=$P.description,Tme=$P.descriptionPlaceholder,Ome=$P.secondary,Rme=$P.avatar,Nme=$P.avatarText,Ime=$P.data,Pme=null,Mme=Rme||Nme||Cme||Sme||Eme||xme||Tme||$me;Mme&&(Pme=React__default.createElement("div",{className:tme("Card-heading",rme)},Rme?React__default.createElement("span",{className:tme("Card-avtar",cme)},React__default.createElement("img",{className:tme("Card-img",ume),src:Rme})):Nme?React__default.createElement("span",{className:tme("Card-avtarText",fme),style:buildStyle(dme,Ime)},Nme):null,React__default.createElement("div",{className:tme("Card-meta")},Cme?React__default.createElement("div",{className:tme("Card-title",ome)},Cme):null,Sme||Eme?React__default.createElement("div",{className:tme("Card-subTitle",lme)},Sme||Eme||null):null,xme||Tme?React__default.createElement("div",{className:tme("Card-desc",sme)},xme||Tme||null):null),$me));var kme=yme,Bme=Ome||gme?React__default.createElement("div",{className:tme("Card-footer-wrapper",hme)},Ome?React__default.createElement("div",{className:tme("Card-secondary",pme)},Ome):null,gme?React__default.createElement("div",{className:tme("Card-actions-wrapper")},gme):null):null;return React__default.createElement("div",{onClick:this.handleClick,className:tme("Card",ame,{"Card--link":_me}),style:nme},bme?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:tme("Card-multiMedia--".concat(mme))},bme,React__default.createElement("div",{className:tme("Card-multiMedia-flex")},Pme,kme?React__default.createElement("div",{className:tme("Card-body",ime)},kme):null,vme?null:Bme)),vme==="outside"?Bme:null):React__default.createElement(React__default.Fragment,null,Pme,kme?React__default.createElement("div",{className:tme("Card-body",ime)},kme):null,Bme))},eme.defaultProps={className:"",avatarClassName:"",headerClassName:"",footerClassName:"",secondaryClassName:"",avatarTextClassName:"",bodyClassName:"",titleClassName:"",subTitleClassName:"",descriptionClassName:"",imageClassName:"",mediaPosition:"left"},eme}(React__default.Component),Card$1$1=themeable(Card$2);function addUnit(x_){if(x_!=null)return x_=String(x_),/^\d+(\.\d+)?$/.test(x_)?"".concat(x_,"px"):x_}var GridNavItem=function(x_){var eme,$P=x_.children,tme=x_.classnames,ame=x_.className,nme=x_.style,rme=__rest$14(x_,["children","classnames","className","style"]),ime=rme.index,ome=ime===void 0?0:ime,lme=rme.parent;if(!lme)return null;var sme=reactExports.useMemo(function(){var $me=lme.square,Cme=lme.gutter,Sme=lme.columnNum,Eme=Sme===void 0?4:Sme,xme="".concat(100/+Eme,"%"),Tme=__assign$3(__assign$3({},nme),{flexBasis:xme});if($me)Tme.paddingTop=xme;else if(Cme){var Ome=addUnit(Cme);Tme.paddingRight=Ome,ome>=Eme&&(Tme.marginTop=Ome)}return Tme},[lme.style,lme.gutter,lme.columnNum]),cme=reactExports.useMemo(function(){var $me=lme.square,Cme=lme.gutter;if($me&&Cme){var Sme=addUnit(Cme);return __assign$3(__assign$3({},rme.contentStyle),{right:Sme,bottom:Sme,height:"auto"})}return rme.contentStyle},[lme.gutter,lme.columnNum,rme.contentStyle]),dme=function(){var $me=lme.iconRatio||60;return typeof rme.icon=="string"?rme.badge?jsx(Badge,{...__assign$3({},rme.badge),children:jsx("div",{className:tme("GridNavItem-image"),children:jsx("img",{src:rme.icon,style:{width:$me+"%"}})})}):jsx("div",{className:tme("GridNavItem-image"),children:jsx("img",{src:rme.icon,style:{width:$me+"%"}})}):React__default.isValidElement(rme.icon)?jsx(Badge,{...__assign$3({},rme.badge),children:rme.icon}):null},ume=function(){return React__default.isValidElement(rme.text)?rme.text:rme.text?jsx("span",{className:tme("GridNavItem-text"),children:rme.text}):null},fme=function(){return $P||jsxs(Fragment,{children:[dme(),ume()]})},pme=lme.center,hme=lme.border,bme=lme.square,mme=lme.gutter,vme=lme.reverse,gme=lme.direction,yme="GridNavItem-content",_me=tme("".concat(yme," ").concat(rme.contentClassName||""),(eme={},eme["".concat(yme,"--").concat(gme)]=!!gme,eme["".concat(yme,"--center")]=pme,eme["".concat(yme,"--square")]=bme,eme["".concat(yme,"--reverse")]=vme,eme["".concat(yme,"--clickable")]=!!rme.onClick,eme["".concat(yme,"--surround")]=hme&&mme,eme["".concat(yme,"--border u-hairline")]=hme,eme));return jsx("div",{className:tme(ame,{"GridNavItem--square":bme}),style:sme,children:jsx("div",{role:rme.onClick?"button":void 0,className:_me,style:cme,onClick:rme.onClick,children:fme()})})},GridNav=function(x_){var eme=x_.children,$P=x_.className,tme=x_.classnames,ame=x_.itemClassName,nme=x_.style,rme=__rest$14(x_,["children","className","classnames","itemClassName","style"]);return jsx("div",{style:__assign$3({paddingLeft:addUnit(rme.gutter)},nme),className:tme("GridNav ".concat($P||""),{"GridNav-top u-hairline":rme.border&&!rme.gutter}),children:React__default.Children.toArray(eme).filter(Boolean).map(function(ime,ome){return React__default.cloneElement(ime,{index:ome,parent:rme,className:ame,classnames:tme})})})};GridNav.defaultProps={direction:"vertical",center:!0,border:!0,columnNum:4};var Link=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.handleClick=function($P){var tme=this.props,ame=tme.disabled,nme=tme.onClick;if(ame){$P.preventDefault(),$P.stopPropagation();return}nme==null||nme($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.style,nme=$P.href,rme=$P.classnames,ime=$P.disabled,ome=$P.htmlTarget,lme=$P.title,sme=$P.icon,cme=$P.rightIcon,dme=$P.children;$P.classPrefix,$P.theme;var ume=__rest$14($P,["className","style","href","classnames","disabled","htmlTarget","title","icon","rightIcon","children","classPrefix","theme"]);return React__default.createElement("a",__assign$3({},ume,{href:nme,target:ome,className:rme("Link",{"is-disabled":ime},tme),style:ame,title:lme,onClick:this.handleClick}),sme?React__default.createElement(Icon$1,{cx:rme,icon:sme,className:"Link-icon"}):null,dme,cme?React__default.createElement(Icon$1,{cx:rme,icon:cme,className:"Link-icon"}):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),eme}(React__default.Component),Link$1=themeable(Link),defaultProps$1={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var eme=reactExports.useRef([]),$P=reactExports.useRef(null);return reactExports.useEffect(function(){var tme=Date.now(),ame=!1;eme.current.forEach(function(nme){if(nme){ame=!0;var rme=nme.style;rme.transitionDuration=".3s, .3s, .3s, .06s",$P.current&&tme-$P.current<100&&(rme.transitionDuration="0s, 0s")}}),ame&&($P.current=Date.now())}),eme.current},uuid=0,isBrowserClient=canUseDom();function getUUID(){var x_;return isBrowserClient?(x_=uuid,uuid+=1):x_="TEST_OR_SSR",x_}const useId=function(x_){var eme=reactExports.useState(),$P=_slicedToArray$2(eme,2),tme=$P[0],ame=$P[1];return reactExports.useEffect(function(){ame("rc_progress_".concat(getUUID()))},[]),x_||tme};var _excluded$3=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function stripPercentToNumber(x_){return+x_.replace("%","")}function toArray(x_){var eme=x_??[];return Array.isArray(eme)?eme:[eme]}var VIEW_BOX_SIZE=100,getCircleStyle=function(eme,$P,tme,ame,nme,rme,ime,ome,lme,sme){var cme=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,dme=tme/100*360*((360-rme)/360),ume=rme===0?0:{bottom:0,top:180,left:90,right:-90}[ime],fme=(100-ame)/100*$P;return lme==="round"&&ame!==100&&(fme+=sme/2,fme>=$P&&(fme=$P-.01)),{stroke:typeof ome=="string"?ome:void 0,strokeDasharray:"".concat($P,"px ").concat(eme),strokeDashoffset:fme+cme,transform:"rotate(".concat(nme+dme+ume,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Circle$1=function(eme){var $P=_objectSpread2$4(_objectSpread2$4({},defaultProps$1),eme),tme=$P.id,ame=$P.prefixCls,nme=$P.steps,rme=$P.strokeWidth,ime=$P.trailWidth,ome=$P.gapDegree,lme=ome===void 0?0:ome,sme=$P.gapPosition,cme=$P.trailColor,dme=$P.strokeLinecap,ume=$P.style,fme=$P.className,pme=$P.strokeColor,hme=$P.percent,bme=_objectWithoutProperties$6($P,_excluded$3),mme=useId(tme),vme="".concat(mme,"-gradient"),gme=VIEW_BOX_SIZE/2-rme/2,yme=Math.PI*2*gme,_me=lme>0?90+lme/2:-90,$me=yme*((360-lme)/360),Cme=_typeof$4(nme)==="object"?nme:{count:nme,space:2},Sme=Cme.count,Eme=Cme.space,xme=getCircleStyle(yme,$me,0,100,_me,lme,sme,cme,dme,rme),Tme=toArray(hme),Ome=toArray(pme),Rme=Ome.find(function(Mme){return Mme&&_typeof$4(Mme)==="object"}),Nme=useTransitionDuration(),Ime=function(){var kme=0;return Tme.map(function(Bme,Dme){var jme=Ome[Dme]||Ome[Ome.length-1],Vme=jme&&_typeof$4(jme)==="object"?"url(#".concat(vme,")"):void 0,Wme=getCircleStyle(yme,$me,kme,Bme,_me,lme,sme,jme,dme,rme);return kme+=Bme,reactExports.createElement("circle",{key:Dme,className:"".concat(ame,"-circle-path"),r:gme,cx:0,cy:0,stroke:Vme,strokeLinecap:dme,strokeWidth:rme,opacity:Bme===0?0:1,style:Wme,ref:function(zme){Nme[Dme]=zme}})}).reverse()},Pme=function(){var kme=Math.round(Sme*(Tme[0]/100)),Bme=100/Sme,Dme=0;return new Array(Sme).fill(null).map(function(jme,Vme){var Wme=Vme<=kme-1?Ome[0]:cme,Lme=Wme&&_typeof$4(Wme)==="object"?"url(#".concat(vme,")"):void 0,zme=getCircleStyle(yme,$me,Dme,Bme,_me,lme,sme,Wme,"butt",rme,Eme);return Dme+=($me-zme.strokeDashoffset+Eme)*100/$me,reactExports.createElement("circle",{key:Vme,className:"".concat(ame,"-circle-path"),r:gme,cx:0,cy:0,stroke:Lme,strokeWidth:rme,opacity:1,style:zme,ref:function(Gme){Nme[Vme]=Gme}})})};return reactExports.createElement("svg",_extends$4C({className:cx$1("".concat(ame,"-circle"),fme),viewBox:"".concat(-VIEW_BOX_SIZE/2," ").concat(-VIEW_BOX_SIZE/2," ").concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:ume,id:tme,role:"presentation"},bme),Rme&&reactExports.createElement("defs",null,reactExports.createElement("linearGradient",{id:vme,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Rme).sort(function(Mme,kme){return stripPercentToNumber(Mme)-stripPercentToNumber(kme)}).map(function(Mme,kme){return reactExports.createElement("stop",{key:kme,offset:Mme,stopColor:Rme[Mme]})}))),!Sme&&reactExports.createElement("circle",{className:"".concat(ame,"-circle-trail"),r:gme,cx:0,cy:0,stroke:cme,strokeLinecap:dme,strokeWidth:ime||rme,style:xme}),Sme?Pme():Ime())},Progress=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.getCurrentColor=function(){var $P=this.props.map;return!$P||!$P.length?"bg-primary":typeof $P=="string"?$P:this.getLevelColor($P)},eme.prototype.getLevelColor=function($P){for(var tme=this.props.value,ame=this.getColorArray($P).sort(function(rme,ime){return rme.value-ime.value}),nme=0;nme<ame.length;nme++)if(ame[nme].value>=tme)return ame[nme].color;return ame[ame.length-1].color},eme.prototype.getColorArray=function($P){var tme=100/$P.length;return $P.map(function(ame,nme){return typeof ame=="string"?{color:ame,value:(nme+1)*tme}:ame})},eme.prototype.getLabel=function($P){var tme=this.props,ame=tme.value,nme=tme.format,rme=tme.showLabel,ime=tme.classnames;if(!rme)return null;var ome=nme||function(sme){return"".concat(sme,"%")},lme=ome(ame);return React__default.createElement("span",{className:ime("".concat($P,"-text")),key:"value"},lme)},eme.prototype.render=function(){var $P,tme,ame,nme,rme=this.props,ime=rme.className,ome=rme.style,lme=rme.progressClassName,sme=rme.type,cme=rme.value,dme=rme.placeholder,ume=rme.stripe,fme=rme.animate,pme=rme.gapDegree,hme=rme.gapPosition,bme=rme.strokeWidth,mme=rme.classnames,vme=rme.threshold,gme=rme.showThresholdText,yme=sme==="line",_me=yme?"Progress-line":"Progress-circle",$me=this.getCurrentColor(),Cme=/bg-/.test($me),Sme;if(typeof cme!="number")Sme=React__default.createElement("span",{className:"text-muted"},dme);else if(sme==="line"){var Eme={width:"".concat(cme,"%")};bme&&(Eme.height=bme),!Cme&&(Eme.backgroundColor=$me);var xme=null;if(vme){var Tme=function(Mme,kme){return React__default.createElement("div",{style:{left:Mme,borderColor:kme||"var(--text-color)"},className:mme("".concat(_me,"-threshold")),key:Mme},gme?React__default.createElement("span",{className:mme("".concat(_me,"-threshold-text"))},Mme):null)};if(Array.isArray(vme))xme=vme.map(function(Mme){var kme=parseFloat(Mme.value)+"%";return Tme(kme,Mme.color)});else{var Ome=parseFloat(vme.value)+"%";xme=Tme(Ome,vme.color)}}Sme=[React__default.createElement("div",{key:"progress",className:mme(_me,lme)},xme,React__default.createElement("div",{className:mme("".concat(_me,"-inter"))},React__default.createElement("div",{className:mme("".concat(_me,"-bar"),($P={},$P[$me]=Cme,$P),(tme={},tme["".concat(_me,"-bar--stripe")]=ume,tme),(ame={},ame["".concat(_me,"-bar--animate")]=fme&&!ume,ame),(nme={},nme["".concat(_me,"-bar--stripe-animate")]=fme&&ume,nme)),title:"".concat(cme,"%"),style:Eme}))),this.getLabel(_me)]}else if(sme==="circle"||sme==="dashboard"){var Rme=bme||8,Nme={width:Rme*10+"px",height:Rme*10+"px"},Ime=hme||sme==="dashboard"&&"bottom"||"top",Pme=function(){if(pme||pme===0)return pme;if(sme==="dashboard")return 75};Sme=[React__default.createElement("div",{className:mme(_me,lme),key:"circle",style:Nme},React__default.createElement(Circle$1,{percent:cme,strokeColor:Cme?"":$me,strokeWidth:Rme,trailWidth:Rme,prefixCls:Cme?$me:"",gapDegree:Pme(),gapPosition:Ime,style:Nme}),this.getLabel(_me))]}return React__default.createElement("div",{className:mme("Progress",ime),style:ome},Sme)},eme.defaultProps={type:"line",placeholder:"-",progressClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],showLabel:!0},eme}(React__default.Component),Progress$1=themeable(Progress),StepStatus;(function(x_){x_.wait="wait",x_.process="process",x_.finish="finish",x_.error="error"})(StepStatus||(StepStatus={}));function Steps(x_){var eme=x_.steps,$P=x_.classnames,tme=x_.className,ame=x_.style,nme=x_.current,rme=x_.status,ime=x_.mode,ome=ime===void 0?"horizontal":ime,lme=x_.labelPlacement,sme=lme===void 0?"horizontal":lme,cme=x_.progressDot,dme=cme===void 0?!1:cme,ume=x_.iconPosition,fme=x_.mobileUI,pme=x_.onClickStep,hme="check",bme="close";function mme(vme,gme){var yme=StepStatus.wait,_me=vme.icon;if(gme<nme?(yme=StepStatus.finish,!_me&&(_me=hme)):gme===nme&&(yme=StepStatus.process),typeof rme=="string")gme===nme&&(yme=vme.status||rme||StepStatus.process,yme===StepStatus.error&&!_me&&(_me=bme));else if(typeof rme=="object"){var $me=vme.value;$me&&rme[$me]&&(yme=rme[$me])}return{stepStatus:yme,icon:_me}}return React__default.createElement("ul",{className:$P("Steps","Steps--Placement-".concat(dme||sme==="vertical"&&ome!="vertical"?"vertical":""),"Steps--".concat(dme?"ProgressDot":""),"Steps--".concat(ome),fme?"Steps-mobile":"",tme),style:ame},eme.map(function(vme,gme){var yme=mme(vme,gme),_me=yme.stepStatus,$me=yme.icon;return React__default.createElement("li",{key:gme,className:$P("StepsItem","is-".concat(_me),vme.className,"".concat(dme?"StepsItem-ProgressDot":""),"".concat(pme&&_me===StepStatus.finish?"is-clickable":""))},React__default.createElement("div",{className:$P("StepsItem-container",ume&&ome!="vertical"&&"StepsItem-vertical")},React__default.createElement("div",{className:$P("StepsItem-containerTail")}),dme?React__default.createElement("div",{className:$P("StepsItem-containerProgressDot"),onClick:function(){return pme&&pme(gme,vme)}}):React__default.createElement("div",{className:$P("StepsItem-containerIcon",gme<nme&&"is-success"),onClick:function(){return pme&&pme(gme,vme)}},React__default.createElement("span",{className:$P("StepsItem-icon",vme.iconClassName)},$me?React__default.createElement(Icon$1,{icon:$me,className:"icon"}):gme+1)),React__default.createElement("div",{className:$P("StepsItem-containerWrapper"),onClick:function(){return pme&&pme(gme,vme)}},React__default.createElement("div",{className:$P("StepsItem-body")},React__default.createElement("div",{className:$P("StepsItem-title","StepsItem-".concat(dme?"vertical-ProgressDot":""),gme<nme&&"is-success")},React__default.createElement("span",{className:$P("StepsItem-ellText"),title:typeof vme.title=="string"?vme.title:void 0},vme.title),vme.subTitle&&React__default.createElement("span",{className:$P("StepsItem-subTitle","StepsItem-ellText"),title:typeof vme.subTitle=="string"?vme.subTitle:void 0},vme.subTitle)),React__default.createElement("div",{className:$P("StepsItem-description","StepsItem-ellText"),title:typeof vme.description=="string"?vme.description:void 0},React__default.createElement("span",null,vme.description))),ome==="simple"&&gme<eme.length-1&&React__default.createElement("div",{className:$P("StepsItem-icon-line")},React__default.createElement(Icon$1,{icon:"right-arrow",className:"icon",iconContent:"StepsItem-icon-line"})))))}))}var Steps$1=themeable(Steps);function TimelineItem(x_){var eme,$P=x_.time,tme=x_.title,ame=x_.detail,nme=x_.detailCollapsedText,rme=x_.detailExpandedText,ime=x_.color,ome=x_.icon,lme=x_.iconClassName,sme=x_.timeClassName,cme=x_.titleClassName,dme=x_.detailClassName,ume=x_.classnames,fme=x_.translate,pme=x_.classPrefix,hme=x_.key,bme=__read$3(reactExports.useState(!1),2),mme=bme[0],vme=bme[1],gme=function($me,Cme,Sme){return Cme===void 0&&(Cme=fme("Timeline.collapseText")),Sme===void 0&&(Sme=fme("Timeline.expandText")),jsxs(Fragment,{children:[jsxs("div",{className:ume("TimelineItem-detail-button"),onClick:function(){return vme(!mme)},children:[mme?Cme:Sme,jsx("div",{className:ume("TimelineItem-detail-arrow","".concat(mme&&"TimelineItem-detail-arrow-top")),children:jsx(Icon$1,{icon:"down-arrow-bold"})})]}),jsx("div",{className:ume("".concat(mme?"TimelineItem-detail-visible":"TimelineItem-detail-invisible"),dme),children:$me})]})},yme=ime&&/^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/.test(ime),_me=!yme&&ime;return jsxs("div",{className:ume("TimelineItem"),children:[jsxs("div",{className:ume("TimelineItem-axle"),children:[jsx("div",{className:ume("TimelineItem-line")}),ome?jsx("div",{className:ume("TimelineItem-icon",lme),children:jsx(Icon$1,{cx:ume,icon:ome,className:"icon",classPrefix:pme})}):jsx("div",{className:ume("TimelineItem-round",lme,(eme={},eme["TimelineItem-round--".concat(_me)]=!!_me,eme)),style:yme?{backgroundColor:ime}:void 0})]}),jsxs("div",{className:ume("TimelineItem-content"),children:[jsx("div",{className:ume("TimelineItem-time",sme),children:$P}),jsx("div",{className:ume("TimelineItem-title",cme),children:tme}),ame&&jsx("div",{className:ume("TimelineItem-detail"),children:gme(ame,nme,rme)})]})]},hme)}var TimelineItem$1=themeable(localeable(TimelineItem));function Timeline$1(x_){var eme=x_.items,$P=x_.style,tme=x_.classnames,ame=x_.className,nme=x_.iconClassName,rme=x_.timeClassName,ime=x_.titleClassName,ome=x_.detailClassName,lme=x_.direction,sme=lme===void 0?"vertical":lme,cme=x_.reverse,dme=cme===void 0?!1:cme,ume=x_.mode,fme=ume===void 0?"right":ume,pme=eme==null?void 0:eme.slice();return dme&&(pme==null||pme.reverse()),React__default.createElement("div",{className:tme("Timeline","Timeline-".concat(sme),"Timeline-".concat(fme),ame),style:$P},pme==null?void 0:pme.map(function(hme,bme){return React__default.createElement(TimelineItem$1,__assign$3({},hme,{key:"TimelineItem-".concat(bme),iconClassName:hme.iconClassName||nme,timeClassName:hme.timeClassName||rme,titleClassName:hme.titleClassName||ime,detailClassName:hme.detailClassName||ome}))}))}var Timeline$1$1=themeable(Timeline$1),ImageActionKey;(function(x_){x_.ROTATE_RIGHT="rotateRight",x_.ROTATE_LEFT="rotateLeft",x_.ZOOM_IN="zoomIn",x_.ZOOM_OUT="zoomOut",x_.SCALE_ORIGIN="scaleOrigin"})(ImageActionKey||(ImageActionKey={}));var ImageGallery=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isOpened:!1,index:-1,items:[],tx:0,ty:0,scale:1,rotate:0,showToolbar:!1,imageGallaryClassName:"",actions:eme.defaultProps.actions},$P.startX=0,$P.startY=0,$P.startTx=0,$P.startTy=0,$P.handleToolbarAction=debounce$6(function(tme){if(!tme.disabled){switch(tme.key){case ImageActionKey.ROTATE_LEFT:$P.setState(function(ame){return{rotate:ame.rotate-90,tx:0,ty:0}});break;case ImageActionKey.ROTATE_RIGHT:$P.setState(function(ame){return{rotate:ame.rotate+90,tx:0,ty:0}});break;case ImageActionKey.ZOOM_IN:$P.setState(function(ame){return{scale:ame.scale+.5,tx:0,ty:0}});break;case ImageActionKey.ZOOM_OUT:$P.setState(function(ame){return ame.scale-.5>0?{scale:ame.scale-.5,tx:0,ty:0}:null});break;case ImageActionKey.SCALE_ORIGIN:$P.setState(function(){return{scale:1,tx:0,ty:0}});break}tme.onClick&&typeof tme.onClick=="function"&&tme.onClick($P)}},250,{leading:!0,trailing:!1}),$P.scrollBar=React__default.createRef(),$P}return eme.prototype.galleryMainRef=function($P){var tme,ame;$P?($P.addEventListener("wheel",this.onWheelScroll,{passive:!1}),$P.addEventListener("mousedown",this.onMouseDown)):((tme=this.galleryMain)===null||tme===void 0||tme.removeEventListener("wheel",this.onWheelScroll),(ame=this.galleryMain)===null||ame===void 0||ame.removeEventListener("mousedown",this.onMouseDown)),this.galleryMain=$P},eme.prototype.onWheelScroll=function($P){var tme,ame=(tme=this.state)===null||tme===void 0?void 0:tme.showToolbar;ame&&($P.preventDefault(),$P.deltaY>0?this.handleToolbarAction({key:"zoomOut"}):$P.deltaY<0&&this.handleToolbarAction({key:"zoomIn"}))},eme.prototype.onMouseDown=function($P){var tme,ame=$P.button===1&&window.event!==null||$P.button===0;!ame||$P.defaultPrevented||($P.preventDefault(),(tme=this.galleryMain)===null||tme===void 0||tme.classList.add("is-dragging"),document.body.addEventListener("mousemove",this.onMouseMove),document.body.addEventListener("mouseup",this.onMouseUp),this.startX=$P.clientX,this.startY=$P.clientY,this.startTx=this.state.tx,this.startTy=this.state.ty)},eme.prototype.onMouseMove=function($P){this.setState({tx:this.startTx+$P.clientX-this.startX,ty:this.startTy+$P.clientY-this.startY})},eme.prototype.onMouseUp=function(){var $P;($P=this.galleryMain)===null||$P===void 0||$P.classList.remove("is-dragging"),document.body.removeEventListener("mousemove",this.onMouseMove),document.body.removeEventListener("mouseup",this.onMouseUp)},eme.prototype.handleImageEnlarge=function($P){var tme=this.props.actions,ame=Object.values(ImageActionKey);this.setState({isOpened:!0,tx:0,ty:0,rotate:0,scale:1,items:$P.list?$P.list:[$P],index:$P.index||0,showToolbar:!!$P.showToolbar,enlargeWithGallary:$P.enlargeWithGallary,imageGallaryClassName:$P.imageGallaryClassName,actions:Array.isArray($P.toolbarActions)?$P.toolbarActions.filter(function(nme){return ame.includes(nme==null?void 0:nme.key)}):tme,scrollBarLeading:!0,scrollBarTrailing:!1})},eme.prototype.resetImageAction=function(){this.setState({scale:1,rotate:0})},eme.prototype.close=function(){this.setState({isOpened:!1}),this.resetImageAction()},eme.prototype.prev=function(){var $P=this.state.index;this.setState({index:$P-1}),this.resetImageAction()},eme.prototype.next=function(){var $P=this.state.index;this.setState({index:$P+1}),this.resetImageAction()},eme.prototype.handleItemClick=function($P){var tme=parseInt($P.currentTarget.getAttribute("data-index"),10);this.setState({index:tme}),this.resetImageAction()},eme.prototype.handleModalEntered=function(){if(this.scrollBar.current){var $P=this.scrollBar.current.querySelector('div[data-index="'.concat(this.state.index,'"]'));$P==null||$P.scrollIntoView({behavior:"smooth"})}},eme.prototype.handleBarScroll=function(){var $P=this.scrollBar.current,tme=$P.firstElementChild;this.setState({scrollBarLeading:$P.scrollLeft===0,scrollBarTrailing:$P.offsetWidth+$P.scrollLeft>=tme.offsetWidth})},eme.prototype.scroll=function($P){$P===void 0&&($P=1);var tme=this.scrollBar.current,ame=tme.firstElementChild,nme=ame.offsetWidth-tme.offsetWidth;tme.scrollTo({left:tme.scrollLeft+nme*.1*$P,top:0,behavior:"smooth"});var rme=setInterval(function(){tme.scrollTo({left:tme.scrollLeft+5*$P,top:0,behavior:"smooth"})},50),ime=function(){document.body.removeEventListener("mouseup",ime),clearInterval(rme)};document.body.addEventListener("mouseup",ime)},eme.prototype.scrollRight=function(){this.scroll(1)},eme.prototype.scrollLeft=function(){this.scroll(-1)},eme.prototype.renderToolbar=function($P){var tme=this,ame=this.props,nme=ame.classnames,rme=ame.translate,ime=ame.className,ome=this.state.scale;return React__default.createElement("div",{className:nme("ImageGallery-toolbar",ime)},$P.map(function(lme){return React__default.createElement("div",{className:nme("ImageGallery-toolbar-action",{"is-disabled":lme.disabled||lme.key===ImageActionKey.ZOOM_OUT&&ome-.5<=0}),key:lme.key,onClick:function(){return tme.handleToolbarAction(lme)}},React__default.createElement("a",{className:nme("ImageGallery-toolbar-action-icon"),"data-tooltip":rme(lme.label),"data-position":"top"},React__default.isValidElement(lme.icon)?React__default.cloneElement(lme.icon,{className:nme("icon",lme.iconClassName)}):React__default.createElement(Icon$1,{icon:lme.icon,className:nme("icon",lme.iconClassName)})))}))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.children,nme=tme.classnames,rme=tme.modalContainer,ime=this.state,ome=ime.index,lme=ime.items,sme=ime.rotate,cme=ime.scale,dme=ime.tx,ume=ime.ty,fme=ime.showToolbar,pme=ime.enlargeWithGallary,hme=ime.actions,bme=ime.imageGallaryClassName,mme=ime.scrollBarLeading,vme=ime.scrollBarTrailing,gme=this.props.translate;return React__default.createElement(React__default.Fragment,null,React__default.cloneElement(ame,{onImageEnlarge:this.handleImageEnlarge}),React__default.createElement(FinalModal,{closeOnEsc:!0,closeOnOutside:!0,size:"full",onHide:this.close,show:this.state.isOpened,contentClassName:nme("ImageGallery",bme),container:rme,onEntered:this.handleModalEntered},React__default.createElement("a",{"data-tooltip":gme("Dialog.close"),"data-position":"left",className:nme("ImageGallery-close"),onClick:this.close},React__default.createElement(Icon$1,{icon:"close",className:"icon"})),~ome&&lme[ome]?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:nme("ImageGallery-title")},lme[ome].title),lme[ome].caption?React__default.createElement("div",{className:nme("ImageGallery-caption")},lme[ome].caption):null,React__default.createElement("div",{className:nme("ImageGallery-main"),ref:this.galleryMainRef},React__default.createElement("img",{draggable:!1,src:lme[ome].originalSrc,style:{transform:"translate(".concat(dme,"px, ").concat(ume,"px) scale(").concat(cme,") rotate(").concat(sme,"deg)")}}),fme&&Array.isArray(hme)&&hme.length>0?this.renderToolbar(hme):null,lme.length>1&&pme!==!1?React__default.createElement(React__default.Fragment,null,React__default.createElement("a",{className:nme("ImageGallery-prevBtn",ome<=0?"is-disabled":""),onClick:this.prev},React__default.createElement(Icon$1,{icon:"prev",className:"icon",iconContent:"ImageGallery-prevBtn"})),React__default.createElement("a",{className:nme("ImageGallery-nextBtn",ome>=lme.length-1?"is-disabled":""),onClick:this.next},React__default.createElement(Icon$1,{icon:"next",className:"icon",iconContent:"ImageGallery-nextBtn"}))):null)):null,lme.length>1&&pme!==!1?React__default.createElement("div",{className:nme("ImageGallery-footer")},React__default.createElement("a",{className:nme("ImageGallery-prevList",mme?"is-disabled":""),onMouseDown:this.scrollLeft},React__default.createElement(Icon$1,{icon:"prev",className:"icon"})),React__default.createElement("div",{className:nme("ImageGallery-itemsWrap"),ref:this.scrollBar,onScroll:this.handleBarScroll},React__default.createElement("div",{className:nme("ImageGallery-items")},lme.map(function(yme,_me){return React__default.createElement("div",{key:_me,"data-index":_me,onClick:$P.handleItemClick,className:nme("ImageGallery-item",_me===ome?"is-active":"")},React__default.createElement("img",{src:yme.src}))}))),React__default.createElement("a",{className:nme("ImageGallery-nextList",vme?"is-disabled":""),onMouseDown:this.scrollRight},React__default.createElement(Icon$1,{icon:"next",className:"icon"}))):null))},eme.defaultProps={actions:[{key:ImageActionKey.ROTATE_LEFT,icon:"rotate-left",label:"rotate.left"},{key:ImageActionKey.ROTATE_RIGHT,icon:"rotate-right",label:"rotate.right"},{key:ImageActionKey.ZOOM_IN,icon:"zoom-in",label:"zoomIn"},{key:ImageActionKey.ZOOM_OUT,icon:"zoom-out",label:"zoomOut"},{key:ImageActionKey.SCALE_ORIGIN,icon:"scale-origin",label:"scale.origin"}]},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLDivElement]),__metadata("design:returntype",void 0)],eme.prototype,"galleryMainRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[WheelEvent]),__metadata("design:returntype",void 0)],eme.prototype,"onWheelScroll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onMouseUp",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleImageEnlarge",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"prev",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"next",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleItemClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleModalEntered",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleBarScroll",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"scrollRight",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"scrollLeft",null),eme}(React__default.Component),ImageGallery$1=themeable(localeable(ImageGallery)),MultilineText=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isExpend:!1,showBtn:!1},tme.ref=React__default.createRef(),tme}return eme.prototype.componentDidMount=function(){this.ref&&this.ref.current&&this.ref.current.scrollHeight>this.ref.current.clientHeight&&this.setState({showBtn:!0})},eme.prototype.shouldComponentUpdate=function($P,tme,ame){return!!(anyChanged$1(["text","maxRows","expendButtonText","collapseButtonText","className"],this.props,$P)||anyChanged$1(["isExpend","showBtn"],this.state,tme))},eme.prototype.componentDidUpdate=function($P,tme){var ame=this.props,nme=ame.text,rme=ame.maxRows;(nme!==$P.text||rme!==$P.maxRows)&&this.ref&&this.ref.current&&this.setState({showBtn:this.ref.current.scrollHeight>this.ref.current.clientHeight})},eme.prototype.toggleExpend=function(){this.setState({isExpend:!this.state.isExpend})},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.style,nme=$P.text,rme=$P.classnames,ime=$P.maxRows,ome=ime===void 0?5:ime,lme=$P.expendButtonText,sme=$P.collapseButtonText;if(!nme)return null;var cme=this.state,dme=cme.showBtn,ume=cme.isExpend;return React__default.createElement("div",{className:rme("MultilineText",tme),style:ame},React__default.createElement("div",{ref:this.ref,className:rme("MultilineText-counter"),style:{height:"".concat(ome*20,"px")}},nme),React__default.createElement("div",{className:rme("MultilineText-display"),style:{height:dme&&!ume?"".concat(ome*20,"px"):"auto"}},nme),dme&&React__default.createElement("div",{className:rme("MultilineText-button-wrapper")},React__default.createElement(Button$1,{className:rme("MultilineText-button"),level:"link",onClick:this.toggleExpend},ume?sme:lme)))},eme.defaultProps={maxRows:5,expendButtonText:"展开",collapseButtonText:"收起"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggleExpend",null),eme}(React__default.Component),MultilineText$1=themeable(localeable(MultilineText)),useSubForm=function(x_,eme,$P){var tme=useForm({defaultValues:x_,mode:"onChange",shouldUnregister:!0,resolver:useValidationResolver(eme)}),ame=React__default.useRef(debounce$6($P,250,{leading:!1,trailing:!0}));return React__default.useEffect(function(){return function(){return ame.current.cancel()}},[]),React__default.useEffect(function(){var nme=tme.watch(function(rme){ame.current(__assign$3(__assign$3({},x_),rme))});return function(){return nme.unsubscribe()}},[tme.watch]),tme};function Combo(x_){var eme=this,$P,tme,ame=x_.control,nme=x_.name,rme=x_.wrap,ime=x_.mode,ome=x_.label,lme=x_.labelAlign,sme=x_.labelClassName,cme=x_.description,dme=x_.fieldClassName,ume=x_.className,fme=x_.style,pme=x_.multiLine,hme=x_.itemsWrapperClassName,bme=x_.itemClassName,mme=x_.addButtonClassName,vme=x_.addButtonLevel,gme=x_.addButtonSize,yme=x_.itemRender,_me=x_.translate,$me=x_.classnames,Cme=x_.addable,Sme=x_.scaffold,Eme=x_.addButtonText,xme=x_.removable,Tme=x_.rules,Ome=x_.isRequired,Rme=x_.minLength,Nme=x_.maxLength,Ime=React__default.useRef({}),Pme=React__default.useCallback(function(Gme,Jme){Gme?Ime.current[Jme]=Gme:delete Ime.current[Jme]},[Ime]),Mme=__assign$3({},Tme);Ome&&(Mme.required=!0),Rme&&(Mme.minLength=Rme),Nme&&(Mme.maxLength=Nme),Mme.validate=React__default.useCallback(function(Gme){return __awaiter(eme,void 0,void 0,function(){var Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe;return __generator(this,function(abe){switch(abe.label){case 0:return Jme=Ime.current,typeof(Tme==null?void 0:Tme.validate)!="function"?[3,2]:[4,Tme.validate(Gme)];case 1:if(Yme=abe.sent(),Yme)return[2,Yme];abe.label=2;case 2:abe.trys.push([2,7,8,9]),Qme=__values$1(Object.keys(Jme)),Xme=Qme.next(),abe.label=3;case 3:return Xme.done?[3,6]:(Kme=Xme.value,[4,function(obe){return new Promise(function(hbe){obe.handleSubmit(function(){return hbe(!0)},function(){return hbe(!1)})()})}(Jme[Kme])]);case 4:if(Zme=abe.sent(),!Zme)return[2,_me("validateFailed")];abe.label=5;case 5:return Xme=Qme.next(),[3,3];case 6:return[3,9];case 7:return nbe=abe.sent(),lbe={error:nbe},[3,9];case 8:try{Xme&&!Xme.done&&(ibe=Qme.return)&&ibe.call(Qme)}finally{if(lbe)throw lbe.error}return[7];case 9:return[2]}})})},[Ime]);var kme=useFieldArray({control:ame,name:nme,shouldUnregister:!0,rules:Mme}),Bme=kme.fields,Dme=kme.append,jme=kme.remove,Vme=useFormContext();Vme.trigger;var Wme=Vme.setValue,Lme=React__default.useCallback(function(Gme,Jme){Wme("".concat(nme,".").concat(Gme),Jme)},[ame]);function zme(){var Gme;return React__default.createElement("div",{className:$me("Combo Combo--multi",ume,pme?"Combo--ver":"Combo--hor")},React__default.createElement("div",{className:$me("Combo-items",hme)},Bme.map(function(Jme,Yme){return React__default.createElement("div",{key:Jme.id,className:$me("Combo-item",bme)},React__default.createElement(ComboItem,{control:ame,update:Lme,index:Yme,value:Jme,itemRender:yme,translate:_me,classnames:$me,formRef:Pme}),React__default.createElement("a",{onClick:function(){return jme(Yme)},key:"delete",className:$me("Combo-delBtn ".concat(xme===!1||Rme&&Bme.length<=Rme?"is-disabled":"")),"data-tooltip":_me("delete"),"data-position":"bottom"},React__default.createElement(Icon$1,{icon:"status-close",className:"icon"})))})),Cme!==!1&&(!Nme||Bme.length<Nme)?React__default.createElement("div",{className:$me("Combo-toolbar")},React__default.createElement(Button$1,{className:$me("Combo-addBtn",mme),level:vme??"primary",onClick:function(){return Dme(__assign$3({},Sme))},size:(Gme=gme)!==null&&Gme!==void 0?Gme:"sm"},React__default.createElement(Icon$1,{icon:"plus",className:"icon"}),React__default.createElement("span",null,_me(Eme||"add")))):null)}var Ume=useFormState({control:ame}).errors;return rme===!1?zme():React__default.createElement(ThemedFormField,{className:dme,style:fme,label:ome,labelAlign:lme,labelClassName:sme,description:cme,mode:ime,isRequired:Ome,hasError:!!(!(($P=Ume[nme])===null||$P===void 0)&&$P.message),errors:(tme=Ume[nme])===null||tme===void 0?void 0:tme.message},zme())}function ComboItem(x_){var eme=x_.value,$P=x_.itemRender,tme=x_.index,ame=x_.translate,nme=x_.update,rme=x_.classnames,ime=x_.formRef,ome=React__default.useRef(tme);React__default.useEffect(function(){ome.current=tme},[tme]);var lme=useSubForm(eme,ame,function(cme){return nme(ome.current,cme)});React__default.useEffect(function(){return ime==null||ime(lme,tme),function(){ime==null||ime(null,tme)}},[lme]);var sme=$P(lme,tme);return(sme==null?void 0:sme.type)===React__default.Fragment&&(sme=sme.props.children),Array.isArray(sme)&&(sme=React__default.createElement("div",{className:rme("Form-row")},sme.map(function(cme,dme){return React__default.createElement("div",{className:rme("Form-col",cme==null?void 0:cme.props.columnClassName),key:cme.key||dme},cme)}))),React__default.createElement("div",{className:rme("Combo-itemInner")},sme)}themeable(localeable(Combo));function InputTable(x_){var eme=this,$P,tme,ame=x_.control,nme=x_.name,rme=x_.wrap,ime=x_.mode,ome=x_.label,lme=x_.labelAlign,sme=x_.labelClassName,cme=x_.description,dme=x_.fieldClassName,ume=x_.className,fme=x_.translate,pme=x_.classnames,hme=x_.removable,bme=x_.columns,mme=x_.addable,vme=x_.addButtonText,gme=x_.addButtonClassName,yme=x_.addButtonProps,_me=x_.scaffold,$me=x_.minLength,Cme=x_.maxLength,Sme=x_.isRequired,Eme=x_.rules,xme=x_.tableClassName,Tme=x_.tableHeadClassName,Ome=x_.tableBodyClassName,Rme=x_.placeholder,Nme=x_.scroll,Ime=x_.footer,Pme=x_.onItemAdd,Mme=(Nme==null?void 0:Nme.y)!=null,kme=React__default.useRef(null),Bme=React__default.useRef(null),Dme=React__default.useRef({}),jme=React__default.useCallback(function(Zme,nbe){Zme?Dme.current[nbe]=Zme:delete Dme.current[nbe]},[Dme]),Vme=React__default.useCallback(function(){return kme.current},[kme]),Wme=__assign$3({},Eme);Sme&&(Wme.required=!0),$me&&(Wme.minLength=$me),Cme&&(Wme.maxLength=Cme),Wme.validate=React__default.useCallback(function(Zme){return __awaiter(eme,void 0,void 0,function(){var nbe,lbe,ibe,abe,obe,hbe,ube,mbe,pbe;return __generator(this,function(_be){switch(_be.label){case 0:return nbe=Dme.current,typeof(Eme==null?void 0:Eme.validate)!="function"?[3,2]:[4,Eme.validate(Zme)];case 1:if(lbe=_be.sent(),lbe)return[2,lbe];_be.label=2;case 2:_be.trys.push([2,7,8,9]),ibe=__values$1(Object.keys(nbe)),abe=ibe.next(),_be.label=3;case 3:return abe.done?[3,6]:(obe=abe.value,[4,function(Sbe){return new Promise(function(vbe){Sbe.handleSubmit(function(){return vbe(!0)},function(){return vbe(!1)})()})}(nbe[obe])]);case 4:if(hbe=_be.sent(),!hbe)return[2,fme("validateFailed")];_be.label=5;case 5:return abe=ibe.next(),[3,3];case 6:return[3,9];case 7:return ube=_be.sent(),mbe={error:ube},[3,9];case 8:try{abe&&!abe.done&&(pbe=ibe.return)&&pbe.call(ibe)}finally{if(mbe)throw mbe.error}return[7];case 9:return[2]}})})},[Dme]);var Lme=useFieldArray({control:ame,name:nme,rules:Wme}),zme=Lme.fields,Ume=Lme.append,Gme=Lme.remove;Array.isArray(bme)||(bme=[]);var Jme=useFormState({control:ame}).errors,Yme=useFormContext();Yme.trigger;var Qme=Yme.setValue,Xme=React__default.useCallback(function(Zme,nbe){Qme("".concat(nme,".").concat(Zme),nbe)},[ame]);function Kme(){var Zme=function(){var nbe=__assign$3({},_me);Ume(nbe),Mme&&Bme&&requestAnimationFrame(function(){var lbe,ibe;(ibe=(lbe=Bme==null?void 0:Bme.current)===null||lbe===void 0?void 0:lbe.scrollIntoView)===null||ibe===void 0||ibe.call(lbe,{behavior:"smooth",block:"end",inline:"nearest"})}),Pme==null||Pme(nbe)};return React__default.createElement("div",{className:pme("Table","InputTable-UI",ume)},React__default.createElement("div",{className:pme("Table-contentWrap",{"is-fixed":Mme}),style:{maxHeight:Mme?Nme.y:"unset"},ref:kme},React__default.createElement("div",{className:pme("Table-content")},React__default.createElement("table",{className:pme("Table-table",xme),ref:Bme},React__default.createElement("thead",{className:pme(Tme)},React__default.createElement("tr",null,bme.map(function(nbe,lbe){return React__default.createElement("th",{key:lbe,className:nbe.className},nbe.thRender?nbe.thRender():nbe.title)}),React__default.createElement("th",{key:"operation"},fme("Table.operation")))),React__default.createElement("tbody",{className:pme(Ome)},zme.length?zme.map(function(nbe,lbe){return React__default.createElement("tr",{key:nbe.id},React__default.createElement(InputTableRow,{key:"columns",control:ame,update:Xme,index:lbe,value:nbe,columns:bme,translate:fme,classnames:pme,formRef:jme,popOverContainer:Vme}),React__default.createElement("td",{key:"operation"},React__default.createElement(Button$1,{level:"link",key:"delete",disabled:hme===!1||!!($me&&zme.length<=$me),className:pme("Table-delBtn"),onClick:function(){return Gme(lbe)}},fme("delete"))))}):React__default.createElement("tr",null,React__default.createElement("td",{colSpan:bme.length+1},React__default.createElement(Icon$1,{icon:"desk-empty",className:pme("Table-placeholder-empty-icon","icon")}),Rme??fme("placeholder.noData"))))))),mme!==!1&&(!Cme||zme.length<Cme)?React__default.createElement("div",{className:pme("InputTable-toolbar")},React__default.createElement(Button$1,__assign$3({className:pme(gme),size:"sm"},yme,{onClick:function(){return Zme()}}),React__default.createElement(Icon$1,{icon:"plus",className:"icon"}),React__default.createElement("span",null,fme(vme||"add"))),Ime==null?void 0:Ime()):null)}return rme===!1?Kme():React__default.createElement(ThemedFormField,{className:dme,label:ome,labelAlign:lme,labelClassName:sme,description:cme,mode:ime,hasError:!!(!(($P=Jme[nme])===null||$P===void 0)&&$P.message),errors:(tme=Jme[nme])===null||tme===void 0?void 0:tme.message},Kme())}var InputTableRow=React__default.memo(function(eme){var $P=eme.value,tme=eme.columns,ame=eme.index,nme=eme.translate,rme=eme.update,ime=eme.formRef;eme.classnames;var ome=eme.popOverContainer,lme=React__default.useRef(ame);React__default.useEffect(function(){lme.current=ame},[ame]);var sme=useSubForm($P,nme,function(cme){return rme(lme.current,cme)});return React__default.useEffect(function(){return ime==null||ime(sme,$P.id),function(){ime==null||ime(null,$P.id)}},[sme,$P.id]),React__default.createElement(React__default.Fragment,null,tme.map(function(cme,dme){return React__default.createElement("td",{key:dme,className:cme.className},cme.tdRender(__assign$3(__assign$3({},sme),{popOverContainer:ome}),dme,ame))}))});themeable(localeable(InputTable));var DndContainer=function(x_){var eme=x_.className,$P=x_.classnames,tme=x_.children,ame=x_.axis,nme=x_.position,rme=x_.defaultPosition,ime=x_.bounds,ome=x_.grid,lme=x_.handle,sme=x_.cancel,cme=x_.draggable,dme=x_.scale,ume=x_.enableUserSelect,fme=x_.nodeRef,pme=x_.onDrag,hme=x_.onStart,bme=x_.onStop;return React__default.createElement(Draggable$1,{axis:ame,position:nme,defaultPosition:rme,bounds:ime,grid:ome,handle:lme,cancel:sme,disabled:!cme,scale:dme,enableUserSelectHack:!ume,nodeRef:fme,defaultClassName:$P(eme),defaultClassNameDragging:$P("DndContainer--dragging"),defaultClassNameDragged:$P("DndContainer--dragged"),onStart:hme,onDrag:pme,onStop:bme},tme)};DndContainer.defaultProps={axis:"both",scale:1,enableUserSelect:!1};var DndContainer$1=localeable(themeable(DndContainer)),MenuContext=reactExports.createContext({themeColor:"light",stacked:!0,mode:"inline",collapsed:!1,direction:"ltr",prefix:"",inlineIndent:15,accordion:!1,draggable:!1}),DragIcon$1=getIcon("drag-bar"),MenuItem=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.internalProps=["children","eventKey","warnKey","disabled","itemIcon","attribute","onMouseEnter","onMouseLeave","onClick","className"],$P}return eme.prototype.isImgPath=function($P){return typeof $P=="string"&&(!!~$P.indexOf(".")||/^\/images\//.test($P))},eme.prototype.renderMenuItem=function(){var $P,tme,ame,nme,rme,ime,ome=this.context,lme=ome.collapsed,sme=ome.draggable,cme=ome.stacked,dme=ome.mode,ume=ome.onDragStart,fme=this.props,pme=fme.classnames,hme=fme.icon,bme=fme.label,mme=fme.labelExtra,vme=fme.path,gme=fme.depth,yme=fme.badge,_me=fme.badgeClassName,$me=fme.renderLink,Cme=fme.extra,Sme=fme.disabled,Eme=fme.testIdBuilder,xme=fme.id,Tme=fme.data,Ome=lme&&gme===1,Rme=hme?typeof hme=="string"?this.isImgPath(hme)?React__default.createElement("div",{className:pme("Nav-Menu-item-icon")},React__default.createElement("img",{width:"14px",src:hme})):React__default.createElement("i",{className:pme("Nav-Menu-item-icon",hme,($P={},$P["Nav-Menu-item-icon-collapsed"]=Ome,$P))}):React__default.isValidElement(hme)?React__default.cloneElement(hme,{className:pme("Nav-Menu-item-icon",(rme=hme.props)===null||rme===void 0?void 0:rme.className,(tme={},tme["Nav-Menu-item-icon-svg-collapsed"]=Ome,tme))}):null:null,Nme=bme&&(typeof bme=="string"||Array.isArray(bme))?React__default.createElement("span",{className:pme("Nav-Menu-item-label",(ame={},ame["Nav-Menu-item-label-collapsed"]=Ome,ame)),title:Ome||Array.isArray(bme)?"":bme},Ome?bme.slice(0,1):bme):React__default.isValidElement(bme)?React__default.cloneElement(bme,{className:pme("Nav-Menu-item-label",(ime=bme==null?void 0:bme.props)===null||ime===void 0?void 0:ime.className,(nme={},nme["Nav-Menu-item-label-collapsed"]=Ome,nme["Nav-Menu-item-label-subTitle"]=!Ome,nme))}):null,Ime=!Sme&&cme&&dme==="inline"&&!lme&&sme?React__default.createElement("span",{className:pme("Nav-Menu-item-dragBar"),draggable:!0},React__default.createElement(DragIcon$1,null)):null,Pme=$me&&typeof $me=="function"?$me(this.props):vme||"";return React__default.createElement("div",{className:pme("Nav-Menu-item-wrap")},React__default.createElement(Badge,{classnames:pme,badge:yme&&!Ome?__assign$3(__assign$3({},yme),{className:_me}):null,data:createObject$1(Tme,Pme)},React__default.createElement("a",__assign$3({className:pme("Nav-Menu-item-link"),title:typeof(Pme==null?void 0:Pme.label)=="string"?Pme==null?void 0:Pme.label:void 0,"data-id":(Pme==null?void 0:Pme.__id)||xme,"data-depth":gme,onDragStart:ume==null?void 0:ume(Pme)},Eme==null?void 0:Eme.getTestId()),Ome?React__default.createElement(React__default.Fragment,null,Rme||Nme):React__default.createElement(React__default.Fragment,null,Ime,Rme,Nme,mme))),Cme?React__default.createElement("div",{className:pme("Nav-Menu-item-extra")},Cme):null)},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.tooltipClassName,nme=tme.classnames,rme=tme.label,ime=tme.disabled,ome=tme.disabledTip,lme=tme.tooltipContainer,sme=tme.tooltipTrigger,cme=tme.depth,dme=tme.hidden,ume=tme.order,fme=tme.overflowedIndicator,pme=tme.overflowMaxCount,hme=this.context,bme=hme.collapsed,mme=hme.mode,vme=hme.stacked,gme=hme.themeColor,yme=hme.direction,_me=vme&&mme==="inline"&&bme&&cme===1,$me=fme&&pme;return dme?null:React__default.createElement(TooltipWrapper$1,{tooltipClassName:nme("Nav-Menu-item-tooltip",ame,($P={},$P["Nav-Menu-item-tooltip-dark"]=gme==="dark",$P)),placement:yme==="rtl"?"left":"right",tooltip:ime?ome:_me?rme:"",container:lme,trigger:sme,rootClose:!0},React__default.createElement("ul",{className:nme("Nav-Menu-item-tooltip-wrap"),style:$me?{}:{order:ume}},React__default.createElement(Item$2,__assign$3({},pick$3(this.props,this.internalProps)),this.renderMenuItem())))},eme.defaultProps={disabled:!1,tooltipTrigger:["hover","focus"]},eme.contextType=MenuContext,eme}(React__default.Component),MenuItem$1=themeable(MenuItem),DragIcon=getIcon("drag-bar"),SubMenu=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.internalProps=["key","style","className","title","children","disabled","eventKey","warnKey","itemIcon","expandIcon","onMouseEnter","onMouseLeave","popupClassName","popupOffset","onClick","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$P}return eme.prototype.handleSubmenuTitleActived=function($P){var tme=$P.key,ame=$P.domEvent,nme=this.context,rme=nme.onSubmenuClick,ime=nme.stacked;ime&&(rme==null||rme({key:tme,domEvent:ame,props:this.props}))},eme.prototype.isImgPath=function($P){return typeof $P=="string"&&(!!~$P.indexOf(".")||/^\/images\//.test($P))},eme.prototype.renderSubMenuTitle=function(){var $P,tme,ame,nme,rme,ime,ome=this.context,lme=ome.collapsed,sme=ome.stacked,cme=ome.mode,dme=ome.draggable,ume=ome.onDragStart,fme=this.props,pme=fme.classnames,hme=fme.id,bme=fme.label,mme=fme.labelExtra,vme=fme.icon,gme=fme.path,yme=fme.depth,_me=fme.badge,$me=fme.badgeClassName,Cme=fme.disabled,Sme=fme.data,Eme=fme.extra,xme=fme.testIdBuilder,Tme=fme.renderLink,Ome=lme&&yme===1,Rme=Tme&&typeof Tme=="function"?Tme(this.props):gme||"",Nme=vme?typeof vme=="string"?this.isImgPath(vme)?React__default.createElement("div",{className:pme("Nav-Menu-item-icon")},React__default.createElement("img",{width:"14px",src:vme})):React__default.createElement("i",{key:"icon",className:pme("Nav-Menu-item-icon",vme,($P={},$P["Nav-Menu-item-icon-collapsed"]=Ome,$P))}):React__default.isValidElement(vme)?React__default.cloneElement(vme,{className:pme("Nav-Menu-item-icon",(rme=vme.props)===null||rme===void 0?void 0:rme.className,(tme={},tme["Nav-Menu-item-icon-svg-collapsed"]=Ome,tme))}):null:null,Ime=bme&&(typeof bme=="string"||Array.isArray(bme))?React__default.createElement("span",{className:pme("Nav-Menu-item-label",(ame={},ame["Nav-Menu-item-label-collapsed"]=Ome,ame["Nav-Menu-item-label-subTitle"]=!Ome,ame)),title:Ome||Array.isArray(bme)?"":bme},Ome?bme.slice(0,1):bme):React__default.isValidElement(bme)?React__default.cloneElement(bme,{className:pme("Nav-Menu-item-label",(ime=bme==null?void 0:bme.props)===null||ime===void 0?void 0:ime.className,(nme={},nme["Nav-Menu-item-label-collapsed"]=Ome,nme["Nav-Menu-item-label-subTitle"]=!Ome,nme))}):null,Pme=!Cme&&sme&&cme==="inline"&&!lme&&dme?React__default.createElement("span",__assign$3({className:pme("Nav-Menu-item-dragBar"),draggable:!0},xme==null?void 0:xme.getChild("drag-bar").getTestId()),React__default.createElement(DragIcon,null)):null,Mme=function(){return Ome?React__default.createElement(React__default.Fragment,null,Nme||Ime):React__default.createElement(React__default.Fragment,null,Pme,Nme,Ime,mme,!sme&&yme===1?React__default.createElement("span",__assign$3({key:"expand-toggle",className:pme("Nav-Menu-submenu-arrow")},xme==null?void 0:xme.getChild("expand-toggle").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null)};return React__default.createElement("div",{className:pme("Nav-Menu-item-wrap")},React__default.createElement(Badge,{classnames:pme,badge:_me&&!Ome?__assign$3(__assign$3({},_me),{className:$me}):null,data:createObject$1(Sme,Rme)},React__default.createElement("a",__assign$3({className:pme("Nav-Menu-item-link"),"data-id":(Rme==null?void 0:Rme.__id)||hme,"data-depth":yme,onDragStart:ume==null?void 0:ume(Rme)},xme==null?void 0:xme.getTestId(),{href:sme===!1&&(Rme==null?void 0:Rme.to)}),Mme())),Eme?React__default.createElement("div",{className:pme("Nav-Menu-item-extra")},Eme):null)},eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.popupClassName,rme=ame.classnames,ime=ame.hidden,ome=ame.className,lme=this.context.themeColor==="dark";return ime?null:React__default.createElement(SubMenu$3,__assign$3({},pick$3(this.props,this.internalProps),{className:rme("Nav-Menu-submenu",($P={},$P["Nav-Menu-submenu-dark"]=lme,$P),ome),popupClassName:rme((tme={},tme["Nav-Menu-submenu-popup-dark"]=lme,tme),nme),title:this.renderSubMenuTitle(),onTitleClick:this.handleSubmenuTitleActived}))},eme.contextType=MenuContext,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmenuTitleActived",null),eme}(React__default.Component),SubMenu$1=themeable(SubMenu),INVALIDATE="invalidate",RESPONSIVE="responsive",Menu=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame;tme=x_.call(this,$P)||this;var nme=tme.normalizeNavigations(__assign$3({},$P)),rme=nme.transformedNav,ime=nme.activeKey,ome=nme.defaultOpenKeys,lme=nme.openKeys,sme=nme.activeItems;return tme.state={navigations:rme,activeKey:ime,defaultOpenKeys:ome,openKeys:lme},ime.length&&((ame=$P.onChange)===null||ame===void 0||ame.call($P,sme)),tme}return eme.prototype.componentDidUpdate=function($P,tme){var ame,nme,rme,ime=this.props,ome=$P.isOpen,lme=$P.navigations.length!==ime.navigations.length;if(!lme)try{for(var sme=__values$1(ime.navigations.entries()),cme=sme.next();!cme.done;cme=sme.next()){var dme=__read$3(cme.value,2),ume=dme[0],fme=dme[1];if(!fme.link||fme.link&&!isEqual$1(fme.link,$P.navigations[ume].link)){lme=!0;break}}}catch(yme){ame={error:yme}}finally{try{cme&&!cme.done&&(nme=sme.return)&&nme.call(sme)}finally{if(ame)throw ame.error}}if(lme||!isEqual$1($P.location,ime.location)){var pme=this.normalizeNavigations(__assign$3(__assign$3({},ime),{isOpen:ome})),hme=pme.transformedNav,bme=pme.activeKey,mme=pme.defaultOpenKeys,vme=pme.openKeys,gme=pme.activeItems;this.setState({navigations:hme,activeKey:bme,defaultOpenKeys:mme,openKeys:vme,activeItems:gme})}isEqual$1(tme.activeKey,this.state.activeKey)||(rme=ime.onChange)===null||rme===void 0||rme.call(ime,this.state.activeItems)},eme.prototype.getKeyPaths=function($P,tme){var ame=findTree($P,function(rme){return rme.id===tme});if(!ame)return[];var nme=getTreeAncestors($P,ame);return nme?nme.map(function(rme){return rme.id||""}):[]},eme.prototype.normalizeNavigations=function($P){var tme=this,ame=$P.navigations,nme=$P.prefix,rme=$P.isActive,ime=$P.isOpen,ome=$P.stacked,lme=1,sme=[],cme=[],dme=[],ume=mapTree(filterTree(ame,function(pme,hme,bme){return!(!ome&&pme.mode==="divider")}),function(pme,hme,bme,mme){var vme=(pme.id||pme.key||lme++).toString();!sme.find(function(yme){return yme===vme})&&rme(pme,nme)&&(sme==null||sme.push(vme),dme==null||dme.push(pme.link||pme));var gme=ime(pme);return!cme.find(function(yme){return yme===vme})&&gme&&cme.push(vme),__assign$3(__assign$3({},pme),{id:vme,active:rme,depth:bme,children:pme.children})},1,!1),fme=[];return sme.forEach(function(pme){fme=__spreadArray(__spreadArray(__spreadArray([],__read$3(fme),!1),__read$3(tme.getKeyPaths(ume,pme)),!1),[pme],!1)}),{transformedNav:ume,activeKey:sme,defaultOpenKeys:fme,openKeys:cme,activeItems:dme}},eme.prototype.handleItemClick=function($P){var tme=$P.key,ame=$P.domEvent,nme=$P.keyPath;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return ame&&ame.defaultPrevented?[2]:(rme=this.props.onSelect,ime=findTree(this.state.navigations,function(cme){return cme.id===tme}),lme=rme,lme?[4,rme((ime==null?void 0:ime.link)||ime,nme.length)]:[3,2]);case 1:lme=sme.sent(),sme.label=2;case 2:return ome=lme,ome===!1?[2]:(this.setState({activeKey:[tme]}),[2])}})})},eme.prototype.handleSubMenuTitleClick=function($P){var tme=$P.key,ame=$P.domEvent,nme=$P.props;ame&&ame.defaultPrevented||this.selectSubItem({key:tme,domEvent:ame,props:nme})},eme.prototype.selectSubItem=function($P){var tme=$P.key;$P.domEvent,$P.props;var ame=this.state.navigations,nme=this.props,rme=nme.stacked,ime=nme.mode,ome=nme.collapsed,lme=nme.accordion,sme=nme.onToggle,cme=nme.onToggleExpand,dme=nme.onSelect,ume=rme&&ime==="inline"&&!ome,fme=this.state.openKeys.concat(),pme=fme.includes(tme),hme=this.getKeyPaths(ame,tme);pme?fme=fme.filter(function(mme){return mme!==tme}):ume&&lme?fme=__spreadArray(__spreadArray([],__read$3(hme),!1),[tme],!1):fme=__spreadArray(__spreadArray([],__read$3(fme),!1),[tme],!1);var bme=findTree(ame,function(mme){return mme.id===tme});bme!=null&&bme.path?dme==null||dme((bme==null?void 0:bme.link)||bme,hme.length):(sme==null||sme(bme==null?void 0:bme.link,hme.length,pme),cme==null||cme(uniq$1(fme)))},eme.prototype.handleToggleExpand=function($P){var tme=this.state.navigations,ame=this.props,nme=ame.onToggleExpand,rme=ame.stacked,ime=ame.mode,ome=ame.collapsed,lme=ame.accordion,sme=ame.onToggle,cme=$P.disabled,dme=$P.eventKey,ume=$P.isOpen,fme=$P.isSubMenu,pme=this.state.openKeys.concat(),hme=rme&&ime==="inline"&&!ome,bme=this.getKeyPaths(tme,dme);if(fme&&!cme){ume?pme=pme.filter(function(vme){return vme!==dme}):hme&&lme?pme=__spreadArray(__spreadArray([],__read$3(bme),!1),[dme],!1):pme.push(dme);var mme=findTree(tme,function(vme){return vme.id===dme});sme==null||sme((mme==null?void 0:mme.link)||mme,bme.length,ume),nme==null||nme(uniq$1(pme))}},eme.prototype.renderExpandIcon=function($P){var tme=this,ame,nme=this.state.navigations,rme=this.props,ime=rme.classnames,ome=rme.expandIcon,lme=rme.testIdBuilder,sme=findTree(nme,function(cme){return cme.id===$P.eventKey});return React__default.createElement("span",__assign$3({key:"expand-toggle",className:ime("Nav-Menu-submenu-arrow"),onClick:function(cme){tme.handleToggleExpand($P),cme.preventDefault()}},lme==null?void 0:lme.getChild(((ame=sme==null?void 0:sme.link)===null||ame===void 0?void 0:ame.testid)||$P.eventKey).getChild("expand-toggle").getTestId()),React__default.isValidElement(ome)?ome:React__default.createElement(Icon$1,{icon:typeof ome=="string"?ome:"right-arrow-bold",className:"icon"}))},eme.prototype.renderMenuContent=function($P,tme){var ame=this,nme=this.props,rme=nme.renderLink,ime=nme.classnames,ome=nme.themeColor,lme=nme.disabled,sme=nme.badge,cme=nme.data,dme=nme.isActive,ume=nme.collapsed,fme=nme.overflowedIndicator,pme=nme.overflowMaxCount,hme=nme.popupClassName,bme=nme.testIdBuilder;return $P.map(function(mme,vme){var gme;if(mme.mode&&mme.mode==="group")return React__default.createElement(MenuItemGroup,{key:mme.id,title:ume?"":mme.label,className:mme.className},ume&&vme>0?React__default.createElement(Divider$1,{key:"group-divider"+mme.id}):null,ame.renderMenuContent(mme.children||[],mme.depth));var yme=lme||mme.disabled,_me=mme.link;return _me&&_me.defer&&!_me.loaded||mme.children&&mme.children.length?React__default.createElement(SubMenu$1,__assign$3({},mme,{key:mme.id,disabled:yme||_me.loading,active:dme(mme),badge:sme,renderLink:rme,depth:tme||1,testIdBuilder:bme==null?void 0:bme.getChild(_me.testid||vme),popupClassName:hme}),ame.renderMenuContent(mme.children||[],mme.depth+1)):mme.mode==="divider"?React__default.createElement(Divider$1,{key:mme.id,className:ime("Nav-Menu-item-divider",(gme={},gme["Nav-Menu-item-divider-dark"]=ome==="dark",gme))}):React__default.createElement(MenuItem$1,__assign$3({},mme,{key:mme.id,disabled:yme,renderLink:rme,badge:sme,data:cme,testIdBuilder:bme==null?void 0:bme.getChild(_me.testid||vme),depth:tme||1,order:vme,overflowedIndicator:fme,overflowMaxCount:pme}))})},eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.classPrefix,rme=ame.classnames,ime=ame.collapsed,ome=ame.themeColor,lme=ame.stacked,sme=ame.mode,cme=ame.accordion,dme=ame.prefix,ume=ame.disabled,fme=ame.draggable,pme=ame.className,hme=ame.triggerSubMenuAction,bme=ame.direction,mme=ame.overflowedIndicator,vme=ame.disabledOverflow,gme=ame.overflowMaxCount,yme=ame.overflowComponent,_me=ame.overflowedIndicatorPopupClassName,$me=ame.overflowSuffix,Cme=ame.overflowItemWidth,Sme=ame.overflowStyle,Eme=ame.popOverContainer,xme=ame.inlineIndent,Tme=ame.expandBefore,Ome=ame.onDragStart,Rme=this.state,Nme=Rme.navigations,Ime=Rme.activeKey,Pme=Rme.defaultOpenKeys,Mme=Rme.openKeys,kme=ome==="dark",Bme=lme?sme==="float"?"vertical-left":"vertical":"horizontal",Dme=ime||!lme||lme&&sme==="float";return React__default.createElement(MenuContext.Provider,{value:{themeColor:ome,stacked:lme,mode:sme,collapsed:ime,direction:bme,prefix:dme,inlineIndent:xme,accordion:cme,draggable:fme,onDragStart:Ome,onSubmenuClick:this.handleSubMenuTitleClick}},React__default.createElement(ExportMenu,{key:"menu",prefixCls:"".concat(nme,"Nav-Menu"),className:rme("Nav-Menu-".concat(bme),pme,($P={},$P["Nav-Menu-collapsed"]=lme&&ime,$P["Nav-Menu-dark"]=kme,$P["Nav-Menu-light"]=!kme,$P["Nav-Menu-disabled"]=ume,$P["Nav-Menu-expand-before"]=lme&&sme==="inline"&&!ime&&Tme,$P)),direction:bme,mode:lme&&sme==="inline"&&!ime?"inline":Bme,inlineIndent:xme,triggerSubMenuAction:hme,expandIcon:this.renderExpandIcon,getPopupContainer:Eme,overflowedIndicator:React__default.isValidElement(mme)?React__default.cloneElement(mme,{className:rme("Nav-Menu-item-icon Nav-Menu-overflowedIcon",(tme=mme.props)===null||tme===void 0?void 0:tme.className)}):React__default.createElement("i",{className:rme("Nav-Menu-item-icon Nav-Menu-overflowedIcon","fa fa-ellipsis-h")}),maxCount:lme||vme?INVALIDATE:gme||RESPONSIVE,component:yme||"ul",style:Sme,overflowedIndicatorPopupClassName:_me,suffix:$me||null,itemWidth:Cme||null,selectedKeys:Ime??[],defaultOpenKeys:Dme?void 0:Pme,openKeys:Dme?void 0:Mme,onClick:this.handleItemClick},this.renderMenuContent(Nme)))},eme.defaultProps={collapsed:!1,themeColor:"light",stacked:!0,mode:"inline",direction:"ltr",prefix:"",triggerSubMenuAction:"hover",inlineIndent:15,popOverContainer:function(){return document.body},renderLink:function($P){return{pathname:$P.path}},isActive:function($P,tme){var ame=$P.path,nme=location.pathname===ame;return!!nme},isOpen:function($P){return $P.children?$P.children.some(function(tme){return tme.open}):!1}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleItemClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubMenuTitleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleToggleExpand",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderExpandIcon",null),eme}(React__default.Component),Menu$1=themeable(Menu),OverflowTpl=function(x_){var eme=x_.classnames,$P=x_.children,tme=x_.className,ame=x_.targetSelector,nme=x_.tooltip,rme=x_.inline,ime=rme===void 0?!0:rme,ome=__read$3(reactExports.useState(!1),2),lme=ome[0],sme=ome[1],cme=__read$3(reactExports.useState(""),2),dme=cme[0],ume=cme[1],fme=reactExports.useRef(null),pme=nme?typeof nme=="string"?{content:nme}:isObject$8(nme)?nme:void 0:typeof $P=="string"?{content:$P}:void 0,hme=dme&&(!pme||(pme==null?void 0:pme.content)==null)?__assign$3(__assign$3({},pme),{content:dme}):pme,bme=reactExports.useCallback(function($me){sme($me?$me.scrollWidth>$me.clientWidth||$me.scrollHeight>$me.scrollHeight:!1)},[fme.current]),mme=reactExports.useCallback(function($me){var Cme=ame?document.querySelector(ame):$me==null?void 0:$me[0].target;bme(Cme),Cme!=null&&Cme.textContent&&typeof Cme.textContent=="string"&&(!pme||(pme==null?void 0:pme.content)==null)&&ume(Cme.textContent)},[ame]),vme=reactExports.useCallback(function($me){var Cme=ame?document.querySelector(ame):$me==null?void 0:$me[0].target;bme(Cme),Cme!=null&&Cme.textContent&&typeof Cme.textContent=="string"&&(!pme||!(pme!=null&&pme.content)==null)&&ume(Cme.textContent)},[ame]);reactExports.useEffect(function(){var $me=fme.current instanceof React__default.Component?reactDomExports.findDOMNode(fme.current):fme.current;if($me){var Cme=new MutationObserver(mme);return Cme.observe($me,{childList:!0,subtree:!0,characterDataOldValue:!0,characterData:!0}),function(){return Cme.disconnect()}}},[fme.current]),reactExports.useEffect(function(){var $me=fme.current instanceof React__default.Component?reactDomExports.findDOMNode(fme.current):fme.current;if($me){var Cme=new ResizeObserver(vme);return Cme.observe($me),function(){return Cme.disconnect()}}},[fme.current]);var gme=ime!==!1?"span":"div",yme=lme&&hme,_me=React__default.isValidElement($P)?React__default.cloneElement($P,{ref:fme}):jsx(gme,{ref:fme,className:eme("OverflowTpl",tme,{"OverflowTpl--with-tooltip":yme}),children:$P});return yme?jsx(TooltipWrapper$1,{...__assign$3({},omit$1(x_,["className","inline","targetSelector","children"]),{tooltip:hme}),children:_me}):_me};OverflowTpl.defaultProps={inline:!0};var OverflowTpl$1=themeable(OverflowTpl);function _classCallCheck$c(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _defineProperties(x_,eme){for(var $P=0;$P<eme.length;$P++){var tme=eme[$P];tme.enumerable=tme.enumerable||!1,tme.configurable=!0,"value"in tme&&(tme.writable=!0),Object.defineProperty(x_,tme.key,tme)}}function _createClass$a(x_,eme,$P){return eme&&_defineProperties(x_.prototype,eme),x_}var isMobile=/Android|iPhone|iPad|Mobile/i.test(navigator.userAgent),SmoothSignature=function(){function x_(eme,$P){var tme=this;_classCallCheck$c(this,x_),this.canvas={},this.ctx={},this.width=320,this.height=200,this.scale=window.devicePixelRatio||1,this.color="black",this.bgColor="",this.canDraw=!1,this.openSmooth=!0,this.minWidth=2,this.maxWidth=6,this.minSpeed=1.5,this.maxWidthDiffRate=20,this.points=[],this.canAddHistory=!0,this.historyList=[],this.maxHistoryLength=20,this.onStart=function(){},this.onEnd=function(){},this.addListener=function(){tme.removeListener(),tme.canvas.style.touchAction="none",isMobile&&("ontouchstart"in window||navigator.maxTouchPoints)?(tme.canvas.addEventListener("touchstart",tme.onDrawStart,{passive:!1}),tme.canvas.addEventListener("touchmove",tme.onDrawMove,{passive:!1}),document.addEventListener("touchcancel",tme.onDrawEnd,{passive:!1}),document.addEventListener("touchend",tme.onDrawEnd,{passive:!1})):(tme.canvas.addEventListener("mousedown",tme.onDrawStart),tme.canvas.addEventListener("mousemove",tme.onDrawMove),document.addEventListener("mouseup",tme.onDrawEnd))},this.removeListener=function(){tme.canvas.style.touchAction="auto",tme.canvas.removeEventListener("touchstart",tme.onDrawStart),tme.canvas.removeEventListener("touchmove",tme.onDrawMove),document.removeEventListener("touchend",tme.onDrawEnd),document.removeEventListener("touchcancel",tme.onDrawEnd),tme.canvas.removeEventListener("mousedown",tme.onDrawStart),tme.canvas.removeEventListener("mousemove",tme.onDrawMove),document.removeEventListener("mouseup",tme.onDrawEnd)},this.onDrawStart=function(ame){ame.preventDefault(),tme.canDraw=!0,tme.canAddHistory=!0,tme.ctx.strokeStyle=tme.color,tme.initPoint(ame),tme.onStart&&tme.onStart(ame)},this.onDrawMove=function(ame){if(ame.preventDefault(),!!tme.canDraw&&(tme.initPoint(ame),!(tme.points.length<2))){tme.addHistory();var nme=tme.points.slice(-1)[0],rme=tme.points.slice(-2,-1)[0];window.requestAnimationFrame?window.requestAnimationFrame(function(){return tme.onDraw(rme,nme)}):tme.onDraw(rme,nme)}},this.onDraw=function(ame,nme){tme.openSmooth?tme.drawSmoothLine(ame,nme):tme.drawNoSmoothLine(ame,nme)},this.onDrawEnd=function(ame){tme.canDraw&&(tme.canDraw=!1,tme.canAddHistory=!0,tme.points=[],tme.onEnd&&tme.onEnd(ame))},this.getLineWidth=function(ame){var nme=tme.minSpeed>10?10:tme.minSpeed<1?1:tme.minSpeed,rme=(tme.maxWidth-tme.minWidth)*ame/nme,ime=Math.max(tme.maxWidth-rme,tme.minWidth);return Math.min(ime,tme.maxWidth)},this.getRadianData=function(ame,nme,rme,ime){var ome=rme-ame,lme=ime-nme;if(ome===0)return{val:0,pos:-1};if(lme===0)return{val:0,pos:1};var sme=Math.abs(Math.atan(lme/ome));return rme>ame&&ime<nme||rme<ame&&ime>nme?{val:sme,pos:1}:{val:sme,pos:-1}},this.getRadianPoints=function(ame,nme,rme,ime){if(ame.val===0)return ame.pos===1?[{x:nme,y:rme+ime},{x:nme,y:rme-ime}]:[{y:rme,x:nme+ime},{y:rme,x:nme-ime}];var ome=Math.sin(ame.val)*ime,lme=Math.cos(ame.val)*ime;return ame.pos===1?[{x:nme+ome,y:rme+lme},{x:nme-ome,y:rme-lme}]:[{x:nme+ome,y:rme-lme},{x:nme-ome,y:rme+lme}]},this.initPoint=function(ame){var nme=Date.now(),rme=tme.points.slice(-1)[0];if(!(rme&&rme.t===nme)){var ime=tme.canvas.getBoundingClientRect(),ome=ame.touches&&ame.touches[0]||ame,lme=ome.clientX-ime.left,sme=ome.clientY-ime.top;if(!(rme&&rme.x===lme&&rme.y===sme)){var cme={x:lme,y:sme,t:nme};if(tme.openSmooth&&rme){var dme=tme.points.slice(-2,-1)[0];if(cme.distance=Math.sqrt(Math.pow(cme.x-rme.x,2)+Math.pow(cme.y-rme.y,2)),cme.speed=cme.distance/(cme.t-rme.t||.1),cme.lineWidth=tme.getLineWidth(cme.speed),dme&&dme.lineWidth&&rme.lineWidth){var ume=(cme.lineWidth-rme.lineWidth)/rme.lineWidth,fme=tme.maxWidthDiffRate/100;if(fme=fme>1?1:fme<.01?.01:fme,Math.abs(ume)>fme){var pme=ume>0?fme:-fme;cme.lineWidth=rme.lineWidth*(1+pme)}}}tme.points.push(cme),tme.points=tme.points.slice(-3)}}},this.drawSmoothLine=function(ame,nme){var rme=nme.x-ame.x,ime=nme.y-ame.y;if(Math.abs(rme)+Math.abs(ime)<=tme.scale?(nme.lastX1=nme.lastX2=ame.x+rme*.5,nme.lastY1=nme.lastY2=ame.y+ime*.5):(nme.lastX1=ame.x+rme*.3,nme.lastY1=ame.y+ime*.3,nme.lastX2=ame.x+rme*.7,nme.lastY2=ame.y+ime*.7),nme.perLineWidth=(ame.lineWidth+nme.lineWidth)/2,typeof ame.lastX1=="number"){if(tme.drawCurveLine(ame.lastX2,ame.lastY2,ame.x,ame.y,nme.lastX1,nme.lastY1,nme.perLineWidth),ame.isFirstPoint||ame.lastX1===ame.lastX2&&ame.lastY1===ame.lastY2)return;var ome=tme.getRadianData(ame.lastX1,ame.lastY1,ame.lastX2,ame.lastY2),lme=tme.getRadianPoints(ome,ame.lastX1,ame.lastY1,ame.perLineWidth/2),sme=tme.getRadianPoints(ome,ame.lastX2,ame.lastY2,nme.perLineWidth/2);tme.drawTrapezoid(lme[0],sme[0],sme[1],lme[1])}else nme.isFirstPoint=!0},this.drawNoSmoothLine=function(ame,nme){nme.lastX=ame.x+(nme.x-ame.x)*.5,nme.lastY=ame.y+(nme.y-ame.y)*.5,typeof ame.lastX=="number"&&tme.drawCurveLine(ame.lastX,ame.lastY,ame.x,ame.y,nme.lastX,nme.lastY,tme.maxWidth)},this.drawCurveLine=function(ame,nme,rme,ime,ome,lme,sme){tme.ctx.lineWidth=Number(sme.toFixed(1)),tme.ctx.beginPath(),tme.ctx.moveTo(Number(ame.toFixed(1)),Number(nme.toFixed(1))),tme.ctx.quadraticCurveTo(Number(rme.toFixed(1)),Number(ime.toFixed(1)),Number(ome.toFixed(1)),Number(lme.toFixed(1))),tme.ctx.stroke()},this.drawTrapezoid=function(ame,nme,rme,ime){tme.ctx.beginPath(),tme.ctx.moveTo(Number(ame.x.toFixed(1)),Number(ame.y.toFixed(1))),tme.ctx.lineTo(Number(nme.x.toFixed(1)),Number(nme.y.toFixed(1))),tme.ctx.lineTo(Number(rme.x.toFixed(1)),Number(rme.y.toFixed(1))),tme.ctx.lineTo(Number(ime.x.toFixed(1)),Number(ime.y.toFixed(1))),tme.ctx.fillStyle=tme.color,tme.ctx.fill()},this.drawBgColor=function(){tme.bgColor&&(tme.ctx.fillStyle=tme.bgColor,tme.ctx.fillRect(0,0,tme.width,tme.height))},this.drawByImageUrl=function(ame){var nme=new Image;nme.onload=function(){tme.ctx.clearRect(0,0,tme.width,tme.height),tme.ctx.drawImage(nme,0,0,tme.width,tme.height)},nme.crossOrigin="anonymous",nme.src=ame},this.addHistory=function(){!tme.maxHistoryLength||!tme.canAddHistory||(tme.canAddHistory=!1,tme.historyList.push(tme.canvas.toDataURL()),tme.historyList=tme.historyList.slice(-tme.maxHistoryLength))},this.clear=function(){tme.ctx.clearRect(0,0,tme.width,tme.height),tme.drawBgColor(),tme.historyList.length=0},this.undo=function(){var ame=tme.historyList.splice(-1)[0];ame&&tme.drawByImageUrl(ame)},this.toDataURL=function(){var ame=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",nme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;if(tme.canvas.width===tme.width)return tme.canvas.toDataURL(ame,nme);var rme=document.createElement("canvas");rme.width=tme.width,rme.height=tme.height;var ime=rme.getContext("2d");return ime.drawImage(tme.canvas,0,0,rme.width,rme.height),rme.toDataURL(ame,nme)},this.getPNG=function(){return tme.toDataURL()},this.getJPG=function(){var ame=arguments.length>0&&arguments[0]!==void 0?arguments[0]:.8;return tme.toDataURL("image/jpeg",ame)},this.isEmpty=function(){var ame=document.createElement("canvas"),nme=ame.getContext("2d");return ame.width=tme.canvas.width,ame.height=tme.canvas.height,tme.bgColor?(nme.fillStyle=tme.bgColor,nme.fillRect(0,0,ame.width,ame.height)):tme.scale!==1&&nme.scale(tme.scale,tme.scale),ame.toDataURL()===tme.canvas.toDataURL()},this.getRotateCanvas=function(){var ame=arguments.length>0&&arguments[0]!==void 0?arguments[0]:90;ame>0?ame=ame>90?180:90:ame=ame<-90?180:-90;var nme=document.createElement("canvas"),rme=tme.width,ime=tme.height;ame===180?(nme.width=rme,nme.height=ime):(nme.width=ime,nme.height=rme);var ome=nme.getContext("2d");return ome.rotate(ame*Math.PI/180),ame===90?ome.drawImage(tme.canvas,0,-ime,rme,ime):ame===-90?ome.drawImage(tme.canvas,-rme,0,rme,ime):ame===180&&ome.drawImage(tme.canvas,-rme,-ime,rme,ime),nme},this.init(eme,$P)}return _createClass$a(x_,[{key:"init",value:function($P){var tme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$P&&(this.canvas=$P,this.ctx=$P.getContext("2d"),this.width=tme.width||$P.clientWidth||this.width,this.height=tme.height||$P.clientHeight||this.height,this.scale=tme.scale||this.scale,this.color=tme.color||this.color,this.bgColor=tme.bgColor||this.bgColor,this.openSmooth=tme.openSmooth===void 0?this.openSmooth:!!tme.openSmooth,this.minWidth=tme.minWidth||this.minWidth,this.maxWidth=tme.maxWidth||this.maxWidth,this.minSpeed=tme.minSpeed||this.minSpeed,this.maxWidthDiffRate=tme.maxWidthDiffRate||this.maxWidthDiffRate,this.maxHistoryLength=tme.maxHistoryLength||this.maxHistoryLength,this.onStart=tme.onStart,this.onEnd=tme.onEnd,this.scale>0&&(this.canvas.height=this.height*this.scale,this.canvas.width=this.width*this.scale,this.scale!==1&&(this.canvas.style.width=this.width+"px",this.canvas.style.height=this.height+"px",this.ctx.scale(this.scale,this.scale))),this.ctx.lineCap="round",this.drawBgColor(),this.addListener())}}]),x_}(),defaultLength=6;function isExist$1(x_){return x_||x_===0}var Backspace={key:"Backspace",code:8};function isUndefined$3(x_){return x_===void 0}function usePrevious(x_){var eme=reactExports.useRef();return reactExports.useEffect(function(){eme.current=x_}),eme.current}function useMergeValue(x_,eme){var $P=(eme||{}).value,tme=reactExports.useRef(!0),ame=usePrevious($P),nme=__read$3(reactExports.useState(isUndefined$3($P)?x_:$P),2),rme=nme[0],ime=nme[1];reactExports.useEffect(function(){if(tme.current){tme.current=!1;return}$P===void 0&&ame!==$P&&ime($P)},[$P]);var ome=isUndefined$3($P)?rme:$P;return[ome,ime,rme]}function useVerificationCode(x_){var eme=__read$3(useMergeValue("",x_),2),$P=eme[0],tme=eme[1],ame=x_.length&&+x_.length>0?+x_.length:defaultLength,nme=reactExports.useMemo(function(){var lme=$P?String($P).split(""):[];return new Array(ame).fill("").map(function(sme,cme){return isExist$1(lme[cme])?String(lme[cme]):""})},[$P,ame]),rme=function(){var lme,sme,cme,dme=((lme=x_.getInputRefList)===null||lme===void 0?void 0:lme.call(x_))||[];if((dme==null?void 0:dme.indexOf(document.activeElement))!==-1){var ume=nme.findIndex(function(pme){return!pme});if(ume>-1){var fme=Math.min(ume,dme.length-1);(cme=(sme=dme[fme])===null||sme===void 0?void 0:sme.focus)===null||cme===void 0||cme.call(sme)}}};reactExports.useEffect(function(){var lme,sme,cme;if(rme(),nme.length===ame&&nme.every(function(ume){return!!ume})){var dme=((lme=x_.getInputRefList)===null||lme===void 0?void 0:lme.call(x_))||[];(cme=(sme=dme[dme.length-1])===null||sme===void 0?void 0:sme.blur)===null||cme===void 0||cme.call(sme)}},[JSON.stringify(nme)]);var ime=function(lme){var sme,cme;isEqualWith$1(lme,$P)||(tme(lme),(sme=x_.onChange)===null||sme===void 0||sme.call(x_,lme),lme.length===ame&&((cme=x_.onFinish)===null||cme===void 0||cme.call(x_,lme)))},ome=function(lme,sme){lme.preventDefault();var cme=lme.clipboardData,dme=cme.getData("text");dme&&ime(nme.slice(0,sme).concat(dme.split("")).join(""))};return{value:$P,filledValue:nme,setValue:ime,getInputProps:function(lme){var sme=String(nme[lme]);return{key:lme,value:sme,onClick:function(cme){cme.preventDefault(),nme[lme]||rme()},onKeyDown:function(cme){var dme=cme.key;if(dme===Backspace.key){if(nme[lme+1]){cme.preventDefault();return}var ume=lme;nme[lme]||(ume-=1);var fme=__spreadArray([],__read$3(nme),!1);fme[ume]="",ime(fme.join(""))}},onChange:function(cme){var dme=(cme==null?void 0:cme.trim())||"",ume=__spreadArray([],__read$3(nme),!1);ume[lme]=dme.replace(sme,"").split("").pop()||"",ime(ume.join(""))},onPaste:function(cme){ome(cme,lme)}}}}}function VerificationCodeComponent(x_){var eme=__assign$3({length:defaultLength},x_),$P=eme.separator,tme=eme.length,ame=eme.masked,nme=eme.disabled,rme=eme.readOnly,ime=eme.classnames,ome=eme.onChange,lme=eme.onFinish,sme=eme.value,cme=eme.style,dme=React__default.useRef([]),ume=useVerificationCode({value:sme,length:tme,getInputRefList:function(){return dme.current},onChange:ome,onFinish:lme}),fme=ume.filledValue,pme=ume.getInputProps;return jsx("div",{className:ime("Verification-code"),style:cme,children:fme.map(function(hme,bme){var mme=pme(bme),vme=mme.onChange,gme=mme.onClick,yme=mme.onPaste,_me=mme.onKeyDown,$me=__rest$14(mme,["onChange","onClick","onPaste","onKeyDown"]);return jsxs(Fragment,{children:[jsx(Input,{...__assign$3({disabled:nme,readOnly:rme,ref:function(Cme){return dme.current[bme]=Cme},className:ime({"is-disabled":!!nme})},$me,{onClick:rme?void 0:gme,onPaste:rme?void 0:yme,onKeyDown:rme?void 0:_me,onChange:rme?void 0:function(Cme){var Sme=(Cme.target.value||"").trim();vme(Sme)},type:ame?"password":"text"})}),$P==null?void 0:$P({index:bme,character:hme})]})})})}var VerificationCode=themeable(VerificationCodeComponent);register("zh-CN",{"Action.countDown":"请等待 ${timeLeft} 秒","Alert.info":"系统消息","App.home":"首页","App.navigation":"导航",asc:"正序","Calendar.datepicker":"日期选择","Calendar.yearmonth":"YYYY年MM月","Calendar.year":"YYYY年","Calendar.begin":"开始","Calendar.end":"结束","Calendar.beginAndEnd":"始/终","Calendar.toast":"超出日期范围","Calendar.startPick":"开始时间","Calendar.endPick":"结束时间",Schedule:"日程",Time:"时间",Content:"内容",cancel:"取消",more:"更多","Card.dragTip":"请拖动顶部的按钮进行排序","Card.toggleDrag":"对卡片进行排序操作","City.street":"请输入街道信息",clear:"清空","ColorPicker.placeholder":"请选择颜色","SubForm.add":"新增一项",add:"新增","Combo.dragDropSort":"拖拽排序","Combo.invalidData":"数值格式不正确","Combo.maxLength":"组合表单超出{{maxLength}}个，请删除","Combo.minLength":"组合表单数量不足{{minLength}}个，请添加更多","Combo.type":"类型",confirm:"确认","Copyable.tip":"点击复制","CRUD.exportCSV":"导出 CSV","CRUD.exportExcel":"导出 Excel","CRUD.exportExcelTemplate":"导出 Excel 模板","CRUD.fetchFailed":"获取失败","CRUD.filter":"筛选","CRUD.selected":"已选{{total}}条：","CRUD.invalidArray":"data.items 必须是数组","CRUD.invalidData":"返回数据格式不正确，data 没有数据","CRUD.loadMore":"加载更多","CRUD.loadMoreDisableTip":"无数据或最后一页","CRUD.perPage":"每页显示","CRUD.stat":"{{page}}/{{lastPage}} 共：{{total}} 项","CRUD.paginationGoText":"前往","CRUD.paginationPageText":"页","PaginationWrapper.placeholder":"请配置内容","Pagination.select":"{{count}}条/页","Pagination.goto":"跳转至","Pagination.go":"前往","Pagination.totalPage":"共 {{lastPage}} 页","Pagination.totalCount":"共 {{total}} 条","Date.titleYear":"选择年","Date.titleMonth":"选择年月","Date.titleQuarter":"选择季度","Date.titleDate":"选择年月日","Date.titleTime":"选择时间","Date.daysago":"{{days}}天前","Date.dayslater":"{{days}}天后","Date.endOfMonth":"本月最后一天","Date.endOfWeek":"周日","Date.endOfLastMonth":"上月最后一天","Date.hoursago":"{{hours}}小时前","Date.hourslater":"{{hours}}小时后","Date.invalid":"日期无效","Number.invalid":"数字无效","Date.monday":"本周一","Date.monthsago":"{{months}}月前","Date.monthslater":"{{months}}月后","Date.now":"现在","Date.placeholder":"请选择日期","Date.quartersago":"{{quarters}}季度前","Date.quarterslater":"{{quarters}}季度后","Date.startOfLastMonth":"上个月第一天","Date.startOfLastQuarter":"上个季度第一天","Date.startOfMonth":"本月第一天","Date.startOfQuarter":"本季度第一天","Date.today":"今天","Date.tomorrow":"明天","Date.weeksago":"{{weeks}}周前","Date.weekslater":"{{weeks}}周后","Date.yesterday":"昨天","dateformat.year":"YYYY年","DateRange.daysago":"最近{{days}}天","DateRange.dayslater":"{{days}}天以内","DateRange.weeksago":"最近{{weeks}}周","DateRange.weekslater":"{{weeks}}周以内","DateRange.monthsago":"最近{{months}}月","DateRange.monthslater":"{{months}}月以内","DateRange.quartersago":"最近{{quarters}}季度","DateRange.quarterslater":"{{quarters}}季度以内","DateRange.yearsago":"最近{{years}}年","DateRange.yearslater":"{{years}}年以内","DateRange.hoursago":"最近{{hours}}小时","DateRange.hourslater":"{{hours}}小时以内","DateRange.1daysago":"最近1天","DateRange.1dayago":"最近1天","DateRange.7daysago":"最近7天","DateRange.30daysago":"最近30天","DateRange.90daysago":"最近90天","DateRange.lastWeek":"上周","DateRange.lastMonth":"上个月","DateRange.lastQuarter":"上个季度","DateRange.placeholder":"请选择日期范围","DateRange.thisWeek":"这个周","DateRange.thisMonth":"这个月","DateRange.thisQuarter":"这个季度","DateRange.valueConcat":" 至 ","DateTime.placeholder":"请选择日期以及时间","MonthRange.placeholder":"请选择月份范围","QuarterRange.placeholder":"请选择季度范围","YearRange.placeholder":"请选择年份范围","DateRange.thisYear":"今年","DateRange.lastYear":"去年",delete:"删除",deleteConfirm:"确认要删除？",deleteFailed:"删除失败",desc:"降序","Dialog.close":"关闭","Dialog.title":"弹框","Embed.invalidRoot":"选择器不对，页面上没有此元素","Embed.downloading":"文件即将开始下载","Excel.placeholder":"拖拽 Excel 到这，或点击上传","Excel.parsed":"已解析 {{filename}}",fetchFailed:"初始化失败","File.continueAdd":"继续添加","File.downloadTpl":"下载模板","File.dragDrop":"将文件拖到此处，或","File.clickUpload":"点击上传","File.helpText":"帮助文档","File.errorRetry":"文件上传失败，请重试","File.failed":"失败文件","File.invalidType":"{{files}} 不符合类型的 {{accept}} 的设定，请仔细检查","File.maxLength":"最多上传 {{maxLength}} 个文件","File.maxSize":"{{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} 的限制","File.imageAfterCrop":"裁剪后的图片","File.pause":"暂停上传","File.repick":"重新选择","File.result":"已成功上传 {{uploaded}} 个文件，{{failed}} 个文件上传失败，","File.retry":"重试上传","File.sizeLimit":"文件大小不超过 {{maxSize}}","File.start":"开始上传","File.upload":"文件上传","File.uploadFailed":"接口返回错误，请仔细检查","File.uploading":"上传中...","FormItem.autoFillLoadFailed":"接口返回错误，请仔细检查","FormItem.autoFillSuggest":"参照录入数据","Form.loadOptionsFailed":"加载选项失败，原因：{{reason}}","Form.submit":"提交","Form.title":"表单","Form.unique":"当前值不唯一","Form.validateFailed":"依赖的部分字段没有通过验证","Form.nestedError":"表单不要直接嵌套在表单下面","Form.rules.message":"表单项联合校验失败","Iframe.invalid":"iframe 地址不合法","Iframe.invalidProtocol":"无法加载 http 协议的 iframe","Image.dragTip":"拖拽排序","Image.upload":"图片上传","Image.errorRetry":"上传失败，请重试","Image.configError":"图片多选配置和裁剪配置只能设置一个","Image.crop":"裁剪图片","Image.dragDrop":"将图片拖拽到此处","Image.height":"高度 {{height}}px","Image.limitRatio":"请上传尺寸比率为 {{ratio}} 的图片","Image.pasteTip":"可以粘贴剪切板中的图片","Image.placeholder":"点击选择图片或拖拽图片到这里","Image.size":"尺寸（{{width}} x {{height}}）","Image.sizeMax":"请上传不要大于{{info}}的图片","Image.sizeMin":"请上传不要小于{{info}}的图片","Image.sizeNotEqual":"请上传{{info}}的图片","Image.width":"宽度 {{width}}px","Image.zoomIn":"查看大图","Image.limitMax":"上传图片大于{{info}},请检查图片尺寸","Image.limitMin":"上传图片小于{{info}},请检查图片尺寸","Log.mustHaveSource":"需要配置 Source","Log.showLineNumber":"显示行数","Log.notShowLineNumber":"不现实行数","Log.expand":"展开工具栏","Log.collapse":"收起工具栏",link:"链接",loading:"加载中",loadingFailed:"加载失败","LocationPicker.placeholder":"请选择位置","LocationPicker.getLocation":"点击获取位置信息","Month.placeholder":"请选择月份","Nav.sourceError":"获取链接错误",networkError:"网络错误，可能是未配置跨域 CORS",noResult:"未找到任何结果","NumberInput.placeholder":"请输入数字","Options.addPlaceholder":"请输入名称","Options.deleteAPI":"必须设置 deleteAPI","Options.editLabel":"编辑{{label}}","Options.label":"选项","Options.createFailed":"新增失败，请仔细检查","Options.retry":"加载失败「{{reason}}」，点击重试","placeholder.empty":"<空>","placeholder.enter":"请输入","placeholder.noData":"暂无数据","placeholder.noOption":"暂无选项","placeholder.selectData":"请先选择数据","Quarter.placeholder":"请选择季度","Repeat.pre":"每",reset:"重置",save:"保存",saveFailed:"保存失败",saveSuccess:"保存成功",search:"搜索",searchHistory:"搜索历史",searchResult:"搜索结果",stop:"停止","Checkboxes.selectAll":"全选/不选","Select.checkAll":"全选","Select.clear":"移除","Select.edit":"编辑","Select.upload":"重新上传","Select.clearAll":"移除所有","Select.createLabel":"新增选项","Select.placeholder":"请选择","Select.searchPromptText":"搜索","Select.selected":"已选择",sort:"排序","SubForm.button":"设置","SubForm.editDetail":"编辑详情","System.error":"系统错误","System.notify":"系统消息","System.copy":"内容已复制到粘贴板","System.requestError":"接口报错：","System.requestErrorStatus":"接口出错，状态码是：","Table.addRow":"新增一行","Table.subAddRow":"新增孩子","Table.copyRow":"复制一行","Table.columnsVisibility":"点击选择显示列","Table.deleteRow":"删除当前行","Table.discard":"放弃","Table.dragTip":"请拖动左边的按钮进行排序","Table.editing":"请先处理表格编辑项","Table.editRow":"编辑当前行","Table.modified":"当前有 {{modified}} 条记录修改但没有提交，你可以：","Table.moved":"当前有 {{moved}} 条记录修改了顺序但没有提交，你可以：","Table.operation":"操作","Table.playload":"action 上请配置 payload, 否则不清楚要删除哪个","Table.startSort":"点击开始排序","Table.valueField":"请配置 valueField","Table.index":"序号","Table.add":"新增","Table.addButtonDisabledTip":"内容编辑中，请先提交后新建选项","Table.toggleColumn":"显示列","Table.searchFields":"设置查询字段","Tag.placeholder":"请输入/选择标签","Tag.tip":"最近使用的标签","Text.add":"新增：{{label}}","Time.placeholder":"请选择时间","Transfer.configError":"配置错误，选项无法与左侧选项对应","Transfer.refreshIcon":"点击刷新重新加载","Transfer.searchKeyword":"请输入关键字","Transfer.available":"可选项","Transfer.selectd":"已选项","Transfer.selectFromLeft":"请选择左侧数据","Tree.addChild":"添加子节点","Tree.addRoot":"添加一级节点","Tree.editNode":"编辑该节点","Tree.invalidArray":"data.options、data.items 或data必须是数组","Tree.removeNode":"移除该节点","Tree.root":"顶级","validate.equals":"输入的数据与 $1 不一致","validate.equalsField":"输入的数据与 $1 值不一致","validate.gt":"请输入大于 $1 的值","validate.isAlpha":"请输入字母","validate.isAlphanumeric":"请输入字母或者数字","validate.isEmail":"Email 格式不正确","validate.isFloat":"请输入浮点型数值","validate.isId":"请输入合法的身份证号","validate.isInt":"请输入整型数字","validate.isJson":"JSON 格式不正确","validate.isLength":"请输入长度为 $1 的内容","validate.isNumeric":"请输入数字","validate.isPhoneNumber":"请输入合法的手机号码","validate.isRequired":"这是必填项","validate.isTelNumber":"请输入合法的电话号码","validate.isUrl":"URL 格式不正确","validate.isUrlPath":"只能输入字母、数字、`-` 和 `_`.","validate.isWords":"请输入单词","validate.isZipcode":"请输入合法的邮编地址","validate.lt":"请输入小于 $1 的值","validate.matchRegexp":"格式不正确, 请输入符合规则为 `${1|raw}` 的内容。","validate.maximum":"当前输入值超出最大值 $1","validate.maxLength":"请控制内容长度, 不要输入 $1 个以上字符","validate.array.maxLength":"请控制成员个数, 不能超过 $1 个","validate.minimum":"当前输入值低于最小值 $1","validate.minLength":"请输入更多的内容，至少输入 $1 个字符。","validate.array.minLength":"请添加更多的成员，成员数至少 $1 个。","validate.notEmptyString":"请不要全输入空白字符","validate.isDateTimeSame":"当前日期值不合法，请输入和 $1 相同的日期值","validate.isDateTimeBefore":"当前日期值不合法，请输入 $1 之前的日期值","validate.isDateTimeAfter":"当前日期值不合法，请输入 $1 之后的日期值","validate.isDateTimeSameOrBefore":"当前日期值不合法，请输入和 $1 相同或之前的日期值","validate.isDateTimeSameOrAfter":"当前日期值不合法，请输入和 $1 相同或之后的日期值","validate.isDateTimeBetween":"当前日期值不合法，请输入 $1 和 $2 之间的日期值","validate.isTimeSame":"当前时间值不合法，请输入和 $1 相同的时间值","validate.isTimeBefore":"当前时间值不合法，请输入 $1 之前的时间值","validate.isTimeAfter":"当前时间值不合法，请输入 $1 之后的时间值","validate.isTimeSameOrBefore":"当前时间值不合法，请输入和 $1 相同或之前的时间值","validate.isTimeSameOrAfter":"当前时间值不合法，请输入和 $1 相同或之后的时间值","validate.isTimeBetween":"当前时间值不合法，请输入 $1 和 $2 之间的时间值","validate.isVariableName":"请输入合法的变量名",validateFailed:"表单验证失败","Wizard.configError":"配置错误","Wizard.finish":"完成","Wizard.next":"下一步","Wizard.prev":"上一步","Wizard.saveAndNext":"保存并下一步","year-to-year":"{{from}} 年 - {{to}} 年","Year.placeholder":"请选择年",reload:"刷新",rotate:"旋转","rotate.left":"向左旋转","rotate.right":"向右旋转",zoomIn:"放大",zoomOut:"缩小","scale.origin":"原始尺寸","Editor.fullscreen":"全屏","Editor.exitFullscreen":"退出全屏","Condition.not":"非","Condition.and":"且","Condition.or":"或","Condition.collapse":"展开全部","Condition.add_cond":"添加条件","Condition.add_cond_group":"添加条件组","Condition.delete_cond_group":"删除组","Condition.equal":"等于","Condition.not_equal":"不等于","Condition.less":"小于","Condition.less_or_equal":"小于或等于","Condition.greater":"大于","Condition.greater_or_equal":"大于或等于","Condition.between":"属于范围","Condition.not_between":"不属于范围","Condition.is_empty":"为空","Condition.is_not_empty":"不为空","Condition.like":"模糊匹配","Condition.not_like":"不匹配","Condition.starts_with":"匹配开头","Condition.ends_with":"匹配结尾","Condition.select_equals":"等于","Condition.select_not_equals":"不等于","Condition.select_any_in":"包含","Condition.select_not_any_in":"不包含","Condition.placeholder":"请输入文本","Condition.cond_placeholder":"请选择操作","Condition.field_placeholder":"请选择字段","Condition.blank":"空","Condition.expression":"表达式","Condition.formula_placeholder":"请输入公式","Condition.fun_error":"方法未定义","Condition.configured":"已配置","Condition.isRequired":"条件不可为空","InputTable.uniqueError":"列`{{label}}`没有通过唯一验证","Timeline.collapseText":"收起","Timeline.expandText":"展开",collapse:"收起",expand:"展开","FormulaEditor.btnLabel":"公式编辑","FormulaEditor.title":"公式编辑器","FormulaEditor.run":"运行","FormulaEditor.sourceMode":"源码模式","FormulaEditor.runContext":"上下文数据","FormulaEditor.runResult":"运行结果","FormulaEditor.toggleAll":"展开全部","FormulaEditor.variable":"变量","FormulaEditor.function":"函数","FormulaEditor.invalidData":"公式值校验错误，错误的位置/原因是 {{err}}","FormulaEditor.invalidValue":"值校验错误，错误的原因是值格式错误","pullRefresh.normalText":"","pullRefresh.pullingText":"下拉即可刷新...","pullRefresh.loosingText":"释放即可刷新...","pullRefresh.loadingText":"加载中...","pullRefresh.successText":"加载成功","pullRefresh.completedText":"没有更多了","pullRefresh.crud2NormalText":"上划加载更多","pullRefresh.crud2PullingText":"上划加载更多","pullRefresh.crud2LoosingText":"释放即可加载","Picker.placeholder":"请点击右侧的图标","UserSelect.edit":"编辑","UserSelect.save":"保存","UserSelect.resultSort":"选择结果排序","UserSelect.selected":"已选","UserSelect.clear":"清空","UserSelect.sure":"确定","SchemaType.string":"字符串","SchemaType.number":"数字","SchemaType.integer":"整数","SchemaType.object":"对象","SchemaType.array":"数组","SchemaType.boolean":"布尔","SchemaType.null":"Null","SchemaType.any":"任意","JSONSchema.type":"字段类型","JSONSchema.required":"是否必填","JSONSchema.title":"名称","JSONSchema.default":"默认值","JSONSchema.key":"字段名","JSONSchema.description":"描述","JSONSchema.add_prop":"添加属性","JSONSchema.array_items":"成员类型","JSONSchema.members":"成员","JSONSchema.key_duplicated":"字段名已经存在","JSONSchema.key_invalid":"字段名格式错误",Required:"必填",TimeNow:"此刻","IconSelect.all":"全部","IconSelect.choice":"图标选择","Steps.step":"第 {{index}} 步","FormulaInput.True":"真","FormulaInput.False":"假","Signature.clear":"清空","Signature.undo":"撤销","Signature.confirm":"确认","Signature.cancel":"取消","Signature.embedLabel":"点击签名","QRCode.tooLong":"二维码值过长，请设置{{max}}个字符以下的文本"});register("en-US",{"Action.countDown":"Wait for ${timeLeft}s","Alert.info":"System Info","App.home":"Home","App.navigation":"Navigation",asc:"Asc","Calendar.datepicker":"Date Picker","Calendar.yearmonth":"YYYY MM","Calendar.year":"YYYY","Calendar.begin":"begin","Calendar.end":"end","Calendar.beginAndEnd":"b/e","Calendar.toast":"Out of date range","Calendar.startPick":"Select start time","Calendar.endPick":"Select end time",cancel:"Cancel","Card.dragTip":"Drag top button to sort","Card.toggleDrag":"Toggle drag to sort","City.street":"Enter street info",clear:"Clear",more:"More","ColorPicker.placeholder":"Select color","SubForm.add":"New",add:"New","Combo.dragDropSort":"Drag to sort","Combo.invalidData":"invalid data, please remove","Combo.maxLength":"Maximum item ia {{MaxLength}}}. Please delete some","Combo.minLength":"A least {{minLength}} item. Please add more","Combo.type":"Type",confirm:"Confirm","Copyable.tip":"Copy","CRUD.exportCSV":"Export CSV","CRUD.exportExcel":"Export Excel","CRUD.exportExcelTemplate":"Export Excel Template","CRUD.fetchFailed":"Fetch failed","CRUD.filter":"Filter","CRUD.selected":"selected {{total}} items: ","CRUD.invalidArray":"data.items must be an array","CRUD.invalidData":"data is empty","CRUD.loadMore":"Load more","CRUD.loadMoreDisableTip":"No data or last page","CRUD.perPage":"Per page","CRUD.stat":"{{page}} of {{lastPage}} total: {{total}}.","CRUD.paginationGoText":"Go to","CRUD.paginationPageText":"page","PaginationWrapper.placeholder":"please config body","Pagination.select":"{{count}} items/page","Pagination.goto":"goto","Pagination.go":"GO","Pagination.totalPage":"total {{lastPage}} pages","Pagination.totalCount":"total {{total}} items","Date.titleYear":"select year","Date.titleMonth":"select month and year","Date.titleQuarter":"select quarter","Date.titleDate":"select month, year and day","Date.titleTime":"select time","Date.daysago":"{{days}} day(s) ago","Date.dayslater":"{{days}} day(s) later","Date.endOfMonth":"last day of the month","Date.endOfLastMonth":"last day of last month","Date.endOfWeek":"Saturday","Date.hoursago":"{{hours}} hour(s) ago","Date.hourslater":"{{hours}} hour(s) later","Date.invalid":"Invalid date","Number.invalid":"Invalid number","Date.monday":"Monday","Date.monthsago":"{{months}} month(s) ago","Date.monthslater":"{{months}} month(s) later","Date.now":"Now","Date.placeholder":"Select Date","Date.quartersago":"{{quarters}} quarter(s) ago","Date.quarterslater":"{{quarters}} quarter(s) later","Date.startOfLastMonth":"First day of the last month","Date.startOfLastQuarter":"First day of the last quarter","Date.startOfMonth":"First day of the month","Date.startOfQuarter":"First day of the quarter","Date.today":"Today","Date.tomorrow":"Tomorrow","Date.weeksago":"{{weeks}} week(s) ago","Date.weekslater":"{{weeks}} week(s) later","Date.yesterday":"Yesterday","dateformat.year":"YYYY","DateRange.daysago":"Last {{days}} day(s)","DateRange.dayslater":"Within {{days}} day(s)","DateRange.weeksago":"Last {{weeks}} week(s)","DateRange.weekslater":"Within {{weeks}} week(s)","DateRange.monthsago":"Last {{months}} month(s)","DateRange.monthslater":"Within {{months}} month(s)","DateRange.quartersago":"Last {{quarters}} quarter(s)","DateRange.quarterslater":"Within {{quarters}} quarter(s)","DateRange.yearsago":"Last {{years}} year(s)","DateRange.yearslater":"Within {{years}} year(s)","DateRange.hoursago":"Last {{hours}} hour(s)","DateRange.hourslater":"Within {{hours}} hour(s)","DateRange.1dayago":"1 day ago","DateRange.1daysago":"1 day ago","DateRange.7daysago":"7 days ago","DateRange.30daysago":"30 days ago","DateRange.90daysago":"90 days ago","DateRange.lastMonth":"Last month","DateRange.lastWeek":"Last week","DateRange.lastQuarter":"Last quarter","DateRange.placeholder":"Select a Date range","YearRange.placeholder":"Select a Year range","DateRange.thisWeek":"This Week","DateRange.thisMonth":"This month","DateRange.thisQuarter":"This quarter","DateRange.thisYear":"This year","DateRange.lastYear":"Last year","DateRange.valueConcat":" to ","DateTime.placeholder":"Select Datetime",delete:"Delete",deleteConfirm:"Are your sure to delete?",deleteFailed:"Delete failed",desc:"Desc","Dialog.close":"Close","Dialog.title":"Title","Embed.invalidRoot":"Invalid root selector","Embed.downloading":"Start downloading","Excel.placeholder":"Drag 'n' drop excel here, or click to select","Excel.parsed":"{{filename}} Parsed",fetchFailed:"Fetch api failed","File.continueAdd":"Continue add","File.downloadTpl":"Download template","File.dragDrop":"Drag 'n' drop some files here or","File.clickUpload":"click here to upload","File.helpText":"Help documentation","File.errorRetry":"File upload failed, please try again","File.failed":"Failed files.","File.invalidType":"{{files}} does not match type `{{accept}}`","File.maxLength":"The maximum limit is {{maxLength}}","File.maxSize":"{{filename}} you selected exceeds the maximum limit of {{maxSize}}","File.pause":"Pause uplaod","File.repick":"Repick","File.result":"Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files","File.retry":"Retry","File.sizeLimit":"The maximum file size is {{maxSize}}","File.start":"Start upload","File.upload":"Upload","File.uploadFailed":"return data of udpload api is empty","File.uploading":"Uploading","FormItem.autoFillLoadFailed":"return data of autoUpdate api is error","FormItem.autoFillSuggest":"Reference data entry","Form.loadOptionsFailed":"Failed to load options because: {{reason}}","Form.submit":"Submit","Form.title":"Form","Form.unique":"Current value is not unique","Form.validateFailed":"Form input validation failed","Form.nestedError":"Form cannot appear as a descendant of form","Form.rules.message":"The joint verification of form items failed","File.imageAfterCrop":"Cropped image","Iframe.invalid":"Invalid iframe url","Iframe.invalidProtocol":"Can not use http url iframe in https","Image.dragTip":"Drag to sort","Image.upload":"Upload image","Image.errorRetry":"upload failed, please try again","Image.configError":"Can only set one of crop or multiple","Image.crop":"Crop image","Image.dragDrop":"Drag 'n' drop some photos here","Image.height":"height: {{height}}px","Image.limitMax":"Minimum image size is {{info}}","Image.limitMin":"Maximum image size is {{info}}","Image.limitRatio":"Please upload image with the size ratio of {{ration}}","Image.pasteTip":"You can paste image from the clipboard","Image.placeholder":"Click to select image or drag into this area","Image.size":"size: ({{width}}px x {{height}}px)","Image.sizeNotEqual":"The image you selected does not meet the size requirements {{info}}","Image.width":"width: {{width}}px","Image.zoomIn":"Zoom In","Log.mustHaveSource":"Must have source in config","Log.showLineNumber":"Display line number","Log.notShowLineNumber":"Hide line number","Log.expand":"Expand Operation","Log.collapse":"Collapse Operation",link:"Link",loading:"Loading",loadingFailed:"Loading failed","LocationPicker.placeholder":"Pick location","LocationPicker.getLocation":"Click to obtain location information","Month.placeholder":"Select a month","Nav.sourceError":"Fetch link error",networkError:"Network error or missing CORS configuration",noResult:"No Result","NumberInput.placeholder":"Please enter a number","Options.addPlaceholder":"Please enter a name","Options.deleteAPI":"Must have deleteAPI","Options.editLabel":"Edit {{label}}","Options.label":"option","Options.createFailed":"create failed, please check","Options.retry":"Loading failed '{{reason}}', click retry","placeholder.empty":"<Empty>","placeholder.enter":"Enter","placeholder.noData":"No data","placeholder.noOption":"No option","placeholder.selectData":"Select data","Quarter.placeholder":"Select a quarter","Repeat.pre":"Per",reset:"Reset",save:"Save",saveFailed:"Save failed",saveSuccess:"Saved successfully",search:"Search",searchHistory:"Search History",searchResult:"Search result","Checkboxes.selectAll":"Select/Deselect All","Select.checkAll":"Check all","Select.clear":"Clear","Select.edit":"Edit","Select.upload":"Re upload","Select.clearAll":"Clear all","Select.createLabel":"New option","Select.placeholder":"Select","Select.searchPromptText":"Input to search","Select.selected":"Selected",sort:"Sort",stop:"Stop","SubForm.button":"Config","SubForm.editDetail":"Edit Detail","System.error":"System error","System.notify":"System notify","System.copy":"Content copied","System.requestError":"Request error: ","System.requestErrorStatus":"Request error, status code: ","Table.addRow":"Add row","Table.subAddRow":"Add sub row","Table.copyRow":"Copy row","Table.columnsVisibility":"Click to control columns visibility","Table.deleteRow":"Delete current row","Table.discard":"Discard","Table.dragTip":"Drag the button on the left to sort","Table.editing":"You should finished editing","Table.editRow":"Edit current row","Table.modified":"There are {{modified}} records have been modified, you can:","Table.moved":"There are {{moved}} records changed the order, you can:","Table.operation":"Operation","Table.playload":"Must have playload","Table.startSort":"Click to start sorting","Table.valueField":"Must have valueField","Table.index":"Index","Table.add":"Add","Table.addButtonDisabledTip":"In content editing, please submit first and then create a new option","Table.toggleColumn":"Display columns","Table.searchFields":"Set query fields","Tag.placeholder":"No tag yet","Tag.tip":"Recently used tag","Text.add":"New {{label}}","Time.placeholder":"Select Time","Transfer.configError":"Config error","Transfer.refreshIcon":"Click to refresh","Transfer.searchKeyword":"Enter keywords","Transfer.available":"Available","Transfer.selectd":"Selected","Transfer.selectFromLeft":"Select from the left","Tree.addChild":"Add child","Tree.addRoot":"Add root node","Tree.editNode":"Edit this node","Tree.invalidArray":"Data.options, data.items, or data must be arrays","Tree.removeNode":"Remove this node","Tree.root":"Root","validate.equals":"value must be $1","validate.equalsField":"value must be $1","validate.gt":"Please enter a value greater than $1","validate.isAlpha":"Please enter letters","validate.isAlphanumeric":"Please enter letters or numbers","validate.isEmail":"Email format is incorrect","validate.isFloat":"Please enter a floating point value","validate.isId":"invalid ID Card number","validate.isInt":"Please enter an integer number","validate.isJson":"invalid JSON format.","validate.isLength":"Please make sure the length of contents is $1","validate.isNumeric":"Please enter a number","validate.isPhoneNumber":"invalid phone number","validate.isRequired":"This is required","validate.isTelNumber":"invalid telephone number","validate.isUrl":"Incorrect URL format","validate.isUrlPath":"You can only enter letters, numbers, `-` and`_` .","validate.isWords":"Please enter word","validate.isZipcode":"invalid postal address","validate.lt":"Please enter a value less than $1","validate.matchRegexp":"The format is not correct. Please enter the content with the rule `${1| raw}`.","validate.maximum":"The input value exceeds the maximum value of $1","validate.maxLength":"Please control the content length, do not enter more than $1 letters","validate.minimum":"The input value is lower than the minimum value of $1","validate.minLength":"Please enter more, at least $1 characters.","validate.array.minLength":"Please add more members, at least $1 members","validate.array.maxLength":"Please control the number of members, which cannot exceed $1","validate.isVariableName":"Please enter a valid variable name","validate.notEmptyString":"Please do not enter all blank characters","validate.isDateTimeSame":"The current date value is invalid, please enter the same date value as $1","validate.isDateTimeBefore":"The current date value is invalid, please enter a date value before $1","validate.isDateTimeAfter":"The current date value is invalid, please enter a date value after $1","validate.isDateTimeSameOrBefore":"The current date value is invalid, please enter a date value that is the same as or before $1","validate.isDateTimeSameOrAfter":"The current date value is invalid, please enter a date value that is the same as or after $1","validate.isDateTimeBetween":"The current date value is invalid, please enter a date value between $1 and $2","validate.isTimeSame":"The current time value is invalid, please enter the same time value as $1","validate.isTimeBefore":"The current time value is invalid, please enter a time value before $1","validate.isTimeAfter":"The current time value is invalid, please enter a time value after $1","validate.isTimeSameOrBefore":"The current time value is invalid, please enter a time value that is the same as or before $1","validate.isTimeSameOrAfter":"The current time value is invalid, please enter a time value that is the same as or after $1","validate.isTimeBetween":"The current time value is invalid, please enter a time value between $1 and $2",validateFailed:"Validate failed","Wizard.configError":"Config error","Wizard.finish":"Finish","Wizard.next":"Next","Wizard.prev":"Prev","Wizard.saveAndNext":"Save & Next","year-to-year":"{{from}} - {{to}}","Year.placeholder":"Select a Year",reload:"Reload",rotate:"Rotate","rotate.left":"Rotate left","rotate.right":"Rotate right",zoomIn:"Zoom in",zoomOut:"Zoom out","scale.origin":"Original scale","Editor.fullscreen":"full screen","Editor.exitFullscreen":"exit fullscreen mode","Condition.not":"not","Condition.and":"and","Condition.or":"or","Condition.collapse":"unfold","Condition.add_cond":"add condition","Condition.add_cond_group":"add condition group","Condition.delete_cond_group":"delete condition group","Condition.equal":"equal","Condition.not_equal":"not equal","Condition.less":"less","Condition.less_or_equal":"less or equal","Condition.greater":"greater","Condition.greater_or_equal":"greater or equal","Condition.between":"between","Condition.not_between":"not between","Condition.is_empty":"empty","Condition.is_not_empty":"not empty","Condition.like":"contains","Condition.not_like":"not contains","Condition.starts_with":"starts with","Condition.ends_with":"ends with","Condition.select_equals":"equals","Condition.select_not_equals":"not equal","Condition.select_any_in":"contains","Condition.select_not_any_in":"not contains","Condition.placeholder":"Please enter text","Condition.cond_placeholder":"select condition","Condition.field_placeholder":"select field","Condition.blank":"blank","Condition.expression":"expression","Condition.formula_placeholder":"Please enter a formula","Condition.fun_error":"Function is undefined","Condition.configured":"Configured","Condition.isRequired":"Condition is required","InputTable.uniqueError":"Column `{{label}}` unique validate failed","Timeline.collapseText":"Unfold","Timeline.expandText":"Fold",collapse:"Collapse",expand:"Expand","FormulaEditor.btnLabel":"Formula Edit","FormulaEditor.title":"Formula Editor","FormulaEditor.run":"Run","FormulaEditor.sourceMode":"Source Mode","FormulaEditor.runContext":"Run Context","FormulaEditor.runResult":"Run Result","FormulaEditor.toggleAll":"Expand All","FormulaEditor.variable":"Variable","FormulaEditor.function":"Function","FormulaEditor.invalidData":"invalid data, position or reason is {{err}}","FormulaEditor.invalidValue":"invalid value, reason is wrong value format","pullRefresh.normalText":"","pullRefresh.pullingText":"Pull down to refresh...","pullRefresh.loosingText":"Release to refresh...","pullRefresh.loadingText":"Loading...","pullRefresh.successText":"Loading success","pullRefresh.completedText":"No more data","pullRefresh.crud2NormalText":"Swipe up to load more","pullRefresh.crud2PullingText":"Swipe up to load more","pullRefresh.crud2LoosingText":"Release to load","Picker.placeholder":"Click icon on the right","UserSelect.edit":"edit","UserSelect.save":"preservation","UserSelect.resultSort":"Select result sort","UserSelect.selected":"Selected","UserSelect.clear":"empty","UserSelect.sure":"submit","SchemaType.string":"String","SchemaType.number":"Number","SchemaType.integer":"integer","SchemaType.object":"Object","SchemaType.array":"Array","SchemaType.boolean":"Boolean","SchemaType.any":"Any","SchemaType.null":"Null","JSONSchema.type":"Type","JSONSchema.required":"Required","JSONSchema.title":"Title","JSONSchema.default":"Default","JSONSchema.description":"Description","JSONSchema.key":"Key","JSONSchema.array_items":"Items","JSONSchema.members":"Members","JSONSchema.key_duplicated":"Key already exists","JSONSchema.key_invalid":"Key invalid",TimeNow:"Now","IconSelect.all":"All","IconSelect.choice":"Icon selection","Steps.step":"Step {{index}}","FormulaInput.True":"True","FormulaInput.False":"False","Signature.clear":"clear","Signature.undo":"undo","Signature.confirm":"confirm","Signature.cancel":"cancel","Signature.embedLabel":"Click to sign","QRCode.tooLong":"The QR code value is too long, please set the text to be below {{max}} characters."});register("de-DE",{"Action.countDown":"${timeLeft} warten","Alert.info":"Systeminformationen",asc:"Aufsteigend","App.home":"Startseite","App.navigation":"Navigation","Calendar.datepicker":"Auswahl des Datums","Calendar.yearmonth":"YYYY MM","Calendar.year":"YYYY","Calendar.begin":"beginnt","Calendar.end":"ende","Calendar.beginAndEnd":"b/e","Calendar.toast":"Außerhalb des Datumsbereichs","Calendar.startPick":"Wählen Sie Startzeit","Calendar.endPick":"Wählen Sie Endzeit",Schedule:"Zeitplan",Time:"Zeit",Content:"Inhalt",cancel:"Abbrechen",more:"mehr","Card.dragTip":"Obere Schaltfläche zum Sortieren ziehen","Card.toggleDrag":"Zum Sortieren umschalten","City.street":"Straße eingeben",clear:"Löschen","ColorPicker.placeholder":"Farbe auswählen","SubForm.add":"Neu",add:"Neu","Combo.dragDropSort":"Zum Sortieren ziehen","Combo.invalidData":"Ungültige Daten, bitte entfernen","Combo.maxLength":"Maximale Anzahl ist {{MaxLength}}}. Löschen Sie einige Elemente.","Combo.minLength":"Mindestens {{minLength}} erfoderlich. Fügen Sie weitere hinzu.","Combo.type":"Typ",confirm:"Bestätigen","Copyable.tip":"Kopieren","CRUD.exportCSV":"In CSV exportieren","CRUD.exportExcel":"In Excel exportieren","CRUD.exportExcelTemplate":"In Excel-Vorlage exportieren","CRUD.fetchFailed":"Fehler beim Abrufen","CRUD.filter":"Filtern","CRUD.selected":"Ausgewählte {{total}} Elemente: ","CRUD.invalidArray":'"data.items" muss ein Array sein',"CRUD.invalidData":'"data" ist leer',"CRUD.loadMore":"Weitere laden","CRUD.loadMoreDisableTip":"Keine Daten oder letzte Seite","CRUD.perPage":"Pro Seite","CRUD.stat":"{{page}} von {{lastPage}} insgesamt: {{total}}.","CRUD.paginationGoText":"Wechseln zu","CRUD.paginationPageText":"Seite","PaginationWrapper.placeholder":"Textkörper konfigurieren","Pagination.select":"{{count}} items/page","Pagination.goto":"goto","Pagination.go":"GO","Pagination.totalPage":"total {{lastPage}} pages","Pagination.totalCount":"total {{total}} items","Date.titleYear":"","Date.titleMonth":"","Date.titleQuarter":"","Date.titleDate":"","Date.titleTime":"","Date.daysago":"Vor {{days}} Tag(en)","Date.dayslater":"{{days}} Tag(e) später","Date.endOfMonth":"Letzter Tag des Monats","Date.endOfLastMonth":"Letzer Tag des letzten Monats","Date.endOfWeek":"Samstag","Date.hoursago":"Vor {{hours}} Stunde(n)","Date.hourslater":"{{hours}} Stunde(n) später","Date.invalid":"Ungültiges Datum","Number.invalid":"Ungültige Zahl","Date.monday":"Montag","Date.monthsago":"Vor {{months}} Monat(en)","Date.monthslater":"{{months}} Monat(e) später","Date.now":"Jetzt","Date.placeholder":"Datum wählen","Date.quartersago":"Vor {{quarters}} Quartal(en)","Date.quarterslater":"{{quarters}} Quartal(e) später","Date.startOfLastMonth":"Erster Tag des letzten Monats","Date.startOfLastQuarter":"Erster Tag des letzten Quartals","Date.startOfMonth":"Erster Tag des Monats","Date.startOfQuarter":"Erster Tag des Quartals","Date.today":"Heute","Date.tomorrow":"Morgen","Date.weeksago":"vor {{weeks}} Woche","Date.weekslater":"{{weeks}} Wochen später","Date.yesterday":"Gestern","dateformat.year":"YYYY","DateRange.daysago":"letzten {{days}} Tage","DateRange.dayslater":"innerhalb von {{days}} Tagen","DateRange.weeksago":"letzten {{weeks}} Wochen","DateRange.weekslater":"innerhalb von {{weeks}} Wochen","DateRange.monthsago":"letzten {{months}} Monate","DateRange.monthslater":"innerhalb von {{months}} Monaten","DateRange.quartersago":"letzten {{quarters}} Quartale","DateRange.quarterslater":"innerhalb von {{quarters}} Quartalen","DateRange.yearsago":"letzten {{years}} Jahre","DateRange.yearslater":"{{years}} Jahren","DateRange.hoursago":"letzten {{hours}} Stunden","DateRange.hourslater":"innerhalb von {{hours}} Stunden","DateRange.1dayago":"Vor 1 Tag","DateRange.1daysago":"Vor 1 Tag","DateRange.7daysago":"Vor 7 Tagen","DateRange.30daysago":"Vor 30 Tagen","DateRange.90daysago":"Vor 90 Tagen","DateRange.lastMonth":"Letzer Monat","DateRange.lastWeek":"Letzte Woche","DateRange.lastQuarter":"Letztes Quartal","DateRange.placeholder":"Datumsbereich wählen","YearRange.placeholder":"Datumsbereich wählen","DateRange.thisWeek":"Diese Woche","DateRange.thisMonth":"Diesen Monat","DateRange.thisQuarter":"Dieses Quartal","DateRange.thisYear":"Dieses Jahr","DateRange.lastYear":"letztes Jahr","DateRange.valueConcat":" bis ","DateTime.placeholder":"Datum auswählen",delete:"Löschen",deleteConfirm:"Möchten Sie wirklich löschen?",deleteFailed:"Fehler beim Löschen",desc:"Absteigend","Dialog.close":"Schließen","Dialog.title":"Titel","Embed.invalidRoot":"Ungültiger Root-Selektor","Embed.downloading":"Download starten",fetchFailed:"Fehler beim Abrufen der API","File.continueAdd":"Hinuzufügen fortsetzen","File.dragDrop":"Dateien per Drag & Drop hier ablegen","File.clickUpload":"Klicken Sie hier zum Hochladen","File.helpText":"Hilfedokumentation","File.errorRetry":"Fehler beim Hochladen der Datei, bitte versuchen Sie es erneut.","File.failed":"Fehlerhafte Dateien","File.invalidType":"{{files}} entspricht nicht Typ `{{accept}}`","File.maxSize":"{{filename}} überschreitet die maximale Größe von {{maxSize}}","File.pause":"Hochladen anhalten","File.repick":"Erneut suswählen","File.result":"Erfolgreich hochgeladene Dateien: {{uploaded}}, nicht hochgeladene Dateien: {{failed}}","File.retry":"Wiederholen","File.sizeLimit":"Die maximale Dateigröße ist {{maxSize}}","File.start":"Hochladen beginnen","File.upload":"Hochladen","File.uploadFailed":"Zurückgegebene Daten der Upload-API sind leer","File.uploading":"Wird hochgeladen...","File.imageAfterCrop":"Beschnittenes Bild","FormItem.autoFillLoadFailed":"Die Schnittstelle hat einen Fehler zurückgegeben, bitte sorgfältig prüfen","FormItem.autoFillSuggest":"Referenzdateneingabe","Form.loadOptionsFailed":"Optionen wurden auf folgendem Grund nicht geladen: {{reason}}","Form.submit":"Absenden","Form.title":"Formular","Form.unique":"Aktueller Wert ist nicht eindeutig","Form.validateFailed":"Fehler bei der Überprüfung der Formulareingabe","Form.nestedError":"Form kann nicht als Nachkomme von Form erscheinen","Form.rules.message":"Die gemeinsame Überprüfung von Formularelementen ist fehlgeschlagen","Iframe.invalid":"Ungültige Iframe-URL","Iframe.invalidProtocol":"HTTP-URL-Iframe kann nicht in https verwendet werden","Image.dragTip":"Zum Sortieren ziehen","Image.upload":"Bild hochladen","Image.configError":"Es können nur eine Beschneidung oder mehrere festgelegt werden","Image.crop":"Bild beschneiden","Image.dragDrop":"Bilder per Drag & Drop hier ablegen","Image.height":"Höhe: {{height}} Pixel","Image.limitMax":"Minimale Bildgröße ist {{info}}","Image.limitMin":"Maximale Bildgröße ist {{info}}","Image.limitRatio":"Laden Sie das Bild mit dem Seitenverhältnis {{ration}} hoch","Image.pasteTip":"Sie können das Bild aus der Zwischenablage einfügen","Image.placeholder":"Klicken Sie, um das Bild einzufügen, oder ziehen Sie es in diesen Bereich.","Image.size":"size: ({{width}} Pixel x {{height}} Pixel)","Image.sizeNotEqual":"Das ausgwählte Bild entspricht nicht den Größenanforderungen {{info}}","Image.width":"Weite: {{width}} Pixel","Image.zoomIn":"Vergrößern","Log.mustHaveSource":"Quelle muss in der Konfiguration vorhanden sein","Log.showLineNumber":"Zeilennummer anzeigen","Log.notShowLineNumber":"Zeilennummer ausblenden","Log.expand":"Entfalten","Log.collapse":"Falten",link:"Link",loading:"Wird geladen...",loadingFailed:"Das Laden ist fehlgeschlagen","LocationPicker.placeholder":"Wählen Sie einen Ort","LocationPicker.getLocation":"Klicken Sie hier, um Standortinformationen zu erhalten","Month.placeholder":"Wählen Sie einen Monat","Nav.sourceError":"Fehler beim Abrufen des Links",networkError:"Fehler beim Netzwerkzugriff oder fehlende CORS-Konfiguration",noResult:"Keine Ergebnisse","NumberInput.placeholder":"Geben Sie eine Zahl ein","Options.addPlaceholder":"Geben Sie einen Namen ein","Options.deleteAPI":'"deleteAPI" erforderlich',"Options.editLabel":"Bearbeiten {{label}}","Options.label":"Option","Options.createFailed":"Erstellen fehlgeschlagen","Options.retry":"Laden fehlgeschlagen '{{reason}}', klicken Sie auf Wiederholen","placeholder.empty":"<Empty>","placeholder.enter":"Eingabe","placeholder.noData":"Keine Daten","placeholder.noOption":"Keine Option","placeholder.selectData":"Daten auswählen","Quarter.placeholder":"Quartal auswählen","Repeat.pre":"Pro",reset:"Zurücksetzen",save:"Konservierung",saveFailed:"Fehler beim Speichern",saveSuccess:"Erfolgreich gespeichert",search:"Suchen",searchHistory:"Suchverlauf",searchResult:"Suchergebnis","Checkboxes.selectAll":"Alle auswählen/abwählen","Select.checkAll":"Alle markieren","Select.clear":"Löschen","Select.upload":"Wieder hochladen","Select.clearAll":"Alle löschen","Select.createLabel":"Neue Option","Select.placeholder":"Auswählen","Select.searchPromptText":"Eingeben zum Suchen","Select.selected":"Ausgewählt",sort:"Sortieren","SubForm.button":"Configurieren","SubForm.editDetail":"Details bearbeiten","System.error":"Systemfehler","System.notify":"Systembenachrichtigung","System.copy":"Inhalt kopiert","System.requestError":"Anfragefehler: ","System.requestErrorStatus":"Anfragefehler, Statuscode:","Table.addRow":"Zeile hinzufügen","Table.copyRow":"Zeile kopieren","Table.columnsVisibility":"Klicken, um die Sichtbarkeit der Spalten zu steuern","Table.deleteRow":"Aktuele Zeile löschen","Table.discard":"Verwerfen","Table.dragTip":"Schaltfläche links zum Sortieren ziehen","Table.editing":"Sie müssen die Bearbeitung beenden.","Table.editRow":"Aktuelle Zeile bearbeiten","Table.modified":"Es wurden {{modified}} Datensätze geändert, Sie können:","Table.moved":"Bei {{moved}} Datensätzen wurde die Reihenfolge geändert, Sie können:","Table.operation":"Vorgang","Table.playload":"Nutzlast muss vorhanden sein","Table.startSort":"Klicken, um Sortierung zu starten","Table.valueField":"valueField muss vorhanden sein","Table.index":"Index","Table.add":"Neu","Table.subAddRow":"Unterzeile hinzufügen","Table.addButtonDisabledTip":"Reichen Sie bei der Inhaltsbearbeitung zuerst ein und erstellen Sie dann eine neue Option","Table.toggleColumn":"Spalten anzeigen","Table.searchFields":"Abfragefelder setzen","Tag.placeholder":"Noch kein Tag","Tag.tip":"Kürzlich verwendetes Tag","Text.add":"Neu {{label}}","Time.placeholder":"Zeit auswählen","Transfer.configError":"Konfigurationsfehler","Transfer.refreshIcon":"Zum Aktualisieren klicken","Transfer.searchKeyword":"Stichwörter eingeben","Transfer.available":"Verfügbar","Transfer.selectd":"Ausgewählt","Transfer.selectFromLeft":"Von links auswählen","Tree.addChild":"Untergeordnetes Element hinzufügen","Tree.addRoot":"Stammknoten hinzufügen","Tree.editNode":"Diesen Knoten bearbeiten","Tree.invalidArray":"Daten.Optionen, Daten.Elemente oder Daten müssen ein Array sein","Tree.removeNode":"Diesen Knoten entfernen","Tree.root":"Stamm","validate.equals":"Wert muss $1 sein","validate.equalsField":"Wert muss $1 sein","validate.gt":"Geben Sie einen Wert ein, der größer ist als $1","validate.isAlpha":"Geben Sie Buchstaben ein","validate.isAlphanumeric":"Geben Sie Buchstaben oder Zahlen ein.","validate.isEmail":"E-Mail-Format ist falsch","validate.isFloat":"Geben Sie einen Gleitkommawert ein","validate.isId":"Ungültige ID-Kartennummer","validate.isInt":"Geben Sie eine ganze Zahl ein","validate.isJson":"Ungültiges JSON-Format","validate.isLength":"Vergewissern Sie sich, dass die Länge des Inhalts $1 ist","validate.isNumeric":"Geben Sie eine Nummer ein","validate.isPhoneNumber":"Ungültige Telefonnummer","validate.isRequired":"Dies ist erforderlich","validate.isTelNumber":"Ungültige Telefonnummer","validate.isUrl":"Falsches URL-Format","validate.isUrlPath":'Sie können nur Buchstaben, Zahlen, "-" und "_" eingeben.',"validate.isWords":"Geben Sie ein Wort ein","validate.isZipcode":"Ungültige Postleitzahl","validate.lt":"Geben Sie einen Wert ein, der kleiner ist als $1","validate.matchRegexp":"Das Format ist nicht korrekt. Geben Sie den Inhalt mit der Regel `${1| raw}` ein.","validate.maximum":"Der Eingabewert überschreitet den maximalen Wert von $1.","validate.maxLength":"Kontrollieren Sie die Länge des Inhalts. Geben Sie nicht mehr als $1 Buchstaben ein.","validate.minimum":"Der Eingabewert ist kleiner als der Mindestwert von $1.","validate.minLength":"Geben Sie weitere Zeichen ein, mindestens $1.","validate.array.minLength":"Bitte fügen Sie weitere Mitglieder hinzu, mindestens $1 Mitglieder","validate.array.maxLength":"Bitte kontrollieren Sie die Anzahl der Mitglieder, die $1 nicht überschreiten darf","validate.notEmptyString":"Geben Sie nicht nur Leerzeichen ein.","validate.isDateTimeSame":"Der aktuelle Datumswert ist ungültig, bitte geben Sie denselben Datumswert wie $1 ein","validate.isDateTimeBefore":"Der aktuelle Datumswert ist ungültig, bitte geben Sie einen Datumswert vor $1 ein","validate.isDateTimeAfter":"Der aktuelle Datumswert ist ungültig, bitte geben Sie nach $1 einen Datumswert ein","validate.isDateTimeSameOrBefore":"Der aktuelle Datumswert ist ungültig. Bitte geben Sie einen Datumswert ein, der gleich oder älter als $1 ist","validate.isDateTimeSameOrAfter":"Der aktuelle Datumswert ist ungültig. Bitte geben Sie einen Datumswert ein, der gleich oder nach $1 ist","validate.isDateTimeBetween":"Der aktuelle Datumswert ist ungültig, bitte geben Sie einen Datumswert zwischen $1 und $2 ein","validate.isTimeSame":"Der aktuelle Zeitwert ist ungültig, bitte geben Sie denselben Zeitwert wie 1 $ ein","validate.isTimeBefore":"Der aktuelle Zeitwert ist ungültig, bitte geben Sie einen Zeitwert vor $1 ein","validate.isTimeAfter":"Der aktuelle Zeitwert ist ungültig, bitte geben Sie nach $1 einen Zeitwert ein","validate.isTimeSameOrBefore":"Der aktuelle Zeitwert ist ungültig. Bitte geben Sie einen Zeitwert ein, der gleich oder älter als $1 ist","validate.isTimeSameOrAfter":"Der aktuelle Zeitwert ist ungültig. Bitte geben Sie einen Zeitwert ein, der gleich oder nach $1 ist","validate.isTimeBetween":"Der aktuelle Zeitwert ist ungültig, bitte geben Sie einen Zeitwert zwischen $1 und $2 ein","validate.isVariableName":"Bitte geben Sie einen gültigen Variablennamen ein",validateFailed:"Fehler bei der Überprüfung","Wizard.configError":"Konfigurationsfehler","Wizard.finish":"Ende","Wizard.next":"Weiter","Wizard.prev":"Zurück","Wizard.saveAndNext":"Speichern & Weiter","year-to-year":"{{from}} - {{to}}","Year.placeholder":"Wählen Sie ein Jahr",reload:"Neu laden",rotate:"Drehen","rotate.left":"Nach links drehen","rotate.right":"Drehe nach rechts",zoomIn:"Vergrößern",zoomOut:"Verkleinern","scale.origin":"Originalmaße","Editor.fullscreen":"Schirmfüllend Modus","Editor.exitFullscreen":"Zurücktreten Schirmfüllend Modus","Condition.not":"nicht","Condition.and":"und","Condition.or":"oder","Condition.collapse":"entfalten","Condition.add_cond":"und Bedingung","Condition.add_cond_group":"Bedingungsgruppe hinzufügen","Condition.delete_cond_group":"Konditionsgruppe löschen","Condition.equal":"gleich","Condition.not_equal":"ungleich","Condition.less":"weniger","Condition.less_or_equal":"weniger oder gleich","Condition.greater":"greater","Condition.greater_or_equal":"größder oder gleich","Condition.between":"zwischen","Condition.not_between":"nicht zwischen","Condition.is_empty":"leer","Condition.is_not_empty":"nicht leer","Condition.like":"beinhaltet","Condition.not_like":"beinhaltet nicht","Condition.starts_with":"beginnt mit","Condition.ends_with":"endet mit","Condition.select_equals":"gleich","Condition.select_not_equals":"nicht gleich","Condition.select_any_in":"beinhaltet","Condition.select_not_any_in":"beinhaltet nicht","Condition.placeholder":"Text einfügen","Condition.cond_placeholder":"Bedingung auswählen","Condition.field_placeholder":"Feld auswählen","Condition.blank":"leer","Condition.expression":"Ausdruck","Condition.formula_placeholder":"Bitte geben Sie eine Formel ein","Condition.fun_error":"Funktion ist undefiniert","Condition.configured":"Konfiguriert","Condition.isRequired":"Bedingung kann nicht leer sein","InputTable.uniqueError":"Column `{{label}}` unique validate failed","Timeline.collapseText":"Falten","Timeline.expandText":"Entfalten",collapse:"Falten",expand:"Entfalten","FormulaEditor.btnLabel":"Formel Bearbeiten","FormulaEditor.title":"Formel Editor","FormulaEditor.run":"Laufen","FormulaEditor.sourceMode":"Source Mode","FormulaEditor.runContext":"Run Context","FormulaEditor.runResult":"Run Result","FormulaEditor.toggleAll":"Expand All","FormulaEditor.variable":"Variable","FormulaEditor.function":"Funktion","FormulaEditor.invalidData":"Überprüfungsfehler, position or reason is {{err}}","FormulaEditor.invalidValue":"Überprüfungsfehler, reason is Falsches Werteformat","pullRefresh.normalText":"","pullRefresh.pullingText":"Zum Aktualisieren nach unten ziehen...","pullRefresh.loosingText":"Zum Aktualisieren freigeben...","pullRefresh.loadingText":"Laden...","pullRefresh.successText":"Laden erfolgreich","pullRefresh.completedText":"Keine weiteren Daten","pullRefresh.crud2NormalText":"Wischen Sie nach oben, um mehr zu laden","pullRefresh.crud2PullingText":"Wischen Sie nach oben, um mehr zu laden","pullRefresh.crud2LoosingText":"Freigabe zum Laden","Picker.placeholder":"Klicken Sie rechts auf das Symbol","UserSelect.edit":"bearbeiten","UserSelect.save":"Konservierung","UserSelect.resultSort":"Ergebnissortierung auswählen","UserSelect.selected":"Ausgewählt","UserSelect.clear":"leer","UserSelect.sure":"Submit","SchemaType.string":"String","SchemaType.number":"Zahl","SchemaType.integer":"Ganzzahl","SchemaType.object":"Objekt","SchemaType.array":"Array","SchemaType.boolean":"Boolesch","SchemaType.null":"Null","SchemaType.any":"Any","JSONSchema.type":"Typ","JSONSchema.required":"Erforderlich","JSONSchema.title":"Titel","JSONSchema.default":"Standard","JSONSchema.description":"Beschreibung","JSONSchema.key":"Schlüssel","JSONSchema.array_items":"Artikel","JSONSchema.members":"Mitglieder","JSONSchema.key_duplicated":"Schlüssel existiert bereits","JSONSchema.key_invalid":"Schlüssel ungültig",TimeNow:"Jetzt","Steps.step":"Schritt {{index}}","FormulaInput.True":"Treu","FormulaInput.False":"Falsch","Signature.clear":"leer","Signature.undo":"widerrufen","Signature.confirm":"bestätigen","Signature.cancel":"Abbrechen","Signature.embedLabel":"Klicken Sie zum Signieren","QRCode.tooLong":"Der QR-Code-Wert ist zu lang, bitte setzen Sie den Text auf weniger als {{max}} Zeichen."});var classPrefix$2="cxd-";makeClassnames(classPrefix$2);theme("cxd",{classPrefix:"cxd-",components:{toast:{closeButton:!0}},renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0},chart:{chartTheme:{color:["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#04c1ba","#fbbe04","#5fb333","#0a7eb4","#304069","#c4ccd3"],backgroundColor:"#ffffff",textStyle:{},title:{textStyle:{color:"#333"},subtextStyle:{color:"#999999"}},line:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},radar:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},bar:{itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},scatter:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},boxplot:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},parallel:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},sankey:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},funnel:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},gauge:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},candlestick:{itemStyle:{color:"#c23531",color0:"#314656",borderColor:"#c23531",borderColor0:"#314656",borderWidth:1}},graph:{itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#04c1ba","#fbbe04","#5fb333","#0a7eb4","#304069","#c4ccd3"],label:{color:"#f5f5f5"}},map:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},geo:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!1,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#999"},emphasis:{borderColor:"#666"}}},legend:{textStyle:{color:"#333"}},tooltip:{axisPointer:{lineStyle:{color:"#ccc",width:1},crossStyle:{color:"#ccc",width:1}}},timeline:{lineStyle:{color:"#293c55",width:1},itemStyle:{normal:{color:"#293c55",borderWidth:1},emphasis:{color:"#a9334c"}},controlStyle:{normal:{color:"#293c55",borderColor:"#293c55",borderWidth:.5},emphasis:{color:"#293c55",borderColor:"#293c55",borderWidth:.5}},checkpointStyle:{color:"#e43c59",borderColor:"rgba(194,53,49, 0.5)"},label:{normal:{textStyle:{color:"#293c55"}},emphasis:{textStyle:{color:"#293c55"}}}},visualMap:{color:["#bf444c","#d88273","#f6efa6"]},dataZoom:{backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(47,69,84,0.3)",fillerColor:"rgba(167,183,204,0.4)",handleColor:"#a7b7cc",handleSize:"100%",textStyle:{color:"#333"}},markPoint:{label:{color:"#f5f5f5"},emphasis:{label:{color:"#f5f5f5"}}}}}}});var classPrefix$1="a-",classnames$1=makeClassnames(classPrefix$1);theme("ang",{classPrefix:classPrefix$1,classnames:classnames$1});theme("antd",{classPrefix:"antd-",components:{toast:{closeButton:!0}},renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0}}});var classPrefix="dark-",classnames=makeClassnames(classPrefix);theme("dark",{classPrefix,classnames,renderers:{json:{jsonTheme:"eighties"},"editor-control":{editorTheme:"vs-dark"}}});var Signature=function(x_){var eme=x_.translate,$P=x_.classnames,tme=x_.className,ame=x_.width,nme=x_.height,rme=__read$3(React__default.useState(null),2),ime=rme[0],ome=rme[1],lme=__read$3(React__default.useState(!1),2),sme=lme[0],cme=lme[1],dme=__read$3(React__default.useState(!1),2),ume=dme[0],fme=dme[1],pme=__read$3(React__default.useState(x_.embed||!1),2),hme=pme[0],bme=pme[1],mme=__read$3(React__default.useState(x_.value),2),vme=mme[0],gme=mme[1],yme=React__default.useRef(null);React__default.useEffect(function(){if(yme.current){var kme=resizeSensor(yme.current,Sme);return function(){ome(null),kme()}}},[]),React__default.useEffect(function(){return gme(x_.value)},[x_.value]),React__default.useEffect(function(){return bme(x_.embed||!1)},[x_.embed]);var _me=React__default.useCallback(function(){var kme;ime&&ime.clear(),(kme=x_.onChange)===null||kme===void 0||kme.call(x_,void 0)},[ime]),$me=React__default.useCallback(function(){ime&&ime.undo()},[ime]),Cme=React__default.useCallback(function(){var kme;if(ime){var Bme=ime.toDataURL();gme(Bme),(kme=x_.onChange)===null||kme===void 0||kme.call(x_,Bme)}},[ime]),Sme=React__default.useCallback(function(){ome(null)},[]),Eme=React__default.useCallback(function(){fme(!0),ome(null)},[]),xme=React__default.useCallback(function(){fme(!1),ome(null)},[]),Tme=React__default.useCallback(function(){cme(!1),fme(!1),ome(null)},[]),Ome=React__default.useCallback(function(){Cme(),Tme()},[ime]),Rme=React__default.useCallback(function(kme){var Bme=x_.width,Dme=x_.height,jme=kme.parentElement.clientWidth,Vme=kme.parentElement.clientHeight,Wme=Bme||jme-(ume?40:0),Lme=ume?Vme:Math.min(Dme||jme/2-40,Vme-40),zme=new SmoothSignature(kme,{width:Math.max(Wme,200),height:Math.max(Lme,160),color:x_.color||"#000",bgColor:x_.bgColor||"#efefef"});ome(zme)},[ame,nme,ume]);function Nme(kme){sme&&kme&&!ime&&Rme(kme)}function Ime(kme){kme&&!ime&&Rme(kme)}function Pme(kme){kme===void 0&&(kme=!0);var Bme=x_.clearBtnLabel,Dme=x_.clearBtnIcon,jme=x_.undoBtnLabel,Vme=x_.undoBtnIcon,Wme=x_.confirmBtnLabel,Lme=x_.confirmBtnIcon,zme=x_.embedConfirmLabel,Ume=x_.embedConfirmIcon,Gme=x_.ebmedCancelLabel,Jme=x_.ebmedCancelIcon;return React__default.createElement("div",{className:$P("Signature-Tool")},React__default.createElement("div",{className:"actions"},React__default.createElement("div",{className:"left-actions"},React__default.createElement(Button$1,{onClick:_me,tooltip:Bme||eme("Signature.clear")},Bme,React__default.createElement(Icon$1,{icon:Dme||"close",className:$P("icon",{"ml-1":Bme})})),React__default.createElement(Button$1,{onClick:$me,tooltip:jme||eme("Signature.undo")},jme,React__default.createElement(Icon$1,{icon:Vme||"undo-normal",className:$P("icon",{"ml-1":jme})})),ume?React__default.createElement(Button$1,{onClick:xme},React__default.createElement(Icon$1,{icon:"un-fullscreen",className:"icon"})):React__default.createElement(Button$1,{onClick:Eme},React__default.createElement(Icon$1,{icon:"full-screen",className:"icon"}))),kme?React__default.createElement("div",{className:"right-actions"},hme?React__default.createElement(React__default.Fragment,null,React__default.createElement(Button$1,{onClick:Tme},Gme||eme("Signature.cancel"),React__default.createElement(Icon$1,{icon:Jme,className:"icon ml-1"})),React__default.createElement(Button$1,{onClick:Ome,level:"primary"},zme||eme("Signature.confirm"),React__default.createElement(Icon$1,{icon:Ume,className:"icon ml-1"}))):React__default.createElement(Button$1,{onClick:Cme,level:"primary"},Wme||eme("Signature.confirm"),React__default.createElement(Icon$1,{icon:Lme,className:"icon ml-1"}))):null))}function Mme(){var kme=x_.embedConfirmLabel,Bme=x_.ebmedCancelLabel,Dme=x_.embedBtnIcon,jme=x_.embedBtnLabel,Vme=x_.embedConfirmIcon,Wme=x_.ebmedCancelIcon;return React__default.createElement("div",{className:$P("Signature-Embed")},React__default.createElement(Button$1,{onClick:function(){return cme(!0)}},React__default.createElement(Icon$1,{className:"icon mr-1",icon:Dme||"fas fa-pen"}),jme||eme("Signature.embedLabel")),vme?React__default.createElement("div",{className:$P("Signature-Embed-Preview")},React__default.createElement("img",{src:vme}),React__default.createElement(Icon$1,{className:"preview-close",icon:"fas fa-close",onClick:_me})):null,React__default.createElement(FinalModal,{show:sme,onHide:Tme,size:"full"},React__default.createElement(FinalModal.Body,null,React__default.createElement("div",{className:$P("Signature-Embed-Body",{"is-fullScreen":ume})},React__default.createElement("canvas",{className:$P("Signature-canvas"),ref:Nme}),Pme(ume))),ume?null:React__default.createElement(FinalModal.Footer,null,React__default.createElement(Button$1,{onClick:Tme},Bme||eme("Signature.cancel"),React__default.createElement(Icon$1,{icon:Wme,className:"icon ml-1"})),React__default.createElement(Button$1,{onClick:Ome,level:"primary"},kme||eme("Signature.confirm"),React__default.createElement(Icon$1,{icon:Vme,className:"icon ml-1"})))))}return React__default.createElement("div",{className:$P(tme)},React__default.createElement("div",{className:$P("Signature",{"is-fullScreen":ume}),ref:yme},hme?Mme():React__default.createElement(React__default.Fragment,null,React__default.createElement("canvas",{className:$P("Signature-canvas"),ref:Ime}),Pme())))},Signature$1=themeable(localeable(Signature)),dimensions=[{name:"custom",width:375,height:667},{name:"iPhone SE",width:375,height:667},{name:"iPhone XR",width:414,height:896},{name:"iPhone 12 Pro",width:390,height:844},{name:"iPhone 14 Pro Max",width:430,height:932},{name:"Pixel 7",width:412,height:915},{name:"Samsung Galaxy S8+",width:360,height:740},{name:"Samsung Galaxy S20 Ultra",width:412,height:915},{name:"iPad Mini",width:768,height:1024},{name:"iPad Air",width:820,height:1180},{name:"iPad Pro",width:1024,height:1366},{name:"Surface Pro 7",width:912,height:1368},{name:"Surface Duo",width:540,height:720},{name:"Galaxy Z Fold 5",width:344,height:882},{name:"Asus Zenfone Fold",width:853,height:1280},{name:"Samsung Galaxy A51/71",width:412,height:914},{name:"Nest Hub",width:1024,height:600},{name:"Next Hub Max",width:1280,height:800}],scaleList=[50,75,100,125,150,200];function MobileDevTool(x_){var eme=__read$3(React__default.useState(function(){return JSON.parse(localStorage.getItem("amis-mobile-dev-tool-dimension")||"null")||dimensions[1]}),2),$P=eme[0],tme=eme[1],ame=reactExports.useRef(),nme=__read$3(React__default.useState(100),2),rme=nme[0],ime=nme[1],ome=__read$3(React__default.useState(100),2),lme=ome[0],sme=ome[1],cme=x_.container,dme=x_.previewBody,ume=new ResizeObserver(debounce$6(hme,300));reactExports.useEffect(function(){ame.current=parseInt(localStorage.getItem("amis-mobile-dev-tool-scale")||"0",10)},[]),reactExports.useEffect(function(){if(cme&&dme){yme({width:$P.width,height:$P.height});var $me=ame.current||100;ame.current||($me=Math.min(hme(),100),ame.current=$me),ime($me),_me($me),ume.observe(cme)}return function(){cme&&ume.unobserve(cme),dme&&(dme.style.width="",dme.style.height="",dme.style.transform="")}},[cme,dme]);function fme($me){tme($me),localStorage.setItem("amis-mobile-dev-tool-dimension",JSON.stringify($me))}function pme($me){ime($me),localStorage.setItem("amis-mobile-dev-tool-scale",$me+"")}function hme(){if(!cme)return 100;var $me=cme.getBoundingClientRect(),Cme=$me.width,Sme=$me.height,Eme=(dme==null?void 0:dme.clientWidth)||375,xme=(dme==null?void 0:dme.clientHeight)||667,Tme=Math.min((Cme-50)/Eme,Sme*.9/xme);return Tme=Math.floor(Tme*100),sme(Tme),Tme}function bme(){fme({name:$P.name,width:$P.height,height:$P.width}),yme({width:$P.height,height:$P.width}),hme()}function mme(){pme(lme),_me(lme)}function vme($me){if($me){var Cme=dimensions.find(function(Sme){return Sme.name===$me.value});fme(Cme),yme(Cme),pme(100),_me(100),hme()}}function gme($me,Cme){var Sme=parseInt($me||"0",10),Eme={name:"custom",width:Cme==="width"?Sme:$P.width,height:Cme==="height"?Sme:$P.height};fme(Eme),yme(Eme),hme()}function yme($me){dme&&(dme.style.width=$me.width+20+"px",dme.style.height=$me.height+20+"px")}function _me($me){dme&&(dme.style.transform="translateX(-50%) scale("+$me/100+")")}return jsxs("div",{className:"ae-MobileDevTool",children:[jsxs("div",{className:"ae-MobileDevTool-dimensions",children:[jsx("label",{children:"尺寸:"}),jsx(EnhancedSelect,{className:"ae-MobileDevTool-select",value:$P.name,onChange:vme,options:dimensions.map(function($me){return{label:$me.name==="custom"?"自定义":$me.name,value:$me.name}}),clearable:!1})]}),jsxs("div",{className:"ae-MobileDevTool-dimension",children:[$P.name==="custom"?jsx("input",{className:"ae-MobileDevTool-dimension-input",value:$P.width,onChange:function($me){var Cme=$me.currentTarget.value;gme(Cme,"width")}}):jsx("span",{children:$P.width}),jsx("span",{children:"×"}),$P.name==="custom"?jsx("input",{className:"ae-MobileDevTool-dimension-input",value:$P.height,onChange:function($me){var Cme=$me.currentTarget.value;gme(Cme,"height")}}):jsx("span",{children:$P.height})]}),jsxs("div",{className:"ae-MobileDevTool-right",children:[jsxs("div",{className:"ae-MobileDevTool-right-scale",children:[jsx(EnhancedSelect,{className:"ae-MobileDevTool-select",clearable:!1,value:rme,options:__spreadArray([],__read$3(scaleList.map(function($me){return{label:"".concat($me,"%"),value:$me}})),!1),onChange:function($me){pme($me.value),_me($me.value)}}),!scaleList.includes(rme)&&jsxs("div",{className:"ae-MobileDevTool-right-scale-auto-value",children:[rme,"%"]}),jsx("div",{className:"ae-MobileDevTool-right-scale-auto",onClick:mme,children:"自适应"})]}),jsx("div",{onClick:bme,children:jsx(Icon$1,{icon:"rotate-screen",className:"ae-MobileDevTool-right-rotate-screen"})})]}),$P.name==="custom"&&jsx(CustomSizeHandle,{previewBody:dme,onChange:function($me,Cme){fme({name:"custom",width:$me-20,height:Cme-20})},onEnd:hme,scale:rme})]})}function CustomSizeHandle(x_){var eme=x_.previewBody,$P=x_.scale,tme=$P===void 0?1:$P,ame=x_.onChange,nme=x_.onEnd;function rme(dme){dme.stopPropagation(),dme.preventDefault(),document.body.classList.add("width-move"),document.addEventListener("mousemove",ime),document.addEventListener("mouseup",ome)}function ime(dme){if(dme.stopPropagation(),eme){var ume=eme.clientWidth;ume+=dme.movementX,ume=Math.max(70,ume),eme.style.width=ume+"px",ame==null||ame(ume,eme.clientHeight)}}function ome(){document.body.classList.remove("width-move"),document.removeEventListener("mousemove",ime),document.removeEventListener("mouseup",ome),nme()}function lme(dme){dme.stopPropagation(),dme.preventDefault(),document.body.classList.add("height-move"),document.addEventListener("mousemove",sme),document.addEventListener("mouseup",cme)}function sme(dme){if(dme.stopPropagation(),eme){var ume=eme.clientHeight;ume+=dme.movementY,ume=Math.max(70,ume),eme.style.height=ume+"px",ame(eme.clientWidth,ume)}}function cme(){document.body.classList.remove("height-move"),document.removeEventListener("mousemove",sme),document.removeEventListener("mouseup",cme),nme()}return jsx(Portal,{container:function(){return eme},children:jsxs(Fragment,{children:[jsx("div",{className:"ae-MobileDevTool-rightHandle",onMouseDown:rme,style:{transform:"scale(".concat(1/(tme/100),")")}}),jsx("div",{className:"ae-MobileDevTool-bottomHandle",onMouseDown:lme,style:{transform:"scale(".concat(1/(tme/100),")")}})]})})}extendDefaultEnv({alert,confirm,notify:function(x_,eme,$P){return toast[x_]?toast[x_](eme,$P):console.warn("[Notify]",x_,eme)}});setRenderSchemaFn(function(x_,eme,$P,tme,ame){return render$2({name:"form",type:"form",wrapWithPanel:!1,mode:"horizontal",controls:x_,messages:{validateFailed:""}},{data:eme,onFinished:$P,scopeRef:tme,theme:ame},{session:"prompt"})});addRootWrapper(function(x_){var eme=x_.env,$P=x_.children;return React__default.createElement(ImageGallery$1,{modalContainer:eme.getModalContainer},$P)});var SimpleSpinner=themeable(function(x_){var eme=x_.classnames;return React__default.createElement("div",{"data-testid":"spinner",className:eme("Spinner","in",x_.className)},React__default.createElement("div",{className:eme("Spinner-icon","Spinner-icon--default","Spinner-icon--sm",x_.spinnerClassName)}))});themedLazyComponent.defaultProps.placeholder=React__default.createElement(SimpleSpinner,null);var inited=!1,currentOpened,HocQuickEdit=function(x_){return function(eme){var $P=function(tme){__extends$2(ame,tme);function ame(nme){var rme=tme.call(this,nme)||this;return rme.openQuickEdit=rme.openQuickEdit.bind(rme),rme.closeQuickEdit=rme.closeQuickEdit.bind(rme),rme.handleAction=rme.handleAction.bind(rme),rme.handleSubmit=rme.handleSubmit.bind(rme),rme.handleKeyUp=rme.handleKeyUp.bind(rme),rme.overlayRef=rme.overlayRef.bind(rme),rme.handleWindowKeyPress=rme.handleWindowKeyPress.bind(rme),rme.handleWindowKeyDown=rme.handleWindowKeyDown.bind(rme),rme.formRef=rme.formRef.bind(rme),rme.formItemRef=rme.formItemRef.bind(rme),rme.handleInit=rme.handleInit.bind(rme),rme.handleChange=rme.handleChange.bind(rme),rme.handleFormItemChange=rme.handleFormItemChange.bind(rme),rme.handleBulkChange=rme.handleBulkChange.bind(rme),rme.state={isOpened:!1},rme}return ame.prototype.componentDidMount=function(){this.target=reactDomExports.findDOMNode(this),!inited&&(inited=!0,document.body.addEventListener("keypress",this.handleWindowKeyPress),document.body.addEventListener("keydown",this.handleWindowKeyDown))},ame.prototype.formRef=function(nme){var rme=this.props,ime=rme.quickEditFormRef,ome=rme.rowIndex,lme=rme.colIndex;if(ime){for(;nme&&nme.getWrappedInstance;)nme=nme.getWrappedInstance();ime(nme,lme,ome)}},ame.prototype.formItemRef=function(nme){var rme=this.props,ime=rme.quickEditFormItemRef,ome=rme.rowIndex,lme=rme.colIndex;if(ime){for(;nme&&nme.getWrappedInstance;)nme=nme.getWrappedInstance();ime(nme,lme,ome)}},ame.prototype.handleWindowKeyPress=function(nme){var rme=this.props.classPrefix,ime=nme.target.closest(".".concat(rme,"Field--quickEditable"));if(ime){var ome=ime.closest("table");ome&&keycode(nme)==="space"&&!~["INPUT","TEXTAREA"].indexOf(ime.tagName)&&(nme.preventDefault(),nme.stopPropagation())}},ame.prototype.handleWindowKeyDown=function(nme){var rme=keycode(nme);if(rme==="esc"&&currentOpened)currentOpened.closeQuickEdit();else if(~["INPUT","TEXTAREA"].indexOf(nme.target.tagName)||nme.target.contentEditable==="true"||!~["up","down","left","right"].indexOf(rme))return;nme.preventDefault();var ime=this.props.classPrefix,ome=nme.target.closest(".".concat(ime,"Field--quickEditable"))||document.querySelector(".".concat(ime,"Field--quickEditable"));if(ome){var lme=ome.closest("table");if(lme){var sme=lme.querySelector(".".concat(ime,"Field--quickEditable:focus"));if(sme){var dme=void 0,ume=void 0,fme=void 0,pme=void 0;switch(rme){case"up":if(dme=sme.parentNode.previousSibling,dme){var hme=sme.cellIndex;dme.children[hme].focus()}break;case"down":if(ume=sme.parentNode.nextSibling,ume){var hme=sme.cellIndex;ume.children[hme].focus()}break;case"left":for(fme=sme.previousElementSibling;fme&&!fme.matches(".".concat(ime,"Field--quickEditable[tabindex]"));)fme=fme.previousElementSibling;if(fme)fme.focus();else if(sme.parentNode.previousSibling){var bme=sme.parentNode.previousSibling.querySelectorAll(".".concat(ime,"Field--quickEditable[tabindex]"));bme.length&&bme[bme.length-1].focus()}break;case"right":for(pme=sme.nextSibling;pme&&!pme.matches(".".concat(ime,"Field--quickEditable[tabindex]"));)pme=pme.nextSibling;pme?pme.focus():sme.parentNode.nextSibling&&(pme=sme.parentNode.nextSibling.querySelector(".".concat(ime,"Field--quickEditable[tabindex]")),pme&&pme.focus());break}}else{var cme=lme.querySelector(".".concat(ime,"Field--quickEditable[tabindex]"));cme&&cme.focus()}}}},ame.prototype.overlayRef=function(nme){this.overlay=nme},ame.prototype.handleAction=function(nme,rme,ime){var ome=this.props.onAction;if(rme.actionType==="cancel"||rme.actionType==="close"){this.closeQuickEdit();return}ome&&ome(nme,rme,ime)},ame.prototype.handleSubmit=function(nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.quickEdit;return this.closeQuickEdit(),ime(nme,ome.saveImmediately,!1,ome),!1},ame.prototype.handleInit=function(nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.data,lme=difference$2(nme,ome);Object.keys(lme).length&&ime(lme,!1,!0)},ame.prototype.handleChange=function(nme,rme){var ime=this.props,ome=ime.onQuickChange,lme=ime.quickEdit;Object.keys(rme).length&&ome(rme,lme.saveImmediately,!1,lme)},ame.prototype.handleFormItemChange=function(nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.quickEdit,lme=rme.name,sme={};setVariable(sme,lme,nme),ime(sme,ome.saveImmediately,!1,ome)},ame.prototype.handleBulkChange=function(nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.quickEdit;ime(nme,ome.saveImmediately,!1,ome)},ame.prototype.openQuickEdit=function(){currentOpened=this,this.setState({isOpened:!0})},ame.prototype.closeQuickEdit=function(){var nme=this;if(this.state.isOpened){currentOpened=null;var rme=this.props.classPrefix;this.setState({isOpened:!1},function(){var ime=reactDomExports.findDOMNode(nme),ome=ime.closest("table");(ome&&ome.querySelectorAll("td.".concat(rme,"Field--quickEditable:focus")).length||ime)&&ime.focus()})}},ame.prototype.buildSchema=function(){var nme=this.props,rme=nme.quickEdit,ime=nme.name,ome=nme.label,lme=nme.translate,sme=nme.id,cme,dme=rme.mode==="inline";rme===!0?cme={type:"form",title:"",autoFocus:!0,body:[{type:"input-text",name:ime,placeholder:ome,label:!1}]}:rme&&(rme!=null&&rme.isFormMode?cme={mode:"normal",type:"form",wrapWithPanel:!1,body:[__assign$3(__assign$3({},omit$1(rme,"isFormMode")),{label:!1})]}:rme.body&&!~["combo","group","panel","fieldSet","fieldset"].indexOf(rme.type)?cme=__assign$3(__assign$3({title:"",autoFocus:!dme},rme),{mode:"normal",type:"form"}):cme={title:"",className:rme.formClassName,type:"form",autoFocus:!dme,mode:"normal",body:[__assign$3(__assign$3(__assign$3({type:rme.type||"input-text",name:rme.name||ime},dme?{id:sme}:{}),rme),{mode:void 0})]});var ume=rme==null?void 0:rme.isFormMode;return cme&&(cme=__assign$3(__assign$3({},cme),{wrapWithPanel:!(dme||ume),actions:dme||ume?[]:[{type:"button",label:lme("cancel"),actionType:"cancel"},{label:lme("confirm"),type:"submit",primary:!0}]})),cme||"error"},ame.prototype.handleKeyUp=function(nme){var rme=keycode(nme);rme==="space"&&!~["INPUT","TEXTAREA"].indexOf(nme.target.tagName)&&(nme.preventDefault(),nme.stopPropagation(),this.openQuickEdit())},ame.prototype.renderPopOver=function(){var nme=this,rme=this.props,ime=rme.quickEdit,ome=rme.render,lme=rme.popOverContainer,sme=rme.classPrefix,cme=rme.classnames,dme=rme.canAccessSuperData,ume=React__default.createElement("div",{ref:this.overlayRef,className:cme(ime.className)},ome("quick-edit-form",this.buildSchema(),{value:void 0,defaultStatic:!1,onSubmit:this.handleSubmit,onAction:this.handleAction,onChange:null,formLazyChange:!1,ref:this.formRef,popOverContainer:function(){return nme.overlay},canAccessSuperData:dme,formStore:void 0}));return lme=lme||function(){return reactDomExports.findDOMNode(nme)},React__default.createElement(Overlay,{container:lme,target:function(){return nme.target},onHide:this.closeQuickEdit,placement:"left-top right-top left-bottom right-bottom left-top-right-top left-bottom-right-bottom left-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:sme,className:cme("".concat(sme,"QuickEdit-popover"),ime.popOverClassName),onHide:this.closeQuickEdit,overlay:!0},ume))},ame.prototype.renderInlineForm=function(){var nme,rme=this.props,ime=rme.render,ome=rme.classnames,lme=rme.canAccessSuperData,sme=rme.disabled;rme.value;var cme=rme.name,dme=this.buildSchema();return Array.isArray(dme.body)&&dme.body.length===1&&!dme.body[0].unique&&!dme.body[0].value&&dme.body[0].name&&dme.body[0].name===cme&&dme.body[0].type&&(!((nme=getRendererByName(dme.body[0].type))===null||nme===void 0)&&nme.isFormItem)?React__default.createElement(InlineFormItem,__assign$3({},this.props,{schema:dme.body[0],onChange:this.handleFormItemChange,onBulkChange:this.handleBulkChange,formItemRef:this.formItemRef})):ime("inline-form",dme,{value:void 0,wrapperComponent:"div",className:ome("Form--quickEdit"),ref:this.formRef,simpleMode:!0,onInit:this.handleInit,onChange:this.handleChange,onBulkChange:this.handleBulkChange,formLazyChange:!1,canAccessSuperData:lme,disabled:sme,defaultStatic:!1,buildItemProps:null,quickEditFormItemRef:null})},ame.prototype.render=function(){var nme=this.props,rme=nme.onQuickChange,ime=nme.quickEdit,ome=nme.quickEditEnabled,lme=nme.className,sme=nme.classnames,cme=nme.render,dme=nme.noHoc;nme.canAccessSuperData;var ume=nme.disabled,fme=this.props;fme.buildItemProps,fme.quickEditFormRef,fme.quickEditFormItemRef;var pme=__rest$14(fme,["buildItemProps","quickEditFormRef","quickEditFormItemRef"]);return!ime||!rme||!(typeof ime=="object"&&(ime!=null&&ime.isQuickEditFormMode))&&ome===!1||dme?React__default.createElement(eme,__assign$3({},pme,{formItemRef:this.formItemRef})):ime.mode==="inline"||ime.isFormMode?React__default.createElement(eme,__assign$3({},pme),this.renderInlineForm()):React__default.createElement(eme,__assign$3({},pme,{className:sme("Field--quickEditable",lme,{in:this.state.isOpened}),tabIndex:ime.focusable===!1?void 0:"0",onKeyUp:ume?noop$9:this.handleKeyUp}),React__default.createElement(eme,__assign$3({},pme,{contentsOnly:!0,noHoc:!0})),ume?null:cme("quick-edit-button",{type:"button",onClick:this.openQuickEdit,className:"Field-quickEditBtn",icon:ime.icon||"edit",level:"link"}),this.state.isOpened?this.renderPopOver():null)},ame.ComposedComponent=eme,ame}(React__default.PureComponent);return hoistNonReactStatics($P,eme),$P}};function InlineFormItem(x_){var eme,$P=x_.render,tme=x_.schema;x_.data;var ame=x_.onChange,nme=x_.onBulkChange,rme=x_.formItemRef,ime=x_.canAccessSuperData;return ime&&React__default.useEffect(function(){var ome=getPropValue(x_);ome&&ome!==getPropValue(__assign$3(__assign$3({},x_),{canAccessSuperData:!1}))&&ame(ome)},[]),$P("inline-form-item",tme,{mode:"normal",value:(eme=getPropValue(x_))!==null&&eme!==void 0?eme:"",onChange:ame,onBulkChange:nme,formItemRef:rme,defaultStatic:!1,buildItemProps:null,quickEditFormRef:null,quickEditFormItemRef:null})}var HocCopyable=function(){return function(x_){var eme=function($P){__extends$2(tme,$P);function tme(){return $P!==null&&$P.apply(this,arguments)||this}return tme.prototype.handleClick=function(ame){var nme=this.props,rme=nme.env,ime=nme.copyFormat;rme.copy&&rme.copy(ame,{format:ime})},tme.prototype.render=function(){var ame=this.props,nme=ame.name,rme=ame.className,ime=ame.data,ome=ame.noHoc,lme=ame.classnames,sme=ame.translate,cme=ame.env,dme=ame.tooltipContainer,ume=this.props.copyable;if(ume&&!ome){var fme=filter$1(ume.content||"${"+nme+" | raw }",ime),pme=(ume==null?void 0:ume.tooltip)!=null?filter$1(ume.tooltip,ime):ume==null?void 0:ume.tooltip;if(fme)return React__default.createElement(x_,__assign$3({},this.props,{className:lme("Field--copyable",rme)}),React__default.createElement(x_,__assign$3({},this.props,{contentsOnly:!0,noHoc:!0})),React__default.createElement(TooltipWrapper$1,{placement:"right",tooltip:pme??sme("Copyable.tip"),trigger:"hover",container:dme||(cme==null?void 0:cme.getModalContainer)},React__default.createElement("a",{key:"edit-btn",className:lme("Field-copyBtn"),onClick:this.handleClick.bind(this,fme)},React__default.createElement(Icon$1,{icon:"copy",className:"icon"}))))}return React__default.createElement(x_,__assign$3({},this.props))},tme.ComposedComponent=x_,tme}(React__default.PureComponent);return hoistNonReactStatics(eme,x_),eme}},HocPopOver=function(x_){return x_===void 0&&(x_={}),function(eme){var $P=null,tme=function(ame){__extends$2(nme,ame);function nme(rme){var ime=ame.call(this,rme)||this;return ime.openPopOver=ime.openPopOver.bind(ime),ime.closePopOver=ime.closePopOver.bind(ime),ime.closePopOverLater=ime.closePopOverLater.bind(ime),ime.clearCloseTimer=ime.clearCloseTimer.bind(ime),ime.targetRef=ime.targetRef.bind(ime),ime.state={isOpened:!1},ime}return nme.prototype.targetRef=function(rme){this.target=rme},nme.prototype.openPopOver=function(rme){var ime=this,ome=this.props.onPopOverOpened;$P==null||$P.closePopOver(),$P=this;var lme=rme.currentTarget;this.getClassName()==="ellipsis"&&lme&&lme.offsetWidth>=lme.scrollWidth||this.setState({isOpened:!0},function(){return ome&&ome(ime.props.popOver)})},nme.prototype.closePopOver=function(){var rme=this;if(clearTimeout(this.timer),!!this.state.isOpened){$P=null;var ime=this.props.onPopOverClosed;this.setState({isOpened:!1},function(){return ime&&ime(rme.props.popOver)})}},nme.prototype.closePopOverLater=function(){this.timer=setTimeout(this.closePopOver,500)},nme.prototype.clearCloseTimer=function(){clearTimeout(this.timer)},nme.prototype.buildSchema=function(){var rme=this.props,ime=rme.popOver,ome=rme.name;rme.label;var lme=rme.translate,sme;return ime===!0?sme={type:"panel",body:"${".concat(ome,"}")}:ime&&(ime.mode==="dialog"||ime.mode==="drawer")?sme=__assign$3(__assign$3({actions:[{label:lme("Dialog.close"),type:"button",actionType:"cancel"}]},ime),{type:ime.mode}):typeof ime=="string"?sme={type:"panel",body:ime}:ime?sme=__assign$3({type:"panel"},ime):this.getClassName()==="ellipsis"&&(sme={type:"panel",body:"${".concat(ome,"}")}),sme||"error"},nme.prototype.getOffset=function(){var rme=this.props.popOver;if(!(!rme||typeof rme=="boolean"||!rme.offset))return{x:rme.offset.left||0,y:rme.offset.top||0}},nme.prototype.renderPopOver=function(){var rme=this,ime=this.props,ome=ime.popOver,lme=ime.render,sme=ime.popOverContainer,cme=ime.classnames,dme=ime.classPrefix;if(ome&&(ome.mode==="dialog"||ome.mode==="drawer"))return lme("popover-detail",this.buildSchema(),{show:!0,onClose:this.closePopOver,onConfirm:this.closePopOver});var ume=lme("popover-detail",this.buildSchema(),{className:cme(ome&&ome.className)});sme||(sme=function(){return reactDomExports.findDOMNode(rme)});var fme=this.getClassName(),pme=fme==="ellipsis"?"right-top-center-bottom":"center",hme=ome&&ome.position||"",bme=/^fixed\-/.test(hme);return bme?React__default.createElement(RootClose,{disabled:!this.state.isOpened,onRootClose:this.closePopOver},function(mme){return React__default.createElement("div",{className:cme("PopOverAble--fixed PopOverAble--".concat(hme)),onMouseLeave:(ome==null?void 0:ome.trigger)==="hover"?rme.closePopOver:void 0,onMouseEnter:(ome==null?void 0:ome.trigger)==="hover"?rme.clearCloseTimer:void 0,ref:mme},ume)}):React__default.createElement(Overlay,{container:sme,placement:hme||x_.position||pme,target:function(){return rme.target},onHide:this.closePopOver,rootClose:!0,show:!0},React__default.createElement(PopOver$1,{classPrefix:dme,className:cme("PopOverAble-popover",ome&&ome.popOverClassName),offset:this.getOffset(),onMouseLeave:(ome==null?void 0:ome.trigger)==="hover"||fme?this.closePopOver:void 0,onMouseEnter:(ome==null?void 0:ome.trigger)==="hover"||fme?this.clearCloseTimer:void 0},ume))},nme.prototype.getClassName=function(){var rme=this.props,ime=rme.textOverflow,ome=rme.getClassName;return ome?ome():ime==="default"?"":ime},nme.prototype.render=function(){var rme=this.props,ime=rme.popOver,ome=rme.popOverEnabled,lme=rme.popOverEnable,sme=rme.className,cme=rme.noHoc,dme=rme.width,ume=rme.classnames;rme.showIcon;var fme=this.getClassName();if(!ime&&!fme||ome===!1||cme||lme===!1)return React__default.createElement(eme,__assign$3({},this.props));var pme={},hme=ime==null?void 0:ime.trigger;return hme==="hover"||fme==="ellipsis"?(pme.onMouseEnter=this.openPopOver,pme.onMouseLeave=this.closePopOverLater):pme.onClick=this.openPopOver,React__default.createElement(eme,__assign$3({},this.props,{className:ume("Field--popOverAble",sme,{in:this.state.isOpened,"Field--popOverAble--flex":dme&&fme==="ellipsis"}),ref:x_.targetOutter?this.targetRef:void 0}),(ime==null?void 0:ime.showIcon)!==!1&&ime?React__default.createElement(React__default.Fragment,null,React__default.createElement(eme,__assign$3({},this.props,{contentsOnly:!0,noHoc:!0})),React__default.createElement("span",__assign$3({key:"popover-btn",className:ume("Field-popOverBtn")},pme,{ref:x_.targetOutter?void 0:this.targetRef}),React__default.createElement(Icon$1,{icon:"zoom-in",className:"icon"})),this.state.isOpened?this.renderPopOver():null):React__default.createElement(React__default.Fragment,null,React__default.createElement("div",__assign$3({className:ume("Field-popOverWrap",fme?"Field-popOverWrap-"+fme:"")},pme,{style:{width:fme&&dme},ref:x_.targetOutter?void 0:this.targetRef}),React__default.createElement(eme,__assign$3({},this.props,{contentsOnly:!0,noHoc:!0}))),this.state.isOpened?this.renderPopOver():null))},nme.ComposedComponent=eme,nme}(React__default.Component);return hoistNonReactStatics(tme,eme),tme}},TableCell=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.propsNeedRemove=[],$P}return eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className;$P.classNameExpr;var nme=$P.render,rme=$P.style,ime=rme===void 0?{}:rme,ome=$P.wrapperComponent,lme=$P.contentsOnly,sme=$P.column,cme=$P.value,dme=$P.data,ume=$P.children,fme=$P.width,pme=$P.align,hme=$P.vAlign,bme=$P.innerClassName;$P.label;var mme=$P.tabIndex,vme=$P.onKeyUp,gme=$P.rowSpan;$P.body,$P.tpl,$P.remark;var yme=$P.cellPrefix,_me=$P.cellAffix,$me=$P.isHead;$P.colIndex;var Cme=$P.row,Sme=$P.showBadge,Eme=$P.itemBadge,xme=$P.testIdBuilder,Tme=__rest$14($P,["classnames","className","classNameExpr","render","style","wrapperComponent","contentsOnly","column","value","data","children","width","align","vAlign","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","cellPrefix","cellAffix","isHead","colIndex","row","showBadge","itemBadge","testIdBuilder"]);$me?ome="th":ome=ome||"td";var Ome=ome==="td"||ome==="th",Rme=__assign$3(__assign$3({},sme),{visibleOn:"",hiddenOn:"",visible:!0,hidden:!1,style:sme.innerStyle,className:bme,type:sme&&sme.type||"plain"});Rme.type!=="button"&&Rme.type!=="dropdown-button"&&delete Rme.label;var Nme=ume||nme("field",Rme,__assign$3(__assign$3({},omit$1(Tme,Object.keys(Rme),this.propsNeedRemove)),{inputOnly:!0,value:cme,data:dme}));if(Ome?ime=omit$1(ime,["width","position","display"]):fme&&(ime=__assign$3(__assign$3({},ime),{width:ime&&ime.width||fme})),pme&&(ime=__assign$3(__assign$3({},ime),{textAlign:pme})),hme&&(ime=__assign$3(__assign$3({},ime),{verticalAlign:hme})),sme.backgroundScale){var Ime=sme.backgroundScale,Pme=Ime.min,Mme=Ime.max;isPureVariable(Pme)&&(Pme=resolveVariableAndFilter(Pme,dme,"| raw")),isPureVariable(Mme)&&(Mme=resolveVariableAndFilter(Mme,dme,"| raw")),typeof Pme>"u"&&(Pme=Math.min.apply(Math,__spreadArray([],__read$3(dme.rows.map(function(jme){return jme[sme.name]})),!1))),typeof Mme>"u"&&(Mme=Math.max.apply(Math,__spreadArray([],__read$3(dme.rows.map(function(jme){return jme[sme.name]})),!1)));var kme=new ColorScale(Pme,Mme,Ime.colors||["#FFEF9C","#FF7127"]),Bme=dme[sme.name];isPureVariable(Ime.source)&&(Bme=resolveVariableAndFilter(Ime.source,dme,"| raw"));var Dme=kme.getColor(Number(Bme)).toHexString();ime.background=Dme}return lme?Nme:React__default.createElement(ome,__assign$3({rowSpan:gme>1?gme:void 0,style:ime,className:tme(ame),tabIndex:mme,onKeyUp:vme},xme==null?void 0:xme.getChild("cell").getTestId()),Sme?React__default.createElement(Badge,{classnames:tme,badge:__assign$3(__assign$3({},Eme),{className:tme("Table-badge",Eme==null?void 0:Eme.className)}),data:Cme.data}):null,yme,Nme,_me)},eme.defaultProps={wrapperComponent:"td"},eme.propsList=["type","label","column","body","tpl","rowSpan","remark","contentsOnly"],eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.propsList=__spreadArray(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],__read$3(TableCell.propsList),!1),eme=__decorate$1([Renderer({type:"cell",name:"table-cell"}),HocPopOver({targetOutter:!0}),HocQuickEdit(),HocCopyable(),observer],eme),eme})(TableCell);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.defaultProps=__assign$3(__assign$3({},TableCell.defaultProps),{wrapperComponent:"div"}),eme=__decorate$1([Renderer({type:"field",name:"field"}),HocPopOver(),HocCopyable()],eme),eme})(TableCell);var baseDifference=_baseDifference,baseFlatten$1=_baseFlatten,baseUniq=_baseUniq;function baseXor$1(x_,eme,$P){var tme=x_.length;if(tme<2)return tme?baseUniq(x_[0]):[];for(var ame=-1,nme=Array(tme);++ame<tme;)for(var rme=x_[ame],ime=-1;++ime<tme;)ime!=ame&&(nme[ame]=baseDifference(nme[ame]||rme,x_[ime],eme,$P));return baseUniq(baseFlatten$1(nme,1),eme,$P)}var _baseXor=baseXor$1,arrayFilter$1=_arrayFilter,baseRest$1=_baseRest,baseXor=_baseXor,isArrayLikeObject$1=isArrayLikeObject_1,xor=baseRest$1(function(x_){return baseXor(arrayFilter$1(x_,isArrayLikeObject$1))}),xor_1=xor;const xor$1=getDefaultExportFromCjs(xor_1);var HeadCellFilterDropDown=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isOpened:!1,keyword:"",filterOptions:[]},tme.sourceInvalid=!1,tme.open=tme.open.bind(tme),tme.close=tme.close.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleCheck=tme.handleCheck.bind(tme),tme}return eme.prototype.componentDidMount=function(){var $P=this.props,tme=$P.filterable,ame=$P.data,nme=tme||{},rme=nme.source,ime=nme.options;if(rme&&isPureVariable(rme)){var ome=resolveVariableAndFilter(rme,this.props.superData,"| raw");this.setState({filterOptions:this.alterOptions(ome)})}else rme&&isEffectiveApi(rme,ame)?this.fetchOptions():(ime==null?void 0:ime.length)>0&&this.setState({filterOptions:this.alterOptions(tme.options)})},eme.prototype.componentDidUpdate=function($P,tme){var ame,nme,rme,ime,ome=this.props.name,lme=this.props;if(this.sourceInvalid=!1,$P.name!==lme.name||$P.filterable!==lme.filterable||$P.data!==lme.data){if(lme.filterable.source)this.sourceInvalid=isApiOutdated($P.filterable.source,lme.filterable.source,$P.data,lme.data);else if(lme.filterable.options)this.setState({filterOptions:this.alterOptions(lme.filterable.options||[])});else if(ome&&!this.state.filterOptions.length&&(Array.isArray((ame=lme.store)===null||ame===void 0?void 0:ame.data.itemsRaw)||Array.isArray((nme=lme.store)===null||nme===void 0?void 0:nme.data.items))){var sme=((rme=lme.store)===null||rme===void 0?void 0:rme.data.itemsRaw)||((ime=lme.store)===null||ime===void 0?void 0:ime.data.items),cme=[];sme.forEach(function(fme){var pme=getVariable(fme,ome);~cme.indexOf(pme)||cme.push(pme)}),cme.length&&this.setState({filterOptions:this.alterOptions(cme)})}}var dme=this.props.data?this.props.data[ome]:void 0,ume=$P.data?$P.data[ome]:void 0;dme!==ume&&this.state.filterOptions.length&&tme.filterOptions!==this.props.filterOptions&&this.setState({filterOptions:this.alterOptions(this.state.filterOptions)}),this.sourceInvalid&&this.fetchOptions()},eme.prototype.fetchOptions=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return $P=this.props,tme=$P.env,ame=$P.filterable,nme=$P.data,isEffectiveApi(ame.source,nme)?(rme=normalizeApi(ame.source),rme.cache=3e3,[4,tme.fetcher(rme,nme)]):[2];case 1:return ime=lme.sent(),ome=ime.data&&ime.data.options||[],this.setState({filterOptions:ime&&ime.data&&this.alterOptions(ome)}),[2]}})})},eme.prototype.alterOptions=function($P,tme){var ame=this;tme===void 0&&(tme="");var nme=this.props,rme=nme.data,ime=nme.filterable,ome=nme.name,lme=ime.labelField,sme=ime.valueField,cme=rme&&typeof rme[ome]<"u"?rme[ome]:"";return $P=normalizeOptions$1($P),$P=$P.map(function(dme){return dme.visible=!!matchSorter([dme],tme,{keys:[lme||"label",sme||"value"],threshold:matchSorter.rankings.CONTAINS}).length,dme}),ime.multiple?$P=$P.map(function(dme){return __assign$3(__assign$3({},dme),{selected:cme.split(",").indexOf(dme.value)>-1})}):$P=$P.map(function(dme){return __assign$3(__assign$3({},dme),{selected:ame.optionComparator(dme,cme)})}),$P},eme.prototype.optionComparator=function($P,tme){var ame=this.props.filterable;return isNumeric$1($P.value)?isNumeric$1(tme)?$P.value==tme:!1:(ame==null?void 0:ame.strictMode)===!0?$P.value===tme:$P.value==tme},eme.prototype.handleClickOutside=function(){this.close()},eme.prototype.open=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:return $P=this.props,tme=$P.filterable,ame=$P.source,tme.refreshOnOpen&&tme.source?ame&&isPureVariable(ame)?(nme=resolveVariableAndFilter(ame,this.props.superData,"| raw"),this.setState({filterOptions:this.alterOptions(nme)}),[3,3]):[3,1]:[3,3];case 1:return[4,this.fetchOptions()];case 2:rme.sent(),rme.label=3;case 3:return this.setState({isOpened:!0}),[2]}})})},eme.prototype.close=function(){this.setState({isOpened:!1})},eme.prototype.handleClick=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return tme=this.props,ame=tme.onQuery,nme=tme.name,rme=tme.data,ime=tme.dispatchEvent,[4,ime("columnFilter",createObject$1(rme,{filterName:nme,filterValue:$P}))];case 1:return ome=sme.sent(),ome!=null&&ome.prevented?[2]:(ame((lme={},lme[nme]=$P,lme),!1,!1,!0),this.close(),[2])}})})},eme.prototype.handleCheck=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return tme=this.props,ame=tme.data,nme=tme.name,rme=tme.onQuery,ime=tme.dispatchEvent,ame[nme]&&ame[nme]===$P?ome="":ome=ame[nme]&&xor$1(ame[nme].split(","),[$P]).join(",")||$P,[4,ime("columnFilter",createObject$1(ame,{filterName:nme,filterValue:ome}))];case 1:return lme=cme.sent(),lme!=null&&lme.prevented?[2]:(rme((sme={},sme[nme]=ome,sme)),[2])}})})},eme.prototype.handleReset=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return $P=this.props,tme=$P.name,ame=$P.dispatchEvent,nme=$P.data,rme=$P.onQuery,[4,ame("columnFilter",createObject$1(nme,{filterName:tme,filterValue:void 0}))];case 1:return ime=lme.sent(),ime!=null&&ime.prevented?[2]:(rme((ome={},ome[tme]=void 0,ome),!1,!1,!0),this.close(),[2])}})})},eme.prototype.handleSearch=function($P){var tme=this.state.filterOptions;this.setState({keyword:$P,filterOptions:this.alterOptions(tme,$P)})},eme.prototype.render=function(){var $P=this,tme,ame,nme,rme,ime=this.state,ome=ime.isOpened,lme=ime.filterOptions,sme=this.props,cme=sme.data,dme=sme.name,ume=sme.filterable,fme=sme.popOverContainer,pme=sme.classPrefix,hme=sme.classnames,bme=sme.translate,mme=(ume==null?void 0:ume.searchConfig)||{};return React__default.createElement("span",{className:hme("".concat(pme,"TableCell-filterBtn"),cme&&typeof cme[dme]<"u"?"is-active":"")},React__default.createElement("span",{onClick:this.open},React__default.createElement(Icon$1,{icon:"column-filter",className:"icon"})),ome?React__default.createElement(Overlay,{container:fme||function(){return reactDomExports.findDOMNode($P)},placement:"left-bottom-left-top right-bottom-right-top",target:fme?function(){return reactDomExports.findDOMNode($P).parentNode}:null,show:!0},React__default.createElement(PopOver$1,{classPrefix:pme,onHide:this.close,className:hme("".concat(pme,"TableCell-filterPopOver"),ume.className),overlay:!0},lme&&lme.length>0?React__default.createElement(React__default.Fragment,null,ume!=null&&ume.searchable?React__default.createElement(SearchBox$1,{className:hme("TableCell-filterPopOver-SearchBox",mme==null?void 0:mme.className),mini:(tme=mme.mini)!==null&&tme!==void 0?tme:!1,enhance:(ame=mme.enhance)!==null&&ame!==void 0?ame:!1,clearable:(nme=mme.clearable)!==null&&nme!==void 0?nme:!0,searchImediately:mme.searchImediately,placeholder:mme.placeholder,defaultValue:"",value:(rme=this.state.keyword)!==null&&rme!==void 0?rme:"",onSearch:this.handleSearch,onChange:noop$9}):null,React__default.createElement("ul",{className:hme("DropDown-menu")},ume.multiple?lme.map(function(vme,gme){return vme.visible&&React__default.createElement("li",{key:gme},React__default.createElement(Checkbox$1$1,{size:"sm",classPrefix:pme,onChange:$P.handleCheck.bind($P,vme.value),checked:vme.selected},vme.label))}):lme.map(function(vme,gme){return vme.visible&&React__default.createElement("li",{key:gme,className:hme({"is-active":vme.selected}),onClick:$P.handleClick.bind($P,vme.value)},vme.label)}),lme.some(function(vme){return vme.selected})?React__default.createElement("li",{key:"DropDown-menu-reset",onClick:this.handleReset.bind(this)},bme("reset")):null)):null)):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearch",null),eme}(React__default.Component);function HeadCellSearchDropDown(x_){var eme=this,$P=x_.searchable,tme=x_.name,ame=x_.label,nme=x_.onQuery,rme=x_.data,ime=x_.dispatchEvent,ome=x_.onAction,lme=x_.classnames,sme=x_.translate,cme=x_.classPrefix,dme=x_.popOverContainer,ume=x_.render,fme=x_.testIdBuilder,pme=React__default.createRef(),hme=__read$3(React__default.useMemo(function(){var Tme,Ome=[];$P===!0?Tme={title:"",body:[{type:"input-text",name:tme,placeholder:ame,clearable:!0}]}:$P&&(!$P.type&&($P.body||$P.tabs||$P.fieldSet)?Tme=__assign$3(__assign$3({title:""},$P),{body:Array.isArray($P.body)?$P.body.concat():void 0}):Tme={title:"",className:$P.formClassName,body:[__assign$3({type:$P.type||"input-text",name:$P.name||tme,placeholder:ame},$P)]});function Rme(Nme){Array.isArray(Nme.body)&&Nme.body.forEach(function(Ime){Ime.name&&Ome.push(Ime.name),Ime.extraName&&typeof Ime.extraName=="string"&&Ome.push(Ime.extraName),Rme(Ime)})}return Tme&&(Rme(Tme),Tme=__assign$3(__assign$3({},Tme),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:sme("reset"),actionType:"clear-and-submit"},{type:"button",label:sme("cancel"),actionType:"cancel"},{label:sme("search"),type:"submit",primary:!0}]})),[Tme||"error",Ome]},[$P,tme,ame]),2),bme=hme[0],mme=hme[1],vme=__read$3(React__default.useState(!1),2),gme=vme[0],yme=vme[1],_me=React__default.useCallback(function(){return yme(!0)},[]),$me=React__default.useCallback(function(){return yme(!1)},[]),Cme=React__default.useCallback(function(Tme){return __awaiter(eme,void 0,void 0,function(){var Ome;return __generator(this,function(Rme){switch(Rme.label){case 0:return[4,ime("columnSearch",createObject$1(rme,{searchName:tme,searchValue:Tme}))];case 1:return Ome=Rme.sent(),Ome!=null&&Ome.prevented?[2]:($me(),nme(Tme),[2])}})})},[]),Sme=React__default.useCallback(function(Tme,Ome,Rme){if(Ome.actionType==="cancel"||Ome.actionType==="close"){$me();return}if(Ome.actionType==="reset"){$me(),Eme();return}ome&&ome(Tme,Ome,Rme)},[]),Eme=React__default.useCallback(function(){var Tme=__assign$3({},rme);mme.forEach(function(Ome){return setVariable(Tme,Ome,void 0)}),nme(Tme)},[rme]),xme=React__default.useMemo(function(){return mme.some(function(Tme){return rme==null?void 0:rme[Tme]})},[rme]);return React__default.createElement("span",__assign$3({ref:pme,className:lme("".concat(cme,"TableCell-searchBtn"),xme?"is-active":"",gme?"is-opened":"")},fme==null?void 0:fme.getTestId()),React__default.createElement("span",{onClick:_me},React__default.createElement(Icon$1,{icon:"search",className:"icon"})),gme?React__default.createElement(Overlay,{container:dme||function(){return pme.current},placement:"left-bottom-left-top right-bottom-right-top",target:dme?function(){var Tme;return(Tme=pme.current)===null||Tme===void 0?void 0:Tme.parentNode}:null,show:!0},React__default.createElement(PopOver$1,{classPrefix:cme,onHide:$me,className:lme("".concat(cme,"TableCell-searchPopOver"),$P.className),overlay:!0},ume("quick-search-form",bme,{popOverContainer:dme,data:__assign$3({},rme),onSubmit:Cme,onAction:Sme}))):null)}const isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(x_,eme,$P,tme){x_.addEventListener?x_.addEventListener(eme,$P,tme):x_.attachEvent&&x_.attachEvent("on".concat(eme),$P)}function removeEvent(x_,eme,$P,tme){x_.removeEventListener?x_.removeEventListener(eme,$P,tme):x_.detachEvent&&x_.detachEvent("on".concat(eme),$P)}function getMods(x_,eme){const $P=eme.slice(0,eme.length-1);for(let tme=0;tme<$P.length;tme++)$P[tme]=x_[$P[tme].toLowerCase()];return $P}function getKeys(x_){typeof x_!="string"&&(x_=""),x_=x_.replace(/\s/g,"");const eme=x_.split(",");let $P=eme.lastIndexOf("");for(;$P>=0;)eme[$P-1]+=",",eme.splice($P,1),$P=eme.lastIndexOf("");return eme}function compareArray(x_,eme){const $P=x_.length>=eme.length?x_:eme,tme=x_.length>=eme.length?eme:x_;let ame=!0;for(let nme=0;nme<$P.length;nme++)tme.indexOf($P[nme])===-1&&(ame=!1);return ame}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let x_=1;x_<20;x_++)_keyMap["f".concat(x_)]=111+x_;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=x_=>_keyMap[x_.toLowerCase()]||_modifier[x_.toLowerCase()]||x_.toUpperCase().charCodeAt(0),getKey=x_=>Object.keys(_keyMap).find(eme=>_keyMap[eme]===x_),getModifier=x_=>Object.keys(_modifier).find(eme=>_modifier[eme]===x_);function setScope(x_){_scope=x_||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(x_=>getKey(x_)||getModifier(x_)||String.fromCharCode(x_))}function getAllKeyCodes(){const x_=[];return Object.keys(_handlers).forEach(eme=>{_handlers[eme].forEach($P=>{let{key:tme,scope:ame,mods:nme,shortcut:rme}=$P;x_.push({scope:ame,shortcut:rme,mods:nme,keys:tme.split("+").map(ime=>code(ime))})})}),x_}function filter(x_){const eme=x_.target||x_.srcElement,{tagName:$P}=eme;let tme=!0;const ame=$P==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(eme.type);return(eme.isContentEditable||(ame||$P==="TEXTAREA"||$P==="SELECT")&&!eme.readOnly)&&(tme=!1),tme}function isPressed(x_){return typeof x_=="string"&&(x_=code(x_)),_downKeys.indexOf(x_)!==-1}function deleteScope(x_,eme){let $P,tme;x_||(x_=getScope());for(const ame in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,ame))for($P=_handlers[ame],tme=0;tme<$P.length;)$P[tme].scope===x_?$P.splice(tme,1).forEach(rme=>{let{element:ime}=rme;return removeKeyEvent(ime)}):tme++;getScope()===x_&&setScope(eme||"all")}function clearModifier(x_){let eme=x_.keyCode||x_.which||x_.charCode;const $P=_downKeys.indexOf(eme);if($P>=0&&_downKeys.splice($P,1),x_.key&&x_.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(eme===93||eme===224)&&(eme=91),eme in _mods){_mods[eme]=!1;for(const tme in _modifier)_modifier[tme]===eme&&(hotkeys[tme]=!1)}}function unbind(x_){if(typeof x_>"u")Object.keys(_handlers).forEach(ame=>{Array.isArray(_handlers[ame])&&_handlers[ame].forEach(nme=>eachUnbind(nme)),delete _handlers[ame]}),removeKeyEvent(null);else if(Array.isArray(x_))x_.forEach(ame=>{ame.key&&eachUnbind(ame)});else if(typeof x_=="object")x_.key&&eachUnbind(x_);else if(typeof x_=="string"){for(var eme=arguments.length,$P=new Array(eme>1?eme-1:0),tme=1;tme<eme;tme++)$P[tme-1]=arguments[tme];let[ame,nme]=$P;typeof ame=="function"&&(nme=ame,ame=""),eachUnbind({key:x_,scope:ame,method:nme,splitKey:"+"})}}const eachUnbind=x_=>{let{key:eme,scope:$P,method:tme,splitKey:ame="+"}=x_;getKeys(eme).forEach(rme=>{const ime=rme.split(ame),ome=ime.length,lme=ime[ome-1],sme=lme==="*"?"*":code(lme);if(!_handlers[sme])return;$P||($P=getScope());const cme=ome>1?getMods(_modifier,ime):[],dme=[];_handlers[sme]=_handlers[sme].filter(ume=>{const pme=(tme?ume.method===tme:!0)&&ume.scope===$P&&compareArray(ume.mods,cme);return pme&&dme.push(ume.element),!pme}),dme.forEach(ume=>removeKeyEvent(ume))})};function eventHandler(x_,eme,$P,tme){if(eme.element!==tme)return;let ame;if(eme.scope===$P||eme.scope==="all"){ame=eme.mods.length>0;for(const nme in _mods)Object.prototype.hasOwnProperty.call(_mods,nme)&&(!_mods[nme]&&eme.mods.indexOf(+nme)>-1||_mods[nme]&&eme.mods.indexOf(+nme)===-1)&&(ame=!1);(eme.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||ame||eme.shortcut==="*")&&(eme.keys=[],eme.keys=eme.keys.concat(_downKeys),eme.method(x_,eme)===!1&&(x_.preventDefault?x_.preventDefault():x_.returnValue=!1,x_.stopPropagation&&x_.stopPropagation(),x_.cancelBubble&&(x_.cancelBubble=!0)))}}function dispatch(x_,eme){const $P=_handlers["*"];let tme=x_.keyCode||x_.which||x_.charCode;if(!hotkeys.filter.call(this,x_))return;if((tme===93||tme===224)&&(tme=91),_downKeys.indexOf(tme)===-1&&tme!==229&&_downKeys.push(tme),["ctrlKey","altKey","shiftKey","metaKey"].forEach(ime=>{const ome=modifierMap[ime];x_[ime]&&_downKeys.indexOf(ome)===-1?_downKeys.push(ome):!x_[ime]&&_downKeys.indexOf(ome)>-1?_downKeys.splice(_downKeys.indexOf(ome),1):ime==="metaKey"&&x_[ime]&&_downKeys.length===3&&(x_.ctrlKey||x_.shiftKey||x_.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(ome))))}),tme in _mods){_mods[tme]=!0;for(const ime in _modifier)_modifier[ime]===tme&&(hotkeys[ime]=!0);if(!$P)return}for(const ime in _mods)Object.prototype.hasOwnProperty.call(_mods,ime)&&(_mods[ime]=x_[modifierMap[ime]]);x_.getModifierState&&!(x_.altKey&&!x_.ctrlKey)&&x_.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const ame=getScope();if($P)for(let ime=0;ime<$P.length;ime++)$P[ime].scope===ame&&(x_.type==="keydown"&&$P[ime].keydown||x_.type==="keyup"&&$P[ime].keyup)&&eventHandler(x_,$P[ime],ame,eme);if(!(tme in _handlers))return;const nme=_handlers[tme],rme=nme.length;for(let ime=0;ime<rme;ime++)if((x_.type==="keydown"&&nme[ime].keydown||x_.type==="keyup"&&nme[ime].keyup)&&nme[ime].key){const ome=nme[ime],{splitKey:lme}=ome,sme=ome.key.split(lme),cme=[];for(let dme=0;dme<sme.length;dme++)cme.push(code(sme[dme]));cme.sort().join("")===_downKeys.sort().join("")&&eventHandler(x_,ome,ame,eme)}}function hotkeys(x_,eme,$P){_downKeys=[];const tme=getKeys(x_);let ame=[],nme="all",rme=document,ime=0,ome=!1,lme=!0,sme="+",cme=!1,dme=!1;for($P===void 0&&typeof eme=="function"&&($P=eme),Object.prototype.toString.call(eme)==="[object Object]"&&(eme.scope&&(nme=eme.scope),eme.element&&(rme=eme.element),eme.keyup&&(ome=eme.keyup),eme.keydown!==void 0&&(lme=eme.keydown),eme.capture!==void 0&&(cme=eme.capture),typeof eme.splitKey=="string"&&(sme=eme.splitKey),eme.single===!0&&(dme=!0)),typeof eme=="string"&&(nme=eme),dme&&unbind(x_,nme);ime<tme.length;ime++)x_=tme[ime].split(sme),ame=[],x_.length>1&&(ame=getMods(_modifier,x_)),x_=x_[x_.length-1],x_=x_==="*"?"*":code(x_),x_ in _handlers||(_handlers[x_]=[]),_handlers[x_].push({keyup:ome,keydown:lme,scope:nme,mods:ame,shortcut:tme[ime],method:$P,key:tme[ime],splitKey:sme,element:rme});if(typeof rme<"u"&&window){if(!elementEventMap.has(rme)){const ume=function(){let pme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(pme,rme)},fme=function(){let pme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(pme,rme),clearModifier(pme)};elementEventMap.set(rme,{keydownListener:ume,keyupListenr:fme,capture:cme}),addEvent(rme,"keydown",ume,cme),addEvent(rme,"keyup",fme,cme)}if(!winListendFocus){const ume=()=>{_downKeys=[]};winListendFocus={listener:ume,capture:cme},addEvent(window,"focus",ume,cme)}}}function trigger(x_){let eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach($P=>{_handlers[$P].filter(ame=>ame.scope===eme&&ame.shortcut===x_).forEach(ame=>{ame&&ame.method&&ame.method()})})}function removeKeyEvent(x_){const eme=Object.values(_handlers).flat();if(eme.findIndex(tme=>{let{element:ame}=tme;return ame===x_})<0){const{keydownListener:tme,keyupListenr:ame,capture:nme}=elementEventMap.get(x_)||{};tme&&ame&&(removeEvent(x_,"keyup",ame,nme),removeEvent(x_,"keydown",tme,nme),elementEventMap.delete(x_))}if((eme.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(ame=>{const{keydownListener:nme,keyupListenr:rme,capture:ime}=elementEventMap.get(ame)||{};nme&&rme&&(removeEvent(ame,"keyup",rme,ime),removeEvent(ame,"keydown",nme,ime),elementEventMap.delete(ame))}),elementEventMap.clear(),Object.keys(_handlers).forEach(ame=>delete _handlers[ame]),winListendFocus)){const{listener:ame,capture:nme}=winListendFocus;removeEvent(window,"focus",ame,nme),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const x_ in _api)Object.prototype.hasOwnProperty.call(_api,x_)&&(hotkeys[x_]=_api[x_]);if(typeof window<"u"){const x_=window.hotkeys;hotkeys.noConflict=eme=>(eme&&window.hotkeys===hotkeys&&(window.hotkeys=x_),hotkeys),window.hotkeys=hotkeys}function filterContents(x_,eme){if(typeof x_=="string")return filter$1(x_,eme);if(x_){var $P=x_.title,tme=x_.content,ame=x_.body,nme=__rest$14(x_,["title","content","body"]);return $P||tme||ame?__assign$3(__assign$3({},nme),{title:filter$1($P,eme),content:tme||ame?filter$1(tme||ame||"",eme):void 0}):void 0}return x_}var Remark=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.showModalTip=function($P){var tme=this.props,ame=tme.onAction,nme=tme.data;return function(rme){ame&&ame(rme,{actionType:"dialog",dialog:{title:$P&&typeof $P!="string"?$P.title:"",body:$P&&typeof $P!="string"?$P.content:$P,actions:[]}},nme)}},eme.prototype.renderLabel=function($P,tme,ame,nme){var rme=nme?"Remark-icon--".concat(nme):void 0;return React__default.createElement(React__default.Fragment,null,tme?React__default.createElement("span",null,tme):null,React__default.createElement("span",{className:ame("Remark-icon",rme)},React__default.createElement(Icon$1,{cx:ame,icon:$P||"question-mark"})))},eme.prototype.render=function(){var $P,tme,ame,nme=this.props,rme=nme.className,ime=nme.style,ome=nme.icon,lme=nme.label,sme=nme.shape,cme=nme.tooltip,dme=nme.placement,ume=nme.rootClose,fme=nme.trigger,pme=nme.container,hme=nme.popOverContainer,bme=nme.classPrefix,mme=nme.classnames,vme=nme.content,gme=nme.data,yme=nme.env,_me=nme.tooltipClassName,$me=nme.mobileUI,Cme=($P=cme==null?void 0:cme.icon)!==null&&$P!==void 0?$P:ome,Sme=(tme=cme==null?void 0:cme.label)!==null&&tme!==void 0?tme:lme,Eme=(ame=cme==null?void 0:cme.shape)!==null&&ame!==void 0?ame:sme,xme=filterContents(cme||vme,gme);return $me?React__default.createElement("div",{className:mme("Remark",cme&&cme.className||rme||"Remark--warning"),style:ime,onClick:this.showModalTip(xme)},this.renderLabel(Cme,Sme,mme,Eme)):React__default.createElement(TooltipWrapper$1,{classPrefix:bme,classnames:mme,tooltip:xme,tooltipClassName:cme&&cme.tooltipClassName||_me,placement:cme&&cme.placement||dme,rootClose:cme&&cme.rootClose||ume,trigger:cme&&cme.trigger||fme,container:pme||hme||yme.getModalContainer,delay:cme&&cme.delay},React__default.createElement("div",{className:mme("Remark",cme&&cme.className||rme||"Remark--warning"),style:ime},this.renderLabel(Cme,Sme,mme,Eme)))},eme.propsList=[],eme.defaultProps={icon:"",trigger:["hover","focus"]},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"showModalTip",null),eme}(React__default.Component),Remark$1=themeable(Remark),RemarkRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"remark"})],eme),eme}(Remark);const Remark$2=Object.freeze(Object.defineProperty({__proto__:null,RemarkRenderer,default:Remark$1,filterContents},Symbol.toStringTag,{value:"Module"}));var ActionProps=["id","dialog","drawer","toast","url","link","confirmText","confirmTitle","tooltip","disabledTip","className","asyncApi","redirect","size","level","primary","feedback","api","blank","tooltipPlacement","to","cc","bcc","subject","body","content","required","type","actionType","label","icon","rightIcon","reload","target","close","messages","mergeData","index","copy","copyFormat","payload","requireSelected","countDown","fileName","isolateScope","downloadFileName"],createSyntheticEvent=function(x_){var eme=!1,$P=!1,tme=function(){eme=!0,x_.preventDefault()},ame=function(){$P=!0,x_.stopPropagation()};return{nativeEvent:x_,currentTarget:x_.currentTarget,target:x_.target,bubbles:x_.bubbles,cancelable:x_.cancelable,defaultPrevented:x_.defaultPrevented,eventPhase:x_.eventPhase,isTrusted:x_.isTrusted,preventDefault:tme,isDefaultPrevented:function(){return eme},stopPropagation:ame,isPropagationStopped:function(){return $P},persist:function(){},timeStamp:x_.timeStamp,type:x_.type}},allowedType=["button","submit","reset"],Action=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame,nme;tme=x_.call(this,$P)||this,tme.state={inCountDown:!1,countDownEnd:0,timeLeft:0},tme.localStorageKey="amis-countdownend-"+(tme.props.name||"")+(((nme=(ame=tme.props)===null||ame===void 0?void 0:ame.$schema)===null||nme===void 0?void 0:nme.id)||uuid$1());var rme=parseInt(localStorage.getItem(tme.localStorageKey)||"0");return rme&&tme.props.countDown&&Date.now()<rme&&(tme.state={inCountDown:!0,countDownEnd:rme,timeLeft:Math.floor((rme-Date.now())/1e3)},tme.handleCountDown()),tme}return eme.prototype.handleAction=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme=this;return __generator(this,function(mme){switch(mme.label){case 0:return tme=this.props,ame=tme.onAction,nme=tme.onActionSensor,rme=tme.disabled,ime=tme.countDown,ome=tme.env,$P.persist(),lme=this.props.onClick,typeof lme=="string"&&(lme=str2AsyncFunction(lme,"event","props")),cme=lme,cme?[4,lme($P,this.props)]:[3,2];case 1:cme=mme.sent(),mme.label=2;case 2:return sme=cme,rme||$P.isDefaultPrevented()||sme===!1||!ame||this.state.inCountDown?[2]:($P.preventDefault(),dme=pick$3(this.props,ActionProps),ume=dme.actionType,ume!=="ajax"&&ume!=="download"&&ume!=="add"&&(ome==null||ome.tracker({eventType:ume||this.props.type||"click",eventData:omit$1(dme,["type","actionType","tooltipPlacement"])},this.props)),ume==="download"&&(dme.actionType="ajax",fme=normalizeApi(dme.api),fme.responseType="blob",fme.downloadFileName=dme.downloadFileName,dme.api=fme),pme=ame($P,dme),pme!=null&&pme.then?(nme==null||nme(pme),[4,pme]):[3,4]);case 3:mme.sent(),mme.label=4;case 4:return ime&&(hme=Date.now()+ime*1e3,this.setState({countDownEnd:hme,inCountDown:!0,timeLeft:ime}),localStorage.setItem(this.localStorageKey,String(hme)),setTimeout(function(){bme.handleCountDown()},1e3)),[2]}})})},eme.prototype.handleCountDown=function(){var $P=this,tme=Math.floor((this.state.countDownEnd-Date.now())/1e3);tme<=0?this.setState({inCountDown:!1,timeLeft:tme}):(this.setState({timeLeft:tme}),setTimeout(function(){$P.handleCountDown()},1e3))},eme.prototype.componentDidMount=function(){var $P=this,tme=this.props.hotKey;tme&&hotkeys(tme,function(ame){ame.preventDefault();var nme=new MouseEvent("click",{bubbles:!0,cancelable:!0});$P.handleAction(createSyntheticEvent(nme))})},eme.prototype.componentWillUnmount=function(){var $P=this.props.hotKey;$P&&hotkeys.unbind($P)},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.type,nme=tme.iconClassName,rme=tme.rightIconClassName,ime=tme.loadingClassName,ome=tme.primary,lme=tme.size,sme=tme.level,cme=tme.countDownTpl,dme=tme.block,ume=tme.className,fme=tme.style,pme=tme.componentClass,hme=tme.tooltip,bme=tme.disabledTip,mme=tme.tooltipPlacement,vme=tme.actionType,gme=tme.link,yme=tme.data,_me=tme.translate,$me=tme.activeClassName,Cme=tme.isCurrentUrl,Sme=tme.isMenuItem,Eme=tme.active,xme=tme.activeLevel,Tme=tme.tooltipTrigger,Ome=tme.tooltipContainer,Rme=tme.tooltipRootClose,Nme=tme.loading,Ime=tme.body,Pme=tme.render,Mme=tme.onMouseEnter,kme=tme.onMouseLeave,Bme=tme.classnames,Dme=tme.classPrefix,jme=tme.loadingConfig,Vme=tme.themeCss,Wme=tme.wrapperCustomStyle,Lme=tme.css,zme=tme.id,Ume=tme.testIdBuilder,Gme=tme.env;if(vme!=="email"&&Ime)return React__default.createElement(TooltipWrapper$1,{classPrefix:Dme,classnames:Bme,placement:mme,tooltip:hme,container:Ome,trigger:Tme,rootClose:Rme},React__default.createElement("div",{className:Bme("Action",ume),style:fme,onClick:this.handleAction,onMouseEnter:Mme,onMouseLeave:kme},Pme("body",Ime)));var Jme=this.props.label,Yme=this.props.disabled,Qme=!!Eme;vme==="link"&&!Qme&&gme&&Cme&&(Qme=Cme(gme)),this.state.inCountDown&&(Jme=filterContents(_me(cme),__assign$3(__assign$3({},yme),{timeLeft:this.state.timeLeft})),Yme=!0);var Xme=this.props.icon,Kme=this.props.rightIcon;typeof Xme=="string"&&(Xme=filter$1(this.props.icon,yme)),typeof Kme=="string"&&(Kme=filter$1(this.props.rightIcon,yme));var Zme=React__default.createElement(Icon$1,{cx:Bme,icon:Xme,className:"Button-icon",classNameProp:Bme(nme,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"iconClassName",id:zme,themeCss:Vme||Lme})))}),nbe=React__default.createElement(Icon$1,{cx:Bme,icon:Kme,className:"Button-icon",classNameProp:Bme(rme,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"iconClassName",id:zme,themeCss:Vme||Lme})))});return React__default.createElement(React__default.Fragment,null,React__default.createElement(Button$1,{loadingConfig:jme,className:Bme(ume,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:zme,themeCss:Wme})),setThemeClassName(__assign$3(__assign$3({},this.props),{name:"className",id:zme,themeCss:Vme||Lme})),($P={},$P[$me||"is-active"]=Qme,$P)),testIdBuilder:Ume,style:fme,size:lme,level:xme&&Qme?xme:filter$1(sme,yme)||(ome?"primary":void 0),loadingClassName:ime,loading:Nme,onClick:this.handleAction,onMouseEnter:Mme,onMouseLeave:kme,type:ame&&~allowedType.indexOf(ame)?ame:"button",disabled:Yme,componentClass:Sme?"a":pme,overrideClassName:Sme,tooltip:filterContents(hme,yme),disabledTip:filterContents(bme,yme),tooltipPlacement:mme,tooltipContainer:Ome,tooltipTrigger:Tme,tooltipRootClose:Rme,block:dme,iconOnly:!!(Xme&&!Jme&&sme!=="link")},Nme?"":Zme,Jme?React__default.createElement("span",null,filter$1(String(Jme),yme)):null,nbe),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{themeCss:Vme||Lme,classNames:[{key:"className",weights:{hover:{suf:":not(:disabled):not(.is-disabled)"},active:{suf:":not(:disabled):not(.is-disabled)"}}},{key:"iconClassName",weights:{default:{important:!0},hover:{important:!0,suf:":not(:disabled):not(.is-disabled)"},active:{important:!0,suf:":not(:disabled):not(.is-disabled)"}}}],wrapperCustomStyle:Wme,id:zme},env:Gme})))},eme.defaultProps={type:"button",componentClass:"button",tooltipPlacement:"bottom",activeClassName:"is-active",countDownTpl:"Action.countDown",countDown:0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleAction",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleCountDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"componentDidMount",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"componentWillUnmount",null),eme}(React__default.Component),Action$1=themeable(Action),ActionRenderer=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return tme.registerComponent(ame),ame}return eme.prototype.componentWillUnmount=function(){var $P=this.context;$P.unRegisterComponent(this)},eme.prototype.doAction=function($P,tme){var ame=$P==null?void 0:$P.actionType;ame==="click"&&this.handleAction(ame,$P)},eme.prototype.handleAction=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,pme;return __generator(this,function(hme){switch(hme.label){case 0:return ame=this.props,nme=ame.env,rme=ame.onAction,ime=ame.data,ome=ame.ignoreConfirm,lme=ame.dispatchEvent,sme=ame.$schema,cme=ime,(tme==null?void 0:tme.actionType)==="click"&&isObject$8(tme==null?void 0:tme.args)&&(cme=createObject$1(ime,tme.args)),dme=sme.onEvent&&Object.keys(sme.onEvent).length,ume="",(!ome||dme)&&tme.confirmText&&nme.confirm&&(ume=filter$1(tme.confirmText,cme))?[4,nme.confirm(ume,filter$1(tme.confirmTitle,cme)||void 0)]:[3,6];case 1:return fme=hme.sent(),fme?[4,lme($P,cme,this)]:[3,4];case 2:return pme=hme.sent(),pme!=null&&pme.prevented?[2]:[4,rme($P,__assign$3(__assign$3({},tme),{ignoreConfirm:!!dme}),cme,void 0,void 0,pme)];case 3:return hme.sent(),[3,5];case 4:if(tme.countDown)throw new Error("cancel");hme.label=5;case 5:return[3,9];case 6:return[4,lme($P,cme)];case 7:return pme=hme.sent(),pme!=null&&pme.prevented?[2]:[4,rme($P,tme,cme,void 0,void 0,pme)];case 8:hme.sent(),hme.label=9;case 9:return[2]}})})},eme.prototype.handleMouseEnter=function($P){var tme=this.props,ame=tme.dispatchEvent,nme=tme.data;ame($P,createObject$1(nme,{nativeEvent:$P}))},eme.prototype.handleMouseLeave=function($P){var tme=this.props,ame=tme.dispatchEvent,nme=tme.data;ame($P,createObject$1(nme,{nativeEvent:$P}))},eme.prototype.isCurrentAction=function($P){var tme=this.props,ame=tme.env,nme=tme.data;return ame.isCurrentUrl(filter$1($P,nme))},eme.prototype.render=function(){var $P=this.props,tme=$P.env,ame=$P.disabled,nme=$P.btnDisabled,rme=$P.loading,ime=__rest$14($P,["env","disabled","btnDisabled","loading"]);return React__default.createElement(Action,__assign$3({},ime,{env:tme,disabled:ame||nme,onAction:this.handleAction,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,loading:rme,isCurrentUrl:this.isCurrentAction,tooltipContainer:ime.popOverContainer||tme.getModalContainer}))},eme.contextType=ScopedContext,__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleAction",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"isCurrentAction",null),eme=__decorate$1([Renderer({type:"action",alias:["button","submit","reset"]}),withBadge,__metadata("design:paramtypes",[Object,Object])],eme),eme}(React__default.Component);const Action$2=Object.freeze(Object.defineProperty({__proto__:null,Action,ActionRenderer,createSyntheticEvent,default:Action$1},Symbol.toStringTag,{value:"Module"}));var TableRow=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleMouseEnter=function($P){var tme=this.props,ame=tme.item,nme=tme.itemIndex,rme=tme.onRowMouseEnter;rme==null||rme(ame,nme)},eme.prototype.handleMouseLeave=function($P){var tme=this.props,ame=tme.item,nme=tme.itemIndex,rme=tme.onRowMouseLeave;rme==null||rme(ame,nme)},eme.prototype.handleItemClick=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return isClickOnInput($P)?[2]:(ame=(tme=$P.nativeEvent)===null||tme===void 0?void 0:tme.shiftKey,$P.preventDefault(),$P.stopPropagation(),nme=this.props,rme=nme.itemAction,ime=nme.onAction,ome=nme.item,lme=nme.itemIndex,sme=nme.onCheck,cme=nme.onRowClick,dme=nme.checkOnItemClick,[4,cme==null?void 0:cme(ome,lme)]);case 1:return ume=fme.sent(),ume!=null&&ume.prevented?[2]:(rme?ime&&ime($P,rme,ome==null?void 0:ome.locals):ome.checkable&&ome.isCheckAvaiableOnClick&&dme&&(sme==null||sme(ome,!ome.checked,ame)),[2])}})})},eme.prototype.handleDbClick=function($P){var tme=this.props,ame=tme.item,nme=tme.itemIndex,rme=tme.onRowDbClick;rme==null||rme(ame,nme)},eme.prototype.handleAction=function($P,tme,ame){var nme=this.props,rme=nme.onAction,ime=nme.item;return rme&&rme($P,tme,ame||ime.locals)},eme.prototype.handleQuickChange=function($P,tme,ame,nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.item;ime&&ime(ome,$P,tme,ame,nme)},eme.prototype.handleChange=function($P,tme,ame,nme){if(!(!tme||typeof tme!="string")){var rme=this.props,ime=rme.item,ome=rme.onQuickChange,lme={},sme=keyToPath(tme);sme.length>1&&(lme[sme[0]]=__assign$3({},ime.data[sme[0]])),setVariable(lme,tme,$P),ome==null||ome(ime,lme,ame,nme)}},eme.prototype.render=function(){var $P,tme,ame=this,nme,rme=this.props,ime=rme.itemClassName,ome=rme.itemIndex,lme=rme.item,sme=rme.columns,cme=rme.renderCell;rme.children;var dme=rme.footableMode,ume=rme.ignoreFootableContent,fme=rme.footableColSpan,pme=rme.regionPrefix,hme=rme.checkOnItemClick;rme.classPrefix;var bme=rme.render,mme=rme.classnames,vme=rme.parent,gme=rme.itemAction,yme=rme.onEvent,_me=rme.expanded;rme.parentExpanded;var $me=rme.id,Cme=rme.newIndex,Sme=rme.isHover,Eme=rme.checked,xme=rme.modified,Tme=rme.moved,Ome=rme.depth,Rme=rme.expandable,Nme=rme.appeard;rme.checkdisable;var Ime=rme.trRef;rme.isNested;var Pme=rme.testIdBuilder,Mme=rme.rowPath,kme=__rest$14(rme,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","ignoreFootableContent","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render","classnames","parent","itemAction","onEvent","expanded","parentExpanded","id","newIndex","isHover","checked","modified","moved","depth","expandable","appeard","checkdisable","trRef","isNested","testIdBuilder","rowPath"]);return dme?_me?React__default.createElement("tr",{ref:Ime,"data-id":$me,"data-index":Cme,onClick:hme||gme||yme!=null&&yme.rowClick?this.handleItemClick:void 0,onDoubleClick:this.handleDbClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:mme("Table-table-tr",ime,($P={"is-hovered":Sme,"is-checked":Eme,"is-modified":xme,"is-moved":Tme},$P["Table-tr--hasItemAction"]=gme,$P["Table-tr--odd"]=ome%2===0,$P["Table-tr--even"]=ome%2===1,$P))},React__default.createElement("td",{className:mme("Table-foot"),colSpan:fme},React__default.createElement("table",{className:mme("Table-footTable")},React__default.createElement("tbody",null,ume?sme.map(function(Bme){return React__default.createElement("tr",{key:Bme.index},Bme.label!==!1?React__default.createElement("th",null):null,React__default.createElement("td",null))}):sme.map(function(Bme){return React__default.createElement("tr",{key:Bme.index},Bme.label!==!1?React__default.createElement("th",null,bme("".concat(pme).concat(ome,"/").concat(Bme.index,"/tpl"),Bme.label)):null,Nme?cme("".concat(pme).concat(ome,"/").concat(Bme.index),Bme,lme,__assign$3(__assign$3({},kme),{width:null,rowIndex:ome,rowIndexPath:lme.path,colIndex:Bme.index,rowPath:Mme,key:Bme.index,onAction:ame.handleAction,onQuickChange:ame.handleQuickChange,onChange:ame.handleChange})):React__default.createElement("td",{key:Bme.index},React__default.createElement("div",{className:mme("Table-emptyBlock")}," ")))}))))):null:vme&&!vme.expanded?null:React__default.createElement("tr",__assign$3({ref:Ime,onClick:hme||gme||yme!=null&&yme.rowClick?this.handleItemClick:void 0,onDoubleClick:this.handleDbClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,"data-index":Ome===1?Cme:void 0,"data-id":$me,className:mme("Table-table-tr",ime,(tme={"is-hovered":Sme,"is-checked":Eme,"is-modified":xme,"is-moved":Tme,"is-expanded":_me&&Rme,"is-expandable":Rme},tme["Table-tr--hasItemAction"]=gme,tme["Table-tr--odd"]=ome%2===0,tme["Table-tr--even"]=ome%2===1,tme),"Table-tr--".concat(Ome,"th"))},(nme=Pme==null?void 0:Pme(Mme))===null||nme===void 0?void 0:nme.getTestId()),sme.map(function(Bme){return Nme?cme("".concat(ome,"/").concat(Bme.index),Bme,lme,__assign$3(__assign$3({},kme),{rowIndex:ome,colIndex:Bme.index,rowIndexPath:lme.path,rowPath:Mme,key:Bme.id,onAction:ame.handleAction,onQuickChange:ame.handleQuickChange,onChange:ame.handleChange})):Bme.name&&lme.rowSpans[Bme.name]===0?null:React__default.createElement("td",{key:Bme.id},React__default.createElement("div",{className:mme("Table-emptyBlock")}," "))}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleItemClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDbClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Action,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAction",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Boolean,Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleQuickChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String,Boolean,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),eme}(React__default.PureComponent),TableRow$1=observer(function(x_){var eme=x_.item,$P=x_.parent,tme=x_.store,ame=x_.columns,nme=tme.canAccessSuperData||ame.some(function(lme){return lme.pristine.canAccessSuperData}),rme=useInView({threshold:0,onChange:eme.markAppeared,skip:!eme.lazyRender}),ime=rme.ref,ome=rme.inView;return React__default.createElement(TableRow,__assign$3({},x_,{trRef:ime,expanded:eme.expanded,parentExpanded:$P==null?void 0:$P.expanded,id:eme.id,newIndex:eme.newIndex,isHover:eme.isHover,partial:eme.partial,checked:eme.checked,modified:eme.modified,moved:eme.moved,depth:eme.depth,expandable:eme.expandable,checkdisable:eme.checkdisable,loading:eme.loading,error:eme.error,data:nme?eme.locals:eme.data,appeard:eme.lazyRender?eme.appeared||ome:!0,isNested:tme.isNested}))}),TableBody=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.componentDidMount=function(){this.props.store.initTableWidth()},eme.prototype.testIdBuilder=function($P){var tme;return(tme=this.props.testIdBuilder)===null||tme===void 0?void 0:tme.getChild("row-".concat($P))},eme.prototype.renderRows=function($P,tme,ame,nme){var rme=this;tme===void 0&&(tme=this.props.columns),ame===void 0&&(ame={});var ime=this.props,ome=ime.rowClassName,lme=ime.rowClassNameExpr,sme=ime.onAction,cme=ime.buildItemProps,dme=ime.checkOnItemClick,ume=ime.classnames,fme=ime.render,pme=ime.renderCell,hme=ime.onCheck,bme=ime.onQuickChange,mme=ime.footable,vme=ime.ignoreFootableContent,gme=ime.footableColumns,yme=ime.itemAction,_me=ime.onRowClick,$me=ime.onRowDbClick,Cme=ime.onRowMouseEnter,Sme=ime.onRowMouseLeave,Eme=ime.store;return $P.map(function(xme,Tme){var Ome=cme?cme(xme,Tme):null,Rme="".concat(nme?nme+"/":"").concat(Tme),Nme=[React__default.createElement(TableRow$1,__assign$3({},Ome,{testIdBuilder:rme.testIdBuilder,store:Eme,itemAction:yme,classnames:ume,checkOnItemClick:dme,key:xme.id,itemIndex:Tme,rowPath:Rme,item:xme,itemClassName:ume(lme?filter$1(lme,xme.locals):ome,{"is-last":xme.depth>1&&Tme===$P.length-1&&!xme.children.length}),columns:tme,renderCell:pme,render:fme,onAction:sme,onCheck:hme,onQuickChange:bme,onRowClick:_me,onRowDbClick:$me,onRowMouseEnter:Cme,onRowMouseLeave:Sme},ame))];return mme&&gme.length?xme.depth===1&&Nme.push(React__default.createElement(TableRow$1,__assign$3({},Ome,{store:Eme,itemAction:yme,classnames:ume,checkOnItemClick:dme,key:"foot-".concat(xme.id),itemIndex:Tme,rowPath:Rme,item:xme,itemClassName:ume(lme?filter$1(lme,xme.locals):ome),columns:gme,renderCell:pme,render:fme,onAction:sme,onCheck:hme,onRowClick:_me,onRowDbClick:$me,onRowMouseEnter:Cme,onRowMouseLeave:Sme,footableMode:!0,footableColSpan:tme.length,onQuickChange:bme,ignoreFootableContent:vme},ame,{testIdBuilder:rme.testIdBuilder}))):xme.children.length&&xme.expanded&&Nme.push.apply(Nme,__spreadArray([],__read$3(rme.renderRows(xme.children,tme,__assign$3(__assign$3({},ame),{parent:xme}),Rme)),!1)),Nme})},eme.prototype.renderSummaryRow=function($P,tme,ame){var nme,rme,ime=this.props,ome=ime.columns,lme=ime.render,sme=ime.data,cme=ime.classnames,dme=ime.rows,ume=ime.prefixRowClassName,fme=ime.affixRowClassName,pme=ime.store;if(!(Array.isArray(tme)&&tme.length))return null;var hme=0,bme=tme.map(function(_me,$me){var Cme=[hme+$me];if(_me.colSpan>1){for(var Sme=1;Sme<_me.colSpan;Sme++)Cme.push(hme+$me+Sme);hme+=_me.colSpan-1}var Eme=Cme.map(function(xme){return ome.find(function(Tme){return Tme.rawIndex===xme})}).filter(function(xme){return xme});return __assign$3(__assign$3({},_me),{colSpan:Eme.length,firstColumn:Eme[0],lastColumn:Eme[Eme.length-1]})}).filter(function(_me){return _me.colSpan});bme[0]&&typeof((nme=ome[0])===null||nme===void 0?void 0:nme.type)=="string"&&((rme=ome[0])===null||rme===void 0?void 0:rme.type.substring(0,2))==="__"&&(bme[0].firstColumn=ome[0],bme[0].colSpan=(bme[0].colSpan||1)+1);for(var mme=ome.length-bme.reduce(function(_me,$me){return _me+($me.colSpan||1)},0);mme<0;){var vme=bme.pop();if(!vme)break;mme+=vme.colSpan||1}if(mme){var vme={type:"html",html:"&nbsp;"},gme=pme.filteredColumns[pme.filteredColumns.length-1];bme.push(__assign$3(__assign$3({},vme),{colSpan:1+mme,firstColumn:gme,lastColumn:gme}))}var yme=createObject$1(sme,{items:dme.map(function(_me){return _me.locals})});return React__default.createElement("tr",{className:cme("Table-table-tr","is-summary",$P==="prefix"?ume:"",$P==="affix"?fme:""),key:"summary-".concat($P,"-").concat(ame||0)},bme.map(function(_me,$me){var Cme=_me.isHead?"th":"td",Sme=_me.firstColumn,Eme=_me.lastColumn,xme=__assign$3({},_me.style);_me.align&&(xme.textAlign=_me.align),_me.vAlign&&(xme.verticalAlign=_me.vAlign);var Tme=__read$3(pme.getStickyStyles(Eme.fixed==="right"?Eme:Sme,pme.filteredColumns,_me.colSpan),2),Ome=Tme[0],Rme=Tme[1];return Object.assign(xme,Ome),React__default.createElement(Cme,{key:$me,colSpan:_me.colSpan==1?void 0:_me.colSpan,style:xme,className:(_me.cellClassName||"")+" "+Rme},lme("summary-row/".concat($me),_me,{data:yme}))}))},eme.prototype.renderSummary=function($P,tme){var ame=this;return Array.isArray(tme)?tme.some(function(nme){return Array.isArray(nme)})?tme.map(function(nme,rme){return ame.renderSummaryRow($P,Array.isArray(nme)?nme:[nme],rme)}):this.renderSummaryRow($P,tme):null},eme.prototype.render=function(){var $P=this.props;$P.classnames;var tme=$P.className;$P.render;var ame=$P.rows,nme=$P.columns,rme=$P.rowsProps,ime=$P.prefixRow,ome=$P.affixRow;return $P.translate,React__default.createElement("tbody",{className:tme},ame.length?React__default.createElement(React__default.Fragment,null,this.renderSummary("prefix",ime),this.renderRows(ame,nme,rme),this.renderSummary("affix",ome)):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"testIdBuilder",null),eme=__decorate$1([observer],eme),eme}(React__default.Component);function ItemActionsWrapper(x_){var eme,$P=x_.classnames,tme=x_.children,ame=x_.store,nme=reactExports.useRef(null),rme=React__default.useCallback(function(ime){var ome,lme;ime===void 0&&(ime=((ome=ame.hoverRow)===null||ome===void 0?void 0:ome.id)||"");var sme=(lme=nme.current.parentElement)===null||lme===void 0?void 0:lme.querySelector("table"),cme=sme==null?void 0:sme.querySelector('tr[data-id="'.concat(ime,'"]'));if(cme){var dme=cme.getBoundingClientRect(),ume=dme.height,fme=dme.top-sme.getBoundingClientRect().top+parseInt(getComputedStyle(sme).marginTop,10);nme.current.style.cssText+="top: ".concat(fme,"px;height: ").concat(ume,"px; left: ").concat(sme.parentElement.scrollLeft,"px;")}},[]);return reactExports.useEffect(function(){var ime=ame.hoverRow;ime&&rme(ime.id)},[(eme=ame.hoverRow)===null||eme===void 0?void 0:eme.id]),reactExports.useEffect(function(){var ime=nme.current.parentElement;if(ime){var ome=function(){var lme;rme((lme=ame.hoverRow)===null||lme===void 0?void 0:lme.id)};return ime.addEventListener("scroll",ome),function(){ime.removeEventListener("scroll",ome)}}}),jsx("div",{className:$P("Table-itemActions-wrap"),ref:nme,children:tme})}var ItemActionsWrapper$1=observer(ItemActionsWrapper);function ColGroup(x_){var eme=x_.columns,$P=x_.store,tme=React__default.createRef();return React__default.useEffect(function(){var ame=tme.current.parentElement,nme=[];function rme(){var ome=[].slice.call(ame.querySelectorAll(":scope > thead > tr > *"));ome.some(function(lme,sme){return nme[sme]!==lme})&&(ime.disconnect(),nme=ome,ome.forEach(function(lme){ime.observe(lme)}))}var ime=new ResizeObserver(function(){rme(),$P.syncTableWidth()});return $P.initTableWidth(),$P.syncTableWidth(),rme(),function(){ime.disconnect()}},[eme.length]),(isSafari||typeof chromeVersion=="number"&&chromeVersion<91)&&React__default.useEffect(function(){if(tme.current){var ame=[].slice.call(tme.current.parentElement.querySelectorAll(":scope > thead > tr > th[data-index]"));ame.forEach(function(nme){var rme=parseInt(nme.getAttribute("data-index"),10),ime=$P.columns[rme],ome="",lme=-1;$P.columnWidthReady&&ime.width?lme=ime.width:ime.pristine.width&&(lme=ime.pristine.width),lme!==-1&&(ome+="width: ".concat(typeof lme=="number"?"".concat(lme,"px"):lme,";"),$P.tableLayout==="auto"&&(ome+="min-width: ".concat(typeof lme=="number"?"".concat(lme,"px"):lme,";")),nme.style.cssText=ome)})}},eme.map(function(ame){return ame.width}).concat($P.columnWidthReady)),React__default.createElement("colgroup",{ref:tme},eme.map(function(ame){var nme={};return $P.columnWidthReady&&ame.width?nme.width=ame.width:ame.pristine.width&&(nme.width=ame.pristine.width),$P.tableLayout==="auto"&&nme.width&&(nme.minWidth=nme.width),React__default.createElement("col",{"data-index":ame.index,style:nme,key:ame.id})}))}var ColGroup$1=observer(ColGroup);function renderItemActions(x_){var eme=x_.itemActions,$P=x_.render,tme=x_.store,ame=x_.classnames;if(!tme.hoverRow)return null;var nme=Array.isArray(eme)?eme.filter(function(rme){return!rme.hiddenOnHover}):[];return nme.length?React__default.createElement(ItemActionsWrapper$1,{store:tme,classnames:ame},React__default.createElement("div",{className:ame("Table-itemActions")},nme.map(function(rme,ime){return $P("itemAction/".concat(ime),__assign$3(__assign$3({},rme),{isMenuItem:!0}),{key:ime,item:tme.hoverRow,data:tme.hoverRow.locals,rowIndex:tme.hoverRow.index})}))):null}var TableContent=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.placeholder,ame=$P.classnames,nme=$P.render,rme=$P.className,ime=$P.columns,ome=$P.columnsGroup,lme=$P.onMouseMove,sme=$P.onScroll,cme=$P.tableRef,dme=$P.rows,ume=$P.renderHeadCell,fme=$P.renderCell,pme=$P.onCheck,hme=$P.onRowClick,bme=$P.onRowDbClick,mme=$P.onRowMouseEnter,vme=$P.onRowMouseLeave,gme=$P.rowClassName,yme=$P.onQuickChange,_me=$P.footable,$me=$P.footableColumns,Cme=$P.checkOnItemClick,Sme=$P.buildItemProps,Eme=$P.onAction,xme=$P.rowClassNameExpr,Tme=$P.affixRowClassName,Ome=$P.prefixRowClassName,Rme=$P.data,Nme=$P.prefixRow,Ime=$P.locale,Pme=$P.translate,Mme=$P.itemAction,kme=$P.affixRow,Bme=$P.store,Dme=$P.dispatchEvent,jme=$P.onEvent,Vme=$P.loading,Wme=$P.testIdBuilder,Lme=$P.children,zme=ame("Table-table",this.props.tableClassName),Ume=ime.every(function(Gme){return!Gme.label});return React__default.createElement("div",{onMouseMove:lme,className:ame("Table-content",rme),onScroll:sme},React__default.createElement("table",{ref:cme,className:ame(zme,Bme.tableLayout==="fixed"?"is-layout-fixed":void 0)},React__default.createElement(ColGroup$1,{columns:ime,store:Bme}),React__default.createElement("thead",null,ome.length?React__default.createElement("tr",null,ome.map(function(Gme,Jme){var Yme=__read$3(Bme.getStickyStyles(Gme,ome),2),Qme=Yme[0],Xme=Yme[1];return~["__checkme","__expandme"].indexOf(Gme.has[0].type)||Gme.has.length===1&&!/^__/.test(Gme.has[0].type)&&!Gme.has[0].groupName?ume(Gme.has[0],{"data-index":Gme.has[0].index,key:Jme,colSpan:Gme.colSpan,rowSpan:Gme.rowSpan,style:Qme,className:Xme}):React__default.createElement("th",{key:Jme,"data-index":Gme.index,colSpan:Gme.colSpan,rowSpan:Gme.rowSpan,style:Qme,className:Xme},Gme.label?nme("tpl",Gme.label):null)})):null,React__default.createElement("tr",{className:Ume?"fake-hide":""},ime.map(function(Gme){var Jme;return((Jme=ome.find(function(Yme){return~Yme.has.indexOf(Gme)}))===null||Jme===void 0?void 0:Jme.rowSpan)===2?null:ume(Gme,{"data-index":Gme.index,key:Gme.index})}))),dme.length?React__default.createElement(TableBody,{store:Bme,itemAction:Mme,classnames:ame,render:nme,renderCell:fme,onCheck:pme,onRowClick:hme,onRowDbClick:bme,onRowMouseEnter:mme,onRowMouseLeave:vme,onQuickChange:yme,footable:_me,footableColumns:$me,checkOnItemClick:Cme,buildItemProps:Sme,onAction:Eme,rowClassNameExpr:xme,rowClassName:gme,prefixRowClassName:Ome,affixRowClassName:Tme,rows:dme,columns:ime,locale:Ime,translate:Pme,prefixRow:Nme,affixRow:kme,data:Rme,testIdBuilder:Wme,rowsProps:{dispatchEvent:Dme,onEvent:jme}}):React__default.createElement("tbody",null,React__default.createElement("tr",{className:ame("Table-placeholder")},Vme?null:React__default.createElement("td",{colSpan:ime.length},typeof tme=="string"?React__default.createElement(React__default.Fragment,null,React__default.createElement(Icon$1,{icon:"desk-empty",className:ame("Table-placeholder-empty-icon","icon")}),Pme(tme||"placeholder.noData")):nme("placeholder",Pme(tme||"placeholder.noData")))))),Lme)},eme}(React__default.PureComponent),TableContent$1=observer(function(x_){var eme=x_.store;return React__default.createElement(TableContent,__assign$3({},x_,{columnWidthReady:eme.columnWidthReady,someChecked:eme.someChecked,allChecked:eme.allChecked,isSelectionThresholdReached:eme.isSelectionThresholdReached,orderBy:eme.orderBy,orderDir:eme.orderDir}))}),ColumnToggler$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isOpened:!1,enableSorting:!1,tempColumns:cloneDeep$1(tme.props.columns)},tme.open=tme.open.bind(tme),tme.close=tme.close.bind(tme),tme.toggle=tme.toggle.bind(tme),tme.domRef=tme.domRef.bind(tme),tme.dragRef=tme.dragRef.bind(tme),tme}return eme.prototype.componentDidMount=function(){this.props.defaultIsOpened&&this.setState({isOpened:!0})},eme.prototype.componentDidUpdate=function($P){anyChanged$1("activeToggaleColumns",$P,this.props)&&this.setState({tempColumns:cloneDeep$1(this.props.columns)})},eme.prototype.componentWillUnmount=function(){this.destroyDragging()},eme.prototype.domRef=function($P){this.target=$P},eme.prototype.toggle=function($P){$P.preventDefault(),this.setState({isOpened:!this.state.isOpened})},eme.prototype.open=function(){this.setState({isOpened:!0})},eme.prototype.close=function(){this.setState({isOpened:!1,enableSorting:!1,tempColumns:cloneDeep$1(this.props.columns)})},eme.prototype.swapColumnPosition=function($P,tme){var ame=this.state.tempColumns;ame[$P]=ame.splice(tme,1,ame[$P])[0],this.setState({tempColumns:ame})},eme.prototype.updateToggledColumn=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return rme=this.props,ime=rme.data,ome=rme.dispatchEvent,lme=this.state.tempColumns.concat(),lme.splice(tme,1,__assign$3(__assign$3({},$P),{toggled:ame})),[4,ome("columnToggled",createObject$1(ime,{columns:lme}))];case 1:return sme=cme.sent(),sme!=null&&sme.prevented?[2]:(this.setState({tempColumns:lme}),[2])}})})},eme.prototype.dragRef=function($P){var tme=this.state.enableSorting,ame=this.props.draggable;tme&&ame&&$P&&this.initDragging()},eme.prototype.initDragging=function(){var $P=this,tme=reactDomExports.findDOMNode(this),ame=this.props.classPrefix;this.sortable=new Sortable$1(tme.querySelector(".".concat(ame,"ColumnToggler-modal-content")),{group:"ColumnToggler-modal-content",animation:150,handle:".".concat(ame,"ColumnToggler-menuItem-dragBar"),ghostClass:"".concat(ame,"ColumnToggler-menuItem--dragging"),onEnd:function(nme){if(nme.newIndex!==nme.oldIndex){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item),$P.swapColumnPosition(nme.oldIndex,nme.newIndex)}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.onConfirm=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return $P=this.state.tempColumns,tme=this.props,ame=tme.onColumnToggle,nme=tme.data,rme=tme.dispatchEvent,[4,rme("columnToggled",createObject$1(nme,{columns:$P}))];case 1:return ime=ome.sent(),ime!=null&&ime.prevented?[2]:(ame&&ame(__spreadArray([],__read$3($P),!1)),this.setState({isOpened:!1,enableSorting:!1}),[2])}})})},eme.prototype.renderOuter=function(){var $P=this,tme,ame=this.props,nme=ame.popOverContainer,rme=ame.classnames,ime=ame.classPrefix,ome=ame.children,lme=ame.closeOnClick,sme=ame.closeOnOutside,cme=ame.mobileUI,dme=React__default.createElement(RootClose,{disabled:!this.state.isOpened,onRootClose:sme!==!1?this.close:noop$9},function(ume){return React__default.createElement("ul",{className:rme("ColumnToggler-menu",{"is-mobile":cme}),onClick:lme?$P.close:noop$9,ref:ume},ome)});return nme?React__default.createElement(Overlay,{container:nme,target:function(){return $P.target},show:!0},React__default.createElement(PopOver$1,{overlay:!0,onHide:this.close,classPrefix:ime,className:rme("ColumnToggler-popover"),style:{minWidth:(tme=this.target)===null||tme===void 0?void 0:tme.offsetWidth}},dme)):dme},eme.prototype.renderModal=function(){var $P=this,tme=this.props;tme.render;var ame=tme.classnames,nme=tme.classPrefix,rme=tme.modalContainer,ime=tme.draggable,ome=tme.overlay,lme=tme.translate,sme=tme.footerBtnSize,cme=tme.children,dme=tme.env,ume=this.state,fme=ume.enableSorting,pme=ume.tempColumns,hme=fme&&ime&&pme.length>1;return React__default.createElement(React__default.Fragment,null,React__default.createElement(FinalModal,{closeOnEsc:!0,onHide:this.close,show:this.state.isOpened,contentClassName:ame("ColumnToggler-modal"),container:rme||this.target,overlay:typeof ome=="boolean"?ome:!1},React__default.createElement("header",{className:ame("ColumnToggler-modal-header")},React__default.createElement("span",{className:ame("ColumnToggler-modal-title")},lme("Table.columnsVisibility")),React__default.createElement("a",{"data-tooltip":lme("Dialog.close"),"data-position":"left",className:ame("Modal-close"),onClick:this.close},React__default.createElement(Icon$1,{icon:"close",className:"icon"}))),!hme&&React__default.createElement("ul",{className:ame("ColumnToggler-modal-content")},cme),React__default.createElement("ul",{className:ame("ColumnToggler-modal-content"),ref:this.dragRef},Array.isArray(pme)?pme.map(function(bme,mme){return React__default.createElement(TooltipWrapper$1,{tooltipClassName:ame("ColumnToggler-tooltip"),placement:"top",tooltip:bme.label||"",trigger:fme?[]:"hover",key:bme.index,container:rme||(dme==null?void 0:dme.getModalContainer)},React__default.createElement("li",{className:ame("ColumnToggler-menuItem"),key:bme.index},hme?React__default.createElement(React__default.Fragment,null,React__default.createElement("a",{className:ame("ColumnToggler-menuItem-dragBar")},React__default.createElement(Icon$1,{icon:"drag",className:ame("icon")})),React__default.createElement("span",{className:ame("ColumnToggler-menuItem-label")},React__default.createElement("span",null,bme.label||"-"))):React__default.createElement(Checkbox$1$1,{size:"sm",labelClassName:ame("ColumnToggler-menuItem-label"),classPrefix:nme,checked:bme.toggled,disabled:!bme.toggable||fme,onChange:$P.updateToggledColumn.bind($P,bme,mme)},React__default.createElement("span",null,bme.label||"-"))))}):null),React__default.createElement("footer",{className:ame("ColumnToggler-modal-footer")},React__default.createElement("div",null,React__default.createElement(Button$1,{className:ame("ColumnToggler-modeSelect",{"is-actived":!fme}),onClick:function(){return $P.setState({enableSorting:!1})},level:"link"},lme("Table.toggleColumn")),React__default.createElement(Button$1,{className:ame("ColumnToggler-modeSelect",{"is-actived":fme}),onClick:function(){return $P.setState({enableSorting:!0},function(){return $P.state.enableSorting&&$P.props.draggable&&$P.initDragging()})},level:"link",disabled:pme.length<2},lme("sort"))),React__default.createElement("div",null,React__default.createElement(Button$1,{size:sme,className:"mr-3",onClick:this.close},lme("cancel")),React__default.createElement(Button$1,{size:sme,level:"primary",onClick:this.onConfirm},lme("confirm"))))))},eme.prototype.render=function(){var $P=this.props,tme=$P.tooltip,ame=$P.placement,nme=$P.tooltipContainer,rme=$P.tooltipTrigger,ime=$P.tooltipRootClose,ome=$P.disabledTip,lme=$P.block,sme=$P.disabled,cme=$P.btnDisabled,dme=$P.btnClassName,ume=$P.size,fme=$P.label,pme=$P.level,hme=$P.primary,bme=$P.className,mme=$P.classnames,vme=$P.align,gme=$P.iconOnly,yme=$P.icon,_me=$P.isActived,$me=$P.data,Cme=$P.draggable,Sme=$P.hideExpandIcon,Eme=$P.mobileUI,xme=React__default.createElement("button",{onClick:this.toggle,disabled:sme||cme,className:mme("Button",dme,typeof pme>"u"?"Button--default":pme?"Button--".concat(pme):"",{"Button--block":lme,"Button--primary":hme,"Button--iconOnly":gme},ume?"Button--size-".concat(ume):"")},React__default.createElement(Icon$1,{cx:mme,icon:yme||"columns",className:mme("icon",{"m-r-xs":!!fme,"m-r-none":!!yme})}),typeof fme=="string"?filter$1(fme,$me):fme,Sme||Cme?null:React__default.createElement("span",{className:mme("ColumnToggler-caret")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})));return React__default.createElement("div",{className:mme("ColumnToggler",{"ColumnToggler-block":lme,"ColumnToggler--alignRight":vme==="right","is-opened":this.state.isOpened,"is-actived":_me},bme),ref:this.domRef},Cme?xme:React__default.createElement(TooltipWrapper$1,{placement:ame,tooltip:sme||Eme?ome:tme,container:nme,trigger:rme,rootClose:ime},xme),this.state.isOpened?Cme?this.renderModal():this.renderOuter():null)},eme.defaultProps={placement:"top",tooltipTrigger:["hover","focus"],tooltipRootClose:!1,draggable:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"onConfirm",null),eme}(React__default.Component),loadDb=function(){return __vitePreload(()=>import("./CityDB-BE15Pmsw.js"),[])},getAbsoluteUrl=function(){var x_;return function(eme){return x_||(x_=document.createElement("a")),x_.href=eme,x_.href}}(),rgba2argb=memoize$4(function(x_){var eme="".concat(x_.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/).slice(1).map(function($P,tme){return(tme===3?Math.round(parseFloat($P)*255):parseFloat($P)).toString(16).padStart(2,"0").replace("NaN","")}).join(""));return eme.length===6?"FF"+eme:eme}),getCellStyleByClassName=memoize$4(function(x_){if(!x_)return{};var eme=document.getElementsByClassName(x_).item(0);if(eme){var $P=getComputedStyle(eme),tme={},ame={};if($P.color&&$P.color.indexOf("rgb")!==-1){var nme=rgba2argb($P.color);nme.startsWith("00")||(tme.color={argb:nme})}if($P.fontWeight&&parseInt($P.fontWeight)>=700&&(tme.bold=!0),$P.backgroundColor&&$P.backgroundColor.indexOf("rgb")!==-1){var nme=rgba2argb($P.backgroundColor);nme.startsWith("00")||(ame={type:"pattern",pattern:"solid",fgColor:{argb:nme}})}return{font:tme,fill:ame}}return{}}),applyCellStyle=function(x_,eme,$P,tme){var ame,nme,rme,ime,ome={};if($P.className)try{for(var lme=__values$1($P.className.split(/\s+/)),sme=lme.next();!sme.done;sme=lme.next()){var cme=sme.value,dme=getCellStyleByClassName(cme);dme&&(ome=__assign$3(__assign$3({},ome),dme))}}catch(hme){ame={error:hme}}finally{try{sme&&!sme.done&&(nme=lme.return)&&nme.call(lme)}finally{if(ame)throw ame.error}}if($P.classNameExpr){var ume=filter$1($P.classNameExpr,tme);if(ume)try{for(var fme=__values$1(ume.split(/\s+/)),pme=fme.next();!pme.done;pme=fme.next()){var cme=pme.value,dme=getCellStyleByClassName(cme);dme&&(ome=__assign$3(__assign$3({},ome),dme))}}catch(hme){rme={error:hme}}finally{try{pme&&!pme.done&&(ime=fme.return)&&ime.call(fme)}finally{if(rme)throw rme.error}}}ome.font&&Object.keys(ome.font).length>0&&(x_.getCell(eme).font=ome.font),ome.fill&&Object.keys(ome.fill).length>0&&(x_.getCell(eme).fill=ome.fill)},renderSummary=function(x_,eme,$P,tme){var ame,nme,rme,ime;if($P&&$P.length>0){var ome=$P[0],lme=$P;Array.isArray(ome)||(lme=[$P]);try{for(var sme=__values$1(lme),cme=sme.next();!cme.done;cme=sme.next()){var dme=cme.value;tme+=1;var ume=x_.getRow(tme),fme=0;try{for(var pme=(rme=void 0,__values$1(dme)),hme=pme.next();!hme.done;hme=pme.next()){var bme=hme.value;fme+=1,bme.text&&(ume.getCell(fme).value=bme.text),bme.tpl&&(ume.getCell(fme).value=removeHTMLTag(decodeEntity(filter$1(bme.tpl,eme)))),bme.colSpan&&(x_.mergeCells(tme,fme,tme,fme+bme.colSpan-1),fme+=bme.colSpan-1)}}catch(mme){rme={error:mme}}finally{try{hme&&!hme.done&&(ime=pme.return)&&ime.call(pme)}finally{if(rme)throw rme.error}}}}catch(mme){ame={error:mme}}finally{try{cme&&!cme.done&&(nme=sme.return)&&nme.call(sme)}finally{if(ame)throw ame.error}}}return tme};function getMap(x_,eme,$P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return nme=$P.pristine.map,rme=$P.pristine.source,rme?(ime=rme,isPureVariable(rme)?(nme=resolveVariableAndFilter(rme,ame,"| raw"),[3,4]):[3,1]):[3,4];case 1:return isEffectiveApi(rme,tme)?(ome=JSON.stringify(rme),ome in x_?(nme=x_[ome],[3,4]):[3,2]):[3,4];case 2:return[4,eme.fetcher(ime,ame)];case 3:lme=sme.sent(),lme.data&&(x_[ome]=lme.data,nme=lme.data),sme.label=4;case 4:return[2,nme]}})})}function exportExcel(x_,eme,$P,tme){var ame,nme,rme,ime;return tme===void 0&&(tme=!1),__awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Jme,Nme,Ime,Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme,Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe;return __generator(this,function(ube){switch(ube.label){case 0:return ome=eme.store,lme=eme.env,eme.classnames,sme=eme.translate,cme=eme.data,dme=eme.prefixRow,ume=eme.affixRow,fme=ome.exportColumns||[],pme=[],bme="data",typeof $P=="object"&&$P.api?(mme=$P.pageField||"page",vme=$P.perPageField||"perPage",gme=createObject$1(cme,__assign$3(__assign$3({},eme.query),(Xme={},Xme[mme]=cme.page||1,Xme[vme]=cme.perPage||10,Xme))),[4,lme.fetcher($P.api,gme,{autoAppend:!0,pageField:mme,perPageField:vme})]):[3,2];case 1:if(yme=ube.sent(),!yme.data)return lme.notify("warning",sme("placeholder.noData")),[2];if(Array.isArray(yme.data))pme=yme.data;else if(Array.isArray((ame=yme.data)===null||ame===void 0?void 0:ame.rows))pme=yme.data.rows;else if(Array.isArray((nme=yme.data)===null||nme===void 0?void 0:nme.items))pme=yme.data.items;else try{for(_me=__values$1(Object.keys(yme.data)),$me=_me.next();!$me.done;$me=_me.next())if(Cme=$me.value,yme.data.hasOwnProperty(Cme)&&Array.isArray(yme.data[Cme])){pme=yme.data[Cme];break}}catch(mbe){Kme={error:mbe}}finally{try{$me&&!$me.done&&(Zme=_me.return)&&Zme.call(_me)}finally{if(Kme)throw Kme.error}}return hme=TableStore.create(getSnapshot(ome)),hme.initRows(pme),pme=hme.rows,[3,3];case 2:pme=ome.rows,ube.label=3;case 3:if(typeof $P=="object"&&$P.filename&&(bme=filter$1($P.filename,cme,"| raw")),pme.length===0)return lme.notify("warning",sme("placeholder.noData")),[2];if(Sme=new x_.Workbook,Eme=Sme.addWorksheet("sheet",{properties:{defaultColWidth:15}}),Eme.views=[{state:"frozen",xSplit:0,ySplit:1}],xme=$P.columns,isPureVariable(xme)&&(xme=resolveVariableAndFilter(xme,cme,"| raw")),Tme=$P.exportColumns&&Array.isArray($P.exportColumns),Tme){fme=$P.exportColumns;try{for(Ome=__values$1(fme),Rme=Ome.next();!Rme.done;Rme=Ome.next())Jme=Rme.value,Jme.pristine=Jme}catch(mbe){nbe={error:mbe}}finally{try{Rme&&!Rme.done&&(lbe=Ome.return)&&lbe.call(Ome)}finally{if(nbe)throw nbe.error}}}if(Nme=xme?fme.filter(function(mbe){var pbe=xme;return mbe.name&&pbe.indexOf(mbe.name)!==-1?Tme?!0:(mbe==null?void 0:mbe.type)!=="operation":!1}):fme.filter(function(mbe){return(mbe==null?void 0:mbe.type)!=="operation"}),Ime=Nme.map(function(mbe){return filter$1(mbe.label,cme)}),Pme=Eme.getRow(1),Pme.values=Ime,Eme.autoFilter={from:{row:1,column:1},to:{row:1,column:Ime.length}},tme)return[2,exportExcelWithoutData(Sme,Eme,Nme,bme,lme,cme)];Mme={},kme=1,$P.rowSlice&&(pme=arraySlice(pme,$P.rowSlice)),kme=renderSummary(Eme,cme,dme,kme),pme=flattenTree(pme,function(mbe){return mbe}),ube.label=4;case 4:ube.trys.push([4,15,16,17]),Bme=__values$1(pme),Dme=Bme.next(),ube.label=5;case 5:if(Dme.done)return[3,14];jme=Dme.value,Vme=createObject$1(cme,jme.data),kme+=1,Wme=Eme.getRow(kme),Lme=0,zme=function(mbe){var pbe,_be,Sbe,vbe,kbe,Rbe,Pbe,Mbe,Kbe,Qbe,Gbe,p0e,Hbe,d0e,p0e,S0e,Jbe,P0e,e0e,_0e,m0e,c0e,Ybe,Jbe,c0e,zbe,R0e,$0e,u0e,t0e,v0e,L0e,Wbe,a0e,g0e;return __generator(this,function(b0e){switch(b0e.label){case 0:if(Lme+=1,pbe=mbe.name,_be=getVariable(Vme,pbe),typeof _be>"u"&&!mbe.pristine.tpl)return[2,"continue"];if(pbe in jme.rowSpans){if(jme.rowSpans[pbe]===0)return[2,"continue"];Eme.mergeCells(kme,Lme,kme+jme.rowSpans[pbe]-1,Lme)}if(applyCellStyle(Wme,Lme,mbe.pristine,Vme),Sbe=mbe.type||"plain",!((Sbe==="image"||Sbe==="static-image")&&_be))return[3,6];b0e.label=1;case 1:return b0e.trys.push([1,4,,5]),[4,toDataURL(_be)];case 2:return vbe=b0e.sent(),[4,getImageDimensions(vbe)];case 3:return kbe=b0e.sent(),Rbe=kbe.width,Pbe=kbe.height,Mbe=100,Rbe>Pbe?Rbe>Mbe&&(Pbe=Mbe*Pbe/Rbe,Rbe=Mbe):Pbe>Mbe&&(Rbe=Mbe*Rbe/Pbe,Pbe=Mbe),Kbe=vbe.match(/data:image\/(.*);/),Qbe="png",Kbe&&(Qbe=Kbe[1]),Qbe!="png"&&Qbe!="jpeg"&&Qbe!="gif"?(Wme.getCell(Lme).value=_be,[2,"continue"]):(Gbe=Sme.addImage({base64:vbe,extension:Qbe}),p0e=getAbsoluteUrl(_be),Eme.addImage(Gbe,{tl:{col:Lme-1,row:kme-1},ext:{width:Rbe,height:Pbe},hyperlinks:{tooltip:p0e}}),[3,5]);case 4:return Hbe=b0e.sent(),console.warn(Hbe),[3,5];case 5:return[3,13];case 6:return Sbe=="link"||Sbe==="static-link"?(d0e=mbe.pristine.href,p0e=(typeof d0e=="string"&&d0e?filter$1(d0e,Vme,"| raw"):void 0)||_be,S0e=mbe.pristine.body,Jbe=typeof S0e=="string"&&S0e?filter$1(S0e,Vme,"| raw"):void 0,P0e=getAbsoluteUrl(p0e),Wme.getCell(Lme).value={text:Jbe||P0e,hyperlink:P0e},[3,13]):[3,7];case 7:return Sbe==="mapping"||Sbe==="static-mapping"?[4,getMap(Mme,lme,mbe,cme,Vme)]:[3,9];case 8:return e0e=b0e.sent(),_0e=mbe.pristine.valueField||"value",m0e=mbe.pristine.labelField||"label",Array.isArray(e0e)&&(e0e=e0e.reduce(function(y0e,A0e){if(A0e==null)return y0e;if(isObject$8(A0e)){var V0e=Object.keys(A0e);V0e.length===1||V0e.length==2&&V0e.includes("$$id")?(V0e=V0e.filter(function(w0e){return w0e!=="$$id"}),y0e[V0e[0]]=A0e[V0e[0]]):V0e.length>1&&(y0e[A0e[_0e]]=A0e)}return y0e},{})),typeof _be<"u"&&e0e&&((rme=e0e[_be])!==null&&rme!==void 0?rme:e0e["*"])?(c0e=(ime=e0e[_be])!==null&&ime!==void 0?ime:_be===!0&&e0e[1]?e0e[1]:_be===!1&&e0e[0]?e0e[0]:e0e["*"],Ybe=c0e,isObject$8(c0e)&&(m0e===void 0||m0e===""?c0e.hasOwnProperty("type")||(Ybe=c0e.label):Ybe=c0e[m0e||"label"]),Jbe=removeHTMLTag(Ybe),isPureVariable(Jbe)?Jbe=resolveVariableAndFilter(Jbe,Vme,"| raw"):Jbe=filter$1(Jbe,Vme),Wme.getCell(Lme).value=Jbe):Wme.getCell(Lme).value=removeHTMLTag(_be),[3,13];case 9:return Sbe==="date"||Sbe==="static-date"?(c0e=void 0,zbe=mbe.pristine,R0e=zbe.fromNow,$0e=zbe.format,u0e=$0e===void 0?"YYYY-MM-DD":$0e,t0e=zbe.valueFormat,v0e=t0e===void 0?"X":t0e,_be&&(L0e=hooks(_be,hooks.ISO_8601),Wbe=hooks(_be,v0e),c0e=L0e.isValid()?L0e.format(u0e):Wbe.isValid()?Wbe.format(u0e):!1),R0e&&(c0e=hooks(_be).fromNow()),c0e&&(Wme.getCell(Lme).value=c0e),[3,13]):[3,10];case 10:return Sbe!=="input-city"?[3,12]:[4,loadDb()];case 11:return a0e=b0e.sent(),a0e.default&&_be&&_be in a0e.default&&(Wme.getCell(Lme).value=a0e.default[_be]),[3,13];case 12:mbe.pristine.tpl?Wme.getCell(Lme).value=removeHTMLTag(decodeEntity(filter$1(mbe.pristine.tpl,Vme))):Wme.getCell(Lme).value=_be,b0e.label=13;case 13:return g0e=Wme.getCell(Lme).value,Number.isInteger(g0e)&&(Wme.getCell(Lme).numFmt="0"),[2]}})},ube.label=6;case 6:ube.trys.push([6,11,12,13]),Ume=(obe=void 0,__values$1(Nme)),Gme=Ume.next(),ube.label=7;case 7:return Gme.done?[3,10]:(Jme=Gme.value,[5,zme(Jme)]);case 8:ube.sent(),ube.label=9;case 9:return Gme=Ume.next(),[3,7];case 10:return[3,13];case 11:return Yme=ube.sent(),obe={error:Yme},[3,13];case 12:try{Gme&&!Gme.done&&(hbe=Ume.return)&&hbe.call(Ume)}finally{if(obe)throw obe.error}return[7];case 13:return Dme=Bme.next(),[3,5];case 14:return[3,17];case 15:return Qme=ube.sent(),ibe={error:Qme},[3,17];case 16:try{Dme&&!Dme.done&&(abe=Bme.return)&&abe.call(Bme)}finally{if(ibe)throw ibe.error}return[7];case 17:return renderSummary(Eme,cme,ume,kme),downloadFile(Sme,bme),[2]}})})}function downloadFile(x_,eme){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,x_.xlsx.writeBuffer()];case 1:return $P=ame.sent(),$P&&(tme=new Blob([$P],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),FileSaver_minExports.saveAs(tme,eme+".xlsx")),[2]}})})}function numberToLetters(x_){for(var eme="";x_>=0;)eme="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[x_%26]+eme,x_=Math.floor(x_/26)-1;return eme}function exportExcelWithoutData(x_,eme,$P,tme,ame,nme){var rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme;return __generator(this,function(vme){switch(vme.label){case 0:ime=0,ome=100,lme={},vme.label=1;case 1:vme.trys.push([1,6,7,8]),sme=__values$1($P),cme=sme.next(),vme.label=2;case 2:return cme.done?[3,5]:(dme=cme.value,ime+=1,((rme=dme.pristine)===null||rme===void 0?void 0:rme.type)!=="mapping"?[3,4]:[4,getMap(lme,ame,dme,nme,{})]);case 3:if(ume=vme.sent(),ume&&isObject$8(ume))for(fme=Object.keys(ume),pme=1;pme<ome;pme++)eme.getCell(numberToLetters(ime)+pme).dataValidation={type:"list",allowBlank:!0,formulae:['"'.concat(fme.join(","),'"')]};vme.label=4;case 4:return cme=sme.next(),[3,2];case 5:return[3,8];case 6:return hme=vme.sent(),bme={error:hme},[3,8];case 7:try{cme&&!cme.done&&(mme=sme.return)&&mme.call(sme)}finally{if(bme)throw bme.error}return[7];case 8:return downloadFile(x_,tme),[2]}})})}function AutoFilterForm(x_){var eme=x_.autoGenerateFilter,$P=x_.searchFormExpanded,tme=x_.activedSearchableColumns,ame=x_.searchableColumns,nme=x_.onItemToggleExpanded,rme=x_.onToggleExpanded,ime=x_.classnames,ome=x_.translate,lme=x_.render,sme=x_.data,cme=x_.onSearchableFromReset,dme=x_.onSearchableFromSubmit,ume=x_.onSearchableFromInit,fme=x_.popOverContainer,pme=x_.testIdBuilder,hme=x_.canAccessSuperData,bme=React__default.useMemo(function(){var mme=typeof eme=="boolean"?{columnsNum:3,showBtnToolbar:!0}:eme,vme=mme.columnsNum,gme=mme.showBtnToolbar,yme=padArr(tme,vme).map(function(Eme){return{type:"group",body:Eme.map(function(xme){var Tme,Ome,Rme,Nme;return __assign$3(__assign$3({},xme.searchable===!0?{type:"input-text",name:xme.name,label:xme.label,testIdBuilder:pme==null?void 0:pme.getChild(xme.name)}:__assign$3({type:"input-text",name:xme.name,testIdBuilder:pme==null?void 0:pme.getChild(xme.name)},xme.searchable)),{name:(Ome=(Tme=xme.searchable)===null||Tme===void 0?void 0:Tme.name)!==null&&Ome!==void 0?Ome:xme.name,label:(Nme=(Rme=xme.searchable)===null||Rme===void 0?void 0:Rme.label)!==null&&Nme!==void 0?Nme:xme.label})})}}),_me=tme.length>=vme;!$P&&yme.length&&(yme.splice(1,yme.length-1),yme[0].body.splice(vme-1,yme[0].body.length-vme+1));var $me=yme[yme.length-1];(!Array.isArray($me==null?void 0:$me.body)||$me.body.length>=vme)&&($me={type:"group",body:[]},yme.push($me));for(var Cme=Math.max(vme-$me.body.length-1);Cme-- >0;)$me.body.push({type:"tpl",tpl:""});var Sme=pme==null?void 0:pme.getChild("more");return $me.body.push({type:"container",className:"AutoFilterToolbar",wrapperBody:!1,body:[{type:"dropdown-button",label:ome("Table.searchFields"),className:ime("Table-searchableForm-dropdown","mr-2"),level:"link",trigger:"click",size:"sm",align:"right",visible:gme,testIdBuilder:Sme,buttons:ame.map(function(Eme){return{children:function(xme){var Tme,Ome,Rme=xme.render;return Rme("column-search-toggler-".concat(Eme.id),{type:"checkbox",label:!1,className:ime("Table-searchableForm-checkbox"),inputClassName:ime("Table-searchableForm-checkbox-inner"),name:"__whatever_name",option:(Ome=(Tme=Eme.searchable)===null||Tme===void 0?void 0:Tme.label)!==null&&Ome!==void 0?Ome:Eme.label,testIdBuilder:Sme==null?void 0:Sme.getChild(Eme.name+""),badge:{offset:[-10,5],visibleOn:"".concat(Eme.toggable&&!Eme.toggled&&Eme.enableSearch)}},{value:tme.includes(Eme),onChange:function(Nme){return nme==null?void 0:nme(Eme,Nme)}})}}})},{type:"submit",label:ome("search"),size:"sm",level:"primary",className:"w-18 mr-2"},{type:"reset",label:ome("reset"),size:"sm",className:"w-18",actionType:"clear-and-submit"},{children:function(){return _me?React__default.createElement("a",{className:ime("Table-SFToggler",$P?"is-expanded":""),onClick:rme},ome($P?"collapse":"expand"),React__default.createElement("span",{className:ime("Table-SFToggler-arrow")},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"}))):null}}]}),{type:"form",api:null,title:"",mode:"horizontal",submitText:ome("search"),body:yme,actions:[],canAccessSuperData:hme}},[eme,tme,ame,$P,hme,ome]);return lme("searchable-form",bme,{key:"searchable-form",panelClassName:ime("Table-searchableForm"),actionsClassName:ime("Table-searchableForm-footer"),onReset:cme,onSubmit:dme,onInit:ume,formStore:void 0,data:sme,popOverContainer:fme})}var AutoFilterForm$1=observer(function(x_){var eme=x_.store,$P=x_.query,tme=x_.data,ame=__rest$14(x_,["store","query","data"]),nme=React__default.useCallback(function(ome,lme){ome.setEnableSearch(lme),lme&&eme.setSearchFormExpanded(!0)},[]),rme=React__default.useCallback(function(){eme.toggleSearchFormExpanded()},[]),ime=React__default.useMemo(function(){return $P?createObject$1(tme,$P):tme},[$P,tme]);return React__default.createElement(AutoFilterForm,__assign$3({},ame,{activedSearchableColumns:eme.activedSearchableColumns,searchableColumns:eme.searchableColumns,searchFormExpanded:eme.searchFormExpanded,onItemToggleExpanded:nme,onToggleExpanded:rme,data:ime}))});function Cell(x_){var eme,$P=x_.region,tme=x_.column,ame=x_.item,nme=x_.props,rme=x_.ignoreDrag,ime=x_.render,ome=x_.store,lme=x_.multiple,sme=x_.itemBadge,cme=x_.classnames,dme=x_.classPrefix,ume=x_.canAccessSuperData,fme=x_.onCheck,pme=x_.onDragStart,hme=x_.popOverContainer,bme=x_.quickEditFormRef,mme=x_.onImageEnlarge,vme=x_.translate,gme=x_.testIdBuilder;if(tme.name&&ame.rowSpans[tme.name]===0)return null;var yme=__read$3(React__default.useMemo(function(){var Mme=__assign$3({},tme.pristine.style),kme=__read$3(ome.getStickyStyles(tme,ome.filteredColumns),2),Bme=kme[0],Dme=kme[1];return[Object.assign(Mme,Bme),Dme]},[]),2),_me=yme[0],$me=yme[1],Cme=React__default.useCallback(function(){fme==null||fme(ame)},[]);if(tme.type==="__checkme")return React__default.createElement("td",__assign$3({style:_me,className:cme(tme.pristine.className,$me)},gme==null?void 0:gme.getTestId()),React__default.createElement(Checkbox$1$1,{classPrefix:dme,type:lme?"checkbox":"radio",partial:ame.partial,checked:ame.checked||ame.partial,disabled:ame.checkdisable||!ame.checkable,onChange:Cme,testIdBuilder:gme==null?void 0:gme.getChild("chekbx")}));if(tme.type==="__dragme")return React__default.createElement("td",__assign$3({style:_me,className:cme(tme.pristine.className,$me,{"is-dragDisabled":!ame.draggable})},gme==null?void 0:gme.getChild("drag").getTestId()),ame.draggable?React__default.createElement(Icon$1,{icon:"drag",className:"icon"}):null);if(tme.type==="__expandme")return React__default.createElement("td",{style:_me,className:cme(tme.pristine.className,$me)},ame.expandable?React__default.createElement("a",__assign$3({className:cme("Table-expandBtn",ame.expanded?"is-active":""),onClick:ame.toggleExpanded},gme==null?void 0:gme.getChild(ame.expanded?"fold":"expand").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):null);var Sme=__read$3(React__default.useMemo(function(){var Mme=[],kme=[],Bme="";return tme.isPrimary&&ome.isNested&&(Bme="Table-primayCell",Mme.push(React__default.createElement("span",{key:"indent",className:cme("Table-indent"),style:ame.indentStyle})),Mme.push(ame.loading?React__default.createElement(Spinner$1,{key:"loading",size:"sm",show:!0}):ame.error?React__default.createElement("a",__assign$3({className:cme("Table-retryBtn"),key:"retryBtn",onClick:ame.resetDefered,"data-tooltip":vme("Options.retry",{reason:ame.error})},gme==null?void 0:gme.getChild("retry").getTestId()),React__default.createElement(Icon$1,{icon:"retry",className:"icon"})):ame.expandable?React__default.createElement("a",__assign$3({key:"expandBtn2",className:cme("Table-expandBtn2",ame.expanded?"is-active":""),onClick:ame.toggleExpanded},gme==null?void 0:gme.getChild(ame.expanded?"fold":"expand").getTestId()),React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})):React__default.createElement("span",{key:"expandSpace",className:cme("Table-expandSpace")}))),!rme&&tme.isPrimary&&ome.isNested&&ome.draggable&&ame.draggable&&kme.push(React__default.createElement("a",__assign$3({key:"dragBtn",draggable:!0,onDragStart:pme,className:cme("Table-dragBtn")},gme==null?void 0:gme.getChild("drag").getTestId()),React__default.createElement(Icon$1,{icon:"drag",className:"icon"}))),[Mme,kme,Bme]},[ame.expandable,ame.expanded,ame.error,ame.loading,tme.isPrimary,ome.isNested]),3),Eme=Sme[0],xme=Sme[1],Tme=Sme[2],Ome=typeof tme.pristine.trackExpression<"u",Rme=Ome?tme.pristine.trackExpression:React__default.useMemo(function(){return buildTrackExpression(tme.pristine)},[]),Nme=React__default.useMemo(function(){return ame.locals},[Ome?"":JSON.stringify(ame.locals),evalTrackExpression(Rme,ame.locals)]),Ime=(eme=tme.pristine.canAccessSuperData)!==null&&eme!==void 0?eme:ume,Pme=__assign$3(__assign$3({},nme),{loading:tme.type==="operation"?!1:nme.loading,btnDisabled:ome.dragging,data:Nme,popOverContainer:hme,rowSpan:ame.rowSpans[tme.name],quickEditFormRef:bme,cellPrefix:Eme,cellAffix:xme,onImageEnlarge:mme,canAccessSuperData:Ime,row:ame,itemBadge:sme,showBadge:!nme.isHead&&sme&&ome.firstToggledColumnIndex===nme.colIndex,onQuery:void 0,style:_me,className:cme(tme.pristine.className,$me,Tme),testIdBuilder:gme==null?void 0:gme.getChild(tme.name||tme.value)});return delete Pme.label,ime($P,__assign$3(__assign$3({},tme.pristine),{visibleOn:"",hiddenOn:"",visible:!0,hidden:!1,column:tme.pristine,type:"cell"}),Pme)}var Table=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;ame.dom=React__default.createRef(),ame.renderedToolbars=[],ame.subForms={},ame.toDispose=[],ame.updateTableInfoLazy=debounce$6(ame.updateTableInfo.bind(ame),250,{trailing:!0,leading:!1}),ame.updateAutoFillHeightLazy=debounce$6(ame.updateAutoFillHeight.bind(ame),250,{trailing:!0,leading:!1});var nme=tme;nme.registerComponent(ame),ame.handleOutterScroll=ame.handleOutterScroll.bind(ame),ame.tableRef=ame.tableRef.bind(ame),ame.affixedTableRef=ame.affixedTableRef.bind(ame),ame.updateTableInfo=ame.updateTableInfo.bind(ame),ame.handleAction=ame.handleAction.bind(ame),ame.handleCheck=ame.handleCheck.bind(ame),ame.handleCheckAll=ame.handleCheckAll.bind(ame),ame.handleQuickChange=ame.handleQuickChange.bind(ame),ame.handleSave=ame.handleSave.bind(ame),ame.handleSaveOrder=ame.handleSaveOrder.bind(ame),ame.reset=ame.reset.bind(ame),ame.dragTipRef=ame.dragTipRef.bind(ame),ame.getPopOverContainer=ame.getPopOverContainer.bind(ame),ame.renderCell=ame.renderCell.bind(ame),ame.renderHeadCell=ame.renderHeadCell.bind(ame),ame.renderToolbar=ame.renderToolbar.bind(ame),ame.handleMouseMove=ame.handleMouseMove.bind(ame),ame.handleMouseLeave=ame.handleMouseLeave.bind(ame),ame.subFormRef=ame.subFormRef.bind(ame),ame.handleColumnToggle=ame.handleColumnToggle.bind(ame),ame.handleRowClick=ame.handleRowClick.bind(ame),ame.handleRowDbClick=ame.handleRowDbClick.bind(ame),ame.handleRowMouseEnter=ame.handleRowMouseEnter.bind(ame),ame.handleRowMouseLeave=ame.handleRowMouseLeave.bind(ame),ame.updateAutoFillHeight=ame.updateAutoFillHeight.bind(ame);var rme=$P.store,ime=$P.columns,ome=$P.selectable,lme=$P.columnsTogglable,sme=$P.draggable,cme=$P.orderBy,dme=$P.orderDir,ume=$P.multiple,fme=$P.footable,pme=$P.primaryField,hme=$P.itemCheckableOn,bme=$P.itemDraggableOn,mme=$P.hideCheckToggler,vme=$P.combineFromIndex,gme=$P.expandConfig,yme=$P.formItem,_me=$P.keepItemSelectionOnPageChange,$me=$P.maxKeepItemSelectionLength,Cme=$P.maxItemSelectionLength,Sme=$P.onQuery,Eme=$P.autoGenerateFilter,xme=$P.loading,Tme=$P.canAccessSuperData,Ome=$P.lazyRenderAfter,Rme=$P.tableLayout,Nme=$P.resolveDefinitions,Ime=$P.combineNum;return typeof Ime=="string"&&(Ime=parseInt(resolveVariableAndFilter(Ime,$P.data,"| raw"),10)),rme.update({selectable:ome,draggable:sme,columns:ime,columnsTogglable:lme,orderBy:Sme?cme:void 0,orderDir:dme,multiple:ume,footable:fme,expandConfig:gme,primaryField:pme,itemCheckableOn:hme,itemDraggableOn:bme,hideCheckToggler:mme,combineNum:Ime,combineFromIndex:vme,keepItemSelectionOnPageChange:_me,maxKeepItemSelectionLength:$me,maxItemSelectionLength:Cme,loading:xme,canAccessSuperData:Tme,lazyRenderAfter:Ome,tableLayout:Rme},{resolveDefinitions:Nme}),isPlainObject$b(Eme)&&Eme.defaultCollapsed===!1&&rme.setSearchFormExpanded(!0),yme&&isAlive(yme)&&yme.setSubStore(rme),eme.syncRows(rme,ame.props,void 0)&&ame.syncSelected(),ame.toDispose.push(reaction(function(){return rme.getExpandedRows().filter(function(Pme){return Pme.defer&&!Pme.loaded&&!Pme.loading&&!Pme.error})},function(Pme){return Pme.forEach(ame.loadDeferredRow)})),ame}return eme.syncRows=function($P,tme,ame){var nme=tme.source,rme=getPropValue(tme,function(cme){return cme.items}),ime=[],ome=!1;if(Array.isArray(rme)&&(!ame||!isEqual$1(getPropValue(ame,function(cme){return cme.items}),rme)))ome=!0,ime=rme;else if(typeof nme=="string"){var lme=resolveVariableAndFilter(nme,tme.data,"| raw"),sme=ame?resolveVariableAndFilter(nme,ame.data,"| raw"):null;sme===lme||loopTooMuch("Table.syncRows".concat($P.id))&&isEqual$1(sme,lme)?ome=!1:(ome=!0,ime=Array.isArray(lme)?lme:[])}return ome?$P.initRows(ime,tme.getEntryId,tme.reUseRow):tme.reUseRow===!1&&(ome=!0,$P.initRows(rme,tme.getEntryId,tme.reUseRow)),Array.isArray(tme.selected)&&$P.updateSelected(tme.selected,tme.valueField),ome},eme.prototype.componentDidMount=function(){var $P=this.dom.current;this.props.autoFillHeight&&(this.toDispose.push(resizeSensor($P.parentElement,this.updateAutoFillHeightLazy,!1,"height")),this.updateAutoFillHeight()),this.toDispose.push(resizeSensor($P,this.updateTableInfoLazy,!1,"width")),this.table;var tme=this.props,ame=tme.store,nme=tme.autoGenerateFilter,rme=tme.onSearchableFromInit;nme&&!ame.searchableColumns.length&&rme&&rme({})},eme.prototype.loadDeferredRow=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:if(tme=this.props.env,ame=$P.data.deferApi||this.props.deferApi,!isEffectiveApi(ame))throw new Error("deferApi is required");ime.label=1;case 1:return ime.trys.push([1,3,4,5]),$P.markLoading(!0),[4,tme.fetcher(ame,$P.locals)];case 2:if(nme=ime.sent(),!nme.ok)throw new Error(nme.msg);return $P.updateData(nme.data),$P.markLoaded(!0),$P.setError(""),[3,5];case 3:return rme=ime.sent(),$P.setError(rme.message),tme.notify("error",rme.message),[3,5];case 4:return $P.markLoading(!1),[7];case 5:return[2]}})})},eme.prototype.updateAutoFillHeight=function(){var $P=this,tme=this.props,ame=tme.autoFillHeight;if(tme.footerToolbar,tme.classPrefix,!!ame){var nme=this.table,rme=nme.parentElement;if(rme){if(!rme.offsetHeight||rme.getBoundingClientRect().height/rme.offsetHeight<.8){this.timer=setTimeout(function(){$P.updateAutoFillHeight()},100);return}var ime=window.innerHeight,ome=offset(rme).top,lme=getScrollParent(rme.parentElement);lme&&lme!==document.body&&(ime=lme.clientHeight-1,ome=position(rme,lme).top);for(var sme=0,cme=rme,dme=cme.parentElement;dme;){for(var ume=getStyleNumber(dme,"padding-bottom"),fme=getStyleNumber(dme,"border-bottom-width"),pme=0,hme=cme.nextElementSibling;hme;){var bme=getComputedStyle(hme).position;if(bme!=="absolute"&&bme!=="fixed"){var mme=cme.getBoundingClientRect(),vme=hme.getBoundingClientRect();mme.bottom<=vme.top&&(pme+=hme.offsetHeight+getStyleNumber(hme,"margin-bottom"))}hme=hme.nextElementSibling}var gme=getStyleNumber(cme,"margin-bottom");if(sme+=ume+fme+gme+pme,cme=dme,dme=cme.parentElement,lme&&lme!==document.body&&lme===cme)break}var yme=ame&&ame.maxHeight?"maxHeight":"height",_me=isObject$8(ame)?ame[yme]:0,$me=_me?"".concat(_me,"px"):"".concat(Math.round(ime-ome-sme),"px");rme.style[yme]=$me}}},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.store;if(changedEffect(["selectable","columnsTogglable","draggable","orderBy","orderDir","multiple","footable","primaryField","itemCheckableOn","itemDraggableOn","hideCheckToggler","combineNum","combineFromIndex","expandConfig","columns","loading","canAccessSuperData","lazyRenderAfter","tableLayout"],$P,tme,function(ime){ime.hasOwnProperty("combineNum")&&typeof ime.combineNum=="string"&&(ime.combineNum=parseInt(resolveVariableAndFilter(ime.combineNum,tme.data,"| raw"),10)),ime.orderBy&&!tme.onQuery&&delete ime.orderBy,ame.update(ime,{resolveDefinitions:tme.resolveDefinitions})}),anyChanged$1(["source","value","items"],$P,tme)||!tme.value&&!tme.items&&(tme.data!==$P.data||typeof tme.source=="string"&&isPureVariable(tme.source)))eme.syncRows(ame,tme,$P)&&this.syncSelected();else if(isArrayChildrenModified($P.selected,tme.selected)){var nme=ame.selectedRows.map(function(ime){return ime.id}).join(",");if(ame.updateSelected(tme.selected||[],tme.valueField),Array.isArray(tme.selected)&&Array.isArray($P.selected)&&tme.selected.length===$P.selected.length){var rme=ame.selectedRows.map(function(ime){return ime.id}).join(",");nme!==rme&&this.syncSelected()}else this.syncSelected()}},eme.prototype.componentWillUnmount=function(){var $P=this.props.formItem;this.toDispose.forEach(function(ame){return ame()}),this.toDispose=[],this.updateTableInfoLazy.cancel(),this.updateAutoFillHeightLazy.cancel(),$P&&isAlive($P)&&$P.setSubStore(null),clearTimeout(this.timer);var tme=this.context;tme.unRegisterComponent(this)},eme.prototype.scrollToTop=function(){var $P,tme;($P=this.dom.current)===null||$P===void 0||$P.scrollIntoView(),this.props.autoFillHeight&&((tme=this.table)===null||tme===void 0||tme.scrollIntoView());var ame=window.scrollY;ame&&window.scroll(0,ame)},eme.prototype.rowPathPlusOffset=function($P,tme){tme===void 0&&(tme=0);var ame=$P.split(".").map(function(nme){return parseInt(nme,10)});return ame[0]+=tme,ame.join(".")},eme.prototype.subFormRef=function($P,tme,ame){var nme=this.props.quickEditFormRef;nme&&nme($P,tme,ame),this.subForms["".concat(tme,"-").concat(ame)]=$P,$P&&this.props.store.addForm($P.props.store,ame)},eme.prototype.handleAction=function($P,tme,ame){var nme=this.props.onAction;return nme($P,tme,ame)},eme.prototype.handleCheck=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return nme=this.props,rme=nme.store,ime=nme.data,ome=nme.dispatchEvent,lme=nme.selectable,lme?(tme=tme!==void 0?tme:!$P.checked,ame?rme.toggleShift($P,tme):$P.toggle(tme),[4,ome("selectedChange",createObject$1(ime,{selectedItems:rme.selectedRows.map(function(dme){return dme.data}),unSelectedItems:rme.unSelectedRows.map(function(dme){return dme.data}),item:$P.data}))]):[2];case 1:return sme=cme.sent(),sme!=null&&sme.prevented?[2]:(this.syncSelected(),[2])}})})},eme.prototype.handleRowClick=function($P,tme){var ame=this.props,nme=ame.dispatchEvent,rme=ame.offset,ime=rme===void 0?0:rme;ame.store;var ome=ame.data;return nme("rowClick",createObject$1(ome,{rowItem:$P.data,item:$P.data,index:tme+ime,indexPath:this.rowPathPlusOffset($P.path,ime)}))},eme.prototype.handleRowDbClick=function($P,tme){var ame=this.props,nme=ame.dispatchEvent,rme=ame.offset,ime=rme===void 0?0:rme;ame.store;var ome=ame.data;return nme("rowDbClick",createObject$1(ome,{item:$P.data,index:tme+ime,indexPath:this.rowPathPlusOffset($P.path,ime)}))},eme.prototype.handleRowMouseEnter=function($P,tme){var ame=this.props,nme=ame.dispatchEvent,rme=ame.offset,ime=rme===void 0?0:rme;ame.store;var ome=ame.data;return nme("rowMouseEnter",createObject$1(ome,{item:$P.data,index:tme+ime,indexPath:this.rowPathPlusOffset($P.path,ime)}))},eme.prototype.handleRowMouseLeave=function($P,tme){var ame=this.props,nme=ame.dispatchEvent,rme=ame.offset,ime=rme===void 0?0:rme;ame.store;var ome=ame.data;return nme("rowMouseLeave",createObject$1(ome,{item:$P.data,index:tme+ime,indexPath:this.rowPathPlusOffset($P.path,ime)}))},eme.prototype.handleCheckAll=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return $P=this.props,tme=$P.store,ame=$P.data,nme=$P.dispatchEvent,rme=tme.rows.map(function(lme){return lme.data}),tme.toggleAll(),[4,nme("selectedChange",createObject$1(ame,{selectedItems:tme.selectedRows.map(function(lme){return lme.data}),unSelectedItems:tme.unSelectedRows.map(function(lme){return lme.data}),items:rme}))];case 1:return ime=ome.sent(),ime!=null&&ime.prevented?[2]:(this.syncSelected(),[2])}})})},eme.prototype.handleQuickChange=function($P,tme,ame,nme,rme){if(isAlive($P)){var ime=this.props,ome=ime.onSave,lme=ime.onPristineChange,sme=ime.saveImmediately,cme=ime.primaryField;if($P.change(tme,nme),$P.modified&&this.syncSelected(),nme){lme==null||lme($P.data,$P.path);return}else if(!ame&&!sme)return;if(ame&&ame.api){this.props.onAction(null,{actionType:"ajax",api:ame.api,reload:rme==null?void 0:rme.reload},$P.locals);return}ome&&ome($P.data,difference$2($P.data,$P.pristine,["id",cme]),$P.path,void 0,$P.pristine,rme)}},eme.prototype.handleSave=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ome,ime,ome,lme,sme,cme,dme,ume=this;return __generator(this,function(fme){switch(fme.label){case 0:return $P=this.props,tme=$P.store,ame=$P.onSave,nme=$P.primaryField,!ame||!tme.modifiedRows.length?[2]:(rme=[],Object.keys(this.subForms).forEach(function(pme){return ume.subForms[pme]&&rme.push(ume.subForms[pme])}),rme.length?[4,Promise.all(rme.map(function(pme){return pme.validate()}))]:[3,2]);case 1:if(ome=fme.sent(),~ome.indexOf(!1))return[2];fme.label=2;case 2:return ime=tme.children.filter(function(pme){return(pme==null?void 0:pme.storeType)==="FormItemStore"}),ime.length?[4,Promise.all(ime.map(function(pme){var hme={};return pme.rowIndex&&tme.rows[pme.rowIndex]&&(hme=tme.rows[pme.rowIndex].data),pme.validate(hme)}))]:[3,4];case 3:if(ome=fme.sent(),~ome.indexOf(!1))return[2];fme.label=4;case 4:return lme=tme.modifiedRows.map(function(pme){return pme.data}),sme=tme.modifiedRows.map(function(pme){return pme.path}),cme=tme.modifiedRows.map(function(pme){return difference$2(pme.data,pme.pristine,["id",nme])}),dme=tme.rows.filter(function(pme){return!pme.modified}).map(function(pme){return pme.data}),[2,ame(lme,cme,sme,dme,tme.modifiedRows.map(function(pme){return pme.pristine}))]}})})},eme.prototype.handleSaveOrder=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return $P=this.props,tme=$P.store,ame=$P.onSaveOrder,nme=$P.data,rme=$P.dispatchEvent,ime=tme.movedRows.map(function(cme){return cme.data}),ome=tme.rows.map(function(cme){return cme.getDataWithModifiedChilden()}),[4,rme("orderChange",createObject$1(nme,{movedItems:ime}))];case 1:return lme=sme.sent(),lme!=null&&lme.prevented?[2]:!ame||!tme.movedRows.length?[2]:(ame(ime,ome),[2])}})})},eme.prototype.syncSelected=function(){var $P=this.props,tme=$P.store,ame=$P.onSelect;ame&&ame(tme.selectedRows.map(function(nme){return nme.data}),tme.unSelectedRows.map(function(nme){return nme.data}))},eme.prototype.reset=function(){var $P=this,tme=this.props.store;tme.reset();var ame=[];Object.keys(this.subForms).forEach(function(rme){return $P.subForms[rme]&&ame.push($P.subForms[rme])}),ame.forEach(function(rme){return rme.clearErrors()});var nme=tme.children.filter(function(rme){return(rme==null?void 0:rme.storeType)==="FormItemStore"});nme.length&&nme.map(function(rme){return rme.reset()})},eme.prototype.bulkUpdate=function($P,tme){var ame=this.props,nme=ame.store,rme=ame.primaryField;if(rme&&$P.ids){var ime=$P.ids.split(","),ome=nme.rows.filter(function(sme){return find$3(ime,function(cme){return cme&&cme==sme.data[rme]})}),lme=__assign$3(__assign$3({},$P),{ids:void 0});ome.forEach(function(sme){return sme.change(lme)})}else if(Array.isArray(tme)){var ome=nme.rows.filter(function(cme){return~tme.indexOf(cme.pristine)});ome.forEach(function(cme){return cme.change($P)})}},eme.prototype.getSelected=function(){var $P=this.props.store;return $P.selectedRows.map(function(tme){return tme.data})},eme.prototype.updateTableInfo=function($P){this.resizeLine||(this.props.store.initTableWidth(),this.props.store.syncTableWidth(),this.handleOutterScroll(),$P&&setTimeout($P,20))},eme.prototype.handleOutterScroll=function(){var $P=this.table;if($P){var tme=$P==null?void 0:$P.parentNode,ame=tme.scrollLeft;if(this.affixedTable&&(this.affixedTable.parentElement.scrollLeft=ame),this.props.store.filteredColumns.some(function(ime){return ime.fixed})){var nme=ame===0,rme=Math.ceil(ame)+tme.offsetWidth>=$P.scrollWidth;[$P,this.affixedTable].filter(function(ime){return ime}).forEach(function(ime){ime.classList.remove("table-fixed-left","table-fixed-right"),nme||ime.classList.add("table-fixed-left"),rme||ime.classList.add("table-fixed-right")})}}},eme.prototype.tableRef=function($P){var tme=this,ame;this.table=$P,isAlive(this.props.store)&&this.props.store.setTable($P),(ame=this.tableUnWatchResize)===null||ame===void 0||ame.call(this),$P&&(this.handleOutterScroll(),this.tableUnWatchResize=resizeSensor($P,function(){tme.handleOutterScroll()}))},eme.prototype.dragTipRef=function($P){!this.dragTip&&$P?this.initDragging():this.dragTip&&!$P&&this.destroyDragging(),this.dragTip=$P},eme.prototype.affixedTableRef=function($P){this.affixedTable=$P,$P&&this.handleOutterScroll()},eme.prototype.initDragging=function(){var $P=this,tme=this.props,ame=tme.store,nme=tme.classPrefix;this.sortable=new Sortable$1(this.table.querySelector(":scope>tbody"),{group:"table",animation:150,handle:".".concat(nme,"Table-dragCell"),filter:".".concat(nme,"Table-dragCell.is-dragDisabled"),ghostClass:"is-dragging",onEnd:function(rme){return __awaiter($P,void 0,void 0,function(){var ime;return __generator(this,function(ome){return rme.newIndex===rme.oldIndex?[2]:(ime=rme.to,rme.oldIndex<ime.childNodes.length-1?ime.insertBefore(rme.item,ime.childNodes[rme.oldIndex>rme.newIndex?rme.oldIndex+1:rme.oldIndex]):ime.appendChild(rme.item),ame.exchange(rme.oldIndex,rme.newIndex),[2])})})}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.getPopOverContainer=function(){return this.dom.current},eme.prototype.handleMouseMove=function($P){var tme=$P.target.closest("tr[data-id]");if(tme){var ame=this.props,nme=ame.store;ame.affixColumns,ame.itemActions;var rme=tme.getAttribute("data-id"),ime=nme.hoverRow;(ime==null?void 0:ime.id)!==rme&&eachTree$1(nme.rows,function(ome){return ome.setIsHover(ome.id===rme)})}},eme.prototype.handleMouseLeave=function(){var $P=this.props.store,tme=$P.hoverRow;tme==null||tme.setIsHover(!1)},eme.prototype.handleDragStart=function($P){var tme=this.props.store,ame=$P.currentTarget,nme=this.draggingTr=ame.closest("tr"),rme=nme.getAttribute("data-id"),ime=nme.parentNode;this.originIndex=Array.prototype.indexOf.call(ime.childNodes,nme),ime.classList.add("is-dragging"),nme.classList.add("is-dragging"),$P.dataTransfer.effectAllowed="move",$P.dataTransfer.setData("text/plain",rme),$P.dataTransfer.setDragImage(nme,0,0);var ome=tme.getRowById(rme);tme.collapseAllAtDepth(ome.depth);var lme=tme.rows;if(ome.parentId){var sme=tme.getRowById(ome.parentId);lme=sme.children}lme=lme.filter(function(cme){return cme!==ome}),ime.addEventListener("dragover",this.handleDragOver),ime.addEventListener("drop",this.handleDrop),this.draggingSibling=lme.map(function(cme){var dme=ime.querySelector(':scope>tr[data-id="'.concat(cme.id,'"]'));return dme.classList.add("is-drop-allowed"),dme}),nme.addEventListener("dragend",this.handleDragEnd)},eme.prototype.handleDragOver=function($P){if($P.target){$P.preventDefault(),$P.dataTransfer.dropEffect="move";var tme=$P.target.closest("tr");if(!(!tme||!~tme.className.indexOf("is-drop-allowed")||tme===this.draggingTr||Animation.animating)){var ame=tme.parentElement,nme=tme.getBoundingClientRect(),rme=($P.clientY-nme.top)/(nme.bottom-nme.top)>.5;Animation.capture(ame);var ime=rme?tme.nextSibling:tme;ime?ame.insertBefore(this.draggingTr,ime):ame.appendChild(this.draggingTr),Animation.animateAll()}}},eme.prototype.handleDrop=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme;return __generator(this,function(ime){return $P=this.props.store,tme=this.draggingTr,ame=tme.parentElement,nme=Array.prototype.indexOf.call(ame.childNodes,tme),rme=$P.getRowById(tme.getAttribute("data-id")),this.handleDragEnd(),$P.exchange(this.originIndex,nme,rme),[2]})})},eme.prototype.handleDragEnd=function(){var $P=this.draggingTr,tme=$P.parentElement,ame=Array.prototype.indexOf.call(tme.childNodes,$P);tme.insertBefore($P,tme.childNodes[ame<this.originIndex?this.originIndex+1:this.originIndex]),$P.classList.remove("is-dragging"),tme.classList.remove("is-dragging"),$P.removeEventListener("dragend",this.handleDragEnd),tme.removeEventListener("dragover",this.handleDragOver),tme.removeEventListener("drop",this.handleDrop),this.draggingSibling.forEach(function(nme){return nme.classList.remove("is-drop-allowed")})},eme.prototype.handleImageEnlarge=function($P,tme){var ame=this.props.onImageEnlarge;if(Array.isArray($P.list)&&$P.enlargeWithGallary!==!0||$P.enlargeWithGallary===!1)return ame&&ame($P,tme);var nme=this.props.store,rme=nme.columns[tme.colIndex].pristine,ime=tme.rowIndex,ome=[];nme.rows.forEach(function(lme,sme){var cme=resolveVariable(rme.name,lme.data);if(!cme){sme<tme.rowIndex&&ime--;return}var dme=Array.isArray(cme)?cme:[cme];ome=ome.concat(dme.map(function(ume){return{src:ume,originalSrc:rme.originalSrc?filter$1(rme.originalSrc,lme.data):ume,title:rme.enlargeTitle?filter$1(rme.enlargeTitle,lme.data):rme.title?filter$1(rme.title,lme.data):void 0,caption:rme.enlargeCaption?filter$1(rme.enlargeCaption,lme.data):rme.caption?filter$1(rme.caption,lme.data):void 0}}))}),ome.length>1?ame&&ame(__assign$3(__assign$3({},$P),{list:ome,index:ime}),tme):ame&&ame($P,tme)},eme.prototype.handleColResizeMouseDown=function($P){this.lineStartX=$P.clientX;var tme=$P.currentTarget;this.resizeLine=tme;var ame=this.props.store,nme=parseInt(this.resizeLine.getAttribute("data-index"),10),rme=ame.columns[nme];this.lineStartWidth=rme.realWidth||rme.width,this.resizeLine.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleColResizeMouseMove),document.addEventListener("mouseup",this.handleColResizeMouseUp),$P.preventDefault(),$P.stopPropagation()},eme.prototype.handleColResizeMouseMove=function($P){var tme=$P.clientX-this.lineStartX,ame=this.props.store,nme=parseInt(this.resizeLine.getAttribute("data-index"),10),rme=ame.columns[nme];rme.setWidth(Math.max(this.lineStartWidth+tme,30,rme.minWidth))},eme.prototype.handleColResizeMouseUp=function($P){this.resizeLine.classList.remove("is-resizing"),delete this.resizeLine,document.removeEventListener("mousemove",this.handleColResizeMouseMove),document.removeEventListener("mouseup",this.handleColResizeMouseUp)},eme.prototype.handleColumnToggle=function($P){var tme=this.props.store;tme.updateColumns($P),tme.persistSaveToggledColumns()},eme.prototype.renderAutoFilterForm=function(){var $P=this.props,tme=$P.render,ame=$P.store,nme=$P.onSearchableFromReset,rme=$P.onSearchableFromSubmit,ime=$P.onSearchableFromInit,ome=$P.classnames,lme=$P.translate,sme=$P.query,cme=$P.data,dme=$P.autoGenerateFilter,ume=$P.testIdBuilder,fme=$P.filterCanAccessSuperData,pme=fme===void 0?!0:fme,hme=ame.searchableColumns;return hme.length?React__default.createElement(AutoFilterForm$1,{store:ame,query:sme,data:cme,translate:lme,classnames:ome,render:tme,canAccessSuperData:pme,autoGenerateFilter:dme,onSearchableFromReset:nme,onSearchableFromSubmit:rme,onSearchableFromInit:ime,popOverContainer:this.getPopOverContainer,testIdBuilder:ume==null?void 0:ume.getChild("filter")}):null},eme.prototype.renderHeading=function(){var $P=this.props,tme=$P.title,ame=$P.store,nme=$P.hideQuickSaveBtn,rme=$P.data,ime=$P.classnames,ome=$P.saveImmediately,lme=$P.headingClassName,sme=$P.quickSaveApi,cme=$P.translate,dme=$P.columns,ume=!1;if(ame.modifiedRows.length===1){var fme=(dme==null?void 0:dme.map(function(bme){var mme;return!((mme=bme==null?void 0:bme.quickEdit)===null||mme===void 0)&&mme.saveImmediately?bme==null?void 0:bme.name:""}).filter(function(bme){return bme}))||[],pme=ame.modifiedRows[0],hme=difference$2(pme.data,pme.pristine);intersection$1(fme,Object.keys(hme)).length&&(ume=!0)}return tme||sme&&!ome&&!ume&&ame.modified&&!nme||ame.moved?React__default.createElement("div",{className:ime("Table-heading",lme),key:"heading"},!ome&&ame.modified&&!nme&&!ume?React__default.createElement("span",null,cme("Table.modified",{modified:ame.modified}),React__default.createElement("button",{type:"button",className:ime("Button Button--size-xs Button--success m-l-sm"),onClick:this.handleSave},React__default.createElement(Icon$1,{icon:"check",className:"icon m-r-xs"}),cme("Form.submit")),React__default.createElement("button",{type:"button",className:ime("Button Button--size-xs Button--danger m-l-sm"),onClick:this.reset},React__default.createElement(Icon$1,{icon:"close",className:"icon m-r-xs"}),cme("Table.discard"))):ame.moved?React__default.createElement("span",null,cme("Table.moved",{moved:ame.moved}),React__default.createElement("button",{type:"button",className:ime("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},React__default.createElement(Icon$1,{icon:"check",className:"icon m-r-xs"}),cme("Form.submit")),React__default.createElement("button",{type:"button",className:ime("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},React__default.createElement(Icon$1,{icon:"close",className:"icon m-r-xs"}),cme("Table.discard"))):tme?filter$1(tme,rme):""):null},eme.prototype.renderHeadCell=function($P,tme){var ame=this,nme,rme,ime,ome,lme,sme=this.props,cme=sme.store,dme=sme.query,ume=sme.onQuery,fme=sme.render,pme=sme.classPrefix,hme=sme.resizable,bme=sme.classnames,mme=sme.autoGenerateFilter,vme=sme.dispatchEvent,gme=sme.data,yme=sme.testIdBuilder,_me=yme==null?void 0:yme.getChild("head-cell-".concat($P.name)),$me=__assign$3({},tme.style),Cme=__read$3(cme.getStickyStyles($P,cme.filteredColumns),2),Sme=Cme[0],Eme=Cme[1];Object.assign($me,Sme);var xme=(ime=(rme=(nme=cme.columns)===null||nme===void 0?void 0:nme[$P.index])===null||rme===void 0?void 0:rme.pristine)===null||ime===void 0?void 0:ime.width,Tme=$P.type.substring(0,2)!=="__"&&typeof xme=="number"&&xme>0,Ome=React__default.createElement("div",{className:bme("Table-content-colDragLine",{"Table-content-colDragLine--disabled":Tme}),key:"resize-".concat($P.id),"data-index":$P.index,onMouseDown:Tme?noop$9:this.handleColResizeMouseDown});$me!=null&&$me.width&&delete $me.width,$P.pristine.headerAlign?$me.textAlign=$P.pristine.headerAlign:$P.pristine.align&&($me.textAlign=$P.pristine.align);var Rme=tme.key,Nme=__rest$14(tme,["key"]);if($P.type==="__checkme")return React__default.createElement("th",__assign$3({},Nme,{key:Rme,style:$me,className:bme($P.pristine.className,Eme)}),cme.rows.length&&cme.multiple?React__default.createElement(Checkbox$1$1,{classPrefix:pme,partial:cme.someChecked&&!cme.allChecked,checked:cme.someChecked,disabled:cme.isSelectionThresholdReached&&!cme.someChecked,onChange:this.handleCheckAll}):" ",hme===!1?null:Ome);if($P.type==="__dragme")return React__default.createElement("th",__assign$3({},Nme,{key:Rme,style:$me,className:bme($P.pristine.className,Eme)}));if($P.type==="__expandme")return React__default.createElement("th",__assign$3({},Nme,{key:Rme,style:$me,className:bme($P.pristine.className,Eme)}),cme.footable&&(cme.footable.expandAll===!1||cme.footable.accordion)||cme.expandConfig&&(cme.expandConfig.expandAll===!1||cme.expandConfig.accordion)?null:React__default.createElement("a",{className:bme("Table-expandBtn",cme.allExpanded?"is-active":""),onClick:cme.toggleExpandAll},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})),hme===!1?null:Ome);var Ime=[],Pme=[];return $P.isPrimary&&cme.isNested&&(cme.footable&&(cme.footable.expandAll===!1||cme.footable.accordion)||cme.expandConfig&&(cme.expandConfig.expandAll===!1||cme.expandConfig.accordion)||Ime.push(React__default.createElement("a",{key:"expandBtn",className:bme("Table-expandBtn2",cme.allExpanded?"is-active":""),onClick:cme.toggleExpandAll},React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:"icon"})))),$P.searchable&&$P.name&&!mme&&Pme.push(React__default.createElement(HeadCellSearchDropDown,__assign$3({},Nme,{key:"table-head-search"},this.props,{onQuery:ume,name:$P.name,searchable:$P.searchable,type:$P.type,data:dme,testIdBuilder:_me==null?void 0:_me.getChild("search"),popOverContainer:this.getPopOverContainer}))),$P.sortable&&$P.name&&Pme.push(React__default.createElement("span",__assign$3({},Nme,{key:"table-head-sort",className:bme("TableCell-sortBtn"),onClick:function(){return __awaiter(ame,void 0,void 0,function(){var Mme,kme,Bme,Dme;return __generator(this,function(jme){switch(jme.label){case 0:return Mme="",kme="",$P.name===cme.orderBy?cme.orderDir!=="desc"&&(Mme=$P.name,kme="desc"):Mme=$P.name,Bme=Mme?kme?"desc":"asc":"",[4,vme("columnSort",createObject$1(gme,{orderBy:Mme,orderDir:Bme}))];case 1:return Dme=jme.sent(),Dme!=null&&Dme.prevented?[2]:((!ume||ume({orderBy:Mme,orderDir:Bme})===!1)&&cme.changeOrder(Mme,Bme),[2])}})})}}),React__default.createElement("i",{className:bme("TableCell-sortBtn--down",cme.orderBy===$P.name&&cme.orderDir==="desc"?"is-active":"")},React__default.createElement(Icon$1,{icon:"sort-desc",className:"icon"})),React__default.createElement("i",{className:bme("TableCell-sortBtn--up",cme.orderBy===$P.name&&cme.orderDir==="asc"?"is-active":"")},React__default.createElement(Icon$1,{icon:"sort-asc",className:"icon"})),React__default.createElement("i",{className:bme("TableCell-sortBtn--default",cme.orderBy===$P.name?"":"is-active")},React__default.createElement(Icon$1,{icon:"sort-default",className:"icon"})))),!$P.searchable&&$P.filterable&&$P.name&&ume&&Pme.push(React__default.createElement(HeadCellFilterDropDown,__assign$3({key:"table-head-filter"},this.props,{onQuery:ume,name:$P.name,type:$P.type,data:dme,superData:createObject$1(gme,dme),filterable:$P.filterable,popOverContainer:this.getPopOverContainer,testIdBuilder:_me==null?void 0:_me.getChild("filter")}))),React__default.createElement("th",__assign$3({},Nme,{key:Rme,style:$me,className:bme(tme?tme.className:"",Eme,{"TableCell--sortable":$P.sortable,"TableCell--searchable":$P.searchable,"TableCell--filterable":$P.filterable,"Table-operationCell":$P.type==="operation"})},_me==null?void 0:_me.getTestId()),Ime,React__default.createElement("div",{key:"content",className:bme("TableCell--title",$P.pristine.className,$P.pristine.labelClassName),style:tme.style},((ome=tme.label)!==null&&ome!==void 0?ome:$P.label)?fme("tpl",(lme=tme.label)!==null&&lme!==void 0?lme:$P.label):null,$P.remark?fme("remark",{type:"remark",tooltip:$P.remark,container:this.getPopOverContainer}):null),Pme,hme===!1?null:Ome)},eme.prototype.renderCell=function($P,tme,ame,nme,rme){rme===void 0&&(rme=!1);var ime=this.props,ome=ime.render,lme=ime.store,sme=ime.classPrefix,cme=ime.classnames,dme=ime.canAccessSuperData,ume=ime.itemBadge,fme=ime.translate,pme=ime.testIdBuilder;return React__default.createElement(Cell,{key:nme.key,region:$P,column:tme,item:ame,props:nme,ignoreDrag:rme,render:ome,store:lme,multiple:lme.multiple,canAccessSuperData:dme,classnames:cme,classPrefix:sme,itemBadge:ume,onCheck:this.handleCheck,onDragStart:this.handleDragStart,popOverContainer:this.getPopOverContainer,quickEditFormRef:this.subFormRef,onImageEnlarge:this.handleImageEnlarge,translate:fme,testIdBuilder:pme==null?void 0:pme.getChild("cell-".concat(nme.rowPath,"-").concat(tme.index))})},eme.prototype.renderAffixHeader=function($P){var tme=this,ame=this.props,nme=ame.store,rme=ame.affixHeader,ime=ame.render,ome=ame.classnames,lme=ame.autoFillHeight;ame.env;var sme=nme.filteredColumns.every(function(dme){return!dme.label}),cme=nme.columnGroup;return rme&&!lme?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:ome("Table-fixedTop",{"is-fakeHide":sme})},this.renderHeader(!1),this.renderHeading(),nme.columnWidthReady?React__default.createElement("div",{className:ome("Table-wrapper")},React__default.createElement("table",{ref:this.affixedTableRef,className:ome($P,nme.tableLayout==="fixed"?"is-layout-fixed":"")},React__default.createElement("colgroup",null,nme.filteredColumns.map(function(dme){var ume={width:"var(--Table-column-".concat(dme.index,"-width)")};return nme.tableLayout==="auto"&&(ume.minWidth=ume.width),React__default.createElement("col",{"data-index":dme.index,style:ume,key:dme.id})})),React__default.createElement("thead",null,cme.length?React__default.createElement("tr",null,cme.map(function(dme,ume){var fme=__read$3(nme.getStickyStyles(dme,cme),2),pme=fme[0],hme=fme[1];return dme.rowSpan===1?React__default.createElement("th",{key:ume,"data-index":dme.index,colSpan:dme.colSpan,rowSpan:dme.rowSpan,style:pme,className:hme},dme.label?ime("tpl",dme.label):null):tme.renderHeadCell(dme.has[0],{label:dme.label,key:ume,"data-index":dme.index,colSpan:dme.colSpan,rowSpan:dme.rowSpan,style:pme,className:hme})})):null,React__default.createElement("tr",null,nme.filteredColumns.map(function(dme){var ume;return((ume=cme.find(function(fme){return~fme.has.indexOf(dme)}))===null||ume===void 0?void 0:ume.rowSpan)===2?null:tme.renderHeadCell(dme,{key:dme.index,"data-index":dme.index})}))))):null)):null},eme.prototype.renderToolbar=function($P){var tme=$P.type||$P;if(tme==="columns-toggler")return this.renderedToolbars.push(tme),this.renderColumnsToggler($P);if(tme==="drag-toggler")return this.renderedToolbars.push(tme),this.renderDragToggler();if(tme==="export-excel")return this.renderedToolbars.push(tme),this.renderExportExcel($P);if(tme==="export-excel-template")return this.renderedToolbars.push(tme),this.renderExportExcelTemplate($P)},eme.prototype.renderColumnsToggler=function($P){var tme=this,ame,nme=this.props;nme.className;var rme=nme.store,ime=nme.classPrefix,ome=nme.classnames;nme.affixRow;var lme=__rest$14(nme,["className","store","classPrefix","classnames","affixRow"]),sme=lme.translate,cme=lme.env,dme=this.props.render;return rme.columnsTogglable?React__default.createElement(ColumnToggler$1,__assign$3({},lme,isObject$8($P)?$P:{},{tooltip:{content:($P==null?void 0:$P.tooltip)||sme("Table.columnsVisibility"),placement:"bottom"},tooltipContainer:lme.popOverContainer||cme.getModalContainer,align:(ame=$P==null?void 0:$P.align)!==null&&ame!==void 0?ame:"left",isActived:rme.hasColumnHidden(),classnames:ome,classPrefix:ime,key:"columns-toggable",size:($P==null?void 0:$P.size)||"sm",icon:$P==null?void 0:$P.icon,label:$P==null?void 0:$P.label,draggable:$P==null?void 0:$P.draggable,columns:rme.columnsData,activeToggaleColumns:rme.activeToggaleColumns,onColumnToggle:this.handleColumnToggle}),rme.toggableColumns.length?React__default.createElement("li",{className:ome("ColumnToggler-menuItem"),key:"selectAll",onClick:function(){return __awaiter(tme,void 0,void 0,function(){var ume,fme,pme,hme,bme;return __generator(this,function(mme){switch(mme.label){case 0:return ume=this.props,fme=ume.data,pme=ume.dispatchEvent,hme=rme.activeToggaleColumns.length!==rme.toggableColumns.length,[4,pme("columnToggled",createObject$1(fme,{columns:hme?rme.toggableColumns.map(function(vme){return vme.pristine}):[]}))];case 1:return bme=mme.sent(),bme!=null&&bme.prevented?[2]:(rme.toggleAllColumns(),[2])}})})}},React__default.createElement(Checkbox$1$1,{size:"sm",classPrefix:ime,key:"checkall",checked:!!rme.activeToggaleColumns.length,partial:!!(rme.activeToggaleColumns.length&&rme.activeToggaleColumns.length!==rme.toggableColumns.length)},sme("Select.checkAll"))):null,!($P!=null&&$P.draggable)&&rme.toggableColumns.map(function(ume){return React__default.createElement("li",{className:ome("ColumnToggler-menuItem"),key:ume.index,onClick:function(){return __awaiter(tme,void 0,void 0,function(){var fme,pme,hme,bme,mme;return __generator(this,function(vme){switch(vme.label){case 0:return fme=this.props,pme=fme.data,hme=fme.dispatchEvent,bme=rme.activeToggaleColumns.map(function(gme){return gme.pristine}),ume.toggled?bme=bme.filter(function(gme){return gme.name!==ume.pristine.name}):bme.push(ume.pristine),[4,hme("columnToggled",createObject$1(pme,{columns:bme}))];case 1:return mme=vme.sent(),mme!=null&&mme.prevented?[2]:(ume.toggleToggle(),[2])}})})}},React__default.createElement(Checkbox$1$1,{size:"sm",classPrefix:ime,checked:ume.toggled},ume.label?dme("tpl",ume.label):null))})):null},eme.prototype.renderDragToggler=function(){var $P=this.props,tme=$P.store,ame=$P.env,nme=$P.draggable,rme=$P.classPrefix,ime=$P.translate,ome=$P.popOverContainer;return!nme||tme.isNested?null:React__default.createElement(Button$1,{disabled:!!tme.modified,classPrefix:rme,key:"dragging-toggle",tooltip:{content:ime("Table.startSort"),placement:"bottom"},tooltipContainer:ome||ame.getModalContainer,size:"sm",active:tme.dragging,onClick:function(lme){lme.preventDefault(),tme.toggleDragging(),tme.dragging&&tme.clear()},iconOnly:!0},React__default.createElement(Icon$1,{icon:"exchange",className:"icon"}))},eme.prototype.renderExportExcel=function($P){var tme=this,ame=this.props,nme=ame.store,rme=ame.translate,ime=ame.render,ome=nme.filteredColumns||[];return ome?ime("exportExcel",__assign$3(__assign$3({label:rme("CRUD.exportExcel")},$P),{type:"button"}),{loading:nme.exportExcelLoading,onAction:function(){nme.update({exportExcelLoading:!0}),__vitePreload(()=>import("./exceljs.min-Qh4FJud-.js").then(lme=>lme.e),[]).then(function(lme){return __awaiter(tme,void 0,void 0,function(){var sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:sme=lme.default||lme,dme.label=1;case 1:return dme.trys.push([1,3,4,5]),[4,exportExcel(sme,this.props,$P)];case 2:return dme.sent(),[3,5];case 3:return cme=dme.sent(),console.error(cme),[3,5];case 4:return nme.update({exportExcelLoading:!1}),[7];case 5:return[2]}})})})}}):null},eme.prototype.renderExportExcelTemplate=function($P){var tme=this,ame=this.props,nme=ame.store,rme=ame.translate,ime=ame.render,ome=nme.filteredColumns||[];return ome?ime("exportExcelTemplate",__assign$3(__assign$3({label:rme("CRUD.exportExcelTemplate")},$P),{type:"button"}),{onAction:function(){__vitePreload(()=>import("./exceljs.min-Qh4FJud-.js").then(lme=>lme.e),[]).then(function(lme){return __awaiter(tme,void 0,void 0,function(){var sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:sme=lme.default||lme,dme.label=1;case 1:return dme.trys.push([1,3,,4]),[4,exportExcel(sme,this.props,$P,!0)];case 2:return dme.sent(),[3,4];case 3:return cme=dme.sent(),console.error(cme),[3,4];case 4:return[2]}})})})}}):null},eme.prototype.renderActions=function($P){var tme=this,ame=this.props,nme=ame.actions,rme=ame.render,ime=ame.store,ome=ame.classnames,lme=ame.data;return nme=Array.isArray(nme)?nme.concat():[],ime.toggable&&$P==="header"&&!~this.renderedToolbars.indexOf("columns-toggler")&&nme.push({type:"button",children:this.renderColumnsToggler()}),ime.draggable&&!ime.isNested&&$P==="header"&&ime.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&nme.push({type:"button",children:this.renderDragToggler()}),Array.isArray(nme)&&nme.length?React__default.createElement("div",{className:ome("Table-actions")},nme.map(function(sme,cme){return rme("action/".concat(cme),__assign$3({type:"button"},sme),{onAction:tme.handleAction,key:cme,btnDisabled:ime.dragging,data:ime.getData(lme)})})):null},eme.prototype.renderHeader=function($P){var tme=this.props,ame=tme.header,nme=tme.headerClassName,rme=tme.toolbarClassName,ime=tme.headerToolbarClassName,ome=tme.headerToolbarRender,lme=tme.render,sme=tme.showHeader,cme=tme.store,dme=tme.classnames,ume=tme.data,fme=tme.translate;if(sme===!1)return null;var pme={},hme=ome?ome(__assign$3(__assign$3(__assign$3({},this.props),{selectedItems:cme.selectedRows.map(function(gme){return gme.data}),items:cme.rows.map(function(gme){return gme.data}),unSelectedItems:cme.unSelectedRows.map(function(gme){return gme.data})}),pme),this.renderToolbar):null,bme=this.renderActions("header"),mme=bme||hme||cme.dragging?React__default.createElement("div",{className:dme("Table-toolbar Table-headToolbar",rme,ime),key:"header-toolbar"},bme,hme,cme.dragging?React__default.createElement("div",{className:dme("Table-dragTip"),ref:this.dragTipRef},fme("Table.dragTip")):null):null,vme=ame&&(!Array.isArray(ame)||ame.length)?React__default.createElement("div",{className:dme("Table-header",nme),key:"header"},lme("header",ame,__assign$3(__assign$3({},$P===!1?pme:null),{data:cme.getData(ume)}))):null;return vme&&mme?[vme,mme]:vme||mme||null},eme.prototype.renderFooter=function(){var $P=this.props,tme=$P.footer,ame=$P.toolbarClassName,nme=$P.footerToolbarClassName,rme=$P.footerClassName,ime=$P.footerToolbarRender,ome=$P.render,lme=$P.showFooter,sme=$P.store,cme=$P.data,dme=$P.classnames,ume=$P.affixFooter;if(lme===!1)return null;var fme=ime?ime(__assign$3(__assign$3({},this.props),{selectedItems:sme.selectedRows.map(function(mme){return mme.data}),unSelectedItems:sme.unSelectedRows.map(function(mme){return mme.data}),items:sme.rows.map(function(mme){return mme.data})}),this.renderToolbar):null,pme=this.renderActions("footer"),hme=tme&&(!Array.isArray(tme)||tme.length)?React__default.createElement("div",{className:dme("Table-footer",rme,ume?"Table-footer--affix":""),key:"footer"},ome("footer",tme,{data:sme.getData(cme)})):null,bme=pme||fme?React__default.createElement("div",{className:dme("Table-toolbar Table-footToolbar",ame,nme,!hme&&ume?"Table-footToolbar--affix":""),key:"footer-toolbar"},pme,fme):null;return hme&&bme?[bme,hme]:hme||bme||null},eme.prototype.renderTableContent=function(){var $P=this.props,tme=$P.classnames,ame=$P.tableClassName,nme=$P.store,rme=$P.placeholder,ime=$P.render,ome=$P.checkOnItemClick,lme=$P.buildItemProps,sme=$P.rowClassNameExpr,cme=$P.rowClassName,dme=$P.prefixRow,ume=$P.locale,fme=$P.affixRow,pme=$P.tableContentClassName,hme=$P.translate,bme=$P.itemAction;$P.affixRowClassNameExpr;var mme=$P.affixRowClassName;$P.prefixRowClassNameExpr;var vme=$P.prefixRowClassName,gme=$P.autoFillHeight,yme=$P.affixHeader,_me=$P.itemActions,$me=$P.dispatchEvent,Cme=$P.onEvent,Sme=$P.loadingConfig,Eme=$P.testIdBuilder;return $P.data,nme.rows.length,React__default.createElement(React__default.Fragment,null,React__default.createElement(TableContent$1,{testIdBuilder:Eme,tableClassName:tme({"Table-table--checkOnItemClick":ome,"Table-table--withCombine":nme.combineNum>0,"Table-table--affixHeader":yme&&!gme&&nme.columnWidthReady},ame),className:pme,itemActions:_me,itemAction:bme,store:nme,classnames:tme,columns:nme.filteredColumns,columnsGroup:nme.columnGroup,rows:nme.items,placeholder:rme,render:ime,onMouseMove:Array.isArray(_me)&&_me.length?this.handleMouseMove:void 0,onScroll:this.handleOutterScroll,tableRef:this.tableRef,renderHeadCell:this.renderHeadCell,renderCell:this.renderCell,onCheck:this.handleCheck,onRowClick:this.handleRowClick,onRowDbClick:this.handleRowDbClick,onRowMouseEnter:this.handleRowMouseEnter,onRowMouseLeave:this.handleRowMouseLeave,onQuickChange:nme.dragging?void 0:this.handleQuickChange,footable:nme.footable,footableColumns:nme.footableColumns,checkOnItemClick:ome,buildItemProps:lme,onAction:this.handleAction,rowClassNameExpr:sme,rowClassName:cme,data:nme.data,prefixRow:dme,affixRow:fme,prefixRowClassName:vme,affixRowClassName:mme,locale:ume,translate:hme,dispatchEvent:$me,onEvent:Cme,loading:nme.loading},renderItemActions({store:nme,classnames:tme,render:ime,itemActions:_me})),React__default.createElement(Spinner$1,{loadingConfig:Sme,overlay:!0,show:nme.loading}))},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.style,nme=$P.store,rme=$P.classnames;$P.affixColumns;var ime=$P.affixHeader,ome=$P.autoFillHeight,lme=$P.autoGenerateFilter,sme=$P.mobileUI,cme=$P.testIdBuilder,dme=$P.id;this.renderedToolbars=[];var ume=ime&&!ome?null:this.renderHeading(),fme=ime&&!ome?null:this.renderHeader(),pme=this.renderFooter(),hme=rme("Table-table",this.props.tableClassName,{"Table-table--withCombine":nme.combineNum>0});return React__default.createElement("div",__assign$3({ref:this.dom,className:rme("Table",{"is-mobile":sme},tme,{"Table--unsaved":!!nme.modified||!!nme.moved,"Table--autoFillHeight":ome}),style:nme.buildStyles(ame),"data-id":dme},cme==null?void 0:cme.getTestId()),lme?this.renderAutoFilterForm():null,this.renderAffixHeader(hme),fme,ume,React__default.createElement("div",{className:rme("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},this.renderTableContent()),pme)},eme.contextType=ScopedContext,eme.propsList=["header","headerToolbarRender","footer","footerToolbarRender","footable","expandConfig","placeholder","tableClassName","headingClassName","source","selectable","columnsTogglable","affixHeader","affixColumns","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","draggable","checkOnItemClick","hideCheckToggler","itemAction","itemActions","combineNum","combineFromIndex","items","columns","valueField","saveImmediately","rowClassName","rowClassNameExpr","affixRowClassNameExpr","prefixRowClassNameExpr","popOverContainer","headerToolbarClassName","toolbarClassName","footerToolbarClassName","itemBadge","autoFillHeight","onSelect","keepItemSelectionOnPageChange","maxKeepItemSelectionLength","maxItemSelectionLength","autoGenerateFilter"],eme.defaultProps={className:"",placeholder:"placeholder.noData",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",headerToolbarClassName:"",footerToolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,canAccessSuperData:!1,resizable:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"loadDeferredRow",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragStart",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragOver",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleDrop",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragEnd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleImageEnlarge",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleColResizeMouseDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleColResizeMouseMove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleColResizeMouseUp",null),eme}(React__default.Component),TableRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.receive=function($P,tme){var ame,nme,rme,ime=this.context;if(!((ame=this.props)===null||ame===void 0)&&ame.host)return(rme=(nme=this.props.host).receive)===null||rme===void 0?void 0:rme.call(nme,$P,tme);if(tme)return ime.send(tme,$P)},eme.prototype.getEventTargets=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme;return __generator(this,function(ime){return rme=this.props.store,[2,getMatchedEventTargets(rme.rows,$P||this.props.data,tme,ame,nme)]})})},eme.prototype.reload=function($P,tme,ame,nme,rme,ime){var ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume=this;return __generator(this,function(fme){switch(fme.label){case 0:return ime!=null&&ime.index||ime!=null&&ime.condition?[4,this.getEventTargets(ame||this.props.data,ime.index,ime==null?void 0:ime.condition)]:[3,3];case 1:return cme=fme.sent(),[4,Promise.all(cme.map(function(pme){return ume.loadDeferredRow(pme)}))];case 2:return fme.sent(),[2];case 3:return dme=this.context,!((ome=this.props)===null||ome===void 0)&&ome.host?[2,(sme=(lme=this.props.host).reload)===null||sme===void 0?void 0:sme.call(lme,$P,tme,ame)]:$P?[2,dme.reload($P,ame)]:[2]}})})},eme.prototype.setData=function($P,tme,ame,nme){var rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return ime=this.props.store,ame!==void 0||nme!==void 0?[4,this.getEventTargets(this.props.data,ame,nme)]:[3,2];case 1:return ome=sme.sent(),ome.forEach(function(cme){cme.updateData($P)}),[3,3];case 2:return lme=__assign$3(__assign$3({},$P),{rows:(rme=$P.rows)!==null&&rme!==void 0?rme:$P.items}),[2,ime.updateData(lme,void 0,tme)];case 3:return[2]}})})},eme.prototype.getData=function(){var $P=this.props,tme=$P.store,ame=$P.data;return tme.getData(ame)},eme.prototype.doAction=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:switch(rme=this.props,ime=rme.store,ome=rme.valueField,lme=rme.data,sme=$P==null?void 0:$P.actionType,cme=sme,cme){case"selectAll":return[3,1];case"clearAll":return[3,2];case"select":return[3,3];case"initDrag":return[3,5];case"cancelDrag":return[3,6];case"submitQuickEdit":return[3,7];case"toggleExpanded":return[3,8];case"setExpanded":return[3,10]}return[3,12];case 1:return ime.clear(),ime.toggleAll(),[3,13];case 2:return ime.clear(),[3,13];case 3:return[4,this.getEventTargets(tme,nme.index,nme.condition,nme.selected)];case 4:return dme=pme.sent(),ime.updateSelected(dme.map(function(hme){return hme.data}),ome),[3,13];case 5:return ime.startDragging(),[3,13];case 6:return ime.stopDragging(),[3,13];case 7:return this.handleSave(),[3,13];case 8:return[4,this.getEventTargets(tme,nme.index,nme.condition)];case 9:return ume=pme.sent(),ume.forEach(function(hme){ime.toggleExpanded(hme)}),[3,13];case 10:return[4,this.getEventTargets(tme,nme.index,nme.condition)];case 11:return fme=pme.sent(),fme.forEach(function(hme){ime.setExpanded(hme,!!nme.value)}),[3,13];case 12:return[2,this.handleAction(void 0,$P,lme)];case 13:return[2]}})})},eme=__decorate$1([Renderer({type:"table",storeType:TableStore.name,name:"table"})],eme),eme}(Table);const index$6=Object.freeze(Object.defineProperty({__proto__:null,TableCell,TableRenderer,default:Table},Symbol.toStringTag,{value:"Module"}));var StaticControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleQuickChange=tme.handleQuickChange.bind(tme),tme}return eme.prototype.handleQuickChange=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return rme=this.props,ime=rme.onBulkChange,ome=rme.onAction,lme=rme.data,tme&&tme.api?[4,ome(null,{actionType:"ajax",api:tme.api,reload:nme==null?void 0:nme.reload},extendObject(lme,$P),!0)]:[3,2];case 1:sme.sent(),sme.label=2;case 2:return ime&&ime($P,tme===!0),[2]}})})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className;tme.style;var nme=tme.value,rme=tme.label,ime=tme.type,ome=tme.render;tme.children;var lme=tme.data,sme=tme.classnames,cme=tme.name,dme=tme.disabled,ume=tme.$schema,fme=tme.defaultValue,pme=tme.borderMode,hme=__rest$14(tme,["className","style","value","label","type","render","children","data","classnames","name","disabled","$schema","defaultValue","borderMode"]),bme=/^static/.test(ime)?ime.substring(7)||(hme.tpl?"tpl":"plain"):ime,mme=__assign$3(__assign$3({label:rme,name:cme},ume),{style:ume.innerStyle,type:bme});return React__default.createElement("div",{className:sme("Form-static",($P={},$P["Form-static--border".concat(ucFirst(pme))]=pme,$P))},React__default.createElement(StaticFieldRenderer,__assign$3({},__assign$3(__assign$3({},hme),{name:cme,render:ome,field:mme,value:nme===fme?void 0:nme,className:ame,onQuickChange:this.handleQuickChange,data:lme,disabled:dme,classnames:sme}))))},eme.defaultProps={placeholder:"-"},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({test:/(^|\/)static(\-[^\/]+)?$/,weight:-90,strictMode:!1,sizeMutable:!1,name:"static"})],eme),eme})(StaticControl);var StaticFieldRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props;$P.type;var tme=$P.className,ame=$P.render,nme=$P.style,rme=$P.wrapperComponent,ime=$P.contentsOnly;$P.labelClassName;var ome=$P.value,lme=$P.data,sme=$P.children,cme=$P.width,dme=$P.inputClassName;$P.label;var ume=$P.tabIndex,fme=$P.onKeyUp,pme=$P.field,hme=__rest$14($P,["type","className","render","style","wrapperComponent","contentsOnly","labelClassName","value","data","children","width","inputClassName","label","tabIndex","onKeyUp","field"]),bme=__assign$3(__assign$3({},pme),{className:dme,type:pme&&pme.type||"plain"}),mme=sme||ame("field",bme,__assign$3(__assign$3({},omit$1(hme,Object.keys(bme))),{value:ome,data:lme}));return cme&&(nme=nme||{},nme.width=nme.width||cme),ime?mme:(rme=rme||"div",React__default.createElement(rme,{className:tme,tabIndex:ume,onKeyUp:fme},mme))},eme.defaultProps=__assign$3(__assign$3({},TableCell.defaultProps),{wrapperComponent:"div"}),eme=__decorate$1([HocQuickEdit(),HocPopOver({position:"right"}),HocCopyable()],eme),eme}(TableCell),EditorControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={focused:!1},tme.toDispose=[],tme.divRef=React__default.createRef(),tme.prevHeight=0,tme.handleFocus=tme.handleFocus.bind(tme),tme.handleBlur=tme.handleBlur.bind(tme),tme.handleChange=tme.handleChange.bind(tme),tme.handleEditorMounted=tme.handleEditorMounted.bind(tme),tme}return eme.prototype.componentWillUnmount=function(){this.toDispose.forEach(function($P){return $P()})},eme.prototype.doAction=function($P,tme,ame,nme){var rme,ime,ome=$P==null?void 0:$P.actionType,lme=this.props,sme=lme.onChange,cme=lme.resetValue,dme=lme.formStore,ume=lme.store,fme=lme.name;if(ome==="clear")sme("");else if(ome==="reset"){var pme=(ime=getVariable((rme=dme==null?void 0:dme.pristine)!==null&&rme!==void 0?rme:ume==null?void 0:ume.pristine,fme))!==null&&ime!==void 0?ime:cme;sme(pme??"")}else ome==="focus"&&this.focus()},eme.prototype.focus=function(){var $P,tme;this.editor.focus(),this.setState({focused:!0});var ame=($P=this.editor)===null||$P===void 0?void 0:$P.getPosition();(tme=this.editor)===null||tme===void 0||tme.setPosition(ame)},eme.prototype.handleFocus=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.value,rme=tme.onFocus,this.setState({focused:!0}),[4,ame("focus",resolveEventData(this.props,{value:nme}))];case 1:return ime=ome.sent(),ime!=null&&ime.prevented?[2]:(rme==null||rme($P),[2])}})})},eme.prototype.handleBlur=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.value,rme=tme.onBlur,this.setState({focused:!1}),[4,ame("blur",resolveEventData(this.props,{value:nme}))];case 1:return ime=ome.sent(),ime!=null&&ime.prevented?[2]:(rme==null||rme($P),[2])}})})},eme.prototype.handleChange=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.onChange,[4,ame("change",resolveEventData(this.props,{value:$P}))];case 1:return rme=ime.sent(),rme!=null&&rme.prevented?[2]:(nme==null||nme($P),[2])}})})},eme.prototype.handleEditorMounted=function($P,tme){var ame=this;if(this.editor=$P,this.toDispose.push($P.onDidChangeModelDecorations(function(){ame.updateContainerSize($P,tme),requestAnimationFrame(ame.updateContainerSize.bind(ame,$P,tme))}).dispose),this.props.editorDidMount){var nme=this.props.editorDidMount;typeof nme=="string"&&(nme=new Function("editor","monaco",nme));var rme=nme($P,tme);typeof rme=="function"&&this.toDispose.push(rme)}},eme.prototype.updateContainerSize=function($P,tme){var ame;if(this.divRef.current){var nme=$P.getOption(tme.editor.EditorOption.lineHeight),rme=((ame=$P.getModel())===null||ame===void 0?void 0:ame.getLineCount())||1,ime=$P.getTopForLineNumber(rme+1)+nme;this.prevHeight!==ime&&(this.prevHeight=ime,this.divRef.current.style.height="".concat(ime,"px"),$P.layout())}},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className;tme.style;var nme=tme.classPrefix,rme=tme.classnames,ime=tme.value;tme.onChange;var ome=tme.disabled,lme=tme.options,sme=tme.editorTheme,cme=tme.theme,dme=tme.size,ume=tme.data,fme=tme.allowFullscreen,pme=tme.placeholder,hme=this.props.language,bme=ime;return bme&&typeof bme!="string"&&(bme=JSON.stringify(bme,null,2)),isPureVariable(hme)&&(hme=resolveVariableAndFilter(hme,ume)),React__default.createElement("div",{ref:this.divRef,className:rme("EditorControl",($P={"is-focused":this.state.focused},$P["EditorControl--".concat(dme)]=dme,$P),ame)},React__default.createElement(themedLazyComponent,{classPrefix:nme,component:MonacoEditor,allowFullscreen:fme,value:bme,onChange:this.handleChange,disabled:ome,onFocus:this.handleFocus,onBlur:this.handleBlur,language:hme,editorTheme:sme||(cme==="dark"?"vs-dark":"vs"),editorDidMount:this.handleEditorMounted,childProps:{placeholder:pme},options:__assign$3(__assign$3({},lme),{readOnly:ome})}))},eme.defaultProps={language:"javascript",editorTheme:"",allowFullscreen:!0,options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"updateContainerSize",null),eme}(React__default.Component),availableLanguages=["bat","c","coffeescript","cpp","csharp","css","dockerfile","fsharp","go","handlebars","html","ini","java","javascript","json","less","lua","markdown","msdax","objective-c","php","plaintext","postiats","powershell","pug","python","r","razor","ruby","sb","scss","sol","shell","sql","swift","typescript","vb","xml","yaml"];availableLanguages.map(function(x_){var eme=function($P){__extends$2(tme,$P);function tme(){return $P!==null&&$P.apply(this,arguments)||this}return tme.lang=x_,tme.displayName="".concat(x_[0].toUpperCase()).concat(x_.substring(1),"EditorControlRenderer"),tme.defaultProps=__assign$3(__assign$3({},EditorControl.defaultProps),{language:x_}),tme=__decorate$1([FormItem({type:"".concat(x_,"-editor"),sizeMutable:!1})],tme),tme}(EditorControl);return eme});(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.defaultProps=__assign$3(__assign$3({},EditorControl.defaultProps),{language:"javascript"}),eme=__decorate$1([FormItem({type:"js-editor",sizeMutable:!1})],eme),eme})(EditorControl);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.defaultProps=__assign$3(__assign$3({},EditorControl.defaultProps),{language:"typescript"}),eme=__decorate$1([FormItem({type:"ts-editor",sizeMutable:!1})],eme),eme})(EditorControl);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.defaultProps=__assign$3(__assign$3({},EditorControl.defaultProps),{language:"javascript"}),eme=__decorate$1([FormItem({type:"editor",sizeMutable:!1})],eme),eme})(EditorControl);var ColProps=["lg","md","sm","xs"];function fromBsClass(x_){return typeof x_=="string"&&x_?x_.replace(/\bcol-(xs|sm|md|lg)-(\d+)\b/g,function(eme,$P,tme){return"Grid-col--".concat($P).concat(tme)}):x_}function copProps2Class(x_){var eme=[],$P=ColProps;return $P.forEach(function(tme){return x_&&x_[tme]&&eme.push("Grid-col--".concat(tme).concat(ucFirst(x_[tme])))}),eme.length||eme.push("Grid-col--md"),eme.join(" ")}var Grid=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderChild=function($P,tme,ame,nme){nme===void 0&&(nme={});var rme=this.props,ime=rme.render,ome=rme.itemRender;return ome?ome(tme,ame,this.props):ime($P,tme,nme)},eme.prototype.renderColumn=function($P,tme,ame){var nme,rme=pick$3($P,ColProps);rme=__assign$3({},rme);var ime=this.props,ome=ime.classnames,lme=ime.formMode,sme=ime.subFormMode,cme=ime.subFormHorizontal,dme=ime.formHorizontal;ime.translate;var ume=ime.disabled,fme=ime.data,pme=ime.env,hme=buildStyle($P.style,fme),bme=$P.id,mme=$P.themeCss,vme=$P.wrapperCustomStyle;return React__default.createElement("div",{key:tme,className:ome(copProps2Class(rme),fromBsClass($P.columnClassName),(nme={},nme["Grid-col--v".concat(ucFirst($P.valign))]=$P.valign,nme),setThemeClassName(__assign$3(__assign$3({},$P),{name:"baseControlClassName",id:bme,themeCss:mme})),setThemeClassName(__assign$3(__assign$3({},$P),{name:"wrapperCustomStyle",id:bme,themeCss:mme}))),style:hme},this.renderChild("column/".concat(tme),$P.body||"",ame,{disabled:ume,formMode:$P.mode||sme||lme,formHorizontal:$P.horizontal||cme||dme}),React__default.createElement(CustomStyle,__assign$3({},$P,{config:{wrapperCustomStyle:vme,id:bme,themeCss:mme,classNames:[{key:"baseControlClassName"}]},env:pme})))},eme.prototype.renderColumns=function($P){var tme=this;return Array.isArray($P)?$P.map(function(ame,nme){return tme.renderColumn(ame,nme,$P.length)}):null},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className,nme=tme.style,rme=tme.classnames,ime=tme.gap,ome=tme.valign,lme=tme.align,sme=tme.loading,cme=sme===void 0?!1:sme,dme=tme.loadingConfig,ume=tme.data,fme=tme.id,pme=tme.wrapperCustomStyle,hme=tme.env,bme=tme.themeCss,mme=buildStyle(nme,ume);return React__default.createElement("div",{className:rme("Grid",($P={},$P["Grid--".concat(ime)]=ime,$P["Grid--v".concat(ucFirst(ome))]=ome,$P["Grid--h".concat(ucFirst(lme))]=lme,$P),ame,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"baseControlClassName",id:fme,themeCss:bme})),setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:fme,themeCss:pme}))),style:mme,"data-id":fme},this.renderColumns(this.props.columns),React__default.createElement(Spinner$1,{loadingConfig:dme,overlay:!0,show:cme}),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{wrapperCustomStyle:pme,id:fme,themeCss:bme,classNames:[{key:"baseControlClassName"}]},env:hme})))},eme.propsList=["columns"],eme.defaultProps={},eme}(React__default.Component),GridRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"grid"})],eme),eme}(Grid);function renderCommonStatic(x_,eme){var $P=x_.type,tme=x_.render,ame=x_.staticSchema,nme=__assign$3(__assign$3({},x_),ame);switch($P){case"select":case"checkboxes":case"button-group-select":case"input-tree":case"tree-select":case"nested-select":case"cascader-select":case"radios":case"multi-select":case"transfer":case"transfer-picker":case"tabs-transfer":case"tabs-transfer-picker":case"picker":return tme("static-select",{type:"words"},nme);case"input-date":case"input-datetime":case"input-time":case"input-month":case"input-quarter":case"input-year":return renderStaticDateTypes(nme);case"input-date-range":case"input-datetime-range":case"input-time-range":case"input-month-range":case"input-quarter-range":case"input-year-range":return tme("static-input-date-range",{type:"date-range"},__assign$3(__assign$3(__assign$3({},x_),{valueFormat:x_.format,format:x_.inputFormat}),ame));case"input-password":return tme("static-input-password",{type:"password"},nme);case"input-color":return tme("static-color",{type:"color"},nme);case"input-tag":return tme("static-input-tag",{type:"tags"},nme);case"input-url":return tme("static-input-url",{type:"link",href:eme},nme);case"input-number":return tme("static-input-number",{type:"number"},__assign$3(__assign$3({},x_),ame));default:return eme}}function supportStatic(){return function(x_,eme,$P){var tme=$P.value;return $P.value=function(){for(var ame=[],nme=0;nme<arguments.length;nme++)ame[nme]=arguments[nme];var rme=this.props;if(rme.static){var ime=rme.render,ome=rme.staticSchema,lme=rme.classPrefix,sme=rme.classnames,cme=rme.className,dme=rme.placeholder,ume=rme.staticPlaceholder,fme=ume===void 0?React__default.createElement("span",{className:"text-muted"},dme||"-"):ume,pme=void 0,hme=getPropValue(rme),bme=hme==null||hme==="";return ome&&(ome.type||Array.isArray(ome)||typeof ome=="string"||typeof ome=="number")?pme=ime("form-static-schema",ome,rme):x_.renderStatic?pme=x_.renderStatic.apply(this,__spreadArray(__spreadArray([],__read$3(ame),!1),[bme?fme:hme],!1)):bme?pme=fme:pme=renderCommonStatic(rme,hme),React__default.createElement(ErrorBoundary,{customErrorMsg:"拦截到".concat(rme.$schema.type,"渲染错误"),fallback:function(){var mme;return React__default.createElement("div",{className:"renderer-error-boundary"},(mme=rme.$schema)===null||mme===void 0?void 0:mme.type,"渲染发生错误，详细错误信息请查看控制台输出。")}},React__default.createElement("div",{className:sme("".concat(lme,"Form-static"),cme)},pme))}return tme.apply(this,ame)},$P}}function renderStaticDateTypes(x_){var eme=x_.render,$P=x_.type,tme=x_.inputFormat,ame=x_.valueFormat,nme=x_.timeFormat,rme=x_.displayFormat,ime=x_.format,ome=x_.value;return eme("static-input-date",{type:"date",value:ome,format:$P==="time"&&nme?nme:rme??tme,valueFormat:ame||ime})}var CheckboxControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.doAction=function($P,tme,ame){var nme,rme,ime=this.props,ome=ime.resetValue,lme=ime.onChange,sme=ime.formStore,cme=ime.store,dme=ime.name,ume=$P==null?void 0:$P.actionType;if(ume==="clear")lme("");else if(ume==="reset"){var fme=(rme=getVariable((nme=sme==null?void 0:sme.pristine)!==null&&nme!==void 0?nme:cme==null?void 0:cme.pristine,dme))!==null&&rme!==void 0?rme:ome;lme(fme??"")}},eme.prototype.dispatchChangeEvent=function($P){return $P===void 0&&($P={}),__awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.onChange,[4,ame("change",resolveEventData(this.props,{value:$P}))];case 1:return rme=ime.sent(),rme!=null&&rme.prevented?[2]:(nme&&nme($P),[2])}})})},eme.prototype.renderStatic=function(){var $P=this.props,tme=$P.value,ame=$P.trueValue,nme=$P.falseValue,rme=$P.option,ime=$P.render,ome=$P.partial,lme=$P.optionType,sme=$P.checked,cme=$P.labelClassName;return React__default.createElement(Checkbox$1$1,{inline:!0,value:tme||"",trueValue:ame,falseValue:nme,disabled:!0,partial:ome,optionType:lme,checked:sme,labelClassName:cme},rme?ime("option",rme):null)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className;tme.style;var nme=tme.value,rme=tme.trueValue,ime=tme.falseValue,ome=tme.option;tme.onChange;var lme=tme.disabled,sme=tme.render,cme=tme.partial,dme=tme.optionType,ume=tme.checked,fme=tme.labelClassName,pme=tme.testIdBuilder,hme=tme.classPrefix,bme=tme.id,mme=tme.env,vme=tme.themeCss,gme=formateCheckThemeCss(vme,"checkbox");return React__default.createElement("div",{className:cx$1("".concat(hme,"CheckboxControl"),ame,setThemeClassName(__assign$3(__assign$3({},this.props),{name:["checkboxControlClassName","checkboxControlCheckedClassName","checkboxClassName","checkboxCheckedClassName","checkboxInnerClassName","checkboxShowClassName"],id:bme,themeCss:gme})))},React__default.createElement(Checkbox$1$1,{inline:!0,value:nme||"",trueValue:rme,falseValue:ime,disabled:lme,onChange:function(yme){return $P.dispatchChangeEvent(yme)},partial:cme,optionType:dme,checked:ume,labelClassName:fme,testIdBuilder:pme,className:"first last"},ome?sme("option",ome):null),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{themeCss:gme,classNames:[{key:"checkboxControlClassName",weights:{default:{inner:".".concat(hme,"Checkbox:not(.checked):not(.disabled)")},hover:{suf:" .".concat(hme,"Checkbox:not(.disabled):not(.checked)")},disabled:{inner:".".concat(hme,"Checkbox.disabled:not(.checked)")}}},{key:"checkboxControlCheckedClassName",weights:{default:{inner:".".concat(hme,"Checkbox.checked:not(.disabled)")},hover:{suf:" .".concat(hme,"Checkbox.checked:not(.disabled)")},disabled:{inner:".".concat(hme,"Checkbox.checked.disabled")}}},{key:"checkboxClassName",weights:{default:{inner:".".concat(hme,"Checkbox:not(.checked):not(.disabled) > i")},hover:{suf:" .".concat(hme,"Checkbox:not(.disabled):not(.checked)"),inner:"> i"},disabled:{inner:".".concat(hme,"Checkbox.disabled:not(.checked) > i")}}},{key:"checkboxCheckedClassName",weights:{default:{inner:".".concat(hme,"Checkbox:not(.disabled) > i")},hover:{suf:" .".concat(hme,"Checkbox:not(.disabled)"),inner:"> i"},disabled:{inner:".".concat(hme,"Checkbox.disabled > i")}}},{key:"checkboxInnerClassName",weights:{default:{inner:".".concat(hme,"Checkbox:not(.disabled) > i .icon")},hover:{suf:" .".concat(hme,"Checkbox:not(.disabled)"),inner:"> i .icon"},disabled:{inner:".".concat(hme,"Checkbox.disabled > i .icon")}}},{key:"checkboxShowClassName",weights:{default:{inner:".".concat(hme,"Checkbox > i")}}}],id:bme},env:mme})))},eme.defaultProps={trueValue:!0,falseValue:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"dispatchChangeEvent",null),__decorate$1([supportStatic(),__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"render",null),eme}(React__default.Component),CheckboxControlRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([withBadge,FormItem({type:"checkbox",sizeMutable:!1,thin:!0})],eme),eme}(CheckboxControl);const Checkbox=Object.freeze(Object.defineProperty({__proto__:null,CheckboxControlRenderer,default:CheckboxControl},Symbol.toStringTag,{value:"Module"}));var Collapse=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.basicCollapse=React__default.createRef(),$P}return eme.prototype.handleCollapseChange=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.onCollapse,rme=resolveEventData(this.props,{collapsed:$P}),[4,ame("change",rme)];case 1:return ime=lme.sent(),[4,ame($P?"collapse":"expand",rme)];case 2:return ome=lme.sent(),ime!=null&&ime.prevented||ome!=null&&ome.prevented?[2]:(nme==null||nme($P),[2])}})})},eme.prototype.doAction=function($P,tme,ame,nme){var rme,ime,ome,lme;if(!(this.props.disabled||this.props.collapsable===!1)&&["expand","collapse"].includes($P.actionType)){var sme=$P.actionType==="collapse",cme=(ome=(ime=(rme=this.basicCollapse)===null||rme===void 0?void 0:rme.current)===null||ime===void 0?void 0:ime.getWrappedInstance)===null||ome===void 0?void 0:ome.call(ime);(lme=cme==null?void 0:cme.changeCollapsedState)===null||lme===void 0||lme.call(cme,sme)}},eme.prototype.render=function(){var $P=this.props,tme=$P.id,ame=$P.classPrefix,nme=$P.classnames,rme=$P.size,ime=$P.wrapperComponent,ome=$P.headingComponent,lme=$P.className,sme=$P.style,cme=$P.headingClassName,dme=$P.children,ume=$P.titlePosition,fme=$P.headerPosition,pme=$P.title,hme=$P.collapseTitle,bme=$P.collapseHeader,mme=$P.header,vme=$P.body,gme=$P.bodyClassName,yme=$P.render,_me=$P.collapsable;$P.translate;var $me=$P.mountOnEnter,Cme=$P.unmountOnExit,Sme=$P.showArrow,Eme=$P.expandIcon,xme=$P.disabled,Tme=$P.collapsed,Ome=$P.propsUpdate,Rme=$P.mobileUI,Nme=$P.divideLine,Ime=$P.enableFieldSetStyle,Pme=$P.themeCss,Mme=$P.wrapperCustomStyle,kme=pme||mme||"";return React__default.createElement(React__default.Fragment,null,React__default.createElement(Collapse$1$1,{id:tme,ref:this.basicCollapse,classnames:nme,classPrefix:ame,mountOnEnter:$me,unmountOnExit:Cme,size:rme,wrapperComponent:ime,headingComponent:ome,className:cx$1(lme,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"baseControlClassName",id:tme,themeCss:Pme})),setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:tme,themeCss:Mme}))),style:sme,headingClassName:cx$1(cme,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"headerControlClassName",id:tme,themeCss:Pme}))),bodyClassName:cx$1(gme,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"bodyControlClassName",id:tme,themeCss:Pme}))),headerPosition:ume||fme,collapsable:_me,collapsed:Tme,showArrow:Sme,disabled:xme,propsUpdate:Ome,expandIcon:Eme?typeof Eme.icon=="object"?React__default.createElement(Icon$1,{cx:nme,icon:Eme.icon,className:nme("Collapse-icon-tranform")}):yme("arrow-icon",Eme||"",{className:nme("Collapse-icon-tranform")}):null,collapseHeader:hme||bme?yme("heading",hme||bme):null,header:kme?yme("heading",kme):null,body:dme?typeof dme=="function"?dme(this.props):dme:vme?yme("body",vme):null,mobileUI:Rme,onCollapse:this.handleCollapseChange,divideLine:Nme,enableFieldSetStyle:Ime}),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{wrapperCustomStyle:Mme,id:tme,themeCss:Pme,classNames:[{key:"baseControlClassName"},{key:"bodyControlClassName",weights:{default:{inner:".".concat(ame,"Collapse-content")}}},{key:"headerControlClassName"}]},env:this.props.env})))},eme.propsList=["collapsable","collapsed","collapseTitle","showArrow","headerPosition","bodyClassName","headingClassName","collapseHeader","size"],__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",Promise)],eme.prototype,"handleCollapseChange",null),eme}(React__default.Component),CollapseRenderer=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this,nme=tme;return nme.registerComponent(ame),ame}return eme.prototype.componentWillUnmount=function(){var $P=this.context;$P.unRegisterComponent(this)},eme.contextType=ScopedContext,eme=__decorate$1([Renderer({type:"collapse"}),__metadata("design:paramtypes",[Object,Object])],eme),eme}(Collapse);const Collapse$1=Object.freeze(Object.defineProperty({__proto__:null,CollapseRenderer,default:Collapse},Symbol.toStringTag,{value:"Module"}));var FieldSetControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.renderBody=tme.renderBody.bind(tme),tme}return eme.prototype.renderBody=function(){var $P=this.props,tme=$P.body;$P.collapsable;var ame=$P.horizontal,nme=$P.render,rme=$P.mode,ime=$P.formMode,ome=$P.classnames;$P.store;var lme=$P.formClassName,sme=$P.disabled,cme=$P.formHorizontal,dme=$P.subFormMode,ume=$P.subFormHorizontal,fme={render:nme,disabled:sme,formMode:dme||ime,formHorizontal:ume||cme};return rme&&(fme.mode=rme),ame&&(fme.horizontal=ame),React__default.createElement("div",{className:ome("Form--".concat(fme.mode||ime||"normal"),lme)},tme?nme("body",tme,fme):null)},eme.prototype.render=function(){var $P=this.props;$P.controls;var tme=$P.className;$P.mode;var ame=$P.body,nme=__rest$14($P,["controls","className","mode","body"]);return React__default.createElement(Collapse,__assign$3({},nme,{body:ame,className:tme,children:this.renderBody,wrapperComponent:"fieldset",headingComponent:nme.titlePosition==="bottom"?"div":"legend"}))},eme.defaultProps={titlePosition:"top",headingClassName:"",collapsable:!1},eme.propsList=["collapsable","collapsed","collapseTitle","titlePosition","collapseTitle"],eme}(React__default.Component),FieldSetRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"fieldset",weight:-100,name:"fieldset"})],eme),eme}(FieldSetControl);const FieldSet=Object.freeze(Object.defineProperty({__proto__:null,FieldSetRenderer,default:FieldSetControl},Symbol.toStringTag,{value:"Module"}));var CardRenderer=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleClick=tme.handleClick.bind(tme),tme.handleAction=tme.handleAction.bind(tme),tme.handleCheck=tme.handleCheck.bind(tme),tme.getPopOverContainer=tme.getPopOverContainer.bind(tme),tme.handleQuickChange=tme.handleQuickChange.bind(tme),tme}return eme.prototype.isHaveLink=function(){var $P=this.props,tme=$P.href,ame=$P.itemAction,nme=$P.onCheck,rme=$P.checkOnItemClick,ime=$P.checkable;return tme||ame||nme||rme&&ime},eme.prototype.handleClick=function($P){var tme=this.props,ame=tme.item,nme=tme.href,rme=tme.data,ime=tme.env,ome=tme.blank,lme=tme.itemAction,sme=tme.onAction,cme=tme.onCheck,dme=tme.selectable,ume=tme.checkOnItemClick;if(nme){ime.jumpTo(filter$1(nme,rme),{type:"button",actionType:"url",blank:ome},rme);return}if(lme){sme&&sme($P,lme,(ame==null?void 0:ame.data)||rme);return}dme&&ume&&(cme==null||cme(ame))},eme.prototype.handleAction=function($P,tme,ame){var nme=this.props,rme=nme.onAction,ime=nme.item;rme&&rme($P,tme,ame||ime.data)},eme.prototype.handleCheck=function(){var $P=this.props.item;this.props.onCheck&&this.props.onCheck($P)},eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.handleQuickChange=function($P,tme,ame,nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.item;ime&&ime(ome,$P,tme,ame,nme)},eme.prototype.renderToolbar=function(){var $P=this.props,tme=$P.selectable,ame=$P.checkable,nme=$P.selected,rme=$P.multiple,ime=$P.hideCheckToggler,ome=$P.classnames,lme=$P.toolbar,sme=$P.render,cme=$P.dragging,dme=$P.data,ume=$P.header,fme=[];if(ume){var pme=ume.highlightClassName,hme=ume.highlight;(typeof hme=="string"?evalExpression(hme,dme):hme)&&fme.push(React__default.createElement("i",{key:"highlight",className:ome("Card-highlight",pme)}))}return tme&&!ime&&fme.push(React__default.createElement(Checkbox$1$1,{key:"check",className:ome("Card-checkbox"),type:rme!==!1?"checkbox":"radio",disabled:!ame,checked:nme,onChange:this.handleCheck})),Array.isArray(lme)&&lme.forEach(function(bme,mme){return fme.push(sme("toolbar/".concat(mme),__assign$3({type:"button",level:"link",size:"sm"},bme),{key:mme}))}),cme&&fme.push(React__default.createElement("div",{className:ome("Card-dragBtn")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"}))),fme.length?React__default.createElement("div",{className:ome("Card-toolbar")},fme):null},eme.prototype.renderActions=function(){var $P=this,tme=this.props,ame=tme.actions,nme=tme.render,rme=tme.dragging,ime=tme.actionsCount,ome=tme.data,lme=tme.classnames;if(Array.isArray(ame)){var sme=padArr(ame.filter(function(cme){return isVisible(cme,ome)}),ime);return sme.map(function(cme,dme){return React__default.createElement("div",{key:dme,className:lme("Card-actions")},cme.map(function(ume,fme){var pme=ume.size||"sm";return nme("action/".concat(fme),__assign$3(__assign$3({level:"link",type:"button"},ume),{testid:ume.testid?filter$1(ume.testid,ome):fme,size:pme}),{isMenuItem:!0,key:fme,index:fme,disabled:rme||isDisabled(ume,ome),className:lme("Card-action",filterClassNameObject(ume.className||"".concat(pme?"Card-action--".concat(pme):""),ome),{"is-disabled":isDisabled(ume,ome)}),componentClass:"a",onAction:$P.handleAction})}))})}},eme.prototype.renderChild=function($P,tme,ame){tme===void 0&&(tme="body"),ame===void 0&&(ame=0);var nme=this.props.render;if(typeof $P=="string"||typeof $P=="number")return nme(tme,$P,{key:ame});var rme=$P;return rme.type==="hbox"||rme.type==="grid"?nme(tme,$P,{key:ame,itemRender:this.itemRender.bind(this)}):this.renderFeild(tme,rme,ame,this.props)},eme.prototype.itemRender=function($P,tme,ame){return this.renderFeild("column/".concat(tme),$P,tme,ame)},eme.prototype.renderFeild=function($P,tme,ame,nme){var rme=nme.render,ime=nme.classnames,ome=nme.itemIndex,lme=(nme==null?void 0:nme.useCardLabel)!==!1,sme=this.props.data;if(!(!tme||!isVisible(tme,sme))){var cme=tme.$$id?"".concat(tme.$$id,"-field"):"";return React__default.createElement("div",{className:ime("Card-field"),key:ame},lme&&tme.label?React__default.createElement("label",{className:ime("Card-fieldLabel",tme.labelClassName)},tme.label):null,rme($P,__assign$3(__assign$3({},tme),{field:tme,$$id:cme,type:"card-item-field"}),{useCardLabel:lme,className:ime("Card-fieldValue",filterClassNameObject(tme.className,sme)),rowIndex:ome,colIndex:ame,popOverContainer:this.getPopOverContainer,onAction:this.handleAction,onQuickChange:this.handleQuickChange}))}},eme.prototype.renderBody=function(){var $P=this,tme=this.props.body;return tme?Array.isArray(tme)?tme.map(function(ame,nme){return $P.renderChild(ame,"body/".concat(nme),nme)}):this.renderChild(tme,"body"):null},eme.prototype.rederTitle=function(){var $P=this.props,tme=$P.render,ame=$P.data,nme=$P.header;if(nme){var rme=(nme||{}).title,ime=filter$1(rme,ame);return ime?tme("title",rme):void 0}},eme.prototype.renderSubTitle=function(){var $P=this.props,tme=$P.render,ame=$P.data,nme=$P.header;if(nme){var rme=(nme||{}).subTitle;return rme?tme("sub-title",rme,{data:ame}):void 0}},eme.prototype.renderSubTitlePlaceholder=function(){var $P=this.props,tme=$P.render,ame=$P.header,nme=$P.classnames;if(ame){var rme=(ame||{}).subTitlePlaceholder;return rme?tme("sub-title",rme,{className:nme("Card-placeholder")}):void 0}},eme.prototype.renderDesc=function(){var $P=this.props,tme=$P.render,ame=$P.data,nme=$P.header;if(nme){var rme=nme||{},ime=rme.desc,ome=rme.description,lme=filter$1(ome||ime,ame);return lme?tme("desc",ome||ime,{className:lme?null:"text-muted"}):void 0}},eme.prototype.renderDescPlaceholder=function(){var $P=this.props,tme=$P.render,ame=$P.header;if(ame){var nme=ame.descriptionPlaceholder||ame.descPlaceholder;return nme?tme("desc",nme,{className:nme?null:"text-muted"}):void 0}},eme.prototype.renderAvatar=function(){var $P=this.props,tme=$P.data,ame=$P.header;if(ame){var nme=(ame||{}).avatar,rme=filter$1(nme,tme,"| raw");return rme||void 0}},eme.prototype.renderAvatarText=function(){var $P=this.props,tme=$P.render,ame=$P.data,nme=$P.header;if(nme){var rme=(nme||{}).avatarText,ime=filter$1(rme,ame);return ime?tme("avatarText",rme):void 0}},eme.prototype.renderSecondary=function(){var $P=this.props,tme=$P.render,ame=$P.data,nme=$P.secondary,rme=filter$1(nme,ame);return rme?tme("secondary",nme):void 0},eme.prototype.renderAvatarTextStyle=function(){var $P=this.props,tme=$P.header,ame=$P.data;if(tme){var nme=tme.avatarText,rme=tme.avatarTextBackground,ime=filter$1(nme,ame),ome={};return ime&&rme&&rme.length&&(ome.background=rme[Math.abs(hashCode(ime))%rme.length]),ome}},eme.prototype.renderMedia=function(){var $P=this.props,tme=$P.media,ame=$P.classnames,nme=$P.render,rme=$P.region,ime=$P.data;if(tme){var ome=tme.type,lme=tme.url,sme=tme.className,cme=tme.autoPlay,dme=tme.isLive,ume=tme.poster,fme=resolveVariableAndFilter(lme,ime,"| raw");if(ome==="image"&&fme)return React__default.createElement("img",{className:ame("Card-multiMedia-img",sme),src:fme});if(ome==="video"&&fme)return React__default.createElement("div",{className:ame("Card-multiMedia-video",sme)},nme(rme,{type:ome,autoPlay:cme,poster:ume,src:fme,isLive:dme}))}},eme.prototype.render=function(){var $P=this.props,tme=$P.header,ame=$P.className,nme=$P.avatarClassName,rme=$P.avatarTextClassName,ime=$P.descClassName,ome=$P.descriptionClassName,lme=$P.titleClassName,sme=$P.subTitleClassName,cme=$P.bodyClassName,dme=$P.imageClassName,ume=$P.headerClassName,fme=$P.secondaryClassName,pme=$P.footerClassName;$P.mediaClassName;var hme=$P.media,bme=__rest$14($P,["header","className","avatarClassName","avatarTextClassName","descClassName","descriptionClassName","titleClassName","subTitleClassName","bodyClassName","imageClassName","headerClassName","secondaryClassName","footerClassName","mediaClassName","media"]),mme=this.props.data,vme=filterClassNameObject(tme==null?void 0:tme.className,mme)||ume,gme=filterClassNameObject(tme==null?void 0:tme.titleClassName,mme)||lme,yme=filterClassNameObject(tme==null?void 0:tme.subTitleClassName,mme)||sme,_me=filterClassNameObject(tme==null?void 0:tme.descClassName,mme)||ime,$me=filterClassNameObject(tme==null?void 0:tme.descriptionClassName,mme)||ome||_me,Cme=filterClassNameObject(tme==null?void 0:tme.avatarTextClassName,mme)||rme,Sme=filterClassNameObject(tme==null?void 0:tme.avatarClassName,mme)||nme,Eme=filterClassNameObject(tme==null?void 0:tme.imageClassName,mme)||dme,xme=hme==null?void 0:hme.position;return React__default.createElement(Card$1$1,__assign$3({},bme,{title:this.rederTitle(),subTitle:this.renderSubTitle(),subTitlePlaceholder:this.renderSubTitlePlaceholder(),description:this.renderDesc(),descriptionPlaceholder:this.renderDescPlaceholder(),children:this.renderBody(),actions:this.renderActions(),avatar:this.renderAvatar(),avatarText:this.renderAvatarText(),secondary:this.renderSecondary(),toolbar:this.renderToolbar(),avatarClassName:Sme,avatarTextStyle:this.renderAvatarTextStyle(),avatarTextClassName:Cme,className:ame,titleClassName:gme,media:this.renderMedia(),subTitleClassName:yme,mediaPosition:xme,descriptionClassName:$me,imageClassName:Eme,headerClassName:vme,footerClassName:pme,secondaryClassName:fme,bodyClassName:cme,onClick:this.isHaveLink()?this.handleClick:this.handleCheck}))},eme.defaultProps={className:"",avatarClassName:"",headerClassName:"",footerClassName:"",secondaryClassName:"",avatarTextClassName:"",bodyClassName:"",actionsCount:4,titleClassName:"",highlightClassName:"",subTitleClassName:"",descClassName:"",descriptionClassName:"",imageClassName:"",highlight:!1,blank:!0,dragging:!1,selectable:!1,checkable:!0,selected:!1,hideCheckToggler:!1,useCardLabel:!0},eme.propsList=["avatarClassName","avatarTextClassName","bodyClassName","actionsCount","titleClassName","highlightClassName","subTitleClassName","descClassName","descriptionClassName","imageClassName","hideCheckToggler"],eme=__decorate$1([Renderer({type:"card"}),__metadata("design:paramtypes",[Object])],eme),eme}(React__default.Component),CardItemFieldRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props;$P.type;var tme=$P.className,ame=$P.render,nme=$P.style,rme=$P.wrapperComponent,ime=$P.contentsOnly;$P.labelClassName;var ome=$P.value,lme=$P.data,sme=$P.children,cme=$P.width,dme=$P.innerClassName;$P.label;var ume=$P.tabIndex,fme=$P.onKeyUp,pme=$P.field,hme=$P.useCardLabel,bme=__rest$14($P,["type","className","render","style","wrapperComponent","contentsOnly","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field","useCardLabel"]),mme=__assign$3(__assign$3({},pme),{renderLabel:!hme,className:dme,type:pme&&pme.type||"plain"}),vme=sme||ame("field",mme,__assign$3(__assign$3({},omit$1(bme,Object.keys(mme))),{value:ome,data:lme}));return cme&&(nme=nme||{},nme.width=nme.width||cme,vme=React__default.createElement("div",{style:{width:/%/.test(String(cme))?"":cme}},vme)),ime?vme:(rme=rme||"div",React__default.createElement(rme,{style:nme,className:tme,tabIndex:ume,onKeyUp:fme},vme))},eme.defaultProps=__assign$3(__assign$3({},TableCell.defaultProps),{wrapperComponent:"div"}),eme.propsList=__spreadArray(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],__read$3(TableCell.propsList),!1),eme=__decorate$1([Renderer({type:"card-item-field"}),HocQuickEdit(),HocPopOver(),HocCopyable()],eme),eme}(TableCell);const Card$1=Object.freeze(Object.defineProperty({__proto__:null,CardItemFieldRenderer,CardRenderer},Symbol.toStringTag,{value:"Module"}));var List=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.handleAction=tme.handleAction.bind(tme),tme.handleCheck=tme.handleCheck.bind(tme),tme.handleCheckAll=tme.handleCheckAll.bind(tme),tme.handleQuickChange=tme.handleQuickChange.bind(tme),tme.handleSave=tme.handleSave.bind(tme),tme.handleSaveOrder=tme.handleSaveOrder.bind(tme),tme.reset=tme.reset.bind(tme),tme.dragTipRef=tme.dragTipRef.bind(tme),tme.getPopOverContainer=tme.getPopOverContainer.bind(tme),tme.bodyRef=tme.bodyRef.bind(tme),tme.renderToolbar=tme.renderToolbar.bind(tme);var ame=$P.store,nme=$P.selectable,rme=$P.draggable,ime=$P.orderBy,ome=$P.orderDir,lme=$P.multiple,sme=$P.strictMode,cme=$P.hideCheckToggler,dme=$P.itemCheckableOn,ume=$P.itemDraggableOn;return ame.update({multiple:lme||($P==null?void 0:$P.$schema.multiple),strictMode:sme||($P==null?void 0:$P.$schema.strictMode),selectable:nme||($P==null?void 0:$P.$schema.selectable),draggable:rme||($P==null?void 0:$P.$schema.draggable),orderBy:ime,orderDir:ome,hideCheckToggler:cme,itemCheckableOn:dme,itemDraggableOn:ume}),eme.syncItems(ame,tme.props)&&tme.syncSelected(),tme}return eme.syncItems=function($P,tme,ame){var nme=tme.source,rme=getPropValue(tme,function(cme){return cme.items}),ime=[],ome=!1;if(Array.isArray(rme)&&(!ame||getPropValue(ame,function(cme){return cme.items})!==rme))ime=rme,ome=!0;else if(typeof nme=="string"){var lme=resolveVariableAndFilter(nme,tme.data,"| raw"),sme=ame?resolveVariableAndFilter(nme,ame.data,"| raw"):null;sme===lme?ome=!1:(ime=Array.isArray(lme)?lme:[],ome=!0)}return ome&&$P.initItems(ime),Array.isArray(tme.selected)&&$P.updateSelected(tme.selected,tme.valueField),ome},eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.store;anyChanged$1(["selectable","draggable","orderBy","orderDir","multiple","strictMode","hideCheckToggler","itemCheckableOn","itemDraggableOn"],$P,tme)&&ame.update({multiple:tme.multiple,strictMode:tme.strictMode,selectable:tme.selectable,draggable:tme.draggable,orderBy:tme.orderBy,orderDir:tme.orderDir,hideCheckToggler:tme.hideCheckToggler,itemCheckableOn:tme.itemCheckableOn,itemDraggableOn:tme.itemDraggableOn}),anyChanged$1(["source","value","items"],$P,tme)||!tme.value&&!tme.items&&(tme.data!==$P.data||typeof tme.source=="string"&&isPureVariable(tme.source))?eme.syncItems(ame,tme,$P)&&this.syncSelected():$P.selected!==tme.selected&&ame.updateSelected(tme.selected||[],tme.valueField)},eme.prototype.bodyRef=function($P){this.body=$P},eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.handleAction=function($P,tme,ame){var nme,rme=this.props,ime=rme.data,ome=rme.dispatchEvent,lme=rme.onAction,sme=rme.onEvent,cme=sme&&Array.isArray((nme=sme==null?void 0:sme.itemClick)===null||nme===void 0?void 0:nme.actions)&&sme.itemClick.actions.length>0;cme?ome("itemClick",createObject$1(ime,{item:ame})):tme&&(lme==null||lme($P,tme,ame))},eme.prototype.handleCheck=function($P){$P.toggle(),this.syncSelected()},eme.prototype.handleCheckAll=function(){var $P=this.props.store;$P.toggleAll(),this.syncSelected()},eme.prototype.syncSelected=function(){var $P=this.props,tme=$P.store,ame=$P.onSelect;ame&&ame(tme.selectedItems.map(function(nme){return nme.data}),tme.unSelectedItems.map(function(nme){return nme.data}))},eme.prototype.handleQuickChange=function($P,tme,ame,nme,rme){if($P.change(tme,nme),!(!ame||nme)){if(ame&&ame.api){this.props.onAction(null,{actionType:"ajax",api:ame.api,reload:rme==null?void 0:rme.reload},$P.locals);return}var ime=this.props,ome=ime.onSave,lme=ime.primaryField;ome&&ome($P.data,difference$2($P.data,$P.pristine,["id",lme]),$P.index,void 0,$P.pristine,rme)}},eme.prototype.handleSave=function(){var $P=this.props,tme=$P.store,ame=$P.onSave,nme=$P.primaryField;if(!(!ame||!tme.modifiedItems.length)){var rme=tme.modifiedItems.map(function(sme){return sme.data}),ime=tme.modifiedItems.map(function(sme){return sme.index}),ome=tme.modifiedItems.map(function(sme){return difference$2(sme.data,sme.pristine,["id",nme])}),lme=tme.items.filter(function(sme){return!sme.modified}).map(function(sme){return sme.data});return ame(rme,ome,ime,lme,tme.modifiedItems.map(function(sme){return sme.pristine}))}},eme.prototype.handleSaveOrder=function(){var $P=this.props,tme=$P.store,ame=$P.onSaveOrder;!ame||!tme.movedItems.length||ame(tme.movedItems.map(function(nme){return nme.data}),tme.items.map(function(nme){return nme.data}))},eme.prototype.reset=function(){var $P=this.props.store;$P.reset()},eme.prototype.bulkUpdate=function($P,tme){var ame=this.props,nme=ame.store,rme=ame.primaryField;if(rme&&$P.ids){var ime=$P.ids.split(","),ome=nme.items.filter(function(sme){return find$3(ime,function(cme){return cme&&cme==sme.data[rme]})}),lme=__assign$3(__assign$3({},$P),{ids:void 0});ome.forEach(function(sme){return sme.change(lme)})}else if(Array.isArray(tme)){var ome=nme.items.filter(function(cme){return~tme.indexOf(cme.pristine)});ome.forEach(function(cme){return cme.change($P)})}},eme.prototype.getSelected=function(){var $P=this.props.store;return $P.selectedItems.map(function(tme){return tme.data})},eme.prototype.dragTipRef=function($P){!this.dragTip&&$P?this.initDragging():this.dragTip&&!$P&&this.destroyDragging(),this.dragTip=$P},eme.prototype.initDragging=function(){var $P=this.props.store,tme=reactDomExports.findDOMNode(this),ame=this.props.classPrefix;this.sortable=new Sortable$1(tme.querySelector(".".concat(ame,"List-items")),{group:"table",animation:150,handle:".".concat(ame,"ListItem-dragBtn"),ghostClass:"is-dragging",onEnd:function(nme){if(nme.newIndex!==nme.oldIndex){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item),$P.exchange(nme.oldIndex,nme.newIndex)}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.renderActions=function($P){var tme=this,ame=this.props,nme=ame.actions,rme=ame.render,ime=ame.store;ame.multiple,ame.selectable,ame.env,ame.classPrefix;var ome=ame.classnames,lme;return nme=Array.isArray(nme)?nme.concat():[],$P==="header"&&!~this.renderedToolbars.indexOf("check-all")&&(lme=this.renderCheckAll())&&nme.unshift({type:"button",children:lme}),$P==="header"&&!~this.renderedToolbars.indexOf("drag-toggler")&&(lme=this.renderDragToggler())&&nme.unshift({type:"button",children:lme}),Array.isArray(nme)&&nme.length?React__default.createElement("div",{className:ome("List-actions")},nme.map(function(sme,cme){return rme("action/".concat(cme),__assign$3({type:"button"},sme),{onAction:tme.handleAction,key:cme,btnDisabled:ime.dragging})})):null},eme.prototype.renderHeading=function(){var $P=this.props,tme=$P.title,ame=$P.store,nme=$P.hideQuickSaveBtn,rme=$P.classnames,ime=$P.data;return tme||ame.modified&&!nme||ame.moved?React__default.createElement("div",{className:rme("List-heading")},ame.modified&&!nme?React__default.createElement("span",null,"当前有 ".concat(ame.modified," 条记录修改了内容, 但并没有提交。请选择:"),React__default.createElement("button",{type:"button",className:rme("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},React__default.createElement(Icon$1,{icon:"check",className:"icon m-r-xs"}),"提交"),React__default.createElement("button",{type:"button",className:rme("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},React__default.createElement(Icon$1,{icon:"close",className:"icon m-r-xs"}),"放弃")):ame.moved?React__default.createElement("span",null,"当前有 ".concat(ame.moved," 条记录修改了顺序, 但并没有提交。请选择:"),React__default.createElement("button",{type:"button",className:rme("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},React__default.createElement(Icon$1,{icon:"check",className:"icon m-r-xs"}),"提交"),React__default.createElement("button",{type:"button",className:rme("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},React__default.createElement(Icon$1,{icon:"close",className:"icon m-r-xs"}),"放弃")):tme?filter$1(tme,ime):""):null},eme.prototype.renderHeader=function(){var $P=this.props,tme=$P.header,ame=$P.headerClassName;$P.headerToolbar;var nme=$P.headerToolbarRender,rme=$P.render,ime=$P.showHeader,ome=$P.store,lme=$P.classnames;if(ime===!1)return null;var sme=nme?nme(__assign$3(__assign$3({},this.props),{selectedItems:ome.selectedItems.map(function(fme){return fme.data}),items:ome.items.map(function(fme){return fme.data}),unSelectedItems:ome.unSelectedItems.map(function(fme){return fme.data})}),this.renderToolbar):null,cme=this.renderActions("header"),dme=cme||sme||ome.dragging?React__default.createElement("div",{className:lme("List-toolbar",ame),key:"header-toolbar"},cme,sme,ome.dragging?React__default.createElement("div",{className:lme("List-dragTip"),ref:this.dragTipRef},"请拖动左边的按钮进行排序"):null):null,ume=tme&&(!Array.isArray(tme)||tme.length)?React__default.createElement("div",{className:lme("List-header",ame),key:"header"},rme("header",tme)):null;return ume&&dme?[ume,dme]:ume||dme||null},eme.prototype.renderFooter=function(){var $P=this.props,tme=$P.footer,ame=$P.footerClassName;$P.footerToolbar;var nme=$P.footerToolbarRender,rme=$P.render,ime=$P.showFooter,ome=$P.store,lme=$P.classnames,sme=$P.affixFooter;if(ime===!1)return null;var cme=nme?nme(__assign$3(__assign$3({},this.props),{selectedItems:ome.selectedItems.map(function(pme){return pme.data}),items:ome.items.map(function(pme){return pme.data}),unSelectedItems:ome.unSelectedItems.map(function(pme){return pme.data})}),this.renderToolbar):null,dme=this.renderActions("footer"),ume=tme&&(!Array.isArray(tme)||tme.length)?React__default.createElement("div",{className:lme("List-footer",ame,sme?"List-footer--affix":""),key:"footer"},rme("footer",tme)):null,fme=dme||cme?React__default.createElement("div",{className:lme("List-toolbar",ame,!ume&&sme?"List-footToolbar--affix":""),key:"footer-toolbar"},dme,cme):null;return ume&&fme?[fme,ume]:ume||fme||null},eme.prototype.renderCheckAll=function(){var $P=this.props,tme=$P.store,ame=$P.multiple,nme=$P.selectable;return!tme.selectable||!ame||!nme||tme.dragging||!tme.items.length?null:React__default.createElement(Button$1,{key:"checkall",tooltip:"切换全选",onClick:this.handleCheckAll,size:"sm",level:tme.allChecked?"info":"default"},"全选")},eme.prototype.renderDragToggler=function(){var $P=this.props,tme=$P.store;$P.multiple,$P.selectable;var ame=$P.popOverContainer,nme=$P.env;return!tme.draggable||tme.items.length<2?null:React__default.createElement(Button$1,{iconOnly:!0,key:"dragging-toggle",tooltip:"对列表进行排序操作",tooltipContainer:ame||(nme==null?void 0:nme.getModalContainer),size:"sm",active:tme.dragging,onClick:function(rme){rme.preventDefault(),tme.toggleDragging(),tme.dragging&&tme.clear()}},React__default.createElement(Icon$1,{icon:"exchange",className:"icon r90"}))},eme.prototype.renderToolbar=function($P,tme){var ame=$P.type||$P;if(ame==="drag-toggler")return this.renderedToolbars.push(ame),this.renderDragToggler();if(ame==="check-all")return this.renderedToolbars.push(ame),this.renderCheckAll()},eme.prototype.renderListItem=function($P,tme,ame,nme){var rme,ime=this.props,ome=ime.render,lme=ime.multiple,sme=ime.store;ime.onAction;var cme=ime.onEvent,dme=ime.hideCheckToggler,ume=ime.checkOnItemClick,fme=ime.itemAction,pme=ime.classnames;ime.translate;var hme=ime.testIdBuilder,bme=cme&&Array.isArray((rme=cme==null?void 0:cme.itemClick)===null||rme===void 0?void 0:rme.actions)&&cme.itemClick.actions.length>0;return ome("".concat($P),__assign$3({type:"list-item"},tme),{key:ame.index,className:pme(nme,{"is-checked":ame.checked,"is-modified":ame.modified,"is-moved":ame.moved}),testIdBuilder:hme==null?void 0:hme.getChild($P),selectable:sme.selectable,checkable:ame.checkable,multiple:lme,item:ame,itemIndex:ame.index,hideCheckToggler:dme,checkOnItemClick:ume,itemAction:fme,hasClickActions:bme,selected:ame.checked,onCheck:this.handleCheck,onAction:this.handleAction,dragging:sme.dragging,data:ame.locals,onQuickChange:sme.dragging?null:this.handleQuickChange,popOverContainer:this.getPopOverContainer})},eme.prototype.render=function(){var $P,tme=this,ame=this.props,nme=ame.className,rme=ame.style,ime=ame.itemClassName,ome=ame.store,lme=ame.placeholder,sme=ame.render;ame.multiple;var cme=ame.listItem;ame.onAction,ame.hideCheckToggler,ame.checkOnItemClick,ame.itemAction;var dme=ame.affixHeader;ame.env;var ume=ame.classnames,fme=ame.size,pme=ame.translate,hme=ame.loading,bme=hme===void 0?!1:hme,mme=ame.loadingConfig;this.renderedToolbars=[];var vme=this.renderHeading(),gme=this.renderHeader();return React__default.createElement("div",{className:ume("List",nme,($P={},$P["List--".concat(fme)]=fme,$P["List--unsaved"]=!!ome.modified||!!ome.moved,$P)),style:rme,ref:this.bodyRef},dme?React__default.createElement("div",{className:ume("List-fixedTop")},gme,vme):React__default.createElement(React__default.Fragment,null,gme,vme),ome.items.length?React__default.createElement("div",{className:ume("List-items")},ome.items.map(function(yme,_me){return tme.renderListItem(_me,cme,yme,ime)})):React__default.createElement("div",{className:ume("List-placeholder")},sme("placeholder",pme(lme))),this.renderFooter(),React__default.createElement(Spinner$1,{overlay:!0,show:bme,loadingConfig:mme}))},eme.propsList=["header","headerToolbarRender","footer","footerToolbarRender","placeholder","source","selectable","headerClassName","footerClassName","hideQuickSaveBtn","hideCheckToggler","itemCheckableOn","itemDraggableOn","actions","items","valueField"],eme.defaultProps={className:"",placeholder:"placeholder.noData",source:"$items",selectable:!1,headerClassName:"",footerClassName:"",affixHeader:!0},eme}(React__default.Component),ListRenderer=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this;return tme.registerComponent(ame),ame}return eme.prototype.componentWillUnmount=function(){var $P;($P=x_.prototype.componentWillUnmount)===null||$P===void 0||$P.call(this),this.context.unRegisterComponent(this)},eme.prototype.receive=function($P,tme){var ame,nme,rme,ime=this.context;if(!((ame=this.props)===null||ame===void 0)&&ame.host)return(rme=(nme=this.props.host).receive)===null||rme===void 0?void 0:rme.call(nme,$P,tme);if(tme)return ime.send(tme,$P)},eme.prototype.reload=function($P,tme,ame,nme,rme,ime){var ome,lme,sme,cme;return __awaiter(this,void 0,void 0,function(){var dme;return __generator(this,function(ume){return this.props.store,ime!=null&&ime.index||ime!=null&&ime.condition?[2]:(dme=this.context,!((ome=this.props)===null||ome===void 0)&&ome.host?[2,(cme=(lme=this.props)===null||lme===void 0?void 0:(sme=lme.host).reload)===null||cme===void 0?void 0:cme.call(sme,$P,tme,ame)]:$P?[2,dme.reload($P,ame)]:[2])})})},eme.prototype.setData=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return rme=this.props.store,ame!==void 0||nme!==void 0?[4,getMatchedEventTargets(rme.items,this.props.data,ame,nme)]:[3,2];case 1:return ime=ome.sent(),ime.forEach(function(lme){lme.updateData($P)}),[3,3];case 2:return[2,rme.updateData($P,void 0,tme)];case 3:return[2]}})})},eme.prototype.getData=function(){var $P=this.props,tme=$P.store,ame=$P.data;return tme.getData(ame)},eme.prototype.doAction=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:switch(rme=this.props,ime=rme.store,ome=rme.valueField,lme=rme.data,sme=$P==null?void 0:$P.actionType,cme=sme,cme){case"selectAll":return[3,1];case"clearAll":return[3,2];case"select":return[3,3];case"initDrag":return[3,5];case"cancelDrag":return[3,6];case"submitQuickEdit":return[3,7]}return[3,9];case 1:return ime.clear(),ime.toggleAll(),[3,10];case 2:return ime.clear(),[3,10];case 3:return[4,getMatchedEventTargets(ime.items,tme||this.props.data,nme.index,nme.condition,nme.selected)];case 4:return dme=ume.sent(),ime.updateSelected(dme.map(function(fme){return fme.data}),ome),[3,10];case 5:return ime.startDragging(),[3,10];case 6:return ime.stopDragging(),[3,10];case 7:return[4,this.handleSave()];case 8:return ume.sent(),[3,10];case 9:return[2,this.handleAction(void 0,$P,lme)];case 10:return[2]}})})},eme.contextType=ScopedContext,eme=__decorate$1([Renderer({type:"list",storeType:ListStore.name}),__metadata("design:paramtypes",[Object,Object])],eme),eme}(List),ListItem=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.itemRender=tme.itemRender.bind(tme),tme.handleAction=tme.handleAction.bind(tme),tme.handleQuickChange=tme.handleQuickChange.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleCheck=tme.handleCheck.bind(tme),tme}return eme.prototype.handleClick=function($P){if(!isClickOnInput($P)){var tme=this.props,ame=tme.checkable,nme=tme.checkOnItemClick,rme=tme.itemAction,ime=tme.onAction,ome=tme.item,lme=tme.onCheck,sme=tme.hasClickActions;ime==null||ime($P,sme?void 0:rme,sme?ome:ome.locals),ame&&nme&&!sme&&!rme&&(lme==null||lme(ome))}},eme.prototype.handleCheck=function(){var $P=this.props,tme=$P.onCheck,ame=$P.item;tme==null||tme(ame)},eme.prototype.handleAction=function($P,tme,ame){var nme=this.props,rme=nme.onAction,ime=nme.item;rme&&rme($P,tme,ame||ime.data)},eme.prototype.handleQuickChange=function($P,tme,ame,nme){var rme=this.props,ime=rme.onQuickChange,ome=rme.item;ime&&ime(ome,$P,tme,ame,nme)},eme.prototype.renderLeft=function(){var $P=this.props,tme=$P.dragging,ame=$P.selectable,nme=$P.selected,rme=$P.checkable,ime=$P.multiple,ome=$P.hideCheckToggler;$P.checkOnItemClick;var lme=$P.classnames,sme=$P.classPrefix,cme=$P.testIdBuilder;return tme?React__default.createElement("div",{className:lme("ListItem-dragBtn")},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})):ame&&!ome?React__default.createElement("div",{className:lme("ListItem-checkBtn")},React__default.createElement(Checkbox$1$1,{classPrefix:sme,type:ime!==!1?"checkbox":"radio",disabled:!rme,checked:nme,onChange:this.handleCheck,inline:!0,testIdBuilder:cme==null?void 0:cme.getChild("checkbox")})):null},eme.prototype.renderRight=function(){var $P=this,tme=this.props,ame=tme.actions,nme=tme.render,rme=tme.data,ime=tme.dragging,ome=tme.classnames;return Array.isArray(ame)?React__default.createElement("div",{className:ome("ListItem-actions")},ame.map(function(lme,sme){return isVisible(lme,rme)?nme("action/".concat(sme),__assign$3({size:"sm",level:"link",type:"button"},lme),{key:sme,disabled:ime||isDisabled(lme,rme),onAction:$P.handleAction}):null})):null},eme.prototype.renderChild=function($P,tme,ame){tme===void 0&&(tme="body"),ame===void 0&&(ame=0);var nme=this.props.render;if(typeof $P=="string"||typeof $P=="number")return nme(tme,$P,{key:ame});var rme=$P;return rme.type==="hbox"||rme.type==="grid"?nme(tme,$P,{key:ame,itemRender:this.itemRender.bind(this)}):this.renderFeild(tme,rme,ame,this.props)},eme.prototype.itemRender=function($P,tme,ame){return this.renderFeild("column/".concat(tme),$P,tme,ame)},eme.prototype.renderFeild=function($P,tme,ame,nme){var rme=(nme==null?void 0:nme.render)||this.props.render,ime=this.props.data,ome=this.props.classnames,lme=this.props.itemIndex,sme=tme.$$id?"".concat(tme.$$id,"-field"):"";return isVisible(tme,ime)?React__default.createElement("div",{key:ame,className:ome("ListItem-field")},tme&&tme.label?React__default.createElement("label",{className:ome("ListItem-fieldLabel",tme.labelClassName)},tme.label):null,rme($P,__assign$3(__assign$3({},tme),{field:tme,$$id:sme,type:"list-item-field"}),{rowIndex:lme,colIndex:ame,className:ome("ListItem-fieldValue",filterClassNameObject(tme.className,ime)),onAction:this.handleAction,onQuickChange:this.handleQuickChange})):null},eme.prototype.renderBody=function(){var $P=this,tme=this.props.body;if(tme){if(Array.isArray(tme))return tme.map(function(ame,nme){return $P.renderChild(__assign$3({type:"plain"},typeof ame=="string"?{type:"tpl",tpl:ame}:ame),"body/".concat(nme),nme)})}else return null;return this.renderChild(tme,"body")},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.data,nme=$P.avatar,rme=$P.title,ime=$P.titleClassName,ome=$P.subTitle,lme=$P.desc,sme=$P.avatarClassName,cme=$P.render,dme=$P.classnames,ume=$P.actionsPosition,fme=$P.itemAction;$P.onEvent;var pme=$P.hasClickActions,hme=filter$1(nme,ame),bme=filter$1(rme,ame),mme=filter$1(ome,ame),vme=filter$1(lme,ame);return React__default.createElement("div",{onClick:this.handleClick,className:dme("ListItem ListItem--actions-at-".concat(ume||"right"),{"ListItem--hasItemAction":fme||pme},tme)},this.renderLeft(),this.renderRight(),hme?React__default.createElement("span",{className:dme("ListItem-avatar",sme)},React__default.createElement("img",{src:hme,alt:"..."})):null,React__default.createElement("div",{className:dme("ListItem-content")},bme?React__default.createElement("p",{className:dme("ListItem-title",ime)},bme):null,mme?React__default.createElement("div",null,React__default.createElement("small",{className:dme("ListItem-subtitle")},mme)):null,vme?cme("description",vme):null,this.renderBody()))},eme.defaultProps={avatarClassName:"thumb-sm avatar m-r",titleClassName:"h5"},eme.propsList=["avatarClassName","titleClassName","itemAction"],eme}(React__default.Component),ListItemRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.propsList=__spreadArray(["multiple"],__read$3(ListItem.propsList),!1),eme=__decorate$1([Renderer({type:"list-item"})],eme),eme}(ListItem),ListItemFieldRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.render,nme=$P.style,rme=$P.wrapperComponent,ime=$P.contentsOnly;$P.labelClassName;var ome=$P.value,lme=$P.data,sme=$P.children,cme=$P.width,dme=$P.innerClassName;$P.label;var ume=$P.tabIndex,fme=$P.onKeyUp,pme=$P.field,hme=__rest$14($P,["className","render","style","wrapperComponent","contentsOnly","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),bme=__assign$3(__assign$3({},pme),{className:dme,type:pme&&pme.type||"plain"}),mme=sme||ame("field",bme,__assign$3(__assign$3({},omit$1(hme,Object.keys(bme))),{value:ome,data:lme}));return cme&&(nme=nme||{},nme.width=nme.width||cme,mme=React__default.createElement("div",{style:{width:/%/.test(String(cme))?"":cme}},mme)),ime?mme:(rme=rme||"div",React__default.createElement(rme,{style:nme,className:tme,tabIndex:ume,onKeyUp:fme},mme))},eme.defaultProps=__assign$3(__assign$3({},TableCell.defaultProps),{wrapperComponent:"div"}),eme.propsList=__spreadArray(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],__read$3(TableCell.propsList),!1),eme=__decorate$1([Renderer({type:"list-item-field"}),HocQuickEdit(),HocPopOver(),HocCopyable()],eme),eme}(TableCell);const List$1=Object.freeze(Object.defineProperty({__proto__:null,ListItem,ListItemFieldRenderer,ListItemRenderer,ListRenderer,default:List},Symbol.toStringTag,{value:"Module"}));var ButtonGroupControl$1=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.doAction=function($P,tme,ame){var nme,rme,ime=this.props,ome=ime.resetValue,lme=ime.onChange,sme=ime.formStore,cme=ime.store,dme=ime.name,ume=$P==null?void 0:$P.actionType;if(ume==="clear")lme("");else if(ume==="reset"){var fme=(rme=getVariable((nme=sme==null?void 0:sme.pristine)!==null&&nme!==void 0?nme:cme==null?void 0:cme.pristine,dme))!==null&&rme!==void 0?rme:ome;lme(fme??"")}},eme.prototype.handleToggle=function($P){var tme=this.props,ame=tme.onToggle;tme.multiple,tme.autoFill,tme.onBulkChange,ame($P)},eme.prototype.reload=function(){var $P=this.props.reloadOptions;$P&&$P()},eme.prototype.getBadgeConfig=function($P,tme){return $P?tme!=null&&tme.badge&&(typeof tme.badge=="string"||typeof tme.badge=="number")?__assign$3(__assign$3({},$P),{text:tme.badge}):tme!=null&&tme.badge&&isObject$8(tme.badge)?__assign$3(__assign$3({},$P),tme.badge):null:tme.badge},eme.prototype.render=function($P){var tme,ame=this;$P===void 0&&($P=this.props);var nme=$P.render,rme=$P.classPrefix,ime=$P.classnames,ome=$P.className;$P.style;var lme=$P.disabled,sme=$P.options;$P.value;var cme=$P.labelField,dme=$P.placeholder,ume=$P.btnClassName,fme=$P.btnActiveClassName,pme=$P.selectedOptions,hme=$P.buttons,bme=$P.size,mme=$P.block,vme=$P.vertical,gme=$P.tiled,yme=$P.badge,_me=$P.testIdBuilder,$me=$P.translate,Cme=[],Sme=$P.btnLevel,Eme=$P.btnActiveLevel;return ume&&(Sme=getLevelFromClassName(ume)),fme&&(Eme=getLevelFromClassName(fme)),sme&&sme.length?Cme=sme.map(function(xme,Tme){var Ome=!!~pme.indexOf(xme),Rme=ame.getBadgeConfig(yme,xme);return nme("option/".concat(Tme),{label:xme[cme||"label"],icon:xme.icon,size:xme.size||bme,badge:Rme,type:"button",block:mme},{key:Tme,level:(Ome?Eme:"")||xme.level||Sme,className:ime(xme.className,ume,Ome&&"ButtonGroup-button--active"),disabled:xme.disabled||lme,testIdBuilder:_me==null?void 0:_me.getChild("item-".concat(xme[cme||"label"]||Tme)),onClick:function(Nme){lme||(ame.handleToggle(xme),Nme.preventDefault())}})}):Array.isArray(hme)&&(Cme=hme.map(function(xme,Tme){var Ome=ame.getBadgeConfig(yme,xme);return nme("button/".concat(Tme),__assign$3(__assign$3({size:bme,block:mme,activeLevel:Eme,level:Sme,disabled:lme},xme),{badge:Ome}),{key:Tme,className:ime(xme.className,ume)})})),React__default.createElement("div",{className:ime("ButtonGroup",(tme={"ButtonGroup--block":mme,"ButtonGroup--vertical":vme,"ButtonGroup--tiled":gme},tme["ButtonGroup--".concat(bme)]=bme,tme),ome)},Cme.length?Cme:React__default.createElement("span",{className:"".concat(rme,"ButtonGroup-placeholder")},$me(dme)))},eme.defaultProps={btnLevel:"default",btnActiveLevel:"primary",clearable:!1,vertical:!1},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleToggle",null),__decorate$1([supportStatic(),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"render",null),eme}(React__default.Component),ButtonGroupControlRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([OptionsControl({type:"button-group-select",sizeMutable:!1,strictMode:!1})],eme),eme}(ButtonGroupControl$1);const ButtonGroupSelect=Object.freeze(Object.defineProperty({__proto__:null,ButtonGroupControlRenderer,default:ButtonGroupControl$1},Symbol.toStringTag,{value:"Module"}));var COMMON_MIME_TYPES=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(x_,eme){var $P=withMimeType(x_);if(typeof $P.path!="string"){var tme=x_.webkitRelativePath;Object.defineProperty($P,"path",{value:typeof eme=="string"?eme:typeof tme=="string"&&tme.length>0?tme:x_.name,writable:!1,configurable:!1,enumerable:!0})}return $P}function withMimeType(x_){var eme=x_.name,$P=eme&&eme.lastIndexOf(".")!==-1;if($P&&!x_.type){var tme=eme.split(".").pop().toLowerCase(),ame=COMMON_MIME_TYPES.get(tme);ame&&Object.defineProperty(x_,"type",{value:ame,writable:!1,configurable:!1,enumerable:!0})}return x_}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(x_){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(eme){return isObject$4(x_)&&isDataTransfer(x_)?[2,getDataTransferFiles(x_.dataTransfer,x_.type)]:isChangeEvt(x_)?[2,getInputFiles(x_)]:Array.isArray(x_)&&x_.every(function($P){return"getFile"in $P&&typeof $P.getFile=="function"})?[2,getFsHandleFiles(x_)]:[2,[]]})})}function isDataTransfer(x_){return isObject$4(x_.dataTransfer)}function isChangeEvt(x_){return isObject$4(x_)&&isObject$4(x_.target)}function isObject$4(x_){return typeof x_=="object"&&x_!==null}function getInputFiles(x_){return fromList(x_.target.files).map(function(eme){return toFileWithPath(eme)})}function getFsHandleFiles(x_){return __awaiter(this,void 0,void 0,function(){var eme;return __generator(this,function($P){switch($P.label){case 0:return[4,Promise.all(x_.map(function(tme){return tme.getFile()}))];case 1:return eme=$P.sent(),[2,eme.map(function(tme){return toFileWithPath(tme)})]}})})}function getDataTransferFiles(x_,eme){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){switch(ame.label){case 0:return x_===null?[2,[]]:x_.items?($P=fromList(x_.items).filter(function(nme){return nme.kind==="file"}),eme!=="drop"?[2,$P]:[4,Promise.all($P.map(toFilePromises))]):[3,2];case 1:return tme=ame.sent(),[2,noIgnoredFiles(flatten$1(tme))];case 2:return[2,noIgnoredFiles(fromList(x_.files).map(function(nme){return toFileWithPath(nme)}))]}})})}function noIgnoredFiles(x_){return x_.filter(function(eme){return FILES_TO_IGNORE.indexOf(eme.name)===-1})}function fromList(x_){if(x_===null)return[];for(var eme=[],$P=0;$P<x_.length;$P++){var tme=x_[$P];eme.push(tme)}return eme}function toFilePromises(x_){if(typeof x_.webkitGetAsEntry!="function")return fromDataTransferItem(x_);var eme=x_.webkitGetAsEntry();return eme&&eme.isDirectory?fromDirEntry(eme):fromDataTransferItem(x_)}function flatten$1(x_){return x_.reduce(function(eme,$P){return __spread$2(eme,Array.isArray($P)?flatten$1($P):[$P])},[])}function fromDataTransferItem(x_){var eme=x_.getAsFile();if(!eme)return Promise.reject(x_+" is not a File");var $P=toFileWithPath(eme);return Promise.resolve($P)}function fromEntry(x_){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(eme){return[2,x_.isDirectory?fromDirEntry(x_):fromFileEntry(x_)]})})}function fromDirEntry(x_){var eme=x_.createReader();return new Promise(function($P,tme){var ame=[];function nme(){var rme=this;eme.readEntries(function(ime){return __awaiter(rme,void 0,void 0,function(){var ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:if(ime.length)return[3,5];cme.label=1;case 1:return cme.trys.push([1,3,,4]),[4,Promise.all(ame)];case 2:return ome=cme.sent(),$P(ome),[3,4];case 3:return lme=cme.sent(),tme(lme),[3,4];case 4:return[3,6];case 5:sme=Promise.all(ime.map(fromEntry)),ame.push(sme),nme(),cme.label=6;case 6:return[2]}})})},function(ime){tme(ime)})}nme()})}function fromFileEntry(x_){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(eme){return[2,new Promise(function($P,tme){x_.file(function(ame){var nme=toFileWithPath(ame,x_.fullPath);$P(nme)},function(ame){tme(ame)})})]})})}var _default$3=function(x_,eme){if(x_&&eme){var $P=Array.isArray(eme)?eme:eme.split(","),tme=x_.name||"",ame=(x_.type||"").toLowerCase(),nme=ame.replace(/\/.*$/,"");return $P.some(function(rme){var ime=rme.trim().toLowerCase();return ime.charAt(0)==="."?tme.toLowerCase().endsWith(ime):ime.endsWith("/*")?nme===ime.replace(/\/.*$/,""):ame===ime})}return!0};function ownKeys$2(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function _objectSpread$1(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ownKeys$2(Object($P),!0).forEach(function(tme){_defineProperty$3(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ownKeys$2(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}function _defineProperty$3(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _slicedToArray$1(x_,eme){return _arrayWithHoles$1(x_)||_iterableToArrayLimit$1(x_,eme)||_unsupportedIterableToArray$1(x_,eme)||_nonIterableRest$1()}function _nonIterableRest$1(){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 _unsupportedIterableToArray$1(x_,eme){if(x_){if(typeof x_=="string")return _arrayLikeToArray$1(x_,eme);var $P=Object.prototype.toString.call(x_).slice(8,-1);if($P==="Object"&&x_.constructor&&($P=x_.constructor.name),$P==="Map"||$P==="Set")return Array.from(x_);if($P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($P))return _arrayLikeToArray$1(x_,eme)}}function _arrayLikeToArray$1(x_,eme){(eme==null||eme>x_.length)&&(eme=x_.length);for(var $P=0,tme=new Array(eme);$P<eme;$P++)tme[$P]=x_[$P];return tme}function _iterableToArrayLimit$1(x_,eme){var $P=x_==null?null:typeof Symbol<"u"&&x_[Symbol.iterator]||x_["@@iterator"];if($P!=null){var tme=[],ame=!0,nme=!1,rme,ime;try{for($P=$P.call(x_);!(ame=(rme=$P.next()).done)&&(tme.push(rme.value),!(eme&&tme.length===eme));ame=!0);}catch(ome){nme=!0,ime=ome}finally{try{!ame&&$P.return!=null&&$P.return()}finally{if(nme)throw ime}}return tme}}function _arrayWithHoles$1(x_){if(Array.isArray(x_))return x_}var FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",ErrorCode={FileInvalidType:FILE_INVALID_TYPE,FileTooLarge:FILE_TOO_LARGE,FileTooSmall:FILE_TOO_SMALL,TooManyFiles:TOO_MANY_FILES},getInvalidTypeRejectionErr=function(eme){eme=Array.isArray(eme)&&eme.length===1?eme[0]:eme;var $P=Array.isArray(eme)?"one of ".concat(eme.join(", ")):eme;return{code:FILE_INVALID_TYPE,message:"File type must be ".concat($P)}},getTooLargeRejectionErr=function(eme){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(eme," ").concat(eme===1?"byte":"bytes")}},getTooSmallRejectionErr=function(eme){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(eme," ").concat(eme===1?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function fileAccepted(x_,eme){var $P=x_.type==="application/x-moz-file"||_default$3(x_,eme);return[$P,$P?null:getInvalidTypeRejectionErr(eme)]}function fileMatchSize(x_,eme,$P){if(isDefined(x_.size))if(isDefined(eme)&&isDefined($P)){if(x_.size>$P)return[!1,getTooLargeRejectionErr($P)];if(x_.size<eme)return[!1,getTooSmallRejectionErr(eme)]}else{if(isDefined(eme)&&x_.size<eme)return[!1,getTooSmallRejectionErr(eme)];if(isDefined($P)&&x_.size>$P)return[!1,getTooLargeRejectionErr($P)]}return[!0,null]}function isDefined(x_){return x_!=null}function allFilesAccepted(x_){var eme=x_.files,$P=x_.accept,tme=x_.minSize,ame=x_.maxSize,nme=x_.multiple,rme=x_.maxFiles;return!nme&&eme.length>1||nme&&rme>=1&&eme.length>rme?!1:eme.every(function(ime){var ome=fileAccepted(ime,$P),lme=_slicedToArray$1(ome,1),sme=lme[0],cme=fileMatchSize(ime,tme,ame),dme=_slicedToArray$1(cme,1),ume=dme[0];return sme&&ume})}function isPropagationStopped(x_){return typeof x_.isPropagationStopped=="function"?x_.isPropagationStopped():typeof x_.cancelBubble<"u"?x_.cancelBubble:!1}function isEvtWithFiles(x_){return x_.dataTransfer?Array.prototype.some.call(x_.dataTransfer.types,function(eme){return eme==="Files"||eme==="application/x-moz-file"}):!!x_.target&&!!x_.target.files}function onDocumentDragOver(x_){x_.preventDefault()}function isIe(x_){return x_.indexOf("MSIE")!==-1||x_.indexOf("Trident/")!==-1}function isEdge(x_){return x_.indexOf("Edge/")!==-1}function isIeOrEdge(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(x_)||isEdge(x_)}function composeEventHandlers(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return function(tme){for(var ame=arguments.length,nme=new Array(ame>1?ame-1:0),rme=1;rme<ame;rme++)nme[rme-1]=arguments[rme];return eme.some(function(ime){return!isPropagationStopped(tme)&&ime&&ime.apply(void 0,[tme].concat(nme)),isPropagationStopped(tme)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function filePickerOptionsTypes(x_){return x_=typeof x_=="string"?x_.split(","):x_,[{description:"everything",accept:Array.isArray(x_)?x_.filter(function(eme){return eme==="audio/*"||eme==="video/*"||eme==="image/*"||eme==="text/*"||/\w+\/[-+.\w]+/g.test(eme)}).reduce(function(eme,$P){return _objectSpread$1(_objectSpread$1({},eme),{},_defineProperty$3({},$P,[]))},{}):{}}]}var _excluded$2=["children"],_excluded2=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(x_){return _arrayWithoutHoles(x_)||_iterableToArray(x_)||_unsupportedIterableToArray(x_)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(x_){if(typeof Symbol<"u"&&x_[Symbol.iterator]!=null||x_["@@iterator"]!=null)return Array.from(x_)}function _arrayWithoutHoles(x_){if(Array.isArray(x_))return _arrayLikeToArray(x_)}function _slicedToArray(x_,eme){return _arrayWithHoles(x_)||_iterableToArrayLimit(x_,eme)||_unsupportedIterableToArray(x_,eme)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(x_,eme){if(x_){if(typeof x_=="string")return _arrayLikeToArray(x_,eme);var $P=Object.prototype.toString.call(x_).slice(8,-1);if($P==="Object"&&x_.constructor&&($P=x_.constructor.name),$P==="Map"||$P==="Set")return Array.from(x_);if($P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($P))return _arrayLikeToArray(x_,eme)}}function _arrayLikeToArray(x_,eme){(eme==null||eme>x_.length)&&(eme=x_.length);for(var $P=0,tme=new Array(eme);$P<eme;$P++)tme[$P]=x_[$P];return tme}function _iterableToArrayLimit(x_,eme){var $P=x_==null?null:typeof Symbol<"u"&&x_[Symbol.iterator]||x_["@@iterator"];if($P!=null){var tme=[],ame=!0,nme=!1,rme,ime;try{for($P=$P.call(x_);!(ame=(rme=$P.next()).done)&&(tme.push(rme.value),!(eme&&tme.length===eme));ame=!0);}catch(ome){nme=!0,ime=ome}finally{try{!ame&&$P.return!=null&&$P.return()}finally{if(nme)throw ime}}return tme}}function _arrayWithHoles(x_){if(Array.isArray(x_))return x_}function ownKeys$1(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function _objectSpread(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ownKeys$1(Object($P),!0).forEach(function(tme){_defineProperty$2(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ownKeys$1(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}function _defineProperty$2(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _objectWithoutProperties$4(x_,eme){if(x_==null)return{};var $P=_objectWithoutPropertiesLoose$1(x_,eme),tme,ame;if(Object.getOwnPropertySymbols){var nme=Object.getOwnPropertySymbols(x_);for(ame=0;ame<nme.length;ame++)tme=nme[ame],!(eme.indexOf(tme)>=0)&&Object.prototype.propertyIsEnumerable.call(x_,tme)&&($P[tme]=x_[tme])}return $P}function _objectWithoutPropertiesLoose$1(x_,eme){if(x_==null)return{};var $P={},tme=Object.keys(x_),ame,nme;for(nme=0;nme<tme.length;nme++)ame=tme[nme],!(eme.indexOf(ame)>=0)&&($P[ame]=x_[ame]);return $P}var Dropzone=reactExports.forwardRef(function(x_,eme){var $P=x_.children,tme=_objectWithoutProperties$4(x_,_excluded$2),ame=useDropzone(tme),nme=ame.open,rme=_objectWithoutProperties$4(ame,_excluded2);return reactExports.useImperativeHandle(eme,function(){return{open:nme}},[nme]),jsx(Fragment,{children:$P(_objectSpread(_objectSpread({},rme),{},{open:nme}))})});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Dropzone.defaultProps=defaultProps;Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var x_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},eme=_objectSpread(_objectSpread({},defaultProps),x_),$P=eme.accept,tme=eme.disabled,ame=eme.getFilesFromEvent,nme=eme.maxSize,rme=eme.minSize,ime=eme.multiple,ome=eme.maxFiles,lme=eme.onDragEnter,sme=eme.onDragLeave,cme=eme.onDragOver,dme=eme.onDrop,ume=eme.onDropAccepted,fme=eme.onDropRejected,pme=eme.onFileDialogCancel,hme=eme.onFileDialogOpen,bme=eme.useFsAccessApi,mme=eme.preventDropOnDocument,vme=eme.noClick,gme=eme.noKeyboard,yme=eme.noDrag,_me=eme.noDragEventsBubbling,$me=eme.validator,Cme=reactExports.useMemo(function(){return typeof hme=="function"?hme:noop$3},[hme]),Sme=reactExports.useMemo(function(){return typeof pme=="function"?pme:noop$3},[pme]),Eme=reactExports.useRef(null),xme=reactExports.useRef(null),Tme=reactExports.useReducer(reducer,initialState),Ome=_slicedToArray(Tme,2),Rme=Ome[0],Nme=Ome[1],Ime=Rme.isFocused,Pme=Rme.isFileDialogActive,Mme=Rme.draggedFiles,kme=function(){Pme&&setTimeout(function(){if(xme.current){var pbe=xme.current.files;pbe.length||(Nme({type:"closeDialog"}),Sme())}},300)};reactExports.useEffect(function(){return bme&&canUseFileSystemAccessAPI()?function(){}:(window.addEventListener("focus",kme,!1),function(){window.removeEventListener("focus",kme,!1)})},[xme,Pme,Sme,bme]);var Bme=reactExports.useRef([]),Dme=function(pbe){Eme.current&&Eme.current.contains(pbe.target)||(pbe.preventDefault(),Bme.current=[])};reactExports.useEffect(function(){return mme&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",Dme,!1)),function(){mme&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",Dme))}},[Eme,mme]);var jme=reactExports.useCallback(function(mbe){mbe.preventDefault(),mbe.persist(),nbe(mbe),Bme.current=[].concat(_toConsumableArray(Bme.current),[mbe.target]),isEvtWithFiles(mbe)&&Promise.resolve(ame(mbe)).then(function(pbe){isPropagationStopped(mbe)&&!_me||(Nme({draggedFiles:pbe,isDragActive:!0,type:"setDraggedFiles"}),lme&&lme(mbe))})},[ame,lme,_me]),Vme=reactExports.useCallback(function(mbe){mbe.preventDefault(),mbe.persist(),nbe(mbe);var pbe=isEvtWithFiles(mbe);if(pbe&&mbe.dataTransfer)try{mbe.dataTransfer.dropEffect="copy"}catch{}return pbe&&cme&&cme(mbe),!1},[cme,_me]),Wme=reactExports.useCallback(function(mbe){mbe.preventDefault(),mbe.persist(),nbe(mbe);var pbe=Bme.current.filter(function(Sbe){return Eme.current&&Eme.current.contains(Sbe)}),_be=pbe.indexOf(mbe.target);_be!==-1&&pbe.splice(_be,1),Bme.current=pbe,!(pbe.length>0)&&(Nme({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(mbe)&&sme&&sme(mbe))},[Eme,sme,_me]),Lme=reactExports.useCallback(function(mbe,pbe){var _be=[],Sbe=[];mbe.forEach(function(vbe){var kbe=fileAccepted(vbe,$P),Rbe=_slicedToArray(kbe,2),Pbe=Rbe[0],Mbe=Rbe[1],Kbe=fileMatchSize(vbe,rme,nme),Qbe=_slicedToArray(Kbe,2),Gbe=Qbe[0],Hbe=Qbe[1],d0e=$me?$me(vbe):null;if(Pbe&&Gbe&&!d0e)_be.push(vbe);else{var p0e=[Mbe,Hbe];d0e&&(p0e=p0e.concat(d0e)),Sbe.push({file:vbe,errors:p0e.filter(function(S0e){return S0e})})}}),(!ime&&_be.length>1||ime&&ome>=1&&_be.length>ome)&&(_be.forEach(function(vbe){Sbe.push({file:vbe,errors:[TOO_MANY_FILES_REJECTION]})}),_be.splice(0)),Nme({acceptedFiles:_be,fileRejections:Sbe,type:"setFiles"}),dme&&dme(_be,Sbe,pbe),Sbe.length>0&&fme&&fme(Sbe,pbe),_be.length>0&&ume&&ume(_be,pbe)},[Nme,ime,$P,rme,nme,ome,dme,ume,fme,$me]),zme=reactExports.useCallback(function(mbe){mbe.preventDefault(),mbe.persist(),nbe(mbe),Bme.current=[],isEvtWithFiles(mbe)&&Promise.resolve(ame(mbe)).then(function(pbe){isPropagationStopped(mbe)&&!_me||Lme(pbe,mbe)}),Nme({type:"reset"})},[ame,Lme,_me]),Ume=reactExports.useCallback(function(){if(bme&&canUseFileSystemAccessAPI()){Nme({type:"openDialog"}),Cme();var mbe={multiple:ime,types:filePickerOptionsTypes($P)};window.showOpenFilePicker(mbe).then(function(pbe){return ame(pbe)}).then(function(pbe){return Lme(pbe,null)}).catch(function(pbe){return Sme(pbe)}).finally(function(){return Nme({type:"closeDialog"})});return}xme.current&&(Nme({type:"openDialog"}),Cme(),xme.current.value=null,xme.current.click())},[Nme,Cme,Sme,bme,Lme,$P,ime]),Gme=reactExports.useCallback(function(mbe){!Eme.current||!Eme.current.isEqualNode(mbe.target)||(mbe.keyCode===32||mbe.keyCode===13)&&(mbe.preventDefault(),Ume())},[Eme,xme,Ume]),Jme=reactExports.useCallback(function(){Nme({type:"focus"})},[]),Yme=reactExports.useCallback(function(){Nme({type:"blur"})},[]),Qme=reactExports.useCallback(function(){vme||(isIeOrEdge()?setTimeout(Ume,0):Ume())},[xme,vme,Ume]),Xme=function(pbe){return tme?null:pbe},Kme=function(pbe){return gme?null:Xme(pbe)},Zme=function(pbe){return yme?null:Xme(pbe)},nbe=function(pbe){_me&&pbe.stopPropagation()},lbe=reactExports.useMemo(function(){return function(){var mbe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pbe=mbe.refKey,_be=pbe===void 0?"ref":pbe,Sbe=mbe.role,vbe=mbe.onKeyDown,kbe=mbe.onFocus,Rbe=mbe.onBlur,Pbe=mbe.onClick,Mbe=mbe.onDragEnter,Kbe=mbe.onDragOver,Qbe=mbe.onDragLeave,Gbe=mbe.onDrop,Hbe=_objectWithoutProperties$4(mbe,_excluded3);return _objectSpread(_objectSpread(_defineProperty$2({onKeyDown:Kme(composeEventHandlers(vbe,Gme)),onFocus:Kme(composeEventHandlers(kbe,Jme)),onBlur:Kme(composeEventHandlers(Rbe,Yme)),onClick:Xme(composeEventHandlers(Pbe,Qme)),onDragEnter:Zme(composeEventHandlers(Mbe,jme)),onDragOver:Zme(composeEventHandlers(Kbe,Vme)),onDragLeave:Zme(composeEventHandlers(Qbe,Wme)),onDrop:Zme(composeEventHandlers(Gbe,zme)),role:typeof Sbe=="string"&&Sbe!==""?Sbe:"button"},_be,Eme),!tme&&!gme?{tabIndex:0}:{}),Hbe)}},[Eme,Gme,Jme,Yme,Qme,jme,Vme,Wme,zme,gme,yme,tme]),ibe=reactExports.useCallback(function(mbe){mbe.stopPropagation()},[]),abe=reactExports.useMemo(function(){return function(){var mbe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pbe=mbe.refKey,_be=pbe===void 0?"ref":pbe,Sbe=mbe.onChange,vbe=mbe.onClick,kbe=_objectWithoutProperties$4(mbe,_excluded4),Rbe=_defineProperty$2({accept:$P,multiple:ime,type:"file",style:{display:"none"},onChange:Xme(composeEventHandlers(Sbe,zme)),onClick:Xme(composeEventHandlers(vbe,ibe)),autoComplete:"off",tabIndex:-1},_be,xme);return _objectSpread(_objectSpread({},Rbe),kbe)}},[xme,$P,ime,zme,tme]),obe=Mme.length,hbe=obe>0&&allFilesAccepted({files:Mme,accept:$P,minSize:rme,maxSize:nme,multiple:ime,maxFiles:ome}),ube=obe>0&&!hbe;return _objectSpread(_objectSpread({},Rme),{},{isDragAccept:hbe,isDragReject:ube,isFocused:Ime&&!tme,getRootProps:lbe,getInputProps:abe,rootRef:Eme,inputRef:xme,open:Xme(Ume)})}function reducer(x_,eme){switch(eme.type){case"focus":return _objectSpread(_objectSpread({},x_),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},x_),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},x_),{},{isFileDialogActive:!1});case"setDraggedFiles":var $P=eme.isDragActive,tme=eme.draggedFiles;return _objectSpread(_objectSpread({},x_),{},{draggedFiles:tme,isDragActive:$P});case"setFiles":return _objectSpread(_objectSpread({},x_),{},{acceptedFiles:eme.acceptedFiles,fileRejections:eme.fileRejections});case"reset":return _objectSpread({},initialState);default:return x_}}function noop$3(){}var preventEvent$1=function(x_){return x_.stopPropagation()};function getNameFromUrl(x_){return/(?:\/|^)([^\/]+?)$/.test(x_)?decodeURIComponent(RegExp.$1):x_}var FileControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.fileUploadCancelExecutors=[],tme.initedFilled=!1,tme.toDispose=[],tme.dropzone=React__default.createRef();var ame=$P.value,nme=$P.valueField||"value",rme=$P.joinValues,ime=$P.delimiter,ome=[];return ame&&ame instanceof Blob?ome=[ame]:ame&&(ome=(Array.isArray(ame)?ame:rme?"".concat(ame[nme]||ame).split(ime):[ame]).map(function(lme){return eme.valueToFile(lme,$P)}).filter(function(lme){return lme})),tme.state={files:ome,uploading:!1},tme.sendFile=tme.sendFile.bind(tme),tme.removeFile=tme.removeFile.bind(tme),tme.clearError=tme.clearError.bind(tme),tme.handleDrop=tme.handleDrop.bind(tme),tme.handleDropRejected=tme.handleDropRejected.bind(tme),tme.startUpload=tme.startUpload.bind(tme),tme.stopUpload=tme.stopUpload.bind(tme),tme.retry=tme.retry.bind(tme),tme.toggleUpload=tme.toggleUpload.bind(tme),tme.tick=tme.tick.bind(tme),tme.onChange=tme.onChange.bind(tme),tme.uploadFile=tme.uploadFile.bind(tme),tme.uploadBigFile=tme.uploadBigFile.bind(tme),tme.handleSelect=tme.handleSelect.bind(tme),tme.syncAutoFill=tme.syncAutoFill.bind(tme),tme.downloadTpl=tme.downloadTpl.bind(tme),tme}return eme.valueToFile=function($P,tme,ame){var nme,rme,ime=ame&&typeof $P=="string"?find$3(ame,function(cme){return cme.value===$P}):void 0,ome=tme.valueField||"value",lme=tme.urlField||"url",sme=tme.nameField||"name";return $P?$P instanceof File?(nme={state:"ready"},nme[ome]=$P,nme[lme]=$P,nme[sme]=$P.name,nme.id=guid$1(),nme):__assign$3({},typeof $P=="string"?(rme={state:ime&&ime.state?ime.state:"init"},rme[ome]=$P,rme[lme]=$P,rme[sme]=ime&&ime.name||(/^data:/.test($P)?"base64数据":getNameFromUrl($P)),rme.id=guid$1(),rme):$P):void 0},eme.prototype.componentDidMount=function(){var $P=this,tme=this.props,ame=tme.formInited,nme=tme.addHook,rme=tme.formItem,ime=function(){$P.initedFilled=!0,$P.props.initAutoFill&&$P.syncAutoFill()};rme&&this.toDispose.push(ame||!nme?rme.addInitHook(ime):nme(ime,"init"))},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props;if($P.value!==ame.value&&this.emitValue!==ame.value){var nme=ame.value,rme=ame.joinValues,ime=ame.delimiter,ome=[];nme&&(ome=(Array.isArray(nme)?nme:rme&&typeof nme=="string"?nme.split(ime):[nme]).map(function(lme){var sme=eme.valueToFile(lme,ame,tme.state.files),cme;return sme&&(cme=find$3(tme.state.files,function(dme){return dme.value===sme.value}))&&(sme=__assign$3(__assign$3(__assign$3({},cme),sme),{id:sme.id||cme.id})),sme}).filter(function(lme){return lme})),this.setState({files:ome},ame.changeMotivation!=="formInited"&&this.initedFilled?this.syncAutoFill:void 0)}},eme.prototype.componentWillUnmount=function(){this.toDispose.forEach(function($P){return $P()}),this.toDispose=[],this.fileUploadCancelExecutors.forEach(function($P){return $P.executor()}),this.fileUploadCancelExecutors=[]},eme.prototype.handleDrop=function($P){var tme=this;if($P.length){var ame=this.props,nme=ame.maxSize,rme=ame.multiple,ime=ame.maxLength;ame.translate,this.props.nameField;var ome=rme&&ime?ime-this.state.files.length:$P.length,lme=[];[].slice.call($P,0,ome).forEach(function(sme){nme&&sme.size>nme?sme.state="invalid":sme.state="pending",sme.id=guid$1(),lme.push(sme)}),lme.length&&this.setState({error:null,files:rme?this.state.files.concat(lme):lme},function(){var sme=tme.props.autoUpload;sme&&tme.startUpload()})}},eme.prototype.handleDropRejected=function($P,tme){if(!(tme.type!=="change"&&tme.type!=="drop")){var ame=this.props;ame.multiple;var nme=ame.env,rme=ame.accept,ime=ame.translate,ome=this.props.nameField||"name",lme=$P.map(function(sme){var cme;return __assign$3(__assign$3({},sme.file),(cme={state:"invalid",id:guid$1()},cme[ome]=sme.file.name,cme))});nme.alert(ime("File.invalidType",{files:lme.map(function(sme){return"「".concat(sme[ome],"」")}).join(" "),accept:rme}))}},eme.prototype.handleClickFile=function($P,tme){tme.preventDefault(),tme.stopPropagation();var ame=this.props.downloadUrl,nme=this.props.urlField||"url",rme=this.props.valueField||"value",ime=$P[nme]||$P[rme],ome=typeof ame=="string"&&!~ame.indexOf("$")&&typeof ime=="string"?"".concat(ame).concat(ime):ame||void 0;ome&&this.handleApi(ome,$P)},eme.prototype.downloadTpl=function($P){$P.preventDefault(),$P.stopPropagation(),this.handleApi(this.props.templateUrl||"")},eme.prototype.handleApi=function($P,tme){var ame,nme,rme=this.props,ime=rme.data,ome=rme.env;if($P){var lme=createObject$1(ime,__assign$3({},tme)),sme=normalizeApi($P);((ame=sme.method)===null||ame===void 0?void 0:ame.toLowerCase())==="get"&&!sme.data?window.open(buildApi(sme,lme).url):(sme.responseType=(nme=sme.responseType)!==null&&nme!==void 0?nme:"blob",ome.fetcher(sme,lme,{responseType:"blob"}))}},eme.prototype.handleSelect=function(){var $P=this.props,tme=$P.disabled,ame=$P.multiple,nme=$P.maxLength;!tme&&!(ame&&nme&&this.state.files.length>=nme)&&this.dropzone.current&&this.dropzone.current.open()},eme.prototype.startUpload=function($P){$P===void 0&&($P=!1),!this.state.uploading&&this.setState({uploading:!0,files:this.state.files.map(function(tme){return $P&&tme.state==="error"&&(tme.state="pending",tme.progress=0),tme})},this.tick)},eme.prototype.toggleUpload=function($P){return $P.preventDefault(),this.state.uploading?this.stopUpload():this.startUpload()},eme.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},eme.prototype.retry=function(){this.startUpload(!0)},eme.prototype.tick=function(){var $P=this;if(!(this.current||!this.state.uploading)){var tme=this.props.translate,ame=this.props.nameField||"name",nme=find$3(this.state.files,function(rme){return rme.state==="pending"});nme?(this.current=nme,nme.state="uploading",this.setState({files:this.state.files.concat()},function(){return $P.sendFile(nme,function(rme,ime,ome){var lme=$P.state.files.concat(),sme=lme.indexOf(ime);if(!~sme){$P.current=null,requestAnimationFrame($P.tick);return}var cme=ime;rme?(cme.state="error",cme.error=rme):(cme=ome,cme[ame]=cme[ame]||ime.name),lme.splice(sme,1,cme),$P.current=null,$P.setState({error:rme||null,files:lme},$P.tick)},function(rme){var ime=$P.state.files.concat(),ome=ime.indexOf(nme);~ome&&(nme.progress=rme,$P.setState({files:ime}))})})):this.setState({uploading:!1},function(){return __awaiter($P,void 0,void 0,function(){return __generator(this,function(rme){switch(rme.label){case 0:return[4,this.onChange(!!this.resolve)];case 1:return rme.sent(),this.resolve&&(this.resolve(this.state.files.some(function(ime){return ime.state==="error"})?tme("File.errorRetry"):null),this.resolve=void 0),[2]}})})})}},eme.prototype.sendFile=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.receiver,ome=rme.fileField,lme=rme.useChunk,sme=rme.chunkSize,cme=rme.startChunkApi,dme=rme.chunkApi,ume=rme.finishChunkApi,fme=rme.asBase64,pme=rme.asBlob,hme=rme.data,bme=rme.translate,mme=this.props.nameField||"name",vme=this.props.valueField||"value";if(fme){var gme=new FileReader;gme.readAsDataURL($P),gme.onload=function(){var _me;$P.state="ready",tme(null,$P,(_me={},_me[vme]=gme.result,_me[mme]=$P.name,_me.state="ready",_me.id=$P.id,_me))},gme.onerror=function(_me){return tme(_me.message)};return}else if(pme){$P.state="ready",setTimeout(function(){var _me;return tme(null,$P,(_me={},_me[mme]=$P.name,_me[vme]=$P,_me.state="ready",_me.id=$P.id,_me))},4);return}var yme=lme==="auto"&&sme&&$P.size>sme||lme===!0?this.uploadBigFile:this.uploadFile;yme($P,ime,{},{fieldName:ome,chunkSize:sme,startChunkApi:cme,chunkApi:dme,finishChunkApi:ume,data:hme},ame).then(function(_me){return __awaiter(nme,void 0,void 0,function(){var $me,Cme;return __generator(this,function(Sme){switch(Sme.label){case 0:if(_me.status&&_me.status!=="0"||!_me.data)throw new Error(_me.msg||bme("File.errorRetry"));return ame(1),$me=_me.data.value||_me.data.url||_me.data,[4,this.dispatchEvent("success",__assign$3(__assign$3({},$P),{item:$P,result:_me.data,value:$me}))];case 1:return Cme=Sme.sent(),Cme!=null&&Cme.prevented?[2]:(tme(null,$P,__assign$3(__assign$3({},isPlainObject$b(_me.data)?_me.data:null),{value:$me,state:"uploaded",id:$P.id})),[2])}})})}).catch(function(_me){return __awaiter(nme,void 0,void 0,function(){var $me;return __generator(this,function(Cme){switch(Cme.label){case 0:return[4,this.dispatchEvent("fail",{item:$P,error:_me})];case 1:return $me=Cme.sent(),$me!=null&&$me.prevented?[2]:(tme(_me.message||bme("File.errorRetry"),$P),[2])}})})})},eme.prototype.removeFile=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return ame=this.state.files.concat(),nme=ame[tme],[4,this.dispatchEvent("remove",__assign$3(__assign$3({},nme),{item:nme}))];case 1:return rme=ome.sent(),rme!=null&&rme.prevented?[2]:(this.removeFileCanelExecutor($P,!0),ame.splice(tme,1),ime=this.current===$P,ime&&(this.current=null),this.setState({files:ame},ime?this.tick:this.onChange),[2])}})})},eme.prototype.clearError=function(){this.setState({error:null})},eme.prototype.onChange=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:return tme=this.props,ame=tme.multiple,nme=tme.onChange,rme=tme.joinValues,ime=tme.extractValue,ome=tme.valueField,lme=tme.delimiter,sme=tme.resetValue,cme=tme.asBlob,tme.autoFill,tme.onBulkChange,dme=this.state.files.filter(function(hme){return~["uploaded","init","ready"].indexOf(hme.state)}),ume=ame?dme:dme[0],ume?ime||cme?ume=Array.isArray(ume)?ume.map(function(hme){return hme[ome||"value"]}):ume[ome||"value"]:rme&&(ume=Array.isArray(ume)?ume.map(function(hme){return hme[ome||"value"]}).join(lme||","):ume[ome||"value"]):ume=typeof sme>"u"?"":sme,[4,this.dispatchEvent("change")];case 1:return fme=pme.sent(),fme!=null&&fme.prevented?[2]:(nme(this.emitValue=ume,void 0,$P),this.syncAutoFill(),[2])}})})},eme.prototype.syncAutoFill=function(){var $P=this.props,tme=$P.autoFill,ame=$P.multiple,nme=$P.onBulkChange,rme=$P.data,ime=$P.name;if(!(tme!=null&&tme.hasOwnProperty("api"))){var ome=omit$1(tme,ime||"");if(!isEmpty$2(ome)&&nme){var lme=this.state.files.filter(function(cme){return~["uploaded","init","ready"].indexOf(cme.state)}),sme=dataMapping(ome,createObject$1(rme,ame?{items:lme}:lme[0]));Object.keys(sme).forEach(function(cme){isPlainObject$b(sme[cme])&&isPlainObject$b(rme[cme])&&(sme[cme]=merge$4({},rme[cme],sme[cme]))}),nme(sme)}}},eme.prototype.uploadFile=function($P,tme,ame,nme,rme){return nme===void 0&&(nme={}),__awaiter(this,void 0,void 0,function(){var ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:ime=new FormData,ome=buildApi(tme,createObject$1(nme.data,ame),{method:"post"}),qsstringify(__assign$3(__assign$3({},ome.data),ame)).split("&").filter(function(sme){return!!sme}).forEach(function(sme){var cme=sme.split("=");ime.append(cme[0],decodeURIComponent(cme[1]))}),ime.append(nme.fieldName||"file",$P),ome.data=ime,lme.label=1;case 1:return lme.trys.push([1,,3,4]),[4,this._send($P,ome,{},rme)];case 2:return[2,lme.sent()];case 3:return this.removeFileCanelExecutor($P),[7];case 4:return[2]}})})},eme.prototype.uploadBigFile=function($P,tme,ame,nme,rme){nme===void 0&&(nme={});var ime=nme.chunkSize||5*1024*1024,ome=this.props.concurrency,lme=this,sme=.2,cme=.9,dme,ume=this.props.translate,fme=this.props.nameField||"name";return new Promise(function(pme,hme){var bme,mme,vme=buildApi(nme.startChunkApi,createObject$1(nme.data,__assign$3(__assign$3({},ame),(bme={filename:$P.name},bme[fme]=$P.name,bme))),{method:"post",autoAppend:!0});lme._send($P,vme).then(gme).catch(hme);function gme(Sme){return __awaiter(this,void 0,void 0,function(){var Eme,xme,Tme,Ome=this;return __generator(this,function(Rme){switch(Rme.label){case 0:if(rme(sme),Eme=Cme($P),dme=Eme.map(function(){return 0}),!Sme.data)throw new Error(ume("File.uploadFailed"));mme={key:Sme.data.key,uploadId:Sme.data.uploadId,loaded:0,total:Eme.length},xme=[],Rme.label=1;case 1:return Eme.length?[4,Promise.all(Eme.splice(0,ome).map(function(Nme){return __awaiter(Ome,void 0,void 0,function(){return __generator(this,function(Ime){switch(Ime.label){case 0:return[4,$me(mme,nme)(Nme)];case 1:return[2,Ime.sent()]}})})}))]:[3,3];case 2:return Tme=Rme.sent(),xme=xme.concat(Tme),[3,1];case 3:return _me(xme,mme),[2]}})})}function yme(Sme,Eme){dme[Sme-1]=Eme,rme(sme+(cme-sme)*(dme.reduce(function(xme,Tme){return xme+Tme},0)/dme.length))}function _me(Sme,Eme){return __awaiter(this,void 0,void 0,function(){var xme,Tme,Ome,Rme;return __generator(this,function(Nme){switch(Nme.label){case 0:rme(cme),xme=buildApi(nme.finishChunkApi,createObject$1(nme.data,__assign$3(__assign$3({},ame),(Rme={uploadId:Eme.uploadId,key:Eme.key},Rme[fme]=$P.name,Rme.filename=$P.name,Rme.partList=Sme,Rme))),{method:"post",autoAppend:!0}),Nme.label=1;case 1:return Nme.trys.push([1,3,4,5]),[4,lme._send($P,xme)];case 2:return Tme=Nme.sent(),pme(Tme),[3,5];case 3:return Ome=Nme.sent(),hme(Ome),[3,5];case 4:return lme.removeFileCanelExecutor($P),[7];case 5:return[2]}})})}function $me(Sme,Eme){return function(xme){var Tme=buildApi(Eme.chunkApi,createObject$1(nme.data,ame),{method:"post"}),Ome=new FormData,Rme=xme.file.slice(xme.start,xme.stop+1);return qsstringify(__assign$3(__assign$3({},Tme.data),ame)).split("&").forEach(function(Nme){var Ime=Nme.split("=");Ome.append(Ime[0],decodeURIComponent(Ime[1]))}),Ome.append("key",Sme.key),Ome.append("uploadId",Sme.uploadId),Ome.append("partNumber",xme.partNumber.toString()),Ome.append("partSize",xme.partSize.toString()),Ome.append(nme.fieldName||"file",Rme,$P.name),Tme.data=Ome,lme._send($P,Tme,{},function(Nme){return yme(xme.partNumber,Nme)},3).then(function(Nme){return Sme.loaded++,{partNumber:xme.partNumber,eTag:Nme.data.eTag}})}}function Cme(Sme){for(var Eme=Sme.size,xme=0,Tme=1,Ome=[];Eme>0;){var Rme=Math.min(Eme,ime);Ome.push({file:Sme,partNumber:Tme,partSize:Rme,start:xme,stop:xme+Rme-1}),Eme-=Rme,xme+=Rme,Tme+=1}return Ome}})},eme.prototype._send=function($P,tme,ame,nme,rme){return rme===void 0&&(rme=0),__awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme=this;return __generator(this,function(dme){switch(dme.label){case 0:if(ime=this.props.env,ome=this.props.translate,!ime||!ime.fetcher)throw new Error("fetcher is required");dme.label=1;case 1:return dme.trys.push([1,3,,4]),[4,ime.fetcher(tme,this.props.data,__assign$3(__assign$3({method:"post"},ame),{withCredentials:!0,cancelExecutor:function(ume){cme.fileUploadCancelExecutors.push({file:$P,executor:ume})},onUploadProgress:nme?function(ume){return nme(ume.loaded/ume.total)}:void 0}))];case 2:if(lme=dme.sent(),!lme.ok)throw new Error(lme.msg||ome("File.errorRetry"));return[2,lme];case 3:if(sme=dme.sent(),rme>0)return[2,this._send($P,tme,ame,nme,rme-1)];throw sme;case 4:return[2]}})})},eme.prototype.removeFileCanelExecutor=function($P,tme){tme===void 0&&(tme=!1),this.fileUploadCancelExecutors=this.fileUploadCancelExecutors.filter(function(ame){return tme&&ame.file===$P&&ame.executor(),ame.file!==$P})},eme.prototype.validate=function(){var $P=this,tme=this.props.translate;if(this.state.uploading||this.state.files.some(function(ame){return ame.state==="pending"}))return new Promise(function(ame){$P.resolve=ame,$P.startUpload()});if(this.state.files.some(function(ame){return ame.state==="error"}))return tme("File.errorRetry")},eme.prototype.dispatchEvent=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){return ame=this.props,nme=ame.dispatchEvent,rme=ame.multiple,ime=function(sme){return{name:sme.path||sme.name,value:sme.value,state:sme.state,error:sme.error}},ome=tme?ime(tme):this.state.files.map(function(sme){return ime(sme)}),[2,nme($P,resolveEventData(this.props,__assign$3(__assign$3({},tme),{file:rme?ome:ome==null?void 0:ome[0]}),"file"))]})})},eme.prototype.doAction=function($P,tme,ame){var nme=this.props.onChange;$P.actionType==="clear"&&this.setState({files:[]},function(){nme("")})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.btnLabel,nme=tme.accept,rme=tme.capture,ime=tme.disabled,ome=tme.maxLength,lme=tme.maxSize,sme=tme.multiple,cme=tme.autoUpload,dme=tme.description,ume=tme.descriptionClassName,fme=tme.hideUploadButton,pme=tme.className;tme.style;var hme=tme.btnClassName,bme=tme.btnUploadClassName,mme=tme.classnames,vme=tme.translate,gme=tme.render,yme=tme.downloadUrl,_me=tme.templateUrl,$me=tme.drag,Cme=tme.data,Sme=tme.documentation,Eme=tme.documentLink,xme=tme.env,Tme=tme.container,Ome=tme.testIdBuilder,Rme=this.state,Nme=Rme.files,Ime=Rme.uploading;Rme.error;var Pme=this.props.nameField||"name",Mme=this.props.valueField||"value",kme=this.props.urlField||"url",Bme=Nme.some(function(Vme){return Vme.state=="pending"}),Dme=0,jme=0;return this.state.uploading||this.state.files.forEach(function(Vme){Vme.state==="error"?jme++:Vme.state==="uploaded"&&Dme++}),React__default.createElement("div",{className:mme("FileControl",pme)},_me?React__default.createElement("a",{className:mme("FileControl-templateInfo"),onClick:this.downloadTpl.bind(this)},React__default.createElement(Icon$1,{icon:"download",className:"icon"}),React__default.createElement("span",null,vme("File.downloadTpl"))):null,React__default.createElement(Dropzone,{disabled:ime,key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:nme==="*"?"":nme,multiple:sme},function(Vme){var Wme=Vme.getRootProps,Lme=Vme.getInputProps,zme=Vme.isDragActive;return React__default.createElement("div",__assign$3({},Wme({onClick:preventEvent$1}),{className:mme("FileControl-dropzone",{disabled:ime||sme&&!!ome&&Nme.length>=ome,"is-empty":!Nme.length,"is-active":zme})}),React__default.createElement("input",__assign$3({disabled:ime},Lme(),{capture:rme},Ome==null?void 0:Ome.getChild("input").getTestId())),$me||zme?React__default.createElement("div",{className:mme("FileControl-acceptTip"),onClick:$P.handleSelect},React__default.createElement(Icon$1,{icon:"cloud-upload",className:"icon"}),React__default.createElement("span",null,vme("File.dragDrop"),React__default.createElement("span",{className:mme("FileControl-acceptTip-click")},vme("File.clickUpload"))),React__default.createElement("div",{className:mme("FileControl-acceptTip-help","TplField")},Eme?React__default.createElement("a",{href:Eme,onClick:function(Ume){return Ume.stopPropagation()}},Sme||vme("File.helpText")):null),lme?React__default.createElement("div",{className:mme("FileControl-sizeTip")},vme("File.sizeLimit",{maxSize:prettyBytes(lme,1024)})):null):React__default.createElement(React__default.Fragment,null,React__default.createElement(Button$1,{level:"enhance",disabled:ime,className:mme("FileControl-selectBtn",hme,{"is-disabled":sme&&!!ome&&Nme.length>=ome}),tooltip:sme&&ome&&Nme.length>=ome?vme("File.maxLength",{maxLength:ome}):"",onClick:$P.handleSelect,testIdBuilder:Ome==null?void 0:Ome.getChild("select")},React__default.createElement(Icon$1,{icon:"upload",className:"icon"}),React__default.createElement("span",null,!sme&&Nme.length?vme("File.repick"):sme&&Nme.length?vme("File.continueAdd"):filter$1(ame,Cme)||vme("File.upload")))))}),dme?gme("desc",dme,{className:mme("FileControl-description",ume)}):null,lme&&!$me?React__default.createElement("div",{className:mme("FileControl-sizeTip")},vme("File.sizeLimit",{maxSize:prettyBytes(lme,1024)})):null,Array.isArray(Nme)?React__default.createElement("ul",{className:mme("FileControl-list")},Nme.map(function(Vme,Wme){var Lme=Vme[Pme]||Vme.filename||Vme.name;return React__default.createElement("li",{key:Vme.id},React__default.createElement(TooltipWrapper$1,{placement:"top",container:Tme||(xme==null?void 0:xme.getModalContainer),tooltipClassName:mme("FileControl-list-tooltip",(Vme.state==="invalid"||Vme.state==="error")&&"is-invalid"),tooltip:Vme.state==="invalid"||Vme.state==="error"?Vme.error||(lme&&Vme.size>lme?vme("File.maxSize",{filename:Vme.name,actualSize:prettyBytes(Vme.size,1024),maxSize:prettyBytes(lme,1024)}):""):Lme},React__default.createElement("div",{className:mme("FileControl-itemInfo",{"is-invalid":Vme.state==="invalid"||Vme.state==="error"})},React__default.createElement("span",{className:mme("FileControl-itemInfoIcon")},React__default.createElement(Icon$1,{icon:"file",className:"icon"})),Vme[kme]||Vme[Mme]||yme?React__default.createElement("a",{className:mme("FileControl-itemInfoText"),target:"_blank",rel:"noopener",href:"#",onClick:$P.handleClickFile.bind($P,Vme)},Lme):React__default.createElement("span",{className:mme("FileControl-itemInfoText")},Lme),ime?null:React__default.createElement("a",{"data-tooltip":vme("Select.clear"),"data-position":"left",className:mme("FileControl-clear"),onClick:function(){return $P.removeFile(Vme,Wme)}},React__default.createElement(Icon$1,{icon:"close",className:"icon"})))),Vme.state==="uploading"?React__default.createElement("div",{className:mme("FileControl-progressInfo")},React__default.createElement("div",{className:mme("FileControl-progress")},React__default.createElement("span",{style:{width:"".concat((Vme.progress||0)*100,"%")}})),React__default.createElement("span",null,Math.round((Vme.progress||0)*100),"%")):null)})):null,jme?React__default.createElement("div",{className:mme("FileControl-sum")},vme("File.result",{uploaded:Dme,failed:jme}),React__default.createElement("a",{onClick:this.retry},vme("File.retry")),vme("File.failed")):null,!cme&&!fme&&Nme.length?React__default.createElement(Button$1,{level:"default",testIdBuilder:Ome==null?void 0:Ome.getChild("upload"),disabled:!Bme,className:mme("FileControl-uploadBtn",bme),onClick:this.toggleUpload},vme(Ime?"File.pause":"File.start")):null)},eme.defaultProps={maxSize:0,maxLength:0,placeholder:"",receiver:"/api/upload/file",fileField:"file",joinValues:!0,extractValue:!1,delimiter:",",downloadUrl:"",templateUrl:"",useChunk:"auto",chunkSize:5*1024*1024,startChunkApi:"/api/upload/startChunk",chunkApi:"/api/upload/chunk",finishChunkApi:"/api/upload/finishChunk",concurrency:3,accept:"",multiple:!1,autoUpload:!0,hideUploadButton:!1,initAutoFill:!0,stateTextMap:{init:"",pending:"等待上传",uploading:"上传中",error:"上传出错",uploaded:"已上传",ready:""},asBase64:!1,drag:!1},eme}(React__default.Component),FileControlRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"input-file",sizeMutable:!1,renderDescription:!1,shouldComponentUpdate:function($P,tme){return!!isEffectiveApi($P.receiver,$P.data)&&(isApiOutdated($P.receiver,tme.receiver,$P.data,tme.data)||isApiOutdatedWithData($P.receiver,tme.receiver,$P.data,tme.data))}})],eme),eme}(FileControl);const InputFile=Object.freeze(Object.defineProperty({__proto__:null,FileControlRenderer,default:FileControl,getNameFromUrl},Symbol.toStringTag,{value:"Module"}));(function(x_){var eme=x_.HTMLCanvasElement&&x_.HTMLCanvasElement.prototype,$P=x_.Blob&&function(){try{return!!new Blob}catch{return!1}}(),tme=$P&&x_.Uint8Array&&function(){try{return new Blob([new Uint8Array(100)]).size===100}catch{return!1}}(),ame=x_.BlobBuilder||x_.WebKitBlobBuilder||x_.MozBlobBuilder||x_.MSBlobBuilder,nme=($P||ame)&&x_.atob&&x_.ArrayBuffer&&x_.Uint8Array&&function(rme){var ime,ome,lme,sme,cme,dme;for(rme.split(",")[0].indexOf("base64")>=0?ime=atob(rme.split(",")[1]):ime=decodeURIComponent(rme.split(",")[1]),ome=new ArrayBuffer(ime.length),lme=new Uint8Array(ome),sme=0;sme<ime.length;sme+=1)lme[sme]=ime.charCodeAt(sme);return cme=rme.split(",")[0].split(":")[1].split(";")[0],$P?new Blob([tme?lme:ome],{type:cme}):(dme=new ame,dme.append(ome),dme.getBlob(cme))};x_.HTMLCanvasElement&&!eme.toBlob&&(eme.mozGetAsFile?eme.toBlob=function(rme,ime,ome){ome&&eme.toDataURL&&nme?rme(nme(this.toDataURL(ime,ome))):rme(this.mozGetAsFile("blob",ime))}:eme.toDataURL&&nme&&(eme.toBlob=function(rme,ime,ome){rme(nme(this.toDataURL(ime,ome)))})),typeof define=="function"&&define.amd?define(function(){return nme}):x_.dataURLtoBlob=nme})(window);var ImageThumb=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={imageLoading:!1},tme}return eme.prototype.componentDidUpdate=function($P){$P.src!==this.props.src&&this.setState({imageLoading:!0})},eme.prototype.handleImgLoaded=function($P){var tme,ame;this.setState({imageLoading:!1}),(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onLoad)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.handleImgError=function($P){this.setState({imageLoading:!1})},eme.prototype.handleEnlarge=function(){var $P=this.props,tme=$P.onEnlarge,ame=__rest$14($P,["onEnlarge"]);tme&&tme(ame)},eme.prototype.render=function(){var $P=this.props,tme=$P.classnames,ame=$P.className,nme=$P.style,rme=$P.imageClassName,ime=$P.thumbClassName,ome=$P.thumbMode,lme=$P.thumbRatio,sme=$P.height,cme=$P.width,dme=$P.src,ume=$P.alt,fme=$P.title,pme=$P.caption,hme=$P.href,bme=$P.blank,mme=bme===void 0?!0:bme,vme=$P.htmlTarget;$P.onLoad;var gme=$P.enlargeAble,yme=$P.translate,_me=$P.overlays,$me=$P.imageMode,Cme=$P.titleControlClassName,Sme=$P.iconControlClassName,Eme=$P.imageControlClassName,xme=$P.imageContentClassName,Tme=$P.desControlClassName,Ome=this.state.imageLoading,Rme=React__default.createElement(React__default.Fragment,null,Ome?React__default.createElement("img",{className:tme("Image-image",rme),src:imagePlaceholder,alt:ume}):null,React__default.createElement("img",{onLoad:this.handleImgLoaded,onError:this.handleImgError,className:tme("Image-image",rme,{"Image-image--loading":Ome}),src:dme,alt:ume})),Nme=gme||_me?React__default.createElement("div",{key:"overlay",className:tme("Image-overlay")},gme?React__default.createElement("a",{"data-tooltip":yme("Image.zoomIn"),"data-position":"bottom",target:"_blank",onClick:this.handleEnlarge,className:tme("Image-overlay-view-icon",Sme)},React__default.createElement(Icon$1,{icon:"view",className:"icon",iconContent:"Image-view-icon"})):null,_me):null,Ime=React__default.createElement("div",{className:tme("Image",$me==="original"?"Image--original":"Image--thumb",ame,Eme),style:hme?void 0:nme},$me==="original"?React__default.createElement("div",{className:tme("Image-origin",ome?"Image-origin--".concat(ome):"",xme),style:{height:sme,width:cme}},Rme,Nme):React__default.createElement("div",{className:tme("Image-thumbWrap")},React__default.createElement("div",{className:tme("Image-thumb",ime,ome?"Image-thumb--".concat(ome):"",lme?"Image-thumb--".concat(lme.replace(/:/g,"-")):"",xme),style:{height:sme,width:cme}},Rme),Nme),fme||pme?React__default.createElement("div",{key:"caption",className:tme("Image-info")},fme?React__default.createElement("div",{className:tme("Image-title",Cme),title:fme},fme):null,pme?React__default.createElement("div",{className:tme("Image-caption",Tme),title:pme},pme):null):null);return hme&&(Ime=React__default.createElement("a",{href:hme,target:vme||(mme?"_blank":"_self"),className:tme("Link",ame),style:nme,title:fme},Ime)),Ime},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleImgLoaded",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleImgError",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnlarge",null),eme}(React__default.Component),ThemedImageThumb=themeable(localeable(ImageThumb)),imagePlaceholder="data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg t='1631083237695' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2420' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024'%3E%3Cdefs%3E%3Cstyle type='text/css'%3E%3C/style%3E%3C/defs%3E%3Cpath d='M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z' p-id='2421' fill='%23bfbfbf'%3E%3C/path%3E%3Cpath d='M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z' p-id='2422' fill='%23bfbfbf'%3E%3C/path%3E%3C/svg%3E",ImageField=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={scale:1},$P}return eme.prototype.handleEnlarge=function($P){var tme=$P.src,ame=$P.originalSrc,nme=$P.title,rme=$P.caption,ime=$P.thumbMode,ome=$P.thumbRatio,lme=this.props,sme=lme.onImageEnlarge,cme=lme.enlargeTitle,dme=lme.enlargeCaption,ume=lme.showToolbar,fme=lme.toolbarActions,pme=lme.imageGallaryClassName,hme=lme.id,bme=lme.themeCss,mme=lme.enlargeWithGallary;sme&&sme({src:tme,originalSrc:ame||tme,title:cme||nme,caption:dme||rme,thumbMode:ime,thumbRatio:ome,showToolbar:ume,toolbarActions:fme,enlargeWithGallary:mme,imageGallaryClassName:"".concat(pme," ").concat(setThemeClassName(__assign$3(__assign$3({},this.props),{name:"imageGallaryClassName",id:hme,themeCss:bme}))," ").concat(setThemeClassName(__assign$3(__assign$3({},this.props),{name:"galleryControlClassName",id:hme,themeCss:bme})))},this.props)},eme.prototype.handleClick=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return tme=this.props,ame=tme.dispatchEvent,nme=tme.data,rme=this.props.clickAction,[4,ame($P,createObject$1(nme,{nativeEvent:$P}))];case 1:return ime=ome.sent(),ime!=null&&ime.prevented?[2]:(rme&&handleAction($P,rme,this.props),[2])}})})},eme.prototype.handleMouseEnter=function($P){var tme=this.props,ame=tme.dispatchEvent,nme=tme.data;ame($P,nme)},eme.prototype.handleMouseLeave=function($P){var tme=this.props,ame=tme.dispatchEvent,nme=tme.data;ame($P,nme)},eme.prototype.handleSelfAction=function($P,tme){var ame=this.props,nme=ame.data,rme=ame.maxScale,ime=rme===void 0?200:rme,ome=ame.minScale,lme=ome===void 0?50:ome,sme=tme.args.scale,cme=sme===void 0?50:sme;$P==="zoom"&&(isPureVariable(ime)&&(ime=isNaN(resolveVariableAndFilter(ime,createObject$1(tme.data,nme)))?200:resolveVariableAndFilter(ime,createObject$1(tme.data,nme))),isPureVariable(lme)&&(lme=isNaN(resolveVariableAndFilter(lme,createObject$1(tme.data,nme)))?50:resolveVariableAndFilter(lme,createObject$1(tme.data,nme))),cme>=0?this.setState({scale:this.state.scale+cme/100<ime/100?this.state.scale+cme/100:ime/100}):this.setState({scale:this.state.scale+cme/100>lme/100?this.state.scale+cme/100:lme/100}))},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className,nme=tme.style,rme=tme.innerClassName,ime=tme.defaultImage,ome=tme.imageCaption,lme=tme.title,sme=tme.data,cme=tme.imageClassName,dme=tme.thumbClassName,ume=tme.height,fme=tme.width,pme=tme.classnames,hme=tme.src,bme=tme.href,mme=tme.thumbMode,vme=tme.thumbRatio,gme=tme.placeholder,yme=tme.originalSrc,_me=tme.enlargeAble,$me=tme.enlargeWithGallary,Cme=tme.imageMode,Sme=tme.wrapperCustomStyle,Eme=tme.id,xme=tme.themeCss,Tme=tme.env,Ome=hme?filter$1(hme,sme,"| raw"):"",Rme=Ome||getPropValue(this.props),Nme=bme?filter$1(bme,sme,"| raw"):"",Ime=ime&&!Rme?filter$1(ime,sme,"| raw"):imagePlaceholder;return React__default.createElement("div",{className:pme("ImageField",Cme==="original"?"ImageField--original":"ImageField--thumb",ame,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"wrapperCustomStyle",id:Eme,themeCss:Sme}))),style:__assign$3(__assign$3({},nme),{transform:"scale(".concat(this.state.scale,")")}),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Rme||!Rme&&!gme?React__default.createElement(ThemedImageThumb,{className:rme,imageClassName:cme,thumbClassName:dme,height:ume,width:fme,src:Rme||Ime,href:Nme,title:filter$1(lme,sme),caption:filter$1(ome,sme),thumbMode:mme,thumbRatio:vme,originalSrc:($P=filter$1(yme,sme,"| raw"))!==null&&$P!==void 0?$P:Rme,enlargeAble:_me&&Rme&&Rme!==Ime,enlargeWithGallary:$me,onEnlarge:this.handleEnlarge,imageMode:Cme,imageControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"imageControlClassName",id:Eme,themeCss:xme})),imageContentClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"imageContentClassName",id:Eme,themeCss:xme})),titleControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"titleControlClassName",id:Eme,themeCss:xme})),desControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"desControlClassName",id:Eme,themeCss:xme})),iconControlClassName:setThemeClassName(__assign$3(__assign$3({},this.props),{name:"iconControlClassName",id:Eme,themeCss:xme}))}):React__default.createElement("span",{className:"text-muted"},gme),React__default.createElement(CustomStyle,__assign$3({},this.props,{config:{wrapperCustomStyle:Sme,id:Eme,themeCss:xme,classNames:[{key:"imageControlClassName"},{key:"imageContentClassName"},{key:"titleControlClassName"},{key:"desControlClassName"},{key:"iconControlClassName"},{key:"galleryControlClassName"}]},env:Tme})))},eme.defaultProps={defaultImage:imagePlaceholder,thumbMode:"contain",thumbRatio:"1:1"},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnlarge",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),eme}(React__default.Component),ImageFieldRenderer=function(x_){__extends$2(eme,x_);function eme($P,tme){var ame=x_.call(this,$P)||this,nme=tme;return nme.registerComponent(ame),ame}return eme.prototype.componentWillUnmount=function(){var $P=this.context;$P.unRegisterComponent(this)},eme.prototype.doAction=function($P){var tme=$P==null?void 0:$P.actionType;tme==="preview"?this.handleEnlarge(this.props):this.handleSelfAction(tme,$P)},eme.contextType=ScopedContext,eme=__decorate$1([Renderer({type:"image"}),__metadata("design:paramtypes",[Object,Object])],eme),eme}(ImageField);const Image$1=Object.freeze(Object.defineProperty({__proto__:null,ImageField,ImageFieldRenderer,ImageThumb,default:ThemedImageThumb,imagePlaceholder},Symbol.toStringTag,{value:"Module"}));function isNil(x_){return x_==null}var isNil_1=isNil;const isNil$1=getDefaultExportFromCjs(isNil_1);var Cropper=React__default.lazy(function(){return __vitePreload(()=>import("./react-cropper.es-B0ZeBRyv.js"),[])}),preventEvent=function(x_){return x_.stopPropagation()};function formatIconThemeCss(x_){var eme={};if(["default","hover","active"].forEach(function($P){var tme;eme["color:".concat($P)]=(tme=x_==null?void 0:x_.addBtnControlClassName)===null||tme===void 0?void 0:tme["icon-color:".concat($P)]}),Object.keys(eme).forEach(function($P){eme[$P]||delete eme[$P]}),!isEmpty$2(eme))return{addBtnControlClassName:eme}}var ImageControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.state={uploading:!1,locked:!1,files:[],dropMultiple:!1},tme.files=[],tme.fileKeys=new WeakMap,tme.fileUploadCancelExecutors=[],tme.dropzone=React__default.createRef(),tme.frameImageRef=React__default.createRef(),tme.current=null,tme.unmounted=!1,tme.initedFilled=!1,tme.reuploadIndex=void 0,tme.toDispose=[],tme.id=guid$1();var ame=$P.value,nme=$P.multiple,rme=$P.joinValues,ime=$P.delimiter,ome=[];return ame&&(ome=(Array.isArray(ame)?ame:rme&&typeof ame=="string"&&nme?ame.split(ime):[ame]).map(function(lme){return eme.valueToFile(lme)}).filter(function(lme){return lme})),tme.state=__assign$3(__assign$3({},tme.state),{files:tme.files=ome,crop:tme.buildCrop($P),dropMultiple:$P.multiple,frameImageWidth:0}),tme.sendFile=tme.sendFile.bind(tme),tme.removeFile=tme.removeFile.bind(tme),tme.handleDrop=tme.handleDrop.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme.handleCrop=tme.handleCrop.bind(tme),tme.handleDropRejected=tme.handleDropRejected.bind(tme),tme.cancelCrop=tme.cancelCrop.bind(tme),tme.rotatableCrop=tme.rotatableCrop.bind(tme),tme.handleImageLoaded=tme.handleImageLoaded.bind(tme),tme.handleFrameImageLoaded=tme.handleFrameImageLoaded.bind(tme),tme.startUpload=tme.startUpload.bind(tme),tme.stopUpload=tme.stopUpload.bind(tme),tme.toggleUpload=tme.toggleUpload.bind(tme),tme.tick=tme.tick.bind(tme),tme.onChange=tme.onChange.bind(tme),tme.addFiles=tme.addFiles.bind(tme),tme.handleSelect=tme.handleSelect.bind(tme),tme.handlePaste=tme.handlePaste.bind(tme),tme.syncAutoFill=tme.syncAutoFill.bind(tme),tme.handleReSelect=tme.handleReSelect.bind(tme),tme.handleFileCancel=tme.handleFileCancel.bind(tme),tme.dragTipRef=tme.dragTipRef.bind(tme),tme}return eme.valueToFile=function($P,tme){return $P?__assign$3(__assign$3({},typeof $P=="string"?{value:$P,url:$P,id:guid$1()}:$P),{state:"init"}):void 0},eme.sizeInfo=function($P,tme,ame){if($P){if(!tme)return ame("Image.width",{width:$P})}else return ame("Image.height",{height:tme});return ame("Image.size",{width:$P,height:tme})},eme.prototype.componentDidMount=function(){var $P=this,tme=this.props,ame=tme.formInited,nme=tme.addHook,rme=tme.formItem,ime=function(){$P.initedFilled=!0,$P.props.initAutoFill&&$P.syncAutoFill()};rme&&this.toDispose.push(ame||!nme?rme.addInitHook(ime):nme(ime,"init")),this.props.initCrop&&this.files.length&&this.editImage(0)},eme.prototype.componentDidUpdate=function($P){var tme=this,ame=this.props;if($P.value!==ame.value){var nme=ame.value,rme=ame.multiple,ime=ame.joinValues,ome=ame.delimiter,lme=[];nme&&(lme=(Array.isArray(nme)?nme:ime&&typeof nme=="string"&&rme?nme.split(ome):[nme]).map(function(sme){var cme=eme.valueToFile(sme,ame),dme;return cme&&(dme=find$3(tme.files,function(ume){return ume.value===cme.value}))&&(cme=__assign$3(__assign$3(__assign$3({},dme),cme),{id:dme.id||cme.id||guid$1()})),cme}).filter(function(sme){return sme})),this.setState({files:this.files=lme},ame.changeMotivation!=="formInited"&&this.initedFilled?this.syncAutoFill:void 0)}$P.multiple!==ame.multiple&&this.setState({dropMultiple:ame.multiple}),$P.crop!==ame.crop&&this.setState({crop:this.buildCrop(ame)})},eme.prototype.componentWillUnmount=function(){this.unmounted=!0,this.fileKeys=new WeakMap,this.toDispose.forEach(function($P){return $P()}),this.toDispose=[]},eme.prototype.getFileKey=function($P){if($P.id)return $P.id;if(this.fileKeys.has($P))return this.fileKeys.get($P);var tme=guid$1();return this.fileKeys.set($P,tme),tme},eme.prototype.buildCrop=function($P){var tme=$P.crop,ame=this.props.translate;return tme&&$P.multiple?($P.env&&$P.env.alert&&$P.env.alert(ame("Image.configError")),null):(tme===!0&&(tme={}),tme&&(tme=__assign$3({aspectRatio:void 0,guides:!0,dragMode:"move",viewMode:1,rotatable:!0,scalable:!0},tme)),tme)},eme.prototype.handleDropRejected=function($P,tme){var ame;if(!(tme.type!=="change"&&tme.type!=="drop")){var nme=this.props,rme=nme.accept,ime=nme.multiple,ome=nme.onChange,lme=nme.maxLength,sme=nme.maxSize,cme=nme.translate,dme=$P.map(function(mme){return mme.file}),ume=this.files;!ime&&ume.length&&(ume=[]);var fme=isNil$1(this.reuploadIndex)?(ime?lme||dme.length+ume.length:1)-ume.length:dme.length;if(!(fme<=0)){var pme=[].slice.call(dme,0,fme),hme=function(mme){var vme;mme.id=guid$1();var gme=(vme=$P.find(function(yme){return yme.file===mme}))===null||vme===void 0?void 0:vme.errors;return gme&&(mme.error=gme.map(function(yme){if(yme.code===ErrorCode.FileInvalidType)return cme("File.invalidType",{files:mme.name,accept:rme});if(yme.code===ErrorCode.FileTooLarge)return cme("File.sizeLimit",{maxSize:prettyBytes(sme,1024)})}).join("; ")),mme.state="invalid",mme};if(ime)this.reuploadIndex!==void 0?(ume.splice(this.reuploadIndex,1,hme(pme[0])),this.reuploadIndex=void 0):pme.forEach(function(mme){ume.push(hme(mme))}),this.setState({files:this.files=ume,dropMultiple:ime});else{var bme=hme(pme[0]);this.setState({error:(ame=bme==null?void 0:bme.error)!==null&&ame!==void 0?ame:"",files:this.files=[],dropMultiple:ime},function(){return ome(void 0)})}}}},eme.prototype.handleFileCancel=function(){this.setState({dropMultiple:this.props.multiple})},eme.prototype.startUpload=function($P){$P===void 0&&($P=!1),!this.state.uploading&&this.setState({uploading:!0,locked:!0,files:this.files=this.files.map(function(tme){return $P&&tme.state==="error"&&(tme.state="pending",tme.progress=0),tme})},this.tick)},eme.prototype.toggleUpload=function(){return this.state.uploading?this.stopUpload():this.startUpload()},eme.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},eme.prototype.tick=function(){var $P=this;if(!(this.current||!this.state.uploading)){var tme=this.props,ame=tme.translate;tme.multiple;var nme=find$3(this.files,function(rme){return rme.state==="pending"});nme?(this.current=nme,nme.state="uploading",this.setState({files:this.files=this.files.concat()},function(){return $P.sendFile(nme,function(rme,ime,ome){var lme=$P.files.concat(),sme=lme.indexOf(ime);if(!~sme){$P.current=null,requestAnimationFrame($P.tick);return}var cme=ime;return rme?(cme.state=ime.state!=="uploading"?ime.state:"error",cme.error=rme,$P.current=null,lme.splice(sme,1),$P.setState({files:$P.files=lme,error:rme},$P.tick)):(cme=__assign$3(__assign$3({name:ime.name||$P.state.cropFileName},ome),{preview:ime.preview}),lme.splice(sme,1,cme),$P.current=null,$P.setState({files:$P.files=lme},$P.tick))},function(rme){var ime=$P.files.concat(),ome=ime.indexOf(nme);~ome&&(nme.progress=rme,$P.setState({files:$P.files=ime}))})})):this.setState({uploading:!1,locked:!1},function(){return __awaiter($P,void 0,void 0,function(){return __generator(this,function(rme){switch(rme.label){case 0:return[4,this.onChange(!!this.resolve,!1)];case 1:return rme.sent(),this.resolve&&(this.resolve(this.files.some(function(ime){return ime.state==="error"})?ame("Image.errorRetry"):null),this.resolve=void 0),[2]}})})})}},eme.prototype.removeFile=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return ame=this.files.concat(),[4,this.dispatchEvent("remove",__assign$3(__assign$3({},$P),{item:$P}))];case 1:return nme=ime.sent(),nme!=null&&nme.prevented?[2]:(this.removeFileCanelExecutor($P,!0),ame.splice(tme,1),rme=this.current===$P,rme&&(this.current=null),this.setState({files:this.files=ame},rme?this.tick:this.onChange),[2])}})})},eme.prototype.previewImage=function($P,tme,ame){var nme=this.props.onImageEnlarge;if(nme){var rme=this.files;ame.preventDefault(),nme({src:$P.preview||$P.url,originalSrc:$P.preview||$P.url,index:tme,list:rme.map(function(ime){return{src:ime.preview||ime.url,originalSrc:ime.preview||ime.url,title:ime.name||getNameFromUrl(ime.value||ime.url)}})})}},eme.prototype.editImage=function($P){var tme=this.files;this.setState({cropFile:{preview:tme[$P].preview||tme[$P].url,name:tme[$P].name,state:"init"},cropFileName:tme[$P].name})},eme.prototype.onChange=function($P,tme,ame){return tme===void 0&&(tme=!0),__awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme;return __generator(this,function(hme){switch(hme.label){case 0:return nme=this.props,rme=nme.multiple,ime=nme.onChange,ome=nme.joinValues,lme=nme.extractValue,sme=nme.delimiter,cme=nme.valueField,dme=ame??!0,ume=this.files.filter(function(bme){return bme.state=="uploaded"||bme.state=="init"}),fme=ume.length?ome?ume[0].value:ume[0]:"",rme?fme=ome?ume.map(function(bme){return bme.value}).join(sme):lme?ume.map(function(bme){return bme.value}):ume:fme=ome?fme.value||fme:lme?fme[cme||"value"]:fme,tme?[4,this.dispatchEvent("change")]:[3,2];case 1:if(pme=hme.sent(),pme!=null&&pme.prevented)return[2];hme.label=2;case 2:return ime(this.emitValue=fme||"",void 0,$P),dme&&this.syncAutoFill(),[2]}})})},eme.prototype.syncAutoFill=function(){var $P=this.props,tme=$P.autoFill,ame=$P.multiple,nme=$P.onBulkChange,rme=$P.data,ime=$P.name;if(!(tme!=null&&tme.hasOwnProperty("api"))){var ome=omit$1(tme,ime||"");if(!isEmpty$2(ome)&&nme){var lme=this.state.files.filter(function(cme){return~["uploaded","init","ready"].indexOf(cme.state)}),sme=dataMapping(ome,ame?{items:lme}:lme[0]);Object.keys(sme).forEach(function(cme){isPlainObject$b(sme[cme])&&isPlainObject$b(rme[cme])&&(sme[cme]=merge$4({},rme[cme],sme[cme]))}),nme(sme)}}},eme.prototype.handleSelect=function(){this.reuploadIndex=void 0,this.dropzone.current&&this.dropzone.current.open()},eme.prototype.handleRetry=function($P){var tme=this.files.concat(),ame=tme[$P];ame.state!=="invalid"&&ame.state!=="error"||(ame.state="pending",ame.progress=0,this.setState({files:tme},this.startUpload))},eme.prototype.handleDrop=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.multiple,ome=rme.crop,lme=rme.dropCrop;if(!$P.length&&Array.isArray(tme)){var sme=tme.reduce(function(dme,ume){return dme=dme.concat(ume.errors.map(function(fme){return fme.message})),dme},[]).join(`
`);this.props.env.alert(sme);return}if(ome&&!ime&&lme){var cme=$P[0];return(!cme.preview||!cme.url)&&(cme.preview=window.URL.createObjectURL(cme)),this.setState({cropFile:cme,cropFileName:cme.name})}ame&&ame.type==="drop"&&this.reuploadIndex!==void 0&&(this.reuploadIndex=void 0),this.setState({dropMultiple:ime},function(){return nme.addFiles($P)})},eme.prototype.handlePaste=function($P){var tme=$P.nativeEvent,ame=[],nme=tme.clipboardData.items,rme=this.props.accept||"*";[].slice.call(nme).forEach(function(ime){var ome;ime.kind!=="file"||!(ome=ime.getAsFile())||!_default$3(ome,rme)||(ome.id=guid$1(),ame.push(ome))}),this.reuploadIndex=void 0,this.handleDrop(ame)},eme.prototype.handleCrop=function(){var $P=this,tme,ame=this.props,nme=ame.cropFormat,rme=ame.cropQuality,ime=((tme=this.state.cropFile)===null||tme===void 0?void 0:tme.type)||"image/png";this.cropper.getCroppedCanvas().toBlob(function(ome){$P.addFiles([ome]),$P.setState({cropFile:void 0,locked:!1,lockedReason:""})},nme||ime,rme||1)},eme.prototype.cancelCrop=function(){this.setState({cropFile:void 0,cropFileName:void 0,locked:!1,lockedReason:""},this.onChange)},eme.prototype.rotatableCrop=function(){this.cropper.rotate(45)},eme.prototype.addFiles=function($P){var tme=this;if($P.length){var ame=this.props,nme=ame.multiple,rme=ame.maxLength,ime=ame.maxSize,ome=ame.translate,lme=this.files;!nme&&lme.length&&(lme=[]);var sme=isNil$1(this.reuploadIndex)?(nme?rme||$P.length+lme.length:1)-lme.length:$P.length,cme=[];if([].slice.call($P,0,sme).forEach(function(ume){if(ime&&ume.size>ime){tme.props.env.alert(ome("File.maxSize",{filename:ume.name||ome("File.imageAfterCrop"),actualSize:prettyBytes(ume.size,1024),maxSize:prettyBytes(ime,1024)}));return}ume.state="pending",ume.id=guid$1(),(!ume.preview||!ume.url)&&(ume.preview=URL.createObjectURL(ume)),cme.push(ume)}),!!cme.length){var dme=[];this.reuploadIndex!==void 0?(dme=lme.concat(),dme.splice.apply(dme,__spreadArray([this.reuploadIndex,1],__read$3(cme),!1)),this.reuploadIndex=void 0):dme=lme.concat(cme),this.setState({error:void 0,files:this.files=dme,locked:!0},function(){var ume=tme.props.autoUpload;ume&&tme.startUpload()})}}},eme.prototype.sendFile=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.limit,ome=rme.translate;if(!ime)return this._upload($P,tme,ame);var lme=new Image;lme.onload=function(){return __awaiter(nme,void 0,void 0,function(){var sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return sme=lme.width,cme=lme.height,dme="",ime.width&&ime.width!=sme||ime.height&&ime.height!=cme?dme=ome("Image.sizeNotEqual",{info:eme.sizeInfo(ime.width,ime.height,ome)}):ime.maxWidth&&ime.maxWidth<sme||ime.maxHeight&&ime.maxHeight<cme?dme=ome("Image.limitMax",{info:eme.sizeInfo(ime.maxWidth,ime.maxHeight,ome)}):ime.minWidth&&ime.minWidth>sme||ime.minHeight&&ime.minHeight>cme?dme=ome("Image.limitMin",{info:eme.sizeInfo(ime.minWidth,ime.minHeight,ome)}):ime.aspectRatio&&Math.abs(sme/cme-ime.aspectRatio)>.01&&(dme=ome(ime.aspectRatioLabel||"Image.limitRatio",{ratio:(+ime.aspectRatio).toFixed(2)})),dme?($P.state="invalid",[4,this.dispatchEvent("fail",{item:$P,error:dme})]):[3,2];case 1:return ume=fme.sent(),ume!=null&&ume.prevented?[2]:(tme(dme,$P),[3,3]);case 2:this._upload($P,tme,ame),fme.label=3;case 3:return[2]}})})},lme.src=$P.preview||$P.url},eme.prototype._upload=function($P,tme,ame){var nme=this,rme=this.props.translate;this._send($P,this.props.receiver,{},ame).then(function(ime){return __awaiter(nme,void 0,void 0,function(){var ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:if(ime.status&&ime.status!=="0")throw new Error(ime.msg||rme("Image.errorRetry"));return ome=__assign$3(__assign$3({},ime.data),{state:"uploaded"}),ome.value=ome.value||ome.url,[4,this.dispatchEvent("success",__assign$3(__assign$3({},$P),{item:$P,result:ime.data,value:ome.value}))];case 1:return lme=sme.sent(),lme!=null&&lme.prevented?[2]:(tme(null,$P,ome),[2])}})})}).catch(function(ime){return __awaiter(nme,void 0,void 0,function(){var ome;return __generator(this,function(lme){switch(lme.label){case 0:return[4,this.dispatchEvent("fail",{item:$P,error:ime})];case 1:return ome=lme.sent(),ome!=null&&ome.prevented?[2]:(tme(ime.message||rme("Image.errorRetry"),$P),[2])}})})})},eme.prototype._send=function($P,tme,ame,nme){return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme=this;return __generator(this,function(ume){switch(ume.label){case 0:if(rme=new FormData,ime=this.props.data,ome=buildApi(tme,createObject$1(ime,ame),{method:"post"}),lme=this.props.fileField||"file",sme=ome.url.indexOf("?"),~sme&&ame?(ame=__assign$3(__assign$3({},qsparse(ome.url.substring(sme+1))),ame),ome.url=ome.url.substring(0,sme)+"?"+qsstringify(ame)):ame&&(ome.url+="?"+qsstringify(ame)),ome.data&&qsstringify(ome.data).split("&").filter(function(fme){return fme!==""}).forEach(function(fme){var pme=fme.split("=");rme.append(pme[0],decodeURIComponent(pme[1]))}),rme.append(lme,$P,$P.name||this.state.cropFileName),ome.data=rme,cme=this.props.env,!cme||!cme.fetcher)throw new Error("fetcher is required");ume.label=1;case 1:return ume.trys.push([1,,3,4]),[4,cme.fetcher(ome,this.props.data,{method:"post",cancelExecutor:function(fme){dme.fileUploadCancelExecutors.push({file:$P,executor:fme})},onUploadProgress:function(fme){return nme(fme.loaded/fme.total)}})];case 2:return[2,ume.sent()];case 3:return this.removeFileCanelExecutor($P),[7];case 4:return[2]}})})},eme.prototype.removeFileCanelExecutor=function($P,tme){tme===void 0&&(tme=!1),this.fileUploadCancelExecutors=this.fileUploadCancelExecutors.filter(function(ame){return tme&&ame.file===$P&&ame.executor(),ame.file!==$P})},eme.prototype.handleClick=function(){this.refs.dropzone.open()},eme.prototype.handleImageLoaded=function($P,tme){var ame=this,nme=tme.currentTarget,rme=new Image;rme.onload=function(){delete rme.onload;var ime=ame.files.concat(),ome=ime[$P];if(ome){ome.info=__assign$3(__assign$3({},ome.info),{width:rme.width,height:rme.height}),ime.splice($P,1,ome);var lme=!!(ame.current||find$3(ime,function(sme){return sme.state==="pending"}));ame.unmounted||ame.setState({files:ame.files=ime},function(){lme||ame.onChange(!1,!0,ame.props.initAutoFill)})}},rme.src=nme.src},eme.prototype.handleFrameImageLoaded=function($P){var tme=$P.currentTarget,ame=new Image,nme=this.frameImageRef.current.clientHeight,rme=this;ame.onload=function(){var ime=this.width/this.height,ome=(ime*(nme-2)).toFixed(2);rme.setState({frameImageWidth:+ome})},ame.src=tme.src},eme.prototype.validate=function(){var $P=this,tme=this.props;tme.translate;var ame=tme.multiple;if(this.state.error&&this.setState({error:""}),this.state.locked&&this.state.lockedReason)return this.state.lockedReason;if(this.state.cropFile)return new Promise(function(nme){$P.resolve=nme,$P.handleCrop()});if(this.state.uploading||this.files.some(function(nme){return nme.state==="pending"}))return new Promise(function(nme){$P.resolve=nme,$P.startUpload()});if(ame&&this.files.some(function(nme){return nme.state&&["error","invalid"].includes(nme.state)}))return" "},eme.prototype.dispatchEvent=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){return ame=this.props,nme=ame.dispatchEvent,rme=ame.multiple,ime=function(sme){return{name:sme.path||sme.name,value:sme.value,state:sme.state,error:sme.error}},ome=tme?ime(tme):this.files.map(function(sme){return ime(sme)}),[2,nme($P,resolveEventData(this.props,__assign$3(__assign$3({},tme),{file:rme?ome:ome==null?void 0:ome[0]}),"file"))]})})},eme.prototype.doAction=function($P,tme,ame){var nme=this.props.onChange;$P.actionType==="clear"&&(this.files=[],nme(""))},eme.prototype.handleReSelect=function($P){var tme=this;this.reuploadIndex=$P,this.setState({dropMultiple:!1},function(){tme.dropzone.current&&tme.dropzone.current.open()})},eme.prototype.dragTipRef=function($P){!this.dragTip&&$P?this.initDragging($P.parentNode):this.dragTip&&!$P&&this.destroyDragging(),this.dragTip=$P},eme.prototype.initDragging=function($P){var tme=this,ame=this.props.classPrefix;this.sortable=new Sortable$1($P,{group:"inputimages-".concat(this.id),animation:150,handle:".".concat(ame,'ImageControl-item [data-role="dragBar"]'),ghostClass:"".concat(ame,"ImageControl-item--dragging"),onEnd:function(nme){if(nme.newIndex!==nme.oldIndex){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item);var ime=tme.files.concat();ime.splice(nme.newIndex,0,ime.splice(nme.oldIndex,1)[0]),tme.setState({files:tme.files=ime},function(){return tme.onChange(!0)})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.classnames,rme=tme.disabled,ime=tme.multiple,ome=tme.capture,lme=tme.accept,sme=tme.maxLength,cme=tme.autoUpload,dme=tme.hideUploadButton,ume=tme.thumbMode,fme=tme.thumbRatio,pme=tme.reCropable,hme=tme.frameImage,bme=tme.fixedSize,mme=tme.fixedSizeClassName,vme=tme.uploadBtnText;tme.maxSize;var gme=tme.render,yme=tme.themeCss,_me=tme.id,$me=tme.translate,Cme=tme.draggable,Sme=tme.draggableTip,Eme=tme.env,xme=this.state,Tme=xme.files,Ome=xme.error,Rme=xme.crop,Nme=xme.uploading,Ime=xme.cropFile,Pme=xme.frameImageWidth,Mme=xme.dropMultiple,kme={};mme&&Pme&&bme&&(kme.width=Pme);var Bme=filter$1(hme,this.props.data,"| raw"),Dme=Tme.some(function(Vme){return Vme.state=="pending"}),jme=!!ime&&Cme&&!rme&&!Dme&&Tme.length>1;return jsxs("div",{className:nme("ImageControl",ame,setThemeClassName(__assign$3(__assign$3({},this.props),{name:"inputImageControlClassName",id:_me,themeCss:yme}))),children:[Ime?jsxs("div",{className:nme("ImageControl-cropperWrapper"),children:[jsx(reactExports.Suspense,{fallback:jsx("div",{children:"..."}),children:jsx(Cropper,{...__assign$3({},Rme,{onInitialized:function(Vme){$P.cropper=Vme},src:Ime.preview})})}),jsxs("div",{className:nme("ImageControl-croperToolbar"),children:[Rme.rotatable&&jsx("a",{className:nme("ImageControl-cropRotatable"),onClick:this.rotatableCrop,"data-tooltip":$me("rotate"),"data-position":"left",children:jsx(Icon$1,{icon:"retry",className:"icon"})}),jsx("a",{className:nme("ImageControl-cropCancel"),onClick:this.cancelCrop,"data-tooltip":$me("cancel"),"data-position":"left",children:jsx(Icon$1,{icon:"close",className:"icon"})}),jsx("a",{className:nme("ImageControl-cropConfirm"),onClick:this.handleCrop,"data-tooltip":$me("confirm"),"data-position":"left",children:jsx(Icon$1,{icon:"check",className:"icon"})})]})]}):jsx(Dropzone,{ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,onFileDialogCancel:this.handleFileCancel,accept:lme,multiple:Mme,disabled:rme,children:function(Vme){var Wme=Vme.getRootProps,Lme=Vme.getInputProps,zme=Vme.isDragActive,Ume=Vme.isDragAccept,Gme=Vme.isDragReject;return jsxs("div",{...__assign$3({},Wme({onClick:preventEvent,onPaste:$P.handlePaste,className:nme("ImageControl-dropzone",{"is-disabled":rme,"is-empty":!Tme.length,"is-active":zme})})),children:[jsx("input",{...__assign$3({},Lme(),{capture:ome})}),zme||Ume||Gme?jsx("div",{className:nme("ImageControl-acceptTip",{"is-accept":Ume,"is-reject":Gme}),children:$me("Image.dragDrop")}):jsxs(Fragment,{children:[Tme&&Tme.length?jsxs("div",{className:nme("ImageControl-itemList"),children:[Tme.map(function(Jme,Yme){return jsx("div",{className:nme("ImageControl-item",{"is-uploaded":Jme.state!=="uploading","is-invalid":Jme.state==="error"||Jme.state==="invalid"},bme?"ImageControl-fixed-size":"",bme?mme:""),style:kme,children:Jme.state==="invalid"||Jme.state==="error"?jsx(TooltipWrapper$1,{placement:"top",tooltip:{content:Jme.error,disabled:!ime&&Tme.length===1,tooltipBodyClassName:nme("ImageControl-item-errorTip")},trigger:"hover",children:jsx("div",{className:nme("Image--thumb"),children:jsxs("div",{className:nme("Image-thumbWrap"),children:[jsxs("div",{className:nme("Image-thumb","ImageControl-filename"),children:[jsx(Icon$1,{icon:"image",className:"icon"}),jsx("span",{title:Jme.name||getNameFromUrl(Jme.value||Jme.url),children:Jme.name||getNameFromUrl(Jme.value||Jme.url)})]}),jsxs("div",{className:nme("Image-overlay"),children:[jsx("a",{"data-tooltip":$me("File.repick"),"data-position":"bottom",onClick:$P.handleReSelect.bind($P,Yme),children:jsx(Icon$1,{icon:"upload",className:"icon"})}),rme?null:jsx("a",{"data-tooltip":$me("Select.clear"),"data-position":"bottom",onClick:$P.removeFile.bind($P,Jme,Yme),children:jsx(Icon$1,{icon:"remove",className:"icon"})})]})]})})}):Jme.state==="uploading"?jsxs(Fragment,{children:[jsx("a",{onClick:$P.removeFile.bind($P,Jme,Yme),className:nme("ImageControl-itemClear"),"data-tooltip":$me("Select.clear"),children:jsx(Icon$1,{icon:"close",className:"icon"})},"clear"),jsxs("div",{className:nme("ImageControl-itemInfo",bme?"ImageControl-fixed-size":"",bme?mme:""),children:[jsx("div",{className:nme("ImageControl-progress"),children:jsx("span",{style:{width:"".concat(Math.round(Jme.progress*100),"%")},className:nme("ImageControl-progressValue")})}),jsx("p",{children:$me("File.uploading")})]},"info")]}):jsx(Fragment,{children:jsx(ThemedImageThumb,{className:nme("ImageControl-image",bme?"Image-thumb--fixed-size":""),onLoad:$P.handleImageLoaded.bind($P,Yme),src:Jme.preview||Jme.url,alt:Jme.name,thumbMode:ume,thumbRatio:fme,overlays:jsxs(Fragment,{children:[jme?jsx("a",{"data-role":"dragBar","data-tooltip":$me(Sme||"Image.dragTip"),"data-position":"bottom",target:"_blank",rel:"noopener",children:jsx(Icon$1,{icon:"drag-bar",className:"icon"})}):null,jsx("a",{"data-tooltip":$me("Image.zoomIn"),"data-position":"bottom",target:"_blank",rel:"noopener",href:Jme.url||Jme.preview,onClick:$P.previewImage.bind($P,Jme,Yme),children:jsx(Icon$1,{icon:"view",className:"icon"})}),Rme&&pme!==!1&&!rme?jsx("a",{"data-tooltip":$me("Image.crop"),"data-position":"bottom",onClick:$P.editImage.bind($P,Yme),children:jsx(Icon$1,{icon:"pencil",className:"icon"})}):null,rme?null:jsx("a",{"data-tooltip":$me("Select.upload"),"data-position":"bottom",onClick:function(){return $P.handleReSelect(Yme)},children:jsx(Icon$1,{icon:"upload",className:"icon"})}),rme?null:jsx("a",{"data-tooltip":$me("Select.clear"),"data-position":"bottom",onClick:$P.removeFile.bind($P,Jme,Yme),children:jsx(Icon$1,{icon:"remove",className:"icon"})})]})},"image")})},"".concat($P.getFileKey(Jme),"-").concat(Yme))}),jme?jsx("span",{ref:$P.dragTipRef}):null]}):null,ime&&(!sme||Tme.length<sme)||!ime&&!Tme.length?jsx(TooltipWrapper$1,{placement:"top",trigger:"hover",tooltip:{content:Ome,disabled:!ime||!Ome},children:jsxs("label",{className:nme("ImageControl-addBtn",{"is-disabled":rme},bme?"ImageControl-fixed-size":"",bme?mme:"",setThemeClassName(__assign$3(__assign$3({},$P.props),{name:"addBtnControlClassName",id:_me,themeCss:yme})),setThemeClassName(__assign$3(__assign$3({},$P.props),{name:"addBtnControlClassName",id:_me,themeCss:formatIconThemeCss(yme),extra:"icon"})),Ome?"is-invalid":""),style:kme,onClick:$P.handleSelect,ref:$P.frameImageRef,children:[jsx(Icon$1,{icon:"plus-fine",className:"icon",iconContent:nme(":ImageControl-addBtn-icon",setThemeClassName(__assign$3(__assign$3({},$P.props),{name:"iconControlClassName",id:_me,themeCss:yme})))}),jsx("span",{className:nme("ImageControl-addBtn-text"),children:vme?gme("btn-upload-text",vme,{}):$me("Image.upload")}),Bme?jsx("div",{className:nme("ImageControl-addBtn-bg"),children:jsx(ThemedImageThumb,{src:Bme,className:nme(bme?"Image-thumb--fixed-size":""),onLoad:$P.handleFrameImageLoaded.bind($P),thumbMode:ume,thumbRatio:fme},"upload-default-image")}):null]})}):null,!cme&&!dme&&Tme.length?jsx(Button$1,{level:"default",className:nme("ImageControl-uploadBtn"),disabled:!Dme,onClick:$P.toggleUpload,children:$me(Nme?"File.pause":"File.start")}):null,Ome?jsx("div",{className:nme("ImageControl-errorMsg"),children:Ome}):null]})]})}},"drop-zone"),jsx(CustomStyle,{...__assign$3({},this.props,{config:{themeCss:yme,classNames:[{key:"inputImageControlClassName"},{key:"addBtnControlClassName",weights:{hover:{suf:":not(:disabled):not(.is-disabled)"},active:{suf:":not(:disabled):not(.is-disabled)"}}},{key:"iconControlClassName",weights:{default:{suf:" svg"}}}],id:_me},env:Eme})}),jsx(CustomStyle,{...__assign$3({},this.props,{config:{themeCss:formatIconThemeCss(yme),classNames:[{key:"addBtnControlClassName",weights:{default:{inner:"svg"},hover:{suf:":not(:disabled):not(.is-disabled)",inner:"svg"},active:{suf:":not(:disabled):not(.is-disabled)",inner:"svg"}}}],id:_me&&_me+"-icon"},env:Eme})})]})},eme.defaultProps={limit:void 0,accept:"image/jpeg, image/jpg, image/png, image/gif",receiver:"/api/upload",hideUploadButton:!1,placeholder:"Image.placeholder",placeholderPlacement:"top",joinValues:!0,extractValue:!1,delimiter:",",autoUpload:!0,multiple:!1,capture:void 0,dropCrop:!0,initAutoFill:!0},eme}(React__default.Component),ImageControlRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"input-image",sizeMutable:!1,shouldComponentUpdate:function($P,tme){return!!isEffectiveApi($P.receiver,$P.data)&&(isApiOutdated($P.receiver,tme.receiver,$P.data,tme.data)||isApiOutdatedWithData($P.receiver,tme.receiver,$P.data,tme.data))}})],eme),eme}(ImageControl);const InputImage=Object.freeze(Object.defineProperty({__proto__:null,ImageControlRenderer,default:ImageControl},Symbol.toStringTag,{value:"Module"}));function loadRichText(x_){return x_===void 0&&(x_="froala"),function(){return x_==="tinymce"?__vitePreload(()=>import("./Tinymce-w2uITdUi.js"),[]).then(function(eme){return eme.default}):__vitePreload(()=>import("./RichText-BgNFtXya.js"),[]).then(function(eme){return eme.default})}}var RichTextControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={config:null,focused:!1},tme.handleFocus=tme.handleFocus.bind(tme),tme.handleBlur=tme.handleBlur.bind(tme),tme.handleChange=tme.handleChange.bind(tme),tme.state.config=tme.getConfig($P),tme}return eme.prototype.componentDidUpdate=function($P){var tme=this.props,ame=tme.vendor||(tme.env.richTextToken?"froala":"tinymce");ame==="froala"?(!isEqual$1($P.options,tme.options)||!isEqual$1($P.editorClass,tme.editorClass)||!isEqual$1($P.placeholder,tme.placeholder)||!isEqual$1($P.buttons,tme.buttons))&&this.setState({config:this.getConfig(tme)}):ame==="tinymce"&&(!isEqual$1($P.options,tme.options)||!isEqual$1($P.fileField,tme.fileField))&&this.setState({config:this.getConfig(tme)})},eme.prototype.getConfig=function($P){var tme=this,ame,nme=$P.vendor||($P.env.richTextToken?"froala":"tinymce"),rme=normalizeApi($P.receiver,((ame=$P.receiver)===null||ame===void 0?void 0:ame.method)||"post");rme.data=rme.data||{};var ime=buildApi(rme,$P.data,{method:$P.receiver.method||"post"});if(nme==="froala"){var ome=normalizeApi($P.videoReceiver,$P.videoReceiver.method||"post");ome.data=ome.data||{};var lme=buildApi(ome,$P.data,{method:$P.videoReceiver.method||"post"});return __assign$3(__assign$3(__assign$3({imageAllowedTypes:["jpeg","jpg","png","gif"],imageDefaultAlign:"left",imageEditButtons:$P.imageEditable?["imageReplace","imageAlign","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"]:[],key:$P.env.richTextToken,attribution:!1},$P.options),{editorClass:$P.editorClass,placeholderText:$P.translate($P.placeholder),imageUploadURL:ime.url,imageUploadParams:__assign$3({from:"rich-text"},ime.data),videoUploadURL:lme.url,videoUploadParams:__assign$3({from:"rich-text"},lme.data),events:__assign$3(__assign$3({},$P.options&&$P.options.events),{focus:this.handleFocus,blur:this.handleBlur}),language:!this.props.locale||this.props.locale==="zh-CN"?"zh_cn":""}),$P.buttons?{toolbarButtons:$P.buttons}:{})}else{var sme=$P.env.fetcher;return __assign$3(__assign$3({},$P.options),{onLoaded:this.handleTinyMceLoaded,images_upload_handler:function(cme,dme){return new Promise(function(ume,fme){return __awaiter(tme,void 0,void 0,function(){var pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome;return __generator(this,function(Rme){switch(Rme.label){case 0:pme=new FormData,ime.data&&qsstringify(ime.data).split("&").filter(function(Nme){return Nme!==""}).forEach(function(Nme){var Ime=Nme.split("=");pme.append(Ime[0],decodeURIComponent(Ime[1]))}),pme.append($P.fileField||"file",cme.blob(),cme.filename()),Rme.label=1;case 1:return Rme.trys.push([1,3,,4]),ime.url?(bme=__assign$3({adaptor:function(Nme){return __assign$3(__assign$3({},Nme),{data:Nme})}},ime),[4,sme(bme,pme,{method:"post"})]):(hme=new FileReader,hme.readAsDataURL(cme.blob()),hme.onloadend=function(){var Nme=hme.result;ume(Nme)},[2]);case 2:return mme=Rme.sent(),mme.ok&&(vme=((yme=mme.data)===null||yme===void 0?void 0:yme.link)||((_me=mme.data)===null||_me===void 0?void 0:_me.url)||(($me=mme.data)===null||$me===void 0?void 0:$me.value)||((Sme=(Cme=mme.data)===null||Cme===void 0?void 0:Cme.data)===null||Sme===void 0?void 0:Sme.link)||((xme=(Eme=mme.data)===null||Eme===void 0?void 0:Eme.data)===null||xme===void 0?void 0:xme.url)||((Ome=(Tme=mme.data)===null||Tme===void 0?void 0:Tme.data)===null||Ome===void 0?void 0:Ome.value),vme?ume(vme):console.warn("must have return value")),[3,4];case 3:return gme=Rme.sent(),fme(gme),[3,4];case 4:return[2]}})})})}})}},eme.prototype.handleFocus=function(){this.setState({focused:!0})},eme.prototype.handleBlur=function(){this.setState({focused:!1})},eme.prototype.handleChange=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return nme=this.props,rme=nme.onChange,ime=nme.disabled,ome=nme.dispatchEvent,ime?[2]:[4,ome("change",resolveEventData(this.props,{value:$P}))];case 1:return lme=sme.sent(),lme!=null&&lme.prevented?[2]:(rme==null||rme($P,tme,ame),[2])}})})},eme.prototype.handleTinyMceLoaded=function($P){var tme,ame=this.props.env;return(tme=ame==null?void 0:ame.loadTinymcePlugin)===null||tme===void 0?void 0:tme.call(ame,$P)},eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.className;ame.style;var rme=ame.classPrefix,ime=ame.value;ame.onChange;var ome=ame.disabled,lme=ame.static;ame.size;var sme=ame.vendor,cme=ame.env,dme=ame.locale,ume=ame.translate,fme=ame.borderMode,pme=sme||(cme.richTextToken?"froala":"tinymce");return lme?React__default.createElement("div",{className:cx$1("".concat(rme,"RichTextControl"),nme,($P={"is-focused":this.state.focused,"is-disabled":ome},$P["".concat(rme,"RichTextControl--border").concat(ucFirst(fme))]=fme,$P)),dangerouslySetInnerHTML:{__html:cme.filterHtml(ime)}}):React__default.createElement("div",{className:cx$1("".concat(rme,"RichTextControl"),nme,(tme={"is-focused":this.state.focused,"is-disabled":ome},tme["".concat(rme,"RichTextControl--border").concat(ucFirst(fme))]=fme,tme))},React__default.createElement(themedLazyComponent,{getComponent:loadRichText(pme),model:ime,onModelChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,config:this.state.config,disabled:ome,locale:dme,translate:ume}))},eme.defaultProps={imageEditable:!0,receiver:"/api/upload/image",videoReceiver:"/api/upload/video",fileField:"file",placeholder:"placeholder.enter",options:{toolbarButtons:["undo","redo","paragraphFormat","textColor","backgroundColor","bold","underline","strikeThrough","formatOL","formatUL","align","quote","insertLink","insertImage","insertEmotion","insertTable","html"]}},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleTinyMceLoaded",null),eme}(React__default.Component),RichTextControlRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"input-rich-text",sizeMutable:!1,detectProps:["options","buttons"]})],eme),eme}(RichTextControl);const InputRichText=Object.freeze(Object.defineProperty({__proto__:null,RichTextControlRenderer,default:RichTextControl},Symbol.toStringTag,{value:"Module"}));var HBox=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderChild=function($P,tme,ame){ame===void 0&&(ame={});var nme=this.props.render;return nme($P,tme,ame)},eme.prototype.renderColumn=function($P,tme,ame){var nme,rme=this.props,ime=rme.itemRender,ome=rme.data,lme=rme.classnames,sme=rme.subFormMode,cme=rme.subFormHorizontal,dme=rme.formMode,ume=rme.formHorizontal;if(!isVisible($P,ome)||!$P)return null;var fme=__assign$3({width:$P.width,height:$P.height},$P.style);return React__default.createElement("div",{key:tme,className:lme("Hbox-col",fme.width==="auto"?"Hbox-col--auto":fme.width?"Hbox-col--customWidth":"",(nme={},nme["Hbox-col--v".concat(ucFirst($P.valign))]=$P.valign,nme),$P.columnClassName),style:fme},ime?ime($P,tme,ame,this.props):this.renderChild("column/".concat(tme),$P.body,{formMode:$P.mode||sme||dme,formHorizontal:$P.horizontal||cme||ume}))},eme.prototype.renderColumns=function(){var $P=this,tme=this.props.columns;return tme.map(function(ame,nme){return $P.renderColumn(ame,nme,tme.length)})},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.className,nme=tme.style,rme=tme.classnames,ime=tme.gap,ome=tme.valign,lme=tme.align;return React__default.createElement("div",{className:rme("Hbox",ame,($P={},$P["Hbox--".concat(ime)]=ime,$P["Hbox--v".concat(ucFirst(ome))]=ome,$P["Hbox--h".concat(ucFirst(lme))]=lme,$P)),style:nme},this.renderColumns())},eme.propsList=["columns"],eme.defaultProps={gap:"xs"},eme}(React__default.Component),HBoxRenderer=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"hbox"})],eme),eme}(HBox);const HBox$1=Object.freeze(Object.defineProperty({__proto__:null,HBoxRenderer,default:HBox},Symbol.toStringTag,{value:"Module"}));addSchemaFilter(function(eme,$P){return $P.component!==CheckboxControlRenderer||eme.label&&typeof eme.option>"u"&&(eme=__assign$3({},eme),eme.option=eme.label,delete eme.label),eme});function convertFieldSetTabs2Controls(x_){var eme={},$P=!1;return eme.controls=Array.isArray(x_.controls)?x_.controls.concat():[],eme.controls=eme.controls.map(function(tme){if(Array.isArray(tme)){var ame=convertFieldSetTabs2Controls({type:"group",controls:tme});return ame!==tme&&($P=!0),ame}return tme}),x_.fieldSet&&(Array.isArray(x_.fieldSet)?x_.fieldSet:[x_.fieldSet]).forEach(function(tme){$P=!0,eme.controls.push(__assign$3(__assign$3({},convertFieldSetTabs2Controls(tme)),{type:"fieldSet",collapsable:x_.collapsable}))}),x_.tabs&&($P=!0)&&eme.controls.push({type:"tabs",tabs:x_.tabs.map(function(tme){return convertFieldSetTabs2Controls(tme)})}),$P&&(x_=__assign$3(__assign$3({},x_),eme),delete x_.fieldSet,delete x_.tabs),x_}addSchemaFilter(function(eme,$P){if($P.component!==FormRenderer)return eme;if(eme.fieldSet||eme.tabs)eme=convertFieldSetTabs2Controls(eme);else if(Array.isArray(eme.controls)){var tme=!1,ame=eme.controls.map(function(nme){if(Array.isArray(nme)){var rme=convertFieldSetTabs2Controls({type:"group",controls:nme});return rme!==nme&&(tme=!0),rme}return nme});tme&&(eme=__assign$3(__assign$3({},eme),{controls:ame}))}return eme});addSchemaFilter(function(eme,$P){if($P.component!==FieldSetRenderer)return eme;if(Array.isArray(eme.controls)){var tme=!1,ame=eme.controls.map(function(nme){if(Array.isArray(nme)){var rme=convertFieldSetTabs2Controls({type:"group",controls:nme});return rme!==nme&&(tme=!0),rme}return nme});tme&&(eme=__assign$3(__assign$3({},eme),{controls:ame}))}return eme});function convertArray2Hbox(x_){var eme=!1,$P=x_.map(function(tme){return Array.isArray(tme)?(eme=!0,convertArray2Hbox(tme)):tme});return eme||($P=x_),{type:"hbox",columns:$P}}addSchemaFilter(function(x_,eme){if(eme.component!==CardRenderer&&eme.component!==ListItemRenderer)return x_;if(Array.isArray(x_.body)){var $P=!1,tme=x_.body.map(function(ame){return Array.isArray(ame)?($P=!0,convertArray2Hbox(ame)):ame});$P&&(x_=__assign$3(__assign$3({},x_),{body:tme}))}return x_});addSchemaFilter(function(x_,eme){return eme.component!==ButtonGroupControlRenderer||(x_.btnClassName||x_.btnActiveClassName)&&(x_=__assign$3(__assign$3({},x_),{btnLevel:getLevelFromClassName(x_.btnClassName),btnActiveLevel:getLevelFromClassName(x_.btnActiveClassName)})),x_});addSchemaFilter(function(x_,eme){return eme.component!==FileControlRenderer&&eme.component!==ImageControlRenderer&&eme.component!==RichTextControlRenderer||(x_.reciever&&(x_=__assign$3(__assign$3({},x_),{receiver:x_.reciever}),delete x_.reciever),x_.videoReciever&&(x_=__assign$3(__assign$3({},x_),{videoReceiver:x_.reciever}),delete x_.reciever)),x_});addSchemaFilter(function(x_,eme){return eme.component!==GridRenderer||Array.isArray(x_.columns)&&x_.columns.some(function($P){return Array.isArray($P)||$P.type})&&(x_=__assign$3(__assign$3({},x_),{columns:x_.columns.map(function($P){if(Array.isArray($P))return{body:[{type:"grid",columns:$P}]};if($P.type){var tme=$P.xs,ame=$P.sm,nme=$P.md,rme=$P.lg,ime=$P.columnClassName,ome=__rest$14($P,["xs","sm","md","lg","columnClassName"]);$P={xs:tme,sm:ame,md:nme,lg:rme,columnClassName:ime,body:[ome]}}return $P})})),x_});addSchemaFilter(function(x_,eme){return eme.component!==HBoxRenderer||Array.isArray(x_.columns)&&x_.columns.some(function($P){return $P.type})&&(x_=__assign$3(__assign$3({},x_),{columns:x_.columns.map(function($P){var tme=$P.width,ame=$P.height,nme=$P.style,rme=$P.columnClassName,ime=$P.visible,ome=$P.visibleOn,lme=__rest$14($P,["width","height","style","columnClassName","visible","visibleOn"]);return $P.type&&($P={width:tme,height:ame,style:nme,columnClassName:rme,visible:ime,visibleOn:ome,body:[lme]}),$P})})),x_});var controlMapping={array:"input-array","button-group":"button-group-select",city:"input-city",color:"input-color",date:"input-date",datetime:"input-datetime",time:"input-time",quarter:"input-quarter",month:"input-month",year:"input-year","date-range":"input-date-range","datetime-range":"input-datetime-range",diff:"diff-editor",file:"input-file",image:"input-image",list:"list-select",location:"location-picker",matrix:"matrix-checkboxes","month-range":"input-month-range","quarter-range":"input-quarter-range",number:"input-number",range:"input-range",rating:"input-rating",repeat:"input-repeat","rich-text":"input-rich-text",form:"input-sub-form",table:"input-table",tag:"input-tag",text:"input-text",url:"input-url",password:"input-password",email:"input-email",tree:"input-tree",progress:"static-progress",mapping:"static-mapping"},maybeFormItem=["button","submit","reset","button-group","button-toolbar","container","grid","hbox","panel","anchor-nav","qr-code"];function wrapControl(x_){if(!x_||!x_.type)return x_;var eme=x_.label,$P=x_.description,tme=x_.name,ame=x_.required,nme=x_.remark,rme=x_.inputOnly,ime=x_.labelClassName,ome=x_.caption,lme=x_.labelRemark,sme=x_.descriptionClassName,cme=x_.captionClassName,dme=x_.hint,ume=x_.showErrorMsg,fme=x_.mode,pme=x_.horizontal,hme=x_.className,bme=x_.inputClassName,mme=x_.columnClassName,vme=x_.visibleOn,gme=x_.visible,yme=__rest$14(x_,["label","description","name","required","remark","inputOnly","labelClassName","caption","labelRemark","descriptionClassName","captionClassName","hint","showErrorMsg","mode","horizontal","className","inputClassName","columnClassName","visibleOn","visible"]);return yme.name=tme,yme.className=bme,~["button","submit","reset"].indexOf(yme.type)&&(yme.label=eme,eme=""),{type:"control",label:eme,description:$P,name:tme,required:ame,remark:nme,inputOnly:rme,labelClassName:ime,caption:ome,labelRemark:lme,descriptionClassName:sme,captionClassName:cme,hint:dme,showErrorMsg:ume,mode:fme,horizontal:pme,className:hme,columnClassName:mme,visibleOn:vme,visible:gme,body:yme}}var maybeStatic=["tpl","mapping","progress","status","json","video","qrcode","plain","each","link"];function wrapStatic(x_){return!x_||!x_.type?x_:__assign$3(__assign$3({},x_),{type:"static-".concat(x_.type)})}addSchemaFilter(function(x_,eme,$P){var tme,ame,nme,rme,ime=typeof(x_==null?void 0:x_.type)=="string"?x_.type.toLowerCase():"",ome=x_;if(ime==="combo"&&Array.isArray(x_.conditions)&&(ome=__assign$3(__assign$3({},x_),{conditions:x_.conditions.map(function(sme){return Array.isArray(sme.controls)&&(sme=__assign$3(__assign$3({},sme),{items:sme.controls.map(lme)}),delete sme.controls),sme})})),x_!=null&&x_.controls&&x_.type!=="audio"&&x_.type!=="carousel"?(ome=__assign$3(__assign$3({},x_),(tme={},tme[x_.type==="combo"?"items":"body"]=(Array.isArray(x_.controls)?x_.controls:[x_.controls]).map(lme),tme)),delete ome.controls):!((ame=x_==null?void 0:x_.quickEdit)===null||ame===void 0)&&ame.controls&&(!x_.quickEdit.type||!~["combo","group","panel","fieldSet","fieldset"].indexOf(x_.quickEdit.type))?(ome=__assign$3(__assign$3({},x_),{quickEdit:__assign$3(__assign$3({},x_.quickEdit),{body:(Array.isArray(x_.quickEdit.controls)?x_.quickEdit.controls:[x_.quickEdit.controls]).map(lme)})}),delete ome.quickEdit.controls):!((nme=x_==null?void 0:x_.quickEdit)===null||nme===void 0)&&nme.type?ome=__assign$3(__assign$3({},x_),{quickEdit:lme(x_.quickEdit)}):ime==="tabs"&&Array.isArray(x_.tabs)?ome=__assign$3(__assign$3({},x_),{tabs:x_.tabs.map(function(sme){return Array.isArray(sme.controls)&&!Array.isArray(sme.body)&&(sme=__assign$3(__assign$3({},sme),{body:sme.controls.map(lme)}),delete sme.controls),sme})}):ime==="anchor-nav"&&Array.isArray(x_.links)?ome=__assign$3(__assign$3({},x_),{links:x_.links.map(function(sme){return Array.isArray(sme.controls)&&(sme=__assign$3(__assign$3({},sme),{body:sme==null?void 0:sme.controls.map(lme)}),delete sme.controls),sme})}):ime==="input-array"&&x_.items?ome=__assign$3(__assign$3({},x_),{items:Array.isArray(x_.items)?x_.items.map(lme):lme(x_.items)}):(ime==="grid"||ime==="hbox")&&Array.isArray(x_.columns)?ome=__assign$3(__assign$3({},x_),{columns:x_.columns.map(function(sme){return Array.isArray(sme.controls)&&(sme=__assign$3(__assign$3({},sme),{body:sme==null?void 0:sme.controls.map(lme)}),sme.type!=="form"&&delete sme.type,delete sme.controls),sme})}):ime==="service"&&(!((rme=x_==null?void 0:x_.body)===null||rme===void 0)&&rme.controls)&&(ome=__assign$3(__assign$3({},x_),{body:(Array.isArray(x_.body.controls)?x_.body.controls:[x_.body.controls]).map(lme)})),ome!==x_&&isObjectShallowModified$1(ome,x_,!1,!1,[],10))return ome;return x_;function lme(sme){return sme!=null&&sme.$ref&&$P.resolveDefinitions&&(sme=__assign$3(__assign$3({},$P.resolveDefinitions(sme.$ref)),sme),delete sme.$ref),sme&&controlMapping[sme.type]?__assign$3(__assign$3({},sme),{type:controlMapping[sme.type]}):~maybeFormItem.indexOf(sme==null?void 0:sme.type)?wrapControl(sme):~maybeStatic.indexOf(sme==null?void 0:sme.type)?wrapStatic(sme):sme}});addSchemaFilter(function(x_,eme,$P){var tme,ame,nme,rme;if(x_&&x_.type==="input-kv"){var ime=(tme=x_.autoParseJSON)!==null&&tme!==void 0?tme:!0;return __assign$3(__assign$3({draggable:!0},x_),{multiple:!0,pipeIn:function(ome){if(!isObject$8(ome))return[];if(isEqual$1(ome,this.cachedValue))return this.cachedValueArray;var lme=[];return Object.keys(ome).forEach(function(sme){var cme=typeof ome[sme];lme.push({key:sme||"",value:cme==="string"||cme==="number"||cme==="boolean"?ome[sme]:JSON.stringify(ome[sme])})}),lme},pipeOut:function(ome){if(!Array.isArray(ome))return ome;var lme={};return ome.forEach(function(sme){var cme,dme,ume,fme=(cme=sme.key)!==null&&cme!==void 0?cme:"",pme=(ume=(dme=sme.value)!==null&&dme!==void 0?dme:x_.defaultValue)!==null&&ume!==void 0?ume:"";if(ime&&typeof pme=="string"&&pme.startsWith("{"))try{pme=JSON.parse(pme)}catch{}lme[fme]=pme}),this.cachedValue=lme,this.cachedValueArray=ome,lme},items:[x_.keySchema?__assign$3(__assign$3({},x_.keySchema),{unique:!0,name:"key",required:!0,validateOnChange:!0}):{placeholder:(ame=x_.keyPlaceholder)!==null&&ame!==void 0?ame:"Key",type:"input-text",unique:!0,name:"key",required:!0,validateOnChange:!0},x_.valueSchema?__assign$3(__assign$3({},x_.valueSchema),{name:"value"}):x_.valueComponent?{placeholder:(nme=x_.valuePlaceholder)!==null&&nme!==void 0?nme:"Value",component:x_.valueComponent,asFormItem:!0,name:"value"}:{placeholder:(rme=x_.valuePlaceholder)!==null&&rme!==void 0?rme:"Value",type:x_.valueType||"input-text",name:"value"}]})}return x_});addSchemaFilter(function(x_,eme,$P){if(x_&&x_.type==="input-kvs"){var tme=x_.keyItem||{},ame=x_.valueItems||[],nme=!1;ame.length==1&&ame[0].name==="_value"&&(nme=!0);var rme=__assign$3(__assign$3({draggable:!0,multiple:!0,multiLine:!0},x_),{pipeIn:function(ime){if(!isObject$8(ime))return[];var ome=[];return Object.keys(ime).forEach(function(lme){var sme=ime[lme];nme?ome.push({_key:lme||"",_value:sme}):typeof sme=="object"&&ome.push(__assign$3(__assign$3({},sme),{_key:lme||""}))}),ome},pipeOut:function(ime){if(!Array.isArray(ime))return ime;var ome={};return ime.forEach(function(lme){var sme=lme._key,cme=__rest$14(lme,["_key"]);sme=sme??"",nme?(x_.valueIsArray?ome[sme]=lme._value||[]:ome[sme]=lme._value||{},isEqual$1(ome[sme],[{}])&&(ome[sme]=[])):x_.valueIsArray?ome[sme]=cme||[]:ome[sme]=cme||{}}),ome},items:__spreadArray([__assign$3({type:"input-text",unique:!0,name:"_key",required:!0,validateOnChange:!0},tme)],__read$3(ame),!1)});return rme}return x_});registerRenderer({type:"action",alias:["button","submit","reset"],getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Action$2),void 0)}});registerRenderer({type:"alert",getComponent:function(){return __vitePreload(()=>import("./Alert-6wHn9Mhw.js"),[])}});registerRenderer({type:"app",getComponent:function(){return __vitePreload(()=>import("./App-u1R-3zhW.js"),[])}});registerRenderer({type:"avatar",getComponent:function(){return __vitePreload(()=>import("./Avatar-KBxc9bfC.js"),[])}});registerRenderer({type:"remark",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Remark$2),void 0)}});registerRenderer({type:"button-group",getComponent:function(){return __vitePreload(()=>import("./ButtonGroup-C6P3xlpX.js"),[])}});registerRenderer({type:"button-toolbar",getComponent:function(){return __vitePreload(()=>import("./ButtonToolbar-Bi8UhDLn.js"),[])}});registerRenderer({type:"breadcrumb",getComponent:function(){return __vitePreload(()=>import("./Breadcrumb-CmixmNdg.js"),[])}});registerRenderer({type:"dropdown-button",getComponent:function(){return __vitePreload(()=>import("./DropDownButton-DzbSrJkc.js"),[])}});registerRenderer({type:"calendar",getComponent:function(){return __vitePreload(()=>import("./Calendar-BpoT8iCg.js"),__vite__mapDeps([9,10]))}});registerRenderer({type:"collapse",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Collapse$1),void 0)}});registerRenderer({type:"collapse-group",getComponent:function(){return __vitePreload(()=>import("./CollapseGroup-D73lhMv7.js"),[])}});registerRenderer({type:"color",getComponent:function(){return __vitePreload(()=>import("./Color-Cut8TpG-.js"),[])}});registerRenderer({type:"crud",getComponent:function(){return __vitePreload(()=>import("./CRUD-0sLzcv72.js"),__vite__mapDeps([11,12]))}});registerRenderer({type:"crud2",getComponent:function(){return __vitePreload(()=>import("./CRUD2-mUp6pAhs.js"),__vite__mapDeps([13,12]))}});registerRenderer({type:"pagination",alias:["pager"],getComponent:function(){return __vitePreload(()=>import("./Pagination-DL3Vnh4l.js"),[])}});registerRenderer({type:"cards",getComponent:function(){return __vitePreload(()=>import("./Cards-fBi22Q0c.js"),[])}});registerRenderer({type:"card",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Card$1),void 0)}});registerRenderer({type:"card2",getComponent:function(){return __vitePreload(()=>import("./Card2-Cr6X6r0L.js"),[])}});registerRenderer({type:"custom",getComponent:function(){return __vitePreload(()=>import("./Custom-C6sCE4av.js"),[])}});registerRenderer({type:"date",getComponent:function(){return __vitePreload(()=>import("./Date-DWwkPeAv.js"),[])}});registerRenderer({type:"datetime",getComponent:function(){return __vitePreload(()=>import("./Date-DWwkPeAv.js"),[])}});registerRenderer({type:"time",getComponent:function(){return __vitePreload(()=>import("./Date-DWwkPeAv.js"),[])}});registerRenderer({type:"month",getComponent:function(){return __vitePreload(()=>import("./Date-DWwkPeAv.js"),[])}});registerRenderer({type:"dialog",getComponent:function(){return __vitePreload(()=>import("./Dialog-DbXaxAwG.js"),[])}});registerRenderer({type:"divider",getComponent:function(){return __vitePreload(()=>import("./Divider-Brk36Y86.js"),[])}});registerRenderer({type:"each",getComponent:function(){return __vitePreload(()=>import("./Each-jVIwdm26.js"),[])}});registerRenderer({type:"flex",getComponent:function(){return __vitePreload(()=>import("./Flex-CJIL1vXi.js"),[])}});registerRenderer({type:"button-group-select",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>ButtonGroupSelect),void 0)}});registerRenderer({type:"control",getComponent:function(){return __vitePreload(()=>import("./Control-BUgMdQLK.js"),[])}});registerRenderer({type:"hidden",getComponent:function(){return __vitePreload(()=>import("./Hidden-DyhXhr_u.js"),[])}});registerRenderer({type:"input-text",alias:["input-password","native-date","native-time","native-number","input-email","input-url"],getComponent:function(){return __vitePreload(()=>import("./InputText-Cj9Yxf03.js"),[])}});registerRenderer({type:"input-tag",getComponent:function(){return __vitePreload(()=>import("./InputTag-DyaEtJqg.js"),[])}});registerRenderer({type:"input-number",getComponent:function(){return __vitePreload(()=>import("./InputNumber-BV8P22I4.js"),[])}});registerRenderer({type:"textarea",getComponent:function(){return __vitePreload(()=>import("./Textarea-Yd1hXDjM.js"),[])}});registerRenderer({type:"checkboxes",getComponent:function(){return __vitePreload(()=>import("./Checkboxes-DSmjLBrh.js"),[])}});registerRenderer({type:"checkbox",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Checkbox),void 0)}});registerRenderer({type:"input-city",getComponent:function(){return __vitePreload(()=>import("./InputCity-7L0C10h8.js"),[])}});registerRenderer({type:"chart-radios",getComponent:function(){return __vitePreload(()=>import("./ChartRadios-BJQ04S14.js"),[])}});registerRenderer({type:"input-rating",getComponent:function(){return __vitePreload(()=>import("./InputRating-Dmrgkhq5.js"),[])}});registerRenderer({type:"switch",getComponent:function(){return __vitePreload(()=>import("./Switch-CW0N_eui.js"),[])}});registerRenderer({type:"radios",getComponent:function(){return __vitePreload(()=>import("./Radios-C1JSrEUY.js"),[])}});registerRenderer({type:"radio",getComponent:function(){return __vitePreload(()=>import("./Radio-No7dbGl4.js"),[])}});registerRenderer({type:"json-schema",getComponent:function(){return __vitePreload(()=>import("./JSONSchema-1BvLVFcE.js"),[])}});registerRenderer({type:"json-schema-editor",getComponent:function(){return __vitePreload(()=>import("./JSONSchemaEditor-CP6UAj4M.js"),[])}});registerRenderer({type:"list-select",getComponent:function(){return __vitePreload(()=>import("./ListSelect-t83xsYOp.js"),[])}});registerRenderer({type:"location-picker",getComponent:function(){return __vitePreload(()=>import("./LocationPicker-xmq7EQ48.js"),[])}});registerRenderer({type:"select",getComponent:function(){return __vitePreload(()=>import("./Select-Vga2CY3Y.js"),__vite__mapDeps([14,15]))}});registerRenderer({type:"multi-select",getComponent:function(){return __vitePreload(()=>import("./Select-Vga2CY3Y.js"),__vite__mapDeps([14,15]))}});registerRenderer({type:"input-date",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-datetime",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-time",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-month",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-quarter",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-year",getComponent:function(){return __vitePreload(()=>import("./InputDate-pRnC2b9H.js"),[])}});registerRenderer({type:"input-date-range",getComponent:function(){return __vitePreload(()=>import("./InputDateRange-88pd9AIh.js"),[])}});registerRenderer({type:"input-datetime-range",getComponent:function(){return __vitePreload(()=>import("./InputDateRange-88pd9AIh.js"),[])}});registerRenderer({type:"input-time-range",getComponent:function(){return __vitePreload(()=>import("./InputDateRange-88pd9AIh.js"),[])}});registerRenderer({type:"input-formula",getComponent:function(){return __vitePreload(()=>import("./InputFormula-De23e1g2.js"),[])}});registerRenderer({type:"input-repeat",getComponent:function(){return __vitePreload(()=>import("./InputRepeat-_Wzhtc5C.js"),[])}});registerRenderer({type:"input-tree",getComponent:function(){return __vitePreload(()=>import("./InputTree-BWzftqyq.js"),[])}});registerRenderer({type:"tree-select",getComponent:function(){return __vitePreload(()=>import("./TreeSelect-CgjJtQTu.js"),[])}});registerRenderer({type:"input-image",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>InputImage),void 0)}});registerRenderer({type:"input-file",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>InputFile),void 0)}});registerRenderer({type:"uuid",getComponent:function(){return __vitePreload(()=>import("./UUID-CZ_YIUXq.js"),[])}});registerRenderer({type:"matrix-checkboxes",getComponent:function(){return __vitePreload(()=>import("./MatrixCheckboxes-Bkyhr0Of.js"),[])}});registerRenderer({type:"input-month-range",getComponent:function(){return __vitePreload(()=>import("./InputMonthRange-EL0jOWmP.js"),__vite__mapDeps([16,17]))}});registerRenderer({type:"input-quarter-range",getComponent:function(){return __vitePreload(()=>import("./InputQuarterRange-fUc0-XRm.js"),__vite__mapDeps([18,17]))}});registerRenderer({type:"input-year-range",getComponent:function(){return __vitePreload(()=>import("./InputYearRange-Dg-Cne6D.js"),__vite__mapDeps([19,17]))}});registerRenderer({type:"input-range",getComponent:function(){return __vitePreload(()=>import("./InputRange-Bl95FG2m.js"),[])}});registerRenderer({type:"input-array",getComponent:function(){return __vitePreload(()=>import("./InputArray-C5SQMAtW.js"),__vite__mapDeps([20,21]))}});registerRenderer({type:"combo",getComponent:function(){return __vitePreload(()=>import("./Combo-D94rAX9v.js"),[])}});registerRenderer({type:"input-kv",getComponent:function(){return __vitePreload(()=>import("./Combo-D94rAX9v.js"),[])}});registerRenderer({type:"input-kvs",getComponent:function(){return __vitePreload(()=>import("./Combo-D94rAX9v.js"),[])}});registerRenderer({type:"condition-builder",getComponent:function(){return __vitePreload(()=>import("./ConditionBuilder-UpI7BDOP.js"),[])}});registerRenderer({type:"input-sub-form",getComponent:function(){return __vitePreload(()=>import("./InputSubForm-RvZw7vF8.js"),[])}});registerRenderer({type:"input-excel",getComponent:function(){return __vitePreload(()=>import("./InputExcel-pN6PMh3u.js"),[])}});registerRenderer({type:"input-rich-text",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>InputRichText),void 0)}});registerRenderer({type:"diff-editor",getComponent:function(){return __vitePreload(()=>import("./DiffEditor-CtKT2wyT.js"),[])}});registerRenderer({type:"input-color",getComponent:function(){return __vitePreload(()=>import("./InputColor-3GC8hBQI.js"),[])}});registerRenderer({type:"chained-select",getComponent:function(){return __vitePreload(()=>import("./ChainedSelect-OY-rt2XA.js"),[])}});registerRenderer({type:"nested-select",getComponent:function(){return __vitePreload(()=>import("./NestedSelect-CoBVtO2E.js"),[])}});registerRenderer({type:"transfer",getComponent:function(){return __vitePreload(()=>import("./Transfer-BzS7I0rL.js"),[])}});registerRenderer({type:"transfer-picker",getComponent:function(){return __vitePreload(()=>import("./TransferPicker-BVo8W4ph.js"),__vite__mapDeps([22,15]))}});registerRenderer({type:"input-table",getComponent:function(){return __vitePreload(()=>import("./InputTable-B0ZeapeL.js"),[])}});registerRenderer({type:"picker",getComponent:function(){return __vitePreload(()=>import("./Picker-79OtivEE.js"),[])}});registerRenderer({type:"icon-picker",getComponent:function(){return __vitePreload(()=>import("./IconPicker-BVnoIK3n.js"),[])}});registerRenderer({type:"icon-select",getComponent:function(){return __vitePreload(()=>import("./IconSelect-DAAZ7yur.js"),[])}});registerRenderer({type:"formula",getComponent:function(){return __vitePreload(()=>import("./Formula-CER0pXa6.js"),[])}});registerRenderer({type:"fieldset",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>FieldSet),void 0)}});registerRenderer({type:"tabs-transfer",getComponent:function(){return __vitePreload(()=>import("./TabsTransfer-DSMPYBpk.js"),__vite__mapDeps([23,15]))}});registerRenderer({type:"tabs-transfer-picker",getComponent:function(){return __vitePreload(()=>import("./TabsTransferPicker-DjhaMOjM.js"),__vite__mapDeps([24,23,15]))}});registerRenderer({type:"group",getComponent:function(){return __vitePreload(()=>import("./Group-D_Zv6ohZ.js"),[])}});registerRenderer({type:"input-group",getComponent:function(){return __vitePreload(()=>import("./InputGroup-DCWGHz7Y.js"),[])}});registerRenderer({type:"users-select",getComponent:function(){return __vitePreload(()=>import("./UserSelect-CxjRy1X6.js"),[])}});registerRenderer({type:"input-signature",getComponent:function(){return __vitePreload(()=>import("./InputSignature-fP120tWg.js"),[])}});registerRenderer({type:"input-verification-code",getComponent:function(){return __vitePreload(()=>import("./InputVerificationCode-CsLHY5eW.js"),[])}});registerRenderer({type:"grid-2d",getComponent:function(){return __vitePreload(()=>import("./Grid2D-BWC-8Ues.js"),[])}});registerRenderer({type:"hbox",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>HBox$1),void 0)}});registerRenderer({type:"vbox",getComponent:function(){return __vitePreload(()=>import("./VBox-BcijeYk_.js"),[])}});registerRenderer({type:"image",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>Image$1),void 0)}});registerRenderer({type:"images",getComponent:function(){return __vitePreload(()=>import("./Images-DGjoaeBN.js"),[])}});registerRenderer({type:"list",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>List$1),void 0)}});registerRenderer({type:"log",getComponent:function(){return __vitePreload(()=>import("./Log-D2Kfv_iK.js"),[])}});registerRenderer({type:"operation",getComponent:function(){return __vitePreload(()=>import("./Operation-C-x5iEZJ.js"),[])}});registerRenderer({type:"page",getComponent:function(){return __vitePreload(()=>import("./Page-CV2PMDYI.js"),[])}});registerRenderer({type:"pagination-wrapper",getComponent:function(){return __vitePreload(()=>import("./PaginationWrapper-B3i2bY9g.js"),[])}});registerRenderer({type:"panel",getComponent:function(){return __vitePreload(()=>import("./Panel-o3Eqty9u.js"),[])}});registerRenderer({type:"plain",alias:["text"],getComponent:function(){return __vitePreload(()=>import("./Plain-CylVtCVG.js"),[])}});registerRenderer({type:"property",getComponent:function(){return __vitePreload(()=>import("./Property-CZ9F4YQz.js"),[])}});registerRenderer({type:"portlet",getComponent:function(){return __vitePreload(()=>import("./Portlet-Cx2YLjkm.js"),[])}});registerRenderer({type:"spinner",getComponent:function(){return __vitePreload(()=>import("./Spinner-ySsR8Pfx.js"),[])}});registerRenderer({type:"table",getComponent:function(){return __vitePreload(()=>Promise.resolve().then(()=>index$6),void 0)}});registerRenderer({type:"tabs",getComponent:function(){return __vitePreload(()=>import("./Tabs-GvyvBFrS.js"),[])}});registerRenderer({type:"tpl",alias:["html"],getComponent:function(){return __vitePreload(()=>import("./Tpl-BA7geD4Q.js"),[])}});registerRenderer({type:"mapping",alias:["map"],getComponent:function(){return __vitePreload(()=>import("./Mapping-CcbIzCmu.js"),[])}});registerRenderer({type:"progress",getComponent:function(){return __vitePreload(()=>import("./Progress-r-xybm-p.js"),[])}});registerRenderer({type:"status",getComponent:function(){return __vitePreload(()=>import("./Status-Dydw1H13.js"),[])}});registerRenderer({type:"json",getComponent:function(){return __vitePreload(()=>import("./Json-D5pKS1ZF.js"),[])}});registerRenderer({type:"link",getComponent:function(){return __vitePreload(()=>import("./Link-DskNwCUh.js"),[])}});registerRenderer({type:"wizard",getComponent:function(){return __vitePreload(()=>import("./Wizard-CkwMf7cn.js"),[])}});registerRenderer({type:"chart",getComponent:function(){return __vitePreload(()=>import("./Chart-Cv7Ybfom.js"),[])}});registerRenderer({type:"container",getComponent:function(){return __vitePreload(()=>import("./Container-BZZGdPKg.js"),[])}});registerRenderer({type:"switch-container",getComponent:function(){return __vitePreload(()=>import("./SwitchContainer-Cwd3pSia.js"),[])}});registerRenderer({type:"search-box",getComponent:function(){return __vitePreload(()=>import("./SearchBox-BUopsJr1.js"),[])}});registerRenderer({type:"service",getComponent:function(){return __vitePreload(()=>import("./Service-CXsBZYic.js"),[])}});registerRenderer({type:"sparkline",getComponent:function(){return __vitePreload(()=>import("./SparkLine-9o2gVZMt.js"),[])}});registerRenderer({type:"video",getComponent:function(){return __vitePreload(()=>import("./Video-D8vS5YsE.js"),[])}});registerRenderer({type:"audio",getComponent:function(){return __vitePreload(()=>import("./Audio-BMui6Hd7.js"),[])}});registerRenderer({type:"nav",alias:["navigation"],getComponent:function(){return __vitePreload(()=>import("./Nav-BcPYQfsM.js"),[])}});registerRenderer({type:"number",getComponent:function(){return __vitePreload(()=>import("./Number-BMs4hlRN.js"),[])}});registerRenderer({type:"tasks",getComponent:function(){return __vitePreload(()=>import("./Tasks-DvIvPr3h.js"),[])}});registerRenderer({type:"drawer",getComponent:function(){return __vitePreload(()=>import("./Drawer-DGnX1opq.js"),[])}});registerRenderer({type:"wrapper",getComponent:function(){return __vitePreload(()=>import("./Wrapper-N-vEWgHF.js"),[])}});registerRenderer({type:"iframe",getComponent:function(){return __vitePreload(()=>import("./IFrame-DnQGnSY8.js"),[])}});registerRenderer({type:"barcode",getComponent:function(){return __vitePreload(()=>import("./BarCode-vVV2aVQ6.js"),[])}});registerRenderer({type:"qrcode",alias:["qr-code"],getComponent:function(){return __vitePreload(()=>import("./QRCode-CkwbyKSV.js"),[])}});registerRenderer({type:"icon",getComponent:function(){return __vitePreload(()=>import("./Icon-CyvJZ4bP.js"),[])}});registerRenderer({type:"carousel",getComponent:function(){return __vitePreload(()=>import("./Carousel-It56Muy1.js"),[])}});registerRenderer({type:"anchor-nav",getComponent:function(){return __vitePreload(()=>import("./AnchorNav-Z7zp0Ddr.js"),[])}});registerRenderer({type:"steps",getComponent:function(){return __vitePreload(()=>import("./Steps-CJeFnYiU.js"),[])}});registerRenderer({type:"timeline",getComponent:function(){return __vitePreload(()=>import("./Timeline-myWoOcvB.js"),[])}});registerRenderer({type:"markdown",getComponent:function(){return __vitePreload(()=>import("./Markdown-CTltP-rv.js"),[])}});registerRenderer({type:"table-view",getComponent:function(){return __vitePreload(()=>import("./TableView-DfNj4R__.js"),[])}});registerRenderer({type:"code",getComponent:function(){return __vitePreload(()=>import("./Code-D53yvLm0.js"),[])}});registerRenderer({type:"web-component",getComponent:function(){return __vitePreload(()=>import("./WebComponent-BZq--wmL.js"),[])}});registerRenderer({type:"grid-nav",getComponent:function(){return __vitePreload(()=>import("./GridNav-BFd6qoWK.js"),[])}});registerRenderer({type:"tooltip-wrapper",getComponent:function(){return __vitePreload(()=>import("./TooltipWrapper-Dc3BvnPz.js"),[])}});registerRenderer({type:"tag",getComponent:function(){return __vitePreload(()=>import("./Tag-CVEDykkG.js"),[])}});registerRenderer({type:"table2",getComponent:function(){return __vitePreload(()=>import("./index-COFmONFF.js"),__vite__mapDeps([25,26]))}});registerRenderer({type:"column-toggler",getComponent:function(){return __vitePreload(()=>import("./ColumnToggler-B-qSUVJW.js"),[])}});registerRenderer({type:"words",getComponent:function(){return __vitePreload(()=>import("./Words-CvprX3LU.js"),[])}});registerRenderer({type:"tags",getComponent:function(){return __vitePreload(()=>import("./Words-CvprX3LU.js"),[])}});registerRenderer({type:"password",getComponent:function(){return __vitePreload(()=>import("./Password-Bg0oHiVD.js"),[])}});registerRenderer({type:"date-range",getComponent:function(){return __vitePreload(()=>import("./DateRange-BTxljG-h.js"),[])}});registerRenderer({type:"multiline-text",getComponent:function(){return __vitePreload(()=>import("./MultilineText-CoG_Aazi.js"),[])}});registerRenderer({type:"office-viewer",getComponent:function(){return __vitePreload(()=>import("./OfficeViewer-3Zx4Gbe1.js"),[])}});registerRenderer({type:"pdf-viewer",getComponent:function(){return __vitePreload(()=>import("./PdfViewer-nV-ff52u.js"),[])}});registerRenderer({type:"amis",getComponent:function(){return __vitePreload(()=>import("./AMIS-fT5j1G0j.js"),[])}});class CustomAxiosInstance{constructor(eme){l6e(this,"instance");this.instance=axios$5.create(eme),this.setInterceptor()}setInterceptor(){this.instance.interceptors.request.use(async eme=>{const $P={...eme},tme=Token().value;return $P.headers.Authorization=`Bearer ${tme}`,$P.headers.locale=localStorage.getItem(getCacheKey("locale")),$P},eme=>{var $P,tme;return{data:{status:1,msg:((tme=($P=eme.response)==null?void 0:$P.data)==null?void 0:tme.message)||eme.message}}}),this.instance.interceptors.response.use(async eme=>{const{status:$P}=eme;if($P===200||$P<300||$P===304){const tme=eme.data;return tme.status===0?(tme!=null&&tme.msg&&(tme==null?void 0:tme.doNotDisplayToast)==0&&msgHandler(tme.msg,()=>staticMethods$1.success(tme.msg)),tme):(tme!=null&&tme.msg&&(tme==null?void 0:tme.doNotDisplayToast)==0&&msgHandler(tme.msg,()=>staticMethods$1.error(tme.msg)),(tme==null?void 0:tme.code)==401&&!inLoginPage()&&(Token().clear(),goToLoginPage()),await attachmentAdpator(eme,()=>""))}return eme},eme=>{var tme,ame,nme,rme;const $P=((ame=(tme=eme.response)==null?void 0:tme.data)==null?void 0:ame.message)||eme.message;return $P?(staticMethods.error({message:((rme=(nme=eme.response)==null?void 0:nme.data)==null?void 0:rme.exception)||"",description:$P}),{data:{status:1,msg:""}}):{data:{status:1,msg:$P}}})}}const config={baseURL:window.$adminApiPrefix||"/admin-api",proxyURL:"http://owl-admin.localed.top",changeOrigin:!0},request$1=new CustomAxiosInstance(config).instance,initPageSchema=(x_,eme)=>eme?request$1.get("/page_schema?sign="+eme):request$1.get(x_),amisRequest=(x_,eme,$P)=>request$1[eme](x_,$P),fetchSettings=()=>request$1.get("/_settings"),saveSettings=x_=>request$1.post("/_settings",x_),fetchLogin=x_=>request$1.post("/login",x_),fetchUserInfo=()=>request$1.get("/current-user"),fetchUserRoutes=()=>request$1.get("/menus"),fetchLogout=()=>request$1.get("/logout"),fetchCaptcha=()=>request$1.get("/captcha");function clipboard(x_){if(navigator.clipboard)return navigator.clipboard.writeText(x_).catch(function(nme){throw nme!==void 0?nme:new DOMException("The request is not allowed","NotAllowedError")});const eme=document.createElement("span");eme.textContent=x_,eme.style.whiteSpace="pre",document.body.appendChild(eme);const $P=window.getSelection(),tme=window.document.createRange();$P.removeAllRanges(),tme.selectNode(eme),$P.addRange(tme);let ame=!1;try{ame=window.document.execCommand("copy")}catch(nme){console.log("error",nme)}return $P.removeAllRanges(),window.document.body.removeChild(eme),ame?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}const useSetting=()=>{const x_=useSelector($P=>$P.settings);return{settings:x_,getSetting:($P="",tme="")=>$P?arrayGet(x_,$P,tme):x_}},AmisRender=({schema:x_,className:eme=""})=>{const $P=useHistory(),{getSetting:tme}=useSetting(),nme={zh_CN:"zh-CN",en:"en-US"}[tme("locale")||"zh_CN"]||"zh-CN",rme={locale:nme,location:$P.location},ime={enableAMISDebug:tme("show_development_tools"),fetcher:({url:ome,method:lme,data:sme})=>amisRequest(ome,lme,sme),updateLocation:(ome,lme)=>{lme||$P.push(ome)},jumpTo:ome=>{ome.startsWith("http")||ome.startsWith("https")?window.open(ome):$P.push(ome.startsWith("/")?ome:`/${ome}`)},copy:async ome=>{await clipboard(ome),staticMethods$1.success(rme.locale==="zh-CN"?"复制成功":"Copy success")},notify:(ome,lme,sme)=>{if(typeof lme!="string"&&(lme=sme==null?void 0:sme.body),!(lme!=null&&lme.length))return;msgHandler(lme,()=>staticMethods$1.open({content:lme,type:["info","success","error","warning","loading"].includes(ome)?ome:"info",duration:((sme==null?void 0:sme.timeout)||3e3)/1e3}))},isCurrentUrl:ome=>$P.location.pathname+$P.location.search===ome};return jsxs("div",{className:eme,children:[jsx(FinnalAlert,{locale:nme},"alert"),render$2(x_,rme,ime)]})};function invariant(x_,eme){if(!x_){var $P=new Error("loadable: "+eme);throw $P.framesToPop=1,$P.name="Invariant Violation",$P}}var Context$1=React__default.createContext(),LOADABLE_SHARED={initialChunks:{}},STATUS_PENDING="PENDING",STATUS_RESOLVED="RESOLVED",STATUS_REJECTED="REJECTED";function resolveConstructor(x_){return typeof x_=="function"?{requireAsync:x_,resolve:function(){},chunkName:function(){}}:x_}var withChunkExtractor=function(eme){var $P=function(ame){return React__default.createElement(Context$1.Consumer,null,function(nme){return React__default.createElement(eme,Object.assign({__chunkExtractor:nme},ame))})};return eme.displayName&&($P.displayName=eme.displayName+"WithChunkExtractor"),$P},identity$1=function(eme){return eme};function createLoadable(x_){var eme=x_.defaultResolveComponent,$P=eme===void 0?identity$1:eme,tme=x_.render,ame=x_.onLoad;function nme(ime,ome){ome===void 0&&(ome={});var lme=resolveConstructor(ime),sme={};function cme(bme){return ome.cacheKey?ome.cacheKey(bme):lme.resolve?lme.resolve(bme):"static"}function dme(bme,mme,vme){var gme=ome.resolveComponent?ome.resolveComponent(bme,mme):$P(bme);return hoistNonReactStatics(vme,gme,{preload:!0}),gme}var ume=function(mme){var vme=cme(mme),gme=sme[vme];return(!gme||gme.status===STATUS_REJECTED)&&(gme=lme.requireAsync(mme),gme.status=STATUS_PENDING,sme[vme]=gme,gme.then(function(){gme.status=STATUS_RESOLVED},function(yme){console.error("loadable-components: failed to asynchronously load component",{fileName:lme.resolve(mme),chunkName:lme.chunkName(mme),error:yme&&yme.message}),gme.status=STATUS_REJECTED})),gme},fme=function(bme){_inheritsLoose(mme,bme),mme.getDerivedStateFromProps=function(yme,_me){var $me=cme(yme);return _extends$4C({},_me,{cacheKey:$me,loading:_me.loading||_me.cacheKey!==$me})};function mme(gme){var yme;return yme=bme.call(this,gme)||this,yme.state={result:null,error:null,loading:!0,cacheKey:cme(gme)},invariant(!gme.__chunkExtractor||lme.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),gme.__chunkExtractor?(ome.ssr===!1||(lme.requireAsync(gme).catch(function(){return null}),yme.loadSync(),gme.__chunkExtractor.addChunk(lme.chunkName(gme))),_assertThisInitialized(yme)):(ome.ssr!==!1&&(lme.isReady&&lme.isReady(gme)||lme.chunkName&&LOADABLE_SHARED.initialChunks[lme.chunkName(gme)])&&yme.loadSync(),yme)}var vme=mme.prototype;return vme.componentDidMount=function(){this.mounted=!0;var yme=this.getCache();yme&&yme.status===STATUS_REJECTED&&this.setCache(),this.state.loading&&this.loadAsync()},vme.componentDidUpdate=function(yme,_me){_me.cacheKey!==this.state.cacheKey&&this.loadAsync()},vme.componentWillUnmount=function(){this.mounted=!1},vme.safeSetState=function(yme,_me){this.mounted&&this.setState(yme,_me)},vme.getCacheKey=function(){return cme(this.props)},vme.getCache=function(){return sme[this.getCacheKey()]},vme.setCache=function(yme){yme===void 0&&(yme=void 0),sme[this.getCacheKey()]=yme},vme.triggerOnLoad=function(){var yme=this;ame&&setTimeout(function(){ame(yme.state.result,yme.props)})},vme.loadSync=function(){if(this.state.loading)try{var yme=lme.requireSync(this.props),_me=dme(yme,this.props,hme);this.state.result=_me,this.state.loading=!1}catch($me){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:lme.resolve(this.props),chunkName:lme.chunkName(this.props),error:$me&&$me.message}),this.state.error=$me}},vme.loadAsync=function(){var yme=this,_me=this.resolveAsync();return _me.then(function($me){var Cme=dme($me,yme.props,hme);yme.safeSetState({result:Cme,loading:!1},function(){return yme.triggerOnLoad()})}).catch(function($me){return yme.safeSetState({error:$me,loading:!1})}),_me},vme.resolveAsync=function(){var yme=this.props;yme.__chunkExtractor,yme.forwardedRef;var _me=_objectWithoutPropertiesLoose$3(yme,["__chunkExtractor","forwardedRef"]);return ume(_me)},vme.render=function(){var yme=this.props,_me=yme.forwardedRef,$me=yme.fallback;yme.__chunkExtractor;var Cme=_objectWithoutPropertiesLoose$3(yme,["forwardedRef","fallback","__chunkExtractor"]),Sme=this.state,Eme=Sme.error,xme=Sme.loading,Tme=Sme.result;if(ome.suspense){var Ome=this.getCache()||this.loadAsync();if(Ome.status===STATUS_PENDING)throw this.loadAsync()}if(Eme)throw Eme;var Rme=$me||ome.fallback||null;return xme?Rme:tme({fallback:Rme,result:Tme,options:ome,props:_extends$4C({},Cme,{ref:_me})})},mme}(React__default.Component),pme=withChunkExtractor(fme),hme=React__default.forwardRef(function(bme,mme){return React__default.createElement(pme,Object.assign({forwardedRef:mme},bme))});return hme.displayName="Loadable",hme.preload=function(bme){hme.load(bme)},hme.load=function(bme){return ume(bme)},hme}function rme(ime,ome){return nme(ime,_extends$4C({},ome,{suspense:!0}))}return{loadable:nme,lazy:rme}}function defaultResolveComponent(x_){return x_.__esModule?x_.default:x_.default||x_}var _createLoadable=createLoadable({defaultResolveComponent,render:function(eme){var $P=eme.result,tme=eme.props;return React__default.createElement($P,tme)}}),loadable=_createLoadable.loadable,lazy=_createLoadable.lazy,_createLoadable$1=createLoadable({onLoad:function(eme,$P){eme&&$P.forwardedRef&&(typeof $P.forwardedRef=="function"?$P.forwardedRef(eme):$P.forwardedRef.current=eme)},render:function(eme){var $P=eme.result,tme=eme.props;return tme.children?tme.children($P):null}}),loadable$1=_createLoadable$1.loadable,lazy$1=_createLoadable$1.lazy,loadable$2=loadable;loadable$2.lib=loadable$1;var lazy$2=lazy;lazy$2.lib=lazy$1;function load(x_,eme){const $P=loadable$2(x_,eme);return $P.preload=x_.requireAsync||x_,$P}const lazyLoad=x_=>load(x_,{}),componentMount=x_=>{const eme=Object.assign({"../pages/404/index.tsx":()=>__vitePreload(()=>import("./index-vucKhbCq.js"),[]),"../pages/amis/index.tsx":()=>__vitePreload(()=>Promise.resolve().then(()=>index$5),void 0),"../pages/editor/index.tsx":()=>__vitePreload(()=>import("./index-B4UUQ8N9.js"),[]),"../pages/iframe/index.tsx":()=>__vitePreload(()=>import("./index-CxzlJZGd.js"),[]),"../pages/login/AmisLogin/index.tsx":()=>__vitePreload(()=>Promise.resolve().then(()=>index$4),void 0),"../pages/login/DefaultLogin/bg/index.tsx":()=>__vitePreload(()=>Promise.resolve().then(()=>index$3),void 0),"../pages/login/DefaultLogin/index.tsx":()=>__vitePreload(()=>Promise.resolve().then(()=>index$2),void 0),"../pages/login/index.tsx":()=>__vitePreload(()=>Promise.resolve().then(()=>index$1),void 0)}),$P=(tme,ame=[])=>tme.map(nme=>(nme.path&&!nme.children?isString$b(nme.component)&&(nme.component=lazyLoad(eme[`../pages/${nme.component}/index.tsx`])):isArray$w(nme.children)&&nme.children.length&&(nme.children=$P(nme.children,[...ame,nme])),nme.meta.parents=ame,nme));return $P(x_)},getFlattenRoutes=x_=>{const eme=[],$P=[...x_];for(;$P.length;){const tme=$P.pop();tme.path&&!tme.children?eme.push(tme):isArray$w(tme.children)&&tme.children.length&&$P.push(...tme.children)}return eme},staticRoutes=[],useRoute=()=>{const{routes:x_}=useSelector(rme=>rme),eme=useDispatch(),$P=useHistory(),tme=useRequest(fetchUserRoutes,{manual:!0,cacheKey:"app-dynamic-routes",onSuccess:async({data:rme})=>{isArray$w(rme)&&eme({type:"update-routes",payload:{routes:await componentMount([...staticRoutes,...rme])}})}});registerGlobalFunction("refreshRoutes",()=>tme.runAsync());const ame=reactExports.useMemo(()=>{var ime,ome;const rme=x_.find(lme=>lme.is_home==1)||x_[0];if(rme){const lme=((ome=(ime=rme==null?void 0:rme.children)==null?void 0:ime[0])==null?void 0:ome.path)||rme.path;return lme==null?void 0:lme.replace(/^\//,"")}return""},[x_]);return{routes:x_,defaultRoute:ame,getCurrentRoute:()=>getFlattenRoutes(x_).find(rme=>rme.path.split("?")[0]===$P.location.pathname.replace(/\/\d+/g,"/:id"))}},cache$1=()=>({get:x_=>{const eme=sessionStorage.getItem(x_);return eme?JSON.parse(eme):{}},set:(x_,eme)=>{sessionStorage.setItem(x_,JSON.stringify(eme))}});function AmisPage(){const x_=useHistory(),eme=x_.location.pathname+x_.location.search,{getCurrentRoute:$P}=useRoute(),tme=$P(),ame=eme+"-schema",[nme,rme]=reactExports.useState(cache$1().get(ame)),[ime,ome]=reactExports.useState(!1),lme=useRequest(initPageSchema,{cacheKey:ame,manual:!0,loadingDelay:700,onSuccess(sme){if(ime){rme({}),rme(sme.data),cache$1().set(ame,sme.data);return}JSON.stringify(sme.data)!=JSON.stringify(cache$1().get(ame))&&(rme(sme.data),cache$1().set(ame,sme.data))}});return registerGlobalFunction("refreshAmisPage",()=>(ome(!0),lme.runAsync(eme,tme==null?void 0:tme.page_sign))),useMount(()=>lme.run(eme,tme==null?void 0:tme.page_sign)),jsx(Spin,{spinning:lme.loading,className:"w-full",style:{minHeight:lme.loading?"500px":""},children:jsx(AmisRender,{schema:nme})})}const index$5=Object.freeze(Object.defineProperty({__proto__:null,default:AmisPage},Symbol.toStringTag,{value:"Module"})),AmisLogin=()=>jsx(AmisPage,{}),index$4=Object.freeze(Object.defineProperty({__proto__:null,default:AmisLogin},Symbol.toStringTag,{value:"Module"})),bg$1="_bg_dy9zw_1",waves="_waves_dy9zw_10",parallax="_parallax_dy9zw_26",styles$1={bg:bg$1,waves,"bottom-block":"_bottom-block_dy9zw_19",parallax,"move-forever":"_move-forever_dy9zw_1"},Bg$1=x_=>{const{getSetting:eme}=useSetting(),$P=eme("system_theme_setting.darkTheme"),tme=ome=>{const lme=$P?180:255;return`rgba(${lme}, ${lme}, ${lme}, ${ome/10})`},ame=generate$1(eme("system_theme_setting.themeColor","white"),{theme:$P?"dark":"default"}),nme=ame[1],rme=ame[6],ime=`linear-gradient(200deg, ${nme} 0%, ${rme} 100%)`;return jsxs("div",{className:styles$1.bg,style:{background:ime},children:[jsxs("svg",{className:styles$1.waves,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 24 150 28",preserveAspectRatio:"none",shapeRendering:"auto",children:[jsx("defs",{children:jsx("path",{id:"gentle-wave",d:"M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z"})}),jsxs("g",{className:styles$1.parallax,children:[jsx("use",{xlinkHref:"#gentle-wave",x:"48",y:"0",fill:tme(7)}),jsx("use",{xlinkHref:"#gentle-wave",x:"48",y:"3",fill:tme(5)}),jsx("use",{xlinkHref:"#gentle-wave",x:"48",y:"5",fill:tme(3)}),jsx("use",{xlinkHref:"#gentle-wave",x:"48",y:"7",fill:tme(10)})]})]}),jsx("div",{className:styles$1["bottom-block"],style:{background:tme(10)}}),x_.children]})},index$3=Object.freeze(Object.defineProperty({__proto__:null,default:Bg$1},Symbol.toStringTag,{value:"Module"})),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(x_,eme,$P,tme="")=>{const ame=x_.split(":");if(x_.slice(0,1)==="@"){if(ame.length<2||ame.length>3)return null;tme=ame.shift().slice(1)}if(ame.length>3||!ame.length)return null;if(ame.length>1){const ime=ame.pop(),ome=ame.pop(),lme={provider:ame.length>0?ame[0]:tme,prefix:ome,name:ime};return eme&&!validateIconName(lme)?null:lme}const nme=ame[0],rme=nme.split("-");if(rme.length>1){const ime={provider:tme,prefix:rme.shift(),name:rme.join("-")};return eme&&!validateIconName(ime)?null:ime}if($P&&tme===""){const ime={provider:tme,prefix:"",name:nme};return eme&&!validateIconName(ime,$P)?null:ime}return null},validateIconName=(x_,eme)=>x_?!!((x_.provider===""||x_.provider.match(matchIconName))&&(eme&&x_.prefix===""||x_.prefix.match(matchIconName))&&x_.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(x_,eme){const $P={};!x_.hFlip!=!eme.hFlip&&($P.hFlip=!0),!x_.vFlip!=!eme.vFlip&&($P.vFlip=!0);const tme=((x_.rotate||0)+(eme.rotate||0))%4;return tme&&($P.rotate=tme),$P}function mergeIconData(x_,eme){const $P=mergeIconTransformations(x_,eme);for(const tme in defaultExtendedIconProps)tme in defaultIconTransformations?tme in x_&&!(tme in $P)&&($P[tme]=defaultIconTransformations[tme]):tme in eme?$P[tme]=eme[tme]:tme in x_&&($P[tme]=x_[tme]);return $P}function getIconsTree(x_,eme){const $P=x_.icons,tme=x_.aliases||Object.create(null),ame=Object.create(null);function nme(rme){if($P[rme])return ame[rme]=[];if(!(rme in ame)){ame[rme]=null;const ime=tme[rme]&&tme[rme].parent,ome=ime&&nme(ime);ome&&(ame[rme]=[ime].concat(ome))}return ame[rme]}return Object.keys($P).concat(Object.keys(tme)).forEach(nme),ame}function internalGetIconData(x_,eme,$P){const tme=x_.icons,ame=x_.aliases||Object.create(null);let nme={};function rme(ime){nme=mergeIconData(tme[ime]||ame[ime],nme)}return rme(eme),$P.forEach(rme),mergeIconData(x_,nme)}function parseIconSet(x_,eme){const $P=[];if(typeof x_!="object"||typeof x_.icons!="object")return $P;x_.not_found instanceof Array&&x_.not_found.forEach(ame=>{eme(ame,null),$P.push(ame)});const tme=getIconsTree(x_);for(const ame in tme){const nme=tme[ame];nme&&(eme(ame,internalGetIconData(x_,ame,nme)),$P.push(ame))}return $P}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(x_,eme){for(const $P in eme)if($P in x_&&typeof x_[$P]!=typeof eme[$P])return!1;return!0}function quicklyValidateIconSet(x_){if(typeof x_!="object"||x_===null)return null;const eme=x_;if(typeof eme.prefix!="string"||!x_.icons||typeof x_.icons!="object"||!checkOptionalProps(x_,optionalPropertyDefaults))return null;const $P=eme.icons;for(const ame in $P){const nme=$P[ame];if(!ame.match(matchIconName)||typeof nme.body!="string"||!checkOptionalProps(nme,defaultExtendedIconProps))return null}const tme=eme.aliases||Object.create(null);for(const ame in tme){const nme=tme[ame],rme=nme.parent;if(!ame.match(matchIconName)||typeof rme!="string"||!$P[rme]&&!tme[rme]||!checkOptionalProps(nme,defaultExtendedIconProps))return null}return eme}const dataStorage=Object.create(null);function newStorage(x_,eme){return{provider:x_,prefix:eme,icons:Object.create(null),missing:new Set}}function getStorage(x_,eme){const $P=dataStorage[x_]||(dataStorage[x_]=Object.create(null));return $P[eme]||($P[eme]=newStorage(x_,eme))}function addIconSet(x_,eme){return quicklyValidateIconSet(eme)?parseIconSet(eme,($P,tme)=>{tme?x_.icons[$P]=tme:x_.missing.add($P)}):[]}function addIconToStorage(x_,eme,$P){try{if(typeof $P.body=="string")return x_.icons[eme]={...$P},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(x_){return typeof x_=="boolean"&&(simpleNames=x_),simpleNames}function getIconData(x_){const eme=typeof x_=="string"?stringToIcon(x_,!0,simpleNames):x_;if(eme){const $P=getStorage(eme.provider,eme.prefix),tme=eme.name;return $P.icons[tme]||($P.missing.has(tme)?null:void 0)}}function addIcon(x_,eme){const $P=stringToIcon(x_,!0,simpleNames);if(!$P)return!1;const tme=getStorage($P.provider,$P.prefix);return addIconToStorage(tme,$P.name,eme)}function addCollection(x_,eme){if(typeof x_!="object")return!1;if(typeof eme!="string"&&(eme=x_.provider||""),simpleNames&&!eme&&!x_.prefix){let ame=!1;return quicklyValidateIconSet(x_)&&(x_.prefix="",parseIconSet(x_,(nme,rme)=>{rme&&addIcon(nme,rme)&&(ame=!0)})),ame}const $P=x_.prefix;if(!validateIconName({provider:eme,prefix:$P,name:"a"}))return!1;const tme=getStorage(eme,$P);return!!addIconSet(tme,x_)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(x_,eme,$P){if(eme===1)return x_;if($P=$P||100,typeof x_=="number")return Math.ceil(x_*eme*$P)/$P;if(typeof x_!="string")return x_;const tme=x_.split(unitsSplit);if(tme===null||!tme.length)return x_;const ame=[];let nme=tme.shift(),rme=unitsTest.test(nme);for(;;){if(rme){const ime=parseFloat(nme);isNaN(ime)?ame.push(nme):ame.push(Math.ceil(ime*eme*$P)/$P)}else ame.push(nme);if(nme=tme.shift(),nme===void 0)return ame.join("");rme=!rme}}const isUnsetKeyword=x_=>x_==="unset"||x_==="undefined"||x_==="none";function iconToSVG(x_,eme){const $P={...defaultIconProps,...x_},tme={...defaultIconCustomisations,...eme},ame={left:$P.left,top:$P.top,width:$P.width,height:$P.height};let nme=$P.body;[$P,tme].forEach(fme=>{const pme=[],hme=fme.hFlip,bme=fme.vFlip;let mme=fme.rotate;hme?bme?mme+=2:(pme.push("translate("+(ame.width+ame.left).toString()+" "+(0-ame.top).toString()+")"),pme.push("scale(-1 1)"),ame.top=ame.left=0):bme&&(pme.push("translate("+(0-ame.left).toString()+" "+(ame.height+ame.top).toString()+")"),pme.push("scale(1 -1)"),ame.top=ame.left=0);let vme;switch(mme<0&&(mme-=Math.floor(mme/4)*4),mme=mme%4,mme){case 1:vme=ame.height/2+ame.top,pme.unshift("rotate(90 "+vme.toString()+" "+vme.toString()+")");break;case 2:pme.unshift("rotate(180 "+(ame.width/2+ame.left).toString()+" "+(ame.height/2+ame.top).toString()+")");break;case 3:vme=ame.width/2+ame.left,pme.unshift("rotate(-90 "+vme.toString()+" "+vme.toString()+")");break}mme%2===1&&(ame.left!==ame.top&&(vme=ame.left,ame.left=ame.top,ame.top=vme),ame.width!==ame.height&&(vme=ame.width,ame.width=ame.height,ame.height=vme)),pme.length&&(nme='<g transform="'+pme.join(" ")+'">'+nme+"</g>")});const rme=tme.width,ime=tme.height,ome=ame.width,lme=ame.height;let sme,cme;rme===null?(cme=ime===null?"1em":ime==="auto"?lme:ime,sme=calculateSize(cme,ome/lme)):(sme=rme==="auto"?ome:rme,cme=ime===null?calculateSize(sme,lme/ome):ime==="auto"?lme:ime);const dme={},ume=(fme,pme)=>{isUnsetKeyword(pme)||(dme[fme]=pme.toString())};return ume("width",sme),ume("height",cme),dme.viewBox=ame.left.toString()+" "+ame.top.toString()+" "+ome.toString()+" "+lme.toString(),{attributes:dme,body:nme}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(x_,eme=randomPrefix){const $P=[];let tme;for(;tme=regex.exec(x_);)$P.push(tme[1]);if(!$P.length)return x_;const ame="suffix"+(Math.random()*16777216|Date.now()).toString(16);return $P.forEach(nme=>{const rme=typeof eme=="function"?eme(nme):eme+(counter++).toString(),ime=nme.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");x_=x_.replace(new RegExp('([#;"])('+ime+')([")]|\\.[a-z])',"g"),"$1"+rme+ame+"$3")}),x_=x_.replace(new RegExp(ame,"g"),""),x_}const storage=Object.create(null);function setAPIModule(x_,eme){storage[x_]=eme}function getAPIModule(x_){return storage[x_]||storage[""]}function createAPIConfig(x_){let eme;if(typeof x_.resources=="string")eme=[x_.resources];else if(eme=x_.resources,!(eme instanceof Array)||!eme.length)return null;return{resources:eme,path:x_.path||"/",maxURL:x_.maxURL||500,rotate:x_.rotate||750,timeout:x_.timeout||5e3,random:x_.random===!0,index:x_.index||0,dataAfterTimeout:x_.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(x_,eme){const $P=createAPIConfig(eme);return $P===null?!1:(configStorage[x_]=$P,!0)}function getAPIConfig(x_){return configStorage[x_]}const detectFetch=()=>{let x_;try{if(x_=fetch,typeof x_=="function")return x_}catch{}};let fetchModule=detectFetch();function calculateMaxLength(x_,eme){const $P=getAPIConfig(x_);if(!$P)return 0;let tme;if(!$P.maxURL)tme=0;else{let ame=0;$P.resources.forEach(rme=>{ame=Math.max(ame,rme.length)});const nme=eme+".json?icons=";tme=$P.maxURL-ame-$P.path.length-nme.length}return tme}function shouldAbort(x_){return x_===404}const prepare=(x_,eme,$P)=>{const tme=[],ame=calculateMaxLength(x_,eme),nme="icons";let rme={type:nme,provider:x_,prefix:eme,icons:[]},ime=0;return $P.forEach((ome,lme)=>{ime+=ome.length+1,ime>=ame&&lme>0&&(tme.push(rme),rme={type:nme,provider:x_,prefix:eme,icons:[]},ime=ome.length),rme.icons.push(ome)}),tme.push(rme),tme};function getPath(x_){if(typeof x_=="string"){const eme=getAPIConfig(x_);if(eme)return eme.path}return"/"}const send=(x_,eme,$P)=>{if(!fetchModule){$P("abort",424);return}let tme=getPath(eme.provider);switch(eme.type){case"icons":{const nme=eme.prefix,ime=eme.icons.join(","),ome=new URLSearchParams({icons:ime});tme+=nme+".json?"+ome.toString();break}case"custom":{const nme=eme.uri;tme+=nme.slice(0,1)==="/"?nme.slice(1):nme;break}default:$P("abort",400);return}let ame=503;fetchModule(x_+tme).then(nme=>{const rme=nme.status;if(rme!==200){setTimeout(()=>{$P(shouldAbort(rme)?"abort":"next",rme)});return}return ame=501,nme.json()}).then(nme=>{if(typeof nme!="object"||nme===null){setTimeout(()=>{nme===404?$P("abort",nme):$P("next",ame)});return}setTimeout(()=>{$P("success",nme)})}).catch(()=>{$P("next",ame)})},fetchAPIModule={prepare,send};function sortIcons(x_){const eme={loaded:[],missing:[],pending:[]},$P=Object.create(null);x_.sort((ame,nme)=>ame.provider!==nme.provider?ame.provider.localeCompare(nme.provider):ame.prefix!==nme.prefix?ame.prefix.localeCompare(nme.prefix):ame.name.localeCompare(nme.name));let tme={provider:"",prefix:"",name:""};return x_.forEach(ame=>{if(tme.name===ame.name&&tme.prefix===ame.prefix&&tme.provider===ame.provider)return;tme=ame;const nme=ame.provider,rme=ame.prefix,ime=ame.name,ome=$P[nme]||($P[nme]=Object.create(null)),lme=ome[rme]||(ome[rme]=getStorage(nme,rme));let sme;ime in lme.icons?sme=eme.loaded:rme===""||lme.missing.has(ime)?sme=eme.missing:sme=eme.pending;const cme={provider:nme,prefix:rme,name:ime};sme.push(cme)}),eme}function removeCallback(x_,eme){x_.forEach($P=>{const tme=$P.loaderCallbacks;tme&&($P.loaderCallbacks=tme.filter(ame=>ame.id!==eme))})}function updateCallbacks(x_){x_.pendingCallbacksFlag||(x_.pendingCallbacksFlag=!0,setTimeout(()=>{x_.pendingCallbacksFlag=!1;const eme=x_.loaderCallbacks?x_.loaderCallbacks.slice(0):[];if(!eme.length)return;let $P=!1;const tme=x_.provider,ame=x_.prefix;eme.forEach(nme=>{const rme=nme.icons,ime=rme.pending.length;rme.pending=rme.pending.filter(ome=>{if(ome.prefix!==ame)return!0;const lme=ome.name;if(x_.icons[lme])rme.loaded.push({provider:tme,prefix:ame,name:lme});else if(x_.missing.has(lme))rme.missing.push({provider:tme,prefix:ame,name:lme});else return $P=!0,!0;return!1}),rme.pending.length!==ime&&($P||removeCallback([x_],nme.id),nme.callback(rme.loaded.slice(0),rme.missing.slice(0),rme.pending.slice(0),nme.abort))})}))}let idCounter$1=0;function storeCallback(x_,eme,$P){const tme=idCounter$1++,ame=removeCallback.bind(null,$P,tme);if(!eme.pending.length)return ame;const nme={id:tme,icons:eme,callback:x_,abort:ame};return $P.forEach(rme=>{(rme.loaderCallbacks||(rme.loaderCallbacks=[])).push(nme)}),ame}function listToIcons(x_,eme=!0,$P=!1){const tme=[];return x_.forEach(ame=>{const nme=typeof ame=="string"?stringToIcon(ame,eme,$P):ame;nme&&tme.push(nme)}),tme}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(x_,eme,$P,tme){const ame=x_.resources.length,nme=x_.random?Math.floor(Math.random()*ame):x_.index;let rme;if(x_.random){let _me=x_.resources.slice(0);for(rme=[];_me.length>1;){const $me=Math.floor(Math.random()*_me.length);rme.push(_me[$me]),_me=_me.slice(0,$me).concat(_me.slice($me+1))}rme=rme.concat(_me)}else rme=x_.resources.slice(nme).concat(x_.resources.slice(0,nme));const ime=Date.now();let ome="pending",lme=0,sme,cme=null,dme=[],ume=[];typeof tme=="function"&&ume.push(tme);function fme(){cme&&(clearTimeout(cme),cme=null)}function pme(){ome==="pending"&&(ome="aborted"),fme(),dme.forEach(_me=>{_me.status==="pending"&&(_me.status="aborted")}),dme=[]}function hme(_me,$me){$me&&(ume=[]),typeof _me=="function"&&ume.push(_me)}function bme(){return{startTime:ime,payload:eme,status:ome,queriesSent:lme,queriesPending:dme.length,subscribe:hme,abort:pme}}function mme(){ome="failed",ume.forEach(_me=>{_me(void 0,sme)})}function vme(){dme.forEach(_me=>{_me.status==="pending"&&(_me.status="aborted")}),dme=[]}function gme(_me,$me,Cme){const Sme=$me!=="success";switch(dme=dme.filter(Eme=>Eme!==_me),ome){case"pending":break;case"failed":if(Sme||!x_.dataAfterTimeout)return;break;default:return}if($me==="abort"){sme=Cme,mme();return}if(Sme){sme=Cme,dme.length||(rme.length?yme():mme());return}if(fme(),vme(),!x_.random){const Eme=x_.resources.indexOf(_me.resource);Eme!==-1&&Eme!==x_.index&&(x_.index=Eme)}ome="completed",ume.forEach(Eme=>{Eme(Cme)})}function yme(){if(ome!=="pending")return;fme();const _me=rme.shift();if(_me===void 0){if(dme.length){cme=setTimeout(()=>{fme(),ome==="pending"&&(vme(),mme())},x_.timeout);return}mme();return}const $me={status:"pending",resource:_me,callback:(Cme,Sme)=>{gme($me,Cme,Sme)}};dme.push($me),lme++,cme=setTimeout(yme,x_.rotate),$P(_me,eme,$me.callback)}return setTimeout(yme),bme}function initRedundancy(x_){const eme={...defaultConfig,...x_};let $P=[];function tme(){$P=$P.filter(ime=>ime().status==="pending")}function ame(ime,ome,lme){const sme=sendQuery(eme,ime,ome,(cme,dme)=>{tme(),lme&&lme(cme,dme)});return $P.push(sme),sme}function nme(ime){return $P.find(ome=>ime(ome))||null}return{query:ame,find:nme,setIndex:ime=>{eme.index=ime},getIndex:()=>eme.index,cleanup:tme}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(x_){if(!redundancyCache[x_]){const eme=getAPIConfig(x_);if(!eme)return;const $P=initRedundancy(eme),tme={config:eme,redundancy:$P};redundancyCache[x_]=tme}return redundancyCache[x_]}function sendAPIQuery(x_,eme,$P){let tme,ame;if(typeof x_=="string"){const nme=getAPIModule(x_);if(!nme)return $P(void 0,424),emptyCallback$1;ame=nme.send;const rme=getRedundancyCache(x_);rme&&(tme=rme.redundancy)}else{const nme=createAPIConfig(x_);if(nme){tme=initRedundancy(nme);const rme=x_.resources?x_.resources[0]:"",ime=getAPIModule(rme);ime&&(ame=ime.send)}}return!tme||!ame?($P(void 0,424),emptyCallback$1):tme.query(eme,ame,$P)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(x_,eme){try{return x_.getItem(eme)}catch{}}function setStoredItem(x_,eme,$P){try{return x_.setItem(eme,$P),!0}catch{}}function removeStoredItem(x_,eme){try{x_.removeItem(eme)}catch{}}function setBrowserStorageItemsCount(x_,eme){return setStoredItem(x_,browserCacheCountKey,eme.toString())}function getBrowserStorageItemsCount(x_){return parseInt(getStoredItem(x_,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(x_){browserStorageStatus=x_}let _window=typeof window>"u"?{}:window;function getBrowserStorage(x_){const eme=x_+"Storage";try{if(_window&&_window[eme]&&typeof _window[eme].length=="number")return _window[eme]}catch{}browserStorageConfig[x_]=!1}function iterateBrowserStorage(x_,eme){const $P=getBrowserStorage(x_);if(!$P)return;const tme=getStoredItem($P,browserCacheVersionKey);if(tme!==browserCacheVersion){if(tme){const ime=getBrowserStorageItemsCount($P);for(let ome=0;ome<ime;ome++)removeStoredItem($P,browserCachePrefix+ome.toString())}setStoredItem($P,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount($P,0);return}const ame=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,nme=ime=>{const ome=browserCachePrefix+ime.toString(),lme=getStoredItem($P,ome);if(typeof lme=="string"){try{const sme=JSON.parse(lme);if(typeof sme=="object"&&typeof sme.cached=="number"&&sme.cached>ame&&typeof sme.provider=="string"&&typeof sme.data=="object"&&typeof sme.data.prefix=="string"&&eme(sme,ime))return!0}catch{}removeStoredItem($P,ome)}};let rme=getBrowserStorageItemsCount($P);for(let ime=rme-1;ime>=0;ime--)nme(ime)||(ime===rme-1?(rme--,setBrowserStorageItemsCount($P,rme)):browserStorageEmptyItems[x_].add(ime))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const x_ in browserStorageConfig)iterateBrowserStorage(x_,eme=>{const $P=eme.data,tme=eme.provider,ame=$P.prefix,nme=getStorage(tme,ame);if(!addIconSet(nme,$P).length)return!1;const rme=$P.lastModified||-1;return nme.lastModifiedCached=nme.lastModifiedCached?Math.min(nme.lastModifiedCached,rme):rme,!0})}}function updateLastModified(x_,eme){const $P=x_.lastModifiedCached;if($P&&$P>=eme)return $P===eme;if(x_.lastModifiedCached=eme,$P)for(const tme in browserStorageConfig)iterateBrowserStorage(tme,ame=>{const nme=ame.data;return ame.provider!==x_.provider||nme.prefix!==x_.prefix||nme.lastModified===eme});return!0}function storeInBrowserStorage(x_,eme){browserStorageStatus||initBrowserStorage();function $P(tme){let ame;if(!browserStorageConfig[tme]||!(ame=getBrowserStorage(tme)))return;const nme=browserStorageEmptyItems[tme];let rme;if(nme.size)nme.delete(rme=Array.from(nme).shift());else if(rme=getBrowserStorageItemsCount(ame),!setBrowserStorageItemsCount(ame,rme+1))return;const ime={cached:Math.floor(Date.now()/browserStorageHour),provider:x_.provider,data:eme};return setStoredItem(ame,browserCachePrefix+rme.toString(),JSON.stringify(ime))}eme.lastModified&&!updateLastModified(x_,eme.lastModified)||Object.keys(eme.icons).length&&(eme.not_found&&(eme=Object.assign({},eme),delete eme.not_found),$P("local")||$P("session"))}function emptyCallback(){}function loadedNewIcons(x_){x_.iconsLoaderFlag||(x_.iconsLoaderFlag=!0,setTimeout(()=>{x_.iconsLoaderFlag=!1,updateCallbacks(x_)}))}function loadNewIcons(x_,eme){x_.iconsToLoad?x_.iconsToLoad=x_.iconsToLoad.concat(eme).sort():x_.iconsToLoad=eme,x_.iconsQueueFlag||(x_.iconsQueueFlag=!0,setTimeout(()=>{x_.iconsQueueFlag=!1;const{provider:$P,prefix:tme}=x_,ame=x_.iconsToLoad;delete x_.iconsToLoad;let nme;if(!ame||!(nme=getAPIModule($P)))return;nme.prepare($P,tme,ame).forEach(ime=>{sendAPIQuery($P,ime,ome=>{if(typeof ome!="object")ime.icons.forEach(lme=>{x_.missing.add(lme)});else try{const lme=addIconSet(x_,ome);if(!lme.length)return;const sme=x_.pendingIcons;sme&&lme.forEach(cme=>{sme.delete(cme)}),storeInBrowserStorage(x_,ome)}catch(lme){console.error(lme)}loadedNewIcons(x_)})})}))}const loadIcons=(x_,eme)=>{const $P=listToIcons(x_,!0,allowSimpleNames()),tme=sortIcons($P);if(!tme.pending.length){let ome=!0;return eme&&setTimeout(()=>{ome&&eme(tme.loaded,tme.missing,tme.pending,emptyCallback)}),()=>{ome=!1}}const ame=Object.create(null),nme=[];let rme,ime;return tme.pending.forEach(ome=>{const{provider:lme,prefix:sme}=ome;if(sme===ime&&lme===rme)return;rme=lme,ime=sme,nme.push(getStorage(lme,sme));const cme=ame[lme]||(ame[lme]=Object.create(null));cme[sme]||(cme[sme]=[])}),tme.pending.forEach(ome=>{const{provider:lme,prefix:sme,name:cme}=ome,dme=getStorage(lme,sme),ume=dme.pendingIcons||(dme.pendingIcons=new Set);ume.has(cme)||(ume.add(cme),ame[lme][sme].push(cme))}),nme.forEach(ome=>{const{provider:lme,prefix:sme}=ome;ame[lme][sme].length&&loadNewIcons(ome,ame[lme][sme])}),eme?storeCallback(eme,tme,nme):emptyCallback};function mergeCustomisations(x_,eme){const $P={...x_};for(const tme in eme){const ame=eme[tme],nme=typeof ame;tme in defaultIconSizeCustomisations?(ame===null||ame&&(nme==="string"||nme==="number"))&&($P[tme]=ame):nme===typeof $P[tme]&&($P[tme]=tme==="rotate"?ame%4:ame)}return $P}const separator=/[\s,]+/;function flipFromString(x_,eme){eme.split(separator).forEach($P=>{switch($P.trim()){case"horizontal":x_.hFlip=!0;break;case"vertical":x_.vFlip=!0;break}})}function rotateFromString(x_,eme=0){const $P=x_.replace(/^-?[0-9.]*/,"");function tme(ame){for(;ame<0;)ame+=4;return ame%4}if($P===""){const ame=parseInt(x_);return isNaN(ame)?0:tme(ame)}else if($P!==x_){let ame=0;switch($P){case"%":ame=25;break;case"deg":ame=90}if(ame){let nme=parseFloat(x_.slice(0,x_.length-$P.length));return isNaN(nme)?0:(nme=nme/ame,nme%1===0?tme(nme):0)}}return eme}function iconToHTML(x_,eme){let $P=x_.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const tme in eme)$P+=" "+tme+'="'+eme[tme]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+$P+">"+x_+"</svg>"}function encodeSVGforURL(x_){return x_.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData(x_){return"data:image/svg+xml,"+encodeSVGforURL(x_)}function svgToURL(x_){return'url("'+svgToData(x_)+'")'}let policy;function createPolicy(){try{policy=window.trustedTypes.createPolicy("iconify",{createHTML:x_=>x_})}catch{policy=null}}function cleanUpInnerHTML(x_){return policy===void 0&&createPolicy(),policy?policy.createHTML(x_):x_}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={WebkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const x_ in propsToAddTo){const eme=propsToAddTo[x_];for(const $P in propsToAdd)eme[x_+$P]=propsToAdd[$P]}const inlineDefaults={...defaultExtendedIconCustomisations,inline:!0};function fixSize(x_){return x_+(x_.match(/^[-0-9.]+$/)?"px":"")}const render$1=(x_,eme,$P,tme)=>{const ame=$P?inlineDefaults:defaultExtendedIconCustomisations,nme=mergeCustomisations(ame,eme),rme=eme.mode||"svg",ime={},ome=eme.style||{},lme={...rme==="svg"?svgDefaults:{},ref:tme};for(let bme in eme){const mme=eme[bme];if(mme!==void 0)switch(bme){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":nme[bme]=mme===!0||mme==="true"||mme===1;break;case"flip":typeof mme=="string"&&flipFromString(nme,mme);break;case"color":ime.color=mme;break;case"rotate":typeof mme=="string"?nme[bme]=rotateFromString(mme):typeof mme=="number"&&(nme[bme]=mme);break;case"ariaHidden":case"aria-hidden":mme!==!0&&mme!=="true"&&delete lme["aria-hidden"];break;default:ame[bme]===void 0&&(lme[bme]=mme)}}const sme=iconToSVG(x_,nme),cme=sme.attributes;if(nme.inline&&(ime.verticalAlign="-0.125em"),rme==="svg"){lme.style={...ime,...ome},Object.assign(lme,cme);let bme=0,mme=eme.id;return typeof mme=="string"&&(mme=mme.replace(/-/g,"_")),lme.dangerouslySetInnerHTML={__html:cleanUpInnerHTML(replaceIDs(sme.body,mme?()=>mme+"ID"+bme++:"iconifyReact"))},React__default.createElement("svg",lme)}const{body:dme,width:ume,height:fme}=x_,pme=rme==="mask"||(rme==="bg"?!1:dme.indexOf("currentColor")!==-1),hme=iconToHTML(dme,{...cme,width:ume+"",height:fme+""});return lme.style={...ime,"--svg":svgToURL(hme),width:fixSize(cme.width),height:fixSize(cme.height),...commonProps,...pme?monotoneProps:coloredProps,...ome},React__default.createElement("span",lme)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const x_=window;if(x_.IconifyPreload!==void 0){const eme=x_.IconifyPreload,$P="Invalid IconifyPreload syntax.";typeof eme=="object"&&eme!==null&&(eme instanceof Array?eme:[eme]).forEach(tme=>{try{(typeof tme!="object"||tme===null||tme instanceof Array||typeof tme.icons!="object"||typeof tme.prefix!="string"||!addCollection(tme))&&console.error($P)}catch{console.error($P)}})}if(x_.IconifyProviders!==void 0){const eme=x_.IconifyProviders;if(typeof eme=="object"&&eme!==null)for(let $P in eme){const tme="IconifyProviders["+$P+"] is invalid.";try{const ame=eme[$P];if(typeof ame!="object"||!ame||ame.resources===void 0)continue;addAPIProvider($P,ame)||console.error(tme)}catch{console.error(tme)}}}}class IconComponent extends React__default.Component{constructor(eme){super(eme),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(eme){this.state.icon!==eme&&this.setState({icon:eme})}_checkIcon(eme){const $P=this.state,tme=this.props.icon;if(typeof tme=="object"&&tme!==null&&typeof tme.body=="string"){this._icon="",this._abortLoading(),(eme||$P.icon===null)&&this._setData({data:tme});return}let ame;if(typeof tme!="string"||(ame=stringToIcon(tme,!1,!0))===null){this._abortLoading(),this._setData(null);return}const nme=getIconData(ame);if(!nme){(!this._loading||this._loading.name!==tme)&&(this._abortLoading(),this._icon="",this._setData(null),nme!==null&&(this._loading={name:tme,abort:loadIcons([ame],this._checkIcon.bind(this,!1))}));return}if(this._icon!==tme||$P.icon===null){this._abortLoading(),this._icon=tme;const rme=["iconify"];ame.prefix!==""&&rme.push("iconify--"+ame.prefix),ame.provider!==""&&rme.push("iconify--"+ame.provider),this._setData({data:nme,classes:rme}),this.props.onLoad&&this.props.onLoad(tme)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(eme){eme.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const eme=this.props,$P=this.state.icon;if($P===null)return eme.children?eme.children:React__default.createElement("span",{});let tme=eme;return $P.classes&&(tme={...eme,className:(typeof eme.className=="string"?eme.className+" ":"")+$P.classes.join(" ")}),render$1({...defaultIconProps,...$P.data},tme,eme._inline,eme._ref)}}const Icon=React__default.forwardRef(function(eme,$P){const tme={...eme,_ref:$P,_inline:!1};return React__default.createElement(IconComponent,tme)});React__default.forwardRef(function(eme,$P){const tme={...eme,_ref:$P,_inline:!0};return React__default.createElement(IconComponent,tme)});const getDefaultStorage=x_=>{if(!isSSR)return localStorage.getItem(x_)};function useStorage(x_,eme){const[$P,tme]=reactExports.useState(getDefaultStorage(x_)||eme),ame=rme=>{isSSR||(localStorage.setItem(x_,rme),rme!==$P&&tme(rme))},nme=()=>{isSSR||localStorage.removeItem(x_)};return reactExports.useEffect(()=>{const rme=localStorage.getItem(x_);rme&&tme(rme)},[]),[$P,ame,nme]}const zh_CN$7={login:{title:"登录",username:"用户名",password:"密码",captcha:"验证码",username_required:"请输入用户名",password_required:"请输入密码",captcha_required:"请输入验证码",remember_me:"记住密码"},not_found:{title:"抱歉，您访问的页面不存在。",back_home:"返回首页"},theme_setting:{title:"主题配置",preinstall:"预设",theme_color:"主题色",layout_mode:"布局模式",layout_mode_default:"默认",layout_mode_top:"顶部菜单",layout_mode_top_mix:"上下布局",layout_mode_double:"双栏",need_save:"当前配置未保存",save_btn:"保存配置",cancel_btn:"取消",save_success:"保存成功",login_template:"登录页模板",default:"默认",top_theme:"顶部菜单主题",sider_theme:"侧边栏主题",light:"亮色",dark:"暗色",footer:"底部",breadcrumb:"面包屑",tab:"Tab栏",tab_icon:"Tab图标",page_content:"页面内容",animate_in:"入场动画",animate_in_alpha:"渐显",animate_in_left:"左侧进入",animate_in_right:"右侧进入",animate_in_top:"顶部进入",animate_in_bottom:"底部进入",animate_in_scale:"放大",animate_in_scaleBig:"缩小",animate_in_scaleX:"水平缩放",animate_in_scaleY:"垂直缩放",animate_out:"离场动画",animate_out_alpha:"渐隐",animate_out_left:"左侧退出",animate_out_right:"右侧退出",animate_out_top:"顶部退出",animate_out_bottom:"底部退出",animate_out_scale:"缩小",animate_out_scaleBig:"放大",animate_out_scaleX:"水平缩放",animate_out_scaleY:"垂直缩放",keep_alive:"全局页面缓存",dark_theme:"深色主题",accordion_menu:"手风琴菜单",locale:"语言",locale_en:"English",locale_zh_CN:"简体中文"},tabMenu:{refresh:"刷新",close:"关闭",closeOthers:"关闭其他",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeAll:"关闭所有"},amis_editor:{preview:"预览",edit:"编辑",editor:"可视化编辑器",get_php_code:"获取PHP代码"}},en$1={login:{title:"Login",username:"Username",password:"Password",captcha:"Captcha",username_required:"Please enter username",password_required:"Please enter password",captcha_required:"Please enter captcha",remember_me:"Remember me"},not_found:{title:"Sorry, the page you visited does not exist.",back_home:"Back Home"},theme_setting:{title:"Theme Setting",preinstall:"Preinstall",theme_color:"Theme Color",layout_mode:"Layout Mode",layout_mode_default:"Default",layout_mode_top:"Top Menu",layout_mode_top_mix:"Top & Bottom",layout_mode_double:"Double Column",need_save:"Current configuration is not saved",save_btn:"Save Configuration",cancel_btn:"Cancel",save_success:"Save success",login_template:"Login Template",default:"Default",top_theme:"Top Menu Theme",sider_theme:"Sider Theme",light:"Light",dark:"Dark",footer:"Footer",breadcrumb:"Breadcrumb",tab:"Tab",tab_icon:"Tab Icon",page_content:"Page Content",animate_in:"Animate In",animate_in_alpha:"Alpha",animate_in_left:"Left",animate_in_right:"Right",animate_in_top:"Top",animate_in_bottom:"Bottom",animate_in_scale:"Scale",animate_in_scaleBig:"ScaleBig",animate_in_scaleX:"ScaleX",animate_in_scaleY:"ScaleY",animate_out:"Animate Out",animate_out_alpha:"Alpha",animate_out_left:"Left",animate_out_right:"Right",animate_out_top:"Top",animate_out_bottom:"Bottom",animate_out_scale:"Scale",animate_out_scaleBig:"ScaleBig",animate_out_scaleX:"ScaleX",animate_out_scaleY:"ScaleY",keep_alive:"Global Keep Alive",dark_theme:"Dark Theme",accordion_menu:"Accordion Menu",locale:"Language",locale_en:"English",locale_zh_CN:"简体中文"},tabMenu:{refresh:"Refresh",close:"Close",closeOthers:"Close Others",closeLeft:"Close Left",closeRight:"Close Right",closeAll:"Close All"},amis_editor:{preview:"Preview",edit:"Edit",editor:"Visual Editor",get_php_code:"Get PHP Code"}},useLang=()=>{const{getSetting:x_}=useSetting(),eme={zh_CN:zh_CN$7,en:en$1};return{t:tme=>{const ame=x_("locale","zh_CN");return arrayGet(eme[ame],tme,tme)}}},DefaultLogin=()=>{const x_=reactExports.useRef(),{getSetting:eme,settings:$P}=useSetting(),{t:tme}=useLang(),[ame]=useStorage(getCacheKey("loginParams")),[nme,rme]=reactExports.useState(""),[ime,ome]=reactExports.useState(""),[lme,sme]=reactExports.useState(null),[cme,dme]=reactExports.useState(!1),ume=useRequest(fetchCaptcha,{manual:!0,throttleWait:1e3,onSuccess(hme){ome(hme.data.sys_captcha),sme(hme.data.captcha_img)}}),fme=useRequest(fetchLogin,{manual:!0,debounceWait:500,onBefore(){rme(""),dme(!0)},onSuccess(hme,bme){const{status:mme,data:vme}=hme;if(mme===0){bme=bme[0];const gme=bme.remember?{username:bme.username,password:bme.password}:{};window.$owl.afterLoginSuccess(gme,vme.token)}else dme(!1),rme(hme.data.msg),$P.login_captcha&&(ume.run(),x_.current.setFieldsValue({captcha:""}))}}),pme=hme=>{dme(!0),$P.login_captcha&&Object.assign(hme,{sys_captcha:ime}),fme.run(hme)};return reactExports.useEffect(()=>{$P.login_captcha&&ume.run()},[$P.login_captcha]),reactExports.useEffect(()=>{if(ame){const hme=JSON.parse(decodeURIComponent(window.atob(ame)));x_.current.setFieldsValue(hme)}x_.current.setFieldsValue({remember:!!ame})},[ame]),jsx(Bg$1,{children:jsx(Card$3,{className:"p-15px shadow-sm",children:jsxs("div",{className:"w-[320px] p-2",children:[jsxs("div",{className:"flex justify-between",children:[eme("logo")&&jsx(Image$2,{src:eme("logo"),width:42,preview:!1}),jsx("div",{className:"text-2xl font-normal",children:eme("app_name")})]}),jsx("div",{className:"h-[32px] flex items-center text-red-500 overflow-hidden",children:nme}),jsxs(Form$3,{ref:x_,initialValues:{remember:!0},onFinish:pme,children:[jsx(Form$3.Item,{name:"username",rules:[{required:!0,message:tme("login.username_required")}],children:jsx(Input$1,{placeholder:tme("login.username"),prefix:jsx(Icon,{icon:"ant-design:user-outlined"})})}),jsx(Form$3.Item,{name:"password",rules:[{required:!0,message:tme("login.password_required")}],children:jsx(Input$1.Password,{placeholder:tme("login.password"),prefix:jsx(Icon,{icon:"ant-design:key-outlined"})})}),$P.login_captcha&&jsxs(Space,{children:[jsx(Form$3.Item,{name:"captcha",rules:[{required:!0,message:tme("login.captcha_required")}],children:jsx(Input$1,{name:"captcha",placeholder:tme("login.captcha"),prefix:jsx(Icon,{icon:"ant-design:edit-twotone"})})}),jsx(Form$3.Item,{children:jsx(Spin,{spinning:ume.loading,children:jsx(Image$2,{className:"border rounded cursor-pointer",src:lme||"",preview:!1,onClick:()=>ume.run(),width:100,height:32})})})]}),jsx(Form$3.Item,{name:"remember",valuePropName:"checked",children:jsxs(Checkbox$2,{children:[" ",tme("login.remember_me")," "]})}),jsx(Button$3,{loading:cme,className:"w-full",type:"primary",htmlType:"submit",children:tme("login.title")})]})]})})})},index$2=Object.freeze(Object.defineProperty({__proto__:null,default:DefaultLogin},Symbol.toStringTag,{value:"Module"})),useStore=()=>{const x_=useSelector(tme=>tme),eme=useDispatch();return{state:x_,getState:()=>x_,dispatch:eme}},setHtmlStyle=(x_,eme)=>document.documentElement.style.setProperty(x_,eme),darkThemeHandler=(x_=!1)=>{setHtmlStyle("--owl-body-bg",x_?"#1F1F1F":"#fafafa"),setHtmlStyle("--owl-main-bg",x_?"#141414":"#fff"),setHtmlStyle("--borders-radius-3","6px"),setHtmlStyle("--borderRadius","6px"),setHtmlStyle("--fonts-size-8","14px");let eme=["#141414","#1f1f1f","#262626","#434343","#595959","#8c8c8c","#bfbfbf","#e9e9e9","#f0f0f0","#f5f5f5","#ffffff"];x_&&eme.reverse(),eme.forEach(($P,tme)=>{setHtmlStyle(`--colors-neutral-text-${tme+1}`,$P),setHtmlStyle(`--colors-neutral-fill-${tme+1}`,$P),setHtmlStyle(`--colors-neutral-line-${tme+1}`,$P)})},useTheme=(x_=null)=>{x_||(x_=useStore());let eme=x_.getState().settings.system_theme_setting;const{antdToken:$P,setAntdToken:tme}=reactExports.useContext(GlobalContext),ame=ome=>{const lme=mergeObject(x_.getState().antdToken,ome);return typeof tme<"u"&&tme(JSON.parse(JSON.stringify(lme))),x_.dispatch({type:"update-antd-token",payload:{antdToken:lme}}),lme},nme=(ome,lme=!1)=>{if(!ome||typeof ome!="string")return;generate$1(ome,{theme:lme?"dark":"default"}).forEach((cme,dme)=>{setHtmlStyle(`--colors-brand-${10-dme}`,cme),setHtmlStyle(`--colors-link-${10-dme}`,cme)}),generate$1("#faad14",{theme:lme?"dark":"default"}).forEach((cme,dme)=>{setHtmlStyle(`--colors-warning-${10-dme}`,cme)}),generate$1("#f5222d",{theme:lme?"dark":"default"}).forEach((cme,dme)=>{setHtmlStyle(`--colors-error-${10-dme}`,cme)}),generate$1("#52c41a",{theme:lme?"dark":"default"}).forEach((cme,dme)=>{setHtmlStyle(`--colors-success-${10-dme}`,cme)}),generate$1("#1677ff",{theme:lme?"dark":"default"}).forEach((cme,dme)=>{setHtmlStyle(`--colors-info-${10-dme}`,cme),setHtmlStyle(`--colors-other-${10-dme}`,cme)}),ame({token:{colorPrimary:ome}})},rme=()=>{nme(eme==null?void 0:eme.themeColor,eme==null?void 0:eme.darkTheme),darkThemeHandler(eme==null?void 0:eme.darkTheme);const ome=(eme==null?void 0:eme.topTheme)=="dark"&&(eme==null?void 0:eme.layoutMode)!="double"&&!(eme!=null&&eme.darkTheme),lme=(cme,dme="#fff")=>cme?dme:"var(--colors-neutral-text-1)",sme={token:{colorPrimary:eme==null?void 0:eme.themeColor},components:{Layout:{headerBg:ome?"#001529":"var(--owl-main-bg)",headerColor:lme(ome)},Breadcrumb:{lastItemColor:lme(ome),itemColor:lme(ome),separatorColor:lme(ome),linkHoverColor:lme(ome)}}};return ame(sme)},ime=(ome=!1)=>{const lme=Object.assign({},x_.getState().settings.system_theme_setting,{darkTheme:ome});x_.dispatch({type:"update-settings",payload:{settings:{...x_.getState().settings,system_theme_setting:lme}}}),darkThemeHandler(ome)};return reactExports.useEffect(()=>{rme()},[eme]),{antdToken:$P,setToken:ame,setThemeColor:nme,setDarkTheme:ime,darkThemeHandler,refreshToken:rme}},Login=()=>{useTheme();const{t:x_}=useLang(),{getSetting:eme}=useSetting(),$P=eme("system_theme_setting.loginTemplate","default"),{defaultRoute:tme}=useRoute(),ame=useDispatch(),nme=useHistory(),rme=useRequest(fetchUserInfo,{manual:!0,onSuccess(ume){ame({type:"update-userInfo",payload:{userInfo:ume.data}})}}),[ime,ome,lme]=useStorage(getCacheKey("loginParams")),sme=()=>{let ume=window.location.hash.includes("?redirect=")?window.location.hash.split("?redirect=")[1]:tme;ume=="/login"&&(ume=tme),nme.replace(ume)};return registerGlobalFunction("afterLoginSuccess",async(ume,fme)=>{ume!=null&&ume.username&&(ume!=null&&ume.password)?ome(window.btoa(encodeURIComponent(JSON.stringify(ume)))):lme(),Token().set(fme),await rme.runAsync(),await window.$owl.refreshRoutes(),inLoginPage()&&sme()}),reactExports.useEffect(()=>{Token().value&&sme()},[]),useMount(()=>{if(inLoginPage()){let ume=x_("login.title");const fme=eme("layout.title");fme&&(ume=fme.replace(/%title%/g,ume)),document.title=ume}}),(ume=>{switch(ume){case"amis":return jsx(AmisLogin,{});default:return jsx(DefaultLogin,{})}})($P)},index$1=Object.freeze(Object.defineProperty({__proto__:null,default:Login},Symbol.toStringTag,{value:"Module"}));var reactActivation={exports:{}},index_min$2={exports:{}},flatten={},interopRequireDefault={exports:{}};(function(x_){function eme($P){return $P&&$P.__esModule?$P:{default:$P}}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports})(interopRequireDefault);var interopRequireDefaultExports=interopRequireDefault.exports,toConsumableArray={exports:{}},arrayWithoutHoles={exports:{}},arrayLikeToArray={exports:{}},hasRequiredArrayLikeToArray;function requireArrayLikeToArray(){return hasRequiredArrayLikeToArray||(hasRequiredArrayLikeToArray=1,function(x_){function eme($P,tme){(tme==null||tme>$P.length)&&(tme=$P.length);for(var ame=0,nme=Array(tme);ame<tme;ame++)nme[ame]=$P[ame];return nme}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(arrayLikeToArray)),arrayLikeToArray.exports}var hasRequiredArrayWithoutHoles;function requireArrayWithoutHoles(){return hasRequiredArrayWithoutHoles||(hasRequiredArrayWithoutHoles=1,function(x_){var eme=requireArrayLikeToArray();function $P(tme){if(Array.isArray(tme))return eme(tme)}x_.exports=$P,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(arrayWithoutHoles)),arrayWithoutHoles.exports}var iterableToArray={exports:{}},hasRequiredIterableToArray;function requireIterableToArray(){return hasRequiredIterableToArray||(hasRequiredIterableToArray=1,function(x_){function eme($P){if(typeof Symbol<"u"&&$P[Symbol.iterator]!=null||$P["@@iterator"]!=null)return Array.from($P)}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(iterableToArray)),iterableToArray.exports}var unsupportedIterableToArray={exports:{}},hasRequiredUnsupportedIterableToArray;function requireUnsupportedIterableToArray(){return hasRequiredUnsupportedIterableToArray||(hasRequiredUnsupportedIterableToArray=1,function(x_){var eme=requireArrayLikeToArray();function $P(tme,ame){if(tme){if(typeof tme=="string")return eme(tme,ame);var nme={}.toString.call(tme).slice(8,-1);return nme==="Object"&&tme.constructor&&(nme=tme.constructor.name),nme==="Map"||nme==="Set"?Array.from(tme):nme==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nme)?eme(tme,ame):void 0}}x_.exports=$P,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(unsupportedIterableToArray)),unsupportedIterableToArray.exports}var nonIterableSpread={exports:{}},hasRequiredNonIterableSpread;function requireNonIterableSpread(){return hasRequiredNonIterableSpread||(hasRequiredNonIterableSpread=1,function(x_){function eme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(nonIterableSpread)),nonIterableSpread.exports}var hasRequiredToConsumableArray;function requireToConsumableArray(){return hasRequiredToConsumableArray||(hasRequiredToConsumableArray=1,function(x_){var eme=requireArrayWithoutHoles(),$P=requireIterableToArray(),tme=requireUnsupportedIterableToArray(),ame=requireNonIterableSpread();function nme(rme){return eme(rme)||$P(rme)||tme(rme)||ame()}x_.exports=nme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(toConsumableArray)),toConsumableArray.exports}var isArray$4={},hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray$4;hasRequiredIsArray=1,Object.defineProperty(isArray$4,"__esModule",{value:!0}),isArray$4.default=void 0;var x_=function(tme){return tme instanceof Array},eme=x_;return isArray$4.default=eme,isArray$4}var hasRequiredFlatten;function requireFlatten(){if(hasRequiredFlatten)return flatten;hasRequiredFlatten=1;var x_=interopRequireDefaultExports;Object.defineProperty(flatten,"__esModule",{value:!0}),flatten.default=void 0;var eme=x_(requireToConsumableArray()),$P=x_(requireIsArray()),tme=function nme(rme){return rme.reduce(function(ime,ome){return[].concat((0,eme.default)(ime),(0,eme.default)((0,$P.default)(ome)?nme(ome):[ome]))},[])},ame=tme;return flatten.default=ame,flatten}var get$2={},isString$3={},hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString$3;hasRequiredIsString=1,Object.defineProperty(isString$3,"__esModule",{value:!0}),isString$3.default=x_;function x_(eme){return typeof eme=="string"}return isString$3}var isUndefined$2={},hasRequiredIsUndefined;function requireIsUndefined(){if(hasRequiredIsUndefined)return isUndefined$2;hasRequiredIsUndefined=1,Object.defineProperty(isUndefined$2,"__esModule",{value:!0}),isUndefined$2.default=void 0;var x_=function(tme){return typeof tme>"u"},eme=x_;return isUndefined$2.default=eme,isUndefined$2}var isNumber$1={},_isNaN={},hasRequired_isNaN;function require_isNaN(){if(hasRequired_isNaN)return _isNaN;hasRequired_isNaN=1,Object.defineProperty(_isNaN,"__esModule",{value:!0}),_isNaN.default=void 0;var x_=function(tme){return tme!==tme},eme=x_;return _isNaN.default=eme,_isNaN}var hasRequiredIsNumber;function requireIsNumber(){if(hasRequiredIsNumber)return isNumber$1;hasRequiredIsNumber=1;var x_=interopRequireDefaultExports;Object.defineProperty(isNumber$1,"__esModule",{value:!0}),isNumber$1.default=void 0;var eme=x_(require_isNaN()),$P=function(nme){return typeof nme=="number"&&!(0,eme.default)(nme)},tme=$P;return isNumber$1.default=tme,isNumber$1}var hasRequiredGet;function requireGet(){if(hasRequiredGet)return get$2;hasRequiredGet=1;var x_=interopRequireDefaultExports;Object.defineProperty(get$2,"__esModule",{value:!0}),get$2.default=ame;var eme=x_(requireIsString()),$P=x_(requireIsUndefined()),tme=x_(requireIsNumber());function ame(nme){var rme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ime=arguments.length>2?arguments[2]:void 0;try{(0,tme.default)(rme)&&(rme=String(rme));var ome=((0,eme.default)(rme)?rme.split("."):rme).reduce(function(lme,sme){return lme[sme]},nme);return(0,$P.default)(ome)?ime:ome}catch{return ime}}return get$2}var run={},isFunction$2={},hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction$2;hasRequiredIsFunction=1,Object.defineProperty(isFunction$2,"__esModule",{value:!0}),isFunction$2.default=void 0;var x_=function(tme){return typeof tme=="function"},eme=x_;return isFunction$2.default=eme,isFunction$2}var hasRequiredRun;function requireRun(){if(hasRequiredRun)return run;hasRequiredRun=1;var x_=interopRequireDefaultExports;Object.defineProperty(run,"__esModule",{value:!0}),run.default=void 0;var eme=x_(requireIsString()),$P=x_(requireIsFunction()),tme=x_(requireGet()),ame=function(ime){var ome=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];ome=(0,eme.default)(ome)?ome.split("."):ome;for(var lme=(0,tme.default)(ime,ome),sme=(0,tme.default)(ime,ome.slice(0,-1)),cme=arguments.length,dme=new Array(cme>2?cme-2:0),ume=2;ume<cme;ume++)dme[ume-2]=arguments[ume];return(0,$P.default)(lme)?lme.call.apply(lme,[sme].concat(dme)):lme},nme=ame;return run.default=nme,run}var debounce$1={},hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce$1;hasRequiredDebounce=1,Object.defineProperty(debounce$1,"__esModule",{value:!0}),debounce$1.default=void 0;var x_=function(tme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:16,nme;return function(){for(var rme=this,ime=arguments.length,ome=new Array(ime),lme=0;lme<ime;lme++)ome[lme]=arguments[lme];return clearTimeout(nme),nme=setTimeout(function(){tme.apply(rme,ome)},ame),nme}},eme=x_;return debounce$1.default=eme,debounce$1}var lib$4={exports:{}},implementation={exports:{}},gud,hasRequiredGud;function requireGud(){if(hasRequiredGud)return gud;hasRequiredGud=1;var x_="__global_unique_id__";return gud=function(){return commonjsGlobal$1[x_]=(commonjsGlobal$1[x_]||0)+1},gud}var hasRequiredImplementation;function requireImplementation(){return hasRequiredImplementation||(hasRequiredImplementation=1,function(x_,eme){eme.__esModule=!0;var $P=reactExports;ome($P);var tme=propTypesExports,ame=ome(tme),nme=requireGud(),rme=ome(nme),ime=requireWarning();ome(ime);function ome(bme){return bme&&bme.__esModule?bme:{default:bme}}function lme(bme,mme){if(!(bme instanceof mme))throw new TypeError("Cannot call a class as a function")}function sme(bme,mme){if(!bme)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mme&&(typeof mme=="object"||typeof mme=="function")?mme:bme}function cme(bme,mme){if(typeof mme!="function"&&mme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof mme);bme.prototype=Object.create(mme&&mme.prototype,{constructor:{value:bme,enumerable:!1,writable:!0,configurable:!0}}),mme&&(Object.setPrototypeOf?Object.setPrototypeOf(bme,mme):bme.__proto__=mme)}var dme=1073741823;function ume(bme,mme){return bme===mme?bme!==0||1/bme===1/mme:bme!==bme&&mme!==mme}function fme(bme){var mme=[];return{on:function(gme){mme.push(gme)},off:function(gme){mme=mme.filter(function(yme){return yme!==gme})},get:function(){return bme},set:function(gme,yme){bme=gme,mme.forEach(function(_me){return _me(bme,yme)})}}}function pme(bme){return Array.isArray(bme)?bme[0]:bme}function hme(bme,mme){var vme,gme,yme="__create-react-context-"+(0,rme.default)()+"__",_me=function(Cme){cme(Sme,Cme);function Sme(){var Eme,xme,Tme;lme(this,Sme);for(var Ome=arguments.length,Rme=Array(Ome),Nme=0;Nme<Ome;Nme++)Rme[Nme]=arguments[Nme];return Tme=(Eme=(xme=sme(this,Cme.call.apply(Cme,[this].concat(Rme))),xme),xme.emitter=fme(xme.props.value),Eme),sme(xme,Tme)}return Sme.prototype.getChildContext=function(){var xme;return xme={},xme[yme]=this.emitter,xme},Sme.prototype.componentWillReceiveProps=function(xme){if(this.props.value!==xme.value){var Tme=this.props.value,Ome=xme.value,Rme=void 0;ume(Tme,Ome)?Rme=0:(Rme=typeof mme=="function"?mme(Tme,Ome):dme,Rme|=0,Rme!==0&&this.emitter.set(xme.value,Rme))}},Sme.prototype.render=function(){return this.props.children},Sme}($P.Component);_me.childContextTypes=(vme={},vme[yme]=ame.default.object.isRequired,vme);var $me=function(Cme){cme(Sme,Cme);function Sme(){var Eme,xme,Tme;lme(this,Sme);for(var Ome=arguments.length,Rme=Array(Ome),Nme=0;Nme<Ome;Nme++)Rme[Nme]=arguments[Nme];return Tme=(Eme=(xme=sme(this,Cme.call.apply(Cme,[this].concat(Rme))),xme),xme.state={value:xme.getValue()},xme.onUpdate=function(Ime,Pme){var Mme=xme.observedBits|0;Mme&Pme&&xme.setState({value:xme.getValue()})},Eme),sme(xme,Tme)}return Sme.prototype.componentWillReceiveProps=function(xme){var Tme=xme.observedBits;this.observedBits=Tme??dme},Sme.prototype.componentDidMount=function(){this.context[yme]&&this.context[yme].on(this.onUpdate);var xme=this.props.observedBits;this.observedBits=xme??dme},Sme.prototype.componentWillUnmount=function(){this.context[yme]&&this.context[yme].off(this.onUpdate)},Sme.prototype.getValue=function(){return this.context[yme]?this.context[yme].get():bme},Sme.prototype.render=function(){return pme(this.props.children)(this.state.value)},Sme}($P.Component);return $me.contextTypes=(gme={},gme[yme]=ame.default.object,gme),{Provider:_me,Consumer:$me}}eme.default=hme,x_.exports=eme.default}(implementation,implementation.exports)),implementation.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(x_,eme){eme.__esModule=!0;var $P=reactExports,tme=rme($P),ame=requireImplementation(),nme=rme(ame);function rme(ime){return ime&&ime.__esModule?ime:{default:ime}}eme.default=tme.default.createContext||nme.default,x_.exports=eme.default}(lib$4,lib$4.exports)),lib$4.exports}var EventBus={},defineProperty$1={exports:{}},toPropertyKey={exports:{}},_typeof$2={exports:{}},hasRequired_typeof;function require_typeof(){return hasRequired_typeof||(hasRequired_typeof=1,function(x_){function eme($P){"@babel/helpers - typeof";return x_.exports=eme=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(tme){return typeof tme}:function(tme){return tme&&typeof Symbol=="function"&&tme.constructor===Symbol&&tme!==Symbol.prototype?"symbol":typeof tme},x_.exports.__esModule=!0,x_.exports.default=x_.exports,eme($P)}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(_typeof$2)),_typeof$2.exports}var toPrimitive={exports:{}},hasRequiredToPrimitive;function requireToPrimitive(){return hasRequiredToPrimitive||(hasRequiredToPrimitive=1,function(x_){var eme=require_typeof().default;function $P(tme,ame){if(eme(tme)!="object"||!tme)return tme;var nme=tme[Symbol.toPrimitive];if(nme!==void 0){var rme=nme.call(tme,ame||"default");if(eme(rme)!="object")return rme;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ame==="string"?String:Number)(tme)}x_.exports=$P,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(toPrimitive)),toPrimitive.exports}var hasRequiredToPropertyKey;function requireToPropertyKey(){return hasRequiredToPropertyKey||(hasRequiredToPropertyKey=1,function(x_){var eme=require_typeof().default,$P=requireToPrimitive();function tme(ame){var nme=$P(ame,"string");return eme(nme)=="symbol"?nme:nme+""}x_.exports=tme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(toPropertyKey)),toPropertyKey.exports}var hasRequiredDefineProperty;function requireDefineProperty(){return hasRequiredDefineProperty||(hasRequiredDefineProperty=1,function(x_){var eme=requireToPropertyKey();function $P(tme,ame,nme){return(ame=eme(ame))in tme?Object.defineProperty(tme,ame,{value:nme,enumerable:!0,configurable:!0,writable:!0}):tme[ame]=nme,tme}x_.exports=$P,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(defineProperty$1)),defineProperty$1.exports}var classCallCheck={exports:{}},hasRequiredClassCallCheck;function requireClassCallCheck(){return hasRequiredClassCallCheck||(hasRequiredClassCallCheck=1,function(x_){function eme($P,tme){if(!($P instanceof tme))throw new TypeError("Cannot call a class as a function")}x_.exports=eme,x_.exports.__esModule=!0,x_.exports.default=x_.exports}(classCallCheck)),classCallCheck.exports}var hasRequiredEventBus;function requireEventBus(){if(hasRequiredEventBus)return EventBus;hasRequiredEventBus=1;var x_=interopRequireDefaultExports;Object.defineProperty(EventBus,"__esModule",{value:!0}),EventBus.default=void 0;var eme=x_(requireDefineProperty()),$P=x_(requireClassCallCheck()),tme=x_(requireIsFunction()),ame=x_(requireIsUndefined());function nme(ome,lme){var sme=Object.keys(ome);if(Object.getOwnPropertySymbols){var cme=Object.getOwnPropertySymbols(ome);lme&&(cme=cme.filter(function(dme){return Object.getOwnPropertyDescriptor(ome,dme).enumerable})),sme.push.apply(sme,cme)}return sme}function rme(ome){for(var lme=1;lme<arguments.length;lme++){var sme=arguments[lme]!=null?arguments[lme]:{};lme%2?nme(Object(sme),!0).forEach(function(cme){(0,eme.default)(ome,cme,sme[cme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ome,Object.getOwnPropertyDescriptors(sme)):nme(Object(sme)).forEach(function(cme){Object.defineProperty(ome,cme,Object.getOwnPropertyDescriptor(sme,cme))})}return ome}var ime=function ome(){var lme=this;(0,$P.default)(this,ome),this.listeners={},this.getEventMap=function(sme){return lme.listeners[sme]||(lme.listeners[sme]=new Map),lme.listeners[sme]},this.on=function(sme,cme){var dme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ume=dme.once,fme=ume===void 0?!1:ume;return(0,tme.default)(cme)?(lme.getEventMap(sme).set(cme,fme?function(){cme.apply(void 0,arguments),lme.off(sme,cme)}:cme),lme):(console.error("[EventBus Error] listener is not a function"),lme)},this.once=function(sme,cme){var dme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return lme.on(sme,cme,rme(rme({},dme),{},{once:!0}))},this.off=function(sme,cme){var dme=lme.getEventMap(sme);return(0,ame.default)(cme)?dme.clear():dme.delete(cme),lme},this.emit=function(sme){for(var cme=arguments.length,dme=new Array(cme>1?cme-1:0),ume=1;ume<cme;ume++)dme[ume-1]=arguments[ume];return lme.getEventMap(sme).forEach(function(fme){return fme.apply(void 0,dme)})}};return EventBus.default=ime,EventBus}var nextTick={},hasRequiredNextTick;function requireNextTick(){if(hasRequiredNextTick)return nextTick;hasRequiredNextTick=1,Object.defineProperty(nextTick,"__esModule",{value:!0}),nextTick.default=void 0;var x_=function(tme){return Promise.resolve().then(tme)},eme=x_;return nextTick.default=eme,nextTick}var isExist={},isNull={},hasRequiredIsNull;function requireIsNull(){if(hasRequiredIsNull)return isNull;hasRequiredIsNull=1,Object.defineProperty(isNull,"__esModule",{value:!0}),isNull.default=void 0;var x_=function(tme){return tme===null},eme=x_;return isNull.default=eme,isNull}var hasRequiredIsExist;function requireIsExist(){if(hasRequiredIsExist)return isExist;hasRequiredIsExist=1;var x_=interopRequireDefaultExports;Object.defineProperty(isExist,"__esModule",{value:!0}),isExist.default=void 0;var eme=x_(requireIsUndefined()),$P=x_(requireIsNull()),tme=function(rme){return!((0,eme.default)(rme)||(0,$P.default)(rme))},ame=tme;return isExist.default=ame,isExist}var memoize$1={},hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize$1;hasRequiredMemoize=1,Object.defineProperty(memoize$1,"__esModule",{value:!0}),memoize$1.default=void 0;var x_=function(tme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nme=ame.disable,rme=nme===void 0?function(){return!1}:nme,ime=new Map,ome=function(sme){if(ime.has(sme))return ime.get(sme);for(var cme=arguments.length,dme=new Array(cme>1?cme-1:0),ume=1;ume<cme;ume++)dme[ume-1]=arguments[ume];var fme=tme.call.apply(tme,[this,sme].concat(dme));return rme.call(this,{cache:ime,key:sme,result:fme,drop:function(){return ime.delete(sme)}})||ime.set(sme,fme),fme};return ome.cache=ime,ome},eme=x_;return memoize$1.default=eme,memoize$1}var isObject$3={},hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject$3;hasRequiredIsObject=1;var x_=interopRequireDefaultExports;Object.defineProperty(isObject$3,"__esModule",{value:!0}),isObject$3.default=void 0;var eme=x_(require_typeof()),$P=x_(requireIsArray()),tme=x_(requireIsNull()),ame=function(ime){return(0,eme.default)(ime)==="object"&&!((0,$P.default)(ime)||(0,tme.default)(ime))},nme=ame;return isObject$3.default=nme,isObject$3}var value={},hasRequiredValue;function requireValue(){if(hasRequiredValue)return value;hasRequiredValue=1;var x_=interopRequireDefaultExports;Object.defineProperty(value,"__esModule",{value:!0}),value.default=void 0;var eme=x_(requireIsUndefined()),$P=x_(requireRun()),tme=function(){for(var rme=arguments.length,ime=new Array(rme),ome=0;ome<rme;ome++)ime[ome]=arguments[ome];return ime.reduce(function(lme,sme){return(0,eme.default)(lme)?(0,$P.default)(sme):(0,$P.default)(lme)},void 0)},ame=tme;return value.default=ame,value}var globalThis$1={},hasRequiredGlobalThis;function requireGlobalThis(){if(hasRequiredGlobalThis)return globalThis$1;hasRequiredGlobalThis=1;var x_=interopRequireDefaultExports;Object.defineProperty(globalThis$1,"__esModule",{value:!0}),globalThis$1.default=void 0;var eme=x_(require_typeof()),$P=function(){return typeof window<"u"?window:typeof self<"u"?self:typeof commonjsGlobal$1<"u"?commonjsGlobal$1:Function("return this")()},tme=$P(),ame=function(){return(typeof commonjsGlobal$1>"u"?"undefined":(0,eme.default)(commonjsGlobal$1))!=="object"||!commonjsGlobal$1||commonjsGlobal$1.Math!==Math||commonjsGlobal$1.Array!==Array?tme:commonjsGlobal$1},nme=ame(),rme=nme;return globalThis$1.default=rme,globalThis$1}var reactNodeKey={exports:{}},index_min$1={exports:{}},hasRequiredIndex_min;function requireIndex_min(){return hasRequiredIndex_min||(hasRequiredIndex_min=1,function(x_,eme){(function($P,tme){tme(eme,requireRun(),reactExports,requireIsFunction(),requireIsString(),requireGet())})(commonjsGlobal$1,function($P,tme,ame,nme,rme,ime){function ome(xme,Tme){for(var Ome=0;Ome<Tme.length;Ome++){var Rme=Tme[Ome];Rme.enumerable=Rme.enumerable||!1,Rme.configurable=!0,"value"in Rme&&(Rme.writable=!0),Object.defineProperty(xme,Rme.key,Rme)}}function lme(xme,Tme,Ome){return Tme in xme?Object.defineProperty(xme,Tme,{value:Ome,enumerable:!0,configurable:!0,writable:!0}):xme[Tme]=Ome,xme}function sme(xme){return(sme=Object.setPrototypeOf?Object.getPrototypeOf:function(Tme){return Tme.__proto__||Object.getPrototypeOf(Tme)})(xme)}function cme(xme,Tme){return(cme=Object.setPrototypeOf||function(Ome,Rme){return Ome.__proto__=Rme,Ome})(xme,Tme)}function dme(xme){if(xme===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xme}function ume(xme){var Tme=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var Ome,Rme,Nme,Ime,Pme=sme(xme);return Rme=Tme?(Ome=sme(this).constructor,Reflect.construct(Pme,arguments,Ome)):Pme.apply(this,arguments),Nme=this,!(Ime=Rme)||typeof Ime!="object"&&typeof Ime!="function"?dme(Nme):Ime}}function fme(xme){return function(Tme){if(Array.isArray(Tme))return pme(Tme)}(xme)||function(Tme){if(typeof Symbol<"u"&&Symbol.iterator in Object(Tme))return Array.from(Tme)}(xme)||function(Tme,Ome){if(Tme){if(typeof Tme=="string")return pme(Tme,Ome);var Rme=Object.prototype.toString.call(Tme).slice(8,-1);if(Rme==="Object"&&Tme.constructor&&(Rme=Tme.constructor.name),Rme==="Map"||Rme==="Set")return Array.from(Tme);if(Rme==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Rme))return pme(Tme,Ome)}}(xme)||function(){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 pme(xme,Tme){(Tme==null||Tme>xme.length)&&(Tme=xme.length);for(var Ome=0,Rme=new Array(Tme);Ome<Tme;Ome++)Rme[Ome]=xme[Ome];return Rme}function hme(){var xme=0,Tme=new Map;return function(Ome){var Rme=Tme.get(Ome);return Rme||(Rme=(++xme).toString(32),Tme.set(Ome,Rme)),Rme}}tme=tme&&Object.prototype.hasOwnProperty.call(tme,"default")?tme.default:tme,nme=nme&&Object.prototype.hasOwnProperty.call(nme,"default")?nme.default:nme,rme=rme&&Object.prototype.hasOwnProperty.call(rme,"default")?rme.default:rme,ime=ime&&Object.prototype.hasOwnProperty.call(ime,"default")?ime.default:ime;function bme(xme){var Tme,Ome,Rme,Nme=yme(ime(xme,"type.$$typeof",xme.type)),Ime=(Ome=ime(Tme=xme,"key")||Tme.index,Rme=ime(Tme,"memoizedProps._nk")||ime(Tme,"pendingProps._nk"),rme(Rme)&&gme.test(Rme)?"".concat(Rme,".").concat(Ome):Rme||Ome);return"".concat(Nme,",").concat(Ime)}function mme(xme){var Tme,Ome,Rme,Nme=Cme(xme.type),Ime=(Ome=ime(Tme=xme,"key")||Tme.index,Rme=ime(Tme,"props._nk"),rme(Rme)&&$me.test(Rme)?"".concat(Rme,".").concat(Ome):Rme||Ome);return"".concat(Nme,",").concat(Ime)}var vme,gme=/^iAr/,yme=hme(),_me=function(xme,Tme){var Ome,Rme,Nme=(Ome=function Ime(Pme){return Pme.return?[Pme].concat(fme(Ime(Pme.return))):[Pme]}(xme),Rme=Tme,Ome.map(function(Ime){var Pme=bme(Ime);return nme(Rme)?tme(Rme,void 0,Ime,Pme):Pme}).filter(Boolean).join("|"));return yme(Nme)},$me=/^iAr/,Cme=hme(),Sme=function(xme,Tme){var Ome,Rme,Nme=(Ome=function Ime(Pme){return Pme.__?[Pme].concat(fme(Ime(Pme.__))):[Pme]}(xme),Rme=Tme,Ome.map(function(Ime){var Pme=mme(Ime);return nme(Rme)?tme(Rme,void 0,Ime,Pme):Pme}).filter(Boolean).join("|"));return Cme(Nme)},Eme=function(){(function(Nme,Ime){if(typeof Ime!="function"&&Ime!==null)throw new TypeError("Super expression must either be null or a function");Nme.prototype=Object.create(Ime&&Ime.prototype,{constructor:{value:Nme,writable:!0,configurable:!0}}),Ime&&cme(Nme,Ime)})(Rme,ame.Component);var xme,Tme,Ome=ume(Rme);function Rme(){var Nme;(function(kme,Bme){if(!(kme instanceof Bme))throw new TypeError("Cannot call a class as a function")})(this,Rme);for(var Ime=arguments.length,Pme=new Array(Ime),Mme=0;Mme<Ime;Mme++)Pme[Mme]=arguments[Mme];return lme(dme(Nme=Ome.call.apply(Ome,[this].concat(Pme))),"key",null),lme(dme(Nme),"genKey",function(kme){switch(vme||((Nme._reactInternalFiber||Nme._reactInternals)&&(vme="React"),Nme.__v&&(vme="Preact")),vme){case"Preact":Nme.key=Sme(Nme.__v,kme);break;case"React":var Bme=Nme._reactInternalFiber||Nme._reactInternals;Nme.key=_me(Bme,kme)}return Nme.key}),Nme}return xme=Rme,(Tme=[{key:"render",value:function(){var Nme=this.props,Ime=(Nme.manualKey,Nme.children),Pme=Nme.prefix,Mme=Nme.onHandleNode;return tme(Ime,void 0,"".concat(Pme).concat(this.key||this.genKey(Mme)))}}])&&ome(xme.prototype,Tme),Rme}();lme(Eme,"defaultProps",{onHandleNode:void 0,manualKey:void 0,prefix:""}),$P.default=Eme,Object.defineProperty($P,"__esModule",{value:!0})})}(index_min$1,index_min$1.exports)),index_min$1.exports}var hasRequiredReactNodeKey;function requireReactNodeKey(){return hasRequiredReactNodeKey||(hasRequiredReactNodeKey=1,reactNodeKey.exports=requireIndex_min()),reactNodeKey.exports}(function(x_,eme){(function($P,tme){tme(eme,requireFlatten(),requireGet(),requireRun(),requireDebounce(),reactExports,requireIsFunction(),requireLib(),requireEventBus(),requireNextTick(),reactDomExports,requireIsString(),requireIsExist(),requireMemoize(),requireIsUndefined(),requireIsObject(),requireHoistNonReactStatics_cjs(),requireValue(),requireIsArray(),requireGlobalThis(),requireReactNodeKey())})(commonjsGlobal$1,function($P,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,a0e,hme,bme,mme,vme,gme,yme,_me){tme=tme&&Object.prototype.hasOwnProperty.call(tme,"default")?tme.default:tme,ame=ame&&Object.prototype.hasOwnProperty.call(ame,"default")?ame.default:ame,nme=nme&&Object.prototype.hasOwnProperty.call(nme,"default")?nme.default:nme,rme=rme&&Object.prototype.hasOwnProperty.call(rme,"default")?rme.default:rme;var $me="default"in ime?ime.default:ime;function Cme(Ebe,Cbe){var fbe,ybe=Object.keys(Ebe);return Object.getOwnPropertySymbols&&(fbe=Object.getOwnPropertySymbols(Ebe),Cbe&&(fbe=fbe.filter(function(Abe){return Object.getOwnPropertyDescriptor(Ebe,Abe).enumerable})),ybe.push.apply(ybe,fbe)),ybe}function Sme(Ebe){for(var Cbe=1;Cbe<arguments.length;Cbe++){var fbe=arguments[Cbe]!=null?arguments[Cbe]:{};Cbe%2?Cme(Object(fbe),!0).forEach(function(ybe){Ome(Ebe,ybe,fbe[ybe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ebe,Object.getOwnPropertyDescriptors(fbe)):Cme(Object(fbe)).forEach(function(ybe){Object.defineProperty(Ebe,ybe,Object.getOwnPropertyDescriptor(fbe,ybe))})}return Ebe}function Eme(Ebe,Cbe){if(!(Ebe instanceof Cbe))throw new TypeError("Cannot call a class as a function")}function xme(Ebe,Cbe){for(var fbe=0;fbe<Cbe.length;fbe++){var ybe=Cbe[fbe];ybe.enumerable=ybe.enumerable||!1,ybe.configurable=!0,"value"in ybe&&(ybe.writable=!0),Object.defineProperty(Ebe,Yme(ybe.key),ybe)}}function Tme(Ebe,Cbe,fbe){Cbe&&xme(Ebe.prototype,Cbe),Object.defineProperty(Ebe,"prototype",{writable:!1})}function Ome(Ebe,Cbe,fbe){return(Cbe=Yme(Cbe))in Ebe?Object.defineProperty(Ebe,Cbe,{value:fbe,enumerable:!0,configurable:!0,writable:!0}):Ebe[Cbe]=fbe,Ebe}function Rme(){return(Rme=Object.assign?Object.assign.bind():function(Ebe){for(var Cbe=1;Cbe<arguments.length;Cbe++){var fbe,ybe=arguments[Cbe];for(fbe in ybe)Object.prototype.hasOwnProperty.call(ybe,fbe)&&(Ebe[fbe]=ybe[fbe])}return Ebe}).apply(this,arguments)}function Nme(Ebe,Cbe){if(typeof Cbe!="function"&&Cbe!==null)throw new TypeError("Super expression must either be null or a function");Ebe.prototype=Object.create(Cbe&&Cbe.prototype,{constructor:{value:Ebe,writable:!0,configurable:!0}}),Object.defineProperty(Ebe,"prototype",{writable:!1}),Cbe&&Pme(Ebe,Cbe)}function Ime(Ebe){return(Ime=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Cbe){return Cbe.__proto__||Object.getPrototypeOf(Cbe)})(Ebe)}function Pme(Ebe,Cbe){return(Pme=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(fbe,ybe){return fbe.__proto__=ybe,fbe})(Ebe,Cbe)}function Mme(Ebe,Cbe){if(Ebe==null)return{};var fbe,ybe=function(Nbe,Fbe){if(Nbe==null)return{};for(var i0e,Bbe={},Zbe=Object.keys(Nbe),E0e=0;E0e<Zbe.length;E0e++)i0e=Zbe[E0e],0<=Fbe.indexOf(i0e)||(Bbe[i0e]=Nbe[i0e]);return Bbe}(Ebe,Cbe);if(Object.getOwnPropertySymbols)for(var Abe=Object.getOwnPropertySymbols(Ebe),Lbe=0;Lbe<Abe.length;Lbe++)fbe=Abe[Lbe],0<=Cbe.indexOf(fbe)||Object.prototype.propertyIsEnumerable.call(Ebe,fbe)&&(ybe[fbe]=Ebe[fbe]);return ybe}function kme(Ebe){if(Ebe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ebe}function Bme(Ebe,Cbe){if(Cbe&&(typeof Cbe=="object"||typeof Cbe=="function"))return Cbe;if(Cbe!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kme(Ebe)}function Dme(Ebe){var Cbe=function(){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}}();return function(){var fbe,ybe=Ime(Ebe);return Bme(this,Cbe?(fbe=Ime(this).constructor,Reflect.construct(ybe,arguments,fbe)):ybe.apply(this,arguments))}}function jme(Ebe,Cbe){return Lme(Ebe)||function(fbe,ybe){var Abe=fbe==null?null:typeof Symbol<"u"&&fbe[Symbol.iterator]||fbe["@@iterator"];if(Abe!=null){var Lbe,Nbe,Fbe,i0e,Bbe=[],Zbe=!0,E0e=!1;try{if(Fbe=(Abe=Abe.call(fbe)).next,ybe===0){if(Object(Abe)!==Abe)return;Zbe=!1}else for(;!(Zbe=(Lbe=Fbe.call(Abe)).done)&&(Bbe.push(Lbe.value),Bbe.length!==ybe);Zbe=!0);}catch(M0e){E0e=!0,Nbe=M0e}finally{try{if(!Zbe&&Abe.return!=null&&(i0e=Abe.return(),Object(i0e)!==i0e))return}finally{if(E0e)throw Nbe}}return Bbe}}(Ebe,Cbe)||Ume(Ebe,Cbe)||Jme()}function Vme(Ebe){return Lme(Ebe)||zme(Ebe)||Ume(Ebe)||Jme()}function Wme(Ebe){return function(Cbe){if(Array.isArray(Cbe))return Gme(Cbe)}(Ebe)||zme(Ebe)||Ume(Ebe)||function(){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 Lme(Ebe){if(Array.isArray(Ebe))return Ebe}function zme(Ebe){if(typeof Symbol<"u"&&Ebe[Symbol.iterator]!=null||Ebe["@@iterator"]!=null)return Array.from(Ebe)}function Ume(Ebe,Cbe){var fbe;if(Ebe)return typeof Ebe=="string"?Gme(Ebe,Cbe):(fbe=(fbe=Object.prototype.toString.call(Ebe).slice(8,-1))==="Object"&&Ebe.constructor?Ebe.constructor.name:fbe)==="Map"||fbe==="Set"?Array.from(Ebe):fbe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fbe)?Gme(Ebe,Cbe):void 0}function Gme(Ebe,Cbe){(Cbe==null||Cbe>Ebe.length)&&(Cbe=Ebe.length);for(var fbe=0,ybe=new Array(Cbe);fbe<Cbe;fbe++)ybe[fbe]=Ebe[fbe];return ybe}function Jme(){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 Yme(Ebe){return Ebe=function(Cbe,fbe){if(typeof Cbe!="object"||Cbe===null)return Cbe;var ybe=Cbe[Symbol.toPrimitive];if(ybe===void 0)return(fbe==="string"?String:Number)(Cbe);if(typeof(ybe=ybe.call(Cbe,fbe||"default"))!="object")return ybe;throw new TypeError("@@toPrimitive must return a primitive value.")}(Ebe,"string"),typeof Ebe=="symbol"?Ebe:String(Ebe)}ome=ome&&Object.prototype.hasOwnProperty.call(ome,"default")?ome.default:ome,lme=lme&&Object.prototype.hasOwnProperty.call(lme,"default")?lme.default:lme,sme=sme&&Object.prototype.hasOwnProperty.call(sme,"default")?sme.default:sme,cme=cme&&Object.prototype.hasOwnProperty.call(cme,"default")?cme.default:cme,ume=ume&&Object.prototype.hasOwnProperty.call(ume,"default")?ume.default:ume,fme=fme&&Object.prototype.hasOwnProperty.call(fme,"default")?fme.default:fme,a0e=a0e&&Object.prototype.hasOwnProperty.call(a0e,"default")?a0e.default:a0e,hme=hme&&Object.prototype.hasOwnProperty.call(hme,"default")?hme.default:hme,bme=bme&&Object.prototype.hasOwnProperty.call(bme,"default")?bme.default:bme,mme=mme&&Object.prototype.hasOwnProperty.call(mme,"default")?mme.default:mme,vme=vme&&Object.prototype.hasOwnProperty.call(vme,"default")?vme.default:vme,gme=gme&&Object.prototype.hasOwnProperty.call(gme,"default")?gme.default:gme,yme=yme&&Object.prototype.hasOwnProperty.call(yme,"default")?yme.default:yme,_me=_me&&Object.prototype.hasOwnProperty.call(_me,"default")?_me.default:_me;function Qme(){var Ebe,Cbe,fbe;return ome(ime.useContext)?ime.useContext(Zme)||(Cbe=(Ebe=jme(ime.useState(ube.currentContextValue),2))[0],fbe=Ebe[1],ime.useEffect(function(){var ybe=rme(fbe);return hbe.on("update",ybe),function(){return hbe.off("update",ybe)}},[]),Cbe):{}}function Xme(fbe){var Cbe=fbe.children,fbe=Mme(fbe,pbe);return $me.createElement(nbe,Rme({},fbe,{_nk:"".concat(_be,"11")}),$me.createElement(ube,Rme({},fbe,{_nk:"".concat(_be,"21")}),Cbe))}function Kme(Ebe){var Cbe=Ebe.children;return $me.createElement(lbe,{_nk:"".concat(_be,"31")},function(fbe){return fbe?nme(Cbe,void 0,fbe):$me.createElement(mbe,{_nk:"".concat(_be,"41")},Cbe)})}var Zme=lme(),nbe=Zme.Provider,lbe=Zme.Consumer,ibe=lme(),abe=ibe.Provider,obe=ibe.Consumer,hbe=new sme,ube=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(fbe){var ybe;return Eme(this,Cbe),ybe=Ebe.call(this,fbe),Cbe.currentContextValue=fbe.value,ybe}return Tme(Cbe,[{key:"shouldComponentUpdate",value:function(fbe){return fbe.value!==this.props.value&&(Cbe.currentContextValue=fbe.value,hbe.emit("update",fbe.value)),fbe.children!==this.props.children||fbe.value!==this.props.value}},{key:"render",value:function(){return this.props.children}}]),Cbe}(),mbe=(Ome(ube,"eventBus",hbe),Ome(ube,"currentContextValue",void 0),function(){Nme(Cbe,ime.PureComponent);var Ebe=Dme(Cbe);function Cbe(fbe){var ybe;return Eme(this,Cbe),Ome(kme(ybe=Ebe.call(this,fbe)),"state",{context:ube.currentContextValue}),Ome(kme(ybe),"updateListener",rme(function(Abe){ybe.setState({context:Abe})})),hbe.on("update",ybe.updateListener),ybe}return Tme(Cbe,[{key:"componentWillUnmount",value:function(){hbe.off("update",this.updateListener)}},{key:"render",value:function(){var fbe=this.props.children,ybe=this.state.context;return nme(fbe,void 0,ybe)}}]),Cbe}()),pbe=["children"],_be="qj9A",Sbe=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){var fbe;Eme(this,Cbe);for(var ybe=arguments.length,Abe=new Array(ybe),Lbe=0;Lbe<ybe;Lbe++)Abe[Lbe]=arguments[Lbe];return Ome(kme(fbe=Ebe.call.apply(Ebe,[this].concat(Abe))),"promiseCache",{}),fbe}return Tme(Cbe,[{key:"render",value:function(){var ybe=this.props,fbe=ybe.freeze,ybe=ybe.children,Abe=this.promiseCache;if(fbe&&!Abe.promise)throw Abe.promise=new Promise(function(Lbe){Abe.resolve=Lbe}),Abe.promise;if(fbe)throw Abe.promise;return Abe.promise&&(Abe.resolve(),Abe.promise=void 0),$me.createElement(ime.Fragment,null,ybe)}}]),Cbe}();function vbe(){try{for(var Ebe=arguments.length,Cbe=new Array(Ebe),fbe=0;fbe<Ebe;fbe++)Cbe[fbe]=arguments[fbe];Cbe.forEach(function(Abe){var Abe=Vme(Abe),Lbe=Abe[0];Abe.slice(1).forEach(function(Nbe){var Fbe;ome(ame(Lbe,Nbe))&&!ame(Lbe,[Nbe,"_overridden"])&&(Fbe=Lbe[Nbe].bind(Lbe),Lbe[Nbe]=function(i0e){ume(i0e)||Qbe(i0e);for(var Bbe=arguments.length,Zbe=new Array(1<Bbe?Bbe-1:0),E0e=1;E0e<Bbe;E0e++)Zbe[E0e-1]=arguments[E0e];return Fbe.apply(void 0,[i0e].concat(Zbe))},Lbe[Nbe]._overridden=!0)})})}catch(ybe){console.warn("activation override failed:",ybe)}}function kbe(Ebe){return Ebe=Ebe.children,nme(Ebe)}var Rbe=[],Pbe=new Map,Mbe=new sme,Kbe=a0e(function(Ebe){fme(Ebe)&&![Zme,ibe].includes(Ebe)&&(fme(Ebe.Consumer)||(Ebe.Consumer=function(fbe){var fbe=fbe.children,ybe=nme(ime.useContext,void 0,Ebe);return $me.createElement(ime.Fragment,null,nme(fbe,void 0,ybe))}),Rbe.push(Ebe),setTimeout(function(){return Mbe.emit("update")}))}),Qbe=a0e(function(Ebe){Ebe=ame(Ebe,"_context")||ame(Ebe,"context"),ame(Ebe,"$$typeof")===ame(Zme,"$$typeof")&&Kbe(Ebe)}),Gbe=(vbe([$me,"createElement"]),function(){Nme(Cbe,ime.PureComponent);var Ebe=Dme(Cbe);function Cbe(Lbe){Eme(this,Cbe),Ome(kme(ybe=Ebe.call(this,Lbe)),"unmount",null);var ybe,Abe,Lbe=Lbe.value;return Lbe.length===0?(ybe.state={ctxValue:null},Bme(ybe)):((Lbe=jme(Lbe,1)[0]).ctx,Abe=Lbe.value,Lbe=Lbe.onUpdate,ybe.state={ctxValue:Abe},ybe.unmount=Lbe(function(Nbe){ybe.setState({ctxValue:Nbe})}),ybe)}return Tme(Cbe,[{key:"componentWillUnmount",value:function(){nme(this.unmount)}},{key:"render",value:function(){var fbe,ybe,Abe=this.props,Lbe=Abe.value,Abe=Abe.children,Lbe=Lbe.filter(Boolean);return Lbe.length===0?Abe:(fbe=this.state.ctxValue,ybe=(Lbe=Vme(Lbe))[0].ctx,Lbe=Lbe.slice(1),ybe=ybe.Provider,ybe=hme(fbe)?Abe:$me.createElement(ybe,{value:fbe,_nk:"".concat("lqEk","11")},Abe),0<Lbe.length?$me.createElement(Cbe,{value:Lbe,_nk:"".concat("lqEk","21")},ybe):ybe)}}]),Cbe}()),Hbe=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(Nbe){Eme(this,Cbe),Ome(kme(ybe=Ebe.call(this,Nbe)),"updateListener",null),Ome(kme(ybe),"ctxInfo",null);var ybe,Abe=Nbe.value,Lbe=Nbe.ctx,Nbe=Nbe.id;return hme(Abe)?Bme(ybe):(ybe.updateListener=ame(Pbe.get(Lbe),Nbe,new Map),nme(ybe.updateListener,"forEach",function(Fbe){return Fbe(Abe)}),ybe.ctxInfo={ctx:Lbe,value:Abe,onUpdate:function(Fbe){return ybe.updateListener.set(Fbe,Fbe),function(){return ybe.updateListener.delete(Fbe)}}},ybe)}return Tme(Cbe,[{key:"componentWillUnmount",value:function(){var Abe=this.props,fbe=Abe.value,ybe=Abe.ctx,Abe=Abe.id;hme(fbe)||Pbe.set(ybe,Sme(Sme({},ame(Pbe.get(ybe),void 0,{})),{},Ome({},Abe,this.updateListener)))}},{key:"shouldComponentUpdate",value:function(fbe){var ybe=fbe.value;return this.props.value!==ybe&&nme(this.updateListener,"forEach",function(Abe){return Abe(ybe)}),!0}},{key:"render",value:function(){var fbe=this,ybe=this.props,Abe=ybe.value,Lbe=ybe.renderWrapper,Nbe=ybe.renderContent;return ybe.id,Lbe(function(Fbe){return Nbe(hme(Abe)?Fbe:[].concat(Wme(Fbe),[fbe.ctxInfo]))})}}]),Cbe}(),d0e={},p0e=function(){Nme(Cbe,ime.PureComponent);var Ebe=Dme(Cbe);function Cbe(Abe){Eme(this,Cbe),Ome(kme(ybe=Ebe.call(this,Abe)),"renderWrapper",function(Lbe){var Nbe=ybe.props.id;return d0e[Nbe].reduce(function(Fbe,i0e){var Bbe=i0e.Consumer;return function(Zbe){return $me.createElement(Bbe,{_nk:"".concat("SsUr","11")},function(E0e){return $me.createElement(Hbe,{value:E0e,ctx:i0e,renderWrapper:Fbe,renderContent:Zbe,id:Nbe,_nk:"".concat("SsUr","21")})})}},function(Fbe){return Fbe([])})(Lbe)});var ybe,Abe=Abe.id;return d0e[Abe]||(d0e[Abe]=Wme(Rbe).filter(function(Lbe){return fme(Lbe.Consumer)})),ybe}return Tme(Cbe,[{key:"render",value:function(){var fbe=this.props.children;return this.renderWrapper(fbe)}}]),Cbe}(),S0e="46lG",a0e=ome(ime.lazy)&&!hme(ime.Suspense),P0e=a0e?ime.lazy(function(){return new Promise(function(){return null})}):function(){return null},e0e=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){return Eme(this,Cbe),Ebe.apply(this,arguments)}return Tme(Cbe,[{key:"componentDidMount",value:function(){nme(this.props,"onStart")}},{key:"componentWillUnmount",value:function(){nme(this.props,"onEnd")}},{key:"render",value:function(){return null}}]),Cbe}(),_0e=a0e?function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){var fbe;Eme(this,Cbe);for(var ybe=arguments.length,Abe=new Array(ybe),Lbe=0;Lbe<ybe;Lbe++)Abe[Lbe]=arguments[Lbe];return Ome(kme(fbe=Ebe.call.apply(Ebe,[this].concat(Abe))),"state",{suspense:!1}),Ome(kme(fbe),"onSuspenseStart",function(){fbe.setState({suspense:!0})}),Ome(kme(fbe),"onSuspenseEnd",function(){fbe.setState({suspense:!1})}),Ome(kme(fbe),"sus$$",{onSuspenseStart:fbe.onSuspenseStart,onSuspenseEnd:fbe.onSuspenseEnd}),fbe}return Tme(Cbe,[{key:"render",value:function(){var fbe=this.props.children;return $me.createElement(ime.Fragment,null,nme(fbe,void 0,this.sus$$),this.state.suspense&&$me.createElement(P0e,{_nk:"".concat(S0e,"31")}))}}]),Cbe}():kbe,m0e=a0e?function(fbe){var Cbe=fbe.children,fbe=fbe.sus$$;return $me.createElement(ime.Suspense,{fallback:$me.createElement(e0e,{onStart:fbe.onSuspenseStart,onEnd:fbe.onSuspenseEnd,_nk:"".concat(S0e,"21")}),_nk:"".concat(S0e,"11")},Cbe)}:kbe,Ybe=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){return Eme(this,Cbe),Ebe.apply(this,arguments)}return Tme(Cbe,[{key:"componentDidCatch",value:function(fbe){var ybe=this.props.error$$;nme(ybe,void 0,fbe,function(){nme(ybe,void 0,null)})}},{key:"render",value:function(){return this.props.children}}]),Cbe}(),Jbe=(Ome(Ybe,"getDerivedStateFromError",function(){return null}),function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){var fbe;Eme(this,Cbe);for(var ybe=arguments.length,Abe=new Array(ybe),Lbe=0;Lbe<ybe;Lbe++)Abe[Lbe]=arguments[Lbe];return Ome(kme(fbe=Ebe.call.apply(Ebe,[this].concat(Abe))),"state",{error:null}),Ome(kme(fbe),"throwError",function(Nbe,Fbe){return fbe.setState({error:Nbe},Fbe)}),fbe}return Tme(Cbe,[{key:"render",value:function(){if(this.state.error)throw this.state.error;return nme(this.props.children,void 0,this.throwError)}}]),Cbe}()),c0e="lajT";function zbe(Lbe){var Cbe=Lbe.id,fbe=Lbe.children,Lbe=Lbe.bridgeProps,ybe=Lbe.sus$$,Abe=Lbe.ctx$$,Lbe=Lbe.error$$;return $me.createElement(Ybe,{error$$:Lbe,_nk:"".concat(c0e,"11")},$me.createElement(m0e,{sus$$:ybe,_nk:"".concat(c0e,"21")},$me.createElement(Gbe,{id:Cbe,value:Abe,_nk:"".concat(c0e,"31")},fbe)))}function R0e(Ebe){var Cbe=Ebe.id,fbe=Ebe.children;return $me.createElement(Jbe,{_nk:"".concat(c0e,"41")},function(ybe){return $me.createElement(_0e,{_nk:"".concat(c0e,"51")},function(Abe){return $me.createElement(p0e,{id:Cbe,_nk:"".concat(c0e,"61")},function(Lbe){return nme(fbe,void 0,{bridgeProps:{sus$$:Abe,ctx$$:Lbe,error$$:ybe}})})})})}function $0e(Ebe){var Cbe=function(){Nme(ybe,ime.Component);var fbe=Dme(ybe);function ybe(){var Abe;Eme(this,ybe);for(var Lbe=arguments.length,Nbe=new Array(Lbe),Fbe=0;Fbe<Lbe;Fbe++)Nbe[Fbe]=arguments[Fbe];return Ome(kme(Abe=fbe.call.apply(fbe,[this].concat(Nbe))),"drop",null),Abe}return Tme(ybe,[{key:"componentWillUnmount",value:function(){nme(this.drop)}},{key:"render",value:function(){var Abe=this,Lbe=this.props,Nbe=Lbe.forwardedRef,Fbe=Mme(Lbe,t0e);return $me.createElement(obe,{_nk:"".concat(v0e,"11")},function(){var i0e=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).attach;return $me.createElement(Ebe,Rme({ref:function(Bbe){[L0e,Wbe].every(function(Zbe){return!ome(ame(Bbe,Zbe))})||(Abe.drop=nme(i0e,void 0,Bbe),hme(Nbe))||(bme(Nbe)&&"current"in Nbe?Nbe.current=Bbe:nme(Nbe,void 0,Bbe))}},Fbe,{_nk:"".concat(v0e,"21")}))})}}]),ybe}();return ome(Ebe.prototype.componentDidMount)&&(Ebe.prototype._componentDidMount=Ebe.prototype.componentDidMount,Ebe.prototype.componentDidMount=function(){var fbe=this;cme(function(){return Ebe.prototype._componentDidMount.call(fbe)})}),ome(ime.forwardRef)?mme(ime.forwardRef(function(fbe,ybe){return $me.createElement(Cbe,Rme({},fbe,{forwardedRef:ybe,_nk:"".concat(v0e,"31")}))}),Ebe):mme(Cbe,Ebe)}function u0e(Ebe,Cbe){var fbe,ybe;[ime.useRef,ime.useContext,ime.useEffect].some(function(Abe){return!ome(Abe)})||(ybe=ime.useContext(ibe))&&(fbe=ime.useRef({}).current,ybe=ybe.attach,fbe[Ebe]=Cbe,fbe.drop=ybe(fbe),ime.useEffect(function(){return function(){return nme(fbe.drop)}},[]))}var t0e=["forwardedRef"],v0e="XKTv",L0e="componentDidActivate",Wbe="componentWillUnactivate",a0e=u0e.bind(null,L0e),g0e=u0e.bind(null,Wbe),b0e=["id","autoFreeze"],y0e="bNyU",A0e=ime.Suspense?function(ybe){var Cbe=ybe.freeze,fbe=ybe.children,ybe=ybe.placeholder;return $me.createElement(ime.Suspense,{fallback:ybe===void 0?null:ybe,_nk:"".concat("Leb+","11")},$me.createElement(Sbe,{freeze:Cbe,_nk:"".concat("Leb+","21")},fbe))}:function(Ebe){return Ebe.children},V0e=function(){Nme(Cbe,ime.PureComponent);var Ebe=Dme(Cbe);function Cbe(fbe){var ybe;Eme(this,Cbe);for(var Abe=arguments.length,Lbe=new Array(1<Abe?Abe-1:0),Nbe=1;Nbe<Abe;Nbe++)Lbe[Nbe-1]=arguments[Nbe];return Ome(kme(ybe=Ebe.call.apply(Ebe,[this,fbe].concat(Lbe))),"eventBus",new sme),Ome(kme(ybe),"listeners",new Map),Ome(kme(ybe),"wrapper",null),Ome(kme(ybe),"cache",void 0),Ome(kme(ybe),"unmounted",!1),Ome(kme(ybe),"safeSetState",function(Fbe,i0e){ybe.unmounted||ybe.setState(Fbe,i0e)}),Ome(kme(ybe),"freezeTimeout",null),Ome(kme(ybe),"attach",function(Fbe){var i0e,Bbe=ybe.listeners;return Fbe?(Fbe.isKeepAlive&&cme(function(){var E0e=ybe.props,Zbe=E0e.id,E0e=E0e.store.get(Zbe);E0e.aliveNodesId=new Set([].concat(Wme(E0e.aliveNodesId),[Fbe.id]))}),Bbe.set(Fbe,(Ome(i0e={},L0e,function(){return nme(Fbe,L0e)}),Ome(i0e,Wbe,function(){return nme(Fbe,Wbe)}),i0e)),function(){Bbe.delete(Fbe)}):function(){return null}}),Ome(kme(ybe),"contextValue",{id:ybe.props.id,attach:ybe.attach}),Ome(kme(ybe),"drop",function(){var Fbe=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).delay,i0e=Fbe===void 0?1200:Fbe;return new Promise(function(Bbe){function Zbe(){clearTimeout(E0e),ybe.eventBus.off(Wbe,Zbe),ybe.cache.willDrop=!0,B0e.nodes.delete(Z0e),B0e.helpers=Sme({},B0e.helpers),B0e.smartForceUpdate(function(){return Bbe(!0)})}var E0e,M0e=ybe.props,B0e=M0e.scope,Z0e=M0e.id;ame(ybe.cache,"cached")||ame(ybe.cache,"willDrop")?Zbe():(ybe.eventBus.on(Wbe,Zbe),E0e=setTimeout(function(){ybe.eventBus.off(Wbe,Zbe),Bbe(!1)},i0e))})}),Ome(kme(ybe),"refresh",function(){return new Promise(function(Fbe){ame(ybe.cache,"cached")&&Fbe(!1),ybe.safeSetState({key:Math.random()},function(){return Fbe(!0)})})}),ybe.state={children:fbe.children,bridgeProps:fbe.bridgeProps,key:Math.random(),freeze:!1},ybe}return Tme(Cbe,[{key:"componentDidMount",value:function(){var fbe,ybe=this,Lbe=this.props,Abe=Lbe.store,Lbe=Lbe.id,Nbe=this.listeners,Fbe=this.wrapper;if(!Abe.has(Lbe)){try{fbe=Wme(Fbe.children)}catch{fbe=[Fbe.children]}this.cache=(Ome(Nbe={listeners:Nbe,aliveNodesId:[],inited:!1,cached:!1,wrapper:Fbe,nodes:fbe},L0e,function(){return ybe[L0e]()}),Ome(Nbe,Wbe,function(){return ybe[Wbe]()}),Nbe),Abe.set(Lbe,this.cache)}}},{key:"componentWillUnmount",value:function(){var Abe=this.props,fbe=Abe.store,ybe=Abe.keepers,Abe=Abe.id;try{var Lbe=fbe.get(Abe);Lbe.nodes.forEach(function(Nbe){Lbe.wrapper.appendChild(Nbe)})}catch{}fbe.delete(Abe),ybe.delete(Abe),this.unmounted=!0}},{key:L0e,value:function(){clearTimeout(this.freezeTimeout),this.safeSetState({freeze:!1}),this.eventBus.emit(L0e),this.listeners.forEach(function(fbe){return nme(fbe,[L0e])})}},{key:Wbe,value:function(){var fbe=this;this.eventBus.emit(Wbe),Wme(this.listeners).reverse().forEach(function(ybe){return ybe=jme(ybe,2)[1],nme(ybe,[Wbe])}),clearTimeout(this.freezeTimeout),this.freezeTimeout=setTimeout(function(){dme.flushSync(function(){fbe.safeSetState({freeze:!0})})},1e3)}},{key:"render",value:function(){var fbe=this,i0e=this.props,ybe=i0e.id,Abe=i0e.autoFreeze,Abe=Abe===void 0||Abe,i0e=(Mme(i0e,b0e),this.state),Lbe=i0e.children,Nbe=i0e.bridgeProps,Fbe=i0e.key,i0e=i0e.freeze;return $me.createElement(A0e,{freeze:Abe&&i0e,_nk:"".concat(y0e,"11")},$me.createElement("div",{ref:function(Bbe){fbe.wrapper=Bbe},_nk:"".concat(y0e,"21")},$me.createElement("div",{key:"keeper-container",className:"ka-content"},$me.createElement(zbe,{id:ybe,bridgeProps:Nbe,_nk:"".concat(y0e,"31")},$me.createElement(abe,{value:this.contextValue,_nk:"".concat(y0e,"41")},$me.Children.map(Lbe,function(Bbe,Zbe){return $me.cloneElement(Bbe,{key:"".concat(Bbe.key||"",":").concat(Fbe,":").concat(Zbe)})}))))))}}]),Cbe}(),w0e=["children"],T0e="UVSV",$be="drop",Ibe="refresh",n0e=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(){var fbe;Eme(this,Cbe);for(var ybe=arguments.length,Abe=new Array(ybe),Lbe=0;Lbe<ybe;Lbe++)Abe[Lbe]=arguments[Lbe];return Ome(kme(fbe=Ebe.call.apply(Ebe,[this].concat(Abe))),"store",new Map),Ome(kme(fbe),"nodes",new Map),Ome(kme(fbe),"keepers",new Map),Ome(kme(fbe),"debouncedForceUpdate",rme(function(Nbe){return fbe.forceUpdate(Nbe)})),Ome(kme(fbe),"updateCallbackList",[]),Ome(kme(fbe),"smartForceUpdate",function(Nbe){fbe.updateCallbackList.push(Nbe),fbe.debouncedForceUpdate(function(){fbe.updateCallbackList.forEach(function(Fbe){return nme(Fbe)}),fbe.updateCallbackList=[]})}),Ome(kme(fbe),"update",function(Nbe,Fbe){return new Promise(function(i0e){var Bbe=fbe.keepers.get(Nbe),Zbe=!Bbe,E0e=Date.now(),M0e=fbe.nodes.get(Nbe)||null;fbe.nodes.set(Nbe,Sme(Sme({id:Nbe,createTime:E0e,updateTime:E0e},M0e),Fbe)),Zbe?(fbe.helpers=Sme({},fbe.helpers),fbe.forceUpdate(i0e)):(E0e=Fbe.children,M0e=Fbe.bridgeProps,Bbe.setState({children:E0e,bridgeProps:M0e},i0e))})}),Ome(kme(fbe),"keep",function(Nbe,Fbe){return new Promise(function(i0e){fbe.update(Nbe,Sme({id:Nbe},Fbe)).then(function(){i0e(fbe.store.get(Nbe))})})}),Ome(kme(fbe),"getCachingNodesByName",function(Nbe){return fbe.getCachingNodes().filter(function(Fbe){return Nbe instanceof RegExp?Nbe.test(Fbe.name):Fbe.name===Nbe})}),Ome(kme(fbe),"getScopeIds",function(Nbe){return tme(Nbe.map(function Fbe(i0e){var Bbe=ame(fbe.getCache(i0e),"aliveNodesId",[]);return 0<Bbe.size?[i0e,Wme(Bbe).map(Fbe)]:[i0e].concat(Wme(Bbe))}))}),Ome(kme(fbe),"dropById",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[[Nbe],$be].concat(i0e))}),Ome(kme(fbe),"dropScopeByIds",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[fbe.getScopeIds(Nbe),$be].concat(i0e))}),Ome(kme(fbe),"drop",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[fbe.getCachingNodesByName(Nbe).map(function(Zbe){return Zbe.id}),$be].concat(i0e))}),Ome(kme(fbe),"dropScope",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.dropScopeByIds.apply(fbe,[fbe.getCachingNodesByName(Nbe).map(function(Zbe){return Zbe.id})].concat(i0e))}),Ome(kme(fbe),"refreshById",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[[Nbe],Ibe].concat(i0e))}),Ome(kme(fbe),"refreshScopeByIds",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[fbe.getScopeIds(Nbe),Ibe].concat(i0e))}),Ome(kme(fbe),"refresh",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.handleNodes.apply(fbe,[fbe.getCachingNodesByName(Nbe).map(function(Zbe){return Zbe.id}),Ibe].concat(i0e))}),Ome(kme(fbe),"refreshScope",function(Nbe){for(var Fbe=arguments.length,i0e=new Array(1<Fbe?Fbe-1:0),Bbe=1;Bbe<Fbe;Bbe++)i0e[Bbe-1]=arguments[Bbe];return fbe.refreshScopeByIds.apply(fbe,[fbe.getCachingNodesByName(Nbe).map(function(Zbe){return Zbe.id})].concat(i0e))}),Ome(kme(fbe),"handleNodes",function(Nbe){for(var Fbe=1<arguments.length&&arguments[1]!==void 0?arguments[1]:$be,i0e=arguments.length,Bbe=new Array(2<i0e?i0e-2:0),Zbe=2;Zbe<i0e;Zbe++)Bbe[Zbe-2]=arguments[Zbe];return new Promise(function(E0e){var M0e=[];Nbe.forEach(function(B0e){fbe.store.get(B0e)&&(B0e=fbe.keepers.get(B0e),M0e.push(B0e))}),M0e.length===0?E0e(!1):Promise.all(M0e.map(function(B0e){return nme.apply(void 0,[B0e,Fbe].concat(Bbe))})).then(function(B0e){return E0e(B0e.every(Boolean))})})}),Ome(kme(fbe),"clear",function(){for(var Nbe=arguments.length,Fbe=new Array(Nbe),i0e=0;i0e<Nbe;i0e++)Fbe[i0e]=arguments[i0e];return fbe.handleNodes.apply(fbe,[fbe.getCachingNodes().map(function(Bbe){return Bbe.id}),$be].concat(Fbe))}),Ome(kme(fbe),"getCache",function(Nbe){return fbe.store.get(Nbe)}),Ome(kme(fbe),"getNode",function(Nbe){return fbe.nodes.get(Nbe)}),Ome(kme(fbe),"getCachingNodes",function(){return Wme(fbe.nodes.values())}),Ome(kme(fbe),"helpers",{keep:fbe.keep,update:fbe.update,drop:fbe.drop,dropScope:fbe.dropScope,dropById:fbe.dropById,dropScopeByIds:fbe.dropScopeByIds,refresh:fbe.refresh,refreshScope:fbe.refreshScope,refreshById:fbe.refreshById,refreshScopeByIds:fbe.refreshScopeByIds,getScopeIds:fbe.getScopeIds,clear:fbe.clear,getCache:fbe.getCache,getNode:fbe.getNode,getCachingNodes:fbe.getCachingNodes}),fbe}return Tme(Cbe,[{key:"render",value:function(){var fbe=this,ybe=this.props.children,ybe=ybe===void 0?null:ybe;return $me.createElement(Xme,{value:this.helpers,_nk:"".concat(T0e,"11")},ybe,$me.createElement("div",{style:{display:"none"},_nk:"".concat(T0e,"21")},Wme(this.nodes.values()).map(function(Abe){var Lbe=Abe.children,Nbe=Mme(Abe,w0e);return $me.createElement(V0e,Rme({key:Nbe.id},Nbe,{scope:fbe,store:fbe.store,keepers:fbe.keepers,ref:function(Fbe){fbe.keepers.set(Nbe.id,Fbe)},_nk:"iAr".concat(T0e,"31")}),Lbe)})))}}]),Cbe}(),f0e=["id"],z0e=["id"],o0e=["forwardedRef"],gbe=["forwardedRef"],Tbe="X7Aa";function Vbe(Ebe){return{drop:Ebe.drop,dropScope:Ebe.dropScope,refresh:Ebe.refresh,refreshScope:Ebe.refreshScope,clear:Ebe.clear,getCachingNodes:Ebe.getCachingNodes}}function Ube(){var Ebe=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return!!fme(Ebe)&&(Ebe.scrollWidth>Ebe.clientWidth||Ebe.scrollHeight>Ebe.clientHeight)}function x0e(Ebe){return ome(ame(yme,"document.querySelectorAll"))?[].concat(Wme(vme(nme(Ebe,"querySelectorAll","*"),[])),[Ebe]).filter(Ube):[]}var I0e=["_helpers","id","children"],j0e=["_helpers","id","name"],O0e=ame(yme,"document.body"),G0e=ame(yme,"document.scrollingElement",ame(yme,"document.documentElement",{})),i1e=function(){Nme(Cbe,ime.Component);var Ebe=Dme(Cbe);function Cbe(fbe){var ybe;return Eme(this,Cbe),Ome(kme(ybe=Ebe.call(this,fbe)),"id",null),Ome(kme(ybe),"isKeepAlive",!0),Ome(kme(ybe),"cached",!1),Ome(kme(ybe),"inject",function(){var Abe=!(0<arguments.length&&arguments[0]!==void 0)||arguments[0],Fbe=ybe.props,Lbe=Fbe.id,Nbe=Fbe.saveScrollPosition,Fbe=Fbe._helpers.getCache(Lbe);try{Fbe.nodes.forEach(function(i0e){ybe.placeholder.appendChild(i0e)}),Abe&&Nbe&&nme(Fbe.revertScrollPos)}catch{}}),Ome(kme(ybe),"eject",function(){var Abe,Lbe=!(0<arguments.length&&arguments[0]!==void 0)||arguments[0],i0e=ybe.props,Nbe=i0e.id,Fbe=i0e._helpers.getCache(Nbe),i0e=tme(tme([ybe.props.saveScrollPosition]).map(function(Bbe){return Bbe===!0?Fbe.nodes:Bbe==="screen"?[G0e,O0e]:Wme(vme(nme(yme,"document.querySelectorAll",Bbe),[]))})).filter(Boolean);try{Lbe&&0<i0e.length&&(Fbe.revertScrollPos=(Abe=Wme(new Set(Wme(tme(i0e.map(x0e))))).map(function(Bbe){return[Bbe,{x:Bbe.scrollLeft,y:Bbe.scrollTop}]}),function(){Abe.forEach(function(M0e){var M0e=jme(M0e,2),Zbe=M0e[0],M0e=M0e[1],E0e=M0e.x,M0e=M0e.y;Zbe.scrollLeft=E0e,Zbe.scrollTop=M0e})})),Fbe.nodes.forEach(function(Bbe){Lbe?ybe.placeholder.removeChild(Bbe):Fbe.wrapper.appendChild(Bbe)})}catch{}}),Ome(kme(ybe),"init",function(){var Fbe=ybe.props,Abe=Fbe._helpers,Lbe=Fbe.id,Nbe=Fbe.children,Fbe=Mme(Fbe,I0e);Abe.keep(Lbe,Sme({children:Nbe,getInstance:function(){return kme(ybe)}},Fbe)).then(function(i0e){i0e&&(ybe.inject(),i0e.inited?nme(kme(ybe),L0e):i0e.inited=!0,ybe.cached=!1)})}),Ome(kme(ybe),"update",function(){var Fbe=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},Abe=Fbe._helpers,Lbe=Fbe.id,Nbe=Fbe.name,Fbe=Mme(Fbe,j0e);Abe&&!ybe.cached&&Abe.update(Lbe,Sme({name:Nbe,getInstance:function(){return kme(ybe)}},Fbe))}),ybe.id=fbe.id,ybe.init(),[L0e,Wbe].forEach(function(Abe){ybe[Abe]=function(){var Nbe=ybe.props,Fbe=Nbe.id,Nbe=Nbe._helpers,Lbe=Nbe.getCache(Fbe),Nbe=Nbe.getNode(Fbe),Fbe=(Nbe&&Abe===L0e&&(Nbe.updateTime=Date.now()),Abe===Wbe);!Lbe||Lbe.willDrop?ybe.cached&&!Fbe&&ybe.init():(nme(Lbe,Abe),Lbe.cached=Fbe,ybe.cached=Fbe)}}),ybe}return Tme(Cbe,[{key:"shouldComponentUpdate",value:function(fbe){return this.update(fbe),!1}},{key:"componentWillUnmount",value:function(){var Nbe=this.props,fbe=Nbe.id,ybe=Nbe._helpers,Nbe=Nbe.when,Nbe=Nbe===void 0||Nbe,Abe=ybe.getCache(fbe);Nbe=nme(Nbe);var Nbe=jme(gme(Nbe)?Nbe:[Nbe],2),Lbe=Nbe[0],Nbe=Nbe[1];Abe&&(this.eject(),delete Abe.getInstance,Lbe||(Nbe?([Abe].concat(Wme(ybe.getScopeIds([fbe]).map(function(Fbe){return ybe.getCache(Fbe)}))).filter(Boolean).forEach(function(Fbe){Fbe.willDrop=!0}),cme(function(){return ybe.dropScopeByIds([fbe])})):(Abe.willDrop=!0,cme(function(){return ybe.dropById(fbe)}))),nme(this,Wbe))}},{key:"render",value:function(){var fbe=this;return $me.createElement("div",{key:"keep-alive-placeholder",className:"ka-wrapper",ref:function(ybe){fbe.placeholder=ybe}})}}]),Cbe}();Ome(i1e,"defaultProps",{saveScrollPosition:!0});var W0e,i1e=ome(ame(yme,"document.getElementById"))?(W0e=$0e(i1e),ome(ime.useContext)?function(fbe){var Cbe=fbe.id,fbe=Mme(fbe,f0e);return t1e({idPrefix:Cbe,helpers:Qme(),props:fbe})}:function(Ebe){var Cbe=Ebe.id,fbe=Mme(Ebe,z0e);return $me.createElement(Kme,{_nk:"".concat(Tbe,"41")},function(ybe){return t1e({idPrefix:Cbe,helpers:ybe,props:fbe})})}):function(Ebe){return Ebe=Ebe.children,$me.createElement("div",{key:"keep-alive-placeholder",className:"ka-wrapper"},$me.createElement("div",{key:"keeper-container",className:"ka-content"},Ebe))};function t1e(Ebe){var Cbe=Ebe.idPrefix,fbe=Ebe.helpers,ybe=Ebe.props;return(Ebe=hme(fbe))&&console.error("You should not use <KeepAlive /> outside a <AliveScope>"),Ebe?ame(ybe,"children",null):$me.createElement(_me,{prefix:Cbe,key:ybe._nk,manualKey:ybe.cacheKey,_nk:"".concat(Tbe,"11")},function(Abe){var Lbe=ybe.cacheKey||Abe;return $me.createElement(R0e,{key:Lbe,id:Lbe,_nk:"".concat(Tbe,"21")},function(Nbe){return $me.createElement(W0e,Rme({key:Lbe},ybe,Nbe,{id:Lbe,_helpers:fbe,_nk:"".concat(Tbe,"31")}))})})}$P.AliveScope=n0e,$P.KeepAlive=i1e,$P.NodeKey=_me,$P.autoFixContext=vbe,$P.createContext=function(Ebe,Cbe){return Ebe=lme(Ebe,Cbe),Kbe(Ebe),Ebe},$P.default=i1e,$P.fixContext=Kbe,$P.useActivate=a0e,$P.useAliveController=function(){var Ebe;return ome(ime.useContext)&&(Ebe=Qme())?Vbe(Ebe):{}},$P.useUnactivate=g0e,$P.withActivation=$0e,$P.withAliveScope=function(Ebe){function Cbe(Nbe){var Abe=Nbe.helpers,Lbe=Nbe.props,Nbe=Nbe.forwardedRef;return $me.createElement(Ebe,Rme({},Lbe,Abe,{ref:Nbe,_nk:"".concat(Tbe,"51")}))}var fbe=ome(ime.useContext)?function(Lbe){var Abe=Lbe.forwardedRef,Lbe=Mme(Lbe,o0e);return Cbe({helpers:Vbe(Qme()||{}),props:Lbe,forwardedRef:Abe})}:function(ybe){var Abe=ybe.forwardedRef,Lbe=Mme(ybe,gbe);return $me.createElement(Kme,{_nk:"".concat(Tbe,"42")},function(){return Cbe({helpers:Vbe(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}),props:Lbe,forwardedRef:Abe})})};return ome(ime.forwardRef)?mme(ime.forwardRef(function(ybe,Abe){return $me.createElement(fbe,Rme({},ybe,{forwardedRef:Abe,_nk:"".concat(Tbe,"61")}))}),Ebe):mme(fbe,Ebe)},Object.defineProperty($P,"__esModule",{value:!0})})})(index_min$2,index_min$2.exports);var index_minExports=index_min$2.exports;reactActivation.exports=index_minExports;var reactActivationExports=reactActivation.exports;const token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(x_,eme){try{return[decodeURIComponent(x_.join(""))]}catch{}if(x_.length===1)return x_;eme=eme||1;const $P=x_.slice(0,eme),tme=x_.slice(eme);return Array.prototype.concat.call([],decodeComponents($P),decodeComponents(tme))}function decode$1(x_){try{return decodeURIComponent(x_)}catch{let eme=x_.match(singleMatcher)||[];for(let $P=1;$P<eme.length;$P++)x_=decodeComponents(eme,$P).join(""),eme=x_.match(singleMatcher)||[];return x_}}function customDecodeURIComponent(x_){const eme={"%FE%FF":"��","%FF%FE":"��"};let $P=multiMatcher.exec(x_);for(;$P;){try{eme[$P[0]]=decodeURIComponent($P[0])}catch{const ame=decode$1($P[0]);ame!==$P[0]&&(eme[$P[0]]=ame)}$P=multiMatcher.exec(x_)}eme["%C2"]="�";const tme=Object.keys(eme);for(const ame of tme)x_=x_.replace(new RegExp(ame,"g"),eme[ame]);return x_}function decodeUriComponent(x_){if(typeof x_!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof x_+"`");try{return decodeURIComponent(x_)}catch{return customDecodeURIComponent(x_)}}function splitOnFirst(x_,eme){if(!(typeof x_=="string"&&typeof eme=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(x_===""||eme==="")return[];const $P=x_.indexOf(eme);return $P===-1?[]:[x_.slice(0,$P),x_.slice($P+eme.length)]}function includeKeys(x_,eme){const $P={};if(Array.isArray(eme))for(const tme of eme){const ame=Object.getOwnPropertyDescriptor(x_,tme);ame!=null&&ame.enumerable&&Object.defineProperty($P,tme,ame)}else for(const tme of Reflect.ownKeys(x_)){const ame=Object.getOwnPropertyDescriptor(x_,tme);if(ame.enumerable){const nme=x_[tme];eme(tme,nme,x_)&&Object.defineProperty($P,tme,ame)}}return $P}const isNullOrUndefined=x_=>x_==null,strictUriEncode=x_=>encodeURIComponent(x_).replace(/[!'()*]/g,eme=>`%${eme.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(x_){switch(x_.arrayFormat){case"index":return eme=>($P,tme)=>{const ame=$P.length;return tme===void 0||x_.skipNull&&tme===null||x_.skipEmptyString&&tme===""?$P:tme===null?[...$P,[encode$1(eme,x_),"[",ame,"]"].join("")]:[...$P,[encode$1(eme,x_),"[",encode$1(ame,x_),"]=",encode$1(tme,x_)].join("")]};case"bracket":return eme=>($P,tme)=>tme===void 0||x_.skipNull&&tme===null||x_.skipEmptyString&&tme===""?$P:tme===null?[...$P,[encode$1(eme,x_),"[]"].join("")]:[...$P,[encode$1(eme,x_),"[]=",encode$1(tme,x_)].join("")];case"colon-list-separator":return eme=>($P,tme)=>tme===void 0||x_.skipNull&&tme===null||x_.skipEmptyString&&tme===""?$P:tme===null?[...$P,[encode$1(eme,x_),":list="].join("")]:[...$P,[encode$1(eme,x_),":list=",encode$1(tme,x_)].join("")];case"comma":case"separator":case"bracket-separator":{const eme=x_.arrayFormat==="bracket-separator"?"[]=":"=";return $P=>(tme,ame)=>ame===void 0||x_.skipNull&&ame===null||x_.skipEmptyString&&ame===""?tme:(ame=ame===null?"":ame,tme.length===0?[[encode$1($P,x_),eme,encode$1(ame,x_)].join("")]:[[tme,encode$1(ame,x_)].join(x_.arrayFormatSeparator)])}default:return eme=>($P,tme)=>tme===void 0||x_.skipNull&&tme===null||x_.skipEmptyString&&tme===""?$P:tme===null?[...$P,encode$1(eme,x_)]:[...$P,[encode$1(eme,x_),"=",encode$1(tme,x_)].join("")]}}function parserForArrayFormat(x_){let eme;switch(x_.arrayFormat){case"index":return($P,tme,ame)=>{if(eme=/\[(\d*)]$/.exec($P),$P=$P.replace(/\[\d*]$/,""),!eme){ame[$P]=tme;return}ame[$P]===void 0&&(ame[$P]={}),ame[$P][eme[1]]=tme};case"bracket":return($P,tme,ame)=>{if(eme=/(\[])$/.exec($P),$P=$P.replace(/\[]$/,""),!eme){ame[$P]=tme;return}if(ame[$P]===void 0){ame[$P]=[tme];return}ame[$P]=[...ame[$P],tme]};case"colon-list-separator":return($P,tme,ame)=>{if(eme=/(:list)$/.exec($P),$P=$P.replace(/:list$/,""),!eme){ame[$P]=tme;return}if(ame[$P]===void 0){ame[$P]=[tme];return}ame[$P]=[...ame[$P],tme]};case"comma":case"separator":return($P,tme,ame)=>{const nme=typeof tme=="string"&&tme.includes(x_.arrayFormatSeparator),rme=typeof tme=="string"&&!nme&&decode(tme,x_).includes(x_.arrayFormatSeparator);tme=rme?decode(tme,x_):tme;const ime=nme||rme?tme.split(x_.arrayFormatSeparator).map(ome=>decode(ome,x_)):tme===null?tme:decode(tme,x_);ame[$P]=ime};case"bracket-separator":return($P,tme,ame)=>{const nme=/(\[])$/.test($P);if($P=$P.replace(/\[]$/,""),!nme){ame[$P]=tme&&decode(tme,x_);return}const rme=tme===null?[]:tme.split(x_.arrayFormatSeparator).map(ime=>decode(ime,x_));if(ame[$P]===void 0){ame[$P]=rme;return}ame[$P]=[...ame[$P],...rme]};default:return($P,tme,ame)=>{if(ame[$P]===void 0){ame[$P]=tme;return}ame[$P]=[...[ame[$P]].flat(),tme]}}}function validateArrayFormatSeparator(x_){if(typeof x_!="string"||x_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$1(x_,eme){return eme.encode?eme.strict?strictUriEncode(x_):encodeURIComponent(x_):x_}function decode(x_,eme){return eme.decode?decodeUriComponent(x_):x_}function keysSorter(x_){return Array.isArray(x_)?x_.sort():typeof x_=="object"?keysSorter(Object.keys(x_)).sort((eme,$P)=>Number(eme)-Number($P)).map(eme=>x_[eme]):x_}function removeHash(x_){const eme=x_.indexOf("#");return eme!==-1&&(x_=x_.slice(0,eme)),x_}function getHash(x_){let eme="";const $P=x_.indexOf("#");return $P!==-1&&(eme=x_.slice($P)),eme}function parseValue(x_,eme){return eme.parseNumbers&&!Number.isNaN(Number(x_))&&typeof x_=="string"&&x_.trim()!==""?x_=Number(x_):eme.parseBooleans&&x_!==null&&(x_.toLowerCase()==="true"||x_.toLowerCase()==="false")&&(x_=x_.toLowerCase()==="true"),x_}function extract(x_){x_=removeHash(x_);const eme=x_.indexOf("?");return eme===-1?"":x_.slice(eme+1)}function parse$1(x_,eme){eme={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...eme},validateArrayFormatSeparator(eme.arrayFormatSeparator);const $P=parserForArrayFormat(eme),tme=Object.create(null);if(typeof x_!="string"||(x_=x_.trim().replace(/^[?#&]/,""),!x_))return tme;for(const ame of x_.split("&")){if(ame==="")continue;const nme=eme.decode?ame.replace(/\+/g," "):ame;let[rme,ime]=splitOnFirst(nme,"=");rme===void 0&&(rme=nme),ime=ime===void 0?null:["comma","separator","bracket-separator"].includes(eme.arrayFormat)?ime:decode(ime,eme),$P(decode(rme,eme),ime,tme)}for(const[ame,nme]of Object.entries(tme))if(typeof nme=="object"&&nme!==null)for(const[rme,ime]of Object.entries(nme))nme[rme]=parseValue(ime,eme);else tme[ame]=parseValue(nme,eme);return eme.sort===!1?tme:(eme.sort===!0?Object.keys(tme).sort():Object.keys(tme).sort(eme.sort)).reduce((ame,nme)=>{const rme=tme[nme];return ame[nme]=rme&&typeof rme=="object"&&!Array.isArray(rme)?keysSorter(rme):rme,ame},Object.create(null))}function stringify$1(x_,eme){if(!x_)return"";eme={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...eme},validateArrayFormatSeparator(eme.arrayFormatSeparator);const $P=rme=>eme.skipNull&&isNullOrUndefined(x_[rme])||eme.skipEmptyString&&x_[rme]==="",tme=encoderForArrayFormat(eme),ame={};for(const[rme,ime]of Object.entries(x_))$P(rme)||(ame[rme]=ime);const nme=Object.keys(ame);return eme.sort!==!1&&nme.sort(eme.sort),nme.map(rme=>{const ime=x_[rme];return ime===void 0?"":ime===null?encode$1(rme,eme):Array.isArray(ime)?ime.length===0&&eme.arrayFormat==="bracket-separator"?encode$1(rme,eme)+"[]":ime.reduce(tme(rme),[]).join("&"):encode$1(rme,eme)+"="+encode$1(ime,eme)}).filter(rme=>rme.length>0).join("&")}function parseUrl(x_,eme){var ame;eme={decode:!0,...eme};let[$P,tme]=splitOnFirst(x_,"#");return $P===void 0&&($P=x_),{url:((ame=$P==null?void 0:$P.split("?"))==null?void 0:ame[0])??"",query:parse$1(extract(x_),eme),...eme&&eme.parseFragmentIdentifier&&tme?{fragmentIdentifier:decode(tme,eme)}:{}}}function stringifyUrl(x_,eme){eme={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...eme};const $P=removeHash(x_.url).split("?")[0]||"",tme=extract(x_.url),ame={...parse$1(tme,{sort:!1}),...x_.query};let nme=stringify$1(ame,eme);nme&&(nme=`?${nme}`);let rme=getHash(x_.url);if(x_.fragmentIdentifier){const ime=new URL($P);ime.hash=x_.fragmentIdentifier,rme=eme[encodeFragmentIdentifier]?ime.hash:`#${x_.fragmentIdentifier}`}return`${$P}${nme}${rme}`}function pick(x_,eme,$P){$P={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...$P};const{url:tme,query:ame,fragmentIdentifier:nme}=parseUrl(x_,$P);return stringifyUrl({url:tme,query:includeKeys(ame,eme),fragmentIdentifier:nme},$P)}function exclude(x_,eme,$P){const tme=Array.isArray(eme)?ame=>!eme.includes(ame):(ame,nme)=>!eme(ame,nme);return pick(x_,tme,$P)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse:parse$1,parseUrl,pick,stringify:stringify$1,stringifyUrl},Symbol.toStringTag,{value:"Module"}));var lib$3={},Scrollbars={},raf$1={exports:{}},performanceNow={exports:{}};(function(){var x_,eme,$P,tme,ame,nme;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow.exports=function(){return(x_()-ame)/1e6},eme=process.hrtime,x_=function(){var rme;return rme=eme(),rme[0]*1e9+rme[1]},tme=x_(),nme=process.uptime()*1e9,ame=tme-nme):Date.now?(performanceNow.exports=function(){return Date.now()-$P},$P=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-$P},$P=new Date().getTime())}).call(commonjsGlobal$1);var performanceNowExports=performanceNow.exports,now$1=performanceNowExports,root$1=typeof window>"u"?commonjsGlobal$1:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root$1["request"+suffix],caf=root$1["cancel"+suffix]||root$1["cancelRequest"+suffix];for(var i$2=0;!raf&&i$2<vendors.length;i$2++)raf=root$1[vendors[i$2]+"Request"+suffix],caf=root$1[vendors[i$2]+"Cancel"+suffix]||root$1[vendors[i$2]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id$1=0,queue=[],frameDuration=1e3/60;raf=function(x_){if(queue.length===0){var eme=now$1(),$P=Math.max(0,frameDuration-(eme-last));last=$P+eme,setTimeout(function(){var tme=queue.slice(0);queue.length=0;for(var ame=0;ame<tme.length;ame++)if(!tme[ame].cancelled)try{tme[ame].callback(last)}catch(nme){setTimeout(function(){throw nme},0)}},Math.round($P))}return queue.push({handle:++id$1,callback:x_,cancelled:!1}),id$1},caf=function(x_){for(var eme=0;eme<queue.length;eme++)queue[eme].handle===x_&&(queue[eme].cancelled=!0)}}raf$1.exports=function(x_){return raf.call(root$1,x_)};var cancel=raf$1.exports.cancel=function(){caf.apply(root$1,arguments)};raf$1.exports.polyfill=function(x_){x_||(x_=root$1),x_.requestAnimationFrame=raf,x_.cancelAnimationFrame=caf};var rafExports=raf$1.exports;const request=getDefaultExportFromCjs(rafExports);var domCss={exports:{}},div=null,prefixes$1=["Webkit","Moz","O","ms"],prefixStyle=function(eme){div||(div=document.createElement("div"));var $P=div.style;if(eme in $P)return eme;for(var tme=eme.charAt(0).toUpperCase()+eme.slice(1),ame=prefixes$1.length;ame>=0;ame--){var nme=prefixes$1[ame]+tme;if(nme in $P)return nme}return!1},toNoCase_1=toNoCase,hasSpace=/\s/,hasSeparator=/(_|-|\.|:)/,hasCamel=/([a-z][A-Z]|[A-Z][a-z])/;function toNoCase(x_){return hasSpace.test(x_)?x_.toLowerCase():hasSeparator.test(x_)?(unseparate(x_)||x_).toLowerCase():hasCamel.test(x_)?uncamelize(x_).toLowerCase():x_.toLowerCase()}var separatorSplitter=/[\W_]+(.|$)/g;function unseparate(x_){return x_.replace(separatorSplitter,function(eme,$P){return $P?" "+$P:""})}var camelSplitter=/(.)([A-Z]+)/g;function uncamelize(x_){return x_.replace(camelSplitter,function(eme,$P,tme){return $P+" "+tme.toLowerCase().split("").join(" ")})}var clean=toNoCase_1,toSpaceCase_1=toSpaceCase;function toSpaceCase(x_){return clean(x_).replace(/[\W_]+(.|$)/g,function(eme,$P){return $P?" "+$P:""}).trim()}var space=toSpaceCase_1,toCamelCase_1=toCamelCase$1;function toCamelCase$1(x_){return space(x_).replace(/\s(\w)/g,function(eme,$P){return $P.toUpperCase()})}var IS_UNITLESS={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},addPxToStyle$1=function(x_,eme){return typeof eme=="number"&&!IS_UNITLESS[x_]?eme+"px":eme},prefix=prefixStyle,toCamelCase=toCamelCase_1,cache={float:"cssFloat"},addPxToStyle=addPxToStyle$1;function style$1(x_,eme,$P){var tme=cache[eme];if(typeof tme>"u"&&(tme=detect(eme)),tme){if($P===void 0)return x_.style[tme];x_.style[tme]=addPxToStyle(tme,$P)}}function each(x_,eme){for(var $P in eme)eme.hasOwnProperty($P)&&style$1(x_,$P,eme[$P])}function detect(x_){var eme=toCamelCase(x_),$P=prefix(eme);return cache[eme]=cache[x_]=cache[$P]=$P,$P}function set$2(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:each(arguments[0],arguments[1]):style$1(arguments[0],arguments[1],arguments[2])}domCss.exports=set$2;domCss.exports.set=set$2;domCss.exports.get=function(x_,eme){return Array.isArray(eme)?eme.reduce(function($P,tme){return $P[tme]=style$1(x_,tme||""),$P},{}):style$1(x_,eme||"")};var domCssExports=domCss.exports,isString$2={};(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=eme;function eme($P){return typeof $P=="string"}})(isString$2);var getScrollbarWidth={};(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=nme;var eme=domCssExports,$P=tme(eme);function tme(rme){return rme&&rme.__esModule?rme:{default:rme}}var ame=!1;function nme(){if(ame!==!1)return ame;if(typeof document<"u"){var rme=document.createElement("div");(0,$P.default)(rme,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(rme),ame=rme.offsetWidth-rme.clientWidth,document.body.removeChild(rme)}else ame=0;return ame||0}})(getScrollbarWidth);var returnFalse={};(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=eme;function eme(){return!1}})(returnFalse);var getInnerWidth={};(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=eme;function eme($P){var tme=$P.clientWidth,ame=getComputedStyle($P),nme=ame.paddingLeft,rme=ame.paddingRight;return tme-parseFloat(nme)-parseFloat(rme)}})(getInnerWidth);var getInnerHeight={};(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.default=eme;function eme($P){var tme=$P.clientHeight,ame=getComputedStyle($P),nme=ame.paddingTop,rme=ame.paddingBottom;return tme-parseFloat(nme)-parseFloat(rme)}})(getInnerHeight);var styles={};Object.defineProperty(styles,"__esModule",{value:!0});styles.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"};styles.containerStyleAutoHeight={height:"auto"};styles.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"};styles.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0};styles.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0};styles.trackHorizontalStyleDefault={position:"absolute",height:6};styles.trackVerticalStyleDefault={position:"absolute",width:6};styles.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"};styles.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"};styles.disableSelectStyle={userSelect:"none"};styles.disableSelectStyleReset={userSelect:""};var defaultRenderElements={};Object.defineProperty(defaultRenderElements,"__esModule",{value:!0});var _extends$2_=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_};defaultRenderElements.renderViewDefault=renderViewDefault;defaultRenderElements.renderTrackHorizontalDefault=renderTrackHorizontalDefault;defaultRenderElements.renderTrackVerticalDefault=renderTrackVerticalDefault;defaultRenderElements.renderThumbHorizontalDefault=renderThumbHorizontalDefault;defaultRenderElements.renderThumbVerticalDefault=renderThumbVerticalDefault;var _react$7=reactExports,_react2$6=_interopRequireDefault$j(_react$7);function _interopRequireDefault$j(x_){return x_&&x_.__esModule?x_:{default:x_}}function _objectWithoutProperties$3(x_,eme){var $P={};for(var tme in x_)eme.indexOf(tme)>=0||Object.prototype.hasOwnProperty.call(x_,tme)&&($P[tme]=x_[tme]);return $P}function renderViewDefault(x_){return _react2$6.default.createElement("div",x_)}function renderTrackHorizontalDefault(x_){var eme=x_.style,$P=_objectWithoutProperties$3(x_,["style"]),tme=_extends$2_({},eme,{right:2,bottom:2,left:2,borderRadius:3});return _react2$6.default.createElement("div",_extends$2_({style:tme},$P))}function renderTrackVerticalDefault(x_){var eme=x_.style,$P=_objectWithoutProperties$3(x_,["style"]),tme=_extends$2_({},eme,{right:2,bottom:2,top:2,borderRadius:3});return _react2$6.default.createElement("div",_extends$2_({style:tme},$P))}function renderThumbHorizontalDefault(x_){var eme=x_.style,$P=_objectWithoutProperties$3(x_,["style"]),tme=_extends$2_({},eme,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return _react2$6.default.createElement("div",_extends$2_({style:tme},$P))}function renderThumbVerticalDefault(x_){var eme=x_.style,$P=_objectWithoutProperties$3(x_,["style"]),tme=_extends$2_({},eme,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return _react2$6.default.createElement("div",_extends$2_({style:tme},$P))}(function(x_){Object.defineProperty(x_,"__esModule",{value:!0});var eme=Object.assign||function(Tme){for(var Ome=1;Ome<arguments.length;Ome++){var Rme=arguments[Ome];for(var Nme in Rme)Object.prototype.hasOwnProperty.call(Rme,Nme)&&(Tme[Nme]=Rme[Nme])}return Tme},$P=function(){function Tme(Ome,Rme){for(var Nme=0;Nme<Rme.length;Nme++){var Ime=Rme[Nme];Ime.enumerable=Ime.enumerable||!1,Ime.configurable=!0,"value"in Ime&&(Ime.writable=!0),Object.defineProperty(Ome,Ime.key,Ime)}}return function(Ome,Rme,Nme){return Rme&&Tme(Ome.prototype,Rme),Nme&&Tme(Ome,Nme),Ome}}(),tme=rafExports,ame=_me(tme),nme=domCssExports,rme=_me(nme),ime=reactExports,ome=propTypesExports,lme=_me(ome),sme=isString$2,cme=_me(sme),dme=getScrollbarWidth,ume=_me(dme),fme=returnFalse,pme=_me(fme),hme=getInnerWidth,bme=_me(hme),mme=getInnerHeight,vme=_me(mme),gme=styles,yme=defaultRenderElements;function _me(Tme){return Tme&&Tme.__esModule?Tme:{default:Tme}}function $me(Tme,Ome){var Rme={};for(var Nme in Tme)Ome.indexOf(Nme)>=0||Object.prototype.hasOwnProperty.call(Tme,Nme)&&(Rme[Nme]=Tme[Nme]);return Rme}function Cme(Tme,Ome){if(!(Tme instanceof Ome))throw new TypeError("Cannot call a class as a function")}function Sme(Tme,Ome){if(!Tme)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ome&&(typeof Ome=="object"||typeof Ome=="function")?Ome:Tme}function Eme(Tme,Ome){if(typeof Ome!="function"&&Ome!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ome);Tme.prototype=Object.create(Ome&&Ome.prototype,{constructor:{value:Tme,enumerable:!1,writable:!0,configurable:!0}}),Ome&&(Object.setPrototypeOf?Object.setPrototypeOf(Tme,Ome):Tme.__proto__=Ome)}var xme=function(Tme){Eme(Ome,Tme);function Ome(Rme){var Nme;Cme(this,Ome);for(var Ime=arguments.length,Pme=Array(Ime>1?Ime-1:0),Mme=1;Mme<Ime;Mme++)Pme[Mme-1]=arguments[Mme];var kme=Sme(this,(Nme=Ome.__proto__||Object.getPrototypeOf(Ome)).call.apply(Nme,[this,Rme].concat(Pme)));return kme.getScrollLeft=kme.getScrollLeft.bind(kme),kme.getScrollTop=kme.getScrollTop.bind(kme),kme.getScrollWidth=kme.getScrollWidth.bind(kme),kme.getScrollHeight=kme.getScrollHeight.bind(kme),kme.getClientWidth=kme.getClientWidth.bind(kme),kme.getClientHeight=kme.getClientHeight.bind(kme),kme.getValues=kme.getValues.bind(kme),kme.getThumbHorizontalWidth=kme.getThumbHorizontalWidth.bind(kme),kme.getThumbVerticalHeight=kme.getThumbVerticalHeight.bind(kme),kme.getScrollLeftForOffset=kme.getScrollLeftForOffset.bind(kme),kme.getScrollTopForOffset=kme.getScrollTopForOffset.bind(kme),kme.scrollLeft=kme.scrollLeft.bind(kme),kme.scrollTop=kme.scrollTop.bind(kme),kme.scrollToLeft=kme.scrollToLeft.bind(kme),kme.scrollToTop=kme.scrollToTop.bind(kme),kme.scrollToRight=kme.scrollToRight.bind(kme),kme.scrollToBottom=kme.scrollToBottom.bind(kme),kme.handleTrackMouseEnter=kme.handleTrackMouseEnter.bind(kme),kme.handleTrackMouseLeave=kme.handleTrackMouseLeave.bind(kme),kme.handleHorizontalTrackMouseDown=kme.handleHorizontalTrackMouseDown.bind(kme),kme.handleVerticalTrackMouseDown=kme.handleVerticalTrackMouseDown.bind(kme),kme.handleHorizontalThumbMouseDown=kme.handleHorizontalThumbMouseDown.bind(kme),kme.handleVerticalThumbMouseDown=kme.handleVerticalThumbMouseDown.bind(kme),kme.handleWindowResize=kme.handleWindowResize.bind(kme),kme.handleScroll=kme.handleScroll.bind(kme),kme.handleDrag=kme.handleDrag.bind(kme),kme.handleDragEnd=kme.handleDragEnd.bind(kme),kme.state={didMountUniversal:!1},kme}return $P(Ome,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var Nme=this.props.universal;Nme&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,tme.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var Nme=this.view||{},Ime=Nme.scrollLeft,Pme=Ime===void 0?0:Ime,Mme=Nme.scrollTop,kme=Mme===void 0?0:Mme,Bme=Nme.scrollWidth,Dme=Bme===void 0?0:Bme,jme=Nme.scrollHeight,Vme=jme===void 0?0:jme,Wme=Nme.clientWidth,Lme=Wme===void 0?0:Wme,zme=Nme.clientHeight,Ume=zme===void 0?0:zme;return{left:Pme/(Dme-Lme)||0,top:kme/(Vme-Ume)||0,scrollLeft:Pme,scrollTop:kme,scrollWidth:Dme,scrollHeight:Vme,clientWidth:Lme,clientHeight:Ume}}},{key:"getThumbHorizontalWidth",value:function(){var Nme=this.props,Ime=Nme.thumbSize,Pme=Nme.thumbMinSize,Mme=this.view,kme=Mme.scrollWidth,Bme=Mme.clientWidth,Dme=(0,bme.default)(this.trackHorizontal),jme=Math.ceil(Bme/kme*Dme);return Dme===jme?0:Ime||Math.max(jme,Pme)}},{key:"getThumbVerticalHeight",value:function(){var Nme=this.props,Ime=Nme.thumbSize,Pme=Nme.thumbMinSize,Mme=this.view,kme=Mme.scrollHeight,Bme=Mme.clientHeight,Dme=(0,vme.default)(this.trackVertical),jme=Math.ceil(Bme/kme*Dme);return Dme===jme?0:Ime||Math.max(jme,Pme)}},{key:"getScrollLeftForOffset",value:function(Nme){var Ime=this.view,Pme=Ime.scrollWidth,Mme=Ime.clientWidth,kme=(0,bme.default)(this.trackHorizontal),Bme=this.getThumbHorizontalWidth();return Nme/(kme-Bme)*(Pme-Mme)}},{key:"getScrollTopForOffset",value:function(Nme){var Ime=this.view,Pme=Ime.scrollHeight,Mme=Ime.clientHeight,kme=(0,vme.default)(this.trackVertical),Bme=this.getThumbVerticalHeight();return Nme/(kme-Bme)*(Pme-Mme)}},{key:"scrollLeft",value:function(){var Nme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=Nme)}},{key:"scrollTop",value:function(){var Nme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=Nme)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var Nme=this.view,Ime=this.trackHorizontal,Pme=this.trackVertical,Mme=this.thumbHorizontal,kme=this.thumbVertical;Nme.addEventListener("scroll",this.handleScroll),(0,ume.default)()&&(Ime.addEventListener("mouseenter",this.handleTrackMouseEnter),Ime.addEventListener("mouseleave",this.handleTrackMouseLeave),Ime.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),Pme.addEventListener("mouseenter",this.handleTrackMouseEnter),Pme.addEventListener("mouseleave",this.handleTrackMouseLeave),Pme.addEventListener("mousedown",this.handleVerticalTrackMouseDown),Mme.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),kme.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var Nme=this.view,Ime=this.trackHorizontal,Pme=this.trackVertical,Mme=this.thumbHorizontal,kme=this.thumbVertical;Nme.removeEventListener("scroll",this.handleScroll),(0,ume.default)()&&(Ime.removeEventListener("mouseenter",this.handleTrackMouseEnter),Ime.removeEventListener("mouseleave",this.handleTrackMouseLeave),Ime.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),Pme.removeEventListener("mouseenter",this.handleTrackMouseEnter),Pme.removeEventListener("mouseleave",this.handleTrackMouseLeave),Pme.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),Mme.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),kme.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(Nme){var Ime=this,Pme=this.props,Mme=Pme.onScroll,kme=Pme.onScrollFrame;Mme&&Mme(Nme),this.update(function(Bme){var Dme=Bme.scrollLeft,jme=Bme.scrollTop;Ime.viewScrollLeft=Dme,Ime.viewScrollTop=jme,kme&&kme(Bme)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var Nme=this.props.onScrollStart;Nme&&Nme(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var Nme=this.props.autoHide;Nme&&this.showTracks()}},{key:"handleScrollStop",value:function(){var Nme=this.props.onScrollStop;Nme&&Nme(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var Nme=this.props.autoHide;Nme&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(Nme){Nme.preventDefault();var Ime=Nme.target,Pme=Nme.clientX,Mme=Ime.getBoundingClientRect(),kme=Mme.left,Bme=this.getThumbHorizontalWidth(),Dme=Math.abs(kme-Pme)-Bme/2;this.view.scrollLeft=this.getScrollLeftForOffset(Dme)}},{key:"handleVerticalTrackMouseDown",value:function(Nme){Nme.preventDefault();var Ime=Nme.target,Pme=Nme.clientY,Mme=Ime.getBoundingClientRect(),kme=Mme.top,Bme=this.getThumbVerticalHeight(),Dme=Math.abs(kme-Pme)-Bme/2;this.view.scrollTop=this.getScrollTopForOffset(Dme)}},{key:"handleHorizontalThumbMouseDown",value:function(Nme){Nme.preventDefault(),this.handleDragStart(Nme);var Ime=Nme.target,Pme=Nme.clientX,Mme=Ime.offsetWidth,kme=Ime.getBoundingClientRect(),Bme=kme.left;this.prevPageX=Mme-(Pme-Bme)}},{key:"handleVerticalThumbMouseDown",value:function(Nme){Nme.preventDefault(),this.handleDragStart(Nme);var Ime=Nme.target,Pme=Nme.clientY,Mme=Ime.offsetHeight,kme=Ime.getBoundingClientRect(),Bme=kme.top;this.prevPageY=Mme-(Pme-Bme)}},{key:"setupDragging",value:function(){(0,rme.default)(document.body,gme.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=pme.default}},{key:"teardownDragging",value:function(){(0,rme.default)(document.body,gme.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(Nme){this.dragging=!0,Nme.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(Nme){if(this.prevPageX){var Ime=Nme.clientX,Pme=this.trackHorizontal.getBoundingClientRect(),Mme=Pme.left,kme=this.getThumbHorizontalWidth(),Bme=kme-this.prevPageX,Dme=-Mme+Ime-Bme;this.view.scrollLeft=this.getScrollLeftForOffset(Dme)}if(this.prevPageY){var jme=Nme.clientY,Vme=this.trackVertical.getBoundingClientRect(),Wme=Vme.top,Lme=this.getThumbVerticalHeight(),zme=Lme-this.prevPageY,Ume=-Wme+jme-zme;this.view.scrollTop=this.getScrollTopForOffset(Ume)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var Nme=this.props.autoHide;Nme&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var Nme=this.props.autoHide;Nme&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var Nme=this.props.autoHide;Nme&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,rme.default)(this.trackHorizontal,{opacity:1}),(0,rme.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var Nme=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var Ime=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,rme.default)(Nme.trackHorizontal,{opacity:0}),(0,rme.default)(Nme.trackVertical,{opacity:0})},Ime)}}},{key:"detectScrolling",value:function(){var Nme=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){Nme.lastViewScrollLeft===Nme.viewScrollLeft&&Nme.lastViewScrollTop===Nme.viewScrollTop&&(clearInterval(Nme.detectScrollingInterval),Nme.scrolling=!1,Nme.handleScrollStop()),Nme.lastViewScrollLeft=Nme.viewScrollLeft,Nme.lastViewScrollTop=Nme.viewScrollTop},100))}},{key:"raf",value:function(Nme){var Ime=this;this.requestFrame&&ame.default.cancel(this.requestFrame),this.requestFrame=(0,ame.default)(function(){Ime.requestFrame=void 0,Nme()})}},{key:"update",value:function(Nme){var Ime=this;this.raf(function(){return Ime._update(Nme)})}},{key:"_update",value:function(Nme){var Ime=this.props,Pme=Ime.onUpdate,Mme=Ime.hideTracksWhenNotNeeded,kme=this.getValues();if((0,ume.default)()){var Bme=kme.scrollLeft,Dme=kme.clientWidth,jme=kme.scrollWidth,Vme=(0,bme.default)(this.trackHorizontal),Wme=this.getThumbHorizontalWidth(),Lme=Bme/(jme-Dme)*(Vme-Wme),zme={width:Wme,transform:"translateX("+Lme+"px)"},Ume=kme.scrollTop,Gme=kme.clientHeight,Jme=kme.scrollHeight,Yme=(0,vme.default)(this.trackVertical),Qme=this.getThumbVerticalHeight(),Xme=Ume/(Jme-Gme)*(Yme-Qme),Kme={height:Qme,transform:"translateY("+Xme+"px)"};if(Mme){var Zme={visibility:jme>Dme?"visible":"hidden"},nbe={visibility:Jme>Gme?"visible":"hidden"};(0,rme.default)(this.trackHorizontal,Zme),(0,rme.default)(this.trackVertical,nbe)}(0,rme.default)(this.thumbHorizontal,zme),(0,rme.default)(this.thumbVertical,Kme)}Pme&&Pme(kme),typeof Nme=="function"&&Nme(kme)}},{key:"render",value:function(){var Nme=this,Ime=(0,ume.default)(),Pme=this.props;Pme.onScroll,Pme.onScrollFrame,Pme.onScrollStart,Pme.onScrollStop,Pme.onUpdate;var Mme=Pme.renderView,kme=Pme.renderTrackHorizontal,Bme=Pme.renderTrackVertical,Dme=Pme.renderThumbHorizontal,jme=Pme.renderThumbVertical,Vme=Pme.tagName;Pme.hideTracksWhenNotNeeded;var Wme=Pme.autoHide;Pme.autoHideTimeout;var Lme=Pme.autoHideDuration;Pme.thumbSize,Pme.thumbMinSize;var zme=Pme.universal,Ume=Pme.autoHeight,Gme=Pme.autoHeightMin,Jme=Pme.autoHeightMax,Yme=Pme.style,Qme=Pme.children,Xme=$me(Pme,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),Kme=this.state.didMountUniversal,Zme=eme({},gme.containerStyleDefault,Ume&&eme({},gme.containerStyleAutoHeight,{minHeight:Gme,maxHeight:Jme}),Yme),nbe=eme({},gme.viewStyleDefault,{marginRight:Ime?-Ime:0,marginBottom:Ime?-Ime:0},Ume&&eme({},gme.viewStyleAutoHeight,{minHeight:(0,cme.default)(Gme)?"calc("+Gme+" + "+Ime+"px)":Gme+Ime,maxHeight:(0,cme.default)(Jme)?"calc("+Jme+" + "+Ime+"px)":Jme+Ime}),Ume&&zme&&!Kme&&{minHeight:Gme,maxHeight:Jme},zme&&!Kme&&gme.viewStyleUniversalInitial),lbe={transition:"opacity "+Lme+"ms",opacity:0},ibe=eme({},gme.trackHorizontalStyleDefault,Wme&&lbe,(!Ime||zme&&!Kme)&&{display:"none"}),abe=eme({},gme.trackVerticalStyleDefault,Wme&&lbe,(!Ime||zme&&!Kme)&&{display:"none"});return(0,ime.createElement)(Vme,eme({},Xme,{style:Zme,ref:function(hbe){Nme.container=hbe}}),[(0,ime.cloneElement)(Mme({style:nbe}),{key:"view",ref:function(hbe){Nme.view=hbe}},Qme),(0,ime.cloneElement)(kme({style:ibe}),{key:"trackHorizontal",ref:function(hbe){Nme.trackHorizontal=hbe}},(0,ime.cloneElement)(Dme({style:gme.thumbHorizontalStyleDefault}),{ref:function(hbe){Nme.thumbHorizontal=hbe}})),(0,ime.cloneElement)(Bme({style:abe}),{key:"trackVertical",ref:function(hbe){Nme.trackVertical=hbe}},(0,ime.cloneElement)(jme({style:gme.thumbVerticalStyleDefault}),{ref:function(hbe){Nme.thumbVertical=hbe}}))])}}]),Ome}(ime.Component);x_.default=xme,xme.propTypes={onScroll:lme.default.func,onScrollFrame:lme.default.func,onScrollStart:lme.default.func,onScrollStop:lme.default.func,onUpdate:lme.default.func,renderView:lme.default.func,renderTrackHorizontal:lme.default.func,renderTrackVertical:lme.default.func,renderThumbHorizontal:lme.default.func,renderThumbVertical:lme.default.func,tagName:lme.default.string,thumbSize:lme.default.number,thumbMinSize:lme.default.number,hideTracksWhenNotNeeded:lme.default.bool,autoHide:lme.default.bool,autoHideTimeout:lme.default.number,autoHideDuration:lme.default.number,autoHeight:lme.default.bool,autoHeightMin:lme.default.oneOfType([lme.default.number,lme.default.string]),autoHeightMax:lme.default.oneOfType([lme.default.number,lme.default.string]),universal:lme.default.bool,style:lme.default.object,children:lme.default.node},xme.defaultProps={renderView:yme.renderViewDefault,renderTrackHorizontal:yme.renderTrackHorizontalDefault,renderTrackVertical:yme.renderTrackVerticalDefault,renderThumbHorizontal:yme.renderThumbHorizontalDefault,renderThumbVertical:yme.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(Scrollbars);(function(x_){Object.defineProperty(x_,"__esModule",{value:!0}),x_.Scrollbars=void 0;var eme=Scrollbars,$P=tme(eme);function tme(ame){return ame&&ame.__esModule?ame:{default:ame}}x_.default=$P.default,x_.Scrollbars=$P.default})(lib$3);const LayoutMenu=({mode:x_="inline",theme:eme="light",routeProps:$P=[],collapsed:tme=!1})=>{var Sme;const{getSetting:ame}=useSetting(),nme=useHistory(),rme=nme.location.pathname,ime=queryString.parseUrl(rme).url.slice(1),{routes:ome,defaultRoute:lme,getCurrentRoute:sme}=useRoute(),cme=[ime||lme],dme=(Sme=ime||lme)==null?void 0:Sme.split("/"),ume=dme==null?void 0:dme.slice(0,dme.length-1),[fme,pme]=reactExports.useState(cme),[hme,bme]=reactExports.useState(ume),mme=$P.length>0?$P:ome,vme=reactExports.useMemo(()=>getFlattenRoutes(mme)||[],[mme]);function gme(){const Eme=sme();if(!Eme)return;const xme=Eme.meta.parents.map(Ome=>Ome.path),Tme=Ome=>Ome.replace(/\/create$|\/:id\/edit$|\/:id$/g,"");pme([Eme.path.split("?")[0],Tme(Eme.path),...xme]),x_=="inline"&&bme([...hme,...xme])}reactExports.useEffect(()=>gme(),[rme,mme,tme]);const yme=(Eme=[])=>{var Tme;let xme=[];for(let Ome of Eme)(Tme=Ome.meta)!=null&&Tme.hide||xme.push({key:Ome.path.split("?")[0],label:Ome.meta.title,icon:jsx("div",{className:"!ml-[-2px]",children:jsx(Icon,{icon:Ome.meta.icon})}),children:Ome.children?yme(Ome.children):null});return xme},_me=Eme=>{const xme=vme.find(Tme=>Tme.path.split("?")[0]===Eme.key);if(xme.is_link){window.open(xme.path);return}xme.component.preload().then(()=>nme.push(xme.path))},$me=reactExports.useMemo(()=>{const xme=(Ome=>{const Rme=[],Nme=(Ime,Pme)=>{const Mme=[...Pme,Ime.path];Rme.push(Mme),Ime.children&&Ime.children.length>0&&Ime.children.forEach(kme=>Nme(kme,Mme))};return Ome.forEach(Ime=>Nme(Ime,[])),Rme})(mme),Tme=new Map;return xme.forEach(Ome=>{const Rme=Ome[Ome.length-1];Rme.includes(":")||Tme.set(Rme,Ome)}),Tme},[mme]),Cme=Eme=>{if(!(Eme.length>hme.length)||!ame("system_theme_setting.accordionMenu")){bme(Eme);return}bme($me.get(Eme[Eme.length-1])||[])};return jsx(lib$3.Scrollbars,{autoHide:!0,children:jsx(Menu$2,{className:"!border-e-0 flex-1",mode:x_,theme:eme,openKeys:hme,selectedKeys:fme,onOpenChange:Eme=>Cme(Eme),onClick:_me,items:yme(mme)})})},LayoutLogo=({onlyLogo:x_=!1})=>{const{getSetting:eme}=useSetting(),$P=x_?" w-full":" w-[220px]",tme=()=>eme("system_theme_setting.darkTheme")?"text-[var(--colors-neutral-text-1)]":eme("system_theme_setting.topTheme")==="dark"&&eme("system_theme_setting.layoutMode")=="top-mix"||eme("system_theme_setting.topTheme")==="dark"&&eme("system_theme_setting.layoutMode")=="top"||eme("system_theme_setting.siderTheme")==="dark"&&eme("system_theme_setting.layoutMode")=="default"?"text-white":"text-[var(--colors-neutral-text-1)]";return jsxs("div",{className:"h-[65px] flex justify-center items-center"+$P,children:[eme("logo")&&jsx("div",{className:"w-[35px]",title:eme("app_name"),children:jsx(Image$2,{width:35,preview:!1,src:eme("logo")})}),x_||jsx("div",{className:"text-xl font-medium ml-2 truncate "+tme(),children:eme("app_name")})]})},LayoutBreadcrumb=()=>{const{routes:x_,getCurrentRoute:eme}=useRoute(),{getSetting:$P}=useSetting(),[tme,ame]=reactExports.useState([]),nme=useHistory(),rme=eme(),ime=(lme,sme=!1)=>{const cme={items:lme.children.filter(dme=>{var ume;return!((ume=dme==null?void 0:dme.meta)!=null&&ume.hide)&&dme.path!=rme.path}).map(dme=>{var fme,pme;const ume={key:dme.path,label:(fme=dme.meta)==null?void 0:fme.title};if((pme=dme==null?void 0:dme.children)!=null&&pme.length){const hme=ime(dme,!0);ume.children=hme.length?hme:null}else ume.onClick=()=>nme.push(dme.path);return ume})};return sme?cme.items:cme},ome=()=>{const lme=cme=>{var fme,pme,hme;let dme=null;(fme=cme.children)!=null&&fme.length&&(dme=ime(cme));let ume={title:(pme=cme.meta)==null?void 0:pme.title};return dme&&((hme=dme.items)!=null&&hme.length)&&(ume={...ume,menu:dme}),ume},sme=[];return rme.meta.parents.forEach(cme=>{cme.path!=rme.path&&sme.push(lme(cme))}),sme.push(lme(rme)),sme};return reactExports.useEffect(()=>{rme&&ame(ome()||[])},[rme,x_]),$P("system_theme_setting.breadcrumb")===!1?jsx("div",{}):jsx(Breadcrumb$2,{className:"px-3",items:tme})},IconButton=({onClick:x_,icon:eme=null,children:$P=null,iconClassName:tme=""})=>jsx("div",{className:"text-lg flex justify-center items-center h-full px-2 cursor-pointer",onClick:x_,children:$P||jsx(Icon,{className:tme,icon:eme,fontSize:20})}),RefreshButton=()=>{const[x_,eme]=reactExports.useState(!1);return jsx(IconButton,{icon:"ant-design:reload-outlined",iconClassName:x_?" animate-spin":"",onClick:()=>{eme(!0),window.$owl.refreshAmisPage().then(()=>{setTimeout(()=>eme(!1),500)})}})},FullscreenButton=()=>{const[x_,{toggleFullscreen:eme}]=useFullscreen(document.getElementById("root"));return jsx(IconButton,{icon:x_?"ant-design:fullscreen-exit-outlined":"ant-design:fullscreen-outlined",onClick:()=>eme()})},SettingButton=()=>{const{state:x_,dispatch:eme}=useStore();return jsx(IconButton,{icon:"ant-design:setting-outlined",onClick:()=>{eme({type:"update-open-setting",payload:{openSetting:!x_.openSetting}})}})},DarkThemeButton=()=>{const{getSetting:x_}=useSetting(),{setDarkTheme:eme}=useTheme(),$P=()=>{eme(!x_("system_theme_setting.darkTheme"))};return x_("system_theme_setting.followSystemTheme")?null:jsx(IconButton,{icon:x_("system_theme_setting.darkTheme")?"ant-design:sun-outlined":"ant-design:moon-outlined",onClick:()=>$P()})},LocaleButton=()=>{const{getSetting:x_}=useSetting(),eme=x_("locale_options"),$P=x_("locale"),[tme,ame]=reactExports.useState($P),nme=useRequest(saveSettings,{manual:!0,onBefore:()=>{window.$owl.appLoader()},onSuccess:()=>{localStorage.setItem(getCacheKey("locale"),tme),location.reload()}}),rme=({key:ime})=>{ime!=$P&&(ame(ime),nme.run({admin_locale:ime}))};return jsx(Dropdown,{placement:"bottom",arrow:{pointAtCenter:!0},menu:{items:eme.map(ime=>(ime.key=ime.value,ime)),onClick:rme,selectable:!0,defaultSelectedKeys:[$P]},children:jsx("div",{children:jsx(IconButton,{icon:"ant-design:translation-outlined",onClick:ime=>ime.preventDefault()})})})},LayoutTopBar=()=>{const{userInfo:x_}=useSelector(tme=>tme),{getSetting:eme}=useSetting(),$P=()=>eme("system_theme_setting.topTheme")=="dark"&&eme("system_theme_setting.layoutMode")!="double";return jsxs("div",{className:"h-full flex justify-around items-center",children:[eme("nav.prependNav")&&jsx(AmisRender,{schema:eme("nav.prependNav")}),eme("layout.header.refresh")&&jsx(RefreshButton,{}),eme("layout.header.dark")&&jsx(DarkThemeButton,{}),eme("layout.header.full_screen")&&jsx(FullscreenButton,{}),eme("layout.header.locale_toggle")&&jsx(LocaleButton,{}),eme("layout.header.theme_config")&&jsx(SettingButton,{}),eme("nav.appendNav")&&jsx(AmisRender,{schema:eme("nav.appendNav")}),jsx("div",{className:"user-navbar bg-transparent h-full cursor-pointer min-w-[120px]",style:$P()?{"--colors-neutral-text-1":"#fff"}:{},children:jsx(AmisRender,{className:"h-full !text-white min-w-[120px]",schema:x_==null?void 0:x_.menus})})]})},CollapseTrigger=({collapsed:x_,toggle:eme})=>jsx(IconButton,{onClick:()=>eme(!x_),children:jsxs("div",{className:"p-1 h-full flex justify-center items-center",children:[x_&&jsx(Icon,{icon:"ant-design:menu-unfold-outlined",fontSize:18}),x_||jsx(Icon,{icon:"ant-design:menu-fold-outlined",fontSize:18})]})});var main={},cssList_1,colorRegExp_1;Object.defineProperty(main,"__esModule",{value:!0});main.toCssLowerCase=toCssLowerCase;main.toStyleUpperCase=toStyleUpperCase;main.toFixed=toFixed;main.createMatrix=createMatrix;var checkStyleName_1=main.checkStyleName=checkStyleName,getGsapType_1=main.getGsapType=getGsapType,parseColor_1=main.parseColor=parseColor,parseShadow_1=main.parseShadow=parseShadow,getColor_1=main.getColor=getColor;main.isTransform=isTransform;var isConvert_1=main.isConvert=isConvert,splitFilterToObject_1=main.splitFilterToObject=splitFilterToObject;main.getMatrix=getMatrix;var getTransform_1=main.getTransform=getTransform,stylesToCss_1=main.stylesToCss=stylesToCss;main.getUnit=getUnit;main.getValues=getValues;main.findStyleByName=findStyleByName;main.mergeStyle=mergeStyle;var isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!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},prefixes=["Webkit","ms","Moz","O"];function prefixKey(x_,eme){return x_+eme.charAt(0).toUpperCase()+eme.substring(1)}Object.keys(isUnitlessNumber).forEach(function(x_){prefixes.forEach(function(eme){isUnitlessNumber[prefixKey(eme,x_)]=isUnitlessNumber[x_]})});var unquotedContentValueRegex=/^(normal|none|(\b(url\([^)]*\)|chapter_counter|attr\([^)]*\)|(no-)?(open|close)-quote|inherit)((\b\s*)|$|\s+))+)$/,IE$1=function(){return typeof document>"u"?!1:!!(navigator&&(navigator.userAgent.indexOf("MSIE 8.0")>0||navigator.userAgent.indexOf("MSIE 9.0")>0))}(),rnd=1e5,colorLookup={aqua:[0,255,255,1],lime:[0,255,0,1],silver:[192,192,192,1],black:[0,0,0,1],maroon:[128,0,0,1],teal:[0,128,128,1],blue:[0,0,255,1],navy:[0,0,128,1],white:[255,255,255,1],fuchsia:[255,0,255,1],olive:[128,128,0,1],yellow:[255,255,0,1],orange:[255,165,0,1],gray:[128,128,128,1],purple:[128,0,128,1],green:[0,128,0,1],red:[255,0,0,1],pink:[255,192,203,1],cyan:[0,255,255,1],transparent:[255,255,255,0]},RAD2DEG=180/Math.PI,$cssList={_lists:{transformsBase:["translate","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ","rotate"],transforms3D:["translate3d","translateZ","scaleZ","rotateX","rotateY","perspective"]},transformGroup:{translate:1,translate3d:1,scale:1,scale3d:1,rotate:1,rotate3d:1,skew:1},filter:["grayScale","sepia","hueRotate","invert","brightness","contrast","blur"],filterConvert:{grayScale:"grayscale",hueRotate:"hue-rotate"}};$cssList._lists.transformsBase=IE$1?$cssList._lists.transformsBase:$cssList._lists.transformsBase.concat($cssList._lists.transforms3D);var hexExp=main.hexExp=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})/;main.rgbAndHslExp=/((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%|)),[\s+]?(?:\d|\.\d)+(?:(deg|\%|)),[\s+]?(?:\d|\.\d)+(?:(deg|%|))(,[\s+]?(?:\d|\.\d)+(?:(deg|\%|)))?\)/;colorRegExp_1=main.colorRegExp=/#([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{3})|((rgb|hsl)[a]?)+\((?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|\%)?),[\s+]?(?:\d|\.\d)+(?:(deg|%)?)(,[\s+]?(?:\d|\.\d)+(?:(deg|\%)?))?\)/;var colorNumExp=main.colorNumExp=/(?:\d|\.\d)+(%?)/g,cssList=cssList_1=main.cssList=$cssList;function toCssLowerCase(x_){return x_.replace(/[A-Z]/,function(eme){return"-"+eme.toLocaleLowerCase()})}function toStyleUpperCase(x_){return x_.replace(/-(.?)/g,function(eme){return eme.replace("-","").toLocaleUpperCase()})}function toFixed(x_,eme){var $P=eme?Math.pow(10,eme):rnd,tme=x_|0,ame=x_-tme,nme=x_;if(ame){var rme=(ame*$P+(x_<0?-.5:.5)|0)/$P,ime=rme|0,ome=rme.toString(),lme=ome.split(".")[1]||"";nme=(x_<0&&!(tme+ime)?"-":"")+(tme+ime)+"."+lme}return parseFloat(nme)}function createMatrix(x_){if(typeof document>"u")return null;var eme=["WebKitCSS","MozCSS","DOM","MsCSS","MSCSS","OCSS","CSS"].filter(function($P){return $P+"Matrix"in window});return eme.length?new window[eme[0]+"Matrix"](x_):(console.warn("Browsers do not support matrix."),"")}function checkStyleName(x_){if(typeof document>"u")return null;var eme=["O","Moz","ms","Ms","Webkit"];if(x_!=="filter"&&x_ in document.body.style)return x_;var $P=x_.charAt(0).toUpperCase()+x_.substr(1),tme=eme.filter(function(ame){return""+ame+$P in document.body.style});return tme[0]?""+tme[0]+$P:null}function getGsapType(x_){var eme=x_;return eme=eme==="x"?"translateX":eme,eme=eme==="y"?"translateY":eme,eme=eme==="z"?"translateZ":eme,eme}var hueToRgb=function(eme,$P,tme){return tme<0&&(tme+=6),tme>=6&&(tme-=6),tme<1?($P-eme)*tme+eme:tme<3?$P:tme<4?($P-eme)*(4-tme)+eme:eme};function parseColor(x_){var eme=colorLookup.transparent,$P=x_,tme=void 0,ame=void 0,nme=void 0;if(!$P)eme=colorLookup.transparent;else if(colorLookup[$P])eme=colorLookup[$P];else if(typeof $P=="number")eme=[$P>>16,$P>>8&255,$P&255];else if($P.charAt($P.length-1)===","&&($P=$P.substr(0,$P.length-1)),$P.match(hexExp))$P=$P.substr(1),$P.length===3&&(tme=$P.charAt(0),ame=$P.charAt(1),nme=$P.charAt(2),$P=""+tme+tme+ame+ame+nme+nme+"ff"),$P.length===6&&($P+="ff"),$P=parseInt($P,16),eme=[$P>>24&255,$P>>16&255,$P>>8&255,parseFloat((($P&255)/255).toFixed(2))];else if($P.match(/^hsl/)){eme=$P.match(colorNumExp);var rme=eme[3];rme=typeof rme=="string"&&rme.match("%")?parseFloat(rme)/100:parseFloat(""+(rme||"1"));var ime=parseFloat(eme[0])/60,ome=parseFloat(eme[1])/100,lme=parseFloat(eme[2])/100,sme=lme<=.5?lme*(ome+1):lme+ome-lme*ome,cme=lme*2-sme;tme=Math.round(hueToRgb(cme,sme,ime+2)*255),ame=Math.round(hueToRgb(cme,sme,ime)*255),nme=Math.round(hueToRgb(cme,sme,ime-2)*255),eme=[tme,ame,nme,rme]}else eme=$P.match(colorNumExp)||colorLookup.transparent,eme=eme.map(function(dme){return parseFloat(dme)}),eme.length===3&&eme.push(1);return eme}function parseShadow(x_,eme){var $P=eme&&toStyleUpperCase(eme);if(!x_)return $P==="boxShadow"?[0,0,0,0,0,0,0,0]:[0,0,0,0,0,0,0];var tme=x_.replace(/,\s+/gi,",").split(/\s+/).filter(function(ome){return ome}),ame=tme.indexOf("inset");ame>=0&&tme.splice(ame,1);var nme=tme.find(function(ome){return colorLookup[ome]||ome.match(/#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})|(rgb|hsl)+(?:a)?\((.*)\)/i)})||"black",rme=tme.indexOf(nme);tme.splice(rme,1);var ime=parseColor(nme);return ime[3]=typeof ime[3]=="number"?ime[3]:1,$P==="boxShadow"&&tme.length<4&&tme.push(0),tme.concat(ime,ame>=0?["inset"]:[])}function getColor(x_){var eme=x_.length===4?"rgba":"rgb",$P=x_.map(function(tme,ame){return ame<3?Math.round(tme):tme});return eme+"("+$P.join(",")+")"}function isTransform(x_){return cssList._lists.transformsBase.indexOf(x_)>=0?"transform":x_}function isConvert(x_){var eme=isTransform(x_);return cssList.filter.indexOf(eme)>=0?"filter":eme}function splitFilterToObject(x_){if(x_==="none"||!x_||x_==="")return null;var eme=x_.replace(/\s+/g,"").split(")").filter(function(tme){return tme}),$P={};return eme.forEach(function(tme){var ame=tme.split("(");$P[ame[0]]=ame[1]}),$P}function getMatrix(x_){var eme=x_.match(/(?:\-|\b)[\d\-\.e]+\b/gi),$P={};return eme.length===6?($P.m11=parseFloat(eme[0]),$P.m12=parseFloat(eme[1]),$P.m13=0,$P.m14=0,$P.m21=parseFloat(eme[2]),$P.m22=parseFloat(eme[3]),$P.m23=0,$P.m24=0,$P.m31=0,$P.m32=0,$P.m33=1,$P.m34=0,$P.m41=parseFloat(eme[4]),$P.m42=parseFloat(eme[5]),$P.m43=0,$P.m44=0):eme.forEach(function(tme,ame){var nme=ame%4+1,rme=Math.floor(ame/4)+1;$P["m"+rme+nme]=parseFloat(tme)}),$P}function transformNoMatrix(x_){var eme={};return eme.translateX=0,eme.translateY=0,eme.translateZ=0,eme.rotate=0,eme.rotateX=0,eme.rotateY=0,eme.scaleX=1,eme.scaleY=1,eme.scaleZ=1,eme.skewX=0,eme.skewY=0,eme.perspective=0,(x_.trim().match(/(\w+)\([^\)]+\)/ig)||[]).forEach(function($P){var tme=$P.split("("),ame=tme[0].trim(),nme=tme[1].replace(")","").trim();nme.match(/%|em|rem/ig)&&console.warn("value("+nme+") must be absolute, not relative, has been converted to absolute."),nme=nme.replace(/px|deg|\)/ig,""),cssList.transformGroup[ame]&&ame!=="rotate"?(nme=nme.split(",").map(function(rme){return parseFloat(rme)}),ame==="scale3d"||ame==="translate3d"?["X","Y","Z"].forEach(function(rme,ime){var ome=ame.substring(0,ame.length-2);eme[""+ome+rme]=nme[ime]||eme[""+ome+rme]}):ame==="rotate3d"?(eme.rotateX=nme[0]&&nme[3]||eme.rotateX,eme.rotateY=nme[1]&&nme[3]||eme.rotateY,eme.rotate=nme[2]&&nme[3]||eme.rotate):["X","Y"].forEach(function(rme,ime){eme[""+ame+rme]=nme[ime]||eme[""+ame+rme]})):ame==="rotateZ"?eme.rotate=parseFloat(nme)||eme.rotate:eme[ame]=parseFloat(nme)||eme[ame]}),eme}function getTransform(x_){var eme=!x_||x_==="none"||x_===""?"matrix(1, 0, 0, 1, 0, 0)":x_;if(!eme.match("matrix"))return transformNoMatrix(x_);var $P=getMatrix(eme),tme=$P.m11,ame=$P.m12,nme=$P.m13,rme=$P.m14,ime=$P.m21,ome=$P.m22,lme=$P.m23,sme=$P.m24,cme=$P.m31,dme=$P.m32,ume=$P.m33,fme=$P.m34,pme=$P.m43,hme=void 0,bme=void 0,mme=void 0,vme={},gme=Math.atan2(lme,ume),yme=Math.tan(ime),_me=Math.tan(ame),$me=void 0,Cme=void 0;return vme.rotateX=toFixed(gme*RAD2DEG)||0,gme&&($me=Math.cos(-gme),Cme=Math.sin(-gme),hme=ime*$me+cme*Cme,bme=ome*$me+dme*Cme,mme=lme*$me+ume*Cme,cme=ime*-Cme+cme*$me,dme=ome*-Cme+dme*$me,ume=lme*-Cme+ume*$me,fme=sme*-Cme+fme*$me,ime=hme,ome=bme,lme=mme),gme=Math.atan2(-nme,ume),vme.rotateY=toFixed(gme*RAD2DEG)||0,gme&&($me=Math.cos(-gme),Cme=Math.sin(-gme),hme=tme*$me-cme*Cme,bme=ame*$me-dme*Cme,mme=nme*$me-ume*Cme,dme=ame*Cme+dme*$me,ume=nme*Cme+ume*$me,fme=rme*Cme+fme*$me,tme=hme,ame=bme,nme=mme),gme=Math.atan2(ame,tme),vme.rotate=toFixed(gme*RAD2DEG)||0,gme&&($me=Math.cos(gme),Cme=Math.sin(gme),hme=tme*$me+ame*Cme,bme=ime*$me+ome*Cme,mme=cme*$me+dme*Cme,ame=ame*$me-tme*Cme,ome=ome*$me-ime*Cme,dme=dme*$me-cme*Cme,tme=hme,ime=bme,cme=mme),vme.rotateX&&Math.abs(vme.rotateX)+Math.abs(vme.rotate)>359.9&&(vme.rotateX=vme.rotate=0,vme.rotateY=180-vme.rotateY||0),vme.scaleX=toFixed(Math.sqrt(tme*tme+ame*ame+nme*nme)),vme.scaleY=toFixed(Math.sqrt(ome*ome+lme*lme)),vme.scaleZ=toFixed(Math.sqrt(cme*cme+dme*dme+ume*ume)),vme.skewX=yme===-_me?0:yme,vme.skewY=_me===-yme?0:_me,vme.perspective=fme?1/(fme<0?-fme:fme):0,vme.translateX=$P.m41,vme.translateY=$P.m42,vme.translateZ=pme,vme}function stylesToCss(x_,eme){var $P=void 0;return!isUnitlessNumber[x_]&&typeof eme=="number"?$P=" "+eme+"px":x_==="content"&&!unquotedContentValueRegex.test(eme)&&($P="'"+eme.replace(/'/g,"\\'")+"'"),$P||eme}function getUnit(x_,eme){var $P=eme&&eme.toString().replace(/[^a-z|%]/ig,""),tme="";return x_.indexOf("translate")>=0||x_.indexOf("perspective")>=0||x_.indexOf("blur")>=0?tme="px":(x_.indexOf("skew")>=0||x_.indexOf("rotate")>=0)&&(tme="deg"),$P||tme}function getValues(x_,eme,$P){return x_+"("+eme+($P||"")+")"}function findStyleByName(x_,eme){var $P=null;return x_&&x_.forEach(function(tme){if(!$P){var ame=tme.split("(")[0],nme=ame in cssList.transformGroup&&eme.substring(0,eme.length-1).indexOf(ame)>=0,rme=eme in cssList.transformGroup&&ame.substring(0,ame.length-1).indexOf(eme)>=0,ime=ame in cssList.transformGroup&&eme in cssList.transformGroup&&(ame.substring(0,ame.length-2)===eme||eme.substring(0,eme.length-2)===ame);(ame===eme||nme||rme||ime)&&($P=tme)}}),$P}function mergeStyle(x_,eme){if(!x_||x_==="")return eme;if(!eme||eme==="")return x_;var $P=x_.replace(/\s/g,"").split(")").filter(function(ame){return ame!==""&&ame}).map(function(ame){return ame+")"}),tme=eme.replace(/\s/g,"").split(")").filter(function(ame){return ame!==""&&ame});return tme.forEach(function(ame){var nme=ame.split("("),rme=nme[0],ime=findStyleByName($P,rme);if(!ime)$P.push(ame+")");else{var ome=$P.indexOf(ime);$P[ome]=ame+")"}}),$P.forEach(function(ame,nme){ame.indexOf("perspective")>=0&&nme&&($P.splice(nme,1),$P.unshift(ame))}),$P.join(" ").trim()}function noop$2(){}var colorRegExp=colorRegExp_1,shadowExp=/.*shadow$/gi,windowIsUndefined$1=!(typeof window<"u"&&window.document&&window.document.createElement),getTime=Date.now;function parsePath(x_){if(typeof x_=="string"){if(x_.charAt(0).match(/m/i)){var eme=document.createElementNS("http://www.w3.org/2000/svg","path");return eme.setAttributeNS(null,"d",x_),eme}return document.querySelector(x_)}else if(x_.style)return x_;throw new Error("Error while parsing the path")}var initAnimProps={type:"to",duration:450,delay:0,repeat:0,repeatDelay:0,appearTo:0,yoyo:!1,ease:"easeInOutQuad",onStart:noop$2,onUpdate:noop$2,onComplete:noop$2,onRepeat:noop$2,startAt:{}},initProps={animation:{},paused:!1,reverse:!1,delay:0,repeat:0,repeatDelay:0,yoyo:!1,moment:null,resetStyle:!1,regionStartTime:0,regionEndTime:void 0,onChange:noop$2,onChangeTimeline:noop$2},getInitProps=function(eme){var $P={};return Object.keys(initProps).forEach(function(tme){$P[tme]=typeof eme[tme]>"u"?initProps[tme]:eme[tme]}),$P.delay&&($P.delay=Math.round($P.delay)),eme.repeatDelay&&($P.repeatDelay=Math.round($P.repeatDelay)),$P},dataToArray=function(eme){if(Array.isArray(eme)||!eme)return eme;if(eme.length){var $P=Array.prototype.slice.call(eme);return $P.length?[eme]:$P}return[eme]},flatArray=function(eme){return eme.length===1?eme[0]:eme},getAnimatePos=function(eme,$P){var tme=$P.appearTo,ame=tme===void 0?0:tme,nme=$P.delay,rme=nme===void 0?0:nme,ime=$P.duration,ome=ime===void 0?450:ime,lme=$P.repeat,sme=$P.repeatDelay;if(typeof ame=="string")return 0;var cme,dme=0;return typeof eme.appearTo=="number"?eme.appearTo:(typeof eme.appearTo=="string"&&eme.appearTo.charAt(1)==="="&&(dme=parseFloat(eme.appearTo.replace("=",""))),cme=ame+rme+ome+dme,lme===-1?cme=Number.MAX_VALUE:lme&&(cme=ame+rme+ome*(lme+1)+(sme||0)*lme+dme),cme)},getDefaultStart=function(eme){switch(eme){case"opacity":case"scaleX":case"scaleY":case"scale":return 1;default:return 0}},getStartAtValue=function(eme,$P){var tme=typeof eme=="string"?parseFloat(eme):eme;return getValue$1(tme,$P.vars,1,$P.count,$P.unit)},getValue$1=function(eme,$P,tme){var ame=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",nme=arguments.length>4?arguments[4]:void 0;return ame==="+="||ame==="-="?eme+$P*tme+(nme||0):($P-eme)*tme+eme+(nme||0)},getComputedStyle$1=function(eme){if(!eme)return{};var $P=typeof window<"u"&&document.defaultView?document.defaultView.getComputedStyle(eme):{};return $P},styleValueToArray={margin:1,padding:1,borderWidth:1,borderRadius:1};function startConvertToEndUnit(x_){var eme=x_.target,$P=x_.computedStyle,tme=x_.style,ame=x_.value,nme=x_.startUnit,rme=x_.endUnit,ime=x_.fixed,ome=x_.isOriginWidth,lme=x_.useCurrentTarget;if(windowIsUndefined$1)return ame;var sme=/(?:Left|Right|Width|X)/i.test(tme)||ome;sme=tme==="padding"||tme==="marign"?!0:sme;var cme=tme.indexOf("border")!==-1||tme.indexOf("translate")!==-1||tme==="transformOrigin"||lme?eme:eme.parentNode||document.body;cme=ime?document.body:cme;var dme,ume,fme;switch(nme){case"%":dme=parseFloat(ame)/100*(sme?cme.clientWidth:cme.clientHeight);break;case"vw":dme=parseFloat(ame)*document.body.clientWidth/100;break;case"vh":dme=parseFloat(ame)*document.body.clientHeight/100;break;case"em":$P?dme=parseFloat(ame)*parseFloat($P.fontSize):(fme="em",dme=parseFloat(ame));break;case"rem":{$P?(ume=window.getComputedStyle(document.getElementsByTagName("html")[0]),dme=parseFloat(ame)*parseFloat(ume.fontSize)):(fme="rem",dme=parseFloat(ame));break}default:dme=parseFloat(ame);break}switch(rme){case"%":dme=dme?dme*100/(sme?cme.clientWidth:cme.clientHeight):0;break;case"vw":dme=parseFloat(ame)/document.body.clientWidth*100;break;case"vh":dme=parseFloat(ame)/document.body.clientHeight*100;break;case"em":$P?dme=parseFloat(ame)/parseFloat($P.fontSize):(fme="em",dme=parseFloat(ame));break;case"rem":{$P?(ume=ume||window.getComputedStyle(document.getElementsByTagName("html")[0]),dme=parseFloat(ame)/parseFloat(ume.fontSize)):(fme="rem",dme=parseFloat(ame));break}}return fme&&console.warn("Warning: Element is not 'DOM, can not use '".concat(fme,"', automatically convert to animation units.")),dme}function getTransformValue(x_){if(typeof x_=="string")return x_;var eme=x_.perspective,$P=x_.rotate,tme=x_.rotateX,ame=x_.rotateY,nme=x_.scaleX,rme=x_.scaleY,ime=x_.scaleZ,ome=x_.skewX,lme=x_.skewY,sme=typeof x_.translateX=="string"?x_.translateX:"".concat(x_.translateX,"px"),cme=typeof x_.translateY=="string"?x_.translateY:"".concat(x_.translateY,"px"),dme=typeof x_.translateZ=="string"?x_.translateZ:"".concat(x_.translateZ,"px"),ume=ome||lme?"skew(".concat(ome,"deg,").concat(lme,"deg)"):"",fme=$P?"rotate(".concat($P,"deg)"):"",pme=nme!==1||rme!==1||ime!==1?"scale3d(".concat(nme,",").concat(rme,",").concat(ime,")"):"",hme=tme?"rotateX(".concat(tme,"deg)"):"",bme=ame?"rotateY(".concat(ame,"deg)"):"",mme=eme?"perspective(".concat(eme,"px)"):"",vme=pme||fme||hme||bme||ume?"":"translate(0px, 0px)",gme=x_.translateZ?"translate3d(".concat(sme,",").concat(cme,",").concat(dme,")"):(x_.translateX||x_.translateY)&&"translate(".concat(sme,",").concat(cme,")")||vme;return"".concat(mme," ").concat(gme," ").concat(pme," ").concat(fme," ").concat(hme," ").concat(bme," ").concat(ume).trim()}var initFilterValue={brightness:1,saturate:1,contrast:1,grayScale:0,hueRotate:"0deg",sepia:0,invert:0},Plugin=_createClass$b(function x_(){var eme=this;_classCallCheck$d(this,x_),this.push=function($P){dataToArray($P).forEach(function(tme){eme[tme.className]=tme})},this.register=this.push});const Plugins=new Plugin;var style=_createClass$b(function x_(eme){var $P=this;_classCallCheck$d(this,x_),this.props=void 0,this.computedStyle=void 0,this.root=void 0,this.index=void 0,this.targetIndex=void 0,this.tweenVars={},this.transformName=void 0,this.filterName=void 0,this.target=void 0,this.start={},this.startAt={},this.propsData={data:{},type:{},unit:{},count:{},splitStr:{},isTransform:{}},this.setDefaultData=function(){var tme=$P.props;for(var ame in tme){var nme=tme[ame],rme=nme.split&&nme.split(/\s+|,/).length>1||ame.match(/color|fill|stroke/i)||ame.match(/shadow/i),ime=(ame==="background"||ame==="backgroundImage")&&nme.match(/[a-z|-]+\(([\s\S]*?)\)/gi);if(ime){$P.propsData.data[ame]={value:nme,plugin:Plugins.GradientsPlugin};continue}if(rme){$P.propsData.data[ame]={value:nme,plugin:Plugins.ArrayPlugin};continue}var ome=getGsapType_1(ame),lme=$P.getTweenData(ome,tme[ame]);$P.propsData.data[ome]=lme.data[ome],$P.propsData.type[ome]=lme.type[ome],$P.propsData.unit[ome]=lme.unit[ome],$P.propsData.count[ome]=lme.count[ome],$P.propsData.isTransform[ome]=isConvert_1(ome)==="transform",lme.splitStr[ome]&&($P.propsData.splitStr[ome]=lme.splitStr[ome])}},this.getTweenData=function(tme,ame){var nme={data:{},isTransform:{},type:{},unit:{},count:{},splitStr:{}},rme=ame;nme.data[tme]=rme;var ime=typeof nme.data[tme]=="string";nme.unit[tme]=ime?nme.data[tme].replace(/[^a-z|%]/g,""):"",nme.count[tme]=ime?nme.data[tme].replace(/[^+|=|-]/g,""):"";var ome=ime?parseFloat(nme.data[tme].replace(/[a-z|%|=]/g,"")):nme.data[tme];return nme.data[tme]=!ome&&ome!==0?nme.data[tme]:ome,nme},this.setStartAtValue=function(tme,ame){return _typeof$4(ame)==="object"?getStartAtValue(tme,ame):tme},this.getAnimStart=function(){var tme=$P.target,ame=$P.root,nme=$P.targetIndex,rme=$P.propsData,ime=$P.startAt,ome=$P.start,lme=$P.tweenVars,sme={};for(var cme in ime)sme[getGsapType_1(cme)]=ime[cme];$P.computedStyle=$P.computedStyle||getComputedStyle$1(tme),lme.style=lme.style||{};var dme,ume;for(var fme in rme.data){var pme,hme=rme.data[fme];if(hme.plugin){var bme=new hme.plugin(hme.value,fme);bme.target=tme,bme.root=ame,bme.parent=parent,bme.index=$P.index,bme.targetIndex=nme,bme.tweenVars=lme,bme.startAt=$P.startAt,bme.computedStyle=$P.computedStyle,hme.plugin=bme,ome[fme]=bme.getAnimStart();continue}var mme=isConvert_1(fme),vme=mme==="transform"?$P.transformName:mme;vme=mme==="filter"?$P.filterName:vme;var gme=lme.style[vme],yme=gme??$P.computedStyle[mme],_me=(pme=sme[fme])!==null&&pme!==void 0?pme:yme,$me=rme.unit[fme],Cme="";if(mme==="transform"){dme=dme||(_me===gme?_objectSpread2$4({},gme):getTransform_1($P.computedStyle[$P.transformName]));var Sme=dme[fme];if(sme&&fme in sme){var Eme,xme;Sme=$P.setStartAtValue((Eme=(xme=sme[fme].vars)!==null&&xme!==void 0?xme:gme==null?void 0:gme[fme])!==null&&Eme!==void 0?Eme:Sme,sme[fme]),Cme=sme[fme].unit,fme==="scale"?(dme.scaleX=Sme,dme.scaleY=Sme):dme[fme]=Sme}Cme!==$me&&(Sme=startConvertToEndUnit({target:tme,computedStyle:$P.computedStyle,style:mme,value:Sme,startUnit:Cme,endUnit:$me}),fme==="scale"?(dme.scaleX=Sme,dme.scaleY=Sme):dme[fme]=Sme),ome[$P.transformName]=dme}else if(mme==="filter"){var Tme=cssList_1.filterConvert[fme]||fme;ume=ume||(_me===gme?_objectSpread2$4({},gme):splitFilterToObject_1(yme)||{}),ume[Tme]=ume[Tme]||initFilterValue[Tme];var Ome=ume[Tme];if(sme&&fme in sme){var Rme;Ome=$P.setStartAtValue((Rme=sme[fme].vars)!==null&&Rme!==void 0?Rme:Ome,sme[fme]),Cme=sme[fme].unit,ume[Tme]=Ome}if($me!==Cme){var Nme;ume[Tme]=startConvertToEndUnit({target:tme,computedStyle:$P.computedStyle,style:mme,value:Ome,startUnit:Cme,endUnit:$me,fixed:((Nme=$P.computedStyle)===null||Nme===void 0?void 0:Nme.position)==="fixed"})}ome[$P.filterName]=ume}else{var Ime;if(_me=(Ime=sme[fme])!==null&&Ime!==void 0?Ime:yme,(!_me||_me==="none"||_me==="auto")&&(_me=""),$me=rme.unit[mme],Cme=_typeof$4(_me)==="object"?_me.unit:"".concat(_me).replace(/[^a-z|%]/g,""),_me=$P.setStartAtValue(yme,sme[fme]),$me!==Cme){var Pme;_me=startConvertToEndUnit({target:tme,computedStyle:$P.computedStyle,style:mme,value:parseFloat(_me),startUnit:Cme,endUnit:$me,fixed:((Pme=$P.computedStyle)===null||Pme===void 0?void 0:Pme.position)==="fixed"})}var Mme=parseFloat(_me);ome[mme]=isNaN(Mme)?getDefaultStart(mme):Mme}}return ome},this.render=function(tme){var ame=$P.propsData,nme=$P.start,rme=$P.tweenVars,ime=rme.style||{};nme[$P.transformName]&&!ime[$P.transformName]&&(ime[$P.transformName]=_objectSpread2$4({},nme[$P.transformName])),nme[$P.filterName]&&!ime[$P.filterName]&&(ime[$P.filterName]=_objectSpread2$4({},nme[$P.filterName]));var ome=ime[$P.transformName],lme=ime[$P.filterName],sme=ame.data,cme=ame.unit,dme=ame.count,ume=ame.isTransform;for(var fme in sme){var pme=sme[fme];if(pme.plugin){ime[fme]=pme.plugin.render(tme);continue}var hme=ume[fme],bme=hme?nme[$P.transformName][fme]:nme[fme],mme=cme[fme],vme=dme[fme];if(hme){if(fme==="scale"){var gme=nme[$P.transformName].scaleX,yme=nme[$P.transformName].scaleY;vme.charAt(1)==="="?(ome.scaleX=gme+pme*tme,ome.scaleY=yme+pme*tme):(ome.scaleX=(pme-gme)*tme+gme,ome.scaleY=(pme-yme)*tme+yme)}else ome[fme]=getValue$1(parseFloat(bme),pme,tme,vme,mme);ome.text=getTransformValue(ime[$P.transformName])}else if(cssList_1.filter.indexOf(fme)>=0){var _me=cssList_1.filterConvert[fme]||fme;bme=parseFloat(nme[$P.filterName][_me])||0,lme[_me]=getValue$1(bme,pme,tme,vme,mme),lme.text="";for(var $me in lme)$me!=="text"&&(lme.text="".concat(lme.text," ").concat($me,"(").concat(lme[$me],")").trim())}else{var Cme=stylesToCss_1(fme,0);Cme=typeof Cme=="number"?0:Cme.replace(/[^a-z|%]/g,""),mme=mme||Cme,typeof pme=="string"?ime[fme]=pme:ime[fme]=getValue$1(bme,pme,tme,vme,mme)}}return ime},this.props=eme,this.transformName=checkStyleName_1("transform"),this.filterName=checkStyleName_1("filter")||"filter",this.setDefaultData()});style.key="style";style.className="style";var PluginMixins=_createClass$b(function x_(eme,$P){_classCallCheck$d(this,x_),this.value=void 0,this.key=void 0,this.root=void 0,this.index=void 0,this.style={},this.start={},this.startAt={},this.target=void 0,this.value=eme,this.key=$P});PluginMixins.className=void 0;PluginMixins.key=void 0;var ArrayPlugin=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme,ame){var nme;_classCallCheck$d(this,$P),nme=eme.call(this,tme,ame),nme.value=void 0,nme.key=void 0,nme.start=[],nme.tweenVars={},nme.vars={},nme.computedStyle=void 0,nme.propsData={data:[],unit:[],count:[]},nme.setDefaultData=function(ome,lme){var sme=_assertThisInitialized(nme),cme=sme.propsData,dme=sme.value,ume=_toConsumableArray$1(dme);if(ome==="color"){var fme;ume[3]=(fme=ume[3])!==null&&fme!==void 0?fme:1}cme.type=ome,cme.data=ume.map(function(pme){return!parseFloat(pme)&&parseFloat(pme)!==0?pme:parseFloat(pme)}),cme.unit=ume.map(function(pme){return pme.toString().replace(/[^a-z|%]/g,"")}),cme.count=ume.map(function(pme){return pme.toString().replace(/[^+|=|-]/g,"")}),lme&&(cme.splitStr=lme)},nme.convertToMarksArray=function(ome,lme,sme,cme){var dme=(sme||"").toString().replace(/[^a-z|%]/g,""),ume=typeof cme=="number"?ome[cme]:void 0;return dme===ume?parseFloat(sme):!parseFloat(sme)&&parseFloat(sme)!==0?sme:startConvertToEndUnit({target:nme.target,computedStyle:nme.computedStyle,style:lme,value:sme,startUnit:dme,endUnit:ume,isOriginWidth:lme==="transformOrigin"&&!cme})},nme.getAnimStart=function(){var ome,lme,sme,cme,dme=_assertThisInitialized(nme),ume=dme.startAt,fme=dme.target,pme=dme.key,hme=dme.propsData,bme=dme.computedStyle,mme=dme.tweenVars,vme=(ome=(lme=(sme=ume==null?void 0:ume[pme])!==null&&sme!==void 0?sme:bme?(cme=mme.style)===null||cme===void 0?void 0:cme[pme]:mme[pme])!==null&&lme!==void 0?lme:(bme||fme)[pme])!==null&&ome!==void 0?ome:"",gme=hme.data.indexOf("inset"),yme;if(gme!==-1&&!vme.match("inset")&&hme.type==="shadow"&&(yme=vme,vme=""),(!vme||vme==="none"||vme==="auto")&&(vme=""),vme=hme.type==="shadow"?parseShadow_1(vme,pme):vme,vme=hme.type==="color"?parseColor_1(vme):vme,vme=hme.type==="string"?vme.split(/[\s|,]/):vme,styleValueToArray[pme]){var _me,$me,Cme,Sme;vme[1]=(_me=vme[1])!==null&&_me!==void 0?_me:vme[0],vme[2]=($me=vme[2])!==null&&$me!==void 0?$me:vme[0],vme[3]=(Cme=(Sme=vme[3])!==null&&Sme!==void 0?Sme:vme[1])!==null&&Cme!==void 0?Cme:vme[0]}var Eme=hme.unit,xme=vme.map(function(Tme,Ome){return parseFloat(Tme).toString()==="NaN"?Tme:nme.convertToMarksArray(Eme,pme,Tme,Ome)});return nme.start=xme.concat(gme>=0?"inset":[]),nme.start.oldShadow=yme,nme.start},nme.render=function(ome){var lme=_assertThisInitialized(nme),sme=lme.start,cme=lme.propsData,dme=cme.type,ume=cme.splitStr,fme=cme.data,pme=cme.count,hme=cme.unit,bme=fme.map(function(_me,$me){return typeof _me=="string"?_me:getValue$1(sme[$me],_me,ome,pme[$me],hme[$me])});switch(dme){case"string":bme=bme.join(ume);break;case"color":bme=getColor_1(bme);break;case"shadow":{var mme=bme.indexOf("inset")>=0,vme=mme?bme.filter(function(_me){return _me!=="inset"}):bme,gme=vme.slice(0,vme.length-4).map(function(_me){return typeof _me=="number"?"".concat(_me,"px"):_me}),yme=getColor_1(vme.slice(vme.length-4,vme.length));bme="".concat(sme.oldShadow?"".concat(sme.oldShadow,","):"").concat(gme.join(" ")," ").concat(yme," ").concat(mme?"inset":"").trim();break}}return bme},nme.value=tme,nme.key=ame;var rme="",ime="";return typeof tme=="string"&&(ame.match(shadowExp)?(nme.value=parseShadow_1(tme,ame),rme="shadow"):ame.match(/color|fill|stroke/i)||tme.match(colorRegExp)?(nme.value=parseColor_1(tme),rme="color"):(ime=tme.replace(/[^\s|,]/g,"").replace(/\s+/g," "),nme.value=tme.split(/[\s|,]/),rme="string")),nme.setDefaultData(rme,ime),nme}return _createClass$b($P)}(PluginMixins);ArrayPlugin.className="ArrayPlugin";var angleData={linear:{"to top":"0deg","to top right":"45deg","to right top":"45deg","to right":"90deg","to right bottom":"135deg","to bottom right":"135deg","to bottom":"180deg","to bottom left":"225deg","to left bottom":"225deg","to left":"270deg","to left top":"315deg","to top left":"315deg"},radial:{center:"50% 50%",top:"50% 0%","top right":"100% 0%","right top":"100% 0%",right:"100% 50%","right bottom":"100% 100%","bottom right":"100% 100%",bottom:"50% 100%","bottom left":"0% 100%","left bottom":"0% 100%",left:"0% 50%","left top":"0% 0%","top left":"0% 0%"}},extentKeyWord=["closest-side","closest-corner","farthest-side","farthest-corner"],consoleWarn=function(eme,$P,tme){console.warn("Warning: The gradient ".concat(eme,"(").concat($P," => ").concat(tme,") is different, which has been automatically converted to animation gradient ").concat(eme,"(").concat(tme,")."))},noGradient=function(eme){return eme==="url"||eme.indexOf("image")>=0||eme==="paint"||eme==="cross-fade"||eme==="element"},GradientsPlugin=function(x_){_inherits$c($P,x_);var eme=_createSuper($P);function $P(tme){var ame;return _classCallCheck$d(this,$P),ame=eme.call(this,tme,"backgroundImage"),ame.value=void 0,ame.tweenVars={},ame.vars=[],ame.computedStyle=void 0,ame.defaultStartVars=[],ame.getPosition=function(nme){return nme.map(function(rme){return{data:parseFloat(rme),unit:rme.replace(/[^a-z|%]/g,"")}})},ame.getAngle=function(nme,rme){var ime=nme.replace(/-|gradient|repeating]/g,""),ome,lme,sme,cme;switch(ime){case"linear":{sme=ame.getPosition((angleData.linear[rme]||rme||angleData.linear["to bottom"]).split(" "));break}case"radial":{var dme=rme.split(" ");ome=dme.find(function(bme){return extentKeyWord.indexOf(bme)>=0})||extentKeyWord[3],lme=dme.find(function(bme){return bme==="circle"||bme==="ellipse"})||"ellipse";var ume=new RegExp("".concat(ome,"|").concat(lme,"|at"),"g"),fme=rme.replace(ume,"").trim();cme=ame.getPosition((angleData.radial[fme]||fme||angleData.radial.center).split(" "));break}case"conic":{var pme=rme.split("at").map(function(bme){return bme.trim()}),hme=(pme[0]||"").split(" ");lme=hme[0]||"from",sme=ame.getPosition([hme[1]||"0deg"]),cme=ame.getPosition((angleData.radial[pme[1]]||pme[1]||angleData.radial.center).split(" "));break}}return{extent:ome,shape:lme,angle:sme,position:cme}},ame.valueToIValue=function(nme){if(!nme)return[];var rme=nme.replace(/\),\s+?(url|radial|conic|linear|repeating|image|element|cross|paint)/,")#,#$1").split("#,#");return rme.map(function(ime){var ome=ime.replace(/([a-z|-]+)\((.*)\)/,"$1").trim();if(ome==="url")return{type:ome,values:ime};var lme=ime.replace(/([a-z|-]+)\((.*)\)/,"$2").replace(/#([0-9a-f]{6}|[0-9a-f]{3})|(rgb[a]?|hsl)+\(\d+\,[\s+]?\d+[\%]?\,[\s+]?\d+[\%]?(\,\d+)?\)/gi,function(ume){return ume.replace(/\s+/g,"")}).replace(/\,([a-z|#|\s+])/g,"#,#$1").split("#,#").map(function(ume){return ume.trim()}),sme=lme[0].match(colorRegExp)?"":lme[0];sme&&lme.splice(0,1);var cme=ame.getAngle(ome,sme),dme=lme.map(function(ume){var fme=ume.trim().split(/\s+/),pme,hme=(fme[0].match(colorRegExp),fme[0]);return hme&&(fme.splice(0,1),pme=parseColor_1(hme)),{color:pme,positions:fme.map(function(bme){return{data:parseFloat(bme),unit:bme.toString().replace(/[^a-z|%]/g,"")}})}});return{type:ome,angle:cme,values:dme}})},ame.getAnimStart=function(){var nme,rme=_assertThisInitialized(ame),ime=rme.startAt,ome=rme.key,lme=rme.computedStyle,sme=rme.target,cme=rme.vars,dme=rme.tweenVars,ume=_objectSpread2$4({},ime),fme=(nme=dme[ome])!==null&&nme!==void 0?nme:(lme||sme)[ome];(!fme||fme==="none"||fme==="auto")&&(fme=""),ume[ome]=ume[ome]||fme,ume[ome]=ume[ome]?ame.valueToIValue(ume[ome]):ame.defaultStartVars;var pme=Math.max(cme.length,ume[ome].length),hme=(pme===ume[ome].length?ume[ome]:cme).map(function(bme,mme){var vme,gme,yme=ume[ome][mme]||ame.defaultStartVars[mme],_me=cme[mme]||yme;if((!yme||yme.type!==_me.type)&&(yme.type!==_me.type&&consoleWarn("type",yme.type,_me.type),yme=ame.defaultStartVars[mme]),noGradient(_me.type)||typeof _me.values=="string"||typeof yme.values=="string")return _objectSpread2$4({},_me);if(((vme=_me.angle)===null||vme===void 0?void 0:vme.extent)!==((gme=yme.angle)===null||gme===void 0?void 0:gme.extent)){var $me,Cme;consoleWarn("extent keyword",($me=yme.angle)===null||$me===void 0?void 0:$me.extent,(Cme=_me.angle)===null||Cme===void 0?void 0:Cme.extent)}var Sme=Math.max(yme.values.length,_me.values.length),Eme=Sme===yme.values.length?yme.values:_me.values;return yme.values=Eme.map(function(xme,Tme){var Ome=yme.values[Tme],Rme=_me.values[Tme]||Ome;return _objectSpread2$4(_objectSpread2$4({},Ome),{},{positions:(Rme||Ome).positions.map(function(Nme,Ime){var Pme=Ome?Ome.positions[Ime]||Ome.positions[Ome.positions.length-1]:Rme.positions[Rme.positions.length-1],Mme=Nme||Pme;return!Pme&&Ome&&yme.values.length&&(Pme={data:100/(yme.values.length-1)*Tme,unit:"%"}),Mme.unit!==Pme.unit&&consoleWarn("units",Pme.unit,Mme.unit),{data:Pme.data,unit:Mme.unit}})})}),yme});return ame.start=hme,ame.start},ame.render=function(nme){var rme="",ime=Math.max(ame.vars.length,ame.start.length);return(ime===ame.vars.length?ame.vars:ame.start).forEach(function(ome,lme){var sme=ame.start[lme],cme=ame.vars[lme]||sme;if(noGradient(cme.type)||typeof cme.values=="string"||!cme.angle){rme+="".concat(rme?",":""," ").concat(cme.values).trim();return}var dme=Math.max(sme.values.length,cme.values.length),ume=(dme===sme.values.length?sme.values:cme.values).map(function(mme,vme){var gme=sme.values[vme],yme=cme.values[vme];yme||(yme=gme);var _me=gme.color,$me=gme.positions;!_me&&yme.color&&(_me=_toConsumableArray$1(yme.color)),$me||($me=yme.positions.map(function(Eme){return _objectSpread2$4({},Eme)}));var Cme=yme.color?yme.color.map(function(Eme,xme){return getValue$1(_me[xme],Eme,nme)}):yme.color,Sme=yme.positions.map(function(Eme,xme){return"".concat(getValue$1($me[xme].data,Eme.data,nme)).concat(Eme.unit)}).join(" ");return"".concat(Cme?getColor_1(Cme):Cme||""," ").concat(Sme).trim()}),fme=cme.angle,pme=fme.angle&&fme.angle.map(function(mme,vme){return"".concat(getValue$1(sme.angle.angle[vme].data,mme.data,nme)).concat(mme.unit)}).join(" "),hme=fme.position&&fme.position.map(function(mme,vme){return"".concat(getValue$1(sme.angle.position[vme].data,mme.data,nme)).concat(mme.unit)}).join(" "),bme="".concat(fme.extent||""," ").concat(fme.shape||""," ").concat(pme||""," ").concat(hme?"at ".concat(hme):"").trim();rme+="".concat(rme?",":""," ").concat(cme.type,"(").concat(bme?"".concat(bme,","):"").concat(ume.join(","),")").trim()}),rme},ame.value=tme,ame.vars=ame.valueToIValue(tme),ame.defaultStartVars=ame.vars.map(function(nme){return noGradient(nme.type)||typeof nme.values=="string"?_objectSpread2$4({},nme):_objectSpread2$4(_objectSpread2$4({},nme),{},{values:nme.values.map(function(rme){var ime;return rme.color&&typeof rme.color!="string"?(ime=_toConsumableArray$1(rme.color),ime[3]=0):ime=rme.color,{color:ime,positions:_toConsumableArray$1(rme.positions)}})})}),ame}return _createClass$b($P)}(PluginMixins);GradientsPlugin.className="GradientsPlugin";var Ticker=function(){function x_(){var eme=this;_classCallCheck$d(this,x_),this.lagThreshold=150,this.adjustedLag=33,this.emptyTime=0,this.elapsed=0,this.frameFPS=1e3/240,this.startTime=0,this.prevTime=0,this.useTimeout=!1,this.lastUpdate=this.startTime,this.nextTime=this.frameFPS,this.req=void 0,this.id=-1,this.tweenId=0,this.tickFn=[],this.state="sleep",this.time=0,this.frame=0,this.removeReq=function($P){return eme.useTimeout?clearTimeout($P):cancel($P)},this.tick=function(){var $P=eme.tickFn;eme.startTime||(eme.startTime=getTime()-eme.frameFPS,eme.lastUpdate=eme.startTime),eme.elapsed=getTime()-eme.lastUpdate,eme.elapsed>eme.lagThreshold&&(eme.startTime+=eme.elapsed-eme.adjustedLag),eme.lastUpdate+=eme.elapsed,eme.time=eme.lastUpdate-eme.startTime;var tme=eme.time-eme.nextTime;if(tme>0){eme.frame++,eme.nextTime+=tme+(tme>=eme.frameFPS?4:eme.frameFPS-tme);for(var ame=eme.time-eme.prevTime,nme=0;nme<$P.length;nme++)$P[nme].fn({time:eme.time,elapsed:ame<eme.frameFPS?eme.frameFPS:ame});eme.prevTime=eme.time}if(!eme.tickFn.length&&(eme.emptyTime||(eme.emptyTime=eme.time+500),eme.time>=eme.emptyTime)){eme.emptyTime=0,eme.sleep();return}eme.req&&(eme.id=eme.req(eme.tick))},this.wake=function(){eme.id&&eme.sleep(),eme.req=eme.useTimeout?function($P){return setTimeout($P,eme.frameFPS)}:request,eme.tick(),eme.state="wake"},this.sleep=function(){eme.removeReq(eme.id),eme.id=-1,eme.req=void 0,eme.state="sleep"},this.add=function($P){var tme="TweenOneTicker_".concat(eme.tweenId);return eme.tweenId+=1,eme.tickFn.findIndex(function(ame){return ame.key===tme})===-1&&eme.tickFn.push({key:tme,fn:$P}),eme.emptyTime=0,eme.req||eme.wake(),tme},this.clear=function($P){eme.tickFn=eme.tickFn.filter(function(tme){return tme.key!==$P&&tme.fn!==$P})},this.timeout=function($P,tme){if(typeof $P!="function")return console.warn("not function");var ame=eme.time,nme=eme.add(function(){var rme=eme.time-ame;rme>=(tme||0)&&(eme.clear(nme),$P())});return nme},this.interval=function($P,tme){if(typeof $P!="function")return console.warn("not function"),null;var ame=eme.time;return eme.add(function(){var nme=eme.time-ame;nme>=(tme||0)&&(ame=eme.time,$P())})}}return _createClass$b(x_,[{key:"fps",value:function($P,tme){this.frameFPS=1e3/($P||240),this.nextTime=this.time+this.frameFPS,this.useTimeout=typeof tme>"u"?this.useTimeout:tme,this.useTimeout&&(this.req=function(ame){return setTimeout(ame,$P)})}}]),x_}(),ticker=new Ticker,tweenFunctions={linear:function(x_,eme,$P,tme){var ame=$P-eme;return ame*x_/tme+eme},easeInQuad:function(x_,eme,$P,tme){var ame=$P-eme;return ame*(x_/=tme)*x_+eme},easeOutQuad:function(x_,eme,$P,tme){var ame=$P-eme;return-ame*(x_/=tme)*(x_-2)+eme},easeInOutQuad:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme/2)<1?ame/2*x_*x_+eme:-ame/2*(--x_*(x_-2)-1)+eme},easeInCubic:function(x_,eme,$P,tme){var ame=$P-eme;return ame*(x_/=tme)*x_*x_+eme},easeOutCubic:function(x_,eme,$P,tme){var ame=$P-eme;return ame*((x_=x_/tme-1)*x_*x_+1)+eme},easeInOutCubic:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme/2)<1?ame/2*x_*x_*x_+eme:ame/2*((x_-=2)*x_*x_+2)+eme},easeInQuart:function(x_,eme,$P,tme){var ame=$P-eme;return ame*(x_/=tme)*x_*x_*x_+eme},easeOutQuart:function(x_,eme,$P,tme){var ame=$P-eme;return-ame*((x_=x_/tme-1)*x_*x_*x_-1)+eme},easeInOutQuart:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme/2)<1?ame/2*x_*x_*x_*x_+eme:-ame/2*((x_-=2)*x_*x_*x_-2)+eme},easeInQuint:function(x_,eme,$P,tme){var ame=$P-eme;return ame*(x_/=tme)*x_*x_*x_*x_+eme},easeOutQuint:function(x_,eme,$P,tme){var ame=$P-eme;return ame*((x_=x_/tme-1)*x_*x_*x_*x_+1)+eme},easeInOutQuint:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme/2)<1?ame/2*x_*x_*x_*x_*x_+eme:ame/2*((x_-=2)*x_*x_*x_*x_+2)+eme},easeInSine:function(x_,eme,$P,tme){var ame=$P-eme;return-ame*Math.cos(x_/tme*(Math.PI/2))+ame+eme},easeOutSine:function(x_,eme,$P,tme){var ame=$P-eme;return ame*Math.sin(x_/tme*(Math.PI/2))+eme},easeInOutSine:function(x_,eme,$P,tme){var ame=$P-eme;return-ame/2*(Math.cos(Math.PI*x_/tme)-1)+eme},easeInExpo:function(x_,eme,$P,tme){var ame=$P-eme;return x_==0?eme:ame*Math.pow(2,10*(x_/tme-1))+eme},easeOutExpo:function(x_,eme,$P,tme){var ame=$P-eme;return x_==tme?eme+ame:ame*(-Math.pow(2,-10*x_/tme)+1)+eme},easeInOutExpo:function(x_,eme,$P,tme){var ame=$P-eme;return x_===0?eme:x_===tme?eme+ame:(x_/=tme/2)<1?ame/2*Math.pow(2,10*(x_-1))+eme:ame/2*(-Math.pow(2,-10*--x_)+2)+eme},easeInCirc:function(x_,eme,$P,tme){var ame=$P-eme;return-ame*(Math.sqrt(1-(x_/=tme)*x_)-1)+eme},easeOutCirc:function(x_,eme,$P,tme){var ame=$P-eme;return ame*Math.sqrt(1-(x_=x_/tme-1)*x_)+eme},easeInOutCirc:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme/2)<1?-ame/2*(Math.sqrt(1-x_*x_)-1)+eme:ame/2*(Math.sqrt(1-(x_-=2)*x_)+1)+eme},easeInElastic:function(x_,eme,$P,tme){var ame=$P-eme,nme,rme,ime;return ime=1.70158,rme=0,nme=ame,x_===0?eme:(x_/=tme)===1?eme+ame:(rme||(rme=tme*.3),nme<Math.abs(ame)?(nme=ame,ime=rme/4):ime=rme/(2*Math.PI)*Math.asin(ame/nme),-(nme*Math.pow(2,10*(x_-=1))*Math.sin((x_*tme-ime)*(2*Math.PI)/rme))+eme)},easeOutElastic:function(x_,eme,$P,tme){var ame=$P-eme,nme,rme,ime;return ime=1.70158,rme=0,nme=ame,x_===0?eme:(x_/=tme)===1?eme+ame:(rme||(rme=tme*.3),nme<Math.abs(ame)?(nme=ame,ime=rme/4):ime=rme/(2*Math.PI)*Math.asin(ame/nme),nme*Math.pow(2,-10*x_)*Math.sin((x_*tme-ime)*(2*Math.PI)/rme)+ame+eme)},easeInOutElastic:function(x_,eme,$P,tme){var ame=$P-eme,nme,rme,ime;return ime=1.70158,rme=0,nme=ame,x_===0?eme:(x_/=tme/2)===2?eme+ame:(rme||(rme=tme*(.3*1.5)),nme<Math.abs(ame)?(nme=ame,ime=rme/4):ime=rme/(2*Math.PI)*Math.asin(ame/nme),x_<1?-.5*(nme*Math.pow(2,10*(x_-=1))*Math.sin((x_*tme-ime)*(2*Math.PI)/rme))+eme:nme*Math.pow(2,-10*(x_-=1))*Math.sin((x_*tme-ime)*(2*Math.PI)/rme)*.5+ame+eme)},easeInBack:function(x_,eme,$P,tme,ame){var nme=$P-eme;return ame===void 0&&(ame=1.70158),nme*(x_/=tme)*x_*((ame+1)*x_-ame)+eme},easeOutBack:function(x_,eme,$P,tme,ame){var nme=$P-eme;return ame===void 0&&(ame=1.70158),nme*((x_=x_/tme-1)*x_*((ame+1)*x_+ame)+1)+eme},easeInOutBack:function(x_,eme,$P,tme,ame){var nme=$P-eme;return ame===void 0&&(ame=1.70158),(x_/=tme/2)<1?nme/2*(x_*x_*(((ame*=1.525)+1)*x_-ame))+eme:nme/2*((x_-=2)*x_*(((ame*=1.525)+1)*x_+ame)+2)+eme},easeInBounce:function(x_,eme,$P,tme){var ame=$P-eme,nme;return nme=tweenFunctions.easeOutBounce(tme-x_,0,ame,tme),ame-nme+eme},easeOutBounce:function(x_,eme,$P,tme){var ame=$P-eme;return(x_/=tme)<1/2.75?ame*(7.5625*x_*x_)+eme:x_<2/2.75?ame*(7.5625*(x_-=1.5/2.75)*x_+.75)+eme:x_<2.5/2.75?ame*(7.5625*(x_-=2.25/2.75)*x_+.9375)+eme:ame*(7.5625*(x_-=2.625/2.75)*x_+.984375)+eme},easeInOutBounce:function(x_,eme,$P,tme){var ame=$P-eme,nme;return x_<tme/2?(nme=tweenFunctions.easeInBounce(x_*2,0,ame,tme),nme*.5+eme):(nme=tweenFunctions.easeOutBounce(x_*2-tme,0,ame,tme),nme*.5+ame*.5+eme)}},tweenFunctions_1=tweenFunctions;const easingTypes=getDefaultExportFromCjs(tweenFunctions_1);easingTypes.path=function(x_,eme){var $P=eme||{};if(windowIsUndefined$1)return"linear";for(var tme=parsePath(x_),ame=tme.getTotalLength(),nme=$P.rect||100,rme=$P.lengthPixel||200,ime=[],ome=0;ome<rme-1;ome++)ime.push(tme.getPointAtLength(ame/(rme-1)*ome));return ime.push(tme.getPointAtLength(rme)),function(sme,cme,dme,ume){var fme=easingTypes.linear(sme,cme,dme,ume),pme=nme*fme,hme=ime.filter(function(bme){return bme.x>=pme})[0]||tme.getPointAtLength(fme*ame);return 1-hme.y/nme}};var regeneratorRuntime$1={exports:{}};(function(x_){var eme=require_typeof().default;function $P(){x_.exports=$P=function(){return ame},x_.exports.__esModule=!0,x_.exports.default=x_.exports;var tme,ame={},nme=Object.prototype,rme=nme.hasOwnProperty,ime=Object.defineProperty||function(kme,Bme,Dme){kme[Bme]=Dme.value},ome=typeof Symbol=="function"?Symbol:{},lme=ome.iterator||"@@iterator",sme=ome.asyncIterator||"@@asyncIterator",cme=ome.toStringTag||"@@toStringTag";function dme(kme,Bme,Dme){return Object.defineProperty(kme,Bme,{value:Dme,enumerable:!0,configurable:!0,writable:!0}),kme[Bme]}try{dme({},"")}catch{dme=function(Dme,jme,Vme){return Dme[jme]=Vme}}function ume(kme,Bme,Dme,jme){var Vme=Bme&&Bme.prototype instanceof gme?Bme:gme,Wme=Object.create(Vme.prototype),Lme=new Pme(jme||[]);return ime(Wme,"_invoke",{value:Ome(kme,Dme,Lme)}),Wme}function fme(kme,Bme,Dme){try{return{type:"normal",arg:kme.call(Bme,Dme)}}catch(jme){return{type:"throw",arg:jme}}}ame.wrap=ume;var pme="suspendedStart",hme="suspendedYield",bme="executing",mme="completed",vme={};function gme(){}function yme(){}function _me(){}var $me={};dme($me,lme,function(){return this});var Cme=Object.getPrototypeOf,Sme=Cme&&Cme(Cme(Mme([])));Sme&&Sme!==nme&&rme.call(Sme,lme)&&($me=Sme);var Eme=_me.prototype=gme.prototype=Object.create($me);function xme(kme){["next","throw","return"].forEach(function(Bme){dme(kme,Bme,function(Dme){return this._invoke(Bme,Dme)})})}function Tme(kme,Bme){function Dme(Vme,Wme,Lme,zme){var Ume=fme(kme[Vme],kme,Wme);if(Ume.type!=="throw"){var Gme=Ume.arg,Jme=Gme.value;return Jme&&eme(Jme)=="object"&&rme.call(Jme,"__await")?Bme.resolve(Jme.__await).then(function(Yme){Dme("next",Yme,Lme,zme)},function(Yme){Dme("throw",Yme,Lme,zme)}):Bme.resolve(Jme).then(function(Yme){Gme.value=Yme,Lme(Gme)},function(Yme){return Dme("throw",Yme,Lme,zme)})}zme(Ume.arg)}var jme;ime(this,"_invoke",{value:function(Wme,Lme){function zme(){return new Bme(function(Ume,Gme){Dme(Wme,Lme,Ume,Gme)})}return jme=jme?jme.then(zme,zme):zme()}})}function Ome(kme,Bme,Dme){var jme=pme;return function(Vme,Wme){if(jme===bme)throw Error("Generator is already running");if(jme===mme){if(Vme==="throw")throw Wme;return{value:tme,done:!0}}for(Dme.method=Vme,Dme.arg=Wme;;){var Lme=Dme.delegate;if(Lme){var zme=Rme(Lme,Dme);if(zme){if(zme===vme)continue;return zme}}if(Dme.method==="next")Dme.sent=Dme._sent=Dme.arg;else if(Dme.method==="throw"){if(jme===pme)throw jme=mme,Dme.arg;Dme.dispatchException(Dme.arg)}else Dme.method==="return"&&Dme.abrupt("return",Dme.arg);jme=bme;var Ume=fme(kme,Bme,Dme);if(Ume.type==="normal"){if(jme=Dme.done?mme:hme,Ume.arg===vme)continue;return{value:Ume.arg,done:Dme.done}}Ume.type==="throw"&&(jme=mme,Dme.method="throw",Dme.arg=Ume.arg)}}}function Rme(kme,Bme){var Dme=Bme.method,jme=kme.iterator[Dme];if(jme===tme)return Bme.delegate=null,Dme==="throw"&&kme.iterator.return&&(Bme.method="return",Bme.arg=tme,Rme(kme,Bme),Bme.method==="throw")||Dme!=="return"&&(Bme.method="throw",Bme.arg=new TypeError("The iterator does not provide a '"+Dme+"' method")),vme;var Vme=fme(jme,kme.iterator,Bme.arg);if(Vme.type==="throw")return Bme.method="throw",Bme.arg=Vme.arg,Bme.delegate=null,vme;var Wme=Vme.arg;return Wme?Wme.done?(Bme[kme.resultName]=Wme.value,Bme.next=kme.nextLoc,Bme.method!=="return"&&(Bme.method="next",Bme.arg=tme),Bme.delegate=null,vme):Wme:(Bme.method="throw",Bme.arg=new TypeError("iterator result is not an object"),Bme.delegate=null,vme)}function Nme(kme){var Bme={tryLoc:kme[0]};1 in kme&&(Bme.catchLoc=kme[1]),2 in kme&&(Bme.finallyLoc=kme[2],Bme.afterLoc=kme[3]),this.tryEntries.push(Bme)}function Ime(kme){var Bme=kme.completion||{};Bme.type="normal",delete Bme.arg,kme.completion=Bme}function Pme(kme){this.tryEntries=[{tryLoc:"root"}],kme.forEach(Nme,this),this.reset(!0)}function Mme(kme){if(kme||kme===""){var Bme=kme[lme];if(Bme)return Bme.call(kme);if(typeof kme.next=="function")return kme;if(!isNaN(kme.length)){var Dme=-1,jme=function Vme(){for(;++Dme<kme.length;)if(rme.call(kme,Dme))return Vme.value=kme[Dme],Vme.done=!1,Vme;return Vme.value=tme,Vme.done=!0,Vme};return jme.next=jme}}throw new TypeError(eme(kme)+" is not iterable")}return yme.prototype=_me,ime(Eme,"constructor",{value:_me,configurable:!0}),ime(_me,"constructor",{value:yme,configurable:!0}),yme.displayName=dme(_me,cme,"GeneratorFunction"),ame.isGeneratorFunction=function(kme){var Bme=typeof kme=="function"&&kme.constructor;return!!Bme&&(Bme===yme||(Bme.displayName||Bme.name)==="GeneratorFunction")},ame.mark=function(kme){return Object.setPrototypeOf?Object.setPrototypeOf(kme,_me):(kme.__proto__=_me,dme(kme,cme,"GeneratorFunction")),kme.prototype=Object.create(Eme),kme},ame.awrap=function(kme){return{__await:kme}},xme(Tme.prototype),dme(Tme.prototype,sme,function(){return this}),ame.AsyncIterator=Tme,ame.async=function(kme,Bme,Dme,jme,Vme){Vme===void 0&&(Vme=Promise);var Wme=new Tme(ume(kme,Bme,Dme,jme),Vme);return ame.isGeneratorFunction(Bme)?Wme:Wme.next().then(function(Lme){return Lme.done?Lme.value:Wme.next()})},xme(Eme),dme(Eme,cme,"Generator"),dme(Eme,lme,function(){return this}),dme(Eme,"toString",function(){return"[object Generator]"}),ame.keys=function(kme){var Bme=Object(kme),Dme=[];for(var jme in Bme)Dme.push(jme);return Dme.reverse(),function Vme(){for(;Dme.length;){var Wme=Dme.pop();if(Wme in Bme)return Vme.value=Wme,Vme.done=!1,Vme}return Vme.done=!0,Vme}},ame.values=Mme,Pme.prototype={constructor:Pme,reset:function(Bme){if(this.prev=0,this.next=0,this.sent=this._sent=tme,this.done=!1,this.delegate=null,this.method="next",this.arg=tme,this.tryEntries.forEach(Ime),!Bme)for(var Dme in this)Dme.charAt(0)==="t"&&rme.call(this,Dme)&&!isNaN(+Dme.slice(1))&&(this[Dme]=tme)},stop:function(){this.done=!0;var Bme=this.tryEntries[0].completion;if(Bme.type==="throw")throw Bme.arg;return this.rval},dispatchException:function(Bme){if(this.done)throw Bme;var Dme=this;function jme(Gme,Jme){return Lme.type="throw",Lme.arg=Bme,Dme.next=Gme,Jme&&(Dme.method="next",Dme.arg=tme),!!Jme}for(var Vme=this.tryEntries.length-1;Vme>=0;--Vme){var Wme=this.tryEntries[Vme],Lme=Wme.completion;if(Wme.tryLoc==="root")return jme("end");if(Wme.tryLoc<=this.prev){var zme=rme.call(Wme,"catchLoc"),Ume=rme.call(Wme,"finallyLoc");if(zme&&Ume){if(this.prev<Wme.catchLoc)return jme(Wme.catchLoc,!0);if(this.prev<Wme.finallyLoc)return jme(Wme.finallyLoc)}else if(zme){if(this.prev<Wme.catchLoc)return jme(Wme.catchLoc,!0)}else{if(!Ume)throw Error("try statement without catch or finally");if(this.prev<Wme.finallyLoc)return jme(Wme.finallyLoc)}}}},abrupt:function(Bme,Dme){for(var jme=this.tryEntries.length-1;jme>=0;--jme){var Vme=this.tryEntries[jme];if(Vme.tryLoc<=this.prev&&rme.call(Vme,"finallyLoc")&&this.prev<Vme.finallyLoc){var Wme=Vme;break}}Wme&&(Bme==="break"||Bme==="continue")&&Wme.tryLoc<=Dme&&Dme<=Wme.finallyLoc&&(Wme=null);var Lme=Wme?Wme.completion:{};return Lme.type=Bme,Lme.arg=Dme,Wme?(this.method="next",this.next=Wme.finallyLoc,vme):this.complete(Lme)},complete:function(Bme,Dme){if(Bme.type==="throw")throw Bme.arg;return Bme.type==="break"||Bme.type==="continue"?this.next=Bme.arg:Bme.type==="return"?(this.rval=this.arg=Bme.arg,this.method="return",this.next="end"):Bme.type==="normal"&&Dme&&(this.next=Dme),vme},finish:function(Bme){for(var Dme=this.tryEntries.length-1;Dme>=0;--Dme){var jme=this.tryEntries[Dme];if(jme.finallyLoc===Bme)return this.complete(jme.completion,jme.afterLoc),Ime(jme),vme}},catch:function(Bme){for(var Dme=this.tryEntries.length-1;Dme>=0;--Dme){var jme=this.tryEntries[Dme];if(jme.tryLoc===Bme){var Vme=jme.completion;if(Vme.type==="throw"){var Wme=Vme.arg;Ime(jme)}return Wme}}throw Error("illegal catch attempt")},delegateYield:function(Bme,Dme,jme){return this.delegate={iterator:Mme(Bme),resultName:Dme,nextLoc:jme},this.method==="next"&&(this.arg=tme),vme}},ame}x_.exports=$P,x_.exports.__esModule=!0,x_.exports.default=x_.exports})(regeneratorRuntime$1);var regeneratorRuntimeExports=regeneratorRuntime$1.exports,runtime=regeneratorRuntimeExports(),regenerator=runtime;try{regeneratorRuntime=runtime}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}const _regeneratorRuntime=getDefaultExportFromCjs(regenerator);var Timeline=function(){function x_(){var eme=this;_classCallCheck$d(this,x_),this.children=[],this.autoSleep=200,this.tickerKey=void 0,this.startTime=void 0,this.addChild=function($P){eme.children.indexOf($P)===-1?(eme.children.push($P),eme.updateTickerState()):eme.start()},this.removeChild=function($P){eme.children=eme.children.filter(function(tme){return tme!==$P}),eme.updateTickerState()},this.kill=function($P){eme.children=eme.children.filter(function(tme){var ame=tme.root.targets,nme=ame.map(function(ime,ome){if($P.indexOf(ime)===-1)return ime;delete ime._tweenOneVars});tme.root.targets=nme;var rme=!!nme.filter(function(ime){return ime}).length;return rme||tme.kill(),rme}),eme.updateTickerState()},this.killAll=function($P){$P&&(eme.children.forEach(function(tme){tme==null||tme.root.targets.forEach(function(ame){ame&&delete ame._tweenOneVars})}),eme.children=[]),ticker.clear(eme.tickerKey),eme.tickerKey=void 0},this.getTotalTime=function(){for(var $P=0,tme=0;tme<eme.children.length;tme++){var ame=eme.children[tme],nme=ame.pausedState?0:ame.startTime+ame.totalTime;$P?$P=Math.max(nme,$P):$P=nme}return $P},this.updateTickerState=function(){!eme.children.length||!eme.children.some(function($P){return!($P!=null&&$P.pausedState)&&(!($P!=null&&$P.reverseState)&&$P.progressTime<$P.totalTime||($P==null?void 0:$P.reverseState)&&$P.progressTime>0)})?eme.killAll(!eme.children.length):eme.start()},this.start=function(){eme.tickerKey||(eme.tickerKey=ticker.add(eme.render))},this.render=function($P){for(var tme=$P.time,ame=$P.elapsed,nme=ame===void 0?0:ame,rme=eme.children,ime=rme.length,ome=0;ome<ime;ome++){var lme=rme[ome];if(lme){var sme=lme.startTime-nme,cme=lme.startTime+lme.totalTime+nme;tme>sme&&tme<cme&&!lme.pausedState&&lme.render({time:tme,elapsed:nme})}}}}return _createClass$b(x_,[{key:"totalTime",get:function(){return this.getTotalTime()}}]),x_}(),Element$1=function(){function x_(eme){var $P=this;_classCallCheck$d(this,x_),this.item=void 0,this.vars={},this.start=void 0,this.parent=void 0,this.root=void 0,this.startAt={},this.mode=void 0,this.appearTo=0,this.props={},this.index=void 0,this.register=void 0,this.reverseStart=void 0,this.repeatNum=0,this.prevMoment=void 0,this.easing=void 0,this.changeValueToVars=function(rme,ime,ome){var lme=(Array.isArray(ime)||rme.match(/color|fill|stroke|.*shadow/i)&&typeof ime=="string"||typeof ime=="string"&&ime.split(/[\s|,]/).length>1)&&!(rme in Plugins);if(rme in Plugins||lme)return ome?ime:{value:ime,plugins:[],array:lme};var sme=parseFloat(ime.toString().replace(/=/g,"")),cme=ime.toString().replace(/[^a-z|%]/g,""),dme=ime.toString().charAt(1)==="="?ime.toString().replace(/[^\+\=|\-\=]/gi,""):"";return{vars:sme,unit:cme,count:dme}},this.setEase=function(rme){if(typeof rme=="function"){$P.easing=rme;return}else if(rme.match(/,/g)){$P.easing=easingTypes.path(rme);return}$P.easing=easingTypes[rme]},this.getTotalTime=function(){var rme=$P.props,ime=rme.duration,ome=ime===void 0?450:ime,lme=rme.delay,sme=lme===void 0?0:lme,cme=rme.repeat,dme=cme===void 0?0:cme,ume=rme.repeatDelay,fme=ume===void 0?0:ume;return dme===-1?Number.MAX_VALUE:sme+ome*(dme+1)+fme*dme},this.getEaseToRatio=function(rme,ime){var ome=$P.props.ease,lme=ome===void 0?"":ome;return(rme===0||rme===1)&&!(typeof lme=="function"||lme.match(/,/g))?rme:$P.easing(ime?1-rme:rme,ime?1:0,ime?0:1,1)},this.setRatioToVars=function(rme){for(var ime=$P.vars,ome=$P.root,lme=0;lme<ome.targets.length;lme++)if(ome.targets[lme])for(var sme in ime){var cme=ime[sme];if(cme.plugins){sme==="PathMotion"?ome.vars[lme].style=cme.plugins[lme].render(rme):ome.vars[lme][sme]=cme.plugins[lme].render(rme);continue}var dme=cme.vars,ume=cme.count,fme=cme.unit,pme=$P.start[lme][sme];ome.vars[lme][sme]=getValue$1(pme,dme,rme,ume,fme)}},this.onRegisterAnimate=function(){$P.register=!0;for(var rme=$P.root,ime=$P.parent,ome=$P.startAt,lme=[],sme=0;sme<rme.targets.length;sme++){var cme=rme.targets[sme],dme=rme.vars[sme],ume={};for(var fme in $P.vars){var pme=$P.vars[fme];if(pme.plugins){var hme=new Plugins[pme.array?"ArrayPlugin":fme](pme.value,fme);hme.target=cme,hme.root=rme,hme.parent=ime,hme.targetIndex=sme,hme.tweenVars=dme,hme.index=$P.index,hme.startAt=ome,ume[fme]=hme.getAnimStart(),pme.plugins.push(hme)}else{var bme,mme,vme=(bme=rme.attr?cme.getAttribute(fme):dme[fme]||cme[fme])!==null&&bme!==void 0?bme:getDefaultStart(fme),gme=(mme=ome[fme])!==null&&mme!==void 0?mme:vme,yme=_typeof$4(gme)==="object"&&"vars"in gme&&"count"in gme,_me=yme?gme.unit:"".concat(gme).replace(/[^a-z|%]/g,""),$me=pme.unit;_me&&_me!==$me&&console.warn("Different units, start unit ".concat(_me,", to value unit ").concat($me,", remove start unit.")),ume[fme]=yme?getStartAtValue(vme,gme):parseFloat(gme)}}lme.push(ume)}$P.start=lme},this.overflowRatio=function(rme){var ime=rme<0?0:rme,ome=$P.props.duration;return ime=ime>ome?ome:ime,ime},this.render=function(rme){var ime=rme.moment,ome=rme.fps,lme=ome===void 0?0:ome,sme=rme.silence,cme=rme.render,dme=$P.parent,ume=$P.root,fme=$P.props,pme=flatArray(ume.targets),hme=dme.onChange,bme=fme.repeat,mme=bme===void 0?0:bme,vme=fme.type,gme=vme===void 0?"to":vme,yme=fme.duration,_me=yme===void 0?450:yme,$me=fme.delay,Cme=$me===void 0?0:$me,Sme=fme.repeatDelay,Eme=Sme===void 0?0:Sme,xme=fme.yoyo;mme=mme===-1?Number.MAX_VALUE:mme;var Tme=ime-Cme,Ome=Math.floor(Tme/(_me+Eme))||0;Ome=Ome>mme?mme:Ome,Ome=Ome<0?0:Ome,Tme=Tme-(_me+Eme)*Ome;var Rme=!!(xme&&Ome%2),Nme=gme==="from",Ime=Rme&&Nme?!1:Rme||Nme;Tme=Ime?_me-Tme:Tme;var Pme=Nme?0:Cme,Mme=Ime?1:0;if(!$P.register&&ime>=Pme&&($P.onRegisterAnimate(),(Ime&&Tme<=0||!Ime&&Tme>=_me&&_me)&&($P.prevMoment=ime,Mme=Ime?0:1),$P.setRatioToVars(Mme),hme({index:$P.index,vars:ume.vars})),$P.register&&ime>Cme-lme&&ime<$P.totalTime+lme){Tme=$P.overflowRatio(Tme),Mme=Ime?1:0,ime>=$P.totalTime&&$P.mode!=="onComplete"&&$P.prevMoment!==void 0||$P.prevMoment===void 0&&ime>=$P.totalTime&&_me?(Mme=Ime?0:1,$P.mode="onComplete",$P.props.onComplete&&$P.props.onComplete({mode:$P.mode,index:$P.index,moment:Tme,ratio:Mme,targets:pme,vars:flatArray(ume.vars)})):$P.prevMoment===void 0||ime<=0&&ime>-lme&&$P.mode!=="onStart"&&$P.prevMoment>ime?($P.mode="onStart",$P.props.onStart&&$P.props.onStart({mode:$P.mode,index:$P.index,moment:Tme,ratio:Mme,targets:pme,vars:flatArray(ume.vars)})):(Mme=Tme&&_me?Tme/_me:0,$P.mode="onUpdate",$P.props.onUpdate&&$P.props.onUpdate({mode:$P.mode,index:$P.index,moment:Tme,ratio:Mme,targets:pme,vars:flatArray(ume.vars)})),mme&&Ome!==$P.repeatNum&&ime&&$P.mode==="onUpdate"&&($P.mode="onRepeat",$P.props.onRepeat&&$P.props.onRepeat({mode:$P.mode,index:$P.index,moment:Tme,ratio:Mme,targets:pme,vars:flatArray($P.root.vars)})),$P.setRatioToVars($P.getEaseToRatio(Mme,Nme)),mme&&($P.repeatNum=Ome);var kme={mode:$P.mode,moment:Tme,repeat:Ome,ratio:Mme,targets:ume.targets,vars:ume.vars,index:$P.index};sme&&(kme.silence=sme),cme&&(kme.render=cme),hme(kme),$P.prevMoment=ime}},this.item=eme,this.startAt=_objectSpread2$4({},eme.startAt),Object.keys(this.startAt).forEach(function(rme){$P.startAt[rme]=$P.changeValueToVars(rme,$P.startAt[rme],!0)});var tme={};for(var ame in eme){var nme=eme[ame];ame in initAnimProps?tme[ame]=nme:this.vars[ame]=this.changeValueToVars(ame,nme)}this.props=_objectSpread2$4(_objectSpread2$4({},initAnimProps),tme),this.setEase(this.props.ease)}return _createClass$b(x_,[{key:"totalTime",get:function(){return this.getTotalTime()}}]),x_}(),AnimateGroup=_createClass$b(function x_(eme){var $P=this;_classCallCheck$d(this,x_),this.props=void 0,this.id=void 0,this.children=[],this.totalTime=0,this.totalTimeRegion=0,this.childTotalTime=0,this.childRegionTotalTime=0,this.prevMoment=void 0,this.progressTime=0,this.progressMoment=-1,this.startMoment=0,this.startTime=0,this.repeatNum=0,this.mode="onTimelineStart",this.pausedState=void 0,this.reverseState=void 0,this.root=void 0,this.parent=void 0,this.regionStartTime=0,this.regionEndTime=void 0,this.onChangeChild=void 0,this.onChangeTimeline=void 0,this.init=function(){for(var rme=$P.props,ime=rme.reverse,ome=rme.animation,lme=rme.moment,sme=dataToArray(ome),cme=0;cme<sme.length;cme++){var dme=sme[cme];dme.type==="set"&&(dme.duration=0);var ume=new Element$1(dme);ume.index=cme;var fme=cme?getAnimatePos(dme,sme[cme-1]):0;dme.appearTo=fme,ume.appearTo=fme,$P.addChild(ume)}$P.render({time:(ime?$P.totalTime:0)+$P.startTime,elapsed:16.67}),$P.totalTime||$P.render({time:(ime?$P.totalTime:0)+$P.startTime,elapsed:16.67}),lme?$P.goto(lme):$P.play()},this.addChild=function(rme){rme.parent=$P,rme.root=$P.root,$P.children.indexOf(rme)===-1&&($P.children.push(rme),$P.setTotalTime())},this.setTotalTime=function(){$P.childTotalTime=0,$P.childRegionTotalTime=0;for(var rme=0;rme<$P.children.length;rme++){var ime=$P.children[rme];if(ime.appearTo!==$P.childTotalTime){var ome=ime.appearTo+ime.totalTime;ome>$P.childTotalTime&&($P.childTotalTime=ome,$P.childRegionTotalTime=ome)}else $P.childTotalTime+=ime.totalTime,$P.childRegionTotalTime+=ime.totalTime}$P.regionStartTime&&($P.childRegionTotalTime-=$P.regionStartTime),$P.regionEndTime&&($P.childRegionTotalTime=$P.regionEndTime-$P.regionStartTime);var lme=$P.props,sme=lme.repeat,cme=sme===void 0?0:sme,dme=lme.repeatDelay,ume=dme===void 0?0:dme,fme=lme.delay;$P.totalTime=cme===-1?Number.MAX_VALUE:fme+$P.childTotalTime*(cme+1)+ume*cme,$P.totalTimeRegion=cme===-1?Number.MAX_VALUE:fme+$P.childRegionTotalTime*(cme+1)+ume*cme},this.setStartTimeOrMoment=function(rme){$P.startTime=ticker.time,$P.startMoment=rme||$P.progressMoment},this.reRenderCall=function(){$P.render({time:$P.startTime,elapsed:ticker.elapsed||ticker.frameFPS})},this.play=function(rme){if(rme){var ome;(ome=$P.parent)===null||ome===void 0||ome.updateTickerState()}else{var ime;(ime=$P.parent)===null||ime===void 0||ime.addChild($P)}},this.paused=function(){var rme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;$P.pausedState=rme,$P.setStartTimeOrMoment(),$P.play(rme)},this.reverse=function(rme){$P.reverseState=rme,$P.setStartTimeOrMoment(),$P.play($P.pausedState)},this.goto=function(rme,ime){var ome=rme-$P.regionStartTime;$P.startTime=ticker.time,$P.startMoment=ome>$P.totalTime?$P.totalTime:ome,$P.progressMoment=$P.startMoment,$P.progressTime=ome,$P.play($P.pausedState),$P.reRenderCall(),!!ime!==$P.pausedState&&$P.paused(ime)},this.kill=function(rme){if(typeof rme=="number")$P.paused(),delete $P.children[rme],$P.setTotalTime(),$P.paused(!1);else{var ime;$P.children=[],(ime=$P.parent)===null||ime===void 0||ime.removeChild($P)}},this.onChange=function(rme){rme.timelineMoment=$P.progressMoment,$P.onChangeChild(rme)},this.render=function(rme){var ime=rme.time,ome=rme.elapsed,lme=ome||ticker.frameFPS||0,sme=$P.totalTime,cme=$P.totalTimeRegion,dme=$P.childTotalTime,ume=$P.childRegionTotalTime,fme=$P.children,pme=$P.props,hme=$P.startTime,bme=$P.reverseState,mme=$P.pausedState,vme=$P.startMoment,gme=$P.onChangeTimeline,yme=$P.parent,_me=$P.root,$me=$P.prevMoment,Cme=$P.regionStartTime,Sme=pme.repeatDelay,Eme=Sme===void 0?0:Sme,xme=pme.yoyo,Tme=pme.delay,Ome=pme.repeat,Rme=Ome===void 0?0:Ome;Rme=Rme===-1?Number.MAX_VALUE:Rme;var Nme=ime-hme-Tme,Ime=bme?vme-Nme:Nme+vme;if(!(Ime<-lme)){var Pme=Ime<0?0:Ime;Pme=Pme>sme?sme:Pme,Pme=vme<Cme?Ime:Pme,Pme=vme>cme?vme:Pme;var Mme=Rme?Math.floor(Pme/(ume+Eme)):0;Mme=Rme&&Mme>Rme?Rme:Mme;var kme=Pme-(ume+Eme)*Mme,Bme=!!(xme&&Mme%2);kme=Bme?ume-kme:kme,kme=Cme+kme;var Dme=bme?!Bme:Bme;if($P.mode="onTimelineUpdate",typeof $me!="number"&&($P.mode="onTimelineStart"),Pme>=cme-Tme&&typeof $me=="number"&&($P.mode="onTimelineComplete"),Mme!==$P.repeatNum&&($P.mode="onTimelineRepeat",Pme>dme*Mme&&Pme<dme*Mme+lme)){for(var jme=Dme?0:fme.length-1;Dme?jme<=fme.length-1:jme>=0;Dme?jme++:jme--){var Vme=fme[jme];Dme||(Vme.prevMoment=void 0),Vme.render({moment:Dme?Vme.totalTime:0,fps:lme})}gme({moment:Pme,totalTime:sme,repeat:Mme,mode:$P.mode,targets:_me.targets}),$P.mode="onTimelineUpdate"}Rme&&($P.repeatNum=Mme),$P.progressMoment=Pme,$P.prevMoment=Pme,$P.progressTime=Nme;for(var Wme=0;Wme<fme.length;Wme++){var Lme=fme[Wme],zme=Lme.totalTime+Lme.appearTo,Ume=kme>=Lme.appearTo-lme&&kme<zme+lme;if((Lme.mode!=="onComplete"&&kme>zme+lme&&!Bme&&Lme.totalTime||typeof Lme.mode>"u"&&!Lme.totalTime)&&(Lme.render({moment:Lme.totalTime,fps:lme}),Lme.prevMoment=void 0),kme<Lme.appearTo-lme&&Lme.mode&&Lme.mode!=="onStart"&&(Lme.render({moment:Lme.appearTo,fps:lme,silence:!0}),Lme.prevMoment=void 0,Lme.mode=void 0),Ume){var Gme=kme<0?0:kme;if(kme>zme&&Lme.mode==="onComplete"&&!Bme)return;Gme=kme>zme?zme:kme,Lme.render({moment:Gme-Lme.appearTo,fps:lme}),zme||(Lme.render({moment:Lme.totalTime,fps:lme,render:!0}),Lme.prevMoment=void 0)}}gme({moment:Pme,totalTime:sme,repeat:Mme,mode:$P.mode,targets:_me.targets}),(mme||cme&&Ime+Tme>=cme&&!bme||bme&&Ime+Tme<=0||!fme.length)&&(yme==null||yme.removeChild($P))}},this.props=eme;var tme=this.props,ame=tme.paused,nme=tme.reverse;this.reverseState=nme,this.pausedState=ame,this.regionStartTime=eme.regionStartTime||0,this.regionEndTime=eme.regionEndTime});Plugins.push(ArrayPlugin);Plugins.push(GradientsPlugin);Plugins.push(style);var tweenId=0,globalTimeline=new Timeline,Tween=function(){function x_(eme,$P){var tme=this;_classCallCheck$d(this,x_),this.targets=void 0,this.props=void 0,this.timeline=void 0,this.animate=void 0,this.$reverse=!1,this.vars=[],this.initTime=void 0,this.attr=void 0,this.init=function(){var ame=_asyncToGenerator(_regeneratorRuntime.mark(function nme(rme){var ime;return _regeneratorRuntime.wrap(function(lme){for(;;)switch(lme.prev=lme.next){case 0:ime=getInitProps(rme),tme.targets[0].tagName&&!tme.attr&&(ime.animation=dataToArray(ime.animation).map(function(sme){var cme={style:{}};for(var dme in sme)dme in Plugins||dme in initAnimProps?cme[dme]=sme[dme]:cme.style[dme]=sme[dme];return Object.keys(cme.style).length||delete cme.style,sme.duration&&(sme.duration=Math.round(sme.duration)),sme.delay&&(sme.delay=Math.round(sme.delay)),sme.appearTo&&(sme.appearTo=Math.round(sme.appearTo)),sme.repeatDelay&&(sme.repeatDelay=Math.round(sme.repeatDelay)),cme})),tme.animate=new AnimateGroup(ime),tme.animate.id="TweenOne_".concat(tweenId),tweenId++,tme.animate.startTime=tme.initTime,tme.animate.onChangeChild=tme.onChange,tme.animate.onChangeTimeline=tme.onChangeTimeline,tme.animate.root=tme,tme.animate.parent=tme.timeline,tme.animate.init();case 11:case"end":return lme.stop()}},nme)}));return function(nme){return ame.apply(this,arguments)}}(),this.renderToDom=function(){for(var ame=0;ame<tme.vars.length;ame++){var nme=tme.vars[ame];for(var rme in nme){var ime=nme[rme],ome=tme.targets[ame];if(ome)if(tme.props.attr&&ome.tagName&&ome.setAttribute){if(rme==="style")for(var lme in ime)ome.style[lme]=ime[rme];ome.setAttribute(rme,ime)}else if(rme in Plugins){var sme=Plugins[rme].key;if(typeof ome[sme]=="function")ome[sme](ime.attr,ime.path);else if(_typeof$4(ime)==="object"&&_typeof$4(ome[sme])==="object"&&sme)for(var cme in ime){var dme=ime[cme];sme==="__self"?ome[cme]=dme:ome[sme][cme]=_typeof$4(dme)==="object"&&dme.text||dme}else ome[sme||rme]=ime}else ome[rme]=ime}}},this.onChange=function(ame){ame.mode==="onComplete"&&ame.render&&tme.renderToDom(),ame.mode&&tme.props.onChange&&!ame.silence&&(ame.targets=flatArray(ame.targets),ame.vars=flatArray(ame.vars),tme.props.onChange(ame))},this.onChangeTimeline=function(ame){if(tme.renderToDom(),ame.mode==="onTimelineComplete"){var nme;(nme=ame.targets)===null||nme===void 0||nme.forEach(function(rme){delete rme._tweenOneVars})}ame.mode&&tme.props.onChangeTimeline&&(ame.targets=flatArray(ame.targets),ame.vars=flatArray(tme.vars),tme.props.onChangeTimeline(ame))},this.goto=function(ame,nme){tme.targets.forEach(function(rme){rme&&Object.keys(rme._tweenOneVars||{}).forEach(function(ime){delete rme._tweenOneVars[ime]})}),tme.animate.goto(ame,nme)},this.kill=function(ame){tme.animate.kill(ame)},this.targets=eme,this.props=$P,this.timeline=globalTimeline,this.initTime=ticker.time,this.attr=$P.attr,eme.forEach(function(ame){tme.vars.push(ame._tweenOneVars)}),this.init($P)}return _createClass$b(x_,[{key:"paused",get:function(){return this.animate.pausedState},set:function($P){this.animate.paused($P)}},{key:"reverse",get:function(){return this.$reverse},set:function($P){this.$reverse=$P,this.animate.reverse($P)}},{key:"regionStartTime",get:function(){return this.animate.regionStartTime},set:function($P){this.animate.regionStartTime=$P,this.animate.setTotalTime()}},{key:"regionEndTime",get:function(){return this.animate.regionEndTime||this.animate.totalTime},set:function($P){this.animate.regionEndTime=$P,this.animate.setTotalTime()}}]),x_}(),TweenOne=function(eme,$P){if(!eme){console.error("Error: targets is undefined.");return}ticker.state!=="wake"&&ticker.wake();var tme=dataToArray(eme).map(function(ime){return ime._tweenOneVars=ime._tweenOneVars||{},ime}),ame=tme.filter(function(ime){return ime.tagName}),nme=tme.filter(function(ime){return!ime.tagName}),rme=[];return ame.length&&rme.push(new Tween(ame,$P)),nme.length&&rme.push(new Tween(nme,$P)),flatArray(rme)};TweenOne.kill=function(x_){typeof x_>"u"?globalTimeline.killAll(!0):globalTimeline.kill(dataToArray(x_))};TweenOne.plugins=Plugins;var windowIsUndefined=!(typeof window<"u"&&window.document&&window.document.createElement);function toArrayChildren(x_){var eme=[];return React__default.Children.forEach(x_,function($P){eme.push($P)}),eme}function findChildInChildrenByKey(x_,eme){var $P=null;return x_&&x_.forEach(function(tme){$P||!tme||tme.key===eme&&($P=tme)}),$P}function mergeChildren(x_,eme){var $P=[],tme={},ame=[],nme;return x_.forEach(function(rme){rme&&(findChildInChildrenByKey(eme,rme.key)?(ame.length&&(tme[rme.key]=ame,ame=[]),nme=rme.key):rme.key&&ame.push(rme))}),nme||($P=$P.concat(ame)),eme.forEach(function(rme){rme&&(tme.hasOwnProperty(rme.key)&&($P=$P.concat(tme[rme.key])),$P.push(rme),rme.key===nme&&($P=$P.concat(ame)))}),$P}function transformArguments(x_,eme,$P){var tme;return typeof x_=="function"?tme=x_({key:eme,index:$P}):tme=x_,Array.isArray(tme)?tme.length===2?tme:[tme[0],tme[0]]:[tme,tme]}const AnimTypes={left:{opacity:[1,0],translateX:[0,-30]},top:{opacity:[1,0],translateY:[0,-30]},right:{opacity:[1,0],translateX:[0,30]},bottom:{opacity:[1,0],translateY:[0,30]},alpha:{opacity:[1,0]},scale:{opacity:[1,0],scale:[1,0]},scaleBig:{opacity:[1,0],scale:[1,2]},scaleX:{opacity:[1,0],scaleX:[1,0]},scaleY:{opacity:[1,0],scaleY:[1,0]}};var _excluded$1=["component","componentProps","interval","duration","delay","type","animConfig","ease","leaveReverse","forcedReplay","animatingClassName","onEnd","appear"],noop$1=function(){};const QueueAnim=reactExports.forwardRef(function(x_,eme){var $P=x_.component,tme=$P===void 0?"div":$P,ame=x_.componentProps,nme=ame===void 0?{}:ame,rme=x_.interval,ime=rme===void 0?100:rme,ome=x_.duration,lme=ome===void 0?450:ome,sme=x_.delay,cme=sme===void 0?0:sme,dme=x_.type,ume=dme===void 0?"right":dme,fme=x_.animConfig,pme=fme===void 0?null:fme,hme=x_.ease,bme=hme===void 0?"easeOutQuart":hme,mme=x_.leaveReverse,vme=mme===void 0?!1:mme,gme=x_.forcedReplay,yme=gme===void 0?!1:gme,_me=x_.animatingClassName,$me=_me===void 0?["queue-anim-entering","queue-anim-leaving"]:_me,Cme=x_.onEnd,Sme=Cme===void 0?noop$1:Cme,Eme=x_.appear,xme=Eme===void 0?!0:Eme,Tme=_objectWithoutProperties$6(x_,_excluded$1),Ome=reactExports.useRef({}),Rme=reactExports.useRef([]),Nme=reactExports.useRef([]),Ime=reactExports.useRef([]),Pme=reactExports.useRef([]),Mme=reactExports.useRef({}),kme=reactExports.useRef({}),Bme=reactExports.useRef({}),Dme=reactExports.useRef({}),jme=reactExports.useRef(!1),Vme=reactExports.useRef([]),Wme=reactExports.useState(),Lme=_slicedToArray$2(Wme,2),zme=Lme[0],Ume=Lme[1],Gme=reactExports.useState({}),Jme=_slicedToArray$2(Gme,2),Yme=Jme[0],Qme=Jme[1],Xme=function(vbe,kbe,Rbe){var Pbe={};return Object.keys(vbe).forEach(function(Mbe){Array.isArray(vbe[Mbe])?Pbe[Mbe]=vbe[Mbe][kbe]:(!Rbe&&!kbe||Rbe&&kbe)&&(Pbe[Mbe]=vbe[Mbe])}),Pbe},Kme=function(vbe,kbe,Rbe){return Array.isArray(vbe)?vbe.map(function(Pbe){return Xme(Pbe,kbe,Rbe)}):Xme(vbe,kbe,Rbe)},Zme=function(vbe,kbe){var Rbe=AnimTypes[vbe];return Kme(Rbe,kbe)},nbe=function(vbe,kbe,Rbe,Pbe){return pme?Kme(transformArguments(pme,vbe,kbe)[Rbe],Pbe,Rbe):Zme(transformArguments(ume,vbe,kbe)[Rbe],Pbe)},lbe=function(vbe,kbe,Rbe){var Pbe=Rbe==="enter"?0:1,Mbe=Rbe==="enter"?1:0,Kbe=Rbe==="enter"?0:1,Qbe=nbe(vbe,kbe,Pbe,Kbe),Gbe=Rbe==="enter"&&(yme||!Ome.current[vbe])?nbe(vbe,kbe,Pbe,Mbe):null,Hbe=transformArguments(bme,vbe,kbe)[Pbe],d0e=transformArguments(lme,vbe,kbe)[Pbe];return Array.isArray(bme)&&(bme.length>2||Array.isArray(bme[0]))&&(Hbe=Hbe.map(function(p0e){return p0e*100}),Hbe="M0,100C".concat(Hbe[0],",").concat(100-Hbe[1],",").concat(Hbe[2],",").concat(100-Hbe[3],",100,0")),{startAnim:Gbe,animate:Qbe,ease:Hbe,duration:d0e}},ibe=function(vbe,kbe){var Rbe=kbe.targets;Rbe.className=Rbe.className.replace($me[1],""),Rbe.className.indexOf($me[0])===-1&&(Rbe.className="".concat(Rbe.className," ").concat($me[0]).trim()),Rme.current.indexOf(vbe)>=0&&Rme.current.splice(Rme.current.indexOf(vbe),1),Ome.current[vbe]=!0},abe=function(vbe,kbe){if(!(Ime.current.indexOf(vbe)>=0)){var Rbe=kbe.targets;Rbe.className=Rbe.className.replace($me[0],"").trim(),delete Dme.current[vbe],Sme({key:vbe,type:"enter",target:Rbe})}},obe=function(vbe,kbe){var Rbe=kbe.targets;Rbe.className=Rbe.className.replace($me[0],""),Rbe.className.indexOf($me[1])===-1&&(Rbe.className="".concat(Rbe.className," ").concat($me[1]).trim())},hbe=function(vbe,kbe){if(toArrayChildren(x_.children).findIndex(function(Kbe){return Kbe&&Kbe.key===vbe}),!(toArrayChildren(x_.children).findIndex(function(Kbe){return Kbe&&Kbe.key===vbe})>=0)){delete Ome.current[vbe],delete Dme.current[vbe],Vme.current=Vme.current.filter(function(Kbe){return Kbe.key!==vbe}),Ime.current.indexOf(vbe)>=0&&Ime.current.splice(Ime.current.indexOf(vbe),1);var Rbe=Ime.current.some(function(Kbe){return Yme[Kbe]});if(!Rbe){var Pbe=toArrayChildren(x_.children);Ume(Pbe),Qme(_objectSpread2$4({},Ome.current)),Pme.current.forEach(function(Kbe){delete Bme.current[Kbe]})}var Mbe=kbe.targets;Mbe.className=Mbe.className.replace($me[1],"").trim(),Sme({key:vbe,type:"leave",target:Mbe})}},ube=function(vbe){Yme[vbe]=!0,ticker.clear(Mme.current[vbe]),delete Mme.current[vbe],Qme(_objectSpread2$4({},Yme))},mbe=function(vbe,kbe){var Rbe=transformArguments(ime,vbe,kbe)[0],Pbe=transformArguments(cme,vbe,kbe)[0];Mme.current[vbe]=ticker.timeout(function(){ube(vbe)},Rbe*kbe+Pbe)},pbe=function(vbe){ticker.clear(Mme.current[vbe]),delete Mme.current[vbe]},_be=function(vbe,kbe,Rbe,Pbe){var Mbe=lbe(vbe,kbe,Pbe),Kbe=function(p0e){(Pbe==="enter"?ibe:obe)(vbe,p0e)},Qbe=function(p0e){(Pbe==="enter"?abe:hbe)(vbe,p0e)};if(Array.isArray(Mbe.animate)){var Gbe=Mbe.animate.length-1,Hbe=Mbe.animate.map(function(d0e,p0e){return _objectSpread2$4(_objectSpread2$4({},d0e),{},{startAt:Mbe.startAnim?Mbe.startAnim[p0e]:void 0,duration:Mbe.duration/Gbe,delay:!p0e&&Pbe==="leave"?Rbe:0,onStart:p0e?void 0:Kbe,onComplete:p0e===Gbe?Qbe:void 0})});return Hbe}return _objectSpread2$4(_objectSpread2$4({},Mbe.animate),{},{startAt:Mbe.startAnim||void 0,ease:Mbe.ease,duration:Mbe.duration,onStart:Kbe,onComplete:Qbe,delay:Rbe})};return reactExports.useEffect(function(){return function(){Object.keys(Dme.current).forEach(function(Sbe){var vbe=Dme.current[Sbe];vbe&&vbe.kill()})}},[]),reactExports.useEffect(function(){var Sbe=toArrayChildren(x_.children).filter(function(Kbe){return Kbe}),vbe=Vme.current.filter(function(Kbe){return Kbe}),kbe=mergeChildren(vbe,Sbe),Rbe=[],Pbe=[];if(!xme&&!jme.current){var Mbe={};kbe.forEach(function(Kbe){!Kbe||!Kbe.key||(Mbe[Kbe.key]=!0)}),Vme.current=kbe,Ome.current=_objectSpread2$4({},Mbe),Qme(Mbe)}else vbe.forEach(function(Kbe){if(Kbe){var Qbe=Kbe.key,Gbe=findChildInChildrenByKey(Sbe,Qbe);!Gbe&&Qbe&&(Pbe.push(Qbe),ticker.clear(Mme.current[Qbe]),delete Mme.current[Qbe])}}),Sbe.forEach(function(Kbe){if(Kbe){var Qbe=Kbe.key,Gbe=findChildInChildrenByKey(vbe,Qbe);(!Gbe&&Qbe||(!Bme.current[Qbe]||Bme.current[Qbe]==="leave"||Rme.current.indexOf(Qbe)>=0)&&Pbe.indexOf(Qbe)===-1)&&Rbe.push(Qbe)}});Rme.current=Rbe,Nme.current=[].concat(Rbe),Ime.current=Pbe,Pme.current=[].concat(Pbe),Ume(kbe)},[x_.children]),reactExports.useLayoutEffect(function(){if(Vme.current=zme||[],xme||jme.current){var Sbe=_toConsumableArray$1(Rme.current),vbe=_toConsumableArray$1(Ime.current);Sbe.forEach(mbe),vbe.forEach(pbe)}zme&&(jme.current=!0)},[zme]),reactExports.useLayoutEffect(function(){zme&&zme.forEach(function(Sbe){var vbe=Sbe.key,kbe=kme.current[vbe];if(kbe){var Rbe,Pbe=Ime.current.indexOf(vbe),Mbe=transformArguments(ime,vbe,Pbe),Kbe=transformArguments(cme,vbe,Pbe);if(Pbe>=0){if(Bme.current[vbe]==="leave")return;var Qbe=vme?Ime.current.length-Pbe-1:Pbe,Gbe=Mbe[1]*Qbe+Kbe[1];Rbe=_be(vbe,Pbe,Gbe,"leave"),Bme.current[vbe]="leave"}else{if(Bme.current[vbe]==="enter"||Rme.current.indexOf(vbe)===-1)return;Pbe=Nme.current.indexOf(vbe);var Hbe=Mbe[0]*Pbe+Kbe[0];Rbe=_be(vbe,Pbe,Bme.current[vbe]==="leave"?Hbe:0,"enter"),Bme.current[vbe]="enter"}if(Dme.current[vbe]&&Dme.current[vbe].kill(),yme){var d0e=_objectSpread2$4(_objectSpread2$4({},Array.isArray(Rbe)?Rbe[0].startAt:Rbe.startAt),{},{type:"set"});TweenOne(kbe,{animation:d0e})}Dme.current[vbe]=TweenOne(kbe,{animation:Rbe})}})},[Yme,zme]),reactExports.useMemo(function(){if(windowIsUndefined)return reactExports.createElement(tme,_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},Tme),nme),{},{ref:eme}));var Sbe=toArrayChildren(zme).map(function(kbe){return!kbe||!kbe.key?kbe:Yme[kbe.key]&&reactExports.cloneElement(kbe,{ref:function(Pbe){kme.current[kbe.key]=Pbe instanceof Element?Pbe:reactDomExports.findDOMNode(Pbe),Pbe||delete kme.current[kbe.key]},key:kbe.key})}),vbe=_objectSpread2$4(_objectSpread2$4(_objectSpread2$4({},Tme),nme),{},{ref:eme});return reactExports.createElement(tme,vbe,Sbe)},[Yme,zme])}),Tab=({item:x_,close:eme,menuClick:$P,closeable:tme=!0})=>{const{t:ame}=useLang(),nme=useHistory(),rme=nme.location.pathname,{settings:ime}=useSetting(),{getCurrentRoute:ome}=useRoute();if(!x_)return null;const lme=[{label:ame("tabMenu.close"),key:"close",icon:jsx(Icon,{icon:"ant-design:close-outlined"})},{label:ame("tabMenu.closeOthers"),key:"closeOthers",icon:jsx(Icon,{icon:"ant-design:column-width-outlined"})},{label:ame("tabMenu.closeLeft"),key:"closeLeft",icon:jsx(Icon,{icon:"ri:contract-left-line"})},{label:ame("tabMenu.closeRight"),key:"closeRight",icon:jsx(Icon,{icon:"ri:contract-right-line"})},{label:ame("tabMenu.closeAll"),key:"closeAll",icon:jsx(Icon,{icon:"fluent:subtract-20-filled"})}],sme=ome(),cme=()=>(tme||lme.shift(),(sme==null?void 0:sme.path)==x_.path&&lme.unshift({label:ame("tabMenu.refresh"),key:"refresh",icon:jsx(Icon,{icon:"ant-design:reload-outlined"})}),{items:lme,onClick:$P});return jsx(Fragment,{children:x_.title&&jsx(Dropdown,{menu:cme(),trigger:["contextMenu"],children:jsxs("div",{className:"h-[24px] flex cursor-pointer px-[12px] text-[12px] mr-[8px] rounded-[6px] items-center justify-center border nowrap"+" hover:bg-[var(--colors-brand-10)] hover:text-[var(--colors-brand-6)] hover:border-[var(--colors-brand-6)]"+" "+(rme==x_.path?" bg-[var(--colors-brand-10)] text-[var(--colors-brand-6)] border-[var(--colors-brand-6)]"+" current_selected_tab":""),onClick:()=>nme.push(x_.path+((x_==null?void 0:x_.search)||"")),children:[ime.system_theme_setting.tabIcon&&jsx(Icon,{icon:x_.icon,className:"mr-[10px]"}),x_.title,tme&&jsx(Icon,{icon:"mdi:close",className:" ml-[10px] hover:transform hover:scale-110 transition-all",onClick:hme=>{hme.stopPropagation(),eme(x_)}})]})})})},LayoutTabs=()=>{const x_=useHistory(),eme=x_.location.pathname,{routes:$P,defaultRoute:tme,getCurrentRoute:ame}=useRoute(),nme=getFlattenRoutes($P),rme=localStorage.getItem(getCacheKey("user_name")),[ime,ome]=useStorage(getCacheKey(rme+"_cached_tabs"),""),lme=JSON.parse(ime||"[]"),sme=nme.find(Eme=>Eme.path==="/"+tme),{drop:cme}=reactActivationExports.useAliveController(),[dme,ume]=React__default.useState([]),fme=Eme=>{ume([hme(sme,sme==null?void 0:sme.path,!0),...Eme])},pme=()=>{lme.length!=0&&lme.map(Eme=>{let xme=nme.find(Tme=>Tme.name===Eme.name);xme&&(Eme.title=xme.meta.title)}),fme(lme)},hme=(Eme,xme,Tme=!1)=>{var Ome,Rme;return{name:Eme==null?void 0:Eme.name,path:xme,search:Tme?"":x_.location.search,title:(Ome=Eme==null?void 0:Eme.meta)==null?void 0:Ome.title,icon:(Rme=Eme==null?void 0:Eme.meta)==null?void 0:Rme.icon}},bme=()=>{const Eme=ame();return Eme?hme(Eme,eme):null},mme=()=>{setTimeout(()=>{const Eme=document.querySelector(".current_selected_tab");for(let xme=0;xme<5;xme++)setTimeout(()=>{Eme==null||Eme.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},200)},100)},vme=()=>{mme();const Eme=bme();if(Eme){const xme=lme.find(Tme=>Tme.name===Eme.name);if(Eme.path=="/"+tme)return;if(xme){const Tme=lme.findIndex(Ome=>Ome.name===Eme.name);lme[Tme]=Eme}else lme.push(Eme);ome(JSON.stringify(lme)),fme(lme)}};registerGlobalFunction("closeTabByPath",Eme=>{const xme=lme.find(Tme=>Tme.path===Eme);xme&&yme(hme(xme,Eme))});const yme=Eme=>{if(Eme.path==eme){const xme=dme.findIndex(Ome=>Ome.name===Eme.name),Tme=dme[xme-1];x_.push((Tme==null?void 0:Tme.path)||"/"+tme)}_me([Eme])},_me=Eme=>{const xme=dme.filter(Tme=>!Eme.find(Ome=>Ome.name===Tme.name)&&Tme.path!="/"+tme);ome(JSON.stringify(xme)),fme(xme),Eme.forEach(Tme=>cme(Tme.name))},$me=(Eme,xme)=>{var Tme;switch(Eme){case"refresh":((Tme=ame())==null?void 0:Tme.url_type)==3?location.reload():window.$owl.refreshAmisPage();break;case"close":yme(xme);break;case"closeOthers":const Ome=lme.filter(Mme=>Mme.path!==xme.path);_me(Ome),x_.push(xme.path);break;case"closeLeft":const Rme=lme.findIndex(Mme=>Mme.path===xme.path),Nme=lme.filter((Mme,kme)=>kme<Rme);_me(Nme),x_.push(xme.path);break;case"closeRight":const Ime=lme.findIndex(Mme=>Mme.path===xme.path),Pme=lme.filter((Mme,kme)=>kme>Ime);_me(Pme),x_.push(xme.path);break;case"closeAll":_me(lme),x_.push("/"+tme);break}},Cme=({deltaY:Eme})=>document.querySelector(".owl-tabs").scrollLeft+=Eme;return reactExports.useEffect(()=>vme(),[$P,eme]),reactExports.useEffect(()=>pme(),[$P]),jsx("div",{className:"owl-tabs w-full h-[40px] flex px-[20px] overflow-x-auto overflow-y-hidden items-center border-b bg-[var(--owl-main-bg)] scroll-smooth",onWheel:Cme,children:dme.map((Eme,xme)=>jsx(Tab,{item:Eme,close:yme,menuClick:Tme=>$me(Tme.key,Eme),closeable:(Eme==null?void 0:Eme.path)!=(sme==null?void 0:sme.path)},xme))})},LayoutFooter=()=>{const{getSetting:x_}=useSetting();return x_("system_theme_setting.footer")?jsx("div",{className:"owl-footer h-[65px] flex items-center justify-center bg-[var(--owl-main-bg)] border-t",children:jsx("div",{dangerouslySetInnerHTML:{__html:x_("layout.footer")}})}):null},LayoutContent=()=>{const x_=reactExports.useRef(),[eme,$P]=reactExports.useState(null),{getSetting:tme}=useSetting(),{routes:ame,defaultRoute:nme,getCurrentRoute:rme}=useRoute(),ime=reactExports.useMemo(()=>getFlattenRoutes(ame)||[],[ame]),lme=useHistory().location.pathname,sme=useLocation(),cme=rme(),dme=()=>{var hme;let pme=(hme=cme==null?void 0:cme.meta)==null?void 0:hme.title;if(pme){const bme=tme("layout.title");bme&&(pme=bme.replace(/%title%/g,pme)),document.title=pme}},ume=()=>{const pme=eme/20,hme=bme=>{var mme;(mme=x_==null?void 0:x_.current)==null||mme.scrollTop(bme),!(bme<=0)&&setTimeout(()=>hme(bme-pme),10)};hme(eme)},fme=()=>{tme("system_theme_setting.keepAlive")&&document.body.classList.contains("is-modalOpened")&&window.location.reload()};return reactExports.useEffect(()=>{dme(),fme()},[lme,ame]),jsxs("div",{className:"h-full flex flex-col bg-[var(--owl-body-bg)]",id:"owl-container",children:[tme("system_theme_setting.enableTab")&&!(cme!=null&&cme.is_full)&&jsx(LayoutTabs,{}),jsx("div",{className:"flex-1",children:jsxs(lib$3.Scrollbars,{autoHide:!0,className:"clear-children-mb custom-scrollbar",ref:x_,onScroll:()=>$P(x_.current.getValues().scrollTop),children:[jsx(QueueAnim,{className:"relative",type:[tme("system_theme_setting.animateInType"),tme("system_theme_setting.animateOutType")],duration:[tme("system_theme_setting.animateInDuration"),tme("system_theme_setting.animateInDuration")],children:jsx("div",{id:lme,className:"absolute w-full iframe p-5",children:jsxs(Switch$4,{location:sme,children:[ime.map(({name:pme,path:hme,component:bme},mme)=>jsx(Route,{path:hme.replace(/\?.*$/,""),render:()=>{var vme;return jsx(reactActivationExports.KeepAlive,{name:pme,cacheKey:hme,id:`keep-alive-${pme}-${hme}`,when:(cme==null?void 0:cme.keep_alive)==1||tme("system_theme_setting.keepAlive")&&((vme=tme("layout.keep_alive_exclude"))==null?void 0:vme.indexOf(hme))==-1,children:React__default.createElement(bme,{currentRoute:cme})})}},mme)),jsx(Route,{exact:!0,path:"/",children:jsx(Redirect,{to:`/${nme}`})}),ime.length&&jsx(Route,{path:"*",component:lazyLoad(()=>__vitePreload(()=>import("./index-vucKhbCq.js"),[]))})]})},lme)}),eme>400&&jsx(FloatButton.BackTop,{style:{bottom:"5rem"},visibilityHeight:0,onClick:()=>ume()})]})}),!(cme!=null&&cme.is_full)&&jsx(LayoutFooter,{})]})},{Header:Header$4,Sider:Sider$2,Content:Content$6}=Layout$2,DefaultLayout$1=()=>{const{getSetting:x_}=useSetting(),[eme,$P]=reactExports.useState(!1),tme=()=>x_("system_theme_setting.siderTheme")=="dark"&&!x_("system_theme_setting.darkTheme");return jsxs(Layout$2,{className:"h-screen overflow-hidden",children:[jsxs(Sider$2,{width:220,className:tme()?"":"border-r",theme:tme()?"dark":"light",collapsed:eme,collapsible:!0,trigger:null,collapsedWidth:65,children:[jsx(LayoutLogo,{onlyLogo:eme}),jsx("div",{className:"h-[calc(100%-65px)] overflow-hidden",children:jsx(LayoutMenu,{collapsed:eme,theme:tme()?"dark":"light"})})]}),jsxs(Layout$2,{children:[jsxs(Header$4,{className:"h-[65px] leading-none flex justify-between items-center border-b p-0",children:[jsxs("div",{className:"flex h-full items-center",children:[jsx(CollapseTrigger,{collapsed:eme,toggle:$P}),jsx(LayoutBreadcrumb,{})]}),jsx(LayoutTopBar,{})]}),jsx(Content$6,{className:"overflow-hidden",children:jsx(LayoutContent,{})})]})]})},{Header:Header$3,Content:Content$5}=Layout$2,SmLayout=()=>{const{getSetting:x_}=useSetting(),[eme,$P]=reactExports.useState(!0);return jsxs(Layout$2,{className:"h-screen overflow-hidden",children:[jsxs(Header$3,{className:"h-[65px] leading-none flex justify-between items-center border-b p-0",children:[jsx("div",{className:"flex h-full items-center px-3",children:jsx(CollapseTrigger,{collapsed:eme,toggle:$P})}),jsx(LayoutTopBar,{})]}),jsx(Content$5,{className:"overflow-hidden",children:jsx(LayoutContent,{})}),jsx(Drawer$2,{bodyStyle:{padding:"5px 0"},width:220,open:!eme,className:x_("system_theme_setting.siderTheme")=="dark"?"!bg-[#001529]":"",placement:"left",onClose:()=>$P(!0),closeIcon:!1,headerStyle:{padding:0,height:"65px"},title:jsx(LayoutLogo,{}),children:jsx(LayoutMenu,{collapsed:!open,theme:x_("system_theme_setting.siderTheme")})})]})},useSmallScreen=()=>{var x_;return((x_=useSize$1(document.body))==null?void 0:x_.width)<768},LayoutTopMenu=({theme:x_="light",routeProps:eme=[],collapsed:$P=!1})=>{var yme;const tme=useHistory(),ame=tme.location.pathname,nme=queryString.parseUrl(ame).url.slice(1),{routes:rme,defaultRoute:ime,getCurrentRoute:ome}=useRoute(),lme=[nme||ime],sme=(yme=nme||ime)==null?void 0:yme.split("/"),cme=sme==null?void 0:sme.slice(0,sme.length-1),[dme,ume]=reactExports.useState(lme),[fme,pme]=reactExports.useState(cme),hme=eme.length>0?eme:rme,bme=reactExports.useMemo(()=>getFlattenRoutes(hme)||[],[hme]);function mme(){const _me=ome();if(!_me)return;const $me=_me.meta.parents.map(Sme=>Sme.path),Cme=Sme=>Sme.replace(/\/create$|\/:id\/edit$|\/:id$/g,"");ume([_me.path.split("?")[0],Cme(_me.path),...$me])}reactExports.useEffect(()=>mme(),[ame,hme,$P]);const vme=(_me=[])=>{var Cme;let $me=[];for(let Sme of _me)(Cme=Sme.meta)!=null&&Cme.hide||$me.push({key:Sme.path.split("?")[0],label:Sme.meta.title,icon:jsx(Icon,{icon:Sme.meta.icon}),children:Sme.children?vme(Sme.children):null});return $me};return jsx(Menu$2,{className:"!border-e-0 flex-1",mode:"horizontal",theme:x_,openKeys:fme,selectedKeys:dme,onOpenChange:_me=>pme(_me),onClick:_me=>{const $me=bme.find(Cme=>Cme.path.split("?")[0]===_me.key);if($me.is_link){window.open($me.path);return}$me.component.preload().then(()=>tme.push($me.path))},items:vme(hme)})},{Header:Header$2,Content:Content$4}=Layout$2,TopLayout=()=>{const{getSetting:x_}=useSetting(),eme=()=>x_("system_theme_setting.topTheme")=="dark"&&!x_("system_theme_setting.darkTheme"),$P=eme()?"":"border-b";return jsxs(Layout$2,{className:"h-screen overflow-hidden",children:[jsxs(Header$2,{className:"h-[65px] flex p-0 justify-between items-center leading-none "+$P,children:[jsxs("div",{className:"flex h-full flex-1",children:[jsx(LayoutLogo,{}),jsx("div",{className:"leading-[65px] h-full flex-1",children:jsx(LayoutTopMenu,{theme:eme()?"dark":"light"})})]}),jsx(LayoutTopBar,{})]}),jsx(Content$4,{className:"overflow-hidden",children:jsx(LayoutContent,{})})]})},{Header:Header$1,Sider:Sider$1,Content:Content$3}=Layout$2,TopMixLayout=()=>{const{getSetting:x_}=useSetting(),[eme,$P]=reactExports.useState(!1),tme=()=>x_("system_theme_setting.siderTheme")=="dark"&&!x_("system_theme_setting.darkTheme");return jsxs(Layout$2,{className:"h-screen overflow-hidden",children:[jsxs(Header$1,{className:"h-[65px] leading-none flex justify-between items-center p-0 "+(x_("system_theme_setting.topTheme")=="dark"&&!x_("system_theme_setting.darkTheme")?"":"border-b"),children:[jsxs("div",{className:"flex h-full items-center",children:[jsx(LayoutLogo,{}),jsx(CollapseTrigger,{collapsed:eme,toggle:$P}),jsx(LayoutBreadcrumb,{})]}),jsx(LayoutTopBar,{})]}),jsxs(Layout$2,{children:[jsx(Sider$1,{width:220,className:"border-r overflow-hidden",theme:tme()?"dark":"light",collapsed:eme,collapsible:!0,trigger:null,collapsedWidth:65,children:jsx(LayoutMenu,{theme:tme()?"dark":"light"})}),jsx(Content$3,{className:"overflow-hidden",children:jsx(LayoutContent,{})})]})]})},{Header,Sider,Content:Content$2}=Layout$2,DoubleLayout=()=>{const[x_,eme]=reactExports.useState(!1),{routes:$P,getCurrentRoute:tme}=useRoute(),ame=useHistory(),nme=ame.location.pathname,{getSetting:rme}=useSetting(),[ime,ome]=reactExports.useState([]),[lme,sme]=reactExports.useState();function cme(){const pme=tme();if(!pme)return;const hme=pme.meta.parents.map(bme=>bme.path);ome([pme.path,...hme])}const dme=pme=>{var mme;const hme=(mme=pme==null?void 0:pme.meta)==null?void 0:mme.parents;let bme=null;return $P.filter(vme=>!vme.meta.hide).forEach(vme=>{vme.path===hme[0].path&&(bme=vme)}),bme},ume=()=>{const pme=tme();pme!=null&&pme.meta.parents.length?sme(dme(pme).children):sme([])},fme=pme=>{var hme;if(pme.is_link){window.open(pme.path);return}ome([pme==null?void 0:pme.path]),(hme=pme==null?void 0:pme.children)!=null&&hme.length?sme(pme.children):(sme([]),pme.component.preload().then(()=>ame.push(pme.path)))};return reactExports.useEffect(()=>{ume(),cme()},[nme,$P]),jsxs(Layout$2,{className:"h-screen",hasSider:!0,children:[jsxs(Sider,{collapsedWidth:65,width:65,theme:rme("system_theme_setting.darkTheme")?"light":"dark",className:"border-r relative",collapsed:!0,children:[jsx("div",{className:"absolute flex items-center justify-center w-full h-[65px]",children:jsx(LayoutLogo,{onlyLogo:!0})}),jsx(lib$3.Scrollbars,{autoHide:!0,className:"custom-scrollbar",children:jsx("div",{className:"w-full h-full pt-[65px]",children:$P==null?void 0:$P.map(pme=>{var mme,vme,gme,yme,_me,$me;if((mme=pme==null?void 0:pme.meta)!=null&&mme.hide)return null;const hme="text-white flex flex-col items-center justify-center h-[65px] cursor-pointer",bme=ime.includes(pme.path)?" bg-[var(--colors-brand-5)] hover:bg-[var(--colors-brand-5)]":" hover:bg-gray-100/20";return jsxs("div",{className:hme+bme,onClick:()=>fme(pme),title:(vme=pme==null?void 0:pme.meta)==null?void 0:vme.title,children:[((gme=pme==null?void 0:pme.meta)==null?void 0:gme.icon)&&((yme=pme==null?void 0:pme.meta)==null?void 0:yme.icon)!="-"&&jsx("div",{className:"p-1",children:jsx(Icon,{icon:(_me=pme==null?void 0:pme.meta)==null?void 0:_me.icon,fontSize:18})}),jsx("div",{className:"text-[12px] whitespace-nowrap",children:($me=pme==null?void 0:pme.meta)==null?void 0:$me.title})]},pme.name)})})})]}),jsxs(Layout$2,{children:[jsxs(Sider,{hidden:!(lme!=null&&lme.length),width:220,collapsedWidth:65,className:"border-r relative",theme:"light",collapsed:x_,children:[!x_&&!!(lme!=null&&lme.length)&&jsx("div",{className:"w-full h-[65px] border-b flex justify-center items-center text-xl font-semibold truncate absolute",children:rme("app_name")}),jsx("div",{className:"w-full h-full pt-[65px]",children:jsx(LayoutMenu,{collapsed:x_,routeProps:lme})})]}),jsxs(Content$2,{className:"overflow-hidden relative",children:[jsxs(Header,{className:"h-[65px] w-full leading-none flex justify-between items-center border-b p-0 absolute",children:[jsxs("div",{className:"flex h-full items-center",children:[!!(lme!=null&&lme.length)&&jsx(CollapseTrigger,{collapsed:x_,toggle:eme}),jsx(LayoutBreadcrumb,{})]}),jsx(LayoutTopBar,{})]}),jsx("div",{className:"w-full h-full pt-[65px]",children:jsx(LayoutContent,{})})]})]})]})},Card=({children:x_,selected:eme,tips:$P,onClick:tme,tipsInBottom:ame=!1})=>jsx(Tooltip$2,{title:$P,arrow:!1,placement:ame?"bottom":"top",children:jsx("div",{onClick:tme,className:"relative w-[100px] h-[60px] p-[5px] rounded-[6px] cursor-pointer bg-[var(--owl-main-bg)] shadow-md border-[2px] hover:border-[var(--colors-brand-5)]"+(eme?" border-[var(--colors-brand-5)]":" border-transparent"),children:x_})}),SelectLayout=({current:x_,change:eme})=>{const{t:$P}=useLang();return jsxs("div",{children:[jsxs("div",{className:"flex justify-between",children:[jsx(Card,{selected:x_=="default",tips:$P("theme_setting.layout_mode_default"),onClick:()=>eme("default"),children:jsxs("div",{className:"flex h-full",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-60 w-[20px] h-full mr-[5px] rounded-[6px]"}),jsxs("div",{className:"flex-1 w-[60px] h-full flex flex-col",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-90 h-[10px] mb-[5px] rounded-[6px]"}),jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-10 flex-1 rounded-[6px]"})]})]})}),jsx(Card,{selected:x_=="top",tips:$P("theme_setting.layout_mode_top"),onClick:()=>eme("top"),children:jsxs("div",{className:"flex flex-col h-full",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-90 h-[10px] mb-[5px] rounded-[6px]"}),jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-10 flex-1 rounded-[6px]"})]})})]}),jsxs("div",{className:"flex justify-between mt-3",children:[jsx(Card,{selected:x_=="top-mix",tips:$P("theme_setting.layout_mode_top_mix"),tipsInBottom:!0,onClick:()=>eme("top-mix"),children:jsxs("div",{className:"flex flex-col h-full",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-90 h-[10px] rounded-[6px]"}),jsxs("div",{className:"w-full flex flex-1 mt-[5px]",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-60 w-[20px] mr-[5px] rounded-[6px]"}),jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-10 flex-1 rounded-[6px]"})]})]})}),jsx(Card,{selected:x_=="double",tips:$P("theme_setting.layout_mode_double"),tipsInBottom:!0,onClick:()=>eme("double"),children:jsxs("div",{className:"flex h-full",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-60 w-[6px] h-auto mr-[5px] rounded-[6px]"}),jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-60 w-[16px] h-auto mr-[5px] rounded-[6px]"}),jsxs("div",{className:"flex-1 w-[60px] h-full flex flex-col",children:[jsx("div",{className:"bg-[var(--colors-brand-5)] h-[10px] mb-[5px] rounded-[6px]"}),jsx("div",{className:"bg-[var(--colors-brand-5)] opacity-10 flex-1 rounded-[6px]"})]})]})})]})]})},SettingPanel=()=>{const x_=useHistory(),eme=x_.location.pathname,{state:$P,dispatch:tme}=useStore(),{setThemeColor:ame,setDarkTheme:nme}=useTheme(),{settings:rme}=useSetting(),{t:ime}=useLang(),[ome,lme]=reactExports.useState(localStorage.getItem(getCacheKey("settings"))),sme=()=>{tme({type:"update-open-setting",payload:{openSetting:!1}})},cme=(pme,hme)=>{pme==="themeColor"&&ame(hme),pme==="darkTheme"&&nme(hme);const bme=Object.assign({},rme.system_theme_setting,{[pme]:hme});tme({type:"update-settings",payload:{settings:{...rme,system_theme_setting:bme}}}),pme==="layoutMode"&&(window.$owl.appLoader(),x_.push("/"),setTimeout(()=>{x_.push(eme),setTimeout(()=>{appLoaded()},500)},200))},dme=useRequest(saveSettings,{manual:!0,onSuccess:()=>{staticMethods$1.success(ime("theme_setting.save_success")),localStorage.setItem(getCacheKey("settings"),JSON.stringify(rme)),lme(JSON.stringify(rme))}}),ume=()=>{dme.run({system_theme_setting:rme.system_theme_setting})},fme=pme=>["alpha","left","right","top","bottom","scale","scaleBig","scaleX","scaleY"].map(bme=>({label:ime(`theme_setting.animate_${pme}_${bme}`),value:bme}));return jsx(Drawer$2,{open:$P.openSetting,onClose:sme,closeIcon:!1,title:ime("theme_setting.title"),footer:jsx(Fragment,{children:jsxs(Space,{children:[jsx(Badge$1,{dot:!0,count:ome!=JSON.stringify($P.settings)?1:0,title:ime("theme_setting.need_save"),children:jsx(Button$3,{type:"primary",onClick:ume,disabled:dme.loading,children:ime("theme_setting.save_btn")})}),jsx(Button$3,{onClick:sme,disabled:dme.loading,children:ime("theme_setting.cancel_btn")})]})}),children:jsxs(Form$3,{labelAlign:"left",labelCol:{span:8},wrapperCol:{span:16},children:[jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.theme_color"),children:jsx(ColorPicker$1,{showText:!0,disabledAlpha:!0,disabledFormat:!0,onChange:(pme,hme)=>cme("themeColor",hme),value:rme.system_theme_setting.themeColor,presets:[{label:ime("theme_setting.preinstall"),colors:["#1677FF","#F5222D","#FA8C16","#52C41A","#13A8A8","#2F54EB","#722ED1","#EB2F96"]}]})}),!rme.system_theme_setting.followSystemTheme&&jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.dark_theme"),children:jsx(Switch$2,{checked:rme.system_theme_setting.darkTheme,onChange:pme=>cme("darkTheme",pme)})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.layout_mode"),children:jsx(SelectLayout,{current:rme.system_theme_setting.layoutMode,change:pme=>cme("layoutMode",pme)})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.login_template"),children:jsx(Radio.Group,{onChange:pme=>cme("loginTemplate",pme.target.value),value:rme.system_theme_setting.loginTemplate,optionType:"button",options:[{label:ime("theme_setting.default"),value:"default"},{label:"amis",value:"amis"}]})}),rme.system_theme_setting.layoutMode!="double"&&jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.top_theme"),children:jsx(Radio.Group,{onChange:pme=>cme("topTheme",pme.target.value),value:rme.system_theme_setting.topTheme,optionType:"button",options:[{label:ime("theme_setting.light"),value:"light"},{label:ime("theme_setting.dark"),value:"dark"}]})}),rme.system_theme_setting.layoutMode!="double"&&rme.system_theme_setting.layoutMode!="top"&&jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.sider_theme"),children:jsx(Radio.Group,{onChange:pme=>cme("siderTheme",pme.target.value),value:rme.system_theme_setting.siderTheme,optionType:"button",options:[{label:ime("theme_setting.light"),value:"light"},{label:ime("theme_setting.dark"),value:"dark"}]})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.page_content"),children:jsxs(Space,{direction:"vertical",children:[jsx(Checkbox$2,{onChange:pme=>cme("footer",pme.target.checked),checked:rme.system_theme_setting.footer,children:ime("theme_setting.footer")}),jsx(Checkbox$2,{onChange:pme=>cme("breadcrumb",pme.target.checked),checked:rme.system_theme_setting.breadcrumb,children:ime("theme_setting.breadcrumb")}),jsx(Checkbox$2,{onChange:pme=>cme("enableTab",pme.target.checked),checked:rme.system_theme_setting.enableTab,children:ime("theme_setting.tab")}),jsx(Checkbox$2,{onChange:pme=>cme("tabIcon",pme.target.checked),checked:rme.system_theme_setting.tabIcon,children:ime("theme_setting.tab_icon")})]})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.animate_in"),children:jsx(TypedInputNumber,{addonAfter:"ms",onChange:pme=>cme("animateInDuration",pme),value:rme.system_theme_setting.animateInDuration,addonBefore:jsx(Select$1,{options:fme("in"),dropdownStyle:{width:100},onChange:pme=>cme("animateInType",pme),value:rme.system_theme_setting.animateInType})})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.animate_out"),children:jsx(TypedInputNumber,{addonAfter:"ms",onChange:pme=>cme("animateOutDuration",pme),value:rme.system_theme_setting.animateOutDuration,addonBefore:jsx(Select$1,{options:fme("out"),dropdownStyle:{width:100},onChange:pme=>cme("animateOutType",pme),value:rme.system_theme_setting.animateOutType})})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.keep_alive"),children:jsx(Space,{size:"large",children:jsx(Switch$2,{checked:rme.system_theme_setting.keepAlive,onChange:pme=>cme("keepAlive",pme)})})}),jsx(Form$3.Item,{colon:!1,label:ime("theme_setting.accordion_menu"),children:jsx(Space,{size:"large",children:jsx(Switch$2,{checked:rme.system_theme_setting.accordionMenu,onChange:pme=>cme("accordionMenu",pme)})})})]})})},Layout=()=>{const{getCurrentRoute:x_}=useRoute(),eme=useHistory(),$P=eme.location.pathname,tme=useSmallScreen(),[ame,nme]=reactExports.useState(tme),{getSetting:rme}=useSetting(),ime=x_(),ome=lme=>{switch(lme){case"default":return jsx(DefaultLayout$1,{});case"top":return jsx(TopLayout,{});case"top-mix":return jsx(TopMixLayout,{});case"double":return jsx(DoubleLayout,{});default:return jsx(Fragment,{})}};return reactExports.useEffect(()=>{ame!==tme&&(window.$owl.appLoader(),nme(tme),eme.push("/"),setTimeout(()=>{eme.push($P),setTimeout(()=>{appLoaded()},600)},300))},[tme]),Token().value||goToLoginPage(),(ime==null?void 0:ime.is_full)==1?jsx("div",{className:"h-screen",children:jsx(LayoutContent,{})}):jsxs(Fragment,{children:[tme?jsx(SmLayout,{}):ome(rme("system_theme_setting.layoutMode","default")),jsx(SettingPanel,{})]})};var zh_CN$6={},zh_CN$5={};Object.defineProperty(zh_CN$5,"__esModule",{value:!0});zh_CN$5.default=void 0;var locale$7={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:"页码"};zh_CN$5.default=locale$7;var zh_CN$4={},zh_CN$3={},zh_CN$2={},objectSpread2={exports:{}};(function(x_){var eme=requireDefineProperty();function $P(ame,nme){var rme=Object.keys(ame);if(Object.getOwnPropertySymbols){var ime=Object.getOwnPropertySymbols(ame);nme&&(ime=ime.filter(function(ome){return Object.getOwnPropertyDescriptor(ame,ome).enumerable})),rme.push.apply(rme,ime)}return rme}function tme(ame){for(var nme=1;nme<arguments.length;nme++){var rme=arguments[nme]!=null?arguments[nme]:{};nme%2?$P(Object(rme),!0).forEach(function(ime){eme(ame,ime,rme[ime])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ame,Object.getOwnPropertyDescriptors(rme)):$P(Object(rme)).forEach(function(ime){Object.defineProperty(ame,ime,Object.getOwnPropertyDescriptor(rme,ime))})}return ame}x_.exports=tme,x_.exports.__esModule=!0,x_.exports.default=x_.exports})(objectSpread2);var objectSpread2Exports=objectSpread2.exports,common={};Object.defineProperty(common,"__esModule",{value:!0});common.commonLocale=void 0;common.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var _interopRequireDefault$i=interopRequireDefaultExports.default;Object.defineProperty(zh_CN$2,"__esModule",{value:!0});zh_CN$2.default=void 0;var _objectSpread2$2=_interopRequireDefault$i(objectSpread2Exports),_common$1=common,locale$6=(0,_objectSpread2$2.default)((0,_objectSpread2$2.default)({},_common$1.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});zh_CN$2.default=locale$6;var zh_CN$1={};Object.defineProperty(zh_CN$1,"__esModule",{value:!0});zh_CN$1.default=void 0;const locale$5={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};zh_CN$1.default=locale$5;var _interopRequireDefault$h=interopRequireDefaultExports.default;Object.defineProperty(zh_CN$3,"__esModule",{value:!0});zh_CN$3.default=void 0;var _zh_CN$2=_interopRequireDefault$h(zh_CN$2),_zh_CN2$1=_interopRequireDefault$h(zh_CN$1);const locale$4={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},_zh_CN$2.default),timePickerLocale:Object.assign({},_zh_CN2$1.default)};locale$4.lang.ok="确定";zh_CN$3.default=locale$4;var _interopRequireDefault$g=interopRequireDefaultExports.default;Object.defineProperty(zh_CN$4,"__esModule",{value:!0});zh_CN$4.default=void 0;var _zh_CN$1=_interopRequireDefault$g(zh_CN$3);zh_CN$4.default=_zh_CN$1.default;var _interopRequireDefault$f=interopRequireDefaultExports.default;Object.defineProperty(zh_CN$6,"__esModule",{value:!0});zh_CN$6.default=void 0;var _zh_CN=_interopRequireDefault$f(zh_CN$5),_zh_CN2=_interopRequireDefault$f(zh_CN$4),_zh_CN3=_interopRequireDefault$f(zh_CN$3),_zh_CN4=_interopRequireDefault$f(zh_CN$1);const typeTemplate$1="${label}不是一个有效的${type}",localeValues$1={locale:"zh-cn",Pagination:_zh_CN.default,DatePicker:_zh_CN3.default,TimePicker:_zh_CN4.default,Calendar:_zh_CN2.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"（可选）",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:typeTemplate$1,method:typeTemplate$1,array:typeTemplate$1,object:typeTemplate$1,number:typeTemplate$1,date:typeTemplate$1,boolean:typeTemplate$1,integer:typeTemplate$1,float:typeTemplate$1,regexp:typeTemplate$1,email:typeTemplate$1,url:typeTemplate$1,hex:typeTemplate$1},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:"渐变色"}};zh_CN$6.default=localeValues$1;var zh_CN=zh_CN$6;const zhCN=getDefaultExportFromCjs(zh_CN);var en_US$6={},en_US$5={};Object.defineProperty(en_US$5,"__esModule",{value:!0});en_US$5.default=void 0;var locale$3={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"};en_US$5.default=locale$3;var en_US$4={},en_US$3={},en_US$2={},_interopRequireDefault$e=interopRequireDefaultExports.default;Object.defineProperty(en_US$2,"__esModule",{value:!0});en_US$2.default=void 0;var _objectSpread2$1=_interopRequireDefault$e(objectSpread2Exports),_common=common,locale$2=(0,_objectSpread2$1.default)((0,_objectSpread2$1.default)({},_common.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});en_US$2.default=locale$2;var en_US$1={};Object.defineProperty(en_US$1,"__esModule",{value:!0});en_US$1.default=void 0;const locale$1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};en_US$1.default=locale$1;var _interopRequireDefault$d=interopRequireDefaultExports.default;Object.defineProperty(en_US$3,"__esModule",{value:!0});en_US$3.default=void 0;var _en_US$2=_interopRequireDefault$d(en_US$2),_en_US2$1=_interopRequireDefault$d(en_US$1);const locale={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"]},_en_US$2.default),timePickerLocale:Object.assign({},_en_US2$1.default)};en_US$3.default=locale;var _interopRequireDefault$c=interopRequireDefaultExports.default;Object.defineProperty(en_US$4,"__esModule",{value:!0});en_US$4.default=void 0;var _en_US$1=_interopRequireDefault$c(en_US$3);en_US$4.default=_en_US$1.default;var _interopRequireDefault$b=interopRequireDefaultExports.default;Object.defineProperty(en_US$6,"__esModule",{value:!0});en_US$6.default=void 0;var _en_US=_interopRequireDefault$b(en_US$5),_en_US2=_interopRequireDefault$b(en_US$4),_en_US3=_interopRequireDefault$b(en_US$3),_en_US4=_interopRequireDefault$b(en_US$1);const typeTemplate="${label} is not a valid ${type}",localeValues={locale:"en",Pagination:_en_US.default,DatePicker:_en_US3.default,TimePicker:_en_US4.default,Calendar:_en_US2.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:typeTemplate,method:typeTemplate,array:typeTemplate,object:typeTemplate,number:typeTemplate,date:typeTemplate,boolean:typeTemplate,integer:typeTemplate,float:typeTemplate,regexp:typeTemplate,email:typeTemplate,url:typeTemplate,hex:typeTemplate},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"}};en_US$6.default=localeValues;var en_US=en_US$6;const enUS=getDefaultExportFromCjs(en_US);function dynamicAssetsHandler({js:x_=[],css:eme=[],styles:$P=[],scripts:tme=[]}){const ame=lme=>document.getElementsByTagName("head")[0].appendChild(lme),nme=lme=>{const sme=document.createElement("script");sme.src=lme,sme.type="text/javascript",ame(sme)},rme=lme=>{const sme=document.createElement("link");sme.href=lme,sme.rel="stylesheet",ame(sme)},ime=lme=>{const sme=document.createElement("script");sme.innerHTML=lme,sme.type="text/javascript",ame(sme)},ome=lme=>{const sme=document.createElement("style");sme.innerHTML=lme,ame(sme)};x_==null||x_.forEach(lme=>nme(lme)),eme==null||eme.forEach(lme=>rme(lme)),tme==null||tme.forEach(lme=>ime(lme)),$P==null||$P.forEach(lme=>ome(lme))}const SvgIcon=reactExports.forwardRef((x_,eme)=>jsx(Icon,{icon:x_.icon,className:x_.className}));var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t(x_){return x_&&x_.__esModule&&Object.prototype.hasOwnProperty.call(x_,"default")?x_.default:x_}function n(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var r,o,i$1=function(x_){return x_&&x_.Math==Math&&x_},a$1=i$1(typeof globalThis=="object"&&globalThis)||i$1(typeof window=="object"&&window)||i$1(typeof self=="object"&&self)||i$1(typeof e=="object"&&e)||function(){return this}()||Function("return this")(),u$1=Function.prototype,s=u$1.apply,l=u$1.bind,c$1=u$1.call,f=typeof Reflect=="object"&&Reflect.apply||(l?c$1.bind(s):function(){return c$1.apply(s,arguments)}),d=Function.prototype,p=d.bind,h=d.call,g=p&&p.bind(h),v=p?function(x_){return x_&&g(h,x_)}:function(x_){return x_&&function(){return h.apply(x_,arguments)}},y=function(x_){return typeof x_=="function"},m=function(x_){try{return!!x_()}catch{return!0}},b=!m(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),w=Function.prototype.call,E=w.bind?w.bind(w):function(){return w.apply(w,arguments)},D={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,x=S&&!D.call({1:2},1)?function(x_){var eme=S(this,x_);return!!eme&&eme.enumerable}:D,C={f:x},A=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},O=v({}.toString),k=v("".slice),B=function(x_){return k(O(x_),8,-1)},F=a$1.Object,T=v("".split),_=m(function(){return!F("z").propertyIsEnumerable(0)})?function(x_){return B(x_)=="String"?T(x_,""):F(x_)}:F,P=a$1.TypeError,j=function(x_){if(x_==null)throw P("Can't call method on "+x_);return x_},N=function(x_){return _(j(x_))},I=function(x_){return typeof x_=="object"?x_!==null:y(x_)},L={},R=function(x_){return y(x_)?x_:void 0},M=function(x_,eme){return arguments.length<2?R(L[x_])||R(a$1[x_]):L[x_]&&L[x_][eme]||a$1[x_]&&a$1[x_][eme]},z=v({}.isPrototypeOf),$=M("navigator","userAgent")||"",H=a$1.process,V=a$1.Deno,U=H&&H.versions||V&&V.version,W=U&&U.v8;W&&(o=(r=W.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&$&&(!(r=$.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=$.match(/Chrome\/(\d+)/))&&(o=+r[1]);var G,q=o,K=!!Object.getOwnPropertySymbols&&!m(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&q&&q<41}),Y=K&&!Symbol.sham&&typeof Symbol.iterator=="symbol",X=a$1.Object,Z=Y?function(x_){return typeof x_=="symbol"}:function(x_){var eme=M("Symbol");return y(eme)&&z(eme.prototype,X(x_))},J=a$1.String,Q=function(x_){try{return J(x_)}catch{return"Object"}},ee=a$1.TypeError,te=function(x_){if(y(x_))return x_;throw ee(Q(x_)+" is not a function")},ne=function(x_,eme){var $P=x_[eme];return $P==null?void 0:te($P)},re=a$1.TypeError,oe=Object.defineProperty,ie=a$1["__core-js_shared__"]||function(x_,eme){try{oe(a$1,x_,{value:eme,configurable:!0,writable:!0})}catch{a$1[x_]=eme}return eme}("__core-js_shared__",{}),ae=n(function(x_){(x_.exports=function(eme,$P){return ie[eme]||(ie[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ue=a$1.Object,se=function(x_){return ue(j(x_))},le=v({}.hasOwnProperty),ce=Object.hasOwn||function(x_,eme){return le(se(x_),eme)},fe=0,de=Math.random(),pe=v(1 .toString),he=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+pe(++fe+de,36)},ge=ae("wks"),ve=a$1.Symbol,ye=ve&&ve.for,me=Y?ve:ve&&ve.withoutSetter||he,be=function(x_){if(!ce(ge,x_)||!K&&typeof ge[x_]!="string"){var eme="Symbol."+x_;K&&ce(ve,x_)?ge[x_]=ve[x_]:ge[x_]=Y&&ye?ye(eme):me(eme)}return ge[x_]},we=a$1.TypeError,Ee=be("toPrimitive"),De=function(x_,eme){if(!I(x_)||Z(x_))return x_;var $P,tme=ne(x_,Ee);if(tme){if($P=E(tme,x_,eme),!I($P)||Z($P))return $P;throw we("Can't convert object to primitive value")}return function(ame,nme){var rme,ime;if(y(rme=ame.toString)&&!I(ime=E(rme,ame))||y(rme=ame.valueOf)&&!I(ime=E(rme,ame)))return ime;throw re("Can't convert object to primitive value")}(x_)},Se=function(x_){var eme=De(x_,"string");return Z(eme)?eme:eme+""},xe=a$1.document,Ce=I(xe)&&I(xe.createElement),Ae=function(x_){return Ce?xe.createElement(x_):{}},Oe=!b&&!m(function(){return Object.defineProperty(Ae("div"),"a",{get:function(){return 7}}).a!=7}),ke=Object.getOwnPropertyDescriptor,Be=b?ke:function(x_,eme){if(x_=N(x_),eme=Se(eme),Oe)try{return ke(x_,eme)}catch{}if(ce(x_,eme))return A(!E(C.f,x_,eme),x_[eme])},Fe={f:Be},Te=/#|\.prototype\./,_e$1=function(x_,eme){var $P=je[Pe(x_)];return $P==Ie||$P!=Ne&&(y(eme)?m(eme):!!eme)},Pe=_e$1.normalize=function(x_){return String(x_).replace(Te,".").toLowerCase()},je=_e$1.data={},Ne=_e$1.NATIVE="N",Ie=_e$1.POLYFILL="P",Le=_e$1,Re=v(v.bind),Me=function(x_,eme){return te(x_),eme===void 0?x_:Re?Re(x_,eme):function(){return x_.apply(eme,arguments)}},ze=a$1.String,$e=a$1.TypeError,He=function(x_){if(I(x_))return x_;throw $e(ze(x_)+" is not an object")},Ve=a$1.TypeError,Ue=Object.defineProperty,We=b?Ue:function(x_,eme,$P){if(He(x_),eme=Se(eme),He($P),Oe)try{return Ue(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw Ve("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_},Ge={f:We},qe=b?function(x_,eme,$P){return Ge.f(x_,eme,A(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},Ke=Fe.f,Ye=function(x_){var eme=function($P,tme,ame){if(this instanceof eme){switch(arguments.length){case 0:return new x_;case 1:return new x_($P);case 2:return new x_($P,tme)}return new x_($P,tme,ame)}return f(x_,this,arguments)};return eme.prototype=x_.prototype,eme},Xe=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme,sme=x_.target,cme=x_.global,dme=x_.stat,ume=x_.proto,fme=cme?a$1:dme?a$1[sme]:(a$1[sme]||{}).prototype,pme=cme?L:L[sme]||qe(L,sme,{})[sme],hme=pme.prototype;for(ame in eme)$P=!Le(cme?ame:sme+(dme?".":"#")+ame,x_.forced)&&fme&&ce(fme,ame),rme=pme[ame],$P&&(ime=x_.noTargetGet?(lme=Ke(fme,ame))&&lme.value:fme[ame]),nme=$P&&ime?ime:eme[ame],$P&&typeof rme==typeof nme||(ome=x_.bind&&$P?Me(nme,a$1):x_.wrap&&$P?Ye(nme):ume&&y(nme)?v(nme):nme,(x_.sham||nme&&nme.sham||rme&&rme.sham)&&qe(ome,"sham",!0),qe(pme,ame,ome),ume&&(ce(L,tme=sme+"Prototype")||qe(L,tme,{}),qe(L[tme],ame,nme),x_.real&&hme&&!hme[ame]&&qe(hme,ame,nme)))},Ze=ae("keys"),Je=function(x_){return Ze[x_]||(Ze[x_]=he(x_))},Qe=!m(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),et=Je("IE_PROTO"),tt=a$1.Object,nt=tt.prototype,rt=Qe?tt.getPrototypeOf:function(x_){var eme=se(x_);if(ce(eme,et))return eme[et];var $P=eme.constructor;return y($P)&&eme instanceof $P?$P.prototype:eme instanceof tt?nt:null},ot=a$1.String,it=a$1.TypeError,at=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=v(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return He(tme),function(nme){if(typeof nme=="object"||y(nme))return nme;throw it("Can't set "+ot(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),ut=Math.ceil,st=Math.floor,lt=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?st:ut)(eme)},ct=Math.max,ft=Math.min,dt=function(x_,eme){var $P=lt(x_);return $P<0?ct($P+eme,0):ft($P,eme)},pt=Math.min,ht=function(x_){return(eme=x_.length)>0?pt(lt(eme),9007199254740991):0;var eme},gt=function(x_){return function(eme,$P,tme){var ame,nme=N(eme),rme=ht(nme),ime=dt(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},vt={includes:gt(!0),indexOf:gt(!1)},yt={},mt=vt.indexOf,bt=v([].push),wt=function(x_,eme){var $P,tme=N(x_),ame=0,nme=[];for($P in tme)!ce(yt,$P)&&ce(tme,$P)&&bt(nme,$P);for(;eme.length>ame;)ce(tme,$P=eme[ame++])&&(~mt(nme,$P)||bt(nme,$P));return nme},Et=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=Et.concat("length","prototype"),St=Object.getOwnPropertyNames||function(x_){return wt(x_,Dt)},xt={f:St},Ct={f:Object.getOwnPropertySymbols},At=v([].concat),Ot=M("Reflect","ownKeys")||function(x_){var eme=xt.f(He(x_)),$P=Ct.f;return $P?At(eme,$P(x_)):eme},kt=Object.keys||function(x_){return wt(x_,Et)},Bt=b?Object.defineProperties:function(x_,eme){He(x_);for(var $P,tme=N(eme),ame=kt(eme),nme=ame.length,rme=0;nme>rme;)Ge.f(x_,$P=ame[rme++],tme[$P]);return x_},Ft=M("document","documentElement"),Tt=Je("IE_PROTO"),_t$1=function(){},Pt=function(x_){return"<script>"+x_+"<\/script>"},jt=function(x_){x_.write(Pt("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},Nt=function(){try{G=new ActiveXObject("htmlfile")}catch{}var x_,eme;Nt=typeof document<"u"?document.domain&&G?jt(G):((eme=Ae("iframe")).style.display="none",Ft.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(Pt("document.F=Object")),x_.close(),x_.F):jt(G);for(var $P=Et.length;$P--;)delete Nt.prototype[Et[$P]];return Nt()};yt[Tt]=!0;var It=Object.create||function(x_,eme){var $P;return x_!==null?(_t$1.prototype=He(x_),$P=new _t$1,_t$1.prototype=null,$P[Tt]=x_):$P=Nt(),eme===void 0?$P:Bt($P,eme)},Lt=function(x_,eme,$P){var tme=Se(eme);tme in x_?Ge.f(x_,tme,A(0,$P)):x_[tme]=$P},Rt=a$1.Array,Mt=Math.max,zt=function(x_,eme,$P){for(var tme=ht(x_),ame=dt(eme,tme),nme=dt(tme,tme),rme=Rt(Mt(nme-ame,0)),ime=0;ame<nme;ame++,ime++)Lt(rme,ime,x_[ame]);return rme.length=ime,rme},$t=v("".replace),Ht=v("".split),Vt=v([].join),Ut=String(Error("zxcasd").stack),Wt=/\n\s*at [^:]*:[^\n]*/,Gt=Wt.test(Ut),qt=/@[^\n]*\n/.test(Ut)&&!/zxcasd/.test(Ut),Kt=function(x_,eme){if(typeof x_!="string")return x_;if(Gt)for(;eme--;)x_=$t(x_,Wt,"");else if(qt)return Vt(zt(Ht(x_,`
`),eme),`
`);return x_},Yt=function(x_,eme){I(eme)&&"cause"in eme&&qe(x_,"cause",eme.cause)},Xt={},Zt=be("iterator"),Jt=Array.prototype,Qt={};Qt[be("toStringTag")]="z";var en=String(Qt)==="[object z]",tn=be("toStringTag"),nn=a$1.Object,rn=B(function(){return arguments}())=="Arguments",on$1=en?B:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=nn(x_),tn))=="string"?$P:rn?B(eme):(tme=B(eme))=="Object"&&y(eme.callee)?"Arguments":tme},an=be("iterator"),un=function(x_){if(x_!=null)return ne(x_,an)||ne(x_,"@@iterator")||Xt[on$1(x_)]},sn=a$1.TypeError,ln=function(x_,eme,$P){var tme,ame;He(x_);try{if(!(tme=ne(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=E(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return He(tme),$P},cn=a$1.TypeError,fn=function(x_,eme){this.stopped=x_,this.result=eme},dn=fn.prototype,pn=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme=$P&&$P.that,cme=!(!$P||!$P.AS_ENTRIES),dme=!(!$P||!$P.IS_ITERATOR),ume=!(!$P||!$P.INTERRUPTED),fme=Me(eme,sme),pme=function(bme){return tme&&ln(tme,"normal",bme),new fn(!0,bme)},hme=function(bme){return cme?(He(bme),ume?fme(bme[0],bme[1],pme):fme(bme[0],bme[1])):ume?fme(bme,pme):fme(bme)};if(dme)tme=x_;else{if(!(ame=un(x_)))throw cn(Q(x_)+" is not iterable");if(function(bme){return bme!==void 0&&(Xt.Array===bme||Jt[Zt]===bme)}(ame)){for(nme=0,rme=ht(x_);rme>nme;nme++)if((ime=hme(x_[nme]))&&z(dn,ime))return ime;return new fn(!1)}tme=function(bme,mme){var vme=arguments.length<2?un(bme):mme;if(te(vme))return He(E(vme,bme));throw sn(Q(bme)+" is not iterable")}(x_,ame)}for(ome=tme.next;!(lme=E(ome,tme)).done;){try{ime=hme(lme.value)}catch(bme){ln(tme,"throw",bme)}if(typeof ime=="object"&&ime&&z(dn,ime))return ime}return new fn(!1)},hn=a$1.String,gn=function(x_){if(on$1(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return hn(x_)},vn=function(x_,eme){return x_===void 0?arguments.length<2?"":eme:gn(x_)},yn=!m(function(){var x_=Error("a");return!("stack"in x_)||(Object.defineProperty(x_,"stack",A(1,7)),x_.stack!==7)}),mn=be("toStringTag"),bn=a$1.Error,wn=[].push,En=function(x_,eme){var $P,tme=arguments.length>2?arguments[2]:void 0,ame=z(Dn,this);at?$P=at(new bn(void 0),ame?rt(this):Dn):($P=ame?this:It(Dn),qe($P,mn,"Error")),qe($P,"message",vn(eme,"")),yn&&qe($P,"stack",Kt($P.stack,1)),Yt($P,tme);var nme=[];return pn(x_,wn,{that:nme}),qe($P,"errors",nme),$P};at?at(En,bn):function(x_,eme){for(var $P=Ot(eme),tme=Ge.f,ame=Fe.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];ce(x_,rme)||tme(x_,rme,ame(eme,rme))}}(En,bn);var Dn=En.prototype=It(bn.prototype,{constructor:A(1,En),message:A(1,""),name:A(1,"AggregateError")});Xe({global:!0},{AggregateError:En});var Sn=v(Function.toString);y(ie.inspectSource)||(ie.inspectSource=function(x_){return Sn(x_)});var xn,Cn,An,On=ie.inspectSource,kn=a$1.WeakMap,Bn=y(kn)&&/native code/.test(On(kn)),Fn=a$1.TypeError,Tn=a$1.WeakMap;if(Bn||ie.state){var _n=ie.state||(ie.state=new Tn),Pn=v(_n.get),jn=v(_n.has),Nn=v(_n.set);xn=function(x_,eme){if(jn(_n,x_))throw new Fn("Object already initialized");return eme.facade=x_,Nn(_n,x_,eme),eme},Cn=function(x_){return Pn(_n,x_)||{}},An=function(x_){return jn(_n,x_)}}else{var In=Je("state");yt[In]=!0,xn=function(x_,eme){if(ce(x_,In))throw new Fn("Object already initialized");return eme.facade=x_,qe(x_,In,eme),eme},Cn=function(x_){return ce(x_,In)?x_[In]:{}},An=function(x_){return ce(x_,In)}}var Ln,Rn,Mn,zn={set:xn,get:Cn,has:An,enforce:function(x_){return An(x_)?Cn(x_):xn(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!I(eme)||($P=Cn(eme)).type!==x_)throw Fn("Incompatible receiver, "+x_+" required");return $P}}},$n=Function.prototype,Hn=b&&Object.getOwnPropertyDescriptor,Vn=ce($n,"name"),Un={EXISTS:Vn,PROPER:Vn&&(function(){}).name==="something",CONFIGURABLE:Vn&&(!b||b&&Hn($n,"name").configurable)},Wn=function(x_,eme,$P,tme){qe(x_,eme,$P)},Gn=be("iterator"),qn=!1;[].keys&&("next"in(Mn=[].keys())?(Rn=rt(rt(Mn)))!==Object.prototype&&(Ln=Rn):qn=!0);var Kn=Ln==null||m(function(){var x_={};return Ln[Gn].call(x_)!==x_});Ln=Kn?{}:It(Ln),y(Ln[Gn])||Wn(Ln,Gn,function(){return this});var Yn={IteratorPrototype:Ln,BUGGY_SAFARI_ITERATORS:qn},Xn=en?{}.toString:function(){return"[object "+on$1(this)+"]"},Zn=Ge.f,Jn=be("toStringTag"),Qn=function(x_,eme,$P,tme){if(x_){var ame=$P?x_:x_.prototype;ce(ame,Jn)||Zn(ame,Jn,{configurable:!0,value:eme}),tme&&!en&&qe(ame,"toString",Xn)}},er=Yn.IteratorPrototype,tr=function(){return this},nr=Un.PROPER,rr=Yn.BUGGY_SAFARI_ITERATORS,or=be("iterator"),ir=function(){return this},ar=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=It(er,{next:A(+!vme,mme)}),Qn(hme,gme,!1,!0),Xt[gme]=tr})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!rr&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[or]||dme["@@iterator"]||ame&&dme[ame],fme=!rr&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=rt(pme.call(new x_)))!==Object.prototype&&ime.next&&(Qn(ime,sme,!0,!0),Xt[sme]=ir),nr&&ame=="values"&&ume&&ume.name!=="values"&&(cme=!0,fme=function(){return E(ume,this)}),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||Xe({target:eme,proto:!0,forced:rr||cme},ome)),Xt[eme]=fme,ome},ur=zn.set,sr=zn.getterFor("Array Iterator");ar(Array,"Array",function(x_,eme){ur(this,{type:"Array Iterator",target:N(x_),index:0,kind:eme})},function(){var x_=sr(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values"),Xt.Arguments=Xt.Array;var lr=v("".charAt),cr=v("".charCodeAt),fr=v("".slice),dr=function(x_){return function(eme,$P){var tme,ame,nme=gn(j(eme)),rme=lt($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=cr(nme,rme))<55296||tme>56319||rme+1===ime||(ame=cr(nme,rme+1))<56320||ame>57343?x_?lr(nme,rme):tme:x_?fr(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},pr={codeAt:dr(!1),charAt:dr(!0)}.charAt,hr=zn.set,gr=zn.getterFor("String Iterator");ar(String,"String",function(x_){hr(this,{type:"String Iterator",string:gn(x_),index:0})},function(){var x_,eme=gr(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=pr($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var vr=L.AggregateError,yr=be("toStringTag");for(var mr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var br=a$1[mr],wr=br&&br.prototype;wr&&on$1(wr)!==yr&&qe(wr,yr,mr),Xt[mr]=Xt.Array}var Er,Dr,Sr=vr,xr=function(x_){return x_&&x_.Math==Math&&x_},Cr=xr(typeof globalThis=="object"&&globalThis)||xr(typeof window=="object"&&window)||xr(typeof self=="object"&&self)||xr(typeof e=="object"&&e)||function(){return this}()||Function("return this")(),Ar=function(x_){try{return!!x_()}catch{return!0}},Or=!Ar(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kr=Function.prototype.call,Br=kr.bind?kr.bind(kr):function(){return kr.apply(kr,arguments)},Fr={}.propertyIsEnumerable,Tr=Object.getOwnPropertyDescriptor,_r$1=Tr&&!Fr.call({1:2},1)?function(x_){var eme=Tr(this,x_);return!!eme&&eme.enumerable}:Fr,Pr={f:_r$1},jr=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},Nr=Function.prototype,Ir=Nr.bind,Lr=Nr.call,Rr=Ir&&Ir.bind(Lr),Mr=Ir?function(x_){return x_&&Rr(Lr,x_)}:function(x_){return x_&&function(){return Lr.apply(x_,arguments)}},zr=Mr({}.toString),$r=Mr("".slice),Hr=function(x_){return $r(zr(x_),8,-1)},Vr=Cr.Object,Ur=Mr("".split),Wr=Ar(function(){return!Vr("z").propertyIsEnumerable(0)})?function(x_){return Hr(x_)=="String"?Ur(x_,""):Vr(x_)}:Vr,Gr=Cr.TypeError,qr=function(x_){if(x_==null)throw Gr("Can't call method on "+x_);return x_},Kr=function(x_){return Wr(qr(x_))},Yr=function(x_){return typeof x_=="function"},Xr=function(x_){return typeof x_=="object"?x_!==null:Yr(x_)},Zr=function(x_){return Yr(x_)?x_:void 0},Jr=function(x_,eme){return arguments.length<2?Zr(Cr[x_]):Cr[x_]&&Cr[x_][eme]},Qr=Mr({}.isPrototypeOf),eo=Jr("navigator","userAgent")||"",to=Cr.process,no=Cr.Deno,ro=to&&to.versions||no&&no.version,oo=ro&&ro.v8;oo&&(Dr=(Er=oo.split("."))[0]>0&&Er[0]<4?1:+(Er[0]+Er[1])),!Dr&&eo&&(!(Er=eo.match(/Edge\/(\d+)/))||Er[1]>=74)&&(Er=eo.match(/Chrome\/(\d+)/))&&(Dr=+Er[1]);var io=Dr,ao=!!Object.getOwnPropertySymbols&&!Ar(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&io&&io<41}),uo=ao&&!Symbol.sham&&typeof Symbol.iterator=="symbol",so=Cr.Object,lo=uo?function(x_){return typeof x_=="symbol"}:function(x_){var eme=Jr("Symbol");return Yr(eme)&&Qr(eme.prototype,so(x_))},co=Cr.String,fo=function(x_){try{return co(x_)}catch{return"Object"}},po=Cr.TypeError,ho=function(x_){if(Yr(x_))return x_;throw po(fo(x_)+" is not a function")},go=function(x_,eme){var $P=x_[eme];return $P==null?void 0:ho($P)},vo=Cr.TypeError,yo=Object.defineProperty,mo=function(x_,eme){try{yo(Cr,x_,{value:eme,configurable:!0,writable:!0})}catch{Cr[x_]=eme}return eme},bo=Cr["__core-js_shared__"]||mo("__core-js_shared__",{}),wo=n(function(x_){(x_.exports=function(eme,$P){return bo[eme]||(bo[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Eo=Cr.Object,Do=function(x_){return Eo(qr(x_))},So=Mr({}.hasOwnProperty),xo=Object.hasOwn||function(x_,eme){return So(Do(x_),eme)},Co=0,Ao=Math.random(),Oo=Mr(1 .toString),ko=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+Oo(++Co+Ao,36)},Bo=wo("wks"),Fo=Cr.Symbol,To=Fo&&Fo.for,_o$1=uo?Fo:Fo&&Fo.withoutSetter||ko,Po=function(x_){if(!xo(Bo,x_)||!ao&&typeof Bo[x_]!="string"){var eme="Symbol."+x_;ao&&xo(Fo,x_)?Bo[x_]=Fo[x_]:Bo[x_]=uo&&To?To(eme):_o$1(eme)}return Bo[x_]},jo=Cr.TypeError,No=Po("toPrimitive"),Io=function(x_,eme){if(!Xr(x_)||lo(x_))return x_;var $P,tme=go(x_,No);if(tme){if($P=Br(tme,x_,eme),!Xr($P)||lo($P))return $P;throw jo("Can't convert object to primitive value")}return function(ame,nme){var rme,ime;if(Yr(rme=ame.toString)&&!Xr(ime=Br(rme,ame))||Yr(rme=ame.valueOf)&&!Xr(ime=Br(rme,ame)))return ime;throw vo("Can't convert object to primitive value")}(x_)},Lo=function(x_){var eme=Io(x_,"string");return lo(eme)?eme:eme+""},Ro=Cr.document,Mo=Xr(Ro)&&Xr(Ro.createElement),zo=function(x_){return Mo?Ro.createElement(x_):{}},$o=!Or&&!Ar(function(){return Object.defineProperty(zo("div"),"a",{get:function(){return 7}}).a!=7}),Ho=Object.getOwnPropertyDescriptor,Vo=Or?Ho:function(x_,eme){if(x_=Kr(x_),eme=Lo(eme),$o)try{return Ho(x_,eme)}catch{}if(xo(x_,eme))return jr(!Br(Pr.f,x_,eme),x_[eme])},Uo={f:Vo},Wo=Cr.String,Go=Cr.TypeError,qo=function(x_){if(Xr(x_))return x_;throw Go(Wo(x_)+" is not an object")},Ko=Cr.TypeError,Yo=Object.defineProperty,Xo=Or?Yo:function(x_,eme,$P){if(qo(x_),eme=Lo(eme),qo($P),$o)try{return Yo(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw Ko("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_},Zo={f:Xo},Jo=Or?function(x_,eme,$P){return Zo.f(x_,eme,jr(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},Qo=Mr(Function.toString);Yr(bo.inspectSource)||(bo.inspectSource=function(x_){return Qo(x_)});var ei,ti,ni,ri=bo.inspectSource,oi=Cr.WeakMap,ii=Yr(oi)&&/native code/.test(ri(oi)),ai=wo("keys"),ui=function(x_){return ai[x_]||(ai[x_]=ko(x_))},si={},li=Cr.TypeError,ci=Cr.WeakMap;if(ii||bo.state){var fi=bo.state||(bo.state=new ci),di=Mr(fi.get),pi=Mr(fi.has),hi=Mr(fi.set);ei=function(x_,eme){if(pi(fi,x_))throw new li("Object already initialized");return eme.facade=x_,hi(fi,x_,eme),eme},ti=function(x_){return di(fi,x_)||{}},ni=function(x_){return pi(fi,x_)}}else{var gi=ui("state");si[gi]=!0,ei=function(x_,eme){if(xo(x_,gi))throw new li("Object already initialized");return eme.facade=x_,Jo(x_,gi,eme),eme},ti=function(x_){return xo(x_,gi)?x_[gi]:{}},ni=function(x_){return xo(x_,gi)}}var vi={set:ei,get:ti,has:ni,enforce:function(x_){return ni(x_)?ti(x_):ei(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!Xr(eme)||($P=ti(eme)).type!==x_)throw li("Incompatible receiver, "+x_+" required");return $P}}},yi=Function.prototype,mi=Or&&Object.getOwnPropertyDescriptor,bi=xo(yi,"name"),wi={EXISTS:bi,PROPER:bi&&(function(){}).name==="something",CONFIGURABLE:bi&&(!Or||Or&&mi(yi,"name").configurable)},Ei=n(function(x_){var eme=wi.CONFIGURABLE,$P=vi.get,tme=vi.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;Yr(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xo(ime,"name")||eme&&ime.name!==ume)&&Jo(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==Cr?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:Jo(nme,rme,ime)):cme?nme[rme]=ime:mo(rme,ime)})(Function.prototype,"toString",function(){return Yr(this)&&$P(this).source||ri(this)})}),Di=Math.ceil,Si=Math.floor,xi=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?Si:Di)(eme)},Ci=Math.max,Ai=Math.min,Oi=function(x_,eme){var $P=xi(x_);return $P<0?Ci($P+eme,0):Ai($P,eme)},ki=Math.min,Bi=function(x_){return x_>0?ki(xi(x_),9007199254740991):0},Fi=function(x_){return Bi(x_.length)},Ti=function(x_){return function(eme,$P,tme){var ame,nme=Kr(eme),rme=Fi(nme),ime=Oi(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},_i={includes:Ti(!0),indexOf:Ti(!1)}.indexOf,Pi=Mr([].push),ji=function(x_,eme){var $P,tme=Kr(x_),ame=0,nme=[];for($P in tme)!xo(si,$P)&&xo(tme,$P)&&Pi(nme,$P);for(;eme.length>ame;)xo(tme,$P=eme[ame++])&&(~_i(nme,$P)||Pi(nme,$P));return nme},Ni=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ii=Ni.concat("length","prototype"),Li=Object.getOwnPropertyNames||function(x_){return ji(x_,Ii)},Ri={f:Li},Mi={f:Object.getOwnPropertySymbols},zi=Mr([].concat),$i=Jr("Reflect","ownKeys")||function(x_){var eme=Ri.f(qo(x_)),$P=Mi.f;return $P?zi(eme,$P(x_)):eme},Hi=function(x_,eme){for(var $P=$i(eme),tme=Zo.f,ame=Uo.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];xo(x_,rme)||tme(x_,rme,ame(eme,rme))}},Vi=/#|\.prototype\./,Ui=function(x_,eme){var $P=Gi[Wi(x_)];return $P==Ki||$P!=qi&&(Yr(eme)?Ar(eme):!!eme)},Wi=Ui.normalize=function(x_){return String(x_).replace(Vi,".").toLowerCase()},Gi=Ui.data={},qi=Ui.NATIVE="N",Ki=Ui.POLYFILL="P",Yi=Ui,Xi=Uo.f,Zi=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?Cr:lme?Cr[ime]||mo(ime,{}):(Cr[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=Xi($P,tme))&&rme.value:$P[tme],!Yi(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;Hi(nme,ame)}(x_.sham||ame&&ame.sham)&&Jo(nme,"sham",!0),Ei($P,tme,nme,x_)}},Ji={};Ji[Po("toStringTag")]="z";var Qi,ea=String(Ji)==="[object z]",ta=Po("toStringTag"),na=Cr.Object,ra=Hr(function(){return arguments}())=="Arguments",oa=ea?Hr:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=na(x_),ta))=="string"?$P:ra?Hr(eme):(tme=Hr(eme))=="Object"&&Yr(eme.callee)?"Arguments":tme},ia=Cr.String,aa=function(x_){if(oa(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ia(x_)},ua=function(){var x_=qo(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},sa=Cr.RegExp,la=Ar(function(){var x_=sa("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),ca=la||Ar(function(){return!sa("a","y").sticky}),fa=la||Ar(function(){var x_=sa("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),da={BROKEN_CARET:fa,MISSED_STICKY:ca,UNSUPPORTED_Y:la},pa=Object.keys||function(x_){return ji(x_,Ni)},ha=Or?Object.defineProperties:function(x_,eme){qo(x_);for(var $P,tme=Kr(eme),ame=pa(eme),nme=ame.length,rme=0;nme>rme;)Zo.f(x_,$P=ame[rme++],tme[$P]);return x_},ga=Jr("document","documentElement"),va=ui("IE_PROTO"),ya=function(){},ma=function(x_){return"<script>"+x_+"<\/script>"},ba=function(x_){x_.write(ma("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},wa=function(){try{Qi=new ActiveXObject("htmlfile")}catch{}var x_,eme;wa=typeof document<"u"?document.domain&&Qi?ba(Qi):((eme=zo("iframe")).style.display="none",ga.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(ma("document.F=Object")),x_.close(),x_.F):ba(Qi);for(var $P=Ni.length;$P--;)delete wa.prototype[Ni[$P]];return wa()};si[va]=!0;var Ea,Da,Sa=Object.create||function(x_,eme){var $P;return x_!==null?(ya.prototype=qo(x_),$P=new ya,ya.prototype=null,$P[va]=x_):$P=wa(),eme===void 0?$P:ha($P,eme)},xa=Cr.RegExp,Ca=Ar(function(){var x_=xa(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),Aa=Cr.RegExp,Oa=Ar(function(){var x_=Aa("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),ka=vi.get,Ba=wo("native-string-replace",String.prototype.replace),Fa=RegExp.prototype.exec,Ta=Fa,_a$1=Mr("".charAt),Pa=Mr("".indexOf),ja=Mr("".replace),Na=Mr("".slice),Ia=(Da=/b*/g,Br(Fa,Ea=/a/,"a"),Br(Fa,Da,"a"),Ea.lastIndex!==0||Da.lastIndex!==0),La=da.BROKEN_CARET,Ra=/()??/.exec("")[1]!==void 0;(Ia||Ra||La||Ca||Oa)&&(Ta=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=ka(ome),sme=aa(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=Br(Ta,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=La&&ome.sticky,fme=Br(ua,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=ja(fme,"y",""),Pa(fme,"g")===-1&&(fme+="g"),bme=Na(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&_a$1(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),Ra&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),Ia&&(tme=ome.lastIndex),ame=Br(Fa,ume?$P:ome,bme),ume?ame?(ame.input=Na(ame.input,hme),ame[0]=Na(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:Ia&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),Ra&&ame&&ame.length>1&&Br(Ba,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=Sa(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var Ma=Ta;Zi({target:"RegExp",proto:!0,forced:/./.exec!==Ma},{exec:Ma});var za=Po("species"),$a=RegExp.prototype,Ha=Mr("".charAt),Va=Mr("".charCodeAt),Ua=Mr("".slice),Wa=function(x_){return function(eme,$P){var tme,ame,nme=aa(qr(eme)),rme=xi($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=Va(nme,rme))<55296||tme>56319||rme+1===ime||(ame=Va(nme,rme+1))<56320||ame>57343?x_?Ha(nme,rme):tme:x_?Ua(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(x_,eme,$P){return eme+($P?qa(x_,eme).length:1)},Ya=Cr.TypeError,Xa=function(x_,eme){var $P=x_.exec;if(Yr($P)){var tme=Br($P,x_,eme);return tme!==null&&qo(tme),tme}if(Hr(x_)==="RegExp")return Br(Ma,x_,eme);throw Ya("RegExp#exec called on incompatible receiver")};(function(x_,eme,$P,tme){var ame=Po(x_),nme=!Ar(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!Ar(function(){var lme=!1,sme=/a/;return x_==="split"&&((sme={}).constructor={},sme.constructor[za]=function(){return sme},sme.flags="",sme[ame]=/./[ame]),sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=Mr(/./[ame]),ome=eme(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=Mr(lme),pme=sme.exec;return pme===Ma||pme===$a.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});Ei(String.prototype,x_,ome[0]),Ei($a,ame,ome[1])}})("match",function(x_,eme,$P){return[function(tme){var ame=qr(this),nme=tme==null?void 0:go(tme,x_);return nme?Br(nme,tme,ame):new RegExp(tme)[x_](aa(ame))},function(tme){var ame=qo(this),nme=aa(tme),rme=$P(eme,ame,nme);if(rme.done)return rme.value;if(!ame.global)return Xa(ame,nme);var ime=ame.unicode;ame.lastIndex=0;for(var ome,lme=[],sme=0;(ome=Xa(ame,nme))!==null;){var cme=aa(ome[0]);lme[sme]=cme,cme===""&&(ame.lastIndex=Ka(nme,Bi(ame.lastIndex),ime)),sme++}return sme===0?null:lme}]}),Zi({global:!0},{globalThis:Cr});var Za=!Ar(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),Ja=ui("IE_PROTO"),Qa=Cr.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(x_){var eme=Do(x_);if(xo(eme,Ja))return eme[Ja];var $P=eme.constructor;return Yr($P)&&eme instanceof $P?$P.prototype:eme instanceof Qa?eu:null},nu=Cr.String,ru=Cr.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=Mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return qo(tme),function(nme){if(typeof nme=="object"||Yr(nme))return nme;throw ru("Can't set "+nu(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),iu=Cr.Array,au=Math.max,uu=Mr("".replace),su=Mr("".split),lu=Mr([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=function(x_,eme){if(typeof x_!="string")return x_;if(du)for(;eme--;)x_=uu(x_,fu,"");else if(pu)return lu(function($P,tme,ame){for(var nme,rme,ime,ome,lme=Fi($P),sme=Oi(tme,lme),cme=Oi(lme,lme),dme=iu(au(cme-sme,0)),ume=0;sme<cme;sme++,ume++)nme=dme,rme=ume,ime=$P[sme],ome=void 0,(ome=Lo(rme))in nme?Zo.f(nme,ome,jr(0,ime)):nme[ome]=ime;return dme.length=ume,dme}(su(x_,`
`),eme),`
`);return x_},gu=function(x_,eme){Xr(eme)&&"cause"in eme&&Jo(x_,"cause",eme.cause)},vu=Mr(Mr.bind),yu=function(x_,eme){return ho(x_),eme===void 0?x_:vu?vu(x_,eme):function(){return x_.apply(eme,arguments)}},mu={},bu=Po("iterator"),wu=Array.prototype,Eu=Po("iterator"),Du=function(x_){if(x_!=null)return go(x_,Eu)||go(x_,"@@iterator")||mu[oa(x_)]},Su=Cr.TypeError,xu=function(x_,eme,$P){var tme,ame;qo(x_);try{if(!(tme=go(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=Br(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return qo(tme),$P},Cu=Cr.TypeError,Au=function(x_,eme){this.stopped=x_,this.result=eme},Ou=Au.prototype,ku=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme=$P&&$P.that,cme=!(!$P||!$P.AS_ENTRIES),dme=!(!$P||!$P.IS_ITERATOR),ume=!(!$P||!$P.INTERRUPTED),fme=yu(eme,sme),pme=function(bme){return tme&&xu(tme,"normal",bme),new Au(!0,bme)},hme=function(bme){return cme?(qo(bme),ume?fme(bme[0],bme[1],pme):fme(bme[0],bme[1])):ume?fme(bme,pme):fme(bme)};if(dme)tme=x_;else{if(!(ame=Du(x_)))throw Cu(fo(x_)+" is not iterable");if(function(bme){return bme!==void 0&&(mu.Array===bme||wu[bu]===bme)}(ame)){for(nme=0,rme=Fi(x_);rme>nme;nme++)if((ime=hme(x_[nme]))&&Qr(Ou,ime))return ime;return new Au(!1)}tme=function(bme,mme){var vme=arguments.length<2?Du(bme):mme;if(ho(vme))return qo(Br(vme,bme));throw Su(fo(bme)+" is not iterable")}(x_,ame)}for(ome=tme.next;!(lme=Br(ome,tme)).done;){try{ime=hme(lme.value)}catch(bme){xu(tme,"throw",bme)}if(typeof ime=="object"&&ime&&Qr(Ou,ime))return ime}return new Au(!1)},Bu=function(x_,eme){return x_===void 0?arguments.length<2?"":eme:aa(x_)},Fu=!Ar(function(){var x_=Error("a");return!("stack"in x_)||(Object.defineProperty(x_,"stack",jr(1,7)),x_.stack!==7)}),Tu=Po("toStringTag"),_u$1=Cr.Error,Pu=[].push,ju=function(x_,eme){var $P,tme=arguments.length>2?arguments[2]:void 0,ame=Qr(Nu,this);ou?$P=ou(new _u$1(void 0),ame?tu(this):Nu):($P=ame?this:Sa(Nu),Jo($P,Tu,"Error")),Jo($P,"message",Bu(eme,"")),Fu&&Jo($P,"stack",hu($P.stack,1)),gu($P,tme);var nme=[];return ku(x_,Pu,{that:nme}),Jo($P,"errors",nme),$P};ou?ou(ju,_u$1):Hi(ju,_u$1);var Nu=ju.prototype=Sa(_u$1.prototype,{constructor:jr(1,ju),message:jr(1,""),name:jr(1,"AggregateError")});Zi({global:!0},{AggregateError:ju});var Iu=Po("unscopables"),Lu=Array.prototype;Lu[Iu]==null&&Zo.f(Lu,Iu,{configurable:!0,value:Sa(null)});var Ru,Mu,zu,$u=function(x_){Lu[Iu][x_]=!0},Hu=Po("iterator"),Vu=!1;[].keys&&("next"in(zu=[].keys())?(Mu=tu(tu(zu)))!==Object.prototype&&(Ru=Mu):Vu=!0);var Uu=Ru==null||Ar(function(){var x_={};return Ru[Hu].call(x_)!==x_});Uu&&(Ru={}),Yr(Ru[Hu])||Ei(Ru,Hu,function(){return this});var Wu={IteratorPrototype:Ru,BUGGY_SAFARI_ITERATORS:Vu},Gu=Zo.f,qu=Po("toStringTag"),Ku=function(x_,eme,$P){x_&&!xo(x_=$P?x_:x_.prototype,qu)&&Gu(x_,qu,{configurable:!0,value:eme})},Yu=Wu.IteratorPrototype,Xu=function(){return this},Zu=wi.PROPER,Ju=wi.CONFIGURABLE,Qu=Wu.IteratorPrototype,es=Wu.BUGGY_SAFARI_ITERATORS,ts=Po("iterator"),ns=function(){return this},rs=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=Sa(Yu,{next:jr(+!vme,mme)}),Ku(hme,gme,!1),mu[gme]=Xu})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!es&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[ts]||dme["@@iterator"]||ame&&dme[ame],fme=!es&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=tu(pme.call(new x_)))!==Object.prototype&&ime.next&&(tu(ime)!==Qu&&(ou?ou(ime,Qu):Yr(ime[ts])||Ei(ime,ts,ns)),Ku(ime,sme,!0)),Zu&&ame=="values"&&ume&&ume.name!=="values"&&(Ju?Jo(dme,"name","values"):(cme=!0,fme=function(){return Br(ume,this)})),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||Zi({target:eme,proto:!0,forced:es||cme},ome)),dme[ts]!==fme&&Ei(dme,ts,fme,{name:ame}),mu[eme]=fme,ome},os=vi.set,is=vi.getterFor("Array Iterator"),as=rs(Array,"Array",function(x_,eme){os(this,{type:"Array Iterator",target:Kr(x_),index:0,kind:eme})},function(){var x_=is(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values");mu.Arguments=mu.Array,$u("keys"),$u("values"),$u("entries");var us=Ga.charAt,ss=vi.set,ls=vi.getterFor("String Iterator");rs(String,"String",function(x_){ss(this,{type:"String Iterator",string:aa(x_),index:0})},function(){var x_,eme=ls(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=us($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var cs,fs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=zo("span").classList,ps=ds&&ds.constructor&&ds.constructor.prototype,hs=ps===Object.prototype?void 0:ps,gs=Po("iterator"),vs=Po("toStringTag"),ys=as.values,ms=function(x_,eme){if(x_){if(x_[gs]!==ys)try{Jo(x_,gs,ys)}catch{x_[gs]=ys}if(x_[vs]||Jo(x_,vs,eme),fs[eme]){for(var $P in as)if(x_[$P]!==as[$P])try{Jo(x_,$P,as[$P])}catch{x_[$P]=as[$P]}}}};for(var bs in fs)ms(Cr[bs]&&Cr[bs].prototype,bs);ms(hs,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉，wangEditor V5+ 版本开始，不在支持 IE 浏览器
 Sorry, wangEditor V5+ versions do not support IE browser.`),ws(),Es()):global&&(!((cs=global.navigator)===null||cs===void 0)&&cs.userAgent.match("QQBrowser"))&&(ws(),Es());function ws(){typeof globalThis>"u"&&(window.globalThis=window)}function Es(){Sr===void 0&&(window.AggregateError=function(x_,eme){var $P=new Error(eme);return $P.errors=x_,$P})}var Ds,Ss=Array.isArray||function(x_){return B(x_)=="Array"},xs=function(){},Cs=[],As=M("Reflect","construct"),Os=/^\s*(?:class|function)\b/,ks=v(Os.exec),Bs=!Os.exec(xs),Fs=function(x_){if(!y(x_))return!1;try{return As(xs,Cs,x_),!0}catch{return!1}},Ts=!As||m(function(){var x_;return Fs(Fs.call)||!Fs(Object)||!Fs(function(){x_=!0})||x_})?function(x_){if(!y(x_))return!1;switch(on$1(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bs||!!ks(Os,On(x_))}:Fs,_s$1=be("species"),Ps=a$1.Array,js=function(x_,eme){return new(function($P){var tme;return Ss($P)&&(tme=$P.constructor,(Ts(tme)&&(tme===Ps||Ss(tme.prototype))||I(tme)&&(tme=tme[_s$1])===null)&&(tme=void 0)),tme===void 0?Ps:tme}(x_))(eme===0?0:eme)},Ns=be("species"),Is=be("isConcatSpreadable"),Ls=a$1.TypeError,Rs=q>=51||!m(function(){var x_=[];return x_[Is]=!1,x_.concat()[0]!==x_}),Ms=(Ds="concat",q>=51||!m(function(){var x_=[];return(x_.constructor={})[Ns]=function(){return{foo:1}},x_[Ds](Boolean).foo!==1})),zs=function(x_){if(!I(x_))return!1;var eme=x_[Is];return eme!==void 0?!!eme:Ss(x_)};Xe({target:"Array",proto:!0,forced:!Rs||!Ms},{concat:function(x_){var eme,$P,tme,ame,nme,rme=se(this),ime=js(rme,0),ome=0;for(eme=-1,tme=arguments.length;eme<tme;eme++)if(zs(nme=eme===-1?rme:arguments[eme])){if(ome+(ame=ht(nme))>9007199254740991)throw Ls("Maximum allowed index exceeded");for($P=0;$P<ame;$P++,ome++)$P in nme&&Lt(ime,ome,nme[$P])}else{if(ome>=9007199254740991)throw Ls("Maximum allowed index exceeded");Lt(ime,ome++,nme)}return ime.length=ome,ime}});var $s=xt.f,Hs=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vs={f:function(x_){return Hs&&B(x_)=="Window"?function(eme){try{return $s(eme)}catch{return zt(Hs)}}(x_):$s(N(x_))}},Us=v([].slice),Ws={f:be},Gs=Ge.f,qs=function(x_){var eme=L.Symbol||(L.Symbol={});ce(eme,x_)||Gs(eme,x_,{value:Ws.f(x_)})},Ks=v([].push),Ys=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=se(ome),pme=_(fme),hme=Me(lme,sme),bme=ht(pme),mme=0,vme=cme||js,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:Ks(gme,dme)}else switch(x_){case 4:return!1;case 7:Ks(gme,dme)}return nme?-1:tme||ame?ame:gme}},Xs={forEach:Ys(0),map:Ys(1),filter:Ys(2),some:Ys(3),every:Ys(4),find:Ys(5),findIndex:Ys(6),filterReject:Ys(7)}.forEach,Zs=Je("hidden"),Js=be("toPrimitive"),Qs=zn.set,el=zn.getterFor("Symbol"),tl=Object.prototype,nl=a$1.Symbol,rl=nl&&nl.prototype,ol=a$1.TypeError,il=a$1.QObject,al=M("JSON","stringify"),ul=Fe.f,sl=Ge.f,ll=Vs.f,cl=C.f,fl=v([].push),dl=ae("symbols"),pl=ae("op-symbols"),hl=ae("string-to-symbol-registry"),gl=ae("symbol-to-string-registry"),vl=ae("wks"),yl=!il||!il.prototype||!il.prototype.findChild,ml=b&&m(function(){return It(sl({},"a",{get:function(){return sl(this,"a",{value:7}).a}})).a!=7})?function(x_,eme,$P){var tme=ul(tl,eme);tme&&delete tl[eme],sl(x_,eme,$P),tme&&x_!==tl&&sl(tl,eme,tme)}:sl,bl=function(x_,eme){var $P=dl[x_]=It(rl);return Qs($P,{type:"Symbol",tag:x_,description:eme}),b||($P.description=eme),$P},wl=function(x_,eme,$P){x_===tl&&wl(pl,eme,$P),He(x_);var tme=Se(eme);return He($P),ce(dl,tme)?($P.enumerable?(ce(x_,Zs)&&x_[Zs][tme]&&(x_[Zs][tme]=!1),$P=It($P,{enumerable:A(0,!1)})):(ce(x_,Zs)||sl(x_,Zs,A(1,{})),x_[Zs][tme]=!0),ml(x_,tme,$P)):sl(x_,tme,$P)},El=function(x_,eme){He(x_);var $P=N(eme),tme=kt($P).concat(Cl($P));return Xs(tme,function(ame){b&&!E(Dl,$P,ame)||wl(x_,ame,$P[ame])}),x_},Dl=function(x_){var eme=Se(x_),$P=E(cl,this,eme);return!(this===tl&&ce(dl,eme)&&!ce(pl,eme))&&(!($P||!ce(this,eme)||!ce(dl,eme)||ce(this,Zs)&&this[Zs][eme])||$P)},Sl=function(x_,eme){var $P=N(x_),tme=Se(eme);if($P!==tl||!ce(dl,tme)||ce(pl,tme)){var ame=ul($P,tme);return!ame||!ce(dl,tme)||ce($P,Zs)&&$P[Zs][tme]||(ame.enumerable=!0),ame}},xl=function(x_){var eme=ll(N(x_)),$P=[];return Xs(eme,function(tme){ce(dl,tme)||ce(yt,tme)||fl($P,tme)}),$P},Cl=function(x_){var eme=x_===tl,$P=ll(eme?pl:N(x_)),tme=[];return Xs($P,function(ame){!ce(dl,ame)||eme&&!ce(tl,ame)||fl(tme,dl[ame])}),tme};if(K||(rl=(nl=function(){if(z(rl,this))throw ol("Symbol is not a constructor");var x_=arguments.length&&arguments[0]!==void 0?gn(arguments[0]):void 0,eme=he(x_),$P=function(tme){this===tl&&E($P,pl,tme),ce(this,Zs)&&ce(this[Zs],eme)&&(this[Zs][eme]=!1),ml(this,eme,A(1,tme))};return b&&yl&&ml(tl,eme,{configurable:!0,set:$P}),bl(eme,x_)}).prototype,Wn(rl,"toString",function(){return el(this).tag}),Wn(nl,"withoutSetter",function(x_){return bl(he(x_),x_)}),C.f=Dl,Ge.f=wl,Fe.f=Sl,xt.f=Vs.f=xl,Ct.f=Cl,Ws.f=function(x_){return bl(be(x_),x_)},b&&sl(rl,"description",{configurable:!0,get:function(){return el(this).description}})),Xe({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:nl}),Xs(kt(vl),function(x_){qs(x_)}),Xe({target:"Symbol",stat:!0,forced:!K},{for:function(x_){var eme=gn(x_);if(ce(hl,eme))return hl[eme];var $P=nl(eme);return hl[eme]=$P,gl[$P]=eme,$P},keyFor:function(x_){if(!Z(x_))throw ol(x_+" is not a symbol");if(ce(gl,x_))return gl[x_]},useSetter:function(){yl=!0},useSimple:function(){yl=!1}}),Xe({target:"Object",stat:!0,forced:!K,sham:!b},{create:function(x_,eme){return eme===void 0?It(x_):El(It(x_),eme)},defineProperty:wl,defineProperties:El,getOwnPropertyDescriptor:Sl}),Xe({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:xl,getOwnPropertySymbols:Cl}),Xe({target:"Object",stat:!0,forced:m(function(){Ct.f(1)})},{getOwnPropertySymbols:function(x_){return Ct.f(se(x_))}}),al){var Al=!K||m(function(){var x_=nl();return al([x_])!="[null]"||al({a:x_})!="{}"||al(Object(x_))!="{}"});Xe({target:"JSON",stat:!0,forced:Al},{stringify:function(x_,eme,$P){var tme=Us(arguments),ame=eme;if((I(eme)||x_!==void 0)&&!Z(x_))return Ss(eme)||(eme=function(nme,rme){if(y(ame)&&(rme=E(ame,this,nme,rme)),!Z(rme))return rme}),tme[1]=eme,f(al,null,tme)}})}if(!rl[Js]){var Ol=rl.valueOf;Wn(rl,Js,function(x_){return E(Ol,this)})}Qn(nl,"Symbol"),yt[Zs]=!0,qs("asyncIterator"),qs("hasInstance"),qs("isConcatSpreadable"),qs("iterator"),qs("match"),qs("matchAll"),qs("replace"),qs("search"),qs("species"),qs("split"),qs("toPrimitive"),qs("toStringTag"),qs("unscopables"),Qn(a$1.JSON,"JSON",!0);var kl=L.Symbol;qs("asyncDispose"),qs("dispose"),qs("matcher"),qs("metadata"),qs("observable"),qs("patternMatch"),qs("replaceAll");var Bl=kl,Fl=Ws.f("iterator"),Tl=n(function(x_){function eme($P){return typeof Bl=="function"&&typeof Fl=="symbol"?(x_.exports=eme=function(tme){return typeof tme},x_.exports.default=x_.exports,x_.exports.__esModule=!0):(x_.exports=eme=function(tme){return tme&&typeof Bl=="function"&&tme.constructor===Bl&&tme!==Bl.prototype?"symbol":typeof tme},x_.exports.default=x_.exports,x_.exports.__esModule=!0),eme($P)}x_.exports=eme,x_.exports.default=x_.exports,x_.exports.__esModule=!0}),_l$1=t(Tl),Pl=Uo.f,jl=Ar(function(){Pl(1)});if(Zi({target:"Object",stat:!0,forced:!Or||jl,sham:!Or},{getOwnPropertyDescriptor:function(x_,eme){return Pl(Kr(x_),eme)}}),(typeof global>"u"?"undefined":_l$1(global))==="object"){var Nl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Nl.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(x_){return nodeCrypto.randomFillSync(x_)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function Il(x_){return Object.prototype.toString.call(x_)==="[object Object]"}function Ll(x_){var eme,$P;return Il(x_)!==!1&&((eme=x_.constructor)===void 0||Il($P=eme.prototype)!==!1&&$P.hasOwnProperty("isPrototypeOf")!==!1)}function Rl(x_){for(var eme=arguments.length,$P=Array(eme>1?eme-1:0),tme=1;tme<eme;tme++)$P[tme-1]=arguments[tme];throw Error("[Immer] minified error nr: "+x_+($P.length?" "+$P.map(function(ame){return"'"+ame+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ml(x_){return!!x_&&!!x_[xc]}function zl(x_){return!!x_&&(function(eme){if(!eme||typeof eme!="object")return!1;var $P=Object.getPrototypeOf(eme);if($P===null)return!0;var tme=Object.hasOwnProperty.call($P,"constructor")&&$P.constructor;return tme===Object||typeof tme=="function"&&Function.toString.call(tme)===Cc}(x_)||Array.isArray(x_)||!!x_[Sc]||!!x_.constructor[Sc]||Wl(x_)||Gl(x_))}function $l(x_,eme,$P){$P===void 0&&($P=!1),Hl(x_)===0?($P?Object.keys:Ac)(x_).forEach(function(tme){$P&&typeof tme=="symbol"||eme(tme,x_[tme],x_)}):x_.forEach(function(tme,ame){return eme(ame,tme,x_)})}function Hl(x_){var eme=x_[xc];return eme?eme.i>3?eme.i-4:eme.i:Array.isArray(x_)?1:Wl(x_)?2:Gl(x_)?3:0}function Vl(x_,eme){return Hl(x_)===2?x_.has(eme):Object.prototype.hasOwnProperty.call(x_,eme)}function Ul(x_,eme,$P){var tme=Hl(x_);tme===2?x_.set(eme,$P):tme===3?(x_.delete(eme),x_.add($P)):x_[eme]=$P}function Wl(x_){return bc&&x_ instanceof Map}function Gl(x_){return wc&&x_ instanceof Set}function ql(x_){return x_.o||x_.t}function Kl(x_){if(Array.isArray(x_))return Array.prototype.slice.call(x_);var eme=Oc(x_);delete eme[xc];for(var $P=Ac(eme),tme=0;tme<$P.length;tme++){var ame=$P[tme],nme=eme[ame];nme.writable===!1&&(nme.writable=!0,nme.configurable=!0),(nme.get||nme.set)&&(eme[ame]={configurable:!0,writable:!0,enumerable:nme.enumerable,value:x_[ame]})}return Object.create(Object.getPrototypeOf(x_),eme)}function Yl(x_,eme){return eme===void 0&&(eme=!1),Zl(x_)||Ml(x_)||!zl(x_)||(Hl(x_)>1&&(x_.set=x_.add=x_.clear=x_.delete=Xl),Object.freeze(x_),eme&&$l(x_,function($P,tme){return Yl(tme,!0)},!0)),x_}function Xl(){Rl(2)}function Zl(x_){return x_==null||typeof x_!="object"||Object.isFrozen(x_)}function Jl(x_){var eme=kc[x_];return eme||Rl(18,x_),eme}function Ql(){return yc}function ec(x_,eme){eme&&(Jl("Patches"),x_.u=[],x_.s=[],x_.v=eme)}function tc(x_){nc(x_),x_.p.forEach(oc),x_.p=null}function nc(x_){x_===yc&&(yc=x_.l)}function rc(x_){return yc={p:[],l:yc,h:x_,m:!0,_:0}}function oc(x_){var eme=x_[xc];eme.i===0||eme.i===1?eme.j():eme.O=!0}function ic(x_,eme){eme._=eme.p.length;var $P=eme.p[0],tme=x_!==void 0&&x_!==$P;return eme.h.g||Jl("ES5").S(eme,x_,tme),tme?($P[xc].P&&(tc(eme),Rl(4)),zl(x_)&&(x_=ac(eme,x_),eme.l||sc(eme,x_)),eme.u&&Jl("Patches").M($P[xc],x_,eme.u,eme.s)):x_=ac(eme,$P,[]),tc(eme),eme.u&&eme.v(eme.u,eme.s),x_!==Dc?x_:void 0}function ac(x_,eme,$P){if(Zl(eme))return eme;var tme=eme[xc];if(!tme)return $l(eme,function(nme,rme){return uc(x_,tme,eme,nme,rme,$P)},!0),eme;if(tme.A!==x_)return eme;if(!tme.P)return sc(x_,tme.t,!0),tme.t;if(!tme.I){tme.I=!0,tme.A._--;var ame=tme.i===4||tme.i===5?tme.o=Kl(tme.k):tme.o;$l(tme.i===3?new Set(ame):ame,function(nme,rme){return uc(x_,tme,ame,nme,rme,$P)}),sc(x_,ame,!1),$P&&x_.u&&Jl("Patches").R(tme,$P,x_.u,x_.s)}return tme.o}function uc(x_,eme,$P,tme,ame,nme){if(Ml(ame)){var rme=ac(x_,ame,nme&&eme&&eme.i!==3&&!Vl(eme.D,tme)?nme.concat(tme):void 0);if(Ul($P,tme,rme),!Ml(rme))return;x_.m=!1}if(zl(ame)&&!Zl(ame)){if(!x_.h.F&&x_._<1)return;ac(x_,ame),eme&&eme.A.l||sc(x_,ame)}}function sc(x_,eme,$P){$P===void 0&&($P=!1),x_.h.F&&x_.m&&Yl(eme,$P)}function lc(x_,eme){var $P=x_[xc];return($P?ql($P):x_)[eme]}function cc(x_,eme){if(eme in x_)for(var $P=Object.getPrototypeOf(x_);$P;){var tme=Object.getOwnPropertyDescriptor($P,eme);if(tme)return tme;$P=Object.getPrototypeOf($P)}}function fc(x_){x_.P||(x_.P=!0,x_.l&&fc(x_.l))}function dc(x_){x_.o||(x_.o=Kl(x_.t))}function pc(x_,eme,$P){var tme=Wl(eme)?Jl("MapSet").N(eme,$P):Gl(eme)?Jl("MapSet").T(eme,$P):x_.g?function(ame,nme){var rme=Array.isArray(ame),ime={i:rme?1:0,A:nme?nme.A:Ql(),P:!1,I:!1,D:{},l:nme,t:ame,k:null,o:null,j:null,C:!1},ome=ime,lme=Bc;rme&&(ome=[ime],lme=Fc);var sme=Proxy.revocable(ome,lme),cme=sme.revoke,dme=sme.proxy;return ime.k=dme,ime.j=cme,dme}(eme,$P):Jl("ES5").J(eme,$P);return($P?$P.A:Ql()).p.push(tme),tme}function hc(x_){return Ml(x_)||Rl(22,x_),function eme($P){if(!zl($P))return $P;var tme,ame=$P[xc],nme=Hl($P);if(ame){if(!ame.P&&(ame.i<4||!Jl("ES5").K(ame)))return ame.t;ame.I=!0,tme=gc($P,nme),ame.I=!1}else tme=gc($P,nme);return $l(tme,function(rme,ime){ame&&function(ome,lme){return Hl(ome)===2?ome.get(lme):ome[lme]}(ame.t,rme)===ime||Ul(tme,rme,eme(ime))}),nme===3?new Set(tme):tme}(x_)}function gc(x_,eme){switch(eme){case 2:return new Map(x_);case 3:return Array.from(x_)}return Kl(x_)}var vc,yc,mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bc=typeof Map<"u",wc=typeof Set<"u",Ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dc=mc?Symbol.for("immer-nothing"):((vc={})["immer-nothing"]=!0,vc),Sc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",xc=mc?Symbol.for("immer-state"):"__$immer_state",Cc=""+Object.prototype.constructor,Ac=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(x_){return Object.getOwnPropertyNames(x_).concat(Object.getOwnPropertySymbols(x_))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(x_){var eme={};return Ac(x_).forEach(function($P){eme[$P]=Object.getOwnPropertyDescriptor(x_,$P)}),eme},kc={},Bc={get:function(x_,eme){if(eme===xc)return x_;var $P=ql(x_);if(!Vl($P,eme))return function(ame,nme,rme){var ime,ome=cc(nme,rme);return ome?"value"in ome?ome.value:(ime=ome.get)===null||ime===void 0?void 0:ime.call(ame.k):void 0}(x_,$P,eme);var tme=$P[eme];return x_.I||!zl(tme)?tme:tme===lc(x_.t,eme)?(dc(x_),x_.o[eme]=pc(x_.A.h,tme,x_)):tme},has:function(x_,eme){return eme in ql(x_)},ownKeys:function(x_){return Reflect.ownKeys(ql(x_))},set:function(x_,eme,$P){var tme=cc(ql(x_),eme);if(tme!=null&&tme.set)return tme.set.call(x_.k,$P),!0;if(!x_.P){var ame=lc(ql(x_),eme),nme=ame==null?void 0:ame[xc];if(nme&&nme.t===$P)return x_.o[eme]=$P,x_.D[eme]=!1,!0;if(function(rme,ime){return rme===ime?rme!==0||1/rme==1/ime:rme!=rme&&ime!=ime}($P,ame)&&($P!==void 0||Vl(x_.t,eme)))return!0;dc(x_),fc(x_)}return x_.o[eme]===$P&&typeof $P!="number"&&($P!==void 0||eme in x_.o)||(x_.o[eme]=$P,x_.D[eme]=!0,!0)},deleteProperty:function(x_,eme){return lc(x_.t,eme)!==void 0||eme in x_.t?(x_.D[eme]=!1,dc(x_),fc(x_)):delete x_.D[eme],x_.o&&delete x_.o[eme],!0},getOwnPropertyDescriptor:function(x_,eme){var $P=ql(x_),tme=Reflect.getOwnPropertyDescriptor($P,eme);return tme&&{writable:!0,configurable:x_.i!==1||eme!=="length",enumerable:tme.enumerable,value:$P[eme]}},defineProperty:function(){Rl(11)},getPrototypeOf:function(x_){return Object.getPrototypeOf(x_.t)},setPrototypeOf:function(){Rl(12)}},Fc={};$l(Bc,function(x_,eme){Fc[x_]=function(){return arguments[0]=arguments[0][0],eme.apply(this,arguments)}}),Fc.deleteProperty=function(x_,eme){return Bc.deleteProperty.call(this,x_[0],eme)},Fc.set=function(x_,eme,$P){return Bc.set.call(this,x_[0],eme,$P,x_[0])};var Tc=function(){function x_($P){var tme=this;this.g=Ec,this.F=!0,this.produce=function(ame,nme,rme){if(typeof ame=="function"&&typeof nme!="function"){var ime=nme;nme=ame;var ome=tme;return function(ume){var fme=this;ume===void 0&&(ume=ime);for(var pme=arguments.length,hme=Array(pme>1?pme-1:0),bme=1;bme<pme;bme++)hme[bme-1]=arguments[bme];return ome.produce(ume,function(mme){var vme;return(vme=nme).call.apply(vme,[fme,mme].concat(hme))})}}var lme;if(typeof nme!="function"&&Rl(6),rme!==void 0&&typeof rme!="function"&&Rl(7),zl(ame)){var sme=rc(tme),cme=pc(tme,ame,void 0),dme=!0;try{lme=nme(cme),dme=!1}finally{dme?tc(sme):nc(sme)}return typeof Promise<"u"&&lme instanceof Promise?lme.then(function(ume){return ec(sme,rme),ic(ume,sme)},function(ume){throw tc(sme),ume}):(ec(sme,rme),ic(lme,sme))}if(!ame||typeof ame!="object")return(lme=nme(ame))===Dc?void 0:(lme===void 0&&(lme=ame),tme.F&&Yl(lme,!0),lme);Rl(21,ame)},this.produceWithPatches=function(ame,nme){return typeof ame=="function"?function(ome){for(var lme=arguments.length,sme=Array(lme>1?lme-1:0),cme=1;cme<lme;cme++)sme[cme-1]=arguments[cme];return tme.produceWithPatches(ome,function(dme){return ame.apply(void 0,[dme].concat(sme))})}:[tme.produce(ame,nme,function(ome,lme){rme=ome,ime=lme}),rme,ime];var rme,ime},typeof($P==null?void 0:$P.useProxies)=="boolean"&&this.setUseProxies($P.useProxies),typeof($P==null?void 0:$P.autoFreeze)=="boolean"&&this.setAutoFreeze($P.autoFreeze)}var eme=x_.prototype;return eme.createDraft=function($P){zl($P)||Rl(8),Ml($P)&&($P=hc($P));var tme=rc(this),ame=pc(this,$P,void 0);return ame[xc].C=!0,nc(tme),ame},eme.finishDraft=function($P,tme){var ame=($P&&$P[xc]).A;return ec(ame,tme),ic(void 0,ame)},eme.setAutoFreeze=function($P){this.F=$P},eme.setUseProxies=function($P){$P&&!Ec&&Rl(20),this.g=$P},eme.applyPatches=function($P,tme){var ame;for(ame=tme.length-1;ame>=0;ame--){var nme=tme[ame];if(nme.path.length===0&&nme.op==="replace"){$P=nme.value;break}}ame>-1&&(tme=tme.slice(ame+1));var rme=Jl("Patches").$;return Ml($P)?rme($P,tme):this.produce($P,function(ime){return rme(ime,tme)})},x_}(),_c$1=new Tc,Pc=_c$1.produce;_c$1.produceWithPatches.bind(_c$1),_c$1.setAutoFreeze.bind(_c$1),_c$1.setUseProxies.bind(_c$1),_c$1.applyPatches.bind(_c$1);var jc=_c$1.createDraft.bind(_c$1),Nc=_c$1.finishDraft.bind(_c$1);function Ic(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}var Lc=new WeakMap,Rc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,$c=new WeakMap,Hc=new WeakMap;function Vc(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function Uc(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?Vc(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):Vc(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var Wc=()=>{var x_={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:eme=>{for(var $P of Bf.pathRefs(x_))zf.transform($P,eme);for(var tme of Bf.pointRefs(x_))Uf.transform(tme,eme);for(var ame of Bf.rangeRefs(x_))Kf.transform(ame,eme);var nme=new Set,rme=[],ime=dme=>{if(dme){var ume=dme.join(",");nme.has(ume)||(nme.add(ume),rme.push(dme))}},ome=Lc.get(x_)||[],lme=Gc(eme);for(var sme of ome)ime(Mf.transform(sme,eme));for(var cme of lme)ime(cme);Lc.set(x_,rme),md.transform(x_,eme),x_.operations.push(eme),Bf.normalize(x_),eme.type==="set_selection"&&(x_.marks=null),Rc.get(x_)||(Rc.set(x_,!0),Promise.resolve().then(()=>{Rc.set(x_,!1),x_.onChange(),x_.operations=[]}))},addMark:(eme,$P)=>{var{selection:tme}=x_;if(tme)if(qf.isExpanded(tme))md.setNodes(x_,{[eme]:$P},{match:ed.isText,split:!0});else{var ame=Uc(Uc({},Bf.marks(x_)||{}),{},{[eme]:$P});x_.marks=ame,Rc.get(x_)||x_.onChange()}},deleteBackward:eme=>{var{selection:$P}=x_;$P&&qf.isCollapsed($P)&&md.delete(x_,{unit:eme,reverse:!0})},deleteForward:eme=>{var{selection:$P}=x_;$P&&qf.isCollapsed($P)&&md.delete(x_,{unit:eme})},deleteFragment:eme=>{var{selection:$P}=x_;$P&&qf.isExpanded($P)&&md.delete(x_,{reverse:eme==="backward"})},getFragment:()=>{var{selection:eme}=x_;return eme?Nf.fragment(x_,eme):[]},insertBreak:()=>{md.splitNodes(x_,{always:!0})},insertFragment:eme=>{md.insertFragment(x_,eme)},insertNode:eme=>{md.insertNodes(x_,eme)},insertText:eme=>{var{selection:$P,marks:tme}=x_;if($P){if(tme){var ame=Uc({text:eme},tme);md.insertNodes(x_,ame)}else md.insertText(x_,eme);x_.marks=null}},normalizeNode:eme=>{var[$P,tme]=eme;if(!ed.isText($P))if(Sf.isElement($P)&&$P.children.length===0)md.insertNodes(x_,{text:""},{at:tme.concat(0),voids:!0});else for(var ame=!Bf.isEditor($P)&&Sf.isElement($P)&&(x_.isInline($P)||$P.children.length===0||ed.isText($P.children[0])||x_.isInline($P.children[0])),nme=0,rme=0;rme<$P.children.length;rme++,nme++){var ime=Nf.get(x_,tme);if(!ed.isText(ime)){var ome=$P.children[rme],lme=ime.children[nme-1],sme=rme===$P.children.length-1;(ed.isText(ome)||Sf.isElement(ome)&&x_.isInline(ome))!==ame?(md.removeNodes(x_,{at:tme.concat(nme),voids:!0}),nme--):Sf.isElement(ome)?x_.isInline(ome)&&(lme!=null&&ed.isText(lme)?sme&&(md.insertNodes(x_,{text:""},{at:tme.concat(nme+1),voids:!0}),nme++):(md.insertNodes(x_,{text:""},{at:tme.concat(nme),voids:!0}),nme++)):lme!=null&&ed.isText(lme)&&(ed.equals(ome,lme,{loose:!0})?(md.mergeNodes(x_,{at:tme.concat(nme),voids:!0}),nme--):lme.text===""?(md.removeNodes(x_,{at:tme.concat(nme-1),voids:!0}),nme--):ome.text===""&&(md.removeNodes(x_,{at:tme.concat(nme),voids:!0}),nme--))}}},removeMark:eme=>{var{selection:$P}=x_;if($P)if(qf.isExpanded($P))md.unsetNodes(x_,eme,{match:ed.isText,split:!0});else{var tme=Uc({},Bf.marks(x_)||{});delete tme[eme],x_.marks=tme,Rc.get(x_)||x_.onChange()}}};return x_},Gc=x_=>{switch(x_.type){case"insert_text":case"remove_text":case"set_node":var{path:eme}=x_;return Mf.levels(eme);case"insert_node":var{node:$P,path:tme}=x_,ame=Mf.levels(tme),nme=ed.isText($P)?[]:Array.from(Nf.nodes($P),gme=>{var[,yme]=gme;return tme.concat(yme)});return[...ame,...nme];case"merge_node":var{path:rme}=x_;return[...Mf.ancestors(rme),Mf.previous(rme)];case"move_node":var{path:ime,newPath:ome}=x_;if(Mf.equals(ime,ome))return[];var lme=[],sme=[];for(var cme of Mf.ancestors(ime)){var dme=Mf.transform(cme,x_);lme.push(dme)}for(var ume of Mf.ancestors(ome)){var fme=Mf.transform(ume,x_);sme.push(fme)}var pme=sme[sme.length-1],hme=ome[ome.length-1],bme=pme.concat(hme);return[...lme,...sme,bme];case"remove_node":var{path:mme}=x_;return[...Mf.ancestors(mme)];case"split_node":var{path:vme}=x_;return[...Mf.levels(vme),Mf.next(vme)];default:return[]}};function qc(x_,eme){if(x_==null)return{};var $P,tme,ame=function(rme,ime){if(rme==null)return{};var ome,lme,sme={},cme=Object.keys(rme);for(lme=0;lme<cme.length;lme++)ome=cme[lme],ime.indexOf(ome)>=0||(sme[ome]=rme[ome]);return sme}(x_,eme);if(Object.getOwnPropertySymbols){var nme=Object.getOwnPropertySymbols(x_);for(tme=0;tme<nme.length;tme++)$P=nme[tme],eme.indexOf($P)>=0||Object.prototype.propertyIsEnumerable.call(x_,$P)&&(ame[$P]=x_[$P])}return ame}var Kc,Yc=function(x_){var eme=arguments.length>1&&arguments[1]!==void 0&&arguments[1],$P=!eme,tme=eme?tf(x_):x_,ame=Kc.None,nme=Kc.None,rme=0,ime=null;for(var ome of tme){var lme=ome.codePointAt(0);if(!lme)break;var sme=hf(ome,lme);if([ame,nme]=$P?[nme,sme]:[sme,ame],gf(ame,Kc.ZWJ)&&gf(nme,Kc.ExtPict)&&!bf($P?x_.substring(0,rme):x_.substring(0,x_.length-rme))||gf(ame,Kc.RI)&&gf(nme,Kc.RI)&&!(ime=ime!==null?!ime:!!$P||Ef(x_.substring(0,x_.length-rme)))||ame!==Kc.None&&nme!==Kc.None&&yf(ame,nme))break;rme+=ome.length}return rme||1},Xc=/\s/,Zc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\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]/,Jc=/['\u2018\u2019]/,Qc=(x_,eme,$P)=>{if($P){var tme=x_.length-eme;return[x_.slice(tme,x_.length),x_.slice(0,tme)]}return[x_.slice(0,eme),x_.slice(eme)]},ef=function x_(eme,$P){var tme=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Xc.test(eme))return!1;if(Jc.test(eme)){var ame=Yc($P,tme),[nme,rme]=Qc($P,ame,tme);if(x_(nme,rme,tme))return!0}return!Zc.test(eme)},tf=function*(x_){for(var eme=x_.length-1,$P=0;$P<x_.length;$P++){var tme=x_.charAt(eme-$P);if(rf(tme.charCodeAt(0))){var ame=x_.charAt(eme-$P-1);if(nf(ame.charCodeAt(0))){yield ame+tme,$P++;continue}}yield tme}},nf=x_=>x_>=55296&&x_<=56319,rf=x_=>x_>=56320&&x_<=57343;(function(x_){x_[x_.None=0]="None",x_[x_.Extend=1]="Extend",x_[x_.ZWJ=2]="ZWJ",x_[x_.RI=4]="RI",x_[x_.Prepend=8]="Prepend",x_[x_.SpacingMark=16]="SpacingMark",x_[x_.L=32]="L",x_[x_.V=64]="V",x_[x_.T=128]="T",x_[x_.LV=256]="LV",x_[x_.LVT=512]="LVT",x_[x_.ExtPict=1024]="ExtPict",x_[x_.Any=2048]="Any"})(Kc||(Kc={}));var of=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,af=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,sf=/^[\u1100-\u115F\uA960-\uA97C]$/,lf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ff=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,df=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,hf=(x_,eme)=>{var $P=Kc.Any;return x_.search(of)!==-1&&($P|=Kc.Extend),eme===8205&&($P|=Kc.ZWJ),eme>=127462&&eme<=127487&&($P|=Kc.RI),x_.search(af)!==-1&&($P|=Kc.Prepend),x_.search(uf)!==-1&&($P|=Kc.SpacingMark),x_.search(sf)!==-1&&($P|=Kc.L),x_.search(lf)!==-1&&($P|=Kc.V),x_.search(cf)!==-1&&($P|=Kc.T),x_.search(ff)!==-1&&($P|=Kc.LV),x_.search(df)!==-1&&($P|=Kc.LVT),x_.search(pf)!==-1&&($P|=Kc.ExtPict),$P};function gf(x_,eme){return(x_&eme)!=0}var vf=[[Kc.L,Kc.L|Kc.V|Kc.LV|Kc.LVT],[Kc.LV|Kc.V,Kc.V|Kc.T],[Kc.LVT|Kc.T,Kc.T],[Kc.Any,Kc.Extend|Kc.ZWJ],[Kc.Any,Kc.SpacingMark],[Kc.Prepend,Kc.Any],[Kc.ZWJ,Kc.ExtPict],[Kc.RI,Kc.RI]];function yf(x_,eme){return vf.findIndex($P=>gf(x_,$P[0])&&gf(eme,$P[1]))===-1}var mf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,bf=x_=>x_.search(mf)!==-1,wf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ef=x_=>{var eme=x_.match(wf);return eme!==null&&eme[0].length/2%2==1},Df=x_=>Ll(x_)&&Nf.isNodeList(x_.children)&&!Bf.isEditor(x_),Sf={isAncestor:x_=>Ll(x_)&&Nf.isNodeList(x_.children),isElement:Df,isElementList:x_=>Array.isArray(x_)&&x_.every(eme=>Sf.isElement(eme)),isElementProps:x_=>x_.children!==void 0,isElementType:function(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Df(x_)&&x_[$P]===eme},matches(x_,eme){for(var $P in eme)if($P!=="children"&&x_[$P]!==eme[$P])return!1;return!0}},xf=["text"],Cf=["text"];function Af(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function Of(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?Af(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):Af(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var kf=new WeakMap,Bf={above(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:$P=!1,mode:tme="lowest",at:ame=x_.selection,match:nme}=eme;if(ame){var rme=Bf.path(x_,ame),ime=tme==="lowest";for(var[ome,lme]of Bf.levels(x_,{at:rme,voids:$P,match:nme,reverse:ime}))if(!ed.isText(ome)&&!Mf.equals(rme,lme))return[ome,lme]}},addMark(x_,eme,$P){x_.addMark(eme,$P)},after(x_,eme){var $P,tme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ame={anchor:Bf.point(x_,eme,{edge:"end"}),focus:Bf.end(x_,[])},{distance:nme=1}=tme,rme=0;for(var ime of Bf.positions(x_,Of(Of({},tme),{},{at:ame}))){if(rme>nme)break;rme!==0&&($P=ime),rme++}return $P},before(x_,eme){var $P,tme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ame={anchor:Bf.start(x_,[]),focus:Bf.point(x_,eme,{edge:"start"})},{distance:nme=1}=tme,rme=0;for(var ime of Bf.positions(x_,Of(Of({},tme),{},{at:ame,reverse:!0}))){if(rme>nme)break;rme!==0&&($P=ime),rme++}return $P},deleteBackward(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:$P="character"}=eme;x_.deleteBackward($P)},deleteForward(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:$P="character"}=eme;x_.deleteForward($P)},deleteFragment(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:$P="forward"}=eme;x_.deleteFragment($P)},edges:(x_,eme)=>[Bf.start(x_,eme),Bf.end(x_,eme)],end:(x_,eme)=>Bf.point(x_,eme,{edge:"end"}),first(x_,eme){var $P=Bf.path(x_,eme,{edge:"start"});return Bf.node(x_,$P)},fragment(x_,eme){var $P=Bf.range(x_,eme);return Nf.fragment(x_,$P)},hasBlocks:(x_,eme)=>eme.children.some($P=>Bf.isBlock(x_,$P)),hasInlines:(x_,eme)=>eme.children.some($P=>ed.isText($P)||Bf.isInline(x_,$P)),hasTexts:(x_,eme)=>eme.children.every($P=>ed.isText($P)),insertBreak(x_){x_.insertBreak()},insertFragment(x_,eme){x_.insertFragment(eme)},insertNode(x_,eme){x_.insertNode(eme)},insertText(x_,eme){x_.insertText(eme)},isBlock:(x_,eme)=>Sf.isElement(eme)&&!x_.isInline(eme),isEditor(x_){if(!Ll(x_))return!1;var eme=kf.get(x_);if(eme!==void 0)return eme;var $P=typeof x_.addMark=="function"&&typeof x_.apply=="function"&&typeof x_.deleteBackward=="function"&&typeof x_.deleteForward=="function"&&typeof x_.deleteFragment=="function"&&typeof x_.insertBreak=="function"&&typeof x_.insertFragment=="function"&&typeof x_.insertNode=="function"&&typeof x_.insertText=="function"&&typeof x_.isInline=="function"&&typeof x_.isVoid=="function"&&typeof x_.normalizeNode=="function"&&typeof x_.onChange=="function"&&typeof x_.removeMark=="function"&&(x_.marks===null||Ll(x_.marks))&&(x_.selection===null||qf.isRange(x_.selection))&&Nf.isNodeList(x_.children)&&Rf.isOperationList(x_.operations);return kf.set(x_,$P),$P},isEnd(x_,eme,$P){var tme=Bf.end(x_,$P);return Vf.equals(eme,tme)},isEdge:(x_,eme,$P)=>Bf.isStart(x_,eme,$P)||Bf.isEnd(x_,eme,$P),isEmpty(x_,eme){var{children:$P}=eme,[tme]=$P;return $P.length===0||$P.length===1&&ed.isText(tme)&&tme.text===""&&!x_.isVoid(eme)},isInline:(x_,eme)=>Sf.isElement(eme)&&x_.isInline(eme),isNormalizing(x_){var eme=Mc.get(x_);return eme===void 0||eme},isStart(x_,eme,$P){if(eme.offset!==0)return!1;var tme=Bf.start(x_,$P);return Vf.equals(eme,tme)},isVoid:(x_,eme)=>Sf.isElement(eme)&&x_.isVoid(eme),last(x_,eme){var $P=Bf.path(x_,eme,{edge:"end"});return Bf.node(x_,$P)},leaf(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tme=Bf.path(x_,eme,$P);return[Nf.leaf(x_,tme),tme]},*levels(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:$P=x_.selection,reverse:tme=!1,voids:ame=!1}=eme,{match:nme}=eme;if(nme==null&&(nme=()=>!0),$P){var rme=[],ime=Bf.path(x_,$P);for(var[ome,lme]of Nf.levels(x_,ime))if(nme(ome,lme)&&(rme.push([ome,lme]),!ame&&Bf.isVoid(x_,ome)))break;tme&&rme.reverse(),yield*rme}},marks(x_){var{marks:eme,selection:$P}=x_;if(!$P)return null;if(eme)return eme;if(qf.isExpanded($P)){var[tme]=Bf.nodes(x_,{match:ed.isText});if(tme){var[ame]=tme;return qc(ame,xf)}return{}}var{anchor:nme}=$P,{path:rme}=nme,[ime]=Bf.leaf(x_,rme);if(nme.offset===0){var ome=Bf.previous(x_,{at:rme,match:ed.isText}),lme=Bf.above(x_,{match:ume=>Bf.isBlock(x_,ume)});if(ome&&lme){var[sme,cme]=ome,[,dme]=lme;Mf.isAncestor(dme,cme)&&(ime=sme)}}return qc(ime,Cf)},next(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:$P="lowest",voids:tme=!1}=eme,{match:ame,at:nme=x_.selection}=eme;if(nme){var rme=Bf.after(x_,nme,{voids:tme});if(rme){var[,ime]=Bf.last(x_,[]),ome=[rme.path,ime];if(Mf.isPath(nme)&&nme.length===0)throw new Error("Cannot get the next node from the root node!");if(ame==null)if(Mf.isPath(nme)){var[lme]=Bf.parent(x_,nme);ame=cme=>lme.children.includes(cme)}else ame=()=>!0;var[sme]=Bf.nodes(x_,{at:ome,match:ame,mode:$P,voids:tme});return sme}}},node(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tme=Bf.path(x_,eme,$P);return[Nf.get(x_,tme),tme]},*nodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:$P=x_.selection,mode:tme="all",universal:ame=!1,reverse:nme=!1,voids:rme=!1}=eme,{match:ime}=eme;if(ime||(ime=()=>!0),$P){var ome,lme;if(Tf.isSpan($P))ome=$P[0],lme=$P[1];else{var sme=Bf.path(x_,$P,{edge:"start"}),cme=Bf.path(x_,$P,{edge:"end"});ome=nme?cme:sme,lme=nme?sme:cme}var dme,ume=Nf.nodes(x_,{reverse:nme,from:ome,to:lme,pass:vme=>{var[gme]=vme;return!rme&&Bf.isVoid(x_,gme)}}),fme=[];for(var[pme,hme]of ume){var bme=dme&&Mf.compare(hme,dme[1])===0;if(tme!=="highest"||!bme){if(ime(pme,hme))if(tme==="lowest"&&bme)dme=[pme,hme];else{var mme=tme==="lowest"?dme:[pme,hme];mme&&(ame?fme.push(mme):yield mme),dme=[pme,hme]}else if(ame&&!bme&&ed.isText(pme))return}}tme==="lowest"&&dme&&(ame?fme.push(dme):yield dme),ame&&(yield*fme)}},normalize(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:$P=!1}=eme,tme=nme=>Lc.get(nme)||[];if(Bf.isNormalizing(x_)){if($P){var ame=Array.from(Nf.nodes(x_),nme=>{var[,rme]=nme;return rme});Lc.set(x_,ame)}tme(x_).length!==0&&Bf.withoutNormalizing(x_,()=>{for(var nme of tme(x_))if(Nf.has(x_,nme)){var rme=Bf.node(x_,nme),[ime,ome]=rme;Sf.isElement(ime)&&ime.children.length===0&&x_.normalizeNode(rme)}for(var lme=42*tme(x_).length,sme=0;tme(x_).length!==0;){if(sme>lme)throw new Error(`
            Could not completely normalize the editor after `.concat(lme,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `));var cme=tme(x_).pop();if(Nf.has(x_,cme)){var dme=Bf.node(x_,cme);x_.normalizeNode(dme)}sme++}})}},parent(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tme=Bf.path(x_,eme,$P),ame=Mf.parent(tme);return Bf.node(x_,ame)},path(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:tme,edge:ame}=$P;if(Mf.isPath(eme)){if(ame==="start"){var[,nme]=Nf.first(x_,eme);eme=nme}else if(ame==="end"){var[,rme]=Nf.last(x_,eme);eme=rme}}return qf.isRange(eme)&&(eme=ame==="start"?qf.start(eme):ame==="end"?qf.end(eme):Mf.common(eme.anchor.path,eme.focus.path)),Vf.isPoint(eme)&&(eme=eme.path),tme!=null&&(eme=eme.slice(0,tme)),eme},hasPath:(x_,eme)=>Nf.has(x_,eme),pathRef(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:tme="forward"}=$P,ame={current:eme,affinity:tme,unref(){var{current:nme}=ame;return Bf.pathRefs(x_).delete(ame),ame.current=null,nme}};return Bf.pathRefs(x_).add(ame),ame},pathRefs(x_){var eme=zc.get(x_);return eme||(eme=new Set,zc.set(x_,eme)),eme},point(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:tme="start"}=$P;if(Mf.isPath(eme)){var ame;if(tme==="end"){var[,nme]=Nf.last(x_,eme);ame=nme}else{var[,rme]=Nf.first(x_,eme);ame=rme}var ime=Nf.get(x_,ame);if(!ed.isText(ime))throw new Error("Cannot get the ".concat(tme," point in the node at path [").concat(eme,"] because it has no ").concat(tme," text node."));return{path:ame,offset:tme==="end"?ime.text.length:0}}if(qf.isRange(eme)){var[ome,lme]=qf.edges(eme);return tme==="start"?ome:lme}return eme},pointRef(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:tme="forward"}=$P,ame={current:eme,affinity:tme,unref(){var{current:nme}=ame;return Bf.pointRefs(x_).delete(ame),ame.current=null,nme}};return Bf.pointRefs(x_).add(ame),ame},pointRefs(x_){var eme=$c.get(x_);return eme||(eme=new Set,$c.set(x_,eme)),eme},*positions(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:$P=x_.selection,unit:tme="offset",reverse:ame=!1,voids:nme=!1}=eme;if($P){var rme=Bf.range(x_,$P),[ime,ome]=qf.edges(rme),lme=ame?ome:ime,sme=!1,cme="",dme=0,ume=0,fme=0;for(var[pme,hme]of Bf.nodes(x_,{at:$P,reverse:ame,voids:nme})){if(Sf.isElement(pme)){if(!nme&&x_.isVoid(pme)){yield Bf.start(x_,hme);continue}if(x_.isInline(pme))continue;if(Bf.hasInlines(x_,pme)){var bme=Mf.isAncestor(hme,ome.path)?ome:Bf.end(x_,hme),mme=Mf.isAncestor(hme,ime.path)?ime:Bf.start(x_,hme);cme=Bf.string(x_,{anchor:mme,focus:bme},{voids:nme}),sme=!0}}if(ed.isText(pme)){var vme=Mf.equals(hme,lme.path);for(vme?(ume=ame?lme.offset:pme.text.length-lme.offset,fme=lme.offset):(ume=pme.text.length,fme=ame?ume:0),(vme||sme||tme==="offset")&&(yield{path:hme,offset:fme},sme=!1);;){if(dme===0){if(cme==="")break;dme=gme(cme,tme,ame),cme=Qc(cme,dme,ame)[1]}if(fme=ame?fme-dme:fme+dme,(ume-=dme)<0){dme=-ume;break}dme=0,yield{path:hme,offset:fme}}}}}function gme(yme,_me,$me){return _me==="character"?Yc(yme,$me):_me==="word"?function(Cme){for(var Sme=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Eme=0,xme=!1;Cme.length>0;){var Tme=Yc(Cme,Sme),[Ome,Rme]=Qc(Cme,Tme,Sme);if(ef(Ome,Rme,Sme))xme=!0,Eme+=Tme;else{if(xme)break;Eme+=Tme}Cme=Rme}return Eme}(yme,$me):_me==="line"||_me==="block"?yme.length:1}},previous(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:$P="lowest",voids:tme=!1}=eme,{match:ame,at:nme=x_.selection}=eme;if(nme){var rme=Bf.before(x_,nme,{voids:tme});if(rme){var[,ime]=Bf.first(x_,[]),ome=[rme.path,ime];if(Mf.isPath(nme)&&nme.length===0)throw new Error("Cannot get the previous node from the root node!");if(ame==null)if(Mf.isPath(nme)){var[lme]=Bf.parent(x_,nme);ame=cme=>lme.children.includes(cme)}else ame=()=>!0;var[sme]=Bf.nodes(x_,{reverse:!0,at:ome,match:ame,mode:$P,voids:tme});return sme}}},range:(x_,eme,$P)=>qf.isRange(eme)&&!$P?eme:{anchor:Bf.start(x_,eme),focus:Bf.end(x_,$P||eme)},rangeRef(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:tme="forward"}=$P,ame={current:eme,affinity:tme,unref(){var{current:nme}=ame;return Bf.rangeRefs(x_).delete(ame),ame.current=null,nme}};return Bf.rangeRefs(x_).add(ame),ame},rangeRefs(x_){var eme=Hc.get(x_);return eme||(eme=new Set,Hc.set(x_,eme)),eme},removeMark(x_,eme){x_.removeMark(eme)},setNormalizing(x_,eme){Mc.set(x_,eme)},start:(x_,eme)=>Bf.point(x_,eme,{edge:"start"}),string(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:tme=!1}=$P,ame=Bf.range(x_,eme),[nme,rme]=qf.edges(ame),ime="";for(var[ome,lme]of Bf.nodes(x_,{at:ame,match:ed.isText,voids:tme})){var sme=ome.text;Mf.equals(lme,rme.path)&&(sme=sme.slice(0,rme.offset)),Mf.equals(lme,nme.path)&&(sme=sme.slice(nme.offset)),ime+=sme}return ime},unhangRange(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:tme=!1}=$P,[ame,nme]=qf.edges(eme);if(ame.offset!==0||nme.offset!==0||qf.isCollapsed(eme))return eme;var rme=Bf.above(x_,{at:nme,match:dme=>Bf.isBlock(x_,dme)}),ime=rme?rme[1]:[],ome={anchor:Bf.start(x_,[]),focus:nme},lme=!0;for(var[sme,cme]of Bf.nodes(x_,{at:ome,match:ed.isText,reverse:!0,voids:tme}))if(lme)lme=!1;else if(sme.text!==""||Mf.isBefore(cme,ime)){nme={path:cme,offset:sme.text.length};break}return{anchor:ame,focus:nme}},void(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bf.above(x_,Of(Of({},eme),{},{match:$P=>Bf.isVoid(x_,$P)}))},withoutNormalizing(x_,eme){var $P=Bf.isNormalizing(x_);Bf.setNormalizing(x_,!1);try{eme()}finally{Bf.setNormalizing(x_,$P)}Bf.normalize(x_)}},Tf={isSpan:x_=>Array.isArray(x_)&&x_.length===2&&x_.every(Mf.isPath)},_f$1=["children"],Pf=["text"],jf=new WeakMap,Nf={ancestor(x_,eme){var $P=Nf.get(x_,eme);if(ed.isText($P))throw new Error("Cannot get the ancestor node at path [".concat(eme,"] because it refers to a text node instead: ").concat($P));return $P},*ancestors(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var tme of Mf.ancestors(eme,$P)){var ame=[Nf.ancestor(x_,tme),tme];yield ame}},child(x_,eme){if(ed.isText(x_))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(x_)));var $P=x_.children[eme];if($P==null)throw new Error("Cannot get child at index `".concat(eme,"` in node: ").concat(JSON.stringify(x_)));return $P},*children(x_,eme){for(var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:tme=!1}=$P,ame=Nf.ancestor(x_,eme),{children:nme}=ame,rme=tme?nme.length-1:0;tme?rme>=0:rme<nme.length;){var ime=Nf.child(ame,rme),ome=eme.concat(rme);yield[ime,ome],rme=tme?rme-1:rme+1}},common(x_,eme,$P){var tme=Mf.common(eme,$P);return[Nf.get(x_,tme),tme]},descendant(x_,eme){var $P=Nf.get(x_,eme);if(Bf.isEditor($P))throw new Error("Cannot get the descendant node at path [".concat(eme,"] because it refers to the root editor node instead: ").concat($P));return $P},*descendants(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[$P,tme]of Nf.nodes(x_,eme))tme.length!==0&&(yield[$P,tme])},*elements(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[$P,tme]of Nf.nodes(x_,eme))Sf.isElement($P)&&(yield[$P,tme])},extractProps:x_=>Sf.isAncestor(x_)?qc(x_,_f$1):qc(x_,Pf),first(x_,eme){for(var $P=eme.slice(),tme=Nf.get(x_,$P);tme&&!ed.isText(tme)&&tme.children.length!==0;)tme=tme.children[0],$P.push(0);return[tme,$P]},fragment(x_,eme){if(ed.isText(x_))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(x_)));var $P=Pc({children:x_.children},tme=>{var[ame,nme]=qf.edges(eme),rme=Nf.nodes(tme,{reverse:!0,pass:dme=>{var[,ume]=dme;return!qf.includes(eme,ume)}});for(var[,ime]of rme){if(!qf.includes(eme,ime)){var ome=Nf.parent(tme,ime),lme=ime[ime.length-1];ome.children.splice(lme,1)}if(Mf.equals(ime,nme.path)){var sme=Nf.leaf(tme,ime);sme.text=sme.text.slice(0,nme.offset)}if(Mf.equals(ime,ame.path)){var cme=Nf.leaf(tme,ime);cme.text=cme.text.slice(ame.offset)}}Bf.isEditor(tme)&&(tme.selection=null)});return $P.children},get(x_,eme){for(var $P=x_,tme=0;tme<eme.length;tme++){var ame=eme[tme];if(ed.isText($P)||!$P.children[ame])throw new Error("Cannot find a descendant at path [".concat(eme,"] in node: ").concat(JSON.stringify(x_)));$P=$P.children[ame]}return $P},has(x_,eme){for(var $P=x_,tme=0;tme<eme.length;tme++){var ame=eme[tme];if(ed.isText($P)||!$P.children[ame])return!1;$P=$P.children[ame]}return!0},isNode:x_=>ed.isText(x_)||Sf.isElement(x_)||Bf.isEditor(x_),isNodeList(x_){if(!Array.isArray(x_))return!1;var eme=jf.get(x_);if(eme!==void 0)return eme;var $P=x_.every(tme=>Nf.isNode(tme));return jf.set(x_,$P),$P},last(x_,eme){for(var $P=eme.slice(),tme=Nf.get(x_,$P);tme&&!ed.isText(tme)&&tme.children.length!==0;){var ame=tme.children.length-1;tme=tme.children[ame],$P.push(ame)}return[tme,$P]},leaf(x_,eme){var $P=Nf.get(x_,eme);if(!ed.isText($P))throw new Error("Cannot get the leaf node at path [".concat(eme,"] because it refers to a non-leaf node: ").concat($P));return $P},*levels(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var tme of Mf.levels(eme,$P)){var ame=Nf.get(x_,tme);yield[ame,tme]}},matches:(x_,eme)=>Sf.isElement(x_)&&Sf.isElementProps(eme)&&Sf.matches(x_,eme)||ed.isText(x_)&&ed.isTextProps(eme)&&ed.matches(x_,eme),*nodes(x_){for(var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:$P,reverse:tme=!1}=eme,{from:ame=[],to:nme}=eme,rme=new Set,ime=[],ome=x_;!nme||!(tme?Mf.isBefore(ime,nme):Mf.isAfter(ime,nme));)if(rme.has(ome)||(yield[ome,ime]),rme.has(ome)||ed.isText(ome)||ome.children.length===0||$P!=null&&$P([ome,ime])!==!1){if(ime.length===0)break;if(!tme){var lme=Mf.next(ime);if(Nf.has(x_,lme)){ime=lme,ome=Nf.get(x_,ime);continue}}tme&&ime[ime.length-1]!==0?(ime=Mf.previous(ime),ome=Nf.get(x_,ime)):(ime=Mf.parent(ime),ome=Nf.get(x_,ime),rme.add(ome))}else{rme.add(ome);var sme=tme?ome.children.length-1:0;Mf.isAncestor(ime,ame)&&(sme=ame[ime.length]),ime=ime.concat(sme),ome=Nf.get(x_,ime)}},parent(x_,eme){var $P=Mf.parent(eme),tme=Nf.get(x_,$P);if(ed.isText(tme))throw new Error("Cannot get the parent of path [".concat(eme,"] because it does not exist in the root."));return tme},string:x_=>ed.isText(x_)?x_.text:x_.children.map(Nf.string).join(""),*texts(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[$P,tme]of Nf.nodes(x_,eme))ed.isText($P)&&(yield[$P,tme])}};function If(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function Lf(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?If(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):If(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var Rf={isNodeOperation:x_=>Rf.isOperation(x_)&&x_.type.endsWith("_node"),isOperation(x_){if(!Ll(x_))return!1;switch(x_.type){case"insert_node":case"remove_node":return Mf.isPath(x_.path)&&Nf.isNode(x_.node);case"insert_text":case"remove_text":return typeof x_.offset=="number"&&typeof x_.text=="string"&&Mf.isPath(x_.path);case"merge_node":return typeof x_.position=="number"&&Mf.isPath(x_.path)&&Ll(x_.properties);case"move_node":return Mf.isPath(x_.path)&&Mf.isPath(x_.newPath);case"set_node":return Mf.isPath(x_.path)&&Ll(x_.properties)&&Ll(x_.newProperties);case"set_selection":return x_.properties===null&&qf.isRange(x_.newProperties)||x_.newProperties===null&&qf.isRange(x_.properties)||Ll(x_.properties)&&Ll(x_.newProperties);case"split_node":return Mf.isPath(x_.path)&&typeof x_.position=="number"&&Ll(x_.properties);default:return!1}},isOperationList:x_=>Array.isArray(x_)&&x_.every(eme=>Rf.isOperation(eme)),isSelectionOperation:x_=>Rf.isOperation(x_)&&x_.type.endsWith("_selection"),isTextOperation:x_=>Rf.isOperation(x_)&&x_.type.endsWith("_text"),inverse(x_){switch(x_.type){case"insert_node":return Lf(Lf({},x_),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},x_),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},x_),{},{type:"split_node",path:Mf.previous(x_.path)});case"move_node":var{newPath:eme,path:$P}=x_;if(Mf.equals(eme,$P))return x_;if(Mf.isSibling($P,eme))return Lf(Lf({},x_),{},{path:eme,newPath:$P});var tme=Mf.transform($P,x_),ame=Mf.transform(Mf.next($P),x_);return Lf(Lf({},x_),{},{path:tme,newPath:ame});case"remove_node":return Lf(Lf({},x_),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},x_),{},{type:"insert_text"});case"set_node":var{properties:nme,newProperties:rme}=x_;return Lf(Lf({},x_),{},{properties:rme,newProperties:nme});case"set_selection":var{properties:ime,newProperties:ome}=x_;return Lf(Lf({},x_),{},ime==null?{properties:ome,newProperties:null}:ome==null?{properties:null,newProperties:ime}:{properties:ome,newProperties:ime});case"split_node":return Lf(Lf({},x_),{},{type:"merge_node",path:Mf.next(x_.path)})}}},Mf={ancestors(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:$P=!1}=eme,tme=Mf.levels(x_,eme);return tme=$P?tme.slice(1):tme.slice(0,-1)},common(x_,eme){for(var $P=[],tme=0;tme<x_.length&&tme<eme.length;tme++){var ame=x_[tme];if(ame!==eme[tme])break;$P.push(ame)}return $P},compare(x_,eme){for(var $P=Math.min(x_.length,eme.length),tme=0;tme<$P;tme++){if(x_[tme]<eme[tme])return-1;if(x_[tme]>eme[tme])return 1}return 0},endsAfter(x_,eme){var $P=x_.length-1,tme=x_.slice(0,$P),ame=eme.slice(0,$P),nme=x_[$P],rme=eme[$P];return Mf.equals(tme,ame)&&nme>rme},endsAt(x_,eme){var $P=x_.length,tme=x_.slice(0,$P),ame=eme.slice(0,$P);return Mf.equals(tme,ame)},endsBefore(x_,eme){var $P=x_.length-1,tme=x_.slice(0,$P),ame=eme.slice(0,$P),nme=x_[$P],rme=eme[$P];return Mf.equals(tme,ame)&&nme<rme},equals:(x_,eme)=>x_.length===eme.length&&x_.every(($P,tme)=>$P===eme[tme]),hasPrevious:x_=>x_[x_.length-1]>0,isAfter:(x_,eme)=>Mf.compare(x_,eme)===1,isAncestor:(x_,eme)=>x_.length<eme.length&&Mf.compare(x_,eme)===0,isBefore:(x_,eme)=>Mf.compare(x_,eme)===-1,isChild:(x_,eme)=>x_.length===eme.length+1&&Mf.compare(x_,eme)===0,isCommon:(x_,eme)=>x_.length<=eme.length&&Mf.compare(x_,eme)===0,isDescendant:(x_,eme)=>x_.length>eme.length&&Mf.compare(x_,eme)===0,isParent:(x_,eme)=>x_.length+1===eme.length&&Mf.compare(x_,eme)===0,isPath:x_=>Array.isArray(x_)&&(x_.length===0||typeof x_[0]=="number"),isSibling(x_,eme){if(x_.length!==eme.length)return!1;var $P=x_.slice(0,-1),tme=eme.slice(0,-1);return x_[x_.length-1]!==eme[eme.length-1]&&Mf.equals($P,tme)},levels(x_){for(var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:$P=!1}=eme,tme=[],ame=0;ame<=x_.length;ame++)tme.push(x_.slice(0,ame));return $P&&tme.reverse(),tme},next(x_){if(x_.length===0)throw new Error("Cannot get the next path of a root path [".concat(x_,"], because it has no next index."));var eme=x_[x_.length-1];return x_.slice(0,-1).concat(eme+1)},parent(x_){if(x_.length===0)throw new Error("Cannot get the parent path of the root path [".concat(x_,"]."));return x_.slice(0,-1)},previous(x_){if(x_.length===0)throw new Error("Cannot get the previous path of a root path [".concat(x_,"], because it has no previous index."));var eme=x_[x_.length-1];if(eme<=0)throw new Error("Cannot get the previous path of a first child path [".concat(x_,"] because it would result in a negative index."));return x_.slice(0,-1).concat(eme-1)},relative(x_,eme){if(!Mf.isAncestor(eme,x_)&&!Mf.equals(x_,eme))throw new Error("Cannot get the relative path of [".concat(x_,"] inside ancestor [").concat(eme,"], because it is not above or equal to the path."));return x_.slice(eme.length)},transform(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(x_,tme=>{var{affinity:ame="forward"}=$P;if(x_&&(x_==null?void 0:x_.length)!==0){if(tme===null)return null;switch(eme.type){case"insert_node":var{path:nme}=eme;(Mf.equals(nme,tme)||Mf.endsBefore(nme,tme)||Mf.isAncestor(nme,tme))&&(tme[nme.length-1]+=1);break;case"remove_node":var{path:rme}=eme;if(Mf.equals(rme,tme)||Mf.isAncestor(rme,tme))return null;Mf.endsBefore(rme,tme)&&(tme[rme.length-1]-=1);break;case"merge_node":var{path:ime,position:ome}=eme;Mf.equals(ime,tme)||Mf.endsBefore(ime,tme)?tme[ime.length-1]-=1:Mf.isAncestor(ime,tme)&&(tme[ime.length-1]-=1,tme[ime.length]+=ome);break;case"split_node":var{path:lme,position:sme}=eme;if(Mf.equals(lme,tme)){if(ame==="forward")tme[tme.length-1]+=1;else if(ame!=="backward")return null}else Mf.endsBefore(lme,tme)?tme[lme.length-1]+=1:Mf.isAncestor(lme,tme)&&x_[lme.length]>=sme&&(tme[lme.length-1]+=1,tme[lme.length]-=sme);break;case"move_node":var{path:cme,newPath:dme}=eme;if(Mf.equals(cme,dme))return;if(Mf.isAncestor(cme,tme)||Mf.equals(cme,tme)){var ume=dme.slice();return Mf.endsBefore(cme,dme)&&cme.length<dme.length&&(ume[cme.length-1]-=1),ume.concat(tme.slice(cme.length))}Mf.isSibling(cme,dme)&&(Mf.isAncestor(dme,tme)||Mf.equals(dme,tme))?Mf.endsBefore(cme,tme)?tme[cme.length-1]-=1:tme[cme.length-1]+=1:Mf.endsBefore(dme,tme)||Mf.equals(dme,tme)||Mf.isAncestor(dme,tme)?(Mf.endsBefore(cme,tme)&&(tme[cme.length-1]-=1),tme[dme.length-1]+=1):Mf.endsBefore(cme,tme)&&(Mf.equals(dme,tme)&&(tme[dme.length-1]+=1),tme[cme.length-1]-=1)}}})}},zf={transform(x_,eme){var{current:$P,affinity:tme}=x_;if($P!=null){var ame=Mf.transform($P,eme,{affinity:tme});x_.current=ame,ame==null&&x_.unref()}}};function $f(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function Hf(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?$f(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):$f(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var Vf={compare(x_,eme){var $P=Mf.compare(x_.path,eme.path);return $P===0?x_.offset<eme.offset?-1:x_.offset>eme.offset?1:0:$P},isAfter:(x_,eme)=>Vf.compare(x_,eme)===1,isBefore:(x_,eme)=>Vf.compare(x_,eme)===-1,equals:(x_,eme)=>x_.offset===eme.offset&&Mf.equals(x_.path,eme.path),isPoint:x_=>Ll(x_)&&typeof x_.offset=="number"&&Mf.isPath(x_.path),transform(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(x_,tme=>{if(tme===null)return null;var{affinity:ame="forward"}=$P,{path:nme,offset:rme}=tme;switch(eme.type){case"insert_node":case"move_node":tme.path=Mf.transform(nme,eme,$P);break;case"insert_text":Mf.equals(eme.path,nme)&&eme.offset<=rme&&(tme.offset+=eme.text.length);break;case"merge_node":Mf.equals(eme.path,nme)&&(tme.offset+=eme.position),tme.path=Mf.transform(nme,eme,$P);break;case"remove_text":Mf.equals(eme.path,nme)&&eme.offset<=rme&&(tme.offset-=Math.min(rme-eme.offset,eme.text.length));break;case"remove_node":if(Mf.equals(eme.path,nme)||Mf.isAncestor(eme.path,nme))return null;tme.path=Mf.transform(nme,eme,$P);break;case"split_node":if(Mf.equals(eme.path,nme)){if(eme.position===rme&&ame==null)return null;(eme.position<rme||eme.position===rme&&ame==="forward")&&(tme.offset-=eme.position,tme.path=Mf.transform(nme,eme,Hf(Hf({},$P),{},{affinity:"forward"})))}else tme.path=Mf.transform(nme,eme,$P)}})}},Uf={transform(x_,eme){var{current:$P,affinity:tme}=x_;if($P!=null){var ame=Vf.transform($P,eme,{affinity:tme});x_.current=ame,ame==null&&x_.unref()}}},Wf=["anchor","focus"];function Gf(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}var qf={edges(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:$P=!1}=eme,{anchor:tme,focus:ame}=x_;return qf.isBackward(x_)===$P?[tme,ame]:[ame,tme]},end(x_){var[,eme]=qf.edges(x_);return eme},equals:(x_,eme)=>Vf.equals(x_.anchor,eme.anchor)&&Vf.equals(x_.focus,eme.focus),includes(x_,eme){if(qf.isRange(eme)){if(qf.includes(x_,eme.anchor)||qf.includes(x_,eme.focus))return!0;var[$P,tme]=qf.edges(x_),[ame,nme]=qf.edges(eme);return Vf.isBefore($P,ame)&&Vf.isAfter(tme,nme)}var[rme,ime]=qf.edges(x_),ome=!1,lme=!1;return Vf.isPoint(eme)?(ome=Vf.compare(eme,rme)>=0,lme=Vf.compare(eme,ime)<=0):(ome=Mf.compare(eme,rme.path)>=0,lme=Mf.compare(eme,ime.path)<=0),ome&&lme},intersection(x_,eme){var $P=qc(x_,Wf),[tme,ame]=qf.edges(x_),[nme,rme]=qf.edges(eme),ime=Vf.isBefore(tme,nme)?nme:tme,ome=Vf.isBefore(ame,rme)?ame:rme;return Vf.isBefore(ome,ime)?null:function(lme){for(var sme=1;sme<arguments.length;sme++){var cme=arguments[sme]!=null?arguments[sme]:{};sme%2?Gf(Object(cme),!0).forEach(function(dme){Ic(lme,dme,cme[dme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(lme,Object.getOwnPropertyDescriptors(cme)):Gf(Object(cme)).forEach(function(dme){Object.defineProperty(lme,dme,Object.getOwnPropertyDescriptor(cme,dme))})}return lme}({anchor:ime,focus:ome},$P)},isBackward(x_){var{anchor:eme,focus:$P}=x_;return Vf.isAfter(eme,$P)},isCollapsed(x_){var{anchor:eme,focus:$P}=x_;return Vf.equals(eme,$P)},isExpanded:x_=>!qf.isCollapsed(x_),isForward:x_=>!qf.isBackward(x_),isRange:x_=>Ll(x_)&&Vf.isPoint(x_.anchor)&&Vf.isPoint(x_.focus),*points(x_){yield[x_.anchor,"anchor"],yield[x_.focus,"focus"]},start(x_){var[eme]=qf.edges(x_);return eme},transform(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(x_,tme=>{if(tme===null)return null;var ame,nme,{affinity:rme="inward"}=$P;if(rme==="inward"){var ime=qf.isCollapsed(tme);qf.isForward(tme)?(ame="forward",nme=ime?ame:"backward"):(ame="backward",nme=ime?ame:"forward")}else rme==="outward"?qf.isForward(tme)?(ame="backward",nme="forward"):(ame="forward",nme="backward"):(ame=rme,nme=rme);var ome=Vf.transform(tme.anchor,eme,{affinity:ame}),lme=Vf.transform(tme.focus,eme,{affinity:nme});if(!ome||!lme)return null;tme.anchor=ome,tme.focus=lme})}},Kf={transform(x_,eme){var{current:$P,affinity:tme}=x_;if($P!=null){var ame=qf.transform($P,eme,{affinity:tme});x_.current=ame,ame==null&&x_.unref()}}},Yf=(x_,eme)=>{for(var $P in x_){var tme=x_[$P],ame=eme[$P];if(Ll(tme)&&Ll(ame)){if(!Yf(tme,ame))return!1}else if(Array.isArray(tme)&&Array.isArray(ame)){if(tme.length!==ame.length)return!1;for(var nme=0;nme<tme.length;nme++)if(tme[nme]!==ame[nme])return!1}else if(tme!==ame)return!1}for(var rme in eme)if(x_[rme]===void 0&&eme[rme]!==void 0)return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function Qf(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?Jf(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):Jf(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var ed={equals(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:tme=!1}=$P;function ame(nme){return qc(nme,Xf)}return Yf(tme?ame(x_):x_,tme?ame(eme):eme)},isText:x_=>Ll(x_)&&typeof x_.text=="string",isTextList:x_=>Array.isArray(x_)&&x_.every(eme=>ed.isText(eme)),isTextProps:x_=>x_.text!==void 0,matches(x_,eme){for(var $P in eme)if($P!=="text"&&(!x_.hasOwnProperty($P)||x_[$P]!==eme[$P]))return!1;return!0},decorations(x_,eme){var $P=[Qf({},x_)];for(var tme of eme){var ame=qc(tme,Zf),[nme,rme]=qf.edges(tme),ime=[],ome=0;for(var lme of $P){var{length:sme}=lme.text,cme=ome;if(ome+=sme,nme.offset<=cme&&rme.offset>=ome)Object.assign(lme,ame),ime.push(lme);else if(nme.offset!==rme.offset&&(nme.offset===ome||rme.offset===cme)||nme.offset>ome||rme.offset<cme||rme.offset===cme&&cme!==0)ime.push(lme);else{var dme=lme,ume=void 0,fme=void 0;if(rme.offset<ome){var pme=rme.offset-cme;fme=Qf(Qf({},dme),{},{text:dme.text.slice(pme)}),dme=Qf(Qf({},dme),{},{text:dme.text.slice(0,pme)})}if(nme.offset>cme){var hme=nme.offset-cme;ume=Qf(Qf({},dme),{},{text:dme.text.slice(0,hme)}),dme=Qf(Qf({},dme),{},{text:dme.text.slice(hme)})}Object.assign(dme,ame),ume&&ime.push(ume),ime.push(dme),fme&&ime.push(fme)}}$P=ime}return $P}};function td(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function nd(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?td(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):td(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var rd={transform(x_,eme){x_.children=jc(x_.children);var $P=x_.selection&&jc(x_.selection);try{$P=((tme,ame,nme)=>{switch(nme.type){case"insert_node":var{path:rme,node:ime}=nme,ome=Nf.parent(tme,rme),lme=rme[rme.length-1];if(lme>ome.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(rme,"] because the destination is past the end of the node."));if(ome.children.splice(lme,0,ime),ame)for(var[sme,cme]of qf.points(ame))ame[cme]=Vf.transform(sme,nme);break;case"insert_text":var{path:dme,offset:ume,text:fme}=nme;if(fme.length===0)break;var pme=Nf.leaf(tme,dme),hme=pme.text.slice(0,ume),bme=pme.text.slice(ume);if(pme.text=hme+fme+bme,ame)for(var[mme,vme]of qf.points(ame))ame[vme]=Vf.transform(mme,nme);break;case"merge_node":var{path:gme}=nme,yme=Nf.get(tme,gme),_me=Mf.previous(gme),$me=Nf.get(tme,_me),Cme=Nf.parent(tme,gme),Sme=gme[gme.length-1];if(ed.isText(yme)&&ed.isText($me))$me.text+=yme.text;else{if(ed.isText(yme)||ed.isText($me))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(gme,"] to nodes of different interfaces: ").concat(yme," ").concat($me));$me.children.push(...yme.children)}if(Cme.children.splice(Sme,1),ame)for(var[Eme,xme]of qf.points(ame))ame[xme]=Vf.transform(Eme,nme);break;case"move_node":var{path:Tme,newPath:Ome}=nme;if(Mf.isAncestor(Tme,Ome))throw new Error("Cannot move a path [".concat(Tme,"] to new path [").concat(Ome,"] because the destination is inside itself."));var Rme=Nf.get(tme,Tme),Nme=Nf.parent(tme,Tme),Ime=Tme[Tme.length-1];Nme.children.splice(Ime,1);var Pme=Mf.transform(Tme,nme),Mme=Nf.get(tme,Mf.parent(Pme)),kme=Pme[Pme.length-1];if(Mme.children.splice(kme,0,Rme),ame)for(var[Bme,Dme]of qf.points(ame))ame[Dme]=Vf.transform(Bme,nme);break;case"remove_node":var{path:jme}=nme,Vme=jme[jme.length-1];if(Nf.parent(tme,jme).children.splice(Vme,1),ame)for(var[Wme,Lme]of qf.points(ame)){var zme=Vf.transform(Wme,nme);if(ame!=null&&zme!=null)ame[Lme]=zme;else{var Ume=void 0,Gme=void 0;for(var[Jme,Yme]of Nf.texts(tme)){if(Mf.compare(Yme,jme)!==-1){Gme=[Jme,Yme];break}Ume=[Jme,Yme]}var Qme=!1;Ume&&Gme&&(Qme=Mf.equals(Gme[1],jme)?!Mf.hasPrevious(Gme[1]):Mf.common(Ume[1],jme).length<Mf.common(Gme[1],jme).length),Ume&&!Qme?(Wme.path=Ume[1],Wme.offset=Ume[0].text.length):Gme?(Wme.path=Gme[1],Wme.offset=0):ame=null}}break;case"remove_text":var{path:Xme,offset:Kme,text:Zme}=nme;if(Zme.length===0)break;var nbe=Nf.leaf(tme,Xme),lbe=nbe.text.slice(0,Kme),ibe=nbe.text.slice(Kme+Zme.length);if(nbe.text=lbe+ibe,ame)for(var[abe,obe]of qf.points(ame))ame[obe]=Vf.transform(abe,nme);break;case"set_node":var{path:hbe,properties:ube,newProperties:mbe}=nme;if(hbe.length===0)throw new Error("Cannot set properties on the root node!");var pbe=Nf.get(tme,hbe);for(var _be in mbe){if(_be==="children"||_be==="text")throw new Error('Cannot set the "'.concat(_be,'" property of nodes!'));var Sbe=mbe[_be];Sbe==null?delete pbe[_be]:pbe[_be]=Sbe}for(var vbe in ube)mbe.hasOwnProperty(vbe)||delete pbe[vbe];break;case"set_selection":var{newProperties:kbe}=nme;if(kbe==null)ame=kbe;else{if(ame==null){if(!qf.isRange(kbe))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(kbe)," when there is no current selection."));ame=nd({},kbe)}for(var Rbe in kbe){var Pbe=kbe[Rbe];if(Pbe==null){if(Rbe==="anchor"||Rbe==="focus")throw new Error('Cannot remove the "'.concat(Rbe,'" selection property'));delete ame[Rbe]}else ame[Rbe]=Pbe}}break;case"split_node":var{path:Mbe,position:Kbe,properties:Qbe}=nme;if(Mbe.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Mbe,"] because the root node cannot be split."));var Gbe,Hbe=Nf.get(tme,Mbe),d0e=Nf.parent(tme,Mbe),p0e=Mbe[Mbe.length-1];if(ed.isText(Hbe)){var S0e=Hbe.text.slice(0,Kbe),P0e=Hbe.text.slice(Kbe);Hbe.text=S0e,Gbe=nd(nd({},Qbe),{},{text:P0e})}else{var e0e=Hbe.children.slice(0,Kbe),_0e=Hbe.children.slice(Kbe);Hbe.children=e0e,Gbe=nd(nd({},Qbe),{},{children:_0e})}if(d0e.children.splice(p0e+1,0,Gbe),ame)for(var[m0e,Ybe]of qf.points(ame))ame[Ybe]=Vf.transform(m0e,nme)}return ame})(x_,$P,eme)}finally{x_.children=Nc(x_.children),x_.selection=$P?Ml($P)?Nc($P):$P:null}}},od=["text"],id=["children"];function ad(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function ud(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ad(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ad(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var sd={insertNodes(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(x_,()=>{var{hanging:tme=!1,voids:ame=!1,mode:nme="lowest"}=$P,{at:rme,match:ime,select:ome}=$P;if(Nf.isNode(eme)&&(eme=[eme]),eme.length!==0){var[lme]=eme;if(rme||(rme=x_.selection?x_.selection:x_.children.length>0?Bf.end(x_,[]):[0],ome=!0),ome==null&&(ome=!1),qf.isRange(rme))if(tme||(rme=Bf.unhangRange(x_,rme)),qf.isCollapsed(rme))rme=rme.anchor;else{var[,sme]=qf.edges(rme),cme=Bf.pointRef(x_,sme);md.delete(x_,{at:rme}),rme=cme.unref()}if(Vf.isPoint(rme)){ime==null&&(ime=ed.isText(lme)?_me=>ed.isText(_me):x_.isInline(lme)?_me=>ed.isText(_me)||Bf.isInline(x_,_me):_me=>Bf.isBlock(x_,_me));var[dme]=Bf.nodes(x_,{at:rme.path,match:ime,mode:nme,voids:ame});if(!dme)return;var[,ume]=dme,fme=Bf.pathRef(x_,ume),pme=Bf.isEnd(x_,rme,ume);md.splitNodes(x_,{at:rme,match:ime,mode:nme,voids:ame});var hme=fme.unref();rme=pme?Mf.next(hme):hme}var bme=Mf.parent(rme),mme=rme[rme.length-1];if(ame||!Bf.void(x_,{at:bme})){for(var vme of eme){var gme=bme.concat(mme);mme++,x_.apply({type:"insert_node",path:gme,node:vme}),rme=Mf.next(rme)}if(rme=Mf.previous(rme),ome){var yme=Bf.end(x_,rme);yme&&md.select(x_,yme)}}}})},liftNodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{at:$P=x_.selection,mode:tme="lowest",voids:ame=!1}=eme,{match:nme}=eme;if(nme==null&&(nme=Mf.isPath($P)?fd(x_,$P):vme=>Bf.isBlock(x_,vme)),$P){var rme=Bf.nodes(x_,{at:$P,match:nme,mode:tme,voids:ame}),ime=Array.from(rme,vme=>{var[,gme]=vme;return Bf.pathRef(x_,gme)});for(var ome of ime){var lme=ome.unref();if(lme.length<2)throw new Error("Cannot lift node at a path [".concat(lme,"] because it has a depth of less than `2`."));var sme=Bf.node(x_,Mf.parent(lme)),[cme,dme]=sme,ume=lme[lme.length-1],{length:fme}=cme.children;if(fme===1){var pme=Mf.next(dme);md.moveNodes(x_,{at:lme,to:pme,voids:ame}),md.removeNodes(x_,{at:dme,voids:ame})}else if(ume===0)md.moveNodes(x_,{at:lme,to:dme,voids:ame});else if(ume===fme-1){var hme=Mf.next(dme);md.moveNodes(x_,{at:lme,to:hme,voids:ame})}else{var bme=Mf.next(lme),mme=Mf.next(dme);md.splitNodes(x_,{at:bme,voids:ame}),md.moveNodes(x_,{at:lme,to:mme,voids:ame})}}}})},mergeNodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{match:$P,at:tme=x_.selection}=eme,{hanging:ame=!1,voids:nme=!1,mode:rme="lowest"}=eme;if(tme){if($P==null)if(Mf.isPath(tme)){var[ime]=Bf.parent(x_,tme);$P=Sme=>ime.children.includes(Sme)}else $P=Sme=>Bf.isBlock(x_,Sme);if(!ame&&qf.isRange(tme)&&(tme=Bf.unhangRange(x_,tme)),qf.isRange(tme))if(qf.isCollapsed(tme))tme=tme.anchor;else{var[,ome]=qf.edges(tme),lme=Bf.pointRef(x_,ome);md.delete(x_,{at:tme}),tme=lme.unref(),eme.at==null&&md.select(x_,tme)}var[sme]=Bf.nodes(x_,{at:tme,match:$P,voids:nme,mode:rme}),cme=Bf.previous(x_,{at:tme,match:$P,voids:nme,mode:rme});if(sme&&cme){var[dme,ume]=sme,[fme,pme]=cme;if(ume.length!==0&&pme.length!==0){var hme,bme,mme=Mf.next(pme),vme=Mf.common(ume,pme),gme=Mf.isSibling(ume,pme),yme=Array.from(Bf.levels(x_,{at:ume}),Sme=>{var[Eme]=Sme;return Eme}).slice(vme.length).slice(0,-1),_me=Bf.above(x_,{at:ume,mode:"highest",match:Sme=>yme.includes(Sme)&&ld(x_,Sme)}),$me=_me&&Bf.pathRef(x_,_me[1]);if(ed.isText(dme)&&ed.isText(fme)){var Cme=qc(dme,od);bme=fme.text.length,hme=Cme}else{if(!Sf.isElement(dme)||!Sf.isElement(fme))throw new Error("Cannot merge the node at path [".concat(ume,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(dme)," ").concat(JSON.stringify(fme)));Cme=qc(dme,id),bme=fme.children.length,hme=Cme}gme||md.moveNodes(x_,{at:ume,to:mme,voids:nme}),$me&&md.removeNodes(x_,{at:$me.current,voids:nme}),Sf.isElement(fme)&&Bf.isEmpty(x_,fme)||ed.isText(fme)&&fme.text===""&&pme[pme.length-1]!==0?md.removeNodes(x_,{at:pme,voids:nme}):x_.apply({type:"merge_node",path:mme,position:bme,properties:hme}),$me&&$me.unref()}}}})},moveNodes(x_,eme){Bf.withoutNormalizing(x_,()=>{var{to:$P,at:tme=x_.selection,mode:ame="lowest",voids:nme=!1}=eme,{match:rme}=eme;if(tme){rme==null&&(rme=Mf.isPath(tme)?fd(x_,tme):ume=>Bf.isBlock(x_,ume));var ime=Bf.pathRef(x_,$P),ome=Bf.nodes(x_,{at:tme,match:rme,mode:ame,voids:nme}),lme=Array.from(ome,ume=>{var[,fme]=ume;return Bf.pathRef(x_,fme)});for(var sme of lme){var cme=sme.unref(),dme=ime.current;cme.length!==0&&x_.apply({type:"move_node",path:cme,newPath:dme}),ime.current&&Mf.isSibling(dme,cme)&&Mf.isAfter(dme,cme)&&(ime.current=Mf.next(ime.current))}ime.unref()}})},removeNodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{hanging:$P=!1,voids:tme=!1,mode:ame="lowest"}=eme,{at:nme=x_.selection,match:rme}=eme;if(nme){rme==null&&(rme=Mf.isPath(nme)?fd(x_,nme):dme=>Bf.isBlock(x_,dme)),!$P&&qf.isRange(nme)&&(nme=Bf.unhangRange(x_,nme));var ime=Bf.nodes(x_,{at:nme,match:rme,mode:ame,voids:tme}),ome=Array.from(ime,dme=>{var[,ume]=dme;return Bf.pathRef(x_,ume)});for(var lme of ome){var sme=lme.unref();if(sme){var[cme]=Bf.node(x_,sme);x_.apply({type:"remove_node",path:sme,node:cme})}}}})},setNodes(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(x_,()=>{var{match:tme,at:ame=x_.selection}=$P,{hanging:nme=!1,mode:rme="lowest",split:ime=!1,voids:ome=!1}=$P;if(ame){if(tme==null&&(tme=Mf.isPath(ame)?fd(x_,ame):yme=>Bf.isBlock(x_,yme)),!nme&&qf.isRange(ame)&&(ame=Bf.unhangRange(x_,ame)),ime&&qf.isRange(ame)){if(qf.isCollapsed(ame)&&Bf.leaf(x_,ame.anchor)[0].text.length>0)return;var lme=Bf.rangeRef(x_,ame,{affinity:"inward"}),[sme,cme]=qf.edges(ame),dme=rme==="lowest"?"lowest":"highest",ume=Bf.isEnd(x_,cme,cme.path);md.splitNodes(x_,{at:cme,match:tme,mode:dme,voids:ome,always:!ume});var fme=Bf.isStart(x_,sme,sme.path);md.splitNodes(x_,{at:sme,match:tme,mode:dme,voids:ome,always:!fme}),ame=lme.unref(),$P.at==null&&md.select(x_,ame)}for(var[pme,hme]of Bf.nodes(x_,{at:ame,match:tme,mode:rme,voids:ome})){var bme={},mme={};if(hme.length!==0){var vme=!1;for(var gme in eme)gme!=="children"&&gme!=="text"&&eme[gme]!==pme[gme]&&(vme=!0,pme.hasOwnProperty(gme)&&(bme[gme]=pme[gme]),eme[gme]!=null&&(mme[gme]=eme[gme]));vme&&x_.apply({type:"set_node",path:hme,properties:bme,newProperties:mme})}}}})},splitNodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{mode:$P="lowest",voids:tme=!1}=eme,{match:ame,at:nme=x_.selection,height:rme=0,always:ime=!1}=eme;if(ame==null&&(ame=Rme=>Bf.isBlock(x_,Rme)),qf.isRange(nme)&&(nme=cd(x_,nme)),Mf.isPath(nme)){var ome=nme,lme=Bf.point(x_,ome),[sme]=Bf.parent(x_,ome);ame=Rme=>Rme===sme,rme=lme.path.length-ome.length+1,nme=lme,ime=!0}if(nme){var cme=Bf.pointRef(x_,nme,{affinity:"backward"}),[dme]=Bf.nodes(x_,{at:nme,match:ame,mode:$P,voids:tme});if(dme){var ume=Bf.void(x_,{at:nme,mode:"highest"});if(!tme&&ume){var[fme,pme]=ume;if(Sf.isElement(fme)&&x_.isInline(fme)){var hme=Bf.after(x_,pme);if(!hme){var bme=Mf.next(pme);md.insertNodes(x_,{text:""},{at:bme,voids:tme}),hme=Bf.point(x_,bme)}nme=hme,ime=!0}rme=nme.path.length-pme.length+1,ime=!0}var mme=Bf.pointRef(x_,nme),vme=nme.path.length-rme,[,gme]=dme,yme=nme.path.slice(0,vme),_me=rme===0?nme.offset:nme.path[vme]+0;for(var[$me,Cme]of Bf.levels(x_,{at:yme,reverse:!0,voids:tme})){var Sme=!1;if(Cme.length<gme.length||Cme.length===0||!tme&&Bf.isVoid(x_,$me))break;var Eme=cme.current,xme=Bf.isEnd(x_,Eme,Cme);if(ime||!cme||!Bf.isEdge(x_,Eme,Cme)){Sme=!0;var Tme=Nf.extractProps($me);x_.apply({type:"split_node",path:Cme,position:_me,properties:Tme})}_me=Cme[Cme.length-1]+(Sme||xme?1:0)}if(eme.at==null){var Ome=mme.current||Bf.end(x_,[]);md.select(x_,Ome)}cme.unref(),mme.unref()}}})},unsetNodes(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(eme)||(eme=[eme]);var tme={};for(var ame of eme)tme[ame]=null;md.setNodes(x_,tme,$P)},unwrapNodes(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{mode:$P="lowest",split:tme=!1,voids:ame=!1}=eme,{at:nme=x_.selection,match:rme}=eme;if(nme){rme==null&&(rme=Mf.isPath(nme)?fd(x_,nme):dme=>Bf.isBlock(x_,dme)),Mf.isPath(nme)&&(nme=Bf.range(x_,nme));var ime=qf.isRange(nme)?Bf.rangeRef(x_,nme):null,ome=Bf.nodes(x_,{at:nme,match:rme,mode:$P,voids:ame}),lme=Array.from(ome,dme=>{var[,ume]=dme;return Bf.pathRef(x_,ume)}).reverse(),sme=function(dme){var ume=dme.unref(),[fme]=Bf.node(x_,ume),pme=Bf.range(x_,ume);tme&&ime&&(pme=qf.intersection(ime.current,pme)),md.liftNodes(x_,{at:pme,match:hme=>Sf.isAncestor(fme)&&fme.children.includes(hme),voids:ame})};for(var cme of lme)sme(cme);ime&&ime.unref()}})},wrapNodes(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(x_,()=>{var{mode:tme="lowest",split:ame=!1,voids:nme=!1}=$P,{match:rme,at:ime=x_.selection}=$P;if(ime){if(rme==null&&(rme=Mf.isPath(ime)?fd(x_,ime):x_.isInline(eme)?hme=>Bf.isInline(x_,hme)||ed.isText(hme):hme=>Bf.isBlock(x_,hme)),ame&&qf.isRange(ime)){var[ome,lme]=qf.edges(ime),sme=Bf.rangeRef(x_,ime,{affinity:"inward"});md.splitNodes(x_,{at:lme,match:rme,voids:nme}),md.splitNodes(x_,{at:ome,match:rme,voids:nme}),ime=sme.unref(),$P.at==null&&md.select(x_,ime)}var cme=Array.from(Bf.nodes(x_,{at:ime,match:x_.isInline(eme)?hme=>Bf.isBlock(x_,hme):hme=>Bf.isEditor(hme),mode:"lowest",voids:nme}));for(var[,dme]of cme){var ume=qf.isRange(ime)?qf.intersection(ime,Bf.range(x_,dme)):ime;if(ume){var fme=Array.from(Bf.nodes(x_,{at:ume,match:rme,mode:tme,voids:nme}));if(fme.length>0){var pme=function(){var[hme]=fme,bme=fme[fme.length-1],[,mme]=hme,[,vme]=bme;if(mme.length===0&&vme.length===0)return"continue";var gme=Mf.equals(mme,vme)?Mf.parent(mme):Mf.common(mme,vme),yme=Bf.range(x_,mme,vme),_me=Bf.node(x_,gme),[$me]=_me,Cme=gme.length+1,Sme=Mf.next(vme.slice(0,Cme)),Eme=ud(ud({},eme),{},{children:[]});md.insertNodes(x_,Eme,{at:Sme,voids:nme}),md.moveNodes(x_,{at:yme,match:xme=>Sf.isAncestor($me)&&$me.children.includes(xme),to:Sme.concat(0),voids:nme})}();if(pme==="continue")continue}}}}})}},ld=(x_,eme)=>{if(Sf.isElement(eme)){var $P=eme;return!!Bf.isVoid(x_,eme)||$P.children.length===1&&ld(x_,$P.children[0])}return!Bf.isEditor(eme)},cd=(x_,eme)=>{if(qf.isCollapsed(eme))return eme.anchor;var[,$P]=qf.edges(eme),tme=Bf.pointRef(x_,$P);return md.delete(x_,{at:eme}),tme.unref()},fd=(x_,eme)=>{var[$P]=Bf.node(x_,eme);return tme=>tme===$P};function dd(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function pd(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?dd(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):dd(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var hd={collapse(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:$P="anchor"}=eme,{selection:tme}=x_;if(tme){if($P==="anchor")md.select(x_,tme.anchor);else if($P==="focus")md.select(x_,tme.focus);else if($P==="start"){var[ame]=qf.edges(tme);md.select(x_,ame)}else if($P==="end"){var[,nme]=qf.edges(tme);md.select(x_,nme)}}},deselect(x_){var{selection:eme}=x_;eme&&x_.apply({type:"set_selection",properties:eme,newProperties:null})},move(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:$P}=x_,{distance:tme=1,unit:ame="character",reverse:nme=!1}=eme,{edge:rme=null}=eme;if($P){rme==="start"&&(rme=qf.isBackward($P)?"focus":"anchor"),rme==="end"&&(rme=qf.isBackward($P)?"anchor":"focus");var{anchor:ime,focus:ome}=$P,lme={distance:tme,unit:ame},sme={};if(rme==null||rme==="anchor"){var cme=nme?Bf.before(x_,ime,lme):Bf.after(x_,ime,lme);cme&&(sme.anchor=cme)}if(rme==null||rme==="focus"){var dme=nme?Bf.before(x_,ome,lme):Bf.after(x_,ome,lme);dme&&(sme.focus=dme)}md.setSelection(x_,sme)}},select(x_,eme){var{selection:$P}=x_;if(eme=Bf.range(x_,eme),$P)md.setSelection(x_,eme);else{if(!qf.isRange(eme))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(eme)));x_.apply({type:"set_selection",properties:$P,newProperties:eme})}},setPoint(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:tme}=x_,{edge:ame="both"}=$P;if(tme){ame==="start"&&(ame=qf.isBackward(tme)?"focus":"anchor"),ame==="end"&&(ame=qf.isBackward(tme)?"anchor":"focus");var{anchor:nme,focus:rme}=tme,ime=ame==="anchor"?nme:rme;md.setSelection(x_,{[ame==="anchor"?"anchor":"focus"]:pd(pd({},ime),eme)})}},setSelection(x_,eme){var{selection:$P}=x_,tme={},ame={};if($P){for(var nme in eme)(nme==="anchor"&&eme.anchor!=null&&!Vf.equals(eme.anchor,$P.anchor)||nme==="focus"&&eme.focus!=null&&!Vf.equals(eme.focus,$P.focus)||nme!=="anchor"&&nme!=="focus"&&eme[nme]!==$P[nme])&&(tme[nme]=$P[nme],ame[nme]=eme[nme]);Object.keys(tme).length>0&&x_.apply({type:"set_selection",properties:tme,newProperties:ame})}}},gd={delete(x_){var eme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(x_,()=>{var{reverse:$P=!1,unit:tme="character",distance:ame=1,voids:nme=!1}=eme,{at:rme=x_.selection,hanging:ime=!1}=eme;if(rme){if(qf.isRange(rme)&&qf.isCollapsed(rme)&&(rme=rme.anchor),Vf.isPoint(rme)){var ome=Bf.void(x_,{at:rme,mode:"highest"});if(!nme&&ome){var[,lme]=ome;rme=lme}else{var sme={unit:tme,distance:ame};rme={anchor:rme,focus:$P?Bf.before(x_,rme,sme)||Bf.start(x_,[]):Bf.after(x_,rme,sme)||Bf.end(x_,[])},ime=!0}}if(Mf.isPath(rme))md.removeNodes(x_,{at:rme,voids:nme});else if(!qf.isCollapsed(rme)){if(!ime){var[,cme]=qf.edges(rme),dme=Bf.end(x_,[]);Vf.equals(cme,dme)||(rme=Bf.unhangRange(x_,rme,{voids:nme}))}var[ume,fme]=qf.edges(rme),pme=Bf.above(x_,{match:Gme=>Bf.isBlock(x_,Gme),at:ume,voids:nme}),hme=Bf.above(x_,{match:Gme=>Bf.isBlock(x_,Gme),at:fme,voids:nme}),bme=pme&&hme&&!Mf.equals(pme[1],hme[1]),mme=Mf.equals(ume.path,fme.path),vme=nme?null:Bf.void(x_,{at:ume,mode:"highest"}),gme=nme?null:Bf.void(x_,{at:fme,mode:"highest"});if(vme){var yme=Bf.before(x_,ume);yme&&pme&&Mf.isAncestor(pme[1],yme.path)&&(ume=yme)}if(gme){var _me=Bf.after(x_,fme);_me&&hme&&Mf.isAncestor(hme[1],_me.path)&&(fme=_me)}var $me,Cme=[];for(var Sme of Bf.nodes(x_,{at:rme,voids:nme})){var[Eme,xme]=Sme;$me&&Mf.compare(xme,$me)===0||(!nme&&Bf.isVoid(x_,Eme)||!Mf.isCommon(xme,ume.path)&&!Mf.isCommon(xme,fme.path))&&(Cme.push(Sme),$me=xme)}var Tme=Array.from(Cme,Gme=>{var[,Jme]=Gme;return Bf.pathRef(x_,Jme)}),Ome=Bf.pointRef(x_,ume),Rme=Bf.pointRef(x_,fme);if(!mme&&!vme){var Nme=Ome.current,[Ime]=Bf.leaf(x_,Nme),{path:Pme}=Nme,{offset:Mme}=ume,kme=Ime.text.slice(Mme);kme.length>0&&x_.apply({type:"remove_text",path:Pme,offset:Mme,text:kme})}for(var Bme of Tme){var Dme=Bme.unref();md.removeNodes(x_,{at:Dme,voids:nme})}if(!gme){var jme=Rme.current,[Vme]=Bf.leaf(x_,jme),{path:Wme}=jme,Lme=mme?ume.offset:0,zme=Vme.text.slice(Lme,fme.offset);zme.length>0&&x_.apply({type:"remove_text",path:Wme,offset:Lme,text:zme})}!mme&&bme&&Rme.current&&Ome.current&&md.mergeNodes(x_,{at:Rme.current,hanging:!0,voids:nme});var Ume=$P?Ome.unref()||Rme.unref():Rme.unref()||Ome.unref();eme.at==null&&Ume&&md.select(x_,Ume)}}})},insertFragment(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(x_,()=>{var{hanging:tme=!1,voids:ame=!1}=$P,{at:nme=x_.selection}=$P;if(eme.length&&nme){if(qf.isRange(nme))if(tme||(nme=Bf.unhangRange(x_,nme)),qf.isCollapsed(nme))nme=nme.anchor;else{var[,rme]=qf.edges(nme);if(!ame&&Bf.void(x_,{at:rme}))return;var ime=Bf.pointRef(x_,rme);md.delete(x_,{at:nme}),nme=ime.unref()}else Mf.isPath(nme)&&(nme=Bf.start(x_,nme));if(ame||!Bf.void(x_,{at:nme})){var ome=Bf.above(x_,{at:nme,match:jme=>Bf.isInline(x_,jme),mode:"highest",voids:ame});if(ome){var[,lme]=ome;Bf.isEnd(x_,nme,lme)?nme=Bf.after(x_,lme):Bf.isStart(x_,nme,lme)&&(nme=Bf.before(x_,lme))}var sme=Bf.above(x_,{match:jme=>Bf.isBlock(x_,jme),at:nme,voids:ame}),[,cme]=sme,dme=Bf.isStart(x_,nme,cme),ume=Bf.isEnd(x_,nme,cme),fme=dme&&ume,pme=!dme||dme&&ume,hme=!ume,[,bme]=Nf.first({children:eme},[]),[,mme]=Nf.last({children:eme},[]),vme=[],gme=jme=>{var[Vme,Wme]=jme;return Wme.length!==0&&(!!fme||!(pme&&Mf.isAncestor(Wme,bme)&&Sf.isElement(Vme)&&!x_.isVoid(Vme)&&!x_.isInline(Vme))&&!(hme&&Mf.isAncestor(Wme,mme)&&Sf.isElement(Vme)&&!x_.isVoid(Vme)&&!x_.isInline(Vme)))};for(var yme of Nf.nodes({children:eme},{pass:gme}))gme(yme)&&vme.push(yme);var _me=[],$me=[],Cme=[],Sme=!0,Eme=!1;for(var[xme]of vme)Sf.isElement(xme)&&!x_.isInline(xme)?(Sme=!1,Eme=!0,$me.push(xme)):Sme?_me.push(xme):Cme.push(xme);var[Tme]=Bf.nodes(x_,{at:nme,match:jme=>ed.isText(jme)||Bf.isInline(x_,jme),mode:"highest",voids:ame}),[,Ome]=Tme,Rme=Bf.isStart(x_,nme,Ome),Nme=Bf.isEnd(x_,nme,Ome),Ime=Bf.pathRef(x_,ume?Mf.next(cme):cme),Pme=Bf.pathRef(x_,Nme?Mf.next(Ome):Ome),Mme=Bf.pathRef(x_,cme);md.splitNodes(x_,{at:nme,match:jme=>Eme?Bf.isBlock(x_,jme):ed.isText(jme)||Bf.isInline(x_,jme),mode:Eme?"lowest":"highest",voids:ame});var kme=Bf.pathRef(x_,!Rme||Rme&&Nme?Mf.next(Ome):Ome);if(md.insertNodes(x_,_me,{at:kme.current,match:jme=>ed.isText(jme)||Bf.isInline(x_,jme),mode:"highest",voids:ame}),fme&&$me.length&&md.delete(x_,{at:Mme.unref(),voids:ame}),md.insertNodes(x_,$me,{at:Ime.current,match:jme=>Bf.isBlock(x_,jme),mode:"lowest",voids:ame}),md.insertNodes(x_,Cme,{at:Pme.current,match:jme=>ed.isText(jme)||Bf.isInline(x_,jme),mode:"highest",voids:ame}),!$P.at){var Bme;Bme=Cme.length>0?Mf.previous(Pme.current):$me.length>0?Mf.previous(Ime.current):Mf.previous(kme.current);var Dme=Bf.end(x_,Bme);md.select(x_,Dme)}kme.unref(),Ime.unref(),Pme.unref()}}})},insertText(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(x_,()=>{var{voids:tme=!1}=$P,{at:ame=x_.selection}=$P;if(ame){if(Mf.isPath(ame)&&(ame=Bf.range(x_,ame)),qf.isRange(ame))if(qf.isCollapsed(ame))ame=ame.anchor;else{var nme=qf.end(ame);if(!tme&&Bf.void(x_,{at:nme}))return;var rme=Bf.pointRef(x_,nme);md.delete(x_,{at:ame,voids:tme}),ame=rme.unref(),md.setSelection(x_,{anchor:ame,focus:ame})}if(tme||!Bf.void(x_,{at:ame})){var{path:ime,offset:ome}=ame;eme.length>0&&x_.apply({type:"insert_text",path:ime,offset:ome,text:eme})}}})}};function vd(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function yd(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?vd(Object($P),!0).forEach(function(tme){Ic(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):vd(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}var md=yd(yd(yd(yd({},rd),sd),hd),gd),bd="[object Map]",wd="[object Set]",Ed=/^\[object .+?Constructor\]$/,Dd=/^(?:0|[1-9]\d*)$/,Sd="[\\ud800-\\udfff]",xd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Cd="\\ud83c[\\udffb-\\udfff]",Ad="[^\\ud800-\\udfff]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",kd="[\\ud800-\\udbff][\\udc00-\\udfff]",Bd="(?:"+xd+"|"+Cd+")?",Fd="[\\ufe0e\\ufe0f]?"+Bd+("(?:\\u200d(?:"+[Ad,Od,kd].join("|")+")[\\ufe0e\\ufe0f]?"+Bd+")*"),Td="(?:"+[Ad+xd+"?",xd,Od,kd,Sd].join("|")+")",_d$1=RegExp(Cd+"(?="+Cd+")|"+Td+Fd,"g"),Pd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),jd=typeof e=="object"&&e&&e.Object===Object&&e,Nd=typeof self=="object"&&self&&self.Object===Object&&self,Id=jd||Nd||Function("return this")();function Ld(x_,eme){return function($P,tme){for(var ame=-1,nme=$P?$P.length:0,rme=Array(nme);++ame<nme;)rme[ame]=tme($P[ame],ame,$P);return rme}(eme,function($P){return x_[$P]})}function Rd(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme,ame){$P[++eme]=[ame,tme]}),$P}function Md(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme){$P[++eme]=tme}),$P}function zd(x_){return function(eme){return Pd.test(eme)}(x_)?function(eme){return eme.match(_d$1)||[]}(x_):function(eme){return eme.split("")}(x_)}var $d,Hd,Vd=Function.prototype,Ud=Object.prototype,Wd=Id["__core-js_shared__"],Gd=function(){var x_=/[^.]+$/.exec(Wd&&Wd.keys&&Wd.keys.IE_PROTO||"");return x_?"Symbol(src)_1."+x_:""}(),qd=Vd.toString,Kd=Ud.hasOwnProperty,Yd=Ud.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=Id.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Ud.propertyIsEnumerable,ep=($d=Object.keys,Hd=Object,function(x_){return $d(Hd(x_))}),tp=hp(Id,"DataView"),np=hp(Id,"Map"),rp=hp(Id,"Promise"),op=hp(Id,"Set"),ip=hp(Id,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(x_,eme){var $P=mp(x_)||function(rme){return function(ime){return Dp(ime)&&bp(ime)}(rme)&&Kd.call(rme,"callee")&&(!Qd.call(rme,"callee")||Yd.call(rme)=="[object Arguments]")}(x_)?function(rme,ime){for(var ome=-1,lme=Array(rme);++ome<rme;)lme[ome]=ime(ome);return lme}(x_.length,String):[],tme=$P.length,ame=!!tme;for(var nme in x_)!Kd.call(x_,nme)||ame&&(nme=="length"||vp(nme,tme))||$P.push(nme);return $P}function dp(x_){if(!Ep(x_)||function($P){return!!Gd&&Gd in $P}(x_))return!1;var eme=wp(x_)||function($P){var tme=!1;if($P!=null&&typeof $P.toString!="function")try{tme=!!($P+"")}catch{}return tme}(x_)?Xd:Ed;return eme.test(yp(x_))}function pp(x_){if($P=(eme=x_)&&eme.constructor,tme=typeof $P=="function"&&$P.prototype||Ud,eme!==tme)return ep(x_);var eme,$P,tme,ame=[];for(var nme in Object(x_))Kd.call(x_,nme)&&nme!="constructor"&&ame.push(nme);return ame}function hp(x_,eme){var $P=function(tme,ame){return tme==null?void 0:tme[ame]}(x_,eme);return dp($P)?$P:void 0}var gp=function(x_){return Yd.call(x_)};function vp(x_,eme){return!!(eme=eme??9007199254740991)&&(typeof x_=="number"||Dd.test(x_))&&x_>-1&&x_%1==0&&x_<eme}function yp(x_){if(x_!=null){try{return qd.call(x_)}catch{}try{return x_+""}catch{}}return""}(tp&&gp(new tp(new ArrayBuffer(1)))!="[object DataView]"||np&&gp(new np)!=bd||rp&&gp(rp.resolve())!="[object Promise]"||op&&gp(new op)!=wd||ip&&gp(new ip)!="[object WeakMap]")&&(gp=function(x_){var eme=Yd.call(x_),$P=eme=="[object Object]"?x_.constructor:void 0,tme=$P?yp($P):void 0;if(tme)switch(tme){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return wd;case cp:return"[object WeakMap]"}return eme});var mp=Array.isArray;function bp(x_){return x_!=null&&function(eme){return typeof eme=="number"&&eme>-1&&eme%1==0&&eme<=9007199254740991}(x_.length)&&!wp(x_)}function wp(x_){var eme=Ep(x_)?Yd.call(x_):"";return eme=="[object Function]"||eme=="[object GeneratorFunction]"}function Ep(x_){var eme=typeof x_;return!!x_&&(eme=="object"||eme=="function")}function Dp(x_){return!!x_&&typeof x_=="object"}function Sp(x_){return x_?Ld(x_,function(eme){return bp(eme)?fp(eme):pp(eme)}(x_)):[]}var xp=function(x_){if(!x_)return[];if(bp(x_))return function($P){return typeof $P=="string"||!mp($P)&&Dp($P)&&Yd.call($P)=="[object String]"}(x_)?zd(x_):function($P,tme){var ame=-1,nme=$P.length;for(tme||(tme=Array(nme));++ame<nme;)tme[ame]=$P[ame];return tme}(x_);if(Jd&&x_[Jd])return function($P){for(var tme,ame=[];!(tme=$P.next()).done;)ame.push(tme.value);return ame}(x_[Jd]());var eme=gp(x_);return(eme==bd?Rd:eme==wd?Md:Sp)(x_)};function Cp(x_){return x_!==null&&typeof x_=="object"&&"constructor"in x_&&x_.constructor===Object}function Ap(x_,eme){x_===void 0&&(x_={}),eme===void 0&&(eme={}),Object.keys(eme).forEach(function($P){x_[$P]===void 0?x_[$P]=eme[$P]:Cp(eme[$P])&&Cp(x_[$P])&&Object.keys(eme[$P]).length>0&&Ap(x_[$P],eme[$P])})}var Op={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function kp(){var x_=typeof document<"u"?document:{};return Ap(x_,Op),x_}var Bp={document:Op,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(x_){return typeof setTimeout>"u"?(x_(),null):setTimeout(x_,0)},cancelAnimationFrame:function(x_){typeof setTimeout<"u"&&clearTimeout(x_)}};function Fp(){var x_=typeof window<"u"?window:{};return Ap(x_,Bp),x_}function Tp(x_){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(eme){return eme.__proto__||Object.getPrototypeOf(eme)},Tp(x_)}function _p$1(x_,eme){return _p$1=Object.setPrototypeOf||function($P,tme){return $P.__proto__=tme,$P},_p$1(x_,eme)}function Pp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jp(x_,eme,$P){return jp=Pp()?Reflect.construct:function(tme,ame,nme){var rme=[null];rme.push.apply(rme,ame);var ime=new(Function.bind.apply(tme,rme));return nme&&_p$1(ime,nme.prototype),ime},jp.apply(null,arguments)}function Np(x_){var eme=typeof Map=="function"?new Map:void 0;return Np=function($P){if($P===null||!function(ame){return Function.toString.call(ame).indexOf("[native code]")!==-1}($P))return $P;if(typeof $P!="function")throw new TypeError("Super expression must either be null or a function");if(eme!==void 0){if(eme.has($P))return eme.get($P);eme.set($P,tme)}function tme(){return jp($P,arguments,Tp(this).constructor)}return tme.prototype=Object.create($P.prototype,{constructor:{value:tme,enumerable:!1,writable:!0,configurable:!0}}),_p$1(tme,$P)},Np(x_)}var Ip=function(x_){var eme,$P;function tme(ame){var nme,rme,ime;return nme=x_.call.apply(x_,[this].concat(ame))||this,rme=function(ome){if(ome===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ome}(nme),ime=rme.__proto__,Object.defineProperty(rme,"__proto__",{get:function(){return ime},set:function(ome){ime.__proto__=ome}}),nme}return $P=x_,(eme=tme).prototype=Object.create($P.prototype),eme.prototype.constructor=eme,eme.__proto__=$P,tme}(Np(Array));function Lp(x_){x_===void 0&&(x_=[]);var eme=[];return x_.forEach(function($P){Array.isArray($P)?eme.push.apply(eme,Lp($P)):eme.push($P)}),eme}function Rp(x_,eme){return Array.prototype.filter.call(x_,eme)}function Mp(x_,eme){var $P=Fp(),tme=kp(),ame=[];if(!eme&&x_ instanceof Ip)return x_;if(!x_)return new Ip(ame);if(typeof x_=="string"){var nme=x_.trim();if(nme.indexOf("<")>=0&&nme.indexOf(">")>=0){var rme="div";nme.indexOf("<li")===0&&(rme="ul"),nme.indexOf("<tr")===0&&(rme="tbody"),nme.indexOf("<td")!==0&&nme.indexOf("<th")!==0||(rme="tr"),nme.indexOf("<tbody")===0&&(rme="table"),nme.indexOf("<option")===0&&(rme="select");var ime=tme.createElement(rme);ime.innerHTML=nme;for(var ome=0;ome<ime.childNodes.length;ome+=1)ame.push(ime.childNodes[ome])}else ame=function(lme,sme){if(typeof lme!="string")return[lme];for(var cme=[],dme=sme.querySelectorAll(lme),ume=0;ume<dme.length;ume+=1)cme.push(dme[ume]);return cme}(x_.trim(),eme||tme)}else if(x_.nodeType||x_===$P||x_===tme)ame.push(x_);else if(Array.isArray(x_)){if(x_ instanceof Ip)return x_;ame=x_}return new Ip(function(lme){for(var sme=[],cme=0;cme<lme.length;cme+=1)sme.indexOf(lme[cme])===-1&&sme.push(lme[cme]);return sme}(ame))}function zp(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=Lp(eme.map(function(ame){return ame.split(" ")}));return this.forEach(function(ame){var nme;(nme=ame.classList).add.apply(nme,tme)}),this}function $p(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=Lp(eme.map(function(ame){return ame.split(" ")}));return this.forEach(function(ame){var nme;(nme=ame.classList).remove.apply(nme,tme)}),this}function Hp(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=Lp(eme.map(function(ame){return ame.split(" ")}));return Rp(this,function(ame){return tme.filter(function(nme){return ame.classList.contains(nme)}).length>0}).length>0}function Vp(x_,eme){if(arguments.length===1&&typeof x_=="string")return this[0]?this[0].getAttribute(x_):void 0;for(var $P=0;$P<this.length;$P+=1)if(arguments.length===2)this[$P].setAttribute(x_,eme);else for(var tme in x_)this[$P][tme]=x_[tme],this[$P].setAttribute(tme,x_[tme]);return this}function Up(x_){for(var eme=0;eme<this.length;eme+=1)this[eme].removeAttribute(x_);return this}function Wp(){var x_=this[0];if(x_){var eme,$P={};if(x_.dataset)for(var tme in x_.dataset)$P[tme]=x_.dataset[tme];else for(var ame=0;ame<x_.attributes.length;ame+=1){var nme=x_.attributes[ame];nme.name.indexOf("data-")>=0&&($P[eme=nme.name.split("data-")[1],eme.toLowerCase().replace(/-(.)/g,function(ime,ome){return ome.toUpperCase()})]=nme.value)}for(var rme in $P)$P[rme]==="false"?$P[rme]=!1:$P[rme]==="true"?$P[rme]=!0:parseFloat($P[rme])===1*$P[rme]&&($P[rme]*=1);return $P}}function Gp(x_){if(x_===void 0){var eme=this[0];if(!eme)return;if(eme.multiple&&eme.nodeName.toLowerCase()==="select"){for(var $P=[],tme=0;tme<eme.selectedOptions.length;tme+=1)$P.push(eme.selectedOptions[tme].value);return $P}return eme.value}for(var ame=0;ame<this.length;ame+=1){var nme=this[ame];if(Array.isArray(x_)&&nme.multiple&&nme.nodeName.toLowerCase()==="select")for(var rme=0;rme<nme.options.length;rme+=1)nme.options[rme].selected=x_.indexOf(nme.options[rme].value)>=0;else nme.value=x_}return this}function qp(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=eme[0],ame=eme[1],nme=eme[2],rme=eme[3];function ime(pme){var hme=pme.target;if(hme){var bme=pme.target.dom7EventData||[];if(bme.indexOf(pme)<0&&bme.unshift(pme),Mp(hme).is(ame))nme.apply(hme,bme);else for(var mme=Mp(hme).parents(),vme=0;vme<mme.length;vme+=1)Mp(mme[vme]).is(ame)&&nme.apply(mme[vme],bme)}}function ome(pme){var hme=pme&&pme.target&&pme.target.dom7EventData||[];hme.indexOf(pme)<0&&hme.unshift(pme),nme.apply(this,hme)}typeof eme[1]=="function"&&(tme=eme[0],nme=eme[1],rme=eme[2],ame=void 0),rme||(rme=!1);for(var lme,sme=tme.split(" "),cme=0;cme<this.length;cme+=1){var dme=this[cme];if(ame)for(lme=0;lme<sme.length;lme+=1){var ume=sme[lme];dme.dom7LiveListeners||(dme.dom7LiveListeners={}),dme.dom7LiveListeners[ume]||(dme.dom7LiveListeners[ume]=[]),dme.dom7LiveListeners[ume].push({listener:nme,proxyListener:ime}),dme.addEventListener(ume,ime,rme)}else for(lme=0;lme<sme.length;lme+=1){var fme=sme[lme];dme.dom7Listeners||(dme.dom7Listeners={}),dme.dom7Listeners[fme]||(dme.dom7Listeners[fme]=[]),dme.dom7Listeners[fme].push({listener:nme,proxyListener:ome}),dme.addEventListener(fme,ome,rme)}}return this}function Kp(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];var tme=eme[0],ame=eme[1],nme=eme[2],rme=eme[3];typeof eme[1]=="function"&&(tme=eme[0],nme=eme[1],rme=eme[2],ame=void 0),rme||(rme=!1);for(var ime=tme.split(" "),ome=0;ome<ime.length;ome+=1)for(var lme=ime[ome],sme=0;sme<this.length;sme+=1){var cme=this[sme],dme=void 0;if(!ame&&cme.dom7Listeners?dme=cme.dom7Listeners[lme]:ame&&cme.dom7LiveListeners&&(dme=cme.dom7LiveListeners[lme]),dme&&dme.length)for(var ume=dme.length-1;ume>=0;ume-=1){var fme=dme[ume];nme&&fme.listener===nme||nme&&fme.listener&&fme.listener.dom7proxy&&fme.listener.dom7proxy===nme?(cme.removeEventListener(lme,fme.proxyListener,rme),dme.splice(ume,1)):nme||(cme.removeEventListener(lme,fme.proxyListener,rme),dme.splice(ume,1))}}return this}function Yp(){var x_=Fp();return this[0]===x_?x_.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var x_=Fp();return this[0]===x_?x_.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var x_=Fp(),eme=kp(),$P=this[0],tme=$P.getBoundingClientRect(),ame=eme.body,nme=$P.clientTop||ame.clientTop||0,rme=$P.clientLeft||ame.clientLeft||0,ime=$P===x_?x_.scrollY:$P.scrollTop,ome=$P===x_?x_.scrollX:$P.scrollLeft;return{top:tme.top+ime-nme,left:tme.left+ome-rme}}return null}function Jp(){for(var x_=0;x_<this.length;x_+=1)this[x_].style.display="none";return this}function Qp(){for(var x_=Fp(),eme=0;eme<this.length;eme+=1){var $P=this[eme];$P.style.display==="none"&&($P.style.display=""),x_.getComputedStyle($P,null).getPropertyValue("display")==="none"&&($P.style.display="block")}return this}function eh(x_,eme){var $P,tme=Fp();if(arguments.length===1){if(typeof x_!="string"){for($P=0;$P<this.length;$P+=1)for(var ame in x_)this[$P].style[ame]=x_[ame];return this}if(this[0])return tme.getComputedStyle(this[0],null).getPropertyValue(x_)}if(arguments.length===2&&typeof x_=="string"){for($P=0;$P<this.length;$P+=1)this[$P].style[x_]=eme;return this}return this}function th(x_){return x_?(this.forEach(function(eme,$P){x_.apply(eme,[eme,$P])}),this):this}function nh(x_){return Mp(Rp(this,x_))}function rh(x_){if(x_===void 0)return this[0]?this[0].innerHTML:null;for(var eme=0;eme<this.length;eme+=1)this[eme].innerHTML=x_;return this}function oh(x_){if(x_===void 0)return this[0]?this[0].textContent.trim():null;for(var eme=0;eme<this.length;eme+=1)this[eme].textContent=x_;return this}function ih(x_){var eme,$P,tme=Fp(),ame=kp(),nme=this[0];if(!nme||x_===void 0)return!1;if(typeof x_=="string"){if(nme.matches)return nme.matches(x_);if(nme.webkitMatchesSelector)return nme.webkitMatchesSelector(x_);if(nme.msMatchesSelector)return nme.msMatchesSelector(x_);for(eme=Mp(x_),$P=0;$P<eme.length;$P+=1)if(eme[$P]===nme)return!0;return!1}if(x_===ame)return nme===ame;if(x_===tme)return nme===tme;if(x_.nodeType||x_ instanceof Ip){for(eme=x_.nodeType?[x_]:x_,$P=0;$P<eme.length;$P+=1)if(eme[$P]===nme)return!0;return!1}return!1}function ah(){for(var x_,eme=kp(),$P=0;$P<arguments.length;$P+=1){x_=$P<0||arguments.length<=$P?void 0:arguments[$P];for(var tme=0;tme<this.length;tme+=1)if(typeof x_=="string"){var ame=eme.createElement("div");for(ame.innerHTML=x_;ame.firstChild;)this[tme].appendChild(ame.firstChild)}else if(x_ instanceof Ip)for(var nme=0;nme<x_.length;nme+=1)this[tme].appendChild(x_[nme]);else this[tme].appendChild(x_)}return this}function uh(x_){var eme,$P,tme=kp();for(eme=0;eme<this.length;eme+=1)if(typeof x_=="string"){var ame=tme.createElement("div");for(ame.innerHTML=x_,$P=ame.childNodes.length-1;$P>=0;$P-=1)this[eme].insertBefore(ame.childNodes[$P],this[eme].childNodes[0])}else if(x_ instanceof Ip)for($P=0;$P<x_.length;$P+=1)this[eme].insertBefore(x_[$P],this[eme].childNodes[0]);else this[eme].insertBefore(x_,this[eme].childNodes[0]);return this}function sh(x_){for(var eme=[],$P=0;$P<this.length;$P+=1)this[$P].parentNode!==null&&(x_?Mp(this[$P].parentNode).is(x_)&&eme.push(this[$P].parentNode):eme.push(this[$P].parentNode));return Mp(eme)}function lh(x_){for(var eme=[],$P=0;$P<this.length;$P+=1)for(var tme=this[$P].parentNode;tme;)x_?Mp(tme).is(x_)&&eme.push(tme):eme.push(tme),tme=tme.parentNode;return Mp(eme)}function ch(x_){for(var eme=[],$P=0;$P<this.length;$P+=1)for(var tme=this[$P].querySelectorAll(x_),ame=0;ame<tme.length;ame+=1)eme.push(tme[ame]);return Mp(eme)}function fh(x_){for(var eme=[],$P=0;$P<this.length;$P+=1)for(var tme=this[$P].children,ame=0;ame<tme.length;ame+=1)x_&&!Mp(tme[ame]).is(x_)||eme.push(tme[ame]);return Mp(eme)}function dh(){for(var x_=0;x_<this.length;x_+=1)this[x_].parentNode&&this[x_].parentNode.removeChild(this[x_]);return this}function ph(){for(var x_=0;x_<this.length;x_+=1){var eme=this[x_];if(eme.nodeType===1){for(var $P=0;$P<eme.childNodes.length;$P+=1)eme.childNodes[$P].parentNode&&eme.childNodes[$P].parentNode.removeChild(eme.childNodes[$P]);eme.textContent=""}}return this}Mp.fn=Ip.prototype;var hh="resize scroll".split(" ");function gh(x_){return function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];if($P[0]===void 0){for(var ame=0;ame<this.length;ame+=1)hh.indexOf(x_)<0&&(x_ in this[ame]?this[ame][x_]():Mp(this[ame]).trigger(x_));return this}return this.on.apply(this,[x_].concat($P))}}var vh=gh("click"),yh=gh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function wh(x_,eme){for(var $P=-1,tme=x_?x_.length:0;++$P<tme&&eme(x_[$P],$P,x_)!==!1;);return x_}var Eh=Object.prototype,Dh=Eh.hasOwnProperty,Sh=Eh.toString,xh=Eh.propertyIsEnumerable,Ch=function(x_,eme){return function($P){return x_(eme($P))}}(Object.keys,Object);function Ah(x_,eme){var $P=Ph(x_)||function(rme){return function(ime){return function(ome){return!!ome&&typeof ome=="object"}(ime)&&jh(ime)}(rme)&&Dh.call(rme,"callee")&&(!xh.call(rme,"callee")||Sh.call(rme)=="[object Arguments]")}(x_)?function(rme,ime){for(var ome=-1,lme=Array(rme);++ome<rme;)lme[ome]=ime(ome);return lme}(x_.length,String):[],tme=$P.length,ame=!!tme;for(var nme in x_)!Dh.call(x_,nme)||ame&&(nme=="length"||_h$1(nme,tme))||$P.push(nme);return $P}var Oh,Bh=(Oh=function(x_,eme){return x_&&Fh(x_,eme,Nh)},function(x_,eme){if(x_==null)return x_;if(!jh(x_))return Oh(x_,eme);for(var $P=x_.length,tme=-1,ame=Object(x_);++tme<$P&&eme(ame[tme],tme,ame)!==!1;);return x_}),Fh=function(x_){return function(eme,$P,tme){for(var ame=-1,nme=Object(eme),rme=tme(eme),ime=rme.length;ime--;){var ome=rme[++ame];if($P(nme[ome],ome,nme)===!1)break}return eme}}();function Th(x_){if($P=(eme=x_)&&eme.constructor,tme=typeof $P=="function"&&$P.prototype||Eh,eme!==tme)return Ch(x_);var eme,$P,tme,ame=[];for(var nme in Object(x_))Dh.call(x_,nme)&&nme!="constructor"&&ame.push(nme);return ame}function _h$1(x_,eme){return!!(eme=eme??9007199254740991)&&(typeof x_=="number"||bh.test(x_))&&x_>-1&&x_%1==0&&x_<eme}var Ph=Array.isArray;function jh(x_){return x_!=null&&function(eme){return typeof eme=="number"&&eme>-1&&eme%1==0&&eme<=9007199254740991}(x_.length)&&!function(eme){var $P=function(tme){var ame=typeof tme;return!!tme&&(ame=="object"||ame=="function")}(eme)?Sh.call(eme):"";return $P=="[object Function]"||$P==mh}(x_)}function Nh(x_){return jh(x_)?Ah(x_):Th(x_)}function Ih(x_){return x_}var Lh=function(x_,eme){return(Ph(x_)?wh:Bh)(x_,typeof eme=="function"?eme:Ih)};let Rh=(x_=21)=>{let eme="",$P=crypto.getRandomValues(new Uint8Array(x_));for(;x_--;){let tme=63&$P[x_];eme+=tme<36?tme.toString(36):tme<62?(tme-26).toString(36).toUpperCase():tme<63?"_":"-"}return eme};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,$h=/^0b[01]+$/i,Hh=/^0o[0-7]+$/i,Vh=parseInt,Uh=typeof e=="object"&&e&&e.Object===Object&&e,Wh=typeof self=="object"&&self&&self.Object===Object&&self,Gh=Uh||Wh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Gh.Date.now()};function Zh(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme=0,sme=!1,cme=!1,dme=!0;if(typeof x_!="function")throw new TypeError("Expected a function");function ume(vme){var gme=tme,yme=ame;return tme=ame=void 0,lme=vme,rme=x_.apply(yme,gme)}function fme(vme){return lme=vme,ime=setTimeout(hme,eme),sme?ume(vme):rme}function pme(vme){var gme=vme-ome;return ome===void 0||gme>=eme||gme<0||cme&&vme-lme>=nme}function hme(){var vme=Xh();if(pme(vme))return bme(vme);ime=setTimeout(hme,function(gme){var yme=eme-(gme-ome);return cme?Yh(yme,nme-(gme-lme)):yme}(vme))}function bme(vme){return ime=void 0,dme&&tme?ume(vme):(tme=ame=void 0,rme)}function mme(){var vme=Xh(),gme=pme(vme);if(tme=arguments,ame=this,ome=vme,gme){if(ime===void 0)return fme(ome);if(cme)return ime=setTimeout(hme,eme),ume(ome)}return ime===void 0&&(ime=setTimeout(hme,eme)),rme}return eme=Qh(eme)||0,Jh($P)&&(sme=!!$P.leading,nme=(cme="maxWait"in $P)?Kh(Qh($P.maxWait)||0,eme):nme,dme="trailing"in $P?!!$P.trailing:dme),mme.cancel=function(){ime!==void 0&&clearTimeout(ime),lme=0,tme=ome=ame=ime=void 0},mme.flush=function(){return ime===void 0?rme:bme(Xh())},mme}function Jh(x_){var eme=typeof x_;return!!x_&&(eme=="object"||eme=="function")}function Qh(x_){if(typeof x_=="number")return x_;if(function(tme){return typeof tme=="symbol"||function(ame){return!!ame&&typeof ame=="object"}(tme)&&qh.call(tme)=="[object Symbol]"}(x_))return NaN;if(Jh(x_)){var eme=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=Jh(eme)?eme+"":eme}if(typeof x_!="string")return x_===0?x_:+x_;x_=x_.replace(Mh,"");var $P=$h.test(x_);return $P||Hh.test(x_)?Vh(x_.slice(2),$P?2:8):zh.test(x_)?NaN:+x_}var eg=function(x_,eme,$P){var tme=!0,ame=!0;if(typeof x_!="function")throw new TypeError("Expected a function");return Jh($P)&&(tme="leading"in $P?!!$P.leading:tme,ame="trailing"in $P?!!$P.trailing:ame),Zh(x_,eme,{leading:tme,maxWait:eme,trailing:ame})};const tg={createElement:function(x_,eme){return document.createElement(x_,eme)},createElementNS:function(x_,eme,$P){return document.createElementNS(x_,eme,$P)},createTextNode:function(x_){return document.createTextNode(x_)},createComment:function(x_){return document.createComment(x_)},insertBefore:function(x_,eme,$P){x_.insertBefore(eme,$P)},removeChild:function(x_,eme){x_.removeChild(eme)},appendChild:function(x_,eme){x_.appendChild(eme)},parentNode:function(x_){return x_.parentNode},nextSibling:function(x_){return x_.nextSibling},tagName:function(x_){return x_.tagName},setTextContent:function(x_,eme){x_.textContent=eme},getTextContent:function(x_){return x_.textContent},isElement:function(x_){return x_.nodeType===1},isText:function(x_){return x_.nodeType===3},isComment:function(x_){return x_.nodeType===8}};function ng(x_,eme,$P,tme,ame){return{sel:x_,data:eme,children:$P,text:tme,elm:ame,key:eme===void 0?void 0:eme.key}}const rg=Array.isArray;function og(x_){return typeof x_=="string"||typeof x_=="number"||x_ instanceof String||x_ instanceof Number}function ig(x_){return x_===void 0}function ag(x_){return x_!==void 0}const ug=ng("",{},[],void 0,void 0);function sg(x_,eme){var $P,tme;const ame=x_.key===eme.key,nme=(($P=x_.data)===null||$P===void 0?void 0:$P.is)===((tme=eme.data)===null||tme===void 0?void 0:tme.is);return x_.sel===eme.sel&&ame&&nme}function lg(x_,eme,$P){var tme;const ame={};for(let nme=eme;nme<=$P;++nme){const rme=(tme=x_[nme])===null||tme===void 0?void 0:tme.key;rme!==void 0&&(ame[rme]=nme)}return ame}const cg=["create","update","remove","destroy","pre","post"];function fg(x_,eme){const $P={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},tme=tg;for(const cme of cg)for(const dme of x_){const ume=dme[cme];ume!==void 0&&$P[cme].push(ume)}function ame(cme){const dme=cme.id?"#"+cme.id:"",ume=cme.getAttribute("class"),fme=ume?"."+ume.split(" ").join("."):"";return ng(tme.tagName(cme).toLowerCase()+dme+fme,{},[],void 0,cme)}function nme(cme,dme){return function(){if(--dme==0){const ume=tme.parentNode(cme);tme.removeChild(ume,cme)}}}function rme(cme,dme){var ume,fme;let pme,hme=cme.data;if(hme!==void 0){const vme=(ume=hme.hook)===null||ume===void 0?void 0:ume.init;ag(vme)&&(vme(cme),hme=cme.data)}const bme=cme.children,mme=cme.sel;if(mme==="!")ig(cme.text)&&(cme.text=""),cme.elm=tme.createComment(cme.text);else if(mme!==void 0){const vme=mme.indexOf("#"),gme=mme.indexOf(".",vme),yme=vme>0?vme:mme.length,_me=gme>0?gme:mme.length,$me=vme!==-1||gme!==-1?mme.slice(0,Math.min(yme,_me)):mme,Cme=cme.elm=ag(hme)&&ag(pme=hme.ns)?tme.createElementNS(pme,$me,hme):tme.createElement($me,hme);for(yme<_me&&Cme.setAttribute("id",mme.slice(yme+1,_me)),gme>0&&Cme.setAttribute("class",mme.slice(_me+1).replace(/\./g," ")),pme=0;pme<$P.create.length;++pme)$P.create[pme](ug,cme);if(rg(bme))for(pme=0;pme<bme.length;++pme){const Eme=bme[pme];Eme!=null&&tme.appendChild(Cme,rme(Eme,dme))}else og(cme.text)&&tme.appendChild(Cme,tme.createTextNode(cme.text));const Sme=cme.data.hook;ag(Sme)&&((fme=Sme.create)===null||fme===void 0||fme.call(Sme,ug,cme),Sme.insert&&dme.push(cme))}else cme.elm=tme.createTextNode(cme.text);return cme.elm}function ime(cme,dme,ume,fme,pme,hme){for(;fme<=pme;++fme){const bme=ume[fme];bme!=null&&tme.insertBefore(cme,rme(bme,hme),dme)}}function ome(cme){var dme,ume;const fme=cme.data;if(fme!==void 0){(ume=(dme=fme==null?void 0:fme.hook)===null||dme===void 0?void 0:dme.destroy)===null||ume===void 0||ume.call(dme,cme);for(let pme=0;pme<$P.destroy.length;++pme)$P.destroy[pme](cme);if(cme.children!==void 0)for(let pme=0;pme<cme.children.length;++pme){const hme=cme.children[pme];hme!=null&&typeof hme!="string"&&ome(hme)}}}function lme(cme,dme,ume,fme){for(var pme,hme;ume<=fme;++ume){let bme,mme;const vme=dme[ume];if(vme!=null)if(ag(vme.sel)){ome(vme),bme=$P.remove.length+1,mme=nme(vme.elm,bme);for(let yme=0;yme<$P.remove.length;++yme)$P.remove[yme](vme,mme);const gme=(hme=(pme=vme==null?void 0:vme.data)===null||pme===void 0?void 0:pme.hook)===null||hme===void 0?void 0:hme.remove;ag(gme)?gme(vme,mme):mme()}else tme.removeChild(cme,vme.elm)}}function sme(cme,dme,ume){var fme,pme,hme,bme,mme;const vme=(fme=dme.data)===null||fme===void 0?void 0:fme.hook;(pme=vme==null?void 0:vme.prepatch)===null||pme===void 0||pme.call(vme,cme,dme);const gme=dme.elm=cme.elm,yme=cme.children,_me=dme.children;if(cme!==dme){if(dme.data!==void 0){for(let $me=0;$me<$P.update.length;++$me)$P.update[$me](cme,dme);(bme=(hme=dme.data.hook)===null||hme===void 0?void 0:hme.update)===null||bme===void 0||bme.call(hme,cme,dme)}ig(dme.text)?ag(yme)&&ag(_me)?yme!==_me&&function($me,Cme,Sme,Eme){let xme,Tme,Ome,Rme,Nme=0,Ime=0,Pme=Cme.length-1,Mme=Cme[0],kme=Cme[Pme],Bme=Sme.length-1,Dme=Sme[0],jme=Sme[Bme];for(;Nme<=Pme&&Ime<=Bme;)Mme==null?Mme=Cme[++Nme]:kme==null?kme=Cme[--Pme]:Dme==null?Dme=Sme[++Ime]:jme==null?jme=Sme[--Bme]:sg(Mme,Dme)?(sme(Mme,Dme,Eme),Mme=Cme[++Nme],Dme=Sme[++Ime]):sg(kme,jme)?(sme(kme,jme,Eme),kme=Cme[--Pme],jme=Sme[--Bme]):sg(Mme,jme)?(sme(Mme,jme,Eme),tme.insertBefore($me,Mme.elm,tme.nextSibling(kme.elm)),Mme=Cme[++Nme],jme=Sme[--Bme]):sg(kme,Dme)?(sme(kme,Dme,Eme),tme.insertBefore($me,kme.elm,Mme.elm),kme=Cme[--Pme],Dme=Sme[++Ime]):(xme===void 0&&(xme=lg(Cme,Nme,Pme)),Tme=xme[Dme.key],ig(Tme)?tme.insertBefore($me,rme(Dme,Eme),Mme.elm):(Ome=Cme[Tme],Ome.sel!==Dme.sel?tme.insertBefore($me,rme(Dme,Eme),Mme.elm):(sme(Ome,Dme,Eme),Cme[Tme]=void 0,tme.insertBefore($me,Ome.elm,Mme.elm))),Dme=Sme[++Ime]);(Nme<=Pme||Ime<=Bme)&&(Nme>Pme?(Rme=Sme[Bme+1]==null?null:Sme[Bme+1].elm,ime($me,Rme,Sme,Ime,Bme,Eme)):lme($me,Cme,Nme,Pme))}(gme,yme,_me,ume):ag(_me)?(ag(cme.text)&&tme.setTextContent(gme,""),ime(gme,null,_me,0,_me.length-1,ume)):ag(yme)?lme(gme,yme,0,yme.length-1):ag(cme.text)&&tme.setTextContent(gme,""):cme.text!==dme.text&&(ag(yme)&&lme(gme,yme,0,yme.length-1),tme.setTextContent(gme,dme.text)),(mme=vme==null?void 0:vme.postpatch)===null||mme===void 0||mme.call(vme,cme,dme)}}return function(cme,dme){let ume,fme,pme;const hme=[];for(ume=0;ume<$P.pre.length;++ume)$P.pre[ume]();for(function(bme){return bme.sel!==void 0}(cme)||(cme=ame(cme)),sg(cme,dme)?sme(cme,dme,hme):(fme=cme.elm,pme=tme.parentNode(fme),rme(dme,hme),pme!==null&&(tme.insertBefore(pme,dme.elm,tme.nextSibling(fme)),lme(pme,[cme],0,0))),ume=0;ume<hme.length;++ume)hme[ume].data.hook.insert(hme[ume]);for(ume=0;ume<$P.post.length;++ume)$P.post[ume]();return dme}}function dg(x_,eme,$P){if(x_.ns="http://www.w3.org/2000/svg",$P!=="foreignObject"&&eme!==void 0)for(let tme=0;tme<eme.length;++tme){const ame=eme[tme].data;ame!==void 0&&dg(ame,eme[tme].children,eme[tme].sel)}}function pg(x_,eme,$P){let tme,ame,nme,rme={};if($P!==void 0?(eme!==null&&(rme=eme),rg($P)?tme=$P:og($P)?ame=$P.toString():$P&&$P.sel&&(tme=[$P])):eme!=null&&(rg(eme)?tme=eme:og(eme)?ame=eme.toString():eme&&eme.sel?tme=[eme]:rme=eme),tme!==void 0)for(nme=0;nme<tme.length;++nme)og(tme[nme])&&(tme[nme]=ng(void 0,void 0,void 0,tme[nme],void 0));return x_[0]!=="s"||x_[1]!=="v"||x_[2]!=="g"||x_.length!==3&&x_[3]!=="."&&x_[3]!=="#"||dg(rme,tme,x_),ng(x_,rme,tme,ame,void 0)}function hg(x_,eme){let $P;const tme=eme.elm;let ame=x_.data.attrs,nme=eme.data.attrs;if((ame||nme)&&ame!==nme){for($P in ame=ame||{},nme=nme||{},nme){const rme=nme[$P];ame[$P]!==rme&&(rme===!0?tme.setAttribute($P,""):rme===!1?tme.removeAttribute($P):$P.charCodeAt(0)!==120?tme.setAttribute($P,rme):$P.charCodeAt(3)===58?tme.setAttributeNS("http://www.w3.org/XML/1998/namespace",$P,rme):$P.charCodeAt(5)===58?tme.setAttributeNS("http://www.w3.org/1999/xlink",$P,rme):tme.setAttribute($P,rme))}for($P in ame)$P in nme||tme.removeAttribute($P)}}const gg={create:hg,update:hg};function vg(x_,eme){let $P,tme;const ame=eme.elm;let nme=x_.data.class,rme=eme.data.class;if((nme||rme)&&nme!==rme){for(tme in nme=nme||{},rme=rme||{},nme)nme[tme]&&!Object.prototype.hasOwnProperty.call(rme,tme)&&ame.classList.remove(tme);for(tme in rme)$P=rme[tme],$P!==nme[tme]&&ame.classList[$P?"add":"remove"](tme)}}const yg={create:vg,update:vg},mg=/[A-Z]/g;function bg(x_,eme){const $P=eme.elm;let tme,ame=x_.data.dataset,nme=eme.data.dataset;if(!ame&&!nme||ame===nme)return;ame=ame||{},nme=nme||{};const rme=$P.dataset;for(tme in ame)nme[tme]||(rme?tme in rme&&delete rme[tme]:$P.removeAttribute("data-"+tme.replace(mg,"-$&").toLowerCase()));for(tme in nme)ame[tme]!==nme[tme]&&(rme?rme[tme]=nme[tme]:$P.setAttribute("data-"+tme.replace(mg,"-$&").toLowerCase(),nme[tme]))}const wg={create:bg,update:bg};function Eg(x_,eme,$P){if(typeof x_=="function")x_.call(eme,$P,eme);else if(typeof x_=="object")for(let tme=0;tme<x_.length;tme++)Eg(x_[tme],eme,$P)}function Dg(x_,eme){const $P=x_.type,tme=eme.data.on;tme&&tme[$P]&&Eg(tme[$P],eme,x_)}function Sg(x_,eme){const $P=x_.data.on,tme=x_.listener,ame=x_.elm,nme=eme&&eme.data.on,rme=eme&&eme.elm;let ime;if($P!==nme){if($P&&tme)if(nme)for(ime in $P)nme[ime]||ame.removeEventListener(ime,tme,!1);else for(ime in $P)ame.removeEventListener(ime,tme,!1);if(nme){const ome=eme.listener=x_.listener||function lme(sme){Dg(sme,lme.vnode)};if(ome.vnode=eme,$P)for(ime in nme)$P[ime]||rme.addEventListener(ime,ome,!1);else for(ime in nme)rme.addEventListener(ime,ome,!1)}}}const xg={create:Sg,update:Sg,destroy:Sg};function Cg(x_,eme){let $P,tme,ame;const nme=eme.elm;let rme=x_.data.props,ime=eme.data.props;if((rme||ime)&&rme!==ime)for($P in rme=rme||{},ime=ime||{},ime)tme=ime[$P],ame=rme[$P],ame===tme||$P==="value"&&nme[$P]===tme||(nme[$P]=tme)}const Ag={create:Cg,update:Cg},Og=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let kg=!1;function Bg(x_,eme,$P){(function(tme){Og(function(){Og(tme)})})(function(){x_[eme]=$P})}function Fg(x_,eme){let $P,tme;const ame=eme.elm;let nme=x_.data.style,rme=eme.data.style;if(!nme&&!rme||nme===rme)return;nme=nme||{},rme=rme||{};const ime="delayed"in nme;for(tme in nme)rme[tme]||(tme[0]==="-"&&tme[1]==="-"?ame.style.removeProperty(tme):ame.style[tme]="");for(tme in rme)if($P=rme[tme],tme==="delayed"&&rme.delayed)for(const ome in rme.delayed)$P=rme.delayed[ome],ime&&$P===nme.delayed[ome]||Bg(ame.style,ome,$P);else tme!=="remove"&&$P!==nme[tme]&&(tme[0]==="-"&&tme[1]==="-"?ame.style.setProperty(tme,$P):ame.style[tme]=$P)}const Tg={pre:function(){kg=!1},create:Fg,update:Fg,destroy:function(x_){let eme,$P;const tme=x_.elm,ame=x_.data.style;if(ame&&(eme=ame.destroy))for($P in eme)tme.style[$P]=eme[$P]},remove:function(x_,eme){const $P=x_.data.style;if(!$P||!$P.remove)return void eme();let tme;kg||(x_.elm.offsetLeft,kg=!0);const ame=x_.elm;let nme=0;const rme=$P.remove;let ime=0;const ome=[];for(tme in rme)ome.push(tme),ame.style[tme]=rme[tme];const lme=getComputedStyle(ame)["transition-property"].split(", ");for(;nme<lme.length;++nme)ome.indexOf(lme[nme])!==-1&&ime++;ame.addEventListener("transitionend",function(sme){sme.target===ame&&--ime,ime===0&&eme()})}};function _g$25(x_,eme){for(const $P of x_)$P!=null&&$P!==!1&&$P!==""&&(Array.isArray($P)?_g$25($P,eme):typeof $P=="string"||typeof $P=="number"||typeof $P=="boolean"?eme.push(ng(void 0,void 0,void 0,String($P),void 0)):eme.push($P));return eme}function Pg(x_,eme,...$P){const tme=_g$25($P,[]);return typeof x_=="function"?x_(eme,tme):tme.length===1&&!tme[0].sel&&tme[0].text?pg(x_,eme,tme[0].text):pg(x_,eme,tme)}Pg||(Pg={});var jg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ng=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ig="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lg="[\\ud800-\\udfff]",Rg="["+Ig+"]",Mg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zg="\\d+",$g="[\\u2700-\\u27bf]",Hg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vg="[^\\ud800-\\udfff"+Ig+zg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ug="\\ud83c[\\udffb-\\udfff]",Wg="[^\\ud800-\\udfff]",Gg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",Kg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yg="(?:"+Hg+"|"+Vg+")",Xg="(?:"+Kg+"|"+Vg+")",Zg="(?:"+Mg+"|"+Ug+")?",Jg="[\\ufe0e\\ufe0f]?"+Zg+("(?:\\u200d(?:"+[Wg,Gg,qg].join("|")+")[\\ufe0e\\ufe0f]?"+Zg+")*"),Qg="(?:"+[$g,Gg,qg].join("|")+")"+Jg,ev="(?:"+[Wg+Mg+"?",Mg,Gg,qg,Lg].join("|")+")",tv=RegExp("['’]","g"),nv=RegExp(Mg,"g"),rv=RegExp(Ug+"(?="+Ug+")|"+ev+Jg,"g"),ov=RegExp([Kg+"?"+Hg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Rg,Kg,"$"].join("|")+")",Xg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Rg,Kg+Yg,"$"].join("|")+")",Kg+"?"+Yg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zg,Qg].join("|"),"g"),iv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),av=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uv=typeof e=="object"&&e&&e.Object===Object&&e,sv=typeof self=="object"&&self&&self.Object===Object&&self,lv=uv||sv||Function("return this")(),cv,fv=(cv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"ss"},function(x_){return cv==null?void 0:cv[x_]});function dv(x_){return iv.test(x_)}function pv(x_){return dv(x_)?function(eme){return eme.match(rv)||[]}(x_):function(eme){return eme.split("")}(x_)}var hv=Object.prototype.toString,gv=lv.Symbol,vv=gv?gv.prototype:void 0,yv=vv?vv.toString:void 0;function mv(x_){if(typeof x_=="string")return x_;if(function($P){return typeof $P=="symbol"||function(tme){return!!tme&&typeof tme=="object"}($P)&&hv.call($P)=="[object Symbol]"}(x_))return yv?yv.call(x_):"";var eme=x_+"";return eme=="0"&&1/x_==-1/0?"-0":eme}function bv(x_,eme,$P){var tme=x_.length;return $P=$P===void 0?tme:$P,!eme&&$P>=tme?x_:function(ame,nme,rme){var ime=-1,ome=ame.length;nme<0&&(nme=-nme>ome?0:ome+nme),(rme=rme>ome?ome:rme)<0&&(rme+=ome),ome=nme>rme?0:rme-nme>>>0,nme>>>=0;for(var lme=Array(ome);++ime<ome;)lme[ime]=ame[ime+nme];return lme}(x_,eme,$P)}function wv(x_){return x_==null?"":mv(x_)}var Ev,Dv=(Ev=function(x_,eme,$P){return eme=eme.toLowerCase(),x_+($P?xv(wv(eme).toLowerCase()):eme)},function(x_){return function(eme,$P,tme,ame){var nme=-1,rme=eme?eme.length:0;for(ame;++nme<rme;)tme=$P(tme,eme[nme],nme,eme);return tme}(function(eme,$P,tme){return eme=wv(eme),($P=$P)===void 0?function(ame){return av.test(ame)}(eme)?function(ame){return ame.match(ov)||[]}(eme):function(ame){return ame.match(jg)||[]}(eme):eme.match($P)||[]}(function(eme){return(eme=wv(eme))&&eme.replace(Ng,fv).replace(nv,"")}(x_).replace(tv,"")),Ev,"")}),Sv,xv=(Sv="toUpperCase",function(x_){var eme=dv(x_=wv(x_))?pv(x_):void 0,$P=eme?eme[0]:x_.charAt(0),tme=eme?bv(eme,1).join(""):x_.slice(1);return $P[Sv]()+tme});for(var Cv=Dv,Av=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ov={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Av?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Bv={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Fv=1;Fv<20;Fv++)Bv["f"+Fv]=111+Fv;function Tv(x_,eme,$P){eme&&!("byKey"in eme)&&($P=eme,eme=null),Array.isArray(x_)||(x_=[x_]);var tme=x_.map(function(nme){return function(rme,ime){var ome=ime&&ime.byKey,lme={},sme=(rme=rme.replace("++","+add")).split("+"),cme=sme.length;for(var dme in Ov)lme[Ov[dme]]=!1;var ume=!0,fme=!1,pme=void 0;try{for(var hme,bme=sme[Symbol.iterator]();!(ume=(hme=bme.next()).done);ume=!0){var mme=hme.value,vme=mme.endsWith("?")&&mme.length>1;vme&&(mme=mme.slice(0,-1));var gme=Pv(mme),yme=Ov[gme];if(mme.length>1&&!yme&&!kv[mme]&&!Bv[gme])throw new TypeError('Unknown modifier: "'+mme+'"');cme!==1&&yme||(ome?lme.key=gme:lme.which=_v$1(mme)),yme&&(lme[yme]=!vme||null)}}catch(_me){fme=!0,pme=_me}finally{try{!ume&&bme.return&&bme.return()}finally{if(fme)throw pme}}return lme}(nme,eme)}),ame=function(nme){return tme.some(function(rme){return function(ime,ome){for(var lme in ime){var sme=ime[lme],cme=void 0;if(sme!=null&&((cme=lme==="key"&&ome.key!=null?ome.key.toLowerCase():lme==="which"?sme===91&&ome.which===93?91:ome.which:ome[lme])!=null||sme!==!1)&&cme!==sme)return!1}return!0}(rme,nme)})};return $P==null?ame:ame($P)}function _v$1(x_){return x_=Pv(x_),Bv[x_]||x_.toUpperCase().charCodeAt(0)}function Pv(x_){return x_=x_.toLowerCase(),x_=kv[x_]||x_}var jv=Tv,Nv=function(x_,eme){return Tv(x_,{byKey:!0},eme)},Iv=/^\s+|\s+$/g,Lv=/^[-+]0x[0-9a-f]+$/i,Rv=/^0b[01]+$/i,Mv=/^0o[0-7]+$/i,zv=parseInt,$v=typeof e=="object"&&e&&e.Object===Object&&e,Hv=typeof self=="object"&&self&&self.Object===Object&&self,Vv=$v||Hv||Function("return this")(),Uv=Object.prototype.toString,Wv=Math.max,Gv=Math.min,qv=function(){return Vv.Date.now()};function Kv(x_){var eme=typeof x_;return!!x_&&(eme=="object"||eme=="function")}function Yv(x_){if(typeof x_=="number")return x_;if(function(tme){return typeof tme=="symbol"||function(ame){return!!ame&&typeof ame=="object"}(tme)&&Uv.call(tme)=="[object Symbol]"}(x_))return NaN;if(Kv(x_)){var eme=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=Kv(eme)?eme+"":eme}if(typeof x_!="string")return x_===0?x_:+x_;x_=x_.replace(Iv,"");var $P=Rv.test(x_);return $P||Mv.test(x_)?zv(x_.slice(2),$P?2:8):Lv.test(x_)?NaN:+x_}var Xv,Zv=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme=0,sme=!1,cme=!1,dme=!0;if(typeof x_!="function")throw new TypeError("Expected a function");function ume(vme){var gme=tme,yme=ame;return tme=ame=void 0,lme=vme,rme=x_.apply(yme,gme)}function fme(vme){return lme=vme,ime=setTimeout(hme,eme),sme?ume(vme):rme}function pme(vme){var gme=vme-ome;return ome===void 0||gme>=eme||gme<0||cme&&vme-lme>=nme}function hme(){var vme=qv();if(pme(vme))return bme(vme);ime=setTimeout(hme,function(gme){var yme=eme-(gme-ome);return cme?Gv(yme,nme-(gme-lme)):yme}(vme))}function bme(vme){return ime=void 0,dme&&tme?ume(vme):(tme=ame=void 0,rme)}function mme(){var vme=qv(),gme=pme(vme);if(tme=arguments,ame=this,ome=vme,gme){if(ime===void 0)return fme(ome);if(cme)return ime=setTimeout(hme,eme),ume(ome)}return ime===void 0&&(ime=setTimeout(hme,eme)),rme}return eme=Yv(eme)||0,Kv($P)&&(sme=!!$P.leading,nme=(cme="maxWait"in $P)?Wv(Yv($P.maxWait)||0,eme):nme,dme="trailing"in $P?!!$P.trailing:dme),mme.cancel=function(){ime!==void 0&&clearTimeout(ime),lme=0,tme=ome=ame=ime=void 0},mme.flush=function(){return ime===void 0?rme:bme(qv())},mme},Jv=n(function(x_,eme){var $P="__lodash_hash_undefined__",tme=9007199254740991,ame="[object Arguments]",nme="[object Boolean]",rme="[object Date]",ime="[object Function]",ome="[object GeneratorFunction]",lme="[object Map]",sme="[object Number]",cme="[object Object]",dme="[object Promise]",ume="[object RegExp]",fme="[object Set]",pme="[object String]",hme="[object Symbol]",bme="[object WeakMap]",mme="[object ArrayBuffer]",vme="[object DataView]",gme="[object Float32Array]",yme="[object Float64Array]",_me="[object Int8Array]",$me="[object Int16Array]",Cme="[object Int32Array]",Sme="[object Uint8Array]",Eme="[object Uint8ClampedArray]",xme="[object Uint16Array]",Tme="[object Uint32Array]",Ome=/\w*$/,Rme=/^\[object .+?Constructor\]$/,Nme=/^(?:0|[1-9]\d*)$/,Ime={};Ime[ame]=Ime["[object Array]"]=Ime[mme]=Ime[vme]=Ime[nme]=Ime[rme]=Ime[gme]=Ime[yme]=Ime[_me]=Ime[$me]=Ime[Cme]=Ime[lme]=Ime[sme]=Ime[cme]=Ime[ume]=Ime[fme]=Ime[pme]=Ime[hme]=Ime[Sme]=Ime[Eme]=Ime[xme]=Ime[Tme]=!0,Ime["[object Error]"]=Ime[ime]=Ime[bme]=!1;var Pme=typeof e=="object"&&e&&e.Object===Object&&e,Mme=typeof self=="object"&&self&&self.Object===Object&&self,kme=Pme||Mme||Function("return this")(),Bme=eme&&!eme.nodeType&&eme,Dme=Bme&&x_&&!x_.nodeType&&x_,jme=Dme&&Dme.exports===Bme;function Vme(gbe,Tbe){return gbe.set(Tbe[0],Tbe[1]),gbe}function Wme(gbe,Tbe){return gbe.add(Tbe),gbe}function Lme(gbe,Tbe,Vbe,Ube){var x0e=-1,I0e=gbe?gbe.length:0;for(Ube;++x0e<I0e;)Vbe=Tbe(Vbe,gbe[x0e],x0e,gbe);return Vbe}function zme(gbe){var Tbe=!1;if(gbe!=null&&typeof gbe.toString!="function")try{Tbe=!!(gbe+"")}catch{}return Tbe}function Ume(gbe){var Tbe=-1,Vbe=Array(gbe.size);return gbe.forEach(function(Ube,x0e){Vbe[++Tbe]=[x0e,Ube]}),Vbe}function Gme(gbe,Tbe){return function(Vbe){return gbe(Tbe(Vbe))}}function Jme(gbe){var Tbe=-1,Vbe=Array(gbe.size);return gbe.forEach(function(Ube){Vbe[++Tbe]=Ube}),Vbe}var Yme=Array.prototype,Qme=Function.prototype,Xme=Object.prototype,Kme=kme["__core-js_shared__"],Zme=function(){var gbe=/[^.]+$/.exec(Kme&&Kme.keys&&Kme.keys.IE_PROTO||"");return gbe?"Symbol(src)_1."+gbe:""}(),nbe=Qme.toString,lbe=Xme.hasOwnProperty,ibe=Xme.toString,abe=RegExp("^"+nbe.call(lbe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),obe=jme?kme.Buffer:void 0,hbe=kme.Symbol,ube=kme.Uint8Array,mbe=Gme(Object.getPrototypeOf,Object),pbe=Object.create,_be=Xme.propertyIsEnumerable,Sbe=Yme.splice,vbe=Object.getOwnPropertySymbols,kbe=obe?obe.isBuffer:void 0,Rbe=Gme(Object.keys,Object),Pbe=g0e(kme,"DataView"),Mbe=g0e(kme,"Map"),Kbe=g0e(kme,"Promise"),Qbe=g0e(kme,"Set"),Gbe=g0e(kme,"WeakMap"),Hbe=g0e(Object,"create"),d0e=w0e(Pbe),p0e=w0e(Mbe),S0e=w0e(Kbe),P0e=w0e(Qbe),e0e=w0e(Gbe),_0e=hbe?hbe.prototype:void 0,m0e=_0e?_0e.valueOf:void 0;function Ybe(gbe){var Tbe=-1,Vbe=gbe?gbe.length:0;for(this.clear();++Tbe<Vbe;){var Ube=gbe[Tbe];this.set(Ube[0],Ube[1])}}function Jbe(gbe){var Tbe=-1,Vbe=gbe?gbe.length:0;for(this.clear();++Tbe<Vbe;){var Ube=gbe[Tbe];this.set(Ube[0],Ube[1])}}function c0e(gbe){var Tbe=-1,Vbe=gbe?gbe.length:0;for(this.clear();++Tbe<Vbe;){var Ube=gbe[Tbe];this.set(Ube[0],Ube[1])}}function zbe(gbe){this.__data__=new Jbe(gbe)}function R0e(gbe,Tbe){var Vbe=$be(gbe)||function(j0e){return function(O0e){return function(G0e){return!!G0e&&typeof G0e=="object"}(O0e)&&Ibe(O0e)}(j0e)&&lbe.call(j0e,"callee")&&(!_be.call(j0e,"callee")||ibe.call(j0e)==ame)}(gbe)?function(j0e,O0e){for(var G0e=-1,W0e=Array(j0e);++G0e<j0e;)W0e[G0e]=O0e(G0e);return W0e}(gbe.length,String):[],Ube=Vbe.length,x0e=!!Ube;for(var I0e in gbe)!lbe.call(gbe,I0e)||x0e&&(I0e=="length"||A0e(I0e,Ube))||Vbe.push(I0e);return Vbe}function $0e(gbe,Tbe,Vbe){var Ube=gbe[Tbe];lbe.call(gbe,Tbe)&&T0e(Ube,Vbe)&&(Vbe!==void 0||Tbe in gbe)||(gbe[Tbe]=Vbe)}function u0e(gbe,Tbe){for(var Vbe=gbe.length;Vbe--;)if(T0e(gbe[Vbe][0],Tbe))return Vbe;return-1}function t0e(gbe,Tbe,Vbe,Ube,x0e,I0e,j0e){var O0e;if(Ube&&(O0e=I0e?Ube(gbe,x0e,I0e,j0e):Ube(gbe)),O0e!==void 0)return O0e;if(!z0e(gbe))return gbe;var G0e=$be(gbe);if(G0e){if(O0e=function(Cbe){var fbe=Cbe.length,ybe=Cbe.constructor(fbe);return fbe&&typeof Cbe[0]=="string"&&lbe.call(Cbe,"index")&&(ybe.index=Cbe.index,ybe.input=Cbe.input),ybe}(gbe),!Tbe)return function(Cbe,fbe){var ybe=-1,Abe=Cbe.length;for(fbe||(fbe=Array(Abe));++ybe<Abe;)fbe[ybe]=Cbe[ybe];return fbe}(gbe,O0e)}else{var W0e=y0e(gbe),i1e=W0e==ime||W0e==ome;if(n0e(gbe))return function(Cbe,fbe){if(fbe)return Cbe.slice();var ybe=new Cbe.constructor(Cbe.length);return Cbe.copy(ybe),ybe}(gbe,Tbe);if(W0e==cme||W0e==ame||i1e&&!I0e){if(zme(gbe))return I0e?gbe:{};if(O0e=function(Cbe){return typeof Cbe.constructor!="function"||V0e(Cbe)?{}:(fbe=mbe(Cbe),z0e(fbe)?pbe(fbe):{});var fbe}(i1e?{}:gbe),!Tbe)return function(Cbe,fbe){return Wbe(Cbe,b0e(Cbe),fbe)}(gbe,function(Cbe,fbe){return Cbe&&Wbe(fbe,o0e(fbe),Cbe)}(O0e,gbe))}else{if(!Ime[W0e])return I0e?gbe:{};O0e=function(Cbe,fbe,ybe,Abe){var Lbe=Cbe.constructor;switch(fbe){case mme:return L0e(Cbe);case nme:case rme:return new Lbe(+Cbe);case vme:return function(Nbe,Fbe){var i0e=Fbe?L0e(Nbe.buffer):Nbe.buffer;return new Nbe.constructor(i0e,Nbe.byteOffset,Nbe.byteLength)}(Cbe,Abe);case gme:case yme:case _me:case $me:case Cme:case Sme:case Eme:case xme:case Tme:return function(Nbe,Fbe){var i0e=Fbe?L0e(Nbe.buffer):Nbe.buffer;return new Nbe.constructor(i0e,Nbe.byteOffset,Nbe.length)}(Cbe,Abe);case lme:return function(Nbe,Fbe,i0e){return Lme(Fbe?i0e(Ume(Nbe),!0):Ume(Nbe),Vme,new Nbe.constructor)}(Cbe,Abe,ybe);case sme:case pme:return new Lbe(Cbe);case ume:return function(Nbe){var Fbe=new Nbe.constructor(Nbe.source,Ome.exec(Nbe));return Fbe.lastIndex=Nbe.lastIndex,Fbe}(Cbe);case fme:return function(Nbe,Fbe,i0e){return Lme(Fbe?i0e(Jme(Nbe),!0):Jme(Nbe),Wme,new Nbe.constructor)}(Cbe,Abe,ybe);case hme:return function(Nbe){return m0e?Object(m0e.call(Nbe)):{}}(Cbe)}}(gbe,W0e,t0e,Tbe)}}j0e||(j0e=new zbe);var t1e=j0e.get(gbe);if(t1e)return t1e;if(j0e.set(gbe,O0e),!G0e)var Ebe=Vbe?function(Cbe){return function(fbe,ybe,Abe){var Lbe=ybe(fbe);return $be(fbe)?Lbe:function(Nbe,Fbe){for(var i0e=-1,Bbe=Fbe.length,Zbe=Nbe.length;++i0e<Bbe;)Nbe[Zbe+i0e]=Fbe[i0e];return Nbe}(Lbe,Abe(fbe))}(Cbe,o0e,b0e)}(gbe):o0e(gbe);return function(Cbe,fbe){for(var ybe=-1,Abe=Cbe?Cbe.length:0;++ybe<Abe&&fbe(Cbe[ybe],ybe,Cbe)!==!1;);}(Ebe||gbe,function(Cbe,fbe){Ebe&&(Cbe=gbe[fbe=Cbe]),$0e(O0e,fbe,t0e(Cbe,Tbe,Vbe,Ube,fbe,gbe,j0e))}),O0e}function v0e(gbe){return!(!z0e(gbe)||function(Tbe){return!!Zme&&Zme in Tbe}(gbe))&&(f0e(gbe)||zme(gbe)?abe:Rme).test(w0e(gbe))}function L0e(gbe){var Tbe=new gbe.constructor(gbe.byteLength);return new ube(Tbe).set(new ube(gbe)),Tbe}function Wbe(gbe,Tbe,Vbe,Ube){Vbe||(Vbe={});for(var x0e=-1,I0e=Tbe.length;++x0e<I0e;){var j0e=Tbe[x0e],O0e=void 0;$0e(Vbe,j0e,O0e===void 0?gbe[j0e]:O0e)}return Vbe}function a0e(gbe,Tbe){var Vbe,Ube,x0e=gbe.__data__;return((Ube=typeof(Vbe=Tbe))=="string"||Ube=="number"||Ube=="symbol"||Ube=="boolean"?Vbe!=="__proto__":Vbe===null)?x0e[typeof Tbe=="string"?"string":"hash"]:x0e.map}function g0e(gbe,Tbe){var Vbe=function(Ube,x0e){return Ube==null?void 0:Ube[x0e]}(gbe,Tbe);return v0e(Vbe)?Vbe:void 0}Ybe.prototype.clear=function(){this.__data__=Hbe?Hbe(null):{}},Ybe.prototype.delete=function(gbe){return this.has(gbe)&&delete this.__data__[gbe]},Ybe.prototype.get=function(gbe){var Tbe=this.__data__;if(Hbe){var Vbe=Tbe[gbe];return Vbe===$P?void 0:Vbe}return lbe.call(Tbe,gbe)?Tbe[gbe]:void 0},Ybe.prototype.has=function(gbe){var Tbe=this.__data__;return Hbe?Tbe[gbe]!==void 0:lbe.call(Tbe,gbe)},Ybe.prototype.set=function(gbe,Tbe){return this.__data__[gbe]=Hbe&&Tbe===void 0?$P:Tbe,this},Jbe.prototype.clear=function(){this.__data__=[]},Jbe.prototype.delete=function(gbe){var Tbe=this.__data__,Vbe=u0e(Tbe,gbe);return!(Vbe<0)&&(Vbe==Tbe.length-1?Tbe.pop():Sbe.call(Tbe,Vbe,1),!0)},Jbe.prototype.get=function(gbe){var Tbe=this.__data__,Vbe=u0e(Tbe,gbe);return Vbe<0?void 0:Tbe[Vbe][1]},Jbe.prototype.has=function(gbe){return u0e(this.__data__,gbe)>-1},Jbe.prototype.set=function(gbe,Tbe){var Vbe=this.__data__,Ube=u0e(Vbe,gbe);return Ube<0?Vbe.push([gbe,Tbe]):Vbe[Ube][1]=Tbe,this},c0e.prototype.clear=function(){this.__data__={hash:new Ybe,map:new(Mbe||Jbe),string:new Ybe}},c0e.prototype.delete=function(gbe){return a0e(this,gbe).delete(gbe)},c0e.prototype.get=function(gbe){return a0e(this,gbe).get(gbe)},c0e.prototype.has=function(gbe){return a0e(this,gbe).has(gbe)},c0e.prototype.set=function(gbe,Tbe){return a0e(this,gbe).set(gbe,Tbe),this},zbe.prototype.clear=function(){this.__data__=new Jbe},zbe.prototype.delete=function(gbe){return this.__data__.delete(gbe)},zbe.prototype.get=function(gbe){return this.__data__.get(gbe)},zbe.prototype.has=function(gbe){return this.__data__.has(gbe)},zbe.prototype.set=function(gbe,Tbe){var Vbe=this.__data__;if(Vbe instanceof Jbe){var Ube=Vbe.__data__;if(!Mbe||Ube.length<199)return Ube.push([gbe,Tbe]),this;Vbe=this.__data__=new c0e(Ube)}return Vbe.set(gbe,Tbe),this};var b0e=vbe?Gme(vbe,Object):function(){return[]},y0e=function(gbe){return ibe.call(gbe)};function A0e(gbe,Tbe){return!!(Tbe=Tbe??tme)&&(typeof gbe=="number"||Nme.test(gbe))&&gbe>-1&&gbe%1==0&&gbe<Tbe}function V0e(gbe){var Tbe=gbe&&gbe.constructor;return gbe===(typeof Tbe=="function"&&Tbe.prototype||Xme)}function w0e(gbe){if(gbe!=null){try{return nbe.call(gbe)}catch{}try{return gbe+""}catch{}}return""}function T0e(gbe,Tbe){return gbe===Tbe||gbe!=gbe&&Tbe!=Tbe}(Pbe&&y0e(new Pbe(new ArrayBuffer(1)))!=vme||Mbe&&y0e(new Mbe)!=lme||Kbe&&y0e(Kbe.resolve())!=dme||Qbe&&y0e(new Qbe)!=fme||Gbe&&y0e(new Gbe)!=bme)&&(y0e=function(gbe){var Tbe=ibe.call(gbe),Vbe=Tbe==cme?gbe.constructor:void 0,Ube=Vbe?w0e(Vbe):void 0;if(Ube)switch(Ube){case d0e:return vme;case p0e:return lme;case S0e:return dme;case P0e:return fme;case e0e:return bme}return Tbe});var $be=Array.isArray;function Ibe(gbe){return gbe!=null&&function(Tbe){return typeof Tbe=="number"&&Tbe>-1&&Tbe%1==0&&Tbe<=tme}(gbe.length)&&!f0e(gbe)}var n0e=kbe||function(){return!1};function f0e(gbe){var Tbe=z0e(gbe)?ibe.call(gbe):"";return Tbe==ime||Tbe==ome}function z0e(gbe){var Tbe=typeof gbe;return!!gbe&&(Tbe=="object"||Tbe=="function")}function o0e(gbe){return Ibe(gbe)?R0e(gbe):function(Tbe){if(!V0e(Tbe))return Rbe(Tbe);var Vbe=[];for(var Ube in Object(Tbe))lbe.call(Tbe,Ube)&&Ube!="constructor"&&Vbe.push(Ube);return Vbe}(gbe)}x_.exports=function(gbe){return t0e(gbe,!0,!0)}});function Qv(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var ey=0;function ty(x_){return"__private_"+ey+++"_"+x_}function ny(x_,eme,$P){const tme=[];return x_.forEach(ame=>typeof ame!="string"?tme.push(ame):eme[Symbol.split](ame).forEach((nme,rme,ime)=>{nme!==""&&tme.push(nme),rme<ime.length-1&&tme.push($P)})),tme}/**
 * Takes a string with placeholder variables like `%{smart_count} file selected`
 * and replaces it with values from options `{smart_count: 5}`
 *
 * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
 * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
 *
 * @param {string} phrase that needs interpolation, with placeholders
 * @param {object} options with values that will be used to replace placeholders
 * @returns {any[]} interpolated
 */function ry(x_,eme){const $P=/\$/g;let tme=[x_];if(eme==null)return tme;for(const ame of Object.keys(eme))if(ame!=="_"){let nme=eme[ame];typeof nme=="string"&&(nme=$P[Symbol.replace](nme,"$$$$")),tme=ny(tme,new RegExp(`%\\{${ame}\\}`,"g"),nme)}return tme}var oy=(Xv=ty("apply"),class{constructor(x_){Object.defineProperty(this,Xv,{value:iy}),this.locale={strings:{},pluralize:eme=>eme===1?0:1},Array.isArray(x_)?x_.forEach(Qv(this,Xv)[Xv],this):Qv(this,Xv)[Xv](x_)}translate(x_,eme){return this.translateArray(x_,eme).join("")}translateArray(x_,eme){if(!function(tme,ame){return Object.prototype.hasOwnProperty.call(tme,ame)}(this.locale.strings,x_))throw new Error(`missing string: ${x_}`);const $P=this.locale.strings[x_];if(typeof $P=="object"){if(eme&&eme.smart_count!==void 0)return ry($P[this.locale.pluralize(eme.smart_count)],eme);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ry($P,eme)}});function iy(x_){if(x_==null||!x_.strings)return;const eme=this.locale;this.locale={...eme,strings:{...eme.strings,...x_.strings}},this.locale.pluralize=x_.pluralize||eme.pluralize}var ay=function(){var x_={},eme=x_._fns={};return x_.emit=function($P,tme,ame,nme,rme,ime,ome){var lme=function(sme){for(var cme=eme[sme]?eme[sme]:[],dme=sme.indexOf(":"),ume=dme===-1?[sme]:[sme.substring(0,dme),sme.substring(dme+1)],fme=Object.keys(eme),pme=0,hme=fme.length;pme<hme;pme++){var bme=fme[pme];if(bme==="*"&&(cme=cme.concat(eme[bme])),ume.length===2&&ume[0]===bme){cme=cme.concat(eme[bme]);break}}return cme}($P);lme.length&&function(sme,cme,dme){for(var ume=0,fme=cme.length;ume<fme&&cme[ume];ume++)cme[ume].event=sme,cme[ume].apply(cme[ume],dme)}($P,lme,[tme,ame,nme,rme,ime,ome])},x_.on=function($P,tme){eme[$P]||(eme[$P]=[]),eme[$P].push(tme)},x_.once=function($P,tme){this.on($P,function ame(){tme.apply(this,arguments),x_.off($P,ame)})},x_.off=function($P,tme){var ame=[];if($P&&tme)for(var nme=this._fns[$P],rme=0,ime=nme?nme.length:0;rme<ime;rme++)nme[rme]!==tme&&ame.push(nme[rme]);ame.length?this._fns[$P]=ame:delete this._fns[$P]},x_},uy={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:sy}=uy,ly=x_=>crypto.getRandomValues(new Uint8Array(x_)),cy=(x_,eme,$P)=>{let tme=(2<<Math.log(x_.length-1)/Math.LN2)-1,ame=-~(1.6*tme*eme/x_.length);return()=>{let nme="";for(;;){let rme=$P(ame),ime=ame;for(;ime--;)if(nme+=x_[rme[ime]&tme]||"",nme.length===eme)return nme}}};var fy={nanoid:(x_=21)=>{let eme="",$P=crypto.getRandomValues(new Uint8Array(x_));for(;x_--;){let tme=63&$P[x_];eme+=tme<36?tme.toString(36):tme<62?(tme-26).toString(36).toUpperCase():tme<63?"_":"-"}return eme},customAlphabet:(x_,eme)=>cy(x_,eme,ly),customRandom:cy,urlAlphabet:sy,random:ly},dy=function(x_){if(typeof x_!="number"||isNaN(x_))throw new TypeError("Expected a number, got "+typeof x_);var eme=x_<0,$P=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(eme&&(x_=-x_),x_<1)return(eme?"-":"")+x_+" B";var tme=Math.min(Math.floor(Math.log(x_)/Math.log(1024)),$P.length-1);x_=Number(x_/Math.pow(1024,tme));var ame=$P[tme];return x_>=10||x_%1==0?(eme?"-":"")+x_.toFixed(0)+" "+ame:(eme?"-":"")+x_.toFixed(1)+" "+ame};function py(x_,eme){this.text=x_=x_||"",this.hasWild=~x_.indexOf("*"),this.separator=eme,this.parts=x_.split(eme)}py.prototype.match=function(x_){var eme,$P,tme=!0,ame=this.parts,nme=ame.length;if(typeof x_=="string"||x_ instanceof String)if(this.hasWild||this.text==x_){for($P=(x_||"").split(this.separator),eme=0;tme&&eme<nme;eme++)ame[eme]!=="*"&&(tme=eme<$P.length&&ame[eme]===$P[eme]);tme=tme&&$P}else tme=!1;else if(typeof x_.splice=="function")for(tme=[],eme=x_.length;eme--;)this.match(x_[eme])&&(tme[tme.length]=x_[eme]);else if(typeof x_=="object")for(var rme in tme={},x_)this.match(rme)&&(tme[rme]=x_[rme]);return tme};var hy=/[\/\+\.]/,gy=function(x_,eme){function $P(tme){var ame=function(nme,rme,ime){var ome=new py(nme,ime||/[\/\.]/);return rme!==void 0?ome.match(rme):ome}(tme,x_,hy);return ame&&ame.length>=2}return eme?$P(eme.split(";")[0]):$P},vy=0;function yy(x_){return"__private_"+vy+++"_"+x_}var my=yy("publish");class by{constructor(){Object.defineProperty(this,my,{value:wy}),this.state={},this.callbacks=[]}getState(){return this.state}setState(eme){const $P={...this.state},tme={...this.state,...eme};this.state=tme,function(ame,nme){if(!Object.prototype.hasOwnProperty.call(ame,nme))throw new TypeError("attempted to use private field on non-instance");return ame}(this,my)[my]($P,tme,eme)}subscribe(eme){return this.callbacks.push(eme),()=>{this.callbacks.splice(this.callbacks.indexOf(eme),1)}}}function wy(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];this.callbacks.forEach(tme=>{tme(...eme)})}by.VERSION="2.0.3";var Ey=function(x_){const eme=x_.lastIndexOf(".");return eme===-1||eme===x_.length-1?{name:x_,extension:void 0}:{name:x_.slice(0,eme),extension:x_.slice(eme+1)}},Dy={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Sy(x_){let eme="";return x_.replace(/[^A-Z0-9]/gi,$P=>(eme+=`-${function(tme){return tme.charCodeAt(0).toString(32)}($P)}`,"/"))+eme}var xy=function(x_){if(x_==null&&(x_=typeof navigator<"u"?navigator.userAgent:null),!x_)return!0;const eme=/Edge\/(\d+\.\d+)/.exec(x_);if(!eme)return!0;const $P=eme[1];let[tme,ame]=$P.split(".");return tme=parseInt(tme,10),ame=parseInt(ame,10),tme<15||tme===15&&ame<15063||tme>18||tme===18&&ame>=18218};function Cy(x_){return x_<10?`0${x_}`:x_.toString()}var Ay=function(){const x_=new Date;return`${Cy(x_.getHours())}:${Cy(x_.getMinutes())}:${Cy(x_.getSeconds())}`},Oy={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return console.error(`[Uppy] [${Ay()}]`,...eme)}},debugLogger:{debug:function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return console.debug(`[Uppy] [${Ay()}]`,...eme)},warn:function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return console.warn(`[Uppy] [${Ay()}]`,...eme)},error:function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];return console.error(`[Uppy] [${Ay()}]`,...eme)}}},ky={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},By=fy;let Fy,Ty;function _y(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var Py=0;function jy(x_){return"__private_"+Py+++"_"+x_}const{nanoid:Ny}=By,{justErrorsLogger:Iy,debugLogger:Ly}=Oy;class Ry extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(x_,eme){super(eme),this.errors=x_}});class My extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var zy=jy("plugins"),$y=jy("storeUnsubscribe"),Hy=jy("emitter"),Vy=jy("preProcessors"),Uy=jy("uploaders"),Wy=jy("postProcessors"),Gy=jy("checkRestrictions"),qy=jy("checkMinNumberOfFiles"),Ky=jy("checkRequiredMetaFieldsOnFile"),Yy=jy("checkRequiredMetaFields"),Xy=jy("showOrLogErrorAndThrow"),Zy=jy("assertNewUploadAllowed"),Jy=jy("checkAndCreateFileStateObject"),Qy=jy("startIfAutoProceed"),em=jy("addListeners"),tm=jy("updateOnlineStatus"),nm=jy("createUpload"),rm=jy("getUpload"),om=jy("removeUpload"),im=jy("runUpload");Fy=Symbol.for("uppy test: getPlugins"),Ty=Symbol.for("uppy test: createUpload");class am{constructor(eme){Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,rm,{value:ym}),Object.defineProperty(this,nm,{value:vm}),Object.defineProperty(this,em,{value:gm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,qy,{value:sm}),Object.defineProperty(this,Gy,{value:um}),Object.defineProperty(this,zy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,$y,{writable:!0,value:void 0}),Object.defineProperty(this,Hy,{writable:!0,value:ay()}),Object.defineProperty(this,Vy,{writable:!0,value:new Set}),Object.defineProperty(this,Uy,{writable:!0,value:new Set}),Object.defineProperty(this,Wy,{writable:!0,value:new Set}),Object.defineProperty(this,tm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ky;const $P={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:tme=>tme,onBeforeUpload:tme=>tme,store:new by,logger:Iy,infoTimeout:5e3};if(this.opts={...$P,...eme,restrictions:{...$P.restrictions,...eme&&eme.restrictions}},eme&&eme.logger&&eme.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):eme&&eme.debug&&(this.opts.logger=Ly),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=eg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:xy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),_y(this,$y)[$y]=this.store.subscribe((tme,ame,nme)=>{this.emit("state-update",tme,ame,nme),this.updateAll(ame)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),_y(this,em)[em]()}emit(eme){for(var $P=arguments.length,tme=new Array($P>1?$P-1:0),ame=1;ame<$P;ame++)tme[ame-1]=arguments[ame];_y(this,Hy)[Hy].emit(eme,...tme)}on(eme,$P){return _y(this,Hy)[Hy].on(eme,$P),this}once(eme,$P){return _y(this,Hy)[Hy].once(eme,$P),this}off(eme,$P){return _y(this,Hy)[Hy].off(eme,$P),this}updateAll(eme){this.iteratePlugins($P=>{$P.update(eme)})}setState(eme){this.store.setState(eme)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(eme,$P){if(!this.getState().files[eme])throw new Error(`Can’t set state for ${eme} (the file could have been removed)`);this.setState({files:{...this.getState().files,[eme]:{...this.getState().files[eme],...$P}}})}i18nInit(){const eme=new oy([this.defaultLocale,this.opts.locale]);this.i18n=eme.translate.bind(eme),this.i18nArray=eme.translateArray.bind(eme),this.locale=eme.locale}setOptions(eme){this.opts={...this.opts,...eme,restrictions:{...this.opts.restrictions,...eme&&eme.restrictions}},eme.meta&&this.setMeta(eme.meta),this.i18nInit(),eme.locale&&this.iteratePlugins($P=>{$P.setOptions()}),this.setState()}resetProgress(){const eme={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},$P={...this.getState().files},tme={};Object.keys($P).forEach(ame=>{const nme={...$P[ame]};nme.progress={...nme.progress,...eme},tme[ame]=nme}),this.setState({files:tme,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(eme){_y(this,Vy)[Vy].add(eme)}removePreProcessor(eme){return _y(this,Vy)[Vy].delete(eme)}addPostProcessor(eme){_y(this,Wy)[Wy].add(eme)}removePostProcessor(eme){return _y(this,Wy)[Wy].delete(eme)}addUploader(eme){_y(this,Uy)[Uy].add(eme)}removeUploader(eme){return _y(this,Uy)[Uy].delete(eme)}setMeta(eme){const $P={...this.getState().meta,...eme},tme={...this.getState().files};Object.keys(tme).forEach(ame=>{tme[ame]={...tme[ame],meta:{...tme[ame].meta,...eme}}}),this.log("Adding metadata:"),this.log(eme),this.setState({meta:$P,files:tme})}setFileMeta(eme,$P){const tme={...this.getState().files};if(!tme[eme])return void this.log("Was trying to set metadata for a file that has been removed: ",eme);const ame={...tme[eme].meta,...$P};tme[eme]={...tme[eme],meta:ame},this.setState({files:tme})}getFile(eme){return this.getState().files[eme]}getFiles(){const{files:eme}=this.getState();return Object.values(eme)}getObjectOfFilesPerState(){const{files:eme,totalProgress:$P,error:tme}=this.getState(),ame=Object.values(eme),nme=ame.filter(fme=>{let{progress:pme}=fme;return!pme.uploadComplete&&pme.uploadStarted}),rme=ame.filter(fme=>!fme.progress.uploadStarted),ime=ame.filter(fme=>fme.progress.uploadStarted||fme.progress.preprocess||fme.progress.postprocess),ome=ame.filter(fme=>fme.progress.uploadStarted),lme=ame.filter(fme=>fme.isPaused),sme=ame.filter(fme=>fme.progress.uploadComplete),cme=ame.filter(fme=>fme.error),dme=nme.filter(fme=>!fme.isPaused),ume=ame.filter(fme=>fme.progress.preprocess||fme.progress.postprocess);return{newFiles:rme,startedFiles:ime,uploadStartedFiles:ome,pausedFiles:lme,completeFiles:sme,erroredFiles:cme,inProgressFiles:nme,inProgressNotPausedFiles:dme,processingFiles:ume,isUploadStarted:ome.length>0,isAllComplete:$P===100&&sme.length===ame.length&&ume.length===0,isAllErrored:!!tme&&cme.length===ame.length,isAllPaused:nme.length!==0&&lme.length===nme.length,isUploadInProgress:nme.length>0,isSomeGhost:ame.some(fme=>fme.isGhost)}}validateRestrictions(eme,$P){try{return _y(this,Gy)[Gy](eme,$P),{result:!0}}catch(tme){return{result:!1,reason:tme.message}}}checkIfFileAlreadyExists(eme){const{files:$P}=this.getState();return!(!$P[eme]||$P[eme].isGhost)}addFile(eme){_y(this,Zy)[Zy](eme);const{files:$P}=this.getState();let tme=_y(this,Jy)[Jy]($P,eme);return $P[tme.id]&&$P[tme.id].isGhost&&(tme={...$P[tme.id],data:eme.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${tme.name}, ${tme.id}`)),this.setState({files:{...$P,[tme.id]:tme}}),this.emit("file-added",tme),this.emit("files-added",[tme]),this.log(`Added file: ${tme.name}, ${tme.id}, mime type: ${tme.type}`),_y(this,Qy)[Qy](),tme.id}addFiles(eme){_y(this,Zy)[Zy]();const $P={...this.getState().files},tme=[],ame=[];for(let nme=0;nme<eme.length;nme++)try{let rme=_y(this,Jy)[Jy]($P,eme[nme]);$P[rme.id]&&$P[rme.id].isGhost&&(rme={...$P[rme.id],data:eme[nme].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${rme.name}, ${rme.id}`)),$P[rme.id]=rme,tme.push(rme)}catch(rme){rme.isRestriction||ame.push(rme)}if(this.setState({files:$P}),tme.forEach(nme=>{this.emit("file-added",nme)}),this.emit("files-added",tme),tme.length>5?this.log(`Added batch of ${tme.length} files`):Object.keys(tme).forEach(nme=>{this.log(`Added file: ${tme[nme].name}
 id: ${tme[nme].id}
 type: ${tme[nme].type}`)}),tme.length>0&&_y(this,Qy)[Qy](),ame.length>0){let nme=`Multiple errors occurred while adding files:
`;if(ame.forEach(rme=>{nme+=`
 * ${rme.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:ame.length}),details:nme},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(ame,nme);{const rme=new Error(nme);throw rme.errors=ame,rme}}}removeFiles(eme,$P){const{files:tme,currentUploads:ame}=this.getState(),nme={...tme},rme={...ame},ime=Object.create(null);function ome(cme){return ime[cme]===void 0}eme.forEach(cme=>{tme[cme]&&(ime[cme]=tme[cme],delete nme[cme])}),Object.keys(rme).forEach(cme=>{const dme=ame[cme].fileIDs.filter(ome);dme.length!==0?rme[cme]={...ame[cme],fileIDs:dme}:delete rme[cme]});const lme={currentUploads:rme,files:nme};Object.keys(nme).length===0&&(lme.allowNewUpload=!0,lme.error=null,lme.recoveredState=null),this.setState(lme),this.calculateTotalProgress();const sme=Object.keys(ime);sme.forEach(cme=>{this.emit("file-removed",ime[cme],$P)}),sme.length>5?this.log(`Removed ${sme.length} files`):this.log(`Removed files: ${sme.join(", ")}`)}removeFile(eme,$P){$P===void 0&&($P=null),this.removeFiles([eme],$P)}pauseResume(eme){if(!this.getState().capabilities.resumableUploads||this.getFile(eme).uploadComplete)return;const $P=!this.getFile(eme).isPaused;return this.setFileState(eme,{isPaused:$P}),this.emit("upload-pause",eme,$P),$P}pauseAll(){const eme={...this.getState().files};Object.keys(eme).filter($P=>!eme[$P].progress.uploadComplete&&eme[$P].progress.uploadStarted).forEach($P=>{const tme={...eme[$P],isPaused:!0};eme[$P]=tme}),this.setState({files:eme}),this.emit("pause-all")}resumeAll(){const eme={...this.getState().files};Object.keys(eme).filter($P=>!eme[$P].progress.uploadComplete&&eme[$P].progress.uploadStarted).forEach($P=>{const tme={...eme[$P],isPaused:!1,error:null};eme[$P]=tme}),this.setState({files:eme}),this.emit("resume-all")}retryAll(){const eme={...this.getState().files},$P=Object.keys(eme).filter(ame=>eme[ame].error);if($P.forEach(ame=>{const nme={...eme[ame],isPaused:!1,error:null};eme[ame]=nme}),this.setState({files:eme,error:null}),this.emit("retry-all",$P),$P.length===0)return Promise.resolve({successful:[],failed:[]});const tme=_y(this,nm)[nm]($P,{forceAllowNewUpload:!0});return _y(this,im)[im](tme)}cancelAll(){this.emit("cancel-all");const{files:eme}=this.getState(),$P=Object.keys(eme);$P.length&&this.removeFiles($P,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(eme){this.setFileState(eme,{error:null,isPaused:!1}),this.emit("upload-retry",eme);const $P=_y(this,nm)[nm]([eme],{forceAllowNewUpload:!0});return _y(this,im)[im]($P)}reset(){this.cancelAll()}logout(){this.iteratePlugins(eme=>{eme.provider&&eme.provider.logout&&eme.provider.logout()})}calculateProgress(eme,$P){if(!this.getFile(eme.id))return void this.log(`Not setting progress for a file that has been removed: ${eme.id}`);const tme=Number.isFinite($P.bytesTotal)&&$P.bytesTotal>0;this.setFileState(eme.id,{progress:{...this.getFile(eme.id).progress,bytesUploaded:$P.bytesUploaded,bytesTotal:$P.bytesTotal,percentage:tme?Math.round($P.bytesUploaded/$P.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const eme=this.getFiles().filter(ome=>ome.progress.uploadStarted||ome.progress.preprocess||ome.progress.postprocess);if(eme.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const $P=eme.filter(ome=>ome.progress.bytesTotal!=null),tme=eme.filter(ome=>ome.progress.bytesTotal==null);if($P.length===0){const ome=100*eme.length,lme=tme.reduce((cme,dme)=>cme+dme.progress.percentage,0),sme=Math.round(lme/ome*100);return void this.setState({totalProgress:sme})}let ame=$P.reduce((ome,lme)=>ome+lme.progress.bytesTotal,0);const nme=ame/$P.length;ame+=nme*tme.length;let rme=0;$P.forEach(ome=>{rme+=ome.progress.bytesUploaded}),tme.forEach(ome=>{rme+=nme*(ome.progress.percentage||0)/100});let ime=ame===0?0:Math.round(rme/ame*100);ime>100&&(ime=100),this.setState({totalProgress:ime}),this.emit("progress",ime)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(eme,$P){if(typeof eme!="function")throw new TypeError(`Expected a plugin class, but got ${eme===null?"null":typeof eme}. Please verify that the plugin was imported and spelled correctly.`);const tme=new eme(this,$P),ame=tme.id;if(!ame)throw new Error("Your plugin must have an id");if(!tme.type)throw new Error("Your plugin must have a type");const nme=this.getPlugin(ame);if(nme){const rme=`Already found a plugin named '${nme.id}'. Tried to use: '${ame}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(rme)}return eme.VERSION&&this.log(`Using ${ame} v${eme.VERSION}`),tme.type in _y(this,zy)[zy]?_y(this,zy)[zy][tme.type].push(tme):_y(this,zy)[zy][tme.type]=[tme],tme.install(),this}getPlugin(eme){for(const $P of Object.values(_y(this,zy)[zy])){const tme=$P.find(ame=>ame.id===eme);if(tme!=null)return tme}}[Fy](eme){return _y(this,zy)[zy][eme]}iteratePlugins(eme){Object.values(_y(this,zy)[zy]).flat(1).forEach(eme)}removePlugin(eme){this.log(`Removing plugin ${eme.id}`),this.emit("plugin-remove",eme),eme.uninstall&&eme.uninstall();const $P=_y(this,zy)[zy][eme.type],tme=$P.findIndex(nme=>nme.id===eme.id);tme!==-1&&$P.splice(tme,1);const ame={plugins:{...this.getState().plugins,[eme.id]:void 0}};this.setState(ame)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),_y(this,$y)[$y](),this.iteratePlugins(eme=>{this.removePlugin(eme)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",_y(this,tm)[tm]),window.removeEventListener("offline",_y(this,tm)[tm]))}hideInfo(){const{info:eme}=this.getState();this.setState({info:eme.slice(1)}),this.emit("info-hidden")}info(eme,$P,tme){$P===void 0&&($P="info"),tme===void 0&&(tme=3e3);const ame=typeof eme=="object";this.setState({info:[...this.getState().info,{type:$P,message:ame?eme.message:eme,details:ame?eme.details:null}]}),setTimeout(()=>this.hideInfo(),tme),this.emit("info-visible")}log(eme,$P){const{logger:tme}=this.opts;switch($P){case"error":tme.error(eme);break;case"warning":tme.warn(eme);break;default:tme.debug(eme)}}restore(eme){return this.log(`Core: attempting to restore upload "${eme}"`),this.getState().currentUploads[eme]?_y(this,im)[im](eme):(_y(this,om)[om](eme),Promise.reject(new Error("Nonexistent upload")))}[Ty](){return _y(this,nm)[nm](...arguments)}addResultData(eme,$P){if(!_y(this,rm)[rm](eme))return void this.log(`Not setting result for an upload that has been removed: ${eme}`);const{currentUploads:tme}=this.getState(),ame={...tme[eme],result:{...tme[eme].result,...$P}};this.setState({currentUploads:{...tme,[eme]:ame}})}upload(){var eme;(eme=_y(this,zy)[zy].uploader)!=null&&eme.length||this.log("No uploader type plugins are used","warning");let{files:$P}=this.getState();const tme=this.opts.onBeforeUpload($P);return tme===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(tme&&typeof tme=="object"&&($P=tme,this.setState({files:$P})),Promise.resolve().then(()=>{_y(this,qy)[qy]($P),_y(this,Yy)[Yy]($P)}).catch(ame=>{_y(this,Xy)[Xy](ame)}).then(()=>{const{currentUploads:ame}=this.getState(),nme=Object.values(ame).flatMap(ome=>ome.fileIDs),rme=[];Object.keys($P).forEach(ome=>{const lme=this.getFile(ome);lme.progress.uploadStarted||nme.indexOf(ome)!==-1||rme.push(lme.id)});const ime=_y(this,nm)[nm](rme);return _y(this,im)[im](ime)}).catch(ame=>{_y(this,Xy)[Xy](ame,{showInformer:!1})}))}}function um(x_,eme){eme===void 0&&(eme=this.getFiles());const{maxFileSize:$P,minFileSize:tme,maxTotalFileSize:ame,maxNumberOfFiles:nme,allowedFileTypes:rme}=this.opts.restrictions;if(nme&&eme.length+1>nme)throw new Ry(`${this.i18n("youCanOnlyUploadX",{smart_count:nme})}`);if(rme&&!rme.some(ime=>ime.indexOf("/")>-1?!!x_.type&&gy(x_.type.replace(/;.*?$/,""),ime):!(ime[0]!=="."||!x_.extension)&&x_.extension.toLowerCase()===ime.substr(1).toLowerCase())){const ime=rme.join(", ");throw new Ry(this.i18n("youCanOnlyUploadFileTypes",{types:ime}))}if(ame&&x_.size!=null){let ime=0;if(ime+=x_.size,eme.forEach(ome=>{ime+=ome.size}),ime>ame)throw new Ry(this.i18n("exceedsSize",{size:dy(ame),file:x_.name}))}if($P&&x_.size!=null&&x_.size>$P)throw new Ry(this.i18n("exceedsSize",{size:dy($P),file:x_.name}));if(tme&&x_.size!=null&&x_.size<tme)throw new Ry(this.i18n("inferiorSize",{size:dy(tme)}))}function sm(x_){const{minNumberOfFiles:eme}=this.opts.restrictions;if(Object.keys(x_).length<eme)throw new Ry(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:eme})}`)}function lm(x_){const{requiredMetaFields:eme}=this.opts.restrictions,{hasOwnProperty:$P}=Object.prototype,tme=[],ame=[];for(let nme=0;nme<eme.length;nme++)if(!$P.call(x_.meta,eme[nme])||x_.meta[eme[nme]]===""){const rme=new Ry(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:x_.name})}`);tme.push(rme),ame.push(eme[nme]),_y(this,Xy)[Xy](rme,{file:x_,showInformer:!1,throwErr:!1})}return this.setFileState(x_.id,{missingRequiredMetaFields:ame}),tme}function cm(x_){const eme=Object.keys(x_).flatMap($P=>{const tme=this.getFile($P);return _y(this,Ky)[Ky](tme)});if(eme.length)throw new My(eme,`${this.i18n("missingRequiredMetaField")}`)}function fm(x_,eme){let{showInformer:$P=!0,file:tme=null,throwErr:ame=!0}=eme===void 0?{}:eme;const nme=typeof x_=="object"?x_.message:x_,rme=typeof x_=="object"&&x_.details?x_.details:"";let ime=nme;if(rme&&(ime+=` ${rme}`),x_.isRestriction?(this.log(ime),this.emit("restriction-failed",tme,x_)):this.log(ime,"error"),$P&&this.info({message:nme,details:rme},"error",this.opts.infoTimeout),ame)throw typeof x_=="object"?x_:new Error(x_)}function dm(x_){const{allowNewUpload:eme}=this.getState();eme===!1&&_y(this,Xy)[Xy](new Ry(this.i18n("noMoreFilesAllowed")),{file:x_})}function pm(x_,eme){const $P=function(cme){var dme;if(cme.type)return cme.type;const ume=cme.name?(dme=Ey(cme.name).extension)==null?void 0:dme.toLowerCase():null;return ume&&ume in Dy?Dy[ume]:"application/octet-stream"}(eme),tme=function(cme,dme){return dme.name?dme.name:cme.split("/")[0]==="image"?`${cme.split("/")[0]}.${cme.split("/")[1]}`:"noname"}($P,eme),ame=Ey(tme).extension,nme=!!eme.isRemote,rme=function(cme){let dme="uppy";return typeof cme.name=="string"&&(dme+=`-${Sy(cme.name.toLowerCase())}`),cme.type!==void 0&&(dme+=`-${cme.type}`),cme.meta&&typeof cme.meta.relativePath=="string"&&(dme+=`-${Sy(cme.meta.relativePath.toLowerCase())}`),cme.data.size!==void 0&&(dme+=`-${cme.data.size}`),cme.data.lastModified!==void 0&&(dme+=`-${cme.data.lastModified}`),dme}({...eme,type:$P});if(this.checkIfFileAlreadyExists(rme)){const cme=new Ry(this.i18n("noDuplicates",{fileName:tme}));_y(this,Xy)[Xy](cme,{file:eme})}const ime=eme.meta||{};ime.name=tme,ime.type=$P;const ome=Number.isFinite(eme.data.size)?eme.data.size:null;let lme={source:eme.source||"",id:rme,name:tme,extension:ame||"",meta:{...this.getState().meta,...ime},type:$P,data:eme.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:ome,uploadComplete:!1,uploadStarted:null},size:ome,isRemote:nme,remote:eme.remote||"",preview:eme.preview};const sme=this.opts.onBeforeFileAdded(lme,x_);sme===!1?_y(this,Xy)[Xy](new Ry("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:eme}):typeof sme=="object"&&sme!==null&&(lme=sme);try{const cme=Object.keys(x_).map(dme=>x_[dme]);_y(this,Gy)[Gy](lme,cme)}catch(cme){_y(this,Xy)[Xy](cme,{file:lme})}return lme}function hm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(x_=>{x_.isRestriction||this.log(x_.stack||x_.message||x_)})},4))}function gm(){const x_=(eme,$P,tme)=>{let ame=eme.message||"Unknown error";eme.details&&(ame+=` ${eme.details}`),this.setState({error:ame}),$P!=null&&$P.id in this.getState().files&&this.setFileState($P.id,{error:ame,response:tme})};this.on("error",x_),this.on("upload-error",(eme,$P,tme)=>{if(x_($P,eme,tme),typeof $P=="object"&&$P.message){const ame=new Error($P.message);ame.details=$P.message,$P.details&&(ame.details+=` ${$P.details}`),ame.message=this.i18n("failedToUpload",{file:eme.name}),_y(this,Xy)[Xy](ame,{throwErr:!1})}else _y(this,Xy)[Xy]($P,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",eme=>{this.getFile(eme.id)?this.setFileState(eme.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:eme.size}}):this.log(`Not setting progress for a file that has been removed: ${eme.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(eme,$P)=>{if(!this.getFile(eme.id))return void this.log(`Not setting progress for a file that has been removed: ${eme.id}`);const tme=this.getFile(eme.id).progress;this.setFileState(eme.id,{progress:{...tme,postprocess:_y(this,Wy)[Wy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:tme.bytesTotal},response:$P,uploadURL:$P.uploadURL,isPaused:!1}),eme.size==null&&this.setFileState(eme.id,{size:$P.bytesUploaded||tme.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(eme,$P)=>{this.getFile(eme.id)?this.setFileState(eme.id,{progress:{...this.getFile(eme.id).progress,preprocess:$P}}):this.log(`Not setting progress for a file that has been removed: ${eme.id}`)}),this.on("preprocess-complete",eme=>{if(!this.getFile(eme.id))return void this.log(`Not setting progress for a file that has been removed: ${eme.id}`);const $P={...this.getState().files};$P[eme.id]={...$P[eme.id],progress:{...$P[eme.id].progress}},delete $P[eme.id].progress.preprocess,this.setState({files:$P})}),this.on("postprocess-progress",(eme,$P)=>{this.getFile(eme.id)?this.setFileState(eme.id,{progress:{...this.getState().files[eme.id].progress,postprocess:$P}}):this.log(`Not setting progress for a file that has been removed: ${eme.id}`)}),this.on("postprocess-complete",eme=>{if(!this.getFile(eme.id))return void this.log(`Not setting progress for a file that has been removed: ${eme.id}`);const $P={...this.getState().files};$P[eme.id]={...$P[eme.id],progress:{...$P[eme.id].progress}},delete $P[eme.id].progress.postprocess,this.setState({files:$P})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",eme=>{eme&&_y(this,Ky)[Ky](eme)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",_y(this,tm)[tm]),window.addEventListener("offline",_y(this,tm)[tm]),setTimeout(_y(this,tm)[tm],3e3))}function vm(x_,eme){eme===void 0&&(eme={});const{forceAllowNewUpload:$P=!1}=eme,{allowNewUpload:tme,currentUploads:ame}=this.getState();if(!tme&&!$P)throw new Error("Cannot create a new upload: already uploading.");const nme=Ny();return this.emit("upload",{id:nme,fileIDs:x_}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...ame,[nme]:{fileIDs:x_,step:0,result:{}}}}),nme}function ym(x_){const{currentUploads:eme}=this.getState();return eme[x_]}function mm(x_){const eme={...this.getState().currentUploads};delete eme[x_],this.setState({currentUploads:eme})}async function bm(x_){let{currentUploads:eme}=this.getState(),$P=eme[x_];const tme=$P.step||0,ame=[..._y(this,Vy)[Vy],..._y(this,Uy)[Uy],..._y(this,Wy)[Wy]];try{for(let rme=tme;rme<ame.length&&$P;rme++){const ime=ame[rme],ome={...$P,step:rme};this.setState({currentUploads:{...eme,[x_]:ome}}),await ime(ome.fileIDs,x_),eme=this.getState().currentUploads,$P=eme[x_]}}catch(rme){throw this.emit("error",rme),_y(this,om)[om](x_),rme}if($P){$P.fileIDs.forEach(lme=>{const sme=this.getFile(lme);sme&&sme.progress.postprocess&&this.emit("postprocess-complete",sme)});const rme=$P.fileIDs.map(lme=>this.getFile(lme)),ime=rme.filter(lme=>!lme.error),ome=rme.filter(lme=>lme.error);await this.addResultData(x_,{successful:ime,failed:ome,uploadID:x_}),eme=this.getState().currentUploads,$P=eme[x_]}let nme;return $P&&(nme=$P.result,this.emit("complete",nme),_y(this,om)[om](x_)),nme==null&&this.log(`Not setting result for an upload that has been removed: ${x_}`),nme}am.VERSION="2.1.3";var wm=am,Em=n(function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme,sme={},cme=[],dme=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ume(Dme,jme){for(var Vme in jme)Dme[Vme]=jme[Vme];return Dme}function fme(Dme){var jme=Dme.parentNode;jme&&jme.removeChild(Dme)}function pme(Dme,jme,Vme){var Wme,Lme,zme,Ume={};for(zme in jme)zme=="key"?Wme=jme[zme]:zme=="ref"?Lme=jme[zme]:Ume[zme]=jme[zme];if(arguments.length>2&&(Ume.children=arguments.length>3?$P.call(arguments,2):Vme),typeof Dme=="function"&&Dme.defaultProps!=null)for(zme in Dme.defaultProps)Ume[zme]===void 0&&(Ume[zme]=Dme.defaultProps[zme]);return hme(Dme,Ume,Wme,Lme,null)}function hme(Dme,jme,Vme,Wme,Lme){var zme={type:Dme,props:jme,key:Vme,ref:Wme,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Lme??++ame};return Lme==null&&tme.vnode!=null&&tme.vnode(zme),zme}function bme(Dme){return Dme.children}function mme(Dme,jme){this.props=Dme,this.context=jme}function vme(Dme,jme){if(jme==null)return Dme.__?vme(Dme.__,Dme.__.__k.indexOf(Dme)+1):null;for(var Vme;jme<Dme.__k.length;jme++)if((Vme=Dme.__k[jme])!=null&&Vme.__e!=null)return Vme.__e;return typeof Dme.type=="function"?vme(Dme):null}function gme(Dme){var jme,Vme;if((Dme=Dme.__)!=null&&Dme.__c!=null){for(Dme.__e=Dme.__c.base=null,jme=0;jme<Dme.__k.length;jme++)if((Vme=Dme.__k[jme])!=null&&Vme.__e!=null){Dme.__e=Dme.__c.base=Vme.__e;break}return gme(Dme)}}function yme(Dme){(!Dme.__d&&(Dme.__d=!0)&&rme.push(Dme)&&!_me.__r++||ome!==tme.debounceRendering)&&((ome=tme.debounceRendering)||ime)(_me)}function _me(){for(var Dme;_me.__r=rme.length;)Dme=rme.sort(function(jme,Vme){return jme.__v.__b-Vme.__v.__b}),rme=[],Dme.some(function(jme){var Vme,Wme,Lme,zme,Ume,Gme;jme.__d&&(Ume=(zme=(Vme=jme).__v).__e,(Gme=Vme.__P)&&(Wme=[],(Lme=ume({},zme)).__v=zme.__v+1,Rme(Gme,zme,Lme,Vme.__n,Gme.ownerSVGElement!==void 0,zme.__h!=null?[Ume]:null,Wme,Ume??vme(zme),zme.__h),Nme(Wme,zme),zme.__e!=Ume&&gme(zme)))})}function $me(Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme,Yme){var Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe=Wme&&Wme.__k||cme,obe=abe.length;for(Vme.__k=[],Qme=0;Qme<jme.length;Qme++)if((Zme=Vme.__k[Qme]=(Zme=jme[Qme])==null||typeof Zme=="boolean"?null:typeof Zme=="string"||typeof Zme=="number"||typeof Zme=="bigint"?hme(null,Zme,null,null,Zme):Array.isArray(Zme)?hme(bme,{children:Zme},null,null,null):Zme.__b>0?hme(Zme.type,Zme.props,Zme.key,null,Zme.__v):Zme)!=null){if(Zme.__=Vme,Zme.__b=Vme.__b+1,(Kme=abe[Qme])===null||Kme&&Zme.key==Kme.key&&Zme.type===Kme.type)abe[Qme]=void 0;else for(Xme=0;Xme<obe;Xme++){if((Kme=abe[Xme])&&Zme.key==Kme.key&&Zme.type===Kme.type){abe[Xme]=void 0;break}Kme=null}Rme(Dme,Zme,Kme=Kme||sme,Lme,zme,Ume,Gme,Jme,Yme),nbe=Zme.__e,(Xme=Zme.ref)&&Kme.ref!=Xme&&(ibe||(ibe=[]),Kme.ref&&ibe.push(Kme.ref,null,Zme),ibe.push(Xme,Zme.__c||nbe,Zme)),nbe!=null?(lbe==null&&(lbe=nbe),typeof Zme.type=="function"&&Zme.__k===Kme.__k?Zme.__d=Jme=Cme(Zme,Jme,Dme):Jme=Sme(Dme,Zme,Kme,abe,nbe,Jme),typeof Vme.type=="function"&&(Vme.__d=Jme)):Jme&&Kme.__e==Jme&&Jme.parentNode!=Dme&&(Jme=vme(Kme))}for(Vme.__e=lbe,Qme=obe;Qme--;)abe[Qme]!=null&&(typeof Vme.type=="function"&&abe[Qme].__e!=null&&abe[Qme].__e==Vme.__d&&(Vme.__d=vme(Wme,Qme+1)),Mme(abe[Qme],abe[Qme]));if(ibe)for(Qme=0;Qme<ibe.length;Qme++)Pme(ibe[Qme],ibe[++Qme],ibe[++Qme])}function Cme(Dme,jme,Vme){for(var Wme,Lme=Dme.__k,zme=0;Lme&&zme<Lme.length;zme++)(Wme=Lme[zme])&&(Wme.__=Dme,jme=typeof Wme.type=="function"?Cme(Wme,jme,Vme):Sme(Vme,Wme,Wme,Lme,Wme.__e,jme));return jme}function Sme(Dme,jme,Vme,Wme,Lme,zme){var Ume,Gme,Jme;if(jme.__d!==void 0)Ume=jme.__d,jme.__d=void 0;else if(Vme==null||Lme!=zme||Lme.parentNode==null)e:if(zme==null||zme.parentNode!==Dme)Dme.appendChild(Lme),Ume=null;else{for(Gme=zme,Jme=0;(Gme=Gme.nextSibling)&&Jme<Wme.length;Jme+=2)if(Gme==Lme)break e;Dme.insertBefore(Lme,zme),Ume=zme}return Ume!==void 0?Ume:Lme.nextSibling}function Eme(Dme,jme,Vme){jme[0]==="-"?Dme.setProperty(jme,Vme):Dme[jme]=Vme==null?"":typeof Vme!="number"||dme.test(jme)?Vme:Vme+"px"}function xme(Dme,jme,Vme,Wme,Lme){var zme;e:if(jme==="style")if(typeof Vme=="string")Dme.style.cssText=Vme;else{if(typeof Wme=="string"&&(Dme.style.cssText=Wme=""),Wme)for(jme in Wme)Vme&&jme in Vme||Eme(Dme.style,jme,"");if(Vme)for(jme in Vme)Wme&&Vme[jme]===Wme[jme]||Eme(Dme.style,jme,Vme[jme])}else if(jme[0]==="o"&&jme[1]==="n")zme=jme!==(jme=jme.replace(/Capture$/,"")),jme=jme.toLowerCase()in Dme?jme.toLowerCase().slice(2):jme.slice(2),Dme.l||(Dme.l={}),Dme.l[jme+zme]=Vme,Vme?Wme||Dme.addEventListener(jme,zme?Ome:Tme,zme):Dme.removeEventListener(jme,zme?Ome:Tme,zme);else if(jme!=="dangerouslySetInnerHTML"){if(Lme)jme=jme.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(jme!=="href"&&jme!=="list"&&jme!=="form"&&jme!=="tabIndex"&&jme!=="download"&&jme in Dme)try{Dme[jme]=Vme??"";break e}catch{}typeof Vme=="function"||(Vme!=null&&(Vme!==!1||jme[0]==="a"&&jme[1]==="r")?Dme.setAttribute(jme,Vme):Dme.removeAttribute(jme))}}function Tme(Dme){this.l[Dme.type+!1](tme.event?tme.event(Dme):Dme)}function Ome(Dme){this.l[Dme.type+!0](tme.event?tme.event(Dme):Dme)}function Rme(Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme){var Yme,Qme,Xme,Kme,Zme,nbe,lbe,ibe,abe,obe,hbe,ube=jme.type;if(jme.constructor!==void 0)return null;Vme.__h!=null&&(Jme=Vme.__h,Gme=jme.__e=Vme.__e,jme.__h=null,zme=[Gme]),(Yme=tme.__b)&&Yme(jme);try{e:if(typeof ube=="function"){if(ibe=jme.props,abe=(Yme=ube.contextType)&&Wme[Yme.__c],obe=Yme?abe?abe.props.value:Yme.__:Wme,Vme.__c?lbe=(Qme=jme.__c=Vme.__c).__=Qme.__E:("prototype"in ube&&ube.prototype.render?jme.__c=Qme=new ube(ibe,obe):(jme.__c=Qme=new mme(ibe,obe),Qme.constructor=ube,Qme.render=kme),abe&&abe.sub(Qme),Qme.props=ibe,Qme.state||(Qme.state={}),Qme.context=obe,Qme.__n=Wme,Xme=Qme.__d=!0,Qme.__h=[]),Qme.__s==null&&(Qme.__s=Qme.state),ube.getDerivedStateFromProps!=null&&(Qme.__s==Qme.state&&(Qme.__s=ume({},Qme.__s)),ume(Qme.__s,ube.getDerivedStateFromProps(ibe,Qme.__s))),Kme=Qme.props,Zme=Qme.state,Xme)ube.getDerivedStateFromProps==null&&Qme.componentWillMount!=null&&Qme.componentWillMount(),Qme.componentDidMount!=null&&Qme.__h.push(Qme.componentDidMount);else{if(ube.getDerivedStateFromProps==null&&ibe!==Kme&&Qme.componentWillReceiveProps!=null&&Qme.componentWillReceiveProps(ibe,obe),!Qme.__e&&Qme.shouldComponentUpdate!=null&&Qme.shouldComponentUpdate(ibe,Qme.__s,obe)===!1||jme.__v===Vme.__v){Qme.props=ibe,Qme.state=Qme.__s,jme.__v!==Vme.__v&&(Qme.__d=!1),Qme.__v=jme,jme.__e=Vme.__e,jme.__k=Vme.__k,jme.__k.forEach(function(mbe){mbe&&(mbe.__=jme)}),Qme.__h.length&&Ume.push(Qme);break e}Qme.componentWillUpdate!=null&&Qme.componentWillUpdate(ibe,Qme.__s,obe),Qme.componentDidUpdate!=null&&Qme.__h.push(function(){Qme.componentDidUpdate(Kme,Zme,nbe)})}Qme.context=obe,Qme.props=ibe,Qme.state=Qme.__s,(Yme=tme.__r)&&Yme(jme),Qme.__d=!1,Qme.__v=jme,Qme.__P=Dme,Yme=Qme.render(Qme.props,Qme.state,Qme.context),Qme.state=Qme.__s,Qme.getChildContext!=null&&(Wme=ume(ume({},Wme),Qme.getChildContext())),Xme||Qme.getSnapshotBeforeUpdate==null||(nbe=Qme.getSnapshotBeforeUpdate(Kme,Zme)),hbe=Yme!=null&&Yme.type===bme&&Yme.key==null?Yme.props.children:Yme,$me(Dme,Array.isArray(hbe)?hbe:[hbe],jme,Vme,Wme,Lme,zme,Ume,Gme,Jme),Qme.base=jme.__e,jme.__h=null,Qme.__h.length&&Ume.push(Qme),lbe&&(Qme.__E=Qme.__=null),Qme.__e=!1}else zme==null&&jme.__v===Vme.__v?(jme.__k=Vme.__k,jme.__e=Vme.__e):jme.__e=Ime(Vme.__e,jme,Vme,Wme,Lme,zme,Ume,Jme);(Yme=tme.diffed)&&Yme(jme)}catch(mbe){jme.__v=null,(Jme||zme!=null)&&(jme.__e=Gme,jme.__h=!!Jme,zme[zme.indexOf(Gme)]=null),tme.__e(mbe,jme,Vme)}}function Nme(Dme,jme){tme.__c&&tme.__c(jme,Dme),Dme.some(function(Vme){try{Dme=Vme.__h,Vme.__h=[],Dme.some(function(Wme){Wme.call(Vme)})}catch(Wme){tme.__e(Wme,Vme.__v)}})}function Ime(Dme,jme,Vme,Wme,Lme,zme,Ume,Gme){var Jme,Yme,Qme,Xme=Vme.props,Kme=jme.props,Zme=jme.type,nbe=0;if(Zme==="svg"&&(Lme=!0),zme!=null){for(;nbe<zme.length;nbe++)if((Jme=zme[nbe])&&"setAttribute"in Jme==!!Zme&&(Zme?Jme.localName===Zme:Jme.nodeType===3)){Dme=Jme,zme[nbe]=null;break}}if(Dme==null){if(Zme===null)return document.createTextNode(Kme);Dme=Lme?document.createElementNS("http://www.w3.org/2000/svg",Zme):document.createElement(Zme,Kme.is&&Kme),zme=null,Gme=!1}if(Zme===null)Xme===Kme||Gme&&Dme.data===Kme||(Dme.data=Kme);else{if(zme=zme&&$P.call(Dme.childNodes),Yme=(Xme=Vme.props||sme).dangerouslySetInnerHTML,Qme=Kme.dangerouslySetInnerHTML,!Gme){if(zme!=null)for(Xme={},nbe=0;nbe<Dme.attributes.length;nbe++)Xme[Dme.attributes[nbe].name]=Dme.attributes[nbe].value;(Qme||Yme)&&(Qme&&(Yme&&Qme.__html==Yme.__html||Qme.__html===Dme.innerHTML)||(Dme.innerHTML=Qme&&Qme.__html||""))}if(function(lbe,ibe,abe,obe,hbe){var ube;for(ube in abe)ube==="children"||ube==="key"||ube in ibe||xme(lbe,ube,null,abe[ube],obe);for(ube in ibe)hbe&&typeof ibe[ube]!="function"||ube==="children"||ube==="key"||ube==="value"||ube==="checked"||abe[ube]===ibe[ube]||xme(lbe,ube,ibe[ube],abe[ube],obe)}(Dme,Kme,Xme,Lme,Gme),Qme)jme.__k=[];else if(nbe=jme.props.children,$me(Dme,Array.isArray(nbe)?nbe:[nbe],jme,Vme,Wme,Lme&&Zme!=="foreignObject",zme,Ume,zme?zme[0]:Vme.__k&&vme(Vme,0),Gme),zme!=null)for(nbe=zme.length;nbe--;)zme[nbe]!=null&&fme(zme[nbe]);Gme||("value"in Kme&&(nbe=Kme.value)!==void 0&&(nbe!==Xme.value||nbe!==Dme.value||Zme==="progress"&&!nbe)&&xme(Dme,"value",nbe,Xme.value,!1),"checked"in Kme&&(nbe=Kme.checked)!==void 0&&nbe!==Dme.checked&&xme(Dme,"checked",nbe,Xme.checked,!1))}return Dme}function Pme(Dme,jme,Vme){try{typeof Dme=="function"?Dme(jme):Dme.current=jme}catch(Wme){tme.__e(Wme,Vme)}}function Mme(Dme,jme,Vme){var Wme,Lme;if(tme.unmount&&tme.unmount(Dme),(Wme=Dme.ref)&&(Wme.current&&Wme.current!==Dme.__e||Pme(Wme,null,jme)),(Wme=Dme.__c)!=null){if(Wme.componentWillUnmount)try{Wme.componentWillUnmount()}catch(zme){tme.__e(zme,jme)}Wme.base=Wme.__P=null}if(Wme=Dme.__k)for(Lme=0;Lme<Wme.length;Lme++)Wme[Lme]&&Mme(Wme[Lme],jme,typeof Dme.type!="function");Vme||Dme.__e==null||fme(Dme.__e),Dme.__e=Dme.__d=void 0}function kme(Dme,jme,Vme){return this.constructor(Dme,Vme)}function Bme(Dme,jme,Vme){var Wme,Lme,zme;tme.__&&tme.__(Dme,jme),Lme=(Wme=typeof Vme=="function")?null:Vme&&Vme.__k||jme.__k,zme=[],Rme(jme,Dme=(!Wme&&Vme||jme).__k=pme(bme,null,[Dme]),Lme||sme,sme,jme.ownerSVGElement!==void 0,!Wme&&Vme?[Vme]:Lme?null:jme.firstChild?$P.call(jme.childNodes):null,zme,!Wme&&Vme?Vme:Lme?Lme.__e:jme.firstChild,Wme),Nme(zme,Dme)}$P=cme.slice,tme={__e:function(Dme,jme){for(var Vme,Wme,Lme;jme=jme.__;)if((Vme=jme.__c)&&!Vme.__)try{if((Wme=Vme.constructor)&&Wme.getDerivedStateFromError!=null&&(Vme.setState(Wme.getDerivedStateFromError(Dme)),Lme=Vme.__d),Vme.componentDidCatch!=null&&(Vme.componentDidCatch(Dme),Lme=Vme.__d),Lme)return Vme.__E=Vme}catch(zme){Dme=zme}throw Dme}},ame=0,nme=function(Dme){return Dme!=null&&Dme.constructor===void 0},mme.prototype.setState=function(Dme,jme){var Vme;Vme=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ume({},this.state),typeof Dme=="function"&&(Dme=Dme(ume({},Vme),this.props)),Dme&&ume(Vme,Dme),Dme!=null&&this.__v&&(jme&&this.__h.push(jme),yme(this))},mme.prototype.forceUpdate=function(Dme){this.__v&&(this.__e=!0,Dme&&this.__h.push(Dme),yme(this))},mme.prototype.render=bme,rme=[],ime=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_me.__r=0,lme=0,eme.Component=mme,eme.Fragment=bme,eme.cloneElement=function(Dme,jme,Vme){var Wme,Lme,zme,Ume=ume({},Dme.props);for(zme in jme)zme=="key"?Wme=jme[zme]:zme=="ref"?Lme=jme[zme]:Ume[zme]=jme[zme];return arguments.length>2&&(Ume.children=arguments.length>3?$P.call(arguments,2):Vme),hme(Dme.type,Ume,Wme||Dme.key,Lme||Dme.ref,null)},eme.createContext=function(Dme,jme){var Vme={__c:jme="__cC"+lme++,__:Dme,Consumer:function(Wme,Lme){return Wme.children(Lme)},Provider:function(Wme){var Lme,zme;return this.getChildContext||(Lme=[],(zme={})[jme]=this,this.getChildContext=function(){return zme},this.shouldComponentUpdate=function(Ume){this.props.value!==Ume.value&&Lme.some(yme)},this.sub=function(Ume){Lme.push(Ume);var Gme=Ume.componentWillUnmount;Ume.componentWillUnmount=function(){Lme.splice(Lme.indexOf(Ume),1),Gme&&Gme.call(Ume)}}),Wme.children}};return Vme.Provider.__=Vme.Consumer.contextType=Vme},eme.createElement=pme,eme.createRef=function(){return{current:null}},eme.h=pme,eme.hydrate=function Dme(jme,Vme){Bme(jme,Vme,Dme)},eme.isValidElement=nme,eme.options=tme,eme.render=Bme,eme.toChildArray=function Dme(jme,Vme){return Vme=Vme||[],jme==null||typeof jme=="boolean"||(Array.isArray(jme)?jme.some(function(Wme){Dme(Wme,Vme)}):Vme.push(jme)),Vme}}),Dm=function(x_,eme){return eme===void 0&&(eme=document),typeof x_=="string"?eme.querySelector(x_):(($P=x_)==null?void 0:$P.nodeType)===Node.ELEMENT_NODE?x_:null;var $P},Sm=class{constructor(x_,eme){eme===void 0&&(eme={}),this.uppy=x_,this.opts=eme}getPluginState(){const{plugins:x_}=this.uppy.getState();return x_[this.id]||{}}setPluginState(x_){const{plugins:eme}=this.uppy.getState();this.uppy.setState({plugins:{...eme,[this.id]:{...eme[this.id],...x_}}})}setOptions(x_){this.opts={...this.opts,...x_},this.setPluginState(),this.i18nInit()}i18nInit(){const x_=new oy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=x_.translate.bind(x_),this.i18nArray=x_.translateArray.bind(x_),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function xm(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var Cm=0;function Am(x_){return"__private_"+Cm+++"_"+x_}const{render:Om}=Em;var km=Am("updateUI");class Bm extends Sm{constructor(){super(...arguments),Object.defineProperty(this,km,{writable:!0,value:void 0})}mount(eme,$P){const tme=$P.id,ame=Dm(eme);if(ame){this.isTargetDOMEl=!0;const ime=document.createDocumentFragment();return xm(this,km)[km]=function(ome){let lme=null,sme=null;return function(){for(var cme=arguments.length,dme=new Array(cme),ume=0;ume<cme;ume++)dme[ume]=arguments[ume];return sme=dme,lme||(lme=Promise.resolve().then(()=>(lme=null,ome(...sme)))),lme}}(ome=>{this.uppy.getPlugin(this.id)&&(Om(this.render(ome),ime),this.afterUpdate())}),this.uppy.log(`Installing ${tme} to a DOM element '${eme}'`),this.opts.replaceTargetContent&&(ame.innerHTML=""),Om(this.render(this.uppy.getState()),ime),this.el=ime.firstElementChild,ame.appendChild(ime),this.onMount(),this.el}let nme;if(typeof eme=="object"&&eme instanceof Bm)nme=eme;else if(typeof eme=="function"){const ime=eme;this.uppy.iteratePlugins(ome=>{if(ome instanceof ime)return nme=ome,!1})}if(nme)return this.uppy.log(`Installing ${tme} to ${nme.id}`),this.parent=nme,this.el=nme.addTarget($P),this.onMount(),this.el;this.uppy.log(`Not installing ${tme}`);let rme=`Invalid target option given to ${tme}.`;throw rme+=typeof eme=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(rme)}update(eme){var $P,tme;this.el!=null&&(($P=(tme=xm(this,km))[km])==null||$P.call(tme,eme))}unmount(){var eme;this.isTargetDOMEl&&((eme=this.el)==null||eme.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Fm=Bm;const{debugLogger:Tm}=Oy;var _m$1=wm,Pm=wm,jm=Fm,Nm=Sm,Im=Tm;_m$1.Uppy=Pm,_m$1.UIPlugin=jm,_m$1.BasePlugin=Nm,_m$1.debugLogger=Im;class Lm extends Error{constructor(eme,$P){$P===void 0&&($P=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=eme,this.isNetworkError=!0,this.request=$P}}var Rm=Lm,Mm=function(){return fetch(...arguments).catch(x_=>{throw x_.name==="AbortError"?x_:new Rm(x_)})};class zm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var $m,Hm,Vm,Um,Wm,Gm=zm;function qm(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var Km=0;function Ym(x_){return"__private_"+Km+++"_"+x_}async function Xm(x_){if(x_.status===401)throw new Gm;const eme=x_.json();if(x_.status<200||x_.status>300){let $P=`Failed request with status: ${x_.status}. ${x_.statusText}`;try{const tme=await eme;$P=tme.message?`${$P} message: ${tme.message}`:$P,$P=tme.requestId?`${$P} request-Id: ${tme.requestId}`:$P}finally{throw new Error($P)}}return eme}var Zm=(Hm=Ym("getPostResponseFunc"),Vm=Ym("getUrl"),Um=Ym("errorHandler"),Wm=$m=class s6e{constructor(eme,$P){Object.defineProperty(this,Um,{value:Qm}),Object.defineProperty(this,Vm,{value:Jm}),Object.defineProperty(this,Hm,{writable:!0,value:tme=>ame=>tme?ame:this.onReceiveResponse(ame)}),this.uppy=eme,this.opts=$P,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:eme}=this.uppy.getState(),$P=this.opts.companionUrl;return(eme&&eme[$P]?eme[$P]:$P).replace(/\/$/,"")}headers(){const eme=this.opts.companionHeaders||{};return Promise.resolve({...s6e.defaultHeaders,...eme})}onReceiveResponse(eme){const $P=this.uppy.getState().companion||{},tme=this.opts.companionUrl,{headers:ame}=eme;return ame.has("i-am")&&ame.get("i-am")!==$P[tme]&&this.uppy.setState({companion:{...$P,[tme]:ame.get("i-am")}}),eme}preflight(eme){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(qm(this,Vm)[Vm](eme),{method:"OPTIONS"}).then($P=>($P.headers.has("access-control-allow-headers")&&(this.allowedHeaders=$P.headers.get("access-control-allow-headers").split(",").map(tme=>tme.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch($P=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${$P}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(eme){return Promise.all([this.preflight(eme),this.headers()]).then($P=>{let[tme,ame]=$P;return Object.keys(ame).forEach(nme=>{tme.includes(nme.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${nme}`),delete ame[nme])}),ame})}get(eme,$P){return this.preflightAndHeaders(eme).then(tme=>Mm(qm(this,Vm)[Vm](eme),{method:"get",headers:tme,credentials:this.opts.companionCookiesRule||"same-origin"})).then(qm(this,Hm)[Hm]($P)).then(Xm).catch(qm(this,Um)[Um]("get",eme))}post(eme,$P,tme){const ame="post";return this.preflightAndHeaders(eme).then(nme=>Mm(qm(this,Vm)[Vm](eme),{method:ame,headers:nme,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify($P)})).then(qm(this,Hm)[Hm](tme)).then(Xm).catch(qm(this,Um)[Um](ame,eme))}delete(eme,$P,tme){const ame="delete";return this.preflightAndHeaders(eme).then(nme=>Mm(`${this.hostname}/${eme}`,{method:ame,headers:nme,credentials:this.opts.companionCookiesRule||"same-origin",body:$P?JSON.stringify($P):null})).then(qm(this,Hm)[Hm](tme)).then(Xm).catch(qm(this,Um)[Um](ame,eme))}},$m.VERSION="2.0.4",$m.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${$m.VERSION}`},Wm);function Jm(x_){return/^(https?:|)\/\//.test(x_)?x_:`${this.hostname}/${x_}`}function Qm(x_,eme){return $P=>{var tme;if((tme=$P)==null||!tme.isAuthError){const ame=new Error(`Could not ${x_} ${qm(this,Vm)[Vm](eme)}`);ame.cause=$P,$P=ame}return Promise.reject($P)}}var eb={setItem:(x_,eme)=>new Promise($P=>{localStorage.setItem(x_,eme),$P()}),getItem:x_=>Promise.resolve(localStorage.getItem(x_)),removeItem:x_=>new Promise(eme=>{localStorage.removeItem(x_),eme()})},tb,nb,rb,ob,ib;let ab,ub;function sb(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var lb=0;function cb(x_){return"__private_"+lb+++"_"+x_}var fb=(tb=cb("queued"),nb=cb("emitter"),rb=cb("isOpen"),ob=cb("socket"),ib=cb("handleMessage"),ab=Symbol.for("uppy test: getSocket"),ub=Symbol.for("uppy test: getQueued"),class{constructor(x_){Object.defineProperty(this,tb,{writable:!0,value:[]}),Object.defineProperty(this,nb,{writable:!0,value:ay()}),Object.defineProperty(this,rb,{writable:!0,value:!1}),Object.defineProperty(this,ob,{writable:!0,value:void 0}),Object.defineProperty(this,ib,{writable:!0,value:eme=>{try{const $P=JSON.parse(eme.data);this.emit($P.action,$P.payload)}catch($P){console.log($P)}}}),this.opts=x_,x_&&x_.autoOpen===!1||this.open()}get isOpen(){return sb(this,rb)[rb]}[ab](){return sb(this,ob)[ob]}[ub](){return sb(this,tb)[tb]}open(){sb(this,ob)[ob]=new WebSocket(this.opts.target),sb(this,ob)[ob].onopen=()=>{for(sb(this,rb)[rb]=!0;sb(this,tb)[tb].length>0&&sb(this,rb)[rb];){const x_=sb(this,tb)[tb].shift();this.send(x_.action,x_.payload)}},sb(this,ob)[ob].onclose=()=>{sb(this,rb)[rb]=!1},sb(this,ob)[ob].onmessage=sb(this,ib)[ib]}close(){var x_;(x_=sb(this,ob)[ob])==null||x_.close()}send(x_,eme){sb(this,rb)[rb]?sb(this,ob)[ob].send(JSON.stringify({action:x_,payload:eme})):sb(this,tb)[tb].push({action:x_,payload:eme})}on(x_,eme){sb(this,nb)[nb].on(x_,eme)}emit(x_,eme){sb(this,nb)[nb].emit(x_,eme)}once(x_,eme){sb(this,nb)[nb].once(x_,eme)}}),db={RequestClient:Zm,Provider:class extends Zm{constructor(x_,eme){super(x_,eme),this.provider=eme.provider,this.id=this.provider,this.name=this.opts.name||($P=>$P.split("-").map(tme=>tme.charAt(0).toUpperCase()+tme.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(x_=>{let[eme,$P]=x_;const tme={};return $P&&(tme["uppy-auth-token"]=$P),this.companionKeysParams&&(tme["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...eme,...tme}})}onReceiveResponse(x_){x_=super.onReceiveResponse(x_);const eme=this.uppy.getPlugin(this.pluginId),$P=eme.getPluginState().authenticated?x_.status!==401:x_.status<400;return eme.setPluginState({authenticated:$P}),x_}setAuthToken(x_){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,x_)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(x_){return x_===void 0&&(x_={}),this.preAuthToken&&(x_.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(x_)}`}fileUrl(x_){return`${this.hostname}/${this.id}/get/${x_}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(x_=>{this.preAuthToken=x_.token}).catch(x_=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${x_}`,"warning")}):Promise.resolve()}list(x_){return this.get(`${this.id}/list/${x_||""}`)}logout(){return this.get(`${this.id}/logout`).then(x_=>Promise.all([x_,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(x_=>{let[eme]=x_;return eme})}static initPlugin(x_,eme,$P){if(x_.type="acquirer",x_.files=[],$P&&(x_.opts={...$P,...eme}),eme.serverUrl||eme.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(eme.companionAllowedHosts){const tme=eme.companionAllowedHosts;if(!(typeof tme=="string"||Array.isArray(tme)||tme instanceof RegExp))throw new TypeError(`${x_.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);x_.opts.companionAllowedHosts=tme}else/^(?!https?:\/\/).*$/i.test(eme.companionUrl)?x_.opts.companionAllowedHosts=`https://${eme.companionUrl.replace(/^\/\//,"")}`:x_.opts.companionAllowedHosts=new URL(eme.companionUrl).origin;x_.storage=x_.opts.storage||eb}},SearchProvider:class extends Zm{constructor(x_,eme){super(x_,eme),this.provider=eme.provider,this.id=this.provider,this.name=this.opts.name||($P=>$P.split("-").map(tme=>tme.charAt(0).toUpperCase()+tme.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(x_){return`${this.hostname}/search/${this.id}/get/${x_}`}search(x_,eme){return eme=eme?`&${eme}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(x_)}${eme}`)}},Socket:fb},pb,hb,gb=eg(function(x_,eme,$P){const{progress:tme,bytesUploaded:ame,bytesTotal:nme}=eme;tme&&(x_.uppy.log(`Upload progress: ${tme}`),x_.uppy.emit("upload-progress",$P,{uploader:x_,bytesUploaded:ame,bytesTotal:nme}))},300,{leading:!0,trailing:!0});function vb(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var yb=0;function mb(x_){return"__private_"+yb+++"_"+x_}var bb=(pb=mb("emitter"),hb=mb("events"),class{constructor(x_){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),vb(this,pb)[pb]=x_}on(x_,eme){return vb(this,hb)[hb].push([x_,eme]),vb(this,pb)[pb].on(x_,eme)}remove(){for(const[x_,eme]of vb(this,hb)[hb].splice(0))vb(this,pb)[pb].off(x_,eme)}});function wb(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var Eb=0;function Db(x_){return"__private_"+Eb+++"_"+x_}var Sb=Db("aliveTimer"),xb=Db("isDone"),Cb=Db("onTimedOut"),Ab=Db("timeout"),Ob=class{constructor(x_,eme){Object.defineProperty(this,Sb,{writable:!0,value:void 0}),Object.defineProperty(this,xb,{writable:!0,value:!1}),Object.defineProperty(this,Cb,{writable:!0,value:void 0}),Object.defineProperty(this,Ab,{writable:!0,value:void 0}),wb(this,Ab)[Ab]=x_,wb(this,Cb)[Cb]=eme}progress(){wb(this,xb)[xb]||wb(this,Ab)[Ab]>0&&(clearTimeout(wb(this,Sb)[Sb]),wb(this,Sb)[Sb]=setTimeout(wb(this,Cb)[Cb],wb(this,Ab)[Ab]))}done(){wb(this,xb)[xb]||(clearTimeout(wb(this,Sb)[Sb]),wb(this,Sb)[Sb]=null,wb(this,xb)[xb]=!0)}};function kb(x_,eme){if(!Object.prototype.hasOwnProperty.call(x_,eme))throw new TypeError("attempted to use private field on non-instance");return x_}var Bb=0;function Fb(x_){return"__private_"+Bb+++"_"+x_}function Tb(){return new Error("Cancelled")}var _b$1=Fb("activeRequests"),Pb=Fb("queuedHandlers"),jb=Fb("call"),Nb=Fb("queueNext"),Ib=Fb("next"),Lb=Fb("queue"),Rb=Fb("dequeue");function Mb(x_){kb(this,_b$1)[_b$1]+=1;let eme,$P=!1;try{eme=x_()}catch(tme){throw kb(this,_b$1)[_b$1]-=1,tme}return{abort:()=>{$P||($P=!0,kb(this,_b$1)[_b$1]-=1,eme(),kb(this,Nb)[Nb]())},done:()=>{$P||($P=!0,kb(this,_b$1)[_b$1]-=1,kb(this,Nb)[Nb]())}}}function zb(){queueMicrotask(()=>kb(this,Ib)[Ib]())}function $b(){if(kb(this,_b$1)[_b$1]>=this.limit||kb(this,Pb)[Pb].length===0)return;const x_=kb(this,Pb)[Pb].shift(),eme=kb(this,jb)[jb](x_.fn);x_.abort=eme.abort,x_.done=eme.done}function Hb(x_,eme){eme===void 0&&(eme={});const $P={fn:x_,priority:eme.priority||0,abort:()=>{kb(this,Rb)[Rb]($P)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},tme=kb(this,Pb)[Pb].findIndex(ame=>$P.priority>ame.priority);return tme===-1?kb(this,Pb)[Pb].push($P):kb(this,Pb)[Pb].splice(tme,0,$P),$P}function Vb(x_){const eme=kb(this,Pb)[Pb].indexOf(x_);eme!==-1&&kb(this,Pb)[Pb].splice(eme,1)}var Ub={RateLimitedQueue:class{constructor(x_){Object.defineProperty(this,Rb,{value:Vb}),Object.defineProperty(this,Lb,{value:Hb}),Object.defineProperty(this,Ib,{value:$b}),Object.defineProperty(this,Nb,{value:zb}),Object.defineProperty(this,jb,{value:Mb}),Object.defineProperty(this,_b$1,{writable:!0,value:0}),Object.defineProperty(this,Pb,{writable:!0,value:[]}),this.limit=typeof x_!="number"||x_===0?1/0:x_}run(x_,eme){return kb(this,_b$1)[_b$1]<this.limit?kb(this,jb)[jb](x_):kb(this,Lb)[Lb](x_,eme)}wrapPromiseFunction(x_,eme){var $P=this;return function(){for(var tme=arguments.length,ame=new Array(tme),nme=0;nme<tme;nme++)ame[nme]=arguments[nme];let rme;const ime=new Promise((ome,lme)=>{rme=$P.run(()=>{let sme,cme;try{cme=Promise.resolve(x_(...ame))}catch(dme){cme=Promise.reject(dme)}return cme.then(dme=>{sme?lme(sme):(rme.done(),ome(dme))},dme=>{sme?lme(sme):(rme.done(),lme(dme))}),()=>{sme=Tb()}},eme)});return ime.abort=()=>{rme.abort()},ime}}},internalRateLimitedQueue:Symbol("__queue")},Wb,Gb,qb=function(x_){return!!x_&&(x_.readyState!==0&&x_.readyState!==4||x_.status===0)},Kb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Yb}=By,{Provider:Xb,RequestClient:Zb,Socket:Jb}=db,{RateLimitedQueue:Qb,internalRateLimitedQueue:ew}=Ub;function tw(x_,eme){let $P=eme;return $P||($P=new Error("Upload error")),typeof $P=="string"&&($P=new Error($P)),$P instanceof Error||($P=Object.assign(new Error("Upload error"),{data:$P})),qb(x_)?($P=new Rm($P,x_),$P):($P.request=x_,$P)}function nw(x_){return x_.data.slice(0,x_.data.size,x_.meta.type)}var rw=(Gb=Wb=class extends Sm{constructor(x_,eme){super(x_,eme),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Kb;const $P={formData:!0,fieldName:eme.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(tme){let ame={};try{ame=JSON.parse(tme)}catch(nme){x_.log(nme)}return ame},getResponseError(tme,ame){let nme=new Error("Upload error");return qb(ame)&&(nme=new Rm(nme,ame)),nme},validateStatus:tme=>tme>=200&&tme<300};if(this.opts={...$P,...eme},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),ew in this.opts?this.requests=this.opts[ew]:this.requests=new Qb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(x_){const eme=this.uppy.getState().xhrUpload,{headers:$P}=this.opts,tme={...this.opts,...eme||{},...x_.xhrUpload||{},headers:{}};return typeof $P=="function"?tme.headers=$P(x_):Object.assign(tme.headers,this.opts.headers),eme&&Object.assign(tme.headers,eme.headers),x_.xhrUpload&&Object.assign(tme.headers,x_.xhrUpload.headers),tme}addMetadata(x_,eme,$P){(Array.isArray($P.metaFields)?$P.metaFields:Object.keys(eme)).forEach(tme=>{x_.append(tme,eme[tme])})}createFormDataUpload(x_,eme){const $P=new FormData;this.addMetadata($P,x_.meta,eme);const tme=nw(x_);return x_.name?$P.append(eme.fieldName,tme,x_.meta.name):$P.append(eme.fieldName,tme),$P}createBundledUpload(x_,eme){const $P=new FormData,{meta:tme}=this.uppy.getState();return this.addMetadata($P,tme,eme),x_.forEach(ame=>{const nme=this.getOptions(ame),rme=nw(ame);ame.name?$P.append(nme.fieldName,rme,ame.name):$P.append(nme.fieldName,rme)}),$P}upload(x_,eme,$P){const tme=this.getOptions(x_);return this.uppy.log(`uploading ${eme} of ${$P}`),new Promise((ame,nme)=>{this.uppy.emit("upload-started",x_);const rme=tme.formData?this.createFormDataUpload(x_,tme):x_.data,ime=new XMLHttpRequest;this.uploaderEvents[x_.id]=new bb(this.uppy);const ome=new Ob(tme.timeout,()=>{ime.abort(),sme.done();const cme=new Error(this.i18n("timedOut",{seconds:Math.ceil(tme.timeout/1e3)}));this.uppy.emit("upload-error",x_,cme),nme(cme)}),lme=Yb();ime.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${lme} started`)}),ime.upload.addEventListener("progress",cme=>{this.uppy.log(`[XHRUpload] ${lme} progress: ${cme.loaded} / ${cme.total}`),ome.progress(),cme.lengthComputable&&this.uppy.emit("upload-progress",x_,{uploader:this,bytesUploaded:cme.loaded,bytesTotal:cme.total})}),ime.addEventListener("load",cme=>{if(this.uppy.log(`[XHRUpload] ${lme} finished`),ome.done(),sme.done(),this.uploaderEvents[x_.id]&&(this.uploaderEvents[x_.id].remove(),this.uploaderEvents[x_.id]=null),tme.validateStatus(cme.target.status,ime.responseText,ime)){const pme=tme.getResponseData(ime.responseText,ime),hme=pme[tme.responseUrlFieldName],bme={status:cme.target.status,body:pme,uploadURL:hme};return this.uppy.emit("upload-success",x_,bme),hme&&this.uppy.log(`Download ${x_.name} from ${hme}`),ame(x_)}const dme=tme.getResponseData(ime.responseText,ime),ume=tw(ime,tme.getResponseError(ime.responseText,ime)),fme={status:cme.target.status,body:dme};return this.uppy.emit("upload-error",x_,ume,fme),nme(ume)}),ime.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${lme} errored`),ome.done(),sme.done(),this.uploaderEvents[x_.id]&&(this.uploaderEvents[x_.id].remove(),this.uploaderEvents[x_.id]=null);const cme=tw(ime,tme.getResponseError(ime.responseText,ime));return this.uppy.emit("upload-error",x_,cme),nme(cme)}),ime.open(tme.method.toUpperCase(),tme.endpoint,!0),ime.withCredentials=tme.withCredentials,tme.responseType!==""&&(ime.responseType=tme.responseType);const sme=this.requests.run(()=>{this.uppy.emit("upload-started",x_);const cme=this.getOptions(x_);return Object.keys(cme.headers).forEach(dme=>{ime.setRequestHeader(dme,cme.headers[dme])}),ime.send(rme),()=>{ome.done(),ime.abort()}});this.onFileRemove(x_.id,()=>{sme.abort(),nme(new Error("File removed"))}),this.onCancelAll(x_.id,()=>{sme.abort(),nme(new Error("Upload cancelled"))})})}uploadRemote(x_){const eme=this.getOptions(x_);return new Promise(($P,tme)=>{this.uppy.emit("upload-started",x_);const ame={};(Array.isArray(eme.metaFields)?eme.metaFields:Object.keys(x_.meta)).forEach(nme=>{ame[nme]=x_.meta[nme]}),new(x_.remote.providerOptions.provider?Xb:Zb)(this.uppy,x_.remote.providerOptions).post(x_.remote.url,{...x_.remote.body,endpoint:eme.endpoint,size:x_.data.size,fieldname:eme.fieldName,metadata:ame,httpMethod:eme.method,useFormData:eme.formData,headers:eme.headers}).then(nme=>{const{token:rme}=nme,ime=function(sme){const cme=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(sme)[1];return`${/^http:\/\//i.test(sme)?"ws":"wss"}://${cme}`}(x_.remote.companionUrl),ome=new Jb({target:`${ime}/api/${rme}`,autoOpen:!1});this.uploaderEvents[x_.id]=new bb(this.uppy),this.onFileRemove(x_.id,()=>{ome.send("cancel",{}),lme.abort(),$P(`upload ${x_.id} was removed`)}),this.onCancelAll(x_.id,()=>{ome.send("cancel",{}),lme.abort(),$P(`upload ${x_.id} was canceled`)}),this.onRetry(x_.id,()=>{ome.send("pause",{}),ome.send("resume",{})}),this.onRetryAll(x_.id,()=>{ome.send("pause",{}),ome.send("resume",{})}),ome.on("progress",sme=>gb(this,sme,x_)),ome.on("success",sme=>{const cme=eme.getResponseData(sme.response.responseText,sme.response),dme=cme[eme.responseUrlFieldName],ume={status:sme.response.status,body:cme,uploadURL:dme};return this.uppy.emit("upload-success",x_,ume),lme.done(),this.uploaderEvents[x_.id]&&(this.uploaderEvents[x_.id].remove(),this.uploaderEvents[x_.id]=null),$P()}),ome.on("error",sme=>{const cme=sme.response,dme=cme?eme.getResponseError(cme.responseText,cme):Object.assign(new Error(sme.error.message),{cause:sme.error});this.uppy.emit("upload-error",x_,dme),lme.done(),this.uploaderEvents[x_.id]&&(this.uploaderEvents[x_.id].remove(),this.uploaderEvents[x_.id]=null),tme(dme)});const lme=this.requests.run(()=>(ome.open(),x_.isPaused&&ome.send("pause",{}),()=>ome.close()))}).catch(nme=>{this.uppy.emit("upload-error",x_,nme),tme(nme)})})}uploadBundle(x_){return new Promise((eme,$P)=>{const{endpoint:tme}=this.opts,{method:ame}=this.opts,nme=this.uppy.getState().xhrUpload,rme=this.createBundledUpload(x_,{...this.opts,...nme||{}}),ime=new XMLHttpRequest,ome=new Ob(this.opts.timeout,()=>{ime.abort();const sme=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));lme(sme),$P(sme)}),lme=sme=>{x_.forEach(cme=>{this.uppy.emit("upload-error",cme,sme)})};ime.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),ome.progress()}),ime.upload.addEventListener("progress",sme=>{ome.progress(),sme.lengthComputable&&x_.forEach(cme=>{this.uppy.emit("upload-progress",cme,{uploader:this,bytesUploaded:sme.loaded/sme.total*cme.size,bytesTotal:cme.size})})}),ime.addEventListener("load",sme=>{if(ome.done(),this.opts.validateStatus(sme.target.status,ime.responseText,ime)){const dme=this.opts.getResponseData(ime.responseText,ime),ume={status:sme.target.status,body:dme};return x_.forEach(fme=>{this.uppy.emit("upload-success",fme,ume)}),eme()}const cme=this.opts.getResponseError(ime.responseText,ime)||new Error("Upload error");return cme.request=ime,lme(cme),$P(cme)}),ime.addEventListener("error",()=>{ome.done();const sme=this.opts.getResponseError(ime.responseText,ime)||new Error("Upload error");return lme(sme),$P(sme)}),this.uppy.on("cancel-all",()=>{ome.done(),ime.abort()}),ime.open(ame.toUpperCase(),tme,!0),ime.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(ime.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(sme=>{ime.setRequestHeader(sme,this.opts.headers[sme])}),ime.send(rme),x_.forEach(sme=>{this.uppy.emit("upload-started",sme)})})}uploadFiles(x_){const eme=x_.map(($P,tme)=>{const ame=parseInt(tme,10)+1,nme=x_.length;return $P.error?Promise.reject(new Error($P.error)):$P.isRemote?this.uploadRemote($P,ame,nme):this.upload($P,ame,nme)});return function($P){const tme=[],ame=[];function nme(ime){tme.push(ime)}function rme(ime){ame.push(ime)}return Promise.all($P.map(ime=>ime.then(nme,rme))).then(()=>({successful:tme,failed:ame}))}(eme)}onFileRemove(x_,eme){this.uploaderEvents[x_].on("file-removed",$P=>{x_===$P.id&&eme($P.id)})}onRetry(x_,eme){this.uploaderEvents[x_].on("upload-retry",$P=>{x_===$P&&eme()})}onRetryAll(x_,eme){this.uploaderEvents[x_].on("retry-all",()=>{this.uppy.getFile(x_)&&eme()})}onCancelAll(x_,eme){this.uploaderEvents[x_].on("cancel-all",()=>{this.uppy.getFile(x_)&&eme()})}handleUpload(x_){if(x_.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[ew]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const eme=x_.map($P=>this.uppy.getFile($P));if(this.opts.bundle){if(eme.some($P=>$P.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(eme)}return this.uploadFiles(eme).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:x_}=this.uppy.getState();this.uppy.setState({capabilities:{...x_,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:x_}=this.uppy.getState();this.uppy.setState({capabilities:{...x_,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Wb.VERSION="2.0.6",Gb),ow=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iw(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var aw,uw,sw=function(x_){return x_&&x_.Math==Math&&x_},lw=sw(typeof globalThis=="object"&&globalThis)||sw(typeof window=="object"&&window)||sw(typeof self=="object"&&self)||sw(typeof ow=="object"&&ow)||function(){return this}()||Function("return this")(),cw=Object.defineProperty,fw=function(x_,eme){try{cw(lw,x_,{value:eme,configurable:!0,writable:!0})}catch{lw[x_]=eme}return eme},dw=lw["__core-js_shared__"]||fw("__core-js_shared__",{}),pw=iw(function(x_){(x_.exports=function(eme,$P){return dw[eme]||(dw[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hw=Function.prototype,gw=hw.bind,vw=hw.call,yw=gw&&gw.bind(vw),mw=gw?function(x_){return x_&&yw(vw,x_)}:function(x_){return x_&&function(){return vw.apply(x_,arguments)}},bw=lw.TypeError,ww=function(x_){if(x_==null)throw bw("Can't call method on "+x_);return x_},Ew=lw.Object,Dw=function(x_){return Ew(ww(x_))},Sw=mw({}.hasOwnProperty),xw=Object.hasOwn||function(x_,eme){return Sw(Dw(x_),eme)},Cw=0,Aw=Math.random(),Ow=mw(1 .toString),kw=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+Ow(++Cw+Aw,36)},Bw=function(x_){return typeof x_=="function"},Fw=function(x_){return Bw(x_)?x_:void 0},Tw=function(x_,eme){return arguments.length<2?Fw(lw[x_]):lw[x_]&&lw[x_][eme]},_w$1=Tw("navigator","userAgent")||"",Pw=lw.process,jw=lw.Deno,Nw=Pw&&Pw.versions||jw&&jw.version,Iw=Nw&&Nw.v8;Iw&&(uw=(aw=Iw.split("."))[0]>0&&aw[0]<4?1:+(aw[0]+aw[1])),!uw&&_w$1&&(!(aw=_w$1.match(/Edge\/(\d+)/))||aw[1]>=74)&&(aw=_w$1.match(/Chrome\/(\d+)/))&&(uw=+aw[1]);var Lw=uw,Rw=function(x_){try{return!!x_()}catch{return!0}},Mw=!!Object.getOwnPropertySymbols&&!Rw(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&Lw&&Lw<41}),zw=Mw&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$w=pw("wks"),Hw=lw.Symbol,Vw=Hw&&Hw.for,Uw=zw?Hw:Hw&&Hw.withoutSetter||kw,Ww=function(x_){if(!xw($w,x_)||!Mw&&typeof $w[x_]!="string"){var eme="Symbol."+x_;Mw&&xw(Hw,x_)?$w[x_]=Hw[x_]:$w[x_]=zw&&Vw?Vw(eme):Uw(eme)}return $w[x_]},Gw={};Gw[Ww("toStringTag")]="z";var qw=String(Gw)==="[object z]",Kw=!Rw(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Yw=function(x_){return typeof x_=="object"?x_!==null:Bw(x_)},Xw=lw.document,Zw=Yw(Xw)&&Yw(Xw.createElement),Jw=function(x_){return Zw?Xw.createElement(x_):{}},Qw=!Kw&&!Rw(function(){return Object.defineProperty(Jw("div"),"a",{get:function(){return 7}}).a!=7}),eE=lw.String,tE=lw.TypeError,nE=function(x_){if(Yw(x_))return x_;throw tE(eE(x_)+" is not an object")},rE=Function.prototype.call,oE=rE.bind?rE.bind(rE):function(){return rE.apply(rE,arguments)},iE=mw({}.isPrototypeOf),aE=lw.Object,uE=zw?function(x_){return typeof x_=="symbol"}:function(x_){var eme=Tw("Symbol");return Bw(eme)&&iE(eme.prototype,aE(x_))},sE=lw.String,lE=function(x_){try{return sE(x_)}catch{return"Object"}},cE=lw.TypeError,fE=function(x_){if(Bw(x_))return x_;throw cE(lE(x_)+" is not a function")},dE=function(x_,eme){var $P=x_[eme];return $P==null?void 0:fE($P)},pE=lw.TypeError,hE=lw.TypeError,gE=Ww("toPrimitive"),vE=function(x_){var eme=function($P,tme){if(!Yw($P)||uE($P))return $P;var ame,nme=dE($P,gE);if(nme){if(ame=oE(nme,$P,tme),!Yw(ame)||uE(ame))return ame;throw hE("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(Bw(ome=rme.toString)&&!Yw(lme=oE(ome,rme))||Bw(ome=rme.valueOf)&&!Yw(lme=oE(ome,rme)))return lme;throw pE("Can't convert object to primitive value")}($P)}(x_,"string");return uE(eme)?eme:eme+""},yE=lw.TypeError,mE=Object.defineProperty,bE={f:Kw?mE:function(x_,eme,$P){if(nE(x_),eme=vE(eme),nE($P),Qw)try{return mE(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw yE("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},wE=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},EE=Kw?function(x_,eme,$P){return bE.f(x_,eme,wE(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},DE=mw(Function.toString);Bw(dw.inspectSource)||(dw.inspectSource=function(x_){return DE(x_)});var SE,xE,CE,AE=dw.inspectSource,OE=lw.WeakMap,kE=Bw(OE)&&/native code/.test(AE(OE)),BE=pw("keys"),FE=function(x_){return BE[x_]||(BE[x_]=kw(x_))},TE={},_E=lw.TypeError,PE=lw.WeakMap;if(kE||dw.state){var jE=dw.state||(dw.state=new PE),NE=mw(jE.get),IE=mw(jE.has),LE=mw(jE.set);SE=function(x_,eme){if(IE(jE,x_))throw new _E("Object already initialized");return eme.facade=x_,LE(jE,x_,eme),eme},xE=function(x_){return NE(jE,x_)||{}},CE=function(x_){return IE(jE,x_)}}else{var RE=FE("state");TE[RE]=!0,SE=function(x_,eme){if(xw(x_,RE))throw new _E("Object already initialized");return eme.facade=x_,EE(x_,RE,eme),eme},xE=function(x_){return xw(x_,RE)?x_[RE]:{}},CE=function(x_){return xw(x_,RE)}}var ME={set:SE,get:xE,has:CE,enforce:function(x_){return CE(x_)?xE(x_):SE(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!Yw(eme)||($P=xE(eme)).type!==x_)throw _E("Incompatible receiver, "+x_+" required");return $P}}},zE=Function.prototype,$E=Kw&&Object.getOwnPropertyDescriptor,HE=xw(zE,"name"),VE={EXISTS:HE,PROPER:HE&&(function(){}).name==="something",CONFIGURABLE:HE&&(!Kw||Kw&&$E(zE,"name").configurable)},UE=iw(function(x_){var eme=VE.CONFIGURABLE,$P=ME.get,tme=ME.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;Bw(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xw(ime,"name")||eme&&ime.name!==ume)&&EE(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==lw?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:EE(nme,rme,ime)):cme?nme[rme]=ime:fw(rme,ime)})(Function.prototype,"toString",function(){return Bw(this)&&$P(this).source||AE(this)})}),WE=mw({}.toString),GE=mw("".slice),qE=function(x_){return GE(WE(x_),8,-1)},KE=Ww("toStringTag"),YE=lw.Object,XE=qE(function(){return arguments}())=="Arguments",ZE=qw?qE:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=YE(x_),KE))=="string"?$P:XE?qE(eme):(tme=qE(eme))=="Object"&&Bw(eme.callee)?"Arguments":tme},JE=qw?{}.toString:function(){return"[object "+ZE(this)+"]"};qw||UE(Object.prototype,"toString",JE,{unsafe:!0});var QE={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eD=Jw("span").classList,tD=eD&&eD.constructor&&eD.constructor.prototype,nD=tD===Object.prototype?void 0:tD,rD=mw(mw.bind),oD=function(x_,eme){return fE(x_),eme===void 0?x_:rD?rD(x_,eme):function(){return x_.apply(eme,arguments)}},iD=lw.Object,aD=mw("".split),uD=Rw(function(){return!iD("z").propertyIsEnumerable(0)})?function(x_){return qE(x_)=="String"?aD(x_,""):iD(x_)}:iD,sD=Math.ceil,lD=Math.floor,cD=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?lD:sD)(eme)},fD=Math.min,dD=function(x_){return x_>0?fD(cD(x_),9007199254740991):0},pD=function(x_){return dD(x_.length)},hD=Array.isArray||function(x_){return qE(x_)=="Array"},gD=function(){},vD=[],yD=Tw("Reflect","construct"),mD=/^\s*(?:class|function)\b/,bD=mw(mD.exec),wD=!mD.exec(gD),ED=function(x_){if(!Bw(x_))return!1;try{return yD(gD,vD,x_),!0}catch{return!1}},DD=!yD||Rw(function(){var x_;return ED(ED.call)||!ED(Object)||!ED(function(){x_=!0})||x_})?function(x_){if(!Bw(x_))return!1;switch(ZE(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wD||!!bD(mD,AE(x_))}:ED,SD=Ww("species"),xD=lw.Array,CD=function(x_,eme){return new(function($P){var tme;return hD($P)&&(tme=$P.constructor,(DD(tme)&&(tme===xD||hD(tme.prototype))||Yw(tme)&&(tme=tme[SD])===null)&&(tme=void 0)),tme===void 0?xD:tme}(x_))(eme===0?0:eme)},AD=mw([].push),OD=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=Dw(ome),pme=uD(fme),hme=oD(lme,sme),bme=pD(pme),mme=0,vme=cme||CD,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:AD(gme,dme)}else switch(x_){case 4:return!1;case 7:AD(gme,dme)}return nme?-1:tme||ame?ame:gme}},kD={forEach:OD(0),map:OD(1),filter:OD(2),some:OD(3),every:OD(4),find:OD(5),findIndex:OD(6),filterReject:OD(7)},BD=function(x_,eme){var $P=[][x_];return!!$P&&Rw(function(){$P.call(null,eme||function(){throw 1},1)})},FD=kD.forEach,TD=BD("forEach")?[].forEach:function(x_){return FD(this,x_,arguments.length>1?arguments[1]:void 0)},_D=function(x_){if(x_&&x_.forEach!==TD)try{EE(x_,"forEach",TD)}catch{x_.forEach=TD}};for(var PD in QE)QE[PD]&&_D(lw[PD]&&lw[PD].prototype);_D(nD);var jD={}.propertyIsEnumerable,ND=Object.getOwnPropertyDescriptor,ID=ND&&!jD.call({1:2},1)?function(x_){var eme=ND(this,x_);return!!eme&&eme.enumerable}:jD,LD={f:ID},RD=function(x_){return uD(ww(x_))},MD=Object.getOwnPropertyDescriptor,zD={f:Kw?MD:function(x_,eme){if(x_=RD(x_),eme=vE(eme),Qw)try{return MD(x_,eme)}catch{}if(xw(x_,eme))return wE(!oE(LD.f,x_,eme),x_[eme])}},$D=Math.max,HD=Math.min,VD=function(x_,eme){var $P=cD(x_);return $P<0?$D($P+eme,0):HD($P,eme)},UD=function(x_){return function(eme,$P,tme){var ame,nme=RD(eme),rme=pD(nme),ime=VD(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},WD={includes:UD(!0),indexOf:UD(!1)},GD=WD.indexOf,qD=mw([].push),KD=function(x_,eme){var $P,tme=RD(x_),ame=0,nme=[];for($P in tme)!xw(TE,$P)&&xw(tme,$P)&&qD(nme,$P);for(;eme.length>ame;)xw(tme,$P=eme[ame++])&&(~GD(nme,$P)||qD(nme,$P));return nme},YD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XD=YD.concat("length","prototype"),ZD={f:Object.getOwnPropertyNames||function(x_){return KD(x_,XD)}},JD={f:Object.getOwnPropertySymbols},QD=mw([].concat),eS=Tw("Reflect","ownKeys")||function(x_){var eme=ZD.f(nE(x_)),$P=JD.f;return $P?QD(eme,$P(x_)):eme},tS=function(x_,eme){for(var $P=eS(eme),tme=bE.f,ame=zD.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];xw(x_,rme)||tme(x_,rme,ame(eme,rme))}},nS=/#|\.prototype\./,rS=function(x_,eme){var $P=iS[oS(x_)];return $P==uS||$P!=aS&&(Bw(eme)?Rw(eme):!!eme)},oS=rS.normalize=function(x_){return String(x_).replace(nS,".").toLowerCase()},iS=rS.data={},aS=rS.NATIVE="N",uS=rS.POLYFILL="P",sS=rS,lS=zD.f,cS=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?lw:lme?lw[ime]||fw(ime,{}):(lw[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=lS($P,tme))&&rme.value:$P[tme],!sS(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;tS(nme,ame)}(x_.sham||ame&&ame.sham)&&EE(nme,"sham",!0),UE($P,tme,nme,x_)}},fS=Object.keys||function(x_){return KD(x_,YD)},dS=Rw(function(){fS(1)});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function pS(x_){return Object.prototype.toString.call(x_)==="[object Object]"}cS({target:"Object",stat:!0,forced:dS},{keys:function(x_){return fS(Dw(x_))}});var hS={isHistory(x_){return pS(eme=x_)!==!1&&(($P=eme.constructor)===void 0||pS(tme=$P.prototype)!==!1&&tme.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(x_.redos)&&Array.isArray(x_.undos)&&(x_.redos.length===0||Rf.isOperationList(x_.redos[0]))&&(x_.undos.length===0||Rf.isOperationList(x_.undos[0]));var eme,$P,tme}},gS=new WeakMap,vS=new WeakMap,yS={isHistoryEditor:x_=>hS.isHistory(x_.history)&&Bf.isEditor(x_),isMerging:x_=>vS.get(x_),isSaving:x_=>gS.get(x_),redo(x_){x_.redo()},undo(x_){x_.undo()},withoutMerging(x_,eme){var $P=yS.isMerging(x_);vS.set(x_,!1),eme(),vS.set(x_,$P)},withoutSaving(x_,eme){var $P=yS.isSaving(x_);gS.set(x_,!1),eme(),gS.set(x_,$P)}},mS=lw.String,bS=function(x_){if(ZE(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mS(x_)},wS=function(){var x_=nE(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},ES=VE.PROPER,DS=RegExp.prototype,SS=DS.toString,xS=mw(wS),CS=Rw(function(){return SS.call({source:"a",flags:"b"})!="/a/b"}),AS=ES&&SS.name!="toString";(CS||AS)&&UE(RegExp.prototype,"toString",function(){var x_=nE(this),eme=bS(x_.source),$P=x_.flags;return"/"+eme+"/"+bS($P===void 0&&iE(DS,x_)&&!("flags"in DS)?xS(x_):$P)},{unsafe:!0});var OS,kS=Kw?Object.defineProperties:function(x_,eme){nE(x_);for(var $P,tme=RD(eme),ame=fS(eme),nme=ame.length,rme=0;nme>rme;)bE.f(x_,$P=ame[rme++],tme[$P]);return x_},BS=Tw("document","documentElement"),FS=FE("IE_PROTO"),TS=function(){},_S=function(x_){return"<script>"+x_+"<\/script>"},PS=function(x_){x_.write(_S("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},jS=function(){try{OS=new ActiveXObject("htmlfile")}catch{}var x_,eme;jS=typeof document<"u"?document.domain&&OS?PS(OS):((eme=Jw("iframe")).style.display="none",BS.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(_S("document.F=Object")),x_.close(),x_.F):PS(OS);for(var $P=YD.length;$P--;)delete jS.prototype[YD[$P]];return jS()};TE[FS]=!0;var NS=Object.create||function(x_,eme){var $P;return x_!==null?(TS.prototype=nE(x_),$P=new TS,TS.prototype=null,$P[FS]=x_):$P=jS(),eme===void 0?$P:kS($P,eme)},IS=Ww("unscopables"),LS=Array.prototype;LS[IS]==null&&bE.f(LS,IS,{configurable:!0,value:NS(null)});var RS=function(x_){LS[IS][x_]=!0},MS=WD.includes;cS({target:"Array",proto:!0},{includes:function(x_){return MS(this,x_,arguments.length>1?arguments[1]:void 0)}}),RS("includes");var zS=Ww("match"),$S=function(x_){var eme;return Yw(x_)&&((eme=x_[zS])!==void 0?!!eme:qE(x_)=="RegExp")},HS=lw.TypeError,VS=function(x_){if($S(x_))throw HS("The method doesn't accept regular expressions");return x_},US=Ww("match"),WS=function(x_){var eme=/./;try{"/./"[x_](eme)}catch{try{return eme[US]=!1,"/./"[x_](eme)}catch{}}return!1},GS=mw("".indexOf);cS({target:"String",proto:!0,forced:!WS("includes")},{includes:function(x_){return!!~GS(bS(ww(this)),bS(VS(x_)),arguments.length>1?arguments[1]:void 0)}});var qS=/"/g,KS=mw("".replace);cS({target:"String",proto:!0,forced:Rw(function(){var x_="".anchor('"');return x_!==x_.toLowerCase()||x_.split('"').length>3})},{anchor:function(x_){return eme=x_,$P=bS(ww(this)),tme="<a",(tme+=' name="'+KS(bS(eme),qS,"&quot;")+'"')+">"+$P+"</a>";var eme,$P,tme}});var YS=function(x_,eme,$P){var tme,ame;nE(x_);try{if(!(tme=dE(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=oE(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return nE(tme),$P},XS=function(x_,eme,$P,tme){try{return tme?eme(nE($P)[0],$P[1]):eme($P)}catch(ame){YS(x_,"throw",ame)}},ZS={},JS=Ww("iterator"),QS=Array.prototype,ex=function(x_){return x_!==void 0&&(ZS.Array===x_||QS[JS]===x_)},tx=function(x_,eme,$P){var tme=vE(eme);tme in x_?bE.f(x_,tme,wE(0,$P)):x_[tme]=$P},nx=Ww("iterator"),rx=function(x_){if(x_!=null)return dE(x_,nx)||dE(x_,"@@iterator")||ZS[ZE(x_)]},ox=lw.TypeError,ix=function(x_,eme){var $P=arguments.length<2?rx(x_):eme;if(fE($P))return nE(oE($P,x_));throw ox(lE(x_)+" is not iterable")},ax=lw.Array,ux=Ww("iterator"),sx=!1;try{var lx=0,cx={next:function(){return{done:!!lx++}},return:function(){sx=!0}};cx[ux]=function(){return this},Array.from(cx,function(){throw 2})}catch{}var fx=function(x_,eme){if(!sx)return!1;var $P=!1;try{var tme={};tme[ux]=function(){return{next:function(){return{done:$P=!0}}}},x_(tme)}catch{}return $P},dx=!fx(function(x_){Array.from(x_)});cS({target:"Array",stat:!0,forced:dx},{from:function(x_){var eme=Dw(x_),$P=DD(this),tme=arguments.length,ame=tme>1?arguments[1]:void 0,nme=ame!==void 0;nme&&(ame=oD(ame,tme>2?arguments[2]:void 0));var rme,ime,ome,lme,sme,cme,dme=rx(eme),ume=0;if(!dme||this==ax&&ex(dme))for(rme=pD(eme),ime=$P?new this(rme):ax(rme);rme>ume;ume++)cme=nme?ame(eme[ume],ume):eme[ume],tx(ime,ume,cme);else for(sme=(lme=ix(eme,dme)).next,ime=$P?new this:[];!(ome=oE(sme,lme)).done;ume++)cme=nme?XS(lme,ame,[ome.value,ume],!0):ome.value,tx(ime,ume,cme);return ime.length=ume,ime}});var px,hx,gx,vx=mw("".charAt),yx=mw("".charCodeAt),mx=mw("".slice),bx=function(x_){return function(eme,$P){var tme,ame,nme=bS(ww(eme)),rme=cD($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=yx(nme,rme))<55296||tme>56319||rme+1===ime||(ame=yx(nme,rme+1))<56320||ame>57343?x_?vx(nme,rme):tme:x_?mx(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},wx={codeAt:bx(!1),charAt:bx(!0)},Ex=!Rw(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),Dx=FE("IE_PROTO"),Sx=lw.Object,xx=Sx.prototype,Cx=Ex?Sx.getPrototypeOf:function(x_){var eme=Dw(x_);if(xw(eme,Dx))return eme[Dx];var $P=eme.constructor;return Bw($P)&&eme instanceof $P?$P.prototype:eme instanceof Sx?xx:null},Ax=Ww("iterator"),Ox=!1;[].keys&&("next"in(gx=[].keys())?(hx=Cx(Cx(gx)))!==Object.prototype&&(px=hx):Ox=!0);var kx=px==null||Rw(function(){var x_={};return px[Ax].call(x_)!==x_});kx&&(px={}),Bw(px[Ax])||UE(px,Ax,function(){return this});var Bx={IteratorPrototype:px,BUGGY_SAFARI_ITERATORS:Ox},Fx=bE.f,Tx=Ww("toStringTag"),_x=function(x_,eme,$P){x_&&!xw(x_=$P?x_:x_.prototype,Tx)&&Fx(x_,Tx,{configurable:!0,value:eme})},Px=Bx.IteratorPrototype,jx=function(){return this},Nx=lw.String,Ix=lw.TypeError,Lx=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=mw(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return nE(tme),function(nme){if(typeof nme=="object"||Bw(nme))return nme;throw Ix("Can't set "+Nx(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),Rx=VE.PROPER,Mx=VE.CONFIGURABLE,zx=Bx.IteratorPrototype,$x=Bx.BUGGY_SAFARI_ITERATORS,Hx=Ww("iterator"),Vx=function(){return this},Ux=function(x_,eme,$P,tme,ame,nme,rme){(function(bme,mme,vme,gme){var yme=mme+" Iterator";bme.prototype=NS(Px,{next:wE(1,vme)}),_x(bme,yme,!1),ZS[yme]=jx})($P,eme,tme);var ime,ome,lme,sme=function(bme){if(bme===ame&&pme)return pme;if(!$x&&bme in ume)return ume[bme];switch(bme){case"keys":case"values":case"entries":return function(){return new $P(this,bme)}}return function(){return new $P(this)}},cme=eme+" Iterator",dme=!1,ume=x_.prototype,fme=ume[Hx]||ume["@@iterator"]||ame&&ume[ame],pme=!$x&&fme||sme(ame),hme=eme=="Array"&&ume.entries||fme;if(hme&&(ime=Cx(hme.call(new x_)))!==Object.prototype&&ime.next&&(Cx(ime)!==zx&&(Lx?Lx(ime,zx):Bw(ime[Hx])||UE(ime,Hx,Vx)),_x(ime,cme,!0)),Rx&&ame=="values"&&fme&&fme.name!=="values"&&(Mx?EE(ume,"name","values"):(dme=!0,pme=function(){return oE(fme,this)})),ame)if(ome={values:sme("values"),keys:nme?pme:sme("keys"),entries:sme("entries")},rme)for(lme in ome)($x||dme||!(lme in ume))&&UE(ume,lme,ome[lme]);else cS({target:eme,proto:!0,forced:$x||dme},ome);return ume[Hx]!==pme&&UE(ume,Hx,pme,{name:ame}),ZS[eme]=pme,ome},Wx=wx.charAt,Gx=ME.set,qx=ME.getterFor("String Iterator");Ux(String,"String",function(x_){Gx(this,{type:"String Iterator",string:bS(x_),index:0})},function(){var x_,eme=qx(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=Wx($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var Kx,Yx=zD.f,Xx=mw("".endsWith),Zx=mw("".slice),Jx=Math.min,Qx=WS("endsWith"),eC=!(Qx||(Kx=Yx(String.prototype,"endsWith"),!Kx||Kx.writable));cS({target:"String",proto:!0,forced:!eC&&!Qx},{endsWith:function(x_){var eme=bS(ww(this));VS(x_);var $P=arguments.length>1?arguments[1]:void 0,tme=eme.length,ame=$P===void 0?tme:Jx(dD($P),tme),nme=bS(x_);return Xx?Xx(eme,nme,ame):Zx(eme,ame-nme.length,ame)===nme}});var tC=mw([].join),nC=uD!=Object,rC=BD("join",",");cS({target:"Array",proto:!0,forced:nC||!rC},{join:function(x_){return tC(RD(this),x_===void 0?",":x_)}});var oC=Ww("species"),iC=function(x_){return Lw>=51||!Rw(function(){var eme=[];return(eme.constructor={})[oC]=function(){return{foo:1}},eme[x_](Boolean).foo!==1})},aC=kD.map,uC=iC("map");cS({target:"Array",proto:!0,forced:!uC},{map:function(x_){return aC(this,x_,arguments.length>1?arguments[1]:void 0)}});var sC=lw.RegExp,lC=Rw(function(){var x_=sC("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),cC=lC||Rw(function(){return!sC("a","y").sticky}),fC={BROKEN_CARET:lC||Rw(function(){var x_=sC("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:cC,UNSUPPORTED_Y:lC},dC=lw.RegExp,pC=Rw(function(){var x_=dC(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),hC=lw.RegExp,gC=Rw(function(){var x_=hC("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),vC=ME.get,yC=pw("native-string-replace",String.prototype.replace),mC=RegExp.prototype.exec,bC=mC,wC=mw("".charAt),EC=mw("".indexOf),DC=mw("".replace),SC=mw("".slice),xC=function(){var x_=/a/,eme=/b*/g;return oE(mC,x_,"a"),oE(mC,eme,"a"),x_.lastIndex!==0||eme.lastIndex!==0}(),CC=fC.BROKEN_CARET,AC=/()??/.exec("")[1]!==void 0;(xC||AC||CC||pC||gC)&&(bC=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=vC(ome),sme=bS(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=oE(bC,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=CC&&ome.sticky,fme=oE(wS,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=DC(fme,"y",""),EC(fme,"g")===-1&&(fme+="g"),bme=SC(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&wC(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),AC&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),xC&&(tme=ome.lastIndex),ame=oE(mC,ume?$P:ome,bme),ume?ame?(ame.input=SC(ame.input,hme),ame[0]=SC(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:xC&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),AC&&ame&&ame.length>1&&oE(yC,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=NS(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var OC=bC;cS({target:"RegExp",proto:!0,forced:/./.exec!==OC},{exec:OC});var kC=Function.prototype,BC=kC.apply,FC=kC.bind,TC=kC.call,_C=typeof Reflect=="object"&&Reflect.apply||(FC?TC.bind(BC):function(){return TC.apply(BC,arguments)}),PC=Ww("species"),jC=RegExp.prototype,NC=function(x_,eme,$P,tme){var ame=Ww(x_),nme=!Rw(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!Rw(function(){var lme=!1,sme=/a/;return x_==="split"&&((sme={}).constructor={},sme.constructor[PC]=function(){return sme},sme.flags="",sme[ame]=/./[ame]),sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=mw(/./[ame]),ome=eme(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=mw(lme),pme=sme.exec;return pme===OC||pme===jC.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});UE(String.prototype,x_,ome[0]),UE(jC,ame,ome[1])}tme&&EE(jC[ame],"sham",!0)},IC=wx.charAt,LC=function(x_,eme,$P){return eme+($P?IC(x_,eme).length:1)},RC=Math.floor,MC=mw("".charAt),zC=mw("".replace),$C=mw("".slice),HC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,VC=/\$([$&'`]|\d{1,2})/g,UC=function(x_,eme,$P,tme,ame,nme){var rme=$P+x_.length,ime=tme.length,ome=VC;return ame!==void 0&&(ame=Dw(ame),ome=HC),zC(nme,ome,function(lme,sme){var cme;switch(MC(sme,0)){case"$":return"$";case"&":return x_;case"`":return $C(eme,0,$P);case"'":return $C(eme,rme);case"<":cme=ame[$C(sme,1,-1)];break;default:var dme=+sme;if(dme===0)return lme;if(dme>ime){var ume=RC(dme/10);return ume===0?lme:ume<=ime?tme[ume-1]===void 0?MC(sme,1):tme[ume-1]+MC(sme,1):lme}cme=tme[dme-1]}return cme===void 0?"":cme})},WC=lw.TypeError,GC=function(x_,eme){var $P=x_.exec;if(Bw($P)){var tme=oE($P,x_,eme);return tme!==null&&nE(tme),tme}if(qE(x_)==="RegExp")return oE(OC,x_,eme);throw WC("RegExp#exec called on incompatible receiver")},qC=Ww("replace"),KC=Math.max,YC=Math.min,XC=mw([].concat),ZC=mw([].push),JC=mw("".indexOf),QC=mw("".slice),eA="a".replace(/./,"$0")==="$0",tA=!!/./[qC]&&/./[qC]("a","$0")==="";NC("replace",function(x_,eme,$P){var tme=tA?"$":"$0";return[function(ame,nme){var rme=ww(this),ime=ame==null?void 0:dE(ame,qC);return ime?oE(ime,ame,rme,nme):oE(eme,bS(rme),ame,nme)},function(ame,nme){var rme=nE(this),ime=bS(ame);if(typeof nme=="string"&&JC(nme,tme)===-1&&JC(nme,"$<")===-1){var ome=$P(eme,rme,ime,nme);if(ome.done)return ome.value}var lme=Bw(nme);lme||(nme=bS(nme));var sme=rme.global;if(sme){var cme=rme.unicode;rme.lastIndex=0}for(var dme=[];;){var ume=GC(rme,ime);if(ume===null||(ZC(dme,ume),!sme))break;bS(ume[0])===""&&(rme.lastIndex=LC(ime,dD(rme.lastIndex),cme))}for(var fme,pme="",hme=0,bme=0;bme<dme.length;bme++){for(var mme=bS((ume=dme[bme])[0]),vme=KC(YC(cD(ume.index),ime.length),0),gme=[],yme=1;yme<ume.length;yme++)ZC(gme,(fme=ume[yme])===void 0?fme:String(fme));var _me=ume.groups;if(lme){var $me=XC([mme],gme,vme,ime);_me!==void 0&&ZC($me,_me);var Cme=bS(_C(nme,void 0,$me))}else Cme=UC(mme,ime,vme,gme,_me,nme);vme>=hme&&(pme+=QC(ime,hme,vme)+Cme,hme=vme+mme.length)}return pme+QC(ime,hme)}]},!!Rw(function(){var x_=/./;return x_.exec=function(){var eme=[];return eme.groups={a:"7"},eme},"".replace(x_,"$<a>")!=="7"})||!eA||tA);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var nA=function(x_,eme){return nA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)Object.prototype.hasOwnProperty.call(tme,ame)&&($P[ame]=tme[ame])},nA(x_,eme)};function rA(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Class extends value "+String(eme)+" is not a constructor or null");function $P(){this.constructor=x_}nA(x_,eme),x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}var oA=function(){return oA=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},oA.apply(this,arguments)};function iA(x_){var eme=typeof Symbol=="function"&&Symbol.iterator,$P=eme&&x_[eme],tme=0;if($P)return $P.call(x_);if(x_&&typeof x_.length=="number")return{next:function(){return x_&&tme>=x_.length&&(x_=void 0),{value:x_&&x_[tme++],done:!x_}}};throw new TypeError(eme?"Object is not iterable.":"Symbol.iterator is not defined.")}function aA(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function uA(x_,eme){for(var $P=0,tme=eme.length,ame=x_.length;$P<tme;$P++,ame++)x_[ame]=eme[$P];return x_}var sA=0,lA=function(){this.id=""+sA++},cA=ME.set,fA=ME.getterFor("Array Iterator"),dA=Ux(Array,"Array",function(x_,eme){cA(this,{type:"Array Iterator",target:RD(x_),index:0,kind:eme})},function(){var x_=fA(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values");ZS.Arguments=ZS.Array,RS("keys"),RS("values"),RS("entries");var pA=function(x_,eme,$P){for(var tme in eme)UE(x_,tme,eme[tme],$P);return x_},hA=lw.Array,gA=Math.max,vA=function(x_,eme,$P){for(var tme=pD(x_),ame=VD(eme,tme),nme=VD($P===void 0?tme:$P,tme),rme=hA(gA(nme-ame,0)),ime=0;ame<nme;ame++,ime++)tx(rme,ime,x_[ame]);return rme.length=ime,rme},yA=ZD.f,mA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bA={f:function(x_){return mA&&qE(x_)=="Window"?function(eme){try{return yA(eme)}catch{return vA(mA)}}(x_):yA(RD(x_))}},wA=Rw(function(){if(typeof ArrayBuffer=="function"){var x_=new ArrayBuffer(8);Object.isExtensible(x_)&&Object.defineProperty(x_,"a",{value:8})}}),EA=Object.isExtensible,DA=Rw(function(){EA(1)})||wA?function(x_){return!!Yw(x_)&&(!wA||qE(x_)!="ArrayBuffer")&&(!EA||EA(x_))}:EA,SA=!Rw(function(){return Object.isExtensible(Object.preventExtensions({}))}),xA=iw(function(x_){var eme=bE.f,$P=!1,tme=kw("meta"),ame=0,nme=function(ime){eme(ime,tme,{value:{objectID:"O"+ame++,weakData:{}}})},rme=x_.exports={enable:function(){rme.enable=function(){},$P=!0;var ime=ZD.f,ome=mw([].splice),lme={};lme[tme]=1,ime(lme).length&&(ZD.f=function(sme){for(var cme=ime(sme),dme=0,ume=cme.length;dme<ume;dme++)if(cme[dme]===tme){ome(cme,dme,1);break}return cme},cS({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bA.f}))},fastKey:function(ime,ome){if(!Yw(ime))return typeof ime=="symbol"?ime:(typeof ime=="string"?"S":"P")+ime;if(!xw(ime,tme)){if(!DA(ime))return"F";if(!ome)return"E";nme(ime)}return ime[tme].objectID},getWeakData:function(ime,ome){if(!xw(ime,tme)){if(!DA(ime))return!0;if(!ome)return!1;nme(ime)}return ime[tme].weakData},onFreeze:function(ime){return SA&&$P&&DA(ime)&&!xw(ime,tme)&&nme(ime),ime}};TE[tme]=!0}),CA=lw.TypeError,AA=function(x_,eme){this.stopped=x_,this.result=eme},OA=AA.prototype,kA=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme=$P&&$P.that,cme=!(!$P||!$P.AS_ENTRIES),dme=!(!$P||!$P.IS_ITERATOR),ume=!(!$P||!$P.INTERRUPTED),fme=oD(eme,sme),pme=function(bme){return tme&&YS(tme,"normal",bme),new AA(!0,bme)},hme=function(bme){return cme?(nE(bme),ume?fme(bme[0],bme[1],pme):fme(bme[0],bme[1])):ume?fme(bme,pme):fme(bme)};if(dme)tme=x_;else{if(!(ame=rx(x_)))throw CA(lE(x_)+" is not iterable");if(ex(ame)){for(nme=0,rme=pD(x_);rme>nme;nme++)if((ime=hme(x_[nme]))&&iE(OA,ime))return ime;return new AA(!1)}tme=ix(x_,ame)}for(ome=tme.next;!(lme=oE(ome,tme)).done;){try{ime=hme(lme.value)}catch(bme){YS(tme,"throw",bme)}if(typeof ime=="object"&&ime&&iE(OA,ime))return ime}return new AA(!1)},BA=lw.TypeError,FA=function(x_,eme){if(iE(eme,x_))return x_;throw BA("Incorrect invocation")},TA=function(x_,eme,$P){var tme,ame;return Lx&&Bw(tme=eme.constructor)&&tme!==$P&&Yw(ame=tme.prototype)&&ame!==$P.prototype&&Lx(x_,ame),x_},_A=function(x_,eme,$P){var tme=x_.indexOf("Map")!==-1,ame=x_.indexOf("Weak")!==-1,nme=tme?"set":"add",rme=lw[x_],ime=rme&&rme.prototype,ome=rme,lme={},sme=function(hme){var bme=mw(ime[hme]);UE(ime,hme,hme=="add"?function(mme){return bme(this,mme===0?0:mme),this}:hme=="delete"?function(mme){return!(ame&&!Yw(mme))&&bme(this,mme===0?0:mme)}:hme=="get"?function(mme){return ame&&!Yw(mme)?void 0:bme(this,mme===0?0:mme)}:hme=="has"?function(mme){return!(ame&&!Yw(mme))&&bme(this,mme===0?0:mme)}:function(mme,vme){return bme(this,mme===0?0:mme,vme),this})};if(sS(x_,!Bw(rme)||!(ame||ime.forEach&&!Rw(function(){new rme().entries().next()}))))ome=$P.getConstructor(eme,x_,tme,nme),xA.enable();else if(sS(x_,!0)){var cme=new ome,dme=cme[nme](ame?{}:-0,1)!=cme,ume=Rw(function(){cme.has(1)}),fme=fx(function(hme){new rme(hme)}),pme=!ame&&Rw(function(){for(var hme=new rme,bme=5;bme--;)hme[nme](bme,bme);return!hme.has(-0)});fme||((ome=eme(function(hme,bme){FA(hme,ime);var mme=TA(new rme,hme,ome);return bme!=null&&kA(bme,mme[nme],{that:mme,AS_ENTRIES:tme}),mme})).prototype=ime,ime.constructor=ome),(ume||pme)&&(sme("delete"),sme("has"),tme&&sme("get")),(pme||dme)&&sme(nme),ame&&ime.clear&&delete ime.clear}return lme[x_]=ome,cS({global:!0,forced:ome!=rme},lme),_x(ome,x_),ame||$P.setStrong(ome,x_,tme),ome},PA=xA.getWeakData,jA=ME.set,NA=ME.getterFor,IA=kD.find,LA=kD.findIndex,RA=mw([].splice),MA=0,zA=function(x_){return x_.frozen||(x_.frozen=new $A)},$A=function(){this.entries=[]},HA=function(x_,eme){return IA(x_.entries,function($P){return $P[0]===eme})};$A.prototype={get:function(x_){var eme=HA(this,x_);if(eme)return eme[1]},has:function(x_){return!!HA(this,x_)},set:function(x_,eme){var $P=HA(this,x_);$P?$P[1]=eme:this.entries.push([x_,eme])},delete:function(x_){var eme=LA(this.entries,function($P){return $P[0]===x_});return~eme&&RA(this.entries,eme,1),!!~eme}};var VA,UA={getConstructor:function(x_,eme,$P,tme){var ame=x_(function(ome,lme){FA(ome,nme),jA(ome,{type:eme,id:MA++,frozen:void 0}),lme!=null&&kA(lme,ome[tme],{that:ome,AS_ENTRIES:$P})}),nme=ame.prototype,rme=NA(eme),ime=function(ome,lme,sme){var cme=rme(ome),dme=PA(nE(lme),!0);return dme===!0?zA(cme).set(lme,sme):dme[cme.id]=sme,ome};return pA(nme,{delete:function(ome){var lme=rme(this);if(!Yw(ome))return!1;var sme=PA(ome);return sme===!0?zA(lme).delete(ome):sme&&xw(sme,lme.id)&&delete sme[lme.id]},has:function(ome){var lme=rme(this);if(!Yw(ome))return!1;var sme=PA(ome);return sme===!0?zA(lme).has(ome):sme&&xw(sme,lme.id)}}),pA(nme,$P?{get:function(ome){var lme=rme(this);if(Yw(ome)){var sme=PA(ome);return sme===!0?zA(lme).get(ome):sme?sme[lme.id]:void 0}},set:function(ome,lme){return ime(this,ome,lme)}}:{add:function(ome){return ime(this,ome,!0)}}),ame}},WA=ME.enforce,GA=!lw.ActiveXObject&&"ActiveXObject"in lw,qA=function(x_){return function(){return x_(this,arguments.length?arguments[0]:void 0)}},KA=_A("WeakMap",qA,UA);if(kE&&GA){VA=UA.getConstructor(qA,"WeakMap",!0),xA.enable();var YA=KA.prototype,XA=mw(YA.delete),ZA=mw(YA.has),JA=mw(YA.get),QA=mw(YA.set);pA(YA,{delete:function(x_){if(Yw(x_)&&!DA(x_)){var eme=WA(this);return eme.frozen||(eme.frozen=new VA),XA(this,x_)||eme.frozen.delete(x_)}return XA(this,x_)},has:function(x_){if(Yw(x_)&&!DA(x_)){var eme=WA(this);return eme.frozen||(eme.frozen=new VA),ZA(this,x_)||eme.frozen.has(x_)}return ZA(this,x_)},get:function(x_){if(Yw(x_)&&!DA(x_)){var eme=WA(this);return eme.frozen||(eme.frozen=new VA),ZA(this,x_)?JA(this,x_):eme.frozen.get(x_)}return JA(this,x_)},set:function(x_,eme){if(Yw(x_)&&!DA(x_)){var $P=WA(this);$P.frozen||($P.frozen=new VA),ZA(this,x_)?QA(this,x_,eme):$P.frozen.set(x_,eme)}else QA(this,x_,eme);return this}})}var eO=Ww("iterator"),tO=Ww("toStringTag"),nO=dA.values,rO=function(x_,eme){if(x_){if(x_[eO]!==nO)try{EE(x_,eO,nO)}catch{x_[eO]=nO}if(x_[tO]||EE(x_,tO,eme),QE[eme]){for(var $P in dA)if(x_[$P]!==dA[$P])try{EE(x_,$P,dA[$P])}catch{x_[$P]=dA[$P]}}}};for(var oO in QE)rO(lw[oO]&&lw[oO].prototype,oO);rO(nD,"DOMTokenList");var iO=new WeakMap,aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,wO=new WeakMap,EO=new WeakMap,DO=new WeakMap,SO=new WeakMap,xO=new WeakMap,CO=new WeakMap,AO=new WeakMap,OO=new WeakMap,kO=new WeakMap,BO=new WeakMap,FO=kD.find,TO=!0;"find"in[]&&Array(1).find(function(){TO=!1}),cS({target:"Array",proto:!0,forced:TO},{find:function(x_){return FO(this,x_,arguments.length>1?arguments[1]:void 0)}}),RS("find"),cS({global:!0},{globalThis:lw});const _O=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),zp&&(Mp.fn.addClass=zp),$p&&(Mp.fn.removeClass=$p),Hp&&(Mp.fn.hasClass=Hp),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),Vp&&(Mp.fn.attr=Vp),Up&&(Mp.fn.removeAttr=Up),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),Zp&&(Mp.fn.offset=Zp),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),sh&&(Mp.fn.parent=sh),lh&&(Mp.fn.parents=lh),ih&&(Mp.fn.is=ih),Wp&&(Mp.fn.dataset=Wp),Gp&&(Mp.fn.val=Gp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),th&&(Mp.fn.each=th),ph&&(Mp.fn.empty=ph);var PO,jO,NO=function(x_){return x_&&x_.ownerDocument&&x_.ownerDocument.defaultView||null},IO=function(x_){return LO(x_)&&x_.nodeType===1},LO=function(x_){var eme=NO(x_);return!!eme&&x_ instanceof eme.Node},RO=function(x_){var eme=x_&&x_.anchorNode&&NO(x_.anchorNode);return!!eme&&x_ instanceof eme.Selection},MO=function(x_){return LO(x_)&&x_.nodeType===3},zO=function(x_){var eme,$P,tme;return(eme=window.document.getElementById(x_))!==null&&eme!==void 0?eme:((tme=($P=window.document.activeElement)===null||$P===void 0?void 0:$P.shadowRoot)===null||tme===void 0?void 0:tme.getElementById(x_))||null},$O=function(x_,eme,$P){for(var tme,ame=x_.childNodes,nme=ame[eme],rme=eme,ime=!1,ome=!1;(LO(tme=nme)&&tme.nodeType===8||IO(nme)&&nme.childNodes.length===0||IO(nme)&&nme.getAttribute("contenteditable")==="false")&&(!ime||!ome);)rme>=ame.length?(ime=!0,rme=eme-1,$P="backward"):rme<0?(ome=!0,rme=eme+1,$P="forward"):(nme=ame[rme],eme=rme,rme+=$P==="forward"?1:-1);return[nme,eme]},HO=function(x_,eme,$P){return aA($O(x_,eme,$P),1)[0]},VO=function x_(eme){var $P,tme,ame="";if(MO(eme)&&eme.nodeValue)return eme.nodeValue;if(IO(eme)){try{for(var nme=iA(Array.from(eme.childNodes)),rme=nme.next();!rme.done;rme=nme.next())ame+=x_(rme.value)}catch(ome){$P={error:ome}}finally{try{rme&&!rme.done&&(tme=nme.return)&&tme.call(nme)}finally{if($P)throw $P.error}}var ime=getComputedStyle(eme).getPropertyValue("display");ime!=="block"&&ime!=="list"&&ime!=="table-row"&&eme.tagName!=="BR"||(ame+=`
`)}return ame};function UO(x_,eme){if(!(x_ instanceof HTMLElement&&x_.dataset.slateVoid==="true"))for(var $P=x_.childNodes,tme=$P.length;tme--;){var ame=$P[tme],nme=ame.nodeType;nme==3?eme(ame,x_):nme!=1&&nme!=9&&nme!=11||UO(ame,eme)}}function WO(x_){if(x_.length===0)return"";var eme=x_[0];return eme.nodeType!==PO.ELEMENT_NODE?"":eme.tagName.toLowerCase()}(jO=PO||(PO={}))[jO.ELEMENT_NODE=1]="ELEMENT_NODE",jO[jO.TEXT_NODE=3]="TEXT_NODE",jO[jO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",jO[jO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",jO[jO.COMMENT_NODE=8]="COMMENT_NODE",jO[jO.DOCUMENT_NODE=9]="DOCUMENT_NODE",jO[jO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",jO[jO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var GO=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),qO=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),KO=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),YO=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),XO=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ZO=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),JO=!XO&&!YO&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",QO={getWindow:function(x_){var eme=CO.get(x_);if(!eme)throw new Error("Unable to find a host window element for this editor");return eme},findKey:function(x_,eme){var $P=xO.get(eme);return $P||($P=new lA,xO.set(eme,$P)),$P},setNewKey:function(x_){var eme=new lA;xO.set(x_,eme)},findPath:function(x_,eme){for(var $P=[],tme=eme;;){var ame=bO.get(tme);if(ame==null){if(Bf.isEditor(tme))return $P;break}var nme=mO.get(tme);if(nme==null)break;$P.unshift(nme),tme=ame}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(eme))},findDocumentOrShadowRoot:function(x_){if(x_.isDestroyed)return window.document;var eme=QO.toDOMNode(x_,x_),$P=eme.getRootNode();return($P instanceof Document||$P instanceof ShadowRoot)&&$P.getSelection!=null?$P:eme.ownerDocument},getParentNode:function(x_,eme){return bO.get(eme)||null},getParentsNodes:function(x_,eme){for(var $P=[],tme=eme;tme!==x_&&tme!=null;){var ame=QO.getParentNode(x_,tme);if(ame==null)break;$P.push(ame),tme=ame}return $P},getTopNode:function(x_,eme){var $P=[QO.findPath(x_,eme)[0]];return Nf.get(x_,$P)},toDOMNode:function(x_,eme){var $P;if(Bf.isEditor(eme))$P=wO.get(x_);else{var tme=QO.findKey(x_,eme);$P=DO.get(tme)}if(!$P)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(eme));return $P},hasDOMNode:function(x_,eme,$P){$P===void 0&&($P={});var tme,ame=$P.editable,nme=ame!==void 0&&ame,rme=QO.toDOMNode(x_,x_);try{tme=IO(eme)?eme:eme.parentElement}catch(ime){if(!ime.message.includes('Permission denied to access property "nodeType"'))throw ime}return!!tme&&tme.closest("[data-slate-editor]")===rme&&(!nme||tme.isContentEditable||!!tme.getAttribute("data-slate-zero-width"))},toDOMRange:function(x_,eme){var $P=eme.anchor,tme=eme.focus,ame=qf.isBackward(eme),nme=QO.toDOMPoint(x_,$P),rme=qf.isCollapsed(eme)?nme:QO.toDOMPoint(x_,tme),ime=QO.getWindow(x_).document.createRange(),ome=aA(ame?rme:nme,2),lme=ome[0],sme=ome[1],cme=aA(ame?nme:rme,2),dme=cme[0],ume=cme[1],fme=!!(IO(lme)?lme:lme.parentElement).getAttribute("data-slate-zero-width"),pme=!!(IO(dme)?dme:dme.parentElement).getAttribute("data-slate-zero-width");return ime.setStart(lme,fme?1:sme),ime.setEnd(dme,pme?1:ume),ime},toDOMPoint:function(x_,eme){var $P,tme,ame,nme=aA(Bf.node(x_,eme.path),1)[0],rme=QO.toDOMNode(x_,nme);Bf.void(x_,{at:eme})&&(eme={path:eme.path,offset:0});var ime=Array.from(rme.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),ome=0;try{for(var lme=iA(ime),sme=lme.next();!sme.done;sme=lme.next()){var cme=sme.value,dme=cme.childNodes[0];if(dme!=null&&dme.textContent!=null){var ume=dme.textContent.length,fme=cme.getAttribute("data-slate-length"),pme=ome+(fme==null?ume:parseInt(fme,10));if(eme.offset<=pme){ame=[dme,Math.min(ume,Math.max(0,eme.offset-ome))];break}ome=pme}}}catch(hme){$P={error:hme}}finally{try{sme&&!sme.done&&(tme=lme.return)&&tme.call(lme)}finally{if($P)throw $P.error}}if(!ame)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(eme));return ame},toSlateNode:function(x_,eme){var $P=IO(eme)?eme:eme.parentElement;$P&&!$P.hasAttribute("data-slate-node")&&($P=$P.closest("[data-slate-node]"));var tme=$P?EO.get($P):null;if(!tme)throw new Error("Cannot resolve a Slate node from DOM node: "+$P);return tme},findEventRange:function(x_,eme){"nativeEvent"in eme&&(eme=eme.nativeEvent);var $P=eme.clientX,tme=eme.clientY,ame=eme.target;if($P==null||tme==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+eme);var nme,rme=QO.toSlateNode(x_,eme.target),ime=QO.findPath(x_,rme);if(Bf.isVoid(x_,rme)){var ome=ame.getBoundingClientRect(),lme=x_.isInline(rme)?$P-ome.left<ome.left+ome.width-$P:tme-ome.top<ome.top+ome.height-tme,sme=Bf.point(x_,ime,{edge:lme?"start":"end"}),cme=lme?Bf.before(x_,sme):Bf.after(x_,sme);if(cme)return Bf.range(x_,cme)}var dme=this.getWindow(x_).document;if(dme.caretRangeFromPoint)nme=dme.caretRangeFromPoint($P,tme);else{var ume=dme.caretPositionFromPoint($P,tme);ume&&((nme=dme.createRange()).setStart(ume.offsetNode,ume.offset),nme.setEnd(ume.offsetNode,ume.offset))}if(!nme)throw new Error("Cannot resolve a Slate range from a DOM event: "+eme);return QO.toSlateRange(x_,nme,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(x_,eme,$P){var tme,ame,nme,rme,ime,ome=$P.exactMatch,lme=$P.suppressThrow;if((RO(eme)?eme.anchorNode:eme.startContainer)&&(RO(eme)?(tme=eme.anchorNode,ame=eme.anchorOffset,nme=eme.focusNode,rme=eme.focusOffset,ime=ZO&&window.document.activeElement&&window.document.activeElement.shadowRoot?eme.anchorNode===eme.focusNode&&eme.anchorOffset===eme.focusOffset:eme.isCollapsed):(tme=eme.startContainer,ame=eme.startOffset,nme=eme.endContainer,rme=eme.endOffset,ime=eme.collapsed)),tme==null||nme==null||ame==null||rme==null)throw new Error("Cannot resolve a Slate range from DOM range: "+eme);var sme=QO.toSlatePoint(x_,[tme,ame],{exactMatch:ome,suppressThrow:lme});if(!sme)return null;var cme=ime?sme:QO.toSlatePoint(x_,[nme,rme],{exactMatch:ome,suppressThrow:lme});if(!cme)return null;var dme={anchor:sme,focus:cme};return qf.isExpanded(dme)&&qf.isForward(dme)&&IO(nme)&&Bf.void(x_,{at:dme.focus,mode:"highest"})&&(dme=Bf.unhangRange(x_,dme,{voids:!0})),dme},toSlatePoint:function(x_,eme,$P){var tme,ame=$P.exactMatch,nme=$P.suppressThrow,rme=aA(ame?eme:function(mme){var vme,gme=aA(mme,2),yme=gme[0],_me=gme[1];if(IO(yme)&&yme.childNodes.length){var $me=_me===yme.childNodes.length,Cme=$me?_me-1:_me;for(yme=(vme=aA($O(yme,Cme,$me?"backward":"forward"),2))[0],$me=(Cme=vme[1])<_me;IO(yme)&&yme.childNodes.length;){var Sme=$me?yme.childNodes.length-1:0;yme=HO(yme,Sme,$me?"backward":"forward")}_me=$me&&yme.textContent!=null?yme.textContent.length:0}return[yme,_me]}(eme),2),ime=rme[0],ome=rme[1],lme=ime.parentNode,sme=null,cme=0;if(lme){var dme=lme.closest('[data-slate-void="true"]'),ume=lme.closest("[data-slate-leaf]"),fme=null;if(ume){sme=ume.closest('[data-slate-node="text"]');var pme=QO.getWindow(x_).document.createRange();pme.setStart(sme,0),pme.setEnd(ime,ome);var hme=pme.cloneContents();uA(uA([],aA(xp(hme.querySelectorAll("[data-slate-zero-width]")))),aA(xp(hme.querySelectorAll("[contenteditable=false]")))).forEach(function(mme){mme.parentNode.removeChild(mme)}),cme=hme.textContent.length,fme=sme}else dme&&((ume=dme.querySelector("[data-slate-leaf]"))?(sme=ume.closest('[data-slate-node="text"]'),cme=(fme=ume).textContent.length,fme.querySelectorAll("[data-slate-zero-width]").forEach(function(mme){cme-=mme.textContent.length})):cme=1);fme&&cme===fme.textContent.length&&(lme.hasAttribute("data-slate-zero-width")||qO&&(!((tme=fme.textContent)===null||tme===void 0)&&tme.endsWith(`
`)))&&cme--}if(!sme){if(nme)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+eme)}var bme=QO.toSlateNode(x_,sme);return{path:QO.findPath(x_,bme),offset:cme}},hasRange:function(x_,eme){var $P=eme.anchor,tme=eme.focus;return Bf.hasPath(x_,$P.path)&&Bf.hasPath(x_,tme.path)},getNodeType:function(x_){return Sf.isElement(x_)?x_.type:""},checkNodeType:function(x_,eme){return this.getNodeType(x_)===eme},getNodesStr:function(x_){return x_.map(function(eme){return Nf.string(eme)}).join("")},getSelectedElems:function(x_){var eme,$P,tme=[],ame=Bf.nodes(x_,{universal:!0});try{for(var nme=iA(ame),rme=nme.next();!rme.done;rme=nme.next()){var ime=aA(rme.value,1)[0];Sf.isElement(ime)&&tme.push(ime)}}catch(ome){eme={error:ome}}finally{try{rme&&!rme.done&&($P=nme.return)&&$P.call(nme)}finally{if(eme)throw eme.error}}return tme},getSelectedNodeByType:function(x_,eme){var $P=this,tme=aA(Bf.nodes(x_,{match:function(nme){return $P.checkNodeType(nme,eme)},universal:!0}),1),ame=tme[0];return ame==null?null:ame[0]},getSelectedTextNode:function(x_){var eme=aA(Bf.nodes(x_,{match:function(tme){return ed.isText(tme)},universal:!0}),1),$P=eme[0];return $P==null?null:$P[0]},isNodeSelected:function(x_,eme){var $P=aA(Bf.nodes(x_,{match:function(ame){return ame===eme},universal:!0}),1),tme=$P[0];return tme!=null&&aA(tme,1)[0]===eme},isSelectionAtLineEnd:function(x_,eme){var $P=x_.selection;return!!$P&&(Bf.isEnd(x_,$P.anchor,eme)||Bf.isEnd(x_,$P.focus,eme))},getTextarea:function(x_){var eme=iO.get(x_);if(eme==null)throw new Error("Cannot find textarea instance by editor");return eme},getToolbar:function(x_){return sO.get(x_)||null},getHoverbar:function(x_){return cO.get(x_)||null},normalizeContent:function(x_){x_.children.forEach(function(eme,$P){x_.normalizeNode([eme,[$P]])})},getLeftLengthOfMaxLength:function(x_){var eme=x_.getConfig(),$P=eme.maxLength,tme=eme.onMaxLength;if(typeof $P!="number"||$P<=0)return 1/0;var ame=$P-x_.getText().replace(/\r|\n|(\r\n)/g,"").length;return ame<=0&&tme&&tme(x_),ame},cleanExposedTexNodeInSelectionBlock:function(x_){var eme,$P,tme,ame,nme=QO.getTextarea(x_).$textArea,rme=nme==null?void 0:nme[0].childNodes;if(rme)try{for(var ime=iA(Array.from(rme)),ome=ime.next();!ome.done;ome=ime.next()){var lme=ome.value;if(lme.nodeType!==3)break;lme.remove()}}catch(pme){eme={error:pme}}finally{try{ome&&!ome.done&&($P=ime.return)&&$P.call(ime)}finally{if(eme)throw eme.error}}var sme=Bf.nodes(x_,{match:function(pme){return!(!Sf.isElement(pme)||x_.isInline(pme))},universal:!0});try{for(var cme=iA(sme),dme=cme.next();!dme.done;dme=cme.next()){var ume=dme.value;if(ume!=null){var fme=ume[0];UO(QO.toDOMNode(x_,fme),function(pme,hme){var bme=Mp(hme);bme.attr("data-slate-string")||bme.attr("data-slate-zero-width")||bme.attr("data-w-e-reserve")||hme.removeChild(pme)})}}}catch(pme){tme={error:pme}}finally{try{dme&&!dme.done&&(ame=cme.return)&&ame.call(cme)}finally{if(tme)throw tme.error}}},isLastNode:function(x_,eme){var $P=x_.children||[];return $P[$P.length-1]===eme},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(x_){var eme,$P,tme=Bf.nodes(x_,{match:function(ime){return x_.isVoid(ime)}}),ame=0;try{for(var nme=iA(tme),rme=nme.next();!rme.done;rme=nme.next())rme.value,ame++}catch(ime){eme={error:ime}}finally{try{rme&&!rme.done&&($P=nme.return)&&$P.call(nme)}finally{if(eme)throw eme.error}}return ame>0},isSelectedEmptyParagraph:function(x_){var eme=x_.selection;if(eme==null||qf.isExpanded(eme))return!1;var $P=QO.getSelectedNodeByType(x_,"paragraph");if($P===null)return!1;var tme=$P.children;return tme.length===1&&(tme[0].text===""||void 0)},isEmptyPath:function(x_,eme){var $P=Bf.node(x_,eme);if($P==null)return!1;var tme=aA($P,1)[0].children;return tme.length===1&&tme[0].text===""}},ek=1,tk={},nk={},rk=kD.filter,ok=iC("filter");cS({target:"Array",proto:!0,forced:!ok},{filter:function(x_){return rk(this,x_,arguments.length>1?arguments[1]:void 0)}});var ik=`	
\v\f\r                　\u2028\u2029\uFEFF`,ak=mw("".replace),uk="["+ik+"]",sk=RegExp("^"+uk+uk+"*"),lk=RegExp(uk+uk+"*$"),ck=function(x_){return function(eme){var $P=bS(ww(eme));return 1&x_&&($P=ak($P,sk,"")),2&x_&&($P=ak($P,lk,"")),$P}},fk={start:ck(1),end:ck(2),trim:ck(3)},dk=VE.PROPER,pk=fk.trim;cS({target:"String",proto:!0,forced:function(x_){return Rw(function(){return!!ik[x_]()||"​᠎"[x_]()!=="​᠎"||dk&&ik[x_].name!==x_})}("trim")},{trim:function(){return pk(this)}});var hk=[],gk={};function vk(x_,eme,$P){var tme=$P.isInline(x_)?"span":"div";return"<"+tme+">"+eme+"</"+tme+">"}var yk,mk,bk,wk,Ek=lw.Promise,Dk=Ww("species"),Sk=function(x_){var eme=Tw(x_),$P=bE.f;Kw&&eme&&!eme[Dk]&&$P(eme,Dk,{configurable:!0,get:function(){return this}})},xk=lw.TypeError,Ck=Ww("species"),Ak=function(x_,eme){var $P,tme=nE(x_).constructor;return tme===void 0||($P=nE(tme)[Ck])==null?eme:function(ame){if(DD(ame))return ame;throw xk(lE(ame)+" is not a constructor")}($P)},Ok=mw([].slice),kk=/(?:ipad|iphone|ipod).*applewebkit/i.test(_w$1),Bk=qE(lw.process)=="process",Fk=lw.setImmediate,Tk=lw.clearImmediate,_k$1=lw.process,Pk=lw.Dispatch,jk=lw.Function,Nk=lw.MessageChannel,Ik=lw.String,Lk=0,Rk={};try{yk=lw.location}catch{}var Mk=function(x_){if(xw(Rk,x_)){var eme=Rk[x_];delete Rk[x_],eme()}},zk=function(x_){return function(){Mk(x_)}},$k=function(x_){Mk(x_.data)},Hk=function(x_){lw.postMessage(Ik(x_),yk.protocol+"//"+yk.host)};Fk&&Tk||(Fk=function(x_){var eme=Ok(arguments,1);return Rk[++Lk]=function(){_C(Bw(x_)?x_:jk(x_),void 0,eme)},mk(Lk),Lk},Tk=function(x_){delete Rk[x_]},Bk?mk=function(x_){_k$1.nextTick(zk(x_))}:Pk&&Pk.now?mk=function(x_){Pk.now(zk(x_))}:Nk&&!kk?(wk=(bk=new Nk).port2,bk.port1.onmessage=$k,mk=oD(wk.postMessage,wk)):lw.addEventListener&&Bw(lw.postMessage)&&!lw.importScripts&&yk&&yk.protocol!=="file:"&&!Rw(Hk)?(mk=Hk,lw.addEventListener("message",$k,!1)):mk="onreadystatechange"in Jw("script")?function(x_){BS.appendChild(Jw("script")).onreadystatechange=function(){BS.removeChild(this),Mk(x_)}}:function(x_){setTimeout(zk(x_),0)});var Vk,Uk,Wk,Gk,qk,Kk,Yk,Xk,Zk={set:Fk,clear:Tk},Jk=/ipad|iphone|ipod/i.test(_w$1)&&lw.Pebble!==void 0,Qk=/web0s(?!.*chrome)/i.test(_w$1),eB=zD.f,tB=Zk.set,nB=lw.MutationObserver||lw.WebKitMutationObserver,rB=lw.document,oB=lw.process,iB=lw.Promise,aB=eB(lw,"queueMicrotask"),uB=aB&&aB.value;uB||(Vk=function(){var x_,eme;for(Bk&&(x_=oB.domain)&&x_.exit();Uk;){eme=Uk.fn,Uk=Uk.next;try{eme()}catch($P){throw Uk?Gk():Wk=void 0,$P}}Wk=void 0,x_&&x_.enter()},kk||Bk||Qk||!nB||!rB?!Jk&&iB&&iB.resolve?((Yk=iB.resolve(void 0)).constructor=iB,Xk=oD(Yk.then,Yk),Gk=function(){Xk(Vk)}):Bk?Gk=function(){oB.nextTick(Vk)}:(tB=oD(tB,lw),Gk=function(){tB(Vk)}):(qk=!0,Kk=rB.createTextNode(""),new nB(Vk).observe(Kk,{characterData:!0}),Gk=function(){Kk.data=qk=!qk}));var sB,lB,cB,fB,dB=uB||function(x_){var eme={fn:x_,next:void 0};Wk&&(Wk.next=eme),Uk||(Uk=eme,Gk()),Wk=eme},pB=function(x_){var eme,$P;this.promise=new x_(function(tme,ame){if(eme!==void 0||$P!==void 0)throw TypeError("Bad Promise constructor");eme=tme,$P=ame}),this.resolve=fE(eme),this.reject=fE($P)},hB={f:function(x_){return new pB(x_)}},gB=function(x_){try{return{error:!1,value:x_()}}catch(eme){return{error:!0,value:eme}}},vB=typeof window=="object",yB=Zk.set,mB=Ww("species"),bB="Promise",wB=ME.getterFor(bB),EB=ME.set,DB=ME.getterFor(bB),SB=Ek&&Ek.prototype,xB=Ek,CB=SB,AB=lw.TypeError,OB=lw.document,kB=lw.process,BB=hB.f,FB=BB,TB=!!(OB&&OB.createEvent&&lw.dispatchEvent),_B=Bw(lw.PromiseRejectionEvent),PB=!1,jB=sS(bB,function(){var x_=AE(xB),eme=x_!==String(xB);if(!eme&&Lw===66)return!0;if(Lw>=51&&/native code/.test(x_))return!1;var $P=new xB(function(ame){ame(1)}),tme=function(ame){ame(function(){},function(){})};return($P.constructor={})[mB]=tme,!(PB=$P.then(function(){})instanceof tme)||!eme&&vB&&!_B}),NB=jB||!fx(function(x_){xB.all(x_).catch(function(){})}),IB=function(x_){var eme;return!(!Yw(x_)||!Bw(eme=x_.then))&&eme},LB=function(x_,eme){if(!x_.notified){x_.notified=!0;var $P=x_.reactions;dB(function(){for(var tme=x_.value,ame=x_.state==1,nme=0;$P.length>nme;){var rme,ime,ome,lme=$P[nme++],sme=ame?lme.ok:lme.fail,cme=lme.resolve,dme=lme.reject,ume=lme.domain;try{sme?(ame||(x_.rejection===2&&$B(x_),x_.rejection=1),sme===!0?rme=tme:(ume&&ume.enter(),rme=sme(tme),ume&&(ume.exit(),ome=!0)),rme===lme.promise?dme(AB("Promise-chain cycle")):(ime=IB(rme))?oE(ime,rme,cme,dme):cme(rme)):dme(tme)}catch(fme){ume&&!ome&&ume.exit(),dme(fme)}}x_.reactions=[],x_.notified=!1,eme&&!x_.rejection&&MB(x_)})}},RB=function(x_,eme,$P){var tme,ame;TB?((tme=OB.createEvent("Event")).promise=eme,tme.reason=$P,tme.initEvent(x_,!1,!0),lw.dispatchEvent(tme)):tme={promise:eme,reason:$P},!_B&&(ame=lw["on"+x_])?ame(tme):x_==="unhandledrejection"&&function(nme,rme){var ime=lw.console;ime&&ime.error&&(arguments.length==1?ime.error(nme):ime.error(nme,rme))}("Unhandled promise rejection",$P)},MB=function(x_){oE(yB,lw,function(){var eme,$P=x_.facade,tme=x_.value;if(zB(x_)&&(eme=gB(function(){Bk?kB.emit("unhandledRejection",tme,$P):RB("unhandledrejection",$P,tme)}),x_.rejection=Bk||zB(x_)?2:1,eme.error))throw eme.value})},zB=function(x_){return x_.rejection!==1&&!x_.parent},$B=function(x_){oE(yB,lw,function(){var eme=x_.facade;Bk?kB.emit("rejectionHandled",eme):RB("rejectionhandled",eme,x_.value)})},HB=function(x_,eme,$P){return function(tme){x_(eme,tme,$P)}},VB=function(x_,eme,$P){x_.done||(x_.done=!0,$P&&(x_=$P),x_.value=eme,x_.state=2,LB(x_,!0))},UB=function(x_,eme,$P){if(!x_.done){x_.done=!0,$P&&(x_=$P);try{if(x_.facade===eme)throw AB("Promise can't be resolved itself");var tme=IB(eme);tme?dB(function(){var ame={done:!1};try{oE(tme,eme,HB(UB,ame,x_),HB(VB,ame,x_))}catch(nme){VB(ame,nme,x_)}}):(x_.value=eme,x_.state=1,LB(x_,!1))}catch(ame){VB({done:!1},ame,x_)}}};if(jB&&(CB=(xB=function(x_){FA(this,CB),fE(x_),oE(sB,this);var eme=wB(this);try{x_(HB(UB,eme),HB(VB,eme))}catch($P){VB(eme,$P)}}).prototype,(sB=function(x_){EB(this,{type:bB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=pA(CB,{then:function(x_,eme){var $P=DB(this),tme=$P.reactions,ame=BB(Ak(this,xB));return ame.ok=!Bw(x_)||x_,ame.fail=Bw(eme)&&eme,ame.domain=Bk?kB.domain:void 0,$P.parent=!0,tme[tme.length]=ame,$P.state!=0&&LB($P,!1),ame.promise},catch:function(x_){return this.then(void 0,x_)}}),lB=function(){var x_=new sB,eme=wB(x_);this.promise=x_,this.resolve=HB(UB,eme),this.reject=HB(VB,eme)},hB.f=BB=function(x_){return x_===xB||x_===cB?new lB(x_):FB(x_)},Bw(Ek)&&SB!==Object.prototype)){fB=SB.then,PB||(UE(SB,"then",function(x_,eme){var $P=this;return new xB(function(tme,ame){oE(fB,$P,tme,ame)}).then(x_,eme)},{unsafe:!0}),UE(SB,"catch",CB.catch,{unsafe:!0}));try{delete SB.constructor}catch{}Lx&&Lx(SB,CB)}cS({global:!0,wrap:!0,forced:jB},{Promise:xB}),_x(xB,bB,!1),Sk(bB),cB=Tw(bB),cS({target:bB,stat:!0,forced:jB},{reject:function(x_){var eme=BB(this);return oE(eme.reject,void 0,x_),eme.promise}}),cS({target:bB,stat:!0,forced:jB},{resolve:function(x_){return function(eme,$P){if(nE(eme),Yw($P)&&$P.constructor===eme)return $P;var tme=hB.f(eme);return(0,tme.resolve)($P),tme.promise}(this,x_)}}),cS({target:bB,stat:!0,forced:NB},{all:function(x_){var eme=this,$P=BB(eme),tme=$P.resolve,ame=$P.reject,nme=gB(function(){var rme=fE(eme.resolve),ime=[],ome=0,lme=1;kA(x_,function(sme){var cme=ome++,dme=!1;lme++,oE(rme,eme,sme).then(function(ume){dme||(dme=!0,ime[cme]=ume,--lme||tme(ime))},ame)}),--lme||tme(ime)});return nme.error&&ame(nme.value),$P.promise},race:function(x_){var eme=this,$P=BB(eme),tme=$P.reject,ame=gB(function(){var nme=fE(eme.resolve);kA(x_,function(rme){oE(nme,eme,rme).then($P.resolve,tme)})});return ame.error&&tme(ame.value),$P.promise}});var WB=fC.UNSUPPORTED_Y,GB=Math.min,qB=[].push,KB=mw(/./.exec),YB=mw(qB),XB=mw("".slice);function ZB(x_){Promise.resolve().then(x_)}function JB(x_,eme){return Sf.isElement(x_)?function($P,tme){var ame=$P.type,nme=ame===void 0?"":ame,rme=$P.children,ime=rme===void 0?[]:rme,ome=Bf.isVoid(tme,$P),lme="";ome||(lme=ime.map(function(bme){return JB(bme,tme)}).join(""));var sme=function(bme){return gk[bme]||vk}(nme),cme=sme($P,lme,tme),dme="";if(dme=typeof cme=="string"?cme:cme.html||"",ome||hk.forEach(function(bme){return dme=bme($P,dme)}),typeof cme=="string")return dme;var ume=cme.prefix,fme=ume===void 0?"":ume,pme=cme.suffix,hme=pme===void 0?"":pme;return fme&&(dme=fme+dme),hme&&(dme+=hme),dme}(x_,eme):function($P,tme){var ame=$P.text;if(ame==null)throw new Error("Current node is not slate Text "+JSON.stringify($P));var nme=ame;nme=function(ome){return ome.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(nme);var rme=QO.getParentsNodes(tme,$P).some(function(ome){return QO.getNodeType(ome)==="pre"});if(rme||(nme=nme.replace(/\r\n|\r|\n/g,"<br>")),rme&&(nme=nme.replace(/&nbsp;/g," ")),nme===""){var ime=QO.getParentNode(null,$P);if(!ime||ime.children.length!==0)return nme;nme="<br>"}return hk.forEach(function(ome){return nme=ome($P,nme)}),nme}(x_,eme)}function QB(x_){return"w-e-element-"+x_}NC("split",function(x_,eme,$P){var tme;return tme="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ame,nme){var rme=bS(ww(this)),ime=nme===void 0?4294967295:nme>>>0;if(ime===0)return[];if(ame===void 0)return[rme];if(!$S(ame))return oE(eme,rme,ame,ime);for(var ome,lme,sme,cme=[],dme=(ame.ignoreCase?"i":"")+(ame.multiline?"m":"")+(ame.unicode?"u":"")+(ame.sticky?"y":""),ume=0,fme=new RegExp(ame.source,dme+"g");(ome=oE(OC,fme,rme))&&!((lme=fme.lastIndex)>ume&&(YB(cme,XB(rme,ume,ome.index)),ome.length>1&&ome.index<rme.length&&_C(qB,cme,vA(ome,1)),sme=ome[0].length,ume=lme,cme.length>=ime));)fme.lastIndex===ome.index&&fme.lastIndex++;return ume===rme.length?!sme&&KB(fme,"")||YB(cme,""):YB(cme,XB(rme,ume)),cme.length>ime?vA(cme,0,ime):cme}:"0".split(void 0,0).length?function(ame,nme){return ame===void 0&&nme===0?[]:oE(eme,this,ame,nme)}:eme,[function(ame,nme){var rme=ww(this),ime=ame==null?void 0:dE(ame,x_);return ime?oE(ime,ame,rme,nme):oE(tme,bS(rme),ame,nme)},function(ame,nme){var rme=nE(this),ime=bS(ame),ome=$P(tme,rme,ime,nme,tme!==eme);if(ome.done)return ome.value;var lme=Ak(rme,RegExp),sme=rme.unicode,cme=(rme.ignoreCase?"i":"")+(rme.multiline?"m":"")+(rme.unicode?"u":"")+(WB?"g":"y"),dme=new lme(WB?"^(?:"+rme.source+")":rme,cme),ume=nme===void 0?4294967295:nme>>>0;if(ume===0)return[];if(ime.length===0)return GC(dme,ime)===null?[ime]:[];for(var fme=0,pme=0,hme=[];pme<ime.length;){dme.lastIndex=WB?0:pme;var bme,mme=GC(dme,WB?XB(ime,pme):ime);if(mme===null||(bme=GB(dD(dme.lastIndex+(WB?pme:0)),ime.length))===fme)pme=LC(ime,pme,sme);else{if(YB(hme,XB(ime,fme,pme)),hme.length===ume)return hme;for(var vme=1;vme<=mme.length-1;vme++)if(YB(hme,mme[vme]),hme.length===ume)return hme;pme=fme=bme}}return YB(hme,XB(ime,fme)),hme}]},!!Rw(function(){var x_=/(?:)/,eme=x_.exec;x_.exec=function(){return eme.apply(this,arguments)};var $P="ab".split(x_);return $P.length!==2||$P[0]!=="a"||$P[1]!=="b"}),WB);var eF=function(x_,eme){var $P=(eme.top+eme.bottom)/2;return x_.top<=$P&&x_.bottom>=$P},tF=function(x_,eme,$P){var tme=QO.toDOMRange(x_,eme).getBoundingClientRect(),ame=QO.toDOMRange(x_,$P).getBoundingClientRect();return eF(tme,ame)&&eF(ame,tme)},nF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],rF=[],oF=[],iF={},aF=bE.f,uF=ZD.f,sF=ME.enforce,lF=Ww("match"),cF=lw.RegExp,fF=cF.prototype,dF=lw.SyntaxError,pF=mw(wS),hF=mw(fF.exec),gF=mw("".charAt),vF=mw("".replace),yF=mw("".indexOf),mF=mw("".slice),bF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,wF=/a/g,EF=/a/g,DF=new cF(wF)!==wF,SF=fC.MISSED_STICKY,xF=fC.UNSUPPORTED_Y,CF=Kw&&(!DF||SF||pC||gC||Rw(function(){return EF[lF]=!1,cF(wF)!=wF||cF(EF)==EF||cF(wF,"i")!="/a/i"}));if(sS("RegExp",CF)){for(var AF=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome=iE(fF,this),lme=$S(x_),sme=eme===void 0,cme=[],dme=x_;if(!ome&&lme&&sme&&x_.constructor===AF)return x_;if((lme||iE(fF,x_))&&(x_=x_.source,sme&&(eme="flags"in dme?dme.flags:pF(dme))),x_=x_===void 0?"":bS(x_),eme=eme===void 0?"":bS(eme),dme=x_,pC&&"dotAll"in wF&&(tme=!!eme&&yF(eme,"s")>-1)&&(eme=vF(eme,/s/g,"")),$P=eme,SF&&"sticky"in wF&&(ame=!!eme&&yF(eme,"y")>-1)&&xF&&(eme=vF(eme,/y/g,"")),gC&&(nme=function(ume){for(var fme,pme=ume.length,hme=0,bme="",mme=[],vme={},gme=!1,yme=!1,_me=0,$me="";hme<=pme;hme++){if((fme=gF(ume,hme))==="\\")fme+=gF(ume,++hme);else if(fme==="]")gme=!1;else if(!gme)switch(!0){case fme==="[":gme=!0;break;case fme==="(":hF(bF,mF(ume,hme+1))&&(hme+=2,yme=!0),bme+=fme,_me++;continue;case(fme===">"&&yme):if($me===""||xw(vme,$me))throw new dF("Invalid capture group name");vme[$me]=!0,mme[mme.length]=[$me,_me],yme=!1,$me="";continue}yme?$me+=fme:bme+=fme}return[bme,mme]}(x_),x_=nme[0],cme=nme[1]),rme=TA(cF(x_,eme),ome?this:fF,AF),(tme||ame||cme.length)&&(ime=sF(rme),tme&&(ime.dotAll=!0,ime.raw=AF(function(ume){for(var fme,pme=ume.length,hme=0,bme="",mme=!1;hme<=pme;hme++)(fme=gF(ume,hme))!=="\\"?mme||fme!=="."?(fme==="["?mme=!0:fme==="]"&&(mme=!1),bme+=fme):bme+="[\\s\\S]":bme+=fme+gF(ume,++hme);return bme}(x_),$P)),ame&&(ime.sticky=!0),cme.length&&(ime.groups=cme)),x_!==dme)try{EE(rme,"source",dme===""?"(?:)":dme)}catch{}return rme},OF=function(x_){x_ in AF||aF(AF,x_,{configurable:!0,get:function(){return cF[x_]},set:function(eme){cF[x_]=eme}})},kF=uF(cF),BF=0;kF.length>BF;)OF(kF[BF++]);fF.constructor=AF,AF.prototype=fF,UE(lw,"RegExp",AF)}Sk("RegExp");var FF=new RegExp(" ","g");function TF(x_){return x_.replace(FF," ")}function _F(x_,eme){var $P=x_.length;if($P){var tme=x_[$P-1];if(ed.isText(tme)){var ame=Object.keys(tme);if(ame.length===1&&ame[0]==="text")return tme.text=tme.text+eme,!0}}return!1}function PF(x_,eme,$P){return{type:"paragraph",children:[{text:Mp(x_).text().replace(/\s+/gm," ")}]}}function jF(x_,eme){var $P=function(nme,rme){var ime=[];if(nme.attr("data-w-e-is-void")!=null)return ime;var ome=nme[0].childNodes;return ome.length===1&&ome[0].nodeName==="BR"?(ime.push({text:""}),ime):(ome.forEach(function(lme){if(lme.nodeType!==PO.ELEMENT_NODE){if(lme.nodeType===PO.TEXT_NODE){var sme=lme.textContent||"";if(sme.trim()===""&&sme.indexOf(`
`)>=0)return;sme&&(sme=TF(sme),_F(ime,sme)||ime.push({text:sme}))}}else{if(lme.nodeName==="BR")return void(_F(ime,`
`)||ime.push({text:`
`}));var cme=IF(Mp(lme),rme);Array.isArray(cme)?cme.forEach(function(dme){return ime.push(dme)}):ime.push(cme)}}),ime)}(x_,eme),tme=function(nme){for(var rme in iF)if(nme[0].matches(rme))return iF[rme];return PF}(x_),ame=tme(x_[0],$P,eme);return Array.isArray(ame)||(ame=[ame]),ame.forEach(function(nme){Bf.isVoid(eme,nme)||($P.length===0&&(nme.children=[{text:x_.text().replace(/\s+/gm," ")}]),oF.forEach(function(rme){nme=rme(x_[0],nme,eme)}))}),ame}function NF(x_,eme){x_.parents("pre").length===0&&(x_[0].innerHTML=x_[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var $P=x_[0].textContent||"";$P=function(ame){return ame.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}($P);var tme={text:$P=TF($P)};return oF.forEach(function(ame){tme=ame(x_[0],tme,eme)}),tme}function IF(x_,eme){rF.forEach(function(tme){var ame=tme.selector,nme=tme.preParseHtml;x_[0].matches(ame)&&(x_=Mp(nme(x_[0])))});var $P=WO(x_);return $P==="span"?x_.attr("data-w-e-type")?jF(x_,eme):NF(x_,eme):$P==="code"?WO(x_.parent())==="pre"?jF(x_,eme):NF(x_,eme):nF.includes($P)?NF(x_,eme):jF(x_,eme)}function LF(x_,eme,$P){var tme=Mp($P);return!!tme.attr(eme)||(tme.attr(eme,"true"),x_.on("destroyed",function(){tme.removeAttr(eme)}),!1)}function RF(x_,eme){eme===void 0&&(eme="");var $P=[];eme===""&&(eme="<p><br></p>"),eme.indexOf("<")!==0&&(eme=eme.split(/\n/).map(function(ame){return"<p>"+ame+"</p>"}).join(""));var tme=Mp("<div>"+eme+"</div>");return Array.from(tme.children()).forEach(function(ame){var nme=IF(Mp(ame),x_);Array.isArray(nme)?nme.forEach(function(rme){return $P.push(rme)}):$P.push(nme)}),$P}var MF=bE.f,zF=xA.fastKey,$F=ME.set,HF=ME.getterFor,VF={getConstructor:function(x_,eme,$P,tme){var ame=x_(function(lme,sme){FA(lme,nme),$F(lme,{type:eme,index:NS(null),first:void 0,last:void 0,size:0}),Kw||(lme.size=0),sme!=null&&kA(sme,lme[tme],{that:lme,AS_ENTRIES:$P})}),nme=ame.prototype,rme=HF(eme),ime=function(lme,sme,cme){var dme,ume,fme=rme(lme),pme=ome(lme,sme);return pme?pme.value=cme:(fme.last=pme={index:ume=zF(sme,!0),key:sme,value:cme,previous:dme=fme.last,next:void 0,removed:!1},fme.first||(fme.first=pme),dme&&(dme.next=pme),Kw?fme.size++:lme.size++,ume!=="F"&&(fme.index[ume]=pme)),lme},ome=function(lme,sme){var cme,dme=rme(lme),ume=zF(sme);if(ume!=="F")return dme.index[ume];for(cme=dme.first;cme;cme=cme.next)if(cme.key==sme)return cme};return pA(nme,{clear:function(){for(var lme=rme(this),sme=lme.index,cme=lme.first;cme;)cme.removed=!0,cme.previous&&(cme.previous=cme.previous.next=void 0),delete sme[cme.index],cme=cme.next;lme.first=lme.last=void 0,Kw?lme.size=0:this.size=0},delete:function(lme){var sme=this,cme=rme(sme),dme=ome(sme,lme);if(dme){var ume=dme.next,fme=dme.previous;delete cme.index[dme.index],dme.removed=!0,fme&&(fme.next=ume),ume&&(ume.previous=fme),cme.first==dme&&(cme.first=ume),cme.last==dme&&(cme.last=fme),Kw?cme.size--:sme.size--}return!!dme},forEach:function(lme){for(var sme,cme=rme(this),dme=oD(lme,arguments.length>1?arguments[1]:void 0);sme=sme?sme.next:cme.first;)for(dme(sme.value,sme.key,this);sme&&sme.removed;)sme=sme.previous},has:function(lme){return!!ome(this,lme)}}),pA(nme,$P?{get:function(lme){var sme=ome(this,lme);return sme&&sme.value},set:function(lme,sme){return ime(this,lme===0?0:lme,sme)}}:{add:function(lme){return ime(this,lme=lme===0?0:lme,lme)}}),Kw&&MF(nme,"size",{get:function(){return rme(this).size}}),ame},setStrong:function(x_,eme,$P){var tme=eme+" Iterator",ame=HF(eme),nme=HF(tme);Ux(x_,eme,function(rme,ime){$F(this,{type:tme,target:rme,state:ame(rme),kind:ime,last:void 0})},function(){for(var rme=nme(this),ime=rme.kind,ome=rme.last;ome&&ome.removed;)ome=ome.previous;return rme.target&&(rme.last=ome=ome?ome.next:rme.state.first)?ime=="keys"?{value:ome.key,done:!1}:ime=="values"?{value:ome.value,done:!1}:{value:[ome.key,ome.value],done:!1}:(rme.target=void 0,{value:void 0,done:!0})},$P?"entries":"values",!$P,!0),Sk(eme)}};_A("Set",function(x_){return function(){return x_(this,arguments.length?arguments[0]:void 0)}},VF);var UF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function WF(x_,eme){x_.isInline(eme)?(x_.insertNode(eme),eme.type==="link"&&x_.insertFragment([{text:""}])):md.insertNodes(x_,eme,{mode:"highest"})}var GF=function(x_){var eme=x_,$P=eme.insertText;return eme.insertFragment,eme.setFragmentData=function(tme){var ame=eme.selection;if(ame){var nme=aA(qf.edges(ame),2),rme=nme[0],ime=nme[1],ome=Bf.void(eme,{at:rme.path}),lme=Bf.void(eme,{at:ime.path});if(!qf.isCollapsed(ame)||ome){var sme=QO.toDOMRange(eme,ame),cme=sme.cloneContents(),dme=cme.childNodes[0];if(cme.childNodes.forEach(function(yme){yme.textContent&&yme.textContent.trim()!==""&&(dme=yme)}),lme){var ume=aA(lme,1)[0],fme=sme.cloneRange(),pme=QO.toDOMNode(eme,ume);fme.setEndAfter(pme),cme=fme.cloneContents()}if(ome&&(dme=cme.querySelector("[data-slate-spacer]")),Array.from(cme.querySelectorAll("[data-slate-zero-width]")).forEach(function(yme){var _me=yme.getAttribute("data-slate-zero-width")==="n";yme.textContent=_me?`
`:""}),MO(dme)){var hme=dme.ownerDocument.createElement("span");hme.style.whiteSpace="pre",hme.appendChild(dme),cme.appendChild(hme),dme=hme}var bme=eme.getFragment(),mme=JSON.stringify(bme),vme=window.btoa(encodeURIComponent(mme));dme.setAttribute("data-slate-fragment",vme),tme.setData("application/x-slate-fragment",vme);var gme=cme.ownerDocument.createElement("div");return gme.appendChild(cme),gme.setAttribute("hidden","true"),cme.ownerDocument.body.appendChild(gme),tme.setData("text/html",gme.innerHTML),tme.setData("text/plain",VO(gme)),cme.ownerDocument.body.removeChild(gme),tme}}},eme.insertData=function(tme){var ame,nme,rme=tme.getData("application/x-slate-fragment");if(rme){var ime=decodeURIComponent(window.atob(rme)),ome=JSON.parse(ime);eme.insertFragment(ome)}else{var lme=tme.getData("text/plain"),sme=tme.getData("text/html");if(sme)eme.dangerouslyInsertHtml(sme);else if(lme){var cme=lme.split(/\r\n|\r|\n/),dme=!1;try{for(var ume=iA(cme),fme=ume.next();!fme.done;fme=ume.next()){var pme=fme.value;dme&&md.splitNodes(eme,{always:!0}),$P(pme),dme=!0}}catch(hme){ame={error:hme}}finally{try{fme&&!fme.done&&(nme=ume.return)&&nme.call(ume)}finally{if(ame)throw ame.error}}}}},eme},qF=function(x_){return x_!=null},KF={object:!0,function:!0,undefined:!0},YF=/^\s*class[\s{/}]/,XF=Function.prototype.toString,ZF=function(x_){return!!function(eme){if(typeof eme!="function"||!hasOwnProperty.call(eme,"length"))return!1;try{if(typeof eme.length!="number"||typeof eme.call!="function"||typeof eme.apply!="function")return!1}catch{return!1}return!function($P){if(!function(tme){return!!qF(tme)&&hasOwnProperty.call(KF,typeof tme)}($P))return!1;try{return!!$P.constructor&&$P.constructor.prototype===$P}catch{return!1}}(eme)}(x_)&&!YF.test(XF.call(x_))},JF=function(x_){return x_!=null},QF=Object.keys,eT=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(x_){return QF(JF(x_)?Object(x_):x_)},tT=function(x_){if(!JF(x_))throw new TypeError("Cannot use null or undefined");return x_},nT=Math.max,rT=function(){var x_,eme=Object.assign;return typeof eme=="function"&&(eme(x_={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),x_.foo+x_.bar+x_.trzy==="razdwatrzy")}()?Object.assign:function(x_,eme){var $P,tme,ame,nme=nT(arguments.length,2);for(x_=Object(tT(x_)),ame=function(rme){try{x_[rme]=eme[rme]}catch(ime){$P||($P=ime)}},tme=1;tme<nme;++tme)eT(eme=arguments[tme]).forEach(ame);if($P!==void 0)throw $P;return x_},oT=Array.prototype.forEach,iT=Object.create,aT=function(x_,eme){var $P;for($P in x_)eme[$P]=x_[$P]},uT=function(x_){var eme=iT(null);return oT.call(arguments,function($P){JF($P)&&aT(Object($P),eme)}),eme},sT="razdwatrzy",lT=String.prototype.indexOf,cT=typeof sT.contains=="function"&&sT.contains("dwa")===!0&&sT.contains("foo")===!1?String.prototype.contains:function(x_){return lT.call(this,x_,arguments[1])>-1},fT=iw(function(x_){var eme=x_.exports=function($P,tme){var ame,nme,rme,ime,ome;return arguments.length<2||typeof $P!="string"?(ime=tme,tme=$P,$P=null):ime=arguments[2],qF($P)?(ame=cT.call($P,"c"),nme=cT.call($P,"e"),rme=cT.call($P,"w")):(ame=rme=!0,nme=!1),ome={value:tme,configurable:ame,enumerable:nme,writable:rme},ime?rT(uT(ime),ome):ome};eme.gs=function($P,tme,ame){var nme,rme,ime,ome;return typeof $P!="string"?(ime=ame,ame=tme,tme=$P,$P=null):ime=arguments[3],qF(tme)?ZF(tme)?qF(ame)?ZF(ame)||(ime=ame,ame=void 0):ame=void 0:(ime=tme,tme=ame=void 0):tme=void 0,qF($P)?(nme=cT.call($P,"c"),rme=cT.call($P,"e")):(nme=!0,rme=!1),ome={get:tme,set:ame,configurable:nme,enumerable:rme},ime?rT(uT(ime),ome):ome}}),dT=function(x_){if(typeof x_!="function")throw new TypeError(x_+" is not a function");return x_},pT=iw(function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme=Function.prototype.apply,sme=Function.prototype.call,cme=Object.create,dme=Object.defineProperty,ume=Object.defineProperties,fme=Object.prototype.hasOwnProperty,pme={configurable:!0,enumerable:!1,writable:!0};$P=function(hme,bme){var mme;return dT(bme),fme.call(this,"__ee__")?mme=this.__ee__:(mme=pme.value=cme(null),dme(this,"__ee__",pme),pme.value=null),mme[hme]?typeof mme[hme]=="object"?mme[hme].push(bme):mme[hme]=[mme[hme],bme]:mme[hme]=bme,this},tme=function(hme,bme){var mme,vme;return dT(bme),vme=this,$P.call(this,hme,mme=function(){ame.call(vme,hme,mme),lme.call(bme,this,arguments)}),mme.__eeOnceListener__=bme,this},ame=function(hme,bme){var mme,vme,gme,yme;if(dT(bme),!fme.call(this,"__ee__"))return this;if(!(mme=this.__ee__)[hme])return this;if(typeof(vme=mme[hme])=="object")for(yme=0;gme=vme[yme];++yme)gme!==bme&&gme.__eeOnceListener__!==bme||(vme.length===2?mme[hme]=vme[yme?0:1]:vme.splice(yme,1));else vme!==bme&&vme.__eeOnceListener__!==bme||delete mme[hme];return this},nme=function(hme){var bme,mme,vme,gme,yme;if(fme.call(this,"__ee__")&&(gme=this.__ee__[hme]))if(typeof gme=="object"){for(mme=arguments.length,yme=new Array(mme-1),bme=1;bme<mme;++bme)yme[bme-1]=arguments[bme];for(gme=gme.slice(),bme=0;vme=gme[bme];++bme)lme.call(vme,this,yme)}else switch(arguments.length){case 1:sme.call(gme,this);break;case 2:sme.call(gme,this,arguments[1]);break;case 3:sme.call(gme,this,arguments[1],arguments[2]);break;default:for(mme=arguments.length,yme=new Array(mme-1),bme=1;bme<mme;++bme)yme[bme-1]=arguments[bme];lme.call(gme,this,yme)}},rme={on:$P,once:tme,off:ame,emit:nme},ime={on:fT($P),once:fT(tme),off:fT(ame),emit:fT(nme)},ome=ume({},ime),x_.exports=eme=function(hme){return hme==null?cme(ome):ume(Object(hme),ime)},eme.methods=rme});function hT(x_){var eme=kO.get(x_);return eme==null&&(eme=pT(),kO.set(x_,eme)),eme}var gT=new WeakMap;function vT(x_,eme){var $P=gT.get(x_);$P==null&&($P=new Set,gT.set(x_,$P)),$P.add(eme)}function yT(x_){return gT.get(x_)||new Set}function mT(x_){gT.set(x_,new Set)}function bT(x_){var eme=QO.getTextarea(x_).$textAreaContainer,$P=eme.width(),tme=eme.height(),ame=eme.offset();return{top:ame.top,left:ame.left,width:$P,height:tme}}function wT(x_){var eme={top:"0",left:"0"},$P=x_.selection;if($P==null)return eme;var tme=bT(x_);if(tme==null)return eme;var ame=tme.top,nme=tme.left,rme=tme.width,ime=tme.height,ome=QO.toDOMRange(x_,$P).getClientRects()[0];if(ome==null)return eme;ome.width;var lme=ome.height,sme={},cme=ome.top-ame,dme=ome.left-nme;if(dme>rme/2){var ume=rme-dme;sme.right=ume+5+"px"}else sme.left=dme+5+"px";if(cme>ime/2){var fme=ime-cme;sme.bottom=fme+5+"px"}else{var pme=cme+lme;pme<0&&(pme=0),sme.top=pme+5+"px"}return sme}function ET(x_,eme,$P){$P===void 0&&($P="modal");var tme={top:"0",left:"0"};if(x_.selection==null)return tme;var ame=Sf.isElement(eme)&&x_.isVoid(eme),nme=Sf.isElement(eme)&&x_.isInline(eme),rme=SO.get(eme);if(rme==null)return tme;var ime=rme.getBoundingClientRect(),ome=ime.top,lme=ime.left,sme=ime.height,cme=ime.width;if(ame){var dme=function($me){var Cme=[];Cme.push($me);for(var Sme=0;Cme.length>0;){var Eme=Cme.pop();if(Eme==null||++Sme>1e4)break;var xme=Eme.nodeName;if(Eme.nodeType===1){var Tme=xme.toLowerCase();if(_O.includes(Tme)||Tme==="iframe"||Tme==="video")return Eme;var Ome=Eme.children||[],Rme=Ome.length;if(Rme)for(var Nme=Rme-1;Nme>=0;Nme--)Cme.push(Ome[Nme])}}return null}(rme);if(dme!=null){var ume=dme.getBoundingClientRect();ome=ume.top,sme=ume.height}}var fme=bT(x_);if(fme==null)return tme;var pme,hme=fme.top,bme=fme.left,mme=fme.width,vme=fme.height,gme={},yme=ome-hme,_me=lme-bme;if($P==="bar")return gme.left=_me+"px",yme>40?gme.bottom=vme-yme+5+"px":gme.top=yme+sme+5+"px",gme;if($P==="modal")return ame?nme?_me>(mme-cme)/2?gme.right=mme-_me+5+"px":gme.left=_me+cme+5+"px":gme.left="20px":gme.left=_me+"px",ame?((pme=yme)<0&&(pme=0),gme.top=pme+"px"):yme>(vme-sme)/2?gme.bottom=vme-yme+5+"px":((pme=yme+sme)<0&&(pme=0),gme.top=pme+5+"px"),gme;throw new Error("type '"+$P+"' is invalid")}function DT(x_,eme){ZB(function(){var $P=bT(x_);if($P!=null){var tme,ame=$P.top,nme=$P.left,rme=$P.width,ime=$P.height,ome=eme.offset(),lme=ome.top,sme=ome.left,cme=eme.width(),dme=eme.height(),ume=lme-ame,fme=sme-nme,pme=eme.attr("style");if(pme.indexOf("top")>=0&&(tme=ume+dme-ime)>0){var hme=eme.css("top"),bme=parseInt(hme.toString())-tme;bme<0&&(bme=0),eme.css("top",bme+"px")}if(pme.indexOf("bottom")>=0&&lme<0){var mme=eme.css("bottom"),vme=parseInt(mme.toString())-Math.abs(lme);eme.css("bottom",vme+"px")}if(pme.indexOf("left")>=0&&(tme=fme+cme-rme)>0){var gme=eme.css("left"),yme=parseInt(gme.toString())-tme;yme<0&&(yme=0),eme.css("left",yme+"px")}if(pme.indexOf("right")>=0&&sme<0){var _me=eme.css("right"),$me=parseInt(_me.toString())-Math.abs(sme);eme.css("right",$me+"px")}}})}var ST=iC("slice"),xT=Ww("species"),CT=lw.Array,AT=Math.max;cS({target:"Array",proto:!0,forced:!ST},{slice:function(x_,eme){var $P,tme,ame,nme=RD(this),rme=pD(nme),ime=VD(x_,rme),ome=VD(eme===void 0?rme:eme,rme);if(hD(nme)&&($P=nme.constructor,(DD($P)&&($P===CT||hD($P.prototype))||Yw($P)&&($P=$P[xT])===null)&&($P=void 0),$P===CT||$P===void 0))return Ok(nme,ime,ome);for(tme=new($P===void 0?CT:$P)(AT(ome-ime,0)),ame=0;ime<ome;ime++,ame++)ime in nme&&tx(tme,ame,nme[ime]);return tme.length=ame,tme}});var OT=zD.f,kT=mw("".startsWith),BT=mw("".slice),FT=Math.min,TT=WS("startsWith"),_T=!TT&&!!function(){var x_=OT(String.prototype,"startsWith");return x_&&!x_.writable}();cS({target:"String",proto:!0,forced:!_T&&!TT},{startsWith:function(x_){var eme=bS(ww(this));VS(x_);var $P=dD(FT(arguments.length>1?arguments[1]:void 0,eme.length)),tme=bS(x_);return kT?kT(eme,tme,$P):BT(eme,$P,$P+tme.length)===tme}});var PT=Object.assign,jT=Object.defineProperty,NT=mw([].concat),IT=!PT||Rw(function(){if(Kw&&PT({b:1},PT(jT({},"a",{enumerable:!0,get:function(){jT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x_={},eme={},$P=Symbol(),tme="abcdefghijklmnopqrst";return x_[$P]=7,tme.split("").forEach(function(ame){eme[ame]=ame}),PT({},x_)[$P]!=7||fS(PT({},eme)).join("")!=tme})?function(x_,eme){for(var $P=Dw(x_),tme=arguments.length,ame=1,nme=JD.f,rme=LD.f;tme>ame;)for(var ime,ome=uD(arguments[ame++]),lme=nme?NT(fS(ome),nme(ome)):fS(ome),sme=lme.length,cme=0;sme>cme;)ime=lme[cme++],Kw&&!oE(rme,ome,ime)||($P[ime]=ome[ime]);return $P}:PT;cS({target:"Object",stat:!0,forced:Object.assign!==IT},{assign:IT});var LT=["props","attrs","style","dataset","on","hook"];function RT(x_){var eme=x_.data,$P=eme===void 0?{}:eme,tme=x_.children,ame=tme===void 0?[]:tme;Object.keys($P).forEach(function(nme){var rme,ime,ome=$P[nme];if(nme!=="key"){if(!LT.includes(nme)){if(nme.startsWith("data-")){var lme=nme.slice(5);return lme=Cv(lme),function(sme,cme){sme.data==null&&(sme.data={});var dme=sme.data;dme.dataset==null&&(dme.dataset={}),Object.assign(dme.dataset,cme)}(x_,((rme={})[lme]=ome,rme)),void delete $P[nme]}(function(sme,cme){sme.data==null&&(sme.data={});var dme=sme.data;dme.props==null&&(dme.props={}),Object.assign(dme.props,cme)})(x_,(ime={},ime[nme]=ome,ime)),delete $P[nme]}}else x_.key=ome}),ame.length>0&&ame.forEach(function(nme){typeof nme!="string"&&RT(nme)})}var MT=[],zT={};function $T(x_,eme,$P){return Pg($P.isInline(x_)?"span":"div",null,eme)}function HT(x_,eme){return eme===void 0&&(eme=!1),Pg("span",{"data-slate-string":!0},eme?x_+`
`:x_)}function VT(x_,eme){return x_===void 0&&(x_=0),eme===void 0&&(eme=!1),Pg("span",{"data-slate-zero-width":eme?"n":"z","data-slate-length":x_},"\uFEFF",eme?Pg("br",null):null)}function UT(x_,eme,$P,tme){return mO.set(x_,eme),bO.set(x_,$P),Sf.isElement(x_)?function(ame,nme){var rme,ime=QO.findKey(nme,ame),ome=nme.isInline(ame),lme=Bf.isVoid(nme,ame),sme=QB(ime.id),cme={id:sme,key:ime.id,"data-slate-node":"element","data-slate-inline":ome},dme=ame.type,ume=ame.children,fme=ume===void 0?[]:ume,pme=function(yme){return zT[yme]||$T}(dme);rme=lme?null:fme.map(function(yme,_me){return UT(yme,_me,ame,nme)});var hme=pme(ame,rme,nme);if(lme){cme["data-slate-void"]=!0;var bme=ome?"span":"div",mme=aA(Nf.texts(ame),1),vme=aA(mme[0],1)[0],gme=Pg(bme,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},UT(vme,0,ame,nme));hme=Pg(bme,{style:{position:"relative"}},hme,gme),mO.set(vme,0),bO.set(vme,ame)}return hme.data==null&&(hme.data={}),Object.assign(hme.data,cme),lme||ome||(hme=function(yme,_me){var $me=_me;return MT.forEach(function(Cme){$me=Cme(yme,_me)}),$me}(ame,hme)),ZB(function(){var yme=zO(sme);yme!=null&&(DO.set(ime,yme),SO.set(ame,yme),EO.set(yme,ame))}),hme}(x_,tme):function(ame,nme,rme){if(ame.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(ame));var ime=QO.findKey(rme,ame),ome=rme.getConfig().decorate;if(ome==null)throw new Error("Can not get config.decorate");var lme=QO.findPath(rme,ame),sme=ome([ame,lme]),cme=ed.decorations(ame,sme),dme=cme.map(function(pme,hme){var bme=function(mme,vme,gme,yme,_me){vme===void 0&&(vme=!1);var $me=mme.text,Cme=QO.findPath(_me,gme),Sme=Mf.parent(Cme);if(Bf.isEditor(yme))throw new Error("Text node "+JSON.stringify(gme)+" parent is Editor");return _me.isVoid(yme)?VT(Nf.string(yme).length):$me!==""||yme.children[yme.children.length-1]!==gme||_me.isInline(yme)||Bf.string(_me,Sme)!==""?$me===""?VT():vme&&$me.slice(-1)===`
`?HT($me,!0):HT($me):VT(0,!0)}(pme,hme===cme.length-1,ame,nme,rme);return bme=function(mme,vme){var gme=vme;return MT.forEach(function(yme){gme=yme(mme,gme)}),gme}(pme,bme),Pg("span",{"data-slate-leaf":!0},bme)}),ume=function(pme){return"w-e-text-"+pme}(ime.id),fme=Pg("span",{"data-slate-node":"text",id:ume,key:ime.id},dme);return ZB(function(){var pme=zO(ume);pme!=null&&(DO.set(ime,pme),SO.set(ame,pme),EO.set(pme,ame))}),fme}(x_,$P,tme)}function WT(x_,eme){var $P,tme=x_.$scroll,ame=function(pme){return"w-e-textarea-"+pme}(x_.id),nme=eme.getConfig(),rme=nme.readOnly,ime=nme.autoFocus,ome=function(pme,hme){return hme===void 0&&(hme=!1),pg("div#"+pme,{props:{contentEditable:!hme}})}(ame,rme),lme=eme.children||[];ome.children=lme.map(function(pme,hme){var bme=UT(pme,hme,eme,eme);return RT(bme),bme});var sme=gO.get(x_);if(sme==null&&(sme=!0),sme){var cme=function(pme,hme){return Mp(`<div
        id="`+pme+`"
        data-slate-editor
        data-slate-node="value"
        suppressContentEditableWarning
        role="textarea"
        spellCheck="true"
        autoCorrect="true"
        autoCapitalize="true"
    ></div>`)}(ame);tme.append(cme),x_.$textArea=cme,$P=cme[0],(ume=fg([yg,Ag,Tg,wg,xg,gg]))($P,ome),gO.set(x_,!1),vO.set(x_,ume)}else{var dme=yO.get(x_),ume=vO.get(x_);if(dme==null||ume==null)return;$P=dme.elm,ume(dme,ome)}if($P!=null||($P=zO(ame))!=null){if((sme?ime:eme.isFocused())&&$P.focus({preventScroll:!0}),sme){var fme=NO($P);fme&&CO.set(eme,fme)}wO.set(eme,$P),SO.set(eme,$P),EO.set($P,eme),yO.set(x_,ome)}}function GT(x_){return typeof x_=="object"&&x_!=null&&x_.nodeType===1}function qT(x_,eme){return(!eme||x_!=="hidden")&&x_!=="visible"&&x_!=="clip"}function KT(x_,eme){if(x_.clientHeight<x_.scrollHeight||x_.clientWidth<x_.scrollWidth){var $P=getComputedStyle(x_,null);return qT($P.overflowY,eme)||qT($P.overflowX,eme)||function(tme){var ame=function(nme){if(!nme.ownerDocument||!nme.ownerDocument.defaultView)return null;try{return nme.ownerDocument.defaultView.frameElement}catch{return null}}(tme);return!!ame&&(ame.clientHeight<tme.scrollHeight||ame.clientWidth<tme.scrollWidth)}(x_)}return!1}function YT(x_,eme,$P,tme,ame,nme,rme,ime){return nme<x_&&rme>eme||nme>x_&&rme<eme?0:nme<=x_&&ime<=$P||rme>=eme&&ime>=$P?nme-x_-tme:rme>eme&&ime<$P||nme<x_&&ime>$P?rme-eme+ame:0}function XT(x_,eme){var $P=window,tme=eme.scrollMode,ame=eme.block,nme=eme.inline,rme=eme.boundary,ime=eme.skipOverflowHiddenElements,ome=typeof rme=="function"?rme:function(Yme){return Yme!==rme};if(!GT(x_))throw new TypeError("Invalid target");for(var lme=document.scrollingElement||document.documentElement,sme=[],cme=x_;GT(cme)&&ome(cme);){if((cme=cme.parentElement)===lme){sme.push(cme);break}cme!=null&&cme===document.body&&KT(cme)&&!KT(document.documentElement)||cme!=null&&KT(cme,ime)&&sme.push(cme)}for(var dme=$P.visualViewport?$P.visualViewport.width:innerWidth,ume=$P.visualViewport?$P.visualViewport.height:innerHeight,fme=window.scrollX||pageXOffset,pme=window.scrollY||pageYOffset,hme=x_.getBoundingClientRect(),bme=hme.height,mme=hme.width,vme=hme.top,gme=hme.right,yme=hme.bottom,_me=hme.left,$me=ame==="start"||ame==="nearest"?vme:ame==="end"?yme:vme+bme/2,Cme=nme==="center"?_me+mme/2:nme==="end"?gme:_me,Sme=[],Eme=0;Eme<sme.length;Eme++){var xme=sme[Eme],Tme=xme.getBoundingClientRect(),Ome=Tme.height,Rme=Tme.width,Nme=Tme.top,Ime=Tme.right,Pme=Tme.bottom,Mme=Tme.left;if(tme==="if-needed"&&vme>=0&&_me>=0&&yme<=ume&&gme<=dme&&vme>=Nme&&yme<=Pme&&_me>=Mme&&gme<=Ime)return Sme;var kme=getComputedStyle(xme),Bme=parseInt(kme.borderLeftWidth,10),Dme=parseInt(kme.borderTopWidth,10),jme=parseInt(kme.borderRightWidth,10),Vme=parseInt(kme.borderBottomWidth,10),Wme=0,Lme=0,zme="offsetWidth"in xme?xme.offsetWidth-xme.clientWidth-Bme-jme:0,Ume="offsetHeight"in xme?xme.offsetHeight-xme.clientHeight-Dme-Vme:0;if(lme===xme)Wme=ame==="start"?$me:ame==="end"?$me-ume:ame==="nearest"?YT(pme,pme+ume,ume,Dme,Vme,pme+$me,pme+$me+bme,bme):$me-ume/2,Lme=nme==="start"?Cme:nme==="center"?Cme-dme/2:nme==="end"?Cme-dme:YT(fme,fme+dme,dme,Bme,jme,fme+Cme,fme+Cme+mme,mme),Wme=Math.max(0,Wme+pme),Lme=Math.max(0,Lme+fme);else{Wme=ame==="start"?$me-Nme-Dme:ame==="end"?$me-Pme+Vme+Ume:ame==="nearest"?YT(Nme,Pme,Ome,Dme,Vme+Ume,$me,$me+bme,bme):$me-(Nme+Ome/2)+Ume/2,Lme=nme==="start"?Cme-Mme-Bme:nme==="center"?Cme-(Mme+Rme/2)+zme/2:nme==="end"?Cme-Ime+jme+zme:YT(Mme,Ime,Rme,Bme,jme+zme,Cme,Cme+mme,mme);var Gme=xme.scrollLeft,Jme=xme.scrollTop;$me+=Jme-(Wme=Math.max(0,Math.min(Jme+Wme,xme.scrollHeight-Ome+Ume))),Cme+=Gme-(Lme=Math.max(0,Math.min(Gme+Lme,xme.scrollWidth-Rme+zme)))}Sme.push({el:xme,top:Wme,left:Lme})}return Sme}function ZT(x_){return x_===Object(x_)&&Object.keys(x_).length!==0}function JT(x_,eme){return LO(eme)&&QO.hasDOMNode(x_,eme,{editable:!0})}function QT(x_,eme){if(x_.getConfig().readOnly)return!1;var $P=e_(x_,eme)&&QO.toSlateNode(x_,eme);return Bf.isVoid(x_,$P)}function e_(x_,eme){return LO(eme)&&QO.hasDOMNode(x_,eme)}function t_(x_,eme,$P){$P===void 0&&($P=!1);var tme=eme.selection,ame=eme.getConfig(),nme=QO.findDocumentOrShadowRoot(eme).getSelection();if(nme&&(!x_.isComposing||$P)&&eme.isFocused()){var rme=nme.type!=="None";if(tme||rme){var ime=wO.get(eme),ome=!1;if(ime.contains(nme.anchorNode)&&ime.contains(nme.focusNode)&&(ome=!0),rme&&ome&&tme){var lme=QO.toSlateRange(eme,nme,{exactMatch:!0,suppressThrow:!0});if(lme&&qf.equals(lme,tme)){var sme=!0;if(qf.isCollapsed(tme)){var cme=nme.anchorNode,dme=nme.anchorOffset;if(cme===ime){var ume=ime.childNodes,fme=void 0;(fme=ume[dme])&&fme.matches("table")&&(sme=!1),(fme=ume[dme-1])&&fme.matches("table")&&(sme=!1)}}if(sme)return}}if(!tme||QO.hasRange(eme,tme)){x_.isUpdatingSelection=!0;var pme=tme&&QO.toDOMRange(eme,tme);if(pme){qf.isBackward(tme)?nme.setBaseAndExtent(pme.endContainer,pme.endOffset,pme.startContainer,pme.startOffset):nme.setBaseAndExtent(pme.startContainer,pme.startOffset,pme.endContainer,pme.endOffset);var hme=pme.startContainer.parentElement;if(!hme.closest("[data-slate-spacer]")){hme.getBoundingClientRect=pme.getBoundingClientRect.bind(pme);var bme=document.body;(function(mme,vme){var gme=!mme.ownerDocument.documentElement.contains(mme);if(ZT(vme)&&typeof vme.behavior=="function")return vme.behavior(gme?[]:XT(mme,vme));if(!gme){var yme=function(_me){return _me===!1?{block:"end",inline:"nearest"}:ZT(_me)?_me:{block:"start",inline:"nearest"}}(vme);(function(_me,$me){$me===void 0&&($me="auto");var Cme="scrollBehavior"in document.body.style;_me.forEach(function(Sme){var Eme=Sme.el,xme=Sme.top,Tme=Sme.left;Eme.scroll&&Cme?Eme.scroll({top:xme,left:Tme,behavior:$me}):(Eme.scrollTop=xme,Eme.scrollLeft=Tme)})})(XT(mme,yme),yme.behavior)}})(hme,{scrollMode:"if-needed",boundary:ame.scroll?ime.parentElement:bme,block:"end",behavior:"smooth"}),delete hme.getBoundingClientRect}}else nme.removeAllRanges();setTimeout(function(){pme&&qO&&ime.focus(),x_.isUpdatingSelection=!1})}else eme.selection=QO.toSlateRange(eme,nme,{exactMatch:!1,suppressThrow:!1})}}}var n_=new WeakMap,r_=new WeakMap,o_={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},i_={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},a_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},u_=function(x_){var eme=o_[x_],$P=i_[x_],tme=a_[x_],ame=eme&&Nv(eme),nme=$P&&Nv($P),rme=tme&&Nv(tme);return function(ime){return!(!ame||!ame(ime))||!!(GO&&nme&&nme(ime))||!(GO||!rme||!rme(ime))}},s_={isBold:u_("bold"),isCompose:u_("compose"),isMoveBackward:u_("moveBackward"),isMoveForward:u_("moveForward"),isDeleteBackward:u_("deleteBackward"),isDeleteForward:u_("deleteForward"),isDeleteLineBackward:u_("deleteLineBackward"),isDeleteLineForward:u_("deleteLineForward"),isDeleteWordBackward:u_("deleteWordBackward"),isDeleteWordForward:u_("deleteWordForward"),isExtendBackward:u_("extendBackward"),isExtendForward:u_("extendForward"),isExtendLineBackward:u_("extendLineBackward"),isExtendLineForward:u_("extendLineForward"),isItalic:u_("italic"),isMoveLineBackward:u_("moveLineBackward"),isMoveLineForward:u_("moveLineForward"),isMoveWordBackward:u_("moveWordBackward"),isMoveWordForward:u_("moveWordForward"),isRedo:u_("redo"),isSplitBlock:u_("splitBlock"),isTransposeCharacter:u_("transposeCharacter"),isUndo:u_("undo"),isTab:u_("tab"),isSelectAll:u_("selectAll")};function l_(x_){x_.preventDefault()}var c_={beforeinput:function(x_,eme,$P){var tme=x_,ame=$P.getConfig().readOnly;if(JO&&!ame&&JT($P,tme.target)){var nme=$P.selection,rme=tme.inputType,ime=tme.dataTransfer||tme.data||void 0;if(rme!=="insertCompositionText"&&rme!=="deleteCompositionText"){if(tme.preventDefault(),!rme.startsWith("delete")||rme.startsWith("deleteBy")){var ome=aA(tme.getTargetRanges(),1)[0];if(ome){var lme=QO.toSlateRange($P,ome,{exactMatch:!1,suppressThrow:!1});nme&&qf.equals(nme,lme)||md.select($P,lme)}}if(nme&&qf.isExpanded(nme)&&rme.startsWith("delete")){var sme=rme.endsWith("Backward")?"backward":"forward";Bf.deleteFragment($P,{direction:sme})}else switch(rme){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Bf.deleteFragment($P);break;case"deleteContent":case"deleteContentForward":Bf.deleteForward($P);break;case"deleteContentBackward":Bf.deleteBackward($P);break;case"deleteEntireSoftLine":Bf.deleteBackward($P,{unit:"line"}),Bf.deleteForward($P,{unit:"line"});break;case"deleteHardLineBackward":Bf.deleteBackward($P,{unit:"block"});break;case"deleteSoftLineBackward":Bf.deleteBackward($P,{unit:"line"});break;case"deleteHardLineForward":Bf.deleteForward($P,{unit:"block"});break;case"deleteSoftLineForward":Bf.deleteForward($P,{unit:"line"});break;case"deleteWordBackward":Bf.deleteBackward($P,{unit:"word"});break;case"deleteWordForward":Bf.deleteForward($P,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Bf.insertBreak($P);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(rme==="insertFromPaste"&&!BO.get($P))break;ime instanceof DataTransfer?$P.insertData(ime):typeof ime=="string"&&Bf.insertText($P,ime)}}}},blur:function(x_,eme,$P){var tme=x_,ame=eme.isUpdatingSelection,nme=eme.latestElement;if(!$P.getConfig().readOnly&&!ame&&JT($P,tme.target)){var rme=QO.findDocumentOrShadowRoot($P);if(nme!==rme.activeElement){var ime=tme.relatedTarget;if(!(ime===QO.toDOMNode($P,$P)||IO(ime)&&ime.hasAttribute("data-slate-spacer"))){if(ime!=null&&LO(ime)&&QO.hasDOMNode($P,ime)){var ome=QO.toSlateNode($P,ime);if(Sf.isElement(ome)&&!$P.isVoid(ome))return}if(KO){var lme=rme.getSelection();lme==null||lme.removeAllRanges()}AO.delete($P)}}}},focus:function(x_,eme,$P){var tme=QO.toDOMNode($P,$P),ame=QO.findDocumentOrShadowRoot($P);eme.latestElement=ame.activeElement,qO&&x_.target!==tme?tme.focus():AO.set($P,!0)},click:function(x_,eme,$P){if(!$P.getConfig().readOnly&&e_($P,x_.target)&&LO(x_.target)){var tme=QO.toSlateNode($P,x_.target),ame=QO.findPath($P,tme);if(Bf.hasPath($P,ame)&&Nf.get($P,ame)===tme){var nme=Bf.start($P,ame),rme=Bf.end($P,ame),ime=Bf.void($P,{at:nme}),ome=Bf.void($P,{at:rme});if(ime&&ome&&Mf.equals(ime[1],ome[1])){var lme=Bf.range($P,nme);md.select($P,lme)}}}},compositionstart:function(x_,eme,$P){if(JT($P,x_.target)){var tme=$P.selection;if(tme&&qf.isExpanded(tme)&&(Bf.deleteFragment($P),Promise.resolve().then(function(){t_(eme,$P,!0)})),tme&&qf.isCollapsed(tme)){var ame=QO.toDOMRange($P,tme).startContainer,nme=ame.textContent||"";n_.set($P,nme),r_.set($P,ame)}eme.isComposing=!0,function(rme,ime){var ome;ime.getConfig().placeholder&&ime.isEmpty()&&rme.showPlaceholder&&((ome=rme.$placeholder)===null||ome===void 0||ome.hide(),rme.showPlaceholder=!1)}(eme,$P)}},compositionend:function(x_,eme,$P){var tme=x_;if(JT($P,tme.target)){eme.isComposing=!1;var ame=$P.selection;if(ame!=null){(ZO||qO)&&QO.cleanExposedTexNodeInSelectionBlock($P);for(var nme=qf.isBackward(ame)?ame.focus:ame.anchor,rme=aA(Bf.node($P,[nme.path[0]]),1)[0],ime=0;ime<nme.path.length;ime++){var ome=aA(Bf.node($P,nme.path.slice(0,ime+1)),1)[0];if(Sf.isElement(ome)&&((KO||qO)&&ome.type==="link"||ome.type==="code")){QO.setNewKey(rme);break}}var lme=tme.data;if(lme){if($P.getConfig().maxLength){var sme=QO.getLeftLengthOfMaxLength($P);sme<lme.length?(QO.toDOMRange($P,ame).startContainer.textContent=n_.get($P)||"",sme>0&&Bf.insertText($P,lme.slice(0,sme)),eme.changeViewState()):Bf.insertText($P,lme)}else Bf.insertText($P,lme);KO||setTimeout(function(){var cme=$P.selection;if(cme!=null){var dme=r_.get($P);dme!=null&&QO.toDOMRange($P,cme).startContainer!==dme&&(dme.textContent=n_.get($P)||"")}})}}}},compositionupdate:function(x_,eme,$P){JT($P,x_.target)&&(eme.isComposing=!0)},keydown:function(x_,eme,$P){var tme=x_,ame=$P.selection;if(!$P.getConfig().readOnly&&!eme.isComposing&&JT($P,tme.target)){if(function(rme,ime){var ome=sO.get(rme),lme=ome&&ome.getMenus(),sme=cO.get(rme),cme=sme&&sme.getMenus(),dme=oA(oA({},lme),cme);for(var ume in dme){var fme=dme[ume],pme=fme.hotkey;if(pme&&jv(pme,ime)&&!fme.isDisabled(rme)){var hme=fme.getValue(rme);fme.exec(rme,hme)}}}($P,tme),s_.isTab(tme))return l_(tme),void $P.handleTab();if(s_.isRedo(tme))return l_(tme),void(typeof $P.redo=="function"&&$P.redo());if(s_.isUndo(tme))return l_(tme),void(typeof $P.undo=="function"&&$P.undo());if(s_.isMoveLineBackward(tme))return l_(tme),void md.move($P,{unit:"line",reverse:!0});if(s_.isMoveLineForward(tme))return l_(tme),void md.move($P,{unit:"line"});if(s_.isExtendLineBackward(tme))return l_(tme),void md.move($P,{unit:"line",edge:"focus",reverse:!0});if(s_.isExtendLineForward(tme))return l_(tme),void md.move($P,{unit:"line",edge:"focus"});if(s_.isMoveBackward(tme))return l_(tme),void(ame&&qf.isCollapsed(ame)?md.move($P,{reverse:!0}):md.collapse($P,{edge:"start"}));if(s_.isMoveForward(tme))return l_(tme),void(ame&&qf.isCollapsed(ame)?md.move($P):md.collapse($P,{edge:"end"}));if(s_.isMoveWordBackward(tme))return l_(tme),ame&&qf.isExpanded(ame)&&md.collapse($P,{edge:"focus"}),void md.move($P,{unit:"word",reverse:!0});if(s_.isMoveWordForward(tme))return l_(tme),ame&&qf.isExpanded(ame)&&md.collapse($P,{edge:"focus"}),void md.move($P,{unit:"word"});if(s_.isSelectAll(tme))return l_(tme),void $P.selectAll();if(JO){if((ZO||KO)&&ame&&(s_.isDeleteBackward(tme)||s_.isDeleteForward(tme))&&qf.isCollapsed(ame)){var nme=Nf.parent($P,ame.anchor.path);if(Sf.isElement(nme)&&Bf.isVoid($P,nme)&&Bf.isInline($P,nme))return tme.preventDefault(),void md.delete($P,{unit:"block"})}}else{if(s_.isBold(tme)||s_.isItalic(tme)||s_.isTransposeCharacter(tme))return void l_(tme);if(s_.isSplitBlock(tme))return l_(tme),void Bf.insertBreak($P);if(s_.isDeleteBackward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"backward"}):Bf.deleteBackward($P));if(s_.isDeleteForward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"forward"}):Bf.deleteForward($P));if(s_.isDeleteLineBackward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"backward"}):Bf.deleteBackward($P,{unit:"line"}));if(s_.isDeleteLineForward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"forward"}):Bf.deleteForward($P,{unit:"line"}));if(s_.isDeleteWordBackward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"backward"}):Bf.deleteBackward($P,{unit:"word"}));if(s_.isDeleteWordForward(tme))return l_(tme),void(ame&&qf.isExpanded(ame)?Bf.deleteFragment($P,{direction:"forward"}):Bf.deleteForward($P,{unit:"word"}))}}},keypress:function(x_,eme,$P){if(!JO&&!$P.getConfig().readOnly&&JT($P,x_.target)){x_.preventDefault();var tme=x_.key;Bf.insertText($P,tme)}},copy:function(x_,eme,$P){var tme=x_;if(JT($P,tme.target)){tme.preventDefault();var ame=tme.clipboardData;ame!=null&&$P.setFragmentData(ame)}},cut:function(x_,eme,$P){var tme=x_,ame=$P.selection;if(!$P.getConfig().readOnly&&JT($P,tme.target)){tme.preventDefault();var nme=tme.clipboardData;if(nme!=null&&($P.setFragmentData(nme),ame))if(qf.isExpanded(ame))Bf.deleteFragment($P);else{var rme=Nf.parent($P,ame.anchor.path);Bf.isVoid($P,rme)&&md.delete($P)}}},paste:function(x_,eme,$P){BO.set($P,!0);var tme=x_;if(!$P.getConfig().readOnly&&JT($P,tme.target)){var ame=$P.getConfig().customPaste;if(ame&&ame($P,tme)===!1)return void BO.set($P,!1);if(!JO||function(rme){return rme.clipboardData&&rme.clipboardData.getData("text/plain")!==""&&rme.clipboardData.types.length===1}(tme)){tme.preventDefault();var nme=tme.clipboardData;nme!=null&&$P.insertData(nme)}}},dragover:function(x_,eme,$P){if(e_($P,x_.target)){var tme=QO.toSlateNode($P,x_.target);Bf.isVoid($P,tme)&&x_.preventDefault()}},dragstart:function(x_,eme,$P){var tme=x_;if(e_($P,tme.target)&&!$P.getConfig().readOnly){var ame=QO.toSlateNode($P,tme.target),nme=QO.findPath($P,ame);if(Bf.isVoid($P,ame)||Bf.void($P,{at:nme,voids:!0})){var rme=Bf.range($P,nme);md.select($P,rme)}var ime=tme.dataTransfer;ime!=null&&(eme.isDraggingInternally=!0,$P.setFragmentData(ime))}},dragend:function(x_,eme,$P){var tme=x_;$P.getConfig().readOnly||eme.isDraggingInternally&&e_($P,tme.target)&&(eme.isDraggingInternally=!1)},drop:function(x_,eme,$P){var tme=x_,ame=tme.dataTransfer;if(!$P.getConfig().readOnly&&e_($P,tme.target)&&ame!=null&&!(JO&&KO&&ame.files.length>0)){tme.preventDefault();var nme=$P.selection,rme=QO.findEventRange($P,tme);md.select($P,rme),eme.isDraggingInternally&&(nme&&md.delete($P,{at:nme}),eme.isDraggingInternally=!1),$P.insertData(ame),$P.isFocused()||$P.focus()}}},f_=1,d_=function(){function x_(eme){var $P=this;this.id=f_++,this.$textArea=null,this.$progressBar=Mp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Mp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=eg(function(){var rme=$P.editorInstance;(function(ime,ome){var lme=ime.isComposing,sme=ime.isUpdatingSelection,cme=ime.isDraggingInternally;if(!(ome.getConfig().readOnly||lme||sme||cme)){var dme=QO.findDocumentOrShadowRoot(ome),ume=dme.activeElement,fme=QO.toDOMNode(ome,ome),pme=dme.getSelection();if(ume===fme?(ime.latestElement=ume,AO.set(ome,!0)):AO.delete(ome),!pme)return md.deselect(ome);var hme=pme.anchorNode,bme=pme.focusNode,mme=JT(ome,hme)||QT(ome,hme),vme=JT(ome,bme)||QT(ome,bme);if(mme&&vme){var gme=QO.toSlateRange(ome,pme,{exactMatch:!1,suppressThrow:!1});md.select(ome,gme)}else md.deselect(ome)}})($P,rme)},100);var tme=Mp(eme);if(tme.length===0)throw new Error("Cannot find textarea DOM by selector '"+eme+"'");this.$box=tme;var ame=Mp('<div class="w-e-text-container"></div>');ame.append(this.$progressBar),ame.append(this.$maxLengthInfo),tme.append(ame);var nme=Mp('<div class="w-e-scroll"></div>');ame.append(nme),this.$scroll=nme,this.$textAreaContainer=ame,ZB(function(){var rme=$P.editorInstance,ime=QO.getWindow(rme);ime.document.addEventListener("selectionchange",$P.onDOMSelectionChange),rme.on("destroyed",function(){ime.document.removeEventListener("selectionchange",$P.onDOMSelectionChange)}),ame.on("click",function(){return rme.hidePanelOrModal()}),rme.on("change",$P.changeViewState.bind($P));var ome=rme.getConfig().onChange;ome&&rme.on("change",function(){return ome(rme)}),$P.onFocusAndOnBlur(),rme.on("change",$P.changeMaxLengthInfo.bind($P)),$P.bindEvent()})}return Object.defineProperty(x_.prototype,"editorInstance",{get:function(){var eme=aO.get(this);if(eme==null)throw new Error("Can not get editor instance");return eme},enumerable:!1,configurable:!0}),x_.prototype.bindEvent=function(){var eme=this,$P=this.$textArea,tme=this.$scroll,ame=this.editorInstance;$P!=null&&(Lh(c_,function(nme,rme){$P.on(rme,function(ime){nme(ime,eme,ame)})}),ame.getConfig().scroll&&(tme.css("overflow-y","auto"),tme.on("scroll",eg(function(){ame.emit("scroll")},100))))},x_.prototype.onFocusAndOnBlur=function(){var eme=this,$P=this.editorInstance,tme=$P.getConfig(),ame=tme.onBlur,nme=tme.onFocus;this.latestEditorSelection=$P.selection,$P.on("change",function(){eme.latestEditorSelection==null&&$P.selection!=null?setTimeout(function(){return nme&&nme($P)}):eme.latestEditorSelection!=null&&$P.selection==null&&setTimeout(function(){return ame&&ame($P)}),eme.latestEditorSelection=$P.selection})},x_.prototype.changeMaxLengthInfo=function(){var eme=this.editorInstance,$P=eme.getConfig().maxLength;if($P){var tme=$P-QO.getLeftLengthOfMaxLength(eme);this.$maxLengthInfo[0].innerHTML=tme+"/"+$P}},x_.prototype.changeProgress=function(eme){var $P=this.$progressBar;$P.css("width",eme+"%"),eme>=100&&setTimeout(function(){$P.hide(),$P.css("width","0"),$P.show()},1e3)},x_.prototype.changeViewState=function(){var eme=this,$P=this.editorInstance;WT(this,$P),function(tme,ame){var nme,rme=ame.getConfig().placeholder;if(rme){var ime=ame.isEmpty();if(ime&&!tme.showPlaceholder&&!tme.isComposing){if(tme.$placeholder==null){var ome=Mp('<div class="w-e-text-placeholder">'+rme+"</div>");tme.$textAreaContainer.append(ome),tme.$placeholder=ome}return tme.$placeholder.show(),void(tme.showPlaceholder=!0)}!ime&&tme.showPlaceholder&&((nme=tme.$placeholder)===null||nme===void 0||nme.hide(),tme.showPlaceholder=!1)}}(this,$P),ZB(function(){t_(eme,$P)})},x_.prototype.destroy=function(){this.$textAreaContainer.remove()},x_}();function p_(x_){x_.removeAttr("width"),x_.removeAttr("height"),x_.removeAttr("fill"),x_.removeAttr("class"),x_.removeAttr("t"),x_.removeAttr("p-id");var eme=x_.children();eme.length&&p_(eme)}function h_(){return Mp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function g_(){return Mp('<div class="w-e-bar-divider"></div>')}function v_(x_,eme,$P,tme,ame){if(ame===void 0&&(ame=!1),eme){if(tme){var nme=GO?"cmd":"ctrl";tme=tme.replace("mod",nme)}if(ame)tme&&(x_.attr("data-tooltip",tme),x_.addClass("w-e-menu-tooltip-v5"),x_.addClass("tooltip-right"));else{var rme=tme?$P+`
`+tme:$P;x_.attr("data-tooltip",rme),x_.addClass("w-e-menu-tooltip-v5")}}}NC("match",function(x_,eme,$P){return[function(tme){var ame=ww(this),nme=tme==null?void 0:dE(tme,x_);return nme?oE(nme,tme,ame):new RegExp(tme)[x_](bS(ame))},function(tme){var ame=nE(this),nme=bS(tme),rme=$P(eme,ame,nme);if(rme.done)return rme.value;if(!ame.global)return GC(ame,nme);var ime=ame.unicode;ame.lastIndex=0;for(var ome,lme=[],sme=0;(ome=GC(ame,nme))!==null;){var cme=bS(ome[0]);lme[sme]=cme,cme===""&&(ame.lastIndex=LC(nme,dD(ame.lastIndex),ime)),sme++}return sme===0?null:lme}]});var y_=function(){function x_(eme,$P,tme){var ame=this;tme===void 0&&(tme=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button"></button>'),this.disabled=!1,this.menu=$P;var nme=$P.tag,rme=$P.width;if(nme!=="button")throw new Error("Invalid tag '"+nme+"', expected 'button'");var ime=$P.title,ome=$P.hotkey,lme=ome===void 0?"":ome,sme=$P.iconSvg,cme=sme===void 0?"":sme,dme=this.$button;if(cme){var ume=Mp(cme);p_(ume),dme.append(ume)}else dme.text(ime);v_(dme,cme,ime,lme,tme),tme&&cme&&dme.append(Mp('<span class="title">'+ime+"</span>")),rme&&dme.css("width",rme+"px"),dme.attr("data-menu-key",eme),this.$elem.append(dme),ZB(function(){return ame.init()})}return x_.prototype.init=function(){var eme=this;this.setActive(),this.setDisabled(),this.$button.on("click",function($P){$P.preventDefault(),T_(eme).hidePanelOrModal(),eme.disabled||(eme.exec(),eme.onButtonClick())})},x_.prototype.exec=function(){var eme=T_(this),$P=this.menu,tme=$P.getValue(eme);$P.exec(eme,tme)},x_.prototype.setActive=function(){var eme=T_(this),$P=this.$button,tme="active";this.menu.isActive(eme)?$P.addClass(tme):$P.removeClass(tme)},x_.prototype.setDisabled=function(){var eme=T_(this),$P=this.$button,tme=this.menu.isDisabled(eme);(eme.selection==null||eme.isDisabled())&&(tme=!0),this.menu.alwaysEnable&&(tme=!1);var ame="disabled";tme?$P.addClass(ame):$P.removeClass(ame),this.disabled=tme},x_.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},x_}(),m_=function(x_){function eme($P,tme,ame){return ame===void 0&&(ame=!1),x_.call(this,$P,tme,ame)||this}return rA(eme,x_),eme.prototype.onButtonClick=function(){},eme}(y_),b_=function(){function x_(eme){this.isShow=!1,this.showTime=0,this.record(eme)}return x_.prototype.record=function(eme){var $P=dO.get(eme);$P==null&&($P=new Set,dO.set(eme,$P)),$P.add(this),pO.set(this,eme)},x_.prototype.renderContent=function(eme){var $P=this.$elem;$P.empty(),$P.append(eme);var tme=this.genSelfElem();tme&&$P.append(tme)},x_.prototype.appendTo=function(eme){var $P=this.$elem;eme.append($P)},x_.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var eme=pO.get(this);eme&&eme.emit("modalOrPanelShow",this)}},x_.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var eme=pO.get(this);eme&&eme.emit("modalOrPanelHide")}},x_}(),w_=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.type="dropPanel",tme.$elem=Mp('<div class="w-e-drop-panel"></div>'),tme}return rA(eme,x_),eme.prototype.genSelfElem=function(){return null},eme}(b_),E_=function(x_){function eme($P,tme,ame){ame===void 0&&(ame=!1);var nme=x_.call(this,$P,tme,ame)||this;if(nme.dropPanel=null,nme.menu=tme,tme.showDropPanel){var rme=h_();nme.$button.append(rme)}return nme}return rA(eme,x_),eme.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},eme.prototype.handleDropPanel=function(){var $P=this.menu;if($P.getPanelContentElem!=null){var tme=T_(this);if(this.dropPanel==null){var ame=new w_(tme),nme=$P.getPanelContentElem(tme);ame.renderContent(nme),ame.appendTo(this.$elem),ame.show(),this.dropPanel=ame}else{var rme=this.dropPanel;rme.isShow?rme.hide():(nme=$P.getPanelContentElem(tme),rme.renderContent(nme),rme.show())}var ime=this.dropPanel;if(ime.isShow){var ome=this.$elem,lme=ome.offset().left,sme=ome.parents(".w-e-bar");lme-sme.offset().left>=sme.width()/2?ime.$elem.css({left:"none",right:"0"}):ime.$elem.css({left:"0",right:"none"})}}},eme}(y_),D_=function(x_){function eme($P,tme){tme===void 0&&(tme=0);var ame=x_.call(this,$P)||this;ame.type="modal",ame.$elem=Mp('<div class="w-e-modal"></div>'),ame.width=0,tme&&(ame.width=tme);var nme=ame.$elem;return nme.on("click",function(rme){return rme.stopPropagation()}),nme.on("keyup",function(rme){rme.code==="Escape"&&(ame.hide(),$P.restoreSelection())}),ame}return rA(eme,x_),eme.prototype.genSelfElem=function(){var $P=this,tme=Mp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),ame=pO.get(this);return tme.on("click",function(){$P.hide(),ame==null||ame.restoreSelection()}),tme},eme.prototype.setStyle=function($P){var tme=this.width,ame=this.$elem;ame.attr("style",""),tme&&ame.css("width",tme+"px"),ame.css($P)},eme}(b_);function S_(x_,eme,$P){var tme=Mp('<label class="babel-container"></label>');tme.append("<span>"+x_+"</span>");var ame=Mp('<input type="text" id="'+eme+'" placeholder="'+($P||"")+'">');return tme.append(ame),[tme[0],ame[0]]}function C_(x_,eme){var $P=Mp('<div class="button-container"></div>'),tme=Mp('<button type="button" id="'+x_+'">'+eme+"</button>");return $P.append(tme),[$P[0],tme[0]]}var A_=function(x_){function eme($P,tme,ame){ame===void 0&&(ame=!1);var nme=x_.call(this,$P,tme,ame)||this;return nme.$body=Mp("body"),nme.modal=null,nme.menu=tme,nme}return rA(eme,x_),eme.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},eme.prototype.getPosition=function(){var $P=T_(this),tme=this.menu.getModalPositionNode($P);return Sf.isElement(tme)?ET($P,tme,"modal"):wT($P)},eme.prototype.handleModal=function(){var $P=T_(this),tme=this.menu;if(this.modal==null){var ame=new D_($P,tme.modalWidth);this.renderAndShowModal(ame,!0),this.modal=ame}else(ame=this.modal).isShow?ame.hide():this.renderAndShowModal(ame,!1)},eme.prototype.renderAndShowModal=function($P,tme){tme===void 0&&(tme=!1);var ame=T_(this),nme=this.menu;if(nme.getModalContentElem!=null){var rme=QO.getTextarea(ame),ime=QO.getToolbar(ame),ome=((ime==null?void 0:ime.getConfig())||{}).modalAppendToBody,lme=nme.getModalContentElem(ame);if($P.renderContent(lme),ome)$P.setStyle({left:"0",right:"0"});else{var sme=this.getPosition();$P.setStyle(sme)}tme&&(ome?$P.appendTo(this.$body):$P.appendTo(rme.$textAreaContainer)),$P.show(),ome||DT(ame,$P.$elem),setTimeout(function(){ame.blur()})}},eme}(y_),O_=function(x_){function eme($P,tme){var ame=x_.call(this,$P)||this;return ame.type="selectList",ame.$elem=Mp('<div class="w-e-select-list"></div>'),tme&&ame.$elem.css("width",tme+"px"),ame.$elem.on("click",function(nme){nme.stopPropagation()}),ame}return rA(eme,x_),eme.prototype.renderList=function($P){var tme=this.$elem;tme.empty();var ame=Mp("<ul></ul>");$P.forEach(function(nme){var rme=nme.value,ime=nme.text,ome=nme.selected,lme=nme.styleForRenderMenuList,sme=Mp('<li data-value="'+rme+'"></li>');if(lme&&sme.css(lme),ome){var cme=Mp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');sme.append(cme),sme.addClass("selected")}sme.append(Mp('<span data-value="'+rme+'">'+ime+"</span>")),sme.attr("title",ime),ame.append(sme)}),tme.append(ame)},eme.prototype.genSelfElem=function(){return null},eme}(b_),k_=function(){function x_(eme,$P,tme){var ame=this;tme===void 0&&(tme=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var nme=$P.tag,rme=$P.title,ime=$P.width,ome=$P.iconSvg,lme=ome===void 0?"":ome,sme=$P.hotkey,cme=sme===void 0?"":sme;if(nme!=="select")throw new Error("Invalid tag '"+nme+"', expected 'select'");var dme=this.$button;ime&&dme.css("width",ime+"px"),dme.attr("data-menu-key",eme),v_(dme,lme,rme,cme,tme),this.$elem.append(dme),this.menu=$P,ZB(function(){return ame.init()})}return x_.prototype.init=function(){var eme=this;this.setSelectedValue(),this.$button.on("click",function($P){$P.preventDefault(),T_(eme).hidePanelOrModal(),eme.trigger()})},x_.prototype.trigger=function(){var eme=this,$P=T_(this);if(!$P.isDisabled()&&!this.disabled){var tme=this.menu;if(this.selectList==null){this.selectList=new O_($P,tme.selectPanelWidth);var ame=this.selectList,nme=tme.getOptions($P);ame.renderList(nme),ame.appendTo(this.$elem),ame.show(),ame.$elem.on("click","li",function(rme){var ime=rme.target;if(ime!=null){rme.preventDefault();var ome=Mp(ime).attr("data-value");eme.onChange(ome)}})}else(ame=this.selectList).isShow?ame.hide():(nme=tme.getOptions($P),ame.renderList(nme),ame.show())}},x_.prototype.onChange=function(eme){var $P=T_(this),tme=this.menu;tme.exec&&tme.exec($P,eme)},x_.prototype.setSelectedValue=function(){var eme=T_(this),$P=this.menu,tme=$P.getValue(eme),ame=function(ime,ome){for(var lme=ime.length,sme="",cme=0;cme<lme;cme++){var dme=ime[cme];if(dme.value===ome){sme=dme.text;break}}return sme}($P.getOptions(eme),tme.toString()),nme=this.$button,rme=h_();nme.empty(),nme.text(ame),nme.append(rme)},x_.prototype.setDisabled=function(){var eme=T_(this),$P=this.menu.isDisabled(eme),tme=this.$button;(eme.selection==null||eme.isDisabled())&&($P=!0);var ame="disabled";$P?tme.addClass(ame):tme.removeClass(ame),this.disabled=$P},x_.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},x_}(),B_=function(){function x_(eme){this.$elem=Mp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Mp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Mp('<button type="button"></button>');var $P=eme.key,tme=eme.iconSvg,ame=eme.title,nme=this.$elem,rme=this.$button;if(tme){var ime=Mp(tme);p_(ime),rme.append(ime)}else rme.text(ame);rme.attr("data-menu-key",$P);var ome=h_();rme.append(ome),nme.append(rme);var lme=this.$container;nme.append(lme);var sme=this.createObserver();this.observe(sme)}return x_.prototype.appendBarItem=function(eme){var $P=eme.$elem;this.$container.append($P)},x_.prototype.observe=function(eme){var $P=this.$container;eme.observe($P[0],{childList:!0,subtree:!0,attributes:!0})},x_.prototype.createObserver=function(){var eme=this,$P=this.$container,tme=this.$button,ame=new MutationObserver(function(){var nme=$P.find("button"),rme=nme.length;if(rme!==0){var ime=0;nme.each(function(ome){Mp(ome).hasClass("disabled")&&ime++}),ame.disconnect(),ime===rme?tme.addClass("disabled"):tme.removeClass("disabled"),eme.observe(ame)}});return ame},x_}(),F_=new WeakMap;function T_(x_){var eme=fO.get(x_);if(eme==null)throw new Error("Can not get editor instance");return eme}function __(x_,eme,$P){$P===void 0&&($P=!1);var tme=F_.get(eme);if(tme)return tme;var ame=eme.tag;if(ame==="button"){var nme=eme.showDropPanel,rme=eme.showModal;tme=nme?new E_(x_,eme,$P):rme?new A_(x_,eme,$P):new m_(x_,eme,$P)}if(ame==="select"&&(tme=new k_(x_,eme,$P)),tme==null)throw new Error("Invalid tag in menu "+JSON.stringify(eme));return F_.set(eme,tme),tme}function P_(x_,eme){var $P=x_.selection;return $P!=null&&!qf.isCollapsed($P)&&!QO.getSelectedElems(x_).some(function(tme){if(x_.isVoid(tme))return!0;var ame=tme.type;return!!["pre","code","table"].includes(ame)||void 0})&&!!ed.isText(eme)}var j_=function(){function x_(){var eme=this;this.$elem=Mp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Zv(function(){var $P=eme.isShow,tme=eme.getSelectedNodeAndMenuKeys()||{},ame=tme.node,nme=ame===void 0?null:ame,rme=tme.menuKeys,ime=rme===void 0?[]:rme;nme!=null&&eme.changeItemsState(),nme&&Sf.isElement(nme)&&$P&&eme.isSamePath(nme,eme.prevSelectedNode)||(eme.hideAndClean(),nme!=null&&(eme.registerItems(ime),eme.setPosition(nme),eme.show()),eme.prevSelectedNode=nme)},200),ZB(function(){var $P=eme.getEditorInstance(),tme=eme.$elem;tme.on("mousedown",function(nme){return nme.preventDefault()},{passive:!1}),QO.getTextarea($P).$textAreaContainer.append(tme),$P.on("change",eme.changeHoverbarState);var ame=eme.hideAndClean.bind(eme);$P.on("scroll",ame),$P.on("fullScreen",ame),$P.on("unFullScreen",ame)})}return x_.prototype.getMenus=function(){return this.menus},x_.prototype.hideAndClean=function(){var eme=this.$elem;eme.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],eme.empty(),this.isShow=!1},x_.prototype.checkPositionBottom=function(){var eme=this.$elem,$P=!1,tme=window.innerHeight;tme&&tme>=360&&tme-eme[0].getBoundingClientRect().bottom<360&&($P=!0),$P?eme.addClass("w-e-bar-bottom"):eme.removeClass("w-e-bar-bottom")},x_.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},x_.prototype.changeItemsState=function(){var eme=this;ZB(function(){eme.hoverbarItems.forEach(function($P){$P.changeMenuState()})})},x_.prototype.registerItems=function(eme){var $P=this,tme=this.$elem;eme.forEach(function(ame){if(ame!=="|")$P.registerSingleItem(ame);else{var nme=g_();tme.append(nme)}})},x_.prototype.registerSingleItem=function(eme){var $P=this.getEditorInstance(),tme=this.menus,ame=tme[eme];if(ame==null){var nme=nk[eme];if(nme==null)throw new Error("Not found menu item factory by key '"+eme+"'");if(typeof nme!="function")throw new Error("Menu item factory (key='"+eme+"') is not a function");ame=nme(),tme[eme]=ame}var rme=__(eme,ame);this.hoverbarItems.push(rme),fO.set(rme,$P),this.$elem.append(rme.$elem)},x_.prototype.setPosition=function(eme){var $P=this.getEditorInstance(),tme=this.$elem;if(tme.attr("style",""),Sf.isElement(eme)){var ame=ET($P,eme,"bar");return tme.css(ame),void DT($P,tme)}if(ed.isText(eme))return ame=wT($P),tme.css(ame),void DT($P,tme);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},x_.prototype.getSelectedNodeAndMenuKeys=function(){var eme=this.getEditorInstance();if(eme.selection==null)return null;var $P=this.getHoverbarKeysConf(),tme=null,ame=[],nme=function(ime){var ome=$P[ime],lme=ome.match,sme=ome.menuKeys,cme=sme===void 0?[]:sme,dme=lme||function(pme,hme){return QO.checkNodeType(hme,ime)},ume=aA(Bf.nodes(eme,{match:function(pme){return dme(eme,pme)},universal:!0}),1),fme=ume[0];if(fme!=null)return tme=fme[0],ame=cme,"break"};for(var rme in $P)if(nme(rme)==="break")break;return tme==null||ame.length===0?null:{node:tme,menuKeys:ame}},x_.prototype.getEditorInstance=function(){var eme=lO.get(this);if(eme==null)throw new Error("Can not get editor instance");return eme},x_.prototype.getHoverbarKeysConf=function(){var eme=this.getEditorInstance().getConfig().hoverbarKeys,$P=eme===void 0?{}:eme,tme=$P.text;return tme&&tme.match==null&&(tme.match=P_),$P},x_.prototype.isSamePath=function(eme,$P){if(eme==null||$P==null)return!1;var tme=QO.findPath(null,eme),ame=QO.findPath(null,$P);return Mf.equals(tme,ame)},x_.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},x_}();function N_(x_,eme,$P,tme){if(mO.set(x_,eme),bO.set(x_,$P),Sf.isElement(x_)){var ame=x_.children;if((ame===void 0?[]:ame).forEach(function(ime,ome){return N_(ime,ome,x_,tme)}),Bf.isVoid(tme,x_)){var nme=aA(Nf.texts(x_),1),rme=aA(nme[0],1)[0];mO.set(rme,0),bO.set(rme,x_)}}}function I_(x_){var eme=x_.selector,$P=eme===void 0?"":eme,tme=x_.config,ame=tme===void 0?{}:tme,nme=x_.content,rme=x_.html,ime=x_.plugins,ome=ime===void 0?[]:ime,lme=(bme=>{var mme=bme,{apply:vme}=mme;return mme.history={undos:[],redos:[]},mme.redo=()=>{var{history:gme}=mme,{redos:yme}=gme;if(yme.length>0){var _me=yme[yme.length-1];yS.withoutSaving(mme,()=>{Bf.withoutNormalizing(mme,()=>{for(var $me of _me)mme.apply($me)})}),gme.redos.pop(),gme.undos.push(_me)}},mme.undo=()=>{var{history:gme}=mme,{undos:yme}=gme;if(yme.length>0){var _me=yme[yme.length-1];yS.withoutSaving(mme,()=>{Bf.withoutNormalizing(mme,()=>{var $me=_me.map(Rf.inverse).reverse();for(var Cme of $me)mme.apply(Cme)})}),gme.redos.push(_me),gme.undos.pop()}},mme.apply=gme=>{var{operations:yme,history:_me}=mme,{undos:$me}=_me,Cme=$me[$me.length-1],Sme=Cme&&Cme[Cme.length-1],Eme=((Rme,Nme)=>!(!Nme||Rme.type!=="set_selection"||Nme.type!=="set_selection"))(gme,Sme),xme=yS.isSaving(mme),Tme=yS.isMerging(mme);if(xme==null&&(xme=((Rme,Nme)=>Rme.type!=="set_selection"||Rme.properties!=null&&Rme.newProperties!=null)(gme)),xme){if(Tme==null&&(Tme=Cme!=null&&(yme.length!==0||((Rme,Nme)=>Rme.type==="set_selection"||!(!Nme||Rme.type!=="insert_text"||Nme.type!=="insert_text"||Rme.offset!==Nme.offset+Nme.text.length||!Mf.equals(Rme.path,Nme.path))||!(!Nme||Rme.type!=="remove_text"||Nme.type!=="remove_text"||Rme.offset+Rme.text.length!==Nme.offset||!Mf.equals(Rme.path,Nme.path)))(gme,Sme)||Eme)),Cme&&Tme)Eme&&Cme.pop(),Cme.push(gme);else{var Ome=[gme];$me.push(Ome)}for(;$me.length>100;)$me.shift();(Rme=>Rme.type!=="set_selection")(gme)&&(_me.redos=[])}vme(gme)},mme})(function(bme){var mme=bme,vme=mme.insertText,gme=mme.insertNode,yme=mme.insertFragment,_me=mme.dangerouslyInsertHtml;return mme.insertText=function($me){if(mme.getConfig().maxLength){var Cme=QO.getLeftLengthOfMaxLength(mme);Cme<=0||(Cme<$me.length?vme($me.slice(0,Cme)):vme($me))}else vme($me)},mme.insertNode=function($me){if(mme.getConfig().maxLength){var Cme=QO.getLeftLengthOfMaxLength(mme);Cme<=0||Cme<Nf.string($me).length||gme($me)}else gme($me)},mme.insertFragment=function($me){if(mme.getConfig().maxLength)if($me.length!==1)$me.forEach(function(Sme){mme.insertNode(Sme)});else{var Cme=$me[0];if(QO.getLeftLengthOfMaxLength(mme)<Nf.string(Cme).length)return;yme($me)}else yme($me)},mme.dangerouslyInsertHtml=function($me,Cme){if($me===void 0&&($me=""),Cme===void 0&&(Cme=!1),$me)if(mme.getConfig().maxLength){var Sme=QO.getLeftLengthOfMaxLength(mme);if(!(Sme<=0)){var Eme=document.createElement("div");Eme.innerHTML=$me;var xme=Array.from(Eme.childNodes).reduce(function(Tme,Ome){var Rme=Ome.nodeType,Nme=Ome.nodeName;return Ome?Rme===PO.TEXT_NODE?Tme+(Ome.textContent||""):Rme===PO.ELEMENT_NODE?UF.has(Nme.toLowerCase())?Tme:Tme+(Ome.textContent||""):Tme:Tme},"");Sme<xme.length||_me($me,Cme)}}else _me($me,Cme)},mme}(function(bme){var mme=bme;return mme.on=function(vme,gme){var yme=hT(mme);if(yme.on(vme,gme),vme==="destroyed"&&vT(mme,gme),vme!=="destroyed"){var _me=function(){return yme.off(vme,gme)};yme.on("destroyed",_me),vT(mme,_me)}},mme.once=function(vme,gme){hT(mme).once(vme,gme)},mme.off=function(vme,gme){hT(mme).off(vme,gme)},mme.emit=function(vme){for(var gme=[],yme=1;yme<arguments.length;yme++)gme[yme-1]=arguments[yme];var _me=hT(mme);_me.emit.apply(_me,uA([vme],aA(gme))),vme==="destroyed"&&(yT(mme).forEach(function($me){return _me.off("destroyed",$me)}),mT(mme))},mme}(function(bme){var mme=bme;return mme.select=function(vme){md.select(mme,vme)},mme.deselect=function(){var vme=mme.selection,gme=QO.findDocumentOrShadowRoot(mme).getSelection();gme&&gme.rangeCount>0&&gme.removeAllRanges(),vme&&md.deselect(bme)},mme.move=function(vme,gme){gme===void 0&&(gme=!1),vme&&(vme<0||md.move(bme,{distance:vme,unit:"character",reverse:gme}))},mme.moveReverse=function(vme){mme.move(vme,!0)},mme.restoreSelection=function(){var vme=OO.get(mme);vme!=null&&(mme.focus(),md.select(mme,vme))},mme.getSelectionPosition=function(){return wT(mme)},mme.getNodePosition=function(vme){return ET(mme,vme)},mme.isSelectedAll=function(){var vme=mme.selection;if(vme==null)return!1;var gme=aA(qf.edges(vme),2),yme=gme[0],_me=gme[1],$me=aA(Bf.edges(mme,[]),2),Cme=$me[0],Sme=$me[1];return!(!Vf.equals(yme,Cme)||!Vf.equals(_me,Sme))},mme.selectAll=function(){var vme=Bf.start(mme,[]),gme=Bf.end(mme,[]);md.select(mme,{anchor:vme,focus:gme})},mme}(function(bme){var mme=bme,vme=mme.onChange,gme=mme.insertText,yme=mme.apply,_me=mme.deleteBackward;return mme.insertText=function($me){mme.getConfig().readOnly||gme($me)},mme.apply=function($me){var Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime=[];switch($me.type){case"insert_text":case"remove_text":case"set_node":try{for(var Pme=iA(Bf.levels(mme,{at:$me.path})),Mme=Pme.next();!Mme.done;Mme=Pme.next()){var kme=aA(Mme.value,2),Bme=kme[0],Dme=kme[1],jme=QO.findKey(mme,Bme);Ime.push([Dme,jme])}}catch(Xme){Cme={error:Xme}}finally{try{Mme&&!Mme.done&&(Sme=Pme.return)&&Sme.call(Pme)}finally{if(Cme)throw Cme.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var Vme=iA(Bf.levels(mme,{at:Mf.parent($me.path)})),Wme=Vme.next();!Wme.done;Wme=Vme.next()){var Lme=aA(Wme.value,2);Bme=Lme[0],Dme=Lme[1],jme=QO.findKey(mme,Bme),Ime.push([Dme,jme])}}catch(Xme){Eme={error:Xme}}finally{try{Wme&&!Wme.done&&(xme=Vme.return)&&xme.call(Vme)}finally{if(Eme)throw Eme.error}}break;case"move_node":try{for(var zme=iA(Bf.levels(mme,{at:Mf.common(Mf.parent($me.path),Mf.parent($me.newPath))})),Ume=zme.next();!Ume.done;Ume=zme.next()){var Gme=aA(Ume.value,2);Bme=Gme[0],Dme=Gme[1],jme=QO.findKey(mme,Bme),Ime.push([Dme,jme])}}catch(Xme){Tme={error:Xme}}finally{try{Ume&&!Ume.done&&(Ome=zme.return)&&Ome.call(zme)}finally{if(Tme)throw Tme.error}}}yme($me);try{for(var Jme=iA(Ime),Yme=Jme.next();!Yme.done;Yme=Jme.next()){var Qme=aA(Yme.value,2);Dme=Qme[0],jme=Qme[1],Bme=aA(Bf.node(mme,Dme),1)[0],xO.set(Bme,jme)}}catch(Xme){Rme={error:Xme}}finally{try{Yme&&!Yme.done&&(Nme=Jme.return)&&Nme.call(Jme)}finally{if(Rme)throw Rme.error}}},mme.deleteBackward=function($me){if($me!=="line")return _me($me);if(bme.selection&&qf.isCollapsed(bme.selection)){var Cme=Bf.above(bme,{match:function(Tme){return Bf.isBlock(bme,Tme)},at:bme.selection});if(Cme){var Sme=aA(Cme,2)[1],Eme=Bf.range(bme,Sme,bme.selection.anchor),xme=function(Tme,Ome){var Rme=Bf.range(Tme,qf.end(Ome)),Nme=Array.from(Bf.positions(Tme,{at:Ome})),Ime=0,Pme=Nme.length,Mme=Math.floor(Pme/2);if(tF(Tme,Bf.range(Tme,Nme[Ime]),Rme))return Bf.range(Tme,Nme[Ime],Rme);if(Nme.length<2)return Bf.range(Tme,Nme[Nme.length-1],Rme);for(;Mme!==Nme.length&&Mme!==Ime;)tF(Tme,Bf.range(Tme,Nme[Mme]),Rme)?Pme=Mme:Ime=Mme,Mme=Math.floor((Ime+Pme)/2);return Bf.range(Tme,Nme[Pme],Rme)}(mme,Eme);qf.isCollapsed(xme)||md.delete(bme,{at:xme})}}},mme.onChange=function(){var $me=mme.selection;$me!=null&&OO.set(mme,$me),mme.emit("change"),vme()},mme.handleTab=function(){mme.insertText("    ")},mme.getHtml=function(){var $me=mme.children;return($me===void 0?[]:$me).map(function(Cme){return JB(Cme,mme)}).join("")},mme.getText=function(){var $me=mme.children;return($me===void 0?[]:$me).map(function(Cme){return Nf.string(Cme)}).join(`
`)},mme.getSelectionText=function(){var $me=mme.selection;return $me==null?"":Bf.string(bme,$me)},mme.getElemsByType=function($me,Cme){var Sme,Eme;Cme===void 0&&(Cme=!1);var xme=[],Tme=Bf.nodes(mme,{at:[],universal:!0});try{for(var Ome=iA(Tme),Rme=Ome.next();!Rme.done;Rme=Ome.next()){var Nme=aA(Rme.value,1)[0];if(Sf.isElement(Nme)&&(Cme?Nme.type.indexOf($me)>=0:Nme.type===$me)){var Ime=QB(QO.findKey(mme,Nme).id);xme.push(oA(oA({},Nme),{id:Ime}))}}}catch(Pme){Sme={error:Pme}}finally{try{Rme&&!Rme.done&&(Eme=Ome.return)&&Eme.call(Ome)}finally{if(Sme)throw Sme.error}}return xme},mme.getElemsByTypePrefix=function($me){return mme.getElemsByType($me,!0)},mme.isEmpty=function(){var $me=mme.children,Cme=$me===void 0?[]:$me;if(Cme.length>1)return!1;var Sme=Cme[0];if(Sme==null)return!0;if(Sf.isElement(Sme)&&Sme.type==="paragraph"){var Eme=Sme.children,xme=Eme===void 0?[]:Eme;if(xme.length>1)return!1;var Tme=xme[0];if(Tme==null||ed.isText(Tme)&&Tme.text==="")return!0}return!1},mme.clear=function(){md.delete(mme,{at:{anchor:Bf.start(mme,[]),focus:Bf.end(mme,[])}}),mme.children.length===0&&md.insertNodes(mme,[{type:"paragraph",children:[{text:""}]}])},mme.getParentNode=function($me){return QO.getParentNode(mme,$me)},mme.dangerouslyInsertHtml=function($me,Cme){if($me===void 0&&($me=""),Cme===void 0&&(Cme=!1),$me){var Sme=document.createElement("div");Sme.innerHTML=$me;var Eme=Array.from(Sme.childNodes);if(Eme=Eme.filter(function(Rme){var Nme=Rme.nodeType,Ime=Rme.nodeName;return Nme===PO.TEXT_NODE||Nme===PO.ELEMENT_NODE&&!UF.has(Ime.toLowerCase())}),Eme.length!==0){var xme=mme.selection;if(xme!=null){var Tme=null;QO.isSelectedEmptyParagraph(mme)&&!Cme&&(Tme=[xme.focus.path[0]]),Sme.setAttribute("hidden","true"),document.body.appendChild(Sme);var Ome=0;Eme.forEach(function(Rme){var Nme=Rme.nodeType,Ime=Rme.nodeName,Pme=Rme.textContent,Mme=Pme===void 0?"":Pme;if(Nme!==PO.TEXT_NODE)if(Ime!=="BR"){var kme=Rme,Bme=!1;if(nF.includes(Ime.toLowerCase()))Bme=!0;else for(var Dme in iF)if(kme.matches(Dme)){Bme=!0;break}if(Bme){var jme=IF(Mp(kme),mme);return Array.isArray(jme)?(jme.forEach(function(Wme){return WF(mme,Wme)}),Ome++):(WF(mme,jme),Ome++),void(QO.isSelectedVoidNode(mme)&&mme.move(1))}var Vme=window.getComputedStyle(kme).display;QO.isSelectedEmptyParagraph(mme)||Vme.indexOf("inline")<0&&mme.insertBreak(),mme.dangerouslyInsertHtml(kme.innerHTML,!0)}else mme.insertText(`
`);else{if(!Mme||!Mme.trim())return;mme.insertNode({text:Mme})}}),Ome&&Tme&&QO.isEmptyPath(mme,Tme)&&md.removeNodes(mme,{at:Tme}),Sme.remove()}}}},mme.setHtml=function($me){$me===void 0&&($me="");var Cme=mme.isDisabled(),Sme=mme.isFocused(),Eme=JSON.stringify(mme.selection);mme.enable(),mme.focus(),mme.clear();var xme=RF(mme,$me);if(md.insertFragment(mme,xme),Sme||(mme.deselect(),mme.blur()),Cme&&(mme.deselect(),mme.disable()),mme.isFocused())try{mme.select(JSON.parse(Eme))}catch{mme.select(Bf.start(mme,[]))}},mme}(function(bme){var mme=bme;return mme.getAllMenuKeys=function(){var vme=[];for(var gme in nk)vme.push(gme);return vme},mme.getConfig=function(){var vme=hO.get(mme);if(vme==null)throw new Error("Can not get editor config");return vme},mme.getMenuConfig=function(vme){var gme=mme.getConfig().MENU_CONF;return(gme===void 0?{}:gme)[vme]||{}},mme.alert=function(vme,gme){gme===void 0&&(gme="info");var yme=mme.getConfig().customAlert;yme&&yme(vme,gme)},mme}(function(bme){var mme=GF(Wc());return mme.id="wangEditor-"+ek++,mme.isDestroyed=!1,mme.isFullScreen=!1,mme.focus=function(vme){if(QO.toDOMNode(mme,mme).focus({preventScroll:!0}),AO.set(mme,!0),vme){var gme=Bf.end(mme,[]);md.select(mme,gme)}else{var yme=OO.get(mme);yme?md.select(mme,yme):md.select(mme,Bf.start(mme,[]))}},mme.isFocused=function(){return!!AO.get(mme)},mme.blur=function(){QO.toDOMNode(mme,mme).blur(),md.deselect(mme),AO.set(mme,!1)},mme.updateView=function(){QO.getTextarea(mme).changeViewState();var vme=QO.getToolbar(mme);vme&&vme.changeToolbarState();var gme=QO.getHoverbar(mme);gme&&gme.changeHoverbarState()},mme.destroy=function(){if(!mme.isDestroyed){var vme=QO.getTextarea(mme);vme.destroy(),iO.delete(mme),aO.delete(vme);var gme=QO.getToolbar(mme);gme&&(gme.destroy(),sO.delete(mme),uO.delete(gme));var yme=QO.getHoverbar(mme);yme&&(yme.destroy(),cO.delete(mme),lO.delete(yme)),mme.isDestroyed=!0,mme.emit("destroyed")}},mme.scrollToElem=function(vme){if(!mme.getConfig().scroll){var gme="编辑器禁用了 scroll ，编辑器内容无法滚动，请自行实现该功能";return gme+=`
You has disabled editor scroll, please do this yourself`,void console.warn(gme)}var yme=Mp("#"+vme);if(yme.length!==0){var _me=yme[0];if(!QO.hasDOMNode(mme,_me))return gme="Element (found by id is '"+vme+"') is not in editor DOM",gme+=`
 通过 id '`+vme+"' 找到的 element 不在 editor DOM 之内",void console.error(gme,_me);var $me=QO.getTextarea(mme),Cme=$me.$textAreaContainer,Sme=$me.$scroll,Eme=yme.offset().top,xme=Cme.offset().top;Sme[0].scrollBy({top:Eme-xme,behavior:"smooth"})}},mme.showProgressBar=function(vme){vme<1||QO.getTextarea(mme).changeProgress(vme)},mme.hidePanelOrModal=function(){var vme=dO.get(mme);vme!=null&&vme.forEach(function(gme){return gme.hide()})},mme.enable=function(){mme.getConfig().readOnly=!1,mme.updateView()},mme.disable=function(){mme.getConfig().readOnly=!0,mme.updateView()},mme.isDisabled=function(){return mme.getConfig().readOnly},mme.toDOMNode=function(vme){return QO.toDOMNode(mme,vme)},mme.fullScreen=function(){if(!mme.isFullScreen){var vme=null,gme=QO.getToolbar(mme);gme&&(vme=gme.$box);var yme=QO.getTextarea(mme).$box.parent();if(vme&&vme.parent()[0]!==yme[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏，因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);yme.addClass("w-e-full-screen-container");var _me=yme.css("z-index");yme.attr("data-z-index",_me.toString()),mme.isFullScreen=!0,mme.emit("fullScreen")}},mme.unFullScreen=function(){if(mme.isFullScreen){var vme=QO.getTextarea(mme).$box.parent();setTimeout(function(){vme.removeClass("w-e-full-screen-container"),mme.isFullScreen=!1,mme.emit("unFullScreen")},200)}},mme.getEditableContainer=function(){return QO.getTextarea(mme).$textAreaContainer[0]},mme}()))))));if($P&&function(bme,mme){return LF(bme,"data-w-e-textarea",mme)}(lme,$P))throw new Error("Repeated create editor by selector '"+$P+"'");var sme=function(bme){bme===void 0&&(bme={});var mme=Jv(tk),vme={},gme=bme.MENU_CONF,yme=gme===void 0?{}:gme;return Lh(mme,function(_me,$me){vme[$me]=oA(oA({},_me),yme[$me]||{})}),delete bme.MENU_CONF,oA({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:vme,hoverbarKeys:{},customAlert:function(_me,$me){window.alert($me+`:
`+_me)}},bme)}(ame);hO.set(lme,sme);var cme=sme.hoverbarKeys,dme=cme===void 0?{}:cme;if(ome.forEach(function(bme){lme=bme(lme)}),rme!=null&&(lme.children=RF(lme,rme)),nme&&nme.length&&(lme.children=nme),lme.children.length===0&&(lme.children=[{type:"paragraph",children:[{text:""}]}]),QO.normalizeContent(lme),$P){var ume=new d_($P);iO.set(lme,ume),aO.set(ume,lme),ume.changeViewState(),ZB(function(){var bme=ume.$scroll;bme!=null&&bme.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,bme)});var fme=void 0;Object.keys(dme).length>0&&(fme=new j_,lO.set(fme,lme),cO.set(lme,fme)),lme.on("change",function(){lme.hidePanelOrModal()}),lme.on("scroll",function(){lme.hidePanelOrModal()})}else lme.children.forEach(function(bme,mme){return N_(bme,mme,lme,lme)});var pme=sme.onCreated,hme=sme.onDestroyed;return pme&&lme.on("created",function(){return pme(lme)}),hme&&lme.on("destroyed",function(){return hme(lme)}),ZB(function(){return lme.emit("created")}),lme}var L_=iC("splice"),R_=lw.TypeError,M_=Math.max,z_=Math.min;cS({target:"Array",proto:!0,forced:!L_},{splice:function(x_,eme){var $P,tme,ame,nme,rme,ime,ome=Dw(this),lme=pD(ome),sme=VD(x_,lme),cme=arguments.length;if(cme===0?$P=tme=0:cme===1?($P=0,tme=lme-sme):($P=cme-2,tme=z_(M_(cD(eme),0),lme-sme)),lme+$P-tme>9007199254740991)throw R_("Maximum allowed length exceeded");for(ame=CD(ome,tme),nme=0;nme<tme;nme++)(rme=sme+nme)in ome&&tx(ame,nme,ome[rme]);if(ame.length=tme,$P<tme){for(nme=sme;nme<lme-tme;nme++)ime=nme+$P,(rme=nme+tme)in ome?ome[ime]=ome[rme]:delete ome[ime];for(nme=lme;nme>lme-tme+$P;nme--)delete ome[nme-1]}else if($P>tme)for(nme=lme-tme;nme>sme;nme--)ime=nme+$P-1,(rme=nme+tme-1)in ome?ome[ime]=ome[rme]:delete ome[ime];for(nme=0;nme<$P;nme++)ome[nme+sme]=arguments[nme+2];return ome.length=lme-tme+$P,ame}});var $_=function(){function x_(eme,$P){var tme=this;this.$toolbar=Mp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zv(function(){tme.toolbarItems.forEach(function(rme){rme.changeMenuState()})},200),this.config=$P;var ame=Mp(eme);if(ame.length===0)throw new Error("Cannot find toolbar DOM by selector '"+eme+"'");this.$box=ame;var nme=this.$toolbar;nme.on("mousedown",function(rme){return rme.preventDefault()},{passive:!1}),ame.append(nme),ZB(function(){tme.registerItems(),tme.changeToolbarState(),tme.getEditorInstance().on("change",tme.changeToolbarState)})}return x_.prototype.getMenus=function(){return this.menus},x_.prototype.getConfig=function(){return this.config},x_.prototype.registerItems=function(){var eme=this,$P="",tme=this.$toolbar,ame=this.config,nme=ame.toolbarKeys,rme=nme===void 0?[]:nme,ime=ame.insertKeys,ome=ime===void 0?{index:0,keys:[]}:ime,lme=ame.excludeKeys,sme=lme===void 0?[]:lme,cme=Jv(rme);ome.keys.length>0&&(typeof ome.keys=="string"&&(ome.keys=[ome.keys]),ome.keys.forEach(function(fme,pme){cme.splice(ome.index+pme,0,fme)}));var dme=cme.filter(function(fme){if(typeof fme=="string"){if(sme.includes(fme))return!1}else if(sme.includes(fme.key))return!1;return!0}),ume=dme.length;dme.forEach(function(fme,pme){if(fme==="|"){if(pme===0||pme+1===ume||$P==="|")return;var hme=g_();return tme.append(hme),void($P=fme)}if(typeof fme=="string")return eme.registerSingleItem(fme,eme),void($P=fme);eme.registerGroup(fme),$P="group"})},x_.prototype.registerGroup=function(eme){var $P=this,tme=this.$toolbar,ame=function(lme){return new B_(lme)}(eme),nme=eme.menuKeys,rme=nme===void 0?[]:nme,ime=this.config.excludeKeys,ome=ime===void 0?[]:ime;rme.forEach(function(lme){ome.includes(lme)||$P.registerSingleItem(lme,ame)}),tme.append(ame.$elem)},x_.prototype.registerSingleItem=function(eme,$P){var tme=this.getEditorInstance(),ame=$P instanceof B_,nme=this.menus,rme=nme[eme];if(rme==null){var ime=nk[eme];if(ime==null)throw new Error("Not found menu item factory by key '"+eme+"'");if(typeof ime!="function")throw new Error("Menu item factory (key='"+eme+"') is not a function");rme=ime(),nme[eme]=rme}else console.warn("Duplicated toolbar menu key '"+eme+`'
重复注册了菜单栏 menu '`+eme+"'");var ome=__(eme,rme,ame);this.toolbarItems.push(ome),fO.set(ome,tme),ame?$P.appendBarItem(ome):$P.$toolbar.append(ome.$elem)},x_.prototype.getEditorInstance=function(){var eme=uO.get(this);if(eme==null)throw new Error("Can not get editor instance");return eme},x_.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},x_}(),H_=VE.EXISTS,V_=bE.f,U_=Function.prototype,W_=mw(U_.toString),G_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,q_=mw(G_.exec);function K_(x_){var eme=x_.server,$P=eme===void 0?"":eme,tme=x_.fieldName,ame=tme===void 0?"":tme,nme=x_.maxFileSize,rme=nme===void 0?10485760:nme,ime=x_.maxNumberOfFiles,ome=ime===void 0?100:ime,lme=x_.meta,sme=lme===void 0?{}:lme,cme=x_.metaWithUrl,dme=cme!==void 0&&cme,ume=x_.headers,fme=ume===void 0?{}:ume,pme=x_.withCredentials,hme=pme!==void 0&&pme,bme=x_.timeout,mme=bme===void 0?1e4:bme,vme=x_.onBeforeUpload,gme=vme===void 0?function(Ome){return Ome}:vme,yme=x_.onSuccess,_me=yme===void 0?function(Ome,Rme){}:yme,$me=x_.onError,Cme=$me===void 0?function(Ome,Rme,Nme){console.error(Ome.name+" upload error",Rme,Nme)}:$me,Sme=x_.onProgress,Eme=Sme===void 0?function(Ome){}:Sme;if(!$P)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!ame)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var xme=$P;dme&&(xme=function(Ome,Rme){var Nme=aA(Ome.split("#"),2),Ime=Nme[0],Pme=Nme[1],Mme=[];Lh(Rme,function(Bme,Dme){Mme.push(Dme+"="+Bme)});var kme=Mme.join("&");return Ime=Ime.indexOf("?")>0?Ime+"&"+kme:Ime+"?"+kme,Pme?Ime+"#"+Pme:Ime}(xme,sme));var Tme=new _m$1({onBeforeUpload:gme,restrictions:{maxFileSize:rme,maxNumberOfFiles:ome},meta:sme}).use(rw,{endpoint:xme,headers:fme,formData:!0,fieldName:ame,bundle:!0,withCredentials:hme,timeout:mme});return Tme.on("upload-success",function(Ome,Rme){var Nme=Rme.body,Ime=Nme===void 0?{}:Nme;try{_me(Ome,Ime)}catch(Pme){console.error("wangEditor upload file - onSuccess error",Pme)}Tme.removeFile(Ome.id)}),Tme.on("progress",function(Ome){Ome<1||Eme(Ome)}),Tme.on("upload-error",function(Ome,Rme,Nme){try{Cme(Ome,Rme,Nme)}catch(Ime){console.error("wangEditor upload file - onError error",Ime)}Tme.removeFile(Ome.id)}),Tme.on("restriction-failed",function(Ome,Rme){try{Cme(Ome,Rme)}catch(Nme){console.error("wangEditor upload file - onError error",Nme)}Tme.removeFile(Ome.id)}),Tme}function Y_(x_){return Y_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(eme){return typeof eme}:function(eme){return eme&&typeof Symbol=="function"&&eme.constructor===Symbol&&eme!==Symbol.prototype?"symbol":typeof eme},Y_(x_)}function X_(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function Z_(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?Object(arguments[eme]):{},tme=Object.keys($P);typeof Object.getOwnPropertySymbols=="function"&&tme.push.apply(tme,Object.getOwnPropertySymbols($P).filter(function(ame){return Object.getOwnPropertyDescriptor($P,ame).enumerable})),tme.forEach(function(ame){X_(x_,ame,$P[ame])})}return x_}function J_(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function Q_(x_,eme){for(var $P=0;$P<eme.length;$P++){var tme=eme[$P];tme.enumerable=tme.enumerable||!1,tme.configurable=!0,"value"in tme&&(tme.writable=!0),Object.defineProperty(x_,tme.key,tme)}}function eP(x_,eme,$P){return eme&&Q_(x_.prototype,eme),$P&&Q_(x_,$P),x_}function tP(x_){if(x_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x_}function nP(x_,eme){if(eme&&(Y_(eme)==="object"||typeof eme=="function"))return eme;if(eme!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tP(x_)}function rP(x_){return rP=Object.setPrototypeOf?Object.getPrototypeOf:function(eme){return eme.__proto__||Object.getPrototypeOf(eme)},rP(x_)}function oP(x_,eme){return oP=Object.setPrototypeOf||function($P,tme){return $P.__proto__=tme,$P},oP(x_,eme)}function iP(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function");x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,writable:!0,configurable:!0}}),eme&&oP(x_,eme)}Kw&&!H_&&V_(U_,"name",{configurable:!0,get:function(){try{return q_(G_,W_(this))[1]}catch{return""}}});var aP={type:"logger",log:function(x_){this.output("log",x_)},warn:function(x_){this.output("warn",x_)},error:function(x_){this.output("error",x_)},output:function(x_,eme){console&&console[x_]&&console[x_].apply(console,eme)}},uP=new(function(){function x_(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};J_(this,x_),this.init(eme,$P)}return eP(x_,[{key:"init",value:function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=$P.prefix||"i18next:",this.logger=eme||aP,this.options=$P,this.debug=$P.debug}},{key:"setDebug",value:function(eme){this.debug=eme}},{key:"log",value:function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return this.forward($P,"log","",!0)}},{key:"warn",value:function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return this.forward($P,"warn","",!0)}},{key:"error",value:function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return this.forward($P,"error","")}},{key:"deprecate",value:function(){for(var eme=arguments.length,$P=new Array(eme),tme=0;tme<eme;tme++)$P[tme]=arguments[tme];return this.forward($P,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(eme,$P,tme,ame){return ame&&!this.debug?null:(typeof eme[0]=="string"&&(eme[0]="".concat(tme).concat(this.prefix," ").concat(eme[0])),this.logger[$P](eme))}},{key:"create",value:function(eme){return new x_(this.logger,Z_({},{prefix:"".concat(this.prefix,":").concat(eme,":")},this.options))}}]),x_}()),sP=function(){function x_(){J_(this,x_),this.observers={}}return eP(x_,[{key:"on",value:function(eme,$P){var tme=this;return eme.split(" ").forEach(function(ame){tme.observers[ame]=tme.observers[ame]||[],tme.observers[ame].push($P)}),this}},{key:"off",value:function(eme,$P){this.observers[eme]&&($P?this.observers[eme]=this.observers[eme].filter(function(tme){return tme!==$P}):delete this.observers[eme])}},{key:"emit",value:function(eme){for(var $P=arguments.length,tme=new Array($P>1?$P-1:0),ame=1;ame<$P;ame++)tme[ame-1]=arguments[ame];if(this.observers[eme]){var nme=[].concat(this.observers[eme]);nme.forEach(function(ime){ime.apply(void 0,tme)})}if(this.observers["*"]){var rme=[].concat(this.observers["*"]);rme.forEach(function(ime){ime.apply(ime,[eme].concat(tme))})}}}]),x_}();function lP(){var x_,eme,$P=new Promise(function(tme,ame){x_=tme,eme=ame});return $P.resolve=x_,$P.reject=eme,$P}function cP(x_){return x_==null?"":""+x_}function fP(x_,eme,$P){x_.forEach(function(tme){eme[tme]&&($P[tme]=eme[tme])})}function dP(x_,eme,$P){function tme(ime){return ime&&ime.indexOf("###")>-1?ime.replace(/###/g,"."):ime}function ame(){return!x_||typeof x_=="string"}for(var nme=typeof eme!="string"?[].concat(eme):eme.split(".");nme.length>1;){if(ame())return{};var rme=tme(nme.shift());!x_[rme]&&$P&&(x_[rme]=new $P),x_=Object.prototype.hasOwnProperty.call(x_,rme)?x_[rme]:{}}return ame()?{}:{obj:x_,k:tme(nme.shift())}}function pP(x_,eme,$P){var tme=dP(x_,eme,Object);tme.obj[tme.k]=$P}function hP(x_,eme){var $P=dP(x_,eme),tme=$P.obj,ame=$P.k;if(tme)return tme[ame]}function gP(x_,eme,$P){var tme=hP(x_,$P);return tme!==void 0?tme:hP(eme,$P)}function vP(x_,eme,$P){for(var tme in eme)tme!=="__proto__"&&tme!=="constructor"&&(tme in x_?typeof x_[tme]=="string"||x_[tme]instanceof String||typeof eme[tme]=="string"||eme[tme]instanceof String?$P&&(x_[tme]=eme[tme]):vP(x_[tme],eme[tme],$P):x_[tme]=eme[tme]);return x_}function yP(x_){return x_.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function bP(x_){return typeof x_=="string"?x_.replace(/[&<>"'\/]/g,function(eme){return mP[eme]}):x_}var wP=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function EP(x_,eme){var $P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(x_){if(x_[eme])return x_[eme];for(var tme=eme.split($P),ame=x_,nme=0;nme<tme.length;++nme){if(!ame||typeof ame[tme[nme]]=="string"&&nme+1<tme.length)return;if(ame[tme[nme]]===void 0){for(var rme=2,ime=tme.slice(nme,nme+rme).join($P),ome=ame[ime];ome===void 0&&tme.length>nme+rme;)rme++,ome=ame[ime=tme.slice(nme,nme+rme).join($P)];if(ome===void 0)return;if(typeof ome=="string")return ome;if(ime&&typeof ome[ime]=="string")return ome[ime];var lme=tme.slice(nme+rme).join($P);return lme?EP(ome,lme,$P):void 0}ame=ame[tme[nme]]}return ame}}var DP=function(x_){function eme($P){var tme,ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return J_(this,eme),tme=nP(this,rP(eme).call(this)),wP&&sP.call(tP(tme)),tme.data=$P||{},tme.options=ame,tme.options.keySeparator===void 0&&(tme.options.keySeparator="."),tme.options.ignoreJSONStructure===void 0&&(tme.options.ignoreJSONStructure=!0),tme}return iP(eme,sP),eP(eme,[{key:"addNamespaces",value:function($P){this.options.ns.indexOf($P)<0&&this.options.ns.push($P)}},{key:"removeNamespaces",value:function($P){var tme=this.options.ns.indexOf($P);tme>-1&&this.options.ns.splice(tme,1)}},{key:"getResource",value:function($P,tme,ame){var nme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},rme=nme.keySeparator!==void 0?nme.keySeparator:this.options.keySeparator,ime=nme.ignoreJSONStructure!==void 0?nme.ignoreJSONStructure:this.options.ignoreJSONStructure,ome=[$P,tme];ame&&typeof ame!="string"&&(ome=ome.concat(ame)),ame&&typeof ame=="string"&&(ome=ome.concat(rme?ame.split(rme):ame)),$P.indexOf(".")>-1&&(ome=$P.split("."));var lme=hP(this.data,ome);return lme||!ime||typeof ame!="string"?lme:EP(this.data&&this.data[$P]&&this.data[$P][tme],ame,rme)}},{key:"addResource",value:function($P,tme,ame,nme){var rme=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},ime=this.options.keySeparator;ime===void 0&&(ime=".");var ome=[$P,tme];ame&&(ome=ome.concat(ime?ame.split(ime):ame)),$P.indexOf(".")>-1&&(nme=tme,tme=(ome=$P.split("."))[1]),this.addNamespaces(tme),pP(this.data,ome,nme),rme.silent||this.emit("added",$P,tme,ame,nme)}},{key:"addResources",value:function($P,tme,ame){var nme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var rme in ame)typeof ame[rme]!="string"&&Object.prototype.toString.apply(ame[rme])!=="[object Array]"||this.addResource($P,tme,rme,ame[rme],{silent:!0});nme.silent||this.emit("added",$P,tme,ame)}},{key:"addResourceBundle",value:function($P,tme,ame,nme,rme){var ime=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},ome=[$P,tme];$P.indexOf(".")>-1&&(nme=ame,ame=tme,tme=(ome=$P.split("."))[1]),this.addNamespaces(tme);var lme=hP(this.data,ome)||{};nme?vP(lme,ame,rme):lme=Z_({},lme,ame),pP(this.data,ome,lme),ime.silent||this.emit("added",$P,tme,ame)}},{key:"removeResourceBundle",value:function($P,tme){this.hasResourceBundle($P,tme)&&delete this.data[$P][tme],this.removeNamespaces(tme),this.emit("removed",$P,tme)}},{key:"hasResourceBundle",value:function($P,tme){return this.getResource($P,tme)!==void 0}},{key:"getResourceBundle",value:function($P,tme){return tme||(tme=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Z_({},{},this.getResource($P,tme)):this.getResource($P,tme)}},{key:"getDataByLanguage",value:function($P){return this.data[$P]}},{key:"toJSON",value:function(){return this.data}}]),eme}(),SP={processors:{},addPostProcessor:function(x_){this.processors[x_.name]=x_},handle:function(x_,eme,$P,tme,ame){var nme=this;return x_.forEach(function(rme){nme.processors[rme]&&(eme=nme.processors[rme].process(eme,$P,tme,ame))}),eme}},xP={},CP=function(x_){function eme($P){var tme,ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return J_(this,eme),tme=nP(this,rP(eme).call(this)),wP&&sP.call(tP(tme)),fP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],$P,tP(tme)),tme.options=ame,tme.options.keySeparator===void 0&&(tme.options.keySeparator="."),tme.logger=uP.create("translator"),tme}return iP(eme,sP),eP(eme,[{key:"changeLanguage",value:function($P){$P&&(this.language=$P)}},{key:"exists",value:function($P){var tme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if($P==null)return!1;var ame=this.resolve($P,tme);return ame&&ame.res!==void 0}},{key:"extractFromKey",value:function($P,tme){var ame=tme.nsSeparator!==void 0?tme.nsSeparator:this.options.nsSeparator;ame===void 0&&(ame=":");var nme=tme.keySeparator!==void 0?tme.keySeparator:this.options.keySeparator,rme=tme.ns||this.options.defaultNS;if(ame&&$P.indexOf(ame)>-1){var ime=$P.match(this.interpolator.nestingRegexp);if(ime&&ime.length>0)return{key:$P,namespaces:rme};var ome=$P.split(ame);(ame!==nme||ame===nme&&this.options.ns.indexOf(ome[0])>-1)&&(rme=ome.shift()),$P=ome.join(nme)}return typeof rme=="string"&&(rme=[rme]),{key:$P,namespaces:rme}}},{key:"translate",value:function($P,tme,ame){var nme=this;if(Y_(tme)!=="object"&&this.options.overloadTranslationOptionHandler&&(tme=this.options.overloadTranslationOptionHandler(arguments)),tme||(tme={}),$P==null)return"";Array.isArray($P)||($P=[String($P)]);var rme=tme.keySeparator!==void 0?tme.keySeparator:this.options.keySeparator,ime=this.extractFromKey($P[$P.length-1],tme),ome=ime.key,lme=ime.namespaces,sme=lme[lme.length-1],cme=tme.lng||this.language,dme=tme.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(cme&&cme.toLowerCase()==="cimode"){if(dme){var ume=tme.nsSeparator||this.options.nsSeparator;return sme+ume+ome}return ome}var fme=this.resolve($P,tme),pme=fme&&fme.res,hme=fme&&fme.usedKey||ome,bme=fme&&fme.exactUsedKey||ome,mme=Object.prototype.toString.apply(pme),vme=["[object Number]","[object Function]","[object RegExp]"],gme=tme.joinArrays!==void 0?tme.joinArrays:this.options.joinArrays,yme=!this.i18nFormat||this.i18nFormat.handleAsObject,_me=typeof pme!="string"&&typeof pme!="boolean"&&typeof pme!="number";if(yme&&pme&&_me&&vme.indexOf(mme)<0&&(typeof gme!="string"||mme!=="[object Array]")){if(!tme.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(hme,pme,Z_({},tme,{ns:lme})):"key '".concat(ome," (").concat(this.language,")' returned an object instead of string.");if(rme){var $me=mme==="[object Array]",Cme=$me?[]:{},Sme=$me?bme:hme;for(var Eme in pme)if(Object.prototype.hasOwnProperty.call(pme,Eme)){var xme="".concat(Sme).concat(rme).concat(Eme);Cme[Eme]=this.translate(xme,Z_({},tme,{joinArrays:!1,ns:lme})),Cme[Eme]===xme&&(Cme[Eme]=pme[Eme])}pme=Cme}}else if(yme&&typeof gme=="string"&&mme==="[object Array]")(pme=pme.join(gme))&&(pme=this.extendTranslation(pme,$P,tme,ame));else{var Tme=!1,Ome=!1,Rme=tme.count!==void 0&&typeof tme.count!="string",Nme=eme.hasDefaultValue(tme),Ime=Rme?this.pluralResolver.getSuffix(cme,tme.count):"",Pme=tme["defaultValue".concat(Ime)]||tme.defaultValue;!this.isValidLookup(pme)&&Nme&&(Tme=!0,pme=Pme),this.isValidLookup(pme)||(Ome=!0,pme=ome);var Mme=tme.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,kme=Mme&&Ome?void 0:pme,Bme=Nme&&Pme!==pme&&this.options.updateMissing;if(Ome||Tme||Bme){if(this.logger.log(Bme?"updateKey":"missingKey",cme,sme,ome,Bme?Pme:pme),rme){var Dme=this.resolve(ome,Z_({},tme,{keySeparator:!1}));Dme&&Dme.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.")}var jme=[],Vme=this.languageUtils.getFallbackCodes(this.options.fallbackLng,tme.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Vme&&Vme[0])for(var Wme=0;Wme<Vme.length;Wme++)jme.push(Vme[Wme]);else this.options.saveMissingTo==="all"?jme=this.languageUtils.toResolveHierarchy(tme.lng||this.language):jme.push(tme.lng||this.language);var Lme=function(zme,Ume,Gme){nme.options.missingKeyHandler?nme.options.missingKeyHandler(zme,sme,Ume,Bme?Gme:kme,Bme,tme):nme.backendConnector&&nme.backendConnector.saveMissing&&nme.backendConnector.saveMissing(zme,sme,Ume,Bme?Gme:kme,Bme,tme),nme.emit("missingKey",zme,sme,Ume,pme)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Rme?jme.forEach(function(zme){nme.pluralResolver.getSuffixes(zme).forEach(function(Ume){Lme([zme],ome+Ume,tme["defaultValue".concat(Ume)]||Pme)})}):Lme(jme,ome,Pme))}pme=this.extendTranslation(pme,$P,tme,fme,ame),Ome&&pme===ome&&this.options.appendNamespaceToMissingKey&&(pme="".concat(sme,":").concat(ome)),(Ome||Tme)&&this.options.parseMissingKeyHandler&&(pme=this.options.parseMissingKeyHandler(pme))}return pme}},{key:"extendTranslation",value:function($P,tme,ame,nme,rme){var ime=this;if(this.i18nFormat&&this.i18nFormat.parse)$P=this.i18nFormat.parse($P,ame,nme.usedLng,nme.usedNS,nme.usedKey,{resolved:nme});else if(!ame.skipInterpolation){ame.interpolation&&this.interpolator.init(Z_({},ame,{interpolation:Z_({},this.options.interpolation,ame.interpolation)}));var ome,lme=ame.interpolation&&ame.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(lme){var sme=$P.match(this.interpolator.nestingRegexp);ome=sme&&sme.length}var cme=ame.replace&&typeof ame.replace!="string"?ame.replace:ame;if(this.options.interpolation.defaultVariables&&(cme=Z_({},this.options.interpolation.defaultVariables,cme)),$P=this.interpolator.interpolate($P,cme,ame.lng||this.language,ame),lme){var dme=$P.match(this.interpolator.nestingRegexp);ome<(dme&&dme.length)&&(ame.nest=!1)}ame.nest!==!1&&($P=this.interpolator.nest($P,function(){for(var pme=arguments.length,hme=new Array(pme),bme=0;bme<pme;bme++)hme[bme]=arguments[bme];return rme&&rme[0]===hme[0]&&!ame.context?(ime.logger.warn("It seems you are nesting recursively key: ".concat(hme[0]," in key: ").concat(tme[0])),null):ime.translate.apply(ime,hme.concat([tme]))},ame)),ame.interpolation&&this.interpolator.reset()}var ume=ame.postProcess||this.options.postProcess,fme=typeof ume=="string"?[ume]:ume;return $P!=null&&fme&&fme.length&&ame.applyPostProcessor!==!1&&($P=SP.handle(fme,$P,tme,this.options&&this.options.postProcessPassResolved?Z_({i18nResolved:nme},ame):ame,this)),$P}},{key:"resolve",value:function($P){var tme,ame,nme,rme,ime,ome=this,lme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof $P=="string"&&($P=[$P]),$P.forEach(function(sme){if(!ome.isValidLookup(tme)){var cme=ome.extractFromKey(sme,lme),dme=cme.key;ame=dme;var ume=cme.namespaces;ome.options.fallbackNS&&(ume=ume.concat(ome.options.fallbackNS));var fme=lme.count!==void 0&&typeof lme.count!="string",pme=lme.context!==void 0&&(typeof lme.context=="string"||typeof lme.context=="number")&&lme.context!=="",hme=lme.lngs?lme.lngs:ome.languageUtils.toResolveHierarchy(lme.lng||ome.language,lme.fallbackLng);ume.forEach(function(bme){ome.isValidLookup(tme)||(ime=bme,!xP["".concat(hme[0],"-").concat(bme)]&&ome.utils&&ome.utils.hasLoadedNamespace&&!ome.utils.hasLoadedNamespace(ime)&&(xP["".concat(hme[0],"-").concat(bme)]=!0,ome.logger.warn('key "'.concat(ame,'" for languages "').concat(hme.join(", "),`" won't get resolved as namespace "`).concat(ime,'" 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!!!")),hme.forEach(function(mme){if(!ome.isValidLookup(tme)){rme=mme;var vme,gme,yme=dme,_me=[yme];for(ome.i18nFormat&&ome.i18nFormat.addLookupKeys?ome.i18nFormat.addLookupKeys(_me,dme,mme,bme,lme):(fme&&(vme=ome.pluralResolver.getSuffix(mme,lme.count)),fme&&pme&&_me.push(yme+vme),pme&&_me.push(yme+="".concat(ome.options.contextSeparator).concat(lme.context)),fme&&_me.push(yme+=vme));gme=_me.pop();)ome.isValidLookup(tme)||(nme=gme,tme=ome.getResource(mme,bme,gme,lme))}}))})}}),{res:tme,usedKey:ame,exactUsedKey:nme,usedLng:rme,usedNS:ime}}},{key:"isValidLookup",value:function($P){return!($P===void 0||!this.options.returnNull&&$P===null||!this.options.returnEmptyString&&$P==="")}},{key:"getResource",value:function($P,tme,ame){var nme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource($P,tme,ame,nme):this.resourceStore.getResource($P,tme,ame,nme)}}],[{key:"hasDefaultValue",value:function($P){var tme="defaultValue";for(var ame in $P)if(Object.prototype.hasOwnProperty.call($P,ame)&&tme===ame.substring(0,tme.length)&&$P[ame]!==void 0)return!0;return!1}}]),eme}();function AP(x_){return x_.charAt(0).toUpperCase()+x_.slice(1)}var OP=function(){function x_(eme){J_(this,x_),this.options=eme,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uP.create("languageUtils")}return eP(x_,[{key:"getScriptPartFromCode",value:function(eme){if(!eme||eme.indexOf("-")<0)return null;var $P=eme.split("-");return $P.length===2?null:($P.pop(),$P[$P.length-1].toLowerCase()==="x"?null:this.formatLanguageCode($P.join("-")))}},{key:"getLanguagePartFromCode",value:function(eme){if(!eme||eme.indexOf("-")<0)return eme;var $P=eme.split("-");return this.formatLanguageCode($P[0])}},{key:"formatLanguageCode",value:function(eme){if(typeof eme=="string"&&eme.indexOf("-")>-1){var $P=["hans","hant","latn","cyrl","cans","mong","arab"],tme=eme.split("-");return this.options.lowerCaseLng?tme=tme.map(function(ame){return ame.toLowerCase()}):tme.length===2?(tme[0]=tme[0].toLowerCase(),tme[1]=tme[1].toUpperCase(),$P.indexOf(tme[1].toLowerCase())>-1&&(tme[1]=AP(tme[1].toLowerCase()))):tme.length===3&&(tme[0]=tme[0].toLowerCase(),tme[1].length===2&&(tme[1]=tme[1].toUpperCase()),tme[0]!=="sgn"&&tme[2].length===2&&(tme[2]=tme[2].toUpperCase()),$P.indexOf(tme[1].toLowerCase())>-1&&(tme[1]=AP(tme[1].toLowerCase())),$P.indexOf(tme[2].toLowerCase())>-1&&(tme[2]=AP(tme[2].toLowerCase()))),tme.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?eme.toLowerCase():eme}},{key:"isWhitelisted",value:function(eme){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(eme)}},{key:"isSupportedCode",value:function(eme){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(eme=this.getLanguagePartFromCode(eme)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(eme)>-1}},{key:"getBestMatchFromCodes",value:function(eme){var $P,tme=this;return eme?(eme.forEach(function(ame){if(!$P){var nme=tme.formatLanguageCode(ame);tme.options.supportedLngs&&!tme.isSupportedCode(nme)||($P=nme)}}),!$P&&this.options.supportedLngs&&eme.forEach(function(ame){if(!$P){var nme=tme.getLanguagePartFromCode(ame);if(tme.isSupportedCode(nme))return $P=nme;$P=tme.options.supportedLngs.find(function(rme){if(rme.indexOf(nme)===0)return rme})}}),$P||($P=this.getFallbackCodes(this.options.fallbackLng)[0]),$P):null}},{key:"getFallbackCodes",value:function(eme,$P){if(!eme)return[];if(typeof eme=="function"&&(eme=eme($P)),typeof eme=="string"&&(eme=[eme]),Object.prototype.toString.apply(eme)==="[object Array]")return eme;if(!$P)return eme.default||[];var tme=eme[$P];return tme||(tme=eme[this.getScriptPartFromCode($P)]),tme||(tme=eme[this.formatLanguageCode($P)]),tme||(tme=eme[this.getLanguagePartFromCode($P)]),tme||(tme=eme.default),tme||[]}},{key:"toResolveHierarchy",value:function(eme,$P){var tme=this,ame=this.getFallbackCodes($P||this.options.fallbackLng||[],eme),nme=[],rme=function(ime){ime&&(tme.isSupportedCode(ime)?nme.push(ime):tme.logger.warn("rejecting language code not found in supportedLngs: ".concat(ime)))};return typeof eme=="string"&&eme.indexOf("-")>-1?(this.options.load!=="languageOnly"&&rme(this.formatLanguageCode(eme)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&rme(this.getScriptPartFromCode(eme)),this.options.load!=="currentOnly"&&rme(this.getLanguagePartFromCode(eme))):typeof eme=="string"&&rme(this.formatLanguageCode(eme)),ame.forEach(function(ime){nme.indexOf(ime)<0&&rme(tme.formatLanguageCode(ime))}),nme}}]),x_}(),kP=[{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}],BP={1:function(x_){return+(x_>1)},2:function(x_){return+(x_!=1)},3:function(x_){return 0},4:function(x_){return x_%10==1&&x_%100!=11?0:x_%10>=2&&x_%10<=4&&(x_%100<10||x_%100>=20)?1:2},5:function(x_){return x_==0?0:x_==1?1:x_==2?2:x_%100>=3&&x_%100<=10?3:x_%100>=11?4:5},6:function(x_){return x_==1?0:x_>=2&&x_<=4?1:2},7:function(x_){return x_==1?0:x_%10>=2&&x_%10<=4&&(x_%100<10||x_%100>=20)?1:2},8:function(x_){return x_==1?0:x_==2?1:x_!=8&&x_!=11?2:3},9:function(x_){return+(x_>=2)},10:function(x_){return x_==1?0:x_==2?1:x_<7?2:x_<11?3:4},11:function(x_){return x_==1||x_==11?0:x_==2||x_==12?1:x_>2&&x_<20?2:3},12:function(x_){return+(x_%10!=1||x_%100==11)},13:function(x_){return+(x_!==0)},14:function(x_){return x_==1?0:x_==2?1:x_==3?2:3},15:function(x_){return x_%10==1&&x_%100!=11?0:x_%10>=2&&(x_%100<10||x_%100>=20)?1:2},16:function(x_){return x_%10==1&&x_%100!=11?0:x_!==0?1:2},17:function(x_){return x_==1||x_%10==1&&x_%100!=11?0:1},18:function(x_){return x_==0?0:x_==1?1:2},19:function(x_){return x_==1?0:x_==0||x_%100>1&&x_%100<11?1:x_%100>10&&x_%100<20?2:3},20:function(x_){return x_==1?0:x_==0||x_%100>0&&x_%100<20?1:2},21:function(x_){return x_%100==1?1:x_%100==2?2:x_%100==3||x_%100==4?3:0},22:function(x_){return x_==1?0:x_==2?1:(x_<0||x_>10)&&x_%10==0?2:3}};function FP(){var x_={};return kP.forEach(function(eme){eme.lngs.forEach(function($P){x_[$P]={numbers:eme.nr,plurals:BP[eme.fc]}})}),x_}var TP=function(){function x_(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};J_(this,x_),this.languageUtils=eme,this.options=$P,this.logger=uP.create("pluralResolver"),this.rules=FP()}return eP(x_,[{key:"addRule",value:function(eme,$P){this.rules[eme]=$P}},{key:"getRule",value:function(eme){return this.rules[eme]||this.rules[this.languageUtils.getLanguagePartFromCode(eme)]}},{key:"needsPlural",value:function(eme){var $P=this.getRule(eme);return $P&&$P.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(eme,$P){return this.getSuffixes(eme).map(function(tme){return $P+tme})}},{key:"getSuffixes",value:function(eme){var $P=this,tme=this.getRule(eme);return tme?tme.numbers.map(function(ame){return $P.getSuffix(eme,ame)}):[]}},{key:"getSuffix",value:function(eme,$P){var tme=this,ame=this.getRule(eme);if(ame){var nme=ame.noAbs?ame.plurals($P):ame.plurals(Math.abs($P)),rme=ame.numbers[nme];this.options.simplifyPluralSuffix&&ame.numbers.length===2&&ame.numbers[0]===1&&(rme===2?rme="plural":rme===1&&(rme=""));var ime=function(){return tme.options.prepend&&rme.toString()?tme.options.prepend+rme.toString():rme.toString()};return this.options.compatibilityJSON==="v1"?rme===1?"":typeof rme=="number"?"_plural_".concat(rme.toString()):ime():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&ame.numbers.length===2&&ame.numbers[0]===1?ime():this.options.prepend&&nme.toString()?this.options.prepend+nme.toString():nme.toString()}return this.logger.warn("no plural rule found for: ".concat(eme)),""}}]),x_}(),_P=function(){function x_(){var eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};J_(this,x_),this.logger=uP.create("interpolator"),this.options=eme,this.format=eme.interpolation&&eme.interpolation.format||function($P){return $P},this.init(eme)}return eP(x_,[{key:"init",value:function(){var eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};eme.interpolation||(eme.interpolation={escapeValue:!0});var $P=eme.interpolation;this.escape=$P.escape!==void 0?$P.escape:bP,this.escapeValue=$P.escapeValue===void 0||$P.escapeValue,this.useRawValueToEscape=$P.useRawValueToEscape!==void 0&&$P.useRawValueToEscape,this.prefix=$P.prefix?yP($P.prefix):$P.prefixEscaped||"{{",this.suffix=$P.suffix?yP($P.suffix):$P.suffixEscaped||"}}",this.formatSeparator=$P.formatSeparator?$P.formatSeparator:$P.formatSeparator||",",this.unescapePrefix=$P.unescapeSuffix?"":$P.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":$P.unescapeSuffix||"",this.nestingPrefix=$P.nestingPrefix?yP($P.nestingPrefix):$P.nestingPrefixEscaped||yP("$t("),this.nestingSuffix=$P.nestingSuffix?yP($P.nestingSuffix):$P.nestingSuffixEscaped||yP(")"),this.nestingOptionsSeparator=$P.nestingOptionsSeparator?$P.nestingOptionsSeparator:$P.nestingOptionsSeparator||",",this.maxReplaces=$P.maxReplaces?$P.maxReplaces:1e3,this.alwaysFormat=$P.alwaysFormat!==void 0&&$P.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var eme="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(eme,"g");var $P="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp($P,"g");var tme="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(tme,"g")}},{key:"interpolate",value:function(eme,$P,tme,ame){var nme,rme,ime,ome=this,lme=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function sme(pme){return pme.replace(/\$/g,"$$$$")}var cme=function(pme){if(pme.indexOf(ome.formatSeparator)<0){var hme=gP($P,lme,pme);return ome.alwaysFormat?ome.format(hme,void 0,tme,Z_({},ame,$P,{interpolationkey:pme})):hme}var bme=pme.split(ome.formatSeparator),mme=bme.shift().trim(),vme=bme.join(ome.formatSeparator).trim();return ome.format(gP($P,lme,mme),vme,tme,Z_({},ame,$P,{interpolationkey:mme}))};this.resetRegExp();var dme=ame&&ame.missingInterpolationHandler||this.options.missingInterpolationHandler,ume=ame&&ame.interpolation&&ame.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,fme=[{regex:this.regexpUnescape,safeValue:function(pme){return sme(pme)}},{regex:this.regexp,safeValue:function(pme){return ome.escapeValue?sme(ome.escape(pme)):sme(pme)}}];return fme.forEach(function(pme){for(ime=0;nme=pme.regex.exec(eme);){if((rme=cme(nme[1].trim()))===void 0)if(typeof dme=="function"){var hme=dme(eme,nme,ame);rme=typeof hme=="string"?hme:""}else{if(ume){rme=nme[0];continue}ome.logger.warn("missed to pass in variable ".concat(nme[1]," for interpolating ").concat(eme)),rme=""}else typeof rme=="string"||ome.useRawValueToEscape||(rme=cP(rme));var bme=pme.safeValue(rme);if(eme=eme.replace(nme[0],bme),ume?(pme.regex.lastIndex+=bme.length,pme.regex.lastIndex-=nme[0].length):pme.regex.lastIndex=0,++ime>=ome.maxReplaces)break}}),eme}},{key:"nest",value:function(eme,$P){var tme,ame,nme=this,rme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ime=Z_({},rme);function ome(dme,ume){var fme=this.nestingOptionsSeparator;if(dme.indexOf(fme)<0)return dme;var pme=dme.split(new RegExp("".concat(fme,"[ ]*{"))),hme="{".concat(pme[1]);dme=pme[0],hme=(hme=this.interpolate(hme,ime)).replace(/'/g,'"');try{ime=JSON.parse(hme),ume&&(ime=Z_({},ume,ime))}catch(bme){return this.logger.warn("failed parsing options string in nesting for key ".concat(dme),bme),"".concat(dme).concat(fme).concat(hme)}return delete ime.defaultValue,dme}for(ime.applyPostProcessor=!1,delete ime.defaultValue;tme=this.nestingRegexp.exec(eme);){var lme=[],sme=!1;if(tme[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(tme[1])){var cme=tme[1].split(this.formatSeparator).map(function(dme){return dme.trim()});tme[1]=cme.shift(),lme=cme,sme=!0}if((ame=$P(ome.call(this,tme[1].trim(),ime),ime))&&tme[0]===eme&&typeof ame!="string")return ame;typeof ame!="string"&&(ame=cP(ame)),ame||(this.logger.warn("missed to resolve ".concat(tme[1]," for nesting ").concat(eme)),ame=""),sme&&(ame=lme.reduce(function(dme,ume){return nme.format(dme,ume,rme.lng,Z_({},rme,{interpolationkey:tme[1].trim()}))},ame.trim())),eme=eme.replace(tme[0],ame),this.regexp.lastIndex=0}return eme}}]),x_}(),PP=function(x_){function eme($P,tme,ame){var nme,rme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return J_(this,eme),nme=nP(this,rP(eme).call(this)),wP&&sP.call(tP(nme)),nme.backend=$P,nme.store=tme,nme.services=ame,nme.languageUtils=ame.languageUtils,nme.options=rme,nme.logger=uP.create("backendConnector"),nme.state={},nme.queue=[],nme.backend&&nme.backend.init&&nme.backend.init(ame,rme.backend,rme),nme}return iP(eme,sP),eP(eme,[{key:"queueLoad",value:function($P,tme,ame,nme){var rme=this,ime=[],ome=[],lme=[],sme=[];return $P.forEach(function(cme){var dme=!0;tme.forEach(function(ume){var fme="".concat(cme,"|").concat(ume);!ame.reload&&rme.store.hasResourceBundle(cme,ume)?rme.state[fme]=2:rme.state[fme]<0||(rme.state[fme]===1?ome.indexOf(fme)<0&&ome.push(fme):(rme.state[fme]=1,dme=!1,ome.indexOf(fme)<0&&ome.push(fme),ime.indexOf(fme)<0&&ime.push(fme),sme.indexOf(ume)<0&&sme.push(ume)))}),dme||lme.push(cme)}),(ime.length||ome.length)&&this.queue.push({pending:ome,loaded:{},errors:[],callback:nme}),{toLoad:ime,pending:ome,toLoadLanguages:lme,toLoadNamespaces:sme}}},{key:"loaded",value:function($P,tme,ame){var nme=$P.split("|"),rme=nme[0],ime=nme[1];tme&&this.emit("failedLoading",rme,ime,tme),ame&&this.store.addResourceBundle(rme,ime,ame),this.state[$P]=tme?-1:2;var ome={};this.queue.forEach(function(lme){(function(sme,cme,dme,ume){var fme=dP(sme,cme,Object),pme=fme.obj,hme=fme.k;pme[hme]=pme[hme]||[],pme[hme].push(dme)})(lme.loaded,[rme],ime),function(sme,cme){for(var dme=sme.indexOf(cme);dme!==-1;)sme.splice(dme,1),dme=sme.indexOf(cme)}(lme.pending,$P),tme&&lme.errors.push(tme),lme.pending.length!==0||lme.done||(Object.keys(lme.loaded).forEach(function(sme){ome[sme]||(ome[sme]=[]),lme.loaded[sme].length&&lme.loaded[sme].forEach(function(cme){ome[sme].indexOf(cme)<0&&ome[sme].push(cme)})}),lme.done=!0,lme.errors.length?lme.callback(lme.errors):lme.callback())}),this.emit("loaded",ome),this.queue=this.queue.filter(function(lme){return!lme.done})}},{key:"read",value:function($P,tme,ame){var nme=this,rme=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ime=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,ome=arguments.length>5?arguments[5]:void 0;return $P.length?this.backend[ame]($P,tme,function(lme,sme){lme&&sme&&rme<5?setTimeout(function(){nme.read.call(nme,$P,tme,ame,rme+1,2*ime,ome)},ime):ome(lme,sme)}):ome(null,{})}},{key:"prepareLoading",value:function($P,tme){var ame=this,nme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},rme=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."),rme&&rme();typeof $P=="string"&&($P=this.languageUtils.toResolveHierarchy($P)),typeof tme=="string"&&(tme=[tme]);var ime=this.queueLoad($P,tme,nme,rme);if(!ime.toLoad.length)return ime.pending.length||rme(),null;ime.toLoad.forEach(function(ome){ame.loadOne(ome)})}},{key:"load",value:function($P,tme,ame){this.prepareLoading($P,tme,{},ame)}},{key:"reload",value:function($P,tme,ame){this.prepareLoading($P,tme,{reload:!0},ame)}},{key:"loadOne",value:function($P){var tme=this,ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",nme=$P.split("|"),rme=nme[0],ime=nme[1];this.read(rme,ime,"read",void 0,void 0,function(ome,lme){ome&&tme.logger.warn("".concat(ame,"loading namespace ").concat(ime," for language ").concat(rme," failed"),ome),!ome&&lme&&tme.logger.log("".concat(ame,"loaded namespace ").concat(ime," for language ").concat(rme),lme),tme.loaded($P,ome,lme)})}},{key:"saveMissing",value:function($P,tme,ame,nme,rme){var ime=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(tme)?this.logger.warn('did not save key "'.concat(ame,'" as the namespace "').concat(tme,'" 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!!!"):ame!=null&&ame!==""&&(this.backend&&this.backend.create&&this.backend.create($P,tme,ame,nme,null,Z_({},ime,{isUpdate:rme})),$P&&$P[0]&&this.store.addResource($P[0],tme,ame,nme))}}]),eme}();function jP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(x_){var eme={};if(Y_(x_[1])==="object"&&(eme=x_[1]),typeof x_[1]=="string"&&(eme.defaultValue=x_[1]),typeof x_[2]=="string"&&(eme.tDescription=x_[2]),Y_(x_[2])==="object"||Y_(x_[3])==="object"){var $P=x_[3]||x_[2];Object.keys($P).forEach(function(tme){eme[tme]=$P[tme]})}return eme},interpolation:{escapeValue:!0,format:function(x_,eme,$P,tme){return x_},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function NP(x_){return typeof x_.ns=="string"&&(x_.ns=[x_.ns]),typeof x_.fallbackLng=="string"&&(x_.fallbackLng=[x_.fallbackLng]),typeof x_.fallbackNS=="string"&&(x_.fallbackNS=[x_.fallbackNS]),x_.whitelist&&(x_.whitelist&&x_.whitelist.indexOf("cimode")<0&&(x_.whitelist=x_.whitelist.concat(["cimode"])),x_.supportedLngs=x_.whitelist),x_.nonExplicitWhitelist&&(x_.nonExplicitSupportedLngs=x_.nonExplicitWhitelist),x_.supportedLngs&&x_.supportedLngs.indexOf("cimode")<0&&(x_.supportedLngs=x_.supportedLngs.concat(["cimode"])),x_}function IP(){}var LP=function(x_){function eme(){var $P,tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ame=arguments.length>1?arguments[1]:void 0;if(J_(this,eme),$P=nP(this,rP(eme).call(this)),wP&&sP.call(tP($P)),$P.options=NP(tme),$P.services={},$P.logger=uP,$P.modules={external:[]},ame&&!$P.isInitialized&&!tme.isClone){if(!$P.options.initImmediate)return $P.init(tme,ame),nP($P,tP($P));setTimeout(function(){$P.init(tme,ame)},0)}return $P}return iP(eme,sP),eP(eme,[{key:"init",value:function(){var $P=this,tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ame=arguments.length>1?arguments[1]:void 0;function nme(ume){return ume?typeof ume=="function"?new ume:ume:null}if(typeof tme=="function"&&(ame=tme,tme={}),tme.whitelist&&!tme.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),tme.nonExplicitWhitelist&&!tme.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Z_({},jP(),this.options,NP(tme)),this.format=this.options.interpolation.format,ame||(ame=IP),!this.options.isClone){this.modules.logger?uP.init(nme(this.modules.logger),this.options):uP.init(null,this.options);var rme=new OP(this.options);this.store=new DP(this.options.resources,this.options);var ime=this.services;ime.logger=uP,ime.resourceStore=this.store,ime.languageUtils=rme,ime.pluralResolver=new TP(rme,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ime.interpolator=new _P(this.options),ime.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},ime.backendConnector=new PP(nme(this.modules.backend),ime.resourceStore,ime,this.options),ime.backendConnector.on("*",function(ume){for(var fme=arguments.length,pme=new Array(fme>1?fme-1:0),hme=1;hme<fme;hme++)pme[hme-1]=arguments[hme];$P.emit.apply($P,[ume].concat(pme))}),this.modules.languageDetector&&(ime.languageDetector=nme(this.modules.languageDetector),ime.languageDetector.init(ime,this.options.detection,this.options)),this.modules.i18nFormat&&(ime.i18nFormat=nme(this.modules.i18nFormat),ime.i18nFormat.init&&ime.i18nFormat.init(this)),this.translator=new CP(this.services,this.options),this.translator.on("*",function(ume){for(var fme=arguments.length,pme=new Array(fme>1?fme-1:0),hme=1;hme<fme;hme++)pme[hme-1]=arguments[hme];$P.emit.apply($P,[ume].concat(pme))}),this.modules.external.forEach(function(ume){ume.init&&ume.init($P)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var ome=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ome.length>0&&ome[0]!=="dev"&&(this.options.lng=ome[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var lme=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];lme.forEach(function(ume){$P[ume]=function(){var fme;return(fme=$P.store)[ume].apply(fme,arguments)}});var sme=["addResource","addResources","addResourceBundle","removeResourceBundle"];sme.forEach(function(ume){$P[ume]=function(){var fme;return(fme=$P.store)[ume].apply(fme,arguments),$P}});var cme=lP(),dme=function(){var ume=function(fme,pme){$P.isInitialized&&!$P.initializedStoreOnce&&$P.logger.warn("init: i18next is already initialized. You should call init just once!"),$P.isInitialized=!0,$P.options.isClone||$P.logger.log("initialized",$P.options),$P.emit("initialized",$P.options),cme.resolve(pme),ame(fme,pme)};if($P.languages&&$P.options.compatibilityAPI!=="v1"&&!$P.isInitialized)return ume(null,$P.t.bind($P));$P.changeLanguage($P.options.lng,ume)};return this.options.resources||!this.options.initImmediate?dme():setTimeout(dme,0),cme}},{key:"loadResources",value:function($P){var tme=this,ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IP,nme=ame,rme=typeof $P=="string"?$P:this.language;if(typeof $P=="function"&&(nme=$P),!this.options.resources||this.options.partialBundledLanguages){if(rme&&rme.toLowerCase()==="cimode")return nme();var ime=[],ome=function(sme){sme&&tme.services.languageUtils.toResolveHierarchy(sme).forEach(function(cme){ime.indexOf(cme)<0&&ime.push(cme)})};if(rme)ome(rme);else{var lme=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);lme.forEach(function(sme){return ome(sme)})}this.options.preload&&this.options.preload.forEach(function(sme){return ome(sme)}),this.services.backendConnector.load(ime,this.options.ns,nme)}else nme(null)}},{key:"reloadResources",value:function($P,tme,ame){var nme=lP();return $P||($P=this.languages),tme||(tme=this.options.ns),ame||(ame=IP),this.services.backendConnector.reload($P,tme,function(rme){nme.resolve(),ame(rme)}),nme}},{key:"use",value:function($P){if(!$P)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!$P.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return $P.type==="backend"&&(this.modules.backend=$P),($P.type==="logger"||$P.log&&$P.warn&&$P.error)&&(this.modules.logger=$P),$P.type==="languageDetector"&&(this.modules.languageDetector=$P),$P.type==="i18nFormat"&&(this.modules.i18nFormat=$P),$P.type==="postProcessor"&&SP.addPostProcessor($P),$P.type==="3rdParty"&&this.modules.external.push($P),this}},{key:"changeLanguage",value:function($P,tme){var ame=this;this.isLanguageChangingTo=$P;var nme=lP();this.emit("languageChanging",$P);var rme=function(ime){$P||ime||!ame.services.languageDetector||(ime=[]);var ome=typeof ime=="string"?ime:ame.services.languageUtils.getBestMatchFromCodes(ime);ome&&(ame.language||(ame.language=ome,ame.languages=ame.services.languageUtils.toResolveHierarchy(ome)),ame.translator.language||ame.translator.changeLanguage(ome),ame.services.languageDetector&&ame.services.languageDetector.cacheUserLanguage(ome)),ame.loadResources(ome,function(lme){(function(sme,cme){cme?(ame.language=cme,ame.languages=ame.services.languageUtils.toResolveHierarchy(cme),ame.translator.changeLanguage(cme),ame.isLanguageChangingTo=void 0,ame.emit("languageChanged",cme),ame.logger.log("languageChanged",cme)):ame.isLanguageChangingTo=void 0,nme.resolve(function(){return ame.t.apply(ame,arguments)}),tme&&tme(sme,function(){return ame.t.apply(ame,arguments)})})(lme,ome)})};return $P||!this.services.languageDetector||this.services.languageDetector.async?!$P&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(rme):rme($P):rme(this.services.languageDetector.detect()),nme}},{key:"getFixedT",value:function($P,tme,ame){var nme=this,rme=function ime(ome,lme){var sme;if(Y_(lme)!=="object"){for(var cme=arguments.length,dme=new Array(cme>2?cme-2:0),ume=2;ume<cme;ume++)dme[ume-2]=arguments[ume];sme=nme.options.overloadTranslationOptionHandler([ome,lme].concat(dme))}else sme=Z_({},lme);sme.lng=sme.lng||ime.lng,sme.lngs=sme.lngs||ime.lngs,sme.ns=sme.ns||ime.ns;var fme=nme.options.keySeparator||".",pme=ame?"".concat(ame).concat(fme).concat(ome):ome;return nme.t(pme,sme)};return typeof $P=="string"?rme.lng=$P:rme.lngs=$P,rme.ns=tme,rme.keyPrefix=ame,rme}},{key:"t",value:function(){var $P;return this.translator&&($P=this.translator).translate.apply($P,arguments)}},{key:"exists",value:function(){var $P;return this.translator&&($P=this.translator).exists.apply($P,arguments)}},{key:"setDefaultNamespace",value:function($P){this.options.defaultNS=$P}},{key:"hasLoadedNamespace",value:function($P){var tme=this,ame=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;var nme=this.languages[0],rme=!!this.options&&this.options.fallbackLng,ime=this.languages[this.languages.length-1];if(nme.toLowerCase()==="cimode")return!0;var ome=function(sme,cme){var dme=tme.services.backendConnector.state["".concat(sme,"|").concat(cme)];return dme===-1||dme===2};if(ame.precheck){var lme=ame.precheck(this,ome);if(lme!==void 0)return lme}return!!this.hasResourceBundle(nme,$P)||!this.services.backendConnector.backend||!(!ome(nme,$P)||rme&&!ome(ime,$P))}},{key:"loadNamespaces",value:function($P,tme){var ame=this,nme=lP();return this.options.ns?(typeof $P=="string"&&($P=[$P]),$P.forEach(function(rme){ame.options.ns.indexOf(rme)<0&&ame.options.ns.push(rme)}),this.loadResources(function(rme){nme.resolve(),tme&&tme(rme)}),nme):(tme&&tme(),Promise.resolve())}},{key:"loadLanguages",value:function($P,tme){var ame=lP();typeof $P=="string"&&($P=[$P]);var nme=this.options.preload||[],rme=$P.filter(function(ime){return nme.indexOf(ime)<0});return rme.length?(this.options.preload=nme.concat(rme),this.loadResources(function(ime){ame.resolve(),tme&&tme(ime)}),ame):(tme&&tme(),Promise.resolve())}},{key:"dir",value:function($P){return $P||($P=this.languages&&this.languages.length>0?this.languages[0]:this.language),$P?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode($P))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tme=arguments.length>1?arguments[1]:void 0;return new eme($P,tme)}},{key:"cloneInstance",value:function(){var $P=this,tme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:IP,nme=Z_({},this.options,tme,{isClone:!0}),rme=new eme(nme),ime=["store","services","language"];return ime.forEach(function(ome){rme[ome]=$P[ome]}),rme.services=Z_({},this.services),rme.services.utils={hasLoadedNamespace:rme.hasLoadedNamespace.bind(rme)},rme.translator=new CP(rme.services,rme.options),rme.translator.on("*",function(ome){for(var lme=arguments.length,sme=new Array(lme>1?lme-1:0),cme=1;cme<lme;cme++)sme[cme-1]=arguments[cme];rme.emit.apply(rme,[ome].concat(sme))}),rme.init(nme,ame),rme.translator.options=rme.options,rme.translator.backendConnector.services.utils={hasLoadedNamespace:rme.hasLoadedNamespace.bind(rme)},rme}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),eme}(),RP=new LP;function MP(x_,eme){RP.addResourceBundle(x_,"translation",eme,!0,!0)}function zP(x_){RP.changeLanguage(x_)}RP.init({lng:"zh-CN",resources:{}});var HP=RP.t.bind(RP);MP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),MP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var VP=ea?{}.toString:function(){return"[object "+oa(this)+"]"};ea||Ei(Object.prototype,"toString",VP,{unsafe:!0});var UP=Array.isArray||function(x_){return Hr(x_)=="Array"},WP=function(){},GP=[],qP=Jr("Reflect","construct"),KP=/^\s*(?:class|function)\b/,YP=Mr(KP.exec),XP=!KP.exec(WP),ZP=function(x_){if(!Yr(x_))return!1;try{return qP(WP,GP,x_),!0}catch{return!1}},JP=!qP||Ar(function(){var x_;return ZP(ZP.call)||!ZP(Object)||!ZP(function(){x_=!0})||x_})?function(x_){if(!Yr(x_))return!1;switch(oa(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XP||!!YP(KP,ri(x_))}:ZP,QP=Po("species"),ej=Cr.Array,tj=function(x_,eme){return new(function($P){var tme;return UP($P)&&(tme=$P.constructor,(JP(tme)&&(tme===ej||UP(tme.prototype))||Xr(tme)&&(tme=tme[QP])===null)&&(tme=void 0)),tme===void 0?ej:tme}(x_))(eme===0?0:eme)},nj=Mr([].push),rj=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=Do(ome),pme=Wr(fme),hme=yu(lme,sme),bme=Fi(pme),mme=0,vme=cme||tj,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:nj(gme,dme)}else switch(x_){case 4:return!1;case 7:nj(gme,dme)}return nme?-1:tme||ame?ame:gme}},oj={forEach:rj(0),map:rj(1),filter:rj(2),some:rj(3),every:rj(4),find:rj(5),findIndex:rj(6),filterReject:rj(7)}.forEach,ij=function(x_,eme){var $P=[][x_];return!!$P&&Ar(function(){$P.call(null,eme||function(){throw 1},1)})}("forEach"),aj=ij?[].forEach:function(x_){return oj(this,x_,arguments.length>1?arguments[1]:void 0)},uj=function(x_){if(x_&&x_.forEach!==aj)try{Jo(x_,"forEach",aj)}catch{x_.forEach=aj}};for(var sj in fs)fs[sj]&&uj(Cr[sj]&&Cr[sj].prototype);uj(hs),MP("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),MP("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var lj={type:"paragraph",renderElem:function(x_,eme,$P){return Pg("p",null,eme)}},cj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fj(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var dj,pj,hj=function(x_){return x_&&x_.Math==Math&&x_},gj=hj(typeof globalThis=="object"&&globalThis)||hj(typeof window=="object"&&window)||hj(typeof self=="object"&&self)||hj(typeof cj=="object"&&cj)||function(){return this}()||Function("return this")(),vj=function(x_){try{return!!x_()}catch{return!0}},yj=!vj(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mj=Function.prototype.call,bj=mj.bind?mj.bind(mj):function(){return mj.apply(mj,arguments)},wj={}.propertyIsEnumerable,Ej=Object.getOwnPropertyDescriptor,Dj=Ej&&!wj.call({1:2},1)?function(x_){var eme=Ej(this,x_);return!!eme&&eme.enumerable}:wj,Sj={f:Dj},xj=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},Cj=Function.prototype,Aj=Cj.bind,Oj=Cj.call,kj=Aj&&Aj.bind(Oj),Bj=Aj?function(x_){return x_&&kj(Oj,x_)}:function(x_){return x_&&function(){return Oj.apply(x_,arguments)}},Fj=Bj({}.toString),Tj=Bj("".slice),_j$1=function(x_){return Tj(Fj(x_),8,-1)},Pj=gj.Object,jj=Bj("".split),Nj=vj(function(){return!Pj("z").propertyIsEnumerable(0)})?function(x_){return _j$1(x_)=="String"?jj(x_,""):Pj(x_)}:Pj,Ij=gj.TypeError,Lj=function(x_){if(x_==null)throw Ij("Can't call method on "+x_);return x_},Rj=function(x_){return Nj(Lj(x_))},Mj=function(x_){return typeof x_=="function"},zj=function(x_){return typeof x_=="object"?x_!==null:Mj(x_)},$j=function(x_){return Mj(x_)?x_:void 0},Hj=function(x_,eme){return arguments.length<2?$j(gj[x_]):gj[x_]&&gj[x_][eme]},Vj=Bj({}.isPrototypeOf),Uj=Hj("navigator","userAgent")||"",Wj=gj.process,Gj=gj.Deno,qj=Wj&&Wj.versions||Gj&&Gj.version,Kj=qj&&qj.v8;Kj&&(pj=(dj=Kj.split("."))[0]>0&&dj[0]<4?1:+(dj[0]+dj[1])),!pj&&Uj&&(!(dj=Uj.match(/Edge\/(\d+)/))||dj[1]>=74)&&(dj=Uj.match(/Chrome\/(\d+)/))&&(pj=+dj[1]);var Yj=pj,Xj=!!Object.getOwnPropertySymbols&&!vj(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&Yj&&Yj<41}),Zj=Xj&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jj=gj.Object,Qj=Zj?function(x_){return typeof x_=="symbol"}:function(x_){var eme=Hj("Symbol");return Mj(eme)&&Vj(eme.prototype,Jj(x_))},eN=gj.String,tN=function(x_){try{return eN(x_)}catch{return"Object"}},nN=gj.TypeError,rN=function(x_){if(Mj(x_))return x_;throw nN(tN(x_)+" is not a function")},oN=function(x_,eme){var $P=x_[eme];return $P==null?void 0:rN($P)},iN=gj.TypeError,aN=Object.defineProperty,uN=function(x_,eme){try{aN(gj,x_,{value:eme,configurable:!0,writable:!0})}catch{gj[x_]=eme}return eme},sN=gj["__core-js_shared__"]||uN("__core-js_shared__",{}),lN=fj(function(x_){(x_.exports=function(eme,$P){return sN[eme]||(sN[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),cN=gj.Object,fN=function(x_){return cN(Lj(x_))},dN=Bj({}.hasOwnProperty),pN=Object.hasOwn||function(x_,eme){return dN(fN(x_),eme)},hN=0,gN=Math.random(),vN=Bj(1 .toString),yN=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+vN(++hN+gN,36)},mN=lN("wks"),bN=gj.Symbol,wN=bN&&bN.for,EN=Zj?bN:bN&&bN.withoutSetter||yN,DN=function(x_){if(!pN(mN,x_)||!Xj&&typeof mN[x_]!="string"){var eme="Symbol."+x_;Xj&&pN(bN,x_)?mN[x_]=bN[x_]:mN[x_]=Zj&&wN?wN(eme):EN(eme)}return mN[x_]},SN=gj.TypeError,xN=DN("toPrimitive"),CN=function(x_){var eme=function($P,tme){if(!zj($P)||Qj($P))return $P;var ame,nme=oN($P,xN);if(nme){if(ame=bj(nme,$P,tme),!zj(ame)||Qj(ame))return ame;throw SN("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(Mj(ome=rme.toString)&&!zj(lme=bj(ome,rme))||Mj(ome=rme.valueOf)&&!zj(lme=bj(ome,rme)))return lme;throw iN("Can't convert object to primitive value")}($P)}(x_,"string");return Qj(eme)?eme:eme+""},AN=gj.document,ON=zj(AN)&&zj(AN.createElement),kN=function(x_){return ON?AN.createElement(x_):{}},BN=!yj&&!vj(function(){return Object.defineProperty(kN("div"),"a",{get:function(){return 7}}).a!=7}),FN=Object.getOwnPropertyDescriptor,TN={f:yj?FN:function(x_,eme){if(x_=Rj(x_),eme=CN(eme),BN)try{return FN(x_,eme)}catch{}if(pN(x_,eme))return xj(!bj(Sj.f,x_,eme),x_[eme])}},_N=gj.String,PN=gj.TypeError,jN=function(x_){if(zj(x_))return x_;throw PN(_N(x_)+" is not an object")},NN=gj.TypeError,IN=Object.defineProperty,LN={f:yj?IN:function(x_,eme,$P){if(jN(x_),eme=CN(eme),jN($P),BN)try{return IN(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw NN("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},RN=yj?function(x_,eme,$P){return LN.f(x_,eme,xj(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},MN=Bj(Function.toString);Mj(sN.inspectSource)||(sN.inspectSource=function(x_){return MN(x_)});var zN,$N,HN,VN=sN.inspectSource,UN=gj.WeakMap,WN=Mj(UN)&&/native code/.test(VN(UN)),GN=lN("keys"),qN=function(x_){return GN[x_]||(GN[x_]=yN(x_))},KN={},YN=gj.TypeError,XN=gj.WeakMap;if(WN||sN.state){var ZN=sN.state||(sN.state=new XN),JN=Bj(ZN.get),QN=Bj(ZN.has),eI=Bj(ZN.set);zN=function(x_,eme){if(QN(ZN,x_))throw new YN("Object already initialized");return eme.facade=x_,eI(ZN,x_,eme),eme},$N=function(x_){return JN(ZN,x_)||{}},HN=function(x_){return QN(ZN,x_)}}else{var tI=qN("state");KN[tI]=!0,zN=function(x_,eme){if(pN(x_,tI))throw new YN("Object already initialized");return eme.facade=x_,RN(x_,tI,eme),eme},$N=function(x_){return pN(x_,tI)?x_[tI]:{}},HN=function(x_){return pN(x_,tI)}}var nI={set:zN,get:$N,has:HN,enforce:function(x_){return HN(x_)?$N(x_):zN(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!zj(eme)||($P=$N(eme)).type!==x_)throw YN("Incompatible receiver, "+x_+" required");return $P}}},rI=Function.prototype,oI=yj&&Object.getOwnPropertyDescriptor,iI=pN(rI,"name"),aI={EXISTS:iI,PROPER:iI&&(function(){}).name==="something",CONFIGURABLE:iI&&(!yj||yj&&oI(rI,"name").configurable)},uI=fj(function(x_){var eme=aI.CONFIGURABLE,$P=nI.get,tme=nI.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;Mj(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!pN(ime,"name")||eme&&ime.name!==ume)&&RN(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==gj?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:RN(nme,rme,ime)):cme?nme[rme]=ime:uN(rme,ime)})(Function.prototype,"toString",function(){return Mj(this)&&$P(this).source||VN(this)})}),sI=Math.ceil,lI=Math.floor,cI=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?lI:sI)(eme)},fI=Math.max,dI=Math.min,pI=function(x_,eme){var $P=cI(x_);return $P<0?fI($P+eme,0):dI($P,eme)},hI=Math.min,gI=function(x_){return x_>0?hI(cI(x_),9007199254740991):0},vI=function(x_){return gI(x_.length)},yI=function(x_){return function(eme,$P,tme){var ame,nme=Rj(eme),rme=vI(nme),ime=pI(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},mI={includes:yI(!0),indexOf:yI(!1)},bI=mI.indexOf,wI=Bj([].push),EI=function(x_,eme){var $P,tme=Rj(x_),ame=0,nme=[];for($P in tme)!pN(KN,$P)&&pN(tme,$P)&&wI(nme,$P);for(;eme.length>ame;)pN(tme,$P=eme[ame++])&&(~bI(nme,$P)||wI(nme,$P));return nme},DI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],SI=DI.concat("length","prototype"),xI={f:Object.getOwnPropertyNames||function(x_){return EI(x_,SI)}},CI={f:Object.getOwnPropertySymbols},AI=Bj([].concat),OI=Hj("Reflect","ownKeys")||function(x_){var eme=xI.f(jN(x_)),$P=CI.f;return $P?AI(eme,$P(x_)):eme},kI=function(x_,eme){for(var $P=OI(eme),tme=LN.f,ame=TN.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];pN(x_,rme)||tme(x_,rme,ame(eme,rme))}},BI=/#|\.prototype\./,FI=function(x_,eme){var $P=_I[TI(x_)];return $P==jI||$P!=PI&&(Mj(eme)?vj(eme):!!eme)},TI=FI.normalize=function(x_){return String(x_).replace(BI,".").toLowerCase()},_I=FI.data={},PI=FI.NATIVE="N",jI=FI.POLYFILL="P",NI=FI,II=TN.f,LI=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?gj:lme?gj[ime]||uN(ime,{}):(gj[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=II($P,tme))&&rme.value:$P[tme],!NI(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;kI(nme,ame)}(x_.sham||ame&&ame.sham)&&RN(nme,"sham",!0),uI($P,tme,nme,x_)}},RI=Bj(Bj.bind),MI=Array.isArray||function(x_){return _j$1(x_)=="Array"},zI={};zI[DN("toStringTag")]="z";var $I=String(zI)==="[object z]",HI=DN("toStringTag"),VI=gj.Object,UI=_j$1(function(){return arguments}())=="Arguments",WI=$I?_j$1:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=VI(x_),HI))=="string"?$P:UI?_j$1(eme):(tme=_j$1(eme))=="Object"&&Mj(eme.callee)?"Arguments":tme},GI=function(){},qI=[],KI=Hj("Reflect","construct"),YI=/^\s*(?:class|function)\b/,XI=Bj(YI.exec),ZI=!YI.exec(GI),JI=function(x_){if(!Mj(x_))return!1;try{return KI(GI,qI,x_),!0}catch{return!1}},QI=!KI||vj(function(){var x_;return JI(JI.call)||!JI(Object)||!JI(function(){x_=!0})||x_})?function(x_){if(!Mj(x_))return!1;switch(WI(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZI||!!XI(YI,VN(x_))}:JI,eL=DN("species"),tL=gj.Array,nL=function(x_,eme){return new(function($P){var tme;return MI($P)&&(tme=$P.constructor,(QI(tme)&&(tme===tL||MI(tme.prototype))||zj(tme)&&(tme=tme[eL])===null)&&(tme=void 0)),tme===void 0?tL:tme}(x_))(eme===0?0:eme)},rL=Bj([].push),oL=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=fN(ome),pme=Nj(fme),hme=function(yme,_me){return rN(yme),_me===void 0?yme:RI?RI(yme,_me):function(){return yme.apply(_me,arguments)}}(lme,sme),bme=vI(pme),mme=0,vme=cme||nL,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:rL(gme,dme)}else switch(x_){case 4:return!1;case 7:rL(gme,dme)}return nme?-1:tme||ame?ame:gme}},iL={forEach:oL(0),map:oL(1),filter:oL(2),some:oL(3),every:oL(4),find:oL(5),findIndex:oL(6),filterReject:oL(7)},aL=DN("species"),uL=function(x_){return Yj>=51||!vj(function(){var eme=[];return(eme.constructor={})[aL]=function(){return{foo:1}},eme[x_](Boolean).foo!==1})},sL=iL.filter;LI({target:"Array",proto:!0,forced:!uL("filter")},{filter:function(x_){return sL(this,x_,arguments.length>1?arguments[1]:void 0)}});var lL=$I?{}.toString:function(){return"[object "+WI(this)+"]"};$I||uI(Object.prototype,"toString",lL,{unsafe:!0});var cL,fL=gj.String,dL=function(x_){if(WI(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fL(x_)},pL=function(){var x_=jN(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},hL=gj.RegExp,gL=vj(function(){var x_=hL("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),vL=gL||vj(function(){return!hL("a","y").sticky}),yL={BROKEN_CARET:gL||vj(function(){var x_=hL("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:vL,UNSUPPORTED_Y:gL},mL=Object.keys||function(x_){return EI(x_,DI)},bL=yj?Object.defineProperties:function(x_,eme){jN(x_);for(var $P,tme=Rj(eme),ame=mL(eme),nme=ame.length,rme=0;nme>rme;)LN.f(x_,$P=ame[rme++],tme[$P]);return x_},wL=Hj("document","documentElement"),EL=qN("IE_PROTO"),DL=function(){},SL=function(x_){return"<script>"+x_+"<\/script>"},xL=function(x_){x_.write(SL("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},CL=function(){try{cL=new ActiveXObject("htmlfile")}catch{}var x_,eme;CL=typeof document<"u"?document.domain&&cL?xL(cL):((eme=kN("iframe")).style.display="none",wL.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(SL("document.F=Object")),x_.close(),x_.F):xL(cL);for(var $P=DI.length;$P--;)delete CL.prototype[DI[$P]];return CL()};KN[EL]=!0;var AL,OL,kL=Object.create||function(x_,eme){var $P;return x_!==null?(DL.prototype=jN(x_),$P=new DL,DL.prototype=null,$P[EL]=x_):$P=CL(),eme===void 0?$P:bL($P,eme)},BL=gj.RegExp,FL=vj(function(){var x_=BL(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),TL=gj.RegExp,_L=vj(function(){var x_=TL("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),PL=nI.get,jL=lN("native-string-replace",String.prototype.replace),NL=RegExp.prototype.exec,IL=NL,LL=Bj("".charAt),RL=Bj("".indexOf),ML=Bj("".replace),zL=Bj("".slice),$L=(OL=/b*/g,bj(NL,AL=/a/,"a"),bj(NL,OL,"a"),AL.lastIndex!==0||OL.lastIndex!==0),HL=yL.BROKEN_CARET,VL=/()??/.exec("")[1]!==void 0;($L||VL||HL||FL||_L)&&(IL=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=PL(ome),sme=dL(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=bj(IL,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=HL&&ome.sticky,fme=bj(pL,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=ML(fme,"y",""),RL(fme,"g")===-1&&(fme+="g"),bme=zL(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&LL(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),VL&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),$L&&(tme=ome.lastIndex),ame=bj(NL,ume?$P:ome,bme),ume?ame?(ame.input=zL(ame.input,hme),ame[0]=zL(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:$L&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),VL&&ame&&ame.length>1&&bj(jL,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=kL(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var UL=IL;LI({target:"RegExp",proto:!0,forced:/./.exec!==UL},{exec:UL});var WL=Function.prototype,GL=WL.apply,qL=WL.bind,KL=WL.call,YL=typeof Reflect=="object"&&Reflect.apply||(qL?KL.bind(GL):function(){return KL.apply(GL,arguments)}),XL=DN("species"),ZL=RegExp.prototype,JL=function(x_,eme,$P,tme){var ame=DN(x_),nme=!vj(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!vj(function(){var lme=!1,sme=/a/;return x_==="split"&&((sme={}).constructor={},sme.constructor[XL]=function(){return sme},sme.flags="",sme[ame]=/./[ame]),sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=Bj(/./[ame]),ome=eme(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=Bj(lme),pme=sme.exec;return pme===UL||pme===ZL.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});uI(String.prototype,x_,ome[0]),uI(ZL,ame,ome[1])}tme&&RN(ZL[ame],"sham",!0)},QL=Bj("".charAt),eR=Bj("".charCodeAt),tR=Bj("".slice),nR=function(x_){return function(eme,$P){var tme,ame,nme=dL(Lj(eme)),rme=cI($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=eR(nme,rme))<55296||tme>56319||rme+1===ime||(ame=eR(nme,rme+1))<56320||ame>57343?x_?QL(nme,rme):tme:x_?tR(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},rR=nR(!0),oR=function(x_,eme,$P){return eme+($P?rR(x_,eme).length:1)},iR=Math.floor,aR=Bj("".charAt),uR=Bj("".replace),sR=Bj("".slice),lR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cR=/\$([$&'`]|\d{1,2})/g,fR=function(x_,eme,$P,tme,ame,nme){var rme=$P+x_.length,ime=tme.length,ome=cR;return ame!==void 0&&(ame=fN(ame),ome=lR),uR(nme,ome,function(lme,sme){var cme;switch(aR(sme,0)){case"$":return"$";case"&":return x_;case"`":return sR(eme,0,$P);case"'":return sR(eme,rme);case"<":cme=ame[sR(sme,1,-1)];break;default:var dme=+sme;if(dme===0)return lme;if(dme>ime){var ume=iR(dme/10);return ume===0?lme:ume<=ime?tme[ume-1]===void 0?aR(sme,1):tme[ume-1]+aR(sme,1):lme}cme=tme[dme-1]}return cme===void 0?"":cme})},dR=gj.TypeError,pR=function(x_,eme){var $P=x_.exec;if(Mj($P)){var tme=bj($P,x_,eme);return tme!==null&&jN(tme),tme}if(_j$1(x_)==="RegExp")return bj(UL,x_,eme);throw dR("RegExp#exec called on incompatible receiver")},hR=DN("replace"),gR=Math.max,vR=Math.min,yR=Bj([].concat),mR=Bj([].push),bR=Bj("".indexOf),wR=Bj("".slice),ER="a".replace(/./,"$0")==="$0",DR=!!/./[hR]&&/./[hR]("a","$0")==="";JL("replace",function(x_,eme,$P){var tme=DR?"$":"$0";return[function(ame,nme){var rme=Lj(this),ime=ame==null?void 0:oN(ame,hR);return ime?bj(ime,ame,rme,nme):bj(eme,dL(rme),ame,nme)},function(ame,nme){var rme=jN(this),ime=dL(ame);if(typeof nme=="string"&&bR(nme,tme)===-1&&bR(nme,"$<")===-1){var ome=$P(eme,rme,ime,nme);if(ome.done)return ome.value}var lme=Mj(nme);lme||(nme=dL(nme));var sme=rme.global;if(sme){var cme=rme.unicode;rme.lastIndex=0}for(var dme=[];;){var ume=pR(rme,ime);if(ume===null||(mR(dme,ume),!sme))break;dL(ume[0])===""&&(rme.lastIndex=oR(ime,gI(rme.lastIndex),cme))}for(var fme,pme="",hme=0,bme=0;bme<dme.length;bme++){for(var mme=dL((ume=dme[bme])[0]),vme=gR(vR(cI(ume.index),ime.length),0),gme=[],yme=1;yme<ume.length;yme++)mR(gme,(fme=ume[yme])===void 0?fme:String(fme));var _me=ume.groups;if(lme){var $me=yR([mme],gme,vme,ime);_me!==void 0&&mR($me,_me);var Cme=dL(YL(nme,void 0,$me))}else Cme=fR(mme,ime,vme,gme,_me,nme);vme>=hme&&(pme+=wR(ime,hme,vme)+Cme,hme=vme+mme.length)}return pme+wR(ime,hme)}]},!!vj(function(){var x_=/./;return x_.exec=function(){var eme=[];return eme.groups={a:"7"},eme},"".replace(x_,"$<a>")!=="7"})||!ER||DR);var SR=DN("unscopables"),xR=Array.prototype;xR[SR]==null&&LN.f(xR,SR,{configurable:!0,value:kL(null)});var CR=function(x_){xR[SR][x_]=!0},AR=iL.find,OR=!0;"find"in[]&&Array(1).find(function(){OR=!1}),LI({target:"Array",proto:!0,forced:OR},{find:function(x_){return AR(this,x_,arguments.length>1?arguments[1]:void 0)}}),CR("find");var kR=DN("match"),BR=function(x_){var eme;return zj(x_)&&((eme=x_[kR])!==void 0?!!eme:_j$1(x_)=="RegExp")},FR=gj.TypeError,TR=DN("species"),_R=function(x_,eme,$P){var tme=CN(eme);tme in x_?LN.f(x_,tme,xj(0,$P)):x_[tme]=$P},PR=gj.Array,jR=Math.max,NR=function(x_,eme,$P){for(var tme=vI(x_),ame=pI(eme,tme),nme=pI($P===void 0?tme:$P,tme),rme=PR(jR(nme-ame,0)),ime=0;ame<nme;ame++,ime++)_R(rme,ime,x_[ame]);return rme.length=ime,rme},IR=yL.UNSUPPORTED_Y,LR=Math.min,RR=[].push,MR=Bj(/./.exec),zR=Bj(RR),$R=Bj("".slice);JL("split",function(x_,eme,$P){var tme;return tme="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ame,nme){var rme=dL(Lj(this)),ime=nme===void 0?4294967295:nme>>>0;if(ime===0)return[];if(ame===void 0)return[rme];if(!BR(ame))return bj(eme,rme,ame,ime);for(var ome,lme,sme,cme=[],dme=(ame.ignoreCase?"i":"")+(ame.multiline?"m":"")+(ame.unicode?"u":"")+(ame.sticky?"y":""),ume=0,fme=new RegExp(ame.source,dme+"g");(ome=bj(UL,fme,rme))&&!((lme=fme.lastIndex)>ume&&(zR(cme,$R(rme,ume,ome.index)),ome.length>1&&ome.index<rme.length&&YL(RR,cme,NR(ome,1)),sme=ome[0].length,ume=lme,cme.length>=ime));)fme.lastIndex===ome.index&&fme.lastIndex++;return ume===rme.length?!sme&&MR(fme,"")||zR(cme,""):zR(cme,$R(rme,ume)),cme.length>ime?NR(cme,0,ime):cme}:"0".split(void 0,0).length?function(ame,nme){return ame===void 0&&nme===0?[]:bj(eme,this,ame,nme)}:eme,[function(ame,nme){var rme=Lj(this),ime=ame==null?void 0:oN(ame,x_);return ime?bj(ime,ame,rme,nme):bj(tme,dL(rme),ame,nme)},function(ame,nme){var rme=jN(this),ime=dL(ame),ome=$P(tme,rme,ime,nme,tme!==eme);if(ome.done)return ome.value;var lme=function(gme,yme){var _me,$me=jN(gme).constructor;return $me===void 0||(_me=jN($me)[TR])==null?yme:function(Cme){if(QI(Cme))return Cme;throw FR(tN(Cme)+" is not a constructor")}(_me)}(rme,RegExp),sme=rme.unicode,cme=(rme.ignoreCase?"i":"")+(rme.multiline?"m":"")+(rme.unicode?"u":"")+(IR?"g":"y"),dme=new lme(IR?"^(?:"+rme.source+")":rme,cme),ume=nme===void 0?4294967295:nme>>>0;if(ume===0)return[];if(ime.length===0)return pR(dme,ime)===null?[ime]:[];for(var fme=0,pme=0,hme=[];pme<ime.length;){dme.lastIndex=IR?0:pme;var bme,mme=pR(dme,IR?$R(ime,pme):ime);if(mme===null||(bme=LR(gI(dme.lastIndex+(IR?pme:0)),ime.length))===fme)pme=oR(ime,pme,sme);else{if(zR(hme,$R(ime,fme,pme)),hme.length===ume)return hme;for(var vme=1;vme<=mme.length-1;vme++)if(zR(hme,mme[vme]),hme.length===ume)return hme;pme=fme=bme}}return zR(hme,$R(ime,fme)),hme}]},!!vj(function(){var x_=/(?:)/,eme=x_.exec;x_.exec=function(){return eme.apply(this,arguments)};var $P="ab".split(x_);return $P.length!==2||$P[0]!=="a"||$P[1]!=="b"}),IR);var HR=`	
\v\f\r                　\u2028\u2029\uFEFF`,VR=Bj("".replace),UR="["+HR+"]",WR=RegExp("^"+UR+UR+"*"),GR=RegExp(UR+UR+"*$"),qR=function(x_){return function(eme){var $P=dL(Lj(eme));return 1&x_&&($P=VR($P,WR,"")),2&x_&&($P=VR($P,GR,"")),$P}},KR={start:qR(1),end:qR(2),trim:qR(3)},YR=aI.PROPER,XR=KR.trim;function ZR(x_){return Mp("<div>"+x_+"</div>").children().filter(function(eme){return eme.tagName!=="BR"}).length===0}function JR(x_){return x_.length===0?"":x_[0].outerHTML}function QR(x_){return x_.length?x_[0].tagName.toLowerCase():""}function eM(x_,eme){for(var $P="",tme=(x_.attr("style")||"").split(";"),ame=tme.length,nme=0;nme<ame;nme++){var rme=tme[nme];if(rme){var ime=rme.split(":");ime[0].trim()===eme&&($P=ime[1].trim())}}return $P}LI({target:"String",proto:!0,forced:vj(function(){return!!HR.trim()||"​᠎".trim()!=="​᠎"||YR&&HR.trim.name!=="trim"})},{trim:function(){return XR(this)}}),LI({global:!0},{globalThis:gj}),eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),uh&&(Mp.fn.prepend=uh),zp&&(Mp.fn.addClass=zp),$p&&(Mp.fn.removeClass=$p),Hp&&(Mp.fn.hasClass=Hp),qp&&(Mp.fn.on=qp),Kp&&(Mp.fn.off=Kp),yh&&(Mp.fn.focus=yh),Vp&&(Mp.fn.attr=Vp),Up&&(Mp.fn.removeAttr=Up),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),lh&&(Mp.fn.parents=lh),Wp&&(Mp.fn.dataset=Wp),Gp&&(Mp.fn.val=Gp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),nh&&(Mp.fn.filter=nh),ph&&(Mp.fn.empty=ph);var tM={selector:"p:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);return(eme=eme.filter(function(ame){return!!ed.isText(ame)||!!$P.isInline(ame)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:eme}}},nM=function(x_,eme){return nM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)Object.prototype.hasOwnProperty.call(tme,ame)&&($P[ame]=tme[ame])},nM(x_,eme);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function rM(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Class extends value "+String(eme)+" is not a constructor or null");function $P(){this.constructor=x_}nM(x_,eme),x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}var oM=function(){return oM=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},oM.apply(this,arguments)};function iM(x_,eme,$P,tme){return new($P||($P=Promise))(function(ame,nme){function rme(lme){try{ome(tme.next(lme))}catch(sme){nme(sme)}}function ime(lme){try{ome(tme.throw(lme))}catch(sme){nme(sme)}}function ome(lme){var sme;lme.done?ame(lme.value):(sme=lme.value,sme instanceof $P?sme:new $P(function(cme){cme(sme)})).then(rme,ime)}ome((tme=tme.apply(x_,[])).next())})}function aM(x_,eme){var $P,tme,ame,nme,rme={label:0,sent:function(){if(1&ame[0])throw ame[1];return ame[1]},trys:[],ops:[]};return nme={next:ime(0),throw:ime(1),return:ime(2)},typeof Symbol=="function"&&(nme[Symbol.iterator]=function(){return this}),nme;function ime(ome){return function(lme){return function(sme){if($P)throw new TypeError("Generator is already executing.");for(;rme;)try{if($P=1,tme&&(ame=2&sme[0]?tme.return:sme[0]?tme.throw||((ame=tme.return)&&ame.call(tme),0):tme.next)&&!(ame=ame.call(tme,sme[1])).done)return ame;switch(tme=0,ame&&(sme=[2&sme[0],ame.value]),sme[0]){case 0:case 1:ame=sme;break;case 4:return rme.label++,{value:sme[1],done:!1};case 5:rme.label++,tme=sme[1],sme=[0];continue;case 7:sme=rme.ops.pop(),rme.trys.pop();continue;default:if(!((ame=(ame=rme.trys).length>0&&ame[ame.length-1])||sme[0]!==6&&sme[0]!==2)){rme=0;continue}if(sme[0]===3&&(!ame||sme[1]>ame[0]&&sme[1]<ame[3])){rme.label=sme[1];break}if(sme[0]===6&&rme.label<ame[1]){rme.label=ame[1],ame=sme;break}if(ame&&rme.label<ame[2]){rme.label=ame[2],rme.ops.push(sme);break}ame[2]&&rme.ops.pop(),rme.trys.pop();continue}sme=eme.call(x_,rme)}catch(cme){sme=[6,cme],tme=0}finally{$P=ame=0}if(5&sme[0])throw sme[1];return{value:sme[0]?sme[1]:void 0,done:!0}}([ome,lme])}}}function uM(x_){var eme=typeof Symbol=="function"&&Symbol.iterator,$P=eme&&x_[eme],tme=0;if($P)return $P.call(x_);if(x_&&typeof x_.length=="number")return{next:function(){return x_&&tme>=x_.length&&(x_=void 0),{value:x_&&x_[tme++],done:!x_}}};throw new TypeError(eme?"Object is not iterable.":"Symbol.iterator is not defined.")}function sM(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function lM(x_){var eme=sM(Bf.nodes(x_,{match:function(nme){return x_.children[0]===nme},mode:"highest"}),1)[0];if(eme==null)return!1;var $P=eme[0];if(!Sf.isElement($P)||$P.type==="paragraph"||Nf.string($P)!=="")return!1;var tme=$P.children,ame=tme===void 0?[]:tme;return!!ed.isText(ame[0])&&(md.setNodes(x_,{type:"paragraph"}),!0)}var cM={renderElems:[lj],elemsToHtml:[{type:"paragraph",elemToHtml:function(x_,eme){return eme===""?"<p><br></p>":"<p>"+eme+"</p>"}}],parseElemsHtml:[tM],editorPlugin:function(x_){var eme=x_.deleteBackward,$P=x_.deleteForward;x_.insertText,x_.insertBreak;var tme=x_;return tme.deleteBackward=function(ame){lM(tme)||eme(ame)},tme.deleteForward=function(ame){lM(tme)||$P(ame)},tme}},fM=/"/g,dM=Bj("".replace),pM=function(x_,eme,$P,tme){var ame=dL(Lj(x_)),nme="<"+eme;return $P!==""&&(nme+=" "+$P+'="'+dM(dL(tme),fM,"&quot;")+'"'),nme+">"+ame+"</"+eme+">"},hM=function(x_){return vj(function(){var eme=""[x_]('"');return eme!==eme.toLowerCase()||eme.split('"').length>3})};function gM(x_,eme){var $P=eme,tme=x_,ame=tme.bold,nme=tme.italic,rme=tme.underline;return ame&&($P="<strong>"+$P+"</strong>"),tme.code&&($P="<code>"+$P+"</code>"),nme&&($P="<em>"+$P+"</em>"),rme&&($P="<u>"+$P+"</u>"),tme.through&&($P="<s>"+$P+"</s>"),tme.sub&&($P="<sub>"+$P+"</sub>"),tme.sup&&($P="<sup>"+$P+"</sup>"),$P}function vM(x_,eme){return x_.length!==0&&(!!x_[0].matches(eme)||x_.find(eme).length>0)}LI({target:"String",proto:!0,forced:hM("bold")},{bold:function(){return pM(this,"b","","")}}),LI({target:"String",proto:!0,forced:hM("italics")},{italics:function(){return pM(this,"i","","")}}),LI({target:"String",proto:!0,forced:hM("sub")},{sub:function(){return pM(this,"sub","","")}}),LI({target:"String",proto:!0,forced:hM("sup")},{sup:function(){return pM(this,"sup","","")}});var yM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mM=kN("span").classList,bM=mM&&mM.constructor&&mM.constructor.prototype,wM=bM===Object.prototype?void 0:bM,EM=function(x_,eme){var $P=[][x_];return!!$P&&vj(function(){$P.call(null,eme||function(){throw 1},1)})},DM=iL.forEach,SM=EM("forEach")?[].forEach:function(x_){return DM(this,x_,arguments.length>1?arguments[1]:void 0)},xM=function(x_){if(x_&&x_.forEach!==SM)try{RN(x_,"forEach",SM)}catch{x_.forEach=SM}};for(var CM in yM)yM[CM]&&xM(gj[CM]&&gj[CM].prototype);function AM(x_,eme){return x_.selection==null||!!sM(Bf.nodes(x_,{match:function($P){return QO.getNodeType($P)==="pre"||!!Bf.isVoid(x_,$P)},universal:!0}),1)[0]}function OM(x_,eme){Object.keys(eme).forEach(function($P){$P!=="text"&&Bf.removeMark(x_,$P)})}xM(wM),LI({target:"Object",stat:!0,forced:vj(function(){mL(1)})},{keys:function(x_){return mL(fN(x_))}});var kM=function(){function x_(){this.marksNeedToRemove=[],this.tag="button"}return x_.prototype.getValue=function(eme){var $P=this.mark,tme=Bf.marks(eme);return tme?tme[$P]:!!sM(Bf.nodes(eme,{match:function(ame){return ame[$P]===!0}}),1)[0]},x_.prototype.isActive=function(eme){return!!this.getValue(eme)},x_.prototype.isDisabled=function(eme){return AM(eme,this.mark)},x_.prototype.exec=function(eme,$P){var tme=this.mark,ame=this.marksNeedToRemove;$P?eme.removeMark(tme):(eme.addMark(tme,!0),ame&&ame.forEach(function(nme){return eme.removeMark(nme)}))},x_}(),BM='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',FM='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',TM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',_M='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',PM='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',jM='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',NM='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',IM='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',LM='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',RM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',MM='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',$M='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',HM='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',VM='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',UM='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',WM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',GM='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',qM='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',KM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="bold",$P.title=HP("textStyle.bold"),$P.iconSvg=BM,$P.hotkey="mod+b",$P}return rM(eme,x_),eme}(kM),YM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="code",$P.title=HP("textStyle.code"),$P.iconSvg=PM,$P.hotkey="mod+e",$P}return rM(eme,x_),eme}(kM),XM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="italic",$P.title=HP("textStyle.italic"),$P.iconSvg=TM,$P.hotkey="mod+i",$P}return rM(eme,x_),eme}(kM),ZM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="through",$P.title=HP("textStyle.through"),$P.iconSvg=_M,$P.hotkey="mod+shift+x",$P}return rM(eme,x_),eme}(kM),JM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="underline",$P.title=HP("textStyle.underline"),$P.iconSvg=FM,$P.hotkey="mod+u",$P}return rM(eme,x_),eme}(kM),QM=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="sub",$P.marksNeedToRemove=["sup"],$P.title=HP("textStyle.sub"),$P.iconSvg=qM,$P.hotkey="",$P}return rM(eme,x_),eme}(kM),ez=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.mark="sup",$P.marksNeedToRemove=["sub"],$P.title=HP("textStyle.sup"),$P.iconSvg=GM,$P.hotkey="",$P}return rM(eme,x_),eme}(kM),tz=function(){function x_(){this.title=HP("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return AM(eme)},x_.prototype.exec=function(eme,$P){var tme,ame,nme=Bf.nodes(eme,{match:function(ome){return ed.isText(ome)},universal:!0});try{for(var rme=uM(nme),ime=rme.next();!ime.done;ime=rme.next())OM(eme,ime.value[0])}catch(ome){tme={error:ome}}finally{try{ime&&!ime.done&&(ame=rme.return)&&ame.call(rme)}finally{if(tme)throw tme.error}}},x_}(),nz={renderStyle:function(x_,eme){var $P=x_,tme=$P.bold,ame=$P.italic,nme=$P.underline,rme=$P.code,ime=$P.through,ome=$P.sub,lme=$P.sup,sme=eme;return tme&&(sme=Pg("strong",null,sme)),rme&&(sme=Pg("code",null,sme)),ame&&(sme=Pg("em",null,sme)),nme&&(sme=Pg("u",null,sme)),ime&&(sme=Pg("s",null,sme)),ome&&(sme=Pg("sub",null,sme)),lme&&(sme=Pg("sup",null,sme)),sme},menus:[{key:"bold",factory:function(){return new KM}},{key:"underline",factory:function(){return new JM}},{key:"italic",factory:function(){return new XM}},{key:"through",factory:function(){return new ZM}},{key:"code",factory:function(){return new YM}},{key:"sub",factory:function(){return new QM}},{key:"sup",factory:function(){return new ez}},{key:"clearStyle",factory:function(){return new tz}}],styleToHtml:function(x_,eme){if(!ed.isText(x_))return eme;if(ZR(eme))return gM(x_,eme);var $P=Mp(eme);if(QR($P)==="br")return gM(x_,"<br>");var tme=$P.html();return tme=gM(x_,tme),$P.html(tme),JR($P)},parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!ed.isText(eme))return eme;var ame=eme;return vM(tme,"b,strong")&&(ame.bold=!0),vM(tme,"i,em")&&(ame.italic=!0),vM(tme,"u")&&(ame.underline=!0),vM(tme,"s,strike")&&(ame.through=!0),vM(tme,"sub")&&(ame.sub=!0),vM(tme,"sup")&&(ame.sup=!0),vM(tme,"code")&&(ame.code=!0),ame}};function rz(x_){return function(eme,$P,tme){return Pg("h"+x_,null,$P)}}var oz={type:"header1",renderElem:rz(1)},iz={type:"header2",renderElem:rz(2)},az={type:"header3",renderElem:rz(3)},uz={type:"header4",renderElem:rz(4)},sz={type:"header5",renderElem:rz(5)},lz=aI.PROPER,cz=RegExp.prototype,fz=cz.toString,dz=Bj(pL),pz=vj(function(){return fz.call({source:"a",flags:"b"})!="/a/b"}),hz=lz&&fz.name!="toString";(pz||hz)&&uI(RegExp.prototype,"toString",function(){var x_=jN(this),eme=dL(x_.source),$P=x_.flags;return"/"+eme+"/"+dL($P===void 0&&Vj(cz,x_)&&!("flags"in cz)?dz(x_):$P)},{unsafe:!0});var gz,vz=gj.TypeError,yz=function(x_){if(BR(x_))throw vz("The method doesn't accept regular expressions");return x_},mz=DN("match"),bz=function(x_){var eme=/./;try{"/./"[x_](eme)}catch{try{return eme[mz]=!1,"/./"[x_](eme)}catch{}}return!1},wz=TN.f,Ez=Bj("".startsWith),Dz=Bj("".slice),Sz=Math.min,xz=bz("startsWith");function Cz(x_){var eme=sM(Bf.nodes(x_,{match:function(ame){return QO.getNodeType(ame).startsWith("header")},universal:!0}),1),$P=eme[0];if($P==null)return"paragraph";var tme=sM($P,1)[0];return QO.getNodeType(tme)}function Az(x_){return x_.selection==null||!sM(Bf.nodes(x_,{match:function(eme){var $P=QO.getNodeType(eme);return $P==="paragraph"||!!$P.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Oz(x_,eme){eme&&md.setNodes(x_,{type:eme})}LI({target:"String",proto:!0,forced:!(!xz&&(gz=wz(String.prototype,"startsWith"),gz&&!gz.writable)||xz)},{startsWith:function(x_){var eme=dL(Lj(this));yz(x_);var $P=gI(Sz(arguments.length>1?arguments[1]:void 0,eme.length)),tme=dL(x_);return Ez?Ez(eme,tme,$P):Dz(eme,$P,$P+tme.length)===tme}});var kz=function(){function x_(){this.title=HP("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return x_.prototype.getOptions=function(eme){var $P=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:HP("header.text")}],tme=this.getValue(eme).toString();return $P.forEach(function(ame){ame.value===tme?ame.selected=!0:delete ame.selected}),$P},x_.prototype.isActive=function(eme){return!1},x_.prototype.getValue=function(eme){return Cz(eme)},x_.prototype.isDisabled=function(eme){return Az(eme)},x_.prototype.exec=function(eme,$P){Oz(eme,$P.toString())},x_}(),Bz=function(){function x_(){this.tag="button"}return x_.prototype.getValue=function(eme){return Cz(eme)},x_.prototype.isActive=function(eme){return this.getValue(eme)===this.type},x_.prototype.isDisabled=function(eme){return Az(eme)},x_.prototype.exec=function(eme,$P){var tme=this.type;Oz(eme,$P===tme?"paragraph":tme)},x_}(),Fz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="H1",$P.type="header1",$P}return rM(eme,x_),eme}(Bz),Tz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="H2",$P.type="header2",$P}return rM(eme,x_),eme}(Bz),_z=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="H3",$P.type="header3",$P}return rM(eme,x_),eme}(Bz),Pz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="H4",$P.type="header4",$P}return rM(eme,x_),eme}(Bz),jz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="H5",$P.type="header5",$P}return rM(eme,x_),eme}(Bz),Nz={key:"headerSelect",factory:function(){return new kz}},Iz={key:"header1",factory:function(){return new Fz}},Lz={key:"header2",factory:function(){return new Tz}},Rz={key:"header3",factory:function(){return new _z}},Mz={key:"header4",factory:function(){return new Pz}},zz={key:"header5",factory:function(){return new jz}};function $z(x_){return function(eme,$P){return"<h"+x_+">"+$P+"</h"+x_+">"}}function Hz(x_){return function(eme,$P,tme){var ame=Mp(eme);return($P=$P.filter(function(nme){return!!ed.isText(nme)||!!tme.isInline(nme)})).length===0&&($P=[{text:ame.text().replace(/\s+/gm," ")}]),{type:"header"+x_,children:$P}}}var Vz={renderElems:[oz,iz,az,uz,sz],elemsToHtml:[{type:"header1",elemToHtml:$z(1)},{type:"header2",elemToHtml:$z(2)},{type:"header3",elemToHtml:$z(3)},{type:"header4",elemToHtml:$z(4)},{type:"header5",elemToHtml:$z(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Hz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Hz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Hz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Hz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Hz(5)}],menus:[Nz,Iz,Lz,Rz,Mz,zz],editorPlugin:function(x_){var eme=x_.insertBreak;x_.insertNode;var $P=x_;return $P.insertBreak=function(){var tme=sM(Bf.nodes($P,{match:function(ame){return QO.getNodeType(ame).startsWith("header")},universal:!0}),1)[0];tme&&QO.isSelectionAtLineEnd(x_,tme[1])?md.insertNodes($P,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):eme()},$P}},Uz=Object.assign,Wz=Object.defineProperty,Gz=Bj([].concat),qz=!Uz||vj(function(){if(yj&&Uz({b:1},Uz(Wz({},"a",{enumerable:!0,get:function(){Wz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x_={},eme={},$P=Symbol(),tme="abcdefghijklmnopqrst";return x_[$P]=7,tme.split("").forEach(function(ame){eme[ame]=ame}),Uz({},x_)[$P]!=7||mL(Uz({},eme)).join("")!=tme})?function(x_,eme){for(var $P=fN(x_),tme=arguments.length,ame=1,nme=CI.f,rme=Sj.f;tme>ame;)for(var ime,ome=Nj(arguments[ame++]),lme=nme?Gz(mL(ome),nme(ome)):mL(ome),sme=lme.length,cme=0;sme>cme;)ime=lme[cme++],yj&&!bj(rme,ome,ime)||($P[ime]=ome[ime]);return $P}:Uz;function Kz(x_,eme){x_.data==null&&(x_.data={});var $P=x_.data;$P.style==null&&($P.style={}),Object.assign($P.style,eme)}LI({target:"Object",stat:!0,forced:Object.assign!==qz},{assign:qz});var Yz={selector:"font",preParseHtml:function(x_){var eme=Mp(x_);if(QR(eme)!=="font")return x_;var $P=eme.attr("color")||"";return $P&&(eme.removeAttr("color"),eme.css("color",$P)),eme[0]}},Xz=function(){function x_(){this.tag="button",this.showDropPanel=!0,this.$content=null}return x_.prototype.exec=function(eme,$P){},x_.prototype.getValue=function(eme){var $P=this.mark,tme=Bf.marks(eme);return tme&&tme[$P]?tme[$P]:""},x_.prototype.isActive=function(eme){return!!this.getValue(eme)},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!sM(Bf.nodes(eme,{match:function($P){return QO.getNodeType($P)==="pre"||!!Bf.isVoid(eme,$P)},universal:!0}),1)[0]},x_.prototype.getPanelContentElem=function(eme){var $P=this.mark;if(this.$content==null){var tme=Mp('<ul class="w-e-panel-content-color"></ul>');tme.on("click","li",function(lme){var sme=lme.target;if(sme!=null&&(lme.preventDefault(),eme.selection!=null)){var cme=Mp(sme).attr("data-value");cme==="0"?Bf.removeMark(eme,$P):Bf.addMark(eme,$P,cme)}}),this.$content=tme}var ame=this.$content;if(ame==null)return document.createElement("ul");ame.empty();var nme=this.getValue(eme),rme=eme.getMenuConfig($P).colors;(rme===void 0?[]:rme).forEach(function(lme){var sme=Mp('<div class="color-block" data-value="'+lme+'"></div>');sme.css("background-color",lme);var cme=Mp('<li data-value="'+lme+'"></li>');nme===lme&&cme.addClass("active"),cme.append(sme),ame.append(cme)});var ime="";$P==="color"&&(ime=HP("color.default")),$P==="bgColor"&&(ime=HP("color.clear"));var ome=Mp(`
      <li data-value="0" class="clear">
        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
        `+ime+`
      </li>
    `);return ame.prepend(ome),ame[0]},x_}(),Zz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("color.color"),$P.iconSvg=IM,$P.mark="color",$P}return rM(eme,x_),eme}(Xz),Jz=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("color.bgColor"),$P.iconSvg=LM,$P.mark="bgColor",$P}return rM(eme,x_),eme}(Xz),Qz=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],e$={renderStyle:function(x_,eme){var $P=x_,tme=$P.color,ame=$P.bgColor,nme=eme;return tme&&Kz(nme,{color:tme}),ame&&Kz(nme,{backgroundColor:ame}),nme},styleToHtml:function(x_,eme){if(!ed.isText(x_))return eme;var $P,tme=x_,ame=tme.color,nme=tme.bgColor;return ame||nme?((ZR(eme)||QR($P=Mp(eme))!=="span")&&($P=Mp("<span>"+eme+"</span>")),ame&&$P.css("color",ame),nme&&$P.css("background-color",nme),JR($P)):eme},preParseHtml:[Yz],parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!ed.isText(eme))return eme;var ame=eme,nme=eM(tme,"color");nme&&(ame.color=nme);var rme=eM(tme,"background-color");return rme||(rme=eM(tme,"background")),rme&&(ame.bgColor=rme),ame},menus:[{key:"color",factory:function(){return new Zz},config:{colors:Qz}},{key:"bgColor",factory:function(){return new Jz},config:{colors:Qz}}]},t$=/^(?:\w+:)?\/\/(\S+)$/,n$=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r$=/^[^\s\.]+\.\S{2,}$/,o$=mI.includes;function i$(x_){return x_===void 0&&(x_="r"),x_+"-"+Rh()}function a$(x_){return x_.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function u$(x_,eme,$P,tme){return iM(this,void 0,void 0,function(){var ame,nme;return aM(this,function(rme){switch(rme.label){case 0:return(ame=eme.getMenuConfig(x_).checkLink)?[4,ame($P,tme)]:[3,2];case 1:if(typeof(nme=rme.sent())=="string")return eme.alert(nme,"error"),[2,!1];if(nme==null)return[2,!1];rme.label=2;case 2:return[2,!0]}})})}function s$(x_,eme,$P){return iM(this,void 0,void 0,function(){var tme;return aM(this,function(ame){switch(ame.label){case 0:return(tme=eme.getMenuConfig(x_).parseLinkUrl)?[4,tme($P)]:[3,2];case 1:return[2,ame.sent()];case 2:return[2,$P]}})})}function l$(x_){return x_.selection==null||!!QO.getSelectedElems(x_).some(function(eme){var $P=eme.type;return!!x_.isVoid(eme)||!!["pre","code","link"].includes($P)||void 0})}function c$(x_,eme){return{type:"link",url:a$(x_),children:eme?[{text:eme}]:[]}}function f$(x_,eme,$P){return iM(this,void 0,void 0,function(){var tme,ame,nme;return aM(this,function(rme){switch(rme.label){case 0:return $P?(eme||(eme=$P),x_.restoreSelection(),l$(x_)?[2]:[4,u$("insertLink",x_,eme,$P)]):[2];case 1:return rme.sent()?[4,s$("insertLink",x_,$P)]:[2];case 2:return tme=rme.sent(),(ame=x_.selection)==null||(qf.isCollapsed(ame)?(x_.insertText(" "),nme=c$(tme,eme),md.insertNodes(x_,nme),x_.insertFragment([{text:" "}])):Bf.string(x_,ame)!==eme?(x_.deleteFragment(),nme=c$(tme,eme),md.insertNodes(x_,nme)):(nme=c$(tme),md.wrapNodes(x_,nme,{split:!0}),md.collapse(x_,{edge:"end"}))),[2]}})})}LI({target:"Array",proto:!0},{includes:function(x_){return o$(this,x_,arguments.length>1?arguments[1]:void 0)}}),CR("includes");var d$={type:"link",renderElem:function(x_,eme,$P){var tme=x_,ame=tme.url,nme=tme.target;return Pg("a",{href:ame,target:nme===void 0?"_blank":nme},eme)}},p$={selector:"a:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);return(eme=eme.filter(function(ame){return!!ed.isText(ame)||!!$P.isInline(ame)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]),{type:"link",url:tme.attr("href")||"",target:tme.attr("target")||"",children:eme}}};function h$(){return i$("w-e-insert-link")}var g$=function(){function x_(){this.title=HP("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=h$(),this.urlInputId=h$(),this.buttonId=h$()}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){return l$(eme)},x_.prototype.getModalPositionNode=function(eme){return null},x_.prototype.getModalContentElem=function(eme){var $P=eme.selection,tme=this,ame=tme.textInputId,nme=tme.urlInputId,rme=tme.buttonId,ime=sM(S_(HP("link.text"),ame),2),ome=ime[0],lme=Mp(ime[1]),sme=sM(S_(HP("link.url"),nme),2),cme=sme[0],dme=Mp(sme[1]),ume=sM(C_(rme,HP("common.ok")),1)[0];if(this.$content==null){var fme=Mp("<div></div>");fme.on("click","#"+rme,function(bme){bme.preventDefault();var mme=fme.find("#"+ame).val(),vme=fme.find("#"+nme).val();f$(eme,mme,vme),eme.hidePanelOrModal()}),this.$content=fme}var pme=this.$content;if(pme.empty(),pme.append(ome),pme.append(cme),pme.append(ume),$P==null||qf.isCollapsed($P))lme.val("");else{var hme=Bf.string(eme,$P);lme.val(hme)}return dme.val(""),setTimeout(function(){lme.focus()}),pme[0]},x_}();function v$(){return i$("w-e-update-link")}var y$=function(){function x_(){this.title=HP("link.edit"),this.iconSvg=jM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=v$(),this.buttonId=v$()}return x_.prototype.getSelectedLinkElem=function(eme){var $P=QO.getSelectedNodeByType(eme,"link");return $P??null},x_.prototype.getValue=function(eme){var $P=this.getSelectedLinkElem(eme);return $P&&$P.url||""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){return eme.selection==null||this.getSelectedLinkElem(eme)==null},x_.prototype.getModalPositionNode=function(eme){return QO.getSelectedNodeByType(eme,"link")},x_.prototype.getModalContentElem=function(eme){var $P=this.urlInputId,tme=this.buttonId,ame=sM(S_(HP("link.url"),$P),2),nme=ame[0],rme=Mp(ame[1]),ime=sM(C_(tme,HP("common.ok")),1)[0];if(this.$content==null){var ome=Mp("<div></div>");ome.on("click","button",function(cme){cme.preventDefault(),eme.restoreSelection();var dme=QO.getSelectedNodeByType(eme,"link"),ume=dme?Nf.string(dme):"",fme=ome.find("#"+$P).val();(function(pme,hme,bme){iM(this,void 0,void 0,function(){var mme,vme;return aM(this,function(gme){switch(gme.label){case 0:return bme?[4,u$("editLink",pme,hme,bme)]:[2];case 1:return gme.sent()?[4,s$("editLink",pme,bme)]:[2];case 2:return mme=gme.sent(),vme={url:a$(mme)},md.setNodes(pme,vme,{match:function(yme){return QO.checkNodeType(yme,"link")}}),[2]}})})})(eme,ume,fme),eme.hidePanelOrModal()}),this.$content=ome}var lme=this.$content;lme.empty(),lme.append(nme),lme.append(ime);var sme=this.getValue(eme);return rme.val(sme),setTimeout(function(){rme.focus()}),lme[0]},x_}(),m$=function(){function x_(){this.title=HP("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||QO.getSelectedNodeByType(eme,"link")==null},x_.prototype.exec=function(eme,$P){this.isDisabled(eme)||md.unwrapNodes(eme,{match:function(tme){return QO.checkNodeType(tme,"link")}})},x_}(),b$=function(){function x_(){this.title=HP("link.view"),this.iconSvg=NM,this.tag="button"}return x_.prototype.getSelectedLinkElem=function(eme){var $P=QO.getSelectedNodeByType(eme,"link");return $P??null},x_.prototype.getValue=function(eme){var $P=this.getSelectedLinkElem(eme);return $P&&$P.url||""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||this.getSelectedLinkElem(eme)==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){if(!$P||typeof $P!="string")throw new Error("View link failed, link url is '"+$P+"'");window.open($P,"_blank")}},x_}(),w$={checkLink:function(x_,eme){return!0},parseLinkUrl:function(x_){return x_}},E$={renderElems:[d$],elemsToHtml:[{type:"link",elemToHtml:function(x_,eme){var $P=x_,tme=$P.url,ame=$P.target;return'<a href="'+tme+'" target="'+(ame===void 0?"_blank":ame)+'">'+eme+"</a>"}}],parseElemsHtml:[p$],menus:[{key:"insertLink",factory:function(){return new g$},config:w$},{key:"editLink",factory:function(){return new y$},config:w$},{key:"unLink",factory:function(){return new m$}},{key:"viewLink",factory:function(){return new b$}}],editorPlugin:function(x_){var eme=x_.isInline,$P=x_.insertData,tme=x_.normalizeNode;x_.insertNode,x_.insertText;var ame=x_;return ame.isInline=function(nme){return nme.type==="link"||eme(nme)},ame.insertData=function(nme){var rme=nme.getData("text/plain");if(function(lme){if(typeof lme!="string")return!1;var sme=lme.match(t$);if(!sme)return!1;var cme=sme[1];return!(!cme||!n$.test(cme)&&!r$.test(cme))}(rme)){if(!l$(ame)){var ime=ame.selection;if(ime!=null){var ome=Bf.string(ame,ime);f$(ame,ome,rme)}}}else $P(nme)},ame.normalizeNode=function(nme){var rme=sM(nme,2),ime=rme[0],ome=rme[1];return QO.getNodeType(ime)!=="link"?tme([ime,ome]):Nf.string(ime)===""?md.removeNodes(ame,{at:ome}):tme([ime,ome])},ame}},D$=Bj(1 .valueOf),S$=gj.RangeError,x$=gj.RangeError,C$=gj.String,A$=Math.floor,O$=Bj(function(x_){var eme=dL(Lj(this)),$P="",tme=cI(x_);if(tme<0||tme==1/0)throw S$("Wrong number of repetitions");for(;tme>0;(tme>>>=1)&&(eme+=eme))1&tme&&($P+=eme);return $P}),k$=Bj("".slice),B$=Bj(1 .toFixed),F$=function(x_,eme,$P){return eme===0?$P:eme%2==1?F$(x_,eme-1,$P*x_):F$(x_*x_,eme/2,$P)},T$=function(x_,eme,$P){for(var tme=-1,ame=$P;++tme<6;)ame+=eme*x_[tme],x_[tme]=ame%1e7,ame=A$(ame/1e7)},_$=function(x_,eme){for(var $P=6,tme=0;--$P>=0;)tme+=x_[$P],x_[$P]=A$(tme/eme),tme=tme%eme*1e7},P$=function(x_){for(var eme=6,$P="";--eme>=0;)if($P!==""||eme===0||x_[eme]!==0){var tme=C$(x_[eme]);$P=$P===""?tme:$P+O$("0",7-tme.length)+tme}return $P};function j$(x_,eme){return"w-e-image-container-"+QO.findKey(x_,eme).id}LI({target:"Number",proto:!0,forced:vj(function(){return B$(8e-5,3)!=="0.000"||B$(.9,0)!=="1"||B$(1.255,2)!=="1.25"||B$(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!vj(function(){B$({})})},{toFixed:function(x_){var eme,$P,tme,ame,nme=D$(this),rme=cI(x_),ime=[0,0,0,0,0,0],ome="",lme="0";if(rme<0||rme>20)throw x$("Incorrect fraction digits");if(nme!=nme)return"NaN";if(nme<=-1e21||nme>=1e21)return C$(nme);if(nme<0&&(ome="-",nme=-nme),nme>1e-21)if($P=(eme=function(sme){for(var cme=0,dme=sme;dme>=4096;)cme+=12,dme/=4096;for(;dme>=2;)cme+=1,dme/=2;return cme}(nme*F$(2,69,1))-69)<0?nme*F$(2,-eme,1):nme/F$(2,eme,1),$P*=4503599627370496,(eme=52-eme)>0){for(T$(ime,0,$P),tme=rme;tme>=7;)T$(ime,1e7,0),tme-=7;for(T$(ime,F$(10,tme,1),0),tme=eme-1;tme>=23;)_$(ime,1<<23),tme-=23;_$(ime,1<<tme),T$(ime,1,1),_$(ime,2),lme=P$(ime)}else T$(ime,0,$P),T$(ime,1<<-eme,0),lme=P$(ime)+O$("0",rme);return rme>0?ome+((ame=lme.length)<=rme?"0."+O$("0",rme-ame)+lme:k$(lme,0,ame-rme)+"."+k$(lme,ame-rme)):ome+lme}});var N$={type:"image",renderElem:function(x_,eme,$P){var tme=x_,ame=tme.src,nme=tme.alt,rme=nme===void 0?"":nme,ime=tme.href,ome=ime===void 0?"":ime,lme=tme.style,sme=lme===void 0?{}:lme,cme=sme.width,dme=cme===void 0?"":cme,ume=sme.height,fme=ume===void 0?"":ume,pme=QO.isNodeSelected($P,x_),hme={};dme&&(hme.width="100%"),fme&&(hme.height="100%");var bme=Pg("img",{style:hme,src:ame,alt:rme,"data-href":ome}),mme=$P.isDisabled();return pme&&!mme?function(vme,gme,yme,_me){var $me=Mp("body"),Cme=j$(vme,gme),Sme=_me.width,Eme=_me.height,xme=0,Tme=0,Ome=0,Rme=!1,Nme=null;function Ime(Bme){Nme=function(){var Vme=Mp("#"+Cme);if(Vme.length===0)throw new Error("Cannot find image container elem");return Vme}(),xme=Bme;var Dme=Nme.find("img");if(Dme.length===0)throw new Error("Cannot find image elem");Tme=Dme.width(),Ome=Dme.height(),$me.on("mousemove",Pme),$me.on("mouseup",Mme);var jme=QO.getHoverbar(vme);jme&&jme.hideAndClean()}var Pme=eg(function(Bme){Bme.preventDefault();var Dme=Bme.clientX,jme=Tme+(Rme?xme-Dme:Dme-xme),Vme=Ome*(jme/Tme);Nme!=null&&(jme<=15||Vme<=15||(Nme.css("width",jme+"px"),Nme.css("height",Vme+"px")))},100);function Mme(Bme){if($me.off("mousemove",Pme),Nme!=null){var Dme=Nme.width().toFixed(2),jme=Nme.height().toFixed(2),Vme={style:oM(oM({},gme.style),{width:Dme+"px",height:jme+"px"})};md.setNodes(vme,Vme,{at:QO.findPath(vme,gme)}),$me.off("mouseup",Mme)}}var kme={};return Sme&&(kme.width=Sme),Eme&&(kme.height=Eme),Pg("div",{id:Cme,style:kme,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Bme){var Dme=Mp(Bme.target);Dme.hasClass("w-e-image-dragger")&&(Bme.preventDefault(),(Dme.hasClass("left-top")||Dme.hasClass("left-bottom"))&&(Rme=!0),Ime(Bme.clientX))}}},yme,Pg("div",{className:"w-e-image-dragger left-top"}),Pg("div",{className:"w-e-image-dragger right-top"}),Pg("div",{className:"w-e-image-dragger left-bottom"}),Pg("div",{className:"w-e-image-dragger right-bottom"}))}($P,x_,bme,{width:dme,height:fme}):function(vme,gme,yme,_me){var $me=_me.width,Cme=_me.height,Sme={};return $me&&(Sme.width=$me),Cme&&(Sme.height=Cme),Pg("div",{id:j$(vme,gme),style:Sme,className:"w-e-image-container"},yme)}($P,x_,bme,{width:dme,height:fme})}},I$={selector:"img:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_),ame=tme.attr("data-href")||"";return ame=decodeURIComponent(ame),{type:"image",src:tme.attr("src")||"",alt:tme.attr("alt")||"",href:ame,style:{width:eM(tme,"width"),height:eM(tme,"height")},children:[{text:""}]}}};function L$(x_,eme,$P,tme,ame){return tme===void 0&&(tme=""),ame===void 0&&(ame=""),iM(this,void 0,void 0,function(){var nme,rme;return aM(this,function(ime){switch(ime.label){case 0:return(nme=eme.getMenuConfig(x_).checkImage)?[4,nme($P,tme,ame)]:[3,2];case 1:if(typeof(rme=ime.sent())=="string")return eme.alert(rme,"error"),[2,!1];if(rme==null)return[2,!1];ime.label=2;case 2:return[2,!0]}})})}function R$(x_,eme,$P){return iM(this,void 0,void 0,function(){var tme;return aM(this,function(ame){switch(ame.label){case 0:return(tme=eme.getMenuConfig(x_).parseImageSrc)?[4,tme($P)]:[3,2];case 1:return[2,ame.sent()];case 2:return[2,$P]}})})}function M$(x_,eme,$P,tme){return $P===void 0&&($P=""),tme===void 0&&(tme=""),iM(this,void 0,void 0,function(){var ame,nme,rme;return aM(this,function(ime){switch(ime.label){case 0:return[4,L$("insertImage",x_,eme,$P,tme)];case 1:return ime.sent()?[4,R$("insertImage",x_,eme)]:[2];case 2:return ame=ime.sent(),nme={type:"image",src:a$(ame),href:tme,alt:$P,style:{},children:[{text:""}]},x_.selection===null&&x_.restoreSelection(),QO.getSelectedNodeByType(x_,"image")&&x_.move(1),z$(x_)||(md.insertNodes(x_,nme),(rme=x_.getMenuConfig("insertImage").onInsertedImage)&&rme(nme)),[2]}})})}function z$(x_){var eme=x_.selection;return eme==null||!qf.isCollapsed(eme)||!!sM(Bf.nodes(x_,{match:function($P){var tme=QO.getNodeType($P);return tme==="code"||tme==="pre"||tme==="link"||tme==="list-item"||!!tme.startsWith("header")||tme==="blockquote"||!!Bf.isVoid(x_,$P)},universal:!0}),1)[0]}function $$(){return i$("w-e-insert-image")}var H$=function(){function x_(){this.title=HP("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=$$(),this.altInputId=$$(),this.hrefInputId=$$(),this.buttonId=$$()}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){return z$(eme)},x_.prototype.getModalPositionNode=function(eme){return null},x_.prototype.getModalContentElem=function(eme){var $P=this,tme=this,ame=tme.srcInputId,nme=tme.altInputId,rme=tme.hrefInputId,ime=tme.buttonId,ome=sM(S_(HP("image.src"),ame),2),lme=ome[0],sme=Mp(ome[1]),cme=sM(S_(HP("image.desc"),nme),2),dme=cme[0],ume=Mp(cme[1]),fme=sM(S_(HP("image.link"),rme),2),pme=fme[0],hme=Mp(fme[1]),bme=sM(C_(ime,HP("common.ok")),1)[0];if(this.$content==null){var mme=Mp("<div></div>");mme.on("click","#"+ime,function(gme){gme.preventDefault();var yme=mme.find("#"+ame).val().trim(),_me=mme.find("#"+nme).val().trim(),$me=mme.find("#"+rme).val().trim();$P.insertImage(eme,yme,_me,$me),eme.hidePanelOrModal()}),this.$content=mme}var vme=this.$content;return vme.empty(),vme.append(lme),vme.append(dme),vme.append(pme),vme.append(bme),sme.val(""),ume.val(""),hme.val(""),setTimeout(function(){sme.focus()}),vme[0]},x_.prototype.insertImage=function(eme,$P,tme,ame){tme===void 0&&(tme=""),ame===void 0&&(ame=""),$P&&(eme.restoreSelection(),this.isDisabled(eme)||M$(eme,$P,tme,ame))},x_}(),V$=function(){function x_(){this.title=HP("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||QO.getSelectedNodeByType(eme,"image")==null},x_.prototype.exec=function(eme,$P){this.isDisabled(eme)||md.removeNodes(eme,{match:function(tme){return QO.checkNodeType(tme,"image")}})},x_}();function U$(){return i$("w-e-edit-image")}var W$=function(){function x_(){this.title=HP("image.edit"),this.iconSvg=jM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=U$(),this.altInputId=U$(),this.hrefInputId=U$(),this.buttonId=U$()}return x_.prototype.getValue=function(eme){return""},x_.prototype.getImageNode=function(eme){return QO.getSelectedNodeByType(eme,"image")},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"image")==null},x_.prototype.getModalPositionNode=function(eme){return this.getImageNode(eme)},x_.prototype.getModalContentElem=function(eme){var $P=this,tme=this,ame=tme.srcInputId,nme=tme.altInputId,rme=tme.hrefInputId,ime=tme.buttonId,ome=this.getImageNode(eme);if(ome==null)throw new Error("Not found selected image node");var lme=sM(S_(HP("image.src"),ame),2),sme=lme[0],cme=Mp(lme[1]),dme=sM(S_(HP("image.desc"),nme),2),ume=dme[0],fme=Mp(dme[1]),pme=sM(S_(HP("image.link"),rme),2),hme=pme[0],bme=Mp(pme[1]),mme=sM(C_(ime,HP("common.ok")),1)[0];if(this.$content==null){var vme=Mp("<div></div>");vme.on("click","#"+ime,function(xme){xme.preventDefault();var Tme=vme.find("#"+ame).val(),Ome=vme.find("#"+nme).val(),Rme=vme.find("#"+rme).val();$P.updateImage(eme,Tme,Ome,Rme),eme.hidePanelOrModal()}),this.$content=vme}var gme=this.$content;gme.empty(),gme.append(sme),gme.append(ume),gme.append(hme),gme.append(mme);var yme=ome,_me=yme.src,$me=yme.alt,Cme=$me===void 0?"":$me,Sme=yme.href,Eme=Sme===void 0?"":Sme;return cme.val(_me),fme.val(Cme),bme.val(Eme),setTimeout(function(){cme.focus()}),gme[0]},x_.prototype.updateImage=function(eme,$P,tme,ame,nme){tme===void 0&&(tme=""),ame===void 0&&(ame=""),nme===void 0&&(nme={}),$P&&(eme.restoreSelection(),this.isDisabled(eme)||function(rme,ime,ome,lme,sme){ome===void 0&&(ome=""),lme===void 0&&(lme=""),sme===void 0&&(sme={}),iM(this,void 0,void 0,function(){var cme,dme,ume,fme,pme,hme;return aM(this,function(bme){switch(bme.label){case 0:return[4,L$("editImage",rme,ime,ome,lme)];case 1:return bme.sent()?[4,R$("editImage",rme,ime)]:[2];case 2:return cme=bme.sent(),(dme=QO.getSelectedNodeByType(rme,"image"))==null||(ume=dme.style,fme={src:cme,alt:ome,href:lme,style:oM(oM({},ume===void 0?{}:ume),sme)},md.setNodes(rme,fme,{match:function(mme){return QO.checkNodeType(mme,"image")}}),pme=QO.getSelectedNodeByType(rme,"image"),(hme=rme.getMenuConfig("editImage").onUpdatedImage)&&hme(pme)),[2]}})})}(eme,$P,tme,ame,nme))},x_}(),G$=function(){function x_(){this.title=HP("image.viewLink"),this.iconSvg=NM,this.tag="button"}return x_.prototype.getValue=function(eme){var $P=QO.getSelectedNodeByType(eme,"image");return $P&&$P.href||""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||!this.getValue(eme)},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){if(!$P||typeof $P!="string")throw new Error("View image link failed, image.href is '"+$P+"'");window.open($P,"_blank")}},x_}(),q$=function(){function x_(){this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.getSelectedNode=function(eme){return QO.getSelectedNodeByType(eme,"image")},x_.prototype.isDisabled=function(eme){return eme.selection==null||this.getSelectedNode(eme)==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=this.getSelectedNode(eme);if(tme!=null){var ame=QO.getHoverbar(eme);ame&&ame.hideAndClean();var nme=tme.style,rme={style:oM(oM({},nme===void 0?{}:nme),{width:this.value,height:""})};md.setNodes(eme,rme,{match:function(ime){return QO.checkNodeType(ime,"image")}})}}},x_}(),K$=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="30%",$P.value="30%",$P}return rM(eme,x_),eme}(q$),Y$=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="50%",$P.value="50%",$P}return rM(eme,x_),eme}(q$),X$=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title="100%",$P.value="100%",$P}return rM(eme,x_),eme}(q$),Z$={onInsertedImage:function(x_){},onUpdatedImage:function(x_){},checkImage:function(x_,eme,$P){return!0},parseImageSrc:function(x_){return x_}},J$={renderElems:[N$],elemsToHtml:[{type:"image",elemToHtml:function(x_,eme){var $P=x_,tme=$P.src,ame=$P.alt,nme=ame===void 0?"":ame,rme=$P.href,ime=rme===void 0?"":rme,ome=$P.style,lme=ome===void 0?{}:ome,sme=lme.width,cme=sme===void 0?"":sme,dme=lme.height,ume=dme===void 0?"":dme,fme="";return cme&&(fme+="width: "+cme+";"),ume&&(fme+="height: "+ume+";"),'<img src="'+tme+'" alt="'+nme+'" data-href="'+ime+'" style="'+fme+'"/>'}}],parseElemsHtml:[I$],menus:[{key:"insertImage",factory:function(){return new H$},config:Z$},{key:"deleteImage",factory:function(){return new V$}},{key:"editImage",factory:function(){return new W$},config:Z$},{key:"viewImageLink",factory:function(){return new G$}},{key:"imageWidth30",factory:function(){return new K$}},{key:"imageWidth50",factory:function(){return new Y$}},{key:"imageWidth100",factory:function(){return new X$}}],editorPlugin:function(x_){var eme=x_.isInline,$P=x_.isVoid;x_.insertNode;var tme=x_;return tme.isInline=function(ame){return ame.type==="image"||eme(ame)},tme.isVoid=function(ame){return ame.type==="image"||$P(ame)},tme}},Q$={type:"todo",renderElem:function(x_,eme,$P){var tme=!1;$P.isDisabled()&&(tme=!0);var ame=Pg("div",{style:{margin:"5px 0"}},Pg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Pg("input",{type:"checkbox",checked:x_.checked,disabled:tme,on:{change:function(nme){var rme=QO.findPath($P,x_),ime={checked:nme.target.checked};md.setNodes($P,ime,{at:rme})}}})),Pg("span",null,eme));return ame}},eH=function(){function x_(){this.title=HP("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!!QO.getSelectedNodeByType(eme,"todo")},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!QO.getSelectedElems(eme).some(function($P){if(Bf.isVoid(eme,$P)&&Bf.isBlock(eme,$P))return!0;var tme=$P.type;return!!["pre","table","list-item"].includes(tme)||void 0})},x_.prototype.exec=function(eme,$P){var tme=this.isActive(eme);md.setNodes(eme,{type:tme?"paragraph":"todo"})},x_}(),tH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);(eme=eme.filter(function(nme){return!!ed.isText(nme)||!!$P.isInline(nme)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]);var ame=!1;return tme.find('input[type="checkbox"]').attr("checked")!=null&&(ame=!0),{type:"todo",checked:ame,children:eme}}},nH={renderElems:[Q$],elemsToHtml:[{type:"todo",elemToHtml:function(x_,eme){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(x_.checked?"checked":"")+">"+eme+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(x_){var eme=Mp(x_).find("li"),$P=Mp('<div data-w-e-type="todo"></div>'),tme=eme.find("input[type]");return $P.append(tme),eme.children()[0].remove(),$P[0].innerHTML=$P[0].innerHTML+eme[0].innerHTML,$P[0]}}],parseElemsHtml:[tH],menus:[{key:"todo",factory:function(){return new eH}}],editorPlugin:function(x_){var eme=x_.deleteBackward,$P=x_;return $P.deleteBackward=function(tme){var ame=x_.selection;if(ame&&qf.isCollapsed(ame)){var nme=QO.getSelectedNodeByType(x_,"todo");if(nme&&Nf.string(nme).length===0)return void md.setNodes(x_,{type:"paragraph"},{mode:"highest"})}eme(tme)},$P}},rH={type:"blockquote",renderElem:function(x_,eme,$P){return Pg("blockquote",null,eme)}},oH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);return(eme=eme.filter(function(ame){return!!ed.isText(ame)||!!$P.isInline(ame)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:eme}}},iH=function(){function x_(){this.title=HP("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!!QO.getSelectedNodeByType(eme,"blockquote")},x_.prototype.isDisabled=function(eme){return eme.selection==null||!sM(Bf.nodes(eme,{match:function($P){var tme=QO.getNodeType($P);return tme==="paragraph"||tme==="blockquote"},universal:!0,mode:"highest"}),1)[0]},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=this.isActive(eme)?"paragraph":"blockquote";md.setNodes(eme,{type:tme},{mode:"highest"})}},x_}(),aH={key:"blockquote",factory:function(){return new iH}},uH=Bj([].slice),sH=uL("slice"),lH=DN("species"),cH=gj.Array,fH=Math.max;LI({target:"Array",proto:!0,forced:!sH},{slice:function(x_,eme){var $P,tme,ame,nme=Rj(this),rme=vI(nme),ime=pI(x_,rme),ome=pI(eme===void 0?rme:eme,rme);if(MI(nme)&&($P=nme.constructor,(QI($P)&&($P===cH||MI($P.prototype))||zj($P)&&($P=$P[lH])===null)&&($P=void 0),$P===cH||$P===void 0))return uH(nme,ime,ome);for(tme=new($P===void 0?cH:$P)(fH(ome-ime,0)),ame=0;ime<ome;ime++,ame++)ime in nme&&_R(tme,ame,nme[ime]);return tme.length=ame,tme}});var dH={renderElems:[rH],elemsToHtml:[{type:"blockquote",elemToHtml:function(x_,eme){return"<blockquote>"+eme+"</blockquote>"}}],parseElemsHtml:[oH],menus:[aH],editorPlugin:function(x_){var eme=x_.insertBreak,$P=x_.insertText,tme=x_;return tme.insertBreak=function(){var ame=tme.selection;if(ame==null)return eme();var nme=sM(Bf.nodes(x_,{match:function(sme){return QO.checkNodeType(sme,"blockquote")},universal:!0}),1)[0];if(!nme)return eme();var rme=nme[0],ime=QO.findPath(x_,rme),ome=Bf.end(x_,ime);if(Vf.equals(ome,ame.focus)){var lme=Nf.string(rme);if(lme&&lme.slice(-1)===`
`)return x_.deleteBackward("character"),void md.insertNodes(tme,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}$P(`
`)},tme}},pH=function(){function x_(){this.title=HP("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return x_.prototype.exec=function(eme,$P){},x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!sM(Bf.nodes(eme,{match:function($P){return QO.getNodeType($P)==="pre"||!!Bf.isVoid(eme,$P)},universal:!0}),1)[0]},x_.prototype.getPanelContentElem=function(eme){if(this.$content==null){var $P=Mp('<ul class="w-e-panel-content-emotion"></ul>');$P.on("click","li",function(nme){var rme=nme.target;if(rme!=null){nme.preventDefault();var ime=Mp(rme).text();eme.insertText(ime)}}),this.$content=$P}var tme=this.$content;if(tme==null)return document.createElement("ul");tme.empty();var ame=eme.getMenuConfig("emotion").emotions;return(ame===void 0?[]:ame).forEach(function(nme){var rme=Mp("<li>"+nme+"</li>");tme.append(rme)}),tme[0]},x_}(),hH={menus:[{key:"emotion",factory:function(){return new pH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},gH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},vH={selector:"font",preParseHtml:function(x_){var eme=Mp(x_);if(QR(eme)!=="font")return x_;var $P=eme.attr("size")||"";$P&&(eme.removeAttr("size"),eme.css("font-size",gH[$P]));var tme=eme.attr("face")||"";return tme&&(eme.removeAttr("face"),eme.css("font-family",tme)),eme[0]}},yH=Bj("".indexOf);LI({target:"String",proto:!0,forced:!bz("includes")},{includes:function(x_){return!!~yH(dL(Lj(this)),dL(yz(x_)),arguments.length>1?arguments[1]:void 0)}});var mH,bH,wH=function(x_){return x_&&x_.Math==Math&&x_},EH=wH(typeof globalThis=="object"&&globalThis)||wH(typeof window=="object"&&window)||wH(typeof self=="object"&&self)||wH(typeof cj=="object"&&cj)||function(){return this}()||Function("return this")(),DH=Function.prototype,SH=DH.apply,xH=DH.bind,CH=DH.call,AH=typeof Reflect=="object"&&Reflect.apply||(xH?CH.bind(SH):function(){return CH.apply(SH,arguments)}),OH=Function.prototype,kH=OH.bind,BH=OH.call,FH=kH&&kH.bind(BH),TH=kH?function(x_){return x_&&FH(BH,x_)}:function(x_){return x_&&function(){return BH.apply(x_,arguments)}},_H=function(x_){return typeof x_=="function"},PH=function(x_){try{return!!x_()}catch{return!0}},jH=!PH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),NH=Function.prototype.call,IH=NH.bind?NH.bind(NH):function(){return NH.apply(NH,arguments)},LH={}.propertyIsEnumerable,RH=Object.getOwnPropertyDescriptor,MH=RH&&!LH.call({1:2},1)?function(x_){var eme=RH(this,x_);return!!eme&&eme.enumerable}:LH,zH={f:MH},$H=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},HH=TH({}.toString),VH=TH("".slice),UH=function(x_){return VH(HH(x_),8,-1)},WH=EH.Object,GH=TH("".split),qH=PH(function(){return!WH("z").propertyIsEnumerable(0)})?function(x_){return UH(x_)=="String"?GH(x_,""):WH(x_)}:WH,KH=EH.TypeError,YH=function(x_){if(x_==null)throw KH("Can't call method on "+x_);return x_},XH=function(x_){return qH(YH(x_))},ZH=function(x_){return typeof x_=="object"?x_!==null:_H(x_)},JH={},QH=function(x_){return _H(x_)?x_:void 0},eV=function(x_,eme){return arguments.length<2?QH(JH[x_])||QH(EH[x_]):JH[x_]&&JH[x_][eme]||EH[x_]&&EH[x_][eme]},tV=TH({}.isPrototypeOf),nV=eV("navigator","userAgent")||"",rV=EH.process,oV=EH.Deno,iV=rV&&rV.versions||oV&&oV.version,aV=iV&&iV.v8;aV&&(bH=(mH=aV.split("."))[0]>0&&mH[0]<4?1:+(mH[0]+mH[1])),!bH&&nV&&(!(mH=nV.match(/Edge\/(\d+)/))||mH[1]>=74)&&(mH=nV.match(/Chrome\/(\d+)/))&&(bH=+mH[1]);var uV=bH,sV=!!Object.getOwnPropertySymbols&&!PH(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&uV&&uV<41}),lV=sV&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cV=EH.Object,fV=lV?function(x_){return typeof x_=="symbol"}:function(x_){var eme=eV("Symbol");return _H(eme)&&tV(eme.prototype,cV(x_))},dV=EH.String,pV=EH.TypeError,hV=function(x_){if(_H(x_))return x_;throw pV(function(eme){try{return dV(eme)}catch{return"Object"}}(x_)+" is not a function")},gV=EH.TypeError,vV=Object.defineProperty,yV=EH["__core-js_shared__"]||function(x_,eme){try{vV(EH,x_,{value:eme,configurable:!0,writable:!0})}catch{EH[x_]=eme}return eme}("__core-js_shared__",{}),mV=fj(function(x_){(x_.exports=function(eme,$P){return yV[eme]||(yV[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),bV=EH.Object,wV=function(x_){return bV(YH(x_))},EV=TH({}.hasOwnProperty),DV=Object.hasOwn||function(x_,eme){return EV(wV(x_),eme)},SV=0,xV=Math.random(),CV=TH(1 .toString),AV=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+CV(++SV+xV,36)},OV=mV("wks"),kV=EH.Symbol,BV=kV&&kV.for,FV=lV?kV:kV&&kV.withoutSetter||AV,TV=function(x_){if(!DV(OV,x_)||!sV&&typeof OV[x_]!="string"){var eme="Symbol."+x_;sV&&DV(kV,x_)?OV[x_]=kV[x_]:OV[x_]=lV&&BV?BV(eme):FV(eme)}return OV[x_]},_V=EH.TypeError,PV=TV("toPrimitive"),jV=function(x_){var eme=function($P,tme){if(!ZH($P)||fV($P))return $P;var ame,nme,rme=(ame=$P[PV])==null?void 0:hV(ame);if(rme){if(nme=IH(rme,$P,tme),!ZH(nme)||fV(nme))return nme;throw _V("Can't convert object to primitive value")}return function(ime,ome){var lme,sme;if(_H(lme=ime.toString)&&!ZH(sme=IH(lme,ime))||_H(lme=ime.valueOf)&&!ZH(sme=IH(lme,ime)))return sme;throw gV("Can't convert object to primitive value")}($P)}(x_,"string");return fV(eme)?eme:eme+""},NV=EH.document,IV=ZH(NV)&&ZH(NV.createElement),LV=function(x_){return IV?NV.createElement(x_):{}},RV=!jH&&!PH(function(){return Object.defineProperty(LV("div"),"a",{get:function(){return 7}}).a!=7}),MV=Object.getOwnPropertyDescriptor,zV={f:jH?MV:function(x_,eme){if(x_=XH(x_),eme=jV(eme),RV)try{return MV(x_,eme)}catch{}if(DV(x_,eme))return $H(!IH(zH.f,x_,eme),x_[eme])}},$V=/#|\.prototype\./,HV=function(x_,eme){var $P=UV[VV(x_)];return $P==GV||$P!=WV&&(_H(eme)?PH(eme):!!eme)},VV=HV.normalize=function(x_){return String(x_).replace($V,".").toLowerCase()},UV=HV.data={},WV=HV.NATIVE="N",GV=HV.POLYFILL="P",qV=HV,KV=TH(TH.bind),YV=function(x_,eme){return hV(x_),eme===void 0?x_:KV?KV(x_,eme):function(){return x_.apply(eme,arguments)}},XV=EH.String,ZV=EH.TypeError,JV=function(x_){if(ZH(x_))return x_;throw ZV(XV(x_)+" is not an object")},QV=EH.TypeError,eU=Object.defineProperty,tU={f:jH?eU:function(x_,eme,$P){if(JV(x_),eme=jV(eme),JV($P),RV)try{return eU(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw QV("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},nU=jH?function(x_,eme,$P){return tU.f(x_,eme,$H(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},rU=zV.f,oU=function(x_){var eme=function($P,tme,ame){if(this instanceof eme){switch(arguments.length){case 0:return new x_;case 1:return new x_($P);case 2:return new x_($P,tme)}return new x_($P,tme,ame)}return AH(x_,this,arguments)};return eme.prototype=x_.prototype,eme},iU=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme,sme=x_.target,cme=x_.global,dme=x_.stat,ume=x_.proto,fme=cme?EH:dme?EH[sme]:(EH[sme]||{}).prototype,pme=cme?JH:JH[sme]||nU(JH,sme,{})[sme],hme=pme.prototype;for(ame in eme)$P=!qV(cme?ame:sme+(dme?".":"#")+ame,x_.forced)&&fme&&DV(fme,ame),rme=pme[ame],$P&&(ime=x_.noTargetGet?(lme=rU(fme,ame))&&lme.value:fme[ame]),nme=$P&&ime?ime:eme[ame],$P&&typeof rme==typeof nme||(ome=x_.bind&&$P?YV(nme,EH):x_.wrap&&$P?oU(nme):ume&&_H(nme)?TH(nme):nme,(x_.sham||nme&&nme.sham||rme&&rme.sham)&&nU(ome,"sham",!0),nU(pme,ame,ome),ume&&(DV(JH,tme=sme+"Prototype")||nU(JH,tme,{}),nU(JH[tme],ame,nme),x_.real&&hme&&!hme[ame]&&nU(hme,ame,nme)))},aU=Array.isArray||function(x_){return UH(x_)=="Array"},uU=Math.ceil,sU=Math.floor,lU=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?sU:uU)(eme)},cU=Math.min,fU=function(x_){return(eme=x_.length)>0?cU(lU(eme),9007199254740991):0;var eme},dU=function(x_,eme,$P){var tme=jV(eme);tme in x_?tU.f(x_,tme,$H(0,$P)):x_[tme]=$P},pU={};pU[TV("toStringTag")]="z";var hU=String(pU)==="[object z]",gU=TV("toStringTag"),vU=EH.Object,yU=UH(function(){return arguments}())=="Arguments",mU=hU?UH:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=vU(x_),gU))=="string"?$P:yU?UH(eme):(tme=UH(eme))=="Object"&&_H(eme.callee)?"Arguments":tme},bU=TH(Function.toString);_H(yV.inspectSource)||(yV.inspectSource=function(x_){return bU(x_)});var wU=yV.inspectSource,EU=function(){},DU=[],SU=eV("Reflect","construct"),xU=/^\s*(?:class|function)\b/,CU=TH(xU.exec),AU=!xU.exec(EU),OU=function(x_){if(!_H(x_))return!1;try{return SU(EU,DU,x_),!0}catch{return!1}},kU=!SU||PH(function(){var x_;return OU(OU.call)||!OU(Object)||!OU(function(){x_=!0})||x_})?function(x_){if(!_H(x_))return!1;switch(mU(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return AU||!!CU(xU,wU(x_))}:OU,BU=TV("species"),FU=EH.Array,TU=function(x_,eme){return new(function($P){var tme;return aU($P)&&(tme=$P.constructor,(kU(tme)&&(tme===FU||aU(tme.prototype))||ZH(tme)&&(tme=tme[BU])===null)&&(tme=void 0)),tme===void 0?FU:tme}(x_))(eme===0?0:eme)},_U=TV("species"),PU=TV("isConcatSpreadable"),jU=EH.TypeError,NU=uV>=51||!PH(function(){var x_=[];return x_[PU]=!1,x_.concat()[0]!==x_}),IU=uV>=51||!PH(function(){var x_=[];return(x_.constructor={})[_U]=function(){return{foo:1}},x_.concat(Boolean).foo!==1}),LU=function(x_){if(!ZH(x_))return!1;var eme=x_[PU];return eme!==void 0?!!eme:aU(x_)};iU({target:"Array",proto:!0,forced:!NU||!IU},{concat:function(x_){var eme,$P,tme,ame,nme,rme=wV(this),ime=TU(rme,0),ome=0;for(eme=-1,tme=arguments.length;eme<tme;eme++)if(LU(nme=eme===-1?rme:arguments[eme])){if(ome+(ame=fU(nme))>9007199254740991)throw jU("Maximum allowed index exceeded");for($P=0;$P<ame;$P++,ome++)$P in nme&&dU(ime,ome,nme[$P])}else{if(ome>=9007199254740991)throw jU("Maximum allowed index exceeded");dU(ime,ome++,nme)}return ime.length=ome,ime}});var RU,MU=EH.String,zU=function(x_){if(mU(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return MU(x_)},$U=Math.max,HU=Math.min,VU=function(x_,eme){var $P=lU(x_);return $P<0?$U($P+eme,0):HU($P,eme)},UU=function(x_){return function(eme,$P,tme){var ame,nme=XH(eme),rme=fU(nme),ime=VU(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},WU={includes:UU(!0),indexOf:UU(!1)},GU={},qU=WU.indexOf,KU=TH([].push),YU=function(x_,eme){var $P,tme=XH(x_),ame=0,nme=[];for($P in tme)!DV(GU,$P)&&DV(tme,$P)&&KU(nme,$P);for(;eme.length>ame;)DV(tme,$P=eme[ame++])&&(~qU(nme,$P)||KU(nme,$P));return nme},XU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZU=Object.keys||function(x_){return YU(x_,XU)},JU=jH?Object.defineProperties:function(x_,eme){JV(x_);for(var $P,tme=XH(eme),ame=ZU(eme),nme=ame.length,rme=0;nme>rme;)tU.f(x_,$P=ame[rme++],tme[$P]);return x_},QU=eV("document","documentElement"),eW=mV("keys"),tW=function(x_){return eW[x_]||(eW[x_]=AV(x_))},nW=tW("IE_PROTO"),rW=function(){},oW=function(x_){return"<script>"+x_+"<\/script>"},iW=function(x_){x_.write(oW("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},aW=function(){try{RU=new ActiveXObject("htmlfile")}catch{}var x_,eme;aW=typeof document<"u"?document.domain&&RU?iW(RU):((eme=LV("iframe")).style.display="none",QU.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(oW("document.F=Object")),x_.close(),x_.F):iW(RU);for(var $P=XU.length;$P--;)delete aW.prototype[XU[$P]];return aW()};GU[nW]=!0;var uW,sW,lW,cW=Object.create||function(x_,eme){var $P;return x_!==null?(rW.prototype=JV(x_),$P=new rW,rW.prototype=null,$P[nW]=x_):$P=aW(),eme===void 0?$P:JU($P,eme)},fW=XU.concat("length","prototype"),dW={f:Object.getOwnPropertyNames||function(x_){return YU(x_,fW)}},pW=EH.Array,hW=Math.max,gW=dW.f,vW=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yW={f:function(x_){return vW&&UH(x_)=="Window"?function(eme){try{return gW(eme)}catch{return function(tme,ame,nme){for(var rme=fU(tme),ime=VU(void 0,rme),ome=VU(rme,rme),lme=pW(hW(ome-ime,0)),sme=0;ime<ome;ime++,sme++)dU(lme,sme,tme[ime]);return lme.length=sme,lme}(vW)}}(x_):gW(XH(x_))}},mW={f:Object.getOwnPropertySymbols},bW=TH([].slice),wW=function(x_,eme,$P,tme){nU(x_,eme,$P)},EW={f:TV},DW=tU.f,SW=function(x_){var eme=JH.Symbol||(JH.Symbol={});DV(eme,x_)||DW(eme,x_,{value:EW.f(x_)})},xW=hU?{}.toString:function(){return"[object "+mU(this)+"]"},CW=tU.f,AW=TV("toStringTag"),OW=function(x_,eme,$P,tme){if(x_){var ame=$P?x_:x_.prototype;DV(ame,AW)||CW(ame,AW,{configurable:!0,value:eme}),tme&&!hU&&nU(ame,"toString",xW)}},kW=EH.WeakMap,BW=_H(kW)&&/native code/.test(wU(kW)),FW=EH.TypeError,TW=EH.WeakMap;if(BW||yV.state){var _W=yV.state||(yV.state=new TW),PW=TH(_W.get),jW=TH(_W.has),NW=TH(_W.set);uW=function(x_,eme){if(jW(_W,x_))throw new FW("Object already initialized");return eme.facade=x_,NW(_W,x_,eme),eme},sW=function(x_){return PW(_W,x_)||{}},lW=function(x_){return jW(_W,x_)}}else{var IW=tW("state");GU[IW]=!0,uW=function(x_,eme){if(DV(x_,IW))throw new FW("Object already initialized");return eme.facade=x_,nU(x_,IW,eme),eme},sW=function(x_){return DV(x_,IW)?x_[IW]:{}},lW=function(x_){return DV(x_,IW)}}var LW={set:uW,get:sW,has:lW,enforce:function(x_){return lW(x_)?sW(x_):uW(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!ZH(eme)||($P=sW(eme)).type!==x_)throw FW("Incompatible receiver, "+x_+" required");return $P}}},RW=TH([].push),MW=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=wV(ome),pme=qH(fme),hme=YV(lme,sme),bme=fU(pme),mme=0,vme=cme||TU,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:RW(gme,dme)}else switch(x_){case 4:return!1;case 7:RW(gme,dme)}return nme?-1:tme||ame?ame:gme}},zW=[MW(0),MW(1),MW(2),MW(3),MW(4),MW(5),MW(6),MW(7)][0],$W=tW("hidden"),HW=TV("toPrimitive"),VW=LW.set,UW=LW.getterFor("Symbol"),WW=Object.prototype,GW=EH.Symbol,qW=GW&&GW.prototype,KW=EH.TypeError,YW=EH.QObject,XW=eV("JSON","stringify"),ZW=zV.f,JW=tU.f,QW=yW.f,eG=zH.f,tG=TH([].push),nG=mV("symbols"),rG=mV("op-symbols"),oG=mV("string-to-symbol-registry"),iG=mV("symbol-to-string-registry"),aG=mV("wks"),uG=!YW||!YW.prototype||!YW.prototype.findChild,sG=jH&&PH(function(){return cW(JW({},"a",{get:function(){return JW(this,"a",{value:7}).a}})).a!=7})?function(x_,eme,$P){var tme=ZW(WW,eme);tme&&delete WW[eme],JW(x_,eme,$P),tme&&x_!==WW&&JW(WW,eme,tme)}:JW,lG=function(x_,eme){var $P=nG[x_]=cW(qW);return VW($P,{type:"Symbol",tag:x_,description:eme}),jH||($P.description=eme),$P},cG=function(x_,eme,$P){x_===WW&&cG(rG,eme,$P),JV(x_);var tme=jV(eme);return JV($P),DV(nG,tme)?($P.enumerable?(DV(x_,$W)&&x_[$W][tme]&&(x_[$W][tme]=!1),$P=cW($P,{enumerable:$H(0,!1)})):(DV(x_,$W)||JW(x_,$W,$H(1,{})),x_[$W][tme]=!0),sG(x_,tme,$P)):JW(x_,tme,$P)},fG=function(x_,eme){JV(x_);var $P=XH(eme),tme=ZU($P).concat(gG($P));return zW(tme,function(ame){jH&&!IH(dG,$P,ame)||cG(x_,ame,$P[ame])}),x_},dG=function(x_){var eme=jV(x_),$P=IH(eG,this,eme);return!(this===WW&&DV(nG,eme)&&!DV(rG,eme))&&(!($P||!DV(this,eme)||!DV(nG,eme)||DV(this,$W)&&this[$W][eme])||$P)},pG=function(x_,eme){var $P=XH(x_),tme=jV(eme);if($P!==WW||!DV(nG,tme)||DV(rG,tme)){var ame=ZW($P,tme);return!ame||!DV(nG,tme)||DV($P,$W)&&$P[$W][tme]||(ame.enumerable=!0),ame}},hG=function(x_){var eme=QW(XH(x_)),$P=[];return zW(eme,function(tme){DV(nG,tme)||DV(GU,tme)||tG($P,tme)}),$P},gG=function(x_){var eme=x_===WW,$P=QW(eme?rG:XH(x_)),tme=[];return zW($P,function(ame){!DV(nG,ame)||eme&&!DV(WW,ame)||tG(tme,nG[ame])}),tme};if(sV||(qW=(GW=function(){if(tV(qW,this))throw KW("Symbol is not a constructor");var x_=arguments.length&&arguments[0]!==void 0?zU(arguments[0]):void 0,eme=AV(x_),$P=function(tme){this===WW&&IH($P,rG,tme),DV(this,$W)&&DV(this[$W],eme)&&(this[$W][eme]=!1),sG(this,eme,$H(1,tme))};return jH&&uG&&sG(WW,eme,{configurable:!0,set:$P}),lG(eme,x_)}).prototype,wW(qW,"toString",function(){return UW(this).tag}),wW(GW,"withoutSetter",function(x_){return lG(AV(x_),x_)}),zH.f=dG,tU.f=cG,zV.f=pG,dW.f=yW.f=hG,mW.f=gG,EW.f=function(x_){return lG(TV(x_),x_)},jH&&JW(qW,"description",{configurable:!0,get:function(){return UW(this).description}})),iU({global:!0,wrap:!0,forced:!sV,sham:!sV},{Symbol:GW}),zW(ZU(aG),function(x_){SW(x_)}),iU({target:"Symbol",stat:!0,forced:!sV},{for:function(x_){var eme=zU(x_);if(DV(oG,eme))return oG[eme];var $P=GW(eme);return oG[eme]=$P,iG[$P]=eme,$P},keyFor:function(x_){if(!fV(x_))throw KW(x_+" is not a symbol");if(DV(iG,x_))return iG[x_]},useSetter:function(){uG=!0},useSimple:function(){uG=!1}}),iU({target:"Object",stat:!0,forced:!sV,sham:!jH},{create:function(x_,eme){return eme===void 0?cW(x_):fG(cW(x_),eme)},defineProperty:cG,defineProperties:fG,getOwnPropertyDescriptor:pG}),iU({target:"Object",stat:!0,forced:!sV},{getOwnPropertyNames:hG,getOwnPropertySymbols:gG}),iU({target:"Object",stat:!0,forced:PH(function(){mW.f(1)})},{getOwnPropertySymbols:function(x_){return mW.f(wV(x_))}}),XW){var vG=!sV||PH(function(){var x_=GW();return XW([x_])!="[null]"||XW({a:x_})!="{}"||XW(Object(x_))!="{}"});iU({target:"JSON",stat:!0,forced:vG},{stringify:function(x_,eme,$P){var tme=bW(arguments),ame=eme;if((ZH(eme)||x_!==void 0)&&!fV(x_))return aU(eme)||(eme=function(nme,rme){if(_H(ame)&&(rme=IH(ame,this,nme,rme)),!fV(rme))return rme}),tme[1]=eme,AH(XW,null,tme)}})}if(!qW[HW]){var yG=qW.valueOf;wW(qW,HW,function(x_){return IH(yG,this)})}OW(GW,"Symbol"),GU[$W]=!0,SW("asyncIterator"),SW("hasInstance"),SW("isConcatSpreadable"),SW("iterator"),SW("match"),SW("matchAll"),SW("replace"),SW("search"),SW("species"),SW("split"),SW("toPrimitive"),SW("toStringTag"),SW("unscopables"),OW(EH.JSON,"JSON",!0);var mG,bG,wG,EG=JH.Symbol,DG={},SG=Function.prototype,xG=jH&&Object.getOwnPropertyDescriptor,CG=DV(SG,"name"),AG={EXISTS:CG,PROPER:CG&&(function(){}).name==="something",CONFIGURABLE:CG&&(!jH||jH&&xG(SG,"name").configurable)},OG=!PH(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),kG=tW("IE_PROTO"),BG=EH.Object,FG=BG.prototype,TG=OG?BG.getPrototypeOf:function(x_){var eme=wV(x_);if(DV(eme,kG))return eme[kG];var $P=eme.constructor;return _H($P)&&eme instanceof $P?$P.prototype:eme instanceof BG?FG:null},_G=TV("iterator"),PG=!1;[].keys&&("next"in(wG=[].keys())?(bG=TG(TG(wG)))!==Object.prototype&&(mG=bG):PG=!0);var jG=mG==null||PH(function(){var x_={};return mG[_G].call(x_)!==x_});mG=jG?{}:cW(mG),_H(mG[_G])||wW(mG,_G,function(){return this});var NG={IteratorPrototype:mG,BUGGY_SAFARI_ITERATORS:PG},IG=NG.IteratorPrototype,LG=function(){return this};EH.String,EH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var x_={};try{TH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(x_,[]),x_ instanceof Array}catch{}}();var RG=AG.PROPER,MG=NG.BUGGY_SAFARI_ITERATORS,zG=TV("iterator"),$G=function(){return this},HG=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=cW(IG,{next:$H(1,mme)}),OW(hme,gme,!1,!0),DG[gme]=LG})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!MG&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[zG]||dme["@@iterator"]||ame&&dme[ame],fme=!MG&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=TG(pme.call(new x_)))!==Object.prototype&&ime.next&&(OW(ime,sme,!0,!0),DG[sme]=$G),RG&&ame=="values"&&ume&&ume.name!=="values"&&(cme=!0,fme=function(){return IH(ume,this)}),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||iU({target:eme,proto:!0,forced:MG||cme},ome)),DG[eme]=fme,ome},VG=LW.set,UG=LW.getterFor("Array Iterator");HG(Array,"Array",function(x_,eme){VG(this,{type:"Array Iterator",target:XH(x_),index:0,kind:eme})},function(){var x_=UG(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values"),DG.Arguments=DG.Array;var WG=TV("toStringTag");for(var GG in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var qG=EH[GG],KG=qG&&qG.prototype;KG&&mU(KG)!==WG&&nU(KG,WG,GG),DG[GG]=DG.Array}var YG=EG;SW("asyncDispose"),SW("dispose"),SW("matcher"),SW("metadata"),SW("observable"),SW("patternMatch"),SW("replaceAll");var XG=YG,ZG=TH("".charAt),JG=TH("".charCodeAt),QG=TH("".slice),eq$1=function(x_){return function(eme,$P){var tme,ame,nme=zU(YH(eme)),rme=lU($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=JG(nme,rme))<55296||tme>56319||rme+1===ime||(ame=JG(nme,rme+1))<56320||ame>57343?x_?ZG(nme,rme):tme:x_?QG(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},tq=eq$1(!0),nq=LW.set,rq=LW.getterFor("String Iterator");HG(String,"String",function(x_){nq(this,{type:"String Iterator",string:zU(x_),index:0})},function(){var x_,eme=rq(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=tq($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var oq=EW.f("iterator"),iq=fj(function(x_){function eme($P){return typeof XG=="function"&&typeof oq=="symbol"?(x_.exports=eme=function(tme){return typeof tme},x_.exports.default=x_.exports,x_.exports.__esModule=!0):(x_.exports=eme=function(tme){return tme&&typeof XG=="function"&&tme.constructor===XG&&tme!==XG.prototype?"symbol":typeof tme},x_.exports.default=x_.exports,x_.exports.__esModule=!0),eme($P)}x_.exports=eme,x_.exports.default=x_.exports,x_.exports.__esModule=!0}),aq=function(x_){return x_&&x_.__esModule&&Object.prototype.hasOwnProperty.call(x_,"default")?x_.default:x_}(iq),uq=aI.EXISTS,sq=LN.f,lq=Function.prototype,cq=Bj(lq.toString),fq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,dq=Bj(fq.exec);yj&&!uq&&sq(lq,"name",{configurable:!0,get:function(){try{return dq(fq,cq(this))[1]}catch{return""}}});var pq=function(){function x_(){this.tag="select",this.width=80}return x_.prototype.isActive=function(eme){return!1},x_.prototype.getValue=function(eme){var $P=this.mark,tme=Bf.marks(eme);return tme&&tme[$P]?tme[$P]:""},x_.prototype.isDisabled=function(eme){return eme.selection==null||(this.mark,!!sM(Bf.nodes(eme,{match:function($P){return QO.getNodeType($P)==="pre"||!!Bf.isVoid(eme,$P)},universal:!0}),1)[0])},x_.prototype.exec=function(eme,$P){var tme=this.mark;$P?eme.addMark(tme,$P):eme.removeMark(tme)},x_}(),hq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("fontSize.title"),$P.iconSvg=RM,$P.mark="fontSize",$P}return rM(eme,x_),eme.prototype.getOptions=function($P){var tme=[],ame=$P.getMenuConfig(this.mark).fontSizeList,nme=ame===void 0?[]:ame;tme.push({text:HP("fontSize.default"),value:""}),nme.forEach(function(ime){if(typeof ime=="string")tme.push({text:ime,value:ime});else if(aq(ime)==="object"){var ome=ime.name,lme=ime.value;tme.push({text:ome,value:lme})}});var rme=this.getValue($P);return tme.forEach(function(ime){ime.value===rme?ime.selected=!0:delete ime.selected}),tme},eme}(pq),gq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("fontFamily.title"),$P.iconSvg=MM,$P.mark="fontFamily",$P.selectPanelWidth=150,$P}return rM(eme,x_),eme.prototype.getOptions=function($P){var tme=[],ame=$P.getMenuConfig(this.mark).fontFamilyList,nme=ame===void 0?[]:ame;tme.push({text:HP("fontFamily.default"),value:""}),nme.forEach(function(ime){if(typeof ime=="string")tme.push({text:ime,value:ime,styleForRenderMenuList:{"font-family":ime}});else if(aq(ime)==="object"){var ome=ime.name,lme=ime.value;tme.push({text:ome,value:lme,styleForRenderMenuList:{"font-family":lme}})}});var rme=this.getValue($P);return tme.forEach(function(ime){ime.value===rme?ime.selected=!0:delete ime.selected}),tme},eme}(pq),vq={renderStyle:function(x_,eme){var $P=x_,tme=$P.fontSize,ame=$P.fontFamily,nme=eme;return tme&&Kz(nme,{fontSize:tme}),ame&&Kz(nme,{fontFamily:ame}),nme},styleToHtml:function(x_,eme){if(!ed.isText(x_))return eme;var $P,tme=x_,ame=tme.fontSize,nme=tme.fontFamily;return ame||nme?((ZR(eme)||QR($P=Mp(eme))!=="span")&&($P=Mp("<span>"+eme+"</span>")),ame&&$P.css("font-size",ame),nme&&$P.css("font-family",nme),JR($P)):eme},preParseHtml:[vH],parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!ed.isText(eme))return eme;var ame=eme,nme=$P.getMenuConfig("fontSize").fontSizeList,rme=nme===void 0?[]:nme,ime=eM(tme,"font-size"),ome=rme.find(function(ume){return ume.value&&ume.value===ime})||rme.includes(ime);ime&&ome&&(ame.fontSize=ime);var lme=$P.getMenuConfig("fontFamily").fontFamilyList,sme=lme===void 0?[]:lme,cme=eM(tme,"font-family").replace(/"/g,""),dme=sme.find(function(ume){return ume.value&&ume.value===cme})||sme.includes(cme);return cme&&dme&&(ame.fontFamily=cme),ame},menus:[{key:"fontSize",factory:function(){return new hq},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new gq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},yq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(x_){var eme=Mp(x_),$P=eM(eme,"padding-left");return/\dem/.test($P)&&eme.css("text-indent","2em"),/\dpx/.test($P)&&parseInt($P,10)%32==0&&eme.css("text-indent","2em"),eme[0]}},mq=function(){function x_(){this.tag="button"}return x_.prototype.getValue=function(eme){var $P=sM(Bf.nodes(eme,{match:function(ame){return!!ame.indent},universal:!0}),1),tme=$P[0];return tme==null?"":sM(tme,1)[0].indent||""},x_.prototype.isActive=function(eme){return!1},x_.prototype.getMatchNode=function(eme){var $P=sM(Bf.nodes(eme,{match:function(tme){var ame=QO.getNodeType(tme);return ame==="paragraph"||!!ame.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return $P==null?null:$P[0]},x_}(),bq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("indent.decrease"),$P.iconSvg=zM,$P}return rM(eme,x_),eme.prototype.isDisabled=function($P){var tme=this.getMatchNode($P);return tme==null||!tme.indent},eme.prototype.exec=function($P,tme){md.setNodes($P,{indent:null},{match:function(ame){return Sf.isElement(ame)}})},eme}(mq),wq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("indent.increase"),$P.iconSvg=$M,$P}return rM(eme,x_),eme.prototype.isDisabled=function($P){var tme=this.getMatchNode($P);return tme==null||!!tme.indent},eme.prototype.exec=function($P,tme){md.setNodes($P,{indent:"2em"},{match:function(ame){return Sf.isElement(ame)},mode:"highest"})},eme}(mq),Eq={renderStyle:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.indent,tme=eme;return $P&&Kz(tme,{textIndent:$P}),tme},styleToHtml:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.indent;if(!$P)return eme;var tme=Mp(eme);return tme.css("text-indent",$P),JR(tme)},preParseHtml:[yq],parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!Sf.isElement(eme))return eme;var ame=eme,nme=eM(tme,"text-indent"),rme=parseInt(nme,10);return nme&&rme>0&&(ame.indent=nme),ame},menus:[{key:"indent",factory:function(){return new wq}},{key:"delIndent",factory:function(){return new bq}}]},Dq=function(){function x_(){this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.getMatchNode=function(eme){var $P=sM(Bf.nodes(eme,{match:function(tme){var ame=QO.getNodeType(tme);return ame==="paragraph"||ame==="blockquote"||!!ame.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return $P==null?null:$P[0]},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!QO.getSelectedElems(eme).some(function($P){if(Bf.isVoid(eme,$P)&&Bf.isBlock(eme,$P))return!0;var tme=$P.type;return!!["pre","code"].includes(tme)||void 0})},x_}(),Sq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("justify.left"),$P.iconSvg=HM,$P}return rM(eme,x_),eme.prototype.exec=function($P,tme){md.setNodes($P,{textAlign:"left"},{match:function(ame){return Sf.isElement(ame)&&!$P.isInline(ame)}})},eme}(Dq),xq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("justify.right"),$P.iconSvg=VM,$P}return rM(eme,x_),eme.prototype.exec=function($P,tme){md.setNodes($P,{textAlign:"right"},{match:function(ame){return Sf.isElement(ame)&&!$P.isInline(ame)}})},eme}(Dq),Cq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("justify.center"),$P.iconSvg=UM,$P}return rM(eme,x_),eme.prototype.exec=function($P,tme){md.setNodes($P,{textAlign:"center"},{match:function(ame){return Sf.isElement(ame)&&!$P.isInline(ame)}})},eme}(Dq),Aq=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.title=HP("justify.justify"),$P.iconSvg=WM,$P}return rM(eme,x_),eme.prototype.exec=function($P,tme){md.setNodes($P,{textAlign:"justify"},{match:function(ame){return Sf.isElement(ame)&&!$P.isInline(ame)}})},eme}(Dq),Oq={renderStyle:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.textAlign,tme=eme;return $P&&Kz(tme,{textAlign:$P}),tme},styleToHtml:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.textAlign;if(!$P)return eme;var tme=Mp(eme);return tme.css("text-align",$P),JR(tme)},parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!Sf.isElement(eme))return eme;var ame=eme,nme=eM(tme,"text-align");return nme&&(ame.textAlign=nme),ame},menus:[{key:"justifyLeft",factory:function(){return new Sq}},{key:"justifyRight",factory:function(){return new xq}},{key:"justifyCenter",factory:function(){return new Cq}},{key:"justifyJustify",factory:function(){return new Aq}}]},kq=function(){function x_(){this.title=HP("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return x_.prototype.getOptions=function(eme){var $P=[],tme=eme.getMenuConfig("lineHeight").lineHeightList,ame=tme===void 0?[]:tme;$P.push({text:HP("lineHeight.default"),value:""}),ame.forEach(function(rme){$P.push({text:rme,value:rme})});var nme=this.getValue(eme);return $P.forEach(function(rme){rme.value===nme?rme.selected=!0:delete rme.selected}),$P},x_.prototype.getMatchNode=function(eme){var $P=sM(Bf.nodes(eme,{match:function(tme){var ame=QO.getNodeType(tme);return!!ame.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(ame)},universal:!0,mode:"highest"}),1)[0];return $P==null?null:$P[0]},x_.prototype.isActive=function(eme){return!1},x_.prototype.getValue=function(eme){var $P=this.getMatchNode(eme);return $P==null?"":Sf.isElement($P)&&$P.lineHeight||""},x_.prototype.isDisabled=function(eme){return eme.selection==null||this.getMatchNode(eme)==null},x_.prototype.exec=function(eme,$P){md.setNodes(eme,{lineHeight:$P.toString()},{mode:"highest"})},x_}(),Bq={renderStyle:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.lineHeight,tme=eme;return $P&&Kz(tme,{lineHeight:$P}),tme},styleToHtml:function(x_,eme){if(!Sf.isElement(x_))return eme;var $P=x_.lineHeight;if(!$P)return eme;var tme=Mp(eme);return tme.css("line-height",$P),JR(tme)},parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!Sf.isElement(eme))return eme;var ame=eme,nme=$P.getMenuConfig("lineHeight").lineHeightList,rme=nme===void 0?[]:nme,ime=eM(tme,"line-height");return ime&&rme.includes(ime)&&(ame.lineHeight=ime),ame},menus:[{key:"lineHeight",factory:function(){return new kq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Fq=function(){function x_(){this.title=HP("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null},x_.prototype.exec=function(eme,$P){typeof eme.redo=="function"&&eme.redo()},x_}(),Tq=function(){function x_(){this.title=HP("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null},x_.prototype.exec=function(eme,$P){typeof eme.undo=="function"&&eme.undo()},x_}(),_q$1={menus:[{key:"redo",factory:function(){return new Fq}},{key:"undo",factory:function(){return new Tq}}]},Pq={type:"divider",renderElem:function(x_,eme,$P){return pg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:QO.isNodeSelected($P,x_)?"true":""},style:{},on:{mousedown:function(tme){return tme.preventDefault()}}},[pg("hr")])}},jq=function(){function x_(){this.title=HP("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!QO.getSelectedElems(eme).some(function($P){if(eme.isVoid($P))return!0;var tme=QO.getNodeType($P);return tme==="table"||tme==="pre"||void 0})},x_.prototype.exec=function(eme,$P){md.insertNodes(eme,{type:"divider",children:[{text:""}]},{mode:"highest"})},x_}(),Nq={renderElems:[Pq],elemsToHtml:[{type:"divider",elemToHtml:function(x_,eme){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new jq}}],editorPlugin:function(x_){var eme=x_.isVoid,$P=x_.normalizeNode,tme=x_;return tme.isVoid=function(ame){return ame.type==="divider"||eme(ame)},tme.normalizeNode=function(ame){var nme=sM(ame,2),rme=nme[0],ime=nme[1];if(QO.getNodeType(rme)!=="divider")return $P([rme,ime]);QO.isLastNode(tme,rme)&&md.insertNodes(tme,QO.genEmptyParagraph(),{at:[ime[0]+1]})},tme}},Iq=iL.map;LI({target:"Array",proto:!0,forced:!uL("map")},{map:function(x_){return Iq(this,x_,arguments.length>1?arguments[1]:void 0)}});var Lq=Bj([].join),Rq=Nj!=Object,Mq=EM("join",",");LI({target:"Array",proto:!0,forced:Rq||!Mq},{join:function(x_){return Lq(Rj(this),x_===void 0?",":x_)}});var zq=function(){function x_(){this.title=HP("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return x_.prototype.getSelectCodeElem=function(eme){var $P=QO.getSelectedNodeByType(eme,"code");if($P==null)return null;var tme=QO.getParentNode(eme,$P);return tme==null||QO.getNodeType(tme)!=="pre"?null:$P},x_.prototype.getValue=function(eme){var $P=this.getSelectCodeElem(eme);return $P==null?"":$P.language||""},x_.prototype.isActive=function(eme){return!!this.getSelectCodeElem(eme)},x_.prototype.isDisabled=function(eme){if(eme.selection==null)return!0;var $P=QO.getSelectedElems(eme);return!!$P.some(function(tme){return eme.isVoid(tme)})||!$P.some(function(tme){var ame=QO.getNodeType(tme);if(ame==="pre"||ame==="paragraph")return!0})},x_.prototype.exec=function(eme,$P){this.isActive(eme)?this.changeToPlainText(eme):this.changeToCodeBlock(eme,$P.toString())},x_.prototype.changeToPlainText=function(eme){var $P=this.getSelectCodeElem(eme);if($P!=null){var tme=Nf.string($P);md.removeNodes(eme,{mode:"highest"});var ame=tme.split(`
`).map(function(nme){return{type:"paragraph",children:[{text:nme}]}});md.insertNodes(eme,ame,{mode:"highest"})}},x_.prototype.changeToCodeBlock=function(eme,$P){var tme,ame,nme=[],rme=Bf.nodes(eme,{match:function(cme){return eme.children.includes(cme)},universal:!0});try{for(var ime=uM(rme),ome=ime.next();!ome.done;ome=ime.next()){var lme=sM(ome.value,1)[0];lme&&nme.push(Nf.string(lme))}}catch(cme){tme={error:cme}}finally{try{ome&&!ome.done&&(ame=ime.return)&&ame.call(ime)}finally{if(tme)throw tme.error}}md.removeNodes(eme,{mode:"highest"});var sme={type:"pre",children:[{type:"code",language:$P,children:[{text:nme.join(`
`)}]}]};md.insertNodes(eme,sme,{mode:"highest"})},x_}(),$q={key:"codeBlock",factory:function(){return new zq}};LI({target:"String",proto:!0,forced:hM("anchor")},{anchor:function(x_){return pM(this,"a","name",x_)}}),JL("match",function(x_,eme,$P){return[function(tme){var ame=Lj(this),nme=tme==null?void 0:oN(tme,x_);return nme?bj(nme,tme,ame):new RegExp(tme)[x_](dL(ame))},function(tme){var ame=jN(this),nme=dL(tme),rme=$P(eme,ame,nme);if(rme.done)return rme.value;if(!ame.global)return pR(ame,nme);var ime=ame.unicode;ame.lastIndex=0;for(var ome,lme=[],sme=0;(ome=pR(ame,nme))!==null;){var cme=dL(ome[0]);lme[sme]=cme,cme===""&&(ame.lastIndex=oR(nme,gI(ame.lastIndex),ime)),sme++}return sme===0?null:lme}]});var Hq={type:"pre",renderElem:function(x_,eme,$P){return Pg("pre",null,eme)}},Vq={type:"code",renderElem:function(x_,eme,$P){return Pg("code",null,eme)}},Uq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);return(eme=eme.filter(function(ame){return QO.getNodeType(ame)==="code"})).length===0&&(eme=[{type:"code",language:"",children:[{text:tme[0].textContent||""}]}]),{type:"pre",children:eme.filter(function(ame){return QO.getNodeType(ame)==="code"})}}},Wq={menus:[$q],editorPlugin:function(x_){var eme=x_.insertBreak,$P=x_.normalizeNode,tme=x_.insertData;x_.insertNode;var ame=x_;return ame.insertBreak=function(){var nme=QO.getSelectedNodeByType(ame,"code");if(nme!=null){var rme=function(lme,sme){var cme=sme.selection;if(cme==null)return"";var dme=Nf.string(lme),ume=cme.anchor.offset,fme=dme.slice(0,ume).split(`
`),pme=fme.length;return pme===0?"":fme[pme-1]}(nme,ame);if(rme){var ime=rme.match(/^\s+/);if(ime!=null&&ime[0]!=null){var ome=ime[0];return void ame.insertText(`
`+ome)}}ame.insertText(`
`)}else eme()},ame.normalizeNode=function(nme){var rme=sM(nme,2),ime=rme[0],ome=rme[1],lme=QO.getNodeType(ime);return lme==="code"&&ome.length<=1&&md.setNodes(ame,{type:"paragraph"},{at:ome}),lme==="pre"&&(QO.isLastNode(ame,ime)&&md.insertNodes(ame,QO.genEmptyParagraph(),{at:[ome[0]+1]}),QO.getNodeType(ime.children[0])!=="code"&&(md.unwrapNodes(ame),md.setNodes(ame,{type:"paragraph"},{mode:"highest"}))),$P([ime,ome])},ame.insertData=function(nme){if(QO.getSelectedNodeByType(ame,"code")!=null){var rme=nme.getData("text/plain");Bf.insertText(ame,rme)}else tme(nme)},ame},renderElems:[Hq,Vq],elemsToHtml:[{type:"code",elemToHtml:function(x_,eme){return"<code>"+eme+"</code>"}},{type:"pre",elemToHtml:function(x_,eme){return"<pre>"+eme+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(x_){var eme=Mp(x_);if(QR(eme)!=="code")return x_;var $P=eme.find("xmp");if($P.length===0)return x_;var tme=$P.text();return $P.remove(),eme.text(tme),eme[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(x_,eme,$P){return{type:"code",language:"",children:[{text:Mp(x_)[0].textContent||""}]}}},Uq]},Gq=function(){function x_(){this.title=HP("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return eme.isFullScreen},x_.prototype.isDisabled=function(eme){return!1},x_.prototype.exec=function(eme,$P){eme.isFullScreen?eme.unFullScreen():eme.fullScreen()},x_}(),qq={menus:[{key:"fullScreen",factory:function(){return new Gq}}]},Kq=function(){function x_(){this.title=HP("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!!qf.isExpanded($P)},x_.prototype.exec=function(eme,$P){var tme=eme.selection;if(tme!=null){var ame=[tme.anchor.path[0]];md.insertNodes(eme,{type:"paragraph",children:[{text:""}]},{at:ame}),eme.select(Bf.start(eme,ame))}},x_}(),Yq=[nz,e$,vq,Eq,Oq,Bq,J$,Nq,hH,E$,Wq,dH,Vz,cM,nH,_q$1,qq,{menus:[{key:"enter",factory:function(){return new Kq}}]}];MP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),MP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Xq=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zq(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var Jq,Qq,eK=function(x_){return x_&&x_.Math==Math&&x_},tK=eK(typeof globalThis=="object"&&globalThis)||eK(typeof window=="object"&&window)||eK(typeof self=="object"&&self)||eK(typeof Xq=="object"&&Xq)||function(){return this}()||Function("return this")(),nK=Function.prototype,rK=nK.bind,oK=nK.call,iK=rK&&rK.bind(oK),aK=rK?function(x_){return x_&&iK(oK,x_)}:function(x_){return x_&&function(){return oK.apply(x_,arguments)}},uK=function(x_){try{return!!x_()}catch{return!0}},sK=aK({}.toString),lK=aK("".slice),cK=function(x_){return lK(sK(x_),8,-1)},fK=tK.Object,dK=aK("".split),pK=uK(function(){return!fK("z").propertyIsEnumerable(0)})?function(x_){return cK(x_)=="String"?dK(x_,""):fK(x_)}:fK,hK=tK.TypeError,gK=function(x_){if(x_==null)throw hK("Can't call method on "+x_);return x_},vK=function(x_){return pK(gK(x_))},yK=Object.defineProperty,mK=function(x_,eme){try{yK(tK,x_,{value:eme,configurable:!0,writable:!0})}catch{tK[x_]=eme}return eme},bK=tK["__core-js_shared__"]||mK("__core-js_shared__",{}),wK=Zq(function(x_){(x_.exports=function(eme,$P){return bK[eme]||(bK[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),EK=tK.Object,DK=function(x_){return EK(gK(x_))},SK=aK({}.hasOwnProperty),xK=Object.hasOwn||function(x_,eme){return SK(DK(x_),eme)},CK=0,AK=Math.random(),OK=aK(1 .toString),kK=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+OK(++CK+AK,36)},BK=function(x_){return typeof x_=="function"},FK=function(x_){return BK(x_)?x_:void 0},TK=function(x_,eme){return arguments.length<2?FK(tK[x_]):tK[x_]&&tK[x_][eme]},_K=TK("navigator","userAgent")||"",PK=tK.process,jK=tK.Deno,NK=PK&&PK.versions||jK&&jK.version,IK=NK&&NK.v8;IK&&(Qq=(Jq=IK.split("."))[0]>0&&Jq[0]<4?1:+(Jq[0]+Jq[1])),!Qq&&_K&&(!(Jq=_K.match(/Edge\/(\d+)/))||Jq[1]>=74)&&(Jq=_K.match(/Chrome\/(\d+)/))&&(Qq=+Jq[1]);var LK,RK=Qq,MK=!!Object.getOwnPropertySymbols&&!uK(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&RK&&RK<41}),zK=MK&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$K=wK("wks"),HK=tK.Symbol,VK=HK&&HK.for,UK=zK?HK:HK&&HK.withoutSetter||kK,WK=function(x_){if(!xK($K,x_)||!MK&&typeof $K[x_]!="string"){var eme="Symbol."+x_;MK&&xK(HK,x_)?$K[x_]=HK[x_]:$K[x_]=zK&&VK?VK(eme):UK(eme)}return $K[x_]},GK=function(x_){return typeof x_=="object"?x_!==null:BK(x_)},qK=tK.String,KK=tK.TypeError,YK=function(x_){if(GK(x_))return x_;throw KK(qK(x_)+" is not an object")},XK=!uK(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ZK=tK.document,JK=GK(ZK)&&GK(ZK.createElement),QK=function(x_){return JK?ZK.createElement(x_):{}},eY=!XK&&!uK(function(){return Object.defineProperty(QK("div"),"a",{get:function(){return 7}}).a!=7}),tY=Function.prototype.call,nY=tY.bind?tY.bind(tY):function(){return tY.apply(tY,arguments)},rY=aK({}.isPrototypeOf),oY=tK.Object,iY=zK?function(x_){return typeof x_=="symbol"}:function(x_){var eme=TK("Symbol");return BK(eme)&&rY(eme.prototype,oY(x_))},aY=tK.String,uY=function(x_){try{return aY(x_)}catch{return"Object"}},sY=tK.TypeError,lY=function(x_){if(BK(x_))return x_;throw sY(uY(x_)+" is not a function")},cY=function(x_,eme){var $P=x_[eme];return $P==null?void 0:lY($P)},fY=tK.TypeError,dY=tK.TypeError,pY=WK("toPrimitive"),hY=function(x_){var eme=function($P,tme){if(!GK($P)||iY($P))return $P;var ame,nme=cY($P,pY);if(nme){if(ame=nY(nme,$P,tme),!GK(ame)||iY(ame))return ame;throw dY("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(BK(ome=rme.toString)&&!GK(lme=nY(ome,rme))||BK(ome=rme.valueOf)&&!GK(lme=nY(ome,rme)))return lme;throw fY("Can't convert object to primitive value")}($P)}(x_,"string");return iY(eme)?eme:eme+""},gY=tK.TypeError,vY=Object.defineProperty,yY={f:XK?vY:function(x_,eme,$P){if(YK(x_),eme=hY(eme),YK($P),eY)try{return vY(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw gY("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},mY=Math.ceil,bY=Math.floor,wY=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?bY:mY)(eme)},EY=Math.max,DY=Math.min,SY=function(x_,eme){var $P=wY(x_);return $P<0?EY($P+eme,0):DY($P,eme)},xY=Math.min,CY=function(x_){return x_>0?xY(wY(x_),9007199254740991):0},AY=function(x_){return CY(x_.length)},OY=function(x_){return function(eme,$P,tme){var ame,nme=vK(eme),rme=AY(nme),ime=SY(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},kY={includes:OY(!0),indexOf:OY(!1)},BY={},FY=kY.indexOf,TY=aK([].push),_Y=function(x_,eme){var $P,tme=vK(x_),ame=0,nme=[];for($P in tme)!xK(BY,$P)&&xK(tme,$P)&&TY(nme,$P);for(;eme.length>ame;)xK(tme,$P=eme[ame++])&&(~FY(nme,$P)||TY(nme,$P));return nme},PY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jY=Object.keys||function(x_){return _Y(x_,PY)},NY=XK?Object.defineProperties:function(x_,eme){YK(x_);for(var $P,tme=vK(eme),ame=jY(eme),nme=ame.length,rme=0;nme>rme;)yY.f(x_,$P=ame[rme++],tme[$P]);return x_},IY=TK("document","documentElement"),LY=wK("keys"),RY=function(x_){return LY[x_]||(LY[x_]=kK(x_))},MY=RY("IE_PROTO"),zY=function(){},$Y=function(x_){return"<script>"+x_+"<\/script>"},HY=function(x_){x_.write($Y("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},VY=function(){try{LK=new ActiveXObject("htmlfile")}catch{}var x_,eme;VY=typeof document<"u"?document.domain&&LK?HY(LK):((eme=QK("iframe")).style.display="none",IY.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write($Y("document.F=Object")),x_.close(),x_.F):HY(LK);for(var $P=PY.length;$P--;)delete VY.prototype[PY[$P]];return VY()};BY[MY]=!0;var UY=Object.create||function(x_,eme){var $P;return x_!==null?(zY.prototype=YK(x_),$P=new zY,zY.prototype=null,$P[MY]=x_):$P=VY(),eme===void 0?$P:NY($P,eme)},WY=WK("unscopables"),GY=Array.prototype;GY[WY]==null&&yY.f(GY,WY,{configurable:!0,value:UY(null)});var qY=function(x_){GY[WY][x_]=!0},KY={},YY=aK(Function.toString);BK(bK.inspectSource)||(bK.inspectSource=function(x_){return YY(x_)});var XY,ZY,JY,QY=bK.inspectSource,eX=tK.WeakMap,tX=BK(eX)&&/native code/.test(QY(eX)),nX=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},rX=XK?function(x_,eme,$P){return yY.f(x_,eme,nX(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},oX=tK.TypeError,iX=tK.WeakMap;if(tX||bK.state){var aX=bK.state||(bK.state=new iX),uX=aK(aX.get),sX=aK(aX.has),lX=aK(aX.set);XY=function(x_,eme){if(sX(aX,x_))throw new oX("Object already initialized");return eme.facade=x_,lX(aX,x_,eme),eme},ZY=function(x_){return uX(aX,x_)||{}},JY=function(x_){return sX(aX,x_)}}else{var cX=RY("state");BY[cX]=!0,XY=function(x_,eme){if(xK(x_,cX))throw new oX("Object already initialized");return eme.facade=x_,rX(x_,cX,eme),eme},ZY=function(x_){return xK(x_,cX)?x_[cX]:{}},JY=function(x_){return xK(x_,cX)}}var fX,dX,pX,hX={set:XY,get:ZY,has:JY,enforce:function(x_){return JY(x_)?ZY(x_):XY(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!GK(eme)||($P=ZY(eme)).type!==x_)throw oX("Incompatible receiver, "+x_+" required");return $P}}},gX={}.propertyIsEnumerable,vX=Object.getOwnPropertyDescriptor,yX={f:vX&&!gX.call({1:2},1)?function(x_){var eme=vX(this,x_);return!!eme&&eme.enumerable}:gX},mX=Object.getOwnPropertyDescriptor,bX={f:XK?mX:function(x_,eme){if(x_=vK(x_),eme=hY(eme),eY)try{return mX(x_,eme)}catch{}if(xK(x_,eme))return nX(!nY(yX.f,x_,eme),x_[eme])}},wX=Function.prototype,EX=XK&&Object.getOwnPropertyDescriptor,DX=xK(wX,"name"),SX={EXISTS:DX,PROPER:DX&&(function(){}).name==="something",CONFIGURABLE:DX&&(!XK||XK&&EX(wX,"name").configurable)},xX=Zq(function(x_){var eme=SX.CONFIGURABLE,$P=hX.get,tme=hX.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;BK(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xK(ime,"name")||eme&&ime.name!==ume)&&rX(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==tK?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:rX(nme,rme,ime)):cme?nme[rme]=ime:mK(rme,ime)})(Function.prototype,"toString",function(){return BK(this)&&$P(this).source||QY(this)})}),CX=PY.concat("length","prototype"),AX={f:Object.getOwnPropertyNames||function(x_){return _Y(x_,CX)}},OX={f:Object.getOwnPropertySymbols},kX=aK([].concat),BX=TK("Reflect","ownKeys")||function(x_){var eme=AX.f(YK(x_)),$P=OX.f;return $P?kX(eme,$P(x_)):eme},FX=function(x_,eme){for(var $P=BX(eme),tme=yY.f,ame=bX.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];xK(x_,rme)||tme(x_,rme,ame(eme,rme))}},TX=/#|\.prototype\./,_X=function(x_,eme){var $P=jX[PX(x_)];return $P==IX||$P!=NX&&(BK(eme)?uK(eme):!!eme)},PX=_X.normalize=function(x_){return String(x_).replace(TX,".").toLowerCase()},jX=_X.data={},NX=_X.NATIVE="N",IX=_X.POLYFILL="P",LX=_X,RX=bX.f,MX=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?tK:lme?tK[ime]||mK(ime,{}):(tK[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=RX($P,tme))&&rme.value:$P[tme],!LX(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;FX(nme,ame)}(x_.sham||ame&&ame.sham)&&rX(nme,"sham",!0),xX($P,tme,nme,x_)}},zX=!uK(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),$X=RY("IE_PROTO"),HX=tK.Object,VX=HX.prototype,UX=zX?HX.getPrototypeOf:function(x_){var eme=DK(x_);if(xK(eme,$X))return eme[$X];var $P=eme.constructor;return BK($P)&&eme instanceof $P?$P.prototype:eme instanceof HX?VX:null},WX=WK("iterator"),GX=!1;[].keys&&("next"in(pX=[].keys())?(dX=UX(UX(pX)))!==Object.prototype&&(fX=dX):GX=!0);var qX=fX==null||uK(function(){var x_={};return fX[WX].call(x_)!==x_});qX&&(fX={}),BK(fX[WX])||xX(fX,WX,function(){return this});var KX={IteratorPrototype:fX,BUGGY_SAFARI_ITERATORS:GX},YX=yY.f,XX=WK("toStringTag"),ZX=function(x_,eme,$P){x_&&!xK(x_=$P?x_:x_.prototype,XX)&&YX(x_,XX,{configurable:!0,value:eme})},JX=KX.IteratorPrototype,QX=function(){return this},eZ=tK.String,tZ=tK.TypeError,nZ=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=aK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return YK(tme),function(nme){if(typeof nme=="object"||BK(nme))return nme;throw tZ("Can't set "+eZ(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),rZ=SX.PROPER,oZ=SX.CONFIGURABLE,iZ=KX.IteratorPrototype,aZ=KX.BUGGY_SAFARI_ITERATORS,uZ=WK("iterator"),sZ=function(){return this},lZ=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=UY(JX,{next:nX(1,mme)}),ZX(hme,gme,!1),KY[gme]=QX})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!aZ&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[uZ]||dme["@@iterator"]||ame&&dme[ame],fme=!aZ&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=UX(pme.call(new x_)))!==Object.prototype&&ime.next&&(UX(ime)!==iZ&&(nZ?nZ(ime,iZ):BK(ime[uZ])||xX(ime,uZ,sZ)),ZX(ime,sme,!0)),rZ&&ame=="values"&&ume&&ume.name!=="values"&&(oZ?rX(dme,"name","values"):(cme=!0,fme=function(){return nY(ume,this)})),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||MX({target:eme,proto:!0,forced:aZ||cme},ome)),dme[uZ]!==fme&&xX(dme,uZ,fme,{name:ame}),KY[eme]=fme,ome},cZ=hX.set,fZ=hX.getterFor("Array Iterator"),dZ=lZ(Array,"Array",function(x_,eme){cZ(this,{type:"Array Iterator",target:vK(x_),index:0,kind:eme})},function(){var x_=fZ(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values");KY.Arguments=KY.Array,qY("keys"),qY("values"),qY("entries");var pZ={};pZ[WK("toStringTag")]="z";var hZ=String(pZ)==="[object z]",gZ=WK("toStringTag"),vZ=tK.Object,yZ=cK(function(){return arguments}())=="Arguments",mZ=hZ?cK:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=vZ(x_),gZ))=="string"?$P:yZ?cK(eme):(tme=cK(eme))=="Object"&&BK(eme.callee)?"Arguments":tme},bZ=hZ?{}.toString:function(){return"[object "+mZ(this)+"]"};hZ||xX(Object.prototype,"toString",bZ,{unsafe:!0});var wZ=tK.String,EZ=function(x_){if(mZ(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return wZ(x_)},DZ=aK("".charAt),SZ=aK("".charCodeAt),xZ=aK("".slice),CZ=function(x_){return function(eme,$P){var tme,ame,nme=EZ(gK(eme)),rme=wY($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=SZ(nme,rme))<55296||tme>56319||rme+1===ime||(ame=SZ(nme,rme+1))<56320||ame>57343?x_?DZ(nme,rme):tme:x_?xZ(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},AZ={codeAt:CZ(!1),charAt:CZ(!0)},OZ=AZ.charAt,kZ=hX.set,BZ=hX.getterFor("String Iterator");lZ(String,"String",function(x_){kZ(this,{type:"String Iterator",string:EZ(x_),index:0})},function(){var x_,eme=BZ(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=OZ($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var FZ=function(x_,eme,$P){for(var tme in eme)xX(x_,tme,eme[tme],$P);return x_},TZ=tK.Array,_Z=Math.max,PZ=AX.f,jZ=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NZ={f:function(x_){return jZ&&cK(x_)=="Window"?function(eme){try{return PZ(eme)}catch{return function(tme,ame,nme){for(var rme,ime,ome,lme,sme=AY(tme),cme=SY(void 0,sme),dme=SY(sme,sme),ume=TZ(_Z(dme-cme,0)),fme=0;cme<dme;cme++,fme++)rme=ume,ime=fme,ome=tme[cme],(lme=hY(ime))in rme?yY.f(rme,lme,nX(0,ome)):rme[lme]=ome;return ume.length=fme,ume}(jZ)}}(x_):PZ(vK(x_))}},IZ=uK(function(){if(typeof ArrayBuffer=="function"){var x_=new ArrayBuffer(8);Object.isExtensible(x_)&&Object.defineProperty(x_,"a",{value:8})}}),LZ=Object.isExtensible,RZ=uK(function(){LZ(1)})||IZ?function(x_){return!!GK(x_)&&(!IZ||cK(x_)!="ArrayBuffer")&&(!LZ||LZ(x_))}:LZ,MZ=!uK(function(){return Object.isExtensible(Object.preventExtensions({}))}),zZ=Zq(function(x_){var eme=yY.f,$P=!1,tme=kK("meta"),ame=0,nme=function(ime){eme(ime,tme,{value:{objectID:"O"+ame++,weakData:{}}})},rme=x_.exports={enable:function(){rme.enable=function(){},$P=!0;var ime=AX.f,ome=aK([].splice),lme={};lme[tme]=1,ime(lme).length&&(AX.f=function(sme){for(var cme=ime(sme),dme=0,ume=cme.length;dme<ume;dme++)if(cme[dme]===tme){ome(cme,dme,1);break}return cme},MX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NZ.f}))},fastKey:function(ime,ome){if(!GK(ime))return typeof ime=="symbol"?ime:(typeof ime=="string"?"S":"P")+ime;if(!xK(ime,tme)){if(!RZ(ime))return"F";if(!ome)return"E";nme(ime)}return ime[tme].objectID},getWeakData:function(ime,ome){if(!xK(ime,tme)){if(!RZ(ime))return!0;if(!ome)return!1;nme(ime)}return ime[tme].weakData},onFreeze:function(ime){return MZ&&$P&&RZ(ime)&&!xK(ime,tme)&&nme(ime),ime}};BY[tme]=!0}),$Z=aK(aK.bind),HZ=function(x_,eme){return lY(x_),eme===void 0?x_:$Z?$Z(x_,eme):function(){return x_.apply(eme,arguments)}},VZ=WK("iterator"),UZ=Array.prototype,WZ=WK("iterator"),GZ=function(x_){if(x_!=null)return cY(x_,WZ)||cY(x_,"@@iterator")||KY[mZ(x_)]},qZ=tK.TypeError,KZ=function(x_,eme,$P){var tme,ame;YK(x_);try{if(!(tme=cY(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=nY(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return YK(tme),$P},YZ=tK.TypeError,XZ=function(x_,eme){this.stopped=x_,this.result=eme},ZZ=XZ.prototype,JZ=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme,cme=$P&&$P.that,dme=!(!$P||!$P.AS_ENTRIES),ume=!(!$P||!$P.IS_ITERATOR),fme=!(!$P||!$P.INTERRUPTED),pme=HZ(eme,cme),hme=function(mme){return tme&&KZ(tme,"normal",mme),new XZ(!0,mme)},bme=function(mme){return dme?(YK(mme),fme?pme(mme[0],mme[1],hme):pme(mme[0],mme[1])):fme?pme(mme,hme):pme(mme)};if(ume)tme=x_;else{if(!(ame=GZ(x_)))throw YZ(uY(x_)+" is not iterable");if((sme=ame)!==void 0&&(KY.Array===sme||UZ[VZ]===sme)){for(nme=0,rme=AY(x_);rme>nme;nme++)if((ime=bme(x_[nme]))&&rY(ZZ,ime))return ime;return new XZ(!1)}tme=function(mme,vme){var gme=arguments.length<2?GZ(mme):vme;if(lY(gme))return YK(nY(gme,mme));throw qZ(uY(mme)+" is not iterable")}(x_,ame)}for(ome=tme.next;!(lme=nY(ome,tme)).done;){try{ime=bme(lme.value)}catch(mme){KZ(tme,"throw",mme)}if(typeof ime=="object"&&ime&&rY(ZZ,ime))return ime}return new XZ(!1)},QZ=tK.TypeError,eJ=function(x_,eme){if(rY(eme,x_))return x_;throw QZ("Incorrect invocation")},tJ=WK("iterator"),nJ=!1;try{var rJ=0,oJ={next:function(){return{done:!!rJ++}},return:function(){nJ=!0}};oJ[tJ]=function(){return this},Array.from(oJ,function(){throw 2})}catch{}var iJ=Array.isArray||function(x_){return cK(x_)=="Array"},aJ=function(){},uJ=[],sJ=TK("Reflect","construct"),lJ=/^\s*(?:class|function)\b/,cJ=aK(lJ.exec),fJ=!lJ.exec(aJ),dJ=function(x_){if(!BK(x_))return!1;try{return sJ(aJ,uJ,x_),!0}catch{return!1}},pJ=!sJ||uK(function(){var x_;return dJ(dJ.call)||!dJ(Object)||!dJ(function(){x_=!0})||x_})?function(x_){if(!BK(x_))return!1;switch(mZ(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fJ||!!cJ(lJ,QY(x_))}:dJ,hJ=WK("species"),gJ=tK.Array,vJ=function(x_,eme){return new(function($P){var tme;return iJ($P)&&(tme=$P.constructor,(pJ(tme)&&(tme===gJ||iJ(tme.prototype))||GK(tme)&&(tme=tme[hJ])===null)&&(tme=void 0)),tme===void 0?gJ:tme}(x_))(eme===0?0:eme)},yJ=aK([].push),mJ=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=DK(ome),pme=pK(fme),hme=HZ(lme,sme),bme=AY(pme),mme=0,vme=cme||vJ,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:yJ(gme,dme)}else switch(x_){case 4:return!1;case 7:yJ(gme,dme)}return nme?-1:tme||ame?ame:gme}},bJ={forEach:mJ(0),map:mJ(1),filter:mJ(2),some:mJ(3),every:mJ(4),find:mJ(5),findIndex:mJ(6),filterReject:mJ(7)},wJ=zZ.getWeakData,EJ=hX.set,DJ=hX.getterFor,SJ=bJ.find,xJ=bJ.findIndex,CJ=aK([].splice),AJ=0,OJ=function(x_){return x_.frozen||(x_.frozen=new kJ)},kJ=function(){this.entries=[]},BJ=function(x_,eme){return SJ(x_.entries,function($P){return $P[0]===eme})};kJ.prototype={get:function(x_){var eme=BJ(this,x_);if(eme)return eme[1]},has:function(x_){return!!BJ(this,x_)},set:function(x_,eme){var $P=BJ(this,x_);$P?$P[1]=eme:this.entries.push([x_,eme])},delete:function(x_){var eme=xJ(this.entries,function($P){return $P[0]===x_});return~eme&&CJ(this.entries,eme,1),!!~eme}};var FJ,TJ={getConstructor:function(x_,eme,$P,tme){var ame=x_(function(ome,lme){eJ(ome,nme),EJ(ome,{type:eme,id:AJ++,frozen:void 0}),lme!=null&&JZ(lme,ome[tme],{that:ome,AS_ENTRIES:$P})}),nme=ame.prototype,rme=DJ(eme),ime=function(ome,lme,sme){var cme=rme(ome),dme=wJ(YK(lme),!0);return dme===!0?OJ(cme).set(lme,sme):dme[cme.id]=sme,ome};return FZ(nme,{delete:function(ome){var lme=rme(this);if(!GK(ome))return!1;var sme=wJ(ome);return sme===!0?OJ(lme).delete(ome):sme&&xK(sme,lme.id)&&delete sme[lme.id]},has:function(ome){var lme=rme(this);if(!GK(ome))return!1;var sme=wJ(ome);return sme===!0?OJ(lme).has(ome):sme&&xK(sme,lme.id)}}),FZ(nme,$P?{get:function(ome){var lme=rme(this);if(GK(ome)){var sme=wJ(ome);return sme===!0?OJ(lme).get(ome):sme?sme[lme.id]:void 0}},set:function(ome,lme){return ime(this,ome,lme)}}:{add:function(ome){return ime(this,ome,!0)}}),ame}},_J=hX.enforce,PJ=!tK.ActiveXObject&&"ActiveXObject"in tK,jJ=function(x_){return function(){return x_(this,arguments.length?arguments[0]:void 0)}},NJ=function(x_,eme,$P){var tme=x_.indexOf("Map")!==-1,ame=x_.indexOf("Weak")!==-1,nme=tme?"set":"add",rme=tK[x_],ime=rme&&rme.prototype,ome=rme,lme={},sme=function(hme){var bme=aK(ime[hme]);xX(ime,hme,hme=="add"?function(mme){return bme(this,mme===0?0:mme),this}:hme=="delete"?function(mme){return!(ame&&!GK(mme))&&bme(this,mme===0?0:mme)}:hme=="get"?function(mme){return ame&&!GK(mme)?void 0:bme(this,mme===0?0:mme)}:hme=="has"?function(mme){return!(ame&&!GK(mme))&&bme(this,mme===0?0:mme)}:function(mme,vme){return bme(this,mme===0?0:mme,vme),this})};if(LX(x_,!BK(rme)||!(ame||ime.forEach&&!uK(function(){new rme().entries().next()}))))ome=$P.getConstructor(eme,x_,tme,nme),zZ.enable();else if(LX(x_,!0)){var cme=new ome,dme=cme[nme](ame?{}:-0,1)!=cme,ume=uK(function(){cme.has(1)}),fme=function(hme,bme){if(!nJ)return!1;var mme=!1;try{var vme={};vme[tJ]=function(){return{next:function(){return{done:mme=!0}}}},function(gme){new rme(gme)}(vme)}catch{}return mme}(),pme=!ame&&uK(function(){for(var hme=new rme,bme=5;bme--;)hme[nme](bme,bme);return!hme.has(-0)});fme||((ome=eme(function(hme,bme){eJ(hme,ime);var mme=function(vme,gme,yme){var _me,$me;return nZ&&BK(_me=gme.constructor)&&_me!==yme&&GK($me=_me.prototype)&&$me!==yme.prototype&&nZ(vme,$me),vme}(new rme,hme,ome);return bme!=null&&JZ(bme,mme[nme],{that:mme,AS_ENTRIES:tme}),mme})).prototype=ime,ime.constructor=ome),(ume||pme)&&(sme("delete"),sme("has"),tme&&sme("get")),(pme||dme)&&sme(nme),ame&&ime.clear&&delete ime.clear}return lme[x_]=ome,MX({global:!0,forced:ome!=rme},lme),ZX(ome,x_),ame||$P.setStrong(ome,x_,tme),ome}("WeakMap",jJ,TJ);if(tX&&PJ){FJ=TJ.getConstructor(jJ,"WeakMap",!0),zZ.enable();var IJ=NJ.prototype,LJ=aK(IJ.delete),RJ=aK(IJ.has),MJ=aK(IJ.get),zJ=aK(IJ.set);FZ(IJ,{delete:function(x_){if(GK(x_)&&!RZ(x_)){var eme=_J(this);return eme.frozen||(eme.frozen=new FJ),LJ(this,x_)||eme.frozen.delete(x_)}return LJ(this,x_)},has:function(x_){if(GK(x_)&&!RZ(x_)){var eme=_J(this);return eme.frozen||(eme.frozen=new FJ),RJ(this,x_)||eme.frozen.has(x_)}return RJ(this,x_)},get:function(x_){if(GK(x_)&&!RZ(x_)){var eme=_J(this);return eme.frozen||(eme.frozen=new FJ),RJ(this,x_)?MJ(this,x_):eme.frozen.get(x_)}return MJ(this,x_)},set:function(x_,eme){if(GK(x_)&&!RZ(x_)){var $P=_J(this);$P.frozen||($P.frozen=new FJ),RJ(this,x_)?zJ(this,x_,eme):$P.frozen.set(x_,eme)}else zJ(this,x_,eme);return this}})}var $J={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},HJ=QK("span").classList,VJ=HJ&&HJ.constructor&&HJ.constructor.prototype,UJ=VJ===Object.prototype?void 0:VJ,WJ=WK("iterator"),GJ=WK("toStringTag"),qJ=dZ.values,KJ=function(x_,eme){if(x_){if(x_[WJ]!==qJ)try{rX(x_,WJ,qJ)}catch{x_[WJ]=qJ}if(x_[GJ]||rX(x_,GJ,eme),$J[eme]){for(var $P in dZ)if(x_[$P]!==dZ[$P])try{rX(x_,$P,dZ[$P])}catch{x_[$P]=dZ[$P]}}}};for(var YJ in $J)KJ(tK[YJ]&&tK[YJ].prototype,YJ);KJ(UJ,"DOMTokenList");var XJ=new WeakMap,ZJ={type:"list-item",renderElem:function(x_,eme,$P){XJ.set(x_,$P);var tme=x_,ame=tme.level,nme=ame===void 0?0:ame,rme=tme.ordered,ime={margin:"5px 0 5px "+20*nme+"px"},ome="";if(rme!==void 0&&rme){var lme=function(cme,dme){var ume=dme,fme=ume.type,pme=ume.level,hme=pme===void 0?0:pme,bme=ume.ordered,mme=bme!==void 0&&bme;if(!mme)return-1;var vme=1,gme=dme,yme=QO.findPath(cme,gme);if(yme[0]===0)return 1;for(;yme[0]>0;){var _me=Mf.previous(yme),$me=Bf.node(cme,_me);if($me==null)break;var Cme=$me[0],Sme=Cme.level,Eme=Sme===void 0?0:Sme,xme=Cme.type,Tme=Cme.ordered;if(xme!==fme||Eme<hme)break;if(Eme===hme){if(Tme!==mme)break;vme++}gme=Cme,yme=_me}return vme}($P,x_);ome=lme+"."}else ome=function(cme){cme===void 0&&(cme=0);var dme="";switch(cme){case 0:dme="•";break;case 1:dme="◦";break;default:dme="▪"}return dme}(nme);var sme=function(cme){var dme,ume=cme.children||[],fme=ume.length;if(fme===0)return"";for(var pme=0;pme<fme&&!dme;pme++){var hme=ume[pme];ed.isText(hme)&&(dme=hme)}return dme==null?"":dme.color||""}(x_);return Pg("div",{style:ime},Pg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:sme},"data-w-e-reserve":!0},ome),Pg("span",null,eme))}},JJ=function(x_,eme){return JJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($P,tme){$P.__proto__=tme}||function($P,tme){for(var ame in tme)Object.prototype.hasOwnProperty.call(tme,ame)&&($P[ame]=tme[ame])},JJ(x_,eme);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function QJ(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Class extends value "+String(eme)+" is not a constructor or null");function $P(){this.constructor=x_}JJ(x_,eme),x_.prototype=eme===null?Object.create(eme):($P.prototype=eme.prototype,new $P)}function eQ(x_){var eme=typeof Symbol=="function"&&Symbol.iterator,$P=eme&&x_[eme],tme=0;if($P)return $P.call(x_);if(x_&&typeof x_.length=="number")return{next:function(){return x_&&tme>=x_.length&&(x_=void 0),{value:x_&&x_[tme++],done:!x_}}};throw new TypeError(eme?"Object is not iterable.":"Symbol.iterator is not defined.")}function tQ(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function nQ(x_){return Bf.nodes(x_,{at:x_.selection||void 0,match:function(eme){return QO.findPath(x_,eme).length===1}})}var rQ=kY.includes;MX({target:"Array",proto:!0},{includes:function(x_){return rQ(this,x_,arguments.length>1?arguments[1]:void 0)}}),qY("includes");var oQ,iQ,aQ=function(){var x_=YK(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},uQ=tK.RegExp,sQ=uK(function(){var x_=uQ("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),lQ=sQ||uK(function(){return!uQ("a","y").sticky}),cQ={BROKEN_CARET:sQ||uK(function(){var x_=uQ("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:lQ,UNSUPPORTED_Y:sQ},fQ=tK.RegExp,dQ=uK(function(){var x_=fQ(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),pQ=tK.RegExp,hQ=uK(function(){var x_=pQ("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),gQ=hX.get,vQ=wK("native-string-replace",String.prototype.replace),yQ=RegExp.prototype.exec,mQ=yQ,bQ=aK("".charAt),wQ=aK("".indexOf),EQ=aK("".replace),DQ=aK("".slice),SQ=(iQ=/b*/g,nY(yQ,oQ=/a/,"a"),nY(yQ,iQ,"a"),oQ.lastIndex!==0||iQ.lastIndex!==0),xQ=cQ.BROKEN_CARET,CQ=/()??/.exec("")[1]!==void 0;(SQ||CQ||xQ||dQ||hQ)&&(mQ=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=gQ(ome),sme=EZ(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=nY(mQ,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=xQ&&ome.sticky,fme=nY(aQ,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=EQ(fme,"y",""),wQ(fme,"g")===-1&&(fme+="g"),bme=DQ(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&bQ(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),CQ&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),SQ&&(tme=ome.lastIndex),ame=nY(yQ,ume?$P:ome,bme),ume?ame?(ame.input=DQ(ame.input,hme),ame[0]=DQ(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:SQ&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),CQ&&ame&&ame.length>1&&nY(vQ,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=UY(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var AQ=mQ;MX({target:"RegExp",proto:!0,forced:/./.exec!==AQ},{exec:AQ});var OQ=function(){function x_(){this.type="list-item",this.tag="button"}return x_.prototype.getListNode=function(eme){var $P=this.type;return QO.getSelectedNodeByType(eme,$P)},x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){var $P=this.getListNode(eme);if($P==null)return!1;var tme=$P.ordered;return(tme!==void 0&&tme)===this.ordered},x_.prototype.isDisabled=function(eme){return eme.selection==null||!!QO.getSelectedElems(eme).some(function($P){if(Bf.isVoid(eme,$P)&&Bf.isBlock(eme,$P))return!0;var tme=$P.type;return!!["pre","code","table"].includes(tme)||void 0})},x_.prototype.exec=function(eme,$P){this.isActive(eme)?md.setNodes(eme,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(eme,{type:"list-item",ordered:this.ordered,indent:void 0})},x_}(),kQ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',BQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',FQ=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.ordered=!1,$P.title=HP("listModule.unOrderedList"),$P.iconSvg=kQ,$P}return QJ(eme,x_),eme}(OQ),TQ=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.ordered=!0,$P.title=HP("listModule.orderedList"),$P.iconSvg=BQ,$P}return QJ(eme,x_),eme}(OQ),_Q={key:"bulletedList",factory:function(){return new FQ}},PQ={key:"numberedList",factory:function(){return new TQ}},jQ=[],NQ={type:"list-item",elemToHtml:function(x_,eme){var $P="",tme="",ame=x_.ordered,nme=ame!==void 0&&ame?"ol":"ul",rme=function(lme){var sme=XJ.get(lme);if(sme==null)return 0;var cme=lme,dme=cme.type,ume=cme.ordered,fme=ume!==void 0&&ume,pme=cme.level,hme=pme===void 0?0:pme,bme=QO.findPath(sme,lme);if(bme[0]===0)return hme+1;var mme=Mf.previous(bme),vme=Bf.node(sme,mme);if(!vme)return 0;var gme=tQ(vme,1)[0];if(QO.getNodeType(gme)!==dme)return hme+1;var yme=gme,_me=yme.ordered,$me=_me!==void 0&&_me,Cme=yme.level,Sme=Cme===void 0?0:Cme;return Sme<hme?hme-Sme:Sme>hme?0:Sme===hme?$me===fme?0:1:0}(x_);if(rme>0)for(var ime=0;ime<rme;ime++)$P+="<"+nme+">",jQ.push(nme);var ome=function(lme){var sme=XJ.get(lme);if(sme==null)return 0;var cme=lme,dme=cme.type,ume=cme.ordered,fme=ume!==void 0&&ume,pme=cme.level,hme=pme===void 0?0:pme,bme=QO.findPath(sme,lme);if(bme[0]===sme.children.length-1)return hme+1;var mme=Mf.next(bme),vme=Bf.node(sme,mme);if(!vme)return 0;var gme=tQ(vme,1)[0];if(QO.getNodeType(gme)!==dme)return hme+1;var yme=gme,_me=yme.ordered,$me=_me!==void 0&&_me,Cme=yme.level,Sme=Cme===void 0?0:Cme;return Sme<hme?hme-Sme:Sme>hme?0:Sme===hme?$me===fme?0:1:0}(x_);if(ome>0)for(ime=0;ime<ome;ime++)tme+="</"+jQ.pop()+">";return{html:"<li>"+eme+"</li>",prefix:$P,suffix:tme}}},IQ=WK("species"),LQ=bJ.filter,RQ=RK>=51||!uK(function(){var x_=[];return(x_.constructor={})[IQ]=function(){return{foo:1}},x_.filter(Boolean).foo!==1});MX({target:"Array",proto:!0,forced:!RQ},{filter:function(x_){return LQ(this,x_,arguments.length>1?arguments[1]:void 0)}});var MQ=Function.prototype,zQ=MQ.apply,$Q=MQ.bind,HQ=MQ.call,VQ=typeof Reflect=="object"&&Reflect.apply||($Q?HQ.bind(zQ):function(){return HQ.apply(zQ,arguments)}),UQ=(WK("species"),RegExp.prototype),WQ=AZ.charAt,GQ=function(x_,eme,$P){return eme+($P?WQ(x_,eme).length:1)},qQ=Math.floor,KQ=aK("".charAt),YQ=aK("".replace),XQ=aK("".slice),ZQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JQ=/\$([$&'`]|\d{1,2})/g,QQ=function(x_,eme,$P,tme,ame,nme){var rme=$P+x_.length,ime=tme.length,ome=JQ;return ame!==void 0&&(ame=DK(ame),ome=ZQ),YQ(nme,ome,function(lme,sme){var cme;switch(KQ(sme,0)){case"$":return"$";case"&":return x_;case"`":return XQ(eme,0,$P);case"'":return XQ(eme,rme);case"<":cme=ame[XQ(sme,1,-1)];break;default:var dme=+sme;if(dme===0)return lme;if(dme>ime){var ume=qQ(dme/10);return ume===0?lme:ume<=ime?tme[ume-1]===void 0?KQ(sme,1):tme[ume-1]+KQ(sme,1):lme}cme=tme[dme-1]}return cme===void 0?"":cme})},e0=tK.TypeError,t0=function(x_,eme){var $P=x_.exec;if(BK($P)){var tme=nY($P,x_,eme);return tme!==null&&YK(tme),tme}if(cK(x_)==="RegExp")return nY(AQ,x_,eme);throw e0("RegExp#exec called on incompatible receiver")},n0=WK("replace"),r0=Math.max,o0=Math.min,i0=aK([].concat),a0=aK([].push),u0=aK("".indexOf),s0=aK("".slice),l0="a".replace(/./,"$0")==="$0",c0=!!/./[n0]&&/./[n0]("a","$0")==="";(function(x_,eme,$P,tme){var ame=WK(x_),nme=!uK(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!uK(function(){var lme=!1,sme=/a/;return sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=aK(/./[ame]),ome=function(lme,sme,cme){var dme=c0?"$":"$0";return[function(ume,fme){var pme=gK(this),hme=ume==null?void 0:cY(ume,n0);return hme?nY(hme,ume,pme,fme):nY(sme,EZ(pme),ume,fme)},function(ume,fme){var pme=YK(this),hme=EZ(ume);if(typeof fme=="string"&&u0(fme,dme)===-1&&u0(fme,"$<")===-1){var bme=cme(sme,pme,hme,fme);if(bme.done)return bme.value}var mme=BK(fme);mme||(fme=EZ(fme));var vme=pme.global;if(vme){var gme=pme.unicode;pme.lastIndex=0}for(var yme=[];;){var _me=t0(pme,hme);if(_me===null||(a0(yme,_me),!vme))break;EZ(_me[0])===""&&(pme.lastIndex=GQ(hme,CY(pme.lastIndex),gme))}for(var $me,Cme="",Sme=0,Eme=0;Eme<yme.length;Eme++){for(var xme=EZ((_me=yme[Eme])[0]),Tme=r0(o0(wY(_me.index),hme.length),0),Ome=[],Rme=1;Rme<_me.length;Rme++)a0(Ome,($me=_me[Rme])===void 0?$me:String($me));var Nme=_me.groups;if(mme){var Ime=i0([xme],Ome,Tme,hme);Nme!==void 0&&a0(Ime,Nme);var Pme=EZ(VQ(fme,void 0,Ime))}else Pme=QQ(xme,hme,Tme,Ome,Nme,fme);Tme>=Sme&&(Cme+=s0(hme,Sme,Tme)+Pme,Sme=Tme+xme.length)}return Cme+s0(hme,Sme)}]}(0,""[x_],function(lme,sme,cme,dme,ume){var fme=aK(lme),pme=sme.exec;return pme===AQ||pme===UQ.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});xX(String.prototype,x_,ome[0]),xX(UQ,ame,ome[1])}})("replace",0,!!uK(function(){var x_=/./;return x_.exec=function(){var eme=[];return eme.groups={a:"7"},eme},"".replace(x_,"$<a>")!=="7"})||!l0||c0);var f0=tK.TypeError,d0=function(x_,eme,$P,tme,ame,nme,rme,ime){for(var ome,lme,sme=ame,cme=0,dme=!!rme&&HZ(rme,ime);cme<tme;){if(cme in $P){if(ome=dme?dme($P[cme],cme,eme):$P[cme],nme>0&&iJ(ome))lme=AY(ome),sme=d0(x_,eme,ome,lme,sme,nme-1)-1;else{if(sme>=9007199254740991)throw f0("Exceed the acceptable array length");x_[sme]=ome}sme++}cme++}return sme},p0=d0;function h0(x_){return x_.length?x_[0].tagName.toLowerCase():""}MX({target:"Array",proto:!0},{flat:function(){var x_=arguments.length?arguments[0]:void 0,eme=DK(this),$P=AY(eme),tme=vJ(eme,0);return tme.length=p0(tme,eme,eme,$P,0,x_===void 0?1:wY(x_)),tme}}),qY("flat"),MX({global:!0},{globalThis:tK}),ah&&(Mp.fn.append=ah),Vp&&(Mp.fn.attr=Vp),sh&&(Mp.fn.parent=sh);var g0={renderElems:[ZJ],editorPlugin:function(x_){var eme=x_.deleteBackward,$P=x_.handleTab,tme=x_.normalizeNode,ame=x_;return ame.deleteBackward=function(nme){var rme=ame.selection;if(rme!=null)if(qf.isExpanded(rme))eme(nme);else{var ime=QO.getSelectedNodeByType(ame,"list-item");if(ime!=null)if(rme.focus.offset!==0)eme(nme);else{var ome=ime.level,lme=ome===void 0?0:ome;lme>0?md.setNodes(ame,{level:lme-1}):md.setNodes(ame,{type:"paragraph",ordered:void 0,level:void 0})}else eme(nme)}else eme(nme)},ame.handleTab=function(){var nme,rme,ime,ome,lme=ame.selection;if(lme!=null){if(qf.isCollapsed(lme)){var sme=QO.getSelectedNodeByType(ame,"list-item");if(sme==null)return void $P();if(lme.focus.offset===0){var cme=sme.level,dme=cme===void 0?0:cme;return void md.setNodes(ame,{level:dme+1})}}if(qf.isExpanded(lme)){var ume=0,fme=!1;try{for(var pme=eQ(nQ(ame)),hme=pme.next();!hme.done;hme=pme.next()){var bme=tQ(hme.value,1)[0];QO.getNodeType(bme)==="list-item"?ume++:fme=!0}}catch($me){nme={error:$me}}finally{try{hme&&!hme.done&&(rme=pme.return)&&rme.call(pme)}finally{if(nme)throw nme.error}}if(fme||ume<=1)return void $P();try{for(var mme=eQ(nQ(ame)),vme=mme.next();!vme.done;vme=mme.next()){var gme=tQ(vme.value,2),yme=(bme=gme[0],gme[1]),_me=bme.level;dme=_me===void 0?0:_me,md.setNodes(ame,{level:dme+1},{at:yme})}}catch($me){ime={error:$me}}finally{try{vme&&!vme.done&&(ome=mme.return)&&ome.call(mme)}finally{if(ime)throw ime.error}}}else $P()}else $P()},ame.normalizeNode=function(nme){var rme=tQ(nme,2),ime=rme[0],ome=rme[1],lme=QO.getNodeType(ime);return lme!=="bulleted-list"&&lme!=="numbered-list"||md.unwrapNodes(ame,{at:ome}),tme([ime,ome])},ame},menus:[_Q,PQ],elemsToHtml:[NQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){return eme.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);(eme=eme.filter(function(rme){return!!ed.isText(rme)||!!$P.isInline(rme)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]);var ame=function(rme){return h0(rme.parent())==="ol"}(tme),nme=function(rme){for(var ime=0,ome=rme.parent(),lme=h0(ome);lme==="ul"||lme==="ol";)lme=h0(ome=ome.parent()),ime++;return ime-1}(tme);return{type:"list-item",ordered:ame,level:nme,children:eme}}}]},v0=n(function(x_,eme){var $P="__lodash_hash_undefined__",tme=9007199254740991,ame="[object Arguments]",nme="[object Array]",rme="[object Boolean]",ime="[object Date]",ome="[object Error]",lme="[object Function]",sme="[object Map]",cme="[object Number]",dme="[object Object]",ume="[object Promise]",fme="[object RegExp]",pme="[object Set]",hme="[object String]",bme="[object Symbol]",mme="[object WeakMap]",vme="[object ArrayBuffer]",gme="[object DataView]",yme=/^\[object .+?Constructor\]$/,_me=/^(?:0|[1-9]\d*)$/,$me={};$me["[object Float32Array]"]=$me["[object Float64Array]"]=$me["[object Int8Array]"]=$me["[object Int16Array]"]=$me["[object Int32Array]"]=$me["[object Uint8Array]"]=$me["[object Uint8ClampedArray]"]=$me["[object Uint16Array]"]=$me["[object Uint32Array]"]=!0,$me[ame]=$me[nme]=$me[vme]=$me[rme]=$me[gme]=$me[ime]=$me[ome]=$me[lme]=$me[sme]=$me[cme]=$me[dme]=$me[fme]=$me[pme]=$me[hme]=$me[mme]=!1;var Cme=typeof e=="object"&&e&&e.Object===Object&&e,Sme=typeof self=="object"&&self&&self.Object===Object&&self,Eme=Cme||Sme||Function("return this")(),xme=eme&&!eme.nodeType&&eme,Tme=xme&&x_&&!x_.nodeType&&x_,Ome=Tme&&Tme.exports===xme,Rme=Ome&&Cme.process,Nme=function(){try{return Rme&&Rme.binding&&Rme.binding("util")}catch{}}(),Ime=Nme&&Nme.isTypedArray;function Pme($be,Ibe){for(var n0e=-1,f0e=$be==null?0:$be.length;++n0e<f0e;)if(Ibe($be[n0e],n0e,$be))return!0;return!1}function Mme($be){var Ibe=-1,n0e=Array($be.size);return $be.forEach(function(f0e,z0e){n0e[++Ibe]=[z0e,f0e]}),n0e}function kme($be){var Ibe=-1,n0e=Array($be.size);return $be.forEach(function(f0e){n0e[++Ibe]=f0e}),n0e}var Bme=Array.prototype,Dme=Function.prototype,jme=Object.prototype,Vme=Eme["__core-js_shared__"],Wme=Dme.toString,Lme=jme.hasOwnProperty,zme=function(){var $be=/[^.]+$/.exec(Vme&&Vme.keys&&Vme.keys.IE_PROTO||"");return $be?"Symbol(src)_1."+$be:""}(),Ume=jme.toString,Gme=RegExp("^"+Wme.call(Lme).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jme=Ome?Eme.Buffer:void 0,Yme=Eme.Symbol,Qme=Eme.Uint8Array,Xme=jme.propertyIsEnumerable,Kme=Bme.splice,Zme=Yme?Yme.toStringTag:void 0,nbe=Object.getOwnPropertySymbols,lbe=Jme?Jme.isBuffer:void 0,ibe=function($be,Ibe){return function(n0e){return $be(Ibe(n0e))}}(Object.keys,Object),abe=R0e(Eme,"DataView"),obe=R0e(Eme,"Map"),hbe=R0e(Eme,"Promise"),ube=R0e(Eme,"Set"),mbe=R0e(Eme,"WeakMap"),pbe=R0e(Object,"create"),_be=v0e(abe),Sbe=v0e(obe),vbe=v0e(hbe),kbe=v0e(ube),Rbe=v0e(mbe),Pbe=Yme?Yme.prototype:void 0,Mbe=Pbe?Pbe.valueOf:void 0;function Kbe($be){var Ibe=-1,n0e=$be==null?0:$be.length;for(this.clear();++Ibe<n0e;){var f0e=$be[Ibe];this.set(f0e[0],f0e[1])}}function Qbe($be){var Ibe=-1,n0e=$be==null?0:$be.length;for(this.clear();++Ibe<n0e;){var f0e=$be[Ibe];this.set(f0e[0],f0e[1])}}function Gbe($be){var Ibe=-1,n0e=$be==null?0:$be.length;for(this.clear();++Ibe<n0e;){var f0e=$be[Ibe];this.set(f0e[0],f0e[1])}}function Hbe($be){var Ibe=-1,n0e=$be==null?0:$be.length;for(this.__data__=new Gbe;++Ibe<n0e;)this.add($be[Ibe])}function d0e($be){var Ibe=this.__data__=new Qbe($be);this.size=Ibe.size}function p0e($be,Ibe){var n0e=a0e($be),f0e=!n0e&&Wbe($be),z0e=!n0e&&!f0e&&g0e($be),o0e=!n0e&&!f0e&&!z0e&&w0e($be),gbe=n0e||f0e||z0e||o0e,Tbe=gbe?function(x0e,I0e){for(var j0e=-1,O0e=Array(x0e);++j0e<x0e;)O0e[j0e]=I0e(j0e);return O0e}($be.length,String):[],Vbe=Tbe.length;for(var Ube in $be)!Lme.call($be,Ube)||gbe&&(Ube=="length"||z0e&&(Ube=="offset"||Ube=="parent")||o0e&&(Ube=="buffer"||Ube=="byteLength"||Ube=="byteOffset")||t0e(Ube,Vbe))||Tbe.push(Ube);return Tbe}function S0e($be,Ibe){for(var n0e=$be.length;n0e--;)if(L0e($be[n0e][0],Ibe))return n0e;return-1}function P0e($be){return $be==null?$be===void 0?"[object Undefined]":"[object Null]":Zme&&Zme in Object($be)?function(Ibe){var n0e=Lme.call(Ibe,Zme),f0e=Ibe[Zme];try{Ibe[Zme]=void 0;var z0e=!0}catch{}var o0e=Ume.call(Ibe);return z0e&&(n0e?Ibe[Zme]=f0e:delete Ibe[Zme]),o0e}($be):function(Ibe){return Ume.call(Ibe)}($be)}function e0e($be){return V0e($be)&&P0e($be)==ame}function _0e($be,Ibe,n0e,f0e,z0e){return $be===Ibe||($be==null||Ibe==null||!V0e($be)&&!V0e(Ibe)?$be!=$be&&Ibe!=Ibe:function(o0e,gbe,Tbe,Vbe,Ube,x0e){var I0e=a0e(o0e),j0e=a0e(gbe),O0e=I0e?nme:u0e(o0e),G0e=j0e?nme:u0e(gbe),W0e=(O0e=O0e==ame?dme:O0e)==dme,i1e=(G0e=G0e==ame?dme:G0e)==dme,t1e=O0e==G0e;if(t1e&&g0e(o0e)){if(!g0e(gbe))return!1;I0e=!0,W0e=!1}if(t1e&&!W0e)return x0e||(x0e=new d0e),I0e||w0e(o0e)?Jbe(o0e,gbe,Tbe,Vbe,Ube,x0e):function(Abe,Lbe,Nbe,Fbe,i0e,Bbe,Zbe){switch(Nbe){case gme:if(Abe.byteLength!=Lbe.byteLength||Abe.byteOffset!=Lbe.byteOffset)return!1;Abe=Abe.buffer,Lbe=Lbe.buffer;case vme:return!(Abe.byteLength!=Lbe.byteLength||!Bbe(new Qme(Abe),new Qme(Lbe)));case rme:case ime:case cme:return L0e(+Abe,+Lbe);case ome:return Abe.name==Lbe.name&&Abe.message==Lbe.message;case fme:case hme:return Abe==Lbe+"";case sme:var E0e=Mme;case pme:var M0e=1&Fbe;if(E0e||(E0e=kme),Abe.size!=Lbe.size&&!M0e)return!1;var B0e=Zbe.get(Abe);if(B0e)return B0e==Lbe;Fbe|=2,Zbe.set(Abe,Lbe);var Z0e=Jbe(E0e(Abe),E0e(Lbe),Fbe,i0e,Bbe,Zbe);return Zbe.delete(Abe),Z0e;case bme:if(Mbe)return Mbe.call(Abe)==Mbe.call(Lbe)}return!1}(o0e,gbe,O0e,Tbe,Vbe,Ube,x0e);if(!(1&Tbe)){var Ebe=W0e&&Lme.call(o0e,"__wrapped__"),Cbe=i1e&&Lme.call(gbe,"__wrapped__");if(Ebe||Cbe){var fbe=Ebe?o0e.value():o0e,ybe=Cbe?gbe.value():gbe;return x0e||(x0e=new d0e),Ube(fbe,ybe,Tbe,Vbe,x0e)}}return t1e?(x0e||(x0e=new d0e),function(Abe,Lbe,Nbe,Fbe,i0e,Bbe){var Zbe=1&Nbe,E0e=c0e(Abe),M0e=E0e.length,B0e=c0e(Lbe).length;if(M0e!=B0e&&!Zbe)return!1;for(var Z0e=M0e;Z0e--;){var m1e=E0e[Z0e];if(!(Zbe?m1e in Lbe:Lme.call(Lbe,m1e)))return!1}var $1e=Bbe.get(Abe);if($1e&&Bbe.get(Lbe))return $1e==Lbe;var f1e=!0;Bbe.set(Abe,Lbe),Bbe.set(Lbe,Abe);for(var w1e=Zbe;++Z0e<M0e;){var b1e=Abe[m1e=E0e[Z0e]],I1e=Lbe[m1e];if(Fbe)var M1e=Zbe?Fbe(I1e,b1e,m1e,Lbe,Abe,Bbe):Fbe(b1e,I1e,m1e,Abe,Lbe,Bbe);if(!(M1e===void 0?b1e===I1e||i0e(b1e,I1e,Nbe,Fbe,Bbe):M1e)){f1e=!1;break}w1e||(w1e=m1e=="constructor")}if(f1e&&!w1e){var L1e=Abe.constructor,pye=Lbe.constructor;L1e==pye||!("constructor"in Abe)||!("constructor"in Lbe)||typeof L1e=="function"&&L1e instanceof L1e&&typeof pye=="function"&&pye instanceof pye||(f1e=!1)}return Bbe.delete(Abe),Bbe.delete(Lbe),f1e}(o0e,gbe,Tbe,Vbe,Ube,x0e)):!1}($be,Ibe,n0e,f0e,_0e,z0e))}function m0e($be){return!(!A0e($be)||function(Ibe){return!!zme&&zme in Ibe}($be))&&(b0e($be)?Gme:yme).test(v0e($be))}function Ybe($be){if(n0e=(Ibe=$be)&&Ibe.constructor,f0e=typeof n0e=="function"&&n0e.prototype||jme,Ibe!==f0e)return ibe($be);var Ibe,n0e,f0e,z0e=[];for(var o0e in Object($be))Lme.call($be,o0e)&&o0e!="constructor"&&z0e.push(o0e);return z0e}function Jbe($be,Ibe,n0e,f0e,z0e,o0e){var gbe=1&n0e,Tbe=$be.length,Vbe=Ibe.length;if(Tbe!=Vbe&&!(gbe&&Vbe>Tbe))return!1;var Ube=o0e.get($be);if(Ube&&o0e.get(Ibe))return Ube==Ibe;var x0e=-1,I0e=!0,j0e=2&n0e?new Hbe:void 0;for(o0e.set($be,Ibe),o0e.set(Ibe,$be);++x0e<Tbe;){var O0e=$be[x0e],G0e=Ibe[x0e];if(f0e)var W0e=gbe?f0e(G0e,O0e,x0e,Ibe,$be,o0e):f0e(O0e,G0e,x0e,$be,Ibe,o0e);if(W0e!==void 0){if(W0e)continue;I0e=!1;break}if(j0e){if(!Pme(Ibe,function(i1e,t1e){if(Ebe=t1e,!j0e.has(Ebe)&&(O0e===i1e||z0e(O0e,i1e,n0e,f0e,o0e)))return j0e.push(t1e);var Ebe})){I0e=!1;break}}else if(O0e!==G0e&&!z0e(O0e,G0e,n0e,f0e,o0e)){I0e=!1;break}}return o0e.delete($be),o0e.delete(Ibe),I0e}function c0e($be){return function(Ibe,n0e,f0e){var z0e=n0e(Ibe);return a0e(Ibe)?z0e:function(o0e,gbe){for(var Tbe=-1,Vbe=gbe.length,Ube=o0e.length;++Tbe<Vbe;)o0e[Ube+Tbe]=gbe[Tbe];return o0e}(z0e,f0e(Ibe))}($be,T0e,$0e)}function zbe($be,Ibe){var n0e,f0e,z0e=$be.__data__;return((f0e=typeof(n0e=Ibe))=="string"||f0e=="number"||f0e=="symbol"||f0e=="boolean"?n0e!=="__proto__":n0e===null)?z0e[typeof Ibe=="string"?"string":"hash"]:z0e.map}function R0e($be,Ibe){var n0e=function(f0e,z0e){return f0e==null?void 0:f0e[z0e]}($be,Ibe);return m0e(n0e)?n0e:void 0}Kbe.prototype.clear=function(){this.__data__=pbe?pbe(null):{},this.size=0},Kbe.prototype.delete=function($be){var Ibe=this.has($be)&&delete this.__data__[$be];return this.size-=Ibe?1:0,Ibe},Kbe.prototype.get=function($be){var Ibe=this.__data__;if(pbe){var n0e=Ibe[$be];return n0e===$P?void 0:n0e}return Lme.call(Ibe,$be)?Ibe[$be]:void 0},Kbe.prototype.has=function($be){var Ibe=this.__data__;return pbe?Ibe[$be]!==void 0:Lme.call(Ibe,$be)},Kbe.prototype.set=function($be,Ibe){var n0e=this.__data__;return this.size+=this.has($be)?0:1,n0e[$be]=pbe&&Ibe===void 0?$P:Ibe,this},Qbe.prototype.clear=function(){this.__data__=[],this.size=0},Qbe.prototype.delete=function($be){var Ibe=this.__data__,n0e=S0e(Ibe,$be);return!(n0e<0)&&(n0e==Ibe.length-1?Ibe.pop():Kme.call(Ibe,n0e,1),--this.size,!0)},Qbe.prototype.get=function($be){var Ibe=this.__data__,n0e=S0e(Ibe,$be);return n0e<0?void 0:Ibe[n0e][1]},Qbe.prototype.has=function($be){return S0e(this.__data__,$be)>-1},Qbe.prototype.set=function($be,Ibe){var n0e=this.__data__,f0e=S0e(n0e,$be);return f0e<0?(++this.size,n0e.push([$be,Ibe])):n0e[f0e][1]=Ibe,this},Gbe.prototype.clear=function(){this.size=0,this.__data__={hash:new Kbe,map:new(obe||Qbe),string:new Kbe}},Gbe.prototype.delete=function($be){var Ibe=zbe(this,$be).delete($be);return this.size-=Ibe?1:0,Ibe},Gbe.prototype.get=function($be){return zbe(this,$be).get($be)},Gbe.prototype.has=function($be){return zbe(this,$be).has($be)},Gbe.prototype.set=function($be,Ibe){var n0e=zbe(this,$be),f0e=n0e.size;return n0e.set($be,Ibe),this.size+=n0e.size==f0e?0:1,this},Hbe.prototype.add=Hbe.prototype.push=function($be){return this.__data__.set($be,$P),this},Hbe.prototype.has=function($be){return this.__data__.has($be)},d0e.prototype.clear=function(){this.__data__=new Qbe,this.size=0},d0e.prototype.delete=function($be){var Ibe=this.__data__,n0e=Ibe.delete($be);return this.size=Ibe.size,n0e},d0e.prototype.get=function($be){return this.__data__.get($be)},d0e.prototype.has=function($be){return this.__data__.has($be)},d0e.prototype.set=function($be,Ibe){var n0e=this.__data__;if(n0e instanceof Qbe){var f0e=n0e.__data__;if(!obe||f0e.length<199)return f0e.push([$be,Ibe]),this.size=++n0e.size,this;n0e=this.__data__=new Gbe(f0e)}return n0e.set($be,Ibe),this.size=n0e.size,this};var $0e=nbe?function($be){return $be==null?[]:($be=Object($be),function(Ibe,n0e){for(var f0e=-1,z0e=Ibe==null?0:Ibe.length,o0e=0,gbe=[];++f0e<z0e;){var Tbe=Ibe[f0e];n0e(Tbe,f0e,Ibe)&&(gbe[o0e++]=Tbe)}return gbe}(nbe($be),function(Ibe){return Xme.call($be,Ibe)}))}:function(){return[]},u0e=P0e;function t0e($be,Ibe){return!!(Ibe=Ibe??tme)&&(typeof $be=="number"||_me.test($be))&&$be>-1&&$be%1==0&&$be<Ibe}function v0e($be){if($be!=null){try{return Wme.call($be)}catch{}try{return $be+""}catch{}}return""}function L0e($be,Ibe){return $be===Ibe||$be!=$be&&Ibe!=Ibe}(abe&&u0e(new abe(new ArrayBuffer(1)))!=gme||obe&&u0e(new obe)!=sme||hbe&&u0e(hbe.resolve())!=ume||ube&&u0e(new ube)!=pme||mbe&&u0e(new mbe)!=mme)&&(u0e=function($be){var Ibe=P0e($be),n0e=Ibe==dme?$be.constructor:void 0,f0e=n0e?v0e(n0e):"";if(f0e)switch(f0e){case _be:return gme;case Sbe:return sme;case vbe:return ume;case kbe:return pme;case Rbe:return mme}return Ibe});var Wbe=e0e(function(){return arguments}())?e0e:function($be){return V0e($be)&&Lme.call($be,"callee")&&!Xme.call($be,"callee")},a0e=Array.isArray,g0e=lbe||function(){return!1};function b0e($be){if(!A0e($be))return!1;var Ibe=P0e($be);return Ibe==lme||Ibe=="[object GeneratorFunction]"||Ibe=="[object AsyncFunction]"||Ibe=="[object Proxy]"}function y0e($be){return typeof $be=="number"&&$be>-1&&$be%1==0&&$be<=tme}function A0e($be){var Ibe=typeof $be;return $be!=null&&(Ibe=="object"||Ibe=="function")}function V0e($be){return $be!=null&&typeof $be=="object"}var w0e=Ime?function($be){return function(Ibe){return $be(Ibe)}}(Ime):function($be){return V0e($be)&&y0e($be.length)&&!!$me[P0e($be)]};function T0e($be){return(Ibe=$be)!=null&&y0e(Ibe.length)&&!b0e(Ibe)?p0e($be):Ybe($be);var Ibe}x_.exports=function($be,Ibe){return _0e($be,Ibe)}});MP("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),MP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var b0,w0,E0=function(x_){return x_&&x_.Math==Math&&x_},D0=E0(typeof globalThis=="object"&&globalThis)||E0(typeof window=="object"&&window)||E0(typeof self=="object"&&self)||E0(typeof y0=="object"&&y0)||function(){return this}()||Function("return this")(),S0=function(x_){try{return!!x_()}catch{return!0}},x0=!S0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),C0=Function.prototype.call,A0=C0.bind?C0.bind(C0):function(){return C0.apply(C0,arguments)},O0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,B0={f:k0&&!O0.call({1:2},1)?function(x_){var eme=k0(this,x_);return!!eme&&eme.enumerable}:O0},F0=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},T0=Function.prototype,_0=T0.bind,P0=T0.call,j0=_0&&_0.bind(P0),N0=_0?function(x_){return x_&&j0(P0,x_)}:function(x_){return x_&&function(){return P0.apply(x_,arguments)}},I0=N0({}.toString),L0=N0("".slice),R0=function(x_){return L0(I0(x_),8,-1)},M0=D0.Object,z0=N0("".split),$0=S0(function(){return!M0("z").propertyIsEnumerable(0)})?function(x_){return R0(x_)=="String"?z0(x_,""):M0(x_)}:M0,H0=D0.TypeError,V0=function(x_){if(x_==null)throw H0("Can't call method on "+x_);return x_},U0=function(x_){return $0(V0(x_))},W0=function(x_){return typeof x_=="function"},G0=function(x_){return typeof x_=="object"?x_!==null:W0(x_)},q0=function(x_){return W0(x_)?x_:void 0},K0=function(x_,eme){return arguments.length<2?q0(D0[x_]):D0[x_]&&D0[x_][eme]},Y0=N0({}.isPrototypeOf),X0=K0("navigator","userAgent")||"",Z0=D0.process,J0=D0.Deno,Q0=Z0&&Z0.versions||J0&&J0.version,e1=Q0&&Q0.v8;e1&&(w0=(b0=e1.split("."))[0]>0&&b0[0]<4?1:+(b0[0]+b0[1])),!w0&&X0&&(!(b0=X0.match(/Edge\/(\d+)/))||b0[1]>=74)&&(b0=X0.match(/Chrome\/(\d+)/))&&(w0=+b0[1]);var t1=w0,n1=!!Object.getOwnPropertySymbols&&!S0(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&t1&&t1<41}),r1=n1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o1=D0.Object,i1=r1?function(x_){return typeof x_=="symbol"}:function(x_){var eme=K0("Symbol");return W0(eme)&&Y0(eme.prototype,o1(x_))},a1=D0.String,u1=function(x_){try{return a1(x_)}catch{return"Object"}},s1=D0.TypeError,l1=function(x_){if(W0(x_))return x_;throw s1(u1(x_)+" is not a function")},c1=function(x_,eme){var $P=x_[eme];return $P==null?void 0:l1($P)},f1=D0.TypeError,d1=Object.defineProperty,p1=function(x_,eme){try{d1(D0,x_,{value:eme,configurable:!0,writable:!0})}catch{D0[x_]=eme}return eme},h1=D0["__core-js_shared__"]||p1("__core-js_shared__",{}),g1=m0(function(x_){(x_.exports=function(eme,$P){return h1[eme]||(h1[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),v1=D0.Object,y1=function(x_){return v1(V0(x_))},m1=N0({}.hasOwnProperty),b1=Object.hasOwn||function(x_,eme){return m1(y1(x_),eme)},w1=0,E1=Math.random(),D1=N0(1 .toString),S1=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+D1(++w1+E1,36)},x1=g1("wks"),C1=D0.Symbol,A1=C1&&C1.for,O1=r1?C1:C1&&C1.withoutSetter||S1,k1=function(x_){if(!b1(x1,x_)||!n1&&typeof x1[x_]!="string"){var eme="Symbol."+x_;n1&&b1(C1,x_)?x1[x_]=C1[x_]:x1[x_]=r1&&A1?A1(eme):O1(eme)}return x1[x_]},B1=D0.TypeError,F1=k1("toPrimitive"),T1=function(x_){var eme=function($P,tme){if(!G0($P)||i1($P))return $P;var ame,nme=c1($P,F1);if(nme){if(ame=A0(nme,$P,tme),!G0(ame)||i1(ame))return ame;throw B1("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(W0(ome=rme.toString)&&!G0(lme=A0(ome,rme))||W0(ome=rme.valueOf)&&!G0(lme=A0(ome,rme)))return lme;throw f1("Can't convert object to primitive value")}($P)}(x_,"string");return i1(eme)?eme:eme+""},_1=D0.document,P1=G0(_1)&&G0(_1.createElement),j1=function(x_){return P1?_1.createElement(x_):{}},N1=!x0&&!S0(function(){return Object.defineProperty(j1("div"),"a",{get:function(){return 7}}).a!=7}),I1=Object.getOwnPropertyDescriptor,L1={f:x0?I1:function(x_,eme){if(x_=U0(x_),eme=T1(eme),N1)try{return I1(x_,eme)}catch{}if(b1(x_,eme))return F0(!A0(B0.f,x_,eme),x_[eme])}},R1=D0.String,M1=D0.TypeError,z1=function(x_){if(G0(x_))return x_;throw M1(R1(x_)+" is not an object")},$1=D0.TypeError,H1=Object.defineProperty,V1={f:x0?H1:function(x_,eme,$P){if(z1(x_),eme=T1(eme),z1($P),N1)try{return H1(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw $1("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},U1=x0?function(x_,eme,$P){return V1.f(x_,eme,F0(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},W1=N0(Function.toString);W0(h1.inspectSource)||(h1.inspectSource=function(x_){return W1(x_)});var G1,q1,K1,Y1=h1.inspectSource,X1=D0.WeakMap,Z1=W0(X1)&&/native code/.test(Y1(X1)),J1=g1("keys"),Q1=function(x_){return J1[x_]||(J1[x_]=S1(x_))},e2={},t2=D0.TypeError,n2=D0.WeakMap;if(Z1||h1.state){var r2=h1.state||(h1.state=new n2),o2=N0(r2.get),i2=N0(r2.has),a2=N0(r2.set);G1=function(x_,eme){if(i2(r2,x_))throw new t2("Object already initialized");return eme.facade=x_,a2(r2,x_,eme),eme},q1=function(x_){return o2(r2,x_)||{}},K1=function(x_){return i2(r2,x_)}}else{var u2=Q1("state");e2[u2]=!0,G1=function(x_,eme){if(b1(x_,u2))throw new t2("Object already initialized");return eme.facade=x_,U1(x_,u2,eme),eme},q1=function(x_){return b1(x_,u2)?x_[u2]:{}},K1=function(x_){return b1(x_,u2)}}var s2={set:G1,get:q1,has:K1,enforce:function(x_){return K1(x_)?q1(x_):G1(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!G0(eme)||($P=q1(eme)).type!==x_)throw t2("Incompatible receiver, "+x_+" required");return $P}}},l2=Function.prototype,c2=x0&&Object.getOwnPropertyDescriptor,f2=b1(l2,"name"),d2={EXISTS:f2,PROPER:f2&&(function(){}).name==="something",CONFIGURABLE:f2&&(!x0||x0&&c2(l2,"name").configurable)},p2=m0(function(x_){var eme=d2.CONFIGURABLE,$P=s2.get,tme=s2.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;W0(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b1(ime,"name")||eme&&ime.name!==ume)&&U1(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==D0?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:U1(nme,rme,ime)):cme?nme[rme]=ime:p1(rme,ime)})(Function.prototype,"toString",function(){return W0(this)&&$P(this).source||Y1(this)})}),h2=Math.ceil,g2=Math.floor,v2=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?g2:h2)(eme)},y2=Math.max,m2=Math.min,b2=function(x_,eme){var $P=v2(x_);return $P<0?y2($P+eme,0):m2($P,eme)},w2=Math.min,E2=function(x_){return x_>0?w2(v2(x_),9007199254740991):0},D2=function(x_){return E2(x_.length)},S2=function(x_){return function(eme,$P,tme){var ame,nme=U0(eme),rme=D2(nme),ime=b2(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},x2=S2(!1),C2=N0([].push),A2=function(x_,eme){var $P,tme=U0(x_),ame=0,nme=[];for($P in tme)!b1(e2,$P)&&b1(tme,$P)&&C2(nme,$P);for(;eme.length>ame;)b1(tme,$P=eme[ame++])&&(~x2(nme,$P)||C2(nme,$P));return nme},O2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],k2=O2.concat("length","prototype"),B2={f:Object.getOwnPropertyNames||function(x_){return A2(x_,k2)}},F2={f:Object.getOwnPropertySymbols},T2=N0([].concat),_2=K0("Reflect","ownKeys")||function(x_){var eme=B2.f(z1(x_)),$P=F2.f;return $P?T2(eme,$P(x_)):eme},P2=function(x_,eme){for(var $P=_2(eme),tme=V1.f,ame=L1.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];b1(x_,rme)||tme(x_,rme,ame(eme,rme))}},j2=/#|\.prototype\./,N2=function(x_,eme){var $P=L2[I2(x_)];return $P==M2||$P!=R2&&(W0(eme)?S0(eme):!!eme)},I2=N2.normalize=function(x_){return String(x_).replace(j2,".").toLowerCase()},L2=N2.data={},R2=N2.NATIVE="N",M2=N2.POLYFILL="P",z2=N2,$2=L1.f,H2=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?D0:lme?D0[ime]||p1(ime,{}):(D0[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=$2($P,tme))&&rme.value:$P[tme],!z2(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;P2(nme,ame)}(x_.sham||ame&&ame.sham)&&U1(nme,"sham",!0),p2($P,tme,nme,x_)}},V2={};V2[k1("toStringTag")]="z";var U2=String(V2)==="[object z]",W2=k1("toStringTag"),G2=D0.Object,q2=R0(function(){return arguments}())=="Arguments",K2=U2?R0:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=G2(x_),W2))=="string"?$P:q2?R0(eme):(tme=R0(eme))=="Object"&&W0(eme.callee)?"Arguments":tme},Y2=D0.String,X2=function(x_){if(K2(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Y2(x_)},Z2=/"/g,J2=N0("".replace);H2({target:"String",proto:!0,forced:S0(function(){var x_="".anchor('"');return x_!==x_.toLowerCase()||x_.split('"').length>3})},{anchor:function(x_){return eme=x_,$P=X2(V0(this)),tme="<a",(tme+=' name="'+J2(X2(eme),Z2,"&quot;")+'"')+">"+$P+"</a>";var eme,$P,tme}});var Q2,e4=function(){var x_=z1(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},t4=D0.RegExp,n4=S0(function(){var x_=t4("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),r4=n4||S0(function(){return!t4("a","y").sticky}),o4={BROKEN_CARET:n4||S0(function(){var x_=t4("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:r4,UNSUPPORTED_Y:n4},i4=Object.keys||function(x_){return A2(x_,O2)},a4=x0?Object.defineProperties:function(x_,eme){z1(x_);for(var $P,tme=U0(eme),ame=i4(eme),nme=ame.length,rme=0;nme>rme;)V1.f(x_,$P=ame[rme++],tme[$P]);return x_},u4=K0("document","documentElement"),s4=Q1("IE_PROTO"),l4=function(){},c4=function(x_){return"<script>"+x_+"<\/script>"},f4=function(x_){x_.write(c4("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},d4=function(){try{Q2=new ActiveXObject("htmlfile")}catch{}var x_,eme;d4=typeof document<"u"?document.domain&&Q2?f4(Q2):((eme=j1("iframe")).style.display="none",u4.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(c4("document.F=Object")),x_.close(),x_.F):f4(Q2);for(var $P=O2.length;$P--;)delete d4.prototype[O2[$P]];return d4()};e2[s4]=!0;var p4,h4,g4=Object.create||function(x_,eme){var $P;return x_!==null?(l4.prototype=z1(x_),$P=new l4,l4.prototype=null,$P[s4]=x_):$P=d4(),eme===void 0?$P:a4($P,eme)},v4=D0.RegExp,y4=S0(function(){var x_=v4(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),m4=D0.RegExp,b4=S0(function(){var x_=m4("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),w4=s2.get,E4=g1("native-string-replace",String.prototype.replace),D4=RegExp.prototype.exec,S4=D4,x4=N0("".charAt),C4=N0("".indexOf),A4=N0("".replace),O4=N0("".slice),k4=(h4=/b*/g,A0(D4,p4=/a/,"a"),A0(D4,h4,"a"),p4.lastIndex!==0||h4.lastIndex!==0),B4=o4.BROKEN_CARET,F4=/()??/.exec("")[1]!==void 0;(k4||F4||B4||y4||b4)&&(S4=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=w4(ome),sme=X2(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=A0(S4,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=B4&&ome.sticky,fme=A0(e4,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=A4(fme,"y",""),C4(fme,"g")===-1&&(fme+="g"),bme=O4(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&x4(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),F4&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),k4&&(tme=ome.lastIndex),ame=A0(D4,ume?$P:ome,bme),ume?ame?(ame.input=O4(ame.input,hme),ame[0]=O4(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:k4&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),F4&&ame&&ame.length>1&&A0(E4,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=g4(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var T4=S4;H2({target:"RegExp",proto:!0,forced:/./.exec!==T4},{exec:T4});var _4=Array.isArray||function(x_){return R0(x_)=="Array"},P4=function(){},j4=[],N4=K0("Reflect","construct"),I4=/^\s*(?:class|function)\b/,L4=N0(I4.exec),R4=!I4.exec(P4),M4=function(x_){if(!W0(x_))return!1;try{return N4(P4,j4,x_),!0}catch{return!1}},z4=!N4||S0(function(){var x_;return M4(M4.call)||!M4(Object)||!M4(function(){x_=!0})||x_})?function(x_){if(!W0(x_))return!1;switch(K2(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R4||!!L4(I4,Y1(x_))}:M4,$4=function(x_,eme,$P){var tme=T1(eme);tme in x_?V1.f(x_,tme,F0(0,$P)):x_[tme]=$P},H4=k1("species"),V4=function(x_){return t1>=51||!S0(function(){var eme=[];return(eme.constructor={})[H4]=function(){return{foo:1}},eme[x_](Boolean).foo!==1})},U4=N0([].slice),W4=V4("slice"),G4=k1("species"),q4=D0.Array,K4=Math.max;function Y4(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function X4(x_){var eme=x_.selection;if(eme==null)return!1;var $P=Y4(Bf.nodes(x_,{match:function(nme){return QO.checkNodeType(nme,"table-cell")}}),1)[0];if($P){var tme=Y4($P,2)[1],ame=Bf.start(x_,tme);if(Vf.equals(eme.anchor,ame))return!0}return!1}function Z4(x_,eme){var $P,tme,ame=Bf.nodes(x_,{at:eme,match:function(ome){return QO.getNodeType(ome)==="table"}}),nme=!1;try{for(var rme=function(ome){var lme=typeof Symbol=="function"&&Symbol.iterator,sme=lme&&ome[lme],cme=0;if(sme)return sme.call(ome);if(ome&&typeof ome.length=="number")return{next:function(){return ome&&cme>=ome.length&&(ome=void 0),{value:ome&&ome[cme++],done:!ome}}};throw new TypeError(lme?"Object is not iterable.":"Symbol.iterator is not defined.")}(ame),ime=rme.next();!ime.done;ime=rme.next())ime.value,nme=!0}catch(ome){$P={error:ome}}finally{try{ime&&!ime.done&&(tme=rme.return)&&tme.call(rme)}finally{if($P)throw $P.error}}return nme}H2({target:"Array",proto:!0,forced:!W4},{slice:function(x_,eme){var $P,tme,ame,nme=U0(this),rme=D2(nme),ime=b2(x_,rme),ome=b2(eme===void 0?rme:eme,rme);if(_4(nme)&&($P=nme.constructor,(z4($P)&&($P===q4||_4($P.prototype))||G0($P)&&($P=$P[G4])===null)&&($P=void 0),$P===q4||$P===void 0))return U4(nme,ime,ome);for(tme=new($P===void 0?q4:$P)(K4(ome-ime,0)),ame=0;ime<ome;ime++,ame++)ime in nme&&$4(tme,ame,nme[ime]);return tme.length=ame,tme}});var J4=N0(N0.bind),Q4=k1("species"),e6=D0.Array,t6=function(x_,eme){return new(function($P){var tme;return _4($P)&&(tme=$P.constructor,(z4(tme)&&(tme===e6||_4(tme.prototype))||G0(tme)&&(tme=tme[Q4])===null)&&(tme=void 0)),tme===void 0?e6:tme}(x_))(eme===0?0:eme)},n6=N0([].push),r6=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=y1(ome),pme=$0(fme),hme=function(yme,_me){return l1(yme),_me===void 0?yme:J4?J4(yme,_me):function(){return yme.apply(_me,arguments)}}(lme,sme),bme=D2(pme),mme=0,vme=cme||t6,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:n6(gme,dme)}else switch(x_){case 4:return!1;case 7:n6(gme,dme)}return nme?-1:tme||ame?ame:gme}},o6={forEach:r6(0),map:r6(1),filter:r6(2),some:r6(3),every:r6(4),find:r6(5),findIndex:r6(6),filterReject:r6(7)},i6=o6.map;H2({target:"Array",proto:!0,forced:!V4("map")},{map:function(x_){return i6(this,x_,arguments.length>1?arguments[1]:void 0)}});var a6=U2?{}.toString:function(){return"[object "+K2(this)+"]"};function u6(x_){var eme=x_.children||[];return eme.length===0?[]:(eme[0]||{}).children||[]}function s6(x_){return u6(x_).every(function(eme){return!!eme.isHeader})}U2||p2(Object.prototype,"toString",a6,{unsafe:!0});var l6=d2.PROPER,c6=RegExp.prototype,f6=c6.toString,d6=N0(e4),p6=S0(function(){return f6.call({source:"a",flags:"b"})!="/a/b"}),h6=l6&&f6.name!="toString";(p6||h6)&&p2(RegExp.prototype,"toString",function(){var x_=z1(this),eme=X2(x_.source),$P=x_.flags;return"/"+eme+"/"+X2($P===void 0&&Y0(c6,x_)&&!("flags"in c6)?d6(x_):$P)},{unsafe:!0});var g6=k1("unscopables"),v6=Array.prototype;v6[g6]==null&&V1.f(v6,g6,{configurable:!0,value:g4(null)});var y6=o6.find,m6=!0;"find"in[]&&Array(1).find(function(){m6=!1}),H2({target:"Array",proto:!0,forced:m6},{find:function(x_){return y6(this,x_,arguments.length>1?arguments[1]:void 0)}}),v6[g6].find=!0;var b6=Function.prototype,w6=b6.apply,E6=b6.bind,D6=b6.call,S6=typeof Reflect=="object"&&Reflect.apply||(E6?D6.bind(w6):function(){return D6.apply(w6,arguments)}),x6=k1("species"),C6=RegExp.prototype,A6=function(x_,eme,$P,tme){var ame=k1(x_),nme=!S0(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!S0(function(){var lme=!1,sme=/a/;return x_==="split"&&((sme={}).constructor={},sme.constructor[x6]=function(){return sme},sme.flags="",sme[ame]=/./[ame]),sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=N0(/./[ame]),ome=eme(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=N0(lme),pme=sme.exec;return pme===T4||pme===C6.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});p2(String.prototype,x_,ome[0]),p2(C6,ame,ome[1])}tme&&U1(C6[ame],"sham",!0)},O6=k1("match"),k6=D0.TypeError,B6=k1("species"),F6=N0("".charAt),T6=N0("".charCodeAt),_6=N0("".slice),P6=function(x_){return function(eme,$P){var tme,ame,nme=X2(V0(eme)),rme=v2($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=T6(nme,rme))<55296||tme>56319||rme+1===ime||(ame=T6(nme,rme+1))<56320||ame>57343?x_?F6(nme,rme):tme:x_?_6(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},j6=P6(!0),N6=function(x_,eme,$P){return eme+($P?j6(x_,eme).length:1)},I6=D0.Array,L6=Math.max,R6=function(x_,eme,$P){for(var tme=D2(x_),ame=b2(eme,tme),nme=b2($P===void 0?tme:$P,tme),rme=I6(L6(nme-ame,0)),ime=0;ame<nme;ame++,ime++)$4(rme,ime,x_[ame]);return rme.length=ime,rme},M6=D0.TypeError,z6=function(x_,eme){var $P=x_.exec;if(W0($P)){var tme=A0($P,x_,eme);return tme!==null&&z1(tme),tme}if(R0(x_)==="RegExp")return A0(T4,x_,eme);throw M6("RegExp#exec called on incompatible receiver")},$6=o4.UNSUPPORTED_Y,H6=Math.min,V6=[].push,U6=N0(/./.exec),W6=N0(V6),G6=N0("".slice);A6("split",function(x_,eme,$P){var tme;return tme="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ame,nme){var rme,ime,ome=X2(V0(this)),lme=nme===void 0?4294967295:nme>>>0;if(lme===0)return[];if(ame===void 0)return[ome];if(!G0(rme=ame)||!((ime=rme[O6])!==void 0?ime:R0(rme)=="RegExp"))return A0(eme,ome,ame,lme);for(var sme,cme,dme,ume=[],fme=(ame.ignoreCase?"i":"")+(ame.multiline?"m":"")+(ame.unicode?"u":"")+(ame.sticky?"y":""),pme=0,hme=new RegExp(ame.source,fme+"g");(sme=A0(T4,hme,ome))&&!((cme=hme.lastIndex)>pme&&(W6(ume,G6(ome,pme,sme.index)),sme.length>1&&sme.index<ome.length&&S6(V6,ume,R6(sme,1)),dme=sme[0].length,pme=cme,ume.length>=lme));)hme.lastIndex===sme.index&&hme.lastIndex++;return pme===ome.length?!dme&&U6(hme,"")||W6(ume,""):W6(ume,G6(ome,pme)),ume.length>lme?R6(ume,0,lme):ume}:"0".split(void 0,0).length?function(ame,nme){return ame===void 0&&nme===0?[]:A0(eme,this,ame,nme)}:eme,[function(ame,nme){var rme=V0(this),ime=ame==null?void 0:c1(ame,x_);return ime?A0(ime,ame,rme,nme):A0(tme,X2(rme),ame,nme)},function(ame,nme){var rme=z1(this),ime=X2(ame),ome=$P(tme,rme,ime,nme,tme!==eme);if(ome.done)return ome.value;var lme=function(gme,yme){var _me,$me=z1(gme).constructor;return $me===void 0||(_me=z1($me)[B6])==null?yme:function(Cme){if(z4(Cme))return Cme;throw k6(u1(Cme)+" is not a constructor")}(_me)}(rme,RegExp),sme=rme.unicode,cme=(rme.ignoreCase?"i":"")+(rme.multiline?"m":"")+(rme.unicode?"u":"")+($6?"g":"y"),dme=new lme($6?"^(?:"+rme.source+")":rme,cme),ume=nme===void 0?4294967295:nme>>>0;if(ume===0)return[];if(ime.length===0)return z6(dme,ime)===null?[ime]:[];for(var fme=0,pme=0,hme=[];pme<ime.length;){dme.lastIndex=$6?0:pme;var bme,mme=z6(dme,$6?G6(ime,pme):ime);if(mme===null||(bme=H6(E2(dme.lastIndex+($6?pme:0)),ime.length))===fme)pme=N6(ime,pme,sme);else{if(W6(hme,G6(ime,fme,pme)),hme.length===ume)return hme;for(var vme=1;vme<=mme.length-1;vme++)if(W6(hme,mme[vme]),hme.length===ume)return hme;pme=fme=bme}}return W6(hme,G6(ime,fme)),hme}]},!!S0(function(){var x_=/(?:)/,eme=x_.exec;x_.exec=function(){return eme.apply(this,arguments)};var $P="ab".split(x_);return $P.length!==2||$P[0]!=="a"||$P[1]!=="b"}),$6);var q6=`	
\v\f\r                　\u2028\u2029\uFEFF`,K6=N0("".replace),Y6="["+q6+"]",X6=RegExp("^"+Y6+Y6+"*"),Z6=RegExp(Y6+Y6+"*$"),J6=function(x_){return function(eme){var $P=X2(V0(eme));return 1&x_&&($P=K6($P,X6,"")),2&x_&&($P=K6($P,Z6,"")),$P}},Q6={start:J6(1),end:J6(2),trim:J6(3)},e3=d2.PROPER,t3=Q6.trim;function n3(x_){return x_.length?x_[0].tagName.toLowerCase():""}H2({target:"String",proto:!0,forced:function(x_){return S0(function(){return!!q6[x_]()||"​᠎"[x_]()!=="​᠎"||e3&&q6[x_].name!==x_})}("trim")},{trim:function(){return t3(this)}}),H2({global:!0},{globalThis:D0}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),Vp&&(Mp.fn.attr=Vp),Gp&&(Mp.fn.val=Gp),rh&&(Mp.fn.html=rh),Wp&&(Mp.fn.dataset=Wp),zp&&(Mp.fn.addClass=zp),$p&&(Mp.fn.removeClass=$p),fh&&(Mp.fn.children=fh),th&&(Mp.fn.each=th),ch&&(Mp.fn.find=ch);var r3=!1,o3=0,i3=0,a3=null,u3=null,s3=Mp("body");function l3(x_){r3=!1,u3=null,a3=null,s3.off("mousemove",c3),s3.off("mouseup",l3)}s3.on("mousedown",function(x_){var eme=x_.target;if((eme.tagName==="TH"||eme.tagName==="TD")&&eme.style.cursor==="col-resize"){eme.style.cursor="auto",x_.preventDefault(),r3=!0;var $P=x_.clientX;o3=$P;var tme=eme.getBoundingClientRect().width;i3=tme,s3.on("mousemove",c3),s3.on("mouseup",l3)}});var c3=eg(function(x_){if(r3&&u3!=null&&a3!=null){x_.preventDefault();var eme=x_.clientX,$P=i3+(eme-o3);($P=Math.floor(100*$P)/100)<30&&($P=30),md.setNodes(u3,{width:$P.toString()},{at:a3})}},100),f3={type:"table",renderElem:function(x_,eme,$P){var tme=function(ime,ome){if(ime.isDisabled())return!1;var lme=ime.selection;if(lme==null||qf.isCollapsed(lme))return!0;var sme=lme.anchor,cme=lme.focus,dme=QO.findPath(ime,ome),ume=Bf.start(ime,dme),fme=Bf.end(ime,dme),pme=Vf.compare(sme,fme)<=0&&Vf.compare(sme,ume)>=0,hme=Vf.compare(cme,fme)<=0&&Vf.compare(cme,ume)>=0;return!!(pme&&hme&&Mf.equals(sme.path.slice(0,3),cme.path.slice(0,3)))}($P,x_),ame=x_.width,nme=ame===void 0?"auto":ame,rme=Pg("div",{className:"table-container","data-selected":QO.isNodeSelected($P,x_),on:{mousedown:function(ime){if(ime.target.tagName==="DIV"&&ime.preventDefault(),!$P.isDisabled()){var ome=QO.findPath($P,x_),lme=Bf.start($P,ome),sme=$P.selection;sme!=null?sme.anchor.path[0]!==ome[0]&&$P.select(lme):$P.select(lme)}}}},Pg("table",{width:nme,contentEditable:tme},Pg("colgroup",null,u6(x_).map(function(ime){var ome=ime.width;return Pg("col",{width:ome===void 0?"auto":ome})})),Pg("tbody",null,eme)));return rme}},d3={type:"table-row",renderElem:function(x_,eme,$P){return Pg("tr",null,eme)}},p3={type:"table-cell",renderElem:function(x_,eme,$P){var tme=function(dme,ume){var fme=QO.getParentNode(dme,ume);if(fme==null)return!1;var pme=QO.getParentNode(dme,fme);return pme!=null&&u6(pme).some(function(hme){return hme===ume})}($P,x_),ame=x_,nme=ame.colSpan,rme=nme===void 0?1:nme,ime=ame.rowSpan,ome=ime===void 0?1:ime,lme=ame.isHeader,sme=lme!==void 0&&lme;if(!tme)return Pg("td",{colSpan:rme,rowSpan:ome},eme);var cme=Pg(sme?"th":"td",{colSpan:rme,rowSpan:ome,style:{borderRightWidth:"3px"},on:{mousemove:eg(function(dme){var ume=this.elm;if(ume!=null){var fme=ume.getBoundingClientRect(),pme=fme.left,hme=fme.width,bme=fme.top,mme=fme.height,vme=dme.clientX,gme=dme.clientY;r3||(vme>pme+hme-5&&vme<pme+hme&&gme>bme&&gme<bme+mme?(ume.style.cursor="col-resize",u3=$P,a3=QO.findPath($P,x_)):r3||(ume.style.cursor="auto",u3=null,a3=null))}},100)}},eme);return cme}},h3={selector:"table",preParseHtml:function(x_){var eme=Mp(x_);if(n3(eme)!=="table")return x_;var $P=eme.find("tbody");if($P.length===0)return x_;var tme=eme.find("tr");return eme.append(tme),$P.remove(),eme[0]}},g3=o6.filter;H2({target:"Array",proto:!0,forced:!V4("filter")},{filter:function(x_){return g3(this,x_,arguments.length>1?arguments[1]:void 0)}});var v3=Math.floor,y3=N0("".charAt),m3=N0("".replace),b3=N0("".slice),w3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,E3=/\$([$&'`]|\d{1,2})/g,D3=function(x_,eme,$P,tme,ame,nme){var rme=$P+x_.length,ime=tme.length,ome=E3;return ame!==void 0&&(ame=y1(ame),ome=w3),m3(nme,ome,function(lme,sme){var cme;switch(y3(sme,0)){case"$":return"$";case"&":return x_;case"`":return b3(eme,0,$P);case"'":return b3(eme,rme);case"<":cme=ame[b3(sme,1,-1)];break;default:var dme=+sme;if(dme===0)return lme;if(dme>ime){var ume=v3(dme/10);return ume===0?lme:ume<=ime?tme[ume-1]===void 0?y3(sme,1):tme[ume-1]+y3(sme,1):lme}cme=tme[dme-1]}return cme===void 0?"":cme})},S3=k1("replace"),x3=Math.max,C3=Math.min,A3=N0([].concat),O3=N0([].push),k3=N0("".indexOf),B3=N0("".slice),F3="a".replace(/./,"$0")==="$0",T3=!!/./[S3]&&/./[S3]("a","$0")==="";A6("replace",function(x_,eme,$P){var tme=T3?"$":"$0";return[function(ame,nme){var rme=V0(this),ime=ame==null?void 0:c1(ame,S3);return ime?A0(ime,ame,rme,nme):A0(eme,X2(rme),ame,nme)},function(ame,nme){var rme=z1(this),ime=X2(ame);if(typeof nme=="string"&&k3(nme,tme)===-1&&k3(nme,"$<")===-1){var ome=$P(eme,rme,ime,nme);if(ome.done)return ome.value}var lme=W0(nme);lme||(nme=X2(nme));var sme=rme.global;if(sme){var cme=rme.unicode;rme.lastIndex=0}for(var dme=[];;){var ume=z6(rme,ime);if(ume===null||(O3(dme,ume),!sme))break;X2(ume[0])===""&&(rme.lastIndex=N6(ime,E2(rme.lastIndex),cme))}for(var fme,pme="",hme=0,bme=0;bme<dme.length;bme++){for(var mme=X2((ume=dme[bme])[0]),vme=x3(C3(v2(ume.index),ime.length),0),gme=[],yme=1;yme<ume.length;yme++)O3(gme,(fme=ume[yme])===void 0?fme:String(fme));var _me=ume.groups;if(lme){var $me=A3([mme],gme,vme,ime);_me!==void 0&&O3($me,_me);var Cme=X2(S6(nme,void 0,$me))}else Cme=D3(mme,ime,vme,gme,_me,nme);vme>=hme&&(pme+=B3(ime,hme,vme)+Cme,hme=vme+mme.length)}return pme+B3(ime,hme)}]},!!S0(function(){var x_=/./;return x_.exec=function(){var eme=[];return eme.groups={a:"7"},eme},"".replace(x_,"$<a>")!=="7"})||!F3||T3);var _3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_);(eme=eme.filter(function(ime){return!!ed.isText(ime)||!!$P.isInline(ime)})).length===0&&(eme=[{text:tme.text().replace(/\s+/gm," ")}]);var ame=parseInt(tme.attr("colSpan")||"1"),nme=parseInt(tme.attr("rowSpan")||"1"),rme=tme.attr("width")||"auto";return{type:"table-cell",isHeader:n3(tme)==="th",colSpan:ame,rowSpan:nme,width:rme,children:eme}}},P3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){return{type:"table-row",children:eme.filter(function(tme){return QO.getNodeType(tme)==="table-cell"})}}},j3={selector:"table:not([data-w-e-type])",parseElemHtml:function(x_,eme,$P){var tme=Mp(x_),ame="auto";return function(nme,rme){for(var ime="",ome=(nme.attr("style")||"").split(";"),lme=ome.length,sme=0;sme<lme;sme++){var cme=ome[sme];if(cme){var dme=cme.split(":");dme[0].trim()==="width"&&(ime=dme[1].trim())}}return ime}(tme)==="100%"&&(ame="100%"),tme.attr("width")==="100%"&&(ame="100%"),{type:"table",width:ame,children:eme.filter(function(nme){return QO.getNodeType(nme)==="table-row"})}}},N3=function(){function x_(){this.title=HP("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||!!QO.getSelectedElems(eme).some(function(tme){var ame=QO.getNodeType(tme);return ame==="pre"||ame==="table"||ame==="list-item"||!!eme.isVoid(tme)})},x_.prototype.getPanelContentElem=function(eme){var $P=this;if(this.$content)return this.$content[0];for(var tme=Mp('<div class="w-e-panel-content-table"></div>'),ame=Mp("<span>0 &times; 0</span>"),nme=Mp("<table></table>"),rme=0;rme<10;rme++){for(var ime=Mp("<tr></tr>"),ome=0;ome<10;ome++){var lme=Mp("<td></td>");lme.attr("data-x",ome.toString()),lme.attr("data-y",rme.toString()),ime.append(lme),lme.on("mouseenter",function(sme){var cme=sme.target;if(cme!=null){var dme=Mp(cme).dataset(),ume=dme.x,fme=dme.y;ame[0].innerHTML=ume+1+" &times; "+(fme+1),nme.children().each(function(pme){Mp(pme).children().each(function(hme){var bme=Mp(hme),mme=bme.dataset(),vme=mme.x,gme=mme.y;vme<=ume&&gme<=fme?bme.addClass("active"):bme.removeClass("active")})})}}),lme.on("click",function(sme){sme.preventDefault();var cme=sme.target;if(cme!=null){var dme=Mp(cme).dataset(),ume=dme.x,fme=dme.y;$P.insertTable(eme,fme+1,ume+1)}})}nme.append(ime)}return tme.append(nme),tme.append(ame),this.$content=tme,tme[0]},x_.prototype.insertTable=function(eme,$P,tme){var ame=parseInt($P,10),nme=parseInt(tme,10);if(ame&&nme&&!(ame<=0||nme<=0)){QO.isSelectedEmptyParagraph(eme)&&md.removeNodes(eme,{mode:"highest"});var rme=function(ime,ome){for(var lme=[],sme=0;sme<ime;sme++){for(var cme=[],dme=0;dme<ome;dme++){var ume={type:"table-cell",children:[{text:""}]};sme===0&&(ume.isHeader=!0),cme.push(ume)}lme.push({type:"table-row",children:cme})}return{type:"table",width:"auto",children:lme}}(ame,nme);md.insertNodes(eme,rme,{mode:"highest"})}},x_}(),I3=function(){function x_(){this.title=HP("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return eme.selection==null||QO.getSelectedNodeByType(eme,"table")==null},x_.prototype.exec=function(eme,$P){this.isDisabled(eme)||md.removeNodes(eme,{mode:"highest"})},x_}(),L3=function(){function x_(){this.title=HP("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=Y4(Bf.nodes(eme,{match:function(ume){return QO.checkNodeType(ume,"table-cell")},universal:!0}),1),ame=Y4(tme[0],2),nme=ame[0],rme=ame[1],ime=QO.getParentNode(eme,nme),ome=(ime==null?void 0:ime.children.length)||0;if(ome!==0){for(var lme={type:"table-row",children:[]},sme=0;sme<ome;sme++)lme.children.push({type:"table-cell",children:[{text:""}]});var cme=Mf.parent(rme),dme=Mf.next(cme);md.insertNodes(eme,lme,{at:dme})}}},x_}(),R3=function(){function x_(){this.title=HP("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table-row")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=Y4(Bf.nodes(eme,{match:function(ome){return QO.checkNodeType(ome,"table-row")},universal:!0}),1),ame=Y4(tme[0],2),nme=ame[0],rme=ame[1],ime=QO.getParentNode(eme,nme);((ime==null?void 0:ime.children.length)||0)<=1?md.removeNodes(eme,{mode:"highest"}):md.removeNodes(eme,{at:rme})}},x_}(),M3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},z3=j1("span").classList,$3=z3&&z3.constructor&&z3.constructor.prototype,H3=$3===Object.prototype?void 0:$3,V3=o6.forEach,U3=function(x_,eme){var $P=[].forEach;return!!$P&&S0(function(){$P.call(null,function(){throw 1},1)})}(),W3=U3?[].forEach:function(x_){return V3(this,x_,arguments.length>1?arguments[1]:void 0)},G3=function(x_){if(x_&&x_.forEach!==W3)try{U1(x_,"forEach",W3)}catch{x_.forEach=W3}};for(var q3 in M3)M3[q3]&&G3(D0[q3]&&D0[q3].prototype);G3(H3);var K3=function(){function x_(){this.title=HP("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=Y4(Bf.nodes(eme,{match:function(lme){return QO.checkNodeType(lme,"table-cell")},universal:!0}),1),ame=Y4(tme[0],2),nme=ame[0],rme=ame[1],ime=QO.getParentNode(eme,nme);if(ime!=null){var ome=QO.getParentNode(eme,ime);ome!=null&&(ome.children||[]).forEach(function(lme,sme){Sf.isElement(lme)&&(lme.children||[]).forEach(function(cme){var dme=QO.findPath(eme,cme);if(dme.length===rme.length&&v0(dme.slice(-1),rme.slice(-1))){var ume={type:"table-cell",children:[{text:""}]};sme===0&&s6(ome)&&(ume.isHeader=!0),md.insertNodes(eme,ume,{at:dme})}})})}}},x_}(),Y3=function(){function x_(){this.title=HP("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table-cell")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=Y4(Bf.nodes(eme,{match:function(sme){return QO.checkNodeType(sme,"table-cell")},universal:!0}),1),ame=Y4(tme[0],2),nme=ame[0],rme=ame[1],ime=QO.getParentNode(eme,nme),ome=(ime==null?void 0:ime.children.length)||0;if(!ime||ome<=1)md.removeNodes(eme,{mode:"highest"});else{var lme=QO.getParentNode(eme,ime);lme!=null&&(lme.children||[]).forEach(function(sme){Sf.isElement(sme)&&(sme.children||[]).forEach(function(cme){var dme=QO.findPath(eme,cme);dme.length===rme.length&&v0(dme.slice(-1),rme.slice(-1))&&md.removeNodes(eme,{at:dme})})})}}},x_}(),X3=function(){function x_(){this.title=HP("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){var $P=QO.getSelectedNodeByType(eme,"table");return $P!=null&&s6($P)},x_.prototype.isActive=function(eme){return!!this.getValue(eme)},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme=!$P,ame=QO.getSelectedNodeByType(eme,"table");ame!=null&&u6(ame).forEach(function(nme){return md.setNodes(eme,{isHeader:tme},{at:QO.findPath(eme,nme)})})}},x_}(),Z3=function(){function x_(){this.title=HP("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){var $P=QO.getSelectedNodeByType(eme,"table");return $P!=null&&$P.width==="100%"},x_.prototype.isActive=function(eme){return!!this.getValue(eme)},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||QO.getSelectedNodeByType(eme,"table")==null},x_.prototype.exec=function(eme,$P){if(!this.isDisabled(eme)){var tme={width:$P?"auto":"100%"};md.setNodes(eme,tme,{mode:"highest"})}},x_}(),J3={renderElems:[f3,d3,p3],elemsToHtml:[{type:"table",elemToHtml:function(x_,eme){var $P=x_.width;return'<table style="width: '+($P===void 0?"auto":$P)+';"><tbody>'+eme+"</tbody></table>"}},{type:"table-row",elemToHtml:function(x_,eme){return"<tr>"+eme+"</tr>"}},{type:"table-cell",elemToHtml:function(x_,eme){var $P=x_,tme=$P.colSpan,ame=tme===void 0?1:tme,nme=$P.rowSpan,rme=nme===void 0?1:nme,ime=$P.isHeader,ome=ime!==void 0&&ime,lme=$P.width,sme=ome?"th":"td";return"<"+sme+' colSpan="'+ame+'" rowSpan="'+rme+'" width="'+(lme===void 0?"auto":lme)+'">'+eme+"</"+sme+">"}}],preParseHtml:[h3],parseElemsHtml:[_3,P3,j3],menus:[{key:"insertTable",factory:function(){return new N3}},{key:"deleteTable",factory:function(){return new I3}},{key:"insertTableRow",factory:function(){return new L3}},{key:"deleteTableRow",factory:function(){return new R3}},{key:"insertTableCol",factory:function(){return new K3}},{key:"deleteTableCol",factory:function(){return new Y3}},{key:"tableHeader",factory:function(){return new X3}},{key:"tableFullWidth",factory:function(){return new Z3}}],editorPlugin:function(x_){var eme=x_.insertBreak,$P=x_.deleteBackward,tme=x_.deleteForward,ame=x_.normalizeNode,nme=x_.insertData,rme=x_.handleTab,ime=x_.selectAll,ome=x_;return ome.insertBreak=function(){QO.getSelectedNodeByType(ome,"table")==null?eme():ome.insertText(`
`)},ome.deleteBackward=function(lme){if(!X4(ome)){var sme=ome.selection;if(sme){var cme=Bf.before(ome,sme);if(cme){var dme=Z4(ome,cme),ume=Z4(ome,sme);if(dme&&!ume)return}}$P(lme)}},ome.handleTab=function(){var lme;if(QO.getSelectedNodeByType(ome,"table")){var sme=Bf.above(x_);QO.checkNodeType(sme[0],"table-cell")&&md.select(x_,sme[1]);var cme=Bf.next(x_);if(cme)cme[0]&&cme[0].text&&(cme=(lme=Bf.above(x_,{at:cme[1]}))!==null&&lme!==void 0?lme:cme),md.select(x_,cme[1]);else{var dme=ome.children||[],ume=dme.length;if(QO.checkNodeType(dme[ume-1],"table")){var fme=QO.genEmptyParagraph();md.insertNodes(ome,fme,{at:[ume]}),ome.handleTab()}}}else rme()},ome.deleteForward=function(lme){X4(ome)||tme(lme)},ome.normalizeNode=function(lme){var sme=Y4(lme,2),cme=sme[0],dme=sme[1];if(QO.getNodeType(cme)!=="table")return ame([cme,dme]);if(QO.isLastNode(ome,cme)){var ume=QO.genEmptyParagraph();md.insertNodes(ome,ume,{at:[dme[0]+1]})}},ome.insertData=function(lme){if(QO.getSelectedNodeByType(ome,"table")!=null){var sme=lme.getData("text/plain");sme===`
`||/<img[^>]+>/.test(lme.getData("text/html"))?nme(lme):Bf.insertText(ome,sme)}else nme(lme)},ome.selectAll=function(){var lme=ome.selection;if(lme!=null){var sme=QO.getSelectedNodeByType(ome,"table-cell");if(sme!=null){var cme=lme.anchor,dme=lme.focus;if(Mf.equals(cme.path.slice(0,3),dme.path.slice(0,3)))if(Nf.string(sme).length!==0){var ume=QO.findPath(ome,sme),fme={anchor:Bf.start(ome,ume),focus:Bf.end(ome,ume)};ome.select(fme)}else ime();else ime()}else ime()}else ime()},ome}};MP("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),MP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Q3=function(){return Q3=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},Q3.apply(this,arguments)};function e5(x_,eme,$P,tme){return new($P||($P=Promise))(function(ame,nme){function rme(lme){try{ome(tme.next(lme))}catch(sme){nme(sme)}}function ime(lme){try{ome(tme.throw(lme))}catch(sme){nme(sme)}}function ome(lme){var sme;lme.done?ame(lme.value):(sme=lme.value,sme instanceof $P?sme:new $P(function(cme){cme(sme)})).then(rme,ime)}ome((tme=tme.apply(x_,[])).next())})}function t5(x_,eme){var $P,tme,ame,nme,rme={label:0,sent:function(){if(1&ame[0])throw ame[1];return ame[1]},trys:[],ops:[]};return nme={next:ime(0),throw:ime(1),return:ime(2)},typeof Symbol=="function"&&(nme[Symbol.iterator]=function(){return this}),nme;function ime(ome){return function(lme){return function(sme){if($P)throw new TypeError("Generator is already executing.");for(;rme;)try{if($P=1,tme&&(ame=2&sme[0]?tme.return:sme[0]?tme.throw||((ame=tme.return)&&ame.call(tme),0):tme.next)&&!(ame=ame.call(tme,sme[1])).done)return ame;switch(tme=0,ame&&(sme=[2&sme[0],ame.value]),sme[0]){case 0:case 1:ame=sme;break;case 4:return rme.label++,{value:sme[1],done:!1};case 5:rme.label++,tme=sme[1],sme=[0];continue;case 7:sme=rme.ops.pop(),rme.trys.pop();continue;default:if(!((ame=(ame=rme.trys).length>0&&ame[ame.length-1])||sme[0]!==6&&sme[0]!==2)){rme=0;continue}if(sme[0]===3&&(!ame||sme[1]>ame[0]&&sme[1]<ame[3])){rme.label=sme[1];break}if(sme[0]===6&&rme.label<ame[1]){rme.label=ame[1],ame=sme;break}if(ame&&rme.label<ame[2]){rme.label=ame[2],rme.ops.push(sme);break}ame[2]&&rme.ops.pop(),rme.trys.pop();continue}sme=eme.call(x_,rme)}catch(cme){sme=[6,cme],tme=0}finally{$P=ame=0}if(5&sme[0])throw sme[1];return{value:sme[0]?sme[1]:void 0,done:!0}}([ome,lme])}}}function n5(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function r5(x_){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var eme,$P=x_[Symbol.asyncIterator];return $P?$P.call(x_):(x_=function(ame){var nme=typeof Symbol=="function"&&Symbol.iterator,rme=nme&&ame[nme],ime=0;if(rme)return rme.call(ame);if(ame&&typeof ame.length=="number")return{next:function(){return ame&&ime>=ame.length&&(ame=void 0),{value:ame&&ame[ime++],done:!ame}}};throw new TypeError(nme?"Object is not iterable.":"Symbol.iterator is not defined.")}(x_),eme={},tme("next"),tme("throw"),tme("return"),eme[Symbol.asyncIterator]=function(){return this},eme);function tme(ame){eme[ame]=x_[ame]&&function(nme){return new Promise(function(rme,ime){(function(ome,lme,sme,cme){Promise.resolve(cme).then(function(dme){ome({value:dme,done:sme})},lme)})(rme,ime,(nme=x_[ame](nme)).done,nme.value)})}}}var o5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i5(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var a5,u5,s5=function(x_){return x_&&x_.Math==Math&&x_},l5=s5(typeof globalThis=="object"&&globalThis)||s5(typeof window=="object"&&window)||s5(typeof self=="object"&&self)||s5(typeof o5=="object"&&o5)||function(){return this}()||Function("return this")(),c5=function(x_){try{return!!x_()}catch{return!0}},f5=!c5(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),d5=Function.prototype.call,p5=d5.bind?d5.bind(d5):function(){return d5.apply(d5,arguments)},h5={}.propertyIsEnumerable,g5=Object.getOwnPropertyDescriptor,v5={f:g5&&!h5.call({1:2},1)?function(x_){var eme=g5(this,x_);return!!eme&&eme.enumerable}:h5},y5=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},m5=Function.prototype,b5=m5.bind,w5=m5.call,E5=b5&&b5.bind(w5),D5=b5?function(x_){return x_&&E5(w5,x_)}:function(x_){return x_&&function(){return w5.apply(x_,arguments)}},S5=D5({}.toString),x5=D5("".slice),C5=function(x_){return x5(S5(x_),8,-1)},A5=l5.Object,O5=D5("".split),k5=c5(function(){return!A5("z").propertyIsEnumerable(0)})?function(x_){return C5(x_)=="String"?O5(x_,""):A5(x_)}:A5,B5=l5.TypeError,F5=function(x_){if(x_==null)throw B5("Can't call method on "+x_);return x_},T5=function(x_){return k5(F5(x_))},_5=function(x_){return typeof x_=="function"},P5=function(x_){return typeof x_=="object"?x_!==null:_5(x_)},j5=function(x_){return _5(x_)?x_:void 0},N5=function(x_,eme){return arguments.length<2?j5(l5[x_]):l5[x_]&&l5[x_][eme]},I5=D5({}.isPrototypeOf),L5=N5("navigator","userAgent")||"",R5=l5.process,M5=l5.Deno,z5=R5&&R5.versions||M5&&M5.version,$5=z5&&z5.v8;$5&&(u5=(a5=$5.split("."))[0]>0&&a5[0]<4?1:+(a5[0]+a5[1])),!u5&&L5&&(!(a5=L5.match(/Edge\/(\d+)/))||a5[1]>=74)&&(a5=L5.match(/Chrome\/(\d+)/))&&(u5=+a5[1]);var H5=u5,V5=!!Object.getOwnPropertySymbols&&!c5(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&H5&&H5<41}),U5=V5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",W5=l5.Object,G5=U5?function(x_){return typeof x_=="symbol"}:function(x_){var eme=N5("Symbol");return _5(eme)&&I5(eme.prototype,W5(x_))},q5=l5.String,K5=function(x_){try{return q5(x_)}catch{return"Object"}},Y5=l5.TypeError,X5=function(x_){if(_5(x_))return x_;throw Y5(K5(x_)+" is not a function")},Z5=function(x_,eme){var $P=x_[eme];return $P==null?void 0:X5($P)},J5=l5.TypeError,Q5=Object.defineProperty,e8=function(x_,eme){try{Q5(l5,x_,{value:eme,configurable:!0,writable:!0})}catch{l5[x_]=eme}return eme},t8=l5["__core-js_shared__"]||e8("__core-js_shared__",{}),n8=i5(function(x_){(x_.exports=function(eme,$P){return t8[eme]||(t8[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),r8=l5.Object,o8=function(x_){return r8(F5(x_))},i8=D5({}.hasOwnProperty),a8=Object.hasOwn||function(x_,eme){return i8(o8(x_),eme)},u8=0,s8=Math.random(),l8=D5(1 .toString),c8=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+l8(++u8+s8,36)},f8=n8("wks"),d8=l5.Symbol,p8=d8&&d8.for,h8=U5?d8:d8&&d8.withoutSetter||c8,g8=function(x_){if(!a8(f8,x_)||!V5&&typeof f8[x_]!="string"){var eme="Symbol."+x_;V5&&a8(d8,x_)?f8[x_]=d8[x_]:f8[x_]=U5&&p8?p8(eme):h8(eme)}return f8[x_]},v8=l5.TypeError,y8=g8("toPrimitive"),m8=function(x_){var eme=function($P,tme){if(!P5($P)||G5($P))return $P;var ame,nme=Z5($P,y8);if(nme){if(ame=p5(nme,$P,tme),!P5(ame)||G5(ame))return ame;throw v8("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(_5(ome=rme.toString)&&!P5(lme=p5(ome,rme))||_5(ome=rme.valueOf)&&!P5(lme=p5(ome,rme)))return lme;throw J5("Can't convert object to primitive value")}($P)}(x_,"string");return G5(eme)?eme:eme+""},b8=l5.document,w8=P5(b8)&&P5(b8.createElement),E8=function(x_){return w8?b8.createElement(x_):{}},D8=!f5&&!c5(function(){return Object.defineProperty(E8("div"),"a",{get:function(){return 7}}).a!=7}),S8=Object.getOwnPropertyDescriptor,x8={f:f5?S8:function(x_,eme){if(x_=T5(x_),eme=m8(eme),D8)try{return S8(x_,eme)}catch{}if(a8(x_,eme))return y5(!p5(v5.f,x_,eme),x_[eme])}},C8=l5.String,A8=l5.TypeError,O8=function(x_){if(P5(x_))return x_;throw A8(C8(x_)+" is not an object")},k8=l5.TypeError,B8=Object.defineProperty,F8={f:f5?B8:function(x_,eme,$P){if(O8(x_),eme=m8(eme),O8($P),D8)try{return B8(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw k8("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},T8=f5?function(x_,eme,$P){return F8.f(x_,eme,y5(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},_8=D5(Function.toString);_5(t8.inspectSource)||(t8.inspectSource=function(x_){return _8(x_)});var P8,j8,N8,I8=t8.inspectSource,L8=l5.WeakMap,R8=_5(L8)&&/native code/.test(I8(L8)),M8=n8("keys"),z8=function(x_){return M8[x_]||(M8[x_]=c8(x_))},$8={},H8=l5.TypeError,V8=l5.WeakMap;if(R8||t8.state){var U8=t8.state||(t8.state=new V8),W8=D5(U8.get),G8=D5(U8.has),q8=D5(U8.set);P8=function(x_,eme){if(G8(U8,x_))throw new H8("Object already initialized");return eme.facade=x_,q8(U8,x_,eme),eme},j8=function(x_){return W8(U8,x_)||{}},N8=function(x_){return G8(U8,x_)}}else{var K8=z8("state");$8[K8]=!0,P8=function(x_,eme){if(a8(x_,K8))throw new H8("Object already initialized");return eme.facade=x_,T8(x_,K8,eme),eme},j8=function(x_){return a8(x_,K8)?x_[K8]:{}},N8=function(x_){return a8(x_,K8)}}var Y8={set:P8,get:j8,has:N8,enforce:function(x_){return N8(x_)?j8(x_):P8(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!P5(eme)||($P=j8(eme)).type!==x_)throw H8("Incompatible receiver, "+x_+" required");return $P}}},X8=Function.prototype,Z8=f5&&Object.getOwnPropertyDescriptor,J8=a8(X8,"name"),Q8={EXISTS:J8,PROPER:J8&&(function(){}).name==="something",CONFIGURABLE:J8&&(!f5||f5&&Z8(X8,"name").configurable)},e7=i5(function(x_){var eme=Q8.CONFIGURABLE,$P=Y8.get,tme=Y8.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;_5(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a8(ime,"name")||eme&&ime.name!==ume)&&T8(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==l5?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:T8(nme,rme,ime)):cme?nme[rme]=ime:e8(rme,ime)})(Function.prototype,"toString",function(){return _5(this)&&$P(this).source||I8(this)})}),t7=Math.ceil,n7=Math.floor,r7=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?n7:t7)(eme)},o7=Math.max,i7=Math.min,a7=function(x_,eme){var $P=r7(x_);return $P<0?o7($P+eme,0):i7($P,eme)},u7=Math.min,s7=function(x_){return x_>0?u7(r7(x_),9007199254740991):0},l7=function(x_){return s7(x_.length)},c7=function(x_){return function(eme,$P,tme){var ame,nme=T5(eme),rme=l7(nme),ime=a7(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},f7={includes:c7(!0),indexOf:c7(!1)},d7=f7.indexOf,p7=D5([].push),h7=function(x_,eme){var $P,tme=T5(x_),ame=0,nme=[];for($P in tme)!a8($8,$P)&&a8(tme,$P)&&p7(nme,$P);for(;eme.length>ame;)a8(tme,$P=eme[ame++])&&(~d7(nme,$P)||p7(nme,$P));return nme},g7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],v7=g7.concat("length","prototype"),y7={f:Object.getOwnPropertyNames||function(x_){return h7(x_,v7)}},m7={f:Object.getOwnPropertySymbols},b7=D5([].concat),w7=N5("Reflect","ownKeys")||function(x_){var eme=y7.f(O8(x_)),$P=m7.f;return $P?b7(eme,$P(x_)):eme},E7=function(x_,eme){for(var $P=w7(eme),tme=F8.f,ame=x8.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];a8(x_,rme)||tme(x_,rme,ame(eme,rme))}},D7=/#|\.prototype\./,S7=function(x_,eme){var $P=C7[x7(x_)];return $P==O7||$P!=A7&&(_5(eme)?c5(eme):!!eme)},x7=S7.normalize=function(x_){return String(x_).replace(D7,".").toLowerCase()},C7=S7.data={},A7=S7.NATIVE="N",O7=S7.POLYFILL="P",k7=S7,B7=x8.f,F7=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?l5:lme?l5[ime]||e8(ime,{}):(l5[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=B7($P,tme))&&rme.value:$P[tme],!k7(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;E7(nme,ame)}(x_.sham||ame&&ame.sham)&&T8(nme,"sham",!0),e7($P,tme,nme,x_)}},T7={};T7[g8("toStringTag")]="z";var _7=String(T7)==="[object z]",P7=g8("toStringTag"),j7=l5.Object,N7=C5(function(){return arguments}())=="Arguments",I7=_7?C5:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=j7(x_),P7))=="string"?$P:N7?C5(eme):(tme=C5(eme))=="Object"&&_5(eme.callee)?"Arguments":tme},L7=l5.String,R7=function(x_){if(I7(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return L7(x_)},M7=`	
\v\f\r                　\u2028\u2029\uFEFF`,z7=D5("".replace),$7="["+M7+"]",H7=RegExp("^"+$7+$7+"*"),V7=RegExp($7+$7+"*$"),U7=function(x_){return function(eme){var $P=R7(F5(eme));return 1&x_&&($P=z7($P,H7,"")),2&x_&&($P=z7($P,V7,"")),$P}},W7={start:U7(1),end:U7(2),trim:U7(3)},G7=Q8.PROPER,q7=W7.trim;function K7(x_){return x_.length?x_[0].tagName.toLowerCase():""}function Y7(x_,eme,$P){eme===void 0&&(eme="auto"),$P===void 0&&($P="auto");var tme=Mp(x_);return tme.attr("width",eme),tme.attr("height",$P),tme[0].outerHTML}F7({target:"String",proto:!0,forced:c5(function(){return!!M7.trim()||"​᠎".trim()!=="​᠎"||G7&&M7.trim.name!=="trim"})},{trim:function(){return q7(this)}}),F7({global:!0},{globalThis:l5}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),Vp&&(Mp.fn.attr=Vp),Gp&&(Mp.fn.val=Gp),rh&&(Mp.fn.html=rh),sh&&(Mp.fn.parent=sh),Hp&&(Mp.fn.hasClass=Hp),ph&&(Mp.fn.empty=ph);var X7,Z7={type:"video",renderElem:function(x_,eme,$P){var tme,ame=x_,nme=ame.src,rme=nme===void 0?"":nme,ime=ame.poster,ome=ime===void 0?"":ime,lme=ame.width,sme=lme===void 0?"auto":lme,cme=ame.height,dme=cme===void 0?"auto":cme,ume=QO.isNodeSelected($P,x_);if(rme.trim().indexOf("<iframe ")===0)tme=Pg("div",{className:"w-e-textarea-video-container","data-selected":ume?"true":"",innerHTML:Y7(rme,sme,dme)});else{var fme=Pg("video",{poster:ome,controls:!0},Pg("source",{src:rme,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
 抱歉，浏览器不支持 video 视频`);sme!=="auto"&&(fme.data.width=sme),dme!=="auto"&&(fme.data.height=dme),tme=Pg("div",{className:"w-e-textarea-video-container","data-selected":ume?"true":""},fme)}return pg("div",{props:{contentEditable:!1},on:{mousedown:function(pme){return pme.preventDefault()}}},tme)}},J7={type:"video",elemToHtml:function(x_,eme){var $P=x_,tme=$P.src,ame=tme===void 0?"":tme,nme=$P.poster,rme=nme===void 0?"":nme,ime=$P.width,ome=ime===void 0?"auto":ime,lme=$P.height,sme=lme===void 0?"auto":lme,cme=`<div data-w-e-type="video" data-w-e-is-void>
`;return ame.trim().indexOf("<iframe ")===0?cme+=Y7(ame,ome,sme):cme+='<video poster="'+rme+'" controls="true" width="'+ome+'" height="'+sme+'"><source src="'+ame+'" type="video/mp4"/></video>',cme+`
</div>`}},Q7=Object.keys||function(x_){return h7(x_,g7)},e9=f5?Object.defineProperties:function(x_,eme){O8(x_);for(var $P,tme=T5(eme),ame=Q7(eme),nme=ame.length,rme=0;nme>rme;)F8.f(x_,$P=ame[rme++],tme[$P]);return x_},t9=N5("document","documentElement"),n9=z8("IE_PROTO"),r9=function(){},o9=function(x_){return"<script>"+x_+"<\/script>"},i9=function(x_){x_.write(o9("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},a9=function(){try{X7=new ActiveXObject("htmlfile")}catch{}var x_,eme;a9=typeof document<"u"?document.domain&&X7?i9(X7):((eme=E8("iframe")).style.display="none",t9.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(o9("document.F=Object")),x_.close(),x_.F):i9(X7);for(var $P=g7.length;$P--;)delete a9.prototype[g7[$P]];return a9()};$8[n9]=!0;var u9=Object.create||function(x_,eme){var $P;return x_!==null?(r9.prototype=O8(x_),$P=new r9,r9.prototype=null,$P[n9]=x_):$P=a9(),eme===void 0?$P:e9($P,eme)},s9=g8("unscopables"),l9=Array.prototype;l9[s9]==null&&F8.f(l9,s9,{configurable:!0,value:u9(null)});var c9=function(x_){l9[s9][x_]=!0},f9=f7.includes;F7({target:"Array",proto:!0},{includes:function(x_){return f9(this,x_,arguments.length>1?arguments[1]:void 0)}}),c9("includes");var d9={selector:"iframe,video,p",preParseHtml:function(x_){var eme=Mp(x_),$P=eme;if(K7(eme)==="p"){var tme=eme.children();if(tme.length===1){var ame=tme[0],nme=ame.tagName.toLowerCase();["iframe","video"].includes(nme)&&($P=Mp(ame))}}var rme=K7($P);if(rme!=="iframe"&&rme!=="video"||$P.parent().attr("data-w-e-type")==="video")return $P[0];var ime=Mp('<div data-w-e-type="video" data-w-e-is-void></div>');return ime.append($P),ime[0]}},p9=D5(D5.bind),h9=function(x_,eme){return X5(x_),eme===void 0?x_:p9?p9(x_,eme):function(){return x_.apply(eme,arguments)}},g9=Array.isArray||function(x_){return C5(x_)=="Array"},v9=function(){},y9=[],m9=N5("Reflect","construct"),b9=/^\s*(?:class|function)\b/,w9=D5(b9.exec),E9=!b9.exec(v9),D9=function(x_){if(!_5(x_))return!1;try{return m9(v9,y9,x_),!0}catch{return!1}},S9=!m9||c5(function(){var x_;return D9(D9.call)||!D9(Object)||!D9(function(){x_=!0})||x_})?function(x_){if(!_5(x_))return!1;switch(I7(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return E9||!!w9(b9,I8(x_))}:D9,x9=g8("species"),C9=l5.Array,A9=function(x_,eme){return new(function($P){var tme;return g9($P)&&(tme=$P.constructor,(S9(tme)&&(tme===C9||g9(tme.prototype))||P5(tme)&&(tme=tme[x9])===null)&&(tme=void 0)),tme===void 0?C9:tme}(x_))(eme===0?0:eme)},O9=D5([].push),k9=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=o8(ome),pme=k5(fme),hme=h9(lme,sme),bme=l7(pme),mme=0,vme=cme||A9,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:O9(gme,dme)}else switch(x_){case 4:return!1;case 7:O9(gme,dme)}return nme?-1:tme||ame?ame:gme}},B9={forEach:k9(0),map:k9(1),filter:k9(2),some:k9(3),every:k9(4),find:k9(5),findIndex:k9(6),filterReject:k9(7)},F9=B9.find,T9=!0;"find"in[]&&Array(1).find(function(){T9=!1}),F7({target:"Array",proto:!0,forced:T9},{find:function(x_){return F9(this,x_,arguments.length>1?arguments[1]:void 0)}}),c9("find");var _9=_7?{}.toString:function(){return"[object "+I7(this)+"]"};function P9(x_,eme,$P,tme){return eme===void 0&&(eme=""),$P===void 0&&($P="auto"),tme===void 0&&(tme="auto"),{type:"video",src:x_,poster:eme,width:$P,height:tme,children:[{text:""}]}}_7||e7(Object.prototype,"toString",_9,{unsafe:!0});var j9,N9,I9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(x_,eme,$P){var tme=Mp(x_),ame="",nme="",rme="auto",ime="auto",ome=tme.find("iframe");if(ome.length>0)return rme=ome.attr("width")||"auto",ime=ome.attr("height")||"auto",P9(ame=ome[0].outerHTML,nme,rme,ime);var lme=tme.find("video");return(ame=lme.attr("src")||"")||lme.length>0&&(ame=lme.find("source").attr("src")||""),rme=lme.attr("width")||"auto",ime=lme.attr("height")||"auto",P9(ame,nme=lme.attr("poster")||"",rme,ime)}},L9=function(){var x_=O8(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},R9=l5.RegExp,M9=c5(function(){var x_=R9("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),z9=M9||c5(function(){return!R9("a","y").sticky}),$9={BROKEN_CARET:M9||c5(function(){var x_=R9("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:z9,UNSUPPORTED_Y:M9},H9=l5.RegExp,V9=c5(function(){var x_=H9(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),U9=l5.RegExp,W9=c5(function(){var x_=U9("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),G9=Y8.get,q9=n8("native-string-replace",String.prototype.replace),K9=RegExp.prototype.exec,Y9=K9,X9=D5("".charAt),Z9=D5("".indexOf),J9=D5("".replace),Q9=D5("".slice),eee=(N9=/b*/g,p5(K9,j9=/a/,"a"),p5(K9,N9,"a"),j9.lastIndex!==0||N9.lastIndex!==0),tee=$9.BROKEN_CARET,nee=/()??/.exec("")[1]!==void 0;(eee||nee||tee||V9||W9)&&(Y9=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=G9(ome),sme=R7(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=p5(Y9,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=tee&&ome.sticky,fme=p5(L9,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=J9(fme,"y",""),Z9(fme,"g")===-1&&(fme+="g"),bme=Q9(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&X9(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),nee&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),eee&&(tme=ome.lastIndex),ame=p5(K9,ume?$P:ome,bme),ume?ame?(ame.input=Q9(ame.input,hme),ame[0]=Q9(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:eee&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),nee&&ame&&ame.length>1&&p5(q9,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=u9(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var ree=Y9;F7({target:"RegExp",proto:!0,forced:/./.exec!==ree},{exec:ree});var oee=Function.prototype,iee=oee.apply,aee=oee.bind,uee=oee.call,see=typeof Reflect=="object"&&Reflect.apply||(aee?uee.bind(iee):function(){return uee.apply(iee,arguments)}),lee=(g8("species"),RegExp.prototype),cee=D5("".charAt),fee=D5("".charCodeAt),dee=D5("".slice),pee=function(x_){return function(eme,$P){var tme,ame,nme=R7(F5(eme)),rme=r7($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=fee(nme,rme))<55296||tme>56319||rme+1===ime||(ame=fee(nme,rme+1))<56320||ame>57343?x_?cee(nme,rme):tme:x_?dee(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},hee={codeAt:pee(!1),charAt:pee(!0)},gee=hee.charAt,vee=function(x_,eme,$P){return eme+($P?gee(x_,eme).length:1)},yee=Math.floor,mee=D5("".charAt),bee=D5("".replace),wee=D5("".slice),Eee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dee=/\$([$&'`]|\d{1,2})/g,See=function(x_,eme,$P,tme,ame,nme){var rme=$P+x_.length,ime=tme.length,ome=Dee;return ame!==void 0&&(ame=o8(ame),ome=Eee),bee(nme,ome,function(lme,sme){var cme;switch(mee(sme,0)){case"$":return"$";case"&":return x_;case"`":return wee(eme,0,$P);case"'":return wee(eme,rme);case"<":cme=ame[wee(sme,1,-1)];break;default:var dme=+sme;if(dme===0)return lme;if(dme>ime){var ume=yee(dme/10);return ume===0?lme:ume<=ime?tme[ume-1]===void 0?mee(sme,1):tme[ume-1]+mee(sme,1):lme}cme=tme[dme-1]}return cme===void 0?"":cme})},xee=l5.TypeError,Cee=function(x_,eme){var $P=x_.exec;if(_5($P)){var tme=p5($P,x_,eme);return tme!==null&&O8(tme),tme}if(C5(x_)==="RegExp")return p5(ree,x_,eme);throw xee("RegExp#exec called on incompatible receiver")},Aee=g8("replace"),Oee=Math.max,kee=Math.min,Bee=D5([].concat),Fee=D5([].push),Tee=D5("".indexOf),_ee=D5("".slice),Pee="a".replace(/./,"$0")==="$0",jee=!!/./[Aee]&&/./[Aee]("a","$0")==="";function Nee(x_){return x_+"-"+Rh()}(function(x_,eme,$P,tme){var ame=g8(x_),nme=!c5(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!c5(function(){var lme=!1,sme=/a/;return sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=D5(/./[ame]),ome=function(lme,sme,cme){var dme=jee?"$":"$0";return[function(ume,fme){var pme=F5(this),hme=ume==null?void 0:Z5(ume,Aee);return hme?p5(hme,ume,pme,fme):p5(sme,R7(pme),ume,fme)},function(ume,fme){var pme=O8(this),hme=R7(ume);if(typeof fme=="string"&&Tee(fme,dme)===-1&&Tee(fme,"$<")===-1){var bme=cme(sme,pme,hme,fme);if(bme.done)return bme.value}var mme=_5(fme);mme||(fme=R7(fme));var vme=pme.global;if(vme){var gme=pme.unicode;pme.lastIndex=0}for(var yme=[];;){var _me=Cee(pme,hme);if(_me===null||(Fee(yme,_me),!vme))break;R7(_me[0])===""&&(pme.lastIndex=vee(hme,s7(pme.lastIndex),gme))}for(var $me,Cme="",Sme=0,Eme=0;Eme<yme.length;Eme++){for(var xme=R7((_me=yme[Eme])[0]),Tme=Oee(kee(r7(_me.index),hme.length),0),Ome=[],Rme=1;Rme<_me.length;Rme++)Fee(Ome,($me=_me[Rme])===void 0?$me:String($me));var Nme=_me.groups;if(mme){var Ime=Bee([xme],Ome,Tme,hme);Nme!==void 0&&Fee(Ime,Nme);var Pme=R7(see(fme,void 0,Ime))}else Pme=See(xme,hme,Tme,Ome,Nme,fme);Tme>=Sme&&(Cme+=_ee(hme,Sme,Tme)+Pme,Sme=Tme+xme.length)}return Cme+_ee(hme,Sme)}]}(0,""[x_],function(lme,sme,cme,dme,ume){var fme=D5(lme),pme=sme.exec;return pme===ree||pme===lee.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});e7(String.prototype,x_,ome[0]),e7(lee,ame,ome[1])}})("replace",0,!!c5(function(){var x_=/./;return x_.exec=function(){var eme=[];return eme.groups={a:"7"},eme},"".replace(x_,"$<a>")!=="7"})||!Pee||jee);var Iee=l5.Promise,Lee=function(x_,eme,$P){for(var tme in eme)e7(x_,tme,eme[tme],$P);return x_},Ree=l5.String,Mee=l5.TypeError,zee=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=D5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return O8(tme),function(nme){if(typeof nme=="object"||_5(nme))return nme;throw Mee("Can't set "+Ree(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),$ee=F8.f,Hee=g8("toStringTag"),Vee=function(x_,eme,$P){x_&&!a8(x_=$P?x_:x_.prototype,Hee)&&$ee(x_,Hee,{configurable:!0,value:eme})},Uee=g8("species"),Wee=l5.TypeError,Gee=function(x_,eme){if(I5(eme,x_))return x_;throw Wee("Incorrect invocation")},qee={},Kee=g8("iterator"),Yee=Array.prototype,Xee=g8("iterator"),Zee=function(x_){if(x_!=null)return Z5(x_,Xee)||Z5(x_,"@@iterator")||qee[I7(x_)]},Jee=l5.TypeError,Qee=function(x_,eme,$P){var tme,ame;O8(x_);try{if(!(tme=Z5(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=p5(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return O8(tme),$P},ete=l5.TypeError,tte=function(x_,eme){this.stopped=x_,this.result=eme},nte=tte.prototype,rte=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme,cme=$P&&$P.that,dme=!(!$P||!$P.AS_ENTRIES),ume=!(!$P||!$P.IS_ITERATOR),fme=!(!$P||!$P.INTERRUPTED),pme=h9(eme,cme),hme=function(mme){return tme&&Qee(tme,"normal",mme),new tte(!0,mme)},bme=function(mme){return dme?(O8(mme),fme?pme(mme[0],mme[1],hme):pme(mme[0],mme[1])):fme?pme(mme,hme):pme(mme)};if(ume)tme=x_;else{if(!(ame=Zee(x_)))throw ete(K5(x_)+" is not iterable");if((sme=ame)!==void 0&&(qee.Array===sme||Yee[Kee]===sme)){for(nme=0,rme=l7(x_);rme>nme;nme++)if((ime=bme(x_[nme]))&&I5(nte,ime))return ime;return new tte(!1)}tme=function(mme,vme){var gme=arguments.length<2?Zee(mme):vme;if(X5(gme))return O8(p5(gme,mme));throw Jee(K5(mme)+" is not iterable")}(x_,ame)}for(ome=tme.next;!(lme=p5(ome,tme)).done;){try{ime=bme(lme.value)}catch(mme){Qee(tme,"throw",mme)}if(typeof ime=="object"&&ime&&I5(nte,ime))return ime}return new tte(!1)},ote=g8("iterator"),ite=!1;try{var ate=0,ute={next:function(){return{done:!!ate++}},return:function(){ite=!0}};ute[ote]=function(){return this},Array.from(ute,function(){throw 2})}catch{}var ste,lte,cte,fte,dte=function(x_,eme){if(!ite)return!1;var $P=!1;try{var tme={};tme[ote]=function(){return{next:function(){return{done:$P=!0}}}},x_(tme)}catch{}return $P},pte=l5.TypeError,hte=g8("species"),gte=D5([].slice),vte=/(?:ipad|iphone|ipod).*applewebkit/i.test(L5),yte=C5(l5.process)=="process",mte=l5.setImmediate,bte=l5.clearImmediate,wte=l5.process,Ete=l5.Dispatch,Dte=l5.Function,Ste=l5.MessageChannel,xte=l5.String,Cte=0,Ate={};try{ste=l5.location}catch{}var Ote=function(x_){if(a8(Ate,x_)){var eme=Ate[x_];delete Ate[x_],eme()}},kte=function(x_){return function(){Ote(x_)}},Bte=function(x_){Ote(x_.data)},Fte=function(x_){l5.postMessage(xte(x_),ste.protocol+"//"+ste.host)};mte&&bte||(mte=function(x_){var eme=gte(arguments,1);return Ate[++Cte]=function(){see(_5(x_)?x_:Dte(x_),void 0,eme)},lte(Cte),Cte},bte=function(x_){delete Ate[x_]},yte?lte=function(x_){wte.nextTick(kte(x_))}:Ete&&Ete.now?lte=function(x_){Ete.now(kte(x_))}:Ste&&!vte?(fte=(cte=new Ste).port2,cte.port1.onmessage=Bte,lte=h9(fte.postMessage,fte)):l5.addEventListener&&_5(l5.postMessage)&&!l5.importScripts&&ste&&ste.protocol!=="file:"&&!c5(Fte)?(lte=Fte,l5.addEventListener("message",Bte,!1)):lte="onreadystatechange"in E8("script")?function(x_){t9.appendChild(E8("script")).onreadystatechange=function(){t9.removeChild(this),Ote(x_)}}:function(x_){setTimeout(kte(x_),0)});var Tte,_te,Pte,jte,Nte,Ite,Lte,Rte,Mte={set:mte,clear:bte},zte=/ipad|iphone|ipod/i.test(L5)&&l5.Pebble!==void 0,$te=/web0s(?!.*chrome)/i.test(L5),Hte=x8.f,Vte=Mte.set,Ute=l5.MutationObserver||l5.WebKitMutationObserver,Wte=l5.document,Gte=l5.process,qte=l5.Promise,Kte=Hte(l5,"queueMicrotask"),Yte=Kte&&Kte.value;Yte||(Tte=function(){var x_,eme;for(yte&&(x_=Gte.domain)&&x_.exit();_te;){eme=_te.fn,_te=_te.next;try{eme()}catch($P){throw _te?jte():Pte=void 0,$P}}Pte=void 0,x_&&x_.enter()},vte||yte||$te||!Ute||!Wte?!zte&&qte&&qte.resolve?((Lte=qte.resolve(void 0)).constructor=qte,Rte=h9(Lte.then,Lte),jte=function(){Rte(Tte)}):yte?jte=function(){Gte.nextTick(Tte)}:(Vte=h9(Vte,l5),jte=function(){Vte(Tte)}):(Nte=!0,Ite=Wte.createTextNode(""),new Ute(Tte).observe(Ite,{characterData:!0}),jte=function(){Ite.data=Nte=!Nte}));var Xte,Zte,Jte,Qte,ene=Yte||function(x_){var eme={fn:x_,next:void 0};Pte&&(Pte.next=eme),_te||(_te=eme,jte()),Pte=eme},tne=function(x_){var eme,$P;this.promise=new x_(function(tme,ame){if(eme!==void 0||$P!==void 0)throw TypeError("Bad Promise constructor");eme=tme,$P=ame}),this.resolve=X5(eme),this.reject=X5($P)},nne={f:function(x_){return new tne(x_)}},rne=function(x_){try{return{error:!1,value:x_()}}catch(eme){return{error:!0,value:eme}}},one=typeof window=="object",ine=Mte.set,ane=g8("species"),une="Promise",sne=Y8.getterFor(une),lne=Y8.set,cne=Y8.getterFor(une),fne=Iee&&Iee.prototype,dne=Iee,pne=fne,hne=l5.TypeError,gne=l5.document,vne=l5.process,yne=nne.f,mne=yne,bne=!!(gne&&gne.createEvent&&l5.dispatchEvent),wne=_5(l5.PromiseRejectionEvent),Ene=!1,Dne=k7(une,function(){var x_=I8(dne),eme=x_!==String(dne);if(!eme&&H5===66)return!0;if(H5>=51&&/native code/.test(x_))return!1;var $P=new dne(function(ame){ame(1)}),tme=function(ame){ame(function(){},function(){})};return($P.constructor={})[ane]=tme,!(Ene=$P.then(function(){})instanceof tme)||!eme&&one&&!wne}),Sne=Dne||!dte(function(x_){dne.all(x_).catch(function(){})}),xne=function(x_){var eme;return!(!P5(x_)||!_5(eme=x_.then))&&eme},Cne=function(x_,eme){if(!x_.notified){x_.notified=!0;var $P=x_.reactions;ene(function(){for(var tme=x_.value,ame=x_.state==1,nme=0;$P.length>nme;){var rme,ime,ome,lme=$P[nme++],sme=ame?lme.ok:lme.fail,cme=lme.resolve,dme=lme.reject,ume=lme.domain;try{sme?(ame||(x_.rejection===2&&Bne(x_),x_.rejection=1),sme===!0?rme=tme:(ume&&ume.enter(),rme=sme(tme),ume&&(ume.exit(),ome=!0)),rme===lme.promise?dme(hne("Promise-chain cycle")):(ime=xne(rme))?p5(ime,rme,cme,dme):cme(rme)):dme(tme)}catch(fme){ume&&!ome&&ume.exit(),dme(fme)}}x_.reactions=[],x_.notified=!1,eme&&!x_.rejection&&One(x_)})}},Ane=function(x_,eme,$P){var tme,ame;bne?((tme=gne.createEvent("Event")).promise=eme,tme.reason=$P,tme.initEvent(x_,!1,!0),l5.dispatchEvent(tme)):tme={promise:eme,reason:$P},!wne&&(ame=l5["on"+x_])?ame(tme):x_==="unhandledrejection"&&function(nme,rme){var ime=l5.console;ime&&ime.error&&(arguments.length==1?ime.error(nme):ime.error(nme,rme))}("Unhandled promise rejection",$P)},One=function(x_){p5(ine,l5,function(){var eme,$P=x_.facade,tme=x_.value;if(kne(x_)&&(eme=rne(function(){yte?vne.emit("unhandledRejection",tme,$P):Ane("unhandledrejection",$P,tme)}),x_.rejection=yte||kne(x_)?2:1,eme.error))throw eme.value})},kne=function(x_){return x_.rejection!==1&&!x_.parent},Bne=function(x_){p5(ine,l5,function(){var eme=x_.facade;yte?vne.emit("rejectionHandled",eme):Ane("rejectionhandled",eme,x_.value)})},Fne=function(x_,eme,$P){return function(tme){x_(eme,tme,$P)}},Tne=function(x_,eme,$P){x_.done||(x_.done=!0,$P&&(x_=$P),x_.value=eme,x_.state=2,Cne(x_,!0))},_ne=function(x_,eme,$P){if(!x_.done){x_.done=!0,$P&&(x_=$P);try{if(x_.facade===eme)throw hne("Promise can't be resolved itself");var tme=xne(eme);tme?ene(function(){var ame={done:!1};try{p5(tme,eme,Fne(_ne,ame,x_),Fne(Tne,ame,x_))}catch(nme){Tne(ame,nme,x_)}}):(x_.value=eme,x_.state=1,Cne(x_,!1))}catch(ame){Tne({done:!1},ame,x_)}}};if(Dne&&(pne=(dne=function(x_){Gee(this,pne),X5(x_),p5(Xte,this);var eme=sne(this);try{x_(Fne(_ne,eme),Fne(Tne,eme))}catch($P){Tne(eme,$P)}}).prototype,(Xte=function(x_){lne(this,{type:une,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lee(pne,{then:function(x_,eme){var $P=cne(this),tme=$P.reactions,ame=yne(function(nme,rme){var ime,ome=O8(nme).constructor;return ome===void 0||(ime=O8(ome)[hte])==null?rme:function(lme){if(S9(lme))return lme;throw pte(K5(lme)+" is not a constructor")}(ime)}(this,dne));return ame.ok=!_5(x_)||x_,ame.fail=_5(eme)&&eme,ame.domain=yte?vne.domain:void 0,$P.parent=!0,tme[tme.length]=ame,$P.state!=0&&Cne($P,!1),ame.promise},catch:function(x_){return this.then(void 0,x_)}}),Zte=function(){var x_=new Xte,eme=sne(x_);this.promise=x_,this.resolve=Fne(_ne,eme),this.reject=Fne(Tne,eme)},nne.f=yne=function(x_){return x_===dne||x_===Jte?new Zte(x_):mne(x_)},_5(Iee)&&fne!==Object.prototype)){Qte=fne.then,Ene||(e7(fne,"then",function(x_,eme){var $P=this;return new dne(function(tme,ame){p5(Qte,$P,tme,ame)}).then(x_,eme)},{unsafe:!0}),e7(fne,"catch",pne.catch,{unsafe:!0}));try{delete fne.constructor}catch{}zee&&zee(fne,pne)}function Pne(x_,eme,$P){return $P===void 0&&($P=""),e5(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme;return t5(this,function(sme){switch(sme.label){case 0:return eme?(x_.restoreSelection(),tme=x_.getMenuConfig("insertVideo"),ame=tme.onInsertedVideo,nme=tme.checkVideo,rme=tme.parseVideoSrc,[4,nme(eme,$P)]):[2];case 1:return typeof(ime=sme.sent())=="string"?(x_.alert(ime,"error"),[2]):ime==null?[2]:[4,rme(eme)];case 2:return(ome=sme.sent()).trim().indexOf("<iframe ")!==0&&(ome=ome.replace(/</g,"&lt;").replace(/>/g,"&gt;")),lme={type:"video",src:ome,poster:$P,children:[{text:""}]},Promise.resolve().then(function(){md.insertNodes(x_,lme)}),ame(lme),[2]}})})}function jne(){return Nee("w-e-insert-video")}F7({global:!0,wrap:!0,forced:Dne},{Promise:dne}),Vee(dne,une,!1),function(x_){var eme=N5("Promise"),$P=F8.f;f5&&eme&&!eme[Uee]&&$P(eme,Uee,{configurable:!0,get:function(){return this}})}(),Jte=N5(une),F7({target:une,stat:!0,forced:Dne},{reject:function(x_){var eme=yne(this);return p5(eme.reject,void 0,x_),eme.promise}}),F7({target:une,stat:!0,forced:Dne},{resolve:function(x_){return function(eme,$P){if(O8(eme),P5($P)&&$P.constructor===eme)return $P;var tme=nne.f(eme);return(0,tme.resolve)($P),tme.promise}(this,x_)}}),F7({target:une,stat:!0,forced:Sne},{all:function(x_){var eme=this,$P=yne(eme),tme=$P.resolve,ame=$P.reject,nme=rne(function(){var rme=X5(eme.resolve),ime=[],ome=0,lme=1;rte(x_,function(sme){var cme=ome++,dme=!1;lme++,p5(rme,eme,sme).then(function(ume){dme||(dme=!0,ime[cme]=ume,--lme||tme(ime))},ame)}),--lme||tme(ime)});return nme.error&&ame(nme.value),$P.promise},race:function(x_){var eme=this,$P=yne(eme),tme=$P.reject,ame=rne(function(){var nme=X5(eme.resolve);rte(x_,function(rme){p5(nme,eme,rme).then($P.resolve,tme)})});return ame.error&&tme(ame.value),$P.promise}});var Nne=function(){function x_(){this.title=HP("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=jne(),this.posterInputId=jne(),this.buttonId=jne()}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||!!QO.getSelectedElems(eme).some(function(tme){var ame=QO.getNodeType(tme);return ame==="pre"||ame==="list-item"||!!eme.isVoid(tme)})},x_.prototype.getModalPositionNode=function(eme){return null},x_.prototype.getModalContentElem=function(eme){var $P=this,tme=this,ame=tme.srcInputId,nme=tme.posterInputId,rme=tme.buttonId,ime=n5(S_(HP("videoModule.videoSrc"),ame,HP("videoModule.videoSrcPlaceHolder")),2),ome=ime[0],lme=ime[1],sme=n5(S_(HP("videoModule.videoPoster"),nme,HP("videoModule.videoPosterPlaceHolder")),2),cme=sme[0],dme=sme[1],ume=Mp(lme),fme=Mp(dme),pme=n5(C_(rme,HP("videoModule.ok")),1)[0];if(this.$content==null){var hme=Mp("<div></div>");hme.on("click","#"+rme,function(mme){return e5($P,void 0,void 0,function(){var vme,gme;return t5(this,function(yme){switch(yme.label){case 0:return mme.preventDefault(),vme=hme.find("#"+ame).val().trim(),gme=hme.find("#"+nme).val().trim(),[4,Pne(eme,vme,gme)];case 1:return yme.sent(),eme.hidePanelOrModal(),[2]}})})}),this.$content=hme}var bme=this.$content;return bme.empty(),bme.append(ome),bme.append(cme),bme.append(pme),ume.val(""),fme.val(""),setTimeout(function(){ume.focus()}),bme[0]},x_}(),Ine=D5([].join),Lne=k5!=Object,Rne=function(x_,eme){var $P=[].join;return!!$P&&c5(function(){$P.call(null,",",1)})}();F7({target:"Array",proto:!0,forced:Lne||!Rne},{join:function(x_){return Ine(T5(this),x_===void 0?",":x_)}});var Mne,zne,$ne,Hne=!c5(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),Vne=z8("IE_PROTO"),Une=l5.Object,Wne=Une.prototype,Gne=Hne?Une.getPrototypeOf:function(x_){var eme=o8(x_);if(a8(eme,Vne))return eme[Vne];var $P=eme.constructor;return _5($P)&&eme instanceof $P?$P.prototype:eme instanceof Une?Wne:null},qne=g8("iterator"),Kne=!1;[].keys&&("next"in($ne=[].keys())?(zne=Gne(Gne($ne)))!==Object.prototype&&(Mne=zne):Kne=!0);var Yne=Mne==null||c5(function(){var x_={};return Mne[qne].call(x_)!==x_});Yne&&(Mne={}),_5(Mne[qne])||e7(Mne,qne,function(){return this});var Xne={IteratorPrototype:Mne,BUGGY_SAFARI_ITERATORS:Kne},Zne=Xne.IteratorPrototype,Jne=function(){return this},Qne=Q8.PROPER,ere=Q8.CONFIGURABLE,tre=Xne.IteratorPrototype,nre=Xne.BUGGY_SAFARI_ITERATORS,rre=g8("iterator"),ore=function(){return this},ire=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=u9(Zne,{next:y5(1,mme)}),Vee(hme,gme,!1),qee[gme]=Jne})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!nre&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[rre]||dme["@@iterator"]||ame&&dme[ame],fme=!nre&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=Gne(pme.call(new x_)))!==Object.prototype&&ime.next&&(Gne(ime)!==tre&&(zee?zee(ime,tre):_5(ime[rre])||e7(ime,rre,ore)),Vee(ime,sme,!0)),Qne&&ame=="values"&&ume&&ume.name!=="values"&&(ere?T8(dme,"name","values"):(cme=!0,fme=function(){return p5(ume,this)})),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||F7({target:eme,proto:!0,forced:nre||cme},ome)),dme[rre]!==fme&&e7(dme,rre,fme,{name:ame}),qee[eme]=fme,ome},are=Y8.set,ure=Y8.getterFor("Array Iterator"),sre=ire(Array,"Array",function(x_,eme){are(this,{type:"Array Iterator",target:T5(x_),index:0,kind:eme})},function(){var x_=ure(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values");qee.Arguments=qee.Array,c9("keys"),c9("values"),c9("entries");var lre=hee.charAt,cre=Y8.set,fre=Y8.getterFor("String Iterator");ire(String,"String",function(x_){cre(this,{type:"String Iterator",string:R7(x_),index:0})},function(){var x_,eme=fre(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=lre($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var dre=function(x_,eme,$P){var tme=m8(eme);tme in x_?F8.f(x_,tme,y5(0,$P)):x_[tme]=$P},pre=l5.Array,hre=Math.max,gre=y7.f,vre=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yre={f:function(x_){return vre&&C5(x_)=="Window"?function(eme){try{return gre(eme)}catch{return function(tme,ame,nme){for(var rme=l7(tme),ime=a7(void 0,rme),ome=a7(rme,rme),lme=pre(hre(ome-ime,0)),sme=0;ime<ome;ime++,sme++)dre(lme,sme,tme[ime]);return lme.length=sme,lme}(vre)}}(x_):gre(T5(x_))}},mre=c5(function(){if(typeof ArrayBuffer=="function"){var x_=new ArrayBuffer(8);Object.isExtensible(x_)&&Object.defineProperty(x_,"a",{value:8})}}),bre=Object.isExtensible,wre=c5(function(){bre(1)})||mre?function(x_){return!!P5(x_)&&(!mre||C5(x_)!="ArrayBuffer")&&(!bre||bre(x_))}:bre,Ere=!c5(function(){return Object.isExtensible(Object.preventExtensions({}))}),Dre=i5(function(x_){var eme=F8.f,$P=!1,tme=c8("meta"),ame=0,nme=function(ime){eme(ime,tme,{value:{objectID:"O"+ame++,weakData:{}}})},rme=x_.exports={enable:function(){rme.enable=function(){},$P=!0;var ime=y7.f,ome=D5([].splice),lme={};lme[tme]=1,ime(lme).length&&(y7.f=function(sme){for(var cme=ime(sme),dme=0,ume=cme.length;dme<ume;dme++)if(cme[dme]===tme){ome(cme,dme,1);break}return cme},F7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yre.f}))},fastKey:function(ime,ome){if(!P5(ime))return typeof ime=="symbol"?ime:(typeof ime=="string"?"S":"P")+ime;if(!a8(ime,tme)){if(!wre(ime))return"F";if(!ome)return"E";nme(ime)}return ime[tme].objectID},getWeakData:function(ime,ome){if(!a8(ime,tme)){if(!wre(ime))return!0;if(!ome)return!1;nme(ime)}return ime[tme].weakData},onFreeze:function(ime){return Ere&&$P&&wre(ime)&&!a8(ime,tme)&&nme(ime),ime}};$8[tme]=!0}),Sre=Dre.getWeakData,xre=Y8.set,Cre=Y8.getterFor,Are=B9.find,Ore=B9.findIndex,kre=D5([].splice),Bre=0,Fre=function(x_){return x_.frozen||(x_.frozen=new Tre)},Tre=function(){this.entries=[]},_re=function(x_,eme){return Are(x_.entries,function($P){return $P[0]===eme})};Tre.prototype={get:function(x_){var eme=_re(this,x_);if(eme)return eme[1]},has:function(x_){return!!_re(this,x_)},set:function(x_,eme){var $P=_re(this,x_);$P?$P[1]=eme:this.entries.push([x_,eme])},delete:function(x_){var eme=Ore(this.entries,function($P){return $P[0]===x_});return~eme&&kre(this.entries,eme,1),!!~eme}};var Pre,jre={getConstructor:function(x_,eme,$P,tme){var ame=x_(function(ome,lme){Gee(ome,nme),xre(ome,{type:eme,id:Bre++,frozen:void 0}),lme!=null&&rte(lme,ome[tme],{that:ome,AS_ENTRIES:$P})}),nme=ame.prototype,rme=Cre(eme),ime=function(ome,lme,sme){var cme=rme(ome),dme=Sre(O8(lme),!0);return dme===!0?Fre(cme).set(lme,sme):dme[cme.id]=sme,ome};return Lee(nme,{delete:function(ome){var lme=rme(this);if(!P5(ome))return!1;var sme=Sre(ome);return sme===!0?Fre(lme).delete(ome):sme&&a8(sme,lme.id)&&delete sme[lme.id]},has:function(ome){var lme=rme(this);if(!P5(ome))return!1;var sme=Sre(ome);return sme===!0?Fre(lme).has(ome):sme&&a8(sme,lme.id)}}),Lee(nme,$P?{get:function(ome){var lme=rme(this);if(P5(ome)){var sme=Sre(ome);return sme===!0?Fre(lme).get(ome):sme?sme[lme.id]:void 0}},set:function(ome,lme){return ime(this,ome,lme)}}:{add:function(ome){return ime(this,ome,!0)}}),ame}},Nre=Y8.enforce,Ire=!l5.ActiveXObject&&"ActiveXObject"in l5,Lre=function(x_){return function(){return x_(this,arguments.length?arguments[0]:void 0)}},Rre=function(x_,eme,$P){var tme=x_.indexOf("Map")!==-1,ame=x_.indexOf("Weak")!==-1,nme=tme?"set":"add",rme=l5[x_],ime=rme&&rme.prototype,ome=rme,lme={},sme=function(hme){var bme=D5(ime[hme]);e7(ime,hme,hme=="add"?function(mme){return bme(this,mme===0?0:mme),this}:hme=="delete"?function(mme){return!(ame&&!P5(mme))&&bme(this,mme===0?0:mme)}:hme=="get"?function(mme){return ame&&!P5(mme)?void 0:bme(this,mme===0?0:mme)}:hme=="has"?function(mme){return!(ame&&!P5(mme))&&bme(this,mme===0?0:mme)}:function(mme,vme){return bme(this,mme===0?0:mme,vme),this})};if(k7(x_,!_5(rme)||!(ame||ime.forEach&&!c5(function(){new rme().entries().next()}))))ome=$P.getConstructor(eme,x_,tme,nme),Dre.enable();else if(k7(x_,!0)){var cme=new ome,dme=cme[nme](ame?{}:-0,1)!=cme,ume=c5(function(){cme.has(1)}),fme=dte(function(hme){new rme(hme)}),pme=!ame&&c5(function(){for(var hme=new rme,bme=5;bme--;)hme[nme](bme,bme);return!hme.has(-0)});fme||((ome=eme(function(hme,bme){Gee(hme,ime);var mme=function(vme,gme,yme){var _me,$me;return zee&&_5(_me=gme.constructor)&&_me!==yme&&P5($me=_me.prototype)&&$me!==yme.prototype&&zee(vme,$me),vme}(new rme,hme,ome);return bme!=null&&rte(bme,mme[nme],{that:mme,AS_ENTRIES:tme}),mme})).prototype=ime,ime.constructor=ome),(ume||pme)&&(sme("delete"),sme("has"),tme&&sme("get")),(pme||dme)&&sme(nme),ame&&ime.clear&&delete ime.clear}return lme[x_]=ome,F7({global:!0,forced:ome!=rme},lme),Vee(ome,x_),ame||$P.setStrong(ome,x_,tme),ome}("WeakMap",Lre,jre);if(R8&&Ire){Pre=jre.getConstructor(Lre,"WeakMap",!0),Dre.enable();var Mre=Rre.prototype,zre=D5(Mre.delete),$re=D5(Mre.has),Hre=D5(Mre.get),Vre=D5(Mre.set);Lee(Mre,{delete:function(x_){if(P5(x_)&&!wre(x_)){var eme=Nre(this);return eme.frozen||(eme.frozen=new Pre),zre(this,x_)||eme.frozen.delete(x_)}return zre(this,x_)},has:function(x_){if(P5(x_)&&!wre(x_)){var eme=Nre(this);return eme.frozen||(eme.frozen=new Pre),$re(this,x_)||eme.frozen.has(x_)}return $re(this,x_)},get:function(x_){if(P5(x_)&&!wre(x_)){var eme=Nre(this);return eme.frozen||(eme.frozen=new Pre),$re(this,x_)?Hre(this,x_):eme.frozen.get(x_)}return Hre(this,x_)},set:function(x_,eme){if(P5(x_)&&!wre(x_)){var $P=Nre(this);$P.frozen||($P.frozen=new Pre),$re(this,x_)?Vre(this,x_,eme):$P.frozen.set(x_,eme)}else Vre(this,x_,eme);return this}})}var Ure={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wre=E8("span").classList,Gre=Wre&&Wre.constructor&&Wre.constructor.prototype,qre=Gre===Object.prototype?void 0:Gre,Kre=g8("iterator"),Yre=g8("toStringTag"),Xre=sre.values,Zre=function(x_,eme){if(x_){if(x_[Kre]!==Xre)try{T8(x_,Kre,Xre)}catch{x_[Kre]=Xre}if(x_[Yre]||T8(x_,Yre,eme),Ure[eme]){for(var $P in sre)if(x_[$P]!==sre[$P])try{T8(x_,$P,sre[$P])}catch{x_[$P]=sre[$P]}}}};for(var Jre in Ure)Zre(l5[Jre]&&l5[Jre].prototype,Jre);Zre(qre,"DOMTokenList");var Qre=Q8.EXISTS,eoe=F8.f,toe=Function.prototype,noe=D5(toe.toString),roe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ooe=D5(roe.exec);f5&&!Qre&&eoe(toe,"name",{configurable:!0,get:function(){try{return ooe(roe,noe(this))[1]}catch{return""}}});var ioe=g8("species"),aoe=H5>=51||!c5(function(){var x_=[];return(x_.constructor={})[ioe]=function(){return{foo:1}},x_.slice(Boolean).foo!==1}),uoe=g8("species"),soe=l5.Array,loe=Math.max;function coe(x_){return x_.getMenuConfig("uploadVideo")}F7({target:"Array",proto:!0,forced:!aoe},{slice:function(x_,eme){var $P,tme,ame,nme=T5(this),rme=l7(nme),ime=a7(x_,rme),ome=a7(eme===void 0?rme:eme,rme);if(g9(nme)&&($P=nme.constructor,(S9($P)&&($P===soe||g9($P.prototype))||P5($P)&&($P=$P[uoe])===null)&&($P=void 0),$P===soe||$P===void 0))return gte(nme,ime,ome);for(tme=new($P===void 0?soe:$P)(loe(ome-ime,0)),ame=0;ime<ome;ime++,ame++)ime in nme&&dre(tme,ame,nme[ime]);return tme.length=ame,tme}});var foe=new WeakMap;function doe(x_,eme){return e5(this,void 0,void 0,function(){var $P,tme,ame,nme;return t5(this,function(rme){switch(rme.label){case 0:return $P=function(ime){var ome=foe.get(ime);if(ome!=null)return ome;var lme=coe(ime),sme=lme.onSuccess,cme=lme.onProgress,dme=lme.onFailed,ume=lme.customInsert,fme=lme.onError;return ome=K_(Q3(Q3({},lme),{onProgress:function(pme){ime.showProgressBar(pme),cme&&cme(pme)},onSuccess:function(pme,hme){if(ume)return ume(hme,function(Cme,Sme){return Pne(ime,Cme,Sme)}),void sme(pme,hme);var bme=hme.errno,mme=bme===void 0?1:bme,vme=hme.data,gme=vme===void 0?{}:vme;if(mme===0){var yme=gme.url,_me=yme===void 0?"":yme,$me=gme.poster;Pne(ime,_me,$me===void 0?"":$me),sme(pme,hme)}else dme(pme,hme)},onError:function(pme,hme,bme){fme(pme,hme,bme)}})),foe.set(ime,ome),ome}(x_),tme=eme.name,ame=eme.type,nme=eme.size,$P.addFile({name:tme,type:ame,size:nme,data:eme}),[4,$P.upload()];case 1:return rme.sent(),[2]}})})}var poe=function(){function x_(){this.title=HP("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){var tme=this.getMenuConfig(eme),ame=tme.allowedFileTypes,nme=ame===void 0?[]:ame,rme=tme.customBrowseAndUpload;if(rme)rme(function(sme,cme){return Pne(eme,sme,cme)});else{var ime="";nme.length>0&&(ime='accept="'+nme.join(", ")+'"');var ome=Mp("body"),lme=Mp('<input type="file" '+ime+" multiple/>");lme.hide(),ome.append(lme),lme.click(),lme.on("change",function(){var sme=lme[0].files;(function(cme,dme){var ume,fme;e5(this,void 0,void 0,function(){var pme,hme,bme,mme,vme,gme;return t5(this,function(yme){switch(yme.label){case 0:if(dme==null)return[2];pme=Array.prototype.slice.call(dme),hme=coe(cme).customUpload,yme.label=1;case 1:yme.trys.push([1,9,10,15]),bme=r5(pme),yme.label=2;case 2:return[4,bme.next()];case 3:return(mme=yme.sent()).done?[3,8]:(vme=mme.value,hme?[4,hme(vme,function(_me,$me){return Pne(cme,_me,$me)})]:[3,5]);case 4:return yme.sent(),[3,7];case 5:return[4,doe(cme,vme)];case 6:yme.sent(),yme.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return gme=yme.sent(),ume={error:gme},[3,15];case 10:return yme.trys.push([10,,13,14]),mme&&!mme.done&&(fme=bme.return)?[4,fme.call(bme)]:[3,12];case 11:yme.sent(),yme.label=12;case 12:return[3,14];case 13:if(ume)throw ume.error;return[7];case 14:return[7];case 15:return[2]}})})})(eme,sme)})}},x_.prototype.isDisabled=function(eme){var $P=eme.selection;return $P==null||!qf.isCollapsed($P)||!!QO.getSelectedElems(eme).some(function(tme){var ame=QO.getNodeType(tme);return ame==="pre"||ame==="list-item"||!!eme.isVoid(tme)})},x_.prototype.getMenuConfig=function(eme){return eme.getMenuConfig("uploadVideo")},x_}(),hoe=Q8.PROPER,goe=RegExp.prototype,voe=goe.toString,yoe=D5(L9),moe=c5(function(){return voe.call({source:"a",flags:"b"})!="/a/b"}),boe=hoe&&voe.name!="toString";function woe(){return Nee("w-e-insert-video")}(moe||boe)&&e7(RegExp.prototype,"toString",function(){var x_=O8(this),eme=R7(x_.source),$P=x_.flags;return"/"+eme+"/"+R7($P===void 0&&I5(goe,x_)&&!("flags"in goe)?yoe(x_):$P)},{unsafe:!0});var Eoe=function(){function x_(){this.title=HP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=woe(),this.heightInputId=woe(),this.buttonId=woe()}return x_.prototype.getSelectedVideoNode=function(eme){return QO.getSelectedNodeByType(eme,"video")},x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.exec=function(eme,$P){},x_.prototype.isDisabled=function(eme){return eme.selection==null||this.getSelectedVideoNode(eme)==null},x_.prototype.getModalPositionNode=function(eme){return this.getSelectedVideoNode(eme)},x_.prototype.getModalContentElem=function(eme){var $P=this,tme=$P.widthInputId,ame=$P.heightInputId,nme=$P.buttonId,rme=n5(S_(HP("videoModule.width"),tme,"auto"),2),ime=rme[0],ome=Mp(rme[1]),lme=n5(S_(HP("videoModule.height"),ame,"auto"),2),sme=lme[0],cme=Mp(lme[1]),dme=n5(C_(nme,HP("videoModule.ok")),1)[0];if(this.$content==null){var ume=Mp("<div></div>");ume.on("click","#"+nme,function(gme){gme.preventDefault();var yme=ume.find("#"+tme).val().trim(),_me=ume.find("#"+ame).val().trim(),$me=parseInt(yme),Cme=parseInt(_me),Sme=$me?$me.toString():"auto",Eme=Cme?Cme.toString():"auto";eme.restoreSelection(),md.setNodes(eme,{width:Sme,height:Eme},{match:function(xme){return QO.checkNodeType(xme,"video")}}),eme.hidePanelOrModal()}),this.$content=ume}var fme=this.$content;fme.empty(),fme.append(ime),fme.append(sme),fme.append(dme);var pme=this.getSelectedVideoNode(eme);if(pme==null)return fme[0];var hme=pme.width,bme=hme===void 0?"auto":hme,mme=pme.height,vme=mme===void 0?"auto":mme;return ome.val(bme),cme.val(vme),setTimeout(function(){ome.focus()}),fme[0]},x_}(),Doe={renderElems:[Z7],elemsToHtml:[J7],preParseHtml:[d9],parseElemsHtml:[I9],menus:[{key:"insertVideo",factory:function(){return new Nne},config:{onInsertedVideo:function(x_){},checkVideo:function(x_,eme){return!0},parseVideoSrc:function(x_){return x_}}},{key:"uploadVideo",factory:function(){return new poe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(x_){return x_},onProgress:function(x_){},onSuccess:function(x_,eme){},onFailed:function(x_,eme){console.error("'"+x_.name+"' upload failed",eme)},onError:function(x_,eme,$P){console.error("'"+x_.name+" upload error",eme,$P)}}},{key:"editVideoSize",factory:function(){return new Eoe}}],editorPlugin:function(x_){var eme=x_.isVoid,$P=x_.normalizeNode,tme=x_;return tme.isVoid=function(ame){return ame.type==="video"||eme(ame)},tme.normalizeNode=function(ame){var nme=n5(ame,2),rme=nme[0],ime=nme[1];return QO.getNodeType(rme)==="video"&&QO.isLastNode(tme,rme)&&md.insertNodes(tme,QO.genEmptyParagraph(),{at:[ime[0]+1]}),$P([rme,ime])},tme}};MP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),MP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Soe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xoe(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var Coe,Aoe,Ooe=function(x_){return x_&&x_.Math==Math&&x_},koe=Ooe(typeof globalThis=="object"&&globalThis)||Ooe(typeof window=="object"&&window)||Ooe(typeof self=="object"&&self)||Ooe(typeof Soe=="object"&&Soe)||function(){return this}()||Function("return this")(),Boe=function(x_){try{return!!x_()}catch{return!0}},Foe=!Boe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Toe=Function.prototype.call,_oe=Toe.bind?Toe.bind(Toe):function(){return Toe.apply(Toe,arguments)},Poe={}.propertyIsEnumerable,joe=Object.getOwnPropertyDescriptor,Noe={f:joe&&!Poe.call({1:2},1)?function(x_){var eme=joe(this,x_);return!!eme&&eme.enumerable}:Poe},Ioe=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},Loe=Function.prototype,Roe=Loe.bind,Moe=Loe.call,zoe=Roe&&Roe.bind(Moe),$oe=Roe?function(x_){return x_&&zoe(Moe,x_)}:function(x_){return x_&&function(){return Moe.apply(x_,arguments)}},Hoe=$oe({}.toString),Voe=$oe("".slice),Uoe=function(x_){return Voe(Hoe(x_),8,-1)},Woe=koe.Object,Goe=$oe("".split),qoe=Boe(function(){return!Woe("z").propertyIsEnumerable(0)})?function(x_){return Uoe(x_)=="String"?Goe(x_,""):Woe(x_)}:Woe,Koe=koe.TypeError,Yoe=function(x_){if(x_==null)throw Koe("Can't call method on "+x_);return x_},Xoe=function(x_){return qoe(Yoe(x_))},Zoe=function(x_){return typeof x_=="function"},Joe=function(x_){return typeof x_=="object"?x_!==null:Zoe(x_)},Qoe=function(x_){return Zoe(x_)?x_:void 0},eie=function(x_,eme){return arguments.length<2?Qoe(koe[x_]):koe[x_]&&koe[x_][eme]},tie=$oe({}.isPrototypeOf),nie=eie("navigator","userAgent")||"",rie=koe.process,oie=koe.Deno,iie=rie&&rie.versions||oie&&oie.version,aie=iie&&iie.v8;aie&&(Aoe=(Coe=aie.split("."))[0]>0&&Coe[0]<4?1:+(Coe[0]+Coe[1])),!Aoe&&nie&&(!(Coe=nie.match(/Edge\/(\d+)/))||Coe[1]>=74)&&(Coe=nie.match(/Chrome\/(\d+)/))&&(Aoe=+Coe[1]);var uie=Aoe,sie=!!Object.getOwnPropertySymbols&&!Boe(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&uie&&uie<41}),lie=sie&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cie=koe.Object,fie=lie?function(x_){return typeof x_=="symbol"}:function(x_){var eme=eie("Symbol");return Zoe(eme)&&tie(eme.prototype,cie(x_))},die=koe.String,pie=function(x_){try{return die(x_)}catch{return"Object"}},hie=koe.TypeError,gie=function(x_){if(Zoe(x_))return x_;throw hie(pie(x_)+" is not a function")},vie=function(x_,eme){var $P=x_[eme];return $P==null?void 0:gie($P)},yie=koe.TypeError,mie=Object.defineProperty,bie=function(x_,eme){try{mie(koe,x_,{value:eme,configurable:!0,writable:!0})}catch{koe[x_]=eme}return eme},wie=koe["__core-js_shared__"]||bie("__core-js_shared__",{}),Eie=xoe(function(x_){(x_.exports=function(eme,$P){return wie[eme]||(wie[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Die=koe.Object,Sie=function(x_){return Die(Yoe(x_))},xie=$oe({}.hasOwnProperty),Cie=Object.hasOwn||function(x_,eme){return xie(Sie(x_),eme)},Aie=0,Oie=Math.random(),kie=$oe(1 .toString),Bie=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+kie(++Aie+Oie,36)},Fie=Eie("wks"),Tie=koe.Symbol,_ie=Tie&&Tie.for,Pie=lie?Tie:Tie&&Tie.withoutSetter||Bie,jie=function(x_){if(!Cie(Fie,x_)||!sie&&typeof Fie[x_]!="string"){var eme="Symbol."+x_;sie&&Cie(Tie,x_)?Fie[x_]=Tie[x_]:Fie[x_]=lie&&_ie?_ie(eme):Pie(eme)}return Fie[x_]},Nie=koe.TypeError,Iie=jie("toPrimitive"),Lie=function(x_){var eme=function($P,tme){if(!Joe($P)||fie($P))return $P;var ame,nme=vie($P,Iie);if(nme){if(ame=_oe(nme,$P,tme),!Joe(ame)||fie(ame))return ame;throw Nie("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(Zoe(ome=rme.toString)&&!Joe(lme=_oe(ome,rme))||Zoe(ome=rme.valueOf)&&!Joe(lme=_oe(ome,rme)))return lme;throw yie("Can't convert object to primitive value")}($P)}(x_,"string");return fie(eme)?eme:eme+""},Rie=koe.document,Mie=Joe(Rie)&&Joe(Rie.createElement),zie=function(x_){return Mie?Rie.createElement(x_):{}},$ie=!Foe&&!Boe(function(){return Object.defineProperty(zie("div"),"a",{get:function(){return 7}}).a!=7}),Hie=Object.getOwnPropertyDescriptor,Vie={f:Foe?Hie:function(x_,eme){if(x_=Xoe(x_),eme=Lie(eme),$ie)try{return Hie(x_,eme)}catch{}if(Cie(x_,eme))return Ioe(!_oe(Noe.f,x_,eme),x_[eme])}},Uie=koe.String,Wie=koe.TypeError,Gie=function(x_){if(Joe(x_))return x_;throw Wie(Uie(x_)+" is not an object")},qie=koe.TypeError,Kie=Object.defineProperty,Yie={f:Foe?Kie:function(x_,eme,$P){if(Gie(x_),eme=Lie(eme),Gie($P),$ie)try{return Kie(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw qie("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},Xie=Foe?function(x_,eme,$P){return Yie.f(x_,eme,Ioe(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},Zie=$oe(Function.toString);Zoe(wie.inspectSource)||(wie.inspectSource=function(x_){return Zie(x_)});var Jie,Qie,eae,tae=wie.inspectSource,nae=koe.WeakMap,rae=Zoe(nae)&&/native code/.test(tae(nae)),oae=Eie("keys"),iae=function(x_){return oae[x_]||(oae[x_]=Bie(x_))},aae={},uae=koe.TypeError,sae=koe.WeakMap;if(rae||wie.state){var lae=wie.state||(wie.state=new sae),cae=$oe(lae.get),fae=$oe(lae.has),dae=$oe(lae.set);Jie=function(x_,eme){if(fae(lae,x_))throw new uae("Object already initialized");return eme.facade=x_,dae(lae,x_,eme),eme},Qie=function(x_){return cae(lae,x_)||{}},eae=function(x_){return fae(lae,x_)}}else{var pae=iae("state");aae[pae]=!0,Jie=function(x_,eme){if(Cie(x_,pae))throw new uae("Object already initialized");return eme.facade=x_,Xie(x_,pae,eme),eme},Qie=function(x_){return Cie(x_,pae)?x_[pae]:{}},eae=function(x_){return Cie(x_,pae)}}var hae={set:Jie,get:Qie,has:eae,enforce:function(x_){return eae(x_)?Qie(x_):Jie(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!Joe(eme)||($P=Qie(eme)).type!==x_)throw uae("Incompatible receiver, "+x_+" required");return $P}}},gae=Function.prototype,vae=Foe&&Object.getOwnPropertyDescriptor,yae=Cie(gae,"name"),mae={EXISTS:yae,PROPER:yae&&(function(){}).name==="something",CONFIGURABLE:yae&&(!Foe||Foe&&vae(gae,"name").configurable)},bae=xoe(function(x_){var eme=mae.CONFIGURABLE,$P=hae.get,tme=hae.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;Zoe(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cie(ime,"name")||eme&&ime.name!==ume)&&Xie(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==koe?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:Xie(nme,rme,ime)):cme?nme[rme]=ime:bie(rme,ime)})(Function.prototype,"toString",function(){return Zoe(this)&&$P(this).source||tae(this)})}),wae=Math.ceil,Eae=Math.floor,Dae=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?Eae:wae)(eme)},Sae=Math.max,xae=Math.min,Cae=function(x_,eme){var $P=Dae(x_);return $P<0?Sae($P+eme,0):xae($P,eme)},Aae=Math.min,Oae=function(x_){return x_>0?Aae(Dae(x_),9007199254740991):0},kae=function(x_){return Oae(x_.length)},Bae=function(x_){return function(eme,$P,tme){var ame,nme=Xoe(eme),rme=kae(nme),ime=Cae(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},Fae=Bae(!1),Tae=$oe([].push),_ae=function(x_,eme){var $P,tme=Xoe(x_),ame=0,nme=[];for($P in tme)!Cie(aae,$P)&&Cie(tme,$P)&&Tae(nme,$P);for(;eme.length>ame;)Cie(tme,$P=eme[ame++])&&(~Fae(nme,$P)||Tae(nme,$P));return nme},Pae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jae=Pae.concat("length","prototype"),Nae={f:Object.getOwnPropertyNames||function(x_){return _ae(x_,jae)}},Iae={f:Object.getOwnPropertySymbols},Lae=$oe([].concat),Rae=eie("Reflect","ownKeys")||function(x_){var eme=Nae.f(Gie(x_)),$P=Iae.f;return $P?Lae(eme,$P(x_)):eme},Mae=function(x_,eme){for(var $P=Rae(eme),tme=Yie.f,ame=Vie.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];Cie(x_,rme)||tme(x_,rme,ame(eme,rme))}},zae=/#|\.prototype\./,$ae=function(x_,eme){var $P=Vae[Hae(x_)];return $P==Wae||$P!=Uae&&(Zoe(eme)?Boe(eme):!!eme)},Hae=$ae.normalize=function(x_){return String(x_).replace(zae,".").toLowerCase()},Vae=$ae.data={},Uae=$ae.NATIVE="N",Wae=$ae.POLYFILL="P",Gae=$ae,qae=Vie.f,Kae=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?koe:lme?koe[ime]||bie(ime,{}):(koe[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=qae($P,tme))&&rme.value:$P[tme],!Gae(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;Mae(nme,ame)}(x_.sham||ame&&ame.sham)&&Xie(nme,"sham",!0),bae($P,tme,nme,x_)}},Yae=Array.isArray||function(x_){return Uoe(x_)=="Array"},Xae={};Xae[jie("toStringTag")]="z";var Zae=String(Xae)==="[object z]",Jae=jie("toStringTag"),Qae=koe.Object,eue=Uoe(function(){return arguments}())=="Arguments",tue=Zae?Uoe:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=Qae(x_),Jae))=="string"?$P:eue?Uoe(eme):(tme=Uoe(eme))=="Object"&&Zoe(eme.callee)?"Arguments":tme},nue=function(){},rue=[],oue=eie("Reflect","construct"),iue=/^\s*(?:class|function)\b/,aue=$oe(iue.exec),uue=!iue.exec(nue),sue=function(x_){if(!Zoe(x_))return!1;try{return oue(nue,rue,x_),!0}catch{return!1}},lue=!oue||Boe(function(){var x_;return sue(sue.call)||!sue(Object)||!sue(function(){x_=!0})||x_})?function(x_){if(!Zoe(x_))return!1;switch(tue(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uue||!!aue(iue,tae(x_))}:sue,cue=function(x_,eme,$P){var tme=Lie(eme);tme in x_?Yie.f(x_,tme,Ioe(0,$P)):x_[tme]=$P},fue=jie("species"),due=$oe([].slice),pue=uie>=51||!Boe(function(){var x_=[];return(x_.constructor={})[fue]=function(){return{foo:1}},x_.slice(Boolean).foo!==1}),hue=jie("species"),gue=koe.Array,vue=Math.max;Kae({target:"Array",proto:!0,forced:!pue},{slice:function(x_,eme){var $P,tme,ame,nme=Xoe(this),rme=kae(nme),ime=Cae(x_,rme),ome=Cae(eme===void 0?rme:eme,rme);if(Yae(nme)&&($P=nme.constructor,(lue($P)&&($P===gue||Yae($P.prototype))||Joe($P)&&($P=$P[hue])===null)&&($P=void 0),$P===gue||$P===void 0))return due(nme,ime,ome);for(tme=new($P===void 0?gue:$P)(vue(ome-ime,0)),ame=0;ime<ome;ime++,ame++)ime in nme&&cue(tme,ame,nme[ime]);return tme.length=ame,tme}});var yue=Zae?{}.toString:function(){return"[object "+tue(this)+"]"};Zae||bae(Object.prototype,"toString",yue,{unsafe:!0});var mue,bue=koe.String,wue=function(x_){if(tue(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return bue(x_)},Eue=function(){var x_=Gie(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},Due=koe.RegExp,Sue=Boe(function(){var x_=Due("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),xue=Sue||Boe(function(){return!Due("a","y").sticky}),Cue={BROKEN_CARET:Sue||Boe(function(){var x_=Due("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:xue,UNSUPPORTED_Y:Sue},Aue=Object.keys||function(x_){return _ae(x_,Pae)},Oue=Foe?Object.defineProperties:function(x_,eme){Gie(x_);for(var $P,tme=Xoe(eme),ame=Aue(eme),nme=ame.length,rme=0;nme>rme;)Yie.f(x_,$P=ame[rme++],tme[$P]);return x_},kue=eie("document","documentElement"),Bue=iae("IE_PROTO"),Fue=function(){},Tue=function(x_){return"<script>"+x_+"<\/script>"},_ue=function(x_){x_.write(Tue("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},Pue=function(){try{mue=new ActiveXObject("htmlfile")}catch{}var x_,eme;Pue=typeof document<"u"?document.domain&&mue?_ue(mue):((eme=zie("iframe")).style.display="none",kue.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(Tue("document.F=Object")),x_.close(),x_.F):_ue(mue);for(var $P=Pae.length;$P--;)delete Pue.prototype[Pae[$P]];return Pue()};aae[Bue]=!0;var jue,Nue,Iue=Object.create||function(x_,eme){var $P;return x_!==null?(Fue.prototype=Gie(x_),$P=new Fue,Fue.prototype=null,$P[Bue]=x_):$P=Pue(),eme===void 0?$P:Oue($P,eme)},Lue=koe.RegExp,Rue=Boe(function(){var x_=Lue(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),Mue=koe.RegExp,zue=Boe(function(){var x_=Mue("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),$ue=hae.get,Hue$1=Eie("native-string-replace",String.prototype.replace),Vue=RegExp.prototype.exec,Uue=Vue,Wue=$oe("".charAt),Gue=$oe("".indexOf),que=$oe("".replace),Kue=$oe("".slice),Yue=(Nue=/b*/g,_oe(Vue,jue=/a/,"a"),_oe(Vue,Nue,"a"),jue.lastIndex!==0||Nue.lastIndex!==0),Xue=Cue.BROKEN_CARET,Zue=/()??/.exec("")[1]!==void 0;(Yue||Zue||Xue||Rue||zue)&&(Uue=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=$ue(ome),sme=wue(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=_oe(Uue,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=Xue&&ome.sticky,fme=_oe(Eue,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=que(fme,"y",""),Gue(fme,"g")===-1&&(fme+="g"),bme=Kue(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&Wue(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),Zue&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),Yue&&(tme=ome.lastIndex),ame=_oe(Vue,ume?$P:ome,bme),ume?ame?(ame.input=Kue(ame.input,hme),ame[0]=Kue(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:Yue&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),Zue&&ame&&ame.length>1&&_oe(Hue$1,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=Iue(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var Jue=Uue;Kae({target:"RegExp",proto:!0,forced:/./.exec!==Jue},{exec:Jue});var Que=Function.prototype,ese=Que.apply,tse=Que.bind,nse=Que.call,rse=typeof Reflect=="object"&&Reflect.apply||(tse?nse.bind(ese):function(){return nse.apply(ese,arguments)}),ose=jie("species"),ise=RegExp.prototype,ase=jie("match"),use=koe.TypeError,sse=jie("species"),lse=function(x_,eme){var $P,tme=Gie(x_).constructor;return tme===void 0||($P=Gie(tme)[sse])==null?eme:function(ame){if(lue(ame))return ame;throw use(pie(ame)+" is not a constructor")}($P)},cse=$oe("".charAt),fse=$oe("".charCodeAt),dse=$oe("".slice),pse=function(x_){return function(eme,$P){var tme,ame,nme=wue(Yoe(eme)),rme=Dae($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=fse(nme,rme))<55296||tme>56319||rme+1===ime||(ame=fse(nme,rme+1))<56320||ame>57343?x_?cse(nme,rme):tme:x_?dse(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},hse={codeAt:pse(!1),charAt:pse(!0)},gse=hse.charAt,vse=function(x_,eme,$P){return eme+($P?gse(x_,eme).length:1)},yse=koe.Array,mse=Math.max,bse=function(x_,eme,$P){for(var tme=kae(x_),ame=Cae(eme,tme),nme=Cae($P===void 0?tme:$P,tme),rme=yse(mse(nme-ame,0)),ime=0;ame<nme;ame++,ime++)cue(rme,ime,x_[ame]);return rme.length=ime,rme},wse=koe.TypeError,Ese=function(x_,eme){var $P=x_.exec;if(Zoe($P)){var tme=_oe($P,x_,eme);return tme!==null&&Gie(tme),tme}if(Uoe(x_)==="RegExp")return _oe(Jue,x_,eme);throw wse("RegExp#exec called on incompatible receiver")},Dse=Cue.UNSUPPORTED_Y,Sse=Math.min,xse=[].push,Cse=$oe(/./.exec),Ase=$oe(xse),Ose=$oe("".slice);(function(x_,eme,$P,tme){var ame=jie(x_),nme=!Boe(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!Boe(function(){var lme=!1,sme=/a/;return(sme={}).constructor={},sme.constructor[ose]=function(){return sme},sme.flags="",sme[ame]=/./[ame],sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=$oe(/./[ame]),ome=function(lme,sme,cme){var dme;return dme="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ume,fme){var pme,hme,bme=wue(Yoe(this)),mme=fme===void 0?4294967295:fme>>>0;if(mme===0)return[];if(ume===void 0)return[bme];if(!Joe(pme=ume)||!((hme=pme[ase])!==void 0?hme:Uoe(pme)=="RegExp"))return _oe(sme,bme,ume,mme);for(var vme,gme,yme,_me=[],$me=(ume.ignoreCase?"i":"")+(ume.multiline?"m":"")+(ume.unicode?"u":"")+(ume.sticky?"y":""),Cme=0,Sme=new RegExp(ume.source,$me+"g");(vme=_oe(Jue,Sme,bme))&&!((gme=Sme.lastIndex)>Cme&&(Ase(_me,Ose(bme,Cme,vme.index)),vme.length>1&&vme.index<bme.length&&rse(xse,_me,bse(vme,1)),yme=vme[0].length,Cme=gme,_me.length>=mme));)Sme.lastIndex===vme.index&&Sme.lastIndex++;return Cme===bme.length?!yme&&Cse(Sme,"")||Ase(_me,""):Ase(_me,Ose(bme,Cme)),_me.length>mme?bse(_me,0,mme):_me}:"0".split(void 0,0).length?function(ume,fme){return ume===void 0&&fme===0?[]:_oe(sme,this,ume,fme)}:sme,[function(ume,fme){var pme=Yoe(this),hme=ume==null?void 0:vie(ume,lme);return hme?_oe(hme,ume,pme,fme):_oe(dme,wue(pme),ume,fme)},function(ume,fme){var pme=Gie(this),hme=wue(ume),bme=cme(dme,pme,hme,fme,dme!==sme);if(bme.done)return bme.value;var mme=lse(pme,RegExp),vme=pme.unicode,gme=(pme.ignoreCase?"i":"")+(pme.multiline?"m":"")+(pme.unicode?"u":"")+(Dse?"g":"y"),yme=new mme(Dse?"^(?:"+pme.source+")":pme,gme),_me=fme===void 0?4294967295:fme>>>0;if(_me===0)return[];if(hme.length===0)return Ese(yme,hme)===null?[hme]:[];for(var $me=0,Cme=0,Sme=[];Cme<hme.length;){yme.lastIndex=Dse?0:Cme;var Eme,xme=Ese(yme,Dse?Ose(hme,Cme):hme);if(xme===null||(Eme=Sse(Oae(yme.lastIndex+(Dse?Cme:0)),hme.length))===$me)Cme=vse(hme,Cme,vme);else{if(Ase(Sme,Ose(hme,$me,Cme)),Sme.length===_me)return Sme;for(var Tme=1;Tme<=xme.length-1;Tme++)if(Ase(Sme,xme[Tme]),Sme.length===_me)return Sme;Cme=$me=Eme}}return Ase(Sme,Ose(hme,$me)),Sme}]}(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=$oe(lme),pme=sme.exec;return pme===Jue||pme===ise.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});bae(String.prototype,x_,ome[0]),bae(ise,ame,ome[1])}tme&&Xie(ise[ame],"sham",!0)})("split",0,!!Boe(function(){var x_=/(?:)/,eme=x_.exec;x_.exec=function(){return eme.apply(this,arguments)};var $P="ab".split(x_);return $P.length!==2||$P[0]!=="a"||$P[1]!=="b"}),Dse);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var kse=function(){return kse=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},kse.apply(this,arguments)};function Bse(x_,eme,$P,tme){return new($P||($P=Promise))(function(ame,nme){function rme(lme){try{ome(tme.next(lme))}catch(sme){nme(sme)}}function ime(lme){try{ome(tme.throw(lme))}catch(sme){nme(sme)}}function ome(lme){var sme;lme.done?ame(lme.value):(sme=lme.value,sme instanceof $P?sme:new $P(function(cme){cme(sme)})).then(rme,ime)}ome((tme=tme.apply(x_,[])).next())})}function Fse(x_,eme){var $P,tme,ame,nme,rme={label:0,sent:function(){if(1&ame[0])throw ame[1];return ame[1]},trys:[],ops:[]};return nme={next:ime(0),throw:ime(1),return:ime(2)},typeof Symbol=="function"&&(nme[Symbol.iterator]=function(){return this}),nme;function ime(ome){return function(lme){return function(sme){if($P)throw new TypeError("Generator is already executing.");for(;rme;)try{if($P=1,tme&&(ame=2&sme[0]?tme.return:sme[0]?tme.throw||((ame=tme.return)&&ame.call(tme),0):tme.next)&&!(ame=ame.call(tme,sme[1])).done)return ame;switch(tme=0,ame&&(sme=[2&sme[0],ame.value]),sme[0]){case 0:case 1:ame=sme;break;case 4:return rme.label++,{value:sme[1],done:!1};case 5:rme.label++,tme=sme[1],sme=[0];continue;case 7:sme=rme.ops.pop(),rme.trys.pop();continue;default:if(!((ame=(ame=rme.trys).length>0&&ame[ame.length-1])||sme[0]!==6&&sme[0]!==2)){rme=0;continue}if(sme[0]===3&&(!ame||sme[1]>ame[0]&&sme[1]<ame[3])){rme.label=sme[1];break}if(sme[0]===6&&rme.label<ame[1]){rme.label=ame[1],ame=sme;break}if(ame&&rme.label<ame[2]){rme.label=ame[2],rme.ops.push(sme);break}ame[2]&&rme.ops.pop(),rme.trys.pop();continue}sme=eme.call(x_,rme)}catch(cme){sme=[6,cme],tme=0}finally{$P=ame=0}if(5&sme[0])throw sme[1];return{value:sme[0]?sme[1]:void 0,done:!0}}([ome,lme])}}}function Tse(x_){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var eme,$P=x_[Symbol.asyncIterator];return $P?$P.call(x_):(x_=function(ame){var nme=typeof Symbol=="function"&&Symbol.iterator,rme=nme&&ame[nme],ime=0;if(rme)return rme.call(ame);if(ame&&typeof ame.length=="number")return{next:function(){return ame&&ime>=ame.length&&(ame=void 0),{value:ame&&ame[ime++],done:!ame}}};throw new TypeError(nme?"Object is not iterable.":"Symbol.iterator is not defined.")}(x_),eme={},tme("next"),tme("throw"),tme("return"),eme[Symbol.asyncIterator]=function(){return this},eme);function tme(ame){eme[ame]=x_[ame]&&function(nme){return new Promise(function(rme,ime){(function(ome,lme,sme,cme){Promise.resolve(cme).then(function(dme){ome({value:dme,done:sme})},lme)})(rme,ime,(nme=x_[ame](nme)).done,nme.value)})}}}var _se=jie("unscopables"),Pse=Array.prototype;Pse[_se]==null&&Yie.f(Pse,_se,{configurable:!0,value:Iue(null)});var jse,Nse,Ise,Lse=function(x_){Pse[_se][x_]=!0},Rse={},Mse=!Boe(function(){function x_(){}return x_.prototype.constructor=null,Object.getPrototypeOf(new x_)!==x_.prototype}),zse=iae("IE_PROTO"),$se=koe.Object,Hse=$se.prototype,Vse=Mse?$se.getPrototypeOf:function(x_){var eme=Sie(x_);if(Cie(eme,zse))return eme[zse];var $P=eme.constructor;return Zoe($P)&&eme instanceof $P?$P.prototype:eme instanceof $se?Hse:null},Use=jie("iterator"),Wse=!1;[].keys&&("next"in(Ise=[].keys())?(Nse=Vse(Vse(Ise)))!==Object.prototype&&(jse=Nse):Wse=!0);var Gse=jse==null||Boe(function(){var x_={};return jse[Use].call(x_)!==x_});Gse&&(jse={}),Zoe(jse[Use])||bae(jse,Use,function(){return this});var qse={IteratorPrototype:jse,BUGGY_SAFARI_ITERATORS:Wse},Kse=Yie.f,Yse=jie("toStringTag"),Xse=function(x_,eme,$P){x_&&!Cie(x_=$P?x_:x_.prototype,Yse)&&Kse(x_,Yse,{configurable:!0,value:eme})},Zse=qse.IteratorPrototype,Jse=function(){return this},Qse=koe.String,ele=koe.TypeError,tle=Object.setPrototypeOf||("__proto__"in{}?function(){var x_,eme=!1,$P={};try{(x_=$oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))($P,[]),eme=$P instanceof Array}catch{}return function(tme,ame){return Gie(tme),function(nme){if(typeof nme=="object"||Zoe(nme))return nme;throw ele("Can't set "+Qse(nme)+" as a prototype")}(ame),eme?x_(tme,ame):tme.__proto__=ame,tme}}():void 0),nle=mae.PROPER,rle=mae.CONFIGURABLE,ole=qse.IteratorPrototype,ile=qse.BUGGY_SAFARI_ITERATORS,ale=jie("iterator"),ule=function(){return this},sle=function(x_,eme,$P,tme,ame,nme,rme){(function(hme,bme,mme,vme){var gme=bme+" Iterator";hme.prototype=Iue(Zse,{next:Ioe(1,mme)}),Xse(hme,gme,!1),Rse[gme]=Jse})($P,eme,tme);var ime,ome,lme=function(hme){if(hme===ame&&fme)return fme;if(!ile&&hme in dme)return dme[hme];switch(hme){case"keys":case"values":case"entries":return function(){return new $P(this,hme)}}return function(){return new $P(this)}},sme=eme+" Iterator",cme=!1,dme=x_.prototype,ume=dme[ale]||dme["@@iterator"]||ame&&dme[ame],fme=!ile&&ume||lme(ame),pme=eme=="Array"&&dme.entries||ume;return pme&&(ime=Vse(pme.call(new x_)))!==Object.prototype&&ime.next&&(Vse(ime)!==ole&&(tle?tle(ime,ole):Zoe(ime[ale])||bae(ime,ale,ule)),Xse(ime,sme,!0)),nle&&ame=="values"&&ume&&ume.name!=="values"&&(rle?Xie(dme,"name","values"):(cme=!0,fme=function(){return _oe(ume,this)})),ame&&(ome={values:lme("values"),keys:lme("keys"),entries:lme("entries")},rme||Kae({target:eme,proto:!0,forced:ile||cme},ome)),dme[ale]!==fme&&bae(dme,ale,fme,{name:ame}),Rse[eme]=fme,ome},lle=hae.set,cle=hae.getterFor("Array Iterator"),fle=sle(Array,"Array",function(x_,eme){lle(this,{type:"Array Iterator",target:Xoe(x_),index:0,kind:eme})},function(){var x_=cle(this),eme=x_.target,$P=x_.kind,tme=x_.index++;return!eme||tme>=eme.length?(x_.target=void 0,{value:void 0,done:!0}):$P=="keys"?{value:tme,done:!1}:$P=="values"?{value:eme[tme],done:!1}:{value:[tme,eme[tme]],done:!1}},"values");Rse.Arguments=Rse.Array,Lse("keys"),Lse("values"),Lse("entries");var dle=hse.charAt,ple=hae.set,hle=hae.getterFor("String Iterator");sle(String,"String",function(x_){ple(this,{type:"String Iterator",string:wue(x_),index:0})},function(){var x_,eme=hle(this),$P=eme.string,tme=eme.index;return tme>=$P.length?{value:void 0,done:!0}:(x_=dle($P,tme),eme.index+=x_.length,{value:x_,done:!1})});var gle=function(x_,eme,$P){for(var tme in eme)bae(x_,tme,eme[tme],$P);return x_},vle=Nae.f,yle=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mle={f:function(x_){return yle&&Uoe(x_)=="Window"?function(eme){try{return vle(eme)}catch{return bse(yle)}}(x_):vle(Xoe(x_))}},ble=Boe(function(){if(typeof ArrayBuffer=="function"){var x_=new ArrayBuffer(8);Object.isExtensible(x_)&&Object.defineProperty(x_,"a",{value:8})}}),wle=Object.isExtensible,Ele=Boe(function(){wle(1)})||ble?function(x_){return!!Joe(x_)&&(!ble||Uoe(x_)!="ArrayBuffer")&&(!wle||wle(x_))}:wle,Dle=!Boe(function(){return Object.isExtensible(Object.preventExtensions({}))}),Sle=xoe(function(x_){var eme=Yie.f,$P=!1,tme=Bie("meta"),ame=0,nme=function(ime){eme(ime,tme,{value:{objectID:"O"+ame++,weakData:{}}})},rme=x_.exports={enable:function(){rme.enable=function(){},$P=!0;var ime=Nae.f,ome=$oe([].splice),lme={};lme[tme]=1,ime(lme).length&&(Nae.f=function(sme){for(var cme=ime(sme),dme=0,ume=cme.length;dme<ume;dme++)if(cme[dme]===tme){ome(cme,dme,1);break}return cme},Kae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mle.f}))},fastKey:function(ime,ome){if(!Joe(ime))return typeof ime=="symbol"?ime:(typeof ime=="string"?"S":"P")+ime;if(!Cie(ime,tme)){if(!Ele(ime))return"F";if(!ome)return"E";nme(ime)}return ime[tme].objectID},getWeakData:function(ime,ome){if(!Cie(ime,tme)){if(!Ele(ime))return!0;if(!ome)return!1;nme(ime)}return ime[tme].weakData},onFreeze:function(ime){return Dle&&$P&&Ele(ime)&&!Cie(ime,tme)&&nme(ime),ime}};aae[tme]=!0}),xle=$oe($oe.bind),Cle=function(x_,eme){return gie(x_),eme===void 0?x_:xle?xle(x_,eme):function(){return x_.apply(eme,arguments)}},Ale=jie("iterator"),Ole=Array.prototype,kle=jie("iterator"),Ble=function(x_){if(x_!=null)return vie(x_,kle)||vie(x_,"@@iterator")||Rse[tue(x_)]},Fle=koe.TypeError,Tle=function(x_,eme,$P){var tme,ame;Gie(x_);try{if(!(tme=vie(x_,"return"))){if(eme==="throw")throw $P;return $P}tme=_oe(tme,x_)}catch(nme){ame=!0,tme=nme}if(eme==="throw")throw $P;if(ame)throw tme;return Gie(tme),$P},_le=koe.TypeError,Ple=function(x_,eme){this.stopped=x_,this.result=eme},jle=Ple.prototype,Nle=function(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme,cme=$P&&$P.that,dme=!(!$P||!$P.AS_ENTRIES),ume=!(!$P||!$P.IS_ITERATOR),fme=!(!$P||!$P.INTERRUPTED),pme=Cle(eme,cme),hme=function(mme){return tme&&Tle(tme,"normal",mme),new Ple(!0,mme)},bme=function(mme){return dme?(Gie(mme),fme?pme(mme[0],mme[1],hme):pme(mme[0],mme[1])):fme?pme(mme,hme):pme(mme)};if(ume)tme=x_;else{if(!(ame=Ble(x_)))throw _le(pie(x_)+" is not iterable");if((sme=ame)!==void 0&&(Rse.Array===sme||Ole[Ale]===sme)){for(nme=0,rme=kae(x_);rme>nme;nme++)if((ime=bme(x_[nme]))&&tie(jle,ime))return ime;return new Ple(!1)}tme=function(mme,vme){var gme=arguments.length<2?Ble(mme):vme;if(gie(gme))return Gie(_oe(gme,mme));throw Fle(pie(mme)+" is not iterable")}(x_,ame)}for(ome=tme.next;!(lme=_oe(ome,tme)).done;){try{ime=bme(lme.value)}catch(mme){Tle(tme,"throw",mme)}if(typeof ime=="object"&&ime&&tie(jle,ime))return ime}return new Ple(!1)},Ile=koe.TypeError,Lle=function(x_,eme){if(tie(eme,x_))return x_;throw Ile("Incorrect invocation")},Rle=jie("iterator"),Mle=!1;try{var zle=0,$le={next:function(){return{done:!!zle++}},return:function(){Mle=!0}};$le[Rle]=function(){return this},Array.from($le,function(){throw 2})}catch{}var Hle=function(x_,eme){if(!Mle)return!1;var $P=!1;try{var tme={};tme[Rle]=function(){return{next:function(){return{done:$P=!0}}}},x_(tme)}catch{}return $P},Vle=jie("species"),Ule=koe.Array,Wle=function(x_,eme){return new(function($P){var tme;return Yae($P)&&(tme=$P.constructor,(lue(tme)&&(tme===Ule||Yae(tme.prototype))||Joe(tme)&&(tme=tme[Vle])===null)&&(tme=void 0)),tme===void 0?Ule:tme}(x_))(eme===0?0:eme)},Gle=$oe([].push),qle=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=Sie(ome),pme=qoe(fme),hme=Cle(lme,sme),bme=kae(pme),mme=0,vme=cme||Wle,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:Gle(gme,dme)}else switch(x_){case 4:return!1;case 7:Gle(gme,dme)}return nme?-1:tme||ame?ame:gme}},Kle={forEach:qle(0),map:qle(1),filter:qle(2),some:qle(3),every:qle(4),find:qle(5),findIndex:qle(6),filterReject:qle(7)},Yle=Sle.getWeakData,Xle=hae.set,Zle=hae.getterFor,Jle=Kle.find,Qle=Kle.findIndex,ece=$oe([].splice),tce=0,nce=function(x_){return x_.frozen||(x_.frozen=new rce)},rce=function(){this.entries=[]},oce=function(x_,eme){return Jle(x_.entries,function($P){return $P[0]===eme})};rce.prototype={get:function(x_){var eme=oce(this,x_);if(eme)return eme[1]},has:function(x_){return!!oce(this,x_)},set:function(x_,eme){var $P=oce(this,x_);$P?$P[1]=eme:this.entries.push([x_,eme])},delete:function(x_){var eme=Qle(this.entries,function($P){return $P[0]===x_});return~eme&&ece(this.entries,eme,1),!!~eme}};var ice,ace={getConstructor:function(x_,eme,$P,tme){var ame=x_(function(ome,lme){Lle(ome,nme),Xle(ome,{type:eme,id:tce++,frozen:void 0}),lme!=null&&Nle(lme,ome[tme],{that:ome,AS_ENTRIES:$P})}),nme=ame.prototype,rme=Zle(eme),ime=function(ome,lme,sme){var cme=rme(ome),dme=Yle(Gie(lme),!0);return dme===!0?nce(cme).set(lme,sme):dme[cme.id]=sme,ome};return gle(nme,{delete:function(ome){var lme=rme(this);if(!Joe(ome))return!1;var sme=Yle(ome);return sme===!0?nce(lme).delete(ome):sme&&Cie(sme,lme.id)&&delete sme[lme.id]},has:function(ome){var lme=rme(this);if(!Joe(ome))return!1;var sme=Yle(ome);return sme===!0?nce(lme).has(ome):sme&&Cie(sme,lme.id)}}),gle(nme,$P?{get:function(ome){var lme=rme(this);if(Joe(ome)){var sme=Yle(ome);return sme===!0?nce(lme).get(ome):sme?sme[lme.id]:void 0}},set:function(ome,lme){return ime(this,ome,lme)}}:{add:function(ome){return ime(this,ome,!0)}}),ame}},uce=hae.enforce,sce=!koe.ActiveXObject&&"ActiveXObject"in koe,lce=function(x_){return function(){return x_(this,arguments.length?arguments[0]:void 0)}},cce=function(x_,eme,$P){var tme=x_.indexOf("Map")!==-1,ame=x_.indexOf("Weak")!==-1,nme=tme?"set":"add",rme=koe[x_],ime=rme&&rme.prototype,ome=rme,lme={},sme=function(hme){var bme=$oe(ime[hme]);bae(ime,hme,hme=="add"?function(mme){return bme(this,mme===0?0:mme),this}:hme=="delete"?function(mme){return!(ame&&!Joe(mme))&&bme(this,mme===0?0:mme)}:hme=="get"?function(mme){return ame&&!Joe(mme)?void 0:bme(this,mme===0?0:mme)}:hme=="has"?function(mme){return!(ame&&!Joe(mme))&&bme(this,mme===0?0:mme)}:function(mme,vme){return bme(this,mme===0?0:mme,vme),this})};if(Gae(x_,!Zoe(rme)||!(ame||ime.forEach&&!Boe(function(){new rme().entries().next()}))))ome=$P.getConstructor(eme,x_,tme,nme),Sle.enable();else if(Gae(x_,!0)){var cme=new ome,dme=cme[nme](ame?{}:-0,1)!=cme,ume=Boe(function(){cme.has(1)}),fme=Hle(function(hme){new rme(hme)}),pme=!ame&&Boe(function(){for(var hme=new rme,bme=5;bme--;)hme[nme](bme,bme);return!hme.has(-0)});fme||((ome=eme(function(hme,bme){Lle(hme,ime);var mme=function(vme,gme,yme){var _me,$me;return tle&&Zoe(_me=gme.constructor)&&_me!==yme&&Joe($me=_me.prototype)&&$me!==yme.prototype&&tle(vme,$me),vme}(new rme,hme,ome);return bme!=null&&Nle(bme,mme[nme],{that:mme,AS_ENTRIES:tme}),mme})).prototype=ime,ime.constructor=ome),(ume||pme)&&(sme("delete"),sme("has"),tme&&sme("get")),(pme||dme)&&sme(nme),ame&&ime.clear&&delete ime.clear}return lme[x_]=ome,Kae({global:!0,forced:ome!=rme},lme),Xse(ome,x_),ame||$P.setStrong(ome,x_,tme),ome}("WeakMap",lce,ace);if(rae&&sce){ice=ace.getConstructor(lce,"WeakMap",!0),Sle.enable();var fce=cce.prototype,dce=$oe(fce.delete),pce=$oe(fce.has),hce=$oe(fce.get),gce=$oe(fce.set);gle(fce,{delete:function(x_){if(Joe(x_)&&!Ele(x_)){var eme=uce(this);return eme.frozen||(eme.frozen=new ice),dce(this,x_)||eme.frozen.delete(x_)}return dce(this,x_)},has:function(x_){if(Joe(x_)&&!Ele(x_)){var eme=uce(this);return eme.frozen||(eme.frozen=new ice),pce(this,x_)||eme.frozen.has(x_)}return pce(this,x_)},get:function(x_){if(Joe(x_)&&!Ele(x_)){var eme=uce(this);return eme.frozen||(eme.frozen=new ice),pce(this,x_)?hce(this,x_):eme.frozen.get(x_)}return hce(this,x_)},set:function(x_,eme){if(Joe(x_)&&!Ele(x_)){var $P=uce(this);$P.frozen||($P.frozen=new ice),pce(this,x_)?gce(this,x_,eme):$P.frozen.set(x_,eme)}else gce(this,x_,eme);return this}})}var vce={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yce=zie("span").classList,mce=yce&&yce.constructor&&yce.constructor.prototype,bce=mce===Object.prototype?void 0:mce,wce=jie("iterator"),Ece=jie("toStringTag"),Dce=fle.values,Sce=function(x_,eme){if(x_){if(x_[wce]!==Dce)try{Xie(x_,wce,Dce)}catch{x_[wce]=Dce}if(x_[Ece]||Xie(x_,Ece,eme),vce[eme]){for(var $P in fle)if(x_[$P]!==fle[$P])try{Xie(x_,$P,fle[$P])}catch{x_[$P]=fle[$P]}}}};for(var xce in vce)Sce(koe[xce]&&koe[xce].prototype,xce);Sce(bce,"DOMTokenList");var Cce=function(x_,eme){var $P=[][x_];return!!$P&&Boe(function(){$P.call(null,eme||function(){throw 1},1)})},Ace=Kle.forEach,Oce=Cce("forEach")?[].forEach:function(x_){return Ace(this,x_,arguments.length>1?arguments[1]:void 0)},kce=function(x_){if(x_&&x_.forEach!==Oce)try{Xie(x_,"forEach",Oce)}catch{x_.forEach=Oce}};for(var Bce in vce)vce[Bce]&&kce(koe[Bce]&&koe[Bce].prototype);kce(bce);var Fce,Tce,_ce,Pce,jce=koe.Promise,Nce=jie("species"),Ice=/(?:ipad|iphone|ipod).*applewebkit/i.test(nie),Lce=Uoe(koe.process)=="process",Rce=koe.setImmediate,Mce=koe.clearImmediate,zce=koe.process,$ce=koe.Dispatch,Hce=koe.Function,Vce=koe.MessageChannel,Uce=koe.String,Wce=0,Gce={};try{Fce=koe.location}catch{}var qce=function(x_){if(Cie(Gce,x_)){var eme=Gce[x_];delete Gce[x_],eme()}},Kce=function(x_){return function(){qce(x_)}},Yce=function(x_){qce(x_.data)},Xce=function(x_){koe.postMessage(Uce(x_),Fce.protocol+"//"+Fce.host)};Rce&&Mce||(Rce=function(x_){var eme=due(arguments,1);return Gce[++Wce]=function(){rse(Zoe(x_)?x_:Hce(x_),void 0,eme)},Tce(Wce),Wce},Mce=function(x_){delete Gce[x_]},Lce?Tce=function(x_){zce.nextTick(Kce(x_))}:$ce&&$ce.now?Tce=function(x_){$ce.now(Kce(x_))}:Vce&&!Ice?(Pce=(_ce=new Vce).port2,_ce.port1.onmessage=Yce,Tce=Cle(Pce.postMessage,Pce)):koe.addEventListener&&Zoe(koe.postMessage)&&!koe.importScripts&&Fce&&Fce.protocol!=="file:"&&!Boe(Xce)?(Tce=Xce,koe.addEventListener("message",Yce,!1)):Tce="onreadystatechange"in zie("script")?function(x_){kue.appendChild(zie("script")).onreadystatechange=function(){kue.removeChild(this),qce(x_)}}:function(x_){setTimeout(Kce(x_),0)});var Zce,Jce,Qce,efe,tfe,nfe,rfe,ofe,ife={set:Rce,clear:Mce},afe=/ipad|iphone|ipod/i.test(nie)&&koe.Pebble!==void 0,ufe=/web0s(?!.*chrome)/i.test(nie),sfe=Vie.f,lfe=ife.set,cfe=koe.MutationObserver||koe.WebKitMutationObserver,ffe=koe.document,dfe=koe.process,pfe=koe.Promise,hfe=sfe(koe,"queueMicrotask"),gfe=hfe&&hfe.value;gfe||(Zce=function(){var x_,eme;for(Lce&&(x_=dfe.domain)&&x_.exit();Jce;){eme=Jce.fn,Jce=Jce.next;try{eme()}catch($P){throw Jce?efe():Qce=void 0,$P}}Qce=void 0,x_&&x_.enter()},Ice||Lce||ufe||!cfe||!ffe?!afe&&pfe&&pfe.resolve?((rfe=pfe.resolve(void 0)).constructor=pfe,ofe=Cle(rfe.then,rfe),efe=function(){ofe(Zce)}):Lce?efe=function(){dfe.nextTick(Zce)}:(lfe=Cle(lfe,koe),efe=function(){lfe(Zce)}):(tfe=!0,nfe=ffe.createTextNode(""),new cfe(Zce).observe(nfe,{characterData:!0}),efe=function(){nfe.data=tfe=!tfe}));var vfe,yfe,mfe,bfe,wfe=gfe||function(x_){var eme={fn:x_,next:void 0};Qce&&(Qce.next=eme),Jce||(Jce=eme,efe()),Qce=eme},Efe=function(x_){var eme,$P;this.promise=new x_(function(tme,ame){if(eme!==void 0||$P!==void 0)throw TypeError("Bad Promise constructor");eme=tme,$P=ame}),this.resolve=gie(eme),this.reject=gie($P)},Dfe={f:function(x_){return new Efe(x_)}},Sfe=function(x_){try{return{error:!1,value:x_()}}catch(eme){return{error:!0,value:eme}}},xfe=typeof window=="object",Cfe=ife.set,Afe=jie("species"),Ofe="Promise",kfe=hae.getterFor(Ofe),Bfe=hae.set,Ffe=hae.getterFor(Ofe),Tfe=jce&&jce.prototype,_fe=jce,Pfe=Tfe,jfe=koe.TypeError,Nfe=koe.document,Ife=koe.process,Lfe=Dfe.f,Rfe=Lfe,Mfe=!!(Nfe&&Nfe.createEvent&&koe.dispatchEvent),zfe=Zoe(koe.PromiseRejectionEvent),$fe=!1,Hfe=Gae(Ofe,function(){var x_=tae(_fe),eme=x_!==String(_fe);if(!eme&&uie===66)return!0;if(uie>=51&&/native code/.test(x_))return!1;var $P=new _fe(function(ame){ame(1)}),tme=function(ame){ame(function(){},function(){})};return($P.constructor={})[Afe]=tme,!($fe=$P.then(function(){})instanceof tme)||!eme&&xfe&&!zfe}),Vfe=Hfe||!Hle(function(x_){_fe.all(x_).catch(function(){})}),Ufe=function(x_){var eme;return!(!Joe(x_)||!Zoe(eme=x_.then))&&eme},Wfe=function(x_,eme){if(!x_.notified){x_.notified=!0;var $P=x_.reactions;wfe(function(){for(var tme=x_.value,ame=x_.state==1,nme=0;$P.length>nme;){var rme,ime,ome,lme=$P[nme++],sme=ame?lme.ok:lme.fail,cme=lme.resolve,dme=lme.reject,ume=lme.domain;try{sme?(ame||(x_.rejection===2&&Yfe(x_),x_.rejection=1),sme===!0?rme=tme:(ume&&ume.enter(),rme=sme(tme),ume&&(ume.exit(),ome=!0)),rme===lme.promise?dme(jfe("Promise-chain cycle")):(ime=Ufe(rme))?_oe(ime,rme,cme,dme):cme(rme)):dme(tme)}catch(fme){ume&&!ome&&ume.exit(),dme(fme)}}x_.reactions=[],x_.notified=!1,eme&&!x_.rejection&&qfe(x_)})}},Gfe=function(x_,eme,$P){var tme,ame;Mfe?((tme=Nfe.createEvent("Event")).promise=eme,tme.reason=$P,tme.initEvent(x_,!1,!0),koe.dispatchEvent(tme)):tme={promise:eme,reason:$P},!zfe&&(ame=koe["on"+x_])?ame(tme):x_==="unhandledrejection"&&function(nme,rme){var ime=koe.console;ime&&ime.error&&(arguments.length==1?ime.error(nme):ime.error(nme,rme))}("Unhandled promise rejection",$P)},qfe=function(x_){_oe(Cfe,koe,function(){var eme,$P=x_.facade,tme=x_.value;if(Kfe(x_)&&(eme=Sfe(function(){Lce?Ife.emit("unhandledRejection",tme,$P):Gfe("unhandledrejection",$P,tme)}),x_.rejection=Lce||Kfe(x_)?2:1,eme.error))throw eme.value})},Kfe=function(x_){return x_.rejection!==1&&!x_.parent},Yfe=function(x_){_oe(Cfe,koe,function(){var eme=x_.facade;Lce?Ife.emit("rejectionHandled",eme):Gfe("rejectionhandled",eme,x_.value)})},Xfe=function(x_,eme,$P){return function(tme){x_(eme,tme,$P)}},Zfe=function(x_,eme,$P){x_.done||(x_.done=!0,$P&&(x_=$P),x_.value=eme,x_.state=2,Wfe(x_,!0))},Jfe=function(x_,eme,$P){if(!x_.done){x_.done=!0,$P&&(x_=$P);try{if(x_.facade===eme)throw jfe("Promise can't be resolved itself");var tme=Ufe(eme);tme?wfe(function(){var ame={done:!1};try{_oe(tme,eme,Xfe(Jfe,ame,x_),Xfe(Zfe,ame,x_))}catch(nme){Zfe(ame,nme,x_)}}):(x_.value=eme,x_.state=1,Wfe(x_,!1))}catch(ame){Zfe({done:!1},ame,x_)}}};if(Hfe&&(Pfe=(_fe=function(x_){Lle(this,Pfe),gie(x_),_oe(vfe,this);var eme=kfe(this);try{x_(Xfe(Jfe,eme),Xfe(Zfe,eme))}catch($P){Zfe(eme,$P)}}).prototype,(vfe=function(x_){Bfe(this,{type:Ofe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gle(Pfe,{then:function(x_,eme){var $P=Ffe(this),tme=$P.reactions,ame=Lfe(lse(this,_fe));return ame.ok=!Zoe(x_)||x_,ame.fail=Zoe(eme)&&eme,ame.domain=Lce?Ife.domain:void 0,$P.parent=!0,tme[tme.length]=ame,$P.state!=0&&Wfe($P,!1),ame.promise},catch:function(x_){return this.then(void 0,x_)}}),yfe=function(){var x_=new vfe,eme=kfe(x_);this.promise=x_,this.resolve=Xfe(Jfe,eme),this.reject=Xfe(Zfe,eme)},Dfe.f=Lfe=function(x_){return x_===_fe||x_===mfe?new yfe(x_):Rfe(x_)},Zoe(jce)&&Tfe!==Object.prototype)){bfe=Tfe.then,$fe||(bae(Tfe,"then",function(x_,eme){var $P=this;return new _fe(function(tme,ame){_oe(bfe,$P,tme,ame)}).then(x_,eme)},{unsafe:!0}),bae(Tfe,"catch",Pfe.catch,{unsafe:!0}));try{delete Tfe.constructor}catch{}tle&&tle(Tfe,Pfe)}Kae({global:!0,wrap:!0,forced:Hfe},{Promise:_fe}),Xse(_fe,Ofe,!1),function(x_){var eme=eie("Promise"),$P=Yie.f;Foe&&eme&&!eme[Nce]&&$P(eme,Nce,{configurable:!0,get:function(){return this}})}(),mfe=eie(Ofe),Kae({target:Ofe,stat:!0,forced:Hfe},{reject:function(x_){var eme=Lfe(this);return _oe(eme.reject,void 0,x_),eme.promise}}),Kae({target:Ofe,stat:!0,forced:Hfe},{resolve:function(x_){return function(eme,$P){if(Gie(eme),Joe($P)&&$P.constructor===eme)return $P;var tme=Dfe.f(eme);return(0,tme.resolve)($P),tme.promise}(this,x_)}}),Kae({target:Ofe,stat:!0,forced:Vfe},{all:function(x_){var eme=this,$P=Lfe(eme),tme=$P.resolve,ame=$P.reject,nme=Sfe(function(){var rme=gie(eme.resolve),ime=[],ome=0,lme=1;Nle(x_,function(sme){var cme=ome++,dme=!1;lme++,_oe(rme,eme,sme).then(function(ume){dme||(dme=!0,ime[cme]=ume,--lme||tme(ime))},ame)}),--lme||tme(ime)});return nme.error&&ame(nme.value),$P.promise},race:function(x_){var eme=this,$P=Lfe(eme),tme=$P.reject,ame=Sfe(function(){var nme=gie(eme.resolve);Nle(x_,function(rme){_oe(nme,eme,rme).then($P.resolve,tme)})});return ame.error&&tme(ame.value),$P.promise}});var Qfe=mae.PROPER,ede=RegExp.prototype,tde=ede.toString,nde=$oe(Eue),rde=Boe(function(){return tde.call({source:"a",flags:"b"})!="/a/b"}),ode=Qfe&&tde.name!="toString";(rde||ode)&&bae(RegExp.prototype,"toString",function(){var x_=Gie(this),eme=wue(x_.source),$P=x_.flags;return"/"+eme+"/"+wue($P===void 0&&tie(ede,x_)&&!("flags"in ede)?nde(x_):$P)},{unsafe:!0});var ide=mae.EXISTS,ade=Yie.f,ude=Function.prototype,sde=$oe(ude.toString),lde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cde=$oe(lde.exec);Foe&&!ide&&ade(ude,"name",{configurable:!0,get:function(){try{return cde(lde,sde(this))[1]}catch{return""}}});var fde=new WeakMap;function dde(x_){return x_.getMenuConfig("uploadImage")}function pde(x_,eme){return Bse(this,void 0,void 0,function(){return Fse(this,function($P){return[2,new Promise(function(tme){var ame=new FileReader;ame.readAsDataURL(eme),ame.onload=function(){var nme=ame.result;if(nme){var rme=nme.toString(),ime=rme.indexOf("data:image")===0?"":rme;M$(x_,rme,eme.name,ime),tme("ok")}}})]})})}function hde(x_,eme){return Bse(this,void 0,void 0,function(){var $P,tme,ame,nme;return Fse(this,function(rme){switch(rme.label){case 0:return $P=function(ime){var ome=fde.get(ime);if(ome!=null)return ome;var lme=dde(ime),sme=lme.onSuccess,cme=lme.onProgress,dme=lme.onFailed,ume=lme.customInsert,fme=lme.onError;return ome=K_(kse(kse({},lme),{onProgress:function(pme){ime.showProgressBar(pme),cme&&cme(pme)},onSuccess:function(pme,hme){if(ume)return ume(hme,function(Eme,xme,Tme){return M$(ime,Eme,xme,Tme)}),void sme(pme,hme);var bme=hme.errno,mme=bme===void 0?1:bme,vme=hme.data,gme=vme===void 0?{}:vme;if(mme===0){if(Array.isArray(gme))gme.forEach(function(Eme){var xme=Eme.url,Tme=xme===void 0?"":xme,Ome=Eme.alt,Rme=Ome===void 0?"":Ome,Nme=Eme.href;M$(ime,Tme,Rme,Nme===void 0?"":Nme)});else{var yme=gme.url,_me=yme===void 0?"":yme,$me=gme.alt,Cme=$me===void 0?"":$me,Sme=gme.href;M$(ime,_me,Cme,Sme===void 0?"":Sme)}sme(pme,hme)}else dme(pme,hme)},onError:function(pme,hme,bme){fme(pme,hme,bme)}})),fde.set(ime,ome),ome}(x_),tme=eme.name,ame=eme.type,nme=eme.size,$P.addFile({name:tme,type:ame,size:nme,data:eme}),[4,$P.upload()];case 1:return rme.sent(),[2]}})})}function gde(x_,eme){var $P,tme;return Bse(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme;return Fse(this,function(ume){switch(ume.label){case 0:if(eme==null)return[2];ame=Array.prototype.slice.call(eme),nme=dde(x_),rme=nme.customUpload,ime=nme.base64LimitSize,ume.label=1;case 1:ume.trys.push([1,11,12,17]),ome=Tse(ame),ume.label=2;case 2:return[4,ome.next()];case 3:return(lme=ume.sent()).done?[3,10]:(sme=lme.value,cme=sme.size,ime&&cme<=ime?[4,pde(x_,sme)]:[3,5]);case 4:return ume.sent(),[3,9];case 5:return rme?[4,rme(sme,function(fme,pme,hme){return M$(x_,fme,pme,hme)})]:[3,7];case 6:return ume.sent(),[3,9];case 7:return[4,hde(x_,sme)];case 8:ume.sent(),ume.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return dme=ume.sent(),$P={error:dme},[3,17];case 12:return ume.trys.push([12,,15,16]),lme&&!lme.done&&(tme=ome.return)?[4,tme.call(ome)]:[3,14];case 13:ume.sent(),ume.label=14;case 14:return[3,16];case 15:if($P)throw $P.error;return[7];case 16:return[7];case 17:return[2]}})})}var vde=$oe([].join),yde=qoe!=Object,mde=Cce("join",",");Kae({target:"Array",proto:!0,forced:yde||!mde},{join:function(x_){return vde(Xoe(this),x_===void 0?",":x_)}}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),dh&&(Mp.fn.remove=dh),Gp&&(Mp.fn.val=Gp),vh&&(Mp.fn.click=vh),Jp&&(Mp.fn.hide=Jp);var bde=function(){function x_(){this.title=HP("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return x_.prototype.getValue=function(eme){return""},x_.prototype.isActive=function(eme){return!1},x_.prototype.isDisabled=function(eme){return z$(eme)},x_.prototype.getMenuConfig=function(eme){return eme.getMenuConfig("uploadImage")},x_.prototype.exec=function(eme,$P){var tme=this.getMenuConfig(eme),ame=tme.allowedFileTypes,nme=ame===void 0?[]:ame,rme=tme.customBrowseAndUpload;if(rme)rme(function(sme,cme,dme){return M$(eme,sme,cme,dme)});else{var ime="";nme.length>0&&(ime='accept="'+nme.join(", ")+'"');var ome=Mp("body"),lme=Mp('<input type="file" '+ime+" multiple/>");lme.hide(),ome.append(lme),lme.click(),lme.on("change",function(){var sme=lme[0].files;gde(eme,sme)})}},x_}(),wde={menus:[{key:"uploadImage",factory:function(){return new bde},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(x_){return x_},onProgress:function(x_){},onSuccess:function(x_,eme){},onFailed:function(x_,eme){console.error("'"+x_.name+"' upload failed",eme)},onError:function(x_,eme,$P){console.error("'"+x_.name+"' upload error",$P)},base64LimitSize:0}}],editorPlugin:function(x_){var eme=x_.insertData,$P=x_;return $P.insertData=function(tme){if(z$($P))eme(tme);else if(tme.getData("text/plain"))eme(tme);else{var ame=tme.files;ame.length<=0?eme(tme):Array.prototype.slice.call(ame).some(function(nme){return function(rme,ime){var ome=typeof Symbol=="function"&&rme[Symbol.iterator];if(!ome)return rme;var lme,sme,cme=ome.call(rme),dme=[];try{for(;(ime===void 0||ime-- >0)&&!(lme=cme.next()).done;)dme.push(lme.value)}catch(ume){sme={error:ume}}finally{try{lme&&!lme.done&&(ome=cme.return)&&ome.call(cme)}finally{if(sme)throw sme.error}}return dme}(nme.type.split("/"),1)[0]==="image"})?gde(x_,ame):eme(tme)}},$P}};MP("en",{highLightModule:{selectLang:"Language"}}),MP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ede=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dde(x_){var eme={exports:{}};return x_(eme,eme.exports),eme.exports}var Sde,xde,Cde=function(x_){return x_&&x_.Math==Math&&x_},Ade=Cde(typeof globalThis=="object"&&globalThis)||Cde(typeof window=="object"&&window)||Cde(typeof self=="object"&&self)||Cde(typeof Ede=="object"&&Ede)||function(){return this}()||Function("return this")(),Ode=Object.defineProperty,kde=function(x_,eme){try{Ode(Ade,x_,{value:eme,configurable:!0,writable:!0})}catch{Ade[x_]=eme}return eme},Bde=Ade["__core-js_shared__"]||kde("__core-js_shared__",{}),Fde=Dde(function(x_){(x_.exports=function(eme,$P){return Bde[eme]||(Bde[eme]=$P!==void 0?$P:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Tde=Function.prototype,_de=Tde.bind,Pde=Tde.call,jde=_de&&_de.bind(Pde),Nde=_de?function(x_){return x_&&jde(Pde,x_)}:function(x_){return x_&&function(){return Pde.apply(x_,arguments)}},Ide=Ade.TypeError,Lde=function(x_){if(x_==null)throw Ide("Can't call method on "+x_);return x_},Rde=Ade.Object,Mde=function(x_){return Rde(Lde(x_))},zde=Nde({}.hasOwnProperty),$de=Object.hasOwn||function(x_,eme){return zde(Mde(x_),eme)},Hde=0,Vde=Math.random(),Ude=Nde(1 .toString),Wde=function(x_){return"Symbol("+(x_===void 0?"":x_)+")_"+Ude(++Hde+Vde,36)},Gde=function(x_){return typeof x_=="function"},qde=function(x_){return Gde(x_)?x_:void 0},Kde=function(x_,eme){return arguments.length<2?qde(Ade[x_]):Ade[x_]&&Ade[x_][eme]},Yde=Kde("navigator","userAgent")||"",Xde=Ade.process,Zde=Ade.Deno,Jde=Xde&&Xde.versions||Zde&&Zde.version,Qde=Jde&&Jde.v8;Qde&&(xde=(Sde=Qde.split("."))[0]>0&&Sde[0]<4?1:+(Sde[0]+Sde[1])),!xde&&Yde&&(!(Sde=Yde.match(/Edge\/(\d+)/))||Sde[1]>=74)&&(Sde=Yde.match(/Chrome\/(\d+)/))&&(xde=+Sde[1]);var epe=xde,tpe=function(x_){try{return!!x_()}catch{return!0}},npe=!!Object.getOwnPropertySymbols&&!tpe(function(){var x_=Symbol();return!String(x_)||!(Object(x_)instanceof Symbol)||!Symbol.sham&&epe&&epe<41}),rpe=npe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ope=Fde("wks"),ipe=Ade.Symbol,ape=ipe&&ipe.for,upe=rpe?ipe:ipe&&ipe.withoutSetter||Wde,spe=function(x_){if(!$de(ope,x_)||!npe&&typeof ope[x_]!="string"){var eme="Symbol."+x_;npe&&$de(ipe,x_)?ope[x_]=ipe[x_]:ope[x_]=rpe&&ape?ape(eme):upe(eme)}return ope[x_]},lpe={};lpe[spe("toStringTag")]="z";var cpe=String(lpe)==="[object z]",fpe=!tpe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),dpe=function(x_){return typeof x_=="object"?x_!==null:Gde(x_)},ppe=Ade.document,hpe=dpe(ppe)&&dpe(ppe.createElement),gpe=function(x_){return hpe?ppe.createElement(x_):{}},vpe=!fpe&&!tpe(function(){return Object.defineProperty(gpe("div"),"a",{get:function(){return 7}}).a!=7}),ype=Ade.String,mpe=Ade.TypeError,bpe=function(x_){if(dpe(x_))return x_;throw mpe(ype(x_)+" is not an object")},wpe=Function.prototype.call,Epe=wpe.bind?wpe.bind(wpe):function(){return wpe.apply(wpe,arguments)},Dpe=Nde({}.isPrototypeOf),Spe=Ade.Object,xpe=rpe?function(x_){return typeof x_=="symbol"}:function(x_){var eme=Kde("Symbol");return Gde(eme)&&Dpe(eme.prototype,Spe(x_))},Cpe=Ade.String,Ape=function(x_){try{return Cpe(x_)}catch{return"Object"}},Ope=Ade.TypeError,kpe=function(x_){if(Gde(x_))return x_;throw Ope(Ape(x_)+" is not a function")},Bpe=function(x_,eme){var $P=x_[eme];return $P==null?void 0:kpe($P)},Fpe=Ade.TypeError,Tpe=Ade.TypeError,_pe=spe("toPrimitive"),Ppe=function(x_){var eme=function($P,tme){if(!dpe($P)||xpe($P))return $P;var ame,nme=Bpe($P,_pe);if(nme){if(ame=Epe(nme,$P,tme),!dpe(ame)||xpe(ame))return ame;throw Tpe("Can't convert object to primitive value")}return function(rme,ime){var ome,lme;if(Gde(ome=rme.toString)&&!dpe(lme=Epe(ome,rme))||Gde(ome=rme.valueOf)&&!dpe(lme=Epe(ome,rme)))return lme;throw Fpe("Can't convert object to primitive value")}($P)}(x_,"string");return xpe(eme)?eme:eme+""},jpe=Ade.TypeError,Npe=Object.defineProperty,Ipe={f:fpe?Npe:function(x_,eme,$P){if(bpe(x_),eme=Ppe(eme),bpe($P),vpe)try{return Npe(x_,eme,$P)}catch{}if("get"in $P||"set"in $P)throw jpe("Accessors not supported");return"value"in $P&&(x_[eme]=$P.value),x_}},Lpe=function(x_,eme){return{enumerable:!(1&x_),configurable:!(2&x_),writable:!(4&x_),value:eme}},Rpe=fpe?function(x_,eme,$P){return Ipe.f(x_,eme,Lpe(1,$P))}:function(x_,eme,$P){return x_[eme]=$P,x_},Mpe=Nde(Function.toString);Gde(Bde.inspectSource)||(Bde.inspectSource=function(x_){return Mpe(x_)});var zpe,$pe,Hpe,Vpe=Bde.inspectSource,Upe=Ade.WeakMap,Wpe=Gde(Upe)&&/native code/.test(Vpe(Upe)),Gpe=Fde("keys"),qpe=function(x_){return Gpe[x_]||(Gpe[x_]=Wde(x_))},Kpe={},Ype=Ade.TypeError,Xpe=Ade.WeakMap;if(Wpe||Bde.state){var Zpe=Bde.state||(Bde.state=new Xpe),Jpe=Nde(Zpe.get),Qpe=Nde(Zpe.has),ehe=Nde(Zpe.set);zpe=function(x_,eme){if(Qpe(Zpe,x_))throw new Ype("Object already initialized");return eme.facade=x_,ehe(Zpe,x_,eme),eme},$pe=function(x_){return Jpe(Zpe,x_)||{}},Hpe=function(x_){return Qpe(Zpe,x_)}}else{var the=qpe("state");Kpe[the]=!0,zpe=function(x_,eme){if($de(x_,the))throw new Ype("Object already initialized");return eme.facade=x_,Rpe(x_,the,eme),eme},$pe=function(x_){return $de(x_,the)?x_[the]:{}},Hpe=function(x_){return $de(x_,the)}}var nhe={set:zpe,get:$pe,has:Hpe,enforce:function(x_){return Hpe(x_)?$pe(x_):zpe(x_,{})},getterFor:function(x_){return function(eme){var $P;if(!dpe(eme)||($P=$pe(eme)).type!==x_)throw Ype("Incompatible receiver, "+x_+" required");return $P}}},rhe=Function.prototype,ohe=fpe&&Object.getOwnPropertyDescriptor,ihe=$de(rhe,"name"),ahe={EXISTS:ihe,PROPER:ihe&&(function(){}).name==="something",CONFIGURABLE:ihe&&(!fpe||fpe&&ohe(rhe,"name").configurable)},uhe=Dde(function(x_){var eme=ahe.CONFIGURABLE,$P=nhe.get,tme=nhe.enforce,ame=String(String).split("String");(x_.exports=function(nme,rme,ime,ome){var lme,sme=!!ome&&!!ome.unsafe,cme=!!ome&&!!ome.enumerable,dme=!!ome&&!!ome.noTargetGet,ume=ome&&ome.name!==void 0?ome.name:rme;Gde(ime)&&(String(ume).slice(0,7)==="Symbol("&&(ume="["+String(ume).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$de(ime,"name")||eme&&ime.name!==ume)&&Rpe(ime,"name",ume),(lme=tme(ime)).source||(lme.source=ame.join(typeof ume=="string"?ume:""))),nme!==Ade?(sme?!dme&&nme[rme]&&(cme=!0):delete nme[rme],cme?nme[rme]=ime:Rpe(nme,rme,ime)):cme?nme[rme]=ime:kde(rme,ime)})(Function.prototype,"toString",function(){return Gde(this)&&$P(this).source||Vpe(this)})}),she=Nde({}.toString),lhe=Nde("".slice),che=function(x_){return lhe(she(x_),8,-1)},fhe=spe("toStringTag"),dhe=Ade.Object,phe=che(function(){return arguments}())=="Arguments",hhe=cpe?che:function(x_){var eme,$P,tme;return x_===void 0?"Undefined":x_===null?"Null":typeof($P=function(ame,nme){try{return ame[nme]}catch{}}(eme=dhe(x_),fhe))=="string"?$P:phe?che(eme):(tme=che(eme))=="Object"&&Gde(eme.callee)?"Arguments":tme},ghe=cpe?{}.toString:function(){return"[object "+hhe(this)+"]"};cpe||uhe(Object.prototype,"toString",ghe,{unsafe:!0});var vhe,yhe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mhe=gpe("span").classList,bhe=mhe&&mhe.constructor&&mhe.constructor.prototype,whe=bhe===Object.prototype?void 0:bhe,Ehe=Nde(Nde.bind),Dhe=Ade.Object,She=Nde("".split),xhe=tpe(function(){return!Dhe("z").propertyIsEnumerable(0)})?function(x_){return che(x_)=="String"?She(x_,""):Dhe(x_)}:Dhe,Che=Math.ceil,Ahe=Math.floor,Ohe=function(x_){var eme=+x_;return eme!=eme||eme===0?0:(eme>0?Ahe:Che)(eme)},khe=Math.min,Bhe=function(x_){return x_>0?khe(Ohe(x_),9007199254740991):0},Fhe=function(x_){return Bhe(x_.length)},The=Array.isArray||function(x_){return che(x_)=="Array"},_he=function(){},Phe=[],jhe=Kde("Reflect","construct"),Nhe=/^\s*(?:class|function)\b/,Ihe=Nde(Nhe.exec),Lhe=!Nhe.exec(_he),Rhe=function(x_){if(!Gde(x_))return!1;try{return jhe(_he,Phe,x_),!0}catch{return!1}},Mhe=!jhe||tpe(function(){var x_;return Rhe(Rhe.call)||!Rhe(Object)||!Rhe(function(){x_=!0})||x_})?function(x_){if(!Gde(x_))return!1;switch(hhe(x_)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lhe||!!Ihe(Nhe,Vpe(x_))}:Rhe,zhe=spe("species"),$he=Ade.Array,Hhe=function(x_,eme){return new(function($P){var tme;return The($P)&&(tme=$P.constructor,(Mhe(tme)&&(tme===$he||The(tme.prototype))||dpe(tme)&&(tme=tme[zhe])===null)&&(tme=void 0)),tme===void 0?$he:tme}(x_))(eme===0?0:eme)},Vhe=Nde([].push),Uhe=function(x_){var eme=x_==1,$P=x_==2,tme=x_==3,ame=x_==4,nme=x_==6,rme=x_==7,ime=x_==5||nme;return function(ome,lme,sme,cme){for(var dme,ume,fme=Mde(ome),pme=xhe(fme),hme=function(yme,_me){return kpe(yme),_me===void 0?yme:Ehe?Ehe(yme,_me):function(){return yme.apply(_me,arguments)}}(lme,sme),bme=Fhe(pme),mme=0,vme=cme||Hhe,gme=eme?vme(ome,bme):$P||rme?vme(ome,0):void 0;bme>mme;mme++)if((ime||mme in pme)&&(ume=hme(dme=pme[mme],mme,fme),x_))if(eme)gme[mme]=ume;else if(ume)switch(x_){case 3:return!0;case 5:return dme;case 6:return mme;case 2:Vhe(gme,dme)}else switch(x_){case 4:return!1;case 7:Vhe(gme,dme)}return nme?-1:tme||ame?ame:gme}},Whe=[Uhe(0),Uhe(1),Uhe(2),Uhe(3),Uhe(4),Uhe(5),Uhe(6),Uhe(7)][0],Ghe=(vhe=[].forEach)&&tpe(function(){vhe.call(null,function(){throw 1},1)})?[].forEach:function(x_){return Whe(this,x_,arguments.length>1?arguments[1]:void 0)},qhe=function(x_){if(x_&&x_.forEach!==Ghe)try{Rpe(x_,"forEach",Ghe)}catch{x_.forEach=Ghe}};for(var Khe in yhe)yhe[Khe]&&qhe(Ade[Khe]&&Ade[Khe].prototype);qhe(whe);var Yhe={}.propertyIsEnumerable,Xhe=Object.getOwnPropertyDescriptor,Zhe={f:Xhe&&!Yhe.call({1:2},1)?function(x_){var eme=Xhe(this,x_);return!!eme&&eme.enumerable}:Yhe},Jhe=function(x_){return xhe(Lde(x_))},Qhe=Object.getOwnPropertyDescriptor,ege={f:fpe?Qhe:function(x_,eme){if(x_=Jhe(x_),eme=Ppe(eme),vpe)try{return Qhe(x_,eme)}catch{}if($de(x_,eme))return Lpe(!Epe(Zhe.f,x_,eme),x_[eme])}},tge=Math.max,nge=Math.min,rge=function(x_,eme){var $P=Ohe(x_);return $P<0?tge($P+eme,0):nge($P,eme)},oge=function(x_){return function(eme,$P,tme){var ame,nme=Jhe(eme),rme=Fhe(nme),ime=rge(tme,rme);if(x_&&$P!=$P){for(;rme>ime;)if((ame=nme[ime++])!=ame)return!0}else for(;rme>ime;ime++)if((x_||ime in nme)&&nme[ime]===$P)return x_||ime||0;return!x_&&-1}},ige=oge(!1),age=Nde([].push),uge=function(x_,eme){var $P,tme=Jhe(x_),ame=0,nme=[];for($P in tme)!$de(Kpe,$P)&&$de(tme,$P)&&age(nme,$P);for(;eme.length>ame;)$de(tme,$P=eme[ame++])&&(~ige(nme,$P)||age(nme,$P));return nme},sge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lge=sge.concat("length","prototype"),cge={f:Object.getOwnPropertyNames||function(x_){return uge(x_,lge)}},fge={f:Object.getOwnPropertySymbols},dge=Nde([].concat),pge=Kde("Reflect","ownKeys")||function(x_){var eme=cge.f(bpe(x_)),$P=fge.f;return $P?dge(eme,$P(x_)):eme},hge=function(x_,eme){for(var $P=pge(eme),tme=Ipe.f,ame=ege.f,nme=0;nme<$P.length;nme++){var rme=$P[nme];$de(x_,rme)||tme(x_,rme,ame(eme,rme))}},gge=/#|\.prototype\./,vge=function(x_,eme){var $P=mge[yge(x_)];return $P==wge||$P!=bge&&(Gde(eme)?tpe(eme):!!eme)},yge=vge.normalize=function(x_){return String(x_).replace(gge,".").toLowerCase()},mge=vge.data={},bge=vge.NATIVE="N",wge=vge.POLYFILL="P",Ege=vge,Dge=ege.f,Sge=function(x_,eme){var $P,tme,ame,nme,rme,ime=x_.target,ome=x_.global,lme=x_.stat;if($P=ome?Ade:lme?Ade[ime]||kde(ime,{}):(Ade[ime]||{}).prototype)for(tme in eme){if(nme=eme[tme],ame=x_.noTargetGet?(rme=Dge($P,tme))&&rme.value:$P[tme],!Ege(ome?tme:ime+(lme?".":"#")+tme,x_.forced)&&ame!==void 0){if(typeof nme==typeof ame)continue;hge(nme,ame)}(x_.sham||ame&&ame.sham)&&Rpe(nme,"sham",!0),uhe($P,tme,nme,x_)}},xge=Object.keys||function(x_){return uge(x_,sge)},Cge=Object.assign,Age=Object.defineProperty,Oge=Nde([].concat),kge=!Cge||tpe(function(){if(fpe&&Cge({b:1},Cge(Age({},"a",{enumerable:!0,get:function(){Age(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x_={},eme={},$P=Symbol(),tme="abcdefghijklmnopqrst";return x_[$P]=7,tme.split("").forEach(function(ame){eme[ame]=ame}),Cge({},x_)[$P]!=7||xge(Cge({},eme)).join("")!=tme})?function(x_,eme){for(var $P=Mde(x_),tme=arguments.length,ame=1,nme=fge.f,rme=Zhe.f;tme>ame;)for(var ime,ome=xhe(arguments[ame++]),lme=nme?Oge(xge(ome),nme(ome)):xge(ome),sme=lme.length,cme=0;sme>cme;)ime=lme[cme++],fpe&&!Epe(rme,ome,ime)||($P[ime]=ome[ime]);return $P}:Cge;Sge({target:"Object",stat:!0,forced:Object.assign!==kge},{assign:kge});var Bge=Dde(function(x_){var eme=function($P){var tme=/\blang(?:uage)?-([\w-]+)\b/i,ame=0,nme={},rme={manual:$P.Prism&&$P.Prism.manual,disableWorkerMessageHandler:$P.Prism&&$P.Prism.disableWorkerMessageHandler,util:{encode:function hme(bme){return bme instanceof ime?new ime(bme.type,hme(bme.content),bme.alias):Array.isArray(bme)?bme.map(hme):bme.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(hme){return Object.prototype.toString.call(hme).slice(8,-1)},objId:function(hme){return hme.__id||Object.defineProperty(hme,"__id",{value:++ame}),hme.__id},clone:function hme(bme,mme){var vme,gme;switch(mme=mme||{},rme.util.type(bme)){case"Object":if(gme=rme.util.objId(bme),mme[gme])return mme[gme];for(var yme in vme={},mme[gme]=vme,bme)bme.hasOwnProperty(yme)&&(vme[yme]=hme(bme[yme],mme));return vme;case"Array":return gme=rme.util.objId(bme),mme[gme]?mme[gme]:(vme=[],mme[gme]=vme,bme.forEach(function(_me,$me){vme[$me]=hme(_me,mme)}),vme);default:return bme}},getLanguage:function(hme){for(;hme&&!tme.test(hme.className);)hme=hme.parentElement;return hme?(hme.className.match(tme)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(vme){var hme=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(vme.stack)||[])[1];if(hme){var bme=document.getElementsByTagName("script");for(var mme in bme)if(bme[mme].src==hme)return bme[mme]}return null}},isActive:function(hme,bme,mme){for(var vme="no-"+bme;hme;){var gme=hme.classList;if(gme.contains(bme))return!0;if(gme.contains(vme))return!1;hme=hme.parentElement}return!!mme}},languages:{plain:nme,plaintext:nme,text:nme,txt:nme,extend:function(hme,bme){var mme=rme.util.clone(rme.languages[hme]);for(var vme in bme)mme[vme]=bme[vme];return mme},insertBefore:function(hme,bme,mme,vme){var gme=(vme=vme||rme.languages)[hme],yme={};for(var _me in gme)if(gme.hasOwnProperty(_me)){if(_me==bme)for(var $me in mme)mme.hasOwnProperty($me)&&(yme[$me]=mme[$me]);mme.hasOwnProperty(_me)||(yme[_me]=gme[_me])}var Cme=vme[hme];return vme[hme]=yme,rme.languages.DFS(rme.languages,function(Sme,Eme){Eme===Cme&&Sme!=hme&&(this[Sme]=yme)}),yme},DFS:function hme(bme,mme,vme,gme){gme=gme||{};var yme=rme.util.objId;for(var _me in bme)if(bme.hasOwnProperty(_me)){mme.call(bme,_me,bme[_me],vme||_me);var $me=bme[_me],Cme=rme.util.type($me);Cme!=="Object"||gme[yme($me)]?Cme!=="Array"||gme[yme($me)]||(gme[yme($me)]=!0,hme($me,mme,_me,gme)):(gme[yme($me)]=!0,hme($me,mme,null,gme))}}},plugins:{},highlightAll:function(hme,bme){rme.highlightAllUnder(document,hme,bme)},highlightAllUnder:function(hme,bme,mme){var vme={callback:mme,container:hme,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};rme.hooks.run("before-highlightall",vme),vme.elements=Array.prototype.slice.apply(vme.container.querySelectorAll(vme.selector)),rme.hooks.run("before-all-elements-highlight",vme);for(var gme,yme=0;gme=vme.elements[yme++];)rme.highlightElement(gme,bme===!0,vme.callback)},highlightElement:function(hme,bme,mme){var vme=rme.util.getLanguage(hme),gme=rme.languages[vme];hme.className=hme.className.replace(tme,"").replace(/\s+/g," ")+" language-"+vme;var yme=hme.parentElement;yme&&yme.nodeName.toLowerCase()==="pre"&&(yme.className=yme.className.replace(tme,"").replace(/\s+/g," ")+" language-"+vme);var _me={element:hme,language:vme,grammar:gme,code:hme.textContent};function $me(Sme){_me.highlightedCode=Sme,rme.hooks.run("before-insert",_me),_me.element.innerHTML=_me.highlightedCode,rme.hooks.run("after-highlight",_me),rme.hooks.run("complete",_me),mme&&mme.call(_me.element)}if(rme.hooks.run("before-sanity-check",_me),(yme=_me.element.parentElement)&&yme.nodeName.toLowerCase()==="pre"&&!yme.hasAttribute("tabindex")&&yme.setAttribute("tabindex","0"),!_me.code)return rme.hooks.run("complete",_me),void(mme&&mme.call(_me.element));if(rme.hooks.run("before-highlight",_me),_me.grammar)if(bme&&$P.Worker){var Cme=new Worker(rme.filename);Cme.onmessage=function(Sme){$me(Sme.data)},Cme.postMessage(JSON.stringify({language:_me.language,code:_me.code,immediateClose:!0}))}else $me(rme.highlight(_me.code,_me.grammar,_me.language));else $me(rme.util.encode(_me.code))},highlight:function(hme,bme,mme){var vme={code:hme,grammar:bme,language:mme};return rme.hooks.run("before-tokenize",vme),vme.tokens=rme.tokenize(vme.code,vme.grammar),rme.hooks.run("after-tokenize",vme),ime.stringify(rme.util.encode(vme.tokens),vme.language)},tokenize:function(hme,bme){var mme=bme.rest;if(mme){for(var vme in mme)bme[vme]=mme[vme];delete bme.rest}var gme=new sme;return cme(gme,gme.head,hme),lme(hme,gme,bme,gme.head,0),function(yme){for(var _me=[],$me=yme.head.next;$me!==yme.tail;)_me.push($me.value),$me=$me.next;return _me}(gme)},hooks:{all:{},add:function(hme,bme){var mme=rme.hooks.all;mme[hme]=mme[hme]||[],mme[hme].push(bme)},run:function(hme,bme){var mme=rme.hooks.all[hme];if(mme&&mme.length)for(var vme,gme=0;vme=mme[gme++];)vme(bme)}},Token:ime};function ime(hme,bme,mme,vme){this.type=hme,this.content=bme,this.alias=mme,this.length=0|(vme||"").length}function ome(hme,bme,mme,vme){hme.lastIndex=bme;var gme=hme.exec(mme);if(gme&&vme&&gme[1]){var yme=gme[1].length;gme.index+=yme,gme[0]=gme[0].slice(yme)}return gme}function lme(hme,bme,mme,vme,gme,yme){for(var _me in mme)if(mme.hasOwnProperty(_me)&&mme[_me]){var $me=mme[_me];$me=Array.isArray($me)?$me:[$me];for(var Cme=0;Cme<$me.length;++Cme){if(yme&&yme.cause==_me+","+Cme)return;var Sme=$me[Cme],Eme=Sme.inside,xme=!!Sme.lookbehind,Tme=!!Sme.greedy,Ome=Sme.alias;if(Tme&&!Sme.pattern.global){var Rme=Sme.pattern.toString().match(/[imsuy]*$/)[0];Sme.pattern=RegExp(Sme.pattern.source,Rme+"g")}for(var Nme=Sme.pattern||Sme,Ime=vme.next,Pme=gme;Ime!==bme.tail&&!(yme&&Pme>=yme.reach);Pme+=Ime.value.length,Ime=Ime.next){var Mme=Ime.value;if(bme.length>hme.length)return;if(!(Mme instanceof ime)){var kme,Bme=1;if(Tme){if(!(kme=ome(Nme,Pme,hme,xme)))break;var Dme=kme.index,jme=kme.index+kme[0].length,Vme=Pme;for(Vme+=Ime.value.length;Dme>=Vme;)Vme+=(Ime=Ime.next).value.length;if(Pme=Vme-=Ime.value.length,Ime.value instanceof ime)continue;for(var Wme=Ime;Wme!==bme.tail&&(Vme<jme||typeof Wme.value=="string");Wme=Wme.next)Bme++,Vme+=Wme.value.length;Bme--,Mme=hme.slice(Pme,Vme),kme.index-=Pme}else if(!(kme=ome(Nme,0,Mme,xme)))continue;Dme=kme.index;var Lme=kme[0],zme=Mme.slice(0,Dme),Ume=Mme.slice(Dme+Lme.length),Gme=Pme+Mme.length;yme&&Gme>yme.reach&&(yme.reach=Gme);var Jme=Ime.prev;if(zme&&(Jme=cme(bme,Jme,zme),Pme+=zme.length),dme(bme,Jme,Bme),Ime=cme(bme,Jme,new ime(_me,Eme?rme.tokenize(Lme,Eme):Lme,Ome,Lme)),Ume&&cme(bme,Ime,Ume),Bme>1){var Yme={cause:_me+","+Cme,reach:Gme};lme(hme,bme,mme,Ime.prev,Pme,Yme),yme&&Yme.reach>yme.reach&&(yme.reach=Yme.reach)}}}}}}function sme(){var hme={value:null,prev:null,next:null},bme={value:null,prev:hme,next:null};hme.next=bme,this.head=hme,this.tail=bme,this.length=0}function cme(hme,bme,mme){var vme=bme.next,gme={value:mme,prev:bme,next:vme};return bme.next=gme,vme.prev=gme,hme.length++,gme}function dme(hme,bme,mme){for(var vme=bme.next,gme=0;gme<mme&&vme!==hme.tail;gme++)vme=vme.next;bme.next=vme,vme.prev=bme,hme.length-=gme}if($P.Prism=rme,ime.stringify=function hme(bme,mme){if(typeof bme=="string")return bme;if(Array.isArray(bme)){var vme="";return bme.forEach(function(Cme){vme+=hme(Cme,mme)}),vme}var gme={type:bme.type,content:hme(bme.content,mme),tag:"span",classes:["token",bme.type],attributes:{},language:mme},yme=bme.alias;yme&&(Array.isArray(yme)?Array.prototype.push.apply(gme.classes,yme):gme.classes.push(yme)),rme.hooks.run("wrap",gme);var _me="";for(var $me in gme.attributes)_me+=" "+$me+'="'+(gme.attributes[$me]||"").replace(/"/g,"&quot;")+'"';return"<"+gme.tag+' class="'+gme.classes.join(" ")+'"'+_me+">"+gme.content+"</"+gme.tag+">"},!$P.document)return $P.addEventListener&&(rme.disableWorkerMessageHandler||$P.addEventListener("message",function(hme){var bme=JSON.parse(hme.data),mme=bme.language,vme=bme.code,gme=bme.immediateClose;$P.postMessage(rme.highlight(vme,rme.languages[mme],mme)),gme&&$P.close()},!1)),rme;var ume=rme.util.currentScript();function fme(){rme.manual||rme.highlightAll()}if(ume&&(rme.filename=ume.src,ume.hasAttribute("data-manual")&&(rme.manual=!0)),!rme.manual){var pme=document.readyState;pme==="loading"||pme==="interactive"&&ume&&ume.defer?document.addEventListener("DOMContentLoaded",fme):window.requestAnimationFrame?window.requestAnimationFrame(fme):window.setTimeout(fme,16)}return rme}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */x_.exports&&(x_.exports=eme),Ede!==void 0&&(Ede.Prism=eme),eme.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},eme.languages.markup.tag.inside["attr-value"].inside.entity=eme.languages.markup.entity,eme.languages.markup.doctype.inside["internal-subset"].inside=eme.languages.markup,eme.hooks.add("wrap",function($P){$P.type==="entity"&&($P.attributes.title=$P.content.replace(/&amp;/,"&"))}),Object.defineProperty(eme.languages.markup.tag,"addInlined",{value:function($P,tme){var ame={};ame["language-"+tme]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:eme.languages[tme]},ame.cdata=/^<!\[CDATA\[|\]\]>$/i;var nme={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:ame}};nme["language-"+tme]={pattern:/[\s\S]+/,inside:eme.languages[tme]};var rme={};rme[$P]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return $P}),"i"),lookbehind:!0,greedy:!0,inside:nme},eme.languages.insertBefore("markup","cdata",rme)}}),Object.defineProperty(eme.languages.markup.tag,"addAttribute",{value:function($P,tme){eme.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+$P+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[tme,"language-"+tme],inside:eme.languages[tme]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),eme.languages.html=eme.languages.markup,eme.languages.mathml=eme.languages.markup,eme.languages.svg=eme.languages.markup,eme.languages.xml=eme.languages.extend("markup",{}),eme.languages.ssml=eme.languages.xml,eme.languages.atom=eme.languages.xml,eme.languages.rss=eme.languages.xml,function($P){var tme=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;$P.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+tme.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+tme.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+tme.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:tme,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},$P.languages.css.atrule.inside.rest=$P.languages.css;var ame=$P.languages.markup;ame&&(ame.tag.addInlined("style","css"),ame.tag.addAttribute("style","css"))}(eme),eme.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},eme.languages.javascript=eme.languages.extend("clike",{"class-name":[eme.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),eme.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,eme.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:eme.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:eme.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:eme.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:eme.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:eme.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),eme.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:eme.languages.javascript}},string:/[\s\S]+/}}}),eme.languages.markup&&(eme.languages.markup.tag.addInlined("script","javascript"),eme.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),eme.languages.js=eme.languages.javascript,function(){if(eme!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var $P={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},tme="data-src-status",ame='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',nme=/\blang(?:uage)?-([\w-]+)\b/i;eme.hooks.add("before-highlightall",function(ome){ome.selector+=", "+ame}),eme.hooks.add("before-sanity-check",function(ome){var lme=ome.element;if(lme.matches(ame)){ome.code="",lme.setAttribute(tme,"loading");var sme=lme.appendChild(document.createElement("CODE"));sme.textContent="Loading…";var cme=lme.getAttribute("data-src"),dme=ome.language;if(dme==="none"){var ume=(/\.(\w+)$/.exec(cme)||[,"none"])[1];dme=$P[ume]||ume}ime(sme,dme),ime(lme,dme);var fme=eme.plugins.autoloader;fme&&fme.loadLanguages(dme);var pme=new XMLHttpRequest;pme.open("GET",cme,!0),pme.onreadystatechange=function(){pme.readyState==4&&(pme.status<400&&pme.responseText?(lme.setAttribute(tme,"loaded"),sme.textContent=pme.responseText,eme.highlightElement(sme)):(lme.setAttribute(tme,"failed"),pme.status>=400?sme.textContent="✖ Error "+pme.status+" while fetching file: "+pme.statusText:sme.textContent="✖ Error: File does not exist or is empty"))},pme.send(null)}}),eme.plugins.fileHighlight={highlight:function(ome){for(var lme,sme=(ome||document).querySelectorAll(ame),cme=0;lme=sme[cme++];)eme.highlightElement(lme)}};var rme=!1;eme.fileHighlight=function(){rme||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),rme=!0),eme.plugins.fileHighlight.highlight.apply(this,arguments)}}function ime(ome,lme){var sme=ome.className;sme=sme.replace(nme," ")+" language-"+lme,ome.className=sme.replace(/\s+/g," ").trim()}}()});(function(x_){var eme=x_.util.clone(x_.languages.javascript),$P=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,tme=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,ame=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function nme(ome,lme){return ome=ome.replace(/<S>/g,function(){return $P}).replace(/<BRACES>/g,function(){return tme}).replace(/<SPREAD>/g,function(){return ame}),RegExp(ome,lme)}ame=nme(ame).source,x_.languages.jsx=x_.languages.extend("markup",eme),x_.languages.jsx.tag.pattern=nme(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),x_.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,x_.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,x_.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,x_.languages.jsx.tag.inside.comment=eme.comment,x_.languages.insertBefore("inside","attr-name",{spread:{pattern:nme(/<SPREAD>/.source),inside:x_.languages.jsx}},x_.languages.jsx.tag),x_.languages.insertBefore("inside","special-attr",{script:{pattern:nme(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:x_.languages.jsx},alias:"language-javascript"}},x_.languages.jsx.tag);var rme=function(ome){return ome?typeof ome=="string"?ome:typeof ome.content=="string"?ome.content:ome.content.map(rme).join(""):""},ime=function(ome){for(var lme=[],sme=0;sme<ome.length;sme++){var cme=ome[sme],dme=!1;if(typeof cme!="string"&&(cme.type==="tag"&&cme.content[0]&&cme.content[0].type==="tag"?cme.content[0].content[0].content==="</"?lme.length>0&&lme[lme.length-1].tagName===rme(cme.content[0].content[1])&&lme.pop():cme.content[cme.content.length-1].content==="/>"||lme.push({tagName:rme(cme.content[0].content[1]),openedBraces:0}):lme.length>0&&cme.type==="punctuation"&&cme.content==="{"?lme[lme.length-1].openedBraces++:lme.length>0&&lme[lme.length-1].openedBraces>0&&cme.type==="punctuation"&&cme.content==="}"?lme[lme.length-1].openedBraces--:dme=!0),(dme||typeof cme=="string")&&lme.length>0&&lme[lme.length-1].openedBraces===0){var ume=rme(cme);sme<ome.length-1&&(typeof ome[sme+1]=="string"||ome[sme+1].type==="plain-text")&&(ume+=rme(ome[sme+1]),ome.splice(sme+1,1)),sme>0&&(typeof ome[sme-1]=="string"||ome[sme-1].type==="plain-text")&&(ume=rme(ome[sme-1])+ume,ome.splice(sme-1,1),sme--),ome[sme]=new x_.Token("plain-text",ume,null,ume)}cme.content&&typeof cme.content!="string"&&ime(cme.content)}};x_.hooks.add("after-tokenize",function(ome){ome.language!=="jsx"&&ome.language!=="tsx"||ime(ome.tokens)})})(Prism),function(x_){x_.languages.typescript=x_.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),x_.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete x_.languages.typescript.parameter;var eme=x_.languages.extend("typescript",{});delete eme["class-name"],x_.languages.typescript["class-name"].inside=eme,x_.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:eme}}}}),x_.languages.ts=x_.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(x_){x_.type==="entity"&&(x_.attributes.title=x_.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(x_,eme){var $P={};$P["language-"+eme]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[eme]},$P.cdata=/^<!\[CDATA\[|\]\]>$/i;var tme={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:$P}};tme["language-"+eme]={pattern:/[\s\S]+/,inside:Prism.languages[eme]};var ame={};ame[x_]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return x_}),"i"),lookbehind:!0,greedy:!0,inside:tme},Prism.languages.insertBefore("markup","cdata",ame)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(x_,eme){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+x_+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[eme,"language-"+eme],inside:Prism.languages[eme]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(x_){var eme=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,$P=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],tme=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,ame=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,nme=/[{}\[\](),:;]/;x_.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:eme,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:$P,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:tme,operator:ame,punctuation:nme};var rme={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:x_.languages.php},ime=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:rme}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:rme}}];x_.languages.insertBefore("php","variable",{string:ime,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:eme,string:ime,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:$P,number:tme,operator:ame,punctuation:nme}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),x_.hooks.add("before-tokenize",function(ome){/<\?/.test(ome.code)&&x_.languages["markup-templating"].buildPlaceholders(ome,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),x_.hooks.add("after-tokenize",function(ome){x_.languages["markup-templating"].tokenizePlaceholders(ome,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(x_){var eme=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,$P=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,tme={pattern:RegExp($P+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};x_.languages.java=x_.languages.extend("clike",{"class-name":[tme,{pattern:RegExp($P+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:tme.inside}],keyword:eme,function:[x_.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),x_.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),x_.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":tme,keyword:eme,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return eme.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(x_){var eme=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,$P=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return eme.source});x_.languages.cpp=x_.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return eme.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:eme,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),x_.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return $P})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),x_.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:x_.languages.cpp}}}}),x_.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),x_.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:x_.languages.extend("cpp",{})}}),x_.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},x_.languages.cpp["base-clause"])}(Prism),function(x_){function eme(jme,Vme){return jme.replace(/<<(\d+)>>/g,function(Wme,Lme){return"(?:"+Vme[+Lme]+")"})}function $P(jme,Vme,Wme){return RegExp(eme(jme,Vme),"")}function tme(jme,Vme){for(var Wme=0;Wme<Vme;Wme++)jme=jme.replace(/<<self>>/g,function(){return"(?:"+jme+")"});return jme.replace(/<<self>>/g,"[^\\s\\S]")}var ame="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",nme="class enum interface record struct",rme="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",ime="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function ome(jme){return"\\b(?:"+jme.trim().replace(/ /g,"|")+")\\b"}var lme=ome(nme),sme=RegExp(ome(ame+" "+nme+" "+rme+" "+ime)),cme=ome(nme+" "+rme+" "+ime),dme=ome(ame+" "+nme+" "+ime),ume=tme(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),fme=tme(/\((?:[^()]|<<self>>)*\)/.source,2),pme=/@?\b[A-Za-z_]\w*\b/.source,hme=eme(/<<0>>(?:\s*<<1>>)?/.source,[pme,ume]),bme=eme(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[cme,hme]),mme=/\[\s*(?:,\s*)*\]/.source,vme=eme(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[bme,mme]),gme=eme(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[ume,fme,mme]),yme=eme(/\(<<0>>+(?:,<<0>>+)+\)/.source,[gme]),_me=eme(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[yme,bme,mme]),$me={keyword:sme,punctuation:/[<>()?,.:[\]]/},Cme=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,Sme=/"(?:\\.|[^\\"\r\n])*"/.source,Eme=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;x_.languages.csharp=x_.languages.extend("clike",{string:[{pattern:$P(/(^|[^$\\])<<0>>/.source,[Eme]),lookbehind:!0,greedy:!0},{pattern:$P(/(^|[^@$\\])<<0>>/.source,[Sme]),lookbehind:!0,greedy:!0},{pattern:RegExp(Cme),greedy:!0,alias:"character"}],"class-name":[{pattern:$P(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[bme]),lookbehind:!0,inside:$me},{pattern:$P(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[pme,_me]),lookbehind:!0,inside:$me},{pattern:$P(/(\busing\s+)<<0>>(?=\s*=)/.source,[pme]),lookbehind:!0},{pattern:$P(/(\b<<0>>\s+)<<1>>/.source,[lme,hme]),lookbehind:!0,inside:$me},{pattern:$P(/(\bcatch\s*\(\s*)<<0>>/.source,[bme]),lookbehind:!0,inside:$me},{pattern:$P(/(\bwhere\s+)<<0>>/.source,[pme]),lookbehind:!0},{pattern:$P(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[vme]),lookbehind:!0,inside:$me},{pattern:$P(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_me,dme,pme]),inside:$me}],keyword:sme,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),x_.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),x_.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:$P(/([(,]\s*)<<0>>(?=\s*:)/.source,[pme]),lookbehind:!0,alias:"punctuation"}}),x_.languages.insertBefore("csharp","class-name",{namespace:{pattern:$P(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[pme]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:$P(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[fme]),lookbehind:!0,alias:"class-name",inside:$me},"return-type":{pattern:$P(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_me,bme]),inside:$me,alias:"class-name"},"constructor-invocation":{pattern:$P(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_me]),lookbehind:!0,inside:$me,alias:"class-name"},"generic-method":{pattern:$P(/<<0>>\s*<<1>>(?=\s*\()/.source,[pme,ume]),inside:{function:$P(/^<<0>>/.source,[pme]),generic:{pattern:RegExp(ume),alias:"class-name",inside:$me}}},"type-list":{pattern:$P(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[lme,hme,pme,_me,sme.source,fme,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:$P(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[hme,fme]),lookbehind:!0,greedy:!0,inside:x_.languages.csharp},keyword:sme,"class-name":{pattern:RegExp(_me),greedy:!0,inside:$me},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var xme=Sme+"|"+Cme,Tme=eme(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[xme]),Ome=tme(eme(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Tme]),2),Rme=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Nme=eme(/<<0>>(?:\s*\(<<1>>*\))?/.source,[bme,Ome]);x_.languages.insertBefore("csharp","class-name",{attribute:{pattern:$P(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Rme,Nme]),lookbehind:!0,greedy:!0,inside:{target:{pattern:$P(/^<<0>>(?=\s*:)/.source,[Rme]),alias:"keyword"},"attribute-arguments":{pattern:$P(/\(<<0>>*\)/.source,[Ome]),inside:x_.languages.csharp},"class-name":{pattern:RegExp(bme),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Ime=/:[^}\r\n]+/.source,Pme=tme(eme(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[Tme]),2),Mme=eme(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Pme,Ime]),kme=tme(eme(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[xme]),2),Bme=eme(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[kme,Ime]);function Dme(jme,Vme){return{interpolation:{pattern:$P(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[jme]),lookbehind:!0,inside:{"format-string":{pattern:$P(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Vme,Ime]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:x_.languages.csharp}}},string:/[\s\S]+/}}x_.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:$P(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[Mme]),lookbehind:!0,greedy:!0,inside:Dme(Mme,Pme)},{pattern:$P(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Bme]),lookbehind:!0,greedy:!0,inside:Dme(Bme,kme)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(x_){x_.languages.ruby=x_.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var eme={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:x_.languages.ruby}};delete x_.languages.ruby.function,x_.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:eme}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:eme}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:x_.languages.ruby}}}),x_.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),x_.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:eme}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:eme}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:eme}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],x_.languages.rb=x_.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ 	]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(x_){x_.inside.interpolation.inside=Prism.languages.swift}),function(x_){var eme="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",$P={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},tme={bash:$P,environment:{pattern:RegExp("\\$"+eme),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+eme),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};x_.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+eme),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:tme},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:$P}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:tme},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:tme.entity}}],environment:{pattern:RegExp("\\$?"+eme),alias:"constant"},variable:tme.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|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|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},$P.inside=x_.languages.bash;for(var ame=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],nme=tme.variable[1].inside,rme=0;rme<ame.length;rme++)nme[ame[rme]]=x_.languages.bash[ame[rme]];x_.languages.shell=x_.languages.bash}(Prism),function(x_){var eme=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function $P(lme){return lme=lme.replace(/<inner>/g,function(){return eme}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+lme+")")}var tme=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,ame=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tme}),nme=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;x_.languages.markdown=x_.languages.extend("markup",{}),x_.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:x_.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+ame+nme+"(?:"+ame+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+ame+nme+")(?:"+ame+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tme),inside:x_.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+ame+")"+nme+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+ame+"$"),inside:{"table-header":{pattern:RegExp(tme),alias:"important",inside:x_.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:$P(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:$P(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:$P(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:$P(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(lme){["url","bold","italic","strike","code-snippet"].forEach(function(sme){lme!==sme&&(x_.languages.markdown[lme].inside.content.inside[sme]=x_.languages.markdown[sme])})}),x_.hooks.add("after-tokenize",function(lme){lme.language!=="markdown"&&lme.language!=="md"||function sme(cme){if(cme&&typeof cme!="string")for(var dme=0,ume=cme.length;dme<ume;dme++){var fme=cme[dme];if(fme.type==="code"){var pme=fme.content[1],hme=fme.content[3];if(pme&&hme&&pme.type==="code-language"&&hme.type==="code-block"&&typeof pme.content=="string"){var bme=pme.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),mme="language-"+(bme=(/[a-z][\w-]*/i.exec(bme)||[""])[0].toLowerCase());hme.alias?typeof hme.alias=="string"?hme.alias=[hme.alias,mme]:hme.alias.push(mme):hme.alias=[mme]}}else sme(fme.content)}}(lme.tokens)}),x_.hooks.add("wrap",function(lme){if(lme.type==="code-block"){for(var sme="",cme=0,dme=lme.classes.length;cme<dme;cme++){var ume=lme.classes[cme],fme=/language-(.+)/.exec(ume);if(fme){sme=fme[1];break}}var pme=x_.languages[sme];if(pme)lme.content=x_.highlight(function(bme){var mme=bme.replace(rme,"");return mme.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(vme,gme){var yme;return(gme=gme.toLowerCase())[0]==="#"?(yme=gme[1]==="x"?parseInt(gme.slice(2),16):Number(gme.slice(1)),ome(yme)):ime[gme]||vme})}(lme.content),pme,sme);else if(sme&&sme!=="none"&&x_.plugins.autoloader){var hme="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());lme.attributes.id=hme,x_.plugins.autoloader.loadLanguages(sme,function(){var bme=document.getElementById(hme);bme&&(bme.innerHTML=x_.highlight(bme.textContent,x_.languages[sme],sme))})}}});var rme=RegExp(x_.languages.markup.tag.pattern.source,"gi"),ime={amp:"&",lt:"<",gt:">",quot:'"'},ome=String.fromCodePoint||String.fromCharCode;x_.languages.md=x_.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(x_){if(x_.language==="groovy"&&x_.type==="string"){var eme=x_.content[0];if(eme!="'"){var $P=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;eme==="$"&&($P=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),x_.content=x_.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),x_.content=Prism.highlight(x_.content,{expression:{pattern:$P,lookbehind:!0,inside:Prism.languages.groovy}}),x_.classes.push(eme==="/"?"regex":"gstring")}}});var Fge=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Tge(x_){return typeof x_=="string"?x_.length:typeof x_.content=="string"?x_.content.length:x_.content.reduce(function(eme,$P){return eme+Tge($P)},0)}var _ge,Pge=Ade.String,jge=function(x_){if(hhe(x_)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Pge(x_)},Nge=function(){var x_=bpe(this),eme="";return x_.global&&(eme+="g"),x_.ignoreCase&&(eme+="i"),x_.multiline&&(eme+="m"),x_.dotAll&&(eme+="s"),x_.unicode&&(eme+="u"),x_.sticky&&(eme+="y"),eme},Ige=Ade.RegExp,Lge=tpe(function(){var x_=Ige("a","y");return x_.lastIndex=2,x_.exec("abcd")!=null}),Rge=Lge||tpe(function(){return!Ige("a","y").sticky}),Mge={BROKEN_CARET:Lge||tpe(function(){var x_=Ige("^r","gy");return x_.lastIndex=2,x_.exec("str")!=null}),MISSED_STICKY:Rge,UNSUPPORTED_Y:Lge},zge=fpe?Object.defineProperties:function(x_,eme){bpe(x_);for(var $P,tme=Jhe(eme),ame=xge(eme),nme=ame.length,rme=0;nme>rme;)Ipe.f(x_,$P=ame[rme++],tme[$P]);return x_},$ge=Kde("document","documentElement"),Hge=qpe("IE_PROTO"),Vge=function(){},Uge=function(x_){return"<script>"+x_+"<\/script>"},Wge=function(x_){x_.write(Uge("")),x_.close();var eme=x_.parentWindow.Object;return x_=null,eme},Gge=function(){try{_ge=new ActiveXObject("htmlfile")}catch{}var x_,eme;Gge=typeof document<"u"?document.domain&&_ge?Wge(_ge):((eme=gpe("iframe")).style.display="none",$ge.appendChild(eme),eme.src="javascript:",(x_=eme.contentWindow.document).open(),x_.write(Uge("document.F=Object")),x_.close(),x_.F):Wge(_ge);for(var $P=sge.length;$P--;)delete Gge.prototype[sge[$P]];return Gge()};Kpe[Hge]=!0;var qge,Kge,Yge=Object.create||function(x_,eme){var $P;return x_!==null?(Vge.prototype=bpe(x_),$P=new Vge,Vge.prototype=null,$P[Hge]=x_):$P=Gge(),eme===void 0?$P:zge($P,eme)},Xge=Ade.RegExp,Zge=tpe(function(){var x_=Xge(".","s");return!(x_.dotAll&&x_.exec(`
`)&&x_.flags==="s")}),Jge=Ade.RegExp,Qge=tpe(function(){var x_=Jge("(?<a>b)","g");return x_.exec("b").groups.a!=="b"||"b".replace(x_,"$<a>c")!=="bc"}),eve=nhe.get,tve=Fde("native-string-replace",String.prototype.replace),nve=RegExp.prototype.exec,rve=nve,ove=Nde("".charAt),ive=Nde("".indexOf),ave=Nde("".replace),uve=Nde("".slice),sve=(Kge=/b*/g,Epe(nve,qge=/a/,"a"),Epe(nve,Kge,"a"),qge.lastIndex!==0||Kge.lastIndex!==0),lve=Mge.BROKEN_CARET,cve=/()??/.exec("")[1]!==void 0;(sve||cve||lve||Zge||Qge)&&(rve=function(x_){var eme,$P,tme,ame,nme,rme,ime,ome=this,lme=eve(ome),sme=jge(x_),cme=lme.raw;if(cme)return cme.lastIndex=ome.lastIndex,eme=Epe(rve,cme,sme),ome.lastIndex=cme.lastIndex,eme;var dme=lme.groups,ume=lve&&ome.sticky,fme=Epe(Nge,ome),pme=ome.source,hme=0,bme=sme;if(ume&&(fme=ave(fme,"y",""),ive(fme,"g")===-1&&(fme+="g"),bme=uve(sme,ome.lastIndex),ome.lastIndex>0&&(!ome.multiline||ome.multiline&&ove(sme,ome.lastIndex-1)!==`
`)&&(pme="(?: "+pme+")",bme=" "+bme,hme++),$P=new RegExp("^(?:"+pme+")",fme)),cve&&($P=new RegExp("^"+pme+"$(?!\\s)",fme)),sve&&(tme=ome.lastIndex),ame=Epe(nve,ume?$P:ome,bme),ume?ame?(ame.input=uve(ame.input,hme),ame[0]=uve(ame[0],hme),ame.index=ome.lastIndex,ome.lastIndex+=ame[0].length):ome.lastIndex=0:sve&&ame&&(ome.lastIndex=ome.global?ame.index+ame[0].length:tme),cve&&ame&&ame.length>1&&Epe(tve,ame[0],$P,function(){for(nme=1;nme<arguments.length-2;nme++)arguments[nme]===void 0&&(ame[nme]=void 0)}),ame&&dme)for(ame.groups=rme=Yge(null),nme=0;nme<dme.length;nme++)rme[(ime=dme[nme])[0]]=ame[ime[1]];return ame});var fve=rve;Sge({target:"RegExp",proto:!0,forced:/./.exec!==fve},{exec:fve});var dve=Function.prototype,pve=dve.apply,hve=dve.bind,gve=dve.call,vve=typeof Reflect=="object"&&Reflect.apply||(hve?gve.bind(pve):function(){return gve.apply(pve,arguments)}),yve=spe("species"),mve=RegExp.prototype,bve=spe("match"),wve=Ade.TypeError,Eve=spe("species"),Dve=Nde("".charAt),Sve=Nde("".charCodeAt),xve=Nde("".slice),Cve=function(x_){return function(eme,$P){var tme,ame,nme=jge(Lde(eme)),rme=Ohe($P),ime=nme.length;return rme<0||rme>=ime?x_?"":void 0:(tme=Sve(nme,rme))<55296||tme>56319||rme+1===ime||(ame=Sve(nme,rme+1))<56320||ame>57343?x_?Dve(nme,rme):tme:x_?xve(nme,rme,rme+2):ame-56320+(tme-55296<<10)+65536}},Ave=Cve(!0),Ove=function(x_,eme,$P){return eme+($P?Ave(x_,eme).length:1)},kve=Ade.Array,Bve=Math.max,Fve=function(x_,eme,$P){for(var tme,ame,nme,rme,ime=Fhe(x_),ome=rge(eme,ime),lme=rge($P===void 0?ime:$P,ime),sme=kve(Bve(lme-ome,0)),cme=0;ome<lme;ome++,cme++)tme=sme,ame=cme,nme=x_[ome],(rme=Ppe(ame))in tme?Ipe.f(tme,rme,Lpe(0,nme)):tme[rme]=nme;return sme.length=cme,sme},Tve=Ade.TypeError,_ve=function(x_,eme){var $P=x_.exec;if(Gde($P)){var tme=Epe($P,x_,eme);return tme!==null&&bpe(tme),tme}if(che(x_)==="RegExp")return Epe(fve,x_,eme);throw Tve("RegExp#exec called on incompatible receiver")},Pve=Mge.UNSUPPORTED_Y,jve=Math.min,Nve=[].push,Ive=Nde(/./.exec),Lve=Nde(Nve),Rve=Nde("".slice);(function(x_,eme,$P,tme){var ame=spe(x_),nme=!tpe(function(){var lme={};return lme[ame]=function(){return 7},""[x_](lme)!=7}),rme=nme&&!tpe(function(){var lme=!1,sme=/a/;return(sme={}).constructor={},sme.constructor[yve]=function(){return sme},sme.flags="",sme[ame]=/./[ame],sme.exec=function(){return lme=!0,null},sme[ame](""),!lme});if(!nme||!rme||$P){var ime=Nde(/./[ame]),ome=function(lme,sme,cme){var dme;return dme="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(ume,fme){var pme,hme,bme=jge(Lde(this)),mme=fme===void 0?4294967295:fme>>>0;if(mme===0)return[];if(ume===void 0)return[bme];if(!dpe(pme=ume)||!((hme=pme[bve])!==void 0?hme:che(pme)=="RegExp"))return Epe(sme,bme,ume,mme);for(var vme,gme,yme,_me=[],$me=(ume.ignoreCase?"i":"")+(ume.multiline?"m":"")+(ume.unicode?"u":"")+(ume.sticky?"y":""),Cme=0,Sme=new RegExp(ume.source,$me+"g");(vme=Epe(fve,Sme,bme))&&!((gme=Sme.lastIndex)>Cme&&(Lve(_me,Rve(bme,Cme,vme.index)),vme.length>1&&vme.index<bme.length&&vve(Nve,_me,Fve(vme,1)),yme=vme[0].length,Cme=gme,_me.length>=mme));)Sme.lastIndex===vme.index&&Sme.lastIndex++;return Cme===bme.length?!yme&&Ive(Sme,"")||Lve(_me,""):Lve(_me,Rve(bme,Cme)),_me.length>mme?Fve(_me,0,mme):_me}:"0".split(void 0,0).length?function(ume,fme){return ume===void 0&&fme===0?[]:Epe(sme,this,ume,fme)}:sme,[function(ume,fme){var pme=Lde(this),hme=ume==null?void 0:Bpe(ume,lme);return hme?Epe(hme,ume,pme,fme):Epe(dme,jge(pme),ume,fme)},function(ume,fme){var pme=bpe(this),hme=jge(ume),bme=cme(dme,pme,hme,fme,dme!==sme);if(bme.done)return bme.value;var mme=function(Ome,Rme){var Nme,Ime=bpe(Ome).constructor;return Ime===void 0||(Nme=bpe(Ime)[Eve])==null?Rme:function(Pme){if(Mhe(Pme))return Pme;throw wve(Ape(Pme)+" is not a constructor")}(Nme)}(pme,RegExp),vme=pme.unicode,gme=(pme.ignoreCase?"i":"")+(pme.multiline?"m":"")+(pme.unicode?"u":"")+(Pve?"g":"y"),yme=new mme(Pve?"^(?:"+pme.source+")":pme,gme),_me=fme===void 0?4294967295:fme>>>0;if(_me===0)return[];if(hme.length===0)return _ve(yme,hme)===null?[hme]:[];for(var $me=0,Cme=0,Sme=[];Cme<hme.length;){yme.lastIndex=Pve?0:Cme;var Eme,xme=_ve(yme,Pve?Rve(hme,Cme):hme);if(xme===null||(Eme=jve(Bhe(yme.lastIndex+(Pve?Cme:0)),hme.length))===$me)Cme=Ove(hme,Cme,vme);else{if(Lve(Sme,Rve(hme,$me,Cme)),Sme.length===_me)return Sme;for(var Tme=1;Tme<=xme.length-1;Tme++)if(Lve(Sme,xme[Tme]),Sme.length===_me)return Sme;Cme=$me=Eme}}return Lve(Sme,Rve(hme,$me)),Sme}]}(ame,""[x_],function(lme,sme,cme,dme,ume){var fme=Nde(lme),pme=sme.exec;return pme===fve||pme===mve.exec?nme&&!ume?{done:!0,value:ime(sme,cme,dme)}:{done:!0,value:fme(cme,sme,dme)}:{done:!1}});uhe(String.prototype,x_,ome[0]),uhe(mve,ame,ome[1])}tme&&Rpe(mve[ame],"sham",!0)})("split",0,!!tpe(function(){var x_=/(?:)/,eme=x_.exec;x_.exec=function(){return eme.apply(this,arguments)};var $P="ab".split(x_);return $P.length!==2||$P[0]!=="a"||$P[1]!=="b"}),Pve),Sge({global:!0},{globalThis:Ade}),Vp&&(Mp.fn.attr=Vp);var Mve=ahe.PROPER,zve=RegExp.prototype,$ve=zve.toString,Hve=Nde(Nge),Vve=tpe(function(){return $ve.call({source:"a",flags:"b"})!="/a/b"}),Uve=Mve&&$ve.name!="toString";(Vve||Uve)&&uhe(RegExp.prototype,"toString",function(){var x_=bpe(this),eme=jge(x_.source),$P=x_.flags;return"/"+eme+"/"+jge($P===void 0&&Dpe(zve,x_)&&!("flags"in zve)?Hve(x_):$P)},{unsafe:!0});var Wve=function(){function x_(){this.title=HP("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return x_.prototype.getOptions=function(eme){var $P=[],tme=eme.getMenuConfig("codeSelectLang").codeLangs,ame=tme===void 0?[]:tme;$P.push({text:"plain text",value:""}),ame.forEach(function(rme){var ime=rme.text,ome=rme.value;$P.push({text:ime,value:ome})});var nme=this.getValue(eme);return $P.forEach(function(rme){rme.value===nme?rme.selected=!0:delete rme.selected}),$P},x_.prototype.isActive=function(eme){return!1},x_.prototype.getValue=function(eme){var $P=this.getSelectCodeElem(eme);if($P==null||!Sf.isElement($P))return"";var tme=$P.language.toString(),ame=eme.getMenuConfig("codeSelectLang").codeLangs;return(ame===void 0?[]:ame).some(function(nme){return nme.value===tme})?tme:""},x_.prototype.isDisabled=function(eme){return eme.selection==null||!this.getSelectCodeElem(eme)},x_.prototype.exec=function(eme,$P){if(this.getSelectCodeElem(eme)!=null){var tme={language:$P.toString()};md.setNodes(eme,tme,{match:function(ame){return QO.checkNodeType(ame,"code")}})}},x_.prototype.getSelectCodeElem=function(eme){var $P=QO.getSelectedNodeByType(eme,"code");if($P==null)return null;var tme=QO.getParentNode(eme,$P);return Sf.isElement(tme)?tme.type!=="pre"?null:$P:null},x_}(),Gve={renderStyle:function(x_,eme){var $P=x_,tme=eme,ame="";return Fge.forEach(function(nme){$P[nme]&&(ame=nme)}),ame&&function(nme,rme){nme.data==null&&(nme.data={});var ime=nme.data;ime.props==null&&(ime.props={}),Object.assign(ime.props,{className:rme})}(tme,ame="token "+ame),tme},parseStyleHtml:function(x_,eme,$P){var tme=Mp(x_);if(!Sf.isElement(eme)||QO.getNodeType(eme)!=="code")return eme;var ame=eme,nme=tme.attr("class")||"";return nme.indexOf("language-")===0?ame.language=nme.split("-")[1]||"":ame.language=nme.toLowerCase(),ame},menus:[{key:"codeSelectLang",factory:function(){return new Wve},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(x_,eme){var $P=x_.language,tme=$P===void 0?"":$P;return"<code "+(tme?'class="language-'+tme+'"':"")+">"+eme+"</code>"}}]},qve=/"/g,Kve=Nde("".replace);Sge({target:"String",proto:!0,forced:tpe(function(){var x_="".anchor('"');return x_!==x_.toLowerCase()||x_.split('"').length>3})},{anchor:function(x_){return eme=x_,$P=jge(Lde(this)),tme="<a",(tme+=' name="'+Kve(jge(eme),qve,"&quot;")+'"')+">"+$P+"</a>";var eme,$P,tme}});var Yve=function(x_){var eme,$P,tme,ame=function(bme,mme){var vme=typeof Symbol=="function"&&bme[Symbol.iterator];if(!vme)return bme;var gme,yme,_me=vme.call(bme),$me=[];try{for(;(mme===void 0||mme-- >0)&&!(gme=_me.next()).done;)$me.push(gme.value)}catch(Cme){yme={error:Cme}}finally{try{gme&&!gme.done&&(vme=_me.return)&&vme.call(_me)}finally{if(yme)throw yme.error}}return $me}(x_,2),nme=ame[0],rme=ame[1],ime=[],ome=function(bme){if(!ed.isText(bme))return null;var mme=QO.getParentNode(null,bme);if(mme&&QO.getNodeType(mme)==="code"){var vme=QO.getParentNode(null,mme);if(vme&&QO.getNodeType(vme)==="pre")return mme}return null}(nme);if(ome==null)return ime;var lme=ome.language,sme=lme===void 0?"":lme;if(!sme)return ime;var cme=function(bme,mme){if(!mme)return[];var vme=Bge.languages[mme];return vme?Bge.tokenize(bme.text,vme):[]}(nme,sme),dme=0;try{for(var ume=function(bme){var mme=typeof Symbol=="function"&&Symbol.iterator,vme=mme&&bme[mme],gme=0;if(vme)return vme.call(bme);if(bme&&typeof bme.length=="number")return{next:function(){return bme&&gme>=bme.length&&(bme=void 0),{value:bme&&bme[gme++],done:!bme}}};throw new TypeError(mme?"Object is not iterable.":"Symbol.iterator is not defined.")}(cme),fme=ume.next();!fme.done;fme=ume.next()){var pme=fme.value,hme=dme+Tge(pme);typeof pme!="string"&&ime.push(((tme={})[pme.type]=!0,tme.anchor={path:rme,offset:dme},tme.focus={path:rme,offset:hme},tme)),dme=hme}}catch(bme){eme={error:bme}}finally{try{fme&&!fme.done&&($P=ume.return)&&$P.call(ume)}finally{if(eme)throw eme.error}}return ime},Xve=function(){return Xve=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},Xve.apply(this,arguments)},Zve=function(){function x_(){throw new Error(`不能实例化
Can not construct a instance`)}return x_.setEditorConfig=function(eme){eme===void 0&&(eme={}),this.editorConfig=Xve(Xve({},this.editorConfig),eme)},x_.setSimpleEditorConfig=function(eme){eme===void 0&&(eme={}),this.simpleEditorConfig=Xve(Xve({},this.simpleEditorConfig),eme)},x_.setToolbarConfig=function(eme){eme===void 0&&(eme={}),this.toolbarConfig=Xve(Xve({},this.toolbarConfig),eme)},x_.setSimpleToolbarConfig=function(eme){eme===void 0&&(eme={}),this.simpleToolbarConfig=Xve(Xve({},this.simpleToolbarConfig),eme)},x_.registerPlugin=function(eme){this.plugins.push(eme)},x_.registerMenu=function(eme,$P){(function(tme,ame){var nme=tme.key,rme=tme.factory,ime=tme.config,ome=oA(oA({},ime),ame||{});if(nk[nme]!=null)throw new Error("Duplicated key '"+nme+"' in menu items");nk[nme]=rme,function(lme,sme){sme!=null&&(tk[lme]=sme)}(nme,ome)})(eme,$P)},x_.registerRenderElem=function(eme){(function($P){var tme=$P.type,ame=$P.renderElem;zT[tme||""]=ame})(eme)},x_.registerRenderStyle=function(eme){(function($P){MT.push($P)})(eme)},x_.registerElemToHtml=function(eme){(function($P){var tme=$P.type,ame=$P.elemToHtml;gk[tme||""]=ame})(eme)},x_.registerStyleToHtml=function(eme){(function($P){hk.push($P)})(eme)},x_.registerPreParseHtml=function(eme){(function($P){rF.push($P)})(eme)},x_.registerParseElemHtml=function(eme){(function($P){var tme=$P.selector,ame=$P.parseElemHtml;iF[tme]=ame})(eme)},x_.registerParseStyleHtml=function(eme){(function($P){oF.push($P)})(eme)},x_.registerModule=function(eme){Jve(eme)},x_.editorConfig={},x_.simpleEditorConfig={},x_.toolbarConfig={},x_.simpleToolbarConfig={},x_.plugins=[],x_}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Jve(x_){var eme=x_.menus,$P=x_.renderElems,tme=x_.renderStyle,ame=x_.elemsToHtml,nme=x_.styleToHtml,rme=x_.preParseHtml,ime=x_.parseElemsHtml,ome=x_.parseStyleHtml,lme=x_.editorPlugin;eme&&eme.forEach(function(sme){return Zve.registerMenu(sme)}),$P&&$P.forEach(function(sme){return Zve.registerRenderElem(sme)}),tme&&Zve.registerRenderStyle(tme),ame&&ame.forEach(function(sme){return Zve.registerElemToHtml(sme)}),nme&&Zve.registerStyleToHtml(nme),rme&&rme.forEach(function(sme){return Zve.registerPreParseHtml(sme)}),ime&&ime.forEach(function(sme){return Zve.registerParseElemHtml(sme)}),ome&&Zve.registerParseStyleHtml(ome),lme&&Zve.registerPlugin(lme)}Yq.forEach(function(x_){return Jve(x_)}),Jve(g0),Jve(J3),Jve(Doe),Jve(wde),Jve(Gve);var Qve='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',eye={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},tye={hoverbarKeys:Xve(Xve({},eye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Zve.setEditorConfig(Xve(Xve({},tye),{decorate:Yve}));var nye={hoverbarKeys:eye};Zve.setSimpleEditorConfig(Xve(Xve({},nye),{decorate:Yve}));var rye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:HP("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:HP("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:HP("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:HP("editor.image"),iconSvg:Qve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:HP("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Zve.setToolbarConfig(rye);var oye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:HP("editor.image"),iconSvg:Qve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function iye(x_){x_===void 0&&(x_={});var eme=x_.selector,$P=eme===void 0?"":eme,tme=x_.content,ame=tme===void 0?[]:tme,nme=x_.html,rme=x_.config,ime=rme===void 0?{}:rme,ome=x_.mode,lme=(ome===void 0?"default":ome)==="simple"?Zve.simpleEditorConfig:Zve.editorConfig,sme=Xve(Xve({},lme.hoverbarKeys||{}),ime.hoverbarKeys||{});return I_({selector:$P,config:Xve(Xve(Xve({},lme),ime),{hoverbarKeys:sme}),content:ame,html:nme,plugins:Zve.plugins})}function aye(x_){var eme=x_.selector,$P=x_.editor,tme=x_.config,ame=tme===void 0?{}:tme,nme=x_.mode,rme=nme===void 0?"default":nme;if(!eme)throw new Error("Cannot find 'selector' when create toolbar");var ime=rme==="simple"?Zve.simpleToolbarConfig:Zve.toolbarConfig,ome=function(lme,sme){if(lme==null)throw new Error("Cannot create toolbar, because editor is null");var cme=sme.selector,dme=sme.config,ume=dme===void 0?{}:dme;if(function(hme,bme){return LF(hme,"data-w-e-toolbar",bme)}(lme,cme))throw new Error("Repeated create toolbar by selector '"+cme+"'");var fme=oA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},ume||{}),pme=new $_(cme,fme);return uO.set(pme,lme),sO.set(lme,pme),pme}($P,{selector:eme,config:Xve(Xve({},ime),ame)});return ome}Zve.setSimpleToolbarConfig(oye);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=function(){return a=Object.assign||function(x_){for(var eme,$P=1,tme=arguments.length;$P<tme;$P++)for(var ame in eme=arguments[$P])Object.prototype.hasOwnProperty.call(eme,ame)&&(x_[ame]=eme[ame]);return x_},a.apply(this,arguments)};function i(x_,eme){var $P=typeof Symbol=="function"&&x_[Symbol.iterator];if(!$P)return x_;var tme,ame,nme=$P.call(x_),rme=[];try{for(;(eme===void 0||eme-- >0)&&!(tme=nme.next()).done;)rme.push(tme.value)}catch(ime){ame={error:ime}}finally{try{tme&&!tme.done&&($P=nme.return)&&$P.call(nme)}finally{if(ame)throw ame.error}}return rme}function u(x_){var eme=x_.defaultContent,$P=eme===void 0?[]:eme,tme=x_.onCreated,ame=x_.defaultHtml,nme=ame===void 0?"":ame,rme=x_.value,ime=rme===void 0?"":rme,ome=x_.onChange,lme=x_.defaultConfig,sme=lme===void 0?{}:lme,cme=x_.mode,dme=cme===void 0?"default":cme,ume=x_.style,fme=ume===void 0?{}:ume,pme=x_.className,hme=reactExports.useRef(null),bme=i(reactExports.useState(null),2),mme=bme[0],vme=bme[1],gme=i(reactExports.useState(""),2),yme=gme[0],_me=gme[1],$me=function(Eme){tme&&tme(Eme);var xme=sme.onCreated;xme&&xme(Eme)},Cme=function(Eme){_me(Eme.getHtml()),ome&&ome(Eme);var xme=sme.onChange;xme&&xme(Eme)},Sme=function(Eme){var xme=sme.onDestroyed;vme(null),xme&&xme(Eme)};return reactExports.useEffect(function(){if(mme!=null&&ime!==yme)try{mme.setHtml(ime)}catch(Eme){console.error(Eme)}},[ime]),reactExports.useEffect(function(){var Eme;if(hme.current!=null&&mme==null&&!(!((Eme=hme.current)===null||Eme===void 0)&&Eme.getAttribute("data-w-e-textarea"))){var xme=iye({selector:hme.current,config:a(a({},sme),{onCreated:$me,onChange:Cme,onDestroyed:Sme}),content:$P,html:nme||ime,mode:dme});vme(xme)}},[mme]),React__default.createElement("div",{style:fme,ref:hme,className:pme})}function c(x_){var eme=x_.editor,$P=x_.defaultConfig,tme=$P===void 0?{}:$P,ame=x_.mode,nme=ame===void 0?"default":ame,rme=x_.style,ime=rme===void 0?{}:rme,ome=x_.className,lme=reactExports.useRef(null);return reactExports.useEffect(function(){lme.current!=null&&eme!=null&&aye({editor:eme,selector:lme.current,config:tme,mode:nme})},[eme]),React__default.createElement("div",{style:ime,ref:lme,className:ome})}const WangEditor=reactExports.forwardRef((x_,eme)=>{const{settings:$P}=useSetting(),tme=$P.locale=="zh_CN"?"zh-CN":"en",[ame,nme]=reactExports.useState(null),[rme,ime]=reactExports.useState(x_.value||""),ome={};x_.toolbarKeys&&(ome.toolbarKeys=x_.toolbarKeys),x_.insertKeys&&(ome.insertKeys=x_.insertKeys),x_.excludeKeys&&(ome.excludeKeys=x_.excludeKeys);const lme={placeholder:x_.placeholder,readOnly:x_.disabled||x_.static,autoFocus:x_.autoFocus,maxLength:x_.maxLength,MENU_CONF:{uploadImage:{server:x_.uploadImageServer,headers:{Authorization:"Bearer "+Token().value},maxFileSize:x_.uploadImageMaxSize||1024*1024*2,maxNumberOfFiles:x_.uploadImageMaxNumber||100},uploadVideo:{server:x_.uploadVideoServer,headers:{Authorization:"Bearer "+Token().value},maxFileSize:x_.uploadVideoMaxSize||1024*1024*10,maxNumberOfFiles:x_.uploadVideoMaxNumber||10}}},sme=()=>{x_.disabled||x_.static?ame==null||ame.disable():ame==null||ame.enable()};return reactExports.useEffect(()=>{ame!=null&&(sme(),ime(x_.value||""))},[x_]),reactExports.useEffect(()=>zP($P.locale?tme:"zh-CN"),[$P]),reactExports.useEffect(()=>()=>{ame!=null&&(ame.destroy(),nme(null))},[ame]),jsxs("div",{className:x_.className,style:{border:"1px solid var(--colors-neutral-text-8)",zIndex:100},children:[x_.static||jsx(c,{editor:ame,defaultConfig:ome,mode:"default",style:{borderBottom:"1px solid var(--colors-neutral-text-8)"}}),jsx(u,{defaultConfig:lme,value:rme,onCreated:nme,onChange:cme=>{ime(cme.getHtml()),x_.onChange(cme.getHtml())},mode:"default",style:{overflowY:"hidden",height:x_.height||400}})]})}),Watermark=reactExports.forwardRef((x_,eme)=>jsx(Watermark$1,{...x_,children:x_.body?x_.render("body",x_.body,{}):null}));var systemLocale=navigator.language||navigator.userLanguage,localStorageKey="suda-i18n-locale",localeMap=function(x_){return x_=~x_.indexOf("en")?"en-US":x_,x_=~x_.indexOf("zh")||~x_.indexOf("cn")?"zh-CN":x_,x_},defualtLocale=localeMap(systemLocale),i18n=makeTranslator(localStorage.getItem(localStorageKey)||defualtLocale);setDefaultLocale(localStorage.getItem(localStorageKey)||defualtLocale);extendLocale("en-US",{f7e68bde2caa2cb5696d6a37fe4a23a4:"Common",ea15ae2b7fba76c83eec6d0986d15197:"Option","3fea7ca76cdece641436d7ab0d02ab1b":"Status","24d67862f87f439db7ca957aecb77cce":"Properties",afcde2611bdd13c1e65b4fb6a2f13425:"Design","6d0034a2419e1f394dedab07994b9665":"Label CSS class name","2cadb6621afe19333b142faa541b0f91":"Control  CSS class name","0e627e6a0ff773ee76bc4cc0871cb48d":"Description CSS class name","10b2761db5a8e089049df39675abc550":"Event",dc19704991f1476fa4dcbb80c50bedd6:"Prompt title","55713166f8bddcc0aefc3a32464746f1":"Enter prompt title","2d711b09bd0db0ad240cc83b30dd8014":"Content","59b9e2022323a63079c6ddab63fec112":"Popout position",af767b7e4ae069d54f9ea839858d4c6d:"Upper","3850a186c3235bc646d4c2f79cebac36":"Bottom",d2aff1417831aa621c16cd5b95306b4b:"Left","4d9c32c23df5d234e629c922c58d8e12":"Right","5ef69f62dc668c1a3e68b51c50a2530a":"Icon","4434b33a8731a73613ba5fa1eb984efb":"CSS class name",f10b676db977ae808af8d96b327be7f3:'Which secondary CSS class names are available? Go to<a href="https://baidu.gitee.io/amis/zh-CN/style/index" target="_blank">Style description</a>. In addition, you can add a custom class name, and then add a custom style in the system configuration.',"159dbc2fafd57b9d3652f16659b1b519":"Triggering mode","45a51525391d4a3771b22f2cf1aa96b3":"The floating layer triggering mode defaults to the mouseover.","728c7cdfa431821d291b5108394ec65a":"Mouseover","4363c17ebb346b646af55bd8c8075915":"Click","5632c68dac780bd766f740830481f4b0":"Click blank area to close it.","9efb0ce5a4510ef29345b6edb3e58bc2":"A td must exist","3ce57bd19e37d2b27145dc6fcfff3520":"The first cell cannot be found.",f7d205072a2ceb63b4f48a8b6f32fd25:"The number of row lines is incorrect.","852228c640b1daefe6b0853390e66791":"The number of column lines is incorrect.","26526c3354307798dfa84f17decf5140":"The corresponding id is not found.","38d2ccdde0ae0c2329defd3c75c59d8b":"Due to the padding limit, the height setting that is too small is invalid. Thus, you can reduce the default padding.",d59379f4227af3b2c60214e2f4f903ba:"Merge cells","02d9819ddaaaeb1b7b22b12608c7e5ca":"Prompt","4be3194e93cdd2899d06b499c184195b":"The prompt is used for special text prompt, which includes four types: operation prompt, success prompt, warning prompt, and danger prompt. Combining the <code>visibleOn</code>, the prompt can be used to prompt the error information.","6f2b01db04cbf7e460b5c6f4e37a5e76":"Prompt content","132a78bdf68d6d17bde00aa807bbf032":"Content area","4092ed98e9035652d4c9ca9441701ed7":"Basic","226b0912184333c81babf2f1894ec0c1":"Type","330363dfc524cff2488f2ebde0500896":"Success","900c70fa5f7dbc014e6f762d5e0e885c":"Warning",e2e27a87257599f83c817c43e724b6aa:"Serious",cbda486dbec5bdacb593294e240c5e63:"Close","7372dc9f39a173dd0c75a185373245b1":"Custom icon",bede211909a1022b13e9728ed162b77e:"Anchor navigation",f6da8aa86fa3e399da95dab399a67985:"When multiple lines of content are displayed in the anchor navigation, the content can be displayed in the form of anchor navigation groups. Thus, you can locate the corresponding content area by clicking the nav menu.","22c799040acdb2601b437ed5449de076":"Container","5879dec0aea52871e0ae6969893a315b":"Anchor 1",ce08bc4247c040bac13155befc7c1638:"This is anchor content 1.",d89a42cb938819f67172ea64037c19fe:"Anchor 2","96f05e63c6f606925636d6810167e7ea":"This is anchor content 2.","31327b9041b825a0b455b3ff9ddd3909":"Anchor 3","68284dd430993f495a6f2254ae5480ae":"This is anchor content 3.","9ad515106f02f3909974b75d22625b0d":"Anchor setting","40c6e9ed3d9949a326f5a216d936324d":"Add anchor","8cfd149e7d73ebae6a797d21728292ff":"Enter anchor title","6be15e9949e4be7fc485e1eaae472942":"Anchor",c624c875ea37f790665d0cae8959d4e2:"This is the anchor content.",f612a2f944af178fa07a719c79e8438b:"Anchor {{@1}}","42ff02f6763799ebfa5ce8dd5f99913d":"This is anchor content {{@ 1.}}","39f4fbc5b5ba681f7e8c4d4a4ddb3e2f":"Default positioning area","9959b2ad2d4f75f7a6be46872642df6d":"Navigation layout","4cde06e6162ed66720e3133cb83bc059":"Horizontal","75ac842f8e77305846f1d776f97dfaf8":"Vertical","056f2d7df6e6b64625c3a2d27ce07b05":"Nav","696754a8b2b23e30b11187303d1238f5":"Area content","33be689a0f0de129ce37f7a96052002e":"Content area","32c65d8d7431e76029678ec7bb73a5ab":"Title","6bd854c27cd4c2e97dee65cf3f3f8551":"Anchor content {{@1}}","726dd5df4319e9e158e2ca3c22177b6c":"Audio",e7a707f9fc7da36828db940ca2960f4b:"The audio control can be used to play various audio files.","997c7a5d34f6fc628893f509d0df32e0":"Feature","22b777e6fcb613b8ba83ced9594cd07e":"Properties","37b12f2666b9e4e37f33eb5e83533d5e":"<p>Currently, this feature is configured for the field content node. If you select the upper layer, more configurations exist. </p>",f8f176147db276063e7ec15f076e39e0:"Audio address","91d3cd46d6b6919749e56056d5acc9bc":"Allows you to get variables, such as <code>\\${audioSrc}</code>.",a945269af10da66c82cdb7336bc490d1:"Audio speed","7ccd84ca5c16cd03d26f5ecd5e6f6bd2":"The acceleration ranges from 0.1 to 16.",fc03b83d19e2fd12f1e7c56a11d7dc18:"Internal controls",d37d357dee041774b993daaf5c8bb752:"Speed",b85270cd3c06d8eb635eadcffbb10119:"Play","19fcb9eb2594059036dfede5f4ec53e8":"Time",c7bff79d059a0b7ff9b02441959d8be2:"Progress","09b095d8fc867cb968673be9dcc00a93":"Volume",ad751bba0aed43a673c40b652a239fc3:"After you choose the speed, you need to configure it in the ordinary selection bar.","54c6bb48170611ec995f634319312156":"Autoplay","56e6ecf97176d30c06b30cfa428ef832":"Loop play","2fb0853874c2cc8cc42f0c7520af662a":"Inlink mode","33bf801796fd255b5f6147e33146669b":"Display","4c50eef3bdaf0b4164ce179e576f2b2d":"Portrait","18dc831ec12d358d05902bef1f00e1f1":"User portrait","027446c2f9070b0f5b16a18208bf5fc7":"Display","20def7942674282277c3714ed7ea6ce0":"Image",ca746b1ff10193a3ce20878dec04a733:"Text",bfe68d5844f8e54602760e18f45954f7:"Link",b54f4a65cd257c87db32ee1023e1daa1:"Fill method",def423db04dd24b226911b9e4cf5dc9c:"The image processing method that the image size is inconsistent with the control size.","74735df86a8e1c15bce50e2c1dd42e98":"Proportional crop of long sides","9d7f3e170404f211a4f95c214f044b05":"Proportional padding of short sides","9854f491213784118614be4a1970bcf9":"Stretch the image to occupy the space fully.","3d2b60dda894eba9a042beddf7daf3cc":"Crop the image in terms of its original size.",c7fff1a6f585d7fb22c94bb1ef82707d:"Border distance",f1b4c635cdb39c91461f181d27d06f8c:"The text is centered. When the text is too long, keep it at the minimum distance from the border.",dfd0cd7f2cba96917484569a646bdc8d:"Length",c1df04eec5fa0857bc0df2d68d8e953c:"Height","0103eb2d3dca70270d1a74e9ec987ac9":"Rounded corner","9a233b241eef54521cfe9365bfaa7b2f":"Padding And Margin","961534b4ea37e4e88aada736b299d063":"Border","8e1b944f4389bdaab6f11d5bc83190c8":"Background","803205e38834280d9e6a75993ac00764":"Shadow","0d98c74797e49d00bcc4c17c9d557a2b":"Others","34dac4adbc96afd65f060cc4cfff1feb":"Opacity","169b227aff15b834b64205d0fdcb0f33":"Bread crumb","3576258acd7269da9f44859a2edec1aa":"Bread crumb navigation",db1c89e0f6e62f9642018cbb531bbd4f:"Home page","2e8bf3c87641fba59c2a9cb6636d7e88":"Page at the previous level","12d358955755488ff3790bbd6d75673a":"<b>Current page</b>","894b94fbb15650da7f9290e7106446f3":"Separator",a38100f22f59f7cd89e36139faa6fd4d:"Dynamic data","66ab5e9f24c8f46012a25c89919fb191":"Add","97d07614380da93d257f9fbf81aa56fb":"Text",ba7f916a39c0beb545388ea3b7f6b3b7:"CSS class name of bread crumb ",e3acc9857c852dae27e064ace5e5688e:"CSS class name of separator ",fa966345577ba81af19408f203db968f:"Button","89de611b2d759a1802542b5d3a06829f":"It is used to display a button. You can configure different display styles and different click behaviors.","7af5e3ef39ff71d39fe3f645c8079124":"Trigger this option when you click it",f6d767f39ba3bf955077a3c0ce81e581:"Mouse-over",bcdd89d453da0dc0622a2f3189728357:"Trigger this option when you move your mouse over it",e272b0b8c7fedc670a87075514d9b49f:"Mouse-out","727309bc724ff237c5e2cdf7a90cf28e":"Trigger this option when you move your mouse out of it",d7ec2d3fea4756bc1642e0f10c180cf5:"Name","939d5345ad4345dbaabe14798f6ac0f1":"Submit","4b9c3271dc2f299dc3aeffb369187513":"Reset","5e64227f46b221001e3b151d72fa6412":"Whether to close it",d5bb99590ef447a1af8e9782786c751d:"Close the current {{@1}} after you specify the operation","1e7196ce05260faa55e5b7ea5a1667c2":"Second confirmation",ed2f135144b4e138cb29419c1f245f4b:"After you click it, ask the user. You can perform the action to avoid false touch upon the manual confirmation. You can use <code>\\${xxx}</code> to take a value.","0d0c6ff7b65e62eba3ddd523e2976389":"Confirm content","7e9646e2db5ce66dc2b4b922ece483ba":"Bubble prompt","5daaffe964aee9d884e0a681b2818a17":"Normal prompt","2fd82aa9dd7fedea2c16b7dfe93b6d0e":"Give the prompt content in the normal status. If you do not fill in it, no prompt pops out. You can use <code>\\${xxx}</code> to take a value.",fb37b983a93aabdcdbbd59ae48c519fb:"Disable prompt",f4f168a3fec79443d2ca8fd1955edee8:"Give the prompt content in the disabled status. If you do not fill in it, a normal prompt pops out. You can use <code>\\${xxx}</code> to take a value.",d420160a9e04c481e55a9686ab158caa:"Mouseover",d6763cb7640bed39caa058f156007a86:"Focus",d586324c6d6b45cb78a4172d836dab3e:"Prompt position",c182ad6b97f0909596a523b1f04c28d2:"Leftside icon",ad7e6f016bc1d9a9bbc6e18224d73247:"Rightside icon","39003734d1d700d5bd97bf1e7a2fcf73":"Style",c12ba7b658a9fccf0815f3951bc759b6:"Highlight style","6aa6b9e2dca63d27dc74eb155020271d":"Block display",c8339fd2a85af4ba66084d28df808de4:"Size",c8caf94205105bac5833ab31cc2129d7:"Button group","66ae9ce23b0b2e243aff087d906a2489":"It is used to display multiple buttons which appears as a whole visually.",e9d2f66bbd44c96a3e03494bf6b1ebf0:"Button 1",ce35a17d2ba7caac95092a7a66ac9a0d:"Button 2",de26e1294acedb55155a418630d57924:"Layout direction","8eb18b36f5a27fa8e6d32bc66546ce05":"Tile mode","2e28645c67c5742e473888a27aab7bd6":"Enable the button group to occupy the parent container. The width of individual buttons is adaptive.","66774850742a81e8b2393195290b7330":"Button management",f9f2b9cc91cd332db6b2b732c3869233:"Add button","40f3bc0a4f4d0f4230fc7fa6f4fcec92":"Child button",f05dd80af77a441216ef940e7887a8db:"Button Toolbar","433e2e80ec74563daf4368e59b525e34":"It can be used to put multiple buttons or button groups. A spacing exists between buttons.","6651fec0511e3593d3438a113dff23d6":"The buttons or button groups are sortable and removable. If you want to edit the buttons or button groups, edit them in the preview area.",d7213304d1a8a02a73a2f4010839e061:"CRUD","7a9f1ec32752de8b69ef21138970f64d":"This button is used to realize the addition, deletion, change, and view of data, and supports three display modes: table, cards, and list. This button is used for data fetching, paging, single operation, batch operation, sorting, quick edit, and other features. Integrate query conditions","48c68eb5a42e2b3e679c53b00f6e203f":"Rendering engine","64ca9bab920a2983bcf270320d850d00":"Reload","9ef5597ac0b4da662bcd967da37eceb4":"Trigger the component data refresh and render it again","95b351c86267f3aedf89520959bce689":"Edit","607e7a4f377fa66b0b28ce318aab841f":"View","5b48dbb8dc710cffe6313bb56a7f6d47":"View details","2f4aaddde33c9b93c36fd2503f3d122b":"Delete","6c546666aab964c39cd8bfdf4fbd46b8":"Are you sure to delete it?","7fb62b30119c3797a843a48368463314":"Delete in batch",e73cefac9d030927da1618c7b15c98c9:"Edit in batch","19c6b7463e1bf73bb4b12ba07abd5444":"Field 1",cf12e55021998a8328201800ec356773:"Query conditions",cfb5f18c43753ad5329348d626bd3739:"Keyword","4a1e3c50547e61503a2d1c356005eb08":"Add, delete, change, view, and quick start-CRUD","85624c8e8b0fc98954eecbe508e8b59d":"API address","3dd674542204724eb5417efc7354ec73":"Verify the format and automatically generate the column configuration.","3266535dc49863d976b9960adad29fef":"The API return format is incorrect. Click the question mark in the example on the right of the API address to view the example.","07b59fd09f6007bac246d9a73b793a49":"Enable feature",bee912d79eefb7335988c4997aa9138d:"Query","0f61da949d2b45534967e197cc2eee29":"Modify in batch",aa85b3cd6aa4cdfd45bfe5a96678ad2f:"Action bar-edit","653eb2792d3126a60caa6982f89a906b":"Action bar-view details","8a4d6dfbcd8072555b5951091f171000":"Action bar-delete",f4b368051b455e386a314688c7c75c1f:"Enabled query field","23c7ea8ee9519459598b2de65fe2a2eb":"Display several fields in each column","41a344642681efaaa418c228ba7fb45c":"Bind field name",ffb01e5bcf4c00447f5150d3cba81371:"Pure text","59cf15fe6b8d659c9bd2f86143534a06":"Template","4ff1e74e43a3586339251494117185ad":"Date","9da188491dd34c4382a5b9f006194e41":"Mapping","8abc564260a1564521e0c3a1d5419b4a":"Action bar","2b6bc0f293f5ca01b006206c2535ccbc":"Action","07a88fae7dd11f87891af91fb54a74bb":"Enable query conditions","7f7c624a843b0d539a4ea59a696702f9":"Batch action","46e6edaeb9968e7f7ab549d4f2f82d6d":"You can manage the batch action buttons through this button. A selection box appears only when you set the batch action buttons. Also, you can configure the position of the batch action button in the appearance. ","8347a927c09a4ec2fe473b0a93f667d0":"Change",f13a0697d58d975d14eb3f3c72c2cbf2:"Single-entry action","3674ea51498e7118732e5e1c53d4bc80":"After you set this button, an action button appears when you hover your mouse over it. Meanwhile, this button appears in the top action bar. When you select a member, it can switch to the batch action button intelligently.","4916771d080ddf6d0551de4d6d2f42a4":"Hide mouseover","569343b4fe5e48131b78611c11eadbeb":"Synchronization address bar","6dbee29a8c54eef9d042ef3280999ad9":"After you open the synchronous address bar, the query condition data and paging information are synchronized to the address bar. When multiple synchronization address bars appear on the page, it is recommended to keep only one synchronization address bar. Otherwise, multiple synchronization address bars tend to affect each other.","2171d1b07d045e796cba4a05bcf7d13f":"Default parameters","01e7eb2256821085a14708d6ddf36814":"This button is used to set the default parameters, such as <code>perPage:20</code>.","58ed0a7a5a91996dbb4c7d6dc7679364":"Retain entry selection","36ac0011faae6f88ee0ec3e642328327":"After the default paging and search, the selected entries are cleared. After you enable this feature, the user’s selection is retained. Also, this feature allows you to achieve the cross-page batch actions. ","2a0b47ba76e886070c3bd6abeae3d1c0":"Single-entry description template","6ab3e5b6c5d5d2cf621e911226495433":"With the [Retain entry selection] enabled, all selected entries are listed. This option can be used to customize the entry display text.","987b04af242bb2dafaf32d890ab952ff":"Designate primary key",a270e70be12fb13a24ca3e4ac70fa838:"This option defaults to <code>id</code> and is used for batch action to get the data at the row level.","54ea89b497ec3bb319c68844dfa3687f":"API",db7ee36de8063c2d5a6c123eac65641a:"Data fetch API","0951dad1723aa1191ce1a2e96db76051":"Whether to perform the initial data fetching","0a60ac8f02ccd2cf723f927284877851":"Yes",c9744f45e76d885ae1c74d4f4a934b2e:"No",a9400c408441f1f7f6d6954deb05ae9a:"Expression","55b22f5d136e73b26cef65aedd8ba86e":"You can use the JS expression to determine it.",bedc70d448b656d828bd3ed7926b3e4d:"One-time data fetch","559fa334442f0f75b0343bbf38b7ff05":"With this option enabled, you can fetch the data only in the initial time. No request for subsequent paging and sorting is sent to the API. Instead, the subsequent paging and sorting are achieved by the front-end device.","1af68c43e1780249f11b9de1eeaeb281":"Enable timed refresh","9800f1ce2f78a23b81c8d944ebf9cce9":"After you set this option, the timed refresh takes place automatically. The unit is ms.","19c5410b23fba4bbfd1a58bbd5268c9b":"Silent refresh","04f840b0772f4b5d59954a29a76f4e7b":"Whether to display the loading after you set the automatic timed refresh.","6037dae99e9446deaed45f7e408f47ab":"Detection expression for stopping timed refresh","32e3a79e80dcf7f7304e8092dd7acc6f":"The refresh takes place constantly once you set the timed refresh. The refresh proceeds unless and until an expression is given and the conditions are satisfied.","154ef40e477c031f6c1ec15caefb570a":"Disable automatic refresh when a popout appears.","50f7c85bf60a9f43522789644566c62b":"The automatic refresh is disabled when a popout appears. The automatic refresh is recovered after you close the popout.",d8905a70e93a33c7a86240f467c653d4:"Whether you can drag and sort them or not.","040a78b24eaff47d4fa7e266473635b4":"API for sequential saving",ee850a0e326b217bdeb61d936c521177:"API for quick saving","8343f619879fa79bc8ef1a35b2fc3e78":"After you set the quick edit in the column, you can use this API to save the data in batch.",d891e79d4a8718a7dbd47ac68aaaa5cb:"API for quick saving of a single entry","38db6e045e214ffcd03ede695002271c":"This API is used to save the data when you set the quick edit and the immediate saving in the column.","522110866c19dace2ce38336617405c2":"Default message prompt","3b69c2e540c05e9ca530ed30cf224472":"It overwrites the default message prompt. However, if the API returns a msg, this msg is used preferentially.",fb24383a41f23196349548b5d0cb98ce:"Prompt for successful acquisition","62e3e15c8fb9038f2780329bc26e8bab":"Prompt for acquisition failure",c62a1b7f314be10aead10475e7543f6a:"Prompt for successful saving of the sequences",c8035507b7a576d43e9f227c91c7a7b5:"Prompt for failure to save the sequences","7cb0932b806559be232d2a69453224e7":"Prompt for successful quick saving",fd79a193a487b8c9d5a302d0d88c1c2c:"Prompt for quick saving failure",ff57a3bf69a1065707e77c18c51f7bbb:"Content display mode","20aadc3f9b7edb564dc58898898e0dc8":"Column information","72cf373be86a38b29f6d2f15900b0da1":"Sub-title",f26225bde6a250894a04db4c53ea03d0:"Details","3bb4d608c6bee2b7b6d788417cde04e3":"Simple display data: $a $b",b339aa87104709397ba68e7ebbc6e5ba:"Table",d87f215d9ac688b1d3399bf575a0ef6f:"Card","3712972d84adf48acbd6ad24b4d75ad0":"List",e4fd8d64804a4f3d743eff384a6eb20a:"You can select and edit the non-built content in the preview area.","14555503d6e09ecd66661d04c882e79b":"Top toolbar configuration","3862626c138ce5945e0e273a1bdfbad0":"Paging","439a19857be1fb8d3e6017258e32c486":"Statistical data",bc908986a4e4eec3dca3530afd1d4306:"Change page number","77281549955309c49f5eef77838a85e5":"Load more","1add12ff3338a990b60154b75019c348":"Export CSV","7d57852b946d9d4d64fb2a48ca2b4a44":"Export Excel formatted files","16c6099bc0efaa669d8de698c105e333":"Column selector","073694928db5b0b5423ebe095ec62d39":"Change query conditions","5b9c3e6ce478196f802722cb09d61f0b":"Drag and switch","66eeacd93a7c1bda93906fe908ad11a0":"Select all",d5bc35360607472de4525358af126de4:"Alignment method","413f48cc71f71083ce532a86e3efdc21":"Left alignment",fd8e9572cc6bf87653c4d8f8b8dd0db9:"Right alignment","1325969c143a639294c1c6ab370b35a3":"Bottom toolbar configuration","440a3a2d7f1b123718be75e2baee8391":"You can select and edit the details in the preview area.","34da7e4a0ecdb63967427f43adf2de3e":"Whether to display and hide query conditions","25c0db3ddce9bfffd497d0c824cf3c72":"Whether the query conditions are visible by default","259d11c300a365b6767228c12d29ce53":"Hide top prompt for quick saving",fa9417bacb7714e82663655345ca213d:"Whether to display paging condition always",e3d2a85f20608a5bde7d539969d03167:"Hide selection button",af1af0a7fad9e8bdcd21694d0e036e12:"Content CSS class name",c11322c9cc43ce3c004cf03f5ac0acd0:"Data source","62569fcb0fc8314daea97989bba3877c":"This option is left blank. The properties of the items or rows returned from the API are read by default. If anything else exists, set it here, e.g.,  <code>\\${xxxx}</code>.","606bc931d2b3ebba2569cb1494719e2c":"Number of items shown on each page","004d01f56242e07cbdc97256bb11c75b":"Retain selection during paging","3d330edb46341a26ccc9aaa7f7938a8e":"Maximum number of selected items","95e68bea2d8c8e41ffa619d4364a0d6f":"Page field name ","537f8b09437bdb7fac429dc4e8666763":"Paging step field name","30c7bd5acd4564057bd89e0846f01728":"Sorting weight field",dd8d217677e4c5df28b7f46aa99b22a8:"It is a field name that is used to determine the position. The new sequence that you set is assigned to this field.",e04e8f570e2fb43a533b224f3c48523d:"Number of switch-overs on each page","0fc1de8f71a7470213fc68f981abdbc2":"Configure the expression that you can select for each item.","7d5fefd589000879088063dceb4b2552":"Use js expression. If failed to set it, you can select all items.","614ec7801e03f7ee009e4448e6ed4001":"Enable a single entry, and click and select the entire area.","530ab79908eabe5b329ffe17695079e2":"Automatic return to the top ","9092afb1ccb692308ef06d8001da2208":"Whether to return to the top during paging.",c8cf39b24bb52d0562472c33b86824fe:"Synchronize query conditions",d3c172700af4f3f3afb028d6bb4a90a4:"After the query, the returned data is synchronized to the query conditions. ","5db6b2160b9169b9d89de247d14ab740":"“Add, delete, change, and view” edit area",f49d40842a3c66c4de2e57a48157c707:"Display a single card","0212e8c9b113143a031d1f3e25167794":"Click to add a button element in the left component panel.","6312e80e416fa79ff3383e1577c243b8":"Click to add a content element in the left component panel.",a3cf7c9ee581ae71eb51d18b610b05b6:"Add content","00a1f644f34b9ee43adf82cb3449158c":"It supports the following template syntax: <code>\\${xxx}</code>",f7a82c9758acc4ff4c5350182f2ca378:"Image address","3bdd08adab6ea90b9164b20a0e4151ac":"Description",d85562778760b00b1372af642c4630e6:"Whether to highlight expression,","4011e5fb23b422f755d81269a5242d22":"e.g.:  <code>this.isOwner</code>",d4f223e0619836d03d488c89558f38e7:"Maximum number of buttons put in each row of the card","620868e5e60e5c22249c3277c971bb13":"Title CSS class name","1fee6fa022c97f5dd7f48e362cea5acf":"Highlight CSS class name","2a3c7d647a29fb7dc5aedabac216575e":"Sub-title CSS class name",a5680444d449b2099b067e9963fe43aa:"CSS class name of top image layer ",b8e1e46cbdea20de4e5fc130d31b7bcc:"Image CSS class name",a31119cb2fddee3366163a311f317cf7:"CSS class name of content area",e82eb2350b4283822aeea21aff9d97b5:"Field {{@1}}","9caecd931b956381e0763d05aa42835c":"Field",bcee820bc20342a4d388a35ed32a35fe:"Column name","093c340f7e1fbde1928ca56b5c7f9cc4":"Card list","85c17b016309a3f867a1803049b3bcd8":"This feature resembles the table, but it uses a small card to display the data. You need to configure a data source for the current component. This component does not have the data fetch feature. You need to take priority to use the “CRUD” component. ","6223c41373004e3111e768225450b4e8":"Card set","3983b9f5575ae146d2d06f8ec5447a4d":"Configure single-item information",a3f38735bf211edb2066ac4e51b55cb2:"Open external link","7ea26d0cb93e59339daf6a1ac68624f3":"Bind current environment variables","21efd88b67a39834582ad99aabb9dc60":"No data","35ba83e053cef95e55dfffde279822b5":"No data displayed",e18d033cc4baab3ebb329f6b29eb3cef:"Whether to display header","412593f58b9d062a43cbe2ce38f4dc65":"Whether to display footer",e494f1aa112068688ca863db7f39a0b5:"Header CSS class name",d267231d2d8b60e267acc7d7d9955ae2:"Footer CSS class name",b2d2593bfb7a627817c0bd1ef6a254a8:"Card CSS class name","58e78d512d9ff40c73a263ab616cc652":"Number of class names displayed in each row","3cf0da9fe51f92842e0a6d375fa5c605":"When this parameter is not set, it depends on the card CSS class name.","953e91f3df59837ac2965cc04dec4b0d":"Enable waterflow","39a6853b109ae98f1aabca90283d7edc":"Configure member renderer","6cb01692eea2fa7066d20fe2b6ccaea3":"False data","0c0180cb06a322199a67f10d4ec41cd5":"Carousel image","1007c97dbf952e032ce13be3cb811f23":"It is used to render the carousel image. It allows you to configure the content on each page (in addition to images) and the transition animation.","0a2907a421b8f980986117e4f3044f92":"Associated field",e760ec18028fc075c5705bf184589e70:"Static setting",d314558953b3c76adb7e131aaec8bd86:"Field name","793a763e73f1f742e3a16ddc2ed95ccb":"This option allows you to set the field name and associate the data in the current data domain.",b9994cc749b4cfbbac0a9b140addd242:"Content of the carousel option",c6c7456d446d62a906c2809b6ba19ce1:"Image title",ab8a46ccf46acbf82d020d11468291b1:"Image title class name","098c3d959911b48b4d912cb85ccc4942":"Image description",c6fc4066471664a8602c636cfe1cc766:"Image description class name",cfb6f6e4c92a61ed0e0717abc8d0eec7:"<p>html segment</p>","97cc997910b99083bd23c6ac39294ff3":"Automatic carousel","8c2a12c5dee794b8b9608bc1f8087947":"Animation interval","6265104f900789dd51d75b449c3b9f89":"Animation duration","5bc37c57ee54d407f441b222f02391db":"Animation effect","8a0d716ded7baa7ee356ff39c3cf0bec":"Control button theme",f7471313dce32bc3669d338764a0d036:"Control display","1c0fe943329339003e9e3c1b12a27fe3":"Bottom dot",e030190fd1c10b0c967f48e789fa86b1:"Left and right arrows",c28479019e24e0e4745f4948e9e97ee7:"Width",ad5a36ee5f4054594c30b6dc481e2d81:"Previous card","49e0f68798e3c69b7990076bd8f1f47f":"Next card",d09504750ebc1d75c38d86e16060f83d:"Chart","10e14f791d73c7c0f4113787f36f1626":"This option is used to render the chart. Based on the echarts library, it supports all echart types theoretically.","67b6bec14c39be3f2602271e2fe3bcde":"Refresh data","0310aa5a05fe07147d8b7ef20616f659":"Trigger component data update","3d6abfdea70af544603da70f93ed3d24":"API fetch","03677b68a73eb59e5faf281f49f3c130":"The API can return the configuration or data. Recommend that the return data could be mapped into the Echarts configuration.","1396ebc166bd49c1e3b67549a1b4caa0":"Whether to fetch API initially","2af32ab13a9dece315cec2764d6aa7d4":"Timed refresh interval",bc827aaffaa35a95607346cc104c0785:"After you set this option, the timed refresh takes place automatically. The minimum refresh interval is 3000 ms.","57c7d1125d2803b946a5b25c3f80f249":"Echarts configuration","3d3fa75d8b345b22a5fbd14a65a0af71":"This option supports the data mapping, which can fill in the data returned from the API.","43ddd80698198791d4a738bb20a2d7f4":"Configure DrillDown",c8da43fe6ad1c537f86cecb353250145:"Delete DrillDown","4fd9621d4facc101aba3afec055e14d1":"Data processing",d98ef182637b4d10e16e8073c1101e51:"The chart configuration is completely replaced.",f1f13cb0ca4720a727cbfba4c82e5890:"This option defaults to the append mode. The new configuration is merged with the old one. If selected, the configuration is entirely overwritten.","40128a51e9667fe6a20a0454069368ba":"<p>Content<code>${value|json}</code></p>","7e3f6245e2a6adb903cf85c77cb1bbd7":"Configure DrillDown details","38bbd995a790f5a67211e034b007c145":"Highlight code","86e38e6425f722ba725718af2366ac08":"Fixed value",e90e6ff080f179215c3566a61ca62367:"Folder","452b62e9b7e650fa163300da2893654a":"The folder can unfold or fold the content area to keep the page clean.","81d2b9f20fb2083c75a5b052b84e897a":"Unfold title","7349194c139069b32889101768aa7428":"The title appeared when the folder is in the unfolded status.","3a8647306ee6456517b7bf9c8bc7de23":"Title position",c949729cd1a1e425595c1a297649c7c6:"Top","12c4c5e8abda77e1fdc93653d6414187":"Bottom","731f9b470e0948cbf56341a53c423213":"Display icon","96c0cc844a06e0850c04f7c44b6475fb":"Foldable","63b67eead04256e42ea9f6f7218731ee":"Title class name","66d88b3e01aff17c7973181e53fc8c0c":"Content class name",d09980a88568f75e9267ca7b531c74eb:"Fold panel","0d571a7ab19e098820e8cea4d5a80f7d":"When the information volume is huge and there are many classes, you can use the fold panel to sort the classes.","17dcbf1f144607d4af0bb718e008682f":"Title 1",f7fb20f6cacd5e40c7f5732cb377d0bf:"This is content 1.","72d41bd9eb3882f7da6f55d0ff0a39f6":"Title 2","0431ee7033364800e261d1e560808231":"Icon position",a7eaff29603a9c40927f726013d2c016:"Left","128d58f066a18ddb2ddb701921d5c77c":"Right","47b4e22880eb59ce9989b8419222e88a":"Accordion mode",bb3548f0bb97ab11ee92284ecf37ec16:"In the accordion mode, you can unfold a single panel only.",f24544b06700857ec11b434cb2916692:"Panel management",c5ceab33d3e275262b4992a8cb43317f:"Add folder",b839e579e920068bd817d34cd7927069:"Add folder","030a54b0afb54fc7f90e1a0f64eb8205":"By default, unfold this panel.","39b066b81835fd66bd4529d1220c9dd3":"Title {{@1}}",ded228f9173b241dd8df2a4811ea0e98:"A simple container allows you to put several renderers together.",a823cfa70cfa46c788e1eedae043f6e5:"Container label",f7d64e5e79994c3c8853f2608d7b2d25:"Because the HTML label is invalid, re-enter it again.","473d2078518479669823205110842376":"Custom Code","8b9c77fa4e646b9cb270f833252e511b":"This feature is implemented through the embedded code.","0b13dc6251002bf556263fb3e4675b11":"HTML content",d6b917c76b92aa9b92b6bebdcab993f3:"onMount code",e64739dd24bb0bfcb6f6e1ee2cce5413:"onUpdate code","0601b7aa5b53cbc3616e24719bcd2aaa":"onUnmount code",b82231f254baf9a28bf752683d31b169:"Custom container",e5b5798a8bab7dc8a578431991731040:"The container component is implemented through the custom code.","96ec95de2d7da5b16465eb980f74deae":"<p>Custom container area</p>","749f710d280419b1da031c9bc79b3b07":"Custom container area","356b1959a9da95997b4de31415d9d74e":"Date display","2bc6d101e5701a70f2fb9e0b67581594":"It is mainly used to associate the field name for date display. It supports various formats, such as X (time stamp), YYYY-MM-DD HH:mm:ss.",a2344febfc246ddc7281f62217ba42c0:"Date value","84ff80a2dc4717cc01acd486040a6763":"Display date format","6eea1b15be458a6999c9259aa2280a70":"Refer to the format use method in the moment.",a7032449ae8761aea61cc30e32d3be10:"Data date format","4c1cff4d8c05daa6ed9352a241ee628c":"Placeholder",b54e0f0a60f8e2c4c31f3b1ad7d5a613:"Date and time display","2a898869829eae8adcfca290fd34a67d":"Date and time value",b0d6f2d882adc2163e6a08a121d18677:"Display date and time format",ab3aec075a09d055b2a28c8b61925ee0:"Popout",e83a256e4f5bb4ff8b3d804b5473217a:"Confirm","773ddc154f1e9b80f04e8bc9d83d2caf":"Trigger when you click the Confirm button in the popout.","625fb26b4b3340f7872b411f401e754c":"Cancel","08ab4ffcd1bddd249a193e6353bb52bb":"Trigger when you click the Cancel button in the popout.","4708bcefff645287c8781a1de2a0f20b":"Trigger the popout Confirm action",af17a4e37e5c6d68fff33c084192801b:"Trigger the popout Cancel action",dd10fdec63a2224aa3d28b48d428cb98:"Data mapping",abf68809d31c8eabb3eb5ae9e00abfcd:"< p class = text SM text muted > when data mapping is not enabled, the pop-up box will have all the data of the environment where the pop-up box button is triggered by default</ p>","1fab180b92bddf03ecf7da009f86d826":"<p>When data mapping is enabled, the data in the pop-up box will only contain the set part. Please bind the data. For example, < code > {A: \\ ${a}, B: 2} < / code > < / P > < p > if you want to customize on the basis of default, please first add a key of ` & ` and a value of ` \\ $` as the first line</ p> < div > when the value is < code >__ Undefined < / code > means to delete the corresponding field, which can be combined with < code > {&: \\ $} < / code > to achieve the blacklist effect</ div>",d6f555510792c9f3cb9e8087af037898:"There are errors in the data mapping, please check carefully",c14ebcefcb02c97b925b762d8bacd1ee:"Press ESC to close the pop-up box","4cade75641878a17e2f1ff29ff0ac235":"Click the area outside the pop-up box to close the pop-up box","391b8fa9c747a1799353ab856e666ad5":"sm","18c63459a2c069022c7790430f761214":"default",aed1dfbc31703955e64806b799b67645:"md",ab18e30c0dc4093ceeda8961fac3d1f4:"lg","949934d97c42801151673a51d3adc421":"Extra big","5831b836c8132033f90b3f530fa433db":"Whether to display the close button","79e5818b205352166231217ea39c4f1f":"Top CSS class name","7e1eb2c588aa1301f4aa19395ef0a177":"Separator",bc43ae8e61f1ad4be2b0a9e70501e490:"This option is used to display a separator which is used for the visual separation.","33f1fc330b325469b43614c9d96f590e":"Drawer type popout","0c5a0448b07419ad2900c36867e8e4e0":"Trigger when you click the drawer confirmation button","57f215184a2fb83541f7cfa22d039feb":"Trigger when you click the drawer cancellation button","97b6bad87c4320faac2f6a5cf556c26c":"Trigger drawer confirmation action","909ba2872b2d670ec0ecbcacc4c8c833":"Trigger drawer cancellation action",d4d2a66820d30e07b44c850eb3f116c0:"Position","81b8345bc49ce2aa550ad9792acec3e9":"Define where the pop-up box is called","399f43daffee1afae2a881027b6fb1f9":'Click "external" to close the pop-up box',b09cb613b11a41f3b3804d9c75da90b1:"Press ESC to close","6d7f8b31caaf80deb65eb2c8bdd41cd7":"Very small",b90f6c7021e444a34a00fcba6a428762:"Show mask","07e8695e6142a6e50b323c3d5aae2101":"Draggable","0fad5a56c8b4643f24797eaa616bef6f":"Define whether the pop-up box can be dragged and resized","7fdaa90d63dd5163de1911264bc5c514":"Bodyclassname class name",cc70a816b7d61e7212d57335c0a15af5:"Drop Down Button","74bafe23b0be1a14aa218b396cb33bd0":"More buttons are displayed after you click the drop-down button.","213a4e49568569943403ff31fff31ee5":"Configure drop-down button collection",b5b57c711fd2d2309cc390a8b44d2b69:"Button text","314454bbee226e4b32b612afdd8e9442":"Mouseover","4a757588f5aee8cd039b1d166b096d1a":"Click external area to disable","9951d740257c40978c238a683b1d4a80":"Click content to disable","205cb6cc6c8d37f3bed62d9c8bfae976":"Unfold by default","697eb55e1c6cecf43e63a26232dda5b2":"The drop-down menu defaults to unfold after you select this option.",b2aa282e908597d1d700c1f4de17b8aa:"Menu alignment method",e57996d3d771141f1b3080bbd8ad605b:"The button occupies the parent container width after you select this option.","1ce673c48f29162208e75bc210307bfc":"Display style",c9e265ec462b61887af6f58928923925:"Hide drop-down icon","938ac86e738246ccd0ca0224031f96af":"Drop-down menu",ff9f6c2d74c413daa3cd6fb12f8dfd3e:"Each",f34111ff3694a6c6de6e31bef8ebadcb:"The feature renderer can be based on the current renderer for the loop output of variables.","874268022baac239b06c40600d3ce080":"<%= data.index + 1 %>. Content: <%= data.item %>","69bdc66bb88ac5b63053e2bb7db41801":"Loop",b7c16dedc4291d333fba7628ec9eb073:"If the container has a value, you do not need to configure a variable name. If it has not any value, you need to configure a variable name. It supports multiple levels, e.g., a.b indicates that the b’s attributes under the object a are associated. The target variable may be an array and can also be an object.","4726ff4e62d3fcfa4b090aaefc393229":"No content is available temporarily.","5d5f9d49fcb2109f94a43590ef796ca7":"When no variable is associated or the target variable is not an array or object, it displays the placeholder information.",f549581bf93c72ed69c37e906e04191d:"Flex layout","6ab8332f3da284b137d54f6ba901e93c":"flex layout",ef5abdfc944546ddcbe10e9884cf5832:"Column I","874fdb7b3a5730910a4de1c58220c337":"Column II","3a76596e73fa265257ce90b7bed684c7":"Column III","5aefca559c5a41d10078e21e6d616825":"Layout","2fdc3722b88a2ba5077e0d11156ede6a":"Horizontal distribution method of child nodes","4ba6c2256050d805ae5cd1e0e84737cf":"Starting point alignment","56c17ba6a56c01706ae00a31611deb03":"Center alignment",abeb360ab1e66534a041fb8b44e1a00e:"End alignment",d5a3cb1cc31a0469b011abdbd3e947f7:"Even distribution (leave a blank at the starting and end points)","85530444a72a840ee657e2df99970136":"Even distribution (alignment at the starting and end points)","9aad08fbd356fb4279f0efa81b3d016e":"Even distribution (equal spacing between elements)",ae558cbf4c35d381b6542f517f2e8dff:"Even distribution (automatic stretch)","70d39e84bc1ecefaf6e19cf78c9574fe":"Position of child nodes at the vertical direction",ed97c73866617b40a7b1215867e0f489:"Baseline alignment","7ac1519928de413cfe36f5d2e0610430":"Automatic stretch","8e15f51c9512fdbf4287794d6642a90b":"Child node management",bc78248b34b7bf18691e6d385e0f544b:"Child node content","197af5d5971778e3b80deb25182d63e3":'<span class="label label-default">Child node${index | plus}</span>',"023c4bfc60545a2668c2d5111171b5d8":"CSS class name of external layer",a4611da51ffee9140976d01668e45d45:"Child node collection","729a4cca5ed3504793c1f3a87d2b48b9":"Button Group Select","29513434492e5d19a9660e0a918befd1":"This option is used to display multiple buttons which appear as a whole visually. Meanwhile, it can be used as an option selector for form items.","6edda84461bf13d38328cb401c8c23db":"Option 1","39692081e75ef73c6479fc25f8f10dfc":"Option 2",a457872a51628ccadfb9bcfa23428a98:"The button click and selection can be used as an option.","755955372bcc0c7ebf161a656bc389b3":"Value change","2fc76872efce1eabd3b74a3e4fd5b976":"Be triggered when the selected value changes.","528609917710d813a55e5a6cecf1e458":"Selected value","288f0c404c4e546aa3683ff5054e85e2":"Clear",c374a44713fa5ff5da2565beb398c7d3:"Delete selected value","8db57ba01ffb9bf29c1656de5f0208f5":"Reset the value to the initial value.","944908c981a86bfa0cfab9360ab38184":"Allow the button to occupy the parent container fully. The width of individual buttons is adaptive.",ac3880323853de9adc4f66bc06d438ff:"Button style","0b98b0bea3db6ae5b67a09c7bb2d032b":"Button selection style","55b45c73ae417c4dead67905b1550e85":"Form Item","3b49c8cece3f495f0e76b73823c68bfa":"Button collection","012f602372cd2dbd639cd966c63e1f90":"Toolbar",b6872877e1eb5ddedd904c170db26024:"Chained-Select",fdf1664c0790d25f236bd596aef1acef:"Through the <code>source</code> fetch option, you can add the levels infinitely as long as there is a return result.","556988a9dc1816dd979e96eb5cd19a85":"Chained drop-down box","225f3ed00750ae78ad1e6ea42c8f5087":"Default value",da3ca8191fb919fb34e8e78fc6f2fc78:"Enter value in options",bc8d09093edd98769d5cb39e759aa498:"Concatenated value","2646ee1ebb6922a5c9359de6cd3b3639":"After this option is enabled, concatenate the values of the selected options to get a value of the current form item. ","1395eba8d9efe27aa1ecd1a45e3e5dcd":"Get option API","4ea50507bf8b9ceb908677f30fb20e68":"Option label field",fe4c9c2eed1ad213040d84036c675454:"The default rendering option group gets the label variable in each item and uses it as the display text.",be43687d4ed1d9e663c729e12618166d:"Option value field",f1e6b60c4b6df555a6b03f91033091f4:"The default rendering option group gets the value variable in each item and uses it as the form item value.",f411d0f1f925d9b48d8c1d451bd809b1:"Description","2ef0fb6299da5954f5ea84a088684ee5":"Option description","454e60f5759903d7d3dba58e3f9bd590":"Checkbox","81c8c07d13f425215010783bbf3bf06e":"Select form",c75fde0e2d329ce62f55cb1a207181ae:"Be triggered when the selection status changes.",ddd6650e02f5a266c3df2703daf37270:"Selection status",db0258df1ddbd88749b335aecdc8425e:"Value format","53235c46364db079356d57da5870f967":"Selected value","56f3150f1713a5e5c6e7c55fb0b79b75":"Unselected value","7c7a88eb1bb4b40206c6c680bd8995a8":"Default selection",db98f889ce6bc235e66bd4b2a788d137:"Checkbox","6d1383a2806f0516aac2c115f96799eb":"You can configure multiple select boxes through <code>options</code> and can also fetch options through the <code>source</code>.","05f87b331e1c97691776d93a6598373f":"Option A",f38c0a46797523b11051e35ec0f82a42:"Option B","9c541222ced2435288c24b34f8ad1fb8":"Select all","05bef457e8350e1a5d8007cad41b70e5":"Select all by default","84f31b24ffc8ea2b81d61a6f054b5bb6":"Code","08346c5bb99d8e3bfa406995b8c4f067":"The code editor is a monaco-editor, which supports {{@1}} and so on.",ab0710b367acefa1d6a78e2338291e86:"Get focus","4638e799b95e1b71edd55f278a6f707c":"Be triggered when the input box gets a focus.",efa3ddc1e26ed5d8cf7d9855cc7bd42e:"Current code",fc96a5f1b79cb734afe08e401b6ba5e7:"Lose focus",c776ab86eb24f6b3db35114e43026f75:"Be triggered when the input box loses the focus.","829c57d7064cad467ec466ae26244ebb":"The input box gets a focus.","295bb704f5205801d57d672780b94117":"Language","44fe0e1bcabcea83d6a30e6af0fd42af":"Full screen ",b3b97a293baac13db6367aba5539a09c:"Control size","3386da5f56fac758ed0f18e024ecb943":"Extra big","254bb8aa6b92d588d957a383df24db1e":"Combo","4db731c7d73988e40a01b4bf1a7f00d7":"Through the combination of multiple form items, you can configure whether to add and delete the initially set template.",b58c7549c0246c55b9cac96383200338:"Add","8575b828c7320de82b9f99058aa1f55f":"Be triggered when you add a combination item",aacd80d2c978abae7b955510a938788c:"Value of the current combination item","4933bd64bb23de03ca8ed246fa5509c5":"Delete combination item","0410242a74850f010a9a8061bc0cd891":"Delete item index","74333901ae9ad27a93487dc850e45609":"Value of existing combination item","95e09290c4e0f01323bb5abf301c950b":"Change tab",ba2bd765f6c2e2b717139c5453884e14:"Be triggered when you set tabsMode to true and change the tab.",b04c6cf9cb1212b9c173ddfeec129028:"Tab index","055f2f284d2bdb15bd9e542ea9f93285":"Fixed member type",e3b9236d585eb9c93a074f264737cb65:"Multiple branches","66e867eb73a118649800c0a064d0b5aa":"Type description","5aa528690fd771f89683a7f00868f39e":"Branch management","35b65a5a3f8d721e12cae310463d69d6":"Hit conditions","7341e991c8e8cfec68d31ffe0e06e429":'For example: this.type === "text"',"85485d70be6b380294428018e54fc9b9":"Judge whether to use this branch according to the member’s data.","50bfed6ada3e7d0ef4d20eb727b3d7df":"Configure sub-form item",d68162ea1904f627b033fe3953da295d:"Configure sub-form collection",aab09f676645f2651655a711d5e3327c:"Add initial value",dda5ffc9ecbad13d424346890bacca6a:"Whether to change its type","8a0c77e91392d70df522b55eb4d403e2":"Multi-line mode","26343b8bcb694fa5e333b47d8b663d1c":"Whether to go to a newline","86032735a191d117b02111e447494380":"Whether to ","28a59fee1a4714493a8d6cec05c1417b":"The data structure in the default array is an object. If there is a form item only, you can configure the value. Thus, the value contained in the array is the value of the form item.  ","7f2579cabd4d654458a720eed517a37d":"Whether to add",ea1e5695bf682ea3b31aba0c35198ae3:"Add button text","1ab31449faaaeeeb7200d724eab9a7ab":"Whether to delete",fa3e9f9e49f5a81c998f949155f86b50:"Request sent before the deletion",f962922d46ef18e68127642e5c00165a:"Deletion confirmation prompt",fc763fd5ddf637fe4ba1ac59e10b8d3a:"Confirm to delete the previous request",f41a714bc8b26dc27a93a07c44e329a8:"Drag the sorted prompt text","91396e9bc25c9e8b63907fe22408e2bb":"You can adjust the sequence by dragging the [Change] button in each line.","8ee004bdd55b578acdb10b1bcd3fa4f7":"Remove border",e9cbda74a1ffc06228fca68e4d16c4dd:"Limit minimum number","3baaa61e619e32fc36eff14839b1a63f":"Limit maximum number",b8ccbc166c72b2eb54aac1332c99fb49:"A prompt appears in case of failure to limit the sub-form item.",b34cbe877b2c8464c625858fcf19f4eb:"A prompt appears in case of failure to verify the minimum length.",ea2474ff679195d9b54bd5ff3384fdfd:"A prompt appears in case of failure to verify the maximum length.","1c5b9cb245f04413a2d888bd59442097":"Whether to fill in the parent variable with the same name automatically.",e673084b4261d10104d27ae9e4d014a4:"Adopt the Tabs display mode","6e7bd650f763085de3bddd51a8d6aa88":"Tabs display mode",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"Normal","2dd25b8c21efbfee4a198787810d65d8":"Inlink",fc6c9fa3af230165c39fb314c086be22:"Template for generating tab title","9ff4713f6b17e96e9cd76650fd5892be":"Lazy loading","93dc24d4ad01981d5994ba7f8ffaf345":"When a lag occurs if there are much data, you can enable this configuration item.","98d52b737d6bc171b6d5bad9a42f6e23":"Strict mode",cb5ca128b6c78a90f26673e21b0b3f28:"If you want to transit the value of the environment variable into Combo, disable this option.",bc91f4844843d6c8ec1acb78a1f1aba4:"Configure synchronization field","07bf6c08bb5f0bdb32dbfecc7d3fe290":"If the Combo level is deep, the data acquisition at the bottom level is out of synchronization with that at the external level. However, configuring this attribute of the combo can achieve the synchronization.","3f2176cdae8a4ed6a4c4eaff002a3b24":"Allow to leave this field blank",ead7156521ca11acb7ca7bdf4c9c87f6:"If the sub-form item is configured with a validator and is in the single-entry mode, the user can select to clear it (leave it blank).","7ab968b8219f6c348478da255ebcbcb9":"CSS configuration of individual columns","6e87bfe16db746db13966f0d7552b052":"Condition Builder",ab7f2096d3ea8aa85f453b204bfbc493:"It is used to set the complicated combination condition. It allows you to add conditions and groups, set the combination method, and drag the sorting feature and other features.",ae5e21c7b57aaaff2071b757f35dbb3e:"It allows the user to enter the query conditions. Thus, the backend device can generate query where according to the data. ","55d4790c5d819cd0462cbe89561b0dd4":"Number","97b0b6499334ed889b372513290a2a52":"Boolean","0c3bf4fce50589b1073baf15f8a00d36":"Date and time","6d6b4f2bbd2fd0b5faee33673d7f06ae":"Quick start-condition combination","22ed9ec0e00b5deab2c335ad1fd2e343":"Condition type",e996419dedc2f1ffd96e7a0e808127d0:"Field name",c322edb884724d04842fc35f4d29a24e:"Minimum value","5da893141114a59da868052b3a17a79a":"Maximum value",d26404c10871481ab6bbb4837a34ae95:"Step",dbd5b99c34260412f10835d82b59919c:"Date display format","94575fbef23460cb02524d20d152d728":"Time display format",f20a86701d87369e5166c28a71b8b8cd:"You can fetch the field option remotely. It supports the API or data mapping.",ed4ad0f9e6374d6915ce3d2c0dec7c2c:"Operator","61260d9386fd95a268dfc93d977c2706":"Form item container",c5739a29e7c403fc212608cefe70cf29:"Element collection",a00f44e570f896de5490cba9d2462951:"Insert a new element",a9a8efb2541ee6f89ea7b83e610ebf7f:"Add element",bac53d3c739f7fb3327704efd5b40eee:"Diff Editor","7b4fe9415d80d3694d2f630411ac7e9c":"Compare the codes on both sides. The supportive language includes {@1}} and so on.","0517b74cbe247a903faf40991a5a335f":"diff editor","42f04184315801c372989820106cc4ee":"Be triggered when the right input box gets a focus.","58ec44a580ba7cdcdf65985f5c44940c":"Be triggered when the right input box loses the focus.",b42cb49fc7c4ec140697e6d78c39e585:"Get the focus which lies on the right editor panel.","2a69150aa382f6a309c03a96145d4266":"Left default value","04b8c503707c34f9c275d349275787f2":"It allows you to use ${xxx} to get the variable.",a71e655ab56c9962742f72623f67ca76:"Right default value","460bc46ffeb31b737669e2312c5bae72":"Field Set",a89cd8150a1dbc60ac7063580e0852e2:"Through the combination of multiple form items, you can configure whether to fold",a13a2fa224ca5b6f44d5aee33ec29d58:"Text 1","37dd6f28ffb87d8907a286e0ef4dc7fe":"Text 2",d6c40a2ee219c010edbcdaa2eeb94ddd:"Sub-form Item",ec2a8ec81d1d2588db8c7827ba99e7d3:"Whether to fold",f315bd4984fd09c30581674d28287f12:"Whether to fold by default",ab2d2b13794ae1e2d7bf3bcd5af55dce:"Control style","23ecf42cada8bf2715792d718544d107":"xs",e5a226534fb99ab260865b936d3c85ba:"CSS class name of content area ","12b54e3fdccdbb5588785fce5534edbd":"Click to add a sub-form item in the left component panel","1297c46c0ea697a0041c3899b15d69c6":"Add sub-form item",cd948961f71f87ecc72b251147d96144:"Control type","0766a6467bed7f2840871a5f0638669d":"Single-line text box","15d169d28cd48c97fe751e4cc92ca926":"Multi-line text","829abe5a8dcd0579a340d20636b59276":"Group","9597dcaf432ceba92a160d61cb1ef65f":"Number input","9913107b19cb6012250134ff91377430":"Radio","006ded9fa277cf030592021f595a07d5":"Select",a6beb974cc0b50eebd18120b8110a88b:"Switch","481e034e6026969aae4ce7ce7c8a7b6f":"Input File","6bfb9bb2218ff32b6139e98bc93707c0":"Input Image","24b6d4c0892a8f3ee2a982e3ab0afe38":"Rich Text",fdf6f7f6497556de440fe434b721ee99:"Display name","712538d3e674792ec94feb9a5eb2cc0a":"Submit field name",eee1e2258d7ea163fec625ee44be9637:"Form","10b3d542748da2043f79395bfa2ab35f":"It is used to create, edit or display the data. To configure the initialization interface, you can load the data remotely. To configure the submission interface, you can send the data to the remote device. Additionally, you can submit the data to other components. Thus, it is possible to build communication with other components.","5ac57ce6df8c2a19668b7429aebd9f33":"Input Text","1b6f9adf1e6a41a18b9a76407d945618":"Create form quickly","380c80efc8d38510d31f50578690b781":"Submission address",ffc2c1671eb7e3f6751006cd7a9961f4:"Text and input box display mode","81f8a50d084992815ab844109b3ea27f":"Top and bottom","3720b9ef8053b7b8a54c7d8ace051912":"Left and right placement","9d68944682609cb230534195ca7c62ae":"Form control",cf993a1d9c0352215055d180aca60b97:"Control in the group","3673ed1983c1be059126e3715fc34922":"Form collection","741e41f5247b1541bde22c00e65f4401":"Initialization completed",f75e31cd2e3bfb79be420b0e61a533cc:"Be triggered when the request to the remote initialization interface is sent successfully","211f02318e3cceff5ee50d4949a5c8ed":"initApi Initialization data returned from the remote request",b2a5322c8dbc0d8343315cafbd39b7ce:"Value change",d6fc04abf4889a864bea240d6b67963a:"Be triggered when the form value changes","66f1115691b0a3e434dd3e8a6e733730":"Current form data","7233c9cadee5096097673c9590eae9b8":"The form item is checked successfully","6611594c527756e23d4044f908fedfa9":"Be triggered after the form item check is successful",e00a32d415785d5a5d43a593d26cbaa0:"The form item check fails",d4c12cea41e1595329358edb365c5f5b:"Be triggered after the form item check fails","368f9bab722b255f1fdb669a89f0c594":"The form check is successful","35e69ab84129d721229bc5b48afdedd2":"Be triggered after the form check is successful","641fc404690a43cb13e4666ce272974f":"The form check fails","5d7dfa5bf9bcd278f06fa37e482a2c35":"Be triggered after the form check fails","23b62e9cbc868e024b80d2e3fad80ac7":"Successful submission","8c9d9d2594b9cc39294c6939bd08a5d5":"Be triggered after the form submission request is successful","18344d8a27aa678e401d5e575d4efe99":"Data after the submission is successful",f5d008dea7d2e953195a5588dea3c8e4:"Failure to submit","86555672b37841b639311e7d49f0f593":"Be triggered after the form submission fails","17aa713bc661f98e585ec3725d6d4f0d":"Error information returned after the submission fails","4e34003861eee3de1e0c9c1222249bbb":"Submit form",a360c5d4e723ad78a5e52eb1f5f3f2a2:"Trigger form submission","1b6f5cc49e71c90a5b85a796285e3135":"Reset form","35de8c264c2a87836ccbf302b4ee673f":"Trigger form resetting","4a3deab45c0a7218b8ae58a33fd24c28":"Clear form",c18255cd6a048da86045c59a65fdc92d:"Trigger form clearing","17f2bf425eeb7d20d79c595344e9dc94":"Check form","27f35bc7086bf54e27e254f5d77c3168":"Trigger form check","60ad7d0d170b973ab9cdb0b23e636704":"Submit button name",a834505b13627a2e9eb4e0a0c2746e5c:"It is valid when no button is customized.",cbef9ad64297efd7657d5b67b2112751:"Automatic focus",ded8caee55c05aa0f1a4e6a197c480bd:"After the setting, the first form item that you can input in the form gets focused",c8801f299681b3080968effcb13a57fe:"Disable the “Enter” key to submit the form","4fe8162504ae5fb955c30863d88834fa":"After the setting, you cannot submit the form through the “Enter” key on the keyboard","6232c762a93aeb3c89cc759c06802610":"Reset form after the submission","7d61784cd115d333f01a3c0c46408a1c":"After the form submission, restore the value of all form items to the initial value","49086a13c74f262de398e60f448ab056":"Submit the form once after the initialization","1babd035cabfeb997ac3eee3f938d794":"With this option enabled, trigger the one-time submission after the form initialization is complete","0d1fb15904862f5fd2d81d2fc8f371d6":"Whether to close the dialog after the form submission ",e91209a4a78c0b34c26b681b49e0681a:"Submit the form to another component","4133d2c3613ece9792c90d185ec32306":"You can submit the value of the current form to the target component by setting the attribute. Instead, the value is not saved by the interface. Enter the <code>name</code>  attribute of the target component. Multiple components are separated with commas. When the <code>target</code> is <code>window</code>, the form data is attached to the address bar.","7653297de32f34fdec0dd0653aebf358":"Redirection","6d00e21637c382cbd4d949b7735a2e41":"When the value is set, redirect to the target address after the form submission.","672b63d7523095b949f5fad233fa0cde":"Whether to enable local cache","8a0544ca2f7ddaf8768ab599858315a6":"With this option enabled, the form data is cached in the browser. Changing the page or closing the popout does not clear the data in the current form.",ce2457fe99197e0fe81b6fb08e3eaf0e:"Clear local caching after the submission is successful",bc01ee1a28f980c298679610fe4d2d66:"After you enable the local cache and the configuration item and the form submission is successful, clear the cached data of the current form in the browser. ",f5e55fb88f5adc71beb0b1fff60face6:"Form combination check","8101a0aec7eba32e633e3cc29f4b7ede":"Check rule","80ce5ea9ac2c3001e6e8ea3175ecc12d":"Error prompt",ff7cc75cc43c25c823d05d87cb8190b0:"Saving API",d325cfafec323a62463af3d3da9b6ede:"It is used to save the form data.",dd1b9892e274b16540aeda961437870d:"Is the asynchronous mode adopted?",e638bd32b4342dfc7a15990a79f588ae:"What is the asynchronous mode?","6df230c8f18709575777172f0a9a588c":"The asynchronous mode is mainly used to solve the request timeout problem. After the asynchronous mode is enabled, the program periodically polls to request for an additional interface after the request is complete to consult whether the operation is complete. Thus, the interface can return the result quickly without the need to complete process actually.",daf3aec137ac74941adb1b1d3e3dd1d3:"Asynchronous detection interface","0705e4aba9f22ae70d906e2201a4a68d":"After this attribute is set and the form is submitted and sent to the saving interface, it continues to poll the request for this interface until the returned finished attribute is true.",b4bc91701b86fe8543d649e97daea602:"Initialization interface","258c437ef67e5ef12f3a766ff1802f85":"It is used to initialize the form data",e8c46074d8432532cac25eba56bca354:"Is the asynchronous mode adopted?",d2af24c0f76cf325f1c8fa939576c379:"After this property is set and the form requests initApi, it continues to poll the request for this interface until the returned finished attribute is true.",ab94e2c30b3cf0fd11eea477f70dcbaf:"Initialization failed",b64292a1903bd969d0e3a558c334f5bf:"Default message information","8a5e590f69e1ae52d86396410ceeee5a":"You cannot set this option. The msg field returned from the interface has a higher priority.","3b108349b93f7c8c4e2346f8d48c092a":"The saving is successful","6de920b4e4e08b261cda928d9beefab4":"Failure to save",b66ef8966dad62d377bc5310d8b88e7f:"Prompt for successful saving",cf538bbe1fb431f9e2668da4d84cfadf:"Prompt for failure to save","6509e435d66db2a105b2444b1d3d0db1":"Prompt for verification failure","02e977ba56a7ccc59c277d2d5be43ba0":"It is packaged with Panel.","1cb01363e2463443bc8105f544ce2736":"With this option disabled, the form can display the form item only. The title and action bar does not appear.","1fdadb49bcabfdc36a4a9e020f597f4d":"Display mode","57d348e83d929dd4cb3bab04debc93a5":"CSS class name of Panel","9b26fa2b5943c827eea294e79b1427fa":"You can set Panel--info.","85ca671c1bb6de5a15456a9692d2edf4":"Enable debugging",f24b7483069b44490a6379be5b90f4e3:"Indicate that the data of the current form is at the top of the form",eb332076d766c2e817285f0a6d4860b9:"Formula","000cf7353ce03857c671e89c91b35464":"Calculate the specified variable value through the formula and apply its result in the specified variable","9da7578f9329ccaee1bbdf6a766744fd":"Calculation formula","77562ec3db28683ec71612a11e6b39ef":"The formula calculation result is applied in the variable corresponding to this field name.",c80c42a0be1b39ed899b1f5560875cf8:"It supports the JS expression, such as: <code>data.var_a + 2</code>. That is, when the form item  <code>var_a</code> changes, it sets the current form item to a value of <code>var_a + 2</code> automatically. If it is set to a string, it should be placed inside quotation marks.","89a8549c2ed7fc23a683599731d92b22":"Application conditions","8add6799ceff24eb041c5a6a92bb1694":'It supports the following conditions. For example, the <code>\\${xxx}</code> or <code>data.xxx == "a"</code> expression is used to configure the application conditions. When the application conditions are satisfied, you can set the calculation result to the target variable.  ',"3df193f5d4f652a4bac331a69761041b":"Whether to apply it initially","86cebf86c66c6a4e6731b840c3967ab0":"Whether to run the formula result during initialization and set it to the target variable.",aaff9b44fa3c84058d6bec9888b7b39f:"Whether to apply it automatically","677568b4f6505bdd63387137bfcbf35a":"Whether to automatically calculate the formula result. In case of any change, automatically set it to the target variable. <br />With this option disabled, you can press the button to trigger the operation.","222c7bc60f06552b019d71bce57013ed":"Feature component (formula)",bb09a378529edac439abc2edf05c10d7:"Form group","39d36f049a794eb8df305b5ca7710c36":"Display multiple form items horizontally","32f6f7f8164c7f78e4b46eb50c158ab9":"Sub-form","400fbff5e744d3b7317dd130eaad723e":"Click to add a form item in the left component panel",bd1aded1c983ab7fcf3990f0dc31047c:"Column width configuration",a170a375b264f7fe0c02a7ca8c268784:"Width setting",daa0f354e189c0da577ea25be13f874d:"Adaption width","4db804afe5c99f7ca4fe988ada35c77f":"Adaption content",f1d4ff50f3828f9b73412e7d94e6dd6e:"Custom",d5d885add2551454955bd70411769c88:"Width ratio",ff7e66f1feaaed3260b6e8ef432efc79:"Spacing size","1b3408880b73544a3fad501dafbb71e6":"Configuration of column CSS class name","551481accddd97e18d7152f511fb8987":"Divided into several rows",d27d7b1542d91641d1d232c9f58b96d1:"Hide domain",d50b9a7291d45d1da8633439427afaef:"Hide form item","4f6595b5030e171fcead42d321ba767f":"Feature component (hide field)",b6946d13d670fc49b721b626bca426b7:"Array input box","6e43f86d0b2973c34078bc7c7bc02eb0":"The array input box allows you to customize the member input type. In fact, it is a method of flatting the Combo flat value, which can be replaced by combo directly. ","02cc4f8f5a9aefbc03c778f7a5c989c7":"Enter",a4b72cd5d7c953c57b00e3597b9ef666:"Array box","89e34c77922f9362fc8f4033e7f6bdf4":"Enable drag and sort","1362211a6bfc8cc4130d54643e8e9732":"This option allows you to drag and sort the prompt text",ba6a6f2cdb46e8f80fbfd4fed20eafac:"Input City","20700607ccdb7b6c83f3b5bc525e6975":"This option allows you to select a region or city",ee167d4c74e600248aefe9d0ba474705:"Change in selected value","770fe9e7899cd310b035ef50a39ab2ae":"Reset to default value","9633e6be5ecb44fbd69b3e8328cc8430":"Allows you to select a region",eec86dd33ae6186937da563fcde3555e:"Allows you to select a city","95892a76bc26c2db31087c9914e442b4":"Whether a search box appears",d1b5ad85ada6350ea1a1432b813700be:"Input Color","5a9e72d006165ae3dacdbd96f931f70e":"It supports <code>hex, hls, rgb, and rgba</code> formats. It defaults to the <code>hex</code> format.","6b36c6f7ec834692ec6c8e3816349fdd":"Color","277daf93adca7889605057f566b584bf":"Change in input box content","40fa260f07ed5a14f9516c0c37fbfd4e":"The input box loses focus.","3086da6514671fb8950171bf3af4ab2d":"Clear input box content",a47b08f4c83158a058c06e176cff501a:"Color picker","1b25b3b1b5076f0c2e6bd12d73c56f79":"Hide color palette","9b161db0e2e749c1106c702c8097d380":"With this option enabled, disable manual color input. Thus, you can select a color among alternative colors only.","05a64e0df1490a5db391e7a43eced6e0":"Alternative colors","6cbabc9a4cc07c1e26bb131c02833f8d":"Alternative colors at the bottom of the color picker","79d7c8cd739a1f94c7bb30c74323eaa7":"X (time stamp)","84c7af622906c4e9d62bbf905d6ee517":"X (ms time stamp)",aa2fb1b6cffd7c9783c11047adcdbae4:"Select date","8935dbb864f032bacc618b0938887ad7":"YYYY MM DD",ff91b28a49de6fd998dea31598198a73:"Select date and time","3e253325914594e1dc483c0b64ea7643":"YYYY MM DD HH mm ss",fbd05a89ca037ca9e5a6af4c2206d488:"Please select time","90696835bfa70d38b02ef5533d33c88d":"HH mm","6154f88c0ac259ace41b0a5be45d753c":"HH mm ss","904393383755b88e61f5c242eafabdda":"Select month","55546b74d8819d49cccda6277f3a3282":"Select quarter","13ef7828361c8aebbf6ebe09370f5e41":"Select year","4be42a8a2cbb9088b4d051cfd824d68c":"It supports the use of relative values, such as <code>now, +1day, -2weeks, +1hours, and +2years</code>. Meanwhile, it supports such variables as <code>\\${start_date}</code>.",be28cd64f978dd70c1cd345ebe751bca:"Date box, input-datetime, date and time box, input-time, time box, input-month, month box, input-quarter, quarter box, input-year, and year box","52ea2070560eb55083b64f5ba748697d":"This option allows you to select year, month, and date. It supports the setting of relative values, e.g., <code>+2days</code> later.",e54ca3223a36c6489de0fb8a39d4049f:"Date configuration","96f9d9fc9cef8b18e3cd1cf9077147d1":"Be triggered when the time value changes","0a72b3858efffaa1bab685fa840b701b":"Time value",f6db3514c72bdc34922f137a8a92b997:"Be triggered when the input box gets a focus (non-embedded mode)","0f5fc3b84cf9c24ff3acae45ae22fb57":"Be triggered when the input box loses the focus (non-embedded mode)",e02d111d524de97e8622121f7ce845cf:'Before the data submission, format the data according to the setting. Refer to the format application in <a href="https://momentjs.com/" target="_blank">moment</a>.',ecd1a3cadcf1d55250afafbbde767250:"Display format","182503224cfaf1f63c566f13da56a2a4":"Refer to the format application in <a href=https://momentjs.com/ target=_blank>moment</a>.",bf8f46b5c3b309f666965a74d57ac093:"It supports the use of relative values, such as <code>now, +1day, -2weeks, +1hours, and +2years</code>.",f0789e79d48f135e5d870753f7a85d05:"Mode",a553741d5ebb9c80d7d2a63b202cf4b8:"Floating layer",c6e1b91d329a61b691d0d5d2eb343ddd:"Embedding",a2847d82fc998cbe25447b14d113234b:"Select date range","3f9c3a9eb55b7116bcaa6b614ecb38be":"Select date and time range",ddc4a982defd88cd164c61da914819e1:"Select time range",c899221db27c8b3606ce7c807f0765f2:"Select month range",c09ddfc72d3c34ae6aa76d5a457cb403:"Select quarter range",cb6deedf9cd4a0b65abd70798cfed85e:"Select year range","7866226eb814f681dcc4037e7489aab8":"Date Range","28de3d73d839b616bd617b3636669780":"Date range box, input-datetime-range, date and time range, input-time-range, time range, input-month-range, month range, input-quarter-range, quarter range, input-year-range, year range","9024ff398faf8340b92bf0208431973b":"For the date range, you can set the minimum and maximum dates through <code>minDate</code> and <code>maxDate</code>.",e7271563debf3c7bcb85e23816c35acb:"Minimum span,","6f44927b5ffddc499e4dc26889169143":"e.g., 2 days","6da95498bea887b2ea7c6c2bb4b2fdc3":"Maximum span,","61fd7e3e86b168be41ac2e37237e1788":"e.g., 1 year","2f8d6f1584b73bfc6dada44526abb502":"Yesterday","0dc86a275145ad5a7774e594f0d94a06":"This week","79abd4ee3661ff70c7d79716c8aaed83":"Previous week","73bef6f0c997ffe317c868c4716baab0":"Latest 7 days","8f2a5a5f6e3777c7a0e1ce9484a2f7d7":"This month",d5578d93388a5b2552316418cd1124da:"Previous month",ffb2b7fbf227d9d21e03d0f160fb2a34:"This quarter",dd657784cc0d5511d2f25459e49ead1a:"Previous quarter",d3dbc7a7fd9fc5ccd168084c8579c1ec:"This year","2f92fc7bf6ef3dd57c514d0797fe2f1e":"Start placeholder prompt","592c59589144ddc68d05d528da17dcdc":"Start time",a04c4894d83323d187f65cc357fa646e:"Post placeholder prompt",f782779e8b5d709462c8e71e0d9019f2:"End time","59a81f21a829e24e9a765c4d6e509e68":"Select year, month, date, and time","5eb8cb70e4dc97622c967d7c7efd6566":"Date and time range","7f4466c0a16a1808b5ee398ce55997ab":"For the date and time range, you can set the minimum and maximum dates through <code>minDate</code> and <code>maxDate</code>.",ab37cc3baa3ec204bd7ebfa450568c40:"Email box",e3c0d799e8880a36edb07e34fd1bed67:"Verify whether the input meets the Email format","3bc5e602b2d4c7fffe79258e2ac6952e":"Email","899339c1133a6100a1b223680d26692c":"Upload Excel",b0e4a21f29af38986eebbbf867eee31b:"Automatically parse Excel","7caadb59b5892d107a909816b6571c66":"excel Be triggered after the upload and parsing are complete",eb3daf37c93971703187ecbacb00c74e:"excel Parsed data",d9435aa8028acfc660276c4e0af5536a:"Parsing mode",b14494137c805dc66bdc9ed88d7fd2de:"Object","0e67d4b0e351b00f4bea9840aa6b99d7":"Array",fe5c59cbac3d45314ec6397d9f75789a:"Whether to parse all sheets","50b10b178196378f4359ce11bbc31372":"Whether to parse the sheet into a pure text","1647e4bfb548f2e8468d10b4b3bfbe21":"Whether to include empty content",ec1f230a0181d79b37967a455b1f3515:"You can upload several files. Also, you can configure whether to automatically upload files and to upload large files by dividing them into multiple parts ","8dccb3d6633a85edb21fa52599211654":"It is be triggered when the upload file value changes. It can also be triggered in case of failure to upload.","5560230c43dd8d8c2b4a62d829f152b3":"Uploaded file","7dcb3fb3ccc93369798d4b6950e96058":"Remove file","03d585240162dad662a0a6b5d90a4692":"Be triggered when you remove a file","6775136a73e41c1b2cb4ab025773e326":"Removed file",a7699ba73144aad544eb9ac49f82749d:"Uploaded successfully",e309c24c2b07e5970208a82388f1d88e:"Be triggered when the file is uploaded successfully",a27518f50ea00aaacb2c4e52f113eeb1:"Result data returned after the remote upload request is successful","54e5de428ca9d59119d4624706215a4d":"The upload fails.","4855bc3f3d06b9cf58d14b61839c5a51":"Be triggered if the file upload fails","236dc056d6800bf423df47520637c52d":"Error information returned after the remote upload request fails","36d40a48f3da92af9fe55ee77cfae46f":"Clear data","18843505278637e44a29e7e1f39e0b06":"Clear selected files",cf6e87cb9edfa398ccfc3db377e34ca4:"Button name","0ec0e6e04b9e918939ac8e0daf407b75":"Maximum number","0a9dced8856958fbd05508d1218f8090":"Maximum volume","3e999689c93e7cd95ce6acdded1835fb":"Submission method",d28879b6a8a4ddb62bf6f2ab59303df7:"Submitted together with the form","3a76423b7ae40b0fa8b0bedb470cce7e":"Separate upload","7c6722203327e8173be987f36fadf610":"Data format",fde1ab2f504097f3f717acbb653b4f09:'${formType ? asBase64 ? "You can use it for small files. By default, the file download address is submitted to the form. After setting, the base64 format string of the file content is submitted to the form." : "The File control does not take over the file upload. Thus, the file upload is directly completed by the saving interface of the form. You can choose either of this option and Base64 (什么和Base64 ？？？)" : ""}',"6168fb08fe64663a502a132c5589b73d":"Binary","7245fe895fa1cfc42b5217a3de314565":"Automatic upload",cf9e4c80962e712eaa55551cccff317e:"Enable block","454dbf9b835af8627d4dfff2903298b7":"Block size","2af0c8b5999a1d243ec5fe503da20026":"Block preparation interface","5548252bd28fc1d217d13a9e5771ecb0":"It is used for the block preparation. A file can be called once. If an error occurs, the subsequent block upload interrupts.",d7832abe5b9ce8e41537b4964fd7cf70:"Block upload interface","14008d63c109cc0d0c4ba305671800d2":"It is used to receive each uploaded block. A large file is divided into multiple blocks according to the chunkSize and then each block is uploaded by calling this interface.","70c935fa7ae03aeb1ff87b878e16841f":"Upload completion interface",c88aaeddb5aa95c7627d84df33929e3f:"After all blocks are uploaded, the `eTag` information collected for the uploaded files is merged. Then, you can request the backend to complete the file upload. ","1e4dc4d5f4a3a95ddc349147d4d8cd39":"File receiver","258d9e27231b06769dd584a3365545ba":"By default, this option is left blank. The files are uploaded to bos. You can set your bos address in the system configuration.","28b988ce6ae6dd62d24bcb8a52119179":"File type",f0a37d6f810c73a2f936f33035d99056:"Enter the file suffix. If there are several types, they are separated with <code>,</code>.","58892b7a6a785706712761d5aebb4639":"Template link",af4b910df15b00ba7fb5163558389cfe:"It applies to the scenarios that have upload format requirements, such as excel upload format. Also, it provides users with a template download entry.","26d384ebe61b6ffe0e64310331f9e998":"Drag to upload","644d03767c8148de6651cc6b00b0173f":"Selection button",d1b06a828d05b0ff72328d50b16a8443:"Upload button","0d4ebf2f4a10336011cfe0466b29ba5c":"Input Group","5b7363cba6bad37b6614809e9bd90746":"The input combination supports several types of control combinations.","13370c4a5c95eff126068be5cfd2a9df":"input combination",ff10d1d90be63fbcdc7377435bf18f96:"Input combination","0a7f8e17f8487c3715a154bea698778e":"This option allows you to crop the image. Also, it can limit the width, height, and size of the image. It supports automatic upload and upload of multiple images.","295afc11c5fad1a6d97ae174abfcc5bf":"File value change",d4633ba7a30303a59891d051a7715cc9:"With this option enabled, you cannot enable the crop feature at the same time","22616e32a895c56187921ac6cc673f51":"Maximum image volume","13446481eaf0a047d8fddf159d981a7c":"The upload is rejected when the file exceeds the size limit. The size is expressed in bytes.",aeae3dd09f5cc972944a892802244483:"Maximum number of pictures",eec48d0e729f7260544646c60ef6580d:"Upload is not allowed when the number exceeds",b582587147013afc52c58de5fe34d7d7:"File reception interface",d24bada35447c81d7d7ddec13c44b576:"It is a file reception interface. If this option is left blank, the files are uploaded to hiphoto.","7c5e7ad8954effd97cb78dcb0e8f99d9":"Image type",f816b3decb401dcd0c22db7f104beccc:"Enter the image suffix or <code>MimeType</code>. If there are several types of images, they are separated with <code>,</code>.","99e6b6011bacaabc18aeac70390252a3":"Placeholder image address","886df74c6a38c09891f46bd029490ae7":"Whether to turn on fixed size","037805d2f16cfe69e3145c9f436c06ef":"Hide upload button","80f7e6960804df47856301e7ad8bef6d":"Enable compression","2c4a34adf66f12d0a08716383304a66e":"It is implemented by hiphoto. For the custom interface, it is invalid.","5d8ff202988e28795bc72ab60d67d79d":"Compression configuration",d4efa8f599c1effe67bf6a7f38a9c40d:"Whether to display compression option",f8a68f636880acd097317f16aeacaedc:"Turn on Cropping","3d948d24bc4c29689c5a1d4bcb9f2b98":"With this option enabled, you cannot enable the multi-select mode.",e09f3466f78e62c1494fb36816950501:"Cropping ratio",ea172e50aedd5afb561ef02ca119821c:"Whether it can be rotated when cutting",ae948ea02f5abf3c6409b1c3fe3a2295:"No during cropping (scalable)","4697838df60efb48d857c12387c6d795":"Crop region limit",bc436447f54b10a9ac3f0ee3e1b863dc:"No limit","7ccc0313ac4c40b364f482341ecc3bb8":"Drawing area","4db4c540f05524c38e9431173736517b":"Image limit","93f0c741d286a0353f95afa4a8aeff64":"Width Limited","5738784edf25dd7c3e40e0c1af4dc80a":"Height Limited","367e853038270c93e2c35a2bfdf0bcb5":"Limit maximum width","3693431e7944d7d46959b44b93de894c":"Limit maximum height","37494f474367871edc678cd5f4fc8ea8":"Limit minimum width","484abb6891d6ea842c58e5ada6dbf411":"Limit minimum height","9b43b6d003635fbf2e02f9bab12929a5":"Limit aspect ratio","2e81b2a5e6d523a70db93481f01af875":"Limit. Limit the minimum height","1765a2daba3ba8c5af95e66fa83545d4":"Aspect ratio description",a7b7da38fcb8e246e910e178c5fe4ebc:"When the aspect ratio does not meet conditions, the description appears as the prompt information.",ed55564c631322fa3042c77286d6562c:"Input KV","746dd83e6891ccc9a19804c23c2c4443":"It is used to edit the data of the key-value pair type",b3747d09769d3a2ea8aa664edc901212:"Be triggered when you delete a combination item.","654ad5670efdd25f1417958a7026a355":"Value type","9648d874d516a87965066342394e86e6":"Key prompt information","4dae7425b21494a318cd4a69ce24608f":"Value prompt information","233662283039ded8c29f070d1a807029":"Whether to sort","4f9c849b6b7f048cfd242cef3e707a58":"Select month","7c3885e3c3eca4d95521b3e220586628":"Month range","5b4ad7ffa6eee985e72e002bf18ac09a":"To select the month range, you can set the minimum and maximum dates through <code>minDate</code> and <code>maxDate</code>.","1e65b8181e9a40e76b86e2c261cafbe0":"Input Number",c45782c425bfc31824af8129bd6e0282:"It supports the setting of the maximum and minimum values and the step and precision.",acc945d0c8449dce7dc1441f466ec413:"Input value","5f914e36c49db618d06981df7b3c4d81":"The number box gets a focus",e52c2701b682679d6c670a8578cfa382:"Current value",efdd0d8923130f281b54506eef2121cf:"The number box loses the focus","0849471829a565a8af6b70a46346e574":"Clear the number box content","33bf23fcb86101a9994b7e4bfdc2b062":"Enter a number or use the <code>\\${xxx}</code> to get a variable. Otherwise, the configuration does not come effect.",e284e64008fd8b066da04bca335d032a:"Number of decimal places",b317cbf67c94f986fc44cf4cbc2280c6:"Precisely retain the number of decimal places according to the rounding rules ","4c9bb42608b11278a5d9a2471b74eb40":"Prefix","0c8fe8b3675b0c7f5a896a153461ea46":"It appears before the input content. It is not contained in the data value.","242d641eab57223af01fb29940a096ed":"Suffix","7915dcc78c28ed3cda8fc949a86e4806":"Unit option","8c80ed1f85135cc9153d0b7406ac5b38":"Quick edit","0a8c852e27763a18ce5b72a87ba8b5ba":"Single-side button",de93563a076f72b3e919870c9dad9935:"Two-side button","5dd92ede50cc183f0f067dd29be5c325":"Password box",a8105204604a0b11e916f3879aae3b0b:"Password",a483bccf85587055ab31314ad1d2f82a:"Quarter","549a2a421951fc8c304c6223f346e024":"Select quarter","39891e1760c79287985adece9a107fd6":"Quarter range","6036c91d6b0b6d1a2468684e597d9f70":"Input Range","4c65f10eacbfaf580236b5cbe2de68de":"Select a value or range","0a6a4aee139530801791c556e7177a7f":"Be triggered when the sliding block value changes",f34b1a3e26aadb6f60c546dbe9c62232:"Be triggered when you set showInput to true and the input box gets a focus.","404625f170839b2a24d7ab65304c2fe7":"Current value of the sliding block","7c9ec5db3bf23f367c1a905d356aab5c":"It is triggered when you set showInput to true and the input box loses the focus.","1659f1112dd649ec55390fe7c8e3b1d0":"Clear input box","7220e4d5f9f65e4fadee5183f2e0c54d":"Method","9ec172e2cdff6146d623087d567c8574":"Single sliding block","753a8c54d3944e252be1af928b8e7afd":"Double sliding block",f2996845b6bf0a07fe26f74f35e42ebe:"Units",e48d95a94e49b81b12a0113a5c253d8f:"Value label",a465db53b8c98f42caa15ca5662f9c90:"Direction","3aed2c11e95a9c0ea1d853d4aee72e8c":"Auto","1d1a0bd85740653320d80f0d6e0918e7":"Inputtable",d22aa5f57ff8679ee7b7d473ef31417d:"Resettable","15628d1d85aee23c229c528a70419414":"Track","108db12ed4454cf1ab4242ca98442b7a":"Scores",f11a0f49123c2099ca6c6162ca37f0ec:"Support the read-only and half-star selection",ce9201dd7d5816945fbedae79927518f:"Be triggered when the score value changes",cef3580fce1b3156908cc852dadef892:"Score value",e2c6470c3f2e76cb98ba951a64e41c3d:"Clear score value","09bbfb387dce6201df1ccef2aab161a6":"Clear","5ea244a79d480632f635a254c95c38df":"Whether to allow you to clear it after you click it again",fa6f66437097fe23c948f4f9b78ecec0:"Half-star allowed","1a10cd6599219eafb615b34234cfc0b5":"Description content","9c07532d0c9acfecfc4ec2eb265c3e03":"Characters","2a3d1f6d5b0afdbf04033e2f2c1fa11e":"Failed to select color value","497562b3159756834c7adfe9525bd7b5":"The default unselected color value is #e7e7e8.","4dd547945b10f672a7e48d7ffc42496e":"Select color value",f186d55a48868a88b026d48efc1cf36f:"Score description",d38056d1c6aa9456f4b6b2c20aab06a2:"Input Repeat",b3389af540d99fe9e51fb2995dbd6dff:"Select the repeated frequency, e.g., hourly, daily, weekly, and so on.","2d842318fbd931286be387aaf5b2a7c3":"Cycle",a2d92b5adb07a4bf8a45e55643bc39f8:"Enable unit","42c036311993897680ef37f11e4e20a8":"You can customize the configuration bar of the rich text.",e2591e971f4c28db7c80a5f546084a1d:"Rich text","70209fc05c1a5b21f05b186a0f7ba2ee":"Editor type",eca97e97331bd76aab9f6160991e02bb:"froala setting item","39624e820b79bbd62561357f6179c8d7":"Prompt language displayed when the mouse is over the configuration in the configuration bar",a7bac2239fcdcb3a067903d8077c4a07:"Chinese",f9fb6a063d1856da86a06def2dc6b921:"English","81fafee54baebeb9591b5e7840d7e650":"Configuration item displayed in the large-screen mode","0b6eee152cb2553ed4298ca2fe82d3f8":"Screen width ≥ 1200px",d85a80d177db696b29b7338af1501055:'The configuration is separated with a space. You can group the configuration bars using <code>|</code>. <a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options">Reference documentation</a>',f126c4368fbf51cfd470684e7c3d31c9:"Configuration item displayed in the medium-screen mode","3b8c320d14dba586c581ceb951917397":"Screen width ≥ 992px","89bc688b5b497e515ce3c026a1d92669":"Configuration item displayed in the small-screen mode",a849d8a0f59f3ae146b149b7b4fc7480:"Screen width ≥ 768px",b8c8f1c6a56e902bd837420da0f554b3:"tinymce Setting item",e4d0e65de0018b63698ff22d683d6dd5:"Whether to display the menu bar","63068211669d69b4028eebe0052425e7":"Enabled plugin","8cfcd52cebdc2555b202f4b03de93662":'The configuration is separated with a space. <a target="_blank" href="https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/">Reference documentation</a>',"1a920d9999206a9fa5f588c7405fe081":"The SubForm allows you to configure a <code>subform</code> as the current form item.","18c113b99afa964ee988f30e81baf12b":"Name field description","4d930a9c13fca9d74e1a77496abfaa58":"The button description is displayed by using this field value when this field appears in the value.","307ae20f587910da3e9bb4e885334b6a":"Button label description",e366ccf1556c0672dcecba135ed5472e:"Setting","70c04a0f4522e39fde5f18ebc85b6232":"The minimum number of buttons is allowed. ",f58ea00f6a84bcb1cac174d1f68c88bd:"The maximum number of buttons is allowed.",e41fd1934b82f93f5737827be7323119:"Form edit box","0fbb26a646da61d2123319b4d0144ba4":"If it can be used to display the data, it can also be used to display the data of array type, e.g., <code>multiple</code> <code>sub-form</code>.","4ba0387a2daf11ad9c67a75b52819eb3":"Table and form",a80f36ea893b8135df8d9266bf13afac:"Description text","1f9794dd5634220ed0a498c666cf46fe":"Column collection",b2c712c788d3a143206eee22fe24d9f1:"Green","6b93fcfc1a5795189c6072fa6e86d4f6":"Quickly build the table","0c14e431f1b5ecd163f8fa010a0654c7":"Add a column","13c250c68608118463871ce7cd8b292c":"Form edit","6a2f67fe2d8bb1d389eb934dd8a72b1f":"Add button name","44177f78c596be113d4fe7c6bd7bb46a":"Add button icon","1d34fdbdcac357588c255c1ed2336a3f":"API submitted during submission","96848841ea9b2a7d692aa6de57aa5e3e":"Delete button name","34f020715121478c6a8e4654954c84fd":"Delete button icon",a497289d862c6aeff8e61b6479b1081a:"API submitted during deletion","748f181258041bac1fe7346e970dfebc":"Whether to edit","412e319fdd893e6f3b26a1975d21b0e0":"Edit button name","396ffcbab4e21acb77f6987f18ec94a3":"Edit button icon",c128de224b606b094bd8139890fbe215:"Whether to copy",d59abc7020b4a6d943a0031da4518422:"Copy button name","5d04af0e9d59ab3f1265cd8345c2517c":"Copy button icon","681bdd6184b526ade9665e6d74976863":"API submitted during modification",c29e632a658ecb98edb874833b070e98:"Confirm edit button name","24c39bb36955b3113baefcfc20c5f60b":"Confirm edit button icon","9c68c27e8939af40897d1b0bca0360a5":"Cancel edit button name",e54289c1f0e9311185adee89af24e618:"Cancel edit button icon","1205e138ba64dddf61c1f8e6eb3a1aa7":"Confirm mode","1c1618f67cfea6fefb5f287932be2c27":"Get the parent data","5831c1f77c5acefa6dfe9c64d06ca78a":'Configure "canAccessSuperData": true Configure "strictMode" at the same time: False Enable this feature. It maps the variable with the same name of the parent data domain automatically during the initialization. Note that it is mapped only during the initialization. Once modified, the data in the current line predominates. If it is of form item type, it is used as the initial value.',"677fb705e57897710d28867b7628307e":"Input CSS class name","14d342362f66aa86e2aa1c1e11aa1204":"Label","1b4996b29c7b4d5fb45ca701e6438d14":"Configure <code>options</code> to implement the selected option.","52636511861a0e08cbe6a0eb1c27d816":"Red","9c9aabab3f7627ff4bb224b2738b26ea":"Blue","9888468550779b1777260b8fafe6abc2":"Option prompt",a2cbb42e488dffe644bdb87c26afbc07:"The latest label you use","6f6fa31a91b516b28ebee7a86a9b13e2":"After you set the option, drop down these options for your reference when you enter it.","379b5486e7860a9f38f37dddabbb094c":"Text box, email box, input-email, URL box, input-url, password box, and input-password",f222f5413d3854897741e0ec4b0d2c7b:"Text input box. It supports the input of common text, password, URL, email, and other content.","9306b956ca5950203ee49a2680cac63d":"Additional widget on the left side or right side of the input box",d548d3e938088d5d469a28c20e939750:"Automatic complementation","424cd425082360322678a5c8d6910b80":"Call the interface provision option according to the input content. The current input value can use the ${term} variable.","7e9c83e86beb612377a94e6e8d1fc644":"Display field","26ff46d82166741297ce666b2792af85":"The data field corresponding to the option text. If multiple fields are merged, configure it through the template.","6d4ce0631f37676a887c9599691fabec":"It is the field that corresponds to the option text","2e01f5f5889e33d003bec7857cd38445":"Value field","959c27193eb0a41d01f4b53dcc4b9245":"It is the field that corresponds to the value.","82a61b32c76fba3dc83e2611624e93ec":"Time box",c54993eb4c2a46263cca2e6bdebb051d:"Hour, minute, and second input",c166d8f9804ecef74b3b74190599a7b8:"To select the date range, you can set the minimum and maximum dates through <code>minDate</code> and <code>maxDate</code>.","479728c411bac59bc44d5ab8dc3cb4f0":"Tree Select","15ac5d800c0163b4b806622739478e9b":"You can select it in the tree structure. You can configure the option through <code>options</code> and can also fetch options through the <code>source</code>.","57a6105deead3fec79028cce7bfa2004":"Option C","9bc04a190ce0a5ba1ed473cb628b5ed4":"Option D",f77f634e6892c6447c5d9df623e42aff:"Tree selection",b35014ec330e91860bb188200fba12db:"Select node value","65d76d0590aa6e05d61fe8db4c6a11ca":"Add an item","0761b99481b1bd10c1d6aad6028a8281":"Be triggered when you submit a new node",de2392357fc78e9e0f0946bcc0af87b6:"Added node information",cf965b232227a0e9d14f4f7e31b01c62:"Option collection",cd994c38456676f5a55c5593b6a652bf:"Edit option",e385c7c6f726dc2641866d9050777efb:"Edited node information",d015e18748f42f53bb6ab213e9b06187:"Delete option","58cbd355c5bdb80653a8ae3d3b316c37":"Deleted node information","58995b490ba67e5d29dd87f422b14861":"Lazy loading completed",ec2fb7a5db150690b14b63f83d9d4b30:"Be triggered when the remote request from the lazy loading interface is successful",e6b94af26512b3f7ea8eb1433d4a2aaa:"deferApi The data returned after the lazy loading remote request is successful",e2edde5adbdf33f6dce59a299cbf5fad:"Unfold","38747bcbc3c47924098076ee87e59933":"Unfold specified level",a148ea1749eaf611df5cc95b533751ec:"Unfolded to the level??","37252d3a5eb0ebab17bfce14968b47c9":"?","01356df4561f9da87d2876ec9c0dacfe":"Unfold levels",def9e98b60e3bfc493bcd7693e702096:"Folded","3ebb9059b6abc8f80a212b5795270ec2":"Fold tree nodes",d81f0b9079d5a38bbedffeacaad8b905:"Delete data",ce5e449208bb568eaf722bab9a20380e:"Reset data","25ae4ca8d4b8a67b273066a97a516327":"Options",fe7509e0ed085b86f07e3e9975cc5b3d:"Value","72453d792655604f1fab821146133d7d":"Sub-option","210da23d108e85b2f0bbfa85846cb792":"Add a sub-item","7dae2e2c470a12011e0c8b831506f656":"Hide top level",feec2a81557811b7fc38b0e6b758c3f7:"Whether to display icon","018d13580184c6ca3df616940ebaee66":"Do not automatically select sub nodes","210bc6834481c05ed90875d87a262ed5":"Whether the child node is automatically selected when the parent is selected",b39c6fb1cdf629d3f3032d6c7d4694a8:"Whether the value contains a sub-node.","1fa482fed3042cac9f96c6f43c13f84a":"Whether the value contains a child node only.","55b50a43f58fa746600d6bafdf405336":"Top-level text",c48d9f48ce8a798772f17d1f47560529:"Top level","945da00807804cb992a3aeb0ed6ea698":"Whether to display single-select button","13604cddfe74bc9b9078dd61f9fb94ef":"URL input box",ed2e16700e32afdcdd745aa31454edb9:"Verify whether a valid URL is input",b233766d3fae72574d3f9ee98c5be120:"Select year","32a750b4fd61f1cfe37cac7147f05b3c":"To select the year range, you can set the minimum and maximum dates through <code>minDate</code> and <code>maxDate</code>.","973b69af999dbdf4fa124df8c928ca6e":"Read-only mode","710ad08b11419332713360d2750cd707":"Disable","7abf78a41095c6d21a1cc89b4a876233":"Delete form item value when it is hidden",cd8992b644e6c18367861a4d913fd116:"Verify","1040279cf7b8dbdb842f597c30095f62":"Check API","133886b10fd9721e6cf91b76f2df5b6e":"Separately check the API of this form item",b95c6e14a4d8f6a6c6d99d583916f327:"Merged into one row",d22dfe420e4b00e000b93f94db3c856e:"Select List","5e391af52da238f13c78b471a7cc54f3":"You can select a single list of multiple lists. This feature allows you to fetch options by <code>source</code>. You can configure images for the options and also customize the <code>HTML</code> configuration.",d1f923b8e23b66b3e48953ba1ce17839:"Location Picker","989ea9acbab9b17d2c15e2946b5365bb":"Select position",dffd9d86d2003615897b12ce7597d77b:"Baidu Map AK",a269e7de6c7735290733eb3e574c2129:'Get Baidu Map AK from the <a href="http://lbsyun.baidu.com/" target="_blank">Baidu Map Open Platform</a>',b472ba224a7d132c487ee6ec4798f835:"Coordinate format","36443b53c845b197db8d39eeda433ab9":"Baidu coordinate",f58cb611aec0998a44ef104b5c950b40:"Coordinate format by State Bureau of Surveying and Mapping","076a041dcf45a36b29c5cdb8b8eca922":"Rectangular Switch","183aae5eec1ff547833dc338aaeffc9a":"You can configure row single-select and column single-select, and single-select or multi-select for all options. ","7583b85ff3579d60a9f9d323c2f6674a":"Row title description","3fc35bb610852289cf718f07a5b79369":"Column 1","50987924540e6e35c78246031499e75b":"Column 2","08a6996be7a86af5692cbca41922a5d1":"Row 1",ce31d858c63395098c5e4cd892bd473b:"Row 2",e9b376d39966c8182683019f95ff8cf3:"Row, column, or cell single-select","0f244785fd9f555aae9797db4d14fb09":"Column level","5a57bd526cc3170b6c86f920fc24cdee":"Row level","45dde5879e77d7f7a15d04b8fed26ec8":"Single cell",dc7558211f2990370954c2e7ca498ee9:"Column configuration",f4c807fd8453f4b3fdaab02fb9c21ba7:"Add a column","39886861ea5d8b526e0ac5ecc78d110c":"Column description","34ad26bd1fb448c7f2384252d856c02b":"Row title text","48baa62373a2f90d6aa743d7821be956":"Row configuration","854af3c2cd9c275ac70fc5121ea4fb2e":"Row description",bf306308e467aeb7b00df0e2dd127d06:"Add a row","75bf5fd49520bce97de632700fc8a129":"Get matrix data API","24d9de25721d1fb0ecf89ef81c43d877":"Nested Select","10d1cfb7219a5445ef1e70aa16e4451d":"It applies to sub-items contained in the option. You can fetch options through <code>source</code>. It supports the selection of multiple options.","03cd388fe29a4fc116c0021e496a113a":"Option b1",fb00d1c1a65d3739c03a0b2715168327:"Option b2","353ae08afdb3d0a3587e9b27ca239c33":"Option c1",bea7ad76f0f321124ff614a099cb9a85:"Option c2",dbdae74eb12668e2b9568b013bf27d45:"Retrievable",ae45cdb51c795df3b046f71afe3611bf:"Blank prompt","601bb29fe72e56930dea03ae3e1aa555":"The text appeared when no result exists during retrieval",e3be7b8a459a08fec8f378a0660b642b:"Multi-select","6a7f7d89c8f1f3e6aab0962ff920b145":"Parent option as a return value",c23eb92d1f249452c3ff3ee13738b47a:"With this feature enabled, you can select the parent option but cannot select all child options. Also, the parent option is used as the return value.","8fcbfdc1a9403f6339d81911473806da":"Picker","819776e8d96b1438eca3594f47bdb1c6":"Through the <code>pickerSchema</code>, you can configure the data source available to select the data you need. It supports the selection of multiple data sources.",dc0c50a5c9832b393df34835111c34a3:"Enable embedded mode","1ac065ed64b81380384a0b371d5b404f":"Configuration option details",d64b585847f015eaa1443a3a03562350:"Display the style of the selected data","0861915dbac25ccb573b3bb72ffeebd7":'It allows you to get the variable using <code>\\${xxx}</code> or write the template logic using lodash.template syntax. <a target="_blank" href="/amis/zh-CN/docs/concepts/template">Details</a>',c2c23b4fc7f695c58e947ad413f2c5d8:"Checkbox type","33e6c41fed95c25e3b426d596d504579":"Drawer type popout","5a7af8d3e471d98339c84b07a844547b":"You can configure the options through <code>options</code> and can fetch the options through the <code>source</code>.","1e890599eec94efccec337cd474f7f1b":"The first option is selected by default.","46110787e4774b81418b274e9b06127e":"Display one row of options","83a00680e0872e2a35496be7e12c1309":"Number of options in each row",c30264927c3c170efd2e7763becf12fc:"Single option","8a0c1f35cff334fc105b6d52b195369d":"It supports the selection of multiple options and can give an input prompt. You can get the options using the <code>source</code>. ","75cc2a992ea150d3a6c68ac4bc486637":"Added item",a13b85bddbcdab63ef2b2d98dd46afe9:"Edited option","8aa4d6aedd7957ebc6b87fec655695ef":"Deleted option",e19c0792886a147d74fc662d7af138bb:"Display the selected value in a single row",b28aa9c36d0b506a71aa78b628e796c6:"Number of labels displayed","2b23767de575e27fc9e4e0949e885f81":"Maximum number of labels displayed. The floating layers are folded in case of exceeding the maximum number. All labels are displayed by default.",dfac151de712ab0b3618072c8a7f0a0f:"Advanced","406af2b98e6210cd42d7f824cb6dfd16":"Option value check",fa8d03e8b5458c1a1d742736bc26e25b:"With this feature enabled, the option text becomes red when the option value does not match the option among the current options.","33e7b7433fdbeafa1ef71105ee28c061":"Static",c99e0a675933de39693b7e80d5b70405:"It is purely used to display data. Also, it can be used to display <code>json, date, image, and progress</code> data.","134492cd10a0646da6f23a743feee6d4":"Static value","04f5f12c49c2a6fdc43da049591328ad":"Static display ","663a93dacbba9f7860dca783cf772419":"Quick edit",abd733d00ec656e7b0cfd88deedf102f:"Quick edit mode","78f395c15aaf8c92d9223f6ca69b41a4":"Drop-down","5e2d1e872682befd5350687f94a6b417":"Save immediately","2d2eb2ac28f074d1caef0d332d61cfb0":"With this feature enabled, the modification is submitted immediately. Instead, the modifications cannot be submitted in batch after they are marked.",eccba4475f3144e417e55fd96e831e09:"API for immediate saving",c8e5c062d5ad38e54413abd9c7cfb2f4:"Whether to separately configure an API for immediate saving. If no API is configured for immediate saving, quickSaveItemApi is used by default. ",c3ed36e4abb96c18a6c83350994cdea7:"Configure quick edit type","45a6c55d8d2d92af84e219defef084d5":"Configure quick edit","3f337f436989e9847790e4435423f77e":"View more display options",f7247cd14bd964b883bbb481892c440b:"Pop-out mode","2a2924380dfcaea998bd8a49703545a9":"Drawer",a06e8df4e9232cc606e0202e06a198d8:"Floating layer position","68b54e7b408c4fb83561c931aa668eae":"Middle part of the target",e18459c93769a5afec01e1ce60f9b9fd:"Top left corner of the target","1fc3cdd8437f5057774cde2f2c51f97c":"Top right corner of the target","63dd9faca92bccfd436ff21a6b4b3151":"Bottom left corner of the target",d01c239688b9c8fc145191ee642dc080:"Bottom right corner of the target","8fcf9802436282672a8e28ebd6262390":"Top left corner of the page",aed25160b4e8cfc613a743c4549e9222:"Top right corner of the page",d4a4ab1916187e09b9c037705fd49ffa:"Bottom left corner of the page","921fccbb84c829bf8c6f0b9957029f44":"Bottom right corner of the page","1d53f83df1d889a70131b7a93c819575":"Content details","8dda45360dcf9ca501fd7d0eb53045b5":"Configure to view more display content",fd389de167730ba8542217ad31b95562:"View more content configuration",f9a9fcc3bf6a3c8ff1e99fa48ed6d03d:"Copy",deb65aca8dba2ff9d0cfaed0a3441068:"Copy content template","622e14515c4fd5ca6fe6946e3a1bfb4a":"It defaults to the current field value and can be customized.","261bba7ad82914e477f4b37f6a83874e":"CSS class name","16a20243f9b741c08216dc9548de2968":"Overall",e1b2f870112bd38f8d7e14a0ad589930:"Control",d38b7fc2d31e0ae21cb4bc7d7df14e92:"Switch control","6e17d8bb70df1c1e379fa86cb235ac82":"Switch form",ddccb436305b0a984c77d4ffa0725375:"Be triggered when the switch value changes",a75c768fda740b2c8f6e2dcc76400f23:"Switch value","7e1eec8349c4998d142960009305f27a":"Fill text",c580bacf343343f04a1b551e46d02c4f:"When it is enabled","9ff352ae39cdaeaa4fc54f83575eedc9":"When it is disabled","48433deca382e67b26af31c6ff967d04":"The default selected value is true and the default unselected value is false.",cadd676e2710e50ac149211078f8a306:"Selected value","13f19e1d0dd528aafd6263fafdc35e82":"Unselected value","617a63f1b19b5aad029f973479bac917":"Tabs Transfer","4f26f1edebcdeea90f6e4247a501dbaf":"Tabs Transfer Picker",ab5dea29793d933fa7b5487a7309df6a:"Member","71f8043aefd52572b172e7d1fbd5af57":"Magician",fda93c79275b812a6c1c189fbebf8b08:"Zhu Geliang","573cb0d34bd1cdc7b368c59db9b7bb7d":"Warrior",e37a86d1a1dbed0cd53c95582977f075:"Cao Cao",ccddd2de691ff2d56b651877f72d90ed:"Zhong Wuyan",c0db8e7b42528eeae96310c6629e53b3:"Jungling","293040fc607f40caf6d6e16042012182":"Li Bai",b5256ec780343c4e20e397b43cab96a9:"Han Xin","49dcf9f88e7b7b8ca7448631021d7d12":"Yun Zhongjun","1fd02a90c38333badc226309fea6fecb":"User","8b3a9a5c912610c384bc8dc2c8514386":"Select all options",e1112a529dc969a03bbbb409905ff2ec:"Tab change-over",d202bc660c4d2eeb58e194b6320bd235:"Be triggered when the tab change-over takes place","9e7a97a3d043f566f2435329e01e09f9":"Currently activated tab index","91208131116f2823993daf99f15e1325":"Clear selected content",dda222620b789d07c2c5c279475caaf1:"Reset selected content","2ac24a383a1faae33f81772b757b2817":"Modify selected tab","91f894b900f593c848e5b21f2b414b05":"Modify currently selected tab and select other options","791959f9b90734dce08da79f4ac27a41":"Search API","6eaeb8ccaa8473e2b985095be2bf3cd1":"Select display mode during query","6541f1702af367c41a3127ed8511eb50":"List form",d58ba4b5e94680fcb08300e176502fb8:"Table form","406573cea6af9b0c6462295108e1f5c0":"Tree selection form","6c5358b981a475da2a83e95e4170647a":"Cascaded selection form",b51b404751554341aae342bc5a6e9b22:"Title Text on the left",c7840604d79e814f02f8260bc2ba6544:"Title Text of the result on the right",c6a16ef980efc2ac48c58727e5bade81:"Textarea","2af7e3952d7430d1e4c86ea5aca4e4fa":"It allows you to enter characters in a newline.","5bc28acd4afb712dcbc234927357cd87":"Be triggered when the input box value changes",cd7f479dd052edc1261261c15fb0b50f:"Remove blank space at start and end positions",d3a8fe0d542476cf7989ef9e69cdd6f7:"With this feature enabled, you cannot enter blank space at start and end positions.","829d96cf23f19759e4ef988fb5320032":"Minimum number of lines displayed",c0afd6005e68838e37e26dc7c34cf368:"Maximum number of lines displayed","685e5f4815e87c4690dda7d7aa163904":"Shuttle","26b4a55f458275a108c1ef213a354ced":"Shuttle component","1b09b6621ebf0d10ce98f0178fa1bda1":"Trigger the component data update. Several values are separated with “,”.","0ba83d9fe027d8386b814f4966f20d4e":"Check display mode","847fe7c3978764607631845b0a43926b":"Association selection form","9037f708f0d9750505aa741399768ac0":"Option set on the left","3dd8d112997a8d0ae0641b8bf69eb7ff":"Left selection form","7980e24e70a7e56490fa397d5bc6b86a":"Right selection form",baf916e9b0de774b78e716e91b963690:"Show statistics",e40d15221a911e060b8a05ec7aa9533c:"Tree Select","26aa42c81825364d2d691261017b6797":"Click the input box to pop out the tree select-box for your selection.","382df0b291e5306c423bcf471eb1734f":"Tree drop-down",ac34e635d05de0ac2de78737ea313995:"Be triggered when you add an option.","5f5e2d89e987fa64d56471b2e3d50cda":"Added option item","8784005bbfb2b66592cc0c5cc0a62f2d":"Be triggered when you submit the edit option","25a4d7b5ce2585aada1205e1121e9967":"Edited option information","91a6d3a760184e581eccd52bfa3f7a18":"Delete node","3c72d934764bb7205f593903c63ac7ec":"Be triggered when you submit the deletion option","7768e7d47fa6e9b811d1a1f684703cfb":"Deleted option information",cfd5faa079bd9d7092e7cdc92f353c30:"Autocomplete interface",a9f97c7c1bec32a0912f1dd36b2c3b90:"After each new content is input, the interface will be called and the update options will be returned according to the interface. The current user input value is in ` \\ ${term} '< Code > please do not set it at the same time as the access option interface</ code>","72cd009894ef3ea735d5e2a9b4656c04":"Expand sub options by default","0770f4a4a4f769d778ffe228675e8c3a":"Options: default expansion level",d1b65ac6a715ec342d7b738c64b55aa0:"New option interface","07e2cb845d6b6c3f91e6960c209b36da":"Edit options interface","8c05730667f91c371ace46c17f46c875":"Delete option interface","43474db97aff2ed0a876a47b6f4cdc7d":"Automatically generated UUID","43e1548e15272e1007051d7c8b70adf6":"Automatically generate UUID in the UUID v4 format without the need to configure it","844d72db7e57be4d77881ee9b4294e75":"UUID (will be hide)","2820712cac089483cf2b4a0c939fc780":"Column","9e17d57a0ba39254a75c0265aa3063ca":"Column layout",e63907bf0db529e84866d1ae737bfc0d:"Column","9bdb07e72d3a9a6084201a7398523f5a":"Insert","3c43c5860b4dfaced296d7a63eae1513":"Insert a new row below",decaeded2b6f2c66f191ff34b868b1eb:"Insert a new row above",eb22d47f16f92e6f621c2b9d87119303:"Number of columns",c288b519484207bea1d51884a5e9acaf:"Column spacing",d81bb206a889656035b929cd8bb1ef10:"None","98d695d6a6a48cfb4bc2f6396ee64787":"Horizontal alignment","1cc9a6949b47913462ff832cb684bdde":"Middle alignment",da1b972efb29f850b50e219ad4d98ba5:"Justified alignment","11b7fc50778c89572391ec4c6c4b55e1":"Vertical alignment","2a6ad292447e6354ca39ee7f40d2fcc8":"Top alignment",d68c21b6b65e7a2e361762b65b8a5032:"Bottom alignment","0d9eb53682343f1cbd562c9a944ef5bf":"Insert a column on the left","814276d30e338eccbaee96c3e6bacb61":"Insert a column on the right","2a3e7f5c382c56faf261a87573658325":"Manual","19432e481cefd1bf88fc707f20ea62c5":"Column CSS class name","5ea5dbb698afe7ca566b94e92f6a3835":"Column {{@1}}","9cc03fc4b3e87e8410e10357a219b44e":"Insert a column on the left","6b12fc99e2a46aed982d46b93ac191a0":"Insert a column on the right","57ff158884582ed498a87d03aed46146":"Insert a row above ",bd63eab86ac0e0b35a06d0f24a098096:"Insert a row below","69a519f6b7fd6d0bebba72e7572ea1d6":"It is used to implement the left and right typesetting layout. It defaults to even distribution. You can configure the width of a column through columnClassName.",f9c91bffab8b1202cf32ab508879e805:"Fixed width <br />w-xs","8c187c1862900db487c8d47e19490fac":"Automatic fill-up",b6f2fcb279241fe5ff9a8052a444266a:"< span class = label label default > column ${index | plus}</span>",cb2f68c9c24e85d21e6b090b6e5657d8:"Column","92e2c6523449dfad4350f58908260266":"Press and hold the right block of the highlighted box and then drag it to adjust the width ","129b16a89a82c6d5e03ab075633b3892":"Column CSS class name",d34cc10492e80595a901a292d0c16bb8:"You can add a width class style to adjust the width. By default, the width is equally distributed.","84b620405949e278f214a811a3a19e2b":"Column {{@1}}","4bfd6e7e1ec0fe485aa0e7741d1670db":"Insert a column on the left","9d75cc0b193601391a139285d55a3493":"Insert a column on the right","713315591970d7c8b49d1c732fe54fde":"It can be used to embed the current page.","8f1c078c6d42759e6ccb1a9bf35f1629":"Page address","51ad722113289f70b6d77c78ddf0c64a":"The default width is the parent container width. The value is expressed in px by default or in percent, e.g., 100%.",c78d9b9ab9db5951eb5526e8a46677d9:"The default height is the container height. The value is expressed in px by default or in percent, e.g., 100%.","9ef4425332e5f8bcad86de483b4faedf":"IFrame page ({{@1}})","67997ccf7ea846c3c2d278b01ed9600b":"Image display","6dcf991e992a0b765df0933411fe9bb2":"It can be used to display an image. It supports the static setting of the image address. Also, you can configure the association of the <code>name</code> with the variable.",e18aa5e376437da71083a29c4cddaf46:"Thumbnail",fb43d5ffa21f3c4055c29fad350f27e4:"Original image","582570bef8c57c5af7658c4a4eea45ff":"Thumbnail address","1193e1aab7bea094279ae7b4288ba848":"If a field name is bound, you do not need to set it. Also, it supports the variable.",f5865bf2d791d293374af4aa76d27c4d:"The image displayed when no data is available",e1110b854bceeed0e887cb951bb3d2f3:"Enable image enlargement feature","7ffade593e390a2a2cc43e6663461b71":"Original image address","214953c5f7557b1a5f1310c87238ee03":"If it is not configured, use the thumbnail address by default.","6d45b56ee94ea873a554ec41b9f2074a":"Whether to display the image size","00cedb73310cc531a43d23cfa5ba0e5f":"Thumbnail display mode",b0267f4aa776e75443b7ef6e8dad257e:"Fill up the width",c30b1b6f29debb05449aa3cb40268e7e:"Fill up the height",e13556bb3580ac3746e1f8663eb15896:"Included","47303119ba97a66d168ff042575b9de4":"Fill-up","319501b9acacdd6f94a9bdd0637a3cd2":"Thumbnail ratio","4d080f1e18d86051b8d651c68685f319":"Thumbnail CSS class name",e040fc4bf539dd1cf6ebca6b4bff857a:"Image collection","93f46deec83b8f9005233a1467498d52":"Display several images","2382c315a6ba396be1932dd8dafaff52":"Image 1",ce6e2814f207c9333f10785606c57df3:"Image 2","45a4922d3f42d0b137c6845c4c77031f":"Associate data","2d4247be13246794180897b40fcdbcb1":"e.g., \\${listVar}. It is used to associate the data existed in the application domain.","81a2b634d7ddcffc21b787613673943c":"Image collection data","0f088d8f579c362068d7a3858e207280":"Thumbnail",ebb2073c604e72ffd9ae1b796665b702:"CSS class name of the image list","5acc93183b7fe3816a845aca52baeff2":"JSON display","5a4b81442789f3b2e7b665bd430eeabf":"It is used to display the JSON data.",f891291cbfaec7ba3754520e2a5227d8:"By default, unfold the levels.","6dfe63d8c039df37787c87afe4c68604":"You can use it to display the text address.","6ab20dc4b64021b85886ad9c12b6e0cc":"Destination address","78ce29fdc55e6d0980b591a264c537a8":"It allows you to fetch the variable. If a field name is bound, you do not need to set it.","5d809212900f3bc3ba122fe93638394d":"When it is left blank, automatically use the destination address value.","88a5126f6a1463fc9986b590ee4ab99f":"Open it in a new window","39a2cb79c6d9762783e20522ea86dcff":"Left",de2a774bf98944b8f0ec8755d5f59d64:"Right",e370757f933a8ecd87bf0255c3ce45d0:"Advanced setting",e35dbea2b0c097d7fb76173da0e0bba1:"HTML &lt;a&gt; the target property of the element. This attribute specifies where to display the linked resource.","9f556fb46ecef854282d17e631578b1c":"It displays a list. It allows you to customize the title and sub-title, content, and button group. You need to configure a data source for the current component. This component does not have the data fetch feature. You need to take the priority to use the “CRUD” component.","84c04f1e9ce6a6a228228dd3fb96b99e":"Configuration member details","1ac0e1626be43287983fe3e5559320eb":"No data","4e53bfe03e30bb3eae63d90d1f7f2a1c":"List div CSS class name",d9eac94850a74ec881198f4ffe4edcfa:"List item","3ed7b428165499a1b91ed1eb287ba343":"It supports the following template syntax: ${xxx}","456d29ef8bafd5202547e50d3e64d4ea":"Log",d06f8476d115020496058363a32bc40b:"It is used to display logs in real time.",a2bc1edd7be9348e5a998feb0886c55d:"Log data source",ddeeaa33ae62ead1a77a859fb79b78d7:"It displays the mapping of the current values. For example, if the original value is 1, 2, or 3..., it is required to display offline, online, expiration, and so on.","844318bd1d58ba0bf7dabbb771174b12":'<span class="label label-info">I/span>',"2fccd71275cdf5d6c0c677ef79dd84a0":'<span class="label label-success">II</span>',"198a96c4cfc64d5feba81b3f931f8289":'<span class="label label-danger">III</span>',"626a0f2fdf13bcadf11581006ab9eba3":'<span class="label label-warning">IV</span>',ce3fd44456123f571e9d083b98da9fcb:'<span class="label label-info"> V/span>',"8b139ce9fa196b602bb1ee3bd25b25df":"Mapping table",a9de5901385d644363cd056482be7517:"<p>When the value hits the left Key, it displays the right conent. When the value does not hit the key, the key is the content of <code>*</code> by default</div>. Ensure that the key value is unique.","2b10dfa6dbdf8775ab2b38fc67e7ea49":"Wildcard value","87cac3a9c9576d9b5bad6639c891112c":"It displays the markdown content.",eb99816b4a216b2eb884cc6194f00ec6:"## This is a title",f6a5891819c67a80c1179c7cdaa00935:"It is used to render the nav menu and supports the landscape and portrait modes.","4cb18f42ea06a97b382397c40ed64fb2":"Page 1",a004407ac524b6d331671fb7a013c3fc:"Page 2","310c10c1fcd37bf760bc15c30f54e722":"Menu management",ba750e6e302292402a4c61ed72331cba:"Add menu",f7a63e1e77fac1bfa05a060d55e27692:"A configuration error exists in the menu, so you need to check it carefully.","7fa141f341e173e2339dcf0ce6869b5c":"Redirection address","720fc47e20be9b7a2e67a4ed808b3bf2":"Whether to highlight",a6ed2640c41d0e3df4acb4f15d37f6e3:"You can configure whether to highlight the menu. ",dc55fd2e990771fd670743ca5dd59275:"Automatically analyze the menu address when you leave it blank","78b7cf23a2b93db1ec36e6c6cfe170db":"Include sub-menu","710b20ff1d85f7965bfaac44ae26344e":"A configuration error exists in the sub-menu, so you need to check it carefully.","02f925f6a5136c2b65b5da8d1216b5b8":"Sub-menu management","59ad4734917af165482774de9c2d50cc":"Add sub-menu","4d25cfe4cd14270af9420acd25526691":"Get menu API","9fc8c79aac0302a60ebc0777183cd181":"If you want to set the menu address dynamically, enter the API address here.","737669a8ef038ebd37fd7b2f3b5f389d":"Whether to arrange vertically","8d79a8cbe0ed37accbe0739024d5d896":"Action bar. It is used for tables.","6c0fe599b36c2a55efd8705681783ee5":"Button set","975903dc39691813530e108986e49ac1":"Click to add a button in the left component panel",c641fe0ae06e6c0547d89fefa91e7f75:"Add button","88d1257b0cf667319085f3e0033b9607":"Button behavior",f10f0be4aa9684eef9d78234072fe08b:"Drawer type pop-out (Drawer)","4f02d2efe05a20232ab9da63c090595c":"Send request","5dfd5a78e2ba1bc8afb482a8745454ea":"Download file","4e58f9c94d345e14e2d69cc8496b7b5a":"Page redirection (single-page mode)","982db3084a2c470d1a9b34efa024511c":"Page redirection",f20d9579ebdc9dfc30a212ae6cae931f:"Refresh target","6a086902a84969a835423002718e86b4":"Copy content",a56c9f13b1566009fdc7640bc551709e:"Reset and submit form","30313d6fa06603604db18086bbcad9d3":"Clear and submit form","0fc26855080a4219bbfad638029a795c":"Redirect to next entry","8ba8a1bead7ca55554cff1c85246ae09":"Redirect to previous entry",c28f4d63beabc4833b17aaa10ca550db:"Copy format","21fa07f18f80bee50695686831ae1286":"Designate refresh target","8a089992349df754f182a5d02de8e8e0":"Popout title",b680997c50ca749acd4e6075cdca244e:"<p>You are right! You click it just now</p>",c3c8422fcecd8c1cc922cba15ab5cbc0:"Configure popout content","262c7c7b9874ae5607fb51da468d0e8c":"Configure content of drawer type popout ","5eb694a4252528628929ced97ca95823":"Target API","84d38979bed546b93c4b3a399844419e":"<p>Content</p>","0cc0fff6eb667b140d3fd06e34a8c69f":"Configure feedback popout details",deb9089ed7ebcacd712117fc4204c65f:"Configure feedback popout content","215f64480a93893fc56c51aeb5d40f11":"Clear setting","7984d95c01b725a2709fb8f5ee330fb4":"Whether to pop up expression",dfa07586a471e24b23fe68e11f5dc41a:"Use JS expression, e.g., `this.xxx == 1`.","47186f00df86d3edad3b5595ba8c2a0a":"Whether canceling the popout interrupts the subsequent operation?","4f21e04fe35d39c79e7779cdf2f4e232":"Whether confirming the popout interrupts the subsequent operation?","0bbc3ec26c36a87c9df3183def6ca9e0":"Whether to open a new window?",d0c3025a64b26e5fbf22005f400c06d7:"Whether to close the current popout?","0c15a924dc3bedefb79c958972bef2b9":"Confirm text","06b13b11740f7663af325bf5426930ba":"Click to pop up this content. You can perform the corresponding operation after you confirm it. ",fa9a0a79f29fef72e3060ea1af93c305:"Refresh target component","437d629f00e62cf99b3ad288f84ade46":"Specify target component you want to refresh after you complete the current action. Support data transfer, such as <code>xxx?a=\\${a}&b=\\${b}</code>. Multiple targets are separated with a comma.",b01f08bf5b9f8e3ef9d49e31d89bf770:"Specify response component",f667748a8e9717498da714d4e5087af2:"Specify action executor. It defaults to the functional component where the current component resides. The action executor is specified in terms of the target component.","80ddab8a52f74d707765501b0caae21f":"Customize click event",babbd439bc04241ed3536f892668c250:"Transfer two parameters, i.e, event and props.","867ade50f0bbb10bac65a5c3bc7895e9":"Keyboard shortcut key","45882ddedb42c1a38462949750bc8a84":"Display a prompt icon. When your mouse hovers over the icon, the icon prompts the content.",ff88d5db9d61f14bce6e3397fd4652a5:"When no value is available, this prompt is displayed in place of the value.","348097cc50579e489f0bcb5433637d3a":"With this option enabled, you can sort them according to the current column sequence (backend sequence).","9db64f772c11c614ee00bb3cc066f46f":"Column group name","19c4f5e98ad302574202de30dddbaf66":"Enable quick edit","15c3796e07e33afc7252df751f610c5d":"Whether to save immediately",ba5a0a1ff2c438ae7719ca48b0ce3af7:"Enable “View more display options”",d689e3c38fdb32c98fb27f8f35a26552:"View more popout modes","6e78b595d6a296938201a3c80660bf35":"Enable content copy feature","65f7e01d58cb5065f49e0e8f48cc16be":"Fixed position","9ed8a4c5d1b3726121175dc986268b0c":"Unfixed","0a5ac2f5c327e28c58d51db967a0e603":"Display by default",a3bd2104e3df81df713de636b907462c:"Trigger bottom display conditions","986a5f50e946674bb91c9408fc974497":"Always",a165f0fe5fb904049f6b6961105e433f:"Mobile terminal","03ee8b948c9b34daca9584811bcca17d":"Tablet","82d9f1f96084674e2b0101ecc04d5d58":"Small PC screen",f4166de371b5dfb87efce228b17a3fbb:"Large PC screen",f8cffd4d3fcdca390a3a3de24d209bb6:"Forced wrapping of content ","4619988f1c5d9093dc00d1430633b2bd":"Internal CSS class name",bdd9d38d7e2929024089363dc8f48b7a:"Column width",b198805e7a6b35830ba813f51db2fdc4:"Fixed column width. Setting the fixed column width is not recommended.",abb58b3bac0533ab4359ed977fa3c073:"<{{@1}}> column","044892c0c637f2d9e78e78956b1ded01":"Anonymous column","59ceff465ad16932d8972191ad815dfb":"Page","54002bbf7eb3da8346dd4be61d642bca":"Sidebar","49400a573b9f7a7bd693f84ec59379d7":"Initialization data returned from the remote request","5d758dc5e33ba0122c256d80c1572e88":"Drop-down refresh",d6fdfa4f989be6586a7a29ea85522f24:"With the drop-down refresh enabled, it is triggered after you stop the drop-down action.","56e6db657d4775698984f883b71cb379":"Toolbar content","4f9fa9ee5b0604d97da73e77fdbc281e":"Sidebar content","40fd4b2a194b2b1284a7f7f738b69640":"Page content","0e82bfaaec104a9f0eeb14820b42e7c8":"Area display","685fae7809f86f9edee4338daaa212a0":"A prompt icon will appear near the title, and the mouse will prompt the content.",ac82acdf2f38faaf293c8690b2ea627f:"Data initialization interface","9d191f6126f21da8222755c14f49707b":"Set the default prompt information of ajax. It is useful when ajax does not return the msg information. If ajax returns a msg value, ajax returns the value predominately.","4e5640b31caf3326c27026bd1ed8f4cb":"Header CSS class name",e656f261cac36cc658e8d69973d7611d:"Content CSS class name","1444bd7ae7b7301b6edf930c2ab8b175":"Sidebar CSS class name",dbe33f485b394a3e77240c530b9965e4:"Toolbar CSS class name","674be25c9feffcf78eba48d53a944148":"Mobile terminal pull-down refresh",e24bc5fd094c7c272725c6340d8aeb8e:"Drop-down process prompt text","717b23399e04873441478fef1cc16d43":"Prompt text in the release process",f59b11ff84daeb60b027dc02490b627a:"Paging component","7cfb5e222a5954e891fba6e3802c7ea6":"The paging component can display the paging of the list to improve the page performance.","9ed7d3adc032f6b78808e7f3786ec9cc":"Total","8e60090c332693095d5852d92ee149ee":"Number of entries on each page","47c62ec10a240c35b8446cc923c5e8ef":"Pager","97b8cf6ae269b6f6d75063073cd565cc":"Paging change",c9fc9b668c08d0e54415c7054d414651:"Paging type","35242cff1266fd3610f124b0e5e76f9b":"ordinary","40e49965594422b15ddd789eef4dda7e":"simple and easy",da184573d7eac6362e01e6fb202d3c91:"Pagination layout display","7c94d517ef4d6633144d5c719d0019d0":"Select to render this item. You can drag and drop the sorting to adjust the display order","65a4ce155100cd7fa671b0f85c1df2cc":"Next page","442d73ebc936d3b74e41b901cce44a6e":"Current page",fe00f5ed371bdec5801ac07f8bb564be:"Last page:",eec5bfeff8012238efbf611fc22c32f6:"Total number","71fa2ba926cd032c0ebe0bcdd5d3eb10":"Number of entries on each page","04519bf3bf428bb1a75938ac65dba040":"Default number of entries on each page","040f05137eb37e880873a763ff653fe9":"Maximum number of buttons","2ee8eb6b1a80a4b025f97fca6afb800d":"Display the maximum number of paging buttons. The minimum value is 5 and the maximum value is 20. ",cd6f79e7bff1337c12c86a15ceedd6da:"Panel",e04a2f1662121e5a3c397d496114185b:"Display a panel. You can configure the title and content area.","4e9bb0326ab4d3a2af94d901c7f1b6a7":"This is a panel.","5bf5f1fd54476671bd6fd9d97e3e6b6b":"This is the content area.",cac3ba71180c97b1b6432833b3417d2c:"Add content in the content area","1fae678397df046c1754092f15a71d98":"Fixed bottom","68744acedf015b8cfc445af30583815e":"Display content area","5a0fbcaaeb439684bb4ae5be579e4cd4":"Form display mode",f99d7e5f15906ca78c45753ee3b04a8b:"Horizontal ratio of form","9970ad07468267e2f309f1467c75bb80":"Theme",fbae87bcc352f6933541fb77a07418ed:"Primary color","540f84ddc0883866b229f71c2844199a":"Danger","5e5d3f13111593b2710673006d4c8297":"External layer","65810a32a98f09be550b0c421df6c540":"Header area",f3b9889baa6d17ec63f05ea7d326bcfa:"Footer area",da71dcbb13405815476cef28a8b9c4f6:"External layer of button","6c5b1f0e8e361a801fa75da070d1cba5":"It is used to display the pure text. The html label is escaped.","67e77a196826a8880e47ad949ce08ac0":"This a pure text.",f8fc21a9fd40881e8fd3d7f15919465c:'If the current field has a value, do not set it any more. Otherwise, the new set value overwrites the old one. It allows you to get the variable using <code>\\${xxx}</code> or write the template logic using lodash.template syntax. <a target="_blank" href="/amis/zh-CN/docs/concepts/template">Details</a>',"83077805e05ac6bedad69b47fca4462b":"Progress display",c77048def6e8a2d6c556a3fcc9c66730:"Progress bar, progress",b1aefb18d4bf96dc283a26d67abc41a8:"It is used to display the progress. You can configure this option to display the progresses in different color.","2dde3029c4170a1c8e961a90766e0194":"Inheritance",ce179eca04fab0d584506b0d19736836:"Linear","2db0fcd5342b479688fd999a0108ef5a":"Circular","3fa8b34a2744f62fe93dd599a275af39":"Dashboard","1ca3fa86d8faa46cc75792bcf90d7fff":"Progress value",b0932e5bb7f7d95e3636d82d1a039854:"No data void prompt","940b12c19fcf7aced0cdd164edc9acbc":"Placeholder prompt","9cf66e7783e4c9b1d74bcd411edb6950":"The value existed when the data field is not defined. The value does not include 0.","2f0faae87508471abce4384b60900e15":"Line width",bd9b3f7e564c9eeaedd72f1bcbb7fc9f:"Notch angle","31a088147dc0006e4775d066980fa688":"Notch position","77a7419dd4fad70c3f3e4b075b2c3fcb":"Display animation",a04564aaca658461333b00cbcd071518:"Pure color","0a9fc7083e2768107fc178ff36f29ba0":"Strip",c035fb9e67c0b566fd5d35889035424e:"Allocate different value segments. Give a prompt to the user in a different color.","23bf030ca760141f317dde1b7f49b11a":"Property table","44f2bc36dacb88424dabf9df71da0e77":"Machine configuration","1cb82ab4f259d5b75da0ae86583b31ff":"Other description","9a4ca43777061ebc91bc64cb994957bc":"Number of columns displayed in each row","17fa61e1da428936a31b51c955a99d65":"Display mode","7fa5c95b26550753b0931fa21cea5d10":"The property is taken from the variable.","6940ea5aa4c18e105cbcd32cbe410839":"Property list",ae41a992ccceb36f83024f72531186ec:"Property name","52dff5b153bb5eaca33a008458ce0209":"Property value","42c3762943823c37b537a10c09765822":"Number of crossing columns ","22b03c024d815ad327e8b95d684ced38":"QR Code","1857d9050ac0527374f4324c0a5ad910":"This option can be used to generate a QR code.",e71377bb59c70af683be127ec49d01c7:"QR code value","57eda9139c0b3bc0605ed4cf303ffbd2":"It allows you to use <code>\\${xxx}</code> to get the variable.",f13c3e0717ea842cddc1402e8dabfb6b:"Complexity",c4bde7dba8c6eed0ca0165b071b259bf:"Width and height values","2f97db95d75280bfedc5afa72d2c717d":"Background color",ebf2453eddf55441b711d187f3872ffe:"Foreground color",d5e6d5c44426a82e18e31eadf7f1e09b:"It is usually used to reset the form data to the initial value.","6a06f12bdf3fc96df6cb45467b9a7c2c":"Service","9cc50da6bb17ea7ecf44c254c9b37619":"The functional container can be used to load the data or the renderer configuration. The loaded data can be used in the container.",c5a33208cf3deab68cd9fe34679edff6:"The functional component is used to fetch the data.","54d99a6a50a2373055c0f66ab727a869":"api initialization data","7a0c222fcaa42473d1c75c113c3641b5":"api initialization completed",acd4bd22755a537431d74b28c3c2ad67:"schemaApi initialization data","5a7d03912f38d0b24d04b28da40864a6":"schemaApi initialization completed",f885d4055567877facf0a3ff376a114e:"Re-build",c8f0e77a9eb5de26e6ab62695d8494b6:"Trigger schemaApi refresh and re-build Schema",e22855f53b7a1ab33e920375c0cd0e3d:"Variable assignment","8b10146a8a896b890b3796eefcc3c6d3":"Update the data in the data domain","47d68cd0f4c3e91a86d23afe8afccfb8":"Service",f754888421621d122c110d83e710e9d3:"Add content","31f8a7a967286a16eb404e3ba237619e":"Data API","54f876a529283de5668426b2dc8adb15":"Set the default prompt information of the service. It is useful when the service does not return the msg information. If the service returns and carries a msg value, the service’s return result value dominates.","7fa237c1b62d04aaec0144d1fc89d620":"WebSocket Real-time API update","9dfeacc54ab6cd6d2ac08df387777f9e":"Initial loading of Data API","98223d478e88ccbc2406412a46dda8c2":"Silent loading","71ae1c76cc4160f8fb76e404e35ca08f":"Whether to display the loading animation after you set the automatic timed refresh.",b897babfafd35cc5d6e66470115c93cf:"Stop timed refresh detection","11bcbff684dfe6edf36e1fd1adc5ba30":"Schema API","8cc3239eba9fe65b99242adb33634b33":"Content Schema API","3f423669b0ffeb3993b95085cd8a111e":"Initial loading of Schema API","8e8aaafe8db0d8eb05e3b11550cbabe7":"Global configuration","7481babe858320dd6a4adcf307fd151d":"Customize function to get data",bfdee34e14602e3113c88a9145843e86:"Transfer two parameters, e.g., data and setData",fb559ab354303d1927dcd9f0f2dffa23:"Succeed to get data","56f0a1c0bc0408556c5810ea4f219dd4":"Fail to get data","29326bcd28fb39bd41e54242fa532c85":"Trend chart","270301455c3de762a7e2b145dac7a8b4":"It is used to embed and display simple charts","44e13bdad8c7eb6391e84d940513b927":"Status display","82a3047196be368be13dcdd2373520ff":"Display the status by using icons to associate fields. For example, display √ for 1 and x for 0. You can customize this block.","774b2bcaca8a64f46c84b510cec89109":"Icon configuration",b698a95f1e217e5465835ee0d23b1b1c:"Configure different value segments. Give a prompt to the user in a different style.",aacb2b36c47395e4b4b409e351eb4279:"Steps  Step bar","863a8583132d087e57aebb7d89e18a50":"Step 1","9757f2c59c17e9aea46e0c8adb69597e":"Step 2","207e30c0e7318027d521dd7c6fab6a99":"Step 3",b8a2d347bdb22fde367a851df8335771:"Step list","59cecbff0cc77511590d2161cc3058e9":"Current steps",f3f08da7f65e1d5596a66cedd7caeb9a:"Start from 0","6bf1f392c0a404d1f7558e6dcdd6c2e6":"Current status",fb852fc6cce168301447d1baff276dc5:"In progress","8797922788916874c39ee1524bbc3638":"Wait","769d88e425e03120b83ee4ed6b9d588e":"Completed",ad8e01fe719bf1a5af82ee0d100d246b:"Error",d1f03ea8d9d3c3a241e8a340b8a384d3:"API for getting steps ","74f0f6730053049f4c9beca2ab00c193":"It is used to submit a form. The form verification is required. If it is in the popup, the popup is closed automatically.",ea2b32f5d78d2305b9b7bc21e056a009:"It is used to display the table data. You can configure the column information and then associate the data to complete the display. It supports the nested and super table headers, coluln fixing, table header fixing, and cell merging. You need to configure a data source for the current component. This component does not have the data fetch feature. You need to take the priority to use the “CRUD” component.","257f5a3886d87d2255206f86b880d07e":"Select table item","6130b1f75d624b2f73f5d923492e92f7":"Manual table item selection event",aeddca0456d8fe520dc95545a83458e9:"Selected row","4f907cb94921bb62a8399adec922bb60":"Unselected row",f3d21138c8ecf5683503c4f814cc7199:"Column sorting",d84464cfb2a5828a200fe9c28a323122:"Column sorting click event","652f155e644e82ebb0a1aed97ab6ab23":"Column sorting name","460e3a697d1680445a47139c0816fbe6":"Column sorting value","3d0b957a99d0c366612c01913e17a0c7":"Column screening",b35963687361af98e6acdc004e87fc3c:"Column screening click event",ad11fba3ac676233f3105e76e7de0501:"Column screening name","8e4b9c88c51aaad1a28a28e8b536697f":"Column screening value","93a5a0253f11e3a2e58f4e87a52fb094":"Column search","6d4c4990ab2c32efe8a17c5f22e10cb5":"Column search click event",a80a4486100baf3f45fab3a59e4a816d:"Column search name",b9a565fe1dc488efae1d63464f277f09:"Column search data","85ddd38957256b6e9026f42ed570bc35":"Row sorting",d7a66def82af88cd5d408e38feb8a65a:"Manual drag-and-drop and sorting event","1987561c006c7192ab619f81103d2a2f":"Sorted data",ecfebbc91e2c18a512aeb11b7da15193:"Column display change",c94f45773a42dc386b9c9dcdc6fa542b:"Column customization click event","70567329ee851a5ba7e7301bd8e9d9a1":"Column configuration event displayed currently","76e47871d654c3b0b0e301c0a076e55a":"Row click",cc13521eab2c7423b3fb857772405cc3:"Whole-row click event","2fbbf5c38b66ac5496ac42246bbe9e0b":"Row click data","8eb3c8b16106e5487cd1fa3b8a1342ce":"Set selected item","908cc16fe4f7972450167e26276ac726":"Set selected table item",a2b39e5a8b5015234dcd8e07a2e00e3d:"Selected item","366a3c07289bd6efb7c2a182f7a12772":"Set to select all",e97c09cd119b64ae0a8dfd42a1d449cb:"Set to select all table items",c3e8652924c258e121eed16414d3a9e5:"Clear selected items","7619ec29c0a854dd49e0a7a47bf1a127":"Clear selected all table items",b94bd878cae4ddc567b00a2dc4f21d74:"Enable sorting","5dc3017c21ae2e31ab127dbde8ec80e9":"Enable table dragging and sorting feature","25915fb58615ba9a5e145efa252fec30":"Automatically merge cells",d7d0936858fcdf4ffdb2899451ec74fc:"Set number of columns","80174cabf025dfe269aee5390b813708":"Set the number of columns from left to right within which you can enable the feature of automatically merging cells. Thus, you can decide whether to merge cells according to whether their field values are the same.","14921c3831512876f6d58b2a497b86df":"Column display switch",cc42dd3170fdf36bdc2b0f58ab23eb84:"Enable",b15d91274e9fc68608c609999e0413fa:"Disable","6fe0b71c07a5ce5f7a09f7fdb1d63827":"It is enabled automatically when there are more than 5 columns.","2206c0e11aa5f4f154aa9e5dfffcb474":"Whether to fix the table header","5006fdc5659989e42c3855c17c57f878":"Whether to enable the bottom display of a single entry","9db359f376a1a588ef7dcbef53cc114a":"If there are too many columns, some columns can be displayed at the footer of the current row.",df74194830e695efbfce16c0c64223cf:"Default footer expansion","94be543c4fd399f0839211464c8583ce":"First entry","9a7b52fc8659f1786907fe93efa85bf7":"All",b07deca9076bd3354b1b2709d58d725a:"Fail to expand","76b3250fb1e8593fac075b64029300fa":"Row highlighting rule","1fe38acb67e766f7767d9f8e88bfe990":"It supports the template syntax, such as <%= data.id % 2 ? 'bg-success' : '' %>.","734ebf8b33422c456e937fc27c9a16ce":"CSS class name of external layer","320f489db3dade075d69f155b346f98b":"CSS class name of table","08ca0d502abc4336855d837f281caef4":"CSS class name of top layer",b6469055adf2b7bfb187f74ae17dfe54:"CSS class name of footer external layer","39ff38577b97cf98fc130f9bd596d4c4":"CSS class name of toolbar ","175e01917d9d4891a40eab43f4487030":"Table view","9fe8304dade75a37bc04f45515688325":"Display table type","2560b304e691da78ee2e02f5af9b494d":"Region",f7d29dfae05b5d049b64b040b14d9a00:"City","44e7ebb4007104495dcb7afbbb6778fb":"Sales volume","3f0cb8b8c238c3b4e08898ce6d449c8d":"North China","692e92669c0ca340eff4fdcef32896ee":"Beijing",b8b75a5f9109919ff3f67b336b62afe9:"Tianjin",d1c2b2d68063b4a57af61e3027861cd8:"View width",b32ec25f2bdf7b2eed5e947cf82a4fde:"Default internal spacing of cells","8a42ded5c9d58f3dd9e3a8968ec04b34":"Display border","9b4bae5d8251de0b6f00b704936b00d3":"Border color",d273f56b3e598e794c3480f1e62f3ed9:"Cell {{@1}}, {{@2}}","466c65230ac92494c3af79757b4b78aa":"Row {{@1}}","1ebd0cd417700f3f4a7ee5f64518fcd1":"Cell","4d775d4cd79e2ed6a2fc66fd1e7139c8":"Display","7ec907e7059b758ace2f3adb9bb803ff":"Text color","104711e38d3cd9335dbd1f4301178edb":"Text in bold","65194da33aa3aa1d0fd08b5690af6f26":"Cell width",fbd9998b10e690230b0f2fa9b24087ac:"Cell padding","0bbc2ea4e1d1f23feb576de5dca1ce3b":"Center alignment","4745afe0f89f665e41adf819da5df1b6":"Number of horizontally merged columns","7c2e1f863e86715e892f61a54e558b20":"Number of vertically merged columns","5a431ad16d8f7f23fac3be5650e51caa":"Row height",db439b129f3143e14a7024f08ea3732d:"Row background color","30d6ed36667cb98165f07c59702754ea":"Grid","49d45317662097180e27fa53235d9b13":"No corresponding td id is found.","013326241579b9b2735756f2204bf8bc":"No content in the column I",a896691b72032fe21a00b6487381a529:"Add a column on the left","24e4bbbf29a8d31e711c8d9366bf1a6f":"Add a row on the right",aea2dd682bc9dc2974dd971581148459:"Add a row above",bac058b86f8fd4e8f5e2ef3807799aea:"Add a column on the right","488d0742c010851e9c6ce3264df9542b":"Split cell","9377e388f7189d6103a3985a321115c8":"Tab",a8b1273cb2d53ad858906ff9744a9891:"The content group can be displayed in the form of tab to reduce the user cost.",f78416dbd6c6a40a3ecd1c1f2b0672c8:"Tab 1","9769ee568100b0c530a06ec3f0c0044d":"Content 1","4be268145385303e8ebeb480458a380e":"Tab 2",c50159e2acff0f4ffdce4c67ec3513a3:"Content 2",c8794c58d0eb020ca40905d1904d88b2:"Modify activation tab value",fcd3abb110aab48ebd0ac2a1d7040d6d:"Modify the key of currently activated tab item of key","9d000284174ff09642502803887f28ed":"Activate the item ?","29645b509093191cad34c673c1b3efb7":"?","9578012b7d75a3a47c76acc176caf403":"Active item","3ba265c6b63bde0319822afd6b9a649d":"Title prompt",b744b72fd649d904e561358fc26c455f:"Pop up the prompt when you move the mouse to the tab. It can give a complete prompt when the title is too long.","6e7fe62a865cb9ae90e52f85f4c6b8a0":"Default tab",a8986713e2b83c9ecafe5b107c09b68e:"Display a tab by default. When you configure hash, use hash. Otherwise, you need to use an index value. It can get variables, such as <code>tab\\${id}</code> and <code>\\${id}</code>.",acb839aac679bb34be9b4b49806b74a8:"You can use <code>\\${xxx}</code> value. You can re-render the configured tab dynamically according to the data.","5b9af1bc3012bb3c8e07b983b423ec17":"Render the content during the activation.","4bcecc15d16e8c851dc3d155b8f30929":"The content rendering can be conducted to improve the rendering performance only when you activate the tab.","12c6a62683d63e404d71a31c9cb5209c":"Destroy content after being hidden","5b52bcb62a2e1dab99ef841b05395b6d":"When you destroy other option cards, destroy the current content. Thus, you can re-render the content when you activate the tab again. This applies to the scenarios for getting the data when the data container should be rendered every time.",ecfcea4b381d761fecd512761bc07954:"Linear",b30f254eccefa14c9980235bcbec74f9:"Simple","3d7443aeba7c8eaf1cbb42ad5232fa10":"Enhanced",ee5e5a588705699a51eb3c5778c3020a:"Imitate Chrome",c5b8044dacf2e63931d85e5e307a9168:"Horizontal fill-up","22d18bf0c476ebe7aa9303108677ff2e":"Selector","5bff38cb05e3710a0c0cb16ed3ced78f":"Sidebar","593c1c61592f80831f58b2e44cfe63fa":"Title area position","030c8cb75e9707285b28c4931bfeddc5":"Title area","32b4bc87bf7f95cd6094992f0135ff7f":"Title icon","996a919888ae86e842c76245daae2360":"After you set it, update the Hash of the address bar synchronously.",f3051dd9b3538e170322fd5224b28de0:"It can be rendered only during activation.",ee51f2d49fa12c730d2a0efef0d67e44:"Its content area cannot be rendered until you select the tab. Thus, it is possible to improve the rendering performance.","024f24defb08c5c9d463a2668cbb9802":"Destroy upon being hidden","370bb4d6806c88a7df2ac17ca2a7b6a6":"Disabling the tab leads to the destruction of its content area. By configuring the “Render only during activation” tab, it is possible to realize the re-load effect every time when you select it.",f6724322c613ca164ea9a9d03e9055c9:"Card {{@1}}","8a471486c6c7bbe43e14392c6b127aea":"Asynchronous Task","4f58f808d62c4e31c347e483898396d5":"It is used to show or perform asynchronous tasks.","9ee043b0a77a26d22eec0f4ea99afbd3":"hive task","2c8a99d35cb5704994cabcc61a4c3a4a":'View details<a target="_blank" href="http://www.baidu.com">Log</a>.',"3709f71c9552ed5db76cbe8f3cb5d4be":"Small traffic",c60ad696dee4e1eeff6f0f2c2e9b9fc0:"Total","5c0dc424442c913c6d16a2cf43137da4":"Initial task information","78caf7115c5140f8913c581920239f22":"Task name","3a3778f20c0e1a55adafad4861a71216":"Task ID",bc7e74f7ccf8ed6fa5b7b7649b221daa:"Task status","1d35dcbf191e36dcc6c15f71277d72ed":"Task description","76ba17faedd82297d09b2edd70c5914e":"Add task information","093bcd735847b8464d683464165adbb8":"You do not have to set it if the detection interface returns this information.","7dca021cccc260dbe1d81dfc6b29f513":"Status detection interface","358e55678114f19424efbb42c0a927d9":"Timed detection interval","77bd60ba17a73ede5d81c4eeba0f830d":"Submission API","1e057692fcf81e07e20b5f7c9073ea35":"Retry API","24e3562a3262e80c3119f22b8f447f64":"Title of task name column",cb8e07cea4df337bb6dcb8362b5f7e02:"Action bar title",f2acd3adcc0a0d73b318c83a29a4d2a9:"Status bar title","8a4cf07caf84c91a87e8ff3c48a944b9":"Remarks","0cbbb89050458c2bcf0ca98c19dc8864":"Remarks bar title","879eb99c7b1aa3223925b9b2dbad4c63":"Launch","804b6382fa6d8b53c5a2a409f30f7fe2":"Re-try button name","132c5cdcceb0f1f17c8c088a42959aa4":"Try again",dd4e55c39cee201b82dbc9cb2aca173f:"Do not get started",c0d2181d579cd1e965ed10d5183b1fc0:"Ready",fad5222ca0acfaee54f06458188d916a:"Completed","7a4b9e6f14bda48d2c3bf0fa431bd2b3":"Configuration of status label text",f198581dbbc357ccc0283cfe02d56edd:"Initial status code",d6bab2368de31490741ed95f732aaa25:"Ready status code","6eafca9359acbb0bedcf86d6b8609e41":"Status code in progress","7e8b2e41a303cb8532b9ad2006da3c25":"Error status code","231b6f799949f9a743d5193006a15af7":"Completion status code","003797f6b66c67cd87ec684cacb4ab70":"Error and retry status code ","89d19c1fda4906bd7a336895835ce20e":"CSS class name of button ",c52b46333f6d5d2796ee64cb359cd58a:"CSS class name of re-try button ",b091a100499d48dd4ccf0b982aa37d68:"Configure CSS class name of status label ","7ac24322bc8eeac88db6823942423ac3":"Time display","82315a0cd63e7f81233ad804e0d02deb":"Time value",a389ce9c52a94bbdd5c7fa84af85348c:"Display time format",dd438f6fb09d6223fd95df16383f0f44:"Text prompt container","33813749a95477897085e2435acc16b6":"It is similar to a container. Multiple renderers can be put together. When the user puts the mouse over or clicks on the container, a floating layer for the text prompt is displayed.","9b14c9051067bef2dd9a15683201dd18":"Prompt text",ab97cef55407efa11f79211e17cb2b4b:"The default configuration is “Mouseover”.",b47707f0e916e3e3f4ba885bc2cf2c11:"Theme color",a32b3b848eee6929634dfc9a9d8bcdb1:"Bright color",adb7e5312abdb9a44297e48d63815fa3:"Dark color","0de826c66ae3fe8043e9a39b35616ee6":"Container inlink","4583d3453c31cd3ff068c1358d8e7f1c":"Click the area outside the container to close the prompt","8e290c31bc0b4f76edbd58c3575b8420":"Floating layer offset","03c87fc8d49f865f0c2895d9ef3fe352":"Prompt the offset of the floating layer position from the “Horizontal” and “Vertical” position.","4e3e1e12e701890f4461808cc8f9d407":"Can enter the floating layer","9d6246f57f6924410b0c68f2172420f9":"With this option enabled, the floating layer is closed after your mouse is over the prompt floating layer.","90919000a708f8d66b7591e21b8e33f1":"Display floating layer arrow",ed81f127f3b2aaff73a4f4dd5968fdcb:"With this option enabled, a prompt floating layer does not display the direction arrow. ",b60e5222037939812dabb7da9979c27d:"Delay in enabling","82bb338503938f2da52e91f7244a34a2":"Delay in disabling",d55c726c99995e106ba5f3bb2b791a86:"CSS class name of content area","0ce2605d7eed6782adb6bc62ffae2335":"CSS class name of floating layer",edb5acdc9ee5e75fbc238ab4a0300eaf:"Text content",b1f824deef0d11e1fe3b73167a902e31:"Text style","74cfa7e77be335e8e5489a00ef099cb9":"Ordinary text",d482086f653d92fa8f1011d39738dba3:"Paragraph",ae27115431c46fa374ac28200304f341:"Level 1 heading",de86106d6632da3fafb946f85ba91324:"Level 2 heading","27f2c5c60f373a4380ec107ad8895f0e":"Level 3 heading",c961174771e843ac4046b2b21c49424b:"Level 4 heading",a791de104833c917f801c1976b9af960:"Level 5 heading",de2687f9a16fea3654be84c74137b805:"Level 6 heading","65862c97143c6c5479e0c623093a25d6":"It is used to display a text or paragraph. Also, it supports the template syntax which can be used associate the dynamic data.","38accbc34901ee6fd7bd7cd9f92f0a2a":"This is the current time of the template content <%- new Date() %>.","590e147e49735ebbfc51ae2175c36eb0":"Edit content","47ae015d04dda362d066e4f9ac09d647":"In the inlink mode, the <code>span</code> label packaged content is adopted by default. In the non-inlink mode, the <code>div</code> label is used as a container by default.","7fcf42edf5817042904f4a122ff77582":"Video","1d5bbe0ab0d90a223c162fb375997a98":"The video control can be used to play various types of video files, including flv and hls formats.",f50bc38cf567e68250a8d15edfd8eb27:"Video address","733dda7842619a437b2486f6f71b0c10":"You can write a static value and can also use variables, such as <code>\\${videoSrc}</code>.",fb103fc64a0caeec24c707b9e7b50870:"Video cover image address","828f83110677bab8ef940f79f77b9049":"You can write a static value and can also use variables, such as <code>\\${videoPoster}</code>.","351cb1f8ffbcc9d2d4c1f35505e15864":"Mute",c7638cec349cb86eaeaeb983909fae0e:"Live stream","82f5f7bf3fb529360947cbb3b988037f":"If it is a live stream, select it. Otherwise, it may not play normally.",df0134afa26415a560ae1320dee10c19:"Video proportion","0d682d277649d8c7952d36f836619a44":"Display cover separately",ee1600dfbd6f9e86ca8761cf3fcf6a17:"Video rate","8e7124c3069460d4a8a04c3e3d9ce752":"Video frame information","1fc7d723b3a82ce32bfbbfa0a1761969":"For example, enter <code>\\${videoFrames}</code>. You can search for the videoFrames in the current application domain. If it is an object, a video screen-shot list is generated. After you click the list, click the screen-shot to redirect to the corresponding frame.","1fa035e78c5408c9079c20637acdb2bb":"It is used to render the Web Component.","8df7c8a1f9f579f0ddc35bb4ee50f166":"Package","5acec91385a3b9093e3c803f6b0d869a":"Wizard",c8c0339a6f9e105cfef45b76b788b635:"The form wizard can split multiple complex form items into multiple steps. Then, it can guide the user to fill the items  step by step.","155149d24d20197bc0836bededf63abf":"Click “Complete”",d384a3c931bdf315e4760c9fc5980e6d:"Be triggered during final submission","335d6c56c43204f9efcefe36f097d35a":"Form data submitted","5be9e21eb0797c9faa053eb0237c36f9":"Step change-over",d837ddaacb39a13806590da335e89397:"Be triggered during step change-over","02f706d7510e68c96aa073852d90ec20":"Step index","33c627bce8015c50152941a5b6fada32":"Be triggered when the final submission is successful","574f27f7223c86545a7724d18da96651":"Be triggered when the final submission fails","8a427977d8135a019e4f1056120bfad2":"Submit steps successfully",d65dcca33a0118a0a5ce343264192ea6:"Submit a single step successfully","5d7d91d9da162ee8fddd4d331d1434b5":"Submitting steps fails","1c11d38e7ecf2facbf82f772d9222d45":"Submitting a single step fails","357954d848a9e2f12208673b3906a972":"Error information returned after submitting a single step fails",d6c21651c32c63c8d61c85944c2c91af:"Submit all","75e3dc4be4ae7aca7e1cebc13f7e486a":"Submit all data","0c3005b490ef428660ca2265a714bdbb":"Step-by-step submission","832efcc5c30746b84b910cde8630d491":"Submit the data of the current step data",eeb6908870e058bc23d52c1e405a054e:"Previous step",fc5dbc5789e158384f634eb8ff466b46:"Return to the previous step","38ce27d84639f3a6e07c00b3b4995c0e":"Next step","5fa57cab26a9d4e659c2e497018729ef":"Positioning step",fce22163929e8191b7de43699316f2a0:"Switch to the specified step",d529f7d5ed8956cd890173b4b5045a67:"Switch to the step ???","4a0ff5106d129883b446a29b1dac6f47":"??","78ada959bf5bdd6c70ee411c4cf23601":"Target step","098521c027a49fba5eb7f35430a6a9da":"Setting steps",c5538d5c74235d2988e51e632c4eed0b:"Add a step",dda36edbd4626e7fc868c14f9aa1556a:"Other settings","1fd41e410930ac58e748f7704c3a05f3":"If the API returns the  <code>step</code> variable and the value is of digit type, e.g., <code>3</code>, redirect to Step 3 after the submission.","938b484df1447d8f01f96e45125eb031":"Whether it is open or not","20022725ac2c53869f7af6646ca4ba29":"An expression is used to decide whether the current step can be open by clicking it. Additional available variable: currentStep represents the current step.",d4b8306441c00f01d4f044b3802c4266:"Default start value","37c0c041a0ad487d23c9f42c29f6d5e1":"Get started from Step N? It supports a template. However, you can render the template and set the current number of steps only during the component creation. Then, the current step cannot change according to the startStep when the component is refreshed.","076bd7c0adfc4f5d2abde6b309d9f53b":"It is used to initialize the wizard data. When the <code>step</code> field is returned from the interface, it is possible to control the default redirection to the Step N. Note that the value must be of number type. When <code>submiting</code> is returned and an asynchronous save interface exists in the current step, the wizard can initially enter the asynchronous submission status.",dbb19fea1965f7ef88cf1d1e0450c0f4:"It is used to save the form data. In the last step, click Finish to trigger the saving. <code>If the save interface is already set in the last step, the setting here is invalid. </code>","0f04a65952b58cbbc5ca6cba868c3bec":"Previous button name",e54827ae56fcb690d879b9cdd29f0ac7:"Next button name",abb7ba84b95c6c90341ac9c883fbc85b:"Save and next button name",bed196af058f458def957031f88abd09:"Save and next step","81b522590d543401ad15ae8a9155361d":"Finish button name","22c2aa6b59ab30c88fd84e8e5b3c4ad7":"Previous step","7b91646d808737e7138ad8f32a3b6cde":"Next step","52b36576f88c31ed3971ca4d1fccd46f":"Step","8164ad50987e0508caf7638c663f8b7b":"Step {{@1}}",de5e232d10e2fa6218259289d4de4835:"Similar to the container, the only difference is that there is a layer of padding by default.","3954d7a9c047b7522ef92ddd5fc35852":"Padding","315dcc9412a4499cf846736fdbaaa72a":"Child node","5db7ca044a5179bf05428b283ac0452c":"After you set the style, the size setting is invalid.",c5e1f01e3d98b4db536765ae0d5b91a9:"Click “Select”","7c57a563ab87bc6eb5edd8f5b953f499":"Interface setting","6aa351f5dacd13d3d862d9c93e4a0241":"Sending method","8dc91bca9bc83efea73150e3478657fc":"Sending conditions",bf9e242338d2c26b182aa6b9c015d84c:'For example: this.type == "123"',"91ee84292a5bf5e59d3b6309f948f2f1":"An expression is used to set the sending conditions for the request.","55409342e28d37db86fb23efbd84a025":"The sending entity format is ",e06a14abe7ef66a8ead143db4ae9786e:"When a file exists in the sending content, the form-data format is used automatically.","773a0e8384fd6f784088b829d7cc2f68":"Whether to set the cache",c1b110f13431df9662299f26def71df1:"Set the valid time of the request cache, which is in ms.",a18ea11244325dd3d20c5988bc7f6e39:"Download file","68caa6082eda1745aa3f6b6d12efe423":"When the interface is for the binary file download, select it. Otherwise, the file shows unrecognizable codes.","91831507074270c0da8a31ad9ff87495":"Data replacement","42be3061671b38468cc6ac84f6a0dd77":"The default data is the append method. After being enabled, the current data is replaced completely.","4e7c006f535b13b9737ac310bc34193a":"Initial loading","3c743b8b2d662421117a2fb1c445425d":"When you configure the initialization interface, the component fetches the interface data initially. It can be modified according to the following configuration.","713ec76479b992652ed39364d3d03870":"For example, this.id represents the initial loading when an id value exists.",e5e3131aaf96b6dd10574bc9beeaf934:"Timed refresh","81fe75a5216d4f612f1809c122f5145a":"Timed refresh interval which is in ms.","83f16354dd1532422dc8b3581d096e7b":"Stop timed refresh","620f826a77f079c5683a9d3c59461ea1":"The timed refresh is always triggered once you set the timed refresh successfully. The refresh proceeds unless and until an expression is given and the conditions are satisfied.","90260d55567cfd97ec2f085963a60bcf":"HTTP configuration","9ae7a582479116d4cb41e828fbd59798":"Send data mapping","0fcbf036057c6dd88b7b809daa0c5eb7":"When the data mapping is not enabled, it send as much data as possible when the API is sent. If you want to control the data sent by yourself, or need additional data processing, enable this option.","5414824fb8efdb7d59beae4bf95fdefd":'<p>When the data mapping is not enabled, the sent data is automatically cut into the whitelist mode. Thus, what is sent is determined by the configuration. Bind the data, e.g., <code>{"a": "\\${a}", "b": 2}</code></p><p>If you want to customize (???) based on the default(?????), add a Key as `&`. The Value is `\\$$` in the first row. </p><div>When the value is <code>__undefined</code>, it indicates that you need to delete the corresponding field. You can combine the <code>{"&": "\\$$"}</code> to achieve the blacklist effect. </div>',"7dd590a9d9e783e980d318bd52891905":"Return the result mapping","7e295b6ff39ec7356e06c4534bfc4fb3":"If required to process the additional data for the return result, enable this option.","417125a06b1d2bfff025e83a4e067bf0":"Sending adapter","62efcb25e5b21da47c09780119da3458":"Function signature: (api) => api, The data is in api.data. After being revised, return the api object.","6eb8944029108ad3b6bb3572a648fafa":"Receiving adapter",e83cbec70e17988749c4a02a3b73f55c:"Function signature: (payload, response, api) => payload",be47bd270e7756d4233e59bbe4cd5b96:"Request header","9e8c8bc795ad25fc992cee9d81a8c46d":"You can configure the headers object and add a custom request header.",be604f8b7ec5e80288b091ee12bbab7f:"Point","9adcfe38533f68035b2bf7831d310381":"Ribbon",cbc608353218e1d63e6f47c9db1eae64:"Text content","2613e43b46ca52dabc232054c1611c80":"Corner mark theme",d8c7e04c8e2be23dd3b81a31db6e04f1:"Information",e4f10a8916d4c5375529e21d9b66e5f9:"Corner mark position",ebc556841a9264ebaab728efad7af777:"Offset","81cdf47e8d8adfc70faac2cbc55e4067":"Offset of corner mark relative to the “horizontal” and “vertical” positions","7ba3812c61e01b3049404a46fac8deda":"Customize corner mark size","29e13ada94b145a1359291d5e1564655":"Capping number","42becf09dfd209746b66726e7d21d014":"It takes effect when it is a number in the text content.",b599979e9a40823363451aeaadc0723f:"Animation",b8c467fce096a649583c0bc9d9281a5c:"Corner mark",e35abd1e31f244eb08d1f62e6f825df2:"Bind variable",f7d2996639d97b4a03fc0e40e2eb853a:"Shortcut key","71dc8feb597052ecd0e73c9062eecdeb":"No configuration",e8755fb1e985a5d26df0fce1f0b7b0f8:"Add option","51d8a85a3c59453eed398eb8f5d35585":"Select default value",cb73fbd12620c6ff4d7e5d1047c3be4d:"Enter static default value","303efd5ba79e639001b4328cd266dddc":"Click to configure expression","7d92f998d24da41b58db140b1864f773":"The current expression becomes exceptional. The loop reference exists.",b5cc1cd60cd694f45142dc52a5bf53fc:"The numeric type do not match.","01820262aa9ad5b130f8f5b86bfd2968":"Customize option",c8158b3cad598b0b5939788ca4efb298:"Get API",b4fdf79b8f54856b072ec3874b830d1f:"Enter display text",f4ab507e2fa2d2bd66bcdeafd9fef797:"Keep consistent with the text by default",aafda9e8f6b7b613680677c513edb7a6:"Cancel selection","0560b060c438e9326f92718ccbc3f95b":"Select this item by default","5d26b8a41e805204c9dcd5ea7e23b150":"Enter text or value","22de6ef85ed60ec54dbdc1d8583e5104":"Add in batch","421252e16c6cb544fe9ce0be94a190e0":"Add options in batch",c130bd5b55edefdaf8923269e9a52439:'Each option is listed in a separate row. All items with non-repeated values are added as new options. <br/>You can set the label and value for each row using a space, respectively, e.g., "张三 zhangsan"',"1e2f96a69fbef8caa8823a3067ebbdc7":"Enter option content",a4f1ddbbfc96930d24e4b54cb815b62b:"No option","5b4ffa2eadaf629b833b37a3e8742b2c":"No chunking","3569877e498155b59ef5299870c43f80":"By average","15e1fdd9d5cc4dc595fba0eee0719cba":"By step width","56d37871117270ce5d157a8de90dacd6":"Keep consistent with the chunk","6903085e7f31286560e4a2e160beac42":"Chunk","7145575ab9e3b4529eea61fe5fe76d0e":"Number of chunks","1c8737ec7da60e12207c9eb04ccabcd4":"Add chunk",dc4c91dfaa3b760147bd92e648560af4:"Subscript","662d8b49913650f543c024d4d02009a2":"Add subscript","69fbb2e5fc9eb3ba06096cbedbf5a622":"Conditions","8baf21fa26d6d24b4faa872953275d8d":"Static","8494b2036d3ccfe6102e930d9d8a3397":"Enter {{@1}} conditions","311f6d1fa5f13b0e280d7b3c9d40c5be":"Expand more","38aa9dc2a0f14555322061d2ff997349":"More configurations","355c54009e364bf4396be424fba10e0f":"At least retain a node","9046ad86a1a47f16e954f2ec38fb680a":"Because the level is too deep, it is recommended to use the [Get API] management option.",f69608e93e9728f4fbef583bfa1326c1:"Option name","684a0d1aeca4e9acff89221b57826d4d":"Option value",bbcbe681f9225f8adf3663f563a9f294:"Add sub-option",c08dbaf90614532aed9f526e58b7fef2:"Option management","442781667396d6eff51113f482d89e54":"Add check rule",d7a169e81b60ee08c82b5d9de473e362:"Error prompt","9d9cf35ff82a6d960538ecd650e09945":"Default system prompt: {{@1}}","5ef6ce89f52b4331b080a0f3019414f3":"Use system-customized prompt by default",db1cac8e2f6206e8f179b1ff47a676df:"The data match fails",e9908cdf79e965f6907ce9f291cdfcf8:"Action configuration",be5fbbe34ce9979bfb6576d9eddc5612:"Save",d1d9049139d870edd490215530d90458:"Execute action","9eac7e07ca0a3181766e5ecc70d20727":"Search for the running action","0174bdde9517fa331bf7d716a553e023":"Action description","0aeca07a02601a8e701a46d1a8b5ce43":"Basic settings",da1ed600ce65be863766444e60c2da05:"Execution conditions","13b2de1073f76444c49d2c6a21e46e26":"Execute this action by default",d80bc0fcbfb250480320b683e48b1467:"Select component","07682f1424e400c467accdb556d59e1c":"No configuration content","2e3ca80a58643bc28e87cc3b17bc9d80":"Execute this action","7030ff64701a938becbc5aa67ddb86e8":"Error",dec2eb7145e149f281cb7e75fbe8972a:"Redirection link",ae10a948eca808b3dd77506b24f3fd0e:"Redirect to the specified page",c7a34a3465d1beea2f85d53edcff8235:"Redirect to","0b72392143e4038e98128cb0f6f679b3":"Page Parameters",c068b579db3bf0a553bd0af4f81cc14f:"Parameter name",bfed4943c5f487de1b63a82f7230cce2:"Parameter value","56aa76ab3c987377e855ae2c6c612050":"Open a new window",fd5fb471ecce1eea63a6a95b6707f815:"Open a page","67e21dd387607ae3fb59846504fa2c4c":"Open the specified page",d7098f5050f017673319c5db1473ada7:"Open","39e107b7c4aa580f913ccbebc00f7534":"Refresh the page","261242fe62b18b620419802c7dd7da7f":"Trigger the browser to refresh the page",ca180138a862543561d3a2c4f08b2e1b:"Return page","5f6b9e7a050ae3f34b38191435e14b24":"Back from browser","27e0ca877865238aad6940481b2984d4":"Return to the previous page",f80d12dcd65429fd28841e768062d3c2:"Dialog&Message","0561589c26e732981f29709a9b574234":"Popup","256dbc5161ae393ec8a0e83ae6cf9469":"Open popout. The popup supports the complicated interaction design.","6cff4b6d794cc17f5d24dbe0d21e5732":"Dialog","507c1d40c5d6b990cf8c832b0a91cadb":"Popout content",a532be3ad5f3fda70d228b8542e81835:"Configure",b67cbb1ca7439053f06d59aac5e410dc:"Drawer content","3b02248ca3790e356e47b6900c0e3931":"Close",f33c2c6ff58bcec40d3e74e591bb3df2:"Close the current popup window",e495f416b83e4c7ff3c66ec3be96a76f:"Message prompt","61d7aaa88181c527cfb936d4c686d267":"Pop up message prompt","4e5242a645864528e10f04dc2326a5c4":"Message:","6d00710a2528332bfcac14b58e412042":"Message type",b87b77561e776367e6756e11ea652217:"Message content","43ab9af06e1e0f0b2a8767b46cf8b1cf":"Title content",f41a94bb85c5223181c4cdf83ea9021b:"Duration (ms)",a0a837f2873de80bc9ec353c30e73171:"Display position",f3296f64a8a1330d7a07f1d269a1db92:"Top left",b97a5adf068bee6c852db9dcea3a9799:"Middle upper",eafeba264b6338939f11f1b1adf40d2b:"Top right",d429ffb093e9aa3bf80da125f1be318c:"Bottom left",c241aa8f427118a719b94cbd8f2bb22d:"Middle lower","9cd707caffdfb314d939298f2f2c267c":"Bottom right","8c8fbec263e20f087555c9abcb6dd07a":"Display close button","3f3a016027e540ef10a16dbd49fffde9":"Display icon","0cd902f953656adb29985b68e6fc9754":"Configure and send an API request","1535fcfa4cb8e4d467127154977e9788":"Sending",c14a21300b61bb83b4420a1586497951:"Request:","88bdaf32c27ab169d3d686b86b3fae99":"Configure request",c5dec2a8d2308c1c15ec2e5441fd721c:"Static mode","4abbdba4b6b06ce00702a255bd89c92c":"After being selected, the service request is sent in silent mode. That is, no success or error prompt pops up.",e3b49b5bbbdea05598525e91dbdfa638:"Storage result","4dca05af026848011eedee1b53efa61c":"Enter variable name of storage request result","4da82260041107e5780bcbb3a14ef791":"If you need to perform multiple sending requests, you can modify this variable name to distinguish the results returned by different requests.","0d83078816aa273f2941c9b55ec82bf3":"Data","3f9e257178738d5d180ddc2996809c10":"Status identification","99c74120cc62f4bf31d661e3212b7121":"Prompt information","89049706952412d790b801def284629e":"Trigger download file",bb79667f37035e9562ec6bcffd6cf8ef:"Component",c852fb60f1b8ce921c3def1eba000bc5:"Component visibility","1bd4cfded5e11a7a8ea4dcfd2fa17e15":"Control the display and hide of the selected component",dce5379cb978a8259ecfca8f08f00817:"Hide",edf25860e3d457eb8ca9cb5dca06dfd7:"Display/hide","12c8d50c55eeec7059ddd5c303e34f77":"Component availability","5e75800641ec5c1198092bcf9d34f180":"Control the enabling and disabling of the selected component","7854b52a889b3ef0590d9f542efeb4c8":"Enable",d86d5919f595226b7a1e8264635ca23d:"Enable/disable",c5a9b6e8c522de8a14ad7fab51c1a1e3:"Refresh component",be4b778e7f5aa6aa5a811d7db4e1a8b3:"Request and re-load the data of the selected component","694fc5efa9e1d1c2c5eb6525e1c7fb29":"Refresh",ea4d3723b350b2cb8f4c1a615e1b7df1:"Set component data",cb7add16ba6f0cd65d5ddcad71359813:"Set the data of the data container or form item",b91ebe714155c83b6d3bc02b675a31e9:"Data","08ce6e74bb4a64753f1af2e5c836debb":"Assignment method","139294edcce271bf483dda437c421c29":"Designate serial number",a7b0b80a7bea1e5e973967c179866ef0:"Enter serial number",e887792fbbd65d21e43e832a5cd63aac:"Enter the serial number to be updated",e3a6f648390842e0c7aa82d0f2c3f6e3:"Field assignment",a25657422b40023f2731619587940bc7:"Variable name",a33903526e8fb3d1ac3066da70e7941e:"Field value","82986a4cab1d0efdbc23b3ac5f0fd509":"Clear form data",f457845da8c119a8688e333a3554284f:"Reset form data",a84a1311bea7370f1749341ffa6f75e1:"Check form data",b7579706a363e5f23b1040fecfbcb677:"Check","51325230409d4b7c64aaeb3db9904801":"Component feature action","98d130cb9a360df782f6510abacbc022":"Trigger the feature action of the selected component","557d01c07aa7c4450a414932e6c1ed2a":"Copy the text content to the clipboard","5aa4369ec61715ddef3641992fad0d4d":"Copy content:",ac04259507be8ba6b891dc9dc208f491:"Content template",c7f16d729f3bca8f6936416884a74fb8:"Customize JS","1b5a6299ef404c1f7b4292c290b80f55":"Customize action logic through JavaScript","9a2ee7044ff04234a8892a13583d14b6":"Variable value",fe9e25f4e4b3aeefeb9b7a9c368ede7e:"All data","186c8d63db1c09c38bcfd048fb15846e":"Scroll to previous page",d9b6b8e29d63ac6bb7a0381e994ebcb5:"Return to previous step","47b9cbf9f3a3f08264b19f4a1228e865":"Scroll to next page","211ae8c8666f8b803282a74f90fb0dc6":"Open prompt dialog","56eafb82d11c72b65efe07b9bedb5c19":"Open confirmation dialog",e777eb796f8a02e97a891fde43d10ce4:"{{@1}} variable",cc6aeb073ebc3cb29734a49164f8964c:"Page variables","979a50681e278dcc0be18f68459e8217":"System variables","8deee3cdecdf06a05d22fcacc7031492":"Component action","9654916723a8d1d82f5ab9d2911edf93":"Tip: After you add the following event action, the following event action should be done earlier than the old version action. It is recommended to you migrate it to the event action mechanism, helping you achieve the more flexible interaction design.","88f7a3aef4888dd507482aedc02bb808":"Configuration action (old version)",c500cfabdec9b2761fe9f1aa543933eb:"Action",fa476b76ccbd4ac9316f0fd80257b77a:"Reset and submit",c0a8088f2bbc993500c5a01b0f0a1887:"Data source variable","71448f8c10c79b32312b7e3abe9104ef":"({{@1}} result)",f4381cd48d8cb4307bc140613ea57d48:"{{@1}} result","0b446df580ad309e7c26e5242eddafac":"Event variable","1fab2b4934161e87a1f0133b9d5bc1b5":"Add event","4db5110d41293fef57f5a1f364187896":"Go to add an event quickly and start you product.","5baa9ac58c00a7fb818d4a113d3f8cff":"The image upload address is not configured.","7241f67ee4fa8e0adb5d602b5f9516df":"Start color","9f1b854df133912bb46203e84f0594ee":"Start color","8ea65e3d4e52c871d1c58b1926380ab0":"End color","0c46a7f77a7247a9cc6d6e995c0ea8cb":"End color",c7706039e8ad85969df13ce3458d199a:"Gradually-changed angle",f4882cbf65b232af449d7289354b9a16:"* The angle ranges from 0 to 360 degrees. 0 degree indicates that the angle changes gradually from the bottom to the top.","5b9ea77bb6ce2d6c82e97b120d757201":"Click or drag image to upload","61a87a021904dc65995e99d4c476cb21":"Image position","737391648d1216a1f84ac9ff52da5aa2":"Image size","0f1fd39145bad43e18f81337e0144c8c":"Fill-up",e0d76824dfe5e09c7068b44f605266d2:"Appropriate",e39d3b7a3600d9327221a637f910fc0b:"Stretch",e1ff2c83c09f2dc6cc74ae02ab6b8222:"Tile","7ddd9dbf373f760acfd63778469b5c4b":"Tile horizontally","4ab931e0f709f9b493e660156925a113":"Tile vertically","21f3929a4484e6e992af64ec1dd3a576":"Original size",a80a25b59908402cf7ee31a07d0e7739:"Left border",e0dfa25ebceabddb2180720d36d4c3b6:"Top border","57463587977a534f7859eb9d7c536629":"Right border","154d5216e42c916884431f0eea951999":"Bottom border",a8b0c20416853bda54120bf19477ad11:"All",df68a5dc8f8847179b7afdf943f80796:"Top left corner",e717b4ae480e7c073fd5a44647a7f0da:"Top right corner","2a97dfb2d236c87c41fd588f006111dc":"Bottom left corner","1c9bc9dab33944e953412f8b22cb024a":"Bottom right corner","4dbe7c40ee82a56bb7a8152d4bbc07f9":"Rounded corner size",bb1531cc9643230ba0cbd7465818b52f:"Border line type",cc4c575642609fbf059a5df81eb86bfc:"Solid line",b1e0ebac23ed95807ecc566da3ffab48:"Dotted line","61f6f4fc0b806ac9d41ad0792e6155f6":"Dashed line",bade10099f8447210ce7b97fa106b527:"Line width","5babfafd769570de3bba47605753361a":"Border width ",af208c560d926f0daf4b2ce2d396505d:"X-axis offset",b6b46126bfb0851ca10e74541c5d7be1:"Y-axis offset","4a32b29da68a6ee204b3743e0fab8bb3":"Blur","22d460dcddb7fda718bc62034c459158":"Spread",b24a723b73f96ab3340fe9502370ee13:"Inner shadow","1cbac849ccc41edb12271d9fe9b65b5f":"Shadow Color",e94d6fc08a97892ff9d8c8d9a8d9e0ab:"Set Shadow Color",a5d833839a610994dc4752e2d91f4192:"Display Type","2c86d897c71cc9c2e648222a200d5bbb":"Block","0b0052c532b457b2d032c9f56af9e4e5":"Inline block","70d457cd36de1acefe7d9587f3f862c9":"Inline element",b5f55e5c7101d9be5218d63850e1ad8b:"Flex layout",a648bd0b9eb3c86e39cabeac484917a5:"Flex layout configuration","452dba7c65211630f8066b070fdf157f":"Automatic line wrapping","098d946b6f0cc85110c54cfac8691cc3":"Flex direction",aee1aeb8d65547f8a368bd7364cacf12:"Default level","4c38eb0fea71a9506fd434a7ac5cb1c2":"Default to vertical",ae07817b441091793c8af39256908373:"Horizontal reverse","618515fd68ecfc4a5b58462f0cb9666b":"Vertical reverse","58554717be87c1f8a6d6c769f74f0679":"Main axis alignment",dfc71567fb75f5c73da377013a223168:"Leave a blank at the starting and end points",eb5ec10ef70689996dd5cd66e17a64aa:"Alignment at the starting and end points",ba3a7db7cc1ac5a908358f62fdbb21de:"Equal spacing between elements",f6cbf29fdb5e94052a22986533c7267f:"Cross-axis alignment","6b461e0a4ffef9438fb8f01369091cac":"Font Type","2539fe0e6d40a023dd95d0bd71d10bc9":"Select Font","690660d9dbd7312ad2825e554736e2f8":"Font Color","5f15efdc32badce0902c46a7a0105c51":"Font Size","4c5fead0489fbc7651c91400dec5d379":"Text Style",d1b490c01d24a1a70e9c83a29ac38fde:"Text position","4ae7f423d9ed9ffa48c3e404f96bb51f":"Text Type Setting","65786fea9d354015d3a2724086f7f3d6":"Default font","1a63ac23010e0573f7c0a8cd3314b8c6":"Example","226c06861b0605a3276311b1369204f2":"Interface return example","1f318234cab713b51b5172d91770bc11":"Advanced configuration",a0472043a9598b1b19f1adcec1e1d75d:"An error exists in the interface configuration, so you need to check it carefully.","2816c3584802b2fc75db5bc3c6aa81e8":"Set valid time of request cache","6e889f0cc8c1d8f705edfd5d0bbdaaa0":"Select it and set Content-Disposition when the interface is used to download binary files.","508a38f518821a0f6bb2d15269b31ece":"The default data is the append method. After you enable this option, it is replaced completely.","5c131eb3bc61f6b0a26e20449ad7ce56":"Customize adapter",f514cabe63553a850063834c9d44a5ee:"You can get dynamic options through the interface and fetch all options once.","47d0a7caaa2baee8d38612a1c57421ef":"Whether to perform initial load","866a60d7fbdfeba6ae42c7e9c7b03059":"When you configure the initialization interface, the component fetches the interface data initially. It can be modified according to the following configuration.","3f4f3acd6968f38361dddc6612a0c54f":"Backend agency","66670400b1f3e4b6c94cff171d441585":"Form item inline","21a1d138166d5d92276d126cf1d6ecac":"Control width",ffaa96ef7232cb6d8ee4d7e673dbf4ac:"Full occupation","4e9ce9dfe13d97031d228fc5ae229f0d":"Hide title",e2773277c7765d4590f7128423c58cee:"After the title is hidden, the title width is 0 in the horizontal layout.",cc572c07586f4ea0c5b9b1060eb777f2:"Placeholder for empty content prompt","8528426e54902956723f322bdbbcfafc":"Input box prompt",dc5dbe7a1b1ff5cae22ffbb636bc6380:"It appears when the input box gets the focus. It is used to prompt the user’s input content.",ff255db9b108589abd5c649e2a02e3f1:"Control prompt","9e783b34207fe24bc488136faba65442":"Display the prompt beside the input control. Note that you need to set the control width. Otherwise, the prompt to trigger the icon leads to the automatic wrapping.","7ad83bbe4646a0011ece7fd338d1e189":"Display prompt beside title",b3e55578af5dd473bab62641bb2f5f8e:"Input type","16084784a0f126b501e96994c792d411":"Date type","8190915888889ed18be44ea0351d0448":"Month","8f30e9f8678c24496921bebae6ca2ac6":"Year",dc46b7f19799047a26fee668d49be0f3:"The option rendering template supports JSX and uses the variable \\${xx}.",b18ec08df2e47313bcc93430e7a25fd3:"It supports the JS expression, such as `this.xxx == 1`.",b7dee01f2d085d90c47bcb8b490d9055:"Click to select icon","689fad203a167d542c12bdc46f27e921":"Name","6c1e18fd4cb57288a9f43603d5167292":"It is required when you need to link it. Other components can be linked with the current component through this name.",ae344073ea6ca9ce742899cdf6d3e106:"Enter a letter or figure","1a1ff1e1149a0cd1b39c0b231a334d04":"You can specify to refresh the target component after the operation is complete. Enter the <code>name</code> property of the target component. Multiple components should be separated with <code>,</code>. If the target component is a form item, first enter the form name, and then connect the form item name with <code>.</code>, such as <code>xxForm.xxControl</code>. Additionally, you can refresh the whole page if you set the refresh target object to <code>window</code>. ","705b3b333576dbf6c063d7060a4cc509":"After the name is set, the completion of the current component operation will trigger the refresh of the target component (according to the set name).","7080fa6e0ca1d7e24f6f8cac05077a3a":'Which secondary CSS class names are available? Go to <a href="https://baidu.github.io/amis/docs/concepts/style" target="_blank">Style instructions</a>. In addition, you can add a custom class name, and then add a custom style in the system configuration.',"3bce1a6217990c8dc087d254f1fe754a":"Automatic fill",f01553e415ca33cc89d0bca84023f4b5:"Automatically fill the value in a field of the currently-selected option into a form item in the form. The data mapping is supportive.","04d815a5d4b803d6bb956d2da5a82688":"Required",a1b6281dc554ac84a3e6062f812fe50d:"Light text description below the form item control","85541bd9f7f39a6e6d9d26cbe09cbdd4":"Read-only","4d681c4aa93c8d005ec2ca2370618d6e":"Visible","5d0595edc3d14aec24efef85534e4314":"Default value setting","495333d64fc1efafd6c40bc9a3929fee":"Get the value according to the name when it is not set","32f13c9db34f638c2c5cf2bf19326ebf":"Keyboard event","2882b15b04cb47d1497160b5061b9186":"Disabled by default","530c4483c7e52dc409509b755eabee11":"Thousands separator","090dbd614a66a56a5eadec87f59ea15c":"Image path","2a0c4740f156a9536049f4610da25400":"File","4fa2ae7d726dc395cfea70ff3d7256d2":"Markdown content","52f43ce846b2bf73f86195cf196fe578":"Counter",b9245d69d2d82b0081ced47a18c27f41:"Full border","8f9b1b7e38cd2ed16f22807417ab3573":"Half border","7fc7940b4f7f58b49c71bf9e237b633e":"No border",b4521626a48dcb61001fc563d2433ed3:"Sortable","6fdccea6068e0698c565acd92052a86e":"You must select the end level.",a80c61384a8459ef7bfb5082a2b54b5f:"You must select the end level, but cannot select the middle level.","71758057056e7f31d73e3f3ac8860b4f":"Delete field when it is hid.",ce641d8297471a5d65c46cdfb023097c:"Delete the value of the form item in the form submission data when the current form item is hid.","3e719b87b9ee71d4613caefbf2fd1074":"UTC conversion",d52e57147787797ae0153d43bf8be298:"After this feature is enabled, the submitted data and displayed data are UTC-converted. Recommend you enable the applications that have cross-region users.","339b9ebd91070de050b4bfe483aa4474":"Embedded mode","49a79f4047b81186c069ed1c9c151c66":"Light color","41e8e8b9935c9ee4e88b06643a2d5b81":"Dark color",bde770827b9137ddb3eb676878af9709:"Secondary",b1ea078db7298ea7872d894283378507:"Uploading method","74cef1162781310e1503d2dc463a76fc":"Baidu Object Storage","38fbc7fb70b4399d7e4050d3cbcdf229":"Storage repository",e5d59ccec2caa64ca83b7cc740645928:"Default repository in the platform",b6789c926cf3d23d13a6a3220bcb8e23:"Initial static data",a4895ee2e87d1c47b734dbcf1a535aeb:"Select page","150075376834f1879d6ceb7c2d10ec67":"Proportion","34598b2c71a8affb13da84ba39e905d5":"12 equally-divided parts. The title width occupies n/12.","73ec114993142f627ab6c3e6706fa3c3":"Title width",ae6fa9e75d38b9db24f78496b72bcc75:"Fixed width","424f04d454332ddaff4daa0a365e9335":"Sub-form display mode",b17754a193ac835bcae0bf960f3a3772:"Set sub-form horizontal ratio","2e282fb6405a60830112991f88e95753":"Left width",c41b3271487a3cc63e79feeb11b11de0:"Ratio","0fcf69b5d0b44955fcbec9702f90b556":"Small width",b591aed69defa2abf0486da6a58dfb5e:"Fixed width","0fa590019ace86acee8d7655e5fb11b7":"Big width","51c1e80408011ba118cdcc696f28283d":"Left and right distribution adjustment (n/12)",aa0ff71cb10c3e54d68874dc2b17acaf:"There are 12 equally-divided parts in total. You can set the left width equivalent to n/12.","1f08c91da33fc5f0616e8a85c0456a18":"The static data do not support multiple levels temporarily. Thus, you can switch to the code mode or use the source interface to get the data.",cf763c357566be6fdaee886a40ddcca7:"Option text","1ca0b9b486be3b766a92474189f11fc8":"Concatenation symbol",ab8e2e8cd076bd115cdd600d17ca5020:"Concatenate multiple values to a connector that consists of a string.","6df0630b4f00b6bd05de8af09c2f78ad":"Extract value only",d7d810ec89408c206a220f62edde737f:"After this option is enabled, the value of the selected option is encapsulated to an array. After this option is disabled, the data of the whole option is encapsulated to an array.","4cff56e2b9703018efc48218b83844b1":"Can create","457c4cf8e1e2e0daef8949085555563f":"The configuration event action can be inserted or intercept the default interaction.",d03c96a2da4905c5f13a87c0d8ddbdb4:"Add API","26bb8418786593149c0bf9f8970ab6de":"Create",a32b3bf74850faad3a9ae6a0a5dac781:"Editable",ea56ca3dac0d39e463a8233fd40a9eb6:"Edit API","3c87af7c432e6b1f59e4f415fd5060cf":"Deletable","793e260d5b7c67d43b5c6d5e885d2363":"Delete API","63bbd68594c9a987d0ff41d645fafa16":"Whether the first option is selected by default.","0dd2e4469872c176ab1e85b66d99da98":"Hide path",b7e26fcff328b28b393ef2e57e96e258:"Hide the text information about the ancestor node of the selected node",c49fc970bcd168e1c652a8ced5d95d0d:"Other item",a45b5d3fcdb8210d249b2c6d545b6691:"Cursor type","2c3888961c01fc9c466d88c88029158f":"No pointer","062d0b688adb10f3af5ebc2fd2667f1c":"Floating","92e3a830ae9a1252278da742c0af74c3":"Help","87e277f953fd3c867d7fa02897c2c124":"Cross pointer",c19639326396d2527268484379a671d8:"Moveable","183f48b3c1f0f84e538cd4315e5645e9":"Fetchable","4f9b192ce84b4df0900510257082ef43":"Enlarged",b21ac25366449b1720bdd75d39f163d2:"Reduced","93ab99d761c9ca97dc926e6db10469a3":"Font size","86cdd659decaa1b959795eff92a0c2d6":"Font weight",e8ed49e9fde0bb778e2185876c2d2697:"Margin","4e7f76261f8c4c6d78998f85fc1f4c6e":"Margin","841d77223f0ec8cd0b530ed8e0775b20":"Padding",b5bd9a6703f5433ff34aa0af9049740c:"Rounded corner width","14eb3a698316caf3fbe9b2ab9c3d9527":"Special effect",cff1ec632eaf35f64791615e15ce6d76:"Mailbox format",fab6f9029822dea7838bf9908d7f5c09:"Url format","1111c44adfa40fe9cb22797d2c1e37e8":"Letter","725bf3485a0456cf7f65a507ce67254b":"Letters and numbers","96c4ea83892a3227a2aa5b8f3759bca4":"Integer","35962d17a3fba5f4802d7845695a3e72":"Floating-point number","28e8e048490110c8dd8e2ad6af324980":"Fixed length","8c4ee6022f1525097a1141acad094d4e":"Maximum length","17971609e210034c0d6a25b0186e2b7b":"Maximum length","92448a35f41de3a1fa69135acfed5ce9":"Mobile phone number","193a8c42c1c373f385a4c7b33ffc381e":"Phone number","6102d474314f27577d89e85b4c6cc4a5":"Postcode","84e0cb5d57ed995b0cc04b4ab9a7997b":"ID card number","8dbec4f0c05be45a8acf6a5ae9d1f880":"JSON Format",eb242bc7524c797fb1aee2344dec92da:"Identical to the specified value",c17d9577233793976d3902c117eed82b:"It is identical to the specified field value.",b457177c184722b655954a08cf3f71ca:"Customize regular expressions",d3927ffde0fdefc47f910e70226d6a4e:"Customize regular expression 2","0ebee58f4f2a0f807f08a6427dc58497":"Customize regular expression 3","15f52cddb226421e68c70488fff3db5b":"Customize regular expression 4","271b01959e09c0771760f59964baed56":"Customize regular expression 5","4eddee6a20aceddd6bcdf7e0736887ee":"Verification rules",ba3c802f3ce1641eb6f8986e8d19e672:"Add rule","7be30fe376e9bfd8895ee50e6f4216f3":"Set length",d00f99fd76e86ba4dab6f70858010ca0:"Set maximum value",e993ecfbb3f934481257f1bb57056bfe:"Set minimum value","99f5d503544334c670cbe1f400aea9e1":"Set maximum length value","91bdac623455c91b7400328a5600cec0":"Set minimum length value","7002c4a1b7cb5bc32ffd52e1f2d74c70":"Set value",aa9cfa5321e589494841ddd90a10c467:"Set field name",d22b6fb1c857777ba21467835efc65d6:"Set regular expression rules","1b7e06ef04d7167e174eb6929421592f":"Email format incorrect","2d163645de4d4b4760e9fbdb535a1a88":"This option is required.","87c91ce706ab845b55ce95372265b92e":"Url format incorrect","2b702fb5b95d47944246f79ae4032281":"Enter integer","48e2aca8e6347b008b6fbdb48fc4b597":"Enter letter",de66a286057d4e3f1ee2d9bccbd48ce5:"Enter figure","84f46c9b82c3c8fe276dfa65173c59bb":"Enter floating-point value",fb73d98245f558dbb2d6a0c8d2699780:"You can input letters, figures, `-`, and `_` only.","923a91fdc2c777f8443c85278060195a":"The format is incorrect. Enter the content that meets the rule of `$1`.",d87b1a3d180a1cc56bbd174d2860ca4c:"Enter more content which includes at least $1 character.","9b8d6abb2f03fbcbdb0e4d2b1970a751":"Control the content length and do not enter more than $1 character.","2a5d0be4d5cd088f0371ba6f8656fe7a":"Check it when the current input value exceeds the maximum value $1 ","8256618e16217325e6a1d880f8eb7adb":"Check it when the current input value is less than minimum value $1",f58829312013d929923b0c2a1fbacf19:"Check Json format","161278fb2c71e5a8aa8aac50f230233d":"Enter valid phone number",ba42949accfe87c20e6c2486cd065dd2:"Enter valid phone number","1d2c5048143328e21cb9c2dd84b696fb":"Enter valid postal address","038b3ed111e87b56572f3945a1b0e02c":"Enter valid ID number","335e2618dda48c05f4f833ebb1e299df":"Enter the content with a length of $1",bce45e909d6d14a126554c8cf6f65a13:"Do not enter all blank characters","17bb8e76f78bd16a1841e36ab8462e53":"The input data is inconsistent with $1.",ab534c35774dccc322331a079ae6e7df:"The input data is inconsistent with $1.",ebd0dc3ebde6182caa3b66e0faf658b6:"Customize verification prompt",d7772d568894afbb1c924bed7f7ddb32:"When the prompt conditions are not satisfied, you can customize it.","58c9592f818d706420236c6f9f595517":"Add prompt","171f7b825707ddd79175fed3f8def6cd":"The submission is done once the modification is complete","6ccb7091c39a5229f7e77eff4dd44a0e":"After you enable this option, trigger the submission once you make a modification every time","1a006028adf7167ae28cdf532bb75ef4":"Trigger check action","8d877748c3bc71b517e2d46344916b3f":"Trigger the check action once you make a modification every time after the submission","2c60032f2a57717e4f7c16ee185795d6":"Trigger the check once you make a modification","5ed62f810226722d7c910c2d8dc4a0e8":"Trigger it upon the submission",ed3dd0bfa89500c5feb306cd4d9db56c:"Regular expressions","537b39a8b56fdc27a5fdd70aa032d3bc":"Required",ab90c616dd114af087b31b90d3cb4063:"Number of characters","41e82a5a0e53ba94d1160ee855c72a7a":"Enter number of characters",a85ce2404b26140080c929ad9c3ec305:"Enter more content which includes at least $1 character",e93275245d529c486018e47136bfae2e:"Check Json format","2c8c25bb51dfd9ddfc74fd75a8a380a1":"Value content","859102d8ced9928cc71bb225961171bf":"Enter Js regular expression",a4313469fd7361486fe47076629c76ac:"Add record","50abd0bf31e07dbee84e9e5b9a407840":"Add record","73f28ac83b623fb81d73f16fb3856fa0":"Data import","8d9a071ee2ef45e045968e117a205c07":"Import","09d44261d7883bf5141a462a790d2816":"Data export","55405ea6ff6fd823ffab7e6b10ddfa95":"Export","6ff4bf3d567e977aa4c90c27dff1e6db":"Fuzzy query",e5f71fc31e7246dd6ccc5539570471b0:"Search",c26996a6506adf397f0668d376d0b40b:"Simple query","9c4666fd08c2738eb9611a3721cb5f0f":"Advanced query",e22b59b6bda1cf9a58f8979fd0a0b43c:"Edit record",a790208cafd5c95a18dd9a168319ecf8:"Delete record","39ccc34fa3ee9be12d8bae7e6fecbac2":"Action column","240145572215920ae06db1eeb85b29c0":"Optional","099cf136d6a4b6ed4646af4a2ed066b2":"Retain selected items","60011314ed92794f3d4f3e874c359279":"After the default switch-over to a page and the search, the items selected by the user are cleared. After you enable this feature, the user’s selection is retained. Also, this feature allows you to achieve the cross-page batch actions.","949a8b7bd2c10070a2fae16f9c66afbb":"Column setting","2816cea6c4887a53c417831deb5fbe00":"Custom display column",d3c5079f7e26b1a7374ff76341376de4:"It is enabled automatically when the number of columns exceeds 10.","4a3ebd0ef27212de3b0c39e6a9701b1d":"Search setting",a9a3a4608d48214efbdfac99888f6e0f:"Action setting","84a2f40385427bbf2edc79e3368e4e0f":"Add action",cb43abed5ba14bf32fbb1058e12d2303:"More and paging","48b42e5c3ea447092eaf0a1a13195540":"Paging mode","16b8ff2b147382be4cf8654f829df904":"Frontend paging",d2e20bb1e977f9571a9e2d1b39a7ff10:"The data is loaded to the browser once, so you do not make a request to load the data on the current page that is requested by the backend user. It is not recommended to enable this option because it has significant influence on the performance.","73721e611daaafe5c34aa9f3f901d016":"Data container","46a0f3086dce242abe54e48bd86e0394":"List display","278249b178c958cee0f5ee9ee9d1e0f5":"{{@ 1}} Create wizard",d75a7984d3fa5b32f5d8312e899aeea8:"Data configuration",c2f1f9254c245976e346377515c2e578:"Feature configuration","0943d61befec4c6cf2d21d170c9b066e":"Condition query","5246d2c81fa12b1f4f73635c257e232d":"Data operation","1b79a4f49b7a21e62b8868f12189b0b0":"Data loading","5a28d015b7b3518f75bc4cc27d9f6c20":"List data paging",cfd84204d9476936c949d071cc2338cf:"Data query",c6bd3393c21379d3f75d179abe36da3d:"Use specified conditions to accomplish list data query","3a6ecf25c38317b21b8c6287100f053a":"Trigger data query",b3a4d6a345372c5def1d5a1bf6077bce:"Load more data to list container","34e83e1be408c4f198464da1bf56bf9c":"Load more data","2c77cfaef73ce2e81131861e9c6d670e":"Selected data","9c9153c49491c381dc2adb2c36fccb04":"No data selected","9a4fe969f1066e197fd2369a44d879ac":"Current page",a7f33a2d99056edcdaced5c8841a9bcb:"Total number of data entries",a0c35361a003527d123cb581f5c68f4b:"This option is to realize the addition, deletion, change, and view of the data in the card list. It is used for data fetch, paging, single-entry operation, batch operation, sorting, quick edit, and other features. Also, it is integrated with the query conditions.","860827796ce2fa94e9ee39e53f011ec0":"This option is to realize the addition, deletion, change, and view of the data in the list. It is used for data fetching, paging, single operation, batch operation, sorting, quick edit, and other features. Also, it is integrated with the query conditions.","629645f147f378869fe9d7ee2bbc2857":"Sub-title content","97d03d4621f0024cf045afbd901197a5":"Select area","44705bb94d83e7bd6b3b6c1480ebfb38":"Click to trigger selected area or cancel selected area",e30a958a6397e53fae9d5316e851d3aa:"Entire","31ad7a215f3df84c33b8c28223147b8e":"Select-box","563ae5ccda5004fa1fce77c1ed5bf057":"Hide select-box",aeca6900b9e45f7f235eb9d443f0dd61:"This option is used to hide the select-box. It is possible to achieve the selection style by customizing the appearance of the selection status.","1d4103a96a70de2cb69dd597d679fefe":"Selection status",e8b90f43fc3cfb0a68e4392054de97e9:`\r
              If the backend does not return the Echart configuration directly, you can compile a paragraph of function to pack it. \r
              <p>Signature: (config, echarts, data) => config</p>\r
              <p>Parameter description</p>\r
              <ul>\r
              <li><code>config</code> Original data</li>\r
              <li><code>echarts</code> echarts object</li>\r
              <li><code>data</code> If you configure a data API, the data returned from the API is imported through this variable</li>\r
              </ul>\r
              <p>Example</p>\r
              <pre>debugger; // You can conduct the breakpoint debugging in the browser\\n\\n// Check the original data\\nconsole.log(config)\\n\\n// Return the new result\\nreturn {}</pre>\r
              `,a955021cdf0249de1f3818f83cf248b7:"It is used to display the custom display column button in the table. You can configure different display styles.","24bdc7e8957abfc5d82f4206e92bb518":"Button text","787366b0d678071a5ed98e55d31eba84":"Button prompt","6a0508144ae12bfa79001693d713c0d6":"Whether to unfold the panel by default",ae3816c5b00fcff4111842ac19f0a706:"Button icon",fe805d91ae93be775670c61214dd2f28:"Button size",fbbbe30d78c335bad27f3dfc5efd2a5d:"Display column style",f8c5e0ac29e905e91146e967cfd39dc9:`\r
      const button = document.createElement('button');\r
      button.innerText = 'Click to modify the name';\r
      button.onclick = event => {\r
        event.preventDefault();\r
      };\r
      dom.appendChild(button);`,a8065b6d2062bf061762b9200a88251a:`\r
        const button = document.createElement('button');\r
        button.innerText = 'Click to modify the name ddd';\r
        button.onclick = event => {\r
          onChange('new name');\r
          event.preventDefault();\r
        };\r
        dom.appendChild(button);`,"73ac822ddf4685dbfec661dec41a96b7":`<div>\r
<h2>hello, world!</h2>\r
<div id="customBox">Custom container area</div>\r
</div>`,f29ab26877ed22ffa59636d747d824b9:"You can press the Esc key to close the popout.",dcba76890a534e1fe94421be2a17b484:"Display the error message at the bottom left corner.",af5876b89583552eef4c781718886dec:"Display the loading animation at the bottom left corner.",f19464cd1d7c55610b84b4972eaf506f:'<div> With the data mapping enabled, the data in the popout only contains the set part. Then, you need to bind the data. For example:{"a": "${a}", "b": 2}. </div>',"784cf5219012b5f16f2985b7f1fd52f5":'<div>When the value is __undefined, it indicates that the corresponding field is deleted. You can combine {"&": "$$"} to achieve the blacklist effect. </div>',af9f27383daeec508815a33753247f42:'${data["&"] ? "The parameter customization feature is already enabled. Thus, you can click to disable this feature." : "If you need to customize the parameters based on the default data, enable the parameter customization feature and then define the key and value."}',"9567f8bbb315b1217b7b32be37f97792":"${data[&] ? Disable immediately:  disable immediately}",bde8a41fc64bfe78d0c4951ac6f93718:"Display mask","874cf31274d782914c7833cc39836c4e":"You can drag the drawer to change its size.","94397b87ac63fe238c779120fadab024":"It takes effect when it is at the 'left' or 'right' position. The default width is the width configured in the 'size' field. The value unit defaults to px. It also supports such units as percentage, e.g., 100%.",a6d91e801974dfa735a4ae0e098c522a:"It takes effect when it is at the 'upper' or 'bottom' position. The default width is the height configured in the 'size' field. The value unit defaults to px. It also supports such units as percentage, e.g., 100%.","45ce37c24c6e7252d98c6d450e3ca4ad":"Title area","660553eee939d2bd8ea68172fa7216df":"Footer area","1495c26f33625552e4845630b6b7b44a":`<div>Description of available variables</div><ul>\r
                      <li><code>value</code>Current value</li>\r
                      <li><code>level</code>The fetch level starts from <code>1</code>. </li>\r
                      <li><code>parentId</code><code>value</code> selected at the previous layer</li>\r
                      <li><code>parent</code>The option selected at the previous layer includes a <code>label</code> and <code>value</code>. </li>\r
                  </ul>`,"057a9c2b2027a6b443741d8a0c04e4be":`{\r
    "status": 0,\r
    "msg": "",\r
\r
    // The data cannot be returned. If the data is returned, the data is merged. \r
    data: {}\r
  }`,e23c9e6279487960ebf85b9985dcba07:"Fixed size","4838f2f4ecafd0a3a4fcfe82521acdd9":"Enable crop",c7fa7f54ece94ae684aee1ee2088a5ae:"Rotate during cropping",bd698e3f47ede4e59aafb28a291b77e7:"Zooming-in during cropping",f785a357a820555445acd6f7051b1048:"Cropping area",b7623c7e17098d5950694437aa7584ad:"Aspect ratio","204770091fd4b7cd0611ddc65bf21d37":"Automatic selection of child node",be7d848c40dfdd3e20f233c373af00a5:"Select child node in a cascaded manner when you select a parent node.","4c3ed2fc7331db687fc0e8ffb8f672a7":"The child node can be selected inversely.","0ae8c01434dc2a38a90561fcbf5d79b5":"The child node can be selected inversely. The value includes the parent and child nodes. ","22c023bf51970a461cc164e711f3d3ff":"The value includes parent nodes.","6e19e48a52986659ae5ba1bfe612ba8a":"When you select the parent node, its value includes the value of the parent and child nodes. Otherwise, only the value of the parent node is retained.",cccb3595f8ff536e27d94ec91a49bfdf:"The value contains the sub-nodes only.","49ccf100ac35e1cc3d40b7222cdcd1a7":"Through the ui behavior, you can select the child nodes in a cascaded manner. The child node can be selected reversely. The value contains the value of the child node only.","4e373f3ff64ad29a01da87317eb92088":"Minimum number of nodes","160cb9a7d57c5b5ca65b5cdf79e8fd28":"Maximum number of nodes","1cd9e1bb335cb0643d9e310dd4edd830":"Icon field",a0e965072593eb1b19b4568fa26d977c:"You can select the child node only","8865c6822a31e0da6bc7eece8677d8f0":"You can add",bc560e477282dafc3c37b7a665af4f9c:"You can add a child node at the top layer","89664aa96ba7eb788ea273c0d36467cc":"Top-layer text",b4eab506cf436d3cdd1cd68fc857ec04:"Add a level 1 node","2b3073b1ba5f9deab7818d8be02de3a1":"Highlight node characters","14dc30e68a3d8d53e8ddd98876c1d480":"The option value includes parent nodes","68c7da9593da32100cb82ef5106047e1":"After being enabled, the corresponding node value contains parent nodes.","9cb417cfac37e6d65dedbc35ee9e916e":"Path separator",d6840c02c4d9cd5f4f5fd4d9f3e6b916:"Display top-level node",e2c310a329c2cf62a0764fc912f2f583:"Node text","8c9a3a8cd5de83121c03c83f909a7534":"Display node icon",ae7d563d3190ddbafdda8093fc28fc5f:"Display node select-box","4444d03faa51f8550a8a4547fb471ab7":"In the single-select condition, it can display the tree node select-box.",d7eae84550f9b9bc0c78a94e4072ad0d:"Customize unfolding levels","346f7e0c7ef27b6a83f3c9f8f406d737":"By default, unfold all node levels. With this option enabled, you can customize the number of unfolding levels.",b40163733b8e3a420e38f295bfab369d:"Set levels","0911a348aaf24601e633e318ccb8aace":"Left option title","84a76ba52297727f6bb47d8a1cc74094":"Right result title",a2888bca5f435690ff9f5a5d615a968a:"Left option panel","1e409f26f9c1d58ce0c47a68104d45f0":"Display form",eebda442c4bff2aaaf8274383d0ed12f:"Tree form",b3a17ee1af382c467d857d33089fc0c7:"The left option rendering template supports JSX and uses the variable \\${xx}.",d5dbf5285b2dbe07b481fbd5d4536c60:"Right result panel",b720b2abd62161c3c99625c8160df987:"It follows the left option panel.",acef03eee638dc4239ee60f627f33d85:"Currently, the query feature allows you to perform fuzzy match query according to the name or value.",e3ed623b79100791f156d3586751c652:"It supports the sorting.",d4865602e26e9c985814380beae99b6d:"The result option rendering template supports JSX and uses the variable \\${xx}.","0aa73cfbe5a84cd34a212de5bab2058d":"The option text only displays the selected node.","4dabfefd787102b8159b5c4a221aa048":"Hide the text information about the ancestor node of the selected node in the select-box.","0f993a54d2c67716220632577d3b5b51":"Display the unfolding line of the level","846da282ebfa6dfe61deb1d58145158c":"Display the unfolding line of the tree level","93199f3864cf5a68b286b927fa68ae6a":"Tree container","391555a3772260743f19278f01adf75e":"Title bar","8d6b5924f187048cfa28d6c21fa6d2d6":"Page title",e7f2f04f7c2b2e9e07b69767ea28d6ab:"The sidebar width is adjustable","28d602809bd1dc6b47ceb38cb54f32de":"Sidebar fixed","36bded76593f98fab62453c7430b2918":"Means whether the sidebar content is fixed. The sidebar content does not roll together the content area.","4143d7418de740e8bc26ef4b27c63534":"It is used to get the API for initial data. The returned data can be used at the whole page level.",c95e748d5811faae5c52bdc07bee51a0:"Mobile terminal","04f767eaa571383ea271432bee6deedf":"Drop-down text","0b3eef4f8a8061baa22416dc1e5dad03":"Release text","0059d50e3f7b2fe7f1822ccc218fed66":"Redirection page","41ed1e238b846005dfb0f087cbec644b":"Select this option to indicate that it is enabled. You can drag and drop the features to adjust their sequence.","7b755ba413eac50423859395c68e6280":"Table V2","642e5368b742c82472e2ef35114459c9":"Table data","8369004103635f8e75026217ebf237da":"Bind current environment variables",bd3e7a1b636e4477a4ea59922ed2cc1e:"Display title","11d00f37d934b2464f3258952a398626":"Table title","4e3cd1a7b193e2fd3458278d10c530e2":"Display table header","023ff3530e48493e653eb48e958a4eb8":"Freeze table header",dd9b85b2cd13ca724afd1f43567abdbf:"Display table footer",c89b5fd3b706a17feb016d93c80e34b1:"Table footer",a5baa4818b14f4680955aa34dd559d02:"Content height","1ef8fd21130d17cb7c1613eaed6ca1e4":"Fix",ee18dc475df8654cb13ad67dd84eec28:"Height value","8bb5781dc5f2745e6356cdc5e6d76b16":"Content width","88a364068f684dc77aca5b6c006ef576":"When there are too much column content and the content exceeds the width limit, you can view the data in the landscape mode.","6e3d35b57c29b1b419569cc55b3a5d33":"Width value","8ce1cd75b6e9c0c0e3468589fcea822c":"Placeholder content",ba4f461832cbdb7fbdb170fc9c1db647:"The column width is adjustable.",aa2bd9f54608c0c85d3ceecb707938c9:"The user can drag the column to adjust its width.",ed85be57262e5a0c3116293e88278fef:"Row setting","3d2ac2fd2c60931fff1db814662334c3":"Select height","85a49c5ed4628647f2ead9206224dba3":"Follow-up content","4296d7d293c9ea4a0e52c6415f0b5c96":"High","1f1ca9df5fa3648c718ad04649888943":"Selectable area","596171970b639a35dadde2aa930d666a":"Whole row","388855093d17f3df43ff80242d7a1bed":"Row disable conditions","46705a530ba9721527a4202bae7091bd":"Select menu item",aab57a3547a451f756bb8231a1eee8d7:"Inverse","76159d0d1261c0b6c310901244457e36":"Cancel selection",be4751b0c9adf1d8deee45226c6124ee:"Select odd item","49f4010dade8652e5aff6a2c67aa23a4":"Select even item","49b4aa407b91ac997e27314e30c03110":"Expandable","8c1f5c49de09adab9a0e0c39e0106f78":"Row expansion conditions",caca6cb58342bb604483d94f49515234:"Nestable","5bdff9fd07d2a2430ac50e1559dbee27":"Draggable","33eaf97ecb3465754855e847f14d129c":"Quick saving",ce7d31d64f2315e1d4cede288b9dfc60:"Quickly save a single entry","927b639f244953f237cd12943c8b815c":"Horizontal scroll",fdd59ca00eba17d4bfebf744056ce4ab:"Nested indent","6bfd4423d8aebbf0cac7ba4d74f245bd":"Select column width","21922c6479665dcba83106f8e9ffdf68":"Width of fixed selected column","31b7c58c2d9a170829b90314ff98b66a":"Expanded column width","81ccf26d9622d139a13ba2a61bd9fea4":"Width of fixed expanded column","68e9249db7bd12ab17994b1761b049f5":"Customize row style",ef0c5b6fa16497343eedb76171d61d68:"Expanded row style","1a7bd457c08093cf2cf887403dc249d8":"Expanded column content","4ca07911d10b74cc7c357b510e7cc948":"Column field",eb2719a7e6cebda7ca234560f21fb448:"Column title",f35c90b504521a2da346960b9db23828:"When no value is available, this prompt is displayed in place of the value.",ac83dbca40c9d2151b5f7d81795535cc:"With this option enabled, you can sort it according to the current column sequence. For the interface types, you can increase sorting parameters.",af9cbd3988196fc104af4fed9461e152:"Searchable","34dceb7c51000849ea3596fbaab6f67c":"Search type of configuration column","9a899d9ab83d8ffa6308fb31e93f23a1":"Quick edit","4562be5a3f9823a5f61b25f8d14b2b43":"Modify and save immediately",c115f372bcdced1e70824bcbf42b5923:"With this feature enabled, the modification is submitted immediately. Instead, the modifications cannot be submitted in batch.",fba91204d335ae6eda35809023a94f7f:"Configure edited table","90ef7c485bd31fab681c6e9d9afd5be8":"View more","71c0319fce9f416330b18e554e0acc55":"Floating window","64035b04a21bc337a351b5a2a5d12acb":"Floating window position",ea71a81cf874780294d517b0314feada:"Configure content",ca60c525372028b9f75ee4c708cccae1:"It defaults to the current field value.",c9f7324519225bc72fce24a09518a8a8:"Merge rows","9af45e91a08b54764610ada28272d590":"Merge rows",ad96280bb24a38f9a83051b16ebc9688:"Default display during the customization of columns",eb58b078f2f8560160ebf87bc7109de9:"Content exceeding line break",f1f4c88f30744f2365b65f1790c71da8:"Wrong component merging object. The panel is too old, it cannot be handled unless you add a panel.",d17020cd3e6564f5154cf2251cd30f52:" Row","7cef725b75da8afecda59900b780be75":"Timeline","8f32bcb8d5baf6cbb410ef3f6dbed8d5":"It is used to display the timeline.","1aa46d7cdc632756dfbf16c55436bcdf":"Node data",c360e994dbcffdf31e86d2d8875370e1:"Sorting","825f53899a11e598fc9f9b43e0814a58":"Positive sequence","8eb4b7abb66f0922778a39044b42d345":"Inverted sequence","0da2ab28a6e03922d4a0c78451146b87":"Timeline direction","00ff9356c34d05ecbfd6559a46f56e25":"Position of text relative to timeline","71039986e2386573ab6e5681986c2230":"Alternation on both sides",f80cc88446cc10da4838556666f6b9f1:"You can configure the <code>headers</code> object, add the custom request header.","005c50d1af6e833d6991ab882653b7ae":"Due to failure to load the available field, please contact the administrator! ","76f47297fe988267a26073a9aaf7911f":"No bindable field available","020586d0c69f8211840ddf9ee9bbf6ab":"Bind field","91be693dd1ccea38f8f514318fd8a944":"Enter name for search","8517171ce4ad0e9a5b511bd6bb26f839":"No available field available",b51796f5778fdc31bac73769a85f89c7:"The corresponding component is not found.",eee03351367bb1907dcc3140ffa3e3b8:"Go to edit",f99603414a616bdee85de0e6e3938b65:"External API",e6ff6a97bf600c02942db3126a7077b8:"API center","37087e5bb2d0367872a461f535580d91":"Enter time","96641a78cfd9f9f8ba68f0524347b186":"Enter title","1bf14fd24efe68f62bbff0538dee238a":'Each option is listed in a separate row. All items with non-repeated values are added as new options. <br/>You can set the time and title for each row using spaces, respectively, e.g., "End-of-term makeup examination on June 23, 2022"',d584018521820dac9e92120737b733ba:"Node configuration","72a3c1690dead6e24f7ac1abc90d5063":"Enter display time","79d3abe929f67f0644a78bf32adb3a89":"Copy",f86418b525af4b573aed36b8e3f9aeb8:"Add table column",ec159d98c6c25fadd38bcd9362f6a28e:"Set table column option",f302b37cf6530d3fb39234a220d95437:"You cannot set the table row until you set the table column.","6090f7af1ae15892abe97409b9e557b1":"Add table row",e6a10b831ae920bba1bb89a725e0fbe8:"Set table row option","9bef5e571702130c5710af4ee2c27455":`/* Customize JS instructions: \r
  * 1. The action execution function doAction can execute all types of actions.\r
  * 2. You can get the current component instance through the context object. For example,  context.props can get the relevant properties of this component.\r
  * 3. The event object can execute event.stopPropagation = true after the doAction. It can stop executing the follow-up action*/\r
const myMsg = ‘I am the custom JS';\r
doAction({\r
  actionType: 'toast',\r
  args: {\r
    msg: myMsg\r
  }\r
});\r
`,"8df0f3891f8a80a392816f6ca662a33d":"Refresh interval","21157cbff85802e353409f647f1f1f91":"Millisecond","4fe2f10c6d5bedac03f40a4362e4f69b":"Enter component name","89bc2a21c778b36d09c8d795aac8260e":"Data entry","666352a09304cba42de24312f509c3b4":"Automatic fill or reference entry","7237d0dfa065bf451120d06330291b7d":`({
          isEmail: 'The Email format is incorrect',
          isRequired: 'This option is required',
          isUrl: 'The Url format is incorrect',
          isInt: 'Enter an integer',
          isAlpha: 'Enter a letter',
          isNumeric: 'Enter a number',
          isAlpha: 'Enter a letter or number',
          isFloat: 'Enter a floating-point value',
          isWords: 'Enter a letter',
          isUrlPath: 'You can enter letters, numbers, \\-\\, and \\_\\. only',
          matchRegexp: 'The format is incorrect. Enter the content that meets the rule of \\$1\\ .' ,
          minLength: 'Enter more content which includes at least $1 character.' ,
          maxLength: 'Control the content length and do not enter more than $1 character',
          maximum: ''Check it when the current input value exceeds the maximum value $1',
          minimum: 'Check it when the current input value is less than minimum value $1',
          isJson: 'Check the Json format.' ,
          isLength: 'Enter the content with a length of $1',
          notEmptyString: 'Do not enter all blank characters',
          equalsField: 'The input data is inconsistent with $1',
          equals: 'The input data is inconsistent with $1',
          isPhoneNumber: 'Enter a valid phone number',
          isTelNumber: 'Enter a valid phone number',
          isZipcode: 'Enter a valid postal address',
          isId: 'Enter a valid ID number',
      })[data.type] || ''`,d3e329f73ae4b58d95cc7769eeca8370:"It takes effect when it is at the left or right position.",fd179c2844536ce198290441c38c814e:"<span class=label label-default><% if (data.type === button-group) { %> Button group <% } else { %><%= data.label %><% if (data.icon) { %><i class=<%= data.icon %>/><% }%><% } %></span>",c5d48d5732c64d5dea4bb0b4aaf13813:"Enter className",a11cc7a65b27f3993d58438d275f3447:"Enter content","34df758502e02c7c1a58f804a6c96c28":"Text before being folded","1d20d90b7c7301b7739900242d38544e":"No configuration. The title appears by default.","8aea4138b4fac2627c9b72da37e0671f":"Text after being folded",e9b91e9101059dc2e234d9847dd7b003:"Popup data","544fac400db790f57ea8ee4207cbeb6b":"Standard",fcb9b16d5d056bfbf6b6cba9dcf61efa:'Refer to the format application in <a href="https://momentjs.com/" target="_blank">moment</a>.',"17a689143f0c7003123bb3c947d35273":"The verification priority is higher than the maximum width.","2aa41edf8cfa79e7e5fcf38c9742b495":"The verification priority is higher than the maximum height.","37ad5d98b12853d786b08cb52b91a43a":"After enabling it, you need to set its height and width through the CSS class.","324d0ccd6fa9d976d2f17de3bf0b70bd":"Control the display size according to this value when the fixed size is enabled.","7a377ac3904628fd73e7d33ce6130ae1":"Minimum number of nodes selected for form validation","674ddb63a7cd9e14a49813d52cf7e25e":"Maximum number of nodes selected for form validation","24c5febd312d27b5e80354cf03e241f0":"Outer container","54d621d5bd588bea4e896de52147a229":"Row data selected",ae76ff4dcb615d3b0232dcd10115e149:"Initialize static data","152b66069787294e53cfc176a189c81f":"Field corresponding to the icon","10cfe8897db8c032986138ba7b2f48da":"Data field assignment",a6e2cf5b7fa625f571a3e6d0df3a7327:"Data field member assignment","3371427f1b82095309092ef82418ec1a":"You have added this event.","0e9525b2bb1493c567c114dd61b69095":"Notes:",ff0d36eac9b9c029d91c365cd2c7e6cf:"${data[&] ? Disable immediately:  disable immediately}",a718dcd3a16bee2a4086244ef1eb0ab4:"Enter the content with a length of $1",c323e3527a805cfdd264700fdf013daf:"Control the content length and do not enter more than $1 character.",c762cefa0ff423010af0a943c04d603b:"Enter more content which includes at least $1 character",b95aed5c6f2c8e49e23b382ac3d593ba:"Check it when the current input value exceeds the maximum value $1",fd11733fbabaf2ae3cf1fcd3fe385cc5:"Check it when the current input value is less than minimum value $1",acf719549561f28f38bf750a64cda508:"The input data is inconsistent with $1.",e027500d91d46a962036f63c09492c6c:"The input data is inconsistent with $1.",d01886eeef1de19f2e99617017f4def8:"'The format is incorrect. Enter the content that meets the rule of \\$1\\ .'","5e568c42a5ecb74db2dc3d8531079dd6":'<a target="_blank" href="https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/">Reference documentation</a>',cadf0e302ddbc6fdbf005aed670b5e3e:"Code changes","6006074bdabc639b86f42aa18876e33a":"Fired when code changes","28e5fd494ea37a09fd2ad36d0f98bacc":"Deleted item","046de1a6cb21ff83af74958342c0db64":"Activated item",f6e5fc909971d2e5f6ffe23edae93584:"If there is a lot of data and the comparison is stuck, you can turn on this configuration item","31dae237cbd03ae0d2dcf7ad2fd4fb76":"The data returned after the initial interface request is successful","850c62f7b1ebfb4b89182ecd51202a7d":'Triggered after the form is submitted successfully. If the event source is a button and the type of the button is "Submit", the submit success event will be triggered even if the current form is not configured with "Save Interface"',"88b2930823f9fd6706473805e9b11797":"Save the data returned after the interface request is successful","3e07258baf3c4389c1ffd4a98c20b8fe":"Save the error information returned after the interface request fails","0d6581b6dd51f6c03a4edf26475d75c6":"Removed item","4ea280a2e54969de1d1b9bbd5b708e63":"Click option",f05520432bb87ced419a1da818c6cc9d:"Fired when an option is clicked","91f7b7fdf9b91073ca3519260f7a62d7":"Option clicked","6afde638796d237377b0755506d08ded":"target component",fee99f2bcced486e4753a8f58f511d3f:"Append data","3f3f4c71c1b736e7f01cf910a553ff43":`When "Yes" is selected, the data domain variables of the source component will be synchronized to the data domain of the target component.<br/>If the target component is a CRUD component, and the data pull interface of the CRUD component is a get request, the data domain variable where the source component is located will be appended to the target component's initialization request query.`,"2aecb19ca1655d66fc80fc27a783cc9e":"Append method",b67b01a3b9170f1daf78082cfd0df793:'When "Merge" is selected, the data is merged into the data field of the target component.<br/>When "Override" is selected, the data will directly overwrite the data field of the target component.',bd81577a6fd4956e676cec499bb70d00:"Merge",e09fea40f7e4abd4b2a495b315940688:"Cover","9a5500b6013ec1ebf61bdf0e18452348":'The data defaults to the data field where the source component is located, you can select "Custom" to customize the required data',f30bcdccf71b19e858c37d8881d2b206:"The data domain where the source component is located",fa644cb20c66f7530d8a376d4fa6a36e:"Component data","7d9260bd45b2e85a09398f218c25f220":"Update the data field of the target component or the data value of the target form item",e7af71fb102cc86ab3be6a2fb32b5e3f:"Data settings","77b1081c177fa3334cc93c99f0ecee75":"Direct assignment",f5c5e3d69daee06ea1606378ef466765:"Member assignment","697af73997072e0ce9ee65b15a7b3715":"Reset PageNo",d7bf42dd6e66f2818f9a232603c4a53b:'When "Yes" is selected, the crud component will request the first page of data',"3e573fd37473d789211ee44335d82fad":"Static CSS class name","905407c57ccd033cb6bd64bfad20a8c7":"CSS class name in static display","0d1f68afa19f3f3dd88e28d17c98ddf9":"Table 2",e052287273ad39a1d3fa9fa3decb5fd9:"Component display status","506f28f48dbebd5d19e19dfc721e13be":"Control the input state/static state of the selected component","0e35b091e18032508758899735664df7":"Components switch to static","34d361256526b04909e064c29d9a9b76":"The component switches to the input state",d2e930293da37452638759e17d771adf:"Component Status",b535bea11c97ec5588b1494799de4d60:"Form Input",f7784642f42d33f506ba05f3daefc3c4:"Form Static",a8797a840f3c0bbb5297aada95f9b13a:"Form Item Static","7bb3e24cc54f4b8ee0a65d14fa4c067c":"Modify activation tab value",fd951a59a7c635d5330bc1aeec22c813:"Custom Data",b62ce3df3c0d5772006c525b60d5eeab:'The data defaults to the data field where the source component is located, you can select "Custom" to customize the required data',"0f9803bd27434940d4017007c105a861":'When "Yes" is selected, and the target component is CRUD, the request be send with this data. Other target components send with this data just when the request api is POST method.',"81e1ff0bb8917a9df99d737982ee24b7":"SubForm, configure a subform as the current form item",a5c2dba5ccf62851b24cfa12d4958ce2:"It can be used to display data and array type data, such as multiform of multiple","74104c62ed33836f0bc74297539dd7c9":"Configure options to realize selection options",b5ade3d97d5b11bc784786111e011571:"Tree structure, options can be configured through options, or options can be pulled through source","2c05e451a6f2b2fe1cf55f7afb8c8423":"Single or multiple choices, support the source pull option, which can be configured with pictures or customized HTML configuration",c65c9862813c7a66c0df52e301e0e1d1:"Applicable to options that contain sub items. You can pull options from source and support multiple choices","8f650b58c8421edecfb380d6f60ef40e":"Configure the data sources available for selection through pickerSchema to select the required data. Multiple selections are supported",b7a4abc1e4e975c9df5bb9d9cf4823ba:"Configure options through options, and pull options through source",f2fc416c7d95a93a8da621f760be8417:"Support multiple choices, input prompts, and use source to obtain options",b4482a3d9523f48e83a816fa85911185:"It is purely used to display data, such as json, date, image, progress, etc",ecfd82eb65102274188011a502913d3a:"Drawer data","951f802ebd0c0d795fbae6767a5ee9b3":"Initialize interface request succeeded",da0126992b4937a5fd847ef5366b02e6:"Data returned by initialization interface request successfully","70b8342d743374233bfee0f56c7f0fc7":"Node Sample Data","38f85482d657cd4db1280c5efa1950fd":"{{@1}} Alignment","0a0574baedb8eb2abf7daf25159d8bb1":"Set the alignment of sub elements on the spindle","5ccc4c05cd41195f202f550a4c307a64":"Set the alignment of child elements on the cross axis",b1b98c19058af70d8bd499e1899e93bc:"Layout Container","03097563d201ad3a29c79165226764e5":"The layout container is a layout effect based on CSS Flex. It is more controllable than Grid and HBox for the location of child nodes, and easier to use than CSS classes",e151c86d57096bb74dcd390ade29362b:"New column",e5f9b3a3655b8daddcee8b97b735887f:"Insert Layout Container Forward","577b33bf128fba16ed8e9bf7c395f455":"Insert Layout Container Backward","31f84d1bc6175fd0828a81b5bfd98736":"Add column level element",cbc1d00cc640b67ee34a29a694ef162a:"Left (upper) insert column level container",bb3cc092e17ff83e943554bde3d5771b:"Insert column level container on the right (lower) side",b19b454fe603e03e98ad9772615c7c32:"Positioning mode","8444f01399c0003fbb68eeff1310566c":"Specifies the positioning type of the current container element","5ddea41072a27a74a1715549dfb79bc2":"relative",e9513a013011450c57cfe3ef51b7d4b0:"Fixed (relative to window)","3059599d8ebfec00a8ab53346d9b4fa3":"Absolute (relative to parent container)","86a6b5a0a45bba5b6187cc2277e3375e":"Layout Location","6e72759ed1cbf9f9e8523197dd93888f":"Specifies the location of the current container element, which is used to configure top, right, bottom, and left.","6896da744f8ae9633263d55af0fceae1":"Hierarchy","6f649980c839dffca1506f20d534fe3d":"Specifies the stacking order of elements. Elements at higher levels will always be above elements at lower levels.",a8489cf57d7f44e889aff79434776f47:"The default is block level, which can be set to elastic layout mode (flex layout container)","4180e30c34190007ffaa654e0959b8a3":"Intra row flexible layout",ebe7bde5c9094813e2924473488d281a:"In row block level",dde193342b8c350ae29795117c0c5b9a:"Horizontal Alignment","5b15af1f73b4f2d5bb152410863602f4":"Vertical Alignment","78d32d2bd35c0262fe77b517c5a4fb62":"Arrangement direction","3fa460b81736c0360f6f7571801935b1":"If the direction is set to horizontal arrangement, children are placed from left to right; If it is set to the vertical arrangement direction, the sub items will be set from top to bottom",fa228d6bec96d052de0ad369407f5241:"Horizontal (starting point is at the right end)","2df3bc66ab3fcb0de1caf11831eff595":"Vertical (starting point at lower edge)","98b2fea2d8f3ceb81e9ce32d66383f05":"How to wrap lines","9af509c2a9636343199b9072e001826c":"Default (no line breaks)",d4054144c4341872496e3550fdb1b826:"Word wrap (reverse)",ee2df1c1a0d99094f641166535948d4b:"Elastic mode","947c03e411c20563c7ac67d0a5ad741b":"After the elastic mode is set, the current area is automatically adapted",f92626f9e56b3e2d0c47495a446acf71:"Elastic width",cf8852316501c22ea19c4e432c59e7d7:"Default Width","9cc69c8469b23b77519065d3df381113":"Define the main size occupied by the project before allocating extra space","0ad8b3b736ae5b9e23cf16ac13e1e283":"Proportion setting",fa6bb048a2f73975a40789b30c5b8a06:"Defines the magnification of the project, which is 0 by default, that is, if there is any remaining space, it will not be magnified.",c19b79073b676b9bade80613aba2dbfa:"Fixed height",d1b91a1a24f0d4935c2dd13e6a22b6d4:"The maximum width is the maximum horizontal display area of the current element",c2ed47a1f0f45cf7e2d22bddffc8a732:"Scroll mode for setting horizontal direction",cbc7af1d6422e88f4b87ade748e0f07d:"Exceeding the display",b48a90c77b5e792260d830c2d68c527e:"Beyond hiding",ddea62517e2bd1007712689746ebfe00:"Scrolling","55becc96b40692cc9cf898b331d16976":"Automatic adaptation",ede82efb4a69c35743185c6c73ab771e:"The minimum width is the smallest horizontal display area of the current element","6f420734edfaff00a8210a4c762a9207":"The maximum height is the display height with the most current elements","411f9d120093314cd38e6dd5cce398c6":"The minimum height is the smallest vertical display area of the current element",b31c6aaa78f8e24df665ce80ab5301e2:"Scroll mode for setting the vertical direction","4fc0e68b093db41b45a4ea706fbe56f3":"Center Display","55efb233147f9539de019d9abc7653f9":"Center display by setting margin: 0 auto","2bf5bcbe21f39b254a601664fb8b264d":"Default (Wrap)",b2d418355cb59a5613ecff7b150c588f:"nowrap ","7d1313925f158b747c094a7f2480e535":"Reference position","41a7494315a528f0f9618646f7e0dddf":"It can be set as upper left corner, upper right corner, lower right corner and lower left corner. The default is lower right corner","845c61ac8f51c6702dd22e5657c07e8d":"Lower right corner (default)","2794fe303cf8ad4395fe93271fae7925":"Layout containers are mainly used to design container components with complex layouts. The layout effect implemented based on CSS Flex is more controllable than Grid and HBox for the location of child nodes, and easier to use than using CSS classes",abbd790f85282349e2004df9fd494e31:"Main size occupied by default before allocating extra space",dbb93e8f413074ead24b6ed822247d98:"Insert Layout Container Above","5b5765b3fd7e72e04a5cd3e2ef6218a4":"Insert Layout Container Below",ee466872b9a43e720e296813dbc5adee:"{{@1}} Insert Column Level Container","14c495b1248756310c75396cd41f4fe9":"upper",e33ac3a4c1a95a02a18f1555038804da:"Below",e731c52010266b8ade1e7e78e25cdccc:"Common layouts",f80bd0a5546465336f4f9cafdfa8b67f:"Default Height",ba9ccf1040d7abd0848046330ba3558c:"Classic layout","230d65546ea0d299907943403608233c":"Common layout: classic layout (layout container based on CSS Flex implementation).","9bbb7cfaeb34a2b5c095ac253355f028":"Levitation vessel",a3e91631c1a3a43e09526ea7f6b8595c:"Common layout: suspended container (layout container based on CSS Flex implementation).",d423930b823fc45f08c18922b19e4e9e:"Bottom suction vessel",b8b4eb373d8ba6f98271b681fba2511d:"Common layout: bottom suction container (a layout container based on CSS Flex implementation).",faaa6444a709917ff33e0d58948504dc:"Ceiling container","1facf0bd0f56c66759857345e7434443":"Common layout: ceiling container (a layout container based on CSS Flex implementation).",f416a3a2566dda04bc0ef67027e6f460:"X axis rolling container",e3d9ad8453925764f2918dbfd6ff824e:"Common layout: x-axis rolling container (based on the layout container implemented by CSS Flex).","053e0cbf18c8fe59b928d52fcd556b88":"Y-axis rolling container",c9f089cefc06c217c6dddfe2fc772ea3:"Common layout: y-axis rolling container (a layout container based on CSS Flex implementation).","3587540660a01f8a8aff6a2c0409a404":"After the elastic mode is turned on, the current area is automatically adapted","2ea6f1f33dec7cb3c23a1bf1f9eab11a":"Mouse click",fe9228649853d08eebee72ad5521a3dd:"Triggered when the mouse clicks",a643d2fe12d205eb8fb5cffe92f62c35:"Triggered on mouse over","764c134791952dd1acb0f23587e75421":"Toggle legend selection status","262cd2f688751332c1907a659e686210":"Triggered when the legend is switched to the selected state",fd312ae2f1c24b8a14d9412bb3c6bb76:"Last n days","68cba5f27ab003cfada5eb4c1f29eb21":"Within n days","34b06708894a178c440e6f6539e95e9e":"Last n weeks",f0e1b8d8a6e731360d7348bc8301d44a:"Within n weeks","5cad2778bb8f01d1a1b1226082eb2117":"Last n months",ff76f60b3da86a0d2c6663b170a7955a:"Within n months","9ff9b56c9ed633ee09396830e93113ad":"Last n quarters","2b80b20008b3ae81136217ae10a1fbaf":"Within n quarters","84752114d27119dc50d8a7b9ac0b788b":"Last n years","5df2352afebd73d1f568ebaa81e2db28":"Within n years","8572d14f815d840bd9e940cd8ee4e380":"Add or subtract data values through up and down arrow keys on the keyboard","925d31bb30d63576600299475a910c33":"Displayed before entering content, not included in data value","42677544e2cbee28f7e7df216e685543":"Displayed after input, not included in data value","046c6233e03af774df7b90b4504fa96c":"lately","249aba763258bbe488af3e79a381d265":"day","2f8ab07bea442bc6ce8a9e99ff88e5c1":"Within days",a657f46f5bb00961adfae80d12e41b3d:"week",b1599eaa05dc9b3d90be5aebc5c84338:"Within weeks",e42b99d59954ce6437e66f416850425a:"month","3c690347976de82df1909750cbc82b80":"Within months",b62ba98a627851e911bef8fbb005bd4a:"Within quarter","465260fe80b0c3338d06194bb7a94446":"year","137bcb84f52bbd48623c37d8dfdebdff":"Within a year","279d93f2d745ed08e9034022941510dc":"Common span","7a1e5f93e362d371519bcb2bfdb0fc9a":"Custom Span","4a12e9b9fc5443e5e9999b5a7c56c19a":"Default (full)","2cb472ff9cad0c89a033c53996b52053":"Init","76ddcc0ad85aa4be6875b73244a64faf":"Triggered when a component instance is created and inserted into the DOM","584e4b6108e132be92c9de09d7bbed72":"Current Data Domain","9328b90ded33d16a873db5c0dbd815b8":"Initial data interface request successful",f3b97bd71a77cca1e9288089a537cf3b:"Triggered on successful remote initialization data interface request","9787088794f42c7e476cf7580f81447e":"Initialize the data returned by a successful data interface request","029e280e119b028bffc51424d909c07d":"SelectedItems",a6eebb9b4fc7148e2dc41335c74e6393:"Initialization of Schema interface request successful","887954cd9bdb290003984fe9a6eb99e2":"Triggered when remote initialization Schema interface request is successful","8f0064a9cfd7dcbb3c729f1357f11772":"Send data","6d33298a54888a30753373ca5bfe3bc2":"Return Data","542e06175ff4f7407c467bbde90de56a":"Turn on this option if you need to do additional data processing on the data in the returned results","7c583ecdf795ce4f1f40d7960ead9344":"Default prompt text","70941a02776496ec446f21f98ebf754e":"Request successful",f50bf418323ee425eca7208c09a4577e:"Request failed",f3dc08e3617d1e19cf8135be4412a80b:"After clicking, ask the user first, and then execute the action after manual confirmation to avoid accidental touch. Values can be taken from data field variables.",faa29265819714253843e23437b9193e:"The prompt content under normal status. If it is not filled, no prompt will pop up. Values can be taken from data field variables.",f855f46ce6146aa17a9ed423da16bfa2:"Prompt content in disabled status. If it is not filled in, a normal prompt will pop up. Values can be taken from data field variables.","037becbe8bff2f8838d141cc7b6b2df7":"Support such relative value usage as:<code>now,+3 days, - 2weeks,+1hour,+2years</code>, etc. (minute | min | hour | day | week | month | year | weekday | second | millisecond)","8f7ae284d0039fe05b9f57fd5ae3ede9":"Please select a static value","98229308e2e9484583fde4ae363a979f":"Expression or relative value","6b3c2a07db1bb3c229bbc5df48068792":"Support such relative value usage as:<code>now,+3 days, - 2weeks,+1 hour,+2 years</code>(minute | hour | day | week | month | year | weekday | second | millisecond)",dcc94ea1715bd502c709c5d5092e9c82:"Support such relative value usage as:<code>3days, 2weeks, 1hour, 2years</code>(minute | hour | day | week | month | year | weekday | second | millisecond)","13ce82d026daa5a30e50105bd2a204a6":"Please enter a relative value","31c29c46536a5007522032d2a42db56a":"Numerical template",a6a41d1bfb5896210eb527d183a07958:"Value rendering template, which supports the use of JSX and data field variables. The default is ${value}%",eadd1d64cd6ceb2c50554281cd2d3be0:"Dynamically re render the configured tabs based on this data","0d9d899edb456e8806a99850e9c38212":"Configured Expression",fbb96f7ea104d34fc4b7bd625d892c45:"Click Write Expression",e0c7ac5eb397512fdbe71600baa09dab:"Please enter a static value","48942ef507ea38d8ead03f8bfdffae5a":"Relative value configured","49041f245018a6d799fee3c6f177c782":"Exit full screen","185926bf986c784d03a9a73102da6542":"Full screen","891ec6336d4243714c25eecb2f8f774a":"Option Text",fb7ea2b05ca7328ee16a562d90c2eb96:"Option field","1ca87f0171481e27d94e81b477150b7d":"Option Template",d6ecb32a380c91887a9346653c2427e9:"Customized option rendering template, supporting the use of JSX and data field variables",cb048b2d8426afd464dc01b72c446342:"Block level (default)","3b6e8d54b7b2ae890d5357b7eaaeaaf2":"No line breaks (default)","0611733b53e0098e6fd880bd44b2806f":"The minimum height is the smallest vertical display area of the current element","03bfb834c8a5fef58d885e448a4e13b4":"Virtual List Threshold","50437e080edc71ab624c93d419472919":"When the number of options exceeds the threshold, the virtual list is opened to optimize performance","02b9880e1d2df8a07e90e9878080c739":"Option Height",a3f66655c3d2bcfecc6afba0e4424460:"Height of each option when virtual list is turned on","183f00df0922a6be371fea58cd46a60a":"Elastic height","9e7c8d1554f6449121a83f951cf21ca1":"Elastic scale",ff9e9329fe186be342ef59ee711b9371:"Y-axis scrolling mode",c18457fe4f249f06b48297ccfe6224e8:"X-axis scrolling mode","99b57d8c9244ff9a695fcd519b4e2e57":"Maximum width",fc2bc4193eea63128961d09497e07dc8:"Maximum height",a2b62974f4d7564bb68b570116f25a10:"Minimum width","2bd921d0ea7a73b77ee0fcddb1afcc84":"Minimum height",eb7366583485f478e3d8c2b105ea51ff:"Defines the magnification of the item. If it is set to 0, it will not be magnified even if there is space left in the parent container.","5d3d48de1ba22368eacdc1c69fb044ce":"Component inner layer CSS class name","72c32b47c5e4dcd58ddabdb8fde761a0":"Suspended container: a special layout container based on CSS Flex implementation.",a03384e93b62e3110aa92c9e345111ba:"Bottom suction container: a layout container based on CSS Flex.",f564e3e66dd2aca0e080cb6484c95a5e:"Ceiling container: a layout container based on CSS Flex.",db805d4e361ac2d3fc6047eaea1a7c69:"Free container","9ccbfde404798593fa6fdeac9dbef200":"Free container: its direct child elements support dragging to adjust the position.",f20ca09e513399510ce34ba2cb05b7d9:"X axis rolling container: a layout container based on CSS Flex implementation.","47ef0cec2c3436377a42390e10de4567":"Y-axis rolling container: a layout container based on CSS Flex.","8c2bb89f516205027b9ed6609fb17726":"Blocking condition","46a3c6ab94da0b16a707bdd3b74c9e09":"When the conditions are met, the execution of subsequent actions of the current event will be blocked","6e6d4269d0dc3324d551062350a2ae9f":"Silent request","56e13c39822a814ab39b0d5a0867d7dc":"When enabled, the service request will be sent in a silent mode, that is, no success or error message will pop up.","7f019b96ffb7d72ec8d6ce8d76e5362f":"Expression configured","699829ed5bab67dfb360764c3bbaed4e":"{{@1}} - Event Configuration","5ba999eb762f60324033b735e55d989c":"Event weight prevention","7fe94616be0e8fb5ef5ab40a7397f0aa":"After event anti duplication is enabled, only the last event will be executed when triggered multiple times within the anti duplication time","91b72e901f1663637157cda638ac4dcc":"Anti gravity time","969e9e56b3812abffa3994f35ea31835":"Adsorption vessel",bb0e1fea25aafbe731886295fcef9a2e:"Adsorption container: It can be set as a ceiling or ceiling display.","7d30297d4e1f310c73b27be88c748026":"Adsorption position","2ea76e2ffc1b92911d6f7decfa993360":"Top","8cfc818a76662085cb64752d6d592fbe":"Bottom",e2f6535e21570a0703c7c65f41b30eaa:"Rolling adsorption","1c5ea0ffb2b15713cb22c41a02576924":"When rolling adsorption is enabled, the adsorption mode will be automatically enabled when rolling to the upper and lower edges of the parent container.","5f9be0002394f0b58952969d5952e24c":"Used to set the position of rolling adsorption","28968f372fe88c0ef855c7f79f42bbad":"uniform distribution",d481ed97681365f18cf20ef914473a02:"Align Start","02f6ac7a3bf6a8b4440a2a1c3e1daeea":"Align End",cbac406a3f51abad691702015b0784ba:"Full height","5a4e41af91746f8a3905aa9f66048955":"Load Settings","6ade3082696deb00357f5c0359093cd4":"Merge to upper loading",b6ac896eff6a6502e4ae7079b3e507a5:"Not displaying loading","0e9ffe1f1cf3f7a620970ea75dba9f39":"Use page global loading",b1119174b1beedd2218e0b359ef14aec:"Form submission",c6a65a86cd2bd74a6f72df0a7b81d3cb:"After the event is configured, the default verification, submission to the api or target and other behaviors will not be triggered when the form is submitted. All behaviors need to be configured by yourself",c207ba29769aca6ffd45db9f80bcb29e:"Zero as head",f02f876ee64cc016d97fa4dc498d4857:"Height setting","091885db07e43ff7cbe60c3b664b0b50":"Elastic","363165ccee78341a65f1d42174e8b08f":"Adaptation",eb44269adb6ba70569cd62ea88cb2750:"Elastic Settings","64561733c68085af3d09315c1d4d7ed6":"Mouse Event Object","052f93928af33d4d7035e7c8e8a73f17":"The alignment is set by the margin value, where margin: 0 auto is used to set the center alignment",a738a8594bd2b71002d09277b84d86dd:"Left",fc0f19e9e47e352d36d36cf6eb653210:"Right",c70638412c6cffd150117ae403dea939:"Component static data","77fdd35933c099cdcb64b71f3fbe7a6c":"Data List",f01c3cd99ecb0c534cc47081d3433c9f:"custom style",f7e3d7e3146bb53b5e6f09f7c90dea3a:"Input Box Style",a39a2916d17f2b9ba11853066b4225f3:"AddOn Style","9b6425cd2d496c9cb5a6c6b8ff125d1b":"Input box",b9745a6b870f02a0483a4a4f74814c68:"Custom style source code",ec8f3e4a298160dface2fda5c0125df2:"Please enter the class name","7e8eb474f73b6fd60c9aa5082f75e008":"Label Style",ef55ff12fb0d3efa3491236fee4dabc2:"Description Style","60bac4c0a381a42b320a703227be59eb":"spacing","00d1a6230e9a31664c895e95fde707d3":"Add Item",cf3f7c0c1e6c77197bb0b6508a9173aa:"Add a new item","3a553b1123f403cf1f81eb28b3e4b814":"Maximum number","93bc4888bc13bb6e6c49b34b54077438":"Minimum number",e61c32382d879b867938086a50ef094e:"Flat value","30d4e9f1c60f2d5851f77463476d568b":"If you need to expand the user-defined new functions, you can expand them by configuring components-new items","405a48545938c075e62eafb80b732769":"Button mode",f4b06bd9e4f5ceaac7fbb0e17fffc518:"Copywriting","178bf4dd4b8d56370e2fc8275f9dc9e4":"Delete the confirmation document. When the configuration deletion interface takes effect",cb8f7758eb03574f9b8402659c0f02b2:"Are you sure you want to delete?",f7894f17d0eba299011d856ce3efea73:"Automatically populate parent variables","7fc8dab2069004acb8f5c98c27ee0883":"Sync Fields","8e32c9ffc35059f8ac5254ffaf3c99b0":"Title template","21766034147682a2435ecc766de5ea22":"Multiline display",d8848daffd80dbb21ace876ade2ea8a8:"Administrative code","977cfa6e8c7f036674afedfcc19ec7a2":"Object structure","05fcf03ba044a04ce81bdbe6eaf49d17":"Optional cities","912beb37a3785e50d6483852be41111f":"Tree structure selection, supporting the appearance switch between [Embedded Mode] and [Floating Layer Mode]","0b52d7d00ed28e41f4845fec1622d056":"Tree, tree drop-down, tree drop-down box, tree-select",ea687c59ff7d980afc55427853af864a:"Tree selection box - embedded mode",ce0e89aa6a8e17562c265714b33b4f82:"Edit mode",ba1a077af717cb3c4788849c2342200b:"The configuration interface for immediate saving is given separately. If it is not configured, quickSaveItemApi is used by default.",cf8774ca07f11ecb14b3b59c3891e9cc:'<p>The current component has stopped maintenance. It is recommended that you use<a href=“ https://baidu.gitee.io/amis/zh-CN/components/form/formitem#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA " target="_ Blank ">Static display</a>The new feature implements the static display of form items</p>',"26122d95c72204c83ebdc37cd16a96f9":"Picture enlargement function",a19769d02b8de60a1e3b46c3ef96f122:"There is a conflict between the zoom function and the open external link function. If you want to open the external link when clicking, please close this function first",d196eb8f65e84003b7ca64d5dd8fc737:"Occupy bitmap",d98b3f3d11e6dce8eac1a041247fbc50:"Picture list","8e1fee898434093aad55f5888497f970":"<p>Currently, it is configured for the field content node. There are more configurations for selecting the upper layer</p>","86aafaa75b388deb4a4cbdab2293c099":"head",e6aa1b827415217c524ae9d9b665cca5:"Configure header",a2ecfd5a0db9c855f59eea75083678e6:"Configure bottom","1d3d7de6b84f4d5d4a4e126e145af132":"Text encoding",d55bbcd785be46c3182dcd7663c3c041:"Returns the character encoding of the content, such as UTF-8, ISO-8859-2, KOI8-R, GBK, and so on. Default UTF-8","0021bd6b2290ddca1ad6a9c8848377bc":"Load prompt",f013ea9dcba3f5ca1278aa850931fec8:"Loading",d7eb1e98e6cfbe38ab3b242c4dda1b7b:"Follow bottom",ab2dd531871defe1ef7d8d06548411f3:"Automatically scroll to the bottom to view the latest log content","41058383885336fbe750665044e4e38a":"The following action buttons can be added at the top of the log","095e938e2a09eaddc8db146b86879f4a":"stop it","0cee3cd1e0b0956fb3447d7188553e4b":"Hide line number",c2f42bd2a149bbeb4627b1e1b5fabedb:"performance optimization","45f14d9548decc8a1df4e470efcf8d08":"Height of each row","7a5d14c5f61745f08700ba315609cf9a":"Show rows",bddc8f2d9bdcc083bb4f3dd38eaba459:"Display area height","0218cbc88086353118fea07e364334d4":"happy","8167b3dd560a83cdc757d1022ff111e2":"anger","8fa28f95c03faa7cc87e487a89a35a72":"Sad",d246bdddaf59436cb2160837f7bef634:"apathy","2ab01e418dca1500dcb133d50656deea":"commonly","3585e4dd456b41fb8aec43f927b6a27c":"Custom Display Template","25e4c39320150bca74b4c05c7740e365":"Configure display templates","9e25d776a57c610940bcc1c19847b97d":"Top outer layer","2ec1b0bb189b486945e79c167a4a024d":"Bottom outer layer","77ad0879912d0a306724c319eed113e2":"Label for marking and selection",ee66d7a2d02188816d633d11cf1a8b27:"General label","092c4410e162bb3371f2aab804501f24":"Front icon","3e7392ab43c6c76f294f41c3058c2ab1":"Value matching field","2135be5a60fc3c6fe864e159e289af51":"When the mapping table is an array object and the object has multiple keys, the field used to match the value is value by default","6a1ca1c113a9b5bee58ea009e40f5954":"Matching field, default is value",dc7becbad712786c9e4766636047e509:"When the mapping table is an array object, it is used as the display field. Please use a custom display template to display multiple fields. The default is label","1140acc9ac4b803b733f70445e7d495a":"Display field, default is label","55497c5de8558f1a164e437205cd510b":"<p>When the value hits the left key, display the content on the right<br/>When the value does not hit, display the content with the key<code>*</code>by default</div><br/>(please ensure that the key value is unique)","94124fa72dbfbb81611496cada6ebf4c":"Please keep the array member structure the same",a3221d2d224767df4afa7a8653ded8fe:"Internal alignment",e8bb313fb86cf474c0e264794bc85896:"Whether to fix the header","8e903bee4578f72bbecf9eb62d7b875c":"Display level",c17fef27ea1d970fc66f4c4c3d442129:"Default inner spacing","236b0cdd2e18418fd17d3cdfcace239e":"plug-in unit",defe851634125bb16e762f26dbb6555f:"see https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/ file",df025e01cbbae804f7d720e6b932e8e8:"Show menu bar",b74c3bbb8ec4f18896cd3b5a20ee9e2c:"Toolbar - Large Screen",e08c3505f9779bf919628166a77d0d77:"Screen width ≥ 1200px, reference document: https://froala.com/wysiwyg-editor/docs/options/","04f91b84d48285162d3e29205a194143":"Toolbar - middle screen","9ac0e46a361565f0b8be2228bef4b679":"Screen width ≥ 992px, if not configured, it will be consistent with the toolbar set for the large screen. Refer to the document: https://froala.com/wysiwyg-editor/docs/options/","70d3894aaed305d2fc67f91122d77759":"Toolbar - small screen",a3133ac3b34da77e612bcb1763adae1e:"Screen width ≥ 768px, if not configured, it is consistent with the toolbar set for large screen. Refer to the document: https://froala.com/wysiwyg-editor/docs/options/","194ab42ad1ca7fca9a6ef84fadf99490":"Quick Insert","94621f44f98c996e49d5b214aebefffc":"word count ",b720ed498f054a2539d496d0da68f85b:"Picture receiving interface","376496a8918c57220159951e24d3b72d":"Video receiving interface","555a9859e2c34b015438bdfb59a57c5b":'${vendor==="tinymce"? "Editor": "edit area"}',afccc17d5d672b10a1292dcd671ef534:"Quickly build a table edit box","1711a82f9b0825015c2c49d9659c9837":"Display type","63bb911d6392cb2740140d406ab83d37":"Edit Type","6530334ebf5ca810e576858eba168685":"Selection box",f25cb224e4543c1dc0228fca8dbfaf1c:"Color selection box","1145703a07e11b6e680ee2ec8afae0b4":"Checkbox ",a877779dc422c5321057b638d6d520e5:"City selector",e2c59e63f751088ad8b43a1439e4322a:"Add single line data","41c1e36d5d202588511710ff0ccb9e8d":"Delete single line data",f38b7eb6f78af9ae86c449153de2fe1f:"Clear component data","5e2eb93cf353f5bfa0920553fc8a0087":"Trigger table data update",efc47e9829b5831e4d0424191049b880:"Delete data of a row","383c125a11b0dd070b04194b9e2e78fb":'It takes effect when a single line of data is added or edited. When opening, after entering the content, you need to click the "Save" button on the right side of the form before submitting to the data field. If it is not enabled, the data field can be submitted after the content is entered.',"1d96dc9b36793e242322dd1e092a010c":"Confirm button name",c507f40ae40ad10fd0b99ac025a6e5d4:"Confirm icon",e0698c2a2d5c568edfc5a0b1a1d298eb:"Cancel button name","08f06b06a0db0e978e3acdf7741ccd86":"Cancel icon",ffa655818f7dd46fb2a767c51618741b:"Empty data prompt",d173fb23320acba326a4424133969256:"Show sequence number","26eb498526ba909386befc43466db79d":"Number of displays per page","078f9734eeef4ff8c06e0b639ce6bd8f":"If it is empty, no paging will be performed","52029187eaa09f55193b6a15387e45ca":"Minimum number of rows","3d99d1f17ebf865877e681397c61dc9d":"Maximum number of rows",aa8b2a821e8e32196a720eaaa41b64d3:"For performance, the default change of other form item values will not update the current table. Sometimes, in order to obtain other form item fields synchronously, you need to enable this.","2aa56a9b94ee3fde76a15711c94fdabc":'Whether the parent data, that is, the peer data in the form, can be accessed, usually needs to be used with the "Strict Mode" attribute.',"53a9db06d0b7e3482dc21e53f150e257":"Row style",d679aea3aae1201e38c4baaaeef86efe:"In operation",e5ac1d2029adff17ec123b86ea07ce26:"Queuing",f406ef0ea3f09572835a9b1ec61f576a:"Scheduling",acd5cb847a4aff235c9a01ddeb6f9770:"fail","391299a1c1722a777991a182a44bccbf":"The following states are supported by default and can be used without configuration. The custom state is merged with the default state.","33563f1d3d203bc682069a8c85506b86":"Default icon value","2cc90d2f2cd9ba213f9aace88c386f3f":"Default label",aad245582dc9f55cf71e3934bb3b1709:"Default value value","2634cea5a95ece79e05b5a68c38cbd4d":"Required ","2464e9d13bfc84169eb8333b6996203c":"Update the data value of the target component or variable",c85c8d61a67014c4b5d44f25e49e87fc:"Set variable",df24d894cd3331f53964bc75f5c192e2:'"',"9e1bafbb00018beacc8f579c8ddfaa36":"Set component","6c6e12c54723170f214527bedaf81f7d":"Action type","1b7e6b2dbf3b7f4b1baf2c42e49a995d":"Component variables","2eb4c7ac45befad0f1f9c750bda57166":"Apply temporary variables","844a7a7aacc5be82d0fd6225edc6bf63":"Please select a variable","85451d2eb59327a23e8f745161066d4a":"Please enter variable value","3d4d83f05a12364e2522fcfb265d8ce8":'When it is enabled, you need to click the "Save" button on the right side of the table to add or edit component data. When not enabled, add, edit and delete operations directly change component data.',c18169dd6fceab2f023216fa6f7d22c1:"Confirm button icon","5720057e62e80f7a04489dc4c035b4f1":"Cancel button icon","8985ea173dce8f9bee667b3cdf0b7bdf":'This configuration item only applies to the "Add" button in the table operation bar',"3f64a567662a24714768237a3a6d0de7":"New button below the table","9dd651411c1cb25e19249bb4ea8878c3":"Animation interval (ms)","46bc66b19c2b589ebd24d1c583325080":"Animation duration (ms)","9cb33a16b57ef10b79ae76a66379d66f":"Arrows are always displayed","0bf60b32f9db93b87e08763b1c815469":"quantity","98e04bf7cb91497e4225d272e3a331c8":"Custom Arrows","7076ef56f5c4f13d3c9bf87d3536352f":"left arrow",fce3880b7a24a47f02a16331a294b255:"Right arrow",f4f965513462fcc9fe6fe896a9c249d8:"Multi-picture display","522cddc343d72db3db80cf3d71f99210":"The API return format is incorrect. Please click the example on the right side of the interface address to view the CRUD data interface structure requirements","5323ab3e5c12066101244f0577c30e22":"Custom container area",b34422e637c90181d3fca4485a97c712:"fraction","95e0d70d1809d5267c2419eda58e78ca":"Grade",c13998e4c837dc40b8e90828d99561df:"If it is blank, editing is not supported","738b58219dda4a849e293c0f75d06438":"New button in operation bar","306abb77f96a1048cf6e61bfe6e7bae4":"If it is empty, no paging will be performed","136ecd1380f3fa10c1fd99b93c63fc9b":"Whether to open a new page","9778ba8e0cbbae9471485dfc28df8948":"Whether to expand initially","18eae9f567a9c425bf59147a2601ee6a":"Menu click","12b91237057ca7d81d50cca9873c8267":"Triggered when the menu is clicked","0a974408aab362095e939e5364315971":"Menu selected","4b5f4893cf06a9d9ea5b8486bef87c26":"Triggered when the menu is selected","9b317a5d43f72026b0c0699b1d596436":"Menu expansion","9ef3c85c39e1e686f6b8c58292352ce1":"Triggered when the menu is expanded",afce1df2e30a4674f507292d642fe270:"Menu collapse","4015091668f286adf085d60a040f89a1":"Triggered when the menu is collapsed","2631c12c40aa18fff4c6a2793f03f95b":"Data loading completed","26a92da0738fed6a6178be565cfb3a59":"Triggered after data loading","67d8dc76a8c8a3f0f52232969d72e8bb":"Update menu items","12fbc0729d69e4243c4818093e96de8c":"Trigger component update menu item",ee621e1f1429f1150a69bd02eecf6964:"Trigger the folding and expansion of components",e0e2b0cf2a3c8379b1d9144b10b3824d:"Horizontal placement","8dd27bbe64ec245ce449caab5cf7f12b":"The default is inline mode. After opening, the submenu will not expand below the parent level, but will be displayed on the side of the menu","154a7ec36c43427f73705ae834967703":"Submenu floating display","9dcb6b749d6682f1ac51b2dcdefd3208":"Click the menu to expand only the current parent menu and collapse other expanded menus","49a84da9b39148af54903ba4c6ed257f":"Default expansion level",d4b70ea3a756ec4d06c8ecb2f27330ab:"Expand the corresponding level of all menus by default","96198d14846a941a60824bd6ebda4d9e":"Maximum display level",cac013d011fe1ac71c3b9f0bd0594d65:"After configuration, menu items beyond this level will be hidden. For example, if the maximum display level is two, three levels and below of menu items will be hidden","7419d6bab78d959d5c3b7a38f9888258":"menu item","1a9aaf05889002e65708c4950012a652":"Yes, you just clicked","243e91d5fbc5a03a5c54da6d8e662e4f":"Page renderer, the top entry of the page. It contains multiple regions. You can choose to place different renderers in different regions.",a7999d1390b7dc775e4287511c395d6c:"Corner type","31175366279c15232e27b6736ccb2fd4":"Only valid if the text content is numeric","58f966670529f4753fb3c5a0647606be":"size",b3c1b71ed42c7f2fe55f3c64346f1ae6:"The corner marker style is configured here. The corner marker takes effect after the corner marker content is configured in the menu item at the same time","515e8b11c3c24c6c3b03c6c76b1da496":"Default selected menu","4f80ea1e761598ba9fe393e7c745468d":"Priority is given to matching according to the URL of the current browser address bar, and the menu item you configured will be selected in case of miss",e3cd6fc0612b22f7c7e209b8184378c8:"Menu name:","4cd5629f32fc9710fbb0291b51adc34b":"Please enter a menu name","9e0b4b20e7177b83916ab7b017c4162b":"Jump address:","2e507449ccaac4522f503f0ec3dfffa9":"Please enter jump address",ec3cc7a898eb5eb6f87a1d70a22a05c7:"Whether to open a new page:",a93a3970825296478d40658ad07af43a:"Whether to fold initially:",d5004744a86589d72041b0a3fa8efa7b:"Include submenus:","14794add5446201274dd148086bc0361":"add menu",aae5ccb98564e19c48f19c740c3c10b7:"Default (static)","5d721446605f21bddb3b8e2ab2a3841c":"Relative",b55b525d56fd0d4d3dcb9291e59e3433:"Fixed","25ece43050dda20ad4d8dd058dd590d1":"Absolute","22b47452f52254ce07507287d137d167":'<div>When data mapping is enabled, the data in the pop-up box will only contain the set part. Please bind the data. For example: {"a": " ${a}", "b": 2}</ div>',"68419387f5bb8487a848b818d78424ae":'<div>When the value is__ When undefined, it means to delete the corresponding field. You can combine {"&": " $$"} to achieve the blacklist effect</ div>',cb65841ea7dec5ae0af20b3f5e52abfc:"Raw data leveling","6922790f45faf064e063069816e4d2ec":"After opening, all the original data will be flattened and set in the data, and customized on this basis","9791b05a4df9d72f1a01b81fa695fbc6":'When the grouping names of multiple columns are consistent, the table will display the super header on the upper layer of the display header.<a href=“ https://baidu.github.io/amis/zh-CN/components/table#%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4 " target="_ Blank ">Example</a>',"7441768e25f67a80f0f2173c2a618c35":"Date value","8036cf5e8dbf62ee4f4e896f7354ce5c":"Date Time Value","598f69a9b640508d8e124fd7d33131f0":"Select icon",ef79da787ad206e5d5f8cf62e195c836:"Icon size",ff58428ef8221c4c1bbf532dd3c77113:"Icon Bottom Margin","88f109195ad926bcd436f0c56198240d":"Image upload button",d825ba2b8ea0c1b0737b0dd5ca9bc128:"Upload icon",bade9c4e0b8a75a251c1a2760571d3c3:"Number Input Box Style","53069052573de671c6e5108de745b036":"Number input box","5c48fa6f337d2b5dd168a0887c6baa2b":"Table Form Data",fb7b49ff7f85f6e3f995b5eaae42d084:"Label selection","0aefac04b467ce313ca6b05e33c6145a":"Maximum Word Count","188676cb26835b8e4d8ea568467c55cd":"Limit the maximum number of text input",f1ee660e12ef0b76c10cccc3d923e605:"AK cannot be empty, please visit http://lbsyun.baidu.com/ Obtain Key (AK)","4d01bb9f50eb1480e0e9995a2a003181":'Please select<a href=“ http://lbsyun.baidu.com/ " target="_ Blank "class=" text sm ">Baidu Maps open platform</a>Get',f1f7a5f821ca0ee4caaa9324eda48d91:"Static Form Item","4602761ee85e2e6e5360cd13fe642a08":'<p>The current component has stopped maintenance. It is recommended that you use the new feature of<a="/amis/zh CN/components/form/formitem #% E9% 85% 8D% E7% BD% AE% E9% 9D% 99% E6% 80% 81% E5% B1% 95% E7% A4% BA" target="_blank">static display</a>to achieve static display of form items</ p>',"6ca92e3386f9e392584367df5054c27c":"Used to display an icon, you can configure different icon styles.","47fd366b711a0567646854f541449f8b":"For example:  ${listVar}, used to associate existing data in the scope","98204720c30a843a9234bdf22dc05d51":"Elastic Layout Settings","3212f1de74130815d12d982437fc6919":"Document Preview",a7199769ae58f8a5c35ac0e5f8804abf:"Office Document Preview",e414473c886072e393710563f201d7f3:"Printing","6a62d33c838524f0609a624aa59ee9e7":"print a document",f26ef914245883c80f181c4aade2ed04:"download",fc856cd721f5b5955f8c4be2767a1cee:"Download Documents","270c7dfc38ec1f8eb7b211481d26659a":"Document Address","2bd4fa4fe6637a09add46354f52ea9dc":"Whether to render","010787d733c97c5f7a8f9bda438af9e2":"Word rendering configuration","9a50cbc2f0c7115043a19c3b1db5776b":"Ignore width","927ed823f52a6d3bbceed4436636a7dd":"Page Inner Margin","755ea661684e7bffe9f97fb07b8d4921":"List using font","9b87dc5a019f749722a1d3a9c854a2b9":"Variable Replacement",c6adeba660df8e19ac6cd3b8c57416ad:"Forced row height",b93ea0046d63e2df7cf24a7a63bf5c99:"Font Mapping",f6e9b56f97af64235bf81f4ddc2288ab:"Whether to enable pagination rendering","4c71a09da7ce050d45514b68bb15b4ab":"Page Top and Bottom Margins","3651c159e19c05a3bdaa7036dac91e4e":"Page background color","91bc444339545a7785f3aa3055d9ba05":"Show page shadows",c856051e8c80913ff6607dc880341a20:"Whether to display page packages","6a6772a0eae27591ed8763b6e616e988":"Page Wrap Width","22bca073daae505d7fc9e7d7c8ee047c":"Page Wrap Background Color","2839785a190e062058635add192f961d":"Zoom ratio","9723e66141840db4dc6bd1db9b165302":"Adaptive width",b7dd79307fb7bcc921aa1b94ef904fe9:"Behavior button",c3e817974de836e80c95cc6ce5718eff:"Search box","83fe6a5db780fcfa68f3336c7d86f25b":"Used to display a simple search box, usually used in conjunction with other components. For example, after configuring initApi on the page, it can be used to achieve simple data filtering and lookup, and name keywords will be passed as parameters to initApi on the page.",bb50b53491c2c43845c58b16e48c27f3:"Search box content","68a896ef9627fea8cd84f3fa4f7269aa":"Click Search",a7be3c702997f49cf9429240fbbc5e36:"Triggered when clicking on the search icon","1c113a8c88ba15fc1ff04ea410e63f33":"Search Content","0796ba76b4b553687e5ffaeb78512ccb":"Basics","218bcea849478df7335ac31072860e8e":"Search immediately after clearing",a48b511d5da79faf6f7f58c5470738f0:"Search Now","71c198baa12405e56705a3c68f66e3ef":"Mini version",b814fb5782f733a22ee561397ad376fc:"Strengthen Style","87d88a457161f2a09f95f6aa29b38051":"Step Bar","2a9a1329b191c2787b1a70c289e3bbe0":"vertical",d517acb68fbed2331b57d1a11ca21dcc:"simple","341fe804cc8b65dc17a31c7a25a90444":"Label Name",d04f139ee0fb6fac19ccaec0f7b323df:"Click to close",fe7967a547915be9ae4083ed50c3b94a:"Triggered when clicked to close",b624985146c759cfeb1be80325eccd65:"Text prompt","6d8e3115be41a8a5690d6fefa637dac7":"The data returned by the interface needs to conform to the following format, with status, msg, and data as necessary fields","09212e946a4d9b0f775700c46ef0dcd5":"Returning 0 indicates that the current interface is returning correctly, otherwise it will be processed as an error request","7391774e57425e5d8e83de64100b5f2e":"Returns interface processing information, mainly used for displaying the toast when a form submission or request fails",fa385c23820ee9999c82035086baa772:"Must return an object with a key value structure","6494bc042d99f2f5de34a858b8a699c6":"Verification interface return format field description:",e6246c03148f553e5d6a66adbdabb9f8:"Returning 0 indicates successful verification, 422 indicates failed verification",b8079b9d1e6d3e8a457787910a75cce4:"When the return status is 422, the displayed verification failure message",a59c65bea7d5065f19eb9c918a716c33:"The modified API object must be returned.","05fb5edb84e41c19b0f5429fff20b834":"Return adapter","98498eb59e87ec9a0eaf98ac55628da9":"The current request's response payload, which is response.data",ed33c46d1d69336bb011813e8352fa01:"horizontal direction","963e9ff4252cdef288063c41eb6d4998":"vertical direction","4117e80d2c2e52f795ec64160f399364":"Vertically centered",d365d58d281508b9982f6a0370649ae2:"horizontally","21af94c1abc5891b2703c9321417a1a9":"Interval distribution","849b9b944a65eb0685f3e6af60a0c523":"Horizontal spreading","50334fc77fc5a2c2636f14f158d3c417":"Context variables","7f05bea37729325a6cc84eb26bb9f8c8":"Please enter the subscript text",bc3f5a690d8c3a47d27ef8a1b127bafc:"Hidden options cannot be set as default values","240a19929878c26f5e4c41c08f63cd1c":"Interface verification",c6f30c2f084ddeacb7944235348bdaa4:"Memory variables",fa6b01f51cc2b8e16bfbb914b6c08ace:"Confirmation dialog box","4cb9c4bc5cb960fcd03fceb2d2e62f3a":"Drawer Title",fd2bed5e9a84273b22f79950a0a1807f:"Suspended Style","1daee167a43c72dbe9e31e955b670b4f":"Click on Style",d117954f3769008ef22b864060913c65:"Disabled Style",d37c4140bd531fc117e91e727d7e576c:"Normal state style","0371c0e05806c01e5ce2f26e9e2e39c8":"Edit Style Source Code",bb7654f7c2768614e95a0da7e94f4045:"Expected colon",af26fdb215bad5b2296529802b129c12:"Expected attribute","3955b2e2e06144010a1142d3624b17b1":"Missing semicolon","052f7eec7ca35a6b4d72d169ee1de494":"Please enter an expression","10710f1c01d960a3ffde384115296026":"Block level","26b10072a4e0c8c9a3a1142db3d7b3b4":"Inline block","2c7fe494c99c94ba5965f963fd7d3a4c":"Inline element","39353c2b258e4bc73d8dd6a46f0a7955":"Flexible layout (flex)","553333a72dec41b54e8ed18d49453a76":"Select the first item by default","86bf16f0cb7fd8b1fef2e1439e06b632":"Style source code","7893f221dae53be8e3bfe72d2eb8a240":"Icon size",f36616e35765ac3d5c9c7646e50a305d:"Initialize data interface request completed","48c43999cf3908d9f5100a6d5f0b4404":"Triggered when the remote initialization data interface request is completed",aa6070a7f454f554fc1c7d8b1d2d935f:"Response data","23d861e4b6635508eb877a50a9333a9b":"Response status (0 indicates success)",a303669d47440ed05558efbf3d5d0592:"Response message","31769d6063c5ab0cfee842b395916fd4":"Total number of rows","092798b39c21e4f73dea5107fef3a61c":"Response status",a556b5535b6b0e5925d59bbc54b58946:"Initialize Schema interface request completed","2cfbb19c3e801c5f4a11dafa1ec7884d":"Triggered when the remote initialization of the Schema interface request is completed","7bb4a8abc423086dbd1edeed4cd3f718":"Current row data",f74fd69ce55e3f96fe9a032c0da42330:"Current row index","5db079b140feffa84c84d1b51d824dea":"Mouse in row event","90a5608bcd85a3cfcfbb5263a229915c":"Triggered when moving into the entire row",e8bf039de5dc6751c4045f55930e0c83:"Mouse movement travel event",f1ca0d305f3251a81f361a2dc8e11fff:"Triggered when moving out the entire row","41c5c859a80b635c23b3b4d1d8b44efb":"Selected row",f87912f19be48f36e4e261e585764d6e:"Unselected row",f97f8b90f09fb7df39c5c9ae3554b4c7:"Update list records","0449dab523020003eee89a0751e1c003":"Content area adaptive height",e406488d1b9545168eb1896e35139bf2:"Confirm button copy",d919d62d7e5ec5cb63ad47e5dc347a7e:"Cancel button copy",b12df8decf62700970e08b9b2ebce1f8:"Confirm Button Style","7f29931020c2d8ce97b8043a933db151":"Cancel Button Style","1b43b43e692a5b6b2f6ec1417791a550":"Remote request polling ended","0de773dedbe5875ca4529e7d0ce9d2bf":"Triggered after asyncApi remote request polling ends","9bf078fb5589f2c09031f1f2b5a8d2b1":"After setting this property, after the form is submitted and sent to the save interface, it will continue to poll for requests to that interface until the finished property is returned as true",f63ba7e3c9d8de0b8b4f769055a36d2e:"After setting this property, after the form requests initApi, it will continue to poll for requests to the interface until the finished property is returned as true","58477471b3bb8ad53fe9ab18a244868b":"add rows","6070fdf451b08e4302a7dab560771222":"Triggered when clicking the add button in the bottom left corner or the add button in the right action bar of a certain line",c9f63503ee66082fc00c3e6eac57a95f:"List Record","7b25d5ff93da66fe95b5409731bb9838":"Add Row Record Index","5e3640e4bc8efbe00a7b7c6ba169560c":"Confirm Add","008ae858112dcc7739985045e4326f3a":"Activate the 'confirm mode', click the add button, fill in the data, and click the 'save' button to trigger","1fb1cbe49c3e72c2b5f4e0151a4cb5d9":"Add Line Record","3fdaeadf0e8a3154ae62784f04138c28":"Successfully added",bd4ef227fe8aae88ae6aa97236c0e9bb:'Trigger when "Confirm Mode" is enabled and "Add Interface" is configured, and "Save" is clicked to successfully add it',"6452a05591d7402a8bcd9fadc950c449":"Add failed",bd7c39d10dbf6985d2be2d9a4fdcccf7:'Turn on "Confirm Mode" and configure "New Interface". Trigger when calling interface fails after clicking "Save"',"37122b9e4499da38258b3d51b09d68a1":"Error message returned by the interface after request failure","88ebffeee507da0f0d039eb2d05f7e2c":"Edit Line",daf24d1f83e1b4fce2f57a6b041ddba6:'Triggered when clicking the "Edit" button on the right side of a row',a9e009a9936bf5bcc9d4eabcb3e952e0:"Record in row",e756ec22a0f897c4dd886c5f4a95b7a6:"Record index of the row","4271f29faca65d7840ad6bb2c4a7b8c6":"Confirm Editing","562f54a2fec7a68f85ff192a68cf69f2":"Activate the 'Confirm Mode', click the 'Edit' button, fill in the data, and click the 'Save' button to trigger","3bb47b67994cb374e601fab35f63bc8e":"Successfully edited",b394745a8a77179da0000293638e8a56:'Triggered when "confirm mode" is enabled and "editing interface" is configured, and "save" is clicked to successfully edit',"9304e8f4c324b5882b550caa971b64b8":"Editing failed",b9d277c3ffab7d4b955ad10308c7ae0a:'Turn on "confirmation mode" and configure "editing interface". Trigger when calling interface fails after clicking "Save"',"650bccdd6f99fe5fc4ca6cb8788e7cb4":"Error message returned after requesting an error","947fa341a6d676d7f25bae6bef8342cd":"Delete Row","7508f6d66d920323d87a9f9d58487a40":'Triggered when the "Delete" button is clicked on the right side of a row',"0007d170de017dafc266aa03926d7f00":"Successfully deleted","13640e78822f62b7b71bfabb4604025e":"Configured 'Delete Interface', triggered when the interface is successfully called",acf0664a54dc58d9d0377bb56e162092:"Delete failed","14d36ca583bcbfc5516a000eb06ccedd":"Configured 'delete interface', triggered when interface call fails","692dc28abc42931daca8fa12d69d5c99":"Triggered when table data changes",f8692d409bb7f122a374872e01efd03a:"Add Row Data","459fd144ee129b501545d19c169269e9":"Insert Position","196e71fa869b8410088b4ceb54aa7988":"Please enter the line number. If it is blank, insert it in the header",a26858cccbc451fd53515416a5968550:"Add a new line",c520ed9911d349c7974116d3d1e1423e:"Add Fields","344c1c96f9cb3275f972929755b4e238":"Delete a row of data","8910acd418e45a30f01e7e531b90b61b":"Delete Method",ebf62450c3fb11c0b7e06da2d7535d6c:"Specify line number","4bf7636a84714fac140e42b4cee242d4":"Conditional expression","7708fb1394ce722ee73326437a66c77a":"Delete Scope","015f108b96c70bba6511091e159db0ac":"Please enter the line number, and separate multiple entries with English commas","63aeb2082d7cc0a316fc1e44913d7749":"Delete Condition","4622a4ce221f9b79aa3396cc461adc75":"Clear component data","800dfdd90200bd47bb4bb83def4fea56":"today",a6a93b404bc039cded728683af5d625d:"Shortcut Key Name","快去添加事件，让你的产品动起来吧":"Quickly add events and get your product moving","50f198f07fc820a4911d1c97a0ceb8c2":"context","6142a89066ca7dd6a1ce9493462c5aca":"Selected row records","21bd0846bd8aa2296c597a1c1ff8e1a7":"No row records selected","8f98291c9fa89c0bfce463c0a2eaf97c":"Column Name",c35c1a13309c6f9da9837857517e65fc:"Sort Values",e125986c2ba6783c4297ffe5405cc8bc:"Filter Values",caafbcb52c70ad0bbbbf127ee7b08b89:"Search Values","64ef585f778c9d1b010e86b032398ab6":"Sorted records",db9df54392e408520ca12c6a56113b5a:"Current displayed column configuration",bf2a4fd8ecd654982e2d466f10f54d3f:"Current row record","85f1708454f409855d552f702ac27b19":"The current data field can be used to read the corresponding value through the field name",e48d65cda774019d9a6677354bc781f2:"Selected value","10d23d1f68ee1facb03b1f86678aa2ba":"Status value",ed85c3f659acc9e89bcf6f0dbaa02a62:"Current code content",e26f6832d586f9e73d2361573bf5273f:"The value of the combination item","91190195405845950230616929d852cf":"Deleted index","1b5cf3e354142cc1cdd6f56b6afaba49":"The current form data can be read from the corresponding value through the field name",b06216eac0df52f6072a8adb095f72b7:"Current City",a610ef4a4fbe8f0c8b756162acfb6186:"current date","05606badb4b14ffd3c38c278fb0f3c9f":"Current time range",de3ad0cd57153f799f7538dd1e4fd441:"Excel parsed data","6d829f061ed82a688f2669c54dd83301":"current value",bc0689a4c353e9c95c5b7fc5aa49b59f:"Current slider value","9b0c6dee9b5f48734c37901d4a430b71":"Current score",d84017fa76584f7475e26f79767df28d:"Add Index","9d776ddd9dd2d8d85ea225df9c27e929":"Current label value","4ed30a5be1b6680e6cc9fec0965d0f4f":"Selected labels",e01315f74dee36831d93a117cbc47c8f:"Label List",d5c135b5a4aed5dc39ef846a6f502d4f:"Current text content","2eda8e3f67e2c6e02e63d27978530ec2":"Changing node values",b4e54cb84d448952a4aa1a17ceaa6ad3:"Selected row records",b2a18e08b0b0e0fd7e80554b89244aa0:"Option List",c46f27dcf45a345993f1cbb63380fa98:"Activated Index",f7daf85b4501d9d2aa048f85618b3f1f:"Current text content",e5369f1a5e8d2b3e64eeb627e69c4e9b:"Selected node values","28387ec7d7fd160541e7901d9f0a900d":"The currently selected value","94935dfa6c9b908515a593956ee7d07c":"Selected row records",f10b94a4ac77878be53fad599a761928:"No row records selected","6c200daeb748ecce2c730d01837d3508":"Initial tab",bd749c7a75af1236325d8d669e9bc5fc:"The tab activated during component initialization has higher priority than the activated tab and cannot respond to contextual data. When configuring the hash for the tab, use hash, otherwise use index values, and support obtaining variables, such as<code>tab  ${id}</code>,<code> ${id}</code>","8b4de52c23ad472b9ece9e30d8750c48":"Initial default activated tab","7806807651c37e4467f9d2fc1c18eb2a":"Active Tabs","8a59e0a5705fea1751d77a97b7bf5d8d":"By default, a certain tab is displayed, which can respond to contextual data. When configuring a hash for a tab, use hash. Otherwise, use index values, and support obtaining variables, such as<code>tab  ${id}</code>,<code> ${id}</code>","27e0d57c4412bcb89e6aaeeb1e5935fe":"Default activated tab","8d1903162d2a50d6321819c3fcc1f2f6":"{{@1}} ({{@2}} action input)",d5fb02425d3b8586d8d7b98971d63e68:"Event Action","5e3406cb54f255dc1be5edbaa6f87389":"Arrange by","60e237a1b5e9a4cc3633898d527d5a38":"Label width","813a5158d9f7171d20e7df340c5b48f9":"Component Context","8b3fd9147a07d27ad95c0ba2594fb67a":"Current data field {{@1}}","0383d6f467ed0dd89860a7b8cc793ce9":"Upper {{@1}} layer {{@2}}","45f3a444853a11667f97e941b53266b0":"API interface","419b0a74c438b81124992616dd0a36f3":"API for batch saving after quick editing","152e8c553fe6fbc51df7c72a45917107":"API used for instant saving","91aa2166ee4811414381c8d94e6567e6":"The API return format is incorrect. Please check the interface response format requirements",c00a96da01a3cf0445df3b0d05918317:"Viewing Data","7695a3b5bfbcfdb3e7b085f8cd6455be":"Edit Data","6f2f7e3794aa8502d02cb20aba881df1":"Batch Edit Data","40f8f022c51542d282edda5b9ed4b512":"Delete data",c1c29e445748fa076c5fee45274bdd36:"Batch Delete Data",ebf98d77b1a002935ad5c41446f257b3:"Confirm to delete data",d00d3377afe33a0f1b63293f3a3e3a79:"Confirm to batch delete data",a094e5b7699ea4b61094cc4120170423:"data sources ","6f99b6eed37795cb97d5f6370c32113b":"basic style",c8b9dbab4a3e3ad283d3d95a1663cd68:"Current row record: {{@1}}","83c9828692e1bb250a069bbf37807190":"Table 2.0","63ddcc28ac20f6cbd4197671ae7e628c":"Start automatic refresh",d6ba60b5bbf5df4cc2959dc897c2f792:"Stop automatic refresh","16ea2200bfba281fdf5e6870498790cc":"The value of [amis editor] [CRUD2Plugin] dynamicControls must be an object",d45a439fa6e82798bc1e98d738cedea3:"Enable selection of table row data",e821ce185e41eac2ab846ef5cfde2363:"Paging settings","4d7080ff1405a1f08c5415a0f942c336":"paging mode ","290026b0b40b637e774c6af435b897b5":"Refresh on filter","67584675004a48be903e9f61c733cb35":"When starting front-end pagination, do you want to request API initialization again after filtering the header","8cc3589c442c478dde8ceb60aeb29e03":"After flipping the page, return to the top","9cb14f1355b3a312ebd62ebff5e1e06b":"When infinite loading, set the number of loads per page based on this option, leaving blank means there is no limit",f300691f823aacea572e63bb7fb7ce8a:"Click to edit the pagination component",d81ad681a447abae7cba38779ffc0c9e:"Paging component not found","86b17bba54b65c6a62895357095f63a3":"Interface polling","983a8ab6a97da0a0dec7b5c751cf02b1":"Enable initialization interface polling, which will poll and call the interface according to the set time interval","4cbec5cb54ba399ea81381a75f5f1f93":"Polling interval","3a5d9512f474ff7c2a017a13e7f8a9af":"Stop condition",fd649ca959662306b734f03438869bf0:"The timed refresh stops the expression. If the conditions are met, the timed refresh will be stopped. Otherwise, the initialization interface will be continuously polled and called.","0516133b87f03f859e23bf014d71ab57":"Stop during modal window","52dce697d35795d7835e483d69f72419":"Stop interface polling when there are pop-up windows on the page to avoid interrupting operations","6d5b1e5a235fa839c759d2362654d638":"Silent Pull","8b34b22a4da1b9b855a5efd33434f5e7":"Hide loading animation when refreshing","32aaf2f04e983290deceb0674fb0d159":"Table Area",e3e100dab1d8d13a2e3f9c391b0b108d:"Top Toolbar ","2aee96dd788b815f83b3d118188e7fd9":"bottom toolbars ",cc6a173a3601403f2d96cae2180539b3:"Used to add, delete, modify, and query data, display table data, configure column information, and then associate the data to complete the display. Supports nesting, super headers, fixed columns, fixed headers, merged cells, and more.",b58da2d7e87937280042e1deca1153fa:"Pipeline task instance","93b824b57d4c22085c1035f7254619db":"unit testing ","2a8249ce9e52240855dfabc0efc83a3a":"Pass rate","09eb6d258fd00deaf350c2d1a0fd6f46":"Task instance",a5cd4ea1820d5c17c35e86885b1ef10d:"report","3791ba5c2962a42a251489872342b7d6":"Component Name",fcd70206ed8109b7ed361c7bce0922c4:"Number of rows","3ccfcb4c0daac7bb3ef1399b4389e3e5":"Left and right spacing",ab57255c391c3732b4b38ae78f55e058:"Distance between top and bottom","390d9ad686ba5622d49443d1e3659d51":"Current List Item",b271e427962758c71e342a2c06df493a:"index",d63b707be8a6feb914a3f6899c38770f:"Left Switch Icon","911f1640e858c362bfb3ba9a55e8269a":"Right Switch Icon","8a0b967b90e89dd8e7311065c1de720a":"Switch Icon Size",eabda74dd2ac5b4e6eab9229e0e63f79:"The interface can return the complete configuration of the Echart chart or chart data. It is recommended to map the returned chart data to the Echarts configuration","59688d1a484179aef8edc0ccbabb9fc1":"Trace expression","3fd81a573ea309b203ab019c1aa95a2c":"If the value of this expression changes, the chart will be updated, which is useful when data mapping is used in config",d0d852432ce09f627e6ae471b3f86b0a:"Data Filter","06e89ed3cb501da6d57e35bc28a37089":"If the backend does not directly return Echart configuration, you can write a function to wrap it yourself",f25c9fd2852b85502157decbedd19082:"raw data","2695f318db820c2bfe4c886fed3697f0":"Echarts object",b76e25de5689ea51af0688d0ea6d7b39:"If a data interface is configured, the data returned by the interface is passed in through this variable","45bc998df29cf75725df6141098d5cec":"Debugger// Can debug browser breakpoints  n  n//View raw data  nconsole. log (config)  n  n//Return new results  nreturn {}",e8f96ea47cb322f4f1a4c938c7b155ac:"The default is append mode, and the new configuration will be merged with the old configuration. If checked, it will be directly overwritten completely",e732f4c0d8075670b6c75cc52bd1f7d5:"Chart Drill Down","00958a92c5804d56047c18fc206382e1":"Width and height settings",b3e991d11b9f0ee04f55627c62d4fcba:"The default height is 300px, and the value unit is px. It also supports units such as percentage, such as 100%","8e5ff4f20463c03f7935e0627888c03c":"Folding state change",bcfcd9d31a7a469fa1f3a2ea9e3e3f89:"Triggered when the folding state of the folding device changes","0e8638286319f6efb0afe2616714e8c3":"Folder status",dce3879aaf11920ab97c94781ddaaed5:"Folder unfolding","0f680e944e33feb4719bd0dfe618aa50":"Triggered when the folding device status changes to unfolded","0469f19533c2fa1d63418b86ec203ab7":"Folder retracted","3ffa0c7285daa4c39f7b7699a845860c":"Triggered when the folding device status changes to folded","578125c5d7586aefb797caca9111ed1f":"Component Deployment",ae772db91ee1bd385ffafed3e9b8f4cc:"Component folding state changed to expanded","5882cb6b5133d35488c386965321c60b":"Component retraction","04e36bd57e0e1623da86ee2c19c2a885":"Component folding status changed to folded",d2fa917958506736ea39edbef5e1cea5:"Triggered when the folding status of the folding panel changes","58164864ad00f5d134f304d309055eda":"Current expanded index list","44732aa2566399b71483e63252d3dbc7":"Folder Index",abd55237a0df8da6ffda1ef377982707:"Column default display","67a2d9746956b631dd3ae9d13b6ae9ff":"Click on the mask to close","36f5b682310bd52f19c63b077ec054d1":"Hide button area","6bdc97671296112658e3a1cd369c0686":"Mask color",b3b287010ea79586507a77e0580d9cad:"Bottom zone","38cf16f2204ffab8a6e0187070558721":"confirm","40d39c3bc7bebced7d63eace0191a0a8":"angle","5d606821df2528b127c07333f5f403cd":"Top 1 number of follow-up visits","796011a5b11f78292d93a73ff284de50":"Beijing Branch","7232042d4e1b0c8c7172d68048358619":"Maximum number of displays","64095ae27232995731f776f12bf66d8d":"Current loop item","23b3169341314eda02d860be90ebf487":"Select All Text",e2b67a7f51c977887d2b3c2de2727509:"Operation area","4f2ef285e13e20f551f7111f535cde11":"Form Creation Wizard","7efcb0ce09e8842951c5cfd298b4e7ee":"Usage Scenario",b4f035fa6f9faaa78707b72c352c6a8b:"The value of [amis editor] [FormPlugin] dynamicControls must be an object",cd8b367599d0c748e74029da8c10d295:"Local cache","09a94b2400f7f05fbf2fc37a20b097d0":"Clear cache after successful submission","69445b3c5ddb606c7d51fd941e4aae10":"Automatically fill in variables with the same name in the data field","86f056f1cd4e25d5bd2bebddc971032b":"The default form can obtain data from the complete data chain. If you want the data field of the form to be independent, please turn off this configuration","5cd08fe4cd86fffe7cd23d934d4d3b32":"Submit Settings",e59e1cb3f366d6e7012fe64748355b0a:"If the bottom button is not a custom button, you can quickly modify the button name through this configuration. If it is set to blank, you can remove the default button.",d3458f4ee2c2203bb51f9d138dfd0c05:"Reset form after submission",e89bb79f0a0cb4fa4693c4a5ace130f4:"After submitting the form, restore the values of all form items to their original values","59c1b37b7ff983385a2521541cbcccf8":"Block carriage return submission","794020840d754ea7fb58ea3bf4394e1a":"By default, pressing the Enter key triggers form submission, which will prevent this behavior when enabled","87a6f142d80987db2e31569e403619f7":"Close the dialog box after submission","2e799a2e68a3303201d89752ae201a88":"Combination verification","585293753528cd2f74501f41fc2e2c30":"Display the data of the current form at the top of the form","86ed196f63524be7775e5a01b0152793":"Label alignment","6bde56d911167d0f47aae6bab762cd70":"Panel package","019078f52f120a70fc23d94ccd364200":"Adsorption operation column",f9e5a5377c1f56f1d09ae2bc58bd2d5b:"After opening, make the bottom operation area suspended and adsorbed when scrolling the form content area",cc6c35a3e0f97fb9747905dc13e9b625:"coding","936b62c222fcf6ba10fde069212fcf97":"Province Code",d7009d07f04d208f84e6c343fbc80ab7:"province",e982852e24060d47f29be600837b675a:"City Code","0dad46b34f0ddc802bce0351dc4745eb":"Region Code",d3ce40d862f1c7e4748e6c28ffb0a007:"region","716c3dc1bd990ccebc4fee34eb9171cf":"street",fd3913adcb81427f1895ab5b79ebe0b2:"Response data returned after successful remote upload request",cfe5917c83c8c31d5e57ddeb1f3460a5:"Please enter the line number. If it is blank, insert it at the end","9a3af29bac4ff8dff3305e283acb2516":"Root node copy",f273cc663180d6f62497ff3a28f4fdd7:"New copywriting prompt","897deae9c4c3dc0baa4a6989bb8727b6":"Add Child Nodes",aefacb210d5fa5eff897a302269ed920:"Edit copy prompt",f9886b3adb1ec253d24432615b62151c:"Edit this node",b8079d1411b21dbc48749154a827a680:"Delete copy prompt","176a53a7fc4759482d71312551d868ec":"Remove this node","7650487a8758fd50c87d6c9cff0aa5ac":"address","3d18ca01ddd1b95e982ec44ffcda8165":"longitude","6acaee71fe6a23c17f18625df01bab23":"latitude","40d58bb6ac9888b0c672f5bcff74da25":"Map manufacturer","542241c52bd2efb24dc37b32cab2329c":"Select All Columns",d94ec7663ac9ad2d09fca5c86928b434:"Column level all selection function","7020fa7949a5ae24cc8eb696772d97fc":"Select All Rows","227c24282ff52f3f6f52dfdb853cc1ad":"Row level all selection function","83a60f8b752a1ef3ce6a240388d635aa":"By default, when selecting all is enabled, align to the left","316a639631f712780829a202258ec3cc":"be at the left side",e2aaec83377244c9d15f78f51cccfe6f:"be at the right",b7fc7efe26efb867838223936b7fc467:"Left option display","505e204cdd98afd08c174d6dcec0dc09":"Selected","9b1ddba55066e0f329ca3cca2e58909c":"The retrieval results can be obtained through the interface, and the retrieval value can be obtained through the variable  ${term}, such as:“ https://xxx/search?name= \\{term}“","14079611c014884bbdffce4d0e5f4d73":"Dynamic options can be obtained through the interface, pulling all at once","1fd65acd90f99791d70ca70e046c9f05":"Fake data image","5789be67da4a1dc0fd9600bd626776a1":"Simulated images displayed only in the editing area will display the actual content of the images at runtime",eded9ed93a453c3f790126e30b776a22:"Title Text","11d938eaa50cff1b7e59c64b891de73d":"Title Margins","36285b8c01571203859d6b8ce7af0cba":"Descriptive text",a7dcee68c68f8f19f39c9788e08fac31:"Description Margins","80dc1f6307e4acf29ece7ac2f6e04334":"Enlarge icon",faaadc447b1c2b1adc920d9c9aedcc25:"Serial number",c4767bc3ad5c6812a8ea302e6126d988:"March","499d02b4034d1234b407042ccce614a8":"List Title",a302da1d8160ed0c72719c13346042a9:"This is the content introduction, and you can set the number of displayed lines","4e74ff55b36a0f35d511a761c264fce3":"Content Area Style",a67496c9ef1b1951fb9f104d1ef17997:"Title Block Style",af608093f1d3c25e85bdb4ed17f8b947:"Toolbar Style",fa898e5ae4c0315061129c6cef47c326:"Sidebar Style","087e631da111edc6db508289a7b5a95b":"Assign different value ranges and prompt users with different colors. If only one color is configured without a value, the default value is 100","88f8919dd239f2018d267f79d71a672b":"Search box, searchbox","6fe93193cbd9f0eb9315a4ae83343786":"Clear Input Box","985d97bfa88cbaed452ee5900ad26d45":"Service","6f6f1e6feb9fa966acaddae627b73948":"Interface Configuration","270ac7e329c21eb9a5e4c342f202bbb4":"Schema Data Source",bfa178f875f63957378fc2d0bd8d0f59:"After configuring schemaApi, dynamic rendering of page content can be achieved",dd22d42f40442605fbe0c5da03203ffb:"Is the schema initially loaded",eb1d029d107422d00f55c8b76e66ec75:"WebSocket interface","470e0b39b2486883a10c1048f2df9f40":"Service supports obtaining data through WebSocket (ws) for real-time updates.","3bfc17446f0456f9692f25fc90383ec1":"For complex data acquisition situations, external functions can be used to obtain data","642d94fa418e15a3997bcf7488315e4d":"Atomic table",dad6519c7c75a23bee8ccb576e4609a2:"Data source key",cba09997ca646e67544f880c80ab97cb:"Draggable conditions",cbe89f133fda6e0d1bec31eaf6aa7853:"Save Sort","413c6b52c23a1bf5cbc9fba1485f88ff":"The value of [amis editor] [Table2Plugin] dynamicControls must be an object","5b11953888d7c376458b397f222d4533":"Bind the current context variable","5e1872b4afc82fc5114b32aaf4477500":"Select Type","443f46c76ebe6ec4eb502f95c451e4b0":"Multiple Choice","9fd1b7cb41cfa3b83bdfd2a44381417f":"Single Choice","9c5c1f96ba29b9c0a8915be950e91cb3":"Fixed Selection Column","5fd9a061aa8d25137801caf78d8d0f42":"Select column width","107ce5ae5c46f0e63565c593eb09a312":"Select All",f3993a00b12133950b96199dbf08fc43:"Invert the current page","0cf1882623b2b50f0416030c980c3179":"Clear All",b5a34b813ffd5d7d776eb8ca56a1b45d:"Select odd rows","0c2a525c7e183c05b46caa6b52a21b9f":"Select Even Rows",df5a3392ee995cfaa13787b11a1e2652:"Line checkable conditions","76417db4eeb031b0bc15f4cf8178ae46":"Maximum number of selections","4d250d2754fbdc9cbd131bf48d445894":"Expand button position",ea7026a83bf0b63ecc31fd8e215766de:"Expandable condition","9e9b4716c08d4f15d9d52e00281f4265":"Configure Deployment Area",f09e007fa1c2e7eb9ec01f8481104d94:"Nested Fields","1b4b8d809a7d253bb650d0f104d24ea2":"Declare the field name as a child node in the data structure, which defaults to<code>children</code>",f53160d07e516a3b0d38d61822944b03:"Row angle markers","8952f4e24070a79741a505dc20bad8f0":"Highly adaptive",dd7befc8e7c124f6f4ba9bbf3de9dc53:"Indent Size ",eedd7279409d000114e27194f3c8a5ea:"When displaying nested structures, set the indentation value of child nodes in px","4bf8b7a0b3385fcd34a8e0cd355d7964":"Row class name",a193a0f0b38ea06f46b1d3051c433cf5:"Popup ","3c87936b95f844aa21605c75d217c8f9":"Popup Box Content",a0f14a16feaece37026df27feb9070a1:"Configure Popup Box","44c9d7cb031327029dd0b1bc92689542":"The value of [amis editor] [TableCell2Plugin] dynamicControls must be an object",f4a3780b66d65a315a762976ab5e781f:"Operation button",a0dbb2b0a000cdb3a265d096d4e5ed8d:"Fix current column","00ed921de3ababcafcb0594ff0e9a997":"Left fixed",a5b48f7807e3c1ddd80fa160f46f9cc9:"Right fixed","5cbd7ad8a3ecf059b62219c17fa58cae":"Label content","3b4bcc788ee92004cae962801b471b8d":"Custom Title Display Template","2328f91f1e160de6a06c2004d49ec53b":"Configure Title Display Template","11e6dfd7d3fcb0892c2cecb6d7549102":"Please edit the title content","3d95415ee75837db2660255ea1ca1b9b":"Time zone","2fe3c5280ea644639bc6378bcecc8b27":"Details area",e1445cd3c4710c8abf7c1b3b1ce060d8:"Floating layer style","1f9ba0bdeb0cf0d3193cac269dd2f708":"Maximum number of displayed rows","2043742930f9833b4405aa0314a496b1":"Fill in false data",a903e51cb1915b56f94bf54a81816cf5:"False data text displayed only in the editing area will display the actual content of the text at runtime",ddca9c0f0e3d07c3341701b80f139cc0:"Whether to silently send requests and block error prompts","6de215632addbb664d254e00532d92aa":"Last n hours","5bc676c0d274d9a4674f832ae07c6757":"The field name for sequence number '{{@1}}' cannot be empty",aa70a469e4ceb0dede9d73cb8d8d953a:"The field name '{{@2}}' for sequence number '{{@1}}' is not unique",acb3aec4d12f6ca06a1e45302030cdb1:"Data processing",cdfd25057876424324682b5bdde38a3d:"Please fill in the initialization interface first",a9fea442707e26dee478b34a2f2ce263:"Please fill in the interface first","4cc6a76c146c0360a41ceaf5e212c891":"Automatically generate fields based on interfaces","4484fa04e7b71db4c8293e5bcb53eca4":"Add Field",eea3ebc33e69694e0c12d4ab2e07a553:"Field Title","404f38ae7ac36860c0b3af6f2f4a13f9":"Menu name is required","822be91778b5ac22d31681f7256b849b":"Cannot drag a menu inside itself","088b54ee8f10a43977afa9d16ea5350f":"Customize Menu",cd1e63aed43df0827cc09fb26521936c:"Edit menu item","648c5e847b923bdd51bf5c72436169ba":"Add Menu Item","8ee9f276a6356aab65f8178c4f30fabd":"Menu Name",e3cc5bd7fc92d7287a14bf5398c4ecc3:"Parent Menu","24ceb2a06b1962b396b75286fc0960d1":"Please select. If not selected, it will default to the first level menu","9483042d09dbad731addc1791b5d207d":"Menu icon","6107b3c4fd8587589210cb9fe2fcdad9":"Please enter the address","76b5162d1b7a16b4b6adf1b79231c96a":"Jump Method",b2d1bffc689e4478519d8a010450192c:"Expand Current Page","80fb2db8d3f212b3dd130d24da1c970e":"New Tab Open","70b4d0676f9a9640c5a7b1d5f66faa64":"Content of corner markers","9f3cdf6aa12759fab68a5a88179462c4":"If empty, do not display corner markers","07c60b53a84fd7751095864a5310cc7d":"self-adaption","81522afdfef2e4121c9240d00583f531":"percentage","9a8aed590bb7fcdd9198daca349b055a":"Fixed column width",e0dbf4a939e6c84610d28b8a9b1803c1:"Percentage column width","41be5ce31e28742d0b259fe734e49c28":"Retain at least one root node","49198f84cea6c212cd5d463037827cd5":"Add Column",fb4c95bae088e3f216ea9312bcdb26ca:"Column Type","8eebb8ae809cf1ceaa23cd2fa2c73898":"Field Column",b302476563937e24190496ab668ebd26:"Corresponding column '{{@1}}' not found",f9e759ac21d528e7d1e84b5feae4560a:"Empty column",bcba3b2e1f7b4fb528213e999333d331:"Are you sure you want to delete column '{{@1}}'?","7202bba23492811d2964234485a909e5":"Container column","4c2dc6491d29ef77f421daa19541c8ab":"Field loading",e11e888f47bc6cd5816a1147be05e792:"Target component not found",e6413abdc2fd3ccbbf15327e4004b1b2:"To edit the target component",fcebd5cda006253365b4453596290f48:"There are currently no fields available","161f53cdfabe18451e4067f2426cca0f":"The corresponding action '{{@1}}' in the toolbar was not found","4357955c64f836dd7f36af048d857f9b":"Are you sure you want to delete '{{@1}}' from the toolbar?",dc858fed3c66a1194d5f9aec81faee3d:"There are currently no operations to add",fb3304d27d85c79d89ce6cac22a174b8:"custom button",e40c411876b4a57e24fbc6b4b4fd5027:"Operation generation in progress","0e7bb2c7879f0a34c02f547820b0b0b3":"Error Ignored","5d9fe78268b03e8aa41ac316ef610d9a":"When an action error occurs, do you ignore the error and continue executing",c0d5d68f5f1cc399311e92905ed2fa80:"ignore",a165be161ac250720f6f25820dd2a5b3:"Do not ignore","9cdfce42ef0fa346511538131e51328f":"Presets","17817a4d2da41f4261f4155ada59e395":'<%=data. ignoreError==false? Cannot find component and interrupt action execution failure ": typeof data. ignoreError==" undefined "? Component tolerance not found, action execution failed before interruption ":" "%>',"0db9e779f5cd9ad8bd3d16d7e8a16b64":"Pop up message","4a502e748d1335385c2c05bf30e582e7":"Open the pop-up window, which supports complex interactive designs",c1b3a483bf057f5afa118f96644dc8a3:"Popup Source","0c5cbc9d345936876230a0b09aece2ff":"Select an existing pop-up on the page",a781b5903a4013c147783e1047f42e08:"New Popup","53bed22bc03c0fd61fe4fb81101f712a":"Popup Title","953131d14e66fae5e3611f8b419b7ed5":"Please enter the pop-up title","7cc53692d650e049802d808b81efe7f5":"Select Popup","939402f3ff754d8d815eb7f6cc991bea":"Popup Type","139c619a4dbfc26fb61d76dc388e3e7d":"Request Results","0eb4e63db88e158600dab0e723e8a213":"Requesting data again",f16654604d6cb2f62469e5aa9db19871:"If sending data is enabled, the configuration data will be sent to the target component first, and then the data will be requested again.",a0c117d927c6290bab55ae0e848a4d4b:"After turning on 'Send Data', the configured data will be sent to the target component, which will be merged or overwritten with the target component data field",eb6cd21b9ed45ded3ecdb12f62b590e1:"Data processing method",ac24ffeb131a7a9d2465b3ba7b14e10c:"Submit Results","0e3517fb21e2c4066bd0ab75c51bc6fb":"Please enter the name of the variable that stores the submission results","0e2ba6becfa8760853cfa31c9e15a94b":"If you need to perform multiple form submissions, you can modify this variable name to distinguish different submission results","4604d5023479171cb6e901dbeccf62c0":"error message","71f6236494bfc8b023804abb0cca1639":"Error details","4e6bfc5ad98f719f9bc6b2ad3b6440ee":"Response data for submitting requests",bf0f829689370b36d01ce871324e0bb6:"Verification results",d23157205c994bde20bb2605c193fd27:"Please enter the name of the variable that stores the verification results",a422eb12ebbfdd3347c4deb5ec6b4b54:"If multiple form validations need to be performed, this variable name can be modified to distinguish different validation results",aaf9656ba493b58fbab398d52efa9f7c:"Edit Style","3ac7b489ba8cb811386c9f4fbfd1c6cc":"End Field Name","9da561f34a93e0275c56b84717ac9cf0":"Configured the end field name, which saves the start and end as two fields","475cdfcaf614f2b69d88e1e34ba76079":"Primary key",c28f86f11fc814ea5696af5aa9464cbe:"A unique identifier for each row of records, usually used in scenarios such as row selection and batch operations.",fa66d1acaef7cd181f21f5fc2895becc:"Enabling strict mode will adopt strict equality comparison of values","9e3790244299ed296601d79e0bf43a5c":"New button name",bbbeba31bfc391bd0741ac62ade78c5a:"Edit initialization interface",ba62070c3a350918d542e990d3278b07:"Add {{@1}}","06e2f88f428b7e26f7da3cd4d40ec2ed":"Please enter a name",c630aa278a251b72bebf09284095112a:"Configure New Forms","52830af276fb186ff93f16a562acb2f6":"Card deck",f27f10e4660cba730189cc73bcbec0dc:"Line length","35633d4bcf019258d4a5b927e8644bed":"Title Style","3ec2bba02a859a90b023ee793a2381d5":"distance","12ae2cd5a178cdaed37967ec4226c4d3":"The distance between the title and the nearest left and right borders, with a default value of 5%","7eac9d196c43693b0820c7bc0ab504c7":"Loop Renderer","21157967162b6206ec88d66789bb1eb4":"Comparison Editor","6d36d88078b28530bd4a236b1033c1db":"Form Item Collection",b400e476d7cc8a1b42744661f57525f2:"Hide Fields",a0e6ecd1eba5673e16218e559f549112:"Color selector",bb712c16299683ab1af22258740a537a:"Date box, input date time, date time box, input time, time box, input month, month box, input quarter, quarter box, input year, year box, year box, year box, year selection","0bbad229b14369f667abae7fa8453d69":"Date range box, input date time range, date time range, input time range, time range, input month range, month range, input quarter range, quarter range, input year range, year range, year range","912e3cf5ce8720c39e7a778e916898b5":"Input box combination","9462f8cc8d65d991be1593493039b85b":"Repetition frequency selector","224c9f857217e09f7c244093d4f08cd0":"Changes in input content",ce369362c3ae69c27d717d3210303e27:"Value of Rich Text",de0302f6f891653ac2d8417a46249ebf:"Column display switch","142184926b0ae6169a9b7bdefb9b42ff":'Whether to display explicit and implicit controls for table columns, "automatic" means to automatically turn on when the number of columns is greater than 5',a0d2d27fe320721bd5b0157fd5466b9d:"tag chooser ","997a27d508152023fd04b7227b531681":"Text box, email box, input email, URL box, input url, password box, input password, password input box","98cb62edf3436738df2561d01ee19ab0":"Tree, tree dropdown, tree dropdown box, tree select, tree selection box, tree selector","010b98c12fe130496016ea515b70ec32":"Current options",d8bab42dd5fad3f25760e190b552fac0:"Configure default state templates","70864b156cd3a9c8d982074feb01f587":"Configure Active Template","369f7b53301a54c2240a618827ee2f83":"Option Name","70aefc6ad8dffc85d083aaa38aad9d28":"manufacturer",ab7c4bf8e1f3d2779d62d0e5e038e2de:"List selector","828476b63e65ac62976920fc753a3071":"Multiline text input box","895013340b5cba65de69aefc9f4f0dff":"Uuid field","993844afdf1cd0bd368cda41fe2d39d7":"Horizontal Column",a94180c2142df3122cffcf1900c507f9:"Real time logs","319c7a1a88910df53d6cd1b408f5894d":"Current page number value","52f3b7dd57c2cc44b645afe6d944d07c":"Functional container","7c39d9e0d516e260fc3513eb8e5243a5":"Status container","39282fd22802ac1d9f99cdd0ffff253e":"Container for component conditional rendering based on state, facilitating the design of multi-state components",f449bcac0f09a349882e74800f20d724:"Status One","3b5a5cee1bd8775463be15d96eac23a1":"Status 1 Content",f7361c5ad849477766b12e970bbd71f0:"State Two","0880f36708cd0408167f318936cc6df1":"Status 2 Content",c887c83f280bd63012d32179ff5273ed:"Status Name",a30fd0a2a17e3dcf701b3334341aa39c:"State conditions","7829a5f84414f02562a5b17b1c301046":"Status {{@1}}",ca035ede21ad993ba8f29a2e615b61e0:"Next state",b7349a87c4d838d1a6047c2844b1744a:"Previous Status",df7f223af52c3261a3b23a152bffe26c:"Status List","8256d18231287d07406fbf019e81bb01":"New component status",bd863f35feb02c40cf14493b1dc1b198:"Display conditions","93553f4588b0f0c782f58182db0490d7":"Status Content","7cb7a4480adf1c3e13378201684dbd5f":"Table presentation","22efa960b935516b3016b4a5bd7f1160":"Task Action Collection",bab9f8592e1b8e286ee17ddf5dbea4b3:"Display Text","97d43b5b163c9299f70b76d12541828c":"New Status","01ceb3edde98440157f199c292011dfc":"No data","8191e975f70edd63fe65476dd8bc0ddc":"Component ID","7c80a8d7f7af4e8eeef653c0af82010d":"Input component ID",c619838a5e3c9641a80fc5f1a9001a9e:"Persistent Key","78979b40f53cb6510c6bc1e1a2473fc1":'Use static data or variables:<code>" ${id}"</code>to specify a unique Key for the Form',"72f4712f23226b5e01442ab9b6ae90bd":"Preserve Field Collection",bee8b35158dc5ddd44ebbbd9f29de422:"If you only need to save some of the field values in the Form, please configure the set of field names that need to be saved. If left blank, all fields will be retained","5755fa70717929d1cabc4f4d9778d08e":"Please enter a field name","8ea6d154a7c25f8802406719c2ec3c02":"Embedded: displayed in a tiled manner on the page, while the other two are displayed in pop-up or drawer form","361f434f3b82973d6526efefbb538118":"Label storage",deab2747ddf5310781cad655c4f7a50f:"When the number of values exceeds a certain amount, it can be stored and displayed","8c019e522d7bfbf02d6600f91f3b4edf":"Maximum number of labels","5404c803438f1027131cb6fe35037075":"Selector storage unit","5d16dd78f1b9194d063322d117c75162":"CRUD storage unit","00e44cfe38bdcdefa40ad63dec4e9bd4":"Label template",b2f3c4387bcabafaf39a7be9c624b584:"Label display content for selected data","988d7b545c09108379a54a1e6060f563":"Icon Color","7278e97a3360f7b31768b86b8d22173d":"Icon hover color","9df3213a5f8211cf2626f4c5c646d71d":"Add data item",a6354302d04750ab5e28fac72be054b1:"data item","1a873cce402693b4c3b4bf16a4a04523":"The Key of the attribute in Option","75208f0b7fa9dd1633fa2dded76a6e8d":"The value of the parent data item",dcc957ddbe7fd921ea03d008f7ddae4c:"Please enter the value of the parent data item valueField",cd407112daa4d933aead47835bedafb2:"Edit Data Item",a3b6fcf7cfabfc83543bb00375235915:"Value of data editing item","0f2dd97ecc370524fd8ff0a9ffb880a5":"Please enter the value of the value Field before editing the data item",e70edec390d0e602208f6951e1b5f01f:"Delete data item",d16814fa14c14dbeca8d7e8600852255:"Value of data deletion item","6a2e7e69d5bcf2e2ab0c3e288d7fd2ab":"Please enter the value for the deletion item valueField","6e065eee612393b1d6a16e7696e4c911":"Tree component","555fbc1714ad0d899939b12b95dabe09":"Tree Component - Embedded Mode","5c52d3e283d197588e29ca31bc613ffe":"Option search interface",dd52923c45686a6f507854e438d4880e:"Lazy loading interface",a386f65cf2c47acabfab13781dbdd89f:"Tree Component - Floating Layer Mode",b5d9da39175bc5bdcd2cc7dddeaa232a:"Lazy loading field","31ff316f7b6aa169b2575a50e0342be0":"Is it the field name of the lazy loading node? The default is defer, and this configuration item can be used to customize the field name","37a3bfd0cf20cc17c53396a1077c0852":"Customize fields to enable lazy loading","6c1f091d6ee0780a6f836d212b8afa82":"New form configured","9de4041a80c32ada7fb8b3f212da62d2":"Edited form configured","7eca7159d5a09db3a0008280faae395c":"Search matching function",e95903f4c15aab31ea66ecd51b76e1a3:'Custom search matching function, when<code>loadDataOnce</code>is enabled, will filter based on the matching results calculated by this function. It is mainly used to handle scenarios where column field types are complex or field value formats and backend returns are inconsistent<code>matchSorter</code>function is used to handle complex filtering scenarios, such as fuzzy matching. For more detailed content, it is recommended to check<a href="https://github.com/kentcdodds/match-sorter" target="_blank">match-sorter</a>.',"4f54012c824bfcd8f9ca9ded82051d94":"Mock configuration","3566441483da64f6bb1dd44cfd6b0184":"Data Mock",fb677689a875ed3078e386ad88273e73:"After activation, when the data source is empty, Mock data will be used",af192f42759b02f6fd256776b12a238f:"After setting, the data will be displayed according to the set quantity, which can improve the rendering speed of the design state, reduce the height of the table, and facilitate layout settings. If set to<code>-1</code>, there is no restriction",a15e0eac4fe49346a744fa7943c46890:"Calendar schedule",b13bf2bdf8a7abbd8cdf85683214be45:"Display the calendar and schedule.","0c6482892e9df6505c8de1eabca68266":"time stamp","398e51caf9e8fabbeb075833f0c1e701":"Date Format","2ca9949e2a05e63f735b713260307c45":"Time format",e63e4cf37bf0af962b6ad66243dbe0f4:"Date Time Format","69a79a0e5083305255d191f708a41860":"Is it possible to drag and drop",bc48a7871960f7a395fa3ff20774f81c:'{\\ n "status": 0, \\ n "msg": "", \\ n//can not be returned. If data is returned, it will be merged in. \\ n data: {} \\ n}',"1385df54facf9564658f05d0e9e2c3c7":"Double click on row","1c00d9cceec92084b116a382f2714ebb":"Double click on the entire row event","4f0a3e65cf67ca5a117a3f28745ae930":"Display the new button at the bottom","2424c96966b9c38c7d094a2d40f23a5f":"Display operation column add button","2e2c57b664358061f9f20aeda43b53af":"Automatic selection","3fd78aa49302ff2634badc2ef49828f7":"After activation, automatically select the user's current geographic location","1acee853829433de3ece301ee365bc99":"Restriction mode",ce8b1e6f3819ea068921a4fa9ead6968:"After activation, only the current geographical location can be used and no other geographical locations can be selected",fb58b1b692e6cc562764f6969269f802:"Box details configured","645dbc5504e722a30896486085a06b32":"preview","9aa70276e6d364abdc0543deccea2dac":"preview pictures","893a9d45e4df161d0b0c57340631bd2f":"Adjusting Image Scale",e8aaab64292d8b17db25a1ab44bcd8e0:"Enlarge or shrink the image proportionally","28a7e3af290b229c490da0ad4e9b700e":"Adjusting the proportion","7f2081cebf9bd4b10b953b4008c4b568":"Define the percentage size of the image to be enlarged or reduced each time, with positive values indicating enlargement and negative values indicating reduction. The default value is 50",cb90ac33f6b3bf684635d4f57cb290a0:"Amplification limit","7ab252f7aab256f1785c793049d01e13":"Define the maximum percentage of action to adjust image size, default to 200","7d645933c48d5061c2a13dd5f8b9b4fa":"Reduce limits","164f3e6ced78578c534477da66e0b008":"Define the minimum percentage of action to adjust image size, default to 50","8e9f5f321ac9b39dbcf0f603190815ce":"Suspended container: a special layout container based on CSS Fixed implementation.",ace080d5d9684a05aa5ec0ca38ec2831:"Number of records displayed per page",e52664b945c685d43d6ea81953a33a4a:"Trigger QR code download",a605077feb2a94f1f72627703ff48e39:"There is no data in the current table. Use Mock data for effect preview. Relevant configurations can be modified in the Mock configuration of the component panel","014b4de0dd3108fc912547e4a1ed19fd":'The current table only displays 1 piece of data for effect preview. Click "Preview" at the top to view the real scene data. The relevant configuration can be modified in the Mock configuration of the component panel',"8bb1910d5bc3b1b32c1e037978ba9d3b":"Modify and submit after activation, instead of batch submission. It is necessary to configure a quick save interface for submitting data",df23e8db7baa38e0d9db41384788a40c:'By default, the "Quick Save Single Entry" interface of the table is used. If a separate interface for immediate save configuration is provided, local configuration will be prioritized.',bf4bc760ad07eccb701c8be8579005fc:"The number of list items cannot be less than {{@1}}","0e69a56857c65181f96cd272d20455d6":"Click to add an expression",d846706b91f99cd12545a78212fa5984:"Common actions:","1889907dcbe32f9e8ac2c9df6603f12e":"Verify individual form items","1a04578671f6c3bfa2d35a8cbd9d1a9e":"Verify form items",e4092e07c4613278048c91064f4bfdf7:"Verify individual form item data",dd39bd1bf78f1b2aec6ed8a05ced6884:"The value of the verified form item","0a2680def3df6912d7c96d95a047b680":"Verification successful","136b339ae7f40edc05251da87dd8a233":"Verification failed","14a265b60d169e9d9c11b9a286de199d":"Event burial point","5c1024a792dfc345b4d8a3b34255691b":"After enabling event burying, every time an event is triggered, burying data will be sent to the background"});extendLocale("zh-CN",{f7e68bde2caa2cb5696d6a37fe4a23a4:"常用",ea15ae2b7fba76c83eec6d0986d15197:"选项","3fea7ca76cdece641436d7ab0d02ab1b":"状态","24d67862f87f439db7ca957aecb77cce":"属性",afcde2611bdd13c1e65b4fb6a2f13425:"外观","6d0034a2419e1f394dedab07994b9665":"Label CSS 类名","2cadb6621afe19333b142faa541b0f91":"控件 CSS 类名","0e627e6a0ff773ee76bc4cc0871cb48d":"描述 CSS 类名","10b2761db5a8e089049df39675abc550":"事件",dc19704991f1476fa4dcbb80c50bedd6:"提示标题","55713166f8bddcc0aefc3a32464746f1":"请输入提示标题","2d711b09bd0db0ad240cc83b30dd8014":"内容","59b9e2022323a63079c6ddab63fec112":"弹出位置",af767b7e4ae069d54f9ea839858d4c6d:"上","3850a186c3235bc646d4c2f79cebac36":"下",d2aff1417831aa621c16cd5b95306b4b:"左","4d9c32c23df5d234e629c922c58d8e12":"右","5ef69f62dc668c1a3e68b51c50a2530a":"图标","4434b33a8731a73613ba5fa1eb984efb":"CSS 类名","159dbc2fafd57b9d3652f16659b1b519":"触发方式","45a51525391d4a3771b22f2cf1aa96b3":"浮层触发方式默认值为鼠标悬停","728c7cdfa431821d291b5108394ec65a":"鼠标悬停","4363c17ebb346b646af55bd8c8075915":"点击","5632c68dac780bd766f740830481f4b0":"点击空白关闭","9efb0ce5a4510ef29345b6edb3e58bc2":"必须有 td","3ce57bd19e37d2b27145dc6fcfff3520":"找不到第一个 cell",f7d205072a2ceb63b4f48a8b6f32fd25:"行线数量不对","852228c640b1daefe6b0853390e66791":"列线数量不对","26526c3354307798dfa84f17decf5140":"找不到对应的 id","38d2ccdde0ae0c2329defd3c75c59d8b":"由于内边距限制，太小的高度设置会不生效，可以调小默认内边距",d59379f4227af3b2c60214e2f4f903ba:"合并单元格","02d9819ddaaaeb1b7b22b12608c7e5ca":"提示","4be3194e93cdd2899d06b499c184195b":"用来做文字特殊提示，分为四类：提示类、成功类、警告类和危险类。可结合 <code>visibleOn</code> 用来做错误信息提示。","6f2b01db04cbf7e460b5c6f4e37a5e76":"提示内容","132a78bdf68d6d17bde00aa807bbf032":"内容区","4092ed98e9035652d4c9ca9441701ed7":"基本","226b0912184333c81babf2f1894ec0c1":"类型","330363dfc524cff2488f2ebde0500896":"成功","900c70fa5f7dbc014e6f762d5e0e885c":"警告",e2e27a87257599f83c817c43e724b6aa:"严重",cbda486dbec5bdacb593294e240c5e63:"可关闭","7372dc9f39a173dd0c75a185373245b1":"自定义图标",bede211909a1022b13e9728ed162b77e:"锚点导航",f6da8aa86fa3e399da95dab399a67985:"锚点导航，在多行内容展示时，可以将内容用锚点导航分组的形式展示，点击导航菜单可以定位到对应内容区域。","22c799040acdb2601b437ed5449de076":"容器","5879dec0aea52871e0ae6969893a315b":"锚点1",ce08bc4247c040bac13155befc7c1638:"这里是锚点内容1",d89a42cb938819f67172ea64037c19fe:"锚点2","96f05e63c6f606925636d6810167e7ea":"这里是锚点内容2","31327b9041b825a0b455b3ff9ddd3909":"锚点3","68284dd430993f495a6f2254ae5480ae":"这里是锚点内容3","9ad515106f02f3909974b75d22625b0d":"锚点设置","40c6e9ed3d9949a326f5a216d936324d":"添加锚点","8cfd149e7d73ebae6a797d21728292ff":"请输入锚点标题","6be15e9949e4be7fc485e1eaae472942":"锚点",c624c875ea37f790665d0cae8959d4e2:"这里是锚点内容",f612a2f944af178fa07a719c79e8438b:"锚点{{@1}}","42ff02f6763799ebfa5ce8dd5f99913d":"这里是锚点内容{{@1}}","39f4fbc5b5ba681f7e8c4d4a4ddb3e2f":"默认定位区域","9959b2ad2d4f75f7a6be46872642df6d":"导航布局","4cde06e6162ed66720e3133cb83bc059":"水平","75ac842f8e77305846f1d776f97dfaf8":"垂直","056f2d7df6e6b64625c3a2d27ce07b05":"导航","696754a8b2b23e30b11187303d1238f5":"区域内容","33be689a0f0de129ce37f7a96052002e":"内容区域","32c65d8d7431e76029678ec7bb73a5ab":"标题","6bd854c27cd4c2e97dee65cf3f3f8551":"锚点内容{{@1}}","726dd5df4319e9e158e2ca3c22177b6c":"音频",e7a707f9fc7da36828db940ca2960f4b:"音频控件，可以用来播放各种音频文件。","997c7a5d34f6fc628893f509d0df32e0":"功能","22b777e6fcb613b8ba83ced9594cd07e":"常规","37b12f2666b9e4e37f33eb5e83533d5e":"<p>当前为字段内容节点配置，选择上层还有更多的配置。</p>",f8f176147db276063e7ec15f076e39e0:"音频地址","91d3cd46d6b6919749e56056d5acc9bc":"支持获取变量如：<code>\\${audioSrc}</code>",a945269af10da66c82cdb7336bc490d1:"音频倍速","7ccd84ca5c16cd03d26f5ecd5e6f6bd2":"加速范围在0.1到16之间",fc03b83d19e2fd12f1e7c56a11d7dc18:"内部控件",d37d357dee041774b993daaf5c8bb752:"倍速",b85270cd3c06d8eb635eadcffbb10119:"播放","19fcb9eb2594059036dfede5f4ec53e8":"时间",c7bff79d059a0b7ff9b02441959d8be2:"进度","09b095d8fc867cb968673be9dcc00a93":"音量",ad751bba0aed43a673c40b652a239fc3:"选择倍速后，还需要在常规选择栏中配置倍速","54c6bb48170611ec995f634319312156":"自动播放","56e6ecf97176d30c06b30cfa428ef832":"循环播放","2fb0853874c2cc8cc42f0c7520af662a":"内联模式","33bf801796fd255b5f6147e33146669b":"显隐","4c50eef3bdaf0b4164ce179e576f2b2d":"头像","18dc831ec12d358d05902bef1f00e1f1":"用户头像","027446c2f9070b0f5b16a18208bf5fc7":"展示","20def7942674282277c3714ed7ea6ce0":"图片",ca746b1ff10193a3ce20878dec04a733:"文字",bfe68d5844f8e54602760e18f45954f7:"链接",b54f4a65cd257c87db32ee1023e1daa1:"填充方式",def423db04dd24b226911b9e4cf5dc9c:"图片大小与控件大小不一致的图片处理方式","74735df86a8e1c15bce50e2c1dd42e98":"等比例裁剪长边","9d7f3e170404f211a4f95c214f044b05":"等比例留空短边","9854f491213784118614be4a1970bcf9":"拉伸图片填满","3d2b60dda894eba9a042beddf7daf3cc":"按原尺寸裁剪",c7fff1a6f585d7fb22c94bb1ef82707d:"边框距离",f1b4c635cdb39c91461f181d27d06f8c:"文字居中，文字过多时保持与边框最小的距离",dfd0cd7f2cba96917484569a646bdc8d:"长度",c1df04eec5fa0857bc0df2d68d8e953c:"高度","0103eb2d3dca70270d1a74e9ec987ac9":"圆角","9a233b241eef54521cfe9365bfaa7b2f":"内外边距","961534b4ea37e4e88aada736b299d063":"边框","8e1b944f4389bdaab6f11d5bc83190c8":"背景","803205e38834280d9e6a75993ac00764":"阴影","0d98c74797e49d00bcc4c17c9d557a2b":"其他","34dac4adbc96afd65f060cc4cfff1feb":"透明度","169b227aff15b834b64205d0fdcb0f33":"面包屑","3576258acd7269da9f44859a2edec1aa":"面包屑导航",db1c89e0f6e62f9642018cbb531bbd4f:"首页","2e8bf3c87641fba59c2a9cb6636d7e88":"上级页面","12d358955755488ff3790bbd6d75673a":"<b>当前页面</b>","894b94fbb15650da7f9290e7106446f3":"分隔符",a38100f22f59f7cd89e36139faa6fd4d:"动态数据","66ab5e9f24c8f46012a25c89919fb191":"新增","97d07614380da93d257f9fbf81aa56fb":"文本",ba7f916a39c0beb545388ea3b7f6b3b7:"面包屑的 CSS 类名",e3acc9857c852dae27e064ace5e5688e:"分隔符的 CSS 类名",fa966345577ba81af19408f203db968f:"按钮","89de611b2d759a1802542b5d3a06829f":"用来展示一个按钮，你可以配置不同的展示样式，配置不同的点击行为。","7af5e3ef39ff71d39fe3f645c8079124":"点击时触发",f6d767f39ba3bf955077a3c0ce81e581:"鼠标移入",bcdd89d453da0dc0622a2f3189728357:"鼠标移入时触发",e272b0b8c7fedc670a87075514d9b49f:"鼠标移出","727309bc724ff237c5e2cdf7a90cf28e":"鼠标移出时触发",d7ec2d3fea4756bc1642e0f10c180cf5:"名称","939d5345ad4345dbaabe14798f6ac0f1":"提交","4b9c3271dc2f299dc3aeffb369187513":"重置","5e64227f46b221001e3b151d72fa6412":"是否关闭",d5bb99590ef447a1af8e9782786c751d:"指定此次操作完后关闭当前 {{@1}}","1e7196ce05260faa55e5b7ea5a1667c2":"二次确认",ed2f135144b4e138cb29419c1f245f4b:"点击后先询问用户，由手动确认后再执行动作，避免误触。可用<code>\\${xxx}</code>取值。","0d0c6ff7b65e62eba3ddd523e2976389":"确认内容","7e9646e2db5ce66dc2b4b922ece483ba":"气泡提示","5daaffe964aee9d884e0a681b2818a17":"正常提示","2fd82aa9dd7fedea2c16b7dfe93b6d0e":"正常状态下的提示内容，不填则不弹出提示。可用<code>\\${xxx}</code>取值。",fb37b983a93aabdcdbbd59ae48c519fb:"禁用提示",f4f168a3fec79443d2ca8fd1955edee8:"禁用状态下的提示内容，不填则弹出正常提示。可用<code>\\${xxx}</code>取值。",d420160a9e04c481e55a9686ab158caa:"鼠标悬浮",d6763cb7640bed39caa058f156007a86:"聚焦",d586324c6d6b45cb78a4172d836dab3e:"提示位置",c182ad6b97f0909596a523b1f04c28d2:"左侧图标",ad7e6f016bc1d9a9bbc6e18224d73247:"右侧图标","39003734d1d700d5bd97bf1e7a2fcf73":"样式",c12ba7b658a9fccf0815f3951bc759b6:"高亮样式","6aa6b9e2dca63d27dc74eb155020271d":"块状显示",c8339fd2a85af4ba66084d28df808de4:"尺寸",c8caf94205105bac5833ab31cc2129d7:"按钮组","66ae9ce23b0b2e243aff087d906a2489":"用来展示多个按钮，视觉上会作为一个整体呈现。",e9d2f66bbd44c96a3e03494bf6b1ebf0:"按钮1",ce35a17d2ba7caac95092a7a66ac9a0d:"按钮2",de26e1294acedb55155a418630d57924:"布局方向","8eb18b36f5a27fa8e6d32bc66546ce05":"平铺模式","2e28645c67c5742e473888a27aab7bd6":"使按钮组宽度占满父容器，各按钮宽度自适应","66774850742a81e8b2393195290b7330":"按钮管理",f9f2b9cc91cd332db6b2b732c3869233:"新增按钮","40f3bc0a4f4d0f4230fc7fa6f4fcec92":"子按钮",f05dd80af77a441216ef940e7887a8db:"按钮工具栏","433e2e80ec74563daf4368e59b525e34":"可以用来放置多个按钮或者按钮组，按钮之间会存在一定的间隔","6651fec0511e3593d3438a113dff23d6":"可排序、可移除、如要编辑请在预览区选中编辑",d7213304d1a8a02a73a2f4010839e061:"增删改查","7a9f1ec32752de8b69ef21138970f64d":"用来实现对数据的增删改查，支持三种模式展示：table、cards和list. 负责数据的拉取，分页，单条操作，批量操作，排序，快速编辑等等功能。集成查询条件。","48c68eb5a42e2b3e679c53b00f6e203f":"渲染引擎","64ca9bab920a2983bcf270320d850d00":"重新加载","9ef5597ac0b4da662bcd967da37eceb4":"触发组件数据刷新并重新渲染","95b351c86267f3aedf89520959bce689":"编辑","607e7a4f377fa66b0b28ce318aab841f":"查看","5b48dbb8dc710cffe6313bb56a7f6d47":"查看详情","2f4aaddde33c9b93c36fd2503f3d122b":"删除","6c546666aab964c39cd8bfdf4fbd46b8":"确定要删除？","7fb62b30119c3797a843a48368463314":"批量删除",e73cefac9d030927da1618c7b15c98c9:"批量编辑","19c6b7463e1bf73bb4b12ba07abd5444":"字段1",cf12e55021998a8328201800ec356773:"查询条件",cfb5f18c43753ad5329348d626bd3739:"关键字","4a1e3c50547e61503a2d1c356005eb08":"增删改查快速开始-CRUD","85624c8e8b0fc98954eecbe508e8b59d":"接口地址","3dd674542204724eb5417efc7354ec73":"格式校验并自动生成列配置","3266535dc49863d976b9960adad29fef":"API返回格式不正确，请点击接口地址右侧示例的问号查看示例","07b59fd09f6007bac246d9a73b793a49":"启用功能",bee912d79eefb7335988c4997aa9138d:"查询","0f61da949d2b45534967e197cc2eee29":"批量修改",aa85b3cd6aa4cdfd45bfe5a96678ad2f:"操作栏-编辑","653eb2792d3126a60caa6982f89a906b":"操作栏-查看详情","8a4d6dfbcd8072555b5951091f171000":"操作栏-删除",f4b368051b455e386a314688c7c75c1f:"启用的查询字段","23c7ea8ee9519459598b2de65fe2a2eb":"每列显示几个字段","41a344642681efaaa418c228ba7fb45c":"绑定字段名",ffb01e5bcf4c00447f5150d3cba81371:"纯文本","59cf15fe6b8d659c9bd2f86143534a06":"模板","4ff1e74e43a3586339251494117185ad":"日期","9da188491dd34c4382a5b9f006194e41":"映射","8abc564260a1564521e0c3a1d5419b4a":"操作栏","2b6bc0f293f5ca01b006206c2535ccbc":"操作","07a88fae7dd11f87891af91fb54a74bb":"启用查询条件","7f7c624a843b0d539a4ea59a696702f9":"批量操作","46e6edaeb9968e7f7ab549d4f2f82d6d":"通过此可以管理批量操作按钮，只有设置了批量操作按钮才会出现选择框，可在外观中配置批量操作按钮位置。","8347a927c09a4ec2fe473b0a93f667d0":"修改",f13a0697d58d975d14eb3f3c72c2cbf2:"单条操作","3674ea51498e7118732e5e1c53d4bc80":"设置后，当鼠标悬停行数据上，会出现该操作按钮，同时顶部操作栏也会显示该按钮，勾选成员时与批量按钮智能切换。","4916771d080ddf6d0551de4d6d2f42a4":"悬停隐藏","569343b4fe5e48131b78611c11eadbeb":"同步地址栏","6dbee29a8c54eef9d042ef3280999ad9":"开启后会把查询条件数据和分页信息同步到地址栏中，页面中出现多个时，建议只保留一个同步地址栏，否则会相互影响。","2171d1b07d045e796cba4a05bcf7d13f":"默认参数","01e7eb2256821085a14708d6ddf36814":"可以用来设置默认参数，比如 <code>perPage:20</code>","58ed0a7a5a91996dbb4c7d6dc7679364":"保留条目选择","36ac0011faae6f88ee0ec3e642328327":"默认分页、搜索后，用户选择条目会被清空，开启此选项后会保留用户选择，可以实现跨页面批量操作。","2a0b47ba76e886070c3bd6abeae3d1c0":"单条描述模板","6ab3e5b6c5d5d2cf621e911226495433":"开启【保留条目选择】后会把所有已选择条目列出来，此选项可以用来定制条目展示文案。","987b04af242bb2dafaf32d890ab952ff":"指定主键",a270e70be12fb13a24ca3e4ac70fa838:"默认<code>id</code>，用于批量操作获取行级数据","54ea89b497ec3bb319c68844dfa3687f":"接口",db7ee36de8063c2d5a6c123eac65641a:"数据拉取接口","0951dad1723aa1191ce1a2e96db76051":"是否初始拉取","0a60ac8f02ccd2cf723f927284877851":"是",c9744f45e76d885ae1c74d4f4a934b2e:"否",a9400c408441f1f7f6d6954deb05ae9a:"表达式","55b22f5d136e73b26cef65aedd8ba86e":"用 JS 表达式来决定",bedc70d448b656d828bd3ed7926b3e4d:"一次性拉取","559fa334442f0f75b0343bbf38b7ff05":"开启后，数据只会在初始的时候拉取，后续分页、排序不再请求接口，都由前端直接完成。","1af68c43e1780249f11b9de1eeaeb281":"开启定时刷新","9800f1ce2f78a23b81c8d944ebf9cce9":"设置后将自动定时刷新，单位 ms","19c5410b23fba4bbfd1a58bbd5268c9b":"静默刷新","04f840b0772f4b5d59954a29a76f4e7b":"设置自动定时刷新时是否显示loading","6037dae99e9446deaed45f7e408f47ab":"停止定时刷新检测表达式","32e3a79e80dcf7f7304e8092dd7acc6f":"定时刷新一旦设置会一直刷新，除非给出表达式，条件满足后则不刷新了。","154ef40e477c031f6c1ec15caefb570a":"当有弹框时关闭自动刷新","50f7c85bf60a9f43522789644566c62b":"弹框打开关闭自动刷新，关闭弹框又恢复",d8905a70e93a33c7a86240f467c653d4:"是否可拖拽排序","040a78b24eaff47d4fa7e266473635b4":"顺序保存接口",ee850a0e326b217bdeb61d936c521177:"快速保存接口","8343f619879fa79bc8ef1a35b2fc3e78":"当 column 中设置了快速编辑后将使用此接口批量保存数据。",d891e79d4a8718a7dbd47ac68aaaa5cb:"快速保存单条接口","38db6e045e214ffcd03ede695002271c":"当 column 中设置了快速编辑且设置了立即保存，将使用此接口保存数据。","522110866c19dace2ce38336617405c2":"默认消息提示","3b69c2e540c05e9ca530ed30cf224472":"覆盖默认消息提示，但如果 api 返回 msg 则会优先使用这个 msg",fb24383a41f23196349548b5d0cb98ce:"获取成功提示","62e3e15c8fb9038f2780329bc26e8bab":"获取失败提示",c62a1b7f314be10aead10475e7543f6a:"保存顺序成功提示",c8035507b7a576d43e9f227c91c7a7b5:"保存顺序失败提示","7cb0932b806559be232d2a69453224e7":"快速保存成功提示",fd79a193a487b8c9d5a302d0d88c1c2c:"快速保存失败提示",ff57a3bf69a1065707e77c18c51f7bbb:"内容展示模式","20aadc3f9b7edb564dc58898898e0dc8":"列信息","72cf373be86a38b29f6d2f15900b0da1":"副标题",f26225bde6a250894a04db4c53ea03d0:"详情","3bb4d608c6bee2b7b6d788417cde04e3":"简单的展示数据：$a $b",b339aa87104709397ba68e7ebbc6e5ba:"表格",d87f215d9ac688b1d3399bf575a0ef6f:"卡片","3712972d84adf48acbd6ad24b4d75ad0":"列表",e4fd8d64804a4f3d743eff384a6eb20a:"非内建内容请在预览区选中后编辑","14555503d6e09ecd66661d04c882e79b":"顶部工具栏配置","3862626c138ce5945e0e273a1bdfbad0":"分页","439a19857be1fb8d3e6017258e32c486":"统计数据",bc908986a4e4eec3dca3530afd1d4306:"切换页码","77281549955309c49f5eef77838a85e5":"加载更多","1add12ff3338a990b60154b75019c348":"导出 CSV","7d57852b946d9d4d64fb2a48ca2b4a44":"导出 Excel","16c6099bc0efaa669d8de698c105e333":"列选择器","073694928db5b0b5423ebe095ec62d39":"查询条件切换","5b9c3e6ce478196f802722cb09d61f0b":"拖拽切换","66eeacd93a7c1bda93906fe908ad11a0":"全选",d5bc35360607472de4525358af126de4:"对齐方式","413f48cc71f71083ce532a86e3efdc21":"左对齐",fd8e9572cc6bf87653c4d8f8b8dd0db9:"右对齐","1325969c143a639294c1c6ab370b35a3":"底部工具栏配置","440a3a2d7f1b123718be75e2baee8391":"详情请在预览区域选中后进行编辑。","34da7e4a0ecdb63967427f43adf2de3e":"是否可显隐查询条件","25c0db3ddce9bfffd497d0c824cf3c72":"查询条件默认是否可见","259d11c300a365b6767228c12d29ce53":"隐藏顶部快速保存提示",fa9417bacb7714e82663655345ca213d:"是否总是显示分页",e3d2a85f20608a5bde7d539969d03167:"隐藏选择按钮",af1af0a7fad9e8bdcd21694d0e036e12:"内容 CSS 类名",c11322c9cc43ce3c004cf03f5ac0acd0:"数据源","62569fcb0fc8314daea97989bba3877c":"不填写，默认读取接口返回的 items 或者 rows 属性，如果是别的，请在此设置，如： <code>\\${xxxx}</code>","606bc931d2b3ebba2569cb1494719e2c":"每页数量","004d01f56242e07cbdc97256bb11c75b":"翻页时保留选择","3d330edb46341a26ccc9aaa7f7938a8e":"最大选择数量","95e68bea2d8c8e41ffa619d4364a0d6f":"页码字段名","537f8b09437bdb7fac429dc4e8666763":"分页步长字段名","30c7bd5acd4564057bd89e0846f01728":"排序权重字段",dd8d217677e4c5df28b7f46aa99b22a8:"设置用来确定位置的字段名，设置后新的顺序将被赋值到该字段中。",e04e8f570e2fb43a533b224f3c48523d:"切换每页数","0fc1de8f71a7470213fc68f981abdbc2":"配置单条可选中的表达式","7d5fefd589000879088063dceb4b2552":"请使用 js 表达式，不设置的话每条都可选中。","614ec7801e03f7ee009e4448e6ed4001":"开启单条点击整个区域选中","530ab79908eabe5b329ffe17695079e2":"自动跳顶部","9092afb1ccb692308ef06d8001da2208":"当切分页的时候，是否自动跳顶部",c8cf39b24bb52d0562472c33b86824fe:"同步查询条件",d3c172700af4f3f3afb028d6bb4a90a4:"查询后将返回的数据同步到查询条件上","5db6b2160b9169b9d89de247d14ab740":"「增删改查」编辑辅助区",a4313469fd7361486fe47076629c76ac:"新增记录","50abd0bf31e07dbee84e9e5b9a407840":"新增数据","73f28ac83b623fb81d73f16fb3856fa0":"数据导入","8d9a071ee2ef45e045968e117a205c07":"导入","09d44261d7883bf5141a462a790d2816":"数据导出","55405ea6ff6fd823ffab7e6b10ddfa95":"导出","6ff4bf3d567e977aa4c90c27dff1e6db":"模糊查询",e5f71fc31e7246dd6ccc5539570471b0:"搜索",c26996a6506adf397f0668d376d0b40b:"简单查询","9c4666fd08c2738eb9611a3721cb5f0f":"高级查询",e22b59b6bda1cf9a58f8979fd0a0b43c:"编辑记录",a790208cafd5c95a18dd9a168319ecf8:"删除记录","39ccc34fa3ee9be12d8bae7e6fecbac2":"操作列","240145572215920ae06db1eeb85b29c0":"可选择","099cf136d6a4b6ed4646af4a2ed066b2":"保留选择项","60011314ed92794f3d4f3e874c359279":"默认切换页面、搜索后，用户选择项会被清空，开启此功能后会保留用户选择，可以实现跨页面批量操作。","949a8b7bd2c10070a2fae16f9c66afbb":"列设置","2816cea6c4887a53c417831deb5fbe00":"自定义显示列",d3c5079f7e26b1a7374ff76341376de4:"自动即列数量大于10自动开启。","4a3ebd0ef27212de3b0c39e6a9701b1d":"搜索设置",a9a3a4608d48214efbdfac99888f6e0f:"操作设置","84a2f40385427bbf2edc79e3368e4e0f":"添加操作",cb43abed5ba14bf32fbb1058e12d2303:"更多与分页","48b42e5c3ea447092eaf0a1a13195540":"分页方式",d81bb206a889656035b929cd8bb1ef10:"无","16b8ff2b147382be4cf8654f829df904":"前端分页",d2e20bb1e977f9571a9e2d1b39a7ff10:"数据一次性加载到浏览器，而非每次请求后端用户所请求的当页数据，不建议开启，对性能影响较大","73721e611daaafe5c34aa9f3f901d016":"数据容器","46a0f3086dce242abe54e48bd86e0394":"列表展示","278249b178c958cee0f5ee9ee9d1e0f5":"{{@1}}创建向导",d75a7984d3fa5b32f5d8312e899aeea8:"数据配置",c2f1f9254c245976e346377515c2e578:"功能配置","012f602372cd2dbd639cd966c63e1f90":"工具栏","0943d61befec4c6cf2d21d170c9b066e":"条件查询","5246d2c81fa12b1f4f73635c257e232d":"数据操作","1b79a4f49b7a21e62b8868f12189b0b0":"数据加载","5a28d015b7b3518f75bc4cc27d9f6c20":"列表数据翻页",cfd84204d9476936c949d071cc2338cf:"数据查询",c6bd3393c21379d3f75d179abe36da3d:"使用指定条件完成列表数据查询","3a6ecf25c38317b21b8c6287100f053a":"触发数据查询",b3a4d6a345372c5def1d5a1bf6077bce:"加载更多条数据到列表容器","34e83e1be408c4f198464da1bf56bf9c":"加载更多数据",fe9e25f4e4b3aeefeb9b7a9c368ede7e:"全部数据","2c77cfaef73ce2e81131861e9c6d670e":"选中数据","9c9153c49491c381dc2adb2c36fccb04":"未选中数据","9a4fe969f1066e197fd2369a44d879ac":"当前页码",a7f33a2d99056edcdaced5c8841a9bcb:"总数据条数","1a63ac23010e0573f7c0a8cd3314b8c6":"示例","093c340f7e1fbde1928ca56b5c7f9cc4":"卡片列表",a0c35361a003527d123cb581f5c68f4b:"围绕卡片列表的数据增删改查. 负责数据的拉取，分页，单条操作，批量操作，排序，快速编辑等等功能，集成查询条件。","9caecd931b956381e0763d05aa42835c":"字段","860827796ce2fa94e9ee39e53f011ec0":"围绕列表的数据增删改查. 负责数据的拉取，分页，单条操作，批量操作，排序，快速编辑等等功能，集成查询条件。","629645f147f378869fe9d7ee2bbc2857":"副标题内容",f49d40842a3c66c4de2e57a48157c707:"展示单个卡片。","0212e8c9b113143a031d1f3e25167794":"请从左侧组件面板中点击添加按钮元素","6312e80e416fa79ff3383e1577c243b8":"请从左侧组件面板中点击添加内容元素",a3cf7c9ee581ae71eb51d18b610b05b6:"新增内容","00a1f644f34b9ee43adf82cb3449158c":"支持模板语法如： <code>\\${xxx}</code>",f7a82c9758acc4ff4c5350182f2ca378:"图片地址","3bdd08adab6ea90b9164b20a0e4151ac":"描述",d85562778760b00b1372af642c4630e6:"是否高亮表达式","4011e5fb23b422f755d81269a5242d22":"如： <code>this.isOwner</code>",d4f223e0619836d03d488c89558f38e7:"卡片一行最多能放按钮个数","620868e5e60e5c22249c3277c971bb13":"标题 CSS 类名","1fee6fa022c97f5dd7f48e362cea5acf":"高亮 CSS 类名","2a3c7d647a29fb7dc5aedabac216575e":"副标题 CSS 类名",a5680444d449b2099b067e9963fe43aa:"图片外层 CSS 类名",b8e1e46cbdea20de4e5fc130d31b7bcc:"图片 CSS 类名",a31119cb2fddee3366163a311f317cf7:"内容区 CSS 类名",e82eb2350b4283822aeea21aff9d97b5:"字段{{@1}}",bcee820bc20342a4d388a35ed32a35fe:"列名称","97d03d4621f0024cf045afbd901197a5":"选择区域","44705bb94d83e7bd6b3b6c1480ebfb38":"点击触发选中或取消选中的区域",e30a958a6397e53fae9d5316e851d3aa:"整个","31ad7a215f3df84c33b8c28223147b8e":"选框","563ae5ccda5004fa1fce77c1ed5bf057":"隐藏选框",aeca6900b9e45f7f235eb9d443f0dd61:"不再显示选择框，可以通过自定义选中态外观实现选中样式","1d4103a96a70de2cb69dd597d679fefe":"选中态","85c17b016309a3f867a1803049b3bcd8":"功能类似于表格，但是用一个个小卡片来展示数据。当前组件需要配置数据源，不自带数据拉取，请优先使用 「CRUD」 组件。","6223c41373004e3111e768225450b4e8":"卡片集","3983b9f5575ae146d2d06f8ec5447a4d":"配置单项信息",a3f38735bf211edb2066ac4e51b55cb2:"打开外部链接","7ea26d0cb93e59339daf6a1ac68624f3":"绑定当前环境变量","21efd88b67a39834582ad99aabb9dc60":"暂无数据","35ba83e053cef95e55dfffde279822b5":"无数据提示",e18d033cc4baab3ebb329f6b29eb3cef:"是否显示头部","412593f58b9d062a43cbe2ce38f4dc65":"是否显示底部",e494f1aa112068688ca863db7f39a0b5:"头部 CSS 类名",d267231d2d8b60e267acc7d7d9955ae2:"底部 CSS 类名",b2d2593bfb7a627817c0bd1ef6a254a8:"卡片 CSS 类名","58e78d512d9ff40c73a263ab616cc652":"每行显示个数","3cf0da9fe51f92842e0a6d375fa5c605":"不设置时，由卡片 CSS 类名决定","953e91f3df59837ac2965cc04dec4b0d":"启用瀑布流","39a6853b109ae98f1aabca90283d7edc":"配置成员渲染器","6cb01692eea2fa7066d20fe2b6ccaea3":"假数据","0c0180cb06a322199a67f10d4ec41cd5":"轮播图","1007c97dbf952e032ce13be3cb811f23":"用来渲染轮播图，可以配置每一页的内容（不只是图片），可以配置过渡动画。","0a2907a421b8f980986117e4f3044f92":"关联字段",e760ec18028fc075c5705bf184589e70:"静态设置",d314558953b3c76adb7e131aaec8bd86:"字段名","793a763e73f1f742e3a16ddc2ed95ccb":"设置字段名，关联当前数据作用域中的数据。",b9994cc749b4cfbbac0a9b140addd242:"轮播选项内容",c6c7456d446d62a906c2809b6ba19ce1:"图片标题",ab8a46ccf46acbf82d020d11468291b1:"图片标题类名","098c3d959911b48b4d912cb85ccc4942":"图片描述",c6fc4066471664a8602c636cfe1cc766:"图片描述类名",cfb6f6e4c92a61ed0e0717abc8d0eec7:"<p>html 片段</p>","97cc997910b99083bd23c6ac39294ff3":"自动轮播","8c2a12c5dee794b8b9608bc1f8087947":"动画间隔","6265104f900789dd51d75b449c3b9f89":"动画时长","5bc37c57ee54d407f441b222f02391db":"动画效果","8a0d716ded7baa7ee356ff39c3cf0bec":"控制按钮主题",f7471313dce32bc3669d338764a0d036:"控制显示","1c0fe943329339003e9e3c1b12a27fe3":"底部圆点",e030190fd1c10b0c967f48e789fa86b1:"左右箭头",c28479019e24e0e4745f4948e9e97ee7:"宽度",ad5a36ee5f4054594c30b6dc481e2d81:"上个卡片","49e0f68798e3c69b7990076bd8f1f47f":"下个卡片",d09504750ebc1d75c38d86e16060f83d:"图表","10e14f791d73c7c0f4113787f36f1626":"用来渲染图表，基于 echarts 图表库，理论上 echarts 所有图表类型都支持。","67b6bec14c39be3f2602271e2fe3bcde":"更新数据","0310aa5a05fe07147d8b7ef20616f659":"触发组件数据更新","3d6abfdea70af544603da70f93ed3d24":"接口拉取","03677b68a73eb59e5faf281f49f3c130":"接口可以返回配置，或者数据，建议返回数据可映射到 Echarts 配置中","1396ebc166bd49c1e3b67549a1b4caa0":"初始是否拉取","2af32ab13a9dece315cec2764d6aa7d4":"定时刷新间隔",bc827aaffaa35a95607346cc104c0785:"设置后将自动定时刷新，最小3000, 单位 ms","57c7d1125d2803b946a5b25c3f80f249":"Echarts 配置","3d3fa75d8b345b22a5fbd14a65a0af71":"支持数据映射，可将接口返回的数据填充进来","43ddd80698198791d4a738bb20a2d7f4":"配置 DrillDown",c8da43fe6ad1c537f86cecb353250145:"删除 DrillDown","4fd9621d4facc101aba3afec055e14d1":"数据加工",e8b90f43fc3cfb0a68e4392054de97e9:`
              如果后端没有直接返回 Echart 配置，可以自己写一段函数来包装。
              <p>签名：(config, echarts, data) => config</p>
              <p>参数说明</p>
              <ul>
              <li><code>config</code> 原始数据</li>
              <li><code>echarts</code> echarts 对象</li>
              <li><code>data</code> 如果配置了数据接口，接口返回的数据通过此变量传入</li>
              </ul>
              <p>示例</p>
              <pre>debugger; // 可以浏览器中断点调试\\n\\n// 查看原始数据\\nconsole.log(config)\\n\\n// 返回新的结果 \\nreturn {}</pre>
              `,d98ef182637b4d10e16e8073c1101e51:"Chart 配置完全替换",f1f13cb0ca4720a727cbfba4c82e5890:"默认为追加模式，新的配置会跟旧的配置合并，如果勾选将直接完全覆盖。","40128a51e9667fe6a20a0454069368ba":"<p>内容 <code>${value|json}</code></p>","7e3f6245e2a6adb903cf85c77cb1bbd7":"配置 DrillDown 详情","38bbd995a790f5a67211e034b007c145":"代码高亮","86e38e6425f722ba725718af2366ac08":"固定值",e90e6ff080f179215c3566a61ca62367:"折叠器","452b62e9b7e650fa163300da2893654a":"折叠器，可以将内容区展开或隐藏，保持页面的整洁","81d2b9f20fb2083c75a5b052b84e897a":"展开标题","7349194c139069b32889101768aa7428":"折叠器处于展开状态时的标题","3a8647306ee6456517b7bf9c8bc7de23":"标题位置",c949729cd1a1e425595c1a297649c7c6:"顶部","12c4c5e8abda77e1fdc93653d6414187":"底部","731f9b470e0948cbf56341a53c423213":"显示图标","96c0cc844a06e0850c04f7c44b6475fb":"可折叠","63b67eead04256e42ea9f6f7218731ee":"标题类名","66d88b3e01aff17c7973181e53fc8c0c":"内容类名",d09980a88568f75e9267ca7b531c74eb:"折叠面板","0d571a7ab19e098820e8cea4d5a80f7d":"折叠面板，当信息量较大且分类较多时，可使用折叠面板进行分类收纳。","17dcbf1f144607d4af0bb718e008682f":"标题1",f7fb20f6cacd5e40c7f5732cb377d0bf:"这里是内容1","72d41bd9eb3882f7da6f55d0ff0a39f6":"标题2","0431ee7033364800e261d1e560808231":"图标位置",a7eaff29603a9c40927f726013d2c016:"左边","128d58f066a18ddb2ddb701921d5c77c":"右边","47b4e22880eb59ce9989b8419222e88a":"手风琴模式",bb3548f0bb97ab11ee92284ecf37ec16:"手风琴模式，只允许单个面板展开",f24544b06700857ec11b434cb2916692:"面板管理",c5ceab33d3e275262b4992a8cb43317f:"新增折叠器",b839e579e920068bd817d34cd7927069:"请添加折叠器","030a54b0afb54fc7f90e1a0f64eb8205":"默认展开此面板","39b066b81835fd66bd4529d1220c9dd3":"标题{{@1}}",a955021cdf0249de1f3818f83cf248b7:"用来展示表格的自定义显示列按钮，你可以配置不同的展示样式。","24bdc7e8957abfc5d82f4206e92bb518":"按钮文字","787366b0d678071a5ed98e55d31eba84":"按钮提示","6a0508144ae12bfa79001693d713c0d6":"是否默认展开",ae3816c5b00fcff4111842ac19f0a706:"按钮图标",fe805d91ae93be775670c61214dd2f28:"按钮尺寸",fbbbe30d78c335bad27f3dfc5efd2a5d:"显示列样式",ac3880323853de9adc4f66bc06d438ff:"按钮样式",ded228f9173b241dd8df2a4811ea0e98:"一个简单的容器，可以将多个渲染器放置在一起。",a823cfa70cfa46c788e1eedae043f6e5:"容器标签",f7d64e5e79994c3c8853f2608d7b2d25:"HTML标签不合法，请重新输入","473d2078518479669823205110842376":"自定义代码","8b9c77fa4e646b9cb270f833252e511b":"通过内嵌代码来实现功能",f8c5e0ac29e905e91146e967cfd39dc9:`
      const button = document.createElement('button');
      button.innerText = '点击修改姓名';
      button.onclick = event => {
        event.preventDefault();
      };
      dom.appendChild(button);`,"0b13dc6251002bf556263fb3e4675b11":"HTML 内容",d6b917c76b92aa9b92b6bebdcab993f3:"onMount 代码",e64739dd24bb0bfcb6f6e1ee2cce5413:"onUpdate 代码","0601b7aa5b53cbc3616e24719bcd2aaa":"onUnmount 代码",a8065b6d2062bf061762b9200a88251a:`
        const button = document.createElement('button');
        button.innerText = '点击修改姓名ddd';
        button.onclick = event => {
          onChange('new name');
          event.preventDefault();
        };
        dom.appendChild(button);`,b82231f254baf9a28bf752683d31b169:"自定义容器",e5b5798a8bab7dc8a578431991731040:"通过自定义代码来实现容器组件","96ec95de2d7da5b16465eb980f74deae":"<p>自定义容器区域</p>","749f710d280419b1da031c9bc79b3b07":"自定义容器区","356b1959a9da95997b4de31415d9d74e":"日期展示","2bc6d101e5701a70f2fb9e0b67581594":"主要用来关联字段名做日期展示，支持各种格式如：X（时间戳），YYYY-MM-DD HH:mm:ss。",a2344febfc246ddc7281f62217ba42c0:"日期数值","84ff80a2dc4717cc01acd486040a6763":"显示日期格式","6eea1b15be458a6999c9259aa2280a70":"请参考 moment 中的格式用法。",a7032449ae8761aea61cc30e32d3be10:"数据日期格式","4c1cff4d8c05daa6ed9352a241ee628c":"占位符",b54e0f0a60f8e2c4c31f3b1ad7d5a613:"日期时间展示","2a898869829eae8adcfca290fd34a67d":"日期时间数值",b0d6f2d882adc2163e6a08a121d18677:"显示日期时间格式",ab3aec075a09d055b2a28c8b61925ee0:"弹框",e83a256e4f5bb4ff8b3d804b5473217a:"确认","773ddc154f1e9b80f04e8bc9d83d2caf":"点击弹窗确认按钮时触发","625fb26b4b3340f7872b411f401e754c":"取消","08ab4ffcd1bddd249a193e6353bb52bb":"点击弹窗取消按钮时触发","4708bcefff645287c8781a1de2a0f20b":"触发弹窗确认操作",af17a4e37e5c6d68fff33c084192801b:"触发弹窗取消操作","391b8fa9c747a1799353ab856e666ad5":"小",aed1dfbc31703955e64806b799b67645:"中",ab18e30c0dc4093ceeda8961fac3d1f4:"大","949934d97c42801151673a51d3adc421":"超大","8c8fbec263e20f087555c9abcb6dd07a":"展示关闭按钮",f29ab26877ed22ffa59636d747d824b9:"可按 Esc 关闭",dcba76890a534e1fe94421be2a17b484:"左下角展示报错消息",af5876b89583552eef4c781718886dec:"左下角展示loading动画",dd10fdec63a2224aa3d28b48d428cb98:"数据映射","261bba7ad82914e477f4b37f6a83874e":"CSS类名","5e5d3f13111593b2710673006d4c8297":"外层","7e1eb2c588aa1301f4aa19395ef0a177":"分隔线",bc43ae8e61f1ad4be2b0a9e70501e490:"用来展示一个分割线，可用来做视觉上的隔离。","33f1fc330b325469b43614c9d96f590e":"抽屉式弹框","0c5a0448b07419ad2900c36867e8e4e0":"点击抽屉确认按钮时触发","57f215184a2fb83541f7cfa22d039feb":"点击抽屉取消按钮时触发","97b6bad87c4320faac2f6a5cf556c26c":"触发抽屉确认操作","909ba2872b2d670ec0ecbcacc4c8c833":"触发抽屉取消操作",d4d2a66820d30e07b44c850eb3f116c0:"位置","6d7f8b31caaf80deb65eb2c8bdd41cd7":"超小",bde8a41fc64bfe78d0c4951ac6f93718:"显示蒙层","4a757588f5aee8cd039b1d166b096d1a":"点击外部关闭","874cf31274d782914c7833cc39836c4e":"可拖拽抽屉大小",d3e329f73ae4b58d95cc7769eeca8370:"位置为 为 左 或 右 时生效","45ce37c24c6e7252d98c6d450e3ca4ad":"标题区域","660553eee939d2bd8ea68172fa7216df":"页脚区域",cc70a816b7d61e7212d57335c0a15af5:"下拉按钮","74bafe23b0be1a14aa218b396cb33bd0":"下拉按钮，更多的按钮通过点击后展示开来。","213a4e49568569943403ff31fff31ee5":"配置下拉按钮集合",b5b57c711fd2d2309cc390a8b44d2b69:"按钮文案","314454bbee226e4b32b612afdd8e9442":"鼠标经过","9951d740257c40978c238a683b1d4a80":"点击内容关闭","205cb6cc6c8d37f3bed62d9c8bfae976":"默认展开","697eb55e1c6cecf43e63a26232dda5b2":"选择后下拉菜单会默认展开",b2aa282e908597d1d700c1f4de17b8aa:"菜单对齐方式",e57996d3d771141f1b3080bbd8ad605b:"选择后按钮占满父容器宽度","1ce673c48f29162208e75bc210307bfc":"展示样式",c9e265ec462b61887af6f58928923925:"隐藏下拉图标","938ac86e738246ccd0ca0224031f96af":"下拉菜单",ff9f6c2d74c413daa3cd6fb12f8dfd3e:"循环 Each",f34111ff3694a6c6de6e31bef8ebadcb:"功能渲染器，可以基于现有变量循环输出渲染器。","874268022baac239b06c40600d3ce080":"<%= data.index + 1 %>. 内容：<%= data.item %>","69bdc66bb88ac5b63053e2bb7db41801":"循环",b7c16dedc4291d333fba7628ec9eb073:"如果所在容器有下发 value 则不需要配置，如果没有请配置变量名，支持多层级如：a.b，表示关联a对象下的b属性。目标变量可以是数组，也可以是对象。","4726ff4e62d3fcfa4b090aaefc393229":"暂无内容","5d5f9d49fcb2109f94a43590ef796ca7":"当没有关联变量，或者目标变量不是数组或者对象时显示此占位信息",f549581bf93c72ed69c37e906e04191d:"Flex 布局","6ab8332f3da284b137d54f6ba901e93c":"flex 布局",ef5abdfc944546ddcbe10e9884cf5832:"第一列","874fdb7b3a5730910a4de1c58220c337":"第二列","3a76596e73fa265257ce90b7bed684c7":"第三列","5aefca559c5a41d10078e21e6d616825":"布局","2fdc3722b88a2ba5077e0d11156ede6a":"子节点水平分布方式","4ba6c2256050d805ae5cd1e0e84737cf":"起始端对齐","56c17ba6a56c01706ae00a31611deb03":"居中对齐",abeb360ab1e66534a041fb8b44e1a00e:"末尾端对齐",d5a3cb1cc31a0469b011abdbd3e947f7:"均匀分布（首尾留空）","85530444a72a840ee657e2df99970136":"均匀分布（首尾对齐）","9aad08fbd356fb4279f0efa81b3d016e":"均匀分布（元素等间距）",ae558cbf4c35d381b6542f517f2e8dff:"均匀分布（自动拉伸）","70d39e84bc1ecefaf6e19cf78c9574fe":"子节点垂直方向位置",ed97c73866617b40a7b1215867e0f489:"基线对齐","7ac1519928de413cfe36f5d2e0610430":"自动拉伸","8e15f51c9512fdbf4287794d6642a90b":"子节点管理",bc78248b34b7bf18691e6d385e0f544b:"子节点内容","023c4bfc60545a2668c2d5111171b5d8":"外层CSS类名",a4611da51ffee9140976d01668e45d45:"子节点集合","729a4cca5ed3504793c1f3a87d2b48b9":"按钮点选","29513434492e5d19a9660e0a918befd1":"用来展示多个按钮，视觉上会作为一个整体呈现，同时可以作为表单项选项选择器来用。","6edda84461bf13d38328cb401c8c23db":"选项1","39692081e75ef73c6479fc25f8f10dfc":"选项2",a457872a51628ccadfb9bcfa23428a98:"按钮点选可以当选项用。","755955372bcc0c7ebf161a656bc389b3":"值变化","2fc76872efce1eabd3b74a3e4fd5b976":"选中值变化时触发","528609917710d813a55e5a6cecf1e458":"选中值","288f0c404c4e546aa3683ff5054e85e2":"清空",c374a44713fa5ff5da2565beb398c7d3:"清除选中值","8db57ba01ffb9bf29c1656de5f0208f5":"将值重置为初始值","8f40db3b25528063f1b6a59602a05cd5":"赋值","944908c981a86bfa0cfab9360ab38184":"使按钮宽度占满父容器，各按钮宽度自适应","0b98b0bea3db6ae5b67a09c7bb2d032b":"按钮选中样式","55b45c73ae417c4dead67905b1550e85":"表单项","3b49c8cece3f495f0e76b73823c68bfa":"按钮集合",fd179c2844536ce198290441c38c814e:"<span class=label label-default><% if (data.type === button-group) { %> 按钮组 <% } else { %><%= data.label %><% if (data.icon) { %><i class=<%= data.icon %>/><% }%><% } %></span>",b6872877e1eb5ddedd904c170db26024:"链式下拉框",fdf1664c0790d25f236bd596aef1acef:"通过<code>source</code>拉取选项，只要有返回结果，就可以无限级别增加","556988a9dc1816dd979e96eb5cd19a85":"链式下拉","225f3ed00750ae78ad1e6ea42c8f5087":"默认值",da3ca8191fb919fb34e8e78fc6f2fc78:"请填入选项 Options 中 value 值",bc8d09093edd98769d5cb39e759aa498:"拼接值","2646ee1ebb6922a5c9359de6cd3b3639":"开启后将选中的选项 value 的值用连接符拼接起来，作为当前表单项的值","1395eba8d9efe27aa1ecd1a45e3e5dcd":"获取选项接口","1495c26f33625552e4845630b6b7b44a":`<div>可用变量说明</div><ul>
                      <li><code>value</code>当前值</li>
                      <li><code>level</code>拉取级别，从 <code>1</code>开始。</li>
                      <li><code>parentId</code>上一层选中的 <code>value</code> 值</li>
                      <li><code>parent</code>上一层选中选项，包含 <code>label</code> 和 <code>value</code> 的值。</li>
                  </ul>`,"4ea50507bf8b9ceb908677f30fb20e68":"选项标签字段",fe4c9c2eed1ad213040d84036c675454:"默认渲染选项组，会获取每一项中的label变量作为展示文本",be43687d4ed1d9e663c729e12618166d:"选项值字段",f1e6b60c4b6df555a6b03f91033091f4:"默认渲染选项组，会获取每一项中的value变量作为表单项值",f411d0f1f925d9b48d8c1d451bd809b1:"说明","2ef0fb6299da5954f5ea84a088684ee5":"选项说明","454e60f5759903d7d3dba58e3f9bd590":"勾选框","81c8c07d13f425215010783bbf3bf06e":"勾选表单",c75fde0e2d329ce62f55cb1a207181ae:"选中状态变化时触发",ddd6650e02f5a266c3df2703daf37270:"选中状态",db0258df1ddbd88749b335aecdc8425e:"值格式","53235c46364db079356d57da5870f967":"勾选值","56f3150f1713a5e5c6e7c55fb0b79b75":"未勾选值","7c7a88eb1bb4b40206c6c680bd8995a8":"默认勾选",db98f889ce6bc235e66bd4b2a788d137:"复选框","6d1383a2806f0516aac2c115f96799eb":"通过<code>options</code>配置多个勾选框，也可以通过<code>source</code>拉取选项","05f87b331e1c97691776d93a6598373f":"选项A",f38c0a46797523b11051e35ec0f82a42:"选项B","9c541222ced2435288c24b34f8ad1fb8":"可全选","05bef457e8350e1a5d8007cad41b70e5":"默认全选","84f31b24ffc8ea2b81d61a6f054b5bb6":"代码编辑器","08346c5bb99d8e3bfa406995b8c4f067":"代码编辑器，采用 monaco-editor 支持：{{@1}}等等",ab0710b367acefa1d6a78e2338291e86:"获取焦点","4638e799b95e1b71edd55f278a6f707c":"输入框获取焦点时触发",efa3ddc1e26ed5d8cf7d9855cc7bd42e:"当前代码",fc96a5f1b79cb734afe08e401b6ba5e7:"失去焦点",c776ab86eb24f6b3db35114e43026f75:"输入框失去焦点时触发","829c57d7064cad467ec466ae26244ebb":"输入框获取焦点","295bb704f5205801d57d672780b94117":"语言","44fe0e1bcabcea83d6a30e6af0fd42af":"可全屏",b3b97a293baac13db6367aba5539a09c:"控件尺寸","18c63459a2c069022c7790430f761214":"默认","3386da5f56fac758ed0f18e024ecb943":"特大","254bb8aa6b92d588d957a383df24db1e":"组合输入","4db731c7d73988e40a01b4bf1a7f00d7":"多个表单项的组合，可配置是否增加和删除初始设定的模板",b58c7549c0246c55b9cac96383200338:"添加","8575b828c7320de82b9f99058aa1f55f":"添加组合项时触发",aacd80d2c978abae7b955510a938788c:"当前组合项的值","4933bd64bb23de03ca8ed246fa5509c5":"删除组合项","0410242a74850f010a9a8061bc0cd891":"删除项的索引","74333901ae9ad27a93487dc850e45609":"现有组合项的值","95e09290c4e0f01323bb5abf301c950b":"切换tab",ba2bd765f6c2e2b717139c5453884e14:"当设置 tabsMode 为 true 时，切换选项卡时触发",b04c6cf9cb1212b9c173ddfeec129028:"选项卡索引","055f2f284d2bdb15bd9e542ea9f93285":"固定成员类型",e3b9236d585eb9c93a074f264737cb65:"多分支","66e867eb73a118649800c0a064d0b5aa":"类型名称","5aa528690fd771f89683a7f00868f39e":"分支管理","35b65a5a3f8d721e12cae310463d69d6":"命中条件","85485d70be6b380294428018e54fc9b9":"根据成员数据判断是否使用此分支","50bfed6ada3e7d0ef4d20eb727b3d7df":"配置子表单项",d68162ea1904f627b033fe3953da295d:"配置子表单集合",aab09f676645f2651655a711d5e3327c:"新增初始值",dda5ffc9ecbad13d424346890bacca6a:"是否可切换类型","8a0c77e91392d70df522b55eb4d403e2":"多行模式","26343b8bcb694fa5e333b47d8b663d1c":"即是否要换行","86032735a191d117b02111e447494380":"是否将值打平","28a59fee1a4714493a8d6cec05c1417b":"默认数组内的数据结构为对象，如果只有一个表单项，可以配置将值打平，那么数组内放置的就是那个表单项的值","7f2579cabd4d654458a720eed517a37d":"是否可新增",ea1e5695bf682ea3b31aba0c35198ae3:"新增按钮文字","1ab31449faaaeeeb7200d724eab9a7ab":"是否可删除",fa3e9f9e49f5a81c998f949155f86b50:"删除前的请求",f962922d46ef18e68127642e5c00165a:"删除确认提示",fc763fd5ddf637fe4ba1ac59e10b8d3a:"确认要删除",f41a714bc8b26dc27a93a07c44e329a8:"拖拽排序的提示文字","91396e9bc25c9e8b63907fe22408e2bb":"可通过拖动每行中的【交换】按钮进行顺序调整","8ee004bdd55b578acdb10b1bcd3fa4f7":"去掉边框",e9cbda74a1ffc06228fca68e4d16c4dd:"限制最小数量","3baaa61e619e32fc36eff14839b1a63f":"限制最大数量",b8ccbc166c72b2eb54aac1332c99fb49:"有子表单项限制失败时提示",b34cbe877b2c8464c625858fcf19f4eb:"最小长度验证失败时提示",ea2474ff679195d9b54bd5ff3384fdfd:"最大长度验证失败时提示","1c5b9cb245f04413a2d888bd59442097":"是否自动填充父级同名变量",e673084b4261d10104d27ae9e4d014a4:"采用 Tabs 展示方式","6e7bd650f763085de3bddd51a8d6aa88":"Tabs 的展示模式",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"正常","2dd25b8c21efbfee4a198787810d65d8":"内联",fc6c9fa3af230165c39fb314c086be22:"选项卡标题的生成模板","9ff4713f6b17e96e9cd76650fd5892be":"懒加载","93dc24d4ad01981d5994ba7f8ffaf345":"如果数据比较多，比较卡顿时，可开启此配置项","98d52b737d6bc171b6d5bad9a42f6e23":"严格模式",cb5ca128b6c78a90f26673e21b0b3f28:"如果你希望环境变量的值实时透传到 Combo 中，请关闭此选项。",bc91f4844843d6c8ec1acb78a1f1aba4:"配置同步字段","07bf6c08bb5f0bdb32dbfecc7d3fe290":"如果 Combo 层级比较深，底层的获取外层的数据可能不同步。但是给 combo 配置这个属性就能同步下来。","3f2176cdae8a4ed6a4c4eaff002a3b24":"允许为空",ead7156521ca11acb7ca7bdf4c9c87f6:"如果子表单项里面配置验证器，且又是单条模式。可以允许用户选择清空（不填）。","7ab968b8219f6c348478da255ebcbcb9":"各列 CSS 配置","6e87bfe16db746db13966f0d7552b052":"条件组件",ab7f2096d3ea8aa85f453b204bfbc493:"用于设置复杂组合条件，支持添加条件，添加分组，设置组合方式，拖拽排序等功能。",ae5e21c7b57aaaff2071b757f35dbb3e:"适合让用户自己拼查询条件，然后后端根据数据生成 query where","55d4790c5d819cd0462cbe89561b0dd4":"数字","97b0b6499334ed889b372513290a2a52":"布尔","0c3bf4fce50589b1073baf15f8a00d36":"日期时间","6d6b4f2bbd2fd0b5faee33673d7f06ae":"快速开始-条件组合","22ed9ec0e00b5deab2c335ad1fd2e343":"条件类型",e996419dedc2f1ffd96e7a0e808127d0:"字段名称",c322edb884724d04842fc35f4d29a24e:"最小值","5da893141114a59da868052b3a17a79a":"最大值",d26404c10871481ab6bbb4837a34ae95:"步长",dbd5b99c34260412f10835d82b59919c:"日期显示格式","94575fbef23460cb02524d20d152d728":"时间显示格式",f20a86701d87369e5166c28a71b8b8cd:"字段选项远程拉取，支持接口或数据映射",ed4ad0f9e6374d6915ce3d2c0dec7c2c:"操作符","61260d9386fd95a268dfc93d977c2706":"表单项容器",c5739a29e7c403fc212608cefe70cf29:"元素集合",a00f44e570f896de5490cba9d2462951:"插入一个新的元素",a9a8efb2541ee6f89ea7b83e610ebf7f:"新增元素",bac53d3c739f7fb3327704efd5b40eee:"Diff编辑器","7b4fe9415d80d3694d2f630411ac7e9c":"左右两边的代码做对比，支持的语言包括：{{@1}}等等","0517b74cbe247a903faf40991a5a335f":"diff编辑器","42f04184315801c372989820106cc4ee":"右侧输入框获取焦点时触发","58ec44a580ba7cdcdf65985f5c44940c":"右侧输入框失去焦点时触发",b42cb49fc7c4ec140697e6d78c39e585:"获取焦点，焦点落在右侧编辑面板","2a69150aa382f6a309c03a96145d4266":"左侧默认值","04b8c503707c34f9c275d349275787f2":"支持使用 ${xxx} 来获取变量",a71e655ab56c9962742f72623f67ca76:"右侧默认值","460bc46ffeb31b737669e2312c5bae72":"字段集",a89cd8150a1dbc60ac7063580e0852e2:"多个表单项的组合，可配置是否折叠",a13a2fa224ca5b6f44d5aee33ec29d58:"文本1","37dd6f28ffb87d8907a286e0ef4dc7fe":"文本2",d6c40a2ee219c010edbcdaa2eeb94ddd:"子表单项",ec2a8ec81d1d2588db8c7827ba99e7d3:"是否可折叠",f315bd4984fd09c30581674d28287f12:"默认是否折叠",ab2d2b13794ae1e2d7bf3bcd5af55dce:"控件样式","23ecf42cada8bf2715792d718544d107":"极小",e5a226534fb99ab260865b936d3c85ba:"内容区域 CSS 类名","12b54e3fdccdbb5588785fce5534edbd":"请从左侧组件面板中点击添加子表单项","1297c46c0ea697a0041c3899b15d69c6":"添加子表单项",cd948961f71f87ecc72b251147d96144:"控件类型","0766a6467bed7f2840871a5f0638669d":"单行文本框","15d169d28cd48c97fe751e4cc92ca926":"多行文本","829abe5a8dcd0579a340d20636b59276":"分组","9597dcaf432ceba92a160d61cb1ef65f":"数字输入","9913107b19cb6012250134ff91377430":"单选框","006ded9fa277cf030592021f595a07d5":"下拉框",a6beb974cc0b50eebd18120b8110a88b:"开关","481e034e6026969aae4ce7ce7c8a7b6f":"文件上传","6bfb9bb2218ff32b6139e98bc93707c0":"图片上传","24b6d4c0892a8f3ee2a982e3ab0afe38":"富文本编辑器",fdf6f7f6497556de440fe434b721ee99:"显示名称","712538d3e674792ec94feb9a5eb2cc0a":"提交字段名",eee1e2258d7ea163fec625ee44be9637:"表单","10b3d542748da2043f79395bfa2ab35f":"可用于新建、编辑或者展示数据，配置初始化接口可从远端加载数据，配置提交接口可将数据发送远端。另外也可以将数据提交给其他组件，与其他组件通信。","5ac57ce6df8c2a19668b7429aebd9f33":"文本框","1b6f9adf1e6a41a18b9a76407d945618":"快速创建表单","380c80efc8d38510d31f50578690b781":"提交地址",ffc2c1671eb7e3f6751006cd7a9961f4:"文字与输入框展示模式","81f8a50d084992815ab844109b3ea27f":"上下","3720b9ef8053b7b8a54c7d8ace051912":"左右摆放","9d68944682609cb230534195ca7c62ae":"表单控件",cf993a1d9c0352215055d180aca60b97:"分组内的控件","3673ed1983c1be059126e3715fc34922":"表单集合","741e41f5247b1541bde22c00e65f4401":"初始化完成",f75e31cd2e3bfb79be420b0e61a533cc:"远程初始化接口请求成功时触发","211f02318e3cceff5ee50d4949a5c8ed":"initApi 远程请求返回的初始化数据",b2a5322c8dbc0d8343315cafbd39b7ce:"数值变化",d6fc04abf4889a864bea240d6b67963a:"表单值变化时触发","66f1115691b0a3e434dd3e8a6e733730":"当前表单数据","7233c9cadee5096097673c9590eae9b8":"表单项校验成功","6611594c527756e23d4044f908fedfa9":"表单项校验成功后触发",e00a32d415785d5a5d43a593d26cbaa0:"表单项校验失败",d4c12cea41e1595329358edb365c5f5b:"表单项校验失败后触发","368f9bab722b255f1fdb669a89f0c594":"表单校验成功","35e69ab84129d721229bc5b48afdedd2":"表单校验成功后触发","641fc404690a43cb13e4666ce272974f":"表单校验失败","5d7dfa5bf9bcd278f06fa37e482a2c35":"表单校验失败后触发","23b62e9cbc868e024b80d2e3fad80ac7":"提交成功","8c9d9d2594b9cc39294c6939bd08a5d5":"表单提交请求成功后触发","18344d8a27aa678e401d5e575d4efe99":"提交成功后返回的数据",f5d008dea7d2e953195a5588dea3c8e4:"提交失败","86555672b37841b639311e7d49f0f593":"表单提交请求失败后触发","17aa713bc661f98e585ec3725d6d4f0d":"提交失败后返回的错误信息","4e34003861eee3de1e0c9c1222249bbb":"提交表单",a360c5d4e723ad78a5e52eb1f5f3f2a2:"触发表单提交","1b6f5cc49e71c90a5b85a796285e3135":"重置表单","35de8c264c2a87836ccbf302b4ee673f":"触发表单重置","4a3deab45c0a7218b8ae58a33fd24c28":"清空表单",c18255cd6a048da86045c59a65fdc92d:"触发表单清空","17f2bf425eeb7d20d79c595344e9dc94":"校验表单","27f35bc7086bf54e27e254f5d77c3168":"触发表单校验","60ad7d0d170b973ab9cdb0b23e636704":"提交按钮名称",a834505b13627a2e9eb4e0a0c2746e5c:"当没有自定义按钮时有效。",cbef9ad64297efd7657d5b67b2112751:"自动聚焦",ded8caee55c05aa0f1a4e6a197c480bd:"设置后将让表单的第一个可输入的表单项获得焦点",c8801f299681b3080968effcb13a57fe:"禁用回车提交表单","4fe8162504ae5fb955c30863d88834fa":"设置后无法通过键盘 “回车” 按键进行表单提交","6232c762a93aeb3c89cc759c06802610":"提交完后重置表单","7d61784cd115d333f01a3c0c46408a1c":"即表单提交完后，让所有表单项的值还原成初始值","49086a13c74f262de398e60f448ab056":"初始化后提交一次","1babd035cabfeb997ac3eee3f938d794":"开启后，表单初始完成便会触发一次提交。","0d1fb15904862f5fd2d81d2fc8f371d6":"提交后是否关闭对话框",e91209a4a78c0b34c26b681b49e0681a:"提交给其他组件","4133d2c3613ece9792c90d185ec32306":"可以通过设置此属性，把当前表单的值提交给目标组件，而不是自己来通过接口保存，请填写目标组件的 <code>name</code> 属性，多个组件请用逗号隔开。当 <code>target</code> 为 <code>window</code> 时，则把表单数据附属到地址栏。","7653297de32f34fdec0dd0653aebf358":"跳转","6d00e21637c382cbd4d949b7735a2e41":"当设置此值后，表单提交完后跳转到目标地址。","672b63d7523095b949f5fad233fa0cde":"是否开启本地缓存","8a0544ca2f7ddaf8768ab599858315a6":"开启后，表单的数据会缓存在浏览器中，切换页面或关闭弹框不会清空当前表单内的数据",ce2457fe99197e0fe81b6fb08e3eaf0e:"提交成功后清空本地缓存",bc01ee1a28f980c298679610fe4d2d66:"开启本地缓存并开启本配置项后，表单提交成功后，会自动清除浏览器中当前表单的缓存数据",f5e55fb88f5adc71beb0b1fff60face6:"表单组合校验","8101a0aec7eba32e633e3cc29f4b7ede":"校验规则","80ce5ea9ac2c3001e6e8ea3175ecc12d":"报错提示",ff7cc75cc43c25c823d05d87cb8190b0:"保存接口",d325cfafec323a62463af3d3da9b6ede:"用来保存表单数据","057a9c2b2027a6b443741d8a0c04e4be":`{
    "status": 0,
    "msg": "",

    // 可以不返回，如果返回了数据将被 merge 进来。
    data: {}
  }`,dd1b9892e274b16540aeda961437870d:"采用异步方式?",e638bd32b4342dfc7a15990a79f588ae:"什么是异步方式？","6df230c8f18709575777172f0a9a588c":"异步方式主要用来解决请求超时问题，启用异步方式后，程序会在请求完后，定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回，而不需要等待流程真正完成。",daf3aec137ac74941adb1b1d3e3dd1d3:"异步检测接口","0705e4aba9f22ae70d906e2201a4a68d":"设置此属性后，表单提交发送保存接口后，还会继续轮训请求该接口，直到返回 finished 属性为 true 才 结束",b4bc91701b86fe8543d649e97daea602:"初始化接口","258c437ef67e5ef12f3a766ff1802f85":"用来初始化表单数据",e8c46074d8432532cac25eba56bca354:"采用异步方式？",d2af24c0f76cf325f1c8fa939576c379:"设置此属性后，表单请求 initApi 后，还会继续轮训请求该接口，直到返回 finished 属性为 true 才 结束",ab94e2c30b3cf0fd11eea477f70dcbaf:"初始化失败",b64292a1903bd969d0e3a558c334f5bf:"默认消息信息","8a5e590f69e1ae52d86396410ceeee5a":"可以不设置，接口返回的 msg 字段，优先级更高","3b108349b93f7c8c4e2346f8d48c092a":"保存成功","6de920b4e4e08b261cda928d9beefab4":"保存失败",b66ef8966dad62d377bc5310d8b88e7f:"保存成功提示",cf538bbe1fb431f9e2668da4d84cfadf:"保存失败提示","6509e435d66db2a105b2444b1d3d0db1":"验证失败提示","02e977ba56a7ccc59c277d2d5be43ba0":"用 Panel 包裹","1cb01363e2463443bc8105f544ce2736":"关闭后，表单只会展示表单项，标题和操作栏将不会显示。","1fdadb49bcabfdc36a4a9e020f597f4d":"展示模式","57d348e83d929dd4cb3bab04debc93a5":"Panel 的 CSS 类名","9b26fa2b5943c827eea294e79b1427fa":"可以设置 Panel--info 之类的","85ca671c1bb6de5a15456a9692d2edf4":"开启调试",f24b7483069b44490a6379be5b90f4e3:"显示当前表单的数据在表单顶部",eb332076d766c2e817285f0a6d4860b9:"公式","000cf7353ce03857c671e89c91b35464":"通过公式计算指定的变量值，并将其结果作用到指定的变量中","9da7578f9329ccaee1bbdf6a766744fd":"计算公式","77562ec3db28683ec71612a11e6b39ef":"公式计算结果会作用到此字段名对应的变量中。",c80c42a0be1b39ed899b1f5560875cf8:"支持 JS 表达式，如： <code>data.var_a + 2</code>，即当表单项 <code>var_a</code> 变化的时候，会自动给当前表单项设置为 <code>var_a + 2</code> 的值。若设置为字符串，则需要加引号","89a8549c2ed7fc23a683599731d92b22":"作用条件","3df193f5d4f652a4bac331a69761041b":"是否初始应用","86cebf86c66c6a4e6731b840c3967ab0":"是否初始化的时候运行公式结果，并设置到目标变量上。",aaff9b44fa3c84058d6bec9888b7b39f:"是否自动应用","677568b4f6505bdd63387137bfcbf35a":"是否自动计算公式结果，有变化时自动设置到目标变量上。<br />关闭后，通过按钮也能触发运算。","222c7bc60f06552b019d71bce57013ed":"功能组件（公式）",bb09a378529edac439abc2edf05c10d7:"表单组","39d36f049a794eb8df305b5ca7710c36":"水平展示多个表单项","32f6f7f8164c7f78e4b46eb50c158ab9":"子表单","400fbff5e744d3b7317dd130eaad723e":"请从左侧组件面板中点击添加表单项",bd1aded1c983ab7fcf3990f0dc31047c:"列宽度配置",a170a375b264f7fe0c02a7ca8c268784:"宽度设置",daa0f354e189c0da577ea25be13f874d:"适配宽度","4db804afe5c99f7ca4fe988ada35c77f":"适配内容",f1d4ff50f3828f9b73412e7d94e6dd6e:"自定义",d5d885add2551454955bd70411769c88:"宽度占比",ff7e66f1feaaed3260b6e8ef432efc79:"间隔大小","1b3408880b73544a3fad501dafbb71e6":"列 CSS 类名配置","551481accddd97e18d7152f511fb8987":"变成多行",d27d7b1542d91641d1d232c9f58b96d1:"隐藏域",d50b9a7291d45d1da8633439427afaef:"隐藏表单项","4f6595b5030e171fcead42d321ba767f":"功能组件（隐藏字段）",b6946d13d670fc49b721b626bca426b7:"数组输入框","6e43f86d0b2973c34078bc7c7bc02eb0":"Array 数组输入框，可自定义成员输入形式。其实是 Combo 的 flat 值打平的一种用法，可直接用 combo 代替。","02cc4f8f5a9aefbc03c778f7a5c989c7":"请输入",a4b72cd5d7c953c57b00e3597b9ef666:"数组框","89e34c77922f9362fc8f4033e7f6bdf4":"启用拖拽排序","1362211a6bfc8cc4130d54643e8e9732":"可拖拽排序提示文字",ba6a6f2cdb46e8f80fbfd4fed20eafac:"城市选择","20700607ccdb7b6c83f3b5bc525e6975":"可配置是否选择区域或者城市",ee167d4c74e600248aefe9d0ba474705:"选中值变化","770fe9e7899cd310b035ef50a39ab2ae":"重置为默认值","9633e6be5ecb44fbd69b3e8328cc8430":"允许选择区域",eec86dd33ae6186937da563fcde3555e:"允许选择城市","95892a76bc26c2db31087c9914e442b4":"是否出搜索框",d1b5ad85ada6350ea1a1432b813700be:"颜色框","5a9e72d006165ae3dacdbd96f931f70e":"支持<code>hex、hls、rgb、rgba</code>格式，默认为<code>hex</code>格式","6b36c6f7ec834692ec6c8e3816349fdd":"颜色","277daf93adca7889605057f566b584bf":"输入框内容变化","40fa260f07ed5a14f9516c0c37fbfd4e":"输入框失去焦点","3086da6514671fb8950171bf3af4ab2d":"清空输入框内容",a47b08f4c83158a058c06e176cff501a:"拾色器","1b25b3b1b5076f0c2e6bd12d73c56f79":"隐藏调色盘","9b161db0e2e749c1106c702c8097d380":"开启时，禁止手动输入颜色，只能从备选颜色中选择","05a64e0df1490a5db391e7a43eced6e0":"备选色","6cbabc9a4cc07c1e26bb131c02833f8d":"拾色器底部的备选颜色","79d7c8cd739a1f94c7bb30c74323eaa7":"X(时间戳)","84c7af622906c4e9d62bbf905d6ee517":"x(毫秒时间戳)",aa2fb1b6cffd7c9783c11047adcdbae4:"请选择日期","8935dbb864f032bacc618b0938887ad7":"YYYY年MM月DD日",ff91b28a49de6fd998dea31598198a73:"请选择日期以及时间","3e253325914594e1dc483c0b64ea7643":"YYYY年MM月DD日 HH时mm分ss秒",fbd05a89ca037ca9e5a6af4c2206d488:"请选择时间","90696835bfa70d38b02ef5533d33c88d":"HH时mm分","6154f88c0ac259ace41b0a5be45d753c":"HH时mm分ss秒","904393383755b88e61f5c242eafabdda":"请选择月份","55546b74d8819d49cccda6277f3a3282":"请选择季度","13ef7828361c8aebbf6ebe09370f5e41":"请选择年","4be42a8a2cbb9088b4d051cfd824d68c":"支持 <code>now、+1day、-2weeks、+1hours、+2years</code>这种相对值用法，同时支持变量如<code>\\${start_date}</code>",be28cd64f978dd70c1cd345ebe751bca:"日期框、input-datetime、日期时间框、input-time、时间框、input-month、月份框、input-quarter、季度框、input-year、年框","52ea2070560eb55083b64f5ba748697d":"年月日选择，支持相对值设定，如<code>+2days</code>两天后",e54ca3223a36c6489de0fb8a39d4049f:"日期配置","96f9d9fc9cef8b18e3cd1cf9077147d1":"时间值变化时触发","0a72b3858efffaa1bab685fa840b701b":"时间值",f6db3514c72bdc34922f137a8a92b997:"输入框获取焦点(非内嵌模式)时触发","0f5fc3b84cf9c24ff3acae45ae22fb57":"输入框失去焦点(非内嵌模式)时触发",ecd1a3cadcf1d55250afafbbde767250:"显示格式","182503224cfaf1f63c566f13da56a2a4":"请参考 <a href=https://momentjs.com/ target=_blank>moment</a> 中的格式用法。",bf8f46b5c3b309f666965a74d57ac093:"支持 <code>now、+1day、-2weeks、+1hours、+2years</code>等这种相对值用法",f0789e79d48f135e5d870753f7a85d05:"模式",a553741d5ebb9c80d7d2a63b202cf4b8:"浮层",c6e1b91d329a61b691d0d5d2eb343ddd:"内嵌",a2847d82fc998cbe25447b14d113234b:"请选择日期范围","3f9c3a9eb55b7116bcaa6b614ecb38be":"请选择日期时间范围",ddc4a982defd88cd164c61da914819e1:"请选择时间范围",c899221db27c8b3606ce7c807f0765f2:"请选择月份范围",c09ddfc72d3c34ae6aa76d5a457cb403:"请选择季度范围",cb6deedf9cd4a0b65abd70798cfed85e:"请选择年范围","7866226eb814f681dcc4037e7489aab8":"日期范围","28de3d73d839b616bd617b3636669780":"日期范围框、input-datetime-range、日期时间范围、input-time-range、时间范围、input-month-range、月份范围、input-quarter-range、季度范围、input-year-range、年范围","9024ff398faf8340b92bf0208431973b":"日期范围选择，可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",e7271563debf3c7bcb85e23816c35acb:"最小跨度","6f44927b5ffddc499e4dc26889169143":"例如 2days","6da95498bea887b2ea7c6c2bb4b2fdc3":"最大跨度","61fd7e3e86b168be41ac2e37237e1788":"例如 1year","2f8d6f1584b73bfc6dada44526abb502":"昨天","0dc86a275145ad5a7774e594f0d94a06":"这个周","79abd4ee3661ff70c7d79716c8aaed83":"上周","73bef6f0c997ffe317c868c4716baab0":"最近7天","8f2a5a5f6e3777c7a0e1ce9484a2f7d7":"这个月",d5578d93388a5b2552316418cd1124da:"上个月",ffb2b7fbf227d9d21e03d0f160fb2a34:"这个季度",dd657784cc0d5511d2f25459e49ead1a:"上个季度",d3dbc7a7fd9fc5ccd168084c8579c1ec:"今年","2f92fc7bf6ef3dd57c514d0797fe2f1e":"前占位提示","592c59589144ddc68d05d528da17dcdc":"开始时间",a04c4894d83323d187f65cc357fa646e:"后占位提示",f782779e8b5d709462c8e71e0d9019f2:"结束时间","59a81f21a829e24e9a765c4d6e509e68":"年月日时分选择","5eb8cb70e4dc97622c967d7c7efd6566":"日期时间范围","7f4466c0a16a1808b5ee398ce55997ab":"日期时间范围选择，可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期",ab37cc3baa3ec204bd7ebfa450568c40:"邮箱框",e3c0d799e8880a36edb07e34fd1bed67:"验证输入是否符合邮箱的格式","3bc5e602b2d4c7fffe79258e2ac6952e":"邮箱","899339c1133a6100a1b223680d26692c":"上传 Excel",b0e4a21f29af38986eebbbf867eee31b:"自动解析 Excel","7caadb59b5892d107a909816b6571c66":"excel 上传解析完成后触发",eb3daf37c93971703187ecbacb00c74e:"excel 解析后的数据",d9435aa8028acfc660276c4e0af5536a:"解析模式",b14494137c805dc66bdc9ed88d7fd2de:"对象","0e67d4b0e351b00f4bea9840aa6b99d7":"数组",fe5c59cbac3d45314ec6397d9f75789a:"是否解析所有 Sheet","50b10b178196378f4359ce11bbc31372":"是否解析为纯文本","1647e4bfb548f2e8468d10b4b3bfbe21":"是否包含空内容",ec1f230a0181d79b37967a455b1f3515:"可上传多个文件，可配置是否自动上传以及大文件分片上传","8dccb3d6633a85edb21fa52599211654":"上传文件值变化时触发（上传失败同样会触发）","5560230c43dd8d8c2b4a62d829f152b3":"上传的文件","7dcb3fb3ccc93369798d4b6950e96058":"移除文件","03d585240162dad662a0a6b5d90a4692":"移除文件时触发","6775136a73e41c1b2cb4ab025773e326":"被移除的文件",a7699ba73144aad544eb9ac49f82749d:"上传成功",e309c24c2b07e5970208a82388f1d88e:"上传文件成功时触发",a27518f50ea00aaacb2c4e52f113eeb1:"远程上传请求成功后返回的结果数据","54e5de428ca9d59119d4624706215a4d":"上传失败","4855bc3f3d06b9cf58d14b61839c5a51":"上传文件失败时触发","236dc056d6800bf423df47520637c52d":"远程上传请求失败后返回的错误信息","36d40a48f3da92af9fe55ee77cfae46f":"清空数据","18843505278637e44a29e7e1f39e0b06":"清除选择的文件",cf6e87cb9edfa398ccfc3db377e34ca4:"按钮名称","0ec0e6e04b9e918939ac8e0daf407b75":"最大数量","0a9dced8856958fbd05508d1218f8090":"最大体积","3e999689c93e7cd95ce6acdded1835fb":"提交方式",d28879b6a8a4ddb62bf6f2ab59303df7:"随表单提交","3a76423b7ae40b0fa8b0bedb470cce7e":"独立上传","7c6722203327e8173be987f36fadf610":"数据格式","6168fb08fe64663a502a132c5589b73d":"二进制","7245fe895fa1cfc42b5217a3de314565":"自动上传",cf9e4c80962e712eaa55551cccff317e:"开启分块","454dbf9b835af8627d4dfff2903298b7":"分块大小","2af0c8b5999a1d243ec5fe503da20026":"分块准备接口","5548252bd28fc1d217d13a9e5771ecb0":"用来做分块前的准备工作，一个文件只会调用一次。如果出错了，后续的分块上传就会中断。",d7832abe5b9ce8e41537b4964fd7cf70:"分块上传接口","14008d63c109cc0d0c4ba305671800d2":"用来接收每个分块上传，大文件会根据 chunkSize 分割成多块，然后每块上传都会调用这个接口。","70c935fa7ae03aeb1ff87b878e16841f":"上传完成接口",c88aaeddb5aa95c7627d84df33929e3f:"等所有分块上传完后，将上传文件收集到的 `eTag` 信息合并一起，再次请求后端完成文件上传。","1e4dc4d5f4a3a95ddc349147d4d8cd39":"文件接收器","258d9e27231b06769dd584a3365545ba":"默认不填写将上传到 bos，可以在系统配置中设置为自己的 bos 地址。","28b988ce6ae6dd62d24bcb8a52119179":"文件类型",f0a37d6f810c73a2f936f33035d99056:"请填入文件的后缀，多个类型用<code>,</code>隔开","58892b7a6a785706712761d5aebb4639":"模板链接",af4b910df15b00ba7fb5163558389cfe:"适用于excel上传等有上传格式要求的场景，为用户提供一个模板下载入口","26d384ebe61b6ffe0e64310331f9e998":"拖拽上传","644d03767c8148de6651cc6b00b0173f":"选择按钮",d1b06a828d05b0ff72328d50b16a8443:"上传按钮","0d4ebf2f4a10336011cfe0466b29ba5c":"输入组合","5b7363cba6bad37b6614809e9bd90746":"输入组合，支持多种类型的控件组合","13370c4a5c95eff126068be5cfd2a9df":"input 组合",ff10d1d90be63fbcdc7377435bf18f96:"Input 组合","0a7f8e17f8487c3715a154bea698778e":"可以对图片实现裁剪，限制图片的宽高以及大小，支持自动上传及上传多张图片","7c5e7ad8954effd97cb78dcb0e8f99d9":"图片类型",f816b3decb401dcd0c22db7f104beccc:"请填入图片的后缀或 <code>MimeType</code>，多个类型用<code>,</code>隔开","99e6b6011bacaabc18aeac70390252a3":"占位图片地址",d24bada35447c81d7d7ddec13c44b576:"文件接收接口，默认不填则上传到 hiphoto",e3be7b8a459a08fec8f378a0660b642b:"可多选",d4633ba7a30303a59891d051a7715cc9:"开启后，不能同时开启裁剪功能",e23c9e6279487960ebf85b9985dcba07:"固定尺寸","037805d2f16cfe69e3145c9f436c06ef":"隐藏上传按钮","80f7e6960804df47856301e7ad8bef6d":"开启压缩","2c4a34adf66f12d0a08716383304a66e":"由 hiphoto 实现，自定义接口将无效",d4efa8f599c1effe67bf6a7f38a9c40d:"是否显示压缩选项","4838f2f4ecafd0a3a4fcfe82521acdd9":"开启裁剪","3d948d24bc4c29689c5a1d4bcb9f2b98":"开启后，不能同时开启多选模式",e09f3466f78e62c1494fb36816950501:"裁剪比率",c7fa7f54ece94ae684aee1ee2088a5ae:"裁剪时可旋转",bd698e3f47ede4e59aafb28a291b77e7:"裁剪时可缩放",f785a357a820555445acd6f7051b1048:"裁剪区域",bc436447f54b10a9ac3f0ee3e1b863dc:"无限制","7ccc0313ac4c40b364f482341ecc3bb8":"绘图区域","4db4c540f05524c38e9431173736517b":"图片限制","13446481eaf0a047d8fddf159d981a7c":"超出大小不允许上传，单位字节",b7623c7e17098d5950694437aa7584ad:"宽高比率","2e81b2a5e6d523a70db93481f01af875":"limit.限制最小高度","1765a2daba3ba8c5af95e66fa83545d4":"宽高比描述",a7b7da38fcb8e246e910e178c5fe4ebc:"当宽高比没有满足条件时，此描述将作为提示信息显示",ed55564c631322fa3042c77286d6562c:"KV 键值对","746dd83e6891ccc9a19804c23c2c4443":"用于编辑键值对类型的数据",b3747d09769d3a2ea8aa664edc901212:"删除组合项时触发","654ad5670efdd25f1417958a7026a355":"值类型","9648d874d516a87965066342394e86e6":"key 的提示信息","4dae7425b21494a318cd4a69ce24608f":"value 的提示信息","233662283039ded8c29f070d1a807029":"是否可排序","4f9c849b6b7f048cfd242cef3e707a58":"月份选择","7c3885e3c3eca4d95521b3e220586628":"月份范围","5b4ad7ffa6eee985e72e002bf18ac09a":"月份范围选择，可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期","1e65b8181e9a40e76b86e2c261cafbe0":"数字框",c45782c425bfc31824af8129bd6e0282:"支持设定最大值和最小值，以及步长与精度",acc945d0c8449dce7dc1441f466ec413:"输入值","5f914e36c49db618d06981df7b3c4d81":"数字框获取焦点",e52c2701b682679d6c670a8578cfa382:"当前值",efdd0d8923130f281b54506eef2121cf:"数字框失去焦点","0849471829a565a8af6b70a46346e574":"清空数字框内容","33bf23fcb86101a9994b7e4bfdc2b062":"请输入数字或使用 <code>\\${xxx}</code> 来获取变量，否则该配置不生效",e284e64008fd8b066da04bca335d032a:"小数位数",b317cbf67c94f986fc44cf4cbc2280c6:"根据四舍五入精确保留设置的小数位数","4c9bb42608b11278a5d9a2471b74eb40":"前缀","0c8fe8b3675b0c7f5a896a153461ea46":"仅在输入内容前展示，不包含在数据值中","242d641eab57223af01fb29940a096ed":"后缀","7915dcc78c28ed3cda8fc949a86e4806":"单位选项","8c80ed1f85135cc9153d0b7406ac5b38":"快捷编辑","0a8c852e27763a18ce5b72a87ba8b5ba":"单侧按钮",de93563a076f72b3e919870c9dad9935:"两侧按钮","5dd92ede50cc183f0f067dd29be5c325":"密码框",a8105204604a0b11e916f3879aae3b0b:"密码",a483bccf85587055ab31314ad1d2f82a:"季度","549a2a421951fc8c304c6223f346e024":"季度选择","39891e1760c79287985adece9a107fd6":"季度范围","6036c91d6b0b6d1a2468684e597d9f70":"滑块","4c65f10eacbfaf580236b5cbe2de68de":"选择某个值或者某个范围","0a6a4aee139530801791c556e7177a7f":"滑块值变化时触发",f34b1a3e26aadb6f60c546dbe9c62232:"当设置 showInput 为 true 时，输入框获取焦点时触发","404625f170839b2a24d7ab65304c2fe7":"滑块当前值","7c9ec5db3bf23f367c1a905d356aab5c":"当设置 showInput 为 true 时，输入框失去焦点时触发","1659f1112dd649ec55390fe7c8e3b1d0":"清除输入框","7220e4d5f9f65e4fadee5183f2e0c54d":"方式","9ec172e2cdff6146d623087d567c8574":"单滑块","753a8c54d3944e252be1af928b8e7afd":"双滑块",f2996845b6bf0a07fe26f74f35e42ebe:"单位",e48d95a94e49b81b12a0113a5c253d8f:"值标签",a465db53b8c98f42caa15ca5662f9c90:"方向","3aed2c11e95a9c0ea1d853d4aee72e8c":"自动","1d1a0bd85740653320d80f0d6e0918e7":"可输入",d22aa5f57ff8679ee7b7d473ef31417d:"可重置","15628d1d85aee23c229c528a70419414":"轨道","108db12ed4454cf1ab4242ca98442b7a":"评分",f11a0f49123c2099ca6c6162ca37f0ec:"支持只读、半星选择",ce9201dd7d5816945fbedae79927518f:"评分值变化时触发",cef3580fce1b3156908cc852dadef892:"评分值",e2c6470c3f2e76cb98ba951a64e41c3d:"清空评分值","09bbfb387dce6201df1ccef2aab161a6":"可清除","5ea244a79d480632f635a254c95c38df":"是否允许再次点击后清除",fa6f66437097fe23c948f4f9b78ecec0:"允许半星","1a10cd6599219eafb615b34234cfc0b5":"描述内容","9c07532d0c9acfecfc4ec2eb265c3e03":"字符","2a3d1f6d5b0afdbf04033e2f2c1fa11e":"未选中色值","497562b3159756834c7adfe9525bd7b5":"默认未选中色值为 #e7e7e8","4dd547945b10f672a7e48d7ffc42496e":"选中色值",f186d55a48868a88b026d48efc1cf36f:"评分描述",d38056d1c6aa9456f4b6b2c20aab06a2:"重复周期选择",b3389af540d99fe9e51fb2995dbd6dff:"选择重复的频率，如每时、每天、每周等","2d842318fbd931286be387aaf5b2a7c3":"周期",a2d92b5adb07a4bf8a45e55643bc39f8:"启用单位","42c036311993897680ef37f11e4e20a8":"可自定义富文本的配置栏",e2591e971f4c28db7c80a5f546084a1d:"富文本",b582587147013afc52c58de5fe34d7d7:"文件接收接口","70209fc05c1a5b21f05b186a0f7ba2ee":"编辑器类型",eca97e97331bd76aab9f6160991e02bb:"froala 设置项","39624e820b79bbd62561357f6179c8d7":"鼠标覆盖配置栏中配置时显示的提示语言",a7bac2239fcdcb3a067903d8077c4a07:"中文",f9fb6a063d1856da86a06def2dc6b921:"英文","81fafee54baebeb9591b5e7840d7e650":"大屏时展示的配置项","0b6eee152cb2553ed4298ca2fe82d3f8":"屏幕宽度 ≥ 1200px",f126c4368fbf51cfd470684e7c3d31c9:"中屏时展示的配置项","3b8c320d14dba586c581ceb951917397":"屏幕宽度 ≥ 992px","89bc688b5b497e515ce3c026a1d92669":"小屏时展示的配置项",a849d8a0f59f3ae146b149b7b4fc7480:"屏幕宽度 ≥ 768px",b8c8f1c6a56e902bd837420da0f554b3:"tinymce 设置项",e4d0e65de0018b63698ff22d683d6dd5:"是否显示菜单栏","63068211669d69b4028eebe0052425e7":"启用的插件","1a920d9999206a9fa5f588c7405fe081":"SubForm, 配置一个子<code>form</code>作为当前的表单项","18c113b99afa964ee988f30e81baf12b":"名称字段名","4d930a9c13fca9d74e1a77496abfaa58":"当值中存在这个字段，则按钮名称将使用此字段的值来展示。","307ae20f587910da3e9bb4e885334b6a":"按钮标签名",e366ccf1556c0672dcecba135ed5472e:"设置","70c04a0f4522e39fde5f18ebc85b6232":"允许最少个数",f58ea00f6a84bcb1cac174d1f68c88bd:"允许最多个数",e41fd1934b82f93f5737827be7323119:"表格编辑框","0fbb26a646da61d2123319b4d0144ba4":"可以用来展现数据的,可以用来展示数组类型的数据，比如 <code>multiple</code> 的子 <code>form</code>","4ba0387a2daf11ad9c67a75b52819eb3":"表格表单",a80f36ea893b8135df8d9266bf13afac:"说明文字","1f9794dd5634220ed0a498c666cf46fe":"列集合",b2c712c788d3a143206eee22fe24d9f1:"绿色","6b93fcfc1a5795189c6072fa6e86d4f6":"快速构建表格","0c14e431f1b5ecd163f8fa010a0654c7":"新增一列","13c250c68608118463871ce7cd8b292c":"表格编辑","6a2f67fe2d8bb1d389eb934dd8a72b1f":"增加按钮名称","44177f78c596be113d4fe7c6bd7bb46a":"增加按钮图标","1d34fdbdcac357588c255c1ed2336a3f":"新增时提交的 API","96848841ea9b2a7d692aa6de57aa5e3e":"删除按钮名称","34f020715121478c6a8e4654954c84fd":"删除按钮图标",a497289d862c6aeff8e61b6479b1081a:"删除时提交的 API","748f181258041bac1fe7346e970dfebc":"是否可编辑","412e319fdd893e6f3b26a1975d21b0e0":"编辑按钮名称","396ffcbab4e21acb77f6987f18ec94a3":"编辑按钮图标",c128de224b606b094bd8139890fbe215:"是否可复制",d59abc7020b4a6d943a0031da4518422:"复制按钮名称","5d04af0e9d59ab3f1265cd8345c2517c":"复制按钮图标","681bdd6184b526ade9665e6d74976863":"修改时提交的 API",c29e632a658ecb98edb874833b070e98:"确认编辑按钮名称","24c39bb36955b3113baefcfc20c5f60b":"确认编辑按钮图标","9c68c27e8939af40897d1b0bca0360a5":"取消编辑按钮名称",e54289c1f0e9311185adee89af24e618:"取消编辑按钮图标","1205e138ba64dddf61c1f8e6eb3a1aa7":"确认模式","1c1618f67cfea6fefb5f287932be2c27":"获取父级数据","677fb705e57897710d28867b7628307e":"Input CSS 类名","14d342362f66aa86e2aa1c1e11aa1204":"标签","1b4996b29c7b4d5fb45ca701e6438d14":"配置<code>options</code>可以实现选择选项","52636511861a0e08cbe6a0eb1c27d816":"红色","9c9aabab3f7627ff4bb224b2738b26ea":"蓝色","9888468550779b1777260b8fafe6abc2":"选项提示",a2cbb42e488dffe644bdb87c26afbc07:"最近您使用的标签","6f6fa31a91b516b28ebee7a86a9b13e2":"设置选项后，输入时会下拉这些选项供用户参考。","379b5486e7860a9f38f37dddabbb094c":"文本框、邮箱框、input-email、URL框、input-url、密码框、input-password",f222f5413d3854897741e0ec4b0d2c7b:"文本输入框，支持普通文本、密码、URL、邮箱等多种内容输入","9306b956ca5950203ee49a2680cac63d":"输入框左侧或右侧的附加挂件",d548d3e938088d5d469a28c20e939750:"自动补全","424cd425082360322678a5c8d6910b80":"根据输入内容，调用接口提供选项。当前输入值可用${term}变量","7e9c83e86beb612377a94e6e8d1fc644":"显示字段","26ff46d82166741297ce666b2792af85":"选项文本对应的数据字段，多字段合并请通过模板配置","6d4ce0631f37676a887c9599691fabec":"选项文本对应的字段","2e01f5f5889e33d003bec7857cd38445":"值字段","959c27193eb0a41d01f4b53dcc4b9245":"值对应的字段","82a61b32c76fba3dc83e2611624e93ec":"时间框",c54993eb4c2a46263cca2e6bdebb051d:"时分秒输入",c166d8f9804ecef74b3b74190599a7b8:"时间范围选择，可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期","479728c411bac59bc44d5ab8dc3cb4f0":"树选择框","15ac5d800c0163b4b806622739478e9b":"树型结构来选择，可通过<code>options</code>来配置选项，也可通过<code>source</code>拉取选项","57a6105deead3fec79028cce7bfa2004":"选项C","9bc04a190ce0a5ba1ed473cb628b5ed4":"选项D",f77f634e6892c6447c5d9df623e42aff:"树选择",b35014ec330e91860bb188200fba12db:"选中节点的值","65d76d0590aa6e05d61fe8db4c6a11ca":"新增选项","0761b99481b1bd10c1d6aad6028a8281":"新增节点提交时触发",de2392357fc78e9e0f0946bcc0af87b6:"新增的节点信息",cf965b232227a0e9d14f4f7e31b01c62:"选项集合",cd994c38456676f5a55c5593b6a652bf:"编辑选项",e385c7c6f726dc2641866d9050777efb:"编辑的节点信息",d015e18748f42f53bb6ab213e9b06187:"删除选项","58cbd355c5bdb80653a8ae3d3b316c37":"删除的节点信息","58995b490ba67e5d29dd87f422b14861":"懒加载完成",ec2fb7a5db150690b14b63f83d9d4b30:"懒加载接口远程请求成功时触发",e6b94af26512b3f7ea8eb1433d4a2aaa:"deferApi 懒加载远程请求成功后返回的数据",e2edde5adbdf33f6dce59a299cbf5fad:"展开","38747bcbc3c47924098076ee87e59933":"展开指定层级",a148ea1749eaf611df5cc95b533751ec:"展开到第","37252d3a5eb0ebab17bfce14968b47c9":"层","01356df4561f9da87d2876ec9c0dacfe":"展开层级",def9e98b60e3bfc493bcd7693e702096:"收起","3ebb9059b6abc8f80a212b5795270ec2":"收起树节点",d81f0b9079d5a38bbedffeacaad8b905:"清除数据",ce5e449208bb568eaf722bab9a20380e:"重置数据","25ae4ca8d4b8a67b273066a97a516327":"选项 Options",fe7509e0ed085b86f07e3e9975cc5b3d:"值","72453d792655604f1fab821146133d7d":"子选项","210da23d108e85b2f0bbfa85846cb792":"新增子选项","204770091fd4b7cd0611ddc65bf21d37":"子节点自动选",be7d848c40dfdd3e20f233c373af00a5:"当选中父节点时级联选择子节点","4c3ed2fc7331db687fc0e8ffb8f672a7":"子节点可反选","0ae8c01434dc2a38a90561fcbf5d79b5":"子节点可反选，值包含父子节点","22c023bf51970a461cc164e711f3d3ff":"值包含父节点","6e19e48a52986659ae5ba1bfe612ba8a":"选中父节点时，值里面将包含父子节点的值，否则只会保留父节点的值",cccb3595f8ff536e27d94ec91a49bfdf:"值只含子节点","49ccf100ac35e1cc3d40b7222cdcd1a7":"ui 行为级联选中子节点，子节点可反选，值只包含子节点的值","4e373f3ff64ad29a01da87317eb92088":"节点最小数","160cb9a7d57c5b5ca65b5cdf79e8fd28":"节点最大数","0d83078816aa273f2941c9b55ec82bf3":"数据","1cd9e1bb335cb0643d9e310dd4edd830":"图标字段",a0e965072593eb1b19b4568fa26d977c:"只可选择叶子节点","8865c6822a31e0da6bc7eece8677d8f0":"可新增",bc560e477282dafc3c37b7a665af4f9c:"顶层可新增","89664aa96ba7eb788ea273c0d36467cc":"顶层文案",b4eab506cf436d3cdd1cd68fc857ec04:"添加一级节点",dfac151de712ab0b3618072c8a7f0a0f:"高级","2b3073b1ba5f9deab7818d8be02de3a1":"高亮节点字符","14dc30e68a3d8d53e8ddd98876c1d480":"选项值包含父节点","68c7da9593da32100cb82ef5106047e1":"开启后对应节点值会包含父节点","9cb417cfac37e6d65dedbc35ee9e916e":"路径分隔符",d6840c02c4d9cd5f4f5fd4d9f3e6b916:"显示顶级节点",e2c310a329c2cf62a0764fc912f2f583:"节点文案",c48d9f48ce8a798772f17d1f47560529:"顶级","8c9a3a8cd5de83121c03c83f909a7534":"显示节点图标",ae7d563d3190ddbafdda8093fc28fc5f:"显示节点勾选框","4444d03faa51f8550a8a4547fb471ab7":"单选情况下，也可显示树节点勾选框",b39c6fb1cdf629d3f3032d6c7d4694a8:"数值是否携带子节点","1fa482fed3042cac9f96c6f43c13f84a":"数值是否只包含子节点",d7eae84550f9b9bc0c78a94e4072ad0d:"自定义展开层级","346f7e0c7ef27b6a83f3c9f8f406d737":"默认展开所有节点层级，开启后可自定义展开层级数",b40163733b8e3a420e38f295bfab369d:"设置层级","55b50a43f58fa746600d6bafdf405336":"顶级文字",feec2a81557811b7fc38b0e6b758c3f7:"是否显示图标","945da00807804cb992a3aeb0ed6ea698":"是否显示单选按钮","13604cddfe74bc9b9078dd61f9fb94ef":"URL输入框",ed2e16700e32afdcdd745aa31454edb9:"验证输入是否为合法的 URL",b233766d3fae72574d3f9ee98c5be120:"年选择","32a750b4fd61f1cfe37cac7147f05b3c":"年份范围选择，可通过<code>minDate</code>、<code>maxDate</code>设定最小、最大日期","973b69af999dbdf4fa124df8c928ca6e":"只读模式","710ad08b11419332713360d2750cd707":"禁用","7abf78a41095c6d21a1cc89b4a876233":"隐藏时删除表单项值",cd8992b644e6c18367861a4d913fd116:"验证","1040279cf7b8dbdb842f597c30095f62":"校验接口","133886b10fd9721e6cf91b76f2df5b6e":"单独校验这个表单项的接口",b95c6e14a4d8f6a6c6d99d583916f327:"合成一行",d22dfe420e4b00e000b93f94db3c856e:"列表选择","5e391af52da238f13c78b471a7cc54f3":"单选或者多选，支持<code>source</code>拉取选项，选项可配置图片，也可以自定义<code>HTML</code>配置",d1f923b8e23b66b3e48953ba1ce17839:"地理位置选择","989ea9acbab9b17d2c15e2946b5365bb":"位置选择",dffd9d86d2003615897b12ce7597d77b:"百度地图的 AK",b472ba224a7d132c487ee6ec4798f835:"坐标格式","36443b53c845b197db8d39eeda433ab9":"百度坐标",f58cb611aec0998a44ef104b5c950b40:"国测局坐标","076a041dcf45a36b29c5cdb8b8eca922":"矩阵开关","183aae5eec1ff547833dc338aaeffc9a":"可配置行单选，列单选，以及全部选项只能单选或者全部选项多选","7583b85ff3579d60a9f9d323c2f6674a":"行标题说明","3fc35bb610852289cf718f07a5b79369":"列1","50987924540e6e35c78246031499e75b":"列2","08a6996be7a86af5692cbca41922a5d1":"行1",ce31d858c63395098c5e4cd892bd473b:"行2",e9b376d39966c8182683019f95ff8cf3:"行级、列级或者单个单元单选","0f244785fd9f555aae9797db4d14fb09":"列级","5a57bd526cc3170b6c86f920fc24cdee":"行级","45dde5879e77d7f7a15d04b8fed26ec8":"单个单元",dc7558211f2990370954c2e7ca498ee9:"列配置",f4c807fd8453f4b3fdaab02fb9c21ba7:"添加一列","39886861ea5d8b526e0ac5ecc78d110c":"列说明","34ad26bd1fb448c7f2384252d856c02b":"行标题文字","48baa62373a2f90d6aa743d7821be956":"行配置","854af3c2cd9c275ac70fc5121ea4fb2e":"行说明",bf306308e467aeb7b00df0e2dd127d06:"添加一行","75bf5fd49520bce97de632700fc8a129":"获取矩阵数据接口","24d9de25721d1fb0ecf89ef81c43d877":"级联选择器","10d1cfb7219a5445ef1e70aa16e4451d":"适用于选项中含有子项，可通过<code>source</code>拉取选项，支持多选","03cd388fe29a4fc116c0021e496a113a":"选项b1",fb00d1c1a65d3739c03a0b2715168327:"选项b2","353ae08afdb3d0a3587e9b27ca239c33":"选项c1",bea7ad76f0f321124ff614a099cb9a85:"选项c2",dbdae74eb12668e2b9568b013bf27d45:"可检索",ae45cdb51c795df3b046f71afe3611bf:"空提示","601bb29fe72e56930dea03ae3e1aa555":"检索无结果时的文本","6a7f7d89c8f1f3e6aab0962ff920b145":"父级作为返回值",c23eb92d1f249452c3ff3ee13738b47a:"开启后选中父级，不会全选子级选项，并且父级作为值返回","8fcbfdc1a9403f6339d81911473806da":"列表选取","819776e8d96b1438eca3594f47bdb1c6":"通过<code>pickerSchema</code>配置可供选取的数据源进行选择需要的数据，支持多选",dc0c50a5c9832b393df34835111c34a3:"开启内嵌模式","1ac065ed64b81380384a0b371d5b404f":"配置选框详情",d64b585847f015eaa1443a3a03562350:"已选定数据的展示样式",c2c23b4fc7f695c58e947ad413f2c5d8:"选框类型","33e6c41fed95c25e3b426d596d504579":"抽出式弹框","5a7af8d3e471d98339c84b07a844547b":"通过<code>options</code>配置选项，可通过<code>source</code>拉取选项","1e890599eec94efccec337cd474f7f1b":"默认选择第一个","46110787e4774b81418b274e9b06127e":"一行选项显示","83a00680e0872e2a35496be7e12c1309":"每行选项个数",c30264927c3c170efd2e7763becf12fc:"单个选项","8a0c1f35cff334fc105b6d52b195369d":"支持多选，输入提示，可使用<code>source</code>获取选项","75cc2a992ea150d3a6c68ac4bc486637":"新增的选项",a13b85bddbcdab63ef2b2d98dd46afe9:"编辑的选项","8aa4d6aedd7957ebc6b87fec655695ef":"删除的选项",e19c0792886a147d74fc662d7af138bb:"单行显示选中值",b28aa9c36d0b506a71aa78b628e796c6:"标签展示数","2b23767de575e27fc9e4e0949e885f81":"标签的最大展示数量，超出数量后以收纳浮层的方式展示，默认全展示","406af2b98e6210cd42d7f824cb6dfd16":"选项值检查",fa8d03e8b5458c1a1d742736bc26e25b:"开启后，当选项值未匹配到当前options中的选项时，选项文本飘红","33e7b7433fdbeafa1ef71105ee28c061":"静态展示框",c99e0a675933de39693b7e80d5b70405:"纯用来展示数据，可用来展示<code>json、date、image、progress</code>等数据","134492cd10a0646da6f23a743feee6d4":"静态值","04f5f12c49c2a6fdc43da049591328ad":"静态展示","663a93dacbba9f7860dca783cf772419":"可快速编辑",abd733d00ec656e7b0cfd88deedf102f:"快速编辑模式","78f395c15aaf8c92d9223f6ca69b41a4":"下拉","5e2d1e872682befd5350687f94a6b417":"立即保存","2d2eb2ac28f074d1caef0d332d61cfb0":"开启后修改即提交，而不是标记修改批量提交。",eccba4475f3144e417e55fd96e831e09:"立即保存接口",c8e5c062d5ad38e54413abd9c7cfb2f4:"是否单独给立即保存配置接口，如果不配置，则默认使用quickSaveItemApi。",c3ed36e4abb96c18a6c83350994cdea7:"配置快速编辑类型","45a6c55d8d2d92af84e219defef084d5":"配置快速编辑","3f337f436989e9847790e4435423f77e":"查看更多展示",f7247cd14bd964b883bbb481892c440b:"弹出模式","2a2924380dfcaea998bd8a49703545a9":"抽屉",a06e8df4e9232cc606e0202e06a198d8:"浮层位置","68b54e7b408c4fb83561c931aa668eae":"目标中部",e18459c93769a5afec01e1ce60f9b9fd:"目标左上角","1fc3cdd8437f5057774cde2f2c51f97c":"目标右上角","63dd9faca92bccfd436ff21a6b4b3151":"目标左下角",d01c239688b9c8fc145191ee642dc080:"目标右下角","8fcf9802436282672a8e28ebd6262390":"页面左上角",aed25160b4e8cfc613a743c4549e9222:"页面右上角",d4a4ab1916187e09b9c037705fd49ffa:"页面左下角","921fccbb84c829bf8c6f0b9957029f44":"页面右下角","1d53f83df1d889a70131b7a93c819575":"内容详情","8dda45360dcf9ca501fd7d0eb53045b5":"配置查看更多展示内容",fd389de167730ba8542217ad31b95562:"查看更多内容配置",f9a9fcc3bf6a3c8ff1e99fa48ed6d03d:"可复制",deb65aca8dba2ff9d0cfaed0a3441068:"复制内容模板","622e14515c4fd5ca6fe6946e3a1bfb4a":"默认为当前字段值，可定制。","16a20243f9b741c08216dc9548de2968":"整体",e1b2f870112bd38f8d7e14a0ad589930:"控件",d38b7fc2d31e0ae21cb4bc7d7df14e92:"开关控件","6e17d8bb70df1c1e379fa86cb235ac82":"开关表单",ddccb436305b0a984c77d4ffa0725375:"开关值变化时触发",a75c768fda740b2c8f6e2dcc76400f23:"开关值","7e1eec8349c4998d142960009305f27a":"填充文本",c580bacf343343f04a1b551e46d02c4f:"开启时","9ff352ae39cdaeaa4fc54f83575eedc9":"关闭时","48433deca382e67b26af31c6ff967d04":"默认勾选后的值 true，未勾选的值 false",cadd676e2710e50ac149211078f8a306:"勾选后的值","13f19e1d0dd528aafd6263fafdc35e82":"未勾选的值","617a63f1b19b5aad029f973479bac917":"组合穿梭器","4f26f1edebcdeea90f6e4247a501dbaf":"组合穿梭器组件",ab5dea29793d933fa7b5487a7309df6a:"成员","71f8043aefd52572b172e7d1fbd5af57":"法师",fda93c79275b812a6c1c189fbebf8b08:"诸葛亮","573cb0d34bd1cdc7b368c59db9b7bb7d":"战士",e37a86d1a1dbed0cd53c95582977f075:"曹操",ccddd2de691ff2d56b651877f72d90ed:"钟无艳",c0db8e7b42528eeae96310c6629e53b3:"打野","293040fc607f40caf6d6e16042012182":"李白",b5256ec780343c4e20e397b43cab96a9:"韩信","49dcf9f88e7b7b8ca7448631021d7d12":"云中君","1fd02a90c38333badc226309fea6fecb":"用户","8b3a9a5c912610c384bc8dc2c8514386":"选中所有选项",e1112a529dc969a03bbbb409905ff2ec:"选项卡切换",d202bc660c4d2eeb58e194b6320bd235:"选项卡切换时触发","9e7a97a3d043f566f2435329e01e09f9":"当前激活的选项卡索引","91208131116f2823993daf99f15e1325":"清空选中内容",dda222620b789d07c2c5c279475caaf1:"重置选择的内容","2ac24a383a1faae33f81772b757b2817":"修改选中tab","91f894b900f593c848e5b21f2b414b05":"修改当前选中tab，来选择其他选项","791959f9b90734dce08da79f4ac27a41":"检索接口","6eaeb8ccaa8473e2b985095be2bf3cd1":"查询时勾选展示模式","6541f1702af367c41a3127ed8511eb50":"列表形式",d58ba4b5e94680fcb08300e176502fb8:"表格形式","406573cea6af9b0c6462295108e1f5c0":"树形选择形式","6c5358b981a475da2a83e95e4170647a":"级联选择形式","0911a348aaf24601e633e318ccb8aace":"左侧选项标题","84a76ba52297727f6bb47d8a1cc74094":"右侧结果标题",c6a16ef980efc2ac48c58727e5bade81:"多行文本框","2af7e3952d7430d1e4c86ea5aca4e4fa":"支持换行输入","5bc28acd4afb712dcbc234927357cd87":"输入框值变化时触发",cd7f479dd052edc1261261c15fb0b50f:"去除首尾空白",d3a8fe0d542476cf7989ef9e69cdd6f7:"开启后，将不允许用户输入前后空格","829d96cf23f19759e4ef988fb5320032":"最小展示行数",c0afd6005e68838e37e26dc7c34cf368:"最大展示行数","685e5f4815e87c4690dda7d7aa163904":"穿梭器","26b4a55f458275a108c1ef213a354ced":"穿梭器组件","1b09b6621ebf0d10ce98f0178fa1bda1":"触发组件数据更新，多值用“,”分隔",a2888bca5f435690ff9f5a5d615a968a:"左侧选项面板","1e409f26f9c1d58ce0c47a68104d45f0":"展示形式",eebda442c4bff2aaaf8274383d0ed12f:"树形形式",b3a17ee1af382c467d857d33089fc0c7:"左侧选项渲染模板，支持JSX，变量使用\\${xx}",d5dbf5285b2dbe07b481fbd5d4536c60:"右侧结果面板",b720b2abd62161c3c99625c8160df987:"跟随左侧",acef03eee638dc4239ee60f627f33d85:"查询功能目前只支持根据名称或值来模糊匹配查询",e3ed623b79100791f156d3586751c652:"支持排序",d4865602e26e9c985814380beae99b6d:"结果选项渲染模板，支持JSX，变量使用\\${xx}",e40d15221a911e060b8a05ec7aa9533c:"树下拉框","26aa42c81825364d2d691261017b6797":"点击输入框，弹出树型选择框进行选择","382df0b291e5306c423bcf471eb1734f":"树下拉",ac34e635d05de0ac2de78737ea313995:"新增选项提交时触发","5f5e2d89e987fa64d56471b2e3d50cda":"新增的选项信息","8784005bbfb2b66592cc0c5cc0a62f2d":"编辑选项提交时触发","25a4d7b5ce2585aada1205e1121e9967":"编辑的选项信息","91a6d3a760184e581eccd52bfa3f7a18":"删除节点","3c72d934764bb7205f593903c63ac7ec":"删除选项提交时触发","7768e7d47fa6e9b811d1a1f684703cfb":"删除的选项信息","0aa73cfbe5a84cd34a212de5bab2058d":"选项文本仅显示选中节点","4dabfefd787102b8159b5c4a221aa048":"隐藏选择框中已选中节点的祖先节点的文本信息","0f993a54d2c67716220632577d3b5b51":"显示层级展开线","846da282ebfa6dfe61deb1d58145158c":"显示树层级展开线","93199f3864cf5a68b286b927fa68ae6a":"tree容器","43474db97aff2ed0a876a47b6f4cdc7d":"自动生成的 UUID","43e1548e15272e1007051d7c8b70adf6":"自动按 UUID v4 格式生成，无需配置","844d72db7e57be4d77881ee9b4294e75":"UUID（展现将隐藏）","2820712cac089483cf2b4a0c939fc780":"分栏","9e17d57a0ba39254a75c0265aa3063ca":"分栏布局",e63907bf0db529e84866d1ae737bfc0d:"栏","9bdb07e72d3a9a6084201a7398523f5a":"插入","3c43c5860b4dfaced296d7a63eae1513":"下方插入新行",decaeded2b6f2c66f191ff34b868b1eb:"上方插入新行",eb22d47f16f92e6f621c2b9d87119303:"列数",c288b519484207bea1d51884a5e9acaf:"列间距","98d695d6a6a48cfb4bc2f6396ee64787":"水平对齐","1cc9a6949b47913462ff832cb684bdde":"中间对齐",da1b972efb29f850b50e219ad4d98ba5:"两端对齐","11b7fc50778c89572391ec4c6c4b55e1":"垂直对齐","2a6ad292447e6354ca39ee7f40d2fcc8":"顶部对齐",d68c21b6b65e7a2e361762b65b8a5032:"底部对齐","0d9eb53682343f1cbd562c9a944ef5bf":"左侧插入新列","814276d30e338eccbaee96c3e6bacb61":"右侧插入新列","2a3e7f5c382c56faf261a87573658325":"手动","19432e481cefd1bf88fc707f20ea62c5":"栏 CSS 类名","5ea5dbb698afe7ca566b94e92f6a3835":"第{{@1}}栏","9cc03fc4b3e87e8410e10357a219b44e":"左侧插入一栏","6b12fc99e2a46aed982d46b93ac191a0":"右侧插入一栏","57ff158884582ed498a87d03aed46146":"上方插入一行",bd63eab86ac0e0b35a06d0f24a098096:"下方插入一行","69a519f6b7fd6d0bebba72e7572ea1d6":"用来实现左右排版布局，默认平均分配，可以通过 columnClassName 配置某列的宽度。",f9c91bffab8b1202cf32ab508879e805:"固定宽度<br />w-xs","8c187c1862900db487c8d47e19490fac":"自动填满",cb2f68c9c24e85d21e6b090b6e5657d8:"列","92e2c6523449dfad4350f58908260266":"请按住高亮框右侧方块拖动调整宽度","129b16a89a82c6d5e03ab075633b3892":"列 CSS 类名",d34cc10492e80595a901a292d0c16bb8:"可以添加宽度类样式调整宽度，默认宽度为平均分配。","84b620405949e278f214a811a3a19e2b":"第{{@1}}列","4bfd6e7e1ec0fe485aa0e7741d1670db":"左侧插入一列","9d75cc0b193601391a139285d55a3493":"右侧插入一列","713315591970d7c8b49d1c732fe54fde":"可以用来嵌入现有页面。","8f1c078c6d42759e6ccb1a9bf35f1629":"页面地址","51ad722113289f70b6d77c78ddf0c64a":"默认宽度为父容器宽度，值单位默认为 px，也支持百分比等单位 ，如：100%",c78d9b9ab9db5951eb5526e8a46677d9:"默认高度为父容器高度，值单位默认为 px，也支持百分比等单位 ，如：100%","9ef4425332e5f8bcad86de483b4faedf":"IFrame 页面（{{@1}}）","67997ccf7ea846c3c2d278b01ed9600b":"图片展示","6dcf991e992a0b765df0933411fe9bb2":"可以用来展示一张图片，支持静态设置图片地址，也可以配置 <code>name</code> 与变量关联。",e18aa5e376437da71083a29c4cddaf46:"缩率图",fb43d5ffa21f3c4055c29fad350f27e4:"原图","582570bef8c57c5af7658c4a4eea45ff":"缩略图地址","1193e1aab7bea094279ae7b4288ba848":"如果已绑定字段名，可以不用设置，支持用变量。",f5865bf2d791d293374af4aa76d27c4d:"无数据时显示的图片",e1110b854bceeed0e887cb951bb3d2f3:"开启图片放大功能","7ffade593e390a2a2cc43e6663461b71":"原图地址","214953c5f7557b1a5f1310c87238ee03":"如果不配置将默认使用缩略图地址。","6d45b56ee94ea873a554ec41b9f2074a":"是否显示图片尺寸","00cedb73310cc531a43d23cfa5ba0e5f":"缩略图展示模式",b0267f4aa776e75443b7ef6e8dad257e:"宽度占满",c30b1b6f29debb05449aa3cb40268e7e:"高度占满",e13556bb3580ac3746e1f8663eb15896:"包含","47303119ba97a66d168ff042575b9de4":"铺满","319501b9acacdd6f94a9bdd0637a3cd2":"缩略图比率","4d080f1e18d86051b8d651c68685f319":"缩略图 CSS 类名",e040fc4bf539dd1cf6ebca6b4bff857a:"图片集","93f46deec83b8f9005233a1467498d52":"展示多张图片","2382c315a6ba396be1932dd8dafaff52":"图片1",ce6e2814f207c9333f10785606c57df3:"图片2","45a4922d3f42d0b137c6845c4c77031f":"关联数据","2d4247be13246794180897b40fcdbcb1":"比如：\\${listVar}，用来关联作用域中的已有数据。","81a2b634d7ddcffc21b787613673943c":"图片集数据","0f088d8f579c362068d7a3858e207280":"缩略图",ebb2073c604e72ffd9ae1b796665b702:"图片列表 CSS 类名","5acc93183b7fe3816a845aca52baeff2":"JSON展示","5a4b81442789f3b2e7b665bd430eeabf":"用来展示 JSON 数据。",f891291cbfaec7ba3754520e2a5227d8:"默认展开级别","6dfe63d8c039df37787c87afe4c68604":"用来展示文字链接","6ab20dc4b64021b85886ad9c12b6e0cc":"目标地址","78ce29fdc55e6d0980b591a264c537a8":"支持取变量，如果已绑定字段名，可以不用设置","5d809212900f3bc3ba122fe93638394d":"不填写时，自动使用目标地址值","88a5126f6a1463fc9986b590ee4ab99f":"在新窗口打开","39a2cb79c6d9762783e20522ea86dcff":"左侧",de2a774bf98944b8f0ec8755d5f59d64:"右侧",e370757f933a8ecd87bf0255c3ce45d0:"高级设置",e35dbea2b0c097d7fb76173da0e0bba1:"HTML &lt;a&gt; 元素的target属性，该属性指定在何处显示链接的资源","9f556fb46ecef854282d17e631578b1c":"展示一个列表，可以自定标题、副标题，内容及按钮组部分。当前组件需要配置数据源，不自带数据拉取，请优先使用 「CRUD」 组件。","84c04f1e9ce6a6a228228dd3fb96b99e":"配置成员详情","1ac0e1626be43287983fe3e5559320eb":"没有数据","4e53bfe03e30bb3eae63d90d1f7f2a1c":"List div CSS 类名",d9eac94850a74ec881198f4ffe4edcfa:"列表项","3ed7b428165499a1b91ed1eb287ba343":"支持模板语法如： ${xxx}","456d29ef8bafd5202547e50d3e64d4ea":"日志",d06f8476d115020496058363a32bc40b:"用来实时显示日志",a2bc1edd7be9348e5a998feb0886c55d:"日志数据源",ddeeaa33ae62ead1a77a859fb79b78d7:"对现有值做映射展示，比如原始值是：1、2、3...，需要展示成：下线、上线、过期等等。","8b139ce9fa196b602bb1ee3bd25b25df":"映射表",a9de5901385d644363cd056482be7517:"<p>当值命中左侧 Key 时，展示右侧内容，当没有命中时，默认实现 Key 为 <code>*</code>的内容</div>(请确保key值唯一)","2b10dfa6dbdf8775ab2b38fc67e7ea49":"通配值","87cac3a9c9576d9b5bad6639c891112c":"展示 markdown 内容",eb99816b4a216b2eb884cc6194f00ec6:"## 这是标题",f6a5891819c67a80c1179c7cdaa00935:"用来渲染导航菜单，支持横排和竖排。","4cb18f42ea06a97b382397c40ed64fb2":"页面1",a004407ac524b6d331671fb7a013c3fc:"页面2","310c10c1fcd37bf760bc15c30f54e722":"菜单管理",ba750e6e302292402a4c61ed72331cba:"新增菜单",f7a63e1e77fac1bfa05a060d55e27692:"菜单中存在配置错误，请仔细检查","7fa141f341e173e2339dcf0ce6869b5c":"跳转地址","720fc47e20be9b7a2e67a4ed808b3bf2":"是否高亮",a6ed2640c41d0e3df4acb4f15d37f6e3:"可以配置该菜单是否要高亮",dc55fd2e990771fd670743ca5dd59275:"留空将自动分析菜单地址","78b7cf23a2b93db1ec36e6c6cfe170db":"包含子菜单","710b20ff1d85f7965bfaac44ae26344e":"子菜单中存在配置错误，请仔细检查","02f925f6a5136c2b65b5da8d1216b5b8":"子菜单管理","59ad4734917af165482774de9c2d50cc":"新增子菜单","4d25cfe4cd14270af9420acd25526691":"获取菜单接口","9fc8c79aac0302a60ebc0777183cd181":"如果菜单地址希望可以动态设置，请在此填入接口地址","737669a8ef038ebd37fd7b2f3b5f389d":"是否竖着摆放","8d79a8cbe0ed37accbe0739024d5d896":"操作栏，用于表格。","6c0fe599b36c2a55efd8705681783ee5":"按钮集","975903dc39691813530e108986e49ac1":"请从左侧组件面板中点击添加新的按钮",c641fe0ae06e6c0547d89fefa91e7f75:"添加按钮","88d1257b0cf667319085f3e0033b9607":"按钮行为",f10f0be4aa9684eef9d78234072fe08b:"抽出式弹框（Drawer）","4f02d2efe05a20232ab9da63c090595c":"发送请求","5dfd5a78e2ba1bc8afb482a8745454ea":"下载文件","4e58f9c94d345e14e2d69cc8496b7b5a":"页面跳转(单页模式)","982db3084a2c470d1a9b34efa024511c":"页面跳转",f20d9579ebdc9dfc30a212ae6cae931f:"刷新目标","6a086902a84969a835423002718e86b4":"复制内容",a56c9f13b1566009fdc7640bc551709e:"重置表单并提交","30313d6fa06603604db18086bbcad9d3":"清空表单并提交","0fc26855080a4219bbfad638029a795c":"跳转下一条","8ba8a1bead7ca55554cff1c85246ae09":"跳转上一条",c28f4d63beabc4833b17aaa10ca550db:"复制格式","21fa07f18f80bee50695686831ae1286":"指定刷新目标","8a089992349df754f182a5d02de8e8e0":"弹框标题",b680997c50ca749acd4e6075cdca244e:"<p>对，你刚刚点击了</p>",c3c8422fcecd8c1cc922cba15ab5cbc0:"配置弹框内容","262c7c7b9874ae5607fb51da468d0e8c":"配置抽出式弹框内容","5eb694a4252528628929ced97ca95823":"目标API","84d38979bed546b93c4b3a399844419e":"<p>内容</p>","0cc0fff6eb667b140d3fd06e34a8c69f":"配置反馈弹框详情",deb9089ed7ebcacd712117fc4204c65f:"配置反馈弹框内容","215f64480a93893fc56c51aeb5d40f11":"清空设置","7984d95c01b725a2709fb8f5ee330fb4":"是否弹出表达式",dfa07586a471e24b23fe68e11f5dc41a:"请使用 JS 表达式如：`this.xxx == 1`","47186f00df86d3edad3b5595ba8c2a0a":"弹框取消是否中断后续操作","4f21e04fe35d39c79e7779cdf2f4e232":"弹框确认是否中断后续操作","0bbc3ec26c36a87c9df3183def6ca9e0":"是否用新窗口打开",d0c3025a64b26e5fbf22005f400c06d7:"是否关闭当前弹框","0c15a924dc3bedefb79c958972bef2b9":"确认文案","06b13b11740f7663af325bf5426930ba":"点击后会弹出此内容，等用户确认后才进行相应的操作。",fa9a0a79f29fef72e3060ea1af93c305:"刷新目标组件","437d629f00e62cf99b3ad288f84ade46":"当前动作完成后，指定目标组件刷新。支持传递数据如：<code>xxx?a=\\${a}&b=\\${b}</code>，多个目标请用英文逗号隔开。",b01f08bf5b9f8e3ef9d49e31d89bf770:"指定响应组件",f667748a8e9717498da714d4e5087af2:"指定动作执行者，默认为当前组件所在的功能性性组件，如果指定则转交给目标组件来处理。","80ddab8a52f74d707765501b0caae21f":"自定义点击事件",babbd439bc04241ed3536f892668c250:"将会传递 event 和 props 两个参数","867ade50f0bbb10bac65a5c3bc7895e9":"键盘快捷键","45882ddedb42c1a38462949750bc8a84":"显示一个提示图标，鼠标放上去会提示该内容。",ff88d5db9d61f14bce6e3397fd4652a5:"当没有值时用这个来替代展示","348097cc50579e489f0bcb5433637d3a":"开启后可以根据当前列排序(后端排序)。","9db64f772c11c614ee00bb3cc066f46f":"列分组名称","19c4f5e98ad302574202de30dddbaf66":"启用快速编辑","15c3796e07e33afc7252df751f610c5d":"是否立即保存",ba5a0a1ff2c438ae7719ca48b0ce3af7:"启用查看更多展示",d689e3c38fdb32c98fb27f8f35a26552:"查看更多弹出模式","6e78b595d6a296938201a3c80660bf35":"启用内容复制功能","65f7e01d58cb5065f49e0e8f48cc16be":"固定位置","9ed8a4c5d1b3726121175dc986268b0c":"不固定","0a5ac2f5c327e28c58d51db967a0e603":"默认展示",a3bd2104e3df81df713de636b907462c:"触发底部显示条件","986a5f50e946674bb91c9408fc974497":"总是",a165f0fe5fb904049f6b6961105e433f:"手机端","03ee8b948c9b34daca9584811bcca17d":"平板","82d9f1f96084674e2b0101ecc04d5d58":"PC小屏",f4166de371b5dfb87efce228b17a3fbb:"PC大屏",f8cffd4d3fcdca390a3a3de24d209bb6:"内容强制换行","4619988f1c5d9093dc00d1430633b2bd":"内部 CSS 类名",bdd9d38d7e2929024089363dc8f48b7a:"列宽",b198805e7a6b35830ba813f51db2fdc4:"固定列的宽度，不推荐设置。",abb58b3bac0533ab4359ed977fa3c073:"<{{@1}}>列","044892c0c637f2d9e78e78956b1ded01":"匿名列","59ceff465ad16932d8972191ad815dfb":"页面","54002bbf7eb3da8346dd4be61d642bca":"边栏","49400a573b9f7a7bd693f84ec59379d7":"远程请求返回的初始化数据","5d758dc5e33ba0122c256d80c1572e88":"下拉刷新",d6fdfa4f989be6586a7a29ea85522f24:"开启下拉刷新后，下拉释放后触发（仅用于移动端）","56e6db657d4775698984f883b71cb379":"工具栏内容","4f9fa9ee5b0604d97da73e77fdbc281e":"边栏内容","40fd4b2a194b2b1284a7f7f738b69640":"页面内容","0e82bfaaec104a9f0eeb14820b42e7c8":"区域展示","391555a3772260743f19278f01adf75e":"标题栏","8d6b5924f187048cfa28d6c21fa6d2d6":"页面标题","3ba265c6b63bde0319822afd6b9a649d":"标题提示",e7f2f04f7c2b2e9e07b69767ea28d6ab:"边栏宽度可调节","28d602809bd1dc6b47ceb38cb54f32de":"边栏固定","36bded76593f98fab62453c7430b2918":"边栏内容是否固定，即不跟随内容区滚动","4143d7418de740e8bc26ef4b27c63534":"用来获取初始数据的 api, 返回的数据可以整个 page 级别使用",c95e748d5811faae5c52bdc07bee51a0:"移动端","04f767eaa571383ea271432bee6deedf":"下拉文案",e24bc5fd094c7c272725c6340d8aeb8e:"下拉过程提示文案","0b3eef4f8a8061baa22416dc1e5dad03":"释放文案","717b23399e04873441478fef1cc16d43":"释放过程提示文案",f59b11ff84daeb60b027dc02490b627a:"分页组件","7cfb5e222a5954e891fba6e3802c7ea6":"分页组件，可以对列表进行分页展示，提高页面性能","9ed7d3adc032f6b78808e7f3786ec9cc":"总数","8e60090c332693095d5852d92ee149ee":"每页条数","0059d50e3f7b2fe7f1822ccc218fed66":"跳转页","47c62ec10a240c35b8446cc923c5e8ef":"分页器","97b8cf6ae269b6f6d75063073cd565cc":"分页改变",b30f254eccefa14c9980235bcbec74f9:"简约","41ed1e238b846005dfb0f087cbec644b":"选中表示启用该项，可以拖拽排序调整功能的顺序","71fa2ba926cd032c0ebe0bcdd5d3eb10":"每页条数选项","04519bf3bf428bb1a75938ac65dba040":"默认每页条数","040f05137eb37e880873a763ff653fe9":"最多按钮数","2ee8eb6b1a80a4b025f97fca6afb800d":"最多显示多少个分页按钮，最小为5，最大值为20",cd6f79e7bff1337c12c86a15ceedd6da:"面板",e04a2f1662121e5a3c397d496114185b:"展示一个面板，可以配置标题，内容区。","4e9bb0326ab4d3a2af94d901c7f1b6a7":"这是一个面板","5bf5f1fd54476671bd6fd9d97e3e6b6b":"这是内容区",cac3ba71180c97b1b6432833b3417d2c:"内容区新增内容","1fae678397df046c1754092f15a71d98":"固定底部","68744acedf015b8cfc445af30583815e":"内容区域展示","5a0fbcaaeb439684bb4ae5be579e4cd4":"表单展示模式",f99d7e5f15906ca78c45753ee3b04a8b:"表单水平占比","9970ad07468267e2f309f1467c75bb80":"主题",fbae87bcc352f6933541fb77a07418ed:"主色","540f84ddc0883866b229f71c2844199a":"危险","65810a32a98f09be550b0c421df6c540":"头部区域",f3b9889baa6d17ec63f05ea7d326bcfa:"底部区域",da71dcbb13405815476cef28a8b9c4f6:"按钮外层","6c5b1f0e8e361a801fa75da070d1cba5":"用来展示纯文字，html 标签会被转义。","67e77a196826a8880e47ad949ce08ac0":"这是纯文本","83077805e05ac6bedad69b47fca4462b":"进度展示",c77048def6e8a2d6c556a3fcc9c66730:"进度条、progress",b1aefb18d4bf96dc283a26d67abc41a8:"用来展示进度。可配置各个进度段用不同的颜色展示。","2dde3029c4170a1c8e961a90766e0194":"继承",ce179eca04fab0d584506b0d19736836:"线形","2db0fcd5342b479688fd999a0108ef5a":"圆形","3fa8b34a2744f62fe93dd599a275af39":"仪表盘","1ca3fa86d8faa46cc75792bcf90d7fff":"进度值",b0932e5bb7f7d95e3636d82d1a039854:"无数据空位提示","940b12c19fcf7aced0cdd164edc9acbc":"占位提示","9cf66e7783e4c9b1d74bcd411edb6950":"数据字段未定义时的值，不包括0","2f0faae87508471abce4384b60900e15":"线条宽度",bd9b3f7e564c9eeaedd72f1bcbb7fc9f:"缺口角度","31a088147dc0006e4775d066980fa688":"缺口位置","77a7419dd4fad70c3f3e4b075b2c3fcb":"显示动画",a04564aaca658461333b00cbcd071518:"纯色","0a9fc7083e2768107fc178ff36f29ba0":"条纹",c035fb9e67c0b566fd5d35889035424e:"分配不同的值段，用不同的颜色提示用户","23bf030ca760141f317dde1b7f49b11a":"属性表","44f2bc36dacb88424dabf9df71da0e77":"机器配置","1cb82ab4f259d5b75da0ae86583b31ff":"其它说明","9a4ca43777061ebc91bc64cb994957bc":"每行显示几列","17fa61e1da428936a31b51c955a99d65":"显示模式","7fa5c95b26550753b0931fa21cea5d10":"属性取自变量","6940ea5aa4c18e105cbcd32cbe410839":"属性列表",ae41a992ccceb36f83024f72531186ec:"属性名","52dff5b153bb5eaca33a008458ce0209":"属性值","42c3762943823c37b537a10c09765822":"跨几列","22b03c024d815ad327e8b95d684ced38":"二维码","1857d9050ac0527374f4324c0a5ad910":"可以用来生成二维码",e71377bb59c70af683be127ec49d01c7:"二维码值","57eda9139c0b3bc0605ed4cf303ffbd2":"支持使用 <code>\\${xxx}</code> 来获取变量",f13c3e0717ea842cddc1402e8dabfb6b:"复杂度",c4bde7dba8c6eed0ca0165b071b259bf:"宽高值","2f97db95d75280bfedc5afa72d2c717d":"背景色",ebf2453eddf55441b711d187f3872ffe:"前景色",d5e6d5c44426a82e18e31eadf7f1e09b:"一般用来重置表单数据到初始值。","6a06f12bdf3fc96df6cb45467b9a7c2c":"服务 Service","9cc50da6bb17ea7ecf44c254c9b37619":"功能性容器，可以用来加载数据或者加载渲染器配置。加载到的数据在容器可以使用。",c5a33208cf3deab68cd9fe34679edff6:"功能性组件，用于数据拉取。","54d99a6a50a2373055c0f66ab727a869":"api 初始化数据","7a0c222fcaa42473d1c75c113c3641b5":"api 初始化完成",acd4bd22755a537431d74b28c3c2ad67:"schemaApi 初始化数据","5a7d03912f38d0b24d04b28da40864a6":"schemaApi 初始化完成",f885d4055567877facf0a3ff376a114e:"重新构建",c8f0e77a9eb5de26e6ab62695d8494b6:"触发schemaApi刷新，重新构建Schema",e22855f53b7a1ab33e920375c0cd0e3d:"变量赋值","8b10146a8a896b890b3796eefcc3c6d3":"更新数据域数据","47d68cd0f4c3e91a86d23afe8afccfb8":"服务",f754888421621d122c110d83e710e9d3:"添加内容","31f8a7a967286a16eb404e3ba237619e":"数据接口","54f876a529283de5668426b2dc8adb15":"设置 service 默认提示信息，当 service 没有返回 msg 信息时有用，如果 service 返回携带了 msg 值，则还是以 service 返回为主","7fa237c1b62d04aaec0144d1fc89d620":"WebSocket 实时更新接口","9dfeacc54ab6cd6d2ac08df387777f9e":"数据接口初始加载","98223d478e88ccbc2406412a46dda8c2":"静默加载","71ae1c76cc4160f8fb76e404e35ca08f":"设置自动定时刷新是否显示加载动画",b897babfafd35cc5d6e66470115c93cf:"停止定时刷新检测","11bcbff684dfe6edf36e1fd1adc5ba30":"Schema接口","8cc3239eba9fe65b99242adb33634b33":"内容 Schema 接口","3f423669b0ffeb3993b95085cd8a111e":"Schema接口初始加载","8e8aaafe8db0d8eb05e3b11550cbabe7":"全局配置","7481babe858320dd6a4adcf307fd151d":"自定义函数获取数据",bfdee34e14602e3113c88a9145843e86:"将会传递 data 和 setData 两个参数",fb559ab354303d1927dcd9f0f2dffa23:"获取成功","56f0a1c0bc0408556c5810ea4f219dd4":"获取失败","29326bcd28fb39bd41e54242fa532c85":"走势图","270301455c3de762a7e2b145dac7a8b4":"用于内嵌展示简单图表","44e13bdad8c7eb6391e84d940513b927":"状态显示","82a3047196be368be13dcdd2373520ff":"用图标更具关联字段来展示状态，比如 1 展示 √、0 展示 x。这块可以自定义配置","774b2bcaca8a64f46c84b510cec89109":"图标配置",b698a95f1e217e5465835ee0d23b1b1c:"配置不通的值段，用不通的样式提示用户",aacb2b36c47395e4b4b409e351eb4279:"Steps 步骤条","863a8583132d087e57aebb7d89e18a50":"第一步","9757f2c59c17e9aea46e0c8adb69597e":"第二步","207e30c0e7318027d521dd7c6fab6a99":"第三步",b8a2d347bdb22fde367a851df8335771:"步骤列表","59cecbff0cc77511590d2161cc3058e9":"当前步骤",f3f08da7f65e1d5596a66cedd7caeb9a:"以零为起点","6bf1f392c0a404d1f7558e6dcdd6c2e6":"当前状态",fb852fc6cce168301447d1baff276dc5:"进行中","8797922788916874c39ee1524bbc3638":"等待","769d88e425e03120b83ee4ed6b9d588e":"完成",ad8e01fe719bf1a5af82ee0d100d246b:"出错",d1f03ea8d9d3c3a241e8a340b8a384d3:"获取步骤接口","74f0f6730053049f4c9beca2ab00c193":"用来提交表单，要求表单验证，如果在弹窗中会自动关闭弹窗。","7b755ba413eac50423859395c68e6280":"表格V2",ea2b32f5d78d2305b9b7bc21e056a009:"用来展示表格数据，可以配置列信息，然后关联数据便能完成展示。支持嵌套、超级表头、列固定、表头固顶、合并单元格等等。当前组件需要配置数据源，不自带数据拉取，请优先使用 「CRUD」 组件。","257f5a3886d87d2255206f86b880d07e":"选择表格项","6130b1f75d624b2f73f5d923492e92f7":"手动选择表格项事件",aeddca0456d8fe520dc95545a83458e9:"已选择行","4f907cb94921bb62a8399adec922bb60":"未选择行",f3d21138c8ecf5683503c4f814cc7199:"列排序",d84464cfb2a5828a200fe9c28a323122:"点击列排序事件","652f155e644e82ebb0a1aed97ab6ab23":"列排序列名","460e3a697d1680445a47139c0816fbe6":"列排序值","3d0b957a99d0c366612c01913e17a0c7":"列筛选",b35963687361af98e6acdc004e87fc3c:"点击列筛选事件",ad11fba3ac676233f3105e76e7de0501:"列筛选列名","8e4b9c88c51aaad1a28a28e8b536697f":"列筛选值","93a5a0253f11e3a2e58f4e87a52fb094":"列搜索","6d4c4990ab2c32efe8a17c5f22e10cb5":"点击列搜索事件",a80a4486100baf3f45fab3a59e4a816d:"列搜索列名",b9a565fe1dc488efae1d63464f277f09:"列搜索数据","85ddd38957256b6e9026f42ed570bc35":"行排序",d7a66def82af88cd5d408e38feb8a65a:"手动拖拽行排序事件","1987561c006c7192ab619f81103d2a2f":"已排序数据",ecfebbc91e2c18a512aeb11b7da15193:"列显示变化",c94f45773a42dc386b9c9dcdc6fa542b:"点击自定义列事件","70567329ee851a5ba7e7301bd8e9d9a1":"当前显示的列配置数据","76e47871d654c3b0b0e301c0a076e55a":"行单击",cc13521eab2c7423b3fb857772405cc3:"点击整行事件","2fbbf5c38b66ac5496ac42246bbe9e0b":"行点击数据","8eb3c8b16106e5487cd1fa3b8a1342ce":"设置选中项","908cc16fe4f7972450167e26276ac726":"设置表格的选中项",a2b39e5a8b5015234dcd8e07a2e00e3d:"选中项","366a3c07289bd6efb7c2a182f7a12772":"设置全部选中",e97c09cd119b64ae0a8dfd42a1d449cb:"设置表格全部项选中",c3e8652924c258e121eed16414d3a9e5:"清空选中项","7619ec29c0a854dd49e0a7a47bf1a127":"清空表格所有选中项","642e5368b742c82472e2ef35114459c9":"表格数据","8369004103635f8e75026217ebf237da":"绑定当前环境变量。",bd3e7a1b636e4477a4ea59922ed2cc1e:"显示标题","11d00f37d934b2464f3258952a398626":"表格标题","4e3cd1a7b193e2fd3458278d10c530e2":"显示表头","023ff3530e48493e653eb48e958a4eb8":"冻结表头",dd9b85b2cd13ca724afd1f43567abdbf:"显示表尾",c89b5fd3b706a17feb016d93c80e34b1:"表格尾部",a5baa4818b14f4680955aa34dd559d02:"内容高度","1ef8fd21130d17cb7c1613eaed6ca1e4":"固定",ee18dc475df8654cb13ad67dd84eec28:"高度值","8bb5781dc5f2745e6356cdc5e6d76b16":"内容宽度","88a364068f684dc77aca5b6c006ef576":"当列内容过多，超出宽度时，可使用横向滚动方式查看数据。","6e3d35b57c29b1b419569cc55b3a5d33":"宽度值","8ce1cd75b6e9c0c0e3468589fcea822c":"占位内容",ba4f461832cbdb7fbdb170fc9c1db647:"可调整列宽",aa2bd9f54608c0c85d3ceecb707938c9:"用户可通过拖拽调整列宽度",ed85be57262e5a0c3116293e88278fef:"行设置","5a431ad16d8f7f23fac3be5650e51caa":"行高度","3d2ac2fd2c60931fff1db814662334c3":"请选择高度","85a49c5ed4628647f2ead9206224dba3":"跟随内容","4296d7d293c9ea4a0e52c6415f0b5c96":"高","1f1ca9df5fa3648c718ad04649888943":"可选区域","596171970b639a35dadde2aa930d666a":"整行","388855093d17f3df43ff80242d7a1bed":"行禁用条件","46705a530ba9721527a4202bae7091bd":"选择菜单项",aab57a3547a451f756bb8231a1eee8d7:"反选","76159d0d1261c0b6c310901244457e36":"取消选择",be4751b0c9adf1d8deee45226c6124ee:"选择奇数项","49f4010dade8652e5aff6a2c67aa23a4":"选择偶数项","49b4aa407b91ac997e27314e30c03110":"可展开","8c1f5c49de09adab9a0e0c39e0106f78":"行展开条件",caca6cb58342bb604483d94f49515234:"可嵌套","5bdff9fd07d2a2430ac50e1559dbee27":"可拖拽",dce5379cb978a8259ecfca8f08f00817:"隐藏","33eaf97ecb3465754855e847f14d129c":"快速保存",ce7d31d64f2315e1d4cede288b9dfc60:"快速保存单条","927b639f244953f237cd12943c8b815c":"横向滚动",fdd59ca00eba17d4bfebf744056ce4ab:"嵌套缩进","6bfd4423d8aebbf0cac7ba4d74f245bd":"选择列宽度","21922c6479665dcba83106f8e9ffdf68":"固定选择列的宽度","31b7c58c2d9a170829b90314ff98b66a":"展开列宽度","81ccf26d9622d139a13ba2a61bd9fea4":"固定展开列的宽度","68e9249db7bd12ab17994b1761b049f5":"自定义行样式",ef0c5b6fa16497343eedb76171d61d68:"展开行样式","1a7bd457c08093cf2cf887403dc249d8":"展开行内容",b94bd878cae4ddc567b00a2dc4f21d74:"开启排序","5dc3017c21ae2e31ab127dbde8ec80e9":"开启表格拖拽排序功能","25915fb58615ba9a5e145efa252fec30":"自动合并单元格",d7d0936858fcdf4ffdb2899451ec74fc:"设置列数","80174cabf025dfe269aee5390b813708":"设置从左到右多少列内启用自动合并单元格，根据字段值是否相同来决定是否合并。","14921c3831512876f6d58b2a497b86df":"展示列显示开关",cc42dd3170fdf36bdc2b0f58ab23eb84:"开启",b15d91274e9fc68608c609999e0413fa:"关闭","6fe0b71c07a5ce5f7a09f7fdb1d63827":"自动即列数量大于5个时自动开启","2206c0e11aa5f4f154aa9e5dfffcb474":"是否固顶表头","5006fdc5659989e42c3855c17c57f878":"是否开启单条底部展示","9db359f376a1a588ef7dcbef53cc114a":"如果列太多显示会很臃肿，可以考虑把部分列放在当前行的底部展示",df74194830e695efbfce16c0c64223cf:"底部默认展开","94be543c4fd399f0839211464c8583ce":"第一条","9a7b52fc8659f1786907fe93efa85bf7":"所有",b07deca9076bd3354b1b2709d58d725a:"不展开","76b3250fb1e8593fac075b64029300fa":"行高亮规则","1fe38acb67e766f7767d9f8e88bfe990":"支持模板语法，如 <%= data.id % 2 ? 'bg-success' : '' %>","734ebf8b33422c456e937fc27c9a16ce":"外层 CSS 类名","320f489db3dade075d69f155b346f98b":"表格 CSS 类名","08ca0d502abc4336855d837f281caef4":"顶部外层 CSS 类名",b6469055adf2b7bfb187f74ae17dfe54:"底部外层 CSS 类名","39ff38577b97cf98fc130f9bd596d4c4":"工具栏 CSS 类名","4ca07911d10b74cc7c357b510e7cc948":"列字段",eb2719a7e6cebda7ca234560f21fb448:"列标题","7ad83bbe4646a0011ece7fd338d1e189":"在标题旁展示提示",f35c90b504521a2da346960b9db23828:"当没有值时用这个来替代展示。",b4521626a48dcb61001fc563d2433ed3:"可排序",ac83dbca40c9d2151b5f7d81795535cc:"开启后可以根据当前列排序，接口类型将增加排序参数。",af9cbd3988196fc104af4fed9461e152:"可搜索","34dceb7c51000849ea3596fbaab6f67c":"配置列搜索类型","9a899d9ab83d8ffa6308fb31e93f23a1":"快速编辑","4562be5a3f9823a5f61b25f8d14b2b43":"修改立即保存",c115f372bcdced1e70824bcbf42b5923:"开启后修改即提交，而不是批量提交。",fba91204d335ae6eda35809023a94f7f:"配置编辑表单","90ef7c485bd31fab681c6e9d9afd5be8":"查看更多","71c0319fce9f416330b18e554e0acc55":"浮窗","64035b04a21bc337a351b5a2a5d12acb":"浮窗位置",ea71a81cf874780294d517b0314feada:"配置内容",ca60c525372028b9f75ee4c708cccae1:"默认为当前字段的值",ac04259507be8ba6b891dc9dc208f491:"内容模板",c9f7324519225bc72fce24a09518a8a8:"合并行","9af45e91a08b54764610ada28272d590":"合并列",ad96280bb24a38f9a83051b16ebc9688:"自定义列时默认展示",eb58b078f2f8560160ebf87bc7109de9:"内容超出换行",f1f4c88f30744f2365b65f1790c71da8:"错误的组件合并对象，面板过老无法处理，除非增加新面板","175e01917d9d4891a40eab43f4487030":"表格视图","9fe8304dade75a37bc04f45515688325":"表格类型的展现","2560b304e691da78ee2e02f5af9b494d":"地区",f7d29dfae05b5d049b64b040b14d9a00:"城市","44e7ebb4007104495dcb7afbbb6778fb":"销量","3f0cb8b8c238c3b4e08898ce6d449c8d":"华北","692e92669c0ca340eff4fdcef32896ee":"北京",b8b75a5f9109919ff3f67b336b62afe9:"天津",d1c2b2d68063b4a57af61e3027861cd8:"视图宽度",b32ec25f2bdf7b2eed5e947cf82a4fde:"单元格默认内间距","8a42ded5c9d58f3dd9e3a8968ec04b34":"显示边框","9b4bae5d8251de0b6f00b704936b00d3":"边框颜色",d273f56b3e598e794c3480f1e62f3ed9:"单元格 {{@1}},{{@2}}","466c65230ac92494c3af79757b4b78aa":"行 {{@1}}","1ebd0cd417700f3f4a7ee5f64518fcd1":"单元格","4d775d4cd79e2ed6a2fc66fd1e7139c8":"显示","7ec907e7059b758ace2f3adb9bb803ff":"文字颜色","104711e38d3cd9335dbd1f4301178edb":"文字加粗","65194da33aa3aa1d0fd08b5690af6f26":"单元格宽度",fbd9998b10e690230b0f2fa9b24087ac:"单元格内边距","0bbc2ea4e1d1f23feb576de5dca1ce3b":"居中","4745afe0f89f665e41adf819da5df1b6":"水平合并列数","7c2e1f863e86715e892f61a54e558b20":"垂直合并列数",d17020cd3e6564f5154cf2251cd30f52:" 行",db439b129f3143e14a7024f08ea3732d:"行背景色","30d6ed36667cb98165f07c59702754ea":"格子","49d45317662097180e27fa53235d9b13":"找不到对应的 td id","013326241579b9b2735756f2204bf8bc":"第一列没内容",a896691b72032fe21a00b6487381a529:"左侧新增列","24e4bbbf29a8d31e711c8d9366bf1a6f":"下方新增行",aea2dd682bc9dc2974dd971581148459:"上方新增行",bac058b86f8fd4e8f5e2ef3807799aea:"右侧新增列","488d0742c010851e9c6ce3264df9542b":"拆分单元格","9377e388f7189d6103a3985a321115c8":"选项卡",a8b1273cb2d53ad858906ff9744a9891:"选项卡，可以将内容分组用选项卡的形式展示，降低用户使用成本。",f78416dbd6c6a40a3ecd1c1f2b0672c8:"选项卡1","9769ee568100b0c530a06ec3f0c0044d":"内容1","4be268145385303e8ebeb480458a380e":"选项卡2",c50159e2acff0f4ffdce4c67ec3513a3:"内容2",c8794c58d0eb020ca40905d1904d88b2:"激活指定选项卡",fcd3abb110aab48ebd0ac2a1d7040d6d:"修改当前激活tab项的key","9d000284174ff09642502803887f28ed":"激活第","29645b509093191cad34c673c1b3efb7":"项","9578012b7d75a3a47c76acc176caf403":"激活项",b744b72fd649d904e561358fc26c455f:"鼠标移动到选项卡标题时弹出提示，适用于标题超长时进行完整提示","6e7fe62a865cb9ae90e52f85f4c6b8a0":"默认选项卡",a8986713e2b83c9ecafe5b107c09b68e:"默认显示某个选项卡，选项卡配置hash时使用hash，否则使用索引值，支持获取变量，如：<code>tab\\${id}</code>、<code>\\${id}</code>",acb839aac679bb34be9b4b49806b74a8:"可用<code>\\${xxx}</code>取值，根据该数据来动态重复渲染所配置的选项卡","5b9af1bc3012bb3c8e07b983b423ec17":"激活时渲染内容","4bcecc15d16e8c851dc3d155b8f30929":"只有激活选项卡时才进行内容渲染，提升渲染性能","12c6a62683d63e404d71a31c9cb5209c":"隐藏后销毁内容","5b52bcb62a2e1dab99ef841b05395b6d":"激活其他选项卡时销毁当前内容，使其再次激活时内容可以重新渲染，适用于数据容器需要每次渲染实时获取数据的场景",ecfcea4b381d761fecd512761bc07954:"线型","3d7443aeba7c8eaf1cbb42ad5232fa10":"加强",ee5e5a588705699a51eb3c5778c3020a:"仿 Chrome",c5b8044dacf2e63931d85e5e307a9168:"水平铺满","22d18bf0c476ebe7aa9303108677ff2e":"选择器","5bff38cb05e3710a0c0cb16ed3ced78f":"侧边栏","593c1c61592f80831f58b2e44cfe63fa":"标题区位置","030c8cb75e9707285b28c4931bfeddc5":"标题区","32b4bc87bf7f95cd6094992f0135ff7f":"标题图标","996a919888ae86e842c76245daae2360":"设置后，会同步更新地址栏的 Hash。",f3051dd9b3538e170322fd5224b28de0:"激活时才渲染",ee51f2d49fa12c730d2a0efef0d67e44:"当选项卡选中后才渲染其内容区，可提高渲染性能。","024f24defb08c5c9d463a2668cbb9802":"隐藏即销毁","370bb4d6806c88a7df2ac17ca2a7b6a6":"关闭选项卡则销毁其内容去，配置「激活时才渲染」选项可实现每次选中均重新加载的效果。",f6724322c613ca164ea9a9d03e9055c9:"卡片{{@1}}","8a471486c6c7bbe43e14392c6b127aea":"异步任务","4f58f808d62c4e31c347e483898396d5":"用来做异步任务呈现或者操作。","9ee043b0a77a26d22eec0f4ea99afbd3":"hive 任务","3709f71c9552ed5db76cbe8f3cb5d4be":"小流量",c60ad696dee4e1eeff6f0f2c2e9b9fc0:"全量","5c0dc424442c913c6d16a2cf43137da4":"初始任务信息","78caf7115c5140f8913c581920239f22":"任务名称","3a3778f20c0e1a55adafad4861a71216":"任务ID",bc7e74f7ccf8ed6fa5b7b7649b221daa:"任务状态","1d35dcbf191e36dcc6c15f71277d72ed":"任务说明","76ba17faedd82297d09b2edd70c5914e":"新增任务信息","093bcd735847b8464d683464165adbb8":"可以不设置，如果检测接口返回这些信息的话。","7dca021cccc260dbe1d81dfc6b29f513":"状态检测接口","358e55678114f19424efbb42c0a927d9":"定时检测间隔","77bd60ba17a73ede5d81c4eeba0f830d":"提交接口","1e057692fcf81e07e20b5f7c9073ea35":"重试接口","24e3562a3262e80c3119f22b8f447f64":"任务名称栏标题",cb8e07cea4df337bb6dcb8362b5f7e02:"操作栏标题",f2acd3adcc0a0d73b318c83a29a4d2a9:"状态栏标题","8a4cf07caf84c91a87e8ff3c48a944b9":"备注说明","0cbbb89050458c2bcf0ca98c19dc8864":"备注栏标题","879eb99c7b1aa3223925b9b2dbad4c63":"上线","804b6382fa6d8b53c5a2a409f30f7fe2":"重试按钮名称","132c5cdcceb0f1f17c8c088a42959aa4":"重试",dd4e55c39cee201b82dbc9cb2aca173f:"未开始",c0d2181d579cd1e965ed10d5183b1fc0:"就绪",fad5222ca0acfaee54f06458188d916a:"已完成","7a4b9e6f14bda48d2c3bf0fa431bd2b3":"状态标签文字配置",f198581dbbc357ccc0283cfe02d56edd:"初始状态码",d6bab2368de31490741ed95f732aaa25:"就绪状态码","6eafca9359acbb0bedcf86d6b8609e41":"进行中状态码","7e8b2e41a303cb8532b9ad2006da3c25":"错误状态码","231b6f799949f9a743d5193006a15af7":"完成状态码","003797f6b66c67cd87ec684cacb4ab70":"出错但可重试状态码","89d19c1fda4906bd7a336895835ce20e":"按钮 CSS 类名",c52b46333f6d5d2796ee64cb359cd58a:"重试按钮 CSS 类名",b091a100499d48dd4ccf0b982aa37d68:"状态标签 CSS 类名配置","7ac24322bc8eeac88db6823942423ac3":"时间展示","82315a0cd63e7f81233ad804e0d02deb":"时间数值",a389ce9c52a94bbdd5c7fa84af85348c:"显示时间格式","7cef725b75da8afecda59900b780be75":"时间轴","8f32bcb8d5baf6cbb410ef3f6dbed8d5":"用来展示时间轴","1aa46d7cdc632756dfbf16c55436bcdf":"节点数据",c360e994dbcffdf31e86d2d8875370e1:"排序","825f53899a11e598fc9f9b43e0814a58":"正序","8eb4b7abb66f0922778a39044b42d345":"反序","0da2ab28a6e03922d4a0c78451146b87":"时间轴方向",d1b490c01d24a1a70e9c83a29ac38fde:"文字位置","00ff9356c34d05ecbfd6559a46f56e25":"文字相对时间轴位置","71039986e2386573ab6e5681986c2230":"两侧交替",c5d48d5732c64d5dea4bb0b4aaf13813:"请输入className",dd438f6fb09d6223fd95df16383f0f44:"文字提示容器","33813749a95477897085e2435acc16b6":"类似容器，可以将多个渲染器放置在一起，当用户鼠标悬停或者点击容器时，显示文字提示浮层","9b14c9051067bef2dd9a15683201dd18":"提示文字",ab97cef55407efa11f79211e17cb2b4b:"默认方式为”鼠标悬停“",b47707f0e916e3e3f4ba885bc2cf2c11:"主题色",a32b3b848eee6929634dfc9a9d8bcdb1:"亮色",adb7e5312abdb9a44297e48d63815fa3:"暗色","0de826c66ae3fe8043e9a39b35616ee6":"容器内联","4583d3453c31cd3ff068c1358d8e7f1c":"点击容器外部关闭提示","8e290c31bc0b4f76edbd58c3575b8420":"浮层偏移量","03c87fc8d49f865f0c2895d9ef3fe352":"提示浮层位置相对”水平“、”垂直“的偏移量","4e3e1e12e701890f4461808cc8f9d407":"可进入浮层","9d6246f57f6924410b0c68f2172420f9":"关闭后鼠标进入提示浮层后也关闭浮层","90919000a708f8d66b7591e21b8e33f1":"展示浮层箭头",ed81f127f3b2aaff73a4f4dd5968fdcb:"关闭后提示浮层不展示指向箭头",b60e5222037939812dabb7da9979c27d:"延迟打开","82bb338503938f2da52e91f7244a34a2":"延迟关闭",d55c726c99995e106ba5f3bb2b791a86:"内容区CSS类名","0ce2605d7eed6782adb6bc62ffae2335":"浮层CSS类名",edb5acdc9ee5e75fbc238ab4a0300eaf:"文字内容",b1f824deef0d11e1fe3b73167a902e31:"文字格式","74cfa7e77be335e8e5489a00ef099cb9":"普通文字",d482086f653d92fa8f1011d39738dba3:"段落",ae27115431c46fa374ac28200304f341:"一级标题",de86106d6632da3fafb946f85ba91324:"二级标题","27f2c5c60f373a4380ec107ad8895f0e":"三级标题",c961174771e843ac4046b2b21c49424b:"四级标题",a791de104833c917f801c1976b9af960:"五级标题",de2687f9a16fea3654be84c74137b805:"六级标题","65862c97143c6c5479e0c623093a25d6":"用来展示文字或者段落，支持模板语法可用来关联动态数据。","38accbc34901ee6fd7bd7cd9f92f0a2a":"这是模板内容当前时间<%- new Date() %>","590e147e49735ebbfc51ae2175c36eb0":"请编辑内容","47ae015d04dda362d066e4f9ac09d647":"内联模式默认采用 <code>span</code> 标签包裹内容、非内联将默认采用 <code>div</code> 标签作为容器。","7fcf42edf5817042904f4a122ff77582":"视频","1d5bbe0ab0d90a223c162fb375997a98":"视频控件，可以用来播放各种视频文件，包括 flv 和 hls 格式。",f50bc38cf567e68250a8d15edfd8eb27:"视频地址","733dda7842619a437b2486f6f71b0c10":"可以写静态值，也可以用变量取比如：<code>\\${videoSrc}</code>",fb103fc64a0caeec24c707b9e7b50870:"视频封面图片地址","828f83110677bab8ef940f79f77b9049":"可以写静态值，也可以用变量取比如：<code>\\${videoPoster}</code>","351cb1f8ffbcc9d2d4c1f35505e15864":"静音",c7638cec349cb86eaeaeb983909fae0e:"直播流","82f5f7bf3fb529360947cbb3b988037f":"如果是直播流，请勾选，否则有可能不能正常播放。",df0134afa26415a560ae1320dee10c19:"视频比例","0d682d277649d8c7952d36f836619a44":"分开显示封面",ee1600dfbd6f9e86ca8761cf3fcf6a17:"视频速率","8e7124c3069460d4a8a04c3e3d9ce752":"视频帧信息","1fc7d723b3a82ce32bfbbfa0a1761969":"比如填写：<code>\\${videoFrames}</code>会在当前作用域中查找 videoFrames 变量，如果是对象，将生成视频截图列表，点击后可跳转到对应的帧。","1fa035e78c5408c9079c20637acdb2bb":"用于渲染 Web Component 组件","8df7c8a1f9f579f0ddc35bb4ee50f166":"包裹","5acec91385a3b9093e3c803f6b0d869a":"向导",c8c0339a6f9e105cfef45b76b788b635:"表单向导，可以将复杂的多个表单项拆分成多个步骤，一步一步指引用户完成填写。","155149d24d20197bc0836bededf63abf":"点击完成",d384a3c931bdf315e4760c9fc5980e6d:"最终提交时触发","335d6c56c43204f9efcefe36f097d35a":"提交的表单数据","5be9e21eb0797c9faa053eb0237c36f9":"步骤切换",d837ddaacb39a13806590da335e89397:"切换步骤时触发","02f706d7510e68c96aa073852d90ec20":"步骤索引","33c627bce8015c50152941a5b6fada32":"最终提交成功时触发","574f27f7223c86545a7724d18da96651":"最终提交失败时触发","8a427977d8135a019e4f1056120bfad2":"步骤提交成功",d65dcca33a0118a0a5ce343264192ea6:"单个步骤提交成功","5d7d91d9da162ee8fddd4d331d1434b5":"步骤提交失败","1c11d38e7ecf2facbf82f772d9222d45":"单个步骤提交失败","357954d848a9e2f12208673b3906a972":"单个步骤提交失败后返回的错误信息",d6c21651c32c63c8d61c85944c2c91af:"全部提交","75e3dc4be4ae7aca7e1cebc13f7e486a":"提交全部数据","0c3005b490ef428660ca2265a714bdbb":"分步提交","832efcc5c30746b84b910cde8630d491":"提交当前步骤数据",eeb6908870e058bc23d52c1e405a054e:"上一步",fc5dbc5789e158384f634eb8ff466b46:"返回上一步","38ce27d84639f3a6e07c00b3b4995c0e":"下一步","5fa57cab26a9d4e659c2e497018729ef":"定位步骤",fce22163929e8191b7de43699316f2a0:"切换到指定步骤",d529f7d5ed8956cd890173b4b5045a67:"切换到第","4a0ff5106d129883b446a29b1dac6f47":"步","78ada959bf5bdd6c70ee411c4cf23601":"目标步骤","098521c027a49fba5eb7f35430a6a9da":"步骤设置",c5538d5c74235d2988e51e632c4eed0b:"新增一步",dda36edbd4626e7fc868c14f9aa1556a:"其他设置","1fd41e410930ac58e748f7704c3a05f3":"如果接口返回了 <code>step</code> 变量，且数值是数字类型，比如 <code>3</code>，提交完后回跳到第 3 步","938b484df1447d8f01f96e45125eb031":"是否可被点开","20022725ac2c53869f7af6646ca4ba29":"用表达式来决定，当前步骤是否可被点开。额外可用变量：currentStep 表示当前步骤。",d4b8306441c00f01d4f044b3802c4266:"起始默认值","37c0c041a0ad487d23c9f42c29f6d5e1":"从第几步开始。可支持模版，但是只有在组件创建时渲染模版并设置当前步数，在之后组件被刷新时，当前step不会根据startStep改变","076bd7c0adfc4f5d2abde6b309d9f53b":"用来初始化向导数据，当接口中返回 <code>step</code> 字段时，可以控制默认跳转到第几步，注意数值一定得是数字类型。当返回 <code>submiting</code> 并且当前步骤中存在异步保存接口时，可以让 wizard 初始进入异步提交状态。",dbb19fea1965f7ef88cf1d1e0450c0f4:"用来保存表单数据, 最后一步点击完成触发，<code>如果最后一步中已经设置保存接口，则此处设置无效。</code>","0f04a65952b58cbbc5ca6cba868c3bec":"上一步按钮名称",e54827ae56fcb690d879b9cdd29f0ac7:"下一步按钮名称",abb7ba84b95c6c90341ac9c883fbc85b:"保存并下一步按钮名称",bed196af058f458def957031f88abd09:"保存并下一步","81b522590d543401ad15ae8a9155361d":"完成按钮名称","22c2aa6b59ab30c88fd84e8e5b3c4ad7":"上个步骤","7b91646d808737e7138ad8f32a3b6cde":"下个步骤","52b36576f88c31ed3971ca4d1fccd46f":"步骤","8164ad50987e0508caf7638c663f8b7b":"步骤{{@1}}",de5e232d10e2fa6218259289d4de4835:"类似于容器，唯一的区别在于会默认会有一层内边距。","3954d7a9c047b7522ef92ddd5fc35852":"内间距","315dcc9412a4499cf846736fdbaaa72a":"子节点","5db7ca044a5179bf05428b283ac0452c":"设置样式后，大小设置将无效。","7c57a563ab87bc6eb5edd8f5b953f499":"接口设置","6aa351f5dacd13d3d862d9c93e4a0241":"发送方式","8dc91bca9bc83efea73150e3478657fc":"发送条件","91ee84292a5bf5e59d3b6309f948f2f1":"用表达式来设置该请求的发送条件","55409342e28d37db86fb23efbd84a025":"发送体格式为",e06a14abe7ef66a8ead143db4ae9786e:"当发送内容中存在文件时会自动使用 form-data 格式。","773a0e8384fd6f784088b829d7cc2f68":"是否设置缓存",c1b110f13431df9662299f26def71df1:"设置该请求缓存有效时间，单位 ms",a18ea11244325dd3d20c5988bc7f6e39:"文件下载","68caa6082eda1745aa3f6b6d12efe423":"当接口为二进制文件下载时请勾选，否则会文件乱码。","91831507074270c0da8a31ad9ff87495":"数据替换","42be3061671b38468cc6ac84f6a0dd77":"默认数据为追加方式，开启后完全替换当前数据","81fe75a5216d4f612f1809c122f5145a":"定时刷新间隔，单位 ms","83f16354dd1532422dc8b3581d096e7b":"定时刷新停止","620f826a77f079c5683a9d3c59461ea1":"定时刷新一旦设置会一直刷新，除非给出表达式，条件满足后则停止刷新","90260d55567cfd97ec2f085963a60bcf":"HTTP配置","9ae7a582479116d4cb41e828fbd59798":"发送数据映射","0fcbf036057c6dd88b7b809daa0c5eb7":"当没开启数据映射时，发送 API 的时候会发送尽可能多的数据，如果你想自己控制发送的数据，或者需要额外的数据处理，请开启此选项","7dd590a9d9e783e980d318bd52891905":"返回结果映射","7e295b6ff39ec7356e06c4534bfc4fb3":"如果需要对返回结果做额外的数据处理，请开启此选项","417125a06b1d2bfff025e83a4e067bf0":"发送适配器","62efcb25e5b21da47c09780119da3458":"函数签名：(api) => api， 数据在 api.data 中，修改后返回 api 对象。","6eb8944029108ad3b6bb3572a648fafa":"接收适配器",e83cbec70e17988749c4a02a3b73f55c:"函数签名: (payload, response, api) => payload",be47bd270e7756d4233e59bbe4cd5b96:"请求头",f80cc88446cc10da4838556666f6b9f1:"可以配置<code>headers</code>对象，添加自定义请求头","9d191f6126f21da8222755c14f49707b":"设置 ajax 默认提示信息，当 ajax 没有返回 msg 信息时有用，如果 ajax 返回携带了 msg 值，则还是以 ajax 返回为主",c5e1f01e3d98b4db536765ae0d5b91a9:"点击选择","4e7c006f535b13b9737ac310bc34193a":"初始加载","3c743b8b2d662421117a2fb1c445425d":"当配置初始化接口后，组件初始就会拉取接口数据，可以通过以下配置修改","713ec76479b992652ed39364d3d03870":"如：this.id 表示有 id 值时初始加载",e5e3131aaf96b6dd10574bc9beeaf934:"定时刷新","9e8c8bc795ad25fc992cee9d81a8c46d":"可以配置headers对象，添加自定义请求头",be604f8b7ec5e80288b091ee12bbab7f:"点","9adcfe38533f68035b2bf7831d310381":"缎带",cbc608353218e1d63e6f47c9db1eae64:"文本内容","2613e43b46ca52dabc232054c1611c80":"角标主题",d8c7e04c8e2be23dd3b81a31db6e04f1:"信息",e4f10a8916d4c5375529e21d9b66e5f9:"角标位置",ebc556841a9264ebaab728efad7af777:"偏移量","81cdf47e8d8adfc70faac2cbc55e4067":"角标位置相对”水平“、”垂直“的偏移量","7ba3812c61e01b3049404a46fac8deda":"自定义角标尺寸","29e13ada94b145a1359291d5e1564655":"封顶数字","42becf09dfd209746b66726e7d21d014":"尽在文本内容为数字下生效",b599979e9a40823363451aeaadc0723f:"动画",b8c467fce096a649583c0bc9d9281a5c:"角标","005c50d1af6e833d6991ab882653b7ae":"加载可用字段失败，请联系管理员！","76f47297fe988267a26073a9aaf7911f":"暂无可绑定字段","020586d0c69f8211840ddf9ee9bbf6ab":"绑定字段","91be693dd1ccea38f8f514318fd8a944":"输入名称搜索","8517171ce4ad0e9a5b511bd6bb26f839":"暂无可用字段",f7d2996639d97b4a03fc0e40e2eb853a:"快捷键","71dc8feb597052ecd0e73c9062eecdeb":"未配置",e8755fb1e985a5d26df0fce1f0b7b0f8:"添加选项","51d8a85a3c59453eed398eb8f5d35585":"请选择默认值",cb73fbd12620c6ff4d7e5d1047c3be4d:"请输入静态默认值","303efd5ba79e639001b4328cd266dddc":"点击配置表达式","7d92f998d24da41b58db140b1864f773":"当前表达式异常（存在循环引用）",b5cc1cd60cd694f45142dc52a5bf53fc:"数值类型不匹配",b51796f5778fdc31bac73769a85f89c7:"未找到对应组件",eee03351367bb1907dcc3140ffa3e3b8:"去编辑","01820262aa9ad5b130f8f5b86bfd2968":"自定义选项",f99603414a616bdee85de0e6e3938b65:"外部接口",e6ff6a97bf600c02942db3126a7077b8:"API中心",b4fdf79b8f54856b072ec3874b830d1f:"请输入显示文本",f4ab507e2fa2d2bd66bcdeafd9fef797:"默认与文本一致",aafda9e8f6b7b613680677c513edb7a6:"取消选中","0560b060c438e9326f92718ccbc3f95b":"默认选中此项","5d26b8a41e805204c9dcd5ea7e23b150":"请输入文本/值","22de6ef85ed60ec54dbdc1d8583e5104":"批量添加","421252e16c6cb544fe9ce0be94a190e0":"批量添加选项","1e2f96a69fbef8caa8823a3067ebbdc7":"请输入选项内容",a4f1ddbbfc96930d24e4b54cb815b62b:"无选项","5b4ffa2eadaf629b833b37a3e8742b2c":"不分块","3569877e498155b59ef5299870c43f80":"平均分","15e1fdd9d5cc4dc595fba0eee0719cba":"按步长分","56d37871117270ce5d157a8de90dacd6":"与分块保持一致","6903085e7f31286560e4a2e160beac42":"分块","7145575ab9e3b4529eea61fe5fe76d0e":"块数","1c8737ec7da60e12207c9eb04ccabcd4":"新增分块",dc4c91dfaa3b760147bd92e648560af4:"下标","662d8b49913650f543c024d4d02009a2":"新增下标","69fbb2e5fc9eb3ba06096cbedbf5a622":"条件","8baf21fa26d6d24b4faa872953275d8d":"静态","8494b2036d3ccfe6102e930d9d8a3397":"请输入{{@1}}条件","311f6d1fa5f13b0e280d7b3c9d40c5be":"展开更多","38aa9dc2a0f14555322061d2ff997349":"更多配置","37087e5bb2d0367872a461f535580d91":"请输入时间","96641a78cfd9f9f8ba68f0524347b186":"请输入标题",a11cc7a65b27f3993d58438d275f3447:"请输入内容","34df758502e02c7c1a58f804a6c96c28":"折叠前文案","1d20d90b7c7301b7739900242d38544e":"无配置情况，默认显示标题","8aea4138b4fac2627c9b72da37e0671f":"折叠后文案",d584018521820dac9e92120737b733ba:"节点配置",c8158b3cad598b0b5939788ca4efb298:"接口获取","72a3c1690dead6e24f7ac1abc90d5063":"请输入显示时间","79d3abe929f67f0644a78bf32adb3a89":"复制",f86418b525af4b573aed36b8e3f9aeb8:"添加表格列",ec159d98c6c25fadd38bcd9362f6a28e:"设置表格列选项",f302b37cf6530d3fb39234a220d95437:"需设置表格列后，才能设置表格行","6090f7af1ae15892abe97409b9e557b1":"添加表格行",e6a10b831ae920bba1bb89a725e0fbe8:"设置表格行选项","355c54009e364bf4396be424fba10e0f":"至少保留一个节点","9046ad86a1a47f16e954f2ec38fb680a":"层级过深，建议使用【接口获取】管理选项",f69608e93e9728f4fbef583bfa1326c1:"选项名称","684a0d1aeca4e9acff89221b57826d4d":"选项值",bbcbe681f9225f8adf3663f563a9f294:"添加子选项",c08dbaf90614532aed9f526e58b7fef2:"选项管理","442781667396d6eff51113f482d89e54":"添加校验规则",d7a169e81b60ee08c82b5d9de473e362:"错误提示","9d9cf35ff82a6d960538ecd650e09945":"系统默认提示：{{@1}}","5ef6ce89f52b4331b080a0f3019414f3":"默认使用系统定义提示",db1cac8e2f6206e8f179b1ff47a676df:"未匹配到数据",e9908cdf79e965f6907ce9f291cdfcf8:"动作配置",be5fbbe34ce9979bfb6576d9eddc5612:"保存",d1d9049139d870edd490215530d90458:"执行动作","9eac7e07ca0a3181766e5ecc70d20727":"请搜索执行动作","0174bdde9517fa331bf7d716a553e023":"动作说明","0aeca07a02601a8e701a46d1a8b5ce43":"基础设置",da1ed600ce65be863766444e60c2da05:"执行条件","13b2de1073f76444c49d2c6a21e46e26":"默认执行该动作",d80bc0fcbfb250480320b683e48b1467:"选择组件","07682f1424e400c467accdb556d59e1c":"无配置内容","2e3ca80a58643bc28e87cc3b17bc9d80":"请选择执行动作","7030ff64701a938becbc5aa67ddb86e8":"错误",dec2eb7145e149f281cb7e75fbe8972a:"跳转链接",ae10a948eca808b3dd77506b24f3fd0e:"跳转至指定链接的页面",c7a34a3465d1beea2f85d53edcff8235:"跳转至","0b72392143e4038e98128cb0f6f679b3":"页面参数",c068b579db3bf0a553bd0af4f81cc14f:"参数名",bfed4943c5f487de1b63a82f7230cce2:"参数值","56aa76ab3c987377e855ae2c6c612050":"新窗口打开",fd5fb471ecce1eea63a6a95b6707f815:"打开页面","67e21dd387607ae3fb59846504fa2c4c":"打开指定页面",d7098f5050f017673319c5db1473ada7:"打开","39e107b7c4aa580f913ccbebc00f7534":"刷新页面","261242fe62b18b620419802c7dd7da7f":"触发浏览器刷新页面",ca180138a862543561d3a2c4f08b2e1b:"回退页面","5f6b9e7a050ae3f34b38191435e14b24":"浏览器回退","27e0ca877865238aad6940481b2984d4":"返回上一页",f80d12dcd65429fd28841e768062d3c2:"弹框消息","0561589c26e732981f29709a9b574234":"打开弹窗","256dbc5161ae393ec8a0e83ae6cf9469":"打开弹框，弹窗内支持复杂的交互设计","6cff4b6d794cc17f5d24dbe0d21e5732":"弹窗","507c1d40c5d6b990cf8c832b0a91cadb":"弹框内容",a532be3ad5f3fda70d228b8542e81835:"去配置",b67cbb1ca7439053f06d59aac5e410dc:"抽屉内容","3b02248ca3790e356e47b6900c0e3931":"关闭弹窗",f33c2c6ff58bcec40d3e74e591bb3df2:"关闭当前弹窗",e495f416b83e4c7ff3c66ec3be96a76f:"消息提醒","61d7aaa88181c527cfb936d4c686d267":"弹出消息提醒","4e5242a645864528e10f04dc2326a5c4":"消息：","6d00710a2528332bfcac14b58e412042":"消息类型",b87b77561e776367e6756e11ea652217:"消息内容","43ab9af06e1e0f0b2a8767b46cf8b1cf":"标题内容",f41a94bb85c5223181c4cdf83ea9021b:"持续时间(ms)",a0a837f2873de80bc9ec353c30e73171:"显示位置",f3296f64a8a1330d7a07f1d269a1db92:"左上",b97a5adf068bee6c852db9dcea3a9799:"中上",eafeba264b6338939f11f1b1adf40d2b:"右上",d429ffb093e9aa3bf80da125f1be318c:"左下",c241aa8f427118a719b94cbd8f2bb22d:"中下","9cd707caffdfb314d939298f2f2c267c":"右下","3f3a016027e540ef10a16dbd49fffde9":"展示图标","0cd902f953656adb29985b68e6fc9754":"配置并发送API请求","1535fcfa4cb8e4d467127154977e9788":"发送",c14a21300b61bb83b4420a1586497951:"请求：","88bdaf32c27ab169d3d686b86b3fae99":"配置请求",c5dec2a8d2308c1c15ec2e5441fd721c:"静默模式","4abbdba4b6b06ce00702a255bd89c92c":"勾选后，服务请求将以静默模式发送，即不会弹出成功或报错提示。",e3b49b5bbbdea05598525e91dbdfa638:"存储结果","4dca05af026848011eedee1b53efa61c":"请输入存储请求结果的变量名称","4da82260041107e5780bcbb3a14ef791":"如需执行多次发送请求，可以修改此变量名用于区分不同请求返回的结果","3f9e257178738d5d180ddc2996809c10":"状态标识","99c74120cc62f4bf31d661e3212b7121":"提示信息","89049706952412d790b801def284629e":"触发下载文件",bb79667f37035e9562ec6bcffd6cf8ef:"组件",c852fb60f1b8ce921c3def1eba000bc5:"组件可见性","1bd4cfded5e11a7a8ea4dcfd2fa17e15":"控制所选的组件的显示/隐藏",edf25860e3d457eb8ca9cb5dca06dfd7:"显示/隐藏","12c8d50c55eeec7059ddd5c303e34f77":"组件可用性","5e75800641ec5c1198092bcf9d34f180":"控制所选的组件的启用/禁用","7854b52a889b3ef0590d9f542efeb4c8":"启用",d86d5919f595226b7a1e8264635ca23d:"启用/禁用",c5a9b6e8c522de8a14ad7fab51c1a1e3:"重新请求数据",be4b778e7f5aa6aa5a811d7db4e1a8b3:"如果开启发送数据，会先发送配置数据到目标组件，然后重新请求数据。","694fc5efa9e1d1c2c5eb6525e1c7fb29":"刷新",ea4d3723b350b2cb8f4c1a615e1b7df1:"设置组件数据",cb7add16ba6f0cd65d5ddcad71359813:"设置数据容器或表单项的数据",b91ebe714155c83b6d3bc02b675a31e9:"的数据","08ce6e74bb4a64753f1af2e5c836debb":"赋值方式","139294edcce271bf483dda437c421c29":"指定序号",a7b0b80a7bea1e5e973967c179866ef0:"输入序号",e887792fbbd65d21e43e832a5cd63aac:"请输入待更新序号",e3a6f648390842e0c7aa82d0f2c3f6e3:"字段赋值",a25657422b40023f2731619587940bc7:"变量名",a33903526e8fb3d1ac3066da70e7941e:"字段值","82986a4cab1d0efdbc23b3ac5f0fd509":"清空表单数据",f457845da8c119a8688e333a3554284f:"重置表单数据",a84a1311bea7370f1749341ffa6f75e1:"校验表单数据",b7579706a363e5f23b1040fecfbcb677:"校验","51325230409d4b7c64aaeb3db9904801":"组件特性动作","98d130cb9a360df782f6510abacbc022":"触发所选组件的特性动作","557d01c07aa7c4450a414932e6c1ed2a":"复制文本内容至粘贴板","5aa4369ec61715ddef3641992fad0d4d":"复制内容：",c7f16d729f3bca8f6936416884a74fb8:"自定义JS","1b5a6299ef404c1f7b4292c290b80f55":"通过JavaScript自定义动作逻辑","9bef5e571702130c5710af4ee2c27455":`/* 自定义JS使用说明：
  * 1.动作执行函数doAction，可以执行所有类型的动作
  * 2.通过上下文对象context可以获取当前组件实例，例如context.props可以获取该组件相关属性
  * 3.事件对象event，在doAction之后执行event.stopPropagation();可以阻止后续动作执行
*/
const myMsg = '我是自定义JS';
doAction({
  actionType: 'toast',
  args: {
    msg: myMsg
  }
});
`,"9a2ee7044ff04234a8892a13583d14b6":"变量值","186c8d63db1c09c38bcfd048fb15846e":"滚动至上一张",d9b6b8e29d63ac6bb7a0381e994ebcb5:"返回前一步","47b9cbf9f3a3f08264b19f4a1228e865":"滚动至下一张","211ae8c8666f8b803282a74f90fb0dc6":"打开提示对话框","56eafb82d11c72b65efe07b9bedb5c19":"打开确认对话框",e777eb796f8a02e97a891fde43d10ce4:"{{@1}}变量",cc6aeb073ebc3cb29734a49164f8964c:"页面变量","979a50681e278dcc0be18f68459e8217":"系统变量","8deee3cdecdf06a05d22fcacc7031492":"组件动作","9654916723a8d1d82f5ab9d2911edf93":"温馨提示：添加下方事件动作后，下方事件动作将先于旧版动作执行，建议统一迁移至事件动作机制，帮助您实现更灵活的交互设计","88f7a3aef4888dd507482aedc02bb808":"配置动作(旧版)",c500cfabdec9b2761fe9f1aa543933eb:"动作",fa476b76ccbd4ac9316f0fd80257b77a:"重置并提交",c0a8088f2bbc993500c5a01b0f0a1887:"数据来源变量","71448f8c10c79b32312b7e3abe9104ef":"（{{@1}}结果）",f4381cd48d8cb4307bc140613ea57d48:"{{@1}}结果","0b446df580ad309e7c26e5242eddafac":"事件变量","1fab2b4934161e87a1f0133b9d5bc1b5":"添加事件","4db5110d41293fef57f5a1f364187896":"快去添加事件，让你的产品动起来吧","5baa9ac58c00a7fb818d4a113d3f8cff":"未配置图片上传地址","7241f67ee4fa8e0adb5d602b5f9516df":"开始颜色","9f1b854df133912bb46203e84f0594ee":"起始色","8ea65e3d4e52c871d1c58b1926380ab0":"结束颜色","0c46a7f77a7247a9cc6d6e995c0ea8cb":"结束色",c7706039e8ad85969df13ce3458d199a:"渐变角度",f4882cbf65b232af449d7289354b9a16:"* 角度范围0-360度，0度表示从下至上渐变","5b9ea77bb6ce2d6c82e97b120d757201":"点击或拖拽图片上传","61a87a021904dc65995e99d4c476cb21":"图片位置","737391648d1216a1f84ac9ff52da5aa2":"图片尺寸","0f1fd39145bad43e18f81337e0144c8c":"充满",e0d76824dfe5e09c7068b44f605266d2:"合适",e39d3b7a3600d9327221a637f910fc0b:"拉伸",e1ff2c83c09f2dc6cc74ae02ab6b8222:"平铺","7ddd9dbf373f760acfd63778469b5c4b":"横向平铺","4ab931e0f709f9b493e660156925a113":"纵向平铺","21f3929a4484e6e992af64ec1dd3a576":"原始尺寸",a80a25b59908402cf7ee31a07d0e7739:"左边框",e0dfa25ebceabddb2180720d36d4c3b6:"上边框","57463587977a534f7859eb9d7c536629":"右边框","154d5216e42c916884431f0eea951999":"下边框",a8b0c20416853bda54120bf19477ad11:"全部",df68a5dc8f8847179b7afdf943f80796:"左上角",e717b4ae480e7c073fd5a44647a7f0da:"右上角","2a97dfb2d236c87c41fd588f006111dc":"左下角","1c9bc9dab33944e953412f8b22cb024a":"右下角","4dbe7c40ee82a56bb7a8152d4bbc07f9":"圆角尺寸",bb1531cc9643230ba0cbd7465818b52f:"边框线型",cc4c575642609fbf059a5df81eb86bfc:"实线",b1e0ebac23ed95807ecc566da3ffab48:"点线","61f6f4fc0b806ac9d41ad0792e6155f6":"虚线",bade10099f8447210ce7b97fa106b527:"线宽","5babfafd769570de3bba47605753361a":"边框宽度",af208c560d926f0daf4b2ce2d396505d:"X轴偏移量",b6b46126bfb0851ca10e74541c5d7be1:"Y轴偏移量","4a32b29da68a6ee204b3743e0fab8bb3":"模糊半径","22d460dcddb7fda718bc62034c459158":"扩散半径",b24a723b73f96ab3340fe9502370ee13:"内阴影","1cbac849ccc41edb12271d9fe9b65b5f":"阴影颜色",e94d6fc08a97892ff9d8c8d9a8d9e0ab:"设置阴影颜色",a5d833839a610994dc4752e2d91f4192:"显示类型","2c86d897c71cc9c2e648222a200d5bbb":"区块","0b0052c532b457b2d032c9f56af9e4e5":"行内区块","70d457cd36de1acefe7d9587f3f862c9":"行内元素",b5f55e5c7101d9be5218d63850e1ad8b:"弹性布局",a648bd0b9eb3c86e39cabeac484917a5:"弹性布局配置","452dba7c65211630f8066b070fdf157f":"自动换行","098d946b6f0cc85110c54cfac8691cc3":"主轴方向",aee1aeb8d65547f8a368bd7364cacf12:"默认水平","4c38eb0fea71a9506fd434a7ac5cb1c2":"默认垂直",ae07817b441091793c8af39256908373:"水平反向","618515fd68ecfc4a5b58462f0cb9666b":"垂直反向","58554717be87c1f8a6d6c769f74f0679":"主轴对齐方式",dfc71567fb75f5c73da377013a223168:"首尾留空",eb5ec10ef70689996dd5cd66e17a64aa:"首尾对齐",ba3a7db7cc1ac5a908358f62fdbb21de:"元素等间距",f6cbf29fdb5e94052a22986533c7267f:"交叉轴对齐方式","6b461e0a4ffef9438fb8f01369091cac":"字体类型","2539fe0e6d40a023dd95d0bd71d10bc9":"请选择字体","690660d9dbd7312ad2825e554736e2f8":"字体颜色","5f15efdc32badce0902c46a7a0105c51":"字体大小","4c5fead0489fbc7651c91400dec5d379":"文字样式","4ae7f423d9ed9ffa48c3e404f96bb51f":"文字排版","65786fea9d354015d3a2724086f7f3d6":"默认字体","226c06861b0605a3276311b1369204f2":"接口返回示例","1f318234cab713b51b5172d91770bc11":"高级配置",a0472043a9598b1b19f1adcec1e1d75d:"接口配置中存在错误，请仔细检查","2816c3584802b2fc75db5bc3c6aa81e8":"设置该请求缓存的有效时间","6e889f0cc8c1d8f705edfd5d0bbdaaa0":"当接口为二进制文件下载时请勾选，并设置 Content-Disposition","508a38f518821a0f6bb2d15269b31ece":"默认数据都是追加方式，开启这个后是完全替换","5c131eb3bc61f6b0a26e20449ad7ce56":"自定义适配器",f514cabe63553a850063834c9d44a5ee:"可以通过接口获取动态选项，一次拉取全部。","47d0a7caaa2baee8d38612a1c57421ef":"是否初始加载","866a60d7fbdfeba6ae42c7e9c7b03059":"当配置初始化接口后，组件初始就会拉取接口数据，可以通过以下配置修改。","3f4f3acd6968f38361dddc6612a0c54f":"后端代理","8df0f3891f8a80a392816f6ca662a33d":"刷新间隔","21157cbff85802e353409f647f1f1f91":"毫秒","66670400b1f3e4b6c94cff171d441585":"表单项内联","21a1d138166d5d92276d126cf1d6ecac":"控件宽度",ffaa96ef7232cb6d8ee4d7e673dbf4ac:"占满","4e9ce9dfe13d97031d228fc5ae229f0d":"隐藏标题",e2773277c7765d4590f7128423c58cee:"隐藏后，水平布局时标题宽度为0",cc572c07586f4ea0c5b9b1060eb777f2:"空内容提示占位","8528426e54902956723f322bdbbcfafc":"输入框提示",dc5dbe7a1b1ff5cae22ffbb636bc6380:"当输入框获得焦点的时候显示，用来提示用户输入内容。",ff255db9b108589abd5c649e2a02e3f1:"控件提示","9e783b34207fe24bc488136faba65442":"在输入控件旁展示提示，注意控件宽度需设置，否则提示触发图标将自动换行",b3e55578af5dd473bab62641bb2f5f8e:"输入类型","16084784a0f126b501e96994c792d411":"日期类型","8190915888889ed18be44ea0351d0448":"月份","8f30e9f8678c24496921bebae6ca2ac6":"年份",dc46b7f19799047a26fee668d49be0f3:"选项渲染模板，支持JSX，变量使用\\${xx}",b18ec08df2e47313bcc93430e7a25fd3:"支持 JS 表达式，如：`this.xxx == 1`",b7dee01f2d085d90c47bcb8b490d9055:"点击选择图标","689fad203a167d542c12bdc46f27e921":"名字","6c1e18fd4cb57288a9f43603d5167292":"需要联动时才需要，其他组件可以通过这个名字跟当前组件联动",ae344073ea6ca9ce742899cdf6d3e106:"请输入字母或者数字","1a1ff1e1149a0cd1b39c0b231a334d04":"可以指定操作完成后刷新目标组件，请填写目标组件的 <code>name</code> 属性，多个组件请用<code>,</code>隔开，如果目标组件为表单项，请先填写表单的名字，再用<code>.</code>连接表单项的名字如：<code>xxForm.xxControl</code>。另外如果刷新目标对象设置为 <code>window</code>，则会刷新整个页面。","4fe2f10c6d5bedac03f40a4362e4f69b":"请输入组件name","3bce1a6217990c8dc087d254f1fe754a":"自动填充",f01553e415ca33cc89d0bca84023f4b5:"将当前已选中的选项的某个字段的值，自动填充到表单中某个表单项中，支持数据映射","89bc2a21c778b36d09c8d795aac8260e":"数据录入","666352a09304cba42de24312f509c3b4":"自动填充或参照录入","04d815a5d4b803d6bb956d2da5a82688":"是否必填",a1b6281dc554ac84a3e6062f812fe50d:"表单项控件下方浅色文字描述","85541bd9f7f39a6e6d9d26cbe09cbdd4":"只读","4d681c4aa93c8d005ec2ca2370618d6e":"可见","5d0595edc3d14aec24efef85534e4314":"默认值设置","495333d64fc1efafd6c40bc9a3929fee":"不设置时根据 name 获取","32f13c9db34f638c2c5cf2bf19326ebf":"键盘事件","2882b15b04cb47d1497160b5061b9186":"默认是不启用","530c4483c7e52dc409509b755eabee11":"千分符","090dbd614a66a56a5eadec87f59ea15c":"图片路径","2a0c4740f156a9536049f4610da25400":"文件","4fa2ae7d726dc395cfea70ff3d7256d2":"Markdown 内容","52f43ce846b2bf73f86195cf196fe578":"计数器",b9245d69d2d82b0081ced47a18c27f41:"全边框","8f9b1b7e38cd2ed16f22807417ab3573":"半边框","7fc7940b4f7f58b49c71bf9e237b633e":"无边框","6fdccea6068e0698c565acd92052a86e":"必须选到末级",a80c61384a8459ef7bfb5082a2b54b5f:"必须选择到末级，不能选择中间层级","71758057056e7f31d73e3f3ac8860b4f":"隐藏时删除字段",ce641d8297471a5d65c46cdfb023097c:"当前表单项隐藏时，表单提交数据中会删除该表单项的值","3e719b87b9ee71d4613caefbf2fd1074":"UTC转换",d52e57147787797ae0153d43bf8be298:"开启后，提交数据和展示数据将进行UTC转换；存在跨地域用户的应用建议开启","339b9ebd91070de050b4bfe483aa4474":"内嵌模式","49a79f4047b81186c069ed1c9c151c66":"淡色","41e8e8b9935c9ee4e88b06643a2d5b81":"深色",bde770827b9137ddb3eb676878af9709:"次要",b1ea078db7298ea7872d894283378507:"上传方式","74cef1162781310e1503d2dc463a76fc":"对象存储","38fbc7fb70b4399d7e4050d3cbcdf229":"存储仓库",e5d59ccec2caa64ca83b7cc740645928:"平台默认",b6789c926cf3d23d13a6a3220bcb8e23:"初始静态数据",a4895ee2e87d1c47b734dbcf1a535aeb:"选择页面","150075376834f1879d6ceb7c2d10ec67":"比例","34598b2c71a8affb13da84ba39e905d5":"12 等份，标题宽度占比 n/12","73ec114993142f627ab6c3e6706fa3c3":"标题宽度",ae6fa9e75d38b9db24f78496b72bcc75:"固宽","424f04d454332ddaff4daa0a365e9335":"子表单展示模式",b17754a193ac835bcae0bf960f3a3772:"子表单水平占比设置","2e282fb6405a60830112991f88e95753":"左侧宽度",c41b3271487a3cc63e79feeb11b11de0:"比率","0fcf69b5d0b44955fcbec9702f90b556":"小宽度",b591aed69defa2abf0486da6a58dfb5e:"固定宽度","0fa590019ace86acee8d7655e5fb11b7":"大宽度","51c1e80408011ba118cdcc696f28283d":"左右分布调整(n/12)",aa0ff71cb10c3e54d68874dc2b17acaf:"一共 12 等份，这里可以设置左侧宽度占比 n/12。","1f08c91da33fc5f0616e8a85c0456a18":"静态数据暂不支持多级，请切换到代码模式，或者采用 source 接口获取。",cf763c357566be6fdaee886a40ddcca7:"选项文案","1ca0b9b486be3b766a92474189f11fc8":"拼接符",ab8e2e8cd076bd115cdd600d17ca5020:"将多个值拼接成一个字符串的连接符号","6df0630b4f00b6bd05de8af09c2f78ad":"仅提取值",d7d810ec89408c206a220f62edde737f:"开启后将选中项的 value 封装为数组，关闭后则将整个选项数据封装为数组。","4cff56e2b9703018efc48218b83844b1":"可创建","457c4cf8e1e2e0daef8949085555563f":"配置事件动作可插入或拦截默认交互",d03c96a2da4905c5f13a87c0d8ddbdb4:"新增接口","26bb8418786593149c0bf9f8970ab6de":"新建",a32b3bf74850faad3a9ae6a0a5dac781:"可编辑",ea56ca3dac0d39e463a8233fd40a9eb6:"编辑接口","3c87af7c432e6b1f59e4f415fd5060cf":"可删除","793e260d5b7c67d43b5c6d5e885d2363":"删除接口","63bbd68594c9a987d0ff41d645fafa16":"是否默认选择第一个","0dd2e4469872c176ab1e85b66d99da98":"隐藏路径",b7e26fcff328b28b393ef2e57e96e258:"隐藏选中节点的祖先节点文本信息",c49fc970bcd168e1c652a8ced5d95d0d:"其他项",a45b5d3fcdb8210d249b2c6d545b6691:"光标类型","2c3888961c01fc9c466d88c88029158f":"无指针","062d0b688adb10f3af5ebc2fd2667f1c":"悬浮","92e3a830ae9a1252278da742c0af74c3":"帮助","87e277f953fd3c867d7fa02897c2c124":"交叉指针",c19639326396d2527268484379a671d8:"可移动","183f48b3c1f0f84e538cd4315e5645e9":"可抓取","4f9b192ce84b4df0900510257082ef43":"放大",b21ac25366449b1720bdd75d39f163d2:"缩小","93ab99d761c9ca97dc926e6db10469a3":"文字大小","86cdd659decaa1b959795eff92a0c2d6":"文字粗细",e8ed49e9fde0bb778e2185876c2d2697:"边距","4e7f76261f8c4c6d78998f85fc1f4c6e":"外边距","841d77223f0ec8cd0b530ed8e0775b20":"内边距",b5bd9a6703f5433ff34aa0af9049740c:"圆角宽度","14eb3a698316caf3fbe9b2ab9c3d9527":"特效",cff1ec632eaf35f64791615e15ce6d76:"邮箱格式",fab6f9029822dea7838bf9908d7f5c09:"Url格式","1111c44adfa40fe9cb22797d2c1e37e8":"字母","725bf3485a0456cf7f65a507ce67254b":"字母和数字","96c4ea83892a3227a2aa5b8f3759bca4":"整型数字","35962d17a3fba5f4802d7845695a3e72":"浮点型数字","28e8e048490110c8dd8e2ad6af324980":"固定长度","8c4ee6022f1525097a1141acad094d4e":"最大长度","17971609e210034c0d6a25b0186e2b7b":"最小长度","92448a35f41de3a1fa69135acfed5ce9":"手机号码","193a8c42c1c373f385a4c7b33ffc381e":"电话号码","6102d474314f27577d89e85b4c6cc4a5":"邮编号码","84e0cb5d57ed995b0cc04b4ab9a7997b":"身份证号码","8dbec4f0c05be45a8acf6a5ae9d1f880":"JSON格式",eb242bc7524c797fb1aee2344dec92da:"与指定值相同",c17d9577233793976d3902c117eed82b:"与指定字段值相同",b457177c184722b655954a08cf3f71ca:"自定义正则",d3927ffde0fdefc47f910e70226d6a4e:"自定义正则2","0ebee58f4f2a0f807f08a6427dc58497":"自定义正则3","15f52cddb226421e68c70488fff3db5b":"自定义正则4","271b01959e09c0771760f59964baed56":"自定义正则5","4eddee6a20aceddd6bcdf7e0736887ee":"验证规则",ba3c802f3ce1641eb6f8986e8d19e672:"新增规则","7be30fe376e9bfd8895ee50e6f4216f3":"设置长度",d00f99fd76e86ba4dab6f70858010ca0:"设置最大值",e993ecfbb3f934481257f1bb57056bfe:"设置最小值","99f5d503544334c670cbe1f400aea9e1":"设置最大长度值","91bdac623455c91b7400328a5600cec0":"设置最小长度值","7002c4a1b7cb5bc32ffd52e1f2d74c70":"设置值",aa9cfa5321e589494841ddd90a10c467:"设置字段名",d22b6fb1c857777ba21467835efc65d6:"设置正则规则","1b7e06ef04d7167e174eb6929421592f":"Email 格式不正确","2d163645de4d4b4760e9fbdb535a1a88":"这是必填项","87c91ce706ab845b55ce95372265b92e":"Url 格式不正确","2b702fb5b95d47944246f79ae4032281":"请输入整形数字","48e2aca8e6347b008b6fbdb48fc4b597":"请输入字母",de66a286057d4e3f1ee2d9bccbd48ce5:"请输入数字","84f46c9b82c3c8fe276dfa65173c59bb":"请输入浮点型数值",fb73d98245f558dbb2d6a0c8d2699780:"只能输入字母、数字、`-` 和 `_`.","923a91fdc2c777f8443c85278060195a":"格式不正确, 请输入符合规则为 `$1` 的内容。",d87b1a3d180a1cc56bbd174d2860ca4c:"请输入更多的内容，至少输入 $1 个字符。","9b8d6abb2f03fbcbdb0e4d2b1970a751":"请控制内容长度, 请不要输入 $1 个字符以上","2a5d0be4d5cd088f0371ba6f8656fe7a":"当前输入值超出最大值 $1，请检查","8256618e16217325e6a1d880f8eb7adb":"当前输入值低于最小值 $1，请检查",f58829312013d929923b0c2a1fbacf19:"请检查 Json 格式。","161278fb2c71e5a8aa8aac50f230233d":"请输入合法的手机号码",ba42949accfe87c20e6c2486cd065dd2:"请输入合法的电话号码","1d2c5048143328e21cb9c2dd84b696fb":"请输入合法的邮编地址","038b3ed111e87b56572f3945a1b0e02c":"请输入合法的身份证号","335e2618dda48c05f4f833ebb1e299df":"请输入长度为 $1 的内容",bce45e909d6d14a126554c8cf6f65a13:"请不要全输入空白字符","17bb8e76f78bd16a1841e36ab8462e53":"输入的数据与 $1 值不一致",ab534c35774dccc322331a079ae6e7df:"输入的数据与 $1 不一致",ebd0dc3ebde6182caa3b66e0faf658b6:"自定义验证提示",d7772d568894afbb1c924bed7f7ddb32:"自带提示不满足时，可以自定义。","58c9592f818d706420236c6f9f595517":"新增提示","171f7b825707ddd79175fed3f8def6cd":"修改即提交","6ccb7091c39a5229f7e77eff4dd44a0e":"设置后，表单中每次有修改都会触发提交","1a006028adf7167ae28cdf532bb75ef4":"校验触发","8d877748c3bc71b517e2d46344916b3f":"提交后每次修改即触发","2c60032f2a57717e4f7c16ee185795d6":"修改即触发","5ed62f810226722d7c910c2d8dc4a0e8":"提交触发",ed3dd0bfa89500c5feb306cd4d9db56c:"正则","537b39a8b56fdc27a5fdd70aa032d3bc":"必填",ab90c616dd114af087b31b90d3cb4063:"字符数","41e82a5a0e53ba94d1160ee855c72a7a":"请输入字符个数",a85ce2404b26140080c929ad9c3ec305:"请输入更多的内容，至少输入 $1 个字符",e93275245d529c486018e47136bfae2e:"请检查 Json 格式","2c8c25bb51dfd9ddfc74fd75a8a380a1":"值内容","859102d8ced9928cc71bb225961171bf":"请输入Js正则","544fac400db790f57ea8ee4207cbeb6b":"标准","7a377ac3904628fd73e7d33ce6130ae1":"表单校验最少选中的节点数","674ddb63a7cd9e14a49813d52cf7e25e":"表单校验最多选中的节点数","54d621d5bd588bea4e896de52147a229":"选中的行数据",ae76ff4dcb615d3b0232dcd10115e149:"初始化静态数据","152b66069787294e53cfc176a189c81f":"图标对应的字段","10cfe8897db8c032986138ba7b2f48da":"数据域赋值",a6e2cf5b7fa625f571a3e6d0df3a7327:"数据域成员赋值","3371427f1b82095309092ef82418ec1a":"您已添加该事件",a718dcd3a16bee2a4086244ef1eb0ab4:"请输入长度为 \\$1 的内容",c323e3527a805cfdd264700fdf013daf:"请控制内容长度, 请不要输入 \\$1 个字符以上",c762cefa0ff423010af0a943c04d603b:"请输入更多的内容，至少输入 \\$1 个字符",b95aed5c6f2c8e49e23b382ac3d593ba:"当前输入值超出最大值 \\$1，请检查",fd11733fbabaf2ae3cf1fcd3fe385cc5:"当前输入值低于最小值 \\$1，请检查",acf719549561f28f38bf750a64cda508:"输入的数据与 \\$1 不一致",e027500d91d46a962036f63c09492c6c:"输入的数据与 \\$1 值不一致",d01886eeef1de19f2e99617017f4def8:"格式不正确, 请输入符合规则为 \\$1 的内容。",f10b676db977ae808af8d96b327be7f3:'有哪些辅助类 CSS 类名？请前往 <a href="https://baidu.gitee.io/amis/zh-CN/style/index" target="_blank">样式说明</a>，除此之外你可以添加自定义类名，然后在系统配置中添加自定义样式。',"73ac822ddf4685dbfec661dec41a96b7":`<div>
<h2>hello, world!</h2>
<div id="customBox">自定义容器区域</div>
</div>`,e9b91e9101059dc2e234d9847dd7b003:"弹窗数据","94397b87ac63fe238c779120fadab024":'位置为 "左" 或 "右" 时生效。 默认宽度为"尺寸"字段配置的宽度，值单位默认为 px，也支持百分比等单位 ，如：100%',a6d91e801974dfa735a4ae0e098c522a:'位置为 "上" 或 "下" 时生效。 默认宽度为"尺寸"字段配置的高度，值单位默认为 px，也支持百分比等单位 ，如：100%',"197af5d5971778e3b80deb25182d63e3":'<span class="label label-default">子节点${index | plus}</span>',"7341e991c8e8cfec68d31ffe0e06e429":'比如: this.type === "text"',"8add6799ceff24eb041c5a6a92bb1694":'支持如：<code>\\${xxx}</code>或者<code>data.xxx == "a"</code> 表达式来配置作用条件，当满足该作用条件时，会将计算结果设置到目标变量上。',e02d111d524de97e8622121f7ce845cf:'提交数据前将根据设定格式化数据，请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',fcb9b16d5d056bfbf6b6cba9dcf61efa:'请参考 <a href="https://momentjs.com/" target="_blank">moment</a> 中的格式用法。',fde1ab2f504097f3f717acbb653b4f09:'${formType ? asBase64 ? "小文件时可以使用，默认给 Form 提交的是文件下载地址，设置后给 Form 提交文件内容的 base64 格式字符串。" : "File 控件不接管文件上传，直接由表单的保存接口完成。和 Base64 选项二选一。" : ""}',"17a689143f0c7003123bb3c947d35273":"校验优先级比最大宽度和最大宽度高","2aa41edf8cfa79e7e5fcf38c9742b495":"校验优先级比最大高度和最大高度高","37ad5d98b12853d786b08cb52b91a43a":"开启后需通过CSS类设置其高度、宽度","324d0ccd6fa9d976d2f17de3bf0b70bd":"开启固定尺寸时，根据此值控制展示尺寸",d85a80d177db696b29b7338af1501055:'使用空格分开配置，使用<code>|</code>可将配置栏分组，<a target="_blank" href="https://www.froala.com/wysiwyg-editor/docs/options">参考文档</a>',"8cfcd52cebdc2555b202f4b03de93662":'使用空格分开配置，<a target="_blank" href="https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/">参考文档</a>',"5831c1f77c5acefa6dfe9c64d06ca78a":'配置"canAccessSuperData": true 同时配置 "strictMode": false 开启此特性，初始会自动映射父级数据域的同名变量。需要注意的是，这里只会初始会映射，一旦修改过就是当前行数据为主了。也就是说，表单项类型的，只会起到初始值的作用',"24c5febd312d27b5e80354cf03e241f0":"外层容器",a269e7de6c7735290733eb3e574c2129:'请从<a href="http://lbsyun.baidu.com/" target="_blank">百度地图开放平台</a>获取',"0861915dbac25ccb573b3bb72ffeebd7":'支持使用 <code>\\${xxx}</code> 来获取变量，或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>',"844318bd1d58ba0bf7dabbb771174b12":'<span class="label label-info">一</span>',"2fccd71275cdf5d6c0c677ef79dd84a0":'<span class="label label-success">二</span>',"198a96c4cfc64d5feba81b3f931f8289":'<span class="label label-danger">三</span>',"626a0f2fdf13bcadf11581006ab9eba3":'<span class="label label-warning">四</span>',ce3fd44456123f571e9d083b98da9fcb:'<span class="label label-primary">五</span>',f8fc21a9fd40881e8fd3d7f15919465c:'如果当前字段有值，请不要设置，否则覆盖。支持使用 <code>\\${xxx}</code> 来获取变量，或者用 lodash.template 语法来写模板逻辑。<a target="_blank" href="/amis/zh-CN/docs/concepts/template">详情</a>',"2c8a99d35cb5704994cabcc61a4c3a4a":'查看详情<a target="_blank" href="http://www.baidu.com">日志</a>。',bf9e242338d2c26b182aa6b9c015d84c:'如：this.type == "123"',"5414824fb8efdb7d59beae4bf95fdefd":'<p>当没开启数据映射时，发送数据自动切成白名单模式，配置啥发送啥，请绑定数据。如：<code>{"a": "\\${a}", "b": 2}</code></p><p>如果希望在默认的基础上定制，请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。</p><div>当值为 <code>__undefined</code>时，表示删除对应的字段，可以结合<code>{"&": "\\$$"}</code>来达到黑名单效果。</div>',c130bd5b55edefdaf8923269e9a52439:'每个选项单列一行，将所有值不重复的项加为新的选项;<br/>每行可通过空格来分别设置label和value,例："张三 zhangsan"',"1bf14fd24efe68f62bbff0538dee238a":'每个选项单列一行，将所有值不重复的项加为新的选项;<br/>每行可通过空格来分别设置time和title,例："2022-06-23 期末补考"',"0e9525b2bb1493c567c114dd61b69095":"温馨提示：","7080fa6e0ca1d7e24f6f8cac05077a3a":'有哪些辅助类 CSS 类名？请前往 <a href="https://baidu.github.io/amis/docs/concepts/style" target="_blank">样式说明</a>，除此之外你可以添加自定义类名，然后在系统配置中添加自定义样式。',f19464cd1d7c55610b84b4972eaf506f:'<div> 当开启数据映射时，弹框中的数据只会包含设置的部分，请绑定数据。如：{"a": "${a}", "b": 2}。</div>',"784cf5219012b5f16f2985b7f1fd52f5":'<div>当值为 __undefined时，表示删除对应的字段，可以结合{"&": "$$"}来达到黑名单效果。</div>',af9f27383daeec508815a33753247f42:'${data["&"] ? "已开启定制参数功能，可点击关闭该功能。" : "如果需要在默认数据的基础上定制参数，请配置开启参数定制再定义key和value。"}',ff0d36eac9b9c029d91c365cd2c7e6cf:'${data["&"] ? "立即关闭" : "立即开启"}',"7237d0dfa065bf451120d06330291b7d":`({
          isEmail: 'Email 格式不正确',
          isRequired: '这是必填项',
          isUrl: 'Url 格式不正确',
          isInt: '请输入整形数字',
          isAlpha: '请输入字母',
          isNumeric: '请输入数字',
          isAlphanumeric: '请输入字母或者数字',
          isFloat: '请输入浮点型数值',
          isWords: '请输入字母',
          isUrlPath: '只能输入字母、数字、\\\`-\\\` 和 \\\`_\\\`.',
          matchRegexp: '格式不正确, 请输入符合规则为 \\\`$1\\\` 的内容。',
          minLength: '请输入更多的内容，至少输入 $1 个字符。',
          maxLength: '请控制内容长度, 请不要输入 $1 个字符以上',
          maximum: '当前输入值超出最大值 $1，请检查',
          minimum: '当前输入值低于最小值 $1，请检查',
          isJson: '请检查 Json 格式。',
          isLength: '请输入长度为 $1 的内容',
          notEmptyString: '请不要全输入空白字符',
          equalsField: '输入的数据与 $1 值不一致',
          equals: '输入的数据与 $1 不一致',
          isPhoneNumber: '请输入合法的手机号码',
          isTelNumber: '请输入合法的电话号码',
          isZipcode: '请输入合法的邮编地址',
          isId: '请输入合法的身份证号',
      })[data.type] || ''`,"5e568c42a5ecb74db2dc3d8531079dd6":'<a target="_blank" href="https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/">参考文档</a>',cadf0e302ddbc6fdbf005aed670b5e3e:"代码变化","6006074bdabc639b86f42aa18876e33a":"代码变化时触发","28e5fd494ea37a09fd2ad36d0f98bacc":"被删除的项","046de1a6cb21ff83af74958342c0db64":"被激活的项",f6e5fc909971d2e5f6ffe23edae93584:"如果数据比较多，比较卡顿时，可开启此配置项。","31dae237cbd03ae0d2dcf7ad2fd4fb76":"初始化接口请求成功后返回的数据","850c62f7b1ebfb4b89182ecd51202a7d":"表单提交成功后触发，如果事件源是按钮，且按钮的类型为“提交”，那么即便当前表单没有配置“保存接口”也将触发提交成功事件","88b2930823f9fd6706473805e9b11797":"保存接口请求成功后返回的数据","3e07258baf3c4389c1ffd4a98c20b8fe":"保存接口请求失败后返回的错误信息","0d6581b6dd51f6c03a4edf26475d75c6":"被移除的项","4ea280a2e54969de1d1b9bbd5b708e63":"点击选项",f05520432bb87ced419a1da818c6cc9d:"选项被点击时触发","91f7b7fdf9b91073ca3519260f7a62d7":"所点击的选项","6afde638796d237377b0755506d08ded":"目标组件",fee99f2bcced486e4753a8f58f511d3f:"追加数据","3f3f4c71c1b736e7f01cf910a553ff43":"选择“是”时，会将源组件所在数据域变量同步到目标组件的数据域。<br/>如果目标组件是增删改查组件，且增删改查组件的数据拉取接口是get请求，则源组件所在数据域变量将追加到目标组件的初始化请求query中。","2aecb19ca1655d66fc80fc27a783cc9e":"追加方式",b67b01a3b9170f1daf78082cfd0df793:"选择“合并”时，会将数据合并到目标组件的数据域。<br/>选择“覆盖”时，数据会直接覆盖目标组件的数据域。",bd81577a6fd4956e676cec499bb70d00:"合并",e09fea40f7e4abd4b2a495b315940688:"覆盖","9a5500b6013ec1ebf61bdf0e18452348":"数据默认为源组件所在数据域，可以选择“自定义”来定制所需数据",f30bcdccf71b19e858c37d8881d2b206:"源组件所在数据域",fa644cb20c66f7530d8a376d4fa6a36e:"组件数据","7d9260bd45b2e85a09398f218c25f220":"更新目标组件的数据域或目标表单项的数据值",e7af71fb102cc86ab3be6a2fb32b5e3f:"数据设置","77b1081c177fa3334cc93c99f0ecee75":"直接赋值",f5c5e3d69daee06ea1606378ef466765:"成员赋值","697af73997072e0ce9ee65b15a7b3715":"重置页码",d7bf42dd6e66f2818f9a232603c4a53b:"选择“是”时，将重新请求第一页数据。","3e573fd37473d789211ee44335d82fad":"静态 CSS 类名","905407c57ccd033cb6bd64bfad20a8c7":"静态展示时 的 CSS 类名","0d1f68afa19f3f3dd88e28d17c98ddf9":"表格2",e052287273ad39a1d3fa9fa3decb5fd9:"组件展示态","506f28f48dbebd5d19e19dfc721e13be":"控制所选的组件的输入态/静态","0e35b091e18032508758899735664df7":"组件切换为静态","34d361256526b04909e064c29d9a9b76":"组件切换为输入态",d2e930293da37452638759e17d771adf:"组件状态",b535bea11c97ec5588b1494799de4d60:"表单输入",f7784642f42d33f506ba05f3daefc3c4:"表单静态",a8797a840f3c0bbb5297aada95f9b13a:"表单项静态","7bb3e24cc54f4b8ee0a65d14fa4c067c":"激活指定选项卡",fd951a59a7c635d5330bc1aeec22c813:"自定义数据",b62ce3df3c0d5772006c525b60d5eeab:"数据默认为源组件所在数据域，开启“自定义”可以定制所需数据","0f9803bd27434940d4017007c105a861":"当选择“是”，且目标组件是增删改查组件时，数据接口请求时将带上这些数据，其他类型的目标组件只有在数据接口是post请求时才会带上这些数据。","81e1ff0bb8917a9df99d737982ee24b7":"SubForm, 配置一个子 form 作为当前的表单项",a5c2dba5ccf62851b24cfa12d4958ce2:"可以用来展现数据的,可以用来展示数组类型的数据，比如 multiple  的子 form","74104c62ed33836f0bc74297539dd7c9":"配置 options 可以实现选择选项",b5ade3d97d5b11bc784786111e011571:"树型结构来选择，可通过 options 来配置选项，也可通过 source 拉取选项","2c05e451a6f2b2fe1cf55f7afb8c8423":"单选或者多选，支持 source 拉取选项，选项可配置图片，也可以自定义 HTML 配置",c65c9862813c7a66c0df52e301e0e1d1:"适用于选项中含有子项，可通过 source 拉取选项，支持多选","8f650b58c8421edecfb380d6f60ef40e":"通过 pickerSchema 配置可供选取的数据源进行选择需要的数据，支持多选",b7a4abc1e4e975c9df5bb9d9cf4823ba:"通过 options 配置选项，可通过 source 拉取选项",f2fc416c7d95a93a8da621f760be8417:"支持多选，输入提示，可使用 source 获取选项",b4482a3d9523f48e83a816fa85911185:"纯用来展示数据，可用来展示 json、date、image、progress 等数据",ecfd82eb65102274188011a502913d3a:"抽屉数据","951f802ebd0c0d795fbae6767a5ee9b3":"初始化接口请求成功",da0126992b4937a5fd847ef5366b02e6:"初始化接口请求成功返回的数据","70b8342d743374233bfee0f56c7f0fc7":"节点示例数据","38f85482d657cd4db1280c5efa1950fd":"{{@1}}对齐方式","0a0574baedb8eb2abf7daf25159d8bb1":"设置子元素在主轴上的对齐方式","5ccc4c05cd41195f202f550a4c307a64":"设置子元素在交叉轴上的对齐方式",b1b98c19058af70d8bd499e1899e93bc:"布局容器","03097563d201ad3a29c79165226764e5":"布局容器 是基于 CSS Flex 实现的布局效果，它比 Grid 和 HBox 对子节点位置的可控性更强，比用 CSS 类的方式更易用",e151c86d57096bb74dcd390ade29362b:"新的一列",e5f9b3a3655b8daddcee8b97b735887f:"向前插入布局容器","577b33bf128fba16ed8e9bf7c395f455":"向后插入布局容器","31f84d1bc6175fd0828a81b5bfd98736":"新增列级元素",cbc1d00cc640b67ee34a29a694ef162a:"左侧（上侧）插入列级容器",bb3cc092e17ff83e943554bde3d5771b:"右侧（下侧）插入列级容器",b19b454fe603e03e98ad9772615c7c32:"定位模式","8444f01399c0003fbb68eeff1310566c":"指定当前容器元素的定位类型","5ddea41072a27a74a1715549dfb79bc2":"相对",e9513a013011450c57cfe3ef51b7d4b0:"固定(相对窗口)","3059599d8ebfec00a8ab53346d9b4fa3":"绝对(相对父容器)","86a6b5a0a45bba5b6187cc2277e3375e":"布局位置","6e72759ed1cbf9f9e8523197dd93888f":"指定当前容器元素的定位位置，用于配置 top、right、bottom、left。","6896da744f8ae9633263d55af0fceae1":"层级","6f649980c839dffca1506f20d534fe3d":"指定元素的堆叠顺序，层级高的元素总是会处于较低层级元素的上面。",a8489cf57d7f44e889aff79434776f47:"默认为块级，可设置为弹性布局模式（flex布局容器）","4180e30c34190007ffaa654e0959b8a3":"行内弹性布局",ebe7bde5c9094813e2924473488d281a:"行内块级",dde193342b8c350ae29795117c0c5b9a:"水平对齐方式","5b15af1f73b4f2d5bb152410863602f4":"垂直对齐方式","78d32d2bd35c0262fe77b517c5a4fb62":"排列方向","3fa460b81736c0360f6f7571801935b1":"设置成水平排列方向，则从左到右放置子项；设置成垂直排列方向，则从上到下放置子项",fa228d6bec96d052de0ad369407f5241:"水平（起点在右端）","2df3bc66ab3fcb0de1caf11831eff595":"垂直（起点在下沿）","98b2fea2d8f3ceb81e9ce32d66383f05":"如何换行","9af509c2a9636343199b9072e001826c":"默认（不换行）",d4054144c4341872496e3550fdb1b826:"自动换行（颠倒）",ee2df1c1a0d99094f641166535948d4b:"弹性模式","947c03e411c20563c7ac67d0a5ad741b":"设置为弹性模式后，自动适配当前所在区域",f92626f9e56b3e2d0c47495a446acf71:"弹性宽度",cf8852316501c22ea19c4e432c59e7d7:"默认宽度","9cc69c8469b23b77519065d3df381113":"定义在分配多余空间之前，项目占据的主轴空间（main size）","0ad8b3b736ae5b9e23cf16ac13e1e283":"占比设置",fa6bb048a2f73975a40789b30c5b8a06:"定义项目的放大比例，默认为0，即如果存在剩余空间，也不放大。",c19b79073b676b9bade80613aba2dbfa:"固定高度",d1b91a1a24f0d4935c2dd13e6a22b6d4:"最大宽度即当前元素最大的水平展示区域",c18457fe4f249f06b48297ccfe6224e8:" x轴滚动模式",c2ed47a1f0f45cf7e2d22bddffc8a732:"用于设置水平方向的滚动模式",cbc7af1d6422e88f4b87ade748e0f07d:"超出显示",b48a90c77b5e792260d830c2d68c527e:"超出隐藏",ddea62517e2bd1007712689746ebfe00:"滚动显示","55becc96b40692cc9cf898b331d16976":"自动适配",ede82efb4a69c35743185c6c73ab771e:"最小宽度即当前元素最小的水平展示区域","6f420734edfaff00a8210a4c762a9207":"最大高度即当前元素最多的展示高度","411f9d120093314cd38e6dd5cce398c6":"最小高度即当前元素最小的垂直展示区域",ff9e9329fe186be342ef59ee711b9371:" y轴滚动模式",b31c6aaa78f8e24df665ce80ab5301e2:"用于设置垂直方向的滚动模式","4fc0e68b093db41b45a4ea706fbe56f3":"居中显示","55efb233147f9539de019d9abc7653f9":"通过将设置 margin: 0 auto 来达到居中显示","2bf5bcbe21f39b254a601664fb8b264d":"默认（自动换行）",b2d418355cb59a5613ecff7b150c588f:"不换行","7d1313925f158b747c094a7f2480e535":"参考位置","41a7494315a528f0f9618646f7e0dddf":"可设置为左上角、右上角、右下角、左下角，默认为右下角","845c61ac8f51c6702dd22e5657c07e8d":"右下角(默认)","2794fe303cf8ad4395fe93271fae7925":"布局容器主要用于设计复杂布局的容器组件，基于 CSS Flex 实现的布局效果，比 Grid 和 HBox 对子节点位置的可控性更强，比用 CSS 类的方式更简单易用",abbd790f85282349e2004df9fd494e31:"在分配多余空间之前，其默认占据的主轴空间（main size）",dbb93e8f413074ead24b6ed822247d98:"上方插入布局容器","5b5765b3fd7e72e04a5cd3e2ef6218a4":"下方插入布局容器",ee466872b9a43e720e296813dbc5adee:"{{@1}}插入列级容器","14c495b1248756310c75396cd41f4fe9":"上方",e33ac3a4c1a95a02a18f1555038804da:"下方",e731c52010266b8ade1e7e78e25cdccc:"常见布局",f80bd0a5546465336f4f9cafdfa8b67f:"默认高度",ba9ccf1040d7abd0848046330ba3558c:"经典布局","230d65546ea0d299907943403608233c":"常见布局：经典布局（基于 CSS Flex 实现的布局容器）。","9bbb7cfaeb34a2b5c095ac253355f028":"悬浮容器",a3e91631c1a3a43e09526ea7f6b8595c:"常见布局：悬浮容器（基于 CSS Flex 实现的布局容器）。",d423930b823fc45f08c18922b19e4e9e:"吸底容器",b8b4eb373d8ba6f98271b681fba2511d:"常见布局：吸底容器（基于 CSS Flex 实现的布局容器）。",faaa6444a709917ff33e0d58948504dc:"吸顶容器","1facf0bd0f56c66759857345e7434443":"常见布局：吸顶容器（基于 CSS Flex 实现的布局容器）。",f416a3a2566dda04bc0ef67027e6f460:"x轴滚动容器",e3d9ad8453925764f2918dbfd6ff824e:"常见布局：x轴滚动容器（基于 CSS Flex 实现的布局容器）。","053e0cbf18c8fe59b928d52fcd556b88":"y轴滚动容器",c9f089cefc06c217c6dddfe2fc772ea3:"常见布局：y轴滚动容器（基于 CSS Flex 实现的布局容器）。","3587540660a01f8a8aff6a2c0409a404":"开启弹性模式后，自动适配当前所在区域","2ea6f1f33dec7cb3c23a1bf1f9eab11a":"鼠标点击",fe9228649853d08eebee72ad5521a3dd:"鼠标点击时触发",a643d2fe12d205eb8fb5cffe92f62c35:"鼠标悬停时触发","764c134791952dd1acb0f23587e75421":"切换图例选中状态","262cd2f688751332c1907a659e686210":"切换图例选中状态时触发",fd312ae2f1c24b8a14d9412bb3c6bb76:"最近n天","68cba5f27ab003cfada5eb4c1f29eb21":"n天以内","34b06708894a178c440e6f6539e95e9e":"最近n周",f0e1b8d8a6e731360d7348bc8301d44a:"n周以内","5cad2778bb8f01d1a1b1226082eb2117":"最近n月",ff76f60b3da86a0d2c6663b170a7955a:"n月以内","9ff9b56c9ed633ee09396830e93113ad":"最近n季度","2b80b20008b3ae81136217ae10a1fbaf":"n季度以内","84752114d27119dc50d8a7b9ac0b788b":"最近n年","5df2352afebd73d1f568ebaa81e2db28":"n年以内","8572d14f815d840bd9e940cd8ee4e380":"通过键盘上下方向键来加减数据值","925d31bb30d63576600299475a910c33":"输入内容前展示，不包含在数据值中","42677544e2cbee28f7e7df216e685543":"输入内容后展示，不包含在数据值中","046c6233e03af774df7b90b4504fa96c":"最近","249aba763258bbe488af3e79a381d265":"天","2f8ab07bea442bc6ce8a9e99ff88e5c1":"天以内",a657f46f5bb00961adfae80d12e41b3d:"周",b1599eaa05dc9b3d90be5aebc5c84338:"周以内",e42b99d59954ce6437e66f416850425a:"月","3c690347976de82df1909750cbc82b80":"月以内",b62ba98a627851e911bef8fbb005bd4a:"季度以内","465260fe80b0c3338d06194bb7a94446":"年","137bcb84f52bbd48623c37d8dfdebdff":"年以内","279d93f2d745ed08e9034022941510dc":"常用跨度","7a1e5f93e362d371519bcb2bfdb0fc9a":"自定义跨度","4a12e9b9fc5443e5e9999b5a7c56c19a":"默认（占满）","2cb472ff9cad0c89a033c53996b52053":"初始化","76ddcc0ad85aa4be6875b73244a64faf":"组件实例被创建并插入 DOM 中时触发","584e4b6108e132be92c9de09d7bbed72":"当前数据域","9328b90ded33d16a873db5c0dbd815b8":"初始化数据接口请求成功",f3b97bd71a77cca1e9288089a537cf3b:"远程初始化数据接口请求成功时触发","9787088794f42c7e476cf7580f81447e":"初始化数据接口请求成功返回的数据","029e280e119b028bffc51424d909c07d":"选中的项",a6eebb9b4fc7148e2dc41335c74e6393:"初始化Schema接口请求成功","887954cd9bdb290003984fe9a6eb99e2":"远程初始化Schema接口请求成功时触发","8f0064a9cfd7dcbb3c729f1357f11772":"发送数据","6d33298a54888a30753373ca5bfe3bc2":"返回数据","542e06175ff4f7407c467bbde90de56a":"如果需要对返回结果中的data做额外的数据处理，请开启此选项","7c583ecdf795ce4f1f40d7960ead9344":"默认提示文案","70941a02776496ec446f21f98ebf754e":"请求成功",f50bf418323ee425eca7208c09a4577e:"请求失败",f3dc08e3617d1e19cf8135be4412a80b:"点击后先询问用户，由手动确认后再执行动作，避免误触。可从数据域变量中取值。",faa29265819714253843e23437b9193e:"正常状态下的提示内容，不填则不弹出提示。可从数据域变量中取值。",f855f46ce6146aa17a9ed423da16bfa2:"禁用状态下的提示内容，不填则弹出正常提示。可从数据域变量中取值。","037becbe8bff2f8838d141cc7b6b2df7":"支持例如: <code>now、+3days、-2weeks、+1hour、+2years</code> 等（minute|min|hour|day|week|month|year|weekday|second|millisecond）这种相对值用法","8f7ae284d0039fe05b9f57fd5ae3ede9":"请选择静态值","98229308e2e9484583fde4ae363a979f":"表达式或相对值","6b3c2a07db1bb3c229bbc5df48068792":"支持例如: <code>now、+3days、-2weeks、+1hour、+2years</code> 等（minute|hour|day|week|month|year|weekday|second|millisecond）这种相对值用法",dcc94ea1715bd502c709c5d5092e9c82:"支持例如: <code>3days、2weeks、1hour、2years</code> 等（minute|hour|day|week|month|year|weekday|second|millisecond）这种相对值用法","13ce82d026daa5a30e50105bd2a204a6":"请输入相对值","31c29c46536a5007522032d2a42db56a":"数值模板",a6a41d1bfb5896210eb527d183a07958:"值渲染模板，支持JSX、数据域变量使用, 默认 ${value}%",eadd1d64cd6ceb2c50554281cd2d3be0:"根据该数据来动态重复渲染所配置的选项卡","0d9d899edb456e8806a99850e9c38212":"已配置表达式",fbb96f7ea104d34fc4b7bd625d892c45:"点击编写表达式",e0c7ac5eb397512fdbe71600baa09dab:"请输入静态值","48942ef507ea38d8ead03f8bfdffae5a":"已配置相对值","49041f245018a6d799fee3c6f177c782":"退出全屏","185926bf986c784d03a9a73102da6542":"全屏","891ec6336d4243714c25eecb2f8f774a":"选项文本",fb7ea2b05ca7328ee16a562d90c2eb96:"选项字段","1ca87f0171481e27d94e81b477150b7d":"选项模板",d6ecb32a380c91887a9346653c2427e9:"自定义选项渲染模板，支持JSX、数据域变量使用",cb048b2d8426afd464dc01b72c446342:"块级(默认)","3b6e8d54b7b2ae890d5357b7eaaeaaf2":"不换行(默认)","0611733b53e0098e6fd880bd44b2806f":"最小高度即当前元素最小的垂直展示区域","03bfb834c8a5fef58d885e448a4e13b4":"虚拟列表阈值","50437e080edc71ab624c93d419472919":"当选项数量超过阈值后，会开启虚拟列表以优化性能","02b9880e1d2df8a07e90e9878080c739":"选项高度",a3f66655c3d2bcfecc6afba0e4424460:"开启虚拟列表时每个选项的高度","183f00df0922a6be371fea58cd46a60a":"弹性高度","9e7c8d1554f6449121a83f951cf21ca1":"弹性比例","99b57d8c9244ff9a695fcd519b4e2e57":"最大宽度",fc2bc4193eea63128961d09497e07dc8:"最大高度",a2b62974f4d7564bb68b570116f25a10:"最小宽度","2bd921d0ea7a73b77ee0fcddb1afcc84":"最小高度",eb7366583485f478e3d8c2b105ea51ff:"定义项目的放大比例，如果设置为0，即使父容器存在剩余空间，也不放大。","5d3d48de1ba22368eacdc1c69fb044ce":"组件内层 CSS 类名","72c32b47c5e4dcd58ddabdb8fde761a0":"悬浮容器: 基于 CSS Flex 实现的特殊布局容器。",a03384e93b62e3110aa92c9e345111ba:"吸底容器: 基于 CSS Flex 实现的布局容器。",f564e3e66dd2aca0e080cb6484c95a5e:"吸顶容器: 基于 CSS Flex 实现的布局容器。",db805d4e361ac2d3fc6047eaea1a7c69:"自由容器","9ccbfde404798593fa6fdeac9dbef200":"自由容器: 其直接子元素支持拖拽调整位置。",f20ca09e513399510ce34ba2cb05b7d9:"x轴滚动容器: 基于 CSS Flex 实现的布局容器。","47ef0cec2c3436377a42390e10de4567":"y轴滚动容器: 基于 CSS Flex 实现的布局容器。","8c2bb89f516205027b9ed6609fb17726":"阻断条件","46a3c6ab94da0b16a707bdd3b74c9e09":"满足条件时，将会阻断当前事件的后续动作的执行","6e6d4269d0dc3324d551062350a2ae9f":"静默请求","56e13c39822a814ab39b0d5a0867d7dc":"开启后，服务请求将以静默模式发送，即不会弹出成功或报错提示。","7f019b96ffb7d72ec8d6ce8d76e5362f":"表达式已配置","699829ed5bab67dfb360764c3bbaed4e":"{{@1}}-事件配置","5ba999eb762f60324033b735e55d989c":"事件防重","7fe94616be0e8fb5ef5ab40a7397f0aa":"开启事件防重后，防重时间内多次触发事件只会执行最后一次","91b72e901f1663637157cda638ac4dcc":"防重时间","969e9e56b3812abffa3994f35ea31835":"吸附容器",bb0e1fea25aafbe731886295fcef9a2e:"吸附容器: 可设置成吸顶或者吸顶展示。","7d30297d4e1f310c73b27be88c748026":"吸附位置","2ea76e2ffc1b92911d6f7decfa993360":"吸顶","8cfc818a76662085cb64752d6d592fbe":"吸底",e2f6535e21570a0703c7c65f41b30eaa:"滚动吸附","1c5ea0ffb2b15713cb22c41a02576924":"开启滚动吸附后，当滚动至父容器上下边沿时会自动开启吸附模式。","5f9be0002394f0b58952969d5952e24c":"用于设置滚动吸附时的位置","28968f372fe88c0ef855c7f79f42bbad":"均匀分布",d481ed97681365f18cf20ef914473a02:"起点对齐","02f6ac7a3bf6a8b4440a2a1c3e1daeea":"终点对齐",cbac406a3f51abad691702015b0784ba:"高度撑满","5a4e41af91746f8a3905aa9f66048955":"加载设置","6ade3082696deb00357f5c0359093cd4":"合并到上层loading",b6ac896eff6a6502e4ae7079b3e507a5:"不展示loading","0e9ffe1f1cf3f7a620970ea75dba9f39":"使用页面全局loading",b1119174b1beedd2218e0b359ef14aec:"表单提交",c6a65a86cd2bd74a6f72df0a7b81d3cb:"配置该事件后将不会触发表单提交时默认的校验、提交到api或者target等行为，所有行为需要自己配置",c207ba29769aca6ffd45db9f80bcb29e:"以零为头部",f02f876ee64cc016d97fa4dc498d4857:"高度设置","091885db07e43ff7cbe60c3b664b0b50":"弹性","363165ccee78341a65f1d42174e8b08f":"适配",eb44269adb6ba70569cd62ea88cb2750:"弹性设置","64561733c68085af3d09315c1d4d7ed6":"鼠标事件对象","052f93928af33d4d7035e7c8e8a73f17":"通过 margin 数值来设置对齐方式，其中 margin: 0 auto 用于设置居中对齐",a738a8594bd2b71002d09277b84d86dd:"靠左",fc0f19e9e47e352d36d36cf6eb653210:"靠右",c70638412c6cffd150117ae403dea939:"组件静态数据","77fdd35933c099cdcb64b71f3fbe7a6c":"数据列表",f01c3cd99ecb0c534cc47081d3433c9f:"自定义样式",f7e3d7e3146bb53b5e6f09f7c90dea3a:"输入框样式",a39a2916d17f2b9ba11853066b4225f3:"AddOn样式","9b6425cd2d496c9cb5a6c6b8ff125d1b":"输入框",b9745a6b870f02a0483a4a4f74814c68:"自定义样式源码",ec8f3e4a298160dface2fda5c0125df2:"请输入类名","7e8eb474f73b6fd60c9aa5082f75e008":"Label样式",ef55ff12fb0d3efa3491236fee4dabc2:"描述样式","60bac4c0a381a42b320a703227be59eb":"间距","00d1a6230e9a31664c895e95fde707d3":"添加项",cf3f7c0c1e6c77197bb0b6508a9173aa:"添加新的项","3a553b1123f403cf1f81eb28b3e4b814":"最多条数","93bc4888bc13bb6e6c49b34b54077438":"最少条数",e61c32382d879b867938086a50ef094e:"打平值","30d4e9f1c60f2d5851f77463476d568b":"如需要拓展自定义的新增功能，可通过配置组件-新增项来拓展","405a48545938c075e62eafb80b732769":"按钮模式",f4b06bd9e4f5ceaac7fbb0e17fffc518:"文案","178bf4dd4b8d56370e2fc8275f9dc9e4":"删除确认文案，当配置删除接口生效",cb8f7758eb03574f9b8402659c0f02b2:"确认要删除吗？",f7894f17d0eba299011d856ce3efea73:"自动填充父级变量","7fc8dab2069004acb8f5c98c27ee0883":"同步字段","8e32c9ffc35059f8ac5254ffaf3c99b0":"标题模版","21766034147682a2435ecc766de5ea22":"多行展示",d8848daffd80dbb21ace876ade2ea8a8:"行政编码","977cfa6e8c7f036674afedfcc19ec7a2":"对象结构","05fcf03ba044a04ce81bdbe6eaf49d17":"可选城市","912beb37a3785e50d6483852be41111f":"树型结构选择，支持 [内嵌模式] 与 [浮层模式] 的外观切换","0b52d7d00ed28e41f4845fec1622d056":"tree、树下拉、树下拉框、tree-select",ea687c59ff7d980afc55427853af864a:"树选择框 - 内嵌模式",ce0e89aa6a8e17562c265714b33b4f82:"编辑模式",ba1a077af717cb3c4788849c2342200b:"单独给立即保存配置接口，如果不配置，则默认使用quickSaveItemApi。",cf8774ca07f11ecb14b3b59c3891e9cc:'<p>当前组件已停止维护，建议您使用<a href="https://baidu.gitee.io/amis/zh-CN/components/form/formitem#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA" target="_blank">静态展示</a>新特性实现表单项的静态展示。</p>',"26122d95c72204c83ebdc37cd16a96f9":"图片放大功能",a19769d02b8de60a1e3b46c3ef96f122:"放大功能和打开外部链接功能是冲突的，若要点击时打开外部链接请先关闭此功能",d196eb8f65e84003b7ca64d5dd8fc737:"占位图",d98b3f3d11e6dce8eac1a041247fbc50:"图片列表","8e1fee898434093aad55f5888497f970":"<p>当前为字段内容节点配置，选择上层还有更多配置</p>","86aafaa75b388deb4a4cbdab2293c099":"头部",e6aa1b827415217c524ae9d9b665cca5:"配置头部",a2ecfd5a0db9c855f59eea75083678e6:"配置底部",fa0b9c20503ee00554e8c86d4a4461b6:`返回日志信息的服务，后端需要通过流的方式返回结果。
                  可参考<a target="_blank" href="https://baidu.github.io/amis/zh-CN/components/log#%E5%90%8E%E7%AB%AF%E5%AE%9E%E7%8E%B0%E5%8F%82%E8%80%83">示例</a>`,"1d3d7de6b84f4d5d4a4e126e145af132":"文本编码",d55bbcd785be46c3182dcd7663c3c041:"返回内容的字符编码，例如 UTF-8、ISO-8859-2、KOI8-R、GBK等等。默认UTF-8","0021bd6b2290ddca1ad6a9c8848377bc":"加载提示",f013ea9dcba3f5ca1278aa850931fec8:"加载中",d7eb1e98e6cfbe38ab3b242c4dda1b7b:"跟随底部",ab2dd531871defe1ef7d8d06548411f3:"自动滚动到底部，方便查看最新日志内容","41058383885336fbe750665044e4e38a":"可在日志顶部添加以下操作按钮","095e938e2a09eaddc8db146b86879f4a":"停止","0cee3cd1e0b0956fb3447d7188553e4b":"隐藏行号",c2f42bd2a149bbeb4627b1e1b5fabedb:"性能优化","45f14d9548decc8a1df4e470efcf8d08":"每行高度",ef744ba73b07d85f877fa8774f64da36:`设置每行高度，这时就会默认启用虚拟渲染，避免渲染卡顿。
                    <ul><li>优点：仍然可以查看所有日志</li>
                    <li>缺点：如果某一行日志很长也不会自动折行，会出现水平滚动条</li></ul>
                `,"7a5d14c5f61745f08700ba315609cf9a":"显示行数","686e0a9356c1cbbaff2ce3b98bf8439a":`限制最大显示行数，避免渲染卡顿，默认不限制。
                    <ul><li>优点：某一行日志很长的时候会自动折行</li>
                    <li>缺点：无法查看之前的日志</li></ul>
                `,bddc8f2d9bdcc083bb4f3dd38eaba459:"展示区域高度","0218cbc88086353118fea07e364334d4":"开心","8167b3dd560a83cdc757d1022ff111e2":"愤怒","8fa28f95c03faa7cc87e487a89a35a72":"伤心",d246bdddaf59436cb2160837f7bef634:"冷漠","2ab01e418dca1500dcb133d50656deea":"一般","3585e4dd456b41fb8aec43f927b6a27c":"自定义显示模板","25e4c39320150bca74b4c05c7740e365":"配置显示模板","9e25d776a57c610940bcc1c19847b97d":"顶部外层","2ec1b0bb189b486945e79c167a4a024d":"底部外层","77ad0879912d0a306724c319eed113e2":"用于标记和选择的标签",ee66d7a2d02188816d633d11cf1a8b27:"普通标签","35242cff1266fd3610f124b0e5e76f9b":"普通","092c4410e162bb3371f2aab804501f24":"前置图标","3e7392ab43c6c76f294f41c3058c2ab1":"值匹配字段","2135be5a60fc3c6fe864e159e289af51":"映射表是数组对象，且对象有多个key时，用来匹配值的字段, 默认为value","6a1ca1c113a9b5bee58ea009e40f5954":"匹配字段，默认为value",dc7becbad712786c9e4766636047e509:"映射表是数组对象时，用作显示的字段，显示多字段请使用自定义显示模板，默认为label","1140acc9ac4b803b733f70445e7d495a":"显示字段，默认为label","55497c5de8558f1a164e437205cd510b":"<p>当值命中左侧 Key 时，展示右侧内容<br />当没有命中时，默认展示 Key 为 <code>*</code>的内容</div><br />(请确保key值唯一)","94124fa72dbfbb81611496cada6ebf4c":"请保持数组成员结构相同",a3221d2d224767df4afa7a8653ded8fe:"内部对齐方式",e8bb313fb86cf474c0e264794bc85896:"是否固定表头","8e903bee4578f72bbecf9eb62d7b875c":"显示层级",c17fef27ea1d970fc66f4c4c3d442129:"默认内间距","236b0cdd2e18418fd17d3cdfcace239e":"插件",defe851634125bb16e762f26dbb6555f:"查看 https://www.tiny.cloud/docs/general-configuration-guide/basic-setup/ 文档",df025e01cbbae804f7d720e6b932e8e8:"显示菜单栏",b74c3bbb8ec4f18896cd3b5a20ee9e2c:"工具栏-大屏",e08c3505f9779bf919628166a77d0d77:"屏幕宽度≥1200px，参考文档：https://froala.com/wysiwyg-editor/docs/options/","04f91b84d48285162d3e29205a194143":"工具栏-中屏","9ac0e46a361565f0b8be2228bef4b679":"屏幕宽度≥992px，如果不配置就和大屏设置的工具栏一致，参考文档：https://froala.com/wysiwyg-editor/docs/options/","70d3894aaed305d2fc67f91122d77759":"工具栏-小屏",a3133ac3b34da77e612bcb1763adae1e:"屏幕宽度≥768px，如果不配置就和大屏设置的工具栏一致，参考文档：https://froala.com/wysiwyg-editor/docs/options/","194ab42ad1ca7fca9a6ef84fadf99490":"快速插入","94621f44f98c996e49d5b214aebefffc":"字数统计",b720ed498f054a2539d496d0da68f85b:"图片接收接口","376496a8918c57220159951e24d3b72d":"视频接收接口","555a9859e2c34b015438bdfb59a57c5b":'${vendor === "tinymce" ? "编辑器" : "编辑区域"}',afccc17d5d672b10a1292dcd671ef534:"快速构建表格编辑框","1711a82f9b0825015c2c49d9659c9837":"展示类型","63bb911d6392cb2740140d406ab83d37":"编辑类型","6530334ebf5ca810e576858eba168685":"选择框",f25cb224e4543c1dc0228fca8dbfaf1c:"颜色选择框","1145703a07e11b6e680ee2ec8afae0b4":"多选框",a877779dc422c5321057b638d6d520e5:"城市选择器",e2c59e63f751088ad8b43a1439e4322a:"新增单行数据","41c1e36d5d202588511710ff0ccb9e8d":"删除单行数据",f38b7eb6f78af9ae86c449153de2fe1f:"清除组件数据","5e2eb93cf353f5bfa0920553fc8a0087":"触发表格数据更新",efc47e9829b5831e4d0424191049b880:"删除某行的数据","383c125a11b0dd070b04194b9e2e78fb":"在新增或编辑单行数据时生效。开启时，输入完内容后需要点击表格右侧的“保存”按钮后才能提交到数据域。未开启时，输入完内容后就能提交数据域。","1d96dc9b36793e242322dd1e092a010c":"确认按钮名称",c507f40ae40ad10fd0b99ac025a6e5d4:"确认图标",e0698c2a2d5c568edfc5a0b1a1d298eb:"取消按钮名称","08f06b06a0db0e978e3acdf7741ccd86":"取消图标",ffa655818f7dd46fb2a767c51618741b:"空数据提示",d173fb23320acba326a4424133969256:"显示序号","26eb498526ba909386befc43466db79d":"每页展示条数","078f9734eeef4ff8c06e0b639ce6bd8f":"如果为空，则不进行分页","52029187eaa09f55193b6a15387e45ca":"最小行数","3d99d1f17ebf865877e681397c61dc9d":"最大行数",aa8b2a821e8e32196a720eaaa41b64d3:"为了性能，默认其他表单项项值变化不会让当前表格更新，有时候为了同步获取其他表单项字段，需要开启这个。","2aa56a9b94ee3fde76a15711c94fdabc":"是否可以访问父级数据，也就是表单中的同级数据，通常需要跟 “严格模式”属性搭配使用。","53a9db06d0b7e3482dc21e53f150e257":"行样式",d679aea3aae1201e38c4baaaeef86efe:"运行中",e5ac1d2029adff17ec123b86ea07ce26:"排队中",f406ef0ea3f09572835a9b1ec61f576a:"调度中",acd5cb847a4aff235c9a01ddeb6f9770:"失败","391299a1c1722a777991a182a44bccbf":"默认支持如下几种状态，无需配置即可使用。自定义状态会和默认状态合并。","33563f1d3d203bc682069a8c85506b86":"默认icon值","2cc90d2f2cd9ba213f9aace88c386f3f":"默认label",aad245582dc9f55cf71e3934bb3b1709:"默认value值","2634cea5a95ece79e05b5a68c38cbd4d":"必填项","2464e9d13bfc84169eb8333b6996203c":"更新目标组件或变量的数据值",c85c8d61a67014c4b5d44f25e49e87fc:"设置变量「",df24d894cd3331f53964bc75f5c192e2:"」的数据","9e1bafbb00018beacc8f579c8ddfaa36":"设置组件「","6c6e12c54723170f214527bedaf81f7d":"动作类型","1b7e6b2dbf3b7f4b1baf2c42e49a995d":"组件变量","2eb4c7ac45befad0f1f9c750bda57166":"应用临时变量","844a7a7aacc5be82d0fd6225edc6bf63":"请选择变量","85451d2eb59327a23e8f745161066d4a":"请输入变量值","3d4d83f05a12364e2522fcfb265d8ce8":"开启时，新增、编辑需要点击表格右侧的“保存”按钮才能变更组件数据。未开启时，新增、编辑、删除操作直接改变组件数据。",c18169dd6fceab2f023216fa6f7d22c1:"确认按钮图标","5720057e62e80f7a04489dc4c035b4f1":"取消按钮图标","8985ea173dce8f9bee667b3cdf0b7bdf":"此配置项只作用于表格操作栏的“新增”按钮","3f64a567662a24714768237a3a6d0de7":"表格下方新增按钮","9dd651411c1cb25e19249bb4ea8878c3":"动画间隔(ms)","46bc66b19c2b589ebd24d1c583325080":"动画时长(ms)","9cb33a16b57ef10b79ae76a66379d66f":"箭头一直显示","0bf60b32f9db93b87e08763b1c815469":"数量","98e04bf7cb91497e4225d272e3a331c8":"自定义箭头","7076ef56f5c4f13d3c9bf87d3536352f":"左箭头",fce3880b7a24a47f02a16331a294b255:"右箭头",f4f965513462fcc9fe6fe896a9c249d8:"多图展示","522cddc343d72db3db80cf3d71f99210":"API返回格式不正确，请点击接口地址右侧示例查看CRUD数据接口结构要求","9b39126b20e519bb1c6e9054f4b55784":`<p><code>ids</code>: <span>用 id 来记录新的顺序</span></p>
              <p><code>rows</code>: <span>数组格式，新的顺序，数组里面包含所有原始信息</span></p>
              <p><code>insetAfter</code> / <code>insertBefore</code>: <span>这是 amis 生成的 diff 信息，对象格式，key 为目标成员的 primaryField 值，即 id，value 为数组，数组中存放成员 primaryField 值</span></p>`,"5323ab3e5c12066101244f0577c30e22":"自定义容器区域",b34422e637c90181d3fca4485a97c712:"分数","95e0d70d1809d5267c2419eda58e78ca":"等级",c13998e4c837dc40b8e90828d99561df:"为空则不支持编辑","738b58219dda4a849e293c0f75d06438":"操作栏新增按钮","306abb77f96a1048cf6e61bfe6e7bae4":"如果为空则不进行分页","136ecd1380f3fa10c1fd99b93c63fc9b":"是否新开页面","9778ba8e0cbbae9471485dfc28df8948":"初始是否展开","18eae9f567a9c425bf59147a2601ee6a":"菜单点击","12b91237057ca7d81d50cca9873c8267":"菜单点击时触发","0a974408aab362095e939e5364315971":"菜单选中","4b5f4893cf06a9d9ea5b8486bef87c26":"菜单选中时触发","9b317a5d43f72026b0c0699b1d596436":"菜单展开","9ef3c85c39e1e686f6b8c58292352ce1":"菜单展开时触发",afce1df2e30a4674f507292d642fe270:"菜单折叠","4015091668f286adf085d60a040f89a1":"菜单折叠时触发","2631c12c40aa18fff4c6a2793f03f95b":"数据加载完成","26a92da0738fed6a6178be565cfb3a59":"数据加载完成后触发","67d8dc76a8c8a3f0f52232969d72e8bb":"更新菜单项","12fbc0729d69e4243c4818093e96de8c":"触发组件更新菜单项",ee621e1f1429f1150a69bd02eecf6964:"触发组件的折叠与展开",e0e2b0cf2a3c8379b1d9144b10b3824d:"横向摆放","8dd27bbe64ec245ce449caab5cf7f12b":"默认为内联模式，开启后子菜单不在父级下方展开，会悬浮在菜单的侧边展示","154a7ec36c43427f73705ae834967703":"子菜单悬浮展示","9dcb6b749d6682f1ac51b2dcdefd3208":"点击菜单，只展开当前父级菜单，收起其他展开的菜单","49a84da9b39148af54903ba4c6ed257f":"默认展开层级",d4b70ea3a756ec4d06c8ecb2f27330ab:"默认展开全部菜单的对应层级","96198d14846a941a60824bd6ebda4d9e":"最大显示层级",cac013d011fe1ac71c3b9f0bd0594d65:"配置后将隐藏超过该层级的菜单项，如最大显示两级，菜单项的三级及以下将被隐藏","7419d6bab78d959d5c3b7a38f9888258":"菜单项","1a9aaf05889002e65708c4950012a652":"对，你刚刚点击了","243e91d5fbc5a03a5c54da6d8e662e4f":"页面渲染器，页面的顶级入口。包含多个区域，您可以选择在不同的区域里面放置不同的渲染器。",a7999d1390b7dc775e4287511c395d6c:"角标类型","31175366279c15232e27b6736ccb2fd4":"仅在文本内容为数字下生效","58f966670529f4753fb3c5a0647606be":"大小",b3c1b71ed42c7f2fe55f3c64346f1ae6:"此处配置角标样式，需同时在菜单项中配置角标内容后角标生效","515e8b11c3c24c6c3b03c6c76b1da496":"默认选中菜单","4f80ea1e761598ba9fe393e7c745468d":"优先根据当前浏览器地址栏URL进行匹配，未命中时将选中您配置的菜单项",e3cd6fc0612b22f7c7e209b8184378c8:"菜单名称:","4cd5629f32fc9710fbb0291b51adc34b":"请输入菜单名称","9e0b4b20e7177b83916ab7b017c4162b":"跳转地址:","2e507449ccaac4522f503f0ec3dfffa9":"请输入跳转地址",ec3cc7a898eb5eb6f87a1d70a22a05c7:"是否需要新开页面:",a93a3970825296478d40658ad07af43a:"初始是否折叠:",d5004744a86589d72041b0a3fa8efa7b:"包含子菜单:","14794add5446201274dd148086bc0361":"添加菜单",aae5ccb98564e19c48f19c740c3c10b7:"默认(static)","5d721446605f21bddb3b8e2ab2a3841c":"相对(relative)",b55b525d56fd0d4d3dcb9291e59e3433:"固定(fixed)","25ece43050dda20ad4d8dd058dd590d1":"绝对(absolute)","22b47452f52254ce07507287d137d167":'<div> 当开启数据映射时，弹框中的数据只会包含设置的部分，请绑定数据。如：{"a": "\\${a}", "b": 2}。</div>',"68419387f5bb8487a848b818d78424ae":'<div>当值为 __undefined时，表示删除对应的字段，可以结合{"&": "\\$$"}来达到黑名单效果。</div>',cb65841ea7dec5ae0af20b3f5e52abfc:"原始数据打平","6922790f45faf064e063069816e4d2ec":"开启后，会将所有原始数据打平设置到 data 中，并在此基础上定制","9791b05a4df9d72f1a01b81fa695fbc6":'当多列的分组名称设置一致时，表格会在显示表头的上层显示超级表头，<a href="https://baidu.github.io/amis/zh-CN/components/table#%E8%B6%85%E7%BA%A7%E8%A1%A8%E5%A4%B4" target="_blank">示例</a>',"7441768e25f67a80f0f2173c2a618c35":"日期值","8036cf5e8dbf62ee4f4e896f7354ce5c":"日期时间值","598f69a9b640508d8e124fd7d33131f0":"选择图标",ef79da787ad206e5d5f8cf62e195c836:"图标大小",ff58428ef8221c4c1bbf532dd3c77113:"图标底边距","88f109195ad926bcd436f0c56198240d":"图片上传按钮",d825ba2b8ea0c1b0737b0dd5ca9bc128:"上传图标",bade9c4e0b8a75a251c1a2760571d3c3:"数字输入框样式","53069052573de671c6e5108de745b036":"数字输入框","5c48fa6f337d2b5dd168a0887c6baa2b":"表格表单数据",fb7b49ff7f85f6e3f995b5eaae42d084:"标签选择","0aefac04b467ce313ca6b05e33c6145a":"最大字数","188676cb26835b8e4d8ea568467c55cd":"限制输入最多文字数量",f1ee660e12ef0b76c10cccc3d923e605:"AK不能为空，请访问http://lbsyun.baidu.com/获取密钥(AK)","4d01bb9f50eb1480e0e9995a2a003181":'请从<a href="http://lbsyun.baidu.com/" target="_blank" class="text-sm">百度地图开放平台</a>获取',f1f7a5f821ca0ee4caaa9324eda48d91:"静态表单项","4602761ee85e2e6e5360cd13fe642a08":'<p>当前组件已停止维护，建议您使用<a href="/amis/zh-CN/components/form/formitem#%E9%85%8D%E7%BD%AE%E9%9D%99%E6%80%81%E5%B1%95%E7%A4%BA" target="_blank">静态展示</a>新特性实现表单项的静态展示。</p>',"6ca92e3386f9e392584367df5054c27c":"用来展示一个图标，你可以配置不同的图标样式。","47fd366b711a0567646854f541449f8b":"比如：\\${listVar}，用来关联作用域中的已有数据","98204720c30a843a9234bdf22dc05d51":"弹性布局设置","3212f1de74130815d12d982437fc6919":"文档预览",a7199769ae58f8a5c35ac0e5f8804abf:"Office 文档预览",e414473c886072e393710563f201d7f3:"打印","6a62d33c838524f0609a624aa59ee9e7":"打印文档",f26ef914245883c80f181c4aade2ed04:"下载",fc856cd721f5b5955f8c4be2767a1cee:"下载文档","270c7dfc38ec1f8eb7b211481d26659a":"文档地址","2bd4fa4fe6637a09add46354f52ea9dc":"是否渲染","010787d733c97c5f7a8f9bda438af9e2":"Word 渲染配置","9a50cbc2f0c7115043a19c3b1db5776b":"忽略宽度","927ed823f52a6d3bbceed4436636a7dd":"页面内边距","755ea661684e7bffe9f97fb07b8d4921":"列表使用字体","9b87dc5a019f749722a1d3a9c854a2b9":"变量替换",c6adeba660df8e19ac6cd3b8c57416ad:"强制行高",b93ea0046d63e2df7cf24a7a63bf5c99:"字体映射",f6e9b56f97af64235bf81f4ddc2288ab:"是否开启分页渲染","4c71a09da7ce050d45514b68bb15b4ab":"页上下边距","3651c159e19c05a3bdaa7036dac91e4e":"页背景色","91bc444339545a7785f3aa3055d9ba05":"是否显示页面阴影",c856051e8c80913ff6607dc880341a20:"是否显示页面包裹","6a6772a0eae27591ed8763b6e616e988":"页面包裹宽度","22bca073daae505d7fc9e7d7c8ee047c":"页面包裹背景色","2839785a190e062058635add192f961d":"缩放比例","9723e66141840db4dc6bd1db9b165302":"自适应宽度",b7dd79307fb7bcc921aa1b94ef904fe9:"行为按钮",c3e817974de836e80c95cc6ce5718eff:"搜索框","83fe6a5db780fcfa68f3336c7d86f25b":"用于展示一个简单搜索框，通常需要搭配其他组件使用。比如 page 配置 initApi 后，可以用来实现简单数据过滤查找，name keywords 会作为参数传递给 page 的 initApi。",bb50b53491c2c43845c58b16e48c27f3:"搜索框内容","68a896ef9627fea8cd84f3fa4f7269aa":"点击搜索",a7be3c702997f49cf9429240fbbc5e36:"点击搜索图标时触发","1c113a8c88ba15fc1ff04ea410e63f33":"搜索内容","0796ba76b4b553687e5ffaeb78512ccb":"基础","218bcea849478df7335ac31072860e8e":"清除后立即搜索",a48b511d5da79faf6f7f58c5470738f0:"立即搜索","71c198baa12405e56705a3c68f66e3ef":"mini版本",b814fb5782f733a22ee561397ad376fc:"加强样式","87d88a457161f2a09f95f6aa29b38051":"步骤条","2a9a1329b191c2787b1a70c289e3bbe0":"竖直",d517acb68fbed2331b57d1a11ca21dcc:"简单","341fe804cc8b65dc17a31c7a25a90444":"标签名称",d04f139ee0fb6fac19ccaec0f7b323df:"点击关闭",fe7967a547915be9ae4083ed50c3b94a:"点击关闭时触发",b624985146c759cfeb1be80325eccd65:"文字提示","717b9f738e2da460071b1b5ae7cc0e06":`{
  url: string; // 当前接口地址
  method: 'get' | 'post' | 'put' | 'delete';
  data?: Object; // 请求体
  headers?: Object; // 请求头
  ...
}`,d1bfe86cb1776358c5ed50bc137a2b7a:`{
  data: Object; // 接口返回数据,
  request: XMLHttpRequest;
  headers?: Object; // 请求头
  status: number; // 状态码 200, 404, 500..
  statusText: string; // 状态信息
  ...
}`,d3b13672e0e24d1490b2564ae7f6da4e:`// API响应或自定义处理后需要符合以下格式
return {
    status: 0, // 0 表示请求成功，否则按错误处理
    msg: '请求成功',
    data: {
        text: 'world',
        items: [
            {label: '张三', value: 1}
        ]
    }
}`,"36d7adab7769ff6741b2860f041e56d2":`// 校验成功
return {
    status: 0
};

// 校验失败
return {
  status: 422,
  errors: '当前用户已存在'
}`,"0228c8f19830732b523a58a2ee0bbcfd":`{
  "status": 0,
  "msg": "",
  "data": {
    // ...其他字段
  }
}`,"6d8e3115be41a8a5690d6fefa637dac7":"接口返回数据需要符合以下格式, status、msg、data 为必要字段","09212e946a4d9b0f775700c46ef0dcd5":"返回 0 表示当前接口正确返回，否则按错误请求处理","7391774e57425e5d8e83de64100b5f2e":"返回接口处理信息，主要用于表单提交或请求失败时的 toast 显示",fa385c23820ee9999c82035086baa772:"必须返回一个具有 key-value 结构的对象","6494bc042d99f2f5de34a858b8a699c6":"校验接口返回格式字段说明：",e6246c03148f553e5d6a66adbdabb9f8:"返回 0 表示校验成功，422 表示校验失败",b8079b9d1e6d3e8a457787910a75cce4:"返回 status 为 422 时，显示的校验失败信息","9d49f04a3affb34a31bb157e4887cbe7":`可基于 JavaScript 语言直接录入发送适配器的函数体，在该函数体内，您可以对 <span style="color: #108CEE">api</span> 进行处理或者返回新的内容，最后需要 <span style="color: #108CEE">return</span> <span style="color: #108CEE">api</span>。<br><br/>
    函数体内可访问的变量如下：<br/>
    &nbsp;1. <span style="color: #108CEE">api</span>：接口的schema配置对象<br/>
    &nbsp;2. <span style="color: #108CEE">api.data</span>：请求数据<br/>
    &nbsp;3. <span style="color: #108CEE">api.query</span>：请求查询参数<br/>
    &nbsp;4. <span style="color: #108CEE">api.body</span>：请求体（针对POST/PUT/PATCH）<br/>
    &nbsp;5. <span style="color: #108CEE">api.headers</span>：请求头<br/>
    &nbsp;6. <span style="color: #108CEE">api.url</span>：请求地址<br/>`,a59c65bea7d5065f19eb9c918a716c33:"必须将修改好的 api 对象 return 出去。","05fb5edb84e41c19b0f5429fff20b834":"返回适配器","44af993b124817085dc2579a9f842d55":`可基于 JavaScript 语言直接录入返回适配器的函数体，在函数体内，您可以对 <span style="color: #108CEE">payload</span> 进行处理或者返回新的内容，最后需要 <span style="color: #108CEE">return</span> 接口最终的返回结果。<br><br/>
    函数体内可访问的变量如下：<br/>
    &nbsp;1. <span style="color: #108CEE">payload</span>：接口的返回结果<br/>
    &nbsp;2. <span style="color: #108CEE">response</span>：接口的response对象<br/>
    &nbsp;3. <span style="color: #108CEE">api</span>：接口的schema配置对象<br/>`,"98498eb59e87ec9a0eaf98ac55628da9":"当前请求的响应 payload，即 response.data",ed33c46d1d69336bb011813e8352fa01:"水平方向","963e9ff4252cdef288063c41eb6d4998":"垂直方向","4117e80d2c2e52f795ec64160f399364":"垂直居中",d365d58d281508b9982f6a0370649ae2:"水平居中","21af94c1abc5891b2703c9321417a1a9":"间隔分布","849b9b944a65eb0685f3e6af60a0c523":"水平铺开","50334fc77fc5a2c2636f14f158d3c417":"上下文变量","7f05bea37729325a6cc84eb26bb9f8c8":"请输入角标文本",bc3f5a690d8c3a47d27ef8a1b127bafc:"隐藏选项不能设为默认值","240a19929878c26f5e4c41c08f63cd1c":"接口校验",ae7ca6f3dec57a73ddc145a7094adc97:`配置校验接口，对表单项进行远程校验，配置方式与普通接口一致<br />
              1. 接口返回 <span class="ae-ValidationControl-label-code">{status: 0}</span> 表示校验通过<br />
              2. 接口返回 <span class="ae-ValidationControl-label-code">{status: 422}</span> 表示校验不通过<br />
              3. 若校验失败时需要显示错误提示信息，还需返回 errors 字段，示例<br />
              <span class="ae-ValidationControl-label-code">{status: 422, errors: '错误提示消息'}</span>
              `,c6f30c2f084ddeacb7944235348bdaa4:"内存变量",fa6b01f51cc2b8e16bfbb914b6c08ace:"确认对话框","4cb9c4bc5cb960fcd03fceb2d2e62f3a":"抽屉标题",fbaa94ca6b6e6e76a07124e80733f109:`/* 自定义JS使用说明：
  * 1.动作执行函数doAction，可以执行所有类型的动作
  * 2.通过上下文对象context可以获取当前组件实例，例如context.props可以获取该组件相关属性
  * 3.事件对象event，在doAction之后执行event.stopPropagation();可以阻止后续动作执行
*/
const myMsg = '我是自定义JS';
doAction({
  actionType: 'toast',
  args: {
    msg: myMsg
  }
});
`,fd2bed5e9a84273b22f79950a0a1807f:"悬浮态样式","1daee167a43c72dbe9e31e955b670b4f":"点击态样式",d117954f3769008ef22b864060913c65:"禁用态样式",d37c4140bd531fc117e91e727d7e576c:"常规态样式","0371c0e05806c01e5ce2f26e9e2e39c8":"编辑样式源码",bb7654f7c2768614e95a0da7e94f4045:"应为冒号",af26fdb215bad5b2296529802b129c12:"应为属性","3955b2e2e06144010a1142d3624b17b1":"缺少分号","052f7eec7ca35a6b4d72d169ee1de494":"请输入表达式","10710f1c01d960a3ffde384115296026":"块级(block)","26b10072a4e0c8c9a3a1142db3d7b3b4":"行内区块(inline-block)","2c7fe494c99c94ba5965f963fd7d3a4c":"行内元素(inline)","39353c2b258e4bc73d8dd6a46f0a7955":"弹性布局(flex)","553333a72dec41b54e8ed18d49453a76":"默认选择第一项","86bf16f0cb7fd8b1fef2e1439e06b632":"样式源码","7893f221dae53be8e3bfe72d2eb8a240":"图标尺寸",f36616e35765ac3d5c9c7646e50a305d:"初始化数据接口请求完成","48c43999cf3908d9f5100a6d5f0b4404":"远程初始化数据接口请求完成时触发",aa6070a7f454f554fc1c7d8b1d2d935f:"响应数据","23d861e4b6635508eb877a50a9333a9b":"响应状态(0表示成功)",a303669d47440ed05558efbf3d5d0592:"响应消息","31769d6063c5ab0cfee842b395916fd4":"总行数","092798b39c21e4f73dea5107fef3a61c":"响应状态",a556b5535b6b0e5925d59bbc54b58946:"初始化Schema接口请求完成","2cfbb19c3e801c5f4a11dafa1ec7884d":"远程初始化Schema接口请求完成时触发","7bb4a8abc423086dbd1edeed4cd3f718":"当前行数据",f74fd69ce55e3f96fe9a032c0da42330:"当前行索引","5db079b140feffa84c84d1b51d824dea":"鼠标移入行事件","90a5608bcd85a3cfcfbb5263a229915c":"移入整行时触发",e8bf039de5dc6751c4045f55930e0c83:"鼠标移出行事件",f1ca0d305f3251a81f361a2dc8e11fff:"移出整行时触发","41c5c859a80b635c23b3b4d1d8b44efb":"已选中行",f87912f19be48f36e4e261e585764d6e:"未选中行",f97f8b90f09fb7df39c5c9ae3554b4c7:"更新列表记录","0449dab523020003eee89a0751e1c003":"内容区域自适应高度",e406488d1b9545168eb1896e35139bf2:"确认按钮文案",d919d62d7e5ec5cb63ad47e5dc347a7e:"取消按钮文案",b12df8decf62700970e08b9b2ebce1f8:"确认按钮样式","7f29931020c2d8ce97b8043a933db151":"取消按钮样式","1b43b43e692a5b6b2f6ec1417791a550":"远程请求轮询结束","0de773dedbe5875ca4529e7d0ce9d2bf":"asyncApi 远程请求轮询结束后触发","9bf078fb5589f2c09031f1f2b5a8d2b1":"设置此属性后，表单提交发送保存接口后，还会继续轮询请求该接口，直到返回 finished 属性为 true 才 结束",f63ba7e3c9d8de0b8b4f769055a36d2e:"设置此属性后，表单请求 initApi 后，还会继续轮询请求该接口，直到返回 finished 属性为 true 才 结束","58477471b3bb8ad53fe9ab18a244868b":"添加行","6070fdf451b08e4302a7dab560771222":"点击左下角添加按钮 或 某一行右侧操作栏添加按钮时触发",c9f63503ee66082fc00c3e6eac57a95f:"列表记录","7b25d5ff93da66fe95b5409731bb9838":"新增行记录索引","5e3640e4bc8efbe00a7b7c6ba169560c":"确认添加","008ae858112dcc7739985045e4326f3a":"开启”确认模式“，点击添加按钮，填入数据后点击“保存”按钮后触发","1fb1cbe49c3e72c2b5f4e0151a4cb5d9":"新增行记录","3fdaeadf0e8a3154ae62784f04138c28":"添加成功",bd4ef227fe8aae88ae6aa97236c0e9bb:"开启”确认模式“并且配置”新增接口“，点击“保存”后成功添加时触发","6452a05591d7402a8bcd9fadc950c449":"添加失败",bd7c39d10dbf6985d2be2d9a4fdcccf7:"开启”确认模式“并且配置”新增接口“，点击“保存”后调用接口失败时触发","37122b9e4499da38258b3d51b09d68a1":"请求失败后接口返回的错误信息","88ebffeee507da0f0d039eb2d05f7e2c":"编辑行",daf24d1f83e1b4fce2f57a6b041ddba6:"点击某一行右侧操作栏“编辑”按钮时触发",a9e009a9936bf5bcc9d4eabcb3e952e0:"所在行记录",e756ec22a0f897c4dd886c5f4a95b7a6:"所在行记录索引","4271f29faca65d7840ad6bb2c4a7b8c6":"确认编辑","562f54a2fec7a68f85ff192a68cf69f2":"开启”确认模式“，点击“编辑”按钮，填入数据后点击“保存”按钮后触发","3bb47b67994cb374e601fab35f63bc8e":"编辑成功",b394745a8a77179da0000293638e8a56:"开启”确认模式“并且配置”编辑接口“，点击“保存”后成功编辑时触发","9304e8f4c324b5882b550caa971b64b8":"编辑失败",b9d277c3ffab7d4b955ad10308c7ae0a:"开启”确认模式“并且配置”编辑接口“，点击“保存”后调用接口失败时触发","650bccdd6f99fe5fc4ca6cb8788e7cb4":"请求错误后返回的错误信息","947fa341a6d676d7f25bae6bef8342cd":"删除行","7508f6d66d920323d87a9f9d58487a40":"点击某一行右侧操作栏“删除”按钮时触发","0007d170de017dafc266aa03926d7f00":"删除成功","13640e78822f62b7b71bfabb4604025e":"配置了“删除接口”，调用接口成功时触发",acf0664a54dc58d9d0377bb56e162092:"删除失败","14d36ca583bcbfc5516a000eb06ccedd":"配置了“删除接口”，调用接口失败时触发","692dc28abc42931daca8fa12d69d5c99":"表格数据发生改变时触发",f8692d409bb7f122a374872e01efd03a:"添加行数据","459fd144ee129b501545d19c169269e9":"插入位置","196e71fa869b8410088b4ceb54aa7988":"请输入行号，为空则在头部插入",a26858cccbc451fd53515416a5968550:"新增一行",c520ed9911d349c7974116d3d1e1423e:"新增字段","344c1c96f9cb3275f972929755b4e238":"删除某一行数据","8910acd418e45a30f01e7e531b90b61b":"删除方式",ebf62450c3fb11c0b7e06da2d7535d6c:"指定行号","4bf7636a84714fac140e42b4cee242d4":"条件表达式","7708fb1394ce722ee73326437a66c77a":"删除范围","015f108b96c70bba6511091e159db0ac":"请输入行号，输入多个则用英文逗号分隔","63aeb2082d7cc0a316fc1e44913d7749":"删除条件","4622a4ce221f9b79aa3396cc461adc75":"清空组件数据","800dfdd90200bd47bb4bb83def4fea56":"今天",a6a93b404bc039cded728683af5d625d:"快捷键名称","快去添加事件，让你的产品动起来吧":"快去添加事件，让你的产品动起来吧","50f198f07fc820a4911d1c97a0ceb8c2":"上下文","6142a89066ca7dd6a1ce9493462c5aca":"已选择行记录","21bd0846bd8aa2296c597a1c1ff8e1a7":"未选择行记录","8f98291c9fa89c0bfce463c0a2eaf97c":"列名",c35c1a13309c6f9da9837857517e65fc:"排序值",e125986c2ba6783c4297ffe5405cc8bc:"筛选值",caafbcb52c70ad0bbbbf127ee7b08b89:"搜索值","64ef585f778c9d1b010e86b032398ab6":"已排序记录",db9df54392e408520ca12c6a56113b5a:"当前显示的列配置",bf2a4fd8ecd654982e2d466f10f54d3f:"当前行记录","85f1708454f409855d552f702ac27b19":"当前数据域，可以通过.字段名读取对应的值",e48d65cda774019d9a6677354bc781f2:"选中的值","10d23d1f68ee1facb03b1f86678aa2ba":"状态值",ed85c3f659acc9e89bcf6f0dbaa02a62:"当前代码内容",e26f6832d586f9e73d2361573bf5273f:"组合项的值","91190195405845950230616929d852cf":"被删除的索引","1b5cf3e354142cc1cdd6f56b6afaba49":"当前表单数据，可以通过.字段名读取对应的值",b06216eac0df52f6072a8adb095f72b7:"当前城市",a610ef4a4fbe8f0c8b756162acfb6186:"当前日期","05606badb4b14ffd3c38c278fb0f3c9f":"当前时间范围",de3ad0cd57153f799f7538dd1e4fd441:"excel解析后的数据","6d829f061ed82a688f2669c54dd83301":"当前数值",bc0689a4c353e9c95c5b7fc5aa49b59f:"当前滑块值","9b0c6dee9b5f48734c37901d4a430b71":"当前分值",d84017fa76584f7475e26f79767df28d:"新增索引","9d776ddd9dd2d8d85ea225df9c27e929":"当前标签值","4ed30a5be1b6680e6cc9fec0965d0f4f":"选中的标签",e01315f74dee36831d93a117cbc47c8f:"标签列表",d5c135b5a4aed5dc39ef846a6f502d4f:"当前文本内容","2eda8e3f67e2c6e02e63d27978530ec2":"变化的节点值",b4e54cb84d448952a4aa1a17ceaa6ad3:"选中的行记录",b2a18e08b0b0e0fd7e80554b89244aa0:"选项列表",c46f27dcf45a345993f1cbb63380fa98:"激活的索引",f7daf85b4501d9d2aa048f85618b3f1f:"当前的文本内容",e5369f1a5e8d2b3e64eeb627e69c4e9b:"选中的节点值","28387ec7d7fd160541e7901d9f0a900d":"当前选中的值","94935dfa6c9b908515a593956ee7d07c":"已选行记录",f10b94a4ac77878be53fad599a761928:"未选行记录","6c200daeb748ecce2c730d01837d3508":"初始选项卡",bd749c7a75af1236325d8d669e9bc5fc:"组件初始化时激活的选项卡，优先级高于激活的选项卡，不可响应上下文数据，选项卡配置hash时使用hash，否则使用索引值，支持获取变量，如：<code>tab\\${id}</code>、<code>\\${id}</code>","8b4de52c23ad472b9ece9e30d8750c48":"初始默认激活的选项卡","7806807651c37e4467f9d2fc1c18eb2a":"激活的选项卡","8a59e0a5705fea1751d77a97b7bf5d8d":"默认显示某个选项卡，可响应上下文数据，选项卡配置hash时使用hash，否则使用索引值，支持获取变量，如：<code>tab\\${id}</code>、<code>\\${id}</code>","27e0d57c4412bcb89e6aaeeb1e5935fe":"默认激活的选项卡",e83caa4c6ef82543603609c916cd804d:`可基于 JavaScript 语言直接录入发送适配器的函数体，在该函数体内，您可以对 <span style="color: #108CEE">api</span> 进行处理或者返回新的内容，最后需要 <span style="color: #108CEE">return</span> <span style="color: #108CEE">api</span>。<br><br/>
    函数体内可访问的变量如下：<br/>
    &nbsp;1. <span style="color: #108CEE">api</span>：接口的schema配置对象<br/>
    &nbsp;2. <span style="color: #108CEE">api.data</span>：请求数据<br/>
    &nbsp;3. <span style="color: #108CEE">api.query</span>：请求查询参数<br/>
    &nbsp;4. <span style="color: #108CEE">api.headers</span>：请求头<br/>
    &nbsp;5. <span style="color: #108CEE">api.url</span>：请求地址<br/>`,"8d1903162d2a50d6321819c3fcc1f2f6":"{{@1}}({{@2}}动作出参)",d5fb02425d3b8586d8d7b98971d63e68:"事件动作","5e3406cb54f255dc1be5edbaa6f87389":"排列方式","60e237a1b5e9a4cc3633898d527d5a38":"标签宽度","813a5158d9f7171d20e7df340c5b48f9":"组件上下文","8b3fd9147a07d27ad95c0ba2594fb67a":"当前数据域{{@1}}","0383d6f467ed0dd89860a7b8cc793ce9":"上{{@1}}层{{@2}}","45f3a444853a11667f97e941b53266b0":"API接口","7658a7c761a4296d5526426d29ee7c68":`用来保存数据, 表单提交后将数据传入此接口。<br/>
        接口响应体要求(如果data中有数据，该数据将被合并到表单上下文中)：<br/>
        <pre>{{@1}}
}, null, 2)}</pre>`,e7173f5a0462ffb0eb9dfc02e44155f8:`接口响应体要求：<br/>
        <pre>{{@1}},
  page: 0,
  total: 0
}, null, 2)}</pre>`,"319ec20dfe05d268928076e0cbb8e45a":`接口响应体要求：<br/>
              <pre>{{@1}}
}, null, 2)}</pre>`,"419b0a74c438b81124992616dd0a36f3":"快速编辑后用来批量保存的 API","152e8c553fe6fbc51df7c72a45917107":"即时保存时使用的 API","91aa2166ee4811414381c8d94e6567e6":"API返回格式不正确，请查看接口响应格式要求",c00a96da01a3cf0445df3b0d05918317:"查看数据","7695a3b5bfbcfdb3e7b085f8cd6455be":"编辑数据","6f2f7e3794aa8502d02cb20aba881df1":"批量编辑数据","40f8f022c51542d282edda5b9ed4b512":"删除数据",c1c29e445748fa076c5fee45274bdd36:"批量删除数据",ebf98d77b1a002935ad5c41446f257b3:"确认要删除数据",d00d3377afe33a0f1b63293f3a3e3a79:"确认要批量删除数据",a094e5b7699ea4b61094cc4120170423:"数据来源","6f99b6eed37795cb97d5f6370c32113b":"基本样式",c8b9dbab4a3e3ad283d3d95a1663cd68:"当前行记录 : {{@1}}","83c9828692e1bb250a069bbf37807190":"表格2.0","63ddcc28ac20f6cbd4197671ae7e628c":"启动自动刷新",d6ba60b5bbf5df4cc2959dc897c2f792:"停止自动刷新","16ea2200bfba281fdf5e6870498790cc":"[amis-editor][CRUD2Plugin] dynamicControls的值必须是一个对象",d45a439fa6e82798bc1e98d738cedea3:"开启后支持选择表格行数据",e821ce185e41eac2ab846ef5cfde2363:"分页设置","4d7080ff1405a1f08c5415a0f942c336":"分页模式","290026b0b40b637e774c6af435b897b5":"过滤时刷新","67584675004a48be903e9f61c733cb35":"在开启前端分页时，表头过滤后是否重新请求初始化 API","8cc3589c442c478dde8ceb60aeb29e03":"翻页后回到顶部","9cb14f1355b3a312ebd62ebff5e1e06b":"无限加载时，根据此项设置其每页加载数量，留空即不限制",f300691f823aacea572e63bb7fb7ce8a:"点击编辑分页组件",d81ad681a447abae7cba38779ffc0c9e:"未找到分页组件","86b17bba54b65c6a62895357095f63a3":"接口轮询","983a8ab6a97da0a0dec7b5c751cf02b1":"开启初始化接口轮询，开启后会按照设定的时间间隔轮询调用接口","4cbec5cb54ba399ea81381a75f5f1f93":"轮询间隔","3a5d9512f474ff7c2a017a13e7f8a9af":"停止条件",fd649ca959662306b734f03438869bf0:"定时刷新停止表达式，条件满足后则停止定时刷新，否则会持续轮询调用初始化接口。","0516133b87f03f859e23bf014d71ab57":"模态窗口期间停止","52dce697d35795d7835e483d69f72419":"当页面中存在弹窗时停止接口轮询，避免中断操作","6d5b1e5a235fa839c759d2362654d638":"静默拉取","8b34b22a4da1b9b855a5efd33434f5e7":"刷新时是否隐藏加载动画","32aaf2f04e983290deceb0674fb0d159":"表格区域",e3e100dab1d8d13a2e3f9c391b0b108d:"顶部工具栏","2aee96dd788b815f83b3d118188e7fd9":"底部工具栏",cc6a173a3601403f2d96cae2180539b3:"用来实现对数据的增删改查，用来展示表格数据，可以配置列信息，然后关联数据便能完成展示。支持嵌套、超级表头、列固定、表头固顶、合并单元格等等。",b58da2d7e87937280042e1deca1153fa:"流水线任务实例 ","93b824b57d4c22085c1035f7254619db":"单元测试","2a8249ce9e52240855dfabc0efc83a3a":"通过率","09eb6d258fd00deaf350c2d1a0fd6f46":"任务实例",a5cd4ea1820d5c17c35e86885b1ef10d:"报告","3791ba5c2962a42a251489872342b7d6":"组件名称",fcd70206ed8109b7ed361c7bce0922c4:"每行个数","3ccfcb4c0daac7bb3ef1399b4389e3e5":"左右间距",ab57255c391c3732b4b38ae78f55e058:"上下间距","390d9ad686ba5622d49443d1e3659d51":"当前列表项",b271e427962758c71e342a2c06df493a:"索引",d63b707be8a6feb914a3f6899c38770f:"左切换图标","911f1640e858c362bfb3ba9a55e8269a":"右切换图标","8a0b967b90e89dd8e7311065c1de720a":"切换图标大小",eabda74dd2ac5b4e6eab9229e0e63f79:"接口可以返回echart图表完整配置，或者图表数据，建议返回图表数据映射到 Echarts 配置中","59688d1a484179aef8edc0ccbabb9fc1":"跟踪表达式","3fd81a573ea309b203ab019c1aa95a2c":"如果这个表达式的值有变化时会更新图表，当 config 中用了数据映射时有用",d0d852432ce09f627e6ae471b3f86b0a:"数据映射（dataFilter）","06e89ed3cb501da6d57e35bc28a37089":"如果后端没有直接返回 Echart 配置，可以自己写一段函数来包装",f25c9fd2852b85502157decbedd19082:"原始数据","2695f318db820c2bfe4c886fed3697f0":"echarts 对象",b76e25de5689ea51af0688d0ea6d7b39:"如果配置了数据接口，接口返回的数据通过此变量传入","45bc998df29cf75725df6141098d5cec":"debugger; // 可以浏览器中断点调试\\n\\n// 查看原始数据\\nconsole.log(config)\\n\\n// 返回新的结果 \\nreturn {}",e8f96ea47cb322f4f1a4c938c7b155ac:"默认为追加模式，新的配置会跟旧的配置合并，如果勾选将直接完全覆盖",e732f4c0d8075670b6c75cc52bd1f7d5:"图表下钻","00958a92c5804d56047c18fc206382e1":"宽高设置",b3e991d11b9f0ee04f55627c62d4fcba:"默认高度为300px，值单位默认为 px，也支持百分比等单位 ，如：100%","8e5ff4f20463c03f7935e0627888c03c":"折叠状态改变",bcfcd9d31a7a469fa1f3a2ea9e3e3f89:"折叠器折叠状态改变时触发","0e8638286319f6efb0afe2616714e8c3":"折叠器状态",dce3879aaf11920ab97c94781ddaaed5:"折叠器展开","0f680e944e33feb4719bd0dfe618aa50":"折叠器状态变更为展开时触发","0469f19533c2fa1d63418b86ec203ab7":"折叠器收起","3ffa0c7285daa4c39f7b7699a845860c":"折叠器状态变更为收起时触发","578125c5d7586aefb797caca9111ed1f":"组件展开",ae772db91ee1bd385ffafed3e9b8f4cc:"组件折叠状态变更为展开","5882cb6b5133d35488c386965321c60b":"组件收起","04e36bd57e0e1623da86ee2c19c2a885":"组件折叠状态变更为收起",d2fa917958506736ea39edbef5e1cea5:"折叠面板折叠状态改变时触发","58164864ad00f5d134f304d309055eda":"当前展开的索引列表","44732aa2566399b71483e63252d3dbc7":"折叠器索引",abd55237a0df8da6ffda1ef377982707:"列默认显示","67a2d9746956b631dd3ae9d13b6ae9ff":"点击遮罩关闭","36f5b682310bd52f19c63b077ec054d1":"隐藏按钮区","6bdc97671296112658e3a1cd369c0686":"遮罩颜色",b3b287010ea79586507a77e0580d9cad:"底部区","38cf16f2204ffab8a6e0187070558721":"确定","40d39c3bc7bebced7d63eace0191a0a8":"角度","5d606821df2528b127c07333f5f403cd":"回访数量TOP1","796011a5b11f78292d93a73ff284de50":"北京分公司","7232042d4e1b0c8c7172d68048358619":"最大显示个数","64095ae27232995731f776f12bf66d8d":"当前循环项","23b3169341314eda02d860be90ebf487":"全选文本",e2b67a7f51c977887d2b3c2de2727509:"操作区","4f2ef285e13e20f551f7111f535cde11":"表单创建向导","7efcb0ce09e8842951c5cfd298b4e7ee":"使用场景",b4f035fa6f9faaa78707b72c352c6a8b:"[amis-editor][FormPlugin] dynamicControls的值必须是一个对象",cd8b367599d0c748e74029da8c10d295:"本地缓存","09a94b2400f7f05fbf2fc37a20b097d0":"提交成功后清空缓存","69445b3c5ddb606c7d51fd941e4aae10":"自动填充数据域同名变量","86f056f1cd4e25d5bd2bebddc971032b":"默认表单是可以获取到完整数据链中的数据的，如果想使表单的数据域独立，请关闭此配置","5cd08fe4cd86fffe7cd23d934d4d3b32":"提交设置",e59e1cb3f366d6e7012fe64748355b0a:"如果底部按钮不是自定义按钮时，可以通过该配置可以快速修改按钮名称，如果设置成空，则可以把默认按钮去掉。",d3458f4ee2c2203bb51f9d138dfd0c05:"提交后重置表单",e89bb79f0a0cb4fa4693c4a5ace130f4:"表单提交后，让所有表单项的值还原成初始值","59c1b37b7ff983385a2521541cbcccf8":"阻止回车提交","794020840d754ea7fb58ea3bf4394e1a":"默认按回车键触发表单提交，开启后将阻止这一行为","87a6f142d80987db2e31569e403619f7":"提交后关闭对话框","2e799a2e68a3303201d89752ae201a88":"组合校验","585293753528cd2f74501f41fc2e2c30":"在表单顶部显示当前表单的数据","86ed196f63524be7775e5a01b0152793":"标签对齐方式","6bde56d911167d0f47aae6bab762cd70":"Panel包裹","019078f52f120a70fc23d94ccd364200":"吸附操作栏",f9e5a5377c1f56f1d09ae2bc58bd2d5b:"开启后，滚动表单内容区时使底部操作区悬浮吸附",cc6c35a3e0f97fb9747905dc13e9b625:"编码","936b62c222fcf6ba10fde069212fcf97":"省份编码",d7009d07f04d208f84e6c343fbc80ab7:"省份",e982852e24060d47f29be600837b675a:"城市编码","0dad46b34f0ddc802bce0351dc4745eb":"区域编码",d3ce40d862f1c7e4748e6c28ffb0a007:"区域","716c3dc1bd990ccebc4fee34eb9171cf":"街道",fd3913adcb81427f1895ab5b79ebe0b2:"远程上传请求成功后返回的响应数据",cfe5917c83c8c31d5e57ddeb1f3460a5:"请输入行号，为空则在尾部插入","9a3af29bac4ff8dff3305e283acb2516":"根节点文案",f273cc663180d6f62497ff3a28f4fdd7:"新增文案提示","897deae9c4c3dc0baa4a6989bb8727b6":"添加子节点",aefacb210d5fa5eff897a302269ed920:"编辑文案提示",f9886b3adb1ec253d24432615b62151c:"编辑该节点",b8079d1411b21dbc48749154a827a680:"删除文案提示","176a53a7fc4759482d71312551d868ec":"移除该节点","7650487a8758fd50c87d6c9cff0aa5ac":"地址","3d18ca01ddd1b95e982ec44ffcda8165":"经度","6acaee71fe6a23c17f18625df01bab23":"纬度","40d58bb6ac9888b0c672f5bcff74da25":"地图厂商","542241c52bd2efb24dc37b32cab2329c":"列全选",d94ec7663ac9ad2d09fca5c86928b434:"列级全选功能","7020fa7949a5ae24cc8eb696772d97fc":"行全选","227c24282ff52f3f6f52dfdb853cc1ad":"行级全选功能","83a60f8b752a1ef3ce6a240388d635aa":"默认当开启全选后居左排列","316a639631f712780829a202258ec3cc":"居左",e2aaec83377244c9d15f78f51cccfe6f:"居右",b7fc7efe26efb867838223936b7fc467:"左侧选项展示","505e204cdd98afd08c174d6dcec0dc09":"已选项","9b1ddba55066e0f329ca3cca2e58909c":'可以通过接口获取检索结果，检索值可以通过变量\\${term}获取，如："https://xxx/search?name=\\${term}"',"14079611c014884bbdffce4d0e5f4d73":"可以通过接口获取动态选项，一次拉取全部","1fd65acd90f99791d70ca70e046c9f05":"假数据图片","5789be67da4a1dc0fd9600bd626776a1":"只在编辑区显示的模拟图片，运行时将显示图片实际内容",eded9ed93a453c3f790126e30b776a22:"标题文字","11d938eaa50cff1b7e59c64b891de73d":"标题边距","36285b8c01571203859d6b8ce7af0cba":"描述文字",a7dcee68c68f8f19f39c9788e08fac31:"描述边距","80dc1f6307e4acf29ece7ac2f6e04334":"放大图标",faaadc447b1c2b1adc920d9c9aedcc25:"序号",c4767bc3ad5c6812a8ea302e6126d988:"3月","499d02b4034d1234b407042ccce614a8":"列表标题",a302da1d8160ed0c72719c13346042a9:"这是内容简介，可以设置显示行数","4e74ff55b36a0f35d511a761c264fce3":"内容区样式",a67496c9ef1b1951fb9f104d1ef17997:"标题栏样式",af608093f1d3c25e85bdb4ed17f8b947:"工具栏样式",fa898e5ae4c0315061129c6cef47c326:"边栏样式","087e631da111edc6db508289a7b5a95b":"分配不同的值段，用不同的颜色提示用户。若只配置一个颜色不配置value，默认value为100","88f8919dd239f2018d267f79d71a672b":"搜索框、searchbox","6fe93193cbd9f0eb9315a4ae83343786":"清空输入框","985d97bfa88cbaed452ee5900ad26d45":"服务Service","6f6f1e6feb9fa966acaddae627b73948":"接口配置","270ac7e329c21eb9a5e4c342f202bbb4":"Schema数据源",bfa178f875f63957378fc2d0bd8d0f59:"配置schemaApi后，可以实现动态渲染页面内容",dd22d42f40442605fbe0c5da03203ffb:"是否Schema初始加载",eb1d029d107422d00f55c8b76e66ec75:"WebSocket接口","470e0b39b2486883a10c1048f2df9f40":"Service 支持通过WebSocket(ws)获取数据，用于获取实时更新的数据。","3bfc17446f0456f9692f25fc90383ec1":"对于复杂的数据获取情况，可以使用外部函数获取数据",ec9b680403aab2f0498badb090f04364:`/**
 * @param data 上下文数据
 * @param setData 更新数据的函数
 * @param env 环境变量
 */
interface DataProvider {
   (data: any, setData: (data: any) => void, env: any): void;
}
`,"642d94fa418e15a3997bcf7488315e4d":"原子表格",dad6519c7c75a23bee8ccb576e4609a2:"数据源key",cba09997ca646e67544f880c80ab97cb:"可拖拽条件",cbe89f133fda6e0d1bec31eaf6aa7853:"保存排序","413c6b52c23a1bf5cbc9fba1485f88ff":"[amis-editor][Table2Plugin] dynamicControls的值必须是一个对象","5b11953888d7c376458b397f222d4533":"绑定当前上下文变量","5e1872b4afc82fc5114b32aaf4477500":"选择类型","443f46c76ebe6ec4eb502f95c451e4b0":"多选","9fd1b7cb41cfa3b83bdfd2a44381417f":"单选","9c5c1f96ba29b9c0a8915be950e91cb3":"固定选择列","5fd9a061aa8d25137801caf78d8d0f42":"选择列列宽","107ce5ae5c46f0e63565c593eb09a312":"全选所有",f3993a00b12133950b96199dbf08fc43:"反选当页","0cf1882623b2b50f0416030c980c3179":"清空所有",b5a34b813ffd5d7d776eb8ca56a1b45d:"选择奇数行","0c2a525c7e183c05b46caa6b52a21b9f":"选择偶数行",df5a3392ee995cfaa13787b11a1e2652:"行可勾选条件","76417db4eeb031b0bc15f4cf8178ae46":"最大选择条数","4d250d2754fbdc9cbd131bf48d445894":"展开按钮位置",ea7026a83bf0b63ecc31fd8e215766de:"可展开条件","9e9b4716c08d4f15d9d52e00281f4265":"配置展开区域",f09e007fa1c2e7eb9ec01f8481104d94:"嵌套字段","1b4b8d809a7d253bb650d0f104d24ea2":"声明数据结构中作为子节点的字段名称，默认是<code>children</code>",f53160d07e516a3b0d38d61822944b03:"行角标","8952f4e24070a79741a505dc20bad8f0":"高度自适应",dd7befc8e7c124f6f4ba9bbf3de9dc53:"缩进尺寸",eedd7279409d000114e27194f3c8a5ea:"嵌套结构展示时，设置子节点的缩进值，单位为px","4bf8b7a0b3385fcd34a8e0cd355d7964":"行类名",a193a0f0b38ea06f46b1d3051c433cf5:"弹出框","3c87936b95f844aa21605c75d217c8f9":"弹出框内容",a0f14a16feaece37026df27feb9070a1:"配置弹出框","44c9d7cb031327029dd0b1bc92689542":"[amis-editor][TableCell2Plugin] dynamicControls的值必须是一个对象",f4a3780b66d65a315a762976ab5e781f:"操作按钮",a0dbb2b0a000cdb3a265d096d4e5ed8d:"固定当前列","00ed921de3ababcafcb0594ff0e9a997":"左侧固定",a5b48f7807e3c1ddd80fa160f46f9cc9:"右侧固定","5cbd7ad8a3ecf059b62219c17fa58cae":"标签内容","3b4bcc788ee92004cae962801b471b8d":"自定义标题显示模板","2328f91f1e160de6a06c2004d49ec53b":"配置标题显示模板","11e6dfd7d3fcb0892c2cecb6d7549102":"请编辑标题内容","3d95415ee75837db2660255ea1ca1b9b":"时间区","2fe3c5280ea644639bc6378bcecc8b27":"详情区",e1445cd3c4710c8abf7c1b3b1ce060d8:"浮层样式","1f9ba0bdeb0cf0d3193cac269dd2f708":"最大显示行数","2043742930f9833b4405aa0314a496b1":"填充假数据",a903e51cb1915b56f94bf54a81816cf5:"只在编辑区显示的假数据文本，运行时将显示文本实际内容",fd8f406e39d5c4b1f1f2251156eb34ef:`{
  // 上下文数据
  [key: string]: any;
}`,ddca9c0f0e3d07c3341701b80f139cc0:"是否静默发送请求，屏蔽报错提示","6de215632addbb664d254e00532d92aa":"最近n小时","5bc676c0d274d9a4674f832ae07c6757":"序号「{{@1}}」的字段名称不能为空",aa70a469e4ceb0dede9d73cb8d8d953a:"序号「{{@1}}」的字段名称「{{@2}}」不唯一",acb3aec4d12f6ca06a1e45302030cdb1:"数据处理中...",cdfd25057876424324682b5bdde38a3d:"请先填写初始化接口",a9fea442707e26dee478b34a2f2ce263:"请先填写接口","4cc6a76c146c0360a41ceaf5e212c891":"基于接口自动生成字段","4484fa04e7b71db4c8293e5bcb53eca4":"添加字段",eea3ebc33e69694e0c12d4ab2e07a553:"字段标题","404f38ae7ac36860c0b3af6f2f4a13f9":"菜单名称必填","822be91778b5ac22d31681f7256b849b":"不能将菜单拖入其自身内部","088b54ee8f10a43977afa9d16ea5350f":"自定义菜单",cd1e63aed43df0827cc09fb26521936c:"编辑菜单项","648c5e847b923bdd51bf5c72436169ba":"添加菜单项","8ee9f276a6356aab65f8178c4f30fabd":"菜单名称",e3cc5bd7fc92d7287a14bf5398c4ecc3:"父级菜单","24ceb2a06b1962b396b75286fc0960d1":"请选择，不选择默认为一级菜单","9483042d09dbad731addc1791b5d207d":"菜单图标","6107b3c4fd8587589210cb9fe2fcdad9":"请输入地址","76b5162d1b7a16b4b6adf1b79231c96a":"跳转方式",b2d1bffc689e4478519d8a010450192c:"当前页展开","80fb2db8d3f212b3dd130d24da1c970e":"新标签页打开","70b4d0676f9a9640c5a7b1d5f66faa64":"角标内容","9f3cdf6aa12759fab68a5a88179462c4":"若为空则不展示角标","07c60b53a84fd7751095864a5310cc7d":"自适应","81522afdfef2e4121c9240d00583f531":"百分比","9a8aed590bb7fcdd9198daca349b055a":"固定列宽",e0dbf4a939e6c84610d28b8a9b1803c1:"百分比列宽","41be5ce31e28742d0b259fe734e49c28":"至少保留一个根节点","49198f84cea6c212cd5d463037827cd5":"添加列",fb4c95bae088e3f216ea9312bcdb26ca:"列类型","8eebb8ae809cf1ceaa23cd2fa2c73898":"字段列",b302476563937e24190496ab668ebd26:"未找到对应列「{{@1}}」",f9e759ac21d528e7d1e84b5feae4560a:"空列",bcba3b2e1f7b4fb528213e999333d331:"确定要删除列「{{@1}}」吗？","7202bba23492811d2964234485a909e5":"容器列","4c2dc6491d29ef77f421daa19541c8ab":"字段加载中",e11e888f47bc6cd5816a1147be05e792:"未找到目标组件",e6413abdc2fd3ccbbf15327e4004b1b2:"去编辑目标组件",fcebd5cda006253365b4453596290f48:"暂无字段","161f53cdfabe18451e4067f2426cca0f":"未找到工具栏中对应操作「{{@1}}」","4357955c64f836dd7f36af048d857f9b":"确定要删除工具栏中「{{@1}}」吗？",dc858fed3c66a1194d5f9aec81faee3d:"暂无可添加操作",fb3304d27d85c79d89ce6cac22a174b8:"自定义按钮",e40c411876b4a57e24fbc6b4b4fd5027:"操作生成中","0e7bb2c7879f0a34c02f547820b0b0b3":"错误忽略","5d9fe78268b03e8aa41ac316ef610d9a":"动作发生错误时，是否忽略错误继续执行",c0d5d68f5f1cc399311e92905ed2fa80:"忽略",a165be161ac250720f6f25820dd2a5b3:"不忽略","9cdfce42ef0fa346511538131e51328f":"预设","17817a4d2da41f4261f4155ada59e395":'<%= data.ignoreError === false ? "找不到组件和动作执行失败都中断" : typeof data.ignoreError === "undefined" ? "找不到组件容忍，动作执行失败才中断" : ""%>',"0db9e779f5cd9ad8bd3d16d7e8a16b64":"弹窗消息","4a502e748d1335385c2c05bf30e582e7":"打开弹窗，弹窗内支持复杂的交互设计",c1b3a483bf057f5afa118f96644dc8a3:"弹窗来源","0c5cbc9d345936876230a0b09aece2ff":"选择页面内已有弹窗",a781b5903a4013c147783e1047f42e08:"新建弹窗","53bed22bc03c0fd61fe4fb81101f712a":"弹窗标题","953131d14e66fae5e3611f8b419b7ed5":"请输入弹窗标题","7cc53692d650e049802d808b81efe7f5":"选择弹窗","939402f3ff754d8d815eb7f6cc991bea":"弹窗类型","139c619a4dbfc26fb61d76dc388e3e7d":"请求结果","0eb4e63db88e158600dab0e723e8a213":"重新请求数据",f16654604d6cb2f62469e5aa9db19871:"如果开启发送数据，会先发送配置数据到目标组件，然后重新请求数据。",a0c117d927c6290bab55ae0e848a4d4b:"开启“发送数据”后，所配置的数据将发送给目标组件，这些数据将与目标组件数据域进行合并或覆盖",eb6cd21b9ed45ded3ecdb12f62b590e1:"数据处理方式",ac24ffeb131a7a9d2465b3ba7b14e10c:"提交结果","0e3517fb21e2c4066bd0ab75c51bc6fb":"请输入存储提交结果的变量名称","0e2ba6becfa8760853cfa31c9e15a94b":"如需执行多次表单提交，可以修改此变量名用于区分不同的提交结果","4604d5023479171cb6e901dbeccf62c0":"错误信息","71f6236494bfc8b023804abb0cca1639":"错误详情","4e6bfc5ad98f719f9bc6b2ad3b6440ee":"提交请求的响应数据",bf0f829689370b36d01ce871324e0bb6:"校验结果",d23157205c994bde20bb2605c193fd27:"请输入存储校验结果的变量名称",a422eb12ebbfdd3347c4deb5ec6b4b54:"如需执行多次表单校验，可以修改此变量名用于区分不同的校验结果","0552d08957a270160d5203e0611661b2":`自定义样式仅对当前组件生效。示例：
// 当前层级
root {
  color: #000;
}
// 子层级
.text-color: {
  color: #fff;
}
`,aaf9656ba493b58fbab398d52efa9f7c:"编辑样式","3ac7b489ba8cb811386c9f4fbfd1c6cc":"结尾字段名","9da561f34a93e0275c56b84717ac9cf0":"配置了结尾字段名，该组件将开始和结尾存成两个字段","475cdfcaf614f2b69d88e1e34ba76079":"主键",c28f86f11fc814ea5696af5aa9464cbe:"每行记录的唯一标识符，通常用于行选择、批量操作等场景。",fa66d1acaef7cd181f21f5fc2895becc:"启用严格模式将采用值严格相等比较","9e3790244299ed296601d79e0bf43a5c":"新增按钮名称",bbbeba31bfc391bd0741ac62ade78c5a:"编辑初始化接口",ba62070c3a350918d542e990d3278b07:"新增{{@1}}","06e2f88f428b7e26f7da3cd4d40ec2ed":"请输入名称",c630aa278a251b72bebf09284095112a:"配置新增表单","52830af276fb186ff93f16a562acb2f6":"卡片组",f27f10e4660cba730189cc73bcbec0dc:"线长","35633d4bcf019258d4a5b927e8644bed":"标题样式","3ec2bba02a859a90b023ee793a2381d5":"距离","12ae2cd5a178cdaed37967ec4226c4d3":"标题和最近左、右边框之间的距离，默认值5%","7eac9d196c43693b0820c7bc0ab504c7":"循环渲染器","21157967162b6206ec88d66789bb1eb4":"对比编辑器","6d36d88078b28530bd4a236b1033c1db":"表单项集合",b400e476d7cc8a1b42744661f57525f2:"隐藏字段",a0e6ecd1eba5673e16218e559f549112:"颜色选择器",bb712c16299683ab1af22258740a537a:"日期框、input-datetime、日期时间框、input-time、时间框、input-month、月份框、input-quarter、季度框、input-year、年框、年份框、年份选择","0bbad229b14369f667abae7fa8453d69":"日期范围框、input-datetime-range、日期时间范围、input-time-range、时间范围、input-month-range、月份范围、input-quarter-range、季度范围、input-year-range、年范围、年份范围","912e3cf5ce8720c39e7a778e916898b5":"输入框组合","9462f8cc8d65d991be1593493039b85b":"重复频率选择器","224c9f857217e09f7c244093d4f08cd0":"输入内容变化",ce369362c3ae69c27d717d3210303e27:"富文本的值",de0302f6f891653ac2d8417a46249ebf:"列显示开关","142184926b0ae6169a9b7bdefb9b42ff":"是否展示表格列的显隐控件，“自动”即列数量大于5时自动开启",a0d2d27fe320721bd5b0157fd5466b9d:"标签选择器","997a27d508152023fd04b7227b531681":"文本框、邮箱框、input-email、URL框、input-url、密码框、input-password、密码输入框","98cb62edf3436738df2561d01ee19ab0":"tree、树下拉、树下拉框、tree-select、树形选择框、树形选择器","010b98c12fe130496016ea515b70ec32":"当前选项",d8bab42dd5fad3f25760e190b552fac0:"配置默认态模板","70864b156cd3a9c8d982074feb01f587":"配置激活态模板","369f7b53301a54c2240a618827ee2f83":"选项名","70aefc6ad8dffc85d083aaa38aad9d28":"厂商","3fe044338b0be3a388c1a00fb9fb0592":`传入参数格式应满足如下要求。<br/>
                    <pre>{{@1}}, null, 2)}</pre>`,ab7c4bf8e1f3d2779d62d0e5e038e2de:"列表选择器","828476b63e65ac62976920fc753a3071":"多行文本输入框","895013340b5cba65de69aefc9f4f0dff":"uuid字段","993844afdf1cd0bd368cda41fe2d39d7":"水平分栏",a94180c2142df3122cffcf1900c507f9:"实时日志","319c7a1a88910df53d6cd1b408f5894d":"当前页码值","52f3b7dd57c2cc44b645afe6d944d07c":"功能型容器","7c39d9e0d516e260fc3513eb8e5243a5":"状态容器","39282fd22802ac1d9f99cdd0ffff253e":"根据状态进行组件条件渲染的容器，方便设计多状态组件",f449bcac0f09a349882e74800f20d724:"状态一","3b5a5cee1bd8775463be15d96eac23a1":"状态一内容",f7361c5ad849477766b12e970bbd71f0:"状态二","0880f36708cd0408167f318936cc6df1":"状态二内容",c887c83f280bd63012d32179ff5273ed:"状态名称",a30fd0a2a17e3dcf701b3334341aa39c:"状态条件","7829a5f84414f02562a5b17b1c301046":"状态{{@1}}",ca035ede21ad993ba8f29a2e615b61e0:"下个状态",b7349a87c4d838d1a6047c2844b1744a:"上个状态",df7f223af52c3261a3b23a152bffe26c:"状态列表","8256d18231287d07406fbf019e81bb01":"新增组件状态",bd863f35feb02c40cf14493b1dc1b198:"显示条件","93553f4588b0f0c782f58182db0490d7":"状态内容","7cb7a4480adf1c3e13378201684dbd5f":"表格展现","22efa960b935516b3016b4a5bd7f1160":"任务操作集合",bab9f8592e1b8e286ee17ddf5dbea4b3:"显示文本","97d43b5b163c9299f70b76d12541828c":"新状态","01ceb3edde98440157f199c292011dfc":"无数据","8191e975f70edd63fe65476dd8bc0ddc":"组件id","7c80a8d7f7af4e8eeef653c0af82010d":"输入组件id",c619838a5e3c9641a80fc5f1a9001a9e:"持久化Key","78979b40f53cb6510c6bc1e1a2473fc1":'使用静态数据或者变量：<code>"\\${id}"</code>，来为Form指定唯一的Key',"72f4712f23226b5e01442ab9b6ae90bd":"保留字段集合",bee8b35158dc5ddd44ebbbd9f29de422:"如果只需要保存Form中的部分字段值，请配置需要保存的字段名称集合，留空则保留全部字段","5755fa70717929d1cabc4f4d9778d08e":"请输入字段名",d149ac9b09b2aec63ffb58dca98fc281:`传入参数格式应满足如下要求：<br/>
                    <pre>{{@1}}, null, 2)}</pre>`,"8ea6d154a7c25f8802406719c2ec3c02":"内嵌：以平铺方式展示在页面，其它两种以弹框或抽屉形式弹出展示","361f434f3b82973d6526efefbb538118":"标签收纳",deab2747ddf5310781cad655c4f7a50f:"当值数量超出一定数量时，可进行收纳显示","8c019e522d7bfbf02d6600f91f3b4edf":"最大标签数","5404c803438f1027131cb6fe35037075":"选择器收纳器","5d16dd78f1b9194d063322d117c75162":"CRUD收纳器",ba3a8f747de8c6dfe2859c4ce2105c3a:`当在fx中配置多选值时，需要适配值格式，示例：
                  选项值为 <br/><code>[
                    {label: '选项A', value: 'A'},
                    {label: '选项B', value: 'B'}
                  ]</code>
                  <br/>选中选项A和选项B：
                  <ul>
                    <li>开启拼接值且拼接符为 ‘,’ ：值示例 'A,B'</li>
                    <li>关闭拼接值，开启仅提取值，值示例：['A', 'B']</li>
                    <li>关闭拼接值，关闭仅提取值，值示例：[
                      {label: '选项A', value: 'A'},
                      {label: '选项B', value: 'B'}
                    ]</li>
                  </ul>`,"00e44cfe38bdcdefa40ad63dec4e9bd4":"标签模板",b2f3c4387bcabafaf39a7be9c624b584:"已选定数据的label展示内容","988d7b545c09108379a54a1e6060f563":"图标颜色","7278e97a3360f7b31768b86b8d22173d":"图标hover颜色","9df3213a5f8211cf2626f4c5c646d71d":"新增数据项",a6354302d04750ab5e28fac72be054b1:"数据项","1a873cce402693b4c3b4bf16a4a04523":"Option中属性的Key","75208f0b7fa9dd1633fa2dded76a6e8d":"父级数据项的值",dcc957ddbe7fd921ea03d008f7ddae4c:"请输入父级数据项 valueField 的值",cd407112daa4d933aead47835bedafb2:"编辑数据项",a3b6fcf7cfabfc83543bb00375235915:"数据编辑项的值","0f2dd97ecc370524fd8ff0a9ffb880a5":"请输入数据项编辑前 valueField 的值",e70edec390d0e602208f6951e1b5f01f:"删除数据项",d16814fa14c14dbeca8d7e8600852255:"数据删除项的值","6a2e7e69d5bcf2e2ab0c3e288d7fd2ab":"请输入删除项 valueField 的值","6e065eee612393b1d6a16e7696e4c911":"树组件","555fbc1714ad0d899939b12b95dabe09":"树组件 - 内嵌模式","5c52d3e283d197588e29ca31bc613ffe":"选项搜索接口",dd52923c45686a6f507854e438d4880e:"懒加载接口",a386f65cf2c47acabfab13781dbdd89f:"树组件 - 浮层模式",b5d9da39175bc5bdcd2cc7dddeaa232a:"懒加载字段","31ff316f7b6aa169b2575a50e0342be0":"是否为懒加载节点的字段名称，默认为defer，可以用该配置项自定义字段名称","37a3bfd0cf20cc17c53396a1077c0852":"自定义开启懒加载的字段","6c1f091d6ee0780a6f836d212b8afa82":"已配置新增表单","9de4041a80c32ada7fb8b3f212da62d2":"已配置编辑表单","7eca7159d5a09db3a0008280faae395c":"搜索匹配函数",e95903f4c15aab31ea66ecd51b76e1a3:'自定义搜索匹配函数，当开启<code>loadDataOnce</code>时，会基于该函数计算的匹配结果进行过滤，主要用于处理列字段类型较为复杂或者字段值格式和后端返回不一致的场景。<code>matchSorter</code>函数用于处理复杂的过滤场景，比如模糊匹配等，更多详细内容推荐查看<a href="https://github.com/kentcdodds/match-sorter" target="_blank">match-sorter</a>。',"483cab6ec2367302b037208475361860":`/* 当前列表的全量数据 */
items: any[]`,dd19e649ee3fd61e0eeab6b67a6eae7b:`/* 最近一次接口返回的全量数据 */
itemsRaw: any[]`,"2512e82e75dfe0f6f499db4ae9f715af":`/* 额外的配置 */
options?: {
  /* 查询参数 */
  query: Record < string, any>;
  /* 列配置 */
  columns: any;
  /** match-sorter 匹配函数 */
  matchSorter: (items: any[], value: string, options?: MatchSorterOptions<any>) => any[]
}`,"4f54012c824bfcd8f9ca9ded82051d94":"Mock配置","3566441483da64f6bb1dd44cfd6b0184":"数据Mock",fb677689a875ed3078e386ad88273e73:"开启后，当数据源为空时，会使用 Mock 数据",af192f42759b02f6fd256776b12a238f:"设置后，会按照设置数量展示数据，可以提高设计态渲染速度，降低表格高度，便于布局设置。设置为<code>-1</code>则不限制",a15e0eac4fe49346a744fa7943c46890:"日历日程",b13bf2bdf8a7abbd8cdf85683214be45:"展示日历及日程。","0c6482892e9df6505c8de1eabca68266":"时间戳","398e51caf9e8fabbeb075833f0c1e701":"日期格式","2ca9949e2a05e63f735b713260307c45":"时间格式",e63e4cf37bf0af962b6ad66243dbe0f4:"日期时间格式","69a79a0e5083305255d191f708a41860":"是否可拖拽",bc48a7871960f7a395fa3ff20774f81c:'{\\n  "status": 0,\\n  "msg": "",\\n  // 可以不返回，如果返回了数据将被 merge 进来。\\n  data: {}\\n}',"1385df54facf9564658f05d0e9e2c3c7":"行双击","1c00d9cceec92084b116a382f2714ebb":"双击整行事件","4f0a3e65cf67ca5a117a3f28745ae930":"展示底部新增按钮","2424c96966b9c38c7d094a2d40f23a5f":"展示操作列新增按钮","2e2c57b664358061f9f20aeda43b53af":"自动选择","3fd78aa49302ff2634badc2ef49828f7":"开启后，自动选中用户当前的地理位置","1acee853829433de3ece301ee365bc99":"限制模式",ce8b1e6f3819ea068921a4fa9ead6968:"开启后，限制只能使用当前地理位置，不可选择其他地理位置",e28da3f03af5367e299b937643a22e49:`当在fx中配置多选值时，需要适配值格式，示例：
                  选项值为
                  <pre>{{@1}}, {
  label: '选项B',
  value: 'B'
}], null, 2)}
                  </pre>选中选项A和选项B：
                  <ul>
                    <li>开启拼接值且拼接符为 ‘,’ ：值示例 'A,B'</li>
                    <li>关闭拼接值，开启仅提取值，值示例：['A', 'B']</li>
                    <li>关闭拼接值，关闭仅提取值，值示例：[
                      {label: '选项A', value: 'A'},
                      {label: '选项B', value: 'B'}
                    ]</li>
                  </ul>`,fb58b1b692e6cc562764f6969269f802:"已配置选框详情","645dbc5504e722a30896486085a06b32":"预览","9aa70276e6d364abdc0543deccea2dac":"预览图片","893a9d45e4df161d0b0c57340631bd2f":"调整图片比例",e8aaab64292d8b17db25a1ab44bcd8e0:"将图片等比例放大或缩小","28a7e3af290b229c490da0ad4e9b700e":"调整比例","7f2081cebf9bd4b10b953b4008c4b568":"定义每次放大或缩小图片的百分比大小，正值为放大，负值为缩小，默认50",cb90ac33f6b3bf684635d4f57cb290a0:"放大极限","7ab252f7aab256f1785c793049d01e13":"定义动作调整图片大小的最大百分比，默认200","7d645933c48d5061c2a13dd5f8b9b4fa":"缩小极限","164f3e6ced78578c534477da66e0b008":"定义动作调整图片大小的最小百分比，默认50","8e9f5f321ac9b39dbcf0f603190815ce":"悬浮容器: 基于 CSS Fixed 实现的特殊布局容器。",ace080d5d9684a05aa5ec0ca38ec2831:"每页显示的记录数",e52664b945c685d43d6ea81953a33a4a:"触发二维码下载",a605077feb2a94f1f72627703ff48e39:"当前表格无数据，使用Mock数据用于效果预览，组件面板Mock配置中可修改相关配置","014b4de0dd3108fc912547e4a1ed19fd":"当前表格仅展示{{@1}}条数据用于效果预览，点击顶部「预览」查看真实场景数据，组件面板Mock配置中可修改相关配置","8bb1910d5bc3b1b32c1e037978ba9d3b":"开启后修改即提交，而不是批量提交，需要配置快速保存接口用于提交数据",df23e8db7baa38e0d9db41384788a40c:"默认使用表格的「快速保存单条」接口，若单独给立即保存配置接口，则优先使用局部配置。",bf4bc760ad07eccb701c8be8579005fc:"列表项数目不能少于{{@1}}","0e69a56857c65181f96cd272d20455d6":"点击新增表达式",d846706b91f99cd12545a78212fa5984:"常用动作：","1889907dcbe32f9e8ac2c9df6603f12e":"对单个表单项进行校验","1a04578671f6c3bfa2d35a8cbd9d1a9e":"校验表单项",e4092e07c4613278048c91064f4bfdf7:"校验单个表单项数据",dd39bd1bf78f1b2aec6ed8a05ced6884:"校验的表单项的值","0a2680def3df6912d7c96d95a047b680":"校验成功","136b339ae7f40edc05251da87dd8a233":"校验失败","14a265b60d169e9d9c11b9a286de199d":"事件埋点","5c1024a792dfc345b4d8a3b34255691b":"开启事件埋点后，每次事件触发都会发送埋点数据到后台"});extendLocale("en-US",{"8f6ea8f1a35f96ba401e4fce9ddeb4b0":"Please pass in the hexadecimal color value",fbae87bcc352f6933541fb77a07418ed:"Primary color","22b777e6fcb613b8ba83ced9594cd07e":"Ordinary","4363c17ebb346b646af55bd8c8075915":"Click","062d0b688adb10f3af5ebc2fd2667f1c":"Floating","8e1b944f4389bdaab6f11d5bc83190c8":"Background",d5fa0ac3fb033291acadd025db40cf8c:"Highlight/text title","7835fd1dece3cf3750cb0db039b2ae73":"Sub-highlight/text title",b97ef9fe546e82e4b5f84661006a8ca7:"Secondary information","54c155a9c985b0244666f36abe342b7a":"Gray information","8318e9299a55c306333b4a2a43dbb6e2":"Stroke/Divide Line","9f83cbd8f26e028346ecb459c4be9c01":"Card background color","1110ba0bda5a251c55247f122e923848":"transparent","2b250fe214bc8b93fb78d795a47d7a6c":"Brand color",af09bd51b66a26d8db3119e95b5d28fe:"Neutral color",b6c3e2dcf4053e5f24d15b63a29f5afd:"Auxiliary color",a2de03c5b7ec653d8eadaeeb9043d41a:"Size {{@1}} ({{@2}})",cc4c575642609fbf059a5df81eb86bfc:"Solid line","61f6f4fc0b806ac9d41ad0792e6155f6":"Dashed line",b1e0ebac23ed95807ecc566da3ffab48:"Dotted line",d81bb206a889656035b929cd8bb1ef10:"nothing",e0dfa25ebceabddb2180720d36d4c3b6:"border-top ",a8b0c20416853bda54120bf19477ad11:"whole",a80a25b59908402cf7ee31a07d0e7739:"border-left ","57463587977a534f7859eb9d7c536629":"border-right ","154d5216e42c916884431f0eea951999":"bottom",a4f758412c3797290c957544c56db443:"Inherit General",d8a4e8cdc29e9aa576e669ed165892c9:"Configure separately",aa05fd09a619ddbf07d8d903e6d32c5e:"currency",ee5841a88da34c5a0e0515c4d863752a:"Transparent","517c1de3f9f069c1c33003ec8d75c3da":"Enter color values or name search",d6a80fc3f53d0b11e5f96a538b096c06:"Color not matched",c7706039e8ad85969df13ce3458d199a:"Gradient angle","21f3929a4484e6e992af64ec1dd3a576":"Original size","0f1fd39145bad43e18f81337e0144c8c":"Full of",e0d76824dfe5e09c7068b44f605266d2:"appropriate",e39d3b7a3600d9327221a637f910fc0b:"stretching",e1ff2c83c09f2dc6cc74ae02ab6b8222:"Tile","7ddd9dbf373f760acfd63778469b5c4b":"Horizontal tiling","4ab931e0f709f9b493e660156925a113":"Tile Vertically","61a87a021904dc65995e99d4c476cb21":"Image position","7778401c65bfef9c0ad4d543e3b5b310":"Common Colors","769d88e425e03120b83ee4ed6b9d588e":"complete","95b351c86267f3aedf89520959bce689":"edit",ec8baa57611b5a89a37b31c7432a01d7:"Click on the color above to add",a1c76c6e1bd796959e536718e04d10ca:"Theme Colors","255f442c4a1b92624a6e96541202a0be":"Custom Colors","879f4e7bd863a00f77d30f05076ac6cb":"1.3x","4905c69b940b0d94cf8aec83bc8dcc83":"1.5x","268c43e529c54fb458397b9c13351a67":"1.7x",efb399e557c1f444ba215c8e2dbfb891:"Bold Simplified","4e9edbb054a1fc52fe2012ff8cb3b20e":"Blackbody Complex",bd8e7ebd31bd804a20986f7dd3739900:"Holly Black Simplified Chinese",d55a1b98030839c3ce3606d7d2c80235:"Pingfang Hong Kong",c9045965fa0fbf29323518d79c9da0f1:"Ping Fang Jian",c1ef096e25d96c451fd39c172b3f569a:"Pingfang Fanfan","09e4d5659a11cf8a55f59e867b30ab75":"Song typeface - Simplified Chinese","56d3dcaab79fe10dfbc4b80f0d9d72a4":"Song typeface complex","2c1605abdc63ac897a76aeba5dcf36a4":"Chinese Bold",db37a0bd2e60503e939e8eee02511550:"Chinese Song typeface","81d6da77d656c6a9c3cbd795ae4444ea":"italic",f6f8ea0815881fe9a4aa9352a7fe2299:"Underline",a120a873412470089bec1dfd1b581fc9:"Strikethrough","413f48cc71f71083ce532a86e3efdc21":"Align Left","56c17ba6a56c01706ae00a31611deb03":"Align Center",fd8e9572cc6bf87653c4d8f8b8dd0db9:"Align Right",da1b972efb29f850b50e219ad4d98ba5:"Align Both Ends","2af8c8235ae57c6a7486883f86701ab3":"Top alignment","8bc0ba58bf73b03668ca9b6a74c99f89":"align vertical center",a6d154c4db5068074e32863821c450e1:"Bottom ","9c07532d0c9acfecfc4ec2eb265c3e03":"character",c988dd65ce45c335db5c4354eec7c110:"Word weight","17169fd8c2ffa82c4e1d08e7267725f4":"Row height","8456bc40d48da5af833f1c63385e9879":"font",df68a5dc8f8847179b7afdf943f80796:"Upper left corner",e717b4ae480e7c073fd5a44647a7f0da:"Upper right corner","2a97dfb2d236c87c41fd588f006111dc":"Lower left corner","1c9bc9dab33944e953412f8b22cb024a":"Lower right corner","9cf15d01ed2846c4104d1607836bbe79":"Shadow preview",f1d4ff50f3828f9b73412e7d94e6dd6e:"custom","803205e38834280d9e6a75993ac00764":"shadow","6f9c7d7109f2b4b5a759359a455201e9":"No Shadow","26db990dad6d76c6725375b24c0941e1":"Shadow layer",b24a723b73f96ab3340fe9502370ee13:"Inner Shadow","92d393c2ae53f424856479d090de718f":"External genitalia shadow","203bab8001257b60e1aed951a0939393":"vague","2dc90225b8033d17c41b08f39fa42de2":"extend","48110cb1579623335cf6a1e2327e5af1":"Lock Scale","17399f02e23b5f5b9b3dedee03a2d538":"Unlock",a2b62974f4d7564bb68b570116f25a10:"Minimum width",e4e625f8f933ccfd0fe44a41fb02655f:"Extended Configuration","3e42b9d1f06cd5ad39c37d93fd98329d":"Imitate Antd","00a42062d24846499934cf5c753aedfe":"Platform preset themes","1c61673194f8543ead4128ce52a79f5f":"Basic font","94d322455c11e7666f5448ce1c4c14cd":"Operations Title - Large",e291cdc6b012b1ed5b8243fdaa44c204:"Operations Title - Medium",d20e34eb25d164b3a868e12b710b9a27:"Operations Title - Small","701a94041742976d6f5ebf2450b60ed2":"Title - Large",cae9d44e7f6bb7fc305ed3ed97d420a9:"Title - Middle","39a7ffed69e7f163bb0b163af441a4a3":"Title - Small","15d1505fc16b73315b2a0e2a923743b6":"Body General Large","64de1d8e51342a0de719f676a8ae5d15":"Body General Small",deefca7e66ebaac1ed4f27655961286c:"Watermark Text",fc55aff8c7e01416e93ac218d98b3b74:"Font size",f72ce9ad683cc82e0eab557ffc9c67a0:"Extra small","23ecf42cada8bf2715792d718544d107":"minimum","391b8fa9c747a1799353ab856e666ad5":"small",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"normal",aed1dfbc31703955e64806b799b67645:"in",ab18e30c0dc4093ceeda8961fac3d1f4:"large","973d9d0bcdbcdbec6de879c1572c2300":"maximum","3386da5f56fac758ed0f18e024ecb943":"Extra large",c8339fd2a85af4ba66084d28df808de4:"size","82832013777f9ec3a3406c0f771ddbc1":"Failure Color","07d5f1fb5d239633dc4b2ddce27b52de":"Warning color",d2775b9d4d00a2ca7414635618c6e802:"Success Color",d3770b4e046c533df1946eb5a2763a54:"Link Color","6b5040281083fce17fd3e8006d9a7cc3":"Prompt color",cf4d9e177b415e58c29371b9b22f3390:"Other colors","4b4dc05ed0aa65da0abdb8cb92ae1fb3":"Auxiliary instructions","710ad08b11419332713360d2750cd707":"Disabled","35796bb8ca4342a4390dfb3c464bebb4":"Pure white text",ca746b1ff10193a3ce20878dec04a733:"characters","2a03e7cc0afd5fc3519cd06bf59b538f":"Pure white filling",da3cfffa69723748fecfc8e964b7996e:"Light/Disable Background","8c47ecd40d7f739e308567de89accd56":"Division line","40fab37fcc50ecd7d9a570a24757a503":"Deep/gray bottom suspension","756e44b36d4d962cef2732db02aefdd1":"filling",b37c14c49311fc0cd3288af9925808c8:"shallow","21ac5a493ae8ab9bba043ca126433ca9":"deep",fa7132688004917a89ed807b5be00d27:"heavy","84fe608676a8fe47637b824434cb225d":"line","328215447d0e128a845729dab5ce9837":"Data color","18c63459a2c069022c7790430f761214":"default",e7c37575b8b33fca7c8e94f712aa2385:"classical",fb2936372e13759bd6a6e113fcbafb68:"transition","39003734d1d700d5bd97bf1e7a2fcf73":"style","48d67284c554350eea37fc8762e447a1":"Medium thick","804c19b95172c55f1796babbbb770899":"Extra thick",fb0af8105da1f0f57ce265340239a376:"thickness",c121ed6712e8231da4e3803e6eaf703c:"Fillet 1",ae15c0d31ae01fcea65b7e483f1b942d:"Fillet 2","829fbc73be5187c3f3d4e403e8cbecbc":"Fillet 3",a797a13eef06c6b3ea2d52f60d216259:"Fillet 4",c02a7a69675e7cf1abeae6d279670471:"Fillet 5",f4276b865c626bb67ac41013c6da0317:"Fillet 6","0103eb2d3dca70270d1a74e9ec987ac9":"fillet",efababbf5f440be0e19e40f4369b5ac1:"Shadow sm","658cd4f2239e0d04e596ec1f65d5f9df":"Shadow MD","940e477cb0b6a7a847862db402b79c07":"Shadow lg","9ed233fc6677d73b458d45b250ecc3a1":"Shadow xl",c08787dc714fd5d7b2a1217b3d4afe8d:"Shadow 2xl",b3bb412da3c93f51b935c5df4759b7a6:"Default General","77602d53a9b948cb43c9affb46ea4a6f":"Default levitation","62c5ed2938e91f0589e6333d9c5c124f":"Default click",b3dad626b64ac5063c6a1e88f8a88322:"Disabled by default","00dc03d70dd2321afa1c18b2186e7e2b":"main",bde770827b9137ddb3eb676878af9709:"secondary","9a5e272968e173fb42c66a56eb93e4a7":"enhance",d8c7e04c8e2be23dd3b81a31db6e04f1:"information","330363dfc524cff2488f2ebde0500896":"success","900c70fa5f7dbc014e6f762d5e0e885c":"warning","540f84ddc0883866b229f71c2844199a":"danger","48d0a09bdd5fe7e89f0a445b0ffdf14f":"Light color","41e8e8b9935c9ee4e88b06643a2d5b81":"Dark color",bfe68d5844f8e54602760e18f45954f7:"link",eadd05ba6a99ca43492efe5dad7325ad:"secondary",b6453aea1848b65a9a76cccca94715ec:"Basic configuration",c3e817974de836e80c95cc6ce5718eff:"Search box","829abe5a8dcd0579a340d20636b59276":"grouping",d58ba4b5e94680fcb08300e176502fb8:"Tabular form","7600db82433e763d16e3f1e91aa4ab80":"Tree form",d2fedacfc0f313fcc5d0a24d4d6d81db:"Cascade selection","09bbfb387dce6201df1ccef2aab161a6":"Clearable","94621f44f98c996e49d5b214aebefffc":"word count ","56f40e132c8369340439255fa1073070":"Single line input box","8685115115e4f8c8daf97a31528721ff":"Multiline input box","57d14839d1098d99811f44d68dd0957e":"Prefix/Suffix","055293fb3cf2b1fcbc60317a2ae6916a":"Password input box","67b958a2d172f2b3474629f9f6724109":"Additional components","97d07614380da93d257f9fbf81aa56fb":"text",e1371d733ff347664655629011b4130f:"Basic Style","6d609769ad11b37dd509ec06362f0b73":"Enhanced version","3e08fbf3806981c18666fff59718c85c":"With unit selection",ec1323a8ba34dd36b33e4e6baf22f076:"Unit selector",f99484b21ba7a64a748c60b52ea0401e:"Column display",d58a55bceec7591f43232e958928ed10:"shut","8493205602379573013b8d3335981175":"open","911bafa046cd76ecbc80ae199bd4a6e8":"Switch Description",fb090c01ee012eac2bb26751aeb5a3c4:"Switch status text",c4b07f2e6b60c5752a70551ff77ccedf:"Default state",db98f889ce6bc235e66bd4b2a788d137:"check box","5ef69f62dc668c1a3e68b51c50a2530a":"icon","6bfb9bb2218ff32b6139e98bc93707c0":"Image upload","443f46c76ebe6ec4eb502f95c451e4b0":"Multiple Choice","73e0299c2fb3a564af0a7cff42540542":"Group mode","0e2eeb150583b23ed4234d58b81c18e4":"Table Mode",c2981042c21c8b5fa4451337d484d7db:"Tree mode",df011658c33f610e9b9d3302909a7f2b:"range","4092ed98e9035652d4c9ca9441701ed7":"basic","3fea7ca76cdece641436d7ab0d02ab1b":"state","528c13332418466dba644a1bde0d1fdd":"Punctate",eedfc4d3b93ca4831e94efa2ac3be6f8:"Simple mode","0796ba76b4b553687e5ffaeb78512ccb":"basis","035692d6fc368765e391602aad0bf39a":"Add Icon",ea15ae2b7fba76c83eec6d0986d15197:"option",b05a75d95e71561fccc84306c95388e0:"Popup Options","02d9819ddaaaeb1b7b22b12608c7e5ca":"prompt","19de37513f3cb55919d32c0d559a0559":"Small size","8aa7e04f48d51d5cd37ca94866187904":"Normal size","21814e10b7abc9e05e6fc3b505b34844":"Large size","2009e3d873e6f5e0978b1e123692c024":"Facial labels","8cc6e3e65831f4e034d2a9ce6c68863a":"Linear label","507d869237db8b0c47b07bdf824d4ae2":"Status label","01f2895cef02a670e0268e1f97ee9445":"Color status",a465db53b8c98f42caa15ca5662f9c90:"direction","533fbb06156c17f0040128567708d23e":"Configure different states","240210b3088bcbea7588047000e89d9e":"Default Style","16a20243f9b741c08216dc9548de2968":"whole","3bdd08adab6ea90b9164b20a0e4151ac":"describe","3fca5e5be30a99b8ca5e14173773f47c":"Picture Item","32c65d8d7431e76029678ec7bb73a5ab":"title",e84ef1c5e5128107492f6813fa9a396b:"Custom Columns","1f23b9dd74b629ba5bfd5eaf8e2f498d":"Large size",c0215e2abf0fe27597acba2be64f6993:"Small size","93dee976f68681ec6950380d757d8c18":"Multiple selection mode","9be232c5cffa019aab21bd631ff23462":"Yunshe","1dfba2e7e2df2efc4a25f4f2adcba25e":"System preset theme"});extendLocale("zh-CN",{"8f6ea8f1a35f96ba401e4fce9ddeb4b0":"请传入十六进制色值",fbae87bcc352f6933541fb77a07418ed:"主色","22b777e6fcb613b8ba83ced9594cd07e":"常规","4363c17ebb346b646af55bd8c8075915":"点击","062d0b688adb10f3af5ebc2fd2667f1c":"悬浮","8e1b944f4389bdaab6f11d5bc83190c8":"背景",d5fa0ac3fb033291acadd025db40cf8c:"强调/正文标题","7835fd1dece3cf3750cb0db039b2ae73":"次强调/正文标题",b97ef9fe546e82e4b5f84661006a8ca7:"次要信息","54c155a9c985b0244666f36abe342b7a":"置灰信息","8318e9299a55c306333b4a2a43dbb6e2":"描边/分割线","9f83cbd8f26e028346ecb459c4be9c01":"卡片背景色","1110ba0bda5a251c55247f122e923848":"透明","2b250fe214bc8b93fb78d795a47d7a6c":"品牌色",af09bd51b66a26d8db3119e95b5d28fe:"中性色",b6c3e2dcf4053e5f24d15b63a29f5afd:"辅助色",a2de03c5b7ec653d8eadaeeb9043d41a:"尺寸{{@1}}({{@2}})",cc4c575642609fbf059a5df81eb86bfc:"实线","61f6f4fc0b806ac9d41ad0792e6155f6":"虚线",b1e0ebac23ed95807ecc566da3ffab48:"点线",d81bb206a889656035b929cd8bb1ef10:"无",e0dfa25ebceabddb2180720d36d4c3b6:"上边框",a8b0c20416853bda54120bf19477ad11:"全部",a80a25b59908402cf7ee31a07d0e7739:"左边框","57463587977a534f7859eb9d7c536629":"右边框","154d5216e42c916884431f0eea951999":"下边框",a4f758412c3797290c957544c56db443:"继承常规",d8a4e8cdc29e9aa576e669ed165892c9:"分别配置",aa05fd09a619ddbf07d8d903e6d32c5e:"通用",ee5841a88da34c5a0e0515c4d863752a:"透明-transparent","517c1de3f9f069c1c33003ec8d75c3da":"输入色值或名称搜索",d6a80fc3f53d0b11e5f96a538b096c06:"未匹配到颜色",c7706039e8ad85969df13ce3458d199a:"渐变角度","21f3929a4484e6e992af64ec1dd3a576":"原始尺寸","0f1fd39145bad43e18f81337e0144c8c":"充满",e0d76824dfe5e09c7068b44f605266d2:"合适",e39d3b7a3600d9327221a637f910fc0b:"拉伸",e1ff2c83c09f2dc6cc74ae02ab6b8222:"平铺","7ddd9dbf373f760acfd63778469b5c4b":"横向平铺","4ab931e0f709f9b493e660156925a113":"纵向平铺","61a87a021904dc65995e99d4c476cb21":"图片位置","7778401c65bfef9c0ad4d543e3b5b310":"常用颜色","769d88e425e03120b83ee4ed6b9d588e":"完成","95b351c86267f3aedf89520959bce689":"编辑",ec8baa57611b5a89a37b31c7432a01d7:"点击上方颜色添加",a1c76c6e1bd796959e536718e04d10ca:"主题颜色","255f442c4a1b92624a6e96541202a0be":"自定义颜色","879f4e7bd863a00f77d30f05076ac6cb":"1.3倍","4905c69b940b0d94cf8aec83bc8dcc83":"1.5倍","268c43e529c54fb458397b9c13351a67":"1.7倍",efb399e557c1f444ba215c8e2dbfb891:"黑体-简","4e9edbb054a1fc52fe2012ff8cb3b20e":"黑体-繁",bd8e7ebd31bd804a20986f7dd3739900:"冬青黑体简体中文",d55a1b98030839c3ce3606d7d2c80235:"苹方-港",c9045965fa0fbf29323518d79c9da0f1:"苹方-简",c1ef096e25d96c451fd39c172b3f569a:"苹方-繁","09e4d5659a11cf8a55f59e867b30ab75":"宋体-简","56d3dcaab79fe10dfbc4b80f0d9d72a4":"宋体-繁","2c1605abdc63ac897a76aeba5dcf36a4":"华文黑体",db37a0bd2e60503e939e8eee02511550:"华文宋体","81d6da77d656c6a9c3cbd795ae4444ea":"斜体",f6f8ea0815881fe9a4aa9352a7fe2299:"下划线",a120a873412470089bec1dfd1b581fc9:"删除线","413f48cc71f71083ce532a86e3efdc21":"左对齐","56c17ba6a56c01706ae00a31611deb03":"居中对齐",fd8e9572cc6bf87653c4d8f8b8dd0db9:"右对齐",da1b972efb29f850b50e219ad4d98ba5:"两端对齐","2af8c8235ae57c6a7486883f86701ab3":"顶对齐","8bc0ba58bf73b03668ca9b6a74c99f89":"垂直居中对齐",a6d154c4db5068074e32863821c450e1:"底对齐","9c07532d0c9acfecfc4ec2eb265c3e03":"字符",c988dd65ce45c335db5c4354eec7c110:"字重","17169fd8c2ffa82c4e1d08e7267725f4":"行高","8456bc40d48da5af833f1c63385e9879":"字体",df68a5dc8f8847179b7afdf943f80796:"左上角",e717b4ae480e7c073fd5a44647a7f0da:"右上角","2a97dfb2d236c87c41fd588f006111dc":"左下角","1c9bc9dab33944e953412f8b22cb024a":"右下角","9cf15d01ed2846c4104d1607836bbe79":"阴影预览",f1d4ff50f3828f9b73412e7d94e6dd6e:"自定义","803205e38834280d9e6a75993ac00764":"阴影","6f9c7d7109f2b4b5a759359a455201e9":"无阴影","26db990dad6d76c6725375b24c0941e1":"阴影层",b24a723b73f96ab3340fe9502370ee13:"内阴影","92d393c2ae53f424856479d090de718f":"外阴影","203bab8001257b60e1aed951a0939393":"模糊","2dc90225b8033d17c41b08f39fa42de2":"扩展","48110cb1579623335cf6a1e2327e5af1":"锁定比例","17399f02e23b5f5b9b3dedee03a2d538":"解除锁定",a2b62974f4d7564bb68b570116f25a10:"最小宽度",e4e625f8f933ccfd0fe44a41fb02655f:"扩展配置","3e42b9d1f06cd5ad39c37d93fd98329d":"仿Antd","00a42062d24846499934cf5c753aedfe":"平台预设主题","1c61673194f8543ead4128ce52a79f5f":"基础字体","94d322455c11e7666f5448ce1c4c14cd":"运营标题-大",e291cdc6b012b1ed5b8243fdaa44c204:"运营标题-中",d20e34eb25d164b3a868e12b710b9a27:"运营标题-小","701a94041742976d6f5ebf2450b60ed2":"标题-大",cae9d44e7f6bb7fc305ed3ed97d420a9:"标题-中","39a7ffed69e7f163bb0b163af441a4a3":"标题-小","15d1505fc16b73315b2a0e2a923743b6":"正文-常规-大","64de1d8e51342a0de719f676a8ae5d15":"正文-常规-小",deefca7e66ebaac1ed4f27655961286c:"水印文字",fc55aff8c7e01416e93ac218d98b3b74:"字号",f72ce9ad683cc82e0eab557ffc9c67a0:"特小","23ecf42cada8bf2715792d718544d107":"极小","391b8fa9c747a1799353ab856e666ad5":"小",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"正常",aed1dfbc31703955e64806b799b67645:"中",ab18e30c0dc4093ceeda8961fac3d1f4:"大","973d9d0bcdbcdbec6de879c1572c2300":"极大","3386da5f56fac758ed0f18e024ecb943":"特大",c8339fd2a85af4ba66084d28df808de4:"尺寸","82832013777f9ec3a3406c0f771ddbc1":"失败色","07d5f1fb5d239633dc4b2ddce27b52de":"警告色",d2775b9d4d00a2ca7414635618c6e802:"成功色",d3770b4e046c533df1946eb5a2763a54:"链接色","6b5040281083fce17fd3e8006d9a7cc3":"提示色",cf4d9e177b415e58c29371b9b22f3390:"其他色","4b4dc05ed0aa65da0abdb8cb92ae1fb3":"辅助说明","710ad08b11419332713360d2750cd707":"禁用","35796bb8ca4342a4390dfb3c464bebb4":"纯白文字",ca746b1ff10193a3ce20878dec04a733:"文字","2a03e7cc0afd5fc3519cd06bf59b538f":"纯白填充",da3cfffa69723748fecfc8e964b7996e:"浅/禁用背景","8c47ecd40d7f739e308567de89accd56":"分割线","40fab37fcc50ecd7d9a570a24757a503":"深/灰底悬浮","756e44b36d4d962cef2732db02aefdd1":"填充",b37c14c49311fc0cd3288af9925808c8:"浅","21ac5a493ae8ab9bba043ca126433ca9":"深",fa7132688004917a89ed807b5be00d27:"重","84fe608676a8fe47637b824434cb225d":"线条","328215447d0e128a845729dab5ce9837":"数据色","18c63459a2c069022c7790430f761214":"默认",e7c37575b8b33fca7c8e94f712aa2385:"经典",fb2936372e13759bd6a6e113fcbafb68:"过渡","39003734d1d700d5bd97bf1e7a2fcf73":"样式","48d67284c554350eea37fc8762e447a1":"中粗","804c19b95172c55f1796babbbb770899":"特粗",fb0af8105da1f0f57ce265340239a376:"粗细",c121ed6712e8231da4e3803e6eaf703c:"圆角1",ae15c0d31ae01fcea65b7e483f1b942d:"圆角2","829fbc73be5187c3f3d4e403e8cbecbc":"圆角3",a797a13eef06c6b3ea2d52f60d216259:"圆角4",c02a7a69675e7cf1abeae6d279670471:"圆角5",f4276b865c626bb67ac41013c6da0317:"圆角6","0103eb2d3dca70270d1a74e9ec987ac9":"圆角",efababbf5f440be0e19e40f4369b5ac1:"阴影sm","658cd4f2239e0d04e596ec1f65d5f9df":"阴影md","940e477cb0b6a7a847862db402b79c07":"阴影lg","9ed233fc6677d73b458d45b250ecc3a1":"阴影xl",c08787dc714fd5d7b2a1217b3d4afe8d:"阴影2xl",b3bb412da3c93f51b935c5df4759b7a6:"默认常规","77602d53a9b948cb43c9affb46ea4a6f":"默认悬浮","62c5ed2938e91f0589e6333d9c5c124f":"默认点击",b3dad626b64ac5063c6a1e88f8a88322:"默认禁用","00dc03d70dd2321afa1c18b2186e7e2b":"主要",bde770827b9137ddb3eb676878af9709:"次要","9a5e272968e173fb42c66a56eb93e4a7":"增强",d8c7e04c8e2be23dd3b81a31db6e04f1:"信息","330363dfc524cff2488f2ebde0500896":"成功","900c70fa5f7dbc014e6f762d5e0e885c":"警告","540f84ddc0883866b229f71c2844199a":"危险","48d0a09bdd5fe7e89f0a445b0ffdf14f":"浅色","41e8e8b9935c9ee4e88b06643a2d5b81":"深色",bfe68d5844f8e54602760e18f45954f7:"链接",eadd05ba6a99ca43492efe5dad7325ad:"中等",b6453aea1848b65a9a76cccca94715ec:"基础配置",c3e817974de836e80c95cc6ce5718eff:"搜索框","829abe5a8dcd0579a340d20636b59276":"分组",d58ba4b5e94680fcb08300e176502fb8:"表格形式","7600db82433e763d16e3f1e91aa4ab80":"树形式",d2fedacfc0f313fcc5d0a24d4d6d81db:"级联选择","09bbfb387dce6201df1ccef2aab161a6":"可清除","94621f44f98c996e49d5b214aebefffc":"字数统计","56f40e132c8369340439255fa1073070":"单行输入框","8685115115e4f8c8daf97a31528721ff":"多行输入框","57d14839d1098d99811f44d68dd0957e":"前缀/后缀","055293fb3cf2b1fcbc60317a2ae6916a":"密码输入框","67b958a2d172f2b3474629f9f6724109":"附加组件","97d07614380da93d257f9fbf81aa56fb":"文本",e1371d733ff347664655629011b4130f:"基础样式","6d609769ad11b37dd509ec06362f0b73":"加强版","3e08fbf3806981c18666fff59718c85c":"带单位选择",ec1323a8ba34dd36b33e4e6baf22f076:"单位选择器",f99484b21ba7a64a748c60b52ea0401e:"列显示",d58a55bceec7591f43232e958928ed10:"关","8493205602379573013b8d3335981175":"开","911bafa046cd76ecbc80ae199bd4a6e8":"开关说明",fb090c01ee012eac2bb26751aeb5a3c4:"开关状态文本",c4b07f2e6b60c5752a70551ff77ccedf:"默认态",db98f889ce6bc235e66bd4b2a788d137:"复选框","5ef69f62dc668c1a3e68b51c50a2530a":"图标","6bfb9bb2218ff32b6139e98bc93707c0":"图片上传","443f46c76ebe6ec4eb502f95c451e4b0":"多选","73e0299c2fb3a564af0a7cff42540542":"分组模式","0e2eeb150583b23ed4234d58b81c18e4":"表格模式",c2981042c21c8b5fa4451337d484d7db:"树模式",df011658c33f610e9b9d3302909a7f2b:"范围","4092ed98e9035652d4c9ca9441701ed7":"基本","3fea7ca76cdece641436d7ab0d02ab1b":"状态","528c13332418466dba644a1bde0d1fdd":"点状",eedfc4d3b93ca4831e94efa2ac3be6f8:"简单模式","0796ba76b4b553687e5ffaeb78512ccb":"基础","035692d6fc368765e391602aad0bf39a":"添加图标",ea15ae2b7fba76c83eec6d0986d15197:"选项",b05a75d95e71561fccc84306c95388e0:"弹窗选项","02d9819ddaaaeb1b7b22b12608c7e5ca":"提示","19de37513f3cb55919d32c0d559a0559":"small尺寸","8aa7e04f48d51d5cd37ca94866187904":"normal尺寸","21814e10b7abc9e05e6fc3b505b34844":"large尺寸","2009e3d873e6f5e0978b1e123692c024":"面性标签","8cc6e3e65831f4e034d2a9ce6c68863a":"线性标签","507d869237db8b0c47b07bdf824d4ae2":"状态标签","01f2895cef02a670e0268e1f97ee9445":"颜色状态",a465db53b8c98f42caa15ca5662f9c90:"方向","533fbb06156c17f0040128567708d23e":"配置 不同状态","240210b3088bcbea7588047000e89d9e":"默认样式","16a20243f9b741c08216dc9548de2968":"整体","3bdd08adab6ea90b9164b20a0e4151ac":"描述","3fca5e5be30a99b8ca5e14173773f47c":"图片项","32c65d8d7431e76029678ec7bb73a5ab":"标题",e84ef1c5e5128107492f6813fa9a396b:"自定义列","1f23b9dd74b629ba5bfd5eaf8e2f498d":"尺寸大",c0215e2abf0fe27597acba2be64f6993:"尺寸小","93dee976f68681ec6950380d757d8c18":"多选模式","9be232c5cffa019aab21bd631ff23462":"云舍","1dfba2e7e2df2efc4a25f4f2adcba25e":"系统预设主题"});function styleInject(x_,eme){eme===void 0&&(eme={});var $P=eme.insertAt;if(!(typeof document>"u")){var tme=document.head||document.getElementsByTagName("head")[0],ame=document.createElement("style");ame.type="text/css",$P==="top"&&tme.firstChild?tme.insertBefore(ame,tme.firstChild):tme.appendChild(ame),ame.styleSheet?ame.styleSheet.cssText=x_:ame.appendChild(document.createTextNode(x_))}}var css_248z='@charset "UTF-8";.Theme-PaddingAndMargin-title{color:#5c5f66;font-size:12px;margin-bottom:.625rem}.Theme-PaddingAndMargin-inner{display:flex;justify-content:space-between}.Theme-PaddingAndMargin-inner .theme-select{width:100%}.Theme-PaddingAndMargin-input{align-items:center;flex:1;flex-direction:column;margin-left:.25rem;min-width:0}.Theme-PaddingAndMargin-input-label{color:#5c5f66;font-size:12px;text-align:center}.Theme-PaddingAndMargin-label{border-radius:4px;cursor:pointer;display:flex;flex-grow:0;flex-shrink:0;height:2rem;overflow:hidden;width:2rem}.Theme-PaddingAndMargin-label-all{align-items:center;background:#f7f7f9;display:inline-flex;height:2rem;justify-content:center;width:2rem}.Theme-PaddingAndMargin-label-all:before{border:2px solid #5c5f66;border-radius:2px;content:"";display:block;height:.875rem;width:.875rem}.Theme-PaddingAndMargin-label-custom{background:#f7f7f9;border-left:1px solid #e8e9eb;height:2rem;position:relative;width:2rem}.Theme-PaddingAndMargin-label-custom>div{height:.875rem;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:.875rem}.Theme-PaddingAndMargin-label-custom>div:after,.Theme-PaddingAndMargin-label-custom>div:before{background:#5c5f66;border-radius:.0625rem;content:"";display:block;height:.125rem;position:absolute;width:.125rem}.Theme-PaddingAndMargin-label-custom>div:first-child:before{left:.1875rem;top:0;width:.5rem}.Theme-PaddingAndMargin-label-custom>div:first-child:after{height:.5rem;left:0;top:.1875rem}.Theme-PaddingAndMargin-label-custom>div:last-child:before{bottom:0;left:.1875rem;width:.5rem}.Theme-PaddingAndMargin-label-custom>div:last-child:after{bottom:.1875rem;height:.5rem;right:0}.Theme-PaddingAndMargin-label-all--active:before{border-color:#2468f2}.Theme-PaddingAndMargin-label-custom--active>div:after,.Theme-PaddingAndMargin-label-custom--active>div:before{background-color:#2468f2}.Theme-PaddingAndMargin-label--custom{width:4rem}.Theme-PaddingAndMargin .cxd-Form-item{margin-bottom:0}.Theme-PaddingAndMargin-custom{background:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjEzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxyZWN0IGZpbGw9IiNFRUYzRkUiIHdpZHRoPSIyNTYiIGhlaWdodD0iMTMyIiByeD0iNCIvPjxwYXRoIGQ9Ik0xLjU4LjgxNCAxMjggNjYgMS41OCAxMzEuMTg2QTMuOTk0IDMuOTk0IDAgMCAxIDAgMTI4VjRDMCAyLjcuNjIgMS41NDUgMS41OC44MTRaTTI1NiA0djEyNGMwIDEuMy0uNjIgMi40NTQtMS41OCAzLjE4NUwxMjggNjYgMjU0LjQyLjgxNEMyNTUuMzggMS41NDQgMjU2IDIuNyAyNTYgNFoiIGZpbGw9IiNFM0VFRkYiLz48cGF0aCBkPSJNMjExIDIzdjg2SDQ0VjIzaDE2N1ptLTEyIDZINTZ2NzRoMTQzVjI5WiIgZmlsbD0iI0ZGRiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0xMTEgNTdoMzR2MThoLTM0eiIvPjwvZz48L3N2Zz4=");height:8.25rem;margin:.5rem auto 0;position:relative;width:16rem}.Theme-PaddingAndMargin-custom:after,.Theme-PaddingAndMargin-custom:before{color:#b8babf;font-size:10px;font-weight:400;position:absolute;transform:scale(.8)}.Theme-PaddingAndMargin-custom>div{word-wrap:break-word;align-items:center;border:1px solid transparent;color:#5c5f66;cursor:pointer;display:flex;font-size:12px;justify-content:center;line-height:.8;min-height:.875rem;min-width:2.5rem;padding:.125rem;position:absolute}.Theme-PaddingAndMargin-custom>div div{transform:scale(.8);transform-origin:left}.Theme-PaddingAndMargin-custom>div:hover{border-color:#2468f2;border-radius:.125rem;color:#2468f2}.Theme-PaddingAndMargin-custom-marginTop{left:50%;top:.25rem;transform:translateX(-50%)}.Theme-PaddingAndMargin-custom-marginBottom{bottom:.25rem;left:50%;transform:translateX(-50%)}.Theme-PaddingAndMargin-custom-marginLeft{left:.25rem;top:50%;transform:translateY(-50%);width:2.5rem}.Theme-PaddingAndMargin-custom-marginRight{right:.25rem;top:50%;transform:translateY(-50%);width:2.5rem}.Theme-PaddingAndMargin-custom-paddingTop{left:50%;top:2.125rem;transform:translateX(-50%)}.Theme-PaddingAndMargin-custom-paddingBottom{bottom:2.125rem;left:50%;transform:translateX(-50%)}.Theme-PaddingAndMargin-custom-paddingLeft{left:3.75rem;top:50%;transform:translateY(-50%);width:2.5rem}.Theme-PaddingAndMargin-custom-paddingRight{right:3.75rem;top:50%;transform:translateY(-50%);width:2.5rem}.Theme-PaddingAndMargin-custom-popover{padding:1rem .75rem}.Theme-PaddingAndMargin-custom-popover .cxd-Form-item{margin-bottom:0}.Theme-PaddingAndMargin-custom--padding:after{content:"Padding";left:3.5rem;top:1.75rem}.Theme-PaddingAndMargin-custom--margin:before{content:"Margin";left:.125rem;top:0}.Theme-Border-label{color:#5c5f66;font-size:12px;margin-bottom:.625rem}.Theme-Border-content{display:flex;justify-content:space-between}.Theme-Border-all{align-items:center;background:#f7f7f9;border-radius:4px;display:inline-flex;flex:0 0 2rem;height:2rem;justify-content:center}.Theme-Border-all:after{border:2px solid #2468f2;content:"";display:block;height:.875rem;width:.875rem}.Theme-Border-items{background:#f7f7f9;border-radius:.25rem;height:4.5rem;position:relative;width:4.5rem}.Theme-Border-items .Theme-Border-item{cursor:pointer;height:.875rem;position:absolute;width:.875rem}.Theme-Border-items .Theme-Border-item--all{border:2px solid #5c5f66;left:50%;top:50%;transform:translate(-50%,-50%)}.Theme-Border-items .Theme-Border-item--right{border:2px solid #d4d6d9;right:.4375rem;top:50%;transform:translateY(-50%)}.Theme-Border-items .Theme-Border-item--right:after{background:#5c5f66;content:"";display:block;height:.875rem;position:absolute;right:-2px;top:-2px;width:2px}.Theme-Border-items .Theme-Border-item--left{border:2px solid #d4d6d9;left:.4375rem;top:50%;transform:translateY(-50%)}.Theme-Border-items .Theme-Border-item--left:after{background:#5c5f66;content:"";display:block;height:.875rem;left:-2px;position:absolute;top:-2px;width:2px}.Theme-Border-items .Theme-Border-item--top{border:2px solid #d4d6d9;left:50%;top:.4375rem;transform:translate(-50%)}.Theme-Border-items .Theme-Border-item--top:after{background:#5c5f66;content:"";display:block;height:2px;position:absolute;right:-2px;top:-2px;width:.875rem}.Theme-Border-items .Theme-Border-item--bottom{border:2px solid #d4d6d9;bottom:.4375rem;left:50%;transform:translate(-50%)}.Theme-Border-items .Theme-Border-item--bottom:after{background:#5c5f66;bottom:-2px;content:"";display:block;height:2px;position:absolute;right:-2px;width:.875rem}.Theme-Border-items .Theme-Border-item--active.Theme-Border-item--all{border:2px solid #2468f2}.Theme-Border-items .Theme-Border-item--active:after{background:#2468f2}.Theme-Border-settings{flex:1;margin-left:1rem}.Theme-Border-settings .cxd-Form-item{margin-bottom:0}.Theme-Border-settings .theme-select{margin-bottom:.5rem}.Theme-Border-settings-style-color{display:flex;justify-content:space-between}.Theme-Border-settings-style-color .cxd-Select{flex:1;margin-right:.25rem}.Theme-Border-settings-width{margin-bottom:.5rem;width:100%}.Theme-Border-settings--all{display:flex;justify-content:space-between;margin-left:.3125rem}.Theme-Border-settings--all .theme-select{flex:1 0;margin-bottom:0;margin-right:.3125rem;width:5rem}.Theme-Border-settings--all .Theme-Border-settings-style-color{display:flex;flex:1;justify-content:space-between}.Theme-Border-settings--all .Theme-Border-settings-style-color .cxd-Select{height:2rem;margin-left:.25rem;width:6rem}.Theme-Border-style{align-items:center;display:flex;width:100%}.Theme-Border-style-line{border:1px solid #000;flex:1;height:1px;margin-right:.875rem}.Theme-Border .is-active .Theme-Border-style-line{border-color:#2468f2}.Theme-Radius-label{color:#5c5f66;font-size:12px;margin-bottom:.625rem}.Theme-Radius .cxd-Form-item{margin-bottom:0}.Theme-Radius-inner{display:flex}.Theme-Radius-item{border-radius:4px;cursor:pointer;display:flex;flex-grow:0;flex-shrink:0;height:2rem;margin-right:.25rem;overflow:hidden;width:2rem}.Theme-Radius-item-all{align-items:center;background:#f7f7f9;display:inline-flex;height:2rem;justify-content:center;width:2rem}.Theme-Radius-item-all:before{border:2px solid #5c5f66;border-radius:2px;content:"";display:block;height:.875rem;width:.875rem}.Theme-Radius-item-custom{background:#f7f7f9;border-left:1px solid #e8e9eb;height:2rem;position:relative;width:2rem}.Theme-Radius-item-custom:before{border:2px solid #5c5f66;border-radius:2px;content:"";height:.875rem;width:.875rem}.Theme-Radius-item-custom:after,.Theme-Radius-item-custom:before{display:block;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.Theme-Radius-item-custom:after{color:#f7f7f9;content:"＋";font-size:1.875rem;font-weight:900}.Theme-Radius-item-all--active:before,.Theme-Radius-item-custom--active:before{border-color:#2468f2}.Theme-Radius-item--custom{width:4rem}.Theme-Radius-settings{flex:1}.Theme-Radius-settings-custom{display:flex;justify-content:space-between;margin-top:.5rem}.Theme-Radius-settings-custom .arrow-icon{display:none}.Theme-Radius-settings-custom input{padding:0!important}.Theme-Radius-settings-custom .theme-select{padding:0 .25rem!important}.Theme-Radius-settings-custom-item:last-child{margin-right:0}.Theme-Radius-settings-custom-item{flex:1;margin-right:.25rem;min-width:0}.Theme-Radius-settings-custom-item-label{border:0 solid #5c5f66;border-radius:2px;height:.625rem;margin:.5rem auto;width:.625rem}.Theme-Radius-settings-custom-item-top-left{border-left-width:2px;border-top-width:2px}.Theme-Radius-settings-custom-item-top-right{border-right-width:2px;border-top-width:2px}.Theme-Radius-settings-custom-item-bottom-left{border-bottom-width:2px;border-left-width:2px}.Theme-Radius-settings-custom-item-bottom-right{border-bottom-width:2px;border-right-width:2px}.Theme-ColorPicker-label-out{border-radius:.25rem;cursor:pointer;height:2rem;overflow:hidden;width:2rem}.Theme-ColorPicker-label{height:2rem;width:2rem}.Theme-ColorPicker.is-disabled{background:#f7f8fa;border-color:#e8e9eb;color:#b8babf}.Theme-ColorPicker.is-readOnly{pointer-events:none}.Theme-ColorPicker-title{color:#5c5f66;font-size:12px;margin-bottom:.625rem}.Theme-ColorPicker--input{align-items:center;border:1px solid #e8e9eb;border-radius:.25rem;cursor:pointer;display:flex;height:2rem;padding:0 .625rem}.Theme-ColorPicker--input .Theme-ColorPicker-label-out{border-radius:.25rem;flex-shrink:0;height:1.375rem;overflow:hidden;width:1.375rem}.Theme-ColorPicker--input .Theme-ColorPicker-label{height:1.375rem;width:1.375rem}.Theme-ColorPicker--input .Theme-ColorPicker-input{flex-grow:1;margin-left:.375rem;max-width:100%;overflow:hidden;width:auto}.Theme-ColorPicker--input .Theme-ColorPicker-input>div{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Theme-ColorPicker--input .Theme-ColorPicker-input--placeholder{color:var(--Form-select-placeholderColor)}.Theme-ColorPicker--input .Theme-ColorPicker-arrow{align-items:center;display:flex;justify-content:center;line-height:1;text-align:center;transform:rotate(90deg);transition:transform .2s;width:1rem}.Theme-ColorPicker--input .Theme-ColorPicker-arrow>svg{color:var(--default-icon-color);height:.625rem;top:0;width:.625rem}.Theme-ColorPicker--input .Theme-ColorPicker-arrow--active{transform:rotate(270deg)}.Theme-ColorSelect{width:15rem}.Theme-ColorSelect-tab{border:1px solid #e8e9eb;display:flex;padding:.875rem .75rem}.Theme-ColorSelect-tab>div{border-radius:50%;cursor:pointer;height:1rem;margin-right:.75rem;width:1rem}.Theme-ColorSelect-tab>div>svg{height:1rem;width:1rem}.Theme-ColorSelect-tab-color{background-color:#e8e9eb}.Theme-ColorSelect-tab-color--active{background:#d4e5ff;border:1px solid #2468f2}.Theme-ColorSelect-tab-gradient{background-image:linear-gradient(180deg,#f4f4f4,#b8babf)}.Theme-ColorSelect-tab-gradient--active{background-image:linear-gradient(180deg,#fff,#6296ff 99%);border:1px solid #2468f2}.Theme-ColorSelect-tab-img--active>svg{border:1px solid #2468f2;border-radius:50%}.Theme-ColorSelect-tab-sub{border-bottom:1px solid #e8e9eb;color:#5c5f66;display:flex;font-size:12px;margin:0 .875rem;padding:.75rem 0}.Theme-ColorSelect-tab-sub-item{cursor:pointer;margin-right:1.875rem}.Theme-ColorSelect-tab-sub--active{color:#2468f2}.Theme-ColorSelect-content{padding:.75rem}.Theme-ColorSelect-PresetColors{border-top:1px solid #e8e9eb;margin-top:.625rem;padding-top:.625rem}.Theme-ColorSelect-PresetColors-header{color:#5c5f66;font-size:12px}.Theme-ColorSelect-PresetColors-edit{cursor:pointer;float:right}.Theme-ColorSelect-PresetColors-edit:hover,.Theme-ColorSelect-PresetColors-editing{color:#2468f2}.Theme-ColorSelect-PresetColors-content{display:flex;flex-wrap:wrap;margin:.25rem -.25rem 0}.Theme-ColorSelect-PresetColors-content>div{align-items:center;border-radius:.125rem;cursor:pointer;display:flex;height:1.25rem;justify-content:center;margin:0 .25rem;position:relative;width:1.25rem}.Theme-ColorSelect-PresetColors-content>div>div{height:1.25rem;width:1.25rem}.Theme-ColorSelect-PresetColors-content-placeholder{color:#b8babf;font-size:12px}.Theme-ColorSelect-PresetColors-content-editing>div:hover:before{background-color:rgba(0,0,0,.4);bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.Theme-ColorSelect-PresetColors-content-editing>div:hover:after{color:#fff;content:"\\f2ed";font-family:Font Awesome\\ 5 Free;font-size:12px;position:absolute}.ThemeColorList{max-height:19.375rem;overflow:auto;width:13.5rem}.ThemeColorList-title{color:#151b26;font-size:12px}.ThemeColorList-content{display:flex;margin:.75rem 0}.ThemeColorList-content-title{color:#5c5f66;flex:2.25rem 0 0;font-size:12px;font-weight:400;line-height:1.5rem;margin-right:.75rem}.ThemeColorList-content-label{align-items:center;border-radius:.125rem;cursor:pointer;display:inline-flex;height:1.5rem;justify-content:center;margin-right:.5rem;width:1.5rem}.ThemeColorList-content-label-inner{border-radius:.125rem;height:1.25rem;width:1.25rem}.ThemeColorList-content-label--border{border:1px solid #f7f7f9}.ThemeColorList-content-label--active{border:1px solid #2468f2;border-radius:2px}.ThemeColorList-content--top{margin-top:0;position:relative}.ThemeColorList-content--search{position:absolute;right:0}.ThemeColorList-content--search input{font-size:12px}.ThemeColorList-content--search .cxd-SearchBox.is-active{width:13.5rem}.Theme-GradientColor-slider{align-items:center;display:flex;margin-bottom:.625rem}.Theme-GradientColor-slider-inner{align-items:center;border:1px solid #a5a5a5;border-radius:.25rem;cursor:copy;display:flex;flex:1 1 auto;height:.5rem;margin:0 .625rem 0 .4375rem;position:relative}.Theme-GradientColor-slider-inner-item{border:2px solid #fff;border-radius:50%;box-shadow:0 0 2px 1px #a5a5a5;cursor:pointer;height:.875rem;position:absolute;width:.875rem}.Theme-GradientColor-slider-inner-item--active{box-shadow:0 0 2px 1px #2468f2}.Theme-GradientColor-range{position:relative;width:2.5rem}.Theme-GradientColor-range .cxd-Number{height:1.625rem}.Theme-GradientColor-range .cxd-Number-handler-wrap{display:none!important}.Theme-GradientColor-range .cxd-Number-input{font-size:12px;padding:0 .25rem}.Theme-GradientColor-range-panel{background:#fff;padding:.25rem;width:4.375rem}.Theme-GradientColor-range-panel-title{color:#5c5f66;font-size:12px;margin-bottom:.25rem;transform:scale(.9)}.Theme-GradientColor-range-panel-content{background:#d0d0d0;border-radius:50%;height:50px;margin:0 auto;position:relative;width:50px}.Theme-GradientColor-range-panel-content-handler{background:#5c5f66;border-radius:50%;cursor:pointer;height:8px;left:12px;position:absolute;width:8px}.Theme-ImageInput .cxd-Image--thumb,.Theme-ImageInput .cxd-Image-thumb,.Theme-ImageInput .cxd-ImageControl-addBtn,.Theme-ImageInput .cxd-ImageControl-item,.Theme-ImageInput .resourceManager-background{width:100%}.Theme-ImageInput .cxd-Form-item{margin-bottom:.5rem}.Theme-ImageInput-func{grid-column-gap:.625rem;display:grid;grid-template-columns:auto 2rem 2rem}.Theme-ImageInput-position{border:1px solid #e8e9eb;border-radius:.25rem;cursor:pointer;display:grid;grid-template-columns:repeat(3,33.33%);grid-template-rows:repeat(3,33.33%);height:2rem;overflow:hidden;width:2rem}.Theme-ImageInput-position-item{border:1px solid #e8e9eb}.Theme-ImageInput-position-item:first-child{border-left:none;border-top:none}.Theme-ImageInput-position-item:nth-child(2){border-left:none;border-right:none;border-top:none}.Theme-ImageInput-position-item:nth-child(3){border-right:none;border-top:none}.Theme-ImageInput-position-item:nth-child(4){border-bottom:none;border-left:none;border-top:none}.Theme-ImageInput-position-item:nth-child(5){border:none}.Theme-ImageInput-position-item:nth-child(6){border-bottom:none;border-right:none;border-top:none}.Theme-ImageInput-position-item:nth-child(7){border-bottom:none;border-left:none}.Theme-ImageInput-position-item:nth-child(8){border-bottom:none;border-left:none;border-right:none}.Theme-ImageInput-position-item:nth-child(9){border-bottom:none;border-right:none}.Theme-ImageInput-position-item--active{background:#2468f2}.Theme-ImageInput-position-container{padding:.625rem 1rem 1rem}.Theme-ImageInput-position-container .Theme-ImageInput-position-title{font-size:12px;margin-bottom:.625rem}.Theme-ImageInput-position-content{border:1px solid #e8e9eb;border-radius:.25rem;cursor:pointer;display:grid;grid-template-columns:repeat(3,33.33%);grid-template-rows:repeat(3,33.33%);height:100px;overflow:hidden;width:100px}.Theme-ImageInput-position-content-item--active{background:#2468f2}.Theme-ImageInput-position-content-item{border:1px solid #e8e9eb}.Theme-ImageInput-position-content-item:first-child{border-left:none;border-top:none}.Theme-ImageInput-position-content-item:nth-child(2){border-left:none;border-right:none;border-top:none}.Theme-ImageInput-position-content-item:nth-child(3){border-right:none;border-top:none}.Theme-ImageInput-position-content-item:nth-child(4){border-bottom:none;border-left:none;border-top:none}.Theme-ImageInput-position-content-item:nth-child(5){border:none}.Theme-ImageInput-position-content-item:nth-child(6){border-bottom:none;border-right:none;border-top:none}.Theme-ImageInput-position-content-item:nth-child(7){border-bottom:none;border-left:none}.Theme-ImageInput-position-content-item:nth-child(8){border-bottom:none;border-left:none;border-right:none}.Theme-ImageInput-position-content-item:nth-child(9){border-bottom:none;border-right:none}.Theme-ImageInput-position-content-item:hover{background:#e6f0ff}.Theme-ImageInput-color{background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa),linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa);background-position:0 0,5px 5px;background-size:10px 10px;border:1px solid #f7f7f9;border-radius:.25rem;cursor:pointer;height:2rem;width:2rem}.Theme-ImageInput-color-container{padding:16px}.Theme-ImageInput-color-content-tab{border-bottom:1px solid #e8e9eb;color:#5c5f66;display:flex;font-size:12px;margin-bottom:.875rem;padding-bottom:.875rem}.Theme-ImageInput-color-content-tab-item{cursor:pointer;margin-right:1.875rem}.Theme-ImageInput-color-content-tab-item--active{color:#2468f2}.Theme-CustomColor .sketch-picker,.Theme-GradientColor .sketch-picker{box-shadow:none!important;padding:0!important}.ThemeColor--transparent{background-color:#fff!important;background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa),linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa)!important;background-position:0 0,5px 5px!important;background-size:10px 10px!important;border:1px solid #f7f7f9}.ThemeColor--delete{background:#fff;border:1px solid #f7f7f9;height:100%;width:100%}.ThemeColor--delete:before{background-color:#f23d3d;content:"";display:block;height:2px;margin-top:50%;transform:rotate(-45deg) translateY(-50%);width:100%}[color-tooltip]{position:relative}[color-tooltip]:hover:before{display:block}[color-tooltip]:before{background:#fff;border-radius:.125rem;bottom:-2.1875rem;box-shadow:0 .125rem .25rem rgba(0,0,0,.075);content:attr(color-tooltip);display:none;font-size:12px;left:50%;padding:.375rem;position:absolute;transform:scale(.9) translateX(-50%);width:max-content;z-index:1500}.Theme-SizeEditor-label{color:#5c5f66;font-size:12px;margin-bottom:.625rem}.Theme-SizeEditor-line{align-items:center;display:flex;justify-content:space-between;margin-bottom:.75rem}.Theme-SizeEditor-line .cxd-Button{padding:.375rem .5rem;width:2rem}.Theme-SizeEditor-line-no-hide .Theme-SizeEditor-item{max-width:13.125rem;width:13.125rem}.Theme-SizeEditor-line-no-hide .Theme-SizeEditor-item .theme-select{max-width:10.875rem;width:10.875rem}.Theme-SizeEditor-line .Theme-SizeEditor-item-label{width:2.25rem}.Theme-SizeEditor-line .Theme-SizeEditor-item:not(:last-child){margin-bottom:.5rem}.Theme-SizeEditor-lock{position:relative}.Theme-SizeEditor-lock:before{border:1px solid #b8babf;border-bottom:none;border-left:none;top:-.625rem}.Theme-SizeEditor-lock:after,.Theme-SizeEditor-lock:before{content:"";display:block;height:.625rem;left:-.625rem;position:absolute;width:1.625rem}.Theme-SizeEditor-lock:after{border:1px solid #b8babf;border-left:none;border-top:none;bottom:-.625rem}.Theme-SizeEditor-item{align-items:center;display:flex;flex:1}.Theme-SizeEditor-item-label{border:.0625rem solid #e8e9eb;border-bottom-left-radius:.25rem;border-right:0;border-top-left-radius:.25rem;color:#b8babf;font-size:12px;line-height:18px;padding:.375rem .75rem}.Theme-SizeEditor-item .cxd-Form-item{margin:0}.Theme-SizeEditor-item .cxd-TextControl-input{border-bottom-left-radius:0;border-top-left-radius:0;font-size:12px}.Theme-SizeEditor-item .cxd-TextControl-sugs{min-width:9.375rem!important}.Theme-SizeEditor-item-sigle{display:block}.Theme-SizeEditor-item-sigle .cxd-Form-item{width:auto}.Theme-SizeEditor-item-sigle .Theme-SizeEditor-item div{flex-grow:1}.Theme-SizeEditor-item-sigle .Theme-SizeEditor-item .Theme-SizeEditor-item-label{flex-grow:0;width:auto}.theme-select{align-items:center;border:1px solid #e8e9eb;border-radius:4px;display:flex;flex:1 0 2rem;height:2rem;padding:0 .5rem;position:relative}.theme-select .ThemeSelectContent-theme{align-items:center;background-color:#f7f8fa;border-radius:2px;cursor:pointer;display:flex;height:1.5rem;overflow:hidden;padding:0 .25rem;width:fit-content}.theme-select .ThemeSelectContent-theme>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-select .ThemeSelectContent-theme>.icon-close{color:#b8babf;flex:1 0 1em;margin-left:.25rem;top:0}.theme-select .ThemeSelectContent-theme>.icon-close:hover{color:#2468f2}.theme-select .ThemeSelectContent-input{border:none;outline:none;width:100%}.theme-select .ThemeSelectContent-input::placeholder{color:#b8babf}.theme-select--active,.theme-select:hover{border-color:#2468f2}.theme-select--disabled{background-color:#f7f8fa;cursor:not-allowed}.theme-select--disabled .ThemeSelectContent-theme{cursor:not-allowed}.ThemeSelectContent-input-select{max-height:12.5rem;max-width:12.5rem;overflow:scroll}.ThemeSelectContent-input-select>div{cursor:pointer;height:2rem;line-height:2rem;padding:0 .5rem}.ThemeSelectContent-input-select>div:hover{background-color:#e6f0ff}.ThemeSelectContent-input-select-item--active{color:#2468f2}.arrow-icon{color:#84868c;height:.625rem;transform:rotate(90deg);transition:transform .2s ease;width:.625rem}.arrow-icon-reverse{transform:rotate(270deg)}.Theme-FontEditor .common-icon{color:#5c5f66;cursor:pointer;height:1rem;width:1rem}.Theme-FontEditor-line{display:flex;justify-content:space-between;margin-bottom:.75rem}.Theme-FontEditor-line .cxd-Button{padding:.375rem .5rem}.Theme-FontEditor-item{align-items:top;display:flex;flex:1;flex-direction:column;margin-right:.25rem;min-width:0}.Theme-FontEditor-item:last-child{margin-right:0}.Theme-FontEditor-item-label{color:#5c5f66;font-size:12px;line-height:1.25rem;margin-top:.25rem;text-align:center}.Theme-FontEditor-item .cxd-Form-item{flex:1;margin:0}.Theme-FontEditor-item .cxd-Select{font-size:12px}.Theme-FontEditor-item .cxd-Select-popover{min-width:9.375rem!important}.Theme-FontEditor-item .color-picker{background:#151b26;border-radius:4px;height:2rem;width:2rem}.Theme-FontEditor-item-color-picker{flex:0 1 2rem;width:2rem}.Theme-FontEditor-font-line{margin:0}.Theme-FontEditor-font-style{background:#f7f7f9;display:flex;justify-content:stretch;margin-bottom:.75rem;margin-top:.5rem}.Theme-FontEditor-font-style-icon{align-items:center;cursor:pointer;display:flex;flex:1;height:2rem;justify-content:center}.Theme-FontEditor-font-style .right-line{border-right:1px solid #d8d8d8}.Theme-FontEditor-font-style-selected .common-icon{color:#2468f2}.Theme-Wrapper .common-icon{color:#5c5f66;cursor:pointer;height:1rem;width:1rem}.Theme-Wrapper-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:.5rem}.Theme-Wrapper-header-left{color:#070c14;font-size:12px;font-weight:400;line-height:1.25rem}.Theme-Wrapper-header-right{align-items:center;display:flex}.Theme-Wrapper-header-right .arrow-icon{color:#84868c;cursor:pointer;height:.625rem;margin-left:.5rem;transform:rotate(90deg);transition:transform .2s ease;width:.625rem}.Theme-Wrapper-header-right .arrow-icon-reverse{transform:rotate(270deg)}.Theme-Wrapper-body .cxd-Form-item{margin-bottom:1rem}.Theme-Wrapper-body .theme-select .cxd-Form-item{margin-bottom:0}.Theme-Wrapper-body .cxd-IconSelectControl-input,.Theme-Wrapper-body .theme-select{border-radius:0 .25rem .25rem 0;height:2rem}.Theme-Wrapper-body .cxd-Form-label{border:1px solid #e8e9eb;border-radius:.25rem 0 0 .25rem;border-right:none;flex-grow:0;height:2rem;padding:0 .75rem;width:auto!important}.Theme-ShadowEditor .cxd-Theme-ShadowEditor-add{color:#5c5f66;height:.75rem;padding:0;width:.75rem}.Theme-ShadowEditor .cxd-Theme-ShadowEditor-add:not(:disabled):not(.is-disabled):hover{color:#5c5f66}.Theme-ShadowEditor-customContent{background-color:#f7f7f9;border-radius:4px;margin-top:.625rem;padding:.625rem}.Theme-ShadowEditor-sub-header{margin-bottom:0}.Theme-ShadowEditor-sub-header .Theme-Wrapper-header-left{color:#5c5f66}.Theme-ShadowEditor-line{display:flex;justify-content:space-between;margin-top:.75rem}.Theme-ShadowEditor-line .cxd-Button{padding:.375rem .5rem}.Theme-ShadowEditor-item{align-items:top;display:flex;flex:1;flex-direction:column;margin-right:.25rem}.Theme-ShadowEditor-item:last-child{margin-right:0}.Theme-ShadowEditor-item-label{color:#5c5f66;font-size:12px;line-height:.75rem;margin:.25rem 0 .5rem;text-align:center}.Theme-ShadowEditor-item .cxd-Form-item{flex:1;margin:0}.Theme-ShadowEditor-item .cxd-Select{font-size:12px}.Theme-ShadowEditor-item .cxd-Select-popover{min-width:9.375rem!important}.Theme-ShadowEditor-item .Theme-ShadowEditor-color-picker{align-items:center;background:#fff;border:1px solid hsla(0,0%,59%,.1);border-radius:.25rem;display:flex;height:2rem;justify-content:center;padding:.375rem .75rem}.Theme-ShadowEditor-item .Theme-ShadowEditor-color-picker .Theme-ColorPicker-arrow{display:none}.Theme-ShadowEditor-item .Theme-ShadowEditor-color-picker .Theme-ColorPicker-label,.Theme-ShadowEditor-item .Theme-ShadowEditor-color-picker .Theme-ColorPicker-label-out{height:1.25rem}.Theme-ShadowEditor-item .cxd-Number .cxd-Select{display:none}.Theme-ShadowEditor-item .cxd-Number .cxd-Number-handler-wrap{display:none!important}.Theme-ShadowEditor-item .cxd-Number input{padding:0 .25rem!important}.Theme-ShadowEditor .trash-icon{align-items:center;flex-basis:1rem;flex-grow:0;font-size:1rem;margin-left:.25rem}.Theme-ShadowEditor .trash-icon .common-icon{cursor:pointer;margin-top:.5rem}.Theme-ShadowEditor .trash-icon .common-icon path{fill:var(--colors-neutral-text-2)}.Theme-ShadowEditor .trash-icon .common-icon:hover path{fill:var(--colors-brand-5)}.Theme-ShadowEditor .trash-icon .disabled-icon{cursor:not-allowed}.Theme-ShadowEditor .trash-icon .disabled-icon path,.Theme-ShadowEditor .trash-icon .disabled-icon:hover path{fill:var(--colors-neutral-text-5)}.Theme-ShadowEditor-view{align-items:center;background-color:#fff;background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa),linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa);background-position:0 0,5px 5px;background-size:10px 10px;border:1px solid hsla(0,0%,59%,.1);border-radius:.25rem;display:flex;height:2rem;justify-content:center;margin-right:.25rem;overflow:hidden;width:2.625rem}.Theme-ShadowEditor-view-inner{background:#fff;height:1.25rem;width:1.75rem}.Theme-ShadowView{font-size:12px;padding:.75rem;width:18.75rem}.Theme-ShadowView-header{color:#050a10;font-weight:500;line-height:1.25rem;margin-bottom:.5rem}.Theme-ShadowView-body{border:1px solid #e8e9eb;border-radius:.25rem;padding:.75rem}.Theme-ShadowView-body-shadow{align-items:center;background-color:#fff;background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa),linear-gradient(45deg,#f7f8fa 25%,transparent 0,transparent 75%,#f7f8fa 0,#f7f8fa);background-position:0 0,10px 10px;background-size:20px 20px;display:flex;height:6.25rem;justify-content:center;overflow:hidden;width:100%}.Theme-ShadowView-body-shadow-square{background:#fff;height:4.375rem;width:10.25rem}.Theme-ShadowView-body-title{color:#050a10;font-size:12px;font-weight:500;line-height:1.25rem;margin:.5rem 0 0}.Theme-ShadowView-body-value{color:#83868c;line-height:1.25rem}.cxd-PopOver{z-index:1400!important}';styleInject(css_248z);function getGlobalData(x_){if(!x_||!x_.global)return{};var eme=x_.global,$P=eme.colors,tme=eme.fonts,ame=eme.borders,nme=eme.sizes,rme=eme.shadows,ime=[],ome=[],lme=[],sme=[],cme=[],dme=[],ume=[],fme=[],pme=[],hme=[];function bme(Ome){var Rme=[];return Ome.body.common.forEach(function(Nme,Ime){Rme.push({label:Nme.label,value:"var(".concat(Ome.token).concat(Nme.color+1,")"),realValue:Ome.body.colors[Nme.color].color})}),{label:Ome.label,value:Ome.token,children:Rme}}ime.push({label:"品牌色",value:"brand",children:[bme($P.brand)]});var mme={label:"中性色",value:"neutral",children:[]};$P.neutral.body.forEach(function(Ome,Rme){mme.children.push(bme(Ome))}),ime.push(mme);var vme={label:"辅助色",value:"neutral",children:[]};$P.func.body.forEach(function(Ome,Rme){vme.children.push(bme(Ome))}),ime.push(vme);var gme=function(Ome){var Rme,Nme=Ome,Ime={size:lme,lineHeight:cme,weight:sme},Pme=[];Nme!=="base"?(tme[Nme].body.forEach(function(Mme,kme){Pme.push({label:"".concat(Mme.label,"(").concat(Mme.value,")"),value:"var(".concat(Mme.token,")"),realValue:"".concat(Mme.value)})}),(Rme=Ime[Nme]).push.apply(Rme,__spreadArray([],__read$3(Pme),!1))):(tme.base.body.forEach(function(Mme,kme){Pme.push({label:Mme.value,value:Mme.value,realValue:Mme.value})}),ome.push.apply(ome,__spreadArray([],__read$3(Pme),!1)))};for(var yme in tme)gme(yme);var _me=function(Ome){var Rme,Nme=Ome,Ime={width:ume,style:fme,radius:dme},Pme=[];ame[Nme].body.forEach(function(Mme,kme){Pme.push({label:Nme==="style"?Mme.label:"".concat(Mme.label,"(").concat(Mme.value,")"),realValue:Mme.value,value:"var(".concat(Mme.token,")")})}),(Rme=Ime[Nme]).push.apply(Rme,__spreadArray([],__read$3(Pme),!1))};for(var yme in ame)_me(yme);nme.size.body.forEach(function(Ome){pme.push({label:"".concat(Ome.label,"(").concat(Ome.value,")"),value:"var(".concat(Ome.token,")"),realValue:Ome.value})});for(var $me=nme.size.start,Cme=parseFloat($me),Sme=$me.replace(Cme.toString(),""),Eme=nme.size.base,xme=1;xme<=50;xme++){var Tme=(xme-1)*Eme+Cme+Sme;pme.push({label:"尺寸".concat(xme,"(").concat(Tme,")"),value:"var(--sizes-base-".concat(xme,")"),realValue:Tme})}return rme.shadow.body.forEach(function(Ome){hme.push({label:Ome.label,value:"var(".concat(Ome.token,")"),realValue:Ome.value})}),{colorOptions:ime,fontFamilyOptions:ome,fontSizeOptions:lme,lineHeightOptions:cme,fontWeightOptions:sme,borderRadiusOptions:dme,borderWidthOptions:ume,borderStyleOptions:fme,sizesOptions:pme,shadowOptions:hme}}function getValueByPath(x_,eme){try{if(!x_||!eme)return null;var $P={},tme=function(ame){for(var nme=ame.split("."),rme=cloneDeep$1(eme.themeConfig.component),ime="",ome=function(cme){var dme=nme[cme],ume=/\$\{(.*)\}/.exec(dme)||[];ume[1]&&(dme=eme[ume[1]]||"default"),Array.isArray(rme)?rme=rme.find(function(fme){return fme.type===dme}):((dme==="hover"||dme==="active"||dme==="disabled")&&(ime=rme.default.token),rme=rme[dme])},lme=0;lme<nme.length;lme++)ome(lme);if(ime&&rme)if(typeof rme=="object")for(var sme in rme)rme[sme]==="var(".concat(ime).concat(sme,")")&&(rme[sme]="inherit");else rme==="var(".concat(ime).concat(nme[nme.length-1],")")&&(rme="inherit");return rme};return Array.isArray(x_)?x_.forEach(function(ame){var nme=tme(ame);typeof nme=="string"&&(nme={color:nme}),$P=Object.assign($P,nme)}):$P=tme(x_),$P}catch{return null}}function getInheritValue(x_,eme){try{if(!x_||!eme)return null;var $P={},tme=function(ame){for(var nme=ame.split("."),rme=cloneDeep$1(eme.themeConfig.component),ime="",ome=function(cme){var dme=nme[cme],ume=/\$\{(.*)\}/.exec(dme)||[];if(ume[1]&&(dme=eme[ume[1]]||"default"),Array.isArray(rme)?rme=rme.find(function(fme){return fme.type===dme}):dme==="hover"||dme==="active"||dme==="disabled"?(ime=rme.default.token,rme=rme.default):rme=rme[dme],!rme)return"break"},lme=0;lme<nme.length;lme++){var sme=ome(lme);if(sme==="break")break}return ime&&rme?rme:null};return Array.isArray(x_)?x_.forEach(function(ame){var nme=tme(ame);typeof nme=="string"&&(nme={color:nme}),$P=Object.assign($P,nme)}):$P=tme(x_),$P}catch{return null}}function formatInheritData(x_){if(typeof x_=="string"&&x_.indexOf("inherit:")>-1)return"inherit";if(!x_||typeof x_!="object")return x_;x_=cloneDeep$1(x_);for(var eme in x_)typeof x_[eme]=="string"&&x_[eme].indexOf("inherit:")>-1&&(x_[eme]="inherit");return x_}function setInheritData(x_,eme){if(x_&&eme)if(typeof x_=="string")x_==="inherit"&&(x_="inherit:"+(eme||""));else{x_=cloneDeep$1(x_);for(var $P in x_)x_[$P]==="inherit"&&(x_[$P]="inherit:"+(eme[$P]||""))}return x_}var remFactor=parseFloat(getComputedStyle(window.document.documentElement).fontSize)||16;function ThemeSelectContent(x_){var eme=x_.options,$P=x_.onChange,tme=x_.extraUnit,ame=x_.target,nme=x_.disabled,rme=x_.menuTpl,ime=x_.placeholder,ome=x_.editorThemePath,lme=x_.data,sme=x_.isEditorTpl,cme=String(formatInheritData(x_.value)),dme=reactExports.useRef(null),ume=__read$3(reactExports.useState(void 0),2),fme=ume[0],pme=ume[1],hme=__read$3(reactExports.useState(eme),2),bme=hme[0],mme=hme[1],vme=__read$3(reactExports.useState(!1),2),gme=vme[0],yme=vme[1],_me=getValueByPath(ome,lme),$me=getInheritValue(ome,lme);reactExports.useEffect(function(){var Ime=eme==null?void 0:eme.find(function(Pme){return Pme.value===cme});pme(Ime),Ime||(Eme(cme),dme.current&&(dme.current.value=cme))},[cme]);function Cme(Ime){if(Ime==="inherit")return i18n("a4f758412c3797290c957544c56db443");var Pme=eme==null?void 0:eme.find(function(Mme){return Mme.value===Ime});return Pme?Pme.label:Ime==="custom"?i18n("d8a4e8cdc29e9aa576e669ed165892c9"):Ime}function Sme(){$P(void 0),setTimeout(function(){var Ime;(Ime=dme.current)===null||Ime===void 0||Ime.focus()},10)}function Eme(Ime){var Pme=cloneDeep$1(eme)||[],Mme=Pme.filter(function(Vme){var Wme;return(Wme=Vme.realValue)===null||Wme===void 0?void 0:Wme.includes(Ime)}),kme=[];if(!Ime||Number.isNaN(parseFloat(Ime))){kme.push.apply(kme,__spreadArray([],__read$3(Pme),!1)),mme(kme);return}else Mme.length>0&&kme.push.apply(kme,__spreadArray([],__read$3(Mme),!1));var Bme=parseFloat(Ime),Dme=cloneDeep$1(tme);/^\d*$/.test(Ime)||(Dme=Dme.filter(function(Vme){return(Bme+Vme).includes(Ime)}));var jme=Dme.map(function(Vme){var Wme=Bme+Vme;return Vme==="rem"&&(Wme+="(".concat(Bme*remFactor,"px)")),{value:Bme+Vme,label:Wme,realValue:Bme+Vme}})||[];kme.unshift.apply(kme,__spreadArray([],__read$3(jme),!1)),tme.includes("rem")&&Dme.includes("px")&&kme.unshift({value:Bme/remFactor+"rem",label:"".concat(Bme,"px->").concat(Bme/remFactor,"rem"),realValue:Bme/remFactor+"rem"}),mme(kme.map(function(Vme){return __assign$3(__assign$3({},Vme),{html:highlight(Vme.label,Ime)})}))}function xme(Ime){return debounce$6(function(){$P(Ime?sme?setInheritData(Ime,$me):Ime:void 0)})()}function Tme(Ime){var Pme=Ime.currentTarget.value;Eme(Pme),xme(Pme)}function Ome(Ime){$P(sme?setInheritData(Ime.value,$me):Ime.value),yme(!1),dme.current&&(dme.current.value=Ime.value)}function Rme(){nme||yme(!0)}var Nme=cme==="inherit"?i18n("a4f758412c3797290c957544c56db443"):(fme==null?void 0:fme.label)||i18n("d8a4e8cdc29e9aa576e669ed165892c9");return jsxs(Fragment,{children:[fme||cme==="custom"||cme!=null&&cme.includes("var")||cme==="inherit"?jsx("div",{onClick:Rme,className:cx$1("theme-select",nme&&"theme-select--disabled",gme,gme&&"theme-select--active"),children:jsx(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:{children:function(){return jsx("div",{children:Nme})}},disabled:!!rme,children:jsxs("div",{className:"ThemeSelectContent-theme",children:[rme?jsx("div",{children:fme&&fme[rme]||i18n("d8a4e8cdc29e9aa576e669ed165892c9")}):jsx("div",{children:Nme}),nme?null:jsx(Icon$1,{icon:"close",className:"icon",onClick:Sme})]})})}):jsx("div",{className:cx$1("theme-select",nme&&"theme-select--disabled",gme&&"theme-select--active"),children:jsx("input",{className:"ThemeSelectContent-input",type:"text",onChange:Tme,onFocus:Rme,ref:dme,disabled:nme,placeholder:Cme(sme?_me:ime)})}),jsx(Overlay,{container:document.body,target:ame,show:gme&&!!(bme!=null&&bme.length),rootClose:!0,children:jsx(PopOver$1,{overlay:!0,onHide:function(){return yme(!1)},children:jsx("div",{className:"ThemeSelectContent-input-select",style:{minWidth:(ame==null?void 0:ame.clientWidth)+"px"},children:bme==null?void 0:bme.map(function(Ime){return jsx("div",{onClick:function(){return Ome(Ime)},className:cx$1((fme==null?void 0:fme.value)===Ime.value&&"ThemeSelectContent-input-select-item--active"),children:Ime.html||Ime.label},Ime.label)})})})})]})}function ThemeSelect(x_){var eme=x_.data,$P=x_.value,tme=x_.options,ame=x_.extraUnit,nme=ame===void 0?["px","rem","%"]:ame,rme=x_.disabled,ime=x_.state,ome=x_.itemName,lme=x_.inheritValue,sme=x_.isEditorTpl,cme=reactExports.useRef(null),dme=__read$3(React__default.useState(pme()),2),ume=dme[0],fme=dme[1];function pme(){var hme,bme,mme=cloneDeep$1(typeof tme=="string"?resolveVariableAndFilter(tme,eme,"| raw"):sme&&!tme?(eme==null?void 0:eme.sizesOptions)||[]:tme||[]);if(ime&&ime!=="default"&&mme[0]&&mme[0].value!=="var(".concat((hme=eme==null?void 0:eme.default)===null||hme===void 0?void 0:hme.token).concat(ome,")")){var vme=sme?"inherit":"var(".concat((bme=eme==null?void 0:eme.default)===null||bme===void 0?void 0:bme.token).concat(ome,")");mme.unshift({label:i18n("a4f758412c3797290c957544c56db443"),value:lme||vme,realValue:i18n("a4f758412c3797290c957544c56db443")})}return mme}return reactExports.useEffect(function(){fme(pme())},[tme]),jsx("div",{ref:cme,children:jsx(ThemeSelectContent,{...__assign$3({},x_,{value:$P||"",options:ume,extraUnit:nme,target:cme.current,disabled:rme})})})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(ThemeSelect,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"amis-theme-select",strictMode:!1,renderLabel:!0})],eme),eme})(React__default.Component);function PaddingAndMarginDialog(x_){var eme=x_.onChange,$P=x_.value,tme=x_.data,ame=x_.custom,nme=x_.label,rme=x_.options,ime=x_.hideMargin,ome=x_.hidePadding,lme=x_.state,sme=x_.editorThemePath,cme=__read$3(reactExports.useState("all"),2),dme=cme[0],ume=cme[1],fme=__read$3(reactExports.useState(null),2),pme=fme[0],hme=fme[1],bme=__read$3(reactExports.useState(!1),2),mme=bme[0],vme=bme[1],gme=__read$3(reactExports.useState(0),2),yme=gme[0],_me=gme[1],$me=__read$3(reactExports.useState("marginTop"),2),Cme=$me[0],Sme=$me[1],Eme=__read$3(reactExports.useState(!1),2),xme=Eme[0],Tme=Eme[1],Ome=__read$3(reactExports.useState(!1),2),Rme=Ome[0],Nme=Ome[1],Ime=[{value:"marginTop"},{value:"marginRight"},{value:"marginBottom"},{value:"marginLeft"},{value:"paddingTop"},{value:"paddingRight"},{value:"paddingBottom"},{value:"paddingLeft"}].filter(function(Lme){return ime?!!~Lme.value.indexOf("padding"):ome?!!~Lme.value.indexOf("margin"):Lme}),Pme=Dme(getValueByPath(sme,tme)),Mme=getInheritValue(sme,tme),kme=Dme($P||{}),Bme=rme||tme.sizesOptions||[];function Dme(Lme){if(!Lme)return null;var zme=formatInheritData(cloneDeep$1(Lme));return(zme==null?void 0:zme.marginTop)===(zme==null?void 0:zme.marginRight)&&(zme==null?void 0:zme.marginRight)===(zme==null?void 0:zme.marginBottom)&&(zme==null?void 0:zme.marginBottom)===(zme==null?void 0:zme.marginLeft)?zme.margin=zme==null?void 0:zme.marginTop:zme.margin="custom",(zme==null?void 0:zme.paddingTop)===(zme==null?void 0:zme.paddingRight)&&(zme==null?void 0:zme.paddingRight)===(zme==null?void 0:zme.paddingBottom)&&(zme==null?void 0:zme.paddingBottom)===(zme==null?void 0:zme.paddingLeft)?zme.padding=zme==null?void 0:zme.paddingTop:zme.padding="custom",zme}function jme(Lme){return function(zme){var Ume=cloneDeep$1(kme);if(delete Ume.margin,delete Ume.padding,zme!=="custom"){if(Lme==="margin-all")if(zme!=null&&zme.includes("all")){var Gme=function(Yme){return"var(".concat(tme.default.token).concat(Yme,")")};Ume.marginTop=Gme("marginTop"),Ume.marginRight=Gme("marginRight"),Ume.marginBottom=Gme("marginBottom"),Ume.marginLeft=Gme("marginLeft")}else Ume.marginTop=zme,Ume.marginRight=zme,Ume.marginBottom=zme,Ume.marginLeft=zme;else if(Lme==="padding-all")if(zme!=null&&zme.includes("all")){var Gme=function(Qme){return"var(".concat(tme.default.token).concat(Qme,")")};Ume.paddingTop=Gme("paddingTop"),Ume.paddingRight=Gme("paddingRight"),Ume.paddingBottom=Gme("paddingBottom"),Ume.paddingLeft=Gme("paddingLeft")}else Ume.paddingTop=zme,Ume.paddingRight=zme,Ume.paddingBottom=zme,Ume.paddingLeft=zme;else if(typeof Lme=="number"){var Jme=Ime[Lme].value;Ume[Jme]=zme,Jme.includes("padding")?Tme(!1):Nme(!1)}eme(setInheritData(Ume,Mme))}}}function Vme(Lme){var zme;return((zme=Bme.find(function(Ume){return Ume.value===Lme}))===null||zme===void 0?void 0:zme.realValue)||Lme}function Wme(Lme,zme,Ume){vme(!0),hme(Lme.currentTarget),_me(zme),Sme(Ume)}return reactExports.useEffect(function(){var Lme,zme,Ume,Gme,Jme,Yme,Qme,Xme;lme&&lme!=="default"&&$P&&(!((Lme=$P.paddingTop)===null||Lme===void 0)&&Lme.includes("default-paddingTop")&&(!((zme=$P.paddingBottom)===null||zme===void 0)&&zme.includes("default-paddingBottom"))&&(!((Ume=$P.paddingRight)===null||Ume===void 0)&&Ume.includes("default-paddingRight"))&&(!((Gme=$P.paddingLeft)===null||Gme===void 0)&&Gme.includes("default-paddingLeft"))&&Tme(!0),!((Jme=$P.marginTop)===null||Jme===void 0)&&Jme.includes("default-marginTop")&&(!((Yme=$P.marginBottom)===null||Yme===void 0)&&Yme.includes("default-marginBottom"))&&(!((Qme=$P.marginRight)===null||Qme===void 0)&&Qme.includes("default-marginRight"))&&(!((Xme=$P.marginLeft)===null||Xme===void 0)&&Xme.includes("default-marginLeft"))&&Nme(!0))},[$P]),reactExports.useEffect(function(){(kme.margin==="custom"||kme.padding==="custom")&&ume("custom")},[]),jsxs("div",{className:"Theme-PaddingAndMargin",children:[nme?jsx("div",{className:"Theme-PaddingAndMargin-title",children:nme}):null,jsxs("div",{className:"Theme-PaddingAndMargin-inner",children:[jsxs("div",{className:cx$1("Theme-PaddingAndMargin-label",ame&&"Theme-PaddingAndMargin-label--custom"),children:[jsx("div",{className:cx$1("Theme-PaddingAndMargin-label-all",dme==="all"&&"Theme-PaddingAndMargin-label-all--active"),onClick:function(){return ume("all")}}),ame?jsxs("div",{className:cx$1("Theme-PaddingAndMargin-label-custom",dme==="custom"&&"Theme-PaddingAndMargin-label-custom--active"),onClick:function(){return ume("custom")},children:[jsx("div",{}),jsx("div",{})]}):null]}),dme==="all"?jsxs(Fragment,{children:[!ime&&jsxs("div",{className:"Theme-PaddingAndMargin-input",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:Bme,value:Rme?"var(".concat(tme.default.token,"margin-all)"):kme.margin,onChange:jme("margin-all"),itemName:"margin-all",state:lme,inheritValue:sme?"inherit":"",placeholder:Pme==null?void 0:Pme.margin})}),jsx("div",{className:"Theme-PaddingAndMargin-input-label",children:"Margin"})]}),!ome&&jsxs("div",{className:"Theme-PaddingAndMargin-input",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:Bme,value:xme?"var(".concat(tme.default.token,"padding-all)"):kme.padding,onChange:jme("padding-all"),itemName:"padding-all",state:lme,inheritValue:sme?"inherit":"",placeholder:Pme==null?void 0:Pme.padding})}),jsx("div",{className:"Theme-PaddingAndMargin-input-label",children:"Padding"})]})]}):null]}),dme!=="all"?jsxs("div",{className:cx$1("Theme-PaddingAndMargin-custom",!ome&&"Theme-PaddingAndMargin-custom--padding",!ime&&"Theme-PaddingAndMargin-custom--margin"),children:[Ime.map(function(Lme,zme){return jsx("div",{className:cx$1("Theme-PaddingAndMargin-custom-"+Lme.value),onClick:function(Ume){return Wme(Ume,zme,Lme.value)},children:jsx("div",{children:Vme(kme[Lme.value]||(Pme==null?void 0:Pme[Lme.value]))||"-"})},Lme.value)}),jsx(Overlay,{container:document.body,target:pme,show:mme,rootClose:!1,children:jsx(PopOver$1,{overlay:!0,onHide:function(){return vme(!1)},children:jsx("div",{className:"Theme-PaddingAndMargin-custom-popover",children:jsx(ThemeSelect,{...__assign$3({},x_,{options:Bme,value:kme[Cme],onChange:jme(yme),itemName:Cme,state:lme,inheritValue:sme?"inherit":"",placeholder:Pme==null?void 0:Pme[Cme]})})})})})]}):null]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P;return jsx(PaddingAndMarginDialog,{...__assign$3({},this.props,{custom:($P=this.props.custom)!==null&&$P!==void 0?$P:!0})})},eme=__decorate$1([FormItem({type:"amis-theme-padding-and-margin",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);var lib$2={},flattenNames$1={},baseForOwn$1=_baseForOwn,castFunction$2=_castFunction;function forOwn(x_,eme){return x_&&baseForOwn$1(x_,castFunction$2(eme))}var forOwn_1=forOwn;Object.defineProperty(flattenNames$1,"__esModule",{value:!0});flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$a(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$a(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$a(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$a(_map2);function _interopRequireDefault$a(x_){return x_&&x_.__esModule?x_:{default:x_}}var flattenNames=flattenNames$1.flattenNames=function x_(){var eme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$P=[];return(0,_map3.default)(eme,function(tme){Array.isArray(tme)?x_(tme).map(function(ame){return $P.push(ame)}):(0,_isPlainObject3.default)(tme)?(0,_forOwn3$2.default)(tme,function(ame,nme){ame===!0&&$P.push(nme),$P.push(nme+"-"+ame)}):(0,_isString3.default)(tme)&&$P.push(tme)}),$P};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0});mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$9(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$9(_cloneDeep2),_extends$2Z=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_};function _interopRequireDefault$9(x_){return x_&&x_.__esModule?x_:{default:x_}}var mergeClasses=mergeClasses$1.mergeClasses=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tme=eme.default&&(0,_cloneDeep3.default)(eme.default)||{};return $P.map(function(ame){var nme=eme[ame];return nme&&(0,_forOwn3$1.default)(nme,function(rme,ime){tme[ime]||(tme[ime]={}),tme[ime]=_extends$2Z({},tme[ime],nme[ime])}),ame}),tme};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0});autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$8(_forOwn2),_extends$2Y=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_};function _interopRequireDefault$8(x_){return x_&&x_.__esModule?x_:{default:x_}}var transforms={borderRadius:function(eme){return{msBorderRadius:eme,MozBorderRadius:eme,OBorderRadius:eme,WebkitBorderRadius:eme,borderRadius:eme}},boxShadow:function(eme){return{msBoxShadow:eme,MozBoxShadow:eme,OBoxShadow:eme,WebkitBoxShadow:eme,boxShadow:eme}},userSelect:function(eme){return{WebkitTouchCallout:eme,KhtmlUserSelect:eme,MozUserSelect:eme,msUserSelect:eme,WebkitUserSelect:eme,userSelect:eme}},flex:function(eme){return{WebkitBoxFlex:eme,MozBoxFlex:eme,WebkitFlex:eme,msFlex:eme,flex:eme}},flexBasis:function(eme){return{WebkitFlexBasis:eme,flexBasis:eme}},justifyContent:function(eme){return{WebkitJustifyContent:eme,justifyContent:eme}},transition:function(eme){return{msTransition:eme,MozTransition:eme,OTransition:eme,WebkitTransition:eme,transition:eme}},transform:function(eme){return{msTransform:eme,MozTransform:eme,OTransform:eme,WebkitTransform:eme,transform:eme}},absolute:function(eme){var $P=eme&&eme.split(" ");return{position:"absolute",top:$P&&$P[0],right:$P&&$P[1],bottom:$P&&$P[2],left:$P&&$P[3]}},extend:function(eme,$P){var tme=$P[eme];return tme||{extend:eme}}},autoprefix=autoprefix$1.autoprefix=function(eme){var $P={};return(0,_forOwn3.default)(eme,function(tme,ame){var nme={};(0,_forOwn3.default)(tme,function(rme,ime){var ome=transforms[ime];ome?nme=_extends$2Y({},nme,ome(rme)):nme[ime]=rme}),$P[ame]=nme}),$P};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0});hover$1.hover=void 0;var _extends$2X=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_react$6=reactExports,_react2$5=_interopRequireDefault$7(_react$6);function _interopRequireDefault$7(x_){return x_&&x_.__esModule?x_:{default:x_}}function _classCallCheck$b(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$b(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var hover=hover$1.hover=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(tme){_inherits$b(ame,tme);function ame(){var nme,rme,ime,ome;_classCallCheck$b(this,ame);for(var lme=arguments.length,sme=Array(lme),cme=0;cme<lme;cme++)sme[cme]=arguments[cme];return ome=(rme=(ime=_possibleConstructorReturn$b(this,(nme=ame.__proto__||Object.getPrototypeOf(ame)).call.apply(nme,[this].concat(sme))),ime),ime.state={hover:!1},ime.handleMouseOver=function(){return ime.setState({hover:!0})},ime.handleMouseOut=function(){return ime.setState({hover:!1})},ime.render=function(){return _react2$5.default.createElement($P,{onMouseOver:ime.handleMouseOver,onMouseOut:ime.handleMouseOut},_react2$5.default.createElement(eme,_extends$2X({},ime.props,ime.state)))},rme),_possibleConstructorReturn$b(ime,ome)}return ame}(_react2$5.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0});active$1.active=void 0;var _extends$2W=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_react$5=reactExports,_react2$4=_interopRequireDefault$6(_react$5);function _interopRequireDefault$6(x_){return x_&&x_.__esModule?x_:{default:x_}}function _classCallCheck$a(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$a(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$a(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var active=active$1.active=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(tme){_inherits$a(ame,tme);function ame(){var nme,rme,ime,ome;_classCallCheck$a(this,ame);for(var lme=arguments.length,sme=Array(lme),cme=0;cme<lme;cme++)sme[cme]=arguments[cme];return ome=(rme=(ime=_possibleConstructorReturn$a(this,(nme=ame.__proto__||Object.getPrototypeOf(ame)).call.apply(nme,[this].concat(sme))),ime),ime.state={active:!1},ime.handleMouseDown=function(){return ime.setState({active:!0})},ime.handleMouseUp=function(){return ime.setState({active:!1})},ime.render=function(){return _react2$4.default.createElement($P,{onMouseDown:ime.handleMouseDown,onMouseUp:ime.handleMouseUp},_react2$4.default.createElement(eme,_extends$2W({},ime.props,ime.state)))},rme),_possibleConstructorReturn$a(ime,ome)}return ame}(_react2$4.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function(eme,$P){var tme={},ame=function(rme){var ime=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;tme[rme]=ime};return eme===0&&ame("first-child"),eme===$P-1&&ame("last-child"),(eme===0||eme%2===0)&&ame("even"),Math.abs(eme%2)===1&&ame("odd"),ame("nth-child",eme),tme};loop.default=loopable;Object.defineProperty(lib$2,"__esModule",{value:!0});lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$5(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$5(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$5(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$5(_hover2),_active=active$1,_active2=_interopRequireDefault$5(_active),_loop2=loop,_loop3=_interopRequireDefault$5(_loop2);function _interopRequireDefault$5(x_){return x_&&x_.__esModule?x_:{default:x_}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default;lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function(eme){for(var $P=arguments.length,tme=Array($P>1?$P-1:0),ame=1;ame<$P;ame++)tme[ame-1]=arguments[ame];var nme=(0,_flattenNames2.default)(tme),rme=(0,_mergeClasses2.default)(eme,nme);return(0,_autoprefix2.default)(rme)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function(eme,$P,tme,ame,nme){var rme=nme.clientWidth,ime=nme.clientHeight,ome=typeof eme.pageX=="number"?eme.pageX:eme.touches[0].pageX,lme=typeof eme.pageY=="number"?eme.pageY:eme.touches[0].pageY,sme=ome-(nme.getBoundingClientRect().left+window.pageXOffset),cme=lme-(nme.getBoundingClientRect().top+window.pageYOffset);if(tme==="vertical"){var dme=void 0;if(cme<0?dme=0:cme>ime?dme=1:dme=Math.round(cme*100/ime)/100,$P.a!==dme)return{h:$P.h,s:$P.s,l:$P.l,a:dme,source:"rgb"}}else{var ume=void 0;if(sme<0?ume=0:sme>rme?ume=1:ume=Math.round(sme*100/rme)/100,ame!==ume)return{h:$P.h,s:$P.s,l:$P.l,a:ume,source:"rgb"}}return null},checkboardCache={},render=function(eme,$P,tme,ame){if(typeof document>"u"&&!ame)return null;var nme=ame?new ame:document.createElement("canvas");nme.width=tme*2,nme.height=tme*2;var rme=nme.getContext("2d");return rme?(rme.fillStyle=eme,rme.fillRect(0,0,nme.width,nme.height),rme.fillStyle=$P,rme.fillRect(0,0,tme,tme),rme.translate(tme,tme),rme.fillRect(0,0,tme,tme),nme.toDataURL()):null},get$1=function(eme,$P,tme,ame){var nme=eme+"-"+$P+"-"+tme+(ame?"-server":"");if(checkboardCache[nme])return checkboardCache[nme];var rme=render(eme,$P,tme,ame);return checkboardCache[nme]=rme,rme},_extends$2V=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},Checkboard=function(eme){var $P=eme.white,tme=eme.grey,ame=eme.size,nme=eme.renderers,rme=eme.borderRadius,ime=eme.boxShadow,ome=eme.children,lme=_default$2({default:{grid:{borderRadius:rme,boxShadow:ime,absolute:"0px 0px 0px 0px",background:"url("+get$1($P,tme,ame,nme.canvas)+") center left"}}});return reactExports.isValidElement(ome)?React__default.cloneElement(ome,_extends$2V({},ome.props,{style:_extends$2V({},ome.props.style,lme.grid)})):jsx("div",{style:lme.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$2U=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_createClass$9=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$9(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$9(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$9(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Alpha=function(x_){_inherits$9(eme,x_);function eme(){var $P,tme,ame,nme;_classCallCheck$9(this,eme);for(var rme=arguments.length,ime=Array(rme),ome=0;ome<rme;ome++)ime[ome]=arguments[ome];return nme=(tme=(ame=_possibleConstructorReturn$9(this,($P=eme.__proto__||Object.getPrototypeOf(eme)).call.apply($P,[this].concat(ime))),ame),ame.handleChange=function(lme){var sme=calculateChange$2(lme,ame.props.hsl,ame.props.direction,ame.props.a,ame.container);sme&&typeof ame.props.onChange=="function"&&ame.props.onChange(sme,lme)},ame.handleMouseDown=function(lme){ame.handleChange(lme),window.addEventListener("mousemove",ame.handleChange),window.addEventListener("mouseup",ame.handleMouseUp)},ame.handleMouseUp=function(){ame.unbindEventListeners()},ame.unbindEventListeners=function(){window.removeEventListener("mousemove",ame.handleChange),window.removeEventListener("mouseup",ame.handleMouseUp)},tme),_possibleConstructorReturn$9(ame,nme)}return _createClass$9(eme,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var tme=this,ame=this.props.rgb,nme=_default$2({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("+ame.r+","+ame.g+","+ame.b+`, 0) 0%,
           rgba(`+ame.r+","+ame.g+","+ame.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ame.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("+ame.r+","+ame.g+","+ame.b+`, 0) 0%,
           rgba(`+ame.r+","+ame.g+","+ame.b+", 1) 100%)"},pointer:{left:0,top:ame.a*100+"%"}},overwrite:_extends$2U({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return jsxs("div",{style:nme.alpha,children:[jsx("div",{style:nme.checkboard,children:jsx(Checkboard,{renderers:this.props.renderers})}),jsx("div",{style:nme.gradient}),jsx("div",{style:nme.container,ref:function(ime){return tme.container=ime},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:jsx("div",{style:nme.pointer,children:this.props.pointer?React__default.createElement(this.props.pointer,this.props):jsx("div",{style:nme.slider})})})]})}}]),eme}(reactExports.PureComponent||reactExports.Component),_createClass$8=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _defineProperty$1(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _classCallCheck$8(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$8(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$8(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function(eme){return VALID_KEY_CODES.indexOf(eme)>-1},getNumberValue=function(eme){return Number(String(eme).replace(/%/g,""))},idCounter=1,EditableInput=function(x_){_inherits$8(eme,x_);function eme($P){_classCallCheck$8(this,eme);var tme=_possibleConstructorReturn$8(this,(eme.__proto__||Object.getPrototypeOf(eme)).call(this));return tme.handleBlur=function(){tme.state.blurValue&&tme.setState({value:tme.state.blurValue,blurValue:null})},tme.handleChange=function(ame){tme.setUpdatedValue(ame.target.value,ame)},tme.handleKeyDown=function(ame){var nme=getNumberValue(ame.target.value);if(!isNaN(nme)&&isValidKeyCode(ame.keyCode)){var rme=tme.getArrowOffset(),ime=ame.keyCode===UP_KEY_CODE?nme+rme:nme-rme;tme.setUpdatedValue(ime,ame)}},tme.handleDrag=function(ame){if(tme.props.dragLabel){var nme=Math.round(tme.props.value+ame.movementX);nme>=0&&nme<=tme.props.dragMax&&tme.props.onChange&&tme.props.onChange(tme.getValueObjectWithLabel(nme),ame)}},tme.handleMouseDown=function(ame){tme.props.dragLabel&&(ame.preventDefault(),tme.handleDrag(ame),window.addEventListener("mousemove",tme.handleDrag),window.addEventListener("mouseup",tme.handleMouseUp))},tme.handleMouseUp=function(){tme.unbindEventListeners()},tme.unbindEventListeners=function(){window.removeEventListener("mousemove",tme.handleDrag),window.removeEventListener("mouseup",tme.handleMouseUp)},tme.state={value:String($P.value).toUpperCase(),blurValue:String($P.value).toUpperCase()},tme.inputId="rc-editable-input-"+idCounter++,tme}return _createClass$8(eme,[{key:"componentDidUpdate",value:function(tme,ame){this.props.value!==this.state.value&&(tme.value!==this.props.value||ame.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(tme){return _defineProperty$1({},this.props.label,tme)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(tme,ame){var nme=this.props.label?this.getValueObjectWithLabel(tme):tme;this.props.onChange&&this.props.onChange(nme,ame),this.setState({value:tme})}},{key:"render",value:function(){var tme=this,ame=_default$2({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 jsxs("div",{style:ame.wrap,children:[jsx("input",{id:this.inputId,style:ame.input,ref:function(rme){return tme.input=rme},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?jsx("label",{htmlFor:this.inputId,style:ame.label,onMouseDown:this.handleMouseDown,children:this.props.label}):null]})}}]),eme}(reactExports.PureComponent||reactExports.Component),calculateChange$1=function(eme,$P,tme,ame){var nme=ame.clientWidth,rme=ame.clientHeight,ime=typeof eme.pageX=="number"?eme.pageX:eme.touches[0].pageX,ome=typeof eme.pageY=="number"?eme.pageY:eme.touches[0].pageY,lme=ime-(ame.getBoundingClientRect().left+window.pageXOffset),sme=ome-(ame.getBoundingClientRect().top+window.pageYOffset);if($P==="vertical"){var cme=void 0;if(sme<0)cme=359;else if(sme>rme)cme=0;else{var dme=-(sme*100/rme)+100;cme=360*dme/100}if(tme.h!==cme)return{h:cme,s:tme.s,l:tme.l,a:tme.a,source:"hsl"}}else{var ume=void 0;if(lme<0)ume=0;else if(lme>nme)ume=359;else{var fme=lme*100/nme;ume=360*fme/100}if(tme.h!==ume)return{h:ume,s:tme.s,l:tme.l,a:tme.a,source:"hsl"}}return null},_createClass$7=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$7(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$7(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$7(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Hue=function(x_){_inherits$7(eme,x_);function eme(){var $P,tme,ame,nme;_classCallCheck$7(this,eme);for(var rme=arguments.length,ime=Array(rme),ome=0;ome<rme;ome++)ime[ome]=arguments[ome];return nme=(tme=(ame=_possibleConstructorReturn$7(this,($P=eme.__proto__||Object.getPrototypeOf(eme)).call.apply($P,[this].concat(ime))),ame),ame.handleChange=function(lme){var sme=calculateChange$1(lme,ame.props.direction,ame.props.hsl,ame.container);sme&&typeof ame.props.onChange=="function"&&ame.props.onChange(sme,lme)},ame.handleMouseDown=function(lme){ame.handleChange(lme),window.addEventListener("mousemove",ame.handleChange),window.addEventListener("mouseup",ame.handleMouseUp)},ame.handleMouseUp=function(){ame.unbindEventListeners()},tme),_possibleConstructorReturn$7(ame,nme)}return _createClass$7(eme,[{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 tme=this,ame=this.props.direction,nme=ame===void 0?"horizontal":ame,rme=_default$2({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: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:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:nme==="vertical"});return jsx("div",{style:rme.hue,children:jsxs("div",{className:"hue-"+nme,style:rme.container,ref:function(ome){return tme.container=ome},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[jsx("style",{children:".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%); }"}),jsx("div",{style:rme.pointer,children:this.props.pointer?React__default.createElement(this.props.pointer,this.props):jsx("div",{style:rme.slider})})]})})}}]),eme}(reactExports.PureComponent||reactExports.Component);function listCacheClear(){this.__data__=[],this.size=0}function eq(x_,eme){return x_===eme||x_!==x_&&eme!==eme}function assocIndexOf(x_,eme){for(var $P=x_.length;$P--;)if(eq(x_[$P][0],eme))return $P;return-1}var arrayProto$2=Array.prototype,splice$1=arrayProto$2.splice;function listCacheDelete(x_){var eme=this.__data__,$P=assocIndexOf(eme,x_);if($P<0)return!1;var tme=eme.length-1;return $P==tme?eme.pop():splice$1.call(eme,$P,1),--this.size,!0}function listCacheGet(x_){var eme=this.__data__,$P=assocIndexOf(eme,x_);return $P<0?void 0:eme[$P][1]}function listCacheHas(x_){return assocIndexOf(this.__data__,x_)>-1}function listCacheSet(x_,eme){var $P=this.__data__,tme=assocIndexOf($P,x_);return tme<0?(++this.size,$P.push([x_,eme])):$P[tme][1]=eme,this}function ListCache(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(x_){var eme=this.__data__,$P=eme.delete(x_);return this.size=eme.size,$P}function stackGet(x_){return this.__data__.get(x_)}function stackHas(x_){return this.__data__.has(x_)}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$f=Object.prototype,hasOwnProperty$d=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(x_){var eme=hasOwnProperty$d.call(x_,symToStringTag$1),$P=x_[symToStringTag$1];try{x_[symToStringTag$1]=void 0;var tme=!0}catch{}var ame=nativeObjectToString$1.call(x_);return tme&&(eme?x_[symToStringTag$1]=$P:delete x_[symToStringTag$1]),ame}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString(x_){return nativeObjectToString.call(x_)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(x_){return x_==null?x_===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(x_)?getRawTag(x_):objectToString(x_)}function isObject$2(x_){var eme=typeof x_;return x_!=null&&(eme=="object"||eme=="function")}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$1(x_){if(!isObject$2(x_))return!1;var eme=baseGetTag(x_);return eme==funcTag$1||eme==genTag||eme==asyncTag||eme==proxyTag}var coreJsData=root["__core-js_shared__"],maskSrcKey=function(){var x_=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return x_?"Symbol(src)_1."+x_:""}();function isMasked(x_){return!!maskSrcKey&&maskSrcKey in x_}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(x_){if(x_!=null){try{return funcToString$2.call(x_)}catch{}try{return x_+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$d=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$c=objectProto$d.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(x_){if(!isObject$2(x_)||isMasked(x_))return!1;var eme=isFunction$1(x_)?reIsNative:reIsHostCtor;return eme.test(toSource(x_))}function getValue(x_,eme){return x_==null?void 0:x_[eme]}function getNative(x_,eme){var $P=getValue(x_,eme);return baseIsNative($P)?$P:void 0}var Map$1=getNative(root,"Map"),nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(x_){var eme=this.has(x_)&&delete this.__data__[x_];return this.size-=eme?1:0,eme}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$c=Object.prototype,hasOwnProperty$b=objectProto$c.hasOwnProperty;function hashGet(x_){var eme=this.__data__;if(nativeCreate){var $P=eme[x_];return $P===HASH_UNDEFINED$2?void 0:$P}return hasOwnProperty$b.call(eme,x_)?eme[x_]:void 0}var objectProto$b=Object.prototype,hasOwnProperty$a=objectProto$b.hasOwnProperty;function hashHas(x_){var eme=this.__data__;return nativeCreate?eme[x_]!==void 0:hasOwnProperty$a.call(eme,x_)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(x_,eme){var $P=this.__data__;return this.size+=this.has(x_)?0:1,$P[x_]=nativeCreate&&eme===void 0?HASH_UNDEFINED$1:eme,this}function Hash(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$1||ListCache),string:new Hash}}function isKeyable(x_){var eme=typeof x_;return eme=="string"||eme=="number"||eme=="symbol"||eme=="boolean"?x_!=="__proto__":x_===null}function getMapData(x_,eme){var $P=x_.__data__;return isKeyable(eme)?$P[typeof eme=="string"?"string":"hash"]:$P.map}function mapCacheDelete(x_){var eme=getMapData(this,x_).delete(x_);return this.size-=eme?1:0,eme}function mapCacheGet(x_){return getMapData(this,x_).get(x_)}function mapCacheHas(x_){return getMapData(this,x_).has(x_)}function mapCacheSet(x_,eme){var $P=getMapData(this,x_),tme=$P.size;return $P.set(x_,eme),this.size+=$P.size==tme?0:1,this}function MapCache(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.clear();++eme<$P;){var tme=x_[eme];this.set(tme[0],tme[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var LARGE_ARRAY_SIZE=200;function stackSet(x_,eme){var $P=this.__data__;if($P instanceof ListCache){var tme=$P.__data__;if(!Map$1||tme.length<LARGE_ARRAY_SIZE-1)return tme.push([x_,eme]),this.size=++$P.size,this;$P=this.__data__=new MapCache(tme)}return $P.set(x_,eme),this.size=$P.size,this}function Stack(x_){var eme=this.__data__=new ListCache(x_);this.size=eme.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;var defineProperty=function(){try{var x_=getNative(Object,"defineProperty");return x_({},"",{}),x_}catch{}}();function baseAssignValue(x_,eme,$P){eme=="__proto__"&&defineProperty?defineProperty(x_,eme,{configurable:!0,enumerable:!0,value:$P,writable:!0}):x_[eme]=$P}function assignMergeValue(x_,eme,$P){($P!==void 0&&!eq(x_[eme],$P)||$P===void 0&&!(eme in x_))&&baseAssignValue(x_,eme,$P)}function createBaseFor(x_){return function(eme,$P,tme){for(var ame=-1,nme=Object(eme),rme=tme(eme),ime=rme.length;ime--;){var ome=rme[++ame];if($P(nme[ome],ome,nme)===!1)break}return eme}}var baseFor=createBaseFor(),freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root.Buffer:void 0;Buffer$2&&Buffer$2.allocUnsafe;function cloneBuffer(x_,eme){return x_.slice()}var Uint8Array$1=root.Uint8Array;function cloneArrayBuffer(x_){var eme=new x_.constructor(x_.byteLength);return new Uint8Array$1(eme).set(new Uint8Array$1(x_)),eme}function cloneTypedArray(x_,eme){var $P=cloneArrayBuffer(x_.buffer);return new x_.constructor($P,x_.byteOffset,x_.length)}function copyArray(x_,eme){var $P=-1,tme=x_.length;for(eme||(eme=Array(tme));++$P<tme;)eme[$P]=x_[$P];return eme}var objectCreate=Object.create,baseCreate=function(){function x_(){}return function(eme){if(!isObject$2(eme))return{};if(objectCreate)return objectCreate(eme);x_.prototype=eme;var $P=new x_;return x_.prototype=void 0,$P}}();function overArg(x_,eme){return function($P){return x_(eme($P))}}var getPrototype=overArg(Object.getPrototypeOf,Object),objectProto$a=Object.prototype;function isPrototype$1(x_){var eme=x_&&x_.constructor,$P=typeof eme=="function"&&eme.prototype||objectProto$a;return x_===$P}function initCloneObject(x_){return typeof x_.constructor=="function"&&!isPrototype$1(x_)?baseCreate(getPrototype(x_)):{}}function isObjectLike(x_){return x_!=null&&typeof x_=="object"}var argsTag$2="[object Arguments]";function baseIsArguments(x_){return isObjectLike(x_)&&baseGetTag(x_)==argsTag$2}var objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty,propertyIsEnumerable$1=objectProto$9.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(x_){return isObjectLike(x_)&&hasOwnProperty$9.call(x_,"callee")&&!propertyIsEnumerable$1.call(x_,"callee")},isArray$3=Array.isArray,MAX_SAFE_INTEGER$1=9007199254740991;function isLength(x_){return typeof x_=="number"&&x_>-1&&x_%1==0&&x_<=MAX_SAFE_INTEGER$1}function isArrayLike$1(x_){return x_!=null&&isLength(x_.length)&&!isFunction$1(x_)}function isArrayLikeObject(x_){return isObjectLike(x_)&&isArrayLike$1(x_)}function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer$1=moduleExports$1?root.Buffer:void 0,nativeIsBuffer=Buffer$1?Buffer$1.isBuffer:void 0,isBuffer$1=nativeIsBuffer||stubFalse,objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$8=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$8.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$2(x_){if(!isObjectLike(x_)||baseGetTag(x_)!=objectTag$3)return!1;var eme=getPrototype(x_);if(eme===null)return!0;var $P=hasOwnProperty$8.call(eme,"constructor")&&eme.constructor;return typeof $P=="function"&&$P instanceof $P&&funcToString.call($P)==objectCtorString}var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag$1="[object Number]",objectTag$2="[object Object]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$1]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray(x_){return isObjectLike(x_)&&isLength(x_.length)&&!!typedArrayTags[baseGetTag(x_)]}function baseUnary(x_){return function(eme){return x_(eme)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var x_=freeModule&&freeModule.require&&freeModule.require("util").types;return x_||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;function safeGet(x_,eme){if(!(eme==="constructor"&&typeof x_[eme]=="function")&&eme!="__proto__")return x_[eme]}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function assignValue$1(x_,eme,$P){var tme=x_[eme];(!(hasOwnProperty$7.call(x_,eme)&&eq(tme,$P))||$P===void 0&&!(eme in x_))&&baseAssignValue(x_,eme,$P)}function copyObject$1(x_,eme,$P,tme){var ame=!$P;$P||($P={});for(var nme=-1,rme=eme.length;++nme<rme;){var ime=eme[nme],ome=void 0;ome===void 0&&(ome=x_[ime]),ame?baseAssignValue($P,ime,ome):assignValue$1($P,ime,ome)}return $P}function baseTimes(x_,eme){for(var $P=-1,tme=Array(x_);++$P<x_;)tme[$P]=eme($P);return tme}var MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(x_,eme){var $P=typeof x_;return eme=eme??MAX_SAFE_INTEGER,!!eme&&($P=="number"||$P!="symbol"&&reIsUint.test(x_))&&x_>-1&&x_%1==0&&x_<eme}var objectProto$6=Object.prototype,hasOwnProperty$6=objectProto$6.hasOwnProperty;function arrayLikeKeys(x_,eme){var $P=isArray$3(x_),tme=!$P&&isArguments(x_),ame=!$P&&!tme&&isBuffer$1(x_),nme=!$P&&!tme&&!ame&&isTypedArray(x_),rme=$P||tme||ame||nme,ime=rme?baseTimes(x_.length,String):[],ome=ime.length;for(var lme in x_)(eme||hasOwnProperty$6.call(x_,lme))&&!(rme&&(lme=="length"||ame&&(lme=="offset"||lme=="parent")||nme&&(lme=="buffer"||lme=="byteLength"||lme=="byteOffset")||isIndex$1(lme,ome)))&&ime.push(lme);return ime}function nativeKeysIn(x_){var eme=[];if(x_!=null)for(var $P in Object(x_))eme.push($P);return eme}var objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty;function baseKeysIn(x_){if(!isObject$2(x_))return nativeKeysIn(x_);var eme=isPrototype$1(x_),$P=[];for(var tme in x_)tme=="constructor"&&(eme||!hasOwnProperty$5.call(x_,tme))||$P.push(tme);return $P}function keysIn(x_){return isArrayLike$1(x_)?arrayLikeKeys(x_,!0):baseKeysIn(x_)}function toPlainObject(x_){return copyObject$1(x_,keysIn(x_))}function baseMergeDeep(x_,eme,$P,tme,ame,nme,rme){var ime=safeGet(x_,$P),ome=safeGet(eme,$P),lme=rme.get(ome);if(lme){assignMergeValue(x_,$P,lme);return}var sme=nme?nme(ime,ome,$P+"",x_,eme,rme):void 0,cme=sme===void 0;if(cme){var dme=isArray$3(ome),ume=!dme&&isBuffer$1(ome),fme=!dme&&!ume&&isTypedArray(ome);sme=ome,dme||ume||fme?isArray$3(ime)?sme=ime:isArrayLikeObject(ime)?sme=copyArray(ime):ume?(cme=!1,sme=cloneBuffer(ome)):fme?(cme=!1,sme=cloneTypedArray(ome)):sme=[]:isPlainObject$2(ome)||isArguments(ome)?(sme=ime,isArguments(ime)?sme=toPlainObject(ime):(!isObject$2(ime)||isFunction$1(ime))&&(sme=initCloneObject(ome))):cme=!1}cme&&(rme.set(ome,sme),ame(sme,ome,tme,nme,rme),rme.delete(ome)),assignMergeValue(x_,$P,sme)}function baseMerge$1(x_,eme,$P,tme,ame){x_!==eme&&baseFor(eme,function(nme,rme){if(ame||(ame=new Stack),isObject$2(nme))baseMergeDeep(x_,eme,rme,$P,baseMerge$1,tme,ame);else{var ime=tme?tme(safeGet(x_,rme),nme,rme+"",x_,eme,ame):void 0;ime===void 0&&(ime=nme),assignMergeValue(x_,rme,ime)}},keysIn)}function identity(x_){return x_}function apply(x_,eme,$P){switch($P.length){case 0:return x_.call(eme);case 1:return x_.call(eme,$P[0]);case 2:return x_.call(eme,$P[0],$P[1]);case 3:return x_.call(eme,$P[0],$P[1],$P[2])}return x_.apply(eme,$P)}var nativeMax$1=Math.max;function overRest(x_,eme,$P){return eme=nativeMax$1(eme===void 0?x_.length-1:eme,0),function(){for(var tme=arguments,ame=-1,nme=nativeMax$1(tme.length-eme,0),rme=Array(nme);++ame<nme;)rme[ame]=tme[eme+ame];ame=-1;for(var ime=Array(eme+1);++ame<eme;)ime[ame]=tme[ame];return ime[eme]=$P(rme),apply(x_,this,ime)}}function constant(x_){return function(){return x_}}var baseSetToString=defineProperty?function(x_,eme){return defineProperty(x_,"toString",{configurable:!0,enumerable:!1,value:constant(eme),writable:!0})}:identity,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(x_){var eme=0,$P=0;return function(){var tme=nativeNow(),ame=HOT_SPAN-(tme-$P);if($P=tme,ame>0){if(++eme>=HOT_COUNT)return arguments[0]}else eme=0;return x_.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString);function baseRest(x_,eme){return setToString(overRest(x_,eme,identity),x_+"")}function isIterateeCall$1(x_,eme,$P){if(!isObject$2($P))return!1;var tme=typeof eme;return(tme=="number"?isArrayLike$1($P)&&isIndex$1(eme,$P.length):tme=="string"&&eme in $P)?eq($P[eme],x_):!1}function createAssigner$2(x_){return baseRest(function(eme,$P){var tme=-1,ame=$P.length,nme=ame>1?$P[ame-1]:void 0,rme=ame>2?$P[2]:void 0;for(nme=x_.length>3&&typeof nme=="function"?(ame--,nme):void 0,rme&&isIterateeCall$1($P[0],$P[1],rme)&&(nme=ame<3?void 0:nme,ame=1),eme=Object(eme);++tme<ame;){var ime=$P[tme];ime&&x_(eme,ime,tme,nme)}return eme})}var merge$1=createAssigner$2(function(x_,eme,$P){baseMerge$1(x_,eme,$P)}),Raised=function(eme){var $P=eme.zDepth,tme=eme.radius,ame=eme.background,nme=eme.children,rme=eme.styles,ime=rme===void 0?{}:rme,ome=_default$2(merge$1({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+$P+"px "+$P*4+"px rgba(0,0,0,.24)",borderRadius:tme,background:ame}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},ime),{"zDepth-1":$P===1});return React__default.createElement("div",{style:ome.wrap},React__default.createElement("div",{style:ome.bg}),React__default.createElement("div",{style:ome.content},nme))};Raised.propTypes={background:PropTypes.string,zDepth:PropTypes.oneOf([0,1,2,3,4,5]),radius:PropTypes.number,styles:PropTypes.object};Raised.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var now=function(){return root.Date.now()},reWhitespace=/\s/;function trimmedEndIndex(x_){for(var eme=x_.length;eme--&&reWhitespace.test(x_.charAt(eme)););return eme}var reTrimStart=/^\s+/;function baseTrim(x_){return x_&&x_.slice(0,trimmedEndIndex(x_)+1).replace(reTrimStart,"")}var symbolTag$1="[object Symbol]";function isSymbol(x_){return typeof x_=="symbol"||isObjectLike(x_)&&baseGetTag(x_)==symbolTag$1}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(x_){if(typeof x_=="number")return x_;if(isSymbol(x_))return NAN;if(isObject$2(x_)){var eme=typeof x_.valueOf=="function"?x_.valueOf():x_;x_=isObject$2(eme)?eme+"":eme}if(typeof x_!="string")return x_===0?x_:+x_;x_=baseTrim(x_);var $P=reIsBinary.test(x_);return $P||reIsOctal.test(x_)?freeParseInt(x_.slice(2),$P?2:8):reIsBadHex.test(x_)?NAN:+x_}var FUNC_ERROR_TEXT$2="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(x_,eme,$P){var tme,ame,nme,rme,ime,ome,lme=0,sme=!1,cme=!1,dme=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$2);eme=toNumber(eme)||0,isObject$2($P)&&(sme=!!$P.leading,cme="maxWait"in $P,nme=cme?nativeMax(toNumber($P.maxWait)||0,eme):nme,dme="trailing"in $P?!!$P.trailing:dme);function ume(_me){var $me=tme,Cme=ame;return tme=ame=void 0,lme=_me,rme=x_.apply(Cme,$me),rme}function fme(_me){return lme=_me,ime=setTimeout(bme,eme),sme?ume(_me):rme}function pme(_me){var $me=_me-ome,Cme=_me-lme,Sme=eme-$me;return cme?nativeMin(Sme,nme-Cme):Sme}function hme(_me){var $me=_me-ome,Cme=_me-lme;return ome===void 0||$me>=eme||$me<0||cme&&Cme>=nme}function bme(){var _me=now();if(hme(_me))return mme(_me);ime=setTimeout(bme,pme(_me))}function mme(_me){return ime=void 0,dme&&tme?ume(_me):(tme=ame=void 0,rme)}function vme(){ime!==void 0&&clearTimeout(ime),lme=0,tme=ome=ame=ime=void 0}function gme(){return ime===void 0?rme:mme(now())}function yme(){var _me=now(),$me=hme(_me);if(tme=arguments,ame=this,ome=_me,$me){if(ime===void 0)return fme(ome);if(cme)return clearTimeout(ime),ime=setTimeout(bme,eme),ume(ome)}return ime===void 0&&(ime=setTimeout(bme,eme)),rme}return yme.cancel=vme,yme.flush=gme,yme}var FUNC_ERROR_TEXT$1="Expected a function";function throttle$1(x_,eme,$P){var tme=!0,ame=!0;if(typeof x_!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$2($P)&&(tme="leading"in $P?!!$P.leading:tme,ame="trailing"in $P?!!$P.trailing:ame),debounce(x_,eme,{leading:tme,maxWait:eme,trailing:ame})}var calculateChange=function(eme,$P,tme){var ame=tme.getBoundingClientRect(),nme=ame.width,rme=ame.height,ime=typeof eme.pageX=="number"?eme.pageX:eme.touches[0].pageX,ome=typeof eme.pageY=="number"?eme.pageY:eme.touches[0].pageY,lme=ime-(tme.getBoundingClientRect().left+window.pageXOffset),sme=ome-(tme.getBoundingClientRect().top+window.pageYOffset);lme<0?lme=0:lme>nme&&(lme=nme),sme<0?sme=0:sme>rme&&(sme=rme);var cme=lme/nme,dme=1-sme/rme;return{h:$P.h,s:cme,v:dme,a:$P.a,source:"hsv"}},_createClass$6=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$6(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$6(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$6(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Saturation=function(x_){_inherits$6(eme,x_);function eme($P){_classCallCheck$6(this,eme);var tme=_possibleConstructorReturn$6(this,(eme.__proto__||Object.getPrototypeOf(eme)).call(this,$P));return tme.handleChange=function(ame){typeof tme.props.onChange=="function"&&tme.throttle(tme.props.onChange,calculateChange(ame,tme.props.hsl,tme.container),ame)},tme.handleMouseDown=function(ame){tme.handleChange(ame);var nme=tme.getContainerRenderWindow();nme.addEventListener("mousemove",tme.handleChange),nme.addEventListener("mouseup",tme.handleMouseUp)},tme.handleMouseUp=function(){tme.unbindEventListeners()},tme.throttle=throttle$1(function(ame,nme,rme){ame(nme,rme)},50),tme}return _createClass$6(eme,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var tme=this.container,ame=window;!ame.document.contains(tme)&&ame.parent!==ame;)ame=ame.parent;return ame}},{key:"unbindEventListeners",value:function(){var tme=this.getContainerRenderWindow();tme.removeEventListener("mousemove",this.handleChange),tme.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var tme=this,ame=this.props.style||{},nme=ame.color,rme=ame.white,ime=ame.black,ome=ame.pointer,lme=ame.circle,sme=_default$2({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+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:-(this.props.hsv.v*100)+100+"%",left: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:nme,white:rme,black:ime,pointer:ome,circle:lme}},{custom:!!this.props.style});return jsxs("div",{style:sme.color,ref:function(dme){return tme.container=dme},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[jsx("style",{children:".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)); }"}),jsxs("div",{style:sme.white,className:"saturation-white",children:[jsx("div",{style:sme.black,className:"saturation-black"}),jsx("div",{style:sme.pointer,children:this.props.pointer?React__default.createElement(this.props.pointer,this.props):jsx("div",{style:sme.circle})})]})]})}}]),eme}(reactExports.PureComponent||reactExports.Component);function arrayEach(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length;++$P<tme&&eme(x_[$P],$P,x_)!==!1;);return x_}var nativeKeys=overArg(Object.keys,Object),objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function baseKeys(x_){if(!isPrototype$1(x_))return nativeKeys(x_);var eme=[];for(var $P in Object(x_))hasOwnProperty$4.call(x_,$P)&&$P!="constructor"&&eme.push($P);return eme}function keys$1(x_){return isArrayLike$1(x_)?arrayLikeKeys(x_):baseKeys(x_)}function baseForOwn(x_,eme){return x_&&baseFor(x_,eme,keys$1)}function createBaseEach(x_,eme){return function($P,tme){if($P==null)return $P;if(!isArrayLike$1($P))return x_($P,tme);for(var ame=$P.length,nme=-1,rme=Object($P);++nme<ame&&tme(rme[nme],nme,rme)!==!1;);return $P}}var baseEach$2=createBaseEach(baseForOwn);function castFunction$1(x_){return typeof x_=="function"?x_:identity}function forEach$1(x_,eme){var $P=isArray$3(x_)?arrayEach:baseEach$2;return $P(x_,castFunction$1(eme))}function _typeof$1(x_){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(eme){return typeof eme}:function(eme){return eme&&typeof Symbol=="function"&&eme.constructor===Symbol&&eme!==Symbol.prototype?"symbol":typeof eme},_typeof$1(x_)}var trimLeft=/^\s+/,trimRight=/\s+$/;function tinycolor(x_,eme){if(x_=x_||"",eme=eme||{},x_ instanceof tinycolor)return x_;if(!(this instanceof tinycolor))return new tinycolor(x_,eme);var $P=inputToRGB(x_);this._originalInput=x_,this._r=$P.r,this._g=$P.g,this._b=$P.b,this._a=$P.a,this._roundA=Math.round(100*this._a)/100,this._format=eme.format||$P.format,this._gradientType=eme.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=$P.ok}tinycolor.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 eme=this.toRgb();return(eme.r*299+eme.g*587+eme.b*114)/1e3},getLuminance:function(){var eme=this.toRgb(),$P,tme,ame,nme,rme,ime;return $P=eme.r/255,tme=eme.g/255,ame=eme.b/255,$P<=.03928?nme=$P/12.92:nme=Math.pow(($P+.055)/1.055,2.4),tme<=.03928?rme=tme/12.92:rme=Math.pow((tme+.055)/1.055,2.4),ame<=.03928?ime=ame/12.92:ime=Math.pow((ame+.055)/1.055,2.4),.2126*nme+.7152*rme+.0722*ime},setAlpha:function(eme){return this._a=boundAlpha(eme),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var eme=rgbToHsv(this._r,this._g,this._b);return{h:eme.h*360,s:eme.s,v:eme.v,a:this._a}},toHsvString:function(){var eme=rgbToHsv(this._r,this._g,this._b),$P=Math.round(eme.h*360),tme=Math.round(eme.s*100),ame=Math.round(eme.v*100);return this._a==1?"hsv("+$P+", "+tme+"%, "+ame+"%)":"hsva("+$P+", "+tme+"%, "+ame+"%, "+this._roundA+")"},toHsl:function(){var eme=rgbToHsl(this._r,this._g,this._b);return{h:eme.h*360,s:eme.s,l:eme.l,a:this._a}},toHslString:function(){var eme=rgbToHsl(this._r,this._g,this._b),$P=Math.round(eme.h*360),tme=Math.round(eme.s*100),ame=Math.round(eme.l*100);return this._a==1?"hsl("+$P+", "+tme+"%, "+ame+"%)":"hsla("+$P+", "+tme+"%, "+ame+"%, "+this._roundA+")"},toHex:function(eme){return rgbToHex(this._r,this._g,this._b,eme)},toHexString:function(eme){return"#"+this.toHex(eme)},toHex8:function(eme){return rgbaToHex(this._r,this._g,this._b,this._a,eme)},toHex8String:function(eme){return"#"+this.toHex8(eme)},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(bound01(this._r,255)*100)+"%",g:Math.round(bound01(this._g,255)*100)+"%",b:Math.round(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%)":"rgba("+Math.round(bound01(this._r,255)*100)+"%, "+Math.round(bound01(this._g,255)*100)+"%, "+Math.round(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(eme){var $P="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),tme=$P,ame=this._gradientType?"GradientType = 1, ":"";if(eme){var nme=tinycolor(eme);tme="#"+rgbaToArgbHex(nme._r,nme._g,nme._b,nme._a)}return"progid:DXImageTransform.Microsoft.gradient("+ame+"startColorstr="+$P+",endColorstr="+tme+")"},toString:function(eme){var $P=!!eme;eme=eme||this._format;var tme=!1,ame=this._a<1&&this._a>=0,nme=!$P&&ame&&(eme==="hex"||eme==="hex6"||eme==="hex3"||eme==="hex4"||eme==="hex8"||eme==="name");return nme?eme==="name"&&this._a===0?this.toName():this.toRgbString():(eme==="rgb"&&(tme=this.toRgbString()),eme==="prgb"&&(tme=this.toPercentageRgbString()),(eme==="hex"||eme==="hex6")&&(tme=this.toHexString()),eme==="hex3"&&(tme=this.toHexString(!0)),eme==="hex4"&&(tme=this.toHex8String(!0)),eme==="hex8"&&(tme=this.toHex8String()),eme==="name"&&(tme=this.toName()),eme==="hsl"&&(tme=this.toHslString()),eme==="hsv"&&(tme=this.toHsvString()),tme||this.toHexString())},clone:function(){return tinycolor(this.toString())},_applyModification:function(eme,$P){var tme=eme.apply(null,[this].concat([].slice.call($P)));return this._r=tme._r,this._g=tme._g,this._b=tme._b,this.setAlpha(tme._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(eme,$P){return eme.apply(null,[this].concat([].slice.call($P)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}};tinycolor.fromRatio=function(x_,eme){if(_typeof$1(x_)=="object"){var $P={};for(var tme in x_)x_.hasOwnProperty(tme)&&(tme==="a"?$P[tme]=x_[tme]:$P[tme]=convertToPercentage(x_[tme]));x_=$P}return tinycolor(x_,eme)};function inputToRGB(x_){var eme={r:0,g:0,b:0},$P=1,tme=null,ame=null,nme=null,rme=!1,ime=!1;return typeof x_=="string"&&(x_=stringInputToObject(x_)),_typeof$1(x_)=="object"&&(isValidCSSUnit(x_.r)&&isValidCSSUnit(x_.g)&&isValidCSSUnit(x_.b)?(eme=rgbToRgb(x_.r,x_.g,x_.b),rme=!0,ime=String(x_.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(x_.h)&&isValidCSSUnit(x_.s)&&isValidCSSUnit(x_.v)?(tme=convertToPercentage(x_.s),ame=convertToPercentage(x_.v),eme=hsvToRgb(x_.h,tme,ame),rme=!0,ime="hsv"):isValidCSSUnit(x_.h)&&isValidCSSUnit(x_.s)&&isValidCSSUnit(x_.l)&&(tme=convertToPercentage(x_.s),nme=convertToPercentage(x_.l),eme=hslToRgb(x_.h,tme,nme),rme=!0,ime="hsl"),x_.hasOwnProperty("a")&&($P=x_.a)),$P=boundAlpha($P),{ok:rme,format:x_.format||ime,r:Math.min(255,Math.max(eme.r,0)),g:Math.min(255,Math.max(eme.g,0)),b:Math.min(255,Math.max(eme.b,0)),a:$P}}function rgbToRgb(x_,eme,$P){return{r:bound01(x_,255)*255,g:bound01(eme,255)*255,b:bound01($P,255)*255}}function rgbToHsl(x_,eme,$P){x_=bound01(x_,255),eme=bound01(eme,255),$P=bound01($P,255);var tme=Math.max(x_,eme,$P),ame=Math.min(x_,eme,$P),nme,rme,ime=(tme+ame)/2;if(tme==ame)nme=rme=0;else{var ome=tme-ame;switch(rme=ime>.5?ome/(2-tme-ame):ome/(tme+ame),tme){case x_:nme=(eme-$P)/ome+(eme<$P?6:0);break;case eme:nme=($P-x_)/ome+2;break;case $P:nme=(x_-eme)/ome+4;break}nme/=6}return{h:nme,s:rme,l:ime}}function hslToRgb(x_,eme,$P){var tme,ame,nme;x_=bound01(x_,360),eme=bound01(eme,100),$P=bound01($P,100);function rme(lme,sme,cme){return cme<0&&(cme+=1),cme>1&&(cme-=1),cme<1/6?lme+(sme-lme)*6*cme:cme<1/2?sme:cme<2/3?lme+(sme-lme)*(2/3-cme)*6:lme}if(eme===0)tme=ame=nme=$P;else{var ime=$P<.5?$P*(1+eme):$P+eme-$P*eme,ome=2*$P-ime;tme=rme(ome,ime,x_+1/3),ame=rme(ome,ime,x_),nme=rme(ome,ime,x_-1/3)}return{r:tme*255,g:ame*255,b:nme*255}}function rgbToHsv(x_,eme,$P){x_=bound01(x_,255),eme=bound01(eme,255),$P=bound01($P,255);var tme=Math.max(x_,eme,$P),ame=Math.min(x_,eme,$P),nme,rme,ime=tme,ome=tme-ame;if(rme=tme===0?0:ome/tme,tme==ame)nme=0;else{switch(tme){case x_:nme=(eme-$P)/ome+(eme<$P?6:0);break;case eme:nme=($P-x_)/ome+2;break;case $P:nme=(x_-eme)/ome+4;break}nme/=6}return{h:nme,s:rme,v:ime}}function hsvToRgb(x_,eme,$P){x_=bound01(x_,360)*6,eme=bound01(eme,100),$P=bound01($P,100);var tme=Math.floor(x_),ame=x_-tme,nme=$P*(1-eme),rme=$P*(1-ame*eme),ime=$P*(1-(1-ame)*eme),ome=tme%6,lme=[$P,rme,nme,nme,ime,$P][ome],sme=[ime,$P,$P,rme,nme,nme][ome],cme=[nme,nme,ime,$P,$P,rme][ome];return{r:lme*255,g:sme*255,b:cme*255}}function rgbToHex(x_,eme,$P,tme){var ame=[pad2(Math.round(x_).toString(16)),pad2(Math.round(eme).toString(16)),pad2(Math.round($P).toString(16))];return tme&&ame[0].charAt(0)==ame[0].charAt(1)&&ame[1].charAt(0)==ame[1].charAt(1)&&ame[2].charAt(0)==ame[2].charAt(1)?ame[0].charAt(0)+ame[1].charAt(0)+ame[2].charAt(0):ame.join("")}function rgbaToHex(x_,eme,$P,tme,ame){var nme=[pad2(Math.round(x_).toString(16)),pad2(Math.round(eme).toString(16)),pad2(Math.round($P).toString(16)),pad2(convertDecimalToHex(tme))];return ame&&nme[0].charAt(0)==nme[0].charAt(1)&&nme[1].charAt(0)==nme[1].charAt(1)&&nme[2].charAt(0)==nme[2].charAt(1)&&nme[3].charAt(0)==nme[3].charAt(1)?nme[0].charAt(0)+nme[1].charAt(0)+nme[2].charAt(0)+nme[3].charAt(0):nme.join("")}function rgbaToArgbHex(x_,eme,$P,tme){var ame=[pad2(convertDecimalToHex(tme)),pad2(Math.round(x_).toString(16)),pad2(Math.round(eme).toString(16)),pad2(Math.round($P).toString(16))];return ame.join("")}tinycolor.equals=function(x_,eme){return!x_||!eme?!1:tinycolor(x_).toRgbString()==tinycolor(eme).toRgbString()};tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function _desaturate(x_,eme){eme=eme===0?0:eme||10;var $P=tinycolor(x_).toHsl();return $P.s-=eme/100,$P.s=clamp01($P.s),tinycolor($P)}function _saturate(x_,eme){eme=eme===0?0:eme||10;var $P=tinycolor(x_).toHsl();return $P.s+=eme/100,$P.s=clamp01($P.s),tinycolor($P)}function _greyscale(x_){return tinycolor(x_).desaturate(100)}function _lighten(x_,eme){eme=eme===0?0:eme||10;var $P=tinycolor(x_).toHsl();return $P.l+=eme/100,$P.l=clamp01($P.l),tinycolor($P)}function _brighten(x_,eme){eme=eme===0?0:eme||10;var $P=tinycolor(x_).toRgb();return $P.r=Math.max(0,Math.min(255,$P.r-Math.round(255*-(eme/100)))),$P.g=Math.max(0,Math.min(255,$P.g-Math.round(255*-(eme/100)))),$P.b=Math.max(0,Math.min(255,$P.b-Math.round(255*-(eme/100)))),tinycolor($P)}function _darken(x_,eme){eme=eme===0?0:eme||10;var $P=tinycolor(x_).toHsl();return $P.l-=eme/100,$P.l=clamp01($P.l),tinycolor($P)}function _spin(x_,eme){var $P=tinycolor(x_).toHsl(),tme=($P.h+eme)%360;return $P.h=tme<0?360+tme:tme,tinycolor($P)}function _complement(x_){var eme=tinycolor(x_).toHsl();return eme.h=(eme.h+180)%360,tinycolor(eme)}function polyad(x_,eme){if(isNaN(eme)||eme<=0)throw new Error("Argument to polyad must be a positive number");for(var $P=tinycolor(x_).toHsl(),tme=[tinycolor(x_)],ame=360/eme,nme=1;nme<eme;nme++)tme.push(tinycolor({h:($P.h+nme*ame)%360,s:$P.s,l:$P.l}));return tme}function _splitcomplement(x_){var eme=tinycolor(x_).toHsl(),$P=eme.h;return[tinycolor(x_),tinycolor({h:($P+72)%360,s:eme.s,l:eme.l}),tinycolor({h:($P+216)%360,s:eme.s,l:eme.l})]}function _analogous(x_,eme,$P){eme=eme||6,$P=$P||30;var tme=tinycolor(x_).toHsl(),ame=360/$P,nme=[tinycolor(x_)];for(tme.h=(tme.h-(ame*eme>>1)+720)%360;--eme;)tme.h=(tme.h+ame)%360,nme.push(tinycolor(tme));return nme}function _monochromatic(x_,eme){eme=eme||6;for(var $P=tinycolor(x_).toHsv(),tme=$P.h,ame=$P.s,nme=$P.v,rme=[],ime=1/eme;eme--;)rme.push(tinycolor({h:tme,s:ame,v:nme})),nme=(nme+ime)%1;return rme}tinycolor.mix=function(x_,eme,$P){$P=$P===0?0:$P||50;var tme=tinycolor(x_).toRgb(),ame=tinycolor(eme).toRgb(),nme=$P/100,rme={r:(ame.r-tme.r)*nme+tme.r,g:(ame.g-tme.g)*nme+tme.g,b:(ame.b-tme.b)*nme+tme.b,a:(ame.a-tme.a)*nme+tme.a};return tinycolor(rme)};tinycolor.readability=function(x_,eme){var $P=tinycolor(x_),tme=tinycolor(eme);return(Math.max($P.getLuminance(),tme.getLuminance())+.05)/(Math.min($P.getLuminance(),tme.getLuminance())+.05)};tinycolor.isReadable=function(x_,eme,$P){var tme=tinycolor.readability(x_,eme),ame,nme;switch(nme=!1,ame=validateWCAG2Parms($P),ame.level+ame.size){case"AAsmall":case"AAAlarge":nme=tme>=4.5;break;case"AAlarge":nme=tme>=3;break;case"AAAsmall":nme=tme>=7;break}return nme};tinycolor.mostReadable=function(x_,eme,$P){var tme=null,ame=0,nme,rme,ime,ome;$P=$P||{},rme=$P.includeFallbackColors,ime=$P.level,ome=$P.size;for(var lme=0;lme<eme.length;lme++)nme=tinycolor.readability(x_,eme[lme]),nme>ame&&(ame=nme,tme=tinycolor(eme[lme]));return tinycolor.isReadable(x_,tme,{level:ime,size:ome})||!rme?tme:($P.includeFallbackColors=!1,tinycolor.mostReadable(x_,["#fff","#000"],$P))};var names=tinycolor.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"},hexNames=tinycolor.hexNames=flip(names);function flip(x_){var eme={};for(var $P in x_)x_.hasOwnProperty($P)&&(eme[x_[$P]]=$P);return eme}function boundAlpha(x_){return x_=parseFloat(x_),(isNaN(x_)||x_<0||x_>1)&&(x_=1),x_}function bound01(x_,eme){isOnePointZero(x_)&&(x_="100%");var $P=isPercentage(x_);return x_=Math.min(eme,Math.max(0,parseFloat(x_))),$P&&(x_=parseInt(x_*eme,10)/100),Math.abs(x_-eme)<1e-6?1:x_%eme/parseFloat(eme)}function clamp01(x_){return Math.min(1,Math.max(0,x_))}function parseIntFromHex(x_){return parseInt(x_,16)}function isOnePointZero(x_){return typeof x_=="string"&&x_.indexOf(".")!=-1&&parseFloat(x_)===1}function isPercentage(x_){return typeof x_=="string"&&x_.indexOf("%")!=-1}function pad2(x_){return x_.length==1?"0"+x_:""+x_}function convertToPercentage(x_){return x_<=1&&(x_=x_*100+"%"),x_}function convertDecimalToHex(x_){return Math.round(parseFloat(x_)*255).toString(16)}function convertHexToDecimal(x_){return parseIntFromHex(x_)/255}var matchers=function(){var x_="[-\\+]?\\d+%?",eme="[-\\+]?\\d*\\.\\d+%?",$P="(?:"+eme+")|(?:"+x_+")",tme="[\\s|\\(]+("+$P+")[,|\\s]+("+$P+")[,|\\s]+("+$P+")\\s*\\)?",ame="[\\s|\\(]+("+$P+")[,|\\s]+("+$P+")[,|\\s]+("+$P+")[,|\\s]+("+$P+")\\s*\\)?";return{CSS_UNIT:new RegExp($P),rgb:new RegExp("rgb"+tme),rgba:new RegExp("rgba"+ame),hsl:new RegExp("hsl"+tme),hsla:new RegExp("hsla"+ame),hsv:new RegExp("hsv"+tme),hsva:new RegExp("hsva"+ame),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 isValidCSSUnit(x_){return!!matchers.CSS_UNIT.exec(x_)}function stringInputToObject(x_){x_=x_.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var eme=!1;if(names[x_])x_=names[x_],eme=!0;else if(x_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $P;return($P=matchers.rgb.exec(x_))?{r:$P[1],g:$P[2],b:$P[3]}:($P=matchers.rgba.exec(x_))?{r:$P[1],g:$P[2],b:$P[3],a:$P[4]}:($P=matchers.hsl.exec(x_))?{h:$P[1],s:$P[2],l:$P[3]}:($P=matchers.hsla.exec(x_))?{h:$P[1],s:$P[2],l:$P[3],a:$P[4]}:($P=matchers.hsv.exec(x_))?{h:$P[1],s:$P[2],v:$P[3]}:($P=matchers.hsva.exec(x_))?{h:$P[1],s:$P[2],v:$P[3],a:$P[4]}:($P=matchers.hex8.exec(x_))?{r:parseIntFromHex($P[1]),g:parseIntFromHex($P[2]),b:parseIntFromHex($P[3]),a:convertHexToDecimal($P[4]),format:eme?"name":"hex8"}:($P=matchers.hex6.exec(x_))?{r:parseIntFromHex($P[1]),g:parseIntFromHex($P[2]),b:parseIntFromHex($P[3]),format:eme?"name":"hex"}:($P=matchers.hex4.exec(x_))?{r:parseIntFromHex($P[1]+""+$P[1]),g:parseIntFromHex($P[2]+""+$P[2]),b:parseIntFromHex($P[3]+""+$P[3]),a:convertHexToDecimal($P[4]+""+$P[4]),format:eme?"name":"hex8"}:($P=matchers.hex3.exec(x_))?{r:parseIntFromHex($P[1]+""+$P[1]),g:parseIntFromHex($P[2]+""+$P[2]),b:parseIntFromHex($P[3]+""+$P[3]),format:eme?"name":"hex"}:!1}function validateWCAG2Parms(x_){var eme,$P;return x_=x_||{level:"AA",size:"small"},eme=(x_.level||"AA").toUpperCase(),$P=(x_.size||"small").toLowerCase(),eme!=="AA"&&eme!=="AAA"&&(eme="AA"),$P!=="small"&&$P!=="large"&&($P="small"),{level:eme,size:$P}}var simpleCheckForValidColor=function(eme){var $P=["r","g","b","a","h","s","l","v"],tme=0,ame=0;return forEach$1($P,function(nme){if(eme[nme]&&(tme+=1,isNaN(eme[nme])||(ame+=1),nme==="s"||nme==="l")){var rme=/^\d+%$/;rme.test(eme[nme])&&(ame+=1)}}),tme===ame?eme:!1},toState=function(eme,$P){var tme=eme.hex?tinycolor(eme.hex):tinycolor(eme),ame=tme.toHsl(),nme=tme.toHsv(),rme=tme.toRgb(),ime=tme.toHex();ame.s===0&&(ame.h=$P||0,nme.h=$P||0);var ome=ime==="000000"&&rme.a===0;return{hsl:ame,hex:ome?"transparent":"#"+ime,rgb:rme,hsv:nme,oldHue:eme.h||$P||ame.h,source:eme.source}},isValidHex=function(eme){if(eme==="transparent")return!0;var $P=String(eme).charAt(0)==="#"?1:0;return eme.length!==4+$P&&eme.length<7+$P&&tinycolor(eme).isValid()},getContrastingColor=function(eme){if(!eme)return"#fff";var $P=toState(eme);if($P.hex==="transparent")return"rgba(0,0,0,0.4)";var tme=($P.rgb.r*299+$P.rgb.g*587+$P.rgb.b*114)/1e3;return tme>=128?"#000":"#fff"},isvalidColorString=function(eme,$P){var tme=eme.replace("°","");return tinycolor($P+" ("+tme+")")._ok},_extends$2T=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_createClass$5=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$5(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$5(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$5(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var ColorWrap=function(eme){var $P=function(tme){_inherits$5(ame,tme);function ame(nme){_classCallCheck$5(this,ame);var rme=_possibleConstructorReturn$5(this,(ame.__proto__||Object.getPrototypeOf(ame)).call(this));return rme.handleChange=function(ime,ome){var lme=simpleCheckForValidColor(ime);if(lme){var sme=toState(ime,ime.h||rme.state.oldHue);rme.setState(sme),rme.props.onChangeComplete&&rme.debounce(rme.props.onChangeComplete,sme,ome),rme.props.onChange&&rme.props.onChange(sme,ome)}},rme.handleSwatchHover=function(ime,ome){var lme=simpleCheckForValidColor(ime);if(lme){var sme=toState(ime,ime.h||rme.state.oldHue);rme.props.onSwatchHover&&rme.props.onSwatchHover(sme,ome)}},rme.state=_extends$2T({},toState(nme.color,0)),rme.debounce=debounce(function(ime,ome,lme){ime(ome,lme)},100),rme}return _createClass$5(ame,[{key:"render",value:function(){var rme={};return this.props.onSwatchHover&&(rme.onSwatchHover=this.handleSwatchHover),jsx(eme,{...this.props,...this.state,onChange:this.handleChange,...rme})}}],[{key:"getDerivedStateFromProps",value:function(rme,ime){return _extends$2T({},toState(rme.color,ime.oldHue))}}]),ame}(reactExports.PureComponent||reactExports.Component);return $P.propTypes=_extends$2T({},eme.propTypes),$P.defaultProps=_extends$2T({},eme.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),$P},_extends$2S=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_createClass$4=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$4(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$4(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$4(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var handleFocus=function(eme){var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(tme){_inherits$4(ame,tme);function ame(){var nme,rme,ime,ome;_classCallCheck$4(this,ame);for(var lme=arguments.length,sme=Array(lme),cme=0;cme<lme;cme++)sme[cme]=arguments[cme];return ome=(rme=(ime=_possibleConstructorReturn$4(this,(nme=ame.__proto__||Object.getPrototypeOf(ame)).call.apply(nme,[this].concat(sme))),ime),ime.state={focus:!1},ime.handleFocus=function(){return ime.setState({focus:!0})},ime.handleBlur=function(){return ime.setState({focus:!1})},rme),_possibleConstructorReturn$4(ime,ome)}return _createClass$4(ame,[{key:"render",value:function(){return React__default.createElement($P,{onFocus:this.handleFocus,onBlur:this.handleBlur},React__default.createElement(eme,_extends$2S({},this.props,this.state)))}}]),ame}(React__default.Component)},_extends$2R=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},ENTER=13,Swatch=function(eme){var $P=eme.color,tme=eme.style,ame=eme.onClick,nme=ame===void 0?function(){}:ame,rme=eme.onHover,ime=eme.title,ome=ime===void 0?$P:ime,lme=eme.children,sme=eme.focus,cme=eme.focusStyle,dme=cme===void 0?{}:cme,ume=$P==="transparent",fme=_default$2({default:{swatch:_extends$2R({background:$P,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},tme,sme?dme:{})}}),pme=function(gme){return nme($P,gme)},hme=function(gme){return gme.keyCode===ENTER&&nme($P,gme)},bme=function(gme){return rme($P,gme)},mme={};return rme&&(mme.onMouseOver=bme),React__default.createElement("div",_extends$2R({style:fme.swatch,onClick:pme,title:ome,tabIndex:0,onKeyDown:hme},mme),lme,ume&&React__default.createElement(Checkboard,{borderRadius:fme.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const Swatch$1=handleFocus(Swatch);var AlphaPointer=function(eme){var $P=eme.direction,tme=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:$P==="vertical"});return React__default.createElement("div",{style:tme.picker})},_extends$2Q=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},AlphaPicker=function(eme){var $P=eme.rgb,tme=eme.hsl,ame=eme.width,nme=eme.height,rme=eme.onChange,ime=eme.direction,ome=eme.style,lme=eme.renderers,sme=eme.pointer,cme=eme.className,dme=cme===void 0?"":cme,ume=_default$2({default:{picker:{position:"relative",width:ame,height:nme},alpha:{radius:"2px",style:ome}}});return React__default.createElement("div",{style:ume.picker,className:"alpha-picker "+dme},React__default.createElement(Alpha,_extends$2Q({},ume.alpha,{rgb:$P,hsl:tme,pointer:sme,renderers:lme,onChange:rme,direction:ime})))};AlphaPicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:AlphaPointer};ColorWrap(AlphaPicker);function arrayMap$1(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length,ame=Array(tme);++$P<tme;)ame[$P]=eme(x_[$P],$P,x_);return ame}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(x_){return this.__data__.set(x_,HASH_UNDEFINED),this}function setCacheHas(x_){return this.__data__.has(x_)}function SetCache(x_){var eme=-1,$P=x_==null?0:x_.length;for(this.__data__=new MapCache;++eme<$P;)this.add(x_[eme])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome$1(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length;++$P<tme;)if(eme(x_[$P],$P,x_))return!0;return!1}function cacheHas(x_,eme){return x_.has(eme)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(x_,eme,$P,tme,ame,nme){var rme=$P&COMPARE_PARTIAL_FLAG$5,ime=x_.length,ome=eme.length;if(ime!=ome&&!(rme&&ome>ime))return!1;var lme=nme.get(x_),sme=nme.get(eme);if(lme&&sme)return lme==eme&&sme==x_;var cme=-1,dme=!0,ume=$P&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(nme.set(x_,eme),nme.set(eme,x_);++cme<ime;){var fme=x_[cme],pme=eme[cme];if(tme)var hme=rme?tme(pme,fme,cme,eme,x_,nme):tme(fme,pme,cme,x_,eme,nme);if(hme!==void 0){if(hme)continue;dme=!1;break}if(ume){if(!arraySome$1(eme,function(bme,mme){if(!cacheHas(ume,mme)&&(fme===bme||ame(fme,bme,$P,tme,nme)))return ume.push(mme)})){dme=!1;break}}else if(!(fme===pme||ame(fme,pme,$P,tme,nme))){dme=!1;break}}return nme.delete(x_),nme.delete(eme),dme}function mapToArray(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme,ame){$P[++eme]=[ame,tme]}),$P}function setToArray(x_){var eme=-1,$P=Array(x_.size);return x_.forEach(function(tme){$P[++eme]=tme}),$P}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag$1="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag(x_,eme,$P,tme,ame,nme,rme){switch($P){case dataViewTag$1:if(x_.byteLength!=eme.byteLength||x_.byteOffset!=eme.byteOffset)return!1;x_=x_.buffer,eme=eme.buffer;case arrayBufferTag:return!(x_.byteLength!=eme.byteLength||!nme(new Uint8Array$1(x_),new Uint8Array$1(eme)));case boolTag:case dateTag:case numberTag:return eq(+x_,+eme);case errorTag:return x_.name==eme.name&&x_.message==eme.message;case regexpTag:case stringTag:return x_==eme+"";case mapTag$1:var ime=mapToArray;case setTag$1:var ome=tme&COMPARE_PARTIAL_FLAG$4;if(ime||(ime=setToArray),x_.size!=eme.size&&!ome)return!1;var lme=rme.get(x_);if(lme)return lme==eme;tme|=COMPARE_UNORDERED_FLAG$2,rme.set(x_,eme);var sme=equalArrays(ime(x_),ime(eme),tme,ame,nme,rme);return rme.delete(x_),sme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(x_)==symbolValueOf.call(eme)}return!1}function arrayPush(x_,eme){for(var $P=-1,tme=eme.length,ame=x_.length;++$P<tme;)x_[ame+$P]=eme[$P];return x_}function baseGetAllKeys(x_,eme,$P){var tme=eme(x_);return isArray$3(x_)?tme:arrayPush(tme,$P(x_))}function arrayFilter(x_,eme){for(var $P=-1,tme=x_==null?0:x_.length,ame=0,nme=[];++$P<tme;){var rme=x_[$P];eme(rme,$P,x_)&&(nme[ame++]=rme)}return nme}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(x_){return x_==null?[]:(x_=Object(x_),arrayFilter(nativeGetSymbols(x_),function(eme){return propertyIsEnumerable.call(x_,eme)}))}:stubArray;function getAllKeys(x_){return baseGetAllKeys(x_,keys$1,getSymbols)}var COMPARE_PARTIAL_FLAG$3=1,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function equalObjects(x_,eme,$P,tme,ame,nme){var rme=$P&COMPARE_PARTIAL_FLAG$3,ime=getAllKeys(x_),ome=ime.length,lme=getAllKeys(eme),sme=lme.length;if(ome!=sme&&!rme)return!1;for(var cme=ome;cme--;){var dme=ime[cme];if(!(rme?dme in eme:hasOwnProperty$3.call(eme,dme)))return!1}var ume=nme.get(x_),fme=nme.get(eme);if(ume&&fme)return ume==eme&&fme==x_;var pme=!0;nme.set(x_,eme),nme.set(eme,x_);for(var hme=rme;++cme<ome;){dme=ime[cme];var bme=x_[dme],mme=eme[dme];if(tme)var vme=rme?tme(mme,bme,dme,eme,x_,nme):tme(bme,mme,dme,x_,eme,nme);if(!(vme===void 0?bme===mme||ame(bme,mme,$P,tme,nme):vme)){pme=!1;break}hme||(hme=dme=="constructor")}if(pme&&!hme){var gme=x_.constructor,yme=eme.constructor;gme!=yme&&"constructor"in x_&&"constructor"in eme&&!(typeof gme=="function"&&gme instanceof gme&&typeof yme=="function"&&yme instanceof yme)&&(pme=!1)}return nme.delete(x_),nme.delete(eme),pme}var DataView=getNative(root,"DataView"),Promise$1=getNative(root,"Promise"),Set$1=getNative(root,"Set"),WeakMap$1=getNative(root,"WeakMap"),mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag(new Map$1)!=mapTag||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag)&&(getTag=function(x_){var eme=baseGetTag(x_),$P=eme==objectTag$1?x_.constructor:void 0,tme=$P?toSource($P):"";if(tme)switch(tme){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return eme});var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function baseIsEqualDeep(x_,eme,$P,tme,ame,nme){var rme=isArray$3(x_),ime=isArray$3(eme),ome=rme?arrayTag:getTag(x_),lme=ime?arrayTag:getTag(eme);ome=ome==argsTag?objectTag:ome,lme=lme==argsTag?objectTag:lme;var sme=ome==objectTag,cme=lme==objectTag,dme=ome==lme;if(dme&&isBuffer$1(x_)){if(!isBuffer$1(eme))return!1;rme=!0,sme=!1}if(dme&&!sme)return nme||(nme=new Stack),rme||isTypedArray(x_)?equalArrays(x_,eme,$P,tme,ame,nme):equalByTag(x_,eme,ome,$P,tme,ame,nme);if(!($P&COMPARE_PARTIAL_FLAG$2)){var ume=sme&&hasOwnProperty$2.call(x_,"__wrapped__"),fme=cme&&hasOwnProperty$2.call(eme,"__wrapped__");if(ume||fme){var pme=ume?x_.value():x_,hme=fme?eme.value():eme;return nme||(nme=new Stack),ame(pme,hme,$P,tme,nme)}}return dme?(nme||(nme=new Stack),equalObjects(x_,eme,$P,tme,ame,nme)):!1}function baseIsEqual(x_,eme,$P,tme,ame){return x_===eme?!0:x_==null||eme==null||!isObjectLike(x_)&&!isObjectLike(eme)?x_!==x_&&eme!==eme:baseIsEqualDeep(x_,eme,$P,tme,baseIsEqual,ame)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(x_,eme,$P,tme){var ame=$P.length,nme=ame;if(x_==null)return!nme;for(x_=Object(x_);ame--;){var rme=$P[ame];if(rme[2]?rme[1]!==x_[rme[0]]:!(rme[0]in x_))return!1}for(;++ame<nme;){rme=$P[ame];var ime=rme[0],ome=x_[ime],lme=rme[1];if(rme[2]){if(ome===void 0&&!(ime in x_))return!1}else{var sme=new Stack,cme;if(!(cme===void 0?baseIsEqual(lme,ome,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,tme,sme):cme))return!1}}return!0}function isStrictComparable(x_){return x_===x_&&!isObject$2(x_)}function getMatchData(x_){for(var eme=keys$1(x_),$P=eme.length;$P--;){var tme=eme[$P],ame=x_[tme];eme[$P]=[tme,ame,isStrictComparable(ame)]}return eme}function matchesStrictComparable(x_,eme){return function($P){return $P==null?!1:$P[x_]===eme&&(eme!==void 0||x_ in Object($P))}}function baseMatches(x_){var eme=getMatchData(x_);return eme.length==1&&eme[0][2]?matchesStrictComparable(eme[0][0],eme[0][1]):function($P){return $P===x_||baseIsMatch($P,x_,eme)}}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(x_,eme){if(isArray$3(x_))return!1;var $P=typeof x_;return $P=="number"||$P=="symbol"||$P=="boolean"||x_==null||isSymbol(x_)?!0:reIsPlainProp.test(x_)||!reIsDeepProp.test(x_)||eme!=null&&x_ in Object(eme)}var FUNC_ERROR_TEXT="Expected a function";function memoize(x_,eme){if(typeof x_!="function"||eme!=null&&typeof eme!="function")throw new TypeError(FUNC_ERROR_TEXT);var $P=function(){var tme=arguments,ame=eme?eme.apply(this,tme):tme[0],nme=$P.cache;if(nme.has(ame))return nme.get(ame);var rme=x_.apply(this,tme);return $P.cache=nme.set(ame,rme)||nme,rme};return $P.cache=new(memoize.Cache||MapCache),$P}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(x_){var eme=memoize(x_,function(tme){return $P.size===MAX_MEMOIZE_SIZE&&$P.clear(),tme}),$P=eme.cache;return eme}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(x_){var eme=[];return x_.charCodeAt(0)===46&&eme.push(""),x_.replace(rePropName,function($P,tme,ame,nme){eme.push(ame?nme.replace(reEscapeChar,"$1"):tme||$P)}),eme}),INFINITY$2=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString(x_){if(typeof x_=="string")return x_;if(isArray$3(x_))return arrayMap$1(x_,baseToString)+"";if(isSymbol(x_))return symbolToString?symbolToString.call(x_):"";var eme=x_+"";return eme=="0"&&1/x_==-INFINITY$2?"-0":eme}function toString$1(x_){return x_==null?"":baseToString(x_)}function castPath(x_,eme){return isArray$3(x_)?x_:isKey(x_,eme)?[x_]:stringToPath(toString$1(x_))}var INFINITY$1=1/0;function toKey(x_){if(typeof x_=="string"||isSymbol(x_))return x_;var eme=x_+"";return eme=="0"&&1/x_==-INFINITY$1?"-0":eme}function baseGet$1(x_,eme){eme=castPath(eme,x_);for(var $P=0,tme=eme.length;x_!=null&&$P<tme;)x_=x_[toKey(eme[$P++])];return $P&&$P==tme?x_:void 0}function get(x_,eme,$P){var tme=x_==null?void 0:baseGet$1(x_,eme);return tme===void 0?$P:tme}function baseHasIn(x_,eme){return x_!=null&&eme in Object(x_)}function hasPath(x_,eme,$P){eme=castPath(eme,x_);for(var tme=-1,ame=eme.length,nme=!1;++tme<ame;){var rme=toKey(eme[tme]);if(!(nme=x_!=null&&$P(x_,rme)))break;x_=x_[rme]}return nme||++tme!=ame?nme:(ame=x_==null?0:x_.length,!!ame&&isLength(ame)&&isIndex$1(rme,ame)&&(isArray$3(x_)||isArguments(x_)))}function hasIn(x_,eme){return x_!=null&&hasPath(x_,eme,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(x_,eme){return isKey(x_)&&isStrictComparable(eme)?matchesStrictComparable(toKey(x_),eme):function($P){var tme=get($P,x_);return tme===void 0&&tme===eme?hasIn($P,x_):baseIsEqual(eme,tme,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(x_){return function(eme){return eme==null?void 0:eme[x_]}}function basePropertyDeep(x_){return function(eme){return baseGet$1(eme,x_)}}function property(x_){return isKey(x_)?baseProperty(toKey(x_)):basePropertyDeep(x_)}function baseIteratee$4(x_){return typeof x_=="function"?x_:x_==null?identity:typeof x_=="object"?isArray$3(x_)?baseMatchesProperty(x_[0],x_[1]):baseMatches(x_):property(x_)}function baseMap(x_,eme){var $P=-1,tme=isArrayLike$1(x_)?Array(x_.length):[];return baseEach$2(x_,function(ame,nme,rme){tme[++$P]=eme(ame,nme,rme)}),tme}function map(x_,eme){var $P=isArray$3(x_)?arrayMap$1:baseMap;return $P(x_,baseIteratee$4(eme))}var BlockSwatches=function(eme){var $P=eme.colors,tme=eme.onClick,ame=eme.onSwatchHover,nme=_default$2({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return React__default.createElement("div",{style:nme.swatches},map($P,function(rme){return React__default.createElement(Swatch$1,{key:rme,color:rme,style:nme.swatch,onClick:tme,onHover:ame,focusStyle:{boxShadow:"0 0 4px "+rme}})}),React__default.createElement("div",{style:nme.clear}))},Block=function(eme){var $P=eme.onChange,tme=eme.onSwatchHover,ame=eme.hex,nme=eme.colors,rme=eme.width,ime=eme.triangle,ome=eme.styles,lme=ome===void 0?{}:ome,sme=eme.className,cme=sme===void 0?"":sme,dme=ame==="transparent",ume=function(hme,bme){isValidHex(hme)&&$P({hex:hme,source:"hex"},bme)},fme=_default$2(merge$1({default:{card:{width:rme,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:ame,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:getContrastingColor(ame),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+ame+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},lme),{"hide-triangle":ime==="hide"});return React__default.createElement("div",{style:fme.card,className:"block-picker "+cme},React__default.createElement("div",{style:fme.triangle}),React__default.createElement("div",{style:fme.head},dme&&React__default.createElement(Checkboard,{borderRadius:"6px 6px 0 0"}),React__default.createElement("div",{style:fme.label},ame)),React__default.createElement("div",{style:fme.body},React__default.createElement(BlockSwatches,{colors:nme,onClick:ume,onSwatchHover:tme}),React__default.createElement(EditableInput,{style:{input:fme.input},value:ame,onChange:ume})))};Block.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["top","hide"]),styles:PropTypes.object};Block.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};ColorWrap(Block);var red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},CircleSwatch=function(eme){var $P=eme.color,tme=eme.onClick,ame=eme.onSwatchHover,nme=eme.hover,rme=eme.active,ime=eme.circleSize,ome=eme.circleSpacing,lme=_default$2({default:{swatch:{width:ime,height:ime,marginRight:ome,marginBottom:ome,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(ime/2+1)+"px "+$P,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+$P}}},{hover:nme,active:rme});return React__default.createElement("div",{style:lme.swatch},React__default.createElement(Swatch$1,{style:lme.Swatch,color:$P,onClick:tme,onHover:ame,focusStyle:{boxShadow:lme.Swatch.boxShadow+", 0 0 5px "+$P}}))};CircleSwatch.defaultProps={circleSize:28,circleSpacing:14};const CircleSwatch$1=handleHover(CircleSwatch);var Circle=function(eme){var $P=eme.width,tme=eme.onChange,ame=eme.onSwatchHover,nme=eme.colors,rme=eme.hex,ime=eme.circleSize,ome=eme.styles,lme=ome===void 0?{}:ome,sme=eme.circleSpacing,cme=eme.className,dme=cme===void 0?"":cme,ume=_default$2(merge$1({default:{card:{width:$P,display:"flex",flexWrap:"wrap",marginRight:-sme,marginBottom:-sme}}},lme)),fme=function(hme,bme){return tme({hex:hme,source:"hex"},bme)};return React__default.createElement("div",{style:ume.card,className:"circle-picker "+dme},map(nme,function(pme){return React__default.createElement(CircleSwatch$1,{key:pme,color:pme,onClick:fme,onSwatchHover:ame,active:rme===pme.toLowerCase(),circleSize:ime,circleSpacing:sme})}))};Circle.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),circleSize:PropTypes.number,circleSpacing:PropTypes.number,styles:PropTypes.object};Circle.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[red[500],pink[500],purple[500],deepPurple[500],indigo[500],blue[500],lightBlue[500],cyan[500],teal[500],green[500],lightGreen[500],lime[500],yellow[500],amber[500],orange[500],deepOrange[500],brown[500],blueGrey[500]],styles:{}};ColorWrap(Circle);function isUndefined$1(x_){return x_===void 0}var UnfoldMoreHorizontalIcon={};Object.defineProperty(UnfoldMoreHorizontalIcon,"__esModule",{value:!0});var _extends$2P=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_react$4=reactExports,_react2$3=_interopRequireDefault$4(_react$4);function _interopRequireDefault$4(x_){return x_&&x_.__esModule?x_:{default:x_}}function _objectWithoutProperties$2(x_,eme){var $P={};for(var tme in x_)eme.indexOf(tme)>=0||Object.prototype.hasOwnProperty.call(x_,tme)&&($P[tme]=x_[tme]);return $P}var DEFAULT_SIZE$1=24,_default$1=UnfoldMoreHorizontalIcon.default=function(x_){var eme=x_.fill,$P=eme===void 0?"currentColor":eme,tme=x_.width,ame=tme===void 0?DEFAULT_SIZE$1:tme,nme=x_.height,rme=nme===void 0?DEFAULT_SIZE$1:nme,ime=x_.style,ome=ime===void 0?{}:ime,lme=_objectWithoutProperties$2(x_,["fill","width","height","style"]);return _react2$3.default.createElement("svg",_extends$2P({viewBox:"0 0 "+DEFAULT_SIZE$1+" "+DEFAULT_SIZE$1,style:_extends$2P({fill:$P,width:ame,height:rme},ome)},lme),_react2$3.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))},_createClass$3=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$3(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$3(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$3(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var ChromeFields=function(x_){_inherits$3(eme,x_);function eme($P){_classCallCheck$3(this,eme);var tme=_possibleConstructorReturn$3(this,(eme.__proto__||Object.getPrototypeOf(eme)).call(this));return tme.toggleViews=function(){tme.state.view==="hex"?tme.setState({view:"rgb"}):tme.state.view==="rgb"?tme.setState({view:"hsl"}):tme.state.view==="hsl"&&(tme.props.hsl.a===1?tme.setState({view:"hex"}):tme.setState({view:"rgb"}))},tme.handleChange=function(ame,nme){ame.hex?isValidHex(ame.hex)&&tme.props.onChange({hex:ame.hex,source:"hex"},nme):ame.r||ame.g||ame.b?tme.props.onChange({r:ame.r||tme.props.rgb.r,g:ame.g||tme.props.rgb.g,b:ame.b||tme.props.rgb.b,source:"rgb"},nme):ame.a?(ame.a<0?ame.a=0:ame.a>1&&(ame.a=1),tme.props.onChange({h:tme.props.hsl.h,s:tme.props.hsl.s,l:tme.props.hsl.l,a:Math.round(ame.a*100)/100,source:"rgb"},nme)):(ame.h||ame.s||ame.l)&&(typeof ame.s=="string"&&ame.s.includes("%")&&(ame.s=ame.s.replace("%","")),typeof ame.l=="string"&&ame.l.includes("%")&&(ame.l=ame.l.replace("%","")),ame.s==1?ame.s=.01:ame.l==1&&(ame.l=.01),tme.props.onChange({h:ame.h||tme.props.hsl.h,s:Number(isUndefined$1(ame.s)?tme.props.hsl.s:ame.s),l:Number(isUndefined$1(ame.l)?tme.props.hsl.l:ame.l),source:"hsl"},nme))},tme.showHighlight=function(ame){ame.currentTarget.style.background="#eee"},tme.hideHighlight=function(ame){ame.currentTarget.style.background="transparent"},$P.hsl.a!==1&&$P.view==="hex"?tme.state={view:"rgb"}:tme.state={view:$P.view},tme}return _createClass$3(eme,[{key:"render",value:function(){var tme=this,ame=_default$2({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),nme=void 0;return this.state.view==="hex"?nme=React__default.createElement("div",{style:ame.fields,className:"flexbox-fix"},React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?nme=React__default.createElement("div",{style:ame.fields,className:"flexbox-fix"},React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),React__default.createElement("div",{style:ame.alpha},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(nme=React__default.createElement("div",{style:ame.fields,className:"flexbox-fix"},React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),React__default.createElement("div",{style:ame.field},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),React__default.createElement("div",{style:ame.alpha},React__default.createElement(EditableInput,{style:{input:ame.input,label:ame.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),React__default.createElement("div",{style:ame.wrap,className:"flexbox-fix"},nme,React__default.createElement("div",{style:ame.toggle},React__default.createElement("div",{style:ame.icon,onClick:this.toggleViews,ref:function(ime){return tme.icon=ime}},React__default.createElement(_default$1,{style:ame.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(tme,ame){return tme.hsl.a!==1&&ame.view==="hex"?{view:"rgb"}:null}}]),eme}(React__default.Component);ChromeFields.defaultProps={view:"hex"};var ChromePointer=function(){var eme=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React__default.createElement("div",{style:eme.picker})},ChromePointerCircle=function(){var eme=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return React__default.createElement("div",{style:eme.picker})},Chrome=function(eme){var $P=eme.width,tme=eme.onChange,ame=eme.disableAlpha,nme=eme.rgb,rme=eme.hsl,ime=eme.hsv,ome=eme.hex,lme=eme.renderers,sme=eme.styles,cme=sme===void 0?{}:sme,dme=eme.className,ume=dme===void 0?"":dme,fme=eme.defaultView,pme=_default$2(merge$1({default:{picker:{width:$P,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+nme.r+", "+nme.g+", "+nme.b+", "+nme.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},cme),{disableAlpha:ame});return React__default.createElement("div",{style:pme.picker,className:"chrome-picker "+ume},React__default.createElement("div",{style:pme.saturation},React__default.createElement(Saturation,{style:pme.Saturation,hsl:rme,hsv:ime,pointer:ChromePointerCircle,onChange:tme})),React__default.createElement("div",{style:pme.body},React__default.createElement("div",{style:pme.controls,className:"flexbox-fix"},React__default.createElement("div",{style:pme.color},React__default.createElement("div",{style:pme.swatch},React__default.createElement("div",{style:pme.active}),React__default.createElement(Checkboard,{renderers:lme}))),React__default.createElement("div",{style:pme.toggles},React__default.createElement("div",{style:pme.hue},React__default.createElement(Hue,{style:pme.Hue,hsl:rme,pointer:ChromePointer,onChange:tme})),React__default.createElement("div",{style:pme.alpha},React__default.createElement(Alpha,{style:pme.Alpha,rgb:nme,hsl:rme,pointer:ChromePointer,renderers:lme,onChange:tme})))),React__default.createElement(ChromeFields,{rgb:nme,hsl:rme,hex:ome,view:fme,onChange:tme,disableAlpha:ame})))};Chrome.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),disableAlpha:PropTypes.bool,styles:PropTypes.object,defaultView:PropTypes.oneOf(["hex","rgb","hsl"])};Chrome.defaultProps={width:225,disableAlpha:!1,styles:{}};ColorWrap(Chrome);var CompactColor=function(eme){var $P=eme.color,tme=eme.onClick,ame=tme===void 0?function(){}:tme,nme=eme.onSwatchHover,rme=eme.active,ime=_default$2({default:{color:{background:$P,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:getContrastingColor($P),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:rme,"color-#FFFFFF":$P==="#FFFFFF",transparent:$P==="transparent"});return React__default.createElement(Swatch$1,{style:ime.color,color:$P,onClick:ame,onHover:nme,focusStyle:{boxShadow:"0 0 4px "+$P}},React__default.createElement("div",{style:ime.dot}))},CompactFields=function(eme){var $P=eme.hex,tme=eme.rgb,ame=eme.onChange,nme=_default$2({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:$P},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),rme=function(ome,lme){ome.r||ome.g||ome.b?ame({r:ome.r||tme.r,g:ome.g||tme.g,b:ome.b||tme.b,source:"rgb"},lme):ame({hex:ome.hex,source:"hex"},lme)};return React__default.createElement("div",{style:nme.fields,className:"flexbox-fix"},React__default.createElement("div",{style:nme.active}),React__default.createElement(EditableInput,{style:{wrap:nme.HEXwrap,input:nme.HEXinput,label:nme.HEXlabel},label:"hex",value:$P,onChange:rme}),React__default.createElement(EditableInput,{style:{wrap:nme.RGBwrap,input:nme.RGBinput,label:nme.RGBlabel},label:"r",value:tme.r,onChange:rme}),React__default.createElement(EditableInput,{style:{wrap:nme.RGBwrap,input:nme.RGBinput,label:nme.RGBlabel},label:"g",value:tme.g,onChange:rme}),React__default.createElement(EditableInput,{style:{wrap:nme.RGBwrap,input:nme.RGBinput,label:nme.RGBlabel},label:"b",value:tme.b,onChange:rme}))},Compact=function(eme){var $P=eme.onChange,tme=eme.onSwatchHover,ame=eme.colors,nme=eme.hex,rme=eme.rgb,ime=eme.styles,ome=ime===void 0?{}:ime,lme=eme.className,sme=lme===void 0?"":lme,cme=_default$2(merge$1({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},ome)),dme=function(fme,pme){fme.hex?isValidHex(fme.hex)&&$P({hex:fme.hex,source:"hex"},pme):$P(fme,pme)};return React__default.createElement(Raised,{style:cme.Compact,styles:ome},React__default.createElement("div",{style:cme.compact,className:"compact-picker "+sme},React__default.createElement("div",null,map(ame,function(ume){return React__default.createElement(CompactColor,{key:ume,color:ume,active:ume.toLowerCase()===nme,onClick:dme,onSwatchHover:tme})}),React__default.createElement("div",{style:cme.clear})),React__default.createElement(CompactFields,{hex:nme,rgb:rme,onChange:dme})))};Compact.propTypes={colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Compact.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ColorWrap(Compact);var GithubSwatch=function(eme){var $P=eme.hover,tme=eme.color,ame=eme.onClick,nme=eme.onSwatchHover,rme={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},ime=_default$2({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:rme}},{hover:$P});return React__default.createElement("div",{style:ime.swatch},React__default.createElement(Swatch$1,{color:tme,onClick:ame,onHover:nme,focusStyle:rme}))};const GithubSwatch$1=handleHover(GithubSwatch);var Github=function(eme){var $P=eme.width,tme=eme.colors,ame=eme.onChange,nme=eme.onSwatchHover,rme=eme.triangle,ime=eme.styles,ome=ime===void 0?{}:ime,lme=eme.className,sme=lme===void 0?"":lme,cme=_default$2(merge$1({default:{card:{width:$P,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},ome),{"hide-triangle":rme==="hide","top-left-triangle":rme==="top-left","top-right-triangle":rme==="top-right","bottom-left-triangle":rme==="bottom-left","bottom-right-triangle":rme==="bottom-right"}),dme=function(fme,pme){return ame({hex:fme,source:"hex"},pme)};return React__default.createElement("div",{style:cme.card,className:"github-picker "+sme},React__default.createElement("div",{style:cme.triangleShadow}),React__default.createElement("div",{style:cme.triangle}),map(tme,function(ume){return React__default.createElement(GithubSwatch$1,{color:ume,key:ume,onClick:dme,onSwatchHover:nme})}))};Github.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.string),triangle:PropTypes.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:PropTypes.object};Github.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};const GithubPicker=ColorWrap(Github);var SliderPointer$1=function(eme){var $P=eme.direction,tme=_default$2({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:$P==="vertical"});return React__default.createElement("div",{style:tme.picker})},_extends$2O=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},HuePicker=function(eme){var $P=eme.width,tme=eme.height,ame=eme.onChange,nme=eme.hsl,rme=eme.direction,ime=eme.pointer,ome=eme.styles,lme=ome===void 0?{}:ome,sme=eme.className,cme=sme===void 0?"":sme,dme=_default$2(merge$1({default:{picker:{position:"relative",width:$P,height:tme},hue:{radius:"2px"}}},lme)),ume=function(pme){return ame({a:1,h:pme.h,l:.5,s:1})};return React__default.createElement("div",{style:dme.picker,className:"hue-picker "+cme},React__default.createElement(Hue,_extends$2O({},dme.hue,{hsl:nme,pointer:ime,onChange:ume,direction:rme})))};HuePicker.propTypes={styles:PropTypes.object};HuePicker.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:SliderPointer$1,styles:{}};ColorWrap(HuePicker);var Material=function(eme){var $P=eme.onChange,tme=eme.hex,ame=eme.rgb,nme=eme.styles,rme=nme===void 0?{}:nme,ime=eme.className,ome=ime===void 0?"":ime,lme=_default$2(merge$1({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+tme,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},rme)),sme=function(dme,ume){dme.hex?isValidHex(dme.hex)&&$P({hex:dme.hex,source:"hex"},ume):(dme.r||dme.g||dme.b)&&$P({r:dme.r||ame.r,g:dme.g||ame.g,b:dme.b||ame.b,source:"rgb"},ume)};return React__default.createElement(Raised,{styles:rme},React__default.createElement("div",{style:lme.material,className:"material-picker "+ome},React__default.createElement(EditableInput,{style:{wrap:lme.HEXwrap,input:lme.HEXinput,label:lme.HEXlabel},label:"hex",value:tme,onChange:sme}),React__default.createElement("div",{style:lme.split,className:"flexbox-fix"},React__default.createElement("div",{style:lme.third},React__default.createElement(EditableInput,{style:{wrap:lme.RGBwrap,input:lme.RGBinput,label:lme.RGBlabel},label:"r",value:ame.r,onChange:sme})),React__default.createElement("div",{style:lme.third},React__default.createElement(EditableInput,{style:{wrap:lme.RGBwrap,input:lme.RGBinput,label:lme.RGBlabel},label:"g",value:ame.g,onChange:sme})),React__default.createElement("div",{style:lme.third},React__default.createElement(EditableInput,{style:{wrap:lme.RGBwrap,input:lme.RGBinput,label:lme.RGBlabel},label:"b",value:ame.b,onChange:sme})))))};ColorWrap(Material);var PhotoshopPicker=function(eme){var $P=eme.onChange,tme=eme.rgb,ame=eme.hsv,nme=eme.hex,rme=_default$2({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),ime=function(lme,sme){lme["#"]?isValidHex(lme["#"])&&$P({hex:lme["#"],source:"hex"},sme):lme.r||lme.g||lme.b?$P({r:lme.r||tme.r,g:lme.g||tme.g,b:lme.b||tme.b,source:"rgb"},sme):(lme.h||lme.s||lme.v)&&$P({h:lme.h||ame.h,s:lme.s||ame.s,v:lme.v||ame.v,source:"hsv"},sme)};return React__default.createElement("div",{style:rme.fields},React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"h",value:Math.round(ame.h),onChange:ime}),React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"s",value:Math.round(ame.s*100),onChange:ime}),React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"v",value:Math.round(ame.v*100),onChange:ime}),React__default.createElement("div",{style:rme.divider}),React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"r",value:tme.r,onChange:ime}),React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"g",value:tme.g,onChange:ime}),React__default.createElement(EditableInput,{style:{wrap:rme.RGBwrap,input:rme.RGBinput,label:rme.RGBlabel},label:"b",value:tme.b,onChange:ime}),React__default.createElement("div",{style:rme.divider}),React__default.createElement(EditableInput,{style:{wrap:rme.HEXwrap,input:rme.HEXinput,label:rme.HEXlabel},label:"#",value:nme.replace("#",""),onChange:ime}),React__default.createElement("div",{style:rme.fieldSymbols},React__default.createElement("div",{style:rme.symbol},"°"),React__default.createElement("div",{style:rme.symbol},"%"),React__default.createElement("div",{style:rme.symbol},"%")))},PhotoshopPointerCircle$1=function(eme){var $P=eme.hsl,tme=_default$2({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":$P.l>.5});return React__default.createElement("div",{style:tme.picker})},PhotoshopPointerCircle=function(){var eme=_default$2({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return React__default.createElement("div",{style:eme.pointer},React__default.createElement("div",{style:eme.left},React__default.createElement("div",{style:eme.leftInside})),React__default.createElement("div",{style:eme.right},React__default.createElement("div",{style:eme.rightInside})))},PhotoshopButton=function(eme){var $P=eme.onClick,tme=eme.label,ame=eme.children,nme=eme.active,rme=_default$2({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:nme});return React__default.createElement("div",{style:rme.button,onClick:$P},tme||ame)},PhotoshopPreviews=function(eme){var $P=eme.rgb,tme=eme.currentColor,ame=_default$2({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+$P.r+","+$P.g+", "+$P.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:tme,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return React__default.createElement("div",null,React__default.createElement("div",{style:ame.label},"new"),React__default.createElement("div",{style:ame.swatches},React__default.createElement("div",{style:ame.new}),React__default.createElement("div",{style:ame.current})),React__default.createElement("div",{style:ame.label},"current"))},_createClass$2=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}();function _classCallCheck$2(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$2(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$2(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Photoshop=function(x_){_inherits$2(eme,x_);function eme($P){_classCallCheck$2(this,eme);var tme=_possibleConstructorReturn$2(this,(eme.__proto__||Object.getPrototypeOf(eme)).call(this));return tme.state={currentColor:$P.hex},tme}return _createClass$2(eme,[{key:"render",value:function(){var tme=this.props,ame=tme.styles,nme=ame===void 0?{}:ame,rme=tme.className,ime=rme===void 0?"":rme,ome=_default$2(merge$1({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},nme));return React__default.createElement("div",{style:ome.picker,className:"photoshop-picker "+ime},React__default.createElement("div",{style:ome.head},this.props.header),React__default.createElement("div",{style:ome.body,className:"flexbox-fix"},React__default.createElement("div",{style:ome.saturation},React__default.createElement(Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:PhotoshopPointerCircle$1,onChange:this.props.onChange})),React__default.createElement("div",{style:ome.hue},React__default.createElement(Hue,{direction:"vertical",hsl:this.props.hsl,pointer:PhotoshopPointerCircle,onChange:this.props.onChange})),React__default.createElement("div",{style:ome.controls},React__default.createElement("div",{style:ome.top,className:"flexbox-fix"},React__default.createElement("div",{style:ome.previews},React__default.createElement(PhotoshopPreviews,{rgb:this.props.rgb,currentColor:this.state.currentColor})),React__default.createElement("div",{style:ome.actions},React__default.createElement(PhotoshopButton,{label:"OK",onClick:this.props.onAccept,active:!0}),React__default.createElement(PhotoshopButton,{label:"Cancel",onClick:this.props.onCancel}),React__default.createElement(PhotoshopPicker,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),eme}(React__default.Component);Photoshop.propTypes={header:PropTypes.string,styles:PropTypes.object};Photoshop.defaultProps={header:"Color Picker",styles:{}};ColorWrap(Photoshop);var SketchFields=function(eme){var $P=eme.onChange,tme=eme.rgb,ame=eme.hsl,nme=eme.hex,rme=eme.disableAlpha,ime=_default$2({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:rme}),ome=function(sme,cme){sme.hex?isValidHex(sme.hex)&&$P({hex:sme.hex,source:"hex"},cme):sme.r||sme.g||sme.b?$P({r:sme.r||tme.r,g:sme.g||tme.g,b:sme.b||tme.b,a:tme.a,source:"rgb"},cme):sme.a&&(sme.a<0?sme.a=0:sme.a>100&&(sme.a=100),sme.a/=100,$P({h:ame.h,s:ame.s,l:ame.l,a:sme.a,source:"rgb"},cme))};return React__default.createElement("div",{style:ime.fields,className:"flexbox-fix"},React__default.createElement("div",{style:ime.double},React__default.createElement(EditableInput,{style:{input:ime.input,label:ime.label},label:"hex",value:nme.replace("#",""),onChange:ome})),React__default.createElement("div",{style:ime.single},React__default.createElement(EditableInput,{style:{input:ime.input,label:ime.label},label:"r",value:tme.r,onChange:ome,dragLabel:"true",dragMax:"255"})),React__default.createElement("div",{style:ime.single},React__default.createElement(EditableInput,{style:{input:ime.input,label:ime.label},label:"g",value:tme.g,onChange:ome,dragLabel:"true",dragMax:"255"})),React__default.createElement("div",{style:ime.single},React__default.createElement(EditableInput,{style:{input:ime.input,label:ime.label},label:"b",value:tme.b,onChange:ome,dragLabel:"true",dragMax:"255"})),React__default.createElement("div",{style:ime.alpha},React__default.createElement(EditableInput,{style:{input:ime.input,label:ime.label},label:"a",value:Math.round(tme.a*100),onChange:ome,dragLabel:"true",dragMax:"100"})))},_extends$2N=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},SketchPresetColors=function(eme){var $P=eme.colors,tme=eme.onClick,ame=tme===void 0?function(){}:tme,nme=eme.onSwatchHover,rme=_default$2({default:{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:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!$P||!$P.length}),ime=function(lme,sme){ame({hex:lme,source:"hex"},sme)};return React__default.createElement("div",{style:rme.colors,className:"flexbox-fix"},$P.map(function(ome){var lme=typeof ome=="string"?{color:ome}:ome,sme=""+lme.color+(lme.title||"");return React__default.createElement("div",{key:sme,style:rme.swatchWrap},React__default.createElement(Swatch$1,_extends$2N({},lme,{style:rme.swatch,onClick:ime,onHover:nme,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+lme.color}})))}))};SketchPresetColors.propTypes={colors:PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string,PropTypes.shape({color:PropTypes.string,title:PropTypes.string})])).isRequired};var _extends$2M=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},Sketch=function(eme){var $P=eme.width,tme=eme.rgb,ame=eme.hex,nme=eme.hsv,rme=eme.hsl,ime=eme.onChange,ome=eme.onSwatchHover,lme=eme.disableAlpha,sme=eme.presetColors,cme=eme.renderers,dme=eme.styles,ume=dme===void 0?{}:dme,fme=eme.className,pme=fme===void 0?"":fme,hme=_default$2(merge$1({default:_extends$2M({picker:{width:$P,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("+tme.r+","+tme.g+","+tme.b+","+tme.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)"}},ume),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},ume),{disableAlpha:lme});return React__default.createElement("div",{style:hme.picker,className:"sketch-picker "+pme},React__default.createElement("div",{style:hme.saturation},React__default.createElement(Saturation,{style:hme.Saturation,hsl:rme,hsv:nme,onChange:ime})),React__default.createElement("div",{style:hme.controls,className:"flexbox-fix"},React__default.createElement("div",{style:hme.sliders},React__default.createElement("div",{style:hme.hue},React__default.createElement(Hue,{style:hme.Hue,hsl:rme,onChange:ime})),React__default.createElement("div",{style:hme.alpha},React__default.createElement(Alpha,{style:hme.Alpha,rgb:tme,hsl:rme,renderers:cme,onChange:ime}))),React__default.createElement("div",{style:hme.color},React__default.createElement(Checkboard,null),React__default.createElement("div",{style:hme.activeColor}))),React__default.createElement(SketchFields,{rgb:tme,hsl:rme,hex:ame,onChange:ime,disableAlpha:lme}),React__default.createElement(SketchPresetColors,{colors:sme,onClick:ime,onSwatchHover:ome}))};Sketch.propTypes={disableAlpha:PropTypes.bool,width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object};Sketch.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};const SketchPicker=ColorWrap(Sketch);var SliderSwatch=function(eme){var $P=eme.hsl,tme=eme.offset,ame=eme.onClick,nme=ame===void 0?function(){}:ame,rme=eme.active,ime=eme.first,ome=eme.last,lme=_default$2({default:{swatch:{height:"12px",background:"hsl("+$P.h+", 50%, "+tme*100+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:rme,first:ime,last:ome}),sme=function(dme){return nme({h:$P.h,s:.5,l:tme,source:"hsl"},dme)};return React__default.createElement("div",{style:lme.swatch,onClick:sme})},SliderSwatches=function(eme){var $P=eme.onClick,tme=eme.hsl,ame=_default$2({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),nme=.1;return React__default.createElement("div",{style:ame.swatches},React__default.createElement("div",{style:ame.swatch},React__default.createElement(SliderSwatch,{hsl:tme,offset:".80",active:Math.abs(tme.l-.8)<nme&&Math.abs(tme.s-.5)<nme,onClick:$P,first:!0})),React__default.createElement("div",{style:ame.swatch},React__default.createElement(SliderSwatch,{hsl:tme,offset:".65",active:Math.abs(tme.l-.65)<nme&&Math.abs(tme.s-.5)<nme,onClick:$P})),React__default.createElement("div",{style:ame.swatch},React__default.createElement(SliderSwatch,{hsl:tme,offset:".50",active:Math.abs(tme.l-.5)<nme&&Math.abs(tme.s-.5)<nme,onClick:$P})),React__default.createElement("div",{style:ame.swatch},React__default.createElement(SliderSwatch,{hsl:tme,offset:".35",active:Math.abs(tme.l-.35)<nme&&Math.abs(tme.s-.5)<nme,onClick:$P})),React__default.createElement("div",{style:ame.swatch},React__default.createElement(SliderSwatch,{hsl:tme,offset:".20",active:Math.abs(tme.l-.2)<nme&&Math.abs(tme.s-.5)<nme,onClick:$P,last:!0})),React__default.createElement("div",{style:ame.clear}))},SliderPointer=function(){var eme=_default$2({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return React__default.createElement("div",{style:eme.picker})},Slider=function(eme){var $P=eme.hsl,tme=eme.onChange,ame=eme.pointer,nme=eme.styles,rme=nme===void 0?{}:nme,ime=eme.className,ome=ime===void 0?"":ime,lme=_default$2(merge$1({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},rme));return React__default.createElement("div",{style:lme.wrap||{},className:"slider-picker "+ome},React__default.createElement("div",{style:lme.hue},React__default.createElement(Hue,{style:lme.Hue,hsl:$P,pointer:ame,onChange:tme})),React__default.createElement("div",{style:lme.swatches},React__default.createElement(SliderSwatches,{hsl:$P,onClick:tme})))};Slider.propTypes={styles:PropTypes.object};Slider.defaultProps={pointer:SliderPointer,styles:{}};ColorWrap(Slider);var CheckIcon={};Object.defineProperty(CheckIcon,"__esModule",{value:!0});var _extends$2L=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_react$3=reactExports,_react2$2=_interopRequireDefault$3(_react$3);function _interopRequireDefault$3(x_){return x_&&x_.__esModule?x_:{default:x_}}function _objectWithoutProperties$1(x_,eme){var $P={};for(var tme in x_)eme.indexOf(tme)>=0||Object.prototype.hasOwnProperty.call(x_,tme)&&($P[tme]=x_[tme]);return $P}var DEFAULT_SIZE=24,_default=CheckIcon.default=function(x_){var eme=x_.fill,$P=eme===void 0?"currentColor":eme,tme=x_.width,ame=tme===void 0?DEFAULT_SIZE:tme,nme=x_.height,rme=nme===void 0?DEFAULT_SIZE:nme,ime=x_.style,ome=ime===void 0?{}:ime,lme=_objectWithoutProperties$1(x_,["fill","width","height","style"]);return _react2$2.default.createElement("svg",_extends$2L({viewBox:"0 0 "+DEFAULT_SIZE+" "+DEFAULT_SIZE,style:_extends$2L({fill:$P,width:ame,height:rme},ome)},lme),_react2$2.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},SwatchesColor=function(eme){var $P=eme.color,tme=eme.onClick,ame=tme===void 0?function(){}:tme,nme=eme.onSwatchHover,rme=eme.first,ime=eme.last,ome=eme.active,lme=_default$2({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:$P,marginBottom:"1px"},check:{color:getContrastingColor($P),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:rme,last:ime,active:ome,"color-#FFFFFF":$P==="#FFFFFF",transparent:$P==="transparent"});return React__default.createElement(Swatch$1,{color:$P,style:lme.color,onClick:ame,onHover:nme,focusStyle:{boxShadow:"0 0 4px "+$P}},React__default.createElement("div",{style:lme.check},React__default.createElement(_default,null)))},SwatchesGroup=function(eme){var $P=eme.onClick,tme=eme.onSwatchHover,ame=eme.group,nme=eme.active,rme=_default$2({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return React__default.createElement("div",{style:rme.group},map(ame,function(ime,ome){return React__default.createElement(SwatchesColor,{key:ime,color:ime,active:ime.toLowerCase()===nme,first:ome===0,last:ome===ame.length-1,onClick:$P,onSwatchHover:tme})}))},Swatches=function(eme){var $P=eme.width,tme=eme.height,ame=eme.onChange,nme=eme.onSwatchHover,rme=eme.colors,ime=eme.hex,ome=eme.styles,lme=ome===void 0?{}:ome,sme=eme.className,cme=sme===void 0?"":sme,dme=_default$2(merge$1({default:{picker:{width:$P,height:tme},overflow:{height:tme,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},lme)),ume=function(pme,hme){return ame({hex:pme,source:"hex"},hme)};return React__default.createElement("div",{style:dme.picker,className:"swatches-picker "+cme},React__default.createElement(Raised,null,React__default.createElement("div",{style:dme.overflow},React__default.createElement("div",{style:dme.body},map(rme,function(fme){return React__default.createElement(SwatchesGroup,{key:fme.toString(),group:fme,active:ime,onClick:ume,onSwatchHover:nme})}),React__default.createElement("div",{style:dme.clear})))))};Swatches.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),height:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),colors:PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),styles:PropTypes.object};Swatches.defaultProps={width:320,height:240,colors:[[red[900],red[700],red[500],red[300],red[100]],[pink[900],pink[700],pink[500],pink[300],pink[100]],[purple[900],purple[700],purple[500],purple[300],purple[100]],[deepPurple[900],deepPurple[700],deepPurple[500],deepPurple[300],deepPurple[100]],[indigo[900],indigo[700],indigo[500],indigo[300],indigo[100]],[blue[900],blue[700],blue[500],blue[300],blue[100]],[lightBlue[900],lightBlue[700],lightBlue[500],lightBlue[300],lightBlue[100]],[cyan[900],cyan[700],cyan[500],cyan[300],cyan[100]],[teal[900],teal[700],teal[500],teal[300],teal[100]],["#194D33",green[700],green[500],green[300],green[100]],[lightGreen[900],lightGreen[700],lightGreen[500],lightGreen[300],lightGreen[100]],[lime[900],lime[700],lime[500],lime[300],lime[100]],[yellow[900],yellow[700],yellow[500],yellow[300],yellow[100]],[amber[900],amber[700],amber[500],amber[300],amber[100]],[orange[900],orange[700],orange[500],orange[300],orange[100]],[deepOrange[900],deepOrange[700],deepOrange[500],deepOrange[300],deepOrange[100]],[brown[900],brown[700],brown[500],brown[300],brown[100]],[blueGrey[900],blueGrey[700],blueGrey[500],blueGrey[300],blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};ColorWrap(Swatches);var Twitter=function(eme){var $P=eme.onChange,tme=eme.onSwatchHover,ame=eme.hex,nme=eme.colors,rme=eme.width,ime=eme.triangle,ome=eme.styles,lme=ome===void 0?{}:ome,sme=eme.className,cme=sme===void 0?"":sme,dme=_default$2(merge$1({default:{card:{width:rme,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},lme),{"hide-triangle":ime==="hide","top-left-triangle":ime==="top-left","top-right-triangle":ime==="top-right"}),ume=function(pme,hme){isValidHex(pme)&&$P({hex:pme,source:"hex"},hme)};return React__default.createElement("div",{style:dme.card,className:"twitter-picker "+cme},React__default.createElement("div",{style:dme.triangleShadow}),React__default.createElement("div",{style:dme.triangle}),React__default.createElement("div",{style:dme.body},map(nme,function(fme,pme){return React__default.createElement(Swatch$1,{key:pme,color:fme,hex:fme,style:dme.swatch,onClick:ume,onHover:tme,focusStyle:{boxShadow:"0 0 4px "+fme}})}),React__default.createElement("div",{style:dme.hash},"#"),React__default.createElement(EditableInput,{label:null,style:{input:dme.input},value:ame.replace("#",""),onChange:ume}),React__default.createElement("div",{style:dme.clear})))};Twitter.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),triangle:PropTypes.oneOf(["hide","top-left","top-right"]),colors:PropTypes.arrayOf(PropTypes.string),styles:PropTypes.object};Twitter.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};ColorWrap(Twitter);var GooglePointerCircle=function(eme){var $P=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(eme.hsl.h)+", "+Math.round(eme.hsl.s*100)+"%, "+Math.round(eme.hsl.l*100)+"%)"}}});return React__default.createElement("div",{style:$P.picker})};GooglePointerCircle.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointerCircle.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GooglePointer=function(eme){var $P=_default$2({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(eme.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return React__default.createElement("div",{style:$P.picker})};GooglePointer.propTypes={hsl:PropTypes.shape({h:PropTypes.number,s:PropTypes.number,l:PropTypes.number,a:PropTypes.number})};GooglePointer.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var GoogleFields=function(eme){var $P=eme.onChange,tme=eme.rgb,ame=eme.hsl,nme=eme.hex,rme=eme.hsv,ime=function(ume,fme){if(ume.hex)isValidHex(ume.hex)&&$P({hex:ume.hex,source:"hex"},fme);else if(ume.rgb){var pme=ume.rgb.split(",");isvalidColorString(ume.rgb,"rgb")&&$P({r:pme[0],g:pme[1],b:pme[2],a:1,source:"rgb"},fme)}else if(ume.hsv){var hme=ume.hsv.split(",");isvalidColorString(ume.hsv,"hsv")&&(hme[2]=hme[2].replace("%",""),hme[1]=hme[1].replace("%",""),hme[0]=hme[0].replace("°",""),hme[1]==1?hme[1]=.01:hme[2]==1&&(hme[2]=.01),$P({h:Number(hme[0]),s:Number(hme[1]),v:Number(hme[2]),source:"hsv"},fme))}else if(ume.hsl){var bme=ume.hsl.split(",");isvalidColorString(ume.hsl,"hsl")&&(bme[2]=bme[2].replace("%",""),bme[1]=bme[1].replace("%",""),bme[0]=bme[0].replace("°",""),cme[1]==1?cme[1]=.01:cme[2]==1&&(cme[2]=.01),$P({h:Number(bme[0]),s:Number(bme[1]),v:Number(bme[2]),source:"hsl"},fme))}},ome=_default$2({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),lme=tme.r+", "+tme.g+", "+tme.b,sme=Math.round(ame.h)+"°, "+Math.round(ame.s*100)+"%, "+Math.round(ame.l*100)+"%",cme=Math.round(rme.h)+"°, "+Math.round(rme.s*100)+"%, "+Math.round(rme.v*100)+"%";return React__default.createElement("div",{style:ome.wrap,className:"flexbox-fix"},React__default.createElement("div",{style:ome.fields},React__default.createElement("div",{style:ome.double},React__default.createElement(EditableInput,{style:{input:ome.input,label:ome.label},label:"hex",value:nme,onChange:ime})),React__default.createElement("div",{style:ome.column},React__default.createElement("div",{style:ome.single},React__default.createElement(EditableInput,{style:{input:ome.input2,label:ome.label2},label:"rgb",value:lme,onChange:ime})),React__default.createElement("div",{style:ome.single},React__default.createElement(EditableInput,{style:{input:ome.input2,label:ome.label2},label:"hsv",value:cme,onChange:ime})),React__default.createElement("div",{style:ome.single},React__default.createElement(EditableInput,{style:{input:ome.input2,label:ome.label2},label:"hsl",value:sme,onChange:ime})))))},Google=function(eme){var $P=eme.width,tme=eme.onChange,ame=eme.rgb,nme=eme.hsl,rme=eme.hsv,ime=eme.hex,ome=eme.header,lme=eme.styles,sme=lme===void 0?{}:lme,cme=eme.className,dme=cme===void 0?"":cme,ume=_default$2(merge$1({default:{picker:{width:$P,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+ame.r+", "+ame.g+", "+ame.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},sme));return React__default.createElement("div",{style:ume.picker,className:"google-picker "+dme},React__default.createElement("div",{style:ume.head},ome),React__default.createElement("div",{style:ume.swatch}),React__default.createElement("div",{style:ume.saturation},React__default.createElement(Saturation,{hsl:nme,hsv:rme,pointer:GooglePointerCircle,onChange:tme})),React__default.createElement("div",{style:ume.body},React__default.createElement("div",{style:ume.controls,className:"flexbox-fix"},React__default.createElement("div",{style:ume.hue},React__default.createElement(Hue,{style:ume.Hue,hsl:nme,radius:"4px",pointer:GooglePointer,onChange:tme}))),React__default.createElement(GoogleFields,{rgb:ame,hsl:nme,hex:ime,hsv:rme,onChange:tme})))};Google.propTypes={width:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),styles:PropTypes.object,header:PropTypes.string};Google.defaultProps={width:652,styles:{},header:"Color picker"};ColorWrap(Google);var _g$24;function _extends$2K(){return _extends$2K=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2K.apply(this,arguments)}var SvgCheckboxCheck=function(eme){return reactExports.createElement("svg",_extends$2K({viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$24||(_g$24=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M24.914.205v21a3 3 0 0 1-3 3h-21l24-24Z",fill:"#2468F2"}),reactExports.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",d:"m12.914 16.668 3 3 6-6"}))))},_g$23;function _extends$2J(){return _extends$2J=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2J.apply(this,arguments)}var SvgCheckbox$1=function(eme){return reactExports.createElement("svg",_extends$2J({viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$23||(_g$23=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M23.995.205v21a3 3 0 0 1-3 3h-21l24-24Z",fill:"#E8E9EB"}),reactExports.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",d:"m11.995 16.668 3 3 6-6"}))))},_g$22;function _extends$2I(){return _extends$2I=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2I.apply(this,arguments)}var SvgCode$2=function(eme){return reactExports.createElement("svg",_extends$2I({viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$22||(_g$22=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 .57h20v20H0z"}),reactExports.createElement("path",{stroke:"#151B26",strokeWidth:1.25,strokeLinejoin:"round",d:"M2.5 4.32h15v12.5h-15z"}),reactExports.createElement("path",{stroke:"#151B26",strokeWidth:1.25,strokeLinecap:"round",d:"m11.709 7.411-3.362 6.284"}),reactExports.createElement("path",{stroke:"#151B26",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round",d:"m13.643 8.803 1.768 1.768-1.766 1.766M6.582 8.803l-1.768 1.768 1.766 1.766"}))))},_g$21;function _extends$2H(){return _extends$2H=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2H.apply(this,arguments)}var SvgComponent=function(eme){return reactExports.createElement("svg",_extends$2H({viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$21||(_g$21=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 .57h20v20H0z"}),reactExports.createElement("g",{stroke:"#333",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.25},reactExports.createElement("path",{d:"m7.2 5.37 2.8-2.8 2.8 2.8-2.8 2.8zM12.4 10.97l2.8-2.8 2.8 2.8-2.8 2.8zM7.2 15.77l2.8-2.8 2.8 2.8-2.8 2.8zM2 10.57l2.8-2.8 2.8 2.8-2.8 2.8z"})))))},_g$20;function _extends$2G(){return _extends$2G=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2G.apply(this,arguments)}var SvgGlobal=function(eme){return reactExports.createElement("svg",_extends$2G({viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$20||(_g$20=reactExports.createElement("g",{transform:"translate(0 .57)",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:1.25,fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M2.701 2.702h14.603V8.55H2.701zM2.701 11.451h5.848v5.848H2.701z"}),reactExports.createElement("rect",{x:11.456,y:11.451,width:5.848,height:5.848,rx:2.924}))))},_g$1$;function _extends$2F(){return _extends$2F=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2F.apply(this,arguments)}var SvgCustom$1=function(eme){return reactExports.createElement("svg",_extends$2F({viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1$||(_g$1$=reactExports.createElement("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("rect",{fill:"#84868C",x:7.116,y:2.951,width:6.913,height:1,rx:.5}),reactExports.createElement("rect",{fill:"#84868C",x:7.116,y:5.989,width:5.188,height:1,rx:.5}),reactExports.createElement("rect",{fill:"#84868C",x:7.116,y:9.028,width:6.913,height:1,rx:.5}),reactExports.createElement("rect",{fill:"#84868C",x:7.116,y:12.066,width:5.188,height:1,rx:.5}),reactExports.createElement("path",{d:"M4.284 2.5v1.488m0 2.742v2.144m0 3.065V13.5",stroke:"#84868C",strokeLinecap:"round",strokeLinejoin:"bevel"}),reactExports.createElement("path",{d:"M4.25 9.195a1.336 1.336 0 1 1 0 2.671 1.336 1.336 0 0 1 0-2.671Zm0-5.153a1.336 1.336 0 1 1 0 2.672 1.336 1.336 0 0 1 0-2.672Z",stroke:"#84868C",strokeLinejoin:"round"}))))},_g$1_;function _extends$2E(){return _extends$2E=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2E.apply(this,arguments)}var SvgLock=function(eme){return reactExports.createElement("svg",_extends$2E({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1_||(_g$1_=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 .002h16v16.005H0z"}),reactExports.createElement("g",{transform:"translate(2 1.336)",stroke:"#5C5F66",strokeLinejoin:"round",strokeWidth:1.5},reactExports.createElement("rect",{y:6.002,width:12,height:7.335,rx:.667}),reactExports.createElement("path",{d:"M2.667 6.002V3.334a3.334 3.334 0 1 1 6.666 0v2.668M6 8.669v2.001",strokeLinecap:"round"})))))},_g$1Z;function _extends$2D(){return _extends$2D=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2D.apply(this,arguments)}var SvgUnlock=function(eme){return reactExports.createElement("svg",_extends$2D({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1Z||(_g$1Z=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("g",{transform:"translate(2.75 1.333)",stroke:"#5C5F66",strokeLinejoin:"round",strokeWidth:1.5},reactExports.createElement("rect",{y:6.016,width:10.5,height:7.333,rx:.667}),reactExports.createElement("path",{d:"M1.917 6V3.335C1.915 1.623 3.224.189 4.945.017 6.666-.155 8.24.991 8.583 2.67M5.25 8.667v2",strokeLinecap:"round"})))))},_g$1Y;function _extends$2C(){return _extends$2C=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2C.apply(this,arguments)}var SvgItalic=function(eme){return reactExports.createElement("svg",_extends$2C({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1Y||(_g$1Y=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{opacity:.5,d:"M0 0h16v16H0z"}),reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M4 13.071h6.394v1.547H4zM6.526 2h6.394v1.546H6.526z"}),reactExports.createElement("path",{d:"m6.168 14.218 3.123-11.8 1.476.4-3.123 11.8z"})))))},_g$1X;function _extends$2B(){return _extends$2B=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2B.apply(this,arguments)}var SvgUnderline=function(eme){return reactExports.createElement("svg",_extends$2B({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1X||(_g$1X=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{opacity:.5,d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M8.206 11.52c1.34 0 2.368-.36 3.095-1.053.727-.708 1.098-1.733 1.098-3.076V1.754h-1.555V7.42c0 .924-.213 1.603-.627 2.05-.428.448-1.098.679-2.01.679-.927 0-1.598-.231-2.025-.679-.428-.447-.628-1.126-.628-2.05V1.754H4v5.637c0 1.343.37 2.368 1.112 3.09.713.693 1.74 1.04 3.094 1.04Z",fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("path",{fill:"currentColor",d:"M3 12.754h10.185v1.547H3z"}))))},_g$1W;function _extends$2A(){return _extends$2A=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2A.apply(this,arguments)}var SvgLineThrough=function(eme){return reactExports.createElement("svg",_extends$2A({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1W||(_g$1W=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{opacity:.5,d:"M.455 0h16v16h-16z"}),reactExports.createElement("text",{fontFamily:"PingFangSC-Medium, PingFang SC",fontSize:14,fontWeight:400,fill:"currentColor",transform:"translate(.455)"},reactExports.createElement("tspan",{x:2.907,y:14},"S")),reactExports.createElement("path",{d:"M3.363 8h10.185v1.547H3.363z",fill:"currentColor"}))))},_g$1V;function _extends$2z(){return _extends$2z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2z.apply(this,arguments)}var SvgTextLeft=function(eme){return reactExports.createElement("svg",_extends$2z({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1V||(_g$1V=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.455 0h16v16h-16z"}),reactExports.createElement("path",{fill:"currentColor",d:"M2.455 2h12v1.5h-12zM2.455 12h8.571v1.5h-8.57zM2.455 7h6.857v1.5H2.455z"}))))},_g$1U;function _extends$2y(){return _extends$2y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2y.apply(this,arguments)}var SvgTextCenter=function(eme){return reactExports.createElement("svg",_extends$2y({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1U||(_g$1U=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.823 0h16v16h-16z"}),reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M2.823 2h12v1.5h-12zM4.537 12h8.571v1.5H4.537zM5.394 7h6.857v1.5H5.394z"})))))},_g$1T;function _extends$2x(){return _extends$2x=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2x.apply(this,arguments)}var SvgTextRight=function(eme){return reactExports.createElement("svg",_extends$2x({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1T||(_g$1T=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.728 0h16v16h-16z"}),reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M2.728 2h12v1.5h-12zM6.157 12h8.571v1.5h-8.57zM7.871 7h6.857v1.5H7.871z"})))))},_g$1S;function _extends$2w(){return _extends$2w=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2w.apply(this,arguments)}var SvgTextJustify=function(eme){return reactExports.createElement("svg",_extends$2w({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1S||(_g$1S=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.728 0h16v16h-16z"}),reactExports.createElement("g",{fill:"currentColor"},reactExports.createElement("path",{d:"M2.728 2h12v1.5h-12zM2.728 12h12v1.5h-12zM2.728 7h12v1.5h-12z"})))))},_g$1R;function _extends$2v(){return _extends$2v=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2v.apply(this,arguments)}var SvgVerticalTop=function(eme){return reactExports.createElement("svg",_extends$2v({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1R||(_g$1R=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.728 0h16v16h-16z"}),reactExports.createElement("path",{fill:"currentColor",d:"M2.728 5.38h12v1.5h-12z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"m6.299 11.944 2.43-2.338 2.428 2.338"}))))},_g$1Q;function _extends$2u(){return _extends$2u=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2u.apply(this,arguments)}var SvgVerticalMiddle=function(eme){return reactExports.createElement("svg",_extends$2u({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1Q||(_g$1Q=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.728 0h16v16h-16z"}),reactExports.createElement("path",{fill:"currentColor",d:"M2.728 7.25h12v1.5h-12z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"m6.299 13.815 2.43-2.339 2.428 2.339M6.299 2.185l2.43 2.339 2.428-2.339"}))))},_g$1P;function _extends$2t(){return _extends$2t=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2t.apply(this,arguments)}var SvgVerticalBottom=function(eme){return reactExports.createElement("svg",_extends$2t({viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1P||(_g$1P=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.728 0h16v16h-16z"}),reactExports.createElement("path",{fill:"currentColor",d:"M2.728 12.226h12v-1.5h-12z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M6.299 5.661 8.729 8l2.428-2.339"}))))},_path$F;function _extends$2s(){return _extends$2s=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2s.apply(this,arguments)}var SvgAddButton=function(eme){return reactExports.createElement("svg",_extends$2s({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$F||(_path$F=reactExports.createElement("path",{stroke:"currentColor",fill:"none",strokeLinejoin:"round",d:"M2.5 2.5h11v11h-11zM5 8h6M8 5v6"})))},_g$1O;function _extends$2r(){return _extends$2r=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2r.apply(this,arguments)}var SvgDeleteButton=function(eme){return reactExports.createElement("svg",_extends$2r({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1O||(_g$1O=reactExports.createElement("g",{stroke:"currentColor",strokeLinejoin:"round",fill:"none"},reactExports.createElement("path",{d:"M3.5 4h9v10h-9zM2 4h12.004M6.53 7.499v3M9.53 7.499v3M6.5 2h3"}))))},_circle$1,_path$E,_circle2$1;function _extends$2q(){return _extends$2q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2q.apply(this,arguments)}var SvgColorPickerImg=function(eme){return reactExports.createElement("svg",_extends$2q({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",style:{enableBackground:"new 0 0 17 17"},xmlSpace:"preserve",className:"icon"},eme),_circle$1||(_circle$1=reactExports.createElement("circle",{fill:"#E8E9EB",cx:8.5,cy:8.5,r:8.5})),_path$E||(_path$E=reactExports.createElement("path",{fill:"#CBCDD1",d:"m16.5 11.5-3.2-3c-.2-.2-.5-.2-.7 0l-2.8 2.6c-.2.2-.5.2-.7 0l-4-4.3c-.2-.2-.5-.2-.7 0l-4 4.4C1.6 14.6 4.7 17 8.5 17c3.7 0 6.8-2.3 8-5.5z"})),_circle2$1||(_circle2$1=reactExports.createElement("circle",{fill:"#CBCDD1",cx:10.9,cy:5.5,r:1.3})))},_circle,_path$D,_circle2;function _extends$2p(){return _extends$2p=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2p.apply(this,arguments)}var SvgColorPickerImgActive=function(eme){return reactExports.createElement("svg",_extends$2p({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",style:{enableBackground:"new 0 0 17 17"},xmlSpace:"preserve",className:"icon"},eme),_circle||(_circle=reactExports.createElement("circle",{fill:"#D4E5FF",cx:8.5,cy:8.5,r:8.5})),_path$D||(_path$D=reactExports.createElement("path",{fill:"#6E9DFF",d:"m16.5 11.5-3.2-3c-.2-.2-.5-.2-.7 0l-2.8 2.6c-.2.2-.5.2-.7 0l-4-4.3c-.2-.2-.5-.2-.7 0l-4 4.4C1.6 14.6 4.7 17 8.5 17c3.7 0 6.8-2.3 8-5.5z"})),_circle2||(_circle2=reactExports.createElement("circle",{fill:"#6E9DFF",cx:10.9,cy:5.5,r:1.3})))};registerIcon("checkbox-check",SvgCheckboxCheck);registerIcon("checkbox",SvgCheckbox$1);registerIcon("code",SvgCode$2);registerIcon("component",SvgComponent);registerIcon("global",SvgGlobal);registerIcon("custom",SvgCustom$1);registerIcon("lock",SvgLock);registerIcon("unlock",SvgUnlock);registerIcon("italic",SvgItalic);registerIcon("underline",SvgUnderline);registerIcon("line-through",SvgLineThrough);registerIcon("text-align-left",SvgTextLeft);registerIcon("text-align-center",SvgTextCenter);registerIcon("text-align-right",SvgTextRight);registerIcon("text-align-justify",SvgTextJustify);registerIcon("vertical-align-top",SvgVerticalTop);registerIcon("vertical-align-middle",SvgVerticalMiddle);registerIcon("vertical-align-bottom",SvgVerticalBottom);registerIcon("add-button",SvgAddButton);registerIcon("delete-button",SvgDeleteButton);registerIcon("color-picker-img",SvgColorPickerImg);registerIcon("color-picker-img-active",SvgColorPickerImgActive);var POSITION_MAP=["left top","center top","right top","left center","center center","right center","left bottom","center bottom","right bottom"];function findColor(x_,eme){var $P={label:x_,value:x_};if(typeof x_=="string"&&(x_==null?void 0:x_.indexOf("var"))===0){var tme=findTree(eme,function(ame){return ame.value===x_});tme?$P={label:"".concat(tme.label,"-").concat(tme.realValue),value:tme.realValue}:x_.includes("--colors-")||($P={label:i18n("a4f758412c3797290c957544c56db443"),value:x_})}return x_==="transparent"&&($P={label:i18n("1110ba0bda5a251c55247f122e923848"),value:"transparent"}),x_==="custom"&&($P={label:i18n("d8a4e8cdc29e9aa576e669ed165892c9"),value:"transparent"}),x_==="inherit"&&($P={label:i18n("a4f758412c3797290c957544c56db443"),value:x_}),$P}function ThemeColorList(x_){var eme,$P=x_.themeList,tme=x_.onChange,ame=x_.value,nme=x_.data,rme=x_.itemName,ime=x_.state,ome=x_.editorThemePath,lme=x_.editorInheritValue||getInheritValue(ome,nme),sme=ime&&ime!=="default"?"inherit":"var(".concat((eme=nme==null?void 0:nme.default)===null||eme===void 0?void 0:eme.token).concat(rme,")"),cme=__read$3(reactExports.useState(cloneDeep$1($P||[])),2),dme=cme[0],ume=cme[1],fme=__read$3(reactExports.useState(!0),2),pme=fme[0],hme=fme[1];function bme(vme){tme(setInheritData(vme,lme))}function mme(vme){var gme=cloneDeep$1($P||[]),yme=!1;vme?eachTree$1(gme,function(_me,$me,Cme,Sme){var Eme,xme,Tme,Ome,Rme,Nme;_me.children&&(_me.show=((Eme=_me.label)===null||Eme===void 0?void 0:Eme.includes(vme))||((xme=_me.value)===null||xme===void 0?void 0:xme.includes(vme))),Sme&&(!((Tme=Sme[Cme-2])===null||Tme===void 0)&&Tme.show)?_me.show=!0:_me.show=((Ome=_me.value)===null||Ome===void 0?void 0:Ome.includes(vme))||((Rme=_me.realValue)===null||Rme===void 0?void 0:Rme.includes(vme))||((Nme=_me.label)===null||Nme===void 0?void 0:Nme.includes(vme)),_me.show&&(yme=!0)}):yme=!0,hme(yme),ume(gme)}return jsxs("div",{className:"ThemeColorList",children:[jsxs("div",{className:"ThemeColorList-content ThemeColorList-content--top",children:[jsx("div",{className:"ThemeColorList-content-title",children:i18n("aa05fd09a619ddbf07d8d903e6d32c5e")}),jsxs("div",{className:"ThemeColorList-content-labels",children:[jsx(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:{children:function(){return jsx("div",{children:i18n("ee5841a88da34c5a0e0515c4d863752a")})}},children:jsx("div",{className:cx$1("ThemeColorList-content-label",ame==="transparent"&&"ThemeColorList-content-label--active"),onClick:function(){return bme("transparent")},children:jsx("div",{className:cx$1("ThemeColorList-content-label-inner","ThemeColor--transparent")})})}),jsx(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:{children:function(){return jsx("div",{children:i18n("d81bb206a889656035b929cd8bb1ef10")})}},children:jsx("div",{className:cx$1("ThemeColorList-content-label"),onClick:function(){return bme(void 0)},children:jsx("div",{className:"ThemeColorList-content-label-inner",children:jsx("div",{className:"ThemeColor--delete"})})})}),nme!=null&&nme.state&&nme.state!=="default"||ime&&ime!=="default"?jsx(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:{children:function(){return jsx("div",{children:i18n("a4f758412c3797290c957544c56db443")})}},children:jsx("div",{className:cx$1("ThemeColorList-content-label",ame===sme&&"ThemeColorList-content-label--active"),onClick:function(){return bme(sme)},children:jsx("div",{className:cx$1("ThemeColorList-content-label-inner","ThemeColor--transparent"),children:jsx("div",{className:"ThemeColorList-content-label-inner",style:{background:sme}})})})}):null]}),jsx("div",{className:"ThemeColorList-content--search",children:jsx(SearchBox$1,{placeholder:i18n("517c1de3f9f069c1c33003ec8d75c3da"),onChange:mme})})]}),pme?dme==null?void 0:dme.map(function(vme,gme){var yme,_me,$me=vme.show;return(yme=vme.children)===null||yme===void 0||yme.forEach(function(Cme){var Sme;(Sme=Cme.children)===null||Sme===void 0||Sme.forEach(function(Eme){Eme.show!==!1&&($me=!0)})}),$me?jsxs("div",{children:[jsx("div",{className:"ThemeColorList-title",children:i18n(vme.label)}),(_me=vme.children)===null||_me===void 0?void 0:_me.map(function(Cme,Sme){var Eme,xme,Tme=Cme.show;return(Eme=Cme.children)===null||Eme===void 0||Eme.forEach(function(Ome){Ome.show!==!1&&(Tme=!0)}),Tme?jsxs("div",{className:"ThemeColorList-content",children:[jsx("div",{className:"ThemeColorList-content-title",children:i18n(Cme.label)}),jsx("div",{className:"ThemeColorList-content-labels",children:(xme=Cme.children)===null||xme===void 0?void 0:xme.map(function(Ome,Rme){return Ome.show!==!1?jsx(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:{children:function(){return jsx("div",{children:"".concat(i18n(Ome.label),"-").concat(Ome.realValue)})}},children:jsx("div",{className:cx$1("ThemeColorList-content-label",ame===Ome.value&&"ThemeColorList-content-label--active"),onClick:function(){return bme(Ome.value)},children:jsx("div",{className:cx$1("ThemeColorList-content-label-inner",Ome.realValue==="#ffffff"&&"ThemeColorList-content-label--border"),style:{background:Ome.value}})})},Rme):null})})]},Sme):null})]},gme):null}):jsx("span",{className:"ThemeColorList-content-title",children:i18n("d6a80fc3f53d0b11e5f96a538b096c06")})]})}function CustomColor(x_){var eme=x_.value,$P=x_.onChange,tme=x_.themeList;if((eme==null?void 0:eme.indexOf("var"))===0){var ame=findColor(eme,tme).value;eme=ame}return jsx("div",{className:"Theme-CustomColor",children:jsx(SketchPicker,{width:"216px",color:eme,presetColors:[],onChangeComplete:function(nme){if(nme.rgb.a===1)$P(nme.hex);else{var rme=nme.rgb;$P("rgba(".concat(rme.r,", ").concat(rme.g,", ").concat(rme.b,", ").concat(rme.a,")"))}}})})}function GradientColor(x_){var eme,$P=reactExports.useRef(null),tme=reactExports.useRef(null),ame=reactExports.useRef(null),nme=x_.value,rme=x_.onChange,ime=x_.themeList,ome=__read$3(reactExports.useState([]),2),lme=ome[0],sme=ome[1],cme=__read$3(reactExports.useState(0),2),dme=cme[0],ume=cme[1],fme=__read$3(reactExports.useState(0),2),pme=fme[0],hme=fme[1],bme=__read$3(reactExports.useState(!1),2),mme=bme[0],vme=bme[1],gme=__read$3(reactExports.useState(!1),2),yme=gme[0],_me=gme[1],$me=dme;function Cme(kme){var Bme=/linear-gradient\((.*)\)/.exec(kme);if(!Bme)return{colors:[],range:0};Bme=Bme[1];var Dme=!1,jme=Bme.length,Vme=[],Wme=0;Vme[Wme]="";for(var Lme=0;Lme<jme;Lme++){var zme=Bme[Lme];zme==="("&&(Dme=!0),zme===")"&&(Dme=!1),zme===","&&!Dme?(Wme++,Vme[Wme]=""):Vme[Wme]+=zme}var Ume=parseFloat(Vme.shift()),Gme=Vme.length,Jme=[];return Vme.forEach(function(Yme,Qme){var Xme=/(.*) (.*)/.exec(Yme),Kme={color:findColor(Xme[1],ime).value,position:(Qme+1)/Gme*100};Xme[2]&&(Kme.position=parseFloat(Xme[2])),Jme.push(Kme)}),{colors:Jme,range:Ume}}reactExports.useEffect(function(){if((nme==null?void 0:nme.indexOf("linear-gradient"))===0){var kme=Cme(nme),Bme=kme.colors,Dme=kme.range;sme(Bme),hme(Dme)}else{var jme=nme;(nme==null?void 0:nme.indexOf("url"))===0&&(jme="#fff"),sme([{color:jme||"#fff",position:0},{color:jme||"#fff",position:100}])}},[nme]);function Sme(kme,Bme){rme("linear-gradient(".concat(kme,"deg,").concat(Bme.map(function(Dme){return"".concat(Dme.color," ").concat(Dme.position,"%")}).join(","),")"))}function Eme(kme){hme(kme),Sme(kme,lme)}function xme(kme){if(!yme){var Bme=kme.currentTarget.getBoundingClientRect(),Dme=Math.round((kme.clientX-Bme.x)/Bme.width*100),jme=cloneDeep$1(lme),Vme=jme.length,Wme=0;if(jme[0].position>Dme)jme.unshift({color:jme[0].color,position:Dme});else if(jme[Vme-1].position<Dme)jme.push({color:jme[Vme-1].color,position:Dme}),Wme=Vme;else for(var Lme=0;Lme<Vme;Lme++)if(jme[Lme].position<Dme&&jme[Lme+1].position>Dme){Wme=Lme+1,jme.splice(Wme,0,{color:jme[Lme].color,position:Dme});break}sme(jme),ume(Wme),Sme(pme,jme)}}function Tme(kme,Bme){ume(Bme),_me(!0),$me=Bme,window.addEventListener("mousemove",Ome),window.addEventListener("mouseup",Rme)}function Ome(kme){var Bme=$P.current.getBoundingClientRect(),Dme=Math.round((kme.x-Bme.x)/Bme.width*100),jme=cloneDeep$1(lme);if(Math.abs(kme.y-Bme.y)>30&&jme.length>2)jme.splice($me,1),ume(0),sme(jme),Sme(pme,jme);else if(Dme>=0&&Dme<=100){if(jme[$me].position=Dme,jme[$me-1]&&Dme<jme[$me-1].position){var Vme=cloneDeep$1(jme[$me-1]);jme[$me-1]=cloneDeep$1(jme[$me]),jme[$me]=Vme,ume($me-1)}else if(jme[$me+1]&&Dme>jme[$me+1].position){var Vme=cloneDeep$1(jme[$me+1]);jme[$me+1]=cloneDeep$1(jme[$me]),jme[$me]=Vme,ume($me+1)}sme(jme),Sme(pme,jme)}}function Rme(){window.removeEventListener("mousemove",Ome),window.removeEventListener("mouseup",Rme),setTimeout(function(){_me(!1)},0)}function Nme(kme){kme===void 0&&(kme=0);var Bme=Math.PI/180*kme,Dme=21+Math.sin(Bme)*25,jme=21-Math.cos(Bme)*25;return{left:Dme,top:jme}}function Ime(){window.addEventListener("mousemove",Pme),window.addEventListener("mouseup",Mme)}function Pme(kme){var Bme=ame.current.getBoundingClientRect(),Dme=Bme.x+25,jme=Bme.y+25,Vme=Math.abs(kme.x-Dme),Wme=Math.abs(kme.y-jme),Lme=Math.round(Math.atan(Vme/Wme)*180/Math.PI);kme.y>jme&&kme.x>Dme&&(Lme=180-Lme),kme.x<=Dme&&kme.y>jme&&(Lme=180+Lme),kme.x<Dme&&kme.y<jme&&(Lme=360-Lme),hme(Lme),Sme(Lme,lme)}function Mme(){window.removeEventListener("mousemove",Pme),window.removeEventListener("mouseup",Mme)}return jsxs("div",{className:"Theme-GradientColor",children:[jsxs("div",{className:"Theme-GradientColor-slider",children:[jsx("div",{ref:$P,className:"Theme-GradientColor-slider-inner",style:{backgroundImage:"linear-gradient(to right,".concat(lme.map(function(kme){return"".concat(kme.color," ").concat(kme.position,"%")}).join(","),")")},onClick:xme,children:lme.map(function(kme,Bme){return jsx("div",{className:cx$1("Theme-GradientColor-slider-inner-item",Bme===dme&&"Theme-GradientColor-slider-inner-item--active"),onMouseDown:function(Dme){Tme(Dme,Bme)},onClick:function(Dme){Dme.stopPropagation()},style:{left:"calc(".concat(kme.position,"% - 7px)"),background:kme.color}},Bme)})}),jsxs("div",{className:"Theme-GradientColor-range",ref:tme,onClick:function(kme){vme(!0),kme.stopPropagation(),window.addEventListener("click",function(){vme(!1)})},children:[jsx(NumberInput$1,{formatter:function(kme){return kme+"°"},max:360,min:0,value:pme,onChange:Eme}),jsx(Overlay,{container:document.body,target:tme.current,show:mme,placement:"center-bottom-center-top",rootClose:!1,offset:[0,4],children:jsx(PopOver$1,{children:jsxs("div",{className:"Theme-GradientColor-range-panel",children:[jsx("div",{className:"Theme-GradientColor-range-panel-title",children:i18n("c7706039e8ad85969df13ce3458d199a")}),jsx("div",{className:"Theme-GradientColor-range-panel-content",ref:ame,children:jsx("div",{className:"Theme-GradientColor-range-panel-content-handler",onMouseDown:Ime,style:{left:Nme(pme).left+"px",top:Nme(pme).top+"px"}})})]})})})]})]}),jsx(SketchPicker,{width:"216px",color:(eme=lme[dme])===null||eme===void 0?void 0:eme.color,presetColors:[],onChangeComplete:function(kme){var Bme=kme.hex;if(kme.rgb.a!==1){var Dme=kme.rgb;Bme="rgba(".concat(Dme.r,", ").concat(Dme.g,", ").concat(Dme.b,", ").concat(Dme.a,")")}var jme=cloneDeep$1(lme);jme[dme].color=Bme,sme(jme),Sme(pme,jme)}})]})}function ImageInput(x_){var eme=x_.onChange,$P=x_.value,tme=x_.imageType,ame=x_.receiver,nme=x_.env,rme=__read$3(reactExports.useState(""),2),ime=rme[0],ome=rme[1],lme=__read$3(reactExports.useState("auto"),2),sme=lme[0],cme=lme[1],dme=__read$3(reactExports.useState(4),2),ume=dme[0],fme=dme[1],pme=__read$3(reactExports.useState(""),2),hme=pme[0],bme=pme[1];function mme(){var vme,gme,yme=$P.split(" "),_me=/url\((.*)\)/.exec(yme[0]);if(_me){var $me=_me[1];ome($me);var Cme=$P.replace(_me[0]+" ",""),Sme=Cme.split(" "),Eme=Sme[0]+" "+Sme[1],xme=POSITION_MAP.findIndex(function(Rme){return Rme===Eme});fme(xme),Cme=Cme.replace(Eme+" / ",""),Sme=Cme.split(" ");var Tme=Sme[0];~((vme=Sme[1])===null||vme===void 0?void 0:vme.indexOf("repeat"))&&(Tme+=" "+Sme[1]),~((gme=Sme[1])===null||gme===void 0?void 0:gme.indexOf("100%"))&&(Tme="100% 100% no-repeat"),cme(Tme);var Ome=Cme.replace(Tme+" ","");bme(Ome)}}return reactExports.useEffect(function(){mme()},[$P]),jsxs("div",{className:"Theme-ImageInput",children:[render$2({type:tme||"input-image",receiver:ame,name:"image",onChange:function(vme){vme&&eme("url(".concat(vme,") ").concat(POSITION_MAP[ume]," / ").concat(sme," ").concat(hme))}},{data:{image:ime}},__assign$3({},nme)),jsxs("div",{className:"Theme-ImageInput-func",children:[jsx(EnhancedSelect,{className:":Theme-ImageInput-fill",value:sme,clearable:!1,options:[{label:i18n("21f3929a4484e6e992af64ec1dd3a576"),value:"auto no-repeat"},{label:i18n("0f1fd39145bad43e18f81337e0144c8c"),value:"cover no-repeat"},{label:i18n("e0d76824dfe5e09c7068b44f605266d2"),value:"contain no-repeat"},{label:i18n("e39d3b7a3600d9327221a637f910fc0b"),value:"100% 100% no-repeat"},{label:i18n("e1ff2c83c09f2dc6cc74ae02ab6b8222"),value:"auto repeat"},{label:i18n("7ddd9dbf373f760acfd63778469b5c4b"),value:"auto repeat-x"},{label:i18n("4ab931e0f709f9b493e660156925a113"),value:"auto repeat-y"}],onChange:function(vme){ime&&(vme!=null&&vme.value)&&eme("url(".concat(ime,") ").concat(POSITION_MAP[ume]," / ").concat(vme.value," ").concat(hme))}}),jsx(ImagePosition,{value:ume,onChange:function(vme){eme("url(".concat(ime,") ").concat(POSITION_MAP[vme]," / ").concat(sme," ").concat(hme))}}),jsx(ImageColor,{...__assign$3({},x_,{value:hme,onChange:function(vme){eme("url(".concat(ime,") ").concat(POSITION_MAP[ume]," / ").concat(sme," ").concat(vme))}})})]})]})}function ImagePosition(x_){var eme=x_.value,$P=x_.onChange,tme=Array.from(Array(9).keys()),ame=__read$3(reactExports.useState(!1),2),nme=ame[0],rme=ame[1],ime=reactExports.useRef(null);function ome(){rme(!1)}function lme(sme){$P(sme)}return jsxs(Fragment,{children:[jsx("div",{className:"Theme-ImageInput-position",ref:ime,onClick:function(){rme(!0)},children:tme.map(function(sme){return jsx("div",{className:cx$1("Theme-ImageInput-position-item",eme===sme&&"Theme-ImageInput-position-item--active")},sme)})}),jsx(Overlay,{container:document.body,target:ime.current,show:nme,offset:[0,4],children:jsx(PopOver$1,{overlay:!0,onHide:ome,children:jsxs("div",{className:"Theme-ImageInput-position-container",children:[jsx("div",{className:"Theme-ImageInput-position-title",children:i18n("61a87a021904dc65995e99d4c476cb21")}),jsx("div",{className:"Theme-ImageInput-position-content",children:tme.map(function(sme){return jsx("div",{className:cx$1("Theme-ImageInput-position-content-item",eme===sme&&"Theme-ImageInput-position-content-item--active"),onClick:function(){lme(sme)}},sme)})})]})})})]})}function ImageColor(x_){var eme=x_.value,$P=x_.onChange,tme=x_.themeList,ame=x_.subTabList,nme=__read$3(reactExports.useState(!1),2),rme=nme[0],ime=nme[1],ome=__read$3(reactExports.useState(0),2),lme=ome[0],sme=ome[1],cme=reactExports.useRef(null);function dme(){ime(!1)}function ume(fme){sme(fme)}return reactExports.useEffect(function(){~eme.indexOf("var")?sme(0):sme(1)},[eme]),jsxs(Fragment,{children:[jsx("div",{ref:cme,className:"Theme-ImageInput-color",style:{background:eme},onClick:function(){ime(!0)}}),jsx(Overlay,{container:document.body,target:cme.current,show:rme,offset:[0,4],children:jsx(PopOver$1,{overlay:!0,onHide:dme,children:jsx("div",{className:"Theme-ImageInput-color-container",children:jsxs("div",{className:"Theme-ImageInput-color-content",children:[jsx("div",{className:"Theme-ImageInput-color-content-tab",children:ame.map(function(fme){return jsx("div",{className:cx$1("Theme-ImageInput-color-content-tab-item",lme===fme.id&&"Theme-ImageInput-color-content-tab-item--active"),onClick:function(){ume(fme.id)},children:fme.name},fme.id)})}),lme===0?jsx(ThemeColorList,{...__assign$3({},x_,{themeList:tme,onChange:function(fme){$P(fme),dme()},value:eme})}):null,lme===1?jsx(CustomColor,{onChange:$P,value:eme,themeList:tme}):null]})})})})]})}function PresetColors(x_){var eme=x_.themeList,$P=x_.onChange,tme=x_.onRef,ame=x_.needGradient,nme=x_.needImage,rme=x_.needTheme,ime=x_.needCustom,ome=__read$3(reactExports.useState({colors:[],linearGradient:[],img:[]}),2),lme=ome[0],sme=ome[1],cme=__read$3(reactExports.useState(!1),2),dme=cme[0],ume=cme[1];function fme(bme){if(bme){var mme=cloneDeep$1(lme);if(~bme.indexOf("linear-gradient"))mme.linearGradient.length<8&&!lme.linearGradient.find(function(gme){return gme.color===bme})&&mme.linearGradient.unshift({color:bme,title:bme});else{if(~bme.indexOf("url"))return;if(mme.colors.length<8&&!lme.colors.find(function(gme){return gme.color===bme})){var vme=void 0;bme.indexOf("var(")===0&&(vme=findColor(bme,eme).label),mme.colors.unshift({color:bme,title:vme})}}localStorage.setItem("presetColors",JSON.stringify(mme)),sme(mme)}}reactExports.useImperativeHandle(tme,function(){return{setPresetColor:debounce$6(fme,500)}}),reactExports.useEffect(function(){var bme;try{bme=JSON.parse(localStorage.getItem("presetColors")||"")}catch{bme={colors:[],linearGradient:[],img:[]}}sme(bme)},[]);function pme(bme){return bme.colors.length+bme.linearGradient.length+bme.img.length}function hme(bme,mme,vme){if(dme){var gme=cloneDeep$1(lme);gme[vme].splice(mme,1),sme(gme),localStorage.setItem("presetColors",JSON.stringify(gme)),pme(gme)===0&&ume(!1)}else $P(bme)}return jsxs("div",{className:"Theme-ColorSelect-PresetColors",children:[jsxs("div",{className:"Theme-ColorSelect-PresetColors-header",children:[jsx("span",{className:"Theme-ColorSelect-PresetColors-title",children:i18n("7778401c65bfef9c0ad4d543e3b5b310")}),pme(lme)>0?jsx("span",{className:cx$1("Theme-ColorSelect-PresetColors-edit",dme&&"Theme-ColorSelect-PresetColors-editing"),onClick:function(){ume(!dme)},children:i18n(dme?"769d88e425e03120b83ee4ed6b9d588e":"95b351c86267f3aedf89520959bce689")}):null]}),jsx("div",{children:pme(lme)>0?Object.keys(lme).map(function(bme){return!ame&&bme==="linearGradient"||!nme&&bme==="img"||!rme&&!ime&&bme==="colors"?null:lme[bme].length>0?jsx("div",{className:cx$1("Theme-ColorSelect-PresetColors-content",dme&&"Theme-ColorSelect-PresetColors-content-editing"),children:lme[bme].map(function(mme,vme){return jsx(TooltipWrapper$1,{trigger:"hover",placement:"left",tooltip:{children:function(){return jsx("div",{children:mme.title||mme.color})}},container:document.body,children:jsx("div",{className:"ThemeColor--transparent Theme-ColorPicker-label-out",onClick:function(){hme(mme.color,vme,bme)},children:jsx("div",{style:{background:mme.color},className:"Theme-ColorSelect-PresetColors-content-item"})})},mme.color)})},bme):null}):jsx("span",{className:"Theme-ColorSelect-PresetColors-content-placeholder",children:i18n("ec8baa57611b5a89a37b31c7432a01d7")})})]})}function ColorSelect(x_){var eme=x_.show,$P=x_.target,tme=x_.themeList,ame=x_.onChange,nme=x_.close,rme=x_.value,ime=x_.needGradient,ome=x_.needImage,lme=x_.needTheme,sme=x_.needCustom,cme=__read$3(reactExports.useState("color"),2),dme=cme[0],ume=cme[1],fme=__read$3(reactExports.useState(0),2),pme=fme[0],hme=fme[1],bme=reactExports.useRef(),mme={color:{name:"color"}};ime&&(mme.gradient={name:"gradient"}),ome&&(mme.img={name:"img",icon:jsx(Icon$1,{icon:"color-picker-img"}),activeIcon:jsx(Icon$1,{icon:"color-picker-img-active"})});var vme=[lme&&tme&&tme.length>0&&{name:i18n("a1c76c6e1bd796959e536718e04d10ca"),parent:"color",id:0},sme&&{name:i18n("255f442c4a1b92624a6e96541202a0be"),parent:"color",id:1}].filter(function($me){return $me});function gme(){lme&&rme.indexOf("#")!==0&&rme.indexOf("rgba")!==0&&vme.find(function($me){return $me.id===0})?hme(0):sme&&vme.find(function($me){return $me.id===1})&&hme(1)}reactExports.useEffect(function(){lme&&((rme==null?void 0:rme.indexOf("var"))===0||rme==="transparent"||!rme)&&vme.find(function($me){return $me.id===0})?(ume("color"),hme(0)):ime&&(rme==null?void 0:rme.indexOf("linear-gradient"))===0?ume("gradient"):ome&&(rme==null?void 0:rme.indexOf("url"))===0?ume("img"):sme&&vme.find(function($me){return $me.id===1})&&(ume("color"),hme(1))},[eme]),reactExports.useEffect(function(){lme?hme(0):sme&&hme(1)},[sme,lme]);function yme($me){var Cme;ame($me),(Cme=bme.current)===null||Cme===void 0||Cme.setPresetColor($me)}function _me(){var $me=vme.filter(function(Cme){return Cme.parent===dme});return $me.length>0?jsx("div",{className:"Theme-ColorSelect-tab-sub",children:$me.map(function(Cme){return jsx("div",{className:cx$1("Theme-ColorSelect-tab-sub-item",pme===Cme.id&&"Theme-ColorSelect-tab-sub--active"),onClick:function(){return hme(Cme.id)},children:Cme.name},Cme.id)})}):null}return jsx(Overlay,{container:document.body,target:$P.current,show:eme,placement:"left",children:jsx(PopOver$1,{overlay:!0,onHide:nme,children:jsxs("div",{className:"Theme-ColorSelect",children:[Object.keys(mme).length>1?jsx("div",{className:"Theme-ColorSelect-tab",children:Object.keys(mme).map(function($me){return jsx("div",{className:cx$1("Theme-ColorSelect-tab-"+$me,dme===$me&&"Theme-ColorSelect-tab-".concat($me,"--active")),onClick:function(){ume($me),gme()},children:dme===$me?mme[$me].activeIcon:mme[$me].icon},$me)})}):null,_me(),jsxs("div",{className:"Theme-ColorSelect-content",children:[dme==="color"?jsxs("div",{className:"Theme-ColorSelect-content-color",children:[pme===0?jsx(ThemeColorList,{...__assign$3({},x_,{themeList:tme,onChange:yme,value:rme})}):null,pme===1?jsx(CustomColor,{onChange:yme,value:rme,themeList:tme}):null]}):null,dme==="gradient"?jsx(GradientColor,{value:rme,onChange:yme,themeList:tme}):null,dme==="img"?jsx(ImageInput,{...__assign$3({},x_,{value:rme,onChange:yme,subTabList:vme})}):null,jsx(PresetColors,{onRef:bme,onChange:yme,themeList:tme,needGradient:ime,needImage:ome,needTheme:lme,needCustom:sme})]})]})})})}function ColorPicker(x_){var eme,$P=x_.value,tme=x_.options,ame=x_.data,nme=x_.onChange,rme=x_.labelMode,ime=x_.needGradient,ome=x_.needImage,lme=x_.needTheme,sme=x_.needCustom,cme=x_.placeholder,dme=x_.disabled,ume=x_.readOnly,fme=tme;typeof tme=="string"&&(fme=resolveVariableAndFilter(tme,ame,"| raw"));var pme=reactExports.useRef(null),hme=reactExports.useRef(null),bme=__read$3(reactExports.useState($P),2),mme=bme[0],vme=bme[1],gme=__read$3(reactExports.useState(!1),2),yme=gme[0],_me=gme[1];function $me(){!dme&&_me(!yme)}function Cme(Sme){vme(void 0),nme(void 0),Sme.preventDefault(),Sme.stopPropagation()}return reactExports.useEffect(function(){vme($P)},[$P]),jsxs("div",{className:cx$1("Theme-ColorPicker",dme&&"is-disabled",ume&&"is-readOnly"),ref:pme,children:[jsxs("div",{className:cx$1("Theme-ColorPicker",rme==="input"&&"Theme-ColorPicker--input"),onClick:$me,ref:hme,children:[jsx("div",{className:"ThemeColor--transparent Theme-ColorPicker-label-out",children:findColor(mme||cme,fme).value?jsx(TooltipWrapper$1,{trigger:"hover",placement:"left",disabled:rme==="input",tooltip:{children:function(){return jsx("div",{children:findColor(mme||cme,fme).label})}},children:jsx("div",{className:cx$1("Theme-ColorPicker-label"),style:{background:findColor(mme||cme,fme).value}})}):jsx("div",{className:"ThemeColor--delete"})}),rme==="input"?jsxs(Fragment,{children:[jsx("div",{className:cx$1("Theme-ColorPicker-input"),children:mme?jsx("div",{children:findColor(mme,fme).label}):jsx("div",{className:cx$1("Theme-ColorPicker-input--placeholder"),children:((eme=findColor(cme,fme))===null||eme===void 0?void 0:eme.label)||cme})}),$P&&!dme&&!ume?jsx("span",{className:classnames$2("Select-clear"),onClick:Cme,children:jsx(Icon$1,{icon:"input-clear",className:"icon"})}):null,jsx("span",{className:cx$1("Theme-ColorPicker-arrow",yme&&"Theme-ColorPicker-arrow--active"),children:jsx(Icon$1,{icon:"right-arrow-bold",className:"icon"})})]}):null]}),jsx(ColorSelect,{...__assign$3({},x_,{needGradient:ime??!1,needImage:ome??!1,needTheme:lme??!0,needCustom:sme??!1,value:$P||cme||"",show:yme,close:function(){_me(!1)},container:pme,target:hme,themeList:fme,onChange:nme})})]})}function ColorPickerControl(x_){var eme,$P=getValueByPath(x_.editorThemePath||"",x_.data),tme=formatInheritData(x_.value)||$P;return jsx(Fragment,{children:jsx(ColorPicker,{...__assign$3({},x_,{placeholder:tme,options:x_.options||x_.data.colorOptions,labelMode:(eme=x_.labelMode)!==null&&eme!==void 0?eme:"default",needGradient:x_.needGradient,needImage:x_.needImage,needTheme:x_.needTheme,needCustom:x_.needCustom})})})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P;return jsx(ColorPickerControl,{...__assign$3({},this.props,{labelMode:($P=this.props.labelMode)!==null&&$P!==void 0?$P:"default",needGradient:this.props.needGradient,needImage:this.props.needImage,needTheme:this.props.needTheme,needCustom:this.props.needCustom})})},eme=__decorate$1([FormItem({type:"amis-theme-color-picker",strictMode:!1,renderLabel:!0})],eme),eme})(React__default.Component);var defaultStyleOptions=[{label:i18n("cc4c575642609fbf059a5df81eb86bfc"),value:"solid",realValue:"solid"},{label:i18n("61f6f4fc0b806ac9d41ad0792e6155f6"),value:"dashed",realValue:"dashed"},{label:i18n("b1e0ebac23ed95807ecc566da3ffab48"),value:"dotted",realValue:"dotted"}],defaultBorderWidthOptions=[{value:"none",label:i18n("d81bb206a889656035b929cd8bb1ef10"),realValue:"none"},{value:"1px",label:"1px",realValue:"1px"},{value:"2px",label:"2px",realValue:"2px"},{value:"4px",label:"4px",realValue:"4px"}],borderItems$1=[{item:"top",tip:i18n("e0dfa25ebceabddb2180720d36d4c3b6")},{item:"all",tip:i18n("a8b0c20416853bda54120bf19477ad11")},{item:"left",tip:i18n("a80a25b59908402cf7ee31a07d0e7739")},{item:"right",tip:i18n("57463587977a534f7859eb9d7c536629")},{item:"bottom",tip:i18n("154d5216e42c916884431f0eea951999")}];function BoxBorder$1(x_){var eme=x_.onChange,$P=x_.value,tme=$P===void 0?{}:$P,ame=x_.data,nme=x_.custom,rme=x_.label,ime=x_.needColorCustom,ome=x_.state,lme=x_.editorThemePath,sme=__read$3(reactExports.useState(cloneDeep$1(x_.borderWidthOptions||ame.borderWidthOptions||defaultBorderWidthOptions)),2),cme=sme[0];sme[1];var dme=__read$3(reactExports.useState(cloneDeep$1(x_.borderStyleOptions||ame.borderStyleOptions||defaultStyleOptions)),2),ume=dme[0],fme=dme[1],pme=__read$3(reactExports.useState(cloneDeep$1(x_.colorOptions||ame.colorOptions)),2),hme=pme[0];pme[1];var bme=__read$3(reactExports.useState("all"),2),mme=bme[0],vme=bme[1],gme=$me(getValueByPath(lme,ame)),yme=getInheritValue(lme,ame),_me=$me(tme||{});reactExports.useEffect(function(){var Tme;if(ome&&ome!=="default"){var Ome=mme==="all"?"top":mme,Rme=cloneDeep$1(ume);Rme[0].parent?(Rme[0].value=lme?"inherit":"var(".concat(ame.default.token).concat(Ome,"-border-style)"),Rme[0].realValue=i18n("a4f758412c3797290c957544c56db443")):Rme.unshift({label:i18n("a4f758412c3797290c957544c56db443"),value:lme?"inherit":"var(".concat((Tme=ame==null?void 0:ame.default)===null||Tme===void 0?void 0:Tme.token).concat(Ome,"-border-style)"),parent:!0,realValue:i18n("a4f758412c3797290c957544c56db443")}),fme(Rme)}},[mme]);function $me(Tme){if(!Tme)return null;var Ome=formatInheritData(cloneDeep$1(Tme)),Rme=function(Nme){Ome["top-border-".concat(Nme)]===Ome["right-border-".concat(Nme)]&&Ome["right-border-".concat(Nme)]===Ome["bottom-border-".concat(Nme)]&&Ome["bottom-border-".concat(Nme)]===Ome["left-border-".concat(Nme)]?Ome["all-border-".concat(Nme)]=Ome["top-border-".concat(Nme)]:Ome["all-border-".concat(Nme)]="custom"};return Rme("width"),Rme("style"),Rme("color"),Ome}function Cme(Tme,Ome){if(Tme==="inherit")return i18n("a4f758412c3797290c957544c56db443");var Rme=Ome==null?void 0:Ome.find(function(Nme){return Nme.value===Tme});return Rme?Rme.label:Tme}function Sme(Tme){return"".concat(mme,"-border-").concat(Tme)}function Eme(Tme){vme(Tme)}function xme(Tme){return function(Ome){var Rme,Nme=Sme(Tme);if(Ome!=="custom"){var Ime={};if(mme==="all"){var Pme={},Mme=borderItems$1.filter(function(kme){return(kme==null?void 0:kme.item)!=="all"});Mme.forEach(function(kme){var Bme="".concat(kme.item,"-border-").concat(Tme);Pme[Bme]=Ome}),Ime=__assign$3(__assign$3({},tme),Pme)}else Ime=__assign$3(__assign$3({},tme),(Rme={},Rme[Nme]=Ome,Rme));eme(setInheritData(Ime,yme))}}}return jsxs("div",{className:"Theme-Border",children:[rme?jsx("div",{className:"Theme-Border-label",children:rme}):null,jsxs("div",{className:"Theme-Border-content",children:[nme?jsx("div",{className:"Theme-Border-items",children:borderItems$1.map(function(Tme){var Ome="border-".concat(Tme.item);return jsx("div",{className:cx$1("Theme-Border-item Theme-Border-item--".concat(Tme.item),{"Theme-Border-item--active":mme===Tme.item}),onClick:function(){return Eme(Tme.item)},children:jsx("span",{"data-tooltip":Tme.tip,"data-position":"top"})},Ome)})}):jsx("div",{className:"Theme-Border-all"}),jsxs("div",{className:cx$1("Theme-Border-settings",!nme&&"Theme-Border-settings--all"),children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:cme,value:_me[Sme("width")],onChange:function(Tme){return xme("width")(Tme)},itemName:"".concat(mme==="all"?"top":mme,"-border-width"),state:ome,inheritValue:lme?"inherit":"",placeholder:gme==null?void 0:gme[Sme("width")]})}),jsxs("div",{className:"Theme-Border-settings-style-color",children:[jsx(EnhancedSelect,{options:ume,value:_me[Sme("style")],placeholder:Cme(gme==null?void 0:gme[Sme("style")],ume),onChange:function(Tme){return xme("style")(Tme.value)},clearable:!!gme,renderMenu:function(Tme){return Tme.realValue==="none"?jsx("span",{children:i18n("d81bb206a889656035b929cd8bb1ef10")}):Tme.parent?jsx("span",{children:Tme.label}):jsxs("div",{className:"Theme-Border-style",children:[jsx("div",{className:"Theme-Border-style-line",style:{borderStyle:Tme.realValue}}),jsx("span",{children:i18n(Tme.label)})]})},renderValueLabel:function(Tme){return Tme.realValue==="none"?jsx("span",{children:i18n("d81bb206a889656035b929cd8bb1ef10")}):Tme.parent?jsx("span",{children:Tme.label}):jsx("div",{className:"Theme-Border-style",children:jsx("div",{className:"Theme-Border-style-line",style:{borderStyle:Tme.realValue}})})}}),jsx(ColorPicker,{...__assign$3({},x_,{value:_me[Sme("color")],options:hme,onChange:xme("color"),needCustom:ime??!1,needTheme:!0,itemName:"".concat(mme==="all"?"top":mme,"-border-color"),placeholder:gme==null?void 0:gme[Sme("color")]})})]})]})]})]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P;return jsx(BoxBorder$1,{...__assign$3({},this.props,{custom:($P=this.props.custom)!==null&&$P!==void 0?$P:!0})})},eme=__decorate$1([FormItem({type:"amis-theme-border",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);var radiusItems$1=[{item:"top-left",tip:i18n("df68a5dc8f8847179b7afdf943f80796")},{item:"top-right",tip:i18n("e717b4ae480e7c073fd5a44647a7f0da")},{item:"bottom-left",tip:i18n("2a97dfb2d236c87c41fd588f006111dc")},{item:"bottom-right",tip:i18n("1c9bc9dab33944e953412f8b22cb024a")}];function BoxRadius(x_){var eme=x_.onChange,$P=x_.value,tme=$P===void 0?{}:$P,ame=x_.data,nme=x_.custom,rme=x_.label,ime=x_.borderRadiusOptions,ome=x_.state,lme=x_.editorThemePath,sme=cloneDeep$1(ime||ame.borderRadiusOptions);typeof ime=="string"&&(sme=resolveVariableAndFilter(ime,ame,"| raw"));var cme=__read$3(reactExports.useState("all"),2),dme=cme[0],ume=cme[1],fme=__read$3(reactExports.useState(!1),2),pme=fme[0],hme=fme[1],bme=gme(getValueByPath(lme,ame)),mme=getInheritValue(lme,ame),vme=gme(tme||{});function gme($me){if(!$me)return null;var Cme=formatInheritData(cloneDeep$1($me));return Cme["top-right-border-radius"]===Cme["top-left-border-radius"]&&Cme["top-left-border-radius"]===Cme["bottom-right-border-radius"]&&Cme["bottom-right-border-radius"]===Cme["bottom-left-border-radius"]?Cme["all-border-radius"]=Cme["top-right-border-radius"]:Cme["all-border-radius"]="custom",Cme}function yme($me){return"".concat($me,"-border-radius")}function _me($me){return function(Cme){var Sme,Eme=yme($me);if(Cme!=="custom"){var xme={};if($me==="all"){var Tme={},Ome=radiusItems$1;Ome.forEach(function(Rme){var Nme="".concat(Rme.item,"-border-radius");if(ome&&ome!=="default"&&(Cme!=null&&Cme.includes("all-border-radius"))){var Ime=function(Pme){return"var(".concat(ame.default.token).concat(Pme,")")};Tme[Nme]=Ime(Nme)}else Tme[Nme]=Cme}),xme=__assign$3(__assign$3({},tme),Tme)}else xme=__assign$3(__assign$3({},tme),(Sme={},Sme[Eme]=Cme,Sme));eme(setInheritData(xme,mme)),hme(!1)}}}return reactExports.useEffect(function(){var $me,Cme,Sme,Eme;ome&&ome!=="default"&&!(($me=tme["top-left-border-radius"])===null||$me===void 0)&&$me.includes("default-top-left-border-radius")&&!((Cme=tme["top-right-border-radius"])===null||Cme===void 0)&&Cme.includes("default-top-right-border-radius")&&!((Sme=tme["bottom-left-border-radius"])===null||Sme===void 0)&&Sme.includes("default-bottom-left-border-radius")&&!((Eme=tme["bottom-right-border-radius"])===null||Eme===void 0)&&Eme.includes("default-bottom-right-border-radius")&&hme(!0)},[tme]),reactExports.useEffect(function(){vme["all-border-radius"]==="custom"&&ume("custom")},[]),jsxs("div",{className:"Theme-Radius",children:[rme?jsx("div",{className:"Theme-Radius-label",children:rme}):null,jsxs("div",{className:"Theme-Radius-inner",children:[jsxs("div",{className:cx$1("Theme-Radius-item",nme&&"Theme-Radius-item--custom"),children:[jsx("div",{className:cx$1("Theme-Radius-item-all",dme==="all"&&"Theme-Radius-item-all--active"),onClick:function(){return ume("all")}}),nme?jsx("div",{className:cx$1("Theme-Radius-item-custom",dme==="custom"&&"Theme-Radius-item-custom--active"),onClick:function(){return ume("custom")}}):null]}),jsx("div",{className:"Theme-Radius-settings",children:jsx(ThemeSelect,{...__assign$3({},x_,{options:sme,value:pme?"var(".concat(ame.default.token,"all-border-radius)"):vme[yme("all")],onChange:_me("all"),extraUnit:["px"],disabled:dme==="custom",itemName:"all-border-radius",state:ome,inheritValue:lme?"inherit":"",placeholder:bme==null?void 0:bme[yme("all")]})})})]}),jsx("div",{className:"Theme-Radius-settings-custom",children:dme==="custom"?radiusItems$1.map(function($me){var Cme=$me.item;return jsxs("div",{className:"Theme-Radius-settings-custom-item",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:sme,value:vme[yme(Cme)],onChange:_me(Cme),extraUnit:["px"],itemName:Cme+"-border-radius",state:ome,inheritValue:lme?"inherit":"",placeholder:bme==null?void 0:bme[yme(Cme)],menuTpl:"realValue"})}),jsx("div",{className:cx$1("Theme-Radius-settings-custom-item-label","Theme-Radius-settings-custom-item-"+Cme)})]},$me.item)}):null})]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P;return jsx(BoxRadius,{...__assign$3({},this.props,{custom:($P=this.props.custom)!==null&&$P!==void 0?$P:!0})})},eme=__decorate$1([FormItem({type:"amis-theme-radius",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);var lodash={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash.exports;(function(x_,eme){(function(){var $P,tme="4.17.21",ame=200,nme="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",rme="Expected a function",ime="Invalid `variable` option passed into `_.template`",ome="__lodash_hash_undefined__",lme=500,sme="__lodash_placeholder__",cme=1,dme=2,ume=4,fme=1,pme=2,hme=1,bme=2,mme=4,vme=8,gme=16,yme=32,_me=64,$me=128,Cme=256,Sme=512,Eme=30,xme="...",Tme=800,Ome=16,Rme=1,Nme=2,Ime=3,Pme=1/0,Mme=9007199254740991,kme=17976931348623157e292,Bme=NaN,Dme=4294967295,jme=Dme-1,Vme=Dme>>>1,Wme=[["ary",$me],["bind",hme],["bindKey",bme],["curry",vme],["curryRight",gme],["flip",Sme],["partial",yme],["partialRight",_me],["rearg",Cme]],Lme="[object Arguments]",zme="[object Array]",Ume="[object AsyncFunction]",Gme="[object Boolean]",Jme="[object Date]",Yme="[object DOMException]",Qme="[object Error]",Xme="[object Function]",Kme="[object GeneratorFunction]",Zme="[object Map]",nbe="[object Number]",lbe="[object Null]",ibe="[object Object]",abe="[object Promise]",obe="[object Proxy]",hbe="[object RegExp]",ube="[object Set]",mbe="[object String]",pbe="[object Symbol]",_be="[object Undefined]",Sbe="[object WeakMap]",vbe="[object WeakSet]",kbe="[object ArrayBuffer]",Rbe="[object DataView]",Pbe="[object Float32Array]",Mbe="[object Float64Array]",Kbe="[object Int8Array]",Qbe="[object Int16Array]",Gbe="[object Int32Array]",Hbe="[object Uint8Array]",d0e="[object Uint8ClampedArray]",p0e="[object Uint16Array]",S0e="[object Uint32Array]",P0e=/\b__p \+= '';/g,e0e=/\b(__p \+=) '' \+/g,_0e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,m0e=/&(?:amp|lt|gt|quot|#39);/g,Ybe=/[&<>"']/g,Jbe=RegExp(m0e.source),c0e=RegExp(Ybe.source),zbe=/<%-([\s\S]+?)%>/g,R0e=/<%([\s\S]+?)%>/g,$0e=/<%=([\s\S]+?)%>/g,u0e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,t0e=/^\w*$/,v0e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L0e=/[\\^$.*+?()[\]{}|]/g,Wbe=RegExp(L0e.source),a0e=/^\s+/,g0e=/\s/,b0e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,y0e=/\{\n\/\* \[wrapped with (.+)\] \*/,A0e=/,? & /,V0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,w0e=/[()=,{}\[\]\/\s]/,T0e=/\\(\\)?/g,$be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ibe=/\w*$/,n0e=/^[-+]0x[0-9a-f]+$/i,f0e=/^0b[01]+$/i,z0e=/^\[object .+?Constructor\]$/,o0e=/^0o[0-7]+$/i,gbe=/^(?:0|[1-9]\d*)$/,Tbe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vbe=/($^)/,Ube=/['\n\r\u2028\u2029\\]/g,x0e="\\ud800-\\udfff",I0e="\\u0300-\\u036f",j0e="\\ufe20-\\ufe2f",O0e="\\u20d0-\\u20ff",G0e=I0e+j0e+O0e,W0e="\\u2700-\\u27bf",i1e="a-z\\xdf-\\xf6\\xf8-\\xff",t1e="\\xac\\xb1\\xd7\\xf7",Ebe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cbe="\\u2000-\\u206f",fbe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ybe="A-Z\\xc0-\\xd6\\xd8-\\xde",Abe="\\ufe0e\\ufe0f",Lbe=t1e+Ebe+Cbe+fbe,Nbe="['’]",Fbe="["+x0e+"]",i0e="["+Lbe+"]",Bbe="["+G0e+"]",Zbe="\\d+",E0e="["+W0e+"]",M0e="["+i1e+"]",B0e="[^"+x0e+Lbe+Zbe+W0e+i1e+ybe+"]",Z0e="\\ud83c[\\udffb-\\udfff]",m1e="(?:"+Bbe+"|"+Z0e+")",$1e="[^"+x0e+"]",f1e="(?:\\ud83c[\\udde6-\\uddff]){2}",w1e="[\\ud800-\\udbff][\\udc00-\\udfff]",b1e="["+ybe+"]",I1e="\\u200d",M1e="(?:"+M0e+"|"+B0e+")",L1e="(?:"+b1e+"|"+B0e+")",pye="(?:"+Nbe+"(?:d|ll|m|re|s|t|ve))?",H1e="(?:"+Nbe+"(?:D|LL|M|RE|S|T|VE))?",Zye=m1e+"?",hye="["+Abe+"]?",Cye="(?:"+I1e+"(?:"+[$1e,f1e,w1e].join("|")+")"+hye+Zye+")*",mye="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qye="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",e2e=hye+Zye+Cye,R2e="(?:"+[E0e,f1e,w1e].join("|")+")"+e2e,I2e="(?:"+[$1e+Bbe+"?",Bbe,f1e,w1e,Fbe].join("|")+")",N2e=RegExp(Nbe,"g"),F0e=RegExp(Bbe,"g"),U0e=RegExp(Z0e+"(?="+Z0e+")|"+I2e+e2e,"g"),C1e=RegExp([b1e+"?"+M0e+"+"+pye+"(?="+[i0e,b1e,"$"].join("|")+")",L1e+"+"+H1e+"(?="+[i0e,b1e+M1e,"$"].join("|")+")",b1e+"?"+M1e+"+"+pye,b1e+"+"+H1e,Qye,mye,Zbe,R2e].join("|"),"g"),T1e=RegExp("["+I1e+x0e+G0e+Abe+"]"),E1e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,h2e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],A2e=-1,g1e={};g1e[Pbe]=g1e[Mbe]=g1e[Kbe]=g1e[Qbe]=g1e[Gbe]=g1e[Hbe]=g1e[d0e]=g1e[p0e]=g1e[S0e]=!0,g1e[Lme]=g1e[zme]=g1e[kbe]=g1e[Gme]=g1e[Rbe]=g1e[Jme]=g1e[Qme]=g1e[Xme]=g1e[Zme]=g1e[nbe]=g1e[ibe]=g1e[hbe]=g1e[ube]=g1e[mbe]=g1e[Sbe]=!1;var p1e={};p1e[Lme]=p1e[zme]=p1e[kbe]=p1e[Rbe]=p1e[Gme]=p1e[Jme]=p1e[Pbe]=p1e[Mbe]=p1e[Kbe]=p1e[Qbe]=p1e[Gbe]=p1e[Zme]=p1e[nbe]=p1e[ibe]=p1e[hbe]=p1e[ube]=p1e[mbe]=p1e[pbe]=p1e[Hbe]=p1e[d0e]=p1e[p0e]=p1e[S0e]=!0,p1e[Qme]=p1e[Xme]=p1e[Sbe]=!1;var e8e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},S_e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x_e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},t8e={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},J_e=parseFloat,Z_e=parseInt,Q_e=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,a8e=typeof self=="object"&&self&&self.Object===Object&&self,B1e=Q_e||a8e||Function("return this")(),E_e=eme&&!eme.nodeType&&eme,Hye=E_e&&!0&&x_&&!x_.nodeType&&x_,x1e=Hye&&Hye.exports===E_e,t2e=x1e&&Q_e.process,z1e=function(){try{var Dbe=Hye&&Hye.require&&Hye.require("util").types;return Dbe||t2e&&t2e.binding&&t2e.binding("util")}catch{}}(),e3e=z1e&&z1e.isArrayBuffer,w_e=z1e&&z1e.isDate,t3e=z1e&&z1e.isMap,a3e=z1e&&z1e.isRegExp,P2e=z1e&&z1e.isSet,Pye=z1e&&z1e.isTypedArray;function U1e(Dbe,r0e,qbe){switch(qbe.length){case 0:return Dbe.call(r0e);case 1:return Dbe.call(r0e,qbe[0]);case 2:return Dbe.call(r0e,qbe[0],qbe[1]);case 3:return Dbe.call(r0e,qbe[0],qbe[1],qbe[2])}return Dbe.apply(r0e,qbe)}function n8e(Dbe,r0e,qbe,D0e){for(var J0e=-1,h1e=Dbe==null?0:Dbe.length;++J0e<h1e;){var k1e=Dbe[J0e];r0e(D0e,k1e,qbe(k1e),Dbe)}return D0e}function N1e(Dbe,r0e){for(var qbe=-1,D0e=Dbe==null?0:Dbe.length;++qbe<D0e&&r0e(Dbe[qbe],qbe,Dbe)!==!1;);return Dbe}function r8e(Dbe,r0e){for(var qbe=Dbe==null?0:Dbe.length;qbe--&&r0e(Dbe[qbe],qbe,Dbe)!==!1;);return Dbe}function J2e(Dbe,r0e){for(var qbe=-1,D0e=Dbe==null?0:Dbe.length;++qbe<D0e;)if(!r0e(Dbe[qbe],qbe,Dbe))return!1;return!0}function Uye(Dbe,r0e){for(var qbe=-1,D0e=Dbe==null?0:Dbe.length,J0e=0,h1e=[];++qbe<D0e;){var k1e=Dbe[qbe];r0e(k1e,qbe,Dbe)&&(h1e[J0e++]=k1e)}return h1e}function Z2e(Dbe,r0e){var qbe=Dbe==null?0:Dbe.length;return!!qbe&&m2e(Dbe,r0e,0)>-1}function T_e(Dbe,r0e,qbe){for(var D0e=-1,J0e=Dbe==null?0:Dbe.length;++D0e<J0e;)if(qbe(r0e,Dbe[D0e]))return!0;return!1}function _1e(Dbe,r0e){for(var qbe=-1,D0e=Dbe==null?0:Dbe.length,J0e=Array(D0e);++qbe<D0e;)J0e[qbe]=r0e(Dbe[qbe],qbe,Dbe);return J0e}function Sye(Dbe,r0e){for(var qbe=-1,D0e=r0e.length,J0e=Dbe.length;++qbe<D0e;)Dbe[J0e+qbe]=r0e[qbe];return Dbe}function O_e(Dbe,r0e,qbe,D0e){var J0e=-1,h1e=Dbe==null?0:Dbe.length;for(D0e&&h1e&&(qbe=Dbe[++J0e]);++J0e<h1e;)qbe=r0e(qbe,Dbe[J0e],J0e,Dbe);return qbe}function i8e(Dbe,r0e,qbe,D0e){var J0e=Dbe==null?0:Dbe.length;for(D0e&&J0e&&(qbe=Dbe[--J0e]);J0e--;)qbe=r0e(qbe,Dbe[J0e],J0e,Dbe);return qbe}function R_e(Dbe,r0e){for(var qbe=-1,D0e=Dbe==null?0:Dbe.length;++qbe<D0e;)if(r0e(Dbe[qbe],qbe,Dbe))return!0;return!1}var n3e=I_e("length");function o8e(Dbe){return Dbe.split("")}function l8e(Dbe){return Dbe.match(V0e)||[]}function r3e(Dbe,r0e,qbe){var D0e;return qbe(Dbe,function(J0e,h1e,k1e){if(r0e(J0e,h1e,k1e))return D0e=h1e,!1}),D0e}function Q2e(Dbe,r0e,qbe,D0e){for(var J0e=Dbe.length,h1e=qbe+(D0e?1:-1);D0e?h1e--:++h1e<J0e;)if(r0e(Dbe[h1e],h1e,Dbe))return h1e;return-1}function m2e(Dbe,r0e,qbe){return r0e===r0e?u3e(Dbe,r0e,qbe):Q2e(Dbe,o3e,qbe)}function i3e(Dbe,r0e,qbe,D0e){for(var J0e=qbe-1,h1e=Dbe.length;++J0e<h1e;)if(D0e(Dbe[J0e],r0e))return J0e;return-1}function o3e(Dbe){return Dbe!==Dbe}function a2e(Dbe,r0e){var qbe=Dbe==null?0:Dbe.length;return qbe?A_e(Dbe,r0e)/qbe:Bme}function I_e(Dbe){return function(r0e){return r0e==null?$P:r0e[Dbe]}}function k2e(Dbe){return function(r0e){return Dbe==null?$P:Dbe[r0e]}}function l3e(Dbe,r0e,qbe,D0e,J0e){return J0e(Dbe,function(h1e,k1e,o1e){qbe=D0e?(D0e=!1,h1e):r0e(qbe,h1e,k1e,o1e)}),qbe}function N_e(Dbe,r0e){var qbe=Dbe.length;for(Dbe.sort(r0e);qbe--;)Dbe[qbe]=Dbe[qbe].value;return Dbe}function A_e(Dbe,r0e){for(var qbe,D0e=-1,J0e=Dbe.length;++D0e<J0e;){var h1e=r0e(Dbe[D0e]);h1e!==$P&&(qbe=qbe===$P?h1e:qbe+h1e)}return qbe}function P_e(Dbe,r0e){for(var qbe=-1,D0e=Array(Dbe);++qbe<Dbe;)D0e[qbe]=r0e(qbe);return D0e}function s8e(Dbe,r0e){return _1e(r0e,function(qbe){return[qbe,Dbe[qbe]]})}function s3e(Dbe){return Dbe&&Dbe.slice(0,e_e(Dbe)+1).replace(a0e,"")}function G1e(Dbe){return function(r0e){return Dbe(r0e)}}function k_e(Dbe,r0e){return _1e(r0e,function(qbe){return Dbe[qbe]})}function b2e(Dbe,r0e){return Dbe.has(r0e)}function S1e(Dbe,r0e){for(var qbe=-1,D0e=Dbe.length;++qbe<D0e&&m2e(r0e,Dbe[qbe],0)>-1;);return qbe}function c3e(Dbe,r0e){for(var qbe=Dbe.length;qbe--&&m2e(r0e,Dbe[qbe],0)>-1;);return qbe}function c8e(Dbe,r0e){for(var qbe=Dbe.length,D0e=0;qbe--;)Dbe[qbe]===r0e&&++D0e;return D0e}var d3e=k2e(e8e),d8e=k2e(S_e);function u8e(Dbe){return"\\"+t8e[Dbe]}function f8e(Dbe,r0e){return Dbe==null?$P:Dbe[r0e]}function xye(Dbe){return T1e.test(Dbe)}function p8e(Dbe){return E1e.test(Dbe)}function h8e(Dbe){for(var r0e,qbe=[];!(r0e=Dbe.next()).done;)qbe.push(r0e.value);return qbe}function D_e(Dbe){var r0e=-1,qbe=Array(Dbe.size);return Dbe.forEach(function(D0e,J0e){qbe[++r0e]=[J0e,D0e]}),qbe}function D2e(Dbe,r0e){return function(qbe){return Dbe(r0e(qbe))}}function bye(Dbe,r0e){for(var qbe=-1,D0e=Dbe.length,J0e=0,h1e=[];++qbe<D0e;){var k1e=Dbe[qbe];(k1e===r0e||k1e===sme)&&(Dbe[qbe]=sme,h1e[J0e++]=qbe)}return h1e}function v2e(Dbe){var r0e=-1,qbe=Array(Dbe.size);return Dbe.forEach(function(D0e){qbe[++r0e]=D0e}),qbe}function m8e(Dbe){var r0e=-1,qbe=Array(Dbe.size);return Dbe.forEach(function(D0e){qbe[++r0e]=[D0e,D0e]}),qbe}function u3e(Dbe,r0e,qbe){for(var D0e=qbe-1,J0e=Dbe.length;++D0e<J0e;)if(Dbe[D0e]===r0e)return D0e;return-1}function b8e(Dbe,r0e,qbe){for(var D0e=qbe+1;D0e--;)if(Dbe[D0e]===r0e)return D0e;return D0e}function Wye(Dbe){return xye(Dbe)?g8e(Dbe):n3e(Dbe)}function Y1e(Dbe){return xye(Dbe)?y8e(Dbe):o8e(Dbe)}function e_e(Dbe){for(var r0e=Dbe.length;r0e--&&g0e.test(Dbe.charAt(r0e)););return r0e}var v8e=k2e(x_e);function g8e(Dbe){for(var r0e=U0e.lastIndex=0;U0e.test(Dbe);)++r0e;return r0e}function y8e(Dbe){return Dbe.match(U0e)||[]}function _8e(Dbe){return Dbe.match(C1e)||[]}var $8e=function Dbe(r0e){r0e=r0e==null?B1e:g2e.defaults(B1e.Object(),r0e,g2e.pick(B1e,h2e));var qbe=r0e.Array,D0e=r0e.Date,J0e=r0e.Error,h1e=r0e.Function,k1e=r0e.Math,o1e=r0e.Object,kye=r0e.RegExp,f3e=r0e.String,Q1e=r0e.TypeError,F2e=qbe.prototype,p3e=h1e.prototype,y2e=o1e.prototype,t_e=r0e["__core-js_shared__"],M2e=p3e.toString,v1e=y2e.hasOwnProperty,C8e=0,h3e=function(){var wme=/[^.]+$/.exec(t_e&&t_e.keys&&t_e.keys.IE_PROTO||"");return wme?"Symbol(src)_1."+wme:""}(),a_e=y2e.toString,S8e=M2e.call(o1e),x8e=B1e._,E8e=kye("^"+M2e.call(v1e).replace(L0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),n_e=x1e?r0e.Buffer:$P,qye=r0e.Symbol,r_e=r0e.Uint8Array,m3e=n_e?n_e.allocUnsafe:$P,i_e=D2e(o1e.getPrototypeOf,o1e),b3e=o1e.create,v3e=y2e.propertyIsEnumerable,n2e=F2e.splice,g3e=qye?qye.isConcatSpreadable:$P,L2e=qye?qye.iterator:$P,r2e=qye?qye.toStringTag:$P,o_e=function(){try{var wme=K2e(o1e,"defineProperty");return wme({},"",{}),wme}catch{}}(),w8e=r0e.clearTimeout!==B1e.clearTimeout&&r0e.clearTimeout,T8e=D0e&&D0e.now!==B1e.Date.now&&D0e.now,O8e=r0e.setTimeout!==B1e.setTimeout&&r0e.setTimeout,l_e=k1e.ceil,B2e=k1e.floor,s_e=o1e.getOwnPropertySymbols,y3e=n_e?n_e.isBuffer:$P,j2e=r0e.isFinite,_2e=F2e.join,c_e=D2e(o1e.keys,o1e),A1e=k1e.max,O1e=k1e.min,_3e=D0e.now,$3e=r0e.parseInt,C3e=k1e.random,R8e=F2e.reverse,F_e=K2e(r0e,"DataView"),z2e=K2e(r0e,"Map"),M_e=K2e(r0e,"Promise"),$2e=K2e(r0e,"Set"),V2e=K2e(r0e,"WeakMap"),H2e=K2e(o1e,"create"),d_e=V2e&&new V2e,C2e={},I8e=Y2e(F_e),N8e=Y2e(z2e),A8e=Y2e(M_e),P8e=Y2e($2e),k8e=Y2e(V2e),u_e=qye?qye.prototype:$P,U2e=u_e?u_e.valueOf:$P,S3e=u_e?u_e.toString:$P;function dbe(wme){if(P1e(wme)&&!Q0e(wme)&&!(wme instanceof a1e)){if(wme instanceof lye)return wme;if(v1e.call(wme,"__wrapped__"))return w5e(wme)}return new lye(wme)}var S2e=function(){function wme(){}return function(Ame){if(!R1e(Ame))return{};if(b3e)return b3e(Ame);wme.prototype=Ame;var Hme=new wme;return wme.prototype=$P,Hme}}();function f_e(){}function lye(wme,Ame){this.__wrapped__=wme,this.__actions__=[],this.__chain__=!!Ame,this.__index__=0,this.__values__=$P}dbe.templateSettings={escape:zbe,evaluate:R0e,interpolate:$0e,variable:"",imports:{_:dbe}},dbe.prototype=f_e.prototype,dbe.prototype.constructor=dbe,lye.prototype=S2e(f_e.prototype),lye.prototype.constructor=lye;function a1e(wme){this.__wrapped__=wme,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Dme,this.__views__=[]}function D8e(){var wme=new a1e(this.__wrapped__);return wme.__actions__=cye(this.__actions__),wme.__dir__=this.__dir__,wme.__filtered__=this.__filtered__,wme.__iteratees__=cye(this.__iteratees__),wme.__takeCount__=this.__takeCount__,wme.__views__=cye(this.__views__),wme}function F8e(){if(this.__filtered__){var wme=new a1e(this);wme.__dir__=-1,wme.__filtered__=!0}else wme=this.clone(),wme.__dir__*=-1;return wme}function M8e(){var wme=this.__wrapped__.value(),Ame=this.__dir__,Hme=Q0e(wme),ebe=Ame<0,sbe=Hme?wme.length:0,bbe=A6e(0,sbe,this.__views__),xbe=bbe.start,Obe=bbe.end,jbe=Obe-xbe,l0e=ebe?Obe:xbe-1,s0e=this.__iteratees__,h0e=s0e.length,N0e=0,H0e=O1e(jbe,this.__takeCount__);if(!Hme||!ebe&&sbe==jbe&&H0e==jbe)return Y4e(wme,this.__actions__);var K0e=[];e:for(;jbe--&&N0e<H0e;){l0e+=Ame;for(var r1e=-1,Y0e=wme[l0e];++r1e<h0e;){var s1e=s0e[r1e],d1e=s1e.iteratee,_ye=s1e.type,Z1e=d1e(Y0e);if(_ye==Nme)Y0e=Z1e;else if(!Z1e){if(_ye==Rme)continue e;break e}}K0e[N0e++]=Y0e}return K0e}a1e.prototype=S2e(f_e.prototype),a1e.prototype.constructor=a1e;function Dye(wme){var Ame=-1,Hme=wme==null?0:wme.length;for(this.clear();++Ame<Hme;){var ebe=wme[Ame];this.set(ebe[0],ebe[1])}}function p_e(){this.__data__=H2e?H2e(null):{},this.size=0}function L8e(wme){var Ame=this.has(wme)&&delete this.__data__[wme];return this.size-=Ame?1:0,Ame}function B8e(wme){var Ame=this.__data__;if(H2e){var Hme=Ame[wme];return Hme===ome?$P:Hme}return v1e.call(Ame,wme)?Ame[wme]:$P}function j8e(wme){var Ame=this.__data__;return H2e?Ame[wme]!==$P:v1e.call(Ame,wme)}function z8e(wme,Ame){var Hme=this.__data__;return this.size+=this.has(wme)?0:1,Hme[wme]=H2e&&Ame===$P?ome:Ame,this}Dye.prototype.clear=p_e,Dye.prototype.delete=L8e,Dye.prototype.get=B8e,Dye.prototype.has=j8e,Dye.prototype.set=z8e;function Fye(wme){var Ame=-1,Hme=wme==null?0:wme.length;for(this.clear();++Ame<Hme;){var ebe=wme[Ame];this.set(ebe[0],ebe[1])}}function V8e(){this.__data__=[],this.size=0}function x3e(wme){var Ame=this.__data__,Hme=sye(Ame,wme);if(Hme<0)return!1;var ebe=Ame.length-1;return Hme==ebe?Ame.pop():n2e.call(Ame,Hme,1),--this.size,!0}function H8e(wme){var Ame=this.__data__,Hme=sye(Ame,wme);return Hme<0?$P:Ame[Hme][1]}function U8e(wme){return sye(this.__data__,wme)>-1}function E3e(wme,Ame){var Hme=this.__data__,ebe=sye(Hme,wme);return ebe<0?(++this.size,Hme.push([wme,Ame])):Hme[ebe][1]=Ame,this}Fye.prototype.clear=V8e,Fye.prototype.delete=x3e,Fye.prototype.get=H8e,Fye.prototype.has=U8e,Fye.prototype.set=E3e;function Mye(wme){var Ame=-1,Hme=wme==null?0:wme.length;for(this.clear();++Ame<Hme;){var ebe=wme[Ame];this.set(ebe[0],ebe[1])}}function W8e(){this.size=0,this.__data__={hash:new Dye,map:new(z2e||Fye),string:new Dye}}function q8e(wme){var Ame=U3e(this,wme).delete(wme);return this.size-=Ame?1:0,Ame}function Gye(wme){return U3e(this,wme).get(wme)}function w3e(wme){return U3e(this,wme).has(wme)}function G8e(wme,Ame){var Hme=U3e(this,wme),ebe=Hme.size;return Hme.set(wme,Ame),this.size+=Hme.size==ebe?0:1,this}Mye.prototype.clear=W8e,Mye.prototype.delete=q8e,Mye.prototype.get=Gye,Mye.prototype.has=w3e,Mye.prototype.set=G8e;function i2e(wme){var Ame=-1,Hme=wme==null?0:wme.length;for(this.__data__=new Mye;++Ame<Hme;)this.add(wme[Ame])}function K8e(wme){return this.__data__.set(wme,ome),this}function C0e(wme){return this.__data__.has(wme)}i2e.prototype.add=i2e.prototype.push=K8e,i2e.prototype.has=C0e;function vye(wme){var Ame=this.__data__=new Fye(wme);this.size=Ame.size}function Y8e(){this.__data__=new Fye,this.size=0}function T3e(wme){var Ame=this.__data__,Hme=Ame.delete(wme);return this.size=Ame.size,Hme}function u1e(wme){return this.__data__.get(wme)}function h_e(wme){return this.__data__.has(wme)}function O3e(wme,Ame){var Hme=this.__data__;if(Hme instanceof Fye){var ebe=Hme.__data__;if(!z2e||ebe.length<ame-1)return ebe.push([wme,Ame]),this.size=++Hme.size,this;Hme=this.__data__=new Mye(ebe)}return Hme.set(wme,Ame),this.size=Hme.size,this}vye.prototype.clear=Y8e,vye.prototype.delete=T3e,vye.prototype.get=u1e,vye.prototype.has=h_e,vye.prototype.set=O3e;function m_e(wme,Ame){var Hme=Q0e(wme),ebe=!Hme&&X2e(wme),sbe=!Hme&&!ebe&&O2e(wme),bbe=!Hme&&!ebe&&!sbe&&$_e(wme),xbe=Hme||ebe||sbe||bbe,Obe=xbe?P_e(wme.length,f3e):[],jbe=Obe.length;for(var l0e in wme)(Ame||v1e.call(wme,l0e))&&!(xbe&&(l0e=="length"||sbe&&(l0e=="offset"||l0e=="parent")||bbe&&(l0e=="buffer"||l0e=="byteLength"||l0e=="byteOffset")||d2e(l0e,jbe)))&&Obe.push(l0e);return Obe}function R3e(wme){var Ame=wme.length;return Ame?wme[c4e(0,Ame-1)]:$P}function X8e(wme,Ame){return W3e(cye(wme),o2e(Ame,0,wme.length))}function J8e(wme){return W3e(cye(wme))}function L_e(wme,Ame,Hme){(Hme!==$P&&!zye(wme[Ame],Hme)||Hme===$P&&!(Ame in wme))&&Lye(wme,Ame,Hme)}function W2e(wme,Ame,Hme){var ebe=wme[Ame];(!(v1e.call(wme,Ame)&&zye(ebe,Hme))||Hme===$P&&!(Ame in wme))&&Lye(wme,Ame,Hme)}function sye(wme,Ame){for(var Hme=wme.length;Hme--;)if(zye(wme[Hme][0],Ame))return Hme;return-1}function Z8e(wme,Ame,Hme,ebe){return Kye(wme,function(sbe,bbe,xbe){Ame(ebe,sbe,Hme(sbe),xbe)}),ebe}function B_e(wme,Ame){return wme&&Xye(Ame,V1e(Ame),wme)}function Q8e(wme,Ame){return wme&&Xye(Ame,uye(Ame),wme)}function Lye(wme,Ame,Hme){Ame=="__proto__"&&o_e?o_e(wme,Ame,{configurable:!0,enumerable:!0,value:Hme,writable:!0}):wme[Ame]=Hme}function b_e(wme,Ame){for(var Hme=-1,ebe=Ame.length,sbe=qbe(ebe),bbe=wme==null;++Hme<ebe;)sbe[Hme]=bbe?$P:k4e(wme,Ame[Hme]);return sbe}function o2e(wme,Ame,Hme){return wme===wme&&(Hme!==$P&&(wme=wme<=Hme?wme:Hme),Ame!==$P&&(wme=wme>=Ame?wme:Ame)),wme}function X1e(wme,Ame,Hme,ebe,sbe,bbe){var xbe,Obe=Ame&cme,jbe=Ame&dme,l0e=Ame&ume;if(Hme&&(xbe=sbe?Hme(wme,ebe,sbe,bbe):Hme(wme)),xbe!==$P)return xbe;if(!R1e(wme))return wme;var s0e=Q0e(wme);if(s0e){if(xbe=k6e(wme),!Obe)return cye(wme,xbe)}else{var h0e=K1e(wme),N0e=h0e==Xme||h0e==Kme;if(O2e(wme))return Z4e(wme,Obe);if(h0e==ibe||h0e==Lme||N0e&&!sbe){if(xbe=jbe||N0e?{}:v5e(wme),!Obe)return jbe?S6e(wme,Q8e(xbe,wme)):C6e(wme,B_e(xbe,wme))}else{if(!p1e[h0e])return sbe?wme:{};xbe=D6e(wme,h0e,Obe)}}bbe||(bbe=new vye);var H0e=bbe.get(wme);if(H0e)return H0e;bbe.set(wme,xbe),q5e(wme)?wme.forEach(function(Y0e){xbe.add(X1e(Y0e,Ame,Hme,Y0e,wme,bbe))}):U5e(wme)&&wme.forEach(function(Y0e,s1e){xbe.set(s1e,X1e(Y0e,Ame,Hme,s1e,wme,bbe))});var K0e=l0e?jbe?_4e:y4e:jbe?uye:V1e,r1e=s0e?$P:K0e(wme);return N1e(r1e||wme,function(Y0e,s1e){r1e&&(s1e=Y0e,Y0e=wme[s1e]),W2e(xbe,s1e,X1e(Y0e,Ame,Hme,s1e,wme,bbe))}),xbe}function j_e(wme){var Ame=V1e(wme);return function(Hme){return I3e(Hme,wme,Ame)}}function I3e(wme,Ame,Hme){var ebe=Hme.length;if(wme==null)return!ebe;for(wme=o1e(wme);ebe--;){var sbe=Hme[ebe],bbe=Ame[sbe],xbe=wme[sbe];if(xbe===$P&&!(sbe in wme)||!bbe(xbe))return!1}return!0}function Eye(wme,Ame,Hme){if(typeof wme!="function")throw new Q1e(rme);return Y_e(function(){wme.apply($P,Hme)},Ame)}function x2e(wme,Ame,Hme,ebe){var sbe=-1,bbe=Z2e,xbe=!0,Obe=wme.length,jbe=[],l0e=Ame.length;if(!Obe)return jbe;Hme&&(Ame=_1e(Ame,G1e(Hme))),ebe?(bbe=T_e,xbe=!1):Ame.length>=ame&&(bbe=b2e,xbe=!1,Ame=new i2e(Ame));e:for(;++sbe<Obe;){var s0e=wme[sbe],h0e=Hme==null?s0e:Hme(s0e);if(s0e=ebe||s0e!==0?s0e:0,xbe&&h0e===h0e){for(var N0e=l0e;N0e--;)if(Ame[N0e]===h0e)continue e;jbe.push(s0e)}else bbe(Ame,h0e,ebe)||jbe.push(s0e)}return jbe}var Kye=n5e(wye),N3e=n5e(V_e,!0);function e4e(wme,Ame){var Hme=!0;return Kye(wme,function(ebe,sbe,bbe){return Hme=!!Ame(ebe,sbe,bbe),Hme}),Hme}function v_e(wme,Ame,Hme){for(var ebe=-1,sbe=wme.length;++ebe<sbe;){var bbe=wme[ebe],xbe=Ame(bbe);if(xbe!=null&&(Obe===$P?xbe===xbe&&!yye(xbe):Hme(xbe,Obe)))var Obe=xbe,jbe=bbe}return jbe}function t4e(wme,Ame,Hme,ebe){var sbe=wme.length;for(Hme=e1e(Hme),Hme<0&&(Hme=-Hme>sbe?0:sbe+Hme),ebe=ebe===$P||ebe>sbe?sbe:e1e(ebe),ebe<0&&(ebe+=sbe),ebe=Hme>ebe?0:K5e(ebe);Hme<ebe;)wme[Hme++]=Ame;return wme}function A3e(wme,Ame){var Hme=[];return Kye(wme,function(ebe,sbe,bbe){Ame(ebe,sbe,bbe)&&Hme.push(ebe)}),Hme}function j1e(wme,Ame,Hme,ebe,sbe){var bbe=-1,xbe=wme.length;for(Hme||(Hme=M6e),sbe||(sbe=[]);++bbe<xbe;){var Obe=wme[bbe];Ame>0&&Hme(Obe)?Ame>1?j1e(Obe,Ame-1,Hme,ebe,sbe):Sye(sbe,Obe):ebe||(sbe[sbe.length]=Obe)}return sbe}var z_e=r5e(),P3e=r5e(!0);function wye(wme,Ame){return wme&&z_e(wme,Ame,V1e)}function V_e(wme,Ame){return wme&&P3e(wme,Ame,V1e)}function Tye(wme,Ame){return Uye(Ame,function(Hme){return u2e(wme[Hme])})}function l2e(wme,Ame){Ame=w2e(Ame,wme);for(var Hme=0,ebe=Ame.length;wme!=null&&Hme<ebe;)wme=wme[Jye(Ame[Hme++])];return Hme&&Hme==ebe?wme:$P}function k3e(wme,Ame,Hme){var ebe=Ame(wme);return Q0e(wme)?ebe:Sye(ebe,Hme(wme))}function W1e(wme){return wme==null?wme===$P?_be:lbe:r2e&&r2e in o1e(wme)?N6e(wme):U6e(wme)}function H_e(wme,Ame){return wme>Ame}function a4e(wme,Ame){return wme!=null&&v1e.call(wme,Ame)}function n4e(wme,Ame){return wme!=null&&Ame in o1e(wme)}function r4e(wme,Ame,Hme){return wme>=O1e(Ame,Hme)&&wme<A1e(Ame,Hme)}function U_e(wme,Ame,Hme){for(var ebe=Hme?T_e:Z2e,sbe=wme[0].length,bbe=wme.length,xbe=bbe,Obe=qbe(bbe),jbe=1/0,l0e=[];xbe--;){var s0e=wme[xbe];xbe&&Ame&&(s0e=_1e(s0e,G1e(Ame))),jbe=O1e(s0e.length,jbe),Obe[xbe]=!Hme&&(Ame||sbe>=120&&s0e.length>=120)?new i2e(xbe&&s0e):$P}s0e=wme[0];var h0e=-1,N0e=Obe[0];e:for(;++h0e<sbe&&l0e.length<jbe;){var H0e=s0e[h0e],K0e=Ame?Ame(H0e):H0e;if(H0e=Hme||H0e!==0?H0e:0,!(N0e?b2e(N0e,K0e):ebe(l0e,K0e,Hme))){for(xbe=bbe;--xbe;){var r1e=Obe[xbe];if(!(r1e?b2e(r1e,K0e):ebe(wme[xbe],K0e,Hme)))continue e}N0e&&N0e.push(K0e),l0e.push(H0e)}}return l0e}function Bye(wme,Ame,Hme,ebe){return wye(wme,function(sbe,bbe,xbe){Ame(ebe,Hme(sbe),bbe,xbe)}),ebe}function Oye(wme,Ame,Hme){Ame=w2e(Ame,wme),wme=$5e(wme,Ame);var ebe=wme==null?wme:wme[Jye(Nye(Ame))];return ebe==null?$P:U1e(ebe,wme,Hme)}function D3e(wme){return P1e(wme)&&W1e(wme)==Lme}function i4e(wme){return P1e(wme)&&W1e(wme)==kbe}function o4e(wme){return P1e(wme)&&W1e(wme)==Jme}function q2e(wme,Ame,Hme,ebe,sbe){return wme===Ame?!0:wme==null||Ame==null||!P1e(wme)&&!P1e(Ame)?wme!==wme&&Ame!==Ame:l4e(wme,Ame,Hme,ebe,q2e,sbe)}function l4e(wme,Ame,Hme,ebe,sbe,bbe){var xbe=Q0e(wme),Obe=Q0e(Ame),jbe=xbe?zme:K1e(wme),l0e=Obe?zme:K1e(Ame);jbe=jbe==Lme?ibe:jbe,l0e=l0e==Lme?ibe:l0e;var s0e=jbe==ibe,h0e=l0e==ibe,N0e=jbe==l0e;if(N0e&&O2e(wme)){if(!O2e(Ame))return!1;xbe=!0,s0e=!1}if(N0e&&!s0e)return bbe||(bbe=new vye),xbe||$_e(wme)?h5e(wme,Ame,Hme,ebe,sbe,bbe):R6e(wme,Ame,jbe,Hme,ebe,sbe,bbe);if(!(Hme&fme)){var H0e=s0e&&v1e.call(wme,"__wrapped__"),K0e=h0e&&v1e.call(Ame,"__wrapped__");if(H0e||K0e){var r1e=H0e?wme.value():wme,Y0e=K0e?Ame.value():Ame;return bbe||(bbe=new vye),sbe(r1e,Y0e,Hme,ebe,bbe)}}return N0e?(bbe||(bbe=new vye),I6e(wme,Ame,Hme,ebe,sbe,bbe)):!1}function W_e(wme){return P1e(wme)&&K1e(wme)==Zme}function Yye(wme,Ame,Hme,ebe){var sbe=Hme.length,bbe=sbe,xbe=!ebe;if(wme==null)return!bbe;for(wme=o1e(wme);sbe--;){var Obe=Hme[sbe];if(xbe&&Obe[2]?Obe[1]!==wme[Obe[0]]:!(Obe[0]in wme))return!1}for(;++sbe<bbe;){Obe=Hme[sbe];var jbe=Obe[0],l0e=wme[jbe],s0e=Obe[1];if(xbe&&Obe[2]){if(l0e===$P&&!(jbe in wme))return!1}else{var h0e=new vye;if(ebe)var N0e=ebe(l0e,s0e,jbe,wme,Ame,h0e);if(!(N0e===$P?q2e(s0e,l0e,fme|pme,ebe,h0e):N0e))return!1}}return!0}function G2e(wme){if(!R1e(wme)||B6e(wme))return!1;var Ame=u2e(wme)?E8e:z0e;return Ame.test(Y2e(wme))}function c1e(wme){return P1e(wme)&&W1e(wme)==hbe}function Fme(wme){return P1e(wme)&&K1e(wme)==ube}function qme(wme){return P1e(wme)&&J3e(wme.length)&&!!g1e[W1e(wme)]}function tbe(wme){return typeof wme=="function"?wme:wme==null?fye:typeof wme=="object"?Q0e(wme)?X0e(wme[0],wme[1]):k0e(wme):i6e(wme)}function rbe(wme){if(!K_e(wme))return c_e(wme);var Ame=[];for(var Hme in o1e(wme))v1e.call(wme,Hme)&&Hme!="constructor"&&Ame.push(Hme);return Ame}function cbe(wme){if(!R1e(wme))return H6e(wme);var Ame=K_e(wme),Hme=[];for(var ebe in wme)ebe=="constructor"&&(Ame||!v1e.call(wme,ebe))||Hme.push(ebe);return Hme}function wbe(wme,Ame){return wme<Ame}function Xbe(wme,Ame){var Hme=-1,ebe=dye(wme)?qbe(wme.length):[];return Kye(wme,function(sbe,bbe,xbe){ebe[++Hme]=Ame(sbe,bbe,xbe)}),ebe}function k0e(wme){var Ame=C4e(wme);return Ame.length==1&&Ame[0][2]?y5e(Ame[0][0],Ame[0][1]):function(Hme){return Hme===wme||Yye(Hme,wme,Ame)}}function X0e(wme,Ame){return x4e(wme)&&g5e(Ame)?y5e(Jye(wme),Ame):function(Hme){var ebe=k4e(Hme,wme);return ebe===$P&&ebe===Ame?D4e(Hme,wme):q2e(Ame,ebe,fme|pme)}}function n1e(wme,Ame,Hme,ebe,sbe){wme!==Ame&&z_e(Ame,function(bbe,xbe){if(sbe||(sbe=new vye),R1e(bbe))q1e(wme,Ame,xbe,Hme,n1e,ebe,sbe);else{var Obe=ebe?ebe(w4e(wme,xbe),bbe,xbe+"",wme,Ame,sbe):$P;Obe===$P&&(Obe=bbe),L_e(wme,xbe,Obe)}},uye)}function q1e(wme,Ame,Hme,ebe,sbe,bbe,xbe){var Obe=w4e(wme,Hme),jbe=w4e(Ame,Hme),l0e=xbe.get(jbe);if(l0e){L_e(wme,Hme,l0e);return}var s0e=bbe?bbe(Obe,jbe,Hme+"",wme,Ame,xbe):$P,h0e=s0e===$P;if(h0e){var N0e=Q0e(jbe),H0e=!N0e&&O2e(jbe),K0e=!N0e&&!H0e&&$_e(jbe);s0e=jbe,N0e||H0e||K0e?Q0e(Obe)?s0e=Obe:D1e(Obe)?s0e=cye(Obe):H0e?(h0e=!1,s0e=Z4e(jbe,!0)):K0e?(h0e=!1,s0e=Q4e(jbe,!0)):s0e=[]:X_e(jbe)||X2e(jbe)?(s0e=Obe,X2e(Obe)?s0e=Y5e(Obe):(!R1e(Obe)||u2e(Obe))&&(s0e=v5e(jbe))):h0e=!1}h0e&&(xbe.set(jbe,s0e),sbe(s0e,jbe,ebe,bbe,xbe),xbe.delete(jbe)),L_e(wme,Hme,s0e)}function Rye(wme,Ame){var Hme=wme.length;if(Hme)return Ame+=Ame<0?Hme:0,d2e(Ame,Hme)?wme[Ame]:$P}function jye(wme,Ame,Hme){Ame.length?Ame=_1e(Ame,function(bbe){return Q0e(bbe)?function(xbe){return l2e(xbe,bbe.length===1?bbe[0]:bbe)}:bbe}):Ame=[fye];var ebe=-1;Ame=_1e(Ame,G1e(q0e()));var sbe=Xbe(wme,function(bbe,xbe,Obe){var jbe=_1e(Ame,function(l0e){return l0e(bbe)});return{criteria:jbe,index:++ebe,value:bbe}});return N_e(sbe,function(bbe,xbe){return $6e(bbe,xbe,Hme)})}function c6e(wme,Ame){return H4e(wme,Ame,function(Hme,ebe){return D4e(wme,ebe)})}function H4e(wme,Ame,Hme){for(var ebe=-1,sbe=Ame.length,bbe={};++ebe<sbe;){var xbe=Ame[ebe],Obe=l2e(wme,xbe);Hme(Obe,xbe)&&q_e(bbe,w2e(xbe,wme),Obe)}return bbe}function d6e(wme){return function(Ame){return l2e(Ame,wme)}}function s4e(wme,Ame,Hme,ebe){var sbe=ebe?i3e:m2e,bbe=-1,xbe=Ame.length,Obe=wme;for(wme===Ame&&(Ame=cye(Ame)),Hme&&(Obe=_1e(wme,G1e(Hme)));++bbe<xbe;)for(var jbe=0,l0e=Ame[bbe],s0e=Hme?Hme(l0e):l0e;(jbe=sbe(Obe,s0e,jbe,ebe))>-1;)Obe!==wme&&n2e.call(Obe,jbe,1),n2e.call(wme,jbe,1);return wme}function U4e(wme,Ame){for(var Hme=wme?Ame.length:0,ebe=Hme-1;Hme--;){var sbe=Ame[Hme];if(Hme==ebe||sbe!==bbe){var bbe=sbe;d2e(sbe)?n2e.call(wme,sbe,1):f4e(wme,sbe)}}return wme}function c4e(wme,Ame){return wme+B2e(C3e()*(Ame-wme+1))}function u6e(wme,Ame,Hme,ebe){for(var sbe=-1,bbe=A1e(l_e((Ame-wme)/(Hme||1)),0),xbe=qbe(bbe);bbe--;)xbe[ebe?bbe:++sbe]=wme,wme+=Hme;return xbe}function d4e(wme,Ame){var Hme="";if(!wme||Ame<1||Ame>Mme)return Hme;do Ame%2&&(Hme+=wme),Ame=B2e(Ame/2),Ame&&(wme+=wme);while(Ame);return Hme}function l1e(wme,Ame){return T4e(_5e(wme,Ame,fye),wme+"")}function f6e(wme){return R3e(C_e(wme))}function p6e(wme,Ame){var Hme=C_e(wme);return W3e(Hme,o2e(Ame,0,Hme.length))}function q_e(wme,Ame,Hme,ebe){if(!R1e(wme))return wme;Ame=w2e(Ame,wme);for(var sbe=-1,bbe=Ame.length,xbe=bbe-1,Obe=wme;Obe!=null&&++sbe<bbe;){var jbe=Jye(Ame[sbe]),l0e=Hme;if(jbe==="__proto__"||jbe==="constructor"||jbe==="prototype")return wme;if(sbe!=xbe){var s0e=Obe[jbe];l0e=ebe?ebe(s0e,jbe,Obe):$P,l0e===$P&&(l0e=R1e(s0e)?s0e:d2e(Ame[sbe+1])?[]:{})}W2e(Obe,jbe,l0e),Obe=Obe[jbe]}return wme}var W4e=d_e?function(wme,Ame){return d_e.set(wme,Ame),wme}:fye,h6e=o_e?function(wme,Ame){return o_e(wme,"toString",{configurable:!0,enumerable:!1,value:M4e(Ame),writable:!0})}:fye;function m6e(wme){return W3e(C_e(wme))}function Iye(wme,Ame,Hme){var ebe=-1,sbe=wme.length;Ame<0&&(Ame=-Ame>sbe?0:sbe+Ame),Hme=Hme>sbe?sbe:Hme,Hme<0&&(Hme+=sbe),sbe=Ame>Hme?0:Hme-Ame>>>0,Ame>>>=0;for(var bbe=qbe(sbe);++ebe<sbe;)bbe[ebe]=wme[ebe+Ame];return bbe}function b6e(wme,Ame){var Hme;return Kye(wme,function(ebe,sbe,bbe){return Hme=Ame(ebe,sbe,bbe),!Hme}),!!Hme}function F3e(wme,Ame,Hme){var ebe=0,sbe=wme==null?ebe:wme.length;if(typeof Ame=="number"&&Ame===Ame&&sbe<=Vme){for(;ebe<sbe;){var bbe=ebe+sbe>>>1,xbe=wme[bbe];xbe!==null&&!yye(xbe)&&(Hme?xbe<=Ame:xbe<Ame)?ebe=bbe+1:sbe=bbe}return sbe}return u4e(wme,Ame,fye,Hme)}function u4e(wme,Ame,Hme,ebe){var sbe=0,bbe=wme==null?0:wme.length;if(bbe===0)return 0;Ame=Hme(Ame);for(var xbe=Ame!==Ame,Obe=Ame===null,jbe=yye(Ame),l0e=Ame===$P;sbe<bbe;){var s0e=B2e((sbe+bbe)/2),h0e=Hme(wme[s0e]),N0e=h0e!==$P,H0e=h0e===null,K0e=h0e===h0e,r1e=yye(h0e);if(xbe)var Y0e=ebe||K0e;else l0e?Y0e=K0e&&(ebe||N0e):Obe?Y0e=K0e&&N0e&&(ebe||!H0e):jbe?Y0e=K0e&&N0e&&!H0e&&(ebe||!r1e):H0e||r1e?Y0e=!1:Y0e=ebe?h0e<=Ame:h0e<Ame;Y0e?sbe=s0e+1:bbe=s0e}return O1e(bbe,jme)}function q4e(wme,Ame){for(var Hme=-1,ebe=wme.length,sbe=0,bbe=[];++Hme<ebe;){var xbe=wme[Hme],Obe=Ame?Ame(xbe):xbe;if(!Hme||!zye(Obe,jbe)){var jbe=Obe;bbe[sbe++]=xbe===0?0:xbe}}return bbe}function G4e(wme){return typeof wme=="number"?wme:yye(wme)?Bme:+wme}function gye(wme){if(typeof wme=="string")return wme;if(Q0e(wme))return _1e(wme,gye)+"";if(yye(wme))return S3e?S3e.call(wme):"";var Ame=wme+"";return Ame=="0"&&1/wme==-Pme?"-0":Ame}function E2e(wme,Ame,Hme){var ebe=-1,sbe=Z2e,bbe=wme.length,xbe=!0,Obe=[],jbe=Obe;if(Hme)xbe=!1,sbe=T_e;else if(bbe>=ame){var l0e=Ame?null:T6e(wme);if(l0e)return v2e(l0e);xbe=!1,sbe=b2e,jbe=new i2e}else jbe=Ame?[]:Obe;e:for(;++ebe<bbe;){var s0e=wme[ebe],h0e=Ame?Ame(s0e):s0e;if(s0e=Hme||s0e!==0?s0e:0,xbe&&h0e===h0e){for(var N0e=jbe.length;N0e--;)if(jbe[N0e]===h0e)continue e;Ame&&jbe.push(h0e),Obe.push(s0e)}else sbe(jbe,h0e,Hme)||(jbe!==Obe&&jbe.push(h0e),Obe.push(s0e))}return Obe}function f4e(wme,Ame){return Ame=w2e(Ame,wme),wme=$5e(wme,Ame),wme==null||delete wme[Jye(Nye(Ame))]}function K4e(wme,Ame,Hme,ebe){return q_e(wme,Ame,Hme(l2e(wme,Ame)),ebe)}function M3e(wme,Ame,Hme,ebe){for(var sbe=wme.length,bbe=ebe?sbe:-1;(ebe?bbe--:++bbe<sbe)&&Ame(wme[bbe],bbe,wme););return Hme?Iye(wme,ebe?0:bbe,ebe?bbe+1:sbe):Iye(wme,ebe?bbe+1:0,ebe?sbe:bbe)}function Y4e(wme,Ame){var Hme=wme;return Hme instanceof a1e&&(Hme=Hme.value()),O_e(Ame,function(ebe,sbe){return sbe.func.apply(sbe.thisArg,Sye([ebe],sbe.args))},Hme)}function p4e(wme,Ame,Hme){var ebe=wme.length;if(ebe<2)return ebe?E2e(wme[0]):[];for(var sbe=-1,bbe=qbe(ebe);++sbe<ebe;)for(var xbe=wme[sbe],Obe=-1;++Obe<ebe;)Obe!=sbe&&(bbe[sbe]=x2e(bbe[sbe]||xbe,wme[Obe],Ame,Hme));return E2e(j1e(bbe,1),Ame,Hme)}function X4e(wme,Ame,Hme){for(var ebe=-1,sbe=wme.length,bbe=Ame.length,xbe={};++ebe<sbe;){var Obe=ebe<bbe?Ame[ebe]:$P;Hme(xbe,wme[ebe],Obe)}return xbe}function h4e(wme){return D1e(wme)?wme:[]}function m4e(wme){return typeof wme=="function"?wme:fye}function w2e(wme,Ame){return Q0e(wme)?wme:x4e(wme,Ame)?[wme]:E5e(y1e(wme))}var v6e=l1e;function T2e(wme,Ame,Hme){var ebe=wme.length;return Hme=Hme===$P?ebe:Hme,!Ame&&Hme>=ebe?wme:Iye(wme,Ame,Hme)}var J4e=w8e||function(wme){return B1e.clearTimeout(wme)};function Z4e(wme,Ame){if(Ame)return wme.slice();var Hme=wme.length,ebe=m3e?m3e(Hme):new wme.constructor(Hme);return wme.copy(ebe),ebe}function b4e(wme){var Ame=new wme.constructor(wme.byteLength);return new r_e(Ame).set(new r_e(wme)),Ame}function g6e(wme,Ame){var Hme=Ame?b4e(wme.buffer):wme.buffer;return new wme.constructor(Hme,wme.byteOffset,wme.byteLength)}function y6e(wme){var Ame=new wme.constructor(wme.source,Ibe.exec(wme));return Ame.lastIndex=wme.lastIndex,Ame}function _6e(wme){return U2e?o1e(U2e.call(wme)):{}}function Q4e(wme,Ame){var Hme=Ame?b4e(wme.buffer):wme.buffer;return new wme.constructor(Hme,wme.byteOffset,wme.length)}function e5e(wme,Ame){if(wme!==Ame){var Hme=wme!==$P,ebe=wme===null,sbe=wme===wme,bbe=yye(wme),xbe=Ame!==$P,Obe=Ame===null,jbe=Ame===Ame,l0e=yye(Ame);if(!Obe&&!l0e&&!bbe&&wme>Ame||bbe&&xbe&&jbe&&!Obe&&!l0e||ebe&&xbe&&jbe||!Hme&&jbe||!sbe)return 1;if(!ebe&&!bbe&&!l0e&&wme<Ame||l0e&&Hme&&sbe&&!ebe&&!bbe||Obe&&Hme&&sbe||!xbe&&sbe||!jbe)return-1}return 0}function $6e(wme,Ame,Hme){for(var ebe=-1,sbe=wme.criteria,bbe=Ame.criteria,xbe=sbe.length,Obe=Hme.length;++ebe<xbe;){var jbe=e5e(sbe[ebe],bbe[ebe]);if(jbe){if(ebe>=Obe)return jbe;var l0e=Hme[ebe];return jbe*(l0e=="desc"?-1:1)}}return wme.index-Ame.index}function t5e(wme,Ame,Hme,ebe){for(var sbe=-1,bbe=wme.length,xbe=Hme.length,Obe=-1,jbe=Ame.length,l0e=A1e(bbe-xbe,0),s0e=qbe(jbe+l0e),h0e=!ebe;++Obe<jbe;)s0e[Obe]=Ame[Obe];for(;++sbe<xbe;)(h0e||sbe<bbe)&&(s0e[Hme[sbe]]=wme[sbe]);for(;l0e--;)s0e[Obe++]=wme[sbe++];return s0e}function a5e(wme,Ame,Hme,ebe){for(var sbe=-1,bbe=wme.length,xbe=-1,Obe=Hme.length,jbe=-1,l0e=Ame.length,s0e=A1e(bbe-Obe,0),h0e=qbe(s0e+l0e),N0e=!ebe;++sbe<s0e;)h0e[sbe]=wme[sbe];for(var H0e=sbe;++jbe<l0e;)h0e[H0e+jbe]=Ame[jbe];for(;++xbe<Obe;)(N0e||sbe<bbe)&&(h0e[H0e+Hme[xbe]]=wme[sbe++]);return h0e}function cye(wme,Ame){var Hme=-1,ebe=wme.length;for(Ame||(Ame=qbe(ebe));++Hme<ebe;)Ame[Hme]=wme[Hme];return Ame}function Xye(wme,Ame,Hme,ebe){var sbe=!Hme;Hme||(Hme={});for(var bbe=-1,xbe=Ame.length;++bbe<xbe;){var Obe=Ame[bbe],jbe=ebe?ebe(Hme[Obe],wme[Obe],Obe,Hme,wme):$P;jbe===$P&&(jbe=wme[Obe]),sbe?Lye(Hme,Obe,jbe):W2e(Hme,Obe,jbe)}return Hme}function C6e(wme,Ame){return Xye(wme,S4e(wme),Ame)}function S6e(wme,Ame){return Xye(wme,m5e(wme),Ame)}function L3e(wme,Ame){return function(Hme,ebe){var sbe=Q0e(Hme)?n8e:Z8e,bbe=Ame?Ame():{};return sbe(Hme,wme,q0e(ebe,2),bbe)}}function g_e(wme){return l1e(function(Ame,Hme){var ebe=-1,sbe=Hme.length,bbe=sbe>1?Hme[sbe-1]:$P,xbe=sbe>2?Hme[2]:$P;for(bbe=wme.length>3&&typeof bbe=="function"?(sbe--,bbe):$P,xbe&&J1e(Hme[0],Hme[1],xbe)&&(bbe=sbe<3?$P:bbe,sbe=1),Ame=o1e(Ame);++ebe<sbe;){var Obe=Hme[ebe];Obe&&wme(Ame,Obe,ebe,bbe)}return Ame})}function n5e(wme,Ame){return function(Hme,ebe){if(Hme==null)return Hme;if(!dye(Hme))return wme(Hme,ebe);for(var sbe=Hme.length,bbe=Ame?sbe:-1,xbe=o1e(Hme);(Ame?bbe--:++bbe<sbe)&&ebe(xbe[bbe],bbe,xbe)!==!1;);return Hme}}function r5e(wme){return function(Ame,Hme,ebe){for(var sbe=-1,bbe=o1e(Ame),xbe=ebe(Ame),Obe=xbe.length;Obe--;){var jbe=xbe[wme?Obe:++sbe];if(Hme(bbe[jbe],jbe,bbe)===!1)break}return Ame}}function x6e(wme,Ame,Hme){var ebe=Ame&hme,sbe=G_e(wme);function bbe(){var xbe=this&&this!==B1e&&this instanceof bbe?sbe:wme;return xbe.apply(ebe?Hme:this,arguments)}return bbe}function i5e(wme){return function(Ame){Ame=y1e(Ame);var Hme=xye(Ame)?Y1e(Ame):$P,ebe=Hme?Hme[0]:Ame.charAt(0),sbe=Hme?T2e(Hme,1).join(""):Ame.slice(1);return ebe[wme]()+sbe}}function y_e(wme){return function(Ame){return O_e(n6e(a6e(Ame).replace(N2e,"")),wme,"")}}function G_e(wme){return function(){var Ame=arguments;switch(Ame.length){case 0:return new wme;case 1:return new wme(Ame[0]);case 2:return new wme(Ame[0],Ame[1]);case 3:return new wme(Ame[0],Ame[1],Ame[2]);case 4:return new wme(Ame[0],Ame[1],Ame[2],Ame[3]);case 5:return new wme(Ame[0],Ame[1],Ame[2],Ame[3],Ame[4]);case 6:return new wme(Ame[0],Ame[1],Ame[2],Ame[3],Ame[4],Ame[5]);case 7:return new wme(Ame[0],Ame[1],Ame[2],Ame[3],Ame[4],Ame[5],Ame[6])}var Hme=S2e(wme.prototype),ebe=wme.apply(Hme,Ame);return R1e(ebe)?ebe:Hme}}function E6e(wme,Ame,Hme){var ebe=G_e(wme);function sbe(){for(var bbe=arguments.length,xbe=qbe(bbe),Obe=bbe,jbe=__e(sbe);Obe--;)xbe[Obe]=arguments[Obe];var l0e=bbe<3&&xbe[0]!==jbe&&xbe[bbe-1]!==jbe?[]:bye(xbe,jbe);if(bbe-=l0e.length,bbe<Hme)return d5e(wme,Ame,B3e,sbe.placeholder,$P,xbe,l0e,$P,$P,Hme-bbe);var s0e=this&&this!==B1e&&this instanceof sbe?ebe:wme;return U1e(s0e,this,xbe)}return sbe}function o5e(wme){return function(Ame,Hme,ebe){var sbe=o1e(Ame);if(!dye(Ame)){var bbe=q0e(Hme,3);Ame=V1e(Ame),Hme=function(Obe){return bbe(sbe[Obe],Obe,sbe)}}var xbe=wme(Ame,Hme,ebe);return xbe>-1?sbe[bbe?Ame[xbe]:xbe]:$P}}function l5e(wme){return c2e(function(Ame){var Hme=Ame.length,ebe=Hme,sbe=lye.prototype.thru;for(wme&&Ame.reverse();ebe--;){var bbe=Ame[ebe];if(typeof bbe!="function")throw new Q1e(rme);if(sbe&&!xbe&&H3e(bbe)=="wrapper")var xbe=new lye([],!0)}for(ebe=xbe?ebe:Hme;++ebe<Hme;){bbe=Ame[ebe];var Obe=H3e(bbe),jbe=Obe=="wrapper"?$4e(bbe):$P;jbe&&E4e(jbe[0])&&jbe[1]==($me|vme|yme|Cme)&&!jbe[4].length&&jbe[9]==1?xbe=xbe[H3e(jbe[0])].apply(xbe,jbe[3]):xbe=bbe.length==1&&E4e(bbe)?xbe[Obe]():xbe.thru(bbe)}return function(){var l0e=arguments,s0e=l0e[0];if(xbe&&l0e.length==1&&Q0e(s0e))return xbe.plant(s0e).value();for(var h0e=0,N0e=Hme?Ame[h0e].apply(this,l0e):s0e;++h0e<Hme;)N0e=Ame[h0e].call(this,N0e);return N0e}})}function B3e(wme,Ame,Hme,ebe,sbe,bbe,xbe,Obe,jbe,l0e){var s0e=Ame&$me,h0e=Ame&hme,N0e=Ame&bme,H0e=Ame&(vme|gme),K0e=Ame&Sme,r1e=N0e?$P:G_e(wme);function Y0e(){for(var s1e=arguments.length,d1e=qbe(s1e),_ye=s1e;_ye--;)d1e[_ye]=arguments[_ye];if(H0e)var Z1e=__e(Y0e),$ye=c8e(d1e,Z1e);if(ebe&&(d1e=t5e(d1e,ebe,sbe,H0e)),bbe&&(d1e=a5e(d1e,bbe,xbe,H0e)),s1e-=$ye,H0e&&s1e<l0e){var F1e=bye(d1e,Z1e);return d5e(wme,Ame,B3e,Y0e.placeholder,Hme,d1e,F1e,Obe,jbe,l0e-s1e)}var Vye=h0e?Hme:this,p2e=N0e?Vye[wme]:wme;return s1e=d1e.length,Obe?d1e=W6e(d1e,Obe):K0e&&s1e>1&&d1e.reverse(),s0e&&jbe<s1e&&(d1e.length=jbe),this&&this!==B1e&&this instanceof Y0e&&(p2e=r1e||G_e(p2e)),p2e.apply(Vye,d1e)}return Y0e}function s5e(wme,Ame){return function(Hme,ebe){return Bye(Hme,wme,Ame(ebe),{})}}function j3e(wme,Ame){return function(Hme,ebe){var sbe;if(Hme===$P&&ebe===$P)return Ame;if(Hme!==$P&&(sbe=Hme),ebe!==$P){if(sbe===$P)return ebe;typeof Hme=="string"||typeof ebe=="string"?(Hme=gye(Hme),ebe=gye(ebe)):(Hme=G4e(Hme),ebe=G4e(ebe)),sbe=wme(Hme,ebe)}return sbe}}function v4e(wme){return c2e(function(Ame){return Ame=_1e(Ame,G1e(q0e())),l1e(function(Hme){var ebe=this;return wme(Ame,function(sbe){return U1e(sbe,ebe,Hme)})})})}function z3e(wme,Ame){Ame=Ame===$P?" ":gye(Ame);var Hme=Ame.length;if(Hme<2)return Hme?d4e(Ame,wme):Ame;var ebe=d4e(Ame,l_e(wme/Wye(Ame)));return xye(Ame)?T2e(Y1e(ebe),0,wme).join(""):ebe.slice(0,wme)}function w6e(wme,Ame,Hme,ebe){var sbe=Ame&hme,bbe=G_e(wme);function xbe(){for(var Obe=-1,jbe=arguments.length,l0e=-1,s0e=ebe.length,h0e=qbe(s0e+jbe),N0e=this&&this!==B1e&&this instanceof xbe?bbe:wme;++l0e<s0e;)h0e[l0e]=ebe[l0e];for(;jbe--;)h0e[l0e++]=arguments[++Obe];return U1e(N0e,sbe?Hme:this,h0e)}return xbe}function c5e(wme){return function(Ame,Hme,ebe){return ebe&&typeof ebe!="number"&&J1e(Ame,Hme,ebe)&&(Hme=ebe=$P),Ame=f2e(Ame),Hme===$P?(Hme=Ame,Ame=0):Hme=f2e(Hme),ebe=ebe===$P?Ame<Hme?1:-1:f2e(ebe),u6e(Ame,Hme,ebe,wme)}}function V3e(wme){return function(Ame,Hme){return typeof Ame=="string"&&typeof Hme=="string"||(Ame=Aye(Ame),Hme=Aye(Hme)),wme(Ame,Hme)}}function d5e(wme,Ame,Hme,ebe,sbe,bbe,xbe,Obe,jbe,l0e){var s0e=Ame&vme,h0e=s0e?xbe:$P,N0e=s0e?$P:xbe,H0e=s0e?bbe:$P,K0e=s0e?$P:bbe;Ame|=s0e?yme:_me,Ame&=~(s0e?_me:yme),Ame&mme||(Ame&=~(hme|bme));var r1e=[wme,Ame,sbe,H0e,h0e,K0e,N0e,Obe,jbe,l0e],Y0e=Hme.apply($P,r1e);return E4e(wme)&&C5e(Y0e,r1e),Y0e.placeholder=ebe,S5e(Y0e,wme,Ame)}function g4e(wme){var Ame=k1e[wme];return function(Hme,ebe){if(Hme=Aye(Hme),ebe=ebe==null?0:O1e(e1e(ebe),292),ebe&&j2e(Hme)){var sbe=(y1e(Hme)+"e").split("e"),bbe=Ame(sbe[0]+"e"+(+sbe[1]+ebe));return sbe=(y1e(bbe)+"e").split("e"),+(sbe[0]+"e"+(+sbe[1]-ebe))}return Ame(Hme)}}var T6e=$2e&&1/v2e(new $2e([,-0]))[1]==Pme?function(wme){return new $2e(wme)}:j4e;function u5e(wme){return function(Ame){var Hme=K1e(Ame);return Hme==Zme?D_e(Ame):Hme==ube?m8e(Ame):s8e(Ame,wme(Ame))}}function s2e(wme,Ame,Hme,ebe,sbe,bbe,xbe,Obe){var jbe=Ame&bme;if(!jbe&&typeof wme!="function")throw new Q1e(rme);var l0e=ebe?ebe.length:0;if(l0e||(Ame&=~(yme|_me),ebe=sbe=$P),xbe=xbe===$P?xbe:A1e(e1e(xbe),0),Obe=Obe===$P?Obe:e1e(Obe),l0e-=sbe?sbe.length:0,Ame&_me){var s0e=ebe,h0e=sbe;ebe=sbe=$P}var N0e=jbe?$P:$4e(wme),H0e=[wme,Ame,Hme,ebe,sbe,s0e,h0e,bbe,xbe,Obe];if(N0e&&V6e(H0e,N0e),wme=H0e[0],Ame=H0e[1],Hme=H0e[2],ebe=H0e[3],sbe=H0e[4],Obe=H0e[9]=H0e[9]===$P?jbe?0:wme.length:A1e(H0e[9]-l0e,0),!Obe&&Ame&(vme|gme)&&(Ame&=~(vme|gme)),!Ame||Ame==hme)var K0e=x6e(wme,Ame,Hme);else Ame==vme||Ame==gme?K0e=E6e(wme,Ame,Obe):(Ame==yme||Ame==(hme|yme))&&!sbe.length?K0e=w6e(wme,Ame,Hme,ebe):K0e=B3e.apply($P,H0e);var r1e=N0e?W4e:C5e;return S5e(r1e(K0e,H0e),wme,Ame)}function f5e(wme,Ame,Hme,ebe){return wme===$P||zye(wme,y2e[Hme])&&!v1e.call(ebe,Hme)?Ame:wme}function p5e(wme,Ame,Hme,ebe,sbe,bbe){return R1e(wme)&&R1e(Ame)&&(bbe.set(Ame,wme),n1e(wme,Ame,$P,p5e,bbe),bbe.delete(Ame)),wme}function O6e(wme){return X_e(wme)?$P:wme}function h5e(wme,Ame,Hme,ebe,sbe,bbe){var xbe=Hme&fme,Obe=wme.length,jbe=Ame.length;if(Obe!=jbe&&!(xbe&&jbe>Obe))return!1;var l0e=bbe.get(wme),s0e=bbe.get(Ame);if(l0e&&s0e)return l0e==Ame&&s0e==wme;var h0e=-1,N0e=!0,H0e=Hme&pme?new i2e:$P;for(bbe.set(wme,Ame),bbe.set(Ame,wme);++h0e<Obe;){var K0e=wme[h0e],r1e=Ame[h0e];if(ebe)var Y0e=xbe?ebe(r1e,K0e,h0e,Ame,wme,bbe):ebe(K0e,r1e,h0e,wme,Ame,bbe);if(Y0e!==$P){if(Y0e)continue;N0e=!1;break}if(H0e){if(!R_e(Ame,function(s1e,d1e){if(!b2e(H0e,d1e)&&(K0e===s1e||sbe(K0e,s1e,Hme,ebe,bbe)))return H0e.push(d1e)})){N0e=!1;break}}else if(!(K0e===r1e||sbe(K0e,r1e,Hme,ebe,bbe))){N0e=!1;break}}return bbe.delete(wme),bbe.delete(Ame),N0e}function R6e(wme,Ame,Hme,ebe,sbe,bbe,xbe){switch(Hme){case Rbe:if(wme.byteLength!=Ame.byteLength||wme.byteOffset!=Ame.byteOffset)return!1;wme=wme.buffer,Ame=Ame.buffer;case kbe:return!(wme.byteLength!=Ame.byteLength||!bbe(new r_e(wme),new r_e(Ame)));case Gme:case Jme:case nbe:return zye(+wme,+Ame);case Qme:return wme.name==Ame.name&&wme.message==Ame.message;case hbe:case mbe:return wme==Ame+"";case Zme:var Obe=D_e;case ube:var jbe=ebe&fme;if(Obe||(Obe=v2e),wme.size!=Ame.size&&!jbe)return!1;var l0e=xbe.get(wme);if(l0e)return l0e==Ame;ebe|=pme,xbe.set(wme,Ame);var s0e=h5e(Obe(wme),Obe(Ame),ebe,sbe,bbe,xbe);return xbe.delete(wme),s0e;case pbe:if(U2e)return U2e.call(wme)==U2e.call(Ame)}return!1}function I6e(wme,Ame,Hme,ebe,sbe,bbe){var xbe=Hme&fme,Obe=y4e(wme),jbe=Obe.length,l0e=y4e(Ame),s0e=l0e.length;if(jbe!=s0e&&!xbe)return!1;for(var h0e=jbe;h0e--;){var N0e=Obe[h0e];if(!(xbe?N0e in Ame:v1e.call(Ame,N0e)))return!1}var H0e=bbe.get(wme),K0e=bbe.get(Ame);if(H0e&&K0e)return H0e==Ame&&K0e==wme;var r1e=!0;bbe.set(wme,Ame),bbe.set(Ame,wme);for(var Y0e=xbe;++h0e<jbe;){N0e=Obe[h0e];var s1e=wme[N0e],d1e=Ame[N0e];if(ebe)var _ye=xbe?ebe(d1e,s1e,N0e,Ame,wme,bbe):ebe(s1e,d1e,N0e,wme,Ame,bbe);if(!(_ye===$P?s1e===d1e||sbe(s1e,d1e,Hme,ebe,bbe):_ye)){r1e=!1;break}Y0e||(Y0e=N0e=="constructor")}if(r1e&&!Y0e){var Z1e=wme.constructor,$ye=Ame.constructor;Z1e!=$ye&&"constructor"in wme&&"constructor"in Ame&&!(typeof Z1e=="function"&&Z1e instanceof Z1e&&typeof $ye=="function"&&$ye instanceof $ye)&&(r1e=!1)}return bbe.delete(wme),bbe.delete(Ame),r1e}function c2e(wme){return T4e(_5e(wme,$P,R5e),wme+"")}function y4e(wme){return k3e(wme,V1e,S4e)}function _4e(wme){return k3e(wme,uye,m5e)}var $4e=d_e?function(wme){return d_e.get(wme)}:j4e;function H3e(wme){for(var Ame=wme.name+"",Hme=C2e[Ame],ebe=v1e.call(C2e,Ame)?Hme.length:0;ebe--;){var sbe=Hme[ebe],bbe=sbe.func;if(bbe==null||bbe==wme)return sbe.name}return Ame}function __e(wme){var Ame=v1e.call(dbe,"placeholder")?dbe:wme;return Ame.placeholder}function q0e(){var wme=dbe.iteratee||L4e;return wme=wme===L4e?tbe:wme,arguments.length?wme(arguments[0],arguments[1]):wme}function U3e(wme,Ame){var Hme=wme.__data__;return L6e(Ame)?Hme[typeof Ame=="string"?"string":"hash"]:Hme.map}function C4e(wme){for(var Ame=V1e(wme),Hme=Ame.length;Hme--;){var ebe=Ame[Hme],sbe=wme[ebe];Ame[Hme]=[ebe,sbe,g5e(sbe)]}return Ame}function K2e(wme,Ame){var Hme=f8e(wme,Ame);return G2e(Hme)?Hme:$P}function N6e(wme){var Ame=v1e.call(wme,r2e),Hme=wme[r2e];try{wme[r2e]=$P;var ebe=!0}catch{}var sbe=a_e.call(wme);return ebe&&(Ame?wme[r2e]=Hme:delete wme[r2e]),sbe}var S4e=s_e?function(wme){return wme==null?[]:(wme=o1e(wme),Uye(s_e(wme),function(Ame){return v3e.call(wme,Ame)}))}:z4e,m5e=s_e?function(wme){for(var Ame=[];wme;)Sye(Ame,S4e(wme)),wme=i_e(wme);return Ame}:z4e,K1e=W1e;(F_e&&K1e(new F_e(new ArrayBuffer(1)))!=Rbe||z2e&&K1e(new z2e)!=Zme||M_e&&K1e(M_e.resolve())!=abe||$2e&&K1e(new $2e)!=ube||V2e&&K1e(new V2e)!=Sbe)&&(K1e=function(wme){var Ame=W1e(wme),Hme=Ame==ibe?wme.constructor:$P,ebe=Hme?Y2e(Hme):"";if(ebe)switch(ebe){case I8e:return Rbe;case N8e:return Zme;case A8e:return abe;case P8e:return ube;case k8e:return Sbe}return Ame});function A6e(wme,Ame,Hme){for(var ebe=-1,sbe=Hme.length;++ebe<sbe;){var bbe=Hme[ebe],xbe=bbe.size;switch(bbe.type){case"drop":wme+=xbe;break;case"dropRight":Ame-=xbe;break;case"take":Ame=O1e(Ame,wme+xbe);break;case"takeRight":wme=A1e(wme,Ame-xbe);break}}return{start:wme,end:Ame}}function P6e(wme){var Ame=wme.match(y0e);return Ame?Ame[1].split(A0e):[]}function b5e(wme,Ame,Hme){Ame=w2e(Ame,wme);for(var ebe=-1,sbe=Ame.length,bbe=!1;++ebe<sbe;){var xbe=Jye(Ame[ebe]);if(!(bbe=wme!=null&&Hme(wme,xbe)))break;wme=wme[xbe]}return bbe||++ebe!=sbe?bbe:(sbe=wme==null?0:wme.length,!!sbe&&J3e(sbe)&&d2e(xbe,sbe)&&(Q0e(wme)||X2e(wme)))}function k6e(wme){var Ame=wme.length,Hme=new wme.constructor(Ame);return Ame&&typeof wme[0]=="string"&&v1e.call(wme,"index")&&(Hme.index=wme.index,Hme.input=wme.input),Hme}function v5e(wme){return typeof wme.constructor=="function"&&!K_e(wme)?S2e(i_e(wme)):{}}function D6e(wme,Ame,Hme){var ebe=wme.constructor;switch(Ame){case kbe:return b4e(wme);case Gme:case Jme:return new ebe(+wme);case Rbe:return g6e(wme,Hme);case Pbe:case Mbe:case Kbe:case Qbe:case Gbe:case Hbe:case d0e:case p0e:case S0e:return Q4e(wme,Hme);case Zme:return new ebe;case nbe:case mbe:return new ebe(wme);case hbe:return y6e(wme);case ube:return new ebe;case pbe:return _6e(wme)}}function F6e(wme,Ame){var Hme=Ame.length;if(!Hme)return wme;var ebe=Hme-1;return Ame[ebe]=(Hme>1?"& ":"")+Ame[ebe],Ame=Ame.join(Hme>2?", ":" "),wme.replace(b0e,`{
/* [wrapped with `+Ame+`] */
`)}function M6e(wme){return Q0e(wme)||X2e(wme)||!!(g3e&&wme&&wme[g3e])}function d2e(wme,Ame){var Hme=typeof wme;return Ame=Ame??Mme,!!Ame&&(Hme=="number"||Hme!="symbol"&&gbe.test(wme))&&wme>-1&&wme%1==0&&wme<Ame}function J1e(wme,Ame,Hme){if(!R1e(Hme))return!1;var ebe=typeof Ame;return(ebe=="number"?dye(Hme)&&d2e(Ame,Hme.length):ebe=="string"&&Ame in Hme)?zye(Hme[Ame],wme):!1}function x4e(wme,Ame){if(Q0e(wme))return!1;var Hme=typeof wme;return Hme=="number"||Hme=="symbol"||Hme=="boolean"||wme==null||yye(wme)?!0:t0e.test(wme)||!u0e.test(wme)||Ame!=null&&wme in o1e(Ame)}function L6e(wme){var Ame=typeof wme;return Ame=="string"||Ame=="number"||Ame=="symbol"||Ame=="boolean"?wme!=="__proto__":wme===null}function E4e(wme){var Ame=H3e(wme),Hme=dbe[Ame];if(typeof Hme!="function"||!(Ame in a1e.prototype))return!1;if(wme===Hme)return!0;var ebe=$4e(Hme);return!!ebe&&wme===ebe[0]}function B6e(wme){return!!h3e&&h3e in wme}var j6e=t_e?u2e:V4e;function K_e(wme){var Ame=wme&&wme.constructor,Hme=typeof Ame=="function"&&Ame.prototype||y2e;return wme===Hme}function g5e(wme){return wme===wme&&!R1e(wme)}function y5e(wme,Ame){return function(Hme){return Hme==null?!1:Hme[wme]===Ame&&(Ame!==$P||wme in o1e(Hme))}}function z6e(wme){var Ame=Y3e(wme,function(ebe){return Hme.size===lme&&Hme.clear(),ebe}),Hme=Ame.cache;return Ame}function V6e(wme,Ame){var Hme=wme[1],ebe=Ame[1],sbe=Hme|ebe,bbe=sbe<(hme|bme|$me),xbe=ebe==$me&&Hme==vme||ebe==$me&&Hme==Cme&&wme[7].length<=Ame[8]||ebe==($me|Cme)&&Ame[7].length<=Ame[8]&&Hme==vme;if(!(bbe||xbe))return wme;ebe&hme&&(wme[2]=Ame[2],sbe|=Hme&hme?0:mme);var Obe=Ame[3];if(Obe){var jbe=wme[3];wme[3]=jbe?t5e(jbe,Obe,Ame[4]):Obe,wme[4]=jbe?bye(wme[3],sme):Ame[4]}return Obe=Ame[5],Obe&&(jbe=wme[5],wme[5]=jbe?a5e(jbe,Obe,Ame[6]):Obe,wme[6]=jbe?bye(wme[5],sme):Ame[6]),Obe=Ame[7],Obe&&(wme[7]=Obe),ebe&$me&&(wme[8]=wme[8]==null?Ame[8]:O1e(wme[8],Ame[8])),wme[9]==null&&(wme[9]=Ame[9]),wme[0]=Ame[0],wme[1]=sbe,wme}function H6e(wme){var Ame=[];if(wme!=null)for(var Hme in o1e(wme))Ame.push(Hme);return Ame}function U6e(wme){return a_e.call(wme)}function _5e(wme,Ame,Hme){return Ame=A1e(Ame===$P?wme.length-1:Ame,0),function(){for(var ebe=arguments,sbe=-1,bbe=A1e(ebe.length-Ame,0),xbe=qbe(bbe);++sbe<bbe;)xbe[sbe]=ebe[Ame+sbe];sbe=-1;for(var Obe=qbe(Ame+1);++sbe<Ame;)Obe[sbe]=ebe[sbe];return Obe[Ame]=Hme(xbe),U1e(wme,this,Obe)}}function $5e(wme,Ame){return Ame.length<2?wme:l2e(wme,Iye(Ame,0,-1))}function W6e(wme,Ame){for(var Hme=wme.length,ebe=O1e(Ame.length,Hme),sbe=cye(wme);ebe--;){var bbe=Ame[ebe];wme[ebe]=d2e(bbe,Hme)?sbe[bbe]:$P}return wme}function w4e(wme,Ame){if(!(Ame==="constructor"&&typeof wme[Ame]=="function")&&Ame!="__proto__")return wme[Ame]}var C5e=x5e(W4e),Y_e=O8e||function(wme,Ame){return B1e.setTimeout(wme,Ame)},T4e=x5e(h6e);function S5e(wme,Ame,Hme){var ebe=Ame+"";return T4e(wme,F6e(ebe,q6e(P6e(ebe),Hme)))}function x5e(wme){var Ame=0,Hme=0;return function(){var ebe=_3e(),sbe=Ome-(ebe-Hme);if(Hme=ebe,sbe>0){if(++Ame>=Tme)return arguments[0]}else Ame=0;return wme.apply($P,arguments)}}function W3e(wme,Ame){var Hme=-1,ebe=wme.length,sbe=ebe-1;for(Ame=Ame===$P?ebe:Ame;++Hme<Ame;){var bbe=c4e(Hme,sbe),xbe=wme[bbe];wme[bbe]=wme[Hme],wme[Hme]=xbe}return wme.length=Ame,wme}var E5e=z6e(function(wme){var Ame=[];return wme.charCodeAt(0)===46&&Ame.push(""),wme.replace(v0e,function(Hme,ebe,sbe,bbe){Ame.push(sbe?bbe.replace(T0e,"$1"):ebe||Hme)}),Ame});function Jye(wme){if(typeof wme=="string"||yye(wme))return wme;var Ame=wme+"";return Ame=="0"&&1/wme==-Pme?"-0":Ame}function Y2e(wme){if(wme!=null){try{return M2e.call(wme)}catch{}try{return wme+""}catch{}}return""}function q6e(wme,Ame){return N1e(Wme,function(Hme){var ebe="_."+Hme[0];Ame&Hme[1]&&!Z2e(wme,ebe)&&wme.push(ebe)}),wme.sort()}function w5e(wme){if(wme instanceof a1e)return wme.clone();var Ame=new lye(wme.__wrapped__,wme.__chain__);return Ame.__actions__=cye(wme.__actions__),Ame.__index__=wme.__index__,Ame.__values__=wme.__values__,Ame}function G6e(wme,Ame,Hme){(Hme?J1e(wme,Ame,Hme):Ame===$P)?Ame=1:Ame=A1e(e1e(Ame),0);var ebe=wme==null?0:wme.length;if(!ebe||Ame<1)return[];for(var sbe=0,bbe=0,xbe=qbe(l_e(ebe/Ame));sbe<ebe;)xbe[bbe++]=Iye(wme,sbe,sbe+=Ame);return xbe}function K6e(wme){for(var Ame=-1,Hme=wme==null?0:wme.length,ebe=0,sbe=[];++Ame<Hme;){var bbe=wme[Ame];bbe&&(sbe[ebe++]=bbe)}return sbe}function Y6e(){var wme=arguments.length;if(!wme)return[];for(var Ame=qbe(wme-1),Hme=arguments[0],ebe=wme;ebe--;)Ame[ebe-1]=arguments[ebe];return Sye(Q0e(Hme)?cye(Hme):[Hme],j1e(Ame,1))}var X6e=l1e(function(wme,Ame){return D1e(wme)?x2e(wme,j1e(Ame,1,D1e,!0)):[]}),J6e=l1e(function(wme,Ame){var Hme=Nye(Ame);return D1e(Hme)&&(Hme=$P),D1e(wme)?x2e(wme,j1e(Ame,1,D1e,!0),q0e(Hme,2)):[]}),Z6e=l1e(function(wme,Ame){var Hme=Nye(Ame);return D1e(Hme)&&(Hme=$P),D1e(wme)?x2e(wme,j1e(Ame,1,D1e,!0),$P,Hme):[]});function Q6e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;return ebe?(Ame=Hme||Ame===$P?1:e1e(Ame),Iye(wme,Ame<0?0:Ame,ebe)):[]}function e7e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;return ebe?(Ame=Hme||Ame===$P?1:e1e(Ame),Ame=ebe-Ame,Iye(wme,0,Ame<0?0:Ame)):[]}function t7e(wme,Ame){return wme&&wme.length?M3e(wme,q0e(Ame,3),!0,!0):[]}function a7e(wme,Ame){return wme&&wme.length?M3e(wme,q0e(Ame,3),!0):[]}function n7e(wme,Ame,Hme,ebe){var sbe=wme==null?0:wme.length;return sbe?(Hme&&typeof Hme!="number"&&J1e(wme,Ame,Hme)&&(Hme=0,ebe=sbe),t4e(wme,Ame,Hme,ebe)):[]}function T5e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;if(!ebe)return-1;var sbe=Hme==null?0:e1e(Hme);return sbe<0&&(sbe=A1e(ebe+sbe,0)),Q2e(wme,q0e(Ame,3),sbe)}function O5e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;if(!ebe)return-1;var sbe=ebe-1;return Hme!==$P&&(sbe=e1e(Hme),sbe=Hme<0?A1e(ebe+sbe,0):O1e(sbe,ebe-1)),Q2e(wme,q0e(Ame,3),sbe,!0)}function R5e(wme){var Ame=wme==null?0:wme.length;return Ame?j1e(wme,1):[]}function r7e(wme){var Ame=wme==null?0:wme.length;return Ame?j1e(wme,Pme):[]}function i7e(wme,Ame){var Hme=wme==null?0:wme.length;return Hme?(Ame=Ame===$P?1:e1e(Ame),j1e(wme,Ame)):[]}function o7e(wme){for(var Ame=-1,Hme=wme==null?0:wme.length,ebe={};++Ame<Hme;){var sbe=wme[Ame];ebe[sbe[0]]=sbe[1]}return ebe}function I5e(wme){return wme&&wme.length?wme[0]:$P}function l7e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;if(!ebe)return-1;var sbe=Hme==null?0:e1e(Hme);return sbe<0&&(sbe=A1e(ebe+sbe,0)),m2e(wme,Ame,sbe)}function s7e(wme){var Ame=wme==null?0:wme.length;return Ame?Iye(wme,0,-1):[]}var c7e=l1e(function(wme){var Ame=_1e(wme,h4e);return Ame.length&&Ame[0]===wme[0]?U_e(Ame):[]}),d7e=l1e(function(wme){var Ame=Nye(wme),Hme=_1e(wme,h4e);return Ame===Nye(Hme)?Ame=$P:Hme.pop(),Hme.length&&Hme[0]===wme[0]?U_e(Hme,q0e(Ame,2)):[]}),u7e=l1e(function(wme){var Ame=Nye(wme),Hme=_1e(wme,h4e);return Ame=typeof Ame=="function"?Ame:$P,Ame&&Hme.pop(),Hme.length&&Hme[0]===wme[0]?U_e(Hme,$P,Ame):[]});function f7e(wme,Ame){return wme==null?"":_2e.call(wme,Ame)}function Nye(wme){var Ame=wme==null?0:wme.length;return Ame?wme[Ame-1]:$P}function p7e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;if(!ebe)return-1;var sbe=ebe;return Hme!==$P&&(sbe=e1e(Hme),sbe=sbe<0?A1e(ebe+sbe,0):O1e(sbe,ebe-1)),Ame===Ame?b8e(wme,Ame,sbe):Q2e(wme,o3e,sbe,!0)}function h7e(wme,Ame){return wme&&wme.length?Rye(wme,e1e(Ame)):$P}var m7e=l1e(N5e);function N5e(wme,Ame){return wme&&wme.length&&Ame&&Ame.length?s4e(wme,Ame):wme}function b7e(wme,Ame,Hme){return wme&&wme.length&&Ame&&Ame.length?s4e(wme,Ame,q0e(Hme,2)):wme}function v7e(wme,Ame,Hme){return wme&&wme.length&&Ame&&Ame.length?s4e(wme,Ame,$P,Hme):wme}var g7e=c2e(function(wme,Ame){var Hme=wme==null?0:wme.length,ebe=b_e(wme,Ame);return U4e(wme,_1e(Ame,function(sbe){return d2e(sbe,Hme)?+sbe:sbe}).sort(e5e)),ebe});function y7e(wme,Ame){var Hme=[];if(!(wme&&wme.length))return Hme;var ebe=-1,sbe=[],bbe=wme.length;for(Ame=q0e(Ame,3);++ebe<bbe;){var xbe=wme[ebe];Ame(xbe,ebe,wme)&&(Hme.push(xbe),sbe.push(ebe))}return U4e(wme,sbe),Hme}function O4e(wme){return wme==null?wme:R8e.call(wme)}function _7e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;return ebe?(Hme&&typeof Hme!="number"&&J1e(wme,Ame,Hme)?(Ame=0,Hme=ebe):(Ame=Ame==null?0:e1e(Ame),Hme=Hme===$P?ebe:e1e(Hme)),Iye(wme,Ame,Hme)):[]}function $7e(wme,Ame){return F3e(wme,Ame)}function C7e(wme,Ame,Hme){return u4e(wme,Ame,q0e(Hme,2))}function S7e(wme,Ame){var Hme=wme==null?0:wme.length;if(Hme){var ebe=F3e(wme,Ame);if(ebe<Hme&&zye(wme[ebe],Ame))return ebe}return-1}function x7e(wme,Ame){return F3e(wme,Ame,!0)}function E7e(wme,Ame,Hme){return u4e(wme,Ame,q0e(Hme,2),!0)}function w7e(wme,Ame){var Hme=wme==null?0:wme.length;if(Hme){var ebe=F3e(wme,Ame,!0)-1;if(zye(wme[ebe],Ame))return ebe}return-1}function T7e(wme){return wme&&wme.length?q4e(wme):[]}function O7e(wme,Ame){return wme&&wme.length?q4e(wme,q0e(Ame,2)):[]}function R7e(wme){var Ame=wme==null?0:wme.length;return Ame?Iye(wme,1,Ame):[]}function I7e(wme,Ame,Hme){return wme&&wme.length?(Ame=Hme||Ame===$P?1:e1e(Ame),Iye(wme,0,Ame<0?0:Ame)):[]}function N7e(wme,Ame,Hme){var ebe=wme==null?0:wme.length;return ebe?(Ame=Hme||Ame===$P?1:e1e(Ame),Ame=ebe-Ame,Iye(wme,Ame<0?0:Ame,ebe)):[]}function A7e(wme,Ame){return wme&&wme.length?M3e(wme,q0e(Ame,3),!1,!0):[]}function P7e(wme,Ame){return wme&&wme.length?M3e(wme,q0e(Ame,3)):[]}var k7e=l1e(function(wme){return E2e(j1e(wme,1,D1e,!0))}),D7e=l1e(function(wme){var Ame=Nye(wme);return D1e(Ame)&&(Ame=$P),E2e(j1e(wme,1,D1e,!0),q0e(Ame,2))}),F7e=l1e(function(wme){var Ame=Nye(wme);return Ame=typeof Ame=="function"?Ame:$P,E2e(j1e(wme,1,D1e,!0),$P,Ame)});function M7e(wme){return wme&&wme.length?E2e(wme):[]}function L7e(wme,Ame){return wme&&wme.length?E2e(wme,q0e(Ame,2)):[]}function B7e(wme,Ame){return Ame=typeof Ame=="function"?Ame:$P,wme&&wme.length?E2e(wme,$P,Ame):[]}function R4e(wme){if(!(wme&&wme.length))return[];var Ame=0;return wme=Uye(wme,function(Hme){if(D1e(Hme))return Ame=A1e(Hme.length,Ame),!0}),P_e(Ame,function(Hme){return _1e(wme,I_e(Hme))})}function A5e(wme,Ame){if(!(wme&&wme.length))return[];var Hme=R4e(wme);return Ame==null?Hme:_1e(Hme,function(ebe){return U1e(Ame,$P,ebe)})}var j7e=l1e(function(wme,Ame){return D1e(wme)?x2e(wme,Ame):[]}),z7e=l1e(function(wme){return p4e(Uye(wme,D1e))}),V7e=l1e(function(wme){var Ame=Nye(wme);return D1e(Ame)&&(Ame=$P),p4e(Uye(wme,D1e),q0e(Ame,2))}),H7e=l1e(function(wme){var Ame=Nye(wme);return Ame=typeof Ame=="function"?Ame:$P,p4e(Uye(wme,D1e),$P,Ame)}),U7e=l1e(R4e);function W7e(wme,Ame){return X4e(wme||[],Ame||[],W2e)}function q7e(wme,Ame){return X4e(wme||[],Ame||[],q_e)}var G7e=l1e(function(wme){var Ame=wme.length,Hme=Ame>1?wme[Ame-1]:$P;return Hme=typeof Hme=="function"?(wme.pop(),Hme):$P,A5e(wme,Hme)});function P5e(wme){var Ame=dbe(wme);return Ame.__chain__=!0,Ame}function K7e(wme,Ame){return Ame(wme),wme}function q3e(wme,Ame){return Ame(wme)}var Y7e=c2e(function(wme){var Ame=wme.length,Hme=Ame?wme[0]:0,ebe=this.__wrapped__,sbe=function(bbe){return b_e(bbe,wme)};return Ame>1||this.__actions__.length||!(ebe instanceof a1e)||!d2e(Hme)?this.thru(sbe):(ebe=ebe.slice(Hme,+Hme+(Ame?1:0)),ebe.__actions__.push({func:q3e,args:[sbe],thisArg:$P}),new lye(ebe,this.__chain__).thru(function(bbe){return Ame&&!bbe.length&&bbe.push($P),bbe}))});function X7e(){return P5e(this)}function J7e(){return new lye(this.value(),this.__chain__)}function Z7e(){this.__values__===$P&&(this.__values__=G5e(this.value()));var wme=this.__index__>=this.__values__.length,Ame=wme?$P:this.__values__[this.__index__++];return{done:wme,value:Ame}}function Q7e(){return this}function e9e(wme){for(var Ame,Hme=this;Hme instanceof f_e;){var ebe=w5e(Hme);ebe.__index__=0,ebe.__values__=$P,Ame?sbe.__wrapped__=ebe:Ame=ebe;var sbe=ebe;Hme=Hme.__wrapped__}return sbe.__wrapped__=wme,Ame}function t9e(){var wme=this.__wrapped__;if(wme instanceof a1e){var Ame=wme;return this.__actions__.length&&(Ame=new a1e(this)),Ame=Ame.reverse(),Ame.__actions__.push({func:q3e,args:[O4e],thisArg:$P}),new lye(Ame,this.__chain__)}return this.thru(O4e)}function a9e(){return Y4e(this.__wrapped__,this.__actions__)}var n9e=L3e(function(wme,Ame,Hme){v1e.call(wme,Hme)?++wme[Hme]:Lye(wme,Hme,1)});function r9e(wme,Ame,Hme){var ebe=Q0e(wme)?J2e:e4e;return Hme&&J1e(wme,Ame,Hme)&&(Ame=$P),ebe(wme,q0e(Ame,3))}function i9e(wme,Ame){var Hme=Q0e(wme)?Uye:A3e;return Hme(wme,q0e(Ame,3))}var o9e=o5e(T5e),l9e=o5e(O5e);function s9e(wme,Ame){return j1e(G3e(wme,Ame),1)}function c9e(wme,Ame){return j1e(G3e(wme,Ame),Pme)}function d9e(wme,Ame,Hme){return Hme=Hme===$P?1:e1e(Hme),j1e(G3e(wme,Ame),Hme)}function k5e(wme,Ame){var Hme=Q0e(wme)?N1e:Kye;return Hme(wme,q0e(Ame,3))}function D5e(wme,Ame){var Hme=Q0e(wme)?r8e:N3e;return Hme(wme,q0e(Ame,3))}var u9e=L3e(function(wme,Ame,Hme){v1e.call(wme,Hme)?wme[Hme].push(Ame):Lye(wme,Hme,[Ame])});function f9e(wme,Ame,Hme,ebe){wme=dye(wme)?wme:C_e(wme),Hme=Hme&&!ebe?e1e(Hme):0;var sbe=wme.length;return Hme<0&&(Hme=A1e(sbe+Hme,0)),Z3e(wme)?Hme<=sbe&&wme.indexOf(Ame,Hme)>-1:!!sbe&&m2e(wme,Ame,Hme)>-1}var p9e=l1e(function(wme,Ame,Hme){var ebe=-1,sbe=typeof Ame=="function",bbe=dye(wme)?qbe(wme.length):[];return Kye(wme,function(xbe){bbe[++ebe]=sbe?U1e(Ame,xbe,Hme):Oye(xbe,Ame,Hme)}),bbe}),h9e=L3e(function(wme,Ame,Hme){Lye(wme,Hme,Ame)});function G3e(wme,Ame){var Hme=Q0e(wme)?_1e:Xbe;return Hme(wme,q0e(Ame,3))}function m9e(wme,Ame,Hme,ebe){return wme==null?[]:(Q0e(Ame)||(Ame=Ame==null?[]:[Ame]),Hme=ebe?$P:Hme,Q0e(Hme)||(Hme=Hme==null?[]:[Hme]),jye(wme,Ame,Hme))}var b9e=L3e(function(wme,Ame,Hme){wme[Hme?0:1].push(Ame)},function(){return[[],[]]});function v9e(wme,Ame,Hme){var ebe=Q0e(wme)?O_e:l3e,sbe=arguments.length<3;return ebe(wme,q0e(Ame,4),Hme,sbe,Kye)}function g9e(wme,Ame,Hme){var ebe=Q0e(wme)?i8e:l3e,sbe=arguments.length<3;return ebe(wme,q0e(Ame,4),Hme,sbe,N3e)}function y9e(wme,Ame){var Hme=Q0e(wme)?Uye:A3e;return Hme(wme,X3e(q0e(Ame,3)))}function _9e(wme){var Ame=Q0e(wme)?R3e:f6e;return Ame(wme)}function $9e(wme,Ame,Hme){(Hme?J1e(wme,Ame,Hme):Ame===$P)?Ame=1:Ame=e1e(Ame);var ebe=Q0e(wme)?X8e:p6e;return ebe(wme,Ame)}function C9e(wme){var Ame=Q0e(wme)?J8e:m6e;return Ame(wme)}function S9e(wme){if(wme==null)return 0;if(dye(wme))return Z3e(wme)?Wye(wme):wme.length;var Ame=K1e(wme);return Ame==Zme||Ame==ube?wme.size:rbe(wme).length}function x9e(wme,Ame,Hme){var ebe=Q0e(wme)?R_e:b6e;return Hme&&J1e(wme,Ame,Hme)&&(Ame=$P),ebe(wme,q0e(Ame,3))}var E9e=l1e(function(wme,Ame){if(wme==null)return[];var Hme=Ame.length;return Hme>1&&J1e(wme,Ame[0],Ame[1])?Ame=[]:Hme>2&&J1e(Ame[0],Ame[1],Ame[2])&&(Ame=[Ame[0]]),jye(wme,j1e(Ame,1),[])}),K3e=T8e||function(){return B1e.Date.now()};function w9e(wme,Ame){if(typeof Ame!="function")throw new Q1e(rme);return wme=e1e(wme),function(){if(--wme<1)return Ame.apply(this,arguments)}}function F5e(wme,Ame,Hme){return Ame=Hme?$P:Ame,Ame=wme&&Ame==null?wme.length:Ame,s2e(wme,$me,$P,$P,$P,$P,Ame)}function M5e(wme,Ame){var Hme;if(typeof Ame!="function")throw new Q1e(rme);return wme=e1e(wme),function(){return--wme>0&&(Hme=Ame.apply(this,arguments)),wme<=1&&(Ame=$P),Hme}}var I4e=l1e(function(wme,Ame,Hme){var ebe=hme;if(Hme.length){var sbe=bye(Hme,__e(I4e));ebe|=yme}return s2e(wme,ebe,Ame,Hme,sbe)}),L5e=l1e(function(wme,Ame,Hme){var ebe=hme|bme;if(Hme.length){var sbe=bye(Hme,__e(L5e));ebe|=yme}return s2e(Ame,ebe,wme,Hme,sbe)});function B5e(wme,Ame,Hme){Ame=Hme?$P:Ame;var ebe=s2e(wme,vme,$P,$P,$P,$P,$P,Ame);return ebe.placeholder=B5e.placeholder,ebe}function j5e(wme,Ame,Hme){Ame=Hme?$P:Ame;var ebe=s2e(wme,gme,$P,$P,$P,$P,$P,Ame);return ebe.placeholder=j5e.placeholder,ebe}function z5e(wme,Ame,Hme){var ebe,sbe,bbe,xbe,Obe,jbe,l0e=0,s0e=!1,h0e=!1,N0e=!0;if(typeof wme!="function")throw new Q1e(rme);Ame=Aye(Ame)||0,R1e(Hme)&&(s0e=!!Hme.leading,h0e="maxWait"in Hme,bbe=h0e?A1e(Aye(Hme.maxWait)||0,Ame):bbe,N0e="trailing"in Hme?!!Hme.trailing:N0e);function H0e(F1e){var Vye=ebe,p2e=sbe;return ebe=sbe=$P,l0e=F1e,xbe=wme.apply(p2e,Vye),xbe}function K0e(F1e){return l0e=F1e,Obe=Y_e(s1e,Ame),s0e?H0e(F1e):xbe}function r1e(F1e){var Vye=F1e-jbe,p2e=F1e-l0e,o6e=Ame-Vye;return h0e?O1e(o6e,bbe-p2e):o6e}function Y0e(F1e){var Vye=F1e-jbe,p2e=F1e-l0e;return jbe===$P||Vye>=Ame||Vye<0||h0e&&p2e>=bbe}function s1e(){var F1e=K3e();if(Y0e(F1e))return d1e(F1e);Obe=Y_e(s1e,r1e(F1e))}function d1e(F1e){return Obe=$P,N0e&&ebe?H0e(F1e):(ebe=sbe=$P,xbe)}function _ye(){Obe!==$P&&J4e(Obe),l0e=0,ebe=jbe=sbe=Obe=$P}function Z1e(){return Obe===$P?xbe:d1e(K3e())}function $ye(){var F1e=K3e(),Vye=Y0e(F1e);if(ebe=arguments,sbe=this,jbe=F1e,Vye){if(Obe===$P)return K0e(jbe);if(h0e)return J4e(Obe),Obe=Y_e(s1e,Ame),H0e(jbe)}return Obe===$P&&(Obe=Y_e(s1e,Ame)),xbe}return $ye.cancel=_ye,$ye.flush=Z1e,$ye}var T9e=l1e(function(wme,Ame){return Eye(wme,1,Ame)}),O9e=l1e(function(wme,Ame,Hme){return Eye(wme,Aye(Ame)||0,Hme)});function R9e(wme){return s2e(wme,Sme)}function Y3e(wme,Ame){if(typeof wme!="function"||Ame!=null&&typeof Ame!="function")throw new Q1e(rme);var Hme=function(){var ebe=arguments,sbe=Ame?Ame.apply(this,ebe):ebe[0],bbe=Hme.cache;if(bbe.has(sbe))return bbe.get(sbe);var xbe=wme.apply(this,ebe);return Hme.cache=bbe.set(sbe,xbe)||bbe,xbe};return Hme.cache=new(Y3e.Cache||Mye),Hme}Y3e.Cache=Mye;function X3e(wme){if(typeof wme!="function")throw new Q1e(rme);return function(){var Ame=arguments;switch(Ame.length){case 0:return!wme.call(this);case 1:return!wme.call(this,Ame[0]);case 2:return!wme.call(this,Ame[0],Ame[1]);case 3:return!wme.call(this,Ame[0],Ame[1],Ame[2])}return!wme.apply(this,Ame)}}function I9e(wme){return M5e(2,wme)}var N9e=v6e(function(wme,Ame){Ame=Ame.length==1&&Q0e(Ame[0])?_1e(Ame[0],G1e(q0e())):_1e(j1e(Ame,1),G1e(q0e()));var Hme=Ame.length;return l1e(function(ebe){for(var sbe=-1,bbe=O1e(ebe.length,Hme);++sbe<bbe;)ebe[sbe]=Ame[sbe].call(this,ebe[sbe]);return U1e(wme,this,ebe)})}),N4e=l1e(function(wme,Ame){var Hme=bye(Ame,__e(N4e));return s2e(wme,yme,$P,Ame,Hme)}),V5e=l1e(function(wme,Ame){var Hme=bye(Ame,__e(V5e));return s2e(wme,_me,$P,Ame,Hme)}),A9e=c2e(function(wme,Ame){return s2e(wme,Cme,$P,$P,$P,Ame)});function P9e(wme,Ame){if(typeof wme!="function")throw new Q1e(rme);return Ame=Ame===$P?Ame:e1e(Ame),l1e(wme,Ame)}function k9e(wme,Ame){if(typeof wme!="function")throw new Q1e(rme);return Ame=Ame==null?0:A1e(e1e(Ame),0),l1e(function(Hme){var ebe=Hme[Ame],sbe=T2e(Hme,0,Ame);return ebe&&Sye(sbe,ebe),U1e(wme,this,sbe)})}function D9e(wme,Ame,Hme){var ebe=!0,sbe=!0;if(typeof wme!="function")throw new Q1e(rme);return R1e(Hme)&&(ebe="leading"in Hme?!!Hme.leading:ebe,sbe="trailing"in Hme?!!Hme.trailing:sbe),z5e(wme,Ame,{leading:ebe,maxWait:Ame,trailing:sbe})}function F9e(wme){return F5e(wme,1)}function M9e(wme,Ame){return N4e(m4e(Ame),wme)}function L9e(){if(!arguments.length)return[];var wme=arguments[0];return Q0e(wme)?wme:[wme]}function B9e(wme){return X1e(wme,ume)}function j9e(wme,Ame){return Ame=typeof Ame=="function"?Ame:$P,X1e(wme,ume,Ame)}function z9e(wme){return X1e(wme,cme|ume)}function V9e(wme,Ame){return Ame=typeof Ame=="function"?Ame:$P,X1e(wme,cme|ume,Ame)}function H9e(wme,Ame){return Ame==null||I3e(wme,Ame,V1e(Ame))}function zye(wme,Ame){return wme===Ame||wme!==wme&&Ame!==Ame}var U9e=V3e(H_e),W9e=V3e(function(wme,Ame){return wme>=Ame}),X2e=D3e(function(){return arguments}())?D3e:function(wme){return P1e(wme)&&v1e.call(wme,"callee")&&!v3e.call(wme,"callee")},Q0e=qbe.isArray,q9e=e3e?G1e(e3e):i4e;function dye(wme){return wme!=null&&J3e(wme.length)&&!u2e(wme)}function D1e(wme){return P1e(wme)&&dye(wme)}function G9e(wme){return wme===!0||wme===!1||P1e(wme)&&W1e(wme)==Gme}var O2e=y3e||V4e,K9e=w_e?G1e(w_e):o4e;function Y9e(wme){return P1e(wme)&&wme.nodeType===1&&!X_e(wme)}function X9e(wme){if(wme==null)return!0;if(dye(wme)&&(Q0e(wme)||typeof wme=="string"||typeof wme.splice=="function"||O2e(wme)||$_e(wme)||X2e(wme)))return!wme.length;var Ame=K1e(wme);if(Ame==Zme||Ame==ube)return!wme.size;if(K_e(wme))return!rbe(wme).length;for(var Hme in wme)if(v1e.call(wme,Hme))return!1;return!0}function J9e(wme,Ame){return q2e(wme,Ame)}function Z9e(wme,Ame,Hme){Hme=typeof Hme=="function"?Hme:$P;var ebe=Hme?Hme(wme,Ame):$P;return ebe===$P?q2e(wme,Ame,$P,Hme):!!ebe}function A4e(wme){if(!P1e(wme))return!1;var Ame=W1e(wme);return Ame==Qme||Ame==Yme||typeof wme.message=="string"&&typeof wme.name=="string"&&!X_e(wme)}function Q9e(wme){return typeof wme=="number"&&j2e(wme)}function u2e(wme){if(!R1e(wme))return!1;var Ame=W1e(wme);return Ame==Xme||Ame==Kme||Ame==Ume||Ame==obe}function H5e(wme){return typeof wme=="number"&&wme==e1e(wme)}function J3e(wme){return typeof wme=="number"&&wme>-1&&wme%1==0&&wme<=Mme}function R1e(wme){var Ame=typeof wme;return wme!=null&&(Ame=="object"||Ame=="function")}function P1e(wme){return wme!=null&&typeof wme=="object"}var U5e=t3e?G1e(t3e):W_e;function e$e(wme,Ame){return wme===Ame||Yye(wme,Ame,C4e(Ame))}function t$e(wme,Ame,Hme){return Hme=typeof Hme=="function"?Hme:$P,Yye(wme,Ame,C4e(Ame),Hme)}function a$e(wme){return W5e(wme)&&wme!=+wme}function n$e(wme){if(j6e(wme))throw new J0e(nme);return G2e(wme)}function r$e(wme){return wme===null}function i$e(wme){return wme==null}function W5e(wme){return typeof wme=="number"||P1e(wme)&&W1e(wme)==nbe}function X_e(wme){if(!P1e(wme)||W1e(wme)!=ibe)return!1;var Ame=i_e(wme);if(Ame===null)return!0;var Hme=v1e.call(Ame,"constructor")&&Ame.constructor;return typeof Hme=="function"&&Hme instanceof Hme&&M2e.call(Hme)==S8e}var P4e=a3e?G1e(a3e):c1e;function o$e(wme){return H5e(wme)&&wme>=-Mme&&wme<=Mme}var q5e=P2e?G1e(P2e):Fme;function Z3e(wme){return typeof wme=="string"||!Q0e(wme)&&P1e(wme)&&W1e(wme)==mbe}function yye(wme){return typeof wme=="symbol"||P1e(wme)&&W1e(wme)==pbe}var $_e=Pye?G1e(Pye):qme;function l$e(wme){return wme===$P}function s$e(wme){return P1e(wme)&&K1e(wme)==Sbe}function c$e(wme){return P1e(wme)&&W1e(wme)==vbe}var d$e=V3e(wbe),u$e=V3e(function(wme,Ame){return wme<=Ame});function G5e(wme){if(!wme)return[];if(dye(wme))return Z3e(wme)?Y1e(wme):cye(wme);if(L2e&&wme[L2e])return h8e(wme[L2e]());var Ame=K1e(wme),Hme=Ame==Zme?D_e:Ame==ube?v2e:C_e;return Hme(wme)}function f2e(wme){if(!wme)return wme===0?wme:0;if(wme=Aye(wme),wme===Pme||wme===-Pme){var Ame=wme<0?-1:1;return Ame*kme}return wme===wme?wme:0}function e1e(wme){var Ame=f2e(wme),Hme=Ame%1;return Ame===Ame?Hme?Ame-Hme:Ame:0}function K5e(wme){return wme?o2e(e1e(wme),0,Dme):0}function Aye(wme){if(typeof wme=="number")return wme;if(yye(wme))return Bme;if(R1e(wme)){var Ame=typeof wme.valueOf=="function"?wme.valueOf():wme;wme=R1e(Ame)?Ame+"":Ame}if(typeof wme!="string")return wme===0?wme:+wme;wme=s3e(wme);var Hme=f0e.test(wme);return Hme||o0e.test(wme)?Z_e(wme.slice(2),Hme?2:8):n0e.test(wme)?Bme:+wme}function Y5e(wme){return Xye(wme,uye(wme))}function f$e(wme){return wme?o2e(e1e(wme),-Mme,Mme):wme===0?wme:0}function y1e(wme){return wme==null?"":gye(wme)}var p$e=g_e(function(wme,Ame){if(K_e(Ame)||dye(Ame)){Xye(Ame,V1e(Ame),wme);return}for(var Hme in Ame)v1e.call(Ame,Hme)&&W2e(wme,Hme,Ame[Hme])}),X5e=g_e(function(wme,Ame){Xye(Ame,uye(Ame),wme)}),Q3e=g_e(function(wme,Ame,Hme,ebe){Xye(Ame,uye(Ame),wme,ebe)}),h$e=g_e(function(wme,Ame,Hme,ebe){Xye(Ame,V1e(Ame),wme,ebe)}),m$e=c2e(b_e);function b$e(wme,Ame){var Hme=S2e(wme);return Ame==null?Hme:B_e(Hme,Ame)}var v$e=l1e(function(wme,Ame){wme=o1e(wme);var Hme=-1,ebe=Ame.length,sbe=ebe>2?Ame[2]:$P;for(sbe&&J1e(Ame[0],Ame[1],sbe)&&(ebe=1);++Hme<ebe;)for(var bbe=Ame[Hme],xbe=uye(bbe),Obe=-1,jbe=xbe.length;++Obe<jbe;){var l0e=xbe[Obe],s0e=wme[l0e];(s0e===$P||zye(s0e,y2e[l0e])&&!v1e.call(wme,l0e))&&(wme[l0e]=bbe[l0e])}return wme}),g$e=l1e(function(wme){return wme.push($P,p5e),U1e(J5e,$P,wme)});function y$e(wme,Ame){return r3e(wme,q0e(Ame,3),wye)}function _$e(wme,Ame){return r3e(wme,q0e(Ame,3),V_e)}function $$e(wme,Ame){return wme==null?wme:z_e(wme,q0e(Ame,3),uye)}function C$e(wme,Ame){return wme==null?wme:P3e(wme,q0e(Ame,3),uye)}function S$e(wme,Ame){return wme&&wye(wme,q0e(Ame,3))}function x$e(wme,Ame){return wme&&V_e(wme,q0e(Ame,3))}function E$e(wme){return wme==null?[]:Tye(wme,V1e(wme))}function w$e(wme){return wme==null?[]:Tye(wme,uye(wme))}function k4e(wme,Ame,Hme){var ebe=wme==null?$P:l2e(wme,Ame);return ebe===$P?Hme:ebe}function T$e(wme,Ame){return wme!=null&&b5e(wme,Ame,a4e)}function D4e(wme,Ame){return wme!=null&&b5e(wme,Ame,n4e)}var O$e=s5e(function(wme,Ame,Hme){Ame!=null&&typeof Ame.toString!="function"&&(Ame=a_e.call(Ame)),wme[Ame]=Hme},M4e(fye)),R$e=s5e(function(wme,Ame,Hme){Ame!=null&&typeof Ame.toString!="function"&&(Ame=a_e.call(Ame)),v1e.call(wme,Ame)?wme[Ame].push(Hme):wme[Ame]=[Hme]},q0e),I$e=l1e(Oye);function V1e(wme){return dye(wme)?m_e(wme):rbe(wme)}function uye(wme){return dye(wme)?m_e(wme,!0):cbe(wme)}function N$e(wme,Ame){var Hme={};return Ame=q0e(Ame,3),wye(wme,function(ebe,sbe,bbe){Lye(Hme,Ame(ebe,sbe,bbe),ebe)}),Hme}function A$e(wme,Ame){var Hme={};return Ame=q0e(Ame,3),wye(wme,function(ebe,sbe,bbe){Lye(Hme,sbe,Ame(ebe,sbe,bbe))}),Hme}var P$e=g_e(function(wme,Ame,Hme){n1e(wme,Ame,Hme)}),J5e=g_e(function(wme,Ame,Hme,ebe){n1e(wme,Ame,Hme,ebe)}),k$e=c2e(function(wme,Ame){var Hme={};if(wme==null)return Hme;var ebe=!1;Ame=_1e(Ame,function(bbe){return bbe=w2e(bbe,wme),ebe||(ebe=bbe.length>1),bbe}),Xye(wme,_4e(wme),Hme),ebe&&(Hme=X1e(Hme,cme|dme|ume,O6e));for(var sbe=Ame.length;sbe--;)f4e(Hme,Ame[sbe]);return Hme});function D$e(wme,Ame){return Z5e(wme,X3e(q0e(Ame)))}var F$e=c2e(function(wme,Ame){return wme==null?{}:c6e(wme,Ame)});function Z5e(wme,Ame){if(wme==null)return{};var Hme=_1e(_4e(wme),function(ebe){return[ebe]});return Ame=q0e(Ame),H4e(wme,Hme,function(ebe,sbe){return Ame(ebe,sbe[0])})}function M$e(wme,Ame,Hme){Ame=w2e(Ame,wme);var ebe=-1,sbe=Ame.length;for(sbe||(sbe=1,wme=$P);++ebe<sbe;){var bbe=wme==null?$P:wme[Jye(Ame[ebe])];bbe===$P&&(ebe=sbe,bbe=Hme),wme=u2e(bbe)?bbe.call(wme):bbe}return wme}function L$e(wme,Ame,Hme){return wme==null?wme:q_e(wme,Ame,Hme)}function B$e(wme,Ame,Hme,ebe){return ebe=typeof ebe=="function"?ebe:$P,wme==null?wme:q_e(wme,Ame,Hme,ebe)}var Q5e=u5e(V1e),e6e=u5e(uye);function j$e(wme,Ame,Hme){var ebe=Q0e(wme),sbe=ebe||O2e(wme)||$_e(wme);if(Ame=q0e(Ame,4),Hme==null){var bbe=wme&&wme.constructor;sbe?Hme=ebe?new bbe:[]:R1e(wme)?Hme=u2e(bbe)?S2e(i_e(wme)):{}:Hme={}}return(sbe?N1e:wye)(wme,function(xbe,Obe,jbe){return Ame(Hme,xbe,Obe,jbe)}),Hme}function z$e(wme,Ame){return wme==null?!0:f4e(wme,Ame)}function V$e(wme,Ame,Hme){return wme==null?wme:K4e(wme,Ame,m4e(Hme))}function H$e(wme,Ame,Hme,ebe){return ebe=typeof ebe=="function"?ebe:$P,wme==null?wme:K4e(wme,Ame,m4e(Hme),ebe)}function C_e(wme){return wme==null?[]:k_e(wme,V1e(wme))}function U$e(wme){return wme==null?[]:k_e(wme,uye(wme))}function W$e(wme,Ame,Hme){return Hme===$P&&(Hme=Ame,Ame=$P),Hme!==$P&&(Hme=Aye(Hme),Hme=Hme===Hme?Hme:0),Ame!==$P&&(Ame=Aye(Ame),Ame=Ame===Ame?Ame:0),o2e(Aye(wme),Ame,Hme)}function q$e(wme,Ame,Hme){return Ame=f2e(Ame),Hme===$P?(Hme=Ame,Ame=0):Hme=f2e(Hme),wme=Aye(wme),r4e(wme,Ame,Hme)}function G$e(wme,Ame,Hme){if(Hme&&typeof Hme!="boolean"&&J1e(wme,Ame,Hme)&&(Ame=Hme=$P),Hme===$P&&(typeof Ame=="boolean"?(Hme=Ame,Ame=$P):typeof wme=="boolean"&&(Hme=wme,wme=$P)),wme===$P&&Ame===$P?(wme=0,Ame=1):(wme=f2e(wme),Ame===$P?(Ame=wme,wme=0):Ame=f2e(Ame)),wme>Ame){var ebe=wme;wme=Ame,Ame=ebe}if(Hme||wme%1||Ame%1){var sbe=C3e();return O1e(wme+sbe*(Ame-wme+J_e("1e-"+((sbe+"").length-1))),Ame)}return c4e(wme,Ame)}var K$e=y_e(function(wme,Ame,Hme){return Ame=Ame.toLowerCase(),wme+(Hme?t6e(Ame):Ame)});function t6e(wme){return F4e(y1e(wme).toLowerCase())}function a6e(wme){return wme=y1e(wme),wme&&wme.replace(Tbe,d3e).replace(F0e,"")}function Y$e(wme,Ame,Hme){wme=y1e(wme),Ame=gye(Ame);var ebe=wme.length;Hme=Hme===$P?ebe:o2e(e1e(Hme),0,ebe);var sbe=Hme;return Hme-=Ame.length,Hme>=0&&wme.slice(Hme,sbe)==Ame}function X$e(wme){return wme=y1e(wme),wme&&c0e.test(wme)?wme.replace(Ybe,d8e):wme}function J$e(wme){return wme=y1e(wme),wme&&Wbe.test(wme)?wme.replace(L0e,"\\$&"):wme}var Z$e=y_e(function(wme,Ame,Hme){return wme+(Hme?"-":"")+Ame.toLowerCase()}),Q$e=y_e(function(wme,Ame,Hme){return wme+(Hme?" ":"")+Ame.toLowerCase()}),eCe=i5e("toLowerCase");function tCe(wme,Ame,Hme){wme=y1e(wme),Ame=e1e(Ame);var ebe=Ame?Wye(wme):0;if(!Ame||ebe>=Ame)return wme;var sbe=(Ame-ebe)/2;return z3e(B2e(sbe),Hme)+wme+z3e(l_e(sbe),Hme)}function aCe(wme,Ame,Hme){wme=y1e(wme),Ame=e1e(Ame);var ebe=Ame?Wye(wme):0;return Ame&&ebe<Ame?wme+z3e(Ame-ebe,Hme):wme}function nCe(wme,Ame,Hme){wme=y1e(wme),Ame=e1e(Ame);var ebe=Ame?Wye(wme):0;return Ame&&ebe<Ame?z3e(Ame-ebe,Hme)+wme:wme}function rCe(wme,Ame,Hme){return Hme||Ame==null?Ame=0:Ame&&(Ame=+Ame),$3e(y1e(wme).replace(a0e,""),Ame||0)}function iCe(wme,Ame,Hme){return(Hme?J1e(wme,Ame,Hme):Ame===$P)?Ame=1:Ame=e1e(Ame),d4e(y1e(wme),Ame)}function oCe(){var wme=arguments,Ame=y1e(wme[0]);return wme.length<3?Ame:Ame.replace(wme[1],wme[2])}var lCe=y_e(function(wme,Ame,Hme){return wme+(Hme?"_":"")+Ame.toLowerCase()});function sCe(wme,Ame,Hme){return Hme&&typeof Hme!="number"&&J1e(wme,Ame,Hme)&&(Ame=Hme=$P),Hme=Hme===$P?Dme:Hme>>>0,Hme?(wme=y1e(wme),wme&&(typeof Ame=="string"||Ame!=null&&!P4e(Ame))&&(Ame=gye(Ame),!Ame&&xye(wme))?T2e(Y1e(wme),0,Hme):wme.split(Ame,Hme)):[]}var cCe=y_e(function(wme,Ame,Hme){return wme+(Hme?" ":"")+F4e(Ame)});function dCe(wme,Ame,Hme){return wme=y1e(wme),Hme=Hme==null?0:o2e(e1e(Hme),0,wme.length),Ame=gye(Ame),wme.slice(Hme,Hme+Ame.length)==Ame}function uCe(wme,Ame,Hme){var ebe=dbe.templateSettings;Hme&&J1e(wme,Ame,Hme)&&(Ame=$P),wme=y1e(wme),Ame=Q3e({},Ame,ebe,f5e);var sbe=Q3e({},Ame.imports,ebe.imports,f5e),bbe=V1e(sbe),xbe=k_e(sbe,bbe),Obe,jbe,l0e=0,s0e=Ame.interpolate||Vbe,h0e="__p += '",N0e=kye((Ame.escape||Vbe).source+"|"+s0e.source+"|"+(s0e===$0e?$be:Vbe).source+"|"+(Ame.evaluate||Vbe).source+"|$","g"),H0e="//# sourceURL="+(v1e.call(Ame,"sourceURL")?(Ame.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++A2e+"]")+`
`;wme.replace(N0e,function(Y0e,s1e,d1e,_ye,Z1e,$ye){return d1e||(d1e=_ye),h0e+=wme.slice(l0e,$ye).replace(Ube,u8e),s1e&&(Obe=!0,h0e+=`' +
__e(`+s1e+`) +
'`),Z1e&&(jbe=!0,h0e+=`';
`+Z1e+`;
__p += '`),d1e&&(h0e+=`' +
((__t = (`+d1e+`)) == null ? '' : __t) +
'`),l0e=$ye+Y0e.length,Y0e}),h0e+=`';
`;var K0e=v1e.call(Ame,"variable")&&Ame.variable;if(!K0e)h0e=`with (obj) {
`+h0e+`
}
`;else if(w0e.test(K0e))throw new J0e(ime);h0e=(jbe?h0e.replace(P0e,""):h0e).replace(e0e,"$1").replace(_0e,"$1;"),h0e="function("+(K0e||"obj")+`) {
`+(K0e?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Obe?", __e = _.escape":"")+(jbe?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+h0e+`return __p
}`;var r1e=r6e(function(){return h1e(bbe,H0e+"return "+h0e).apply($P,xbe)});if(r1e.source=h0e,A4e(r1e))throw r1e;return r1e}function fCe(wme){return y1e(wme).toLowerCase()}function pCe(wme){return y1e(wme).toUpperCase()}function hCe(wme,Ame,Hme){if(wme=y1e(wme),wme&&(Hme||Ame===$P))return s3e(wme);if(!wme||!(Ame=gye(Ame)))return wme;var ebe=Y1e(wme),sbe=Y1e(Ame),bbe=S1e(ebe,sbe),xbe=c3e(ebe,sbe)+1;return T2e(ebe,bbe,xbe).join("")}function mCe(wme,Ame,Hme){if(wme=y1e(wme),wme&&(Hme||Ame===$P))return wme.slice(0,e_e(wme)+1);if(!wme||!(Ame=gye(Ame)))return wme;var ebe=Y1e(wme),sbe=c3e(ebe,Y1e(Ame))+1;return T2e(ebe,0,sbe).join("")}function bCe(wme,Ame,Hme){if(wme=y1e(wme),wme&&(Hme||Ame===$P))return wme.replace(a0e,"");if(!wme||!(Ame=gye(Ame)))return wme;var ebe=Y1e(wme),sbe=S1e(ebe,Y1e(Ame));return T2e(ebe,sbe).join("")}function vCe(wme,Ame){var Hme=Eme,ebe=xme;if(R1e(Ame)){var sbe="separator"in Ame?Ame.separator:sbe;Hme="length"in Ame?e1e(Ame.length):Hme,ebe="omission"in Ame?gye(Ame.omission):ebe}wme=y1e(wme);var bbe=wme.length;if(xye(wme)){var xbe=Y1e(wme);bbe=xbe.length}if(Hme>=bbe)return wme;var Obe=Hme-Wye(ebe);if(Obe<1)return ebe;var jbe=xbe?T2e(xbe,0,Obe).join(""):wme.slice(0,Obe);if(sbe===$P)return jbe+ebe;if(xbe&&(Obe+=jbe.length-Obe),P4e(sbe)){if(wme.slice(Obe).search(sbe)){var l0e,s0e=jbe;for(sbe.global||(sbe=kye(sbe.source,y1e(Ibe.exec(sbe))+"g")),sbe.lastIndex=0;l0e=sbe.exec(s0e);)var h0e=l0e.index;jbe=jbe.slice(0,h0e===$P?Obe:h0e)}}else if(wme.indexOf(gye(sbe),Obe)!=Obe){var N0e=jbe.lastIndexOf(sbe);N0e>-1&&(jbe=jbe.slice(0,N0e))}return jbe+ebe}function gCe(wme){return wme=y1e(wme),wme&&Jbe.test(wme)?wme.replace(m0e,v8e):wme}var yCe=y_e(function(wme,Ame,Hme){return wme+(Hme?" ":"")+Ame.toUpperCase()}),F4e=i5e("toUpperCase");function n6e(wme,Ame,Hme){return wme=y1e(wme),Ame=Hme?$P:Ame,Ame===$P?p8e(wme)?_8e(wme):l8e(wme):wme.match(Ame)||[]}var r6e=l1e(function(wme,Ame){try{return U1e(wme,$P,Ame)}catch(Hme){return A4e(Hme)?Hme:new J0e(Hme)}}),_Ce=c2e(function(wme,Ame){return N1e(Ame,function(Hme){Hme=Jye(Hme),Lye(wme,Hme,I4e(wme[Hme],wme))}),wme});function $Ce(wme){var Ame=wme==null?0:wme.length,Hme=q0e();return wme=Ame?_1e(wme,function(ebe){if(typeof ebe[1]!="function")throw new Q1e(rme);return[Hme(ebe[0]),ebe[1]]}):[],l1e(function(ebe){for(var sbe=-1;++sbe<Ame;){var bbe=wme[sbe];if(U1e(bbe[0],this,ebe))return U1e(bbe[1],this,ebe)}})}function CCe(wme){return j_e(X1e(wme,cme))}function M4e(wme){return function(){return wme}}function SCe(wme,Ame){return wme==null||wme!==wme?Ame:wme}var xCe=l5e(),ECe=l5e(!0);function fye(wme){return wme}function L4e(wme){return tbe(typeof wme=="function"?wme:X1e(wme,cme))}function wCe(wme){return k0e(X1e(wme,cme))}function TCe(wme,Ame){return X0e(wme,X1e(Ame,cme))}var OCe=l1e(function(wme,Ame){return function(Hme){return Oye(Hme,wme,Ame)}}),RCe=l1e(function(wme,Ame){return function(Hme){return Oye(wme,Hme,Ame)}});function B4e(wme,Ame,Hme){var ebe=V1e(Ame),sbe=Tye(Ame,ebe);Hme==null&&!(R1e(Ame)&&(sbe.length||!ebe.length))&&(Hme=Ame,Ame=wme,wme=this,sbe=Tye(Ame,V1e(Ame)));var bbe=!(R1e(Hme)&&"chain"in Hme)||!!Hme.chain,xbe=u2e(wme);return N1e(sbe,function(Obe){var jbe=Ame[Obe];wme[Obe]=jbe,xbe&&(wme.prototype[Obe]=function(){var l0e=this.__chain__;if(bbe||l0e){var s0e=wme(this.__wrapped__),h0e=s0e.__actions__=cye(this.__actions__);return h0e.push({func:jbe,args:arguments,thisArg:wme}),s0e.__chain__=l0e,s0e}return jbe.apply(wme,Sye([this.value()],arguments))})}),wme}function ICe(){return B1e._===this&&(B1e._=x8e),this}function j4e(){}function NCe(wme){return wme=e1e(wme),l1e(function(Ame){return Rye(Ame,wme)})}var ACe=v4e(_1e),PCe=v4e(J2e),kCe=v4e(R_e);function i6e(wme){return x4e(wme)?I_e(Jye(wme)):d6e(wme)}function DCe(wme){return function(Ame){return wme==null?$P:l2e(wme,Ame)}}var FCe=c5e(),MCe=c5e(!0);function z4e(){return[]}function V4e(){return!1}function LCe(){return{}}function BCe(){return""}function jCe(){return!0}function zCe(wme,Ame){if(wme=e1e(wme),wme<1||wme>Mme)return[];var Hme=Dme,ebe=O1e(wme,Dme);Ame=q0e(Ame),wme-=Dme;for(var sbe=P_e(ebe,Ame);++Hme<wme;)Ame(Hme);return sbe}function VCe(wme){return Q0e(wme)?_1e(wme,Jye):yye(wme)?[wme]:cye(E5e(y1e(wme)))}function HCe(wme){var Ame=++C8e;return y1e(wme)+Ame}var UCe=j3e(function(wme,Ame){return wme+Ame},0),WCe=g4e("ceil"),qCe=j3e(function(wme,Ame){return wme/Ame},1),GCe=g4e("floor");function KCe(wme){return wme&&wme.length?v_e(wme,fye,H_e):$P}function YCe(wme,Ame){return wme&&wme.length?v_e(wme,q0e(Ame,2),H_e):$P}function XCe(wme){return a2e(wme,fye)}function JCe(wme,Ame){return a2e(wme,q0e(Ame,2))}function ZCe(wme){return wme&&wme.length?v_e(wme,fye,wbe):$P}function QCe(wme,Ame){return wme&&wme.length?v_e(wme,q0e(Ame,2),wbe):$P}var eSe=j3e(function(wme,Ame){return wme*Ame},1),tSe=g4e("round"),aSe=j3e(function(wme,Ame){return wme-Ame},0);function nSe(wme){return wme&&wme.length?A_e(wme,fye):0}function rSe(wme,Ame){return wme&&wme.length?A_e(wme,q0e(Ame,2)):0}return dbe.after=w9e,dbe.ary=F5e,dbe.assign=p$e,dbe.assignIn=X5e,dbe.assignInWith=Q3e,dbe.assignWith=h$e,dbe.at=m$e,dbe.before=M5e,dbe.bind=I4e,dbe.bindAll=_Ce,dbe.bindKey=L5e,dbe.castArray=L9e,dbe.chain=P5e,dbe.chunk=G6e,dbe.compact=K6e,dbe.concat=Y6e,dbe.cond=$Ce,dbe.conforms=CCe,dbe.constant=M4e,dbe.countBy=n9e,dbe.create=b$e,dbe.curry=B5e,dbe.curryRight=j5e,dbe.debounce=z5e,dbe.defaults=v$e,dbe.defaultsDeep=g$e,dbe.defer=T9e,dbe.delay=O9e,dbe.difference=X6e,dbe.differenceBy=J6e,dbe.differenceWith=Z6e,dbe.drop=Q6e,dbe.dropRight=e7e,dbe.dropRightWhile=t7e,dbe.dropWhile=a7e,dbe.fill=n7e,dbe.filter=i9e,dbe.flatMap=s9e,dbe.flatMapDeep=c9e,dbe.flatMapDepth=d9e,dbe.flatten=R5e,dbe.flattenDeep=r7e,dbe.flattenDepth=i7e,dbe.flip=R9e,dbe.flow=xCe,dbe.flowRight=ECe,dbe.fromPairs=o7e,dbe.functions=E$e,dbe.functionsIn=w$e,dbe.groupBy=u9e,dbe.initial=s7e,dbe.intersection=c7e,dbe.intersectionBy=d7e,dbe.intersectionWith=u7e,dbe.invert=O$e,dbe.invertBy=R$e,dbe.invokeMap=p9e,dbe.iteratee=L4e,dbe.keyBy=h9e,dbe.keys=V1e,dbe.keysIn=uye,dbe.map=G3e,dbe.mapKeys=N$e,dbe.mapValues=A$e,dbe.matches=wCe,dbe.matchesProperty=TCe,dbe.memoize=Y3e,dbe.merge=P$e,dbe.mergeWith=J5e,dbe.method=OCe,dbe.methodOf=RCe,dbe.mixin=B4e,dbe.negate=X3e,dbe.nthArg=NCe,dbe.omit=k$e,dbe.omitBy=D$e,dbe.once=I9e,dbe.orderBy=m9e,dbe.over=ACe,dbe.overArgs=N9e,dbe.overEvery=PCe,dbe.overSome=kCe,dbe.partial=N4e,dbe.partialRight=V5e,dbe.partition=b9e,dbe.pick=F$e,dbe.pickBy=Z5e,dbe.property=i6e,dbe.propertyOf=DCe,dbe.pull=m7e,dbe.pullAll=N5e,dbe.pullAllBy=b7e,dbe.pullAllWith=v7e,dbe.pullAt=g7e,dbe.range=FCe,dbe.rangeRight=MCe,dbe.rearg=A9e,dbe.reject=y9e,dbe.remove=y7e,dbe.rest=P9e,dbe.reverse=O4e,dbe.sampleSize=$9e,dbe.set=L$e,dbe.setWith=B$e,dbe.shuffle=C9e,dbe.slice=_7e,dbe.sortBy=E9e,dbe.sortedUniq=T7e,dbe.sortedUniqBy=O7e,dbe.split=sCe,dbe.spread=k9e,dbe.tail=R7e,dbe.take=I7e,dbe.takeRight=N7e,dbe.takeRightWhile=A7e,dbe.takeWhile=P7e,dbe.tap=K7e,dbe.throttle=D9e,dbe.thru=q3e,dbe.toArray=G5e,dbe.toPairs=Q5e,dbe.toPairsIn=e6e,dbe.toPath=VCe,dbe.toPlainObject=Y5e,dbe.transform=j$e,dbe.unary=F9e,dbe.union=k7e,dbe.unionBy=D7e,dbe.unionWith=F7e,dbe.uniq=M7e,dbe.uniqBy=L7e,dbe.uniqWith=B7e,dbe.unset=z$e,dbe.unzip=R4e,dbe.unzipWith=A5e,dbe.update=V$e,dbe.updateWith=H$e,dbe.values=C_e,dbe.valuesIn=U$e,dbe.without=j7e,dbe.words=n6e,dbe.wrap=M9e,dbe.xor=z7e,dbe.xorBy=V7e,dbe.xorWith=H7e,dbe.zip=U7e,dbe.zipObject=W7e,dbe.zipObjectDeep=q7e,dbe.zipWith=G7e,dbe.entries=Q5e,dbe.entriesIn=e6e,dbe.extend=X5e,dbe.extendWith=Q3e,B4e(dbe,dbe),dbe.add=UCe,dbe.attempt=r6e,dbe.camelCase=K$e,dbe.capitalize=t6e,dbe.ceil=WCe,dbe.clamp=W$e,dbe.clone=B9e,dbe.cloneDeep=z9e,dbe.cloneDeepWith=V9e,dbe.cloneWith=j9e,dbe.conformsTo=H9e,dbe.deburr=a6e,dbe.defaultTo=SCe,dbe.divide=qCe,dbe.endsWith=Y$e,dbe.eq=zye,dbe.escape=X$e,dbe.escapeRegExp=J$e,dbe.every=r9e,dbe.find=o9e,dbe.findIndex=T5e,dbe.findKey=y$e,dbe.findLast=l9e,dbe.findLastIndex=O5e,dbe.findLastKey=_$e,dbe.floor=GCe,dbe.forEach=k5e,dbe.forEachRight=D5e,dbe.forIn=$$e,dbe.forInRight=C$e,dbe.forOwn=S$e,dbe.forOwnRight=x$e,dbe.get=k4e,dbe.gt=U9e,dbe.gte=W9e,dbe.has=T$e,dbe.hasIn=D4e,dbe.head=I5e,dbe.identity=fye,dbe.includes=f9e,dbe.indexOf=l7e,dbe.inRange=q$e,dbe.invoke=I$e,dbe.isArguments=X2e,dbe.isArray=Q0e,dbe.isArrayBuffer=q9e,dbe.isArrayLike=dye,dbe.isArrayLikeObject=D1e,dbe.isBoolean=G9e,dbe.isBuffer=O2e,dbe.isDate=K9e,dbe.isElement=Y9e,dbe.isEmpty=X9e,dbe.isEqual=J9e,dbe.isEqualWith=Z9e,dbe.isError=A4e,dbe.isFinite=Q9e,dbe.isFunction=u2e,dbe.isInteger=H5e,dbe.isLength=J3e,dbe.isMap=U5e,dbe.isMatch=e$e,dbe.isMatchWith=t$e,dbe.isNaN=a$e,dbe.isNative=n$e,dbe.isNil=i$e,dbe.isNull=r$e,dbe.isNumber=W5e,dbe.isObject=R1e,dbe.isObjectLike=P1e,dbe.isPlainObject=X_e,dbe.isRegExp=P4e,dbe.isSafeInteger=o$e,dbe.isSet=q5e,dbe.isString=Z3e,dbe.isSymbol=yye,dbe.isTypedArray=$_e,dbe.isUndefined=l$e,dbe.isWeakMap=s$e,dbe.isWeakSet=c$e,dbe.join=f7e,dbe.kebabCase=Z$e,dbe.last=Nye,dbe.lastIndexOf=p7e,dbe.lowerCase=Q$e,dbe.lowerFirst=eCe,dbe.lt=d$e,dbe.lte=u$e,dbe.max=KCe,dbe.maxBy=YCe,dbe.mean=XCe,dbe.meanBy=JCe,dbe.min=ZCe,dbe.minBy=QCe,dbe.stubArray=z4e,dbe.stubFalse=V4e,dbe.stubObject=LCe,dbe.stubString=BCe,dbe.stubTrue=jCe,dbe.multiply=eSe,dbe.nth=h7e,dbe.noConflict=ICe,dbe.noop=j4e,dbe.now=K3e,dbe.pad=tCe,dbe.padEnd=aCe,dbe.padStart=nCe,dbe.parseInt=rCe,dbe.random=G$e,dbe.reduce=v9e,dbe.reduceRight=g9e,dbe.repeat=iCe,dbe.replace=oCe,dbe.result=M$e,dbe.round=tSe,dbe.runInContext=Dbe,dbe.sample=_9e,dbe.size=S9e,dbe.snakeCase=lCe,dbe.some=x9e,dbe.sortedIndex=$7e,dbe.sortedIndexBy=C7e,dbe.sortedIndexOf=S7e,dbe.sortedLastIndex=x7e,dbe.sortedLastIndexBy=E7e,dbe.sortedLastIndexOf=w7e,dbe.startCase=cCe,dbe.startsWith=dCe,dbe.subtract=aSe,dbe.sum=nSe,dbe.sumBy=rSe,dbe.template=uCe,dbe.times=zCe,dbe.toFinite=f2e,dbe.toInteger=e1e,dbe.toLength=K5e,dbe.toLower=fCe,dbe.toNumber=Aye,dbe.toSafeInteger=f$e,dbe.toString=y1e,dbe.toUpper=pCe,dbe.trim=hCe,dbe.trimEnd=mCe,dbe.trimStart=bCe,dbe.truncate=vCe,dbe.unescape=gCe,dbe.uniqueId=HCe,dbe.upperCase=yCe,dbe.upperFirst=F4e,dbe.each=k5e,dbe.eachRight=D5e,dbe.first=I5e,B4e(dbe,function(){var wme={};return wye(dbe,function(Ame,Hme){v1e.call(dbe.prototype,Hme)||(wme[Hme]=Ame)}),wme}(),{chain:!1}),dbe.VERSION=tme,N1e(["bind","bindKey","curry","curryRight","partial","partialRight"],function(wme){dbe[wme].placeholder=dbe}),N1e(["drop","take"],function(wme,Ame){a1e.prototype[wme]=function(Hme){Hme=Hme===$P?1:A1e(e1e(Hme),0);var ebe=this.__filtered__&&!Ame?new a1e(this):this.clone();return ebe.__filtered__?ebe.__takeCount__=O1e(Hme,ebe.__takeCount__):ebe.__views__.push({size:O1e(Hme,Dme),type:wme+(ebe.__dir__<0?"Right":"")}),ebe},a1e.prototype[wme+"Right"]=function(Hme){return this.reverse()[wme](Hme).reverse()}}),N1e(["filter","map","takeWhile"],function(wme,Ame){var Hme=Ame+1,ebe=Hme==Rme||Hme==Ime;a1e.prototype[wme]=function(sbe){var bbe=this.clone();return bbe.__iteratees__.push({iteratee:q0e(sbe,3),type:Hme}),bbe.__filtered__=bbe.__filtered__||ebe,bbe}}),N1e(["head","last"],function(wme,Ame){var Hme="take"+(Ame?"Right":"");a1e.prototype[wme]=function(){return this[Hme](1).value()[0]}}),N1e(["initial","tail"],function(wme,Ame){var Hme="drop"+(Ame?"":"Right");a1e.prototype[wme]=function(){return this.__filtered__?new a1e(this):this[Hme](1)}}),a1e.prototype.compact=function(){return this.filter(fye)},a1e.prototype.find=function(wme){return this.filter(wme).head()},a1e.prototype.findLast=function(wme){return this.reverse().find(wme)},a1e.prototype.invokeMap=l1e(function(wme,Ame){return typeof wme=="function"?new a1e(this):this.map(function(Hme){return Oye(Hme,wme,Ame)})}),a1e.prototype.reject=function(wme){return this.filter(X3e(q0e(wme)))},a1e.prototype.slice=function(wme,Ame){wme=e1e(wme);var Hme=this;return Hme.__filtered__&&(wme>0||Ame<0)?new a1e(Hme):(wme<0?Hme=Hme.takeRight(-wme):wme&&(Hme=Hme.drop(wme)),Ame!==$P&&(Ame=e1e(Ame),Hme=Ame<0?Hme.dropRight(-Ame):Hme.take(Ame-wme)),Hme)},a1e.prototype.takeRightWhile=function(wme){return this.reverse().takeWhile(wme).reverse()},a1e.prototype.toArray=function(){return this.take(Dme)},wye(a1e.prototype,function(wme,Ame){var Hme=/^(?:filter|find|map|reject)|While$/.test(Ame),ebe=/^(?:head|last)$/.test(Ame),sbe=dbe[ebe?"take"+(Ame=="last"?"Right":""):Ame],bbe=ebe||/^find/.test(Ame);sbe&&(dbe.prototype[Ame]=function(){var xbe=this.__wrapped__,Obe=ebe?[1]:arguments,jbe=xbe instanceof a1e,l0e=Obe[0],s0e=jbe||Q0e(xbe),h0e=function(s1e){var d1e=sbe.apply(dbe,Sye([s1e],Obe));return ebe&&N0e?d1e[0]:d1e};s0e&&Hme&&typeof l0e=="function"&&l0e.length!=1&&(jbe=s0e=!1);var N0e=this.__chain__,H0e=!!this.__actions__.length,K0e=bbe&&!N0e,r1e=jbe&&!H0e;if(!bbe&&s0e){xbe=r1e?xbe:new a1e(this);var Y0e=wme.apply(xbe,Obe);return Y0e.__actions__.push({func:q3e,args:[h0e],thisArg:$P}),new lye(Y0e,N0e)}return K0e&&r1e?wme.apply(this,Obe):(Y0e=this.thru(h0e),K0e?ebe?Y0e.value()[0]:Y0e.value():Y0e)})}),N1e(["pop","push","shift","sort","splice","unshift"],function(wme){var Ame=F2e[wme],Hme=/^(?:push|sort|unshift)$/.test(wme)?"tap":"thru",ebe=/^(?:pop|shift)$/.test(wme);dbe.prototype[wme]=function(){var sbe=arguments;if(ebe&&!this.__chain__){var bbe=this.value();return Ame.apply(Q0e(bbe)?bbe:[],sbe)}return this[Hme](function(xbe){return Ame.apply(Q0e(xbe)?xbe:[],sbe)})}}),wye(a1e.prototype,function(wme,Ame){var Hme=dbe[Ame];if(Hme){var ebe=Hme.name+"";v1e.call(C2e,ebe)||(C2e[ebe]=[]),C2e[ebe].push({name:Ame,func:Hme})}}),C2e[B3e($P,bme).name]=[{name:"wrapper",func:$P}],a1e.prototype.clone=D8e,a1e.prototype.reverse=F8e,a1e.prototype.value=M8e,dbe.prototype.at=Y7e,dbe.prototype.chain=X7e,dbe.prototype.commit=J7e,dbe.prototype.next=Z7e,dbe.prototype.plant=e9e,dbe.prototype.reverse=t9e,dbe.prototype.toJSON=dbe.prototype.valueOf=dbe.prototype.value=a9e,dbe.prototype.first=dbe.prototype.head,L2e&&(dbe.prototype[L2e]=Q7e),dbe},g2e=$8e();Hye?((Hye.exports=g2e)._=g2e,E_e._=g2e):B1e._=g2e}).call(commonjsGlobal$1)})(lodash,lodash.exports);var lodashExports=lodash.exports;function SizeEditor(x_){var eme=x_.data,$P=x_.sizesOptions,tme=$P===void 0?eme.sizesOptions:$P,ame=x_.value,nme=x_.onChange,rme=x_.hideWidth,ime=x_.hideHeight,ome=x_.hideMinWidth,lme=x_.editorThemePath,sme=x_.label,cme=__read$3(React__default.useState(0),2),dme=cme[0],ume=cme[1],fme=__read$3(React__default.useState({width:"",height:"",minWidth:""}),2),pme=fme[0],hme=fme[1],bme=/[0-9\.]*/,mme=getValueByPath(lme,eme),vme=getInheritValue(lme,eme);React__default.useEffect(function(){var Cme=setTimeout(function(){ame&&hme(formatInheritData(ame))},100);return function(){return clearTimeout(Cme)}},[ame]);function gme(Cme){if(tme&&tme.length){var Sme={};["width","height","minWidth"].forEach(function(Eme){var xme=lodashExports.find(tme,function(Tme){return Tme.realValue===Cme[Eme]});Sme[Eme]=xme?xme.value:Cme[Eme]}),nme(setInheritData(Sme,vme));return}nme(Cme)}function yme(Cme){var Sme,Eme=Cme.data,xme=Cme.type;if(dme){var Tme=xme==="width"?"height":"width",Ome="",Rme=$me(Eme),Nme=xme==="width"?Rme/dme:Rme*dme;if(Nme=Number(Nme.toFixed(2)),dme===1)Ome=Eme;else if(Eme.indexOf("var")>-1){var Ime=lodashExports.find(tme,function(kme){return kme.realValue===Nme+"rem"});Ime?Ome=Ime.value:Ome=Nme+"rem"}else{var Pme=Eme.replace(Rme.toString(),"");Ome=Nme+Pme}var Mme=__assign$3(__assign$3({},pme),(Sme={},Sme[xme]=Eme,Sme[Tme]=Ome,Sme));hme(Mme),gme(Mme)}}function _me(Cme,Sme){var Eme;if(dme&&(Sme==="width"||Sme==="height")){yme({data:Cme,type:Sme});return}var xme=__assign$3(__assign$3({},pme),(Eme={},Eme[Sme]=Cme,Eme));hme(xme),gme(xme)}function $me(Cme){if(!Cme)return 0;var Sme=Cme.match(bme);if(Sme&&Sme[0])return Number(Sme[0]);if(!tme||!tme.length)return 0;var Eme=lodashExports.find(tme,function(Tme){return Tme.value===Cme}),xme=Eme?Eme.realValue.match(bme):0;return xme&&xme[0]?Number(xme[0]):0}return React__default.createElement("div",{className:"Theme-SizeEditor"},sme?React__default.createElement("div",{className:"Theme-SizeEditor-label"},sme):null,React__default.createElement("div",{className:"Theme-SizeEditor-body"},React__default.createElement("div",{className:cx$1("Theme-SizeEditor-line",(rme||ime)&&"Theme-SizeEditor-item-sigle",!rme&&!ime&&"Theme-SizeEditor-line-no-hide")},React__default.createElement("div",{className:"Theme-SizeEditor-size"},!rme&&React__default.createElement("div",{className:"Theme-SizeEditor-item"},React__default.createElement("div",{className:"Theme-SizeEditor-item-label"},"W"),React__default.createElement(ThemeSelect,__assign$3({},x_,{options:tme,value:pme.width,onChange:function(Cme){return _me(Cme,"width")},itemName:"width",placeholder:mme==null?void 0:mme.width}))),!ime&&React__default.createElement("div",{className:"Theme-SizeEditor-item"},React__default.createElement("div",{className:"Theme-SizeEditor-item-label"},"H"),React__default.createElement(ThemeSelect,__assign$3({},x_,{options:tme,value:pme.height,onChange:function(Cme){return _me(Cme,"height")},itemName:"height",placeholder:mme==null?void 0:mme.height})))),!rme&&!ime&&React__default.createElement("div",{className:"Theme-SizeEditor-lock"},dme?React__default.createElement(Button$1,{tooltip:i18n("17399f02e23b5f5b9b3dedee03a2d538"),tooltipPlacement:"left",onClick:function(){ume(0)}},React__default.createElement(Icon$1,{icon:"lock",className:"common-icon"})):React__default.createElement(Button$1,{tooltip:i18n("48110cb1579623335cf6a1e2327e5af1"),tooltipPlacement:"left",onClick:function(){if(!pme.width||!pme.height)ume(0);else{var Cme=$me(pme.width),Sme=$me(pme.height);ume(Cme&&Sme?Number((Cme/Sme).toFixed(2)):0)}}},React__default.createElement(Icon$1,{icon:"unlock",className:"common-icon"})))),!ome&&React__default.createElement("div",{className:"Theme-SizeEditor-line Theme-SizeEditor-item-sigle"},React__default.createElement("div",{className:"Theme-SizeEditor-item"},React__default.createElement("div",{className:"Theme-SizeEditor-item-label"},i18n("a2b62974f4d7564bb68b570116f25a10")),React__default.createElement(ThemeSelect,__assign$3({},x_,{options:tme,value:pme.minWidth,onChange:function(Cme){return _me(Cme,"minWidth")},itemName:"minWidth",placeholder:mme==null?void 0:mme.minWidth}))))))}observer(SizeEditor);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(SizeEditor,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"amis-theme-size-editor",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);var assignValue=_assignValue,copyObject=_copyObject,createAssigner$1=_createAssigner,isArrayLike=isArrayLike_1,isPrototype=_isPrototype,keys=keys_1,objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty,assign=createAssigner$1(function(x_,eme){if(isPrototype(eme)||isArrayLike(eme)){copyObject(eme,keys(eme),x_);return}for(var $P in eme)hasOwnProperty$1.call(eme,$P)&&assignValue(x_,$P,eme[$P])}),assign_1=assign;const assign$1=getDefaultExportFromCjs(assign_1);function ThemeWrapperHeader(x_){var eme=x_.hasSenior,$P=x_.hasOpen,tme=x_.senior,ame=x_.toggleSenior,nme=x_.open,rme=x_.toggleOpen,ime=x_.title;return React__default.createElement("div",{className:"Theme-Wrapper"},React__default.createElement("div",{className:"Theme-Wrapper-header"},React__default.createElement("div",{className:"Theme-Wrapper-header-left"},ime),React__default.createElement("div",{className:"Theme-Wrapper-header-right"},eme&&React__default.createElement(TooltipWrapper$1,{tooltip:i18n("e4e625f8f933ccfd0fe44a41fb02655f"),tooltipTheme:"dark",placement:"left"},React__default.createElement(Icon$1,{icon:"custom",className:"common-icon",onClick:function(){return ame&&ame(!tme)}})),$P&&React__default.createElement(Icon$1,{icon:"right-arrow-bold",className:cx$1("arrow-icon",nme?"arrow-icon-reverse":""),onClick:function(){return rme&&rme(!nme)}}))))}function ThemeWrapperControl(x_){var eme=x_.hasSenior,$P=eme===void 0?!1:eme,tme=x_.hasOpen,ame=tme===void 0?!1:tme,nme=x_.body,rme=x_.seniorBody,ime=x_.title,ome=__read$3(React__default.useState(!0),2),lme=ome[0],sme=ome[1],cme=__read$3(React__default.useState(!1),2),dme=cme[0],ume=cme[1],fme=lodashExports.pick(x_,["data","formMode","formLabelAlign","formLabelWidth","formHorizontal","onChange"]);return React__default.createElement("div",{className:"Theme-Wrapper"},ime||ime===""?React__default.createElement(ThemeWrapperHeader,{hasSenior:$P,hasOpen:ame,senior:dme,toggleSenior:ume,open:lme,toggleOpen:sme,title:ime}):null,React__default.createElement("div",{className:"Theme-Wrapper-body",style:{display:lme?"block":"none"}},nme?render$2(nme,fme):null,React__default.createElement("div",{className:"Theme-Wrapper-senior",style:{display:dme?"block":"none"}},rme?render$2(rme,fme):null)))}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(ThemeWrapperControl,__assign$3({},this.props))},eme=__decorate$1([Renderer({type:"amis-theme-wrapper"})],eme),eme})(React__default.Component);var defaultFontSize=["12px","14px","16px","18px","20px","22px","24px","26px","28px","30px","32px","34px","36px","38px","40px"].map(function(x_){return{value:x_,label:x_,realValue:x_}}),defaultFontWeight=["100","200","300","400","500","600","700","800","900"].map(function(x_){return{value:x_,label:x_,realValue:x_}}),defaultlineHeight=[{label:i18n("879f4e7bd863a00f77d30f05076ac6cb"),value:"1.3",realValue:"1.3"},{label:i18n("4905c69b940b0d94cf8aec83bc8dcc83"),value:"1.5",realValue:"1.5"},{label:i18n("268c43e529c54fb458397b9c13351a67"),value:"1.7",realValue:"1.7"}],SYSTEM_FONT_FAMILY=[{label:"Academy Engraved LET",value:"Academy Engraved LET"},{label:"Al Bayan",value:"Al Bayan"},{label:"Al Nile",value:"Al Nile"},{label:"Al Tarikh",value:"Al Tarikh"},{label:"American Typewriter",value:"American Typewriter"},{label:"Andale Mono",value:"Andale Mono"},{label:"Apple Braille",value:"Apple Braille"},{label:"Apple Chancery",value:"Apple Chancery"},{label:"Apple Color Emoji",value:"Apple Color Emoji"},{label:"Apple SD Gothic Neo",value:"Apple SD Gothic Neo"},{label:"Apple Symbols",value:"Apple Symbols"},{label:"AppleGothic",value:"AppleGothic"},{label:"AppleMyungjo",value:"AppleMyungjo"},{label:"Arial",value:"Arial"},{label:"Arial Black",value:"Arial Black"},{label:"Arial Hebrew",value:"Arial Hebrew"},{label:"Arial Hebrew Scholar",value:"Arial Hebrew Scholar"},{label:"Arial Narrow",value:"Arial Narrow"},{label:"Arial Rounded MT Bold",value:"Arial Rounded MT Bold"},{label:"Arial Unicode MS",value:"Arial Unicode MS"},{label:"Avenir",value:"Avenir"},{label:"Avenir Next",value:"Avenir Next"},{label:"Avenir Next Condensed",value:"Avenir Next Condensed"},{label:"Ayuthaya",value:"Ayuthaya"},{label:"Baghdad",value:"Baghdad"},{label:"Bangla MN",value:"Bangla MN"},{label:"Bangla Sangam MN",value:"Bangla Sangam MN"},{label:"Baskerville",value:"Baskerville"},{label:"Beirut",value:"Beirut"},{label:"Big Caslon",value:"Big Caslon"},{label:"Bodoni 72",value:"Bodoni 72"},{label:"Bodoni 72 Oldstyle",value:"Bodoni 72 Oldstyle"},{label:"Bodoni 72 Smallcaps",value:"Bodoni 72 Smallcaps"},{label:"Bodoni Ornaments",value:"Bodoni Ornaments"},{label:"Bradley Hand",value:"Bradley Hand"},{label:"Brush Script MT",value:"Brush Script MT"},{label:"Chalkboard",value:"Chalkboard"},{label:"Chalkboard SE",value:"Chalkboard SE"},{label:"Chalkduster",value:"Chalkduster"},{label:"Charter",value:"Charter"},{label:"Cochin",value:"Cochin"},{label:"Comic Sans MS",value:"Comic Sans MS"},{label:"Copperplate",value:"Copperplate"},{label:"Corsiva Hebrew",value:"Corsiva Hebrew"},{label:"Courier New",value:"Courier New"},{label:"Damascus",value:"Damascus"},{label:"DecoType Naskh",value:"DecoType Naskh"},{label:"Devanagari MT",value:"Devanagari MT"},{label:"Devanagari Sangam MN",value:"Devanagari Sangam MN"},{label:"Didot",value:"Didot"},{label:"DIN Alternate",value:"DIN Alternate"},{label:"DIN Condensed",value:"DIN Condensed"},{label:"Diwan Kufi",value:"Diwan Kufi"},{label:"Diwan Thuluth",value:"Diwan Thuluth"},{label:"Euphemia UCAS",value:"Euphemia UCAS"},{label:"Farah",value:"Farah"},{label:"Farisi",value:"Farisi"},{label:"Futura",value:"Futura"},{label:"Galvji",value:"Galvji"},{label:"GB18030 Bitmap",value:"GB18030 Bitmap"},{label:"Geeza Pro",value:"Geeza Pro"},{label:"Geneva",value:"Geneva"},{label:"Georgia",value:"Georgia"},{label:"Gill Sans",value:"Gill Sans"},{label:"Grantha Sangam MN",value:"Grantha Sangam MN"},{label:"Gujarati MT",value:"Gujarati MT"},{label:"Gujarati Sangam MN",value:"Gujarati Sangam MN"},{label:"Gurmukhi MN",value:"Gurmukhi MN"},{label:"Gurmukhi MT",value:"Gurmukhi MT"},{label:"Gurmukhi Sangam MN",value:"Gurmukhi Sangam MN"},{label:i18n("efb399e557c1f444ba215c8e2dbfb891"),value:i18n("efb399e557c1f444ba215c8e2dbfb891")},{label:i18n("4e9edbb054a1fc52fe2012ff8cb3b20e"),value:i18n("4e9edbb054a1fc52fe2012ff8cb3b20e")},{label:"Helvetica",value:"Helvetica"},{label:"Helvetica Neue",value:"Helvetica Neue"},{label:"Herculanum",value:"Herculanum"},{label:"Hiragino Maru Gothic ProN",value:"Hiragino Maru Gothic ProN"},{label:"Hiragino Mincho ProN",value:"Hiragino Mincho ProN"},{label:"Hiragino Sans",value:"Hiragino Sans"},{label:i18n("bd8e7ebd31bd804a20986f7dd3739900"),value:i18n("bd8e7ebd31bd804a20986f7dd3739900")},{label:"Hoefler Text",value:"Hoefler Text"},{label:"Impact",value:"Impact"},{label:"InaiMathi",value:"InaiMathi"},{label:"ITF Devanagari",value:"ITF Devanagari"},{label:"ITF Devanagari Marathi",value:"ITF Devanagari Marathi"},{label:"Kailasa",value:"Kailasa"},{label:"Kannada MN",value:"Kannada MN"},{label:"Kannada Sangam MN",value:"Kannada Sangam MN"},{label:"Kefa",value:"Kefa"},{label:"Khmer MN",value:"Khmer MN"},{label:"Khmer Sangam MN",value:"Khmer Sangam MN"},{label:"Kohinoor Bangla",value:"Kohinoor Bangla"},{label:"Kohinoor Devanagari",value:"Kohinoor Devanagari"},{label:"Kohinoor Gujarati",value:"Kohinoor Gujarati"},{label:"Kohinoor Telugu",value:"Kohinoor Telugu"},{label:"Kokonor",value:"Kokonor"},{label:"Krungthep",value:"Krungthep"},{label:"KufiStandardGK",value:"KufiStandardGK"},{label:"Lao MN",value:"Lao MN"},{label:"Lao Sangam MN",value:"Lao Sangam MN"},{label:"Lucida Grande",value:"Lucida Grande"},{label:"Luminari",value:"Luminari"},{label:"Malayalam MN",value:"Malayalam MN"},{label:"Malayalam Sangam MN",value:"Malayalam Sangam MN"},{label:"Marker Felt",value:"Marker Felt"},{label:"Menlo",value:"Menlo"},{label:"Microsoft Sans Serif",value:"Microsoft Sans Serif"},{label:"Mishafi",value:"Mishafi"},{label:"Mishafi Gold",value:"Mishafi Gold"},{label:"Monaco",value:"Monaco"},{label:"Mshtakan",value:"Mshtakan"},{label:"Mukta Mahee",value:"Mukta Mahee"},{label:"Muna",value:"Muna"},{label:"Myanmar MN",value:"Myanmar MN"},{label:"Myanmar Sangam MN",value:"Myanmar Sangam MN"},{label:"Nadeem",value:"Nadeem"},{label:"New Peninim MT",value:"New Peninim MT"},{label:"Noteworthy",value:"Noteworthy"},{label:"Noto Nastaliq Urdu",value:"Noto Nastaliq Urdu"},{label:"Noto Sans Kannada",value:"Noto Sans Kannada"},{label:"Noto Sans Myanmar",value:"Noto Sans Myanmar"},{label:"Noto Sans Oriya",value:"Noto Sans Oriya"},{label:"Noto Serif Myanman",value:"Noto Serif Myanman"},{label:"Optima",value:"Optima"},{label:"Oriya MN",value:"Oriya MN"},{label:"Oriya Sangam MN",value:"Oriya Sangam MN"},{label:"Palatino",value:"Palatino"},{label:"Papyrus",value:"Papyrus"},{label:"Party LET",value:"Party LET"},{label:"Phosphate",value:"Phosphate"},{label:i18n("d55a1b98030839c3ce3606d7d2c80235"),value:i18n("d55a1b98030839c3ce3606d7d2c80235")},{label:i18n("c9045965fa0fbf29323518d79c9da0f1"),value:i18n("c9045965fa0fbf29323518d79c9da0f1")},{label:i18n("c1ef096e25d96c451fd39c172b3f569a"),value:i18n("c1ef096e25d96c451fd39c172b3f569a")},{label:"Plantagenet Cherokee",value:"Plantagenet Cherokee"},{label:"PT Mono",value:"PT Mono"},{label:"PT Sans",value:"PT Sans"},{label:"PT Sans Caption",value:"PT Sans Caption"},{label:"PT Sans Narrow",value:"PT Sans Narrow"},{label:"PT Serif",value:"PT Serif"},{label:"PT Serif Caption",value:"PT Serif Caption"},{label:"Raanana",value:"Raanana"},{label:"Rockwell",value:"Rockwell"},{label:"Sana",value:"Sana"},{label:"Sathu",value:"Sathu"},{label:"Savoye LET",value:"Savoye LET"},{label:"Shree Devanagari 714",value:"Shree Devanagari 714"},{label:"SignPainter",value:"SignPainter"},{label:"Silom",value:"Silom"},{label:"Sinhala MN",value:"Sinhala MN"},{label:"Sinhala Sangam MN",value:"Sinhala Sangam MN"},{label:"Skia",value:"Skia"},{label:"Snell Roundhand",value:"Snell Roundhand"},{label:i18n("09e4d5659a11cf8a55f59e867b30ab75"),value:i18n("09e4d5659a11cf8a55f59e867b30ab75")},{label:i18n("56d3dcaab79fe10dfbc4b80f0d9d72a4"),value:i18n("56d3dcaab79fe10dfbc4b80f0d9d72a4")},{label:i18n("2c1605abdc63ac897a76aeba5dcf36a4"),value:i18n("2c1605abdc63ac897a76aeba5dcf36a4")},{label:"STIXGeneral",value:"STIXGeneral"},{label:"STIXIntegralsD",value:"STIXIntegralsD"},{label:"STIXIntegralsSm",value:"STIXIntegralsSm"},{label:"STIXIntegralsUp",value:"STIXIntegralsUp"},{label:"STIXIntegralsUpD",value:"STIXIntegralsUpD"},{label:"STIXIntegralsUpSm",value:"STIXIntegralsUpSm"},{label:"STIXNonUnicode",value:"STIXNonUnicode"},{label:"STIXSizeFiveSym",value:"STIXSizeFiveSym"},{label:"STIXSizeFourSym",value:"STIXSizeFourSym"},{label:"STIXSizeOneSym",value:"STIXSizeOneSym"},{label:"STIXSizeThreeSym",value:"STIXSizeThreeSym"},{label:"STIXSizeTwoSym",value:"STIXSizeTwoSym"},{label:"STIXVariants",value:"STIXVariants"},{label:i18n("db37a0bd2e60503e939e8eee02511550"),value:i18n("db37a0bd2e60503e939e8eee02511550")},{label:"Sukhumvit Set",value:"Sukhumvit Set"},{label:"Symbol",value:"Symbol"},{label:"Tahoma",value:"Tahoma"},{label:"Tamil MN",value:"Tamil MN"},{label:"Tamil Sangam MN",value:"Tamil Sangam MN"},{label:"Telugu MN",value:"Telugu MN"},{label:"Teluau nasmln",value:"Teluau nasmln"},{label:"Thonburi",value:"Thonburi"},{label:"Times New Roman",value:"Times New Roman"},{label:"Trattatello",value:"Trattatello"},{label:"Trebuchet MS",value:"Trebuchet MS"},{label:"Verdana",value:"Verdana"},{label:"Waseem",value:"Waseem"},{label:"Webdings",value:"Webdings"},{label:"Wingdings",value:"Wingdings"},{label:"Wingdings 2",value:"Wingdings 2"},{label:"Wingdings 3",value:"Wingdings 3"},{label:"Zapf Dingbats",value:"Zapf Dingbats"},{label:"Zapfino",value:"Zapfino"}],fontStyleOptions=[{label:i18n("81d6da77d656c6a9c3cbd795ae4444ea"),type:"font-style",value:"italic"},{label:i18n("f6f8ea0815881fe9a4aa9352a7fe2299"),type:"text-decoration",value:"underline"},{label:i18n("a120a873412470089bec1dfd1b581fc9"),type:"text-decoration",value:"line-through"}],textAlignOptions=[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),type:"text-align",value:"left"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),type:"text-align",value:"center"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),type:"text-align",value:"right"},{label:i18n("da1b972efb29f850b50e219ad4d98ba5"),type:"text-align",value:"justify"}],verticalAlignOptions=[{label:i18n("2af8c8235ae57c6a7486883f86701ab3"),type:"vertical-align",value:"top"},{label:i18n("8bc0ba58bf73b03668ca9b6a74c99f89"),type:"vertical-align",value:"middle"},{label:i18n("a6d154c4db5068074e32863821c450e1"),type:"vertical-align",value:"bottom"}];function FontEditor(x_){var eme=x_.state,$P=x_.data,tme=x_.title,ame=x_.label,nme=x_.value,rme=x_.onChange,ime=x_.hideColor,ome=x_.hideFontSize,lme=x_.hideFontWeight,sme=x_.hideLineHeight,cme=x_.hideFontFamily,dme=x_.hasSenior,ume=dme===void 0?!0:dme,fme=x_.hasVertical,pme=fme===void 0?!0:fme,hme=x_.fontStyle,bme=hme===void 0?!0:hme,mme=x_.textAlign,vme=mme===void 0?!0:mme,gme=x_.needColorCustom,yme=gme===void 0?!1:gme,_me=x_.colorOptions,$me=_me===void 0?$P.colorOptions:_me,Cme=x_.fontSizeOptions,Sme=Cme===void 0?$P.fontSizeOptions||defaultFontSize:Cme,Eme=x_.fontWeightOptions,xme=Eme===void 0?$P.fontWeightOptions||defaultFontWeight:Eme,Tme=x_.lineHeightOptions,Ome=Tme===void 0?$P.lineHeightOptions||defaultlineHeight:Tme,Rme=x_.fontFamilyOptions,Nme=Rme===void 0?$P.fontFamilyOptions||SYSTEM_FONT_FAMILY:Rme,Ime=x_.editorThemePath,Pme=pme?__spreadArray(__spreadArray([],__read$3(textAlignOptions),!1),__read$3(verticalAlignOptions),!1):textAlignOptions,Mme=__read$3(React__default.useState(!0),2),kme=Mme[0],Bme=Mme[1],Dme=__read$3(React__default.useState(!1),2),jme=Dme[0],Vme=Dme[1],Wme=getValueByPath(Ime,$P),Lme=getInheritValue(Ime,$P),zme=__read$3(React__default.useState(assign$1({},formatInheritData(nme))),2),Ume=zme[0],Gme=zme[1];reactExports.useEffect(function(){var Yme=setTimeout(function(){nme&&Gme(assign$1({},formatInheritData(nme)))},100);return function(){return clearTimeout(Yme)}},[nme]);function Jme(Yme,Qme){var Xme=cloneDeep$1(Ume);["font-style","text-decoration","text-align","vertical-align"].includes(Qme)&&Xme[Qme]===Yme?Xme[Qme]=void 0:Xme[Qme]=Yme,Gme(Xme),rme(setInheritData(Xme,Lme))}return jsxs("div",{className:"Theme-FontEditor",children:[jsx(ThemeWrapperHeader,{title:tme||ame||i18n("9c07532d0c9acfecfc4ec2eb265c3e03"),hasSenior:ume,senior:jme,toggleSenior:Vme,open:kme,toggleOpen:Bme}),kme&&jsxs("div",{className:"Theme-FontEditor-body",children:[jsxs("div",{className:"Theme-FontEditor-line",children:[!ime&&jsx("div",{className:"Theme-FontEditor-item Theme-FontEditor-item-color-picker",children:jsx(ColorPicker,{...__assign$3({},x_,{needCustom:yme??!1,value:Ume.color,options:$me,onChange:function(Yme){Jme(Yme,"color")},itemName:"color",state:eme,placeholder:Wme==null?void 0:Wme.color,editorInheritValue:Lme==null?void 0:Lme.color})})}),!ome&&jsx("div",{className:"Theme-FontEditor-item",children:jsx(ThemeSelect,{...__assign$3({},x_,{options:Sme,value:Ume.fontSize,onChange:function(Yme){Jme(Yme,"fontSize")},itemName:"fontSize",menuTpl:"label",state:eme,inheritValue:Ime?"inherit":"",placeholder:Wme==null?void 0:Wme.fontSize})})})]}),jsxs("div",{className:"Theme-FontEditor-line Theme-FontEditor-font-line",children:[!lme&&jsxs("div",{className:"Theme-FontEditor-item",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:xme,value:Ume.fontWeight,onChange:function(Yme){Jme(Yme,"fontWeight")},itemName:"fontWeight",menuTpl:"label",state:eme,inheritValue:Ime?"inherit":"",placeholder:Wme==null?void 0:Wme.fontWeight})}),(!sme||!cme)&&jsx("div",{className:"Theme-FontEditor-item-label",children:i18n("c988dd65ce45c335db5c4354eec7c110")})]}),!sme&&jsxs("div",{className:"Theme-FontEditor-item",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:Ome,value:Ume.lineHeight,onChange:function(Yme){Jme(Yme,"lineHeight")},itemName:"lineHeight",menuTpl:"label",state:eme,inheritValue:Ime?"inherit":"",placeholder:Wme==null?void 0:Wme.lineHeight})}),jsx("div",{className:"Theme-FontEditor-item-label",children:i18n("17169fd8c2ffa82c4e1d08e7267725f4")})]}),!cme&&jsxs("div",{className:"Theme-FontEditor-item Theme-FontEditor-item-font-family",children:[jsx(ThemeSelect,{...__assign$3({},x_,{options:Nme,value:Ume["font-family"],onChange:function(Yme){Jme(Yme,"font-family")},itemName:"fontFamily",menuTpl:"label",state:eme,inheritValue:Ime?"inherit":""})}),jsx("div",{className:"Theme-FontEditor-item-label",children:i18n("8456bc40d48da5af833f1c63385e9879")})]})]}),jme&&bme&&jsx("div",{className:"Theme-FontEditor-font-style",children:fontStyleOptions.map(function(Yme,Qme){return jsx(TooltipWrapper$1,{tooltip:Yme.label,tooltipTheme:"dark",children:jsx("div",{className:cx$1("Theme-FontEditor-font-style-icon",Ume[Yme.type]===Yme.value&&"Theme-FontEditor-font-style-selected"),children:jsx(Icon$1,{icon:Yme.value,className:"common-icon",onClick:function(){return Jme(Yme.value,Yme.type)}})})},Yme.value)})}),jme&&vme&&jsx("div",{className:"Theme-FontEditor-font-style",children:Pme.map(function(Yme,Qme){return jsx(TooltipWrapper$1,{tooltip:Yme.label,tooltipTheme:"dark",children:jsx("div",{className:cx$1("Theme-FontEditor-font-style-icon",pme&&Qme===3&&"right-line",Ume[Yme.type]===Yme.value&&"Theme-FontEditor-font-style-selected"),children:jsx(Icon$1,{icon:"".concat(Yme.type,"-").concat(Yme.value),className:"common-icon",onClick:function(){return Jme(Yme.value,Yme.type)}})})},Yme.value)})})]})]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(FontEditor,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"amis-theme-font-editor",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);function ShadowView(x_){var eme=x_.show,$P=x_.target,tme=x_.name,ame=x_.value,nme=x_.close;return React__default.createElement(Overlay,{container:document.body,target:$P.current,show:eme,placement:"top",offset:[0,-8]},React__default.createElement(PopOver$1,{overlay:!1,onHide:nme},React__default.createElement("div",{className:"Theme-ShadowView"},React__default.createElement("div",{className:"Theme-ShadowView-header"},i18n("9cf15d01ed2846c4104d1607836bbe79")),React__default.createElement("div",{className:"Theme-ShadowView-body"},React__default.createElement("div",{className:"Theme-ShadowView-body-shadow"},React__default.createElement("div",{className:"Theme-ShadowView-body-shadow-square",style:{boxShadow:(ame==null?void 0:ame.join(", "))||"none"}})),React__default.createElement("div",{className:"Theme-ShadowView-body-title"},tme),React__default.createElement("div",{className:"Theme-ShadowView-body-value"},ame==null?void 0:ame.map(function(rme,ime){return React__default.createElement("div",{className:"Theme-ShadowView-body-value-item",key:ime},rme)}))))))}function ShadowEditor(x_){var eme=x_.data,$P=x_.onChange,tme=x_.value,ame=x_.hasSenior,nme=x_.options,rme=x_.colorOptions,ime=x_.state,ome=x_.itemName,lme=x_.editorThemePath,sme=React__default.useRef(null),cme=__read$3(React__default.useState(!0),2),dme=cme[0],ume=cme[1],fme=__read$3(React__default.useState(!1),2),pme=fme[0],hme=fme[1],bme=__read$3(React__default.useState(!1),2),mme=bme[0],vme=bme[1],gme={label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:"custom",realValue:[{inset:!1,x:"0px",y:"0px",blur:"0px",spread:"0px",color:"transparent"}],visible:!1},yme=nme?__spreadArray(__spreadArray([],__read$3(nme),!1),[gme],!1):__spreadArray(__spreadArray([],__read$3(cloneDeep$1(eme.shadowOptions||[])),!1),[gme],!1);ime&&ime!=="default"&&yme.unshift({value:lme?"inherit":"var(".concat(eme.default.token,"shadow)"),label:i18n("a4f758412c3797290c957544c56db443"),realValue:lme?[i18n("a4f758412c3797290c957544c56db443")]:["var(".concat(eme.default.token).concat(ome,")")]});var _me=getValueByPath(lme,eme),$me=getInheritValue(lme,eme),Cme=tme?tme.indexOf("inherit:")>-1&&"inherit"||find$3(cloneDeep$1(yme),function(Dme){return Dme.value===tme})||Tme(tme):null,Sme=__read$3(React__default.useState(Cme),2),Eme=Sme[0],xme=Sme[1];React__default.useEffect(function(){Cme&&(!Eme||Cme.value!==Eme.value)&&xme(Cme)},[Cme]);function Tme(Dme){var jme={},Vme=0;Dme=Dme.trim().replace(/((rgba|rgb|var)\(.*?\))|(#.{6})/g,function(Lme){var zme="$"+Vme;return Vme++,jme[zme]=Lme,zme});var Wme=Dme.split(",").map(function(Lme){var zme=!1;Lme.includes("inset")&&(zme=!0,Lme=Lme.replace("inset","")),Lme=Lme.trim();var Ume=Lme.split(" ");return{inset:zme,x:Ume[0],y:Ume[1],blur:Ume[2],spread:Ume[3],color:jme[Ume[4]]}});return{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:"custom",realValue:Wme}}function Ome(Dme){if(!Dme)return{value:"",source:[]};var jme=Dme.map(function(Vme){return"".concat(Vme.inset?"inset":""," ").concat(Vme.x||""," ").concat(Vme.y||""," ").concat(Vme.blur||""," ").concat(Vme.spread||""," ").concat(Vme.color||"transparent")});return{value:jme.join(", "),source:jme}}function Rme(Dme){if(Dme!=="custom")if(Dme){var jme=find$3(yme,function(Vme){return Vme.value===Dme});jme!=null&&jme.value&&(xme(jme),$P(setInheritData(jme.value,$me)))}else xme(void 0),$P(void 0)}function Nme(Dme){if(!Dme.value)return Dme;var jme=find$3(yme,function(Vme){return Vme.value===Dme.value});return isEqual$1(Dme.realValue,jme.realValue)?Dme:__assign$3(__assign$3({},Dme),{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:"custom"})}function Ime(Dme){var jme=Nme(__assign$3(__assign$3({},Eme||{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:"custom"}),{realValue:__spreadArray(__spreadArray([],__read$3((Eme==null?void 0:Eme.realValue)||[]),!1),[{inset:Dme,x:"0px",y:"0px",blur:"0px",spread:"0px",color:"transparent"}],!1)}));xme(jme),$P(Ome(jme.realValue).value)}function Pme(Dme){if(Eme.realValue.length!==1){var jme=cloneDeep$1(Eme);jme.realValue.splice(Dme,1);var Vme=Nme(jme);xme(Vme),$P(Ome(Vme.realValue).value)}}function Mme(Dme,jme,Vme){jme!=="color"&&(Dme+="px"),Eme.realValue[Vme][jme]=Dme;var Wme=Nme(Eme);xme(Wme),$P(Ome(Wme.realValue).value)}var kme=function(Dme){return Dme+"px"},Bme=function(Dme){return parseFloat(Dme)};return React__default.createElement("div",{className:"Theme-ShadowEditor"},React__default.createElement(ThemeWrapperHeader,{title:i18n("803205e38834280d9e6a75993ac00764"),hasSenior:ame,senior:pme,toggleSenior:hme,open:dme,toggleOpen:ume}),dme&&React__default.createElement("div",{className:"Theme-ShadowEditor-body"},React__default.createElement("div",{className:"Theme-ShadowEditor-line"},React__default.createElement("div",{ref:sme,className:"Theme-ShadowEditor-view",onMouseOver:function(){return vme(!0)},onMouseOut:function(){return vme(!1)}},React__default.createElement("div",{style:{boxShadow:Ome(Eme==null?void 0:Eme.realValue).value},className:"Theme-ShadowEditor-view-inner"})),React__default.createElement(ShadowView,{target:sme,show:mme,close:function(){vme(!1)},name:(Eme==null?void 0:Eme.label)||i18n("6f9c7d7109f2b4b5a759359a455201e9"),value:Ome(Eme==null?void 0:Eme.realValue).source}),React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement(EnhancedSelect,{options:yme,clearable:!0,value:Eme==null?void 0:Eme.value,onChange:function(Dme){Rme(Dme.value)},placeholder:_me||i18n("6f9c7d7109f2b4b5a759359a455201e9")}))),pme||(Eme==null?void 0:Eme.value)==="custom"?React__default.createElement("div",{className:"Theme-ShadowEditor-customContent"},React__default.createElement("div",{className:"Theme-Wrapper-header Theme-ShadowEditor-sub-header"},React__default.createElement("div",{className:"Theme-Wrapper-header-left"},i18n("26db990dad6d76c6725375b24c0941e1")),React__default.createElement("div",{className:"Theme-Wrapper-header-right"},render$2({type:"dropdown-button",level:"link",btnClassName:"Theme-ShadowEditor-add",icon:"plus",hideCaret:!0,closeOnClick:!0,align:"right",buttons:["","inset"].map(function(Dme){return{label:i18n(Dme?"b24a723b73f96ab3340fe9502370ee13":"92d393c2ae53f424856479d090de718f"),onClick:function(){return Ime(!!Dme)}}})}))),Eme!=null&&Eme.realValue.length?Eme.realValue.map(function(Dme,jme){return React__default.createElement("div",{className:"Theme-ShadowEditor-line",key:jme},React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement("div",{className:"Theme-ShadowEditor-color-picker"},React__default.createElement(ColorPicker,{needCustom:!0,needTheme:!0,value:Dme.color,options:rme||eme.colorOptions||[],onChange:function(Vme){Mme(Vme,"color",jme)}})),React__default.createElement("div",{className:"Theme-ShadowEditor-item-label"},Dme.inset?i18n("b24a723b73f96ab3340fe9502370ee13"):i18n("92d393c2ae53f424856479d090de718f"))),React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement(NumberInput$1,{value:parseFloat(Dme.x),parser:Bme,formatter:kme,onChange:function(Vme){Mme(Vme,"x",jme)}}),React__default.createElement("div",{className:"Theme-ShadowEditor-item-label"},"X")),React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement(NumberInput$1,{value:parseFloat(Dme.y),parser:Bme,formatter:kme,onChange:function(Vme){Mme(Vme,"y",jme)}}),React__default.createElement("div",{className:"Theme-ShadowEditor-item-label"},"Y")),React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement(NumberInput$1,{value:parseFloat(Dme.blur),parser:Bme,formatter:kme,onChange:function(Vme){Mme(Vme,"blur",jme)}}),React__default.createElement("div",{className:"Theme-ShadowEditor-item-label"},i18n("203bab8001257b60e1aed951a0939393"))),React__default.createElement("div",{className:"Theme-ShadowEditor-item"},React__default.createElement(NumberInput$1,{value:parseFloat(Dme.spread),parser:Bme,formatter:kme,onChange:function(Vme){Mme(Vme,"spread",jme)}}),React__default.createElement("div",{className:"Theme-ShadowEditor-item-label"},i18n("2dc90225b8033d17c41b08f39fa42de2"))),React__default.createElement("div",{className:"Theme-ShadowEditor-item trash-icon"},React__default.createElement(Icon$1,{icon:"trash",className:cx$1("common-icon",Eme.realValue.length===1&&"disabled-icon"),onClick:function(){Pme(jme)}})))}):null):null))}observer(ShadowEditor);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(ShadowEditor,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"amis-theme-shadow-editor",strictMode:!1,renderLabel:!1})],eme),eme})(React__default.Component);var deepDiff={exports:{}};(function(x_,eme){(function($P,tme){var ame=tme($P);x_.exports=ame})(commonjsGlobal$1,function($P){var tme=["N","E","A","D"];function ame(Cme,Sme){Cme.super_=Sme,Cme.prototype=Object.create(Sme.prototype,{constructor:{value:Cme,enumerable:!1,writable:!0,configurable:!0}})}function nme(Cme,Sme){Object.defineProperty(this,"kind",{value:Cme,enumerable:!0}),Sme&&Sme.length&&Object.defineProperty(this,"path",{value:Sme,enumerable:!0})}function rme(Cme,Sme,Eme){rme.super_.call(this,"E",Cme),Object.defineProperty(this,"lhs",{value:Sme,enumerable:!0}),Object.defineProperty(this,"rhs",{value:Eme,enumerable:!0})}ame(rme,nme);function ime(Cme,Sme){ime.super_.call(this,"N",Cme),Object.defineProperty(this,"rhs",{value:Sme,enumerable:!0})}ame(ime,nme);function ome(Cme,Sme){ome.super_.call(this,"D",Cme),Object.defineProperty(this,"lhs",{value:Sme,enumerable:!0})}ame(ome,nme);function lme(Cme,Sme,Eme){lme.super_.call(this,"A",Cme),Object.defineProperty(this,"index",{value:Sme,enumerable:!0}),Object.defineProperty(this,"item",{value:Eme,enumerable:!0})}ame(lme,nme);function sme(Cme,Sme,Eme){var xme=Cme.slice(Sme+1||Cme.length);return Cme.length=Sme<0?Cme.length+Sme:Sme,Cme.push.apply(Cme,xme),Cme}function cme(Cme){var Sme=typeof Cme;return Sme!=="object"?Sme:Cme===Math?"math":Cme===null?"null":Array.isArray(Cme)?"array":Object.prototype.toString.call(Cme)==="[object Date]"?"date":typeof Cme.toString=="function"&&/^\/.*\//.test(Cme.toString())?"regexp":"object"}function dme(Cme){var Sme=0;if(Cme.length===0)return Sme;for(var Eme=0;Eme<Cme.length;Eme++){var xme=Cme.charCodeAt(Eme);Sme=(Sme<<5)-Sme+xme,Sme=Sme&Sme}return Sme}function ume(Cme){var Sme=0,Eme=cme(Cme);if(Eme==="array"){Cme.forEach(function(Nme){Sme+=ume(Nme)});var xme="[type: array, hash: "+Sme+"]";return Sme+dme(xme)}if(Eme==="object"){for(var Tme in Cme)if(Cme.hasOwnProperty(Tme)){var Ome="[ type: object, key: "+Tme+", value hash: "+ume(Cme[Tme])+"]";Sme+=dme(Ome)}return Sme}var Rme="[ type: "+Eme+" ; value: "+Cme+"]";return Sme+dme(Rme)}function fme(Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme){Eme=Eme||[],Tme=Tme||[],Rme=Rme||[];var Ime=Tme.slice(0);if(typeof Ome<"u"&&Ome!==null){if(xme){if(typeof xme=="function"&&xme(Ime,Ome))return;if(typeof xme=="object"){if(xme.prefilter&&xme.prefilter(Ime,Ome))return;if(xme.normalize){var Pme=xme.normalize(Ime,Ome,Cme,Sme);Pme&&(Cme=Pme[0],Sme=Pme[1])}}}Ime.push(Ome)}cme(Cme)==="regexp"&&cme(Sme)==="regexp"&&(Cme=Cme.toString(),Sme=Sme.toString());var Mme=typeof Cme,kme=typeof Sme,Bme,Dme,jme,Vme,Wme=Mme!=="undefined"||Rme&&Rme.length>0&&Rme[Rme.length-1].lhs&&Object.getOwnPropertyDescriptor(Rme[Rme.length-1].lhs,Ome),Lme=kme!=="undefined"||Rme&&Rme.length>0&&Rme[Rme.length-1].rhs&&Object.getOwnPropertyDescriptor(Rme[Rme.length-1].rhs,Ome);if(!Wme&&Lme)Eme.push(new ime(Ime,Sme));else if(!Lme&&Wme)Eme.push(new ome(Ime,Cme));else if(cme(Cme)!==cme(Sme))Eme.push(new rme(Ime,Cme,Sme));else if(cme(Cme)==="date"&&Cme-Sme!==0)Eme.push(new rme(Ime,Cme,Sme));else if(Mme==="object"&&Cme!==null&&Sme!==null){for(Bme=Rme.length-1;Bme>-1;--Bme)if(Rme[Bme].lhs===Cme){Vme=!0;break}if(Vme)Cme!==Sme&&Eme.push(new rme(Ime,Cme,Sme));else{if(Rme.push({lhs:Cme,rhs:Sme}),Array.isArray(Cme)){for(Nme&&(Cme.sort(function(Gme,Jme){return ume(Gme)-ume(Jme)}),Sme.sort(function(Gme,Jme){return ume(Gme)-ume(Jme)})),Bme=Sme.length-1,Dme=Cme.length-1;Bme>Dme;)Eme.push(new lme(Ime,Bme,new ime(void 0,Sme[Bme--])));for(;Dme>Bme;)Eme.push(new lme(Ime,Dme,new ome(void 0,Cme[Dme--])));for(;Bme>=0;--Bme)fme(Cme[Bme],Sme[Bme],Eme,xme,Ime,Bme,Rme,Nme)}else{var zme=Object.keys(Cme),Ume=Object.keys(Sme);for(Bme=0;Bme<zme.length;++Bme)jme=zme[Bme],Vme=Ume.indexOf(jme),Vme>=0?(fme(Cme[jme],Sme[jme],Eme,xme,Ime,jme,Rme,Nme),Ume[Vme]=null):fme(Cme[jme],void 0,Eme,xme,Ime,jme,Rme,Nme);for(Bme=0;Bme<Ume.length;++Bme)jme=Ume[Bme],jme&&fme(void 0,Sme[jme],Eme,xme,Ime,jme,Rme,Nme)}Rme.length=Rme.length-1}}else Cme!==Sme&&(Mme==="number"&&isNaN(Cme)&&isNaN(Sme)||Eme.push(new rme(Ime,Cme,Sme)))}function pme(Cme,Sme,Eme,xme,Tme){var Ome=[];if(fme(Cme,Sme,Ome,xme,null,null,null,Tme),Eme)for(var Rme=0;Rme<Ome.length;++Rme)Eme(Ome[Rme]);return Ome}function hme(Cme,Sme,Eme,xme,Tme,Ome,Rme){return fme(Cme,Sme,Eme,xme,Tme,Ome,Rme,!0)}function bme(Cme,Sme,Eme,xme){var Tme=xme?function(Rme){Rme&&xme.push(Rme)}:void 0,Ome=pme(Cme,Sme,Tme,Eme);return xme||(Ome.length?Ome:void 0)}function mme(Cme,Sme,Eme,xme){var Tme=xme?function(Rme){Rme&&xme.push(Rme)}:void 0,Ome=pme(Cme,Sme,Tme,Eme,!0);return xme||(Ome.length?Ome:void 0)}function vme(Cme,Sme,Eme){if(Eme.path&&Eme.path.length){var xme=Cme[Sme],Tme,Ome=Eme.path.length-1;for(Tme=0;Tme<Ome;Tme++)xme=xme[Eme.path[Tme]];switch(Eme.kind){case"A":vme(xme[Eme.path[Tme]],Eme.index,Eme.item);break;case"D":delete xme[Eme.path[Tme]];break;case"E":case"N":xme[Eme.path[Tme]]=Eme.rhs;break}}else switch(Eme.kind){case"A":vme(Cme[Sme],Eme.index,Eme.item);break;case"D":Cme=sme(Cme,Sme);break;case"E":case"N":Cme[Sme]=Eme.rhs;break}return Cme}function gme(Cme,Sme,Eme){if(typeof Eme>"u"&&Sme&&~tme.indexOf(Sme.kind)&&(Eme=Sme),Cme&&Eme&&Eme.kind){for(var xme=Cme,Tme=-1,Ome=Eme.path?Eme.path.length-1:0;++Tme<Ome;)typeof xme[Eme.path[Tme]]>"u"&&(xme[Eme.path[Tme]]=typeof Eme.path[Tme+1]<"u"&&typeof Eme.path[Tme+1]=="number"?[]:{}),xme=xme[Eme.path[Tme]];switch(Eme.kind){case"A":Eme.path&&typeof xme[Eme.path[Tme]]>"u"&&(xme[Eme.path[Tme]]=[]),vme(Eme.path?xme[Eme.path[Tme]]:xme,Eme.index,Eme.item);break;case"D":delete xme[Eme.path[Tme]];break;case"E":case"N":xme[Eme.path[Tme]]=Eme.rhs;break}}}function yme(Cme,Sme,Eme){if(Eme.path&&Eme.path.length){var xme=Cme[Sme],Tme,Ome=Eme.path.length-1;for(Tme=0;Tme<Ome;Tme++)xme=xme[Eme.path[Tme]];switch(Eme.kind){case"A":yme(xme[Eme.path[Tme]],Eme.index,Eme.item);break;case"D":xme[Eme.path[Tme]]=Eme.lhs;break;case"E":xme[Eme.path[Tme]]=Eme.lhs;break;case"N":delete xme[Eme.path[Tme]];break}}else switch(Eme.kind){case"A":yme(Cme[Sme],Eme.index,Eme.item);break;case"D":Cme[Sme]=Eme.lhs;break;case"E":Cme[Sme]=Eme.lhs;break;case"N":Cme=sme(Cme,Sme);break}return Cme}function _me(Cme,Sme,Eme){if(Cme&&Sme&&Eme&&Eme.kind){var xme=Cme,Tme,Ome;for(Ome=Eme.path.length-1,Tme=0;Tme<Ome;Tme++)typeof xme[Eme.path[Tme]]>"u"&&(xme[Eme.path[Tme]]={}),xme=xme[Eme.path[Tme]];switch(Eme.kind){case"A":yme(xme[Eme.path[Tme]],Eme.index,Eme.item);break;case"D":xme[Eme.path[Tme]]=Eme.lhs;break;case"E":xme[Eme.path[Tme]]=Eme.lhs;break;case"N":delete xme[Eme.path[Tme]];break}}}function $me(Cme,Sme,Eme){if(Cme&&Sme){var xme=function(Tme){(!Eme||Eme(Cme,Sme,Tme))&&gme(Cme,Sme,Tme)};pme(Cme,Sme,xme)}}return Object.defineProperties(bme,{diff:{value:bme,enumerable:!0},orderIndependentDiff:{value:mme,enumerable:!0},observableDiff:{value:pme,enumerable:!0},orderIndependentObservableDiff:{value:hme,enumerable:!0},orderIndepHash:{value:ume,enumerable:!0},applyDiff:{value:$me,enumerable:!0},applyChange:{value:gme,enumerable:!0},revertChange:{value:_me,enumerable:!0},isConflict:{value:function(){return typeof $conflict<"u"},enumerable:!0}}),bme.DeepDiff=bme,$P&&($P.DeepDiff=bme),bme})})(deepDiff);var deepDiffExports=deepDiff.exports;const DeepDiff=getDefaultExportFromCjs(deepDiffExports);var lib$1={},Frame$2={},Context={};Object.defineProperty(Context,"__esModule",{value:!0});Context.FrameContextConsumer=Context.FrameContextProvider=Context.useFrame=Context.FrameContext=void 0;var _react$2=reactExports,_react2$1=_interopRequireDefault$2(_react$2);function _interopRequireDefault$2(x_){return x_&&x_.__esModule?x_:{default:x_}}var doc=void 0,win=void 0;typeof document<"u"&&(doc=document);typeof window<"u"&&(win=window);var FrameContext=Context.FrameContext=_react2$1.default.createContext({document:doc,window:win});Context.useFrame=function(){return _react2$1.default.useContext(FrameContext)};var FrameContextProvider=FrameContext.Provider,FrameContextConsumer=FrameContext.Consumer;Context.FrameContextProvider=FrameContextProvider;Context.FrameContextConsumer=FrameContextConsumer;var Content$1={};Object.defineProperty(Content$1,"__esModule",{value:!0});var _createClass$1=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}(),_react$1=reactExports;_interopRequireDefault$1(_react$1);var _propTypes$1=propTypesExports,_propTypes2$1=_interopRequireDefault$1(_propTypes$1);function _interopRequireDefault$1(x_){return x_&&x_.__esModule?x_:{default:x_}}function _classCallCheck$1(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$1(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits$1(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Content=function(x_){_inherits$1(eme,x_);function eme(){return _classCallCheck$1(this,eme),_possibleConstructorReturn$1(this,(eme.__proto__||Object.getPrototypeOf(eme)).apply(this,arguments))}return _createClass$1(eme,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return _react$1.Children.only(this.props.children)}}]),eme}(_react$1.Component);Content.propTypes={children:_propTypes2$1.default.element.isRequired,contentDidMount:_propTypes2$1.default.func.isRequired,contentDidUpdate:_propTypes2$1.default.func.isRequired};Content$1.default=Content;Object.defineProperty(Frame$2,"__esModule",{value:!0});Frame$2.Frame=void 0;var _extends$2o=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_createClass=function(){function x_(eme,$P){for(var tme=0;tme<$P.length;tme++){var ame=$P[tme];ame.enumerable=ame.enumerable||!1,ame.configurable=!0,"value"in ame&&(ame.writable=!0),Object.defineProperty(eme,ame.key,ame)}}return function(eme,$P,tme){return $P&&x_(eme.prototype,$P),tme&&x_(eme,tme),eme}}(),_react=reactExports,_react2=_interopRequireDefault(_react),_reactDom=reactDomExports,_reactDom2=_interopRequireDefault(_reactDom),_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_Context=Context,_Content=Content$1,_Content2=_interopRequireDefault(_Content);function _interopRequireDefault(x_){return x_&&x_.__esModule?x_:{default:x_}}function _classCallCheck(x_,eme){if(!(x_ instanceof eme))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(x_,eme){if(!x_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return eme&&(typeof eme=="object"||typeof eme=="function")?eme:x_}function _inherits(x_,eme){if(typeof eme!="function"&&eme!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof eme);x_.prototype=Object.create(eme&&eme.prototype,{constructor:{value:x_,enumerable:!1,writable:!0,configurable:!0}}),eme&&(Object.setPrototypeOf?Object.setPrototypeOf(x_,eme):x_.__proto__=eme)}var Frame$1=Frame$2.Frame=function(x_){_inherits(eme,x_);function eme($P,tme){_classCallCheck(this,eme);var ame=_possibleConstructorReturn(this,(eme.__proto__||Object.getPrototypeOf(eme)).call(this,$P,tme));return ame.setRef=function(nme){ame.nodeRef.current=nme;var rme=ame.props.forwardedRef;typeof rme=="function"?rme(nme):rme&&(rme.current=nme)},ame.handleLoad=function(){clearInterval(ame.loadCheck),ame.state.iframeLoaded||ame.setState({iframeLoaded:!0})},ame.loadCheck=function(){return setInterval(function(){ame.handleLoad()},500)},ame._isMounted=!1,ame.nodeRef=_react2.default.createRef(),ame.state={iframeLoaded:!1},ame}return _createClass(eme,[{key:"componentDidMount",value:function(){this._isMounted=!0;var tme=this.getDoc();tme&&this.nodeRef.current.contentWindow.addEventListener("DOMContentLoaded",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.nodeRef.current.removeEventListener("DOMContentLoaded",this.handleLoad)}},{key:"getDoc",value:function(){return this.nodeRef.current?this.nodeRef.current.contentDocument:null}},{key:"getMountTarget",value:function(){var tme=this.getDoc();return this.props.mountTarget?tme.querySelector(this.props.mountTarget):tme.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var tme=this.getDoc();if(!tme)return null;var ame=this.props.contentDidMount,nme=this.props.contentDidUpdate,rme=tme.defaultView||tme.parentView,ime=_react2.default.createElement(_Content2.default,{contentDidMount:ame,contentDidUpdate:nme},_react2.default.createElement(_Context.FrameContextProvider,{value:{document:tme,window:rme}},_react2.default.createElement("div",{className:"frame-content"},this.props.children))),ome=this.getMountTarget();return ome?[_reactDom2.default.createPortal(this.props.head,this.getDoc().head),_reactDom2.default.createPortal(ime,ome)]:null}},{key:"render",value:function(){var tme=_extends$2o({},this.props,{srcDoc:this.props.initialContent,children:void 0});return delete tme.head,delete tme.initialContent,delete tme.mountTarget,delete tme.contentDidMount,delete tme.contentDidUpdate,delete tme.forwardedRef,_react2.default.createElement("iframe",_extends$2o({},tme,{ref:this.setRef,onLoad:this.handleLoad}),this.state.iframeLoaded&&this.renderFrameContents())}}]),eme}(_react.Component);Frame$1.propTypes={style:_propTypes2.default.object,head:_propTypes2.default.node,initialContent:_propTypes2.default.string,mountTarget:_propTypes2.default.string,contentDidMount:_propTypes2.default.func,contentDidUpdate:_propTypes2.default.func,children:_propTypes2.default.oneOfType([_propTypes2.default.element,_propTypes2.default.arrayOf(_propTypes2.default.element)])};Frame$1.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'};Frame$2.default=_react2.default.forwardRef(function(x_,eme){return _react2.default.createElement(Frame$1,_extends$2o({},x_,{forwardedRef:eme}))});(function(x_){Object.defineProperty(x_,"__esModule",{value:!0});var eme=Frame$2;Object.defineProperty(x_,"default",{enumerable:!0,get:function(){return tme(eme).default}});var $P=Context;Object.defineProperty(x_,"FrameContext",{enumerable:!0,get:function(){return $P.FrameContext}}),Object.defineProperty(x_,"FrameContextConsumer",{enumerable:!0,get:function(){return $P.FrameContextConsumer}}),Object.defineProperty(x_,"useFrame",{enumerable:!0,get:function(){return $P.useFrame}});function tme(ame){return ame&&ame.__esModule?ame:{default:ame}}})(lib$1);const Frame=getDefaultExportFromCjs(lib$1);var lib={},json={};(function(x_){var eme=function(){var $P=function(yme,_me,$me,Cme){for($me=$me||{},Cme=yme.length;Cme--;$me[yme[Cme]]=_me);return $me},tme=[1,13],ame=[1,14],nme=[1,15],rme=[1,16],ime=[1,17],ome=[1,18],lme=[1,19],sme=[1,20],cme=[5,17,21,26],dme=[5,17,21,26,30],ume=[5,7,9,10,12,14,16,17,21,22,25,26,30],fme=[17,21],pme=[21,26],hme={trace:function(){},yy:{},symbols_:{error:2,json_document:3,json_document_body:4,EOF:5,json_null_literal:6,NULLTOKEN:7,json_boolean_literal:8,TRUETOKEN:9,FALSETOKEN:10,json_string:11,STRING_LITERAL:12,json_number:13,NUMBER_LITERAL:14,json_object:15,"{":16,"}":17,json_comments:18,json_member_list:19,json_member:20,",":21,":":22,json_with_comments_value:23,json_array:24,"[":25,"]":26,json_element_list:27,json_value:28,json_comment:29,COMMENTS:30,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:"NULLTOKEN",9:"TRUETOKEN",10:"FALSETOKEN",12:"STRING_LITERAL",14:"NUMBER_LITERAL",16:"{",17:"}",21:",",22:":",25:"[",26:"]",30:"COMMENTS"},productions_:[0,[3,2],[6,1],[8,1],[8,1],[11,1],[13,1],[15,2],[15,3],[15,3],[19,1],[19,3],[20,3],[20,4],[20,4],[20,5],[24,2],[24,3],[24,3],[27,1],[27,3],[28,1],[28,1],[28,1],[28,1],[28,1],[28,1],[29,1],[18,1],[18,2],[23,1],[23,2],[23,2],[23,3],[4,1]],performAction:function(_me,$me,Cme,Sme,Eme,xme,Tme){var Ome=xme.length-1;switch(Eme){case 1:return{type:"document",body:xme[Ome-1],range:mme(Cme,_me)};case 2:this.$={type:"null",value:null,range:mme(Cme,_me)};break;case 3:this.$={type:"boolean",value:!0,range:mme(Cme,_me)};break;case 4:this.$={type:"boolean",value:!1,range:mme(Cme,_me)};break;case 5:this.$={type:"string",value:bme(xme[Ome].substring(1,xme[Ome].length-1),xme[Ome].substring(0,1)),range:mme(Cme,_me)};break;case 6:this.$={type:"number",value:/\./.test(xme[Ome])?parseFloat(xme[Ome]):parseInt(xme[Ome],10),raw:xme[Ome],range:mme(Cme,_me)};break;case 7:this.$={type:"object",members:[],range:mme(Cme,_me)};break;case 8:case 9:this.$={type:"object",members:xme[Ome-1],range:mme(Cme,_me)};break;case 10:this.$=[xme[Ome]];break;case 11:case 20:this.$=xme[Ome-2].concat(xme[Ome]);break;case 12:this.$={type:"property",key:[xme[Ome-2]],value:xme[Ome],range:mme(Cme,_me)};break;case 13:this.$={type:"property",key:xme[Ome-3].concat(xme[Ome-2]),value:xme[Ome],range:mme(Cme,_me)};break;case 14:this.$={type:"property",key:[xme[Ome-3]].concat(xme[Ome-2]),value:xme[Ome],range:mme(Cme,_me)};break;case 15:this.$={type:"property",key:xme[Ome-4].concat(xme[Ome-3]).concat(xme[Ome-2]),value:xme[Ome],range:mme(Cme,_me)};break;case 16:this.$={type:"array",members:[],range:mme(Cme,_me)};break;case 17:case 18:this.$={type:"array",members:xme[Ome-1],range:mme(Cme,_me)};break;case 19:this.$=xme[Ome];break;case 27:this.$={type:"comment",value:xme[Ome],range:mme(Cme,_me)};break;case 28:case 30:this.$=[xme[Ome]];break;case 29:case 31:this.$=xme[Ome-1].concat(xme[Ome]);break;case 32:this.$=[xme[Ome-1]].concat(xme[Ome]);break;case 33:this.$=xme[Ome-2].concat(xme[Ome-1]).concat(xme[Ome]);break;case 34:this.$=xme[Ome];break}},table:[{3:1,4:2,6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:3,24:11,25:lme,28:4,29:12,30:sme},{1:[3]},{5:[1,21]},{5:[2,34]},$P(cme,[2,30],{29:12,18:22,30:sme}),{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,24:11,25:lme,28:23,29:24,30:sme},$P(dme,[2,21]),$P(dme,[2,22]),$P(dme,[2,23]),$P(dme,[2,24]),$P(dme,[2,25]),$P(dme,[2,26]),$P(ume,[2,28]),$P(dme,[2,2]),$P(dme,[2,3]),$P(dme,[2,4]),$P([5,17,21,22,26,30],[2,5]),$P(dme,[2,6]),{11:29,12:rme,17:[1,25],18:26,19:27,20:28,29:12,30:sme},{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:32,23:33,24:11,25:lme,26:[1,30],27:31,28:4,29:12,30:sme},$P(ume,[2,27]),{1:[2,1]},$P(cme,[2,32],{29:24,30:sme}),$P(cme,[2,31],{29:12,18:34,30:sme}),$P(ume,[2,29]),$P(dme,[2,7]),{11:36,12:rme,17:[1,35],29:24,30:sme},{17:[1,37],21:[1,38]},$P(fme,[2,10]),{18:40,22:[1,39],29:12,30:sme},$P(dme,[2,16]),{21:[1,42],26:[1,41]},{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,24:11,25:lme,26:[1,43],28:23,29:24,30:sme},$P(pme,[2,19]),$P(cme,[2,33],{29:24,30:sme}),$P(dme,[2,8]),{18:45,22:[1,44],29:12,30:sme},$P(dme,[2,9]),{11:29,12:rme,18:47,20:46,29:12,30:sme},{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:48,24:11,25:lme,28:4,29:12,30:sme},{22:[1,49],29:24,30:sme},$P(dme,[2,17]),{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:50,24:11,25:lme,28:4,29:12,30:sme},$P(dme,[2,18]),{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:51,24:11,25:lme,28:4,29:12,30:sme},{22:[1,52],29:24,30:sme},$P(fme,[2,11]),{11:36,12:rme,29:24,30:sme},$P(fme,[2,12]),{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:53,24:11,25:lme,28:4,29:12,30:sme},$P(pme,[2,20]),$P(fme,[2,13]),{6:6,7:tme,8:7,9:ame,10:nme,11:8,12:rme,13:9,14:ime,15:10,16:ome,18:5,23:54,24:11,25:lme,28:4,29:12,30:sme},$P(fme,[2,14]),$P(fme,[2,15])],defaultActions:{3:[2,34],21:[2,1]},parseError:function(_me,$me){if($me.recoverable)this.trace(_me);else{var Cme=new Error(_me);throw Cme.hash=$me,Cme}},parse:function(_me){var $me=this,Cme=[0],Sme=[null],Eme=[],xme=this.table,Tme="",Ome=0,Rme=0,Nme=2,Ime=1,Pme=Eme.slice.call(arguments,1),Mme=Object.create(this.lexer),kme={yy:{}};for(var Bme in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bme)&&(kme.yy[Bme]=this.yy[Bme]);Mme.setInput(_me,kme.yy),kme.yy.lexer=Mme,kme.yy.parser=this,typeof Mme.yylloc>"u"&&(Mme.yylloc={});var Dme=Mme.yylloc;Eme.push(Dme);var jme=Mme.options&&Mme.options.ranges;typeof kme.yy.parseError=="function"?this.parseError=kme.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Vme=function(){var Zme;return Zme=Mme.lex()||Ime,typeof Zme!="number"&&(Zme=$me.symbols_[Zme]||Zme),Zme},Wme,Lme,zme,Ume,Gme={},Jme,Yme,Qme,Xme;;){if(Lme=Cme[Cme.length-1],this.defaultActions[Lme]?zme=this.defaultActions[Lme]:((Wme===null||typeof Wme>"u")&&(Wme=Vme()),zme=xme[Lme]&&xme[Lme][Wme]),typeof zme>"u"||!zme.length||!zme[0]){var Kme="";Xme=[];for(Jme in xme[Lme])this.terminals_[Jme]&&Jme>Nme&&Xme.push("'"+this.terminals_[Jme]+"'");Mme.showPosition?Kme="Parse error on line "+(Ome+1)+`:
`+Mme.showPosition()+`
Expecting `+Xme.join(", ")+", got '"+(this.terminals_[Wme]||Wme)+"'":Kme="Parse error on line "+(Ome+1)+": Unexpected "+(Wme==Ime?"end of input":"'"+(this.terminals_[Wme]||Wme)+"'"),this.parseError(Kme,{text:Mme.match,token:this.terminals_[Wme]||Wme,line:Mme.yylineno,loc:Dme,expected:Xme})}if(zme[0]instanceof Array&&zme.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lme+", token: "+Wme);switch(zme[0]){case 1:Cme.push(Wme),Sme.push(Mme.yytext),Eme.push(Mme.yylloc),Cme.push(zme[1]),Wme=null,Rme=Mme.yyleng,Tme=Mme.yytext,Ome=Mme.yylineno,Dme=Mme.yylloc;break;case 2:if(Yme=this.productions_[zme[1]][1],Gme.$=Sme[Sme.length-Yme],Gme._$={first_line:Eme[Eme.length-(Yme||1)].first_line,last_line:Eme[Eme.length-1].last_line,first_column:Eme[Eme.length-(Yme||1)].first_column,last_column:Eme[Eme.length-1].last_column},jme&&(Gme._$.range=[Eme[Eme.length-(Yme||1)].range[0],Eme[Eme.length-1].range[1]]),Ume=this.performAction.apply(Gme,[Tme,Rme,Ome,kme.yy,zme[1],Sme,Eme].concat(Pme)),typeof Ume<"u")return Ume;Yme&&(Cme=Cme.slice(0,-1*Yme*2),Sme=Sme.slice(0,-1*Yme),Eme=Eme.slice(0,-1*Yme)),Cme.push(this.productions_[zme[1]][0]),Sme.push(Gme.$),Eme.push(Gme._$),Qme=xme[Cme[Cme.length-2]][Cme[Cme.length-1]],Cme.push(Qme);break;case 3:return!0}}return!0}};function bme(yme,_me){var $me=_me==="`"?/\\([\\bfnrtv`\$])/g:_me==='"'?/\\([\"\\bfnrtv])/g:/\\([\'\\bfnrtv])/g;return yme.replace($me,function(Cme,Sme){return Sme==="b"?"\b":Sme==="f"?"\f":Sme==="n"?`
`:Sme==="r"?"\r":Sme==="t"?"	":Sme==="v"?"\v":Sme})}function mme(yme,_me){return{start:{line:yme-_me.replace(/^\s+/,"").split(/(?:\r\n|\n|\r)/).length+1},end:{line:yme}}}var vme=function(){var yme={EOF:1,parseError:function($me,Cme){if(this.yy.parser)this.yy.parser.parseError($me,Cme);else throw new Error($me)},setInput:function(_me,$me){return this.yy=$me||this.yy||{},this._input=_me,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var _me=this._input[0];this.yytext+=_me,this.yyleng++,this.offset++,this.match+=_me,this.matched+=_me;var $me=_me.match(/(?:\r\n?|\n).*/g);return $me?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_me},unput:function(_me){var $me=_me.length,Cme=_me.split(/(?:\r\n?|\n)/g);this._input=_me+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-$me),this.offset-=$me;var Sme=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Cme.length-1&&(this.yylineno-=Cme.length-1);var Eme=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Cme?(Cme.length===Sme.length?this.yylloc.first_column:0)+Sme[Sme.length-Cme.length].length-Cme[0].length:this.yylloc.first_column-$me},this.options.ranges&&(this.yylloc.range=[Eme[0],Eme[0]+this.yyleng-$me]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(_me){this.unput(this.match.slice(_me))},pastInput:function(){var _me=this.matched.substr(0,this.matched.length-this.match.length);return(_me.length>20?"...":"")+_me.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _me=this.match;return _me.length<20&&(_me+=this._input.substr(0,20-_me.length)),(_me.substr(0,20)+(_me.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _me=this.pastInput(),$me=new Array(_me.length+1).join("-");return _me+this.upcomingInput()+`
`+$me+"^"},test_match:function(_me,$me){var Cme,Sme,Eme;if(this.options.backtrack_lexer&&(Eme={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(Eme.yylloc.range=this.yylloc.range.slice(0))),Sme=_me[0].match(/(?:\r\n?|\n).*/g),Sme&&(this.yylineno+=Sme.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Sme?Sme[Sme.length-1].length-Sme[Sme.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_me[0].length},this.yytext+=_me[0],this.match+=_me[0],this.matches=_me,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_me[0].length),this.matched+=_me[0],Cme=this.performAction.call(this,this.yy,this,$me,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Cme)return Cme;if(this._backtrack){for(var xme in Eme)this[xme]=Eme[xme];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _me,$me,Cme,Sme;this._more||(this.yytext="",this.match="");for(var Eme=this._currentRules(),xme=0;xme<Eme.length;xme++)if(Cme=this._input.match(this.rules[Eme[xme]]),Cme&&(!$me||Cme[0].length>$me[0].length)){if($me=Cme,Sme=xme,this.options.backtrack_lexer){if(_me=this.test_match(Cme,Eme[xme]),_me!==!1)return _me;if(this._backtrack){$me=!1;continue}else return!1}else if(!this.options.flex)break}return $me?(_me=this.test_match($me,Eme[Sme]),_me!==!1?_me:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var $me=this.next();return $me||this.lex()},begin:function($me){this.conditionStack.push($me)},popState:function(){var $me=this.conditionStack.length-1;return $me>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function($me){return $me=this.conditionStack.length-1-Math.abs($me||0),$me>=0?this.conditionStack[$me]:"INITIAL"},pushState:function($me){this.begin($me)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function($me,Cme,Sme,Eme){switch(Sme){case 0:break;case 1:return 12;case 2:return 7;case 3:return 9;case 4:return 10;case 5:return 14;case 6:return"/";case 7:return"*";case 8:return 22;case 9:return 25;case 10:return 26;case 11:return 16;case 12:return 17;case 13:return";";case 14:return 21;case 15:return 30;case 16:return 30;case 17:return 5;case 18:return"INVALID";case 19:console.log(Cme.yytext);break}},rules:[/^(?:\s+)/,/^(?:("((\\([\'\"\\bfnrtv]))|([^\"\\]))*"))/,/^(?:null)/,/^(?:true)/,/^(?:false)/,/^(?:((([-+]?([0]|(([1-9])([0-9])*))\.([0-9])*(([eE])([-+]?([0-9])))?)|([-+]?\.([0-9])(([eE])([-+]?([0-9])))?)|([-+]?([0]|(([1-9])([0-9])*))(([eE])([-+]?([0-9])))?))))/,/^(?:\/)/,/^(?:\*)/,/^(?::)/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:;)/,/^(?:,)/,/^(?:\s*\/\/.*\s*)/,/^(?:\s*[/][*][^*]*[*]+([^/*][^*]*[*]+)*[/]\s*)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],inclusive:!0}}};return yme}();hme.lexer=vme;function gme(){this.yy={}}return gme.prototype=hme,hme.Parser=gme,new gme}();typeof commonjsRequire<"u"&&(x_.parser=eme,x_.Parser=eme.Parser,x_.parse=function(){return eme.parse.apply(eme,arguments)})})(json);Object.defineProperty(lib,"__esModule",{value:!0});var stringify_1=lib.stringify=parse_1=lib.parse=lib.parser=void 0,parser=json;lib.parser=parser;function parseDocument(x_){for(var eme=x_.body.length,$P=0;$P<eme;){var tme=x_.body[$P];if(tme.type!=="comment")return parseNode(tme);$P++}throw new Error("Json 格式错误，数值为空")}function parseComment(x_){return x_.value}function parseString(x_){return x_.value}function parseNull(x_){return x_.value}function parseBoolean(x_){return x_.value}function parseNumber(x_){return x_.value}function parseArray(x_,eme){var $P=[],tme=[];return x_.members.forEach(function(ame,nme){for(var rme=null,ime=nme-1;ime>=0&&(rme=x_.members[ime],rme.type==="comment");)ime--;ame.type!=="comment"?(eme&&(eme[$P.length]=[tme.length?tme:0]),$P.push(parseNode(ame)),tme=[]):eme&&(rme==null?void 0:rme.type)!=="comment"&&(rme==null?void 0:rme.range.end.line)===ame.range.start.line?(eme[$P.length-1][1]=eme[$P.length-1][1]||[],eme[$P.length-1][1].push(parseNode(ame))):tme.push(parseNode(ame))}),tme.length&&eme&&(eme.$$=tme),$P}function parseObject(x_){var eme={};eme.$$comments=eme.$$comments||{};var $P=[];return x_.members.forEach(function(tme,ame){var nme,rme,ime;if(tme.type==="comment"){$P.push(parseNode(tme));return}var ome=ame>0?x_.members[ame-1]:null,lme=(nme=ome)===null||nme===void 0?void 0:nme.key.filter(function(vme){return vme.type!=="comment"})[0],sme=lme?parseNode(lme):"",cme=(rme=ome)===null||rme===void 0?void 0:rme.value.filter(function(vme){return vme.type!=="comment"})[0],dme=[],ume=[],fme=[],pme=[],hme=null,bme=null;tme.key.forEach(function(vme){vme.type!=="comment"?hme=vme:hme?ume.push(parseNode(vme)):cme&&(vme==null?void 0:vme.range.start.line)===(cme==null?void 0:cme.range.end.line)?(eme.$$comments[sme][4]=eme.$$comments[sme][4]||[],eme.$$comments[sme][4].push(parseNode(vme))):dme.push(parseNode(vme))}),tme.value.forEach(function(vme){vme.type!=="comment"?bme=vme:bme?pme.push(parseNode(vme)):fme.push(parseNode(vme))});var mme=parseNode(hme);((ime=bme)===null||ime===void 0?void 0:ime.type)==="array"?(eme.$$comments["$"+mme]={},eme[mme]=parseNode(bme,eme.$$comments["$"+mme])):eme[mme]=parseNode(bme),eme.$$comments[mme]=[dme.length?dme:0,ume.length?ume:0,fme.length?fme:0,pme.length?pme:0]}),$P.length&&(eme.$$comments=eme.$$comments||{},eme.$$comments.$$=$P),clearup(eme),eme}function parseNode(x_,eme){if(x_.type==="document")return parseDocument(x_);if(x_.type==="comment")return parseComment(x_);if(x_.type==="string")return parseString(x_);if(x_.type==="null")return parseNull(x_);if(x_.type==="boolean")return parseBoolean(x_);if(x_.type==="number")return parseNumber(x_);if(x_.type==="array")return parseArray(x_,eme);if(x_.type==="object")return parseObject(x_);throw new Error("Unknown ast type: "+x_.type)}function parse(x_){var eme=parser.parse(x_);return parseNode(eme)}var parse_1=lib.parse=parse;function stringify(x_){return stringifyNode(x_)}stringify_1=lib.stringify=stringify;var tabSize=2;function whitespace(x_){for(var eme="";x_-- >0;)eme+=" ";return eme}function clearup(x_){x_.$$comments&&(Object.keys(x_.$$comments).forEach(function(eme){var $P=x_.$$comments[eme];if(eme[0]==="$"&&isPlainObject$1($P)){var tme=Object.keys($P);tme.length&&tme.forEach(function(nme){if(nme!=="$$"){for(var rme=$P[nme],ime=rme.length;ime-- >0&&!rme[ime];)rme.splice(ime,1);rme.length||delete $P[nme]}}),Object.keys($P).length||delete x_.$$comments[eme]}else if(Array.isArray($P)){for(var ame=$P.length;ame-- >0&&!$P[ame];)$P.splice(ame,1);$P.length||delete x_.$$comments[eme]}}),Object.keys(x_.$$comments).length||delete x_.$$comments)}function stringifyNode(x_,eme,$P){if(eme===void 0&&(eme=0),isPlainObject$1(x_)){var tme=x_.$$comments,ame=Object.keys(x_),nme=ame.indexOf("$$comments");~nme&&ame.splice(nme,1);var rme=ame.length,ime=["{"];if(ame.forEach(function(cme,dme){var ume=tme==null?void 0:tme[cme],fme=x_[cme],pme="",hme="";ume?(pme=(ume[0]?ume[0].join(""):"")+'"'+cme+'"',hme=(ume[1]?ume[1].join(""):"")+":"+(ume[2]?ume[2].join(""):" ")+stringifyNode(fme,eme+tabSize,tme==null?void 0:tme["$"+cme])+(ume[3]?ume[3].join("").replace(/\n *$/,""):"")+(rme-1===dme?"":",")+(ume[4]?ume[4].join("").replace(/\n *$/,""):""),pme=pme.replace(/^\n/,"").replace(/(\n|^) *?([^\s])/g,function(bme,mme,vme){return""+mme+whitespace(eme+tabSize)+(vme==="*"?" *":vme)})):(pme=whitespace(eme+tabSize)+'"'+cme+'"',hme=": "+stringifyNode(fme,eme+tabSize,tme==null?void 0:tme["$"+cme])+(rme-1===dme?"":",")),ime.push(pme+hme)}),Array.isArray(tme==null?void 0:tme.$$)){var ome=(""+tme.$$.join("")).trim().replace(/(\n|^) *?([^\s])/g,function(cme,dme,ume){return""+dme+whitespace(eme+tabSize)+(ume==="*"?" *":ume)});ime.push(ome)}return ime.length>1?ime.push(whitespace(eme)+"}"):ime[0]+="}",ime.join(`
`)}else if(Array.isArray(x_)){var lme=["["],sme=x_.length;return x_.forEach(function(cme,dme){var ume=$P==null?void 0:$P[dme];if(Array.isArray(ume)){var fme=""+(ume[0]?ume[0].join("").replace(/^\n/,""):""),pme=""+stringifyNode(cme,eme+tabSize)+(sme-1===dme?"":",")+(ume[1]?ume[1].join(""):"");fme=(fme+pme.substring(0,1)).replace(/^\n/,"").replace(/(\n|^) *?([^\s])/g,function(hme,bme,mme){return""+bme+whitespace(eme+tabSize)+(mme==="*"?" *":mme)}),lme.push(fme+pme.substring(1))}else lme.push(whitespace(eme+tabSize)+stringifyNode(cme,eme+tabSize)+(sme-1===dme?"":","))}),Array.isArray($P==null?void 0:$P.$$)&&lme.push($P.$$.join("").replace(/^\n|\n$/g,"").replace(/(\n|^) *?([^\s])/g,function(cme,dme,ume){return""+dme+whitespace(eme+tabSize)+(ume==="*"?" *":ume)})),lme.length>1?lme.push(whitespace(eme)+"]"):lme[0]+="]",lme.join(`
`)}return JSON.stringify(x_,null,tabSize)}function isPlainObject$1(x_){return Object.prototype.toString.call(x_)==="[object Object]"}var axios$3={exports:{}},bind$2=function(eme,$P){return function(){for(var ame=new Array(arguments.length),nme=0;nme<ame.length;nme++)ame[nme]=arguments[nme];return eme.apply($P,ame)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray$2(x_){return toString.call(x_)==="[object Array]"}function isUndefined(x_){return typeof x_>"u"}function isBuffer(x_){return x_!==null&&!isUndefined(x_)&&x_.constructor!==null&&!isUndefined(x_.constructor)&&typeof x_.constructor.isBuffer=="function"&&x_.constructor.isBuffer(x_)}function isArrayBuffer(x_){return toString.call(x_)==="[object ArrayBuffer]"}function isFormData(x_){return typeof FormData<"u"&&x_ instanceof FormData}function isArrayBufferView(x_){var eme;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?eme=ArrayBuffer.isView(x_):eme=x_&&x_.buffer&&x_.buffer instanceof ArrayBuffer,eme}function isString$1(x_){return typeof x_=="string"}function isNumber(x_){return typeof x_=="number"}function isObject$1(x_){return x_!==null&&typeof x_=="object"}function isPlainObject(x_){if(toString.call(x_)!=="[object Object]")return!1;var eme=Object.getPrototypeOf(x_);return eme===null||eme===Object.prototype}function isDate(x_){return toString.call(x_)==="[object Date]"}function isFile(x_){return toString.call(x_)==="[object File]"}function isBlob(x_){return toString.call(x_)==="[object Blob]"}function isFunction(x_){return toString.call(x_)==="[object Function]"}function isStream(x_){return isObject$1(x_)&&isFunction(x_.pipe)}function isURLSearchParams(x_){return typeof URLSearchParams<"u"&&x_ instanceof URLSearchParams}function trim(x_){return x_.replace(/^\s*/,"").replace(/\s*$/,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(x_,eme){if(!(x_===null||typeof x_>"u"))if(typeof x_!="object"&&(x_=[x_]),isArray$2(x_))for(var $P=0,tme=x_.length;$P<tme;$P++)eme.call(null,x_[$P],$P,x_);else for(var ame in x_)Object.prototype.hasOwnProperty.call(x_,ame)&&eme.call(null,x_[ame],ame,x_)}function merge(){var x_={};function eme(ame,nme){isPlainObject(x_[nme])&&isPlainObject(ame)?x_[nme]=merge(x_[nme],ame):isPlainObject(ame)?x_[nme]=merge({},ame):isArray$2(ame)?x_[nme]=ame.slice():x_[nme]=ame}for(var $P=0,tme=arguments.length;$P<tme;$P++)forEach(arguments[$P],eme);return x_}function extend$1(x_,eme,$P){return forEach(eme,function(ame,nme){$P&&typeof ame=="function"?x_[nme]=bind$1(ame,$P):x_[nme]=ame}),x_}function stripBOM(x_){return x_.charCodeAt(0)===65279&&(x_=x_.slice(1)),x_}var utils$9={isArray:isArray$2,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber,isObject:isObject$1,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend:extend$1,trim,stripBOM},utils$8=utils$9;function encode(x_){return encodeURIComponent(x_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$1=function(eme,$P,tme){if(!$P)return eme;var ame;if(tme)ame=tme($P);else if(utils$8.isURLSearchParams($P))ame=$P.toString();else{var nme=[];utils$8.forEach($P,function(ome,lme){ome===null||typeof ome>"u"||(utils$8.isArray(ome)?lme=lme+"[]":ome=[ome],utils$8.forEach(ome,function(cme){utils$8.isDate(cme)?cme=cme.toISOString():utils$8.isObject(cme)&&(cme=JSON.stringify(cme)),nme.push(encode(lme)+"="+encode(cme))}))}),ame=nme.join("&")}if(ame){var rme=eme.indexOf("#");rme!==-1&&(eme=eme.slice(0,rme)),eme+=(eme.indexOf("?")===-1?"?":"&")+ame}return eme},utils$7=utils$9;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(eme,$P){return this.handlers.push({fulfilled:eme,rejected:$P}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(eme){this.handlers[eme]&&(this.handlers[eme]=null)};InterceptorManager$1.prototype.forEach=function(eme){utils$7.forEach(this.handlers,function(tme){tme!==null&&eme(tme)})};var InterceptorManager_1=InterceptorManager$1,utils$6=utils$9,transformData$1=function(eme,$P,tme){return utils$6.forEach(tme,function(nme){eme=nme(eme,$P)}),eme},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(eme){return!!(eme&&eme.__CANCEL__)}),isCancel$1}var utils$5=utils$9,normalizeHeaderName$1=function(eme,$P){utils$5.forEach(eme,function(ame,nme){nme!==$P&&nme.toUpperCase()===$P.toUpperCase()&&(eme[$P]=ame,delete eme[nme])})},enhanceError,hasRequiredEnhanceError;function requireEnhanceError(){return hasRequiredEnhanceError||(hasRequiredEnhanceError=1,enhanceError=function(eme,$P,tme,ame,nme){return eme.config=$P,tme&&(eme.code=tme),eme.request=ame,eme.response=nme,eme.isAxiosError=!0,eme.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:this.config,code:this.code}},eme}),enhanceError}var createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var x_=requireEnhanceError();return createError=function($P,tme,ame,nme,rme){var ime=new Error($P);return x_(ime,tme,ame,nme,rme)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var x_=requireCreateError();return settle=function($P,tme,ame){var nme=ame.config.validateStatus;!ame.status||!nme||nme(ame.status)?$P(ame):tme(x_("Request failed with status code "+ame.status,ame.config,null,ame.request,ame))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var x_=utils$9;return cookies=x_.isStandardBrowserEnv()?function(){return{write:function(tme,ame,nme,rme,ime,ome){var lme=[];lme.push(tme+"="+encodeURIComponent(ame)),x_.isNumber(nme)&&lme.push("expires="+new Date(nme).toGMTString()),x_.isString(rme)&&lme.push("path="+rme),x_.isString(ime)&&lme.push("domain="+ime),ome===!0&&lme.push("secure"),document.cookie=lme.join("; ")},read:function(tme){var ame=document.cookie.match(new RegExp("(^|;\\s*)("+tme+")=([^;]*)"));return ame?decodeURIComponent(ame[3]):null},remove:function(tme){this.write(tme,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(eme){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(eme)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(eme,$P){return $P?eme.replace(/\/+$/,"")+"/"+$P.replace(/^\/+/,""):eme}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var x_=requireIsAbsoluteURL(),eme=requireCombineURLs();return buildFullPath=function(tme,ame){return tme&&!x_(ame)?eme(tme,ame):ame},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var x_=utils$9,eme=["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"];return parseHeaders=function(tme){var ame={},nme,rme,ime;return tme&&x_.forEach(tme.split(`
`),function(lme){if(ime=lme.indexOf(":"),nme=x_.trim(lme.substr(0,ime)).toLowerCase(),rme=x_.trim(lme.substr(ime+1)),nme){if(ame[nme]&&eme.indexOf(nme)>=0)return;nme==="set-cookie"?ame[nme]=(ame[nme]?ame[nme]:[]).concat([rme]):ame[nme]=ame[nme]?ame[nme]+", "+rme:rme}}),ame},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var x_=utils$9;return isURLSameOrigin=x_.isStandardBrowserEnv()?function(){var $P=/(msie|trident)/i.test(navigator.userAgent),tme=document.createElement("a"),ame;function nme(rme){var ime=rme;return $P&&(tme.setAttribute("href",ime),ime=tme.href),tme.setAttribute("href",ime),{href:tme.href,protocol:tme.protocol?tme.protocol.replace(/:$/,""):"",host:tme.host,search:tme.search?tme.search.replace(/^\?/,""):"",hash:tme.hash?tme.hash.replace(/^#/,""):"",hostname:tme.hostname,port:tme.port,pathname:tme.pathname.charAt(0)==="/"?tme.pathname:"/"+tme.pathname}}return ame=nme(window.location.href),function(ime){var ome=x_.isString(ime)?nme(ime):ime;return ome.protocol===ame.protocol&&ome.host===ame.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var x_=utils$9,eme=requireSettle(),$P=requireCookies(),tme=buildURL$1,ame=requireBuildFullPath(),nme=requireParseHeaders(),rme=requireIsURLSameOrigin(),ime=requireCreateError();return xhr=function(lme){return new Promise(function(cme,dme){var ume=lme.data,fme=lme.headers;x_.isFormData(ume)&&delete fme["Content-Type"];var pme=new XMLHttpRequest;if(lme.auth){var hme=lme.auth.username||"",bme=lme.auth.password?unescape(encodeURIComponent(lme.auth.password)):"";fme.Authorization="Basic "+btoa(hme+":"+bme)}var mme=ame(lme.baseURL,lme.url);if(pme.open(lme.method.toUpperCase(),tme(mme,lme.params,lme.paramsSerializer),!0),pme.timeout=lme.timeout,pme.onreadystatechange=function(){if(!(!pme||pme.readyState!==4)&&!(pme.status===0&&!(pme.responseURL&&pme.responseURL.indexOf("file:")===0))){var yme="getAllResponseHeaders"in pme?nme(pme.getAllResponseHeaders()):null,_me=!lme.responseType||lme.responseType==="text"?pme.responseText:pme.response,$me={data:_me,status:pme.status,statusText:pme.statusText,headers:yme,config:lme,request:pme};eme(cme,dme,$me),pme=null}},pme.onabort=function(){pme&&(dme(ime("Request aborted",lme,"ECONNABORTED",pme)),pme=null)},pme.onerror=function(){dme(ime("Network Error",lme,null,pme)),pme=null},pme.ontimeout=function(){var yme="timeout of "+lme.timeout+"ms exceeded";lme.timeoutErrorMessage&&(yme=lme.timeoutErrorMessage),dme(ime(yme,lme,"ECONNABORTED",pme)),pme=null},x_.isStandardBrowserEnv()){var vme=(lme.withCredentials||rme(mme))&&lme.xsrfCookieName?$P.read(lme.xsrfCookieName):void 0;vme&&(fme[lme.xsrfHeaderName]=vme)}if("setRequestHeader"in pme&&x_.forEach(fme,function(yme,_me){typeof ume>"u"&&_me.toLowerCase()==="content-type"?delete fme[_me]:pme.setRequestHeader(_me,yme)}),x_.isUndefined(lme.withCredentials)||(pme.withCredentials=!!lme.withCredentials),lme.responseType)try{pme.responseType=lme.responseType}catch(gme){if(lme.responseType!=="json")throw gme}typeof lme.onDownloadProgress=="function"&&pme.addEventListener("progress",lme.onDownloadProgress),typeof lme.onUploadProgress=="function"&&pme.upload&&pme.upload.addEventListener("progress",lme.onUploadProgress),lme.cancelToken&&lme.cancelToken.promise.then(function(yme){pme&&(pme.abort(),dme(yme),pme=null)}),ume||(ume=null),pme.send(ume)})},xhr}var utils$4=utils$9,normalizeHeaderName=normalizeHeaderName$1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(x_,eme){!utils$4.isUndefined(x_)&&utils$4.isUndefined(x_["Content-Type"])&&(x_["Content-Type"]=eme)}function getDefaultAdapter(){var x_;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(x_=requireXhr()),x_}var defaults$3={adapter:getDefaultAdapter(),transformRequest:[function(eme,$P){return normalizeHeaderName($P,"Accept"),normalizeHeaderName($P,"Content-Type"),utils$4.isFormData(eme)||utils$4.isArrayBuffer(eme)||utils$4.isBuffer(eme)||utils$4.isStream(eme)||utils$4.isFile(eme)||utils$4.isBlob(eme)?eme:utils$4.isArrayBufferView(eme)?eme.buffer:utils$4.isURLSearchParams(eme)?(setContentTypeIfUnset($P,"application/x-www-form-urlencoded;charset=utf-8"),eme.toString()):utils$4.isObject(eme)?(setContentTypeIfUnset($P,"application/json;charset=utf-8"),JSON.stringify(eme)):eme}],transformResponse:[function(eme){if(typeof eme=="string")try{eme=JSON.parse(eme)}catch{}return eme}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(eme){return eme>=200&&eme<300}};defaults$3.headers={common:{Accept:"application/json, text/plain, */*"}};utils$4.forEach(["delete","get","head"],function(eme){defaults$3.headers[eme]={}});utils$4.forEach(["post","put","patch"],function(eme){defaults$3.headers[eme]=utils$4.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$3=utils$9,transformData=transformData$1,isCancel=requireIsCancel(),defaults$2=defaults_1;function throwIfCancellationRequested(x_){x_.cancelToken&&x_.cancelToken.throwIfRequested()}var dispatchRequest$1=function(eme){throwIfCancellationRequested(eme),eme.headers=eme.headers||{},eme.data=transformData(eme.data,eme.headers,eme.transformRequest),eme.headers=utils$3.merge(eme.headers.common||{},eme.headers[eme.method]||{},eme.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(ame){delete eme.headers[ame]});var $P=eme.adapter||defaults$2.adapter;return $P(eme).then(function(ame){return throwIfCancellationRequested(eme),ame.data=transformData(ame.data,ame.headers,eme.transformResponse),ame},function(ame){return isCancel(ame)||(throwIfCancellationRequested(eme),ame&&ame.response&&(ame.response.data=transformData(ame.response.data,ame.response.headers,eme.transformResponse))),Promise.reject(ame)})},utils$2=utils$9,mergeConfig$2=function(eme,$P){$P=$P||{};var tme={},ame=["url","method","data"],nme=["headers","auth","proxy","params"],rme=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ime=["validateStatus"];function ome(dme,ume){return utils$2.isPlainObject(dme)&&utils$2.isPlainObject(ume)?utils$2.merge(dme,ume):utils$2.isPlainObject(ume)?utils$2.merge({},ume):utils$2.isArray(ume)?ume.slice():ume}function lme(dme){utils$2.isUndefined($P[dme])?utils$2.isUndefined(eme[dme])||(tme[dme]=ome(void 0,eme[dme])):tme[dme]=ome(eme[dme],$P[dme])}utils$2.forEach(ame,function(ume){utils$2.isUndefined($P[ume])||(tme[ume]=ome(void 0,$P[ume]))}),utils$2.forEach(nme,lme),utils$2.forEach(rme,function(ume){utils$2.isUndefined($P[ume])?utils$2.isUndefined(eme[ume])||(tme[ume]=ome(void 0,eme[ume])):tme[ume]=ome(void 0,$P[ume])}),utils$2.forEach(ime,function(ume){ume in $P?tme[ume]=ome(eme[ume],$P[ume]):ume in eme&&(tme[ume]=ome(void 0,eme[ume]))});var sme=ame.concat(nme).concat(rme).concat(ime),cme=Object.keys(eme).concat(Object.keys($P)).filter(function(ume){return sme.indexOf(ume)===-1});return utils$2.forEach(cme,lme),tme},utils$1=utils$9,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2;function Axios$1(x_){this.defaults=x_,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(eme){typeof eme=="string"?(eme=arguments[1]||{},eme.url=arguments[0]):eme=eme||{},eme=mergeConfig$1(this.defaults,eme),eme.method?eme.method=eme.method.toLowerCase():this.defaults.method?eme.method=this.defaults.method.toLowerCase():eme.method="get";var $P=[dispatchRequest,void 0],tme=Promise.resolve(eme);for(this.interceptors.request.forEach(function(nme){$P.unshift(nme.fulfilled,nme.rejected)}),this.interceptors.response.forEach(function(nme){$P.push(nme.fulfilled,nme.rejected)});$P.length;)tme=tme.then($P.shift(),$P.shift());return tme};Axios$1.prototype.getUri=function(eme){return eme=mergeConfig$1(this.defaults,eme),buildURL(eme.url,eme.params,eme.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(eme){Axios$1.prototype[eme]=function($P,tme){return this.request(mergeConfig$1(tme||{},{method:eme,url:$P,data:(tme||{}).data}))}});utils$1.forEach(["post","put","patch"],function(eme){Axios$1.prototype[eme]=function($P,tme,ame){return this.request(mergeConfig$1(ame||{},{method:eme,url:$P,data:tme}))}});var Axios_1=Axios$1,Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function x_(eme){this.message=eme}return x_.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},x_.prototype.__CANCEL__=!0,Cancel_1=x_,Cancel_1}var CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var x_=requireCancel();function eme($P){if(typeof $P!="function")throw new TypeError("executor must be a function.");var tme;this.promise=new Promise(function(rme){tme=rme});var ame=this;$P(function(rme){ame.reason||(ame.reason=new x_(rme),tme(ame.reason))})}return eme.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},eme.source=function(){var tme,ame=new eme(function(rme){tme=rme});return{token:ame,cancel:tme}},CancelToken_1=eme,CancelToken_1}var spread,hasRequiredSpread;function requireSpread(){return hasRequiredSpread||(hasRequiredSpread=1,spread=function(eme){return function(tme){return eme.apply(null,tme)}}),spread}var isAxiosError,hasRequiredIsAxiosError;function requireIsAxiosError(){return hasRequiredIsAxiosError||(hasRequiredIsAxiosError=1,isAxiosError=function(eme){return typeof eme=="object"&&eme.isAxiosError===!0}),isAxiosError}var utils=utils$9,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1;function createInstance(x_){var eme=new Axios(x_),$P=bind(Axios.prototype.request,eme);return utils.extend($P,Axios.prototype,eme),utils.extend($P,eme),$P}var axios$2=createInstance(defaults$1);axios$2.Axios=Axios;axios$2.create=function(eme){return createInstance(mergeConfig(axios$2.defaults,eme))};axios$2.Cancel=requireCancel();axios$2.CancelToken=requireCancelToken();axios$2.isCancel=requireIsCancel();axios$2.all=function(eme){return Promise.all(eme)};axios$2.spread=requireSpread();axios$2.isAxiosError=requireIsAxiosError();axios$3.exports=axios$2;axios$3.exports.default=axios$2;var axiosExports=axios$3.exports,axios=axiosExports;const axios$1=getDefaultExportFromCjs(axios);var arrayProto$1=Array.prototype,nativeReverse=arrayProto$1.reverse;function reverse(x_){return x_==null?x_:nativeReverse.call(x_)}var reverse_1=reverse;const reverse$1=getDefaultExportFromCjs(reverse_1);extendLocale("en-US",{"4e7f76261f8c4c6d78998f85fc1f4c6e":"Margin","16a20243f9b741c08216dc9548de2968":"Overall","23ecf42cada8bf2715792d718544d107":"xs","391b8fa9c747a1799353ab856e666ad5":"sm",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"default",aed1dfbc31703955e64806b799b67645:"md",ab18e30c0dc4093ceeda8961fac3d1f4:"lg","461d364c67ec6a45e011ed13f2f7154f":"Top margin","31e3752986d64c8b36897c8641c8628d":"Right margin",eabe91d9426b6446f707cea3e7ab2418:"Bottom margin","2e46d251ee6188bb1b3ff20656276572":"Left margin","3dc4038d0f0a2d2b3c2b2e29a5ec6dde":"None",a8b0c20416853bda54120bf19477ad11:"All",af767b7e4ae069d54f9ea839858d4c6d:"Top","4d9c32c23df5d234e629c922c58d8e12":"Right","3850a186c3235bc646d4c2f79cebac36":"Bottom",d2aff1417831aa621c16cd5b95306b4b:"Left","841d77223f0ec8cd0b530ed8e0775b20":"Padding","961534b4ea37e4e88aada736b299d063":"Border",d4d2a66820d30e07b44c850eb3f116c0:"Position","58f966670529f4753fb3c5a0647606be":"Size","6b36c6f7ec834692ec6c8e3816349fdd":"Color",fbae87bcc352f6933541fb77a07418ed:"Primary color",d8c7e04c8e2be23dd3b81a31db6e04f1:"Information","900c70fa5f7dbc014e6f762d5e0e885c":"Warning","540f84ddc0883866b229f71c2844199a":"Danger","330363dfc524cff2488f2ebde0500896":"Success","2fc96b2704b05d6a9f299c442573ee77":"White",adb7e5312abdb9a44297e48d63815fa3:"Dark color","48d0a09bdd5fe7e89f0a445b0ffdf14f":"Light color","0d98c74797e49d00bcc4c17c9d557a2b":"Others","0103eb2d3dca70270d1a74e9ec987ac9":"Rounded corner","8456bc40d48da5af833f1c63385e9879":"Font",b3b2682579133673d3fe08c156d565dc:"Normal","56dce5d1cbb97439d291c458e50107e0":"Bold","49a79f4047b81186c069ed1c9c151c66":"Light color","8e1b944f4389bdaab6f11d5bc83190c8":"Background",c28479019e24e0e4745f4948e9e97ee7:"Width",f72ce9ad683cc82e0eab557ffc9c67a0:"Make it exceptionally small",b95c462d7697958c25861193fc89ae07:"Make it big","3386da5f56fac758ed0f18e024ecb943":"Make it exceptionally big ",ffaa96ef7232cb6d8ee4d7e673dbf4ac:"Fill","47eac1ac32a8aa9081dffbdc4d374318":"Enter the css class name","939d5345ad4345dbaabe14798f6ac0f1":"Submit","55c56d01a7747ffe0346d42145b62d97":"The [Amis-editor] responds to the dynamic plugin addition event:",d6f73c6f3b92be5a64f7ea0163501284:"Cutting the region node is not allowed.","4fda4f585214d469c04466e2fc98b796":"Cutting the root node is not allowed.","657bbe06d3922b23552817df7fa8268e":"Cutting the current element is not allowed.","416445a316595bdeb44b661c7de875a8":"You cannot move the current element upward.","6ac88d87b2fd118ba7beab8c17880470":"You cannot move the current element downward.",fdb3cba60407b2f1aea0230cca644573:"You cannot delete the region node directly.","8a4b4e2e3b0382007e0c69ed1fe6fe71":"Deleting the root node is not allowed..","22f031f3de2e55c430a818d8c588f7a1":"Deleting the current element is not allowed.","3b6d5995e9f2ecd3df059b3f1bea201e":"A call error occurs or domain crossing occurs.","09f33be5ec04eb48b3102e4e31af5b38":"A call error occurs.","283c2a52955ad87574fd6c0cc932c443":"You can call the node only in the Iframe.",a71002967924a83e32b38a80705290fb:"System error","058ebdf2884474ebff2977ba2f0e275e":"System message","88f000a0fdc38ce3808cef072b00893c":"The rendering is in progress...","279321f97f11da7bc90facca156b3444":"A code error exists, which takes place at \\n {{@1}}.","7e4b38ba0ab9cbfcabd9dd859e36b601":"Currently, some data in the code are modified. Because the data is incorrect in its format and not saved, are you sure to abandon the modification?",af86ad9dd8a221f931dcdc5a63382b6f:"Check the modification.","43d586cd6cf1a512c0bcb85ed9efde51":"Confirm",bb79667f37035e9562ec6bcffd6cf8ef:"Component","5cb297585d4c81bb8fdbd31210a30d6f":"System component","6fce1c9aa3654ae2f0eedcc068a7e189":"Customize the component.","06e004ef21414c06d3e4ff2cefaf6a04":"Code","7f7c624a843b0d539a4ea59a696702f9":"Batch operation",b80ed82d124c6fd9242dcacdda2a2f8b:"Change the component type.","41150516bf0d90646edc5239593366e9":"Select the component and plug it into?",d87481b371771b4f150da76e311bbbef:"The component can be filtered by entering the keywords.",becdc848350872592201e31bab03892a:"It is impossible to preview it.",f26225bde6a250894a04db4c53ea03d0:"Details","751dfe6f476903c21381c9acf88332e2":"No component is available. Perhaps you should change the container.",e22c9a05b424b761efce11f17726fdd7:"Replace","9bdb07e72d3a9a6084201a7398523f5a":"Insert","625fb26b4b3340f7872b411f401e754c":"Cancel","95509c09bdef4bb7842a9b957ab1f971":"Disable the floating mode.","426480bb614633c8c3ba8faa0338b72f":"Enable the floating mode.",fbf7967f9baf6a22bd6ca7f4e6390bf9:"{{@ 1}}-[Public configuration]","93383ef1ab4a433df97a56a73e571b9f":"Outline","962d43ff8d39c381d8e2c73838412111":"Query the page element.","0c95d1856ffdeeade7cebe0ef928f361":"You can change the container by dragging the target into the navigating node.",c482df2a3ac8e014febd8a5fc9cadaea:"The loading is in progress, so you need to wait for a while...",c44c6c179c44e794b103053886847dc4:"No preview image is available.",e4cefe7df36e92da1d7e875b92655507:"Click to unfold.","7ae451de83aa6f5f140e941904377391":"Click to fold.","84c8f0087acfc9b9862371d0bd59b830":"Click to add 「{{@1}}」.",f3430f4fdd8b9643daa74f4a5716dd15:"&nbsp; details &nbsp;",b797a8992ef41320919e45a069f2b459:"No available component is found. You can continue to search for the component by changing the keyword.","0bd36c8db19e3a93506f39ebc8ff0ab9":"When the form, list, and other components have a name, they appear here for your selection.",bb28ec819520ced0ffb4c3da01f112e2:"Click to clear the current area.",e83a256e4f5bb4ff8b3d804b5473217a:"Confirm","22c799040acdb2601b437ed5449de076":"Container",bd9fcf46b4e5993f97fe04ee9ebcd7ed:"Undo",c3c873d33f1c6482c79b0ffd862786cd:"Redo",e9509c688a0df6b088503d21569b6e8f:"A type error exists so that no rendering is possible.","2168c5735883bd040eaf09909d0911b8":"Query the component by entering the keyword.",e9c38f88375807704270aa3572454976:"Search history","288f0c404c4e546aa3683ff5054e85e2":"Clear","4b9bc9abf2a2beb3772d903a3d01d1de":"Click to delete this search record.","9d3128a1675de32cdd290b31140a7290":"The query result is empty. You can continue search by changing the keyword.",accb901a02b1415b40d95cdd31b8da1d:"Component classification","79d3abe929f67f0644a78bf32adb3a89":"Copy",b7d817611230d382f6ef92b41848a342:"Copy the currently selected element.",eafbece1016a6af76cce466e55ad9f00:"Paste",e0b9bb8e41eccd3ce6b282664643d7f8:"Paste the copied element to the currently selected node.","43fc77886b7fbcd658f0ccdba36bd5a0":"Cut",a6be4ad12e9612811963c44466af3218:"Cut the currently selected element.","58887132871b71b015c3a391e7755815":"Restore the previous operation undone.",be5fbbe34ce9979bfb6576d9eddc5612:"Save","1f81fd4598e9151538f29c41b8aa0020":"Save all current operations.","645dbc5504e722a30896486085a06b32":"Preview","5bc425ac8b75c571093a63eb6073c354":"Enable the preview mode.","2f4aaddde33c9b93c36fd2503f3d122b":"Delete","426cd14ebd62a4922186527d07ba37f3":"Delete the current node.","499e58e764420aeed2d1476a56d8fa34":"Move upward",d040485f0e3887f0b297f8f772db03e4:"Move upward the current node.","08ad565f066d30572d1f8e2ee17cbe12":"Move downward","6348dc0e83d6ab391a8816f67d0e5ceb":"Move downward the current node.",fbec96e028142496df88ed2c63b44512:"Click to check the current shortcut key available.","9c3f1278ffa822835bb3a677f02bca27":"Current shortcut key available","4e98a5dcd3defffb23629fce3add04f6":"No shortcut key is available temporarily.","186733ed7ec817040b8f9cbc610ba49a":"Program error",e777eb796f8a02e97a891fde43d10ce4:"{{@1}} variable","5d665bc55779aafdefcc4050e3a8429e":"A {{@1}}({{@2}}) rendering error occurs：",a30dd4945df5b44b264fa3be6ee9682e:"Current renderer information:","63f94190d2d4ea22263e6e9f07c96558":"Error object:",f66335b5bff0e26fdff2a3303e0f9bb0:"Error information:","966e23b5c1efe8e18fc4f0c326d47314":")A rendering error occurs. For details about the error, check the console output.",f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">Be dragged into the placeholder area</div>',"245897371cda2055f5c17c6cf298ed48":"Tip: No redirection is allowed in the preview mode.",e1b7255934e3189b1f5d440fc1aa0230:"An exception occurs during the plugin registration because a plugin with the same name already exists:","979a50681e278dcc0be18f68459e8217":"System variable","75c142934800d6ee31fcf3fdff9e5d53":"The [Amis-editor] has a {{@1}} plugin.","0e24e1bbc19612a350f81296d9fb7802":"First select an element as the insertion position.",bd690facb536d759814ee64f2760fecb:"Adding a component is not allowed at the current node.","02f180cd26ff0951ddfda490080ee5ea":"The configuration item has been copied.","1ff035555ac8a68dc5b0ea2d0af55f00":"The clipboard content is empty.","6cb01692eea2fa7066d20fe2b6ccaea3":"False data","7f2f0461a58c43667d7245ce92bb2e77":"Hold and drag it to adjust its position.","78c1c38b91c672da1113fa2564c14ea6":"Insert a component forward.","87f48bbadfbef5ef4554e06b7e141d37":"Insert a component backward.","95b351c86267f3aedf89520959bce689":"Edit","0ec9eaf9c3525eb110db58aae5912210":"More","417db09508befe7dbe9f84a517a6edec":"Repeat a copy.","99b81127ef28368151621cdfccce69f8":"Cancel the multi-selection.","205f45ee17394bd5668412780eaa55e2":"Insert a component.","4c725f0159023c485ead728680e277ba":"Select {{@1}}.","7ad78e0991f34ff3a345c59a2fc31572":"Select a level.",aafda9e8f6b7b613680677c513edb7a6:"Cancel the selection.",b58d101f52531c845f15db63d7212115:"Copy the configuration.","74e2bc6615b7dbbb11fd5e1e212263ae":"Cut the configuration.",e2f401af580d1354ae00ec4ca19e2e24:"Paste the configuration.","21462ae22216eec41dc688cc4a8ae64b":"Move forward",ed2bc13d8bbd99e16e017dd5f5393393:"Move backward","9e54f3e4ee3330299c5fdc910c2e8d3c":"Undo",ae8e86e426c2ba00da274b66dc372a8b:"Redo","2b6bc0f293f5ca01b006206c2535ccbc":"Operation",aa920263020f14211a44ea172efc7253:"Context data","48ac479789304b37afa2f1b06642f4da":"Current","9bc16c658ab8a8c4eddc5e24d85bef20":"Upper layer","004d4be2ba8e6b8eed9333d15bc80a88":"Upper {{@1}} layer",e366ccf1556c0672dcecba135ed5472e:"Setting","0cbec43d00e491a663ff0525ffe31868":"Quickly build 「{{@1}}」.","1dd554cdfc1ddf7dce13453805523c16":"Change",a82240ce09faf0b972a8aa5c9e93d209:"Insert the component panel.",eadc8c8d4a8776893672330598babca0:"A position error occurs. The target position is not found.",f3c057f37fb9a4e7dd44b04919c12578:"Click to add an element in the left component panel.","54ea89b497ec3bb319c68844dfa3687f":"API","51e213e66b37d716a35baebc9193035c":`This API is used to store the data. After submission of the form, you can import the data into this API. <br/>
          API response body requirements (If data exists in the data, the data is merged into the form context):<br/>
          {{@1}}
}, null, '<br/>')}`,"388e0ff896ea4f23e71d36c06443f157":`API response body requirements: <br/>
          {{@1}},
  page: 0,
  total: 0
}, null, '<br/>')}`,b4bc91701b86fe8543d649e97daea602:"Initialize the API",f8747759c73697367bc8a570977c4a62:`API response body requirements:<br/>
          {{@1}}
}, null, '<br/>')}`,d2b46e7989e18239d7036affd4d521db:"{{@1}}field","9caecd931b956381e0763d05aa42835c":"Field","47cd88592f6ef2b258f02c0690d267ed":"Hide, which is selected by default","32c65d8d7431e76029678ec7bb73a5ab":"Title","020586d0c69f8211840ddf9ee9bbf6ab":"Bind the field","226b0912184333c81babf2f1894ec0c1":"Type","97d07614380da93d257f9fbf81aa56fb":"Text","20def7942674282277c3714ed7ea6ce0":"Image","4ff1e74e43a3586339251494117185ad":"Date",c7bff79d059a0b7ff9b02441959d8be2:"Progress","3fea7ca76cdece641436d7ab0d02ab1b":"Status","9da188491dd34c4382a5b9f006194e41":"Mapping",b3e55578af5dd473bab62641bb2f5f8e:"Input type","9b6425cd2d496c9cb5a6c6b8ff125d1b":"Input box","15d169d28cd48c97fe751e4cc92ca926":"Multi-line text","9597dcaf432ceba92a160d61cb1ef65f":"Digital input","9913107b19cb6012250134ff91377430":"Radiobox","454e60f5759903d7d3dba58e3f9bd590":"Select-box",db98f889ce6bc235e66bd4b2a788d137:"Checkbox","006ded9fa277cf030592021f595a07d5":"Select",a6beb974cc0b50eebd18120b8110a88b:"Switch",b339aa87104709397ba68e7ebbc6e5ba:"Table","481e034e6026969aae4ce7ce7c8a7b6f":"File upload","6bfb9bb2218ff32b6139e98bc93707c0":"Image upload","24b6d4c0892a8f3ee2a982e3ab0afe38":"Rich text editor","4484fa04e7b71db4c8293e5bcb53eca4":"Add a field.","4cc6a76c146c0360a41ceaf5e212c891":"Generate a field automatically based on the API.",a9fea442707e26dee478b34a2f2ce263:"First fill in the API.","91aa2166ee4811414381c8d94e6567e6":"Because the API return format is incorrect, check the API response format requirements.","3712972d84adf48acbd6ad24b4d75ad0":"List","66ab5e9f24c8f46012a25c89919fb191":"Add",e73cefac9d030927da1618c7b15c98c9:"Edit in batch","7fb62b30119c3797a843a48368463314":"Delete in batch","8d9a071ee2ef45e045968e117a205c07":"Import","55405ea6ff6fd823ffab7e6b10ddfa95":"Export",c26996a6506adf397f0668d376d0b40b:"Simple query","6ff4bf3d567e977aa4c90c27dff1e6db":"Fuzzy query","9c4666fd08c2738eb9611a3721cb5f0f":"Advanced query",a094e5b7699ea4b61094cc4120170423:"Data source",eeb6908870e058bc23d52c1e405a054e:"Previous step","38ce27d84639f3a6e07c00b3b4995c0e":"Next step","392342f7750a565f9a79c678c6b12421":"<Hidden state>","8e44aba21d01c1e08cc79f4ebaf0b3f2":"The layout container component does not support dragging and inserting child elements.","52e6abbe5c11e7cbf14788c1540f8bf2":"Copied","372ea9fd27fb7cfacfe1b4ca3046f8d0":"Configuration Item","2a6287664de5ab46c65220c7182878ff":"Cut",db805d4e361ac2d3fc6047eaea1a7c69:"Free container","969e9e56b3812abffa3994f35ea31835":"Adsorption vessel","5b804b05e14aaacc75033a4f77fc2844":"Source code","69a53230577258b6d97ee932befcc168":"<Column>:",cc6aeb073ebc3cb29734a49164f8964c:"Page variables",b71e8739cb9bcba8057a8fa8b59512da:"<Column>","34d240d1ded259c32f7fee21e99c5671":"Preview/Edit","6722089d251c1e4aabe9d58c26a2208a":"Turn preview mode on/off","107542a61cdccbb2981ad0c8bafc3440":"Replace component","813a5158d9f7171d20e7df340c5b48f9":"Component Context",d2655fdad2c9f8b6f6d7050d65226428:"Exception registering plugin '{{@1}}', there is already a plugin with the same name:",e9d4c83c9cdc23c65d11f74866636661:"Configuration panel loading","5ae147607b7896f8fd827337027607a9":"{{@1}} (Drawer type pop-up window)","7336083e6c61fe75fb5ec3f5ef101ac7":"Drawer pop-up window",e5fd721b2921aa63bb7574c6bbead312:"{{@1}} (Confirmation dialog box)",fa6b01f51cc2b8e16bfbb914b6c08ace:"Confirmation dialog box","05e70c7ef060f6c3ddcb4220702cde0f":"{{@1}} (pop up)","6cff4b6d794cc17f5d24dbe0d21e5732":"pop-up notification",c65e6ddd7b48846aa1e5224d4e5743c1:"View structure","67bcc69dd0a75d50c5cbb7f107ee9f63":"Component Outline","80e73cda4bd12532252652b4e19bb39b":"Popup Outline","21efd88b67a39834582ad99aabb9dc60":"There is currently no data available","451d71974652fdd1840a73c980f80fe8":"Skip Wizard",bc63dada3cdf28357dd4fe56ff5c567f:"Current layer {{@1}}","0383d6f467ed0dd89860a7b8cc793ce9":"Upper {{@1}} layer {{@2}}",b818d2fd22f70de2d912f19048e2cde2:"Intercepted {{@1}} rendering error",e9a11b908a9b4f3d9dc947d9a64c0dab:"A rendering error occurred. Please refer to the console output for detailed error information."}),extendLocale("zh-CN",{"54ea89b497ec3bb319c68844dfa3687f":"接口","51e213e66b37d716a35baebc9193035c":`用来保存数据, 表单提交后将数据传入此接口。 <br/>
          接口响应体要求(如果data中有数据，该数据将被合并到表单上下文中)：<br/>
          {{@1}}
}, null, '<br/>')}`,"388e0ff896ea4f23e71d36c06443f157":`接口响应体要求：<br/>
          {{@1}},
  page: 0,
  total: 0
}, null, '<br/>')}`,b4bc91701b86fe8543d649e97daea602:"初始化接口",f8747759c73697367bc8a570977c4a62:`接口响应体要求：<br/>
          {{@1}}
}, null, '<br/>')}`,d2b46e7989e18239d7036affd4d521db:"{{@1}}字段","9caecd931b956381e0763d05aa42835c":"字段","47cd88592f6ef2b258f02c0690d267ed":"隐藏，默认选中","32c65d8d7431e76029678ec7bb73a5ab":"标题","020586d0c69f8211840ddf9ee9bbf6ab":"绑定字段","226b0912184333c81babf2f1894ec0c1":"类型","97d07614380da93d257f9fbf81aa56fb":"文本","20def7942674282277c3714ed7ea6ce0":"图片","4ff1e74e43a3586339251494117185ad":"日期",c7bff79d059a0b7ff9b02441959d8be2:"进度","3fea7ca76cdece641436d7ab0d02ab1b":"状态","9da188491dd34c4382a5b9f006194e41":"映射",b3e55578af5dd473bab62641bb2f5f8e:"输入类型","9b6425cd2d496c9cb5a6c6b8ff125d1b":"输入框","15d169d28cd48c97fe751e4cc92ca926":"多行文本","9597dcaf432ceba92a160d61cb1ef65f":"数字输入","9913107b19cb6012250134ff91377430":"单选框","454e60f5759903d7d3dba58e3f9bd590":"勾选框",db98f889ce6bc235e66bd4b2a788d137:"复选框","006ded9fa277cf030592021f595a07d5":"下拉框",a6beb974cc0b50eebd18120b8110a88b:"开关",b339aa87104709397ba68e7ebbc6e5ba:"表格","481e034e6026969aae4ce7ce7c8a7b6f":"文件上传","6bfb9bb2218ff32b6139e98bc93707c0":"图片上传","24b6d4c0892a8f3ee2a982e3ab0afe38":"富文本编辑器","4484fa04e7b71db4c8293e5bcb53eca4":"添加字段","4cc6a76c146c0360a41ceaf5e212c891":"基于接口自动生成字段",a9fea442707e26dee478b34a2f2ce263:"请先填写接口","91aa2166ee4811414381c8d94e6567e6":"API返回格式不正确，请查看接口响应格式要求","3712972d84adf48acbd6ad24b4d75ad0":"列表","66ab5e9f24c8f46012a25c89919fb191":"新增",f26225bde6a250894a04db4c53ea03d0:"详情","95b351c86267f3aedf89520959bce689":"编辑","2f4aaddde33c9b93c36fd2503f3d122b":"删除",e73cefac9d030927da1618c7b15c98c9:"批量编辑","7fb62b30119c3797a843a48368463314":"批量删除","8d9a071ee2ef45e045968e117a205c07":"导入","55405ea6ff6fd823ffab7e6b10ddfa95":"导出",c26996a6506adf397f0668d376d0b40b:"简单查询","6ff4bf3d567e977aa4c90c27dff1e6db":"模糊查询","9c4666fd08c2738eb9611a3721cb5f0f":"高级查询",a094e5b7699ea4b61094cc4120170423:"数据来源","4e7f76261f8c4c6d78998f85fc1f4c6e":"外边距","16a20243f9b741c08216dc9548de2968":"整体","23ecf42cada8bf2715792d718544d107":"极小","391b8fa9c747a1799353ab856e666ad5":"小",fd6e80f1e0199d6ecc3ee81ae04aa9ef:"正常",aed1dfbc31703955e64806b799b67645:"中",ab18e30c0dc4093ceeda8961fac3d1f4:"大","461d364c67ec6a45e011ed13f2f7154f":"上边距","31e3752986d64c8b36897c8641c8628d":"右边距",eabe91d9426b6446f707cea3e7ab2418:"下边距","2e46d251ee6188bb1b3ff20656276572":"左边距","3dc4038d0f0a2d2b3c2b2e29a5ec6dde":"置无",a8b0c20416853bda54120bf19477ad11:"全部",af767b7e4ae069d54f9ea839858d4c6d:"上","4d9c32c23df5d234e629c922c58d8e12":"右","3850a186c3235bc646d4c2f79cebac36":"下",d2aff1417831aa621c16cd5b95306b4b:"左","841d77223f0ec8cd0b530ed8e0775b20":"内边距","961534b4ea37e4e88aada736b299d063":"边框",d4d2a66820d30e07b44c850eb3f116c0:"位置","58f966670529f4753fb3c5a0647606be":"大小","6b36c6f7ec834692ec6c8e3816349fdd":"颜色",fbae87bcc352f6933541fb77a07418ed:"主色",d8c7e04c8e2be23dd3b81a31db6e04f1:"信息","900c70fa5f7dbc014e6f762d5e0e885c":"警告","540f84ddc0883866b229f71c2844199a":"危险","330363dfc524cff2488f2ebde0500896":"成功","2fc96b2704b05d6a9f299c442573ee77":"白色",adb7e5312abdb9a44297e48d63815fa3:"暗色","48d0a09bdd5fe7e89f0a445b0ffdf14f":"浅色","0d98c74797e49d00bcc4c17c9d557a2b":"其他","0103eb2d3dca70270d1a74e9ec987ac9":"圆角","8456bc40d48da5af833f1c63385e9879":"字体",b3b2682579133673d3fe08c156d565dc:"细","56dce5d1cbb97439d291c458e50107e0":"粗","49a79f4047b81186c069ed1c9c151c66":"淡色","8e1b944f4389bdaab6f11d5bc83190c8":"背景",c28479019e24e0e4745f4948e9e97ee7:"宽度",f72ce9ad683cc82e0eab557ffc9c67a0:"特小",b95c462d7697958c25861193fc89ae07:"加大","3386da5f56fac758ed0f18e024ecb943":"特大",ffaa96ef7232cb6d8ee4d7e673dbf4ac:"占满","47eac1ac32a8aa9081dffbdc4d374318":"请输入 css 类名","939d5345ad4345dbaabe14798f6ac0f1":"提交","55c56d01a7747ffe0346d42145b62d97":"[amis-editor]响应动态添加插件事件：",d6f73c6f3b92be5a64f7ea0163501284:"区域节点不允许剪切。","4fda4f585214d469c04466e2fc98b796":"根节点不允许剪切。","657bbe06d3922b23552817df7fa8268e":"当前元素不允许剪切。","416445a316595bdeb44b661c7de875a8":"当前元素不能向上移动","6ac88d87b2fd118ba7beab8c17880470":"当前元素不能向下移动",fdb3cba60407b2f1aea0230cca644573:"区域节点不可以直接删除。","8a4b4e2e3b0382007e0c69ed1fe6fe71":"根节点不允许删除。","22f031f3de2e55c430a818d8c588f7a1":"当前元素不允许删除。","3b6d5995e9f2ecd3df059b3f1bea201e":"调用错误，或者存在跨域。","09f33be5ec04eb48b3102e4e31af5b38":"调用错误","283c2a52955ad87574fd6c0cc932c443":"只能在 Iframe 里面调用",a71002967924a83e32b38a80705290fb:"系统错误","058ebdf2884474ebff2977ba2f0e275e":"系统消息","88f000a0fdc38ce3808cef072b00893c":"渲染中...","279321f97f11da7bc90facca156b3444":"代码有误，错误的地方是\\n {{@1}}","7e4b38ba0ab9cbfcabd9dd859e36b601":"当前有部分已更改数据因为格式不正确尚未保存，您确认要丢弃这部分更改吗？",af86ad9dd8a221f931dcdc5a63382b6f:"查看更改","43d586cd6cf1a512c0bcb85ed9efde51":"请确认",bb79667f37035e9562ec6bcffd6cf8ef:"组件","5cb297585d4c81bb8fdbd31210a30d6f":"系统组件","6fce1c9aa3654ae2f0eedcc068a7e189":"自定义组件","06e004ef21414c06d3e4ff2cefaf6a04":"代码","7f7c624a843b0d539a4ea59a696702f9":"批量操作",b80ed82d124c6fd9242dcacdda2a2f8b:"更改组件类型","41150516bf0d90646edc5239593366e9":"选中组件插入到",d87481b371771b4f150da76e311bbbef:"输入关键字可过滤组件",becdc848350872592201e31bab03892a:"无法预览","751dfe6f476903c21381c9acf88332e2":"没有可用组件，也许你该切换容器试试。",e22c9a05b424b761efce11f17726fdd7:"替换","9bdb07e72d3a9a6084201a7398523f5a":"插入","625fb26b4b3340f7872b411f401e754c":"取消","95509c09bdef4bb7842a9b957ab1f971":"关闭悬浮模式","426480bb614633c8c3ba8faa0338b72f":"开启悬浮模式",fbf7967f9baf6a22bd6ca7f4e6390bf9:"{{@1}}-[公共配置]","93383ef1ab4a433df97a56a73e571b9f":"大纲","962d43ff8d39c381d8e2c73838412111":"查询页面元素","0c95d1856ffdeeade7cebe0ef928f361":"将目标拖入导航中的节点可以切换容器",c482df2a3ac8e014febd8a5fc9cadaea:"加载中，请稍等...",c44c6c179c44e794b103053886847dc4:"没有预览图",e4cefe7df36e92da1d7e875b92655507:"点击展开","7ae451de83aa6f5f140e941904377391":"点击折叠","84c8f0087acfc9b9862371d0bd59b830":"点击添加「{{@1}}」",f3430f4fdd8b9643daa74f4a5716dd15:"&nbsp;详情&nbsp;",b797a8992ef41320919e45a069f2b459:"没有找到可用组件，您可以换个关键字继续查找。","0bd36c8db19e3a93506f39ebc8ff0ab9":"当表单、列表等组件有名字时会出现在这里方便选择",bb28ec819520ced0ffb4c3da01f112e2:"点击清空当前区域",eeb6908870e058bc23d52c1e405a054e:"上一步","38ce27d84639f3a6e07c00b3b4995c0e":"下一步",e83a256e4f5bb4ff8b3d804b5473217a:"确认","22c799040acdb2601b437ed5449de076":"容器",bd9fcf46b4e5993f97fe04ee9ebcd7ed:"撤销",c3c873d33f1c6482c79b0ffd862786cd:"重做",e9509c688a0df6b088503d21569b6e8f:"类型错误，无法渲染","2168c5735883bd040eaf09909d0911b8":"输入关键字查询组件",e9c38f88375807704270aa3572454976:"搜索历史","288f0c404c4e546aa3683ff5054e85e2":"清空","4b9bc9abf2a2beb3772d903a3d01d1de":"点击删除这条搜索记录","9d3128a1675de32cdd290b31140a7290":"搜索结果为空，您可以换个关键字继续查找。",accb901a02b1415b40d95cdd31b8da1d:"组件分类","79d3abe929f67f0644a78bf32adb3a89":"复制",b7d817611230d382f6ef92b41848a342:"复制当前选中元素",eafbece1016a6af76cce466e55ad9f00:"粘贴",e0b9bb8e41eccd3ce6b282664643d7f8:"将复制的元素插入到当前选中节点","43fc77886b7fbcd658f0ccdba36bd5a0":"剪切",a6be4ad12e9612811963c44466af3218:"剪切当前选中元素","58887132871b71b015c3a391e7755815":"恢复上一次撤销的操作",be5fbbe34ce9979bfb6576d9eddc5612:"保存","1f81fd4598e9151538f29c41b8aa0020":"保存当前所有操作","645dbc5504e722a30896486085a06b32":"预览","5bc425ac8b75c571093a63eb6073c354":"开启预览模式","426cd14ebd62a4922186527d07ba37f3":"删除当前节点","499e58e764420aeed2d1476a56d8fa34":"向上移动",d040485f0e3887f0b297f8f772db03e4:"向上移动当前节点","08ad565f066d30572d1f8e2ee17cbe12":"向下移动","6348dc0e83d6ab391a8816f67d0e5ceb":"向下移动当前节点",fbec96e028142496df88ed2c63b44512:"点击查看当前可用快捷键","9c3f1278ffa822835bb3a677f02bca27":"当前可用快捷键","4e98a5dcd3defffb23629fce3add04f6":"暂无快捷键","186733ed7ec817040b8f9cbc610ba49a":"程序错误",e777eb796f8a02e97a891fde43d10ce4:"{{@1}}变量","5d665bc55779aafdefcc4050e3a8429e":"{{@1}}({{@2}})渲染发生错误：",a30dd4945df5b44b264fa3be6ee9682e:"当前渲染器信息：","63f94190d2d4ea22263e6e9f07c96558":"错误对象：",f66335b5bff0e26fdff2a3303e0f9bb0:"错误信息：","966e23b5c1efe8e18fc4f0c326d47314":")渲染发生错误，详细错误信息请查看控制台输出。","245897371cda2055f5c17c6cf298ed48":"温馨提示：预览模式下禁止跳转",e1b7255934e3189b1f5d440fc1aa0230:"注册插件异常，已存在同名插件：","979a50681e278dcc0be18f68459e8217":"系统变量","75c142934800d6ee31fcf3fdff9e5d53":"[amis-editor]当前已有{{@1}}插件","0e24e1bbc19612a350f81296d9fb7802":"请先选择一个元素作为插入的位置。",bd690facb536d759814ee64f2760fecb:"当前节点不允许追加新组件。","02f180cd26ff0951ddfda490080ee5ea":"配置项已复制","1ff035555ac8a68dc5b0ea2d0af55f00":"剪切板内容为空","6cb01692eea2fa7066d20fe2b6ccaea3":"假数据","7f2f0461a58c43667d7245ce92bb2e77":"按住拖动调整位置","78c1c38b91c672da1113fa2564c14ea6":"向前插入组件","87f48bbadfbef5ef4554e06b7e141d37":"向后插入组件","0ec9eaf9c3525eb110db58aae5912210":"更多","417db09508befe7dbe9f84a517a6edec":"重复一份","99b81127ef28368151621cdfccce69f8":"取消多选","205f45ee17394bd5668412780eaa55e2":"插入组件","4c725f0159023c485ead728680e277ba":"选中{{@1}}","7ad78e0991f34ff3a345c59a2fc31572":"选中层级",aafda9e8f6b7b613680677c513edb7a6:"取消选中",b58d101f52531c845f15db63d7212115:"复制配置","74e2bc6615b7dbbb11fd5e1e212263ae":"剪切配置",e2f401af580d1354ae00ec4ca19e2e24:"粘贴配置","21462ae22216eec41dc688cc4a8ae64b":"向前移动",ed2bc13d8bbd99e16e017dd5f5393393:"向后移动","9e54f3e4ee3330299c5fdc910c2e8d3c":"撤销（Undo）",ae8e86e426c2ba00da274b66dc372a8b:"重做（Redo）","2b6bc0f293f5ca01b006206c2535ccbc":"操作",aa920263020f14211a44ea172efc7253:"上下文数据","48ac479789304b37afa2f1b06642f4da":"当前","9bc16c658ab8a8c4eddc5e24d85bef20":"上层","004d4be2ba8e6b8eed9333d15bc80a88":"上{{@1}}层",e366ccf1556c0672dcecba135ed5472e:"设置","0cbec43d00e491a663ff0525ffe31868":"快速构建「{{@1}}」","1dd554cdfc1ddf7dce13453805523c16":"变更",a82240ce09faf0b972a8aa5c9e93d209:"插入组件面板",eadc8c8d4a8776893672330598babca0:"位置错误，目标位置没有找到",f3c057f37fb9a4e7dd44b04919c12578:"请从左侧组件面板中点击添加新的元素。",f942c7a6a35c4eb1381d2966462d0489:'<div class="wrapper-sm b-a b-light m-b-sm">拖入占位</div>',"392342f7750a565f9a79c678c6b12421":"<隐藏状态>","8e44aba21d01c1e08cc79f4ebaf0b3f2":"布局容器组件不支持拖拽插入子元素。","52e6abbe5c11e7cbf14788c1540f8bf2":"已复制","372ea9fd27fb7cfacfe1b4ca3046f8d0":"配置项","2a6287664de5ab46c65220c7182878ff":"已剪切",db805d4e361ac2d3fc6047eaea1a7c69:"自由容器","969e9e56b3812abffa3994f35ea31835":"吸附容器","5b804b05e14aaacc75033a4f77fc2844":"源码","69a53230577258b6d97ee932befcc168":"<列>:",cc6aeb073ebc3cb29734a49164f8964c:"页面变量",b71e8739cb9bcba8057a8fa8b59512da:"<列>","34d240d1ded259c32f7fee21e99c5671":"预览/编辑","6722089d251c1e4aabe9d58c26a2208a":"开启/关闭预览模式","107542a61cdccbb2981ad0c8bafc3440":"替换组件","813a5158d9f7171d20e7df340c5b48f9":"组件上下文",d2655fdad2c9f8b6f6d7050d65226428:"注册插件「{{@1}}」异常，已存在同名插件：",e9d4c83c9cdc23c65d11f74866636661:"配置面板加载中","5ae147607b7896f8fd827337027607a9":"{{@1}}（抽屉式弹窗）","7336083e6c61fe75fb5ec3f5ef101ac7":"抽屉式弹窗",e5fd721b2921aa63bb7574c6bbead312:"{{@1}}（确认对话框）",fa6b01f51cc2b8e16bfbb914b6c08ace:"确认对话框","05e70c7ef060f6c3ddcb4220702cde0f":"{{@1}}（弹窗）","6cff4b6d794cc17f5d24dbe0d21e5732":"弹窗",c65e6ddd7b48846aa1e5224d4e5743c1:"视图结构","67bcc69dd0a75d50c5cbb7f107ee9f63":"组件大纲","80e73cda4bd12532252652b4e19bb39b":"弹窗大纲","21efd88b67a39834582ad99aabb9dc60":"暂无数据","451d71974652fdd1840a73c980f80fe8":"跳过向导",bc63dada3cdf28357dd4fe56ff5c567f:"当前层{{@1}}","0383d6f467ed0dd89860a7b8cc793ce9":"上{{@1}}层{{@2}}",b818d2fd22f70de2d912f19048e2cde2:"拦截到{{@1}}渲染错误",e9a11b908a9b4f3d9dc947d9a64c0dab:"渲染发生错误，详细错误信息请查看控制台输出。"});var guid=guid$1,omitControls=omitControls$1,isObjectShallowModified=isObjectShallowModified$1,cloneObject=cloneObject$2,anyChanged=anyChanged$1,noop=noop$9,makeHorizontalDeeper=makeHorizontalDeeper$1,findIndex=findIndex$4,isEmpty=isEmpty$2,eachTree=eachTree$1,createObject=createObject$1,themeConfig={},themeOptionsData={},cssVars={};function __uri(x_){return x_}function cleanUndefined(x_){return isObject(x_)&&Object.keys(x_).forEach(function(eme){x_[eme]===void 0&&delete x_[eme]}),x_}var themeUselessPropKeys=[];function JSONPipeIn(x_,eme,$P){if(eme===void 0&&(eme=!1),$P===void 0&&($P={}),Array.isArray(x_)){var tme=!1,ame=x_.map(function(ome){var lme=JSONPipeIn(ome,eme,$P);return lme!==ome&&(tme=!0),lme});return tme?ame:x_}if(!isObject(x_)||x_.constructor!==Object)return typeof x_=="string"&&Object.keys($P).forEach(function(ome){var lme=$P[ome];x_=x_.replaceAll(ome,lme)}),x_;var nme={},rme=!1;if(x_.$$id||(rme=!0,nme.$$id=guid()),themeUselessPropKeys.length>2&&x_[themeUselessPropKeys[0]]&&x_[themeUselessPropKeys[1]]&&x_[themeUselessPropKeys[2]]&&(rme=!0,themeUselessPropKeys.forEach(function(ome){nme[ome]=void 0})),x_.type&&(x_=clearDirtyCssKey(x_=style2ThemeCss(x_)),eme&&(rme=!0,(!x_.__origin||x_.__origin!=="scaffold")&&typeof x_.id=="string"&&x_.id.startsWith("u:")))){var ime=generateNodeId();x_.id&&($P[x_.id]=ime),nme.id=ime}return Object.keys(x_).forEach(function(ome){var lme=x_[ome],sme=JSONPipeIn(lme,eme,$P);sme!==lme&&(rme=!0,nme[ome]=sme)}),rme&&(x_=cleanUndefined(__assign$3(__assign$3({},x_),nme))),x_}function JSONPipeOut(x_,eme){if(Array.isArray(x_)){var $P=!1,tme=x_.map(function(rme){var ime=JSONPipeOut(rme,eme);return ime!==rme&&($P=!0),ime});return $P?tme:x_}if(!isPlainObject$b(x_))return x_;var ame=!1,nme={};return x_.$$id&&(ame=!0,nme.$$id=void 0),Object.keys(x_).forEach(function(rme){var ime=x_[rme];if(typeof eme=="function"?eme(rme,ime):eme!==!1&&rme.substring(0,2)==="__")return nme[rme]=void 0,void(ame=!0);var ome=JSONPipeOut(ime,eme);ome!==ime&&(ame=!0,nme[rme]=ome)}),ame&&(x_=cleanUndefined(__assign$3(__assign$3({},x_),nme))),x_}function JSONGetByPath(x_,eme,$P){var tme=x_;return $P&&$P.push(x_),eme.forEach(function(ame){tme=tme[ame],$P&&$P.push(tme)}),tme}function JSONGetPathById(x_,eme,$P){$P===void 0&&($P="$$id");for(var tme=[],ame=!1,nme=[{path:".",data:x_}],rme=function(){var ime=nme.shift(),ome=ime.data,lme=ime.path;if(ome[$P]===eme)return ame=!0,tme=lme.split(".").filter(function(sme){return sme}),"break";Object.keys(ome).forEach(function(sme){var cme=ome[sme];Array.isArray(cme)?cme.forEach(function(dme,ume){isObject(dme)&&nme.push({data:dme,path:"".concat(lme,".").concat(sme,".").concat(ume)})}):isObject(cme)&&nme.push({data:cme,path:"".concat(lme,".").concat(sme)})})};nme.length&&rme()!=="break";);return ame?tme:null}function JSONGetById(x_,eme,$P){var tme=JSONGetPathById(x_,eme,$P);return tme===null?null:JSONGetByPath(x_,tme)}function JSONGetNodesById(x_,eme,$P){$P===void 0&&($P="$$id");var tme=[];return JSONTraverse(x_,function(ame,nme,rme){nme===$P&&ame==eme&&tme.push(rme)}),tme}function JSONGetParentById(x_,eme,$P){$P===void 0&&($P=!1);var tme=JSONGetPathById(x_,eme);if(tme===null||!tme.length)return null;var ame=x_,nme=[ame];for(tme.pop(),tme.forEach(function(rme){ame=ame[rme],nme.unshift(ame)});$P&&Array.isArray(nme[0]);)nme.shift();return nme[0]}function JSONUpdate(x_,eme,$P,tme){tme===void 0&&(tme=!1);var ame=JSONGetPathById(x_,eme);if(ame===null)return x_;var nme=[],rme=JSONGetByPath(x_,ame,nme);if(Array.isArray($P)&&nme[nme.length-2]&&Array.isArray(nme[nme.length-2])){var ime=nme[nme.length-2].indexOf(nme[nme.length-1]);nme[nme.length-2]=nme[nme.length-2].concat(),nme[nme.length-2].splice.apply(nme[nme.length-2],[ime,1].concat($P)),nme.pop()}else nme[nme.length-1]=rme=__assign$3(__assign$3(__assign$3({},tme?null:rme),$P),{$$id:eme});for(;nme.length>1;){var ome=nme.pop();Array.isArray(nme[nme.length-1])?nme[nme.length-1]=nme[nme.length-1].concat():nme[nme.length-1]=__assign$3({},nme[nme.length-1]),nme[nme.length-1][ame[nme.length-1]]=ome}return nme[0]}function JSONDelete(x_,eme,$P,tme){var ame=JSONGetPathById(x_,eme);if(ame===null)return x_;Array.isArray($P)&&$P.push.apply($P,ame);var nme=ame.pop(),rme=[],ime=JSONGetByPath(x_,ame,rme);for(Array.isArray(ime)?(rme[rme.length-1]=ime=ime.concat(),ime.splice(nme,1),tme&&!ime.length&&(rme[rme.length-1]=void 0)):(rme[rme.length-1]=ime=__assign$3({},ime),delete ime[nme]);rme.length>1;){var ome=rme.pop();Array.isArray(rme[rme.length-1])?rme[rme.length-1]=rme[rme.length-1].concat():rme[rme.length-1]=__assign$3({},rme[rme.length-1]),ome===void 0?delete rme[rme.length-1][ame[rme.length-1]]:rme[rme.length-1][ame[rme.length-1]]=ome}return rme[0]}function JSONMerge(x_,eme){if(!isObject(x_)||!isObject(eme))return eme;if(!isObjectShallowModified(x_,eme))return x_;var $P={};return x_.$$id&&($P.$$id=x_.$$id),Object.keys(eme).forEach(function(tme){Array.isArray(eme[tme])&&Array.isArray(x_[tme])&&eme[tme]!==x_[tme]?$P[tme]=eme[tme].map(function(ame,nme){return x_[tme][nme]?JSONMerge(x_[tme][nme],ame):ame}):x_[tme]===void 0?$P[tme]=eme[tme]:$P[tme]=JSONMerge(x_[tme],eme[tme])}),$P}function JSONChangeInArray(x_,eme,$P){var tme=JSONGetPathById(x_,eme);if(tme===null)return x_;var ame=parseInt(tme.pop(),10),nme=[],rme=JSONGetByPath(x_,tme,nme);if(!Array.isArray(rme))return x_;for(nme[nme.length-1]=rme=rme.concat(),$P(rme,rme[ame],ame);nme.length>1;){var ime=nme.pop();Array.isArray(nme[nme.length-1])?nme[nme.length-1]=nme[nme.length-1].concat():nme[nme.length-1]=__assign$3({},nme[nme.length-1]),nme[nme.length-1][tme[nme.length-1]]=ime}return nme[0]}function JSONCanMoveUp(x_,eme){var $P=JSONGetParentById(x_,eme);return!(!$P||!Array.isArray($P))&&findIndex($P,function(tme){return tme.$$id===eme})>0}function JSONMoveUpById(x_,eme){return JSONChangeInArray(x_,eme,function($P,tme,ame){ame!==0&&($P.splice(ame,1),$P.splice(ame-1,0,tme))})}function JSONCanMoveDown(x_,eme){var $P=JSONGetParentById(x_,eme);if(!$P||!Array.isArray($P))return!1;var tme=findIndex($P,function(ame){return ame.$$id===eme});return~tme&&tme<$P.length-1}function JSONMoveDownById(x_,eme){return JSONChangeInArray(x_,eme,function($P,tme,ame){ame!==$P.length-1&&($P.splice(ame,1),$P.splice(ame+1,0,tme))})}function JSONDuplicate(x_,eme,$P){return $P===void 0&&($P={}),JSONChangeInArray(x_,eme,function(tme,ame,nme){var rme=JSONPipeIn(JSONPipeOut(ame));tme.splice(nme+1,0,reGenerateID(rme,$P))})}function reGenerateID(x_,eme){eme===void 0&&(eme={});var $P={};JSONTraverse(x_,function(nme,rme,ime){var ome=typeof nme=="string"&&nme.indexOf("u:")===0;if((rme==="id"||rme==="componentId")&&ome&&ime)if(eme[nme])ime[rme]=eme[nme];else if($P[nme])ime[rme]=$P[nme],eme[nme]=$P[nme];else{var lme=generateNodeId();ime[rme]=lme,rme==="id"?eme[nme]=lme:rme==="componentId"&&($P[nme]=lme)}return nme});var tme={},ame=!1;return Object.keys($P).forEach(function(nme){eme[nme]||(tme[$P[nme]]=nme,ame=!0)}),ame&&JSONTraverse(x_,function(nme,rme,ime){var ome=typeof nme=="string"&&nme.indexOf("u:")===0;return rme==="componentId"&&ome&&tme[nme]&&(ime.componentId=tme[nme]),nme}),x_}function JsonGenerateID(x_){Object.isFrozen(x_)||(Array.isArray(x_)&&x_.forEach(function(eme){return JsonGenerateID(eme)}),isObject(x_)&&!isObservable(x_)&&(!x_.type||x_.__origin&&x_.__origin==="scaffold"||(x_.id=generateNodeId()),Object.keys(x_).forEach(function(eme){var $P=x_[eme];(isObject($P)||Array.isArray($P))&&JsonGenerateID($P)})))}function createElementFromHTML(x_){var eme=document.createElement("div");return eme.innerHTML=x_.trim(),eme.firstChild}function deepFind(x_,eme,$P){return $P===void 0&&($P={}),(x_==null?void 0:x_.$$commonSchema)===eme||(x_==null?void 0:x_.$$formSchema)===eme?$P[eme]=x_:isPlainObject$b(x_)?Object.keys(x_).forEach(function(tme){deepFind(x_[tme],eme,$P)}):Array.isArray(x_)&&x_.map(function(tme){return deepFind(tme,eme,$P)}),$P}function filterSchemaForConfig(x_,eme){if(Array.isArray(x_))return x_.map(function(ame){return filterSchemaForConfig(ame,eme)});if(isPlainObject$b(x_)){var $P={},tme=!1;return Object.keys(x_).forEach(function(ame){var nme=x_[ame],rme=filterSchemaForConfig(nme,eme);if(x_.$$commonSchema||x_.$$formSchema?$P[ame]&&($P[ame]=rme):$P[ame]=rme,rme!==nme&&(tme=!0),ame!=="$$commonSchema"||eme?ame==="$$commonSchema"&&eme&&(ime=deepFind(eme,nme))[nme]&&(x_=$P=__assign$3({},ime[nme])):x_=$P={$$commonSchema:nme},ame!=="$$formSchema"||eme){if(ame==="$$formSchema"&&eme){var ime;(ime=deepFind(eme,nme))[nme]&&(x_=$P=__assign$3({},ime[nme]))}}else x_=$P={$$formSchema:nme}}),tme?$P:x_}return x_}function filterSchemaForEditor(x_){if(Array.isArray(x_))return x_.map(function(tme){return filterSchemaForEditor(tme)});if(isPlainObject$b(x_)){var eme={},$P=!1;return Object.keys(x_).forEach(function(tme){var ame=x_[tme];~["visible","visibleOn","hidden","hiddenOn","toggled","animations"].indexOf(tme)&&(tme="$$".concat(tme),$P=!0);var nme=filterSchemaForEditor(ame);eme[tme]=nme,nme!==ame&&($P=!0)}),$P?eme:x_}return x_}function blackList(x_){return function(eme){return!~x_.indexOf(eme)}}function sortByList(x_,eme){var $P=eme?typeof eme=="function"?eme:function(tme){return tme[eme]}:function(tme){return tme};return function(tme,ame){var nme=x_.indexOf($P(tme)),rme=x_.indexOf($P(ame));return(nme=~nme?nme:999999)>(rme=~rme?rme:999999)?1:nme===rme?0:-1}}function persistGet(x_,eme){var $P=localStorage.getItem("amis-editor-".concat(x_));return $P&&($P=JSON.parse($P)),$P||eme}function persistSet(x_,eme){eme=JSON.stringify(eme),localStorage.setItem("amis-editor-".concat(x_),eme)}function normalizeId(x_){return x_.replace(/\-[a-z0-9]+$/g,"")}var autobind=autobind$1;function addDragingClass(x_){for(;x_&&(x_.classList.add("ae-is-draging"),!((x_=x_.parentElement)!=null&&x_.hasAttribute("data-region"))););}function removeDragingClass(x_){for(;x_&&(x_.classList.remove("ae-is-draging"),!((x_=x_.parentElement)!=null&&x_.hasAttribute("data-region"))););}function camelize(x_){return x_.replace(/\W+(.)/g,function(eme,$P){return $P.toUpperCase()})}var reactionWithOldValue=function(x_,eme){var $P;return reaction(x_,function(tme){isEqual$1(tme,$P)||(eme(tme,$P),$P=tme)})};function repeatArray(x_,eme){eme===void 0&&(eme=1);for(var $P=[];eme-- >0;)$P.push(x_);return $P}function diff(x_,eme,$P){return DeepDiff.diff(x_,eme,$P)}function patchDiff(x_,eme){return eme?eme.reduce(function($P,tme){return applyChange($P,x_,tme)},x_):x_}function applyChange(x_,eme,$P){if(x_&&Array.isArray($P==null?void 0:$P.path)){x_=x_===eme?__assign$3({},x_):x_;var tme=$P.path.concat();$P.kind!=="A"&&tme.pop(),tme.reduce(function(ame,nme){var rme=ame.target,ime=ame.source[nme],ome=rme[nme];return ime===ome&&(ome=Array.isArray(ome)?ome.concat():__assign$3({},ome),rme[nme]=ome),{source:ime,target:ome}},{target:x_,source:eme}),DeepDiff.applyChange(x_,eme,$P)}return x_}function JSONTraverse(x_,eme,$P){Object.keys(x_).forEach(function(tme){var ame=x_[tme];$P!=null&&$P(ame,tme)||(isPlainObject$b(ame)||Array.isArray(ame)?JSONTraverse(ame,eme,$P):eme(ame,tme,x_))})}var isNumeric=function(x_){return isNumber$5(x_)||!isNaN(parseFloat(String(x_).toString()))},string2CSSUnit=function(x_,eme){return eme===void 0&&(eme="px"),x_?isNumeric(x_)?"".concat(parseFloat(String(x_).toString())).concat(eme):x_:void 0};function isString(x_){return Object.prototype.toString.call(x_).slice(8,-1)==="String"}function isObject(x_){return Object.prototype.toString.call(x_).slice(8,-1)==="Object"}function jsonToJsonSchema(x_,eme,$P){x_===void 0&&(x_={}),$P===void 0&&($P=3);var tme={type:"object",properties:{}};return isObservable(x_)||$P<=0||Object.keys(x_).forEach(function(ame){var nme=x_[ame],rme=Array.isArray(nme)?"array":typeof nme;~["string","number"].indexOf(rme)?tme.properties[ame]={type:rme,title:(eme==null?void 0:eme(rme,ame))||ame}:~["object","array"].indexOf(rme)&&nme?tme.properties[ame]=__assign$3({type:rme,title:(eme==null?void 0:eme(rme,ame))||ame},rme==="object"?jsonToJsonSchema(nme,eme,$P-1):typeof nme[0]=="object"?{items:jsonToJsonSchema(nme[0],eme,$P-1)}:{}):tme.properties[ame]={type:"",title:(eme==null?void 0:eme(rme,ame))||ame}}),tme}function generateNodeId(){return"u:"+guid()}function isHasPluginIcon(x_){return x_.pluginIcon&&hasIcon(x_.pluginIcon)}function isLayoutPlugin(x_){return!(!x_||x_.type!=="flex")}function unitFormula(x_,eme){if(x_==="auto")return"auto";var $P=parseInt(x_),tme=eme;isNumber$5(eme)||(tme=parseInt(eme));var ame=x_.substring($P.toString().length);return ame||(ame="px"),"".concat($P+tme).concat(ame)}function stringRegExp(x_){return x_.replace(/[|\\{}()[\]^$+*?.]/g,"")}function needDefaultWidth(x_){return["divider","crud2","crud","list","picker","table","table-view","grid","cards","card","form","progress","diff-editor","editor","input-range","flex"].includes(x_)}function getI18nEnabled(){var x_,eme;return(eme=(x_=window==null?void 0:window.editorStore)===null||x_===void 0?void 0:x_.i18nEnabled)!==null&&eme!==void 0&&eme}function translateSchema(x_,eme,$P){var tme;return eme=eme||((tme=window==null?void 0:window.editorStore)===null||tme===void 0?void 0:tme.appCorpusData),isPlainObject$b(eme)?mapObject(x_,function(ame){return eme[ame]||ame},$P):x_}function appTranslate(x_){var eme,$P;return isString(x_)&&(($P=(eme=window==null?void 0:window.editorStore)===null||eme===void 0?void 0:eme.appCorpusData)===null||$P===void 0?void 0:$P[x_])||x_}function needFillPlaceholder(x_){var eme,$P,tme,ame;return!!x_&&(x_.rendererName==="page"&&(x_.name==="aside"||x_.name==="body")||!!(!(($P=(eme=x_.node)===null||eme===void 0?void 0:eme.schema)===null||$P===void 0)&&$P.isFreeContainer)||!(!(!((tme=x_.$$editor)===null||tme===void 0)&&tme.needFillPlaceholder)&&!(!((ame=x_.regionConfig)===null||ame===void 0)&&ame.needFillPlaceholder)))}function setThemeConfig(x_){themeOptionsData=getGlobalData(themeConfig=x_),themeUselessPropKeys=Object.keys(getThemeConfig()),cssVars=getAllCssVar()}function getCssVarById(x_,eme){var $P,tme,ame,nme,rme=document.styleSheets,ime={};try{for(var ome=__values$1(rme),lme=ome.next();!lme.done;lme=ome.next()){var sme=lme.value;if(((ame=sme.ownerNode)===null||ame===void 0?void 0:ame.id)===x_){for(var cme=0;cme<sme.cssRules.length;cme++){var dme=sme.cssRules[cme];!((nme=dme.selectorText)===null||nme===void 0)&&nme.includes(eme)&&dme.style.cssText.split("; ").forEach(function(ume){if(ume){var fme=__read$3(ume.split(": "),2),pme=fme[0],hme=fme[1];ime[pme]=hme}})}break}}}catch(ume){$P={error:ume}}finally{try{lme&&!lme.done&&(tme=ome.return)&&tme.call(ome)}finally{if($P)throw $P.error}}return ime}function getAllCssVar(){var x_=getCssVarById("baseStyle",":root, .AMISCSSWrapper"),eme=getCssVarById("themeCss",".app-popover, #editor-preview-body");return Object.assign({},x_,eme)}function getThemeConfig(){return __assign$3(__assign$3({themeConfig},themeOptionsData),{cssVars})}var backgroundMap={"background-color":"background"};function style2ThemeCss(x_){if(!(x_!=null&&x_.style)||isEmpty(x_.style)||!["tpl","page","container","chart","flex","grid"].includes(x_.type))return x_;var eme=__assign$3({},x_.style),$P={},tme={},ame={},nme={};if(Object.keys(eme).forEach(function(ime){["background","background-color","radius","boxShadow"].includes(ime)?($P[(backgroundMap[ime]||ime)+":default"]=eme[ime],delete eme[ime]):["color","fontSize","fontWeight","font-family","lineHeight"].includes(ime)?(nme[ime]=eme[ime],delete eme[ime]):ime.includes("border")?(tme[ime]=eme[ime],delete eme[ime]):(ime.includes("padding")||ime.includes("margin"))&&(ame[ime]=eme[ime],delete eme[ime])}),$P=Object.assign(isEmpty($P)?{}:$P,isEmpty(tme)?{}:{"border:default":tme},isEmpty(ame)?{}:{"padding-and-margin:default":ame},isEmpty(nme)?{}:{"font:default":nme}),isEmpty($P))return x_;var rme={baseControlClassName:$P};return x_.themeCss?rme.baseControlClassName=merge$4(x_.themeCss.baseControlClassName,$P):rme={baseControlClassName:$P},__assign$3(__assign$3({},x_),{style:eme,themeCss:rme})}function clearDirtyCssKey(x_){if(!(x_!=null&&x_.type))return x_;var eme=__assign$3({},x_);return Object.keys(eme).forEach(function($P){($P.startsWith(".")||$P.startsWith("#"))&&delete eme[$P],$P==="editorState"&&delete eme[$P]}),eme}function resolveVariablesFromScope(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,pme,hme,bme;return __generator(this,function(mme){switch(mme.label){case 0:return[4,eme==null?void 0:eme.getContextSchemas(x_)];case 1:return mme.sent(),[4,($P=eme==null?void 0:eme.dataSchema)===null||$P===void 0?void 0:$P.getDataPropsAsOptions()];case 2:return cme=(tme=mme.sent())!==null&&tme!==void 0?tme:[],dme=[],!((ame=eme==null?void 0:eme.store)===null||ame===void 0)&&ame.isSubEditor?(dme=((ome=(ime=(rme=(nme=eme.config)===null||nme===void 0?void 0:nme.hostNode)===null||rme===void 0?void 0:rme.info)===null||ime===void 0?void 0:ime.getSubEditorVariable)===null||ome===void 0?void 0:ome.call(ime,(lme=eme.config)===null||lme===void 0?void 0:lme.hostNode.schema))||[],[4,eme.config.getHostNodeDataSchema()]):[3,4];case 3:ume=mme.sent(),(fme=((ume==null?void 0:ume.getDataPropsAsOptions())||[]).filter(function(vme){return vme.label===i18n("813a5158d9f7171d20e7df340c5b48f9")}).reduce(function(vme,gme){return vme.push.apply(vme,__spreadArray([],__read$3(gme.children||[]),!1)),vme},[]))!=null&&fme.length&&(pme=!1,cme=cme.map(function(vme){return vme.label!==i18n("813a5158d9f7171d20e7df340c5b48f9")||pme||(pme=!0,vme.children=vme.children.concat(fme)),vme}),pme||(cme=__spreadArray([{label:i18n("813a5158d9f7171d20e7df340c5b48f9"),children:fme}],__read$3(cme),!1))),mme.label=4;case 4:return hme=updateComponentContext(cme),bme=((sme=eme==null?void 0:eme.variableManager)===null||sme===void 0?void 0:sme.getVariableFormulaOptions())||[],[2,__spreadArray(__spreadArray(__spreadArray([],__read$3(dme),!1),__read$3(hme),!1),__read$3(bme),!1).filter(function(vme){var gme;return vme.children&&((gme=vme.children)===null||gme===void 0?void 0:gme.length)||!vme.children})]}})})}function getVariables(x_){var eme,$P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return tme=[],ame=x_.props,nme=ame.variables,rme=ame.requiredDataPropsVariables,ime=($P=(eme=x_.props)===null||eme===void 0?void 0:eme.data)===null||$P===void 0?void 0:$P.name,nme&&!rme?[3,2]:(ome=x_.props.formProps||x_.props,lme=ome.node,sme=ome.manager,[4,resolveVariablesFromScope(lme,sme)]);case 1:cme=dme.sent(),Array.isArray(cme)&&(x_.isUnmount||(tme=filterVariablesOfScope(cme,ime))),dme.label=2;case 2:return nme&&(Array.isArray(nme)?tme=__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(tme),!1):typeof nme=="function"?tme=__spreadArray(__spreadArray([],__read$3(nme(x_)),!1),__read$3(tme),!1):isExpression(nme)&&(tme=__spreadArray(__spreadArray([],__read$3(resolveVariableAndFilter(x_.props.variables,x_.props.data,"| raw")),!1),__read$3(tme),!1))),x_.appLocale&&x_.appCorpusData?[2,translateSchema(tme,x_.appCorpusData)]:[2,tme]}})})}function filterVariablesOfScope(x_,eme){var $P,tme=x_.findIndex(function(ome){return ome.label===i18n("813a5158d9f7171d20e7df340c5b48f9")}),ame=(($P=x_[tme])===null||$P===void 0?void 0:$P.children)||[],nme=x_.filter(function(ome,lme){return lme!==tme}),rme=mapTree(ame,function(ome){if(ome.type==="array"&&Array.isArray(ome.children)&&ome.children.length===1){var lme=ome.children[0];if(lme.type==="object"&&lme.disabled)return __assign$3(__assign$3({},ome),{children:lme.children})}return ome}),ime=filterTree(rme,function(ome){return!ome.rawType||ome.type!=="array"||!ome.children||!~ome.children.findIndex(function(lme){return lme.value==="".concat(ome.value,".").concat(eme)})});return __spreadArray(__spreadArray([],__read$3(ime),!1),__read$3(nme),!1)}function getQuickVariables(x_,eme){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return tme=x_.props.formProps||x_.props,ame=tme.node,nme=tme.manager,rme=x_.props,ime=rme.quickVars,ome=rme.data,lme=ome==null?void 0:ome.name,[4,nme==null?void 0:nme.getContextSchemas(ame)];case 1:return cme.sent(),[4,($P=nme==null?void 0:nme.dataSchema)===null||$P===void 0?void 0:$P.getDataPropsAsOptions()];case 2:return sme=cme.sent(),Array.isArray(sme)?[2,resolveQuickVariables(mapTree(filterVariablesOfScope(sme),function(dme){return delete dme.tag,dme}),ime,lme,eme)]:[2,[]]}})})}function getConditionVariables(x_,eme){var $P,tme,ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme;return __generator(this,function(mme){switch(mme.label){case 0:return rme=x_.props.formProps||x_.props,ime=rme.node,ome=rme.manager,lme=(tme=($P=x_.props)===null||$P===void 0?void 0:$P.data)===null||tme===void 0?void 0:tme.name,[4,ome==null?void 0:ome.getContextSchemas(ime)];case 1:return mme.sent(),sme=ime.type==="cell",[4,(ame=ome==null?void 0:ome.dataSchema)===null||ame===void 0?void 0:ame.getDataPropsAsOptions()];case 2:return cme=mme.sent(),Array.isArray(cme)?(dme=[],ume=__read$3(filterVariablesOfScope(cme),2),fme=ume[0],pme=ume[1],hme=(sme?[]:fme.children||[]).filter(function(vme){return vme.value!==lme&&vme.type&&vme.rawType&&vme.type!=="array"}),dme.push.apply(dme,__spreadArray([],__read$3(hme),!1)),!((nme=pme==null?void 0:pme.children)===null||nme===void 0)&&nme.length&&(bme=pme==null?void 0:pme.children.filter(function(vme){return vme.type&&vme.rawType&&vme.type!=="array"}),dme.push.apply(dme,__spreadArray([],__read$3(bme),!1))),[2,dme]):[2,[]]}})})}function resolveQuickVariables(x_,eme,$P,tme){var ame;if(!Array.isArray(x_))return[];var nme=[],rme=x_[0],ime=x_[1],ome=(rme.children||[]).filter(function(ume){return ume.value!==$P&&ume.rawType&&ume.rawType!=="boolean"}).map(function(ume){if(ume.type==="array"&&Array.isArray(ume.children)&&ume.children.length===1){var fme=ume.children[0];if(fme.type==="object"&&fme.disabled)return __assign$3(__assign$3({},ume),{children:fme.children})}return ume});if(!((ame=ime==null?void 0:ime.children)===null||ame===void 0)&&ame.length){var lme=ime==null?void 0:ime.children.filter(function(ume){return ume.rawType&&ume.rawType!=="boolean"&&ume.type!=="array"});nme.push.apply(nme,__spreadArray([],__read$3(lme),!1)),nme.push({label:rme.label,children:ome})}else nme.push.apply(nme,__spreadArray([],__read$3(ome),!1));var sme=tme?tme(nme):nme;function cme(ume){var fme=__spreadArray([],__read$3(ume),!1);return fme.sort(function(pme,hme){return"children"in pme&&!("children"in hme)?1:!("children"in pme)&&"children"in hme?-1:0}),fme}if(eme!=null&&eme.length){var dme=[];return sme.length?dme.push({label:"快捷变量",type:"quickVars",children:eme}):dme.push.apply(dme,__spreadArray([],__read$3(eme),!1)),sme.length&&dme.push.apply(dme,__spreadArray([],__read$3(sme),!1)),cme(dme)}return cme(sme)}var updateComponentContext=function(x_){var eme=__spreadArray([],__read$3(x_),!1),$P=eme.findIndex(function(tme){return tme.label===i18n("813a5158d9f7171d20e7df340c5b48f9")});return~$P&&eme.splice($P,1,__assign$3(__assign$3({},eme[$P]),{children:eme[$P].children.map(function(tme,ame){return __assign$3(__assign$3({},tme),{label:ame===0?"当前层".concat(tme.label?"("+tme.label+")":""):tme.title||i18n("af767b7e4ae069d54f9ea839858d4c6d").concat(ame,"层").concat(tme.label?"("+tme.label+")":"")})})})),eme},scrollToActive=debounce$6(function(x_){var eme=document.querySelector(x_);eme&&(eme.scrollIntoViewIfNeeded?eme.scrollIntoViewIfNeeded():eme.scrollIntoView())},200);function addModal(x_,eme,$P,tme){x_=__assign$3(__assign$3({},x_),{definitions:__assign$3({},x_.definitions)}),$P&&isPlainObject$b($P)&&(x_=mergeDefinitions(x_,$P,eme));for(var ame=1;x_.definitions["modal-ref-".concat(ame)]||tme&&!tme("modal-ref-".concat(ame));)ame++;return eme=__assign$3(__assign$3({type:"dialog",body:[{type:"tpl",tpl:"这是一个弹窗"}],title:"未命名弹窗".concat(ame)},eme),{$$id:guid()}),x_.definitions["modal-ref-".concat(ame)]=JSONPipeIn(eme),[x_,"modal-ref-".concat(ame)]}function modalsToDefinitions(x_,eme,$P){eme===void 0&&(eme={});var tme={definitions:eme};return x_.forEach(function(ame,nme){var rme;$P&&($P.$$ref?$P.$$ref===ame.$$ref:$P.$$id===ame.$$id)||!ame.$$ref&&ame.$$id&&(JSONGetById(tme.definitions,ame.$$id)||$P&&JSONGetById($P,ame.$$id))||(ame.$$ref?tme.definitions[ame.$$ref]=JSONPipeIn(ame):(rme=__read$3(addModal(tme,__assign$3(__assign$3({},ame),{$$originId:ame.$$id}),void 0,function(ime){return!x_.find(function(ome){return ome.$$ref&&ome.$$ref===ime})}),1),tme=rme[0]))}),tme.definitions}function mergeDefinitions(x_,eme,$P){var tme=[];JSONTraverse($P,function(nme,rme){rme==="$ref"&&tme.push(nme)});var ame=x_;return Object.keys(eme).forEach(function(nme){var rme,ime,ome,lme;ame===x_&&(ame=__assign$3(__assign$3({},ame),{definitions:__assign$3({},ame.definitions)}));var sme=eme[nme],cme=sme.$$originId,dme=__rest$14(sme,["$$originId"]);if(cme){var ume=JSONGetParentById(ame,cme);if(tme.includes(nme)){if(ame.$$id===cme)return void(ame=JSONUpdate(ame,cme,JSONPipeIn(dme),!0));if(!ume)throw new Error("Can not find modal action.");var fme=dme.type==="drawer"?"drawer":"dialog";(ame=JSONUpdate(ame,ume.$$id,__assign$3(__assign$3({},ume),((rme={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(ome=dme.actionType)!==null&&ome!==void 0?ome:fme})[fme]=JSONPipeIn({$ref:nme}),rme)),!0)).definitions[nme]=JSONPipeIn(dme)}else if(ume){var pme=ume[fme=dme.type==="drawer"?"drawer":"dialog"]||{},hme=diff(pme,dme,function(mme,vme){return vme==="$$id"});if(hme){var bme=patchDiff(pme,hme);delete bme.$$originId,ame=JSONUpdate(ame,ume.$$id,__assign$3(__assign$3({},ume),((ime={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(lme=dme.actionType)!==null&&lme!==void 0?lme:fme})[fme]=bme,ime)),!0)}}}else tme.includes(nme)&&(ame.definitions[nme]=JSONPipeIn(dme))}),ame}function setDefaultColSize(x_,eme,$P){for(var tme=__spreadArray([],__read$3(x_),!1),ame=lodashExports.filter(tme,function(ome){return ome.row===$P}).length,nme=lodashExports.filter(tme,function(ome){return ome.row===eme}).length,rme=0;rme<tme.length;rme++){var ime=tme[rme];ime.row===$P&&(ime.colSize=ame>1?"1/".concat(ame):"1"),ime.row===eme&&(ime.colSize=nme>1?"1/".concat(nme):"1"),(ame===1&&ime.row===$P||nme===1&&ime.row===eme)&&ime.$$defaultColSize&&(ime.colSize=ime.$$defaultColSize)}return tme}function getModals(x_){var eme=[];if(JSONTraverse(x_,function(tme,ame,nme){if(ame==="actionType"&&["dialog","drawer","confirmDialog"].includes(tme)){var rme=tme==="drawer"?"drawer":"dialog",ime=nme[rme]||nme.args;!ime||ime.$ref||eme.find(function(ome){return ome.$$id===ime.$$id})||eme.push(__assign$3(__assign$3({},ime),{type:rme,actionType:tme}))}return tme}),Object.keys(x_.definitions||{}).reverse().forEach(function(tme){var ame=x_.definitions[tme];if(["dialog","drawer"].includes(ame.type)){if(ame.$$originId&&eme.find(function(nme){return nme.$$id===ame.$$originId}))return;eme.unshift(__assign$3(__assign$3({},ame),{$$ref:tme}))}}),["dialog","drawer","confirmDialog"].includes(x_.type)){var $P=eme.findIndex(function(tme){return tme.$$id===x_.$$id});~$P&&eme.splice($P,1),eme.unshift(__assign$3(__assign$3({},x_),{definitions:void 0}))}return eme}function deepSplice$1(x_,eme,$P){for(var tme=[],ame=3;ame<arguments.length;ame++)tme[ame-3]=arguments[ame];for(var nme=eme.split("."),rme=nme.pop(),ime=x_,ome=[],lme=0;lme<nme.length;lme++)ome.unshift({key:nme[lme],host:ime}),ime=ime[nme[lme]];if(!Array.isArray(ime))throw new Error("deepSplice: target is not an array");return(ime=ime.concat()).splice.apply(ime,[rme,$P].concat(tme)),ome.reduce(function(sme,cme){var dme=cme.host,ume=cme.key;return(dme=Array.isArray(dme)?dme.concat():__assign$3({},dme))[ume]=sme,dme},ime)}var RAW_TYPE_MAP={"input-text":"string","input-password":"string","input-email":"string","input-url":"string","input-rich-text":"string",textarea:"string","input-formula":"string","input-image":"string","input-repeat":"string","location-picker":"string","input-number":"number","input-range":"number","input-rating":"number",radio:"boolean",switch:"boolean",select:"enum","multi-select":"enum","tree-select":"enum","nested-select":"enum","list-select":"enum","input-tree":"enum","input-tag":"enum","tabs-transfer":"enum",transfer:"enum","transfer-picker":"enum","tabs-transfer-picker":"enum",radios:"enum","input-date":"date","input-date-range":"date","input-time":"time","input-time-range":"time","input-month":"month","input-month-range":"month","input-datetime":"datetime","input-quarter":"quarter","input-year":"year","input-datetime-range":"datetime","input-quarter-range":"quarter","input-table":"array","user-select":"user","department-select":"department"},util=Object.freeze({__proto__:null,guid,isObjectShallowModified,anyChanged,noop,makeHorizontalDeeper,omitControls,isEmpty,cloneObject,eachTree,createObject,get themeConfig(){return themeConfig},get themeOptionsData(){return themeOptionsData},get cssVars(){return cssVars},__uri,cleanUndefined,JSONPipeIn,JSONPipeOut,JSONGetByPath,JSONGetPathById,JSONGetById,JSONGetNodesById,JSONGetParentById,JSONUpdate,JSONDelete,JSONMerge,JSONChangeInArray,JSONCanMoveUp,JSONMoveUpById,JSONCanMoveDown,JSONMoveDownById,JSONDuplicate,reGenerateID,JsonGenerateID,createElementFromHTML,deepFind,filterSchemaForConfig,filterSchemaForEditor,blackList,sortByList,persistGet,persistSet,normalizeId,autobind,addDragingClass,removeDragingClass,camelize,reactionWithOldValue,repeatArray,diff,patchDiff,JSONTraverse,isNumeric,string2CSSUnit,isString,isObject,jsonToJsonSchema,generateNodeId,isHasPluginIcon,isLayoutPlugin,unitFormula,stringRegExp,needDefaultWidth,getI18nEnabled,translateSchema,appTranslate,needFillPlaceholder,setThemeConfig,getCssVarById,getAllCssVar,getThemeConfig,style2ThemeCss,clearDirtyCssKey,resolveVariablesFromScope,getVariables,getQuickVariables,getConditionVariables,resolveQuickVariables,updateComponentContext,scrollToActive,addModal,modalsToDefinitions,mergeDefinitions,setDefaultColSize,getModals,deepSplice:deepSplice$1,RAW_TYPE_MAP}),HighlightBox=observer(function(x_){var eme=x_.className,$P=x_.store,tme=x_.id,ame=x_.title,nme=x_.children,rme=x_.node;x_.toolbarContainer;var ime=x_.onSwitch,ome=x_.manager,lme=x_.readonly,sme=React__default.useCallback(function(Ime){return ume(Ime,"horizontal")},[]),cme=React__default.useCallback(function(Ime){return ume(Ime,"vertical")},[]),dme=React__default.useCallback(function(Ime){return ume(Ime,"both")},[]),ume=React__default.useCallback(function(Ime,Pme){var Mme,kme,Bme;if((Ime.button===1&&window.event!==null||Ime.button===0)&&!Ime.defaultPrevented&&(Ime.preventDefault(),rme)){var Dme=document.querySelector('[data-editor-id="'.concat(tme,'"]'));if(Dme){ome.disableHover=!0;var jme=ome[Pme==="both"?"onSizeChangeStart":Pme==="vertical"?"onHeightChangeStart":"onWidthChangeStart"](Ime,{dom:Dme,node:rme,store:$P,resizer:Pme==="both"?mme.current:Pme==="vertical"?hme.current:fme.current}),Vme=(Mme=jme.data)===null||Mme===void 0?void 0:Mme.onMove,Wme=(kme=jme.data)===null||kme===void 0?void 0:kme.onEnd;if(Vme||Wme){(Bme=_me.current)===null||Bme===void 0||Bme.setAttribute("data-resizing","");var Lme=function(Ume){Ume.preventDefault(),Vme==null||Vme(Ume)},zme=function(Ume){var Gme;Ume.preventDefault(),ome.disableHover=!1,(Gme=_me.current)===null||Gme===void 0||Gme.removeAttribute("data-resizing"),window.removeEventListener("mousemove",Lme),window.removeEventListener("mouseup",zme),document.body.style.cursor="default";var Jme=function(Yme){window.removeEventListener("click",Jme,!0),Yme.preventDefault(),Yme.stopPropagation()};window.addEventListener("click",Jme,!0),setTimeout(function(){return window.removeEventListener("click",Jme,!0)},350),Wme==null||Wme(Ume)};window.addEventListener("mousemove",Lme),window.addEventListener("mouseup",zme),document.body.style.cursor=Pme==="both"?"nwse-resize":Pme==="vertical"?"ns-resize":"ew-resize"}}}},[]),fme=React__default.useRef(),pme=React__default.useCallback(function(Ime){var Pme;Ime?Ime.addEventListener("mousedown",sme):(Pme=fme.current)===null||Pme===void 0||Pme.removeEventListener("mousedown",sme),fme.current=Ime},[]),hme=React__default.useRef(),bme=React__default.useCallback(function(Ime){var Pme;Ime?Ime.addEventListener("mousedown",cme):(Pme=hme.current)===null||Pme===void 0||Pme.removeEventListener("mousedown",cme),hme.current=Ime},[]),mme=React__default.useRef(),vme=React__default.useCallback(function(Ime){var Pme;Ime?Ime.addEventListener("mousedown",dme):(Pme=mme.current)===null||Pme===void 0||Pme.removeEventListener("mousedown",dme),mme.current=Ime},[]),gme=React__default.useCallback(function(){ome.disableHover||$P.setHoverId(tme)},[]),yme=React__default.useCallback(function(Ime){ome.disableHover||ome.startDrag(tme,Ime)},[]),_me=React__default.createRef(),$me=$P.sortedToolbars,Cme=$P.sortedSecondaryToolbars,Sme=$P.sortedSpecialToolbars,Eme=$P.isActive(tme),xme=$P.parentIsFreeContainer(),Tme=$P.isHoved(tme)||$P.dropId===tme||$P.insertOrigId===tme||xme===tme,Ome=$P.draggableContainer(tme),Rme=document.getElementById("aePreviewHighlightBox").offsetWidth;if(!isAlive(rme))return React__default.createElement("div",null);var Nme=Rme-rme.x<176;return React__default.createElement("div",{className:cx$1("ae-Editor-hlbox",{shake:tme===$P.insertOrigId,selected:Eme||~$P.selections.indexOf(tme),hover:Tme,regionOn:rme.childRegions.some(function(Ime){return $P.isRegionHighlighted(Ime.id,Ime.region)}),isFreeContainerElem:!!xme||Ome},eme),"data-hlbox-id":tme,style:{display:rme.w&&rme.h&&!rme.info.plugin.notHighlight?"block":"none",top:rme.y,left:rme.x,width:rme.w,height:rme.h},ref:_me,onMouseEnter:gme,draggable:!!xme||Ome,onDragStart:yme},Eme&&!lme?React__default.createElement("div",{className:"ae-Editor-toolbarPopover ".concat(Nme?"is-right-elem":"")},React__default.createElement("div",{className:"ae-Editor-nav"},rme.host?React__default.createElement("div",{className:"ae-Editor-tip parent",onClick:function(){return ime==null?void 0:ime(rme.host.id)}},rme.host.label):null,React__default.createElement("div",{key:"tip",className:"ae-Editor-tip current"},ame),rme.firstChild?React__default.createElement("div",{className:"ae-Editor-tip child",onClick:function(){return ime==null?void 0:ime(rme.firstChild.id)}},rme.firstChild.label):null),React__default.createElement("div",{className:"ae-Editor-toolbar",key:"toolbar"},$me.map(function(Ime){return React__default.createElement("button",{key:Ime.id,type:"button",draggable:Ime.draggable,onDragStart:Ime.onDragStart,"data-id":Ime.id,"data-tooltip":Ime.tooltip||void 0,"data-position":Ime.placement||"top",onClick:Ime.onClick},Ime.iconSvg?React__default.createElement(Icon$1,{className:"icon",icon:Ime.iconSvg}):~Ime.icon.indexOf("<")?React__default.createElement("span",{dangerouslySetInnerHTML:{__html:Ime.icon}}):React__default.createElement("i",{className:Ime.icon}))}))):null,Eme&&Cme.length?React__default.createElement("div",{className:"ae-Editor-toolbar sencondary",key:"sencondary-toolbar"},Cme.map(function(Ime){return React__default.createElement("button",{key:Ime.id,type:"button",className:Ime.className,"data-id":Ime.id,"data-tooltip":Ime.tooltip||void 0,"data-position":Ime.placement||"top",onClick:Ime.onClick},Ime.iconSvg?React__default.createElement(Icon$1,{className:"icon",icon:Ime.iconSvg}):~Ime.icon.indexOf("<")?React__default.createElement("span",{dangerouslySetInnerHTML:{__html:Ime.icon}}):React__default.createElement("i",{className:Ime.icon}))})):null,Eme&&Sme.length?React__default.createElement("div",{className:"ae-Editor-toolbar special",key:"special-toolbar"},Sme.map(function(Ime){return React__default.createElement("button",{key:Ime.id,type:"button",className:Ime.className,"data-id":Ime.id,"data-tooltip":Ime.tooltip||void 0,"data-position":Ime.placement||"top",onClick:Ime.onClick},Ime.iconSvg?React__default.createElement(Icon$1,{className:"icon",icon:Ime.iconSvg}):~Ime.icon.indexOf("<")?React__default.createElement("span",{dangerouslySetInnerHTML:{__html:Ime.icon}}):React__default.createElement("i",{className:Ime.icon}))})):null,nme,rme.widthMutable?React__default.createElement(React__default.Fragment,null,React__default.createElement("span",{className:"ae-border-WResizer",ref:pme}),React__default.createElement("span",{className:"ae-WResizer",ref:pme})):null,rme.heightMutable?React__default.createElement(React__default.Fragment,null,React__default.createElement("span",{className:"ae-border-HResizer",ref:bme}),React__default.createElement("span",{className:"ae-HResizer",ref:bme})):null,rme.widthMutable&&rme.heightMutable?React__default.createElement("span",{className:"ae-Resizer",ref:vme}):null)}),RegionHighlightBox=observer(function(x_){var eme=x_.manager,$P=x_.store,tme=x_.id,ame=x_.name,nme=x_.title,rme=x_.node,ime=x_.isOnlyChildRegion,ome=React__default.useCallback(function(){eme.emptyRegion(tme,ame)},[tme,ame,eme]),lme=$P.isRegionHighlighted(tme,ame),sme=$P.isRegionHighlightHover(tme,ame),cme=$P.isRegionDragEnter(tme,ame),dme=$P.getNodeById(tme),ume=rme.x-dme.x,fme=rme.y-dme.y;return React__default.createElement("div",{"data-renderer":rme.host.info.renderer.name,"data-region":ame,className:cx$1("ae-Editor-rhlbox",cme?"is-dragenter":"",$P.planDropId===tme?"region-can-be-drop":"",!ime&&sme?"region-hover":"",ime||lme?"is-highlight":""),style:{width:rme.w,height:rme.h,borderWidth:"".concat(Math.max(0,fme),"px ").concat(Math.max(0,dme.w-ume-rme.w),"px ").concat(Math.max(0,dme.h-fme-rme.h),"px ").concat(Math.max(0,ume),"px")}},React__default.createElement("div",{"data-node-id":tme,"data-node-region":ame,className:"region-tip ".concat(ime?"is-only-child-region":""," ignore-hover-elem")},React__default.createElement("span",{className:"region-text"},nme),$P.dragging?null:React__default.createElement("span",{className:"margin-space"},"|"),$P.dragging?null:React__default.createElement("button",{type:"button",className:"clear-icon-btn",title:"","data-tooltip":i18n("bb28ec819520ced0ffb4c3da01f112e2"),"data-position":"bottom",onClick:ome},React__default.createElement(Icon$1,{icon:"clear-btn"}))))}),ErrorRenderer=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.render=function(){return React__default.createElement("div",{className:"ae-ErrorRenderer"},i18n("e9509c688a0df6b088503d21569b6e8f"))},eme}(React__default.Component);function isWindow(x_){return x_!=null&&x_===x_.window}function getScroll(x_,eme){var $P;if(typeof window>"u")return 0;var tme="scrollTop",ame=0,nme=isWindow(x_);return nme?ame=x_.pageYOffset:x_ instanceof Document?ame=x_.documentElement[tme]:x_&&(ame=x_[tme]),x_&&!nme&&typeof ame!="number"&&(ame=($P=(x_.ownerDocument||x_).documentElement)===null||$P===void 0?void 0:$P[tme]),ame}var BackTop=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.ref=React__default.createRef(),tme.scrollElem=null,tme.state={visible:$P.visible!==void 0&&$P.visible},tme}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){this.bindScrollEvent()},eme.prototype.componentWillUnmount=function(){this.scrollElem&&this.scrollElem.removeEventListener("scroll",this.handleScroll)},eme.prototype.getDefaultTarget=function(){return this.ref.current&&this.ref.current.ownerDocument?this.ref.current.ownerDocument:window},eme.prototype.handleScroll=function($P){var tme=this.props.visibilityHeight||400,ame=getScroll($P.target);this.setState({visible:ame>tme})},eme.prototype.bindScrollEvent=function(){var $P=this.props.target;this.scrollElem=$P()||this.getDefaultTarget(),this.scrollElem&&(this.scrollElem.addEventListener("scroll",this.handleScroll),this.handleScroll({target:this.scrollElem}))},eme.prototype.scrollToTop=function($P){var tme=this.props.onClick;this.scrollElem&&(this.scrollElem.scrollTo({top:0,behavior:"smooth"}),typeof tme=="function"&&tme($P))},eme.prototype.render=function(){var $P=this.props,tme=$P.children,ame=$P.className,nme=cx$1("editor-backTop",ame===void 0?"":ame,this.state.visible?"":"hidden"),rme=omit$1(this.props,["className","children","visibilityHeight","target","visible"]),ime=React__default.createElement("div",{className:"backTop-content"},React__default.createElement("div",{className:"backTop-icon"},"UP"));return React__default.createElement("div",__assign$3({},rme,{className:nme,onClick:this.scrollToTop,ref:this.ref}),tme||ime)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getDefaultTarget",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleScroll",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"bindScrollEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"scrollToTop",null),eme}(React__default.Component),IFramePreview=function(x_){function eme($P){var tme=x_.call(this,$P)||this;tme.initialContent="",tme.dialogMountRef=React__default.createRef();var ame=[].slice.call(document.querySelectorAll('link[rel="stylesheet"], style')).map(function(nme){return nme.outerHTML});return ame.push("<style>body {height:auto !important;min-height:100%;overflow-y:auto !important;display: flex;flex-direction: column;}</style>"),tme.initialContent="<!DOCTYPE html><html><head>".concat(ame.join(""),'</head><body><div class="ae-IFramePreview AMISCSSWrapper"></div></body></html>'),tme}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){if(this.props.autoFocus){var $P=this.props.manager.store;setTimeout(function(){if(isAlive($P)){var tme=findTree($P.outline,function(ame){return!ame.isRegion&&ame.clickable});tme&&$P.setActiveId(tme.id)}},350)}else this.props.manager.buildRenderersAndPanels()},eme.prototype.iframeRefFunc=function($P){var tme=this.props.store;this.iframeRef=$P,isAlive(tme)&&tme.setIframe($P)},eme.prototype.getModalContainer=function(){return this.props.store.getDoc().body},eme.prototype.isMobile=function(){return!0},eme.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},eme.prototype.iframeContentDidMount=function(){var $P,tme=($P=this.iframeRef.contentWindow)===null||$P===void 0?void 0:$P.document.body;tme==null||tme.classList.add("is-modalOpened"),tme==null||tme.classList.add("ae-PreviewIFrameBody")},eme.prototype.render=function(){var $P=this.props,tme=$P.editable,ame=$P.store,nme=$P.appLocale;$P.autoFocus;var rme=$P.env,ime=$P.data,ome=$P.manager,lme=__rest$14($P,["editable","store","appLocale","autoFocus","env","data","manager"]);return React__default.createElement(Frame,{className:"ae-PreviewIFrame",initialContent:this.initialContent,ref:this.iframeRefFunc,contentDidMount:this.iframeContentDidMount},React__default.createElement(InnerComponent,{store:ame,editable:tme,manager:ome}),React__default.createElement("div",{ref:this.dialogMountRef,className:"ae-Dialog-preview-mount-node"},render$2(tme?ame.filteredSchema:ame.filteredSchemaForPreview,__assign$3(__assign$3({},lme),{key:tme?"edit-mode":"preview-mode",theme:rme.theme,data:ime,context:ame.ctx,locale:nme,editorDialogMountNode:this.getDialogMountRef}),__assign$3(__assign$3({},rme),{session:"".concat(rme.session,"-iframe-preview"),useMobileUI:!0,isMobile:this.isMobile,getModalContainer:this.getModalContainer})),React__default.createElement(InnerSvgSpirit,null)))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"iframeRefFunc",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getModalContainer",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"isMobile",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getDialogMountRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"iframeContentDidMount",null),eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component);function InnerComponent(x_){var eme=x_.store,$P=x_.editable,tme=x_.manager,ame=lib$1.useFrame().document,nme=React__default.useRef($P),rme=React__default.useCallback(function(){eme.setHoverId("")},[]),ime=React__default.useCallback(function(dme){var ume=dme.target.closest("[data-editor-id]");ume&&eme.setHoverId(ume.getAttribute("data-editor-id"))},[]),ome=React__default.useCallback(function(){closeContextMenus()},[]),lme=React__default.useCallback(function(dme){var ume=dme.target.closest("[data-editor-id]");if(closeContextMenus(),!dme.defaultPrevented&&(ume&&eme.setActiveId(ume.getAttribute("data-editor-id")),nme.current)){var fme=tme.trigger("prevent-click",{data:dme});fme.prevented||fme.stoped||(dme.preventDefault(),dme.stopPropagation())}},[]),sme=React__default.useCallback(function(dme){nme.current&&(dme.preventDefault(),dme.stopPropagation())},[]),cme=React__default.useCallback(function(){tme.store.getIframe().style.cssText+="height: ".concat(ame.body.offsetHeight,"px")},[]);return React__default.useEffect(function(){eme.setDoc(ame);var dme=ame==null?void 0:ame.querySelector(".frame-content");ame.addEventListener("click",ome),dme.addEventListener("mouseleave",rme),dme.addEventListener("mousemove",ime),dme.addEventListener("click",lme,!0),dme.addEventListener("mouseover",sme);var ume=resizeSensor(ame.body,function(){cme()});return cme(),function(){ame.removeEventListener("click",ome),dme.removeEventListener("mouseleave",rme),dme.removeEventListener("mousemove",ime),dme.removeEventListener("click",lme),dme.removeEventListener("mouseover",sme),eme.setDoc(document),ume()}},[ame]),React__default.useEffect(function(){var dme;(dme=ame==null?void 0:ame.querySelector("body>div:first-child"))===null||dme===void 0||dme.classList.toggle("is-edting",$P),nme.current=$P},[$P]),null}var InnerSvgSpirit=reactExports.memo(function(){var x_=window.spiriteIcons;return x_?React__default.createElement("div",{id:"amis-icon-manage-mount-node",style:{display:"none"},dangerouslySetInnerHTML:{__html:x_}}):null}),Preview=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.env=__assign$3(__assign$3({},$P.props.manager.env),{notify:function(tme,ame,nme){$P.props.editable?console.warn("[Notify]",tme,ame):toast[tme]?toast[tme](ame,nme||i18n(tme==="error"?"a71002967924a83e32b38a80705290fb":"058ebdf2884474ebff2977ba2f0e275e")):console.warn("[Notify]",tme,ame)},theme:$P.props.theme,session:"preview-".concat($P.props.manager.id),rendererResolver:$P.rendererResolver.bind($P)}),$P.doingSelection=!1,$P.unReaction=reactionWithOldValue(function(){return[$P.getHighlightNodes(),$P.props.store.activeId]},function(tme,ame){var nme=__read$3(tme,1)[0],rme=$P.props.store;rme.activeHighlightNodes(nme);var ime=ame==null?void 0:ame[0];Array.isArray(ime)&&(ime=ime.filter(function(ome){return!~nme.indexOf(ome)}),rme.deActiveHighlightNodes(ime))}),$P}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){this.currentDom=reactDomExports.findDOMNode(this),this.currentDom.addEventListener("mouseleave",this.handleMouseLeave),this.currentDom.addEventListener("mousemove",this.handleMouseMove),this.currentDom.addEventListener("click",this.handleClick,!0),this.currentDom.addEventListener("mouseover",this.handeMouseOver),this.currentDom.addEventListener("mousedown",this.handeMouseDown),this.props.manager.on("after-update",this.handlePanelChange)},eme.prototype.componentWillUnmount=function(){var $P,tme,ame=this;this.currentDom&&(this.currentDom.removeEventListener("mouseleave",this.handleMouseLeave),this.currentDom.removeEventListener("mousemove",this.handleMouseMove),this.currentDom.removeEventListener("click",this.handleClick,!0),this.currentDom.removeEventListener("mouseover",this.handeMouseOver),this.currentDom.removeEventListener("mousedown",this.handeMouseDown),this.props.manager.off("after-update",this.handlePanelChange),($P=this.dialogReaction)===null||$P===void 0||$P.call(this)),(tme=this.scrollLayer)===null||tme===void 0||tme.removeEventListener("scroll",this.handlePanelChange),setTimeout(function(){return clearStoresCache([ame.env.session])},500)},eme.prototype.contentsRef=function($P){var tme;$P?(this.layer=$P.parentElement.querySelector(".ae-Preview-widgets"),this.unSensor=resizeSensor($P,this.handlePanelChange),this.props.isMobile&&($P=$P.firstChild),this.scrollLayer=$P,this.scrollLayer.removeEventListener("scroll",this.handlePanelChange),this.scrollLayer.addEventListener("scroll",this.handlePanelChange),this.props.store.setLayer(this.layer)):(delete this.scrollLayer,delete this.layer,(tme=this.unSensor)===null||tme===void 0||tme.call(this),delete this.unSensor)},eme.prototype.handlePanelChange=function(){var $P=this;this.layer&&this.scrollLayer&&requestAnimationFrame(function(){$P.layer.style.cssText+="transform: translate(0, -".concat($P.scrollLayer.scrollTop,"px);")}),requestAnimationFrame(function(){return $P.calculateHighlightBox($P.getHighlightNodes())})},eme.prototype.getHighlightNodes=function(){return this.props.store.highlightNodes.map(function($P){return $P.id})},eme.prototype.calculateHighlightBox=function($P){var tme=this.props.store;this.layer&&tme.calculateHighlightBox($P)},eme.prototype.handeMouseDown=function($P){var tme,ame=this,nme=$P.button===1&&window.event!==null||$P.button===0;if(this.props.editable&&nme&&!$P.defaultPrevented&&!$P.defaultPrevented&&!(!((tme=$P.target)===null||tme===void 0)&&tme.closest("[draggable]"))){var rme=this.layer;if(rme){var ime=null,ome=rme.getBoundingClientRect(),lme=$P.pageX,sme=$P.pageY,cme=lme-ome.left,dme=sme-ome.top,ume=function(pme){ime||((ime=document.createElement("div")).classList.add("ae-Editor-selectionCursor"),rme.appendChild(ime)),ame.doingSelection=!0;var hme=pme.pageX-lme,bme=pme.pageY-sme;ime.style.cssText="left: ".concat(cme+Math.min(hme,0),"px; top: ").concat(dme+Math.min(bme,0),"px; width: ").concat(Math.abs(hme),"px; height: ").concat(Math.abs(bme),"px;")},fme=function(pme){ame.doingSelection=!1,window.removeEventListener("mousemove",ume),window.removeEventListener("mouseup",fme),ime&&rme.removeChild(ime);var hme=pme.pageX-lme,bme=pme.pageY-sme,mme={x:cme+Math.min(hme,0),y:dme+Math.min(bme,0),w:Math.abs(hme),h:Math.abs(bme)};if(!(mme.w<10&&mme.h<10)){var vme=function(gme){window.removeEventListener("click",vme,!0),gme.preventDefault(),gme.stopPropagation()};window.addEventListener("click",vme,!0),setTimeout(function(){return window.removeEventListener("click",vme,!0)},350),ame.doSelection(mme)}};window.addEventListener("mousemove",ume),window.addEventListener("mouseup",fme)}}},eme.prototype.doSelection=function($P){var tme=this.layer,ame=reactDomExports.findDOMNode(this);if(tme&&ame){var nme=[],rme=tme.getBoundingClientRect(),ime=$P.x+rme.left,ome=$P.y+rme.top,lme=($P.w,$P.h,$P.x+rme.left+$P.w),sme=$P.y+rme.top+$P.h,cme=ame.querySelectorAll("[data-editor-id]");[].slice.apply(cme).forEach(function(ume){if(!nme.some(function(pme){return pme.contains(ume)})){var fme=ume.getBoundingClientRect();ime<=fme.left&&ome<=fme.top&&lme>=fme.right&&sme>=fme.bottom&&(~nme.indexOf(ume)||nme.push(ume))}});var dme=nme.map(function(ume){return ume.getAttribute("data-editor-id")}).filter(function(ume,fme,pme){return pme.indexOf(ume)===fme});dme.length&&this.props.manager.setSelection(dme)}},eme.prototype.handleClick=function($P){var tme,ame=this.props.store,nme=$P.target.closest("[data-editor-id]");if(!$P.target.closest(".ae-editor-action-btn"))if($P.defaultPrevented)$P.stopPropagation();else{if(nme){var rme=nme.getAttribute("data-editor-id"),ime="",ome=$P.target.closest("[data-region-host]");if(ome){var lme=ome.getAttribute("data-region-host");lme&&lme===rme&&ome.getAttribute("data-region")&&(ime=ome.getAttribute("data-region"))}$P.metaKey?this.props.manager.toggleSelection(rme):ame.setActiveId(rme,ime)}if(!(!((tme=this.layer)===null||tme===void 0)&&tme.contains($P.target))&&this.props.editable){var sme=this.props.manager.trigger("prevent-click",{data:$P});sme.prevented||sme.stoped||($P.preventDefault(),$P.stopPropagation())}}},eme.prototype.handleNavSwitch=function($P){this.props.store.setActiveId($P)},eme.prototype.handleMouseMove=function($P){var tme;if(!this.doingSelection&&!this.props.manager.disableHover){var ame=this.props.store,nme=$P.target;if(!(!((tme=this.layer)===null||tme===void 0)&&tme.contains(nme))&&!$P.target.closest(".ignore-hover-elem")){var rme=nme.closest("[data-editor-id]");if(rme){var ime=rme.getAttribute("data-editor-id"),ome="",lme=$P.target.closest("[data-region-host]");if(lme){var sme=lme.getAttribute("data-region-host");sme&&sme===ime&&lme.getAttribute("data-region")&&(ome=lme.getAttribute("data-region"))}ame.setMouseMoveRegion(ome),ame.setHoverId(ime)}}}},eme.prototype.handleMouseLeave=function(){var $P=this.props.store;$P.setMouseMoveRegion(""),$P.setHoverId("")},eme.prototype.handeMouseOver=function($P){this.props.editable&&($P.preventDefault(),$P.stopPropagation())},eme.prototype.handleDragEnter=function($P){this.props.editable&&this.props.manager.dnd.dragEnter($P.nativeEvent)},eme.prototype.handleDragLeave=function($P){this.props.editable&&this.props.manager.dnd.dragLeave($P.nativeEvent)},eme.prototype.handleDragOver=function($P){this.props.editable&&this.props.manager.dnd.dragOver($P.nativeEvent)},eme.prototype.handleDrop=function($P){this.props.editable&&this.props.manager.dnd.drop($P.nativeEvent)},eme.prototype.handleWidgetsDragEnter=function($P){var tme=$P.target.closest("[data-node-id][data-node-region].region-tip");if(tme){$P.preventDefault();var ame=this.props.manager,nme=tme.getAttribute("data-node-id"),rme=tme.getAttribute("data-node-region");nme&&rme&&ame.dnd.switchToRegion($P.nativeEvent,nme,rme)}},eme.prototype.getCurrentTarget=function(){return this.props.isMobile?this.currentDom.querySelector(".ae-Preview-inner"):this.currentDom.querySelector(".ae-Preview-body")},eme.prototype.rendererResolver=function($P,tme,ame){var nme=this.props,rme=nme.editable,ime=nme.manager,ome=resolveRenderer($P,tme);if(rme===!1)return ome;ome=ome||{name:"error",test:function(){return!0},component:ErrorRenderer};var lme=ime.getEditorInfo(ome,$P,tme);return lme&&(ome=__assign$3(__assign$3({},ome),{component:ime.makeWrapper(lme,ome)})),ome},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.editable,rme=tme.store,ime=tme.manager,ome=tme.amisEnv;tme.theme;var lme=tme.isMobile,sme=tme.autoFocus,cme=tme.toolbarContainer,dme=tme.appLocale,ume=tme.ref,fme=__rest$14(tme,["className","editable","store","manager","amisEnv","theme","isMobile","autoFocus","toolbarContainer","appLocale","ref"]),pme=__assign$3(__assign$3({},this.env),ome);return React__default.createElement("div",{id:"editor-preview-body",onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:cx$1("ae-Preview","AMISCSSWrapper",ame,lme?"is-mobile-body":"is-pc-body"),ref:ume},React__default.createElement("div",{key:lme?"mobile-body":"pc-body",className:cx$1("ae-Preview-body",ame,nme?"is-edting":"",lme?"is-mobile":"is-pc hoverShowScrollBar"),ref:this.contentsRef},React__default.createElement("div",{className:"ae-Preview-inner"},rme.ready?lme?React__default.createElement(IFramePreview,__assign$3({},fme,{key:"mobile",editable:nme,store:rme,env:pme,manager:ime,autoFocus:sme,appLocale:dme})):React__default.createElement(SmartPreview,__assign$3({},fme,{editable:nme,autoFocus:sme,store:rme,env:pme,manager:ime,key:"pc",appLocale:dme})):React__default.createElement("div",{className:"ae-Preview-loading"},React__default.createElement(Spinner$1,{overlay:!0,size:"lg"}))),this.currentDom&&React__default.createElement(BackTop,{key:lme?"mobile-back-up":"pc-back-up",className:"ae-editor-action-btn",target:this.getCurrentTarget.bind(this),onClick:function(hme){console.log(hme)}},React__default.createElement(Icon$1,{icon:"back-up",className:"back-top-icon"}))),React__default.createElement("div",{onDragEnter:this.handleWidgetsDragEnter,className:"ae-Preview-widgets",id:"aePreviewHighlightBox"},rme.highlightNodes.map(function(hme){return React__default.createElement(HighlightBox,{node:hme,key:hme.id,store:rme,id:hme.id,title:hme.label,toolbarContainer:cme,onSwitch:$P.handleNavSwitch,manager:ime,readonly:$P.props.readonly},hme.childRegions.map(function(bme){return hme.memberImmutable(bme.region)||$P.props.readonly||!rme.isRegionActive(bme.id,bme.region)?null:React__default.createElement(RegionHighlightBox,{manager:ime,key:bme.region,store:rme,node:bme,id:bme.id,name:bme.region,title:bme.label,preferTag:bme.preferTag,isOnlyChildRegion:hme.childRegions.length===1})}))})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"contentsRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handlePanelChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"calculateHighlightBox",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handeMouseDown",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleNavSwitch",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseMove",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseLeave",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handeMouseOver",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragEnter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragLeave",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragOver",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDrop",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleWidgetsDragEnter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getCurrentTarget",null),eme=__decorate$1([observer],eme)}(reactExports.Component),SmartPreview=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.dialogMountRef=React__default.createRef(),$P}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){var $P=this.props.store;this.props.autoFocus?setTimeout(function(){var tme,ame;if(isAlive($P)){var nme=findTree($P.outline,function(ime){return!ime.isRegion&&ime.clickable});if(nme&&isAlive($P)){var rme=(tme=nme.childRegions.find(function(ime){return ime.region==="body"}))===null||tme===void 0?void 0:tme.region;rme=rme??((ame=nme.childRegions.find(function(ime){return ime.region}))===null||ame===void 0?void 0:ame.region),$P.setActiveId(nme.id,rme)}}},350):this.props.manager.buildRenderersAndPanels()},eme.prototype.componentDidUpdate=function($P){var tme=this.props;tme.editable!==$P.editable&&tme.editable&&this.props.manager.trigger("preview2editor",{data:this.props.manager})},eme.prototype.getDialogMountRef=function(){return this.dialogMountRef.current},eme.prototype.render=function(){var $P=this.props,tme=$P.editable,ame=$P.store,nme=$P.appLocale;$P.autoFocus;var rme=$P.env,ime=$P.data;$P.manager;var ome=__rest$14($P,["editable","store","appLocale","autoFocus","env","data","manager"]);return React__default.createElement("div",{ref:this.dialogMountRef,className:"ae-Dialog-preview-mount-node"},render$2(tme?ame.filteredSchema:ame.filteredSchemaForPreview,__assign$3(__assign$3({},ome),{key:tme?"edit-mode":"preview-mode",theme:rme.theme,data:ime,context:ame.ctx,locale:nme,editorDialogMountNode:this.getDialogMountRef}),__assign$3(__assign$3({},rme),{session:tme?"edit-mode":"preview-mode",enableAMISDebug:!tme})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getDialogMountRef",null),eme=__decorate$1([observer],eme)}(React__default.Component),RendererThumb=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.env=__assign$3({session:"preview"},tme.props.env),tme.state={scale:!0},tme.rootRef=tme.rootRef.bind(tme),tme.syncHeight=tme.syncHeight.bind(tme),tme.handleClick=tme.handleClick.bind(tme),tme}return __extends$2(eme,x_),eme.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},eme.prototype.rootRef=function($P){var tme;this.ref=$P,$P&&(this.syncHeight(),this.unSensor=resizeSensor((tme=$P.firstChild)===null||tme===void 0?void 0:tme.firstChild,this.syncHeight))},eme.prototype.syncHeight=function(){if(this.ref){var $P=this.state.scale,tme=this.ref.firstChild;this.ref.style.cssText="height: ".concat(tme.scrollHeight/($P?2:1),"px;")}},eme.prototype.handleClick=function($P){$P.preventDefault(),this.setState({scale:!this.state.scale})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.schema,nme=tme.theme;return React__default.createElement(themedLazyComponent,{unMountOnHidden:!1,schema:ame,component:function(rme){var ime=rme.schema;return React__default.createElement("div",{className:"ae-RenderersPicker-thumb ".concat($P.state.scale?"is-scaled":"")},React__default.createElement("div",{className:"ae-Editor-rendererThumbWrap"},React__default.createElement("div",{className:"ae-Editor-rendererThumbIcon",onClick:$P.handleClick},React__default.createElement(Icon$1,{icon:$P.state.scale?"zoom-in":"zoom-out"})),React__default.createElement("div",{ref:$P.rootRef,className:"ae-Editor-rendererThumb"},React__default.createElement("div",{className:"ae-Editor-rendererThumbInner"},render$2(__assign$3(__assign$3({},ime),{mode:ime.mode==="horizontal"?"normal":ime.mode}),{theme:nme},$P.env)))))}})},eme}(React__default.Component),InsertSubRendererPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.handleLeftClick=function($P){var tme=$P.currentTarget.getAttribute("data-value");this.props.store.setInsertTag(tme)},eme.prototype.handleClick=function($P){var tme=$P.currentTarget.getAttribute("data-value");this.props.store.setInsertSelected(tme)},eme.prototype.hadnlDBClick=function($P){var tme=$P.currentTarget.getAttribute("data-value"),ame=this.props.store;ame.setInsertSelected(tme);var nme=this.props.manager;ame.insertMode==="replace"?nme.replace():nme.insert()},eme.prototype.handleInsert=function(){this.props.manager.insert()},eme.prototype.handleReplace=function(){this.props.manager.replace()},eme.prototype.handleCancel=function(){this.props.store.closeInsertPanel()},eme.prototype.render=function(){var $P,tme,ame=this,nme=this.props.store,rme=this.props.manager,ime=($P=nme.getNodeById(nme.insertId))===null||$P===void 0?void 0:$P.info,ome=(tme=find$3(ime.regions,function(ume){return ume.key===nme.insertRegion}))===null||tme===void 0?void 0:tme.label,lme=nme.groupedInsertRenderers,sme=Object.keys(lme),cme=nme.insertTag||i18n("a8b0c20416853bda54120bf19477ad11"),dme=lme[cme]||lme[i18n("a8b0c20416853bda54120bf19477ad11")];return React__default.createElement("div",{className:"ae-InsertPanel"},nme.insertMode==="replace"?React__default.createElement("div",{className:"ae-InsertPanel-title"},i18n("b80ed82d124c6fd9242dcacdda2a2f8b")):React__default.createElement("div",{className:"ae-InsertPanel-title"},React__default.createElement("span",null,i18n("41150516bf0d90646edc5239593366e9"))," ",React__default.createElement("code",null,ime.name," > ",ome)),React__default.createElement("div",{className:"m-b-xs"},React__default.createElement(InputBox$1,{className:"editor-InputSearch",value:nme.insertRenderersKeywords,onChange:nme.changeInsertRenderersKeywords,placeholder:i18n("d87481b371771b4f150da76e311bbbef"),clearable:!1},nme.insertRenderersKeywords?React__default.createElement("a",{onClick:nme.resetInsertRenderersKeywords},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"search",className:"icon"}))),React__default.createElement("div",{className:"ae-RenderersPicker-list"},React__default.createElement("ul",null,sme.map(function(ume){return React__default.createElement("li",{key:ume,className:cme===ume?"is-active":""},React__default.createElement("a",{"data-value":ume,onClick:ame.handleLeftClick},ume))})),React__default.createElement("div",{className:"ae-RenderersPicker-content"},Array.isArray(dme)&&dme.length?React__default.createElement("ul",null,dme.map(function(ume){return React__default.createElement("li",{key:ume.id,className:nme.insertSelected===ume.id?"is-active":"","data-value":ume.id,onClick:ame.handleClick,onDoubleClick:ame.hadnlDBClick},React__default.createElement(RendererThumb,{theme:rme.env.theme,env:rme.env,schema:ume.previewSchema||{type:"tpl",tpl:i18n("becdc848350872592201e31bab03892a")}}),React__default.createElement("div",{className:"ae-RenderersPicker-info"},React__default.createElement("h4",null,ume.name),React__default.createElement("div",null,React__default.createElement(Html$1,{html:ume.description}),ume.docLink?React__default.createElement("a",{target:"_blank",href:nme.amisDocHost+ume.docLink},React__default.createElement("span",null,i18n("f26225bde6a250894a04db4c53ea03d0"))):null)))})):React__default.createElement("div",null,i18n("751dfe6f476903c21381c9acf88332e2")))),React__default.createElement("div",{className:"ae-InsertPanel-footer"},nme.insertMode==="replace"?React__default.createElement(Button$1,{className:"action-btn action-btn-primary",onClick:this.handleReplace,disabled:!nme.insertSelected,level:"primary"},i18n("e22c9a05b424b761efce11f17726fdd7")):React__default.createElement(Button$1,{className:"action-btn action-btn-primary",onClick:this.handleInsert,disabled:!nme.insertSelected,level:"primary"},i18n("9bdb07e72d3a9a6084201a7398523f5a")),React__default.createElement(Button$1,{className:"action-btn",onClick:this.handleCancel},i18n("625fb26b4b3340f7872b411f401e754c"))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleLeftClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"hadnlDBClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleInsert",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleReplace",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleCancel",null),eme=__decorate$1([observer],eme)}(React__default.Component),_path$r$1;function _extends$J$1(){return _extends$J$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$J$1.apply(null,arguments)}var SvgArrowToRight=function(x_){return reactExports.createElement("svg",_extends$J$1({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$r$1||(_path$r$1=reactExports.createElement("path",{d:"M755.627 481.707 584.96 311.04a42.667 42.667 0 1 0-60.587 60.587l98.134 97.706H128a42.667 42.667 0 0 0 0 85.334h494.507l-98.134 97.706a42.667 42.667 0 0 0 0 60.587 42.667 42.667 0 0 0 60.587 0l170.667-170.667a42.667 42.667 0 0 0 8.96-14.08 42.667 42.667 0 0 0 0-32.426 42.667 42.667 0 0 0-8.96-14.08zM896 170.667a42.667 42.667 0 0 0-42.667 42.666v597.334a42.667 42.667 0 0 0 85.334 0V213.333A42.667 42.667 0 0 0 896 170.667z"})))},_path$q$1;function _extends$I$1(){return _extends$I$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$I$1.apply(null,arguments)}var SvgLeftArrowToLeft=function(x_){return reactExports.createElement("svg",_extends$I$1({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$q$1||(_path$q$1=reactExports.createElement("path",{d:"M896 469.333H401.493l98.134-97.706a42.667 42.667 0 1 0-60.587-60.587L268.373 481.707a42.667 42.667 0 0 0-8.96 14.08 42.667 42.667 0 0 0 0 32.426 42.667 42.667 0 0 0 8.96 14.08L439.04 712.96a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587l-98.134-97.706H896a42.667 42.667 0 0 0 0-85.334zM128 128a42.667 42.667 0 0 0-42.667 42.667v682.666a42.667 42.667 0 0 0 85.334 0V170.667A42.667 42.667 0 0 0 128 128z"})))},_path$p$1;function _extends$H$1(){return _extends$H$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$H$1.apply(null,arguments)}var SvgTopArrowToTop=function(x_){return reactExports.createElement("svg",_extends$H$1({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$p$1||(_path$p$1=reactExports.createElement("path",{d:"M542.293 268.373a42.667 42.667 0 0 0-14.08-8.96 42.667 42.667 0 0 0-32.426 0 42.667 42.667 0 0 0-14.08 8.96L311.04 439.04a42.667 42.667 0 1 0 60.587 60.587l97.706-98.134V896a42.667 42.667 0 0 0 85.334 0V401.493l97.706 98.134a42.667 42.667 0 0 0 60.587 0 42.667 42.667 0 0 0 0-60.587zm268.374-183.04H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334z"})))},_path$o$1;function _extends$G$1(){return _extends$G$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$G$1.apply(null,arguments)}var SvgArrowToBottom=function(x_){return reactExports.createElement("svg",_extends$G$1({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$o$1||(_path$o$1=reactExports.createElement("path",{d:"M810.667 853.333H213.333a42.667 42.667 0 0 0 0 85.334h597.334a42.667 42.667 0 0 0 0-85.334zm-328.96-97.706a42.667 42.667 0 0 0 14.08 8.96 40.107 40.107 0 0 0 32.426 0 42.667 42.667 0 0 0 14.08-8.96L712.96 584.96a42.667 42.667 0 0 0-60.587-60.587l-97.706 98.134V128a42.667 42.667 0 0 0-85.334 0v494.507l-97.706-98.134a42.667 42.667 0 1 0-60.587 60.587z"})))},_path$n$1;function _extends$F$1(){return _extends$F$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$F$1.apply(null,arguments)}var SvgCollapseOpenIcon=function(x_){return reactExports.createElement("svg",_extends$F$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$n$1||(_path$n$1=reactExports.createElement("path",{fill:"#83868C",d:"M8 11 4 6h8z"})))},_path$m$1;function _extends$E$1(){return _extends$E$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$E$1.apply(null,arguments)}var SvgDisplayInline=function(x_){return reactExports.createElement("svg",_extends$E$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 8",className:"icon"},x_),_path$m$1||(_path$m$1=reactExports.createElement("path",{d:"M14.814 6.25c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.41-.19V5.13h-.153c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.484.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3 1.566 1.566 0 0 1-.38-.57c-.1-.24-.152-.54-.152-.9 0-.346.048-.638.14-.878s.217-.437.368-.58c.16-.155.33-.26.52-.33a1.786 1.786 0 0 1 1.117-.013c.165.055.317.124.458.205a4.385 4.385 0 0 1 .643.47h.17V1.52c-.107-.05-.23-.107-.37-.168a3.613 3.613 0 0 0-1.003-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.674.33-.923.59c-.26.26-.458.58-.59.95S14 3.57 14 4.02c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.608c.272-.075.52-.2.75-.377a1.5 1.5 0 0 0 .46-.56 1.72 1.72 0 0 0 .17-.77c0-.4-.11-.72-.332-.96-.22-.244-.52-.404-.896-.48v-.04a1.46 1.46 0 0 0 .623-.516c.147-.22.22-.474.22-.763 0-.25-.052-.47-.16-.66a1.152 1.152 0 0 0-.49-.46 2.06 2.06 0 0 0-.64-.212A7.67 7.67 0 0 0 10.237 1H8v5.97h2.515c.418 0 .763-.037 1.035-.112zM9.478 2.095h.14c.29 0 .517.002.678.006.162.01.296.03.404.07a.46.46 0 0 1 .253.23.69.69 0 0 1 .072.298.85.85 0 0 1-.062.34.492.492 0 0 1-.263.24 1.052 1.052 0 0 1-.39.08c-.166.006-.366.01-.6.01h-.232v-1.27zm.108 3.78h-.108V4.388h.324c.222 0 .434 0 .638.004a1.8 1.8 0 0 1 .48.056c.17.05.29.127.36.23.07.104.106.25.106.44 0 .144-.03.272-.087.383s-.17.2-.32.27-.32.1-.5.11c-.18.004-.48.004-.9.004zm-6.64-.106h2.187l.41 1.2h1.574L4.935 1.03H3.182L1 6.97h1.535l.412-1.2zM4.04 2.55l.727 2.13H3.313l.727-2.13z"})))},_path$l$1,_path2$4$1,_path3$3$1;function _extends$D$1(){return _extends$D$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$D$1.apply(null,arguments)}var SvgDisplayBlock=function(x_){return reactExports.createElement("svg",_extends$D$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 14",className:"icon"},x_),_path$l$1||(_path$l$1=reactExports.createElement("path",{opacity:.15,d:"M19 3v8H3V3h16m1-1H2v10h18V2z"})),_path2$4$1||(_path2$4$1=reactExports.createElement("path",{d:"M19.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h17.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 19.8 1zm.2 11H2V2h18v10z"})),_path3$3$1||(_path3$3$1=reactExports.createElement("path",{opacity:.35,d:"M3 3h16v8H3z"})))},_path$k$1,_path2$3$1,_path3$2$1;function _extends$C$1(){return _extends$C$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$C$1.apply(null,arguments)}var SvgDisplayInlineBlock=function(x_){return reactExports.createElement("svg",_extends$C$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 14",className:"icon"},x_),_path$k$1||(_path$k$1=reactExports.createElement("path",{d:"M25 3v8H3V3h22m1-1H2v10h24V2z",opacity:.15})),_path2$3$1||(_path2$3$1=reactExports.createElement("path",{opacity:.35,d:"M8.418 9.8H7.66L7.25 11h1.58l-.232-.676-.18-.525zM3 11h.567l2.916-7.94h3.15L11 6.78V3H3v8zm15.12-1.002a3.302 3.302 0 0 1-.48-.586c-.173.343-.42.653-.73.888.002 0 .004-.002.005-.003l-.008.006.003-.003a3.145 3.145 0 0 1-1.092.55c-.4.11-.825.15-1.303.15h6.017a4.416 4.416 0 0 1-1.12-.215 3.51 3.51 0 0 1-1.292-.787zM14.237 3c.49 0 .853.014 1.167.06.335.05.656.16.953.314h.003l.004.003c.365.19.694.492.898.866.13.234.197.49.24.747.16-.298.343-.58.578-.82v-.002c.358-.366.8-.643 1.287-.826a4.373 4.373 0 0 1 1.557-.272 5.67 5.67 0 0 1 1.442.18l.01.002.01.003c.205.06.4.126.59.208.15.064.283.125.407.185l.562.274v3.016h-1.54l-.28-.24a7.018 7.018 0 0 0-.233-.188 2.703 2.703 0 0 0-.26-.175 1.594 1.594 0 0 0-.277-.125h-.006l-.2-.03a.772.772 0 0 0-.26.042l-.16.102a.63.63 0 0 0-.13.22 1.486 1.486 0 0 0-.075.516c0 .266.04.436.074.513a.59.59 0 0 0 .13.212l.15.09h.003a.868.868 0 0 0 .265.045l.236-.037h.008a1.04 1.04 0 0 0 .25-.113l.007-.004.01-.005.24-.16a6.41 6.41 0 0 0 .216-.17l.285-.254h1.536v3.017l-.59.266c-.15.066-.292.13-.422.184a4.19 4.19 0 0 1-.53.19 5.918 5.918 0 0 1-.636.15c-.076.012-.16.02-.24.026H25V3H14.237z"})),_path3$2$1||(_path3$2$1=reactExports.createElement("path",{d:"M25.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h23.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 25.8 1zm.2 11H2V2h24v10zm-7.186-2.72c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.412-.19V8.16h-.154c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.485.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3c-.15-.14-.28-.33-.38-.57a2.36 2.36 0 0 1-.152-.9c0-.347.047-.64.14-.88s.216-.433.367-.58c.157-.15.33-.26.517-.325a1.786 1.786 0 0 1 1.116-.014c.164.056.316.125.457.206a4.868 4.868 0 0 1 .644.466h.17V4.54a13.03 13.03 0 0 0-.367-.168 3.667 3.667 0 0 0-1.005-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.675.333-.924.59c-.26.262-.457.58-.59.95S18 6.6 18 7.055c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.607c.272-.076.52-.2.75-.38.195-.15.35-.338.46-.567.113-.23.17-.488.17-.778 0-.4-.11-.722-.332-.967-.22-.245-.52-.406-.896-.484v-.03a1.46 1.46 0 0 0 .623-.51 1.36 1.36 0 0 0 .22-.77c0-.25-.052-.47-.16-.665a1.15 1.15 0 0 0-.49-.465 2.065 2.065 0 0 0-.64-.215A7.67 7.67 0 0 0 14.237 4H12v6h2.515c.418 0 .763-.037 1.035-.113zM13.478 5.1h.14c.29 0 .517.002.678.006s.296.027.404.07c.12.05.206.123.253.223a.69.69 0 0 1 .072.29.86.86 0 0 1-.062.34c-.042.1-.13.18-.263.24a1.05 1.05 0 0 1-.39.08c-.166.007-.366.01-.6.01h-.233V5.1zm.108 3.8h-.108V7.405h.324c.222 0 .434 0 .638.004.203 0 .363.02.48.05.17.05.29.13.36.23s.106.25.106.44c0 .144-.03.272-.087.384s-.17.2-.32.27a1.257 1.257 0 0 1-.5.104c-.18.003-.48.004-.9.004zm-6.64-.1h2.187l.41 1.2h1.574L8.935 4.06H7.182L5 10h1.535l.412-1.2zM8.04 5.58l.727 2.13H7.313l.727-2.13z"})))},_path$j$1,_path2$2$1,_path3$1$1,_path4$b,_path5$1,_path6$1,_path7$1,_path8$1;function _extends$B$1(){return _extends$B$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$B$1.apply(null,arguments)}var SvgDisplayFlex=function(x_){return reactExports.createElement("svg",_extends$B$1({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 14",className:"icon"},x_),_path$j$1||(_path$j$1=reactExports.createElement("path",{d:"M21 2v10H2V2h19zm1-1H1v12h21V1z",opacity:.15})),_path2$2$1||(_path2$2$1=reactExports.createElement("path",{d:"M1.2 0A1.2 1.2 0 0 0 0 1.2v11.6A1.2 1.2 0 0 0 1.2 14h20.6a1.2 1.2 0 0 0 1.2-1.2V1.2A1.2 1.2 0 0 0 21.8 0H1.2zM22 13H1V1h21v12z"})),_path3$1$1||(_path3$1$1=reactExports.createElement("path",{opacity:.4,d:"M3 3h5v8H3z"})),_path4$b||(_path4$b=reactExports.createElement("path",{d:"M4 4v6h3V4H4zm4-1v8H3V3h5z"})),_path5$1||(_path5$1=reactExports.createElement("path",{opacity:.4,d:"M9 3h5v8H9z"})),_path6$1||(_path6$1=reactExports.createElement("path",{d:"M10 4v6h3V4h-3zm4-1v8H9V3h5z"})),_path7$1||(_path7$1=reactExports.createElement("path",{opacity:.4,d:"M15 3h5v8h-5z"})),_path8$1||(_path8$1=reactExports.createElement("path",{d:"M16 4v6h3V4h-3zm4-1v8h-5V3h5z"})))},_path$i$1;function _extends$A$1(){return _extends$A$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$A$1.apply(null,arguments)}var SvgHammer=function(x_){return reactExports.createElement("svg",_extends$A$1({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x_),_path$i$1||(_path$i$1=reactExports.createElement("path",{d:"m947.9 761.4-264-263.9c-16.3-16.3-43.1-16.3-59.4 0l-19.8 19.8-161-161L708.1 91.9H428L303.6 216.2l-12.3-12.3h-59.4v59.4l12.3 12.3L63.9 456l140 140 180.3-180.3 161.1 161.1-19.8 19.8c-16.3 16.3-16.3 43.1 0 59.4l263.9 263.9c16.3 16.3 43.1 16.3 59.4 0l99-99c16.4-16.4 16.4-43.1.1-59.5z"})))},_path$h$1;function _extends$z$1(){return _extends$z$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$z$1.apply(null,arguments)}var SvgDialog=function(x_){return reactExports.createElement("svg",_extends$z$1({className:"icon",viewBox:"0 0 1155 1024",xmlns:"http://www.w3.org/2000/svg"},x_),_path$h$1||(_path$h$1=reactExports.createElement("path",{d:"M1076.512 315.077H840.204V78.769A78.77 78.77 0 0 0 761.435 0H78.77A78.77 78.77 0 0 0 0 78.77v420.1a78.77 78.77 0 0 0 78.77 78.77h14.939l-9.295 23.368a78.77 78.77 0 0 0 73.124 107.913 76.879 76.879 0 0 0 38.23-9.977l119.309-66.166v181.169a78.77 78.77 0 0 0 78.769 78.769h347.188l218.453 121.305a76.879 76.879 0 0 0 38.256 9.977 78.77 78.77 0 0 0 73.15-107.914l-9.295-23.368h14.914a78.77 78.77 0 0 0 78.769-78.77V393.847a78.77 78.77 0 0 0-78.77-78.77zm-761.435 78.769v148.873l-157.539 87.434 52.513-131.282H78.77V78.77h682.666v236.308h-367.59a78.77 78.77 0 0 0-78.768 78.769zm761.435 420.102H945.23l52.513 131.282-236.308-131.282h-367.59V393.846h682.667v420.102zm-577.64-262.564h472.614a39.385 39.385 0 0 0 0-78.77H498.871a39.385 39.385 0 0 0 0 78.77zm0 157.538h472.614a39.385 39.385 0 0 0 0-78.769H498.871a39.385 39.385 0 0 0 0 78.77z"})))},_g$h$1;function _extends$y$1(){return _extends$y$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$y$1.apply(null,arguments)}var SvgSetting=function(x_){return reactExports.createElement("svg",_extends$y$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$h$1||(_g$h$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M11.5 2 15 8.063l-3.5 6.062h-7L1 8.063 4.5 2h7Zm-.578 1H5.077L2.155 8.064l2.922 5.06h5.845l2.924-5.06L10.922 3ZM8 6.064a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0 1a1.001 1.001 0 0 0 0 2 1.001 1.001 0 0 0 0-2Z",fill:"#84868C",fillRule:"nonzero"}))))},_g$g$1;function _extends$x$1(){return _extends$x$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$x$1.apply(null,arguments)}var SvgPickerIcon=function(x_){return reactExports.createElement("svg",_extends$x$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$g$1||(_g$g$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},reactExports.createElement("path",{d:"M14.5 14.5h-13v-13h13v1.998"}),reactExports.createElement("path",{d:"m12.775 4.943 1.768 1.768-1.766 1.765M13.85 6.71H8m1.694 2.525-1.768 1.768 1.766 1.766m-1.074-1.767 5.882-.001"}))))},_path$g$1;function _extends$w$1(){return _extends$w$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$w$1.apply(null,arguments)}var SvgCopyBtn=function(x_){return reactExports.createElement("svg",_extends$w$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$g$1||(_path$g$1=reactExports.createElement("path",{d:"M11 1.6a2.4 2.4 0 0 1 2.394 2.236L13.4 4v5a2.4 2.4 0 0 1-2.236 2.394L11 11.4l-.633.001A2.4 2.4 0 0 1 8 13.4H4A2.4 2.4 0 0 1 1.6 11V6A2.4 2.4 0 0 1 4 3.6h.632a2.392 2.392 0 0 1 2.195-1.994L6.99 1.6H11ZM8 4.4H4A1.6 1.6 0 0 0 2.4 6v5A1.6 1.6 0 0 0 4 12.6h4A1.6 1.6 0 0 0 9.6 11V6A1.6 1.6 0 0 0 8 4.4Zm-2.2 5.7c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H5.8ZM11 2.4H6.99c-.743 0-1.368.51-1.542 1.2H8A2.4 2.4 0 0 1 10.4 6l-.001 4.6H11a1.6 1.6 0 0 0 1.593-1.454L12.6 9V4a1.6 1.6 0 0 0-1.454-1.593L11 2.4ZM8.3 8.1c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Zm0-2c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.717a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2H8.3Z",fill:"#FFF"})))},_g$f$1;function _extends$v$1(){return _extends$v$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$v$1.apply(null,arguments)}var SvgMoreBtn=function(x_){return reactExports.createElement("svg",_extends$v$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$f$1||(_g$f$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h14v14H0z"}),reactExports.createElement("circle",{fill:"#FFF",cx:2.8,cy:7,r:1}),reactExports.createElement("circle",{fill:"#FFF",cx:11.2,cy:7,r:1}),reactExports.createElement("circle",{fill:"#FFF",cx:7,cy:7,r:1}))))},_path$f$1;function _extends$u$1(){return _extends$u$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$u$1.apply(null,arguments)}var SvgDeleteBtn=function(x_){return reactExports.createElement("svg",_extends$u$1({viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$f$1||(_path$f$1=reactExports.createElement("path",{d:"M9.25 1.1a.4.4 0 0 1 .392.32l.008.08v1.153h3.15c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2h-1.65v7.044a2.4 2.4 0 0 1-2.236 2.395l-.164.005h-3.5a2.4 2.4 0 0 1-2.394-2.235l-.006-.165-.001-7.044H1.2a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2h3.149L4.35 1.5a.4.4 0 0 1 .32-.392l.08-.008h4.5Zm1.1 2.353H3.649l.001 7.044a1.6 1.6 0 0 0 1.454 1.594l.146.006h3.5a1.6 1.6 0 0 0 1.593-1.454l.007-.146V3.453ZM4.816 4.997l.4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198Zm2 0 .4.006a.2.2 0 0 1 .198.202l-.065 5.1a.2.2 0 0 1-.202.198l-.4-.006a.2.2 0 0 1-.198-.202l.065-5.1a.2.2 0 0 1 .202-.198ZM8.85 1.9h-3.7v.753h3.7V1.9Z"})))},_g$e$1;function _extends$t$1(){return _extends$t$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$t$1.apply(null,arguments)}var SvgDragBtn=function(x_){return reactExports.createElement("svg",_extends$t$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$e$1||(_g$e$1=reactExports.createElement("g",{fill:"#FFF"},reactExports.createElement("path",{d:"m10.263 4.52-.283.283a.2.2 0 0 1-.283 0L8 3.105 6.303 4.803a.2.2 0 0 1-.283 0l-.283-.283a.2.2 0 0 1 0-.283l1.98-1.98a.4.4 0 0 1 .503-.051l.063.051 1.98 1.98a.2.2 0 0 1 0 .283Zm-4.526 6.953.283-.283a.2.2 0 0 1 .283 0L8 12.888l1.697-1.698a.2.2 0 0 1 .283 0l.283.283a.2.2 0 0 1 0 .283l-1.98 1.98a.4.4 0 0 1-.503.05l-.063-.05-1.98-1.98a.2.2 0 0 1 0-.283Zm5.743-1.21-.283-.283a.2.2 0 0 1 0-.283L12.895 8l-1.698-1.697a.2.2 0 0 1 0-.283l.283-.283a.2.2 0 0 1 .283 0l1.98 1.98a.4.4 0 0 1 .051.503l-.051.063-1.98 1.98a.2.2 0 0 1-.283 0ZM4.546 5.737l.282.283a.2.2 0 0 1 0 .283L3.131 8l1.697 1.697a.2.2 0 0 1 0 .283l-.282.283a.2.2 0 0 1-.283 0l-1.98-1.98a.4.4 0 0 1-.051-.503l.05-.063 1.98-1.98a.2.2 0 0 1 .284 0Z"}),reactExports.createElement("path",{d:"M8.4 3v4.7h4.7v.8H8.4V13h-.8V8.5H3.1v-.8l4.5-.001V3h.8Z"}))))},_defs$1,_g$d$1;function _extends$s$1(){return _extends$s$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$s$1.apply(null,arguments)}var SvgUpBtn=function(x_){return reactExports.createElement("svg",_extends$s$1({viewBox:"0 0 28 29",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon"},x_),_defs$1||(_defs$1=reactExports.createElement("defs",null,reactExports.createElement("radialGradient",{cx:"69.986%",cy:"19.319%",fx:"69.986%",fy:"19.319%",r:"49.554%",gradientTransform:"scale(-1 -.71033) rotate(-39.868 -.641 1.89)",id:"up-btn_svg__e"},reactExports.createElement("stop",{stopColor:"#FFF",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),reactExports.createElement("radialGradient",{cx:"77.918%",cy:"13.589%",fx:"77.918%",fy:"13.589%",r:"45.882%",id:"up-btn_svg__j"},reactExports.createElement("stop",{stopColor:"#FFF",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#FFF",stopOpacity:0,offset:"100%"})),reactExports.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"up-btn_svg__a"},reactExports.createElement("stop",{stopColor:"#0752E9",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#2468F2",offset:"100%"})),reactExports.createElement("linearGradient",{x1:"50%",y1:"0%",x2:"50%",y2:"100%",id:"up-btn_svg__g"},reactExports.createElement("stop",{stopColor:"#0752E9",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#2468F2",offset:"100%"})),reactExports.createElement("filter",{x:"-75%",y:"-75%",width:"250%",height:"250%",filterUnits:"objectBoundingBox",id:"up-btn_svg__c"},reactExports.createElement("feGaussianBlur",{stdDeviation:7,in:"SourceGraphic"})),reactExports.createElement("filter",{x:"-100%",y:"-100%",width:"300%",height:"300%",filterUnits:"objectBoundingBox",id:"up-btn_svg__h"},reactExports.createElement("feGaussianBlur",{stdDeviation:2,in:"SourceGraphic"})),reactExports.createElement("circle",{id:"up-btn_svg__f",cx:3,cy:2.5,r:2.5}),reactExports.createElement("path",{d:"m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35a7.97 7.97 0 0 1-1.93 5.212l-.72-2.16a3 3 0 0 0-2.846-2.051H5.496a3 3 0 0 0-2.846 2.051l-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.665.276L8 0Z",id:"up-btn_svg__b"}))),_g$d$1||(_g$d$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M14 5c7.732 0 14 6.268 14 14 0 3.728-1.457 7.116-3.834 9.625A6.967 6.967 0 0 1 20 30a6.976 6.976 0 0 1-2.799-.582 10.339 10.339 0 0 1-2.974 3.889l-.113.09-.114.088a10.34 10.34 0 0 1-3.201-4.068A6.963 6.963 0 0 1 8 30c-1.56 0-3.002-.51-4.166-1.374A13.954 13.954 0 0 1 0 19C0 11.268 6.268 5 14 5Z",fill:"url(#up-btn_svg__a)",transform:"translate(0 -5)"}),reactExports.createElement("g",{transform:"translate(6 1.5)"},reactExports.createElement("mask",{id:"up-btn_svg__d",fill:"#fff"},reactExports.createElement("use",{xlinkHref:"#up-btn_svg__b"})),reactExports.createElement("use",{fill:"#F2F2FF",xlinkHref:"#up-btn_svg__b"}),reactExports.createElement("circle",{fill:"#2468F2",filter:"url(#up-btn_svg__c)",mask:"url(#up-btn_svg__d)",cx:19,cy:-2,r:14}),reactExports.createElement("path",{d:"m8 0 .335.276a13.981 13.981 0 0 1 5.075 11.687c1.592 1.198 2.59 3.019 2.59 5.35a7.97 7.97 0 0 1-1.93 5.212l-.72-2.16a3 3 0 0 0-2.662-2.046l-.184-.005H5.496a3 3 0 0 0-2.783 1.879l-.063.172-.72 2.16A7.969 7.969 0 0 1 0 17.314c0-2.332.998-4.153 2.59-5.352A13.977 13.977 0 0 1 7.497.416L8 0Zm0 .647-.179.15a13.472 13.472 0 0 0-4.75 10.762l.018.372.017.268-.215.162C1.354 13.52.5 15.226.5 17.314c0 1.39.38 2.72 1.077 3.874l.178.28.425-1.275.069-.187a3.5 3.5 0 0 1 3.043-2.186l.204-.006h5.024l.198.006a3.5 3.5 0 0 1 3.04 2.205l.067.182.42 1.261.012-.017a7.459 7.459 0 0 0 1.236-3.818l.007-.32c0-1.992-.778-3.638-2.185-4.79l-.205-.16-.215-.163.016-.268A13.478 13.478 0 0 0 8.303.904L8 .647Z",fillOpacity:.7,fill:"url(#up-btn_svg__e)",mask:"url(#up-btn_svg__d)"})),reactExports.createElement("g",{transform:"translate(11 6.814)"},reactExports.createElement("mask",{id:"up-btn_svg__i",fill:"#fff"},reactExports.createElement("use",{xlinkHref:"#up-btn_svg__f"})),reactExports.createElement("use",{fill:"url(#up-btn_svg__g)",xlinkHref:"#up-btn_svg__f"}),reactExports.createElement("path",{fill:"#2468F2",filter:"url(#up-btn_svg__h)",mask:"url(#up-btn_svg__i)",d:"M3-3h6v6H3z"})),reactExports.createElement("path",{d:"M8 11.314a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm0 .5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z",fillOpacity:.7,fill:"url(#up-btn_svg__j)",transform:"translate(6 -4.5)"}))))},_path$e$1,_path2$1$1,_path3$h;function _extends$r$1(){return _extends$r$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$r$1.apply(null,arguments)}var SvgClear=function(x_){return reactExports.createElement("svg",_extends$r$1({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x_),_path$e$1||(_path$e$1=reactExports.createElement("path",{d:"M452.225 146.9 111.637 487.488a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L405.093 99.768a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132zm472.007 471.835L583.644 959.323a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.06 0-47.132L877.1 571.603a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.23 0 47.132zm-473.039 2.064L348.157 723.835a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131L404.06 573.667a33.223 33.223 0 0 1 47.132 0c13.073 13.073 13.073 34.23 0 47.132zm-152.749-95.812-74.654 74.654a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132l74.655-74.654a33.223 33.223 0 0 1 47.131 0c12.902 13.073 12.902 34.231 0 47.132zM545.285 772l-74.654 74.653a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.058 0-47.131l74.654-74.655a33.223 33.223 0 0 1 47.132 0 33.223 33.223 0 0 1 0 47.132z"})),_path2$1$1||(_path2$1$1=reactExports.createElement("path",{d:"M536.34 959.323 64.505 487.66a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0l471.835 471.835a33.223 33.223 0 0 1 0 47.132c-13.073 12.9-34.059 12.9-47.132-.172zM732.264 763.57 260.43 291.737a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.901 47.132 0L779.224 716.44a33.223 33.223 0 0 1 0 47.132c-12.901 13.073-34.059 12.9-46.96 0zm180.099-544.08L804.682 111.637a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.059-12.9 47.132 0l107.68 107.853a33.223 33.223 0 0 1 0 47.132c-13.072 13.073-34.23 13.073-47.131 0zM587.256 328.719 405.437 146.9a33.223 33.223 0 0 1 0-47.132c13.073-13.073 34.06-12.9 47.132 0L634.56 281.76a33.223 33.223 0 0 1 0 47.132c-13.073 12.901-34.23 12.901-47.304-.172zM877.1 618.563l-181.819-181.82a33.223 33.223 0 0 1 0-47.131c13.073-13.073 34.059-12.901 47.132 0l181.99 181.99a33.223 33.223 0 0 1 0 47.133c-13.072 12.9-34.23 12.9-47.303-.172z"})),_path3$h||(_path3$h=reactExports.createElement("path",{d:"M959.323 219.49 742.24 436.572a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.901-34.059 0-47.132L912.19 172.358a33.223 33.223 0 0 1 47.132 0c13.073 12.901 13.073 34.059 0 47.132zM851.642 111.637 634.388 328.72a33.223 33.223 0 0 1-47.132 0c-13.073-13.073-12.9-34.059 0-47.132L804.51 64.505a33.223 33.223 0 0 1 47.132 0c13.073 13.073 12.9 34.06 0 47.132z"})))},_g$c$1;function _extends$q$1(){return _extends$q$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$q$1.apply(null,arguments)}var SvgMergeIcon=function(x_){return reactExports.createElement("svg",_extends$q$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$c$1||(_g$c$1=reactExports.createElement("g",{fillRule:"evenodd"},reactExports.createElement("rect",{x:1,y:1,width:22,height:3,rx:1.5}),reactExports.createElement("rect",{x:1,y:7,width:22,height:3,rx:1.5}),reactExports.createElement("rect",{x:1,y:20,width:22,height:3,rx:1.5}),reactExports.createElement("path",{d:"m12.376 17.07 2.398-2.74a.5.5 0 0 0-.376-.83H9.602a.5.5 0 0 0-.376.83l2.398 2.74a.5.5 0 0 0 .752 0Z"}))))},_g$b$1;function _extends$p$1(){return _extends$p$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$p$1.apply(null,arguments)}var SvgCancelIcon=function(x_){return reactExports.createElement("svg",_extends$p$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$b$1||(_g$b$1=reactExports.createElement("g",{fillRule:"evenodd"},reactExports.createElement("path",{d:"M9 10.333v-3h12V4H9V1h13a2 2 0 0 1 2 2v5.333a2 2 0 0 1-1.85 1.995l-.15.005H9ZM2 1h7v3H0V3a2 2 0 0 1 2-2Z"}),reactExports.createElement("path",{d:"M2 1h1v9.333H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm0 12.667h1V23H2a2 2 0 0 1-2-2v-5.333a2 2 0 0 1 2-2ZM6 1h3v9.333H6zm0 12.667h3V23H6zm15 0h1a2 2 0 0 1 2 2V21a2 2 0 0 1-2 2h-1v-9.333Z"}),reactExports.createElement("path",{d:"M0 7.333h9v3H2a2 2 0 0 1-2-2v-1Zm9 6.334h13a2 2 0 0 1 2 2v1H9v-3Zm-7 0h7v3H0v-1a2 2 0 0 1 2-2ZM9 20h15v1a2 2 0 0 1-2 2H9v-3Zm-9 0h9v3H2a2 2 0 0 1-2-2v-1Z"}))))},_g$a$1;function _extends$o$1(){return _extends$o$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$o$1.apply(null,arguments)}var SvgCopyIcon=function(x_){return reactExports.createElement("svg",_extends$o$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$a$1||(_g$a$1=reactExports.createElement("g",{fillRule:"evenodd"},reactExports.createElement("rect",{x:1.5,y:7.5,width:15,height:14,rx:2}),reactExports.createElement("path",{d:"M6 2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4v-2.6h3v-12H9V6H6V2Z",fillRule:"nonzero"}))))},_g$9$1;function _extends$n$1(){return _extends$n$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$n$1.apply(null,arguments)}var SvgDeleteIcon=function(x_){return reactExports.createElement("svg",_extends$n$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$9$1||(_g$9$1=reactExports.createElement("g",{fillRule:"evenodd"},reactExports.createElement("path",{opacity:.66,d:"M11 9.5v9H8v-9zm5 0v9h-3v-9z"}),reactExports.createElement("path",{d:"M16 0a2 2 0 0 1 2 2v3h4.5a1.5 1.5 0 0 1 0 3H21v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8H1.5a1.5 1.5 0 0 1 0-3H6V2a2 2 0 0 1 2-2h8Zm2 8H6v12h12V8Zm-3-5H9v2h6V3Z",fillRule:"nonzero",opacity:.6}))))},_path$d$1;function _extends$m$1(){return _extends$m$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$m$1.apply(null,arguments)}var SvgFixed$1=function(x_){return reactExports.createElement("svg",_extends$m$1({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024","data-spm-anchor-id":"a1z1go8z.25060599.0.i11.71e369e4cItcn5",className:"icon"},x_),_path$d$1||(_path$d$1=reactExports.createElement("path",{d:"m750.848 28.928 245.248 242.944a66.048 66.048 0 1 1-93.184 93.184l-25.6-19.456-249.6 353.792 78.336 78.336a66.048 66.048 0 0 1-93.184 92.672l-460.8-464.64a66.048 66.048 0 0 1 93.184-93.184l76.8 78.336 354.048-249.856-18.176-18.944a66.048 66.048 0 1 1 93.184-93.184zM380.672 732.416l-91.904-90.88c-74.24 89.6-191.488 219.904-212.736 247.04a419.84 419.84 0 0 0-70.656 128 419.84 419.84 0 0 0 128-70.144c27.136-21.248 157.44-138.496 246.528-214.016z","data-spm-anchor-id":"a1z1go8z.25060599.0.i9.71e369e4cItcn5"})))},_path$c$1,_path2$h;function _extends$l$1(){return _extends$l$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$l$1.apply(null,arguments)}var SvgNoFixed$1=function(x_){return reactExports.createElement("svg",_extends$l$1({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024","data-spm-anchor-id":"a1z1go8z.25060599.0.i10.71e369e4cItcn5",className:"icon"},x_),_path$c$1||(_path$c$1=reactExports.createElement("path",{d:"M160.256 816.64C116.224 872.448 102.4 921.6 102.4 921.6s49.152-13.824 104.96-57.856c22.016-17.408 128-112.64 200.704-174.08l-73.728-73.728c-61.44 72.704-157.184 178.688-174.08 200.704zm488.448-607.232-206.336 145.92 226.304 226.304 145.92-206.336 15.872 15.872c20.992 20.992 54.784 20.992 75.776 0s20.992-54.784 0-75.776l-197.12-197.12c-20.992-20.992-54.784-20.992-75.776 0-20.992 20.992-20.992 54.784 0 75.776l15.36 15.36zm-400.896 125.44c-9.728 2.048-18.944 6.656-26.624 14.336-20.992 20.992-20.992 54.784 0 75.776L599.04 802.816c20.992 20.992 54.784 20.992 75.776 0 7.68-7.68 12.288-16.896 14.336-26.624L247.808 334.848z","data-spm-anchor-id":"a1z1go8z.25060599.0.i12.71e369e4cItcn5"})),_path2$h||(_path2$h=reactExports.createElement("path",{d:"M840.704 879.104c-9.728 0-19.456-3.584-27.136-11.264l-657.92-657.408c-14.848-14.848-14.848-39.424 0-54.272 14.848-14.848 39.424-14.848 54.272 0l657.92 657.92c14.848 14.848 14.848 39.424 0 54.272-7.168 7.168-16.896 10.752-27.136 10.752z","data-spm-anchor-id":"a1z1go8z.25060599.0.i13.71e369e4cItcn5"})))},_path$b$1;function _extends$k$1(){return _extends$k$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$k$1.apply(null,arguments)}var SvgEdit=function(x_){return reactExports.createElement("svg",_extends$k$1({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$b$1||(_path$b$1=reactExports.createElement("path",{d:"m11.536 3.05 1.414 1.414-7.778 7.779-1.395.019-.02-1.434zM9.414 4.464l2.122 2.122M1.5 14h13",fill:"none",stroke:"currentColor",strokeLinejoin:"round"})))},_path$a$1;function _extends$j$1(){return _extends$j$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$j$1.apply(null,arguments)}var SvgPlus=function(x_){return reactExports.createElement("svg",_extends$j$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$a$1||(_path$a$1=reactExports.createElement("path",{d:"M8.5 2v5.5H14v1H8.5V14h-1V8.5H2v-1h5.5V2h1Z",fill:"currentColor",fillRule:"evenodd"})))},_path$9$1;function _extends$i$1(){return _extends$i$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$i$1.apply(null,arguments)}var SvgUpArrow=function(x_){return reactExports.createElement("svg",_extends$i$1({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$9$1||(_path$9$1=reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M13.664 10.507 8.007 4.85 2.35 10.507",fill:"none"})))},_path$8$1;function _extends$h$1(){return _extends$h$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$h$1.apply(null,arguments)}var SvgDownArrow$1=function(x_){return reactExports.createElement("svg",_extends$h$1({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$8$1||(_path$8$1=reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"m2.35 5.497 5.657 5.657 5.657-5.657",fill:"none"})))},_path$7$1;function _extends$g$1(){return _extends$g$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$g$1.apply(null,arguments)}var SvgDeleteEasy=function(x_){return reactExports.createElement("svg",_extends$g$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$7$1||(_path$7$1=reactExports.createElement("path",{d:"M14.333 3.499V4.5H12.83l.001 10h-9v-10H2.332V3.499h12ZM11.831 4.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1Zm.001-5.999v.999h-4V1.5h4Z",fill:"currentColor",fillRule:"evenodd"})))},_path$6$1;function _extends$f$1(){return _extends$f$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$f$1.apply(null,arguments)}var SvgDeleteBold=function(x_){return reactExports.createElement("svg",_extends$f$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$6$1||(_path$6$1=reactExports.createElement("path",{d:"M12.833 2.499V3.5H11.33l.001 10h-9v-10H.832V2.499h12ZM10.331 3.5h-7v9h7v-9Zm-4.5 2.999v4h-1v-4h1Zm3 0v4h-1v-4h1ZM8.832.5v.999h-4V.5h4Z",fill:"currentColor",fillRule:"evenodd"})))},_path$5$1;function _extends$e$1(){return _extends$e$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$e$1.apply(null,arguments)}var SvgDragIcon=function(x_){return reactExports.createElement("svg",_extends$e$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$5$1||(_path$5$1=reactExports.createElement("path",{d:"M5.167 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-4 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z",fill:"#84868C",fillRule:"evenodd"})))},_g$8$1;function _extends$d$1(){return _extends$d$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$d$1.apply(null,arguments)}var SvgEventSetting=function(x_){return reactExports.createElement("svg",_extends$d$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$8$1||(_g$8$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M7.356 14H2.333c-.552 0-1-.504-1-1.125v-9.75c0-.621.448-1.125 1-1.125h11.334c.552 0 1 .504 1 1.125v4.522",stroke:"#151B26",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M1.333 3a1 1 0 0 1 1-1h11.334a1 1 0 0 1 1 1v3H1.333V3Z",stroke:"#151B26"}),reactExports.createElement("path",{d:"M3.333 3.333a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Zm2 0a.667.667 0 1 1 0 1.334.667.667 0 0 1 0-1.334Z",fill:"#151B26",fillRule:"nonzero"}),reactExports.createElement("g",{stroke:"#151B26",strokeLinejoin:"round"},reactExports.createElement("path",{d:"m13.192 14.017 1.5-2.5-1.5-2.5h-3l-1.5 2.5 1.5 2.5z"}),reactExports.createElement("path",{d:"M11.692 12.42a.912.912 0 0 0 .92-.903.912.912 0 0 0-.92-.903.912.912 0 0 0-.921.903c0 .498.412.903.92.903Z"})))))},_defs$2,_g$7$1;function _extends$c$1(){return _extends$c$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$c$1.apply(null,arguments)}var SvgBackUp=function(x_){return reactExports.createElement("svg",_extends$c$1({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon"},x_),_defs$2||(_defs$2=reactExports.createElement("defs",null,reactExports.createElement("linearGradient",{x1:"100%",y1:"101.089%",x2:"0%",y2:"-14.125%",id:"back-up_svg__c"},reactExports.createElement("stop",{stopColor:"#FFF",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#FFF8F8",offset:"46.533%"}),reactExports.createElement("stop",{stopColor:"#DDFEEB",offset:"100%"})),reactExports.createElement("linearGradient",{x1:"100%",y1:"51.269%",x2:"0%",y2:"48.407%",id:"back-up_svg__f"},reactExports.createElement("stop",{stopColor:"#FFF",offset:"0%"}),reactExports.createElement("stop",{stopColor:"#FFF8F8",offset:"46.533%"}),reactExports.createElement("stop",{stopColor:"#DDFEEB",offset:"100%"})),reactExports.createElement("filter",{x:"-24.3%",y:"-19.2%",width:"148.6%",height:"153.6%",filterUnits:"objectBoundingBox",id:"back-up_svg__a"},reactExports.createElement("feOffset",{dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),reactExports.createElement("feGaussianBlur",{stdDeviation:1,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),reactExports.createElement("feColorMatrix",{values:"0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0",in:"shadowBlurOuter1"})),reactExports.createElement("filter",{x:"-25%",y:"-125%",width:"150%",height:"450%",filterUnits:"objectBoundingBox",id:"back-up_svg__d"},reactExports.createElement("feOffset",{dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),reactExports.createElement("feGaussianBlur",{stdDeviation:1,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),reactExports.createElement("feColorMatrix",{values:"0 0 0 0 0.179423161 0 0 0 0 0.342133642 0 0 0 0 0.637515745 0 0 0 0.650991587 0",in:"shadowBlurOuter1"})),reactExports.createElement("rect",{id:"back-up_svg__e",x:0,y:0,width:14,height:2,rx:1}),reactExports.createElement("path",{d:"M15.962 12.004c.157.01.312.056.452.139l.101.07.095.082L23 18.322a1 1 0 0 1-1.32 1.498l-.094-.083-4.61-4.315.001 8.788c0 .466-.447.843-1 .843-.512 0-.935-.325-.993-.745l-.007-.098v-8.866l-4.372 4.393a1 1 0 0 1-1.497-1.32l.083-.095 6.004-6.027a.996.996 0 0 1 .648-.29h.119Z",id:"back-up_svg__b"}))),_g$7$1||(_g$7$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("rect",{fill:"#2468F2",width:32,height:32,rx:16}),reactExports.createElement("g",{fillRule:"nonzero"},reactExports.createElement("use",{fill:"#000",filter:"url(#back-up_svg__a)",xlinkHref:"#back-up_svg__b"}),reactExports.createElement("use",{fill:"url(#back-up_svg__c)",xlinkHref:"#back-up_svg__b"})),reactExports.createElement("g",{transform:"translate(9 7.702)",fillRule:"nonzero"},reactExports.createElement("use",{fill:"#000",filter:"url(#back-up_svg__d)",xlinkHref:"#back-up_svg__e"}),reactExports.createElement("use",{fill:"url(#back-up_svg__f)",xlinkHref:"#back-up_svg__e"})))))},_path$4$1;function _extends$b$1(){return _extends$b$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$b$1.apply(null,arguments)}var SvgDownArrow=function(x_){return reactExports.createElement("svg",_extends$b$1({viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$4$1||(_path$4$1=reactExports.createElement("path",{d:"m12.233 5-4.24 4.24L3.753 5l-.713.713 4.95 4.95.003-.003.003.003 4.95-4.95z"})))},_path$3$1;function _extends$a$1(){return _extends$a$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$a$1.apply(null,arguments)}var SvgSearch=function(x_){return reactExports.createElement("svg",_extends$a$1({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$3$1||(_path$3$1=reactExports.createElement("path",{d:"M7.5 12A4.505 4.505 0 0 1 3 7.5C3 5.019 5.019 3 7.5 3S12 5.019 12 7.5 9.981 12 7.5 12Zm6.294 1.089-2.071-2.07A5.482 5.482 0 0 0 13 7.5C13 4.468 10.533 2 7.5 2A5.506 5.506 0 0 0 2 7.5C2 10.532 4.467 13 7.5 13a5.475 5.475 0 0 0 3.516-1.274l2.071 2.071.707-.708Z",fill:"currentColor",fillRule:"evenodd"})))},_path$2$1;function _extends$9$1(){return _extends$9$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$9$1.apply(null,arguments)}var SvgEditorHelp=function(x_){return reactExports.createElement("svg",_extends$9$1({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$2$1||(_path$2$1=reactExports.createElement("path",{d:"m7.976 1 .241.003A7 7 0 1 1 7.977 1Zm.004 1-.225.005A6 6 0 1 0 7.98 2Zm.03 8.8a.6.6 0 1 1 .004 1.2.6.6 0 0 1-.005-1.2Zm-.024-6.787c1.3-.004 2.368 1.003 2.455 2.258l.007.18c.01.33-.07.742-.325 1.15-.258.414-.656.734-1.2.922l-.272.085c-.12.049-.144.159-.146.744v.407l-1 .003v-.296c.007-1.197.136-1.59.83-1.81l.12-.034c.406-.11.663-.3.82-.55.111-.18.16-.366.171-.51l.002-.102a1.453 1.453 0 0 0-2.9-.13l-.007.14-1 .002a2.453 2.453 0 0 1 2.445-2.46Z"})))},_g$6$1;function _extends$8$1(){return _extends$8$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$8$1.apply(null,arguments)}var SvgFixed=function(x_){return reactExports.createElement("svg",_extends$8$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$6$1||(_g$6$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643a.276.276 0 0 0 .275.301c.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Zm0 0-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z",fill:"currentColor",fillRule:"nonzero"}))))},_g$5$1;function _extends$7$1(){return _extends$7$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$7$1.apply(null,arguments)}var SvgNoFixed=function(x_){return reactExports.createElement("svg",_extends$7$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$5$1||(_g$5$1=reactExports.createElement("g",{fill:"none"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"m14.333 5.928-4.26-4.26a.572.572 0 0 0-.813 0L6.475 4.455A5.698 5.698 0 0 0 2.27 5.67a.574.574 0 0 0-.047.854l3.142 3.142-3.724 3.72a.273.273 0 0 0-.08.17l-.059.643a.276.276 0 0 0 .275.301c.009 0 .017 0 .026-.002l.643-.059a.273.273 0 0 0 .17-.079l3.724-3.724 3.14 3.141a.572.572 0 0 0 .855-.046 5.711 5.711 0 0 0 1.214-4.209l2.785-2.785a.573.573 0 0 0 0-.81Zm-3.667 2.718-.424.423.066.595a4.494 4.494 0 0 1-.526 2.661L3.678 6.217a4.471 4.471 0 0 1 2.66-.526l.595.066.424-.424 2.311-2.312 3.311 3.311-2.313 2.314Z",fill:"currentColor"}))))},_g$4$1;function _extends$6$1(){return _extends$6$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$6$1.apply(null,arguments)}var SvgRenderer=function(x_){return reactExports.createElement("svg",_extends$6$1({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$4$1||(_g$4$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h48v48H0z"}),reactExports.createElement("path",{d:"M16.701 16.702h5.848v5.848h-5.848zm8.755 0h5.848v5.848h-5.848zm-8.755 8.749h5.848v5.848h-5.848zm8.755 0h5.848v5.848h-5.848z",strokeWidth:1.25,stroke:"currentColor",strokeLinejoin:"round"}))))},_g$3$1;function _extends$5$1(){return _extends$5$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$5$1.apply(null,arguments)}var SvgOutline=function(x_){return reactExports.createElement("svg",_extends$5$1({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$3$1||(_g$3$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h48v48H0z"}),reactExports.createElement("g",{transform:"translate(14 14)"},reactExports.createElement("path",{d:"M0 0h20v20H0z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",d:"M3.121 5.625v11.25m0-6.25h2.5m-2.5 6.25h2.5"}),reactExports.createElement("circle",{fill:"currentColor",cx:3.125,cy:4.375,r:1.875}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round",d:"M8.747 3.125h8.728v2.5H8.747zm0 5.625h8.728v2.5H8.747zm0 5.625h8.728v2.5H8.747z"})))))},_g$2$1;function _extends$4$1(){return _extends$4$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4$1.apply(null,arguments)}var SvgCode$1=function(x_){return reactExports.createElement("svg",_extends$4$1({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$2$1||(_g$2$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h48v48H0z"}),reactExports.createElement("path",{d:"M14 14h20v20H14z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round",d:"M16.5 17.75h15v12.5h-15z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",d:"m25.709 20.841-3.362 6.284"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round",d:"m27.643 22.233 1.768 1.768-1.766 1.766m-7.063-3.534-1.768 1.768 1.766 1.766"}))))},_g$1$1;function _extends$3$1(){return _extends$3$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3$1.apply(null,arguments)}var SvgCommonConfig=function(x_){return reactExports.createElement("svg",_extends$3$1({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$1$1||(_g$1$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h20v20H0z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinejoin:"round",d:"m10 1.25 7.578 4.375v8.75L10 18.75l-7.578-4.375v-8.75z"}),reactExports.createElement("path",{stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",d:"m5.824 7.826 3.955 2.418m4.275-2.418-4.275 2.418m0 4.601v-4.601"}))))},_path$1$1;function _extends$2$1(){return _extends$2$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2$1.apply(null,arguments)}var SvgRightDoubleArrow=function(x_){return reactExports.createElement("svg",_extends$2$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_path$1$1||(_path$1$1=reactExports.createElement("path",{d:"m3.713 3.001 4.95 4.95-.003.003.003.003-4.95 4.95L3 12.194l4.24-4.24L3 3.714l.713-.713Zm3.997 0 4.95 4.948-.004.004.004.003-4.95 4.95-.713-.714 4.24-4.239-4.24-4.24L7.71 3Z",fill:"currentColor",fillRule:"evenodd"})))},_g$1N;function _extends$1$1(){return _extends$1$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1$1.apply(null,arguments)}var SvgSearchClear=function(x_){return reactExports.createElement("svg",_extends$1$1({xmlns:"http://www.w3.org/2000/svg",className:"icon"},x_),_g$1N||(_g$1N=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M6 12A6 6 0 1 1 6 0a6 6 0 0 1 0 12Z",fill:"currentColor"}),reactExports.createElement("path",{fill:"#FFF",d:"M8.475 4.232 6.707 6l1.768 1.768-.707.707L6 6.707 4.232 8.475l-.707-.707L5.293 6 3.525 4.232l.707-.707L6 5.293l1.768-1.768z"}))))},_path$C;function _extends$2n(){return _extends$2n=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2n.apply(null,arguments)}var SvgShortcut=function(x_){return reactExports.createElement("svg",_extends$2n({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x_),_path$C||(_path$C=reactExports.createElement("path",{d:"M32 160h960v704H32V160zm64 64v576h832V224H96zm64 160h96v64h-96v-64zm0-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm-32-96h64v64h-64v-64zm128 96h64v64h-64v-64zm96 0h96v64h-96v-64zm-128-96h64v64h-64v-64zm96 0h128v64H736v-64zM160 480h128v64H160v-64zm160 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h160v64H704v-64zm-544 96h160v64H160v-64zm192 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h64v64h-64v-64zm96 0h224v64H640v-64zm-480 96h128v64H160v-64zm576 0h128v64H736v-64zm-416 0h384v64H320v-64z",fill:"currentColor"})))};registerIcon("arrow-to-right",SvgArrowToRight),registerIcon("left-arrow-to-left",SvgLeftArrowToLeft),registerIcon("top-arrow-to-top",SvgTopArrowToTop),registerIcon("arrow-to-bottom",SvgArrowToBottom),registerIcon("collapse-open",SvgCollapseOpenIcon),registerIcon("harmmer",SvgHammer),registerIcon("dialog",SvgDialog),registerIcon("setting",SvgSetting),registerIcon("picker-icon",SvgPickerIcon),registerIcon("edit-full-btn",SvgEdit),registerIcon("event-setting",SvgEventSetting),registerIcon("add-btn",SvgPlus),registerIcon("close-btn",SvgUpArrow),registerIcon("open-btn-r",SvgDownArrow$1),registerIcon("delete-easy-btn",SvgDeleteEasy),registerIcon("delete-bold-btn",SvgDeleteBold),registerIcon("drag-six-circle-btn",SvgDragIcon),registerIcon("drag-btn",SvgDragBtn),registerIcon("more-btn",SvgMoreBtn),registerIcon("copy-btn",SvgCopyBtn),registerIcon("delete-btn",SvgDeleteBtn),registerIcon("up-btn",SvgUpBtn),registerIcon("clear-btn",SvgClear),registerIcon("open-btn",SvgDownArrow),registerIcon("merge-icon",SvgMergeIcon),registerIcon("cancel-icon",SvgCancelIcon),registerIcon("copy-icon",SvgCopyIcon),registerIcon("delete-icon",SvgDeleteIcon),registerIcon("fixed-icon",SvgFixed$1),registerIcon("no-fixed-icon",SvgNoFixed$1),registerIcon("editor-shortcut",SvgShortcut),registerIcon("display-inline",SvgDisplayInline),registerIcon("display-block",SvgDisplayBlock),registerIcon("display-inline-block",SvgDisplayInlineBlock),registerIcon("display-flex",SvgDisplayFlex),registerIcon("back-up",SvgBackUp),registerIcon("down-arrow",SvgDownArrow),registerIcon("editor-search",SvgSearch),registerIcon("editor-help",SvgEditorHelp),registerIcon("editor-fixed",SvgFixed),registerIcon("editor-no-fixed",SvgNoFixed),registerIcon("editor-renderer",SvgRenderer),registerIcon("editor-outline",SvgOutline),registerIcon("editor-code",SvgCode$1),registerIcon("editor-common-config",SvgCommonConfig),registerIcon("editor-double-arrow",SvgRightDoubleArrow),registerIcon("search-clear",SvgSearchClear);var SearchPanel=function(x_){function eme($P){var tme=x_.call(this,$P)||this;tme.ref=React__default.createRef(),tme.localStorageKey="amis-editor-search-panel",tme.curTagFolded={},$P.searchPanelUUID&&(tme.localStorageKey=$P.searchPanelUUID);var ame=[],nme={};if($P.allResult&&$P.allResult.length>0){var rme=tme.getResultTags($P.allResult);ame=rme.curResultTags,nme=rme.curResultByTag}return tme.state={resultTags:ame,resultByTag:nme,curKeyword:$P.externalKeyword||"",searchResult:[],searchResultByTag:{},visible:!1,curKeywordSearchHistory:tme.getSearchHistory(),toggleTagFolderStatus:!0},tme}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){var $P,tme;!((tme=($P=this.ref.current)===null||$P===void 0?void 0:$P.childNodes[0])===null||tme===void 0)&&tme.childNodes[0]&&(this.curInputBox=this.ref.current.childNodes[0].childNodes[0],this.curInputBox.addEventListener("keyup",this.bindEnterEvent))},eme.prototype.componentWillUnmount=function(){this.curInputBox&&this.curInputBox.removeEventListener("keyup",this.bindEnterEvent)},eme.prototype.UNSAFE_componentWillReceiveProps=function($P){var tme=this,ame=$P.externalKeyword,nme=$P.allResult;if(ame!==this.state.curKeyword&&this.setState({curKeyword:ame},function(){tme.groupedResultByKeyword(ame)}),nme!==this.props.allResult){var rme=[],ime={};if(nme&&nme.length>0){var ome=this.getResultTags(nme);rme=ome.curResultTags,ime=ome.curResultByTag}this.setState({resultTags:rme,resultByTag:ime})}},eme.prototype.getSearchHistory=function(){var $P=[];if(window.localStorage){var tme=window.localStorage.getItem(this.localStorageKey);if(tme){var ame=JSON.parse(tme);ame&&Array.isArray(ame)&&($P=ame)}}return $P},eme.prototype.getResultTags=function($P){var tme=[],ame={},nme=this.props.tagKey||"tags";return $P.forEach(function(rme){!isString$8(rme)&&rme[nme]&&(Array.isArray(rme[nme])?rme[nme].concat():rme[nme]?[rme[nme]]:[i18n("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach(function(ime){tme.indexOf(ime)<0&&tme.push(ime),ame[ime]||(ame[ime]=[]),ame[ime].push(rme)})}),{curResultTags:tme,curResultByTag:ame}},eme.prototype.groupedResultByKeyword=function($P){$P===void 0&&($P="");var tme=this.props.allResult,ame=[],nme={},rme=$P||this.state.curKeyword,ime=this.props.tagKey||"tags";if(rme&&new RegExp(stringRegExp(rme),"i"),tme.length&&isString$8(tme[0]))matchSorter(tme,$P).forEach(function(lme){ame.push(lme)});else{var ome=new Map;matchSorter(tme,$P,{keys:["name","description","scaffold.type","searchKeywords"]}).forEach(function(lme){ome.set(lme.id,lme)}),tme.forEach(function(lme){ome.has(lme.id)&&(lme[ime]?(Array.isArray(lme[ime])?lme[ime].concat():lme[ime]?[lme[ime]]:[i18n("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach(function(sme){nme[sme]=nme[sme]||[],nme[sme].push(lme)}):ame.push(lme))})}this.setState({searchResult:ame,searchResultByTag:nme})},eme.prototype.bindFocusEvent=function(){this.setState({visible:!0})},eme.prototype.bindBlurEvent=function(){var $P=this,tme=this.state.curKeyword;this.setState({visible:!1},function(){tme&&$P.addSearchHistory(tme),$P.props.onChange(tme)})},eme.prototype.updateCurKeyword=function($P){var tme=this,ame=$P;ame=ame&&ame.trim(),this.setState({curKeyword:ame},function(){tme.groupedResultByKeyword(ame),tme.props.immediateChange&&tme.props.onChange(ame)})},eme.prototype.changeTagFoldStatus=function($P,tme){tme.preventDefault(),tme.stopPropagation(),this.curInputBox.focus(),this.curTagFolded[$P]=!this.curTagFolded[$P],this.setState({toggleTagFolderStatus:!this.state.toggleTagFolderStatus})},eme.prototype.bindEnterEvent=function($P){var tme=this;$P.preventDefault();var ame=this.state.curKeyword;($P==null?void 0:$P.keyCode)===13&&this.setState({visible:!1},function(){tme.addSearchHistory(ame),tme.props.onChange(ame)})},eme.prototype.bindClearActionEvent=function(){var $P=this;this.setState({curKeyword:"",searchResult:[],searchResultByTag:{}},function(){$P.props.onChange("")})},eme.prototype.bindTagClickEvent=function($P){var tme,ame=this,nme=this.state.resultByTag[$P];this.setState({visible:!1,curKeyword:$P,searchResult:nme,searchResultByTag:(tme={},tme[$P]=nme,tme)},function(){ame.props.onTagChange&&ame.props.onTagChange($P)})},eme.prototype.addSearchHistory=function($P){var tme=this.state.curKeywordSearchHistory;tme.indexOf($P)>-1||(tme.length===10&&tme.shift(),tme.push($P),this.updateSearchHistory())},eme.prototype.clickKeywordEvent=function($P){var tme=this;this.setState({visible:!1,curKeyword:$P},function(){tme.groupedResultByKeyword($P),tme.props.onChange($P)})},eme.prototype.deleteSearchHistory=function($P,tme){$P.preventDefault(),$P.stopPropagation(),this.curInputBox.focus();var ame=this.state.curKeywordSearchHistory,nme=ame.indexOf(tme);ame.splice(nme,1),this.updateSearchHistory()},eme.prototype.clearSearchHistory=function($P){var tme=this;$P.preventDefault(),$P.stopPropagation(),this.curInputBox.focus();var ame=this.state.curKeywordSearchHistory;ame&&ame.length>0&&this.setState({curKeywordSearchHistory:[]},function(){tme.updateSearchHistory()})},eme.prototype.updateSearchHistory=function(){if(window.localStorage){var $P=this.state.curKeywordSearchHistory;window.localStorage.setItem(this.localStorageKey,JSON.stringify($P))}},eme.prototype.renderNameByKeyword=function($P,tme){if(tme&&~$P.indexOf(tme)){var ame=$P.indexOf(tme),nme=ame+tme.length;return React__default.createElement("span",null,$P.substring(0,ame),React__default.createElement("span",{className:"is-keyword"},tme),$P.substring(nme))}return $P},eme.prototype.resultIsHasScroll=function($P,tme){var ame=this,nme=0;return($P?Object.keys($P):[]).map(function(rme){ame.curTagFolded[rme]?nme+=1:nme+=$P[rme].length+1}),nme>tme},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.allResult,nme=tme.closeAutoComplete,rme=tme.immediateChange,ime=this.state,ome=ime.resultTags,lme=ime.curKeyword,sme=ime.searchResult,cme=ime.searchResultByTag,dme=ime.visible,ume=cme?Object.keys(cme):[],fme=__spreadArray([],__read$3(this.state.curKeywordSearchHistory),!1).reverse(),pme=!1;return dme&&ame&&ame.length>0&&(pme=!0),nme&&lme&&(pme=!1),nme&&(!ome||ome&&ome.length===0)&&(!fme||fme&&fme.length===0)&&(pme=!1),React__default.createElement("div",{className:"editor-InputSearch-panel",ref:this.ref},React__default.createElement(InputBox$1,{className:"editor-InputSearch",value:lme,onChange:this.updateCurKeyword,placeholder:i18n("2168c5735883bd040eaf09909d0911b8"),clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},React__default.createElement(React__default.Fragment,null,rme&&(lme?React__default.createElement(Icon$1,{icon:"search-clear",className:"icon delete-btn-icon",onClick:this.bindClearActionEvent}):React__default.createElement(Icon$1,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})),!rme&&React__default.createElement(React__default.Fragment,null,lme&&React__default.createElement(Icon$1,{icon:"search-clear",className:"icon delete-btn-icon margin-right",onClick:this.bindClearActionEvent}),React__default.createElement(Icon$1,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})))),React__default.createElement("div",{className:"editor-InputSearch-content ".concat(pme?"":"hidden-status")},!lme&&fme&&fme.length>0&&React__default.createElement("div",{className:"search-history ".concat(ome&&ome.length>0?"has-border-bottom":"")},React__default.createElement("div",{className:"header"},React__default.createElement("div",{className:"header-title"},i18n("e9c38f88375807704270aa3572454976")),React__default.createElement("div",{className:"header-clear-icon",onClick:function(hme){return $P.clearSearchHistory(hme)}},i18n("288f0c404c4e546aa3683ff5054e85e2"))),React__default.createElement("div",{className:"history-cont ".concat(fme.length>6?"hasScrollBtn":"")},fme.map(function(hme,bme){return React__default.createElement("div",{className:"history-item",key:"".concat(hme,"-").concat(bme),onClick:function(){return $P.clickKeywordEvent(hme)}},React__default.createElement("div",{className:"history-keyword"},hme),React__default.createElement("div",{className:"delete-icon",title:i18n("4b9bc9abf2a2beb3772d903a3d01d1de")},React__default.createElement(Icon$1,{icon:"close",onClick:function(mme){return $P.deleteSearchHistory(mme,hme)}})))}))),lme&&sme.length===0&&ume.length===0&&React__default.createElement("div",{className:"search-result-list"},React__default.createElement("div",{className:"search-result-placeholder"},i18n("9d3128a1675de32cdd290b31140a7290"))),lme&&sme.length>0&&React__default.createElement("div",{className:"search-result-list ".concat(sme.length>6?"hasScrollBtn":"")},sme.length>1&&React__default.createElement("div",{className:"subRenderers-list only-one-tag"},sme.map(function(hme,bme){return React__default.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(bme),onClick:function(){return $P.clickKeywordEvent(hme.name)}},hme.name||hme.type)}))),lme&&ume.length>0&&React__default.createElement("div",{className:"search-result-list ".concat(this.resultIsHasScroll(cme,6)?"hasScrollBtn":"")},ume.length>1&&ume.map(function(hme,bme){return React__default.createElement("div",{className:"multiple-subRenderers-list",key:"".concat(hme,"-subRenderers-list")},React__default.createElement("div",{className:cx$1("subRenderers-header",{"is-folded":!!$P.curTagFolded[hme]}),title:$P.curTagFolded[hme]?i18n("e4cefe7df36e92da1d7e875b92655507"):i18n("7ae451de83aa6f5f140e941904377391"),onClick:function(mme){$P.changeTagFoldStatus(hme,mme)}},hme,React__default.createElement(Icon$1,{icon:"right-arrow-bold"})),React__default.createElement("div",{className:cx$1("subRenderers-list",{"is-folded":!!$P.curTagFolded[hme]})},cme[hme]&&cme[hme].map(function(mme,vme){return React__default.createElement("div",{className:"subRenderers-item",key:vme,onClick:function(){return $P.clickKeywordEvent(mme.name)}},$P.renderNameByKeyword(mme.name,lme))})))}),ume.length===1&&ume.map(function(hme,bme){return React__default.createElement("div",{className:"subRenderers-list only-one-tag",key:"subRenderers-tag-".concat(hme)},cme[hme]&&cme[hme].map(function(mme,vme){return React__default.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(vme),onClick:function(){return $P.clickKeywordEvent(mme.name)}},mme.name||mme.type)}))})),!lme&&ome&&ome.length>0&&React__default.createElement("div",{className:"tag-list"},React__default.createElement("div",{className:"header"},i18n("accb901a02b1415b40d95cdd31b8da1d")),React__default.createElement("div",{className:"tag-list-cont"},ome.length?ome.map(function(hme,bme){return React__default.createElement("div",{className:"tag-item",key:"".concat(hme,"-").concat(bme),onClick:function(){return $P.bindTagClickEvent(hme)}},hme)}):null))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getSearchHistory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"bindFocusEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"bindBlurEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"updateCurKeyword",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"changeTagFoldStatus",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"bindEnterEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"bindClearActionEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"bindTagClickEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"addSearchHistory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"clickKeywordEvent",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",void 0)],eme.prototype,"deleteSearchHistory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearchHistory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"updateSearchHistory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],eme.prototype,"renderNameByKeyword",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"resultIsHasScroll",null),eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),SearchRendererPanel=function(x_){function eme($P){var tme=x_.call(this,$P)||this;tme.localStorageKey="amis-editor-renderer-search-history";var ame=$P.store.subRenderersByOrder;ame=ame.filter(function(ome){return!ome.disabledRendererPlugin});var nme=$P.store,rme=nme.subRenderersKeywords,ime=nme.subRenderersTag;return tme.state={subRenderersByOrder:ame,defaultKeyword:rme||ime||""},tme.lastSubRenderersTag=$P.store.subRenderersTag,tme.changeSubRenderersTag=tme.changeSubRenderersTag.bind(tme),tme}return __extends$2(eme,x_),eme.prototype.UNSAFE_componentWillReceiveProps=function($P){var tme=$P.store.subRenderersTag,ame=$P.store.subRenderersKeywords;tme===this.lastSubRenderersTag||ame||(this.lastSubRenderersTag=tme,this.setState({defaultKeyword:tme}))},eme.prototype.changeSubRenderersTag=function($P){this.lastSubRenderersTag=$P,this.props.store.changeSubRenderersTag($P)},eme.prototype.render=function(){var $P=this.state,tme=$P.subRenderersByOrder,ame=$P.defaultKeyword,nme=this.props.store.changeSubRenderersKeywords;return React__default.createElement(SearchPanel,{allResult:tme,externalKeyword:ame,searchPanelUUID:this.localStorageKey,onChange:nme,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})},eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),SearchCustomRendererPanel=function(x_){function eme($P){var tme=x_.call(this,$P)||this;tme.localStorageKey="amis-editor-custom-renderer-search-history";var ame=$P.store.customRenderersByOrder;ame=ame.filter(function(ome){return!ome.disabledRendererPlugin});var nme=$P.store,rme=nme.customRenderersKeywords,ime=nme.customRenderersTag;return tme.state={customRenderersByOrder:ame,defaultKeyword:rme||ime||""},tme}return __extends$2(eme,x_),eme.prototype.render=function(){var $P=this.state,tme=$P.customRenderersByOrder,ame=$P.defaultKeyword,nme=this.props.store,rme=nme.changeCustomRenderersKeywords,ime=nme.changeCustomRenderersTag;return tme&&tme.length>0?React__default.createElement(SearchPanel,{allResult:tme,externalKeyword:ame,immediateChange:!0,closeAutoComplete:!0,searchPanelUUID:this.localStorageKey,onChange:rme,onTagChange:ime}):null},eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),RenderersPanel=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={toggleCollapseFolderStatus:!1},$P.curCollapseFolded={},$P}return __extends$2(eme,x_),eme.prototype.handleRegionFilterClick=function($P){var tme=$P.currentTarget.getAttribute("data-value"),ame=this.props,nme=ame.store,rme=ame.manager;tme=tme===nme.subRendererRegion?"":tme,rme.switchToRegion(tme)},eme.prototype.handleDragStart=function($P,tme){var ame=$P.currentTarget.getAttribute("data-id");$P.dataTransfer.setData('dnd-dom/[data-id="'.concat(ame,'"]'),"")},eme.prototype.handleClick=function($P){var tme=$P.currentTarget.getAttribute("data-dnd-id");this.props.manager.addElem(tme)},eme.prototype.changeCollapseFoldStatus=function($P,tme){this.curCollapseFolded[$P]=!this.curCollapseFolded[$P],this.setState({toggleCollapseFolderStatus:!this.state.toggleCollapseFolderStatus}),tme.preventDefault(),tme.stopPropagation()},eme.prototype.renderThumb=function($P){var tme=this.props.manager;return $P?render$2($P,{onAction:noop},tme.env):React__default.createElement("p",null,i18n("c44c6c179c44e794b103053886847dc4"))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.store,nme=tme.searchRendererType,rme=tme.className,ime=tme.testIdBuilder,ome=this.props.groupedRenderers||{},lme=Object.keys(ome);return React__default.createElement("div",{className:cx$1("ae-RendererList",rme)},nme==="renderer"&&React__default.createElement(SearchRendererPanel,{store:ame}),nme==="custom-renderer"&&React__default.createElement(SearchCustomRendererPanel,{store:ame}),React__default.createElement("hr",{className:"margin-top"}),React__default.createElement("div",{className:"ae-RendererList-groupWrap hoverShowScrollBar"},lme.length?lme.map(function(sme,cme){var dme=ome[sme];return dme&&dme.length?React__default.createElement(React__default.Fragment,{key:sme},React__default.createElement("div",{key:"".concat(sme,"-head"),className:"ae-RendererList-head collapse-header",onClick:function(ume){$P.changeCollapseFoldStatus(sme,ume)}},sme,React__default.createElement("div",{className:cx$1("expander-icon",{"is-folded":!!$P.curCollapseFolded[sme]}),title:$P.curCollapseFolded[sme]?i18n("e4cefe7df36e92da1d7e875b92655507"):i18n("7ae451de83aa6f5f140e941904377391")},React__default.createElement(Icon$1,{icon:"right-arrow-bold"}))),React__default.createElement("div",{key:"".concat(sme,"-content"),className:cx$1("ae-RendererList-group collapse-content",{"is-folded":!!$P.curCollapseFolded[sme]})},dme.map(function(ume){var fme="".concat(cme,"_").concat(ume.id),pme=isHasPluginIcon(ume),hme="editor-renderer-".concat(ume.plugin.rendererName);return React__default.createElement("div",__assign$3({key:fme,className:"ae-RendererList-item",draggable:!0,"data-id":fme,"data-dnd-type":"subrenderer","data-dnd-id":ume.id,"data-dnd-data":JSON.stringify(ume.scaffold||{type:ume.type}),onDragStart:function(bme){return $P.handleDragStart(bme,ume.name)}},ime==null?void 0:ime.getChild(hme).getTestId()),React__default.createElement("div",{className:"icon-box","data-dnd-id":ume.id,title:"点击添加「".concat(ume.name,"」"),onClick:$P.handleClick},pme&&React__default.createElement(Icon$1,{icon:ume.pluginIcon}),!pme&&React__default.createElement("i",{className:cx$1("fa-fw",ume.icon||"fa fa-circle-thin")})),React__default.createElement("div",{className:"ae-RendererInfo","data-dnd-id":ume.id,onClick:$P.handleClick},ume.name),React__default.createElement(TooltipWrapper$1,{tooltipClassName:"ae-RendererThumb",trigger:"hover",rootClose:!0,placement:"right",tooltip:{offset:[10,0],children:function(){return React__default.createElement("div",null,React__default.createElement("div",{className:"ae-Renderer-title"},ume.name),ume.description||ume.docLink?React__default.createElement("div",{className:"ae-Renderer-info"},React__default.createElement(Html$1,{html:ume.description?ume.description:""}),ume.docLink&&React__default.createElement("a",{target:"_blank",href:ame.amisDocHost+ume.docLink},i18n("f26225bde6a250894a04db4c53ea03d0"))):null,React__default.createElement("div",{className:"ae-Renderer-preview"},$P.renderThumb(ume.previewSchema)))}}},React__default.createElement("div",{className:"ae-RendererIcon"},React__default.createElement(Icon$1,{icon:"editor-help",className:"icon"}))))}))):null}):React__default.createElement("span",null,i18n("b797a8992ef41320919e45a069f2b459"))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleRegionFilterClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragStart",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"changeCollapseFoldStatus",null),eme=__decorate$1([observer],eme)}(React__default.Component),AvailableRenderersPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.handleSelect=function($P){$P&&this.props.store.changeRenderersTabsKey($P)},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.manager,nme=$P.children,rme=tme.renderersTabsKey||"base-renderers",ime=tme.theme,ome=tme.customRenderersByOrder||[],lme=tme.groupedSubRenderers||{},sme=tme.groupedCustomRenderers||{};return React__default.createElement("div",{className:"ae-RendererPanel"},React__default.createElement("div",{className:"panel-header"},i18n("bb79667f37035e9562ec6bcffd6cf8ef")),React__default.createElement("div",{className:"ae-RendererPanel-content"},typeof nme=="function"?nme(this.props):nme,tme.showCustomRenderersPanel&&ome.length>0&&React__default.createElement(ThemedTabs,{theme:ime,tabsMode:"line",className:"ae-RendererList-tabs",linksClassName:"ae-RendererList-tabs-header",contentClassName:"ae-RendererList-tabs-content",activeKey:rme,onSelect:this.handleSelect},React__default.createElement(Tab$1,{key:"base-renderers",eventKey:"base-renderers",title:i18n("5cb297585d4c81bb8fdbd31210a30d6f"),className:"ae-RendererList-tabs-panel base-renderers",mountOnEnter:!0,unmountOnExit:!1},React__default.createElement(RenderersPanel,{groupedRenderers:lme,store:tme,manager:ame,searchRendererType:"renderer"})),React__default.createElement(Tab$1,{key:"custom-renderers",eventKey:"custom-renderers",title:i18n("6fce1c9aa3654ae2f0eedcc068a7e189"),className:"ae-RendererList-tabs-panel custom-renderers",mountOnEnter:!0,unmountOnExit:!1},React__default.createElement(RenderersPanel,{groupedRenderers:sme,store:tme,manager:ame,searchRendererType:"custom-renderer"}))),(!tme.showCustomRenderersPanel||Object.keys(sme).length<1)&&React__default.createElement(RenderersPanel,{className:"only-base-component",groupedRenderers:lme,store:tme,manager:ame,searchRendererType:"renderer"})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),eme=__decorate$1([observer],eme)}(React__default.Component),EditorNode=types.model("EditorNode",{parentId:"",parentRegion:"",isCommonConfig:!1,isFormConfig:!1,id:"",type:"",label:"",regionInfo:types.maybe(types.frozen()),path:"",schemaPath:"",region:"",preferTag:"",state:types.optional(types.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,dialogTitle:"",dialogType:"",children:types.optional(types.array(types.late(function(){return EditorNode})),[])}).volatile(function(){return{getData:types.frozen()}}).views(function(x_){var eme,$P;return{get info(){return eme},getNodeById:function(tme,ame){for(var nme=x_.children.concat(),rme=void 0;nme.length;){var ime=nme.shift();if(ime.id===tme&&(!ame||ime.region===ame||ime.type===ame)){rme=ime;break}ime.children.length&&nme.push.apply(nme,ime.uniqueChildren)}return rme},getNodeByComponentId:function(tme){for(var ame=x_.children.concat(),nme=void 0;ame.length;){var rme=ame.shift(),ime=rme.schema;if(ime&&ime.id===tme){nme=rme;break}rme.children.length&&ame.push.apply(ame,rme.uniqueChildren)}return nme},setInfo:function(tme){eme=tme},updateSharedContext:function(tme){tme&&(eme!=null&&eme.hasOwnProperty("sharedContext"))&&(eme.sharedContext=tme)},get rendererConfig(){return $P},setRendererConfig:function(tme){$P=tme},get isVitualRenderer(){return!!~x_.memberIndex},get clickable(){var tme,ame;return((tme=this.info)===null||tme===void 0?void 0:tme.editable)!==!1||!(!((ame=this.info)===null||ame===void 0)&&ame.hostId)},get draggable(){var tme;return!(!this.moveable||((tme=this.info)===null||tme===void 0?void 0:tme.draggable)===!1)},get moveable(){var tme,ame;return!(this.isRegion||((tme=this.info)===null||tme===void 0?void 0:tme.movable)===!1||!Array.isArray(this.schemaParent)||!((ame=this.host)===null||ame===void 0)&&ame.memberImmutable(this.parent.region))},get canMoveUp(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.prevSibling)},get canMoveDown(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.nextSibling)},get removable(){var tme;return!(this.isRegion||((tme=this.info)===null||tme===void 0?void 0:tme.removable)===!1||!Array.isArray(this.schemaParent)||!this.host||this.host.memberImmutable(this.parent.region))},get duplicatable(){var tme;return!(this.isRegion||((tme=this.info)===null||tme===void 0?void 0:tme.duplicatable)===!1||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get replaceable(){var tme;return!this.isRegion&&((tme=this.info)===null||tme===void 0?void 0:tme.replaceable)!==!1},memberImmutable:function(tme){var ame,nme;return!!(((ame=this.info)===null||ame===void 0?void 0:ame.memberImmutable)===!0||Array.isArray((nme=this.info)===null||nme===void 0?void 0:nme.memberImmutable)&&~this.info.memberImmutable.indexOf(tme))},get isRegion(){return!!x_.region},get childRegions(){var tme,ame,nme=this.uniqueChildren.filter(function(ime,ome,lme){return ime.isRegion});if(!((tme=this.info)===null||tme===void 0)&&tme.multifactor){var rme=this.sameIdChild;(ame=rme==null?void 0:rme.childRegions)===null||ame===void 0||ame.forEach(function(ime){return nme.push(ime)})}return nme},get uniqueChildren(){var tme=[],ame={};if(x_.children.forEach(function(rme){var ime=rme.isRegion?"".concat(rme.region,"-").concat(rme.id):rme.id;ame[ime]||(ame[ime]=!0,tme.push(rme))}),Array.isArray(this.schema)){var nme=this.schema.map(function(rme){return rme==null?void 0:rme.$$id}).filter(function(rme){return rme});tme=tme.sort(function(rme,ime){return nme.indexOf(rme.id)-nme.indexOf(ime.id)})}return tme},get sameIdChild(){var tme;return(tme=this.uniqueChildren)===null||tme===void 0?void 0:tme.find(function(ame){return!ame.isRegion&&ame.id===x_.id})},get singleRegion(){return!(this.uniqueChildren.length!==1||!this.uniqueChildren[0].isRegion)},isExists:function(tme){return x_.children.some(function(ame){return ame.id===tme})},getChildById:function(tme){return x_.children.find(function(ame){return ame.id===tme})},get parent(){try{var tme=getParent(x_,2);return(tme==null?void 0:tme.id)!=="root"?tme:null}catch{return null}},get ancestorField(){var tme,ame,nme,rme,ime=getParent(x_,4);if((ime==null?void 0:ime.id)==="root")return null;var ome=(ame=(tme=ime==null?void 0:ime.getComponent())===null||tme===void 0?void 0:tme.props)!==null&&ame!==void 0?ame:{},lme=(nme=ome==null?void 0:ome.body)!==null&&nme!==void 0?nme:[],sme=Object.keys((rme=ome==null?void 0:ome.data)!==null&&rme!==void 0?rme:{});return uniq$1(__spreadArray(__spreadArray([],__read$3(lme.map(function(cme){var dme;return(dme=cme==null?void 0:cme.name)!==null&&dme!==void 0?dme:""})),!1),__read$3(sme),!1))},get host(){var tme=x_.parent;return tme!=null&&tme.isRegion&&(tme=tme.parent),tme},get firstChild(){var tme=x_;if(!tme.children.length)return null;for(var ame=tme.children[0];ame;){if(!ame.isRegion&&ame.id!==tme.id)return ame;ame=ame.children.length?ame.children[0]:null}return null},get index(){return this.parent.uniqueChildren.indexOf(x_)},get prevSibling(){for(var tme=this.parent.uniqueChildren,ame=tme.indexOf(x_)-1;ame>=0&&tme[ame];){if(tme[ame].id!==x_.id)return tme[ame];ame--}return null},get nextSibling(){for(var tme=this.parent.uniqueChildren,ame=tme.length,nme=tme.indexOf(x_)+1;nme<ame&&tme[nme];){if(tme[nme].id!==x_.id)return tme[nme];nme++}return null},get schema(){if(!isAlive(x_))return null;var tme=getRoot(x_).getSchema(x_.id);return this.isRegion&&tme?tme[x_.region]:tme},get schemaParent(){var tme=getRoot(x_);return this.isRegion?tme.getSchema(x_.id):tme.getSchemaParentById(x_.id)},get isSecondFactor(){var tme;return((tme=this.parent)===null||tme===void 0?void 0:tme.id)===x_.id}}}).actions(function(x_){function eme(ame,nme){var rme=!1,ime={};if(ame)return nme.forEach(function(ome){var lme=ome.split(".");ome=lme.shift();var sme=ame[ome];if(typeof sme=="string")return rme=!0,void(ime[ome]=[JSONPipeIn({type:"tpl",tpl:sme,wrapperComponent:"",inline:!1})]);if(Array.isArray(sme)){var cme=!1,dme=sme.map(function(ume){if(typeof ume=="string"&&ume)return cme=!0,JSONPipeIn({type:"tpl",tpl:ume,wrapperComponent:"",inline:!1});if(lme.length){var fme=eme(ume,[lme.join(".")]);fme!==ume&&(cme=!0,ume=fme)}return ume});cme&&(rme=!0,ime[ome]=dme)}else sme&&(ime[ome]=[JSONPipeIn(sme)],rme=!0)}),rme&&(ame=__assign$3(__assign$3({},ame),ime)),ame}function $P(ame){var nme=Array.isArray(ame)?ame:ame?[ame]:[];if(nme.length){var rme=getRoot(x_).getIframe(),ime=getRoot(x_).getLayer().getBoundingClientRect(),ome=function(dme){for(var ume=dme.concat(),fme=ume.shift(),pme=fme.getBoundingClientRect(),hme={left:pme.left,top:pme.top,width:pme.width,height:pme.height,right:pme.right,bottom:pme.bottom},bme=fme.parentElement.closest(".ae-Preview-inner,[data-region]");ume.length;){var mme=ume.shift(),vme=mme.getBoundingClientRect(),gme=mme.parentElement.closest(".ae-Preview-inner,[data-region],[data-editor-id]");if(!bme&&gme)bme=gme;else if(gme&&bme&&gme!==bme)continue;hme.left=Math.min(hme.left,vme.left),hme.top=Math.min(hme.top,vme.top),hme.right=Math.max(hme.right,vme.right),hme.bottom=Math.max(hme.bottom,vme.bottom),hme.width=hme.right-hme.left,hme.height=hme.bottom-hme.top}return hme}(nme),lme={left:ome.left-ime.left,top:ome.top-ime.top};if(rme){var sme=rme.getBoundingClientRect();lme.left+=sme.left,lme.top+=sme.top}var cme=ome.height;cme&&(x_.x=lme.left+0,x_.y=lme.top+0,x_.w=ome.width,x_.h=cme)}}var tme;return{getClosestParentByType:function(ame){for(var nme=x_;nme===nme.parent;){if(nme.schema.type===ame)return nme;if(nme.id==="root")return;nme=nme.parent}},getParentNodeByCB:function(ame){var nme=x_;if(!ame||typeof ame!="function")return nme;for(;nme&&!ame(nme);){if(nme.id==="root")return nme;nme=nme.parent}return nme},updateIsCommonConfig:function(ame){x_.isCommonConfig=!!ame},updateIsFormConfig:function(ame){x_.isFormConfig=!!ame},addChild:function(ame){x_.children.push(__assign$3(__assign$3({},ame),{parentId:x_.id,parentRegion:x_.region}));var nme=x_.children[x_.children.length-1];return nme.setInfo(ame.info),nme},removeChild:function(ame){var nme=x_.children.findIndex(function(rme){return rme===ame});x_.children[nme]&&x_.children.splice(nme,1)},toggleFold:function(ame){ame.stopPropagation(),ame.preventDefault(),x_.folded=!x_.folded},patch:function(ame,nme,rme,ime){var ome,lme;if(nme===void 0&&(nme=!1),!x_.patched||nme){x_.patched=!0;var sme=ame,cme=x_.info;if(cme.editable!==!1){var dme=sme.getSchema(cme.id),ume=dme;ume!=null&&ume.id||(ume=__assign$3(__assign$3({},ume),{id:"u:"+guid()})),ime!=null&&ime.has(ume.id)&&(ime==null?void 0:ime.get(ume.id))!==x_.schemaPath&&(ume=__assign$3(__assign$3({},ume),{id:"u:"+guid()})),(Array.isArray(cme.regions)&&cme.regions.length||Array.isArray(cme.patchContainers))&&(ume=eme(ume,cme.patchContainers||cme.regions.map(function(fme){return fme.key}))),ume=filterSchema(ume,{component:cme.renderer.component}),(ume=((lme=(ome=cme.plugin)===null||ome===void 0?void 0:ome.patchSchema)===null||lme===void 0?void 0:lme.call(ome,ume,{component:cme.renderer.component},tme==null?void 0:tme.props))||ume)!==dme&&(rme?rme(cme.id,ume):sme.changeValueById(cme.id,ume,void 0,!0,!0))}}},updateSchema:function(ame){var nme=x_.info;if(nme.editable!==!1){var rme=getRoot(x_),ime=rme.getSchema(nme.id);ime=__assign$3(__assign$3({},ime),ame),rme.changeValueById(nme.id,ime)}},updateSchemaStyle:function(ame){var nme=x_.info;if(nme.editable!==!1){var rme=getRoot(x_),ime=rme.getSchema(nme.id);ime=__assign$3(__assign$3({},ime),{style:__assign$3(__assign$3({},ime.style),ame)}),rme.changeValueById(nme.id,ime)}},setComponent:function(ame){tme=ame},getComponent:function(){return tme},getTarget:function(){var ame,nme=getRoot(x_).getDoc();if(x_.isRegion)return rme=nme.querySelector('[data-region="'.concat(x_.region,'"][data-region-host="').concat(x_.id,'"]'));var rme=[].slice.call(nme.querySelectorAll('[data-editor-id="'.concat(x_.id,'"]')));return((ame=x_.info)===null||ame===void 0?void 0:ame.renderer.name)==="button"?rme==null?void 0:rme[0]:rme},calculateHighlightBox:function(ame){if(ame===void 0&&(ame=getRoot(x_)),ame.calculateStarted){var nme=this.getTarget();nme&&($P(nme),x_.childRegions.forEach(function(rme){return rme.calculateHighlightBox(ame)}))}},resetHighlightBox:function(ame){x_.x=0,x_.y=0,x_.w=0,x_.h=0,x_.childRegions.forEach(function(nme){return nme.resetHighlightBox(ame)})},updateState:function(ame,nme){nme===void 0&&(nme=!1),x_.state=__assign$3(__assign$3({},nme?null:x_.state),ame)},setWidthMutable:function(ame){x_.widthMutable=!!ame},setHeightMutable:function(ame){x_.heightMutable=!!ame}}}),EditorNodeContext=React__default.createContext(null),DefaultLayout=function(){},FlexLayout=function(){function FlexLayout(){}return FlexLayout.prototype.beforeInsert=function(context,store){var _a,_b,_c,region=context.region,body=__spreadArray([],__read$3(((_b=context.schema)===null||_b===void 0?void 0:_b[region])||[]),!1),row=0,beforeId=context.beforeId,position=((_c=context.dragInfo)===null||_c===void 0?void 0:_c.position)||"bottom";if(body!=null&&body.length){var beforeNodeIndex=body.findIndex(function(x_){return x_.$$id===beforeId}),beforeNode=body[beforeNodeIndex],beforeRow=beforeNode==null?void 0:beforeNode.row,preNode=beforeNodeIndex>-1?body[beforeNodeIndex-1]:body[body.length-1],preRow_1=preNode==null?void 0:preNode.row;if(!context.dragInfo){var rowNodes=body.filter(function(x_){return x_.row===preRow_1});if(rowNodes.find(function(x_){return x_.colSize==="auto"}))position="bottom";else{var leftSize=rowNodes.reduce(function(x_,eme){var $P,tme=($P=eme.colSize)===null||$P===void 0?void 0:$P.split("/");return x_-(tme!=null&&tme[0]&&(tme!=null&&tme[1])?tme[0]/tme[1]:eme.colSize)},1);position=leftSize>=eval(context.data.$$defaultColSize||1)?"right":"bottom"}if(position==="bottom"&&beforeRow===preRow_1){var lastIndex=findLastIndex$1(body,function(x_){return x_.row===preRow_1});beforeNode=body[lastIndex+1],beforeId=beforeNode==null?void 0:beforeNode.$$id,beforeRow=beforeNode==null?void 0:beforeNode.row}}position==="left"?row=beforeRow:position==="right"?row=preRow_1:position==="top"?row=preRow_1+1||0:position==="bottom"&&(row=preRow_1+1)}return __assign$3(__assign$3({},context),{position,beforeId,data:__assign$3(__assign$3({},context.data),{row}),schema:__assign$3(__assign$3({},context.schema),(_a={},_a[region]=body,_a))})},FlexLayout.prototype.afterInsert=function(x_,eme){var $P,tme,ame,nme,rme=eme.isMobile,ime=x_.region,ome=__spreadArray([],__read$3((($P=x_.schema)===null||$P===void 0?void 0:$P[ime])||[]),!1),lme=((tme=x_.dragInfo)===null||tme===void 0?void 0:tme.position)||x_.position||"bottom",sme=x_.regionList.findIndex(function(bme){return bme.$$id===x_.data.$$id}),cme=__spreadArray([],__read$3(x_.regionList),!1);if(lme==="top"||lme==="bottom"){if(rme){var dme=ome.findIndex(function(bme){return bme.$$id===x_.beforeId}),ume=(ame=ome[dme])===null||ame===void 0?void 0:ame.row;if(ume!==((nme=ome[dme-1])===null||nme===void 0?void 0:nme.row))for(var fme=sme+1;fme<cme.length;fme++)cme[fme]=__assign$3(__assign$3({},cme[fme]),{row:cme[fme].row+1});else{var pme=findLastIndex$1(cme,function(bme){return bme.row===ume});for(fme=pme=pme===-1?sme+1:pme;fme<cme.length;fme++)cme[fme]=__assign$3(__assign$3({},cme[fme]),{row:cme[fme].row+1})}}else for(fme=sme+1;fme<cme.length;fme++)cme[fme]=__assign$3(__assign$3({},cme[fme]),{row:cme[fme].row+1});x_.data.$$defaultColSize&&(cme[sme].colSize=x_.data.$$defaultColSize)}else{var hme=cme.filter(function(bme){return bme.row===x_.data.row});cme=cme.map(function(bme){return bme.row===x_.data.row&&(bme=__assign$3(__assign$3({},bme),{colSize:"1/".concat(hme.length)})),bme})}return __assign$3(__assign$3({},x_),{regionList:cme})},FlexLayout.prototype.afterMove=function(x_,eme){var $P,tme,ame,nme=eme.isMobile,rme=($P=x_.dragInfo)===null||$P===void 0?void 0:$P.position,ime=x_.region,ome=__spreadArray([],__read$3(((tme=x_.schema)===null||tme===void 0?void 0:tme[ime])||[]),!1),lme=ome.findIndex(function(gme){return gme.$$id===x_.sourceId});if(rme==="top"&&lme===ome.length-1&&!x_.beforeId)return x_;var sme=__spreadArray([],__read$3(x_.regionList),!1),cme=sme.findIndex(function(gme){return gme.$$id===x_.sourceId}),dme=ome[lme].row;if(ome.filter(function(gme){return gme.row===dme}).length===1)for(var ume=lme;ume<sme.length;ume++)sme[ume].row>dme&&(sme[ume]=__assign$3(__assign$3({},sme[ume]),{row:sme[ume].row-1}));var fme=sme.findIndex(function(gme){return gme.$$id===x_.beforeId}),pme=sme[fme]||sme[sme.length-2],hme=pme==null?void 0:pme.row;if(typeof hme!="number")return x_;var bme=hme;if(rme==="right"){var mme=sme[fme-2];mme&&mme.row!==hme&&(bme=hme-1)}if(rme==="bottom"&&fme<0&&(bme=hme+1),rme==="top"||rme==="bottom")if(nme){var vme=ome.findIndex(function(gme){return gme.$$id===x_.beforeId});if(hme!==((ame=ome[vme-1])===null||ame===void 0?void 0:ame.row))for(ume=cme+1;ume<sme.length;ume++)sme[ume]=__assign$3(__assign$3({},sme[ume]),{row:sme[ume].row+1});else for(ume=findLastIndex$1(sme,function(gme){return gme.row===hme});ume<sme.length;ume++)sme[ume]=__assign$3(__assign$3({},sme[ume]),{row:sme[ume].row+1})}else for(ume=cme+1;ume<sme.length;ume++)sme[ume]=__assign$3(__assign$3({},sme[ume]),{row:sme[ume].row+1});return sme[cme]=__assign$3(__assign$3({},sme[cme]),{row:bme}),sme=setDefaultColSize(sme,bme,dme),__assign$3(__assign$3({},x_),{regionList:sme})},FlexLayout.prototype.afterDelete=function(x_){for(var eme,$P=__spreadArray([],__read$3(x_.regionList),!1),tme=-1,ame=0;ame<$P.length;ame++){var nme=$P[ame].row;nme-tme>=2&&($P[ame]=__assign$3(__assign$3({},$P[ame]),{row:nme-1})),((eme=$P[ame+1])===null||eme===void 0?void 0:eme.row)!==nme&&(tme=$P[ame].row)}return $P=setDefaultColSize($P,x_.schema.row),__assign$3(__assign$3({},x_),{regionList:$P})},FlexLayout.prototype.afterMoveDown=function(x_){var eme=__spreadArray([],__read$3(x_.regionList),!1),$P=x_.sourceId,tme=eme.findIndex(function(ime){return ime.$$id===$P}),ame=eme[tme],nme=eme[tme-1],rme=ame.row;return ame.row=nme.row,nme.row=rme,__assign$3(__assign$3({},x_),{regionList:eme})},FlexLayout.prototype.afterMoveUp=function(x_){var eme=__spreadArray([],__read$3(x_.regionList),!1),$P=x_.sourceId,tme=eme.findIndex(function(ime){return ime.$$id===$P}),ame=eme[tme],nme=eme[tme+1],rme=ame.row;return ame.row=nme.row,nme.row=rme,__assign$3(__assign$3({},x_),{regionList:eme})},FlexLayout}();function getLayoutInstance(x_,eme){var $P;if(!eme)return new DefaultLayout;var tme=($P=eme==null?void 0:eme.regionInfo)===null||$P===void 0?void 0:$P.dndMode,ame=JSONGetById(x_,eme==null?void 0:eme.id),nme=DefaultLayout;return typeof tme=="function"&&tme(ame)==="flex"&&(nme=FlexLayout),new nme}var MainStore=types.model("EditorRoot",{ready:!1,isMobile:!1,isSubEditor:!1,amisDocHost:types.optional(types.string,"https://baidu.gitee.io"),root:types.optional(EditorNode,{id:"root",label:"Root"}),theme:"cxd",toolbarMode:"default",noDialog:!1,hoverId:"",hoverRegion:"",activeId:"",activeRegion:"",mouseMoveRegion:"",selections:types.optional(types.frozen(),[]),contextId:"",dragMode:"move",dragId:"",dragType:"",dragSchema:types.frozen(),dropId:"",dropRegion:"",planDropId:"",planDropRegion:"",insertId:"",insertRegion:"",insertRenderers:types.optional(types.frozen(),[]),insertRenderersKeywords:"",insertTag:i18n("a8b0c20416853bda54120bf19477ad11"),insertSelected:"",insertMode:"insert",insertOrigId:"",insertBeforeId:"",showInsertRenderer:!1,schema:types.frozen(),versionId:0,schemaHistory:types.optional(types.array(types.frozen()),[]),toolbars:types.optional(types.frozen(),[]),panels:types.optional(types.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:"base-renderers",outlineTabsKey:"component-outline",subRenderers:types.optional(types.frozen(),[]),subRenderersKeywords:"",subRenderersTag:"",subRendererRegion:"",customRenderersKeywords:"",customRenderersTag:"",panelKey:"",leftPanelKey:"",leftPanelOpenStatus:!0,jsonSchemaUri:"",scaffoldForm:types.maybe(types.frozen()),scaffoldFormStep:0,scaffoldStepManipulated:!1,scaffoldFormBuzy:!1,scaffoldError:"",popOverForm:types.maybe(types.frozen()),modalForm:types.maybe(types.frozen()),modalMode:"",modalFormBuzy:!1,modalFormError:"",subEditorContext:types.maybe(types.frozen()),superEditorData:types.maybe(types.frozen()),calculateStarted:!1,targetNames:types.optional(types.array(types.frozen()),[]),ctx:types.frozen(),i18nEnabled:types.optional(types.boolean,!1),appLocale:types.optional(types.string,"zh-CN"),appCorpusData:types.optional(types.frozen(),{}),appLocaleState:types.optional(types.number,0)}).views(function(x_){return{get filteredSchema(){var eme,$P,tme,ame=x_.schema;return filterSchemaForEditor((tme=($P=(eme=getEnv(x_)).schemaFilter)===null||$P===void 0?void 0:$P.call(eme,ame))!==null&&tme!==void 0?tme:ame)},get filteredSchemaForPreview(){var eme,$P,tme,ame=JSONPipeOut(x_.schema);return(tme=($P=(eme=getEnv(x_)).schemaFilter)===null||$P===void 0?void 0:$P.call(eme,ame,!0))!==null&&tme!==void 0?tme:ame},isRootSchema:function(eme){var $P=this.getSchema();return!(!$P||$P.$$id!==eme)},get rootId(){return this.getRootId()},getRootId:function(){var eme=this.getSchema();return eme==null?void 0:eme.$$id},isHoved:function(eme){return eme&&x_.hoverId===eme},isActive:function(eme){return eme&&!this.dragging&&!x_.insertOrigId&&x_.insertBeforeId!==eme&&x_.activeId===eme},isContextOn:function(eme){return eme&&x_.contextId===eme},get activeContainerId(){var eme;if(!x_.activeId)return"";for(var $P=this.getNodeById(x_.activeId);$P;){if($P.childRegions.length||!((eme=$P.info)===null||eme===void 0)&&eme.regions)return $P.id;$P=$P.host}return""},isRegionHighlighted:function(eme,$P){return!x_.insertOrigId&&eme===x_.hoverId&&$P===x_.hoverRegion||eme===x_.activeId&&x_.activeRegion===$P||eme===x_.dropId&&x_.dropRegion===$P||!x_.insertOrigId&&eme===x_.insertId&&x_.insertRegion===$P},isRegionHighlightHover:function(eme,$P){return eme===x_.hoverId&&$P===x_.mouseMoveRegion},isRegionActive:function(eme,$P){return this.isActive(eme)||eme===x_.dropId||eme===x_.planDropId||this.isRegionHighlighted(eme,$P)||this.isRegionHighlightHover(eme,$P)},isRegionDragEnter:function(eme,$P){return this.isRegionActive(eme,$P)&&$P===x_.dropRegion},get highlightNodes(){var eme=this,$P=[];!x_.hoverId||x_.dragId||x_.contextId||x_.activeId===x_.hoverId&&!x_.hoverRegion||x_.selections.includes(x_.hoverId)||$P.push(x_.hoverId),x_.contextId&&$P.push(x_.contextId),!x_.activeId&&!x_.selections.length||x_.dragId&&!this.draggableContainer(x_.dragId)||x_.insertOrigId||x_.insertId||x_.hoverId&&x_.hoverRegion||(x_.activeId?$P.push(x_.activeId):$P.push.apply($P,x_.selections));var tme=this.parentIsFreeContainer(x_.activeId);return tme&&$P.push(tme),x_.insertMode==="insert"&&x_.insertId&&$P.push(x_.insertId),x_.insertOrigId&&$P.push(x_.insertOrigId),x_.dropId&&$P.push(x_.dropId),x_.planDropId&&$P.push(x_.planDropId),x_.insertBeforeId&&$P.push(x_.insertBeforeId),$P.filter(function(ame,nme,rme){return ame&&nme===rme.indexOf(ame)}).map(function(ame){return eme.getNodeById(ame)}).filter(function(ame){return ame})},getNodeById:function(eme,$P){return x_.root.getNodeById(eme,$P)},getNodeByComponentId:function(eme){return x_.root.getNodeByComponentId(eme)},get activeNodeInfo(){var eme;return(eme=this.getNodeById(x_.activeId))===null||eme===void 0?void 0:eme.info},getSchema:function(eme,$P){return eme?JSONGetById(x_.schema,eme,$P):x_.schema},getSchemaByPath:function(eme){return JSONGetByPath(x_.schema,eme)},getSchemaParentById:function(eme,$P){return $P===void 0&&($P=!1),JSONGetParentById(x_.schema,eme,$P)},getSchemaPath:function(eme){var $P=JSONGetPathById(x_.schema,eme);return Array.isArray($P)?$P.join("/"):""},getSimpleSchema:function(eme){return JSONPipeOut(eme)},getPanelKey:function(){var eme,$P=x_.panelKey;if($P==="none")return $P;var tme=this.getPanels();return find$3(tme,function(ame){return $P&&ame.key===$P})?$P:((eme=tme[0])===null||eme===void 0?void 0:eme.key)||"none"},getLeftPanelKey:function(){var eme=x_.leftPanelKey;if(this.dragging)return"outline";if(eme==="none")return eme;var $P=this.getLeftPanels();return find$3($P,function(tme){return eme&&tme.key===eme})?eme:"renderers"},get leftPanels(){return x_.panels.filter(function(eme){return eme.position==="left"})},get rightPanels(){return x_.panels.filter(function(eme){return eme.position!=="left"&&eme.key!=="contextmenu"})},get contextMenuPanel(){return x_.panels.find(function(eme){return eme.key==="contextmenu"})},getPanels:function(){return[].concat(this.rightPanels||[]).sort(function(eme,$P){return eme.order-$P.order})},getLeftPanels:function(){var eme=[].concat(this.leftPanels||[]);return x_.insertId&&x_.insertRegion&&eme.push({key:"insert",icon:"fa fa-bolt",position:"left",title:x_.insertMode==="replace"?i18n("1dd554cdfc1ddf7dce13453805523c16"):i18n("9bdb07e72d3a9a6084201a7398523f5a"),component:InsertSubRendererPanel,order:9999}),eme.push({key:"insertRenderer",icon:"fa fa-bolt",position:"left",title:i18n("a82240ce09faf0b972a8aa5c9e93d209"),component:AvailableRenderersPanel,order:9999}),eme.sort(function($P,tme){return $P.order-tme.order})},get sortedToolbars(){return x_.toolbars.filter(function(eme){return eme.level!=="secondary"&&eme.level!=="special"}).sort(function(eme,$P){return eme.order-$P.order})},get sortedSecondaryToolbars(){return x_.toolbars.filter(function(eme){return eme.level==="secondary"}).sort(function(eme,$P){return eme.order-$P.order})},get sortedSpecialToolbars(){return x_.toolbars.filter(function(eme){return eme.level==="special"}).sort(function(eme,$P){return eme.order-$P.order})},get value(){if(x_.activeId)return this.getValueOf(x_.activeId)},getValueOf:function(eme){return JSONPipeOut(JSONGetById(x_.schema,eme),!1)},get valueWithoutHiddenProps(){if(x_.activeId){var eme=x_.isSubEditor,$P=getEnv(x_).isHiddenProps;return JSONPipeOut(JSONGetById(x_.schema,x_.activeId),function(tme,ame){return!(!eme||tme!=="definitions")||(typeof $P=="function"?$P(tme,ame):tme.substring(0,2)==="$$"&&tme!=="$$comments"&&tme!=="$$commonSchema"&&tme!=="$$formSchema"||typeof ame=="function"||tme.substring(0,2)==="__")})}},get outline(){return x_.root.children},get bcn(){var eme=[];return x_.activeId&&findTree(x_.root.children,function($P,tme,ame,nme){return $P.id===x_.activeId&&(eme=nme.concat($P),!0)}),eme.filter(function($P){return!$P.isSecondFactor})},get activePath(){return this.getNodePathById(x_.activeId)},getNodePathById:function(eme){var $P=[];if(!eme)return $P;var tme=function(ame,nme){return nme===void 0&&(nme=[]),ame.every(function(rme){return rme.id===eme?($P=nme.concat(rme),!1):!rme.children||!rme.children.length||tme(rme.children,nme.concat(rme))})};return tme(x_.root.children),$P},get dragging(){return!this.draggableContainer(x_.dragId)&&!(!x_.dragId&&!x_.dropId)},get needPatch(){var eme=function($P){return $P.some(function(tme){return!tme.patched&&!tme.isRegion||!!tme.uniqueChildren.length&&eme(tme.uniqueChildren)})};return eme(x_.root.children)},get schemaRaw(){return JSONPipeOut(x_.schema)},get subRenderersByOrder(){return x_.subRenderers.filter(function(eme){return!(!eme.disabledRendererPlugin&&x_.showCustomRenderersPanel)||eme.isBaseComponent}).sort(function(eme,$P){return eme.order-$P.order})},get customRenderersByOrder(){return x_.subRenderers.filter(function(eme){return!eme.disabledRendererPlugin&&!eme.isBaseComponent}).sort(function(eme,$P){return eme.order-$P.order})},groupedRenderersByKeyword:function(eme,$P){$P===void 0&&($P="");var tme=eme,ame={},nme=new Map;return matchSorter(tme,$P,{keys:["name","description","scaffold.type","searchKeywords"]}).forEach(function(rme){nme.set(rme.id,rme)}),tme.forEach(function(rme){nme.has(rme.id)&&(Array.isArray(rme.tags)?rme.tags.concat():rme.tags?[rme.tags]:[i18n("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach(function(ime){ame[ime]=ame[ime]||[],ame[ime].push(rme)})}),ame},groupedSubRenderersByKeyword:function(eme,$P){var tme=eme||this.subRenderersByOrder;return this.groupedRenderersByKeyword(tme,$P)},get groupedSubRenderers(){if(x_.subRenderersTag){var eme={},$P=this.groupedSubRenderersByKeyword()[x_.subRenderersTag];return $P&&(eme[x_.subRenderersTag]=$P),eme}return this.groupedSubRenderersByKeyword(this.subRenderersByOrder,x_.subRenderersKeywords)},groupedCustomRenderersByKeyword:function(eme,$P){var tme=eme||this.customRenderersByOrder;return this.groupedRenderersByKeyword(tme,$P)},get groupedCustomRenderers(){if(x_.customRenderersTag){var eme={},$P=this.groupedCustomRenderersByKeyword()[x_.customRenderersTag];return $P&&(eme[x_.customRenderersTag]=$P),eme}return this.groupedCustomRenderersByKeyword(this.customRenderersByOrder,x_.customRenderersKeywords)},getSubRendererById:function(eme){return find$3(x_.subRenderers||[],function($P){return $P.id===eme})},get groupedInsertRenderers(){var eme,$P=((eme={})[i18n("a8b0c20416853bda54120bf19477ad11")]=[],eme),tme=x_.insertRenderersKeywords,ame=new RegExp(stringRegExp(tme),"i");return x_.insertRenderers.concat().sort(function(nme,rme){return nme.order-rme.order}).forEach(function(nme){tme&&!["name","description","scaffold.type"].some(function(rme){return resolveVariable(rme,nme)&&ame.test(resolveVariable(rme,nme))})||((Array.isArray(nme.tags)?nme.tags.concat():nme.tags?[nme.tags]:[i18n("0d98c74797e49d00bcc4c17c9d557a2b")]).forEach(function(rme){$P[rme]=$P[rme]||[],$P[rme].push(nme)}),$P[i18n("a8b0c20416853bda54120bf19477ad11")].push(nme))}),$P},get selectedInsertRendererInfo(){return find$3(x_.insertRenderers,function(eme){return eme.id===x_.insertSelected})},get subEditorSlotPath(){var eme,$P=(eme=x_.subEditorContext)===null||eme===void 0?void 0:eme.slot;if(!$P)return"";var tme=[],ame=function(nme,rme){return rme===void 0&&(rme=[]),!(!Array.isArray(nme)||!nme.some(function(ime,ome){return ame(ime,rme.concat("".concat(ome)))}))||(isPlainObject$b(nme)?Object.keys(nme).some(function(ime){return ame(nme[ime],rme.concat(ime))}):nme==="$$"&&(tme=rme.concat(),!0))};return ame($P),tme.length?tme.join("/"):""},get subEditorValue(){if(x_.subEditorContext)return x_.subEditorContext.slot?__assign$3(__assign$3({},mapObject(x_.subEditorContext.slot,function(eme){return eme==="$$"?x_.subEditorContext.value:eme})),{isSlot:!0}):x_.subEditorContext.value},get canUndo(){return x_.schemaHistory.findIndex(function(eme){return eme.versionId===x_.versionId})!==0},get canRedo(){return x_.schemaHistory.findIndex(function(eme){return eme.versionId===x_.versionId})<x_.schemaHistory.length-1},isFlexContainer:function(eme){var $P,tme,ame=eme??x_.activeId,nme=this.getSchema(ame);return(($P=nme==null?void 0:nme.style)===null||$P===void 0?void 0:$P.display)==="flex"||((tme=nme==null?void 0:nme.style)===null||tme===void 0?void 0:tme.display)==="inline-flex"},isFlexItem:function(eme){var $P,tme,ame=eme??x_.activeId,nme=this.getSchemaParentById(ame,!0);return(nme==null?void 0:nme.type)==="flex"||(($P=nme==null?void 0:nme.style)===null||$P===void 0?void 0:$P.display)==="flex"||((tme=nme==null?void 0:nme.style)===null||tme===void 0?void 0:tme.display)==="inline-flex"},isFlexColumnItem:function(eme){var $P,tme,ame,nme,rme=eme??x_.activeId,ime=this.getSchemaParentById(rme,!0),ome=(ime==null?void 0:ime.type)==="flex"||(($P=ime==null?void 0:ime.style)===null||$P===void 0?void 0:$P.display)==="flex"||((tme=ime==null?void 0:ime.style)===null||tme===void 0?void 0:tme.display)==="inline-flex",lme=(ime==null?void 0:ime.direction)==="column"||(ime==null?void 0:ime.direction)==="column-reverse"||((ame=ime==null?void 0:ime.style)===null||ame===void 0?void 0:ame.flexDirection)==="column"||((nme=ime==null?void 0:ime.style)===null||nme===void 0?void 0:nme.flexDirection)==="column-reverse";return!(!ome||!lme)},draggableContainer:function(eme){var $P=eme||x_.activeId,tme=this.getSchema($P),ame=(tme==null?void 0:tme.style)||{};return(ame==null?void 0:ame.position)==="fixed"||(ame==null?void 0:ame.position)==="absolute"},parentIsFreeContainer:function(eme){var $P=eme??x_.activeId,tme=this.getNodeById($P),ame=tme==null?void 0:tme.parent;if(!ame)return!1;var nme=this.getSchema(ame.id);return!!(nme!=null&&nme.isFreeContainer)&&ame.id},get getSuperEditorData(){return x_.superEditorData||{}},getComponentTreeSource:function(){var eme;return mapTree((eme=x_.root.children)!==null&&eme!==void 0?eme:[],function($P){var tme,ame,nme,rme=$P.id?JSONGetById(x_.schema,$P.id):x_.schema,ime="",ome=appTranslate($P==null?void 0:$P.label),lme=appTranslate(rme==null?void 0:rme.label),sme=appTranslate(rme==null?void 0:rme.title);if($P!=null&&$P.region)ime=ome;else{var cme=$P.type!=="cell"?"<".concat(ome,">"):i18n("b71e8739cb9bcba8057a8fa8b59512da");ime="".concat(cme).concat((tme=lme??sme)!==null&&tme!==void 0?tme:ome)}return ime=ime??ome,{id:$P.id,label:ime,value:(ame=rme==null?void 0:rme.id)!==null&&ame!==void 0?ame:$P.id,type:(nme=rme==null?void 0:rme.type)!==null&&nme!==void 0?nme:$P.type,schema:rme,disabled:!!$P.region,visible:!$P.region||!!($P!=null&&$P.children.length),children:$P==null?void 0:$P.children}},1,!0)},get scaffoldData(){var eme;return createObject$1(x_.ctx,__assign$3(__assign$3({},((eme=x_.scaffoldForm)===null||eme===void 0?void 0:eme.value)||{}),{__step:x_.scaffoldFormStep}))},get modals(){return getModals(x_.schema)},get modalOptions(){return this.modals.map(function(eme){var $P;return{label:"".concat((($P=eme.editorSetting)===null||$P===void 0?void 0:$P.displayName)||eme.title||"未命名弹窗"),tip:eme.actionType==="confirmDialog"?"确认框":eme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:eme.$$id,$$ref:eme.$$ref}})}}}).actions(function(x_){getEnv(x_);var eme=0,$P=null,tme=void 0,ame=document,nme=void 0,rme=debounce$6(function(){return x_.updateTargetName()},250,{leading:!1,trailing:!0}),ime=new ResizeObserver(function(ome){var lme,sme;x_.calculateHighlightBox([]);try{for(var cme=__values$1(ome),dme=cme.next();!dme.done;dme=cme.next()){var ume=dme.value.target,fme=ume.getAttribute("data-editor-id")||ume.getAttribute("data-region-host");if(fme){var pme=x_.getNodeById(fme);pme==null||pme.calculateHighlightBox()}}}catch(hme){lme={error:hme}}finally{try{dme&&!dme.done&&(sme=cme.return)&&sme.call(cme)}finally{if(lme)throw lme.error}}});return{markReady:function(){x_.ready=!0},setLayer:function(ome){tme=ome},getLayer:function(){return tme},setDoc:function(ome){ame=ome},getDoc:function(){return ame},setIframe:function(ome){nme=ome},getIframe:function(){return nme},setIsMobile:function(ome){x_.isMobile=!!ome},setCtx:function(ome){ome!=null&&ome.__super&&(ome=extractObjectChain(ome).reduce(function(lme,sme){return Object.assign(lme,sme)},{})),x_.ctx=ome},setTheme:function(ome){x_.theme=ome},setIsSubEditor:function(ome){x_.isSubEditor=ome},setShowCustomRenderersPanel:function(ome){x_.showCustomRenderersPanel=ome},setSchema:function(ome){var lme,sme=JSONPipeIn(ome||{});if(x_.schema&&Object.keys(x_.schema).length>1){var cme=diff(x_.schema,sme,function(hme,bme){return bme==="$$id"}),dme=patchDiff(x_.schema,cme);if(((lme=cme==null?void 0:cme[0])===null||lme===void 0?void 0:lme.kind)==="A"&&(cme[0].item.kind==="D"||cme[0].item.kind==="N")&&Array.isArray(cme[0].path)){var ume=cme[0].path,fme=ume.pop(),pme=ume.reduce(function(hme,bme){return hme[bme]},dme);pme[fme]=pme[fme].map(function(hme){return isPlainObject$b(pme[fme])?__assign$3(__assign$3({},hme),{$$id:guid()}):hme})}x_.schema=dme}else x_.schema=sme;this.resetHistory(),rme()},insertSchema:function(ome){var lme,sme=this,cme=ome.context.id,dme=ome.context.region,ume=JSONGetById(x_.schema,cme);if(ume){var fme=x_.getNodeById(cme,dme),pme=getLayoutInstance(x_.schema,fme),hme=pme.beforeInsert,bme=pme.afterInsert;hme&&(ome.context=hme(ome.context,x_));var mme=JSONPipeIn(ome.context.data);ume!=null&&ume.isFreeContainer&&(mme.style={position:"absolute",inset:"10px auto auto 10px"},needDefaultWidth(mme.type)&&(mme.style.width="300px"));var vme=Array.isArray(ume[dme])?ume[dme].concat():ume[dme]?[ume[dme]]:[];if(ome.context.beforeId){var gme=findIndex$3(vme,function(yme){return(yme==null?void 0:yme.$$id)===ome.context.beforeId});~gme?vme.splice(gme,0,mme):vme.push(mme)}else vme.push(mme);return ome.context.data=mme,ome.context.regionList=vme,bme&&(ome.context=bme(ome.context,x_)),this.traceableSetSchema(JSONUpdate(x_.schema,cme,((lme={})[dme]=ome.context.regionList,lme))),mme!=null&&mme.$$id&&setTimeout(function(){sme.setActiveId(mme.$$id)},0),mme}},moveSchema:function(ome){var lme,sme=ome.context,cme=x_.schema;if(sme.sourceId!==sme.beforeId){var dme=sme.region,ume=x_.getNodeById(sme.id,dme),fme=getLayoutInstance(x_.schema,ume),pme=fme.beforeMove,hme=fme.afterMove;pme&&(ome.context=pme(ome.context,x_));var bme=JSONGetById(cme,sme.sourceId),mme=JSONGetById(cme=JSONDelete(cme,sme.sourceId,void 0,!0),sme.id)[dme];if(mme=Array.isArray(mme)?mme.concat():mme?[mme]:[],sme.beforeId){var vme=findIndex$3(mme,function(gme){return gme.$$id===sme.beforeId});if(!~vme)throw new Error(i18n("eadc8c8d4a8776893672330598babca0"));mme.splice(vme,0,bme)}else mme.push(bme);ome.context.regionList=mme,hme&&(ome.context=hme(ome.context,x_)),this.traceableSetSchema(JSONUpdate(cme,sme.id,((lme={})[dme]=ome.context.regionList,lme)))}},setActiveId:function(ome,lme,sme,cme){var dme,ume;lme===void 0&&(lme=""),sme===void 0&&(sme=[]),cme===void 0&&(cme=!0);var fme=ome?x_.getNodeById(ome):void 0;if((fme==null?void 0:fme.clickable)!==!1&&(!ome||fme)){x_.activeId=ome,x_.activeRegion=lme,x_.selections=sme;var pme=x_.getSchema(ome);cme&&((ume=(dme=window).onEditorActive)===null||ume===void 0||ume.call(dme,pme))}},setActiveIdByComponentId:function(ome){var lme=x_.getNodeByComponentId(ome);if(lme)this.setActiveId(lme.id,lme.region,[],!1),this.closeSubEditor();else{var sme=x_.modals,cme=find$3(sme,function(pme){return pme.id===ome});if(cme)this.openSubEditor({value:cme,title:"弹窗预览",onChange:function(pme){}});else{var dme=this.getSubEditorRef();if(dme){dme.store.setActiveIdByComponentId(ome);var ume=dme.props.value.$$id,fme=find$3(sme,function(pme){return pme.$$id===ume});this.openSubEditor({value:fme,title:"弹窗预览",onChange:function(pme){}})}}}},setSelections:function(ome){x_.activeId="",x_.activeRegion="",x_.selections=ome?ome.concat():[]},clearSelection:function(){x_.selections=[]},setHoverId:function(ome,lme){var sme=ome?x_.getNodeById(ome):void 0;(sme==null?void 0:sme.clickable)!==!1&&(x_.hoverId=ome,x_.hoverRegion=lme||"")},setMouseMoveRegion:function(ome){x_.mouseMoveRegion=ome},setInsertId:function(ome){x_.insertId=ome},setContextId:function(ome){x_.contextId=ome},setDragId:function(ome,lme,sme,cme){lme===void 0&&(lme="move"),sme===void 0&&(sme="schema"),x_.dragId=ome,x_.dragMode=lme,x_.dragType=sme,x_.dragSchema=cme||(ome?x_.getSchema(ome):null)},setDropId:function(ome,lme){lme===void 0&&(lme=""),x_.dropId=ome,x_.dropRegion=lme,x_.planDropId="",x_.planDropRegion=""},setPlanDropId:function(ome,lme){x_.planDropId=ome,x_.planDropRegion=lme},setActiveToolbars:function(ome){x_.toolbars=ome},setPanels:function(ome){x_.panels=ome},setSubRenderers:function(ome){x_.subRenderers=ome},changeSubRenderersKeywords:function(ome){x_.subRenderersKeywords=ome,x_.subRenderersTag=""},changeSubRenderersTag:function(ome){x_.subRenderersKeywords="",x_.subRenderersTag=ome},resetSubRenderersKeywords:function(){x_.subRenderersKeywords="",x_.subRenderersTag=""},changeCustomRenderersKeywords:function(ome){x_.customRenderersKeywords=ome,x_.customRenderersTag=""},changeCustomRenderersTag:function(ome){x_.customRenderersKeywords="",x_.customRenderersTag=ome},resetCustomRenderersKeywords:function(){x_.customRenderersKeywords="",x_.customRenderersTag=""},changeSubRendererRegion:function(ome){x_.subRendererRegion=ome},changePanelKey:function(ome){ome!==x_.getPanelKey()&&(x_.panelKey=ome)},changeLeftPanelKey:function(ome){ome!=="insert"&&x_.panelKey!=="insert"&&ome!==x_.getLeftPanelKey()&&(x_.leftPanelKey=ome)},changeRenderersTabsKey:function(ome){ome!==x_.renderersTabsKey&&(x_.renderersTabsKey=ome)},changeOutlineTabsKey:function(ome){ome!==x_.outlineTabsKey&&(x_.outlineTabsKey=ome)},changeLeftPanelOpenStatus:function(ome){ome!==x_.leftPanelOpenStatus&&(x_.leftPanelOpenStatus=ome)},showRendererPanel:function(ome,lme){x_.getLeftPanelKey()!=="renderers"?x_.leftPanelKey="renderers":ome!==x_.subRenderersTag&&ome||toast.info(lme||i18n("f3c057f37fb9a4e7dd44b04919c12578")),x_.renderersTabsKey="base-renderers",ome&&this.changeSubRenderersTag(ome),this.changeLeftPanelOpenStatus(!0)},changeValue:function(ome,lme,sme,cme){cme===void 0&&(cme=x_.activeId),cme&&this.changeValueById(cme,ome,lme,void 0,void 0,sme)},definitionOnchangeValue:function(ome,lme){this.changeValueById(x_.getRootId(),ome,lme)},changeValueById:function(ome,lme,sme,cme,dme,ume){var fme=JSONGetById(x_.schema,ome);if(fme)if(sme){var pme=patchDiff(fme,sme),hme=JSONUpdate(x_.schema,ome,JSONPipeIn(pme),!0);hme=(ume==null?void 0:ume(hme,lme,ome,sme))||hme,this.traceableSetSchema(hme,dme)}else hme=JSONUpdate(x_.schema,ome,JSONPipeIn(lme),cme),hme=(ume==null?void 0:ume(hme,lme,ome))||hme,this.traceableSetSchema(JSONUpdate(x_.schema,ome,JSONPipeIn(lme),cme),dme)},batchChangeValue:function(ome){this.traceableSetSchema(ome.reduce(function(lme,sme){return JSONUpdate(lme,sme.id,JSONPipeIn(sme.value),!0)},x_.schema),!0)},updateContainerStyleByDrag:function(ome,lme,sme){var cme=ome||x_.dragId;if(cme){var dme=x_.getSchema(cme),ume=(dme==null?void 0:dme.style)||{};if(cme&&(ume==null?void 0:ume.position)==="fixed"||(ume==null?void 0:ume.position)==="absolute"){var fme=(ume.inset||"auto").split(" "),pme={top:fme[0]||"auto",right:fme[1]||"auto",bottom:fme[2]||fme[0]||"auto",left:fme[3]||fme[1]||"auto"},hme="".concat(pme.top!=="auto"?unitFormula(pme.top,sme):"auto"," ").concat(pme.right!=="auto"?unitFormula(pme.right,-lme):"auto"," ").concat(pme.bottom!=="auto"?unitFormula(pme.bottom,-sme):"auto"," ").concat(pme.left!=="auto"?unitFormula(pme.left,lme):"auto");this.changeValueById(cme,__assign$3(__assign$3({},dme),{style:__assign$3(__assign$3({},ume),{inset:hme})})),this.calculateHighlightBox([cme])}}},moveUp:function(ome){var lme,sme=ome.sourceId,cme=ome.regionNode,dme=ome.region,ume=ome.id;if(sme){var fme=JSONMoveUpById(x_.schema,sme),pme=getLayoutInstance(x_.schema,cme);if(pme.afterMoveUp){var hme=JSONGetById(fme,ume)[dme];ome.regionList=hme,ome=pme.afterMoveUp(ome,x_),this.traceableSetSchema(JSONUpdate(fme,ume,((lme={})[dme]=ome.regionList,lme)))}else this.traceableSetSchema(fme)}},moveDown:function(ome){var lme,sme=ome.sourceId,cme=ome.regionNode,dme=ome.region,ume=ome.id;if(sme){var fme=JSONMoveDownById(x_.schema,sme),pme=getLayoutInstance(x_.schema,cme);if(pme.afterMoveDown){var hme=JSONGetById(fme,ume)[dme];ome.regionList=hme,ome=pme.afterMoveDown(ome,x_),this.traceableSetSchema(JSONUpdate(fme,ume,((lme={})[dme]=ome.regionList,lme)))}else this.traceableSetSchema(fme)}},del:function(ome){var lme,sme=ome.id;if(sme===x_.activeId){var cme=x_.getNodeById(sme);this.setActiveId((cme==null?void 0:cme.parentId)||"",cme==null?void 0:cme.parentRegion)}else if(x_.activeId){var dme=JSONGetById(x_.schema,sme);if(JSONGetById(dme,x_.activeId)){var ume=x_.getNodeById(sme);this.setActiveId((ume==null?void 0:ume.parentId)||"",ume==null?void 0:ume.parentRegion)}}var fme=JSONDelete(x_.schema,sme),pme=x_.getNodeById(sme),hme=getLayoutInstance(x_.schema,pme==null?void 0:pme.parent);if(hme.afterDelete&&pme){var bme=JSONGetById(fme,pme.parentId)[pme.parentRegion];ome.regionList=bme,ome=hme.afterDelete(ome,x_),this.traceableSetSchema(JSONUpdate(fme,pme.parentId,((lme={})[pme.parentRegion]=ome.regionList,lme)))}else this.traceableSetSchema(fme)},delMulti:function(ome){var lme=this;(Array.isArray(ome)?ome:[ome]).forEach(function(sme){var cme,dme;if(sme===x_.activeId){var ume=(cme=x_.getNodeById(sme))===null||cme===void 0?void 0:cme.host;lme.setActiveId(ume?ume.id:"")}else if(x_.activeId){var fme=JSONGetById(x_.schema,sme);JSONGetById(fme,x_.activeId)&&(ume=(dme=x_.getNodeById(sme))===null||dme===void 0?void 0:dme.host,lme.setActiveId(ume?ume.id:""))}}),this.traceableSetSchema(ome.reduce(function(sme,cme){return JSONDelete(sme,cme)},x_.schema))},duplicate:function(ome){this.traceableSetSchema((Array.isArray(ome)?ome:[ome]).reduce(function(lme,sme){return JSONDuplicate(lme,sme)},x_.schema))},emptyRegion:function(ome,lme){var sme;this.traceableSetSchema(JSONUpdate(x_.schema,ome,((sme={})[lme]=[],sme)))},replaceChild:function(ome,lme){this.traceableSetSchema(JSONUpdate(x_.schema,ome,JSONPipeIn(lme),!0))},setInsertRegion:function(ome,lme,sme,cme,dme,ume){lme===void 0&&(lme=""),sme===void 0&&(sme=i18n("a8b0c20416853bda54120bf19477ad11")),cme===void 0&&(cme="insert"),dme===void 0&&(dme=""),x_.insertId=lme,x_.insertRegion=ome,x_.insertTag=sme,x_.insertMode=cme,x_.insertOrigId=dme,x_.insertBeforeId=ume||""},closeInsertPanel:function(){x_.insertOrigId="",x_.insertId="",x_.insertRegion="",x_.insertSelected="",x_.insertRenderersKeywords="",x_.insertBeforeId=""},showInsertRendererPanel:function(){x_.showInsertRenderer=!0},closeInsertRendererPanel:function(){x_.showInsertRenderer=!1},setInsertRenderers:function(ome){x_.insertRenderers=ome},changeInsertRenderersKeywords:function(ome){x_.insertRenderersKeywords=ome},resetInsertRenderersKeywords:function(){x_.insertRenderersKeywords=""},setInsertTag:function(ome){x_.insertTag=ome},setInsertSelected:function(ome){x_.insertSelected=ome},setJSONSchemaUri:function(ome){x_.jsonSchemaUri=ome},addModal:function(ome,lme){var sme=__read$3(addModal(x_.schema,ome,lme),1)[0];this.traceableSetSchema(sme)},countModalActionRefs:function(ome){var lme=0,sme=JSONGetParentById(x_.schema,ome);if(sme!=null&&sme.actionType)return sme.type?0:1;if(sme!==x_.schema.definitions)return lme;var cme=Object.keys(sme).find(function(dme){var ume;return((ume=sme[dme])===null||ume===void 0?void 0:ume.$$id)===ome});return JSONTraverse(x_.schema,function(dme,ume,fme){var pme;return ume==="actionType"&&["dialog","drawer","confirmDialog"].includes(dme)&&((pme=fme[dme==="drawer"?"drawer":"dialog"])===null||pme===void 0?void 0:pme.$ref)===cme&&lme++,dme}),lme},removeModal:function(ome){var lme=x_.schema,sme=JSONGetParentById(lme,ome);if(sme===lme.definitions){var cme=Object.keys(sme).find(function(dme){var ume;return((ume=sme[dme])===null||ume===void 0?void 0:ume.$$id)===ome});JSONTraverse(lme,function(dme,ume,fme){var pme;return ume==="actionType"&&["dialog","drawer","confirmDialog"].includes(dme)&&((pme=fme[dme==="drawer"?"drawer":"dialog"])===null||pme===void 0?void 0:pme.$ref)===cme&&(lme=JSONDelete(lme,fme.$$id)),dme}),lme=JSONDelete(lme,ome)}else lme=JSONDelete(lme,sme.$$id);this.traceableSetSchema(lme)},updateModal:function(ome,lme,sme){var cme,dme,ume,fme=x_.schema,pme=JSONGetParentById(fme,ome);if(!pme)throw new Error("modal not found");lme=JSONPipeIn(lme),sme&&isPlainObject$b(sme)&&(fme=mergeDefinitions(fme,sme,lme));var hme=(lme.actionType||lme.type)==="drawer"?"drawer":"dialog";if(fme=JSONUpdate(fme,ome,lme,!0),pme.actionType)fme=JSONUpdate(fme,pme.$$id,((cme={actionType:lme.actionType||lme.type,args:void 0,dialog:void 0,drawer:void 0})[hme]=lme,cme));else{var bme=Object.keys(pme).find(function(gme){var yme;return((yme=pme[gme])===null||yme===void 0?void 0:yme.$$id)===ome});JSONTraverse(fme,function(gme,yme,_me){var $me,Cme;return yme==="actionType"&&["dialog","drawer","confirmDialog"].includes(gme)&&((Cme=_me[gme==="drawer"?"drawer":"dialog"])===null||Cme===void 0?void 0:Cme.$ref)===bme&&hme!==(gme==="drawer"?"drawer":"dialog")&&(fme=JSONUpdate(fme,_me.$$id,(($me={actionType:lme.actionType||lme.type,args:void 0,dialog:void 0,drawer:void 0})[hme]=_me[gme==="drawer"?"drawer":"dialog"],$me))),gme})}var mme=[];if(JSONTraverse(lme,function(gme,yme,_me){yme==="$ref"&&_me.$$originId===ome&&mme.push(_me.$$id)}),mme.length){var vme;dme=__read$3(addModal(fme,lme),2),fme=dme[0],vme=dme[1],fme=JSONUpdate(fme,pme.$$id,((ume={})[hme]=JSONPipeIn({$ref:vme}),ume)),mme.forEach(function(gme){fme=JSONUpdate(fme,gme,{$ref:vme,$$originId:void 0})})}this.traceableSetSchema(fme)},openSubEditor:function(ome){var lme=x_.activeId;lme&&(x_.subEditorContext=__assign$3(__assign$3({},ome),{hostNode:x_.getNodeById(lme),data:createObject$1(x_.ctx,extendObject(ome.data,{__curCmptTreeWrap:{label:ome.title,disabled:!0},__superCmptTreeSource:x_.getComponentTreeSource()}))}))},confirmSubEditor:function(ome){var lme,sme=__read$3(ome,1)[0],cme=x_.subEditorContext,dme=cme.onChange,ume=cme.slot,fme=sme.schema,pme=((lme=sme.__pristine)===null||lme===void 0?void 0:lme.schema)||fme;if(ume){var hme=x_.subEditorSlotPath.replace(/(?:\/)/g,".");fme=getVariable(fme,hme),pme=getVariable(pme,hme),Array.isArray(fme)&&fme.length===1&&!Array.isArray(pme)&&(fme=fme[0])}dme(fme,dme.length>1?diff(pme,fme):void 0),x_.subEditorContext=void 0},closeSubEditor:function(){x_.subEditorContext=void 0},subEditorOnChange:function(){$P&&(x_.subEditorContext=__assign$3(__assign$3({},x_.subEditorContext),{canUndo:$P.canUndo(),canRedo:$P.canRedo()}))},undoSubEditor:function(){$P&&$P.undo()},redoSubEditor:function(){$P&&$P.redo()},subEditorRef:function(ome){$P=ome},getSubEditorRef:function(){return $P},openScaffoldForm:function(ome){x_.scaffoldForm=ome,x_.scaffoldStepManipulated=!1},closeScaffoldForm:function(){x_.scaffoldForm=void 0},setScaffoldBuzy:function(ome){x_.scaffoldFormBuzy=!!ome},setScaffoldStep:function(ome){x_.scaffoldFormStep=ome},setScaffoldStepManipulated:function(ome){x_.scaffoldStepManipulated=ome},setScaffoldError:function(ome){ome===void 0&&(ome=""),x_.scaffoldError=ome},updateScaffoldData:function(ome,lme){x_.scaffoldForm&&ome&&(x_.scaffoldForm=__assign$3(__assign$3({},x_.scaffoldForm),{value:lme?ome:__assign$3(__assign$3({},x_.scaffoldForm.value),ome)}))},openPopOverForm:function(ome){x_.popOverForm=ome},closePopOverForm:function(){x_.popOverForm=void 0},openModalForm:function(ome){x_.modalForm=ome,x_.modalMode=(ome==null?void 0:ome.mode)||x_.modalMode,x_.modalFormError=""},closeModalForm:function(){x_.modalForm=void 0},markModalFormBuzy:function(ome){x_.modalFormBuzy=!!ome},setModalFormError:function(ome){ome===void 0&&(ome=""),x_.modalFormError=ome},activeHighlightNodes:function(ome){var lme=this;ome.forEach(function(sme){var cme=x_.getNodeById(sme),dme=cme==null?void 0:cme.getTarget();dme&&(Array.isArray(dme)?dme:[dme]).forEach(function(ume){return ime.observe(ume)})}),setTimeout(function(){lme.calculateHighlightBox(ome)},200)},deActiveHighlightNodes:function(ome){ome.forEach(function(lme){var sme=x_.getNodeById(lme),cme=sme==null?void 0:sme.getTarget();cme&&(Array.isArray(cme)?cme:[cme]).forEach(function(dme){return ime.unobserve(dme)})})},calculateHighlightBox:function(ome){ome===void 0&&(ome=x_.highlightNodes.map(function(lme){return lme.id})),x_.calculateStarted=!0,ome.forEach(function(lme){var sme=x_.getNodeById(lme);sme==null||sme.calculateHighlightBox(x_)})},resetHighlightBox:function(ome){ome.forEach(function(lme){var sme=x_.getNodeById(lme);sme==null||sme.resetHighlightBox(x_)})},updateTargetName:function(){var ome=[];JSONTraverse(x_.schema,function(lme,sme,cme){return sme==="name"&&lme&&cme&&(cme.type==="crud"||cme.type==="form"||cme.type==="page"||cme.type==="service"||cme.type==="chart"||cme.type==="wizard")&&ome.push({type:cme.type,name:lme,editorId:cme.$$id}),lme}),x_.targetNames=ome},traceableSetSchema:function(ome,lme){var sme=x_.schemaHistory.findIndex(function(cme){return cme.versionId===x_.versionId});~sme&&x_.schemaHistory.splice(sme+1,x_.schemaHistory.length-sme-1),lme&&x_.schemaHistory.pop(),x_.schemaHistory.push({versionId:x_.versionId=eme++,schema:ome}),x_.schema=ome,rme()},undo:function(){var ome=x_.schemaHistory.findIndex(function(sme){return sme.versionId===x_.versionId});if(ome>0){var lme=x_.schemaHistory[ome-1];x_.versionId=lme.versionId,x_.schema=lme.schema,rme(),this.autoSelectRoot()}},redo:function(){var ome=x_.schemaHistory.findIndex(function(sme){return sme.versionId===x_.versionId});if(ome<x_.schemaHistory.length-1){var lme=x_.schemaHistory[ome+1];x_.versionId=lme.versionId,x_.schema=lme.schema,rme(),this.autoSelectRoot()}},autoSelectRoot:function(){x_.getSchema(x_.activeId)||this.setActiveId(x_.getRootId())},resetHistory:function(){eme=0,x_.versionId=eme++,x_.schemaHistory.replace([{versionId:x_.versionId,schema:x_.schema}]),this.autoSelectRoot()},applyPatches:function(ome){var lme=x_.schema;ome.forEach(function(sme){var cme,dme;if(sme.op==="update")lme=JSONUpdate(lme,sme.target,sme.value);else if(sme.op==="replace")lme=JSONUpdate(lme,sme.target,sme.value,!0);else if(sme.op==="delete")lme=JSONDelete(lme,sme.target);else if(sme.op==="push"){var ume=(fme=JSONGetById(lme,sme.target))[sme.key];(ume=Array.isArray(ume)?ume.concat():ume?[ume]:[]).push(sme.value),fme=__assign$3(__assign$3({},fme),((cme={})[sme.key]=ume,cme)),lme=JSONUpdate(lme,sme.target,fme)}else if(sme.op==="splice"){var fme;ume=(fme=JSONGetById(lme,sme.target))[sme.key],(ume=Array.isArray(ume)?ume.concat():ume?[ume]:[]).splice.apply(ume,__spreadArray([],__read$3(sme.args),!1)),fme=__assign$3(__assign$3({},fme),((dme={})[sme.key]=ume,dme)),lme=JSONUpdate(lme,sme.target,fme)}}),this.traceableSetSchema(lme)},updateAppLocaleState:function(){x_.appLocaleState+=1},setAppLocale:function(ome){ome&&(x_.appLocale=ome,this.updateAppLocaleState())},setAppCorpusData:function(ome){ome===void 0&&(ome={}),x_.appCorpusData=ome,this.updateAppLocaleState()},beforeDestroy:function(){rme.cancel()}}}),makeAsyncLayer=function(x_,eme){var $P=(eme||{}).fallback,tme=React__default.lazy(function(){return __awaiter(void 0,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,x_()];case 1:return ame=nme.sent(),[2,{default:function(){for(var rme=[],ime=0;ime<arguments.length;ime++)rme[ime]=arguments[ime];return React__default.createElement(React__default.Fragment,null,ame.apply(void 0,__spreadArray([],__read$3(rme),!1)))}}]}})})});return function(ame){return React__default.createElement(React__default.Suspense,{fallback:$P&&React__default.isValidElement($P)?$P:React__default.createElement(Spinner$1,{show:!0,overlay:!0,size:"sm",tip:i18n("e9d4c83c9cdc23c65d11f74866636661"),tipPlacement:"bottom",className:"flex"})},React__default.createElement(tme,__assign$3({},ame)))}};function createEvent(x_,eme){var $P={context:eme,type:x_,prevented:!1,stoped:!1,preventDefault:function(){$P.prevented=!0},stopPropagation:function(){$P.stoped=!0},get data(){return $P.context.data},setData:function(tme){$P.context.data=tme}};return $P}var BasePlugin=function(){function x_(eme){this.manager=eme}return x_.prototype.getRendererInfo=function(eme){var $P=eme.renderer,tme=eme.schema,ame=this;if(tme.$$id&&ame.name&&ame.rendererName&&ame.rendererName===$P.name){var nme=ame.name;return tme!=null&&tme.isFreeContainer?nme=i18n("db805d4e361ac2d3fc6047eaea1a7c69"):tme!=null&&tme.isSorptionContainer&&(nme=i18n("969e9e56b3812abffa3994f35ea31835")),{name:nme,regions:ame.regions,patchContainers:ame.patchContainers,vRendererConfig:ame.vRendererConfig,wrapperProps:ame.wrapperProps,wrapperResolve:ame.wrapperResolve,filterProps:ame.filterProps,$schema:ame.$schema,renderRenderer:ame.renderRenderer,multifactor:ame.multifactor,scaffoldForm:ame.scaffoldForm,disabledRendererPlugin:ame.disabledRendererPlugin,isBaseComponent:ame.isBaseComponent,isListComponent:ame.isListComponent,rendererName:ame.rendererName,memberImmutable:ame.memberImmutable,getSubEditorVariable:ame.getSubEditorVariable}}},x_.prototype.buildEditorPanel=function(eme,$P){var tme,ame,nme,rme,ime,ome,lme=this,sme=this,cme=this.manager.store;if(cme.activeId&&!eme.selections.length){if(!eme.info.hostId&&(sme.panelControls||sme.panelControlsCreator||sme.panelBody||sme.panelBodyCreator||sme.panelBodyAsyncCreator)&&eme.info.plugin===this){var dme=!(!sme.panelBodyAsyncCreator||typeof sme.panelBodyAsyncCreator!="function"),ume=sme.panelBodyAsyncCreator?sme.panelBodyAsyncCreator(eme):sme.panelBodyCreator?sme.panelBodyCreator(eme):sme.panelBody;this.manager.trigger("after-build-panel-body",{context:eme,data:ume,plugin:sme});var fme={definitions:sme.panelDefinitions,submitOnChange:sme.panelSubmitOnChange,api:sme.panelApi,controls:sme.panelControlsCreator?sme.panelControlsCreator(eme):sme.panelControls,justify:sme.panelJustify,panelById:cme.activeId,pipeOut:(ame=(tme=sme.panelFormPipeOut)===null||tme===void 0?void 0:tme.bind)===null||ame===void 0?void 0:ame.call(tme,sme)};$P.push({key:"config",icon:sme.panelIcon||sme.icon||"fa fa-cog",pluginIcon:sme.pluginIcon,title:sme.panelTitle||i18n("e366ccf1556c0672dcecba135ed5472e"),render:dme?makeAsyncLayer(function(){return __awaiter(lme,void 0,void 0,function(){var hme;return __generator(this,function(bme){switch(bme.label){case 0:return[4,ume];case 1:return hme=bme.sent(),[2,this.manager.makeSchemaFormRender(__assign$3(__assign$3({},fme),{body:hme}))]}})})},omit$1(sme.async,"enable")):this.manager.makeSchemaFormRender(__assign$3(__assign$3({},fme),{body:ume}))})}else eme.info.plugin===this&&eme.info.hostId&&(!((nme=sme.vRendererConfig)===null||nme===void 0)&&nme.panelControls||!((rme=sme.vRendererConfig)===null||rme===void 0)&&rme.panelControlsCreator||!((ime=sme.vRendererConfig)===null||ime===void 0)&&ime.panelBody||!((ome=sme.vRendererConfig)===null||ome===void 0)&&ome.panelBodyCreator)&&$P.push({key:eme.info.multifactor?"vconfig":"config",icon:sme.vRendererConfig.panelIcon||"fa fa-cog",title:sme.vRendererConfig.panelTitle||i18n("e366ccf1556c0672dcecba135ed5472e"),render:this.manager.makeSchemaFormRender({submitOnChange:sme.panelSubmitOnChange,api:sme.panelApi,definitions:sme.vRendererConfig.panelDefinitions,controls:sme.vRendererConfig.panelControlsCreator?sme.vRendererConfig.panelControlsCreator(eme):sme.vRendererConfig.panelControls,body:sme.vRendererConfig.panelBodyCreator?sme.vRendererConfig.panelBodyCreator(eme):sme.vRendererConfig.panelBody,justify:sme.vRendererConfig.panelJustify,panelById:cme.activeId})});if(eme.info.plugin===this&&eme.info.multifactor){var pme=eme.node.sameIdChild;pme&&this.manager.collectPanels(pme,!1,!0).forEach(function(hme){var bme,mme;hme.key!=="config"&&hme.key!=="vconfig"||$P.push(__assign$3(__assign$3({},hme),{key:"sub-".concat(hme.key),icon:((mme=(bme=pme.info)===null||bme===void 0?void 0:bme.plugin)===null||mme===void 0?void 0:mme.icon)||hme.icon}))})}}},x_.prototype.buildSubRenderers=function(eme,$P,tme){var ame=this;return Array.isArray(ame.scaffolds)?ame.scaffolds.map(function(nme){var rme,ime,ome,lme,sme,cme,dme,ume;return{name:(rme=nme.name)!==null&&rme!==void 0?rme:ame.name,icon:(ime=nme.icon)!==null&&ime!==void 0?ime:ame.icon,pluginIcon:ame.pluginIcon,description:(ome=nme.description)!==null&&ome!==void 0?ome:ame.description,previewSchema:(lme=nme.previewSchema)!==null&&lme!==void 0?lme:ame.previewSchema,tags:(sme=nme.tags)!==null&&sme!==void 0?sme:ame.tags,docLink:(cme=nme.docLink)!==null&&cme!==void 0?cme:ame.docLink,type:(dme=nme.type)!==null&&dme!==void 0?dme:ame.type,scaffold:(ume=nme.scaffold)!==null&&ume!==void 0?ume:ame.scaffold,scaffoldForm:ame.scaffoldForm,disabledRendererPlugin:ame.disabledRendererPlugin,isBaseComponent:ame.isBaseComponent,rendererName:ame.rendererName}}):ame.name&&ame.description?{searchKeywords:ame.searchKeywords,name:ame.name,icon:ame.icon,description:ame.description,previewSchema:ame.previewSchema,tags:ame.tags,docLink:ame.docLink,type:ame.type,scaffold:ame.scaffold,scaffoldForm:ame.scaffoldForm,disabledRendererPlugin:ame.disabledRendererPlugin,isBaseComponent:ame.isBaseComponent,pluginIcon:ame.pluginIcon,rendererName:ame.rendererName}:void 0},x_.prototype.renderPlaceholder=function(eme,$P,tme){return React__default.createElement("div",{key:$P,className:"wrapper-sm b-a b-light m-b-sm",style:tme,children:React__default.createElement("span",{className:"text-muted",children:eme})})},x_.prototype.getPlugin=function(eme){return find$3(this.manager.plugins,function($P){return typeof eme=="string"?$P.rendererName===eme:$P instanceof eme})},x_.prototype.buildDataSchemas=function(eme,$P,tme,ame){return{type:"string",rawType:RAW_TYPE_MAP[eme.schema.type]||"string",title:typeof eme.schema.label=="string"?eme.schema.label:eme.schema.name,originalValue:eme.schema.value}},x_.prototype.getKeyAndName=function(){return{key:this.rendererName,name:this.name}},x_.scene=["global"],x_}(),LayoutBasePlugin=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.onActive=function($P){var tme,ame=$P.context;if(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)===this&&ame.node){var nme=ame.node,rme=nme.schema||{};rme.isFixedWidth&&nme.setWidthMutable(!0),rme.isFixedHeight&&nme.setHeightMutable(!0)}},eme.prototype.onWidthChangeStart=function($P){return this.onSizeChangeStart($P,"horizontal")},eme.prototype.onHeightChangeStart=function($P){return this.onSizeChangeStart($P,"vertical")},eme.prototype.onSizeChangeStart=function($P,tme){var ame;tme===void 0&&(tme="both");var nme=$P.context,rme=nme.node,ime=nme.store;if(((ame=rme.info)===null||ame===void 0?void 0:ame.plugin)===this){var ome=nme.resizer,lme=nme.dom,sme=ime.getDoc()||document,cme=lme.parentElement.getBoundingClientRect(),dme=lme.getBoundingClientRect(),ume=nme.nativeEvent.pageX,fme=nme.nativeEvent.pageY;$P.setData({onMove:function(pme){var hme=pme.pageY-fme,bme=pme.pageX-ume,mme=Math.max(50,dme.height+hme),vme=Math.max(100,Math.min(dme.width+bme,cme.width)),gme={width:vme,height:mme},yme=sme.querySelector("[data-hlbox-id='".concat(rme.id,"']")),_me=sme.querySelector("[data-editor-id='".concat(rme.id,"']"));tme==="both"?(ome.setAttribute("data-value","".concat(vme,"px x ").concat(mme,"px")),yme.style.height="".concat(mme,"px"),yme.style.width="".concat(vme,"px"),_me.style.height="".concat(mme,"px"),_me.style.width="".concat(vme,"px")):tme==="vertical"?(ome.setAttribute("data-value","".concat(mme,"px")),yme.style.height="".concat(mme,"px"),_me.style.height="".concat(mme,"px"),delete gme.width):(ome.setAttribute("data-value","".concat(vme,"px")),yme.style.width="".concat(vme,"px"),_me.style.width="".concat(vme,"px"),delete gme.height),rme.updateState(gme),requestAnimationFrame(function(){rme.calculateHighlightBox()})},onEnd:function(pme){var hme=pme.pageY-fme,bme=pme.pageX-ume,mme=Math.max(50,dme.height+hme),vme={width:Math.max(100,Math.min(dme.width+bme,cme.width)),height:mme};tme==="vertical"?delete vme.width:tme==="horizontal"&&delete vme.height,ome.removeAttribute("data-value"),rme.updateSchemaStyle(vme),requestAnimationFrame(function(){rme.calculateHighlightBox()})}})}},eme}(BasePlugin),NodeWrapper=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.omitMockProps=["id","$$id","enable","maxDisplayRows"],$P}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame(function(){})},eme.prototype.componentDidUpdate=function($P){this.markDom(this.props.$$editor.id)},eme.prototype.getWrappedInstance=function(){return this.ref},eme.prototype.refFn=function($P){this.ref=$P},eme.prototype.markDom=function($P){var tme,ame,nme=this,rme=reactDomExports.findDOMNode(this);if(rme&&$P){var ime=this.props.$$editor,ome=this.props.$$visible!==!1&&this.props.$$hidden!==!0,lme=ime.wrapperResolve?ime.wrapperResolve(rme):rme;(Array.isArray(lme)?lme:lme?[lme]:[]).forEach(function(sme){sme.setAttribute("data-editor-id",$P),sme.setAttribute("name",nme.props.id),sme.setAttribute("data-visible",ome?"":"false"),sme.setAttribute("data-hide-text",ome?"":i18n("392342f7750a565f9a79c678c6b12421")),ime.regions?sme.setAttribute("data-container",""):sme.removeAttribute("data-container")}),(ame=(tme=ime.plugin)===null||tme===void 0?void 0:tme.markDom)===null||ame===void 0||ame.call(tme,lme,this.props)}},eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.$$editor,rme=ame.$$node,ime=ame.store,ome=__rest$14(ame,["$$editor","$$node","store"]),lme=nme.renderer;nme.filterProps&&(ome=nme.filterProps.call(nme.plugin,ome,rme));var sme=omit$1(($P=ome==null?void 0:ome.editorSetting)===null||$P===void 0?void 0:$P.mock,this.omitMockProps);if(isObject$8(sme)&&!isEmpty(sme)&&(ome=merge$4(ome,sme)),nme.renderRenderer)return nme.renderRenderer.call(nme.plugin,__assign$3(__assign$3(__assign$3(__assign$3(__assign$3(__assign$3({},ome),{store:ime}),rme==null?void 0:rme.state),{$$editor:nme}),nme.wrapperProps),{ref:this.refFn}),nme);var cme=lme.component,dme=((tme=cme.prototype)===null||tme===void 0?void 0:tme.isReactComponent)||cme.$$typeof===Symbol.for("react.forward_ref");return React__default.createElement(cme,__assign$3({},ome,{store:ime},rme==null?void 0:rme.state,{$$editor:nme},nme.wrapperProps,{ref:dme?this.refFn:void 0}))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"refFn",null),eme=__decorate$1([observer],eme)}(React__default.Component),RegionWrapper=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.UNSAFE_componentWillMount=function(){this.parentNode=this.context;var $P=this.props,tme=$P.$$editor,ame=$P.manager;if(!this.parentNode&&tme&&tme.id){var nme=ame.store.getNodeById(tme.id);nme&&(this.parentNode=nme)}this.parentNode&&(this.editorNode=this.parentNode.addChild({id:this.parentNode.id,type:this.parentNode.type,label:this.props.label,path:"".concat(this.parentNode.path,"/").concat(this.props.name),region:this.props.name,regionInfo:this.props.regionConfig,preferTag:this.props.preferTag}))},eme.prototype.componentDidMount=function(){this.editorNode&&isAlive(this.editorNode)&&this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},eme.prototype.componentDidUpdate=function($P){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},eme.prototype.componentWillUnmount=function(){this.editorNode&&isAlive(this.editorNode)&&this.parentNode&&this.parentNode.removeChild(this.editorNode)},eme.prototype.markDom=function($P,tme,ame){var nme=reactDomExports.findDOMNode(this);if(nme){var rme=this.props.wrapperResolve,ime=rme?rme(nme):nme.parentElement;ime.setAttribute("data-region",tme),ime.setAttribute("data-region-host",$P),ame&&ime.setAttribute("data-renderer",ame)}},eme.prototype.render=function(){var $P=this.props.rendererName==="wrapper"||this.props.rendererName==="container",tme=!1;return needFillPlaceholder(this.props)&&(tme=!0),React__default.createElement(EditorNodeContext.Provider,{value:this.editorNode},this.props.children,React__default.createElement("span",{className:"ae-Region-placeholder ".concat($P?"layout-content":""," ").concat(tme?"fill-placeholder":"")},this.props.placeholder||this.props.label))},eme.contextType=EditorNodeContext,eme}(React__default.Component),ContainerWrapper=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.getWrappedInstance=function(){return this.ref},eme.prototype.refFn=function($P){this.ref=$P},eme.prototype.renderChild=function($P,tme,ame){var nme=this.props,rme=nme.render,ime=nme.$$editor,ome=nme.$$node,lme=rme($P,tme,ame);if(ome!=null&&ome.memberImmutable($P))return lme;var sme=find$3(ime.regions,function(dme){return dme.key===$P&&!dme.matchRegion&&!dme.renderMethod});if(sme){var cme=sme.wrapper||RegionWrapper;return React__default.createElement(cme,{key:ame==null?void 0:ame.key,preferTag:sme.preferTag,name:sme.key,label:sme.label,placeholder:sme.placeholder,regionConfig:sme,editorStore:ime.plugin.manager.store,wrapperResolve:sme.wrapperResolve,manager:ime.plugin.manager,children:lme,rendererName:ime.renderer.name,$$editor:ime,node:ome})}return lme},eme.prototype.render=function(){var $P=this.props,tme=$P.$$editor,ame=$P.$$node,nme=__rest$14($P,["$$editor","$$node"]),rme={},ime=tme.plugin.manager.store;return tme.id&&(ime.isActive(tme.id)||ime.dropId===tme.id)&&Array.isArray(tme.regions)&&tme.regions.forEach(function(ome){var lme=ome.key;if(!ome.optional&&!(ame!=null&&ame.memberImmutable(lme))){var sme=[];lme!=="actions"||nme.submitText!==void 0&&!nme.submitText||(sme=[{type:"submit",label:nme.submitText||i18n("939d5345ad4345dbaabe14798f6ac0f1"),primary:!0}]);var cme=Array.isArray(nme[lme])?nme[lme]:nme[lme]?[nme[lme]]:sme;cme.length||(cme=cme.concat()).push({children:function(){return null}}),rme[lme]=cme}}),React__default.createElement(NodeWrapper,__assign$3({},nme,rme,{$$editor:tme,$$node:ame,render:this.renderChild,ref:this.refFn}))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"refFn",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderChild",null),eme=__decorate$1([observer],eme)}(React__default.Component),CommonConfigWrapper=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.componentWillUnmount=function(){var $P=reactDomExports.findDOMNode(this);if($P){var tme=this.props.$$editor,ame=tme.wrapperResolve?tme.wrapperResolve($P):$P;(Array.isArray(ame)?ame:ame?[ame]:[]).forEach(function(nme){nme.classList.remove("ae-Editor-common-config")})}},eme.prototype.markDom=function($P){var tme=reactDomExports.findDOMNode(this);if(tme&&$P){var ame=this.props.$$editor,nme=ame.wrapperResolve?ame.wrapperResolve(tme):tme;this.props.$$commonSchema&&(Array.isArray(nme)?nme:nme?[nme]:[]).forEach(function(rme){rme.setAttribute("data-editor-id",$P),rme.classList.add("ae-Editor-common-config")})}},eme.prototype.render=function(){var $P=this.props,tme=$P.$$editor,ame=$P.$$node,nme=$P.$schema,rme=$P.store,ime=__rest$14($P,["$$editor","$$node","$schema","store"]),ome=tme.renderer;if(ime=JSONPipeOut(ime,!1),tme.filterProps&&(ime=tme.filterProps.call(tme.plugin,ime,ame)),tme.renderRenderer)return tme.renderRenderer.call(tme.plugin,__assign$3(__assign$3(__assign$3(__assign$3({},ime),{store:rme,$schema:nme,$$editor:tme}),tme.wrapperProps),{ref:this.refFn}),tme);var lme=ome.component;return React__default.createElement(lme,__assign$3({},ime,{store:rme,$schema:nme,$$editor:tme},tme.wrapperProps,{ref:this.refFn}))},eme}(NodeWrapper);function SchemaFrom(x_){var eme=this,$P=x_.propKey,tme=x_.body,ame=x_.definitions,nme=x_.controls,rme=x_.onChange,ime=x_.value,ome=x_.env,lme=x_.api,sme=x_.popOverContainer,cme=x_.submitOnChange,dme=x_.node,ume=x_.manager,fme=x_.justify,pme=x_.ctx,hme=x_.pipeIn,bme=x_.pipeOut,mme=x_.readonly,vme=React__default.useMemo(function(){var xme,Tme="body";Array.isArray(nme)&&(tme=nme,Tme="controls"),tme=Array.isArray(tme)?tme.concat():[],cme===!1&&tme.push({type:"submit",label:i18n("be5fbbe34ce9979bfb6576d9eddc5612"),level:"primary",block:!0,className:"ae-Settings-actions"});var Ome=((xme={key:$P,definitions:ame})[Tme]=tme,xme.className=cx$1("config-form-content","ae-Settings-content","hoverShowScrollBar",cme===!1?"with-actions":""),xme.wrapperComponent="div",xme.type="form",xme.title="",xme.mode="normal",xme.api=lme,xme.wrapWithPanel=!1,xme.submitOnChange=cme!==!1,xme.messages={validateFailed:""},xme);return fme&&(Ome.mode="horizontal",Ome.horizontal={left:4,right:8,justify:!0}),Ome},[tme,nme,cme]),gme=React__default.useMemo(function(){return getThemeConfig()},[]),yme=React__default.useRef([]),_me=React__default.useCallback(function(xme,Tme){Tme===void 0&&(Tme=!1);var Ome=xme,Rme=function(){yme.current=yme.current.filter(function(Nme){var Ime;return((Ime=Nme.__raw)!==null&&Ime!==void 0?Ime:Nme)!==Ome})};return Tme&&(xme=function(Nme,Ime,Pme,Mme){var kme=Ome(Nme,Ime,Pme,Mme);return Rme(),kme},xme.__raw=Ome),yme.current.push(xme),Rme},[]),$me=__read$3(React__default.useState(!0),2),Cme=$me[0],Sme=$me[1],Eme=React__default.useMemo(function(){ime=ime||{};var xme=hme?hme(ime):ime;return createObjectFromChain(__spreadArray([pme,gme],__read$3(extractObjectChain(xme)),!1))},[ime,gme,pme]);return render$2(vme,{onFinished:function(xme,Tme,Ome){return __awaiter(eme,void 0,void 0,function(){var Rme,Nme;return __generator(this,function(Ime){switch(Ime.label){case 0:return bme?[4,bme(xme,ime)]:[3,2];case 1:return Rme=Ime.sent(),[3,3];case 2:Rme=xme,Ime.label=3;case 3:return(Nme=diff(ime,xme=Rme))?mme&&!Cme?(toast.error("不支持修改"),Ome.setPristine(ime),Ome.reset(),[2]):(Sme(!1),rme(xme,Nme,function(Pme,Mme,kme,Bme){return yme.current.reduce(function(Dme,jme){return jme(Dme,Mme,kme,Bme)},Pme)}),[2]):[2]}})})},data:Eme,node:dme,manager:ume,popOverContainer:sme,subscribeSchemaSubmit:_me},__assign$3({},omit$1(ome,"replaceText")))}var FormConfigWrapper=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.componentWillUnmount=function(){var $P=reactDomExports.findDOMNode(this);if($P){var tme=this.props.$$editor,ame=tme.wrapperResolve?tme.wrapperResolve($P):$P;(Array.isArray(ame)?ame:ame?[ame]:[]).forEach(function(nme){nme.classList.remove("ae-Editor-form-config")})}},eme.prototype.markDom=function($P){var tme=reactDomExports.findDOMNode(this);if(tme&&$P){var ame=this.props.$$editor,nme=ame.wrapperResolve?ame.wrapperResolve(tme):tme;this.props.$$formSchema&&(Array.isArray(nme)?nme:nme?[nme]:[]).forEach(function(rme){rme.setAttribute("data-editor-id",$P),rme.classList.add("ae-Editor-form-config")})}},eme.prototype.render=function(){var $P=this.props,tme=$P.$$editor,ame=$P.$$node,nme=$P.$schema,rme=$P.store,ime=__rest$14($P,["$$editor","$$node","$schema","store"]),ome=tme.renderer;if(ime=JSONPipeOut(ime,!1),tme.filterProps&&(ime=tme.filterProps.call(tme.plugin,ime,ame)),tme.renderRenderer)return tme.renderRenderer.call(tme.plugin,__assign$3(__assign$3(__assign$3(__assign$3({},ime),{store:rme,$schema:nme,$$editor:tme}),tme.wrapperProps),{ref:this.refFn}),tme);var lme=ome.component;return React__default.createElement(lme,__assign$3({},ime,{store:rme,$schema:nme,$$editor:tme},tme.wrapperProps,{ref:this.refFn}))},eme}(NodeWrapper);function makeWrapper(x_,eme,$P){var tme=x_.store,ame=$P.component,nme=function(rme){function ime(){return rme!==null&&rme.apply(this,arguments)||this}return __extends$2(ime,rme),ime.prototype.UNSAFE_componentWillMount=function(){var ome,lme,sme=this,cme=this.context||tme.root;if(eme.id&&(this.editorNode=cme.addChild({id:eme.id,type:eme.type,label:eme.name,isCommonConfig:!!this.props.$$commonSchema,isFormConfig:!!this.props.$$formSchema,path:this.props.$path,schemaPath:eme.schemaPath,dialogTitle:eme.dialogTitle,dialogType:eme.dialogType,info:eme,getData:function(){return sme.props.data}}),this.editorNode.setRendererConfig($P),($P.storeType||eme.isListComponent)&&!x_.dataSchema.hasScope("".concat(eme.id,"-").concat(eme.type)))){for(var dme=cme,ume=void 0;dme&&!ume;)dme===tme.root?ume=x_.dataSchema.getScope("root"):x_.dataSchema.hasScope("".concat(dme.id,"-").concat(dme.type))&&(ume=x_.dataSchema.getScope("".concat(dme.id,"-").concat(dme.type))),dme=dme.parentId==="root"?tme.root:dme.parent;if(!ume)throw new Error(i18n("186733ed7ec817040b8f9cbc610ba49a"));if(x_.dataSchema.switchTo(ume.id),this.scopeId="".concat(eme.id,"-").concat(eme.type),x_.dataSchema.addScope([],this.scopeId),eme.name){var fme=(ome=x_.store.getNodeById(eme.id))===null||ome===void 0?void 0:ome.schema,pme=appTranslate((lme=fme==null?void 0:fme.title)!==null&&lme!==void 0?lme:fme==null?void 0:fme.name);x_.dataSchema.current.tag="".concat(eme.name).concat(pme&&typeof pme=="string"?" : ".concat(pme):""),x_.dataSchema.current.group=i18n("813a5158d9f7171d20e7df340c5b48f9")}}},ime.prototype.componentDidUpdate=function(ome){var lme=this.props;this.editorNode&&lme.$$commonSchema!==ome.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema),this.editorNode&&lme.$$formSchema!==ome.$$formSchema&&this.editorNode.updateIsFormConfig(!!this.props.$$formSchema)},ime.prototype.componentWillUnmount=function(){this.editorNode&&isAlive(this.editorNode)&&(this.context||tme.root).removeChild(this.editorNode),this.scopeId&&x_.dataSchema.removeScope(this.scopeId)},ime.prototype.wrapperRef=function(ome){for(var lme,sme,cme=this,dme=ome;dme!=null&&dme.getWrappedInstance;)dme=dme.getWrappedInstance();dme&&!dme.props?Object.defineProperty(dme,"props",{get:function(){return cme.props}}):!dme&&ome&&(dme={},Object.defineProperty(dme,"props",{get:function(){return cme.props}})),this.editorNode&&isAlive(this.editorNode)&&(this.editorNode.setComponent(dme),(sme=(lme=eme.plugin)===null||lme===void 0?void 0:lme.componentRef)===null||sme===void 0||sme.call(lme,this.editorNode,dme))},ime.prototype.renderChild=function(ome,lme,sme){var cme=this.props.render;return lme!=null&&lme.$$id&&((sme=sme||{}).key="".concat(sme.key,"-").concat(lme.$$id)),cme(ome,lme,__assign$3(__assign$3({},sme),{$$editor:eme}))},ime.prototype.render=function(){var ome=this.props;ome.$$id;var lme=__rest$14(ome,["$$id"]),sme=this.props.$$commonSchema?CommonConfigWrapper:this.props.$$formSchema?FormConfigWrapper:eme.regions?ContainerWrapper:NodeWrapper;return React__default.createElement(EditorNodeContext.Provider,{value:this.editorNode||this.context},React__default.createElement(ErrorBoundary,{customErrorMsg:"拦截到".concat(eme.type,"渲染错误"),fallback:function(){return React__default.createElement("div",{className:"renderer-error-boundary"},eme==null?void 0:eme.type,i18n("e9a11b908a9b4f3d9dc947d9a64c0dab"))}},React__default.createElement(sme,__assign$3({},lme,{render:this.renderChild,$$editor:eme,$$node:this.editorNode,ref:this.wrapperRef}))))},ime.displayName=ame.displayName,ime.propsList=(ame&&ame.propsList||[]).concat(["$$id"]),ime.contextType=EditorNodeContext,__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],ime.prototype,"wrapperRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object,Object]),__metadata("design:returntype",void 0)],ime.prototype,"renderChild",null),ime=__decorate$1([observer],ime)}(React__default.Component);return nme}function makeSchemaFormRender(x_,eme){var $P=__assign$3(__assign$3({},x_.env),{session:"schema-form"}),tme=memoize$4(function(ame){return ame?flatten$4(Array.isArray(ame)?ame:[ame]):void 0});return function(ame){var nme=ame.value,rme=ame.onChange,ime=ame.popOverContainer,ome=ame.id,lme=ame.store,sme=ame.node,cme=ame.readonly,dme=__assign$3({},x_.store.ctx);if(eme!=null&&eme.panelById&&(eme==null?void 0:eme.panelById)!==(sme==null?void 0:sme.id))return React__default.createElement(React__default.Fragment,null);ome&&Object.defineProperty(dme,"__props__",{get:function(){var hme,bme=lme.getNodeById(ome);return((hme=bme==null?void 0:bme.getComponent())===null||hme===void 0?void 0:hme.props)||{}}});var ume="".concat(ome,"-").concat(sme==null?void 0:sme.type).concat(eme.formKey?"-":"").concat(eme.formKey?eme.formKey:""),fme=tme(eme.body),pme=tme(eme.controls);return React__default.createElement(SchemaFrom,{key:ume,propKey:ume,api:eme.api,definitions:eme.definitions,body:fme,controls:pme,value:nme,ctx:dme,pipeIn:eme.pipeIn,pipeOut:eme.pipeOut,submitOnChange:eme.submitOnChange,onChange:rme,env:$P,popOverContainer:ime,node:sme,manager:x_,justify:eme.justify,readonly:cme})}}function hackIn(x_,eme,$P){for(var tme=x_.Renderer;tme.ComposedComponent;)tme=tme.ComposedComponent;var ame=tme.prototype;if(Array.isArray(eme)){var nme=groupBy$1(eme,function(rme){return rme.renderMethod});Object.keys(nme).forEach(function(rme){var ime;if(!ame["__".concat(rme)]&&ame[rme]){var ome,lme,sme=nme[rme],cme=(ime=sme[0])===null||ime===void 0?void 0:ime.renderMethodOverride;ame["__".concat(rme)]=ame[rme],ame[rme]=(ome=ame["__".concat(rme)],lme=(cme==null?void 0:cme(sme.concat(),insertRegion))||function(){for(var dme=[],ume=0;ume<arguments.length;ume++)dme[ume]=arguments[ume];var fme=this.props.$$editor,pme=this.super.apply(this,dme);if(fme&&(!this.props.$$commonSchema||!this.props.$$formSchema)&&Array.isArray(fme.regions)&&sme.every(function(bme){return find$3(fme.regions,function(mme){return mme.key===bme.key})})){var hme=sme.map(function(bme){var mme=find$3(fme.regions,function(vme){return vme.key===bme.key&&(!bme.rendererName||bme.rendererName===vme.rendererName)});return mme?__assign$3(__assign$3({},bme),{label:mme.label,preferTag:mme.preferTag}):bme});return insertRegion(this,pme,hme,fme,fme.plugin.manager)}return pme},typeof ome!="function"?ome:function(){var dme=this.super;this.super=ome.bind(this);var ume=lme.apply(this,arguments);return this.super=dme,ume})}})}else $P&&Object.keys($P).forEach(function(rme){var ime,ome;ame["__".concat(rme)]||typeof ame[rme]!="function"||(ame["__".concat(rme)]=ame[rme],ame[rme]=(ime=ame["__".concat(rme)],ome=$P[rme],typeof ime!="function"?ime:function(){var lme=this.super;this.super=ime.bind(this);var sme=ome.apply(this,arguments);return this.super=lme,sme}))})}function getMatchedRegion(x_,eme,$P){var tme=-1,ame=void 0;return $P.some(function(nme,rme){return!!nme.matchRegion(eme,x_)&&(tme=rme,ame=nme,!0)}),[ame,tme]}function insertRegion(x_,eme,$P,tme,ame){if(tme.memberImmutable===!0||Array.isArray(tme.memberImmutable)&&$P.every(function(cme){return tme.memberImmutable.includes(cme.key)}))return eme;var nme=find$3($P,function(cme){return!cme.matchRegion});if(nme){var rme=nme.wrapper||RegionWrapper;return nme.insertPosition==="inner"&&React__default.isValidElement(eme)?React__default.cloneElement(eme,{children:React__default.createElement(rme,{key:nme.key,preferTag:nme.preferTag,name:nme.key,label:nme.label,placeholder:nme.placeholder,regionConfig:nme,editorStore:ame.store,manager:ame,children:eme.props.children,wrapperResolve:nme.wrapperResolve,rendererName:tme.renderer.name})}):React__default.createElement(rme,{key:nme.key,preferTag:nme.preferTag,name:nme.key,label:nme.label,placeholder:nme.placeholder,regionConfig:nme,editorStore:ame.store,manager:ame,children:eme,wrapperResolve:nme.wrapperResolve,rendererName:tme.renderer.name})}if($P.length){var ime=__read$3(getMatchedRegion(x_,eme,$P),2),ome=ime[0],lme=ime[1];if(ome){if(rme=ome.wrapper||RegionWrapper,$P.splice(lme,1),ome.insertPosition==="outter")return React__default.createElement(rme,{key:ome.key,preferTag:ome.preferTag,name:ome.key,label:ome.label,placeholder:ome.placeholder,regionConfig:ome,editorStore:ame.store,manager:ame,children:eme,wrapperResolve:ome.wrapperResolve});if(React__default.isValidElement(eme)){var sme=eme.props.children;return React__default.cloneElement(eme,{children:React__default.createElement(rme,{key:ome.key,preferTag:ome.preferTag,name:ome.key,label:ome.label,placeholder:ome.placeholder,regionConfig:ome,editorStore:ame.store,manager:ame,children:sme,wrapperResolve:ome.wrapperResolve})})}}else if(React__default.isValidElement(eme)&&eme.props.children)return sme=eme.props.children,sme=Array.isArray(sme)?sme.map(function(cme){return insertRegion(x_,cme,$P,tme,ame)}):insertRegion(x_,sme,$P,tme,ame),React__default.cloneElement(eme,{children:sme})}return eme}function mapReactElement(x_,eme,$P){if(!React__default.isValidElement(x_))return x_;var tme=eme(x_,$P);if(tme===x_&&x_.props.children){var ame=x_.props.children;if(Array.isArray(ame)){var nme=[],rme=!1;ame.forEach(function(ome,lme){var sme=mapReactElement(ome,eme,lme);sme!==ome&&(rme=!0,React__default.isValidElement(sme)&&!sme.key&&(sme=React__default.cloneElement(sme,{key:lme}))),nme.push(sme)}),rme&&(tme=React__default.cloneElement(tme,{children:nme}))}else{var ime=mapReactElement(ame,eme,$P);ime!==ame&&(tme=React__default.cloneElement(tme,{children:ime}))}}return tme}var thumbHost=document.createElement("div");function renderThumbToGhost(x_,eme,$P,tme){x_.innerHTML="";var ame=eme.host.getComponent(),nme=(ame==null?void 0:ame.renderControl)&&eme.region==="body";try{reactDomExports.render(render$2({children:function(ime){var ome=ime.render;return nme?ome("",{type:"form",wrapWithPanel:!1,mode:ame.props.mode,body:[$P]}):ome(eme.region,$P)}},{},__assign$3(__assign$3({},tme.env),{theme:(ame==null?void 0:ame.props.theme)||tme.env.theme,session:"ghost-thumb"}),""),thumbHost)}catch{}var rme=thumbHost.innerHTML||i18n("f942c7a6a35c4eb1381d2966462d0489");x_.innerHTML=rme,reactDomExports.unmountComponentAtNode(thumbHost),thumbHost.innerHTML=""}var env={updateLocation:function(){},jumpTo:function(){toast.info(i18n("245897371cda2055f5c17c6cf298ed48"))},fetcher:function(x_){return __awaiter(void 0,void 0,void 0,function(){var eme,$P,tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return eme=x_.url,$P=x_.method,tme=x_.data,ame=x_.config,nme=x_.headers,(ame=ame||{}).url=eme,ame.withCredentials=!0,ame.cancelExecutor&&(ame.cancelToken=new axios$1.CancelToken(ame.cancelExecutor)),ame.headers=nme?__assign$3(__assign$3({},ame.headers),nme):(ime=ame.headers)!==null&&ime!==void 0?ime:{},ame.method=$P,ame.data=tme,$P==="get"&&tme?ame.params=tme:tme&&tme instanceof FormData||!tme||typeof tme=="string"||tme instanceof Blob||tme instanceof ArrayBuffer||(tme=JSON.stringify(tme),ame.headers["Content-Type"]="application/json"),[4,axios$1(ame)];case 1:return rme=ome.sent(),[4,attachmentAdpator(rme,function(lme){return lme},x_)];case 2:return[2,rme=ome.sent()]}})})},isCancel:function(x_){return axios$1.isCancel(x_)},alert,confirm,notify:function(x_,eme){toast[x_]?toast[x_](eme,i18n(x_==="error"?"a71002967924a83e32b38a80705290fb":"058ebdf2884474ebff2977ba2f0e275e")):console.warn("[Notify]",x_,eme)},forceSilenceInsideError:!1},DefaultDNDMode=function(){function x_(eme,$P){this.dnd=eme,this.region=$P,this.exchangeX=0,this.exchangeY=0,this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat($P.region,'"][data-region-host="').concat($P.id,'"]'))}return x_.prototype.enter=function(eme,$P){var tme=this.dnd.dragElement;if(tme&&tme.closest("[data-region]")===this.dndContainer){var ame=Array.isArray(this.region.schema)?this.region.schema:[],nme=this.getChild(this.dndContainer,tme),rme=tme.getAttribute("data-editor-id"),ime=findIndex$3(ame,function(cme){return cme.$$id===rme});~ime&&ame[ime+1]&&(this.dropBeforeId=ame[ime+1].$$id),this.dndContainer.insertBefore($P,nme);var ome=tme.outerHTML.replace("ae-is-draging","").replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,"");$P.innerHTML=ome}else{var lme=this.dnd.manager,sme=lme.store;renderThumbToGhost($P,this.region,translateSchema(sme.dragSchema),lme),this.dndContainer.appendChild($P)}},x_.prototype.leave=function(eme,$P){this.dndContainer.removeChild($P)},x_.prototype.over=function(eme,$P){var tme,ame,nme=this.getTarget(eme),rme=this.dndContainer,ime=this.region.schema,ome=Array.isArray(ime)?ime:[],lme=eme.clientX-this.exchangeX,sme=eme.clientY-this.exchangeY,cme=Math.abs(sme)>Math.abs(lme),dme=this.dnd.manager.store;if(nme&&!Animation.animating){var ume=nme.getAttribute("data-editor-id"),fme=this.getChild(rme,nme),pme=findIndex$3(ome,function(mme){return mme.$$id===ume}),hme=Array.prototype.indexOf.call(rme.children,$P),bme=Array.prototype.indexOf.call(rme.children,fme);~hme&&hme>bme&&(!this.exchangeY||(cme?sme<0:lme<0))?(this.exchangeX=eme.clientX,this.exchangeY=eme.clientY,this.dropBeforeId=(tme=ome[pme])===null||tme===void 0?void 0:tme.$$id,hme!==bme-1&&(Animation.capture(rme),rme.insertBefore($P,fme),Animation.animateAll(dme.calculateHighlightBox))):~hme&&hme<bme&&(!this.exchangeY||(cme?sme>0:lme>0))&&(this.exchangeX=eme.clientX,this.exchangeY=eme.clientY,ome[pme+1]?this.dropBeforeId=(ame=ome[pme+1])===null||ame===void 0?void 0:ame.$$id:delete this.dropBeforeId,hme!==bme+1&&(Animation.capture(rme),rme.insertBefore($P,fme.nextSibling),Animation.animateAll(dme.calculateHighlightBox)))}$P.parentNode!==rme&&(delete this.dropBeforeId,Animation.capture(rme),rme.appendChild($P),Animation.animateAll(dme.calculateHighlightBox))},x_.prototype.getDropBeforeId=function(){return this.dropBeforeId},x_.prototype.getTarget=function(eme){for(var $P,tme,ame=eme.target.closest("[data-editor-id]");ame;){if((($P=ame.parentElement)===null||$P===void 0?void 0:$P.closest("[data-region]"))===this.dndContainer)return ame.getAttribute("data-renderer")==="grid"?ame.parentElement:ame;ame=((tme=ame.parentElement)===null||tme===void 0?void 0:tme.closest("[data-editor-id]"))||null}return null},x_.prototype.getChild=function(eme,$P){for(var tme=$P;tme&&tme.parentElement!==eme;)tme=tme.parentElement;return tme},x_.prototype.dispose=function(){delete this.dropBeforeId},x_}(),PositionHDNDMode=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.enter=function($P,tme){tme.innerHTML="",tme.classList.add("use-position"),tme.classList.add("is-horizontal");var ame=this.dnd.dragElement,nme=this.dndContainer.getBoundingClientRect(),rme=Array.isArray(this.region.schema)?this.region.schema:[];if(ame&&ame.closest("[data-region]")===this.dndContainer){var ime=ame.getAttribute("data-editor-id"),ome=findIndex$3(rme,function(sme){return sme.$$id===ime});if(~ome&&rme[ome+1]&&(this.dropBeforeId=rme[ome+1].$$id),ame.nextElementSibling){var lme=ame.nextElementSibling.getBoundingClientRect();tme.style.cssText+="top: 0; left: ".concat(lme.x-nme.x,"px;")}else tme.style.cssText+="top: 0; left: 100%;"}else tme.style.cssText+="top: 0; left: -999999%;";this.dndContainer.appendChild(tme)},eme.prototype.leave=function($P,tme){tme.classList.remove("use-position"),tme.classList.remove("is-horizontal")},eme.prototype.over=function($P,tme){var ame,nme,rme=this.getTarget($P);if(rme){if(((ame=this.dndContainer)===null||ame===void 0?void 0:ame.getAttribute("data-renderer"))==="table"){var ime=(nme=rme.parentElement)===null||nme===void 0?void 0:nme.closest("th[data-editor-id], td[data-editor-id]");ime&&this.dndContainer.contains(ime)&&(rme=ime)}var ome=this.dndContainer.getBoundingClientRect();!Array.isArray(this.region.schema)||this.region.schema;var lme=rme.getBoundingClientRect();rme.nextElementSibling&&rme.nextElementSibling.hasAttribute("data-editor-id")?(tme.style.cssText+="left: ".concat(lme.x-ome.x,"px;"),this.dropBeforeId=rme.getAttribute("data-editor-id")):$P.clientX>lme.x+lme.width/2?(tme.style.cssText+="top: 0; left: ".concat(lme.right-ome.x,"px;"),delete this.dropBeforeId):(tme.style.cssText+="left: ".concat(lme.x-ome.x,"px;"),this.dropBeforeId=rme.getAttribute("data-editor-id"))}},eme}(DefaultDNDMode),className="PushHighlight",FlexDNDMode=function(){function x_(eme,$P,tme){this.dnd=eme,this.region=$P,this.maxRolLength=4,this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat($P.region,'"][data-region-host="').concat($P.id,'"]')),this.maxRolLength=tme.regionNode.maxRolLength||4}return x_.prototype.enter=function(eme,$P){var tme=this,ame=this.dnd.dragElement,nme=Array.isArray(this.region.schema)?this.region.schema:[],rme=this.dnd.manager;if(this.store=rme.store,nme.length===0)if(ame&&ame.closest("[data-region]")===this.dndContainer){var ime=this.getChild(this.dndContainer,ame);this.dndContainer.insertBefore($P,ime);var ome=ame.outerHTML.replace("ae-is-draging","").replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,"");$P.innerHTML=ome}else renderThumbToGhost($P,this.region,translateSchema(this.store.dragSchema),rme),this.dndContainer.appendChild($P);else $P.innerHTML="",this.dndContainer.appendChild($P);this.dragId=this.store.dragId,this.dragNode=find$3(nme,function(lme){return lme.$$id===tme.dragId})||this.store.dragSchema},x_.prototype.leave=function(eme,$P){this.dndContainer.removeChild($P),this.clearGhostStyle($P)},x_.prototype.over=function(eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme=this.store.isMobile,gme=eme.target.closest('[role="flex-col"]'),yme=this.dndContainer,_me=this.region.schema,$me=yme.getBoundingClientRect(),Cme=$me.x,Sme=$me.y,Eme=Array.isArray(_me)?_me:[];if(this.clearGhostStyle($P),gme&&Eme.length){var xme=gme.getBoundingClientRect(),Tme=xme.width,Ome=xme.height,Rme=xme.x,Nme=xme.y,Ime=eme.clientX,Pme=eme.clientY,Mme=Tme/8,kme=Ome/2,Bme=this.getTarget(gme).getAttribute("data-editor-id"),Dme=findIndex$3(Eme,function(Yme){return Yme.$$id===Bme}),jme=Eme[Dme].row,Vme=Eme.filter(function(Yme){return Yme.row===jme}).length,Wme=this.dragId!==Bme&&((tme=this.dragNode)===null||tme===void 0?void 0:tme.$$dragMode)!=="hv"&&((ame=Eme[Dme])===null||ame===void 0?void 0:ame.$$dragMode)!=="hv"&&(Vme<this.maxRolLength||((nme=this.dragNode)===null||nme===void 0?void 0:nme.row)===jme)&&!vme;if(Ime<Rme+Mme&&Wme)$P.classList.add("ae-".concat(className,"-left")),$P.style.left=Rme-Cme+"px",$P.style.top=Nme-Sme+"px",$P.style.height=Ome+"px",this.dropBeforeId=Bme,this.position="left";else if(Ime>Rme+7*Mme&&Wme)$P.classList.add("ae-".concat(className,"-right")),$P.style.left=Rme-Cme+Tme+"px",$P.style.top=Nme-Sme+"px",$P.style.height=Ome+"px",this.dropBeforeId=(ime=Eme[((rme=Eme[Dme+1])===null||rme===void 0?void 0:rme.$$id)===this.dragId?Dme+2:Dme+1])===null||ime===void 0?void 0:ime.$$id,this.position="right";else if(Pme<Nme+kme){if(this.store.isMobile&&(((ome=this.dragNode)===null||ome===void 0?void 0:ome.$$dragMode)!=="hv"||((lme=Eme[Dme])===null||lme===void 0?void 0:lme.$$dragMode)!=="hv")&&Eme[Dme].row===((sme=Eme[Dme-1])===null||sme===void 0?void 0:sme.row))return delete this.position,void delete this.dropBeforeId;if($P.classList.add("ae-".concat(className,"-top")),$P.style.width="100%",$P.style.top=Nme-Sme+"px",this.store.isMobile)this.dropBeforeId=Bme;else{var Lme=findIndex$3(Eme,function(Yme){return Yme.row===jme}),zme=((cme=Eme[Lme])===null||cme===void 0?void 0:cme.$$id)===this.dragId?Lme+1:Lme;this.dropBeforeId=(dme=Eme[zme])===null||dme===void 0?void 0:dme.$$id}this.position="top"}else{if(this.store.isMobile&&(((ume=this.dragNode)===null||ume===void 0?void 0:ume.$$dragMode)!=="hv"||((fme=Eme[Dme])===null||fme===void 0?void 0:fme.$$dragMode)!=="hv")&&Eme[Dme].row===((pme=Eme[Dme+1])===null||pme===void 0?void 0:pme.row))return delete this.position,void delete this.dropBeforeId;if($P.classList.add("ae-".concat(className,"-bottom")),$P.style.width="100%",$P.style.top=Nme-Sme+Ome+"px",this.store.isMobile)this.dropBeforeId=(hme=Eme[Dme+1])===null||hme===void 0?void 0:hme.$$id;else{var Ume=findLastIndex$1(Eme,function(Yme){return Yme.row===jme});zme=((bme=Eme[Ume+1])===null||bme===void 0?void 0:bme.$$id)===this.dragId?Ume+2:Ume+1,this.dropBeforeId=(mme=Eme[zme])===null||mme===void 0?void 0:mme.$$id}this.position="bottom"}}else{if(this.dropBeforeId=void 0,Eme.length){var Gme=yme.querySelectorAll('[role="flex-row"]'),Jme=Gme[Gme.length-1].getBoundingClientRect();Nme=Jme.y,Ome=Jme.height,$P.classList.add("ae-".concat(className,"-bottom")),$P.style.width="100%",$P.style.top=Nme-Sme+Ome+"px"}this.position="bottom"}},x_.prototype.clearGhostStyle=function(eme){eme.style.left="",eme.style.top="",eme.style.right="",eme.style.bottom="",eme.style.width="",eme.style.height="",eme.classList.remove("ae-".concat(className,"-left")),eme.classList.remove("ae-".concat(className,"-right")),eme.classList.remove("ae-".concat(className,"-top")),eme.classList.remove("ae-".concat(className,"-bottom"))},x_.prototype.getDropBeforeId=function(){return this.dropBeforeId},x_.prototype.getTarget=function(eme){return eme==null?void 0:eme.querySelector("[data-editor-id]")},x_.prototype.getChild=function(eme,$P){for(var tme=$P;tme&&tme.parentElement!==eme;)tme=tme.parentElement;return tme},x_.prototype.dispose=function(){delete this.dropBeforeId,delete this.position},x_.prototype.getDropPosition=function(){return this.position},x_.prototype.interruptionDrop=function(){return!this.dropBeforeId&&!this.position},x_}(),toastWarning=debounce$6(function(x_){toast.warning(x_)},500),EditorDNDManager=function(){function x_(eme,$P){this.manager=eme,this.store=$P,this.toDispose=[],this.dragEnterCount=0,this.lastX=0,this.lastY=0,this.startX=0,this.startY=0,this.toDispose.push(reactionWithOldValue(function(){return $P.dragType==="schema"?$P.dragId:""},this.updateDragElements),reactionWithOldValue(function(){return{id:$P.dropId,region:$P.dropRegion}},this.updateDropRegion)),this.dragGhost=document.createElement("div"),this.dragGhost.classList.add("ae-DragGhost"),this.dragGhost.classList.add("is-ghost")}return x_.prototype.createDragImage=function(eme,$P){var tme=document.createElement("div");return tme.classList.add("ae-DragImage"),tme.innerHTML="<span>".concat(($P==null?void 0:$P.label)||eme,"</span>"),document.body.appendChild(tme),this.dragImage=tme,tme},x_.prototype.disposeDragImage=function(){var eme,$P=this.dragImage;(eme=$P==null?void 0:$P.parentElement)===null||eme===void 0||eme.removeChild($P),delete this.dragImage},x_.prototype.switchToRegion=function(eme,$P,tme){var ame,nme,rme,ime,ome,lme=this.store;if(!$P||!tme||lme.dropId===$P&&lme.dropRegion===tme)return!1;var sme=lme.getNodeById($P,tme),cme=sme.regionInfo,dme=lme.dragSchema;if(((ame=cme==null?void 0:cme.accept)===null||ame===void 0?void 0:ame.call(cme,dme))===!1||!((nme=sme.host)===null||nme===void 0)&&nme.memberImmutable(tme))return!1;var ume={mode:lme.dragMode,sourceType:lme.dragType,sourceId:lme.dragId,data:lme.dragSchema,targetId:$P,targetRegion:tme};return!this.manager.trigger("dnd-accept",ume).prevented&&((rme=this.dndMode)===null||rme===void 0||rme.leave(eme,this.dragGhost),(ime=this.dndMode)===null||ime===void 0||ime.dispose(),lme.setDropId($P,tme),this.makeDNDModeInstance(sme),(ome=this.dndMode)===null||ome===void 0||ome.enter(eme,this.dragGhost),lme.calculateHighlightBox([$P]),!0)},x_.prototype.makeDNDModeInstance=function(eme){var $P;if(!eme||!isAlive(eme))return this.dndMode||null;var tme=($P=eme.regionInfo)===null||$P===void 0?void 0:$P.dndMode,ame=JSONGetById(this.store.schema,eme.id),nme=DefaultDNDMode;return tme==="position-h"&&(nme=PositionHDNDMode),typeof tme=="function"&&tme(ame)==="flex"&&(nme=FlexDNDMode),this.dndMode=new nme(this,eme,{regionNode:ame}),this.dndMode},x_.prototype.startDrag=function(eme,$P){var tme,ame=this,nme=this.store.getNodeById(eme),rme=this.store.getDoc().querySelector('[data-editor-id="'.concat(eme,'"]'));if(nme&&rme){if((tme=$P.target)===null||tme===void 0||tme.addEventListener("dragend",this.dragEnd),this.lastX=$P.clientX,this.lastY=$P.clientY,this.manager.draggableContainer(nme.id))return this.curDragId=eme,this.startX=$P.clientX,void(this.startY=$P.clientY);this.dragElement=rme,$P.dataTransfer.effectAllowed="move",$P.dataTransfer.setDragImage(this.createDragImage(eme,nme),0,0),$P.dataTransfer.setData("dnd/ae-node-".concat(eme).toLowerCase(),""),setTimeout(function(){ame.store.setDragId(eme);var ime=nme.parent;ame.switchToRegion($P,ime.id,ime.region)},4)}else $P.preventDefault()},x_.prototype.dragEnter=function(eme){var $P,tme=this.store;this.dragEnterCount++;var ame=tme.activeId;if(ame)if(nme=tme.getNodeById(ame)){if(!tme.dragId&&this.dragEnterCount===1){var nme,rme=eme.dataTransfer.types;if(rme.length>0)for(var ime=function(cme){if(/^dnd-dom\/(.*)$/.test(rme[cme])){var dme=RegExp.$1,ume=document.querySelector(dme);if(ume){ume.addEventListener("dragend",ome.dragEnd);var fme=ume.getAttribute("data-dnd-id"),pme=ume.getAttribute("data-dnd-type"),hme=ume.getAttribute("data-dnd-data"),bme=hme?JSON.parse(hme):{type:"tpl",tpl:"Unknown"};tme.setDragId(fme,"copy",pme,bme);var mme=tme.activeContainerId;if(mme){var vme=tme.getNodeById(mme);if(vme!=null&&vme.childRegions.length){var gme=0;vme.childRegions.forEach(function(yme,_me){yme.region&&(gme=_me)}),ome.switchToRegion(eme,vme.id,vme.childRegions[gme].region)}}return"break"}}},ome=this,lme=rme.length-1;lme>=0&&ime(lme)!=="break";lme--);if(this.curDragId&&this.manager.draggableContainer(this.curDragId)&&(nme=tme.getNodeById(ame))){var sme=nme.parentId?tme.getNodeById(nme.parentId):void 0;!(($P=sme==null?void 0:sme.schema)===null||$P===void 0)&&$P.isFreeContainer&&tme.setDropId(nme.parentId,"body")}}}else toastWarning(i18n("0e24e1bbc19612a350f81296d9fb7802"));else toastWarning(i18n("0e24e1bbc19612a350f81296d9fb7802"))},x_.prototype.dragOver=function(eme){var $P,tme=this.store,ame=eme.target;eme.preventDefault();var nme=eme.clientX-this.lastX,rme=eme.clientY-this.lastY,ime=Math.max(Math.abs(nme),Math.abs(rme));if(ime>0&&this.curDragId&&this.manager.draggableContainer(this.curDragId)){var ome=tme.getDoc(),lme=parent==null?void 0:parent.window.document,sme=ome.querySelector("[data-hlbox-id='".concat(this.curDragId,"']"));if(tme.isMobile&&!sme&&lme&&(sme=lme.querySelector("[data-hlbox-id='".concat(this.curDragId,"']"))),sme){var cme=(sme.style.inset||"auto").split(" "),dme={top:sme.style.top||cme[0]||"auto",right:sme.style.right||cme[1]||"auto",bottom:sme.style.bottom||cme[2]||cme[0]||"auto",left:sme.style.left||cme[3]||cme[1]||"auto"};sme.style.inset="".concat(dme.top!=="auto"?unitFormula(dme.top,rme):"auto"," ").concat(dme.right!=="auto"?unitFormula(dme.right,-nme):"auto"," ").concat(dme.bottom!=="auto"?unitFormula(dme.bottom,-rme):"auto"," ").concat(dme.left!=="auto"?unitFormula(dme.left,nme):"auto")}var ume=ome.querySelector("[data-editor-id='".concat(this.curDragId,"']"));if(ume){var fme=(ume.style.inset||"auto").split(" "),pme={top:fme[0]||"auto",right:fme[1]||"auto",bottom:fme[2]||fme[0]||"auto",left:fme[3]||fme[1]||"auto"};ume.style.inset="".concat(pme.top!=="auto"?unitFormula(pme.top,rme):"auto"," ").concat(pme.right!=="auto"?unitFormula(pme.right,-nme):"auto"," ").concat(pme.bottom!=="auto"?unitFormula(pme.bottom,-rme):"auto"," ").concat(pme.left!=="auto"?unitFormula(pme.left,nme):"auto")}return this.lastX=eme.clientX,void(this.lastY=eme.clientY)}if(tme.dropId&&ame){var hme=ame.closest("[data-region][data-region-host]"),bme=hme==null?void 0:hme.getAttribute("data-region-host"),mme=hme==null?void 0:hme.getAttribute("data-region"),vme=ame.closest("[data-editor-id][data-container]"),gme=vme==null?void 0:vme.getAttribute("data-editor-id");eme.ctrlKey||eme.metaKey||eme.altKey?mme&&bme&&vme.contains(hme)?tme.setPlanDropId(bme,mme):gme&&tme.setPlanDropId(gme,""):ime<5||(this.lastX=eme.clientX,this.lastY=eme.clientY,tme.dropId===bme&&mme&&mme!==tme.dropRegion?this.switchToRegion(eme,tme.dropId,mme):(tme.setPlanDropId("",""),($P=this.dndMode)===null||$P===void 0||$P.over(eme,this.dragGhost)))}},x_.prototype.drop=function(eme){var $P,tme,ame,nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme;return __generator(this,function(hme){switch(hme.label){case 0:return ime=this.store,this.curDragId&&this.manager.draggableContainer(this.curDragId)?(ome=eme.clientX-this.startX,lme=eme.clientY-this.startY,this.manager.updateContainerStyleByDrag(this.curDragId,ome,lme),this.curDragId="",this.store.setDropId(""),[2]):ime.dropId?(sme=($P=this.dndMode)===null||$P===void 0?void 0:$P.getDropBeforeId(),cme=(ame=(tme=this.dndMode)===null||tme===void 0?void 0:tme.getDropPosition)===null||ame===void 0?void 0:ame.call(tme),!((rme=(nme=this.dndMode)===null||nme===void 0?void 0:nme.interruptionDrop)===null||rme===void 0)&&rme.call(nme)?[2]:ime.dragMode!=="move"?[3,1]:(this.manager.move(ime.dropId,ime.dropRegion,ime.dragId,sme,{position:cme}),[3,4])):[2];case 1:return ime.dragMode!=="copy"?[3,4]:(dme=ime.dragSchema,ume=ime.dropId,fme=ime.dropRegion,pme=void 0,ime.dragType!=="subrenderer"?[3,3]:(pme=find$3(ime.subRenderers,function(bme){return bme.id===ime.dragId}))!=null&&pme.scaffoldForm?[4,this.manager.scaffold(pme.scaffoldForm,dme)]:[3,3]);case 2:dme=hme.sent(),hme.label=3;case 3:this.manager.addChild(ume,fme,dme,sme,pme,{id:ime.dragId,type:ime.dragType,data:ime.dragSchema,position:cme},!1),hme.label=4;case 4:return[2]}})})},x_.prototype.dragLeave=function(eme){this.dragEnterCount--},x_.prototype.dragEnd=function(eme){var $P,tme;($P=eme.target)===null||$P===void 0||$P.removeEventListener("dragend",this.dragEnd),(tme=this.dndMode)===null||tme===void 0||tme.leave(eme,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML="",this.store.setDragId(""),this.store.setDropId(""),this.store.setPlanDropId("",""),this.disposeDragImage(),this.dragEnterCount=0},x_.prototype.updateDragElements=function(eme){eme&&this.manager.draggableContainer(eme)||(eme?[].slice.call(this.store.getDoc().querySelectorAll('[data-editor-id="'.concat(eme,'"]'))).forEach(function($P){return $P.classList.add("ae-is-draging")}):[].slice.call(this.store.getDoc().querySelectorAll(".ae-is-draging")).forEach(function($P){return $P.classList.remove("ae-is-draging")}))},x_.prototype.updateDropRegion=function(eme,$P){var tme,ame;this.store.dragId&&this.manager.draggableContainer(this.store.dragId)||($P!=null&&$P.id&&$P.region&&((tme=this.store.getDoc().querySelector('[data-region="'.concat($P.region,'"][data-region-host="').concat($P.id,'"]')))===null||tme===void 0||tme.classList.remove("is-dragenter")),eme.id&&eme.region&&((ame=this.store.getDoc().querySelector('[data-region="'.concat(eme.region,'"][data-region-host="').concat(eme.id,'"]')))===null||ame===void 0||ame.classList.add("is-dragenter")))},x_.prototype.dispose=function(){this.disposeDragImage(),this.toDispose.forEach(function(eme){return eme()}),this.toDispose=[]},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",void 0)],x_.prototype,"dragEnter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",void 0)],x_.prototype,"dragOver",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",Promise)],x_.prototype,"drop",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",void 0)],x_.prototype,"dragLeave",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[DragEvent]),__metadata("design:returntype",void 0)],x_.prototype,"dragEnd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],x_.prototype,"updateDragElements",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],x_.prototype,"updateDropRegion",null),x_}(),VariableManager=function(){function x_(eme,$P,tme){this.variables=Array.isArray($P)?sortBy$1(cloneDeep$1($P),[function(ame){var nme;return(nme=ame.order)!==null&&nme!==void 0?nme:1}]):[],this.dataSchema=eme instanceof DataSchema?eme:new DataSchema([]),this.options=pick$3(tme,["beforeScopeInsert","afterScopeInsert","onContextSchemaChange","onContextOptionChange"]),this.init()}return x_.prototype.init=function(){var eme,$P=this,tme=this.variables,ame=this.dataSchema,nme=(eme=this.options)!==null&&eme!==void 0?eme:{},rme=nme.beforeScopeInsert,ime=nme.afterScopeInsert;tme.forEach(function(ome){var lme,sme=ome.parentId,cme=ome.name,dme=ome.title,ume=ome.schema;ame.hasScope(sme)&&(ame.switchTo(sme),ame.hasScope(cme)&&ame.removeScope(cme),rme&&typeof rme=="function"&&(ume=rme($P,ume)),ame.addScope({type:"object",$id:cme,properties:(lme={},lme[cme]=__assign$3(__assign$3({},ume),{title:dme}),lme)},cme),ame.switchTo(cme),ime&&typeof ime=="function"&&ime($P))}),ame.switchToRoot()},x_.prototype.getVariableContextSchema=function(){var eme,$P,tme=this,ame=[],nme=((eme=this.options)!==null&&eme!==void 0?eme:{}).onContextSchemaChange;return this.variables&&(($P=this.variables)===null||$P===void 0?void 0:$P.length)>0&&(ame=this.variables.map(function(rme){if(tme.dataSchema.hasScope(rme.name)){var ime=tme.dataSchema.getScope(rme.name);return ime.schemas.length>0?ime.schemas[0]:null}return null}).filter(function(rme){return rme!==null})),nme&&typeof nme=="function"&&(ame=nme(this,ame)),ame},x_.prototype.getVariableFormulaOptions=function(eme){var $P,tme,ame=this;eme===void 0&&(eme=!1);var nme=(($P=this.options)!==null&&$P!==void 0?$P:{}).onContextOptionChange,rme=[];return this.variables&&((tme=this.variables)===null||tme===void 0?void 0:tme.length)>0&&this.variables.forEach(function(ime){if(ame.dataSchema.hasScope(ime.name)){var ome=ame.dataSchema.getScope(ime.name),lme=mapTree(ome.getDataPropsAsOptions(),function(sme){var cme;return __assign$3(__assign$3({},sme),{tag:(cme=DATASCHEMA_TYPE_MAP[sme.type])!==null&&cme!==void 0?cme:sme.type})});ome.tag?rme.push({label:ome.tag,children:lme}):rme.push.apply(rme,__spreadArray([],__read$3(lme),!1))}}),nme&&typeof nme=="function"&&(rme=nme(this,rme,"formula")),eachTree$1(rme,function(ime){ime.type==="array"&&delete ime.children}),eme?rme:reverse$1(rme)},x_.prototype.getVariableOptions=function(){var eme,$P,tme,ame,nme=((eme=this.options)!==null&&eme!==void 0?eme:{}).onContextOptionChange,rme=(ame=(tme=($P=this.getVariableFormulaOptions(!1))===null||$P===void 0?void 0:$P[0])===null||tme===void 0?void 0:tme.children)!==null&&ame!==void 0?ame:[];return rme=mapTree(rme,function(ime,ome,lme,sme){return __assign$3(__assign$3({},ime),{valueExpression:typeof ime.value!="string"||ime.value.startsWith("${")?ime.value:"${".concat(ime.value,"}")})}),nme&&typeof nme=="function"&&(rme=nme(this,rme,"normal")),rme},x_.prototype.getPageVariablesOptions=function(){var eme,$P=[],tme=(eme=this.dataSchema)===null||eme===void 0?void 0:eme.root;return tme&&($P=tme.getDataPropsAsOptions().filter(function(ame){return["__query","__page"].includes(ame.value)})),eachTree$1($P,function(ame){ame.type==="array"&&delete ame.children}),$P},x_.prototype.getNameByPath=function(eme,$P,tme){var ame,nme;if($P===void 0&&($P="value"),tme===void 0&&(tme="label"),!eme||typeof eme!="string")return"";var rme=__spreadArray(__spreadArray([],__read$3(this.getVariableOptions()),!1),__read$3(this.getPageVariablesOptions()),!1),ime=findTree(rme,function(ome){return ome[$P??"value"]===eme});return ime&&(nme=(ame=ime[tme??"label"])!==null&&ame!==void 0?ame:ime[$P??"value"])!==null&&nme!==void 0?nme:""},x_}(),builtInPlugins=[];function autoPreRegisterEditorCustomPlugins(){window.AMISEditorCustomPlugins&&Object.keys(window.AMISEditorCustomPlugins).forEach(function(x_){var eme=window.AMISEditorCustomPlugins[x_];eme&&registerEditorPlugin(eme)})}function registerEditorPlugin(x_){var eme=Array.from(new Set(["global"].concat(x_.scene||"global")));x_.scene=eme;var $P=null;if(~($P=x_.prototype&&x_.prototype.isNpmCustomWidget?builtInPlugins.findIndex(function(nme){return Array.isArray(nme)?nme[0].prototype.name===x_.prototype.name:nme.prototype.name===x_.prototype.name}):builtInPlugins.findIndex(function(nme){return nme===x_}))||(x_.id=x_.id||x_.name||guid()),x_.priority!=null&&Number.isInteger(x_.priority))if(~($P=~$P?$P:builtInPlugins.findIndex(function(nme){return!Array.isArray(nme)&&nme.id===x_.id&&(nme==null?void 0:nme.prototype)instanceof BasePlugin}))){var tme=builtInPlugins[$P],ame=tme.priority&&Number.isInteger(tme.priority)?tme.priority:0;x_.priority>ame?builtInPlugins.splice($P,1,x_):console.warn("注册插件「".concat(x_.id,"」异常，已存在同名插件："),x_)}else builtInPlugins.push(x_);else~$P?console.warn("注册插件「".concat(x_.id,"」异常，已存在同名插件："),x_):builtInPlugins.push(x_)}var EditorManager=function(){function x_(eme,$P,tme){var ame=this;this.config=eme,this.store=$P,this.parent=tme,this.toDispose=[],this.id=guid(),this.disableHover=!1,this.broadcasts=[],this.pluginEvents={},this.pluginActions={},this.listeners=[],this.lazyPatchSchema=debounce$6(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1,this.patchingInvalid=!1,this.env=__assign$3(__assign$3(__assign$3({},env),omit$1(eme.amisEnv,"replaceText")),{theme:eme.theme}),this.env.fetcher&&(this.env.fetcher=wrapFetcher(this.env.fetcher,this.env.tracker),this.fetch=this.env.fetcher),this.env.beforeDispatchEvent=this.beforeDispatchEvent.bind(this,this.env.beforeDispatchEvent),this.hackIn=hackIn,autoPreRegisterEditorCustomPlugins(),((eme==null?void 0:eme.plugins)||[]).forEach(function(nme){if(!Array.isArray(nme)&&nme.priority&&Number.isInteger(nme.priority)){var rme=builtInPlugins.findIndex(function(lme){return!Array.isArray(lme)&&!Array.isArray(nme)&&lme.id===nme.id&&(lme==null?void 0:lme.prototype)instanceof BasePlugin});if(~rme){var ime=builtInPlugins[rme],ome=ime.priority&&Number.isInteger(ime.priority)?ime.priority:0;nme.priority>ome&&builtInPlugins.splice(rme,1)}}}),this.plugins=(eme.disableBultinPlugin?[]:builtInPlugins).concat(this.normalizeScene(eme==null?void 0:eme.plugins)).filter(function(nme){return nme=Array.isArray(nme)?nme[0]:nme,!eme.disablePluginList||(typeof eme.disablePluginList=="function"?!eme.disablePluginList(nme.id||"",nme):!eme.disablePluginList.includes(nme.id||"unkown"))}).map(function(nme){var rme,ime={};Array.isArray(nme)&&(ime=typeof nme[1]=="function"?nme[1]():nme[1],nme=nme[0]);var ome=new nme(ame,ime);return ome.order=(rme=ome.order)!==null&&rme!==void 0?rme:0,ome.rendererName&&(ame.pluginEvents[ome.rendererName]=ome.events||[],ame.pluginActions[ome.rendererName]=ome.actions||[]),ome}).sort(function(nme,rme){return nme.order-rme.order}),this.hackRenderers(),this.dnd=new EditorDNDManager(this,$P),this.dataSchema=new DataSchema(eme.schemas||[]),this.variableManager=new VariableManager(this.dataSchema,eme==null?void 0:eme.variables,eme==null?void 0:eme.variableOptions),this.toDispose.push(reactionWithOldValue(function(){return $P.activeId},function(nme,rme){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(ime){switch(ime.label){case 0:return this.store.insertId&&this.store.closeInsertPanel(),this.buildJSONSchemaUri(),this.buildToolbars(),[4,this.buildRenderers()];case 1:return ime.sent(),this.buildPanels(),scrollToActive('[data-node-id="'.concat(nme,'"]')),this.trigger("active",nme?__assign$3(__assign$3({},this.buildEventContext(nme)),{active:!0}):{id:rme,active:!1}),[2]}})})}),reaction(function(){return $P.selections.join(",")},function(){ame.buildPanels()}),reaction(function(){return $P.needPatch},function(nme){nme&&ame.lazyPatchSchema()}),reactionWithOldValue(function(){return{id:$P.hoverId,region:$P.hoverRegion}},function(nme,rme){var ime,ome,lme=$P.getDoc();nme.id&&nme.region?(ime=lme.querySelector('[data-region="'.concat(nme.region,'"][data-region-host="').concat(nme.id,'"]')))===null||ime===void 0||ime.classList.add("is-region-active"):rme!=null&&rme.id&&(rme!=null&&rme.region)&&((ome=lme.querySelector('[data-region="'.concat(rme.region,'"][data-region-host="').concat(rme.id,'"]')))===null||ome===void 0||ome.classList.remove("is-region-active"))}))}return x_.prototype.normalizeScene=function(eme){return(eme==null?void 0:eme.map(function($P){var tme;Array.isArray($P)&&(tme=$P[1],$P=$P[0]);var ame=Array.from(new Set(["global"].concat($P.scene||"global")));return $P.scene=ame,tme?[$P,tme]:$P}))||[]},x_.prototype.dynamicAddPlugin=function(eme){var $P;if(eme)if(this.plugins.some(function(nme){return nme&&nme.name===eme}))console.warn("[amis-editor]当前已有".concat(eme,"插件"));else{var tme=builtInPlugins.find(function(nme){return nme.prototype&&nme.prototype.name===eme});if(!tme&&window.AMISEditorCustomPlugins&&(tme=window.AMISEditorCustomPlugins[eme]),tme){var ame=new tme(this);ame.order=($P=ame.order)!==null&&$P!==void 0?$P:0,this.plugins.push(ame),this.plugins.sort(function(nme,rme){return nme.order-rme.order}),ame.rendererName&&(this.pluginEvents[ame.rendererName]=ame.events||[],this.pluginActions[ame.rendererName]=ame.actions||[]),this.buildRenderers()}}},x_.prototype.buildRenderersAndPanels=function(){var eme=this;setTimeout(function(){return __awaiter(eme,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){switch(ame.label){case 0:return($P=this.store).activeId||!(!((tme=$P==null?void 0:$P.schema)===null||tme===void 0)&&tme.$$id)?[3,2]:[4,this.buildRenderers()];case 1:ame.sent(),this.buildPanels($P.schema.$$id),ame.label=2;case 2:return[2]}})})},200)},x_.prototype.buildEventContext=function(eme){var $P=typeof eme=="string"?this.store.getNodeById(eme):eme,tme=this.store.getSchema($P.id);return{node:$P,id:$P.id,info:$P.info,path:$P.path,schemaPath:$P.schemaPath,schema:tme,data:""}},x_.prototype.buildJSONSchemaUri=function(){var eme=this.store.activeId,$P="";if(eme){var tme=this.buildEventContext(eme),ame=this.trigger("before-resolve-json-schema",tme);if($P=ame.context.data,!ame.prevented){this.plugins.forEach(function(rme){var ime;if(!$P){var ome=(ime=rme.buildJSONSchema)===null||ime===void 0?void 0:ime.call(rme,tme);ome&&($P=ome)}}),tme.data=$P;var nme=this.trigger("after-resolve-json-schema",tme);$P=nme.data}}this.store.setJSONSchemaUri($P)},x_.prototype.buildToolbars=function(){var eme=this.store.activeId,$P=[];if(eme){var tme=this.buildEventContext(eme);this.plugins.forEach(function(ame){var nme,rme=__assign$3({},tme);(nme=ame.buildEditorToolbar)===null||nme===void 0||nme.call(ame,rme,$P)}),this.trigger("build-toolbars",__assign$3(__assign$3({},tme),{data:$P}))}this.store.setActiveToolbars($P.map(function(ame){return __assign$3(__assign$3({},ame),{order:ame.order||0,id:guid()})}))},x_.prototype.collectPanels=function(eme,$P,tme){var ame=this;$P===void 0&&($P=!1),tme===void 0&&(tme=!1);var nme=[];if(eme){var rme=__assign$3(__assign$3({},this.buildEventContext(eme)),{secondFactor:tme,data:nme,selections:this.store.selections.map(function(ime){return ame.buildEventContext(ime)})});this.plugins.forEach(function(ime){var ome;(ome=ime.buildEditorPanel)===null||ome===void 0||ome.call(ime,rme,nme)}),$P&&this.trigger("build-panels",rme),nme=rme.data||nme,rme.changeLeftPanelKey&&this.store.changeLeftPanelKey(rme.changeLeftPanelKey)}return nme},x_.prototype.buildPanels=function(eme){var $P,tme,ame=eme||this.store.activeId,nme=[];if(!ame&&(!(($P=this.store)===null||$P===void 0)&&$P.filteredSchema)&&(ame=(tme=this.store)===null||tme===void 0?void 0:tme.filteredSchema.$$id),ame||this.store.selections.length){ame=ame||this.store.selections[0];var rme=this.store.getNodeById(ame);nme=rme?this.collectPanels(rme,!0):nme}this.store.setPanels(nme.map(function(ime){return __assign$3(__assign$3({},ime),{order:ime.order||0})}))},x_.prototype.collectRenderers=function(eme,$P){var tme,ame,nme,rme;return $P===void 0&&($P=this.store.activeContainerId),__awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme;return __generator(this,function(gme){switch(gme.label){case 0:if(ime=[],!(ome=$P)&&(!((tme=this.store)===null||tme===void 0)&&tme.schema)&&(ome=(ame=this.store)===null||ame===void 0?void 0:ame.schema.$$id),!ome)return[2,ime];if(!(lme=this.store.getNodeById(ome)))return[2,ime];sme=this.store.getSchema(ome),cme={node:lme,id:lme.id,info:lme.info,path:lme.path,schemaPath:lme.schemaPath,schema:sme,region:eme},dme=[],ume=function(yme,_me){var $me,Cme;return __generator(this,function(Sme){switch(Sme.label){case 0:return $me=fme.plugins[yme],[4,(nme=$me.buildSubRenderers)===null||nme===void 0?void 0:nme.call($me,cme,ime,getRenderers())];case 1:return(Cme=Sme.sent())&&(Array.isArray(Cme)?Cme:[Cme]).forEach(function(Eme){return ime.push(__assign$3(__assign$3({},Eme),{id:guid(),plugin:$me,parent:lme.info,order:Eme.order||0}))}),$me.asyncUpdateCustomSubRenderersInfo&&dme.push($me),[2]}})},fme=this,pme=0,hme=this.plugins.length,gme.label=1;case 1:return pme<hme?[5,ume(pme,hme)]:[3,4];case 2:gme.sent(),gme.label=3;case 3:return pme++,[3,1];case 4:if(!dme.length)return[3,8];bme=0,mme=dme.length,gme.label=5;case 5:return bme<mme?(vme=dme[bme],[4,(rme=vme.asyncUpdateCustomSubRenderersInfo)===null||rme===void 0?void 0:rme.call(vme,cme,ime,getRenderers())]):[3,8];case 6:gme.sent(),gme.label=7;case 7:return bme++,[3,5];case 8:return[2,ime.filter(function(yme){return!yme.disabledRendererPlugin})]}})})},x_.prototype.buildRenderers=function(eme){return __awaiter(this,void 0,void 0,function(){var $P;return __generator(this,function(tme){switch(tme.label){case 0:return[4,this.collectRenderers(eme)];case 1:return $P=tme.sent(),this.store.setSubRenderers($P),this.store.changeSubRendererRegion(eme||""),[2]}})})},x_.prototype.rebuild=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(eme){switch(eme.label){case 0:return[4,this.buildRenderers()];case 1:return eme.sent(),this.buildToolbars(),this.buildPanels(),[2]}})})},x_.prototype.updateConfigPanel=function(eme){var $P,tme=this,ame=this.store,nme=ame.activeId,rme=ame.getSchema,ime=ame.getNodeById,ome=eme;if(!ome&&this.store.activeId){var lme=rme(nme);ome=lme.type}if(ome&&this.store.activeId){var sme=this.store.panels.concat(),cme=ime(nme);if(ome&&cme){var dme=this.plugins.find(function(fme){return fme.rendererName===ome});sme.splice(sme.findIndex(function(fme){return fme.key==="config"}),1);var ume=__assign$3(__assign$3({},this.buildEventContext(cme)),{data:sme,selections:this.store.selections.map(function(fme){return tme.buildEventContext(fme)})});dme&&(($P=dme.buildEditorPanel)===null||$P===void 0||$P.call(dme,ume,sme),this.store.setPanels(sme.map(function(fme){return __assign$3(__assign$3({},fme),{order:fme.order||0})})))}}},x_.prototype.switchToRegion=function(eme){this.store.activeId&&this.buildRenderers(eme)},x_.prototype.showInsertPanel=function(eme,$P,tme,ame,nme,rme){var ime,ome,lme;return $P===void 0&&($P=this.store.activeId),ame===void 0&&(ame="insert"),nme===void 0&&(nme=""),__awaiter(this,void 0,void 0,function(){var sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return tme===void 0&&$P&&(sme=this.store.getNodeById($P),tme=(lme=(ome=(ime=sme==null?void 0:sme.info)===null||ime===void 0?void 0:ime.regions)===null||ome===void 0?void 0:ome.find(function(ume){return ume.key===eme}))===null||lme===void 0?void 0:lme.preferTag),[4,this.collectRenderers(eme,$P)];case 1:return cme=dme.sent(),this.store.setInsertRenderers(cme),this.store.setInsertRegion(eme,$P,tme,ame,nme,rme),[2]}})})},x_.prototype.showReplacePanel=function(eme,$P){var tme=this.store.getNodeById(eme),ame=tme==null?void 0:tme.parent;if(tme&&ame&&ame.isRegion&&ame.parent){var nme=ame.parent;this.showInsertPanel(ame.region,nme.id,$P,"replace",tme.id)}},x_.prototype.showRendererPanel=function(eme,$P){this.store.showRendererPanel(eme,$P)},x_.prototype.on=function(eme,$P){var tme=this;return this.listeners.push({type:eme,fn:$P}),function(){return tme.off(eme,$P)}},x_.prototype.off=function(eme,$P){var tme=findIndex$3(this.listeners,function(ame){return ame.type===eme&&ame.fn===$P});~tme&&this.listeners.splice(tme,1)},x_.prototype.trigger=function(eme,$P){var tme=createEvent(eme,$P),ame=camelize(/^(?:before|after)/.test(eme)?eme:"on-".concat(eme)),nme=this.listeners.filter(function(ime){return ime.type===eme});this.plugins.forEach(function(ime){return ime[ame]&&nme.push({type:eme,fn:ime[ame].bind(ime)})}),this.config[ame]&&nme.push({fn:this.config[ame],type:eme});var rme=[];return nme.some(function(ime){var ome=ime.fn.call(null,tme);return ome===!1?(tme.preventDefault(),tme.stopPropagation()):ome!=null&&ome.then?rme.push(ome):ome!==void 0&&tme.setData(ome),tme.stoped}),rme.length&&(tme.pending=Promise.all(rme)),tme},x_.prototype.addElem=function(eme,$P,tme){var ame,nme;return tme===void 0&&(tme=!0),__awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme;return __generator(this,function(yme){switch(yme.label){case 0:if(!eme)return[2];if(rme="",isString(eme)?rme=eme.toString():isObject(eme)&&(ime=eme),ome=this.store,sme=ome.activeId,cme=ome.getNodeById(sme),rme&&(lme=ome.getSubRendererById(rme),(((ame=lme==null?void 0:lme.scaffold)===null||ame===void 0?void 0:ame.style)||{}).position==="fixed"&&(sme=ome.getRootId(),cme=ome.getNodeById(sme))),!lme&&!ime)return[2];if(!cme)return toast.warning(i18n("0e24e1bbc19612a350f81296d9fb7802")),[2];if(dme=ime||(lme==null?void 0:lme.scaffold),this.isSpecialLayout(dme),ume=cme.parent,fme=null,pme=null,hme=null,ome.activeRegion)pme=sme,hme=ome.activeRegion;else if(cme.schema.columns&&cme.type!=="grid")pme=sme,hme="columns";else if(cme.schema.items&&isLayoutPlugin(cme.schema))pme=sme,hme="items";else if(cme.schema.body)pme=sme,hme="body";else if(ume){if(pme=ume.id,hme=ume.region,!ume.region&&ume.schema.body)hme="body";else if(!ume.region&&ume.schema.items)hme="items";else if(!ume.region&&!ume.schema.body&&!ume.schema.items)return toast.warning(i18n("bd690facb536d759814ee64f2760fecb")),[2];bme=ome.getSchemaParentById(sme),mme=-1,bme.some(function(_me,$me){var Cme=!1;return(_me==null?void 0:_me.$$id)===sme&&(mme=$me,Cme=!0),Cme}),fme=(nme=bme[mme+1])===null||nme===void 0?void 0:nme.$$id}else pme=sme,hme="body";return vme=ime,!lme||ime?[3,2]:(vme=lme.scaffold||{type:lme.type},lme.scaffoldForm?[4,this.scaffold(lme.scaffoldForm,vme)]:[3,2]);case 1:vme=yme.sent(),yme.label=2;case 2:return(gme=this.addChild(pme,hme,vme,fme,lme||cme.info,void 0,$P))&&tme&&setTimeout(function(){ome.setActiveId(gme.$$id)},100),[2]}})})},x_.prototype.canAppendSiblings=function(){var eme=this.store,$P=eme.activeId,tme=eme.getNodeById($P),ame=tme.parent;return!!(tme&&ame&&ame.schema)&&!ame.memberImmutable("")&&!!(ame.schema.body||ame.schema.type==="flex"&&ame.schema.items||tme.schema.columns)},x_.prototype.appendSiblingSchema=function(eme,$P,tme,ame){var nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme,hme;return __generator(this,function(bme){if(!eme)return[2];if(ime=this.store,ome=ime.activeId,!(lme=ime.getNodeById(ome)))return toast.warning(i18n("0e24e1bbc19612a350f81296d9fb7802")),[2];if(sme=lme.parent,cme=null,dme=null,ume=null,sme){if(dme=sme.id,ume=sme.region,!sme.region&&sme.schema.body)ume="body";else if(!sme.region&&((nme=sme.schema)===null||nme===void 0?void 0:nme.type)==="flex"&&sme.schema.items)ume="items";else if(!sme.region&&!sme.schema.body)return toast.warning(i18n("bd690facb536d759814ee64f2760fecb")),[2];fme=ime.getSchemaParentById(ome),pme=-1,fme.some(function(mme,vme){var gme=!1;return mme.$$id===ome&&(pme=vme,gme=!0),gme}),cme=(rme=fme[$P?pme:pme+1])===null||rme===void 0?void 0:rme.$$id,(hme=this.addChild(dme,ume,eme,cme,lme.info,{id:ime.dragId,type:ime.dragType,data:ime.dragSchema},ame))&&!tme&&setTimeout(function(){ime.setActiveId(hme.$$id)},100)}return[2]})})},x_.prototype.insert=function(){return __awaiter(this,void 0,void 0,function(){var eme,$P,tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return eme=this.store,($P=eme.selectedInsertRendererInfo)?(tme=eme.insertId,ame=eme.insertRegion,nme=eme.insertBeforeId,rme=$P.scaffold||{type:$P.type},$P.scaffoldForm?[4,this.scaffold($P.scaffoldForm,rme)]:[3,2]):[2];case 1:rme=ome.sent(),ome.label=2;case 2:return(ime=this.addChild(tme,ame,rme,nme,$P))&&(eme.closeInsertPanel(),setTimeout(function(){eme.setActiveId(ime.$$id)},100)),[2]}})})},x_.prototype.replace=function(){return __awaiter(this,void 0,void 0,function(){var eme,$P,tme,ame,nme,rme=this;return __generator(this,function(ime){switch(ime.label){case 0:return eme=this.store,($P=eme.selectedInsertRendererInfo)?(tme=eme.insertOrigId,ame=$P.scaffold||{type:$P.type},nme=eme.insertRegion,$P.scaffoldForm?[4,this.scaffold($P.scaffoldForm,ame)]:[3,2]):[2];case 1:ame=ime.sent(),ime.label=2;case 2:return this.replaceChild(tme,ame,$P,nme)&&(eme.closeInsertPanel(),setTimeout(function(){rme.rebuild()},4)),[2]}})})},x_.prototype.isFlexContainer=function(eme){return this.store.isFlexContainer(eme)},x_.prototype.isFlexItem=function(eme){return this.store.isFlexItem(eme)},x_.prototype.isFlexColumnItem=function(eme){return this.store.isFlexColumnItem(eme)},x_.prototype.isSpecialLayout=function(eme){var $P=(eme==null?void 0:eme.style)||{};return($P==null?void 0:$P.position)==="fixed"||($P==null?void 0:$P.position)==="absolute"},x_.prototype.draggableContainer=function(eme){return this.store.draggableContainer(eme)},x_.prototype.updateContainerStyleByDrag=function(eme,$P,tme){this.store.updateContainerStyleByDrag(eme,$P,tme)},x_.prototype.getEditorInfo=function(eme,$P,tme){var ame=null,nme=tme.$$id?this.store.getSchemaPath(tme.$$id):"",rme={renderer:eme,path:$P,schemaPath:nme,schema:tme},ime=this.trigger("before-resolve-editor-info",rme);return ime.prevented?ime.context.data:(this.plugins.some(function(ome){var lme,sme=(lme=ome.getRendererInfo)===null||lme===void 0?void 0:lme.call(ome,rme);return!!sme&&(ame=__assign$3(__assign$3({id:tme.$$id},sme),{type:tme.type,plugin:ome,renderer:eme,dialogTitle:tme.type==="dialog"||tme.type==="drawer"?tme.title:"",dialogType:tme.dialogType,schemaPath:nme}),!0)}),this.trigger("after-resolve-editor-info",__assign$3(__assign$3({},rme),{data:ame})).context.data)},x_.prototype.panelChangeValue=function(eme,$P,tme,ame){ame===void 0&&(ame=this.store.activeId);var nme=this.store,rme=__assign$3(__assign$3({},this.buildEventContext(ame)),{value:eme,diff:$P});this.trigger("before-update",rme).prevented||(nme.changeValue(eme,$P,tme,ame),this.trigger("after-update",__assign$3(__assign$3({},rme),{schema:rme.node.schema})))},x_.prototype.openSubEditor=function(eme){if(["dialog","drawer","confirmDialog"].includes(eme.value.type)&&this.parent)for(var $P=this.parent,tme=eme.value.$$originId||eme.value.$$id;$P;){if($P.store.schema.$$id===tme)return void toast.warning("所选弹窗已经被打开，不能多次打开");$P=$P.parent}this.store.openSubEditor(eme)},x_.prototype.openContextMenu=function(eme,$P,tme){var ame=this,nme=[],rme=this.buildEventContext(eme),ime=__assign$3(__assign$3({},rme),{selections:this.store.selections.map(function(ome){return ame.buildEventContext(ome)}),region:$P,data:nme});(nme=this.buildContextMenus(ime)).length&&(this.store.setContextId(eme),openContextMenus({x:tme.x,y:tme.y},nme,function(ome){return ome.state.isOpened&&ame.store.setContextId("")}))},x_.prototype.buildContextMenus=function(eme){return this.plugins.forEach(function($P){var tme;(tme=$P.buildEditorContextMenu)===null||tme===void 0||tme.call($P,eme,eme.data)}),this.trigger("build-context-menus",eme),eme.data},x_.prototype.closeContextMenu=function(){},x_.prototype.moveUp=function(){var eme,$P=this.store;if($P.activeId){var tme=$P.getNodeById($P.activeId),ame=tme.parent,nme=tme.host,rme=this.buildEventContext(nme),ime=__assign$3(__assign$3({},rme),{sourceId:tme.id,direction:"up",beforeId:(eme=tme.prevSibling)===null||eme===void 0?void 0:eme.id,region:ame.region,regionNode:ame});this.trigger("before-move",ime).prevented||($P.moveUp(ime),this.trigger("after-move",ime),this.trigger("after-update",ime))}},x_.prototype.moveDown=function(){var eme,$P,tme=this.store;if(tme.activeId){var ame=tme.getNodeById(tme.activeId),nme=ame.parent,rme=ame.host,ime=this.buildEventContext(rme),ome=__assign$3(__assign$3({},ime),{sourceId:ame.id,direction:"down",beforeId:($P=(eme=ame.nextSibling)===null||eme===void 0?void 0:eme.nextSibling)===null||$P===void 0?void 0:$P.id,region:nme.region,regionNode:nme});this.trigger("before-move",ome).prevented||(tme.moveDown(ome),this.trigger("after-move",ome),this.trigger("after-update",ome))}},x_.prototype.del=function(eme){if(eme&&eme.length){var $P=Array.isArray(eme)?eme[0]:eme,tme=__assign$3(__assign$3({},this.buildEventContext($P)),{data:Array.isArray(eme)?eme.concat():[]});this.trigger("before-delete",tme).prevented||(Array.isArray(tme.data)&&tme.data.length?this.store.delMulti(tme.data):this.store.del(tme),this.trigger("after-delete",tme))}},x_.prototype.duplicate=function(eme){this.store.duplicate(eme)},x_.prototype.copy=function(eme,$P){$P===void 0&&($P=i18n("52e6abbe5c11e7cbf14788c1540f8bf2"));var tme=this.store.getValueOf(eme);this.clipboardData=stringify_1(tme),toast.info(i18n("372ea9fd27fb7cfacfe1b4ca3046f8d0")+$P)},x_.prototype.cut=function(eme){this.copy(eme,i18n("2a6287664de5ab46c65220c7182878ff")),this.del(eme)},x_.prototype.paste=function(eme,$P){return __awaiter(this,void 0,void 0,function(){var tme,ame=this;return __generator(this,function(nme){return this.clipboardData?(tme=reGenerateID(parse_1(this.clipboardData)),$P?(this.addChild(eme,$P,tme),[2]):(this.replaceChild(eme,tme)&&setTimeout(function(){ame.store.highlightNodes.forEach(function(rme){rme.calculateHighlightBox()}),ame.updateConfigPanel(tme.type)}),[2])):(alert(i18n("1ff035555ac8a68dc5b0ea2d0af55f00")),[2])})})},x_.prototype.reGenerateNodeDuplicateID=function(eme){var $P,tme,ame=this;eme===void 0&&(eme=[]);var nme=this.store.getNodeById(this.store.activeId);if(nme){var rme=nme.schema,ime=!1,ome=((tme=($P=nme.info)===null||$P===void 0?void 0:$P.plugin)===null||tme===void 0?void 0:tme.tags)||[];if(Array.isArray(ome)||(ome=[ome]),!eme.length||ome.some(function(sme){return eme.includes(sme)})){var lme={};JSONTraverse$1(rme,function(sme,cme,dme){var ume=typeof sme=="string"&&sme.indexOf("u:")===0;if(cme==="id"&&ume&&dme){var fme=JSONGetNodesById(ame.store.schema,sme,"id");if(fme&&fme.length>1){var pme=generateNodeId();lme[sme]=pme,dme[cme]=pme,ime=!0}}return sme}),ime&&(JSONTraverse$1(rme,function(sme,cme,dme){var ume=typeof sme=="string"&&sme.indexOf("u:")===0;return cme==="componentId"&&ume&&lme[sme]&&(dme.componentId=lme[sme]),sme}),this.replaceChild(nme.id,rme))}}},x_.prototype.emptyRegion=function(eme,$P){var tme=this;this.store.emptyRegion(eme,$P),setTimeout(function(){tme.store.activeId&&tme.store.getNodeById(tme.store.activeId)||tme.store.setActiveId(eme)},100)},x_.prototype.addChild=function(eme,$P,tme,ame,nme,rme,ime){var ome=this.store,lme=-1,sme=this.buildEventContext(eme),cme=JSONPipeIn(tme,ime==null||ime);if(ame){var dme=sme.schema[$P];Array.isArray(dme)&&(lme=findIndex$3(dme,function(hme){return(hme==null?void 0:hme.$$id)===ame}))}var ume=__assign$3(__assign$3({},sme),{beforeId:ame,index:lme,region:$P,data:cme,subRenderer:nme,dragInfo:rme}),fme=this.trigger("before-insert",ume);if(!fme.prevented){var pme=ome.insertSchema(fme);return this.trigger("after-insert",ume),pme}return null},x_.prototype.move=function(eme,$P,tme,ame,nme){var rme=this.store,ime=__assign$3(__assign$3({},this.buildEventContext(eme)),{beforeId:ame,region:$P,sourceId:tme,dragInfo:nme}),ome=this.trigger("before-move",ime);return!ome.prevented&&(rme.moveSchema(ome),this.trigger("after-move",ime),!0)},x_.prototype.replaceChild=function(eme,$P,tme,ame,nme){var rme=JSONPipeIn($P,nme==null||nme),ime=__assign$3(__assign$3({},this.buildEventContext(eme)),{data:__assign$3({},rme),subRenderer:tme,region:ame}),ome=this.trigger("before-replace",ime);return!(ome.prevented||!ome.context.data)&&(this.store.replaceChild(eme,ome.context.data),this.trigger("after-replace",ime),!0)},x_.prototype.setActiveId=function(eme){this.store.setActiveId(eme)},x_.prototype.openConfigPanel=function(eme){var $P=this.store;$P.activeId!==eme&&$P.setActiveId(eme),$P.changePanelKey("config")},x_.prototype.openCodePanel=function(eme){var $P=this.store;$P.activeId!==eme&&$P.setActiveId(eme),$P.changePanelKey("code")},x_.prototype.toggleSelection=function(eme){var $P=this.store,tme=$P.selections.concat();!tme.length&&$P.activeId&&tme.push($P.activeId);var ame=tme.indexOf(eme);~ame?tme.splice(ame,1):tme.push(eme),this.setSelection(tme,eme)},x_.prototype.setSelection=function(eme,$P){var tme=this;$P===void 0&&($P=eme[0]);var ame=this.store,nme=this.buildEventContext($P),rme=__assign$3(__assign$3({},nme),{selections:eme.map(function(ime){return tme.buildEventContext(ime)}),data:eme});this.trigger("selection-change",rme).prevented||((eme=rme.data).length===1?ame.setActiveId(eme[0]):ame.setSelections(eme))},x_.prototype.startDrag=function(eme,$P){$P.persist(),this.dnd.startDrag(eme,$P.nativeEvent)},x_.prototype.scaffold=function(eme,$P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome=this;return __generator(this,function(lme){switch(lme.label){case 0:return eme.pipeIn?[4,eme.pipeIn($P)]:[3,2];case 1:return ame=lme.sent(),[3,3];case 2:ame=$P,lme.label=3;case 3:return tme=ame,eme.getSchema?(rme=(nme=Object).assign,ime=[{},eme],[4,eme.getSchema(tme)]):[3,5];case 4:eme=rme.apply(nme,ime.concat([lme.sent()])),lme.label=5;case 5:return[2,new Promise(function(sme){ome.store.openScaffoldForm(__assign$3(__assign$3({},eme),{value:tme,callback:sme}))})]}})})},x_.prototype.reScaffold=function(eme,$P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.scaffold($P,tme)];case 1:return ame=nme.sent(),this.replaceChild(eme,ame),[2]}})})},x_.prototype.reScaffoldV2=function(eme){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return tme=this.buildEventContext(eme),ame=($P=tme.info)===null||$P===void 0?void 0:$P.scaffoldForm,nme=tme.schema,[4,this.scaffold(ame,nme)];case 1:return rme=ime.sent(),this.replaceChild(eme,rme),[2]}})})},x_.prototype.patchSchema=function(eme){var $P=this;if(eme===void 0&&(eme=!1),this.patching)this.patchingInvalid=!0;else{this.patching=!0,this.patchingInvalid=!1;var tme=[],ame=new Map,nme=function(rme){rme.forEach(function(ime){if(ime.uniqueChildren&&ime.uniqueChildren.length&&nme(ime.uniqueChildren),isAlive(ime)&&!ime.isRegion){var ome=ime.schema;ime.patch($P.store,eme,function(lme,sme){return tme.unshift({id:lme,value:sme})},ame),ime.schemaPath&&ame.set(ome.id,ime.schemaPath)}})};nme(this.store.root.children),this.store.batchChangeValue(tme),this.patching=!1,this.patchingInvalid&&this.patchSchema(eme)}},x_.prototype.hackRenderers=function(eme){return eme===void 0&&(eme=getRenderers()),__awaiter(this,void 0,void 0,function(){var $P,tme=this;return __generator(this,function(ame){switch(ame.label){case 0:return $P=[],[4,Promise.all(eme.map(function(nme){return loadAsyncRenderer(nme)}))];case 1:return ame.sent(),eme.forEach(function(nme){var rme=tme.plugins.filter(function(ime){var ome;return Array.isArray(ime==null?void 0:ime.regions)&&ime.regions.some(function(lme){var sme;return lme.renderMethod&&((sme=lme.rendererName)!==null&&sme!==void 0?sme:ime.rendererName)===nme.name})||ime.overrides&&((ome=ime.overrideTargetRendererName)!==null&&ome!==void 0?ome:ime.rendererName)===nme.name});rme.forEach(function(ime){var ome,lme,sme=(ome=ime.regions)===null||ome===void 0?void 0:ome.filter(function(cme){var dme;return cme.renderMethod&&((dme=cme.rendererName)!==null&&dme!==void 0?dme:ime.rendererName)===nme.name});sme!=null&&sme.length&&$P.push({renderer:nme,regions:sme}),ime.overrides&&((lme=ime.overrideTargetRendererName)!==null&&lme!==void 0?lme:ime.rendererName)===nme.name&&$P.push({renderer:nme,overrides:ime.overrides})})}),$P.forEach(function(nme){var rme=nme.regions,ime=nme.renderer,ome=nme.overrides;return tme.hackIn(ime,rme,ome)}),this.store.markReady(),[2]}})})},x_.prototype.makeWrapper=function(eme,$P){return makeWrapper(this,eme,$P)},x_.prototype.makeSchemaFormRender=function(eme){return makeSchemaFormRender(this,eme)},x_.prototype.onWidthChangeStart=function(eme,$P){return this.trigger("width-change-start",__assign$3(__assign$3({},$P),{nativeEvent:eme}))},x_.prototype.onHeightChangeStart=function(eme,$P){return this.trigger("height-change-start",__assign$3(__assign$3({},$P),{nativeEvent:eme}))},x_.prototype.onSizeChangeStart=function(eme,$P){return this.trigger("size-change-start",__assign$3(__assign$3({},$P),{nativeEvent:eme}))},x_.prototype.openNodePopOverForm=function(eme){var $P,tme,ame,nme,rme=typeof eme=="string"?this.store.getNodeById(eme):eme;if(rme&&(!((tme=($P=rme.info)===null||$P===void 0?void 0:$P.plugin)===null||tme===void 0)&&tme.popOverBody||!((nme=(ame=rme.info)===null||ame===void 0?void 0:ame.plugin)===null||nme===void 0)&&nme.popOverBodyCreator)){var ime=rme.info.plugin,ome=this.store,lme={node:rme,body:ime.popOverBodyCreator?ime.popOverBodyCreator(this.buildEventContext(rme)):ime.popOverBody,value:ome.getValueOf(rme.id),callback:this.panelChangeValue,target:function(){return document.querySelector('[data-hlbox-id="'.concat(rme.id,'"]'))}};ome.openPopOverForm(lme)}},x_.prototype.addBroadcast=function(eme){this.broadcasts.push(eme)},x_.prototype.removeBroadcast=function(eme){var $P=findIndex$3(this.broadcasts,function(tme){return tme.eventName===eme});this.broadcasts.splice($P,1)},x_.prototype.getContextSchemas=function(eme,$P){var tme,ame,nme,rme,ime,ome,lme,sme,cme;return $P===void 0&&($P=!1),__awaiter(this,void 0,void 0,function(){var dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme,Mme,kme,Bme,Dme=this;return __generator(this,function(jme){switch(jme.label){case 0:if(!(dme=typeof eme=="string"?this.store.getNodeById(eme):eme))return[2,[]];for(bme in ume=void 0,fme=dme,pme=dme,hme=dme,this.dataSchema.idMap)/\-currentRow$/.test(bme)&&this.dataSchema.removeScope(bme);for(;!ume&&fme;)yme=(tme=fme.info)===null||tme===void 0?void 0:tme.id,Tme=(ame=fme.info)===null||ame===void 0?void 0:ame.type,ume=this.dataSchema.hasScope("".concat(yme,"-").concat(Tme))?this.dataSchema.getScope("".concat(yme,"-").concat(Tme)):void 0,(fme=fme.parent)!=null&&fme.isRegion&&(pme=fme);vme=[],jme.label=1;case 1:return ume?(gme=__read$3(ume.id.split("-"),1),yme=gme[0],Tme=ume.id.replace("".concat(yme,"-"),""),_me=this.store.getNodeById(yme,Tme),mme||!_me||_me.isSecondFactor||(mme=ume),_me?[4,(ime=(rme=(nme=_me==null?void 0:_me.info)===null||nme===void 0?void 0:nme.plugin)===null||rme===void 0?void 0:rme.buildDataSchemas)===null||ime===void 0?void 0:ime.call(rme,_me,pme,hme)]:[3,3]):[3,4];case 2:(Rme=jme.sent())&&(Nme=__assign$3(__assign$3({},Rme),Rme!=null&&Rme.$id?{}:{$id:"".concat(_me.id,"-").concat(_me.type)}),ume.removeSchema(Nme.$id),ume.addSchema(Nme)),!((ome=_me==null?void 0:_me.info)===null||ome===void 0)&&ome.isListComponent&&(vme.unshift(ume),yme===eme&&(mme=ume.parent)),jme.label=3;case 3:return ume=$P?void 0:ume.parent,[3,1];case 4:if(!(vme.length>1))return[3,12];jme.label=5;case 5:jme.trys.push([5,10,11,12]),$me=__values$1(vme),Cme=$me.next(),jme.label=6;case 6:return Cme.done?[3,9]:(Sme=Cme.value,Eme=__read$3(Sme.id.split("-"),2),xme=Eme[0],Tme=Eme[1],(Ome=this.store.getNodeById(xme,Tme))?[4,(cme=(sme=(lme=Ome==null?void 0:Ome.info)===null||lme===void 0?void 0:lme.plugin)===null||sme===void 0?void 0:sme.buildDataSchemas)===null||cme===void 0?void 0:cme.call(sme,Ome,pme,hme)]:[3,8]);case 7:(Rme=jme.sent())&&(Nme=__assign$3(__assign$3({},Rme),Rme!=null&&Rme.$id?{}:{$id:"".concat(Ome.id,"-").concat(Ome.type)}),Sme.removeSchema(Nme.$id),Sme.addSchema(Nme)),jme.label=8;case 8:return Cme=$me.next(),[3,6];case 9:return[3,12];case 10:return Ime=jme.sent(),kme={error:Ime},[3,12];case 11:try{Cme&&!Cme.done&&(Bme=$me.return)&&Bme.call($me)}finally{if(kme)throw kme.error}return[7];case 12:return Pme=Object.keys(this.dataSchema.idMap).find(function(Vme){var Wme;return/\-currentRow$/.test(Vme)&&!(!((Wme=Dme.dataSchema.idMap[Vme].children)===null||Wme===void 0)&&Wme.length)})||(mme==null?void 0:mme.id),Pme&&this.dataSchema.switchTo(Pme),dme.info.isListComponent&&(Mme=vme[vme.length-1],this.dataSchema.switchTo(Mme.parent)),[2,$P?this.dataSchema.current.schemas:this.dataSchema.getSchemas()]}})})},x_.prototype.getAvailableContextFields=function(eme){var $P,tme,ame,nme,rme,ime,ome,lme;return __awaiter(this,void 0,void 0,function(){var sme,cme,dme,ume,fme,pme;return __generator(this,function(hme){if(!eme)return[2];for(sme=void 0,cme=eme;!sme&&cme&&((sme=this.dataSchema.hasScope("".concat(cme.id,"-").concat(cme.type))?this.dataSchema.getScope("".concat(cme.id,"-").concat(cme.type)):void 0)||!["combo","input-table"].includes(($P=cme==null?void 0:cme.info)===null||$P===void 0?void 0:$P.type));)(cme=cme.parent)==null||cme.isRegion;if(!sme)return!cme&&this.store.isSubEditor?[2,(ame=(tme=this.config)===null||tme===void 0?void 0:tme.getAvaiableContextFields)===null||ame===void 0?void 0:ame.call(tme,eme)]:[2,(rme=cme==null?void 0:(nme=cme.info.plugin).getAvailableContextFields)===null||rme===void 0?void 0:rme.call(nme,cme,eme)];for(;sme;){if(dme=__read$3(sme.id.split("-"),1),ume=dme[0],fme=sme.id.substring(ume.length+1),(pme=this.store.getNodeById(ume,fme))&&!(!((ime=pme.info)===null||ime===void 0)&&ime.isListComponent))return[2,(lme=pme==null?void 0:(ome=pme.info.plugin).getAvailableContextFields)===null||lme===void 0?void 0:lme.call(ome,pme,eme)];sme=sme.parent}return[2]})})},x_.prototype.beforeDispatchEvent=function(eme,$P,tme,ame,nme,rme){var ime,ome,lme,sme;eme==null||eme($P,tme,ame,nme,rme);var cme=tme.props.$$id||((ime=tme.props.$$editor)===null||ime===void 0?void 0:ime.id);if(cme){var dme=this.store.getNodeById(cme,tme.props.type);(sme=(lme=(ome=dme==null?void 0:dme.info)===null||ome===void 0?void 0:ome.plugin)===null||lme===void 0?void 0:lme.rendererBeforeDispatchEvent)===null||sme===void 0||sme.call(lme,dme,$P,JSONPipeOut(nme))}},x_.prototype.dispose=function(){this.trigger("dispose",{data:this}),delete this.parent,this.toDispose.forEach(function(eme){return eme()}),this.toDispose=[],this.plugins.forEach(function(eme){var $P;return($P=eme.dispose)===null||$P===void 0?void 0:$P.call(eme)}),this.plugins.splice(0,this.plugins.length),this.listeners.splice(0,this.listeners.length),this.broadcasts.splice(0,this.broadcasts.length),this.lazyPatchSchema.cancel(),this.dnd.dispose()},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Function,Object]),__metadata("design:returntype",void 0)],x_.prototype,"panelChangeValue",null),x_}(),SubEditor=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.afterResolveEditorInfo=function($P){var tme,ame,nme,rme,ime,ome,lme=this.props.store,sme=$P.context;if(!((tme=lme.subEditorContext)===null||tme===void 0)&&tme.slot){var cme=lme.subEditorSlotPath;!~sme.schemaPath.indexOf(cme)&&sme.data?(sme.data.editable=!1,sme.data.memberImmutable=!Array.isArray((rme=lme.subEditorContext)===null||rme===void 0?void 0:rme.value),sme.data.memberImmutable||(sme.data.name=i18n("22c799040acdb2601b437ed5449de076"))):sme.schemaPath===cme&&sme.data&&(Array.isArray((ime=lme.subEditorContext)===null||ime===void 0?void 0:ime.value)||(sme.data.movable=!1,sme.data.removable=!1),sme.data.typeMutable=(ome=lme.subEditorContext)===null||ome===void 0?void 0:ome.typeMutable)}else sme.data&&!sme.schemaPath&&(!((ame=lme.subEditorContext)===null||ame===void 0)&&ame.memberImmutable)&&(sme.data.memberImmutable=(nme=lme.subEditorContext)===null||nme===void 0?void 0:nme.memberImmutable)},eme.prototype.handleBuildPanels=function($P){var tme,ame;if(!((ame=this.props.store.subEditorContext)===null||ame===void 0)&&ame.slot){var nme=$P.context;if(nme.info.memberImmutable){var rme=nme.data.concat();nme.data.splice(0,nme.data.length);var ime=rme.filter(function(ome){return ome.key!=="renderers"});ime&&(tme=nme.data).push.apply(tme,__spreadArray([],__read$3(ime),!1)),nme.changeLeftPanelKey="outline"}}},eme.prototype.buildSchema=function(){var $P,tme,ame=this,nme=this.props,rme=nme.store,ime=nme.manager,ome=nme.amisEnv,lme=nme.readonly,sme=rme.subEditorContext,cme=ime.config,dme=rme.superEditorData;sme&&(dme=createObject$1(rme.superEditorData,sme==null?void 0:sme.data));var ume=(($P=ime.config)===null||$P===void 0?void 0:$P.variables)||[];return{size:"full",title:(tme=rme.subEditorContext)===null||tme===void 0?void 0:tme.title,onClose:rme.closeSubEditor,onConfirm:rme.confirmSubEditor,body:rme.subEditorContext?{type:"form",mode:"normal",wrapWithPanel:!1,wrapperComponent:"div",onValidate:function(fme){return __awaiter(ame,void 0,void 0,function(){var pme,hme,bme;return __generator(this,function(mme){switch(mme.label){case 0:return[4,(bme=(hme=rme.subEditorContext)===null||hme===void 0?void 0:hme.validate)===null||bme===void 0?void 0:bme.call(hme,fme)];case 1:return(pme=mme.sent())?[2,{schema:pme}]:[2]}})})},onChange:rme.subEditorOnChange,body:[{name:"schema",asFormItem:!0,children:function(fme){var pme,hme,bme,mme,vme=fme.value,gme=fme.onChange;return React__default.createElement(Editor$1,{autoFocus:!0,value:vme,ref:rme.subEditorRef,onChange:gme,data:(pme=rme.subEditorContext)===null||pme===void 0?void 0:pme.data,hostManager:ime,hostNode:(hme=rme.subEditorContext)===null||hme===void 0?void 0:hme.hostNode,superEditorData:dme,schemaFilter:ime.config.schemaFilter,theme:ime.env.theme,afterResolveEditorInfo:ame.afterResolveEditorInfo,onBuildPanels:ame.handleBuildPanels,isMobile:rme.isMobile,isSubEditor:!0,ctx:rme.ctx,schemas:(bme=ime.config)===null||bme===void 0?void 0:bme.schemas,variables:ume,amisEnv:ome||cme.amisEnv,appLocale:cme.appLocale,i18nEnabled:cme.i18nEnabled,plugins:cme.plugins,actionOptions:cme.actionOptions,showCustomRenderersPanel:(mme=rme.showCustomRenderersPanel)===null||mme===void 0||mme,isHiddenProps:cme.isHiddenProps,$schemaUrl:cme.$schemaUrl,onFormulaEditorOpen:function(yme,_me,$me){return __awaiter(ame,void 0,void 0,function(){var Cme,Sme;return __generator(this,function(Eme){return(Cme=(Sme=ime==null?void 0:ime.config)===null||Sme===void 0?void 0:Sme.onFormulaEditorOpen)&&typeof Cme=="function"?[2,Cme(yme,_me,$me,{node:sme==null?void 0:sme.hostNode,manager:ime})]:[2]})})},getHostNodeDataSchema:function(){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(yme){switch(yme.label){case 0:return[4,ime.getContextSchemas(ime.store.activeId)];case 1:return yme.sent(),[2,ime.dataSchema]}})})},getAvaiableContextFields:function(yme){return ime.getAvailableContextFields(yme)},readonly:lme})}},lme&&{type:"button",label:"返回编辑器",className:"subEditor-container-back",onClick:function(){return rme.closeSubEditor()}}].filter(Boolean)}:{type:"tpl",tpl:"Loading..."},actions:[[{children:sme?React__default.createElement("div",{className:"ae-DialogToolbar"},React__default.createElement("button",{type:"button","data-tooltip":i18n("bd9fcf46b4e5993f97fe04ee9ebcd7ed"),"data-position":"top",disabled:!sme.canUndo,onClick:rme.undoSubEditor},React__default.createElement("i",{className:"fa fa-undo"})),React__default.createElement("button",{type:"button","data-tooltip":i18n("c3c873d33f1c6482c79b0ffd862786cd"),"data-position":"top",disabled:!sme.canRedo,onClick:rme.redoSubEditor},React__default.createElement("i",{className:"fa fa-rotate-right"}))):null},{type:"submit",label:i18n("be5fbbe34ce9979bfb6576d9eddc5612"),level:"primary"},{type:"button",label:i18n("625fb26b4b3340f7872b411f401e754c"),actionType:"close"}]],closeOnEsc:!1,bodyClassName:"ae-dialog subEditor-dialog"}},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.theme,nme=$P.manager,rme=$P.readonly;return tme.subEditorContext?render$2(__assign$3({type:rme?"container":"dialog",className:rme?"subEditor-container":"subEditor-dialog"},this.buildSchema()),{show:!!tme.subEditorContext,data:{schema:tme.subEditorValue}},__assign$3(__assign$3({},omit$1(nme.env,"replaceText")),{session:"editor-dialog",theme:ame})):null},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"afterResolveEditorInfo",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBuildPanels",null),eme=__decorate$1([observer],eme)}(React__default.Component),Breadcrumb=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.breadcrumbRef=React__default.createRef(),tme.bcnContentRef=React__default.createRef(),tme.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},tme.unReaction=reaction(function(){return tme.props.store.bcn},function(){tme.refreshHandleScroll(!0)}),tme}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){var $P=this,tme=this.getCurBreadcrumb(),ame=this.getBreadcrumbContainer();tme&&ame&&(this.unSensor=resizeSensor(ame,function(){$P.refreshHandleScroll()}))},eme.prototype.componentWillUnmount=function(){this.unReaction(),this.unSensor&&(this.unSensor(),delete this.unSensor)},eme.prototype.refreshHandleScroll=function($P){var tme=this;setTimeout(function(){tme.HandleScroll($P)},0)},eme.prototype.getCurBreadcrumb=function(){return this.bcnContentRef.current},eme.prototype.getBreadcrumbContainer=function(){return this.breadcrumbRef.current},eme.prototype.getScrollLeft=function(){var $P=this.getCurBreadcrumb();return $P?$P.style.left:"0"},eme.prototype.toNumber=function($P){return $P?Number.parseInt($P):0},eme.prototype.HandleScroll=function($P){var tme=this.getCurBreadcrumb(),ame=this.getBreadcrumbContainer();if(tme&&ame){var nme=this.toNumber(this.getScrollLeft()),rme=tme.offsetWidth-ame.offsetWidth;$P&&(tme.style.left="0"),this.setState({showLeftScrollBtn:nme<0,showRightScrollBtn:nme>-rme})}},eme.prototype.handleScrollToLeft=function(){var $P=this.getCurBreadcrumb();if($P){var tme=this.toNumber(this.getScrollLeft());tme>=-50&&tme<0?($P.style.left="0",this.refreshHandleScroll()):tme<-50&&($P.style.left="".concat(tme+50,"px"),this.refreshHandleScroll())}},eme.prototype.handleScrollToRight=function(){var $P=this.getCurBreadcrumb(),tme=this.getBreadcrumbContainer();if($P&&tme){var ame=this.toNumber(this.getScrollLeft()),nme=$P.offsetWidth-tme.offsetWidth+32;$P.style.left=ame-50>-nme?"".concat(ame-50,"px"):"-".concat(nme,"px"),this.refreshHandleScroll()}},eme.prototype.handleClick=function($P){var tme,ame=$P.currentTarget,nme=ame.getAttribute("data-node-id"),rme=ame.getAttribute("data-node-region"),ime=this.props.store;this.props.manager;var ome=ime.getNodeById(nme);((tme=ome==null?void 0:ome.info)===null||tme===void 0?void 0:tme.editable)!==!1&&(rme?ime.setActiveId(nme,rme):ime.setActiveId(nme))},eme.prototype.handleMouseEnter=function($P){var tme=$P.currentTarget,ame=tme.getAttribute("data-node-id"),nme=tme.getAttribute("data-node-region");this.props.store.setHoverId(ame,nme)},eme.prototype.render=function(){var $P=this,tme=this.props.store,ame=this.state,nme=ame.showLeftScrollBtn,rme=ame.showRightScrollBtn,ime=tme.bcn;return React__default.createElement("div",{className:"ae-Breadcrumb",ref:this.breadcrumbRef},nme&&React__default.createElement("div",{className:"ae-Breadcrumb-scrollLeft-btn",onClick:this.handleScrollToLeft},React__default.createElement(Icon$1,{icon:"editor-double-arrow",className:"icon"})),React__default.createElement("div",{className:"ae-Breadcrumb-content",ref:this.bcnContentRef},ime.length?React__default.createElement("ul",null,ime.map(function(ome,lme){var sme,cme,dme=(sme=ome.parent)===null||sme===void 0?void 0:sme.uniqueChildren,ume=ome.region||((cme=ome.childRegions.find(function(fme){return fme.region}))===null||cme===void 0?void 0:cme.region);return React__default.createElement("li",{key:lme},React__default.createElement("span",{"data-node-id":ome.id,"data-node-region":ume,onClick:$P.handleClick,onMouseEnter:$P.handleMouseEnter},ome.label),(dme==null?void 0:dme.length)>1?React__default.createElement("ul",{className:"hoverShowScrollBar"},dme.map(function(fme){return React__default.createElement("li",{key:"".concat(fme.id,"-").concat(fme.region)},React__default.createElement("span",{"data-node-id":fme.id,"data-node-region":fme.region,onClick:$P.handleClick,onMouseEnter:$P.handleMouseEnter,className:fme.id===ome.id&&fme.region===ome.region?"is-active":""},fme.label))})):null)})):null),rme&&React__default.createElement("div",{className:"ae-Breadcrumb-scrollRight-btn",onClick:this.handleScrollToRight},React__default.createElement(Icon$1,{icon:"editor-double-arrow",className:"icon"})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"refreshHandleScroll",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getCurBreadcrumb",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getBreadcrumbContainer",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",String)],eme.prototype,"getScrollLeft",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",Number)],eme.prototype,"toNumber",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"HandleScroll",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleScrollToLeft",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleScrollToRight",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMouseEnter",null),eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),ScaffoldModal=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.handleConfirm=function($P){var tme,ame,nme,rme,ime=__read$3($P,1)[0];return __awaiter(this,void 0,void 0,function(){var ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return ome=this.props.store,lme=(tme=ome.scaffoldForm)===null||tme===void 0?void 0:tme.pipeOut,ime=__assign$3(__assign$3({},(ame=ome.scaffoldForm)===null||ame===void 0?void 0:ame.value),ime),lme&&typeof lme=="function"?[4,lme(ime)]:[3,2];case 1:sme=cme.sent(),ime=__assign$3({},sme),cme.label=2;case 2:return(nme=ome.scaffoldForm)===null||nme===void 0||nme.callback(ime),ome.closeScaffoldForm(),!((rme=ome.scaffoldForm)===null||rme===void 0)&&rme.stepsBody&&ome.setScaffoldStep(0),[2]}})})},eme.prototype.buildSchema=function(){var $P,tme,ame,nme=this.props.store.scaffoldForm,rme=(tme=nme.controls)!==null&&tme!==void 0?tme:nme.body;return nme.stepsBody&&(rme=__spreadArray([{type:"steps",name:"__step",className:"ae-Steps",steps:rme.map(function(ime,ome){return{title:ime.title,value:ome,iconClassName:"ae-Steps-Icon"}})}],__read$3(rme.map(function(ime,ome){return{type:"container",visibleOn:"__step === ".concat(ome),body:ime.body}})),!1)),ame=isObject(nme.mode)?nme.mode:{mode:nme.mode||"normal"},__assign$3(__assign$3({type:"form",wrapWithPanel:!1,initApi:nme.initApi,api:nme.api},ame),(($P={wrapperComponent:"div"})[nme.controls?"controls":"body"]=rme,$P))},eme.prototype.scopeRef=function($P){this.amisScope=$P},eme.prototype.goToNextStep=function(){var $P,tme=this.props.store,ame=($P=this.amisScope)===null||$P===void 0?void 0:$P.getComponents()[0].props.store,nme=tme.scaffoldFormStep+1;ame.setValueByName("__step",nme),tme.updateScaffoldData(ame==null?void 0:ame.data,!0),tme.setScaffoldStep(nme),tme.setScaffoldStepManipulated(!0)},eme.prototype.goToPrevStep=function(){var $P,tme=this.props.store,ame=($P=this.amisScope)===null||$P===void 0?void 0:$P.getComponents()[0].props.store,nme=tme.scaffoldFormStep-1;ame.setValueByName("__step",nme),tme.updateScaffoldData(ame==null?void 0:ame.data,!0),tme.setScaffoldStep(nme)},eme.prototype.handleConfirmClick=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:if(!(tme=($P=this.amisScope)===null||$P===void 0?void 0:$P.getComponents()[0]))return[2];ame=this.props.store,ime.label=1;case 1:return ime.trys.push([1,4,,5]),ame.setScaffoldBuzy(!0),[4,tme.doAction({type:"submit"},tme.props.data,!0)];case 2:return nme=ime.sent(),[4,this.handleConfirm([nme])];case 3:return ime.sent(),[3,5];case 4:return rme=ime.sent(),console.log(rme.stack),ame.setScaffoldError(rme.message),[3,5];case 5:return ame.setScaffoldBuzy(!1),ame.setScaffoldStep(0),[2]}})})},eme.prototype.handleCancelClick=function(){this.props.store.closeScaffoldForm(),this.props.store.setScaffoldStep(0)},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.theme,nme=$P.manager,rme=tme.scaffoldForm,ime=getTheme(ame||"cxd").classnames,ome=!!(rme!=null&&rme.stepsBody),lme=!!(rme!=null&&rme.canSkip),sme=ome&&tme.scaffoldFormStep===rme.body.length-1,cme=ome&&tme.scaffoldFormStep===0;return React__default.createElement(FinalModal,{theme:ame,size:(rme==null?void 0:rme.size)||"md",contentClassName:rme==null?void 0:rme.className,show:!!rme,onHide:this.handleCancelClick,className:"ae-scaffoldForm-Modal :AMISCSSWrapper",closeOnEsc:!tme.scaffoldFormBuzy},React__default.createElement("div",{className:ime("Modal-header")},tme.scaffoldFormBuzy?null:React__default.createElement("a",{"data-position":"left",onClick:this.handleCancelClick,className:ime("Modal-close")},React__default.createElement(Icon$1,{icon:"close",className:"icon"})),React__default.createElement("div",{className:ime("Modal-title")},rme==null?void 0:rme.title)),React__default.createElement("div",{className:ime("Modal-body")},rme?render$2(this.buildSchema(),{data:tme.scaffoldData,onValidate:rme.validate,scopeRef:this.scopeRef,manager:nme},__assign$3(__assign$3({},nme.env),{session:"scaffold-dialog",theme:ame})):React__default.createElement("p",null,"Loading...")),React__default.createElement("div",{className:ime("Modal-footer")},tme.scaffoldFormBuzy||tme.scaffoldError?React__default.createElement("div",{className:ime("Dialog-info"),key:"info"},React__default.createElement(Spinner$1,{size:"sm",key:"info",show:tme.scaffoldFormBuzy}),tme.scaffoldError?React__default.createElement("span",{className:ime("Dialog-error")},tme.scaffoldError):null):null,ome&&lme&&cme&&React__default.createElement(Button$1,{onClick:this.handleConfirmClick,disabled:tme.scaffoldFormBuzy},i18n("451d71974652fdd1840a73c980f80fe8")),ome&&!cme&&React__default.createElement(Button$1,{level:"primary",onClick:this.goToPrevStep,disabled:tme.scaffoldFormBuzy},i18n("eeb6908870e058bc23d52c1e405a054e")),ome&&!sme&&React__default.createElement(Button$1,{level:"primary",onClick:this.goToNextStep,disabled:tme.scaffoldFormBuzy},i18n("38ce27d84639f3a6e07c00b3b4995c0e")),(!ome||sme)&&React__default.createElement(Button$1,{level:"primary",onClick:this.handleConfirmClick,disabled:tme.scaffoldFormBuzy},i18n("e83a256e4f5bb4ff8b3d804b5473217a")),React__default.createElement(Button$1,{onClick:this.handleCancelClick},i18n("625fb26b4b3340f7872b411f401e754c"))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleConfirm",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"scopeRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"goToNextStep",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"goToPrevStep",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleConfirmClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleCancelClick",null),eme=__decorate$1([observer],eme)}(React__default.Component),PopOverForm=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.overlay=React__default.createRef(),$P}return __extends$2(eme,x_),eme.prototype.buildSchema=function(){var $P=this,tme=this.props.store.popOverForm;return{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",body:tme.body,submitOnChange:!0,autoFocus:!0,onFinished:function(ame){var nme;(nme=tme.callback)===null||nme===void 0||nme.call(tme,ame,diff(tme.value,ame)),setTimeout(function(){var rme;return(rme=$P.overlay.current)===null||rme===void 0?void 0:rme.updatePosition()},200)}}},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.theme,nme=$P.manager,rme=tme.popOverForm;return React__default.createElement(Overlay,{target:rme==null?void 0:rme.target,placement:"left-bottom-left-top left-top-left-bottom right-bottom-right-top right-top-right-bottom center",show:!!rme,ref:this.overlay},React__default.createElement(PopOver$1,{overlay:!0,className:"ae-Editor-popOverForm",onHide:tme.closePopOverForm},rme?render$2(this.buildSchema(),{data:createObject$1(tme.ctx,rme==null?void 0:rme.value),node:rme==null?void 0:rme.node,manager:nme},__assign$3(__assign$3({},nme.env),{session:"popover-form",theme:ame})):React__default.createElement("p",null,"Loading...")))},eme=__decorate$1([observer],eme)}(React__default.Component),ModalForm=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.handleConfirmClick=function(){var $P,tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:if(!(ame=($P=this.amisScope)===null||$P===void 0?void 0:$P.getComponents()[0]))return[2];nme=this.props.store,rme=nme.modalForm,lme.label=1;case 1:return lme.trys.push([1,3,,4]),nme.markModalFormBuzy(!0),[4,ame.doAction({type:"submit"},ame.props.data,!0)];case 2:return ime=lme.sent(),(tme=rme.callback)===null||tme===void 0||tme.call(rme,ime,diff(rme.value,ime)),nme.closeModalForm(),[3,4];case 3:return ome=lme.sent(),console.error(ome.stack),nme.setModalFormError(ome.message),[3,4];case 4:return nme.markModalFormBuzy(!1),[2]}})})},eme.prototype.scopeRef=function($P){this.amisScope=$P},eme.prototype.buildSchema=function(){var $P=this.props.store.modalForm;return{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",initApi:$P.initApi,api:$P.api,body:$P.body,submitOnChange:!1,autoFocus:!0}},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.theme,nme=$P.manager,rme=tme.modalForm,ime=tme.modalMode||"dialog",ome=rme?render$2(this.buildSchema(),{data:createObject$1(tme.ctx,rme==null?void 0:rme.value),manager:nme,scopeRef:this.scopeRef},__assign$3(__assign$3({},nme.env),{session:"modal-form",theme:ame})):null;return ime==="drawer"?React__default.createElement(Drawer$1,{position:(rme==null?void 0:rme.postion)||"left",size:(rme==null?void 0:rme.size)||"md",theme:ame,show:!!rme,onHide:tme.closeModalForm},React__default.createElement("div",{className:"cxd-Drawer-header"},rme==null?void 0:rme.title),React__default.createElement("div",{className:"cxd-Drawer-body"},ome),React__default.createElement("div",{className:"cxd-Drawer-footer"},React__default.createElement("div",{className:"cxd-Drawer-info"},tme.modalFormError?React__default.createElement("div",{className:"cxd-Drawer-error"},tme.modalFormError):null),React__default.createElement(Button$1,{disabled:tme.modalFormBuzy,level:"primary",onClick:this.handleConfirmClick},i18n("e83a256e4f5bb4ff8b3d804b5473217a")),React__default.createElement(Button$1,{onClick:tme.closeModalForm},i18n("625fb26b4b3340f7872b411f401e754c")))):React__default.createElement(FinalModal,{theme:ame,size:(rme==null?void 0:rme.size)||"md",show:!!rme,onHide:tme.closeModalForm,closeOnEsc:!1},rme!=null&&rme.title?React__default.createElement(FinalModal.Header,{onClose:tme.closeModalForm},rme.title):null,React__default.createElement(FinalModal.Body,null,ome),React__default.createElement(FinalModal.Footer,null,React__default.createElement("div",{className:"cxd-Dialog-info"},tme.modalFormError?React__default.createElement("div",{className:"cxd-Dialog-error"},tme.modalFormError):null),React__default.createElement(Button$1,{disabled:tme.modalFormBuzy,level:"primary",onClick:this.handleConfirmClick},i18n("e83a256e4f5bb4ff8b3d804b5473217a")),React__default.createElement(Button$1,{onClick:tme.closeModalForm},i18n("625fb26b4b3340f7872b411f401e754c"))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleConfirmClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"scopeRef",null),eme=__decorate$1([observer],eme)}(React__default.Component),ContextMenuPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.render=function(){var $P=this.props.store.contextMenuPanel,tme=$P&&$P.menus?$P.menus:[];return tme&&tme.length>0?React__default.createElement("div",{className:"context-menu-setting"},React__default.createElement("div",{className:"setting-header"},i18n("7f7c624a843b0d539a4ea59a696702f9")),React__default.createElement("div",{className:"setting-body"},tme.map(function(ame){return ame.label&&React__default.createElement("div",{key:ame.label,className:"setting-item ".concat(ame.disabled?"disabled":""),onClick:ame.disabled?null:ame.onSelect},React__default.createElement("div",{className:"icon-box"},React__default.createElement(Icon$1,{icon:ame.icon,className:"menu-icon"})),React__default.createElement("div",{className:"setting-info"},ame.label))}))):null},eme=__decorate$1([observer],eme)}(React__default.Component),DrawerPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.manager,nme=$P.node,rme=$P.panelItem,ime=$P.theme,ome=tme.activeId;return React__default.createElement(Drawer$1,{position:"left",size:"md",theme:ime,show:!!rme,onHide:tme.closeInsertPanel,className:"ae-InsertPanel-drawer"},rme&&rme.component?React__default.createElement(rme.component,{key:rme.key,id:ome,info:nme==null?void 0:nme.info,path:nme==null?void 0:nme.path,value:tme.value,onChange:ame.panelChangeValue,store:tme,manager:ame,popOverContainer:this.getPopOverContainer}):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getPopOverContainer",null),eme=__decorate$1([observer],eme)}(React__default.Component),DrawerRendererPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.render=function(){var $P=this.props,tme=$P.store,ame=$P.manager,nme=$P.node,rme=$P.panelItem,ime=$P.theme,ome=tme.activeId,lme=tme.showInsertRenderer;return React__default.createElement(Drawer$1,{position:"left",size:"md",theme:ime,show:lme,onHide:tme.closeInsertRendererPanel,className:"ae-InsertRendererPanel-drawer",bodyClassName:"ae-drawer-renderers"},rme.title&&React__default.createElement("div",{className:"ae-drawer-title"},rme.title),rme&&rme.component?React__default.createElement(rme.component,{key:rme.key,id:ome,info:nme==null?void 0:nme.info,path:nme==null?void 0:nme.path,value:tme.value,onChange:ame.panelChangeValue,store:tme,manager:ame,popOverContainer:this.getPopOverContainer}):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getPopOverContainer",null),eme=__decorate$1([observer],eme)}(React__default.Component),LeftPanels=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isFixedStatus:!1},tme}return __extends$2(eme,x_),eme.prototype.handleHidden=function(){var $P=this.props.store,tme=$P.changeLeftPanelOpenStatus,ame=$P.leftPanelOpenStatus,nme=$P.changeLeftPanelKey,rme=!ame;tme(rme),nme(rme?"outline":"none")},eme.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},eme.prototype.handleSelect=function($P){var tme=this.props.store,ame=tme.changeLeftPanelOpenStatus,nme=tme.changeLeftPanelKey;$P&&(ame(!0),nme($P))},eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.store,nme=tme.manager,rme=tme.theme,ime=this.state.isFixedStatus,ome=ame.leftPanelOpenStatus,lme=ame.getLeftPanels(),sme=ame.activeId,cme=ame.getNodeById(sme),dme=ame.getLeftPanelKey(),ume=ame.insertId&&ame.insertRegion&&find$3(lme,function(pme){return pme.key==="insert"}),fme=find$3(lme,function(pme){return pme.key==="insertRenderer"});return React__default.createElement(React__default.Fragment,null,lme.length>0&&React__default.createElement("div",{className:cx$1("editor-left-panel width-draggable",ome?"":"hidden-status",ime?"fixed-status":"")},React__default.createElement("div",{className:"editor-panel-btn","editor-tooltip":i18n(ime?"95509c09bdef4bb7842a9b957ab1f971":"426480bb614633c8c3ba8faa0338b72f"),"tooltip-position":"right"},React__default.createElement(Icon$1,{icon:ime?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),React__default.createElement(ThemedTabs,{className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",theme:rme,activeKey:dme,onSelect:this.handleSelect,tabsMode:"sidebar",sidePosition:"left"},lme.map(function(pme){return pme.key!=="insert"&&pme.key!=="insertRenderer"?React__default.createElement(Tab$1,{key:pme.key,eventKey:pme.key,title:pme.title,className:"editorPanel-tabs-pane ae-Editor-".concat(pme.key,"Pane"),mountOnEnter:!0,unmountOnExit:!1},function(hme){return hme.render?hme.render({id:sme,info:cme==null?void 0:cme.info,path:cme==null?void 0:cme.path,node:cme,value:ame.value,onChange:nme.panelChangeValue,store:ame,manager:nme,popOverContainer:$P.getPopOverContainer}):hme.component?React__default.createElement(hme.component,{node:cme,key:hme.key,id:sme,info:cme==null?void 0:cme.info,path:cme==null?void 0:cme.path,value:ame.value,onChange:nme.panelChangeValue,store:ame,manager:nme,popOverContainer:$P.getPopOverContainer}):null}(pme)):null})),React__default.createElement("div",{className:cx$1("left-panel-arrow",ome?"":"hidden-status"),onClick:this.handleHidden})),ime&&React__default.createElement("div",{className:"editor-left-panel-fixed-placeholder"}),React__default.createElement(DrawerPanel,{store:ame,manager:nme,node:cme,panelItem:ume,theme:rme}),React__default.createElement(DrawerRendererPanel,{store:ame,manager:nme,node:cme,panelItem:fme,theme:rme}))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleHidden",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFixed",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getPopOverContainer",null),eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),WidthDraggableBtn=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.handleResizeMouseDown=tme.handleResizeMouseDown.bind(tme),tme.handleResizeMouseMove=tme.handleResizeMouseMove.bind(tme),tme.handleResizeMouseUp=tme.handleResizeMouseUp.bind(tme),tme}return __extends$2(eme,x_),eme.prototype.handleResizeMouseDown=function($P){$P.nativeEvent.which==3||(this.dragWrap=$P.currentTarget.parentElement,document.addEventListener("mousemove",this.handleResizeMouseMove),document.addEventListener("mouseup",this.handleResizeMouseUp),this.startX=$P.clientX,this.startWidth=this.dragWrap.offsetWidth,$P.preventDefault())},eme.prototype.handleResizeMouseMove=function($P){var tme=this.props.isLeftDragIcon,ame=$P.clientX-this.startX;this.dragWrap.style.cssText+="width: ".concat(Math.max(tme?this.startWidth-ame:this.startWidth+ame,260),"px")},eme.prototype.handleResizeMouseUp=function(){document.removeEventListener("mousemove",this.handleResizeMouseMove),document.removeEventListener("mouseup",this.handleResizeMouseUp)},eme.prototype.render=function(){var $P=this.props,tme=$P.isLeftDragIcon,ame=$P.className;return React__default.createElement("div",{onMouseDown:this.handleResizeMouseDown,className:cx$1("width-draggable-icon",ame,tme?"leftBtn":"")})},eme}(React__default.Component),RightPanels=function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.state={isOpenStatus:!0,isFixedStatus:!1},tme}return __extends$2(eme,x_),eme.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},eme.prototype.handleSelect=function($P){this.props.store.changePanelKey($P)},eme.prototype.handleHidden=function(){this.setState({isOpenStatus:!this.state.isOpenStatus})},eme.prototype.getPopOverContainer=function(){return reactDomExports.findDOMNode(this)},eme.prototype.handlePanelChangeValue=function(){for(var $P=[],tme=0;tme<arguments.length;tme++)$P[tme]=arguments[tme];var ame=this.props.manager;ame.panelChangeValue.apply(ame,__spreadArray([],__read$3($P),!1))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.store,nme=tme.manager,rme=tme.theme,ime=tme.readonly,ome=this.state,lme=ome.isOpenStatus,sme=ome.isFixedStatus,cme=ame.getPanels(),dme=ame.activeId,ume=ame.getNodeById(dme),fme=ame.getPanelKey(),pme=function(hme){return hme.render?hme.render({id:dme,info:ume==null?void 0:ume.info,path:ume==null?void 0:ume.path,node:ume,value:ame.value,onChange:$P.handlePanelChangeValue,store:ame,manager:nme,popOverContainer:$P.getPopOverContainer,readonly:ime}):hme.component?React__default.createElement(hme.component,{node:ume,key:hme.key,id:dme,info:ume==null?void 0:ume.info,path:ume==null?void 0:ume.path,value:ame.value,onChange:$P.handlePanelChangeValue,store:ame,manager:nme,popOverContainer:$P.getPopOverContainer,readonly:ime}):null};return cme.length>0?React__default.createElement("div",{className:cx$1("editor-right-panel width-draggable","AMISCSSWrapper",cme.length>1?"mul-tabs-panel":"",lme?"":"hidden-status",sme?"fixed-status":"")},React__default.createElement("div",{className:"editor-panel-btn","editor-tooltip":i18n(sme?"95509c09bdef4bb7842a9b957ab1f971":"426480bb614633c8c3ba8faa0338b72f"),"tooltip-position":"left"},React__default.createElement(Icon$1,{icon:sme?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),React__default.createElement("div",{className:"editorPanel-inner"},cme.length===1?pme(cme[0]):React__default.createElement(ThemedTabs,{theme:rme,tabsMode:"sidebar",sidePosition:"right",className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",activeKey:fme,onSelect:this.handleSelect},cme.map(function(hme){var bme=isHasPluginIcon(hme);return React__default.createElement(Tab$1,{key:hme.key,eventKey:hme.key,title:React__default.createElement("span",{className:"editor-tab-icon","editor-tooltip":hme.title,"tooltip-position":"left"},bme&&React__default.createElement(Icon$1,{icon:hme.pluginIcon,className:"pluginIcon"}),!bme&&React__default.createElement("i",{className:"fa ".concat(hme.icon)})),className:"editorPanel-tabs-pane ae-Editor-".concat(hme.key,"Pane"),mountOnEnter:!0,unmountOnExit:!1},pme(hme))}))),React__default.createElement(WidthDraggableBtn,{isLeftDragIcon:!0}),React__default.createElement("div",{className:cx$1("right-panel-arrow",lme?"":"hidden-status"),onClick:this.handleHidden})):null},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFixed",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleHidden",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getPopOverContainer",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePanelChangeValue",null),eme=__decorate$1([observer,__metadata("design:paramtypes",[Object])],eme)}(React__default.Component),Editor=function(x_){function eme($P){var tme,ame,nme=this;(nme=x_.call(this,$P)||this).mainRef=React__default.createRef(),nme.mainPreviewRef=React__default.createRef(),nme.mainPreviewBodyRef=React__default.createRef(),nme.toDispose=[],nme.isInternalChange=!1;var rme=$P.value,ime=$P.isSubEditor,ome=ime!==void 0&&ime;$P.onChange;var lme=$P.showCustomRenderersPanel,sme=$P.superEditorData,cme=$P.hostManager,dme=$P.onEditorMount,ume=__rest$14($P,["value","isSubEditor","onChange","showCustomRenderersPanel","superEditorData","hostManager","onEditorMount"]),fme=__assign$3({},ume);return nme.store=MainStore.create({isMobile:$P.isMobile,theme:$P.theme,toolbarMode:$P.toolbarMode||"default",noDialog:$P.noDialog,isSubEditor:ome,amisDocHost:$P.amisDocHost,superEditorData:sme,appLocale:$P.appLocale,appCorpusData:(tme=$P==null?void 0:$P.amisEnv)===null||tme===void 0?void 0:tme.replaceText,i18nEnabled:(ame=$P==null?void 0:$P.i18nEnabled)!==null&&ame!==void 0&&ame},fme),nme.store.setCtx($P.ctx),nme.store.setSchema(rme),lme!==void 0&&nme.store.setShowCustomRenderersPanel(lme),nme.manager=new EditorManager(fme,nme.store,cme),$P.isSubEditor&&window.editorStore||(window.editorStore=nme.store),document.addEventListener("keydown",nme.handleKeyDown),window.addEventListener("message",nme.handleMessage,!1),nme.toDispose.push(reaction(function(){return nme.store.schemaRaw},function(pme){nme.lastResult=pme,nme.isInternalChange||$P.onChange(pme)})),nme.toDispose.push(nme.manager.on("preview2editor",function(){return nme.manager.rebuild()})),dme==null||dme(nme.manager),nme}return __extends$2(eme,x_),eme.prototype.componentDidMount=function(){var $P=this.manager.store;this.props.isSubEditor?setTimeout(function(){$P.calculateHighlightBox($P.highlightNodes.map(function(tme){return tme.id}))},500):this.manager.trigger("init",{data:this.manager})},eme.prototype.componentDidUpdate=function($P){var tme,ame,nme,rme=this.props;rme.value!==$P.value&&rme.value!==this.lastResult&&(this.isInternalChange=!0,this.store.setSchema(rme.value),this.isInternalChange=!1),rme.isMobile!==$P.isMobile&&this.store.setIsMobile(rme.isMobile),rme.ctx!==$P.ctx&&this.store.setCtx(rme.ctx),rme.appLocale!==$P.appLocale&&this.store.setAppLocale(rme.appLocale),((tme=rme==null?void 0:rme.amisEnv)===null||tme===void 0?void 0:tme.replaceText)!==((ame=$P==null?void 0:$P.amisEnv)===null||ame===void 0?void 0:ame.replaceText)&&this.store.setAppCorpusData((nme=rme==null?void 0:rme.amisEnv)===null||nme===void 0?void 0:nme.replaceText)},eme.prototype.componentWillUnmount=function(){var $P,tme,ame=this;(tme=($P=this.props).onEditorUnmount)===null||tme===void 0||tme.call($P,this.manager),document.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("message",this.handleMessage),this.toDispose.forEach(function(nme){return nme()}),this.toDispose=[],this.manager.dispose(),setTimeout(function(){return destroy(ame.store)},4)},eme.prototype.handleKeyDown=function($P){var tme;if(!this.props.isSubEditor&&!this.props.readonly){var ame=this.manager.store;if($P.target.tagName==="BODY"&&($P.key==="z"||$P.key==="Z")&&($P.metaKey||$P.ctrlKey)&&$P.shiftKey)return $P.preventDefault(),void this.redo();if($P.target.tagName==="BODY"&&($P.key==="z"||$P.key==="Z")&&($P.metaKey||$P.ctrlKey))return $P.preventDefault(),void this.undo();if($P.target.tagName==="BODY"&&($P.key==="s"||$P.key==="S")&&($P.metaKey||$P.ctrlKey))return $P.preventDefault(),void this.save();if($P.target.tagName!=="BODY"||$P.key!=="c"&&$P.key!=="C"||!$P.metaKey&&!$P.ctrlKey){if($P.target.tagName==="BODY"&&($P.key==="v"||$P.key==="V")&&($P.metaKey||$P.ctrlKey))return $P.preventDefault(),void(this.curCopySchemaData&&this.paste());if($P.target.tagName==="BODY"&&$P.key==="x"&&($P.metaKey||$P.ctrlKey))$P.preventDefault(),this.store.activeId&&((nme=ame.getNodeById(this.store.activeId))&&ame.activeRegion?toast.warning(i18n("d6f73c6f3b92be5a64f7ea0163501284")):ame.isRootSchema(this.store.activeId)?toast.warning(i18n("4fda4f585214d469c04466e2fc98b796")):nme&&nme.moveable?(this.copy(),this.manager.del(this.store.activeId)):toast.warning(i18n("657bbe06d3922b23552817df7fa8268e")));else if($P.target.tagName==="BODY"&&$P.key==="p"&&($P.metaKey||$P.ctrlKey))$P.preventDefault(),this.preview();else if($P.target.tagName==="BODY"&&$P.key==="ArrowUp"&&($P.metaKey||$P.ctrlKey))$P.preventDefault(),this.store.activeId&&((nme=ame.getNodeById(this.store.activeId))&&nme.canMoveUp?this.manager.moveUp():toast.warning(i18n("416445a316595bdeb44b661c7de875a8")));else if($P.target.tagName==="BODY"&&$P.key==="ArrowDown"&&($P.metaKey||$P.ctrlKey))$P.preventDefault(),this.store.activeId&&((nme=ame.getNodeById(this.store.activeId))&&nme.canMoveDown?this.manager.moveDown():toast.warning(i18n("6ac88d87b2fd118ba7beab8c17880470")));else if($P.target.tagName==="BODY"&&($P.key==="Backspace"||$P.key==="Delete")){var nme;$P.preventDefault(),this.store.activeId&&((nme=ame.getNodeById(this.store.activeId))&&ame.activeRegion&&(!((tme=nme.info)===null||tme===void 0)&&tme.regions)&&nme.info.regions.length>1?toast.warning(i18n("fdb3cba60407b2f1aea0230cca644573")):ame.isRootSchema(this.store.activeId)?toast.warning(i18n("8a4b4e2e3b0382007e0c69ed1fe6fe71")):nme&&(nme.removable||nme.removable===void 0)?this.manager.del(this.store.activeId):toast.warning(i18n("22f031f3de2e55c430a818d8c588f7a1")));return}}else this.copy()}},eme.prototype.handleMessage=function($P){$P.data&&$P.data.type==="amis-widget-register-event"&&$P.data.editorPluginName&&(console.info(i18n("55c56d01a7747ffe0346d42145b62d97"),$P.data.editorPluginName),this.manager.dynamicAddPlugin($P.data.editorPluginName))},eme.prototype.handleContextMenu=function($P){var tme,ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:return $P.persist(),[4,closeContextMenus()];case 1:if(ume.sent(),rme="",ime="",this.store.activeId?rme=(tme=$P.target.closest('[data-editor-id="'.concat(this.store.activeId,'"]')))===null||tme===void 0?void 0:tme.getAttribute("data-editor-id"):this.store.selections.length&&(rme=(ame=$P.target.closest(this.store.selections.map(function(fme){return'[data-editor-id="'.concat(fme,'"]')}).join(",")))===null||ame===void 0?void 0:ame.getAttribute("data-editor-id")),rme||(rme=(nme=$P.target.closest("[data-editor-id]"))===null||nme===void 0?void 0:nme.getAttribute("data-editor-id")),!rme){if(ome=$P.target.closest("[data-node-id]"),!(rme=ome==null?void 0:ome.getAttribute("data-node-id")))return[2];ime=ome.getAttribute("data-node-region")}return $P.preventDefault(),$P.stopPropagation(),lme=this.manager,sme=0,cme=0,$P.target.ownerDocument!==document&&(dme=lme.store.getIframe().getBoundingClientRect(),sme=dme.left,cme=dme.top),lme.openContextMenu(rme,ime,{x:window.scrollX+$P.clientX+sme,y:window.scrollY+$P.clientY+cme}),[2]}})})},eme.prototype.canUndo=function(){return this.store.canUndo},eme.prototype.canRedo=function(){return this.store.canRedo},eme.prototype.undo=function(){this.props.onUndo?this.props.onUndo():this.store.undo()},eme.prototype.redo=function(){this.props.onRedo?this.props.onRedo():this.store.redo()},eme.prototype.save=function(){this.props.onSave&&this.props.onSave()},eme.prototype.preview=function(){this.props.onPreview&&this.props.onPreview(!this.props.preview)},eme.prototype.copy=function(){this.store.activeId&&(this.curCopySchemaData=this.store.getSchema(this.store.activeId))},eme.prototype.paste=function(){if(this.store.activeId&&this.curCopySchemaData){if(!this.curCopySchemaData)return;var $P=this.store.getSimpleSchema(this.curCopySchemaData);this.store.activeId===this.curCopySchemaData.$$id?this.manager.appendSiblingSchema(reGenerateID($P),!1):this.manager.addElem(reGenerateID($P),!1)}},eme.prototype.getToolbarContainer=function(){return this.mainRef.current},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.preview,nme=tme.isMobile,rme=tme.className,ime=tme.theme,ome=tme.appLocale,lme=tme.data,sme=tme.previewProps,cme=tme.autoFocus;tme.isSubEditor;var dme=tme.amisEnv,ume=tme.readonly,fme=tme.children;return React__default.createElement("div",{ref:this.mainRef,className:cx$1("ae-Editor",{preview:ame},rme)},React__default.createElement("div",{className:cx$1("ae-Editor-inner",nme&&"ae-Editor-inner--mobile"),onContextMenu:this.handleContextMenu},!ame&&!ume&&React__default.createElement(LeftPanels,{store:this.store,manager:this.manager,theme:ime}),React__default.createElement("div",{className:"ae-Main",ref:this.mainPreviewRef},!ame&&React__default.createElement("div",{className:"ae-Header"},React__default.createElement(Breadcrumb,{store:this.store,manager:this.manager}),React__default.createElement("div",{id:"aeHeaderRightContainer",className:"ae-Header-Right-Container"})),nme&&React__default.createElement(MobileDevTool,{container:this.mainPreviewRef.current,previewBody:($P=this.mainPreviewBodyRef.current)===null||$P===void 0?void 0:$P.currentDom}),React__default.createElement(Preview,__assign$3({},sme,{editable:!ame,isMobile:nme,store:this.store,manager:this.manager,theme:ime,appLocale:ome,data:lme,amisEnv:dme,autoFocus:cme,toolbarContainer:this.getToolbarContainer,readonly:ume,ref:this.mainPreviewBodyRef}))),!ame&&React__default.createElement(RightPanels,{store:this.store,manager:this.manager,theme:ime,appLocale:ome,amisEnv:dme,readonly:ume}),!ame&&React__default.createElement(ContextMenuPanel,{store:this.store}),typeof fme=="function"?fme(this.manager):fme),React__default.createElement(SubEditor,{store:this.store,manager:this.manager,theme:ime,amisEnv:dme,readonly:ume}),React__default.createElement(ScaffoldModal,{store:this.store,manager:this.manager,theme:ime}),React__default.createElement(PopOverForm,{store:this.store,manager:this.manager,theme:ime}),React__default.createElement(ModalForm,{store:this.store,manager:this.manager,theme:ime}))},eme.defaultProps={autoFocus:!0},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[KeyboardEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyDown",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMessage",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleContextMenu",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getToolbarContainer",null),eme}(reactExports.Component),Editor$1=Editor,classOptions=[{label:i18n("4e7f76261f8c4c6d78998f85fc1f4c6e"),children:[{label:i18n("16a20243f9b741c08216dc9548de2968"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"m-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"m-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"m-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-lg"}]},{label:i18n("461d364c67ec6a45e011ed13f2f7154f"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"m-t-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"m-t-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-t"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"m-t-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-t-lg"}]},{label:i18n("31e3752986d64c8b36897c8641c8628d"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"m-r-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"m-r-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-r"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"m-r-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-r-lg"}]},{label:i18n("eabe91d9426b6446f707cea3e7ab2418"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"m-b-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"m-b-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-b"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"m-b-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-b-lg"}]},{label:i18n("2e46d251ee6188bb1b3ff20656276572"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"m-l-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"m-l-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"m-l"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"m-l-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"m-l-lg"}]},{label:i18n("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),children:[{label:i18n("a8b0c20416853bda54120bf19477ad11"),value:"m-none"},"|",{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"m-t-none"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"m-r-none"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"m-b-none"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"m-l-none"}]}]},{label:i18n("841d77223f0ec8cd0b530ed8e0775b20"),children:[{label:i18n("16a20243f9b741c08216dc9548de2968"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"p-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"p-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"p-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-lg"}]},{label:i18n("461d364c67ec6a45e011ed13f2f7154f"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"p-t-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"p-t-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-t"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"p-t-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-t-lg"}]},{label:i18n("31e3752986d64c8b36897c8641c8628d"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"p-r-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"p-r-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-r"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"p-r-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-r-lg"}]},{label:i18n("eabe91d9426b6446f707cea3e7ab2418"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"p-b-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"p-b-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-b"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"p-b-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-b-lg"}]},{label:i18n("2e46d251ee6188bb1b3ff20656276572"),children:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"p-l-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"p-l-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"p-l"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"p-l-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"p-l-lg"}]},{label:i18n("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),children:[{label:i18n("a8b0c20416853bda54120bf19477ad11"),value:"p-none"},"|",{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"p-t-none"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"p-r-none"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"p-b-none"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"p-l-none"}]}]},{label:i18n("961534b4ea37e4e88aada736b299d063"),className:"w2x",children:[{label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),children:[{label:i18n("a8b0c20416853bda54120bf19477ad11"),value:"b-a"},"|",{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"b-t"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"b-r"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"b-b"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"b-l"},"|",{label:i18n("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),value:"no-border"}]},{label:i18n("58f966670529f4753fb3c5a0647606be"),children:[{label:"2x",value:"b-2x"},{label:"3x",value:"b-3x"},{label:"4x",value:"b-4x"},{label:"5x",value:"b-5x"}]},{label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),children:[{label:i18n("fbae87bcc352f6933541fb77a07418ed"),value:"b-primary",className:"bg-primary"},{label:i18n("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"b-info",className:"bg-info"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"b-warning",className:"bg-warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"b-danger",className:"bg-danger"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"b-success",className:"bg-success"},{label:i18n("2fc96b2704b05d6a9f299c442573ee77"),value:"b-white",className:"bg-white"},{label:i18n("adb7e5312abdb9a44297e48d63815fa3"),value:"b-dark",className:"bg-dark"},{label:i18n("48d0a09bdd5fe7e89f0a445b0ffdf14f"),value:"b-light",className:"bg-light"}]}]},{label:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),className:"w2x",children:[{label:i18n("0103eb2d3dca70270d1a74e9ec987ac9"),children:[{label:i18n("a8b0c20416853bda54120bf19477ad11"),value:"r"},"|",{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"r-t"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"r-r"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"r-b"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"r-l"},"|",{label:"2x",value:"r-2x"},{label:"3x",value:"r-3x"}]},{label:i18n("8456bc40d48da5af833f1c63385e9879"),children:[{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"font-normal"},{label:i18n("b3b2682579133673d3fe08c156d565dc"),value:"font-thin"},{label:i18n("56dce5d1cbb97439d291c458e50107e0"),value:"font-bold"},"|",{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"text-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"text-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"text-base"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"text-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"text-lg"}]},{label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),children:[{label:i18n("fbae87bcc352f6933541fb77a07418ed"),value:"text-primary",className:"text-primary"},{label:i18n("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"text-info",className:"text-info"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"text-warning",className:"text-warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"text-danger",className:"text-danger"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"text-success",className:"text-success"},{label:i18n("2fc96b2704b05d6a9f299c442573ee77"),value:"text-white",className:"text-white bg-dark"},{label:i18n("adb7e5312abdb9a44297e48d63815fa3"),value:"text-dark",className:"text-dark"},{label:i18n("49a79f4047b81186c069ed1c9c151c66"),value:"text-muted",className:"text-muted"}]},{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),children:[{label:i18n("fbae87bcc352f6933541fb77a07418ed"),value:"bg-primary",className:"bg-primary"},{label:i18n("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"bg-info",className:"bg-info"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"bg-warning",className:"bg-warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"bg-danger",className:"bg-danger"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"bg-success",className:"bg-success"},{label:i18n("2fc96b2704b05d6a9f299c442573ee77"),value:"bg-white",className:"bg-white"},{label:i18n("adb7e5312abdb9a44297e48d63815fa3"),value:"bg-dark",className:"bg-dark"},{label:i18n("48d0a09bdd5fe7e89f0a445b0ffdf14f"),value:"bg-light",className:"bg-light"},"|",{label:i18n("3dc4038d0f0a2d2b3c2b2e29a5ec6dde"),value:"no-bg"}]},{label:i18n("c28479019e24e0e4745f4948e9e97ee7"),children:[{label:i18n("f72ce9ad683cc82e0eab557ffc9c67a0"),value:"w-xxs"},{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"w-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"w-sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"w"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"w-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"w-lg"},{label:i18n("b95c462d7697958c25861193fc89ae07"),value:"w-xl"},{label:i18n("3386da5f56fac758ed0f18e024ecb943"),value:"w-xxl"},{label:i18n("ffaa96ef7232cb6d8ee4d7e673dbf4ac"),value:"w-full"}]}]}];function splitOptions(x_){for(var eme=[],$P=eme[0]=[],tme=0,ame=x_.length;tme<ame;tme++){var nme=x_[tme];nme==="|"?($P=[],eme.push($P)):$P.push(nme)}return eme}(function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={isFocused:!1,isOpened:!1},$P.values=[],$P}__extends$2(eme,x_),eme.prototype.open=function(){this.setState({isOpened:!0})},eme.prototype.close=function(){this.setState({isOpened:!1})},eme.prototype.toggle=function(){this.setState({isOpened:!this.state.isOpened})},eme.prototype.handleFocus=function($P){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus($P)},eme.prototype.handleBlur=function($P){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur($P)},eme.prototype.handleChange=function($P){(0,this.props.onChange)($P.currentTarget.value)},eme.prototype.getParent=function(){return reactDomExports.findDOMNode(this)},eme.prototype.getTarget=function(){return reactDomExports.findDOMNode(this)},eme.prototype.handlePopOverChange=function($P){var tme=this.props.value||"",ame=tme.replace(/\s+/g," ").split(/\s+/),nme=ame.indexOf($P.value),rme=this.props.onChange;if(~nme)ame.splice(nme,1),tme=ame.join(" ");else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test($P.value)){var ime=new RegExp("(?:^|\\s)".concat(RegExp.$1,"\\-").concat(RegExp.$2,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig");tme=tme.replace(ime,"")}else/(?:^|\s)(m|p)(?:\-(xs|sm|md|lg))?(?:$|\s)/.test($P.value)?(ime=new RegExp("(?:^|\\s)".concat(RegExp.$1,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig"),tme=tme.replace(ime,"")):/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test($P.value)?(ime=new RegExp(RegExp.$2?"(?:^|\\s)".concat(RegExp.$1,"(?:(?:\\-").concat(RegExp.$2,"(?:\\-(?:xs|sm|md|lg)))|\\-none)?(?=(\\s|$))"):"(?:^|\\s)".concat(RegExp.$1,"(?:[^\\s$]+)?(?=(\\s|$))"),"ig"),tme=tme.replace(ime,"$1")):/(?:^|\s)w(?:\-\w+)?(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)w(?:\-\w+)?(?=(\s|$))/g,""):$P.value==="b-a"?tme=(tme=tme.replace(/(?:^|\s)b\-(?:t|r|b|l)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-(?:t|r|b|l)?(?:$|\s)/.test($P.value)?tme=(tme=tme.replace(/(?:^|\s)b\-a(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-\dx(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)b\-\dx(?=(\s|$))/g,""):$P.value==="no-border"?tme=tme.replace(/(?:^|\s)b\-(?:\dx|\w+)(?=(\s|$))/g,""):/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):$P.value==="r"?tme=tme.replace(/(?:^|\s)r\-(?:t|r|b|l)(?=(\s|$))/g,""):/(?:^|\s)r\-(?:t|r|b|l)?(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)r(?=(\s|$))/g,""):/(?:^|\s)r\-\dx(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)r\-\dx(?=(\s|$))/g,""):/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?=(\s|$))/g,""):/(?:^|\s)font\-(?:normal|thin|bold)(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)font\-(?:normal|thin|bold)(?=(\s|$))/g,""):/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test($P.value)?tme=tme.replace(/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test($P.value)?tme=(tme=tme.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-bg(?=(\s|$))/g,""):$P.value==="no-bg"&&(tme=tme.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""));tme=tme.replace(/\s+/g," ").trim(),tme+=(tme?" ":"")+$P.value}rme(tme)},eme.prototype.renderGroup=function($P,tme){var ame=this,nme=this.props.classnames;return React__default.createElement("div",{key:tme,className:nme("ae-ClassNameControl-group",$P.className)},React__default.createElement("label",{className:nme("ae-ClassNameControl-groupLabel",$P.labelClassName)},$P.label),$P.children&&$P.children.length?$P.children[0].value?this.renderOptions($P.children,tme):$P.children.map(function(rme,ime){return ame.renderGroup(rme,ime)}):null)},eme.prototype.renderOptions=function($P,tme){var ame=this,nme=this.props.classnames;return splitOptions($P).map(function(rme,ime){return React__default.createElement("div",{className:nme("ButtonGroup"),key:ime},rme.map(function(ome,lme){return React__default.createElement("div",{key:lme,onClick:function(){return ame.handlePopOverChange(ome)},className:nme("Button Button--size-xs",ome.className,~ame.values.indexOf(ome.value)?"Button--primary":"Button--default")},ome.label)}))})},eme.prototype.renderPopover=function(){var $P=this,tme=this.props.value;return this.values=typeof tme=="string"?tme.split(" "):[],React__default.createElement("div",null,classOptions.map(function(ame,nme){return $P.renderGroup(ame,nme)}))},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.classnames,nme=tme.readOnly,rme=tme.disabled,ime=tme.value,ome=tme.className,lme=tme.name,sme=tme.popOverContainer;return React__default.createElement("div",{className:ome},React__default.createElement("div",{className:ame("TextControl",($P={},$P["TextControl--withAddOn"]=!0,$P["is-focused"]=this.state.isFocused,$P["is-disabled"]=rme,$P))},React__default.createElement("div",{className:ame("TextControl-input")},React__default.createElement("input",{name:lme,placeholder:i18n("47eac1ac32a8aa9081dffbdc4d374318"),disabled:rme,readOnly:nme,type:"text",autoComplete:"off",onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,value:ime==null?"":typeof ime=="string"?ime:JSON.stringify(ime)})),React__default.createElement("div",{className:ame("TextControl-button")},React__default.createElement(Button$1,{onClick:this.toggle},React__default.createElement("i",{className:"fa fa-cog"})))),React__default.createElement(Overlay,{placement:"right-bottom-right-top  right-top-right-bottom right-bottom-right-top",target:this.getTarget,container:sme||this.getParent,rootClose:!1,show:this.state.isOpened,watchTargetSizeChange:!1},React__default.createElement(PopOver$1,{className:"ae-ClassNamePicker-popover",onHide:this.close,overlay:!0},this.renderPopover())))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"open",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"close",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toggle",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFocus",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBlur",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getParent",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getTarget",null),eme=__decorate$1([FormItem({type:"ae-classname"})],eme)})(React__default.Component);var AvailableRenderersPlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=-9999,$P}return __extends$2(eme,x_),eme.prototype.buildEditorPanel=function($P,tme){var ame=this.manager.store;$P.selections.length||ame.subRenderers.length&&tme.push({key:"renderers",icon:"png-icon renderers-png",title:React__default.createElement("span",{className:"editor-tab-icon","editor-tooltip":i18n("bb79667f37035e9562ec6bcffd6cf8ef")},React__default.createElement(Icon$1,{icon:"editor-renderer"})),component:AvailableRenderersPanel,position:"left",order:-9999})},eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(AvailableRenderersPlugin);var BasicToolbarPlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=-9999,$P}return __extends$2(eme,x_),eme.prototype.buildEditorToolbar=function($P,tme){var ame,nme,rme,ime,ome=this,lme=$P.id,sme=$P.schema,cme=$P.info,dme=this.manager.store,ume=dme.getNodeById(lme),fme=dme.getSchemaParentById(lme),pme=this.manager.draggableContainer(lme),hme=(sme==null?void 0:sme.isSorptionContainer)||!1,bme=ume.parent;if(Array.isArray(fme)&&(bme!=null&&bme.isRegion)||pme){var mme=ume.host;!ume.draggable&&!pme||hme||tme.push({id:"drag",iconSvg:"drag-btn",icon:"fa fa-arrows",tooltip:i18n("7f2f0461a58c43667d7245ce92bb2e77"),placement:"bottom",draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,lme)});var vme=fme==null?void 0:fme.indexOf(sme);if(!(mme!=null&&mme.memberImmutable(bme.region))&&dme.panels.some(function(yme){return yme.key==="renderers"})&&dme.toolbarMode==="default"){var gme=(ame=fme[vme+1])===null||ame===void 0?void 0:ame.$$id;tme.push({id:"insert-before",iconSvg:"left-arrow-to-left",tooltip:i18n("78c1c38b91c672da1113fa2564c14ea6"),placement:"bottom",onClick:function(){return ome.manager.showInsertPanel(bme.region,bme.id,bme.preferTag,"insert",void 0,lme)}},{id:"insert-after",iconSvg:"arrow-to-right",tooltip:i18n("87f48bbadfbef5ef4554e06b7e141d37"),placement:"bottom",onClick:function(){return ome.manager.showInsertPanel(bme.region,bme.id,bme.preferTag,"insert",void 0,gme)}})}}ume.isVitualRenderer||!ume.info.plugin.popOverBody&&!ume.info.plugin.popOverBodyCreator||tme.push({id:"edit",icon:"fa fa-pencil",tooltip:i18n("95b351c86267f3aedf89520959bce689"),placement:"bottom",onClick:function(yme){return ome.manager.openNodePopOverForm(ume.id)}}),(ume.removable||ume.removable===void 0)&&tme.push({id:"delete",iconSvg:"delete-btn",icon:"fa",tooltip:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),placement:"bottom",order:999,onClick:this.manager.del.bind(this.manager,lme)}),dme.toolbarMode==="default"&&tme.push({id:"more",iconSvg:"more-btn",icon:"fa fa-cog",tooltip:i18n("0ec9eaf9c3525eb110db58aae5912210"),placement:"bottom",order:1e3,onClick:function(yme){if(!yme.defaultPrevented){var _me=yme.target.parentElement.getBoundingClientRect(),$me=window.scrollX+_me.left+_me.width-150;$me<0&&($me=window.scrollX+_me.left),ome.manager.openContextMenu(lme,"",{x:$me,y:window.scrollY+_me.top+_me.height+8})}}}),((rme=(nme=cme.scaffoldForm)===null||nme===void 0?void 0:nme.canRebuild)!==null&&rme!==void 0?rme:!((ime=cme.plugin.scaffoldForm)===null||ime===void 0)&&ime.canRebuild)&&tme.push({id:"build",iconSvg:"harmmer",tooltip:"快速构建「".concat(cme.plugin.name,"」"),placement:"bottom",onClick:function(){return ome.manager.reScaffoldV2(lme)}})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame,nme,rme,ime,ome,lme=this,sme=$P.id,cme=$P.schema,dme=$P.region,ume=$P.info,fme=$P.selections,pme=this.manager,hme=pme.store,bme=hme.getSchemaParentById(sme),mme=hme.getNodeById(sme),vme=hme.getNodePathById(sme),gme=vme.pop();if(mme.host,mme.parent,fme.length)hme.toolbarMode==="default"&&tme.push({id:"copy",label:i18n("417db09508befe7dbe9f84a517a6edec"),icon:"copy-icon",disabled:fme.some(function(Cme){return!Cme.node.duplicatable}),onSelect:function(){return pme.duplicate(fme.map(function(Cme){return Cme.id}))}}),tme.push({id:"unselect",label:i18n("99b81127ef28368151621cdfccce69f8"),icon:"cancel-icon",onSelect:function(){var Cme;return hme.setActiveId(sme,dme||((Cme=mme.childRegions.find(function(Sme){return Sme.region}))===null||Cme===void 0?void 0:Cme.region))}}),tme.push({id:"delete",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),icon:"delete-icon",disabled:fme.some(function(Cme){return!Cme.node.removable}),className:"text-danger",onSelect:function(){return pme.del(fme.map(function(Cme){return Cme.id}))}});else if(dme)($me=hme.panels.find(function(Cme){return Cme.key==="renderers"}))&&(tme.push({id:"insert",label:i18n("205f45ee17394bd5668412780eaa55e2"),onHighlight:function(Cme){return Cme&&hme.setHoverId(sme,dme)},onSelect:function(){return hme.showInsertRendererPanel()}}),tme.push({id:"clear",label:i18n("288f0c404c4e546aa3683ff5054e85e2"),onSelect:function(){return pme.emptyRegion(sme,dme)}}),tme.push({id:"paste",label:i18n("eafbece1016a6af76cce466e55ad9f00"),onSelect:function(){return pme.paste(sme,dme)}}));else{if(hme.toolbarMode==="mini")return;if(tme.push({id:"select",label:"选中".concat(gme.label),disabled:hme.activeId===gme.id,data:sme,onSelect:function(Cme){return hme.setActiveId(Cme)},onHighlight:function(Cme,Sme){return Cme&&hme.setHoverId(Sme)}}),vme.length){var yme=vme.filter(function(Cme){var Sme;return!Cme.isRegion&&((Sme=Cme.info)===null||Sme===void 0?void 0:Sme.editable)!==!1}).reverse().map(function(Cme){return{label:Cme.label,data:Cme.id,onSelect:function(Sme){return hme.setActiveId(Sme)},onHighlight:function(Sme,Eme){return Sme&&hme.setHoverId(Eme)}}});yme.length&&tme.push({label:i18n("7ad78e0991f34ff3a345c59a2fc31572"),children:yme})}tme.push({id:"unselect",label:i18n("aafda9e8f6b7b613680677c513edb7a6"),disabled:!hme.activeId||hme.activeId!==sme,onSelect:function(){return hme.setActiveId("")}}),tme.push("|"),tme.push({id:"copy",label:i18n("417db09508befe7dbe9f84a517a6edec"),disabled:!mme.duplicatable,onSelect:function(){return pme.duplicate(sme)}}),tme.push({id:"copy-config",label:i18n("b58d101f52531c845f15db63d7212115"),onSelect:function(){return pme.copy(sme)}}),tme.push({id:"cat-config",label:i18n("74e2bc6615b7dbbb11fd5e1e212263ae"),disabled:!mme.removable,onSelect:function(){return pme.cut(sme)}}),tme.push({id:"paste-config",label:i18n("e2f401af580d1354ae00ec4ca19e2e24"),disabled:!Array.isArray(bme)||!mme.parent||((ame=mme.info)===null||ame===void 0?void 0:ame.typeMutable)===!1||!mme.replaceable,onSelect:function(){return pme.paste(sme)}}),tme.push({id:"delete",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),disabled:!mme.removable,className:"text-danger",onSelect:function(){return pme.del(sme)}}),tme.push("|");var _me=Array.isArray(bme)?bme.indexOf(cme):-1;tme.push({id:"move-forward",label:i18n("21462ae22216eec41dc688cc4a8ae64b"),disabled:!(Array.isArray(bme)&&_me>0&&mme.moveable),onSelect:function(){return pme.moveUp()}}),tme.push({id:"move-backward",label:i18n("ed2bc13d8bbd99e16e017dd5f5393393"),disabled:!(Array.isArray(bme)&&_me<bme.length-1&&mme.moveable),onSelect:function(){return pme.moveDown()}}),tme.push("|"),tme.push({id:"undo",label:i18n("9e54f3e4ee3330299c5fdc910c2e8d3c"),disabled:!hme.canUndo,onSelect:function(){return hme.undo()}}),tme.push({id:"redo",label:i18n("ae8e86e426c2ba00da274b66dc372a8b"),disabled:!hme.canRedo,onSelect:function(){return hme.redo()}}),tme.push("|");var $me=hme.panels.find(function(Cme){return Cme.key==="renderers"});gme.childRegions.length&&$me&&(gme.childRegions.length>1?tme.push({id:"insert",label:i18n("205f45ee17394bd5668412780eaa55e2"),children:gme.childRegions.map(function(Cme){return{label:"".concat(Cme.label),data:Cme.region,onHighlight:function(Sme,Eme){return Sme?hme.setHoverId(sme,Eme):hme.setHoverId("")},onSelect:function(){return hme.showInsertRendererPanel()}}})}):tme.push({id:"insert",label:i18n("205f45ee17394bd5668412780eaa55e2"),data:gme.childRegions[0].region,onHighlight:function(Cme,Sme){return Cme?hme.setHoverId(sme,Sme):hme.setHoverId("")},onSelect:function(){return hme.showInsertRendererPanel()}})),mme.type==="container"&&tme.push({id:"clear",label:"清空容器",disabled:!(!((nme=mme.schema.body)===null||nme===void 0)&&nme.length),onSelect:function(){return pme.emptyRegion(sme,"body")}}),tme.push({id:"replace",label:i18n("107542a61cdccbb2981ad0c8bafc3440"),disabled:!(mme.host&&((rme=mme.info)===null||rme===void 0?void 0:rme.typeMutable)!==!1&&mme.parent.isRegion&&hme.panels.some(function(Cme){return Cme.key==="renderers"})&&mme.replaceable),onSelect:function(){return pme.showReplacePanel(sme)}})}fme.length||!(!((ime=ume.plugin.scaffoldForm)===null||ime===void 0)&&ime.canRebuild)&&!(!((ome=ume.scaffoldForm)===null||ome===void 0)&&ome.canRebuild)||tme.push({id:"build",label:"快速构建「".concat(ume.plugin.name,"」"),disabled:cme.$$commonSchema||cme.$$formSchema,onSelect:function(){return lme.manager.reScaffold(sme,ume.scaffoldForm||ume.plugin.scaffoldForm,cme)}})},eme.prototype.buildEditorPanel=function($P,tme){if($P.selections.length){var ame=this.manager.store,nme=[],rme=__assign$3(__assign$3({},$P),{data:nme,region:""});(nme=this.manager.buildContextMenus(rme)).length&&tme.push({key:"contextmenu",icon:"fa fa-cog",title:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),menus:nme,render:this.manager.makeSchemaFormRender({body:[{type:"button-group",buttons:nme.filter(function(ime){return ime!=="|"}).map(function(ime){return __assign$3(__assign$3({},ime),{type:"button",onClick:ime.onSelect})})}],panelById:ame.activeId})})}},eme.prototype.afterInsert=function($P){var tme,ame,nme=this,rme=$P.context;if(rme.node&&(!((ame=(tme=rme.subRenderer)===null||tme===void 0?void 0:tme.plugin)===null||ame===void 0)&&ame.popOverBody)){var ime=rme.data.$$id;ime&&setTimeout(function(){nme.manager.setActiveId(ime),requestAnimationFrame(function(){nme.manager.openNodePopOverForm(ime)})},200)}},eme.scene=["layout"],eme}(BasePlugin);function WidthDraggableContainer(x_,eme){return function($P){function tme(){return $P!==null&&$P.apply(this,arguments)||this}return __extends$2(tme,$P),tme.prototype.render=function(){return React__default.createElement(React__default.Fragment,null,React__default.createElement(x_,__assign$3({},this.props)),React__default.createElement(WidthDraggableBtn,{isLeftDragIcon:eme}))},tme}(React__default.Component)}registerEditorPlugin(BasicToolbarPlugin);var internalSchema=/^\/schemas\/(.*).json$/;function buildSchema(x_,eme,$P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:return ame=Array.isArray(tme)?tme.concat():[],[3,3];case 1:rme.apply(nme,[(sme.schema=cme.sent(),sme)]),cme.label=2;case 2:cme.label=3;case 3:return internalSchema.test(eme)&&(ime=RegExp.$1,ome="".concat(x_.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,"$1"),"/schemas/").concat(ime,".json"),lme=findIndex$3(ame,function(dme){var ume;return((ume=dme.fileMatch)===null||ume===void 0?void 0:ume[0])===$P}),~lme&&ame.splice(lme,1),ame.push({uri:ome,fileMatch:[$P],schema:{$schema:"http://json-schema.org/draft-07/schema#",$ref:"".concat(x_,"#/definitions/").concat(ime)}})),[2,ame]}})})}var codeErrorWarning=debounce$6(function(x_){toast.warning(`代码有误，错误的地方是
 `.concat(x_.toString().split(`
`)[1]))},3e3),AMisCodeEditor=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={wrongSchema:"",value:$P.props.value,contents:$P.obj2str($P.props.value,$P.props)},$P.toDispose=[],$P.uri="isuda://schema/".concat(guid(),".json"),$P.emitChange=debounce$6(function(){var tme=$P.props,ame=tme.onChange,nme=tme.value,rme=$P.str2obj($P.state.contents);if(rme&&(isPlainObject$b(rme)||isArray$t(rme))){$P.setState({wrongSchema:""}),delete rme.$schema,rme=filterSchemaForConfig(rme,$P.props.value);var ime=diff($P.lastResult||nme,rme);$P.lastResult=rme,ame(rme,ime)}else $P.setState({wrongSchema:$P.state.contents})},250,{trailing:!0,leading:!1}),$P.editorFactory=function(tme,ame,nme){var rme=ame.Uri.parse($P.uri);return $P.model=ame.editor.createModel($P.state.contents,"json",rme),ame.editor.create(tme,__assign$3(__assign$3({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},nme),{model:$P.model}))},$P.editorDidMount=function(tme,ame){$P.editor=tme,$P.monaco=ame,$P.changeJsonOptions($P.props),$P.props.onPaste&&$P.toDispose.push($P.editor.onDidPaste($P.props.onPaste).dispose)},$P.editorWillUnmount=function(tme,ame){$P.toDispose.forEach(function(nme){return nme()}),$P.toDispose=[]},$P.handleChange=function(tme){$P.setState({contents:tme},$P.emitChange)},$P.handleBlur=function(){return __awaiter($P,void 0,void 0,function(){var tme,ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:return tme=this.state,ame=tme.wrongSchema,nme=tme.value,ame?[4,prompt([{className:"w-full",type:"tpl",label:!1,tpl:i18n("7e4b38ba0ab9cbfcabd9dd859e36b601")},{type:"switch",label:!1,option:i18n("af86ad9dd8a221f931dcdc5a63382b6f"),name:"diff",value:!1},{visibleOn:"this.diff",label:!1,type:"diff-editor",allowFullscreen:!0,disabled:!0,name:"newValue",size:"xxl",language:"json",diffValue:"${oldValue}"}],{oldValue:nme,newValue:ame},i18n("43d586cd6cf1a512c0bcb85ed9efde51"))]:[2];case 1:return rme.sent()?this.setState({wrongSchema:"",contents:stringify_1(nme)}):this.editor.focus(),[2]}})})},$P}return __extends$2(eme,x_),eme.prototype.componentDidUpdate=function($P){var tme=this.props;$P.$schema!==tme.$schema&&this.monaco&&this.changeJsonOptions(tme),isObjectShallowModified(tme.value,$P.value)&&isObjectShallowModified(tme.value,this.lastResult)&&(this.lastResult=null,this.setState({value:tme.value,contents:this.obj2str(tme.value,tme)}))},eme.prototype.obj2str=function($P,tme){var ame;return $P=filterSchemaForConfig($P),isArray$t($P)||($P=__assign$3({type:$P==null?void 0:$P.type},$P)),isArray$t($P)||(!$P.type&&(!((ame=tme.$schema)===null||ame===void 0)&&ame.match(/PageSchema/i))?$P.type="page":$P.type||delete $P.type,delete $P.$schema),stringify_1($P)},eme.prototype.str2obj=function($P){try{if($P==="")return{};var tme=parse_1($P);return codeErrorWarning&&codeErrorWarning.cancel(),tme}catch(ame){return codeErrorWarning(ame),null}},eme.prototype.changeJsonOptions=function($P){var tme;return $P===void 0&&($P=this.props),__awaiter(this,void 0,void 0,function(){var ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return ame=this.monaco,(nme=$P.$schemaUrl||"".concat(window.location.protocol,"//").concat(window.location.host,"/schema.json")).indexOf("/")===0&&(nme="".concat(window.location.protocol,"//").concat(window.location.host).concat(nme)),[4,buildSchema(nme,$P.$schema,ame.Uri.parse(this.uri).toString(),(tme=ame.languages.json)===null||tme===void 0?void 0:tme.jsonDefaults.diagnosticsOptions.schemas)];case 1:return rme=ime.sent(),ame.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:rme,validate:!0,enableSchemaRequest:!0,allowComments:!0}),[2]}})})},eme.prototype.render=function(){var $P=this.props,tme=$P.disabled,ame=$P.className,nme=$P.theme;return React__default.createElement(MonacoEditor,{className:cx$1("amis-code-editor",ame),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:"json",theme:nme,editorFactory:this.editorFactory,editorDidMount:this.editorDidMount,editorWillUnmount:this.editorWillUnmount,options:{automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,tabSize:2,wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},readOnly:tme}})},eme}(React__default.Component),CodeEditorPanel=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.handleCodePaste=function($P){var tme=this;setTimeout(function(){var ame,nme,rme,ime;tme.props.manager.patchSchema(!0),($P==null?void 0:$P.languageId)==="json"&&((ame=$P.range)===null||ame===void 0?void 0:ame.startColumn)===1&&((nme=$P.range)===null||nme===void 0?void 0:nme.startLineNumber)===1&&((rme=$P.range)===null||rme===void 0?void 0:rme.endColumn)===2&&((ime=$P.range)===null||ime===void 0?void 0:ime.endLineNumber)>1&&tme.props.manager.reGenerateNodeDuplicateID(["布局容器","展示"])},500)},eme.prototype.render=function(){var $P=this.props,tme=$P.onChange,ame=$P.manager,nme=$P.store;return React__default.createElement("div",{className:"ae-CodePanel"},React__default.createElement("div",{className:"panel-header"},i18n("5b804b05e14aaacc75033a4f77fc2844")),React__default.createElement("div",{className:"ae-CodePanel-content"},React__default.createElement(AMisCodeEditor,{value:nme.valueWithoutHiddenProps,onChange:tme,$schema:nme.jsonSchemaUri,$schemaUrl:ame.config.$schemaUrl,onPaste:this.handleCodePaste})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleCodePaste",null),eme}(React__default.Component),CodePlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=-9999,$P}return __extends$2(eme,x_),eme.prototype.buildJSONSchema=function($P){return $P.info.$schema},eme.prototype.buildEditorPanel=function($P,tme){$P.info;var ame=$P.selections;this.manager.store.jsonSchemaUri&&!ame.length&&tme.push({key:"code",icon:"png-icon code-png",title:React__default.createElement("span",{className:"editor-tab-icon","editor-tooltip":i18n("06e004ef21414c06d3e4ff2cefaf6a04")},React__default.createElement(Icon$1,{icon:"editor-code"})),position:"left",component:WidthDraggableContainer(CodeEditorPanel),order:5e3})},eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(CodePlugin);var JsonView=React__default.lazy(function(){return __vitePreload(()=>import("./main-B9CcSXi0.js").then(x_=>x_.m),[]).then(importLazyComponent)}),DataDebugPlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.dataViewer={type:"json",name:"ctx",asFormItem:!0,className:"m-b-none",component:function(tme){for(var ame=tme.value,nme=__read$3(React__default.useState(0),2),rme=nme[0],ime=nme[1],ome=ame||{},lme=[ome];Object.getPrototypeOf(ome)!==Object.prototype;){var sme=Object.getPrototypeOf(ome);if(Object.prototype.toString.call(sme)!=="[object Object]")break;lme.push(sme),ome=sme}return React__default.createElement("div",{className:"aeDataChain"},React__default.createElement("div",{className:"aeDataChain-aside"},React__default.createElement("ul",null,lme.map(function(cme,dme){return React__default.createElement("li",{className:dme===rme?"is-active":"",key:dme,onClick:function(){return ime(dme)}},dme===0?i18n("48ac479789304b37afa2f1b06642f4da"):dme===1?i18n("9bc16c658ab8a8c4eddc5e24d85bef20"):i18n("af767b7e4ae069d54f9ea839858d4c6d").concat(dme,"层"))}))),React__default.createElement("div",{className:"aeDataChain-main"},React__default.createElement(React__default.Suspense,{fallback:React__default.createElement("div",null,"...")},React__default.createElement(JsonView,{name:!1,src:lme[rme],enableClipboard:!1,iconStyle:"square",collapsed:2}))))}},$P}return __extends$2(eme,x_),eme.prototype.buildEditorToolbar=function($P,tme){var ame=this;$P.id,$P.schema;var nme=$P.node.getComponent();nme&&nme.props&&nme.props.data&&nme.props.store&&this.manager.store.toolbarMode==="default"&&tme.push({icon:"fa fa-bug",order:-1e3,placement:"bottom",tooltip:i18n("aa920263020f14211a44ea172efc7253"),onClick:function(){return ame.openDebugForm(nme.props.data)}})},eme.prototype.openDebugForm=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){switch(tme.label){case 0:return[4,this.manager.scaffold({title:i18n("aa920263020f14211a44ea172efc7253"),body:[__assign$3({},this.dataViewer)]},{ctx:$P})];case 1:return tme.sent(),[2]}})})},eme.scene=["layout"],eme.id="data-debug",eme}(BasePlugin);registerEditorPlugin(DataDebugPlugin);var ErrorRendererPlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=-9999,$P.rendererName="error",$P.name="Error",$P.isBaseComponent=!0,$P}return __extends$2(eme,x_),eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ErrorRendererPlugin);var DialogList=observer(function(x_){var eme=this,$P=x_.classnames,tme=x_.store,ame=x_.manager,nme=tme.modals.filter(function(sme){return!sme.disabled}),rme=React__default.useCallback(function(){var sme={type:"dialog",title:"未命名弹窗",definitions:modalsToDefinitions(tme.modals),body:[{type:"tpl",tpl:"弹窗内容"}]};ame.openSubEditor({title:"编辑弹窗",value:sme,onChange:function(cme,dme){var ume=cme.definitions,fme=__rest$14(cme,["definitions"]);tme.addModal(fme,ume)}})},[]),ime=React__default.useCallback(function(sme){var cme=parseInt(sme.currentTarget.getAttribute("data-index"),10),dme=tme.modals[cme],ume=dme.$$id;ame.openSubEditor({title:"编辑弹窗",value:__assign$3(__assign$3({type:"dialog"},dme),{definitions:modalsToDefinitions(tme.modals,{},dme)}),onChange:function(fme,pme){var hme=fme.definitions,bme=__rest$14(fme,["definitions"]);tme.updateModal(ume,bme,hme)}})},[]),ome=React__default.useCallback(function(sme){return __awaiter(eme,void 0,void 0,function(){var cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:return sme.stopPropagation(),sme.preventDefault(),cme=parseInt(sme.currentTarget.closest("[data-index]").getAttribute("data-index"),10),dme=tme.modals[cme],ume=tme.countModalActionRefs(dme.$$id),[4,confirm(ume?"当前弹窗已关联 ".concat(ume," 个事件，删除后，所配置的事件动作将一起被删除。"):"","确认删除弹窗「".concat(((fme=dme.editorSetting)===null||fme===void 0?void 0:fme.displayName)||dme.title,"」？"))];case 1:return pme.sent()&&tme.removeModal(dme.$$id),[2]}})})},[]),lme=React__default.useCallback(function(sme){var cme,dme;sme.stopPropagation(),sme.preventDefault();var ume=parseInt(sme.currentTarget.closest("[data-index]").getAttribute("data-index"),10),fme=cloneDeep$1(tme.modals[ume]);fme=reGenerateID(fme),tme.addModal(__assign$3(__assign$3({},fme),{title:"".concat(fme.title," - 复制"),editorSetting:__assign$3(__assign$3({},fme.editorSetting),{displayName:!((cme=fme.editorSetting)===null||cme===void 0)&&cme.displayName?"".concat((dme=fme.editorSetting)===null||dme===void 0?void 0:dme.displayName," - 复制"):""})}))},[]);return React__default.createElement("div",{className:$P("ae-DialogList-wrap","hoverShowScrollBar")},React__default.createElement(Button$1,{size:"sm",level:"enhance",block:!0,onClick:rme},"新增弹窗"),nme.length?React__default.createElement("ul",{className:"ae-DialogList"},nme.map(function(sme,cme){var dme;return React__default.createElement("li",{className:"ae-DialogList-item","data-index":cme,key:sme.$$id||cme,onClick:ime},React__default.createElement("span",null,"".concat(((dme=sme.editorSetting)===null||dme===void 0?void 0:dme.displayName)||sme.title||"未命名弹窗")),React__default.createElement("a",{onClick:lme,className:"ae-DialogList-iconBtn"},React__default.createElement(Icon$1,{className:"icon",icon:"copy"})),React__default.createElement("a",{onClick:ome,className:"ae-DialogList-iconBtn"},React__default.createElement(Icon$1,{className:"icon",icon:"trash"})))})):React__default.createElement("div",{className:"ae-DialogList-placeholder"},"暂无弹窗"))}),OutlinePanel=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.state={curSearchElemKey:""},$P.dragEnterCount=0,$P}return __extends$2(eme,x_),eme.prototype.handleClick=function($P){var tme=this.props.store,ame=$P.currentTarget,nme=ame.getAttribute("data-node-id"),rme=ame.getAttribute("data-node-region");this.props.manager,rme?tme.activeId===nme&&tme.activeRegion===rme?tme.setActiveId(nme):tme.setActiveId(nme,rme):tme.setActiveId(nme)},eme.prototype.handleDialogNodeClick=function($P,tme){},eme.prototype.handleEnter=function($P){var tme=$P.currentTarget,ame=tme.getAttribute("data-node-id"),nme=tme.getAttribute("data-node-region");this.props.store.setHoverId(ame,nme)},eme.prototype.handleTabChange=function($P){var tme=this.props.store;$P&&isAlive(tme)&&tme.changeOutlineTabsKey($P)},eme.prototype.handleDragStart=function($P){var tme=$P.currentTarget.getAttribute("data-node-id");tme&&this.props.manager.startDrag(tme,$P)},eme.prototype.handleDragEnter=function($P){var tme=this,ame=$P.target.closest("[data-node-id][data-node-region]");ame&&($P.preventDefault(),clearTimeout(this.timer),this.timer=setTimeout(function(){var nme=tme.props.manager,rme=ame.getAttribute("data-node-id"),ime=ame.getAttribute("data-node-region");rme&&ime&&nme.dnd.switchToRegion($P.nativeEvent,rme,ime)},100))},eme.prototype.handleDragOver=function($P){$P.preventDefault()},eme.prototype.handleDrop=function($P){this.props.manager.dnd.drop($P.nativeEvent)},eme.prototype.handleSearchElemKeyChange=function($P){this.setState({curSearchElemKey:$P})},eme.prototype.clearSearchElemKey=function(){this.setState({curSearchElemKey:""})},eme.prototype.renderTitleByKeyword=function($P,tme){if(tme&&~$P.indexOf(tme)){var ame=$P.indexOf(tme),nme=ame+tme.length;return React__default.createElement("span",null,$P.substring(0,ame),React__default.createElement("span",{className:"has-keywords"},tme),$P.substring(nme))}return $P},eme.prototype.renderItem=function($P,tme,ame,nme){var rme,ime,ome=this;nme===void 0&&(nme=0);var lme=this.props.store,sme=this.state.curSearchElemKey,cme=$P.singleRegion?$P.uniqueChildren[0].uniqueChildren:$P.uniqueChildren,dme=cme.length;return React__default.createElement("li",{style:{"--indent":nme},className:cx$1("ae-Outline-node",{"is-folded":$P.folded,"is-active":lme.activeId===$P.id&&!$P.region||$P.isRegion&&lme.dropId===$P.id&&lme.dropRegion===$P.region||$P.isRegion&&lme.activeId===$P.id&&lme.activeRegion===$P.region,"is-region":$P.isRegion,"is-hover":!$P.isRegion&&lme.isContextOn($P.id),"has-children":dme}),key:tme},React__default.createElement("a",{onClick:this.handleClick,onMouseEnter:this.handleEnter,"data-node-id":$P.id,"data-node-region":$P.region,"data-node-common-config":(rme=$P.schema)===null||rme===void 0?void 0:rme.$$commonSchema,"data-node-form-config":(ime=$P.schema)===null||ime===void 0?void 0:ime.$$formSchema,draggable:$P.draggable,onDragStart:this.handleDragStart},dme?React__default.createElement("span",{onClick:$P.toggleFold,className:cx$1("ae-Outline-expander ae-Outline-node-icon",{"is-folded":$P.folded}),"data-node-id":$P.id,"data-node-region":$P.region},React__default.createElement(Icon$1,{icon:"down-arrow"})):React__default.createElement("span",{className:cx$1("ae-Outline-textIndent")}),React__default.createElement("span",{className:"ae-Outline-node-text"},$P.isCommonConfig?"".concat($P.label,"-[公共配置]"):$P.isFormConfig?"".concat($P.label,"-[表单配置]"):this.renderTitleByKeyword(this.getDialogNodeLabel($P,ame),sme))),dme?React__default.createElement("ul",{className:"ae-Outline-sublist"},cme.map(function(ume,fme){return ome.renderItem(ume,fme,ame,nme+1)})):null)},eme.prototype.renderDropItem=function($P,tme){var ame=this,nme=$P.uniqueChildren,rme=this.props.store,ime=nme.map(function(ome,lme){return ame.renderDropItem(ome,lme)}).filter(function(ome){return ome});return ime.length||$P.isRegion?$P.isRegion?React__default.createElement("div",{className:cx$1("ae-Outline-dropNode",{"is-active":rme.dropId===$P.id&&rme.dropRegion===$P.region}),"data-node-id":$P.id,"data-node-region":$P.region,key:"".concat($P.id,"-").concat(tme)},React__default.createElement("a",null,$P.host.singleRegion?$P.host.label:"(".concat($P.host.label,")").concat($P.label)),ime):ime:null},eme.prototype.getDialogNodeLabel=function($P,tme){return tme?this.getDialogLabel($P,!0,"dialogTitle"):$P.label},eme.prototype.getDialogLabel=function($P,tme,ame){ame===void 0&&(ame="title");var nme="";if(tme&&(nme=$P.label),($P.type==="dialog"||$P.type==="drawer")&&(!tme||tme&&!$P.region)){var rme=translateSchema($P[ame]);nme=$P.type==="drawer"?"".concat(rme||i18n("7336083e6c61fe75fb5ec3f5ef101ac7"),"（抽屉式弹窗）"):$P.dialogType==="confirm"?"".concat(rme||i18n("fa6b01f51cc2b8e16bfbb914b6c08ace"),"（确认对话框）"):"".concat(rme||i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),"（弹窗）")}return nme},eme.prototype.renderDialogItem=function($P,tme){var ame=this,nme=this.getDialogLabel($P,!1);return React__default.createElement("li",{className:cx$1("ae-Outline-node"),key:tme},React__default.createElement("a",{onClick:function(rme){return ame.handleDialogNodeClick(rme,$P)}},React__default.createElement("span",{className:"ae-Outline-node-text"},this.renderTitleByKeyword(nme,this.state.curSearchElemKey))))},eme.prototype.render=function(){var $P=this,tme=this.state.curSearchElemKey,ame=this.props,nme=ame.store,rme=ame.manager,ime=nme.outlineTabsKey||"component-outline",ome=nme.outline;return React__default.createElement("div",{className:"ae-Outline-panel"},React__default.createElement("div",{className:"panel-header"},i18n("c65e6ddd7b48846aa1e5224d4e5743c1")),React__default.createElement(ThemedTabs,{className:"ae-outline-tabs",linksClassName:"ae-outline-tabs-header",contentClassName:"ae-outline-tabs-content",tabsMode:"line",onSelect:this.handleTabChange,activeKey:ime},React__default.createElement(Tab$1,{className:"ae-outline-tabs-panel",key:"component-outline",eventKey:"component-outline",title:i18n("67bcc69dd0a75d50c5cbb7f107ee9f63")},React__default.createElement(InputBox$1,{className:"editor-InputSearch",value:tme,onChange:this.handleSearchElemKeyChange,placeholder:i18n("962d43ff8d39c381d8e2c73838412111"),clearable:!1},tme?React__default.createElement("a",{onClick:this.clearSearchElemKey},React__default.createElement(Icon$1,{icon:"close",className:"icon"})):React__default.createElement(Icon$1,{icon:"editor-search",className:"icon"})),React__default.createElement("hr",{className:"margin-top"}),React__default.createElement("div",{className:cx$1("ae-Outline","hoverShowScrollBar",{"ae-Outline--draging":nme.dragging}),onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop},nme.dragging?React__default.createElement("div",{className:"ae-Outline-tip"},"拖拽过程中按下功能键可切换容器，或拖入以下区域切换"):null,ome.length?nme.dragging?React__default.createElement("div",{className:"ae-Outline-drop"},ome.map(function(lme,sme){return $P.renderDropItem(lme,sme)})):React__default.createElement("ul",{className:"ae-Outline-list"},ome.map(function(lme,sme){return $P.renderItem(lme,sme)})):React__default.createElement("div",null,i18n("c482df2a3ac8e014febd8a5fc9cadaea")))),nme.isSubEditor||nme.noDialog?null:React__default.createElement(Tab$1,{className:"ae-outline-tabs-panel",key:"dialog-outline",eventKey:"dialog-outline",title:"弹窗列表"},React__default.createElement(DialogList,{manager:rme,store:nme,classnames:cx$1}))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDialogNodeClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEnter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleTabChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragStart",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragEnter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragOver",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDrop",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSearchElemKeyChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearSearchElemKey",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],eme.prototype,"renderTitleByKeyword",null),eme=__decorate$1([observer],eme)}(React__default.Component),OutlinePlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=-9999,$P}return __extends$2(eme,x_),eme.prototype.buildEditorPanel=function($P,tme){var ame=this.manager.store;if(ame&&$P.selections.length){var nme=ame.changeLeftPanelOpenStatus,rme=ame.changeLeftPanelKey;nme(!0),rme("outline")}tme.push({key:"outline",icon:"png-icon outline-png",title:React__default.createElement("span",{className:"editor-tab-icon","editor-tooltip":i18n("93383ef1ab4a433df97a56a73e571b9f")},React__default.createElement(Icon$1,{icon:"editor-outline"})),component:WidthDraggableContainer(OutlinePanel),position:"left",order:4e3})},eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(OutlinePlugin);var UnknownRendererPlugin=function(x_){function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.order=9999,$P}return __extends$2(eme,x_),eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema,nme=$P.path;if(ame.$$id&&tme)return/(^|\/)static\-field/.test(nme)||tme.name==="card-item"||tme.name==="list-item-field"||tme.name==="card-item-field"?void 0:{name:"Unknown",$schema:"/schemas/UnkownSchema.json"}},eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(UnknownRendererPlugin);var tpls={};function getSchemaTpl(x_,eme,$P){var tme=tpls[x_]||{};return typeof tme=="function"?tme(eme,$P):eme?__assign$3(__assign$3({},tme),eme):tme}function setSchemaTpl(x_,eme){tpls[x_]=eme}function valuePipeOut(x_){try{return x_==="undefined"?void 0:JSON.parse(x_)}catch{return x_}}function undefinedPipeOut(x_){return Array.isArray(x_)?x_.length?x_:void 0:typeof x_=="string"?x_||void 0:typeof x_=="object"?Object.keys(x_).length?x_:void 0:x_}function defaultValue(x_,eme){return eme===void 0&&(eme=!0),eme?function($P){return $P===void 0?x_:$P}:function($P){return $P||x_}}function tipedLabel(x_,eme,$P){return{type:"tooltip-wrapper",tooltip:eme,tooltipTheme:"dark",placement:"top",tooltipStyle:__assign$3({fontSize:"12px"},$P||{}),className:"ae-formItemControl-label-tip",body:x_}}function mockValue(x_){var eme,$P="data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg t='1631083237695' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2420' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024'%3E%3Cdefs%3E%3Cstyle type='text/css'%3E%3C/style%3E%3C/defs%3E%3Cpath d='M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z' p-id='2421' fill='%23bfbfbf'%3E%3C/path%3E%3Cpath d='M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z' p-id='2422' fill='%23bfbfbf'%3E%3C/path%3E%3C/svg%3E";return x_.type==="date"||x_.type==="datetime"||x_.type==="time"||x_.type==="month"||x_.type==="static-date"||x_.type==="static-datetime"||x_.type==="static-time"||x_.type==="static-month"||x_.type==="input-date"||x_.type==="input-datetime"||x_.type==="input-time"||x_.type==="input-month"?hooks().format("X"):x_.type==="image"||x_.type==="static-image"?$P:x_.type==="images"||x_.type==="static-images"?[$P]:x_.type==="number"||x_.type==="input-number"?(1e3*Math.random()).toFixed((eme=x_.precision)!==null&&eme!==void 0?eme:0):i18n("6cb01692eea2fa7066d20fe2b6ccaea3")}(function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme})(BasePlugin);(function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.manager.on("build-panels",tme.buildPanels),tme}return __extends$2(eme,x_),eme.prototype.componentWillUnmount=function(){this.manager.off("build-panels",this.buildPanels)},eme.prototype.buildPanels=function($P){var tme=$P.context.data;Array.isArray(tme)&&tme.splice(0,tme.length)},eme.prototype.render=function(){var $P=this.props,tme=$P.preview,ame=$P.className,nme=$P.theme,rme=$P.data,ime=$P.isMobile,ome=$P.autoFocus,lme=$P.previewProps;return React__default.createElement("div",{className:cx$1("ae-Editor",{preview:tme},ame)},React__default.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},React__default.createElement("div",{className:"ae-Main"},React__default.createElement(Preview,__assign$3({},lme,{isMobile:ime,editable:!tme,store:this.store,manager:this.manager,theme:nme,data:rme,autoFocus:ome,appLocale:this.props.appLocale})))),React__default.createElement(SubEditor,{store:this.store,manager:this.manager,theme:nme}),React__default.createElement(ScaffoldModal,{store:this.store,manager:this.manager,theme:nme}))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"buildPanels",null),eme})(Editor$1);var VRenderer=function(x_){function eme(){return x_!==null&&x_.apply(this,arguments)||this}return __extends$2(eme,x_),eme.prototype.UNSAFE_componentWillMount=function(){var $P=this,tme=this.props;tme.data,tme.path;var ame=tme.widthMutable,nme=__rest$14(tme,["data","path","widthMutable"]),rme=this.context;this.editorNode=rme.addChild({id:nme.id,type:nme.type,label:nme.name,path:this.props.path,schemaPath:nme.schemaPath,info:nme,getData:function(){return $P.props.data},widthMutable:ame,memberIndex:nme.memberIndex})},eme.prototype.componentDidMount=function(){this.markDom(this.editorNode.id)},eme.prototype.componentDidUpdate=function(){this.markDom(this.editorNode.id)},eme.prototype.componentWillUnmount=function(){this.editorNode&&isAlive(this.editorNode)&&this.context.removeChild(this.editorNode)},eme.prototype.markDom=function($P){var tme=reactDomExports.findDOMNode(this);if(tme){var ame=this.editorNode.info,nme=ame.wrapperResolve?ame.wrapperResolve(tme):tme;(Array.isArray(nme)?nme:nme?[nme]:[]).forEach(function(rme){return rme.setAttribute("data-editor-id",$P)})}},eme.prototype.render=function(){return React__default.createElement(EditorNodeContext.Provider,{value:this.editorNode},this.props.children)},eme.contextType=EditorNodeContext,eme}(React__default.Component),ShortcutKeyList=[{title:i18n("79d3abe929f67f0644a78bf32adb3a89"),letters:["⌘","c"],tooltip:i18n("b7d817611230d382f6ef92b41848a342")},{title:i18n("eafbece1016a6af76cce466e55ad9f00"),letters:["⌘","v"],tooltip:i18n("e0b9bb8e41eccd3ce6b282664643d7f8")},{title:i18n("43fc77886b7fbcd658f0ccdba36bd5a0"),letters:["⌘","x"],tooltip:i18n("a6be4ad12e9612811963c44466af3218")},{title:i18n("bd9fcf46b4e5993f97fe04ee9ebcd7ed"),letters:["⌘","z"],tooltip:i18n("58887132871b71b015c3a391e7755815")},{title:i18n("c3c873d33f1c6482c79b0ffd862786cd"),letters:["⌘","Shift","z"],tooltip:i18n("58887132871b71b015c3a391e7755815")},{title:i18n("be5fbbe34ce9979bfb6576d9eddc5612"),letters:["⌘","s"],tooltip:i18n("1f81fd4598e9151538f29c41b8aa0020")},{title:i18n("34d240d1ded259c32f7fee21e99c5671"),letters:["⌘","p"],tooltip:i18n("6722089d251c1e4aabe9d58c26a2208a")},{title:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),letters:["Delete"],tooltip:i18n("426cd14ebd62a4922186527d07ba37f3")},{title:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),letters:["Backspace"],tooltip:i18n("426cd14ebd62a4922186527d07ba37f3")},{title:i18n("499e58e764420aeed2d1476a56d8fa34"),letters:["⌘","↑"],tooltip:i18n("d040485f0e3887f0b297f8f772db03e4")},{title:i18n("08ad565f066d30572d1f8e2ee17cbe12"),letters:["⌘","↓"],tooltip:i18n("6348dc0e83d6ab391a8816f67d0e5ceb")}];(function(x_){function eme($P){var tme=x_.call(this,$P)||this;return tme.state={visible:!1},tme}return __extends$2(eme,x_),eme.prototype.closeShortcutKeyModal=function(){this.setState({visible:!1})},eme.prototype.showShortcutKeyModal=function(){this.setState({visible:!0})},eme.prototype.render=function(){var $P=this.props,tme=$P.title,ame=$P.size,nme=$P.closeOnEsc,rme=$P.closeOnOutside,ime=this.props.ShortcutKeyList||ShortcutKeyList;return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:"shortcut-icon-btn","editor-tooltip":i18n("fbec96e028142496df88ed2c63b44512"),"tooltip-position":"bottom"},React__default.createElement(Icon$1,{icon:"editor-shortcut",onClick:this.showShortcutKeyModal})),React__default.createElement(FinalModal,{size:ame||"xs",show:this.state.visible,closeOnEsc:nme==null||nme,closeOnOutside:rme==null||rme,onHide:this.closeShortcutKeyModal,contentClassName:"shortcut-list-modal"},React__default.createElement("div",{className:"shortcut-modal-header"},React__default.createElement("div",{className:"shortcut-modal-title"},tme||i18n("9c3f1278ffa822835bb3a677f02bca27")),React__default.createElement(Icon$1,{icon:"close",className:"shortcut-modal-icon",onClick:this.closeShortcutKeyModal})),React__default.createElement("div",{className:"shortcut-modal-body"},ime&&ime.length>0&&React__default.createElement("div",{className:"shortcut-list"},ime.map(function(ome,lme){return React__default.createElement("div",{className:"shortcut-item",key:lme},ome.tooltip&&React__default.createElement("div",{className:"shortcut-title","editor-tooltip":ome.tooltip},ome.title),!ome.tooltip&&React__default.createElement("div",{className:"shortcut-title"},ome.title),React__default.createElement("div",{className:"shortcut-letters"},ome.letters.map(function(sme){return React__default.createElement("div",{className:"shortcut-letter",key:sme},sme)})))})),!ime||ime.length===0&&React__default.createElement("span",null,i18n("4e98a5dcd3defffb23629fce3add04f6")))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeShortcutKeyModal",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"showShortcutKeyModal",null),eme})(React__default.Component);window.amisEditorVersionInfo={version:"6.10.0",buildTime:"2024-12-02T05:46:54.105Z"};var DSBehavior;(function(x_){x_.create="create",x_.view="view",x_.update="update",x_.table="table",x_.filter="filter"})(DSBehavior||(DSBehavior={}));var DSGrain;(function(x_){x_.entity="entity",x_.list="list",x_.piece="piece"})(DSGrain||(DSGrain={}));var DSFeature={List:{value:"list",label:i18n("3712972d84adf48acbd6ad24b4d75ad0")},Insert:{value:"insert",label:i18n("66ab5e9f24c8f46012a25c89919fb191")},View:{value:"view",label:i18n("f26225bde6a250894a04db4c53ea03d0")},Edit:{value:"edit",label:i18n("95b351c86267f3aedf89520959bce689")},Delete:{value:"delete",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b")},BulkEdit:{value:"bulkEdit",label:i18n("e73cefac9d030927da1618c7b15c98c9")},BulkDelete:{value:"bulkDelete",label:i18n("7fb62b30119c3797a843a48368463314")},Import:{value:"import",label:i18n("8d9a071ee2ef45e045968e117a205c07")},Export:{value:"export",label:i18n("55405ea6ff6fd823ffab7e6b10ddfa95")},SimpleQuery:{value:"simpleQuery",label:i18n("c26996a6506adf397f0668d376d0b40b")},FuzzyQuery:{value:"fuzzyQuery",label:i18n("6ff4bf3d567e977aa4c90c27dff1e6db")},AdvancedQuery:{value:"advancedQuery",label:i18n("9c4666fd08c2738eb9611a3721cb5f0f")}},DSFeatureEnum;(function(x_){x_.List="List",x_.Insert="Insert",x_.View="View",x_.Edit="Edit",x_.Delete="Delete",x_.BulkEdit="BulkEdit",x_.BulkDelete="BulkDelete",x_.Import="Import",x_.Export="Export",x_.SimpleQuery="SimpleQuery",x_.FuzzyQuery="FuzzyQuery",x_.AdvancedQuery="AdvancedQuery"})(DSFeatureEnum||(DSFeatureEnum={}));var FormOperatorMap={cancel:{label:i18n("625fb26b4b3340f7872b411f401e754c"),value:"cancel",order:0,schema:{level:"default"}},reset:{label:i18n("4b9c3271dc2f299dc3aeffb369187513"),value:"reset",order:1,schema:{level:"default"}},submit:{label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),value:"submit",order:2,schema:{level:"primary"}}},ModelDSBuilderKey="model-entity",ApiDSBuilderKey="api",getFeatValueByKey=function(x_){var eme;return"".concat((eme=DSFeature==null?void 0:DSFeature[x_])===null||eme===void 0?void 0:eme.value)},getFeatLabelByKey=function(x_){var eme;return"".concat((eme=DSFeature==null?void 0:DSFeature[x_])===null||eme===void 0?void 0:eme.label)},_traverseSchemaDeep=function(x_,eme,$P){var tme,ame;$P===void 0&&($P=new WeakMap);var nme={};if($P.has(x_))return $P.get(x_);$P.set(x_,nme);var rme=function(hme){return hme.map(function(bme){return isObjectLike$g(bme)?_traverseSchemaDeep(bme,eme,$P):bme})};if(Array.isArray(x_))return rme(x_);try{for(var ime=__values$1(Object.entries(x_)),ome=ime.next();!ome.done;ome=ime.next()){var lme=__read$3(ome.value,2),sme=lme[0],cme=lme[1],dme=eme(sme,cme,x_),ume=__read$3(dme,2),fme=ume[0],pme=ume[1];fme!=="__proto__"&&(isObjectLike$g(pme)&&(pme=Array.isArray(pme)?rme(pme):_traverseSchemaDeep(pme,eme,$P)),nme[fme]=pme)}}catch(hme){tme={error:hme}}finally{try{ome&&!ome.done&&(ame=ime.return)&&ame.call(ime)}finally{if(tme)throw tme.error}}return nme},traverseSchemaDeep=function(x_,eme){return!isObjectLike$g(x_)||Array.isArray(x_)?x_:_traverseSchemaDeep(x_,eme)},displayType2inputType=function(x_){if(!x_||typeof x_!="string")return x_;var eme={tpl:"input-text",image:"input-image",date:"input-date",progress:"input-number",status:"tag",mapping:"tag",list:"input-table"};return eme.hasOwnProperty(x_)?eme[x_]:x_},DSBuilder=function(){function x_(eme){this.manager=eme}return Object.defineProperty(x_.prototype,"key",{get:function(){return this.constructor.key},enumerable:!1,configurable:!0}),x_.prototype.getFeatValueByKey=function(eme){return getFeatValueByKey(eme)},x_.prototype.getFeatLabelByKey=function(eme){return getFeatLabelByKey(eme)},x_.prototype.filterByFeat=function(eme){return eme&&this.features.includes(eme)},x_}(),builderFactory=new Map,registerDSBuilder=function(x_){builderFactory.has(x_.key)&&console.warn("[amis-editor][DSBuilder] duplicate DSBuilder「".concat(x_.key,"」")),builderFactory.set(x_.key,x_)},DSBuilderManager=function(){function x_(eme){var $P=this;this.builders=new Map,builderFactory.forEach(function(tme,ame){$P.builders.set(ame,new tme(eme))})}return Object.defineProperty(x_.prototype,"size",{get:function(){return this.builders.size},enumerable:!1,configurable:!0}),x_.prototype.getBuilderByKey=function(eme){return this.builders.get(eme)},x_.prototype.getBuilderByScaffoldSetting=function(eme){return this.builders.get(eme.dsType)},x_.prototype.getBuilderBySchema=function(eme,$P){var tme,ame,nme;try{for(var rme=__values$1(Array.from(this.builders.entries())),ime=rme.next();!ime.done;ime=rme.next()){var ome=__read$3(ime.value,2),lme=ome[0],sme=ome[1];if(sme.match(eme,$P)){nme=sme;break}}}catch(cme){tme={error:cme}}finally{try{ime&&!ime.done&&(ame=rme.return)&&ame.call(rme)}finally{if(tme)throw tme.error}}return nme||this.getDefaultBuilder()},x_.prototype.getDefaultBuilderKey=function(){var eme,$P,tme,ame=Array.from(this.builders.entries()).filter(function(ime){var ome,lme=__read$3(ime,2);lme[0];var sme=lme[1];return((ome=sme==null?void 0:sme.disabledOn)===null||ome===void 0?void 0:ome.call(sme))!==!0}),nme=__read$3((tme=(eme=ame.find(function(ime){var ome=__read$3(ime,2);ome[0];var lme=ome[1];return lme.isDefault===!0}))!==null&&eme!==void 0?eme:($P=ame.sort(function(ime,ome){var lme,sme;return((lme=ime[1].order)!==null&&lme!==void 0?lme:0)-((sme=ome[1].order)!==null&&sme!==void 0?sme:0)}))===null||$P===void 0?void 0:$P[0])!==null&&tme!==void 0?tme:[],2),rme=nme[0];return nme[1],rme},x_.prototype.getDefaultBuilder=function(){var eme,$P,tme,ame=Array.from(this.builders.entries()).filter(function(ime){var ome,lme=__read$3(ime,2);lme[0];var sme=lme[1];return((ome=sme==null?void 0:sme.disabledOn)===null||ome===void 0?void 0:ome.call(sme))!==!0}),nme=__read$3((tme=(eme=ame.find(function(ime){var ome=__read$3(ime,2);ome[0];var lme=ome[1];return lme.isDefault===!0}))!==null&&eme!==void 0?eme:($P=ame.sort(function(ime,ome){var lme,sme;return((lme=ime[1].order)!==null&&lme!==void 0?lme:0)-((sme=ome[1].order)!==null&&sme!==void 0?sme:0)}))===null||$P===void 0?void 0:$P[0])!==null&&tme!==void 0?tme:[],2);nme[0];var rme=nme[1];return rme},x_.prototype.getAvailableBuilders=function(){return Array.from(this.builders.entries()).filter(function(eme){var $P,tme=__read$3(eme,2);tme[0];var ame=tme[1];return(($P=ame==null?void 0:ame.disabledOn)===null||$P===void 0?void 0:$P.call(ame))!==!0}).sort(function(eme,$P){var tme,ame;return((tme=eme[1].order)!==null&&tme!==void 0?tme:0)-((ame=$P[1].order)!==null&&ame!==void 0?ame:0)})},x_.prototype.getDSSelectorSchema=function(eme,$P){var tme,ame,nme=$P||{},rme=nme.schema,ime=nme.sourceKey,ome=nme.getDefautlValue,lme=this.getAvailableBuilders(),sme=rme==null?void 0:rme.dsType,cme=[];try{for(var dme=__values$1(lme),ume=dme.next();!ume.done;ume=dme.next()){var fme=__read$3(ume.value,2),pme=fme[0],hme=fme[1];rme&&!sme&&(ome&&typeof ome=="function"&&ome(pme,hme)||hme.match(rme,ime))&&(sme=pme),cme.push({label:hme.name,value:pme})}}catch(bme){tme={error:bme}}finally{try{ume&&!ume.done&&(ame=dme.return)&&ame.call(dme)}finally{if(tme)throw tme.error}}return __assign$3(__assign$3({type:"radios",label:i18n("a094e5b7699ea4b61094cc4120170423"),name:"dsType",visible:cme.length>0,options:cme},sme?{value:sme}:{}),eme)},x_.prototype.buildCollectionFromBuilders=function(eme){var $P=this.getAvailableBuilders(),tme=$P.map(function(ame,nme){var rme=__read$3(ame,2),ime=rme[0],ome=rme[1];return eme(ome,ime,nme)}).filter(Boolean);return tme},x_}(),ApiDSBuilder=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.isDefault=!0,$P.name=i18n("45f3a444853a11667f97e941b53266b0"),$P.order=1,$P.features=["List","Insert","View","Edit","Delete","BulkEdit","BulkDelete","SimpleQuery"],$P}return Object.defineProperty(eme.prototype,"key",{get:function(){return this.constructor.key},enumerable:!1,configurable:!0}),eme.prototype.match=function($P,tme){var ame=tme&&typeof tme=="string"?tme:"api",nme=$P==null?void 0:$P[ame];if(($P==null?void 0:$P.dsType)!=null||(nme==null?void 0:nme.sourceType)!=null)return($P==null?void 0:$P.dsType)===this.key||(nme==null?void 0:nme.sourceType)===this.key;if(isObject$8(nme)&&(nme.jsonql!=null||nme.strategy!=null))return!1;var rme=typeof nme=="string"?nme:isObject$8(nme)&&(nme==null?void 0:nme.url)||"";return!!(typeof rme=="string"&&(/^(get|post|put|delete|patch|option|jsonp):/.test(nme)||!~rme.indexOf("api://")))},eme.prototype.getContextFields=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){return[2,[]]})})},eme.prototype.getAvailableContextFields=function($P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){return[2]})})},eme.prototype.getCRUDListFields=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme;return __generator(this,function(sme){return ame=$P||{},nme=ame.schema,rme=ame.controlSettings,ime=(rme||{}).fieldMapper,ome=(tme=nme==null?void 0:nme.columns)!==null&&tme!==void 0?tme:[],lme=[],ome.forEach(function(cme){var dme=isFunction$b(ime)?ime(cme):!1;dme!==!1&&lme.push(dme)}),[2,lme]})})},eme.prototype.getCRUDSimpleQueryFields=function($P){var tme,ame;return __awaiter(this,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){return nme=$P||{},rme=nme.schema,ime=nme.controlSettings,ome=(ime||{}).fieldMapper,lme=rme!=null&&rme.filter?Array.isArray(rme.filter)?rme.filter.find(function(dme){return dme.behavior&&Array.isArray(dme.behavior)&&dme.type==="form"}):((tme=rme.filter)===null||tme===void 0?void 0:tme.type)==="form"?rme.filter:void 0:void 0,sme=[],((ame=lme==null?void 0:lme.body)!==null&&ame!==void 0?ame:[]).forEach(function(dme){if(!(dme.type==="condition-builder"||dme.behavior===DSFeatureEnum.AdvancedQuery)){var ume=isFunction$b(ome)?ome(dme):!1;ume!==!1&&sme.push(ume)}}),[2,sme]})})},eme.prototype.makeSourceSettingForm=function($P){var tme=$P||{},ame=tme.feat,nme=tme.renderer,rme=tme.inScaffold,ime=tme.sourceSettings,ome=tme.sourceKey;if(!ame)return[];var lme=ime||{},sme=lme.label,cme=lme.name,dme=lme.renderLabel,ume=lme.labelClassName,fme=lme.mode,pme=lme.horizontalConfig,hme=lme.visibleOn,bme=nme==="crud",mme=sme??(bme&&ame!=="List"?this.getFeatLabelByKey(ame)+i18n("54ea89b497ec3bb319c68844dfa3687f"):i18n("54ea89b497ec3bb319c68844dfa3687f")),vme=mme;ame==="Insert"?vme=tipedLabel(mme,`用来保存数据, 表单提交后将数据传入此接口。<br/>
        接口响应体要求(如果data中有数据，该数据将被合并到表单上下文中)：<br/>
        <pre>`.concat(JSON.stringify({status:0,msg:"",data:{}},null,2),"</pre>")):ame==="List"&&(vme=tipedLabel(mme,`接口响应体要求：<br/>
        <pre>`.concat(JSON.stringify({status:0,msg:"",items:{},page:0,total:0},null,2),"</pre>")));var gme=fme??"horizontal",yme=__assign$3(__assign$3(__assign$3({renderLabel:dme??!0,label:vme,name:cme??(rme?this.getFeatValueByKey(ame)+"Api":"api"),mode:gme,labelClassName:ume,inputClassName:"m-b-none"},gme==="horizontal"?pme??{}:{}),hme&&typeof hme=="string"?{visibleOn:hme}:{}),{onPickerConfirm:function(Eme){var xme=Eme,Tme=function(Ome){var Rme;return"".concat(((Rme=Ome==null?void 0:Ome.api)===null||Rme===void 0?void 0:Rme.method)||"post",":api://").concat((Ome==null?void 0:Ome.key)||"")};return Eme&&(xme=Array.isArray(Eme)?Eme.map(Tme).join(","):Tme(Eme)),xme}}),_me=nme==="service",$me=_me?!0:ame!==DSFeatureEnum.View,Cme=_me?!1:(ame===DSFeatureEnum.Edit||ame===DSFeatureEnum.View)&&(nme==="form"||ome==="initApi"),Sme=_me?!1:ame===DSFeatureEnum.List&&nme==="crud"&&!rme;return __spreadArray([$me?getSchemaTpl("apiControl",yme):null,Cme?getSchemaTpl("apiControl",__assign$3(__assign$3({},yme),{name:"initApi",label:tipedLabel(i18n("b4bc91701b86fe8543d649e97daea602"),`接口响应体要求：<br/>
              <pre>`.concat(JSON.stringify({status:0,msg:"",data:{}},null,2),"</pre>"))})):null],__read$3(Sme?[getSchemaTpl("apiControl",__assign$3(__assign$3({},yme),{name:"quickSaveApi",label:tipedLabel(i18n("33eaf97ecb3465754855e847f14d129c"),i18n("419b0a74c438b81124992616dd0a36f3"))})),getSchemaTpl("apiControl",__assign$3(__assign$3({},yme),{name:"quickSaveItemApi",label:tipedLabel(i18n("ce7d31d64f2315e1d4cede288b9dfc60"),i18n("152e8c553fe6fbc51df7c72a45917107"))}))]:[]),!1).filter(Boolean)},eme.prototype.makeFieldsSettingForm=function($P){var tme=this,ame=$P||{},nme=ame.feat,rme=ame.inScaffold,ime=ame.renderer,ome=ame.fieldSettings,lme=(ome||{}).renderLabel;if(!nme||!rme||["Import","Export","FuzzyQuery","Delete","BulkDelete"].includes(nme))return[];var sme=[{type:"ae-field-setting",name:this.getFieldsKey($P),label:lme===!1?!1:i18n("9caecd931b956381e0763d05aa42835c"),renderer:ime,feat:nme,fieldKeys:this.features.map(function(cme){return tme.getFieldsKey({feat:cme})}),config:{showInputType:ime==="form"&&nme!==DSFeatureEnum.View||ime==="crud"&&["Edit","BulkEdit","Insert","View","SimpleQuery","List"].includes(nme),showDisplayType:ime==="form"&&nme===DSFeatureEnum.View||ime==="crud"&&["List"].includes(nme)},onAutoGenerateFields:this.autoGenerateFields.bind(this)}];return sme},eme.prototype.autoGenerateFields=function($P){var tme,ame,nme,rme=$P.api,ime=$P.props;return $P.setState,__awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me;return __generator(this,function($me){switch($me.label){case 0:return ome=ime.manager,lme=ime.env,sme=ime.data,cme=ime.feat,dme=(tme=ome==null?void 0:ome.store)===null||tme===void 0?void 0:tme.schemaFilter,dme&&(rme=dme({api:rme}).api),[4,lme==null?void 0:lme.fetcher(rme,sme)];case 1:if(ume=$me.sent(),!ume.ok)return toast.warning((nme=(ame=ume.defaultMsg)!==null&&ame!==void 0?ame:ume.msg)!==null&&nme!==void 0?nme:i18n("91aa2166ee4811414381c8d94e6567e6")),[2];if(fme=[],pme=ume.data,cme==="List"){if(bme=(pme==null?void 0:pme.rows)||(pme==null?void 0:pme.items)||(pme==null?void 0:pme.options)||pme,Array.isArray(bme))bme==null&&(bme=[]);else try{for(mme=__values$1(Object.keys(pme)),vme=mme.next();!vme.done;vme=mme.next())if(gme=vme.value,pme.hasOwnProperty(gme)&&Array.isArray(pme[gme])){bme=pme[gme];break}}catch(Cme){yme={error:Cme}}finally{try{vme&&!vme.done&&(_me=mme.return)&&_me.call(mme)}finally{if(yme)throw yme.error}}hme=bme==null?void 0:bme[0]}else hme=pme;return hme&&Object.entries(hme).forEach(function(Cme){var Sme=__read$3(Cme,2),Eme=Sme[0],xme=Sme[1],Tme="input-text";Array.isArray(xme)?Tme="select":isObject$8(xme)?Tme="combo":typeof xme=="number"&&(Tme="input-number"),fme.push({label:Eme,name:Eme,displayType:"tpl",inputType:Tme,checked:!0})}),[2,fme]}})})},eme.prototype.getApiKey=function($P){var tme=($P||{}).feat;return tme?"".concat(this.getFeatValueByKey(tme),"Api"):"api"},eme.prototype.getFieldsKey=function($P){var tme=($P||{}).feat;return tme?"".concat(this.getFeatValueByKey(tme),"Fields"):""},eme.prototype.buildBaseButtonSchema=function($P,tme){var ame,nme,rme=($P||{}).feat,ime=tme||{},ome=ime.buttonSchema,lme=ime.formSchema,sme=ime.dialogSchema,cme=ime.componentId;if(!rme)return __assign$3({},ome);var dme={Insert:i18n("66ab5e9f24c8f46012a25c89919fb191"),View:i18n("607e7a4f377fa66b0b28ce318aab841f"),Edit:i18n("95b351c86267f3aedf89520959bce689"),BulkEdit:i18n("e73cefac9d030927da1618c7b15c98c9"),Delete:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),BulkDelete:i18n("7fb62b30119c3797a843a48368463314")},ume={Insert:i18n("50abd0bf31e07dbee84e9e5b9a407840"),View:i18n("c00a96da01a3cf0445df3b0d05918317"),Edit:i18n("7695a3b5bfbcfdb3e7b085f8cd6455be"),BulkEdit:i18n("6f2f7e3794aa8502d02cb20aba881df1"),Delete:i18n("40f8f022c51542d282edda5b9ed4b512"),BulkDelete:i18n("c1c29e445748fa076c5fee45274bdd36")},fme=__assign$3(__assign$3({type:"button",label:(ame=dme[rme])!==null&&ame!==void 0?ame:i18n("fa966345577ba81af19408f203db968f")},ome),{behavior:rme,onEvent:{click:{actions:[{actionType:"dialog",dialog:__assign$3({body:__assign$3(__assign$3({},lme),{onEvent:{submitSucc:{actions:[{actionType:"search",groupType:"component",componentId:cme}]}}}),title:(nme=ume[rme])!==null&&nme!==void 0?nme:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),size:"md",actions:[{type:"button",actionType:"cancel",label:i18n("b15d91274e9fc68608c609999e0413fa")}]},sme)}]}}});return fme},eme.prototype.buildFormOperators=function($P,tme){var ame=$P||{};ame.feat;var nme=ame.scaffoldConfig,rme=(nme||{}).operators,ime=sortBy$1(rme??Object.values(FormOperatorMap),["order"]).map(function(ome){return __assign$3({type:"button",label:ome.label,onEvent:{click:{actions:[{actionType:ome.value,componentId:tme}]}}},ome.schema)});return ime},eme.prototype.appendSchema2InputControl=function($P){return $P==="combo"?{items:[{type:"input-text",name:"input-text",placeholder:i18n("97d07614380da93d257f9fbf81aa56fb")}]}:{}},eme.prototype.buildBaseFormSchema=function($P,tme,ame){var nme=this,rme;tme=tme||{};var ime=$P||{},ome=ime.feat,lme=ime.renderer,sme=ime.scaffoldConfig;if(!ome)return __assign$3(__assign$3({},tme),ame?{id:ame}:{});var cme=this.getFieldsKey($P),dme=this.getApiKey($P),ume=(rme=sme==null?void 0:sme[cme])!==null&&rme!==void 0?rme:[],fme=sme==null?void 0:sme[dme],pme=ame??generateNodeId(),hme=__assign$3({id:pme,type:"form",title:i18n("eee1e2258d7ea163fec625ee44be9637"),mode:"flex",labelAlign:"top",dsType:this.key,feat:ome,body:ume.map(function(bme,mme){var vme,gme=bme.inputType&&(vme=displayType2inputType(bme.inputType))!==null&&vme!==void 0?vme:"input-text";return __assign$3(__assign$3(__assign$3({},pick$3(bme,["name","label"])),{row:mme,type:gme}),nme.appendSchema2InputControl(gme))}),api:fme},lme==="form"?{actions:this.buildFormOperators($P,pme)}:{});return["Insert","Edit","BulkEdit"].includes(ome)&&(hme.resetAfterSubmit=!0),ome===DSFeatureEnum.View&&(delete hme.api,hme.static=!0),__assign$3(__assign$3(__assign$3({},hme),tme),{id:pme})},eme.prototype.buildInsertSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){return ame=$P||{},nme=ame.renderer,rme=ame.scaffoldConfig,ime=(rme||{}).insertApi,nme==="form"?[2,this.buildBaseFormSchema(__assign$3({},$P),void 0,tme)]:(ome=tme??generateNodeId(),lme=[{type:"button",actionType:"cancel",label:i18n("625fb26b4b3340f7872b411f401e754c")},{type:"button",actionType:"submit",label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),level:"primary"}],sme=i18n("50abd0bf31e07dbee84e9e5b9a407840"),cme=this.buildBaseFormSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.Insert}),{id:ome,title:sme,api:ime,actions:lme}),[2,__assign$3({},this.buildBaseButtonSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.Insert}),{buttonSchema:{level:"primary",className:"m-r-xs"},dialogSchema:{title:sme,actions:lme},formSchema:cme,componentId:tme}))])})})},eme.prototype.buildViewSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){return ame=($P||{}).renderer,nme=$P.scaffoldConfig||{},rme=ame==="form",ime=ame==="form"?nme==null?void 0:nme.initApi:nme==null?void 0:nme.viewApi,ome=[{type:"button",actionType:"cancel",label:i18n("b15d91274e9fc68608c609999e0413fa")}],lme=i18n("c00a96da01a3cf0445df3b0d05918317"),sme=this.buildBaseFormSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.View}),rme?{initApi:ime}:{title:lme,initApi:ime,actions:ome}),ame==="crud"?(cme=__assign$3({},this.buildBaseButtonSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.View}),{buttonSchema:{level:"link"},dialogSchema:{title:lme,actions:ome},formSchema:sme,componentId:tme})),[2,cme]):[2,sme]})})},eme.prototype.buildEditSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme;return __generator(this,function(pme){return ame=$P||{},nme=ame.renderer,rme=ame.scaffoldConfig,ime=nme==="form",ime?[2,this.buildBaseFormSchema($P,void 0,tme)]:(ome=rme||{},lme=ome.editApi,sme=ome.initApi,cme=generateNodeId(),dme=[{type:"button",actionType:"cancel",label:i18n("625fb26b4b3340f7872b411f401e754c")},{type:"button",actionType:"submit",label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),level:"primary"}],ume=i18n("7695a3b5bfbcfdb3e7b085f8cd6455be"),fme=this.buildBaseFormSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.Edit}),{id:cme,title:ume,initApi:sme,api:lme,actions:dme}),[2,__assign$3({},this.buildBaseButtonSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.Edit}),{buttonSchema:{level:"link"},dialogSchema:{title:ume,actions:dme},formSchema:fme,componentId:tme}))])})})},eme.prototype.buildBulkEditSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){return ame=$P.renderer,nme=$P.scaffoldConfig,rme=(nme||{}).bulkEditApi,ime=ame==="form",ime?[2,this.buildBaseFormSchema($P,void 0,tme)]:(ome=generateNodeId(),lme=[{type:"button",actionType:"cancel",label:i18n("625fb26b4b3340f7872b411f401e754c")},{type:"button",actionType:"submit",label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),level:"primary"}],sme=i18n("e73cefac9d030927da1618c7b15c98c9"),cme=this.buildBaseFormSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.BulkEdit}),{id:ome,title:sme,api:rme,actions:lme}),[2,__assign$3({},this.buildBaseButtonSchema(__assign$3(__assign$3({},$P),{feat:DSFeatureEnum.BulkEdit}),{buttonSchema:{className:"m-r-xs",disabledOn:"${selectedItems != null && selectedItems.length < 1}"},dialogSchema:{title:sme,actions:lme},formSchema:cme,componentId:tme}))])})})},eme.prototype.buildCRUDDeleteSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme;return __generator(this,function(rme){return ame=($P||{}).scaffoldConfig,nme=(ame||{}).deleteApi,[2,{type:"button",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),behavior:"Delete",className:"m-r-xs text-danger",level:"link",confirmText:i18n("ebf98d77b1a002935ad5c41446f257b3"),onEvent:{click:{actions:[{actionType:"ajax",api:nme,data:{"&":"$$"}},{actionType:"search",groupType:"component",componentId:tme}]}}}]})})},eme.prototype.buildCRUDBulkDeleteSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){return ame=($P||{}).scaffoldConfig,nme=ame||{},rme=nme.bulkDeleteApi,ime=nme.primaryField,ome=ime===void 0?"id":ime,[2,{type:"button",label:i18n("7fb62b30119c3797a843a48368463314"),behavior:"BulkDelete",level:"danger",className:"m-r-xs",confirmText:i18n("d00d3377afe33a0f1b63293f3a3e3a79")+"「${JOIN(ARRAYMAP(selectedItems, item => item.".concat(ome,"), ',')}」"),disabledOn:"${selectedItems != null && selectedItems.length < 1}",onEvent:{click:{actions:[{actionType:"ajax",api:rme},{actionType:"search",groupType:"component",componentId:tme}]}}}]})})},eme.prototype.buildSimpleQueryCollectionSchema=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ame=$P||{},nme=ame.renderer,rme=ame.schema,nme!=="crud"?[2]:(ime=((tme=rme==null?void 0:rme.columns)!==null&&tme!==void 0?tme:[]).filter(function(sme){return sme.type!=="operation"}).map(function(sme){var cme,dme,ume=sme.type&&(cme=displayType2inputType(sme.type))!==null&&cme!==void 0?cme:"input-text";return{type:(dme=sme.type)!==null&&dme!==void 0?dme:"input-text",inputType:ume,name:sme.name,label:sme.title,size:"full",required:!1,behavior:"SimpleQuery"}}),[4,this.buildCRUDFilterSchema(__assign$3(__assign$3({},$P),{scaffoldConfig:{dsType:this.key,simpleQueryFields:ime}}),rme==null?void 0:rme.id)]);case 1:return ome=lme.sent(),[2,ome.body]}})})},eme.prototype.buildCRUDFilterSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome=this;return __generator(this,function(lme){return ame=($P||{}).scaffoldConfig,nme=(ame||{}).simpleQueryFields,rme=nme??[],ime={type:"form",title:i18n("0943d61befec4c6cf2d21d170c9b066e"),mode:"inline",columnCount:3,clearValueOnHidden:!0,behavior:["SimpleQuery"],body:rme.map(function(sme){var cme,dme=(cme=sme.inputType)!==null&&cme!==void 0?cme:"input-text";return __assign$3(__assign$3(__assign$3({},pick$3(sme,["name","label"])),{type:dme,size:"full",required:!1,behavior:"SimpleQuery"}),ome.appendSchema2InputControl(dme))}),actions:[{type:"reset",label:i18n("4b9c3271dc2f299dc3aeffb369187513")},{type:"submit",label:i18n("bee912d79eefb7335988c4997aa9138d"),level:"primary"}]},[2,ime]})})},eme.prototype.buildCRUDOpColumn=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ame=($P||{}).feats,nme=[],ame!=null&&ame.includes("View")?(ime=(rme=nme).push,[4,this.buildViewSchema($P,tme)]):[3,2];case 1:ime.apply(rme,[dme.sent()]),dme.label=2;case 2:return ame!=null&&ame.includes("Edit")?(lme=(ome=nme).push,[4,this.buildEditSchema($P,tme)]):[3,4];case 3:lme.apply(ome,[dme.sent()]),dme.label=4;case 4:return ame!=null&&ame.includes("Delete")?(cme=(sme=nme).push,[4,this.buildCRUDDeleteSchema($P,tme)]):[3,6];case 5:cme.apply(sme,[dme.sent()]),dme.label=6;case 6:return[2,{type:"operation",title:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:nme}]}})})},eme.prototype.buildCRUDColumn=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(nme){return[2,{type:$P.displayType,title:$P.label,name:$P.name}]})})},eme.prototype.buildCRUDColumnsSchema=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme=this;return __generator(this,function(sme){switch(sme.label){case 0:return ame=$P.scaffoldConfig,nme=(ame||{}).listFields,rme=nme??[],[4,this.buildCRUDOpColumn($P,tme)];case 1:return ime=sme.sent(),[4,Promise.all(rme.map(function(cme){return __awaiter(lme,void 0,void 0,function(){return __generator(this,function(dme){return[2,this.buildCRUDColumn(cme,$P,tme)]})})}))];case 2:return ome=sme.sent().filter(Boolean),[2,__spreadArray(__spreadArray([],__read$3(ome),!1),__read$3(ime.buttons.length!==0?[ime]:[]),!1)]}})})},eme.prototype.buildToolbarContainer=function($P,tme,ame){return tme===void 0&&(tme=[]),tme=Array.isArray(tme)?tme:[tme],__assign$3(__assign$3({type:"container",align:$P},ame?{behavior:ame}:{}),{body:Array.isArray(tme)?tme:[tme],wrapperBody:!1,style:__assign$3({flexGrow:1,flex:"1 1 auto",position:"static",display:"flex",flexBasis:"auto",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch"},$P?{justifyContent:$P==="left"?"flex-start":"flex-end"}:{})})},eme.prototype.buildToolbarFlex=function($P,tme,ame){return[{type:"flex",direction:"row",justify:"flex-start",alignItems:"stretch",style:{position:"static"},items:[this.buildToolbarContainer("left",tme,$P==="header"?[DSFeatureEnum.Insert,DSFeatureEnum.BulkEdit,DSFeatureEnum.BulkDelete]:void 0),this.buildToolbarContainer("right",ame,$P==="header"?[DSFeatureEnum.FuzzyQuery]:void 0)].filter(Boolean)}]},eme.prototype.buildHeaderToolbar=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ame=($P||{}).feats,nme=[],ame!=null&&ame.includes("Insert")?(ime=(rme=nme).push,[4,this.buildInsertSchema($P,tme)]):[3,2];case 1:ime.apply(rme,[dme.sent()]),dme.label=2;case 2:return ame!=null&&ame.includes("BulkEdit")?(lme=(ome=nme).push,[4,this.buildBulkEditSchema($P,tme)]):[3,4];case 3:lme.apply(ome,[dme.sent()]),dme.label=4;case 4:return ame!=null&&ame.includes("BulkDelete")?(cme=(sme=nme).push,[4,this.buildCRUDBulkDeleteSchema($P,tme)]):[3,6];case 5:cme.apply(sme,[dme.sent()]),dme.label=6;case 6:return[2,this.buildToolbarFlex("header",nme,[])]}})})},eme.prototype.buildFooterToolbar=function($P,tme){return this.buildToolbarFlex("footer",[],[{type:"pagination",behavior:"Pagination",layout:["total","perPage","pager"],perPage:10,perPageAvailable:[10,20,50,100],align:"right"}])},eme.prototype.guessFormScaffoldConfig=function($P){var tme,ame,nme,rme,ime=($P||{}).schema,ome=this.key;if(!ime.dsType||ime.dsType!==ome)return{dsType:ome};var lme=(nme=ime==null?void 0:ime.feat)!==null&&nme!==void 0?nme:"Insert",sme=((rme=ime.actions)!==null&&rme!==void 0?rme:[]).map(function(hme){var bme=get$6(hme,"onEvent.click.actions[0].actionType");if(typeof bme=="string"&&bme&&["submit","reset","cancel"].includes(bme))return FormOperatorMap[bme]}).filter(Boolean),cme=this.getFeatValueByKey(lme),dme=cme?"".concat(cme,"Fields"):"",ume=cme?"".concat(cme,"Api"):"",fme=(Array.isArray(ime==null?void 0:ime.body)?ime.body:[ime.body]).map(function(hme){return hme?{name:hme.name,label:hme.label,displayType:"tpl",inputType:hme.type}:!1}).filter(function(hme){return hme!=null}),pme=__assign$3(__assign$3(__assign$3(__assign$3({feat:lme,dsType:ome},dme?(tme={},tme[dme]=fme,tme):{}),ume?(ame={},ame[ume]=JSONPipeOut(ime==null?void 0:ime.api),ame):{}),lme==="Edit"||ime.initApi!=null?{initApi:JSONPipeOut(ime==null?void 0:ime.initApi)}:{}),{operators:sme.length<1?[FormOperatorMap.cancel,FormOperatorMap.submit]:sme,__pristineSchema:omit$1(JSONPipeOut(ime),__spreadArray([],__read$3(Object.values(DSFeature).map(function(hme){return"".concat(hme.value,"Fields")})),!1))});return pme},eme.prototype.guessCRUDScaffoldConfig=function($P){var tme,ame=($P||{}).schema,nme=this.key;if(!ame.dsType||ame.dsType!==nme)return{dsType:nme,primaryField:"id"};var rme=(Array.isArray(ame==null?void 0:ame.columns)?ame.columns:[ame.columns]).filter(function(_me){return _me.type!=="operation"}).map(function(_me){if(_me)return{name:_me.name,label:_me.title,displayType:_me.type,inputType:"input-text"}}).filter(function(_me){return _me!=null}),ime=[],ome,lme=[],sme,cme=[],dme,ume=[],fme,pme=[],hme,bme,mme=[],vme=function(_me){return _me.map(function($me){var Cme;return __assign$3(__assign$3({},pick$3($me,["name","label"])),{inputType:(Cme=$me.type)!==null&&Cme!==void 0?Cme:"input-text",displayType:"tpl"})})};traverseSchemaDeep(ame,function(_me,$me,Cme){var Sme,Eme,xme,Tme,Ome;if(_me==="feat"&&($me==="Insert"?(mme.push("Insert"),lme=vme((Sme=Cme==null?void 0:Cme.body)!==null&&Sme!==void 0?Sme:[]),sme=Cme==null?void 0:Cme.api):$me==="Edit"?(mme.push("Edit"),cme=vme((Eme=Cme==null?void 0:Cme.body)!==null&&Eme!==void 0?Eme:[]),dme=Cme==null?void 0:Cme.api):$me==="BulkEdit"?(mme.push("BulkEdit"),ume=vme((xme=Cme==null?void 0:Cme.body)!==null&&xme!==void 0?xme:[]),fme=Cme==null?void 0:Cme.api):$me==="View"&&(mme.push("View"),ime=vme((Tme=Cme==null?void 0:Cme.body)!==null&&Tme!==void 0?Tme:[]),ome=Cme==null?void 0:Cme.initApi)),_me==="behavior")if($me==="BulkDelete"){mme.push("BulkDelete");var Rme=get$6(Cme,"onEvent.click.actions",[]),Nme=Rme.find(function(Ime){var Pme;return(Ime==null?void 0:Ime.actionType)==="ajax"&&((Ime==null?void 0:Ime.api)!=null||((Pme=Ime==null?void 0:Ime.args)===null||Pme===void 0?void 0:Pme.api)!=null)});hme=get$6(Nme,"api","")||get$6(Nme,"args.api","")}else if($me==="Delete"){mme.push("Delete");var Rme=get$6(Cme,"onEvent.click.actions",[]),Nme=Rme.find(function(Mme){var kme;return(Mme==null?void 0:Mme.actionType)==="ajax"&&((Mme==null?void 0:Mme.api)!=null||((kme=Mme==null?void 0:Mme.args)===null||kme===void 0?void 0:kme.api)!=null)});bme=get$6(Nme,"api","")||get$6(Nme,"args.api","")}else Array.isArray($me)&&$me.includes("SimpleQuery")&&(mme.push("SimpleQuery"),pme=((Ome=Cme==null?void 0:Cme.body)!==null&&Ome!==void 0?Ome:[]).map(function(Ime){var Pme;return __assign$3(__assign$3({},pick$3(Ime,["name","label"])),{inputType:(Pme=Ime.type)!==null&&Pme!==void 0?Pme:"input-text",isplayType:"tpl"})}));return[_me,$me]});var gme=uniq$1(mme),yme={dsType:nme,tools:intersection$1(gme,[DSFeatureEnum.Insert,DSFeatureEnum.BulkDelete,DSFeatureEnum.BulkEdit]),operators:intersection$1(gme,[DSFeatureEnum.View,DSFeatureEnum.Edit,DSFeatureEnum.Delete]),filters:intersection$1(gme,[DSFeatureEnum.FuzzyQuery,DSFeatureEnum.SimpleQuery,DSFeatureEnum.AdvancedQuery]),listFields:rme,listApi:JSONPipeOut(ame==null?void 0:ame.api),viewFields:ime,viewApi:JSONPipeOut(ome),insertFields:lme,insertApi:JSONPipeOut(sme),editFields:cme,editApi:JSONPipeOut(dme),bulkEditFields:ume,bulkEditApi:JSONPipeOut(fme),deleteApi:JSONPipeOut(bme),bulkDeleteApi:JSONPipeOut(hme),simpleQueryFields:pme,primaryField:(tme=ame==null?void 0:ame.primaryField)!==null&&tme!==void 0?tme:"id",__pristineSchema:omit$1(JSONPipeOut(ame),__spreadArray([],__read$3(Object.values(DSFeature).map(function(_me){return"".concat(_me.value,"Fields")})),!1))};return yme},eme.prototype.buildCRUDSchema=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme;return __generator(this,function(yme){switch(yme.label){case 0:return tme=$P.feats,ame=$P.scaffoldConfig,nme=ame||{},rme=nme.primaryField,ime=rme===void 0?"id":rme,ome=nme.listApi,lme=nme.editApi,sme=nme.bulkEditApi,cme=tme==null?void 0:tme.includes("BulkEdit"),dme=tme==null?void 0:tme.includes("BulkDelete"),ume=tme==null?void 0:tme.includes("Edit"),fme=cme||dme,pme=generateNodeId(),hme=[__assign$3(__assign$3(__assign$3(__assign$3({id:pme,type:"crud2",mode:"table2",dsType:this.key,syncLocation:!0},fme?{selectable:!0,multiple:!0}:{}),{primaryField:ime,loadType:"pagination",api:ome}),cme?{quickSaveApi:sme}:{}),ume?{quickSaveItemApi:lme}:{})],tme!=null&&tme.includes(DSFeatureEnum.SimpleQuery)?(vme={},[4,this.buildCRUDFilterSchema($P,pme)]):[3,2];case 1:return bme=(vme.filter=yme.sent(),vme),[3,3];case 2:bme={},yme.label=3;case 3:return mme=[__assign$3.apply(void 0,hme.concat([bme]))],gme={},[4,this.buildHeaderToolbar($P,pme)];case 4:return gme.headerToolbar=yme.sent(),gme.footerToolbar=this.buildFooterToolbar($P,pme),[4,this.buildCRUDColumnsSchema($P,pme)];case 5:return[2,__assign$3.apply(void 0,mme.concat([(gme.columns=yme.sent(),gme)]))]}})})},eme.prototype.buildFormSchema=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ame=$P.feat,nme=$P.scaffoldConfig,rme=nme||{},ime=rme.initApi,ome=rme.__pristineSchema,sme=(tme=ome==null?void 0:ome.id)!==null&&tme!==void 0?tme:generateNodeId(),ame!==DSFeatureEnum.Insert?[3,2]:[4,this.buildInsertSchema($P,sme)];case 1:return lme=dme.sent(),[3,8];case 2:return ame!==DSFeatureEnum.Edit?[3,4]:[4,this.buildEditSchema($P,sme)];case 3:return lme=dme.sent(),[3,8];case 4:return ame!==DSFeatureEnum.View?[3,6]:[4,this.buildViewSchema($P,sme)];case 5:return lme=dme.sent(),[3,8];case 6:return[4,this.buildBulkEditSchema($P,sme)];case 7:lme=dme.sent(),dme.label=8;case 8:return cme=__assign$3(__assign$3(__assign$3({},lme),ame==="Edit"?{initApi:ime}:{}),{dsType:this.key}),ome&&isObject$8(ome)?[2,__assign$3(__assign$3(__assign$3({},ome),cme),{id:sme})]:[2,cme]}})})},eme.prototype.buildApiSchema=function($P){return __awaiter(this,void 0,void 0,function(){var tme;return __generator(this,function(ame){return tme=$P.schema,[2,tme]})})},eme.key="api",eme}(DSBuilder);registerDSBuilder(ApiDSBuilder);function InputComponentName(x_){var eme=x_.value,$P=x_.onChange,tme=x_.render,ame=x_.name,nme=x_.node,rme=x_.placeholder,ime=__read$3(reactExports.useState([]),2),ome=ime[0],lme=ime[1];reactExports.useEffect(function(){for(var cme=nme==null?void 0:nme.getComponent(),dme=cme==null?void 0:cme.context,ume=[];dme!=null&&dme.getComponents;)dme.getComponents().forEach(function(fme){fme.props.name&&fme!==cme&&ume.push(fme.props.name)}),dme=dme.parent;lme(ume)},[nme]);function sme(cme){return $P(cme),!1}return tme("inner",{type:"input-text",name:ame,placeholder:rme},{value:eme,onChange:sme,options:ome})}var FormulaPicker=function(x_){var eme,$P=x_.variables,tme=x_.variableMode,ame=x_.evalMode,nme=ame===void 0?!0:ame,rme=__read$3(React__default.useState(void 0),2),ime=rme[0],ome=rme[1],lme=__read$3(React__default.useState(x_.header),2),sme=lme[0],cme=lme[1];reactExports.useEffect(function(){var hme=x_.initable,bme=x_.value;hme&&ome(bme)},[x_.value]),reactExports.useEffect(function(){cme(resolveVariableAndFilter(x_.header,x_.data))},[x_.data]);var dme=function(hme){ome(hme)},ume=function(){x_.onClose&&x_.onClose()},fme=function(){x_.onConfirm&&x_.onConfirm(ime)},pme=(eme=x_==null?void 0:x_.data)===null||eme===void 0?void 0:eme.name;return jsxs(FinalModal,{className:cx$1("FormulaPicker-Modal"),size:"lg",show:!0,onHide:ume,closeOnEsc:!0,children:[jsx(FinalModal.Body,{children:jsx(FormulaEditor,{...__assign$3({},x_,{header:sme||i18n("a9400c408441f1f7f6d6954deb05ae9a"),variables:$P,variableMode:tme,value:ime,evalMode:nme,onChange:dme,selfVariableName:pme})})}),jsxs(FinalModal.Footer,{children:[jsx(Button$1,{onClick:ume,children:i18n("625fb26b4b3340f7872b411f401e754c")}),jsx(Button$1,{onClick:fme,level:"primary",children:i18n("e83a256e4f5bb4ff8b3d804b5473217a")})]})]})};function editorFactory$1(x_,eme,$P,tme){return eme(x_,__assign$3({value:$P||"",autofocus:!1,lineWrapping:!0},tme))}var defaultPluginConfig={showPopover:!1,showClearIcon:!1},FormulaPlugin=function(){function x_(eme,$P){var tme,ame;this.editor=eme,this.config=__assign$3(__assign$3({},defaultPluginConfig),$P);var nme=this.config.getProps().value;nme&&(this.autoMark(),this.focus(nme)),this.setValue=this.setValue.bind(this),this.insertContent=this.insertContent.bind(this),this.autoMark=this.autoMark.bind(this),this.focus=this.focus.bind(this),this.dispose=this.dispose.bind(this),(ame=(tme=this.config).onPluginInit)===null||ame===void 0||ame.call(tme,this)}return x_.prototype.autoMark=function(){for(var eme,$P,tme=this.editor,ame=tme.lineCount(),nme=0;nme<ame;nme++)for(var rme=tme.getLine(nme),ime=this.computedBracesPosition(rme),ome=0;ome<ime.length;ome++){var lme=ime[ome].begin,sme=ime[ome].end,cme=rme.slice(lme,sme);this.markExpression({line:nme,ch:lme-2},{line:nme,ch:sme+1},cme)}($P=(eme=this.config).customMarkText)===null||$P===void 0||$P.call(eme,tme)},x_.prototype.getExpressionBrace=function(eme){for(var $P=this.editor,tme=$P.lineCount(),ame=0;ame<tme;ame++)for(var nme=$P.getLine(ame),rme=this.computedBracesPosition(nme),ime=0;ime<rme.length;ime++){var ome=rme[ime].begin,lme=rme[ime].end;if(eme===nme.slice(ome,lme))return[{line:ame,ch:ome-2},{line:ame,ch:lme+1}]}},x_.prototype.computedBracesPosition=function(eme){var $P=[];return eme==null||eme.replace(/\$\{/g,function(tme,ame){if(tme)for(var nme=eme.slice(ame+tme.length).split(""),rme=["${"],ime=0;ime<nme.length;ime++){var ome=nme[ime];if(ome==="{"?rme.push("{"):ome==="}"&&rme.pop(),rme.length===0){$P.push({begin:ame+2,end:ime+ame+2});break}}return""}),$P},x_.prototype.checkStrIsInBraces=function(eme,$P){var tme=__read$3(eme,2),ame=tme[0],nme=tme[1],rme=!1;if($P.length)for(var ime=0;ime<$P.length;ime++){var ome=$P[ime];if(ame>=ome.begin&&nme<=ome.end){rme=!0;break}}return rme},x_.prototype.insertBraces=function(eme,$P){var tme=this.editor.getValue(),ame=this.computedBracesPosition(tme);this.checkStrIsInBraces([eme.ch,$P.ch],ame)||(this.editor.setCursor({line:eme.line,ch:eme.ch}),this.editor.replaceSelection("${"),this.editor.setCursor({line:$P.line,ch:$P.ch+2}),this.editor.replaceSelection("}"))},x_.prototype.setValue=function(eme){this.editor.setValue(eme)},x_.prototype.getCorsur=function(){return this.editor.getCursor()},x_.prototype.insertContent=function(eme,$P,tme){if($P===void 0&&($P="string"),tme){var ame=__read$3(tme,2),nme=ame[0],rme=ame[1];$P==="expression"?(this.editor.replaceRange(eme,nme,rme),this.autoMark()):$P==="string"&&this.editor.replaceRange(eme,nme,rme)}else $P==="expression"?(this.editor.replaceSelection(eme),this.autoMark()):$P==="string"&&this.editor.replaceSelection(eme),this.editor.focus()},x_.prototype.markExpression=function(eme,$P,tme,ame){var nme=this,rme;tme===void 0&&(tme=""),ame===void 0&&(ame="cm-expression");var ime=this.config,ome=ime.onExpressionMouseEnter,lme=ime.getProps,sme=ime.showPopover,cme=ime.showClearIcon,dme=(rme=lme())===null||rme===void 0?void 0:rme.variables,ume=FormulaEditor.highlightValue(tme,dme,!0,!1)||{html:tme},fme=document.createElement("span");fme.className=ame;var pme=document.createElement("span");if(pme.className="".concat(ame,"-text"),pme.innerHTML=ume.html,pme.setAttribute("data-expression",tme),pme.onmouseenter=function(vme){var gme=nme.getExpressionBrace(tme);ome==null||ome(vme,tme,gme)},fme.appendChild(pme),cme){var hme=document.createElement("i");hme.className="cm-expression-close iconfont icon-close",hme.onclick=function(){var vme=nme.getExpressionBrace(tme);nme.insertContent("","expression",vme)},fme.appendChild(hme)}if(sme){var bme=document.createElement("div");bme.innerHTML=ume.html,bme.classList.add("cm-expression-popover");var mme=document.createElement("div");mme.classList.add("cm-expression-popover-arrow"),bme.appendChild(mme),fme.appendChild(bme)}this.editor.markText(eme,$P,{atomic:!0,replacedWith:fme})},x_.prototype.focus=function(eme){this.editor.setCursor({line:0,ch:(eme==null?void 0:eme.length)||0})},x_.prototype.dispose=function(){},x_.prototype.validate=function(){},x_}(),FormulaDateType;(function(x_){x_[x_.NotDate=0]="NotDate",x_[x_.IsDate=1]="IsDate",x_[x_.IsRange=2]="IsRange"})(FormulaDateType||(FormulaDateType={}));function renderFormulaValue(x_){var eme={__html:typeof x_=="string"?x_:x_==null?void 0:x_.html};return React__default.createElement("span",{dangerouslySetInnerHTML:eme})}var FormulaControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.wrapRef=React__default.createRef(),tme.handleSimpleInputChange=function(ame){var nme,rme,ime=tme.outReplaceExpression(ame);(rme=(nme=tme.props)===null||nme===void 0?void 0:nme.onChange)===null||rme===void 0||rme.call(nme,ime)},tme.handleInputChange=function(ame){var nme,rme;(rme=(nme=tme.props)===null||nme===void 0?void 0:nme.onChange)===null||rme===void 0||rme.call(nme,ame)},tme.state={variables:[],quickVariables:[],variableMode:"tree",formulaPickerOpen:!1,loading:!1,menuIsOpened:!1,quickVariablesIsOpened:!1},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:return $P=window.editorStore,this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,this.unReaction=reaction(function(){return $P==null?void 0:$P.appLocaleState},function(){return __awaiter(nme,void 0,void 0,function(){return __generator(this,function(ime){return this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,[2]})})}),[4,getVariables(this)];case 1:return tme=rme.sent(),[4,getQuickVariables(this,this.filterQuickVariablesByType)];case 2:return ame=rme.sent(),this.setState({variables:tme,quickVariables:ame}),[2]}})})},eme.prototype.componentWillUnmount=function(){var $P,tme;this.isUnmount=!0,($P=this.editorPlugin)===null||$P===void 0||$P.dispose(),(tme=this.unReaction)===null||tme===void 0||tme.call(this)},eme.prototype.menuRef=function($P){this.buttonTarget=$P},eme.prototype.filterQuickVariablesByType=function($P){var tme=eme.getRendererSchemaFromProps(this.props),ame=util.RAW_TYPE_MAP[tme==null?void 0:tme.type]||"string",nme=$P.map(function(rme){return rme.children&&rme.type!=="quickVars"&&(rme.children=rme.children.filter(function(ime){return ime.rawType===ame})),rme}).filter(function(rme){var ime;return rme.rawType===ame||rme.children&&((ime=rme.children)===null||ime===void 0?void 0:ime.length)});return nme},eme.prototype.editorFactory=function($P,tme){return editorFactory$1($P,tme,this.props.value,{lineWrapping:!1,cursorHeight:.85})},eme.prototype.handleEditorMounted=function($P,tme){var ame=this,nme=this.state.variables,rme=this.state.quickVariables;this.editorPlugin=new FormulaPlugin(tme,{getProps:function(){return __assign$3(__assign$3({},ame.props),{variables:__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(rme),!1)})},showPopover:!1,showClearIcon:!0})},eme.prototype.outReplaceExpression=function($P){return $P&&isString$8($P)&&isExpression($P)?$P.replace(/(^|[^\\])\$\{/g,"\\${"):$P},eme.prototype.inReplaceExpression=function($P){return $P&&isString$8($P)?$P.replace(/\\\$\{/g,"${"):$P},eme.prototype.isLoopExpression=function($P,tme){if(!$P||!tme||!isString$8($P))return!1;var ame=[];try{ame=FormulaExec.collect($P)}catch{}return ame.some(function(nme){return nme===tme})},eme.getRendererSchemaFromProps=function($P){var tme=$P.rendererSchema;if(typeof tme=="function"){var ame=$P.data?__assign$3({},$P.data):void 0;return tme(ame)}else return tme},eme.prototype.matchDate=function($P){var tme=/^(.+)?(\+|-)(\d+)(minute|min|hour|day|week|month|year|weekday|second|millisecond)s?$/i,ame=tme.exec($P);return ame?ame[1]?this.matchDate(ame[1]):!0:!1},eme.prototype.matchDateRange=function($P){return/^(now|today)$/.test($P)?!0:this.matchDate($P)},eme.prototype.hasDateShortcutkey=function($P){var tme,ame=this.props.DateTimeType;if(ame===FormulaDateType.IsDate)return/^(now|today)$/.test($P)?!0:this.matchDate($P);if(ame===FormulaDateType.IsRange){var nme=(tme=$P==null?void 0:$P.split)===null||tme===void 0?void 0:tme.call($P,",");if(nme&&nme.length===2)return this.matchDateRange(nme[0].trim())&&this.matchDateRange(nme[1].trim())}return!1},eme.prototype.transExpr=function($P){return typeof $P=="string"&&$P.slice(0,2)==="${"&&$P.slice(-1)==="}"?isExpression($P.slice(2,-1))||$P.lastIndexOf("${")>$P.indexOf("}")&&$P.indexOf("}")>-1?$P:$P.slice(2,-1):$P},eme.prototype.handleConfirm=function($P){var tme=this,ame,nme,rme=$P?isExpression($P)||this.hasDateShortcutkey($P)?$P:"${".concat($P,"}"):void 0;(nme=(ame=this.props)===null||ame===void 0?void 0:ame.onChange)===null||nme===void 0||nme.call(ame,rme),this.closeFormulaPicker(),requestAnimationFrame(function(){var ime,ome;(ome=(ime=tme.editorPlugin)===null||ime===void 0?void 0:ime.autoMark)===null||ome===void 0||ome.call(ime)})},eme.prototype.beforeFormulaEditorOpen=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:tme=this.props,ame=tme.node,nme=tme.manager,rme=tme.data,ime=($P=nme==null?void 0:nme.config)===null||$P===void 0?void 0:$P.onFormulaEditorOpen,this.setState({loading:!0}),cme.label=1;case 1:return cme.trys.push([1,8,,9]),nme&&ime&&typeof ime=="function"?[4,ime(ame,nme,rme)]:[3,5];case 2:return ome=cme.sent(),ome===!1?[3,4]:[4,getVariables(this)];case 3:lme=cme.sent(),this.setState({variables:lme}),cme.label=4;case 4:return[3,7];case 5:return[4,getVariables(this)];case 6:lme=cme.sent(),this.setState({variables:lme}),cme.label=7;case 7:return[3,9];case 8:return sme=cme.sent(),console.error("[amis-editor] onFormulaEditorOpen failed: ",sme==null?void 0:sme.stack),[3,9];case 9:return this.setState({loading:!1}),[2]}})})},eme.prototype.handleFormulaClick=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function($P){switch($P.label){case 0:return $P.trys.push([0,2,,3]),[4,this.beforeFormulaEditorOpen()];case 1:return $P.sent(),[3,3];case 2:return $P.sent(),[3,3];case 3:return this.setState({formulaPickerOpen:!0}),[2]}})})},eme.prototype.closeFormulaPicker=function(){this.setState({formulaPickerOpen:!1})},eme.prototype.filterCustomRendererProps=function($P){var tme,ame=this.props,nme=ame.data,rme=ame.name,ime=ame.placeholder,ome=null;if($P){ome=Object.assign({},$P,{type:(tme=$P.type)!==null&&tme!==void 0?tme:nme.type,name:"FORMULA_CONTROL_PLACEHOLDER"});var lme=["label","id","$$id","className","style","readOnly","horizontal","size","remark","labelRemark","static","staticOn","hidden","hiddenOn","visible","visibleOn","disabled","disabledOn","required","requiredOn","className","labelClassName","labelAlign","inputClassName","description","autoUpdate","prefix","suffix","unitOptions","keyboard","kilobitSeparator","value","inputControlClassName","css","validateApi","themeCss","onEvent","embed"];this.props.needDeleteProps&&lme.push.apply(lme,__spreadArray([],__read$3(this.props.needDeleteProps),!1)),rme&&rme==="min"&&lme.push("min"),rme&&rme==="max"&&lme.push("max"),ome=omit$1(ome,lme),ome.clearable=!0,ome.type==="select"?(!ome.placeholder&&(ome.placeholder=i18n("8f7ae284d0039fe05b9f57fd5ae3ede9")),ome.inputClassName="ae-editor-FormulaControl-select-style"):ime?ome.placeholder=ime:ome.placeholder=i18n("e0c7ac5eb397512fdbe71600baa09dab")}return JSONPipeOut(ome),this.appLocale&&this.appCorpusData?translateSchema(ome,this.appCorpusData):ome},eme.prototype.getContextData=function(){var $P,tme,ame,nme,rme,ime=(ame=(tme=($P=this.props.data)===null||$P===void 0?void 0:$P.__super)===null||tme===void 0?void 0:tme.__props__)===null||ame===void 0?void 0:ame.data;if(!ime){var ome=(nme=this.props.node)===null||nme===void 0?void 0:nme.getComponent();!((rme=ome==null?void 0:ome.props)===null||rme===void 0)&&rme.data&&(ime=ome.props.data)}return ime},eme.prototype.closeMenuOuter=function(){this.setState({menuIsOpened:!1})},eme.prototype.closeQuickVariablesOuter=function(){this.setState({quickVariablesIsOpened:!1})},eme.prototype.renderMenuOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state.menuIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!ime,onRootClose:this.closeMenuOuter},function(ome){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),onClick:$P.closeMenuOuter,ref:ome},React__default.createElement("li",{onClick:function(){return $P.setState({quickVariablesIsOpened:!0})}},"快捷变量"),React__default.createElement("li",{onClick:$P.handleFormulaClick},"函数计算"))})))},eme.prototype.renderQuickVariablesOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state,ome=ime.quickVariables,lme=ime.quickVariablesIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!lme,onRootClose:this.closeQuickVariablesOuter},function(sme){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),ref:sme},React__default.createElement(VariableList$1,{className:nme("FormulaEditor-VariableList","FormulaEditor-VariableList-root"),data:ome,onSelect:$P.handleQuickVariableSelect,popOverContainer:ame,simplifyMemberOprs:!0}))})))},eme.prototype.handleQuickVariableSelect=function($P){var tme=this;this.handleInputChange("${"+$P.value+"}"),this.closeQuickVariablesOuter(),requestAnimationFrame(function(){var ame,nme;(nme=(ame=tme.editorPlugin)===null||ame===void 0?void 0:ame.autoMark)===null||nme===void 0||nme.call(ame)})},eme.prototype.renderButton=function(){var $P,tme=this,ame=this.props,nme=ame.loading,rme=ame.quickVariables,ime=ame.simple,ome=ame.value,lme=this.state,sme=lme.menuIsOpened,cme=lme.quickVariablesIsOpened,dme=isExpression(ome),ume=!ime&&(dme||this.hasDateShortcutkey(ome));return React__default.createElement("div",{className:"ae-editor-FormulaControl-buttonWrapper",ref:this.menuRef},rme?React__default.createElement(Button$1,{className:"ae-editor-FormulaControl-button",size:"sm",onClick:function(){return tme.setState({menuIsOpened:!0})}},React__default.createElement(Icon$1,{icon:"add",className:cx$1("ae-TplFormulaControl-icon","icon")})):React__default.createElement(Button$1,{className:"ae-editor-FormulaControl-button",size:"sm",tooltip:{enterable:!1,content:i18n("303efd5ba79e639001b4328cd266dddc"),tooltipTheme:"dark",placement:"left",mouseLeaveDelay:0},onClick:this.handleFormulaClick,loading:nme},React__default.createElement(Icon$1,{icon:"input-fx",className:cx$1("ae-editor-FormulaControl-icon","icon",($P={},$P["is-filled"]=!!ume,$P))})),sme?this.renderMenuOuter():null,cme?this.renderQuickVariablesOuter():null)},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.className;ame.label;var rme=ame.value,ime=ame.header,ome=ame.placeholder,lme=ame.simple,sme=ame.rendererWrapper,cme=ame.manager,dme=ame.useExternalFormData,ume=dme===void 0?!1:dme,fme=ame.customFormulaPicker,pme=ame.clearable,hme=pme===void 0?!0:pme,bme=ame.simplifyMemberOprs,mme=ame.render,vme=__rest$14(ame,["className","label","value","header","placeholder","simple","rendererWrapper","manager","useExternalFormData","customFormulaPicker","clearable","simplifyMemberOprs","render"]),gme=this.state,yme=gme.formulaPickerOpen,_me=gme.variables,$me=gme.variableMode;gme.loading;var Cme=eme.getRendererSchemaFromProps(this.props),Sme=isExpression(rme),Eme=!1;Sme&&(Cme!=null&&Cme.name)&&(Eme=Cme!=null&&Cme.name?this.isLoopExpression(rme,Cme==null?void 0:Cme.name):!1);var xme=this.transExpr(rme),Tme=Eme,Ome=fme??FormulaPicker,Rme=isExpression(rme)?xme:this.hasDateShortcutkey(rme)?rme:void 0,Nme=!lme&&(Sme||this.hasDateShortcutkey(rme));return React__default.createElement("div",{className:cx$1("ae-editor-FormulaControl",Tme?"is-has-tooltip":"",nme),ref:this.wrapRef},!lme&&!Sme&&!this.hasDateShortcutkey(rme)&&!Cme&&React__default.createElement(InputBox$1,{className:"ae-editor-FormulaControl-input",value:this.inReplaceExpression(rme),clearable:!0,placeholder:ome??i18n("e0c7ac5eb397512fdbe71600baa09dab"),onChange:this.handleSimpleInputChange}),!lme&&!Sme&&!this.hasDateShortcutkey(rme)&&Cme&&React__default.createElement("div",{className:cx$1("ae-editor-FormulaControl-custom-renderer",sme?"border-wrapper":"")},mme("inner",this.filterCustomRendererProps(Cme),{inputOnly:!0,value:this.inReplaceExpression(rme),data:ume?__assign$3({},this.props.data):{},onChange:this.handleSimpleInputChange,manager:cme})),Nme&&React__default.createElement(TooltipWrapper$1,{trigger:"hover",placement:"left",style:{fontSize:"12px"},tooltip:{tooltipTheme:"dark",mouseLeaveDelay:20,content:xme,tooltipClassName:"btn-configured-tooltip",children:function(){return React__default.createElement(CodeEditor$1,{readOnly:!0,value:xme,variables:_me,evalMode:!0,editorTheme:"dark",highlightMode:"expression",editorOptions:{lineNumbers:!1}})}}},React__default.createElement(InputBox$1,{className:cx$1("ae-editor-FormulaControl-ResultBox"),onClick:this.handleFormulaClick,hasError:Tme,inputRender:function(Ime){var Pme=Ime.value,Mme=Ime.onChange;Ime.onFocus;var kme=Ime.onBlur;return React__default.createElement("div",{className:cx$1("ae-editor-FormulaControl-ResultBox-wrapper")},React__default.createElement(CodeMirrorEditor,{className:"ae-editor-FormulaControl-ResultBox-editor",value:Pme,onChange:Mme,editorFactory:$P.editorFactory,editorDidMount:$P.handleEditorMounted,onBlur:kme}),!$P.props.value&&React__default.createElement("div",{className:"ae-TplFormulaControl-placeholder"},ome),hme&&$P.props.value&&React__default.createElement(Icon$1,{icon:"input-clear",className:"input-clear-icon",iconContent:"InputText-clear",onClick:function(){return $P.handleInputChange("")}}))},value:rme,onChange:this.handleInputChange})),this.renderButton(),Tme&&React__default.createElement("div",{className:"desc-msg error-msg"},i18n(Eme?"7d92f998d24da41b58db140b1864f773":"b5cc1cd60cd694f45142dc52a5bf53fc")),yme?React__default.createElement(Ome,__assign$3({},this.props,{value:Rme,initable:!0,header:ime,variables:_me,variableMode:(tme=vme.variableMode)!==null&&tme!==void 0?tme:$me,evalMode:!0,onClose:this.closeFormulaPicker,onConfirm:this.handleConfirm,simplifyMemberOprs:bme})):null)},eme.defaultProps={simple:!1,rendererWrapper:!1,DateTimeType:FormulaDateType.NotDate,requiredDataPropsVariables:!1},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLDivElement]),__metadata("design:returntype",void 0)],eme.prototype,"menuRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"filterQuickVariablesByType",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorFactory",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditorMounted",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Object)],eme.prototype,"outReplaceExpression",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Object)],eme.prototype,"inReplaceExpression",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",Boolean)],eme.prototype,"isLoopExpression",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",Boolean)],eme.prototype,"hasDateShortcutkey",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"transExpr",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"beforeFormulaEditorOpen",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleFormulaClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeFormulaPicker",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"filterCustomRendererProps",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getContextData",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeMenuOuter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeQuickVariablesOuter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderMenuOuter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderQuickVariablesOuter",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleQuickVariableSelect",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderButton",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-formulaControl",shouldComponentUpdate:function($P,tme){var ame=FormulaControl.getRendererSchemaFromProps($P),nme=FormulaControl.getRendererSchemaFromProps(tme);return isObjectShallowModified$1(ame,nme)}})],eme),eme})(FormulaControl);function baseReduce$1(x_,eme,$P,tme,ame){return ame(x_,function(nme,rme,ime){$P=tme?(tme=!1,nme):eme($P,nme,rme,ime)}),$P}var _baseReduce=baseReduce$1,arrayReduce=_arrayReduce,baseEach$1=_baseEach,baseIteratee$3=_baseIteratee,baseReduce=_baseReduce,isArray$1=isArray_1;function reduce(x_,eme,$P){var tme=isArray$1(x_)?arrayReduce:baseReduce,ame=arguments.length<3;return tme(x_,baseIteratee$3(eme),$P,ame,baseEach$1)}var reduce_1=reduce;const reduce$1=getDefaultExportFromCjs(reduce_1);setSchemaTpl("switch",{type:"switch",mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline "});setSchemaTpl("divider",{type:"divider",className:"mx-0"});setSchemaTpl("withUnit",function(x_){return{type:"input-group",name:x_.name,label:x_.label,body:[x_.control,{type:"tpl",addOnclassName:"border-0 bg-none",tpl:x_.unit}]}});setSchemaTpl("formItemName",{label:i18n("d314558953b3c76adb7e131aaec8bd86"),name:"name",type:"ae-DataBindingControl",onBindingChange:function(x_,eme){var $P;eme((($P=x_.resolveEditSchema)===null||$P===void 0?void 0:$P.call(x_))||{label:x_.label})}});setSchemaTpl("formItemExtraName",getSchemaTpl("formItemName",{required:!1,label:tipedLabel(i18n("3ac7b489ba8cb811386c9f4fbfd1c6cc"),i18n("9da561f34a93e0275c56b84717ac9cf0")),name:"extraName"}));setSchemaTpl("formItemMode",function(x_){var eme;return{label:i18n("5aefca559c5a41d10078e21e6d616825"),name:"mode",type:"select",pipeIn:defaultValue((eme=x_==null?void 0:x_.defaultValue)!==null&&eme!==void 0?eme:""),options:[{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"},{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"normal"},!(x_!=null&&x_.isForm)&&{label:i18n("2dde3029c4170a1c8e961a90766e0194"),value:""},(x_==null?void 0:x_.isForm)&&{label:"网格",value:"flex"}].filter(function($P){return $P}),pipeOut:function($P){return $P||void 0}}});setSchemaTpl("formulaControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-formulaControl",variableMode:"tree"},x_)});setSchemaTpl("expressionFormulaControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-expressionFormulaControl",variableMode:"tree"},x_)});setSchemaTpl("conditionFormulaControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-conditionFormulaControl"},x_)});setSchemaTpl("textareaFormulaControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-textareaFormulaControl",variableMode:"tree"},x_)});setSchemaTpl("tplFormulaControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-tplFormulaControl",variableMode:"tree"},x_)});setSchemaTpl("DataPickerControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-DataPickerControl"},x_)});setSchemaTpl("formItemInline",{type:"switch",label:i18n("66670400b1f3e4b6c94cff171d441585"),name:"inline",visibleOn:'this.mode != "inline"',inputClassName:"is-inline",pipeIn:defaultValue(!1)});setSchemaTpl("formItemSize",{name:"size",label:i18n("21a1d138166d5d92276d126cf1d6ecac"),type:"select",pipeIn:defaultValue("full"),options:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("4a12e9b9fc5443e5e9999b5a7c56c19a"),value:"full"}]});setSchemaTpl("minLength",{name:"minLength",type:"input-number",label:i18n("e9cbda74a1ffc06228fca68e4d16c4dd")});setSchemaTpl("maxLength",{name:"maxLength",type:"input-number",label:i18n("3baaa61e619e32fc36eff14839b1a63f")});setSchemaTpl("label",{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),name:"label",type:"input-text",pipeIn:function(x_){return x_===!1?"":x_}});setSchemaTpl("btnLabel",{type:"input-text",name:"btnLabel",label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),value:i18n("481e034e6026969aae4ce7ce7c8a7b6f")});setSchemaTpl("labelHide",function(){return getSchemaTpl("switch",{name:"label",label:tipedLabel(i18n("4e9ce9dfe13d97031d228fc5ae229f0d"),i18n("e2773277c7765d4590f7128423c58cee")),pipeIn:function(x_){return x_===!1},pipeOut:function(x_){return x_===!0?!1:""},visibleOn:'this.__props__ && this.__props__.formMode === "horizontal" || this.mode === "horizontal"'})});setSchemaTpl("theme:labelHide",function(){return getSchemaTpl("switch",{name:"__label",label:i18n("4e9ce9dfe13d97031d228fc5ae229f0d"),value:"${label === false}",onChange:function(x_,eme,$P,tme){x_?(tme.setValueByName("$$tempLabel",tme.getValueByName("label")||$P.label),tme.setValueByName("label",!1)):tme.setValueByName("label",tme.getValueByName("$$tempLabel")||$P.$$tempLabel||"")}})});setSchemaTpl("placeholder",{label:i18n("940b12c19fcf7aced0cdd164edc9acbc"),name:"placeholder",type:"input-text",placeholder:i18n("cc572c07586f4ea0c5b9b1060eb777f2")});setSchemaTpl("startPlaceholder",{type:"input-text",name:"startPlaceholder",label:i18n("2f92fc7bf6ef3dd57c514d0797fe2f1e"),pipeIn:defaultValue(i18n("592c59589144ddc68d05d528da17dcdc"))});setSchemaTpl("endPlaceholder",{type:"input-text",name:"endPlaceholder",label:i18n("a04c4894d83323d187f65cc357fa646e"),pipeIn:defaultValue(i18n("f782779e8b5d709462c8e71e0d9019f2"))});setSchemaTpl("tabs",function(x_){return{type:"tabs",tabsMode:"line",className:"editor-prop-config-tabs",linksClassName:"editor-prop-config-tabs-links aa",contentClassName:"no-border editor-prop-config-tabs-cont hoverShowScrollBar",tabs:x_.filter(function(eme){return eme}).map(function(eme){var $P,tme=__assign$3(__assign$3({},eme),{body:Array.isArray(eme.body)?flatten$4(eme.body):[eme.body]});return(($P=tme.body[0])===null||$P===void 0?void 0:$P.type)==="collapse-group"&&(tme.className=(tme.className||"")+" p-none"),tme})}});setSchemaTpl("collapse",function(x_){return{type:"wrapper",className:"editor-prop-config-collapse",body:x_.filter(function(eme){return eme}).map(function(eme){return __assign$3(__assign$3({type:"collapse",headingClassName:"editor-prop-config-head",bodyClassName:"editor-prop-config-body"},eme),{body:flatten$4(eme.body)})})}});setSchemaTpl("fieldSet",function(x_){return __assign$3(__assign$3({collapsable:!0,collapsed:!1},x_),{type:"fieldset",title:x_.title,body:flatten$4(x_.body.filter(function(eme){return eme}))})});setSchemaTpl("collapseGroup",function(x_){var eme=x_.filter(function($P){return $P&&Array.isArray($P==null?void 0:$P.body)&&($P==null?void 0:$P.body.length)>0}).map(function($P){var tme;return __assign$3(__assign$3({type:"collapse",headingClassName:"ae-formItemControl-header ae-Collapse-header",bodyClassName:"ae-formItemControl-body"},$P),{collapsed:(tme=$P.collapsed)!==null&&tme!==void 0?tme:!1,key:$P.title,body:flatten$4($P.body)})});return{type:"collapse-group",activeKey:eme.filter(function($P){return $P&&!$P.collapsed}).map(function($P){return $P.title}),expandIconPosition:"right",expandIcon:{type:"icon",icon:"chevron-right"},className:"ae-formItemControl ae-styleControl",body:eme}});setSchemaTpl("clearable",{type:"switch",label:i18n("09bbfb387dce6201df1ccef2aab161a6"),name:"clearable",inputClassName:"is-inline"});setSchemaTpl("hint",{label:i18n("8528426e54902956723f322bdbbcfafc"),type:"input-text",name:"hint",description:i18n("dc5dbe7a1b1ff5cae22ffbb636bc6380")});setSchemaTpl("icon",{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),type:"icon-picker",name:"icon",placeholder:i18n("b7dee01f2d085d90c47bcb8b490d9055"),clearable:!0,description:""});setSchemaTpl("valueFormula",function(x_){var eme=x_||{},$P=eme.rendererSchema,tme=eme.useSelectMode,ame=eme.mode,nme=eme.visibleOn,rme=eme.label,ime=eme.name,ome=eme.rendererWrapper,lme=eme.needDeleteProps,sme=eme.valueType,cme=eme.header,dme=eme.placeholder,ume=eme.DateTimeType,fme=eme.variables,pme=eme.requiredDataPropsVariables,hme=eme.variableMode,bme=__rest$14(eme,["rendererSchema","useSelectMode","mode","visibleOn","label","name","rendererWrapper","needDeleteProps","valueType","header","placeholder","DateTimeType","variables","requiredDataPropsVariables","variableMode"]),mme=$P;return tme&&mme&&(typeof mme=="function"?mme=function(vme){return __assign$3(__assign$3({},$P(vme)),{type:"select"})}:mme.options&&(mme=__assign$3(__assign$3({},mme),{type:"select"}))),{type:"group",mode:ame==="vertical"?"vertical":"horizontal",visibleOn:nme,className:x_==null?void 0:x_.className,body:[getSchemaTpl("formulaControl",__assign$3({label:rme??i18n("225f3ed00750ae78ad1e6ea42c8f5087"),name:ime||"value",rendererWrapper:ome,needDeleteProps:lme,valueType:sme,header:cme,placeholder:dme,rendererSchema:mme,variables:fme,requiredDataPropsVariables:pme,variableMode:hme,DateTimeType:ume??FormulaDateType.NotDate},bme))]}});setSchemaTpl("inputType",{label:i18n("b3e55578af5dd473bab62641bb2f5f8e"),name:"type",type:"select",creatable:!1,options:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"input-text"},{label:i18n("a8105204604a0b11e916f3879aae3b0b"),value:"input-password"},{label:i18n("3bc5e602b2d4c7fffe79258e2ac6952e"),value:"input-email"},{label:"URL",value:"input-url"}]});setSchemaTpl("selectDateType",{label:i18n("16084784a0f126b501e96994c792d411"),name:"type",type:"select",creatable:!1,options:[{label:i18n("4ff1e74e43a3586339251494117185ad"),value:"input-date"},{label:i18n("0c3bf4fce50589b1073baf15f8a00d36"),value:"input-datetime"},{label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),value:"input-time"},{label:i18n("8190915888889ed18be44ea0351d0448"),value:"input-month"},{label:i18n("a483bccf85587055ab31314ad1d2f82a"),value:"input-quarter"},{label:i18n("8f30e9f8678c24496921bebae6ca2ac6"),value:"input-year"}]});setSchemaTpl("selectDateRangeType",{label:i18n("16084784a0f126b501e96994c792d411"),name:"type",type:"select",creatable:!1,options:[{label:i18n("4ff1e74e43a3586339251494117185ad"),value:"input-date-range"},{label:i18n("0c3bf4fce50589b1073baf15f8a00d36"),value:"input-datetime-range"},{label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),value:"input-time-range"},{label:i18n("8190915888889ed18be44ea0351d0448"),value:"input-month-range"},{label:i18n("a483bccf85587055ab31314ad1d2f82a"),value:"input-quarter-range"},{label:i18n("8f30e9f8678c24496921bebae6ca2ac6"),value:"input-year-range"}]});setSchemaTpl("optionsMenuTpl",function(x_){var eme=x_.manager,$P=__rest$14(x_,["manager"]);function tme(ame){var nme=eme.store.valueWithoutHiddenProps,rme=[];if(nme.labelField&&rme.push({label:i18n("7e9c83e86beb612377a94e6e8d1fc644"),value:nme.labelField,tag:typeof nme.labelField}),nme.valueField&&rme.push({label:i18n("2e01f5f5889e33d003bec7857cd38445"),value:nme.valueField,tag:typeof nme.valueField}),nme.options){var ime=reduce$1(nme.options,function(sme,cme){return __assign$3(__assign$3({},sme),cme)},{});ime==null||delete ime.$$id,ime=omit$1(ime,map$2(rme,function(sme){return sme==null?void 0:sme.label}));var ome=map$2(keys$c(ime),function(sme){return{label:sme==="label"?i18n("891ec6336d4243714c25eecb2f8f774a"):sme==="value"?i18n("684a0d1aeca4e9acff89221b57826d4d"):sme,value:sme,tag:typeof ime[sme]}});rme.push.apply(rme,__spreadArray([],__read$3(ome),!1))}var lme=[{label:i18n("fb7ea2b05ca7328ee16a562d90c2eb96"),children:rme}];return lme}return getSchemaTpl("textareaFormulaControl",__assign$3({mode:"normal",label:tipedLabel(i18n("1ca87f0171481e27d94e81b477150b7d"),i18n("d6ecb32a380c91887a9346653c2427e9")),name:"menuTpl",variables:tme,requiredDataPropsVariables:!0},$P))});setSchemaTpl("sourceBindControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-formulaControl",name:"source",label:i18n("0d83078816aa273f2941c9b55ec82bf3"),variableMode:"tree",inputMode:"input-group",placeholder:i18n("052f7eec7ca35a6b4d72d169ee1de494"),requiredDataPropsVariables:!0},x_)});setSchemaTpl("menuTpl",function(){return getSchemaTpl("textareaFormulaControl",{mode:"normal",label:tipedLabel(i18n("59cf15fe6b8d659c9bd2f86143534a06"),i18n("d6ecb32a380c91887a9346653c2427e9")),name:"menuTpl"})});setSchemaTpl("expression",{type:"input-text",description:i18n("b18ec08df2e47313bcc93430e7a25fd3")});setSchemaTpl("size",{label:i18n("b3b97a293baac13db6367aba5539a09c"),type:"button-group-select",name:"size",clearable:!0,options:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"}]});setSchemaTpl("name",{label:tipedLabel(i18n("689fad203a167d542c12bdc46f27e921"),i18n("6c1e18fd4cb57288a9f43603d5167292")),name:"name",type:"input-text",placeholder:i18n("ae344073ea6ca9ce742899cdf6d3e106")});setSchemaTpl("reload",{name:"reload",asFormItem:!0,component:InputComponentName,label:tipedLabel(i18n("fa9a0a79f29fef72e3060ea1af93c305"),i18n("1a1ff1e1149a0cd1b39c0b231a334d04")),placeholder:i18n("4fe2f10c6d5bedac03f40a4362e4f69b"),mode:"horizontal",horizontal:{left:4,justify:!0}});setSchemaTpl("className",function(x_){return __assign$3(__assign$3({type:"ae-classname",name:"className"},x_||{}),{label:tipedLabel((x_==null?void 0:x_.label)||i18n("4434b33a8731a73613ba5fa1eb984efb"),i18n("7080fa6e0ca1d7e24f6f8cac05077a3a"))})});setSchemaTpl("onlyClassNameTab",function(x_){return x_===void 0&&(x_=i18n("5e5d3f13111593b2710673006d4c8297")),{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:x_})]}])}});setSchemaTpl("combo-container",function(x_){var eme,$P;if(isObject(x_)){var tme=void 0,ame=void 0;return["input-kv","combo"].includes(x_.type)&&(tme="ae-Combo-items "+((eme=x_.itemsWrapperClassName)!==null&&eme!==void 0?eme:""),ame="ae-Combo-item "+(($P=x_.itemClassName)!==null&&$P!==void 0?$P:"")),__assign$3(__assign$3(__assign$3({},x_),tme?{itemsWrapperClassName:tme}:{}),ame?{itemClassName:ame}:{})}return x_});setSchemaTpl("pageData",getSchemaTpl("combo-container",{type:"input-kv",mode:"normal",name:"data",label:i18n("c70638412c6cffd150117ae403dea939")}));setSchemaTpl("status",function(x_){return{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("visible"),getSchemaTpl("hidden"),x_!=null&&x_.isFormItem?getSchemaTpl("clearValueOnHidden"):null,!(x_!=null&&x_.unsupportStatic)&&(x_!=null&&x_.isFormItem)?getSchemaTpl("static"):null,x_!=null&&x_.readonly?getSchemaTpl("readonly"):null,x_!=null&&x_.disabled||x_!=null&&x_.isFormItem?getSchemaTpl("disabled"):null].filter(Boolean)}});setSchemaTpl("autoFill",{type:"input-kv",name:"autoFill",label:tipedLabel(i18n("3bce1a6217990c8dc087d254f1fe754a"),i18n("f01553e415ca33cc89d0bca84023f4b5"))});setSchemaTpl("autoFillApi",{type:"input-kv",name:"autoFill",label:tipedLabel(i18n("89bc2a21c778b36d09c8d795aac8260e"),i18n("666352a09304cba42de24312f509c3b4"))});setSchemaTpl("required",{type:"switch",name:"required",label:i18n("04d815a5d4b803d6bb956d2da5a82688"),mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline "});setSchemaTpl("description",{name:"description",type:"textarea",label:tipedLabel(i18n("3bdd08adab6ea90b9164b20a0e4151ac"),i18n("a1b6281dc554ac84a3e6062f812fe50d")),maxRows:2,pipeIn:function(x_,eme){return x_||eme.desc||""}});setSchemaTpl("disabled",{type:"ae-StatusControl",label:i18n("710ad08b11419332713360d2750cd707"),mode:"normal",name:"disabled",expressionName:"disabledOn"});setSchemaTpl("readonly",{type:"ae-StatusControl",label:i18n("85541bd9f7f39a6e6d9d26cbe09cbdd4"),mode:"normal",name:"readOnly",expressionName:"readOnlyOn"});setSchemaTpl("visible",{type:"ae-StatusControl",defaultTrue:!0,label:i18n("4d681c4aa93c8d005ec2ca2370618d6e"),mode:"normal",name:"visible",expressionName:"visibleOn"});setSchemaTpl("static",{type:"ae-StatusControl",label:i18n("04f5f12c49c2a6fdc43da049591328ad"),mode:"normal",name:"static",expressionName:"staticOn"});setSchemaTpl("hidden",{type:"ae-StatusControl",label:i18n("dce5379cb978a8259ecfca8f08f00817"),mode:"normal",name:"hidden",expressionName:"hiddenOn"});setSchemaTpl("maximum",{type:"input-number",label:i18n("5da893141114a59da868052b3a17a79a")});setSchemaTpl("minimum",{type:"input-number",label:i18n("c322edb884724d04842fc35f4d29a24e")});setSchemaTpl("switchDefaultValue",{type:"switch",label:i18n("5d0595edc3d14aec24efef85534e4314"),name:"value",pipeIn:function(x_){return typeof x_<"u"},pipeOut:function(x_,eme,$P){return x_?"":void 0},labelRemark:{trigger:["hover","focus"],setting:!0,title:"",content:i18n("495333d64fc1efafd6c40bc9a3929fee")}});setSchemaTpl("numberSwitchDefaultValue",{type:"switch",label:tipedLabel(i18n("5d0595edc3d14aec24efef85534e4314"),i18n("495333d64fc1efafd6c40bc9a3929fee")),name:"value",pipeIn:function(x_){return typeof x_<"u"},pipeOut:function(x_,eme,$P){return x_?"":void 0}});setSchemaTpl("kilobitSeparator",{type:"switch",label:i18n("530c4483c7e52dc409509b755eabee11"),name:"kilobitSeparator",inputClassName:"is-inline"});setSchemaTpl("imageUrl",{type:"input-text",label:i18n("20def7942674282277c3714ed7ea6ce0")});setSchemaTpl("backgroundImageUrl",{type:"input-text",label:i18n("090dbd614a66a56a5eadec87f59ea15c")});setSchemaTpl("audioUrl",{type:"input-text",label:i18n("f8f176147db276063e7ec15f076e39e0"),name:"src",description:i18n("91d3cd46d6b6919749e56056d5acc9bc")});setSchemaTpl("fileUrl",{type:"input-text",label:i18n("2a0c4740f156a9536049f4610da25400")});setSchemaTpl("markdownBody",{name:"value",type:"editor",language:"markdown",size:"xxl",label:i18n("4fa2ae7d726dc395cfea70ff3d7256d2"),options:{lineNumbers:"off"}});setSchemaTpl("richText",{label:i18n("e2591e971f4c28db7c80a5f546084a1d"),type:"input-rich-text",buttons:["paragraphFormat","quote","textColor","backgroundColor","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertTable","|","undo","redo","fullscreen"],name:"html",description:i18n("0861915dbac25ccb573b3bb72ffeebd7"),size:"lg"});setSchemaTpl("showCounter",{type:"switch",label:i18n("52f43ce846b2bf73f86195cf196fe578"),name:"showCounter",inputClassName:"is-inline"});setSchemaTpl("borderMode",{name:"borderMode",label:i18n("961534b4ea37e4e88aada736b299d063"),type:"button-group-select",inputClassName:"is-inline",horizontal:{left:2,justify:!0},options:[{label:i18n("b9245d69d2d82b0081ced47a18c27f41"),value:"full"},{label:i18n("8f9b1b7e38cd2ed16f22807417ab3573"),value:"half"},{label:i18n("7fc7940b4f7f58b49c71bf9e237b633e"),value:"none"}],pipeIn:defaultValue("full")});setSchemaTpl("searchable",function(x_){return x_===void 0&&(x_={}),getSchemaTpl("switch",__assign$3({label:i18n("dbdae74eb12668e2b9568b013bf27d45"),name:"searchable"},x_))});setSchemaTpl("sortable",function(x_){return x_===void 0&&(x_={}),getSchemaTpl("switch",__assign$3({label:i18n("b4521626a48dcb61001fc563d2433ed3"),name:"sortable"},x_))});setSchemaTpl("onlyLeaf",{type:"switch",label:tipedLabel(i18n("6fdccea6068e0698c565acd92052a86e"),i18n("a80c61384a8459ef7bfb5082a2b54b5f")),horizontal:{left:5,justify:!0},name:"onlyLeaf",value:!1,inputClassName:"is-inline"});setSchemaTpl("clearValueOnHidden",function(){return getSchemaTpl("switch",{type:"switch",horizontal:{left:8,justify:!0},label:tipedLabel(i18n("71758057056e7f31d73e3f3ac8860b4f"),i18n("ce641d8297471a5d65c46cdfb023097c")),name:"clearValueOnHidden"})});setSchemaTpl("utc",{type:"switch",label:tipedLabel(i18n("3e719b87b9ee71d4613caefbf2fd1074"),i18n("d52e57147787797ae0153d43bf8be298")),name:"utc",inputClassName:"is-inline"});setSchemaTpl("embed",{type:"switch",label:i18n("339b9ebd91070de050b4bfe483aa4474"),name:"embed"});setSchemaTpl("buttonLevel",{label:i18n("ac3880323853de9adc4f66bc06d438ff"),type:"select",name:"level",menuTpl:{type:"container",bodyClassName:"ae-ButtonLevel-MenuTpl",body:{type:"button",label:"${label}",size:"sm",level:"${value}"}},options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default",level:"default"},{label:i18n("bfe68d5844f8e54602760e18f45954f7"),value:"link",level:"link"},{label:i18n("fbae87bcc352f6933541fb77a07418ed"),value:"primary",level:"primary"},{label:i18n("49a79f4047b81186c069ed1c9c151c66"),value:"light",level:"light"},{label:i18n("41e8e8b9935c9ee4e88b06643a2d5b81"),value:"dark",level:"dark"},{label:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),value:"info",level:"info"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"success",level:"success"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"warning",level:"warning"},{label:i18n("e2e27a87257599f83c817c43e724b6aa"),value:"danger",level:"danger"},{label:i18n("bde770827b9137ddb3eb676878af9709"),value:"secondary",level:"secondary"},{label:i18n("3d7443aeba7c8eaf1cbb42ad5232fa10"),value:"enhance",level:"enhance"}],pipeIn:defaultValue("default")});setSchemaTpl("uploadType",{label:i18n("b1ea078db7298ea7872d894283378507"),name:"uploadType",type:"select",value:"fileReceptor",options:[{label:i18n("1e4dc4d5f4a3a95ddc349147d4d8cd39"),value:"fileReceptor"},{label:i18n("74cef1162781310e1503d2dc463a76fc"),value:"bos"}]});setSchemaTpl("bos",{label:i18n("38fbc7fb70b4399d7e4050d3cbcdf229"),type:"select",name:"bos",value:"default",options:[{label:i18n("e5d59ccec2caa64ca83b7cc740645928"),value:"default"}]});setSchemaTpl("badge",{label:i18n("b8c467fce096a649583c0bc9d9281a5c"),name:"badge",type:"ae-badge"});setSchemaTpl("nav-badge",{label:i18n("b8c467fce096a649583c0bc9d9281a5c"),name:"badge",type:"ae-nav-badge"});setSchemaTpl("nav-default-active",{type:"ae-nav-default-active"});setSchemaTpl("dateShortCutControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-DateShortCutControl",name:"shortcuts"},x_)});setSchemaTpl("eventControl",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"ae-eventControl",mode:"normal"},x_)});setSchemaTpl("data",{type:"input-kv",name:"data",label:i18n("c70638412c6cffd150117ae403dea939")});setSchemaTpl("app-page",{type:"nested-select",label:i18n("a4895ee2e87d1c47b734dbcf1a535aeb"),name:"link",mode:"horizontal",size:"lg",required:!0,options:[]});setSchemaTpl("app-page-args",{type:"combo",name:"params",label:i18n("0b72392143e4038e98128cb0f6f679b3"),multiple:!0,removable:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,size:"lg",mode:"horizontal",items:[{name:"key",type:"input-text",placeholder:i18n("c068b579db3bf0a553bd0af4f81cc14f"),source:"${__pageInputSchema}",labelField:"label",valueField:"value",required:!0},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",placeholder:i18n("bfed4943c5f487de1b63a82f7230cce2")})]});setSchemaTpl("iconLink",function(x_){var eme=x_.name,$P=x_.visibleOn,tme=x_.label;return getSchemaTpl("icon",{name:eme,visibleOn:$P,label:tme??i18n("5ef69f62dc668c1a3e68b51c50a2530a"),placeholder:i18n("b7dee01f2d085d90c47bcb8b490d9055"),clearable:!0,description:""})});setSchemaTpl("virtualThreshold",{name:"virtualThreshold",type:"input-number",min:1,step:1,precision:0,label:tipedLabel(i18n("03bfb834c8a5fef58d885e448a4e13b4"),i18n("50437e080edc71ab624c93d419472919")),pipeOut:function(x_){return x_||void 0}});setSchemaTpl("virtualItemHeight",{name:"itemHeight",type:"input-number",min:1,step:1,precision:0,label:tipedLabel(i18n("02b9880e1d2df8a07e90e9878080c739"),i18n("a3f66655c3d2bcfecc6afba0e4424460")),pipeOut:function(x_){return x_||void 0}});setSchemaTpl("pageTitle",{label:i18n("8d6b5924f187048cfa28d6c21fa6d2d6"),name:"title",type:"input-text"});setSchemaTpl("pageSubTitle",{label:i18n("72cf373be86a38b29f6d2f15900b0da1"),name:"subTitle",type:"textarea"});setSchemaTpl("textareaDefaultValue",function(x_){return getSchemaTpl("textareaFormulaControl",__assign$3({label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),name:"value",mode:"normal"},x_))});setSchemaTpl("prefix",{type:"input-text",name:"prefix",label:tipedLabel(i18n("4c9bb42608b11278a5d9a2471b74eb40"),i18n("925d31bb30d63576600299475a910c33"))});setSchemaTpl("suffix",{type:"input-text",name:"suffix",label:tipedLabel(i18n("242d641eab57223af01fb29940a096ed"),i18n("42677544e2cbee28f7e7df216e685543"))});setSchemaTpl("unit",{type:"input-text",name:"unit",label:i18n("f2996845b6bf0a07fe26f74f35e42ebe"),value:""});setSchemaTpl("optionsTip",{type:"input-text",name:"optionsTip",label:i18n("9888468550779b1777260b8fafe6abc2"),value:i18n("a2cbb42e488dffe644bdb87c26afbc07")});setSchemaTpl("tableCellRemark",{name:"remark",label:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),type:"input-text",description:i18n("45882ddedb42c1a38462949750bc8a84")});setSchemaTpl("tableCellPlaceholder",{name:"placeholder",type:"input-text",label:i18n("4c1cff4d8c05daa6ed9352a241ee628c"),value:"-",description:i18n("ff88d5db9d61f14bce6e3397fd4652a5")});setSchemaTpl("title",{type:"input-text",name:"title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")});setSchemaTpl("caption",{type:"input-text",name:"caption",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")});setSchemaTpl("imageCaption",{type:"input-text",name:"imageCaption",label:i18n("098c3d959911b48b4d912cb85ccc4942")});setSchemaTpl("inputBody",{type:"input-text",name:"body",label:tipedLabel(i18n("2d711b09bd0db0ad240cc83b30dd8014"),i18n("5d809212900f3bc3ba122fe93638394d"))});setSchemaTpl("stepSubTitle",{type:"input-text",name:"subTitle",label:!1,placeholder:i18n("72cf373be86a38b29f6d2f15900b0da1")});setSchemaTpl("stepDescription",{type:"input-text",name:"description",label:!1,placeholder:i18n("3bdd08adab6ea90b9164b20a0e4151ac")});setSchemaTpl("taskNameLabel",{type:"input-text",name:"taskNameLabel",pipeIn:defaultValue(i18n("78caf7115c5140f8913c581920239f22")),label:i18n("24e3562a3262e80c3119f22b8f447f64")});setSchemaTpl("operationLabel",{type:"input-text",name:"operationLabel",pipeIn:defaultValue(i18n("2b6bc0f293f5ca01b006206c2535ccbc")),label:i18n("cb8e07cea4df337bb6dcb8362b5f7e02")});setSchemaTpl("statusLabel",{type:"input-text",name:"statusLabel",pipeIn:defaultValue(i18n("3fea7ca76cdece641436d7ab0d02ab1b")),label:i18n("f2acd3adcc0a0d73b318c83a29a4d2a9")});setSchemaTpl("remarkLabel",{type:"input-text",name:"remarkLabel",pipeIn:defaultValue(i18n("8a4cf07caf84c91a87e8ff3c48a944b9")),label:i18n("0cbbb89050458c2bcf0ca98c19dc8864")});setSchemaTpl("inputArrayItem",{type:"input-text",placeholder:i18n("d7ec2d3fea4756bc1642e0f10c180cf5")});setSchemaTpl("actionPrevLabel",{type:"input-text",name:"actionPrevLabel",label:i18n("0f04a65952b58cbbc5ca6cba868c3bec"),pipeIn:defaultValue(i18n("eeb6908870e058bc23d52c1e405a054e"))});setSchemaTpl("actionNextLabel",{type:"input-text",name:"actionNextLabel",label:i18n("e54827ae56fcb690d879b9cdd29f0ac7"),pipeIn:defaultValue(i18n("38ce27d84639f3a6e07c00b3b4995c0e"))});setSchemaTpl("actionNextSaveLabel",{type:"input-text",name:"actionNextSaveLabel",label:i18n("abb7ba84b95c6c90341ac9c883fbc85b"),pipeIn:defaultValue(i18n("bed196af058f458def957031f88abd09"))});setSchemaTpl("actionFinishLabel",{type:"input-text",name:"actionFinishLabel",label:i18n("81b522590d543401ad15ae8a9155361d"),pipeIn:defaultValue(i18n("769d88e425e03120b83ee4ed6b9d588e"))});setSchemaTpl("imgCaption",{type:"textarea",name:"caption",label:i18n("098c3d959911b48b4d912cb85ccc4942")});setSchemaTpl("taskRemark",{type:"textarea",name:"remark",label:i18n("1d35dcbf191e36dcc6c15f71277d72ed")});setSchemaTpl("tooltip",{type:"textarea",name:"tooltip",label:i18n("6f2b01db04cbf7e460b5c6f4e37a5e76")});setSchemaTpl("anchorTitle",{type:"input-text",name:"title",required:!0,placeholder:i18n("8cfd149e7d73ebae6a797d21728292ff")});setSchemaTpl("avatarText",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"text",type:"input-text",pipeOut:function(x_){return x_===""?void 0:x_},visibleOn:'this.showtype === "text"'});setSchemaTpl("cardTitle",{name:"header.title",type:"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),description:i18n("00a1f644f34b9ee43adf82cb3449158c")});setSchemaTpl("cardSubTitle",{name:"header.subTitle",type:"input-text",label:i18n("72cf373be86a38b29f6d2f15900b0da1"),description:i18n("00a1f644f34b9ee43adf82cb3449158c")});setSchemaTpl("cardsPlaceholder",{name:"placeholder",value:i18n("21efd88b67a39834582ad99aabb9dc60"),type:"input-text",label:i18n("35ba83e053cef95e55dfffde279822b5")});setSchemaTpl("cardDesc",{name:"header.desc",type:"textarea",label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),description:i18n("00a1f644f34b9ee43adf82cb3449158c")});setSchemaTpl("imageTitle",{type:"input-text",label:i18n("c6c7456d446d62a906c2809b6ba19ce1"),name:"title",visibleOn:'this.type == "image"'});setSchemaTpl("imageDesc",{type:"textarea",label:i18n("098c3d959911b48b4d912cb85ccc4942"),name:"description",visibleOn:'this.type == "image"'});setSchemaTpl("fetchSuccess",{label:i18n("fb24383a41f23196349548b5d0cb98ce"),type:"input-text",name:"fetchSuccess"});setSchemaTpl("fetchFailed",{label:i18n("62e3e15c8fb9038f2780329bc26e8bab"),type:"input-text",name:"fetchFailed"});setSchemaTpl("saveOrderSuccess",{label:i18n("c62a1b7f314be10aead10475e7543f6a"),type:"input-text",name:"saveOrderSuccess"});setSchemaTpl("saveOrderFailed",{label:i18n("c8035507b7a576d43e9f227c91c7a7b5"),type:"input-text",name:"saveOrderFailed"});setSchemaTpl("quickSaveSuccess",{label:i18n("7cb0932b806559be232d2a69453224e7"),type:"input-text",name:"quickSaveSuccess"});setSchemaTpl("quickSaveFailed",{label:i18n("fd79a193a487b8c9d5a302d0d88c1c2c"),type:"input-text",name:"quickSaveFailed"});setSchemaTpl("saveSuccess",{label:i18n("b66ef8966dad62d377bc5310d8b88e7f"),name:"saveSuccess",type:"input-text"});setSchemaTpl("saveFailed",{label:i18n("cf538bbe1fb431f9e2668da4d84cfadf"),name:"saveFailed",type:"input-text"});setSchemaTpl("validateFailed",{label:i18n("6509e435d66db2a105b2444b1d3d0db1"),name:"validateFailed",type:"input-text"});setSchemaTpl("tablePlaceholder",{name:"placeholder",pipeIn:defaultValue(i18n("21efd88b67a39834582ad99aabb9dc60")),type:"input-text",label:i18n("35ba83e053cef95e55dfffde279822b5")});setSchemaTpl("collapseOpenHeader",{name:"collapseHeader",label:tipedLabel(i18n("81d2b9f20fb2083c75a5b052b84e897a"),i18n("7349194c139069b32889101768aa7428")),type:"input-text"});setSchemaTpl("matrixColumnLabel",{type:"input-text",name:"label",placeholder:i18n("39886861ea5d8b526e0ac5ecc78d110c")});setSchemaTpl("matrixRowLabel",{type:"input-text",name:"label",placeholder:i18n("854af3c2cd9c275ac70fc5121ea4fb2e")});setSchemaTpl("matrixRowTitle",{name:"rowLabel",label:i18n("34ad26bd1fb448c7f2384252d856c02b"),type:"input-text"});setSchemaTpl("submitText",{name:"submitText",label:i18n("60ad7d0d170b973ab9cdb0b23e636704"),type:"input-text"});setSchemaTpl("tpl:btnLabel",{type:"tpl",tpl:'<span class="label label-success">${label}</span>',columnClassName:"p-t-xs"});setSchemaTpl("switchOption",{type:"input-text",name:"option",label:i18n("f411d0f1f925d9b48d8c1d451bd809b1")});setSchemaTpl("addOnLabel",{name:"label",label:i18n("ca746b1ff10193a3ce20878dec04a733"),type:"input-text"});setSchemaTpl("onText",{name:"onText",type:"input-text",label:i18n("c580bacf343343f04a1b551e46d02c4f")});setSchemaTpl("offText",{name:"offText",type:"input-text",label:i18n("9ff352ae39cdaeaa4fc54f83575eedc9")});setSchemaTpl("propertyTitle",{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:"input-text",name:"title"});setSchemaTpl("propertyLabel",{type:"input-text",mode:"inline",size:"sm",label:i18n("ae41a992ccceb36f83024f72531186ec"),name:"label"});setSchemaTpl("propertyContent",{type:"input-text",mode:"inline",size:"sm",label:i18n("52dff5b153bb5eaca33a008458ce0209"),name:"content"});setSchemaTpl("draggableTip",{type:"input-text",name:"draggableTip",label:tipedLabel(i18n("9b14c9051067bef2dd9a15683201dd18"),i18n("f41a714bc8b26dc27a93a07c44e329a8"))});setSchemaTpl("deleteConfirmText",{label:tipedLabel(i18n("0c15a924dc3bedefb79c958972bef2b9"),i18n("178bf4dd4b8d56370e2fc8275f9dc9e4")),name:"deleteConfirmText",type:"input-text",pipeIn:defaultValue(i18n("cb8f7758eb03574f9b8402659c0f02b2"))});setSchemaTpl("optionsLabel",{type:"input-text",name:"label",placeholder:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),required:!0});setSchemaTpl("anchorNavTitle",{name:"title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:"input-text",required:!0});setSchemaTpl("primaryField",{type:"input-text",name:"primaryField",label:tipedLabel(i18n("475cdfcaf614f2b69d88e1e34ba76079"),i18n("c28f86f11fc814ea5696af5aa9464cbe")),pipeIn:function(x_,eme){var $P,tme=($P=eme==null?void 0:eme.data)===null||$P===void 0?void 0:$P.rowSelection;return x_==null||typeof x_!="string"?tme&&(tme!=null&&tme.keyField)&&typeof tme.keyField=="string"?tme==null?void 0:tme.keyField:"id":x_}});setSchemaTpl("deferField",{label:tipedLabel(i18n("b5d9da39175bc5bdcd2cc7dddeaa232a"),i18n("31ff316f7b6aa169b2575a50e0342be0")),name:"deferField",type:"input-text",placeholder:i18n("37a3bfd0cf20cc17c53396a1077c0852")});setSchemaTpl("signBtn",function(x_){return{type:"flex",justify:"space-between",alignItems:"center",items:[{style:{color:"#5c5f66"},type:"tpl",tpl:x_.label},{type:"action",label:i18n("e366ccf1556c0672dcecba135ed5472e"),level:"link",actionType:"dialog",dialog:{title:i18n("e366ccf1556c0672dcecba135ed5472e"),body:{type:"form",body:[{name:x_.name,label:i18n("b5b57c711fd2d2309cc390a8b44d2b69"),type:"input-text"},getSchemaTpl("icon",{name:x_.icon,label:i18n("5ef69f62dc668c1a3e68b51c50a2530a")})]},actions:[{type:"submit",label:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),mergeData:!0,level:"primary"}]}}]}});setSchemaTpl("closable",{type:"ae-StatusControl",label:tipedLabel("可关闭选项卡","选项卡内优先级更高"),mode:"normal",name:"closable",expressionName:"closableOn"});setSchemaTpl("inputForbid",{type:"switch",label:"禁止输入",name:"inputForbid",inputClassName:"is-inline"});setSchemaTpl("button-manager",function(){return getSchemaTpl("combo-container",{type:"combo",label:i18n("66774850742a81e8b2393195290b7330"),name:"actions",mode:"normal",multiple:!0,addable:!0,draggable:!0,editable:!1,items:[{component:function(x_){return render$2(__assign$3(__assign$3({},x_.data),{onEvent:{},actionType:"",onClick:function(eme,$P){var tme,ame=window.editorStore,nme=(tme=ame.getSubEditorRef())===null||tme===void 0?void 0:tme.store;(nme||ame).setActiveIdByComponentId($P.id)}}))}}],addButtonText:i18n("f9f2b9cc91cd332db6b2b732c3869233"),scaffold:{type:"button",label:i18n("fa966345577ba81af19408f203db968f")}})});var SELECT_PROPS_CONTAINER$2=["form"],SHOW_SELECT_PROP$1="".concat(JSON.stringify(SELECT_PROPS_CONTAINER$2),".includes(this.__rendererName)"),NO_SUPPORT_STATIC_FORMITEM_CMPTS=["button-toolbar","condition-builder","diff-editor","editor","formula","hidden","icon-picker","input-excel","input-file","input-formula","input-image","input-repeat","input-rich-text","input-sub-form","input-table","picker","uuid"],BASE_ACTION_PROPS=["actionType","__actionDesc","preventDefault","stopPropagation","expression"],CmptActionSelect=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.onChange=function($P){var tme=this.props.formStore,ame={};Object.keys(tme.data).forEach(function(nme){__spreadArray(__spreadArray([],__read$3(BASE_ACTION_PROPS),!1),["componentId","__rendererName","__cmptTreeSource","__isScopeContainer","__cmptId"],!1).includes(nme)||(ame[nme]=void 0)}),tme.setValues(__assign$3(__assign$3({},ame),{args:void 0,groupType:$P.value,__cmptActionDesc:$P.description})),tme.data.actionType==="component"&&tme.data.groupType==="setValue"&&(tme.setValueByName("args.__containerType","all"),tme.setValueByName("args.__comboType","all")),this.props.onChange($P.value)},eme.prototype.render=function(){var $P=this.props,tme=$P.data,ame=$P.formStore,nme=getActionsByRendererName(tme.pluginActions,tme.__rendererName);return React__default.createElement(EnhancedSelect,{value:ame.data.groupType,className:"cmpt-action-select",options:nme.map(function(rme){return{label:rme.actionLabel,value:rme.actionType,description:rme.description}}),onChange:this.onChange.bind(this),clearable:!1})},eme}(React__default.Component),comboArrayToObject=function(x_){var eme={};return x_==null||x_.forEach(function($P){eme[$P.key]=$P.val}),eme},findSubActionNode=function(x_,eme){return findTree(x_,function($P){var tme;return(tme=$P.actions)===null||tme===void 0?void 0:tme.find(function(ame){return ame.actionType===eme})})},getActionType=function(x_,eme){return x_.groupType==="component"?"component":eme?eme.actionType:x_.actionType},hasActionType=function(x_,eme){return Array.isArray(eme)?!!(eme!=null&&eme.find(function($P){return[$P.actionType,"component"].includes(x_)})):!1},objectToComboArray=function(x_){return Object.entries(x_).map(function(eme){var $P=__read$3(eme,2),tme=$P[0],ame=$P[1];return{key:tme,val:ame}})},getPropOfAcion=function(x_,eme,$P,tme,ame,nme){var rme,ime,ome,lme,sme,cme,dme,ume=null;if(x_.componentId){var fme=findTree(nme??[],function(bme){return bme.value===x_.componentId});ume=fme&&((ime=(rme=tme[fme.type])===null||rme===void 0?void 0:rme.find(function(bme){return bme.actionType===x_.actionType}))===null||ime===void 0?void 0:ime[eme])}if(ume||(ume=(ome=findActionNode($P,x_.actionType))===null||ome===void 0?void 0:ome[eme]),!ume){var pme=__assign$3({},ame),hme=findSubActionNode($P,x_.actionType);eme==="actionLabel"?ume=hme==null?void 0:hme.actionLabel:ume=(cme=(sme=(lme=hme==null?void 0:hme.actions)===null||lme===void 0?void 0:lme.find(function(bme){return bme.actionType===x_.actionType}))===null||sme===void 0?void 0:sme[eme])!==null&&cme!==void 0?cme:(dme=pme[x_.actionType])===null||dme===void 0?void 0:dme[eme]}return ume},checkComponent=function(x_){return function(eme,$P){var tme,ame,nme,rme=$P==null?void 0:$P.actionType,ime=x_==null?void 0:x_.pluginActions[eme.type],ome=!!(!((tme=eme.children)===null||tme===void 0)&&tme.length),lme=!1,sme=getRendererByName(eme.type);return typeof $P.supportComponents=="string"?(lme=$P.supportComponents==="*"||$P.supportComponents===eme.type,$P.supportComponents==="byComponent"&&rme&&(lme=hasActionType(rme,ime),eme.scoped=lme)):!((ame=$P.supportComponents)===null||ame===void 0)&&ame.includes("isFormItem")?lme=!!(sme!=null&&sme.isFormItem):!((nme=$P.supportComponents)===null||nme===void 0)&&nme.includes("isStaticFormItem")?lme=!!(sme!=null&&sme.isFormItem)&&!NO_SUPPORT_STATIC_FORMITEM_CMPTS.includes(eme.type):Array.isArray($P.supportComponents)&&(lme=$P.supportComponents.includes(eme.type)),eme.isScopeContainer=!!(sme!=null&&sme.storeType),rme==="component"&&!(ime!=null&&ime.length)&&(eme.disabled=!0),lme?!0:!!ome}},findActionNode=function(x_,eme){return findTree(x_,function($P){return $P.actionType===eme})},getContextSchemasHoc=function(x_,eme){return function($P,tme){return __awaiter(void 0,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,x_.getContextSchemas($P??eme.id,tme)];case 1:return ame=nme.sent(),$P?[2,ame]:[2,x_.dataSchema]}})})}},getComponentsHoc=function(x_){return function(eme){var $P;if(!eme)return[];var tme=x_.store.isSubEditor,ame=($P=x_==null?void 0:x_.store)===null||$P===void 0?void 0:$P.getComponentTreeSource(),nme=[];if(tme)for(var rme=x_.store.getSuperEditorData;ame;)rme!=null&&rme.__curCmptTreeWrap&&(ame=[__assign$3(__assign$3({},rme.__curCmptTreeWrap),{children:ame})]),nme=__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(ame),!1),ame=rme==null?void 0:rme.__superCmptTreeSource,rme=rme==null?void 0:rme.__super;else nme=ame;var ime=filterTree(nme,function(ome){return checkComponent(x_)(ome,eme)},1,!0);return ime.unshift({label:i18n("7c80a8d7f7af4e8eeef653c0af82010d"),value:"customCmptId"}),ime}},getRootManager=function(x_){for(var eme=x_;eme&&eme.parent;)eme=eme.parent;return eme},actionConfigInitFormatterHoc=function(x_,eme,$P,tme){return function(ame){return __awaiter(void 0,void 0,void 0,function(){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme,Tme,Ome,Rme,Nme,Ime,Pme;return __generator(this,function(Mme){return nme=__assign$3({},ame),nme.args=__assign$3({},ame.args),["link","url"].includes(ame.actionType)&&(!((fme=ame.args)===null||fme===void 0)&&fme.params)&&(nme.args=__assign$3(__assign$3({},nme.args),{params:objectToComboArray((pme=ame.args)===null||pme===void 0?void 0:pme.params)})),["setValue"].includes(ame.actionType)&&(!((hme=ame.args)===null||hme===void 0)&&hme.value)&&(!nme.args&&(nme.args={}),Array.isArray((bme=ame.args)===null||bme===void 0?void 0:bme.value)?(nme.args.value=(mme=ame.args)===null||mme===void 0?void 0:mme.value.reduce(function(kme,Bme,Dme){return kme[Dme]||(kme[Dme]={}),kme[Dme].item=objectToComboArray(Bme),kme},[]),nme.args.__comboType="all"):typeof((vme=ame.args)===null||vme===void 0?void 0:vme.value)=="object"?(nme.args.value=objectToComboArray((gme=ame.args)===null||gme===void 0?void 0:gme.value),nme.args.__containerType="appoint",ame.args.index!==void 0&&(nme.args.__comboType="appoint")):ame.actionType==="setValue"&&typeof((yme=ame.args)===null||yme===void 0?void 0:yme.path)=="string"&&typeof((_me=ame.args)===null||_me===void 0?void 0:_me.value)=="string"?nme.args.__containerType="all":ame.actionType==="setValue"&&typeof(($me=ame.args)===null||$me===void 0?void 0:$me.value)=="string"&&(nme.args.__containerType="all",nme.args.__valueInput=nme.args.value,(Cme=nme.args)===null||Cme===void 0||delete Cme.value)),["show","hidden","enabled","disabled"].includes(ame.actionType)&&(nme.__statusType=ame.actionType,nme.__actionType="static"),["usability","visibility"].includes(ame.actionType)&&(nme.__actionExpression=(Sme=ame.args)===null||Sme===void 0?void 0:Sme.value),["ajax","download"].includes(ame.actionType)&&(nme.api=(Eme=ame.api)!==null&&Eme!==void 0?Eme:(xme=ame==null?void 0:ame.args)===null||xme===void 0?void 0:xme.api,nme.options=(Tme=ame.options)!==null&&Tme!==void 0?Tme:(Ome=ame==null?void 0:ame.args)===null||Ome===void 0?void 0:Ome.options,typeof(ame==null?void 0:ame.api)=="string"&&(nme.api=normalizeApi(ame==null?void 0:ame.api)),delete nme.args),rme=getPropOfAcion(ame,"innerArgs",eme,x_.pluginActions,$P),nme.actionType==="reload"&&(nme.__resetPage=(Rme=nme.args)===null||Rme===void 0?void 0:Rme.resetPage,nme.__addParam=!!nme.data,(nme.data&&typeof nme.data=="object"||nme.args&&Object.keys(nme.args).length&&nme.data===void 0)&&(nme.__addParam=!0,nme.__containerType="appoint",nme.dataMergeMode=nme.dataMergeMode||"merge"),nme.__addParam&&nme.data?typeof nme.data=="string"?(nme.__containerType="all",nme.__valueInput=nme.data):(nme.__containerType="appoint",nme.__reloadParams=objectToComboArray(nme.data)):nme.args&&Object.keys(nme.args).length&&nme.data===void 0&&(nme.__reloadParams=objectToComboArray(nme.args))),["setValue","static","nonstatic","show","visibility","hidden","enabled","disabled","usability","reload","submit","clear","reset","validate"].includes(ame.actionType)&&(ime=findTree(tme??[],function(kme){return kme.value===nme.componentId}),ime||(nme.__cmptId=nme.componentId,nme.componentId="customCmptId"),["setValue"].includes(ame.actionType)&&(ome=getRootManager(x_),lme=JSONGetById(ome.store.schema,nme.__cmptId||ame.componentId,"id"),lme&&(sme=getRendererByName(lme.type),nme.__isScopeContainer=!!(sme!=null&&sme.storeType),nme.__rendererName=lme.type))),nme.actionType!=="broadcast"&&delete nme.data,ame.actionType==="addItem"&&(Array.isArray((Nme=ame.args)===null||Nme===void 0?void 0:Nme.item)?(cme=(((Ime=ame.args)===null||Ime===void 0?void 0:Ime.item)||[]).map(function(kme){return objectToComboArray(kme)}),nme.args=__assign$3(__assign$3({},nme.args),{value:cme.map(function(kme){return{item:kme}})})):nme.args=__assign$3(__assign$3({},nme.args),{item:objectToComboArray((Pme=ame.args)===null||Pme===void 0?void 0:Pme.item)})),nme.args&&rme&&(dme={},nme.addOnArgs=[],Object.keys(nme.args).forEach(function(kme){var Bme,Dme,jme;rme.includes(kme)?dme=__assign$3(__assign$3({},dme),(Bme={},Bme[kme]=(jme=nme.args)===null||jme===void 0?void 0:jme[kme],Bme)):nme.addOnArgs=__spreadArray(__spreadArray([],__read$3(nme.addOnArgs),!1),[{key:kme,val:(Dme=nme.args)===null||Dme===void 0?void 0:Dme[kme]}],!1)}),nme.args=dme),ume=findSubActionNode(eme,ame.actionType),[2,__assign$3(__assign$3({},nme),{actionType:getActionType(ame,ume),args:nme.args})]})})}},actionConfigSubmitFormatterHoc=function(x_){return function(eme,$P,tme,ame){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me=__assign$3(__assign$3({},eme),{groupType:void 0});_me.__title=(nme=findActionNode(x_,eme.actionType))===null||nme===void 0?void 0:nme.actionLabel,eme.actionType==="component"&&(_me.actionType=eme.groupType,_me.groupType=eme.actionType);var $me=findSubActionNode(x_,eme.groupType);if($me&&(_me.actionType=eme.groupType),eme.addOnArgs&&(eme.addOnArgs.forEach(function(xme){var Tme,Ome;_me.args=(Ome=_me.args)!==null&&Ome!==void 0?Ome:{},_me.args=__assign$3(__assign$3({},_me.args),(Tme={},Tme[xme.key]=xme.val,Tme))}),delete _me.addOnArgs),["drawer","dialog","args","preventDefault"].forEach(function(xme){var Tme;_me[xme]=(Tme=_me[xme])!==null&&Tme!==void 0?Tme:tme==null?void 0:tme[xme]}),eme.actionType==="reload"&&(_me.data=void 0,_me.dataMergeMode=void 0,_me.args=_me.__rendererName==="crud"?__assign$3(__assign$3({},_me.args),{resetPage:(rme=eme.__resetPage)!==null&&rme!==void 0?rme:!0}):void 0,_me.data=void 0,eme.__addParam&&(_me.dataMergeMode=eme.dataMergeMode||"merge",_me.data=eme.__containerType==="all"?eme.__valueInput:comboArrayToObject(eme.__reloadParams||[]))),["link","url"].includes(_me.actionType)){var Cme=(ime=eme.args)===null||ime===void 0?void 0:ime.params;Cme&&Cme.length&&(_me.args=__assign$3(__assign$3({},_me.args),{params:comboArrayToObject(Cme)}))}if(_me.actionType==="toast"&&(_me.args=__assign$3(__assign$3({},_me.args),{className:"theme-toast-action-scope"})),_me.actionType==="setValue"){if(!((ome=eme.args)===null||ome===void 0)&&ome.hasOwnProperty("path"))return _me.args={path:eme.args.path,value:(sme=(lme=eme.args)===null||lme===void 0?void 0:lme.value)!==null&&sme!==void 0?sme:""},_me.hasOwnProperty("componentId")&&delete _me.componentId,_me;if(!((cme=_me==null?void 0:_me.args)===null||cme===void 0)&&cme.hasOwnProperty("path")&&delete _me.args.path,((dme=eme.args)===null||dme===void 0?void 0:dme.__valueInput)!==void 0)_me.args={value:(ume=eme.args)===null||ume===void 0?void 0:ume.__valueInput};else if(Array.isArray((fme=eme.args)===null||fme===void 0?void 0:fme.value))if(_me.args=(pme=_me.args)!==null&&pme!==void 0?pme:{},(_me.__rendererName==="combo"||_me.__rendererName==="input-table")&&((hme=_me.args)===null||hme===void 0?void 0:hme.index)===void 0){var Sme=[];(bme=eme.args)===null||bme===void 0||bme.value.forEach(function(xme,Tme){xme.item.forEach(function(Ome){Sme[Tme]||(Sme[Tme]={}),Sme[Tme][Ome.key]=Ome.val})}),_me.args=__assign$3(__assign$3({},_me.args),{value:Sme})}else _me.args=__assign$3(__assign$3({},_me.args),{value:comboArrayToObject((mme=eme.args)===null||mme===void 0?void 0:mme.value)})}if(["setValue","static","nonstatic","show","visibility","hidden","enabled","disabled","usability","reload","submit","clear","reset","validate"].includes(_me.actionType)&&_me.componentId==="customCmptId"&&(_me.componentId=_me.__cmptId),_me.actionType==="addItem"&&_me.__rendererName==="combo"&&(_me.args=__assign$3(__assign$3({},_me.args),{item:comboArrayToObject((vme=eme.args)===null||vme===void 0?void 0:vme.item)})),_me.actionType==="addItem"&&_me.__rendererName==="input-table"){var Eme=(((gme=eme.args)===null||gme===void 0?void 0:gme.value)||[]).map(function(xme){return xme.item||{}});_me.args=__assign$3(__assign$3({},_me.args),{item:Eme.map(function(xme){return comboArrayToObject(xme)})}),(yme=_me.args)===null||yme===void 0||delete yme.value}return["visibility","usability"].includes(eme.actionType)&&(_me.args=_me.actionType!=="static"?{value:_me.__actionExpression}:void 0,_me.actionType==="static"&&(_me.actionType=eme.__statusType),delete _me.__actionExpression,delete _me.__statusType),delete _me.config,delete _me.__keywords,delete _me.__resultActionTree,_me}},builtInActionsPanel=[],builtInActionPanelData=function(x_,eme){var $P=eme||{},tme=$P.label,ame=$P.description,nme=__rest$14($P,["label","description"]);return __assign$3({actionType:x_,actionLabel:tme,description:ame},nme)},registerActionPanel=function(x_,eme){var $P,tme=eme||{},ame=tme.label,nme=tme.tag;if(!x_){console.warn("actionType 不能为空");return}if(!ame||!nme){console.warn("label 或 tag 不能为空");return}if(builtInActionsPanel.length===0){builtInActionsPanel.push({actionType:nme,actionLabel:nme,children:[builtInActionPanelData(x_,eme)]});return}var rme=builtInActionsPanel.findIndex(function(sme){return sme.actionType===nme});if(rme===-1)builtInActionsPanel.push({actionType:nme,actionLabel:nme,children:[builtInActionPanelData(x_,eme)]});else{var ime=(($P=builtInActionsPanel[rme])===null||$P===void 0?void 0:$P.children)||[],ome=ime.findIndex(function(sme){return sme.actionType===x_}),lme=builtInActionPanelData(x_,eme);ome===-1?ime.push(lme):(console.warn("存在actionType：".concat(x_,"相同的动作面板，将会覆盖原有的动作面板")),ime.splice(ome,1,lme))}},ACTION_TYPE_TREE=function(x_){return builtInActionsPanel},getArgsWrapper=function(x_,eme,$P){return eme===void 0&&(eme=!1),$P===void 0&&($P={}),__assign$3(__assign$3({type:"combo",name:"args",multiple:eme,strictMode:!1},$P),{items:Array.isArray(x_)?x_:[x_]})},renderCmptSelect$1=function(x_,eme,$P,tme){return[{type:"tree-select",name:"componentId",label:x_||i18n("d80bc0fcbfb250480320b683e48b1467"),showIcon:!1,searchable:!0,required:eme,selfDisabledAffectChildren:!1,size:"lg",source:"${__cmptTreeSource}",mode:"horizontal",autoFill:__assign$3({__isScopeContainer:"${isScopeContainer}"},tme?{}:{__rendererLabel:"${label}",__rendererName:"${type}",__nodeId:"${id}",__nodeSchema:"${schema}"}),onChange:function(ame,nme,rme,ime){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(ome){return $P==null||$P(ame,nme,rme,ime),[2]})})}}]},renderCmptActionSelect$1=function(x_,eme,$P,tme,ame){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect$1(x_||i18n("d80bc0fcbfb250480320b683e48b1467"),!0,function(nme,rme,ime,ome){return __awaiter(void 0,void 0,void 0,function(){var lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return ome.data.__nodeId?ome.data.actionType!=="setValue"?[3,3]:(ome.setValueByName("args.value",[]),ome.setValueByName("args.__comboType",void 0),ome.setValueByName("args.__valueInput",void 0),ome.setValueByName("args.__containerType",void 0),SELECT_PROPS_CONTAINER$2.includes(ome.data.__rendererName)?[4,(ume=(dme=ome.data).getContextSchemas)===null||ume===void 0?void 0:ume.call(dme,ome.data.__nodeId,!0)]:[3,2]):[3,3];case 1:return lme=fme.sent(),sme=new DataSchema(lme||[]),cme=(sme==null?void 0:sme.getDataPropsAsOptions())||[],ome.setValueByName("__setValueDs",cme.filter(function(pme){return pme.value!=="$$id"})),[3,3];case 2:ome.setValueByName("__setValueDs",[]),fme.label=3;case 3:return ome.setValueByName("groupType",""),[2]}})})},tme)),!1),[{type:"input-text",name:"__cmptId",mode:"horizontal",size:"lg",required:!0,label:i18n("8191e975f70edd63fe65476dd8bc0ddc"),visibleOn:'this.componentId === "customCmptId" && this.actionType === "component"',onChange:function(nme,rme,ime,ome){return __awaiter(void 0,void 0,void 0,function(){var lme;return __generator(this,function(sme){return lme=JSONGetById(ame.store.schema,nme,"id"),lme?ome.setValues({__rendererName:lme.type}):ome.setValues({__rendererName:""}),[2]})})}},{asFormItem:!0,label:i18n("8deee3cdecdf06a05d22fcacc7031492"),name:"groupType",mode:"horizontal",required:!0,visibleOn:'this.actionType === "component"',component:CmptActionSelect,description:"${__cmptActionDesc}"}],!1)},getActionCommonProps=function(x_,eme){return x_||console.warn("请传入actionType"),COMMON_ACTION_SCHEMA_MAP[x_]},buildLinkActionDesc=function(x_,eme){var $P=(eme==null?void 0:eme.rendererLabel)||eme.componentId||"-";return React__default.createElement("span",{className:"desc-tag variable-left variable-right"},React__default.createElement(TooltipWrapper$1,{rootClose:!0,placement:"top",tooltip:"".concat($P,"，点击锚定到该组件"),tooltipClassName:"ae-event-item-header-tip"},React__default.createElement("a",{href:"#",className:"component-action-tag",onClick:function(tme){tme.preventDefault(),tme.stopPropagation();var ame=JSONGetById(x_.store.schema,eme.componentId,"id");if(!ame){toast.info("温馨提示：未找到该组件");return}var nme=JSONGetPathById(x_.store.schema,ame.$$id);if(nme!=null&&nme.includes("dialog")||nme!=null&&nme.includes("drawer")){toast.info("该组件在弹窗内，暂无法直接锚定到该组件");return}x_.store.setActiveId(ame.$$id)}},$P)))},COMMON_ACTION_SCHEMA_MAP={setValue:{innerArgs:["value"],descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("e366ccf1556c0672dcecba135ed5472e"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},schema:getArgsWrapper({type:"wrapper",body:[{type:"radios",name:"__containerType",mode:"horizontal",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),pipeIn:defaultValue("all"),visibleOn:"this.__isScopeContainer",options:[{label:i18n("77b1081c177fa3334cc93c99f0ecee75"),value:"all"},{label:i18n("f5c5e3d69daee06ea1606378ef466765"),value:"appoint"}],onChange:function(x_,eme,$P,tme){tme.setValueByName("value",[]),tme.setValueByName("__valueInput",void 0)}},{type:"radios",name:"__comboType",inputClassName:"event-action-radio",mode:"horizontal",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),pipeIn:defaultValue("all"),visibleOn:"this.__rendererName === 'combo' || this.__rendererName === 'input-table'",options:[{label:i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),value:"all"},{label:i18n("139294edcce271bf483dda437c421c29"),value:"appoint"}],onChange:function(x_,eme,$P,tme){tme.setValueByName("index",void 0),tme.setValueByName("value",[]),tme.setValueByName("__valueInput",void 0)}},{type:"input-number",required:!0,name:"index",mode:"horizontal",label:i18n("a7b0b80a7bea1e5e973967c179866ef0"),size:"lg",placeholder:i18n("e887792fbbd65d21e43e832a5cd63aac"),visibleOn:`(this.__rendererName === 'input-table' || this.__rendererName === 'combo')
      && this.__comboType === 'appoint'`},{type:"combo",name:"value",label:"",multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,size:"lg",mode:"horizontal",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",type:"input-text",placeholder:i18n("a25657422b40023f2731619587940bc7"),source:"${__setValueDs}",labelField:"label",valueField:"value",required:!0},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",placeholder:i18n("a33903526e8fb3d1ac3066da70e7941e"),columnClassName:"flex-1"})],visibleOn:"this.__isScopeContainer && this.__containerType === 'appoint' || this.__comboType === 'appoint'"},{type:"combo",name:"value",label:"",multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,mode:"horizontal",size:"lg",items:[{type:"combo",name:"item",label:!1,renderLabel:!1,multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,className:"m-l",size:"lg",mode:"horizontal",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",type:"input-text",source:"${__setValueDs}",labelField:"label",valueField:"value",required:!0,visibleOn:"this.__rendererName"},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",columnClassName:"flex-1"})]}],visibleOn:`(this.__rendererName === 'combo' || this.__rendererName === 'input-table')
      && this.__comboType === 'all'`},getSchemaTpl("formulaControl",{name:"__valueInput",label:"",variables:"${variables}",size:"lg",mode:"horizontal",visibleOn:"(this.__isScopeContainer || ".concat(SHOW_SELECT_PROP$1,") && this.__containerType === 'all'"),required:!0}),getSchemaTpl("formulaControl",{name:"__valueInput",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),variables:"${variables}",size:"lg",mode:"horizontal",visibleOn:"this.__rendererName && !this.__isScopeContainer && this.__rendererName !== 'combo' && this.__rendererName !== 'input-table'",required:!0,horizontal:{leftFixed:!0}})]})},reload:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))}},clear:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("288f0c404c4e546aa3683ff5054e85e2"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))}},reset:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("4b9c3271dc2f299dc3aeffb369187513"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))}},submit:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("939d5345ad4345dbaabe14798f6ac0f1"),buildLinkActionDesc($P.manager,x_),(x_==null?void 0:x_.__rendererName)==="wizard"?i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e"):i18n("0d83078816aa273f2941c9b55ec82bf3"))}},collapse:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("def9e98b60e3bfc493bcd7693e702096"),buildLinkActionDesc($P.manager,x_))}},selectAll:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},"选中",buildLinkActionDesc($P.manager,x_),"所有选项")}},focus:{descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},"获取",buildLinkActionDesc($P.manager,x_),"焦点")}}},getEventLabel=function(x_,eme){var $P;return($P=x_.find(function(tme){return tme.eventName===eme}))===null||$P===void 0?void 0:$P.eventLabel},getEventDesc=function(x_,eme){var $P;return($P=x_.find(function(tme){return tme.eventName===eme}))===null||$P===void 0?void 0:$P.description},getEventStrongDesc=function(x_,eme){var $P;return($P=x_.find(function(tme){return tme.eventName===eme}))===null||$P===void 0?void 0:$P.strongDesc},getOldActionSchema=function(x_,eme){var $P=/(?:\/|^)dialog\/.+$/.test(eme.path);return{type:"tooltip-wrapper",className:"old-action-tooltip-warpper",content:i18n("9654916723a8d1d82f5ab9d2911edf93"),inline:!0,tooltipTheme:"dark",placement:"bottom",body:[{type:"button",label:i18n("88f7a3aef4888dd507482aedc02bb808"),className:"block old-action-btn",actionType:"dialog",dialog:{type:"dialog",title:i18n("c500cfabdec9b2761fe9f1aa543933eb"),body:{type:"form",body:[{label:i18n("88d1257b0cf667319085f3e0033b9607"),type:"select",name:"actionType",pipeIn:defaultValue(""),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("ab3aec075a09d055b2a28c8b61925ee0"),value:"dialog"},{label:i18n("f10f0be4aa9684eef9d78234072fe08b"),value:"drawer"},{label:i18n("4f02d2efe05a20232ab9da63c090595c"),value:"ajax"},{label:i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),value:"download"},{label:i18n("4e58f9c94d345e14e2d69cc8496b7b5a"),value:"link"},{label:i18n("982db3084a2c470d1a9b34efa024511c"),value:"url"},{label:i18n("f20d9579ebdc9dfc30a212ae6cae931f"),value:"reload"},{label:i18n("6a086902a84969a835423002718e86b4"),value:"copy"},{label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),value:"submit"},{label:i18n("4b9c3271dc2f299dc3aeffb369187513"),value:"reset"},{label:i18n("fa476b76ccbd4ac9316f0fd80257b77a"),value:"reset-and-submit"},{label:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),value:"confirm"},{label:i18n("625fb26b4b3340f7872b411f401e754c"),value:"cancel"},{label:i18n("0fc26855080a4219bbfad638029a795c"),value:"next"},{label:i18n("8ba8a1bead7ca55554cff1c85246ae09"),value:"prev"}]},{type:"input-text",name:"content",visibleOn:'this.actionType == "copy"',label:i18n("deb65aca8dba2ff9d0cfaed0a3441068")},{type:"select",name:"copyFormat",options:[{label:i18n("ffb01e5bcf4c00447f5150d3cba81371"),value:"text/plain"},{label:i18n("e2591e971f4c28db7c80a5f546084a1d"),value:"text/html"}],visibleOn:'this.actionType == "copy"',label:i18n("c28f4d63beabc4833b17aaa10ca550db")},{type:"input-text",name:"target",visibleOn:'this.actionType == "reload"',label:i18n("21fa07f18f80bee50695686831ae1286"),required:!0},{name:"dialog",pipeIn:defaultValue({title:i18n("8a089992349df754f182a5d02de8e8e0"),body:i18n("1a9aaf05889002e65708c4950012a652"),showCloseButton:!0,showErrorMsg:!0,showLoading:!0}),asFormItem:!0,visibleOn:'${actionType === "dialog"}',children:function(tme){var ame=tme.value,nme=tme.onChange;return tme.data,React__default.createElement(Button$1,{size:"sm",level:"danger",className:"m-b",onClick:function(){return x_.openSubEditor({title:i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),value:__assign$3({type:"dialog"},ame),onChange:function(rme){return nme(rme)}})},block:!0},i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"))}},{name:"drawer",pipeIn:defaultValue({title:i18n("4cb9c4bc5cb960fcd03fceb2d2e62f3a"),body:i18n("1a9aaf05889002e65708c4950012a652")}),asFormItem:!0,visibleOn:'${actionType == "drawer"}',children:function(tme){var ame=tme.value,nme=tme.onChange;return tme.data,React__default.createElement(Button$1,{size:"sm",level:"danger",className:"m-b",onClick:function(){return x_.openSubEditor({title:i18n("262c7c7b9874ae5607fb51da468d0e8c"),value:__assign$3({type:"drawer"},ame),onChange:function(rme){return nme(rme)}})},block:!0},i18n("262c7c7b9874ae5607fb51da468d0e8c"))}},getSchemaTpl("api",{label:i18n("5eb694a4252528628929ced97ca95823"),visibleOn:'this.actionType == "ajax"'}),{name:"feedback",pipeIn:defaultValue({title:i18n("8a089992349df754f182a5d02de8e8e0"),body:i18n("2d711b09bd0db0ad240cc83b30dd8014")}),asFormItem:!0,visibleOn:'${actionType == "ajax"}',children:function(tme){var ame=tme.onChange,nme=tme.value;return tme.data,React__default.createElement("div",{className:"m-b"},React__default.createElement(Button$1,{size:"sm",level:nme?"danger":"info",onClick:function(){return x_.openSubEditor({title:i18n("0cc0fff6eb667b140d3fd06e34a8c69f"),value:__assign$3({type:"dialog"},nme),onChange:function(rme){return ame(rme)}})}},i18n("deb9089ed7ebcacd712117fc4204c65f")),nme?React__default.createElement(Button$1,{size:"sm",level:"link",className:"m-l",onClick:function(){return ame("")}},i18n("215f64480a93893fc56c51aeb5d40f11")):null)}},{name:"feedback.visibleOn",label:i18n("7984d95c01b725a2709fb8f5ee330fb4"),type:"input-text",visibleOn:"this.feedback",autoComplete:!1,description:i18n("dfa07586a471e24b23fe68e11f5dc41a")},{name:"feedback.skipRestOnCancel",label:i18n("47186f00df86d3edad3b5595ba8c2a0a"),type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{name:"feedback.skipRestOnConfirm",label:i18n("4f21e04fe35d39c79e7779cdf2f4e232"),type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{type:"input-text",label:i18n("6ab20dc4b64021b85886ad9c12b6e0cc"),name:"link",visibleOn:'this.actionType == "link"'},{type:"input-text",label:i18n("6ab20dc4b64021b85886ad9c12b6e0cc"),name:"url",visibleOn:'this.actionType == "url"',placeholder:"http://"},{type:"switch",name:"blank",visibleOn:'this.actionType == "url"',mode:"inline",className:"w-full",label:i18n("0bbc3ec26c36a87c9df3183def6ca9e0"),pipeIn:defaultValue(!0)},$P?{visibleOn:'this.actionType == "submit" || this.type == "submit"',name:"close",type:"switch",mode:"inline",className:"w-full",pipeIn:defaultValue(!0),label:i18n("d0c3025a64b26e5fbf22005f400c06d7")}:{},{name:"confirmText",type:"textarea",label:i18n("0c15a924dc3bedefb79c958972bef2b9"),description:i18n("06b13b11740f7663af325bf5426930ba")},{type:"input-text",name:"reload",label:i18n("fa9a0a79f29fef72e3060ea1af93c305"),visibleOn:'this.actionType != "link" && this.actionType != "url"',description:i18n("437d629f00e62cf99b3ad288f84ade46")},{type:"input-text",name:"target",visibleOn:'this.actionType != "reload"',label:i18n("b01f08bf5b9f8e3ef9d49e31d89bf770"),description:i18n("f667748a8e9717498da714d4e5087af2")},{type:"js-editor",allowFullscreen:!0,name:"onClick",label:i18n("80ddab8a52f74d707765501b0caae21f"),description:i18n("babbd439bc04241ed3536f892668c250")},{type:"input-text",name:"hotKey",label:i18n("867ade50f0bbb10bac65a5c3bc7895e9")}]},onConfirm:function(tme){x_.panelChangeValue(tme[0])}}}]}},getEventControlConfig=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme=(tme=($P=x_==null?void 0:x_.config.actionOptions)===null||$P===void 0?void 0:$P.customActionGetter)===null||tme===void 0?void 0:tme.call($P,x_),sme=!((ame=x_==null?void 0:x_.config.actionOptions)===null||ame===void 0)&&ame.actionTreeGetter?(nme=x_==null?void 0:x_.config.actionOptions)===null||nme===void 0?void 0:nme.actionTreeGetter(ACTION_TYPE_TREE()):ACTION_TYPE_TREE(),cme=(ime=(rme=x_==null?void 0:x_.config.actionOptions)===null||rme===void 0?void 0:rme.globalEventGetter)===null||ime===void 0?void 0:ime.call(rme,x_),dme=(ome=x_==null?void 0:x_.store)===null||ome===void 0?void 0:ome.getComponentTreeSource();return{showOldEntry:!!(eme.schema.actionType&&!["dialog","drawer"].includes(eme.schema.type))||["submit","reset"].includes(eme.schema.type),actions:x_==null?void 0:x_.pluginActions,events:x_==null?void 0:x_.pluginEvents,actionTree:sme,commonActions:lme,globalEvents:cme,owner:"",addBroadcast:x_==null?void 0:x_.addBroadcast.bind(x_),removeBroadcast:x_==null?void 0:x_.removeBroadcast.bind(x_),allComponents:dme,getContextSchemas:getContextSchemasHoc(x_,eme),getComponents:getComponentsHoc(x_),actionConfigInitFormatter:actionConfigInitFormatterHoc(x_,sme,lme,dme),actionConfigSubmitFormatter:actionConfigSubmitFormatterHoc(sme)}},updateCommonUseActions=function(x_){var eme=persistGet("common-use-actions",[]),$P=eme.findIndex(function(tme){return tme.value===x_.value});$P>=0?eme[$P].use+=1:eme.unshift(x_),eme.sort(function(tme,ame){return ame.use-tme.use}),persistSet("common-use-actions",eme)},getActionsByRendererName=function(x_,eme){var $P,tme=(x_[eme]||[]).slice();return!(($P=getRendererByName(eme))===null||$P===void 0)&&$P.isFormItem&&tme.push({actionLabel:i18n("b7579706a363e5f23b1040fecfbcb677"),description:i18n("1889907dcbe32f9e8ac2c9df6603f12e"),actionType:"validateFormItem"}),tme},BUTTON_DEFAULT_ACTION={onEvent:{click:{actions:[]}}},normalizCollapsedGroup=function(x_,eme){return x_===void 0&&(x_={}),eme?Array.isArray(eme)?eme.filter(function($P){return $P}).map(function($P,tme){return __assign$3(__assign$3(__assign$3(__assign$3({},x_),{key:$P.key||tme.toString()}),$P),{body:flatten$4($P.body)})}):[__assign$3(__assign$3(__assign$3({},x_),{key:"0"}),eme)]:[]},normalizeBodySchema=function(x_,eme,$P,tme,ame){$P===void 0&&($P=!1),tme===void 0&&(tme=!1);var nme=eme?Array.isArray(eme)?eme.concat():[eme]:[],rme=flatten$4($P?nme:tme?__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(x_),!1):__spreadArray(__spreadArray([],__read$3(x_),!1),__read$3(nme),!1));return rme},formItemControl=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme=(($P=eme==null?void 0:eme.schema)===null||$P===void 0?void 0:$P.type)||"",gme=getRendererByName(vme),yme=!!(gme!=null&&gme.isFormItem)&&!NO_SUPPORT_STATIC_FORMITEM_CMPTS.includes(vme),_me={type:"collapse",headingClassName:"ae-formItemControl-header ae-Collapse-header",bodyClassName:"ae-formItemControl-body"};Object.keys((tme=eme==null?void 0:eme.schema)!==null&&tme!==void 0?tme:{});var $me=normalizeBodySchema([],(ame=x_==null?void 0:x_.option)===null||ame===void 0?void 0:ame.body,(nme=x_==null?void 0:x_.option)===null||nme===void 0?void 0:nme.replace),Cme=x_!=null&&x_.property?normalizCollapsedGroup(_me,x_==null?void 0:x_.property):__spreadArray(__spreadArray([__assign$3(__assign$3({},_me),{header:i18n("4092ed98e9035652d4c9ca9441701ed7"),key:"common",body:normalizeBodySchema([getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")],(rme=x_==null?void 0:x_.common)===null||rme===void 0?void 0:rme.body,(ime=x_==null?void 0:x_.common)===null||ime===void 0?void 0:ime.replace,(ome=x_==null?void 0:x_.common)===null||ome===void 0?void 0:ome.reverse)})],__read$3($me.length!==0?[__assign$3(__assign$3({},_me),{header:((lme=x_==null?void 0:x_.option)===null||lme===void 0?void 0:lme.title)||i18n("ea15ae2b7fba76c83eec6d0986d15197"),key:"option",body:$me})]:[]),!1),[__assign$3(__assign$3({},_me),{header:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),key:"status",body:normalizeBodySchema([getSchemaTpl("visible"),getSchemaTpl("hidden"),getSchemaTpl("clearValueOnHidden"),yme?getSchemaTpl("static"):null,getSchemaTpl("disabled")],(sme=x_==null?void 0:x_.status)===null||sme===void 0?void 0:sme.body,(cme=x_==null?void 0:x_.status)===null||cme===void 0?void 0:cme.replace,(dme=x_==null?void 0:x_.status)===null||dme===void 0?void 0:dme.reverse)})],!1);return[{type:"tabs",tabsMode:"line",className:"editor-prop-config-tabs",linksClassName:"editor-prop-config-tabs-links",contentClassName:"no-border editor-prop-config-tabs-cont",tabs:__spreadArray([{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[{type:"collapse-group",expandIconPosition:"right",expandIcon:{type:"icon",icon:"chevron-right"},className:"ae-formItemControl",activeKey:Cme.map(function(Sme,Eme){return Sme.key}),body:Cme}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:normalizeBodySchema(__spreadArray([getSchemaTpl("formItemMode"),getSchemaTpl("horizontalMode"),getSchemaTpl("horizontal",{label:"",visibleOn:'this.mode == "horizontal" && this.label !== false && this.horizontal'}),getSchemaTpl("formItemInline"),getSchemaTpl("className"),getSchemaTpl("className",{label:i18n("6d0034a2419e1f394dedab07994b9665"),name:"labelClassName"}),getSchemaTpl("className",{label:i18n("2cadb6621afe19333b142faa541b0f91"),name:"inputClassName"}),getSchemaTpl("className",{label:i18n("0e627e6a0ff773ee76bc4cc0871cb48d"),name:"descriptionClassName",visibleOn:"this.description"})],__read$3(yme?[getSchemaTpl("className",{label:i18n("3e573fd37473d789211ee44335d82fad"),name:"staticClassName"})]:[]),!1),(ume=x_==null?void 0:x_.style)===null||ume===void 0?void 0:ume.body,(fme=x_==null?void 0:x_.style)===null||fme===void 0?void 0:fme.replace,(pme=x_==null?void 0:x_.style)===null||pme===void 0?void 0:pme.reverse)}],__read$3(isObject(eme)&&!(!((hme=x_==null?void 0:x_.event)===null||hme===void 0)&&hme.hidden)?[{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:normalizeBodySchema([getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(eme.info.plugin.manager,eme)))],(bme=x_==null?void 0:x_.event)===null||bme===void 0?void 0:bme.body,(mme=x_==null?void 0:x_.event)===null||mme===void 0?void 0:mme.replace)}]:[]),!1)}]};function remarkTpl(x_){return{type:"ae-switch-more",formType:"dialog",className:"ae-switch-more-flex",label:x_.labelRemark?tipedLabel(x_.label,x_.labelRemark):x_.label,bulk:!1,name:x_.name,pipeIn:function(eme){return!!eme},pipeOut:function(eme){if(isObject(eme))return eme;if(eme)return{icon:"fa fa-question-circle",trigger:["hover"],className:"Remark--warning",placement:"top"}},form:{size:"md",className:"mb-8",mode:"horizontal",horizontal:{left:4,right:8,justify:!0},body:{type:"grid",className:"pt-4 right-panel-pop :AMISCSSWrapper",gap:"lg",columns:[{md:"6",body:[{name:"title",type:x_.i18nEnabled?"input-text-i18n":"input-text",label:i18n("dc19704991f1476fa4dcbb80c50bedd6"),placeholder:i18n("55713166f8bddcc0aefc3a32464746f1")},{name:"content",type:x_.i18nEnabled?"textarea-i18n":"textarea",label:i18n("2d711b09bd0db0ad240cc83b30dd8014")}]},{md:"6",body:[{name:"placement",type:"button-group-select",size:"md",label:i18n("59b9e2022323a63079c6ddab63fec112"),options:[{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}]},getSchemaTpl("icon"),{name:"className",label:tipedLabel(i18n("4434b33a8731a73613ba5fa1eb984efb"),i18n("f10b676db977ae808af8d96b327be7f3")),type:"input-text"},{name:"trigger",type:"select",label:tipedLabel(i18n("159dbc2fafd57b9d3652f16659b1b519"),i18n("45a51525391d4a3771b22f2cf1aa96b3")),multiple:!0,pipeIn:function(eme){return Array.isArray(eme)?eme.join(","):[]},pipeOut:function(eme){return eme&&eme.length?eme.split(","):["hover"]},options:[{label:i18n("728c7cdfa431821d291b5108394ec65a"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"click"}]},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:i18n("5632c68dac780bd766f740830481f4b0"),type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"}]}]}}}}setSchemaTpl("remark",function(){return remarkTpl({name:"remark",label:i18n("ff255db9b108589abd5c649e2a02e3f1"),labelRemark:i18n("9e783b34207fe24bc488136faba65442")})});setSchemaTpl("labelRemark",function(){return remarkTpl({name:"labelRemark",label:i18n("3ba265c6b63bde0319822afd6b9a649d"),labelRemark:i18n("7ad83bbe4646a0011ece7fd338d1e189")})});setSchemaTpl("horizontal-align",{type:"button-group-select",label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),options:[{label:i18n("a7eaff29603a9c40927f726013d2c016"),value:"left",icon:"fa fa-align-left"},{label:i18n("128d58f066a18ddb2ddb701921d5c77c"),value:"right",icon:"fa fa-align-right"}]});setSchemaTpl("leftFixed",{name:"horizontal.leftFixed",type:"button-group-select",visibleOn:"this.horizontal && this.horizontal.leftFixed",label:i18n("c28479019e24e0e4745f4948e9e97ee7"),size:"xs",options:[{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"normal"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"}]});setSchemaTpl("leftRate",{name:"horizontal",type:"input-range",visibleOn:"this.horizontal && !this.horizontal.leftFixed",min:1,max:11,step:1,label:tipedLabel(i18n("150075376834f1879d6ceb7c2d10ec67"),i18n("34598b2c71a8affb13da84ba39e905d5")),pipeIn:function(x_){return x_.left||3},pipeOut:function(x_){return{left:x_,right:12-x_}}});setSchemaTpl("labelAlign",{name:"labelAlign",type:"button-group-select",visibleOn:"this.horizontal && this.horizontal.leftFixed",label:i18n("5e3406cb54f255dc1be5edbaa6f87389"),size:"xs",options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"}]});setSchemaTpl("horizontal",function(x_){return[__assign$3({type:"select",label:i18n("60e237a1b5e9a4cc3633898d527d5a38"),name:"horizontal",options:[{label:i18n("2dde3029c4170a1c8e961a90766e0194"),value:"formHorizontal"},{label:i18n("ae6fa9e75d38b9db24f78496b72bcc75"),value:"leftFixed"},{label:i18n("150075376834f1879d6ceb7c2d10ec67"),value:"leftRate"}],pipeIn:function(eme){return eme?eme.leftFixed?"leftFixed":"leftRate":"formHorizontal"},pipeOut:function(eme){var $P={formHorizontal:void 0,leftFixed:{leftFixed:"normal"},leftRate:{left:3,right:9}};return $P[eme]},visibleOn:'this.mode == "horizontal" && this.label !== false'},isObject$r(x_)?x_:{}),getSchemaTpl("layout:wrapper-contanier",{visibleOn:'this.mode == "horizontal" && this.horizontal && this.label !== false',body:[getSchemaTpl("leftFixed"),getSchemaTpl("leftRate"),getSchemaTpl("labelAlign")]})]});setSchemaTpl("subFormItemMode",{label:i18n("424f04d454332ddaff4daa0a365e9335"),name:"subFormMode",type:"button-group-select",size:"sm",option:i18n("2dde3029c4170a1c8e961a90766e0194"),pipeIn:defaultValue(""),options:[{label:i18n("2dde3029c4170a1c8e961a90766e0194"),value:""},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"normal"},{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"},{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"}]});setSchemaTpl("subFormHorizontalMode",{type:"switch",label:i18n("b17754a193ac835bcae0bf960f3a3772"),name:"subFormHorizontal",onText:i18n("2dde3029c4170a1c8e961a90766e0194"),offText:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),inputClassName:"text-sm",visibleOn:'this.subFormMode == "horizontal"',pipeIn:function(x_){return!x_},pipeOut:function(x_,eme,$P){return x_?null:$P.formHorizontal||{leftFixed:"normal"}}});setSchemaTpl("subFormItemMode",{label:i18n("424f04d454332ddaff4daa0a365e9335"),name:"subFormMode",type:"button-group-select",size:"sm",option:i18n("2dde3029c4170a1c8e961a90766e0194"),pipeIn:defaultValue(""),options:[{label:i18n("2dde3029c4170a1c8e961a90766e0194"),value:""},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"normal"},{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"},{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"}]});setSchemaTpl("subFormHorizontalMode",{type:"switch",label:i18n("b17754a193ac835bcae0bf960f3a3772"),name:"subFormHorizontal",onText:i18n("2dde3029c4170a1c8e961a90766e0194"),offText:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),inputClassName:"text-sm",visibleOn:'this.subFormMode == "horizontal"',pipeIn:function(x_){return!x_},pipeOut:function(x_,eme,$P){return x_?null:$P.formHorizontal||{leftFixed:"normal"}}});setSchemaTpl("subFormHorizontal",{type:"combo",syncDefaultValue:!1,visibleOn:'this.subFormMode == "horizontal" && this.subFormHorizontal',name:"subFormHorizontal",multiLine:!0,pipeIn:function(x_){return{leftRate:x_&&typeof x_.left=="number"?x_.left:x_&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(x_.left)?parseInt(RegExp.$1,10):2,leftFixed:x_&&x_.leftFixed||""}},pipeOut:function(x_){var eme=Math.min(11,Math.max(1,x_.leftRate||2));return{leftFixed:x_.leftFixed||"",left:eme,right:12-eme}},inputClassName:"no-padder",items:[{name:"leftFixed",type:"button-group-select",label:i18n("2e282fb6405a60830112991f88e95753"),size:"xs",options:[{label:i18n("c41b3271487a3cc63e79feeb11b11de0"),value:""},{label:i18n("0fcf69b5d0b44955fcbec9702f90b556"),value:"sm",visibleOn:"this.leftFixed"},{label:i18n("b591aed69defa2abf0486da6a58dfb5e"),value:"normal"},{label:i18n("0fa590019ace86acee8d7655e5fb11b7"),value:"lg",visibleOn:"this.leftFixed"}]},{name:"leftRate",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:11,step:1,label:i18n("51c1e80408011ba118cdcc696f28283d"),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:i18n("aa0ff71cb10c3e54d68874dc2b17acaf"),placement:"left"}}]});setSchemaTpl("api",function(x_){x_===void 0&&(x_={});var eme=x_.name,$P=x_.label,tme=x_.value,ame=x_.description,nme=x_.sampleBuilder;x_.apiDesc;var rme=__rest$14(x_,["name","label","value","description","sampleBuilder","apiDesc"]);return __assign$3({type:"container",body:[{type:"checkbox",label:$P||"API",labelRemark:nme?{label:!1,title:i18n("226c06861b0605a3276311b1369204f2"),icon:"fas fa-code",className:"m-l-xs ae-ApiSample-icon",tooltipClassName:"ae-ApiSample-tooltip",children:function(ime){return React__default.createElement(Html$1,{className:"ae-ApiSample",inline:!1,html:`
                  <pre><code>`.concat(nme(ime),`</code></pre>
                  `)})},trigger:"click",rootClose:!0,placement:"left"}:void 0,option:i18n("1f318234cab713b51b5172d91770bc11"),name:eme||"api",mode:"inline",className:"w-full m-b-sm",inputClassName:"pull-right text-sm m-t-sm p-t-none",onChange:function(){},pipeIn:function(ime){return ime&&typeof ime!="string"},pipeOut:function(ime,ome){var lme=buildApi(ome);return ime?{method:lme.method,url:lme.url}:lme.url?"".concat(lme.method?"".concat(lme.method,":"):"").concat(lme.url):""}},{name:eme||"api",type:"input-text",value:tme,placeholder:"http://",description:ame,visibleOn:"!this.".concat(eme||"api"," || typeof this.").concat(eme||"api"," === 'string'"),className:"m-b-none",labelRemark:{}},{type:"combo",name:eme||"api",description:ame,syncDefaultValue:!1,multiLine:!0,visibleOn:"this.".concat(eme||"api"," && typeof this.").concat(eme||"api"," !== 'string'"),className:"m-b-none",messages:{validateFailed:i18n("a0472043a9598b1b19f1adcec1e1d75d")},pipeIn:function(ime){if(typeof ime=="string"){var ome=ime,lme="get",sme=/^(raw:|external:)?(get|post|put|patch|delete):(.*)$/.exec(ome);return sme&&(ome=sme[1]+sme[3],lme=sme[2]),{method:lme,url:ome}}return ime},items:[{label:i18n("6aa351f5dacd13d3d862d9c93e4a0241"),name:"method",value:"get",type:"select",mode:"horizontal",horizontal:{leftFixed:"sm"},options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"}]},{label:i18n("85624c8e8b0fc98954eecbe508e8b59d"),type:"input-text",name:"url",placeholder:"http://",required:!0},{type:"switch",label:i18n("dd10fdec63a2224aa3d28b48d428cb98"),name:"data",className:"w-full m-b-xs",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.data",inline:!1,className:"text-sm text-muted m-b",tpl:i18n("0fcbf036057c6dd88b7b809daa0c5eb7")},{type:"ae-DataMappingControl",syncDefaultValue:!1,name:"data",mode:"normal",renderLabel:!1,visibleOn:"this.data",valueType:"ae-DataPickerControl",descriptionClassName:"help-block text-xs m-b-none",description:i18n("5414824fb8efdb7d59beae4bf95fdefd")},{label:i18n("8dc91bca9bc83efea73150e3478657fc"),type:"input-text",name:"sendOn",placeholder:i18n("bf9e242338d2c26b182aa6b9c015d84c"),description:i18n("91ee84292a5bf5e59d3b6309f948f2f1")},{type:"switch",label:i18n("6e6d4269d0dc3324d551062350a2ae9f"),name:"silent",mode:"inline",description:i18n("ddca9c0f0e3d07c3341701b80f139cc0")},{type:"switch",label:i18n("773a0e8384fd6f784088b829d7cc2f68"),name:"cache",className:"w-full m-b-xs",description:i18n("2816c3584802b2fc75db5bc3c6aa81e8"),pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?3e3:void 0}},{type:"input-number",name:"cache",mode:"inline",min:0,step:500,visibleOn:"this.cache",pipeIn:function(ime){return typeof ime=="number"?ime:0}},{type:"switch",label:i18n("a18ea11244325dd3d20c5988bc7f6e39"),name:"responseType",pipeIn:function(ime){return ime==="blob"},pipeOut:function(ime){return ime?"blob":void 0},description:i18n("6e889f0cc8c1d8f705edfd5d0bbdaaa0")},{label:i18n("7c6722203327e8173be987f36fadf610"),type:"button-group-select",name:"dataType",description:"".concat(i18n("55409342e28d37db86fb23efbd84a025"),'：<%= data.dataType === "json" ? "application/json" : (data.dataType === "form-data" ? "multipart/form-data" : (data.dataType === "form" ? "application/x-www-form-urlencoded" : "")) %>，').concat(i18n("e06a14abe7ef66a8ead143db4ae9786e")),size:"sm",className:"block",mode:"inline",options:[{label:"JSON",value:"json"},{label:"FormData",value:"form-data"},{label:"Form",value:"form"}]},{type:"switch",label:i18n("91831507074270c0da8a31ad9ff87495"),name:"replaceData",description:i18n("508a38f518821a0f6bb2d15269b31ece")},{type:"switch",label:i18n("7dd590a9d9e783e980d318bd52891905"),name:"responseData",className:"w-full m-b-xs",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.responseData",inline:!1,className:"text-sm text-muted m-b",tpl:i18n("7e295b6ff39ec7356e06c4534bfc4fb3")},{type:"input-kv",syncDefaultValue:!1,name:"responseData",visibleOn:"this.responseData",descriptionClassName:"help-block text-xs m-b-none"},{title:i18n("5c131eb3bc61f6b0a26e20449ad7ce56"),type:"fieldSet",className:"m-b-none",size:"sm",collapsable:!1,collapsedOn:"!this.requestAdaptor && !this.adaptor",body:[{name:"requestAdaptor",type:"js-editor",allowFullscreen:!0,label:i18n("417125a06b1d2bfff025e83a4e067bf0"),description:i18n("62efcb25e5b21da47c09780119da3458")},{name:"adaptor",type:"js-editor",allowFullscreen:!0,label:i18n("6eb8944029108ad3b6bb3572a648fafa"),description:i18n("e83cbec70e17988749c4a02a3b73f55c")}]}]}]},rme)});setSchemaTpl("source",function(x_){return x_===void 0&&(x_={}),getSchemaTpl("api",__assign$3({name:"source",label:i18n("1395eba8d9efe27aa1ecd1a45e3e5dcd"),description:i18n("f514cabe63553a850063834c9d44a5ee"),sampleBuilder:function(){return JSON.stringify({status:0,msg:"",data:{options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"a"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"b"}]}},null,2)}},x_))});setSchemaTpl("apiString",{name:"api",type:"input-text",placeholder:"http://"});setSchemaTpl("initFetch",function(x_){x_===void 0&&(x_={});var eme=get$6(x_,"visibleOn","this.initApi"),$P=get$6(x_,"name","initFetch"),tme=get$6(x_,"label",i18n("47d0a7caaa2baee8d38612a1c57421ef"));return{type:"group",label:tipedLabel(tme,i18n("866a60d7fbdfeba6ae42c7e9c7b03059")),visibleOn:eme,direction:"vertical",body:[{name:$P,type:"radios",inline:!0,value:!1,options:[{label:i18n("0a60ac8f02ccd2cf723f927284877851"),value:!0},{label:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),value:!1},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:""}]},getSchemaTpl("valueFormula",{label:"",name:"".concat($P,"On"),autoComplete:!1,visibleOn:"typeof this.".concat($P,' !== "boolean"'),placeholder:i18n("713ec76479b992652ed39364d3d03870"),className:"m-t-n-sm"})]}});setSchemaTpl("proxy",{type:"switch",label:i18n("3f4f3acd6968f38361dddc6612a0c54f"),name:"proxy",mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline"});setSchemaTpl("apiControl",function(x_){x_===void 0&&(x_={});var eme=x_.name,$P=x_.label;x_.value;var tme=x_.description,ame=x_.sampleBuilder;x_.apiDesc;var nme=__rest$14(x_,["name","label","value","description","sampleBuilder","apiDesc"]);return __assign$3({type:"ae-apiControl",label:$P,name:eme||"api",description:tme,labelRemark:ame?{label:!1,title:i18n("226c06861b0605a3276311b1369204f2"),icon:"fas fa-code",className:"m-l-xs ae-ApiSample-icon",tooltipClassName:"ae-ApiSample-tooltip",children:function(rme){return React__default.createElement(Html$1,{className:"ae-ApiSample",inline:!1,html:`
                  <pre><code>`.concat(ame(rme),`</code></pre>
                  `)})},trigger:"click",rootClose:!0,placement:"left"}:void 0},nme)});setSchemaTpl("interval",function(x_){return __assign$3({type:"ae-switch-more",label:i18n("e5e3131aaf96b6dd10574bc9beeaf934"),name:"interval",formType:"extend",bulk:!0,mode:"normal",form:{body:__spreadArray([getSchemaTpl("withUnit",__assign$3({label:i18n("8df0f3891f8a80a392816f6ca662a33d"),name:"interval",control:{type:"input-number",name:"interval",value:1e3},unit:i18n("21157cbff85802e353409f647f1f1f91")},x_&&x_.intervalConfig||{}))],__read$3(x_&&x_.formItems||[]),!1)}},x_&&x_.switchMoreConfig||{})});setSchemaTpl("silentPolling",function(){return getSchemaTpl("switch",{label:tipedLabel(i18n("19c5410b23fba4bbfd1a58bbd5268c9b"),i18n("04f840b0772f4b5d59954a29a76f4e7b")),name:"silentPolling",visibleOn:"!!this.interval"})});setSchemaTpl("stopAutoRefreshWhen",function(x_){return x_===void 0&&(x_={}),getSchemaTpl("valueFormula",__assign$3({name:"stopAutoRefreshWhen",label:tipedLabel(i18n("83f16354dd1532422dc8b3581d096e7b"),i18n("620f826a77f079c5683a9d3c59461ea1")),visibleOn:"!!this.interval"},x_))});setSchemaTpl("actionApiControl",function(x_){x_===void 0&&(x_={});var eme=x_.name,$P=x_.label;x_.value;var tme=x_.description,ame=x_.sampleBuilder,nme=__rest$14(x_,["name","label","value","description","sampleBuilder"]);return __assign$3({type:"ae-actionApiControl",label:$P,name:eme,description:tme,mode:"normal",labelRemark:ame?{icon:"",label:i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),title:i18n("226c06861b0605a3276311b1369204f2"),tooltipClassName:"ae-ApiSample-tooltip",children:function(rme){return React__default.createElement(Html$1,{className:"ae-ApiSample",inline:!1,html:`
                    <pre><code>`.concat(ame(rme),`</code></pre>
                    `)})},trigger:"click",className:"m-l-xs",rootClose:!0,placement:"left"}:void 0},nme)});setSchemaTpl("loadingConfig",function(x_,eme){for(var $P=eme.context,tme="",ame=$P.node.parent;ame&&!tme;){var nme=ame.type;nme==="dialog"||nme==="drawer"?tme="[role=dialog-body]":nme==="page"&&(tme="[role=page-body]"),ame=ame.parent}return __assign$3(__assign$3({name:"loadingConfig",type:"select",label:i18n("5a4e41af91746f8a3905aa9f66048955"),options:[{label:i18n("6ade3082696deb00357f5c0359093cd4"),value:1},{label:i18n("b6ac896eff6a6502e4ae7079b3e507a5"),value:0},{label:i18n("0e9ffe1f1cf3f7a620970ea75dba9f39"),value:2}]},x_),{pipeOut:function(rme){switch(rme){case 0:return{show:!1};case 2:return{show:!0,root:tme};case 1:return{show:!0};default:return{}}},pipeIn:function(rme){return rme===void 0&&(rme={}),rme.root?2:rme.show===!1?0:1}})});setSchemaTpl("options",function(){var x_=getI18nEnabled();return{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:x_?"input-text-i18n":"input-text",name:"label",placeholder:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),required:!0},{type:"select",name:"value",pipeIn:function(eme){return typeof eme=="string"?"text":typeof eme=="boolean"?"boolean":typeof eme=="number"?"number":"text"},pipeOut:function(eme,$P){if(eme==="text")return String($P);if(eme==="number"){var tme=Number($P);return isNaN(tme)?0:tme}return eme==="boolean"?!!$P:""},options:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"text"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),value:"number"},{label:i18n("97b0b6499334ed889b372513290a2a52"),value:"boolean"}]},{type:"input-number",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),visibleOn:'typeof this.value === "number"',unique:!0},{type:"switch",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),visibleOn:'typeof this.value === "boolean"',unique:!0},{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),visibleOn:'typeof this.value === "undefined" || typeof this.value === "string"',unique:!0}]}});setSchemaTpl("tree",{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),description:i18n("1f08c91da33fc5f0616e8a85c0456a18"),scaffold:{label:"",value:""},items:[getSchemaTpl("optionsLabel"),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]});setSchemaTpl("multiple",function(x_){return x_===void 0&&(x_={}),__assign$3(__assign$3({type:"ae-switch-more",mode:"normal",name:"multiple",label:i18n("e3be7b8a459a08fec8f378a0660b642b"),value:!1,hiddenOnDefault:!0,clearChildValuesOnOff:!1,formType:"extend"},x_.patch||{}),{form:{body:x_.replace?x_.body:__spreadArray([getSchemaTpl("joinValues"),getSchemaTpl("delimiter"),getSchemaTpl("extractValue")],__read$3((x_==null?void 0:x_.body)||[]),!1)}})});setSchemaTpl("strictMode",{type:"switch",label:i18n("98d52b737d6bc171b6d5bad9a42f6e23"),name:"strictMode",value:!1,mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline ",labelRemark:{trigger:["hover","focus"],setting:!0,title:"",content:i18n("fa66d1acaef7cd181f21f5fc2895becc")}});setSchemaTpl("checkAllLabel",{type:"input-text",name:"checkAllLabel",label:i18n("cf763c357566be6fdaee886a40ddcca7"),value:i18n("66eeacd93a7c1bda93906fe908ad11a0"),mode:"row"});setSchemaTpl("checkAll",function(){return[getSchemaTpl("switch",{label:i18n("9c541222ced2435288c24b34f8ad1fb8"),name:"checkAll",value:!1,visibleOn:"this.multiple"}),{type:"container",className:"ae-ExtendMore mb-2",visibleOn:"this.checkAll && this.multiple",body:[getSchemaTpl("switch",{label:i18n("05bef457e8350e1a5d8007cad41b70e5"),name:"defaultCheckAll",value:!1}),getSchemaTpl("checkAllLabel")]}]});setSchemaTpl("joinValues",function(x_){return x_===void 0&&(x_={}),getSchemaTpl("switch",__assign$3({label:tipedLabel(i18n("bc8d09093edd98769d5cb39e759aa498"),i18n("2646ee1ebb6922a5c9359de6cd3b3639")),name:"joinValues",visibleOn:"this.multiple",value:!0},x_))});setSchemaTpl("delimiter",{type:"input-text",name:"delimiter",label:tipedLabel(i18n("1ca0b9b486be3b766a92474189f11fc8"),i18n("ab8e2e8cd076bd115cdd600d17ca5020")),visibleOn:"this.multiple && this.joinValues",pipeIn:defaultValue(",")});setSchemaTpl("extractValue",{type:"switch",label:tipedLabel(i18n("6df0630b4f00b6bd05de8af09c2f78ad"),i18n("d7d810ec89408c206a220f62edde737f")),name:"extractValue",inputClassName:"is-inline",visibleOn:"this.multiple && this.joinValues === false",pipeIn:defaultValue(!1)});setSchemaTpl("creatable",function(x_){return x_===void 0&&(x_={}),__assign$3({label:tipedLabel(i18n("4cff56e2b9703018efc48218b83844b1"),i18n("457c4cf8e1e2e0daef8949085555563f")),type:"ae-switch-more",mode:"normal",name:"creatable"},x_)});setSchemaTpl("addApi",function(){return getSchemaTpl("apiControl",{label:i18n("d03c96a2da4905c5f13a87c0d8ddbdb4"),name:"addApi",mode:"row",visibleOn:"this.creatable"})});setSchemaTpl("createBtnLabel",{label:i18n("9e3790244299ed296601d79e0bf43a5c"),name:"createBtnLabel",type:"input-text",placeholder:i18n("65d76d0590aa6e05d61fe8db4c6a11ca")});setSchemaTpl("editable",function(x_){return x_===void 0&&(x_={}),__assign$3({label:tipedLabel(i18n("a32b3bf74850faad3a9ae6a0a5dac781"),i18n("457c4cf8e1e2e0daef8949085555563f")),type:"ae-switch-more",mode:"normal",name:"editable"},x_)});setSchemaTpl("editApi",function(){return getSchemaTpl("apiControl",{label:i18n("ea56ca3dac0d39e463a8233fd40a9eb6"),name:"editApi",mode:"row",visibleOn:"this.editable"})});setSchemaTpl("editInitApi",function(){return getSchemaTpl("apiControl",{label:i18n("bbbeba31bfc391bd0741ac62ade78c5a"),name:"editInitApi",mode:"row",visibleOn:"this.editable"})});setSchemaTpl("removable",function(x_){return x_===void 0&&(x_={}),__assign$3({label:tipedLabel(i18n("3c87af7c432e6b1f59e4f415fd5060cf"),i18n("457c4cf8e1e2e0daef8949085555563f")),type:"ae-switch-more",mode:"normal",name:"removable"},x_)});setSchemaTpl("deleteApi",function(){return getSchemaTpl("apiControl",{label:i18n("793e260d5b7c67d43b5c6d5e885d2363"),name:"deleteApi",mode:"row",visibleOn:"this.removable"})});setSchemaTpl("ref",function(){return null});setSchemaTpl("selectFirst",{type:"switch",label:i18n("553333a72dec41b54e8ed18d49453a76"),name:"selectFirst",mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline "});setSchemaTpl("hideNodePathLabel",{type:"switch",label:tipedLabel(i18n("0dd2e4469872c176ab1e85b66d99da98"),i18n("b7e26fcff328b28b393ef2e57e96e258")),name:"hideNodePathLabel",mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline"});setSchemaTpl("navControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),mode:"normal",name:"source",type:"ae-navSourceControl",closeDefaultCheck:!0});setSchemaTpl("optionControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),mode:"normal",name:"options",type:"ae-optionControl"});setSchemaTpl("optionControlV2",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),mode:"normal",name:"options",type:"ae-optionControl",closeDefaultCheck:!1});setSchemaTpl("mapSourceControl",{type:"ae-mapSourceControl",label:i18n("8b139ce9fa196b602bb1ee3bd25b25df"),mode:"normal",name:"source"});setSchemaTpl("timelineItemControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),model:"normal",type:"ae-timelineItemControl"});setSchemaTpl("treeOptionControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),mode:"normal",name:"options",type:"ae-treeOptionControl"});setSchemaTpl("dataMap",{type:"container",body:[getSchemaTpl("switch",{label:tipedLabel(i18n("dd10fdec63a2224aa3d28b48d428cb98"),i18n("22b47452f52254ce07507287d137d167")+i18n("68419387f5bb8487a848b818d78424ae")),name:"dataMapSwitch",pipeIn:defaultValue(!1),onChange:function(x_,eme,$P,tme){x_?tme.setValues({data:{},dataMap:{},withDefaultData:!1}):(tme.deleteValueByName("dataMap"),tme.deleteValueByName("data"))}}),getSchemaTpl("combo-container",{type:"container",className:"ae-Combo-items",visibleOn:"this.dataMapSwitch",body:[getSchemaTpl("switch",{label:tipedLabel(i18n("cb65841ea7dec5ae0af20b3f5e52abfc"),i18n("6922790f45faf064e063069816e4d2ec")),name:"withDefaultData",className:"mb-0",pipeIn:defaultValue(!1),onChange:function(x_,eme,$P,tme){var ame,nme=((ame=tme.data)===null||ame===void 0?void 0:ame.data)||{};tme.setValues({data:x_?__assign$3(__assign$3({},nme),{"&":"$$"}):nme&&nme["&"]==="$$"?omit$1(nme,"&"):nme})}}),{type:"input-kv",syncDefaultValue:!1,name:"dataMap",className:"block -mt-5",deleteBtn:{icon:"fa fa-trash"},updatePristineAfterStoreDataReInit:!0,itemsWrapperClassName:"ae-Combo-items",pipeIn:function(x_,eme){var $P,tme=cloneDeep$1(($P=eme.data)===null||$P===void 0?void 0:$P.data);return tme&&tme["&"]==="$$"?omit$1(tme,"&"):tme},onChange:function(x_,eme,$P,tme){var ame=tme.data.withDefaultData?assign$1({"&":"$$"},x_):cloneDeep$1(x_);return tme.setValues({data:ame}),x_}}]})]});setSchemaTpl("optionAddControl",function(x_){var eme=x_||{},$P=eme.manager,tme=eme.controlSchema,ame=tme===void 0?{}:tme,nme=eme.collections,rme=nme===void 0?[]:nme,ime=eme.replace,ome=Array.isArray(rme)?rme:[rme];return getSchemaTpl("creatable",__assign$3(__assign$3({formType:"extend",autoFocus:!1,hiddenOnDefault:!1},ame),{form:{body:__spreadArray(__spreadArray([],__read$3(ime?ome:__spreadArray(__spreadArray([],__read$3(ome),!1),[getSchemaTpl("createBtnLabel")],!1)),!1),[getSchemaTpl("addApi"),{type:"hidden",name:"addDialog"},{name:"addControls",asFormItem:!0,label:!1,children:function(lme){var sme=lme||{},cme=sme.value,dme=sme.data,ume=sme.onBulkChange,fme=dme||{},pme=fme.addApi,hme=fme.createBtnLabel,bme=fme.addDialog,mme=fme.optionLabel,vme=__assign$3(__assign$3({type:"dialog",title:hme||i18n("66ab5e9f24c8f46012a25c89919fb191").concat(mme||i18n("ea15ae2b7fba76c83eec6d0986d15197"))},bme),{body:{"amis-select-addControls":!0,type:"form",api:pme,controls:__spreadArray([],__read$3(cme?Array.isArray(cme)?cme:[cme]:[{type:"input-text",name:"label",label:!1,required:!0,placeholder:i18n("06e2f88f428b7e26f7da3cd4d40ec2ed")}]),!1)}});return React__default.createElement("div",{className:"flex"},React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",level:"enhance",size:"sm",onClick:function(){$P.openSubEditor({title:i18n("c630aa278a251b72bebf09284095112a"),value:vme,onChange:function(gme,yme){var _me,$me,Cme,Sme,Eme=JSONPipeOut(gme,function(Nme,Ime){return Nme.substring(0,2)==="__"||Nme==="id"}),xme=omit$1(Eme,["type","body","id"]),Tme=findObjectsWithKey(Eme,"amis-select-addControls"),Ome=(_me=Tme==null?void 0:Tme[0])===null||_me===void 0?void 0:_me.api,Rme=(Cme=($me=Tme==null?void 0:Tme[0])===null||$me===void 0?void 0:$me.controls)!==null&&Cme!==void 0?Cme:(Sme=Tme==null?void 0:Tme[0])===null||Sme===void 0?void 0:Sme.body;ume({addApi:Ome,addDialog:xme,addControls:Rme})}})}},i18n(cme?"6c1f091d6ee0780a6f836d212b8afa82":"c630aa278a251b72bebf09284095112a")),cme&&React__default.createElement(Button$1,{iconOnly:!0,className:"ml-3",size:"sm",onClick:function(){return ume({addControls:void 0})}},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})))}}],!1)}}))});setSchemaTpl("optionEditControl",function(x_){var eme=x_||{},$P=eme.manager,tme=eme.controlSchema,ame=tme===void 0?{}:tme,nme=eme.collections,rme=nme===void 0?[]:nme,ime=eme.replace,ome=Array.isArray(rme)?rme:[rme];return getSchemaTpl("editable",__assign$3(__assign$3({formType:"extend",autoFocus:!1,hiddenOnDefault:!1},ame),{form:{body:__spreadArray(__spreadArray([],__read$3(ime?ome:__spreadArray([],__read$3(ome),!1)),!1),[getSchemaTpl("editInitApi"),getSchemaTpl("editApi"),{type:"hidden",name:"editDialog"},{name:"editControls",asFormItem:!0,label:!1,children:function(lme){var sme=lme||{},cme=sme.value,dme=sme.data,ume=sme.onBulkChange,fme=dme||{},pme=fme.editApi,hme=fme.editInitApi,bme=fme.editDialog;fme.optionLabel;var mme=__assign$3(__assign$3({type:"dialog",title:i18n("cd994c38456676f5a55c5593b6a652bf")},bme),{body:{"amis-select-editControls":!0,type:"form",api:pme,initApi:hme,controls:__spreadArray([],__read$3(cme?Array.isArray(cme)?cme:[cme]:[{type:"input-text",name:"label",label:!1,required:!0,placeholder:i18n("06e2f88f428b7e26f7da3cd4d40ec2ed")}]),!1)}});return React__default.createElement("div",{className:"flex"},React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",level:"enhance",size:"sm",onClick:function(){$P.openSubEditor({title:i18n("fba91204d335ae6eda35809023a94f7f"),value:mme,onChange:function(vme,gme){var yme,_me,$me,Cme,Sme,Eme=JSONPipeOut(vme,function(Ime,Pme){return Ime.substring(0,2)==="__"||Ime==="id"}),xme=omit$1(Eme,["type","body","id"]),Tme=findObjectsWithKey(Eme,"amis-select-editControls"),Ome=(yme=Tme==null?void 0:Tme[0])===null||yme===void 0?void 0:yme.api,Rme=(_me=Tme==null?void 0:Tme[0])===null||_me===void 0?void 0:_me.initApi,Nme=(Cme=($me=Tme==null?void 0:Tme[0])===null||$me===void 0?void 0:$me.controls)!==null&&Cme!==void 0?Cme:(Sme=Tme==null?void 0:Tme[0])===null||Sme===void 0?void 0:Sme.body;ume({editApi:Ome,editInitApi:Rme,editDialog:xme,editControls:Nme})}})}},i18n(cme?"9de4041a80c32ada7fb8b3f212da62d2":"fba91204d335ae6eda35809023a94f7f")),cme&&React__default.createElement(Button$1,{iconOnly:!0,className:"ml-3",size:"sm",onClick:function(){return ume({editControls:void 0})}},React__default.createElement(Icon$1,{icon:"remove",className:"icon"})))}}],!1)}}))});setSchemaTpl("optionDeleteControl",function(x_){var eme=x_||{};eme.manager;var $P=eme.controlSchema,tme=$P===void 0?{}:$P,ame=eme.collections,nme=ame===void 0?[]:ame,rme=eme.replace,ime=Array.isArray(nme)?nme:[nme];return getSchemaTpl("removable",__assign$3(__assign$3({formType:"extend",autoFocus:!1,hiddenOnDefault:!1},tme),{form:{body:__spreadArray(__spreadArray([],__read$3(rme?ime:__spreadArray([],__read$3(ime),!1)),!1),[getSchemaTpl("deleteApi")],!1)}}))});setSchemaTpl("validations",function(){var x_=[{label:i18n("cff1ec632eaf35f64791615e15ce6d76"),value:"isEmail"},{label:i18n("fab6f9029822dea7838bf9908d7f5c09"),value:"isUrl"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),value:"isNumeric"},{label:i18n("1111c44adfa40fe9cb22797d2c1e37e8"),value:"isAlpha"},{label:i18n("725bf3485a0456cf7f65a507ce67254b"),value:"isAlphanumeric"},{label:i18n("96c4ea83892a3227a2aa5b8f3759bca4"),value:"isInt"},{label:i18n("35962d17a3fba5f4802d7845695a3e72"),value:"isFloat"},{label:i18n("28e8e048490110c8dd8e2ad6af324980"),value:"isLength"},{label:i18n("8c4ee6022f1525097a1141acad094d4e"),value:"maxLength"},{label:i18n("17971609e210034c0d6a25b0186e2b7b"),value:"minLength"},{label:i18n("5da893141114a59da868052b3a17a79a"),value:"maximum"},{label:i18n("c322edb884724d04842fc35f4d29a24e"),value:"minimum"},{label:i18n("92448a35f41de3a1fa69135acfed5ce9"),value:"isPhoneNumber"},{label:i18n("193a8c42c1c373f385a4c7b33ffc381e"),value:"isTelNumber"},{label:i18n("6102d474314f27577d89e85b4c6cc4a5"),value:"isZipcode"},{label:"身份证号码(18/15位)",value:"isId"},{label:"身份证号码(18位)",value:"isId18"},{label:i18n("8dbec4f0c05be45a8acf6a5ae9d1f880"),value:"isJson"},{label:i18n("eb242bc7524c797fb1aee2344dec92da"),value:"equals"},{label:i18n("c17d9577233793976d3902c117eed82b"),value:"equalsField"},{label:i18n("b457177c184722b655954a08cf3f71ca"),value:"matchRegexp"},{label:i18n("d3927ffde0fdefc47f910e70226d6a4e"),value:"matchRegexp1"},{label:i18n("0ebee58f4f2a0f807f08a6427dc58497"),value:"matchRegexp2"},{label:i18n("15f52cddb226421e68c70488fff3db5b"),value:"matchRegexp3"},{label:i18n("271b01959e09c0771760f59964baed56"),value:"matchRegexp4"}],eme=["isEmail","isUrl","isNumeric","isAlpha","isAlphanumeric","isInt","isFloat","isJson","isPhoneNumber","isTelNumber","isZipcode","isId"];function $P(tme,ame){var nme=find$3(tme,ame);return nme?nme.value:""}return{type:"combo",syncDefaultValue:!1,name:"validations",label:i18n("4eddee6a20aceddd6bcdf7e0736887ee"),addButtonText:i18n("ba3c802f3ce1641eb6f8986e8d19e672"),multiple:!0,pipeIn:function(tme){if(typeof tme=="string"&&tme&&(tme=str2rules(tme)),!isObject(tme))return tme;var ame=[];return Object.keys(tme).forEach(function(nme){var rme;/^\$\$/.test(nme)||ame.push((rme={type:nme},rme[nme]=Array.isArray(tme[nme])?tme[nme][0]:tme[nme],rme))}),ame},pipeOut:function(tme){if(!Array.isArray(tme))return tme;var ame={};return tme.forEach(function(nme){var rme=nme.type||$P(x_,function(ime){return!ame[ime.value]})||x_[0].value;ame[rme]=nme[rme]||(~eme.indexOf(rme)?!0:"")}),ame},items:[{type:"select",unique:!0,name:"type",options:x_,columnClassName:"w-sm"},{type:"input-number",name:"isLength",visibleOn:'this.type == "isLength"',placeholder:i18n("7be30fe376e9bfd8895ee50e6f4216f3"),value:"1"},{type:"input-number",name:"maximum",visibleOn:'this.type == "maximum"',placeholder:i18n("d00f99fd76e86ba4dab6f70858010ca0")},{type:"input-number",name:"minimum",visibleOn:'this.type == "minimum"',placeholder:i18n("e993ecfbb3f934481257f1bb57056bfe")},{type:"input-number",name:"maxLength",visibleOn:'this.type == "maxLength"',placeholder:i18n("99f5d503544334c670cbe1f400aea9e1")},{type:"input-number",name:"minLength",visibleOn:'this.type == "minLength"',placeholder:i18n("91bdac623455c91b7400328a5600cec0")},{type:"input-text",name:"equals",visibleOn:'this.type == "equals"',placeholder:i18n("7002c4a1b7cb5bc32ffd52e1f2d74c70"),value:""},{type:"input-text",name:"equalsField",visibleOn:'this.type == "equalsField"',placeholder:i18n("aa9cfa5321e589494841ddd90a10c467"),value:""},{type:"input-text",name:"matchRegexp",visibleOn:'this.type == "matchRegexp"',placeholder:i18n("d22b6fb1c857777ba21467835efc65d6")},{type:"input-text",name:"matchRegexp1",visibleOn:'this.type == "matchRegexp1"',placeholder:i18n("d22b6fb1c857777ba21467835efc65d6")},{type:"input-text",name:"matchRegexp2",visibleOn:'this.type == "matchRegexp2"',placeholder:i18n("d22b6fb1c857777ba21467835efc65d6")},{type:"input-text",name:"matchRegexp3",visibleOn:'this.type == "matchRegexp3"',placeholder:i18n("d22b6fb1c857777ba21467835efc65d6")},{type:"input-text",name:"matchRegexp4",visibleOn:'this.type == "matchRegexp4"',placeholder:i18n("d22b6fb1c857777ba21467835efc65d6")}]}});setSchemaTpl("validationErrors",function(){var x_=getI18nEnabled(),eme=[{label:i18n("cff1ec632eaf35f64791615e15ce6d76"),value:"isEmail"},{label:i18n("fab6f9029822dea7838bf9908d7f5c09"),value:"isUrl"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),value:"isNumeric"},{label:i18n("1111c44adfa40fe9cb22797d2c1e37e8"),value:"isAlpha"},{label:i18n("725bf3485a0456cf7f65a507ce67254b"),value:"isAlphanumeric"},{label:i18n("96c4ea83892a3227a2aa5b8f3759bca4"),value:"isInt"},{label:i18n("35962d17a3fba5f4802d7845695a3e72"),value:"isFloat"},{label:i18n("28e8e048490110c8dd8e2ad6af324980"),value:"isLength"},{label:i18n("8c4ee6022f1525097a1141acad094d4e"),value:"maxLength"},{label:i18n("17971609e210034c0d6a25b0186e2b7b"),value:"minLength"},{label:i18n("5da893141114a59da868052b3a17a79a"),value:"maximum"},{label:i18n("c322edb884724d04842fc35f4d29a24e"),value:"minimum"},{label:i18n("8dbec4f0c05be45a8acf6a5ae9d1f880"),value:"isJson"},{label:i18n("92448a35f41de3a1fa69135acfed5ce9"),value:"isPhoneNumber"},{label:i18n("193a8c42c1c373f385a4c7b33ffc381e"),value:"isTelNumber"},{label:i18n("6102d474314f27577d89e85b4c6cc4a5"),value:"isZipcode"},{label:i18n("84e0cb5d57ed995b0cc04b4ab9a7997b"),value:"isId"},{label:i18n("eb242bc7524c797fb1aee2344dec92da"),value:"equals"},{label:i18n("c17d9577233793976d3902c117eed82b"),value:"equalsField"},{label:i18n("b457177c184722b655954a08cf3f71ca"),value:"matchRegexp"},{label:i18n("d3927ffde0fdefc47f910e70226d6a4e"),value:"matchRegexp1"},{label:i18n("0ebee58f4f2a0f807f08a6427dc58497"),value:"matchRegexp2"},{label:i18n("15f52cddb226421e68c70488fff3db5b"),value:"matchRegexp3"},{label:i18n("271b01959e09c0771760f59964baed56"),value:"matchRegexp4"}],$P={isEmail:i18n("1b7e06ef04d7167e174eb6929421592f"),isRequired:i18n("2d163645de4d4b4760e9fbdb535a1a88"),isUrl:i18n("87c91ce706ab845b55ce95372265b92e"),isInt:i18n("2b702fb5b95d47944246f79ae4032281"),isAlpha:i18n("48e2aca8e6347b008b6fbdb48fc4b597"),isNumeric:i18n("de66a286057d4e3f1ee2d9bccbd48ce5"),isAlphanumeric:i18n("ae344073ea6ca9ce742899cdf6d3e106"),isFloat:i18n("84f46c9b82c3c8fe276dfa65173c59bb"),isWords:i18n("48e2aca8e6347b008b6fbdb48fc4b597"),isUrlPath:i18n("fb73d98245f558dbb2d6a0c8d2699780"),matchRegexp:i18n("923a91fdc2c777f8443c85278060195a"),minLength:i18n("d87b1a3d180a1cc56bbd174d2860ca4c"),maxLength:i18n("9b8d6abb2f03fbcbdb0e4d2b1970a751"),maximum:i18n("2a5d0be4d5cd088f0371ba6f8656fe7a"),minimum:i18n("8256618e16217325e6a1d880f8eb7adb"),isJson:i18n("f58829312013d929923b0c2a1fbacf19"),isPhoneNumber:i18n("161278fb2c71e5a8aa8aac50f230233d"),isTelNumber:i18n("ba42949accfe87c20e6c2486cd065dd2"),isZipcode:i18n("1d2c5048143328e21cb9c2dd84b696fb"),isId:i18n("038b3ed111e87b56572f3945a1b0e02c"),isLength:i18n("335e2618dda48c05f4f833ebb1e299df"),notEmptyString:i18n("bce45e909d6d14a126554c8cf6f65a13"),equalsField:i18n("17bb8e76f78bd16a1841e36ab8462e53"),equals:i18n("ab534c35774dccc322331a079ae6e7df")};function tme(ame,nme){var rme=find$3(ame,nme);return rme?rme.value:""}return{type:"combo",syncDefaultValue:!1,name:"validationErrors",label:i18n("ebd0dc3ebde6182caa3b66e0faf658b6"),description:i18n("d7772d568894afbb1c924bed7f7ddb32"),addButtonText:i18n("58c9592f818d706420236c6f9f595517"),multiple:!0,pipeIn:function(ame){if(!isObject(ame))return ame;var nme=[];return Object.keys(ame).forEach(function(rme){/^\$\$/.test(rme)||nme.push({type:rme,msg:ame[rme]})}),nme},pipeOut:function(ame){if(!Array.isArray(ame))return ame;var nme={};return ame.forEach(function(rme){var ime=rme.type||tme(eme,function(ome){return!nme[ome.value]})||eme[0].value;nme[ime]=rme.msg||$P[ime]||""}),nme},items:[{type:"select",unique:!0,name:"type",options:eme,columnClassName:"w-sm"},{type:x_?"input-text-i18n":"input-text",name:"msg",placeholder:i18n("99c74120cc62f4bf31d661e3212b7121")},{type:"formula",name:"msg",initSet:!1,formula:`({
          isEmail: 'Email 格式不正确',
          isRequired: '这是必填项',
          isUrl: 'Url 格式不正确',
          isInt: '请输入整形数字',
          isAlpha: '请输入字母',
          isNumeric: '请输入数字',
          isAlphanumeric: '请输入字母或者数字',
          isFloat: '请输入浮点型数值',
          isWords: '请输入字母',
          isUrlPath: '只能输入字母、数字、\`-\` 和 \`_\`.',
          matchRegexp: '格式不正确, 请输入符合规则为 \`$1\` 的内容。',
          minLength: '请输入更多的内容，至少输入 $1 个字符。',
          maxLength: '请控制内容长度, 请不要输入 $1 个字符以上',
          maximum: '当前输入值超出最大值 $1，请检查',
          minimum: '当前输入值低于最小值 $1，请检查',
          isJson: '请检查 Json 格式。',
          isLength: '请输入长度为 $1 的内容',
          notEmptyString: '请不要全输入空白字符',
          equalsField: '输入的数据与 $1 值不一致',
          equals: '输入的数据与 $1 不一致',
          isPhoneNumber: '请输入合法的手机号码',
          isTelNumber: '请输入合法的电话号码',
          isZipcode: '请输入合法的邮编地址',
          isId: '请输入合法的身份证号',
      })[data.type] || ''`}]}});setSchemaTpl("submitOnChange",{type:"switch",label:i18n("171f7b825707ddd79175fed3f8def6cd"),name:"submitOnChange",mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline ",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:i18n("6ccb7091c39a5229f7e77eff4dd44a0e"),placement:"left"}});setSchemaTpl("validateOnChange",{type:"select",name:"validateOnChange",overlayPlacement:"top",label:i18n("1a006028adf7167ae28cdf532bb75ef4"),options:[{label:i18n("8d877748c3bc71b517e2d46344916b3f"),value:""},{label:i18n("2c60032f2a57717e4f7c16ee185795d6"),value:!0},{label:i18n("5ed62f810226722d7c910c2d8dc4a0e8"),value:!1}],pipeIn:defaultValue(""),pipeOut:function(x_){return x_===""?void 0:!!x_}});setSchemaTpl("validation",function(x_){var eme={title:i18n("b7579706a363e5f23b1040fecfbcb677"),body:[__assign$3({type:"ae-validationControl",mode:"normal",style:{marginBottom:"6px"}},x_),getSchemaTpl("validationApiControl"),getSchemaTpl("validateOnChange")]};return eme});setSchemaTpl("validationApiControl",{type:"ae-validationApiControl",label:!1});setSchemaTpl("validationControl",function(x_){return x_===void 0&&(x_=[]),{type:"ae-validationControl",label:i18n("8101a0aec7eba32e633e3cc29f4b7ede"),mode:"normal",pipeIn:function(eme,$P){return reduce$1(eme,function(tme,ame){if(typeof ame=="string")tme.push(ame);else{var nme=!1;forEach$3(ame==null?void 0:ame.isShow,function(rme,ime){return __spreadArray([],__read$3(rme),!1).includes($P==null?void 0:$P.data[ime])?(nme=!0,!1):!0}),!nme&&forEach$3(ame==null?void 0:ame.isHidden,function(rme,ime){var ome=__spreadArray([],__read$3(rme),!1).includes($P==null?void 0:$P.data[ime]);return nme=!ome,!ome}),nme&&tme.push(ame.option)}return tme},[])},value:x_}});var animationOptions={enter:[{label:"淡入",children:[{label:"淡入",value:"fadeIn"},{value:"fadeInDown",label:"从上淡入"},{value:"fadeInDownBig",label:"从上淡入(加强效果)"},{value:"fadeInLeft",label:"从左淡入"},{value:"fadeInLeftBig",label:"从左淡入(加强效果)"},{value:"fadeInRight",label:"从右淡入"},{value:"fadeInRightBig",label:"从右淡入(加强效果)"},{value:"fadeInUp",label:"从下淡入"},{value:"fadeInUpBig",label:"从下淡入(加强效果)"}]},{label:"回弹",children:[{value:"backInDown",label:"从上回弹进入"},{value:"backInLeft",label:"从左回弹进入"},{value:"backInRight",label:"从右回弹进入"},{value:"backInUp",label:"从下回弹进入"}]},{label:"旋转",children:[{value:"rotateIn",label:"旋转进入"},{value:"rotateInDownLeft",label:"左上角旋转进入"},{value:"rotateInDownRight",label:"右上角旋转进入"},{value:"rotateInUpLeft",label:"左下角旋转进入"},{value:"rotateInUpRight",label:"右下角旋转进入"}]},{label:"滑动",children:[{value:"slideInUp",label:"从下滑入"},{value:"slideInDown",label:"从上滑入"},{value:"slideInLeft",label:"从左滑入"},{value:"slideInRight",label:"从右滑入"}]},{label:"翻页",children:[{value:"flip",label:"翻页"},{value:"flipInY",label:"水平翻页"},{value:"flipInX",label:"垂直翻页"}]},{label:"弹跳",children:[{value:"bounceIn",label:"弹跳进入"},{value:"bounceInDown",label:"从上弹跳进入"},{value:"bounceInLeft",label:"从左弹跳进入"},{value:"bounceInRight",label:"从右弹跳进入"},{value:"bounceInUp",label:"从下弹跳进入"}]},{label:"缩放",children:[{value:"zoomIn",label:"缩放进入"},{value:"zoomInDown",label:"从上缩放进入"},{value:"zoomInLeft",label:"从左缩放进入"},{value:"zoomInRight",label:"从右缩放进入"},{value:"zoomInUp",label:"从下缩放进入"}]},{label:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),children:[{value:"lightSpeedInLeft",label:"从左光速进入"},{value:"lightSpeedInRight",label:"从右光速进入"},{value:"rollIn",label:"滚动进入"}]}],attention:[{label:"弹跳",value:"bounce"},{label:"闪烁",value:"flash"},{value:"headShake",label:"摇头"},{value:"heartBeat",label:"心跳"},{value:"jello",label:"果冻"},{label:"跳动",value:"pulse"},{label:"摇摆",value:"swing"},{label:"震动",value:"tada"},{label:"晃动",value:"wobble"},{label:"抖动",value:"shake"},{value:"shakeX",label:"水平抖动"},{value:"shakeY",label:"垂直抖动"},{value:"rubberBand",label:"橡皮筋"}],exit:[{label:"淡出",children:[{label:"淡出",value:"fadeOut"},{value:"fadeOutDown",label:"向下淡出"},{value:"fadeOutDownBig",label:"向下淡出(加强效果)"},{value:"fadeOutLeft",label:"向左淡出"},{value:"fadeOutLeftBig",label:"向左淡出(加强效果)"},{value:"fadeOutRight",label:"向右淡出"},{value:"fadeOutRightBig",label:"向右淡出(加强效果)"},{value:"fadeOutUp",label:"向上淡出"},{value:"fadeOutUpBig",label:"向上淡出(加强效果)"}]},{label:"回弹",children:[{value:"backOutDown",label:"向下回弹退出"},{value:"backOutLeft",label:"向左回弹退出"},{value:"backOutRight",label:"向右回弹退出"},{value:"backOutUp",label:"向上回弹退出"}]},{label:"旋转",children:[{value:"rotateOut",label:"旋转退出"},{value:"rotateOutDownLeft",label:"左上角旋转退出"},{value:"rotateOutDownRight",label:"右上角旋转退出"},{value:"rotateOutUpLeft",label:"左下角旋转退出"},{value:"rotateOutUpRight",label:"右下角旋转退出"}]},{label:"滑动",children:[{value:"slideOutUp",label:"向上滑入"},{value:"slideOutDown",label:"向下滑入"},{value:"slideOutLeft",label:"向左滑入"},{value:"slideOutRight",label:"向右滑入"}]},{label:"翻页",children:[{value:"flipOutY",label:"水平翻页"},{value:"flipOutX",label:"垂直翻页"}]},{label:"弹跳",children:[{value:"bounceOut",label:"弹跳退出"},{value:"bounceOutDown",label:"向下弹跳退出"},{value:"bounceOutLeft",label:"向左弹跳退出"},{value:"bounceOutRight",label:"向右弹跳退出"},{value:"bounceOutUp",label:"向上弹跳退出"}]},{label:"缩放",children:[{value:"zoomOut",label:"缩放退出"},{value:"zoomOutDown",label:"向上缩放退出"},{value:"zoomOutLeft",label:"向左缩放退出"},{value:"zoomOutRight",label:"向右缩放退出"},{value:"zoomOutUp",label:"向下缩放退出"}]},{label:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),children:[{value:"lightSpeedOutLeft",label:"向左光速退出"},{value:"lightSpeedOutRight",label:"向右光速退出"},{value:"rollOut",label:"滚动退出"}]}]};setSchemaTpl("style:formItem",function(x_){var eme=x_.renderer,$P=x_.schema;return{title:i18n("55b45c73ae417c4dead67905b1550e85"),key:"formItem",body:[getSchemaTpl("formItemMode"),getSchemaTpl("labelHide"),getSchemaTpl("horizontal"),(eme==null?void 0:eme.sizeMutable)!==!1?getSchemaTpl("formItemSize"):null].concat($P)}});setSchemaTpl("theme:formItem",function(x_){var eme=x_===void 0?{hidSize:!1}:x_,$P=eme.schema,tme=eme.hidSize;return{title:i18n("55b45c73ae417c4dead67905b1550e85"),key:"formItem",body:[getSchemaTpl("theme:labelHide"),!tme&&{type:"col-size",name:"__size",label:i18n("c28479019e24e0e4745f4948e9e97ee7")}].filter(Boolean).concat($P)}});setSchemaTpl("style:classNames",function(x_){var eme=x_||{},$P=eme.isFormItem,tme=$P===void 0?!0:$P,ame=eme.unsupportStatic,nme=ame===void 0?!1:ame,rme=eme.schema,ime=rme===void 0?[]:rme,ome=eme.collapsed,lme=ome===void 0?!0:ome;return{title:i18n("4434b33a8731a73613ba5fa1eb984efb"),collapsed:lme,body:(tme?__spreadArray([getSchemaTpl("className",{label:i18n("55b45c73ae417c4dead67905b1550e85")}),getSchemaTpl("className",{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),name:"labelClassName"}),getSchemaTpl("className",{label:i18n("e1b2f870112bd38f8d7e14a0ad589930"),name:"inputClassName"})],__read$3(nme?[]:[getSchemaTpl("className",{label:i18n("04f5f12c49c2a6fdc43da049591328ad"),name:"staticClassName"})]),!1):[getSchemaTpl("className",{label:i18n("5e5d3f13111593b2710673006d4c8297")})]).concat(ime)}});setSchemaTpl("style:others",function(x_){return x_===void 0&&(x_=[]),{title:i18n("c49fc970bcd168e1c652a8ced5d95d0d"),body:__spreadArray([],__read$3(x_),!1)}});setSchemaTpl("style:common",function(x_,eme){return x_=(x_?Array.isArray(x_)?x_:[x_]:[]).map(function($P){return kebabCase$1($P)}),eme=(eme?Array.isArray(eme)?eme:[eme]:[]).map(function($P){return kebabCase$1($P)}),[{header:i18n("5aefca559c5a41d10078e21e6d616825"),key:"layout",body:[{type:"style-display",label:!1,name:"style"}].filter(function($P){return!~x_.indexOf($P.type.replace(/^style-/i,""))})},{header:i18n("ca746b1ff10193a3ce20878dec04a733"),key:"font",body:[{type:"style-font",label:!1,name:"style"}]},{header:i18n("9a233b241eef54521cfe9365bfaa7b2f"),key:"box-model",body:[{type:"style-box-model",label:!1,name:"style"}]},{header:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),key:"background",body:[{type:"style-background",label:!1,name:"style"}]},{header:i18n("961534b4ea37e4e88aada736b299d063"),key:"border",body:[{type:"style-border",label:!1,name:"style"}]},{header:i18n("803205e38834280d9e6a75993ac00764"),key:"box-shadow",body:[{type:"style-box-shadow",label:!1,name:"style.boxShadow"}]},{header:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),key:"other",body:[{label:i18n("34dac4adbc96afd65f060cc4cfff1feb"),name:"style.opacity",min:0,max:1,step:.05,type:"input-range",pipeIn:defaultValue(1),marks:{"0%":"0","50%":"0.5","100%":"1"}},{label:i18n("a45b5d3fcdb8210d249b2c6d545b6691"),name:"style.cursor",type:"select",mode:"row",menuTpl:{type:"html",html:"<span style='cursor:${value};'>${label}</span><code class='ae-Code'>${value}</code>",className:"ae-selection-code"},pipIn:defaultValue("default"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"},{label:i18n("2c3888961c01fc9c466d88c88029158f"),value:"none"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"pointer"},{label:i18n("92e3a830ae9a1252278da742c0af74c3"),value:"help"},{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"text"},{label:i18n("1ebd0cd417700f3f4a7ee5f64518fcd1"),value:"cell"},{label:i18n("87e277f953fd3c867d7fa02897c2c124"),value:"crosshair"},{label:i18n("c19639326396d2527268484379a671d8"),value:"move"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"not-allowed"},{label:i18n("183f48b3c1f0f84e538cd4315e5645e9"),value:"grab"},{label:i18n("4f9b192ce84b4df0900510257082ef43"),value:"zoom-in"},{label:i18n("b21ac25366449b1720bdd75d39f163d2"),value:"zoom-out"}]}]}].filter(function($P){return eme.length?~eme.indexOf($P.key):!~x_.indexOf($P.key)})});setSchemaTpl("style:widthHeight",function(x_){x_===void 0&&(x_={});var eme=x_.widthSchema,$P=eme===void 0?{}:eme,tme=x_.heightSchema,ame=tme===void 0?{}:tme;return{type:"container",body:[__assign$3({type:"input-number",name:"width",label:i18n("c28479019e24e0e4745f4948e9e97ee7"),unitOptions:["px","%","rem","em","vw"]},$P),__assign$3({type:"input-number",name:"height",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),unitOptions:["px","%","rem","em","vh"]},ame)]}});i18n("ca746b1ff10193a3ce20878dec04a733"),i18n("93ab99d761c9ca97dc926e6db10469a3"),i18n("86cdd659decaa1b959795eff92a0c2d6"),i18n("7ec907e7059b758ace2f3adb9bb803ff"),i18n("d5bc35360607472de4525358af126de4"),i18n("8e1b944f4389bdaab6f11d5bc83190c8"),i18n("6b36c6f7ec834692ec6c8e3816349fdd"),getSchemaTpl("imageUrl",{name:"backgroundImage"}),i18n("e8ed49e9fde0bb778e2185876c2d2697"),i18n("4e7f76261f8c4c6d78998f85fc1f4c6e"),i18n("af767b7e4ae069d54f9ea839858d4c6d"),i18n("4d9c32c23df5d234e629c922c58d8e12"),i18n("3850a186c3235bc646d4c2f79cebac36"),i18n("d2aff1417831aa621c16cd5b95306b4b"),i18n("841d77223f0ec8cd0b530ed8e0775b20"),i18n("af767b7e4ae069d54f9ea839858d4c6d"),i18n("4d9c32c23df5d234e629c922c58d8e12"),i18n("3850a186c3235bc646d4c2f79cebac36"),i18n("d2aff1417831aa621c16cd5b95306b4b"),i18n("961534b4ea37e4e88aada736b299d063"),i18n("39003734d1d700d5bd97bf1e7a2fcf73"),i18n("6b36c6f7ec834692ec6c8e3816349fdd"),i18n("c28479019e24e0e4745f4948e9e97ee7"),i18n("b5bd9a6703f5433ff34aa0af9049740c"),i18n("14eb3a698316caf3fbe9b2ab9c3d9527"),i18n("34dac4adbc96afd65f060cc4cfff1feb"),defaultValue(1),i18n("803205e38834280d9e6a75993ac00764");setSchemaTpl("theme:cssCode",function(){return{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),body:[{type:"theme-cssCode",label:!1}]}});setSchemaTpl("theme:singleCssCode",function(x_){var eme=x_.selectors;return{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),name:"wrapperCustomStyle",body:eme==null?void 0:eme.map(function($P){var tme=$P.isRoot,ame=$P.selector,nme=tme?"root":ame,rme="wrapperCustomStyle[".concat(nme,"]");return{mode:"default",name:rme,type:"ae-single-theme-cssCode",label:!1,selector:$P}})}});setSchemaTpl("theme:form-label",function(){return{title:i18n("35633d4bcf019258d4a5b927e8644bed"),visibleOn:"this.label !== false",body:[{type:"label-align",name:"labelAlign",label:i18n("d4d2a66820d30e07b44c850eb3f116c0")},getSchemaTpl("theme:select",{label:i18n("c28479019e24e0e4745f4948e9e97ee7"),name:"labelWidth",hiddenOn:'this.labelAlign == "top"'}),getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.labelClassName.font:default",hasSenior:!1,editorValueToken:"--Form-item"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.labelClassName.padding-and-margin:default"})]}});setSchemaTpl("theme:form-description",function(){return{title:i18n("ef55ff12fb0d3efa3491236fee4dabc2"),visibleOn:"this.description",body:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.descriptionClassName.font:default",editorValueToken:"--Form-description"}),{label:"上间距",type:"amis-theme-select",name:"themeCss.descriptionClassName.margin-top:default",options:"${sizesOptions}",editorValueToken:"--Form-description-gap"}]}});setSchemaTpl("theme:select",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"horizontal",labelAlign:"left",type:"amis-theme-select",label:i18n("58f966670529f4753fb3c5a0647606be"),name:"themeCss.className.select:default",options:"${sizesOptions}"},x_)});setSchemaTpl("theme:font",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-font-editor",label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.className.font:default",needColorCustom:!0},x_)});setSchemaTpl("theme:colorPicker",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-color-picker",label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),name:"themeCss.className.color:default",needCustom:!0},x_)});setSchemaTpl("theme:border",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-border",label:i18n("961534b4ea37e4e88aada736b299d063"),name:"themeCss.className.border:default",needColorCustom:!0},x_)});setSchemaTpl("theme:paddingAndMargin",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-padding-and-margin",label:i18n("e8ed49e9fde0bb778e2185876c2d2697"),name:"themeCss.className.padding-and-margin:default"},x_)});setSchemaTpl("theme:radius",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-radius",label:i18n("0103eb2d3dca70270d1a74e9ec987ac9"),name:"themeCss.className.radius:default"},x_)});setSchemaTpl("theme:shadow",function(x_){return x_===void 0&&(x_={}),__assign$3({type:"amis-theme-shadow-editor",label:!1,name:"themeCss.className.boxShadow:default",hasSenior:!0},x_)});setSchemaTpl("theme:size",function(x_){return x_===void 0&&(x_={}),__assign$3({mode:"default",type:"amis-theme-size-editor",label:!1,name:"themeCss.className.size:default",options:"${sizesOptions}",hideMinWidth:!0},x_)});setSchemaTpl("theme:base",function(x_){var eme=x_.collapsed,$P=eme===void 0?!1:eme,tme=x_.extra,ame=tme===void 0?[]:tme,nme=x_.classname,rme=nme===void 0?"baseControlClassName":nme,ime=x_.title,ome=ime===void 0?i18n("6f99b6eed37795cb97d5f6370c32113b"):ime,lme=x_.hiddenOn,sme=x_.visibleOn,cme=x_.hidePaddingAndMargin,dme=x_.hideBorder,ume=x_.hideRadius,fme=x_.hideBackground,pme=x_.hideShadow,hme=x_.hideMargin,bme=x_.hidePadding,mme=x_.needState,vme=mme===void 0?!0:mme,gme=x_.editorValueToken,yme=x_.state,_me=yme===void 0?["default","hover","active"]:yme,$me=rme.replace(/\-/g,"_"),Cme=function(Eme,xme){return[!dme&&getSchemaTpl("theme:border",{visibleOn:Eme,name:"themeCss.".concat(rme,".border").concat(vme?":"+xme:""),state:xme,editorValueToken:gme}),!ume&&getSchemaTpl("theme:radius",{visibleOn:Eme,name:"themeCss.".concat(rme,".radius").concat(vme?":"+xme:""),state:xme,editorValueToken:gme}),!cme&&getSchemaTpl("theme:paddingAndMargin",{visibleOn:Eme,name:"themeCss.".concat(rme,".padding-and-margin").concat(vme?":"+xme:""),hideMargin:hme,hidePadding:bme,state:xme,editorValueToken:gme}),!fme&&getSchemaTpl("theme:colorPicker",{visibleOn:Eme,name:"themeCss.".concat(rme,".background").concat(vme?":"+xme:""),label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),needCustom:!0,needGradient:!0,needImage:!0,labelMode:"input",state:xme,editorValueToken:gme?"".concat(gme,"-${__editorState").concat($me," || 'default'}-bg-color"):void 0}),!pme&&getSchemaTpl("theme:shadow",{visibleOn:Eme,name:"themeCss.".concat(rme,".boxShadow").concat(vme?":"+xme:""),state:xme,editorValueToken:gme})].filter(function(Tme){return Tme}).concat(ame.map(function(Tme){return __assign$3(__assign$3({},Tme),{visibleOn:Eme,name:"".concat(Tme.name).concat(vme?":"+xme:""),state:xme})}))},Sme=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([vme&&{type:"select",mode:"horizontal",labelAlign:"left",labelWidth:80,name:"__editorState".concat($me),label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"active"},{label:"选中",value:"focused"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"disabled"}].filter(function(Eme){return _me.includes(Eme.value)})}],__read$3(Cme("${__editorState".concat($me," == 'default' || !__editorState").concat($me,"}"),"default")),!1),__read$3(Cme("${__editorState".concat($me," == 'hover'}"),"hover")),!1),__read$3(Cme("${__editorState".concat($me," == 'active'}"),"active")),!1),__read$3(Cme("${__editorState".concat($me," == 'focused'}"),"focused")),!1),__read$3(Cme("${__editorState".concat($me," == 'disabled'}"),"disabled")),!1).filter(Boolean);return{title:ome,collapsed:$P,body:Sme,hiddenOn:lme,visibleOn:sme}});setSchemaTpl("theme:common",function(x_){var eme=x_||{},$P=eme.exclude,tme=eme.collapsed,ame=eme.extra,nme=ame===void 0?[]:ame,rme=eme.baseExtra,ime=eme.layoutExtra,ome=eme.classname,lme=eme.baseTitle,sme=eme.hidePaddingAndMargin,cme=eme.hideAnimation,dme=eme.needState,ume=dme===void 0?!0:dme,fme=tme??!1;return $P=($P?Array.isArray($P)?$P:[$P]:[]).map(function(pme){return kebabCase$1(pme)}),__spreadArray(__spreadArray([{header:i18n("5aefca559c5a41d10078e21e6d616825"),key:"layout",collapsed:fme,body:[{type:"style-display",label:!1,name:"style"}].filter(function(pme){return!~$P.indexOf(pme.type.replace(/^style-/i,""))}).concat(ime||[])},getSchemaTpl("theme:base",{collapsed:fme,extra:rme,classname:ome,title:lme,needState:ume,hidePaddingAndMargin:sme})],__read$3(nme),!1),[{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),key:"theme-css-code",collapsed:fme,body:[{type:"theme-cssCode",label:!1}]},!cme&&getSchemaTpl("animation")],!1).filter(function(pme){return!~$P.indexOf(pme.key||"")})});setSchemaTpl("theme:icon",function(x_){var eme=x_.classname,$P=eme===void 0?"iconControlClassName":eme,tme=x_.visibleOn,ame=x_.title,nme=ame===void 0?"图标样式":ame;return{title:nme,visibleOn:tme,body:[getSchemaTpl("theme:select",{label:i18n("7893f221dae53be8e3bfe72d2eb8a240"),name:"themeCss.".concat($P,".iconSize")}),getSchemaTpl("theme:colorPicker",{name:"themeCss.".concat($P,".color"),label:i18n("988d7b545c09108379a54a1e6060f563"),needCustom:!0,needGradient:!0,labelMode:"input"}),getSchemaTpl("theme:paddingAndMargin",{label:"图标边距",name:"themeCss.".concat($P,".padding-and-margin")})]}});setSchemaTpl("animation",function(){var x_=null;function eme(tme,ame,nme){var rme=document,ime=window.editorStore.isMobile;ime&&(rme=document.getElementsByClassName("ae-PreviewIFrame")[0].contentDocument);var ome=document.getElementById("aePreviewHighlightBox");ome&&(ome.style.opacity="0",ome.classList.add("ae-Preview-widgets--no-transition"));var lme=rme.querySelector('[name="'.concat(ame,'"]'));ame=formateId(ame);var sme="".concat(tme[nme].type,"-").concat(ame,"-").concat(nme);if(lme==null||lme.classList.add(sme),createAnimationStyle(ame,tme),ime){var cme=rme.getElementById("amis-styles");cme||(cme=rme.createElement("style"),cme.id="amis-styles",rme.head.appendChild(cme)),cme.innerHTML=styleManager.styleText}x_&&clearTimeout(x_),x_=setTimeout(function(){if(lme==null||lme.classList.remove(sme),ome){var dme=lme==null?void 0:lme.getAttribute("data-editor-id"),ume=window.editorStore.getNodeById(dme);ume.calculateHighlightBox(),ome.style.opacity="1",setTimeout(function(){ome.classList.remove("ae-Preview-widgets--no-transition")},150)}},((tme[nme].duration||1)+(tme[nme].delay||0))*1e3+200)}var $P=function(tme,ame,nme){return nme===void 0&&(nme=[]),[{type:"switch",name:"animations.".concat(tme),pipeIn:function(rme){return!!rme},pipeOut:function(rme){if(rme)return{}},onChange:function(rme,ime,ome,lme){var sme,cme=lme.data;if(rme){var dme=cme.id,ume="fadeIn";"children"in animationOptions[tme][0]?ume=animationOptions[tme][0].children[0].value:ume=animationOptions[tme][0].value,eme((sme={},sme[tme]={delay:0,duration:1,type:ume},sme),dme,tme)}},label:ame},{type:"container",className:"m-b ae-ExtendMore",visibleOn:"${animations && animations.".concat(tme,"}"),body:__spreadArray([{type:"select",name:"animations.".concat(tme,".type"),selectMode:"group",options:animationOptions[tme],label:i18n("226b0912184333c81babf2f1894ec0c1"),selectFirst:!0,onChange:function(rme,ime,ome,lme){var sme,cme=lme.data,dme=cme.animations,ume=cme.id;ime!==void 0&&eme(__assign$3(__assign$3({},dme),(sme={},sme[tme]=__assign$3(__assign$3({},dme[tme]),{type:rme}),sme)),ume,tme)}},{type:"input-number",name:"animations.".concat(tme,".duration"),label:"持续",value:1,suffix:"秒",min:0,precision:3,onChange:function(rme,ime,ome,lme){var sme,cme=lme.data,dme=cme.animations,ume=cme.id;ime!==void 0&&eme(__assign$3(__assign$3({},dme),(sme={},sme[tme]=__assign$3(__assign$3({},dme[tme]),{duration:rme}),sme)),ume,tme)}},{label:"延迟",type:"input-number",name:"animations.".concat(tme,".delay"),value:0,suffix:"秒",precision:3,onChange:function(rme,ime,ome,lme){var sme,cme=lme.data,dme=cme.animations,ume=cme.id;ime!==void 0&&eme(__assign$3(__assign$3({},dme),(sme={},sme[tme]=__assign$3(__assign$3({},dme[tme]),{delay:rme}),sme)),ume,tme)}}],__read$3(nme),!1)},{type:"button",visibleOn:"${animations && animations.".concat(tme,"}"),className:"m-b",block:!0,level:"enhance",size:"sm",label:i18n("b85270cd3c06d8eb635eadcffbb10119"),onClick:function(rme,ime){var ome=ime.data,lme=ome.animations,sme=ome.id;eme(lme,sme,tme)}}]};return{title:i18n("b599979e9a40823363451aeaadc0723f"),body:__spreadArray(__spreadArray(__spreadArray([],__read$3($P("enter","进入动画")),!1),__read$3($P("attention","强调动画",[{label:"重复",type:"select",name:"animations.attention.repeat",value:"infinite",options:__spreadArray(__spreadArray([],__read$3([1,2,3,4,5,6,7,8,9,10].map(function(tme){return{label:tme,value:tme}})),!1),[{label:"无限",value:"infinite"}],!1)}])),!1),__read$3($P("exit","退出动画")),!1)}});var LayoutUnitOptions=["px","%","em","vh","vw"];setSchemaTpl("layout:position",function(x_){var eme={type:"select",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("b19b454fe603e03e98ad9772615c7c32"),i18n("8444f01399c0003fbb68eeff1310566c")),name:(x_==null?void 0:x_.name)||"style.position",value:(x_==null?void 0:x_.value)||"static",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,onChange:function($P,tme,ame,nme){$P==="static"?(nme.deleteValueByName("style.inset"),nme.deleteValueByName("style.zIndex"),nme.deleteValueByName("originPosition")):$P==="fixed"||$P==="absolute"?(nme.setValueByName("style.zIndex",1),nme.setValueByName("style.inset","auto 50px 50px auto"),nme.setValueByName("originPosition","right-bottom")):$P==="relative"&&(nme.setValueByName("style.zIndex",1),nme.setValueByName("style.inset","auto"),nme.deleteValueByName("originPosition")),$P!=="sticky"&&nme.deleteValueByName("stickyStatus")},options:[{label:i18n("aae5ccb98564e19c48f19c740c3c10b7"),value:"static"},{label:"相对原位置定位(relative)",value:"relative"},{label:"视窗中悬浮(fixed)",value:"fixed"},{label:"绝对定位(absolute)",value:"absolute"}]};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},eme)]}:eme});setSchemaTpl("layout:inset",function(x_){var eme,$P={type:"inset-box-model",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("86a6b5a0a45bba5b6187cc2277e3375e"),i18n("6e72759ed1cbf9f9e8523197dd93888f")),name:(x_==null?void 0:x_.name)||"style.inset",value:(x_==null?void 0:x_.value)||"auto",visibleOn:(eme=x_==null?void 0:x_.visibleOn)!==null&&eme!==void 0?eme:'this.style && this.style.position && this.style.position !== "static"',pipeIn:function(tme){var ame=tme||"auto";isNumber$5(ame)&&(ame=ame.toString()),isString$8(ame)||(ame="0");var nme=ame.split(" ");return{insetTop:nme[0]||"auto",insetRight:nme[1]||"auto",insetBottom:nme[2]||nme[0]||"auto",insetLeft:nme[3]||nme[1]||"auto"}},pipeOut:function(tme){var ame,nme,rme,ime;return"".concat((ame=tme.insetTop)!==null&&ame!==void 0?ame:"auto"," ").concat((nme=tme.insetRight)!==null&&nme!==void 0?nme:"auto"," ").concat((rme=tme.insetBottom)!==null&&rme!==void 0?rme:"auto"," ").concat((ime=tme.insetLeft)!==null&&ime!==void 0?ime:"auto")}};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:z-index",function(x_){var eme,$P={type:"input-number",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("8e903bee4578f72bbecf9eb62d7b875c"),i18n("6f649980c839dffca1506f20d534fe3d")),name:(x_==null?void 0:x_.name)||"style.zIndex",value:x_==null?void 0:x_.value,visibleOn:(eme=x_==null?void 0:x_.visibleOn)!==null&&eme!==void 0?eme:'this.style && this.style.position && this.style.position !== "static"',pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:display",function(x_){var eme=compact$1([!(x_!=null&&x_.flexHide)&&{label:i18n("39353c2b258e4bc73d8dd6a46f0a7955"),icon:"flex-display",value:"flex"},{label:i18n("10710f1c01d960a3ffde384115296026"),icon:"block-display",value:"block"},{label:i18n("26b10072a4e0c8c9a3a1142db3d7b3b4"),icon:"inline-block-display",value:"inline-block"},{label:i18n("2c7fe494c99c94ba5965f963fd7d3a4c"),icon:"inline-display",value:"inline"}]),$P={type:"icon-button-group",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("a5d833839a610994dc4752e2d91f4192"),i18n("a8489cf57d7f44e889aff79434776f47")),name:(x_==null?void 0:x_.name)||"style.display",value:(x_==null?void 0:x_.value)||"block",visibleOn:x_==null?void 0:x_.visibleOn,options:eme,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,onChange:function(tme,ame,nme,rme){tme!=="flex"&&tme!=="inline-flex"&&(rme.deleteValueByName("style.flexDirection"),rme.deleteValueByName("style.justifyContent"),rme.deleteValueByName("style.alignItems"),rme.deleteValueByName("style.flexWrap"))}};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:justifyContent",function(x_){var eme=[{label:i18n("4ba6c2256050d805ae5cd1e0e84737cf"),value:"flex-start"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("abeb360ab1e66534a041fb8b44e1a00e"),value:"flex-end"},{label:i18n("d5a3cb1cc31a0469b011abdbd3e947f7"),value:"space-around"},{label:i18n("85530444a72a840ee657e2df99970136"),value:"space-between"},{label:i18n("9aad08fbd356fb4279f0efa81b3d016e"),value:"space-evenly"},{label:i18n("ae558cbf4c35d381b6542f517f2e8dff"),value:"stretch"}],$P={type:"select",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("dde193342b8c350ae29795117c0c5b9a"),i18n("0a0574baedb8eb2abf7daf25159d8bb1")),name:(x_==null?void 0:x_.name)||"style.justifyContent",value:(x_==null?void 0:x_.value)||"flex-start",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:(x_==null?void 0:x_.options)||eme};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:alignItems",function(x_){var eme=[{label:i18n("4ba6c2256050d805ae5cd1e0e84737cf"),value:"flex-start"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("abeb360ab1e66534a041fb8b44e1a00e"),value:"flex-end"},{label:i18n("ed97c73866617b40a7b1215867e0f489"),value:"baseline"},{label:i18n("7ac1519928de413cfe36f5d2e0610430"),value:"stretch"}],$P={type:"select",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("5b15af1f73b4f2d5bb152410863602f4"),i18n("5ccc4c05cd41195f202f550a4c307a64")),name:(x_==null?void 0:x_.name)||"style.alignItems",value:(x_==null?void 0:x_.value)||"stretch",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:(x_==null?void 0:x_.options)||eme};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:flexDirection",function(x_){var eme={type:"select",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("78d32d2bd35c0262fe77b517c5a4fb62"),i18n("3fa460b81736c0360f6f7571801935b1")),name:(x_==null?void 0:x_.name)||"style.flexDirection",value:(x_==null?void 0:x_.value)||"row",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"row"},{label:i18n("fa228d6bec96d052de0ad369407f5241"),value:"row-reverse"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"column"},{label:i18n("2df3bc66ab3fcb0de1caf11831eff595"),value:"column-reverse"}]};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},eme)]}:eme});setSchemaTpl("layout:flex-wrap",function(x_){return{type:"select",label:(x_==null?void 0:x_.label)||i18n("98b2fea2d8f3ceb81e9ce32d66383f05"),name:(x_==null?void 0:x_.name)||"style.flexWrap",value:(x_==null?void 0:x_.value)||"nowrap",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("3b6e8d54b7b2ae890d5357b7eaaeaaf2"),value:"nowrap"},{label:i18n("452dba7c65211630f8066b070fdf157f"),value:"wrap"},{label:i18n("d4054144c4341872496e3550fdb1b826"),value:"wrap-reverse"}]}});setSchemaTpl("layout:flex",function(x_){return{type:"button-group-select",size:"xs",name:(x_==null?void 0:x_.name)||"style.flex",options:[{label:i18n("091885db07e43ff7cbe60c3b664b0b50"),value:"1 1 auto"},{label:i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),value:"0 0 150px"},{label:i18n("363165ccee78341a65f1d42174e8b08f"),value:"0 0 auto"}],label:(x_==null?void 0:x_.label)||i18n("eb44269adb6ba70569cd62ea88cb2750"),value:(x_==null?void 0:x_.value)||"0 0 auto",inputClassName:"inline-flex justify-between",visibleOn:x_==null?void 0:x_.visibleOn,onChange:function(eme,$P,tme,ame){eme==="1 1 auto"?x_!=null&&x_.isFlexColumnItem?ame.deleteValueByName("style.height"):ame.deleteValueByName("style.width"):eme==="0 0 150px"?(ame.deleteValueByName("style.flexGrow"),ame.setValueByName("style.flexBasis","150px"),x_!=null&&x_.isFlexColumnItem?ame.deleteValueByName("style.height"):ame.deleteValueByName("style.width")):eme==="0 0 auto"&&(ame.deleteValueByName("style.flexGrow"),ame.deleteValueByName("style.flexBasis"),ame.deleteValueByName("style.overflowX"),ame.deleteValueByName("style.overflowY"),ame.deleteValueByName("style.overflow"),x_!=null&&x_.isFlexColumnItem?ame.deleteValueByName("style.height"):ame.deleteValueByName("style.width"))}}});setSchemaTpl("layout:flex-basis",function(x_){var eme;return{type:"input-number",label:tipedLabel((x_==null?void 0:x_.label)||i18n("cf8852316501c22ea19c4e432c59e7d7"),(x_==null?void 0:x_.tooltip)||i18n("abbd790f85282349e2004df9fd494e31")),name:(x_==null?void 0:x_.name)||"style.flexBasis",value:(x_==null?void 0:x_.value)||"auto",visibleOn:x_==null?void 0:x_.visibleOn,clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:flex-grow",function(x_){return{type:"input-range",max:12,step:1,label:(x_==null?void 0:x_.label)||tipedLabel(i18n("9e7c8d1554f6449121a83f951cf21ca1"),i18n("eb7366583485f478e3d8c2b105ea51ff")),name:(x_==null?void 0:x_.name)||"style.flexGrow",value:(x_==null?void 0:x_.value)||1,visibleOn:(x_==null?void 0:x_.visibleOn)||'this.style && this.style.flex !== "0 0 auto"',pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut}});setSchemaTpl("layout:isFixedWidth",function(x_){var eme;return{type:"button-group-select",label:(x_==null?void 0:x_.label)||i18n("a170a375b264f7fe0c02a7ca8c268784"),size:"xs",name:(x_==null?void 0:x_.name)||"isFixedWidth",options:[{label:i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),value:!0},{label:i18n("363165ccee78341a65f1d42174e8b08f"),value:!1}],value:(eme=x_==null?void 0:x_.value)!==null&&eme!==void 0?eme:!1,visibleOn:x_==null?void 0:x_.visibleOn,inputClassName:"inline-flex justify-between",pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,onChange:function($P,tme,ame,nme){$P?(nme.deleteValueByName("style.maxWidth"),nme.deleteValueByName("style.minWidth")):nme.deleteValueByName("style.width"),x_!=null&&x_.onChange&&x_.onChange($P)}}});setSchemaTpl("layout:width",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||i18n("c28479019e24e0e4745f4948e9e97ee7"),name:(x_==null?void 0:x_.name)||"style.width",value:(x_==null?void 0:x_.value)||"300px",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && this.isFixedWidth"):"this.isFixedWidth",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:width:v2",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||i18n("c28479019e24e0e4745f4948e9e97ee7"),name:(x_==null?void 0:x_.name)||"style.width",value:(x_==null?void 0:x_.value)||"300px",visibleOn:(x_==null?void 0:x_.visibleOn)||!0,clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:max-width",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("99b57d8c9244ff9a695fcd519b4e2e57"),i18n("d1b91a1a24f0d4935c2dd13e6a22b6d4")),name:(x_==null?void 0:x_.name)||"style.maxWidth",value:x_==null?void 0:x_.value,min:"${style.minWidth | toInt}",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && !this.isFixedWidth"):"!this.isFixedWidth",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:min-width",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("a2b62974f4d7564bb68b570116f25a10"),i18n("ede82efb4a69c35743185c6c73ab771e")),name:(x_==null?void 0:x_.name)||"style.minWidth",value:x_==null?void 0:x_.value,max:"${style.maxWidth | toInt}",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && !this.isFixedWidth"):"!this.isFixedWidth",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:overflow-x",function(x_){return{type:"select",label:(x_==null?void 0:x_.label)||tipedLabel("水平内容超出",i18n("c2ed47a1f0f45cf7e2d22bddffc8a732")),name:(x_==null?void 0:x_.name)||"style.overflowX",value:(x_==null?void 0:x_.value)||"visible",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("cbc7af1d6422e88f4b87ade748e0f07d"),value:"visible"},{label:i18n("b48a90c77b5e792260d830c2d68c527e"),value:"hidden"},{label:"水平滚动",value:"scroll"},{label:i18n("55becc96b40692cc9cf898b331d16976"),value:"auto"}]}});setSchemaTpl("layout:isFixedHeight",function(x_){var eme;return{type:"button-group-select",label:(x_==null?void 0:x_.label)||i18n("f02f876ee64cc016d97fa4dc498d4857"),size:"xs",name:(x_==null?void 0:x_.name)||"isFixedHeight",options:[{label:i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),value:!0},{label:i18n("363165ccee78341a65f1d42174e8b08f"),value:!1}],value:(eme=x_==null?void 0:x_.value)!==null&&eme!==void 0?eme:!1,visibleOn:x_==null?void 0:x_.visibleOn,inputClassName:"inline-flex justify-between",pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,onChange:function($P,tme,ame,nme){$P?(nme.deleteValueByName("style.maxHeight"),nme.deleteValueByName("style.minHeight")):nme.deleteValueByName("style.height"),x_!=null&&x_.onChange&&x_.onChange($P)}}});setSchemaTpl("layout:height",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||i18n("c1df04eec5fa0857bc0df2d68d8e953c"),name:(x_==null?void 0:x_.name)||"style.height",value:(x_==null?void 0:x_.value)||"300px",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && this.isFixedHeight"):"this.isFixedHeight",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:max-height",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("fc2bc4193eea63128961d09497e07dc8"),i18n("6f420734edfaff00a8210a4c762a9207")),name:(x_==null?void 0:x_.name)||"style.maxHeight",value:x_==null?void 0:x_.value,min:"${style.minHeight | toInt}",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && !this.isFixedHeight"):"!this.isFixedHeight",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:min-height",function(x_){var eme;return{type:"input-number",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("2bd921d0ea7a73b77ee0fcddb1afcc84"),i18n("0611733b53e0098e6fd880bd44b2806f")),name:(x_==null?void 0:x_.name)||"style.minHeight",value:x_==null?void 0:x_.value,max:"${style.maxHeight | toInt}",visibleOn:x_!=null&&x_.visibleOn?"(".concat(x_==null?void 0:x_.visibleOn,") && !this.isFixedHeight"):"!this.isFixedHeight",clearable:!0,unitOptions:(eme=x_==null?void 0:x_.unitOptions)!==null&&eme!==void 0?eme:LayoutUnitOptions,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:function($P){var tme=parseInt($P);if($P==="auto"||tme||tme===0)return $P}}});setSchemaTpl("layout:overflow-y",function(x_){return{type:"select",label:(x_==null?void 0:x_.label)||tipedLabel("垂直内容超出",i18n("b31c6aaa78f8e24df665ce80ab5301e2")),name:(x_==null?void 0:x_.name)||"style.overflowY",value:(x_==null?void 0:x_.value)||"visible",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("cbc7af1d6422e88f4b87ade748e0f07d"),value:"visible"},{label:i18n("b48a90c77b5e792260d830c2d68c527e"),value:"hidden"},{label:"垂直滚动",value:"scroll"},{label:i18n("55becc96b40692cc9cf898b331d16976"),value:"auto"}]}});setSchemaTpl("layout:margin-center",function(x_){var eme;return{type:"button-group-select",size:"xs",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("d5bc35360607472de4525358af126de4"),i18n("052f93928af33d4d7035e7c8e8a73f17")),name:(x_==null?void 0:x_.name)||"style.margin",value:x_==null?void 0:x_.value,inputClassName:"inline-flex justify-between",visibleOn:(eme=x_==null?void 0:x_.visibleOn)!==null&&eme!==void 0?eme:"this.isFixedWidth || this.style && this.style.maxWidth",options:[{label:i18n("a738a8594bd2b71002d09277b84d86dd"),value:"auto auto auto 0px"},{label:i18n("0bbc2ea4e1d1f23feb576de5dca1ce3b"),value:"0px auto"},{label:i18n("fc0f19e9e47e352d36d36cf6eb653210"),value:"auto 0px auto auto"}],pipeIn:x_!=null&&x_.pipeIn?x_==null?void 0:x_.pipeIn:function($P,tme){var ame,nme,rme,ime,ome=(ime=(rme=(nme=(ame=tme.data)===null||ame===void 0?void 0:ame.themeCss)===null||nme===void 0?void 0:nme.baseControlClassName)===null||rme===void 0?void 0:rme["padding-and-margin:default"])===null||ime===void 0?void 0:ime.margin;return $P||ome},pipeOut:x_==null?void 0:x_.pipeOut,onChange:function($P,tme,ame,nme){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme;((ime=(rme=nme==null?void 0:nme.data)===null||rme===void 0?void 0:rme.style)===null||ime===void 0?void 0:ime.position)==="fixed"||((lme=(ome=nme==null?void 0:nme.data)===null||ome===void 0?void 0:ome.style)===null||lme===void 0?void 0:lme.position)==="absolute"?$P==="0px auto"?(((sme=nme.data)===null||sme===void 0?void 0:sme.sorptionPosition)==="top"?nme.setValueByName("style.inset","0px auto auto 50%"):((cme=nme.data)===null||cme===void 0?void 0:cme.sorptionPosition)==="bottom"?nme.setValueByName("style.inset","auto auto 0px 50%"):nme.setValueByName("style.inset","auto auto auto 50%"),nme.setValueByName("style.transform","translateX(-50%)")):$P==="auto 0px auto auto"?(((dme=nme.data)===null||dme===void 0?void 0:dme.sorptionPosition)==="top"?nme.setValueByName("style.inset","0px 0px auto auto"):((ume=nme.data)===null||ume===void 0?void 0:ume.sorptionPosition)==="bottom"?nme.setValueByName("style.inset","auto 0px 0px auto"):nme.setValueByName("style.inset","auto 0px auto auto"),nme.deleteValueByName("style.transform")):(((fme=nme.data)===null||fme===void 0?void 0:fme.sorptionPosition)==="top"?nme.setValueByName("style.inset","0px auto auto 0px"):((pme=nme.data)===null||pme===void 0?void 0:pme.sorptionPosition)==="bottom"?nme.setValueByName("style.inset","auto auto 0px 0px"):nme.setValueByName("style.inset","auto auto auto 0px"),nme.deleteValueByName("style.transform")):nme.deleteValueByName("style.transform")}}});setSchemaTpl("layout:originPosition",function(x_){var eme,$P={type:"select",label:(x_==null?void 0:x_.label)||tipedLabel(i18n("7d1313925f158b747c094a7f2480e535"),i18n("41a7494315a528f0f9618646f7e0dddf")),name:(x_==null?void 0:x_.name)||"originPosition",value:(x_==null?void 0:x_.value)||"right-bottom",visibleOn:(eme=x_==null?void 0:x_.visibleOn)!==null&&eme!==void 0?eme:'this.style && this.style.position && (this.style.position === "fixed" || this.style.position === "absolute")',pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("df68a5dc8f8847179b7afdf943f80796"),value:"left-top"},{label:i18n("e717b4ae480e7c073fd5a44647a7f0da"),value:"right-top"},{label:i18n("845c61ac8f51c6702dd22e5657c07e8d"),value:"right-bottom"},{label:i18n("2a97dfb2d236c87c41fd588f006111dc"),value:"left-bottom"}],onChange:function(tme,ame,nme,rme){tme==="right-bottom"?rme.setValueByName("style.inset","auto 50px 50px auto"):tme==="left-top"?rme.setValueByName("style.inset","50px auto auto 50px"):tme==="right-top"?rme.setValueByName("style.inset","50px 50px auto auto"):tme==="left-bottom"&&rme.setValueByName("style.inset","auto auto 50px 50px")}};return(x_==null?void 0:x_.mode)==="vertical"?{type:"group",mode:"vertical",visibleOn:x_==null?void 0:x_.visibleOn,body:[__assign$3({},$P)]}:$P});setSchemaTpl("layout:sorption",{type:"button-group-select",label:i18n("7d30297d4e1f310c73b27be88c748026"),size:"xs",name:"sorptionPosition",options:[{label:i18n("2ea76e2ffc1b92911d6f7decfa993360"),value:"top"},{label:i18n("8cfc818a76662085cb64752d6d592fbe"),value:"bottom"}],onChange:function(x_,eme,$P,tme){x_==="top"?tme.setValueByName("style.inset","0 auto auto 0"):x_==="bottom"&&tme.setValueByName("style.inset","auto auto 0 0")}});setSchemaTpl("layout:sticky",{type:"switch",label:tipedLabel(i18n("e2f6535e21570a0703c7c65f41b30eaa"),i18n("1c5ea0ffb2b15713cb22c41a02576924")),name:"stickyStatus",inputClassName:"inline-flex justify-between",onChange:function(x_,eme,$P,tme){if(x_){var ame=tme.getValueByName("style.inset");(!ame||ame==="auto")&&(tme.setValueByName("stickyPosition","auto"),tme.setValueByName("style.inset","0px auto 0px auto")),tme.setValueByName("style.position","sticky"),tme.setValueByName("style.zIndex",10)}else tme.setValueByName("style.position","static"),tme.deleteValueByName("style.inset"),tme.deleteValueByName("style.zIndex")}});setSchemaTpl("layout:stickyPosition",{type:"button-group-select",size:"xs",label:tipedLabel(i18n("7d30297d4e1f310c73b27be88c748026"),i18n("5f9be0002394f0b58952969d5952e24c")),name:"stickyPosition",visibleOn:"this.stickyStatus",options:[{label:i18n("2ea76e2ffc1b92911d6f7decfa993360"),value:"top"},{label:i18n("8cfc818a76662085cb64752d6d592fbe"),value:"bottom"},{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"}],onChange:function(x_,eme,$P,tme){x_==="top"?tme.setValueByName("style.inset","0px auto auto auto"):x_==="bottom"?tme.setValueByName("style.inset","auto auto 0px auto"):x_==="auto"&&tme.setValueByName("style.inset","0px auto 0px auto")}});setSchemaTpl("layout:padding",function(x_){return{label:(x_==null?void 0:x_.label)||i18n("c17fef27ea1d970fc66f4c4c3d442129"),type:"button-group-select",name:(x_==null?void 0:x_.name)||"size",size:"xs",mode:(x_==null?void 0:x_.mode)||"horizontal",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:(x_==null?void 0:x_.pipeIn)||defaultValue(""),pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("d81bb206a889656035b929cd8bb1ef10"),value:"none"}]}});setSchemaTpl("layout:textAlign",function(x_){return{label:(x_==null?void 0:x_.label)||i18n("d5bc35360607472de4525358af126de4"),type:"button-group-select",name:(x_==null?void 0:x_.name)||"textAlign",mode:(x_==null?void 0:x_.mode)||"horizontal",visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:(x_==null?void 0:x_.pipeIn)||defaultValue(""),pipeOut:x_==null?void 0:x_.pipeOut,options:[{label:"",value:"left",icon:"fa fa-align-left"},{label:"",value:"center",icon:"fa fa-align-center"},{label:"",value:"right",icon:"fa fa-align-right"},{label:"",value:"justify",icon:"fa fa-align-justify"}]}});setSchemaTpl("layout:flex-layout",function(x_){var eme;return{type:"flex-layout",mode:"default",name:(x_==null?void 0:x_.name)||"layout",label:(eme=x_==null?void 0:x_.label)!==null&&eme!==void 0?eme:!1,visibleOn:x_==null?void 0:x_.visibleOn,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut,strictMode:x_==null?void 0:x_.strictMode}});setSchemaTpl("layout:flex-setting",function(x_){var eme;return{type:"flex-layout-setting",name:(x_==null?void 0:x_.name)||"style",mode:"vertical",label:(eme=x_==null?void 0:x_.label)!==null&&eme!==void 0?eme:!1,visibleOn:x_==null?void 0:x_.visibleOn,direction:x_==null?void 0:x_.direction,justify:x_==null?void 0:x_.justify,alignItems:x_==null?void 0:x_.alignItems,pipeIn:x_==null?void 0:x_.pipeIn,pipeOut:x_==null?void 0:x_.pipeOut}});setSchemaTpl("layout:wrapper-contanier",function(x_){return{type:"container",className:"config-wrapper-contanier ".concat(x_.className||""),body:x_.body,visibleOn:x_==null?void 0:x_.visibleOn}});var defaultFlexColumnSchema=function(x_,eme){eme===void 0&&(eme=!0);var $P={position:"static",display:"block",flex:"1 1 auto",flexGrow:1};return eme&&($P.flexBasis=0),{type:"container",body:[],size:"none",style:$P,wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1}},defaultFlexPreviewSchema=function(x_){return{type:"tpl",tpl:x_,wrapperComponent:"",className:"bg-light center",style:{display:"block",flex:"1 1 auto",flexBasis:0,textAlign:"center",marginRight:10},inline:!1}},defaultFlexContainerSchema=function(x_){return x_===void 0&&(x_=defaultFlexColumnSchema),{type:"flex",items:[x_(i18n("ef5abdfc944546ddcbe10e9884cf5832")),x_(i18n("874fdb7b3a5730910a4de1c58220c337")),x_(i18n("3a76596e73fa265257ce90b7bed684c7"))],style:{position:"relative",rowGap:"10px",columnGap:"10px"}}},FlexPluginBase=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="flex",$P.$schema="/schemas/FlexSchema.json",$P.disabledRendererPlugin=!1,$P.name=i18n("b1b98c19058af70d8bd499e1899e93bc"),$P.order=-1200,$P.isBaseComponent=!0,$P.icon="fa fa-columns",$P.pluginIcon="flex-container-plugin",$P.description=i18n("03097563d201ad3a29c79165226764e5"),$P.docLink="/amis/zh-CN/components/flex",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.scaffold=defaultFlexContainerSchema(),$P.previewSchema=defaultFlexContainerSchema(defaultFlexPreviewSchema),$P.panelTitle=i18n("b1b98c19058af70d8bd499e1899e93bc"),$P.panelJustify=!0,$P.setFlexLayout=function(tme,ame){var nme,rme,ime,ome;if(/^[\d:]+$/.test(ame)&&isAlive(tme)){for(var lme=ame.trim().split(":"),sme=tme.children||[],cme=String((rme=(nme=tme.schema)===null||nme===void 0?void 0:nme.style)===null||rme===void 0?void 0:rme.flexDirection).includes("column"),dme=0;dme<sme.length;dme++){var ume=sme[dme];ume.updateSchemaStyle({flexGrow:+lme[dme],width:void 0,flexBasis:cme?"auto":0,flex:"1 1 auto"})}if(sme.length<lme.length)for(var dme=0;dme<lme.length-sme.length;dme++){var fme=defaultFlexColumnSchema("",!cme);fme.style.flexGrow=+lme[dme],$P.manager.addElem(fme,!0,!1)}else if(sme.length>lme.length){var pme=JSONPipeIn(JSONPipeOut(tme.schema));if(pme.items=pme.items.slice(lme.length),tme.updateSchema({items:tme.schema.items.slice(0,lme.length)}),pme.items.some(function(bme,mme){var vme;return(vme=bme.body)===null||vme===void 0?void 0:vme.length})){var hme=tme.parent;$P.manager.addChild(hme.id,hme.region,pme,(ome=(ime=hme==null?void 0:hme.children)===null||ime===void 0?void 0:ime[tme.index+1])===null||ome===void 0?void 0:ome.id)}}}},$P.resetFlexBasis=function(tme,ame){var nme;ame===void 0&&(ame={});var rme=tme.schema;String(ame.flexDirection).includes("column")&&!(!((nme=rme==null?void 0:rme.style)===null||nme===void 0)&&nme.height)&&(tme.children||[]).forEach(function(ime){var ome,lme,sme,cme;(!(!((lme=(ome=ime.schema)===null||ome===void 0?void 0:ome.style)===null||lme===void 0)&&lme.height)||/^0/.test((cme=(sme=ime.schema)===null||sme===void 0?void 0:sme.style)===null||cme===void 0?void 0:cme.flexBasis))&&ime.updateSchemaStyle({flexBasis:void 0})})},$P.insertItem=function(tme,ame){var nme,rme,ime;if(((nme=tme.info)===null||nme===void 0?void 0:nme.plugin)===$P){var ome=$P.manager.store,lme=JSONPipeIn(JSONPipeOut(tme.schema)),sme=tme.parent,cme=ame==="upper"?tme.id:(ime=(rme=sme==null?void 0:sme.children)===null||rme===void 0?void 0:rme[tme.index+1])===null||ime===void 0?void 0:ime.id,dme=$P.manager.addChild(sme.id,sme.region,lme,cme);dme&&setTimeout(function(){ome.setActiveId(dme.$$id)},100)}},$P.panelBodyCreator=function(tme){var ame,nme,rme,ime,ome,lme,sme=(tme==null?void 0:tme.schema)||{};(sme==null?void 0:sme.direction)==="row"||(sme==null||sme.direction),(ame=$P.manager)===null||ame===void 0||ame.isFlexContainer(tme==null?void 0:tme.id);var cme=(nme=$P.manager)===null||nme===void 0?void 0:nme.isFlexItem(tme==null?void 0:tme.id),dme=(rme=$P.manager)===null||rme===void 0?void 0:rme.isFlexColumnItem(tme==null?void 0:tme.id),ume=(sme==null?void 0:sme.isSorptionContainer)||!1,fme=((lme=(ome=(ime=tme.node)===null||ime===void 0?void 0:ime.schema)===null||ome===void 0?void 0:ome.style)===null||lme===void 0?void 0:lme.flexDirection)||"row",pme=[getSchemaTpl("layout:position",{visibleOn:"!this.stickyStatus"}),getSchemaTpl("layout:originPosition"),getSchemaTpl("layout:inset",{mode:"vertical"})];return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("0796ba76b4b553687e5ffaeb78512ccb"),body:__spreadArray(__spreadArray([tme.node&&getSchemaTpl("layout:flex-layout",{name:"layout",label:"快捷版式设置",flexDirection:fme,strictMode:!1,pipeIn:function(){var hme;if(isAlive(tme.node)){var bme=((hme=tme.node)===null||hme===void 0?void 0:hme.children)||[];if(bme.every(function(mme){var vme,gme;return((gme=(vme=mme.schema)===null||vme===void 0?void 0:vme.style)===null||gme===void 0?void 0:gme.flex)==="1 1 auto"}))return bme.map(function(mme){var vme,gme;return((gme=(vme=mme.schema)===null||vme===void 0?void 0:vme.style)===null||gme===void 0?void 0:gme.flexGrow)||1}).join(":")}},pipeOut:function(hme){return $P.setFlexLayout(tme.node,hme)}}),{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertItem(tme.node,"under")}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-bottom"}),React__default.createElement("span",null,i18n("3c43c5860b4dfaced296d7a63eae1513")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertItem(tme.node,"upper")}},React__default.createElement(Icon$1,{className:"icon",icon:"top-arrow-to-top"}),React__default.createElement("span",null,i18n("decaeded2b6f2c66f191ff34b868b1eb")))}]},getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.baseControlClassName.padding-and-margin:default"}),getSchemaTpl("theme:border",{name:"themeCss.baseControlClassName.border:default"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.baseControlClassName.background:default",label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),needCustom:!0,needGradient:!0,needImage:!0,labelMode:"input"}),getSchemaTpl("layout:flex-setting",{label:"内部对齐设置",direction:sme.direction,justify:sme.justify||"center",alignItems:sme.alignItems,pipeOut:function(hme){return $P.resetFlexBasis(tme.node,hme),hme}}),getSchemaTpl("layout:flex-wrap"),getSchemaTpl("layout:flex-basis",{label:"行间隔",tooltip:"垂直排布时，内部容器之间的间隔",name:"style.rowGap"}),getSchemaTpl("layout:flex-basis",{label:"列间隔",tooltip:"水平排布时，内部容器之间的间隔",name:"style.columnGap"})],__read$3(cme?[getSchemaTpl("layout:flex",{isFlexColumnItem:dme,label:i18n(dme?"f02f876ee64cc016d97fa4dc498d4857":"a170a375b264f7fe0c02a7ca8c268784"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-grow",{visibleOn:'this.style && this.style.flex === "1 1 auto" && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-basis",{label:i18n(dme?"183f00df0922a6be371fea58cd46a60a":"f92626f9e56b3e2d0c47495a446acf71"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "1 1 auto"'}),getSchemaTpl("layout:flex-basis",{label:i18n(dme?"c19b79073b676b9bade80613aba2dbfa":"b591aed69defa2abf0486da6a58dfb5e"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "0 0 150px"'})]:[]),!1),[getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(cme&&!dme," && this.style.flex === '0 0 150px'")}),getSchemaTpl("layout:isFixedHeight",{visibleOn:"".concat(!cme||!dme),onChange:function(hme){tme==null||tme.node.setHeightMutable(hme)}}),getSchemaTpl("layout:height",{visibleOn:"".concat(!cme||!dme)}),getSchemaTpl("layout:max-height",{visibleOn:"".concat(!cme||!dme)}),getSchemaTpl("layout:min-height",{visibleOn:"".concat(!cme||!dme)}),getSchemaTpl("layout:overflow-y",{visibleOn:"".concat(!cme||!dme," && (this.isFixedHeight || this.style && this.style.maxHeight) || (").concat(cme&&dme," && this.style.flex === '0 0 150px')")}),getSchemaTpl("layout:isFixedWidth",{visibleOn:"".concat(!cme||dme),onChange:function(hme){tme==null||tme.node.setWidthMutable(hme)}}),getSchemaTpl("layout:width",{visibleOn:"".concat(!cme||dme)}),getSchemaTpl("layout:max-width",{visibleOn:"".concat(!cme||dme," || ").concat(cme," && this.style.flex !== '0 0 150px'")}),getSchemaTpl("layout:min-width",{visibleOn:"".concat(!cme||dme," || ").concat(cme," && this.style.flex !== '0 0 150px'")}),getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(!cme||dme," && (this.isFixedWidth || this.style && this.style.maxWidth)")}),cme?null:getSchemaTpl("layout:margin-center"),getSchemaTpl("layout:z-index"),!ume&&getSchemaTpl("layout:sticky",{visibleOn:'this.style && (this.style.position !== "fixed" && this.style.position !== "absolute")'}),getSchemaTpl("layout:stickyPosition")],!1)},getSchemaTpl("status"),{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:__spreadArray([ume?getSchemaTpl("layout:sorption"):null],__read$3(ume?[]:pme),!1)}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))}])]},$P.regions=[{key:"items",label:i18n("a4611da51ffee9140976d01668e45d45")}],$P}return eme.prototype.buildEditorToolbar=function($P,tme){var ame=this,nme,rme,ime,ome,lme,sme,cme,dme=$P.id,ume=$P.info,fme=$P.schema,pme=$P.node,hme=(nme=pme.parent)===null||nme===void 0?void 0:nme.schema,bme=this.manager.draggableContainer(dme),mme=(rme=this.manager)===null||rme===void 0?void 0:rme.isFlexItem(dme),vme=(ime=this.manager)===null||ime===void 0?void 0:ime.isFlexColumnItem(dme),gme=vme?defaultFlexColumnSchema("",!1):defaultFlexColumnSchema(),yme=(ome=this.manager)===null||ome===void 0?void 0:ome.canAppendSiblings(),_me={};tme.forEach(function($me){$me.tooltip&&(_me[$me.tooltip]=1)}),hme&&(((lme=ume.renderer)===null||lme===void 0?void 0:lme.name)==="flex"||((sme=ume.renderer)===null||sme===void 0?void 0:sme.name)==="container")&&!bme&&!(fme!=null&&fme.isFreeContainer)&&(!_me[i18n("dbb93e8f413074ead24b6ed822247d98")]&&!mme&&yme&&tme.push({iconSvg:"add-btn",tooltip:i18n("dbb93e8f413074ead24b6ed822247d98"),level:"special",placement:"right",className:"ae-InsertBefore is-vertical",onClick:function(){return ame.manager.appendSiblingSchema(defaultFlexContainerSchema(),!0,!0)}},{iconSvg:"add-btn",tooltip:i18n("5b5765b3fd7e72e04a5cd3e2ef6218a4"),level:"special",placement:"right",className:"ae-InsertAfter is-vertical",onClick:function(){return ame.manager.appendSiblingSchema(defaultFlexContainerSchema(),!1,!0)}}),((cme=ume.renderer)===null||cme===void 0?void 0:cme.name)==="flex"&&(_me[i18n("31f84d1bc6175fd0828a81b5bfd98736")]||tme.push({iconSvg:"add-btn",tooltip:i18n("31f84d1bc6175fd0828a81b5bfd98736"),level:"special",placement:"bottom",className:"ae-AppendChild",onClick:function(){return ame.manager.addElem(defaultFlexColumnSchema("",!0))}}))),hme&&(hme.type==="flex"||hme.type==="container")&&mme&&!bme&&yme&&(_me["".concat(i18n(vme?"14c495b1248756310c75396cd41f4fe9":"39a2cb79c6d9762783e20522ea86dcff"),"插入列级容器")]||tme.push({iconSvg:"add-btn",tooltip:"".concat(i18n(vme?"14c495b1248756310c75396cd41f4fe9":"39a2cb79c6d9762783e20522ea86dcff"),"插入列级容器"),level:"special",placement:"right",className:vme?"ae-InsertBefore is-vertical":"ae-InsertBefore",onClick:function(){return ame.manager.appendSiblingSchema(gme,!0,!0)}},{iconSvg:"add-btn",tooltip:"".concat(i18n(vme?"e33ac3a4c1a95a02a18f1555038804da":"de2a774bf98944b8f0ec8755d5f59d64"),"插入列级容器"),level:"special",placement:vme?"right":"left",className:vme?"ae-InsertAfter is-vertical":"ae-InsertAfter",onClick:function(){return ame.manager.appendSiblingSchema(gme,!1,!0)}}))},eme.prototype.afterResolveJsonSchema=function($P){var tme,ame,nme=$P.context,rme=(tme=nme.node.parent)===null||tme===void 0?void 0:tme.host;((ame=rme==null?void 0:rme.info)===null||ame===void 0?void 0:ame.plugin)===this&&$P.setData("/schemas/FlexColumn.json")},eme.id="FlexPluginBase",eme}(LayoutBasePlugin),FlexPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.name=i18n("f549581bf93c72ed69c37e906e04191d"),$P.pluginIcon="flex-container-plugin",$P.description=i18n("2794fe303cf8ad4395fe93271fae7925"),$P}return eme.id="FlexPlugin",eme.scene=["layout"],eme}(FlexPluginBase);registerEditorPlugin(FlexPlugin);var GridPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="grid",$P.$schema="/schemas/GridSchema.json",$P.name=i18n("2820712cac089483cf2b4a0c939fc780"),$P.isBaseComponent=!0,$P.description=i18n("9e17d57a0ba39254a75c0265aa3063ca"),$P.searchKeywords=i18n("993844afdf1cd0bd368cda41fe2d39d7"),$P.docLink="/amis/zh-CN/components/grid",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.order=-2,$P.icon="fa fa-th",$P.pluginIcon="grid-plugin",$P.scaffold={type:"grid",columns:[{body:[]},{body:[]}]},$P.previewSchema={type:"grid",columns:[{body:[{type:"tpl",tpl:i18n("e63907bf0db529e84866d1ae737bfc0d"),inline:!1,wrapperComponent:"",className:"bg-light wrapper"}]},{body:[{type:"tpl",tpl:i18n("e63907bf0db529e84866d1ae737bfc0d"),wrapperComponent:"",className:"bg-light wrapper",inline:!1}]}]},$P.panelTitle=i18n("9e17d57a0ba39254a75c0265aa3063ca"),$P.panelWithOutOthers=!1,$P.vRendererConfig={regions:{body:{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("e63907bf0db529e84866d1ae737bfc0d"),wrapperResolve:function(tme){return tme}}},panelTitle:i18n("e63907bf0db529e84866d1ae737bfc0d"),panelBodyCreator:function(tme){var ame=tme.node.host;return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[getSchemaTpl("layout:originPosition",{value:"left-top"}),{title:i18n("9bdb07e72d3a9a6084201a7398523f5a"),body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[ame.isSecondFactor?null:{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowAfter(tme.node.host)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-bottom"}),React__default.createElement("span",null,i18n("3c43c5860b4dfaced296d7a63eae1513")))},ame.isSecondFactor?null:{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowBefore(tme.node.host)}},React__default.createElement(Icon$1,{className:"icon",icon:"top-arrow-to-top"}),React__default.createElement("span",null,i18n("decaeded2b6f2c66f191ff34b868b1eb")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertColumnBefore(tme)}},React__default.createElement(Icon$1,{className:"icon",icon:"left-arrow-to-left"}),React__default.createElement("span",null,i18n("0d9eb53682343f1cbd562c9a944ef5bf")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertColumnAfter(tme)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-right"}),React__default.createElement("span",null,i18n("814276d30e338eccbaee96c3e6bacb61")))}].filter(function(nme){return nme})}]},{title:i18n("c28479019e24e0e4745f4948e9e97ee7"),body:[{type:"button-group-select",name:"md",size:"sm",label:!1,pipeIn:function(nme){return typeof nme=="number"?"manual":nme||""},pipeOut:function(nme){return nme==="manual"?1:nme},tiled:!0,options:[{value:"",label:i18n("daa0f354e189c0da577ea25be13f874d")},{value:"auto",label:i18n("4db804afe5c99f7ca4fe988ada35c77f")},{value:"manual",label:i18n("2a3e7f5c382c56faf261a87573658325")}]},{visibleOn:'typeof this.md === "number"',label:i18n("d5d885add2551454955bd70411769c88"),type:"input-range",name:"md",min:1,max:12,step:1}]},{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,inputClassName:"flex-nowrap",options:[{value:"top",label:i18n("2a6ad292447e6354ca39ee7f40d2fcc8")},{value:"middle",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"bottom",label:i18n("d68c21b6b65e7a2e361762b65b8a5032")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]}]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))]}])]}},$P.vWrapperResolve=function(tme){return tme},$P.overrides={renderColumn:function(tme,ame,nme){var rme,ime,ome=this.super(tme,ame,nme),lme=this.props.$$editor;if(lme&&tme.$$id){var sme=lme.plugin,cme=(ime=(rme=sme.vRendererConfig)===null||rme===void 0?void 0:rme.regions)===null||ime===void 0?void 0:ime.body;return cme?React__default.createElement(VRenderer,{key:"".concat(tme.$$id,"-").concat(ame),type:lme.type,plugin:lme.plugin,renderer:lme.renderer,$schema:"/schemas/GridColumn.json",hostId:lme.id,memberIndex:ame,name:"第".concat(ame+1,i18n("e63907bf0db529e84866d1ae737bfc0d")),id:tme.$$id,draggable:!1,schemaPath:"".concat(lme.schemaPath,"/grid/").concat(ame),wrapperResolve:sme.vWrapperResolve,path:"".concat(this.props.$path,"/").concat(ame),data:this.props.data,widthMutable:!0},cme?React__default.createElement(RegionWrapper,{key:cme.key,preferTag:cme.preferTag,name:cme.key,label:cme.label,regionConfig:cme,placeholder:cme.placeholder,editorStore:sme.manager.store,manager:sme.manager,children:ome,wrapperResolve:cme.wrapperResolve,rendererName:lme.renderer.name}):ome):ome}return ome}},$P}return eme.prototype.panelBodyCreator=function($P){var tme=this,ame=$P.secondFactor;return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("9bdb07e72d3a9a6084201a7398523f5a"),body:[ame?null:{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return tme.insertRowAfter($P.node)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-bottom"}),React__default.createElement("span",null,i18n("3c43c5860b4dfaced296d7a63eae1513")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return tme.insertRowBefore($P.node)}},React__default.createElement(Icon$1,{className:"icon",icon:"top-arrow-to-top"}),React__default.createElement("span",null,i18n("decaeded2b6f2c66f191ff34b868b1eb")))}]}].filter(function(nme){return nme})},{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("eb22d47f16f92e6f621c2b9d87119303"),name:"columns",type:"select",pipeIn:function(nme){return Array.isArray(nme)?nme.length:void 0},pipeOut:function(nme,rme){return Array.isArray(rme)&&(rme.length>nme?(rme=rme.concat(),rme.splice(nme-1,rme.length-nme)):rme=rme.concat(repeatArray({body:[]},nme-rme.length))),rme},options:repeatArray(null,12).map(function(nme,rme){return{label:"".concat(rme+1),value:rme+1}})},{type:"button-group-select",name:"gap",label:i18n("c288b519484207bea1d51884a5e9acaf"),size:"sm",clearable:!0,tiled:!0,options:[{label:i18n("d81bb206a889656035b929cd8bb1ef10"),value:"none"},{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"base"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"}]},{type:"button-group-select",name:"align",size:"sm",label:i18n("98d695d6a6a48cfb4bc2f6396ee64787"),tiled:!0,pipeIn:defaultValue("left"),inputClassName:"flex-nowrap",options:[{value:"left",label:i18n("413f48cc71f71083ce532a86e3efdc21")},{value:"center",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"right",label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]},{type:"button-group-select",name:"valign",size:"sm",label:i18n("11b7fc50778c89572391ec4c6c4b55e1"),tiled:!0,pipeIn:defaultValue("top"),inputClassName:"flex-nowrap",options:[{value:"top",label:i18n("2a6ad292447e6354ca39ee7f40d2fcc8")},{value:"middle",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"bottom",label:i18n("d68c21b6b65e7a2e361762b65b8a5032")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]}]}])]},this.panelWithOutOthers?null:{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",__spreadArray([getSchemaTpl("subFormItemMode"),getSchemaTpl("subFormHorizontalMode"),getSchemaTpl("subFormHorizontal")],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))]}])]},eme.prototype.afterResolveJsonSchema=function($P){var tme,ame,nme=$P.context,rme=(tme=nme.node.parent)===null||tme===void 0?void 0:tme.host;((ame=rme==null?void 0:rme.info)===null||ame===void 0?void 0:ame.plugin)===this&&$P.setData("/schemas/GridColumn.json")},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=this,nme;$P.selections.length||((nme=$P.info)===null||nme===void 0?void 0:nme.plugin)!==this||($P.node.isVitualRenderer?(tme.push("|"),tme.push({label:i18n("9cc03fc4b3e87e8410e10357a219b44e"),onSelect:function(){return ame.insertColumnBefore($P)}}),tme.push({label:i18n("6b12fc99e2a46aed982d46b93ac191a0"),onSelect:function(){return ame.insertColumnAfter($P)}}),tme.push("|"),tme.push({label:i18n("57ff158884582ed498a87d03aed46146"),onSelect:function(){return ame.insertRowBefore($P.node.host)}}),tme.push({label:i18n("bd63eab86ac0e0b35a06d0f24a098096"),onSelect:function(){return ame.insertRowAfter($P.node.host)}})):(tme.push("|"),tme.push({label:i18n("57ff158884582ed498a87d03aed46146"),onSelect:function(){return ame.insertRowBefore($P.node)}}),tme.push({label:i18n("bd63eab86ac0e0b35a06d0f24a098096"),onSelect:function(){return ame.insertRowAfter($P.node)}})))},eme.prototype.onWidthChangeStart=function($P){var tme,ame,nme=$P.context,rme=nme.node;if(((tme=rme.info)===null||tme===void 0?void 0:tme.plugin)===this){var ime=rme.host;if(!(!ime||((ame=ime.info)===null||ame===void 0?void 0:ame.plugin)!==this)){var ome=nme.dom,lme=ome.parentElement;if(lme){var sme=nme.resizer,cme=lme.getBoundingClientRect(),dme=ime.schema.columns,ume=rme.index,fme=dme[ume].md,pme=ome.getBoundingClientRect();$P.setData({onMove:function(hme){var bme=hme.pageX-pme.left,mme=fme=Math.max(1,Math.min(12,Math.round(12*bme/cme.width)));dme=dme.concat(),dme[ume]=__assign$3(__assign$3({},dme[ume]),{md:mme}),sme.setAttribute("data-value","".concat(mme)),ime.updateState({columns:dme}),requestAnimationFrame(function(){rme.calculateHighlightBox()})},onEnd:function(){ime.updateState({},!0),sme.removeAttribute("data-value"),rme.updateSchema({md:fme}),requestAnimationFrame(function(){rme.calculateHighlightBox()})}})}}}},eme.prototype.insertRowAfter=function($P){var tme=this,ame;if(((ame=$P.info)===null||ame===void 0?void 0:ame.plugin)===this){var nme=this.manager.store,rme=nme.schema,ime=$P.id;nme.traceableSetSchema(JSONChangeInArray(rme,ime,function(ome,lme,sme){ome.splice(sme+1,0,JSONPipeIn({type:tme.rendererName||"grid",align:lme.align,valign:lme.valign,columns:lme.columns.map(function(cme){return{body:[],md:cme==null?void 0:cme.md}})}))}))}},eme.prototype.insertRowBefore=function($P){var tme=this,ame;if(((ame=$P.info)===null||ame===void 0?void 0:ame.plugin)===this){var nme=this.manager.store,rme=nme.schema,ime=$P.id;nme.traceableSetSchema(JSONChangeInArray(rme,ime,function(ome,lme,sme){ome.splice(sme,0,JSONPipeIn({type:tme.rendererName||"grid",align:lme.align,valign:lme.valign,columns:lme.columns.map(function(cme){return{body:[],md:cme==null?void 0:cme.md}})}))}))}},eme.prototype.insertColumnBefore=function($P){var tme,ame=$P.node;if(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)===this){var nme=this.manager.store,rme=$P.id,ime=nme.schema;nme.traceableSetSchema(JSONChangeInArray(ime,rme,function(ome,lme,sme){ome.splice(sme,0,JSONPipeIn({body:[]}))}))}},eme.prototype.insertColumnAfter=function($P){var tme,ame=$P.node;if(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)===this){var nme=this.manager.store,rme=nme.schema,ime=$P.id;nme.traceableSetSchema(JSONChangeInArray(rme,ime,function(ome,lme,sme){ome.splice(sme+1,0,JSONPipeIn({body:[]}))}))}},eme.id="GridPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(GridPlugin);/**!
 * Sortable 1.15.6
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */function ownKeys(x_,eme){var $P=Object.keys(x_);if(Object.getOwnPropertySymbols){var tme=Object.getOwnPropertySymbols(x_);eme&&(tme=tme.filter(function(ame){return Object.getOwnPropertyDescriptor(x_,ame).enumerable})),$P.push.apply($P,tme)}return $P}function _objectSpread2(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme]!=null?arguments[eme]:{};eme%2?ownKeys(Object($P),!0).forEach(function(tme){_defineProperty(x_,tme,$P[tme])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x_,Object.getOwnPropertyDescriptors($P)):ownKeys(Object($P)).forEach(function(tme){Object.defineProperty(x_,tme,Object.getOwnPropertyDescriptor($P,tme))})}return x_}function _typeof(x_){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(eme){return typeof eme}:_typeof=function(eme){return eme&&typeof Symbol=="function"&&eme.constructor===Symbol&&eme!==Symbol.prototype?"symbol":typeof eme},_typeof(x_)}function _defineProperty(x_,eme,$P){return eme in x_?Object.defineProperty(x_,eme,{value:$P,enumerable:!0,configurable:!0,writable:!0}):x_[eme]=$P,x_}function _extends$2m(){return _extends$2m=Object.assign||function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)Object.prototype.hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2m.apply(this,arguments)}function _objectWithoutPropertiesLoose(x_,eme){if(x_==null)return{};var $P={},tme=Object.keys(x_),ame,nme;for(nme=0;nme<tme.length;nme++)ame=tme[nme],!(eme.indexOf(ame)>=0)&&($P[ame]=x_[ame]);return $P}function _objectWithoutProperties(x_,eme){if(x_==null)return{};var $P=_objectWithoutPropertiesLoose(x_,eme),tme,ame;if(Object.getOwnPropertySymbols){var nme=Object.getOwnPropertySymbols(x_);for(ame=0;ame<nme.length;ame++)tme=nme[ame],!(eme.indexOf(tme)>=0)&&Object.prototype.propertyIsEnumerable.call(x_,tme)&&($P[tme]=x_[tme])}return $P}var version="1.15.6";function userAgent(x_){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(x_)}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Edge=userAgent(/Edge/i),FireFox=userAgent(/firefox/i),Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i),IOS=userAgent(/iP(ad|od|hone)/i),ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i),captureMode={capture:!1,passive:!1};function on(x_,eme,$P){x_.addEventListener(eme,$P,!IE11OrLess&&captureMode)}function off(x_,eme,$P){x_.removeEventListener(eme,$P,!IE11OrLess&&captureMode)}function matches(x_,eme){if(eme){if(eme[0]===">"&&(eme=eme.substring(1)),x_)try{if(x_.matches)return x_.matches(eme);if(x_.msMatchesSelector)return x_.msMatchesSelector(eme);if(x_.webkitMatchesSelector)return x_.webkitMatchesSelector(eme)}catch{return!1}return!1}}function getParentOrHost(x_){return x_.host&&x_!==document&&x_.host.nodeType?x_.host:x_.parentNode}function closest(x_,eme,$P,tme){if(x_){$P=$P||document;do{if(eme!=null&&(eme[0]===">"?x_.parentNode===$P&&matches(x_,eme):matches(x_,eme))||tme&&x_===$P)return x_;if(x_===$P)break}while(x_=getParentOrHost(x_))}return null}var R_SPACE=/\s+/g;function toggleClass(x_,eme,$P){if(x_&&eme)if(x_.classList)x_.classList[$P?"add":"remove"](eme);else{var tme=(" "+x_.className+" ").replace(R_SPACE," ").replace(" "+eme+" "," ");x_.className=(tme+($P?" "+eme:"")).replace(R_SPACE," ")}}function css(x_,eme,$P){var tme=x_&&x_.style;if(tme){if($P===void 0)return document.defaultView&&document.defaultView.getComputedStyle?$P=document.defaultView.getComputedStyle(x_,""):x_.currentStyle&&($P=x_.currentStyle),eme===void 0?$P:$P[eme];!(eme in tme)&&eme.indexOf("webkit")===-1&&(eme="-webkit-"+eme),tme[eme]=$P+(typeof $P=="string"?"":"px")}}function matrix(x_,eme){var $P="";if(typeof x_=="string")$P=x_;else do{var tme=css(x_,"transform");tme&&tme!=="none"&&($P=tme+" "+$P)}while(!eme&&(x_=x_.parentNode));var ame=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return ame&&new ame($P)}function find(x_,eme,$P){if(x_){var tme=x_.getElementsByTagName(eme),ame=0,nme=tme.length;if($P)for(;ame<nme;ame++)$P(tme[ame],ame);return tme}return[]}function getWindowScrollingElement(){var x_=document.scrollingElement;return x_||document.documentElement}function getRect(x_,eme,$P,tme,ame){if(!(!x_.getBoundingClientRect&&x_!==window)){var nme,rme,ime,ome,lme,sme,cme;if(x_!==window&&x_.parentNode&&x_!==getWindowScrollingElement()?(nme=x_.getBoundingClientRect(),rme=nme.top,ime=nme.left,ome=nme.bottom,lme=nme.right,sme=nme.height,cme=nme.width):(rme=0,ime=0,ome=window.innerHeight,lme=window.innerWidth,sme=window.innerHeight,cme=window.innerWidth),(eme||$P)&&x_!==window&&(ame=ame||x_.parentNode,!IE11OrLess))do if(ame&&ame.getBoundingClientRect&&(css(ame,"transform")!=="none"||$P&&css(ame,"position")!=="static")){var dme=ame.getBoundingClientRect();rme-=dme.top+parseInt(css(ame,"border-top-width")),ime-=dme.left+parseInt(css(ame,"border-left-width")),ome=rme+nme.height,lme=ime+nme.width;break}while(ame=ame.parentNode);if(tme&&x_!==window){var ume=matrix(ame||x_),fme=ume&&ume.a,pme=ume&&ume.d;ume&&(rme/=pme,ime/=fme,cme/=fme,sme/=pme,ome=rme+sme,lme=ime+cme)}return{top:rme,left:ime,bottom:ome,right:lme,width:cme,height:sme}}}function isScrolledPast(x_,eme,$P){for(var tme=getParentAutoScrollElement(x_,!0),ame=getRect(x_)[eme];tme;){var nme=getRect(tme)[$P],rme=void 0;if(rme=ame>=nme,!rme)return tme;if(tme===getWindowScrollingElement())break;tme=getParentAutoScrollElement(tme,!1)}return!1}function getChild(x_,eme,$P,tme){for(var ame=0,nme=0,rme=x_.children;nme<rme.length;){if(rme[nme].style.display!=="none"&&rme[nme]!==Sortable.ghost&&(tme||rme[nme]!==Sortable.dragged)&&closest(rme[nme],$P.draggable,x_,!1)){if(ame===eme)return rme[nme];ame++}nme++}return null}function lastChild(x_,eme){for(var $P=x_.lastElementChild;$P&&($P===Sortable.ghost||css($P,"display")==="none"||eme&&!matches($P,eme));)$P=$P.previousElementSibling;return $P||null}function index(x_,eme){var $P=0;if(!x_||!x_.parentNode)return-1;for(;x_=x_.previousElementSibling;)x_.nodeName.toUpperCase()!=="TEMPLATE"&&x_!==Sortable.clone&&(!eme||matches(x_,eme))&&$P++;return $P}function getRelativeScrollOffset(x_){var eme=0,$P=0,tme=getWindowScrollingElement();if(x_)do{var ame=matrix(x_),nme=ame.a,rme=ame.d;eme+=x_.scrollLeft*nme,$P+=x_.scrollTop*rme}while(x_!==tme&&(x_=x_.parentNode));return[eme,$P]}function indexOfObject(x_,eme){for(var $P in x_)if(x_.hasOwnProperty($P)){for(var tme in eme)if(eme.hasOwnProperty(tme)&&eme[tme]===x_[$P][tme])return Number($P)}return-1}function getParentAutoScrollElement(x_,eme){if(!x_||!x_.getBoundingClientRect)return getWindowScrollingElement();var $P=x_,tme=!1;do if($P.clientWidth<$P.scrollWidth||$P.clientHeight<$P.scrollHeight){var ame=css($P);if($P.clientWidth<$P.scrollWidth&&(ame.overflowX=="auto"||ame.overflowX=="scroll")||$P.clientHeight<$P.scrollHeight&&(ame.overflowY=="auto"||ame.overflowY=="scroll")){if(!$P.getBoundingClientRect||$P===document.body)return getWindowScrollingElement();if(tme||eme)return $P;tme=!0}}while($P=$P.parentNode);return getWindowScrollingElement()}function extend(x_,eme){if(x_&&eme)for(var $P in eme)eme.hasOwnProperty($P)&&(x_[$P]=eme[$P]);return x_}function isRectEqual(x_,eme){return Math.round(x_.top)===Math.round(eme.top)&&Math.round(x_.left)===Math.round(eme.left)&&Math.round(x_.height)===Math.round(eme.height)&&Math.round(x_.width)===Math.round(eme.width)}var _throttleTimeout;function throttle(x_,eme){return function(){if(!_throttleTimeout){var $P=arguments,tme=this;$P.length===1?x_.call(tme,$P[0]):x_.apply(tme,$P),_throttleTimeout=setTimeout(function(){_throttleTimeout=void 0},eme)}}}function cancelThrottle(){clearTimeout(_throttleTimeout),_throttleTimeout=void 0}function scrollBy(x_,eme,$P){x_.scrollLeft+=eme,x_.scrollTop+=$P}function clone(x_){var eme=window.Polymer,$P=window.jQuery||window.Zepto;return eme&&eme.dom?eme.dom(x_).cloneNode(!0):$P?$P(x_).clone(!0)[0]:x_.cloneNode(!0)}function getChildContainingRectFromElement(x_,eme,$P){var tme={};return Array.from(x_.children).forEach(function(ame){var nme,rme,ime,ome;if(!(!closest(ame,eme.draggable,x_,!1)||ame.animated||ame===$P)){var lme=getRect(ame);tme.left=Math.min((nme=tme.left)!==null&&nme!==void 0?nme:1/0,lme.left),tme.top=Math.min((rme=tme.top)!==null&&rme!==void 0?rme:1/0,lme.top),tme.right=Math.max((ime=tme.right)!==null&&ime!==void 0?ime:-1/0,lme.right),tme.bottom=Math.max((ome=tme.bottom)!==null&&ome!==void 0?ome:-1/0,lme.bottom)}}),tme.width=tme.right-tme.left,tme.height=tme.bottom-tme.top,tme.x=tme.left,tme.y=tme.top,tme}var expando="Sortable"+new Date().getTime();function AnimationStateManager(){var x_=[],eme;return{captureAnimationState:function(){if(x_=[],!!this.options.animation){var tme=[].slice.call(this.el.children);tme.forEach(function(ame){if(!(css(ame,"display")==="none"||ame===Sortable.ghost)){x_.push({target:ame,rect:getRect(ame)});var nme=_objectSpread2({},x_[x_.length-1].rect);if(ame.thisAnimationDuration){var rme=matrix(ame,!0);rme&&(nme.top-=rme.f,nme.left-=rme.e)}ame.fromRect=nme}})}},addAnimationState:function(tme){x_.push(tme)},removeAnimationState:function(tme){x_.splice(indexOfObject(x_,{target:tme}),1)},animateAll:function(tme){var ame=this;if(!this.options.animation){clearTimeout(eme),typeof tme=="function"&&tme();return}var nme=!1,rme=0;x_.forEach(function(ime){var ome=0,lme=ime.target,sme=lme.fromRect,cme=getRect(lme),dme=lme.prevFromRect,ume=lme.prevToRect,fme=ime.rect,pme=matrix(lme,!0);pme&&(cme.top-=pme.f,cme.left-=pme.e),lme.toRect=cme,lme.thisAnimationDuration&&isRectEqual(dme,cme)&&!isRectEqual(sme,cme)&&(fme.top-cme.top)/(fme.left-cme.left)===(sme.top-cme.top)/(sme.left-cme.left)&&(ome=calculateRealTime(fme,dme,ume,ame.options)),isRectEqual(cme,sme)||(lme.prevFromRect=sme,lme.prevToRect=cme,ome||(ome=ame.options.animation),ame.animate(lme,fme,cme,ome)),ome&&(nme=!0,rme=Math.max(rme,ome),clearTimeout(lme.animationResetTimer),lme.animationResetTimer=setTimeout(function(){lme.animationTime=0,lme.prevFromRect=null,lme.fromRect=null,lme.prevToRect=null,lme.thisAnimationDuration=null},ome),lme.thisAnimationDuration=ome)}),clearTimeout(eme),nme?eme=setTimeout(function(){typeof tme=="function"&&tme()},rme):typeof tme=="function"&&tme(),x_=[]},animate:function(tme,ame,nme,rme){if(rme){css(tme,"transition",""),css(tme,"transform","");var ime=matrix(this.el),ome=ime&&ime.a,lme=ime&&ime.d,sme=(ame.left-nme.left)/(ome||1),cme=(ame.top-nme.top)/(lme||1);tme.animatingX=!!sme,tme.animatingY=!!cme,css(tme,"transform","translate3d("+sme+"px,"+cme+"px,0)"),this.forRepaintDummy=repaint(tme),css(tme,"transition","transform "+rme+"ms"+(this.options.easing?" "+this.options.easing:"")),css(tme,"transform","translate3d(0,0,0)"),typeof tme.animated=="number"&&clearTimeout(tme.animated),tme.animated=setTimeout(function(){css(tme,"transition",""),css(tme,"transform",""),tme.animated=!1,tme.animatingX=!1,tme.animatingY=!1},rme)}}}}function repaint(x_){return x_.offsetWidth}function calculateRealTime(x_,eme,$P,tme){return Math.sqrt(Math.pow(eme.top-x_.top,2)+Math.pow(eme.left-x_.left,2))/Math.sqrt(Math.pow(eme.top-$P.top,2)+Math.pow(eme.left-$P.left,2))*tme.animation}var plugins=[],defaults={initializeByDefault:!0},PluginManager={mount:function x_(eme){for(var $P in defaults)defaults.hasOwnProperty($P)&&!($P in eme)&&(eme[$P]=defaults[$P]);plugins.forEach(function(tme){if(tme.pluginName===eme.pluginName)throw"Sortable: Cannot mount plugin ".concat(eme.pluginName," more than once")}),plugins.push(eme)},pluginEvent:function x_(eme,$P,tme){var ame=this;this.eventCanceled=!1,tme.cancel=function(){ame.eventCanceled=!0};var nme=eme+"Global";plugins.forEach(function(rme){$P[rme.pluginName]&&($P[rme.pluginName][nme]&&$P[rme.pluginName][nme](_objectSpread2({sortable:$P},tme)),$P.options[rme.pluginName]&&$P[rme.pluginName][eme]&&$P[rme.pluginName][eme](_objectSpread2({sortable:$P},tme)))})},initializePlugins:function x_(eme,$P,tme,ame){plugins.forEach(function(ime){var ome=ime.pluginName;if(!(!eme.options[ome]&&!ime.initializeByDefault)){var lme=new ime(eme,$P,eme.options);lme.sortable=eme,lme.options=eme.options,eme[ome]=lme,_extends$2m(tme,lme.defaults)}});for(var nme in eme.options)if(eme.options.hasOwnProperty(nme)){var rme=this.modifyOption(eme,nme,eme.options[nme]);typeof rme<"u"&&(eme.options[nme]=rme)}},getEventProperties:function x_(eme,$P){var tme={};return plugins.forEach(function(ame){typeof ame.eventProperties=="function"&&_extends$2m(tme,ame.eventProperties.call($P[ame.pluginName],eme))}),tme},modifyOption:function x_(eme,$P,tme){var ame;return plugins.forEach(function(nme){eme[nme.pluginName]&&nme.optionListeners&&typeof nme.optionListeners[$P]=="function"&&(ame=nme.optionListeners[$P].call(eme[nme.pluginName],tme))}),ame}};function dispatchEvent(x_){var eme=x_.sortable,$P=x_.rootEl,tme=x_.name,ame=x_.targetEl,nme=x_.cloneEl,rme=x_.toEl,ime=x_.fromEl,ome=x_.oldIndex,lme=x_.newIndex,sme=x_.oldDraggableIndex,cme=x_.newDraggableIndex,dme=x_.originalEvent,ume=x_.putSortable,fme=x_.extraEventProperties;if(eme=eme||$P&&$P[expando],!!eme){var pme,hme=eme.options,bme="on"+tme.charAt(0).toUpperCase()+tme.substr(1);window.CustomEvent&&!IE11OrLess&&!Edge?pme=new CustomEvent(tme,{bubbles:!0,cancelable:!0}):(pme=document.createEvent("Event"),pme.initEvent(tme,!0,!0)),pme.to=rme||$P,pme.from=ime||$P,pme.item=ame||$P,pme.clone=nme,pme.oldIndex=ome,pme.newIndex=lme,pme.oldDraggableIndex=sme,pme.newDraggableIndex=cme,pme.originalEvent=dme,pme.pullMode=ume?ume.lastPutMode:void 0;var mme=_objectSpread2(_objectSpread2({},fme),PluginManager.getEventProperties(tme,eme));for(var vme in mme)pme[vme]=mme[vme];$P&&$P.dispatchEvent(pme),hme[bme]&&hme[bme].call(eme,pme)}}var _excluded=["evt"],pluginEvent=function x_(eme,$P){var tme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ame=tme.evt,nme=_objectWithoutProperties(tme,_excluded);PluginManager.pluginEvent.bind(Sortable)(eme,$P,_objectSpread2({dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,dragStarted:moved,putSortable,activeSortable:Sortable.active,originalEvent:ame,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function(){cloneHidden=!0},cloneNowShown:function(){cloneHidden=!1},dispatchSortableEvent:function(ime){_dispatchEvent({sortable:$P,name:ime,originalEvent:ame})}},nme))};function _dispatchEvent(x_){dispatchEvent(_objectSpread2({putSortable,cloneEl,targetEl:dragEl,rootEl,oldIndex,oldDraggableIndex,newIndex,newDraggableIndex},x_))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=!1,ignoreNextClick=!1,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=!1,isCircumstantialInvert=!1,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=!1,savedInputChecked=[],documentExists=typeof document<"u",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(documentExists){if(IE11OrLess)return!1;var x_=document.createElement("x");return x_.style.cssText="pointer-events:auto",x_.style.pointerEvents==="auto"}}(),_detectDirection=function x_(eme,$P){var tme=css(eme),ame=parseInt(tme.width)-parseInt(tme.paddingLeft)-parseInt(tme.paddingRight)-parseInt(tme.borderLeftWidth)-parseInt(tme.borderRightWidth),nme=getChild(eme,0,$P),rme=getChild(eme,1,$P),ime=nme&&css(nme),ome=rme&&css(rme),lme=ime&&parseInt(ime.marginLeft)+parseInt(ime.marginRight)+getRect(nme).width,sme=ome&&parseInt(ome.marginLeft)+parseInt(ome.marginRight)+getRect(rme).width;if(tme.display==="flex")return tme.flexDirection==="column"||tme.flexDirection==="column-reverse"?"vertical":"horizontal";if(tme.display==="grid")return tme.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(nme&&ime.float&&ime.float!=="none"){var cme=ime.float==="left"?"left":"right";return rme&&(ome.clear==="both"||ome.clear===cme)?"vertical":"horizontal"}return nme&&(ime.display==="block"||ime.display==="flex"||ime.display==="table"||ime.display==="grid"||lme>=ame&&tme[CSSFloatProperty]==="none"||rme&&tme[CSSFloatProperty]==="none"&&lme+sme>ame)?"vertical":"horizontal"},_dragElInRowColumn=function x_(eme,$P,tme){var ame=tme?eme.left:eme.top,nme=tme?eme.right:eme.bottom,rme=tme?eme.width:eme.height,ime=tme?$P.left:$P.top,ome=tme?$P.right:$P.bottom,lme=tme?$P.width:$P.height;return ame===ime||nme===ome||ame+rme/2===ime+lme/2},_detectNearestEmptySortable=function x_(eme,$P){var tme;return sortables.some(function(ame){var nme=ame[expando].options.emptyInsertThreshold;if(!(!nme||lastChild(ame))){var rme=getRect(ame),ime=eme>=rme.left-nme&&eme<=rme.right+nme,ome=$P>=rme.top-nme&&$P<=rme.bottom+nme;if(ime&&ome)return tme=ame}}),tme},_prepareGroup=function x_(eme){function $P(nme,rme){return function(ime,ome,lme,sme){var cme=ime.options.group.name&&ome.options.group.name&&ime.options.group.name===ome.options.group.name;if(nme==null&&(rme||cme))return!0;if(nme==null||nme===!1)return!1;if(rme&&nme==="clone")return nme;if(typeof nme=="function")return $P(nme(ime,ome,lme,sme),rme)(ime,ome,lme,sme);var dme=(rme?ime:ome).options.group.name;return nme===!0||typeof nme=="string"&&nme===dme||nme.join&&nme.indexOf(dme)>-1}}var tme={},ame=eme.group;(!ame||_typeof(ame)!="object")&&(ame={name:ame}),tme.name=ame.name,tme.checkPull=$P(ame.pull,!0),tme.checkPut=$P(ame.put),tme.revertClone=ame.revertClone,eme.group=tme},_hideGhostForTarget=function x_(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","none")},_unhideGhostForTarget=function x_(){!supportCssPointerEvents&&ghostEl&&css(ghostEl,"display","")};documentExists&&!ChromeForAndroid&&document.addEventListener("click",function(x_){if(ignoreNextClick)return x_.preventDefault(),x_.stopPropagation&&x_.stopPropagation(),x_.stopImmediatePropagation&&x_.stopImmediatePropagation(),ignoreNextClick=!1,!1},!0);var nearestEmptyInsertDetectEvent=function x_(eme){if(dragEl){eme=eme.touches?eme.touches[0]:eme;var $P=_detectNearestEmptySortable(eme.clientX,eme.clientY);if($P){var tme={};for(var ame in eme)eme.hasOwnProperty(ame)&&(tme[ame]=eme[ame]);tme.target=tme.rootEl=$P,tme.preventDefault=void 0,tme.stopPropagation=void 0,$P[expando]._onDragOver(tme)}}},_checkOutsideTargetEl=function x_(eme){dragEl&&dragEl.parentNode[expando]._isOutsideThisEl(eme.target)};function Sortable(x_,eme){if(!(x_&&x_.nodeType&&x_.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(x_));this.el=x_,this.options=eme=_extends$2m({},eme),x_[expando]=this;var $P={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(x_.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _detectDirection(x_,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(rme,ime){rme.setData("Text",ime.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==!1&&"PointerEvent"in window&&(!Safari||IOS),emptyInsertThreshold:5};PluginManager.initializePlugins(this,x_,$P);for(var tme in $P)!(tme in eme)&&(eme[tme]=$P[tme]);_prepareGroup(eme);for(var ame in this)ame.charAt(0)==="_"&&typeof this[ame]=="function"&&(this[ame]=this[ame].bind(this));this.nativeDraggable=eme.forceFallback?!1:supportDraggable,this.nativeDraggable&&(this.options.touchStartThreshold=1),eme.supportPointer?on(x_,"pointerdown",this._onTapStart):(on(x_,"mousedown",this._onTapStart),on(x_,"touchstart",this._onTapStart)),this.nativeDraggable&&(on(x_,"dragover",this),on(x_,"dragenter",this)),sortables.push(this.el),eme.store&&eme.store.get&&this.sort(eme.store.get(this)||[]),_extends$2m(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function x_(eme){!this.el.contains(eme)&&eme!==this.el&&(lastTarget=null)},_getDirection:function x_(eme,$P){return typeof this.options.direction=="function"?this.options.direction.call(this,eme,$P,dragEl):this.options.direction},_onTapStart:function x_(eme){if(eme.cancelable){var $P=this,tme=this.el,ame=this.options,nme=ame.preventOnFilter,rme=eme.type,ime=eme.touches&&eme.touches[0]||eme.pointerType&&eme.pointerType==="touch"&&eme,ome=(ime||eme).target,lme=eme.target.shadowRoot&&(eme.path&&eme.path[0]||eme.composedPath&&eme.composedPath()[0])||ome,sme=ame.filter;if(_saveInputCheckedState(tme),!dragEl&&!(/mousedown|pointerdown/.test(rme)&&eme.button!==0||ame.disabled)&&!lme.isContentEditable&&!(!this.nativeDraggable&&Safari&&ome&&ome.tagName.toUpperCase()==="SELECT")&&(ome=closest(ome,ame.draggable,tme,!1),!(ome&&ome.animated)&&lastDownEl!==ome)){if(oldIndex=index(ome),oldDraggableIndex=index(ome,ame.draggable),typeof sme=="function"){if(sme.call(this,eme,ome,this)){_dispatchEvent({sortable:$P,rootEl:lme,name:"filter",targetEl:ome,toEl:tme,fromEl:tme}),pluginEvent("filter",$P,{evt:eme}),nme&&eme.preventDefault();return}}else if(sme&&(sme=sme.split(",").some(function(cme){if(cme=closest(lme,cme.trim(),tme,!1),cme)return _dispatchEvent({sortable:$P,rootEl:cme,name:"filter",targetEl:ome,fromEl:tme,toEl:tme}),pluginEvent("filter",$P,{evt:eme}),!0}),sme)){nme&&eme.preventDefault();return}ame.handle&&!closest(lme,ame.handle,tme,!1)||this._prepareDragStart(eme,ime,ome)}}},_prepareDragStart:function x_(eme,$P,tme){var ame=this,nme=ame.el,rme=ame.options,ime=nme.ownerDocument,ome;if(tme&&!dragEl&&tme.parentNode===nme){var lme=getRect(tme);if(rootEl=nme,dragEl=tme,parentEl=dragEl.parentNode,nextEl=dragEl.nextSibling,lastDownEl=tme,activeGroup=rme.group,Sortable.dragged=dragEl,tapEvt={target:dragEl,clientX:($P||eme).clientX,clientY:($P||eme).clientY},tapDistanceLeft=tapEvt.clientX-lme.left,tapDistanceTop=tapEvt.clientY-lme.top,this._lastX=($P||eme).clientX,this._lastY=($P||eme).clientY,dragEl.style["will-change"]="all",ome=function(){if(pluginEvent("delayEnded",ame,{evt:eme}),Sortable.eventCanceled){ame._onDrop();return}ame._disableDelayedDragEvents(),!FireFox&&ame.nativeDraggable&&(dragEl.draggable=!0),ame._triggerDragStart(eme,$P),_dispatchEvent({sortable:ame,name:"choose",originalEvent:eme}),toggleClass(dragEl,rme.chosenClass,!0)},rme.ignore.split(",").forEach(function(sme){find(dragEl,sme.trim(),_disableDraggable)}),on(ime,"dragover",nearestEmptyInsertDetectEvent),on(ime,"mousemove",nearestEmptyInsertDetectEvent),on(ime,"touchmove",nearestEmptyInsertDetectEvent),rme.supportPointer?(on(ime,"pointerup",ame._onDrop),!this.nativeDraggable&&on(ime,"pointercancel",ame._onDrop)):(on(ime,"mouseup",ame._onDrop),on(ime,"touchend",ame._onDrop),on(ime,"touchcancel",ame._onDrop)),FireFox&&this.nativeDraggable&&(this.options.touchStartThreshold=4,dragEl.draggable=!0),pluginEvent("delayStart",this,{evt:eme}),rme.delay&&(!rme.delayOnTouchOnly||$P)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}rme.supportPointer?(on(ime,"pointerup",ame._disableDelayedDrag),on(ime,"pointercancel",ame._disableDelayedDrag)):(on(ime,"mouseup",ame._disableDelayedDrag),on(ime,"touchend",ame._disableDelayedDrag),on(ime,"touchcancel",ame._disableDelayedDrag)),on(ime,"mousemove",ame._delayedDragTouchMoveHandler),on(ime,"touchmove",ame._delayedDragTouchMoveHandler),rme.supportPointer&&on(ime,"pointermove",ame._delayedDragTouchMoveHandler),ame._dragStartTimer=setTimeout(ome,rme.delay)}else ome()}},_delayedDragTouchMoveHandler:function x_(eme){var $P=eme.touches?eme.touches[0]:eme;Math.max(Math.abs($P.clientX-this._lastX),Math.abs($P.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function x_(){dragEl&&_disableDraggable(dragEl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function x_(){var eme=this.el.ownerDocument;off(eme,"mouseup",this._disableDelayedDrag),off(eme,"touchend",this._disableDelayedDrag),off(eme,"touchcancel",this._disableDelayedDrag),off(eme,"pointerup",this._disableDelayedDrag),off(eme,"pointercancel",this._disableDelayedDrag),off(eme,"mousemove",this._delayedDragTouchMoveHandler),off(eme,"touchmove",this._delayedDragTouchMoveHandler),off(eme,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function x_(eme,$P){$P=$P||eme.pointerType=="touch"&&eme,!this.nativeDraggable||$P?this.options.supportPointer?on(document,"pointermove",this._onTouchMove):$P?on(document,"touchmove",this._onTouchMove):on(document,"mousemove",this._onTouchMove):(on(dragEl,"dragend",this),on(rootEl,"dragstart",this._onDragStart));try{document.selection?_nextTick(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function x_(eme,$P){if(awaitingDragStarted=!1,rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:$P}),this.nativeDraggable&&on(document,"dragover",_checkOutsideTargetEl);var tme=this.options;!eme&&toggleClass(dragEl,tme.dragClass,!1),toggleClass(dragEl,tme.ghostClass,!0),Sortable.active=this,eme&&this._appendGhost(),_dispatchEvent({sortable:this,name:"start",originalEvent:$P})}else this._nulling()},_emulateDragOver:function x_(){if(touchEvt){this._lastX=touchEvt.clientX,this._lastY=touchEvt.clientY,_hideGhostForTarget();for(var eme=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY),$P=eme;eme&&eme.shadowRoot&&(eme=eme.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY),eme!==$P);)$P=eme;if(dragEl.parentNode[expando]._isOutsideThisEl(eme),$P)do{if($P[expando]){var tme=void 0;if(tme=$P[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:eme,rootEl:$P}),tme&&!this.options.dragoverBubble)break}eme=$P}while($P=getParentOrHost($P));_unhideGhostForTarget()}},_onTouchMove:function x_(eme){if(tapEvt){var $P=this.options,tme=$P.fallbackTolerance,ame=$P.fallbackOffset,nme=eme.touches?eme.touches[0]:eme,rme=ghostEl&&matrix(ghostEl,!0),ime=ghostEl&&rme&&rme.a,ome=ghostEl&&rme&&rme.d,lme=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),sme=(nme.clientX-tapEvt.clientX+ame.x)/(ime||1)+(lme?lme[0]-ghostRelativeParentInitialScroll[0]:0)/(ime||1),cme=(nme.clientY-tapEvt.clientY+ame.y)/(ome||1)+(lme?lme[1]-ghostRelativeParentInitialScroll[1]:0)/(ome||1);if(!Sortable.active&&!awaitingDragStarted){if(tme&&Math.max(Math.abs(nme.clientX-this._lastX),Math.abs(nme.clientY-this._lastY))<tme)return;this._onDragStart(eme,!0)}if(ghostEl){rme?(rme.e+=sme-(lastDx||0),rme.f+=cme-(lastDy||0)):rme={a:1,b:0,c:0,d:1,e:sme,f:cme};var dme="matrix(".concat(rme.a,",").concat(rme.b,",").concat(rme.c,",").concat(rme.d,",").concat(rme.e,",").concat(rme.f,")");css(ghostEl,"webkitTransform",dme),css(ghostEl,"mozTransform",dme),css(ghostEl,"msTransform",dme),css(ghostEl,"transform",dme),lastDx=sme,lastDy=cme,touchEvt=nme}eme.cancelable&&eme.preventDefault()}},_appendGhost:function x_(){if(!ghostEl){var eme=this.options.fallbackOnBody?document.body:rootEl,$P=getRect(dragEl,!0,PositionGhostAbsolutely,!0,eme),tme=this.options;if(PositionGhostAbsolutely){for(ghostRelativeParent=eme;css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document;)ghostRelativeParent=ghostRelativeParent.parentNode;ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement?(ghostRelativeParent===document&&(ghostRelativeParent=getWindowScrollingElement()),$P.top+=ghostRelativeParent.scrollTop,$P.left+=ghostRelativeParent.scrollLeft):ghostRelativeParent=getWindowScrollingElement(),ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=dragEl.cloneNode(!0),toggleClass(ghostEl,tme.ghostClass,!1),toggleClass(ghostEl,tme.fallbackClass,!0),toggleClass(ghostEl,tme.dragClass,!0),css(ghostEl,"transition",""),css(ghostEl,"transform",""),css(ghostEl,"box-sizing","border-box"),css(ghostEl,"margin",0),css(ghostEl,"top",$P.top),css(ghostEl,"left",$P.left),css(ghostEl,"width",$P.width),css(ghostEl,"height",$P.height),css(ghostEl,"opacity","0.8"),css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed"),css(ghostEl,"zIndex","100000"),css(ghostEl,"pointerEvents","none"),Sortable.ghost=ghostEl,eme.appendChild(ghostEl),css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function x_(eme,$P){var tme=this,ame=eme.dataTransfer,nme=tme.options;if(pluginEvent("dragStart",this,{evt:eme}),Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this),Sortable.eventCanceled||(cloneEl=clone(dragEl),cloneEl.removeAttribute("id"),cloneEl.draggable=!1,cloneEl.style["will-change"]="",this._hideClone(),toggleClass(cloneEl,this.options.chosenClass,!1),Sortable.clone=cloneEl),tme.cloneId=_nextTick(function(){pluginEvent("clone",tme),!Sortable.eventCanceled&&(tme.options.removeCloneOnHide||rootEl.insertBefore(cloneEl,dragEl),tme._hideClone(),_dispatchEvent({sortable:tme,name:"clone"}))}),!$P&&toggleClass(dragEl,nme.dragClass,!0),$P?(ignoreNextClick=!0,tme._loopId=setInterval(tme._emulateDragOver,50)):(off(document,"mouseup",tme._onDrop),off(document,"touchend",tme._onDrop),off(document,"touchcancel",tme._onDrop),ame&&(ame.effectAllowed="move",nme.setData&&nme.setData.call(tme,ame,dragEl)),on(document,"drop",tme),css(dragEl,"transform","translateZ(0)")),awaitingDragStarted=!0,tme._dragStartId=_nextTick(tme._dragStarted.bind(tme,$P,eme)),on(document,"selectstart",tme),moved=!0,window.getSelection().removeAllRanges(),Safari&&css(document.body,"user-select","none")},_onDragOver:function x_(eme){var $P=this.el,tme=eme.target,ame,nme,rme,ime=this.options,ome=ime.group,lme=Sortable.active,sme=activeGroup===ome,cme=ime.sort,dme=putSortable||lme,ume,fme=this,pme=!1;if(_silent)return;function hme(Mme,kme){pluginEvent(Mme,fme,_objectSpread2({evt:eme,isOwner:sme,axis:ume?"vertical":"horizontal",revert:rme,dragRect:ame,targetRect:nme,canSort:cme,fromSortable:dme,target:tme,completed:mme,onMove:function(Dme,jme){return _onMove(rootEl,$P,dragEl,ame,Dme,getRect(Dme),eme,jme)},changed:vme},kme))}function bme(){hme("dragOverAnimationCapture"),fme.captureAnimationState(),fme!==dme&&dme.captureAnimationState()}function mme(Mme){return hme("dragOverCompleted",{insertion:Mme}),Mme&&(sme?lme._hideClone():lme._showClone(fme),fme!==dme&&(toggleClass(dragEl,putSortable?putSortable.options.ghostClass:lme.options.ghostClass,!1),toggleClass(dragEl,ime.ghostClass,!0)),putSortable!==fme&&fme!==Sortable.active?putSortable=fme:fme===Sortable.active&&putSortable&&(putSortable=null),dme===fme&&(fme._ignoreWhileAnimating=tme),fme.animateAll(function(){hme("dragOverAnimationComplete"),fme._ignoreWhileAnimating=null}),fme!==dme&&(dme.animateAll(),dme._ignoreWhileAnimating=null)),(tme===dragEl&&!dragEl.animated||tme===$P&&!tme.animated)&&(lastTarget=null),!ime.dragoverBubble&&!eme.rootEl&&tme!==document&&(dragEl.parentNode[expando]._isOutsideThisEl(eme.target),!Mme&&nearestEmptyInsertDetectEvent(eme)),!ime.dragoverBubble&&eme.stopPropagation&&eme.stopPropagation(),pme=!0}function vme(){newIndex=index(dragEl),newDraggableIndex=index(dragEl,ime.draggable),_dispatchEvent({sortable:fme,name:"change",toEl:$P,newIndex,newDraggableIndex,originalEvent:eme})}if(eme.preventDefault!==void 0&&eme.cancelable&&eme.preventDefault(),tme=closest(tme,ime.draggable,$P,!0),hme("dragOver"),Sortable.eventCanceled)return pme;if(dragEl.contains(eme.target)||tme.animated&&tme.animatingX&&tme.animatingY||fme._ignoreWhileAnimating===tme)return mme(!1);if(ignoreNextClick=!1,lme&&!ime.disabled&&(sme?cme||(rme=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,lme,dragEl,eme))&&ome.checkPut(this,lme,dragEl,eme))){if(ume=this._getDirection(eme,tme)==="vertical",ame=getRect(dragEl),hme("dragOverValid"),Sortable.eventCanceled)return pme;if(rme)return parentEl=rootEl,bme(),this._hideClone(),hme("revert"),Sortable.eventCanceled||(nextEl?rootEl.insertBefore(dragEl,nextEl):rootEl.appendChild(dragEl)),mme(!0);var gme=lastChild($P,ime.draggable);if(!gme||_ghostIsLast(eme,ume,this)&&!gme.animated){if(gme===dragEl)return mme(!1);if(gme&&$P===eme.target&&(tme=gme),tme&&(nme=getRect(tme)),_onMove(rootEl,$P,dragEl,ame,tme,nme,eme,!!tme)!==!1)return bme(),gme&&gme.nextSibling?$P.insertBefore(dragEl,gme.nextSibling):$P.appendChild(dragEl),parentEl=$P,vme(),mme(!0)}else if(gme&&_ghostIsFirst(eme,ume,this)){var yme=getChild($P,0,ime,!0);if(yme===dragEl)return mme(!1);if(tme=yme,nme=getRect(tme),_onMove(rootEl,$P,dragEl,ame,tme,nme,eme,!1)!==!1)return bme(),$P.insertBefore(dragEl,yme),parentEl=$P,vme(),mme(!0)}else if(tme.parentNode===$P){nme=getRect(tme);var _me=0,$me,Cme=dragEl.parentNode!==$P,Sme=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||ame,tme.animated&&tme.toRect||nme,ume),Eme=ume?"top":"left",xme=isScrolledPast(tme,"top","top")||isScrolledPast(dragEl,"top","top"),Tme=xme?xme.scrollTop:void 0;lastTarget!==tme&&($me=nme[Eme],pastFirstInvertThresh=!1,isCircumstantialInvert=!Sme&&ime.invertSwap||Cme),_me=_getSwapDirection(eme,tme,nme,ume,Sme?1:ime.swapThreshold,ime.invertedSwapThreshold==null?ime.swapThreshold:ime.invertedSwapThreshold,isCircumstantialInvert,lastTarget===tme);var Ome;if(_me!==0){var Rme=index(dragEl);do Rme-=_me,Ome=parentEl.children[Rme];while(Ome&&(css(Ome,"display")==="none"||Ome===ghostEl))}if(_me===0||Ome===tme)return mme(!1);lastTarget=tme,lastDirection=_me;var Nme=tme.nextElementSibling,Ime=!1;Ime=_me===1;var Pme=_onMove(rootEl,$P,dragEl,ame,tme,nme,eme,Ime);if(Pme!==!1)return(Pme===1||Pme===-1)&&(Ime=Pme===1),_silent=!0,setTimeout(_unsilent,30),bme(),Ime&&!Nme?$P.appendChild(dragEl):tme.parentNode.insertBefore(dragEl,Ime?Nme:tme),xme&&scrollBy(xme,0,Tme-xme.scrollTop),parentEl=dragEl.parentNode,$me!==void 0&&!isCircumstantialInvert&&(targetMoveDistance=Math.abs($me-getRect(tme)[Eme])),vme(),mme(!0)}if($P.contains(dragEl))return mme(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function x_(){off(document,"mousemove",this._onTouchMove),off(document,"touchmove",this._onTouchMove),off(document,"pointermove",this._onTouchMove),off(document,"dragover",nearestEmptyInsertDetectEvent),off(document,"mousemove",nearestEmptyInsertDetectEvent),off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function x_(){var eme=this.el.ownerDocument;off(eme,"mouseup",this._onDrop),off(eme,"touchend",this._onDrop),off(eme,"pointerup",this._onDrop),off(eme,"pointercancel",this._onDrop),off(eme,"touchcancel",this._onDrop),off(document,"selectstart",this)},_onDrop:function x_(eme){var $P=this.el,tme=this.options;if(newIndex=index(dragEl),newDraggableIndex=index(dragEl,tme.draggable),pluginEvent("drop",this,{evt:eme}),parentEl=dragEl&&dragEl.parentNode,newIndex=index(dragEl),newDraggableIndex=index(dragEl,tme.draggable),Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=!1,isCircumstantialInvert=!1,pastFirstInvertThresh=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_cancelNextTick(this.cloneId),_cancelNextTick(this._dragStartId),this.nativeDraggable&&(off(document,"drop",this),off($P,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Safari&&css(document.body,"user-select",""),css(dragEl,"transform",""),eme&&(moved&&(eme.cancelable&&eme.preventDefault(),!tme.dropBubble&&eme.stopPropagation()),ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl),(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone")&&cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),dragEl&&(this.nativeDraggable&&off(dragEl,"dragend",this),_disableDraggable(dragEl),dragEl.style["will-change"]="",moved&&!awaitingDragStarted&&toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,!1),toggleClass(dragEl,this.options.chosenClass,!1),_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:eme}),rootEl!==parentEl?(newIndex>=0&&(_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:eme}),_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:eme}),_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:eme}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:eme})),putSortable&&putSortable.save()):newIndex!==oldIndex&&newIndex>=0&&(_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:eme}),_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:eme})),Sortable.active&&((newIndex==null||newIndex===-1)&&(newIndex=oldIndex,newDraggableIndex=oldDraggableIndex),_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:eme}),this.save()))),this._nulling()},_nulling:function x_(){pluginEvent("nulling",this),rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null,savedInputChecked.forEach(function(eme){eme.checked=!0}),savedInputChecked.length=lastDx=lastDy=0},handleEvent:function x_(eme){switch(eme.type){case"drop":case"dragend":this._onDrop(eme);break;case"dragenter":case"dragover":dragEl&&(this._onDragOver(eme),_globalDragOver(eme));break;case"selectstart":eme.preventDefault();break}},toArray:function x_(){for(var eme=[],$P,tme=this.el.children,ame=0,nme=tme.length,rme=this.options;ame<nme;ame++)$P=tme[ame],closest($P,rme.draggable,this.el,!1)&&eme.push($P.getAttribute(rme.dataIdAttr)||_generateId($P));return eme},sort:function x_(eme,$P){var tme={},ame=this.el;this.toArray().forEach(function(nme,rme){var ime=ame.children[rme];closest(ime,this.options.draggable,ame,!1)&&(tme[nme]=ime)},this),$P&&this.captureAnimationState(),eme.forEach(function(nme){tme[nme]&&(ame.removeChild(tme[nme]),ame.appendChild(tme[nme]))}),$P&&this.animateAll()},save:function x_(){var eme=this.options.store;eme&&eme.set&&eme.set(this)},closest:function x_(eme,$P){return closest(eme,$P||this.options.draggable,this.el,!1)},option:function x_(eme,$P){var tme=this.options;if($P===void 0)return tme[eme];var ame=PluginManager.modifyOption(this,eme,$P);typeof ame<"u"?tme[eme]=ame:tme[eme]=$P,eme==="group"&&_prepareGroup(tme)},destroy:function x_(){pluginEvent("destroy",this);var eme=this.el;eme[expando]=null,off(eme,"mousedown",this._onTapStart),off(eme,"touchstart",this._onTapStart),off(eme,"pointerdown",this._onTapStart),this.nativeDraggable&&(off(eme,"dragover",this),off(eme,"dragenter",this)),Array.prototype.forEach.call(eme.querySelectorAll("[draggable]"),function($P){$P.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),sortables.splice(sortables.indexOf(this.el),1),this.el=eme=null},_hideClone:function x_(){if(!cloneHidden){if(pluginEvent("hideClone",this),Sortable.eventCanceled)return;css(cloneEl,"display","none"),this.options.removeCloneOnHide&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl),cloneHidden=!0}},_showClone:function x_(eme){if(eme.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){if(pluginEvent("showClone",this),Sortable.eventCanceled)return;dragEl.parentNode==rootEl&&!this.options.group.revertClone?rootEl.insertBefore(cloneEl,dragEl):nextEl?rootEl.insertBefore(cloneEl,nextEl):rootEl.appendChild(cloneEl),this.options.group.revertClone&&this.animate(dragEl,cloneEl),css(cloneEl,"display",""),cloneHidden=!1}}};function _globalDragOver(x_){x_.dataTransfer&&(x_.dataTransfer.dropEffect="move"),x_.cancelable&&x_.preventDefault()}function _onMove(x_,eme,$P,tme,ame,nme,rme,ime){var ome,lme=x_[expando],sme=lme.options.onMove,cme;return window.CustomEvent&&!IE11OrLess&&!Edge?ome=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(ome=document.createEvent("Event"),ome.initEvent("move",!0,!0)),ome.to=eme,ome.from=x_,ome.dragged=$P,ome.draggedRect=tme,ome.related=ame||eme,ome.relatedRect=nme||getRect(eme),ome.willInsertAfter=ime,ome.originalEvent=rme,x_.dispatchEvent(ome),sme&&(cme=sme.call(lme,ome,rme)),cme}function _disableDraggable(x_){x_.draggable=!1}function _unsilent(){_silent=!1}function _ghostIsFirst(x_,eme,$P){var tme=getRect(getChild($P.el,0,$P.options,!0)),ame=getChildContainingRectFromElement($P.el,$P.options,ghostEl),nme=10;return eme?x_.clientX<ame.left-nme||x_.clientY<tme.top&&x_.clientX<tme.right:x_.clientY<ame.top-nme||x_.clientY<tme.bottom&&x_.clientX<tme.left}function _ghostIsLast(x_,eme,$P){var tme=getRect(lastChild($P.el,$P.options.draggable)),ame=getChildContainingRectFromElement($P.el,$P.options,ghostEl),nme=10;return eme?x_.clientX>ame.right+nme||x_.clientY>tme.bottom&&x_.clientX>tme.left:x_.clientY>ame.bottom+nme||x_.clientX>tme.right&&x_.clientY>tme.top}function _getSwapDirection(x_,eme,$P,tme,ame,nme,rme,ime){var ome=tme?x_.clientY:x_.clientX,lme=tme?$P.height:$P.width,sme=tme?$P.top:$P.left,cme=tme?$P.bottom:$P.right,dme=!1;if(!rme){if(ime&&targetMoveDistance<lme*ame){if(!pastFirstInvertThresh&&(lastDirection===1?ome>sme+lme*nme/2:ome<cme-lme*nme/2)&&(pastFirstInvertThresh=!0),pastFirstInvertThresh)dme=!0;else if(lastDirection===1?ome<sme+targetMoveDistance:ome>cme-targetMoveDistance)return-lastDirection}else if(ome>sme+lme*(1-ame)/2&&ome<cme-lme*(1-ame)/2)return _getInsertDirection(eme)}return dme=dme||rme,dme&&(ome<sme+lme*nme/2||ome>cme-lme*nme/2)?ome>sme+lme/2?1:-1:0}function _getInsertDirection(x_){return index(dragEl)<index(x_)?1:-1}function _generateId(x_){for(var eme=x_.tagName+x_.className+x_.src+x_.href+x_.textContent,$P=eme.length,tme=0;$P--;)tme+=eme.charCodeAt($P);return tme.toString(36)}function _saveInputCheckedState(x_){savedInputChecked.length=0;for(var eme=x_.getElementsByTagName("input"),$P=eme.length;$P--;){var tme=eme[$P];tme.checked&&savedInputChecked.push(tme)}}function _nextTick(x_){return setTimeout(x_,0)}function _cancelNextTick(x_){return clearTimeout(x_)}documentExists&&on(document,"touchmove",function(x_){(Sortable.active||awaitingDragStarted)&&x_.cancelable&&x_.preventDefault()});Sortable.utils={on,off,css,find,is:function x_(eme,$P){return!!closest(eme,$P,eme,!1)},extend,throttle,closest,toggleClass,clone,index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild,expando};Sortable.get=function(x_){return x_[expando]};Sortable.mount=function(){for(var x_=arguments.length,eme=new Array(x_),$P=0;$P<x_;$P++)eme[$P]=arguments[$P];eme[0].constructor===Array&&(eme=eme[0]),eme.forEach(function(tme){if(!tme.prototype||!tme.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(tme));tme.utils&&(Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),tme.utils)),PluginManager.mount(tme)})};Sortable.create=function(x_,eme){return new Sortable(x_,eme)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=!1,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function x_(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var eme in this)eme.charAt(0)==="_"&&typeof this[eme]=="function"&&(this[eme]=this[eme].bind(this))}return x_.prototype={dragStarted:function($P){var tme=$P.originalEvent;this.sortable.nativeDraggable?on(document,"dragover",this._handleAutoScroll):this.options.supportPointer?on(document,"pointermove",this._handleFallbackAutoScroll):tme.touches?on(document,"touchmove",this._handleFallbackAutoScroll):on(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function($P){var tme=$P.originalEvent;!this.options.dragOverBubble&&!tme.rootEl&&this._handleAutoScroll(tme)},drop:function(){this.sortable.nativeDraggable?off(document,"dragover",this._handleAutoScroll):(off(document,"pointermove",this._handleFallbackAutoScroll),off(document,"touchmove",this._handleFallbackAutoScroll),off(document,"mousemove",this._handleFallbackAutoScroll)),clearPointerElemChangedInterval(),clearAutoScrolls(),cancelThrottle()},nulling:function(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null,autoScrolls.length=0},_handleFallbackAutoScroll:function($P){this._handleAutoScroll($P,!0)},_handleAutoScroll:function($P,tme){var ame=this,nme=($P.touches?$P.touches[0]:$P).clientX,rme=($P.touches?$P.touches[0]:$P).clientY,ime=document.elementFromPoint(nme,rme);if(touchEvt$1=$P,tme||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll($P,this.options,ime,tme);var ome=getParentAutoScrollElement(ime,!0);scrolling&&(!pointerElemChangedInterval||nme!==lastAutoScrollX||rme!==lastAutoScrollY)&&(pointerElemChangedInterval&&clearPointerElemChangedInterval(),pointerElemChangedInterval=setInterval(function(){var lme=getParentAutoScrollElement(document.elementFromPoint(nme,rme),!0);lme!==ome&&(ome=lme,clearAutoScrolls()),autoScroll($P,ame.options,lme,tme)},10),lastAutoScrollX=nme,lastAutoScrollY=rme)}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(ime,!0)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll($P,this.options,getParentAutoScrollElement(ime,!1),!1)}}},_extends$2m(x_,{pluginName:"scroll",initializeByDefault:!0})}function clearAutoScrolls(){autoScrolls.forEach(function(x_){clearInterval(x_.pid)}),autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle(function(x_,eme,$P,tme){if(eme.scroll){var ame=(x_.touches?x_.touches[0]:x_).clientX,nme=(x_.touches?x_.touches[0]:x_).clientY,rme=eme.scrollSensitivity,ime=eme.scrollSpeed,ome=getWindowScrollingElement(),lme=!1,sme;scrollRootEl!==$P&&(scrollRootEl=$P,clearAutoScrolls(),scrollEl=eme.scroll,sme=eme.scrollFn,scrollEl===!0&&(scrollEl=getParentAutoScrollElement($P,!0)));var cme=0,dme=scrollEl;do{var ume=dme,fme=getRect(ume),pme=fme.top,hme=fme.bottom,bme=fme.left,mme=fme.right,vme=fme.width,gme=fme.height,yme=void 0,_me=void 0,$me=ume.scrollWidth,Cme=ume.scrollHeight,Sme=css(ume),Eme=ume.scrollLeft,xme=ume.scrollTop;ume===ome?(yme=vme<$me&&(Sme.overflowX==="auto"||Sme.overflowX==="scroll"||Sme.overflowX==="visible"),_me=gme<Cme&&(Sme.overflowY==="auto"||Sme.overflowY==="scroll"||Sme.overflowY==="visible")):(yme=vme<$me&&(Sme.overflowX==="auto"||Sme.overflowX==="scroll"),_me=gme<Cme&&(Sme.overflowY==="auto"||Sme.overflowY==="scroll"));var Tme=yme&&(Math.abs(mme-ame)<=rme&&Eme+vme<$me)-(Math.abs(bme-ame)<=rme&&!!Eme),Ome=_me&&(Math.abs(hme-nme)<=rme&&xme+gme<Cme)-(Math.abs(pme-nme)<=rme&&!!xme);if(!autoScrolls[cme])for(var Rme=0;Rme<=cme;Rme++)autoScrolls[Rme]||(autoScrolls[Rme]={});(autoScrolls[cme].vx!=Tme||autoScrolls[cme].vy!=Ome||autoScrolls[cme].el!==ume)&&(autoScrolls[cme].el=ume,autoScrolls[cme].vx=Tme,autoScrolls[cme].vy=Ome,clearInterval(autoScrolls[cme].pid),(Tme!=0||Ome!=0)&&(lme=!0,autoScrolls[cme].pid=setInterval((function(){tme&&this.layer===0&&Sortable.active._onTouchMove(touchEvt$1);var Nme=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*ime:0,Ime=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*ime:0;typeof sme=="function"&&sme.call(Sortable.dragged.parentNode[expando],Ime,Nme,x_,touchEvt$1,autoScrolls[this.layer].el)!=="continue"||scrollBy(autoScrolls[this.layer].el,Ime,Nme)}).bind({layer:cme}),24))),cme++}while(eme.bubbleScroll&&dme!==ome&&(dme=getParentAutoScrollElement(dme,!1)));scrolling=lme}},30),drop=function x_(eme){var $P=eme.originalEvent,tme=eme.putSortable,ame=eme.dragEl,nme=eme.activeSortable,rme=eme.dispatchSortableEvent,ime=eme.hideGhostForTarget,ome=eme.unhideGhostForTarget;if($P){var lme=tme||nme;ime();var sme=$P.changedTouches&&$P.changedTouches.length?$P.changedTouches[0]:$P,cme=document.elementFromPoint(sme.clientX,sme.clientY);ome(),lme&&!lme.el.contains(cme)&&(rme("spill"),this.onSpill({dragEl:ame,putSortable:tme}))}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function x_(eme){var $P=eme.oldDraggableIndex;this.startIndex=$P},onSpill:function x_(eme){var $P=eme.dragEl,tme=eme.putSortable;this.sortable.captureAnimationState(),tme&&tme.captureAnimationState();var ame=getChild(this.sortable.el,this.startIndex,this.options);ame?this.sortable.el.insertBefore($P,ame):this.sortable.el.appendChild($P),this.sortable.animateAll(),tme&&tme.animateAll()},drop};_extends$2m(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function x_(eme){var $P=eme.dragEl,tme=eme.putSortable,ame=tme||this.sortable;ame.captureAnimationState(),$P.parentNode&&$P.parentNode.removeChild($P),ame.animateAll()},drop};_extends$2m(Remove,{pluginName:"removeOnSpill"});Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);var ActionConfigPanel=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){var $P,tme,ame,nme,rme=this.props,ime=rme.data;rme.onBulkChange;var ome=rme.render,lme=rme.pluginActions,sme=rme.actionConfigItemsMap,cme=rme.manager,dme=ime.__subActions?ime.groupType:ime.actionType,ume=null;if(ime.actionType==="component"){var fme=(ame=(tme=($P=lme==null?void 0:lme[ime.__rendererName])===null||$P===void 0?void 0:$P.find(function(bme){return bme.actionType===ime.groupType}))===null||tme===void 0?void 0:tme.schema)!==null&&ame!==void 0?ame:sme&&((nme=sme[ime.groupType])===null||nme===void 0?void 0:nme.schema),pme=renderCmptActionSelect$1(i18n("d80bc0fcbfb250480320b683e48b1467"),!0,function(){},ime.componentId==="customCmptId",cme);ume=__spreadArray(__spreadArray([],__read$3(Array.isArray(pme)?pme:[pme]),!1),__read$3(Array.isArray(fme)?fme:[fme]),!1)}else{var hme=ime.__actionSchema;ume=isFunction$b(hme)?hme(cme,ime):hme}return ume?ome("inner",ume,{data:ime}):ime.__subActions?React__default.createElement(React__default.Fragment,null):React__default.createElement("div",{className:cx$1("ae-event-control-action-placeholder",{"no-settings":dme})},React__default.createElement("div",{className:"ae-event-control-action-placeholder-img"}),React__default.createElement("span",null,i18n(dme?"07682f1424e400c467accdb556d59e1c":"2e3ca80a58643bc28e87cc3b17bc9d80")))},eme}(React__default.Component);registerActionPanel("url",{label:i18n("dec2eb7145e149f281cb7e75fbe8972a"),tag:i18n("59ceff465ad16932d8972191ad815dfb"),description:i18n("ae10a948eca808b3dd77506b24f3fd0e"),innerArgs:["url","params","blank"],descDetail:function(x_,eme,$P){var tme;return React__default.createElement("div",{className:"action-desc"},i18n("c7a34a3465d1beea2f85d53edcff8235"),React__default.createElement("span",{className:"variable-left"},((tme=x_==null?void 0:x_.args)===null||tme===void 0?void 0:tme.url)||"-"))},schema:function(){var x_=getArgsWrapper([{type:"wrapper",body:[getSchemaTpl("textareaFormulaControl",{name:"url",label:i18n("8f1c078c6d42759e6ccb1a9bf35f1629"),variables:"${variables}",mode:"horizontal",size:"lg",required:!0,visibleOn:'this.actionType === "url"'}),{type:"combo",name:"params",label:i18n("0b72392143e4038e98128cb0f6f679b3"),multiple:!0,mode:"horizontal",size:"lg",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",placeholder:i18n("c068b579db3bf0a553bd0af4f81cc14f"),type:"input-text"},getSchemaTpl("formulaControl",{variables:"${variables}",name:"val",placeholder:i18n("bfed4943c5f487de1b63a82f7230cce2"),columnClassName:"flex-1"})]},{type:"switch",name:"blank",label:i18n("56aa76ab3c987377e855ae2c6c612050"),onText:i18n("0a60ac8f02ccd2cf723f927284877851"),offText:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),mode:"horizontal",pipeIn:defaultValue(!0)}]}]);return x_}});registerActionPanel("refresh",{label:i18n("39e107b7c4aa580f913ccbebc00f7534"),tag:i18n("59ceff465ad16932d8972191ad815dfb"),description:i18n("261242fe62b18b620419802c7dd7da7f"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},x_==null?void 0:x_.label)}});registerActionPanel("goBack",{label:i18n("ca180138a862543561d3a2c4f08b2e1b"),tag:i18n("59ceff465ad16932d8972191ad815dfb"),description:i18n("5f6b9e7a050ae3f34b38191435e14b24"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("27e0ca877865238aad6940481b2984d4"))}});function DialogActionPanel(x_){var eme,$P=x_.classnames;x_.render;var tme=x_.data,ame=x_.manager;x_.onChange;var nme=x_.onBulkChange,rme=x_.node,ime=x_.addHook,ome=x_.subscribeSchemaSubmit,lme=x_.appLocale,sme=x_.appCorpusData,cme=tme.eventKey;if(!cme)return React__default.createElement("div",null,"上下文数据错误");var dme=tme.actionIndex,ume=ame.store,fme=__read$3(React__default.useState([]),2),pme=fme[0],hme=fme[1],bme=pme.find(function(Ime){return Ime.isActive});React__default.useEffect(function(){ome(function(Ime,Pme,Mme){var kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume,Gme,Jme,Yme=(zme=(Lme=JSONGetById(Ime,Mme))===null||Lme===void 0?void 0:Lme.onEvent[cme])===null||zme===void 0?void 0:zme.actions;if(!(!Yme||!Array.isArray(Yme))){var Qme=Yme[typeof dme>"u"?Yme.length-1:dme],Xme=Qme==null?void 0:Qme.__actionModals;if(!Array.isArray(Xme))return Ime;var Kme=Xme.find(function(Sbe){return Sbe.isActive});Ime=__assign$3(__assign$3({},Ime),{definitions:__assign$3({},Ime.definitions)}),Xme.filter(function(Sbe){return Sbe.isModified&&Sbe!==Kme&&Sbe.modal.$$ref}).forEach(function(Sbe){var vbe,kbe,Rbe,Pbe,Mbe=Sbe.modal,Kbe=Sbe.isRefered,Qbe=Mbe,Gbe=Qbe.$$originId,Hbe=__rest$14(Qbe,["$$originId"]);if(Gbe){var d0e=JSONGetParentById(Ime,Gbe);if(Mme===Gbe)return;if(!d0e)Hbe.$$originId=Gbe;else if(Kbe===!1){var p0e=Hbe.type==="drawer"?"drawer":"dialog",S0e=d0e[p0e]||{},P0e=diff(S0e,Mbe,function(m0e,Ybe){return Ybe==="$$id"});if(P0e){var e0e=patchDiff(S0e,P0e);delete e0e.$$originId,delete e0e.$$ref,Ime=JSONUpdate(Ime,d0e.$$id,__assign$3(__assign$3({},d0e),(vbe={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(Rbe=Hbe.actionType)!==null&&Rbe!==void 0?Rbe:p0e},vbe[p0e]=e0e,vbe)),!0)}return}else{var _0e=Hbe.type==="drawer"?"drawer":"dialog";Ime=JSONUpdate(Ime,d0e.$$id,__assign$3(__assign$3({},d0e),(kbe={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(Pbe=Hbe.actionType)!==null&&Pbe!==void 0?Pbe:_0e},kbe[_0e]=JSONPipeIn({$ref:Mbe.$$ref}),kbe)),!0)}}Ime.definitions[Mbe.$$ref]=JSONPipeIn(Hbe)});var Zme=null,nbe=Kme.modal.type==="drawer"?"drawer":"dialog",lbe=null,ibe="";if(Kme.isCurrentActionModal)Zme=__assign$3(__assign$3({},Qme),(kme={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(Ume=Kme.modal.actionType)!==null&&Ume!==void 0?Ume:nbe,data:Kme.data},kme[nbe]=__assign$3(__assign$3({},Kme.modal),{data:void 0}),kme));else if(Kme.modal.$$ref){Zme=__assign$3(__assign$3({},Qme),(Bme={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(Gme=Kme.modal.actionType)!==null&&Gme!==void 0?Gme:nbe,data:Kme.data},Bme[nbe]={$ref:Kme.modal.$$ref},Bme));var abe=Kme.modal.$$originId;if(Ime.definitions[Kme.modal.$$ref]=JSONPipeIn(__assign$3(__assign$3({},Kme.modal),{$$originId:void 0,$$ref:void 0})),abe){var obe=JSONGetParentById(Ime,abe);obe&&obe.actionType?(lbe=obe.$$id,ibe=Kme.modal.$$ref):(Ime.definitions[Kme.modal.$$ref].$$originId=abe,Zme[nbe].$$originId=abe)}}else{var hbe="";Dme=__read$3(addModal(Ime,Kme.modal),2),Ime=Dme[0],hbe=Dme[1],Ime.definitions[hbe].$$originId=Kme.modal.$$id,Zme=__assign$3(__assign$3({},Qme),(jme={__actionModals:void 0,args:void 0,dialog:void 0,drawer:void 0,actionType:(Jme=Kme.modal.actionType)!==null&&Jme!==void 0?Jme:nbe,data:Kme.data},jme[nbe]=JSONPipeIn({$ref:hbe}),jme)),lbe=Kme.value,ibe=hbe}if(Ime=JSONUpdate(Ime,Qme.$$id,JSONPipeIn(Zme),!0),["dialog","drawer","confirmDialog"].includes(Ime.type)){var ube=Ime.$$originId||Ime.$$id;Object.keys(Ime.definitions).forEach(function(Sbe){var vbe=Ime.definitions[Sbe],kbe=JSONGetById(vbe,ube);kbe&&(Ime.definitions[Sbe]=JSONUpdate(Ime.definitions[Sbe],ube,__assign$3(__assign$3({},Ime),{definitions:void 0}),!0))})}var mbe=Kme.modal.$$id,pbe=[];if(JSONTraverse$1(Kme.modal,function(Sbe,vbe,kbe){vbe==="$ref"&&kbe.$$originId===mbe&&pbe.push(kbe.$$id)}),pbe.length){var _be="";Vme=__read$3(addModal(Ime,Kme.modal),2),Ime=Vme[0],_be=Vme[1],Ime=JSONUpdate(Ime,Qme.$$id,(Wme={},Wme[nbe]=JSONPipeIn({$ref:_be}),Wme)),pbe.forEach(function(Sbe){Ime=JSONUpdate(Ime,Sbe,{$ref:_be,$$originId:void 0})})}return lbe&&ibe&&(Ime=JSONUpdate(Ime,Kme.value,JSONPipeIn({$ref:ibe}),!0)),Ime}},!0)},[]);var mme=__read$3(React__default.useState({}),2),vme=mme[0],gme=mme[1];React__default.useEffect(function(){var Ime=ime(function(Pme){var Mme,kme=Pme.__actionModals;if(!kme||!Array.isArray(kme))throw new Error("程序异常");var Bme=kme.find(function(jme){return jme.isActive});if(!Bme)return gme(__assign$3(__assign$3({},vme),{dialog:"请选择一个弹窗"})),!1;var Dme=(Mme=Bme.modal.inputParams)===null||Mme===void 0?void 0:Mme.required;if(Array.isArray(Dme)&&Dme.length)if(Bme.data){if(Dme.some(function(jme){return!Bme.data[jme]}))return gme(__assign$3(__assign$3({},vme),{data:"参数中存在必填参数未赋值"})),!1}else return gme(__assign$3(__assign$3({},vme),{data:"参数不能为空"})),!1},"validate");return function(){return Ime()}},[]),React__default.useEffect(function(){var Ime,Pme,Mme,kme,Bme=typeof dme>"u"?{}:(Mme=(Pme=(Ime=rme.schema)===null||Ime===void 0?void 0:Ime.onEvent[cme])===null||Pme===void 0?void 0:Pme.actions)===null||Mme===void 0?void 0:Mme[dme],Dme=Bme[Bme.actionType==="drawer"?"drawer":"dialog"]||Bme.args,jme=ume.schema,Vme=ume.modals.map(function(Gme){var Jme,Yme=Gme.$$id===(Dme==null?void 0:Dme.$$id);return{label:"".concat(((Jme=Gme.editorSetting)===null||Jme===void 0?void 0:Jme.displayName)||Gme.title||"未命名弹窗").concat(Yme?"<当前动作内嵌弹窗>":Gme.$$ref?"":"<内嵌弹窗>"),tip:Gme.actionType==="confirmDialog"?"确认框":Gme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:Gme.$$id,modal:Gme,isCurrentActionModal:Yme,data:Gme.data,disabled:Gme.$$ref?Gme.$$ref===jme.$$ref:Gme.$$id===jme.$$id}}),Wme=(Dme==null?void 0:Dme.$$id)||"",Lme=Dme==null?void 0:Dme.$ref;Lme&&(Wme=((kme=Vme.find(function(Gme){return Gme.modal.$$ref===Lme}))===null||kme===void 0?void 0:kme.value)||"");var zme={waitForAction:tme.waitForAction,outputVar:tme.outputVar},Ume=Vme.map(function(Gme){var Jme;return __assign$3(__assign$3({},Gme),{isActive:Wme===Gme.value,data:Wme===Gme.value?JSONPipeOut((Jme=Bme.data)!==null&&Jme!==void 0?Jme:Gme.data):JSONPipeOut(Gme.data)})});hme(Ume),zme.__actionModals=Ume,nme(zme)},[]);var yme=React__default.useCallback(function(Ime){var Pme=pme.map(function(Mme){return __assign$3(__assign$3({},Mme),{isActive:Mme.value===Ime.value})});nme({__actionModals:Pme}),hme(Pme),gme(__assign$3(__assign$3({},vme),{dialog:"",data:""}))},[pme]),_me=React__default.useCallback(function(Ime,Pme,Mme){var kme=[];JSONTraverse$1(Mme,function(Dme,jme){jme==="$ref"&&kme.push(Dme)});var Bme=Ime;return Object.keys(Pme).forEach(function(Dme){var jme;Bme===Ime&&(Bme=Ime.concat());var Vme=Pme[Dme],Wme=Vme.$$originId,Lme=__rest$14(Vme,["$$originId"]);if(!(Wme===Mme.$$id||Lme.$$ref&&Lme.$$ref===Mme.$$ref)){var zme=Bme.findIndex(function(Jme){return Wme?(Jme.modal.$$originId||Jme.modal.$$id)===Wme:Jme.modal.$$ref===Dme}),Ume="".concat(((jme=Lme.editorSetting)===null||jme===void 0?void 0:jme.displayName)||Lme.title||"未命名弹窗"),Gme=Lme.actionType==="confirmDialog"?"确认框":Lme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732");if(~zme)Bme.splice(zme,1,__assign$3(__assign$3({},Bme[zme]),{label:Ume,tip:Gme,modal:__assign$3(__assign$3({},Lme),{$$ref:Dme,$$originId:Wme}),isModified:!0,isRefered:kme.includes(Dme)}));else if(kme.includes(Dme)){if(Wme)throw new Error("Definition merge exception");Bme.push({label:Ume,tip:Gme,value:Lme.$$id,modal:JSONPipeIn(__assign$3(__assign$3({},Lme),{$$ref:Dme})),isModified:!0})}}}),Bme},[]),$me=React__default.useCallback(function(Ime,Pme,Mme,kme){var Bme={$$id:guid$1(),type:"dialog",title:"未命名弹窗",body:[{type:"tpl",tpl:"弹窗内容"}],definitions:modalsToDefinitions(pme.map(function(jme){return jme.modal}))},Dme=Bme.$$id;ame.openSubEditor({title:i18n("a781b5903a4013c147783e1047f42e08"),value:Bme,onChange:function(jme,Vme){var Wme,Lme=jme.definitions,zme=__rest$14(jme,["definitions"]);zme=JSONPipeIn(__assign$3(__assign$3({},zme),{$$id:Dme}));var Ume=pme.concat();Ume.some(function(Gme){return Gme.isNew})||(Ume.push({label:"".concat(((Wme=zme.editorSetting)===null||Wme===void 0?void 0:Wme.displayName)||zme.title||"未命名弹窗"),tip:zme.actionType==="confirmDialog"?"确认框":zme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),isNew:!0,isCurrentActionModal:!0,value:zme.$$id,modal:zme}),Ume=_me(Ume,Lme,zme),Ume=Ume.map(function(Gme){return __assign$3(__assign$3({},Gme),{isActive:Gme.value===zme.$$id})})),hme(Ume),nme({__actionModals:Ume})}}),kme==null||kme()},[pme]),Cme=React__default.useCallback(function(){var Ime=pme.find(function(Pme){return Pme.isActive});Ime&&ame.openSubEditor({title:"编辑弹窗",value:__assign$3(__assign$3({type:"dialog",title:i18n("53bed22bc03c0fd61fe4fb81101f712a"),body:[{type:"tpl",tpl:"弹窗内容"}]},Ime.modal),{definitions:modalsToDefinitions(pme.map(function(Pme){return Pme.modal}),{},Ime.modal)}),onChange:function(Pme,Mme){var kme=Pme.definitions,Bme=__rest$14(Pme,["definitions"]);Bme=JSONPipeIn(__assign$3(__assign$3({},Bme),{$$id:Ime.modal.$$id}));var Dme=pme.map(function(jme){var Vme;return jme.value===Ime.value?__assign$3(__assign$3({},jme),{modal:Bme,isModified:!0,label:"".concat(((Vme=Bme.editorSetting)===null||Vme===void 0?void 0:Vme.displayName)||Bme.title||"未命名弹窗").concat(jme.isCurrentActionModal?"<当前动作内嵌弹窗>":""),tip:Bme.actionType==="confirmDialog"?"确认框":Bme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732")}):jme});Dme=_me(Dme,kme,Bme),hme(Dme),nme({__actionModals:Dme})}})},[pme]),Sme=React__default.useCallback(function(Ime){Eme(Ime?{}:void 0)},[pme]),Eme=React__default.useCallback(function(Ime){var Pme=pme.map(function(Mme){return Mme.isActive?__assign$3(__assign$3({},Mme),{data:Ime}):Mme});hme(Pme),nme({__actionModals:Pme}),gme(__assign$3(__assign$3({},vme),{data:""}))},[pme]),xme=React__default.useCallback(function(Ime){nme({waitForAction:!!Ime})},[]),Tme=React__default.useCallback(function(Ime){nme({outputVar:Ime})},[]),Ome=Array.isArray((eme=bme==null?void 0:bme.modal.inputParams)===null||eme===void 0?void 0:eme.required)&&bme.modal.inputParams.required.length;React__default.useEffect(function(){Ome&&!(bme!=null&&bme.data)&&Eme({})},[Ome]);var Rme=React__default.useCallback(function(Ime,Pme){return React__default.createElement("div",{className:"flex w-full justify-between"},React__default.createElement("span",null,Ime.label),React__default.createElement("span",{className:"text-muted"},Ime.tip))},[]),Nme=React__default.useMemo(function(){return{variables:function(){return getVariables({props:{node:rme,manager:ame},appLocale:lme,appCorpusData:sme})}}},[rme,ame]);return React__default.createElement("div",{className:$P("ae-DialogActionPanel")},React__default.createElement(ThemedFormField,{label:i18n("7cc53692d650e049802d808b81efe7f5"),mode:"horizontal",isRequired:!0,hasError:!!vme.dialog,errors:vme.dialog},React__default.createElement("div",{className:$P("Form-control Form-control--withSize Form-control--sizeLg")},React__default.createElement(EnhancedSelect,{createBtnLabel:i18n("a781b5903a4013c147783e1047f42e08"),value:(bme==null?void 0:bme.value)||"",onChange:yme,options:pme,creatable:!pme.some(function(Ime){return Ime.isNew}),clearable:!1,onAdd:$me,renderMenu:Rme}),bme&&pme.some(function(Ime){return Ime.isCurrentActionModal&&!Ime.isNew&&bme!==Ime})?React__default.createElement("div",{className:$P("Alert Alert--warning mt-3")},"切换弹窗后原来的内嵌弹窗将会被删除"):null,bme?React__default.createElement("div",{className:"m-t-sm"},React__default.createElement(Button$1,{size:"sm",level:"enhance",onClick:Cme},"编辑选中弹窗")):null)),bme?React__default.createElement(ThemedFormField,{label:"参数赋值",mode:"horizontal",hasError:!!vme.data,errors:vme.data,description:bme.data?"":"弹窗内参数赋值将优先取此处配置，若关闭配置或无配置值则会透传上下文数据。"},React__default.createElement("div",{className:$P("Form-control Form-control--withSize Form-control--sizeLg")},React__default.createElement(Switch$1,{className:"mt-2 m-b-xs",value:!!bme.data,onChange:Sme,disabled:Ome}),bme.data?React__default.createElement(InputJSONSchema$1,{className:"m-t-sm",value:bme.data,onChange:Eme,schema:JSONPipeOut(bme.modal.inputParams),addButtonText:"添加参数",formula:Nme}):null)):null,React__default.createElement(ThemedFormField,{label:"等待弹窗",mode:"horizontal",description:"当前打开弹窗动作结束后，才执行下一步动作"},React__default.createElement("div",{className:$P("Form-control Form-control--withSize Form-control--sizeLg")},React__default.createElement(Switch$1,{className:"mt-2 m-b-xs",value:!!tme.waitForAction,onChange:xme}))),tme.waitForAction?React__default.createElement(ThemedFormField,{label:"响应结果",mode:"horizontal",description:"弹窗动作结束后的出参变量名配置"},React__default.createElement("div",{className:$P("Form-control Form-control--withSize Form-control--sizeLg")},React__default.createElement(InputBox$1,{onChange:Tme,value:tme.outputVar||"",placeholder:"请输入存储响应结果的变量名称"}))):null)}var DialogActionPanel$1=observer(DialogActionPanel),modalDescDetail=function(x_,eme,$P){var tme,ame,nme,rme,ime=eme.eventKey,ome=eme.actionIndex;$P.actionTree,$P.actions,$P.commonActions,$P.allComponents;var lme=$P.node,sme=$P.manager,cme=sme.store,dme=cme.modals,ume=(tme=lme.schema)===null||tme===void 0?void 0:tme.onEvent,fme=(ame=ume==null?void 0:ume[ime].actions)===null||ame===void 0?void 0:ame[ome],pme=fme==null?void 0:fme[(fme==null?void 0:fme.actionType)==="drawer"?"drawer":"dialog"],hme=pme==null?void 0:pme.$$id;pme!=null&&pme.$ref&&(hme=((nme=dme.find(function(gme){return gme.$$ref===pme.$ref}))===null||nme===void 0?void 0:nme.$$id)||"");var bme=hme?sme.store.modals.find(function(gme){return gme.$$id===hme}):"";if(bme){var mme=((rme=bme.editorSetting)===null||rme===void 0?void 0:rme.displayName)||bme.title||"未命名弹窗";return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:"action-desc"},"打开 ",React__default.createElement("span",{className:"desc-tag variable-left variable-right"},React__default.createElement(TooltipWrapper$1,{rootClose:!0,placement:"top",tooltip:"".concat(mme,"，点击查看弹窗配置"),tooltipClassName:"ae-event-item-header-tip"},React__default.createElement("a",{href:"#",className:"component-action-tag",onClick:function(gme){gme.preventDefault(),gme.stopPropagation();var yme=bme.$$id;sme.openSubEditor({title:"编辑弹窗",value:__assign$3(__assign$3({type:"dialog"},bme),{definitions:modalsToDefinitions(cme.modals,{},bme)}),onChange:function(_me,$me){var Cme=_me.definitions,Sme=__rest$14(_me,["definitions"]);cme.updateModal(yme,Sme,Cme)}})}},mme)))," ",bme.actionType==="confirmDialog"?"确认框":bme.type==="drawer"?"抽屉弹窗":i18n("6cff4b6d794cc17f5d24dbe0d21e5732")))}else if(Array.isArray(x_.__actionModals)){var vme=x_.__actionModals.find(function(gme){return gme.isActive});if(vme)return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:"action-desc"},i18n("d7098f5050f017673319c5db1473ada7"),React__default.createElement("span",{className:"variable-left"},vme.label)," ",vme.tip))}return null};registerActionPanel("openDialog",{label:i18n("0561589c26e732981f29709a9b574234"),tag:i18n("0db9e779f5cd9ad8bd3d16d7e8a16b64"),description:i18n("4a502e748d1335385c2c05bf30e582e7"),actions:[{actionType:"dialog",descDetail:modalDescDetail},{actionType:"drawer",descDetail:modalDescDetail},{actionType:"confirmDialog",descDetail:modalDescDetail}],schema:[{component:DialogActionPanel$1}]});registerActionPanel("closeDialog",{label:i18n("3b02248ca3790e356e47b6900c0e3931"),tag:i18n("0db9e779f5cd9ad8bd3d16d7e8a16b64"),description:i18n("f33c2c6ff58bcec40d3e74e591bb3df2")});var MSG_TYPES={info:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),warning:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),success:i18n("330363dfc524cff2488f2ebde0500896"),error:i18n("7030ff64701a938becbc5aa67ddb86e8")};registerActionPanel("toast",{label:i18n("e495f416b83e4c7ff3c66ec3be96a76f"),tag:i18n("0db9e779f5cd9ad8bd3d16d7e8a16b64"),description:i18n("61d7aaa88181c527cfb936d4c686d267"),innerArgs:["title","msgType","msg","position","timeout","closeButton","showIcon","className"],descDetail:function(x_,eme,$P){var tme,ame;return React__default.createElement("div",{className:"action-desc"},MSG_TYPES[(tme=x_==null?void 0:x_.args)===null||tme===void 0?void 0:tme.msgType]||"",React__default.createElement("span",{className:"variable-left"},((ame=x_==null?void 0:x_.args)===null||ame===void 0?void 0:ame.msg)||"-"))},schema:getArgsWrapper({type:"wrapper",body:[{type:"button-group-select",name:"msgType",label:i18n("6d00710a2528332bfcac14b58e412042"),value:"info",required:!0,mode:"horizontal",options:Object.keys(MSG_TYPES).map(function(x_){return{label:MSG_TYPES[x_],value:x_,level:"default"}})},getSchemaTpl("textareaFormulaControl",{name:"msg",label:i18n("b87b77561e776367e6756e11ea652217"),mode:"horizontal",variables:"${variables}",size:"lg",required:!0}),getSchemaTpl("textareaFormulaControl",{name:"title",label:i18n("43ab9af06e1e0f0b2a8767b46cf8b1cf"),variables:"${variables}",mode:"horizontal",size:"lg"}),getSchemaTpl("formulaControl",{name:"timeout",label:i18n("f41a94bb85c5223181c4cdf83ea9021b"),rendererSchema:{type:"input-number"},valueType:"number",variables:"${variables}",size:"lg",mode:"horizontal"}),{type:"button-group-select",name:"position",value:"top-right",mode:"horizontal",label:i18n("a0a837f2873de80bc9ec353c30e73171"),options:[{label:i18n("f3296f64a8a1330d7a07f1d269a1db92"),value:"top-left"},{label:i18n("b97a5adf068bee6c852db9dcea3a9799"),value:"top-center"},{label:i18n("eafeba264b6338939f11f1b1adf40d2b"),value:"top-right"},{label:i18n("d429ffb093e9aa3bf80da125f1be318c"),value:"bottom-left"},{label:i18n("c241aa8f427118a719b94cbd8f2bb22d"),value:"bottom-center"},{label:i18n("9cd707caffdfb314d939298f2f2c267c"),value:"bottom-right"}]},{type:"switch",name:"closeButton",value:!0,label:i18n("8c8fbec263e20f087555c9abcb6dd07a"),mode:"horizontal"},{type:"switch",name:"showIcon",value:!0,label:i18n("3f3a016027e540ef10a16dbd49fffde9"),mode:"horizontal"}]})});registerActionPanel("ajax",{label:i18n("4f02d2efe05a20232ab9da63c090595c"),tag:i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),description:i18n("0cd902f953656adb29985b68e6fc9754"),descDetail:function(x_,eme,$P){var tme,ame,nme=(tme=x_==null?void 0:x_.api)!==null&&tme!==void 0?tme:(ame=x_==null?void 0:x_.args)===null||ame===void 0?void 0:ame.api;return typeof nme=="string"&&(nme=normalizeApi(nme)),React__default.createElement("div",{className:"action-desc"},i18n("1535fcfa4cb8e4d467127154977e9788"),React__default.createElement("span",{className:"variable-right variable-left"},(nme==null?void 0:nme.method)||"-"),i18n("c14a21300b61bb83b4420a1586497951"),React__default.createElement("span",{className:"variable-left"},(nme==null?void 0:nme.url)||"-"))},schema:function(){return[{type:"wrapper",className:"p-none",body:[getSchemaTpl("apiControl",{name:"api",label:i18n("88bdaf32c27ab169d3d686b86b3fae99"),mode:"horizontal",size:"lg",inputClassName:"m-b-none",renderLabel:!0,required:!0}),{name:"options",type:"combo",label:tipedLabel(i18n("6e6d4269d0dc3324d551062350a2ae9f"),i18n("56e13c39822a814ab39b0d5a0867d7dc")),mode:"horizontal",items:[{type:"switch",name:"silent",label:!1,onText:i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),offText:i18n("b15d91274e9fc68608c609999e0413fa"),mode:"horizontal",pipeIn:defaultValue(!1)}]},{name:"outputVar",type:"input-text",label:i18n("139c619a4dbfc26fb61d76dc388e3e7d"),placeholder:i18n("4dca05af026848011eedee1b53efa61c"),description:i18n("4da82260041107e5780bcbb3a14ef791"),mode:"horizontal",size:"lg",value:"responseResult",required:!0}]}]},outputVarDataSchema:[{type:"object",title:"responseResult",properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("3f9e257178738d5d180ddc2996809c10")},responseMsg:{type:"string",title:i18n("99c74120cc62f4bf31d661e3212b7121")}}}]});registerActionPanel("download",{label:i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),tag:i18n("47d68cd0f4c3e91a86d23afe8afccfb8"),description:i18n("89049706952412d790b801def284629e"),schema:{type:"wrapper",className:"p-none",body:[getSchemaTpl("apiControl",{name:"api",label:i18n("88bdaf32c27ab169d3d686b86b3fae99"),mode:"horizontal",inputClassName:"m-b-none",size:"lg",renderLabel:!0,required:!0})]}});var SELECT_PROPS_CONTAINER$1=["form"],renderCmptActionSelect=function(x_,eme,$P,tme,ame){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(x_||i18n("d80bc0fcbfb250480320b683e48b1467"),!0,function(nme,rme,ime,ome){return __awaiter(void 0,void 0,void 0,function(){var lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:return ome.data.__nodeId?ome.data.actionType!=="setValue"?[3,3]:(ome.setValueByName("args.value",[]),ome.setValueByName("args.__comboType",void 0),ome.setValueByName("args.__valueInput",void 0),ome.setValueByName("args.__containerType",void 0),SELECT_PROPS_CONTAINER$1.includes(ome.data.__rendererName)?[4,(ume=(dme=ome.data).getContextSchemas)===null||ume===void 0?void 0:ume.call(dme,ome.data.__nodeId,!0)]:[3,2]):[3,3];case 1:return lme=fme.sent(),sme=new DataSchema(lme||[]),cme=(sme==null?void 0:sme.getDataPropsAsOptions())||[],ome.setValueByName("__setValueDs",cme.filter(function(pme){return pme.value!=="$$id"})),[3,3];case 2:ome.setValueByName("__setValueDs",[]),fme.label=3;case 3:return ome.setValueByName("groupType",""),$P==null||$P(nme,rme,ime,ome),[2]}})})},tme)),!1),[{type:"input-text",name:"__cmptId",mode:"horizontal",size:"lg",required:!0,label:i18n("8191e975f70edd63fe65476dd8bc0ddc"),visibleOn:'this.componentId === "customCmptId" && this.actionType === "component"',onChange:function(nme,rme,ime,ome){return __awaiter(void 0,void 0,void 0,function(){var lme;return __generator(this,function(sme){return lme=JSONGetById(ame.store.schema,nme,"id"),lme?ome.setValues({__rendererName:lme.type}):ome.setValues({__rendererName:""}),[2]})})}},{asFormItem:!0,label:i18n("8deee3cdecdf06a05d22fcacc7031492"),name:"groupType",mode:"horizontal",required:!0,visibleOn:'this.actionType === "component"',component:CmptActionSelect,description:"${__cmptActionDesc}"}],!1)},renderCmptSelect=function(x_,eme,$P,tme){return[{type:"tree-select",name:"componentId",label:x_||i18n("d80bc0fcbfb250480320b683e48b1467"),showIcon:!1,searchable:!0,required:eme,selfDisabledAffectChildren:!1,size:"lg",source:"${__cmptTreeSource}",mode:"horizontal",autoFill:__assign$3({__isScopeContainer:"${isScopeContainer}"},tme?{}:{__rendererLabel:"${label}",__rendererName:"${type}",__nodeId:"${id}",__nodeSchema:"${schema}"}),onChange:function(ame,nme,rme,ime){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(ome){return $P==null||$P(ame,nme,rme,ime),[2]})})}}]},renderCmptIdInput=function(x_){return{type:"input-text",name:"__cmptId",mode:"horizontal",size:"lg",required:!0,label:i18n("8191e975f70edd63fe65476dd8bc0ddc"),visibleOn:'this.componentId === "customCmptId"',onChange:function(eme,$P,tme,ame){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(nme){return x_==null||x_(eme,$P,tme,ame),[2]})})}}};registerActionPanel("visibility",{label:i18n("c852fb60f1b8ce921c3def1eba000bc5"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("1bd4cfded5e11a7a8ea4dcfd2fa17e15"),actions:[{actionType:"show",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))}},{actionType:"hidden",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("dce5379cb978a8259ecfca8f08f00817"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))}},{actionType:"visibility",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("bb79667f37035e9562ec6bcffd6cf8ef"),buildLinkActionDesc($P.manager,x_),i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"))}}],supportComponents:"*",schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput(),{type:"radios",label:i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),name:"groupType",mode:"horizontal",value:"static",required:!0,inputClassName:"event-action-radio",options:[{label:i18n("8baf21fa26d6d24b4faa872953275d8d"),value:"static"},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:"visibility"}]},{type:"radios",label:i18n("edf25860e3d457eb8ca9cb5dca06dfd7"),name:"__statusType",mode:"horizontal",value:"show",required:!0,pipeIn:defaultValue("show"),inputClassName:"event-action-radio",visibleOn:"this.groupType === 'static'",options:[{label:i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),value:"show"},{label:i18n("dce5379cb978a8259ecfca8f08f00817"),value:"hidden"}]},getSchemaTpl("expressionFormulaControl",{mode:"horizontal",label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),required:!0,size:"lg",variables:"${variables}",evalMode:!0,name:"__actionExpression",visibleOn:"this.groupType === 'visibility'"})],!1)}});var SUPPORT_DISABLED_CMPTS=["button-group","action","button","submit","reset","collapse","container","dropdown-button","flex","flex-item","grid","grid-2d","link","nav","wizard"];registerActionPanel("usability",{label:i18n("12c8d50c55eeec7059ddd5c303e34f77"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("5e75800641ec5c1198092bcf9d34f180"),actions:[{actionType:"enabled",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("7854b52a889b3ef0590d9f542efeb4c8"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))}},{actionType:"disabled",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("710ad08b11419332713360d2750cd707"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))}},{actionType:"usability",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("bb79667f37035e9562ec6bcffd6cf8ef"),buildLinkActionDesc($P.manager,x_),i18n("7f019b96ffb7d72ec8d6ce8d76e5362f"))}}],supportComponents:__spreadArray(["form","isFormItem"],__read$3(SUPPORT_DISABLED_CMPTS),!1),schema:__spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput(),{type:"radios",label:i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),name:"groupType",mode:"horizontal",inputClassName:"event-action-radio",value:"static",required:!0,options:[{label:i18n("8baf21fa26d6d24b4faa872953275d8d"),value:"static"},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:"usability"}]},{type:"radios",label:i18n("d86d5919f595226b7a1e8264635ca23d"),name:"__statusType",mode:"horizontal",inputClassName:"event-action-radio",value:"enabled",required:!0,pipeIn:defaultValue("enabled"),visibleOn:"this.groupType === 'static'",options:[{label:i18n("7854b52a889b3ef0590d9f542efeb4c8"),value:"enabled"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"disabled"}]},getSchemaTpl("expressionFormulaControl",{mode:"horizontal",label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),required:!0,size:"lg",evalMode:!0,name:"__actionExpression",visibleOn:"this.groupType === 'usability'"})],!1)});registerActionPanel("staticStatus",{label:i18n("e052287273ad39a1d3fa9fa3decb5fd9"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("506f28f48dbebd5d19e19dfc721e13be"),actions:[{actionType:"static",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},buildLinkActionDesc($P.manager,x_),"切换为静态展示")}},{actionType:"nonstatic",descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},React__default.createElement("span",{className:"variable-right"},(x_==null?void 0:x_.rendererLabel)||x_.componentId),i18n("34d361256526b04909e064c29d9a9b76"))}}],supportComponents:["form","isStaticFormItem"],schema:__spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("d80bc0fcbfb250480320b683e48b1467"),!0)),!1),[renderCmptIdInput(),{type:"radios",label:i18n("d2e930293da37452638759e17d771adf"),name:"groupType",mode:"horizontal",inputClassName:"event-action-radio",value:"nonstatic",required:!0,pipeIn:defaultValue("nonstatic"),options:[{label:i18n("b535bea11c97ec5588b1494799de4d60"),value:"nonstatic"},{label:i18n("f7784642f42d33f506ba05f3daefc3c4"),value:"static"}]}],!1)});registerActionPanel("reload",{label:i18n("0eb4e63db88e158600dab0e723e8a213"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("f16654604d6cb2f62469e5aa9db19871"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"),buildLinkActionDesc($P.manager,x_),i18n("bb79667f37035e9562ec6bcffd6cf8ef"))},supportComponents:"byComponent",schema:function(x_){return[{type:"wrapper",size:"sm",className:"p-0",body:__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0,function(eme,$P,tme,ame){ame.setValueByName("args.resetPage",!0),ame.setValueByName("__addParam",!1),ame.setValueByName("__containerType","all"),ame.setValueByName("__reloadParam",[])},!0)),!1)},renderCmptIdInput(function(eme,$P,tme,ame){var nme=JSONGetById(x_.store.schema,eme,"id");if(nme){var rme=getRendererByName(nme.type),ime=!!(rme!=null&&rme.storeType),ome=nme.type;ame.setValues({__isScopeContainer:ime,__rendererName:ome})}else ame.setValues({__isScopeContainer:!1,__rendererName:""})}),{type:"switch",name:"__resetPage",label:tipedLabel(i18n("697af73997072e0ce9ee65b15a7b3715"),i18n("d7bf42dd6e66f2818f9a232603c4a53b")),onText:i18n("0a60ac8f02ccd2cf723f927284877851"),offText:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),mode:"horizontal",pipeIn:defaultValue(!0),visibleOn:'this.actionType === "reload" && this.__rendererName === "crud"'},{type:"switch",name:"__addParam",label:tipedLabel(i18n("8f0064a9cfd7dcbb3c729f1357f11772"),i18n("a0c117d927c6290bab55ae0e848a4d4b")),onText:i18n("0a60ac8f02ccd2cf723f927284877851"),offText:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),mode:"horizontal",pipeIn:defaultValue(!1),visibleOn:'this.actionType === "reload" &&  this.__isScopeContainer',onChange:function(eme,$P,tme,ame){ame.setValueByName("__containerType","all")}},{type:"radios",name:"__containerType",mode:"horizontal",label:"",pipeIn:defaultValue("all"),visibleOn:'this.__addParam && this.actionType === "reload" && this.__isScopeContainer',options:[{label:i18n("77b1081c177fa3334cc93c99f0ecee75"),value:"all"},{label:i18n("f5c5e3d69daee06ea1606378ef466765"),value:"appoint"}],onChange:function(eme,$P,tme,ame){ame.setValueByName("__reloadParams",[]),ame.setValueByName("__valueInput",void 0)}},getSchemaTpl("formulaControl",{name:"__valueInput",label:"",variables:"${variables}",size:"lg",mode:"horizontal",required:!0,visibleOn:'this.__addParam && this.__containerType === "all" && this.actionType === "reload" && this.__isScopeContainer'}),{type:"combo",name:"__reloadParams",label:"",multiple:!0,removable:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,size:"lg",mode:"horizontal",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",type:"input-text",placeholder:i18n("c068b579db3bf0a553bd0af4f81cc14f"),labelField:"label",valueField:"value",required:!0},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",placeholder:i18n("bfed4943c5f487de1b63a82f7230cce2"),columnClassName:"flex-1"})],visibleOn:'this.__addParam && this.__containerType === "appoint" && this.actionType === "reload" && this.__isScopeContainer'},{type:"radios",name:"dataMergeMode",mode:"horizontal",label:tipedLabel(i18n("eb6cd21b9ed45ded3ecdb12f62b590e1"),i18n("b67b01a3b9170f1daf78082cfd0df793")),pipeIn:defaultValue("merge"),visibleOn:'this.__addParam && this.actionType === "reload" && this.__isScopeContainer',options:[{label:i18n("bd81577a6fd4956e676cec499bb70d00"),value:"merge"},{label:i18n("e09fea40f7e4abd4b2a495b315940688"),value:"override"}]}]}});var SELECT_PROPS_CONTAINER=["form"],SHOW_SELECT_PROP="".concat(JSON.stringify(SELECT_PROPS_CONTAINER),".includes(this.__rendererName)"),getCustomNodeTreeSelectSchema=function(x_){return __assign$3({type:"tree-select",name:"path",label:i18n("c6f30c2f084ddeacb7944235348bdaa4"),multiple:!1,mode:"horizontal",required:!0,placeholder:i18n("844a7a7aacc5be82d0fd6225edc6bf63"),showIcon:!1,size:"lg",hideRoot:!1,rootLabel:i18n("c6f30c2f084ddeacb7944235348bdaa4"),options:[],menuTpl:{type:"flex",className:"p-1",items:[{type:"container",body:[{type:"tpl",tpl:"${label}",inline:!0,wrapperComponent:""}],style:{display:"flex",flexWrap:"nowrap",alignItems:"center",position:"static",overflowY:"auto",flex:"0 0 auto"},wrapperBody:!1,isFixedHeight:!0},{type:"container",body:[{type:"tpl",tpl:"${type}",inline:!0,wrapperComponent:"",style:{background:"#f5f5f5",paddingLeft:"8px",paddingRight:"8px",borderRadius:"4px"}}],size:"xs",style:{display:"flex",flexWrap:"nowrap",alignItems:"center",position:"static",overflowY:"auto",flex:"0 0 auto"},wrapperBody:!1,isFixedHeight:!0,isFixedWidth:!1}],style:{position:"relative",inset:"auto",flexWrap:"nowrap",justifyContent:"space-between",alignItems:"center",height:"24px",overflowY:"hidden"},isFixedHeight:!0,isFixedWidth:!1}},x_)};registerActionPanel("setValue",{label:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("2464e9d13bfc84169eb8333b6996203c"),innerArgs:["path","value","index","__valueInput","__comboType","__containerType"],descDetail:function(x_,eme,$P){var tme,ame,nme=(tme=$P.manager)===null||tme===void 0?void 0:tme.variableManager;return React__default.createElement("div",{className:"action-desc"},typeof((ame=x_==null?void 0:x_.args)===null||ame===void 0?void 0:ame.path)=="string"&&!(x_!=null&&x_.componentId)?React__default.createElement(React__default.Fragment,null,"设置变量",React__default.createElement("span",{className:"variable-left variable-right"},nme==null?void 0:nme.getNameByPath(x_.args.path)),i18n("b91ebe714155c83b6d3bc02b675a31e9")):React__default.createElement(React__default.Fragment,null,"设置组件",buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9")))},supportComponents:"byComponent",schema:function(x_){var eme=x_==null?void 0:x_.variableManager,$P=(eme==null?void 0:eme.getVariableOptions())||[],tme=(eme==null?void 0:eme.getPageVariablesOptions())||[];return[{children:function(ame){var nme,rme=ame.render,ime=ame.data,ome=((nme=ime==null?void 0:ime.args)===null||nme===void 0?void 0:nme.path)||"";return rme("setValueType",{name:"__actionSubType",type:"radios",label:i18n("6c6e12c54723170f214527bedaf81f7d"),mode:"horizontal",options:[{label:i18n("1b7e6b2dbf3b7f4b1baf2c42e49a995d"),value:"cmpt"},{label:i18n("0b72392143e4038e98128cb0f6f679b3"),value:"page"},{label:i18n("c6f30c2f084ddeacb7944235348bdaa4"),value:"app"}],value:/^appVariables/.test(ome)?"app":/^(__page|__query)/.test(ome)?"page":"cmpt",onChange:function(lme,sme,cme,dme){dme.setValueByName("__valueInput",void 0),dme.setValueByName("args.value",void 0),dme.deleteValueByName("args.path")}})}},{type:"container",visibleOn:'__actionSubType === "cmpt"',body:[{type:"wrapper",visibleOn:'this.componentId === "customCmptId"',className:"p-none mb-6",body:__spreadArray([],__read$3(renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"),!0,function(ame,nme,rme,ime){ime.setValueByName("args.__containerType","all"),ime.setValueByName("args.__comboType","all")},!0)),!1)},{type:"wrapper",visibleOn:'this.componentId !== "customCmptId"',className:"p-none mb-6",body:__spreadArray([],__read$3(renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"),!0,function(ame,nme,rme,ime){ime.setValueByName("args.__containerType","all"),ime.setValueByName("args.__comboType","all")})),!1)},renderCmptIdInput(function(ame,nme,rme,ime){var ome=getRootManager(x_),lme=JSONGetById(ome.store.schema,ame,"id");if(lme){var sme=getRendererByName(lme.type),cme=!!(sme!=null&&sme.storeType),dme=lme.type;ime.setValues({__isScopeContainer:cme,__rendererName:dme})}else ime.setValues({__isScopeContainer:!1,__rendererName:""})}),getArgsWrapper({type:"wrapper",body:[{type:"radios",name:"__containerType",mode:"horizontal",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),pipeIn:defaultValue("all"),visibleOn:"this.__isScopeContainer",options:[{label:i18n("77b1081c177fa3334cc93c99f0ecee75"),value:"all"},{label:i18n("f5c5e3d69daee06ea1606378ef466765"),value:"appoint"}],onChange:function(ame,nme,rme,ime){ime.setValueByName("value",[]),ime.setValueByName("__valueInput",void 0)}},{type:"radios",name:"__comboType",inputClassName:"event-action-radio",mode:"horizontal",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),pipeIn:defaultValue("all"),visibleOn:"this.__rendererName === 'combo' || this.__rendererName === 'input-table'",options:[{label:i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),value:"all"},{label:i18n("139294edcce271bf483dda437c421c29"),value:"appoint"}],onChange:function(ame,nme,rme,ime){ime.setValueByName("index",void 0),ime.setValueByName("value",[]),ime.setValueByName("__valueInput",void 0)}},getSchemaTpl("formulaControl",{name:"index",label:i18n("a7b0b80a7bea1e5e973967c179866ef0"),required:!0,rendererSchema:{type:"input-number"},valueType:"number",variables:"${variables}",size:"lg",mode:"horizontal",placeholder:i18n("e887792fbbd65d21e43e832a5cd63aac"),visibleOn:`(this.__rendererName === 'input-table' || this.__rendererName === 'combo')
              && this.__comboType === 'appoint'`}),{type:"combo",name:"value",label:"",multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,size:"lg",mode:"horizontal",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",type:"input-text",placeholder:i18n("a25657422b40023f2731619587940bc7"),source:"${__setValueDs}",labelField:"label",valueField:"value",required:!0},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",placeholder:i18n("a33903526e8fb3d1ac3066da70e7941e"),columnClassName:"flex-1"})],visibleOn:"this.__isScopeContainer && this.__containerType === 'appoint' || this.__comboType === 'appoint'"},{type:"combo",name:"value",label:"",multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,mode:"horizontal",size:"lg",items:[{type:"combo",name:"item",label:!1,renderLabel:!1,multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,className:"m-l",size:"lg",mode:"horizontal",formClassName:"event-action-combo",itemClassName:"event-action-combo-item",items:[{name:"key",type:"input-text",source:"${__setValueDs}",labelField:"label",valueField:"value",required:!0,visibleOn:"this.__rendererName"},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",columnClassName:"flex-1"})]}],visibleOn:`(this.__rendererName === 'combo' || this.__rendererName === 'input-table')
              && this.__comboType === 'all'`},getSchemaTpl("formulaControl",{name:"__valueInput",label:"",variables:"${variables}",size:"lg",mode:"horizontal",visibleOn:"(this.__isScopeContainer || ".concat(SHOW_SELECT_PROP,") && this.__containerType === 'all'"),required:!0}),getSchemaTpl("formulaControl",{name:"__valueInput",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),variables:"${variables}",size:"lg",mode:"horizontal",visibleOn:"this.__rendererName && !this.__isScopeContainer && this.__rendererName !== 'combo' && this.__rendererName !== 'input-table'",required:!0})]})]},{type:"container",visibleOn:'__actionSubType === "page"',body:[getArgsWrapper([{type:"wrapper",body:[getCustomNodeTreeSelectSchema({label:i18n("0b72392143e4038e98128cb0f6f679b3"),rootLabel:i18n("0b72392143e4038e98128cb0f6f679b3"),options:tme,horizontal:{leftFixed:!0}}),getSchemaTpl("formulaControl",{name:"value",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),variables:"${variables}",size:"lg",mode:"horizontal",required:!0,placeholder:i18n("85451d2eb59327a23e8f745161066d4a"),horizontal:{leftFixed:!0}})]}])]},{type:"container",visibleOn:'__actionSubType === "app"',body:[getArgsWrapper([{type:"wrapper",body:[getCustomNodeTreeSelectSchema({options:$P,horizontal:{leftFixed:!0}}),getSchemaTpl("formulaControl",{name:"value",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),variables:"${variables}",size:"lg",mode:"horizontal",required:!0,placeholder:i18n("85451d2eb59327a23e8f745161066d4a"),horizontal:{leftFixed:!0}})]}])]}]}});registerActionPanel("submit",{label:i18n("4e34003861eee3de1e0c9c1222249bbb"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("939d5345ad4345dbaabe14798f6ac0f1"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},supportComponents:"form",schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput(),{name:"outputVar",type:"input-text",label:i18n("ac24ffeb131a7a9d2465b3ba7b14e10c"),placeholder:i18n("0e3517fb21e2c4066bd0ab75c51bc6fb"),description:i18n("0e2ba6becfa8760853cfa31c9e15a94b"),mode:"horizontal",size:"lg",value:"submitResult",required:!0}],!1)},outputVarDataSchema:[{type:"object",title:"submitResult",properties:{error:{type:"string",title:i18n("4604d5023479171cb6e901dbeccf62c0")},errors:{type:"object",title:i18n("71f6236494bfc8b023804abb0cca1639")},payload:{type:"object",title:i18n("335d6c56c43204f9efcefe36f097d35a")},responseData:{type:"object",title:i18n("4e6bfc5ad98f719f9bc6b2ad3b6440ee")}}}]});registerActionPanel("clear",{label:i18n("4a3deab45c0a7218b8ae58a33fd24c28"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("82986a4cab1d0efdbc23b3ac5f0fd509"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("288f0c404c4e546aa3683ff5054e85e2"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},supportComponents:"form",schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput()],!1)}});registerActionPanel("reset",{label:i18n("1b6f5cc49e71c90a5b85a796285e3135"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("f457845da8c119a8688e333a3554284f"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("4b9c3271dc2f299dc3aeffb369187513"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},supportComponents:"form",schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput()],!1)}});registerActionPanel("validate",{label:i18n("17f2bf425eeb7d20d79c595344e9dc94"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("a84a1311bea7370f1749341ffa6f75e1"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("b7579706a363e5f23b1040fecfbcb677"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},supportComponents:"form",schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput(),{name:"outputVar",type:"input-text",label:i18n("bf0f829689370b36d01ce871324e0bb6"),placeholder:i18n("d23157205c994bde20bb2605c193fd27"),description:i18n("a422eb12ebbfdd3347c4deb5ec6b4b54"),mode:"horizontal",size:"lg",value:"validateResult",required:!0}],!1)},outputVarDataSchema:[{type:"object",title:"validateResult",properties:{error:{type:"string",title:i18n("4604d5023479171cb6e901dbeccf62c0")},errors:{type:"object",title:i18n("71f6236494bfc8b023804abb0cca1639")},payload:{type:"object",title:i18n("335d6c56c43204f9efcefe36f097d35a")}}}]});registerActionPanel("validateFormItem",{label:i18n("1a04578671f6c3bfa2d35a8cbd9d1a9e"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("e4092e07c4613278048c91064f4bfdf7"),descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("b7579706a363e5f23b1040fecfbcb677"),buildLinkActionDesc($P.manager,x_),i18n("b91ebe714155c83b6d3bc02b675a31e9"))},supportComponents:["isFormItem"],schema:function(){return __spreadArray(__spreadArray([],__read$3(renderCmptSelect(i18n("6afde638796d237377b0755506d08ded"),!0)),!1),[renderCmptIdInput(),{name:"outputVar",type:"input-text",label:i18n("bf0f829689370b36d01ce871324e0bb6"),placeholder:i18n("d23157205c994bde20bb2605c193fd27"),description:i18n("a422eb12ebbfdd3347c4deb5ec6b4b54"),mode:"horizontal",size:"lg",value:"validateFormItemResult",required:!0}],!1)},outputVarDataSchema:[{type:"object",title:"validateFormItemResult",properties:{error:{type:"string",title:i18n("4604d5023479171cb6e901dbeccf62c0")},value:{type:"object",title:i18n("dd39bd1bf78f1b2aec6ed8a05ced6884")}}}]});registerActionPanel("component",{label:i18n("51325230409d4b7c64aaeb3db9904801"),tag:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),description:i18n("98d130cb9a360df782f6510abacbc022"),supportComponents:"*",schema:function(){return renderCmptActionSelect(i18n("6afde638796d237377b0755506d08ded"))}});registerActionPanel("copy",{label:i18n("6a086902a84969a835423002718e86b4"),tag:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),description:i18n("557d01c07aa7c4450a414932e6c1ed2a"),innerArgs:["content","copyFormat"],descDetail:function(x_,eme,$P){var tme;return React__default.createElement("div",{className:"action-desc"},i18n("5aa4369ec61715ddef3641992fad0d4d"),React__default.createElement("span",{className:"variable-left"},((tme=x_==null?void 0:x_.args)===null||tme===void 0?void 0:tme.content)||"-"))},schema:function(){return getArgsWrapper({type:"wrapper",body:[getSchemaTpl("textareaFormulaControl",{name:"content",label:i18n("ac04259507be8ba6b891dc9dc208f491"),variables:"${variables}",mode:"horizontal",size:"lg",visibleOn:'this.actionType === "copy"',required:!0}),{type:"select",name:"copyFormat",mode:"horizontal",value:"text/plain",size:"lg",options:[{label:i18n("ffb01e5bcf4c00447f5150d3cba81371"),value:"text/plain"},{label:i18n("e2591e971f4c28db7c80a5f546084a1d"),value:"text/html"}],label:i18n("c28f4d63beabc4833b17aaa10ca550db")}]})}});registerActionPanel("custom",{label:i18n("c7f16d729f3bca8f6936416884a74fb8"),tag:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),description:i18n("1b5a6299ef404c1f7b4292c290b80f55"),schema:{type:"js-editor",allowFullscreen:!0,required:!0,name:"script",label:i18n("c7f16d729f3bca8f6936416884a74fb8"),mode:"horizontal",options:{automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,tabSize:2,fontSize:"12px",wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0},className:"ae-event-control-action-js-editor",value:`/* 自定义JS使用说明：
      * 1.动作执行函数doAction，可以执行所有类型的动作
      * 2.通过上下文对象context可以获取当前组件实例，例如context.props可以获取该组件相关属性
      * 3.事件对象event，在doAction之后执行event.stopPropagation();可以阻止后续动作执行
      */
      const myMsg = '我是自定义JS';
      doAction({
      actionType: 'toast',
      args: {
      msg: myMsg
      }
      });
      `}});registerActionPanel("broadcast",{label:"全局广播事件",tag:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),description:"触发全局广播事件",innerArgs:[],descDetail:function(x_,eme,$P){var tme=$P.globalEvents||[],ame=tme.find(function(nme){return nme.name===(x_==null?void 0:x_.eventName)});return React__default.createElement("div",null,"触发",React__default.createElement("span",{className:"ml-1 mr-1"},(ame==null?void 0:ame.label)||(x_==null?void 0:x_.eventName)),"全局广播事件")},schema:function(x_,eme){var $P,tme,ame,nme=((ame=(tme=($P=x_.config)===null||$P===void 0?void 0:$P.actionOptions)===null||tme===void 0?void 0:tme.globalEventGetter)===null||ame===void 0?void 0:ame.call(tme,x_))||[];return{type:"wrapper",body:[{type:"select",name:"eventName",required:!0,label:"请选择全局事件",options:nme.map(function(rme){return{label:rme.label,value:rme.name,mapping:rme.mapping,disabled:rme.name===eme.eventKey}}),size:"lg",mode:"horizontal",initAutoFill:!0,autoFill:{__mapping:"${mapping}"},onChange:function(rme,ime,ome,lme){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(sme){return lme.setValueByName("data",void 0),[2]})})}},{type:"input-kv",name:"data",label:"参数映射",mode:"horizontal",draggable:!1,visibleOn:"this.eventName",keySchema:{type:"select",label:!1,name:"key",source:"${ARRAYMAP(__mapping, i => i.key)}"},valueSchema:getSchemaTpl("tplFormulaControl",{label:!1,name:"value",clearable:!0,placeholder:"请输入参数值",variables:"${variables}",header:"配置参数值"})}]}}});var ActionDialog=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.getTreeSearchList=function($P,tme){if(!tme)return $P;var ame=[],nme=function(rme,ime,ome){ime.forEach(function(lme){lme.children?nme(rme,lme.children,ome):lme.actionLabel.includes(ome)&&rme.push(__assign$3({},lme))})};return nme(ame,$P,tme),ame},eme.prototype.getInputTreeSchema=function($P,tme,ame){var nme={type:"input-tree",name:"actionType",visibleOn:$P?"__keywords":"!__keywords",disabled:!1,onlyLeaf:!0,showIcon:!1,className:"action-tree",mode:"normal",labelField:"actionLabel",valueField:"actionType",inputClassName:"no-border action-tree-control",placeholder:i18n("db1cac8e2f6206e8f179b1ff47a676df"),onChange:function(rme,ime,ome,lme){var sme,cme={},dme="",ume="";Object.keys(lme.data).forEach(function(pme){BASE_ACTION_PROPS.includes(pme)||(cme[pme]=void 0)}),rme==="openDialog"&&!["dialog","drawer"].includes(dme)&&(dme="dialog"),rme==="closeDialog"&&!["closeDialog","closeDrawer"].includes(dme)&&(dme="closeDialog"),rme==="visibility"&&!["show","hidden","visibility"].includes(dme)&&(dme="static",ume="show"),rme==="usability"&&!["enabled","disabled","usability"].includes(dme)&&(dme="static",ume="enabled");var fme=findActionNode(tme,rme);lme.setValues(__assign$3(__assign$3(__assign$3(__assign$3({},cme),{__keywords:lme.data.__keywords,__resultActionTree:lme.data.__resultActionTree,componentId:lme.data.componentId?"":void 0}),lme.data.args?{args:{}}:{}),{groupType:dme,__statusType:ume,__actionDesc:fme==null?void 0:fme.description,__actionSchema:fme==null?void 0:fme.schema,__subActions:fme==null?void 0:fme.actions,__cmptTreeSource:fme!=null&&fme.supportComponents?(sme=ame==null?void 0:ame(fme))!==null&&sme!==void 0?sme:[]:[],ignoreError:!1}))}};return $P?__assign$3(__assign$3({},nme),{source:"${__resultActionTree}",highlightTxt:"${__keywords}"}):__assign$3(__assign$3({},nme),{options:tme})},eme.prototype.getCommonUseActionSchema=function(){var $P=persistGet("common-use-actions",[]).slice(0,5);return $P.map(function(tme){return{type:"tag",label:i18n(tme.label),displayMode:"rounded",color:"active",style:{borderColor:"#2468f2",cursor:"pointer",maxWidth:"16%"},onEvent:{click:{actions:[{actionType:"setValue",componentName:"actionType",args:{value:tme.value}},{actionType:"custom",script:"document.querySelector('.action-tree li .is-checked')?.scrollIntoView()"}]}}}})},eme.prototype.render=function(){var $P=this,tme,ame=this.props,nme=ame.data,rme=ame.subscribeSchemaSubmit,ime=ame.subscribeActionSubmit,ome=ame.show,lme=ame.type,sme=ame.actionTree,cme=ame.pluginActions,dme=ame.getComponents,ume=ame.commonActions,fme=ame.onClose,pme=ame.render,hme=ame.closeOnEsc,bme=this.getCommonUseActionSchema();return pme("inner",{type:"dialog",title:i18n("e9908cdf79e965f6907ce9f291cdfcf8"),headerClassName:"font-bold",className:"ae-action-config-dialog",bodyClassName:"action-config-dialog-body",closeOnEsc:hme,closeOnOutside:!1,show:ome,showCloseButton:!0,size:"md",body:[{type:"form",title:"",mode:"normal",wrapperComponent:"div",submitText:i18n("be5fbbe34ce9979bfb6576d9eddc5612"),autoFocus:!0,data:{__keywords:"",__resultActionTree:[]},preventEnterSubmit:!0,onSubmit:(tme=this.props.onSubmit)===null||tme===void 0?void 0:tme.bind(this,lme),body:[{type:"flex",className:"common-actions",justify:"flex-start",visibleOn:"".concat(bme.length),items:__spreadArray([{type:"tpl",tpl:i18n("d846706b91f99cd12545a78212fa5984"),className:"common-actions-label"}],__read$3(bme),!1)},{type:"grid",className:"h-full",columns:[{body:[{type:"tpl",tpl:i18n("d1d9049139d870edd490215530d90458"),className:"action-panel-title",inline:!1},{type:"input-text",name:"__keywords",className:"action-tree-search",inputClassName:"action-tree-search-input",placeholder:i18n("9eac7e07ca0a3181766e5ecc70d20727"),clearable:!0,onChange:function(mme,vme,gme,yme){if(mme){var _me=$P.getTreeSearchList(sme,mme);yme.setValueByName("__resultActionTree",_me)}else yme.setValueByName("__resultActionTree",sme)}},this.getInputTreeSchema(!1,sme,dme),this.getInputTreeSchema(!0,sme,dme)],md:3,columnClassName:"left-panel"},{body:[{type:"container",className:"right-panel-container",body:[{type:"container",className:"action-panel-title",body:[{type:"tpl",tpl:i18n("0174bdde9517fa331bf7d716a553e023"),visibleOn:"this.actionType"},{type:"tooltip-wrapper",content:"${__actionDesc}",visibleOn:"this.actionType",body:{type:"icon",icon:"far fa-question-circle",vendor:"",className:"ml-0.5"},className:"inline-block ml-0.5 mb-1"}]},{name:"description",type:"textarea",label:"动作描述",mode:"horizontal",visibleOn:"this.actionType"},{type:"tpl",tpl:i18n("0aeca07a02601a8e701a46d1a8b5ce43"),className:"action-panel-title",visibleOn:"this.actionType",inline:!1},{asFormItem:!0,component:ActionConfigPanel,pluginActions:cme,commonActions:ume},{type:"tpl",tpl:i18n("e370757f933a8ecd87bf0255c3ce45d0"),inline:!1,className:"action-panel-title",visibleOn:"this.actionType"},{type:"button-group-select",name:"ignoreError",visibleOn:"this.actionType",label:tipedLabel(i18n("0e7bb2c7879f0a34c02f547820b0b0b3"),i18n("5d9fe78268b03e8aa41ac316ef610d9a")),mode:"horizontal",pipeIn:function(mme,vme){return mme===!0?"1":mme===!1?"2":"3"},pipeOut:function(mme){return mme==="1"?!0:mme==="2"?!1:void 0},options:[{label:i18n("c0d5d68f5f1cc399311e92905ed2fa80"),value:"1"},{label:i18n("a165be161ac250720f6f25820dd2a5b3"),value:"2"},{label:i18n("9cdfce42ef0fa346511538131e51328f"),value:"3"}],description:'<%= this.ignoreError === false ? "找不到组件和动作执行失败都中断" : typeof this.ignoreError === "undefined" ? "找不到组件容忍，动作执行失败才中断" : ""%>'},getSchemaTpl("expressionFormulaControl",{name:"stopPropagation",label:tipedLabel(i18n("8c2bb89f516205027b9ed6609fb17726"),i18n("46a3c6ab94da0b16a707bdd3b74c9e09")),evalMode:!0,variables:"${variables}",mode:"horizontal",size:"lg",visibleOn:"this.actionType"}),getSchemaTpl("expressionFormulaControl",{name:"expression",label:i18n("da1ed600ce65be863766444e60c2da05"),evalMode:!0,variables:"${variables}",mode:"horizontal",size:"lg",placeholder:i18n("13b2de1073f76444c49d2c6a21e46e26"),visibleOn:"this.actionType"})]}],columnClassName:"right-panel"}]}],style:{borderStyle:"solid"},className:"action-config-panel :AMISCSSWrapper"}],onClose:fme},{data:nme,subscribeActionSubmit:ime,subscribeSchemaSubmit:rme})},eme}(React__default.Component),EventControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.eventPanelSortMap={},tme.submitSubscribers=[];var ame=$P.events,nme=$P.value,rme=$P.data,ime=$P.rawType,ome=$P.globalEvents,lme={},sme=ame[ime||(!rme.type||rme.type==="text"?"plain":rme.type)]||[],cme=typeof sme=="function"?sme(rme):__spreadArray([],__read$3(sme),!1);cme.forEach(function(ume){lme[ume.eventName]=!0});var dme=tme.getActionRelations();return ome==null||ome.forEach(function(ume){lme[ume.name]=!0}),tme.state={onEvent:nme??tme.generateEmptyDefault(cme),events:cme,eventPanelActive:lme,showAcionDialog:!1,showEventDialog:!1,actionData:void 0,type:"add",appLocaleState:0,actionRelations:dme??[]},tme}return eme.prototype.componentDidMount=function(){var $P=this,tme=window.editorStore;this.unReaction=reaction(function(){return tme==null?void 0:tme.appLocaleState},function(){$P.setState({appLocaleState:tme==null?void 0:tme.appLocaleState})})},eme.prototype.componentWillUnmount=function(){var $P;($P=this.unReaction)===null||$P===void 0||$P.call(this),this.submitSubscribers=[]},eme.prototype.componentDidUpdate=function($P,tme){var ame,nme,rme=this.props,ime=rme.value,ome=rme.data,lme=rme.events,sme=rme.rawType;if(ime!==$P.value&&this.setState({onEvent:ime}),(ome==null?void 0:ome.type)!==((ame=$P.data)===null||ame===void 0?void 0:ame.type)||(ome==null?void 0:ome.onEvent)!==((nme=$P.data)===null||nme===void 0?void 0:nme.onEvent)){var cme=lme[sme||(!ome.type||ome.type==="text"?"plain":ome.type)]||[],dme=typeof cme=="function"?cme(ome):__spreadArray([],__read$3(cme),!1),ume=this.getActionRelations();this.setState({events:dme,actionRelations:ume})}},eme.prototype.subscribeSubmit=function($P){var tme=this,ame=function(nme){return($P==null?void 0:$P(nme))||nme};return this.submitSubscribers.push(ame),function(){var nme=tme.submitSubscribers.indexOf(ame);tme.submitSubscribers.splice(nme,1)}},eme.prototype.generateEmptyDefault=function($P){var tme={};return $P.forEach(function(ame){ame.defaultShow&&(tme["".concat(ame.eventName)]={__isBroadcast:!!ame.isBroadcast,weight:0,actions:[]})}),Object.keys(tme).length?tme:{}},eme.prototype.addEvent=function($P,tme){var ame=this.props.onChange,nme=__assign$3({},this.state.onEvent);tme||(nme["".concat($P.eventName)]={__isBroadcast:!!$P.isBroadcast,weight:0,actions:[]},this.setState({onEvent:nme}),ame&&ame(nme))},eme.prototype.addGlobalEvent=function($P,tme){var ame=this.props.onChange,nme=__assign$3({},this.state.onEvent);tme||(nme["".concat($P.name)]={weight:0,actions:[]},this.setState({onEvent:nme}),ame&&ame(nme))},eme.prototype.activeEventDialog=function($P){$P=cloneDeep$1($P),$P.debounce?$P.debounce=__assign$3({open:!0},$P.debounce):$P.debounce={open:!1,wait:100},$P.track?$P.track=__assign$3({open:!0},$P.track):$P.track={open:!1},this.setState({eventDialogData:$P,showEventDialog:!0})},eme.prototype.eventDialogSubmit=function($P){var tme=this.props.onChange,ame=$P.eventName,nme=$P.debounce,rme=nme===void 0?{}:nme,ime=$P.track,ome=ime===void 0?{}:ime,lme=__assign$3({},this.state.onEvent),sme=__assign$3({},lme["".concat(ame)]);rme.open?sme=__assign$3(__assign$3({},sme),{debounce:{wait:rme.wait}}):delete sme.debounce,ome.open?sme=__assign$3(__assign$3({},sme),{track:{id:ome.id,name:ome.name}}):delete sme.track,lme["".concat(ame)]=__assign$3({},sme),this.setState({onEvent:lme,showEventDialog:!1}),tme&&tme(lme)},eme.prototype.delEvent=function($P){var tme=this.props.onChange,ame=__assign$3({},this.state.onEvent);delete ame[$P],this.setState({onEvent:ame}),tme&&tme(ame)},eme.prototype.addAction=function($P,tme){var ame,nme=this.props,rme=nme.addBroadcast,ime=nme.owner,ome=this.state,lme=ome.onEvent,sme=ome.eventPanelActive,cme=__assign$3({},lme),dme=__assign$3({},sme);tme.actionType==="broadcast"&&typeof rme=="function"&&rme({owner:ime,isBroadcast:!0,eventName:tme.eventName,eventLabel:tme.eventLabel,description:tme.description}),dme[$P]=!0,tme.actionType&&(cme[$P]=__assign$3(__assign$3({},cme[$P]),{actions:(((ame=cme[$P])===null||ame===void 0?void 0:ame.actions)||[]).concat(Object.defineProperties(tme,{__cmptTreeSource:{enumerable:!1},__nodeSchema:{enumerable:!1},__subActions:{enumerable:!1}}))})),this.setState({onEvent:cme,eventPanelActive:dme}),this.initDragging(),this.props.onChange&&this.props.onChange(cme)},eme.prototype.updateAction=function($P,tme,ame){this.updateValue($P,tme,ame)},eme.prototype.delAction=function($P,tme,ame){var nme,rme=this.state,ime=rme.onEvent,ome=rme.eventPanelActive,lme=this.props.removeBroadcast,sme=__assign$3({},ime),cme=__assign$3({},ome);tme.actionType==="broadcast"&&typeof lme=="function"&&lme(tme.eventName),sme[$P]=__assign$3(__assign$3({},sme[$P]),{actions:sme[$P].actions.filter(function(dme,ume){return ame!==ume})}),sme[$P].actions.length<1&&(cme[$P]=!1,this.setState({eventPanelActive:cme}),(nme=this.eventPanelSortMap[$P])===null||nme===void 0||nme.destroy()),this.setState({onEvent:sme}),this.props.onChange&&this.props.onChange(sme)},eme.prototype.toggleActivePanel=function($P){var tme=this,ame,nme=this.state.eventPanelActive;nme[$P]=!nme[$P],nme[$P]||(ame=this.eventPanelSortMap[$P])===null||ame===void 0||ame.destroy(),this.setState({eventPanelActive:nme},function(){tme.initDragging()})},eme.prototype.updateWeight=function($P,tme){var ame=this.state.onEvent,nme=__assign$3({},ame);nme[$P]=__assign$3(__assign$3({},nme[$P]),{weight:tme.weight||0}),this.setState({onEvent:nme})},eme.prototype.updateValue=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme,rme,ime;return __generator(this,function(ome){return nme=this.state.onEvent,rme=__assign$3({},nme),ime=__assign$3({},nme),rme[$P]={actions:nme[$P].actions.map(function(lme,sme){return sme===tme?{actionType:""}:lme}),weight:nme[$P].weight},ime[$P]=__assign$3(__assign$3({},nme[$P]),{actions:nme[$P].actions.map(function(lme,sme){return sme===tme?typeof ame=="string"?__assign$3(__assign$3({},lme),{actionType:ame}):Object.defineProperties(ame,{__cmptTreeSource:{enumerable:!1},__nodeSchema:{enumerable:!1},__subActions:{enumerable:!1}}):lme})}),this.setState({onEvent:ime}),this.props.onChange&&this.props.onChange(ime),[2]})})},eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.initDragging=function(){var $P=this;this.eventPanelSortMap={};var tme=reactDomExports.findDOMNode(this),ame=this.state,nme=ame.onEvent,rme=ame.eventPanelActive,ime=Array.prototype.slice.call(tme.getElementsByClassName("item-content"));Object.keys(nme).filter(function(ome){var lme,sme;return((sme=(lme=nme[ome])===null||lme===void 0?void 0:lme.actions)===null||sme===void 0?void 0:sme.length)&&rme[ome]}).forEach(function(ome,lme){$P.eventPanelSortMap[ome]||($P.eventPanelSortMap[ome]=$P.genSortPanel(ome,ime[lme]))})},eme.prototype.genSortPanel=function($P,tme){var ame=this;return new Sortable(tme,{group:"eventControlGroup",animation:150,handle:".ae-option-control-item-dragBar",ghostClass:"ae-option-control-item--dragging",onEnd:function(nme){if(nme.newIndex!==nme.oldIndex){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item);var ime=cloneDeep$1(ame.state.onEvent),ome=ime[$P],lme=ome==null?void 0:ome.actions.concat();lme.splice(nme.newIndex,0,lme.splice(nme.oldIndex,1)[0]),ime[$P]=__assign$3(__assign$3({},ime[$P]),{actions:lme}),ame.setState({onEvent:ime}),ame.props.onChange&&ame.props.onChange(ime)}}})},eme.prototype.destroyDragging=function(){var $P=this;Object.keys(this.eventPanelSortMap).forEach(function(tme){var ame,nme;!((ame=$P.eventPanelSortMap[tme])===null||ame===void 0)&&ame.el&&((nme=$P.eventPanelSortMap[tme])===null||nme===void 0||nme.destroy())})},eme.prototype.buildEventDataSchema=function($P,tme){var ame,nme,rme,ime,ome,lme=this.props,sme=lme.actionTree,cme=lme.actions,dme=lme.commonActions,ume=lme.allComponents,fme=lme.globalEvents,pme=this.state,hme=pme.events,bme=pme.onEvent,mme=hme.find(function(_me){return _me.eventName===$P.actionData.eventKey}),vme=fme==null?void 0:fme.find(function(_me){return _me.name===$P.actionData.eventKey}),gme=(ame=bme[$P.actionData.eventKey])===null||ame===void 0?void 0:ame.actions;$P.type==="update"&&(gme=gme.slice(0,$P.actionData.actionIndex!==void 0?$P.actionData.actionIndex+1:0));var yme={};vme?yme={type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:(vme.mapping||[]).reduce(function(_me,$me){return _me[$me.key]={type:$me.type,title:"".concat($me.key,"(全局事件参数)")},_me},{})}}}:typeof(mme==null?void 0:mme.dataSchema)=="function"?yme=(nme=mme.dataSchema(tme))===null||nme===void 0?void 0:nme[0]:yme=__assign$3({},(ime=(rme=mme==null?void 0:mme.dataSchema)===null||rme===void 0?void 0:rme[0])!==null&&ime!==void 0?ime:{}),(ome=gme==null?void 0:gme.filter(function(_me){return _me.outputVar}))===null||ome===void 0||ome.forEach(function(_me,$me){var Cme,Sme,Eme,xme;if(!tme.dataSchema.getScope("action-output-".concat(_me.actionType,"_ ").concat($me))){var Tme=getPropOfAcion(_me,"actionLabel",sme,cme,dme,ume),Ome=getPropOfAcion(_me,"outputVarDataSchema",sme,cme,dme,ume);yme=__assign$3(__assign$3({},yme),{properties:__assign$3(__assign$3({},yme.properties),{data:__assign$3(__assign$3({type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")},(Sme=yme.properties)===null||Sme===void 0?void 0:Sme.data),{properties:__assign$3(__assign$3({},(xme=(Eme=yme.properties)===null||Eme===void 0?void 0:Eme.data)===null||xme===void 0?void 0:xme.properties),(Cme={},Cme[_me.outputVar]=__assign$3(__assign$3({},Array.isArray(Ome)&&(Ome[0]||{})),{title:"".concat(_me.outputVar,"(").concat(Tme,"动作出参)")}),Cme))})})})}}),tme.dataSchema.getScope("event-variable")&&tme.dataSchema.removeScope("event-variable"),tme.dataSchema.addScope({type:"object",properties:{event:__assign$3(__assign$3({},yme),{title:i18n("d5fb02425d3b8586d8d7b98971d63e68")})}},"event-variable")},eme.prototype.buildContextSchema=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ame=this.props,nme=ame.manager,rme=ame.node,ime=[],[4,nme.getContextSchemas(rme.id)];case 1:return lme.sent(),this.buildEventDataSchema($P,nme),nme.dataSchema.switchTo("event-variable"),ime=nme.dataSchema.getDataPropsAsOptions(),ome=((tme=nme==null?void 0:nme.variableManager)===null||tme===void 0?void 0:tme.getVariableFormulaOptions())||[],ome.forEach(function(sme){Array.isArray(sme==null?void 0:sme.children)&&sme.children.length&&ime.push(sme)}),[2,updateComponentContext(ime)]}})})},eme.prototype.activeActionDialog=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me;return __generator(this,function(Cme){switch(Cme.label){case 0:return ame=this.props,nme=ame.actions,rme=ame.getContextSchemas,ime=ame.actionConfigInitFormatter,ome=ame.getComponents,lme=ame.actionTree,sme=ame.allComponents,cme=ame.manager,ame.node,[4,this.buildContextSchema($P)];case 1:return dme=Cme.sent(),$P.type!=="update"?[3,5]:(ume=$P.actionData.action,[4,ime==null?void 0:ime(ume)]);case 2:return fme=Cme.sent(),pme=findActionNode(lme,fme==null?void 0:fme.actionType),hme=findSubActionNode(lme,ume.actionType),bme=ome(pme),mme=findTree(bme,function(Sme){return Sme.value===ume.componentId}),vme=null,(fme==null?void 0:fme.actionType)==="setValue"&&(mme!=null&&mme.id)&&SELECT_PROPS_CONTAINER$2.includes((mme==null?void 0:mme.type)||"")?[4,cme.getContextSchemas(mme.id,!0)]:[3,4];case 3:gme=Cme.sent(),yme=new DataSchema(gme||[]),_me=(yme==null?void 0:yme.getDataPropsAsOptions())||[],vme=_me==null?void 0:_me.filter(function(Sme){return Sme.value!=="$$id"}),Cme.label=4;case 4:return $me=(fme==null?void 0:fme.__actionType)||ume.actionType,$P.actionData=__assign$3(__assign$3({eventKey:$P.actionData.eventKey,actionIndex:$P.actionData.actionIndex,variables:dme,pluginActions:nme,getContextSchemas:rme},fme),{groupType:$me,__actionDesc:(tme=pme==null?void 0:pme.description)!==null&&tme!==void 0?tme:"",__actionSchema:pme.schema,__subActions:hme==null?void 0:hme.actions,__cmptTreeSource:bme??[],__superCmptTreeSource:sme,__setValueDs:vme}),setTimeout(function(){var Sme;return(Sme=document.querySelector(".action-tree li .is-checked"))===null||Sme===void 0?void 0:Sme.scrollIntoView()},0),[3,6];case 5:$P.actionData={eventKey:$P.actionData.eventKey,variables:dme,pluginActions:nme,getContextSchemas:rme,__superCmptTreeSource:sme,__dialogActions:cme.store.modalOptions},Cme.label=6;case 6:return this.setState($P),[2]}})})},eme.prototype.renderDesc=function($P,tme,ame){var nme=this.props,rme=nme.actions,ime=nme.actionTree,ome=nme.commonActions,lme=nme.getComponents,sme=nme.allComponents,cme=getPropOfAcion($P,"descDetail",ime,rme,ome,sme),dme=__assign$3({},$P),ume=findSubActionNode(ime,$P.actionType),fme=getActionType($P,ume),pme=fme&&findActionNode(ime,fme);if($P.componentId&&pme){var hme=lme(pme),bme=findTree(hme,function(mme){return mme.value===$P.componentId});bme&&(dme=__assign$3(__assign$3({},dme),{rendererLabel:bme.label}))}return typeof cme=="function"?React__default.createElement("div",{className:"action-control-content"},(cme==null?void 0:cme(dme,{actionIndex:tme,eventKey:ame},this.props))||"-"):null},eme.prototype.onSubmit=function($P,tme){var ame,nme,rme,ime=this.props,ome=ime.actionConfigSubmitFormatter,lme=ime.manager,sme=this.state.actionData,cme=lme.store,dme=(ame=ome==null?void 0:ome(tme,$P,sme,cme.schema))!==null&&ame!==void 0?ame:tme;dme=this.submitSubscribers.reduce(function(ume,fme){return fme(ume)||ume},dme),delete dme.__actionSchema,$P==="add"?(nme=this.addAction)===null||nme===void 0||nme.call(this,tme.eventKey,dme):$P==="update"&&((rme=this.updateAction)===null||rme===void 0||rme.call(this,tme.eventKey,tme.actionIndex,dme)),updateCommonUseActions({label:dme.__title,value:tme.actionType,use:1}),this.removeDataSchema(),this.setState({showAcionDialog:!1}),this.setState({actionData:void 0})},eme.prototype.onClose=function(){var $P;this.removeDataSchema(),this.setState({showAcionDialog:!1}),($P=this.unSubscribeSchemaSubmit)===null||$P===void 0||$P.call(this),delete this.unSubscribeSchemaSubmit},eme.prototype.subscribeSchemaSubmit=function($P,tme){return this.unSubscribeSchemaSubmit=this.props.subscribeSchemaSubmit($P,tme),this.unSubscribeSchemaSubmit},eme.prototype.removeDataSchema=function(){var $P=this.props.manager;$P.dataSchema.getScope("event-variable")&&$P.dataSchema.removeScope("event-variable")},eme.prototype.renderActionType=function($P,tme,ame){var nme=this.props,rme=nme.actionTree,ime=nme.actions,ome=nme.commonActions,lme=nme.allComponents;return nme.node,nme.manager,React__default.createElement("span",null,getPropOfAcion($P,"actionLabel",rme,ime,ome,lme)||$P.actionType)},eme.prototype.getActionRelations=function(){var $P,tme=this.props,ame=tme.actions,nme=tme.data,rme=tme.manager,ime=getActionsByRendererName(ame,nme==null?void 0:nme.type),ome=rme.store.schema,lme=[];JSONValueMap(ome,function(dme,ume,fme){var pme,hme,bme,mme,vme;if(ume==="onEvent"){var gme=(mme=(bme=(hme=(pme=fme.title)!==null&&pme!==void 0?pme:fme.label)!==null&&hme!==void 0?hme:fme.name)!==null&&bme!==void 0?bme:fme.type)!==null&&mme!==void 0?mme:fme.id,yme=fme.$$id;(vme=Object.keys(dme))===null||vme===void 0||vme.forEach(function(_me){var $me,Cme;_me!=="$$id"&&((Cme=($me=dme[_me])===null||$me===void 0?void 0:$me.actions)===null||Cme===void 0||Cme.forEach(function(Sme){var Eme=ime==null?void 0:ime.find(function(Tme){return Tme.actionType===Sme.actionType});if(Eme&&Sme.componentId===nme.id){var xme=lme==null?void 0:lme.find(function(Tme){return Tme.hostId===yme&&Tme.actionType===Sme.actionType});xme||lme.push({actionType:Eme.actionType,actionLabel:Eme.actionLabel,hostName:gme,hostId:yme})}}))})}return dme});var sme=groupBy$1(lme,function(dme){return dme.actionLabel}),cme=[];return($P=Object.keys(sme))===null||$P===void 0||$P.forEach(function(dme){var ume;cme.push({label:dme,value:dme,icon:"fa fa-bolt",children:(ume=sme[dme])===null||ume===void 0?void 0:ume.map(function(fme){return{label:fme.hostName,value:fme.hostId,icon:""}})})}),cme},eme.prototype.handleRelationComponentActive=function($P){var tme=this.props.manager;tme.store.setActiveId($P)},eme.prototype.render=function(){var $P=this,tme,ame,nme,rme,ime,ome,lme=this.props,sme=lme.actionTree,cme=lme.actions,dme=lme.commonActions,ume=lme.getComponents;lme.allComponents;var fme=lme.render,pme=lme.globalEvents,hme=pme===void 0?[]:pme;lme.subscribeSchemaSubmit;var bme=this.state,mme=bme.onEvent,vme=bme.events,gme=bme.eventPanelActive,yme=bme.showAcionDialog,_me=bme.showEventDialog,$me=bme.type,Cme=bme.actionData,Sme=bme.eventDialogData,Eme=__assign$3({},mme),xme=this.props.showOldEntry,Tme=Object.keys(Eme),Ome=[];!((nme=getRendererByName((ame=(tme=this.props)===null||tme===void 0?void 0:tme.data)===null||ame===void 0?void 0:ame.type))===null||nme===void 0)&&nme.isFormItem&&(Ome=[{eventName:"formItemValidateSucc",eventLabel:i18n("0a2680def3df6912d7c96d95a047b680"),description:i18n("6611594c527756e23d4044f908fedfa9"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"formItemValidateError",eventLabel:i18n("136b339ae7f40edc05251da87dd8a233"),description:i18n("d4c12cea41e1595329358edb365c5f5b"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]}]);var Rme=__spreadArray(__spreadArray([],__read$3(vme),!1),__read$3(Ome),!1);return React__default.createElement("div",{className:"ae-event-control"},React__default.createElement("header",{className:cx$1({"ae-event-control-header":!0,"ae-event-control-header-m":this.props.data.type==="button"&&xme,"no-bd-btm":!Tme.length})},!((rme=this.state.actionRelations)===null||rme===void 0)&&rme.length?React__default.createElement(PopOverContainer,{popOverContainer:function(){return document.body},popOverRender:function(Nme){return Nme.onClose,React__default.createElement("div",{className:"ae-action-relation-panel"},React__default.createElement(Tree,{options:$P.state.actionRelations,className:"variables-select-panel-tree",onChange:$P.handleRelationComponentActive,onlyChildren:!0,value:""}))}},function(Nme){var Ime=Nme.onClick;return Nme.ref,Nme.isOpened,React__default.createElement(TooltipWrapper$1,{tooltipClassName:"ae-event-item-header-tip",trigger:"hover",placement:"top",tooltip:"可查看哪些组件会调用当前组件的哪些动作"},React__default.createElement(Button$1,{className:"block w-full mb-2",onClick:Ime},"查看调用关系"))}):null,fme("dropdown",{type:"dropdown-button",level:"enhance",label:i18n("1fab2b4934161e87a1f0133b9d5bc1b5"),disabled:!1,className:"block w-full add-event-dropdown",closeOnClick:!0,buttons:__spreadArray(__spreadArray([],__read$3(Rme.map(function(Nme){return{type:"button",disabledTip:i18n("3371427f1b82095309092ef82418ec1a"),tooltipPlacement:"left",disabled:Object.keys(mme).includes(Nme.eventName),actionType:"",label:Nme.eventLabel,onClick:$P.addEvent.bind($P,Nme,Object.keys(mme).includes(Nme.eventName))}})),!1),__read$3(hme.map(function(Nme){return{type:"button",disabledTip:"您已添加该全局事件",tooltipPlacement:"left",disabled:Object.keys(mme).includes(Nme.name),actionType:"",className:"add-event-dropdown-global-event",label:Nme.label,onClick:$P.addGlobalEvent.bind($P,Nme,Object.keys(mme).includes(Nme.name))}})),!1)},{popOverContainer:null})),React__default.createElement("ul",{className:cx$1({"ae-event-control-content":!0,"ae-event-control-content-m":this.props.data.type==="button"&&xme||((ime=this.state.actionRelations)===null||ime===void 0?void 0:ime.length),"ae-event-control-content-l":this.props.data.type==="button"&&xme&&!!(!((ome=this.state.actionRelations)===null||ome===void 0)&&ome.length)}),ref:this.dragRef},Tme.length?Tme.map(function(Nme,Ime){var Pme,Mme,kme,Bme,Dme,jme,Vme=hme.find(function(Wme){return Wme.name===Nme});return React__default.createElement("li",{className:"event-item",key:"content_".concat(Ime)},React__default.createElement("div",{className:cx$1({"event-item-header":!0,"no-bd-btm":!(!((Mme=(Pme=Eme[Nme])===null||Pme===void 0?void 0:Pme.actions)===null||Mme===void 0)&&Mme.length&&gme[Nme])&&!getEventStrongDesc(Rme,Nme)})},React__default.createElement(TooltipWrapper$1,{tooltipClassName:"ae-event-item-header-tip",trigger:"hover",placement:"top",tooltip:{children:function(){return React__default.createElement("div",null,getEventDesc(Rme,Nme)||getEventStrongDesc(Rme,Nme)||Nme)}}},Vme?React__default.createElement("div",{className:"event-label"},React__default.createElement("span",{className:"global-event-tip"},React__default.createElement("span",null,"全局事件")),React__default.createElement("span",{className:"event-label-key"},Vme.label||Nme)):React__default.createElement("div",null,getEventLabel(Rme,Nme)||Nme)),React__default.createElement("div",{className:"event-item-header-toolbar"},React__default.createElement("div",{onClick:$P.activeActionDialog.bind($P,{showAcionDialog:!0,type:"add",actionData:{eventKey:Nme}})},React__default.createElement(Icon$1,{className:"icon",icon:"add-btn"})),React__default.createElement("div",{onClick:$P.delEvent.bind($P,Nme)},React__default.createElement(Icon$1,{className:"icon",icon:"delete-bold-btn"})),React__default.createElement("div",{onClick:$P.activeEventDialog.bind($P,__assign$3({eventName:Nme,eventLabel:getEventLabel(Rme,Nme)||Nme},Eme[Nme]))},React__default.createElement(Icon$1,{className:"icon",icon:"event-setting"})),React__default.createElement("div",{onClick:$P.toggleActivePanel.bind($P,Nme)},gme[Nme]?React__default.createElement(Icon$1,{className:"icon",icon:"open-btn-r"}):React__default.createElement(Icon$1,{className:"icon",icon:"close-btn"})))),getEventStrongDesc(Rme,Nme)?fme("alert",{type:"alert",body:i18n("0e9525b2bb1493c567c114dd61b69095")+getEventStrongDesc(Rme,Nme),level:"info",showCloseButton:!0,showIcon:!0,className:"event-item-desc"}):null,!((Bme=(kme=Eme[Nme])===null||kme===void 0?void 0:kme.actions)===null||Bme===void 0)&&Bme.length&&gme[Nme]?React__default.createElement("ul",{className:"item-content"},(jme=(Dme=Eme[Nme])===null||Dme===void 0?void 0:Dme.actions)===null||jme===void 0?void 0:jme.map(function(Wme,Lme){return React__default.createElement("li",{className:"ae-option-control-item",key:"item-content_".concat(Lme)},React__default.createElement("div",{className:"action-control-header"},React__default.createElement("div",{className:"action-control-header-left"},React__default.createElement("div",{className:"ae-option-control-item-dragBar"},React__default.createElement(Icon$1,{icon:"drag-six-circle-btn",className:"icon"})),React__default.createElement("div",{className:"action-item-actiontype"},$P.renderActionType(Wme,Lme,Nme)),Wme.description&&React__default.createElement(TooltipWrapper$1,{trigger:"hover",placement:"top",tooltip:Wme.description},React__default.createElement(Icon$1,{icon:"far fa-question-circle",className:"flex justify-center items-center icon ml-0.5"}))),React__default.createElement("div",{className:"action-control-header-right"},React__default.createElement("div",{onClick:$P.activeActionDialog.bind($P,{showAcionDialog:!0,type:"update",actionData:{action:Wme,eventKey:Nme,actionIndex:Lme}})},React__default.createElement(Icon$1,{className:"icon",icon:"setting"})),React__default.createElement("div",{onClick:$P.delAction.bind($P,Nme,Wme,Lme)},React__default.createElement(Icon$1,{className:"icon",icon:"delete-easy-btn"})))),$P.renderDesc(Wme,Lme,Nme))})):null)}):React__default.createElement("div",{className:"ae-event-control-placeholder"},i18n("快去添加事件，让你的产品动起来吧"))),render$2({type:"dialog",title:"".concat(Sme==null?void 0:Sme.eventLabel,"-事件配置"),showCloseButton:!1,body:[{type:"form",title:i18n("eee1e2258d7ea163fec625ee44be9637"),data:{"&":"$$"},mode:"horizontal",horizontal:{left:3,right:9},body:[{label:i18n("5ba999eb762f60324033b735e55d989c"),type:"switch",name:"debounce.open",description:i18n("7fe94616be0e8fb5ef5ab40a7397f0aa")},{label:i18n("91b72e901f1663637157cda638ac4dcc"),required:!0,hiddenOn:"!debounce.open",name:"debounce.wait",suffix:"ms",max:1e4,min:0,type:"input-number"},{label:i18n("14a265b60d169e9d9c11b9a286de199d"),type:"switch",name:"track.open",description:i18n("5c1024a792dfc345b4d8a3b34255691b")},{label:"track-id",required:!0,hiddenOn:"!track.open",name:"track.id",type:"input-text"},{label:"track-name",required:!0,hiddenOn:"!track.open",name:"track.name",type:"input-text"}],onSubmit:this.eventDialogSubmit.bind(this)}],actions:[{type:"button",label:i18n("625fb26b4b3340f7872b411f401e754c"),onEvent:{click:{actions:[{actionType:"custom",script:function(){$P.setState({showEventDialog:!1})}}]}}},{type:"button",actionType:"confirm",label:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),primary:!0}]},{data:Sme,show:_me}),React__default.createElement(ActionDialog,{closeOnEsc:!1,show:yme,type:$me,actionTree:sme,pluginActions:cme,commonActions:dme,getComponents:ume,data:Cme,onSubmit:this.onSubmit,onClose:this.onClose,render:this.props.render,subscribeSchemaSubmit:this.subscribeSchemaSubmit,subscribeActionSubmit:this.subscribeSubmit}))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Function]),__metadata("design:returntype",void 0)],eme.prototype,"subscribeSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"onSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onClose",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Function,Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"subscribeSchemaSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleRelationComponentActive",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-eventControl"})],eme),eme})(EventControl);var ContainerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="container",$P.$schema="/schemas/ContainerSchema.json",$P.name=i18n("22c799040acdb2601b437ed5449de076"),$P.isBaseComponent=!0,$P.description=i18n("ded228f9173b241dd8df2a4811ea0e98"),$P.docLink="/amis/zh-CN/components/container",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.order=-2,$P.icon="fa fa-square-o",$P.pluginIcon="container-plugin",$P.scaffold={type:"container",body:[],style:{position:"relative",display:"flex",inset:"auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"flex-start"},size:"none",wrapperBody:!1},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P.panelTitle=i18n("22c799040acdb2601b437ed5449de076"),$P.panelJustify=!0,$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.panelBodyCreator=function(tme){var ame,nme,rme,ime,ome=tme==null?void 0:tme.schema;(ome==null?void 0:ome.direction)==="row"||(ome==null||ome.direction);var lme=(ome==null?void 0:ome.isFreeContainer)||!1,sme=(ame=$P.manager)===null||ame===void 0?void 0:ame.isFlexItem(tme==null?void 0:tme.id),cme=(nme=$P.manager)===null||nme===void 0?void 0:nme.isFlexColumnItem(tme==null?void 0:tme.id),dme=tme.node,ume=(rme=dme.parent)===null||rme===void 0?void 0:rme.schema,fme=$P.manager.draggableContainer(tme==null?void 0:tme.id),pme=ume&&sme&&!fme&&((ime=$P.manager)===null||ime===void 0?void 0:ime.canAppendSiblings()),hme=cme?defaultFlexColumnSchema("",!1):defaultFlexColumnSchema(),bme=[getSchemaTpl("layout:display"),getSchemaTpl("layout:flex-setting",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")',direction:ome.direction,justify:ome.justify,alignItems:ome.alignItems}),getSchemaTpl("layout:flex-wrap",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")'})];return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:__spreadArray(__spreadArray(__spreadArray([pme&&{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.manager.appendSiblingSchema(hme,!0,!0)}},React__default.createElement(Icon$1,{className:"icon",icon:cme?"top-arrow-to-top":"left-arrow-to-left"}),React__default.createElement("span",null,i18n(cme?"14c495b1248756310c75396cd41f4fe9":"39a2cb79c6d9762783e20522ea86dcff"),"插入一",cme?"行":i18n("cb2f68c9c24e85d21e6b090b6e5657d8")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.manager.appendSiblingSchema(hme,!1,!0)}},React__default.createElement(Icon$1,{className:"icon",icon:cme?"arrow-to-bottom":"arrow-to-right"}),React__default.createElement("span",null,i18n(cme?"e33ac3a4c1a95a02a18f1555038804da":"de2a774bf98944b8f0ec8755d5f59d64"),"插入一",cme?"行":i18n("cb2f68c9c24e85d21e6b090b6e5657d8")))}]},getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.baseControlClassName.padding-and-margin:default"}),getSchemaTpl("theme:border",{name:"themeCss.baseControlClassName.border:default"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.baseControlClassName.background:default",label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),needCustom:!0,needGradient:!0,needImage:!0,labelMode:"input"})],__read$3(lme?[]:bme),!1),__read$3(sme?[getSchemaTpl("layout:flex",{isFlexColumnItem:cme,label:i18n(cme?"f02f876ee64cc016d97fa4dc498d4857":"a170a375b264f7fe0c02a7ca8c268784"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-grow",{visibleOn:'this.style && this.style.flex === "1 1 auto" && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-basis",{label:i18n(cme?"183f00df0922a6be371fea58cd46a60a":"f92626f9e56b3e2d0c47495a446acf71"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "1 1 auto"'}),getSchemaTpl("layout:flex-basis",{label:i18n(cme?"c19b79073b676b9bade80613aba2dbfa":"b591aed69defa2abf0486da6a58dfb5e"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "0 0 150px"'})]:[]),!1),[getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(sme&&!cme," && this.style.flex === '0 0 150px'")}),getSchemaTpl("layout:isFixedHeight",{visibleOn:"".concat(!sme||!cme),onChange:function(mme){tme==null||tme.node.setHeightMutable(mme)}}),getSchemaTpl("layout:height",{visibleOn:"".concat(!sme||!cme)}),getSchemaTpl("layout:max-height",{visibleOn:"".concat(!sme||!cme)}),getSchemaTpl("layout:min-height",{visibleOn:"".concat(!sme||!cme)}),getSchemaTpl("layout:overflow-y",{visibleOn:"".concat(!sme||!cme," && (this.isFixedHeight || this.style && this.style.maxHeight) || (").concat(sme&&cme," && this.style.flex === '0 0 150px')")}),getSchemaTpl("layout:isFixedWidth",{visibleOn:"".concat(!sme||cme),onChange:function(mme){var vme,gme;(!sme||((gme=(vme=tme.node.parent)===null||vme===void 0?void 0:vme.children)===null||gme===void 0?void 0:gme.length)>1)&&(tme==null||tme.node.setWidthMutable(mme))}}),getSchemaTpl("layout:width",{visibleOn:"".concat(!sme||cme)}),getSchemaTpl("layout:max-width",{visibleOn:"".concat(!sme||cme," || ").concat(sme," && this.style.flex !== '0 0 150px'")}),getSchemaTpl("layout:min-width",{visibleOn:"".concat(!sme||cme," || ").concat(sme," && this.style.flex !== '0 0 150px'")}),getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(!sme||cme," && (this.isFixedWidth || this.style && this.style.maxWidth)")}),sme?null:getSchemaTpl("layout:margin-center"),!sme&&!lme?getSchemaTpl("layout:textAlign",{name:"style.textAlign",label:i18n("a3221d2d224767df4afa7a8653ded8fe"),visibleOn:'this.style && this.style.display !== "flex" && this.style.display !== "inline-flex"'}):null,getSchemaTpl("layout:z-index")],!1)},getSchemaTpl("status"),{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("layout:position",{visibleOn:"!this.stickyStatus"}),getSchemaTpl("layout:originPosition"),getSchemaTpl("layout:inset",{mode:"vertical"}),getSchemaTpl("layout:sticky",{visibleOn:'this.style && (this.style.position !== "fixed" && this.style.position !== "absolute")'}),getSchemaTpl("layout:stickyPosition")]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.onActive=function($P){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme=$P.context;if(!(((tme=dme.info)===null||tme===void 0?void 0:tme.plugin)!==this||!dme.node)){var ume=dme.node,fme=(ame=this.manager)===null||ame===void 0?void 0:ame.isFlexItem(ume.id);if(fme){var pme=this.manager.isFlexColumnItem(ume.id);dme==null||dme.node.setHeightMutable(((nme=ume==null?void 0:ume.schema)===null||nme===void 0?void 0:nme.isFixedHeight)&&!pme),dme==null||dme.node.setWidthMutable(!pme&&((ime=(rme=dme.node.parent)===null||rme===void 0?void 0:rme.children)===null||ime===void 0?void 0:ime.length)>1||((lme=(ome=ume.schema)===null||ome===void 0?void 0:ome.style)===null||lme===void 0?void 0:lme.flex)==="0 0 150px")}else dme==null||dme.node.setHeightMutable((sme=ume.schema)===null||sme===void 0?void 0:sme.isFixedHeight),dme==null||dme.node.setWidthMutable((cme=ume.schema)===null||cme===void 0?void 0:cme.isFixedWidth)}},eme.prototype.onWidthChangeStart=function($P){var tme,ame,nme,rme,ime,ome=$P.context,lme=ome.node,sme=lme.host,cme=ome.dom,dme=cme.parentElement;if(dme){var ume=ome.resizer,fme=dme.getBoundingClientRect(),pme=cme.getBoundingClientRect(),hme=(tme=this.manager)===null||tme===void 0?void 0:tme.isFlexItem(lme.id),bme=(ame=this.manager)===null||ame===void 0?void 0:ame.isFlexColumnItem(lme.id),mme=lme.schema,vme=lme.index,gme=((nme=mme.style)===null||nme===void 0?void 0:nme.flex)==="1 1 auto"&&(((rme=mme.style)===null||rme===void 0?void 0:rme.position)==="static"||((ime=mme.style)===null||ime===void 0?void 0:ime.position)==="relative"),yme=1,_me=0;$P.setData({onMove:function($me){var Cme,Sme=dme.children;if(_me=$me.pageX-pme.left,yme=Math.max(1,Math.min(12,Math.round(12*_me/fme.width))),ume.setAttribute("data-value",gme?"".concat(yme):_me+"px"),gme)for(var Eme=0;Eme<Sme.length;Eme++)if(Eme!==vme){var xme=Sme[Eme].clientWidth;if(xme>0){var Tme=Math.max(1,Math.min(12,Math.round(12*xme/fme.width)));(Cme=sme.children[Eme])===null||Cme===void 0||Cme.updateState({style:__assign$3(__assign$3({},sme.children[Eme].schema.style),{flexGrow:Tme})})}}else lme.updateState({style:__assign$3(__assign$3({},lme.schema.style),{flexGrow:+yme})});else hme&&!bme?lme.updateState({style:__assign$3(__assign$3({},lme.schema.style),{flex:"0 0 150px",flexBasis:"".concat(_me,"px")})}):lme.updateState({style:__assign$3(__assign$3({},lme.schema.style),{width:"".concat(_me,"px")})});requestAnimationFrame(function(){lme.calculateHighlightBox()})},onEnd:function(){ume.removeAttribute("data-value"),gme?sme==null||sme.children.forEach(function($me){var Cme,Sme;$me.updateSchema({style:__assign$3(__assign$3({},lme.schema.style),{flexGrow:(Sme=(Cme=$me.state.style)===null||Cme===void 0?void 0:Cme.flexGrow)!==null&&Sme!==void 0?Sme:1})}),$me.updateState({},!0)}):(hme&&!bme?lme.updateSchema({style:__assign$3(__assign$3({},lme.schema.style),{flex:"0 0 150px",flexBasis:"".concat(_me,"px")})}):lme.updateSchema({style:__assign$3(__assign$3({},lme.schema.style),{width:"".concat(_me,"px")})}),lme.updateState({},!0)),requestAnimationFrame(function(){lme.calculateHighlightBox()})}})}},eme.id="ContainerPlugin",eme.scene=["layout"],eme}(LayoutBasePlugin);registerEditorPlugin(ContainerPlugin);var Layout_free_container=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.name=i18n("db805d4e361ac2d3fc6047eaea1a7c69"),$P.isBaseComponent=!0,$P.pluginIcon="layout-free-container",$P.description=i18n("9ccbfde404798593fa6fdeac9dbef200"),$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.scaffold={type:"container",isFreeContainer:!0,size:"xs",body:[],wrapperBody:!1,style:{position:"relative",minHeight:"200px"}},$P.panelTitle=i18n("db805d4e361ac2d3fc6047eaea1a7c69"),$P}return eme.id="Layout_free_container",eme}(ContainerPlugin);registerEditorPlugin(Layout_free_container);var Layout_fixed_top=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.name=i18n("969e9e56b3812abffa3994f35ea31835"),$P.isBaseComponent=!0,$P.pluginIcon="layout-fixed-top",$P.description=i18n("bb0e1fea25aafbe731886295fcef9a2e"),$P.order=-1,$P.scaffold={type:"flex",isSorptionContainer:!0,sorptionPosition:"top",className:"p-1",items:[defaultFlexColumnSchema(),defaultFlexColumnSchema(),defaultFlexColumnSchema(),defaultFlexColumnSchema()],style:{position:"fixed",inset:"0 auto auto 0",zIndex:10,width:"100%",overflowX:"auto",margin:"0",overflowY:"auto"},isFixedWidth:!0,isFixedHeight:!1,originPosition:"right-bottom"},$P.panelTitle=i18n("969e9e56b3812abffa3994f35ea31835"),$P}return eme.id="Layout_fixed_top",eme.scene=["layout"],eme}(FlexPluginBase);registerEditorPlugin(Layout_fixed_top);var Layout_fixed=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.name=i18n("9bbb7cfaeb34a2b5c095ac253355f028"),$P.isBaseComponent=!0,$P.pluginIcon="layout-fixed-plugin",$P.description=i18n("8e9f5f321ac9b39dbcf0f603190815ce"),$P.order=0,$P.scaffold={type:"container",size:"xs",body:[],style:{position:"fixed",inset:"auto 50px 50px auto",zIndex:10,minWidth:"80px",minHeight:"80px",display:"block"},wrapperBody:!1,originPosition:"right-bottom"},$P.previewSchema={type:"container",body:[],style:{position:"static",display:"block"},size:"none",wrapperBody:!1},$P.panelTitle=i18n("9bbb7cfaeb34a2b5c095ac253355f028"),$P}return eme.id="Layout_fixed",eme.scene=["layout"],eme}(FlexPluginBase);registerEditorPlugin(Layout_fixed);var CollapseGroupPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="collapse-group",$P.$schema="/schemas/CollapseGroupSchema.json",$P.name=i18n("d09980a88568f75e9267ca7b531c74eb"),$P.isBaseComponent=!0,$P.description=i18n("0d571a7ab19e098820e8cea4d5a80f7d"),$P.docLink="/amis/zh-CN/components/collapse",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.icon="fa fa-align-justify",$P.pluginIcon="collapse-plugin",$P.scaffold={type:"collapse-group",enableFieldSetStyle:!0,activeKey:["1"],body:[{type:"collapse",key:"1",active:!0,header:i18n("17dcbf1f144607d4af0bb718e008682f"),body:[{type:"tpl",tpl:i18n("f7fb20f6cacd5e40c7f5732cb377d0bf"),wrapperComponent:"",inline:!1}]},{type:"collapse",key:"2",header:i18n("72d41bd9eb3882f7da6f55d0ff0a39f6"),body:[{type:"tpl",tpl:i18n("f7fb20f6cacd5e40c7f5732cb377d0bf"),wrapperComponent:"",inline:!1}]}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.events=[{eventName:"change",eventLabel:i18n("8e5ff4f20463c03f7935e0627888c03c"),description:i18n("d2fa917958506736ea39edbef5e1cea5"),dataSchema:[{type:"object",properties:{data:{title:i18n("0d83078816aa273f2941c9b55ec82bf3"),type:"object",properties:{activeKeys:{type:"array",title:i18n("58164864ad00f5d134f304d309055eda")},collapseId:{type:"string",title:i18n("44732aa2566399b71483e63252d3dbc7")},collapsed:{type:"boolean",title:i18n("0e8638286319f6efb0afe2616714e8c3")}}}}}]}],$P.activeKeyData=[],$P.panelTitle=i18n("d09980a88568f75e9267ca7b531c74eb"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.path.includes("/form/");return getI18nEnabled(),[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"enableFieldSetStyle",label:"展示风格",visible:ame,type:"button-group-select",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:!1},{label:"简洁",value:!0}]},{name:"expandIconPosition",label:i18n("0431ee7033364800e261d1e560808231"),type:"button-group-select",pipeIn:defaultValue("left"),options:[{label:i18n("a7eaff29603a9c40927f726013d2c016"),value:"left",icon:"fa fa-align-left"},{label:i18n("128d58f066a18ddb2ddb701921d5c77c"),value:"right",icon:"fa fa-align-right"}]},{type:"ae-switch-more",label:i18n("7372dc9f39a173dd0c75a185373245b1"),bulk:!0,mode:"normal",value:!1,formType:"extend",autoFocus:!1,form:{body:[getSchemaTpl("icon",{name:"expandIcon",label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),pipeIn:function(nme){return nme==null?void 0:nme.icon},pipeOut:function(nme){return{type:"icon",vendor:"",icon:nme}}})]},pipeIn:function(nme){if(typeof nme=="string"&&nme.length)return{character:nme}},pipeOut:function(nme){if(isObject(nme))return typeof nme.character=="string"?nme.character:void 0}},{name:"accordion",label:tipedLabel(i18n("47b4e22880eb59ce9989b8419222e88a"),i18n("bb3548f0bb97ab11ee92284ecf37ec16")),mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",type:"switch",pipeIn:defaultValue(!1)},getSchemaTpl("combo-container",{name:"body",type:"combo",label:i18n("f24544b06700857ec11b434cb2916692"),mode:"normal",multiple:!0,addable:!0,columnClassName:"w-20",addButtonText:i18n("c5ceab33d3e275262b4992a8cb43317f"),minLength:1,draggable:!0,draggableTip:"",placeholder:i18n("b839e579e920068bd817d34cd7927069"),items:[{type:"container",columnClassName:"flex-none",body:tipedLabel([{name:"active",type:"checkbox"}],i18n("030a54b0afb54fc7f90e1a0f64eb8205"))},getSchemaTpl("title",{name:"header",placeholder:i18n("32c65d8d7431e76029678ec7bb73a5ab")})],onChange:function(nme,rme,ime,ome){var lme=nme.reduce(function(sme,cme){return cme.active===!0&&sme.push(cme.key),sme},[]);ome.setValues({activeKey:lme})},pipeOut:function(nme,rme,ime){var ome=nme.map(function(sme){return sme.key}),lme=function(sme,cme){for(var dme=1;dme<=cme;dme++)if(!sme.includes(String(dme)))return String(dme)};return nme.forEach(function(sme){if(!sme.key){var cme=lme(ome,nme.length);sme.key=cme,sme.header=i18n("32c65d8d7431e76029678ec7bb73a5ab").concat(cme)}}),nme},scaffold:{type:"collapse",header:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:[{type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),wrapperComponent:"",inline:!1}],key:""}})]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:[getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.className.padding-and-margin",hidePadding:!0})]},getSchemaTpl("theme:cssCode"),getSchemaTpl("animation"),getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"render",insertPosition:"inner"}],$P}return eme.id="CollapseGroupPlugin",eme}(BasePlugin);registerEditorPlugin(CollapseGroupPlugin);var PanelPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="panel",$P.$schema="/schemas/panelSchema.json",$P.name=i18n("cd6f79e7bff1337c12c86a15ceedd6da"),$P.isBaseComponent=!0,$P.icon="fa fa-window-maximize",$P.pluginIcon="panel-plugin",$P.description=i18n("e04a2f1662121e5a3c397d496114185b"),$P.docLink="/amis/zh-CN/components/panel",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.scaffold={type:"panel",title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:i18n("2d711b09bd0db0ad240cc83b30dd8014")},$P.previewSchema={type:"panel",title:i18n("4e9bb0326ab4d3a2af94d901c7f1b6a7"),body:i18n("5bf5f1fd54476671bd6fd9d97e3e6b6b"),className:"Panel--default text-left m-b-none",actions:[{label:i18n("e9d2f66bbd44c96a3e03494bf6b1ebf0"),type:"button"},{label:i18n("ce35a17d2ba7caac95092a7a66ac9a0d"),type:"button"}]},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",renderMethodOverride:function(tme,ame){return function(){for(var nme=[],rme=0;rme<arguments.length;rme++)nme[rme]=arguments[rme];var ime=this.props.$$editor,ome=this.super.apply(this,__spreadArray([],__read$3(nme),!1));return ime&&!this.props.children?ame(this,ome,tme,ime,ime.plugin.manager):ome}}},{key:"actions",label:i18n("c8caf94205105bac5833ab31cc2129d7"),renderMethod:"renderActions",preferTag:i18n("fa966345577ba81af19408f203db968f")}],$P.panelTitle=i18n("cd6f79e7bff1337c12c86a15ceedd6da"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme=/(?:^|\/)form$/.test(tme.path)||((ame=tme==null?void 0:tme.schema)===null||ame===void 0?void 0:ame.type)==="form";return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{className:"p-none",id:"properties-basic",title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("title"),nme?null:{children:React__default.createElement(Button$1,{size:"sm",level:"info",className:"m-b",onClick:function(){$P.manager.showRendererPanel("")},block:!0},i18n("cac3ba71180c97b1b6432833b3417d2c"))}]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",__spreadArray(__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"],classname:"baseControlClassName",needState:!1,baseTitle:i18n("6f99b6eed37795cb97d5f6370c32113b"),extra:[getSchemaTpl("theme:base",{classname:"headerControlClassName",needState:!1,title:"标题区样式",extra:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.titleControlClassName.font"})]}),getSchemaTpl("theme:base",{classname:"bodyControlClassName",needState:!1,title:i18n("4e74ff55b36a0f35d511a761c264fce3"),extra:[getSchemaTpl("subFormItemMode",{label:i18n("5a0fbcaaeb439684bb4ae5be579e4cd4")}),getSchemaTpl("subFormHorizontalMode",{label:i18n("f99d7e5f15906ca78c45753ee3b04a8b")}),getSchemaTpl("subFormHorizontal")]}),getSchemaTpl("theme:base",{classname:"footerControlClassName",needState:!1,title:"底部区样式",extra:[getSchemaTpl("switch",{name:"affixFooter",label:i18n("1fae678397df046c1754092f15a71d98"),value:!1})]})]})),!1),[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"headerClassName",label:i18n("65810a32a98f09be550b0c421df6c540")}),getSchemaTpl("className",{name:"bodyClassName",label:i18n("33be689a0f0de129ce37f7a96052002e")}),getSchemaTpl("className",{name:"footerClassName",label:i18n("f3b9889baa6d17ec63f05ea7d326bcfa")}),getSchemaTpl("className",{name:"actionsClassName",label:i18n("da71dcbb13405815476cef28a8b9c4f6")}),{name:nme?"panelClassName":"className",label:i18n("9970ad07468267e2f309f1467c75bb80"),type:"select",size:"sm",id:"panel-settings-panelClassName",pipeIn:function(rme){return typeof rme=="string"&&/(?:^|\s)(Panel\-\-(\w+))(?:$|\s)/.test(rme)?RegExp.$1:"Panel--default"},pipeOut:function(rme,ime){return ime?"".concat(ime.replace(/(?:^|\s)(Panel\-\-(\w+))(?=($|\s))/g,"")," ").concat(rme).replace(/\s+/g," ").trim():rme},options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"Panel--default"},{label:i18n("fbae87bcc352f6933541fb77a07418ed"),value:"Panel--primary"},{label:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),value:"Panel--info"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"Panel--success"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"Panel--warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"Panel--danger"}]}]})],!1))]}])]},$P}return eme.prototype.buildEditorPanel=function($P,tme){var ame=this,nme=$P.schema,rme=this.manager.store;$P.info.renderer.name==="form"&&nme.wrapWithPanel!==!1&&$P.selections.length,x_.prototype.buildEditorPanel.call(this,$P,tme)},eme.id="PanelPlugin",eme}(BasePlugin);registerEditorPlugin(PanelPlugin);var TabsPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tabs",$P.$schema="/schemas/TabsSchema.json",$P.name=i18n("9377e388f7189d6103a3985a321115c8"),$P.isBaseComponent=!0,$P.description=i18n("a8b1273cb2d53ad858906ff9744a9891"),$P.docLink="/amis/zh-CN/components/tabs",$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.icon="fa fa-folder-o",$P.pluginIcon="tabs-plugin",$P.scaffold={type:"tabs",tabs:[{title:i18n("f78416dbd6c6a40a3ecd1c1f2b0672c8"),body:[]},{title:i18n("4be268145385303e8ebeb480458a380e"),body:[]}],mountOnEnter:!0},$P.previewSchema=__assign$3({},$P.scaffold),$P.notRenderFormZone=!0,$P.regions=[{key:"toolbar",label:i18n("012f602372cd2dbd639cd966c63e1f90"),preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7")}],$P.panelTitle=i18n("9377e388f7189d6103a3985a321115c8"),$P.events=[{eventName:"change",eventLabel:i18n("e1112a529dc969a03bbbb409905ff2ec"),description:i18n("e1112a529dc969a03bbbb409905ff2ec"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("b04c6cf9cb1212b9c173ddfeec129028")}}}}}]},{eventName:"delete",eventLabel:"选项卡删除",description:"选项卡删除",dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("b04c6cf9cb1212b9c173ddfeec129028")}}}}}]}],$P.actions=[{actionType:"changeActiveKey",actionLabel:i18n("7bb3e24cc54f4b8ee0a65d14fa4c067c"),description:"修改当前激活tab项",config:["activeKey"],descDetail:function(tme,ame,nme){var rme;return React__default.createElement("div",{className:"action-desc"},"激活",buildLinkActionDesc(nme.manager,tme),"第",React__default.createElement("span",{className:"variable-left variable-right"},(rme=tme==null?void 0:tme.args)===null||rme===void 0?void 0:rme.activeKey),i18n("29645b509093191cad34c673c1b3efb7"))},schema:getArgsWrapper(getSchemaTpl("formulaControl",{name:"activeKey",label:i18n("9578012b7d75a3a47c76acc176caf403"),variables:"${variables}",size:"lg",mode:"horizontal",horizontal:{left:"normal"}}))},{actionType:"deleteTab",actionLabel:"删除指定选项卡",description:"删除指定hash的tab项",descDetail:function(tme,ame,nme){var rme;return React__default.createElement("div",null,i18n("2f4aaddde33c9b93c36fd2503f3d122b"),buildLinkActionDesc(nme.manager,tme),"hash为",React__default.createElement("span",{className:"variable-left variable-right"},(rme=tme==null?void 0:tme.args)===null||rme===void 0?void 0:rme.deleteHash),"的tab项")},schema:getArgsWrapper(getSchemaTpl("formulaControl",{name:"deleteHash",label:"删除项",variables:"${variables}",size:"lg",mode:"horizontal",placeholder:"请输入hash值",horizontal:{left:"normal"}}))}],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame='this.tabsMode !=="vertical" && this.tabsMode !=="sidebar" && this.tabsMode !=="chrome"';return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("combo-container",{type:"combo",label:i18n("9377e388f7189d6103a3985a321115c8"),mode:"normal",name:"tabs",draggableTip:"",draggable:!0,multiple:!0,minLength:1,scaffold:{title:i18n("9377e388f7189d6103a3985a321115c8"),body:[{type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),inline:!1}]},items:[getSchemaTpl("title",{label:!1,required:!0})]}),getSchemaTpl("switch",{name:"showTip",label:tipedLabel(i18n("3ba265c6b63bde0319822afd6b9a649d"),i18n("b744b72fd649d904e561358fc26c455f")),visibleOn:ame,clearValueOnHidden:!0}),{label:tipedLabel(i18n("6c200daeb748ecce2c730d01837d3508"),i18n("bd749c7a75af1236325d8d669e9bc5fc")),type:"input-text",name:"defaultKey",placeholder:i18n("8b4de52c23ad472b9ece9e30d8750c48"),pipeOut:function(nme){return nme===""||isNaN(Number(nme))?nme:Number(nme)}},{label:tipedLabel(i18n("7806807651c37e4467f9d2fc1c18eb2a"),i18n("8a59e0a5705fea1751d77a97b7bf5d8d")),type:"input-text",name:"activeKey",placeholder:i18n("27e0d57c4412bcb89e6aaeeb1e5935fe"),pipeOut:function(nme){return nme===""||isNaN(Number(nme))?nme:Number(nme)}},getSchemaTpl("closable")]},getSchemaTpl("status"),{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("sourceBindControl",{label:tipedLabel(i18n("45a4922d3f42d0b137c6845c4c77031f"),i18n("eadd1d64cd6ceb2c50554281cd2d3be0"))}),getSchemaTpl("switch",{name:"mountOnEnter",label:tipedLabel(i18n("5b9af1bc3012bb3c8e07b983b423ec17"),i18n("4bcecc15d16e8c851dc3d155b8f30929"))}),getSchemaTpl("switch",{name:"unmountOnExit",label:tipedLabel(i18n("12c6a62683d63e404d71a31c9cb5209c"),i18n("5b52bcb62a2e1dab99ef841b05395b6d"))})]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"tabsMode",label:i18n("1e409f26f9c1d58ce0c47a68104d45f0"),type:"select",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("ecfcea4b381d761fecd512761bc07954"),value:"line"},{label:i18n("b30f254eccefa14c9980235bcbec74f9"),value:"simple"},{label:i18n("3d7443aeba7c8eaf1cbb42ad5232fa10"),value:"strong"},{label:i18n("d87f215d9ac688b1d3399bf575a0ef6f"),value:"card"},{label:i18n("ee5e5a588705699a51eb3c5778c3020a"),value:"chrome"},{label:i18n("c5b8044dacf2e63931d85e5e307a9168"),value:"tiled"},{label:i18n("22d18bf0c476ebe7aa9303108677ff2e"),value:"radio"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"vertical"},{label:i18n("5bff38cb05e3710a0c0cb16ed3ced78f"),value:"sidebar"}],pipeIn:defaultValue("")},getSchemaTpl("horizontal-align",{label:i18n("593c1c61592f80831f58b2e44cfe63fa"),name:"sidePosition",pipeIn:defaultValue("left"),visibleOn:'this.tabsMode === "sidebar"',clearValueOnHidden:!0})]},getSchemaTpl("theme:base",{classname:"titleControlClassName",title:i18n("35633d4bcf019258d4a5b927e8644bed"),hidePaddingAndMargin:!0,hideRadius:!0,hideShadow:!0,hideBorder:!0,hideBackground:!0,state:["default","hover","focused","disabled"],extra:[getSchemaTpl("theme:select",{label:i18n("c28479019e24e0e4745f4948e9e97ee7"),name:"themeCss.titleControlClassName.width"}),getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.titleControlClassName.font"})]}),getSchemaTpl("theme:base",{classname:"toolbarControlClassName",title:i18n("af608093f1d3c25e85bdb4ed17f8b947")}),getSchemaTpl("theme:base",{classname:"contentControlClassName",title:i18n("4e74ff55b36a0f35d511a761c264fce3")}),getSchemaTpl("theme:singleCssCode",{selectors:[{label:"选项卡基本样式",isRoot:!0,selector:".cxd-Tabs"},{label:"选项卡工具栏样式",selector:".cxd-Tabs-toolbar"},{label:"选项卡标题样式",selector:".cxd-Tabs-link"},{label:"选项卡内容区样式",selector:".cxd-Tabs-content"}]})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P.patchContainers=["tabs.body"],$P.vRendererConfig={regions:{body:{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}},panelTitle:i18n("d87f215d9ac688b1d3399bf575a0ef6f"),panelJustify:!0,panelBodyCreator:function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:ame?"input-text-i18n":"input-text",required:!0},{type:"ae-switch-more",formType:"extend",mode:"normal",label:i18n("32b4bc87bf7f95cd6094992f0135ff7f"),form:{body:[getSchemaTpl("icon"),getSchemaTpl("horizontal-align",{label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),name:"iconPosition",pipeIn:defaultValue("left"),visibleOn:"this.icon",clearValueOnHidden:!0})]}},getSchemaTpl("closable"),{label:tipedLabel("Hash",i18n("996a919888ae86e842c76245daae2360")),name:"hash",type:"input-text"}]},getSchemaTpl("status",{disabled:!0}),{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("switch",{name:"mountOnEnter",label:tipedLabel(i18n("f3051dd9b3538e170322fd5224b28de0"),i18n("ee51f2d49fa12c730d2a0efef0d67e44")),visibleOn:"!this.reload",clearValueOnHidden:!0}),getSchemaTpl("switch",{name:"unmountOnExit",label:tipedLabel(i18n("024f24defb08c5c9d463a2668cbb9802"),i18n("370bb4d6806c88a7df2ac17ca2a7b6a6")),visibleOn:"!this.reload",clearValueOnHidden:!0})]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("theme:base",{classname:"panelControlClassName",title:i18n("6f99b6eed37795cb97d5f6370c32113b")})])}])}},$P.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},$P.tabWrapperResolve=function(tme){return tme.parentElement},$P.overrides={renderTabs:function(){var tme=this,ame=this.super();if(!this.renderTab&&this.props.$$editor&&ame){var nme=this.props.tabs;return mapReactElement(ame,function(rme){var ime,ome;if(rme.type===Tab$1&&rme.props.$$id){var lme=rme.props.$$id,sme=findIndex$3(nme,function(fme){return fme.$$id===lme}),cme=tme.props.$$editor,dme=cme.plugin;if(~sme){var ume=(ome=(ime=dme.vRendererConfig)===null||ime===void 0?void 0:ime.regions)===null||ome===void 0?void 0:ome.body;return ume?React__default.cloneElement(rme,{children:React__default.createElement(VRenderer,{key:lme,type:cme.type,plugin:cme.plugin,renderer:cme.renderer,$schema:"/schemas/TabSchema.json",hostId:cme.id,memberIndex:sme,name:"".concat(rme.props.title||i18n("d87f215d9ac688b1d3399bf575a0ef6f").concat(sme+1)),id:lme,draggable:!1,wrapperResolve:dme.tabWrapperResolve,schemaPath:"".concat(cme.schemaPath,"/tabs/").concat(sme),path:"".concat(tme.props.$path,"/").concat(sme),data:tme.props.data},React__default.createElement(RegionWrapper,{key:ume.key,preferTag:ume.preferTag,name:ume.key,label:ume.label,regionConfig:ume,placeholder:ume.placeholder,editorStore:dme.manager.store,manager:dme.manager,children:rme.props.children,wrapperResolve:ume.wrapperResolve,rendererName:cme.renderer.name}))}):rme}}return rme})}return ame}},$P}return eme.prototype.buildEditorToolbar=function($P,tme){if($P.info.plugin===this&&$P.info.renderer.name==="tabs"&&!$P.info.hostId){var ame=$P.node;tme.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:i18n("ad5a36ee5f4054594c30b6dc481e2d81"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.switchTo){var rme=nme.currentIndex();nme.switchTo(rme-1)}}}),tme.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:i18n("49e0f68798e3c69b7990076bd8f1f47f"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.switchTo){var rme=nme.currentIndex();nme.switchTo(rme+1)}}})}},eme.prototype.onPreventClick=function($P){var tme=$P.context.data;if(tme.defaultPrevented)return!1;if(tme.target.closest("[role=tablist]>li"))return!1},eme.id="TabsPlugin",eme}(BasePlugin);registerEditorPlugin(TabsPlugin);var SwitchContainerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="switch-container",$P.$schema="/schemas/SwitchContainerSchema.json",$P.name=i18n("7c39d9e0d516e260fc3513eb8e5243a5"),$P.isBaseComponent=!0,$P.description=i18n("39282fd22802ac1d9f99cdd0ffff253e"),$P.tags=[i18n("b1b98c19058af70d8bd499e1899e93bc")],$P.order=-2,$P.icon="fa fa-square-o",$P.pluginIcon="switch-container-plugin",$P.scaffold={type:"switch-container",items:[{title:i18n("f449bcac0f09a349882e74800f20d724"),body:[{type:"tpl",tpl:i18n("3b5a5cee1bd8775463be15d96eac23a1"),wrapperComponent:""}]},{title:i18n("f7361c5ad849477766b12e970bbd71f0"),body:[{type:"tpl",tpl:i18n("0880f36708cd0408167f318936cc6df1"),wrapperComponent:""}]}],style:{position:"static",display:"block"}},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P.panelTitle=i18n("7c39d9e0d516e260fc3513eb8e5243a5"),$P.panelJustify=!0,$P.vRendererConfig={regions:{body:{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),wrapperResolve:function(tme){return tme}}},panelTitle:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),panelJustify:!0,panelBodyCreator:function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("0796ba76b4b553687e5ffaeb78512ccb"),body:[{name:"title",label:i18n("c887c83f280bd63012d32179ff5273ed"),type:"input-text",required:!0},getSchemaTpl("expressionFormulaControl",{evalMode:!1,label:i18n("a30fd0a2a17e3dcf701b3334341aa39c"),name:"visibleOn",placeholder:"\\${xxx}"})]}])}])}},$P.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},$P.stateWrapperResolve=function(tme){return tme},$P.overrides={renderBody:function(tme){var ame,nme,rme=this.super(tme),ime=this.props.$$editor,ome=this.props.items||[],lme=ome.findIndex(function(ume){return ume.$$id===tme.$$id});if(!ime||!ime.plugin)return rme;var sme=ime.plugin,cme=tme.$$id,dme=(nme=(ame=sme.vRendererConfig)===null||ame===void 0?void 0:ame.regions)===null||nme===void 0?void 0:nme.body;return React__default.createElement(VRenderer,{type:ime.type,plugin:ime.plugin,renderer:ime.renderer,multifactor:!0,key:cme,hostId:ime.id,memberIndex:lme,name:"".concat(tme.title||i18n("3fea7ca76cdece641436d7ab0d02ab1b").concat(lme+1)),id:cme,draggable:!1,wrapperResolve:sme.stateWrapperResolve,schemaPath:"".concat(ime.schemaPath,"/items/").concat(lme),path:"".concat(this.props.$path,"/").concat(lme),data:this.props.data},dme?React__default.createElement(RegionWrapper,{key:dme.key,preferTag:dme.preferTag,name:dme.key,label:dme.label,regionConfig:dme,placeholder:dme.placeholder,editorStore:sme.manager.store,manager:sme.manager,children:rme,wrapperResolve:dme.wrapperResolve,rendererName:ime.renderer.name}):rme)}},$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.panelBodyCreator=function(tme){var ame,nme,rme=tme==null?void 0:tme.schema,ime=(rme==null?void 0:rme.isFreeContainer)||!1,ome=(ame=$P.manager)===null||ame===void 0?void 0:ame.isFlexItem(tme==null?void 0:tme.id),lme=(nme=$P.manager)===null||nme===void 0?void 0:nme.isFlexColumnItem(tme==null?void 0:tme.id),sme=[getSchemaTpl("layout:display"),getSchemaTpl("layout:flex-setting",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")',direction:rme.direction,justify:rme.justify,alignItems:rme.alignItems}),getSchemaTpl("layout:flex-wrap",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")'})];return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"ae-listItemControl",mode:"normal",name:"items",label:i18n("df7f223af52c3261a3b23a152bffe26c"),addTip:i18n("8256d18231287d07406fbf019e81bb01"),minLength:1,items:[{type:"input-text",placeholder:i18n("b4fdf79b8f54856b072ec3874b830d1f"),label:i18n("c887c83f280bd63012d32179ff5273ed"),mode:"horizontal",name:"title"},getSchemaTpl("expressionFormulaControl",{name:"visibleOn",mode:"horizontal",label:i18n("bd863f35feb02c40cf14493b1dc1b198")})],scaffold:{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[{type:"tpl",tpl:i18n("93553f4588b0f0c782f58182db0490d7"),wrapperComponent:"",inline:!1}]}}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",[getSchemaTpl("theme:base",{collapsed:!1,extra:[]}),{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:__spreadArray(__spreadArray(__spreadArray([getSchemaTpl("layout:originPosition"),getSchemaTpl("layout:inset",{mode:"vertical"})],__read$3(ime?[]:sme),!1),__read$3(ome?[getSchemaTpl("layout:flex",{isFlexColumnItem:lme,label:i18n(lme?"f02f876ee64cc016d97fa4dc498d4857":"a170a375b264f7fe0c02a7ca8c268784"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-grow",{visibleOn:'this.style && this.style.flex === "1 1 auto" && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-basis",{label:i18n(lme?"183f00df0922a6be371fea58cd46a60a":"f92626f9e56b3e2d0c47495a446acf71"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "1 1 auto"'}),getSchemaTpl("layout:flex-basis",{label:i18n(lme?"c19b79073b676b9bade80613aba2dbfa":"b591aed69defa2abf0486da6a58dfb5e"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "0 0 150px"'})]:[]),!1),[getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(ome&&!lme," && this.style.flex === '0 0 150px'")}),getSchemaTpl("layout:isFixedHeight",{visibleOn:"".concat(!ome||!lme),onChange:function(cme){tme==null||tme.node.setHeightMutable(cme)}}),getSchemaTpl("layout:height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:max-height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:min-height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:overflow-y",{visibleOn:"".concat(!ome||!lme," && (this.isFixedHeight || this.style && this.style.maxHeight) || (").concat(ome&&lme," && this.style.flex === '0 0 150px')")}),getSchemaTpl("layout:isFixedWidth",{visibleOn:"".concat(!ome||lme),onChange:function(cme){tme==null||tme.node.setWidthMutable(cme)}}),getSchemaTpl("layout:width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:max-width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:min-width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(!ome||lme," && (this.isFixedWidth || this.style && this.style.maxWidth)")}),ome?null:getSchemaTpl("layout:margin-center"),!ome&&!ime?getSchemaTpl("layout:textAlign",{name:"style.textAlign",label:i18n("a3221d2d224767df4afa7a8653ded8fe"),visibleOn:'this.style && this.style.display !== "flex" && this.style.display !== "inline-flex"'}):null,getSchemaTpl("layout:z-index"),getSchemaTpl("layout:sticky",{visibleOn:'this.style && (this.style.position !== "fixed" && this.style.position !== "absolute")'}),getSchemaTpl("layout:stickyPosition")],!1)},{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),body:[{type:"theme-cssCode",label:!1}]}])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildEditorToolbar=function($P,tme){if($P.info.plugin===this&&$P.info.renderer.name==="switch-container"&&!$P.info.hostId){var ame=$P.node;tme.unshift({icon:"fa fa-chevron-right",tooltip:i18n("ca035ede21ad993ba8f29a2e615b61e0"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.switchTo){var rme=nme.state.activeIndex<0?0:nme.state.activeIndex;nme.switchTo(rme+1)}}}),tme.unshift({icon:"fa fa-chevron-left",tooltip:i18n("b7349a87c4d838d1a6047c2844b1744a"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.switchTo){var rme=nme.state.activeIndex;nme.switchTo(rme-1)}}})}},eme.id="SwitchContainerPlugin",eme.scene=["layout"],eme}(LayoutBasePlugin);registerEditorPlugin(SwitchContainerPlugin);var APIAdaptorControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={switch:!!tme.props.value},tme}return eme.prototype.onChange=function($P){var tme,ame;$P===void 0&&($P=""),(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.genTooltipProps=function($P,tme){var ame=this.props.render;return __assign$3(__assign$3(__assign$3({tooltipTheme:"light",trigger:"hover",rootClose:!0,placement:"top",tooltipClassName:"ae-AdaptorControl-desc-tooltip"},typeof $P=="string"?{content:$P}:{content:" ",children:function(){return React__default.isValidElement($P)?$P:ame("content",$P)}}),this.props.tooltipProps||{}),tme||{})},eme.prototype.renderEditor=function(){if(!this.state.switch)return null;var $P=this.props,tme=$P.render,ame=$P.params,nme=ame===void 0?[]:ame,rme=$P.allowFullscreen,ime=$P.value,ome=$P.editorPlaceholder,lme=$P.editorDesc,sme=$P.mergeParams,cme=$P.mode;return React__default.createElement(React__default.Fragment,null,tme("api-adaptor-control-editor",{type:"ae-functionEditorControl",name:"functionEditorControl",placeholder:ome,desc:lme,allowFullscreen:rme,params:nme,mode:cme||"normal"},{value:ime,mergeParams:sme,onChange:this.onChange}))},eme.prototype.renderSwitch=function(){var $P=this,tme=this.props,ame=tme.render,nme=tme.defaultCode,rme=nme===void 0?"":nme,ime=tme.switchTip,ome=tme.name,lme=tme.value;return ame("api-adaptor-control-switch",{type:"flex",className:"mb-2",alignItems:"center",direction:"row",justify:"flex-start",items:__spreadArray([{type:"switch",label:"",mode:"inline",name:"__editorSwitch_"+ome,key:"switch",className:"mb-1",value:this.state.switch,onChange:function(sme){$P.setState({switch:sme},function(){$P.onChange(sme?lme||rme:"")})}}],__read$3(ime?[React__default.createElement(TooltipWrapper$1,{key:"TooltipWrapper",tooltip:this.genTooltipProps(ime,{placement:"right"})},React__default.createElement("span",{className:"leading-3 cursor-pointer"},React__default.createElement(Icon$1,{icon:"editor-help",className:"icon",color:"#84868c"})))]:[]),!1)})},eme.prototype.render=function(){var $P=this.props.className;return React__default.createElement("div",{className:cx$1("ae-ApiAdaptorControl",$P)},this.renderSwitch(),this.renderEditor())},eme.defaultProps={params:[]},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-apiAdaptorControl"})],eme),eme})(APIAdaptorControl);var genCodeSchema=function(x_,eme){return __assign$3(__assign$3({type:"container"},eme?{style:{width:eme[0],height:eme[1]}}:{}),{body:{type:"code",language:"typescript",className:"bg-white text-xs m-0",value:x_}})},requestAdaptorDefaultCode=`api.data.count = api.data.count + 1;
return api;`,adaptorApiStruct=i18n("717b9f738e2da460071b1b5ae7cc0e06"),adaptorContextStruct=i18n("fd8f406e39d5c4b1f1f2251156eb34ef"),adaptorApiStructTooltip=genCodeSchema(adaptorApiStruct,["350px","128px"]),adaptorContextStructTooltip=genCodeSchema(adaptorContextStruct,["350px","128px"]),adaptorResponseStruct=i18n("d1bfe86cb1776358c5ed50bc137a2b7a"),adaptorResponseStructTooltip=genCodeSchema(adaptorResponseStruct,["345px","144px"]),adaptorDefaultCode=i18n("d3b13672e0e24d1490b2564ae7f6da4e"),validateApiAdaptorDefaultCode=i18n("36d7adab7769ff6741b2860f041e56d2"),adaptorReturnStruct=i18n("0228c8f19830732b523a58a2ee0bbcfd"),adaptorEditorDescSchema={type:"container",className:"text-xs",style:{width:"458px",height:"315px"},body:[i18n("6d8e3115be41a8a5690d6fefa637dac7"),genCodeSchema(adaptorReturnStruct),{type:"table",className:"mt-1 mb-0",data:{items:[{label:"status",desc:i18n("09212e946a4d9b0f775700c46ef0dcd5")},{label:"msg",desc:i18n("7391774e57425e5d8e83de64100b5f2e")},{label:"data",desc:i18n("fa385c23820ee9999c82035086baa772")}]},columns:[{name:"label",label:i18n("9caecd931b956381e0763d05aa42835c")},{name:"desc",label:i18n("f411d0f1f925d9b48d8c1d451bd809b1")}]}]},validateApiAdaptorEditorDescSchema={type:"container",className:"text-xs",body:[i18n("6494bc042d99f2f5de34a858b8a699c6"),{type:"table",className:"mt-1 mb-0",data:{items:[{label:"status",desc:i18n("e6246c03148f553e5d6a66adbdabb9f8")},{label:"errors",desc:i18n("b8079b9d1e6d3e8a457787910a75cce4")}]},columns:[{name:"label",label:i18n("9caecd931b956381e0763d05aa42835c")},{name:"desc",label:i18n("f411d0f1f925d9b48d8c1d451bd809b1")}]}]};setSchemaTpl("apiRequestAdaptor",{label:tipedLabel(i18n("417125a06b1d2bfff025e83a4e067bf0"),i18n("e83caa4c6ef82543603609c916cd804d")),name:"requestAdaptor",type:"ae-apiAdaptorControl",editorDesc:i18n("a59c65bea7d5065f19eb9c918a716c33"),editorPlaceholder:requestAdaptorDefaultCode,params:[{label:"api",tip:adaptorApiStructTooltip},{label:"context",tip:adaptorContextStructTooltip}]});setSchemaTpl("apiAdaptor",{label:tipedLabel(i18n("05fb5edb84e41c19b0f5429fff20b834"),i18n("44af993b124817085dc2579a9f842d55")),type:"ae-apiAdaptorControl",name:"adaptor",params:[{label:"payload",tip:i18n("98498eb59e87ec9a0eaf98ac55628da9")},{label:"response",tip:adaptorResponseStructTooltip},{label:"api",tip:adaptorApiStructTooltip}],editorPlaceholder:adaptorDefaultCode,switchTip:adaptorEditorDescSchema});setSchemaTpl("validateApiAdaptor",__assign$3(__assign$3({},getSchemaTpl("apiAdaptor")),{editorPlaceholder:validateApiAdaptorDefaultCode,switchTip:validateApiAdaptorEditorDescSchema}));var viewTypeToEditType=function(x_){return x_==="tpl"?"input-text":x_==="status"||x_==="mapping"?"select":"input-".concat(x_)},CRUDPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="crud",$P.$schema="/schemas/CRUDSchema.json",$P.order=-800,$P.name=i18n("d7213304d1a8a02a73a2f4010839e061"),$P.isBaseComponent=!0,$P.description=i18n("7a9f1ec32752de8b69ef21138970f64d"),$P.docLink="/amis/zh-CN/components/crud",$P.tags=[i18n("73721e611daaafe5c34aa9f3f901d016")],$P.icon="fa fa-table",$P.pluginIcon="table-plugin",$P.scaffold={type:"crud",syncLocation:!1,api:"",columns:[{name:"id",label:"ID",type:"text"},{name:"engine",label:i18n("48c68eb5a42e2b3e679c53b00f6e203f"),type:"text"}],bulkActions:[],itemActions:[]},$P.events=[{eventName:"fetchInited",eventLabel:i18n("f36616e35765ac3d5c9c7646e50a305d"),description:i18n("48c43999cf3908d9f5100a6d5f0b4404"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]},{eventName:"selectedChange",eventLabel:i18n("257f5a3886d87d2255206f86b880d07e"),description:i18n("6130b1f75d624b2f73f5d923492e92f7"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{selectedItems:{type:"array",title:i18n("6142a89066ca7dd6a1ce9493462c5aca")},unSelectedItems:{type:"array",title:i18n("21bd0846bd8aa2296c597a1c1ff8e1a7")}}}}}]},{eventName:"columnSort",eventLabel:i18n("f3d21138c8ecf5683503c4f814cc7199"),description:i18n("d84464cfb2a5828a200fe9c28a323122"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{orderBy:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},orderDir:{type:"string",title:i18n("c35c1a13309c6f9da9837857517e65fc")}}}}}]},{eventName:"columnFilter",eventLabel:i18n("3d0b957a99d0c366612c01913e17a0c7"),description:i18n("b35963687361af98e6acdc004e87fc3c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{filterName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},filterValue:{type:"string",title:i18n("e125986c2ba6783c4297ffe5405cc8bc")}}}}}]},{eventName:"columnSearch",eventLabel:i18n("93a5a0253f11e3a2e58f4e87a52fb094"),description:i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{searchName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},searchValue:{type:"object",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"orderChange",eventLabel:i18n("85ddd38957256b6e9026f42ed570bc35"),description:i18n("d7a66def82af88cd5d408e38feb8a65a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{movedItems:{type:"array",title:i18n("64ef585f778c9d1b010e86b032398ab6")}}}}}]},{eventName:"columnToggled",eventLabel:i18n("ecfebbc91e2c18a512aeb11b7da15193"),description:i18n("c94f45773a42dc386b9c9dcdc6fa542b"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{columns:{type:"array",title:i18n("db9df54392e408520ca12c6a56113b5a")}}}}}]},{eventName:"rowClick",eventLabel:i18n("76e47871d654c3b0b0e301c0a076e55a"),description:i18n("cc13521eab2c7423b3fb857772405cc3"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]},{eventName:"rowMouseEnter",eventLabel:i18n("5db079b140feffa84c84d1b51d824dea"),description:i18n("90a5608bcd85a3cfcfbb5263a229915c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]},{eventName:"rowMouseLeave",eventLabel:i18n("e8bf039de5dc6751c4045f55930e0c83"),description:i18n("f1ca0d305f3251a81f361a2dc8e11fff"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]}],$P.actions=[__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),actionType:"setValue",description:i18n("f97f8b90f09fb7df39c5c9ae3554b4c7")},getActionCommonProps("setValue"))],$P.btnSchemas={create:{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),type:"button",actionType:"dialog",level:"primary",editorSetting:{behavior:"create"},dialog:{title:i18n("66ab5e9f24c8f46012a25c89919fb191"),body:{type:"form",api:"",body:[]}}},update:{label:i18n("95b351c86267f3aedf89520959bce689"),type:"button",actionType:"dialog",level:"link",editorSetting:{behavior:"update"},dialog:{title:i18n("95b351c86267f3aedf89520959bce689"),body:{type:"form",api:"",initApi:"",body:[]}}},view:{label:i18n("607e7a4f377fa66b0b28ce318aab841f"),type:"button",actionType:"dialog",level:"link",editorSetting:{behavior:"view"},dialog:{title:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),body:{type:"form",initApi:"",body:[]}}},delete:{type:"button",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),actionType:"ajax",level:"link",className:"text-danger",confirmText:i18n("6c546666aab964c39cd8bfdf4fbd46b8"),api:"",editorSetting:{behavior:"delete"}},bulkDelete:{type:"button",level:"danger",label:i18n("7fb62b30119c3797a843a48368463314"),actionType:"ajax",confirmText:i18n("6c546666aab964c39cd8bfdf4fbd46b8"),api:"",editorSetting:{behavior:"bulkDelete"}},bulkUpdate:{type:"button",label:i18n("e73cefac9d030927da1618c7b15c98c9"),actionType:"dialog",editorSetting:{behavior:"bulkUpdate"},dialog:{title:i18n("e73cefac9d030927da1618c7b15c98c9"),size:"md",body:{type:"form",api:"",body:[{label:i18n("19c6b7463e1bf73bb4b12ba07abd5444"),text:i18n("19c6b7463e1bf73bb4b12ba07abd5444"),type:"input-text"}]}}},filter:{title:i18n("cf12e55021998a8328201800ec356773"),body:[{type:"input-text",name:"keywords",label:i18n("cfb5f18c43753ad5329348d626bd3739")}]}},$P.multifactor=!0,$P.previewSchema={syncLocation:!1,type:"crud",className:"text-left",bodyClassName:"m-b-none",affixHeader:!1,data:{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]},source:"${items}",columns:[{label:"A",name:"a"},{label:"B",name:"b"},{type:"operation",label:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:[{icon:"fa fa-eye",type:"button"},{icon:"fa fa-edit",type:"button"}]}]},$P.panelTitle=i18n("d7213304d1a8a02a73a2f4010839e061"),$P.panelBodyCreator=function(tme){$P.manager.store;var ame=tme.id;return getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("switch",{name:"filter",label:i18n("07a88fae7dd11f87891af91fb54a74bb"),visibleOn:"this.api && this.api.url",pipeIn:function(nme){return!!nme},pipeOut:function(nme,rme){return nme?$P.oldFilter||JSONPipeIn({title:i18n("cf12e55021998a8328201800ec356773"),body:[{type:"input-text",name:"keywords",label:i18n("cfb5f18c43753ad5329348d626bd3739")}]}):($P.oldFilter=rme,null)}}),{type:"divider",visibleOn:"this.api && this.api.url"},getSchemaTpl("combo-container",{label:i18n("7f7c624a843b0d539a4ea59a696702f9"),name:"bulkActions",type:"combo",hiddenOn:"this.pickerMode && this.multiple",inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,draggableTip:"",scaffold:{label:i18n("fa966345577ba81af19408f203db968f"),type:"button"},labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("46e6edaeb9968e7f7ab549d4f2f82d6d"),placement:"left"},items:[getSchemaTpl("tpl:btnLabel"),{columnClassName:"p-t-xs col-edit",children:function(nme){var rme=nme.index;return React__default.createElement("button",{onClick:$P.handleBulkActionEdit.bind($P,ame,rme),"data-tooltip":i18n("8347a927c09a4ec2fe473b0a93f667d0"),"data-position":"bottom",className:"text-muted"},React__default.createElement("i",{className:"fa fa-pencil"}))}}]}),{type:"divider"},getSchemaTpl("combo-container",{label:i18n("f13a0697d58d975d14eb3f3c72c2cbf2"),name:"itemActions",type:"combo",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("3674ea51498e7118732e5e1c53d4bc80"),placement:"left"},hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode',inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,scaffold:{label:i18n("fa966345577ba81af19408f203db968f"),type:"button"},items:[getSchemaTpl("tpl:btnLabel"),{type:"checkbox",className:"text-xs",option:i18n("4916771d080ddf6d0551de4d6d2f42a4"),name:"hiddenOnHover"},{columnClassName:"p-t-xs col-edit",children:function(nme){var rme=nme.index;return React__default.createElement("button",{onClick:$P.handleItemActionEdit.bind($P,ame,rme),"data-tooltip":i18n("8347a927c09a4ec2fe473b0a93f667d0"),"data-position":"bottom",className:"text-muted"},React__default.createElement("i",{className:"fa fa-pencil"}))}}]}),{type:"divider",hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode'},getSchemaTpl("switch",{name:"syncLocation",label:i18n("569343b4fe5e48131b78611c11eadbeb"),pipeIn:defaultValue(!0),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("6dbee29a8c54eef9d042ef3280999ad9"),placement:"left"}}),getSchemaTpl("combo-container",{label:i18n("2171d1b07d045e796cba4a05bcf7d13f"),type:"input-kv",name:"defaultParams",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("01e7eb2256821085a14708d6ddf36814"),placement:"left"}}),{type:"divider"},getSchemaTpl("switch",{name:"keepItemSelectionOnPageChange",label:i18n("58ed0a7a5a91996dbb4c7d6dc7679364"),visbileOn:"this.bulkActions && this.bulkActions.length || this.itemActions && this.itemActions.length",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("36ac0011faae6f88ee0ec3e642328327"),placement:"left"}}),{name:"labelTpl",type:"input-text",label:i18n("2a0b47ba76e886070c3bd6abeae3d1c0"),visibleOn:"this.keepItemSelectionOnPageChange",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("6ab3e5b6c5d5d2cf621e911226495433"),placement:"left"}},{name:"primaryField",label:i18n("987b04af242bb2dafaf32d890ab952ff"),type:"input-text",pipeIn:defaultValue("id"),description:i18n("a270e70be12fb13a24ca3e4ac70fa838")}]},{title:i18n("54ea89b497ec3bb319c68844dfa3687f"),body:[getSchemaTpl("apiControl",{label:i18n("db7ee36de8063c2d5a6c123eac65641a"),sampleBuilder:function(){var nme,rme,ime={items:[],total:0},ome=(rme=(nme=tme==null?void 0:tme.schema)===null||nme===void 0?void 0:nme.columns)!==null&&rme!==void 0?rme:[],lme={};return ome.forEach(function(sme){sme.name&&setVariable(lme,sme.name,"sample")}),ime.items.push(lme),JSON.stringify({status:0,msg:"",data:ime},null,2)}}),{name:"initFetch",type:"radios",label:i18n("0951dad1723aa1191ce1a2e96db76051"),pipeIn:function(nme){return typeof nme=="boolean"&&nme||typeof nme!="boolean"&&""},inline:!0,onChange:function(){},options:[{label:i18n("0a60ac8f02ccd2cf723f927284877851"),value:!0},{label:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),value:!1},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:""}]},{name:"initFetchOn",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:i18n("55b22f5d136e73b26cef65aedd8ba86e"),className:"m-t-n-sm"},getSchemaTpl("switch",{name:"loadDataOnce",label:i18n("bedc70d448b656d828bd3ed7926b3e4d"),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("559fa334442f0f75b0343bbf38b7ff05"),placement:"left"}}),{name:"matchFunc",type:"ae-functionEditorControl",allowFullscreen:!0,mode:"normal",label:tipedLabel(i18n("7eca7159d5a09db3a0008280faae395c"),i18n("e95903f4c15aab31ea66ecd51b76e1a3")),renderLabel:!0,params:[{label:"items",tip:genCodeSchema(i18n("483cab6ec2367302b037208475361860"))},{label:"itemsRaw",tip:genCodeSchema(i18n("dd19e649ee3fd61e0eeab6b67a6eae7b"))},{label:"options",tip:genCodeSchema(i18n("2512e82e75dfe0f6f499db4ae9f715af"))}],placeholder:"return items;",visibleOn:"${loadDataOnce === true}"},getSchemaTpl("switch",{label:i18n("1af68c43e1780249f11b9de1eeaeb281"),name:"interval",visibleOn:"this.api",pipeIn:function(nme){return!!nme},pipeOut:function(nme){return nme?3e3:void 0}}),{name:"interval",type:"input-number",visibleOn:'typeof this.interval === "number"',step:500,className:"m-t-n-sm",description:i18n("9800f1ce2f78a23b81c8d944ebf9cce9")},getSchemaTpl("switch",{name:"silentPolling",label:i18n("19c5410b23fba4bbfd1a58bbd5268c9b"),visibleOn:"!!this.interval",description:i18n("04f840b0772f4b5d59954a29a76f4e7b")}),{name:"stopAutoRefreshWhen",label:i18n("6037dae99e9446deaed45f7e408f47ab"),type:"input-text",visibleOn:"!!this.interval",description:i18n("32e3a79e80dcf7f7304e8092dd7acc6f")},getSchemaTpl("switch",{name:"stopAutoRefreshWhenModalIsOpen",label:i18n("154ef40e477c031f6c1ec15caefb570a"),visibleOn:"!!this.interval",description:i18n("50f7c85bf60a9f43522789644566c62b")}),{type:"divider"},getSchemaTpl("switch",{name:"draggable",label:i18n("d8905a70e93a33c7a86240f467c653d4")}),getSchemaTpl("apiControl",{label:tipedLabel(i18n("040a78b24eaff47d4fa7e266473635b4"),i18n("9b39126b20e519bb1c6e9054f4b55784")),name:"saveOrderApi",visibleOn:"this.draggable"}),{type:"divider"},getSchemaTpl("apiControl",{label:i18n("ee850a0e326b217bdeb61d936c521177"),name:"quickSaveApi",description:i18n("8343f619879fa79bc8ef1a35b2fc3e78")}),{type:"divider"},getSchemaTpl("apiControl",{label:i18n("d891e79d4a8718a7dbd47ac68aaaa5cb"),name:"quickSaveItemApi",description:i18n("38db6e045e214ffcd03ede695002271c")}),{type:"divider"},getSchemaTpl("loadingConfig",{},{context:tme}),{type:"divider"},{label:i18n("522110866c19dace2ce38336617405c2"),type:"combo",name:"messages",multiLine:!0,description:i18n("3b69c2e540c05e9ca530ed30cf224472"),items:[getSchemaTpl("fetchSuccess"),getSchemaTpl("fetchFailed"),getSchemaTpl("saveOrderSuccess"),getSchemaTpl("saveOrderFailed"),getSchemaTpl("quickSaveSuccess"),getSchemaTpl("quickSaveFailed")]}],visibleOn:"!this.pickerMode"},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{label:i18n("ff57a3bf69a1065707e77c18c51f7bbb"),name:"mode",type:"button-group-select",size:"xs",pipeIn:function(nme,rme){var ime;return(ime=nme==="grid"?"cards":nme)!==null&&ime!==void 0?ime:"table"},onChange:function(nme,rme,ime,ome){var lme,sme,cme,dme,ume,fme=(sme=(lme=ome==null?void 0:ome.data)===null||lme===void 0?void 0:lme.headerToolbar)===null||sme===void 0?void 0:sme.some(function(bme){return bme.type==="columns-toggler"}),pme=cloneDeep$1((cme=ome==null?void 0:ome.data)===null||cme===void 0?void 0:cme.headerToolbar),hme;nme!=="table"&&rme==="table"&&(hme=(pme==null?void 0:pme.find(function(bme){return bme.type==="columns-toggler"}))||{type:"columns-toggler",align:"right"},ome.setValues({__headerHasColumnsToggler:fme})),pme=nme==="table"?pme:pme==null?void 0:pme.filter(function(bme){return bme.type!=="columns-toggler"}),nme==="table"?(!((dme=ome==null?void 0:ome.data)===null||dme===void 0)&&dme.__headerHasColumnsToggler&&!fme&&(pme==null||pme.push(((ume=ome==null?void 0:ome.data)===null||ume===void 0?void 0:ume.__cacheColumnsToggler)||{type:"columns-toggler",align:"right"})),ome.setValues({headerToolbar:pme,columns:ome.data.__columns||$P.transformByMode({from:rme,to:nme,schema:ome.data}),__headerHasColumnsToggler:fme,__card:ome.data.card||ome.data.__card,__listItem:ome.data.listItem||ome.data.__listItem}),ome.deleteValueByName("card"),ome.deleteValueByName("listItem")):nme==="cards"?(rme==="table"&&ome.setValues({__cacheColumnsToggler:hme}),ome.setValues({headerToolbar:pme,card:ome.data.__card||$P.transformByMode({from:rme,to:nme,schema:ome.data}),__columns:ome.data.columns||ome.data.__columns,__listItem:ome.data.listItem||ome.data.__listItem}),ome.deleteValueByName("columns"),ome.deleteValueByName("listItem")):(rme==="table"&&ome.setValues({__cacheColumnsToggler:hme}),ome.setValues({headerToolbar:pme,listItem:ome.data.__listItem||$P.transformByMode({from:rme,to:nme,schema:ome.data}),__columns:ome.data.columns||ome.data.__columns,__card:ome.data.card||ome.data.__card}),ome.deleteValueByName("columns"),ome.deleteValueByName("card"))},options:[{value:"table",label:i18n("b339aa87104709397ba68e7ebbc6e5ba")},{value:"cards",label:i18n("d87f215d9ac688b1d3399bf575a0ef6f")},{value:"list",label:i18n("3712972d84adf48acbd6ad24b4d75ad0")}]},getSchemaTpl("combo-container",{name:"headerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:i18n("e4fd8d64804a4f3d743eff384a6eb20a"),label:i18n("14555503d6e09ecd66661d04c882e79b"),pipeIn:function(nme){return Array.isArray(nme)||(nme=nme?[nme]:["bulkActions"]),nme.map(function(rme){var ime=rme.type;return typeof rme=="string"&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(rme)?(ime=rme==="bulkActions"?"bulk-actions":rme,rme={type:ime}):typeof rme=="string"&&(ime="tpl",rme=typeof rme=="string"?{type:"tpl",tpl:rme,wrapperComponent:""}:rme),__assign$3({type:ime},rme)})},pipeOut:function(nme){return Array.isArray(nme)?nme.map(function(rme){return rme.type==="button"?JSONPipeIn(__assign$3({label:i18n("fa966345577ba81af19408f203db968f"),type:"button"},rme)):rme.type==="tpl"?JSONPipeIn(__assign$3({type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),wrapperComponent:""},rme)):rme}):[]},scaffold:{type:"tpl",wrapperComponent:"",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014")},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",overlay:{align:"left",width:150},options:[{value:"bulk-actions",label:i18n("8abc564260a1564521e0c3a1d5419b4a")},{value:"pagination",label:i18n("3862626c138ce5945e0e273a1bdfbad0")},{value:"statistics",label:i18n("439a19857be1fb8d3e6017258e32c486")},{value:"switch-per-page",label:i18n("bc908986a4e4eec3dca3530afd1d4306")},{value:"load-more",label:i18n("77281549955309c49f5eef77838a85e5")},{value:"export-csv",label:i18n("1add12ff3338a990b60154b75019c348")},{value:"export-excel",label:i18n("7d57852b946d9d4d64fb2a48ca2b4a44")},{value:"columns-toggler",label:i18n("16c6099bc0efaa669d8de698c105e333"),visibleOn:'!this.mode || this.mode === "table"'},{value:"filter-toggler",label:i18n("073694928db5b0b5423ebe095ec62d39")},{value:"drag-toggler",label:i18n("5b9c3e6ce478196f802722cb09d61f0b")},{value:"tpl",label:i18n("97d07614380da93d257f9fbf81aa56fb")},{value:"button",label:i18n("fa966345577ba81af19408f203db968f")}]},{name:"align",placeholder:i18n("d5bc35360607472de4525358af126de4"),type:"select",size:"xs",options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"}]}]}),getSchemaTpl("combo-container",{name:"footerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:i18n("e4fd8d64804a4f3d743eff384a6eb20a"),label:i18n("1325969c143a639294c1c6ab370b35a3"),pipeIn:function(nme){return Array.isArray(nme)||(nme=nme?[nme]:["statistics","pagination"]),nme.map(function(rme){var ime=rme.type;return typeof rme=="string"&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(rme)?(ime=rme==="bulkActions"?"bulk-actions":rme,rme={type:ime}):typeof rme=="string"&&(ime="tpl",rme=typeof rme=="string"?{type:"tpl",tpl:rme,wrapperComponent:""}:rme),__assign$3({type:ime},rme)})},pipeOut:function(nme){return Array.isArray(nme)?nme.map(function(rme){return rme.type==="button"?JSONPipeIn(__assign$3({label:i18n("fa966345577ba81af19408f203db968f"),type:"button"},rme)):rme.type==="tpl"?JSONPipeIn(__assign$3({type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),wrapperComponent:""},rme)):rme}):[]},scaffold:{type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),wrapperComponent:""},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",overlay:{align:"left",width:150},options:[{value:"bulk-actions",label:i18n("8abc564260a1564521e0c3a1d5419b4a")},{value:"pagination",label:i18n("3862626c138ce5945e0e273a1bdfbad0")},{value:"statistics",label:i18n("439a19857be1fb8d3e6017258e32c486")},{value:"switch-per-page",label:i18n("bc908986a4e4eec3dca3530afd1d4306")},{value:"load-more",label:i18n("77281549955309c49f5eef77838a85e5")},{value:"export-csv",label:i18n("1add12ff3338a990b60154b75019c348")},{value:"export-excel",label:i18n("7d57852b946d9d4d64fb2a48ca2b4a44")},{value:"columns-toggler",label:i18n("16c6099bc0efaa669d8de698c105e333"),hiddenOn:'["grid", "cards", "list"].indexOf(this.mode)'},{value:"filter-toggler",label:i18n("073694928db5b0b5423ebe095ec62d39")},{value:"drag-toggler",label:i18n("5b9c3e6ce478196f802722cb09d61f0b")},{value:"check-all",label:i18n("66eeacd93a7c1bda93906fe908ad11a0"),hiddenOn:'!this.mode || this.mode === "table"'},{value:"tpl",label:i18n("97d07614380da93d257f9fbf81aa56fb")},{value:"button",label:i18n("fa966345577ba81af19408f203db968f")}]},{name:"align",placeholder:i18n("d5bc35360607472de4525358af126de4"),size:"xs",type:"select",options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"}]},{type:"remark",content:i18n("440a3a2d7f1b123718be75e2baee8391"),trigger:["click"],rootClose:!0,placement:"left",visibleOn:'!~["bulkActions", "drag-toggler", "check-all", "bulk-actions", "pagination", "statistics", "switch-per-page", "filter-toggler", "load-more", "export-csv", "export-excel"].indexOf(this.type)',columnClassName:"no-grow w-3x p-t-xs",className:"m-l-none"}]}),getSchemaTpl("switch",{name:"filterTogglable",label:i18n("34da7e4a0ecdb63967427f43adf2de3e"),visibleOn:"this.filter"}),getSchemaTpl("switch",{name:"filterDefaultVisible",label:i18n("25c0db3ddce9bfffd497d0c824cf3c72"),visibleOn:"this.filter && this.filterTogglable",pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"hideQuickSaveBtn",label:i18n("259d11c300a365b6767228c12d29ce53")}),getSchemaTpl("switch",{name:"alwaysShowPagination",label:i18n("fa9417bacb7714e82663655345ca213d")}),getSchemaTpl("switch",{name:"autoFillHeight",label:i18n("0449dab523020003eee89a0751e1c003")}),getSchemaTpl("switch",{name:"hideCheckToggler",label:i18n("e3d2a85f20608a5bde7d539969d03167"),visibleOn:"this.checkOnItemClick"}),getSchemaTpl("className"),getSchemaTpl("className",{name:"bodyClassName",label:i18n("af1af0a7fad9e8bdcd21694d0e036e12")})]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]},{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[getSchemaTpl("ref"),{name:"source",label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),type:"input-text",description:i18n("62569fcb0fc8314daea97989bba3877c")},{name:"perPage",label:i18n("606bc931d2b3ebba2569cb1494719e2c"),type:"input-number"},getSchemaTpl("switch",{name:"keepItemSelectionOnPageChange",label:i18n("004d01f56242e07cbdc97256bb11c75b")}),{name:"maxKeepItemSelectionLength",label:i18n("3d330edb46341a26ccc9aaa7f7938a8e"),type:"input-number",mode:"horizontal",horizontal:{justify:!0}},{name:"pageField",label:i18n("95e68bea2d8c8e41ffa619d4364a0d6f"),type:"input-text",pipeIn:defaultValue("page")},{name:"perPageField",label:i18n("537f8b09437bdb7fac429dc4e8666763"),type:"input-text",pipeIn:defaultValue("perPage")},{name:"orderField",label:i18n("30c7bd5acd4564057bd89e0846f01728"),type:"input-text",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:i18n("dd8d217677e4c5df28b7f46aa99b22a8"),placement:"left"}},{name:"perPageAvailable",label:i18n("e04e8f570e2fb43a533b224f3c48523d"),type:"input-array",hiddenOn:"this.loadDataOnce",items:{type:"input-number",required:!0},value:[5,10,20,50,100]},getSchemaTpl("name"),{name:"itemCheckableOn",type:"input-text",label:i18n("0fc1de8f71a7470213fc68f981abdbc2"),description:i18n("7d5fefd589000879088063dceb4b2552"),visibleOn:"this.bulkActions && this.bulkActions.length || this.pickerMode"},getSchemaTpl("switch",{name:"checkOnItemClick",label:i18n("614ec7801e03f7ee009e4448e6ed4001"),visibleOn:"this.bulkActions && this.bulkActions.length || this.pickerMode"}),getSchemaTpl("switch",{name:"autoJumpToTopOnPagerChange",label:i18n("530ab79908eabe5b329ffe17695079e2"),description:i18n("9092afb1ccb692308ef06d8001da2208")}),getSchemaTpl("switch",{name:"syncResponse2Query",label:i18n("c8cf39b24bb52d0562472c33b86824fe"),description:i18n("d3c172700af4f3f3afb028d6bb4a90a4")})]}])},$P.wrapperProps={affixHeader:!1},$P}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=this,tme=getI18nEnabled();return{title:i18n("4a1e3c50547e61503a2d1c356005eb08"),body:[getSchemaTpl("apiControl",{label:i18n("85624c8e8b0fc98954eecbe508e8b59d"),sampleBuilder:function(ame){return JSON.stringify({status:0,msg:"",data:{items:[{id:1,engine:"Webkit"}],total:1}},null,2)}}),{type:"button",label:i18n("3dd674542204724eb5417efc7354ec73"),className:"m-t-xs m-b-xs",visibleOn:"!!this.api.url",onClick:function(ame,nme){return __awaiter($P,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme;return __generator(this,function(vme){switch(vme.label){case 0:return rme=nme.data,ime=getEnv(window.editorStore).schemaFilter,ome=rme.api,ime&&(ome=ime({api:rme.api}).api),[4,nme.env.fetcher(ome,rme)];case 1:if(lme=vme.sent(),sme=normalizeApiResponseData(lme.data),cme=[],dme=(mme=sme==null?void 0:sme.items)!==null&&mme!==void 0?mme:sme==null?void 0:sme.rows,!Array.isArray(dme))try{for(ume=__values$1(Object.keys(sme)),fme=ume.next();!fme.done;fme=ume.next())if(pme=fme.value,sme.hasOwnProperty(pme)&&Array.isArray(sme[pme])){dme=sme[pme];break}}catch(gme){hme={error:gme}}finally{try{fme&&!fme.done&&(bme=ume.return)&&bme.call(ume)}finally{if(hme)throw hme.error}}return Array.isArray(dme)?(Object.keys(dme[0]).forEach(function(gme){dme[0][gme],cme.push({label:gme,type:"text",name:gme})}),nme.formStore.setValues({columns:cme}),nme.formStore.setValues({filterSettingSource:cme.map(function(gme){return gme.name})})):toast.warning(i18n("522cddc343d72db3db80cf3d71f99210")),[2]}})})}},{name:"__features",label:i18n("07b59fd09f6007bac246d9a73b793a49"),type:"checkboxes",joinValues:!1,extractValue:!0,itemClassName:"max-w-lg",options:[{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),value:"create"},{label:i18n("bee912d79eefb7335988c4997aa9138d"),value:"filter"},{label:i18n("7fb62b30119c3797a843a48368463314"),value:"bulkDelete"},{label:i18n("0f61da949d2b45534967e197cc2eee29"),value:"bulkUpdate"},{label:i18n("aa85b3cd6aa4cdfd45bfe5a96678ad2f"),value:"update"},{label:i18n("653eb2792d3126a60caa6982f89a906b"),value:"view"},{label:i18n("8a4d6dfbcd8072555b5951091f171000"),value:"delete"}]},{type:"group",body:[{columnRatio:10,type:"checkboxes",label:i18n("f4b368051b455e386a314688c7c75c1f"),name:"filterEnabledList",joinValues:!1,source:"${filterSettingSource}"},{columnRatio:2,type:"input-number",label:i18n("23c7ea8ee9519459598b2de65fe2a2eb"),value:3,name:"__filterColumnCount"}],visibleOn:"${__features && CONTAINS(__features, 'filter')}"},{name:"columns",type:"input-table",label:!1,addable:!0,removable:!0,needConfirm:!1,columns:[{type:tme?"input-text-i18n":"input-text",name:"label",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")},{type:"input-text",name:"name",label:i18n("41a344642681efaaa418c228ba7fb45c")},{type:"select",name:"type",label:i18n("226b0912184333c81babf2f1894ec0c1"),value:"text",options:[{value:"text",label:i18n("ffb01e5bcf4c00447f5150d3cba81371")},{value:"tpl",label:i18n("59cf15fe6b8d659c9bd2f86143534a06")},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0")},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"progress",label:i18n("c7bff79d059a0b7ff9b02441959d8be2")},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b")},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41")},{value:"operation",label:i18n("8abc564260a1564521e0c3a1d5419b4a")}]}]}],pipeIn:function(ame){var nme,rme,ime,ome,lme,sme=[];ame.filter&&sme.push("filter");var cme=[];ame.mode==="cards"&&Array.isArray((nme=ame.card)===null||nme===void 0?void 0:nme.body)?cme=Array.isArray(ame.card.actions)?ame.card.actions.concat():[]:ame.mode==="list"&&Array.isArray((rme=ame.listItem)===null||rme===void 0?void 0:rme.body)?cme=Array.isArray(ame.listItem.actions)?ame.listItem.actions.concat():[]:Array.isArray(ame.columns)&&(cme=((ome=(ime=ame.columns.find(function(ume){return(ume==null?void 0:ume.type)==="operation"}))===null||ime===void 0?void 0:ime.buttons)===null||ome===void 0?void 0:ome.concat())||[]);var dme=["update","view","delete"];return cme.forEach(function(ume){var fme,pme;dme.includes(((fme=ume.editorSetting)===null||fme===void 0?void 0:fme.behavior)||"")&&sme.push((pme=ume.editorSetting)===null||pme===void 0?void 0:pme.behavior)}),Array.isArray(ame.bulkActions)&&ame.bulkActions.forEach(function(ume){var fme,pme;!((fme=ume.editorSetting)===null||fme===void 0)&&fme.behavior&&sme.push((pme=ume.editorSetting)===null||pme===void 0?void 0:pme.behavior)}),Array.isArray(ame.headerToolbar)&&ame.headerToolbar.some(function(ume){var fme;return((fme=ume.editorSetting)===null||fme===void 0?void 0:fme.behavior)==="create"})&&sme.push("create"),__assign$3(__assign$3(__assign$3({},ame),ame.mode!=="table"?{columns:ame.columns||$P.transformByMode({from:ame.mode,to:"table",schema:ame})}:{}),{__filterColumnCount:((lme=ame==null?void 0:ame.filter)===null||lme===void 0?void 0:lme.columnCount)||3,__features:sme,__LastFeatures:__spreadArray([],__read$3(sme),!1)})},pipeOut:function(ame){var nme=cloneDeep$1(ame);nme.api=typeof nme.api=="string"?normalizeApi(nme.api):nme.api;var rme=nme.__features,ime=nme.__LastFeatures,ome=rme.filter(function(hme){return!ime.includes(hme)}),lme=ime.filter(function(hme){return!rme.includes(hme)}),sme=[],cme=["update","view","delete"];nme.bulkActions?nme.bulkActions=nme.bulkActions.filter(function(hme){var bme;return!lme.includes((bme=hme.editorSetting)===null||bme===void 0?void 0:bme.behavior)}):nme.bulkActions=[],lme.includes("filter")&&nme.filter&&delete nme.filter,lme.includes("create")&&Array.isArray(nme.headerToolbar)&&(nme.headerToolbar=nme.headerToolbar.filter(function(hme){var bme;return((bme=hme.editorSetting)===null||bme===void 0?void 0:bme.behavior)!=="create"})),ome.length&&ome.forEach(function(hme){var bme,mme,vme,gme;if(cme.includes(hme)){var yme=void 0;hme==="update"?(yme=cloneDeep$1($P.btnSchemas.update),yme.dialog.body.body=ame.columns.filter(function(Cme){var Sme=Cme.type;return Sme!=="progress"&&Sme!=="operation"}).map(function(Cme){var Sme=Cme.type,Eme=__rest$14(Cme,["type"]);return __assign$3(__assign$3({},Eme),{type:viewTypeToEditType(Sme)})})):hme==="view"?(yme=cloneDeep$1($P.btnSchemas.view),yme.dialog.body.body=ame.columns.map(function(Cme){Cme.type;var Sme=__rest$14(Cme,["type"]);return __assign$3(__assign$3({},Sme),{type:"static"})})):hme==="delete"&&(yme=cloneDeep$1($P.btnSchemas.delete),yme.api=!((mme=(bme=nme.api)===null||bme===void 0?void 0:bme.method)===null||mme===void 0)&&mme.match(/^(post|delete)$/i)?nme.api:__assign$3(__assign$3({},nme.api),{method:"post"})),yme&&sme.push(yme)}else{if(hme==="bulkUpdate"&&$P.addItem(nme.bulkActions,cloneDeep$1($P.btnSchemas.bulkUpdate)),hme==="bulkDelete"&&$P.addItem(nme.bulkActions,cloneDeep$1($P.btnSchemas.bulkDelete)),hme==="create"){var _me=$P.btnSchemas.create;_me.dialog.body={type:"form",api:!((gme=(vme=nme.api)===null||vme===void 0?void 0:vme.method)===null||gme===void 0)&&gme.match(/^(post|put)$/i)?nme.api:__assign$3(__assign$3({},nme.api),{method:"post"}),body:nme.columns.filter(function(Cme){var Sme=Cme.type;return Sme!=="progress"&&Sme!=="operation"}).map(function(Cme){var Sme=Cme.type;return{type:viewTypeToEditType(Sme),name:Cme.name,label:Cme.label}})},nme.headerToolbar=[_me,"bulkActions"]}var $me=Object.keys(nme.filter||{});hme==="filter"&&!$me.length&&nme.filterEnabledList&&(nme.filter={title:i18n("cf12e55021998a8328201800ec356773")},nme.filter.columnCount=ame.__filterColumnCount,nme.filter.mode="horizontal",nme.filter.body=nme.filterEnabledList.map(function(Cme){return{type:"input-text",label:Cme.label,name:Cme.value}}))}});var dme=findLastIndex$1(ame.columns||[],function(hme){return hme.type==="operation"});if(dme===-1)sme.length&&nme.columns.push({type:"operation",label:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:sme});else{var ume=nme.columns[dme];ume.buttons=(ume.buttons||[]).filter(function(hme){var bme;return!lme.includes((bme=hme.editorSetting)===null||bme===void 0?void 0:bme.behavior)}).concat(sme)}nme.card;var fme=nme.columns;nme.listItem;var pme=__rest$14(nme,["card","columns","listItem"]);return __assign$3(__assign$3({},pme),nme.mode==="cards"?{card:$P.transformByMode({from:"table",to:"cards",schema:nme})}:nme.mode==="list"?{listItem:$P.transformByMode({from:"table",to:"list",schema:nme})}:fme?{columns:fme}:{})},canRebuild:!0}},enumerable:!1,configurable:!0}),eme.prototype.addItem=function($P,tme){var ame=$P.find(function(nme){return nme.label===tme.label});ame||$P.push(tme)},eme.prototype.handleBulkActionEdit=function($P,tme){var ame=this.manager.store,nme=ame.getSchema($P),rme=nme==null?void 0:nme.bulkActions[tme];rme&&rme.$$id&&ame.setActiveId(rme.$$id)},eme.prototype.handleItemActionEdit=function($P,tme){var ame=this.manager.store,nme=ame.getSchema($P),rme=nme==null?void 0:nme.itemActions[tme];rme&&rme.$$id&&ame.setActiveId(rme.$$id)},eme.prototype.buildSubRenderers=function($P,tme){var ame=this;if(ame.name&&ame.description)return{name:ame.name,icon:ame.icon,pluginIcon:ame.pluginIcon,description:ame.description,previewSchema:ame.previewSchema,tags:ame.tags,docLink:ame.docLink,type:ame.type,scaffold:ame.scaffold,disabledRendererPlugin:ame.disabledRendererPlugin,isBaseComponent:ame.isBaseComponent,scaffoldForm:this.scaffoldForm,rendererName:ame.rendererName}},eme.prototype.getRendererInfo=function($P){var tme=x_.prototype.getRendererInfo.call(this,$P);return tme&&(tme.scaffoldForm=this.scaffoldForm),tme},eme.prototype.renderEditableComponents=function($P){var tme=$P.render,ame=$P.bulkActions,nme=$P.itemActions,rme=[];return Array.isArray(ame)&&ame.length&&rme.push(React__default.createElement("div",{key:"bulkActions",className:"ae-EditableRender"},React__default.createElement("div",{className:"ae-EditableRender-title"},i18n("7f7c624a843b0d539a4ea59a696702f9")),React__default.createElement("div",{className:"ae-EditableRender-body"},ame.map(function(ime){return tme("bulk-action",__assign$3({type:"button",size:"sm"},ime),{key:ime.$$id})})))),Array.isArray(nme)&&nme.length&&rme.push(React__default.createElement("div",{key:"itemActions",className:"ae-EditableRender"},React__default.createElement("div",{className:"ae-EditableRender-title"},i18n("f13a0697d58d975d14eb3f3c72c2cbf2")),React__default.createElement("div",{className:"ae-EditableRender-body"},nme.map(function(ime){return tme("bulk-action",__assign$3({type:"button",size:"sm"},ime),{key:ime.$$id})})))),rme.length?React__default.createElement("div",{className:"ae-EditableRenderers"},React__default.createElement("div",{className:"ae-EditableRenderers-tip"},i18n("5db6b2160b9169b9d89de247d14ab740")),rme):null},eme.prototype.renderRenderer=function($P){var tme=$P.$$editor,ame=$P.style,nme=__rest$14($P,["$$editor","style"]),rme=tme.renderer;return React__default.createElement("div",{className:"ae-CRUDEditor",style:ame},this.renderEditableComponents($P),React__default.createElement(rme.component,__assign$3({$$editor:tme},nme)))},eme.prototype.filterProps=function($P){return $P.pickerMode&&($P.options=$P.data.options),$P},eme.prototype.afterUpdate=function($P){var tme=this,ame,nme=$P.context;nme.info.plugin===this&&(!((ame=nme.diff)===null||ame===void 0)&&ame.some(function(rme){var ime;return((ime=rme.path)===null||ime===void 0?void 0:ime.join("."))==="mode"}))&&setTimeout(function(){tme.manager.buildPanels(),tme.manager.buildToolbars()},20)},eme.prototype.buildDataSchemas=function($P,tme,ame,nme){var rme,ime,ome,lme,sme,cme,dme,ume,fme;return __awaiter(this,void 0,void 0,function(){var pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme;return __generator(this,function(Eme){switch(Eme.label){case 0:return pme=$P.children.find(function(xme){return!!~["table","table2","cards","list"].indexOf(xme.type)}),!((ime=(rme=pme==null?void 0:pme.info)===null||rme===void 0?void 0:rme.plugin)===null||ime===void 0)&&ime.buildDataSchemas?[4,(lme=(ome=pme.info.plugin).buildDataSchemas)===null||lme===void 0?void 0:lme.call(ome,pme,void 0,ame,$P)]:[2];case 1:return hme=Eme.sent(),bme=__assign$3(__assign$3({},hme),hme!=null&&hme.$id?{}:{$id:"".concat(pme.id,"-").concat(pme.type)}),pme.type==="table"&&(mme={},vme=pme.children.find(function(xme){return xme.isRegion&&xme.region==="columns"}),gme=(sme=bme.properties.rows)===null||sme===void 0?void 0:sme.items,ame&&(yme=someTree(vme==null?void 0:vme.children,function(xme){return xme.id===ame.id}),_me=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),$me=(fme=(ume=(dme=(cme=_me.getSchemaById("crudFetchInitedData"))===null||cme===void 0?void 0:cme.properties)===null||dme===void 0?void 0:dme.items)===null||ume===void 0?void 0:ume.items)===null||fme===void 0?void 0:fme.properties,Cme=__assign$3(__assign$3({},$me),gme==null?void 0:gme.properties),Object.keys(Cme).map(function(xme){mme[xme]=__assign$3({},Cme[xme])}),yme&&(Sme=this.manager.dataSchema.getScope("".concat(pme.id,"-").concat(pme.type,"-currentRow")),Sme&&(Sme==null||Sme.setSchemas([{$id:"".concat(pme.id,"-").concat(pme.type,"-currentRow"),type:"object",properties:mme}]),Sme.tag="当前行记录 : ".concat($P.type)))),bme={$id:bme.$id,type:bme.type,properties:{items:bme.properties.rows,selectedItems:__assign$3(__assign$3({},bme.properties.selectedItems),{items:__assign$3(__assign$3({},bme.properties.selectedItems.items),{properties:mme})}),unSelectedItems:__assign$3(__assign$3({},bme.properties.unSelectedItems),{items:__assign$3(__assign$3({},bme.properties.unSelectedItems.items),{properties:mme})}),count:{type:"number",title:i18n("31769d6063c5ab0cfee842b395916fd4")},page:{type:"number",title:i18n("9a4fe969f1066e197fd2369a44d879ac")}}}),[2,bme]}})})},eme.prototype.rendererBeforeDispatchEvent=function($P,tme,ame){if(tme==="fetchInited"){var nme=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),rme=__assign$3({$id:"crudFetchInitedData",type:"object"},jsonToJsonSchema(ame.responseData,function(ime,ome){return ime==="array"&&ome==="items"?i18n("77fdd35933c099cdcb64b71f3fbe7a6c"):ime==="number"&&ome==="count"?i18n("31769d6063c5ab0cfee842b395916fd4"):ome}));nme==null||nme.removeSchema(rme.$id),nme==null||nme.addSchema(rme)}},eme.prototype.transformByMode=function($P){var tme,ame,nme=$P.from,rme=$P.to,ime=$P.schema,ome=[],lme=[];if(!nme||nme==="table")(ime.columns||[]).forEach(function(cme){if(isPlainObject$b(cme))cme.type==="operation"?lme.push.apply(lme,__spreadArray([],__read$3((cme==null?void 0:cme.buttons)||[]),!1)):ome.push(cme);else return});else{var sme=nme==="cards"?"card":"listItem";ome.push.apply(ome,__spreadArray([],__read$3(((tme=ime==null?void 0:ime[sme])===null||tme===void 0?void 0:tme.body)||[]),!1)),lme.push.apply(lme,__spreadArray([],__read$3(((ame=ime==null?void 0:ime[sme])===null||ame===void 0?void 0:ame.actions)||[]),!1))}return ome.length||ome.push.apply(ome,[{type:"text",name:ime.labelField||"label",label:"label"},{type:"text",name:ime.valueField||"value",label:"value"}]),rme==="table"?ome.concat({type:"operation",label:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:lme}):rme==="cards"?{type:"card",header:{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),subTitle:i18n("72cf373be86a38b29f6d2f15900b0da1")},body:ome,actions:lme}:{body:ome,actions:lme}},eme.id="CRUDPlugin",eme}(BasePlugin);registerEditorPlugin(CRUDPlugin);var ToolsConfig={groupName:"tools",options:[{label:i18n("a4313469fd7361486fe47076629c76ac"),value:"Insert",align:"left",icon:"fa fa-layer-group",order:10},{label:i18n("e73cefac9d030927da1618c7b15c98c9"),value:"BulkEdit",align:"left",icon:"fa fa-layer-group",order:20},{label:i18n("7fb62b30119c3797a843a48368463314"),value:"BulkDelete",align:"left",icon:"fa fa-layer-group",order:30}]},FiltersConfig={groupName:"filters",options:[{label:i18n("6ff4bf3d567e977aa4c90c27dff1e6db"),value:"FuzzyQuery",icon:"fa fa-search",order:10},{label:i18n("c26996a6506adf397f0668d376d0b40b"),value:"SimpleQuery",icon:"fa fa-search",order:20},{label:i18n("9c4666fd08c2738eb9611a3721cb5f0f"),value:"AdvancedQuery",icon:"fa fa-search",order:30}]},OperatorsConfig={groupName:"operators",options:[{label:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),value:"View",icon:"fa fa-database",order:10},{label:i18n("e22b59b6bda1cf9a58f8979fd0a0b43c"),value:"Edit",icon:"fa fa-database",order:20},{label:i18n("a790208cafd5c95a18dd9a168319ecf8"),value:"Delete",icon:"fa fa-database",order:30}]},DefaultMaxDisplayRows=5,isAuto=function(x_){return!!(x_&&isString$8(x_)&&/^((a)|(au)|(aut)|(auto))$/.test(x_))},resolveArrayDatasource=function(x_,eme){var $P=x_.data,tme=x_.value,ame=x_.source;return eme===void 0&&(eme="$items"),Array.isArray(tme)?tme:resolveVariableAndFilter(typeof ame=="string"?ame:eme,$P,"| raw")},schemaToArray=function(x_){return x_&&Array.isArray(x_)?x_:[x_]},schemaArrayFormat=function(x_){return x_&&Array.isArray(x_)&&x_.length===1?x_[0]:x_},resolveOptionType=function(x_){var eme;x_===void 0&&(x_={});var $P=x_.options,tme=x_.valueField;if(!$P)return"string";var ame=$P[0];typeof ame=="object"&&(ame=findTree($P,function(rme){return rme[tme||"value"]!==void 0}));var nme=(eme=ame==null?void 0:ame[tme||"value"])!==null&&eme!==void 0?eme:ame;return nme!==void 0?typeof nme:"string"},resolveOptionEventDataSchame=function(x_,eme){var $P,tme,ame,nme,rme,ime,ome,lme=x_.dataSchema.current.schemas,sme=x_.store.getNodeById(x_.store.activeId),cme=lme.find(function(fme){var pme;return(pme=fme.properties)===null||pme===void 0?void 0:pme[sme.schema.name]}),dme=($P={},$P[((tme=sme.schema)===null||tme===void 0?void 0:tme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},$P[((ame=sme.schema)===null||ame===void 0?void 0:ame.valueField)||"value"]={type:resolveOptionType((nme=sme.schema)===null||nme===void 0?void 0:nme.options),title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},$P),ume=eme??((rme=sme.schema)===null||rme===void 0?void 0:rme.multiple);return{value:__assign$3(__assign$3({type:"string"},(ome=(ime=cme==null?void 0:cme.properties)===null||ime===void 0?void 0:ime[sme.schema.name])!==null&&ome!==void 0?ome:{}),{title:i18n("e48d65cda774019d9a6677354bc781f2")}),selectedItems:ume?{type:"array",title:i18n("029e280e119b028bffc51424d909c07d"),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:dme}}:{type:"object",title:i18n("029e280e119b028bffc51424d909c07d"),properties:dme},items:{type:"array",title:i18n("b2a18e08b0b0e0fd7e80554b89244aa0"),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:dme}},itemSchema:dme}},resolveInputTableEventDataSchame=function(x_,eme){var $P,tme,ame=x_.dataSchema.current.schemas,nme=x_.store.getNodeById(x_.store.activeId),rme=ame.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[nme.schema.name]}),ime=($P=rme==null?void 0:rme.properties)===null||$P===void 0?void 0:$P[nme.schema.name],ome=eme??((tme=nme.schema)===null||tme===void 0?void 0:tme.multiple);return{value:ime??{},item:ome?ime.items:ime??{}}},OPTION_EDIT_EVENTS=[{eventName:"addConfirm",eventLabel:"确认新增",description:"新增提交时触发",dataSchema:function(x_){var eme=resolveOptionEventDataSchame(x_),$P=eme.value,tme=eme.items,ame=eme.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("75cc2a992ea150d3a6c68ac4bc486637"),properties:ame},value:$P,items:tme}}}}]}},{eventName:"editConfirm",eventLabel:i18n("4271f29faca65d7840ad6bb2c4a7b8c6"),description:"编辑提交时触发",dataSchema:function(x_){var eme=resolveOptionEventDataSchame(x_),$P=eme.value,tme=eme.items,ame=eme.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("a13b85bddbcdab63ef2b2d98dd46afe9"),properties:ame},value:$P,items:tme}}}}]}},{eventName:"deleteConfirm",eventLabel:"确认删除",description:"删除提交时触发",dataSchema:function(x_){var eme=resolveOptionEventDataSchame(x_),$P=eme.value,tme=eme.items,ame=eme.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("8aa4d6aedd7957ebc6b87fec655695ef"),properties:ame},value:$P,items:tme}}}}]}}],OPTION_EDIT_EVENTS_OLD=function(x_){var eme,$P,tme,ame=[];return!((eme=x_==null?void 0:x_.onEvent)===null||eme===void 0)&&eme.add&&ame.push({eventName:"add",eventLabel:"确认新增(不推荐)",description:"新增提交时触发",dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"object",title:i18n("de2392357fc78e9e0f0946bcc0af87b6")},items:{type:"array",title:i18n("cf965b232227a0e9d14f4f7e31b01c62")}}}}}]}),!(($P=x_==null?void 0:x_.onEvent)===null||$P===void 0)&&$P.edit&&ame.push({eventName:"edit",eventLabel:"确认编辑(不推荐)",description:"编辑提交时触发",dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"object",title:i18n("e385c7c6f726dc2641866d9050777efb")},items:{type:"array",title:i18n("cf965b232227a0e9d14f4f7e31b01c62")}}}}}]}),!((tme=x_==null?void 0:x_.onEvent)===null||tme===void 0)&&tme.delete&&ame.push({eventName:"delete",eventLabel:"确认删除(不推荐)",description:"删除提交时触发",dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"object",title:i18n("58cbd355c5bdb80653a8ae3d3b316c37")},items:{type:"array",title:i18n("cf965b232227a0e9d14f4f7e31b01c62")}}}}}]}),ame},TREE_BASE_EVENTS=function(x_){var eme,$P=__spreadArray(__spreadArray(__spreadArray([{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme),nme=ame.value,rme=ame.items,ime=ame.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,item:{type:"object",title:i18n("029e280e119b028bffc51424d909c07d"),properties:ime},items:rme,selectedItems:{type:"array",title:"选中项集合",items:{type:"object"}}}}}}]}},{eventName:"itemClick",eventLabel:"节点点击",description:"点击节点触发",dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],__read$3(OPTION_EDIT_EVENTS),!1),[{eventName:"deferLoadFinished",eventLabel:i18n("58995b490ba67e5d29dd87f422b14861"),description:i18n("ec2fb7a5db150690b14b63f83d9d4b30"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme),nme=ame.value,rme=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{result:{type:"object",title:"deferApi 懒加载远程请求成功后返回的结果"},value:nme,items:rme}}}}]}}],!1),__read$3(OPTION_EDIT_EVENTS_OLD(x_)),!1);return!((eme=x_==null?void 0:x_.onEvent)===null||eme===void 0)&&eme.loadFinished&&$P.push({eventName:"loadFinished",eventLabel:"懒加载完成(不推荐)",description:i18n("ec2fb7a5db150690b14b63f83d9d4b30"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"object",title:i18n("e6b94af26512b3f7ea8eb1433d4a2aaa")}}}}}]}),$P};function escapeFormula(x_,eme){return eme===void 0&&(eme=["tpl"]),JSONValueMap(x_,function($P,tme){return eme.includes(String(tme))&&/(^|[^\\])\$\{.+\}/.test($P)?$P.replace(/\${/g," \\${"):$P})}function _isModelComp(x_){var eme,$P;if(!x_)return!1;if(x_.hasOwnProperty("$$m")&&(((eme=x_.$$m)===null||eme===void 0?void 0:eme.type)==="list"||(($P=x_.$$m)===null||$P===void 0?void 0:$P.type)==="form"))return!0;var tme=["source","api","initApi"].some(function(ame){var nme;return x_!=null&&x_[ame]&&typeof x_[ame]=="string"?x_==null?void 0:x_[ame].startsWith("model://"):!((nme=x_==null?void 0:x_[ame])===null||nme===void 0)&&nme.url&&typeof x_[ame].url=="string"?x_[ame].url.startsWith("model://")&&!x_[ame].hasOwnProperty("strategy"):!1});return tme}var getOwnValue=function(x_,eme){if(x_&&x_.hasOwnProperty(eme))return x_[eme]},Table2RenderereEvent=[{eventName:"selectedChange",eventLabel:i18n("257f5a3886d87d2255206f86b880d07e"),description:i18n("6130b1f75d624b2f73f5d923492e92f7"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{selectedItems:{type:"array",title:i18n("94935dfa6c9b908515a593956ee7d07c")},unSelectedItems:{type:"array",title:i18n("f10b94a4ac77878be53fad599a761928")}}}}}]},{eventName:"columnSort",eventLabel:i18n("f3d21138c8ecf5683503c4f814cc7199"),description:i18n("d84464cfb2a5828a200fe9c28a323122"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{orderBy:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},orderDir:{type:"string",title:i18n("c35c1a13309c6f9da9837857517e65fc")}}}}}]},{eventName:"columnFilter",eventLabel:i18n("3d0b957a99d0c366612c01913e17a0c7"),description:i18n("b35963687361af98e6acdc004e87fc3c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{filterName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},filterValue:{type:"string",title:i18n("e125986c2ba6783c4297ffe5405cc8bc")}}}}}]},{eventName:"columnSearch",eventLabel:i18n("93a5a0253f11e3a2e58f4e87a52fb094"),description:i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{searchName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},searchValue:{type:"object",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"orderChange",eventLabel:i18n("85ddd38957256b6e9026f42ed570bc35"),description:i18n("d7a66def82af88cd5d408e38feb8a65a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{movedItems:{type:"array",title:i18n("64ef585f778c9d1b010e86b032398ab6")}}}}}]},{eventName:"columnToggled",eventLabel:i18n("ecfebbc91e2c18a512aeb11b7da15193"),description:i18n("c94f45773a42dc386b9c9dcdc6fa542b"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{columns:{type:"array",title:i18n("db9df54392e408520ca12c6a56113b5a")}}}}}]},{eventName:"rowClick",eventLabel:i18n("76e47871d654c3b0b0e301c0a076e55a"),description:i18n("cc13521eab2c7423b3fb857772405cc3"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")}}}}}]},{eventName:"rowDbClick",eventLabel:i18n("1385df54facf9564658f05d0e9e2c3c7"),description:i18n("1c00d9cceec92084b116a382f2714ebb"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")}}}}}]},{eventName:"rowMouseEnter",eventLabel:i18n("5db079b140feffa84c84d1b51d824dea"),description:i18n("90a5608bcd85a3cfcfbb5263a229915c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")}}}}}]},{eventName:"rowMouseLeave",eventLabel:i18n("e8bf039de5dc6751c4045f55930e0c83"),description:i18n("f1ca0d305f3251a81f361a2dc8e11fff"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")}}}}}]}],Table2RendererAction=[{actionType:"select",actionLabel:i18n("8eb3c8b16106e5487cd1fa3b8a1342ce"),description:i18n("908cc16fe4f7972450167e26276ac726"),schema:getArgsWrapper([getSchemaTpl("formulaControl",{name:"selected",label:i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),variables:"${variables}",size:"lg",mode:"horizontal"})])},__assign$3({actionType:"selectAll",actionLabel:i18n("366a3c07289bd6efb7c2a182f7a12772"),description:i18n("e97c09cd119b64ae0a8dfd42a1d449cb")},getActionCommonProps("selectAll")),{actionType:"clearAll",actionLabel:i18n("c3e8652924c258e121eed16414d3a9e5"),description:i18n("7619ec29c0a854dd49e0a7a47bf1a127")}],Table2Plugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.disabledRendererPlugin=!0,tme.name=i18n("b339aa87104709397ba68e7ebbc6e5ba"),tme.panelTitle=i18n("b339aa87104709397ba68e7ebbc6e5ba"),tme.icon="fa fa-table",tme.panelIcon="fa fa-table",tme.pluginIcon="table-plugin",tme.rendererName="table2",tme.isBaseComponent=!0,tme.panelJustify=!0,tme.$schema="/schemas/TableSchema2.json",tme.description=i18n("ea2b32f5d78d2305b9b7bc21e056a009"),tme.docLink="/amis/zh-CN/components/table2",tme.scaffold={type:"table2",columns:[{title:i18n("20aadc3f9b7edb564dc58898898e0dc8"),name:"a"}],source:"$item"},tme.regions=[{key:"columns",label:i18n("1f9794dd5634220ed0a498c666cf46fe"),renderMethod:"renderTable",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7"),dndMode:"position-h"}],tme.previewSchema={type:"table2",className:"text-left m-b-none",items:[{a:1,b:2,c:9},{a:3,b:4,c:8},{a:5,b:6,c:7}],columns:[{title:"A",name:"a"},{title:"B",name:"b"}]},tme.scaffoldForm={title:i18n("6b93fcfc1a5795189c6072fa6e86d4f6"),canRebuild:!0,body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:i18n("0c14e431f1b5ecd163f8fa010a0654c7"),draggable:!0,items:[{type:"input-text",name:"title",placeholder:i18n("32c65d8d7431e76029678ec7bb73a5ab")},{type:"input-text",name:"name",placeholder:i18n("41a344642681efaaa418c228ba7fb45c")},{type:"select",name:"type",placeholder:i18n("226b0912184333c81babf2f1894ec0c1"),value:"text",options:[{value:"text",label:i18n("ffb01e5bcf4c00447f5150d3cba81371")},{value:"tpl",label:i18n("59cf15fe6b8d659c9bd2f86143534a06")},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0")},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"progress",label:i18n("c7bff79d059a0b7ff9b02441959d8be2")},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b")},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41")},{value:"container",label:i18n("22c799040acdb2601b437ed5449de076")},{value:"operation",label:i18n("8abc564260a1564521e0c3a1d5419b4a")}]}]}]},tme.events=Table2RenderereEvent,tme.actions=Table2RendererAction,tme._dynamicControls={primaryField:function(ame){return getSchemaTpl("primaryField",{hiddenOn:'this.type && (this.type === "crud" || this.type === "crud2")'})},quickSaveApi:function(ame){return getSchemaTpl("apiControl",{name:"quickSaveApi",renderLabel:!1,label:{type:"tpl",tpl:i18n("33eaf97ecb3465754855e847f14d129c"),className:"flex items-end"}})},quickSaveItemApi:function(ame){return getSchemaTpl("apiControl",{name:"quickSaveItemApi",renderLabel:!1,label:{type:"tpl",tpl:i18n("ce7d31d64f2315e1d4cede288b9dfc60"),className:"flex items-end"}})},rowSelectionKeyField:function(ame){return{type:"input-text",name:"rowSelection.keyField",label:i18n("dad6519c7c75a23bee8ccb576e4609a2")}},expandableKeyField:function(ame){return{type:"input-text",name:"rowSelection.keyField",label:i18n("dad6519c7c75a23bee8ccb576e4609a2")}},draggable:function(ame){return getSchemaTpl("switch",{name:"draggable",label:i18n("5bdff9fd07d2a2430ac50e1559dbee27")})},itemDraggableOn:function(ame){return getSchemaTpl("formulaControl",{label:i18n("cba09997ca646e67544f880c80ab97cb"),name:"itemDraggableOn"})},saveOrderApi:function(ame){return getSchemaTpl("apiControl",{name:"saveOrderApi",renderLabel:!1,label:{type:"tpl",tpl:i18n("cbe89f133fda6e0d1bec31eaf6aa7853"),className:"flex items-end"}})},columnTogglable:function(ame){return!1}},tme.panelBodyCreator=function(ame){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme=tme.isCRUDContext(ame),pme=tme.dynamicControls;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formulaControl",{label:tipedLabel(i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),i18n("5b11953888d7c376458b397f222d4533")),hidden:fme,name:"source",pipeIn:defaultValue("${items}")}),fme?null:(nme=pme==null?void 0:pme.primaryField)===null||nme===void 0?void 0:nme.call(pme,ame),fme?null:(rme=pme==null?void 0:pme.quickSaveApi)===null||rme===void 0?void 0:rme.call(pme,ame),fme?null:(ime=pme==null?void 0:pme.quickSaveItemApi)===null||ime===void 0?void 0:ime.call(pme,ame),getSchemaTpl("switch",{name:"title",label:i18n("bd3e7a1b636e4477a4ea59922ed2cc1e"),pipeIn:function(hme){return!!hme},pipeOut:function(hme){return hme?{type:"container",body:[{type:"tpl",wrapperComponent:"",tpl:i18n("11d00f37d934b2464f3258952a398626"),inline:!1,style:{fontSize:14}}]}:null}}),getSchemaTpl("switch",{name:"showHeader",label:i18n("4e3cd1a7b193e2fd3458278d10c530e2"),value:!0,pipeIn:function(hme){return!!hme},pipeOut:function(hme){return!!hme}}),getSchemaTpl("switch",{visibleOn:"this.showHeader !== false",name:"sticky",label:i18n("023ff3530e48493e653eb48e958a4eb8"),pipeIn:defaultValue(!1)}),getSchemaTpl("switch",{name:"footer",label:i18n("dd9b85b2cd13ca724afd1f43567abdbf"),pipeIn:function(hme){return!!hme},pipeOut:function(hme){return hme?{type:"container",body:[{type:"tpl",tpl:i18n("c89b5fd3b706a17feb016d93c80e34b1"),wrapperComponent:"",inline:!1,style:{fontSize:14}}]}:null}}),getSchemaTpl("tablePlaceholder",{hidden:fme})].filter(Boolean)},{title:i18n("949a8b7bd2c10070a2fae16f9c66afbb"),body:[(ome=pme==null?void 0:pme.columnTogglable)===null||ome===void 0?void 0:ome.call(pme,ame),getSchemaTpl("switch",{name:"resizable",label:tipedLabel(i18n("ba4f461832cbdb7fbdb170fc9c1db647"),i18n("aa2bd9f54608c0c85d3ceecb707938c9")),pipeIn:function(hme){return!!hme},pipeOut:function(hme){return hme}}),fme?null:{type:"ae-Switch-More",mode:"normal",name:"columnsTogglable",hiddenOnDefault:!0,formType:"extend",label:tipedLabel(i18n("2816cea6c4887a53c417831deb5fbe00"),i18n("d3c5079f7e26b1a7374ff76341376de4")),pipeOut:function(hme){return hme&&hme.columnsTogglable?{columnsTogglable:{type:"column-toggler"}}:hme},form:{body:[{mode:"normal",type:"ae-columnControl"}]}}].filter(Boolean)},{title:i18n("ed85be57262e5a0c3116293e88278fef"),body:[{type:"ae-Switch-More",mode:"normal",name:"rowSelection",label:i18n("240145572215920ae06db1eeb85b29c0"),hiddenOnDefault:!0,formType:"extend",form:{body:[fme?null:(lme=pme==null?void 0:pme.rowSelectionKeyField)===null||lme===void 0?void 0:lme.call(pme,ame),fme?null:{name:"rowSelection.type",label:i18n("5e1872b4afc82fc5114b32aaf4477500"),type:"button-group-select",options:[{label:i18n("443f46c76ebe6ec4eb502f95c451e4b0"),value:"checkbox"},{label:i18n("9fd1b7cb41cfa3b83bdfd2a44381417f"),value:"radio"}],pipeIn:function(hme,bme){if(hme!=null&&typeof hme=="string")return hme;var mme=bme==null?void 0:bme.data;return(mme==null?void 0:mme.selectable)===!0?mme.multiple?"checkbox":"radio":"checkbox"}},getSchemaTpl("switch",{name:"rowSelection.fixed",label:i18n("9c5c1f96ba29b9c0a8915be950e91cb3")}),{type:"input-number",name:"rowSelection.columnWidth",label:i18n("5fd9a061aa8d25137801caf78d8d0f42"),min:0,pipeOut:function(hme){return hme||void 0}},{label:i18n("1f1ca9df5fa3648c718ad04649888943"),name:"rowSelection.rowClick",type:"button-group-select",value:!1,options:[{label:i18n("596171970b639a35dadde2aa930d666a"),value:!0},{label:i18n("454e60f5759903d7d3dba58e3f9bd590"),value:!1}]},getSchemaTpl("formulaControl",{name:"rowSelection.disableOn",label:i18n("388855093d17f3df43ff80242d7a1bed")}),{name:"rowSelection.selections",label:i18n("46705a530ba9721527a4202bae7091bd"),type:"checkboxes",joinValues:!1,inline:!1,itemClassName:"text-sm",options:[{label:i18n("107ce5ae5c46f0e63565c593eb09a312"),value:"all"},{label:i18n("f3993a00b12133950b96199dbf08fc43"),value:"invert"},{label:i18n("0cf1882623b2b50f0416030c980c3179"),value:"none"},{label:i18n("b5a34b813ffd5d7d776eb8ca56a1b45d"),value:"odd"},{label:i18n("0c2a525c7e183c05b46caa6b52a21b9f"),value:"even"}],pipeIn:function(hme){if(hme)return hme.map(function(bme){return{label:bme.text,value:bme.key}})},pipeOut:function(hme){if(hme)return hme.map(function(bme){return{key:bme.value,text:bme.label}})}}].filter(Boolean)}},getSchemaTpl("formulaControl",{label:i18n("df5a3392ee995cfaa13787b11a1e2652"),name:"itemCheckableOn"}),{type:"input-number",name:"maxKeepItemSelectionLength",label:i18n("76417db4eeb031b0bc15f4cf8178ae46")},{type:"ae-Switch-More",mode:"normal",name:"expandable",label:i18n("49b4aa407b91ac997e27314e30c03110"),hiddenOnDefault:!0,formType:"extend",form:{body:[(sme=pme==null?void 0:pme.expandableKeyField)===null||sme===void 0?void 0:sme.call(pme,ame),{type:"select",label:i18n("4d250d2754fbdc9cbd131bf48d445894"),name:"expandable.position",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("39a2cb79c6d9762783e20522ea86dcff"),value:"left"},{label:i18n("de2a774bf98944b8f0ec8755d5f59d64"),value:"right"},{label:i18n("dce5379cb978a8259ecfca8f08f00817"),value:"none"}]},getSchemaTpl("formulaControl",{name:"expandable.expandableOn",visibleOn:"this.expandable",label:i18n("ea7026a83bf0b63ecc31fd8e215766de")}),{name:"expandable",asFormItem:!0,label:!1,children:function(hme){var bme=hme.value,mme=hme.onBulkChange;hme.onChange;var vme=hme.name;hme.data,hme.form;var gme=__assign$3(__assign$3({},bme),bme&&bme.type?{}:{type:"container",body:[{type:"tpl",tpl:i18n("1a7bd457c08093cf2cf887403dc249d8"),inline:!1}]});return React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",onClick:function(){tme.manager.openSubEditor({title:i18n("9e9b4716c08d4f15d9d52e00281f4265"),value:gme,onChange:function(yme){var _me;mme((_me={},_me[vme]=yme,_me))},data:__assign$3({},tme.manager.store.ctx)})}},React__default.createElement("span",{className:"inline-flex items-center"},React__default.createElement(Icon$1,{icon:"edit",className:"mr-1 w-3"}),i18n("9e9b4716c08d4f15d9d52e00281f4265")))}}]}},{type:"input-text",label:tipedLabel(i18n("f09e007fa1c2e7eb9ec01f8481104d94"),i18n("1b4b8d809a7d253bb650d0f104d24ea2")),name:"childrenColumnName",pipeIn:defaultValue("children")},(cme=pme==null?void 0:pme.draggable)===null||cme===void 0?void 0:cme.call(pme,ame),(dme=pme==null?void 0:pme.itemDraggableOn)===null||dme===void 0?void 0:dme.call(pme,ame),(ume=pme==null?void 0:pme.saveOrderApi)===null||ume===void 0?void 0:ume.call(pme,ame),{name:"showBadge",label:i18n("f53160d07e516a3b0d38d61822944b03"),type:"ae-switch-more",mode:"normal",formType:"extend",bulk:!0,defaultData:{itemBadge:{mode:"dot"}},isChecked:function(hme){var bme=hme.data,mme=hme.name;return bme[mme]},form:{body:[{type:"ae-badge",label:!1,name:"itemBadge",contentsOnly:!0}]}}]},{title:i18n("e821ce185e41eac2ab846ef5cfde2363"),body:[getSchemaTpl("switch",{name:"keepItemSelectionOnPageChange",label:tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"),i18n("60011314ed92794f3d4f3e874c359279")),visibleOn:'!this.loadType || this.loadType !== "more"'}),{name:"maxKeepItemSelectionLength",type:"input-number",label:i18n("76417db4eeb031b0bc15f4cf8178ae46"),visibleOn:"this.keepItemSelectionOnPageChange"}]},{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("hidden",{label:i18n("dce5379cb978a8259ecfca8f08f00817")})]},fme?null:{title:i18n("4f54012c824bfcd8f9ca9ded82051d94"),body:[{type:"switch",label:tipedLabel(i18n("3566441483da64f6bb1dd44cfd6b0184"),i18n("fb677689a875ed3078e386ad88273e73")),name:"editorSetting.mock.enable",value:!0},{type:"input-number",label:tipedLabel(i18n("c0afd6005e68838e37e26dc7c34cf368"),i18n("af192f42759b02f6fd256776b12a238f")),name:"editorSetting.mock.maxDisplayRows",step:1,min:-1,resetValue:-1,value:DefaultMaxDisplayRows}]}].filter(Boolean))]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("switch",{name:"autoFillHeight",label:i18n("8952f4e24070a79741a505dc20bad8f0")}),{name:"scroll.y",label:i18n("a5baa4818b14f4680955aa34dd559d02"),type:"button-group-select",pipeIn:function(hme){return hme!=null},pipeOut:function(hme){return hme?"":null},options:[{label:i18n("4db804afe5c99f7ca4fe988ada35c77f"),value:!1},{label:i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),value:!0}]},{type:"amis-theme-select",name:"scroll.y",visibleOn:"this.scroll && this.scroll.y !== null",label:i18n("ee18dc475df8654cb13ad67dd84eec28")},{name:"scroll.x",label:tipedLabel(i18n("8bb5781dc5f2745e6356cdc5e6d76b16"),i18n("88a364068f684dc77aca5b6c006ef576")),type:"button-group-select",pipeIn:function(hme){return hme!=null},pipeOut:function(hme){return hme?"":null},options:[{label:i18n("4db804afe5c99f7ca4fe988ada35c77f"),value:!1},{label:i18n("1ef8fd21130d17cb7c1613eaed6ca1e4"),value:!0}]},{type:"amis-theme-select",name:"scroll.x",visibleOn:"this.scroll && this.scroll.x !== null",label:i18n("6e3d35b57c29b1b419569cc55b3a5d33")},{name:"indentSize",visibleOn:"this.childrenColumnName",type:"input-number",unitOptions:[{label:"px",value:"px"}],label:tipedLabel(i18n("dd7befc8e7c124f6f4ba9bbf3de9dc53"),i18n("eedd7279409d000114e27194f3c8a5ea"))},{name:"rowSelection.columnWidth",visibleOn:"this.rowSelection",type:"input-number",label:i18n("6bfd4423d8aebbf0cac7ba4d74f245bd"),description:i18n("21922c6479665dcba83106f8e9ffdf68")},{name:"expandable.columnWidth",visibleOn:"this.expandable",type:"input-number",label:i18n("31b7c58c2d9a170829b90314ff98b66a"),description:i18n("81ccf26d9622d139a13ba2a61bd9fea4")}]},{title:"表头",body:[getSchemaTpl("theme:colorPicker",{name:"themeCss.tableHeadClassname.background",needCustom:!0,needGradient:!0,needImage:!0,labelMode:"input",label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),editorValueToken:"--table-header-bg-color"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.tableHeadClassname.paddingAndMargin",hideMargin:!0,editorValueToken:"--table"}),getSchemaTpl("theme:border",{name:"themeCss.tableHeadClassname.border",label:i18n("961534b4ea37e4e88aada736b299d063"),editorValueToken:{rightBorderColor:"--Table-thead-borderColor",rightBorderWidth:"--Table-thead-borderWidth","*":"--table-header"}}),getSchemaTpl("theme:font",{name:"themeCss.tableHeadClassname.font",hasVertical:!1,textAlign:!1,editorValueToken:"--table-header"})]},getSchemaTpl("theme:base",{title:i18n("1ebd0cd417700f3f4a7ee5f64518fcd1"),classname:"tableBodyClassname",editorValueToken:"--table-body",hideShadow:!0,hideRadius:!0,hideBorder:!0,hidePaddingAndMargin:!0,state:["default","hover"],extra:[{type:"amis-theme-select",label:"行高",name:"themeCss.tableBodyClassname.height",editorValueToken:"--table-body-line-height",mode:"default"},getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.tableRowClassname.paddingAndMargin",hideMargin:!0,editorValueToken:"--table"}),getSchemaTpl("theme:border",{name:"themeCss.tableRowClassname.border",editorValueToken:{bottomBorderColor:"--Table-borderColor",bottomBorderWidth:"--Table-borderWidth","*":"--table"}}),getSchemaTpl("theme:font",{name:"themeCss.tableBodyClassname.font",editorValueToken:"--table-body"})]}),{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),body:[{type:"theme-cssCode",label:!1}]},getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{label:i18n("4bf8b7a0b3385fcd34a8e0cd355d7964"),name:"rowClassName"}),getSchemaTpl("formulaControl",{name:"rowClassNameExpr",label:i18n("68e9249db7bd12ab17994b1761b049f5")}),getSchemaTpl("formulaControl",{name:"expandable.expandedRowClassNameExpr",visibleOn:"this.expandable",label:i18n("ef0c5b6fa16497343eedb76171d61d68")})]})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])},tme.dsManager=new DSBuilderManager($P),tme}return eme.prototype.getRendererInfo=function($P){var tme,ame,nme,rme,ime,ome=this,lme=$P.schema,sme=$P.renderer,cme=["crud","crud2"].includes((ame=(tme=$P==null?void 0:$P.schema)===null||tme===void 0?void 0:tme.name)!==null&&ame!==void 0?ame:(ime=(rme=(nme=$P==null?void 0:$P.schema)===null||nme===void 0?void 0:nme.$$editor)===null||rme===void 0?void 0:rme.renderer)===null||ime===void 0?void 0:ime.name);return!lme.$$id&&cme&&sme.name==="table2"?__assign$3(__assign$3({},{id:lme.$$editor.id}),{name:ome.name,regions:ome.regions,patchContainers:ome.patchContainers,vRendererConfig:ome.vRendererConfig,wrapperProps:ome.wrapperProps,wrapperResolve:ome.wrapperResolve,filterProps:ome.filterProps,$schema:ome.$schema,renderRenderer:ome.renderRenderer}):x_.prototype.getRendererInfo.call(this,$P)},eme.prototype.filterProps=function($P,tme){var ame,nme=resolveArrayDatasource($P),rme=function(fme){return{type:"alert",level:"info",showIcon:!0,cellClassName:"p-none",style:{marginBottom:0,fontWeight:500,"text-align":"left"},colSpan:Array.isArray($P.columns)?$P.columns.length:1,body:fme}},ime=((ame=$P==null?void 0:$P.editorSetting)===null||ame===void 0?void 0:ame.mock)||{},ome=ime.enable,lme=ime.maxDisplayRows,sme=lme===void 0?DefaultMaxDisplayRows:lme,cme={enable:ome!==!1,maxDisplayRows:Number.isInteger(sme)?sme:DefaultMaxDisplayRows};if(!Array.isArray(nme)||!nme.length)if(cme!=null&&cme.enable){var dme={};Array.isArray($P.columns)&&$P.columns.forEach(function(fme){fme.name&&setVariable(dme,fme.name,mockValue(fme))}),$P.value=repeatArray(dme,sme<0?0:cme.maxDisplayRows).map(function(fme,pme){return __assign$3(__assign$3({},fme),{id:pme+1})});var ume=rme(i18n("a605077feb2a94f1f72627703ff48e39"));$P.footSummary&&Array.isArray($P.footSummary)?$P.footSummary=__spreadArray(__spreadArray([],__read$3($P.footSummary),!1),[ume],!1):$P.footSummary=[ume]}else $P.value=void 0;else if(nme.length>cme.maxDisplayRows&&cme.maxDisplayRows!==-1){$P.value=nme.slice(0,cme.maxDisplayRows);var ume=rme("当前表格仅展示".concat(cme.maxDisplayRows,"条数据用于效果预览，点击顶部「预览」查看真实场景数据，组件面板Mock配置中可修改相关配置"));$P.footSummary&&Array.isArray($P.footSummary)?$P.footSummary=__spreadArray(__spreadArray([],__read$3($P.footSummary),!1),[ume],!1):$P.footSummary=[ume]}else $P.value=nme;return $P.expandable&&(typeof $P.expandable=="boolean"&&($P.expandable={}),$P.expandable.type||($P.expandable.type="container",$P.expandable.body=[{type:"tpl",tpl:i18n("1a7bd457c08093cf2cf887403dc249d8"),wrapperComponent:"",inline:!1}]),$P.expandable.keyField="id",$P.expandable.expandedRowKeys=[1]),$P.value&&(tme.state.value||tme.updateState({value:$P.value}),delete $P.value),$P},eme.prototype.beforeInsert=function($P){var tme,ame,nme,rme,ime=$P.context;(ime.info.plugin===this||((tme=ime.node.sameIdChild)===null||tme===void 0?void 0:tme.info.plugin)===this)&&ime.region==="columns"&&(ime.data=__assign$3(__assign$3({},ime.data),{title:(rme=(ame=ime.data.label)!==null&&ame!==void 0?ame:(nme=ime.subRenderer)===null||nme===void 0?void 0:nme.name)!==null&&rme!==void 0?rme:i18n("bcee820bc20342a4d388a35ed32a35fe")}))},eme.prototype.buildDataSchemas=function($P,tme,ame,nme){var rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,$me,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme,xme;return __generator(this,function(Tme){switch(Tme.label){case 0:if(cme={$id:"tableRow",type:"object",properties:{}},dme=$P.children.find(function(Ome){return Ome.isRegion&&Ome.region==="columns"}),ume="".concat(nme==null?void 0:nme.id,"-").concat(nme==null?void 0:nme.type).concat(((rme=$P.parent)===null||rme===void 0?void 0:rme.type)==="cell"?"-currentRow":""),fme=!1,ame&&(fme=someTree(dme==null?void 0:dme.children,function(Ome){return Ome.id===ame.id}),fme&&($me="".concat($P.id,"-").concat($P.type,"-currentRow"),this.manager.dataSchema.getScope($me)&&this.manager.dataSchema.removeScope($me),this.manager.dataSchema.getScope(ume)&&this.manager.dataSchema.switchTo(ume),this.manager.dataSchema.addScope([],$me),this.manager.dataSchema.current.tag=i18n("bf2a4fd8ecd654982e2d466f10f54d3f"),this.manager.dataSchema.current.group=i18n("813a5158d9f7171d20e7df340c5b48f9"))),!dme)return[3,10];Tme.label=1;case 1:Tme.trys.push([1,8,9,10]),pme=__values$1(dme.children),hme=pme.next(),Tme.label=2;case 2:return hme.done?[3,7]:(bme=hme.value,mme=bme.schema,mme!=null&&mme.name?!((ome=(ime=bme.info)===null||ime===void 0?void 0:ime.plugin)===null||ome===void 0)&&ome.buildDataSchemas?[4,(sme=(lme=bme.info.plugin).buildDataSchemas)===null||sme===void 0?void 0:sme.call(lme,bme,tme)]:[3,4]:[3,6]);case 3:return gme=Tme.sent(),[3,5];case 4:gme={type:"string",title:mme.label||mme.title},Tme.label=5;case 5:vme=gme,cme.properties[mme.name]=__assign$3(__assign$3({},vme),vme!=null&&vme.$id?{}:{$id:"".concat(bme.id,"-").concat(bme.type)}),Tme.label=6;case 6:return hme=pme.next(),[3,2];case 7:return[3,10];case 8:return yme=Tme.sent(),Eme={error:yme},[3,10];case 9:try{hme&&!hme.done&&(xme=pme.return)&&xme.call(pme)}finally{if(Eme)throw Eme.error}return[7];case 10:return ame&&(_me=someTree(dme==null?void 0:dme.children,function(Ome){return Ome.id===ame.id}),_me&&($me="".concat($P.id,"-").concat($P.type,"-currentRow"),Cme=this.manager.dataSchema.getScope($me),Cme==null||Cme.addSchema(cme))),Sme={$id:"".concat($P.id,"-").concat($P.type),type:"object",properties:{rows:{type:"array",title:i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),items:cme}}},(tme==null?void 0:tme.region)==="columns"&&(Sme.properties=__assign$3(__assign$3({},cme.properties),Sme.properties)),[2,Sme]}})})},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme;return __awaiter(this,void 0,void 0,function(){var mme;return __generator(this,function(vme){if(!((rme=(nme=tme==null?void 0:tme.info)===null||nme===void 0?void 0:nme.renderer)===null||rme===void 0)&&rme.name&&["table-cell","cell-field"].includes(tme.info.renderer.name)){if(((ime=$P.parent)===null||ime===void 0?void 0:ime.type)==="crud2"&&(!((lme=(ome=$P.parent)===null||ome===void 0?void 0:ome.path)===null||lme===void 0)&&lme.endsWith("crud2")))return[2,(cme=(sme=$P.parent.info.plugin).getAvailableContextFields)===null||cme===void 0?void 0:cme.call(sme,$P.parent,tme,ame)];if(((dme=$P.parent)===null||dme===void 0?void 0:dme.type)==="service"&&(!((pme=(fme=(ume=$P.parent)===null||ume===void 0?void 0:ume.parent)===null||fme===void 0?void 0:fme.path)===null||pme===void 0)&&pme.endsWith("service")))return[2,(bme=(hme=$P.parent.parent.info.plugin).getAvailableContextFields)===null||bme===void 0?void 0:bme.call(hme,$P.parent.parent,tme,ame)]}return mme=this.dsManager.getBuilderBySchema($P.schema),mme&&$P.schema.api?[2,mme.getAvailableContextFields({schema:$P.schema,sourceKey:"api",feat:"List"},tme)]:[2]})})},Object.defineProperty(eme.prototype,"dynamicControls",{get:function(){return this._dynamicControls},set:function($P){if(!$P||!isObject$8($P))throw new Error(i18n("413c6b52c23a1bf5cbc9fba1485f88ff"));this._dynamicControls=__assign$3(__assign$3({},this._dynamicControls),$P)},enumerable:!1,configurable:!0}),eme.prototype.isCRUDContext=function($P){return $P.schema.type==="crud2"||$P.schema.type==="crud"},eme.id="Table2Plugin",eme}(BasePlugin);registerEditorPlugin(Table2Plugin);var baseFlatten=_baseFlatten,INFINITY=1/0;function flattenDeep(x_){var eme=x_==null?0:x_.length;return eme?baseFlatten(x_,INFINITY):[]}var flattenDeep_1=flattenDeep;const flattenDeep$1=getDefaultExportFromCjs(flattenDeep_1);var baseUnset=_baseUnset,isIndex=_isIndex,arrayProto=Array.prototype,splice=arrayProto.splice;function basePullAt$1(x_,eme){for(var $P=x_?eme.length:0,tme=$P-1;$P--;){var ame=eme[$P];if($P==tme||ame!==nme){var nme=ame;isIndex(ame)?splice.call(x_,ame,1):baseUnset(x_,ame)}}return x_}var _basePullAt=basePullAt$1,baseIteratee$2=_baseIteratee,basePullAt=_basePullAt;function remove(x_,eme){var $P=[];if(!(x_&&x_.length))return $P;var tme=-1,ame=[],nme=x_.length;for(eme=baseIteratee$2(eme);++tme<nme;){var rme=x_[tme];eme(rme,tme,x_)&&($P.push(rme),ame.push(tme))}return basePullAt(x_,ame),$P}var remove_1=remove;const remove$1=getDefaultExportFromCjs(remove_1);var arrayMap=_arrayMap,baseIteratee$1=_baseIteratee,basePickBy=_basePickBy,getAllKeysIn=_getAllKeysIn;function pickBy(x_,eme){if(x_==null)return{};var $P=arrayMap(getAllKeysIn(x_),function(tme){return[tme]});return eme=baseIteratee$1(eme),basePickBy(x_,$P,function(tme,ame){return eme(tme,ame[0])})}var pickBy_1=pickBy;const pickBy$1=getDefaultExportFromCjs(pickBy_1);var deepRemove=function(x_,eme,$P){$P===void 0&&($P=!1);for(var tme=[x_],ame=!1,nme=function(){if(ame)return"break";var ime=tme.pop();if(Array.isArray(ime))return remove$1(ime,function(ome){var lme=eme(ome);return lme&&!$P&&(ame=!0),lme}),tme.push.apply(tme,__spreadArray([],__read$3(ime),!1)),"continue";if(!isObject$r(ime))return"continue";Object.entries(ime).forEach(function(ome){var lme=__read$3(ome,2),sme=lme[0],cme=lme[1];isObject$r(cme)&&eme(cme)&&(delete ime[sme],$P||(ame=!0)),tme.push(cme)})};tme.length;){var rme=nme();if(rme==="break")break}return ame},findObj=function(x_,eme,$P){for(var tme=[x_];tme.length;){var ame=tme.shift();if(Array.isArray(ame)){tme.push.apply(tme,__spreadArray([],__read$3(ame),!1));continue}if(!(!isObject$r(ame)||$P)){if(eme(ame))return ame;tme.push.apply(tme,__spreadArray([],__read$3(Object.values(pickBy$1(ame,function(nme,rme){return!String(rme).startsWith("__")}))),!1))}}},findSchema=function(x_,eme){for(var $P=[],tme=2;tme<arguments.length;tme++)$P[tme-2]=arguments[tme];if($P.length===0)return findObj(x_,eme);for(var ame=null;ame=$P.shift();){var nme=findObj(x_[ame],eme);if(nme)return nme}return null},addSchema2Toolbar=function(x_,eme,$P,tme){var ame="".concat($P,"Toolbar"),nme=function(sme){return sme===void 0&&(sme=[]),{type:"flex",items:sme,style:{position:"static"},direction:"row",justify:"flex-start",alignItems:"stretch"}},rme=function(sme,cme){return cme===void 0&&(cme=[]),{type:"container",body:cme,wrapperBody:!1,style:__assign$3({flexGrow:1,flex:"1 1 auto",position:"static",display:"flex",flexBasis:"auto",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch"},sme?{justifyContent:sme==="left"?"flex-start":"flex-end"}:{})}};if(!x_[ame]||isEmpty$4(x_[ame])||!Array.isArray(x_[ame])){var ime=Array.isArray(x_[ame]),ome=nme([rme("left",ime||!x_[ame]?[]:[x_[ame]]),rme("right")]);ime&&x_[ame].push(ome)||(x_[ame]=[ome])}try{tme==="right"&&x_[ame][0].items.length<2,x_[ame][0].items[tme==="left"?0:x_[ame][0].items.length-1].body.push(eme)}catch{var lme=__spreadArray([],__read$3(x_[ame]),!1);x_[ame].length=0,x_[ame].push(nme([rme("left",lme),rme("right",eme)]))}},BaseCRUDPlugin=function(x_){__extends$2(eme,x_);function eme($P,tme,ame){var nme=x_.call(this,$P)||this;return nme.rendererName="crud2",nme.name=i18n("83c9828692e1bb250a069bbf37807190"),nme.panelTitle=i18n("83c9828692e1bb250a069bbf37807190"),nme.subPanelTitle=i18n("83c9828692e1bb250a069bbf37807190"),nme.icon="fa fa-table",nme.panelIcon="fa fa-table",nme.subPanelIcon="fa fa-table",nme.pluginIcon="table-plugin",nme.panelJustify=!0,nme.multifactor=!0,nme.order=-1e3,nme.$schema="/schemas/CRUD2Schema.json",nme.docLink="/amis/zh-CN/components/table2",nme.tags=[i18n("73721e611daaafe5c34aa9f3f901d016")],nme._dynamicControls={columns:function(rme){return nme.renderColumnsControl(rme)},toolbar:function(rme){return nme.renderToolbarCollapse(rme)},filters:function(rme){return nme.renderFiltersCollapse(rme)},primaryField:function(rme){return getSchemaTpl("primaryField")}},nme.baseCRUDPanelBody=function(rme){return getSchemaTpl("tabs",[nme.renderPropsTab(rme),nme.renderEventTab(rme)])},nme.panelFormPipeOut=function(rme,ime){return __awaiter(nme,void 0,void 0,function(){var ome,lme,sme,cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:if(ome=(fme=rme==null?void 0:rme.api)===null||fme===void 0?void 0:fme.entity,!ome||(rme==null?void 0:rme.dsType)!==ModelDSBuilderKey)return[2,rme];if(lme=this.dsManager.getBuilderBySchema(rme),sme=["api","quickSaveApi","quickSaveItemApi","columns","dsType","primaryField","filter","headerToolbar","footerToolbar","columns"],cme=DeepDiff.diff(pick$3(ime,sme),pick$3(rme,sme)),!cme)return[2,rme];pme.label=1;case 1:return pme.trys.push([1,3,,4]),[4,lme.buildApiSchema({schema:rme,renderer:"crud",sourceKey:"api",apiSettings:{diffConfig:{enable:!0,schemaDiff:cme}}})];case 2:return dme=pme.sent(),[2,dme];case 3:return ume=pme.sent(),console.error(ume),[3,4];case 4:return[2,rme]}})})},nme.emptyContainer=function(rme,ime){return ime===void 0&&(ime=[]),{type:"container",body:ime,wrapperBody:!1,style:__assign$3({flexGrow:1,flex:"1 1 auto",position:"static",display:"flex",flexBasis:"auto",flexDirection:"row",flexWrap:"nowrap",alignItems:"stretch"},rme?{justifyContent:rme==="left"?"flex-start":"flex-end"}:{})}},nme.emptyFlex=function(rme){return rme===void 0&&(rme=[]),{type:"flex",items:rme,style:{position:"static"},direction:"row",justify:"flex-start",alignItems:"stretch"}},nme.generatePreviewSchema=function(rme){var ime=[{label:"Engine",name:"engine"},{label:"Browser",name:"browser"},{name:"version",label:"Version"}],ome={type:"button",level:"link",icon:"fa fa-eye",actionType:"dialog",dialog:{title:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),body:{type:"form",body:[{label:"Engine",name:"engine",type:"static"},{name:"browser",label:"Browser",type:"static"},{name:"version",label:"Version",type:"static"}]}}},lme=rme==="cards"?{card:{body:ime,actions:ome}}:rme==="list"?{listItem:{body:{type:"hbox",columns:ime}},actions:ome}:{columns:ime.concat([{name:"operation",title:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:[ome]}])};return __assign$3({type:"crud2",mode:rme,source:"$items",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.0",platform:"Win 95+",version:"4",grade:"X"}]}},lme)},nme.dsManager=new DSBuilderManager($P),nme.events=uniqBy$1(__spreadArray([],__read$3(tme||[]),!1),"eventName"),nme.actions=uniqBy$1(__spreadArray([{actionType:"search",actionLabel:i18n("cfd84204d9476936c949d071cc2338cf"),description:i18n("c6bd3393c21379d3f75d179abe36da3d"),descDetail:function(rme,ime,ome){return React__default.createElement("div",{className:"action-desc"},"触发",buildLinkActionDesc(ome.manager,rme),i18n("cfd84204d9476936c949d071cc2338cf"))},schema:getArgsWrapper({name:"query",label:i18n("cf12e55021998a8328201800ec356773"),type:"ae-formulaControl",variables:"${variables}",size:"md",mode:"horizontal"})},{actionType:"loadMore",actionLabel:i18n("77281549955309c49f5eef77838a85e5"),description:i18n("b3a4d6a345372c5def1d5a1bf6077bce"),descDetail:function(rme,ime,ome){return React__default.createElement("div",{className:"action-desc"},"加载",buildLinkActionDesc(ome.manager,rme),"更多数据")}},{actionType:"startAutoRefresh",actionLabel:i18n("63ddcc28ac20f6cbd4197671ae7e628c"),description:i18n("63ddcc28ac20f6cbd4197671ae7e628c")},{actionType:"stopAutoRefresh",actionLabel:i18n("d6ba60b5bbf5df4cc2959dc897c2f792"),description:i18n("d6ba60b5bbf5df4cc2959dc897c2f792")},__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload"))],__read$3(ame||[]),!1),"actionType"),nme}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=this;return{title:"".concat(this.name,"创建向导"),mode:{mode:"horizontal",horizontal:{leftFixed:"sm"}},className:"ae-Scaffold-Modal ae-Scaffold-Modal--CRUD ae-Scaffold-Modal-content :AMISCSSWrapper",stepsBody:!0,canSkip:!0,canRebuild:!0,body:[{title:i18n("d75a7984d3fa5b32f5d8312e899aeea8"),body:__spreadArray(__spreadArray([this.dsManager.getDSSelectorSchema({onChange:function(tme,ame,nme,rme){if(tme!==ame){var ime=rme.data;Object.keys(ime).forEach(function(ome){var lme,sme;(!((lme=ome==null?void 0:ome.toLowerCase())===null||lme===void 0)&&lme.endsWith("fields")||!((sme=ome==null?void 0:ome.toLowerCase())===null||sme===void 0)&&sme.endsWith("api"))&&rme.deleteValueByName(ome)}),rme.deleteValueByName("__fields"),rme.deleteValueByName("__relations")}return tme}})],__read$3(this.dsManager.buildCollectionFromBuilders(function(tme,ame){return{type:"container",visibleOn:"!this.dsType || this.dsType === '".concat(ame,"'"),body:flattenDeep$1([tme.makeSourceSettingForm({feat:DSFeatureEnum.List,renderer:"crud",inScaffold:!0,sourceSettings:{userOrders:!0}}),tme.makeFieldsSettingForm({feat:DSFeatureEnum.List,renderer:"crud",inScaffold:!0})])}})),!1),[getSchemaTpl("primaryField",{visibleOn:"!this.dsType || this.dsType !== '".concat(ModelDSBuilderKey,"'")})],!1)},{title:i18n("c2f1f9254c245976e346377515c2e578"),body:__spreadArray(__spreadArray([],__read$3(this.dsManager.buildCollectionFromBuilders(function(tme,ame){return{type:"container",visibleOn:"dsType == null || dsType === '".concat(ame,"'"),body:[{type:"checkboxes",label:i18n("012f602372cd2dbd639cd966c63e1f90"),name:ToolsConfig.groupName,joinValues:!1,extractValue:!0,multiple:!0,options:ToolsConfig.options.filter(function(nme){return tme.filterByFeat(nme.value)})},{type:"checkboxes",label:i18n("0943d61befec4c6cf2d21d170c9b066e"),name:FiltersConfig.groupName,multiple:!0,joinValues:!1,extractValue:!0,options:FiltersConfig.options.filter(function(nme){return tme.filterByFeat(nme.value)})},{type:"checkboxes",label:i18n("5246d2c81fa12b1f4f73635c257e232d"),name:OperatorsConfig.groupName,multiple:!0,joinValues:!1,extractValue:!0,options:OperatorsConfig.options.filter(function(nme){return tme.filterByFeat(nme.value)})},{type:"container"}]}})),!1),[{type:"tabs",tabsMode:"vertical",className:"ae-Scaffold-Modal-tabs",tabs:this.getScaffoldFeatureTab()}],!1)}],pipeIn:function(tme){return __awaiter($P,void 0,void 0,function(){var ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return ame=(ime=tme==null?void 0:tme.dsType)!==null&&ime!==void 0?ime:this.dsManager.getDefaultBuilderKey(),nme=this.dsManager.getBuilderByKey(ame),nme?[4,nme.guessCRUDScaffoldConfig({schema:tme})]:[2,{dsType:ame}];case 1:return rme=ome.sent(),[2,__assign$3({},rme)]}})})},pipeOut:function(tme){return __awaiter($P,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme;return __generator(this,function(sme){switch(sme.label){case 0:return ame=cloneDeep$1(this.scaffold),nme=this.dsManager.getBuilderByScaffoldSetting(tme),nme?[4,nme.buildCRUDSchema({feats:uniq$1(__spreadArray(__spreadArray(__spreadArray([DSFeatureEnum.List],__read$3((ime=tme.tools)!==null&&ime!==void 0?ime:[]),!1),__read$3((ome=tme.filters)!==null&&ome!==void 0?ome:[]),!1),__read$3((lme=tme.operators)!==null&&lme!==void 0?lme:[]),!1).filter(Boolean)),renderer:"crud",inScaffold:!0,entitySource:tme==null?void 0:tme.entitySource,fallbackSchema:ame,scaffoldConfig:tme})]:[2,ame];case 1:return rme=sme.sent(),rme.__origin="scaffold",[2,rme]}})})},validate:function(tme,ame){var nme=DSFeatureEnum.List,rme=$P.dsManager.getBuilderByScaffoldSetting(tme);rme==null||rme.getFeatValueByKey(nme);var ime={};return(tme==null?void 0:tme.dsType)===ModelDSBuilderKey||(rme==null?void 0:rme.key)===ModelDSBuilderKey,ime}}},enumerable:!1,configurable:!0}),eme.prototype.getScaffoldFeatureTab=function(){var $P=this,tme=[];return[{groupName:"",options:[{label:i18n("46a0f3086dce242abe54e48bd86e0394"),value:"List",icon:"fa fa-list"}]},ToolsConfig,FiltersConfig,OperatorsConfig].forEach(function(ame){ame.options.forEach(function(nme,rme){$P.dsManager.buildCollectionFromBuilders(function(ime,ome){if(!ime.features.includes(nme.value))return null;var lme=ome===ModelDSBuilderKey?__spreadArray([],__read$3(ime.makeFieldsSettingForm({feat:nme.value,renderer:"crud",inScaffold:!0})),!1):__spreadArray(__spreadArray([],__read$3(nme.value==="Edit"?ime.makeSourceSettingForm({feat:nme.value,renderer:"crud",inScaffold:!0,sourceKey:"initApi"}):["List","SimpleQuery"].includes(nme.value)?[]:ime.makeSourceSettingForm({feat:nme.value,renderer:"crud",inScaffold:!0})),!1),__read$3(ime.makeFieldsSettingForm({feat:nme.value,renderer:"crud",inScaffold:!0,fieldSettings:{renderLabel:!1}})),!1);if(!lme||lme.length===0)return null;var sme=ame.groupName,cme=sme?'data["'.concat(sme,`"] && ~data['`).concat(sme,"'].indexOf('").concat(nme.value,"')"):!0;tme.push({title:nme.label,icon:nme.icon,visibleOn:"(!this.dsType || this.dsType === '".concat(ome,"') && ").concat(cme),body:lme.filter(Boolean).map(function(dme){return __assign$3(__assign$3({},dme),{mode:"normal"})})})})})}),tme},Object.defineProperty(eme.prototype,"dynamicControls",{get:function(){return this._dynamicControls},set:function($P){if(!$P||!isObject$8($P))throw new Error(i18n("16ea2200bfba281fdf5e6870498790cc"));this._dynamicControls=__assign$3(__assign$3({},this._dynamicControls),$P)},enumerable:!1,configurable:!0}),eme.prototype.renderPropsTab=function($P){var tme=this.dynamicControls;return{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[this.renderBasicPropsCollapse($P),isFunction$b(tme.columns)?tme.columns($P):tme.columns,isFunction$b(tme.filters)?tme.filters($P):tme.filters,isFunction$b(tme.toolbar)?tme.toolbar($P):tme.toolbar,this.renderPaginationCollapse($P),this.renderOthersCollapse($P),{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("hidden"),getSchemaTpl("visible")]},this.renderMockPropsCollapse($P)].filter(Boolean))]}},eme.prototype.renderBasicPropsCollapse=function($P){var tme=this,ame,nme=this.dynamicControls,rme=function(){var ime=tme.dsManager.getDSSelectorSchema({type:"select",label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),onChange:function(sme,cme,dme,ume){if(sme!==cme){var fme=ume.data;Object.keys(fme).forEach(function(pme){var hme,bme;(!((hme=pme==null?void 0:pme.toLowerCase())===null||hme===void 0)&&hme.endsWith("fields")||!((bme=pme==null?void 0:pme.toLowerCase())===null||bme===void 0)&&bme.endsWith("api"))&&ume.deleteValueByName(pme)}),ume.deleteValueByName("__fields"),ume.deleteValueByName("__relations")}return sme}},{schema:$P==null?void 0:$P.schema,sourceKey:"api"}),ome=ime.value,lme=tme.dsManager.buildCollectionFromBuilders(function(sme,cme){return{type:"container",visibleOn:"this.dsType == null ? '".concat(cme,"' === '").concat(ome||ApiDSBuilderKey,"' : this.dsType === '").concat(cme,"'"),body:sme.makeSourceSettingForm({feat:"List",renderer:"crud",inScaffold:!1,sourceSettings:{userOrders:!0}}),className:"mb-3"}});return __spreadArray([ime],__read$3(lme),!1)};return{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),order:1,body:__spreadArray(__spreadArray([],__read$3(rme()),!1),[(ame=nme==null?void 0:nme.primaryField)===null||ame===void 0?void 0:ame.call(nme,$P),getSchemaTpl("switch",{name:"selectable",label:tipedLabel(i18n("240145572215920ae06db1eeb85b29c0"),i18n("d45a439fa6e82798bc1e98d738cedea3")),pipeIn:function(ime,ome){var lme;if(typeof ime=="boolean")return ime;var sme=(lme=ome==null?void 0:ome.data)===null||lme===void 0?void 0:lme.rowSelection;return sme&&isObject$8(sme)}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.selectable || (this.rowSelection && this.rowSelection?.type !== 'radio')",body:[getSchemaTpl("switch",{name:"multiple",label:i18n("e3be7b8a459a08fec8f378a0660b642b"),pipeIn:function(ime,ome){var lme;if(typeof ime=="boolean")return ime;var sme=(lme=ome==null?void 0:ome.data)===null||lme===void 0?void 0:lme.rowSelection;return sme&&isObject$8(sme)?sme.type!=="radio":!1}})]},{name:"placeholder",pipeIn:defaultValue(i18n("21efd88b67a39834582ad99aabb9dc60")),type:"input-text",label:i18n("8ce1cd75b6e9c0c0e3468589fcea822c")},getSchemaTpl("switch",{name:"syncLocation",label:tipedLabel(i18n("569343b4fe5e48131b78611c11eadbeb"),i18n("6dbee29a8c54eef9d042ef3280999ad9")),pipeIn:defaultValue(!0)})],!1)}},eme.prototype.renderColumnsControl=function($P){var tme=this.dsManager.getBuilderBySchema($P.node.schema);return{title:i18n("949a8b7bd2c10070a2fae16f9c66afbb"),order:5,body:[{type:"ae-crud-column-control",name:"columns",nodeId:$P.id,builder:tme}]}},eme.prototype.renderToolbarCollapse=function($P){var tme=this.dsManager.getBuilderBySchema($P.node.schema);return{order:20,title:i18n("012f602372cd2dbd639cd966c63e1f90"),body:[{type:"ae-crud-toolbar-control",name:"headerToolbar",nodeId:$P.id,builder:tme}]}},eme.prototype.renderFiltersCollapse=function($P){var tme=this.dsManager.getBuilderBySchema($P.node.schema),ame=[],nme=[DSFeatureEnum.SimpleQuery,DSFeatureEnum.AdvancedQuery,DSFeatureEnum.FuzzyQuery],rme=sortBy$1(tme.features,[function(ime){return nme.indexOf(ime)}]);return rme.forEach(function(ime){/Query$/.test(ime)&&ame.push({type:"ae-crud-filters-control",name:ime===DSFeatureEnum.SimpleQuery||ime===DSFeatureEnum.AdvancedQuery?"filter":ime===DSFeatureEnum.FuzzyQuery?"headerToolbar":void 0,label:ime===DSFeatureEnum.SimpleQuery?i18n("c26996a6506adf397f0668d376d0b40b"):ime===DSFeatureEnum.AdvancedQuery?i18n("9c4666fd08c2738eb9611a3721cb5f0f"):i18n("6ff4bf3d567e977aa4c90c27dff1e6db"),nodeId:$P.id,feat:ime,builder:tme})}),ame.length>0?{order:10,title:i18n("4a3ebd0ef27212de3b0c39e6a9701b1d"),body:ame}:void 0},eme.prototype.renderPaginationCollapse=function($P){var tme=this,ame='this.loadType === "pagination"',nme='this.loadType === "more"';return{order:30,title:i18n("e821ce185e41eac2ab846ef5cfde2363"),body:[{label:i18n("4d7080ff1405a1f08c5415a0f942c336"),type:"select",name:"loadType",options:[{label:i18n("d81bb206a889656035b929cd8bb1ef10"),value:""},{label:i18n("3862626c138ce5945e0e273a1bdfbad0"),value:"pagination"},{label:i18n("77281549955309c49f5eef77838a85e5"),value:"more"}],pipeIn:function(rme){return rme||""},pipeOut:function(rme){return rme},onChange:function(rme,ime,ome,lme){var sme=cloneDeep$1(lme.data);if(ime&&deepRemove(sme,function(dme){return ime==="more"?dme.behavior==="loadMore":dme.type==="pagination"}),rme){var cme=rme==="pagination"?{type:"pagination",behavior:"Pagination",layout:["total","perPage","pager"],perPageAvailable:[10,20,50,100]}:{type:"button",behavior:"loadMore",label:i18n("77281549955309c49f5eef77838a85e5"),onEvent:{click:{actions:[{componentId:sme.id,groupType:"component",actionType:"loadMore"}],weight:0}}};tme.addFeatToToolbar(sme,cme,"footer","right")}lme.setValues({perPage:rme!=="more"?void 0:sme.perPage,footerToolbar:sme.footerToolbar,headerToolbar:sme.headerToolbar})}},getSchemaTpl("switch",{name:"loadDataOnce",label:i18n("16b8ff2b147382be4cf8654f829df904"),visibleOn:ame}),getSchemaTpl("switch",{name:"loadDataOnceFetchOnFilter",label:tipedLabel(i18n("290026b0b40b637e774c6af435b897b5"),i18n("67584675004a48be903e9f61c733cb35")),visibleOn:ame+" && this.loadDataOnce"}),getSchemaTpl("switch",{name:"keepItemSelectionOnPageChange",label:tipedLabel(i18n("099cf136d6a4b6ed4646af4a2ed066b2"),i18n("60011314ed92794f3d4f3e874c359279")),pipeIn:defaultValue(!1),visibleOn:ame}),getSchemaTpl("switch",{name:"autoJumpToTopOnPagerChange",label:tipedLabel(i18n("8cc3589c442c478dde8ceb60aeb29e03"),i18n("9092afb1ccb692308ef06d8001da2208")),pipeIn:defaultValue(!0),visibleOn:ame}),{name:"perPage",type:"input-number",label:tipedLabel(i18n("606bc931d2b3ebba2569cb1494719e2c"),"无限加载时，根据此项设置其每页加载数量，留空则默认10条"),clearValueOnEmpty:!0,clearable:!0,pipeIn:defaultValue(10),visibleOn:nme},{type:"button",label:i18n("f300691f823aacea572e63bb7fb7ce8a"),block:!0,className:"mb-1",level:"enhance",visibleOn:'this.loadType === "pagination"',onClick:function(){var rme,ime,ome=findSchema((ime=(rme=$P==null?void 0:$P.node)===null||rme===void 0?void 0:rme.schema)!==null&&ime!==void 0?ime:{},function(lme){return lme.type==="pagination"||lme.behavior==="Pagination"},"headerToolbar","footerToolbar");if(!ome||!ome.$$id){toast.error(i18n("d81ad681a447abae7cba38779ffc0c9e"));return}tme.manager.setActiveId(ome.$$id)}}]}},eme.prototype.renderOthersCollapse=function($P){return{order:25,title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[{type:"ae-switch-more",mode:"normal",formType:"extend",visibleOn:"this.api",label:tipedLabel(i18n("86b17bba54b65c6a62895357095f63a3"),i18n("983a8ab6a97da0a0dec7b5c751cf02b1")),autoFocus:!1,form:{body:[{type:"input-number",name:"interval",label:tipedLabel(i18n("4cbec5cb54ba399ea81381a75f5f1f93"),i18n("81fe75a5216d4f612f1809c122f5145a")),step:10,min:1e3},getSchemaTpl("expressionFormulaControl",{name:"stopAutoRefreshWhen",label:tipedLabel(i18n("3a5d9512f474ff7c2a017a13e7f8a9af"),i18n("fd649ca959662306b734f03438869bf0")),visibleOn:"!!this.interval"}),getSchemaTpl("switch",{name:"stopAutoRefreshWhenModalIsOpen",label:tipedLabel(i18n("0516133b87f03f859e23bf014d71ab57"),i18n("52dce697d35795d7835e483d69f72419"))})]}},getSchemaTpl("switch",{name:"silentPolling",label:tipedLabel(i18n("6d5b1e5a235fa839c759d2362654d638"),i18n("8b34b22a4da1b9b855a5efd33434f5e7")),pipeIn:defaultValue(!1)})]}},eme.prototype.renderMockPropsCollapse=function($P){return{title:i18n("4f54012c824bfcd8f9ca9ded82051d94"),order:35,body:[{type:"switch",label:tipedLabel(i18n("3566441483da64f6bb1dd44cfd6b0184"),i18n("fb677689a875ed3078e386ad88273e73")),name:"editorSetting.mock.enable",value:!0},{type:"input-number",label:tipedLabel(i18n("c0afd6005e68838e37e26dc7c34cf368"),i18n("af192f42759b02f6fd256776b12a238f")),name:"editorSetting.mock.maxDisplayRows",step:1,min:-1,resetValue:-1,value:DefaultMaxDisplayRows}]}},eme.prototype.renderStylesTab=function($P){return{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"bodyClassName",label:i18n("32aaf2f04e983290deceb0674fb0d159")}),getSchemaTpl("className",{name:"headerToolbarClassName",label:i18n("e3e100dab1d8d13a2e3f9c391b0b108d")}),getSchemaTpl("className",{name:"footerToolbarClassName",label:i18n("2aee96dd788b815f83b3d118188e7fd9")})]})])}},eme.prototype.renderEventTab=function($P){return{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(this.manager,$P)))]}},eme.prototype.addFeatToToolbar=function($P,tme,ame,nme){var rme="".concat(ame,"Toolbar");if(!$P[rme]||isEmpty$4($P[rme])||!Array.isArray($P[rme])){var ime=Array.isArray($P[rme]),ome=this.emptyFlex([this.emptyContainer("left",ime||!$P[rme]?[]:[$P[rme]]),this.emptyContainer("right")]);ime&&$P[rme].push(ome)||($P[rme]=[ome])}try{nme==="right"&&$P[rme][0].items.length<2&&$P[rme][0].items.push(this.emptyContainer("right")),$P[rme][0].items[nme==="left"?0:$P[rme][0].items.length-1].body.push(tme)}catch{var lme=__spreadArray([],__read$3($P[rme]),!1);$P[rme].length=0,$P[rme].push(this.emptyFlex([this.emptyContainer("left",lme),this.emptyContainer("right",tme)]))}},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome,lme,sme,cme;return __awaiter(this,void 0,void 0,function(){var dme,ume,fme,pme,hme;return __generator(this,function(bme){switch(bme.label){case 0:return dme=$P.children.find(function(mme){return!!~["table2","cards","list"].indexOf(mme.type)}),!((rme=(nme=dme==null?void 0:dme.info)===null||nme===void 0?void 0:nme.plugin)===null||rme===void 0)&&rme.buildDataSchemas?[4,(ome=(ime=dme.info.plugin).buildDataSchemas)===null||ome===void 0?void 0:ome.call(ime,dme,tme,ame,$P)]:[2];case 1:return ume=bme.sent(),fme=__assign$3(__assign$3({},ume),ume!=null&&ume.$id?{}:{$id:"".concat(dme.id,"-").concat(dme.type)}),pme=(sme=(lme=fme==null?void 0:fme.properties)===null||lme===void 0?void 0:lme.rows)!==null&&sme!==void 0?sme:(cme=fme==null?void 0:fme.properties)===null||cme===void 0?void 0:cme.items,hme={$id:"crud2",type:"object",properties:{items:__assign$3(__assign$3({},pme),{title:i18n("fe9e25f4e4b3aeefeb9b7a9c368ede7e")}),selectedItems:__assign$3(__assign$3({},pme),{title:i18n("2c77cfaef73ce2e81131861e9c6d670e")}),unSelectedItems:__assign$3(__assign$3({},pme),{title:i18n("9c9153c49491c381dc2adb2c36fccb04")}),page:{type:"number",title:i18n("9a4fe969f1066e197fd2369a44d879ac")},total:{type:"number",title:i18n("a7f33a2d99056edcdaced5c8841a9bcb")}}},[2,hme]}})})},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme;return __awaiter(this,void 0,void 0,function(){var ime;return __generator(this,function(ome){return ime=this.dsManager.getBuilderBySchema($P.schema),ime&&$P.schema.api?[2,ime.getAvailableContextFields({schema:$P.schema,sourceKey:"api",feat:(rme=(nme=$P.schema)===null||nme===void 0?void 0:nme.feat)!==null&&rme!==void 0?rme:"List"},tme)]:[2]})})},eme.prototype.generateScaffold=function($P){var tme;return $P==="table2"?tme={type:"crud2",mode:"table2",columns:[{name:"id",title:"ID",type:"container",body:[{type:"text"}]},{name:"engine",title:i18n("1a63ac23010e0573f7c0a8cd3314b8c6"),type:"container",body:[{type:"text"}]}]}:$P==="cards"?tme={type:"crud2",mode:"cards",card:{type:"card2",body:[{type:"container",body:[{type:"tpl",tpl:i18n("32c65d8d7431e76029678ec7bb73a5ab"),inline:!1,style:{marginTop:"0",marginBottom:"0",paddingTop:"",paddingBottom:""},wrapperComponent:"h2"},{type:"form",body:[{type:"static-tpl",label:i18n("9caecd931b956381e0763d05aa42835c"),tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014")}]},{type:"divider"},{type:"button-group"}]}]}}:$P==="list"&&(tme={type:"crud2",mode:"list",listItem:{body:[{type:"container",body:[{type:"tpl",tpl:i18n("32c65d8d7431e76029678ec7bb73a5ab"),inline:!1,style:{marginTop:"0",marginBottom:"0",paddingTop:"",paddingBottom:""},wrapperComponent:"h2"},{type:"tpl",tpl:i18n("629645f147f378869fe9d7ee2bbc2857"),inline:!1,wrapperComponent:"",style:{color:"#9b9b9b",marginTop:"0",marginBottom:"0"}}]}]}}),tme},eme.id="CRUD2Plugin",__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderColumnsControl",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderToolbarCollapse",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderFiltersCollapse",null),eme}(BasePlugin),CRUDTablePlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P,Table2RenderereEvent,Table2RendererAction)||this;return tme.panelJustify=!0,tme.multifactor=!0,tme.isBaseComponent=!0,tme.description=i18n("cc6a173a3601403f2d96cae2180539b3"),tme.order=-950,tme.$schema="/schemas/CRUD2TableSchema.json",tme.docLink="/amis/zh-CN/components/table2",tme.previewSchema=tme.generatePreviewSchema("table2"),tme.scaffold=tme.generateScaffold("table2"),tme.panelBodyCreator=function(ame){return tme.baseCRUDPanelBody(ame)},tme.dsManager=new DSBuilderManager($P),tme}return eme.id="TableCRUDPlugin",eme}(BaseCRUDPlugin);registerEditorPlugin(CRUDTablePlugin);var FieldSetting=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame,nme;tme=x_.call(this,$P)||this,tme.formRef=React__default.createRef(),tme.tableRef=React__default.createRef(),tme.scaffold={label:"",name:"",displayType:"tpl",inputType:"input-text"},tme.debounceGenerateFields=debounce$6(function(sme){return __awaiter(tme,void 0,void 0,function(){return __generator(this,function(cme){return[2,this.handleGenerateFields(sme)]})})},200,{trailing:!0,leading:!1}),$P.render,$P.classnames;var rme=$P.env,ime=$P.config,ome=$P.data;$P.renderer,$P.feat,(nme=(ame=rme==null?void 0:rme.getModalContainer)===null||ame===void 0?void 0:ame.call(rme))!==null&&nme!==void 0||tme.dom;var lme=ime||{};return lme.showDisplayType,lme.showInputType,ome==null||ome.__step,tme.state={loading:!1,fields:Array.isArray($P.value)?$P.value:[]},tme.reaction=reaction(function(){var sme,cme=(sme=$P==null?void 0:$P.store)===null||sme===void 0?void 0:sme.data,dme=cme==null?void 0:cme.initApi,ume=cme==null?void 0:cme.listApi,fme="";try{fme="".concat(JSON.stringify(dme)).concat(JSON.stringify(ume))}catch{}return fme},function(){return tme.forceUpdate()}),tme}return eme.prototype.componentDidMount=function(){this.dom=reactDomExports.findDOMNode(this)},eme.prototype.componentDidUpdate=function($P,tme,ame){var nme=$P.value,rme=this.props.value;((nme==null?void 0:nme.length)!==(rme==null?void 0:rme.length)||!isEqual$1(nme,rme))&&!isEqual$1(rme,tme==null?void 0:tme.fields)&&this.setState({fields:Array.isArray(rme)?rme:[]})},eme.prototype.componentWillUnmount=function(){var $P;($P=this.reaction)===null||$P===void 0||$P.call(this)},eme.prototype.isFirstStep=function(){var $P,tme,ame;return((ame=(tme=($P=this.props)===null||$P===void 0?void 0:$P.manager)===null||tme===void 0?void 0:tme.store)===null||ame===void 0?void 0:ame.scaffoldFormStep)===0},eme.prototype.handleTableChange=function($P){if(!(!$P||!Array.isArray($P))){var tme=this.state.fields.concat();this.handleFieldsChange($P.map(function(ame){var nme=tme.find(function(rme){return(rme==null?void 0:rme.name)===ame.name});return __assign$3(__assign$3({},pick$3(__assign$3(__assign$3({},nme),ame),["label","name","displayType","inputType"])),{checked:!0})}))}},eme.prototype.handleSubmit=function($P){var tme=this.props.onSubmit;tme==null||tme($P==null?void 0:$P.items)},eme.prototype.handleGenerateFields=function($P){var tme,ame,nme,rme,ime,ome,lme;return __awaiter(this,void 0,void 0,function(){var sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme;return __generator(this,function(xme){switch(xme.label){case 0:if(sme=this.props,cme=sme.store,dme=sme.renderer,ume=sme.feat,fme=sme.env,pme=sme.manager,hme=sme.data,bme=sme.onAutoGenerateFields,mme=cme==null?void 0:cme.data,vme=dme==="form"?mme==null?void 0:mme.initApi:dme==="crud"?mme==null?void 0:mme.listApi:"",!vme||dme==="form"&&ume!==DSFeatureEnum.Edit&&ume!==DSFeatureEnum.View)return[2];if(this.setState({loading:!0}),gme=[],!(bme&&typeof bme=="function"))return[3,5];xme.label=1;case 1:return xme.trys.push([1,3,,4]),[4,bme({api:vme,props:this.props,setState:this.setState})];case 2:return gme=xme.sent(),[3,4];case 3:return yme=xme.sent(),toast.warning((tme=yme.message)!==null&&tme!==void 0?tme:i18n("91aa2166ee4811414381c8d94e6567e6")),[3,4];case 4:return[3,9];case 5:_me=(ame=pme==null?void 0:pme.store)===null||ame===void 0?void 0:ame.schemaFilter,_me&&(vme=_me({api:vme}).api),xme.label=6;case 6:return xme.trys.push([6,8,,9]),[4,fme==null?void 0:fme.fetcher(vme,hme)];case 7:return $me=xme.sent(),$me.ok?(Cme=void 0,ume==="List"?(Sme=((ime=$me.data)===null||ime===void 0?void 0:ime.rows)||((ome=$me.data)===null||ome===void 0?void 0:ome.items)||$me.data,Cme=Sme==null?void 0:Sme[0]):Cme=$me.data,Cme&&Object.entries(Cme).forEach(function(Tme){var Ome=__read$3(Tme,2),Rme=Ome[0],Nme=Ome[1],Ime="input-text";Array.isArray(Nme)?Ime="select":isObject$8(Nme)?Ime="combo":typeof Nme=="number"&&(Ime="input-number"),gme.push({label:Rme,name:Rme,displayType:"tpl",inputType:Ime,checked:!0})}),[3,9]):(toast.warning((rme=(nme=$me.defaultMsg)!==null&&nme!==void 0?nme:$me.msg)!==null&&rme!==void 0?rme:i18n("91aa2166ee4811414381c8d94e6567e6")),this.setState({loading:!1}),[2]);case 8:return Eme=xme.sent(),toast.warning((lme=Eme.message)!==null&&lme!==void 0?lme:i18n("91aa2166ee4811414381c8d94e6567e6")),[3,9];case 9:return gme=Array.isArray(gme)&&gme.length>0?gme:[],this.handleFieldsChange(gme),this.setState({loading:!1}),[2]}})})},eme.prototype.handleFieldsChange=function($P){var tme,ame=this.props,nme=ame.manager,rme=ame.fieldKeys,ime=ame.onChange,ome=ame.onBulkChange,lme=ame.submitOnChange,sme=ame.renderer;ame.data;var cme=this.isFirstStep(),dme=(tme=nme==null?void 0:nme.store)===null||tme===void 0?void 0:tme.scaffoldStepManipulated;if(this.setState({fields:$P}),sme==="form")ime==null||ime($P,lme,!0);else if(cme)if(dme)ime==null||ime($P,lme,!0);else{var ume={};rme.forEach(function(fme){ume.hasOwnProperty(fme)||(ume[fme]=$P)}),ome==null||ome(__assign$3(__assign$3({},ume),{listFields:$P}),lme)}else ime==null||ime($P,lme,!0)},eme.prototype.renderFooter=function(){var $P,tme,ame=this.props,nme=ame.classnames,rme=ame.renderer,ime=ame.store,ome=ame.data,lme=ame.feat,sme=ime==null?void 0:ime.data,cme=sme||{},dme=cme.initApi,ume=cme.listApi,fme=this.state.loading,pme=rme==="form",hme=rme==="crud",bme=pme?dme:hme?ume:"",mme=isValidApi((tme=normalizeApi(bme))===null||tme===void 0?void 0:tme.url),vme=pme&&(lme===DSFeatureEnum.Edit||lme===DSFeatureEnum.View)||hme&&lme===DSFeatureEnum.List&&(ome==null?void 0:ome.__step)===0;return vme?React__default.createElement("div",{className:nme("ae-FieldSetting-footer",($P={},$P["ae-FieldSetting-footer--form"]=pme,$P))},React__default.createElement(Button$1,{size:"sm",level:"link",loading:fme,disabled:!mme||fme,disabledTip:{content:i18n(fme?"acb3aec4d12f6ca06a1e45302030cdb1":pme?"cdfd25057876424324682b5bdde38a3d":"a9fea442707e26dee478b34a2f2ce263"),tooltipTheme:"dark"},onClick:this.debounceGenerateFields},React__default.createElement("span",null,i18n("4cc6a76c146c0360a41ceaf5e212c891")))):null},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.render,nme=tme.classnames,rme=tme.name,ime=rme===void 0?"items":rme,ome=tme.renderer,lme=tme.config,sme=tme.feat,cme=lme||{},dme=cme.showDisplayType,ume=cme.showInputType,fme=this.isFirstStep(),pme=this.state.fields.concat();return React__default.createElement(React__default.Fragment,null,ame("field-setting",{type:"input-table",name:ime,label:!1,className:nme("ae-FieldSetting-Table","mb-0"),toolbarClassName:"w-1/2",showIndex:!0,showFooterAddBtn:!0,addable:!0,addBtnLabel:i18n("66ab5e9f24c8f46012a25c89919fb191"),addBtnIcon:!1,editable:!0,editBtnLabel:i18n("95b351c86267f3aedf89520959bce689"),editBtnIcon:!1,removable:!0,deleteBtnLabel:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),deleteBtnIcon:!1,confirmBtnLabel:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),cancelBtnLabel:i18n("625fb26b4b3340f7872b411f401e754c"),needConfirm:!0,enableStaticTransform:!0,autoFocus:!1,affixHeader:!0,columnsTogglable:!1,autoFillHeight:{maxHeight:325},footerAddBtn:{level:"link",label:i18n("4484fa04e7b71db4c8293e5bcb53eca4")},placeholder:i18n("fcebd5cda006253365b4453596290f48"),scaffold:this.scaffold,columns:[{type:"input-text",name:"name",label:i18n("e996419dedc2f1ffd96e7a0e808127d0"),placeholder:i18n("e996419dedc2f1ffd96e7a0e808127d0")},{type:"input-text",name:"label",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),placeholder:i18n("eea3ebc33e69694e0c12d4ab2e07a553")},ume&&!(ome==="crud"&&sme==="List"&&!fme)?{type:"select",name:"inputType",label:i18n("b3e55578af5dd473bab62641bb2f5f8e"),options:[{label:i18n("0766a6467bed7f2840871a5f0638669d"),value:"input-text",icon:"input-text-plugin"},{label:i18n("15d169d28cd48c97fe751e4cc92ca926"),value:"textarea"},{label:i18n("9597dcaf432ceba92a160d61cb1ef65f"),value:"input-number"},{label:i18n("9913107b19cb6012250134ff91377430"),value:"radios"},{label:i18n("454e60f5759903d7d3dba58e3f9bd590"),value:"checkbox"},{label:i18n("db98f889ce6bc235e66bd4b2a788d137"),value:"checkboxes"},{label:i18n("006ded9fa277cf030592021f595a07d5"),value:"select"},{label:i18n("a6beb974cc0b50eebd18120b8110a88b"),value:"switch"},{label:i18n("4ff1e74e43a3586339251494117185ad"),value:"input-date"},{label:i18n("13c250c68608118463871ce7cd8b292c"),value:"input-table"},{label:i18n("254bb8aa6b92d588d957a383df24db1e"),value:"combo"},{label:i18n("481e034e6026969aae4ce7ce7c8a7b6f"),value:"input-file"},{label:i18n("6bfb9bb2218ff32b6139e98bc93707c0"),value:"input-image"},{label:i18n("24b6d4c0892a8f3ee2a982e3ab0afe38"),value:"input-rich-text"}]}:void 0,dme?{type:"select",name:"displayType",label:i18n("1711a82f9b0825015c2c49d9659c9837"),options:[{value:"tpl",label:i18n("97d07614380da93d257f9fbf81aa56fb"),typeKey:"tpl"},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0"),typeKey:"src"},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad"),typeKey:"value"},{value:"progress",label:i18n("c7bff79d059a0b7ff9b02441959d8be2"),typeKey:"value"},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),typeKey:"value"},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41"),typeKey:"value"},{value:"list",label:i18n("3712972d84adf48acbd6ad24b4d75ad0"),typeKey:"value"}]}:void 0].filter(Boolean)},{data:($P={},$P[ime]=pme,$P),loading:this.state.loading,onChange:this.handleTableChange}),this.renderFooter())},eme.defaultProps={config:{showInputType:!0,showDisplayType:!0}},eme.validator=function($P,tme){var ame,nme,rme={},ime=$P??[],ome=!1;try{for(var lme=__values$1(ime.entries()),sme=lme.next();!sme.done;sme=lme.next()){var cme=__read$3(sme.value,2),dme=cme[0],ume=cme[1];if(!ume.name&&tme!==!0){ome="序号「".concat(dme+1,"」的字段名称不能为空");break}if(!rme.hasOwnProperty(ume.name)){rme[ume.name]=!0;continue}ome="序号「".concat(dme+1,"」的字段名称「").concat(ume.name,"」不唯一");break}}catch(fme){ame={error:fme}}finally{try{sme&&!sme.done&&(nme=lme.return)&&nme.call(lme)}finally{if(ame)throw ame.error}}return ome},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleTableChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",Promise)],eme.prototype,"handleGenerateFields",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleFieldsChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderFooter",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-field-setting"})],eme),eme})(FieldSetting);var FormPlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.name=i18n("eee1e2258d7ea163fec625ee44be9637"),tme.panelTitle=i18n("eee1e2258d7ea163fec625ee44be9637"),tme.rendererName="form",tme.isBaseComponent=!0,tme.description=i18n("10b3d542748da2043f79395bfa2ab35f"),tme.docLink="/amis/zh-CN/components/form/index",tme.$schema="/schemas/FormSchema.json",tme.tags=[i18n("73721e611daaafe5c34aa9f3f901d016")],tme.order=-900,tme.icon="fa fa-list-alt",tme.pluginIcon="form-plugin",tme.panelIcon="form-plugin",tme.panelJustify=!0,tme.scaffold={type:"form",title:i18n("eee1e2258d7ea163fec625ee44be9637"),body:[{label:i18n("5ac57ce6df8c2a19668b7429aebd9f33"),type:"input-text",name:"text"}]},tme.previewSchema={type:"form",panelClassName:"Panel--default text-left m-b-none",mode:"horizontal",body:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"a",type:"input-text"}]},tme.regions=[{key:"body",label:i18n("3673ed1983c1be059126e3715fc34922"),matchRegion:function(ame){return!!(ame!=null&&ame.props.noValidate)},renderMethod:"renderBody",preferTag:i18n("55b45c73ae417c4dead67905b1550e85"),dndMode:function(ame){return ame.mode==="flex"?"flex":"default"}},{label:i18n("e2b67a7f51c977887d2b3c2de2727509"),key:"actions",preferTag:i18n("fa966345577ba81af19408f203db968f")}],tme.events=[{eventName:"inited",eventLabel:i18n("f36616e35765ac3d5c9c7646e50a305d"),description:i18n("48c43999cf3908d9f5100a6d5f0b4404"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]},{eventName:"change",eventLabel:i18n("b2a5322c8dbc0d8343315cafbd39b7ce"),description:i18n("d6fc04abf4889a864bea240d6b67963a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"formItemValidateSucc",eventLabel:i18n("7233c9cadee5096097673c9590eae9b8"),description:i18n("6611594c527756e23d4044f908fedfa9"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"formItemValidateError",eventLabel:i18n("e00a32d415785d5a5d43a593d26cbaa0"),description:i18n("d4c12cea41e1595329358edb365c5f5b"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"validateSucc",eventLabel:i18n("368f9bab722b255f1fdb669a89f0c594"),description:i18n("35e69ab84129d721229bc5b48afdedd2"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"validateError",eventLabel:i18n("641fc404690a43cb13e4666ce272974f"),description:i18n("5d7dfa5bf9bcd278f06fa37e482a2c35"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"submit",eventLabel:i18n("b1119174b1beedd2218e0b359ef14aec"),strongDesc:i18n("c6a65a86cd2bd74a6f72df0a7b81d3cb"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("1b5cf3e354142cc1cdd6f56b6afaba49")}}}]},{eventName:"submitSucc",eventLabel:i18n("23b62e9cbc868e024b80d2e3fad80ac7"),description:i18n("850c62f7b1ebfb4b89182ecd51202a7d"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{result:{type:"object",title:i18n("88b2930823f9fd6706473805e9b11797")}}}}}]},{eventName:"submitFail",eventLabel:i18n("f5d008dea7d2e953195a5588dea3c8e4"),description:i18n("86555672b37841b639311e7d49f0f593"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{error:{type:"object",title:i18n("3e07258baf3c4389c1ffd4a98c20b8fe")}}}}}]},{eventName:"asyncApiFinished",eventLabel:i18n("1b43b43e692a5b6b2f6ec1417791a550"),description:i18n("0de773dedbe5875ca4529e7d0ce9d2bf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]}],tme.actions=[__assign$3({actionLabel:i18n("4e34003861eee3de1e0c9c1222249bbb"),actionType:"submit",description:i18n("a360c5d4e723ad78a5e52eb1f5f3f2a2")},getActionCommonProps("submit")),__assign$3({actionLabel:i18n("1b6f5cc49e71c90a5b85a796285e3135"),actionType:"reset",description:i18n("35de8c264c2a87836ccbf302b4ee673f")},getActionCommonProps("reset")),__assign$3({actionLabel:i18n("4a3deab45c0a7218b8ae58a33fd24c28"),actionType:"clear",description:i18n("c18255cd6a048da86045c59a65fdc92d")},getActionCommonProps("clear")),{actionLabel:i18n("17f2bf425eeb7d20d79c595344e9dc94"),actionType:"validate",description:i18n("27f35bc7086bf54e27e254f5d77c3168"),descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("b7579706a363e5f23b1040fecfbcb677"),React__default.createElement("span",{className:"variable-left variable-right"},ame==null?void 0:ame.rendererLabel),i18n("b91ebe714155c83b6d3bc02b675a31e9"))}},__assign$3({actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),actionType:"reload",description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),actionType:"setValue",description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],tme.Features=[{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),value:DSFeatureEnum.Insert},{label:i18n("95b351c86267f3aedf89520959bce689"),value:DSFeatureEnum.Edit},{label:i18n("607e7a4f377fa66b0b28ce318aab841f"),value:DSFeatureEnum.View},{label:i18n("e73cefac9d030927da1618c7b15c98c9"),value:DSFeatureEnum.BulkEdit,disabled:!0}],tme._dynamicControls={},tme.panelBodyCreator=function(ame){var nme,rme,ime,ome,lme,sme,cme=/\/crud\/filter\/form$/.test(ame.path)||/\/crud2\/filter\/\d\/form$/.test(ame.path)||/\/crud2\/filter\/form$/.test(ame.path)||/body\/0\/filter$/.test(ame.schemaPath),dme=(rme=(nme=ame.path)===null||nme===void 0?void 0:nme.includes)===null||rme===void 0?void 0:rme.call(nme,"dialog/"),ume="this.wrapWithPanel !== false",fme=function(mme){return{mode:"horizontal",horizontal:{left:mme,justify:!0}}},pme=(ome=(ime=ame==null?void 0:ame.node)===null||ime===void 0?void 0:ime.schema)!==null&&ome!==void 0?ome:ame==null?void 0:ame.schema,hme=function(){var mme=tme.dsManager.getDSSelectorSchema({type:"select",label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),onChange:function(yme,_me,$me,Cme){if(yme!==_me){var Sme=Cme.data;Object.keys(Sme).forEach(function(Eme){(/^(insert|edit|bulkEdit|view)Fields$/i.test(Eme)||/^(insert|edit|bulkEdit|view)Api$/i.test(Eme))&&Cme.deleteValueByName(Eme)}),Cme.deleteValueByName("__fields"),Cme.deleteValueByName("__relations"),Cme.deleteValueByName("initApi"),Cme.deleteValueByName("api")}return yme}},{schema:ame==null?void 0:ame.schema,sourceKey:"api",getDefautlValue:function(yme,_me){var $me=ame==null?void 0:ame.schema,Cme=$me==null?void 0:$me.dsType;return(_me.match($me,"api")||_me.match($me,"initApi"))&&(Cme=yme),Cme}}),vme=mme.value,gme=flatten$4(tme.Features.map(function(yme){return tme.dsManager.buildCollectionFromBuilders(function(_me,$me,Cme){return{type:"container",className:"form-item-gap",visibleOn:"${feat === '".concat(yme.value,"' && (dsType == null ? '").concat($me,"' === '").concat(vme||ApiDSBuilderKey,"' : dsType === '").concat($me,"')}"),body:flatten$4([_me.makeSourceSettingForm({feat:yme.value,renderer:"form",inScaffold:!1,sourceSettings:__assign$3({renderLabel:!0,userOrders:!1},yme.value===DSFeatureEnum.View?{name:"initApi"}:{})})])}})}));return __spreadArray([mme],__read$3(gme),!1)},bme=function(){return cme?null:_isModelComp(pme)?{title:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),body:[getSchemaTpl("apiControl",{label:i18n("ff7cc75cc43c25c823d05d87cb8190b0"),sampleBuilder:function(){return`{
  "status": 0,
  "msg": "",
  // 可以不返回，如果返回了数据将被 merge 进来。
  data: {}
}`}}),getSchemaTpl("apiControl",{name:"asyncApi",label:tipedLabel(i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),i18n("9bf078fb5589f2c09031f1f2b5a8d2b1")),visibleOn:"this.asyncApi != null"}),getSchemaTpl("apiControl",{name:"initAsyncApi",label:tipedLabel(i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),i18n("f63ba7e3c9d8de0b8b4f769055a36d2e")),visibleOn:"this.initAsyncApi != null"}),getSchemaTpl("apiControl",{name:"initApi",label:i18n("b4bc91701b86fe8543d649e97daea602"),sampleBuilder:function(){var mme={},vme=ame==null?void 0:ame.schema;return Array.isArray(vme==null?void 0:vme.body)&&vme.body.forEach(function(gme){gme.name&&!~["combo","input-array","form"].indexOf(gme.type)&&setVariable(mme,gme.name,"sample")}),JSON.stringify({status:0,msg:"",data:mme},null,2)}})]}:{title:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),body:__spreadArray([{type:"select",name:"feat",label:i18n("7efcb0ce09e8842951c5cfd298b4e7ee"),options:tme.Features,pipeIn:function(mme,vme){var gme=mme;return mme||(gme=tme.guessDSFeatFromSchema(vme==null?void 0:vme.data)),gme},onChange:function(mme,vme,gme,yme){mme!==vme&&yme.setValues({dsType:tme.dsManager.getDefaultBuilderKey(),initApi:DSFeatureEnum.Insert===mme||DSFeatureEnum.BulkEdit===mme?void 0:"",api:void 0})}}],__read$3(hme()),!1)}};return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[bme(),{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"title",type:"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),visibleOn:ume},getSchemaTpl("switch",{name:"autoFocus",label:tipedLabel(i18n("cbef9ad64297efd7657d5b67b2112751"),i18n("ded8caee55c05aa0f1a4e6a197c480bd"))}),getSchemaTpl("switch",{name:"persistData",label:tipedLabel(i18n("cd8b367599d0c748e74029da8c10d295"),i18n("8a0544ca2f7ddaf8768ab599858315a6")),pipeIn:function(mme){return!!mme}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.persistData",body:[getSchemaTpl("tplFormulaControl",{name:"persistData",label:tipedLabel(i18n("c619838a5e3c9641a80fc5f1a9001a9e"),i18n("78979b40f53cb6510c6bc1e1a2473fc1")),pipeIn:function(mme){return typeof mme=="string"?mme:""}}),{type:"input-array",label:tipedLabel(i18n("72f4712f23226b5e01442ab9b6ae90bd"),i18n("bee8b35158dc5ddd44ebbbd9f29de422")),name:"persistDataKeys",items:{type:"input-text",placeholder:i18n("5755fa70717929d1cabc4f4d9778d08e"),options:flatten$4((sme=(lme=pme==null?void 0:pme.body)!==null&&lme!==void 0?lme:pme==null?void 0:pme.controls)!==null&&sme!==void 0?sme:[]).map(function(mme){var vme,gme=(vme=getRendererByName(mme==null?void 0:mme.type))===null||vme===void 0?void 0:vme.isFormItem;return gme&&typeof(mme==null?void 0:mme.name)=="string"?{label:mme.name,value:mme.name}:!1}).filter(Boolean)},itemClassName:"bg-transparent"},getSchemaTpl("switch",{name:"clearPersistDataAfterSubmit",label:tipedLabel(i18n("09a94b2400f7f05fbf2fc37a20b097d0"),i18n("bc01ee1a28f980c298679610fe4d2d66")),pipeIn:defaultValue(!1)})]},getSchemaTpl("switch",{name:"canAccessSuperData",label:tipedLabel(i18n("69445b3c5ddb606c7d51fd941e4aae10"),i18n("86f056f1cd4e25d5bd2bebddc971032b")),pipeIn:defaultValue(!0)}),getSchemaTpl("loadingConfig",{label:i18n("5a4e41af91746f8a3905aa9f66048955")},{context:ame})]},{title:i18n("5cd08fe4cd86fffe7cd23d934d4d3b32"),body:[__assign$3({name:"submitText",type:"input-text",label:tipedLabel(i18n("60ad7d0d170b973ab9cdb0b23e636704"),i18n("e59e1cb3f366d6e7012fe64748355b0a")),pipeIn:defaultValue(i18n("939d5345ad4345dbaabe14798f6ac0f1")),visibleOn:"".concat(ume," && !this.actions && (!Array.isArray(this.body) || !this.body.some(function(item) {return !!~['submit','button','reset','button-group'].indexOf(item.type);}))")},fme(4)),getSchemaTpl("switch",{name:"submitOnChange",label:tipedLabel(i18n("171f7b825707ddd79175fed3f8def6cd"),i18n("6ccb7091c39a5229f7e77eff4dd44a0e"))}),getSchemaTpl("switch",{name:"resetAfterSubmit",label:tipedLabel(i18n("d3458f4ee2c2203bb51f9d138dfd0c05"),i18n("e89bb79f0a0cb4fa4693c4a5ace130f4"))}),getSchemaTpl("switch",{name:"preventEnterSubmit",label:tipedLabel(i18n("59c1b37b7ff983385a2521541cbcccf8"),i18n("794020840d754ea7fb58ea3bf4394e1a"))}),dme?getSchemaTpl("switch",{label:i18n("87a6f142d80987db2e31569e403619f7"),name:"closeDialogOnSubmit",pipeIn:function(mme){return mme!==!1}}):null]},{title:i18n("2e799a2e68a3303201d89752ae201a88"),body:[{name:"rules",label:!1,type:"combo",multiple:!0,multiLine:!0,subFormMode:"horizontal",placeholder:"",addBtn:{label:i18n("442781667396d6eff51113f482d89e54"),block:!0,icon:"fa fa-plus",className:cx$1("ae-Button--enhance")},items:[__assign$3({type:"ae-formulaControl",name:"rule",label:i18n("8101a0aec7eba32e633e3cc29f4b7ede")},fme(4)),__assign$3({name:"message",label:i18n("80ce5ea9ac2c3001e6e8ea3175ecc12d"),type:"input-text"},fme(4))]}]},{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("disabled"),getSchemaTpl("visible"),getSchemaTpl("static")]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("switch",{name:"debug",label:tipedLabel(i18n("85ca671c1bb6de5a15456a9692d2edf4"),i18n("585293753528cd2f74501f41fc2e2c30"))})]}].filter(Boolean))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:[{label:i18n("5aefca559c5a41d10078e21e6d616825"),name:"mode",type:"select",pipeIn:defaultValue("flex"),options:[{label:"网格",value:"flex"},{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"},{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"normal"}],pipeOut:function(mme){return mme||void 0},onChange:function(mme,vme,gme,yme){var _me=__spreadArray([],__read$3(yme.data.body),!1),$me=_me;mme==="flex"?$me=_me==null?void 0:_me.map(function(Cme,Sme){return __assign$3(__assign$3({},Cme),{row:Sme,mode:void 0})}):$me=_me==null?void 0:_me.map(function(Cme,Sme){return __assign$3(__assign$3({},Cme),{row:void 0,colSize:void 0,labelAlign:void 0,mode:void 0})}),yme.setValueByName("body",$me)}},{type:"col-count",name:"__rolCount",label:tipedLabel(i18n("eb22d47f16f92e6f621c2b9d87119303"),"仅对PC页面生效"),visibleOn:'this.mode === "flex"'},{label:i18n("eb22d47f16f92e6f621c2b9d87119303"),name:"columnCount",type:"input-number",step:1,min:1,precision:0,resetValue:"",unitOptions:[i18n("cb2f68c9c24e85d21e6b090b6e5657d8")],hiddenOn:'this.mode === "flex"',pipeOut:function(mme){if(mme&&typeof mme=="string"){var vme=Number.parseInt(mme==null?void 0:mme.replace(/\D+/g,""),10);return isNaN(vme)?void 0:vme}else return mme&&typeof mme=="number"?mme:void 0}},getSchemaTpl("switch",{name:"wrapWithPanel",label:tipedLabel(i18n("6bde56d911167d0f47aae6bab762cd70"),i18n("1cb01363e2463443bc8105f544ce2736")),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"affixFooter",label:tipedLabel(i18n("019078f52f120a70fc23d94ccd364200"),i18n("f9e5a5377c1f56f1d09ae2bc58bd2d5b")),visibleOn:ume})]},getSchemaTpl("theme:base",{classname:"formControlClassName",title:"表单样式",needState:!1,hiddenOn:ume}),getSchemaTpl("theme:base",{classname:"panelClassName",title:"Panel样式",editorValueToken:"--Panel",hidePadding:!0,needState:!1,visibleOn:ume}),getSchemaTpl("theme:base",{classname:"headerControlClassName",title:"标题区样式",visibleOn:ume,editorValueToken:"--Panel-heading",hideRadius:!0,hideShadow:!0,hideMargin:!0,needState:!1,extra:[getSchemaTpl("theme:font",{name:"themeCss.headerTitleControlClassName.font",editorValueToken:"--Panel-heading"})]}),getSchemaTpl("theme:base",{classname:"bodyControlClassName",title:i18n("4e74ff55b36a0f35d511a761c264fce3"),editorValueToken:"--Panel-body",hideRadius:!0,hideShadow:!0,hideBorder:!0,hideMargin:!0,hideBackground:!0,needState:!1,visibleOn:ume}),{title:"表单项样式",body:[{type:"select",name:"labelAlign",label:i18n("3a8647306ee6456517b7bf9c8bc7de23"),selectFirst:!0,hiddenOn:'this.mode === "normal" || this.mode === "inline" || this.mode === "horizontal"',options:[{label:"上下布局",value:"top"},{label:"水平居左",value:"left"},{label:"水平居右",value:"right"}]},{type:"select",name:"labelAlign",label:i18n("3a8647306ee6456517b7bf9c8bc7de23"),selectFirst:!0,hiddenOn:'this.mode === "normal" || this.mode === "inline" || this.mode === "flex"',options:[{label:"水平居左",value:"left"},{label:"水平居右",value:"right"}]},getSchemaTpl("theme:select",{label:i18n("73ec114993142f627ab6c3e6706fa3c3"),name:"labelWidth",hiddenOn:'this.mode === "normal" || this.labelAlign === "top"'}),getSchemaTpl("theme:font",{label:i18n("eded9ed93a453c3f790126e30b776a22"),editorValueToken:"--Form-item",hasSenior:!1,name:"themeCss.itemLabelClassName.font"}),getSchemaTpl("theme:paddingAndMargin",{label:i18n("11d938eaa50cff1b7e59c64b891de73d"),hidePadding:!0,name:"themeCss.itemLabelClassName.padding-and-margin"}),getSchemaTpl("theme:paddingAndMargin",{label:"表单项边距",hidePadding:!0,name:"themeCss.itemClassName.padding-and-margin"}),getSchemaTpl("theme:font",{label:"静态展示文字",editorValueToken:"--Form-static",name:"themeCss.staticClassName.font",visibleOn:"!!this.static || !!this.staticOn"})]},getSchemaTpl("theme:base",{classname:"actionsControlClassName",title:"操作区样式",editorValueToken:"--Panel-footer",hideRadius:!0,hideShadow:!0,hideMargin:!0,needState:!1,visibleOn:ume}),{title:i18n("f01c3cd99ecb0c534cc47081d3433c9f"),body:[{type:"theme-cssCode",label:!1}]},getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"panelClassName",label:"Panel",visibleOn:ume}),getSchemaTpl("className",{name:"headerClassName",label:i18n("030c8cb75e9707285b28c4931bfeddc5"),visibleOn:ume}),getSchemaTpl("className",{name:"bodyClassName",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),visibleOn:ume}),getSchemaTpl("className",{name:"actionsClassName",label:i18n("e2b67a7f51c977887d2b3c2de2727509"),visibleOn:ume})]})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])]},tme.panelFormPipeOut=function(ame,nme){return __awaiter(tme,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:if(rme=((dme=ame==null?void 0:ame.api)===null||dme===void 0?void 0:dme.entity)||((ume=ame==null?void 0:ame.initApi)===null||ume===void 0?void 0:ume.entity),!rme||(ame==null?void 0:ame.dsType)!==ModelDSBuilderKey)return[2,ame];if(ime=this.dsManager.getBuilderBySchema(ame),ome=["api","initApi","body","feat"],lme=DeepDiff.diff(pick$3(nme,ome),pick$3(ame,ome)),!lme)return[2,ame];pme.label=1;case 1:return pme.trys.push([1,3,,4]),[4,ime.buildApiSchema({schema:ame,renderer:"form",sourceKey:DSFeatureEnum.View===ame.feat?"initApi":"api",feat:(fme=ame.feat)!==null&&fme!==void 0?fme:"Insert",apiSettings:{diffConfig:{enable:!0,schemaDiff:lme}}})];case 2:return sme=pme.sent(),[2,sme];case 3:return cme=pme.sent(),console.error(cme),[3,4];case 4:return[2,ame]}})})},tme.dsManager=new DSBuilderManager($P),tme}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=this,tme=this.Features.filter(function(ame){return!ame.disabled});return{title:i18n("4f2ef285e13e20f551f7111f535cde11"),mode:{mode:"horizontal",horizontal:{leftFixed:"sm"}},canRebuild:!0,className:"ae-Scaffold-Modal ae-Scaffold-Modal-content :AMISCSSWrapper",body:__spreadArray(__spreadArray([{type:"radios",name:"feat",label:i18n("7efcb0ce09e8842951c5cfd298b4e7ee"),value:DSFeatureEnum.Insert,options:tme,onChange:function(ame,nme,rme,ime){if(ame!==nme){var ome=ime.data;Object.keys(ome).forEach(function(lme){(/^(insert|edit|bulkEdit|view)Fields$/i.test(lme)||/^(insert|edit|bulkEdit|view)Api$/i.test(lme))&&ime.deleteValueByName(lme)}),ime.deleteValueByName("__fields"),ime.deleteValueByName("__relations"),ime.setValues({dsType:$P.dsManager.getDefaultBuilderKey(),initApi:DSFeatureEnum.Insert===ame||DSFeatureEnum.BulkEdit===ame?void 0:""})}}},this.dsManager.getDSSelectorSchema({onChange:function(ame,nme,rme,ime){if(ame!==nme){var ome=ime.data;Object.keys(ome).forEach(function(lme){(/^(insert|edit|bulkEdit|view)Fields$/i.test(lme)||/^(insert|edit|bulkEdit|view)Api$/i.test(lme))&&ime.deleteValueByName(lme)}),ime.deleteValueByName("__fields"),ime.deleteValueByName("__relations"),ime.setValues({initApi:DSFeatureEnum.Insert===ame||DSFeatureEnum.BulkEdit===ame?void 0:""})}return ame}})],__read$3(flatten$4(tme.map(function(ame){return $P.dsManager.buildCollectionFromBuilders(function(nme,rme){return{type:"container",className:"form-item-gap",visibleOn:"${feat === '".concat(ame.value,"' && (!dsType || dsType === '").concat(rme,"')}"),body:flatten$4([nme.makeSourceSettingForm({feat:ame.value,renderer:"form",inScaffold:!0,sourceSettings:{userOrders:!1}}),nme.makeFieldsSettingForm({feat:ame.value,renderer:"form",inScaffold:!0})])}})}))),!1),[{name:"operators",label:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),type:"checkboxes",value:["submit"],joinValues:!1,extractValue:!1,options:[FormOperatorMap.reset,FormOperatorMap.submit,FormOperatorMap.cancel]}],!1),pipeIn:function(ame){return __awaiter($P,void 0,void 0,function(){var nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return nme=(ome=ame==null?void 0:ame.dsType)!==null&&ome!==void 0?ome:this.dsManager.getDefaultBuilderKey(),rme=this.dsManager.getBuilderByKey(nme),rme?[4,rme.guessFormScaffoldConfig({schema:ame})]:[2,{dsType:nme}];case 1:return ime=lme.sent(),[2,__assign$3({},ime)]}})})},pipeOut:function(ame){return __awaiter($P,void 0,void 0,function(){var nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return nme=cloneDeep$1(this.scaffold),rme=this.dsManager.getBuilderByScaffoldSetting(ame),rme?[4,rme.buildFormSchema({feat:ame.feat,renderer:"form",inScaffold:!0,entitySource:ame==null?void 0:ame.entitySource,fallbackSchema:nme,scaffoldConfig:ame})]:[2,nme];case 1:return ime=ome.sent(),ime.__origin="scaffold",[2,ime]}})})},validate:function(ame,nme){var rme=ame.feat,ime=$P.dsManager.getBuilderByScaffoldSetting(ame),ome=ime==null?void 0:ime.getFeatValueByKey(rme??DSFeatureEnum.Insert),lme="".concat(ome,"Fields"),sme={};if((ame==null?void 0:ame.dsType)===ModelDSBuilderKey)return sme;var cme=FieldSetting.validator(nme.data[lme]);return cme&&(sme[lme]=cme),sme}}},enumerable:!1,configurable:!0}),Object.defineProperty(eme.prototype,"dynamicControls",{get:function(){return this._dynamicControls},set:function($P){if(!$P||!isObject$8($P))throw new Error(i18n("b4f035fa6f9faaa78707b72c352c6a8b"));this._dynamicControls=__assign$3(__assign$3({},this._dynamicControls),$P)},enumerable:!1,configurable:!0}),eme.prototype.guessDSFeatFromSchema=function($P){var tme=[DSFeatureEnum.Insert,DSFeatureEnum.Edit,DSFeatureEnum.BulkEdit,DSFeatureEnum.View];return $P.hasOwnProperty("feat")?tme.includes($P.feat)?$P.feat:DSFeatureEnum.Insert:$P.initApi!=null&&$P.api!=null?DSFeatureEnum.Edit:$P.initApi!=null&&$P.api==null?DSFeatureEnum.View:DSFeatureEnum.Insert},eme.prototype.filterProps=function($P,tme){return["rules"].forEach(function(ame){$P.hasOwnProperty(ame)&&($P[ame]=JSONPipeOut($P[ame],!1))}),$P},eme.prototype.afterUpdate=function($P){var tme,ame=$P.context;ame.info.renderer.name==="form"&&(!((tme=ame.diff)===null||tme===void 0)&&tme.some(function(nme){var rme;return((rme=nme.path)===null||rme===void 0?void 0:rme.join("."))==="wrapWithPanel"}))&&this.manager.buildPanels()},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime;return __awaiter(this,void 0,void 0,function(){var ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:ome=__assign$3({},jsonToJsonSchema(JSONPipeOut($P.schema.data))),lme=$P.children.concat(),ume.label=1;case 1:return lme.length?(sme=lme.shift(),cme=sme.schema,!((nme=sme.rendererConfig)===null||nme===void 0)&&nme.isFormItem&&cme.name?[4,(ime=(rme=sme.info.plugin).buildDataSchemas)===null||ime===void 0?void 0:ime.call(rme,sme,tme,ame,$P)]:[3,3]):[3,5];case 2:return dme=ume.sent(),ome.properties[cme.name]=__assign$3(__assign$3({},dme),dme!=null&&dme.$id?{}:{$id:"".concat(sme.id,"-").concat(sme.type)}),[3,4];case 3:lme.push.apply(lme,__spreadArray([],__read$3(sme.children),!1)),ume.label=4;case 4:return[3,1];case 5:return[2,ome]}})})},eme.prototype.rendererBeforeDispatchEvent=function($P,tme,ame){if(tme==="inited"){var nme=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),rme=__assign$3({$id:"formInitedData"},jsonToJsonSchema(ame.responseData));nme==null||nme.removeSchema(rme.$id),nme==null||nme.addSchema(rme)}},eme.prototype.patchSchema=function($P,tme,ame){var nme=!1,rme=__assign$3({},$P);return Array.isArray($P.actions)||$P.wrapWithPanel===!1||Array.isArray($P.body)&&$P.body.some(function(ime){var ome,lme,sme;return ime&&!!~["submit","button","button-group","reset"].indexOf(((lme=(ome=ime==null?void 0:ime.body)===null||ome===void 0?void 0:ome[0])===null||lme===void 0?void 0:lme.type)||((sme=ime==null?void 0:ime.body)===null||sme===void 0?void 0:sme.type)||ime.type)})||(nme=!0,rme=__assign$3(__assign$3({},rme),{actions:[{type:"submit",label:(ame==null?void 0:ame.translate(ame==null?void 0:ame.submitText))||$P.submitText||i18n("939d5345ad4345dbaabe14798f6ac0f1"),primary:!0}]})),_isModelComp($P)||$P.feat||(nme=!0,rme=__assign$3(__assign$3({},rme),{feat:this.guessDSFeatFromSchema($P)})),nme?rme:void 0},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme;return __awaiter(this,void 0,void 0,function(){var bme,mme,vme,gme;return __generator(this,function(yme){if(bme=tme.info.renderer,mme=["user-select","department-select"],bme.isFormItem||bme.type&&mme.includes(bme.type)||!((nme=tme.sameIdChild)===null||nme===void 0)&&nme.info.renderer.isFormItem){for(vme=$P.parent;vme&&(vme==null?void 0:vme.type)!=="crud2";)vme=vme==null?void 0:vme.parent;if((vme==null?void 0:vme.type)==="crud2"&&(($P==null?void 0:$P.type)==="form"||/^body\/\d+\/filter/.test((rme=$P.schemaPath)!==null&&rme!==void 0?rme:"")))return[2,(ome=(ime=vme.info.plugin).getAvailableContextFields)===null||ome===void 0?void 0:ome.call(ime,vme,tme,ame)];if(((lme=$P.parent)===null||lme===void 0?void 0:lme.type)==="service"&&(!((dme=(cme=(sme=$P.parent)===null||sme===void 0?void 0:sme.parent)===null||cme===void 0?void 0:cme.path)===null||dme===void 0)&&dme.endsWith("service")))return[2,(fme=(ume=$P.parent.parent.info.plugin).getAvailableContextFields)===null||fme===void 0?void 0:fme.call(ume,$P.parent.parent,tme,ame)];if(gme=this.dsManager.getBuilderBySchema($P.schema),gme&&$P.schema.api)return[2,gme.getAvailableContextFields({schema:$P.schema,sourceKey:"api",feat:(hme=(pme=$P.schema)===null||pme===void 0?void 0:pme.feat)!==null&&hme!==void 0?hme:DSFeatureEnum.Insert},tme)]}return[2]})})},eme.id="FormPlugin",eme}(BasePlugin);registerEditorPlugin(FormPlugin);var ServicePlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.rendererName="service",tme.name=i18n("985d97bfa88cbaed452ee5900ad26d45"),tme.panelTitle=i18n("985d97bfa88cbaed452ee5900ad26d45"),tme.icon="fa fa-server",tme.pluginIcon="service-plugin",tme.panelIcon="service-plugin",tme.$schema="/schemas/ServiceSchema.json",tme.isBaseComponent=!0,tme.order=-850,tme.description=i18n("9cc50da6bb17ea7ecf44c254c9b37619"),tme.searchKeywords=i18n("52f3b7dd57c2cc44b645afe6d944d07c"),tme.docLink="/amis/zh-CN/components/service",tme.tags=[i18n("73721e611daaafe5c34aa9f3f901d016")],tme.scaffold={type:"service",body:[]},tme.previewSchema={type:"service",body:[{type:"tpl",tpl:i18n("33be689a0f0de129ce37f7a96052002e"),inline:!1,className:"bg-light wrapper"}]},tme.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:render$2({type:"wrapper",size:"lg",body:{type:"tpl",tpl:i18n("33be689a0f0de129ce37f7a96052002e")}})}],tme.events=[{eventName:"init",eventLabel:i18n("2cb472ff9cad0c89a033c53996b52053"),description:i18n("76ddcc0ad85aa4be6875b73244a64faf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"fetchInited",eventLabel:i18n("f36616e35765ac3d5c9c7646e50a305d"),description:i18n("48c43999cf3908d9f5100a6d5f0b4404"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]},{eventName:"fetchSchemaInited",eventLabel:i18n("a556b5535b6b0e5925d59bbc54b58946"),description:i18n("2cfbb19c3e801c5f4a11dafa1ec7884d"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]}],tme.actions=[__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),{actionType:"rebuild",actionLabel:i18n("f885d4055567877facf0a3ff376a114e"),description:i18n("c8f0e77a9eb5de26e6ab62695d8494b6"),descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("f885d4055567877facf0a3ff376a114e"),buildLinkActionDesc(rme.manager,ame),"Schema")}},__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("8b10146a8a896b890b3796eefcc3c6d3")},getActionCommonProps("setValue"))],tme.panelBodyCreator=function(ame){var nme=tme.dsManager,rme=function(){var ime=nme.getDSSelectorSchema({type:"select",mode:"horizontal",horizontal:{justify:!0,left:"col-sm-4"},onChange:function(sme,cme,dme,ume){if(sme!==cme){var fme=ume.data;Object.keys(fme).forEach(function(pme){var hme;(!((hme=pme==null?void 0:pme.toLowerCase())===null||hme===void 0)&&hme.endsWith("fields")||pme!=null&&pme.toLowerCase().endsWith("api"))&&ume.deleteValueByName(pme)}),ume.deleteValueByName("__fields"),ume.deleteValueByName("__relations"),ume.setValueByName("api",void 0)}return sme}},{schema:ame==null?void 0:ame.schema,sourceKey:"api"}),ome=ime.value,lme=nme.buildCollectionFromBuilders(function(sme,cme){return{type:"container",visibleOn:"data.dsType == null ? '".concat(cme,"' === '").concat(ome||ApiDSBuilderKey,"' : data.dsType === '").concat(cme,"'"),body:flattenDeep$1([sme.makeSourceSettingForm({feat:"View",renderer:"service",inScaffold:!1,sourceSettings:__assign$3(__assign$3({name:"api",label:i18n("6f6f1e6feb9fa966acaddae627b73948"),mode:"horizontal"},cme==="api"||cme==="apicenter"?{horizontalConfig:{labelAlign:"left",horizontal:{justify:!0,left:4}}}:{}),{useFieldManager:cme===ModelDSBuilderKey})})])}});return __spreadArray([ime],__read$3(lme),!1)};return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:__spreadArray([getSchemaTpl("layout:originPosition",{value:"left-top"})],__read$3(rme()),!1)},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("combo-container",{type:"input-kv",mode:"normal",name:"data",label:i18n("ae76ff4dcb615d3b0232dcd10115e149")}),getSchemaTpl("apiControl",{name:"schemaApi",label:tipedLabel(i18n("270ac7e329c21eb9a5e4c342f202bbb4"),i18n("bfa178f875f63957378fc2d0bd8d0f59"))}),getSchemaTpl("initFetch",{name:"initFetchSchema",label:i18n("dd22d42f40442605fbe0c5da03203ffb"),visibleOn:'typeof this.schemaApi === "string" ? this.schemaApi : this.schemaApi && this.schemaApi.url'}),{name:"ws",type:"input-text",label:tipedLabel(i18n("eb1d029d107422d00f55c8b76e66ec75"),i18n("470e0b39b2486883a10c1048f2df9f40"))},{type:"js-editor",allowFullscreen:!0,name:"dataProvider",label:tipedLabel(i18n("7481babe858320dd6a4adcf307fd151d"),i18n("3bfc17446f0456f9692f25fc90383ec1")),placeholder:i18n("ec9b680403aab2f0498badb090f04364")}]},{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("visible"),getSchemaTpl("hidden")]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className")]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])},tme.panelFormPipeOut=function(ame,nme){return __awaiter(tme,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:if(rme=(dme=ame==null?void 0:ame.api)===null||dme===void 0?void 0:dme.entity,!rme||(ame==null?void 0:ame.dsType)!==ModelDSBuilderKey)return[2,ame];if(ime=this.dsManager.getBuilderBySchema(ame),ome=["api"],lme=DeepDiff.diff(pick$3(nme,ome),pick$3(ame,ome)),!lme)return[2,ame];ume.label=1;case 1:return ume.trys.push([1,3,,4]),[4,ime.buildApiSchema({schema:ame,renderer:"service",sourceKey:"api",apiSettings:{diffConfig:{enable:!0,schemaDiff:lme}}})];case 2:return sme=ume.sent(),[2,sme];case 3:return cme=ume.sent(),console.error(cme),[3,4];case 4:return[2,ame]}})})},tme.dsManager=new DSBuilderManager($P),tme}return eme.prototype.patchSchema=function($P){return $P.hasOwnProperty("dsType")&&$P.dsType!=null&&typeof $P.dsType=="string"?$P:__assign$3(__assign$3({},$P),{dsType:ApiDSBuilderKey})},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome,lme;return __awaiter(this,void 0,void 0,function(){var sme,cme,dme,ume,fme;return __generator(this,function(pme){switch(pme.label){case 0:sme=__assign$3({},jsonToJsonSchema(JSONPipeOut((nme=$P.schema.data)!==null&&nme!==void 0?nme:{}))),cme=$P.children.concat(),pme.label=1;case 1:return cme.length?(dme=cme.shift(),ume=dme.schema,!((rme=dme.rendererConfig)===null||rme===void 0)&&rme.isFormItem&&(ume!=null&&ume.name)?[4,(ome=(ime=dme.info.plugin).buildDataSchemas)===null||ome===void 0?void 0:ome.call(ime,dme,void 0,ame,$P)]:[3,3]):[3,5];case 2:return fme=pme.sent(),sme.properties[ume.name]=__assign$3(__assign$3({},fme),fme!=null&&fme.$id?{}:{$id:"".concat(dme.id,"-").concat(dme.type)}),[3,4];case 3:!((lme=dme.rendererConfig)===null||lme===void 0)&&lme.storeType||cme.push.apply(cme,__spreadArray([],__read$3(dme.children),!1)),pme.label=4;case 4:return[3,1];case 5:return[2,sme]}})})},eme.prototype.rendererBeforeDispatchEvent=function($P,tme,ame){if(tme==="fetchInited"){var nme=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),rme=__assign$3({$id:"serviceFetchInitedData"},jsonToJsonSchema(ame.responseData));nme==null||nme.removeSchema(rme.$id),nme==null||nme.addSchema(rme)}},eme.prototype.getAvailableContextFields=function($P,tme,ame){return __awaiter(this,void 0,void 0,function(){var nme;return __generator(this,function(rme){return nme=this.dsManager.getBuilderBySchema($P.schema),nme&&$P.schema.api?[2,nme.getAvailableContextFields({schema:$P.schema,sourceKey:"api",feat:DSFeatureEnum.List},tme)]:[2]})})},eme.id="ServicePlugin",eme}(BasePlugin);registerEditorPlugin(ServicePlugin);var _a,_b,_c,_d,_e,_f,_g$1M,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,Validators=[],ValidationGroup;(function(x_){x_.Pattern=i18n("97d07614380da93d257f9fbf81aa56fb"),x_.Number=i18n("55d4790c5d819cd0462cbe89561b0dd4"),x_.Regex=i18n("ed3dd0bfa89500c5feb306cd4d9db56c"),x_.Others=i18n("0d98c74797e49d00bcc4c17c9d557a2b")})(ValidationGroup||(ValidationGroup={}));var ValidTagMatchType;(function(x_){x_[x_.isDefault=1]="isDefault",x_[x_.isMore=2]="isMore",x_[x_.isBuiltIn=3]="isBuiltIn"})(ValidTagMatchType||(ValidTagMatchType={}));var registerValidator=function(){for(var x_=[],eme=0;eme<arguments.length;eme++)x_[eme]=arguments[eme];Validators.push.apply(Validators,__spreadArray([],__read$3(x_),!1))},getValidatorsByTag=function(x_){var eme={},$P={},tme={};return Validators.forEach(function(ame){var nme=ame.tag[x_];if(nme!=null){nme===ValidTagMatchType.isDefault?eme[ame.name]=ame:nme===ValidTagMatchType.isMore?$P[ame.name]=ame:nme===ValidTagMatchType.isBuiltIn&&(tme[ame.name]=ame);return}nme=ame.tag[ValidatorTag.All],nme!=null&&(nme===ValidTagMatchType.isDefault?eme[ame.name]=ame:nme===ValidTagMatchType.isMore?$P[ame.name]=ame:nme===ValidTagMatchType.isBuiltIn&&(tme[ame.name]=ame))}),{defaultValidators:eme,moreValidators:$P,builtInValidators:tme}},getValidator=function(x_){return Validators.find(function(eme){return eme.name===x_})},ValidatorTag;(function(x_){x_.All="0",x_.Text="1",x_.MultiSelect="2",x_.Check="3",x_.Email="4",x_.Password="5",x_.URL="6",x_.Number="7",x_.File="8",x_.Date="9",x_.Code="10",x_.Tree="11",x_.Phone="12",x_.Tel="13"})(ValidatorTag||(ValidatorTag={}));registerValidator.apply(void 0,__spreadArray([{label:i18n("537b39a8b56fdc27a5fdd70aa032d3bc"),name:"required",tag:(_a={},_a[ValidatorTag.Text]=ValidTagMatchType.isDefault,_a[ValidatorTag.File]=ValidTagMatchType.isDefault,_a[ValidatorTag.MultiSelect]=ValidTagMatchType.isDefault,_a[ValidatorTag.Date]=ValidTagMatchType.isDefault,_a[ValidatorTag.Code]=ValidTagMatchType.isDefault,_a[ValidatorTag.Email]=ValidTagMatchType.isDefault,_a[ValidatorTag.Password]=ValidTagMatchType.isDefault,_a[ValidatorTag.URL]=ValidTagMatchType.isDefault,_a[ValidatorTag.Tree]=ValidTagMatchType.isDefault,_a[ValidatorTag.Phone]=ValidTagMatchType.isDefault,_a)},{label:i18n("cff1ec632eaf35f64791615e15ce6d76"),name:"isEmail",group:ValidationGroup.Pattern,message:i18n("1b7e06ef04d7167e174eb6929421592f"),tag:(_b={},_b[ValidatorTag.Email]=ValidTagMatchType.isBuiltIn,_b[ValidatorTag.Text]=ValidTagMatchType.isMore,_b)},{label:i18n("fab6f9029822dea7838bf9908d7f5c09"),name:"isUrl",group:ValidationGroup.Pattern,message:i18n("87c91ce706ab845b55ce95372265b92e"),tag:(_c={},_c[ValidatorTag.URL]=ValidTagMatchType.isBuiltIn,_c[ValidatorTag.Text]=ValidTagMatchType.isMore,_c)},{label:i18n("1111c44adfa40fe9cb22797d2c1e37e8"),name:"isAlpha",group:ValidationGroup.Pattern,message:i18n("48e2aca8e6347b008b6fbdb48fc4b597"),tag:(_d={},_d[ValidatorTag.Text]=ValidTagMatchType.isMore,_d)},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),name:"isNumeric",group:ValidationGroup.Number,message:i18n("de66a286057d4e3f1ee2d9bccbd48ce5"),tag:(_e={},_e[ValidatorTag.Number]=ValidTagMatchType.isDefault,_e[ValidatorTag.Text]=ValidTagMatchType.isMore,_e)},{label:i18n("725bf3485a0456cf7f65a507ce67254b"),name:"isAlphanumeric",group:ValidationGroup.Pattern,message:i18n("ae344073ea6ca9ce742899cdf6d3e106"),tag:(_f={},_f[ValidatorTag.Text]=ValidTagMatchType.isMore,_f)},{label:i18n("96c4ea83892a3227a2aa5b8f3759bca4"),name:"isInt",group:ValidationGroup.Number,message:i18n("2b702fb5b95d47944246f79ae4032281"),tag:(_g$1M={},_g$1M[ValidatorTag.Number]=ValidTagMatchType.isDefault,_g$1M[ValidatorTag.Text]=ValidTagMatchType.isMore,_g$1M)},{label:i18n("35962d17a3fba5f4802d7845695a3e72"),name:"isFloat",group:ValidationGroup.Number,message:i18n("84f46c9b82c3c8fe276dfa65173c59bb"),tag:(_h={},_h[ValidatorTag.Number]=ValidTagMatchType.isDefault,_h[ValidatorTag.Text]=ValidTagMatchType.isMore,_h)},{label:i18n("28e8e048490110c8dd8e2ad6af324980"),name:"isLength",group:ValidationGroup.Pattern,message:i18n("a718dcd3a16bee2a4086244ef1eb0ab4"),tag:(_j={},_j[ValidatorTag.Number]=ValidTagMatchType.isDefault,_j[ValidatorTag.Text]=ValidTagMatchType.isMore,_j),schema:[{type:"input-number",name:"value",label:i18n("ab90c616dd114af087b31b90d3cb4063"),placeholder:i18n("41e82a5a0e53ba94d1160ee855c72a7a")}]},{label:i18n("8c4ee6022f1525097a1141acad094d4e"),name:"maxLength",group:ValidationGroup.Pattern,message:i18n("c323e3527a805cfdd264700fdf013daf"),tag:(_k={},_k[ValidatorTag.Text]=ValidTagMatchType.isDefault,_k),schema:[{type:"input-number",name:"value",label:i18n("ab90c616dd114af087b31b90d3cb4063")}]},{label:i18n("17971609e210034c0d6a25b0186e2b7b"),name:"minLength",group:ValidationGroup.Pattern,message:i18n("c762cefa0ff423010af0a943c04d603b"),tag:(_l={},_l[ValidatorTag.Text]=ValidTagMatchType.isDefault,_l),schema:[{type:"input-number",name:"value",label:i18n("ab90c616dd114af087b31b90d3cb4063")}]},{label:i18n("5da893141114a59da868052b3a17a79a"),name:"maximum",group:ValidationGroup.Number,message:i18n("b95aed5c6f2c8e49e23b382ac3d593ba"),tag:(_m={},_m[ValidatorTag.Number]=ValidTagMatchType.isDefault,_m[ValidatorTag.Text]=ValidTagMatchType.isMore,_m),schema:[{type:"input-number",name:"value",label:i18n("5da893141114a59da868052b3a17a79a")}]},{label:i18n("c322edb884724d04842fc35f4d29a24e"),name:"minimum",group:ValidationGroup.Number,message:i18n("fd11733fbabaf2ae3cf1fcd3fe385cc5"),tag:(_o={},_o[ValidatorTag.Number]=ValidTagMatchType.isDefault,_o[ValidatorTag.Text]=ValidTagMatchType.isMore,_o),schema:[{type:"input-number",name:"value",label:i18n("c322edb884724d04842fc35f4d29a24e")}]},{label:i18n("92448a35f41de3a1fa69135acfed5ce9"),name:"isPhoneNumber",group:ValidationGroup.Pattern,message:i18n("161278fb2c71e5a8aa8aac50f230233d"),tag:(_p={},_p[ValidatorTag.Text]=ValidTagMatchType.isMore,_p[ValidatorTag.Phone]=ValidTagMatchType.isBuiltIn,_p)},{label:i18n("193a8c42c1c373f385a4c7b33ffc381e"),name:"isTelNumber",group:ValidationGroup.Pattern,message:i18n("ba42949accfe87c20e6c2486cd065dd2"),tag:(_q={},_q[ValidatorTag.Text]=ValidTagMatchType.isMore,_q[ValidatorTag.Tel]=ValidTagMatchType.isBuiltIn,_q)},{label:i18n("6102d474314f27577d89e85b4c6cc4a5"),name:"isZipcode",group:ValidationGroup.Pattern,message:i18n("1d2c5048143328e21cb9c2dd84b696fb"),tag:(_r={},_r[ValidatorTag.Text]=ValidTagMatchType.isMore,_r)},{label:"身份证号码(18/15位)",name:"isId",group:ValidationGroup.Pattern,message:i18n("038b3ed111e87b56572f3945a1b0e02c"),tag:(_s={},_s[ValidatorTag.Text]=ValidTagMatchType.isMore,_s)},{label:"身份证号码(18位)",name:"isId18",group:ValidationGroup.Pattern,message:i18n("038b3ed111e87b56572f3945a1b0e02c"),tag:(_t={},_t[ValidatorTag.Text]=ValidTagMatchType.isMore,_t)},{label:i18n("8dbec4f0c05be45a8acf6a5ae9d1f880"),name:"isJson",group:ValidationGroup.Pattern,message:i18n("e93275245d529c486018e47136bfae2e"),tag:(_u={},_u[ValidatorTag.Text]=ValidTagMatchType.isMore,_u)},{label:i18n("eb242bc7524c797fb1aee2344dec92da"),name:"equals",group:ValidationGroup.Others,message:i18n("acf719549561f28f38bf750a64cda508"),tag:(_v={},_v[ValidatorTag.All]=ValidTagMatchType.isMore,_v[ValidatorTag.Password]=ValidTagMatchType.isDefault,_v),schema:[{type:"input-text",name:"value",label:i18n("2c8c25bb51dfd9ddfc74fd75a8a380a1")}]},{label:i18n("c17d9577233793976d3902c117eed82b"),name:"equalsField",group:ValidationGroup.Others,message:i18n("e027500d91d46a962036f63c09492c6c"),tag:(_w={},_w[ValidatorTag.All]=ValidTagMatchType.isMore,_w[ValidatorTag.Password]=ValidTagMatchType.isDefault,_w),schema:[{type:"input-text",name:"value",label:i18n("d314558953b3c76adb7e131aaec8bd86")}]}],__read$3(Array(5).fill(null).map(function(x_,eme){var $P,tme=eme===0?"":eme;return{label:i18n("b457177c184722b655954a08cf3f71ca")+tme,name:"matchRegexp"+tme,group:ValidationGroup.Regex,message:i18n("d01886eeef1de19f2e99617017f4def8"),tag:($P={},$P[ValidatorTag.All]=ValidTagMatchType.isMore,$P),schema:[{type:"input-text",name:"value",label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),placeholder:i18n("859102d8ced9928cc71bb225961171bf"),prefix:"/",suffix:"/"}]}})),!1));var inputStateTpl=function(x_,eme,$P){eme===void 0&&(eme="");var tme=($P==null?void 0:$P.state)||[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:"选中",value:"focused"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"disabled"}],ame=__spreadArray([{type:"select",name:"__editorState".concat(x_),label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:tme,hiddenOn:($P==null?void 0:$P.hiddenOn)||!1}],__read$3(tme.map(function(nme){return{type:"container",visibleOn:"${__editorState".concat(x_," == '").concat(nme.value,"'")+(nme.value==="default"?" || !__editorState".concat(x_):"")+"}",hiddenOn:($P==null?void 0:$P.hiddenOn)||!1,body:inputStateFunc$1(nme.value,x_,nme.token||eme,$P)}})),!1);return ame},inputStateFunc$1=function(x_,eme,$P,tme){var ame,nme,rme,ime,ome,lme=x_==="focused"?"active":x_;return $P&&($P.includes("${state}")?$P=$P.replace(/\${state}/g,lme):$P="".concat($P,"-").concat(lme)),__spreadArray([!(tme!=null&&tme.hideFont)&&getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"".concat(eme,".font:").concat(x_),editorValueToken:((ame=tme==null?void 0:tme.fontToken)===null||ame===void 0?void 0:ame.call(tme,lme))||$P,state:x_}),!(tme!=null&&tme.hideBackground)&&getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"".concat(eme,".background:").concat(x_),labelMode:"input",needGradient:!0,needImage:!0,editorValueToken:((nme=tme==null?void 0:tme.backgroundToken)===null||nme===void 0?void 0:nme.call(tme,lme))||$P&&"".concat($P,"-bg-color"),state:x_}),!(tme!=null&&tme.hideBorder)&&getSchemaTpl("theme:border",{name:"".concat(eme,".border:").concat(x_),editorValueToken:((rme=tme==null?void 0:tme.borderToken)===null||rme===void 0?void 0:rme.call(tme,lme))||$P,state:x_}),!(tme!=null&&tme.hidePadding)&&!(tme!=null&&tme.hideMargin)&&getSchemaTpl("theme:paddingAndMargin",{name:"".concat(eme,".padding-and-margin:").concat(x_),editorValueToken:((ime=tme==null?void 0:tme.pmToken)===null||ime===void 0?void 0:ime.call(tme,lme))||$P,state:x_,hidePadding:tme==null?void 0:tme.hidePadding,hideMargin:tme==null?void 0:tme.hideMargin}),!(tme!=null&&tme.hideRadius)&&getSchemaTpl("theme:radius",{name:"".concat(eme,".radius:").concat(x_),editorValueToken:((ome=tme==null?void 0:tme.radiusToken)===null||ome===void 0?void 0:ome.call(tme,lme))||$P,state:x_})],__read$3((tme==null?void 0:tme.schema)||[]),!1).filter(Boolean)},buttonStateFunc=function(x_,eme){return[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.className.font:".concat(eme),visibleOn:x_,editorValueToken:{color:'--button-${level || "default"}-'.concat(eme,"-font-color"),"*":'--button-size-${size || "default"}'},state:eme}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.className.background:".concat(eme),labelMode:"input",needGradient:!0,needImage:!0,visibleOn:x_,editorValueToken:'--button-${level || "default"}-'.concat(eme,"-bg-color"),state:eme}),getSchemaTpl("theme:border",{name:"themeCss.className.border:".concat(eme),visibleOn:x_,editorValueToken:'--button-${level || "default"}-'.concat(eme),state:eme}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.className.padding-and-margin:".concat(eme),visibleOn:x_,editorValueToken:'--button-size-${size || "default"}',state:eme}),getSchemaTpl("theme:radius",{name:"themeCss.className.radius:".concat(eme),visibleOn:x_,editorValueToken:'--button-size-${size || "default"}',state:eme}),getSchemaTpl("theme:select",{label:i18n("7893f221dae53be8e3bfe72d2eb8a240"),name:"themeCss.iconClassName.iconSize:".concat(eme),visibleOn:x_,editorValueToken:'--button-size-${size || "default"}-icon-size',state:eme})]},isText='this.type === "input-text"',isPassword='this.type === "input-password"',isUrl='this.type === "input-url"',TextControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-text",$P.$schema="/schemas/TextControlSchema.json",$P.order=-600,$P.searchKeywords=i18n("997a27d508152023fd04b7227b531681"),$P.name=i18n("5ac57ce6df8c2a19668b7429aebd9f33"),$P.isBaseComponent=!0,$P.icon="fa fa-terminal",$P.pluginIcon="input-text-plugin",$P.description=i18n("f222f5413d3854897741e0ec4b0d2c7b"),$P.docLink="/amis/zh-CN/components/form/input-text",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"text"},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("5ac57ce6df8c2a19668b7429aebd9f33"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("277daf93adca7889605057f566b584bf"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("d5c135b5a4aed5dc39ef846a6f502d4f")})}}}}]}},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("829c57d7064cad467ec466ae26244ebb"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("d5c135b5a4aed5dc39ef846a6f502d4f")})}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("40fa260f07ed5a14f9516c0c37fbfd4e"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("d5c135b5a4aed5dc39ef846a6f502d4f")})}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("3086da6514671fb8950171bf3af4ab2d")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return tme.info.renderer,getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("inputType",{value:$P.scaffold.type,onChange:function(ame,nme,rme,ime){var ome=ime.data,lme=ome.showCounter,sme=ome.validations,cme=ome.validationErrors,dme=cme===void 0?{}:cme,ume=ome.autoComplete,fme=nme==="input-email",pme=nme==="input-url";fme&&(sme&&delete sme.isEmail,dme&&delete dme.isEmail),pme&&(sme&&delete sme.isUrl,dme&&delete dme.isUrl),ime.setValues({type:ame,showCounter:["input-url","input-email"].includes(ame)?void 0:!!lme,autoComplete:["input-text"].includes(ame)?ume:void 0}),ime.changeValue("validations",__assign$3({},sme)),ime.changeValue("validationErrors",__assign$3({},dme))}}),getSchemaTpl("tplFormulaControl",{name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087")}),getSchemaTpl("clearable"),getSchemaTpl("showCounter",{visibleOn:"".concat(isText," || ").concat(isPassword)}),{name:"maxLength",label:tipedLabel(i18n("0aefac04b467ce313ca6b05e33c6145a"),i18n("188676cb26835b8e4d8ea568467c55cd")),type:"input-number",min:0,step:1},{name:"addOn",label:tipedLabel("AddOn",i18n("9306b956ca5950203ee49a2680cac63d")),type:"ae-switch-more",mode:"normal",formType:"extend",title:"AddOn",bulk:!1,defaultData:{label:i18n("fa966345577ba81af19408f203db968f"),type:"button"},form:{body:[{name:"type",label:i18n("226b0912184333c81babf2f1894ec0c1"),type:"button-group-select",inputClassName:"items-center",pipeIn:defaultValue("button"),options:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"text"},{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"},{label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),value:"submit"}]},getSchemaTpl("horizontal-align",{name:"position",pipeIn:defaultValue("right")}),getSchemaTpl("addOnLabel"),getSchemaTpl("icon")]}},getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),visibleOn:"".concat(isText," && (this.options  || this.autoComplete || this.source)"),body:[getSchemaTpl("optionControlV2"),getSchemaTpl("multiple",{visibleOn:"".concat(isText," || ").concat(isUrl)}),{type:"ae-Switch-More",mode:"normal",label:tipedLabel(i18n("d548d3e938088d5d469a28c20e939750"),i18n("424cd425082360322678a5c8d6910b80")),visibleOn:isText,formType:"extend",defaultData:{autoComplete:{method:"get",url:""}},form:{body:[getSchemaTpl("apiControl",{name:"autoComplete",label:i18n("54ea89b497ec3bb319c68844dfa3687f"),description:"",visibleOn:"this.autoComplete !== false"}),{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("26ff46d82166741297ce666b2792af85")),type:"input-text",name:"labelField",placeholder:i18n("6d4ce0631f37676a887c9599691fabec")},{label:i18n("2e01f5f5889e33d003bec7857cd38445"),type:"input-text",name:"valueField",placeholder:i18n("959c27193eb0a41d01f4b53dcc4b9245")}]}}]},getSchemaTpl("status",{isFormItem:!0,readonly:!0}),getSchemaTpl("validation",{tag:function(ame){switch(ame.type){case"input-password":return ValidatorTag.Password;case"input-email":return ValidatorTag.Email;case"input-url":return ValidatorTag.URL;default:return ValidatorTag.Text}}})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"props"}))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem"),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:i18n("f7e3d7e3146bb53b5e6f09f7c90dea3a"),body:__spreadArray([],__read$3(inputStateTpl("themeCss.inputControlClassName","--input-default")),!1)},{title:i18n("a39a2916d17f2b9ba11853066b4225f3"),visibleOn:'this.addOn && this.addOn.type === "text"',body:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.addOnClassName.font:default"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.addOnClassName.padding-and-margin:default"})]},getSchemaTpl("theme:cssCode",{themeClass:[{name:i18n("9b6425cd2d496c9cb5a6c6b8ff125d1b"),value:"",className:"inputControlClassName",state:["default","hover","active"]},{name:"addOn",value:"addOn",className:"addOnClassName"}],isFormItem:!0})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme=resolveOptionType($P.schema),_me={type:yme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),rawType:RAW_TYPE_MAP[$P.schema.type]||"string",originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return!((ome=$P.schema)===null||ome===void 0)&&ome.options&&(((lme=$P.schema)===null||lme===void 0?void 0:lme.joinValues)===!1&&(_me=__assign$3(__assign$3({},_me),{type:"object",title:((sme=$P.schema)===null||sme===void 0?void 0:sme.label)||((cme=$P.schema)===null||cme===void 0?void 0:cme.name),properties:(ame={},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((ume=$P.schema)===null||ume===void 0?void 0:ume.valueField)||"value"]={type:yme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((fme=$P.schema)===null||fme===void 0)&&fme.multiple&&(!((pme=$P.schema)===null||pme===void 0)&&pme.extractValue?_me={type:"array",title:((hme=$P.schema)===null||hme===void 0?void 0:hme.label)||((bme=$P.schema)===null||bme===void 0?void 0:bme.name)}:((mme=$P.schema)===null||mme===void 0?void 0:mme.joinValues)===!1&&(_me={type:"array",title:((vme=$P.schema)===null||vme===void 0?void 0:vme.label)||((gme=$P.schema)===null||gme===void 0?void 0:gme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:_me.properties},originalValue:_me.originalValue}))),_me},eme.id="TextControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(TextControlPlugin);var TextareaControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="textarea",$P.$schema="/schemas/TextareaControlSchema.json",$P.name=i18n("c6a16ef980efc2ac48c58727e5bade81"),$P.isBaseComponent=!0,$P.icon="fa fa-paragraph",$P.pluginIcon="textarea-plugin",$P.description=i18n("2af7e3952d7430d1e4c86ea5aca4e4fa"),$P.searchKeywords=i18n("828476b63e65ac62976920fc753a3071"),$P.docLink="/amis/zh-CN/components/form/textarea",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"textarea",label:i18n("15d169d28cd48c97fe751e4cc92ca926"),name:"textarea"},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:__assign$3({},$P.scaffold)},$P.notRenderFormZone=!0,$P.panelTitle=i18n("15d169d28cd48c97fe751e4cc92ca926"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("5bc28acd4afb712dcbc234927357cd87"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("d5c135b5a4aed5dc39ef846a6f502d4f")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("d5c135b5a4aed5dc39ef846a6f502d4f")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("f7daf85b4501d9d2aa048f85618b3f1f")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("3086da6514671fb8950171bf3af4ab2d")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("textareaDefaultValue"),getSchemaTpl("switch",{name:"trimContents",pipeIn:defaultValue(!0),label:tipedLabel(i18n("cd7f479dd052edc1261261c15fb0b50f"),i18n("d3a8fe0d542476cf7989ef9e69cdd6f7"))}),getSchemaTpl("showCounter"),{name:"maxLength",label:tipedLabel(i18n("0aefac04b467ce313ca6b05e33c6145a"),i18n("188676cb26835b8e4d8ea568467c55cd")),type:"input-number",min:0,step:1},getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0,readonly:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Text})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{schema:[{type:"input-number",name:"minRows",value:3,label:i18n("829d96cf23f19759e4ef988fb5320032"),min:1},{type:"input-number",name:"maxRows",value:20,label:i18n("c0afd6005e68838e37e26dc7c34cf368"),min:1}]}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"多行文本样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.inputControlClassName","--input-textarea")),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="TextareaControlPlugin",eme}(BasePlugin);registerEditorPlugin(TextareaControlPlugin);var NumberControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-number",$P.$schema="/schemas/NumberControlSchema.json",$P.name=i18n("1e65b8181e9a40e76b86e2c261cafbe0"),$P.isBaseComponent=!0,$P.icon="fa fa-sort-numeric-asc",$P.pluginIcon="input-number-plugin",$P.description=i18n("c45782c425bfc31824af8129bd6e0282"),$P.searchKeywords=i18n("53069052573de671c6e5108de745b036"),$P.docLink="/amis/zh-CN/components/form/input-number",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-number",label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),name:"number",showSteps:!0,keyboard:!0},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:88})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("1e65b8181e9a40e76b86e2c261cafbe0"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("b2a5322c8dbc0d8343315cafbd39b7ce"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"number",title:i18n("6d829f061ed82a688f2669c54dd83301")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("5f914e36c49db618d06981df7b3c4d81"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"number",title:i18n("6d829f061ed82a688f2669c54dd83301")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("efdd0d8923130f281b54506eef2121cf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"number",title:i18n("6d829f061ed82a688f2669c54dd83301")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("0849471829a565a8af6b70a46346e574")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("770fe9e7899cd310b035ef50a39ab2ae")},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"switch",label:tipedLabel(i18n("32f13c9db34f638c2c5cf2bf19326ebf"),i18n("8572d14f815d840bd9e940cd8ee4e380")),name:"keyboard",value:!0,inputClassName:"is-inline"},getSchemaTpl("kilobitSeparator"),getSchemaTpl("valueFormula",{rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{displayMode:"base"})},valueType:"number"}),getSchemaTpl("valueFormula",{name:"min",rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:tme==null?void 0:tme.schema.min,displayMode:"base"})},needDeleteProps:["min"],label:i18n("c322edb884724d04842fc35f4d29a24e"),valueType:"number"}),getSchemaTpl("valueFormula",{name:"max",rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:tme==null?void 0:tme.schema.max,displayMode:"base"})},needDeleteProps:["max"],label:i18n("5da893141114a59da868052b3a17a79a"),valueType:"number"}),{type:"switch",label:"显示上下按钮",name:"showSteps",value:!0,inputClassName:"is-inline"},{type:"input-number",name:"step",label:i18n("d26404c10871481ab6bbb4837a34ae95"),min:0,value:1,precision:"${precision}",visibleOn:"${showSteps}",strictMode:!1},{type:"input-number",name:"precision",label:tipedLabel(i18n("e284e64008fd8b066da04bca335d032a"),i18n("b317cbf67c94f986fc44cf4cbc2280c6")),min:1,max:100},getSchemaTpl("prefix"),getSchemaTpl("suffix"),getSchemaTpl("combo-container",{type:"combo",label:i18n("7915dcc78c28ed3cda8fc949a86e4806"),mode:"normal",name:"unitOptions",items:[{placeholder:i18n("97d07614380da93d257f9fbf81aa56fb"),type:ame?"input-text-i18n":"input-text",name:"label"},{placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),type:"input-text",name:"value"}],draggable:!1,multiple:!0,pipeIn:function(nme){return Array.isArray(nme)?nme.map(function(rme){return typeof rme=="string"?{label:rme,value:rme}:rme}):[]},pipeOut:function(nme){if(nme.length)return nme.map(function(rme){return rme.value?rme:{label:rme.label,value:rme.label}})}}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"props"}))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{schema:[{label:i18n("8c80ed1f85135cc9153d0b7406ac5b38"),name:"displayMode",type:"select",pipeIn:defaultValue("base"),options:[{label:i18n("0a8c852e27763a18ce5b72a87ba8b5ba"),value:"base"},{label:i18n("de93563a076f72b3e919870c9dad9935"),value:"enhance"}]}]}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:i18n("bade9c4e0b8a75a251c1a2760571d3c3"),body:__spreadArray([],__read$3(inputStateTpl("themeCss.inputControlClassName",'--inputNumber-${displayMode || "base"}')),!1)},getSchemaTpl("theme:singleCssCode",{selectors:[{label:"表单项基本样式",isRoot:!0,selector:".cxd-from-item"},{label:i18n("35633d4bcf019258d4a5b927e8644bed"),selector:".cxd-Form-label"},{label:"数字框基本样式",selector:".cxd-Number"},{label:i18n("f7e3d7e3146bb53b5e6f09f7c90dea3a"),selector:".cxd-Number-input"}]})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme;return{type:"number",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),rawType:RAW_TYPE_MAP[$P.schema.type]||"string",originalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value}},eme.id="NumberControlPlugin",eme}(BasePlugin);registerEditorPlugin(NumberControlPlugin);var SelectControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.name=i18n("006ded9fa277cf030592021f595a07d5"),$P.panelTitle=i18n("006ded9fa277cf030592021f595a07d5"),$P.rendererName="select",$P.icon="fa fa-th-list",$P.panelIcon="fa fa-th-list",$P.pluginIcon="select-plugin",$P.isBaseComponent=!0,$P.panelJustify=!0,$P.notRenderFormZone=!0,$P.$schema="/schemas/SelectControlSchema.json",$P.description=i18n("f2fc416c7d95a93a8da621f760be8417"),$P.searchKeywords=i18n("22d18bf0c476ebe7aa9303108677ff2e"),$P.docLink="/amis/zh-CN/components/form/select",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"select",label:i18n("ea15ae2b7fba76c83eec6d0986d15197"),name:"select",options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.events=function(tme){return __spreadArray(__spreadArray([{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(ame){var nme=resolveOptionEventDataSchame(ame),rme=nme.value,ime=nme.selectedItems,ome=nme.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:rme,selectedItems:ime,items:ome}}}}]}},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:function(ame){var nme=resolveOptionEventDataSchame(ame),rme=nme.value,ime=nme.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:rme,items:ime}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:function(ame){var nme=resolveOptionEventDataSchame(ame),rme=nme.value,ime=nme.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:rme,items:ime}}}}]}}],__read$3(OPTION_EDIT_EVENTS),!1),__read$3(OPTION_EDIT_EVENTS_OLD(tme)),!1)},$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),id:"properties-basic",body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("clearable"),getSchemaTpl("searchable"),getSchemaTpl("multiple",{body:[getSchemaTpl("switch",{label:i18n("e19c0792886a147d74fc662d7af138bb"),name:"valuesNoWrap"}),{type:"input-number",name:"maxTagCount",label:tipedLabel(i18n("b28aa9c36d0b506a71aa78b628e796c6"),i18n("2b23767de575e27fc9e4e0949e885f81"))}]}),getSchemaTpl("checkAll"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),id:"properties-options",body:[getSchemaTpl("optionControlV2"),getSchemaTpl("selectFirst",{onChange:function(ame,nme,rme,ime){ame&&ime.deleteValueByName("value")}}),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return __assign$3(__assign$3({},ame),{type:"input-text"})},pipeOut:undefinedPipeOut,needDeleteProps:["source"],visibleOn:"this.selectFirst !== true && this.source != null"}),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),getSchemaTpl("optionsMenuTpl",{manager:$P.manager,onChange:function(ame){}}),getSchemaTpl("optionAddControl",{manager:$P.manager}),getSchemaTpl("optionEditControl",{manager:$P.manager}),getSchemaTpl("optionDeleteControl")]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("switch",{label:tipedLabel(i18n("406af2b98e6210cd42d7f824cb6dfd16"),i18n("fa8d03e8b5458c1a1d742736bc26e25b")),name:"showInvalidMatch"}),getSchemaTpl("virtualThreshold"),getSchemaTpl("virtualItemHeight")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem"),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选择框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.selectControlClassName","--select-base")),!1)},{title:"下拉框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.selectPopoverClassName","--select-base-${state}-option",{state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:"选中",value:"focused"}]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),rawType:RAW_TYPE_MAP[$P.schema.type]||"string",originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.id="SelectControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(SelectControlPlugin);var NestedSelectControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="nested-select",$P.$schema="/schemas/NestedSelectControlSchema.json",$P.name=i18n("24d9de25721d1fb0ecf89ef81c43d877"),$P.isBaseComponent=!0,$P.icon="fa fa-indent",$P.pluginIcon="nested-select-plugin",$P.description=i18n("c65c9862813c7a66c0df52e301e0e1d1"),$P.docLink="/amis/zh-CN/components/form/nestedselect",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"nested-select",label:i18n("24d9de25721d1fb0ecf89ef81c43d877"),name:"nestedSelect",onlyChildren:!0,options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B",children:[{label:i18n("03cd388fe29a4fc116c0021e496a113a"),value:"b1"},{label:i18n("fb00d1c1a65d3739c03a0b2715168327"),value:"b2"}]},{label:i18n("57a6105deead3fec79028cce7bfa2004"),value:"C",children:[{label:i18n("353ae08afdb3d0a3587e9b27ca239c33"),value:"c1"},{label:i18n("bea7ad76f0f321124ff614a099cb9a85"),value:"c2"}]}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("24d9de25721d1fb0ecf89ef81c43d877"),$P.notRenderFormZone=!0,$P.panelDefinitions={options:{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:"group",body:[getSchemaTpl("optionsLabel"),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]},{$ref:"options",label:i18n("72453d792655604f1fab821146133d7d"),name:"children",addButtonText:i18n("210da23d108e85b2f0bbfa85846cb792")}]}},$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return tme.info.renderer,getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("clearable"),{type:"ae-Switch-More",name:"searchable",label:i18n("dbdae74eb12668e2b9568b013bf27d45"),mode:"normal",value:!1,hiddenOnDefault:!0,formType:"extend",form:{body:[{type:"input-text",name:"noResultsText",label:tipedLabel(i18n("ae45cdb51c795df3b046f71afe3611bf"),i18n("601bb29fe72e56930dea03ae3e1aa555"))}]}},getSchemaTpl("onlyLeaf"),[{type:"switch",label:i18n("e3be7b8a459a08fec8f378a0660b642b"),name:"multiple",value:!1,inputClassName:"is-inline"},{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.multiple",body:[{type:"switch",label:tipedLabel(i18n("6a7f7d89c8f1f3e6aab0962ff920b145"),i18n("c23eb92d1f249452c3ff3ee13738b47a")),horizontal:{left:6,justify:!0},name:"onlyChildren",inputClassName:"is-inline",visibleOn:"!this.onlyLeaf",pipeIn:function(ame){return!ame},pipeOut:function(ame){return!ame},onChange:function(ame,nme,rme,ime){ame?ime.setValues({withChildren:!1,cascade:!1,onlyChildren:!1}):ime.setValues({cascade:!0,withChildren:!1,onlyChildren:!0})}},getSchemaTpl("joinValues"),getSchemaTpl("delimiter",{visibleOn:"this.joinValues"}),getSchemaTpl("extractValue",{visibleOn:"!this.joinValues"})]}],getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame}}),getSchemaTpl("hideNodePathLabel"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[getSchemaTpl("treeOptionControl"),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme})]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:function(ame){return ValidatorTag.MultiSelect}})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem"),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选择框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.nestedSelectControlClassName","--select-base")),!1)},{title:"下拉框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.nestedSelectPopoverClassName","--select-base-${state}-option",{state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:"选中",value:"focused"}]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.id="NestedSelectControlPlugin",eme}(BasePlugin);registerEditorPlugin(NestedSelectControlPlugin);var ChainedSelectControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="chained-select",$P.$schema="/schemas/ChainedSelectControlSchema.json",$P.name=i18n("b6872877e1eb5ddedd904c170db26024"),$P.isBaseComponent=!0,$P.icon="fa fa-th-list",$P.pluginIcon="chained-select-plugin",$P.description=i18n("fdf1664c0790d25f236bd596aef1acef"),$P.docLink="/amis/zh-CN/components/form/chain-select",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"chained-select",label:i18n("556988a9dc1816dd979e96eb5cd19a85"),name:"chainedSelect",joinValues:!0},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:__assign$3({},$P.scaffold)},$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("556988a9dc1816dd979e96eb5cd19a85"),$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame},mode:"vertical",rendererWrapper:!0,label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),i18n("da3ca8191fb919fb34e8e78fc6f2fc78"))}),getSchemaTpl("switch",{label:tipedLabel(i18n("bc8d09093edd98769d5cb39e759aa498"),i18n("2646ee1ebb6922a5c9359de6cd3b3639")),name:"joinValues",pipeIn:defaultValue(!0)}),getSchemaTpl("delimiter",{visibleOn:"this.joinValues !== false",clearValueOnHidden:!0}),getSchemaTpl("extractValue",{visibleOn:"this.joinValues === false",clearValueOnHidden:!0}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[getSchemaTpl("apiControl",{name:"source",mode:"normal",label:tipedLabel(i18n("1395eba8d9efe27aa1ecd1a45e3e5dcd"),i18n("1495c26f33625552e4845630b6b7b44a"),{maxWidth:"unset"})}),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),{type:"input-text",name:"labelField",label:tipedLabel(i18n("4ea50507bf8b9ceb908677f30fb20e68"),i18n("fe4c9c2eed1ad213040d84036c675454")),pipeIn:defaultValue("label")},{type:"input-text",name:"valueField",label:tipedLabel(i18n("be43687d4ed1d9e663c729e12618166d"),i18n("f1e6b60c4b6df555a6b03f91033091f4")),pipeIn:defaultValue("value")}]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem"),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选择框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.chainedSelectControlClassName","--select-base")),!1)},{title:"下拉框样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.chainedSelectPopoverClassName","--select-base-${state}-option",{state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:"选中",value:"focused"}]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme="string",bme={type:hme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return!((ome=$P.schema)===null||ome===void 0)&&ome.extractValue?bme={type:"array",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name)}:((cme=$P.schema)===null||cme===void 0?void 0:cme.joinValues)===!1&&(bme={type:"array",title:((dme=$P.schema)===null||dme===void 0?void 0:dme.label)||((ume=$P.schema)===null||ume===void 0?void 0:ume.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:(ame={},ame[((fme=$P.schema)===null||fme===void 0?void 0:fme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((pme=$P.schema)===null||pme===void 0?void 0:pme.valueField)||"value"]={type:hme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)},originalValue:bme.originalValue}),bme},eme.id="ChainedSelectControlPlugin",eme}(BasePlugin);registerEditorPlugin(ChainedSelectControlPlugin);var DropDownButtonPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="dropdown-button",$P.$schema="/schemas/DropdownButtonSchema.json",$P.name=i18n("cc70a816b7d61e7212d57335c0a15af5"),$P.isBaseComponent=!0,$P.description=i18n("74bafe23b0be1a14aa218b396cb33bd0"),$P.searchKeywords=i18n("938ac86e738246ccd0ca0224031f96af"),$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.icon="fa fa-chevron-down",$P.pluginIcon="dropdown-btn-plugin",$P.docLink="/amis/zh-CN/components/dropdown-button",$P.scaffold={type:"dropdown-button",label:i18n("cc70a816b7d61e7212d57335c0a15af5"),buttons:[__assign$3({type:"button",label:i18n("e9d2f66bbd44c96a3e03494bf6b1ebf0")},BUTTON_DEFAULT_ACTION),__assign$3({type:"button",label:i18n("ce35a17d2ba7caac95092a7a66ac9a0d")},BUTTON_DEFAULT_ACTION)]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("cc70a816b7d61e7212d57335c0a15af5"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{children:React__default.createElement("div",{className:"mb-3"},React__default.createElement(Button$1,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:$P.editDetail.bind($P,tme.id)},i18n("213a4e49568569943403ff31fff31ee5")))},getSchemaTpl("label",{label:i18n("b5b57c711fd2d2309cc390a8b44d2b69")}),{type:"button-group-select",name:"trigger",label:i18n("159dbc2fafd57b9d3652f16659b1b519"),size:"sm",options:[{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"click"},{label:i18n("314454bbee226e4b32b612afdd8e9442"),value:"hover"}],pipeIn:defaultValue("click")},getSchemaTpl("switch",{name:"closeOnOutside",label:i18n("4a757588f5aee8cd039b1d166b096d1a"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"closeOnClick",label:i18n("9951d740257c40978c238a683b1d4a80")}),getSchemaTpl("switch",{label:tipedLabel(i18n("205cb6cc6c8d37f3bed62d9c8bfae976"),i18n("697eb55e1c6cecf43e63a26232dda5b2")),name:"defaultIsOpened"}),{type:"button-group-select",name:"align",label:i18n("b2aa282e908597d1d700c1f4de17b8aa"),size:"sm",options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"}],pipeIn:defaultValue("left")}]},getSchemaTpl("status",{disabled:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("size",{label:i18n("c8339fd2a85af4ba66084d28df808de4"),pipeIn:defaultValue("md")}),getSchemaTpl("switch",{name:"block",label:tipedLabel(i18n("6aa6b9e2dca63d27dc74eb155020271d"),i18n("e57996d3d771141f1b3080bbd8ad605b"))}),getSchemaTpl("buttonLevel",{label:i18n("1ce673c48f29162208e75bc210307bfc"),name:"level"})]},{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:__spreadArray(__spreadArray(__spreadArray([{type:"select",name:"__editorState",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"active"}]}],__read$3(buttonStateFunc("${__editorState == 'default' || !__editorState}","default")),!1),__read$3(buttonStateFunc("${__editorState == 'hover'}","hover")),!1),__read$3(buttonStateFunc("${__editorState == 'active'}","active")),!1)},{title:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),body:[getSchemaTpl("switch",{label:i18n("c9e265ec462b61887af6f58928923925"),name:"hideCaret"}),getSchemaTpl("icon",{label:i18n("c182ad6b97f0909596a523b1f04c28d2")}),getSchemaTpl("icon",{name:"rightIcon",label:i18n("ad7e6f016bc1d9a9bbc6e18224d73247")})]},getSchemaTpl("theme:cssCode",{themeClass:[{value:"",state:["default","hover","active"]}]}),getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"btnClassName",label:i18n("fa966345577ba81af19408f203db968f")}),getSchemaTpl("className",{name:"menuClassName",label:i18n("938ac86e738246ccd0ca0224031f96af")})]})])]}])},$P}return eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info;nme.renderer.name==="dropdown-button"&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("213a4e49568569943403ff31fff31ee5"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);nme&&rme&&this.manager.openSubEditor({title:i18n("213a4e49568569943403ff31fff31ee5"),value:rme.buttons,slot:{type:"button-group",buttons:"$$",block:!0},onChange:function(ime){ime=__assign$3(__assign$3({},rme),{buttons:ime}),tme.panelChangeValue(ime,diff(rme,ime))}})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id;$P.schema,$P.region;var nme=$P.info,rme=$P.selections;rme.length||(nme==null?void 0:nme.plugin)!==this||nme.renderer.name==="dropdown-button"&&tme.push("|",{label:i18n("213a4e49568569943403ff31fff31ee5"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.filterProps=function($P){return $P.trigger="click",$P},eme.id="DropDownButtonPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(DropDownButtonPlugin);var CheckboxesControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="checkboxes",$P.$schema="/schemas/CheckboxesControlSchema.json",$P.name=i18n("db98f889ce6bc235e66bd4b2a788d137"),$P.isBaseComponent=!0,$P.icon="fa fa-check-square",$P.pluginIcon="checkboxes-plugin",$P.description=i18n("6d1383a2806f0516aac2c115f96799eb"),$P.docLink="/amis/zh-CN/components/form/checkboxes",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"checkboxes",label:i18n("db98f889ce6bc235e66bd4b2a788d137"),name:"checkboxes",multiple:!0,options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({value:"A"},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("db98f889ce6bc235e66bd4b2a788d137"),$P.events=__spreadArray([{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],__read$3(OPTION_EDIT_EVENTS),!1),$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return tme.info.renderer,getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),[getSchemaTpl("switch",{label:i18n("9c541222ced2435288c24b34f8ad1fb8"),name:"checkAll",value:!1,visibleOn:"this.multiple",onChange:function(ame,nme,rme,ime){ame||(ime.setValueByName("defaultCheckAll",!1),ime.setValueByName("checkAllText",void 0))}}),{type:"container",className:"ae-ExtendMore mb-2",visibleOn:"this.checkAll",body:[getSchemaTpl("switch",{label:i18n("05bef457e8350e1a5d8007cad41b70e5"),name:"defaultCheckAll",value:!1}),{type:"input-text",label:i18n("23b3169341314eda02d860be90ebf487"),name:"checkAllText"}]}],getSchemaTpl("joinValues",{visibleOn:!0}),getSchemaTpl("delimiter",{visibleOn:"this.joinValues === true"}),getSchemaTpl("extractValue"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi",{trigger:"change"})]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),id:"properties-options",body:[getSchemaTpl("optionControlV2",{multiple:!0}),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return __assign$3(__assign$3({},ame),{type:"input-text"})},pipeOut:undefinedPipeOut,needDeleteProps:["source"],visibleOn:"this.selectFirst !== true && this.source != null"}),getSchemaTpl("optionsMenuTpl",{manager:$P.manager}),getSchemaTpl("optionAddControl",{manager:$P.manager}),getSchemaTpl("optionEditControl",{manager:$P.manager}),getSchemaTpl("optionDeleteControl")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{hidSize:!0,schema:[getSchemaTpl("switch",{label:i18n("46110787e4774b81418b274e9b06127e"),name:"inline",hiddenOn:'this.mode === "inline"',pipeIn:defaultValue(!0)}),{label:i18n("83a00680e0872e2a35496be7e12c1309"),name:"columnsCount",hiddenOn:'this.mode === "inline" || this.inline !== false',type:"input-range",min:1,max:6,pipeIn:defaultValue(1)},{type:"select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),name:"optionType",value:"default",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"}]}]}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选项样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.checkboxesControlClassName","",{fontToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?{color:"--checkbox-${optionType}-checked-".concat(nme[1],"-text-color"),"*":"--checkbox-${optionType}-default"}:{color:"--checkbox-${optionType}-".concat(nme[1],"-text-color"),"*":"--checkbox-${optionType}-default"}},backgroundToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?'${optionType === "button" ? "--checkbox-" + optionType + "-checked-'.concat(nme[1],'-bg-color" : ""}'):'${optionType === "button" ? "--checkbox-" + optionType + "-'.concat(nme[1],'-bg-color" : ""}')},borderToken:function(ame){var nme=ame.split("-"),rme=function(ime,ome){return'${optionType === "button" ? "--checkbox-" + optionType + "'.concat(ome?"-checked":"","-").concat(nme[1],"-").concat(ime,'" : ""}')};return nme[0]==="checked"?{topBorderColor:rme("top-border-color",!0),rightBorderColor:rme("right-border-color",!0),bottomBorderColor:rme("bottom-border-color",!0),leftBorderColor:rme("left-border-color",!0),"*":"--checkbox-${optionType}-default"}:{topBorderColor:rme("top-border-color"),rightBorderColor:rme("right-border-color"),bottomBorderColor:rme("bottom-border-color"),leftBorderColor:rme("left-border-color"),"*":"--checkbox-${optionType}-default"}},radiusToken:function(ame){return'${optionType === "button" ? "--checkbox-" + optionType + "-default": "-"}'},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"checkbox-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"checkbox-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"checkbox-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}]})),!1)},{title:"勾选框样式",body:__spreadArray([{label:"隐藏勾选框",type:"switch",name:"themeCss.checkboxesShowClassName.display",trueValue:"none"}],__read$3(inputStateTpl("themeCss.checkboxesClassName","",{hideFont:!0,hideMargin:!0,hidePadding:!0,hiddenOn:'themeCss.checkboxesShowClassName.display === "none"',backgroundToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1],"-${optionType ==='button' ? 'icon-' : ''}bg-color"):"--checkbox-${optionType}-".concat(nme[1],"-${optionType ==='button' ? 'icon-' : ''}bg-color")},borderToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}"):"--checkbox-${optionType}-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}")},radiusToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1]):"--checkbox-${optionType}-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}")},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"checkbox-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"checkbox-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"checkbox-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}],schema:[{name:"themeCss.checkboxesShowClassName.--checkbox-default-checked-default-icon",visibleOn:'${__editorStatethemeCss.checkboxesClassName == "checked-default" || __editorStatethemeCss.checkboxesClassName == "checked-hover" || __editorStatethemeCss.checkboxesClassName == "checked-disabled"}',label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),type:"icon-select",returnSvg:!0,noSize:!0},getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxesInnerClassName.color:default",visibleOn:'${__editorStatethemeCss.checkboxesClassName == "checked-default"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-default-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxesInnerClassName.color:hover",visibleOn:'${__editorStatethemeCss.checkboxesClassName == "checked-hover"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-default-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxesInnerClassName.color:disabled",visibleOn:'${__editorStatethemeCss.checkboxesClassName == "checked-disabled"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-disabled-icon-color"})]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.id="CheckboxesControlPlugin",eme}(BasePlugin);registerEditorPlugin(CheckboxesControlPlugin);var RadiosControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="radios",$P.$schema="/schemas/RadiosControlSchema.json",$P.name=i18n("9913107b19cb6012250134ff91377430"),$P.isBaseComponent=!0,$P.icon="fa fa-dot-circle-o",$P.pluginIcon="radios-plugin",$P.description=i18n("b7a4abc1e4e975c9df5bb9d9cf4823ba"),$P.docLink="/amis/zh-CN/components/form/radios",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"radios",label:i18n("9913107b19cb6012250134ff91377430"),name:"radios",options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:"A"})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("9913107b19cb6012250134ff91377430"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!1),nme=ame.value,rme=ame.selectedItems,ime=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,selectedItems:rme,items:ime}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame},useSelectMode:!0,visibleOn:"this.options && this.options.length > 0"}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("autoFillApi",{trigger:"change"})]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),id:"properties-options",body:[getSchemaTpl("optionControlV2"),getSchemaTpl("selectFirst")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{hidSize:!0,schema:[getSchemaTpl("switch",{label:i18n("46110787e4774b81418b274e9b06127e"),name:"inline",hiddenOn:'this.mode === "inline"',pipeIn:defaultValue(!0)}),{label:i18n("83a00680e0872e2a35496be7e12c1309"),name:"columnsCount",hiddenOn:'this.mode === "inline" || this.inline !== false',type:"input-range",min:1,max:6,pipeIn:defaultValue(1)},{type:"select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),name:"optionType",value:"default",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"}]}]}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选项样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.radiosControlClassName","",{fontToken:function(ame){var nme=ame.split("-");return nme[1]==="disabled"?{color:'--radio-${optionType}-${optionType === "default" ? "disabled-text-color" : "disabled-'.concat(nme[0]==="checked"?"checked":"unchecked",'-text-color"}'),"*":"--radio-${optionType}-default"}:nme[0]==="checked"?{color:"--radio-${optionType}-checked-text-color","*":"--radio-${optionType}-default"}:{color:"--radio-${optionType}-".concat(nme[1],"-text-color"),"*":"--radio-${optionType}-default"}},backgroundToken:function(ame){var nme=ame.split("-");return nme[1]==="disabled"?'--radio-${optionType}-${optionType === "default" ? "disabled-bg-color" : "disabled-'.concat(nme[0]==="checked"?"checked":"unchecked",'-bg-color"}'):nme[0]==="checked"?"--radio-${optionType}-checked-bg-color":"--radio-${optionType}-".concat(nme[1],"-bg-color")},radiusToken:function(){return"--radio-${optionType}-default"},borderToken:function(ame){var nme=ame.split("-"),rme=nme[0]==="checked"?"checked":nme[1];return nme[1]==="disabled"&&(rme=nme[0]==="checked"?"disabled-checked":"disabled-unchecked"),{topBorderColor:"--radio-${optionType}-".concat(rme,"-top-border-color"),rightBorderColor:"--radio-${optionType}-".concat(rme,"-right-border-color"),bottomBorderColor:"--radio-${optionType}-".concat(rme,"-bottom-border-color"),leftBorderColor:"--radio-${optionType}-".concat(rme,"-left-border-color"),"*":"--radio-${optionType}-default"}},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"radios-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"radios-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"radios-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}]})),!1)},{title:"单选框样式",hiddenOn:'optionType === "button"',body:__spreadArray([{label:"隐藏勾选框",type:"switch",name:"themeCss.radiosShowClassName.display",trueValue:"none"}],__read$3(inputStateTpl("themeCss.radiosClassName","",{hideFont:!0,hideMargin:!0,hidePadding:!0,hiddenOn:'themeCss.radiosShowClassName.display === "none"',backgroundToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"&&nme[1]!=="disabled"?"--radio-default-checked-bg-color":"--radio-default-".concat(nme[1],"-bg-color")},borderToken:function(ame){var nme=ame.split("-"),rme="--radio-default-".concat(nme[1],"-border-color");return nme[0]==="checked"&&nme[1]!=="disabled"&&(rme="--radio-default-checked-border-color"),{color:rme,width:"var(--borders-width-2)",style:"var(--borders-style-2)"}},radiusToken:function(){return{"*":"var(--borders-radius-7)"}},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"radios-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"radios-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"radios-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}],schema:[{name:"themeCss.radiosShowClassName.--radio-default-checked-icon",visibleOn:'${__editorStatethemeCss.radiosClassName == "checked-default" || __editorStatethemeCss.radiosClassName == "checked-hover" || __editorStatethemeCss.radiosClassName == "checked-disabled"}',label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),type:"icon-select",returnSvg:!0,noSize:!0},getSchemaTpl("theme:colorPicker",{name:"themeCss.radiosCheckedInnerClassName.color:default",visibleOn:'${__editorStatethemeCss.radiosClassName == "checked-default"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--radio-default-checked-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.radiosCheckedInnerClassName.color:hover",visibleOn:'${__editorStatethemeCss.radiosClassName == "checked-hover"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--radio-default-checked-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.radiosCheckedInnerClassName.color:disabled",visibleOn:'${__editorStatethemeCss.radiosClassName == "checked-disabled"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--radio-default-disabled-icon-color"})]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames",{schema:[getSchemaTpl("className",{label:i18n("c30264927c3c170efd2e7763becf12fc"),name:"itemClassName"})]})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume=resolveOptionType($P.schema),fme={type:ume,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),rawType:RAW_TYPE_MAP[$P.schema.type]||"string",originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(fme=__assign$3(__assign$3({},fme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:ume,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),fme},eme.id="RadiosControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(RadiosControlPlugin);setSchemaTpl("option",{name:"option",type:"input-text",label:tipedLabel(i18n("f411d0f1f925d9b48d8c1d451bd809b1"),i18n("2ef0fb6299da5954f5ea84a088684ee5"))});var CheckboxControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="checkbox",$P.$schema="/schemas/CheckboxControlSchema.json",$P.name=i18n("454e60f5759903d7d3dba58e3f9bd590"),$P.isBaseComponent=!0,$P.icon="fa fa-check-square-o",$P.pluginIcon="checkbox-plugin",$P.description=i18n("454e60f5759903d7d3dba58e3f9bd590"),$P.docLink="/amis/zh-CN/components/form/checkbox",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"checkbox",option:i18n("454e60f5759903d7d3dba58e3f9bd590"),name:"checkbox",label:i18n("454e60f5759903d7d3dba58e3f9bd590")},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3(__assign$3({value:!0},$P.scaffold),{label:i18n("81c8c07d13f425215010783bbf3bf06e")})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("454e60f5759903d7d3dba58e3f9bd590"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("c75fde0e2d329ce62f55cb1a207181ae"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("10d23d1f68ee1facb03b1f86678aa2ba")})}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("option"),{type:"ae-switch-more",hiddenOnDefault:!1,mode:"normal",label:i18n("db0258df1ddbd88749b335aecdc8425e"),formType:"extend",form:{body:[{type:"ae-valueFormat",name:"trueValue",label:i18n("53235c46364db079356d57da5870f967"),pipeIn:defaultValue(!0),pipeOut:undefinedPipeOut,onChange:function(ame,nme,rme,ime){var ome=(ime==null?void 0:ime.data)||{},lme=ome.value,sme=ome.trueValue;isPureVariable(lme)||sme===lme&&sme!==ame&&ime.setValues({value:ame})}},{type:"ae-valueFormat",name:"falseValue",label:i18n("56f3150f1713a5e5c6e7c55fb0b79b75"),pipeIn:defaultValue(!1),pipeOut:undefinedPipeOut,onChange:function(ame,nme,rme,ime){var ome=(ime==null?void 0:ime.data)||{},lme=ome.value,sme=ome.falseValue;isPureVariable(lme)||sme===lme&&sme!==ame&&ime.setValues({value:ame})}}]}},getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},omit$1(tme==null?void 0:tme.schema,["trueValue","falseValue"])),{type:"switch"}),needDeleteProps:["option"],label:i18n("7c7a88eb1bb4b40206c6c680bd8995a8"),rendererWrapper:!0,valueType:"boolean",pipeIn:function(ame,nme){var rme,ime;return isPureVariable(ame)?ame:ame===((ime=(rme=nme==null?void 0:nme.data)===null||rme===void 0?void 0:rme.trueValue)!==null&&ime!==void 0?ime:!0)},pipeOut:function(ame,nme,rme){if(isPureVariable(ame))return ame;var ime=rme.trueValue,ome=ime===void 0?!0:ime,lme=rme.falseValue,sme=lme===void 0?!1:lme;return ame?ome:sme}}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi",{trigger:"change"})]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{hidSize:!0,schema:[{type:"select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),name:"optionType",value:"default",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"}]}]}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:"选项样式",body:__spreadArray([],__read$3(inputStateTpl("themeCss.checkboxControlClassName","",{fontToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?{color:"--checkbox-${optionType}-checked-".concat(nme[1],"-text-color"),"*":"--checkbox-${optionType}-default"}:{color:"--checkbox-${optionType}-".concat(nme[1],"-text-color"),"*":"--checkbox-${optionType}-default"}},backgroundToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?'${optionType === "button" ? "--checkbox-" + optionType + "-checked-'.concat(nme[1],'-bg-color" : ""}'):'${optionType === "button" ? "--checkbox-" + optionType + "-'.concat(nme[1],'-bg-color" : ""}')},borderToken:function(ame){var nme=ame.split("-"),rme=function(ime,ome){return'${optionType === "button" ? "--checkbox-" + optionType + "'.concat(ome?"-checked":"","-").concat(nme[1],"-").concat(ime,'" : ""}')};return nme[0]==="checked"?{topBorderColor:rme("top-border-color",!0),rightBorderColor:rme("right-border-color",!0),bottomBorderColor:rme("bottom-border-color",!0),leftBorderColor:rme("left-border-color",!0),"*":"--checkbox-${optionType}-default"}:{topBorderColor:rme("top-border-color"),rightBorderColor:rme("right-border-color"),bottomBorderColor:rme("bottom-border-color"),leftBorderColor:rme("left-border-color"),"*":"--checkbox-${optionType}-default"}},radiusToken:function(ame){return'${optionType === "button" ? "--checkbox-" + optionType + "-default": "-"}'},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"checkbox-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"checkbox-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"checkbox-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}]})),!1)},{title:"勾选框样式",body:__spreadArray([{label:"隐藏勾选框",type:"switch",name:"themeCss.checkboxShowClassName.display",trueValue:"none"}],__read$3(inputStateTpl("themeCss.checkboxClassName","",{hideFont:!0,hideMargin:!0,hidePadding:!0,hiddenOn:'themeCss.checkboxShowClassName.display === "none"',backgroundToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1],"-${optionType ==='button' ? 'icon-' : ''}bg-color"):"--checkbox-${optionType}-".concat(nme[1],"-${optionType ==='button' ? 'icon-' : ''}bg-color")},borderToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}"):"--checkbox-${optionType}-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}")},radiusToken:function(ame){var nme=ame.split("-");return nme[0]==="checked"?"--checkbox-${optionType}-checked-".concat(nme[1]):"--checkbox-${optionType}-".concat(nme[1],"${optionType ==='button' ? '-icon' : ''}")},state:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"checkbox-default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"checkbox-hover"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"checkbox-disabled"},{label:"选中",value:"checked-default"},{label:"选中态悬浮",value:"checked-hover"},{label:"选中禁用",value:"checked-disabled"}],schema:[{name:"themeCss.checkboxShowClassName.--checkbox-default-checked-default-icon",visibleOn:'${__editorStatethemeCss.checkboxClassName == "checked-default" || __editorStatethemeCss.checkboxClassName == "checked-hover" || __editorStatethemeCss.checkboxClassName == "checked-disabled"}',label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),type:"icon-select",returnSvg:!0,noSize:!0},getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxInnerClassName.color:default",visibleOn:'${__editorStatethemeCss.checkboxClassName == "checked-default"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-default-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxInnerClassName.color:hover",visibleOn:'${__editorStatethemeCss.checkboxClassName == "checked-hover"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-default-icon-color"}),getSchemaTpl("theme:colorPicker",{name:"themeCss.checkboxInnerClassName.color:disabled",visibleOn:'${__editorStatethemeCss.checkboxClassName == "checked-disabled"}',label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",editorValueToken:"--checkbox-${optionType}-checked-disabled-icon-color"})]})),!1)},getSchemaTpl("theme:cssCode"),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome;return{type:!((ame=$P.schema)===null||ame===void 0)&&ame.trueValue?typeof((nme=$P.schema)===null||nme===void 0?void 0:nme.trueValue):"boolean",title:((rme=$P.schema)===null||rme===void 0?void 0:rme.label)||((ime=$P.schema)===null||ime===void 0?void 0:ime.name),originalValue:(ome=$P.schema)===null||ome===void 0?void 0:ome.value}},eme.id="CheckboxControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(CheckboxControlPlugin);var formatX$1=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"},{label:i18n("84c7af622906c4e9d62bbf905d6ee517"),value:"x"}],DateType$1={date:{format:"YYYY-MM-DD",placeholder:i18n("aa2fb1b6cffd7c9783c11047adcdbae4"),formatOptions:__spreadArray(__spreadArray([],__read$3(formatX$1),!1),[{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:i18n("8935dbb864f032bacc618b0938887ad7"),value:i18n("8935dbb864f032bacc618b0938887ad7")}],!1)},datetime:{format:"YYYY-MM-DD HH:mm:ss",placeholder:i18n("ff91b28a49de6fd998dea31598198a73"),formatOptions:__spreadArray(__spreadArray([],__read$3(formatX$1),!1),[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:i18n("3e253325914594e1dc483c0b64ea7643"),value:i18n("3e253325914594e1dc483c0b64ea7643")}],!1)},time:{format:"HH:mm",placeholder:i18n("fbd05a89ca037ca9e5a6af4c2206d488"),formatOptions:[{label:"HH:mm",value:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss"},{label:i18n("90696835bfa70d38b02ef5533d33c88d"),value:i18n("90696835bfa70d38b02ef5533d33c88d")},{label:i18n("6154f88c0ac259ace41b0a5be45d753c"),value:i18n("6154f88c0ac259ace41b0a5be45d753c")}]},month:{format:"YYYY-MM",placeholder:i18n("904393383755b88e61f5c242eafabdda"),formatOptions:__spreadArray(__spreadArray([],__read$3(formatX$1),!1),[{label:"YYYY-MM",value:"YYYY-MM"},{label:"MM",value:"MM"},{label:"M",value:"M"}],!1)},quarter:{format:"YYYY [Q]Q",placeholder:i18n("55546b74d8819d49cccda6277f3a3282"),formatOptions:__spreadArray(__spreadArray([],__read$3(formatX$1),!1),[{label:"YYYY-[Q]Q",value:"YYYY-[Q]Q"},{label:"Q",value:"Q"}],!1)},year:{format:"YYYY",placeholder:i18n("13ef7828361c8aebbf6ebe09370f5e41"),formatOptions:__spreadArray(__spreadArray([],__read$3(formatX$1),!1),[{label:"YYYY",value:"YYYY"}],!1)}},dateTooltip$1=i18n("037becbe8bff2f8838d141cc7b6b2df7"),DateControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-date",$P.$schema="/schemas/DateControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-date-plugin",$P.name=i18n("4ff1e74e43a3586339251494117185ad"),$P.isBaseComponent=!0,$P.searchKeywords=i18n("bb712c16299683ab1af22258740a537a"),$P.description=i18n("52ea2070560eb55083b64f5ba748697d"),$P.docLink="/amis/zh-CN/components/form/input-date",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-date",label:i18n("4ff1e74e43a3586339251494117185ad"),name:"date"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("e54ca3223a36c6489de0fb8a39d4049f"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("96f9d9fc9cef8b18e3cd1cf9077147d1"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("f6db3514c72bdc34922f137a8a92b997"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("0f5fc3b84cf9c24ff3acae45ae22fb57"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("3086da6514671fb8950171bf3af4ab2d")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("selectDateType",{value:$P.scaffold.type,onChange:function(nme,rme,ime,ome){var lme,sme,cme=nme.split("-")[1];ome.setValues({placeholder:(lme=DateType$1[cme])===null||lme===void 0?void 0:lme.placeholder,valueFormat:"X",displayFormat:(sme=DateType$1[cme])===null||sme===void 0?void 0:sme.format,minDate:"",maxDate:"",value:""})}}),{type:"input-text",name:"valueFormat",label:tipedLabel(i18n("db0258df1ddbd88749b335aecdc8425e"),i18n("e02d111d524de97e8622121f7ce845cf")),pipeIn:defaultValue("X"),clearable:!0,onChange:function(nme,rme,ime,ome){var lme=ome.data.type.split("-")[1];ime.setOptions(DateType$1[lme].formatOptions)},options:DateType$1[$P.scaffold.type.split("-")[1]].formatOptions},{type:"input-text",name:"displayFormat",label:tipedLabel(i18n("ecd1a3cadcf1d55250afafbbde767250"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),pipeIn:defaultValue("YYYY-MM-DD"),clearable:!0,onChange:function(nme,rme,ime,ome){var lme=ome.data.type.split("-")[1];ime.setOptions(DateType$1[lme].formatOptions)},options:DateType$1[$P.scaffold.type.split("-")[1]].formatOptions},getSchemaTpl("utc"),getSchemaTpl("clearable",{pipeIn:defaultValue(!0)}),getSchemaTpl("inputForbid",{pipeIn:defaultValue(!1)}),getSchemaTpl("valueFormula",{rendererSchema:function(nme){return nme},placeholder:i18n("8f7ae284d0039fe05b9f57fd5ae3ede9"),header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),dateTooltip$1)}),getSchemaTpl("valueFormula",{name:"minDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:tme==null?void 0:tme.schema.minDate})},placeholder:i18n("8f7ae284d0039fe05b9f57fd5ae3ede9"),needDeleteProps:["minDate"],label:tipedLabel(i18n("c322edb884724d04842fc35f4d29a24e"),dateTooltip$1)}),getSchemaTpl("valueFormula",{name:"maxDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:tme==null?void 0:tme.schema.maxDate})},needDeleteProps:["maxDate"],label:tipedLabel(i18n("5da893141114a59da868052b3a17a79a"),dateTooltip$1)}),getSchemaTpl("placeholder",{pipeIn:defaultValue(i18n("aa2fb1b6cffd7c9783c11047adcdbae4"))}),getSchemaTpl("remark"),getSchemaTpl("labelRemark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Date,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{label:i18n("2c8c25bb51dfd9ddfc74fd75a8a380a1"),validateName:"equals"})}})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"props"}))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",ame),getSchemaTpl("style:classNames",[getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"}),getSchemaTpl("className",{name:"addOn.className",label:"AddOn",visibleOn:'this.addOn && this.addOn.type === "text"'})]),getSchemaTpl("style:others",[{name:"embed",type:"button-group-select",size:"md",label:i18n("f0789e79d48f135e5d870753f7a85d05"),mode:"row",pipeIn:defaultValue(!1),options:[{label:i18n("a553741d5ebb9c80d7d2a63b202cf4b8"),value:!1},{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:!0}]}])],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="DateControlPlugin",eme}(BasePlugin);registerEditorPlugin(DateControlPlugin);var formatX=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"},{label:i18n("84c7af622906c4e9d62bbf905d6ee517"),value:"x"}],DateType={date:__assign$3(__assign$3({},getRendererByName("input-date-range")),{format:"YYYY-MM-DD",placeholder:i18n("a2847d82fc998cbe25447b14d113234b"),shortcuts:["yesterday","7daysago","prevweek","thismonth","prevmonth","prevquarter"],formatOptions:__spreadArray(__spreadArray([],__read$3(formatX),!1),[{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:i18n("8935dbb864f032bacc618b0938887ad7"),value:i18n("8935dbb864f032bacc618b0938887ad7")}],!1)}),datetime:__assign$3(__assign$3({},getRendererByName("input-datetime-range")),{format:"YYYY-MM-DD HH:mm:ss",timeFormat:"HH:mm:ss",placeholder:i18n("3f9c3a9eb55b7116bcaa6b614ecb38be"),shortcuts:["yesterday","7daysago","prevweek","thismonth","prevmonth","prevquarter"],formatOptions:__spreadArray(__spreadArray([],__read$3(formatX),!1),[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:i18n("3e253325914594e1dc483c0b64ea7643"),value:i18n("3e253325914594e1dc483c0b64ea7643")}],!1)}),time:__assign$3(__assign$3({},getRendererByName("input-time-range")),{format:"HH:mm",timeFormat:"HH:mm:ss",placeholder:i18n("ddc4a982defd88cd164c61da914819e1"),shortcuts:[],formatOptions:[{label:"HH:mm",value:"HH:mm",timeFormat:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss",timeFormat:"HH:mm:ss"},{label:i18n("90696835bfa70d38b02ef5533d33c88d"),value:i18n("90696835bfa70d38b02ef5533d33c88d"),timeFormat:"HH:mm"},{label:i18n("6154f88c0ac259ace41b0a5be45d753c"),value:i18n("6154f88c0ac259ace41b0a5be45d753c"),timeFormat:"HH:mm:ss"}]}),month:__assign$3(__assign$3({},getRendererByName("input-month-range")),{format:"YYYY-MM",placeholder:i18n("c899221db27c8b3606ce7c807f0765f2"),shortcuts:[],formatOptions:__spreadArray(__spreadArray([],__read$3(formatX),!1),[{label:"YYYY-MM",value:"YYYY-MM"},{label:"MM",value:"MM"},{label:"M",value:"M"}],!1)}),quarter:__assign$3(__assign$3({},getRendererByName("input-quarter-range")),{format:"YYYY [Q]Q",placeholder:i18n("c09ddfc72d3c34ae6aa76d5a457cb403"),shortcuts:["thisquarter","prevquarter"],formatOptions:__spreadArray(__spreadArray([],__read$3(formatX),!1),[{label:"YYYY-[Q]Q",value:"YYYY-[Q]Q"},{label:"Q",value:"Q"}],!1)}),year:__assign$3(__assign$3({},getRendererByName("input-year-range")),{format:"YYYY",placeholder:i18n("cb6deedf9cd4a0b65abd70798cfed85e"),shortcuts:["thisyear","lastYear"],formatOptions:__spreadArray(__spreadArray([],__read$3(formatX),!1),[{label:"YYYY",value:"YYYY"}],!1)})},dateTooltip=i18n("6b3c2a07db1bb3c229bbc5df48068792"),rangTooltip=i18n("dcc94ea1715bd502c709c5d5092e9c82"),sizeImmutableComponents=Object.values(DateType).map(function(x_){return(x_==null?void 0:x_.sizeMutable)===!1?x_.type:null}).filter(function(x_){return x_}),DateRangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-date-range",$P.$schema="/schemas/DateRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-date-range-plugin",$P.name=i18n("7866226eb814f681dcc4037e7489aab8"),$P.isBaseComponent=!0,$P.searchKeywords=i18n("0bbad229b14369f667abae7fa8453d69"),$P.description=i18n("9024ff398faf8340b92bf0208431973b"),$P.docLink="/amis/zh-CN/components/form/input-date-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-date-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"date-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("7866226eb814f681dcc4037e7489aab8"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("96f9d9fc9cef8b18e3cd1cf9077147d1"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("05606badb4b14ffd3c38c278fb0f3c9f")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("f6db3514c72bdc34922f137a8a92b997"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("05606badb4b14ffd3c38c278fb0f3c9f")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("0f5fc3b84cf9c24ff3acae45ae22fb57"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("05606badb4b14ffd3c38c278fb0f3c9f")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("3086da6514671fb8950171bf3af4ab2d")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("formItemExtraName"),getSchemaTpl("label"),getSchemaTpl("selectDateRangeType",{value:$P.scaffold.type,onChange:function(nme,rme,ime,ome){var lme,sme,cme,dme,ume=nme.split("-")[1];ome.setValues({displayFormat:(lme=DateType[ume])===null||lme===void 0?void 0:lme.format,placeholder:(sme=DateType[ume])===null||sme===void 0?void 0:sme.placeholder,valueFormat:ume==="time"?"HH:mm":"X",minDate:"",maxDate:"",value:"",shortcuts:(cme=DateType[ume])===null||cme===void 0?void 0:cme.shortcuts,ranges:void 0,size:sizeImmutableComponents.includes(nme)||(dme=ome.data)===null||dme===void 0?void 0:dme.size})}}),{type:"input-text",name:"valueFormat",label:tipedLabel(i18n("db0258df1ddbd88749b335aecdc8425e"),i18n("e02d111d524de97e8622121f7ce845cf")),pipeIn:defaultValue("X"),clearable:!0,onChange:function(nme,rme,ime,ome){ime.setOptions(DateType[ome.data.type.split("-")[1]].formatOptions)},options:DateType[$P.scaffold.type.split("-")[1]].formatOptions},{type:"input-text",name:"displayFormat",label:tipedLabel(i18n("ecd1a3cadcf1d55250afafbbde767250"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),pipeIn:defaultValue("YYYY-MM-DD"),clearable:!0,onChange:function(nme,rme,ime,ome){ime.setOptions(DateType[ome.data.type.split("-")[1]].formatOptions)},options:DateType[$P.scaffold.type.split("-")[1]].formatOptions},getSchemaTpl("utc"),getSchemaTpl("clearable",{pipeIn:defaultValue(!0)}),getSchemaTpl("inputForbid",{pipeIn:defaultValue(!1)}),getSchemaTpl("valueFormula",{rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{size:"full",mode:"inline"})},mode:"vertical",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsRange,label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),dateTooltip)}),getSchemaTpl("valueFormula",{name:"minDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:function(nme){return __assign$3(__assign$3({},omit$1(nme,["shortcuts"])),{value:nme==null?void 0:nme.minDate,type:"input-date"})},placeholder:i18n("8f7ae284d0039fe05b9f57fd5ae3ede9"),needDeleteProps:["minDate","ranges","shortcuts"],label:tipedLabel(i18n("c322edb884724d04842fc35f4d29a24e"),dateTooltip)}),getSchemaTpl("valueFormula",{name:"maxDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:function(nme){return __assign$3(__assign$3({},omit$1(nme,["shortcuts"])),{value:nme==null?void 0:nme.maxDate,type:"input-date"})},placeholder:i18n("8f7ae284d0039fe05b9f57fd5ae3ede9"),needDeleteProps:["maxDate","ranges","shortcuts"],label:tipedLabel(i18n("5da893141114a59da868052b3a17a79a"),dateTooltip)}),getSchemaTpl("valueFormula",{name:"minDuration",header:i18n("a9400c408441f1f7f6d6954deb05ae9a"),DateTimeType:FormulaDateType.NotDate,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:nme==null?void 0:nme.minDuration,type:"input-text"})},placeholder:i18n("13ce82d026daa5a30e50105bd2a204a6"),needDeleteProps:["minDuration"],label:tipedLabel(i18n("e7271563debf3c7bcb85e23816c35acb"),rangTooltip)}),getSchemaTpl("valueFormula",{name:"maxDuration",header:i18n("a9400c408441f1f7f6d6954deb05ae9a"),DateTimeType:FormulaDateType.NotDate,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{value:nme==null?void 0:nme.maxDuration,type:"input-text"})},placeholder:i18n("13ce82d026daa5a30e50105bd2a204a6"),needDeleteProps:["maxDuration"],label:tipedLabel(i18n("6da95498bea887b2ea7c6c2bb4b2fdc3"),rangTooltip)}),getSchemaTpl("dateShortCutControl",{name:"shortcuts",mode:"normal",certainOptions:["today","yesterday","thisweek","prevweek","thismonth","prevmonth","thisquarter","prevquarter","thisyear"],modifyOptions:["$daysago","$dayslater","$weeksago","$weekslater","$monthsago","$monthslater","$quartersago","$quarterslater","$yearsago","$yearslater"]}),getSchemaTpl("remark"),getSchemaTpl("labelRemark"),getSchemaTpl("startPlaceholder"),getSchemaTpl("endPlaceholder"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Date,rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{label:i18n("2c8c25bb51dfd9ddfc74fd75a8a380a1"),validateName:"equals"})}})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"props"}))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:__assign$3(__assign$3({},ame),{sizeMutable:!1}),schema:[getSchemaTpl("formItemSize",{hiddenOn:'["'.concat(sizeImmutableComponents.join('","'),'"].includes(this.type)')})]}),getSchemaTpl("style:classNames",[getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"}),getSchemaTpl("className",{name:"addOn.className",label:"AddOn",visibleOn:'this.addOn && this.addOn.type === "text"'})]),getSchemaTpl("style:others",[{name:"embed",type:"button-group-select",size:"md",label:i18n("f0789e79d48f135e5d870753f7a85d05"),mode:"row",pipeIn:defaultValue(!1),options:[{label:i18n("a553741d5ebb9c80d7d2a63b202cf4b8"),value:!1},{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:!0}]}])],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="DateRangeControlPlugin",eme}(BasePlugin);registerEditorPlugin(DateRangeControlPlugin);var FileControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-file",$P.$schema="/schemas/FileControlSchema.json",$P.name=i18n("481e034e6026969aae4ce7ce7c8a7b6f"),$P.isBaseComponent=!0,$P.icon="fa fa-upload",$P.pluginIcon="input-file-plugin",$P.description=i18n("ec1f230a0181d79b37967a455b1f3515"),$P.docLink="/amis/zh-CN/components/form/input-file",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-file",label:i18n("481e034e6026969aae4ce7ce7c8a7b6f"),autoUpload:!0,proxy:!0,uploadType:"fileReceptor",name:"file"},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("8dccb3d6633a85edb21fa52599211654"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{file:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")}}}}}]},{eventName:"remove",eventLabel:i18n("7dcb3fb3ccc93369798d4b6950e96058"),description:i18n("03d585240162dad662a0a6b5d90a4692"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("6775136a73e41c1b2cb4ab025773e326")}}}}}]},{eventName:"success",eventLabel:i18n("a7699ba73144aad544eb9ac49f82749d"),description:i18n("e309c24c2b07e5970208a82388f1d88e"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")},result:{type:"object",title:i18n("fd3913adcb81427f1895ab5b79ebe0b2")}}}}}]},{eventName:"fail",eventLabel:i18n("54e5de428ca9d59119d4624706215a4d"),description:i18n("4855bc3f3d06b9cf58d14b61839c5a51"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")},error:{type:"object",title:i18n("236dc056d6800bf423df47520637c52d")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("36d40a48f3da92af9fe55ee77cfae46f"),description:i18n("18843505278637e44a29e7e1f39e0b06")},getActionCommonProps("clear")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("btnLabel"),getSchemaTpl("multiple",{replace:!0,body:[{name:"maxLength",label:i18n("0ec0e6e04b9e918939ac8e0daf407b75"),type:"input-number"}]}),{type:"input-group",name:"maxSize",label:i18n("0a9dced8856958fbd05508d1218f8090"),body:[{type:"input-number",name:"maxSize"},{type:"tpl",addOnclassName:"border-0 bg-none",tpl:"B"}]},getSchemaTpl("uploadType",{options:[{label:i18n("d28879b6a8a4ddb62bf6f2ab59303df7"),value:"asForm"},{label:i18n("1e4dc4d5f4a3a95ddc349147d4d8cd39"),value:"fileReceptor"},{label:i18n("74cef1162781310e1503d2dc463a76fc"),value:"bos"}],pipeIn:function(ame,nme){return ame||"fileReceptor"},pipeOut:function(ame,nme){return ame||"fileReceptor"},onChange:function(ame,nme,rme,ime){if(ame==="asForm"){ime.setValueByName("autoUpload",!0);var ome=ime.getValueByName("formType")||"asBlob";ime.setValueByName(ome,!0)}else ime.setValueByName("asBase64",!1),ime.setValueByName("asBlob",!1)}}),{name:"formType",type:"select",tiled:!0,visibleOn:'this.uploadType === "asForm"',value:"asBlob",label:tipedLabel(i18n("7c6722203327e8173be987f36fadf610"),i18n("fde1ab2f504097f3f717acbb653b4f09")),options:[{label:"Base64",value:"asBase64"},{label:i18n("6168fb08fe64663a502a132c5589b73d"),value:"asBlob"}],onChange:function(ame,nme,rme,ime){ime.setValueByName("asBase64",ame==="asBase64"),ime.setValueByName("asBlob",ame==="asBlob")}},getSchemaTpl("bos",{visibleOn:'this.uploadType === "bos"'}),getSchemaTpl("proxy",{value:!0,visibleOn:'this.uploadType !== "asForm" || !this.uploadType'}),getSchemaTpl("switch",{name:"autoUpload",label:i18n("7245fe895fa1cfc42b5217a3de314565"),value:!0,visibleOn:'this.uploadType !== "asForm"'}),getSchemaTpl("switch",{name:"useChunk",label:i18n("cf9e4c80962e712eaa55551cccff317e"),value:!1,pipeIn:function(ame,nme){return!!ame},visibleOn:'this.uploadType !== "asForm"'}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:'this.uploadType !== "asForm" && this.useChunk === true',body:[{type:"input-group",name:"chunkSize",label:i18n("454dbf9b835af8627d4dfff2903298b7"),body:[{type:"input-number",name:"chunkSize"},{type:"tpl",addOnclassName:"border-0 bg-none",tpl:"B"}]},{type:"Container",visibleOn:'this.uploadType == "fileReceptor" && this.useChunk != false',body:[getSchemaTpl("apiControl",{mode:"row",name:"startChunkApi",label:tipedLabel(i18n("2af0c8b5999a1d243ec5fe503da20026"),i18n("5548252bd28fc1d217d13a9e5771ecb0")),value:"/api/upload/startChunk"}),getSchemaTpl("apiControl",{mode:"row",name:"chunkApi",label:tipedLabel(i18n("d7832abe5b9ce8e41537b4964fd7cf70"),i18n("14008d63c109cc0d0c4ba305671800d2")),value:"/api/upload/chunk"}),getSchemaTpl("apiControl",{mode:"row",name:"finishChunkApi",label:tipedLabel(i18n("70c935fa7ae03aeb1ff87b878e16841f"),i18n("c88aaeddb5aa95c7627d84df33929e3f")),value:"/api/upload/finishChunk"})]}]},getSchemaTpl("apiControl",{name:"receiver",label:tipedLabel(i18n("1e4dc4d5f4a3a95ddc349147d4d8cd39"),i18n("258d9e27231b06769dd584a3365545ba")),className:"inputFile-apiControl",renderLabel:!0,value:"/api/upload/file",__isUpload:!0,visibleOn:'this.uploadType === "fileReceptor" && !this.useChunk'}),{type:"input-text",value:"",name:"accept",label:tipedLabel(i18n("28b988ce6ae6dd62d24bcb8a52119179"),i18n("f0a37d6f810c73a2f936f33035d99056"))},getSchemaTpl("fileUrl",{name:"templateUrl",label:tipedLabel(i18n("58892b7a6a785706712761d5aebb4639"),i18n("af4b910df15b00ba7fb5163558389cfe"))}),getSchemaTpl("switch",{name:"drag",label:i18n("26d384ebe61b6ffe0e64310331f9e998"),value:!1}),getSchemaTpl("remark"),getSchemaTpl("labelRemark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi",{visibleOn:"!this.autoFill || this.autoFill.scene && this.autoFill.action"}),getSchemaTpl("autoFill",{visibleOn:"!this.autoFill || !this.autoFill.scene && !this.autoFill.action"})]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0}),getSchemaTpl("validation",{tag:ValidatorTag.File})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames",{unsupportStatic:!0,schema:[getSchemaTpl("className",{name:"descriptionClassName",label:i18n("3bdd08adab6ea90b9164b20a0e4151ac")}),getSchemaTpl("className",{name:"btnClassName",label:i18n("644d03767c8148de6651cc6b00b0173f")}),getSchemaTpl("className",{name:"btnUploadClassName",label:i18n("d1b06a828d05b0ff72328d50b16a8443")})]})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="FileControlPlugin",eme}(BasePlugin);registerEditorPlugin(FileControlPlugin);var addBtnCssClassName="themeCss.addBtnControlClassName",IconCssClassName="themeCss.iconControlClassName",editorPath="--inputImage-base",inputStateFunc=function(x_,eme){return[getSchemaTpl("theme:border",{name:"".concat(addBtnCssClassName,".border:").concat(eme),visibleOn:x_,editorValueToken:"".concat(editorPath,"-").concat(eme)}),getSchemaTpl("theme:colorPicker",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"".concat(addBtnCssClassName,".color:").concat(eme),labelMode:"input",visibleOn:x_,editorValueToken:"".concat(editorPath,"-").concat(eme,"-color")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"".concat(addBtnCssClassName,".background:").concat(eme),labelMode:"input",needGradient:!0,needImage:!0,visibleOn:x_,editorValueToken:"".concat(editorPath,"-").concat(eme,"-bg-color")}),getSchemaTpl("theme:colorPicker",{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),name:"".concat(addBtnCssClassName,".icon-color:").concat(eme),labelMode:"input",visibleOn:x_,editorValueToken:"".concat(editorPath,"-").concat(eme,"-icon-color")})]},ImageControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-image",$P.$schema="/schemas/ImageControlSchema.json",$P.name=i18n("6bfb9bb2218ff32b6139e98bc93707c0"),$P.isBaseComponent=!0,$P.description=i18n("0a7f8e17f8487c3715a154bea698778e"),$P.docLink="/amis/zh-CN/components/form/input-image",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.icon="fa fa-crop",$P.pluginIcon="input-image-plugin",$P.scaffold={type:"input-image",label:i18n("6bfb9bb2218ff32b6139e98bc93707c0"),name:"image",autoUpload:!0,proxy:!0,uploadType:"fileReceptor",imageClassName:"r w-full"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("8dccb3d6633a85edb21fa52599211654"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{file:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")}}}}}]},{eventName:"remove",eventLabel:i18n("7dcb3fb3ccc93369798d4b6950e96058"),description:i18n("03d585240162dad662a0a6b5d90a4692"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("6775136a73e41c1b2cb4ab025773e326")}}}}}]},{eventName:"success",eventLabel:i18n("a7699ba73144aad544eb9ac49f82749d"),description:i18n("e309c24c2b07e5970208a82388f1d88e"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")},result:{type:"object",title:i18n("fd3913adcb81427f1895ab5b79ebe0b2")}}}}}]},{eventName:"fail",eventLabel:i18n("54e5de428ca9d59119d4624706215a4d"),description:i18n("4855bc3f3d06b9cf58d14b61839c5a51"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("5560230c43dd8d8c2b4a62d829f152b3")},error:{type:"object",title:i18n("236dc056d6800bf423df47520637c52d")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("36d40a48f3da92af9fe55ee77cfae46f"),description:i18n("18843505278637e44a29e7e1f39e0b06")},getActionCommonProps("clear")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"input-text",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),visibleOn:'typeof this.value !== "undefined"'},{type:"input-text",value:".jpeg, .jpg, .png, .gif",name:"accept",label:tipedLabel(i18n("7c5e7ad8954effd97cb78dcb0e8f99d9"),i18n("f816b3decb401dcd0c22db7f104beccc"))},{type:"input-text",name:"frameImage",label:i18n("99e6b6011bacaabc18aeac70390252a3")},getSchemaTpl("uploadType",{visibleOn:'this.submitType === "asUpload" || !this.submitType',pipeIn:function(ame,nme){return ame||"fileReceptor"},pipeOut:function(ame,nme){return ame||"fileReceptor"}}),getSchemaTpl("apiControl",{mode:"row",name:"receiver",label:tipedLabel(i18n("1e4dc4d5f4a3a95ddc349147d4d8cd39"),i18n("d24bada35447c81d7d7ddec13c44b576")),visibleOn:'this.uploadType === "fileReceptor"',value:"/api/upload",__isUpload:!0}),getSchemaTpl("bos",{visibleOn:'this.uploadType === "bos"'}),getSchemaTpl("proxy",{value:!0}),getSchemaTpl("multiple",{patch:{value:!1,visibleOn:"!this.crop",label:tipedLabel(i18n("e3be7b8a459a08fec8f378a0660b642b"),i18n("d4633ba7a30303a59891d051a7715cc9"))},body:[{name:"maxLength",label:i18n("0ec0e6e04b9e918939ac8e0daf407b75"),type:"input-number"}]}),getSchemaTpl("switch",{name:"hideUploadButton",label:i18n("037805d2f16cfe69e3145c9f436c06ef"),value:!1}),getSchemaTpl("switch",{name:"autoUpload",label:i18n("7245fe895fa1cfc42b5217a3de314565"),value:!1}),getSchemaTpl("switch",{name:"crop",visibleOn:"!this.multiple",label:tipedLabel(i18n("4838f2f4ecafd0a3a4fcfe82521acdd9"),i18n("3d948d24bc4c29689c5a1d4bcb9f2b98")),pipeIn:function(ame){return!!ame}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.crop",body:[{name:"crop.aspectRatio",type:"input-text",label:i18n("e09f3466f78e62c1494fb36816950501"),pipeOut:valuePipeOut},getSchemaTpl("switch",{name:"crop.rotatable",label:i18n("c7fa7f54ece94ae684aee1ee2088a5ae"),pipeOut:valuePipeOut}),getSchemaTpl("switch",{name:"crop.scalable",label:i18n("bd698e3f47ede4e59aafb28a291b77e7"),pipeOut:valuePipeOut}),{name:"crop.viewMode",type:"select",label:i18n("f785a357a820555445acd6f7051b1048"),value:1,options:[{label:i18n("bc436447f54b10a9ac3f0ee3e1b863dc"),value:0},{label:i18n("7ccc0313ac4c40b364f482341ecc3bb8"),value:1}],pipeOut:valuePipeOut},{name:"cropQuality",type:"input-number",label:tipedLabel("压缩质量","裁剪后会重新生成，体积可能会变大，需要设置压缩质量降低体积，数值越小压缩率越高"),step:.1,min:.1,max:1,value:.7}]},getSchemaTpl("switch",{name:"limit",label:i18n("4db4c540f05524c38e9431173736517b"),pipeIn:function(ame){return!!ame},onChange:function(ame,nme,rme,ime){ame||ime.setValues({maxSize:void 0})}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.limit",body:[{name:"maxSize",type:"input-number",suffix:"B",label:tipedLabel(i18n("0a9dced8856958fbd05508d1218f8090"),i18n("13446481eaf0a047d8fddf159d981a7c"))},{type:"input-number",name:"limit.width",label:tipedLabel(i18n("c28479019e24e0e4745f4948e9e97ee7"),i18n("17a689143f0c7003123bb3c947d35273"))},{type:"input-number",name:"limit.height",label:tipedLabel(i18n("c1df04eec5fa0857bc0df2d68d8e953c"),i18n("2aa41edf8cfa79e7e5fcf38c9742b495"))},{type:"input-number",name:"limit.maxWidth",label:i18n("99b57d8c9244ff9a695fcd519b4e2e57")},{type:"input-number",name:"limit.maxHeight",label:i18n("fc2bc4193eea63128961d09497e07dc8")},{type:"input-number",name:"limit.minWidth",label:i18n("a2b62974f4d7564bb68b570116f25a10")},{type:"input-number",name:"limit.minHeight",label:i18n("2bd921d0ea7a73b77ee0fcddb1afcc84")},{type:"input-number",name:"limit.aspectRatio",label:i18n("b7623c7e17098d5950694437aa7584ad")},{type:"input-text",name:"limit.aspectRatioLabel",label:tipedLabel(i18n("1765a2daba3ba8c5af95e66fa83545d4"),i18n("a7b7da38fcb8e246e910e178c5fe4ebc"))}]}]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0}),getSchemaTpl("validation",{tag:ValidatorTag.File})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:__spreadArray(__spreadArray(__spreadArray(__spreadArray([{type:"select",name:"__editorState",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"active"}]}],__read$3(inputStateFunc("${__editorState == 'default' || !__editorState}","default")),!1),__read$3(inputStateFunc("${__editorState == 'hover'}","hover")),!1),__read$3(inputStateFunc("${__editorState == 'active'}","active")),!1),[getSchemaTpl("theme:radius",{name:"".concat(addBtnCssClassName,".border-radius"),label:i18n("0103eb2d3dca70270d1a74e9ec987ac9"),editorValueToken:"".concat(editorPath,"-default")}),{name:"".concat(addBtnCssClassName,".--inputImage-base-default-icon"),label:i18n("598f69a9b640508d8e124fd7d33131f0"),type:"icon-select",returnSvg:!0},getSchemaTpl("theme:select",{name:"".concat(IconCssClassName,".iconSize"),label:i18n("ef79da787ad206e5d5f8cf62e195c836"),editorValueToken:"".concat(editorPath,"-default-icon-size")}),getSchemaTpl("theme:select",{name:"".concat(IconCssClassName,".margin-bottom"),label:i18n("ff58428ef8221c4c1bbf532dd3c77113"),editorValueToken:"".concat(editorPath,"-default-icon-margin")})],!1)},getSchemaTpl("theme:cssCode",{themeClass:[{name:i18n("88f109195ad926bcd436f0c56198240d"),value:"addOn",className:"addBtnControlClassName",state:["default","hover","active"]},{name:i18n("d825ba2b8ea0c1b0737b0dd5ca9bc128"),value:"icon",className:"iconControlClassName"}],isFormItem:!0})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="ImageControlPlugin",eme}(BasePlugin);registerEditorPlugin(ImageControlPlugin);var ExcelControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-excel",$P.$schema="/schemas/ExcelControlSchema.json",$P.name=i18n("899339c1133a6100a1b223680d26692c"),$P.isBaseComponent=!0,$P.icon="fa fa-eyedropper",$P.pluginIcon="input-excel-plugin",$P.description=i18n("b0e4a21f29af38986eebbbf867eee31b"),$P.docLink="/amis/zh-CN/components/form/input-excel",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-excel",label:"Excel",name:"excel"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("899339c1133a6100a1b223680d26692c"),$P.panelJustify=!0,$P.notRenderFormZone=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("7caadb59b5892d107a909816b6571c66"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("de3ad0cd57153f799f7538dd1e4fd441")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return formItemControl({common:{body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("d9435aa8028acfc660276c4e0af5536a"),name:"parseMode",type:"select",options:[{label:i18n("b14494137c805dc66bdc9ed88d7fd2de"),value:"object"},{label:i18n("0e67d4b0e351b00f4bea9840aa6b99d7"),value:"array"}]},getSchemaTpl("switch",{name:"allSheets",label:i18n("fe5c59cbac3d45314ec6397d9f75789a")}),getSchemaTpl("switch",{name:"plainText",label:i18n("50b10b178196378f4359ce11bbc31372"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"includeEmpty",label:i18n("1647e4bfb548f2e8468d10b4b3bfbe21"),visibleOn:'this.parseMode === "array"'})]}},tme)},$P}return eme.id="ExcelControlPlugin",eme}(BasePlugin);registerEditorPlugin(ExcelControlPlugin);var TreeCommonAction=[{actionType:"add",actionLabel:i18n("66ab5e9f24c8f46012a25c89919fb191"),description:i18n("9df3213a5f8211cf2626f4c5c646d71d"),innerArgs:["item","parentValue"],descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("66ab5e9f24c8f46012a25c89919fb191"),buildLinkActionDesc($P.manager,x_),i18n("a6354302d04750ab5e28fac72be054b1"))},schema:getArgsWrapper({type:"container",body:[{type:"input-kv",label:i18n("a6354302d04750ab5e28fac72be054b1"),name:"item",mode:"horizontal",inputClassName:"ml-2",size:"lg",required:!0,draggable:!1,valueType:"ae-formulaControl",keyPlaceholder:i18n("1a873cce402693b4c3b4bf16a4a04523"),value:{label:"",value:""}},getSchemaTpl("formulaControl",{label:i18n("75208f0b7fa9dd1633fa2dded76a6e8d"),name:"parentValue",mode:"horizontal",inputClassName:"ml-2",size:"lg",variables:"${variables}",inputMode:"input-group",placeholder:i18n("dcc957ddbe7fd921ea03d008f7ddae4c")})]})},{actionType:"edit",actionLabel:i18n("95b351c86267f3aedf89520959bce689"),description:i18n("cd407112daa4d933aead47835bedafb2"),innerArgs:["item","originValue"],descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("95b351c86267f3aedf89520959bce689"),buildLinkActionDesc($P.manager,x_),i18n("a6354302d04750ab5e28fac72be054b1"))},schema:getArgsWrapper({type:"container",body:[{type:"input-kv",label:i18n("a6354302d04750ab5e28fac72be054b1"),name:"item",mode:"horizontal",inputClassName:"ml-2",size:"lg",required:!0,draggable:!1,valueType:"ae-formulaControl",keyPlaceholder:i18n("1a873cce402693b4c3b4bf16a4a04523"),value:{label:"",value:""}},getSchemaTpl("formulaControl",{label:i18n("a3b6fcf7cfabfc83543bb00375235915"),name:"originValue",mode:"horizontal",inputClassName:"ml-2",required:!0,size:"lg",variables:"${variables}",inputMode:"input-group",placeholder:i18n("0f2dd97ecc370524fd8ff0a9ffb880a5")})]})},{actionType:"delete",actionLabel:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),description:i18n("e70edec390d0e602208f6951e1b5f01f"),innerArgs:["value"],descDetail:function(x_,eme,$P){return React__default.createElement("div",{className:"action-desc"},i18n("2f4aaddde33c9b93c36fd2503f3d122b"),buildLinkActionDesc($P.manager,x_),i18n("a6354302d04750ab5e28fac72be054b1"))},schema:getArgsWrapper([getSchemaTpl("formulaControl",{label:i18n("d16814fa14c14dbeca8d7e8600852255"),name:"value",mode:"horizontal",inputClassName:"ml-2",required:!0,size:"lg",variables:"${variables}",inputMode:"input-group",placeholder:i18n("6a2e7e69d5bcf2e2ab0c3e288d7fd2ab")})])}],TreeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-tree",$P.$schema="/schemas/TreeControlSchema.json",$P.name=i18n("6e065eee612393b1d6a16e7696e4c911"),$P.isBaseComponent=!0,$P.icon="fa fa-list-alt",$P.pluginIcon="input-tree-plugin",$P.description=i18n("912beb37a3785e50d6483852be41111f"),$P.searchKeywords=i18n("98cb62edf3436738df2561d01ee19ab0"),$P.docLink="/amis/zh-CN/components/form/input-tree",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-tree",label:i18n("6e065eee612393b1d6a16e7696e4c911"),name:"tree",options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A",children:[{label:i18n("57a6105deead3fec79028cce7bfa2004"),value:"C"},{label:i18n("9bc04a190ce0a5ba1ed473cb628b5ed4"),value:"D"}]},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{label:i18n("555fbc1714ad0d899939b12b95dabe09"),mode:"normal"})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("f77f634e6892c6447c5d9df623e42aff"),$P.regions=[{key:"toolbar",label:i18n("012f602372cd2dbd639cd966c63e1f90"),preferTag:i18n("56e6db657d4775698984f883b71cb379")}],$P.events=function(tme){return TREE_BASE_EVENTS(tme)},$P.actions=__spreadArray(__spreadArray([{actionType:"expand",actionLabel:i18n("e2edde5adbdf33f6dce59a299cbf5fad"),description:i18n("38747bcbc3c47924098076ee87e59933"),innerArgs:["openLevel"],descDetail:function(tme,ame,nme){var rme;return React__default.createElement("div",{className:"action-desc"},i18n("e2edde5adbdf33f6dce59a299cbf5fad"),buildLinkActionDesc(nme.manager,tme),"到第",React__default.createElement("span",{className:"variable-left variable-right"},(rme=tme==null?void 0:tme.args)===null||rme===void 0?void 0:rme.openLevel),i18n("37252d3a5eb0ebab17bfce14968b47c9"))},schema:getArgsWrapper(getSchemaTpl("formulaControl",{name:"openLevel",label:i18n("01356df4561f9da87d2876ec9c0dacfe"),variables:"${variables}",size:"lg",mode:"horizontal"}))},{actionType:"collapse",actionLabel:i18n("def9e98b60e3bfc493bcd7693e702096"),description:i18n("3ebb9059b6abc8f80a212b5795270ec2"),descDetail:function(tme,ame,nme){var rme,ime;return React__default.createElement("div",{className:"action-desc"},i18n("def9e98b60e3bfc493bcd7693e702096"),buildLinkActionDesc(nme.manager,tme),!((rme=tme==null?void 0:tme.args)===null||rme===void 0)&&rme.closeLevel?React__default.createElement(React__default.Fragment,null,"到第",React__default.createElement("span",{className:"variable-left variable-right"},(ime=tme==null?void 0:tme.args)===null||ime===void 0?void 0:ime.closeLevel),i18n("37252d3a5eb0ebab17bfce14968b47c9")):"")},innerArgs:["closeLevel"],schema:getArgsWrapper(getSchemaTpl("formulaControl",{name:"closeLevel",label:"收起层级",variables:"${variables}",size:"lg",mode:"horizontal",horizontal:{left:"normal"}}))}],__read$3(TreeCommonAction),!1),[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("d81f0b9079d5a38bbedffeacaad8b905")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("ce5e449208bb568eaf722bab9a20380e")},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue")),{actionType:"search",actionLabel:i18n("e5f71fc31e7246dd6ccc5539570471b0"),description:"搜索当前数据源内的选项",descDetail:function(tme,ame,nme){var rme,ime;return React__default.createElement("div",{className:"action-desc"},i18n("e5f71fc31e7246dd6ccc5539570471b0"),buildLinkActionDesc(nme.manager,tme),!((rme=tme==null?void 0:tme.args)===null||rme===void 0)&&rme.keyword?React__default.createElement(React__default.Fragment,null,React__default.createElement("span",{className:"variable-left variable-right"},(ime=tme==null?void 0:tme.args)===null||ime===void 0?void 0:ime.keyword),"的选项"):"")},innerArgs:["keyword"],schema:getArgsWrapper(getSchemaTpl("formulaControl",{name:"keyword",label:"关键词",variables:"${variables}",size:"lg",mode:"horizontal",horizontal:{left:"normal"}}))}],!1),$P.panelDefinitions={options:{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:"group",body:[getSchemaTpl("optionsLabel"),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]},{$ref:"options",label:i18n("72453d792655604f1fab821146133d7d"),name:"children",addButtonText:i18n("210da23d108e85b2f0bbfa85846cb792")}]}},$P.panelJustify=!0,$P.panelBodyCreator=function(tme){tme.info.renderer;var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"button-group-select",name:"type",label:i18n("f0789e79d48f135e5d870753f7a85d05"),pipeIn:defaultValue("input-tree"),options:[{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"input-tree"},{label:i18n("a553741d5ebb9c80d7d2a63b202cf4b8"),value:"tree-select"}]},getSchemaTpl("clearable",{mode:"horizontal",horizontal:{justify:!0,left:8},value:!1,inputClassName:"is-inline ",visibleOn:'this.type === "tree-select"'}),getSchemaTpl("switch",{label:i18n("dbdae74eb12668e2b9568b013bf27d45"),name:"searchable"}),getSchemaTpl("apiControl",{name:"searchApi",label:i18n("5c52d3e283d197588e29ca31bc613ffe"),labelClassName:"none",visibleOn:'this.type === "input-tree" && this.searchable'}),getSchemaTpl("multiple",{body:[{type:"input-number",label:tipedLabel(i18n("4e373f3ff64ad29a01da87317eb92088"),i18n("7a377ac3904628fd73e7d33ce6130ae1")),name:"minLength",min:0},{type:"input-number",label:tipedLabel(i18n("160cb9a7d57c5b5ca65b5cdf79e8fd28"),i18n("674ddb63a7cd9e14a49813d52cf7e25e")),name:"maxLength",min:0}]}),getSchemaTpl("switch",{label:tipedLabel(i18n("204770091fd4b7cd0611ddc65bf21d37"),i18n("be7d848c40dfdd3e20f233c373af00a5")),name:"autoCheckChildren",hiddenOn:"!this.multiple",value:!0}),getSchemaTpl("switch",{label:tipedLabel(i18n("4c3ed2fc7331db687fc0e8ffb8f672a7"),i18n("0ae8c01434dc2a38a90561fcbf5d79b5")),name:"cascade",hiddenOn:"!this.multiple || !this.autoCheckChildren"}),getSchemaTpl("switch",{label:tipedLabel("子节点反选取消父节点","取消任意子节点选中状态的同时取消父节点选中状态"),name:"autoCancelParent",hiddenOn:"!this.multiple || !this.cascade"}),getSchemaTpl("switch",{label:tipedLabel(i18n("22c023bf51970a461cc164e711f3d3ff"),i18n("6e19e48a52986659ae5ba1bfe612ba8a")),name:"withChildren",hiddenOn:"!this.multiple || !this.autoCheckChildren && this.cascade"}),getSchemaTpl("switch",{label:tipedLabel(i18n("cccb3595f8ff536e27d94ec91a49bfdf"),i18n("49ccf100ac35e1cc3d40b7222cdcd1a7")),name:"onlyChildren",hiddenOn:"!this.multiple || !this.autoCheckChildren"}),getSchemaTpl("valueFormula",{rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{type:"tree-select"})},visibleOn:"this.options && this.options.length > 0"}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[getSchemaTpl("treeOptionControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),showIconField:!0}),getSchemaTpl("optionsMenuTpl",{manager:$P.manager}),getSchemaTpl("apiControl",{name:"deferApi",label:i18n("dd52923c45686a6f507854e438d4880e"),labelClassName:"none"}),getSchemaTpl("deferField"),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),{type:"checkboxes",name:"nodeBehavior",label:"节点行为",value:["check"],joinValues:!1,extractValue:!0,inline:!0,options:[{label:"选中",value:"check"},{label:i18n("e2edde5adbdf33f6dce59a299cbf5fad"),value:"unfold"}]},getSchemaTpl("switch",{label:i18n("a0e965072593eb1b19b4568fa26d977c"),name:"onlyLeaf"}),getSchemaTpl("optionAddControl",{manager:$P.manager,replace:!0,collections:[getSchemaTpl("switch",{label:i18n("bc560e477282dafc3c37b7a665af4f9c"),value:!0,name:"rootCreatable"}),{type:"input-text",label:i18n("9a3af29bac4ff8dff3305e283acb2516"),value:i18n("b4eab506cf436d3cdd1cd68fc857ec04"),name:"rootCreateTip",hiddenOn:"!this.rootCreatable"},{type:"input-text",label:i18n("f273cc663180d6f62497ff3a28f4fdd7"),value:i18n("897deae9c4c3dc0baa4a6989bb8727b6"),name:"createTip"}]}),getSchemaTpl("optionEditControl",{manager:$P.manager,collections:[{type:"input-text",label:i18n("aefacb210d5fa5eff897a302269ed920"),value:i18n("f9886b3adb1ec253d24432615b62151c"),name:"editTip"}]}),getSchemaTpl("optionDeleteControl",{manager:$P.manager,collections:[{type:"input-text",label:i18n("b8079d1411b21dbc48749154a827a680"),value:i18n("176a53a7fc4759482d71312551d868ec"),name:"removeTip"}]}),{type:"select",label:"操作栏位置",value:"",name:"themeCss.actionControlClassName.marginLeft",options:[{label:i18n("39a2cb79c6d9762783e20522ea86dcff"),value:""},{label:i18n("de2a774bf98944b8f0ec8755d5f59d64"),value:"auto"}]},{type:"ae-switch-more",mode:"normal",label:"自定义操作",bulk:!1,name:"itemActions",formType:"extend",form:{body:[{type:"button",level:"primary",size:"sm",block:!0,onClick:$P.editDetail.bind($P,tme.id),label:"配置自定义操作模板"}]},pipeIn:function(nme){return nme!==void 0},pipeOut:function(nme){return nme===!0?{type:"button",icon:"fa fa-plus",level:"link",size:"xs"}:nme||void 0}}]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("valueFormula",{name:"highlightTxt",label:i18n("2b3073b1ba5f9deab7818d8be02de3a1"),visibleOn:'this.type === "input-tree"'}),{type:"ae-Switch-More",mode:"normal",name:"enableNodePath",label:tipedLabel(i18n("14dc30e68a3d8d53e8ddd98876c1d480"),i18n("68c7da9593da32100cb82ef5106047e1")),value:!1,formType:"extend",autoFocus:!1,form:{body:[{type:"input-text",label:i18n("9cb417cfac37e6d65dedbc35ee9e916e"),value:"/",name:"pathSeparator"}]}},{type:"ae-Switch-More",mode:"normal",name:"hideRoot",label:i18n("d6840c02c4d9cd5f4f5fd4d9f3e6b916"),value:!0,trueValue:!1,falseValue:!0,formType:"extend",autoFocus:!1,form:{body:[{type:ame?"input-text-i18n":"input-text",label:i18n("e2c310a329c2cf62a0764fc912f2f583"),value:i18n("c48d9f48ce8a798772f17d1f47560529"),name:"rootLabel"}]},visibleOn:'this.type === "input-tree"'},getSchemaTpl("switch",{label:tipedLabel(i18n("0aa73cfbe5a84cd34a212de5bab2058d"),i18n("4dabfefd787102b8159b5c4a221aa048")),name:"hideNodePathLabel",visibleOn:'this.type==="tree-select"'}),getSchemaTpl("switch",{label:i18n("8c9a3a8cd5de83121c03c83f909a7534"),name:"showIcon",value:!0}),getSchemaTpl("switch",{label:tipedLabel(i18n("ae7d563d3190ddbafdda8093fc28fc5f"),i18n("4444d03faa51f8550a8a4547fb471ab7")),name:"showRadio",hiddenOn:"this.multiple"}),getSchemaTpl("switch",{label:tipedLabel(i18n("0f993a54d2c67716220632577d3b5b51"),i18n("846da282ebfa6dfe61deb1d58145158c")),name:"showOutline"}),{type:"ae-Switch-More",mode:"normal",name:"initiallyOpen",label:tipedLabel(i18n("d7eae84550f9b9bc0c78a94e4072ad0d"),i18n("346f7e0c7ef27b6a83f3c9f8f406d737")),value:!0,trueValue:!1,falseValue:!0,formType:"extend",autoFocus:!1,form:{body:[{type:"input-number",label:i18n("b40163733b8e3a420e38f295bfab369d"),name:"unfoldedLevel",value:1,min:0,hiddenOn:"this.initiallyOpen"}]}},getSchemaTpl("virtualThreshold"),getSchemaTpl("virtualItemHeight")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Tree})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem",{schema:{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),name:"wrapperCustomStyle.root.height",clearable:!0,unitOptions:["px","%","em","vh","vw"]}}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),getSchemaTpl("theme:base",{classname:"toolbarControlClassName",title:i18n("af608093f1d3c25e85bdb4ed17f8b947"),visibleOn:"this.searchable"}),getSchemaTpl("theme:singleCssCode",{selectors:[{label:"树基本样式",selector:".cxd-TreeControl"},{label:"树工具栏样式",selector:".cxd-Tabs-toolbar"}]})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.prototype.getSubEditorVariable=function($P){var tme=($P==null?void 0:$P.labelField)||"label",ame=($P==null?void 0:$P.valueField)||"value";return[{label:"当前节点",children:[{label:"节点索引",value:"index"},{label:"节点名称",value:tme},{label:"节点值",value:ame},{label:"节点状态",value:"checked"}]}]},eme.prototype.getDisplayField=function($P){var tme;return $P.source||$P.map&&Array.isArray($P.map)&&$P.map[0]&&Object.keys($P.map[0]).length>1?(tme=$P.labelField)!==null&&tme!==void 0?tme:"label":"item"},eme.prototype.editDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"button",icon:"fa fa-plus",level:"link",size:"xs"};rme&&ime&&this.manager.openSubEditor({title:"配置自定义操作模板",value:schemaToArray((tme=ime.itemActions)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{itemActions:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.id="TreeControlPlugin",eme}(BasePlugin);registerEditorPlugin(TreeControlPlugin);var TagControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-tag",$P.$schema="/schemas/TagControlSchema.json",$P.name=i18n("fb7b49ff7f85f6e3f995b5eaae42d084"),$P.isBaseComponent=!0,$P.icon="fa fa-tag",$P.pluginIcon="input-tag-plugin",$P.description=i18n("74104c62ed33836f0bc74297539dd7c9"),$P.searchKeywords=i18n("a0d2d27fe320721bd5b0157fd5466b9d"),$P.docLink="/amis/zh-CN/components/form/input-tag",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-tag",label:i18n("14d342362f66aa86e2aa1c1e11aa1204"),name:"tag",options:[{label:i18n("52636511861a0e08cbe6a0eb1c27d816"),value:"red"},{label:i18n("b2c712c788d3a143206eee22fe24d9f1"),value:"green"},{label:i18n("9c9aabab3f7627ff4bb224b2738b26ea"),value:"blue"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3(__assign$3({},$P.scaffold),{value:"red"})},$P.notRenderFormZone=!0,$P.panelTitle=i18n("14d342362f66aa86e2aa1c1e11aa1204"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("ee167d4c74e600248aefe9d0ba474705"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0),nme=ame.value,rme=ame.selectedItems,ime=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,selectedItems:rme,items:ime}}}}]}},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("ab0710b367acefa1d6a78e2338291e86"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0),nme=ame.value,rme=ame.selectedItems,ime=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,selectedItems:rme,items:ime}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0),nme=ame.value,rme=ame.selectedItems,ime=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,selectedItems:rme,items:ime}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("770fe9e7899cd310b035ef50a39ab2ae")},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return formItemControl({common:{replace:!0,body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("clearable"),getSchemaTpl("optionsTip"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame},mode:"vertical"}),getSchemaTpl("joinValues"),getSchemaTpl("delimiter"),getSchemaTpl("extractValue"),{type:"input-number",name:"max",label:tipedLabel("最大标签数量","最多选择的标签数量"),min:1},getSchemaTpl("autoFillApi",{visibleOn:"!this.autoFill || this.autoFill.scene && this.autoFill.action"}),getSchemaTpl("autoFill",{visibleOn:"!this.autoFill || !this.autoFill.scene && !this.autoFill.action"})]},option:{body:[getSchemaTpl("optionControlV2",{description:i18n("6f6fa31a91b516b28ebee7a86a9b13e2")})]},status:{}},tme)},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme=resolveOptionType($P.schema),bme={type:hme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return!((ome=$P.schema)===null||ome===void 0)&&ome.extractValue?bme={type:"array",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name)}:((cme=$P.schema)===null||cme===void 0?void 0:cme.joinValues)===!1&&(bme={type:"array",title:((dme=$P.schema)===null||dme===void 0?void 0:dme.label)||((ume=$P.schema)===null||ume===void 0?void 0:ume.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:(ame={},ame[((fme=$P.schema)===null||fme===void 0?void 0:fme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((pme=$P.schema)===null||pme===void 0?void 0:pme.valueField)||"value"]={type:hme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)},originalValue:bme.originalValue}),bme},eme.id="TagControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(TagControlPlugin);var ListControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="list-select",$P.$schema="/schemas/ListControlSchema.json",$P.name=i18n("d22dfe420e4b00e000b93f94db3c856e"),$P.isBaseComponent=!0,$P.icon="fa fa-ellipsis-h",$P.pluginIcon="list-select-plugin",$P.description=i18n("2c05e451a6f2b2fe1cf55f7afb8c8423"),$P.docLink="/amis/zh-CN/components/form/list-select",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"list-select",label:i18n("3712972d84adf48acbd6ad24b4d75ad0"),name:"list",options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:"A"})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("d22dfe420e4b00e000b93f94db3c856e"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return formItemControl({common:{replace:!0,body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("multiple"),getSchemaTpl("extractValue"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return __assign$3(__assign$3({},ame||{}),{itemSchema:null})},useSelectMode:!0,visibleOn:"this.options && this.options.length > 0"})]},option:{body:[getSchemaTpl("optionControlV2"),{type:"ae-switch-more",mode:"normal",label:i18n("3585e4dd456b41fb8aec43f927b6a27c"),bulk:!1,name:"itemSchema",formType:"extend",form:{body:[{type:"dropdown-button",label:i18n("25e4c39320150bca74b4c05c7740e365"),level:"enhance",buttons:[{type:"button",block:!0,onClick:$P.editDetail.bind($P,tme.id,"itemSchema"),label:i18n("d8bab42dd5fad3f25760e190b552fac0")},{type:"button",block:!0,onClick:$P.editDetail.bind($P,tme.id,"activeItemSchema"),label:i18n("70864b156cd3a9c8d982074feb01f587")}]}]},pipeIn:function(ame){return ame!==void 0},pipeOut:function(ame,nme,rme){return ame===!0?{type:"container",body:[{type:"tpl",tpl:"${".concat($P.getDisplayField(rme),"}"),wrapperComponent:"",inline:!0}]}:ame||void 0}}]},status:{}},tme)},$P}return eme.prototype.getSubEditorVariable=function($P){var tme=($P==null?void 0:$P.labelField)||"label",ame=($P==null?void 0:$P.valueField)||"value";return[{label:i18n("010b98c12fe130496016ea515b70ec32"),children:[{label:i18n("f69608e93e9728f4fbef583bfa1326c1"),value:tme},{label:i18n("684a0d1aeca4e9acff89221b57826d4d"),value:ame}]}]},eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.prototype.filterProps=function($P){return JSONPipeOut($P)},eme.prototype.getDisplayField=function($P){var tme;return(tme=$P==null?void 0:$P.labelField)!==null&&tme!==void 0?tme:"label"},eme.prototype.editDetail=function($P,tme){var ame,nme,rme=this.manager,ime=rme.store,ome=ime.getNodeById($P),lme=ime.getValueOf($P),sme={type:"container",body:[{type:"tpl",tpl:"${".concat(this.getDisplayField(lme),"}"),inline:!0,wrapperComponent:""}]};tme!=="itemSchema"&&(lme!=null&&lme.itemSchema)&&(sme=JSONPipeIn(lme.itemSchema,!0)),ome&&lme&&this.manager.openSubEditor({title:i18n("25e4c39320150bca74b4c05c7740e365"),value:(nme=lme[tme])!==null&&nme!==void 0?nme:sme,slot:{type:"container",body:"$$"},onChange:function(cme){var dme;cme=__assign$3(__assign$3({},lme),(dme={},dme[tme]=schemaArrayFormat(cme),dme)),rme.panelChangeValue(cme,diff(lme,cme))},data:(ame={},ame[lme.labelField||"label"]=i18n("369f7b53301a54c2240a618827ee2f83"),ame[lme.valueField||"value"]=i18n("684a0d1aeca4e9acff89221b57826d4d"),ame.item=i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),ame)})},eme.id="ListControlPlugin",eme}(BasePlugin);registerEditorPlugin(ListControlPlugin);var ButtonGroupControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="button-group-select",$P.$schema="/schemas/ButtonGroupControlSchema.json",$P.name=i18n("729a4cca5ed3504793c1f3a87d2b48b9"),$P.isBaseComponent=!0,$P.icon="fa fa-object-group",$P.pluginIcon="btn-select-plugin",$P.description=i18n("29513434492e5d19a9660e0a918befd1"),$P.docLink="/amis/zh-CN/components/button-group",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"button-group-select",name:"buttonGroupSelect",label:i18n("729a4cca5ed3504793c1f3a87d2b48b9"),inline:!1,options:[{label:i18n("6edda84461bf13d38328cb401c8c23db"),value:"a"},{label:i18n("39692081e75ef73c6479fc25f8f10dfc"),value:"b"}]},$P.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:__assign$3(__assign$3({},$P.scaffold),{value:"a",label:i18n("729a4cca5ed3504793c1f3a87d2b48b9"),description:i18n("a457872a51628ccadfb9bcfa23428a98")})},$P.notRenderFormZone=!0,$P.panelTitle=i18n("729a4cca5ed3504793c1f3a87d2b48b9"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:ame}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("multiple"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame},useSelectMode:!0}),getSchemaTpl("description")]},{title:i18n("66774850742a81e8b2393195290b7330"),body:[getSchemaTpl("nav-badge"),getSchemaTpl("optionControlV2")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("formItemMode"),getSchemaTpl("horizontal",{label:"",visibleOn:'this.mode == "horizontal" && this.label !== false && this.horizontal'}),getSchemaTpl("switch",{name:"tiled",label:tipedLabel(i18n("8eb18b36f5a27fa8e6d32bc66546ce05"),i18n("944908c981a86bfa0cfab9360ab38184")),pipeIn:defaultValue(!1),visibleOn:'this.mode !== "inline"'}),getSchemaTpl("size"),getSchemaTpl("buttonLevel",{label:i18n("ac3880323853de9adc4f66bc06d438ff"),name:"btnLevel"}),getSchemaTpl("buttonLevel",{label:i18n("0b98b0bea3db6ae5b67a09c7bb2d032b"),name:"btnActiveLevel",pipeIn:defaultValue("primary")})]},getSchemaTpl("style:classNames",{isFormItem:!0,schema:[getSchemaTpl("className",{label:i18n("fa966345577ba81af19408f203db968f"),name:"btnClassName"})]})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.id="ButtonGroupControlPlugin",eme}(BasePlugin);registerEditorPlugin(ButtonGroupControlPlugin);var ButtonToolbarControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="button-toolbar",$P.$schema="/schemas/ButtonToolbarControlSchema.json",$P.name=i18n("f05dd80af77a441216ef940e7887a8db"),$P.isBaseComponent=!0,$P.icon="fa fa-ellipsis-h",$P.pluginIcon="btn-toolbar-plugin",$P.description=i18n("433e2e80ec74563daf4368e59b525e34"),$P.docLink="/amis/zh-CN/components/form/button-toolbar",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"button-toolbar",label:i18n("f05dd80af77a441216ef940e7887a8db"),buttons:[__assign$3({type:"button",label:i18n("e9d2f66bbd44c96a3e03494bf6b1ebf0")},BUTTON_DEFAULT_ACTION),__assign$3({type:"button",label:i18n("ce35a17d2ba7caac95092a7a66ac9a0d")},BUTTON_DEFAULT_ACTION)]},$P.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:__assign$3({},$P.scaffold)},$P.regions=[{key:"buttons",label:i18n("3b49c8cece3f495f0e76b73823c68bfa"),preferTag:i18n("fa966345577ba81af19408f203db968f"),renderMethod:"renderButtons"}],$P.notRenderFormZone=!0,$P.panelTitle=i18n("012f602372cd2dbd639cd966c63e1f90"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("label"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("combo-container",{type:"combo",label:i18n("66774850742a81e8b2393195290b7330"),name:"buttons",mode:"normal",multiple:!0,addable:!0,minLength:1,draggable:!0,editable:!1,pipeIn:function(ame){return translateSchema(ame)},items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<span class="label label-default"><% if (this.type === "button-group") { %> '.concat(i18n("c8caf94205105bac5833ab31cc2129d7"),' <% } else { %><%= this.label %><% if (this.icon) { %><i class="<%= this.icon %>"/><% }%><% } %></span>')}],addButtonText:i18n("f9f2b9cc91cd332db6b2b732c3869233"),scaffold:{type:"button",label:i18n("fa966345577ba81af19408f203db968f")}})]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("formItemMode"),getSchemaTpl("horizontal",{label:"",visibleOn:'this.mode == "horizontal" && this.label !== false && this.horizontal'})]},getSchemaTpl("style:classNames",{isFormItem:!0,unsupportStatic:!0,schema:[getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"})]})])]}])},$P}return eme.id="ButtonToolbarControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ButtonToolbarControlPlugin);var PickerControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="picker",$P.$schema="/schemas/PickerControlSchema.json",$P.name=i18n("8fcbfdc1a9403f6339d81911473806da"),$P.isBaseComponent=!0,$P.icon="fa fa-window-restore",$P.pluginIcon="picker-plugin",$P.description=i18n("8f650b58c8421edecfb380d6f60ef40e"),$P.searchKeywords=i18n("ab7c4bf8e1f3d2779d62d0e5e038e2de"),$P.docLink="/amis/zh-CN/components/form/picker",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"picker",label:i18n("8fcbfdc1a9403f6339d81911473806da"),name:"picker",options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}],overflowConfig:{maxTagCount:-1},modalClassName:"app-popover :AMISCSSWrapper"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("c75fde0e2d329ce62f55cb1a207181ae"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme),nme=ame.value,rme=ame.selectedItems;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,selectedItems:rme}}}}]}},{eventName:"itemClick",eventLabel:i18n("4ea280a2e54969de1d1b9bbd5b708e63"),description:i18n("f05520432bb87ced419a1da818c6cc9d"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme).itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("91f7b7fdf9b91073ca3519260f7a62d7"),properties:ame}}}}}]}}],$P.panelJustify=!0,$P.panelTitle=i18n("8fcbfdc1a9403f6339d81911473806da"),$P.panelBodyCreator=function(tme){var ame=function(rme,ime){var ome=ime==="default"?"base":"status-".concat(ime==="focused"?"focus":ime);return[getSchemaTpl("theme:border",{name:"themeCss.pickControlClassName.border:".concat(ime),editorValueToken:"--Pick-".concat(ome),visibleOn:rme}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),labelMode:"input",needGradient:!0,needImage:!0,name:"themeCss.pickControlClassName.background:".concat(ime),editorValueToken:"--Pick-".concat(ome,"-bgColor"),visibleOn:rme})]},nme=function(rme){rme===void 0&&(rme={});var ime=rme.namePre,ome=rme.title,lme=rme.key;return delete rme.namePre,__assign$3({type:"container",body:[{type:"switch",label:ome,name:"".concat(ime,".").concat(lme),inputClassName:"is-inline",onChange:function(sme,cme,dme,ume){var fme=cloneDeep$1(ume.data.overflowConfig)||{},pme=fme.displayPosition||[];if(sme)fme.displayPosition=uniq$1(__spreadArray(__spreadArray([],__read$3(pme),!1),[lme],!1));else{fme.displayPosition=pme.filter(function(bme){return bme!==lme});var hme=lme==="select"?"overflowTagPopover":"overflowTagPopoverInCRUD";delete fme[hme]}ume.setValues({overflowConfig:fme})}},{name:ime?"".concat(ime,".trigger"):"trigger",type:"select",label:tipedLabel(i18n("159dbc2fafd57b9d3652f16659b1b519"),i18n("ab97cef55407efa11f79211e17cb2b4b")),multiple:!0,value:["hover"],pipeIn:function(sme){return Array.isArray(sme)?sme.join(","):[]},pipeOut:function(sme){return sme&&sme.length?sme.split(","):void 0},options:[{label:i18n("728c7cdfa431821d291b5108394ec65a"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"click"}],visibleOn:"".concat(ime,".").concat(lme)},{type:"button-group-select",name:ime?"".concat(ime,".placement"):"placement",label:i18n("d586324c6d6b45cb78a4172d836dab3e"),size:"sm",options:[{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}],pipeIn:defaultValue("top"),visibleOn:"".concat(ime,".").concat(lme)},{type:"switch",label:tipedLabel(i18n("90919000a708f8d66b7591e21b8e33f1"),i18n("ed81f127f3b2aaff73a4f4dd5968fdcb")),name:ime?"".concat(ime,".showArrow"):"showArrow",inputClassName:"is-inline",visibleOn:"".concat(ime,".").concat(lme)},{type:"input-group",label:tipedLabel(i18n("8e290c31bc0b4f76edbd58c3575b8420"),i18n("03c87fc8d49f865f0c2895d9ef3fe352")),body:[{type:"input-number",name:ime?"".concat(ime,".offset"):"offset",prefix:"X：",pipeIn:function(sme){return Array.isArray(sme)&&sme[0]||0},pipeOut:function(sme,cme,dme){var ume=get$6(dme,ime?"".concat(ime,".offset"):"offset")||[];return[sme,ume[1]||0]}},{type:"input-number",name:ime?"".concat(ime,".offset"):"offset",prefix:"Y：",pipeIn:function(sme){return Array.isArray(sme)&&sme[1]||0},pipeOut:function(sme,cme,dme){var ume=get$6(dme,ime?"".concat(ime,".offset"):"offset")||[];return[ume[0]||0,sme]}}],visibleOn:"".concat(ime,".").concat(lme)}]},rme)};return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"select",label:tipedLabel(i18n("c2c23b4fc7f695c58e947ad413f2c5d8"),i18n("8ea6d154a7c25f8802406719c2ec3c02")),name:"modalMode",options:[{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"inner"},{label:i18n("ab3aec075a09d055b2a28c8b61925ee0"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"}],pipeIn:defaultValue("dialog"),onChange:function(rme,ime,ome,lme){if(lme.setValues({embed:rme==="inner"}),rme!=="inner")lme.setValues({modalMode:rme});else{var sme=cloneDeep$1(lme.data.overflowConfig);delete sme.overflowTagPopoverInCRUD,sme.displayPosition=["select"],lme.setValues({overflowConfig:sme})}}},getSchemaTpl("multiple"),{type:"ae-switch-more",formType:"dialog",name:"overflowConfigSwitch",className:"ae-switch-more-flex",pipeIn:function(rme){return!!rme},label:tipedLabel(i18n("361f434f3b82973d6526efefbb538118"),i18n("deab2747ddf5310781cad655c4f7a50f")),form:{body:[{type:"input-number",name:"overflowConfig.maxTagCount",label:i18n("8c019e522d7bfbf02d6600f91f3b4edf"),defaultValue:-1},nme({namePre:"overflowConfig.overflowTagPopover",title:i18n("5404c803438f1027131cb6fe35037075"),key:"select"}),getSchemaTpl("divider"),nme({namePre:"overflowConfig.overflowTagPopoverInCRUD",title:i18n("5d16dd78f1b9194d063322d117c75162"),key:"crud",hiddenOn:"!!embed"})]},visibleOn:"this.multiple"},getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[getSchemaTpl("optionControlV2"),getSchemaTpl("valueFormula",{mode:"vertical",rendererSchema:function(rme){return rme},useSelectMode:!0,label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),`当在fx中配置多选值时，需要适配值格式，示例：
                  选项值为
                  <pre>`.concat(JSON.stringify([{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A"},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}],null,2),`
                  </pre>选中选项A和选项B：
                  <ul>
                    <li>开启拼接值且拼接符为 ‘,’ ：值示例 'A,B'</li>
                    <li>关闭拼接值，开启仅提取值，值示例：['A', 'B']</li>
                    <li>关闭拼接值，关闭仅提取值，值示例：[
                      {label: '选项A', value: 'A'},
                      {label: '选项B', value: 'B'}
                    ]</li>
                  </ul>`))}),getSchemaTpl("textareaFormulaControl",{label:tipedLabel(i18n("00e44cfe38bdcdefa40ad63dec4e9bd4"),i18n("b2f3c4387bcabafaf39a7be9c624b584")),name:"labelTpl",mode:"normal",visibleOn:"!this.embed"}),{type:"button",label:i18n("1ac065ed64b81380384a0b371d5b404f"),block:!0,level:"primary",visibleOn:"!this.pickerSchema",onClick:$P.editDetail.bind($P,tme.id)},{type:"button",label:i18n("fb58b1b692e6cc562764f6969269f802"),block:!0,level:"primary",visibleOn:"this.pickerSchema",onClick:$P.editDetail.bind($P,tme.id)}]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer,hiddenList:["labelHide"]}),{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:__spreadArray(__spreadArray(__spreadArray(__spreadArray([{type:"select",name:"__editorState",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:i18n("d6763cb7640bed39caa058f156007a86"),value:"focused"},{label:i18n("710ad08b11419332713360d2750cd707"),value:"disabled"}]}],__read$3(ame("${__editorState == 'default' || !__editorState}","default")),!1),__read$3(ame("${__editorState == 'hover'}","hover")),!1),__read$3(ame("${__editorState == 'focused'}","focused")),!1),__read$3(ame("${__editorState == 'disabled'}","disabled")),!1)},{title:i18n("528609917710d813a55e5a6cecf1e458"),body:[getSchemaTpl("theme:font",{name:"themeCss.pickFontClassName.font:default",editorValueToken:"--Pick-base-value"}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),labelMode:"input",needGradient:!0,needImage:!0,name:"themeCss.pickValueWrapClassName.background",editorValueToken:"--Pick-base-value-bgColor"}),getSchemaTpl("theme:border",{name:"themeCss.pickValueWrapClassName.border:default",editorValueToken:"--Pick-base-value"}),getSchemaTpl("theme:radius",{name:"themeCss.pickValueWrapClassName.radius",editorValueToken:"--Pick-base"}),getSchemaTpl("theme:colorPicker",{label:i18n("988d7b545c09108379a54a1e6060f563"),labelMode:"input",needGradient:!0,needImage:!0,name:"themeCss.pickValueIconClassName.color",editorValueToken:"--Pick-base-value-icon-color"}),getSchemaTpl("theme:colorPicker",{label:i18n("7278e97a3360f7b31768b86b8d22173d"),labelMode:"input",needGradient:!0,needImage:!0,name:"themeCss.pickValueIconClassName.color:hover",editorValueToken:"--Pick-base-value-hover-icon-color"})]},{title:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),body:[{name:"themeCss.pickControlClassName.--Pick-base-icon",label:i18n("598f69a9b640508d8e124fd7d33131f0"),type:"icon-select",returnSvg:!0},getSchemaTpl("theme:colorPicker",{label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),labelMode:"input",needGradient:!0,needImage:!0,name:"themeCss.pickIconClassName.color",editorValueToken:"--Pick-base-icon-color"})]},getSchemaTpl("theme:cssCode",{themeClass:[],isFormItem:!0}),__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info;nme.renderer.name===this.rendererName&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("1ac065ed64b81380384a0b371d5b404f"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id;$P.schema,$P.region;var nme=$P.info;nme.renderer.name===this.rendererName&&tme.push("|",{label:i18n("1ac065ed64b81380384a0b371d5b404f"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);if(!(!nme||!rme)){var ime=nme.getComponent(),ome=__assign$3(__assign$3({type:"crud",mode:"list"},rme.pickerSchema||{listItem:{title:rme.labelField?"${"+rme.labelField+"}":"${label}"}}),{pickerMode:!0,multiple:rme.multiple,labelField:rme.labelField||"label",valueField:rme.valueField||"value"});isPureVariable(rme.source)||(ome.api=rme.source),this.manager.openSubEditor({title:i18n("1ac065ed64b81380384a0b371d5b404f"),value:ome,data:{options:ime.props.options},onChange:function(lme){lme=__assign$3(__assign$3({},rme),{pickerSchema:__assign$3({},lme),source:lme.api}),delete lme.pickerSchema.api,delete lme.pickerSchema.type,delete lme.pickerSchema.pickerMode,delete lme.pickerSchema.multiple,tme.panelChangeValue(lme,diff(rme,lme))}})}},eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.id="PickerControlPlugin",eme}(BasePlugin);registerEditorPlugin(PickerControlPlugin);var SwitchControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="switch",$P.$schema="/schemas/SwitchControlSchema.json",$P.name=i18n("a6beb974cc0b50eebd18120b8110a88b"),$P.isBaseComponent=!0,$P.icon="fa fa-toggle-on",$P.pluginIcon="switch-plugin",$P.description=i18n("d38b7fc2d31e0ae21cb4bc7d7df14e92"),$P.docLink="/amis/zh-CN/components/form/switch",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"switch",label:i18n("a6beb974cc0b50eebd18120b8110a88b"),option:i18n("f411d0f1f925d9b48d8c1d451bd809b1"),name:"switch",falseValue:!1,trueValue:!0},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{label:i18n("6e17d8bb70df1c1e379fa86cb235ac82")})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("a6beb974cc0b50eebd18120b8110a88b"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("ddccb436305b0a984c77d4ffa0725375"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("a75c768fda740b2c8f6e2dcc76400f23")})}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("switchOption"),{type:"ae-switch-more",bulk:!0,mode:"normal",label:i18n("7e1eec8349c4998d142960009305f27a"),formType:"extend",form:{body:[getSchemaTpl("onText"),getSchemaTpl("offText")]}},{type:"ae-switch-more",hiddenOnDefault:!1,mode:"normal",label:i18n("db0258df1ddbd88749b335aecdc8425e"),formType:"extend",form:{body:[{type:"ae-valueFormat",name:"trueValue",label:i18n("c580bacf343343f04a1b551e46d02c4f"),pipeIn:defaultValue(!0),pipeOut:undefinedPipeOut,onChange:function(ame,nme,rme,ime){var ome=(ime==null?void 0:ime.data)||{},lme=ome.value,sme=ome.trueValue;isPureVariable(lme)||sme===lme&&sme!==ame&&ime.setValues({value:ame})}},{type:"ae-valueFormat",name:"falseValue",label:i18n("9ff352ae39cdaeaa4fc54f83575eedc9"),pipeIn:defaultValue(!1),pipeOut:undefinedPipeOut,onChange:function(ame,nme,rme,ime){var ome=(ime==null?void 0:ime.data)||{},lme=ome.value,sme=ome.falseValue;isPureVariable(lme)||sme===lme&&sme!==ame&&ime.setValues({value:ame})}}]}},getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},omit$1(tme==null?void 0:tme.schema,["trueValue","falseValue"])),{type:"switch"}),needDeleteProps:["option"],rendererWrapper:!0,valueType:"boolean",pipeIn:function(ame,nme){var rme,ime;return isPureVariable(ame)?ame:ame===((ime=(rme=nme==null?void 0:nme.data)===null||rme===void 0?void 0:rme.trueValue)!==null&&ime!==void 0?ime:!0)},pipeOut:function(ame,nme,rme){if(isExpression(ame))return ame;var ime=rme||{},ome=ime.trueValue,lme=ome===void 0?!0:ome,sme=ime.falseValue,cme=sme===void 0?!1:sme;return ame?lme:cme}}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Check})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),{title:i18n("f411d0f1f925d9b48d8c1d451bd809b1"),body:[getSchemaTpl("horizontal-align",{name:"optionAtLeft",pipeIn:function(ame){return ame?"left":"right"},pipeOut:function(ame){return ame==="left"?!0:void 0}})]},getSchemaTpl("style:classNames")])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome;return{type:!((ame=$P.schema)===null||ame===void 0)&&ame.trueValue?typeof((nme=$P.schema)===null||nme===void 0?void 0:nme.trueValue):"boolean",title:((rme=$P.schema)===null||rme===void 0?void 0:rme.label)||((ime=$P.schema)===null||ime===void 0?void 0:ime.name),originalValue:(ome=$P.schema)===null||ome===void 0?void 0:ome.value}},eme.id="SwitchControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(SwitchControlPlugin);var RangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-range",$P.$schema="/schemas/RangeControlSchema.json",$P.name=i18n("6036c91d6b0b6d1a2468684e597d9f70"),$P.isBaseComponent=!0,$P.icon="fa fa-sliders",$P.pluginIcon="input-range-plugin",$P.description=i18n("4c65f10eacbfaf580236b5cbe2de68de"),$P.docLink="/amis/zh-CN/components/form/input-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-range",label:i18n("6036c91d6b0b6d1a2468684e597d9f70"),name:"range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("0a6a4aee139530801791c556e7177a7f"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"number"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("bc0689a4c353e9c95c5b7fc5aa49b59f")})}}}}]}},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("f34b1a3e26aadb6f60c546dbe9c62232"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"number"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("6d829f061ed82a688f2669c54dd83301")})}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("7c9ec5db3bf23f367c1a905d356aab5c"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"number"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("6d829f061ed82a688f2669c54dd83301")})}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("1659f1112dd649ec55390fe7c8e3b1d0")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("6036c91d6b0b6d1a2468684e597d9f70"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("switch",{label:i18n("753a8c54d3944e252be1af928b8e7afd"),name:"multiple"}),{type:"container",className:"ae-sub-content",visibleOn:"this.multiple",body:[getSchemaTpl("joinValues",{onChange:function(ame,nme,rme,ime){ime.deleteValueByName("value")}}),getSchemaTpl("delimiter",{onChange:function(ame,nme,rme,ime){ime.deleteValueByName("value")}})]},{type:"ae-input-range-value",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),visibleOn:"this.multiple",precision:"${precision}"},getSchemaTpl("valueFormula",{name:"value",rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number"}),valueType:"number",visibleOn:"!this.multiple",pipeIn:defaultValue(0),precision:"${precision}"}),getSchemaTpl("valueFormula",{name:"min",rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number"}),pipeIn:defaultValue(0),needDeleteProps:["min"],label:i18n("c322edb884724d04842fc35f4d29a24e"),valueType:"number",precision:"${precision}"}),getSchemaTpl("valueFormula",{name:"max",rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number"}),pipeIn:defaultValue(100),needDeleteProps:["max"],label:i18n("5da893141114a59da868052b3a17a79a"),valueType:"number",precision:"${precision}"}),{label:i18n("d26404c10871481ab6bbb4837a34ae95"),name:"step",type:"input-number",value:1,precision:"${precision}",pipeOut:function(ame){return ame||1}},{type:"input-number",name:"precision",label:tipedLabel(i18n("e284e64008fd8b066da04bca335d032a"),i18n("b317cbf67c94f986fc44cf4cbc2280c6")),min:1,max:100},getSchemaTpl("unit"),getSchemaTpl("switch",{name:"tooltipVisible",label:i18n("e48d95a94e49b81b12a0113a5c253d8f"),value:void 0,pipeOut:function(ame){return ame?void 0:!1},pipeIn:function(ame){return ame===void 0||ame===!0}}),{type:"container",className:"ae-ExtendMore mb-2",visibleOn:"this.tooltipVisible === undefined",body:[{type:"select",name:"tooltipPlacement",label:i18n("a465db53b8c98f42caa15ca5662f9c90"),value:"auto",options:[{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"},{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}]}]},getSchemaTpl("switch",{name:"showInput",label:i18n("1d1a0bd85740653320d80f0d6e0918e7"),value:!1}),getSchemaTpl("switch",{name:"clearable",label:i18n("d22aa5f57ff8679ee7b7d473ef31417d"),value:!1,visibleOn:"!!this.showInput"}),getSchemaTpl("autoFillApi")]},{title:i18n("15628d1d85aee23c229c528a70419414"),body:[{type:"ae-partsControl",mode:"normal"},{type:"ae-marksControl",mode:"normal",name:"marks"}]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.filterProps=function($P,tme){return $P.marks&&isObject$8($P.marks)&&$P.marks.hasOwnProperty("$$id")&&delete $P.marks.$$id,$P},eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme;return!((ame=$P.schema)===null||ame===void 0)&&ame.multiple&&((nme=$P.schema)===null||nme===void 0?void 0:nme.joinValues)===!1?{type:"object",title:((rme=$P.schema)===null||rme===void 0?void 0:rme.label)||((ime=$P.schema)===null||ime===void 0?void 0:ime.name),properties:{max:{type:"number",title:i18n("5da893141114a59da868052b3a17a79a")},min:{type:"number",title:i18n("c322edb884724d04842fc35f4d29a24e")}},originalValue:(ome=$P.schema)===null||ome===void 0?void 0:ome.value}:{type:"number",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),originalValue:(cme=$P.schema)===null||cme===void 0?void 0:cme.value}},eme.id="RangeControlPlugin",eme}(BasePlugin);registerEditorPlugin(RangeControlPlugin);var RateControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-rating",$P.$schema="/schemas/RatingControlSchema.json",$P.name=i18n("108db12ed4454cf1ab4242ca98442b7a"),$P.isBaseComponent=!0,$P.icon="fa fa-star-o",$P.pluginIcon="input-rating-plugin",$P.description=i18n("f11a0f49123c2099ca6c6162ca37f0ec"),$P.docLink="/amis/zh-CN/components/form/input-rating",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-rating",label:i18n("108db12ed4454cf1ab4242ca98442b7a"),name:"rating"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:3})]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("108db12ed4454cf1ab4242ca98442b7a"),$P.count=5,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("ce9201dd7d5816945fbedae79927518f"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"number",title:i18n("9b0c6dee9b5f48734c37901d4a430b71")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("e2c6470c3f2e76cb98ba951a64e41c3d")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label",{label:"Label"}),getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number"}),valueType:"number",visibleOn:"!data.multiple"}),getSchemaTpl("valueFormula",{name:"count",rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number",max:10,min:1,step:1,precision:0}),needDeleteProps:["count"],label:i18n("5da893141114a59da868052b3a17a79a"),valueType:"number"}),getSchemaTpl("switch",{name:"allowClear",label:tipedLabel(i18n("09bbfb387dce6201df1ccef2aab161a6"),i18n("5ea244a79d480632f635a254c95c38df")),value:!1}),getSchemaTpl("switch",{name:"half",label:i18n("fa6f66437097fe23c948f4f9b78ecec0"),value:!1}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("combo-container",{type:"combo",label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),mode:"normal",name:"texts",items:[{placeholder:"Key",type:"input-number",unique:!0,name:"key",columnClassName:"w-xs flex-none",min:0,step:1,max:10,precision:0},{placeholder:i18n("1a10cd6599219eafb615b34234cfc0b5"),type:ame?"input-text-i18n":"input-text",name:"value"}],draggable:!1,multiple:!0,pipeIn:function(nme){if(!isObject(nme))return Array.isArray(nme)?nme:[];var rme=Object.keys(nme).map(function(ime){return{key:ime||0,value:nme[ime]||""}});return rme},pipeOut:function(nme){if(nme.length){var rme={},ime=function(ome,lme){for(var sme=1;sme<=lme;sme++)if(!ome.includes(String(sme)))return sme};return nme.forEach(function(ome){var lme=ome.key!==void 0?Number(ome.key):ime(Object.keys(rme),$P.count);lme&&(rme[lme]=(ome==null?void 0:ome.value)||"")}),rme}}}),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0,readonly:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Check})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),{title:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),body:[{type:"ae-switch-more",label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),bulk:!0,mode:"normal",value:!1,formType:"extend",form:{body:[{type:"input-text",label:i18n("9c07532d0c9acfecfc4ec2eb265c3e03"),name:"char"}]},pipeIn:function(nme){if(typeof nme=="string"&&nme.length)return{character:nme}},pipeOut:function(nme){if(isObject(nme))return typeof nme.character=="string"?nme.character:void 0}},{type:"input-color",label:tipedLabel(i18n("2a3d1f6d5b0afdbf04033e2f2c1fa11e"),i18n("497562b3159756834c7adfe9525bd7b5")),name:"inactiveColor",pipeIn:defaultValue("#e7e7e8"),pipeOut:undefinedPipeOut},getSchemaTpl("combo-container",{type:"combo",label:i18n("4dd547945b10f672a7e48d7ffc42496e"),mode:"normal",name:"colors",items:[{placeholder:"Key",type:"input-number",unique:!0,name:"key",columnClassName:"w-xs flex-none",min:0,max:10,step:1,precision:0},{placeholder:"Value",type:"input-color",name:"value"}],value:{2:"#abadb1",3:"#787b81",5:"#ffa900"},draggable:!1,multiple:!0,pipeIn:function(nme){if(!isObject(nme))return Array.isArray(nme)?nme:[];var rme=Object.keys(nme).map(function(ime){return{key:ime,value:nme[ime]||""}});return rme},pipeOut:function(nme){if(nme.length){var rme={},ime=function(ome,lme){for(var sme=1;sme<=lme;sme++)if(!ome.includes(String(sme)))return sme};return nme.forEach(function(ome){var lme=ome.key!==void 0?Number(ome.key):ime(Object.keys(rme),$P.count);lme&&(rme[lme]=(ome==null?void 0:ome.value)||"")}),rme}}})]},{title:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),body:[getSchemaTpl("horizontal-align",{name:"textPosition",pipeIn:defaultValue("right")})]},getSchemaTpl("style:classNames",{schema:[getSchemaTpl("className",{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),name:"charClassName"}),getSchemaTpl("className",{label:i18n("f186d55a48868a88b026d48efc1cf36f"),name:"textClassName"})]})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme;return{type:"number",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),originalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value}},eme.id="RateControlPlugin",eme}(BasePlugin);registerEditorPlugin(RateControlPlugin);var CityControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-city",$P.$schema="/schemas/CityControlSchema.json",$P.name=i18n("ba6a6f2cdb46e8f80fbfd4fed20eafac"),$P.isBaseComponent=!0,$P.icon="fa fa-building-o",$P.pluginIcon="input-city-plugin",$P.description=i18n("20700607ccdb7b6c83f3b5bc525e6975"),$P.searchKeywords=i18n("a877779dc422c5321057b638d6d520e5"),$P.docLink="/amis/zh-CN/components/form/input-city",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-city",label:i18n("ba6a6f2cdb46e8f80fbfd4fed20eafac"),name:"city",allowCity:!0,allowDistrict:!0,extractValue:!0},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("ba6a6f2cdb46e8f80fbfd4fed20eafac"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("ee167d4c74e600248aefe9d0ba474705"),dataSchema:function(tme){var ame,nme,rme=tme.store.getNodeById(tme.store.activeId),ime=tme.dataSchema.current.schemas,ome=ime.find(function(lme){var sme;return(sme=lme.properties)===null||sme===void 0?void 0:sme[rme.schema.name]});return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},(nme=(ame=ome==null?void 0:ome.properties)===null||ame===void 0?void 0:ame[rme.schema.name])!==null&&nme!==void 0?nme:{}),{title:i18n("b06216eac0df52f6072a8adb095f72b7")})}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("770fe9e7899cd310b035ef50a39ab2ae")},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:function(ame){return ame},rendererWrapper:!0,mode:"vertical"}),{name:"extractValue",label:i18n("db0258df1ddbd88749b335aecdc8425e"),type:"button-group-select",size:"sm",options:[{label:i18n("d8848daffd80dbb21ace876ade2ea8a8"),value:!0},{label:i18n("977cfa6e8c7f036674afedfcc19ec7a2"),value:!1}]},getSchemaTpl("switch",{name:"allowCity",label:i18n("05fcf03ba044a04ce81bdbe6eaf49d17"),pipeIn:defaultValue(!0),onChange:function(ame,nme,rme,ime){if(!ame){var ome=cloneDeep$1(ime.data);ime.setValueByName("allowDistrict",void 0),ime.setValueByName("value",ome.extractValue?"":{})}}}),getSchemaTpl("switch",{name:"allowDistrict",label:i18n("1f1ca9df5fa3648c718ad04649888943"),visibleOn:"this.allowCity",pipeIn:defaultValue(!0),onChange:function(ame,nme,rme,ime){if(!ame){var ome=cloneDeep$1(ime.data);ime.setValueByName("value",ome.extractValue?"":{})}}}),getSchemaTpl("switch",{name:"searchable",label:i18n("af9cbd3988196fc104af4fed9461e152"),pipeIn:defaultValue(!1)}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme={type:"string",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),originalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value};return((ime=$P.schema)===null||ime===void 0?void 0:ime.extractValue)===!1&&(sme=__assign$3(__assign$3({},sme),{type:"object",title:((ome=$P.schema)===null||ome===void 0?void 0:ome.label)||((lme=$P.schema)===null||lme===void 0?void 0:lme.name),properties:{code:{type:"number",title:i18n("cc6c35a3e0f97fb9747905dc13e9b625")},provinceCode:{type:"number",title:i18n("936b62c222fcf6ba10fde069212fcf97")},province:{type:"string",title:i18n("d7009d07f04d208f84e6c343fbc80ab7")},cityCode:{type:"number",title:i18n("e982852e24060d47f29be600837b675a")},city:{type:"string",title:i18n("f7d29dfae05b5d049b64b040b14d9a00")},districtCode:{type:"number",title:i18n("0dad46b34f0ddc802bce0351dc4745eb")},district:{type:"string",title:i18n("d3ce40d862f1c7e4748e6c28ffb0a007")},street:{type:"string",title:i18n("716c3dc1bd990ccebc4fee34eb9171cf")}}})),sme},eme.id="CityControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(CityControlPlugin);var TransferPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="transfer",$P.$schema="/schemas/TransferControlSchema.json",$P.name=i18n("685e5f4815e87c4690dda7d7aa163904"),$P.isBaseComponent=!0,$P.icon="fa fa-th-list",$P.pluginIcon="transfer-plugin",$P.description=i18n("26b4a55f458275a108c1ef213a354ced"),$P.docLink="/amis/zh-CN/components/form/transfer",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={label:i18n("829abe5a8dcd0579a340d20636b59276"),type:"transfer",name:"transfer",options:[{label:i18n("fda93c79275b812a6c1c189fbebf8b08"),value:"zhugeliang"},{label:i18n("e37a86d1a1dbed0cd53c95582977f075"),value:"caocao"}],selectMode:"list",resultListModeFollowSelect:!1},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("685e5f4815e87c4690dda7d7aa163904"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0),nme=ame.value,rme=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,items:rme}}}}]}},{eventName:"selectAll",eventLabel:i18n("66eeacd93a7c1bda93906fe908ad11a0"),description:i18n("8b3a9a5c912610c384bc8dc2c8514386"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0).items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{items:ame}}}}]}}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("91208131116f2823993daf99f15e1325")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("dda222620b789d07c2c5c279475caaf1")},getActionCommonProps("reset")),__assign$3({actionType:"selectAll",actionLabel:i18n("66eeacd93a7c1bda93906fe908ad11a0"),description:i18n("8b3a9a5c912610c384bc8dc2c8514386")},getActionCommonProps("selectAll")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("1b09b6621ebf0d10ce98f0178fa1bda1")},getActionCommonProps("setValue"))],$P.panelDefinitions={options:{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:"group",body:[getSchemaTpl("optionsLabel"),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]},{$ref:"options",label:i18n("72453d792655604f1fab821146133d7d"),name:"children",addButtonText:i18n("210da23d108e85b2f0bbfa85846cb792")}]}},$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:function(nme){return __assign$3(__assign$3({},nme),{type:"select",multiple:!0})},visibleOn:"this.options.length > 0"}),getSchemaTpl("switch",{label:i18n("439a19857be1fb8d3e6017258e32c486"),name:"statistics"}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description")]},{title:i18n("a2888bca5f435690ff9f5a5d615a968a"),body:[{label:i18n("1e409f26f9c1d58ce0c47a68104d45f0"),name:"selectMode",type:"select",options:[{label:i18n("6541f1702af367c41a3127ed8511eb50"),value:"list"},{label:i18n("d58ba4b5e94680fcb08300e176502fb8"),value:"table"},{label:i18n("eebda442c4bff2aaaf8274383d0ed12f"),value:"tree"}],onChange:function(nme,rme,ime,ome){ome.setValues({options:void 0,columns:void 0,value:"",valueTpl:""}),setTimeout(function(){ome.setValues({value:void 0,valueTpl:void 0})},100)}},getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),getSchemaTpl("optionControl",{visibleOn:'this.selectMode === "list"',multiple:!0}),{type:"ae-transferTableControl",label:i18n("0d83078816aa273f2941c9b55ec82bf3"),visibleOn:'this.selectMode === "table"',mode:"normal",onValueChange:function(nme,rme,ime){if(nme==="options")ime(rme);else if(nme==="columns"){var ome=rme.columns;rme.columns.length>0&&(rme.valueTpl="${".concat(ome[0].name,"}")),ime(rme)}}},getSchemaTpl("treeOptionControl",{visibleOn:'this.selectMode === "tree"'}),getSchemaTpl("switch",{label:i18n("dbdae74eb12668e2b9568b013bf27d45"),name:"searchable"}),getSchemaTpl("switch",{label:tipedLabel("仅包含子节点的值","仅在autoCheckChildren=true时生效"),value:!0,name:"onlyChildren",visibleOn:'this.selectMode === "tree"'}),getSchemaTpl("switch",{label:"选中父节点自动选中子节点",name:"autoCheckChildren",value:!0,visibleOn:'this.selectMode === "tree"'}),getSchemaTpl("optionsMenuTpl",{manager:$P.manager,onChange:function(nme){},visibleOn:'this.selectMode !== "table"'}),{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),name:"selectTitle",type:"input-text",inputClassName:"is-inline "}]},{title:i18n("d5dbf5285b2dbe07b481fbd5d4536c60"),body:[{type:"button-group-select",label:i18n("1e409f26f9c1d58ce0c47a68104d45f0"),name:"resultListModeFollowSelect",inputClassName:"items-center",options:[{label:i18n("6541f1702af367c41a3127ed8511eb50"),value:!1},{label:i18n("b720b2abd62161c3c99625c8160df987"),value:!0}],onChange:function(nme,rme,ime,ome){ome.setValueByName("sortable",nme?void 0:!0)}},getSchemaTpl("switch",{label:tipedLabel(i18n("dbdae74eb12668e2b9568b013bf27d45"),i18n("acef03eee638dc4239ee60f627f33d85")),name:"resultSearchable"}),getSchemaTpl("sortable",{label:i18n("e3ed623b79100791f156d3586751c652"),mode:"horizontal",horizontal:{justify:!0,left:8},inputClassName:"is-inline",visibleOn:'this.selectMode === "list" && !this.resultListModeFollowSelect'}),getSchemaTpl("optionsMenuTpl",{name:"valueTpl",manager:$P.manager,onChange:function(nme){},visibleOn:'!(this.selectMode === "table" && this.resultListModeFollowSelect)'}),{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),name:"resultTitle",type:"input-text",inputClassName:"is-inline "}]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("virtualThreshold"),getSchemaTpl("virtualItemHeight")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([getSchemaTpl("style:formItem",ame),getSchemaTpl("style:classNames",[getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"}),getSchemaTpl("className",{name:"addOn.className",label:"AddOn",visibleOn:'this.addOn && this.addOn.type === "text"'})])],__read$3($P.rendererName==="transfer-picker"?[{title:i18n("961534b4ea37e4e88aada736b299d063"),key:"borderMode",body:[getSchemaTpl("borderMode")]},{title:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),key:"picker",body:[{name:"pickerSize",type:"select",pipeIn:defaultValue(""),pipeOut:undefinedPipeOut,label:"弹窗大小",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{value:"sm",label:i18n("391b8fa9c747a1799353ab856e666ad5")},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("3386da5f56fac758ed0f18e024ecb943"),value:"xl"},{label:i18n("185926bf986c784d03a9a73102da6542"),value:"full"}]}]}]:[]),!1))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme=resolveOptionType($P.schema),bme={type:hme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return!((ome=$P.schema)===null||ome===void 0)&&ome.extractValue?bme={type:"array",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name)}:((cme=$P.schema)===null||cme===void 0?void 0:cme.joinValues)===!1&&(bme={type:"array",title:((dme=$P.schema)===null||dme===void 0?void 0:dme.label)||((ume=$P.schema)===null||ume===void 0?void 0:ume.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:(ame={},ame[((fme=$P.schema)===null||fme===void 0?void 0:fme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((pme=$P.schema)===null||pme===void 0?void 0:pme.valueField)||"value"]={type:hme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)},originalValue:bme.originalValue}),bme},eme.id="TransferPlugin",eme}(BasePlugin);registerEditorPlugin(TransferPlugin);var TransferPickerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="transfer-picker",$P.$schema="/schemas/TransferPickerControlSchema.json",$P.name="穿梭选择器",$P.isBaseComponent=!0,$P.icon="fa fa-th-list",$P.pluginIcon="transfer-plugin",$P.description="穿梭选择器组件",$P.docLink="/amis/zh-CN/components/form/transfer-picker",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={label:i18n("829abe5a8dcd0579a340d20636b59276"),type:"transfer-picker",name:"transfer-picker",options:[{label:i18n("fda93c79275b812a6c1c189fbebf8b08"),value:"zhugeliang"},{label:i18n("e37a86d1a1dbed0cd53c95582977f075"),value:"caocao"}],selectMode:"list",resultListModeFollowSelect:!1},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.events=__spreadArray(__spreadArray([],__read$3($P.events),!1),[{eventName:"itemClick",eventLabel:i18n("4ea280a2e54969de1d1b9bbd5b708e63"),description:i18n("f05520432bb87ced419a1da818c6cc9d"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("010b98c12fe130496016ea515b70ec32")}}}}}]}],!1),$P.notRenderFormZone=!0,$P}return eme.id="TransferPickerPlugin",eme}(TransferPlugin);registerEditorPlugin(TransferPickerPlugin);var TabsTransferPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tabs-transfer",$P.$schema="/schemas/TransferControlSchema.json",$P.name=i18n("617a63f1b19b5aad029f973479bac917"),$P.isBaseComponent=!0,$P.icon="fa fa-th-list",$P.pluginIcon="tabs-transfer-plugin",$P.description=i18n("4f26f1edebcdeea90f6e4247a501dbaf"),$P.docLink="/amis/zh-CN/components/form/transfer",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={label:i18n("617a63f1b19b5aad029f973479bac917"),type:"tabs-transfer",name:"tabsTransfer",selectMode:"tree",options:[{label:i18n("ab5dea29793d933fa7b5487a7309df6a"),children:[{label:i18n("71f8043aefd52572b172e7d1fbd5af57"),value:"fashi",children:[{label:i18n("fda93c79275b812a6c1c189fbebf8b08"),value:"zhugeliang"}]},{label:i18n("573cb0d34bd1cdc7b368c59db9b7bb7d"),value:"zhanshi",children:[{label:i18n("e37a86d1a1dbed0cd53c95582977f075"),value:"caocao"},{label:i18n("ccddd2de691ff2d56b651877f72d90ed"),value:"zhongwuyan"}]},{label:i18n("c0db8e7b42528eeae96310c6629e53b3"),value:"daye",children:[{label:i18n("293040fc607f40caf6d6e16042012182"),value:"libai"},{label:i18n("b5256ec780343c4e20e397b43cab96a9"),value:"hanxin"},{label:i18n("49dcf9f88e7b7b8ca7448631021d7d12"),value:"yunzhongjun"}]}]},{label:i18n("1fd02a90c38333badc226309fea6fecb"),children:[{label:i18n("71f8043aefd52572b172e7d1fbd5af57"),value:"fashi2",children:[{label:i18n("fda93c79275b812a6c1c189fbebf8b08"),value:"zhugeliang2"}]},{label:i18n("573cb0d34bd1cdc7b368c59db9b7bb7d"),value:"zhanshi2",children:[{label:i18n("e37a86d1a1dbed0cd53c95582977f075"),value:"caocao2"},{label:i18n("ccddd2de691ff2d56b651877f72d90ed"),value:"zhongwuyan2"}]},{label:i18n("c0db8e7b42528eeae96310c6629e53b3"),value:"daye2",children:[{label:i18n("293040fc607f40caf6d6e16042012182"),value:"libai2"},{label:i18n("b5256ec780343c4e20e397b43cab96a9"),value:"hanxin2"},{label:i18n("49dcf9f88e7b7b8ca7448631021d7d12"),value:"yunzhongjun2"}]}]}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("617a63f1b19b5aad029f973479bac917"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:function(tme){var ame=resolveOptionEventDataSchame(tme,!0),nme=ame.value,rme=ame.items;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:nme,items:rme}}}}]}},{eventName:"tab-change",eventLabel:i18n("e1112a529dc969a03bbbb409905ff2ec"),description:i18n("d202bc660c4d2eeb58e194b6320bd235"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{key:{type:"string",title:i18n("c46f27dcf45a345993f1cbb63380fa98")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("91208131116f2823993daf99f15e1325")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("dda222620b789d07c2c5c279475caaf1")},getActionCommonProps("reset")),{actionType:"changeTabKey",actionLabel:i18n("2ac24a383a1faae33f81772b757b2817"),description:i18n("91f894b900f593c848e5b21f2b414b05"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("8347a927c09a4ec2fe473b0a93f667d0"),buildLinkActionDesc(nme.manager,tme),"选中tab")}},__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelDefinitions={options:{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,mode:"normal",addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:"group",body:[getSchemaTpl("label",{label:!1,placeholder:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),required:!0}),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]},{$ref:"options",label:i18n("72453d792655604f1fab821146133d7d"),name:"children",addButtonText:i18n("210da23d108e85b2f0bbfa85846cb792")}]}},$P.panelBodyCreator=function(tme){return tme.info.renderer,getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{label:i18n("b7fc7efe26efb867838223936b7fc467"),name:"selectMode",type:"select",value:"tree",options:[{label:i18n("6541f1702af367c41a3127ed8511eb50"),value:"list"},{label:i18n("d58ba4b5e94680fcb08300e176502fb8"),value:"table"},{label:i18n("406573cea6af9b0c6462295108e1f5c0"),value:"tree"},{label:i18n("6c5358b981a475da2a83e95e4170647a"),value:"chained"}]},{label:i18n("84a76ba52297727f6bb47d8a1cc74094"),name:"resultTitle",type:"input-text",inputClassName:"is-inline ",placeholder:i18n("505e204cdd98afd08c174d6dcec0dc09")},getSchemaTpl("sortable"),getSchemaTpl("searchable",{onChange:function(ame,nme,rme,ime){ame||ime.setValues({searchApi:void 0})}}),getSchemaTpl("apiControl",{label:tipedLabel(i18n("791959f9b90734dce08da79f4ac27a41"),i18n("9b1ddba55066e0f329ca3cca2e58909c")),mode:"normal",name:"searchApi",visibleOn:"!!searchable"})]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[{$ref:"options",name:"options"},getSchemaTpl("apiControl",{label:tipedLabel(i18n("1395eba8d9efe27aa1ecd1a45e3e5dcd"),i18n("14079611c014884bbdffce4d0e5f4d73")),mode:"normal",name:"source"}),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),getSchemaTpl("joinValues"),getSchemaTpl("delimiter"),getSchemaTpl("extractValue")]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("virtualThreshold"),getSchemaTpl("virtualItemHeight")]},getSchemaTpl("status",{isFormItem:!0})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme=resolveOptionType($P.schema),bme={type:hme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return!((ome=$P.schema)===null||ome===void 0)&&ome.extractValue?bme={type:"array",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name)}:((cme=$P.schema)===null||cme===void 0?void 0:cme.joinValues)===!1&&(bme={type:"array",title:((dme=$P.schema)===null||dme===void 0?void 0:dme.label)||((ume=$P.schema)===null||ume===void 0?void 0:ume.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:(ame={},ame[((fme=$P.schema)===null||fme===void 0?void 0:fme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((pme=$P.schema)===null||pme===void 0?void 0:pme.valueField)||"value"]={type:hme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)},originalValue:bme.originalValue}),bme},eme.id="TabsTransferPlugin",eme}(BasePlugin);registerEditorPlugin(TabsTransferPlugin);function convertColor(x_,eme){eme=eme.toLocaleLowerCase();function $P(tme){var ame=tinycolor(tme);if(!ame.isValid())return"";switch(eme!=="rgba"&&ame.setAlpha(1),eme){case"hex":return ame.toHexString();case"hsl":return ame.toHslString();case"rgb":return ame.toRgbString();case"rgba":var nme=ame.toRgb(),rme=nme.r,ime=nme.g,ome=nme.b,lme=nme.a;return"rgba(".concat(rme,", ").concat(ime,", ").concat(ome,", ").concat(lme,")");default:return ame.toString()}}return Array.isArray(x_)?x_.map($P):$P(x_)}var presetColors$1=["#ffffff","#000000","#d0021b","#f5a623","#f8e71c","#7ED321","#4A90E2","#9013fe"],colorFormat=["hex","hexa","rgb","rgba","hsl"],presetColorsByFormat=colorFormat.reduce(function(x_,eme){return x_[eme]=convertColor(presetColors$1,eme),x_},{}),ColorControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-color",$P.$schema="/schemas/ColorControlSchema.json",$P.name=i18n("d1b5ad85ada6350ea1a1432b813700be"),$P.isBaseComponent=!0,$P.icon="fa fa-eyedropper",$P.pluginIcon="input-color-plugin",$P.description="支持<code>hex、hexa、hls、rgb、rgba</code>格式，默认为<code>hex</code>格式",$P.searchKeywords=i18n("a0e6ecd1eba5673e16218e559f549112"),$P.docLink="/amis/zh-CN/components/form/input-color",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-color",label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),name:"color"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("d1b5ad85ada6350ea1a1432b813700be"),$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer,nme=colorFormat.map(function(rme){return{label:rme.toUpperCase(),value:rme}});return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"select",label:i18n("db0258df1ddbd88749b335aecdc8425e"),name:"format",value:"hex",options:nme,onChange:function(rme,ime,ome,lme){var sme=lme.data,cme=sme.value,dme=sme.presetColors;cme&&lme.setValueByName("value",convertColor(cme,rme)),Array.isArray(dme)&&lme.setValueByName("presetColors",convertColor(dme,rme))}},__spreadArray([],__read$3(nme.map(function(rme){var ime=rme.value;return $P.getConditionalColorPanel(ime)})),!1),getSchemaTpl("clearable"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},{title:i18n("a47b08f4c83158a058c06e176cff501a"),body:__spreadArray([getSchemaTpl("switch",{label:tipedLabel(i18n("1b25b3b1b5076f0c2e6bd12d73c56f79"),i18n("9b161db0e2e749c1106c702c8097d380")),name:"allowCustomColor",disabledOn:"Array.isArray(presetColors) && presetColors.length === 0",pipeIn:function(rme){return typeof rme>"u"?!1:!rme},pipeOut:function(rme){return!rme}}),getSchemaTpl("switch",{label:tipedLabel(i18n("05a64e0df1490a5db391e7a43eced6e0"),i18n("6cbabc9a4cc07c1e26bb131c02833f8d")),name:"presetColors",onText:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),offText:i18n("18c63459a2c069022c7790430f761214"),pipeIn:function(rme){return!(typeof rme>"u")},pipeOut:function(rme,ime,ome){var lme=ome.format,sme=lme===void 0?"hex":lme;return rme?presetColorsByFormat[sme]:void 0},onChange:function(rme,ime,ome,lme){Array.isArray(rme)&&rme.length===0&&lme.setValueByName("allowCustomColor",!0)}})],__read$3(nme.map(function(rme){var ime=rme.value;return $P.getConditionalColorComb(ime)})),!1)},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"props"}))},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:ame}),getSchemaTpl("style:classNames",{schema:[getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"})]})],__assign$3(__assign$3({},tme==null?void 0:tme.schema),{configTitle:"style"}))}])},$P}return eme.prototype.getConditionalColorPanel=function($P){var tme=$P==="hex"?" || !this.format":"";return{label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),name:"value",type:"input-color",format:$P,clearable:!0,visibleOn:'this.format==="'.concat($P,'"').concat(tme),presetColors:presetColorsByFormat[$P]}},eme.prototype.getConditionalColorComb=function($P){var tme=$P==="hex"?" || !this.format":"";return getSchemaTpl("combo-container",{type:"combo",mode:"normal",name:"presetColors",items:[{type:"input-color",format:$P,name:"color",clearable:!1,presetColors:presetColorsByFormat[$P]}],draggable:!1,multiple:!0,visibleOn:'this.presetColors !== undefined && (this.format === "'.concat($P,'"').concat(tme,")"),onChange:function(ame,nme,rme,ime){Array.isArray(ame)&&ame.length===0&&ime.setValueByName("allowCustomColor",!0)},pipeIn:function(ame){return ame.map(function(nme,rme){return nme===void 0&&(nme=""),{key:"".concat(nme,"-").concat(rme),color:convertColor(nme,$P)}})},pipeOut:function(ame){return ame.map(function(nme){var rme=nme.color,ime=rme===void 0?"":rme;return ime})}})},eme.id="ColorControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ColorControlPlugin);var ConditionBilderPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="condition-builder",$P.$schema="/schemas/ConditionBuilderControlSchema.json",$P.name=i18n("6e87bfe16db746db13966f0d7552b052"),$P.isBaseComponent=!0,$P.icon="fa fa-group",$P.pluginIcon="condition-builder-plugin",$P.description=i18n("ab7f2096d3ea8aa85f453b204bfbc493"),$P.docLink="/amis/zh-CN/components/form/condition-builder",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"condition-builder",label:i18n("6e87bfe16db746db13966f0d7552b052"),name:"conditions",description:i18n("ae5e21c7b57aaaff2071b757f35dbb3e"),fields:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),type:"text",name:"text"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),type:"number",name:"number"},{label:i18n("97b0b6499334ed889b372513290a2a52"),type:"boolean",name:"boolean"},{label:i18n("ea15ae2b7fba76c83eec6d0986d15197"),type:"select",name:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"},{label:"E",value:"e"}]},{label:i18n("4ff1e74e43a3586339251494117185ad"),type:"date",name:"date"},{label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),type:"time",name:"time"},{label:i18n("0c3bf4fce50589b1073baf15f8a00d36"),type:"datetime",name:"datetime"}]},$P.previewSchema={type:"form",mode:"horizontal",wrapWithPanel:!1,body:[$P.scaffold]},$P.panelTitle=i18n("6e87bfe16db746db13966f0d7552b052"),$P.panelBodyCreator=function(tme){return[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("source")]},$P}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=getI18nEnabled();return{title:i18n("6d6b4f2bbd2fd0b5faee33673d7f06ae"),body:[{type:"combo",name:"fields",multiple:!0,draggable:!0,multiLine:!0,items:[{type:"group",body:[{type:"select",name:"type",placeholder:i18n("22ed9ec0e00b5deab2c335ad1fd2e343"),options:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"text"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),value:"number"},{label:i18n("97b0b6499334ed889b372513290a2a52"),value:"boolean"},{label:i18n("4ff1e74e43a3586339251494117185ad"),value:"date"},{label:i18n("0c3bf4fce50589b1073baf15f8a00d36"),value:"datetime"},{label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),value:"time"},{label:i18n("ea15ae2b7fba76c83eec6d0986d15197"),value:"select"}]},{type:"input-text",name:"name",placeholder:i18n("d314558953b3c76adb7e131aaec8bd86")},{type:$P?"input-text-i18n":"input-text",placeholder:i18n("e996419dedc2f1ffd96e7a0e808127d0"),name:"label"}]},{type:"group",visibleOn:'this.type === "number"',body:[{type:"input-number",name:"minimum",placeholder:i18n("c322edb884724d04842fc35f4d29a24e")},{type:"input-number",name:"maximum",placeholder:i18n("5da893141114a59da868052b3a17a79a")},{type:"input-number",name:"step",min:0,placeholder:i18n("d26404c10871481ab6bbb4837a34ae95")}]},{type:"group",visibleOn:'!!~["date", "datetime", "time"].indexOf(this.type)',body:[{type:"input-text",name:"format",placeholder:i18n("db0258df1ddbd88749b335aecdc8425e")},{type:"input-text",name:"inputFormat",placeholder:i18n("dbd5b99c34260412f10835d82b59919c")},{type:"input-text",name:"timeFormat",placeholder:i18n("94575fbef23460cb02524d20d152d728"),visibleOn:'this.type === "datetime"'}]},{type:"group",visibleOn:'this.type === "select"',body:[{type:"input-text",name:"source",placeholder:i18n("f20a86701d87369e5166c28a71b8b8cd")}]},{type:"group",body:[{type:$P?"input-text-i18n":"input-text",placeholder:i18n("4c1cff4d8c05daa6ed9352a241ee628c"),name:"placeholder"},{name:"operators",placeholder:i18n("ed4ad0f9e6374d6915ce3d2c0dec7c2c"),asFormItem:!0,children:function(tme){var ame,nme,rme=tme.data,ime=tme.render,ome=tme.onChange;return ime("operations",{type:"select",name:"operators",multiple:!0,value:rme.value||((ame=defaultConfig$1.types[rme.type])===null||ame===void 0?void 0:ame.operators)||[],joinValues:!1,extractValue:!0,options:(nme=defaultConfig$1.types[rme.type])===null||nme===void 0?void 0:nme.operators.map(function(lme){return isObject$r(lme)&&lme.label&&lme.value?{label:lme.label,value:lme.value}:isString$8(lme)?{label:OperationMap[lme],value:lme}:[]})},{onChange:function(lme){return ome(lme)}})}}]}]}],canRebuild:!0}},enumerable:!1,configurable:!0}),eme.prototype.buildSubRenderers=function($P,tme){var ame=this;if(ame.name&&ame.description)return{name:ame.name,icon:ame.icon,pluginIcon:ame.pluginIcon,description:ame.description,previewSchema:ame.previewSchema,tags:ame.tags,docLink:ame.docLink,type:ame.type,scaffold:ame.scaffold,scaffoldForm:this.scaffoldForm,disabledRendererPlugin:ame.disabledRendererPlugin,isBaseComponent:ame.isBaseComponent,rendererName:ame.rendererName}},eme.id="ConditionBilderPlugin",eme}(BasePlugin);registerEditorPlugin(ConditionBilderPlugin);var FieldSetControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="fieldset",$P.$schema="/schemas/FieldSetControlSchema.json",$P.name=i18n("460bc46ffeb31b737669e2312c5bae72"),$P.isBaseComponent=!0,$P.icon="fa fa-toggle-down",$P.description=i18n("a89cd8150a1dbc60ac7063580e0852e2"),$P.searchKeywords=i18n("6d36d88078b28530bd4a236b1033c1db"),$P.docLink="/amis/zh-CN/components/form/fieldset",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"fieldset",title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),collapsable:!0,body:[{type:"input-text",label:i18n("a13a2fa224ca5b6f44d5aee33ec29d58"),name:"text"},{type:"input-text",label:i18n("37dd6f28ffb87d8907a286e0ef4dc7fe"),name:"text"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.regions=[{key:"body",label:i18n("d6c40a2ee219c010edbcdaa2eeb94ddd"),renderMethod:"renderBody",insertPosition:"inner",preferTag:i18n("55b45c73ae417c4dead67905b1550e85")}],$P.panelTitle=i18n("460bc46ffeb31b737669e2312c5bae72"),$P.panelBodyCreator=function(tme){return[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("title"),getSchemaTpl("switch",{name:"collapsable",label:i18n("ec2a8ec81d1d2588db8c7827ba99e7d3"),pipeIn:defaultValue(!1)}),getSchemaTpl("switch",{name:"collapsed",label:i18n("f315bd4984fd09c30581674d28287f12"),visibleOn:"this.collapsable"}),{name:"className",type:"button-group-select",clearable:!0,size:"sm",label:i18n("ab2d2b13794ae1e2d7bf3bcd5af55dce"),className:"w-full",pipeIn:defaultValue(""),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{value:"Collapse--xs",label:i18n("23ecf42cada8bf2715792d718544d107")},{value:"Collapse--sm",label:i18n("391b8fa9c747a1799353ab856e666ad5")},{value:"Collapse--base",label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef")},{value:"Collapse--md",label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4")},{value:"Collapse--lg",label:i18n("949934d97c42801151673a51d3adc421")}]},getSchemaTpl("className",{name:"headingClassName",label:i18n("620868e5e60e5c22249c3277c971bb13")}),getSchemaTpl("className",{name:"bodyClassName",label:i18n("e5a226534fb99ab260865b936d3c85ba")}),{children:React__default.createElement(Button$1,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){$P.manager.showRendererPanel(i18n("55b45c73ae417c4dead67905b1550e85"),i18n("12b54e3fdccdbb5588785fce5534edbd"))}},i18n("1297c46c0ea697a0041c3899b15d69c6"))},getSchemaTpl("subFormItemMode"),getSchemaTpl("subFormHorizontalMode"),getSchemaTpl("subFormHorizontal")]},$P}return eme.prototype.filterProps=function($P){return $P.collapsed=!1,$P},eme.id="FieldSetControlPlugin",eme}(BasePlugin);registerEditorPlugin(FieldSetControlPlugin);var ComboControlPlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.rendererName="combo",tme.$schema="/schemas/ComboControlSchema.json",tme.name=i18n("254bb8aa6b92d588d957a383df24db1e"),tme.isBaseComponent=!0,tme.icon="fa fa-group",tme.pluginIcon="combo-plugin",tme.description=i18n("4db731c7d73988e40a01b4bf1a7f00d7"),tme.docLink="/amis/zh-CN/components/form/combo",tme.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],tme.scaffold={type:"combo",label:i18n("254bb8aa6b92d588d957a383df24db1e"),name:"combo",multiple:!0,addable:!0,removable:!0,removableMode:"icon",addBtn:{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),icon:"fa fa-plus",level:"primary",size:"sm"},items:[{type:"input-text",name:"text",placeholder:i18n("97d07614380da93d257f9fbf81aa56fb")},{type:"select",name:"select",placeholder:i18n("ea15ae2b7fba76c83eec6d0986d15197"),options:[{label:"A",value:"a"},{label:"B",value:"b"}]}]},tme.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},tme.scaffold),{value:[{text:"Row 1",select:"a"},{}]})]},tme.regions=[{key:"items",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),preferTag:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderItems"}],tme.events=[{eventName:"add",eventLabel:i18n("b58c7549c0246c55b9cac96383200338"),description:i18n("8575b828c7320de82b9f99058aa1f55f"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"string"},nme),{title:i18n("e26f6832d586f9e73d2361573bf5273f")})}}}}]}},{eventName:"delete",eventLabel:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),description:i18n("4933bd64bb23de03ca8ed246fa5509c5"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{key:{type:"number",title:i18n("91190195405845950230616929d852cf")},value:__assign$3(__assign$3({type:"string"},rme),{title:i18n("e26f6832d586f9e73d2361573bf5273f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("28e5fd494ea37a09fd2ad36d0f98bacc")})}}}}]}},{eventName:"dragEnd",eventLabel:"拖拽结束",description:"当组合项拖拽结束且位置发生变化时触发",dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{index:{type:"number",title:"拖拽后的索引"},oldIndex:{type:"number",title:"拖拽前的索引"},item:__assign$3(__assign$3({type:"object"},ime),{title:"被拖拽的项"}),value:__assign$3(__assign$3({type:"string"},rme),{title:"拖拽前组合项的值"}),oldValue:__assign$3(__assign$3({type:"string"},rme),{title:"拖拽后组合项的值"})}}}}]}},{eventName:"tabsChange",eventLabel:i18n("95e09290c4e0f01323bb5abf301c950b"),description:i18n("ba2bd765f6c2e2b717139c5453884e14"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{key:{type:"number",title:i18n("b04c6cf9cb1212b9c173ddfeec129028")},value:__assign$3(__assign$3({type:"string"},rme),{title:i18n("e26f6832d586f9e73d2361573bf5273f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("046de1a6cb21ff83af74958342c0db64")})}}}}]}}],tme.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),{actionType:"addItem",actionLabel:i18n("00d1a6230e9a31664c895e95fde707d3"),description:i18n("cf3f7c0c1e6c77197bb0b6508a9173aa"),innerArgs:["item"],descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},buildLinkActionDesc(rme.manager,ame),i18n("00d1a6230e9a31664c895e95fde707d3"))},schema:getArgsWrapper({type:"combo",label:i18n("00d1a6230e9a31664c895e95fde707d3"),name:"item",draggable:!1,multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,mode:"horizontal",items:[{name:"key",type:"input-text",required:!0,placeholder:i18n("a25657422b40023f2731619587940bc7"),source:"${__setValueDs}"},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}",inputMode:"input-group"})]})},__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],tme.panelTitle=i18n("254bb8aa6b92d588d957a383df24db1e"),tme.notRenderFormZone=!0,tme.panelJustify=!0,tme.panelBodyCreator=function(ame){var nme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{className:"p-none",title:i18n("f7e68bde2caa2cb5696d6a37fe4a23a4"),body:[getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},ame==null?void 0:ame.schema),{type:"textarea"}),label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),i18n("bf8f46b5c3b309f666965a74d57ac093")),pipeOut:function(rme){try{return typeof JSON.parse(rme)=="number"?rme:JSON.parse(rme)}catch{return rme}}}),getSchemaTpl("switch",{name:"multiple",label:i18n("e3be7b8a459a08fec8f378a0660b642b"),pipeIn:defaultValue(!0),onChange:function(rme,ime,ome,lme){lme.setValueByName("addable",rme),lme.setValueByName("removable",rme),!rme&&lme.setValueByName("draggable",!1),lme.setValueByName("flat",!1)}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.multiple",body:[{label:i18n("3a553b1123f403cf1f81eb28b3e4b814"),name:"maxLength",type:"input-number"},{label:i18n("93bc4888bc13bb6e6c49b34b54077438"),name:"minLength",type:"input-number"}]},getSchemaTpl("switch",{name:"flat",label:tipedLabel(i18n("e61c32382d879b867938086a50ef094e"),i18n("28a59fee1a4714493a8d6cec05c1417b")),visibleOn:"Array.isArray(this.items) && this.items.length === 1 && this.multiple"}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.multiple && this.flat",body:[getSchemaTpl("joinValues"),getSchemaTpl("delimiter")]},getSchemaTpl("switch",{name:"draggable",label:i18n("b4521626a48dcb61001fc563d2433ed3"),pipeIn:defaultValue(!1),visibleOn:"this.multiple"}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.draggable",body:[getSchemaTpl("draggableTip")]},getSchemaTpl("switch",{name:"addable",label:tipedLabel(i18n("8865c6822a31e0da6bc7eece8677d8f0"),i18n("30d4e9f1c60f2d5851f77463476d568b")),visibleOn:"this.multiple",pipeIn:defaultValue(!1),onChange:function(rme,ime,ome,lme){rme&&lme.setValueByName("addBtn",{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),icon:"fa fa-plus",level:"primary",size:"sm"})}}),getSchemaTpl("switch",{name:"removable",label:i18n("3c87af7c432e6b1f59e4f415fd5060cf"),pipeIn:defaultValue(!1),visibleOn:"this.multiple",onChange:function(rme,ime,ome,lme){rme&&(lme.setValueByName("removableMode","icon"),lme.setValueByName("deleteIcon",void 0),lme.setValueByName("deleteBtn",void 0))}}),{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.removable",body:[{type:"button-group-select",name:"removableMode",label:i18n("405a48545938c075e62eafb80b732769"),options:[{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),value:"icon"},{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"}],onChange:function(rme,ime,ome,lme){rme==="icon"?lme.setValueByName("deleteBtn",void 0):rme==="button"&&lme.setValueByName("deleteBtn",{label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),level:"default"})}},{label:i18n("f4b06bd9e4f5ceaac7fbb0e17fffc518"),name:"deleteBtn.label",type:nme?"input-text-i18n":"input-text",visibleOn:'this.removableMode === "button"'},getSchemaTpl("buttonLevel",{label:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),name:"deleteBtn.level",visibleOn:'this.removableMode === "button"'}),getSchemaTpl("apiControl",{name:"deleteApi",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),renderLabel:!1,mode:"normal"}),getSchemaTpl("deleteConfirmText")]},{type:"select",name:"__uniqueItems",label:"配置唯一项",source:"${items|pick:name}",pipeIn:function(rme,ime){var ome=ime.data.items||[];return ome.filter(function(lme){return lme.unique}).map(function(lme){return lme.name})},onChange:function(rme,ime,ome,lme){var sme=__spreadArray([],__read$3(lme.data.items||[]),!1),cme=sme.map(function(dme){if(rme===dme.name)return __assign$3(__assign$3({},dme),{unique:!0});var ume=__assign$3({},dme);return delete ume.unique,ume});lme.setValueByName("items",cme)}},getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},getSchemaTpl("collapseGroup",[{className:"p-none",title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("switch",{name:"canAccessSuperData",label:i18n("f7894f17d0eba299011d856ce3efea73"),pipeIn:defaultValue(!1)}),getSchemaTpl("switch",{name:"strictMode",label:tipedLabel(i18n("98d52b737d6bc171b6d5bad9a42f6e23"),i18n("cb5ca128b6c78a90f26673e21b0b3f28")),value:!0}),getSchemaTpl("combo-container",{name:"syncFields",visibleOn:"!this.strictMode",label:tipedLabel(i18n("7fc8dab2069004acb8f5c98c27ee0883"),i18n("07bf6c08bb5f0bdb32dbfecc7d3fe290")),type:"combo",mode:"normal",multiple:!0,canAccessSuperData:!0,items:[{name:"field",type:"input-text"}],value:[],pipeIn:function(rme){return(rme??[]).map(function(ime){return{field:ime}})},pipeOut:function(rme){return(rme??[]).map(function(ime){var ome=Object.keys(ime);return ome.length>0?ime.field:""})}}),getSchemaTpl("switch",{name:"lazyLoad",label:tipedLabel(i18n("9ff4713f6b17e96e9cd76650fd5892be"),i18n("93dc24d4ad01981d5994ba7f8ffaf345")),pipeIn:defaultValue(!1),visibleOn:"this.multiple && !this.tabsMode"})]}]),getSchemaTpl("status",{isFormItem:!0,readonly:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),visibleOn:"this.multiple",body:[{name:"tabsMode",label:i18n("1e409f26f9c1d58ce0c47a68104d45f0"),type:"button-group-select",inputClassName:"items-center",size:"sm",options:[{label:i18n("eee1e2258d7ea163fec625ee44be9637"),value:!1},{label:i18n("9377e388f7189d6103a3985a321115c8"),value:!0}],pipeIn:defaultValue(!1),onChange:function(rme,ime,ome,lme){rme&&lme.setValueByName("lazyLoad",void 0)}},{type:"container",className:"ae-ExtendMore mb-3",visibleOn:"this.tabsMode",body:[{type:"select",name:"tabsStyle",label:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),pipeIn:defaultValue(""),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("ecfcea4b381d761fecd512761bc07954"),value:"line"},{label:i18n("d87f215d9ac688b1d3399bf575a0ef6f"),value:"card"},{label:i18n("22d18bf0c476ebe7aa9303108677ff2e"),value:"radio"}]},getSchemaTpl("formulaControl",{label:i18n("8e32c9ffc35059f8ac5254ffaf3c99b0"),name:"tabsLabelTpl"})]},getSchemaTpl("switch",{name:"multiLine",label:i18n("21766034147682a2435ecc766de5ea22"),pipeIn:defaultValue(!1),visibleOn:"!this.tabsMode",onChange:function(rme,ime,ome,lme){rme||(lme.setValueByName("subFormMode",void 0),lme.setValueByName("noBorder",void 0))}}),getSchemaTpl("switch",{visibleOn:"!this.tabsMode && this.multiLine",name:"noBorder",label:i18n("8ee004bdd55b578acdb10b1bcd3fa4f7"),pipeIn:defaultValue(!1)})]},getSchemaTpl("style:formItem",{renderer:ame.info.renderer,schema:[getSchemaTpl("subFormItemMode",{visibleOn:"this.multiLine",type:"select",label:i18n("32f6f7f8164c7f78e4b46eb50c158ab9")})]}),getSchemaTpl("style:classNames")])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])},tme.dsManager=new DSBuilderManager($P),tme}return eme.prototype.filterProps=function($P,tme){if(!tme.state.value&&$P.multiple&&!$P.value&&!$P.$schema.value&&!$P.$ref){var ame={};Array.isArray($P.items)&&$P.items.length===0&&$P.items.forEach(function(nme){nme.name&&setVariable(ame,nme.name,mockValue(nme))}),tme.updateState({value:[ame]})}return $P},eme.prototype.buildDataSchemas=function($P,tme,ame,nme){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme;return __awaiter(this,void 0,void 0,function(){var hme,bme,mme,vme,Cme,gme,yme,_me,$me,Cme,Sme;return __generator(this,function(Eme){switch(Eme.label){case 0:hme={$id:"".concat($P.id,"-").concat($P.type,"-tableRows"),type:"object",properties:{}},bme=(rme=$P.children)===null||rme===void 0?void 0:rme.find(function(xme){return xme.isRegion&&xme.region==="items"}),mme="".concat(nme==null?void 0:nme.id,"-").concat(nme==null?void 0:nme.type).concat(((ime=$P.parent)===null||ime===void 0?void 0:ime.type)==="cell"?"-currentRow":""),vme=!1,ame&&bme&&(vme=someTree(bme.children,function(xme){return xme.id===(ame==null?void 0:ame.id)}),vme&&(Cme="".concat($P.id,"-").concat($P.type,"-currentRow"),this.manager.dataSchema.getScope(Cme)&&this.manager.dataSchema.removeScope(Cme),this.manager.dataSchema.getScope(mme)&&this.manager.dataSchema.switchTo(mme),this.manager.dataSchema.addScope([],Cme),this.manager.dataSchema.current.tag=i18n("bf2a4fd8ecd654982e2d466f10f54d3f"),this.manager.dataSchema.current.group=i18n("813a5158d9f7171d20e7df340c5b48f9"))),gme=((ome=bme==null?void 0:bme.children)===null||ome===void 0?void 0:ome.concat())||[],Eme.label=1;case 1:return gme.length?(yme=gme.shift(),_me=yme.schema,_me!=null&&_me.name?[4,(sme=(lme=yme.info.plugin).buildDataSchemas)===null||sme===void 0?void 0:sme.call(lme,yme,tme,ame,$P)]:[3,3]):[3,4];case 2:$me=Eme.sent(),hme.properties[_me.name]=__assign$3({tmpSchema:$me},$me!=null&&$me.$id?{}:{$id:"".concat(yme.id,"-").concat(yme.type)}),Eme.label=3;case 3:return[3,1];case 4:return vme&&(Cme="".concat($P.id,"-").concat($P.type,"-currentRow"),Sme=this.manager.dataSchema.getScope(Cme),Sme==null||Sme.addSchema(hme)),!((cme=$P.schema)===null||cme===void 0)&&cme.multiple?[2,{$id:"combo",type:"array",title:((dme=$P.schema)===null||dme===void 0?void 0:dme.label)||((ume=$P.schema)===null||ume===void 0?void 0:ume.name),items:hme}]:[2,__assign$3(__assign$3({},hme),{title:((fme=$P.schema)===null||fme===void 0?void 0:fme.label)||((pme=$P.schema)===null||pme===void 0?void 0:pme.name)})]}})})},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome;return __generator(this,function(lme){return(tme.type===$P.type||tme.parent.isRegion&&tme.parent.region==="items")&&(ime=$P.parent.parent,ome=this.dsManager.getBuilderBySchema(ime.schema)),ome&&ime.schema.api?[2,ome.getAvailableContextFields({schema:ime.schema,sourceKey:"api",feat:(rme=(nme=ime.schema)===null||nme===void 0?void 0:nme.feat)!==null&&rme!==void 0?rme:"List",scopeNode:$P},(tme==null?void 0:tme.id)===($P==null?void 0:$P.id)?$P:tme)]:[2]})})},eme.id="ComboControlPlugin",eme}(BasePlugin);registerEditorPlugin(ComboControlPlugin);var InputGroupControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-group",$P.$schema="/schemas/InputGroupControlSchema.json",$P.name=i18n("0d4ebf2f4a10336011cfe0466b29ba5c"),$P.isBaseComponent=!0,$P.icon="fa fa-object-group",$P.pluginIcon="input-group-plugin",$P.description=i18n("5b7363cba6bad37b6614809e9bd90746"),$P.searchKeywords=i18n("912e3cf5ce8720c39e7a778e916898b5"),$P.docLink="/amis/zh-CN/components/form/input-group",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-group",name:"input-group",label:i18n("13370c4a5c95eff126068be5cfd2a9df"),body:[{type:"input-text",inputClassName:"b-r-none p-r-none",name:"input-group"},{type:"submit",label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),level:"primary"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("ff10d1d90be63fbcdc7377435bf18f96"),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),preferTag:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"render",matchRegion:function(tme){return!!tme}}],$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("label"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer,schema:[getSchemaTpl("switch",{label:i18n("2fb0853874c2cc8cc42f0c7520af662a"),name:"inline",pipeIn:defaultValue(!1)})]}),getSchemaTpl("style:classNames")])]}])},$P}return eme.id="InputGroupControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(InputGroupControlPlugin);var baseSet$1=_baseSet;function set(x_,eme,$P){return x_==null?x_:baseSet$1(x_,eme,$P)}var set_1=set;const set$1=getDefaultExportFromCjs(set_1);var TableControlPlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.rendererName="input-table",tme.$schema="/schemas/TableControlSchema.json",tme.name=i18n("e41fd1934b82f93f5737827be7323119"),tme.isBaseComponent=!0,tme.icon="fa fa-table",tme.pluginIcon="table-plugin",tme.description=i18n("a5c2dba5ccf62851b24cfa12d4958ce2"),tme.docLink="/amis/zh-CN/components/form/input-table",tme.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],tme.scaffold={type:"input-table",name:"table",label:i18n("4ba0387a2daf11ad9c67a75b52819eb3"),columns:[{label:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),name:"name",quickEdit:{type:"input-text",name:"name1"}},{label:i18n("b34422e637c90181d3fca4485a97c712"),name:"score",quickEdit:{type:"input-number",mode:"inline",name:"score"}},{label:i18n("95e0d70d1809d5267c2419eda58e78ca"),name:"level",quickEdit:{type:"select",name:"level",options:[{label:"A",value:"A"},{label:"B",value:"B"},{label:"C",value:"C"}]}}],addable:!1,footerAddBtn:{label:i18n("66ab5e9f24c8f46012a25c89919fb191"),icon:"fa fa-plus"},strictMode:!0},tme.regions=[{key:"columns",label:i18n("1f9794dd5634220ed0a498c666cf46fe"),renderMethod:"renderTableContent",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7"),dndMode:"position-h"}],tme.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:__assign$3(__assign$3({},tme.scaffold),{value:[{color:"green",name:i18n("b2c712c788d3a143206eee22fe24d9f1")}]})},tme.notRenderFormZone=!0,tme.panelJustify=!0,tme.panelTitle=i18n("13c250c68608118463871ce7cd8b292c"),tme.events=[{eventName:"add",eventLabel:i18n("58477471b3bb8ad53fe9ab18a244868b"),description:i18n("6070fdf451b08e4302a7dab560771222"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("1fb1cbe49c3e72c2b5f4e0151a4cb5d9")}),index:{type:"number",title:i18n("d84017fa76584f7475e26f79767df28d")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"addConfirm",eventLabel:i18n("5e3640e4bc8efbe00a7b7c6ba169560c"),description:i18n("008ae858112dcc7739985045e4326f3a"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("1fb1cbe49c3e72c2b5f4e0151a4cb5d9")}),index:{type:"number",title:i18n("d84017fa76584f7475e26f79767df28d")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"addSuccess",eventLabel:i18n("3fdaeadf0e8a3154ae62784f04138c28"),description:i18n("bd4ef227fe8aae88ae6aa97236c0e9bb"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("1fb1cbe49c3e72c2b5f4e0151a4cb5d9")}),index:{type:"number",title:i18n("d84017fa76584f7475e26f79767df28d")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"addFail",eventLabel:i18n("6452a05591d7402a8bcd9fadc950c449"),description:i18n("bd7c39d10dbf6985d2be2d9a4fdcccf7"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("1fb1cbe49c3e72c2b5f4e0151a4cb5d9")}),index:{type:"number",title:i18n("d84017fa76584f7475e26f79767df28d")},indexPath:{type:"string",title:"索引路径"},error:{type:"object",title:i18n("37122b9e4499da38258b3d51b09d68a1")}}}}}]}},{eventName:"edit",eventLabel:i18n("88ebffeee507da0f0d039eb2d05f7e2c"),description:i18n("daf24d1f83e1b4fce2f57a6b041ddba6"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"number",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"editConfirm",eventLabel:i18n("4271f29faca65d7840ad6bb2c4a7b8c6"),description:i18n("562f54a2fec7a68f85ff192a68cf69f2"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"editSuccess",eventLabel:i18n("3bb47b67994cb374e601fab35f63bc8e"),description:i18n("b394745a8a77179da0000293638e8a56"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"number",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"editFail",eventLabel:i18n("9304e8f4c324b5882b550caa971b64b8"),description:i18n("b9d277c3ffab7d4b955ad10308c7ae0a"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"number",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"},error:{type:"object",title:i18n("650bccdd6f99fe5fc4ca6cb8788e7cb4")}}}}}]}},{eventName:"delete",eventLabel:i18n("947fa341a6d676d7f25bae6bef8342cd"),description:i18n("7508f6d66d920323d87a9f9d58487a40"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"object",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"deleteSuccess",eventLabel:i18n("0007d170de017dafc266aa03926d7f00"),description:i18n("13640e78822f62b7b71bfabb4604025e"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"object",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"deleteFail",eventLabel:i18n("acf0664a54dc58d9d0377bb56e162092"),description:i18n("14d36ca583bcbfc5516a000eb06ccedd"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0),rme=nme.value,ime=nme.item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},rme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")}),item:__assign$3(__assign$3({type:"object"},ime),{title:i18n("a9e009a9936bf5bcc9d4eabcb3e952e0")}),index:{type:"number",title:i18n("e756ec22a0f897c4dd886c5f4a95b7a6")},indexPath:{type:"string",title:"索引路径"},error:{type:"object",title:i18n("37122b9e4499da38258b3d51b09d68a1")}}}}}]}},{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("692dc28abc42931daca8fa12d69d5c99"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).value;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:__assign$3(__assign$3({type:"array"},nme),{title:i18n("c9f63503ee66082fc00c3e6eac57a95f")})}}}}]}},{eventName:"orderChange",eventLabel:i18n("85ddd38957256b6e9026f42ed570bc35"),description:i18n("d7a66def82af88cd5d408e38feb8a65a"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{movedItems:{type:"array",items:nme,title:i18n("64ef585f778c9d1b010e86b032398ab6")}}}}}]}},{eventName:"rowClick",eventLabel:i18n("76e47871d654c3b0b0e301c0a076e55a"),description:i18n("cc13521eab2c7423b3fb857772405cc3"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:__assign$3(__assign$3({type:"object"},nme),{title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")}),index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"rowDbClick",eventLabel:i18n("1385df54facf9564658f05d0e9e2c3c7"),description:i18n("1c00d9cceec92084b116a382f2714ebb"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:__assign$3(__assign$3({type:"object"},nme),{title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")}),index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"rowMouseEnter",eventLabel:i18n("5db079b140feffa84c84d1b51d824dea"),description:i18n("90a5608bcd85a3cfcfbb5263a229915c"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:__assign$3(__assign$3({type:"object"},nme),{title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")}),index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"string",title:"索引路径"}}}}}]}},{eventName:"rowMouseLeave",eventLabel:i18n("e8bf039de5dc6751c4045f55930e0c83"),description:i18n("f1ca0d305f3251a81f361a2dc8e11fff"),dataSchema:function(ame){var nme=resolveInputTableEventDataSchame(ame,!0).item;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:__assign$3(__assign$3({type:"object"},nme),{title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")}),index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"string",title:"索引路径"}}}}}]}}],tme.actions=[__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue")),{actionType:"addItem",actionLabel:i18n("58477471b3bb8ad53fe9ab18a244868b"),description:i18n("f8692d409bb7f122a374872e01efd03a"),innerArgs:["item","index"],descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},buildLinkActionDesc(rme.manager,ame),i18n("58477471b3bb8ad53fe9ab18a244868b"))},schema:getArgsWrapper({type:"container",body:[{type:"input-number",name:"index",mode:"horizontal",horizontal:{leftFixed:4},label:i18n("459fd144ee129b501545d19c169269e9"),size:"lg",placeholder:i18n("cfe5917c83c8c31d5e57ddeb1f3460a5")},{type:"combo",name:"value",label:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,mode:"horizontal",size:"lg",addButtonText:i18n("a26858cccbc451fd53515416a5968550"),items:[{type:"combo",name:"item",label:!1,renderLabel:!1,multiple:!0,removable:!0,required:!0,addable:!0,strictMode:!1,canAccessSuperData:!0,className:"m-l",size:"lg",mode:"horizontal",addButtonText:i18n("c520ed9911d349c7974116d3d1e1423e"),items:[{name:"key",type:"input-text",source:"${__setValueDs}",labelField:"label",valueField:"value",required:!0},getSchemaTpl("formulaControl",{name:"val",variables:"${variables}"})]}]}]})},{actionType:"deleteItem",actionLabel:i18n("947fa341a6d676d7f25bae6bef8342cd"),description:i18n("344c1c96f9cb3275f972929755b4e238"),innerArgs:["condition","index"],descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},buildLinkActionDesc(rme.manager,ame),i18n("947fa341a6d676d7f25bae6bef8342cd"))},schema:getArgsWrapper({type:"container",body:[{type:"radios",name:"__deleteType",inputClassName:"event-action-radio",mode:"horizontal",label:i18n("8910acd418e45a30f01e7e531b90b61b"),pipeIn:function(ame,nme){if(nme.data.__deleteType===void 0){var rme=nme.data.condition?"conditionExpression":"rowIndex";return nme.updateData({__deleteType:rme}),rme}return ame},horizontal:{leftFixed:4},options:[{label:i18n("ebf62450c3fb11c0b7e06da2d7535d6c"),value:"rowIndex"},{label:i18n("4bf7636a84714fac140e42b4cee242d4"),value:"conditionExpression"}],onChange:function(ame,nme,rme,ime){ime.setValueByName("index",void 0),ime.setValueByName("condition",void 0)}},{type:"input-text",name:"index",mode:"horizontal",horizontal:{leftFixed:4},required:!0,label:i18n("7708fb1394ce722ee73326437a66c77a"),size:"lg",placeholder:i18n("015f108b96c70bba6511091e159db0ac"),hiddenOn:'this.__deleteType !== "rowIndex"'},getSchemaTpl("formulaControl",{name:"condition",variables:"${variables}",label:i18n("63aeb2082d7cc0a316fc1e44913d7749"),hiddenOn:'this.__deleteType !== "conditionExpression"',mode:"horizontal",required:!0,horizontal:{leftFixed:4},size:"lg"})]})},__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("4622a4ce221f9b79aa3396cc461adc75")},getActionCommonProps("clear")),{actionType:"initDrag",actionLabel:i18n("b94bd878cae4ddc567b00a2dc4f21d74"),description:i18n("5dc3017c21ae2e31ab127dbde8ec80e9"),descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),buildLinkActionDesc(rme.manager,ame),i18n("c360e994dbcffdf31e86d2d8875370e1"))}},{actionType:"cancelDrag",actionLabel:"取消排序",description:"取消表格拖拽排序功能",descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("625fb26b4b3340f7872b411f401e754c"),buildLinkActionDesc(rme.manager,ame),i18n("c360e994dbcffdf31e86d2d8875370e1"))}}],tme.panelBodyCreator=function(ame){ame.schema.type;var nme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"ae-switch-more",name:"needConfirm",label:tipedLabel(i18n("1205e138ba64dddf61c1f8e6eb3a1aa7"),i18n("3d4d83f05a12364e2522fcfb265d8ce8")),mode:"normal",formType:"extend",hiddenOnDefault:!0,form:{body:[{type:nme?"input-text-i18n":"input-text",name:"confirmBtnLabel",label:i18n("1d96dc9b36793e242322dd1e092a010c"),placeholder:i18n("1d96dc9b36793e242322dd1e092a010c")},getSchemaTpl("icon",{name:"confirmBtnIcon",label:i18n("c18169dd6fceab2f023216fa6f7d22c1"),pipeIn:defaultValue("check")}),{type:nme?"input-text-i18n":"input-text",name:"cancelBtnLabel",label:i18n("e0698c2a2d5c568edfc5a0b1a1d298eb"),placeholder:i18n("e0698c2a2d5c568edfc5a0b1a1d298eb")},getSchemaTpl("icon",{name:"cancelBtnIcon",label:i18n("5720057e62e80f7a04489dc4c035b4f1"),pipeIn:defaultValue("close")})]},pipeIn:defaultValue(!0)},{type:"ae-switch-more",name:"addable",label:i18n("8865c6822a31e0da6bc7eece8677d8f0"),mode:"normal",formType:"extend",hiddenOnDefault:!0,form:{body:[getSchemaTpl("apiControl",{label:i18n("d03c96a2da4905c5f13a87c0d8ddbdb4"),name:"addApi",mode:"row"}),getSchemaTpl("switch",{name:"showTableAddBtn",label:i18n("738b58219dda4a849e293c0f75d06438"),value:!0}),{label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),name:"addBtnLabel",visibleOn:"this.showTableAddBtn",type:nme?"input-text-i18n":"input-text"},getSchemaTpl("icon",{name:"addBtnIcon",label:i18n("ae3816c5b00fcff4111842ac19f0a706"),visibleOn:"this.showTableAddBtn",pipeIn:defaultValue("plus")})]}},{type:"ae-switch-more",name:"copyable",label:i18n("f9a9fcc3bf6a3c8ff1e99fa48ed6d03d"),mode:"normal",formType:"extend",hiddenOnDefault:!0,form:{body:[{label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),name:"copyBtnLabel",type:nme?"input-text-i18n":"input-text"},getSchemaTpl("icon",{name:"copyBtnIcon",label:i18n("ae3816c5b00fcff4111842ac19f0a706"),pipeIn:defaultValue("copy")})]}},{type:"ae-switch-more",name:"editable",label:i18n("a32b3bf74850faad3a9ae6a0a5dac781"),mode:"normal",formType:"extend",hiddenOnDefault:!0,form:{body:[getSchemaTpl("apiControl",{label:i18n("ea56ca3dac0d39e463a8233fd40a9eb6"),name:"updateApi",mode:"row"}),{label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),name:"editBtnLabel",type:nme?"input-text-i18n":"input-text"},getSchemaTpl("icon",{name:"editBtnIcon",label:i18n("ae3816c5b00fcff4111842ac19f0a706"),pipeIn:defaultValue("pencil")})]}},{type:"ae-switch-more",name:"removable",label:i18n("3c87af7c432e6b1f59e4f415fd5060cf"),mode:"normal",formType:"extend",hiddenOnDefault:!0,form:{body:[getSchemaTpl("deleteApi"),{label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),name:"deleteBtnLabel",type:nme?"input-text-i18n":"input-text"},getSchemaTpl("icon",{name:"deleteBtnIcon",label:i18n("ae3816c5b00fcff4111842ac19f0a706"),pipeIn:defaultValue("minus")})]}},getSchemaTpl("switch",{name:"showIndex",label:i18n("d173fb23320acba326a4424133969256"),pipeIn:defaultValue(!1)}),{type:"input-number",name:"perPage",label:i18n("26eb498526ba909386befc43466db79d"),placeholder:i18n("306abb77f96a1048cf6e61bfe6e7bae4")},{type:"input-number",name:"minLength",label:i18n("52029187eaa09f55193b6a15387e45ca"),pipeIn:defaultValue(0)},{type:"input-number",name:"maxLength",label:i18n("3d99d1f17ebf865877e681397c61dc9d")},getSchemaTpl("description"),getSchemaTpl("placeholder"),getSchemaTpl("labelRemark")]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("switch",{name:"strictMode",label:tipedLabel(i18n("98d52b737d6bc171b6d5bad9a42f6e23"),i18n("aa8b2a821e8e32196a720eaaa41b64d3")),pipeIn:defaultValue(!1)}),getSchemaTpl("switch",{name:"canAccessSuperData",label:tipedLabel(i18n("1c1618f67cfea6fefb5f287932be2c27"),i18n("2aa56a9b94ee3fde76a15711c94fdabc")),pipeIn:defaultValue(!1)})]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"columnsTogglable",label:tipedLabel(i18n("de0302f6f891653ac2d8417a46249ebf"),i18n("142184926b0ae6169a9b7bdefb9b42ff")),type:"button-group-select",pipeIn:defaultValue("auto"),size:"sm",labelAlign:"left",options:[{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"},{label:i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),value:!0},{label:i18n("b15d91274e9fc68608c609999e0413fa"),value:!1}]},getSchemaTpl("switch",{name:"affixHeader",label:i18n("e8bb313fb86cf474c0e264794bc85896"),pipeIn:defaultValue(!1)}),getSchemaTpl("switch",{name:"showFooterAddBtn",label:i18n("4f0a3e65cf67ca5a117a3f28745ae930"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"showTableAddBtn",label:i18n("2424c96966b9c38c7d094a2d40f23a5f"),pipeIn:defaultValue(!0)})]},getSchemaTpl("style:formItem",{renderer:ame.info.renderer}),getSchemaTpl("style:classNames",{schema:[getSchemaTpl("className",{name:"rowClassName",label:i18n("53a9db06d0b7e3482dc21e53f150e257")}),getSchemaTpl("className",{name:"toolbarClassName",label:i18n("012f602372cd2dbd639cd966c63e1f90")})]})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])},tme.dsManager=new DSBuilderManager($P),tme}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=getI18nEnabled();return{title:i18n("afccc17d5d672b10a1292dcd671ef534"),body:[{name:"columns",type:"input-table",label:!1,needConfirm:!1,addable:!0,removable:!0,columns:[{type:"text",name:"label",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),quickEdit:{type:$P?"input-text-i18n":"input-text",mode:"inline"}},{type:"text",name:"name",label:i18n("41a344642681efaaa418c228ba7fb45c"),quickEdit:{type:"input-text",mode:"inline"}},{type:"text",name:"type",label:i18n("1711a82f9b0825015c2c49d9659c9837"),width:140,quickEdit:{type:"select",options:[{value:"text",label:i18n("ffb01e5bcf4c00447f5150d3cba81371")},{value:"tpl",label:i18n("59cf15fe6b8d659c9bd2f86143534a06")},{value:"container",label:i18n("22c799040acdb2601b437ed5449de076")},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0")},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"datetime",label:i18n("0c3bf4fce50589b1073baf15f8a00d36")},{value:"time",label:i18n("19fcb9eb2594059036dfede5f4ec53e8")},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b")},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41")}],pipeIn:defaultValue("text")}},{type:"text",name:"quickEdit.type",label:i18n("63bb911d6392cb2740140d406ab83d37"),quickEdit:{type:"select",clearable:!0,placeholder:i18n("c13998e4c837dc40b8e90828d99561df"),options:[{value:"input-text",label:i18n("5ac57ce6df8c2a19668b7429aebd9f33")},{value:"input-number",label:i18n("1e65b8181e9a40e76b86e2c261cafbe0")},{value:"select",label:i18n("6530334ebf5ca810e576858eba168685")},{value:"input-color",label:i18n("f25cb224e4543c1dc0228fca8dbfaf1c")},{value:"checkboxes",label:i18n("1145703a07e11b6e680ee2ec8afae0b4")},{value:"radios",label:i18n("9913107b19cb6012250134ff91377430")},{value:"input-date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"input-date-range",label:i18n("7866226eb814f681dcc4037e7489aab8")},{value:"switch",label:i18n("a6beb974cc0b50eebd18120b8110a88b")},{value:"nested-select",label:i18n("24d9de25721d1fb0ecf89ef81c43d877")},{value:"input-city",label:i18n("a877779dc422c5321057b638d6d520e5")},{value:"input-tree",label:i18n("479728c411bac59bc44d5ab8dc3cb4f0")}]},width:210}]}],pipeOut:function(tme){var ame=cloneDeep$1(tme.columns||[]),nme=[];return ame.forEach(function(rme){var ime,ome=__assign$3(__assign$3({},rme),{type:rme.type,quickEdit:!((ime=rme.quickEdit)===null||ime===void 0)&&ime.type?{type:rme.quickEdit.type,name:rme.name}:!1});nme.push(ome)}),tme.columns=nme,__assign$3({},tme)},canRebuild:!0}},enumerable:!1,configurable:!0}),eme.prototype.filterProps=function($P,tme){if(!tme.state.value){var ame=resolveArrayDatasource($P),nme=[];Array.isArray(ame)&&ame.length?nme=ame.slice(0,10):nme.push({}),tme.updateState({value:nme})}return __assign$3(__assign$3({},$P),{onChange:function(){return!0}})},eme.prototype.beforeInsert=function($P){var tme,ame,nme,rme,ime=$P.context;(ime.info.plugin===this||((tme=ime.node.sameIdChild)===null||tme===void 0?void 0:tme.info.plugin)===this)&&ime.region==="columns"&&(ime.data=__assign$3(__assign$3({},ime.data),{label:(rme=(ame=ime.data.label)!==null&&ame!==void 0?ame:(nme=ime.subRenderer)===null||nme===void 0?void 0:nme.name)!==null&&rme!==void 0?rme:i18n("bcee820bc20342a4d388a35ed32a35fe")}))},eme.prototype.buildDataSchemas=function($P,tme,ame,nme){var rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,Sme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Eme;return __generator(this,function(xme){switch(xme.label){case 0:cme={$id:"".concat($P.id,"-").concat($P.type,"-tableRows"),type:"object",properties:{}},dme=$P.children.find(function(Tme){return Tme.isRegion&&Tme.region==="columns"}),ume="".concat(nme==null?void 0:nme.id,"-").concat(nme==null?void 0:nme.type).concat(((rme=$P.parent)===null||rme===void 0?void 0:rme.type)==="cell"?"-currentRow":""),fme=!1,ame&&(fme=someTree(dme==null?void 0:dme.children,function(Tme){return Tme.id===ame.id}),fme&&(Sme="".concat($P.id,"-").concat($P.type,"-currentRow"),this.manager.dataSchema.getScope(Sme)&&this.manager.dataSchema.removeScope(Sme),this.manager.dataSchema.getScope(ume)&&this.manager.dataSchema.switchTo(ume),this.manager.dataSchema.addScope([],Sme),this.manager.dataSchema.current.tag=i18n("bf2a4fd8ecd654982e2d466f10f54d3f"),this.manager.dataSchema.current.group=i18n("813a5158d9f7171d20e7df340c5b48f9"))),pme=(dme==null?void 0:dme.children.concat())||[],xme.label=1;case 1:if(!(pme.length>0))return[3,6];hme=pme.shift(),bme=hme.children.concat(),xme.label=2;case 2:return bme.length?(mme=bme.shift(),vme=mme.schema,vme.name?[4,(ome=(ime=mme.info.plugin).buildDataSchemas)===null||ome===void 0?void 0:ome.call(ime,mme,tme,ame,$P)]:[3,4]):[3,5];case 3:gme=xme.sent(),cme.properties[vme.name]=__assign$3(__assign$3({},gme),gme!=null&&gme.$id?{}:{$id:"".concat(mme.id,"-").concat(mme.type)}),xme.label=4;case 4:return[3,2];case 5:return[3,1];case 6:return yme=$P.schema.source&&String($P.schema.source).match(/{([\w-_]+)}/),_me=$P.schema.name||(yme==null?void 0:yme[1]),$me=this.manager.dataSchema.current,Cme=this.manager.dataSchema.getSchemaByPath(_me),this.manager.dataSchema.switchTo($me),isObject$8(Cme==null?void 0:Cme.items)&&(cme=__assign$3(__assign$3({},cme),Cme.items),set$1(cme,"properties.index",{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")})),(tme==null?void 0:tme.region)==="columns"?[2,cme]:(fme&&(Sme="".concat($P.id,"-").concat($P.type,"-currentRow"),Eme=this.manager.dataSchema.getScope(Sme),Eme==null||Eme.addSchema(cme)),[2,{$id:"".concat($P.id,"-").concat($P.type,"-tableData"),type:"array",rawType:RAW_TYPE_MAP[$P.schema.type]||"string",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),items:cme}])}})})},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome;return __generator(this,function(lme){return(tme.type===$P.type||tme.parent.isRegion&&tme.parent.region==="columns")&&(ime=$P.parent.parent,ome=this.dsManager.getBuilderBySchema(ime.schema)),ome&&ime.schema.api?[2,ome.getAvailableContextFields({schema:ime.schema,sourceKey:"api",feat:(rme=(nme=ime.schema)===null||nme===void 0?void 0:nme.feat)!==null&&rme!==void 0?rme:"List",scopeNode:$P},(tme==null?void 0:tme.id)===($P==null?void 0:$P.id)?$P:tme)]:[2]})})},eme.id="TableControlPlugin",eme}(BasePlugin);registerEditorPlugin(TableControlPlugin);var MatrixControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="matrix-checkboxes",$P.$schema="/schemas/MatrixControlSchema.json",$P.name=i18n("076a041dcf45a36b29c5cdb8b8eca922"),$P.isBaseComponent=!0,$P.icon="fa fa-th-large",$P.pluginIcon="matrix-checkboxes-plugin",$P.description=i18n("183aae5eec1ff547833dc338aaeffc9a"),$P.docLink="/amis/zh-CN/components/form/matrix-checkboxes",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"matrix-checkboxes",name:"matrix",label:i18n("076a041dcf45a36b29c5cdb8b8eca922"),rowLabel:i18n("7583b85ff3579d60a9f9d323c2f6674a"),columns:[{label:i18n("3fc35bb610852289cf718f07a5b79369")},{label:i18n("50987924540e6e35c78246031499e75b")}],rows:[{label:i18n("08a6996be7a86af5692cbca41922a5d1")},{label:i18n("ce31d858c63395098c5e4cd892bd473b")}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.notRenderFormZone=!0,$P.panelTitle=i18n("076a041dcf45a36b29c5cdb8b8eca922"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("ee167d4c74e600248aefe9d0ba474705"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"array",title:i18n("e48d65cda774019d9a6677354bc781f2")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("770fe9e7899cd310b035ef50a39ab2ae")},getActionCommonProps("reset")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("switch",{name:"multiple",label:i18n("e3be7b8a459a08fec8f378a0660b642b"),pipeIn:defaultValue(!0)}),{label:tipedLabel(i18n("f0789e79d48f135e5d870753f7a85d05"),i18n("e9b376d39966c8182683019f95ff8cf3")),name:"singleSelectMode",type:"button-group-select",size:"sm",option:i18n("0f244785fd9f555aae9797db4d14fb09"),horizontal:{left:2,justify:!0},visibleOn:"!data.multiple",options:[{label:i18n("5a57bd526cc3170b6c86f920fc24cdee"),value:"row"},{label:i18n("0f244785fd9f555aae9797db4d14fb09"),value:"column"},{label:i18n("45dde5879e77d7f7a15d04b8fed26ec8"),value:"cell"}],pipeIn:defaultValue("column")},getSchemaTpl("switch",{name:"yCheckAll",label:tipedLabel(i18n("542241c52bd2efb24dc37b32cab2329c"),i18n("d94ec7663ac9ad2d09fca5c86928b434"))}),getSchemaTpl("switch",{name:"xCheckAll",label:tipedLabel(i18n("7020fa7949a5ae24cc8eb696772d97fc"),i18n("227c24282ff52f3f6f52dfdb853cc1ad"))}),getSchemaTpl("autoFillApi")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[[getSchemaTpl("combo-container",{label:i18n("dc7558211f2990370954c2e7ca498ee9"),mode:"normal",name:"columns",type:"combo",multiple:!0,addButtonText:i18n("f4c807fd8453f4b3fdaab02fb9c21ba7"),scaffold:{label:i18n("39886861ea5d8b526e0ac5ecc78d110c")},items:[getSchemaTpl("matrixColumnLabel")]}),getSchemaTpl("matrixRowTitle"),getSchemaTpl("combo-container",{label:i18n("48baa62373a2f90d6aa743d7821be956"),name:"rows",type:"combo",mode:"normal",multiple:!0,scaffold:{label:i18n("854af3c2cd9c275ac70fc5121ea4fb2e")},addButtonText:i18n("bf306308e467aeb7b00df0e2dd127d06"),items:[getSchemaTpl("matrixRowLabel")]})],getSchemaTpl("apiControl",{label:tipedLabel(i18n("54ea89b497ec3bb319c68844dfa3687f"),i18n("75bf5fd49520bce97de632700fc8a129")),name:"source",mode:"normal"}),getSchemaTpl("loadingConfig",{},{context:tme})]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.MultiSelect})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames"),{label:tipedLabel(i18n("d5bc35360607472de4525358af126de4"),i18n("83a60f8b752a1ef3ce6a240388d635aa")),name:"textAlign",type:"select",options:[{label:i18n("0bbc2ea4e1d1f23feb576de5dca1ce3b"),value:"center"},{label:i18n("316a639631f712780829a202258ec3cc"),value:"left"},{label:i18n("e2aaec83377244c9d15f78f51cccfe6f"),value:"right"},{label:i18n("da1b972efb29f850b50e219ad4d98ba5"),value:"justify"}]}])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme;return{type:"array",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),riginalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value}},eme.id="MatrixControlPlugin",eme}(BasePlugin);registerEditorPlugin(MatrixControlPlugin);var tinymceToolbarsDelimiter=" ",tinymceOptions=["advlist","autolink","link","image","lists","charmap","preview","anchor","pagebreak","searchreplace","wordcount","visualblocks","visualchars","code","fullscreen","insertdatetime","media","nonbreaking","table","emoticons","template","help"],tinymceToolbars=["undo","redo","bold","italic","backcolor","alignleft","formatselect","aligncenter","alignright","alignjustify","bullist","numlist","outdent","indent","removeformat","help","charmap","anchor","pagebreak","searchreplace","wordcount","visualblocks","visualchars","code","fullscreen","insertdatetime","media","nonbreaking","table","tableprops","tabledelete","tablecellprops","tablemergecells","tablesplitcells","tableinsertrowbefore","tableinsertrowafter","tabledeleterow","tablerowprops","tableinsertcolbefore","tableinsertcolafter","tabledeletecol","tablecutrow","tablecopyrow","tablepasterowbefore","tablepasterowafter","tablecutcol","tablecopycol","tablepastecolbefore","tablepastecolafter","tableinsertdialog","tablecellvalign","tablecellborderwidth","tablecellborderstyle","tablecellbackgroundcolor","tablecellbordercolor","tablecaption","tablerowheader","tablecolheader","emoticons","template","link","openlink","unlink","image","preview","alignnone","underline","strikethrough","subscript","superscript","h1","h2","h3","h4","h5","h6","cut","copy","paste","selectall","newdocument","remove","print","hr","blockquote","forecolor","visualaid","lineheight","pastetext"],froalaOptions=["paragraphFormat","quote","bold","italic","underline","strikeThrough","formatOL","formatUL","align","insertLink","insertImage","insertTable","undo","redo","html"],froalaOptionsPipeOut=function(x_){return froalaOptions.filter(function(eme){return x_.find(function($P){return $P===eme})})},RichTextControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-rich-text",$P.$schema="/schemas/RichTextControlSchema.json",$P.name=i18n("24b6d4c0892a8f3ee2a982e3ab0afe38"),$P.isBaseComponent=!0,$P.icon="fa fa-newspaper-o",$P.pluginIcon="input-rich-text-plugin",$P.description=i18n("42c036311993897680ef37f11e4e20a8"),$P.docLink="/amis/zh-CN/components/form/input-rich-text",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-rich-text",label:i18n("e2591e971f4c28db7c80a5f546084a1d"),name:"rich-text",vendor:"tinymce"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("e2591e971f4c28db7c80a5f546084a1d"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("224c9f857217e09f7c244093d4f08cd0"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ce369362c3ae69c27d717d3210303e27")}},description:i18n("85f1708454f409855d552f702ac27b19")}}}]}],$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme=!!(!((ame=$P.manager.env)===null||ame===void 0)&&ame.richTextToken);return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"textarea"}),label:i18n("225f3ed00750ae78ad1e6ea42c8f5087")}),{type:"select",name:"vendor",label:i18n("226b0912184333c81babf2f1894ec0c1"),value:nme?"froala":"tinymce",options:["tinymce","froala"],onChange:function(rme,ime,ome,lme){rme==="tinymce"?lme.changeValue("options",{height:400,width:void 0,menubar:!0,quickInsertEnabled:void 0,charCounterCount:void 0,toolbarButtons:void 0,toolbarButtonsMD:void 0,toolbarButtonsSM:void 0}):rme==="froala"&&lme.changeValue("options",{height:void 0,width:void 0,toolbar:void 0,menubar:void 0,quickInsertEnabled:!0,charCounterCount:!0})}},{type:"select",multiple:!0,label:tipedLabel(i18n("236b0cdd2e18418fd17d3cdfcace239e"),i18n("defe851634125bb16e762f26dbb6555f")),name:"options.plugins",visibleOn:'this.vendor === "tinymce"',value:__spreadArray([],__read$3(tinymceOptions),!1).join(","),searchable:!0,maxTagCount:5,overflowTagPopover:{title:i18n("236b0cdd2e18418fd17d3cdfcace239e"),offset:[0,5]},options:tinymceOptions},{type:"select",name:"options.toolbar",multiple:!0,label:i18n("012f602372cd2dbd639cd966c63e1f90"),searchable:!0,maxTagCount:5,overflowTagPopover:{title:i18n("236b0cdd2e18418fd17d3cdfcace239e"),offset:[0,5]},visibleOn:'this.vendor === "tinymce"',delimiter:tinymceToolbarsDelimiter,value:"undo redo formatselect bold italic backcolor alignleft aligncenter alignright alignjustify bullist numlist outdent indent removeformat help",pipeOut:function(rme){var ime,ome=(ime=rme==null?void 0:rme.split(tinymceToolbarsDelimiter))!==null&&ime!==void 0?ime:[];return tinymceToolbars.filter(function(lme){return ome.find(function(sme){return sme===lme})}).join(" ")},options:tinymceToolbars},getSchemaTpl("switch",{label:i18n("df025e01cbbae804f7d720e6b932e8e8"),value:!0,name:"options.menubar",visibleOn:'this.vendor === "tinymce"'}),{type:"select",name:"options.toolbarButtons",multiple:!0,visibleOn:'this.vendor === "froala"',maxTagCount:5,overflowTagPopover:{title:i18n("236b0cdd2e18418fd17d3cdfcace239e"),offset:[0,5]},label:tipedLabel(i18n("b74c3bbb8ec4f18896cd3b5a20ee9e2c"),i18n("e08c3505f9779bf919628166a77d0d77")),value:__spreadArray([],__read$3(froalaOptions),!1),joinValues:!1,extractValue:!0,options:__spreadArray([],__read$3(froalaOptions),!1),pipeOut:froalaOptionsPipeOut},{type:"select",name:"options.toolbarButtonsMD",multiple:!0,visibleOn:'this.vendor === "froala"',maxTagCount:5,overflowTagPopover:{title:i18n("236b0cdd2e18418fd17d3cdfcace239e"),offset:[0,5]},label:tipedLabel(i18n("04f91b84d48285162d3e29205a194143"),i18n("9ac0e46a361565f0b8be2228bef4b679")),joinValues:!1,extractValue:!0,options:__spreadArray([],__read$3(froalaOptions),!1),pipeOut:froalaOptionsPipeOut},{type:"select",name:"options.toolbarButtonsSM",multiple:!0,visibleOn:'this.vendor === "froala"',maxTagCount:5,overflowTagPopover:{title:i18n("236b0cdd2e18418fd17d3cdfcace239e"),offset:[0,5]},label:tipedLabel(i18n("70d3894aaed305d2fc67f91122d77759"),i18n("a3133ac3b34da77e612bcb1763adae1e")),joinValues:!1,extractValue:!0,options:__spreadArray([],__read$3(froalaOptions),!1),pipeOut:froalaOptionsPipeOut},getSchemaTpl("switch",{label:i18n("194ab42ad1ca7fca9a6ef84fadf99490"),value:!0,name:"options.quickInsertEnabled",visibleOn:'this.vendor === "froala"'}),getSchemaTpl("switch",{label:i18n("94621f44f98c996e49d5b214aebefffc"),value:!0,name:"options.charCounterCount",visibleOn:'this.vendor === "froala"'}),getSchemaTpl("apiControl",{mode:"row",labelClassName:"none",name:"receiver",label:i18n("b720ed498f054a2539d496d0da68f85b"),visibleOn:'${vendor === "tinymce" && CONTAINS(options.plugins, "image")}'}),getSchemaTpl("apiControl",{mode:"row",labelClassName:"none",name:"receiver",label:i18n("b720ed498f054a2539d496d0da68f85b"),visibleOn:'this.vendor === "froala"'}),getSchemaTpl("apiControl",{mode:"row",labelClassName:"none",name:"videoReceiver",label:i18n("376496a8918c57220159951e24d3b72d"),visibleOn:'this.vendor === "froala"'}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder",{visibleOn:'this.vendor !== "tinymce"'}),getSchemaTpl("description")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Code})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("555a9859e2c34b015438bdfb59a57c5b"),body:[{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),min:0,name:"options.height",visibleOn:'this.vendor === "tinymce"'},{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),min:150,max:400,name:"options.height",visibleOn:'this.vendor === "froala"'}]},getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames")])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="RichTextControlPlugin",eme}(BasePlugin);registerEditorPlugin(RichTextControlPlugin);var DiffEditorControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="diff-editor",$P.$schema="/schemas/DiffEditorControlSchema.json",$P.name=i18n("bac53d3c739f7fb3327704efd5b40eee"),$P.isBaseComponent=!0,$P.icon="fa fa-columns",$P.pluginIcon="diff-editor-plugin",$P.description="左右两边的代码做对比，支持的语言包括：".concat(availableLanguages.slice(0,10).join("，"),"等等"),$P.searchKeywords=i18n("21157967162b6206ec88d66789bb1eb4"),$P.docLink="/amis/zh-CN/components/form/diff-editor",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"diff-editor",label:i18n("0517b74cbe247a903faf40991a5a335f"),name:"diff"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:`Hello World
Line 1
New line
Bla Bla`,diffValue:`Hello World
Line 2`})]},$P.events=[{eventName:"change",eventLabel:i18n("cadf0e302ddbc6fdbf005aed670b5e3e"),description:i18n("6006074bdabc639b86f42aa18876e33a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("42f04184315801c372989820106cc4ee"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("58ec44a580ba7cdcdf65985f5c44940c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"focus",actionLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("b42cb49fc7c4ec140697e6d78c39e585")},getActionCommonProps("focus")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.notRenderFormZone=!0,$P.panelTitle=i18n("bac53d3c739f7fb3327704efd5b40eee"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{label:i18n("295bb704f5205801d57d672780b94117"),name:"language",type:"select",value:"javascript",searchable:!0,options:availableLanguages.concat()},getSchemaTpl("valueFormula",{rendererSchema:{type:"textarea",value:tme==null?void 0:tme.schema.diffValue},label:i18n("2a69150aa382f6a309c03a96145d4266"),name:"diffValue",mode:"vertical"}),getSchemaTpl("valueFormula",{rendererSchema:{type:"textarea",value:tme==null?void 0:tme.schema.value},label:i18n("a71e655ab56c9962742f72623f67ca76"),mode:"vertical"}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0}),getSchemaTpl("validation",{tag:ValidatorTag.All})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer,schema:[{name:"size",type:"select",pipeIn:defaultValue(""),pipeOut:undefinedPipeOut,label:i18n("b3b97a293baac13db6367aba5539a09c"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("3386da5f56fac758ed0f18e024ecb943"),value:"xl"},{label:i18n("949934d97c42801151673a51d3adc421"),value:"xxl"}]}]}),getSchemaTpl("style:classNames",{unsupportStatic:!0})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.filterProps=function($P){return $P.disabled=!0,$P},eme.id="DiffEditorControlPlugin",eme}(BasePlugin);registerEditorPlugin(DiffEditorControlPlugin);var CodeEditorControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="editor",$P.$schema="/schemas/EditorControlSchema.json",$P.name=i18n("84f31b24ffc8ea2b81d61a6f054b5bb6"),$P.isBaseComponent=!0,$P.icon="fa fa-code",$P.pluginIcon="editor-plugin",$P.description="代码编辑器，采用 monaco-editor 支持：".concat(availableLanguages.slice(0,10).join("，"),"等等"),$P.docLink="/amis/zh-CN/components/form/editor",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"editor",label:i18n("84f31b24ffc8ea2b81d61a6f054b5bb6"),name:"editor"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:'console.log("Hello world.");'})]},$P.events=[{eventName:"change",eventLabel:i18n("cadf0e302ddbc6fdbf005aed670b5e3e"),description:i18n("6006074bdabc639b86f42aa18876e33a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("ed85c3f659acc9e89bcf6f0dbaa02a62")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"focus",actionLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("829c57d7064cad467ec466ae26244ebb")},getActionCommonProps("focus")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.notRenderFormZone=!0,$P.panelTitle="Editor",$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{label:i18n("295bb704f5205801d57d672780b94117"),name:"language",type:"select",value:"javascript",searchable:!0,options:availableLanguages.concat()},getSchemaTpl("valueFormula",{rendererSchema:{type:"textarea"},mode:"vertical"}),getSchemaTpl("switch",{label:i18n("44fe0e1bcabcea83d6a30e6af0fd42af"),name:"allowFullscreen",pipeIn:defaultValue(!0)}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("description"),getSchemaTpl("autoFillApi")]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Code})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer,schema:[{name:"size",type:"select",pipeIn:defaultValue(""),pipeOut:undefinedPipeOut,label:i18n("b3b97a293baac13db6367aba5539a09c"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("3386da5f56fac758ed0f18e024ecb943"),value:"xl"},{label:i18n("949934d97c42801151673a51d3adc421"),value:"xxl"}]}]}),getSchemaTpl("style:classNames",{unsupportStatic:!0})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.filterProps=function($P){return $P.disabled=!0,$P},eme.id="CodeEditorControlPlugin",eme}(BasePlugin);registerEditorPlugin(CodeEditorControlPlugin);var SearchBoxPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="search-box",$P.$schema="/schemas/SearchBoxSchema.json",$P.name=i18n("c3e817974de836e80c95cc6ce5718eff"),$P.searchKeywords=i18n("88f8919dd239f2018d267f79d71a672b"),$P.isBaseComponent=!0,$P.description=i18n("83fe6a5db780fcfa68f3336c7d86f25b"),$P.docLink="/amis/zh-CN/components/search-box",$P.icon="fa fa-search",$P.pluginIcon="search-box-plugin",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"search-box",name:"keyword",body:{type:"tpl",tpl:i18n("c3e817974de836e80c95cc6ce5718eff"),wrapperComponent:"",inline:!1},level:"info"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{className:"text-left",showCloseButton:!0}),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("bb50b53491c2c43845c58b16e48c27f3")}],$P.events=[{eventName:"search",eventLabel:i18n("68a896ef9627fea8cd84f3fa4f7269aa"),description:i18n("a7be3c702997f49cf9429240fbbc5e36"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("5bc28acd4afb712dcbc234927357cd87"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("6fe93193cbd9f0eb9315a4ae83343786")},getActionCommonProps("clear")),__assign$3({actionType:"setValue",actionLabel:i18n("67b6bec14c39be3f2602271e2fe3bcde"),description:i18n("67b6bec14c39be3f2602271e2fe3bcde")},getActionCommonProps("setValue"))],$P.notRenderFormZone=!0,$P.panelTitle=i18n("c3e817974de836e80c95cc6ce5718eff"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("0796ba76b4b553687e5ffaeb78512ccb"),body:[getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("switch",{label:i18n("09bbfb387dce6201df1ccef2aab161a6"),name:"clearable"}),getSchemaTpl("switch",{label:i18n("218bcea849478df7335ac31072860e8e"),name:"clearAndSubmit"}),getSchemaTpl("switch",{label:i18n("a48b511d5da79faf6f7f58c5470738f0"),name:"searchImediately"}),getSchemaTpl("switch",{label:i18n("71c198baa12405e56705a3c68f66e3ef"),name:"mini"}),getSchemaTpl("switch",{label:i18n("b814fb5782f733a22ee561397ad376fc"),name:"enhance",visibleOn:"!data.mini"}),getSchemaTpl("placeholder")]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))}])},$P}return eme.id="SearchBoxPlugin",eme}(BasePlugin);registerEditorPlugin(SearchBoxPlugin);var KVControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-kv",$P.$schema="/schemas/KVControlSchema.json",$P.name=i18n("ed55564c631322fa3042c77286d6562c"),$P.isBaseComponent=!0,$P.icon="fa fa-eyedropper",$P.pluginIcon="input-kv-plugin",$P.description=i18n("746dd83e6891ccc9a19804c23c2c4443"),$P.docLink="/amis/zh-CN/components/form/input-kv",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-kv",label:"KV",name:"kv"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.patchSchema=function(tme){return(tme.pipeIn||tme.pipeOut)&&(tme=__assign$3({},tme),delete tme.pipeIn,delete tme.pipeOut),tme},$P.events=[{eventName:"add",eventLabel:i18n("b58c7549c0246c55b9cac96383200338"),description:i18n("8575b828c7320de82b9f99058aa1f55f"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("e26f6832d586f9e73d2361573bf5273f")}}}}}]},{eventName:"delete",eventLabel:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),description:i18n("4933bd64bb23de03ca8ed246fa5509c5"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{key:{type:"string",title:i18n("91190195405845950230616929d852cf")},value:{type:"string",title:i18n("e26f6832d586f9e73d2361573bf5273f")},item:{type:"object",title:i18n("28e5fd494ea37a09fd2ad36d0f98bacc")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("ed55564c631322fa3042c77286d6562c"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"input-text",name:"valueType",label:i18n("654ad5670efdd25f1417958a7026a355"),pipeIn:defaultValue("input-text")},{type:"input-text",name:"keyPlaceholder",label:i18n("9648d874d516a87965066342394e86e6")},{type:"input-text",name:"valuePlaceholder",label:i18n("4dae7425b21494a318cd4a69ce24608f")},{type:"switch",name:"draggable",label:i18n("233662283039ded8c29f070d1a807029"),pipeIn:defaultValue(!0)}],$P}return eme.id="KVControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(KVControlPlugin);var RepeatControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-repeat",$P.$schema="/schemas/RepeatControlSchema.json",$P.name=i18n("d38056d1c6aa9456f4b6b2c20aab06a2"),$P.isBaseComponent=!0,$P.icon="fa fa-repeat",$P.pluginIcon="input-repeat-plugin",$P.description=i18n("b3389af540d99fe9e51fb2995dbd6dff"),$P.searchKeywords=i18n("9462f8cc8d65d991be1593493039b85b"),$P.docLink="/amis/zh-CN/components/form/input-repeat",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-repeat",label:i18n("2d842318fbd931286be387aaf5b2a7c3"),name:"repeat"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("2d842318fbd931286be387aaf5b2a7c3"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("switchDefaultValue"),{type:"input-text",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),visibleOn:'typeof this.value !== "undefined"'},{name:"options",type:"select",label:i18n("a2d92b5adb07a4bf8a45e55643bc39f8"),options:"secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly".split(","),value:"hourly,daily,weekly,monthly",multiple:!0}],$P}return eme.id="RepeatControlPlugin",eme}(BasePlugin);registerEditorPlugin(RepeatControlPlugin);var UUIDControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="uuid",$P.$schema="/schemas/UUIDControlSchema.json",$P.name="UUID",$P.isBaseComponent=!0,$P.icon="fa fa-eye-slash",$P.pluginIcon="uuid-plugin",$P.description=i18n("43474db97aff2ed0a876a47b6f4cdc7d"),$P.searchKeywords=i18n("895013340b5cba65de69aefc9f4f0dff"),$P.docLink="/amis/zh-CN/components/form/uuid",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"uuid",name:"uuid"},$P.previewSchema={type:"form",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle="UUID",$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"static",value:i18n("43e1548e15272e1007051d7c8b70adf6")}],$P}return eme.prototype.renderRenderer=function($P){return this.renderPlaceholder(i18n("844d72db7e57be4d77881ee9b4294e75"),$P.key,$P.style)},eme.id="UUIDControlPlugin",eme}(BasePlugin);registerEditorPlugin(UUIDControlPlugin);var LocationControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="location-picker",$P.$schema="/schemas/LocationControlSchema.json",$P.name=i18n("d1f923b8e23b66b3e48953ba1ce17839"),$P.isBaseComponent=!0,$P.notRenderFormZone=!0,$P.icon="fa fa-location-arrow",$P.pluginIcon="location-picker-plugin",$P.description=i18n("d1f923b8e23b66b3e48953ba1ce17839"),$P.docLink="/amis/zh-CN/components/form/location-picker",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"location-picker",name:"location",label:i18n("989ea9acbab9b17d2c15e2946b5365bb")},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("d1f923b8e23b66b3e48953ba1ce17839"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("2fc76872efce1eabd3b74a3e4fd5b976"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"object",title:i18n("e48d65cda774019d9a6677354bc781f2"),properties:{address:{type:"string",title:i18n("7650487a8758fd50c87d6c9cff0aa5ac")},lng:{type:"number",title:i18n("3d18ca01ddd1b95e982ec44ffcda8165")},lat:{type:"number",title:i18n("6acaee71fe6a23c17f18625df01bab23")},vendor:{type:"string",title:i18n("70aefc6ad8dffc85d083aaa38aad9d28")}}}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("c374a44713fa5ff5da2565beb398c7d3")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("formulaControl",{name:"ak",label:i18n("dffd9d86d2003615897b12ce7597d77b"),required:!0,validationErrors:{isRequired:i18n("f1ee660e12ef0b76c10cccc3d923e605")},description:i18n("4d01bb9f50eb1480e0e9995a2a003181")}),{type:"select",name:"coordinatesType",label:i18n("b472ba224a7d132c487ee6ec4798f835"),value:"bd09",options:[{label:i18n("36443b53c845b197db8d39eeda433ab9"),value:"bd09"},{label:i18n("f58cb611aec0998a44ef104b5c950b40"),value:"gcj02"}]},getSchemaTpl("formulaControl",{name:"value",label:tipedLabel(i18n("225f3ed00750ae78ad1e6ea42c8f5087"),`传入参数格式应满足如下要求：<br/>
                    <pre>`.concat(JSON.stringify({address:"string",lat:"number",lng:"number",vendor:"baidu|gaode"},null,2),"</pre>")),size:"lg",mode:"horizontal",placeholder:i18n("85451d2eb59327a23e8f745161066d4a")}),getSchemaTpl("switch",{name:"autoSelectCurrentLoc",label:tipedLabel(i18n("2e2c57b664358061f9f20aeda43b53af"),i18n("3fd78aa49302ff2634badc2ef49828f7"))}),getSchemaTpl("switch",{name:"onlySelectCurrentLoc",label:tipedLabel(i18n("1acee853829433de3ece301ee365bc99"),i18n("ce8b1e6f3819ea068921a4fa9ead6968"))}),getSchemaTpl("clearable"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder",{visibleOn:"!onlySelectCurrentLoc"}),getSchemaTpl("placeholder",{name:"getLocationPlaceholder",visibleOn:"onlySelectCurrentLoc"}),getSchemaTpl("description")]},getSchemaTpl("status",{isFormItem:!0,readonly:!1}),getSchemaTpl("validation",{tag:ValidatorTag.File})])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:ame}),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:classNames",{schema:[{type:"theme-classname",label:i18n("e1b2f870112bd38f8d7e14a0ad589930"),name:"inputClassName"},{type:"theme-classname",label:i18n("55b45c73ae417c4dead67905b1550e85"),name:"className"},{type:"theme-classname",label:i18n("f1f7a5f821ca0ee4caaa9324eda48d91"),name:"staticClassName"}]}),getSchemaTpl("theme:cssCode",{themeClass:[{name:i18n("9b6425cd2d496c9cb5a6c6b8ff125d1b"),value:"",className:"inputControlClassName",state:["default","hover","active"]},{name:"addOn",value:"addOn",className:"addOnClassName"}],isFormItem:!0})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme;return{type:"object",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),properties:{address:{type:"string",title:i18n("7650487a8758fd50c87d6c9cff0aa5ac")},lng:{type:"number",title:i18n("3d18ca01ddd1b95e982ec44ffcda8165")},lat:{type:"number",title:i18n("6acaee71fe6a23c17f18625df01bab23")},vendor:{type:"string",title:i18n("40d58bb6ac9888b0c672f5bcff74da25")}},originalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value}},eme.id="LocationControlPlugin",eme}(BasePlugin);registerEditorPlugin(LocationControlPlugin);var SubFormControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-sub-form",$P.$schema="/schemas/SubFormControlSchema.json",$P.name=i18n("d6c40a2ee219c010edbcdaa2eeb94ddd"),$P.isBaseComponent=!0,$P.icon="fa fa-window-restore",$P.pluginIcon="sub-form-plugin",$P.description=i18n("81e1ff0bb8917a9df99d737982ee24b7"),$P.docLink="/amis/zh-CN/components/form/input-sub-form",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-sub-form",name:"subform",label:i18n("32f6f7f8164c7f78e4b46eb50c158ab9"),form:{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:[{type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"text"}]}},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("d6c40a2ee219c010edbcdaa2eeb94ddd"),$P.panelBodyCreator=function(tme){return[getSchemaTpl("layout:originPosition",{value:"left-top"}),{children:function(ame){return ame.value,ame.onChange,React__default.createElement(Button$1,{size:"sm",level:"primary",className:"m-b",block:!0,onClick:$P.editDetail.bind($P,tme.id)},i18n("39a6853b109ae98f1aabca90283d7edc"))}},{name:"labelField",type:"input-text",value:"label",label:i18n("18c113b99afa964ee988f30e81baf12b"),description:i18n("4d930a9c13fca9d74e1a77496abfaa58")},getSchemaTpl("btnLabel",{label:i18n("307ae20f587910da3e9bb4e885334b6a"),value:i18n("e366ccf1556c0672dcecba135ed5472e")}),{name:"minLength",visibleOn:"this.multiple",label:i18n("70c04a0f4522e39fde5f18ebc85b6232"),type:"input-number"},{name:"maxLength",visibleOn:"this.multiple",label:i18n("f58ea00f6a84bcb1cac174d1f68c88bd"),type:"input-number"}]},$P}return eme.prototype.filterProps=function($P,tme){return $P=JSONPipeOut($P),!tme.state.value&&!$P.value&&tme.updateState({value:[""]}),$P},eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info;nme.renderer.name==="input-sub-form"&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("39a6853b109ae98f1aabca90283d7edc"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id;$P.schema,$P.region;var nme=$P.info;nme.renderer.name==="input-sub-form"&&tme.push("|",{label:i18n("39a6853b109ae98f1aabca90283d7edc"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);if(!(!nme||!rme)){var ime=rme.form,ome=ime.title,lme=ime.actions,sme=ime.name,cme=ime.size,dme=ime.closeOnEsc,ume=ime.showCloseButton,fme=ime.bodyClassName;ime.type;var pme=__rest$14(ime,["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"]),hme={title:ome,actions:lme,name:sme,size:cme,closeOnEsc:dme,showCloseButton:ume,bodyClassName:fme,type:"dialog",body:__assign$3({type:"form",className:"h-full pl-4 pr-4"},pme)};this.manager.openSubEditor({title:i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"),value:hme,memberImmutable:["body"],onChange:function(bme){var mme=bme.title,vme=bme.actions,gme=bme.name,yme=bme.size,_me=bme.closeOnEsc,$me=bme.showCloseButton,Cme=bme.bodyClassName,Sme=bme.body;bme=__assign$3(__assign$3({},rme),{form:__assign$3({title:mme,actions:vme,name:gme,size:yme,closeOnEsc:_me,showCloseButton:$me,bodyClassName:Cme},Sme[0])}),delete bme.form.type,tme.panelChangeValue(bme,diff(rme,bme))}})}},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme;return __generator(this,function(dme){return cme={type:"object",title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value},!((ome=$P.schema)===null||ome===void 0)&&ome.multiple&&(cme={type:"array",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),originalValue:cme.originalValue}),[2,cme]})})},eme.id="SubFormControlPlugin",eme}(BasePlugin);registerEditorPlugin(SubFormControlPlugin);var HiddenControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="hidden",$P.$schema="/schemas/HiddenControlSchema.json",$P.name=i18n("d27d7b1542d91641d1d232c9f58b96d1"),$P.isBaseComponent=!0,$P.icon="fa fa-eye-slash",$P.pluginIcon="hidden-plugin",$P.description=i18n("d50b9a7291d45d1da8633439427afaef"),$P.searchKeywords=i18n("b400e476d7cc8a1b42744661f57525f2"),$P.docLink="/amis/zh-CN/components/form/hidden",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"hidden",name:"var1"},$P.previewSchema={type:"tpl",tpl:i18n("d27d7b1542d91641d1d232c9f58b96d1")},$P.panelTitle=i18n("d27d7b1542d91641d1d232c9f58b96d1"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"input-text",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087")}],$P}return eme.prototype.renderRenderer=function($P){return this.renderPlaceholder(i18n("4f6595b5030e171fcead42d321ba767f"),$P.key,$P.style)},eme.id="HiddenControlPlugin",eme}(BasePlugin);registerEditorPlugin(HiddenControlPlugin);var SignaturePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-signature",$P.$schema="/schemas/InputSignatureSchema.json",$P.name="手写签",$P.isBaseComponent=!0,$P.icon="fa fa-star-o",$P.pluginIcon="input-signature-plugin",$P.description="手写签名面板",$P.docLink="/amis/zh-CN/components/form/input-signature",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-signature",label:"签名",name:"signature"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{embed:!0})]},$P.notRenderFormZone=!0,$P.panelTitle="签名面板",$P.events=[],$P.actions=[],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),getSchemaTpl("labelRemark"),{type:"button-group-select",label:"签字模式",name:"embed",tiled:!0,value:!1,options:[{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:!1},{label:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:!0}]},{type:"control",label:"功能按钮配置",mode:"normal",body:[{type:"container",wrapperComponent:"div",className:"px-3 py-2",style:{backgroundColor:"#f7f7f9"},body:[{type:"wrapper",size:"none",visibleOn:"this.embed === true",body:[getSchemaTpl("signBtn",{label:"确认签名",name:"embedConfirmLabel",icon:"embedConfirmIcon"})]},{type:"wrapper",size:"none",visibleOn:"this.embed === false",body:[getSchemaTpl("signBtn",{label:"确认签名",name:"confirmBtnLabel",icon:"confirmBtnIcon"})]},{type:"wrapper",size:"none",visibleOn:"this.embed === true",body:[getSchemaTpl("signBtn",{label:"取消签名",name:"ebmedCancelLabel",icon:"ebmedCancelIcon"})]},getSchemaTpl("signBtn",{label:"撤销签名",name:"undoBtnLabel",icon:"undoBtnIcon"}),getSchemaTpl("signBtn",{label:"清空签名",name:"clearBtnLabel",icon:"clearBtnIcon"}),{type:"wrapper",size:"none",visibleOn:"this.embed === true",body:[getSchemaTpl("signBtn",{label:"签名按钮",name:"embedBtnLabel",icon:"embedBtnIcon"})]}]}]}]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Check})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:tme.info.renderer}),getSchemaTpl("style:classNames",{unsupportStatic:!0})])]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme;return{type:"number",title:((ame=$P.schema)===null||ame===void 0?void 0:ame.label)||((nme=$P.schema)===null||nme===void 0?void 0:nme.name),originalValue:(rme=$P.schema)===null||rme===void 0?void 0:rme.value}},eme.id="SignaturePlugin",eme}(BasePlugin);registerEditorPlugin(SignaturePlugin);setSchemaTpl("quickEdit",function(x_,eme){return{type:"ae-switch-more",mode:"normal",name:"quickEdit",label:i18n("663a93dacbba9f7860dca783cf772419"),value:!1,hiddenOnDefault:!0,formType:"extend",pipeIn:function($P){return!!$P},trueValue:{mode:"popOver"},isChecked:function($P){var tme=$P.data,ame=$P.name;return!!get$6(tme,ame)},form:{body:[{label:i18n("ce0e89aa6a8e17562c265714b33b4f82"),name:"quickEdit.mode",type:"button-group-select",inputClassName:"items-center",visibleOn:"this.quickEdit",pipeIn:defaultValue("popOver"),options:[{label:i18n("78f395c15aaf8c92d9223f6ca69b41a4"),value:"popOver"},{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"inline"}]},getSchemaTpl("icon",{name:"quickEdit.icon"}),getSchemaTpl("switch",{name:"quickEdit.saveImmediately",label:tipedLabel(i18n("5e2d1e872682befd5350687f94a6b417"),i18n("2d2eb2ac28f074d1caef0d332d61cfb0")),visibleOn:"this.quickEdit",pipeIn:function($P){return!!$P}}),getSchemaTpl("apiControl",{name:"quickEdit.saveImmediately.api",label:i18n("ff7cc75cc43c25c823d05d87cb8190b0"),mode:"row",description:i18n("ba1a077af717cb3c4788849c2342200b"),visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{name:"quickEdit",asFormItem:!0,visibleOn:"this.quickEdit",mode:"row",children:function($P){var tme=$P.value,ame=$P.onChange,nme=$P.data;tme===!0?tme={}:typeof tme>"u"&&(tme=getVariable(nme,"quickEdit")),tme=__assign$3({},tme);var rme=tme.mode||"popOver";tme.mode&&delete tme.mode;var ime=tme.saveImmediately;return tme.saveImmediately&&delete tme.saveImmediately,tme=tme.body&&["container","wrapper"].includes(tme.type)?__assign$3({type:"wrapper",body:[]},tme):{type:"wrapper",body:[__assign$3({type:"input-text",name:nme.name},tme)]},React__default.createElement(Button$1,{block:!0,level:"primary",onClick:function(){eme.openSubEditor({title:i18n("c3ed36e4abb96c18a6c83350994cdea7"),value:tme,onChange:function(ome){return ame(__assign$3(__assign$3({},ome),{mode:rme,saveImmediately:ime}),"quickEdit")}})}},i18n("45a6c55d8d2d92af84e219defef084d5"))}}]}}});setSchemaTpl("morePopOver",function(x_,eme){return{type:"ae-switch-more",mode:"normal",name:"popOver",label:i18n("3f337f436989e9847790e4435423f77e"),value:!1,hiddenOnDefault:!0,formType:"extend",pipeIn:function($P){return!!$P},form:{body:[{label:i18n("f7247cd14bd964b883bbb481892c440b"),name:"popOver.mode",type:"button-group-select",visibleOn:"this.popOver",pipeIn:defaultValue("popOver"),options:[{label:i18n("a553741d5ebb9c80d7d2a63b202cf4b8"),value:"popOver"},{label:i18n("ab3aec075a09d055b2a28c8b61925ee0"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"}]},{name:"popOver.position",label:i18n("a06e8df4e9232cc606e0202e06a198d8"),type:"select",visibleOn:'this.popOver && (this.popOver.mode === "popOver" || !this.popOver.mode)',pipeIn:defaultValue("center"),options:[{label:i18n("e18459c93769a5afec01e1ce60f9b9fd"),value:"left-top"},{label:i18n("1fc3cdd8437f5057774cde2f2c51f97c"),value:"right-top"},{label:i18n("68b54e7b408c4fb83561c931aa668eae"),value:"center"},{label:i18n("63dd9faca92bccfd436ff21a6b4b3151"),value:"left-bottom"},{label:i18n("d01c239688b9c8fc145191ee642dc080"),value:"right-bottom"},{label:i18n("8fcf9802436282672a8e28ebd6262390"),value:"fixed-left-top"},{label:i18n("aed25160b4e8cfc613a743c4549e9222"),value:"fixed-right-top"},{label:i18n("d4a4ab1916187e09b9c037705fd49ffa"),value:"fixed-left-bottom"},{label:i18n("921fccbb84c829bf8c6f0b9957029f44"),value:"fixed-right-bottom"}]},{visibleOn:"this.popOver",name:"popOver",mode:"row",asFormItem:!0,children:function($P){var tme=$P.value,ame=$P.onChange;return tme=__assign$3({type:"panel",title:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),body:i18n("1d53f83df1d889a70131b7a93c819575")},tme),React__default.createElement(Button$1,{block:!0,level:"primary",onClick:function(){eme.openSubEditor({title:i18n("8dda45360dcf9ca501fd7d0eb53045b5"),value:tme,onChange:function(nme){return ame(nme,"quickEdit")}})}},i18n("fd389de167730ba8542217ad31b95562"))}}]}}});setSchemaTpl("copyable",{type:"ae-switch-more",mode:"normal",name:"copyable",label:i18n("f9a9fcc3bf6a3c8ff1e99fa48ed6d03d"),value:!1,hiddenOnDefault:!0,formType:"extend",pipeIn:function(x_){return!!x_},form:{body:[{label:i18n("deb65aca8dba2ff9d0cfaed0a3441068"),name:"copyable.content",type:"textarea",mode:"row",maxRow:2,visibleOn:"this.copyable",description:i18n("622e14515c4fd5ca6fe6946e3a1bfb4a")}]}});var StaticControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="static",$P.$schema="/schemas/StaticControlSchema.json",$P.name=i18n("33e7b7433fdbeafa1ef71105ee28c061"),$P.isBaseComponent=!0,$P.icon="fa fa-info",$P.pluginIcon="static-plugin",$P.description=i18n("b4482a3d9523f48e83a816fa85911185"),$P.docLink="/amis/zh-CN/components/form/static",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"static",label:i18n("3bdd08adab6ea90b9164b20a0e4151ac")},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3(__assign$3({},$P.scaffold),{value:i18n("134492cd10a0646da6f23a743feee6d4")})]},$P.multifactor=!0,$P.notRenderFormZone=!0,$P.panelTitle=i18n("04f5f12c49c2a6fdc43da049591328ad"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=tme.info.renderer;return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("formItemName",{required:!1}),getSchemaTpl("label"),getSchemaTpl("valueFormula",{name:"tpl",onChange:function(nme,rme,ime,ome){nme===""&&ome.setValues({value:void 0})}}),getSchemaTpl("quickEdit",{},$P.manager),getSchemaTpl("morePopOver",{},$P.manager),getSchemaTpl("copyable"),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},getSchemaTpl("status",{isFormItem:!0,unsupportStatic:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:formItem",{renderer:ame}),{title:i18n("e1b2f870112bd38f8d7e14a0ad589930"),body:[getSchemaTpl("borderMode")]},{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:i18n("16a20243f9b741c08216dc9548de2968")}),getSchemaTpl("className",{label:i18n("14d342362f66aa86e2aa1c1e11aa1204"),name:"labelClassName"}),getSchemaTpl("className",{label:i18n("e1b2f870112bd38f8d7e14a0ad589930"),name:"inputClassName"}),getSchemaTpl("className",{label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),name:"descriptionClassName",visibleOn:"this.description"})]}])}])},$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P}return eme.prototype.filterProps=function($P,tme){return $P.$$id=tme.id,typeof $P.value>"u"&&!tme.state.value&&tme.updateState({value:mockValue($P)}),$P},eme.id="StaticControlPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(StaticControlPlugin);var ButtonPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="button",$P.$schema="/schemas/ActionSchema.json",$P.order=-400,$P.name=i18n("fa966345577ba81af19408f203db968f"),$P.isBaseComponent=!0,$P.description=i18n("89de611b2d759a1802542b5d3a06829f"),$P.docLink="/amis/zh-CN/components/button",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-square",$P.pluginIcon="button-plugin",$P.scaffold=__assign$3({type:"button",label:i18n("fa966345577ba81af19408f203db968f")},BUTTON_DEFAULT_ACTION),$P.previewSchema={type:"button",label:i18n("fa966345577ba81af19408f203db968f")},$P.panelTitle=i18n("fa966345577ba81af19408f203db968f"),$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),defaultShow:!0,dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.actions=[],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/(?:\/|^)dialog\/.+$/.test(tme.path),nme=/(?:\/|^)drawer\/.+$/.test(tme.path),rme=/^button-group\/.+$/.test(tme.path);return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("label",{label:i18n("d7ec2d3fea4756bc1642e0f10c180cf5")}),{label:i18n("226b0912184333c81babf2f1894ec0c1"),type:"button-group-select",name:"type",size:"sm",visibleOn:'type === "submit" || type === "reset" ',options:[{label:i18n("fa966345577ba81af19408f203db968f"),value:"button"},{label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),value:"submit"},{label:i18n("4b9c3271dc2f299dc3aeffb369187513"),value:"reset"}]},getSchemaTpl("switch",{name:"close",label:i18n("5e64227f46b221001e3b151d72fa6412"),clearValueOnHidden:!0,labelRemark:"指定此次操作完后关闭当前 ".concat(ame?"dialog":"drawer"),hidden:!ame&&!nme,pipeIn:defaultValue(!1)}),{type:"ae-switch-more",mode:"normal",formType:"extend",label:tipedLabel(i18n("1e7196ce05260faa55e5b7ea5a1667c2"),i18n("f3dc08e3617d1e19cf8135be4412a80b")),form:{body:[getSchemaTpl("textareaFormulaControl",{label:i18n("0d0c6ff7b65e62eba3ddd523e2976389"),mode:"normal",name:"confirmText"})]}},{type:"ae-switch-more",formType:"extend",mode:"normal",label:i18n("7e9646e2db5ce66dc2b4b922ece483ba"),id:"button-tooltip",hidden:rme,form:{body:[getSchemaTpl("textareaFormulaControl",{name:"tooltip",mode:"normal",label:tipedLabel(i18n("5daaffe964aee9d884e0a681b2818a17"),i18n("faa29265819714253843e23437b9193e"))}),getSchemaTpl("textareaFormulaControl",{name:"disabledTip",mode:"normal",label:tipedLabel(i18n("fb37b983a93aabdcdbbd59ae48c519fb"),i18n("f855f46ce6146aa17a9ed423da16bfa2")),clearValueOnHidden:!0,visibleOn:'this.tooltipTrigger !== "focus"'}),{type:"button-group-select",name:"tooltipTrigger",label:i18n("159dbc2fafd57b9d3652f16659b1b519"),size:"sm",options:[{label:i18n("d420160a9e04c481e55a9686ab158caa"),value:"hover"},{label:i18n("d6763cb7640bed39caa058f156007a86"),value:"focus"}],pipeIn:defaultValue("hover")},{type:"button-group-select",name:"tooltipPlacement",label:i18n("d586324c6d6b45cb78a4172d836dab3e"),size:"sm",options:[{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"}],pipeIn:defaultValue("bottom")}]}},getSchemaTpl("icon",{label:i18n("c182ad6b97f0909596a523b1f04c28d2")}),getSchemaTpl("icon",{name:"rightIcon",label:i18n("ad7e6f016bc1d9a9bbc6e18224d73247")}),getSchemaTpl("badge")]},getSchemaTpl("status",{disabled:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("buttonLevel",{label:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),name:"level",hidden:rme}),getSchemaTpl("buttonLevel",{label:i18n("c12ba7b658a9fccf0815f3951bc759b6"),name:"activeLevel",hidden:rme,visibleOn:"this.active"}),getSchemaTpl("switch",{name:"block",label:i18n("6aa6b9e2dca63d27dc74eb155020271d"),hidden:rme}),getSchemaTpl("size",{label:i18n("c8339fd2a85af4ba66084d28df808de4"),hidden:rme})]},{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:__spreadArray(__spreadArray(__spreadArray([{type:"select",name:"__editorState",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),selectFirst:!0,options:[{label:i18n("22b777e6fcb613b8ba83ced9594cd07e"),value:"default"},{label:i18n("062d0b688adb10f3af5ebc2fd2667f1c"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"active"}]}],__read$3(buttonStateFunc("${__editorState == 'default' || !__editorState}","default")),!1),__read$3(buttonStateFunc("${__editorState == 'hover'}","hover")),!1),__read$3(buttonStateFunc("${__editorState == 'active'}","active")),!1)},getSchemaTpl("theme:singleCssCode",{selectors:[{label:"按钮基本样式",isRoot:!0,selector:".cxd-Button"},{label:"按钮内容样式",selector:"span"}]})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:tme.schema.actionType||["submit","reset"].includes(tme.schema.type)?[getSchemaTpl("eventControl",__assign$3(__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)),{rawType:"button"})),getOldActionSchema($P.manager,tme)]:[getSchemaTpl("eventControl",__assign$3(__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)),{rawType:"button"}))]}])},$P}return eme.prototype.filterProps=function($P){return $P.disabled=!1,$P},eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema,nme=this;if(ame.$$id&&nme.name&&nme.rendererName&&nme.rendererName===tme.name)return{name:ame.label?ame.label:nme.name,regions:nme.regions,patchContainers:nme.patchContainers,vRendererConfig:nme.vRendererConfig,wrapperProps:nme.wrapperProps,wrapperResolve:nme.wrapperResolve,filterProps:nme.filterProps,$schema:nme.$schema,renderRenderer:nme.renderRenderer}},eme.id="ButtonPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ButtonPlugin);var ButtonGroupPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="button-group",$P.$schema="/schemas/ButtonGroupSchema.json",$P.name=i18n("c8caf94205105bac5833ab31cc2129d7"),$P.isBaseComponent=!0,$P.description=i18n("66ae9ce23b0b2e243aff087d906a2489"),$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-object-group",$P.pluginIcon="btn-group-plugin",$P.docLink="/amis/zh-CN/components/button-group",$P.scaffold={type:"button-group",buttons:[__assign$3({type:"button",label:i18n("e9d2f66bbd44c96a3e03494bf6b1ebf0")},BUTTON_DEFAULT_ACTION),__assign$3({type:"button",label:i18n("ce35a17d2ba7caac95092a7a66ac9a0d")},BUTTON_DEFAULT_ACTION)]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("c8caf94205105bac5833ab31cc2129d7"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"button-group-select",name:"vertical",label:i18n("de26e1294acedb55155a418630d57924"),options:[{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:!1},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:!0}],pipeIn:defaultValue(!1)},getSchemaTpl("switch",{name:"tiled",label:tipedLabel(i18n("8eb18b36f5a27fa8e6d32bc66546ce05"),i18n("2e28645c67c5742e473888a27aab7bd6")),pipeIn:defaultValue(!1)}),getSchemaTpl("combo-container",{type:"combo",label:i18n("66774850742a81e8b2393195290b7330"),name:"buttons",mode:"normal",multiple:!0,addable:!0,minLength:1,draggable:!0,editable:!1,pipeIn:function(ame,nme){return translateSchema(ame)},items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<span class="label label-default"><% if (data.type === "button-group") { %> '.concat(i18n("c8caf94205105bac5833ab31cc2129d7"),' <% } else { %><%= data.label %><% if (data.icon) { %><i class="<%= data.icon %>"/><% }%><% } %></span>')}],addButtonText:i18n("f9f2b9cc91cd332db6b2b732c3869233"),scaffold:{type:"button",label:i18n("fa966345577ba81af19408f203db968f")}})]},getSchemaTpl("status",{disabled:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("buttonLevel",{label:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),name:"btnLevel"}),getSchemaTpl("size",{label:i18n("c8339fd2a85af4ba66084d28df808de4")})]},getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{label:i18n("fa966345577ba81af19408f203db968f"),name:"btnClassName"})]})])]}])},$P.regions=[{key:"buttons",label:i18n("40f3bc0a4f4d0f4230fc7fa6f4fcec92"),renderMethod:"render",preferTag:i18n("fa966345577ba81af19408f203db968f"),insertPosition:"inner"}],$P}return eme.id="ButtonGroupPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ButtonGroupPlugin);var NavPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="nav",$P.$schema="/schemas/NavSchema.json",$P.name=i18n("056f2d7df6e6b64625c3a2d27ce07b05"),$P.isBaseComponent=!0,$P.description=i18n("f6a5891819c67a80c1179c7cdaa00935"),$P.docLink="/amis/zh-CN/components/nav",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-map-signs",$P.pluginIcon="nav-plugin",$P.scaffold={type:"nav",stacked:!0,popupClassName:"app-popover :AMISCSSWrapper",links:[{label:i18n("4cb18f42ea06a97b382397c40ed64fb2"),to:"?id=1",target:"_self",id:"0"},{label:i18n("a004407ac524b6d331671fb7a013c3fc"),to:"?id=2",target:"_self",id:"1"}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("056f2d7df6e6b64625c3a2d27ce07b05"),$P.panelDefinitions={links:{label:i18n("310c10c1fcd37bf760bc15c30f54e722"),name:"links",type:"combo",multiple:!0,draggable:!0,addButtonText:i18n("ba750e6e302292402a4c61ed72331cba"),multiLine:!0,messages:{validateFailed:i18n("f7a63e1e77fac1bfa05a060d55e27692")},scaffold:{label:"",to:""},items:[getSchemaTpl("label",{label:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),required:!0}),{type:"input-text",name:"to",label:i18n("7fa141f341e173e2339dcf0ce6869b5c"),required:!0},getSchemaTpl("switch",{label:i18n("136ecd1380f3fa10c1fd99b93c63fc9b"),name:"target",pipeIn:function(tme){return tme==="_parent"},pipeOut:function(tme){return tme?"_parent":"_blank"}}),getSchemaTpl("icon",{name:"icon",label:i18n("5ef69f62dc668c1a3e68b51c50a2530a")}),getSchemaTpl("switch",{label:i18n("9778ba8e0cbbae9471485dfc28df8948"),name:"unfolded"}),{type:"group",label:i18n("720fc47e20be9b7a2e67a4ed808b3bf2"),direction:"vertical",className:"m-b-none",labelRemark:{trigger:"click",rootClose:!0,className:"m-l-xs",content:i18n("a6ed2640c41d0e3df4acb4f15d37f6e3"),placement:"left"},body:[{name:"active",type:"radios",inline:!0,options:[{label:i18n("0a60ac8f02ccd2cf723f927284877851"),value:!0},{label:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),value:!1},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:""}]},{name:"activeOn",autoComplete:!1,visibleOn:'typeof this.active !== "boolean"',type:"input-text",placeholder:i18n("dc55fd2e990771fd670743ca5dd59275"),className:"m-t-n-sm"}]},getSchemaTpl("switch",{label:i18n("78b7cf23a2b93db1ec36e6c6cfe170db"),name:"children",pipeIn:function(tme){return!!tme},pipeOut:function(tme){return tme?[{label:"",to:""}]:void 0},messages:{validateFailed:i18n("710b20ff1d85f7965bfaac44ae26344e")}}),{name:"children",$ref:"links",visibleOn:"this.children",label:i18n("02f925f6a5136c2b65b5da8d1216b5b8"),addButtonText:i18n("59ad4734917af165482774de9c2d50cc")}]}},$P.events=[{eventName:"click",eventLabel:i18n("18eae9f567a9c425bf59147a2601ee6a"),description:i18n("12b91237057ca7d81d50cca9873c8267"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"change",eventLabel:i18n("0a974408aab362095e939e5364315971"),description:i18n("4b5f4893cf06a9d9ea5b8486bef87c26"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")}}}]},{eventName:"toggled",eventLabel:i18n("9b317a5d43f72026b0c0699b1d596436"),description:i18n("9ef3c85c39e1e686f6b8c58292352ce1"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")}}}]},{eventName:"collapsed",eventLabel:i18n("afce1df2e30a4674f507292d642fe270"),description:i18n("4015091668f286adf085d60a040f89a1"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")}}}]},{eventName:"loaded",eventLabel:i18n("2631c12c40aa18fff4c6a2793f03f95b"),description:i18n("26a92da0738fed6a6178be565cfb3a59"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")}}}]}],$P.actions=[{actionType:"updateItems",actionLabel:i18n("67d8dc76a8c8a3f0f52232969d72e8bb"),description:i18n("12fbc0729d69e4243c4818093e96de8c"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},"更新",buildLinkActionDesc(nme.manager,tme),i18n("7419d6bab78d959d5c3b7a38f9888258"))}},__assign$3({actionType:"collapse",actionLabel:i18n("afce1df2e30a4674f507292d642fe270"),description:i18n("ee621e1f1429f1150a69bd02eecf6964")},getActionCommonProps("collapse")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload"))],$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("switch",{name:"stacked",label:i18n("e0e2b0cf2a3c8379b1d9144b10b3824d"),pipeIn:function(ame){return!ame},pipeOut:function(ame){return!ame}}),getSchemaTpl("switch",{name:"mode",label:[{children:React__default.createElement(TooltipWrapper$1,{tooltipClassName:"ae-nav-tooltip-wrapper",trigger:"hover",rootClose:!0,placement:"top",tooltipTheme:"dark",style:{fontSize:"12px"},tooltip:{children:function(){return React__default.createElement("div",null,React__default.createElement("span",null,i18n("8dd27bbe64ec245ce449caab5cf7f12b")),React__default.createElement("div",{className:"nav-mode-gif"}))}}},React__default.createElement("span",null,i18n("154a7ec36c43427f73705ae834967703")))}],visibleOn:"this.stacked",pipeIn:function(ame){return ame==="float"},pipeOut:function(ame){return ame?"float":"inline"}}),getSchemaTpl("switch",{label:tipedLabel(i18n("47b4e22880eb59ce9989b8419222e88a"),i18n("9dcb6b749d6682f1ac51b2dcdefd3208")),visibleOn:'this.stacked && this.mode !== "float"',name:"accordion"}),{type:"input-number",name:"defaultOpenLevel",label:tipedLabel(i18n("49a84da9b39148af54903ba4c6ed257f"),i18n("d4b70ea3a756ec4d06c8ecb2f27330ab")),visibleOn:'this.stacked && this.mode !== "float"',mode:"horizontal",labelAlign:"left"},{type:"input-number",name:"level",label:tipedLabel(i18n("96198d14846a941a60824bd6ebda4d9e"),i18n("cac013d011fe1ac71c3b9f0bd0594d65")),mode:"horizontal",labelAlign:"left"}]},{title:i18n("7419d6bab78d959d5c3b7a38f9888258"),body:[getSchemaTpl("navControl"),getSchemaTpl("nav-badge",{visibleOn:"this.links"})]},{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("visible"),getSchemaTpl("hidden")]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",getSchemaTpl("style:common",["layout"]))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="NavPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(NavPlugin);registerFilter("appTranslate",function(x_){return translateSchema(x_)});var AnchorNavPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="anchor-nav",$P.$schema="/schemas/AnchorNavSchema.json",$P.name=i18n("bede211909a1022b13e9728ed162b77e"),$P.isBaseComponent=!0,$P.description=i18n("f6da8aa86fa3e399da95dab399a67985"),$P.docLink="/amis/zh-CN/components/anchor-nav",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-link",$P.pluginIcon="anchor-nav-plugin",$P.scaffold={type:"anchor-nav",links:[{title:i18n("5879dec0aea52871e0ae6969893a315b"),href:"1",body:[{type:"tpl",tpl:i18n("ce08bc4247c040bac13155befc7c1638"),wrapperComponent:"",inline:!1}]},{title:i18n("d89a42cb938819f67172ea64037c19fe"),href:"2",body:[{type:"tpl",tpl:i18n("96f05e63c6f606925636d6810167e7ea"),wrapperComponent:"",inline:!1}]},{title:i18n("31327b9041b825a0b455b3ff9ddd3909"),href:"3",body:[{type:"tpl",tpl:i18n("68284dd430993f495a6f2254ae5480ae"),wrapperComponent:"",inline:!1}]}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("bede211909a1022b13e9728ed162b77e"),$P.panelJustify=!0,$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),id:"properties-basic",body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("combo-container",{type:"combo",name:"links",label:i18n("9ad515106f02f3909974b75d22625b0d"),mode:"normal",multiple:!0,draggable:!0,minLength:1,addButtonText:i18n("40c6e9ed3d9949a326f5a216d936324d"),deleteBtn:{icon:"fa fa-trash"},items:[getSchemaTpl("anchorTitle")],scaffold:{title:i18n("6be15e9949e4be7fc485e1eaae472942"),href:"",body:[{type:"tpl",tpl:i18n("c624c875ea37f790665d0cae8959d4e2"),wrapperComponent:"",inline:!1}]},draggableTip:"",onChange:function(tme,ame,nme,rme){var ime=rme.data.active,ome=tme.findIndex(function(lme){return lme.href===ime})>-1;rme.setValues({active:ome?ime:tme[0].href})},pipeOut:function(tme){var ame=tme.map(function(rme){return rme.href}),nme=function(rme,ime){for(var ome=1;ome<=ime;ome++)if(!rme.includes(String(ome)))return String(ome)};return tme.forEach(function(rme){if(!rme.href){var ime=nme(ame,tme.length);rme.href=ime,rme.title=i18n("6be15e9949e4be7fc485e1eaae472942").concat(ime),rme.body[0].tpl=i18n("c624c875ea37f790665d0cae8959d4e2").concat(ime)}}),tme}}),{name:"active",type:"select",label:i18n("39f4fbc5b5ba681f7e8c4d4a4ddb3e2f"),source:"${links|appTranslate}",labelField:"title",valueField:"href",value:"1"}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),id:"appearance-basic",body:[{type:"button-group-select",name:"direction",label:i18n("9959b2ad2d4f75f7a6be46872642df6d"),value:"vertical",options:[{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"vertical"}]}]},getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"linkClassName",label:i18n("056f2d7df6e6b64625c3a2d27ce07b05")}),getSchemaTpl("className",{name:"sectionClassName",label:i18n("696754a8b2b23e30b11187303d1238f5")})]})])}])],$P.patchContainers=["anchor-nav.body"],$P.vRendererConfig={regions:{body:{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",renderMethodOverride:function(tme,ame){return function(){for(var nme=[],rme=0;rme<arguments.length;rme++)nme[rme]=arguments[rme];var ime=this.props.$$editor,ome=this.super.apply(this,__spreadArray([],__read$3(nme),!1));return ime&&!this.props.children?ame(this,ome,tme,ime,ime.plugin.manager):ome}}}},panelTitle:i18n("33be689a0f0de129ce37f7a96052002e"),panelJustify:!0,panelBody:[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("anchorNavTitle")]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4434b33a8731a73613ba5fa1eb984efb"),body:[getSchemaTpl("className")]}])]}])]},$P.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},$P.sectionWrapperResolve=function(tme){return tme.parentElement},$P.overrides={render:function(){var tme=this,ame=this.super();if(!this.renderSection&&this.props.$$editor&&ame){var nme=this.props.links;return mapReactElement(ame,function(rme){var ime,ome;if(rme.type===AnchorNavSection&&rme.props.$$id){var lme=rme.props.$$id,sme=findIndex$3(nme,function(fme){return fme.$$id===lme}),cme=tme.props.$$editor,dme=cme.plugin;if(~sme){var ume=(ome=(ime=dme.vRendererConfig)===null||ime===void 0?void 0:ime.regions)===null||ome===void 0?void 0:ome.body;return ume?React__default.cloneElement(rme,{children:React__default.createElement(VRenderer,{key:lme,type:cme.type,plugin:cme.plugin,renderer:cme.renderer,$schema:"/schemas/SectionSchema.json",hostId:cme.id,memberIndex:sme,name:"".concat(rme.props.title||"锚点内容".concat(sme+1)),id:lme,draggable:!1,removable:!1,wrapperResolve:dme.sectionWrapperResolve,schemaPath:"".concat(cme.schemaPath,"/anchor-nav/").concat(sme),path:"".concat(tme.props.$path,"/").concat(sme),data:tme.props.data},React__default.createElement(RegionWrapper,{key:ume.key,preferTag:ume.preferTag,name:ume.key,label:ume.label,regionConfig:ume,placeholder:ume.placeholder,editorStore:dme.manager.store,manager:dme.manager,children:rme.props.children,wrapperResolve:ume.wrapperResolve,rendererName:cme.renderer.name}))}):rme}}return rme})}return ame}},$P}return eme.id="AnchorNavPlugin",eme}(BasePlugin);registerEditorPlugin(AnchorNavPlugin);var TooltipWrapperPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tooltip-wrapper",$P.$schema="/schemas/TooltipWrapperSchema.json",$P.isBaseComponent=!0,$P.name=i18n("b624985146c759cfeb1be80325eccd65"),$P.description=i18n("33813749a95477897085e2435acc16b6"),$P.searchKeywords=i18n("dd438f6fb09d6223fd95df16383f0f44"),$P.docLink="/amis/zh-CN/components/tooltip",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-comment-alt",$P.pluginIcon="tooltip-wrapper-plugin",$P.scaffold={type:"tooltip-wrapper",tooltip:i18n("9b14c9051067bef2dd9a15683201dd18"),body:[{type:"tpl",wrapperComponent:"",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014")}],enterable:!0,showArrow:!0,offset:[0,0]},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{className:"p-1 mr-3 border-2 border-solid border-indigo-400"}),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P.panelTitle=$P.name,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("title",{label:i18n("dc19704991f1476fa4dcbb80c50bedd6")}),getSchemaTpl("tooltip"),{name:"trigger",type:"select",label:tipedLabel(i18n("159dbc2fafd57b9d3652f16659b1b519"),i18n("ab97cef55407efa11f79211e17cb2b4b")),multiple:!0,value:["hover"],pipeIn:function(ame){return Array.isArray(ame)?ame.join(","):[]},pipeOut:function(ame){return ame&&ame.length?ame.split(","):void 0},options:[{label:i18n("728c7cdfa431821d291b5108394ec65a"),value:"hover"},{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"click"}]},{type:"button-group-select",name:"placement",label:i18n("d586324c6d6b45cb78a4172d836dab3e"),size:"sm",className:"ae-buttonGroupSelect--justify",options:[{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}],pipeIn:defaultValue("top")},{type:"button-group-select",name:"tooltipTheme",label:i18n("b47707f0e916e3e3f4ba885bc2cf2c11"),size:"sm",className:"ae-buttonGroupSelect--justify",options:[{label:i18n("a32b3b848eee6929634dfc9a9d8bcdb1"),value:"light",icon:"far fa-sun"},{label:i18n("adb7e5312abdb9a44297e48d63815fa3"),value:"dark",icon:"far fa-moon"}],pipeIn:defaultValue("light")},{name:"inline",label:i18n("0de826c66ae3fe8043e9a39b35616ee6"),type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:i18n("4583d3453c31cd3ff068c1358d8e7f1c"),type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"}]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[{name:"wrapperComponent",label:i18n("a823cfa70cfa46c788e1eedae043f6e5"),type:"input-text",options:["article","aside","code","div","footer","header","p","section"],validations:{isAlphanumeric:!0,matchRegexp:"/^(?!.*script).*$/"},validationErrors:{isAlpha:i18n("f7d64e5e79994c3c8853f2608d7b2d25"),matchRegexp:i18n("f7d64e5e79994c3c8853f2608d7b2d25")},validateOnChange:!1},{type:"input-group",label:tipedLabel(i18n("8e290c31bc0b4f76edbd58c3575b8420"),i18n("03c87fc8d49f865f0c2895d9ef3fe352")),body:[{type:"input-number",name:"offset",suffix:"px",pipeIn:function(ame){return Array.isArray(ame)&&ame[0]||0},pipeOut:function(ame,nme,rme){var ime;return[ame,((ime=rme.offset)===null||ime===void 0?void 0:ime[1])||0]}},{type:"input-number",name:"offset",suffix:"px",pipeIn:function(ame){return Array.isArray(ame)&&ame[1]||0},pipeOut:function(ame,nme,rme){var ime;return[((ime=rme.offset)===null||ime===void 0?void 0:ime[0])||0,ame]}}]},{type:"switch",label:tipedLabel(i18n("4e3e1e12e701890f4461808cc8f9d407"),i18n("9d6246f57f6924410b0c68f2172420f9")),name:"enterable",inputClassName:"is-inline"},{type:"switch",label:tipedLabel(i18n("90919000a708f8d66b7591e21b8e33f1"),i18n("ed81f127f3b2aaff73a4f4dd5968fdcb")),name:"showArrow",inputClassName:"is-inline"},{type:"input-group",name:"mouseEnterDelay",label:i18n("b60e5222037939812dabb7da9979c27d"),body:[{type:"input-number",min:0,step:100,name:"mouseEnterDelay",pipeIn:defaultValue(0)},{type:"tpl",addOnclassName:"border-0 bg-none",tpl:"ms"}]},{type:"input-group",name:"mouseLeaveDelay",label:i18n("82bb338503938f2da52e91f7244a34a2"),body:[{label:i18n("82bb338503938f2da52e91f7244a34a2"),type:"input-number",min:0,step:100,name:"mouseLeaveDelay",pipeIn:defaultValue(0)},{type:"tpl",addOnclassName:"border-0 bg-none",tpl:"ms"}]}]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{layoutExtra:[getSchemaTpl("theme:size",{label:i18n("c8339fd2a85af4ba66084d28df808de4"),name:"themeCss.baseControlClassName.size:default"})],extra:[getSchemaTpl("theme:base",{classname:"tooltipControlClassName",title:i18n("e1445cd3c4710c8abf7c1b3b1ce060d8")})]})),!1))}])]},$P}return eme.id="TooltipWrapperPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(TooltipWrapperPlugin);var AlertPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="alert",$P.$schema="/schemas/AlertSchema.json",$P.name=i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),$P.isBaseComponent=!0,$P.description=i18n("4be3194e93cdd2899d06b499c184195b"),$P.docLink="/amis/zh-CN/components/alert",$P.icon="fa fa-exclamation-circle",$P.pluginIcon="tooltip-plugin",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.scaffold={type:"alert",body:{type:"tpl",tpl:i18n("6f2b01db04cbf7e460b5c6f4e37a5e76"),wrapperComponent:"",inline:!1},level:"info"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{className:"text-left",showCloseButton:!0}),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("6f2b01db04cbf7e460b5c6f4e37a5e76")}],$P.notRenderFormZone=!0,$P.panelTitle=i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("226b0912184333c81babf2f1894ec0c1"),name:"level",type:"select",options:[{label:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),value:"info"},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"success"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"warning"},{label:i18n("e2e27a87257599f83c817c43e724b6aa"),value:"danger"}]},getSchemaTpl("label",{name:"title"}),getSchemaTpl("switch",{label:i18n("cbda486dbec5bdacb593294e240c5e63"),name:"showCloseButton"}),{type:"ae-switch-more",mode:"normal",name:"showIcon",label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),hiddenOnDefault:!tme.schema.icon,formType:"extend",form:{body:[getSchemaTpl("icon",{label:i18n("7372dc9f39a173dd0c75a185373245b1")})]}}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1})])}])},$P}return eme.id="AlertPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(AlertPlugin);var WizardPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="wizard",$P.$schema="/schemas/WizardSchema.json",$P.name=i18n("5acec91385a3b9093e3c803f6b0d869a"),$P.isBaseComponent=!0,$P.description=i18n("c8c0339a6f9e105cfef45b76b788b635"),$P.docLink="/amis/zh-CN/components/wizard",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-list-ol",$P.pluginIcon="wizard-plugin",$P.scaffold={type:"wizard",steps:[{title:i18n("863a8583132d087e57aebb7d89e18a50"),body:[{type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"var1"}]},{title:i18n("9757f2c59c17e9aea46e0c8adb69597e"),body:[{type:"input-text",label:i18n("37dd6f28ffb87d8907a286e0ef4dc7fe"),name:"var2"}]}]},$P.previewSchema={type:"wizard",className:"text-left m-b-none",steps:[{title:i18n("863a8583132d087e57aebb7d89e18a50"),body:[{type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"var1"}]},{title:i18n("9757f2c59c17e9aea46e0c8adb69597e"),body:[]}]},$P.events=[{eventName:"inited",eventLabel:i18n("f36616e35765ac3d5c9c7646e50a305d"),description:i18n("48c43999cf3908d9f5100a6d5f0b4404"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]},{eventName:"finished",eventLabel:i18n("155149d24d20197bc0836bededf63abf"),description:i18n("d384a3c931bdf315e4760c9fc5980e6d"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"stepChange",eventLabel:i18n("5be9e21eb0797c9faa053eb0237c36f9"),description:i18n("d837ddaacb39a13806590da335e89397"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{step:{type:"string",title:i18n("02f706d7510e68c96aa073852d90ec20")}}}}}]},{eventName:"change",eventLabel:i18n("b2a5322c8dbc0d8343315cafbd39b7ce"),description:i18n("d6fc04abf4889a864bea240d6b67963a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3")}}}]},{eventName:"submitSucc",eventLabel:i18n("23b62e9cbc868e024b80d2e3fad80ac7"),description:i18n("33c627bce8015c50152941a5b6fada32"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{result:{type:"object",title:i18n("18344d8a27aa678e401d5e575d4efe99")}}}}}]},{eventName:"submitFail",eventLabel:i18n("f5d008dea7d2e953195a5588dea3c8e4"),description:i18n("574f27f7223c86545a7724d18da96651"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{error:{type:"object",title:i18n("17aa713bc661f98e585ec3725d6d4f0d")}}}}}]},{eventName:"stepSubmitSucc",eventLabel:i18n("8a427977d8135a019e4f1056120bfad2"),description:i18n("d65dcca33a0118a0a5ce343264192ea6")},{eventName:"stepSubmitFail",eventLabel:i18n("5d7d91d9da162ee8fddd4d331d1434b5"),description:i18n("1c11d38e7ecf2facbf82f772d9222d45"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{error:{type:"object",title:i18n("357954d848a9e2f12208673b3906a972")}}}}}]}],$P.actions=[__assign$3({actionType:"submit",actionLabel:i18n("d6c21651c32c63c8d61c85944c2c91af"),description:i18n("75e3dc4be4ae7aca7e1cebc13f7e486a")},getActionCommonProps("submit")),{actionType:"stepSubmit",actionLabel:i18n("0c3005b490ef428660ca2265a714bdbb"),description:i18n("832efcc5c30746b84b910cde8630d491"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("939d5345ad4345dbaabe14798f6ac0f1"),buildLinkActionDesc(nme.manager,tme),"当前步骤数据")}},{actionType:"prev",actionLabel:i18n("eeb6908870e058bc23d52c1e405a054e"),description:i18n("fc5dbc5789e158384f634eb8ff466b46"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},(tme==null?void 0:tme.__rendererName)==="carousel"?"滚动":null,(tme==null?void 0:tme.__rendererName)==="wizard"?"返回":null,buildLinkActionDesc(nme.manager,tme),(tme==null?void 0:tme.__rendererName)==="carousel"?"至上一张":null,(tme==null?void 0:tme.__rendererName)==="wizard"?"前一步":null)}},{actionType:"next",actionLabel:i18n("38ce27d84639f3a6e07c00b3b4995c0e"),description:i18n("832efcc5c30746b84b910cde8630d491"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},(tme==null?void 0:tme.__rendererName)==="carousel"?"滚动":null,(tme==null?void 0:tme.__rendererName)==="wizard"?i18n("939d5345ad4345dbaabe14798f6ac0f1"):null,buildLinkActionDesc(nme.manager,tme),(tme==null?void 0:tme.__rendererName)==="carousel"?"至下一张":null,(tme==null?void 0:tme.__rendererName)==="wizard"?"当前步骤数据":null)}},{actionType:"goto-step",actionLabel:i18n("5fa57cab26a9d4e659c2e497018729ef"),description:i18n("fce22163929e8191b7de43699316f2a0"),innerArgs:["step"],descDetail:function(tme,ame,nme){var rme;return React__default.createElement("div",{className:"action-desc"},"切换",buildLinkActionDesc(nme.manager,tme),"到第",React__default.createElement("span",{className:"variable-left variable-right"},(rme=tme==null?void 0:tme.args)===null||rme===void 0?void 0:rme.step),i18n("4a0ff5106d129883b446a29b1dac6f47"))},schema:getArgsWrapper([getSchemaTpl("formulaControl",{name:"step",label:i18n("78ada959bf5bdd6c70ee411c4cf23601"),variables:"${variables}",size:"lg",mode:"horizontal",required:!0})])},__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("5acec91385a3b9093e3c803f6b0d869a"),$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"steps",label:i18n("098521c027a49fba5eb7f35430a6a9da"),type:"combo",multiple:!0,multiLine:!0,addButtonText:i18n("c5538d5c74235d2988e51e632c4eed0b"),scaffold:{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),items:[{type:"input-text",name:"var1",label:i18n("97d07614380da93d257f9fbf81aa56fb")}]},items:[{name:"title",type:ame?"input-text-i18n":"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),pipeIn:function(nme,rme){return nme||rme.label}},{type:"fieldSet",title:i18n("dda36edbd4626e7fc868c14f9aa1556a"),collapsed:!0,collapsable:!0,className:"fieldset m-b-none",body:[{name:"mode",label:i18n("1fdadb49bcabfdc36a4a9e020f597f4d"),type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"normal"},{label:i18n("3720b9ef8053b7b8a54c7d8ace051912"),value:"horizontal"},{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"}]},getSchemaTpl("horizontal",{visibleOn:'this.mode == "horizontal"'}),getSchemaTpl("api",{label:i18n("ff7cc75cc43c25c823d05d87cb8190b0"),description:i18n("1fd41e410930ac58e748f7704c3a05f3")}),getSchemaTpl("switch",{label:i18n("dd1b9892e274b16540aeda961437870d"),name:"asyncApi",visibleOn:"this.api",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(nme){return nme!=null},pipeOut:function(nme){return nme?"":void 0}}),getSchemaTpl("api",{name:"asyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.asyncApi != null",description:i18n("0705e4aba9f22ae70d906e2201a4a68d")}),{type:"divider"},getSchemaTpl("api",{name:"initApi",label:i18n("b4bc91701b86fe8543d649e97daea602"),description:i18n("258c437ef67e5ef12f3a766ff1802f85")}),getSchemaTpl("switch",{label:i18n("e8c46074d8432532cac25eba56bca354"),name:"initAsyncApi",visibleOn:"this.initApi",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(nme){return nme!=null},pipeOut:function(nme){return nme?"":void 0}}),getSchemaTpl("api",{name:"initAsyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.initAsyncApi != null",description:i18n("d2af24c0f76cf325f1c8fa939576c379")}),getSchemaTpl("initFetch"),{label:i18n("938b484df1447d8f01f96e45125eb031"),type:"input-text",name:"jumpableOn",description:i18n("20022725ac2c53869f7af6646ca4ba29")}]}]},{type:"input-text",name:"startStep",label:i18n("d4b8306441c00f01d4f044b3802c4266"),description:i18n("37c0c041a0ad487d23c9f42c29f6d5e1")}]},{title:i18n("54ea89b497ec3bb319c68844dfa3687f"),body:[getSchemaTpl("api",{name:"initApi",label:i18n("b4bc91701b86fe8543d649e97daea602"),description:i18n("076bd7c0adfc4f5d2abde6b309d9f53b")}),getSchemaTpl("switch",{label:i18n("e8c46074d8432532cac25eba56bca354"),name:"initAsyncApi",visibleOn:"this.initApi",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(nme){return nme!=null},pipeOut:function(nme){return nme?"":void 0}}),getSchemaTpl("api",{name:"initAsyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.initAsyncApi != null",description:i18n("d2af24c0f76cf325f1c8fa939576c379")}),{name:"initFetch",type:"radios",label:i18n("0951dad1723aa1191ce1a2e96db76051"),inline:!0,onChange:function(){},options:[{label:i18n("0a60ac8f02ccd2cf723f927284877851"),value:!0},{label:i18n("c9744f45e76d885ae1c74d4f4a934b2e"),value:!1},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:""}]},{name:"initFetchOn",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"",className:"m-t-n-sm"},{type:"divider"},getSchemaTpl("api",{label:i18n("ff7cc75cc43c25c823d05d87cb8190b0"),description:i18n("dbb19fea1965f7ef88cf1d1e0450c0f4")}),getSchemaTpl("switch",{label:i18n("dd1b9892e274b16540aeda961437870d"),name:"asyncApi",visibleOn:"this.api",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(nme){return nme!=null},pipeOut:function(nme){return nme?"":void 0}}),getSchemaTpl("api",{name:"asyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.asyncApi != null",description:i18n("0705e4aba9f22ae70d906e2201a4a68d")}),{type:"divider"},getSchemaTpl("loadingConfig",{},{context:tme})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{name:"mode",label:i18n("1fdadb49bcabfdc36a4a9e020f597f4d"),type:"button-group-select",size:"sm",mode:"inline",className:"w-full",value:"horizontal",options:[{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"},{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"vertical"}]},getSchemaTpl("actionPrevLabel"),getSchemaTpl("actionNextLabel"),getSchemaTpl("actionNextSaveLabel"),getSchemaTpl("actionFinishLabel"),getSchemaTpl("className"),getSchemaTpl("className",{name:"actionClassName",label:i18n("89d19c1fda4906bd7a336895835ce20e")})]},{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[getSchemaTpl("ref"),getSchemaTpl("name"),getSchemaTpl("reload"),{label:i18n("7653297de32f34fdec0dd0653aebf358"),name:"redirect",type:"input-text",description:i18n("6d00e21637c382cbd4d949b7735a2e41")},getSchemaTpl("visible")]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P.patchContainers=["steps.body"],$P.vRendererConfig={regions:{body:{key:"body",label:i18n("3673ed1983c1be059126e3715fc34922"),wrapperResolve:function(tme){return tme}},actions:{label:i18n("c8caf94205105bac5833ab31cc2129d7"),key:"actions",preferTag:i18n("fa966345577ba81af19408f203db968f"),wrapperResolve:function(tme){return tme}}},panelTitle:i18n("52b36576f88c31ed3971ca4d1fccd46f"),panelBodyCreator:function(tme){return getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("title",{pipeIn:function(ame,nme){return ame||nme.label}}),getSchemaTpl("api",{label:i18n("ff7cc75cc43c25c823d05d87cb8190b0"),description:i18n("1fd41e410930ac58e748f7704c3a05f3")}),getSchemaTpl("switch",{label:i18n("dd1b9892e274b16540aeda961437870d"),name:"asyncApi",visibleOn:"this.api",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(ame){return ame!=null},pipeOut:function(ame){return ame?"":void 0}}),getSchemaTpl("api",{name:"asyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.asyncApi != null",description:i18n("0705e4aba9f22ae70d906e2201a4a68d")}),{type:"divider"},getSchemaTpl("api",{name:"initApi",label:i18n("b4bc91701b86fe8543d649e97daea602"),description:i18n("258c437ef67e5ef12f3a766ff1802f85")}),getSchemaTpl("switch",{label:i18n("e8c46074d8432532cac25eba56bca354"),name:"initAsyncApi",visibleOn:"this.initApi",labelRemark:{trigger:"click",rootClose:!0,title:i18n("e638bd32b4342dfc7a15990a79f588ae"),content:i18n("6df230c8f18709575777172f0a9a588c"),placement:"left"},pipeIn:function(ame){return ame!=null},pipeOut:function(ame){return ame?"":void 0}}),getSchemaTpl("api",{name:"initAsyncApi",label:i18n("daf3aec137ac74941adb1b1d3e3dd1d3"),visibleOn:"this.initAsyncApi != null",description:i18n("d2af24c0f76cf325f1c8fa939576c379")}),getSchemaTpl("initFetch")]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{name:"mode",label:i18n("1fdadb49bcabfdc36a4a9e020f597f4d"),type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"normal"},{label:i18n("3720b9ef8053b7b8a54c7d8ace051912"),value:"horizontal"},{label:i18n("2dd25b8c21efbfee4a198787810d65d8"),value:"inline"}]},getSchemaTpl("horizontal",{visibleOn:'this.mode == "horizontal"'})]},{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[{label:i18n("938b484df1447d8f01f96e45125eb031"),type:"input-text",name:"jumpableOn",description:i18n("20022725ac2c53869f7af6646ca4ba29")}]}])}},$P.wizardWrapperResolve=function(tme){return[].slice.call(tme.querySelectorAll('[role="wizard-body"],[role="wizard-footer"]'))},$P.overrides={renderWizard:function(){var tme=this,ame=this.props.$$editor,nme=this.props.steps,rme=this.state.currentStep,ime=this.super();if(!ame||!(nme!=null&&nme[rme-1]))return ime;var ome=rme-1,lme=nme[ome],sme=lme.$$id,cme=ame.plugin;return mapReactElement(ime,function(dme){return/Wizard-step\b/.test(dme.props.className)?React__default.createElement(VRenderer,{key:sme,type:ame.type,plugin:ame.plugin,renderer:ame.renderer,$schema:"/schemas/WizardStepSchema.json",hostId:ame.id,memberIndex:ome,name:lme.title||i18n("52b36576f88c31ed3971ca4d1fccd46f").concat(ome+1),id:sme,draggable:!1,wrapperResolve:cme.wizardWrapperResolve,schemaPath:"".concat(ame.schemaPath,"/steps/").concat(ome),path:"".concat(tme.props.$path,"/").concat(ome),data:tme.props.data},mapReactElement(dme,function(ume,fme){var pme,hme,bme;if(!((pme=ume.props.schema)===null||pme===void 0)&&pme.body&&ume.props.schema.$$id){var mme=(bme=(hme=cme.vRendererConfig)===null||hme===void 0?void 0:hme.regions)===null||bme===void 0?void 0:bme.body;if(!mme)return ume;var vme=__assign$3({},ume.props.schema);return delete vme.$$id,React__default.createElement(RegionWrapper,{key:mme.key,preferTag:mme.preferTag,name:mme.key,label:mme.label,regionConfig:mme,placeholder:mme.placeholder,editorStore:cme.manager.store,manager:cme.manager,children:React__default.cloneElement(ume,{schema:vme}),wrapperResolve:mme.wrapperResolve,rendererName:ame.renderer.name})}return ume})):dme})},renderFooter:function(){var tme,ame,nme=this.props.$$editor,rme=this.props.steps,ime=this.state.currentStep,ome=this.super();if(!nme||!(rme!=null&&rme[ime-1]))return ome;var lme=nme.plugin,sme=(ame=(tme=lme.vRendererConfig)===null||tme===void 0?void 0:tme.regions)===null||ame===void 0?void 0:ame.actions;return sme?React__default.createElement(RegionWrapper,{key:sme.key,preferTag:sme.preferTag,name:sme.key,label:sme.label,regionConfig:sme,placeholder:sme.placeholder,editorStore:lme.manager.store,manager:lme.manager,children:ome,wrapperResolve:sme.wrapperResolve,rendererName:nme.renderer.name}):ome}},$P}return eme.prototype.buildEditorToolbar=function($P,tme){if($P.info.plugin===this&&$P.info.renderer.name===this.rendererName&&!$P.info.hostId){var ame=$P.node;tme.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:i18n("22c2aa6b59ab30c88fd84e8e5b3c4ad7"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.gotoStep){var rme=nme.state.currentStep;nme.gotoStep(rme-1)}}}),tme.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:i18n("7b91646d808737e7138ad8f32a3b6cde"),onClick:function(){var nme=ame.getComponent();if(nme!=null&&nme.gotoStep){var rme=nme.state.currentStep;nme.gotoStep(rme+1)}}})}},eme.prototype.filterProps=function($P){return $P.affixFooter=!1,$P},eme.prototype.rendererBeforeDispatchEvent=function($P,tme,ame){if(tme==="inited"){var nme=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),rme=__assign$3({$id:"wizardInitedData"},jsonToJsonSchema(ame.responseData));nme==null||nme.removeSchema(rme.$id),nme==null||nme.addSchema(rme)}},eme.id="WizardPlugin",eme}(BasePlugin);registerEditorPlugin(WizardPlugin);var ROW_HEIGHT=42;function findMaxTrChildren(x_){for(var eme=0,$P=0,tme=0;tme<x_.length;tme++){var ame=(x_[tme].tds||[]).length;ame>eme&&($P=tme,eme=ame)}return $P}var TableViewEditor=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.preventTableClick=!1,tme.tableViewWrapperRef=React__default.createRef(),tme.store=tme.props.manager.store;var ame=tme.props.schema.trs||[];if(ame.length){var nme=ame.map(function(lme){return lme.$$id}),rme=findMaxTrChildren(ame);tme.maxChildTrIndex=rme;var ime=ame[rme].tds||[],ome=ime.map(function(lme){return lme.$$id});tme.state={trIds:nme,tdIds:ome,displayMergeCell:!1}}else tme.state={trIds:[],tdIds:[],displayMergeCell:!1};return tme.listenTdSelection(),tme}return eme.prototype.componentDidMount=function(){this.syncLinePos(),this.listenTdSelection()},eme.prototype.componentWillUnmount=function(){this.removeListenTdSelection()},eme.prototype.syncLineState=function(){var $P=this,tme=this.props.schema.trs||[];if(tme.length){var ame=tme.map(function(ome){return ome.$$id}),nme=findMaxTrChildren(tme);this.maxChildTrIndex=nme;var rme=tme[nme].tds||[],ime=rme.map(function(ome){return ome.$$id});this.setState({trIds:ame,tdIds:ime},function(){$P.syncLinePos()})}},eme.prototype.removeListenTdSelection=function(){var $P=this.tableViewWrapperRef.current;if($P){var tme=$P.querySelector("tbody");tme.removeEventListener("mousedown",this.handleCellMouseDown),tme.removeEventListener("mousemove",this.handleCellMouseMove),tme.removeEventListener("mouseup",this.handleCellMouseUp),tme.removeEventListener("click",this.handleCellMouseClick)}},eme.prototype.listenTdSelection=function(){var $P=this.tableViewWrapperRef.current;if($P){var tme=$P.querySelector("tbody");tme.addEventListener("mousedown",this.handleCellMouseDown),tme.addEventListener("mousemove",this.handleCellMouseMove),tme.addEventListener("mouseup",this.handleCellMouseUp),tme.addEventListener("click",this.handleCellMouseClick)}},eme.prototype.handleCellMouseDown=function($P){var tme,ame=$P.target;if(!(ame&&ame.tagName!=="TD")){this.removeAllSelectionMark(),this.setState({displayMergeCell:!1});var nme=ame.getAttribute("data-editor-id");this.isSelectionCell=!0,this.selectedCell=(tme={},tme[nme]=JSONGetById(this.props.schema,nme),tme)}},eme.prototype.handleCellMouseMove=function($P){if(this.isSelectionCell){this.preventTableClick=!0;var tme=$P.target;if(tme&&tme.tagName!=="TD")return;var ame=tme.getAttribute("data-editor-id");ame in this.selectedCell||(this.selectedCell[ame]=JSONGetById(this.props.schema,ame),this.markSelectingCell(),this.setState({displayMergeCell:!0}))}},eme.prototype.findFirstAndLastCell=function(){var $P,tme,ame=[];for(var nme in this.selectedCell)ame.push(this.selectedCell[nme]);ame.length||console.warn(i18n("9efb0ce5a4510ef29345b6edb3e58bc2"));var rme=ame[0].$$col,ime=ame[0].$$row,ome=0,lme=0,sme=null,cme=null;try{for(var dme=__values$1(ame),ume=dme.next();!ume.done;ume=dme.next()){var fme=ume.value,pme=fme.$$col+(fme.colspan||1)-1,hme=fme.$$row+(fme.rowspan||1)-1;pme>=ome&&(ome=pme),hme>=lme&&(lme=hme),fme.$$col<=rme&&(rme=fme.$$col),fme.$$row<=ime&&(ime=fme.$$row),fme.$$col===rme&&fme.$$row===ime&&(sme=fme)}}catch(bme){$P={error:bme}}finally{try{ume&&!ume.done&&(tme=dme.return)&&tme.call(dme)}finally{if($P)throw $P.error}}return{minRow:ime,minCol:rme,maxRow:lme,maxCol:ome,firstCell:sme,lastCell:cme}},eme.prototype.markSelectingCell=function(){var $P,tme,ame,nme,rme=this,ime=this.findFirstAndLastCell(),ome=ime.minRow,lme=ime.minCol,sme=ime.maxRow,cme=ime.maxCol;try{for(var dme=__values$1(this.props.schema.trs),ume=dme.next();!ume.done;ume=dme.next()){var fme=ume.value;try{for(var pme=(ame=void 0,__values$1(fme.tds)),hme=pme.next();!hme.done;hme=pme.next()){var bme=hme.value,mme=bme;mme.$$col>=lme&&mme.$$col<=cme&&mme.$$row>=ome&&mme.$$row<=sme&&(mme.$$id in this.selectedCell||(this.selectedCell[mme.$$id]=bme))}}catch(yme){ame={error:yme}}finally{try{hme&&!hme.done&&(nme=pme.return)&&nme.call(pme)}finally{if(ame)throw ame.error}}}}catch(yme){$P={error:yme}}finally{try{ume&&!ume.done&&(tme=dme.return)&&tme.call(dme)}finally{if($P)throw $P.error}}var vme=this.tableViewWrapperRef.current;if(vme){var gme=vme.querySelectorAll("td");gme.forEach(function(yme){var _me=yme.getAttribute("data-editor-id");_me in rme.selectedCell&&yme.setAttribute("data-selected","1")})}},eme.prototype.removeAllSelectionMark=function(){var $P=this.tableViewWrapperRef.current;if($P){var tme=$P.querySelectorAll("td");tme.forEach(function(ame){ame.removeAttribute("data-selected")})}},eme.prototype.handleCellMouseUp=function($P){this.isSelectionCell=!1},eme.prototype.handleCellMouseClick=function($P){this.preventTableClick&&($P.stopPropagation(),$P.preventDefault(),this.preventTableClick=!1)},eme.prototype.handleMergeCell=function(){var $P=this.findFirstAndLastCell(),tme=$P.firstCell,ame=$P.minRow,nme=$P.minCol,rme=$P.maxRow,ime=$P.maxCol;if(!tme){console.warn(i18n("3ce57bd19e37d2b27145dc6fcfff3520"));return}var ome=tme.$$id,lme=ime-nme+1,sme=rme-ame+1;tme.colspan=lme,tme.rowspan=sme;var cme=[];for(var dme in this.selectedCell)cme.push(this.selectedCell[dme]);for(var ume=cme.filter(function(mme){return mme.$$id!==ome}).map(function(mme){return mme.$$id}),fme=this.props.schema.trs,pme=fme.length;pme--;){var hme=fme[pme];hme.tds=hme.tds.filter(function(mme){return!ume.includes(mme.$$id)}),hme.tds.length||fme.splice(pme,1)}var bme=this.props.schema.$$id;this.store.changeValueById(bme,this.props.schema),this.setState({displayMergeCell:!1})},eme.prototype.syncLinePos=function(){var $P=this.tableViewWrapperRef.current;if($P){var tme=$P.querySelector("table"),ame=tme.getBoundingClientRect(),nme=$P.querySelectorAll("tr");if(!nme.length||typeof this.maxChildTrIndex>"u")return;for(var rme=Array.from($P.querySelectorAll(".ae-TableViewEditor-rowLine")),ime=0;ime<nme.length;ime++)if(nme[ime]){var ome=nme[ime].getBoundingClientRect();rme[ime]?rme[ime].style.top=ome.top+ome.height-ame.top-3.5+"px":console.warn(i18n("f7d205072a2ceb63b4f48a8b6f32fd25"))}for(var lme=nme[this.maxChildTrIndex].querySelectorAll("td"),sme=Array.from($P.querySelectorAll(".ae-TableViewEditor-colLine")),cme=0;cme<lme.length;cme++){var dme=lme[cme];if(dme){var ume=dme.getBoundingClientRect();sme[cme]?sme[cme].style.left=ume.left+ume.width-ame.left-3.5+"px":console.warn(i18n("852228c640b1daefe6b0853390e66791"))}}}},eme.prototype.componentDidUpdate=function($P){var tme=$P.schema,ame=this.props.schema;isEqual$1(tme,ame)||this.syncLineState()},eme.prototype.lineMouseDownCommon=function($P){this.startY=$P.clientY,this.startX=$P.clientX;var tme=$P.currentTarget;this.draggingElement=tme,this.draggingElementTop=parseInt(this.draggingElement.style.top,10),this.draggingElementLeft=parseInt(this.draggingElement.style.left,10),tme.style.background="#4285f4",this.draggingId=tme.getAttribute("data-id"),tme.addEventListener("click",this.handleLineClick,{once:!0})},eme.prototype.handleRowMouseDown=function($P){this.lineMouseDownCommon($P),document.addEventListener("mousemove",this.handleRowMouseMove),document.addEventListener("mouseup",this.handleRowMouseUp)},eme.prototype.handleRowMouseMove=function($P){var tme=$P.clientY-this.startY;this.draggingElement.style.top=this.draggingElementTop+tme+"px"},eme.prototype.handleRowMouseUp=function($P){document.removeEventListener("mousemove",this.handleRowMouseMove),document.removeEventListener("mouseup",this.handleRowMouseUp);var tme=$P.clientY-this.startY,ame=this.store,nme=this.draggingId,rme=ame.getValueOf(nme),ime=this.tableViewWrapperRef.current.querySelector('tr[data-editor-id="'.concat(nme,'"]'));if(this.draggingElement.style.background="none",!rme||!ime)console.warn(i18n("26526c3354307798dfa84f17decf5140"),nme);else{var ome=ime.getBoundingClientRect().height,lme=ome+tme;ame.changeValueById(nme,__assign$3(__assign$3({},rme),{height:lme})),ROW_HEIGHT-lme>20&&toast.warning(i18n("38d2ccdde0ae0c2329defd3c75c59d8b"))}},eme.prototype.handleColMouseDown=function($P){this.lineMouseDownCommon($P),document.addEventListener("mousemove",this.handleColMouseMove),document.addEventListener("mouseup",this.handleColMouseUp)},eme.prototype.handleColMouseMove=function($P){var tme=$P.clientX-this.startX;this.draggingElement.style.left=this.draggingElementLeft+tme+"px"},eme.prototype.handleColMouseUp=function($P){document.removeEventListener("mousemove",this.handleColMouseMove),document.removeEventListener("mouseup",this.handleColMouseUp);var tme=$P.clientX-this.startX,ame=this.store,nme=this.draggingId,rme=ame.getValueOf(nme),ime=this.tableViewWrapperRef.current.querySelector('td[data-editor-id="'.concat(nme,'"]'));if(this.draggingElement.style.background="none",!rme||!ime)console.warn(i18n("26526c3354307798dfa84f17decf5140"),nme);else{var ome=ime.getBoundingClientRect().width,lme=ome+tme;ame.changeValueById(nme,__assign$3(__assign$3({},rme),{width:lme}))}},eme.prototype.handleLineClick=function($P){$P.stopPropagation(),$P.preventDefault()},eme.prototype.renderMergeIcon=function(){return this.state.displayMergeCell?React__default.createElement("div",{className:"ae-TableViewEditor-mergeIcon",onMouseDown:this.handleMergeCell},i18n("d59379f4227af3b2c60214e2f4f903ba")):null},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.children,nme=tme.schema,rme=this.state.trIds.map(function(ome){return React__default.createElement("div",{className:"ae-TableViewEditor-rowLine",key:"row-".concat(ome),"data-id":ome,onMouseDown:$P.handleRowMouseDown})}),ime=this.state.tdIds.map(function(ome){return React__default.createElement("div",{className:"ae-TableViewEditor-colLine",key:"row-".concat(ome),"data-id":ome,onMouseDown:$P.handleColMouseDown})});return React__default.createElement("div",{className:"ae-TableViewEditor",ref:this.tableViewWrapperRef,style:nme==null?void 0:nme.style},ame,this.renderMergeIcon(),rme,ime)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"removeListenTdSelection",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"listenTdSelection",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleCellMouseDown",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleCellMouseMove",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleCellMouseUp",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleCellMouseClick",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleMergeCell",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleRowMouseDown",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRowMouseMove",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleRowMouseUp",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleColMouseDown",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleColMouseMove",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleColMouseUp",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent]),__metadata("design:returntype",void 0)],eme.prototype,"handleLineClick",null),eme}(React__default.Component),TD_TEMPLATE={body:{type:"tpl",wrapperComponent:"",tpl:"---"}};function getCellRealPosition(x_){var eme,$P,tme,ame;if(!x_)return{trs:[]};var nme=[],rme=x_.trs||[],ime=0;try{for(var ome=__values$1(rme),lme=ome.next();!lme.done;lme=ome.next()){var sme=lme.value,cme=sme.tds||[],dme=0;try{for(var ume=(tme=void 0,__values$1(cme)),fme=ume.next();!fme.done;fme=ume.next()){for(var pme=fme.value;nme[ime]&&nme[ime][dme];)dme=dme+1;var hme=pme.rowspan||1,bme=pme.colspan||1;if(hme>1||bme>1)for(var mme=0;mme<hme;mme++){var vme=ime+mme;nme[vme]||(nme[vme]=[]);for(var gme=0;gme<bme;gme++){var yme=dme+gme;nme[vme][yme]=!0}}pme.$$row=ime,pme.$$col=dme,dme=dme+1}}catch(_me){tme={error:_me}}finally{try{fme&&!fme.done&&(ame=ume.return)&&ame.call(ume)}finally{if(tme)throw tme.error}}ime=ime+1}}catch(_me){eme={error:_me}}finally{try{lme&&!lme.done&&($P=ome.return)&&$P.call(ome)}finally{if(eme)throw eme.error}}return x_}var TableViewPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="table-view",$P.$schema="/schemas/TableViewSchema.json",$P.name=i18n("175e01917d9d4891a40eab43f4487030"),$P.isBaseComponent=!0,$P.icon="fa fa-columns",$P.pluginIcon="table-view-plugin",$P.description=i18n("9fe8304dade75a37bc04f45515688325"),$P.searchKeywords=i18n("7cb7a4480adf1c3e13378201684dbd5f"),$P.docLink="/amis/zh-CN/components/table-view",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.scaffold={type:"table-view",trs:[{background:"#F7F7F7",tds:[{body:{type:"tpl",wrapperComponent:"",tpl:i18n("2560b304e691da78ee2e02f5af9b494d")}},{body:{type:"tpl",wrapperComponent:"",tpl:i18n("f7d29dfae05b5d049b64b040b14d9a00")}},{body:{type:"tpl",wrapperComponent:"",tpl:i18n("44e7ebb4007104495dcb7afbbb6778fb")}}]},{tds:[{rowspan:2,body:{type:"tpl",wrapperComponent:"",tpl:i18n("3f0cb8b8c238c3b4e08898ce6d449c8d")}},{body:{type:"tpl",wrapperComponent:"",tpl:i18n("692e92669c0ca340eff4fdcef32896ee")}},{body:{type:"tpl",wrapperComponent:"",tpl:"${beijing}"}}]},{tds:[{body:{type:"tpl",wrapperComponent:"",tpl:i18n("b8b75a5f9109919ff3f67b336b62afe9")}},{body:{type:"tpl",wrapperComponent:"",tpl:"${tianjing}"}}]}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderTdBody",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7")}],$P.panelTitle=i18n("175e01917d9d4891a40eab43f4487030"),$P.panelJustify=!0,$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("caption"),{label:i18n("3a8647306ee6456517b7bf9c8bc7de23"),name:"captionSide",type:"button-group-select",size:"sm",mode:"row",className:"ae-buttonGroupSelect--justify",visibleOn:"this.caption",options:[{label:i18n("c949729cd1a1e425595c1a297649c7c6"),value:"top"},{label:i18n("12c4c5e8abda77e1fdc93653d6414187"),value:"bottom"}]},{type:"input-text",label:i18n("d1c2b2d68063b4a57af61e3027861cd8"),name:"width",clearable:!0},{type:"input-text",label:i18n("b32ec25f2bdf7b2eed5e947cf82a4fde"),name:"padding",clearable:!0},{label:i18n("8a42ded5c9d58f3dd9e3a8968ec04b34"),name:"border",type:"switch",mode:"row",pipeIn:defaultValue(!0),inputClassName:"inline-flex justify-between flex-row-reverse"},{label:i18n("9b4bae5d8251de0b6f00b704936b00d3"),type:"input-color",name:"borderColor",visibleOn:'this.border || typeof this.border === "undefined"',pipeIn:defaultValue("#eceff8")}]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common")),!1))}])],$P.fieldWrapperResolve=function(tme){return tme},$P.overrides={renderTd:function(tme,ame,nme){var rme=this.super(tme,ame,nme),ime=this.props.$$editor;if(!ime||!tme.$$id)return rme;var ome=ime.plugin,lme=tme.$$id;return React__default.createElement(VRenderer,{type:ime.type,plugin:ime.plugin,renderer:ime.renderer,key:lme,$schema:"/schemas/TdObject.json",hostId:ime.id,memberIndex:ame,name:"".concat("单元格 ".concat(nme+1,",").concat(ame+1)),id:lme,draggable:!1,wrapperResolve:ome.fieldWrapperResolve,schemaPath:"".concat(ime.schemaPath,"/td"),path:"".concat(this.props.$path,"/tr/").concat(nme,"/td/").concat(ame),data:this.props.data,children:rme})},renderTr:function(tme,ame){var nme=this.super(tme,ame),rme=this.props.$$editor;if(!rme||!tme.$$id)return nme;var ime=rme.plugin,ome=tme.$$id;return React__default.createElement(VRenderer,{type:rme.type,plugin:rme.plugin,renderer:rme.renderer,key:ome,$schema:"/schemas/TrObject.json",hostId:rme.id,memberIndex:ame,name:"".concat("行 ".concat(ame+1)),id:ome,draggable:!1,wrapperResolve:ime.fieldWrapperResolve,schemaPath:"".concat(rme.schemaPath,"/tr"),path:"".concat(this.props.$path,"/tr/").concat(ame),data:this.props.data,children:nme})}},$P.tdVRendererConfig={panelTitle:i18n("1ebd0cd417700f3f4a7ee5f64518fcd1"),panelBodyCreator:function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("4d775d4cd79e2ed6a2fc66fd1e7139c8"),body:[{label:i18n("2f97db95d75280bfedc5afa72d2c717d"),type:"input-color",name:"background"},{label:i18n("7ec907e7059b758ace2f3adb9bb803ff"),type:"input-color",name:"color"},{label:i18n("104711e38d3cd9335dbd1f4301178edb"),name:"bold",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"}]},{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:[{type:"input-text",label:i18n("65194da33aa3aa1d0fd08b5690af6f26"),name:"width",clearable:!0},{type:"input-number",name:"padding",label:i18n("fbd9998b10e690230b0f2fa9b24087ac")},{label:i18n("98d695d6a6a48cfb4bc2f6396ee64787"),name:"align",type:"button-group-select",size:"sm",mode:"row",className:"ae-buttonGroupSelect--justify",options:[{label:"",value:"left",icon:"fa fa-align-left"},{label:"",value:"center",icon:"fa fa-align-center"},{label:"",value:"right",icon:"fa fa-align-right"},{label:"",value:"justify",icon:"fa fa-align-justify"}]},{label:i18n("11b7fc50778c89572391ec4c6c4b55e1"),name:"valign",type:"button-group-select",size:"sm",mode:"row",className:"ae-buttonGroupSelect--justify",options:[{label:i18n("c949729cd1a1e425595c1a297649c7c6"),value:"top"},{label:i18n("0bbc2ea4e1d1f23feb576de5dca1ce3b"),value:"middle"},{label:i18n("12c4c5e8abda77e1fdc93653d6414187"),value:"bottom"},{label:i18n("ed97c73866617b40a7b1215867e0f489"),value:"baseline"}]},{type:"input-number",name:"colspan",label:i18n("4745afe0f89f665e41adf819da5df1b6")},{type:"input-number",name:"rowspan",label:i18n("7c2e1f863e86715e892f61a54e558b20")}]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",getSchemaTpl("theme:common"))}])]}},$P.trVRendererConfig={panelTitle:i18n("d17020cd3e6564f5154cf2251cd30f52"),panelBodyCreator:function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[{label:i18n("5a431ad16d8f7f23fac3be5650e51caa"),type:"input-number",name:"height"},{label:i18n("db439b129f3143e14a7024f08ea3732d"),type:"input-color",name:"background"}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",getSchemaTpl("theme:common"))}])]}},$P}return eme.prototype.renderRenderer=function($P){var tme=$P.$$editor,ame=tme.renderer,nme=$P.$schema;return getCellRealPosition(nme),React__default.createElement(TableViewEditor,{schema:nme,manager:this.manager},React__default.createElement(ame.component,__assign$3({},$P)))},eme.prototype.buildEditorPanel=function($P,tme){x_.prototype.buildEditorPanel.call(this,$P,tme);var ame=this,nme=this.manager.store;$P.info.schemaPath.endsWith("/td")?tme.push({key:"td",order:100,icon:this.tdVRendererConfig.panelIcon||"fa fa-tablet",pluginIcon:ame.pluginIcon,title:this.tdVRendererConfig.panelTitle||i18n("30d6ed36667cb98165f07c59702754ea"),render:this.manager.makeSchemaFormRender({controls:this.tdVRendererConfig.panelControlsCreator?this.tdVRendererConfig.panelControlsCreator($P):this.tdVRendererConfig.panelControls,body:this.tdVRendererConfig.panelBodyCreator?this.tdVRendererConfig.panelBodyCreator($P):this.tdVRendererConfig.panelBody,panelById:nme.activeId})}):$P.info.schemaPath.endsWith("/tr")&&tme.push({key:"tr",order:100,icon:this.trVRendererConfig.panelIcon||"fa fa-tablet",title:this.trVRendererConfig.panelTitle||i18n("30d6ed36667cb98165f07c59702754ea"),render:this.manager.makeSchemaFormRender({controls:this.trVRendererConfig.panelControlsCreator?this.trVRendererConfig.panelControlsCreator($P):this.trVRendererConfig.panelControls,body:this.trVRendererConfig.panelBodyCreator?this.trVRendererConfig.panelBodyCreator($P):this.trVRendererConfig.panelBody,panelById:nme.activeId})})},eme.prototype.insertRow=function($P,tme){var ame,nme,rme=this.manager.store,ime=rme.getNodePathById($P),ome=ime[ime.length-3].id,lme=rme.getSchema(ome);getCellRealPosition(lme);var sme=JSONGetById(lme,$P);if(!sme){console.warn(i18n("49d45317662097180e27fa53235d9b13"));return}var cme=sme.$$row;tme==="below"&&(sme.rowspan?cme=cme+sme.rowspan:cme=cme+1);for(var dme=this.calculateCellActualMaxCol(lme),ume=lme.trs.length,fme=0;fme<lme.trs.length;fme++)try{for(var pme=(ame=void 0,__values$1(lme.trs[fme].tds||[])),hme=pme.next();!hme.done;hme=pme.next()){var bme=hme.value,mme=bme.$$row,vme=bme.rowspan||1,gme=bme.colspan||1;if(vme>1&&mme<cme){var yme=mme+vme>cme;yme&&(bme.rowspan=vme+1,dme=dme-gme)}if(mme===cme){ume=fme;break}}}catch(Cme){ame={error:Cme}}finally{try{hme&&!hme.done&&(nme=pme.return)&&nme.call(pme)}finally{if(ame)throw ame.error}}for(var _me=[],$me=0;$me<dme;$me++)_me.push(TD_TEMPLATE);lme.trs.splice(ume,0,{tds:_me}),this.manager.store.changeValueById(ome,lme)},eme.prototype.calculateCellActualMaxCol=function($P){var tme=0;if(!($P!=null&&$P.trs))return tme;for(var ame=$P.trs,nme={},rme=0;rme<ame.length;rme++)for(var ime=ame[rme],ome=0,lme=0;lme<ime.tds.length;lme++){var sme=ime.tds[lme],cme=sme.colspan||1;sme.rowspan;for(var dme=rme,ume=ome,fme=0;fme<cme;fme++){var pme="".concat(dme,"-").concat(ume+fme);nme[pme]?ume++:nme[pme]={rowIndex:dme,colIndex:ume+fme}}ome+=cme}for(var pme in nme){var hme=nme[pme].colIndex;tme=Math.max(tme,hme+1)}return tme},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.info,nme=$P.schema,rme=nme.$$id,ime=__rest$14(nme,["$$id"]),ome=ime.colspan||1,lme=ime.rowspan||1;ame.schemaPath.endsWith("/td")&&(tme.push("|"),tme.push({label:i18n("a896691b72032fe21a00b6487381a529"),onSelect:this.insertCol.bind(this,rme,"left")}),tme.push({label:i18n("24e4bbbf29a8d31e711c8d9366bf1a6f"),onSelect:this.insertRow.bind(this,rme,"below")}),tme.push({label:i18n("aea2dd682bc9dc2974dd971581148459"),onSelect:this.insertRow.bind(this,rme,"above")}),tme.push({label:i18n("bac058b86f8fd4e8f5e2ef3807799aea"),onSelect:this.insertCol.bind(this,rme,"right")}),tme.push("|"),tme.push({label:i18n("488d0742c010851e9c6ce3264df9542b"),disabled:!(ome>1||lme>1)||!1,onSelect:this.splitCell.bind(this,rme)}))},eme.prototype.insertCol=function($P,tme){var ame,nme,rme=this.manager.store,ime=rme.getNodePathById($P),ome=ime[ime.length-3].id,lme=rme.getSchema(ome);getCellRealPosition(lme);var sme=JSONGetById(lme,$P);if(!sme){console.warn(i18n("49d45317662097180e27fa53235d9b13"));return}var cme=sme.$$col;tme==="right"&&(cme=cme+1);try{for(var dme=__values$1(lme.trs||[]),ume=dme.next();!ume.done;ume=dme.next()){for(var fme=ume.value,pme=fme.tds||[],hme=!1,bme=0;bme<pme.length;bme++){var mme=pme[bme],vme=mme.colspan||1,gme=mme.$$col;if(vme>1){var yme=gme+vme>cme;if(yme){mme.colspan=vme+1,hme=!0;break}}if(cme<=gme){pme.splice(bme,0,TD_TEMPLATE),hme=!0;break}}hme||pme.push(TD_TEMPLATE)}}catch(_me){ame={error:_me}}finally{try{ume&&!ume.done&&(nme=dme.return)&&nme.call(dme)}finally{if(ame)throw ame.error}}this.manager.store.changeValueById(ome,lme)},eme.prototype.splitCell=function($P){var tme,ame,nme=this.manager.store,rme=nme.getNodePathById($P),ime=rme[rme.length-3].id,ome=nme.getSchema(ime);getCellRealPosition(ome);var lme=JSONGetById(ome,$P);if(!lme){console.warn(i18n("49d45317662097180e27fa53235d9b13"));return}var sme=lme.rowspan||1,cme=lme.colspan||1;lme.colspan=1,lme.rowspan=1;for(var dme=lme.$$row,ume=lme.$$col,fme=[],pme=0;pme<sme;pme++)for(var hme=0;hme<cme;hme++)pme===0&&hme===0||fme.push({row:dme+pme,col:ume+hme});fme.sort(function(xme,Tme){return Tme.col-xme.col});try{for(var bme=__values$1(ome.trs),mme=bme.next();!mme.done;mme=bme.next())for(var vme=mme.value,gme=0;gme<vme.tds.length;gme++)for(var yme=vme.tds[gme],_me=yme.$$row,$me=yme.$$col,Cme=fme.length;Cme--;){var Sme=fme[Cme];_me===Sme.row&&(Sme.col<=$me?vme.tds.splice(gme,0,TD_TEMPLATE):vme.tds.push(TD_TEMPLATE),fme.splice(Cme,1))}}catch(xme){tme={error:xme}}finally{try{mme&&!mme.done&&(ame=bme.return)&&ame.call(bme)}finally{if(tme)throw tme.error}}if(fme.length){for(var Eme=[],pme=0;pme<fme.length;pme++)Eme.push(TD_TEMPLATE);ome.trs.push({tds:Eme})}this.manager.store.changeValueById(ime,ome)},eme.prototype.buildEditorToolbar=function($P,tme){var ame=this,nme=$P.schema,rme=$P.info;if(rme.schemaPath.endsWith("/td")){var ime=nme.$$id;tme.push({icon:"fa fa-chevron-left",order:100,tooltip:i18n("a896691b72032fe21a00b6487381a529"),onClick:function(){ame.insertCol(ime,"left")}}),tme.push({icon:"fa fa-chevron-down",order:100,tooltip:i18n("24e4bbbf29a8d31e711c8d9366bf1a6f"),onClick:function(){ame.insertRow(ime,"below")}}),tme.push({icon:"fa fa-chevron-up",order:100,tooltip:i18n("aea2dd682bc9dc2974dd971581148459"),onClick:function(){ame.insertRow(ime,"above")}}),tme.push({icon:"fa fa-chevron-right",order:100,tooltip:i18n("bac058b86f8fd4e8f5e2ef3807799aea"),onClick:function(){ame.insertCol(ime,"right")}});var ome=nme.colspan||1,lme=nme.rowspan||1;(ome>1||lme>1)&&tme.push({icon:"fa fa-columns",order:100,tooltip:i18n("488d0742c010851e9c6ce3264df9542b"),onClick:function(){ame.splitCell(ime)}})}},eme.id="TableViewPlugin",eme}(BasePlugin);registerEditorPlugin(TableViewPlugin);/**
@license @nocompile
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/(function(){(function(){if(window.Reflect===void 0||window.customElements===void 0||window.customElements.polyfillWrapFlushCallback)return;const x_=HTMLElement;window.HTMLElement=function(){return Reflect.construct(x_,[],this.constructor)},HTMLElement.prototype=x_.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,x_)})()})();var WebComponentDemo=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.connectedCallback=function(){var $P=this.attachShadow({mode:"open"});$P.textContent="web-component-demo"},eme}(HTMLElement);try{customElements.define("web-component-demo",WebComponentDemo)}catch(x_){console.log("[amis-editor]",x_)}var WebComponentPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="web-component",$P.$schema="/schemas/WebComponentSchema.json",$P.name="Web Component",$P.isBaseComponent=!0,$P.description=i18n("1fa035e78c5408c9079c20637acdb2bb"),$P.docLink="/amis/zh-CN/components/web-component",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-square-o",$P.pluginIcon="web-component-plugin",$P.scaffold={type:"web-component",tag:"web-component-demo"},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("8df7c8a1f9f579f0ddc35bb4ee50f166"),$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{className:"p-none",title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"input-text",label:i18n("14d342362f66aa86e2aa1c1e11aa1204"),name:"tag"},getSchemaTpl("combo-container",{type:"input-kv",mode:"normal",draggable:!1,name:"props",valueSchema:getSchemaTpl("formulaControl",{placeholder:"Value"}),label:i18n("24d67862f87f439db7ca957aecb77cce")})]}])]}])},$P}return eme.id="WebComponentPlugin",eme}(BasePlugin);registerEditorPlugin(WebComponentPlugin);var AudioPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="audio",$P.$schema="/schemas/AudioSchema.json",$P.name=i18n("726dd5df4319e9e158e2ca3c22177b6c"),$P.isBaseComponent=!0,$P.description=i18n("e7a707f9fc7da36828db940ca2960f4b"),$P.docLink="/amis/zh-CN/components/audio",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-music",$P.pluginIcon="audio-plugin",$P.scaffold={type:"audio",autoPlay:!1,src:""},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("726dd5df4319e9e158e2ca3c22177b6c"),$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path);return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),ame?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:i18n("37b12f2666b9e4e37f33eb5e83533d5e")}:null,getSchemaTpl("audioUrl",{name:"src",type:"input-text",label:i18n("f8f176147db276063e7ec15f076e39e0"),description:i18n("91d3cd46d6b6919749e56056d5acc9bc")}),{type:"select",name:"rates",label:i18n("a945269af10da66c82cdb7336bc490d1"),description:i18n("7ccd84ca5c16cd03d26f5ecd5e6f6bd2"),multiple:!0,pipeIn:function(nme){return Array.isArray(nme)?nme.join(","):[]},pipeOut:function(nme){if(nme&&nme.length){var rme=nme.split(",");return rme=rme.filter(function(ime){return Number(ime)&&Number(ime)>0&&Number(ime)<=16}).map(function(ime){return Number(Number(ime).toFixed(1))}),Array.from(new Set(rme))}else return[]},options:["0.5","1","1.5","2","2.5","3","3.5","4"]},{name:"controls",type:"select",label:i18n("fc03b83d19e2fd12f1e7c56a11d7dc18"),multiple:!0,extractValue:!0,joinValues:!1,options:[{label:i18n("d37d357dee041774b993daaf5c8bb752"),value:"rates"},{label:i18n("b85270cd3c06d8eb635eadcffbb10119"),value:"play"},{label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),value:"time"},{label:i18n("c7bff79d059a0b7ff9b02441959d8be2"),value:"process"},{label:i18n("09b095d8fc867cb968673be9dcc00a93"),value:"volume"}],pipeIn:defaultValue(["rates","play","time","process","volume"]),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:i18n("ad751bba0aed43a673c40b652a239fc3"),placement:"left"}},getSchemaTpl("switch",{name:"autoPlay",label:i18n("54c6bb48170611ec995f634319312156")}),getSchemaTpl("switch",{name:"loop",label:i18n("56e6ecf97176d30c06b30cfa428ef832")})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className"),getSchemaTpl("switch",{name:"inline",label:i18n("2fb0853874c2cc8cc42f0c7520af662a"),pipeIn:defaultValue(!0)})]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])]},$P}return eme.id="AudioPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(AudioPlugin);var VideoPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="video",$P.$schema="/schemas/VideoSchema.json",$P.name=i18n("7fcf42edf5817042904f4a122ff77582"),$P.isBaseComponent=!0,$P.description=i18n("1d5bbe0ab0d90a223c162fb375997a98"),$P.docLink="/amis/zh-CN/components/video",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-video-camera",$P.pluginIcon="video-plugin",$P.scaffold={type:"video",autoPlay:!1,src:"https://media.w3.org/2010/05/sintel/trailer_hd.mp4",poster:mockValue({type:"image"})},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("7fcf42edf5817042904f4a122ff77582"),$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"src",type:"input-text",label:i18n("f50bc38cf567e68250a8d15edfd8eb27"),description:i18n("733dda7842619a437b2486f6f71b0c10")},{name:"poster",type:"input-text",label:i18n("fb103fc64a0caeec24c707b9e7b50870"),description:i18n("828f83110677bab8ef940f79f77b9049")},getSchemaTpl("switch",{name:"autoPlay",label:i18n("54c6bb48170611ec995f634319312156")}),getSchemaTpl("switch",{name:"muted",label:i18n("351cb1f8ffbcc9d2d4c1f35505e15864")}),getSchemaTpl("switch",{name:"isLive",label:i18n("c7638cec349cb86eaeaeb983909fae0e"),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,placement:"left",content:i18n("82f5f7bf3fb529360947cbb3b988037f")}})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{name:"aspectRatio",label:i18n("df0134afa26415a560ae1320dee10c19"),type:"button-group-select",size:"sm",mode:"inline",className:"block",value:"auto",options:[{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},getSchemaTpl("switch",{name:"splitPoster",label:i18n("0d682d277649d8c7952d36f836619a44")}),getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("visible")]},{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[getSchemaTpl("ref"),{type:"input-text",name:"rates",label:i18n("ee1600dfbd6f9e86ca8761cf3fcf6a17"),multiple:!0,joinValues:!1,extractValue:!0,options:[.5,1,1.25,1.5,2,2.5,3,3.5,4,4.5,5].map(function(tme){return{label:tme,value:tme}})},{name:"frames",type:"input-text",label:i18n("8e7124c3069460d4a8a04c3e3d9ce752"),description:i18n("1fc7d723b3a82ce32bfbbfa0a1761969")}]}])],$P}return eme.prototype.filterProps=function($P){return $P.frames=JSONPipeOut($P.frames),$P},eme.id="VideoPlugin",eme}(BasePlugin);registerEditorPlugin(VideoPlugin);var CustomPlugin$1=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="custom",$P.$schema="/schemas/CustomSchema.json",$P.name=i18n("473d2078518479669823205110842376"),$P.isBaseComponent=!0,$P.description=i18n("8b9c77fa4e646b9cb270f833252e511b"),$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-gears",$P.pluginIcon="custom-plugin",$P.docLink="/amis/zh-CN/components/custom",$P.scaffold={type:"custom",html:"<div><h2>hello, world!</h2></div>",onMount:i18n("f8c5e0ac29e905e91146e967cfd39dc9")},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("473d2078518479669823205110842376"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("fieldSet",{title:i18n("0b13dc6251002bf556263fb3e4675b11"),body:[{label:i18n("0b13dc6251002bf556263fb3e4675b11"),name:"html",type:"editor",allowFullscreen:!0}]}),getSchemaTpl("fieldSet",{title:"onMount",body:[{name:"onMount",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("d6b917c76b92aa9b92b6bebdcab993f3"),options:{lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}}]}),getSchemaTpl("fieldSet",{title:"onUpdate",body:[{name:"onUpdate",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("e64739dd24bb0bfcb6f6e1ee2cce5413")}]}),getSchemaTpl("fieldSet",{title:"onUnmount",body:[{name:"onUnmount",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("0601b7aa5b53cbc3616e24719bcd2aaa")}]})],$P}return eme.prototype.buildSubRenderers=function($P,tme){var ame=x_.prototype.buildSubRenderers.apply(this,arguments);return ame.scaffold.onMount=i18n("a8065b6d2062bf061762b9200a88251a"),ame},eme.id="CustomPlugin",eme}(BasePlugin);registerEditorPlugin(CustomPlugin$1);var TasksPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tasks",$P.$schema="/schemas/TasksSchema.json",$P.name=i18n("8a471486c6c7bbe43e14392c6b127aea"),$P.isBaseComponent=!0,$P.description=i18n("4f58f808d62c4e31c347e483898396d5"),$P.searchKeywords=i18n("22efa960b935516b3016b4a5bd7f1160"),$P.docLink="/amis/zh-CN/components/tasks",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="",$P.pluginIcon="tasks-plugin",$P.scaffold={type:"tasks",name:"tasks",items:[{label:i18n("9ee043b0a77a26d22eec0f4ea99afbd3"),key:"hive",status:4,remark:i18n("2c8a99d35cb5704994cabcc61a4c3a4a")},{label:i18n("3709f71c9552ed5db76cbe8f3cb5d4be"),key:"partial",status:4},{label:i18n("c60ad696dee4e1eeff6f0f2c2e9b9fc0"),key:"full",status:4}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("8a471486c6c7bbe43e14392c6b127aea"),$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"items",label:i18n("5c0dc424442c913c6d16a2cf43137da4"),type:"combo",multiple:!0,multiLine:!0,items:[getSchemaTpl("label",{label:i18n("78caf7115c5140f8913c581920239f22")}),{name:"key",type:"input-text",label:i18n("3a3778f20c0e1a55adafad4861a71216")},{name:"status",type:"input-number",label:i18n("bc7e74f7ccf8ed6fa5b7b7649b221daa")},getSchemaTpl("taskRemark")],addButtonText:i18n("76ba17faedd82297d09b2edd70c5914e"),scaffold:{label:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),key:"key",status:0,remark:i18n("f411d0f1f925d9b48d8c1d451bd809b1")},description:i18n("093bcd735847b8464d683464165adbb8")},getSchemaTpl("api",{name:"checkApi",label:i18n("7dca021cccc260dbe1d81dfc6b29f513")}),{name:"interval",type:"input-number",min:3e3,step:500,visibleOn:"this.checkApi",pipeIn:defaultValue(3e3),label:i18n("358e55678114f19424efbb42c0a927d9")},getSchemaTpl("api",{name:"submitApi",label:i18n("77bd60ba17a73ede5d81c4eeba0f830d")}),getSchemaTpl("api",{name:"reSubmitApi",label:i18n("1e057692fcf81e07e20b5f7c9073ea35")}),getSchemaTpl("loadingConfig",{},{context:tme}),{type:"divider"},getSchemaTpl("taskNameLabel"),getSchemaTpl("operationLabel"),getSchemaTpl("statusLabel"),getSchemaTpl("remarkLabel"),{name:"btnText",label:i18n("cf6e87cb9edfa398ccfc3db377e34ca4"),type:ame?"input-text-i18n":"input-text",pipeIn:defaultValue(i18n("879eb99c7b1aa3223925b9b2dbad4c63"))},{name:"retryBtnText",label:i18n("804b6382fa6d8b53c5a2a409f30f7fe2"),type:ame?"input-text-i18n":"input-text",pipeIn:defaultValue(i18n("132c5cdcceb0f1f17c8c088a42959aa4"))},{name:"statusTextMap",pipeIn:defaultValue([i18n("dd4e55c39cee201b82dbc9cb2aca173f"),i18n("c0d2181d579cd1e965ed10d5183b1fc0"),i18n("fb852fc6cce168301447d1baff276dc5"),i18n("ad8e01fe719bf1a5af82ee0d100d246b"),i18n("fad5222ca0acfaee54f06458188d916a"),i18n("ad8e01fe719bf1a5af82ee0d100d246b")]),type:"input-array",label:i18n("7a4b9e6f14bda48d2c3bf0fa431bd2b3"),multiple:!0,addable:!1,removable:!1,items:getSchemaTpl("inputArrayItem")},{name:"initialStatusCode",label:i18n("f198581dbbc357ccc0283cfe02d56edd"),pipeIn:defaultValue(0),type:"input-number"},{name:"readyStatusCode",label:i18n("d6bab2368de31490741ed95f732aaa25"),pipeIn:defaultValue(1),type:"input-number"},{name:"loadingStatusCode",label:i18n("6eafca9359acbb0bedcf86d6b8609e41"),pipeIn:defaultValue(2),type:"input-number"},{name:"errorStatusCode",label:i18n("7e8b2e41a303cb8532b9ad2006da3c25"),pipeIn:defaultValue(3),type:"input-number"},{name:"finishStatusCode",label:i18n("231b6f799949f9a743d5193006a15af7"),pipeIn:defaultValue(4),type:"input-number"},{name:"canRetryStatusCode",label:i18n("003797f6b66c67cd87ec684cacb4ab70"),pipeIn:defaultValue(5),type:"input-number"}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className",{pipeIn:defaultValue("b-a bg-white table-responsive")}),getSchemaTpl("className",{name:"tableClassName",label:i18n("320f489db3dade075d69f155b346f98b"),pipeIn:defaultValue("table table-striped m-b-none")}),getSchemaTpl("className",{name:"btnClassName",label:i18n("89d19c1fda4906bd7a336895835ce20e"),pipeIn:defaultValue("btn-sm btn-default")}),getSchemaTpl("className",{name:"retryBtnClassName",label:i18n("c52b46333f6d5d2796ee64cb359cd58a"),pipeIn:defaultValue("btn-sm btn-danger")}),{name:"statusLabelMap",pipeIn:defaultValue(["label-warning","label-info","label-info","label-danger","label-success","label-danger"]),type:"input-array",label:i18n("b091a100499d48dd4ccf0b982aa37d68"),multiple:!0,addable:!1,removable:!1,items:{type:"input-text",placeholder:i18n("4434b33a8731a73613ba5fa1eb984efb")}}]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("visible")]}])},$P}return eme.id="TasksPlugin",eme}(BasePlugin);registerEditorPlugin(TasksPlugin);var EachPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="each",$P.$schema="/schemas/EachSchema.json",$P.name=i18n("ff9f6c2d74c413daa3cd6fb12f8dfd3e"),$P.isBaseComponent=!0,$P.isListComponent=!0,$P.memberImmutable=!0,$P.description=i18n("f34111ff3694a6c6de6e31bef8ebadcb"),$P.searchKeywords=i18n("7eac9d196c43693b0820c7bc0ab504c7"),$P.docLink="/amis/zh-CN/components/each",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-repeat",$P.pluginIcon="each-plugin",$P.scaffold={type:"each",name:"",items:{type:"container",body:[{type:"container",body:[{type:"icon",icon:"fa fa-plane",vendor:"",themeCss:{className:{"padding-and-margin:default":{marginRight:"4px"},font:{color:"#2856ad",fontSize:"20px"}}},id:"u:7fb7aa9c1c43"},{type:"tpl",style:{},tpl:i18n("5d606821df2528b127c07333f5f403cd"),inline:!0,wrapperComponent:"",themeCss:{baseControlClassName:{"font:default":{fontWeight:"var(--fonts-weight-3)",fontSize:"16px",color:"var(--colors-brand-6)"}}},id:"u:5b5f4735dcb0"}],style:{position:"static",display:"flex",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,themeCss:{baseControlClassName:{"padding-and-margin:default":{marginBottom:"6px"}}},id:"u:ee96c8898ee8"},{type:"container",body:[{type:"tpl",tpl:i18n("796011a5b11f78292d93a73ff284de50"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-4)",color:"var(--colors-neutral-text-2)",fontWeight:"var(--fonts-weight-3)","font-family":"-apple-system"}}},id:"u:d7c386d27b64"}],style:{position:"static",display:"block"},wrapperBody:!1,id:"u:ba92a34b6492"}],size:"none",style:{position:"static",display:"block",flex:"0 0 150px",flexBasis:"250px",overflowX:"auto",overflowY:"auto"},wrapperBody:!1,isFixedHeight:!1,themeCss:{baseControlClassName:{"boxShadow:default":" 0px 0px 8px 0px rgba(3, 3, 3, 0.1)","radius:default":{"top-left-border-radius":"var(--borders-radius-3)","top-right-border-radius":"var(--borders-radius-3)","bottom-left-border-radius":"var(--borders-radius-3)","bottom-right-border-radius":"var(--borders-radius-3)"},"padding-and-margin:default":{marginRight:"20px",paddingTop:"20px",paddingRight:"15px",paddingBottom:"20px",paddingLeft:"15px"}}},id:"u:7484a2c497ed"},placeholder:"",style:{position:"static",display:"flex",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"center",marginTop:"10px",marginBottom:"10px"},isFixedHeight:!1,isFixedWidth:!1,size:"none",id:"u:330fe2b1f73e"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{style:__assign$3(__assign$3({},$P.scaffold.style),{transform:"scale(0.6)",width:"600px",transformOrigin:"left top"}),value:["a","b"]}),$P.panelTitle=i18n("69bdc66bb88ac5b63053e2bb7db41801"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme,rme=tme==null?void 0:tme.schema,ime=(rme==null?void 0:rme.isFreeContainer)||!1,ome=(ame=$P.manager)===null||ame===void 0?void 0:ame.isFlexItem(tme==null?void 0:tme.id),lme=(nme=$P.manager)===null||nme===void 0?void 0:nme.isFlexColumnItem(tme==null?void 0:tme.id),sme=[getSchemaTpl("layout:display"),getSchemaTpl("layout:flex-setting",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")',direction:rme.direction,justify:rme.justify,alignItems:rme.alignItems}),getSchemaTpl("layout:flex-wrap",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")'})];return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},getSchemaTpl("formItemName",{label:i18n("41a344642681efaaa418c228ba7fb45c"),paramType:"output"}),getSchemaTpl("valueFormula",{rendererSchema:{type:"input-number",min:1},name:"maxLength",label:i18n("7232042d4e1b0c8c7172d68048358619"),valueType:"number"}),getSchemaTpl("valueFormula",{rendererSchema:{type:"input-text"},name:"placeholder",label:i18n("ffa655818f7dd46fb2a767c51618741b")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:__spreadArray(__spreadArray([getSchemaTpl("layout:originPosition"),getSchemaTpl("layout:inset",{mode:"vertical"})],__read$3(ime?[]:sme),!1),[ome?getSchemaTpl("layout:flex",{isFlexColumnItem:lme,label:i18n(lme?"f02f876ee64cc016d97fa4dc498d4857":"a170a375b264f7fe0c02a7ca8c268784"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative")'}):null,ome?getSchemaTpl("layout:flex-grow",{visibleOn:'this.style && this.style.flex === "1 1 auto" && (this.style.position === "static" || this.style.position === "relative")'}):null,ome?getSchemaTpl("layout:flex-basis",{label:i18n(lme?"183f00df0922a6be371fea58cd46a60a":"f92626f9e56b3e2d0c47495a446acf71"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "1 1 auto"'}):null,ome?getSchemaTpl("layout:flex-basis",{label:i18n(lme?"c19b79073b676b9bade80613aba2dbfa":"b591aed69defa2abf0486da6a58dfb5e"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "0 0 150px"'}):null,getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(ome&&!lme," && this.style.flex === '0 0 150px'")}),getSchemaTpl("layout:isFixedHeight",{visibleOn:"".concat(!ome||!lme),onChange:function(cme){tme==null||tme.node.setHeightMutable(cme)}}),getSchemaTpl("layout:height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:max-height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:min-height",{visibleOn:"".concat(!ome||!lme)}),getSchemaTpl("layout:overflow-y",{visibleOn:"".concat(!ome||!lme," && (this.isFixedHeight || this.style && this.style.maxHeight) || (").concat(ome&&lme," && this.style.flex === '0 0 150px')")}),getSchemaTpl("layout:isFixedWidth",{visibleOn:"".concat(!ome||lme),onChange:function(cme){tme==null||tme.node.setWidthMutable(cme)}}),getSchemaTpl("layout:width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:max-width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:min-width",{visibleOn:"".concat(!ome||lme)}),getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(!ome||lme," && (this.isFixedWidth || this.style && this.style.maxWidth)")}),ome?null:getSchemaTpl("layout:margin-center"),!ome&&!ime?getSchemaTpl("layout:textAlign",{name:"style.textAlign",label:i18n("a3221d2d224767df4afa7a8653ded8fe"),visibleOn:'this.style && this.style.display !== "flex" && this.style.display !== "inline-flex"'}):null,getSchemaTpl("layout:z-index"),getSchemaTpl("layout:sticky",{visibleOn:'this.style && (this.style.position !== "fixed" && this.style.position !== "absolute")'}),getSchemaTpl("layout:stickyPosition")],!1)}],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))}])},$P}return eme.prototype.filterProps=function($P,tme){var ame;return $P=escapeFormula($P),tme.state.value||tme.updateState({value:[{},{}]}),$P.className="".concat($P.className||""," ae-Editor-list"),$P.items&&!(!((ame=$P.items.className)===null||ame===void 0)&&ame.includes("eachItem"))&&!Array.isArray($P.items)&&($P.items=merge$4({className:"".concat($P.items.className||""," ae-Editor-eachItem")},$P.items)),$P},eme.prototype.buildDataSchemas=function($P,tme){var ame={$id:"each",type:"object",title:i18n("64095ae27232995731f776f12bf66d8d"),properties:{}},nme=$P.schema.source&&String($P.schema.source).match(/{([\w-_]+)}/),rme=$P.schema.name||(nme==null?void 0:nme[1]),ime=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type));if(ime){var ome=this.manager.dataSchema.current;this.manager.dataSchema.switchTo(ime.parent);var lme=this.manager.dataSchema.getSchemaByPath(rme);this.manager.dataSchema.switchTo(ome),isObject$8(lme==null?void 0:lme.items)&&(ame=__assign$3(__assign$3({},ame),lme.items),set$1(ame,"properties.index",{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")}))}return ame},eme.id="EachPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(EachPlugin);var PropertyPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="property",$P.$schema="/schemas/PropertySchema.json",$P.name=i18n("23bf030ca760141f317dde1b7f49b11a"),$P.isBaseComponent=!0,$P.icon="fa fa-list",$P.pluginIcon="property-sheet-plugin",$P.description=i18n("23bf030ca760141f317dde1b7f49b11a"),$P.docLink="/amis/zh-CN/components/property",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.scaffold={type:"property",title:i18n("44f2bc36dacb88424dabf9df71da0e77"),items:[{label:"cpu",content:"1 core"},{label:"memory",content:"4G"},{label:"disk",content:"80G"},{label:"network",content:"4M",span:2},{label:"IDC",content:"beijing"},{label:"Note",content:i18n("1cb82ab4f259d5b75da0ae86583b31ff"),span:3}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("23bf030ca760141f317dde1b7f49b11a"),$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("propertyTitle"),{label:i18n("9a4ca43777061ebc91bc64cb994957bc"),type:"input-number",value:3,name:"column"},{type:"radios",name:"mode",inline:!0,value:"table",label:i18n("17fa61e1da428936a31b51c955a99d65"),options:["table","simple"]},{label:i18n("894b94fbb15650da7f9290e7106446f3"),type:"input-text",name:"separator",visibleOn:'this.mode === "simple"'},{label:i18n("7fa5c95b26550753b0931fa21cea5d10"),type:"input-text",name:"source"},{label:i18n("6940ea5aa4c18e105cbcd32cbe410839"),name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("66ab5e9f24c8f46012a25c89919fb191"),scaffold:{label:"",content:"",span:1},items:[getSchemaTpl("propertyLabel"),getSchemaTpl("propertyContent"),{type:"input-number",mode:"inline",size:"sm",label:i18n("42c3762943823c37b537a10c09765822"),value:1,name:"span"}]}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])],$P}return eme.id="PropertyPlugin",eme}(BasePlugin);registerEditorPlugin(PropertyPlugin);var IFramePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="iframe",$P.$schema="/schemas/IFrameSchema.json",$P.name="iFrame",$P.isBaseComponent=!0,$P.description=i18n("713315591970d7c8b49d1c732fe54fde"),$P.docLink="/amis/zh-CN/components/iframe",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-window-maximize",$P.pluginIcon="iframe-plugin",$P.scaffold={type:"iframe",src:"//www.baidu.com"},$P.previewSchema={type:"tpl",tpl:"iFrame"},$P.panelTitle="iFrame",$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("textareaFormulaControl",{name:"src",mode:"normal",label:i18n("8f1c078c6d42759e6ccb1a9bf35f1629")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("collapseGroup",__spreadArray([{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("style:widthHeight",{widthSchema:{label:tipedLabel(i18n("c28479019e24e0e4745f4948e9e97ee7"),i18n("51ad722113289f70b6d77c78ddf0c64a")),pipeIn:defaultValue("100%")},heightSchema:{label:tipedLabel(i18n("c1df04eec5fa0857bc0df2d68d8e953c"),i18n("c78d9b9ab9db5951eb5526e8a46677d9")),pipeIn:defaultValue("100%")}})]}],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))]}])},$P}return eme.prototype.renderRenderer=function($P){return this.renderPlaceholder("IFrame 页面（".concat($P.src,"）"),$P.key,$P.style)},eme.id="IFramePlugin",eme}(BasePlugin);registerEditorPlugin(IFramePlugin);var QRCodePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="qrcode",$P.$schema="/schemas/QRCodeSchema.json",$P.name=i18n("22b03c024d815ad327e8b95d684ced38"),$P.isBaseComponent=!0,$P.description=i18n("1857d9050ac0527374f4324c0a5ad910"),$P.docLink="/amis/zh-CN/components/qrcode",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0")],$P.icon="fa fa-qrcode",$P.pluginIcon="qrcode-plugin",$P.scaffold={type:"qrcode",value:"https://amis.baidu.com"},$P.previewSchema=__assign$3({},$P.scaffold),$P.actions=[{actionType:"saveAs",actionLabel:i18n("f26ef914245883c80f181c4aade2ed04"),description:i18n("e52664b945c685d43d6ea81953a33a4a"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},"下载二维码",buildLinkActionDesc(nme.manager,tme))}}],$P.panelTitle=i18n("22b03c024d815ad327e8b95d684ced38"),$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"value",type:"input-text",label:i18n("e71377bb59c70af683be127ec49d01c7"),pipeIn:defaultValue("https://www.baidu.com"),description:i18n("57eda9139c0b3bc0605ed4cf303ffbd2")},{name:"level",type:"select",label:i18n("f13c3e0717ea842cddc1402e8dabfb6b"),pipeIn:defaultValue("L"),options:[{label:"L",value:"L"},{label:"M",value:"M"},{label:"Q",value:"Q"},{label:"H",value:"H"}]}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{name:"codeSize",type:"input-number",label:i18n("c4bde7dba8c6eed0ca0165b071b259bf"),pipeIn:defaultValue(128)},{name:"backgroundColor",type:"input-color",label:i18n("2f97db95d75280bfedc5afa72d2c717d"),pipeIn:defaultValue("#fff")},{name:"foregroundColor",type:"input-color",label:i18n("ebf2453eddf55441b711d187f3872ffe"),pipeIn:defaultValue("#000")},getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])],$P}return eme.id="QRCodePlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(QRCodePlugin);setSchemaTpl("tpl:content",getSchemaTpl("textareaFormulaControl",{label:i18n("edb5acdc9ee5e75fbc238ab4a0300eaf"),mode:"normal",visibleOn:"this.wrapperComponent !== undefined",pipeIn:function(x_,eme){return x_||eme&&eme.html},name:"tpl"}));setSchemaTpl("tpl:rich-text",{label:i18n("2d711b09bd0db0ad240cc83b30dd8014"),type:"input-rich-text",mode:"normal",buttons:["paragraphFormat","quote","textColor","backgroundColor","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertTable","|","undo","redo","fullscreen"],minRows:5,language:"html",visibleOn:"this.wrapperComponent === undefined",pipeIn:function(x_,eme){return x_||eme&&eme.html},name:"tpl"});setSchemaTpl("tpl:wrapperComponent",{name:"wrapperComponent",type:"select",pipeIn:function(x_){return x_===void 0?"rich-text":x_},pipeOut:function(x_){return x_==="rich-text"?void 0:x_},label:i18n("b1f824deef0d11e1fe3b73167a902e31"),options:[{label:i18n("74cfa7e77be335e8e5489a00ef099cb9"),value:""},{label:i18n("d482086f653d92fa8f1011d39738dba3"),value:"p"},{label:i18n("ae27115431c46fa374ac28200304f341"),value:"h1"},{label:i18n("de86106d6632da3fafb946f85ba91324"),value:"h2"},{label:i18n("27f2c5c60f373a4380ec107ad8895f0e"),value:"h3"},{label:i18n("c961174771e843ac4046b2b21c49424b"),value:"h4"},{label:i18n("a791de104833c917f801c1976b9af960"),value:"h5"},{label:i18n("de2687f9a16fea3654be84c74137b805"),value:"h6"},{label:i18n("e2591e971f4c28db7c80a5f546084a1d"),value:"rich-text"}],onChange:function(x_,eme,$P,tme){(x_===void 0||eme===void 0)&&tme.setValueByName("tpl","")}});var TplPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tpl",$P.$schema="/schemas/TplSchema.json",$P.order=-200,$P.name=i18n("ca746b1ff10193a3ce20878dec04a733"),$P.isBaseComponent=!0,$P.icon="fa fa-file-o",$P.pluginIcon="plain-plugin",$P.description=i18n("65862c97143c6c5479e0c623093a25d6"),$P.docLink="/amis/zh-CN/components/tpl",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.previewSchema={type:"tpl",tpl:i18n("38accbc34901ee6fd7bd7cd9f92f0a2a")},$P.scaffold={type:"tpl",tpl:i18n("590e147e49735ebbfc51ae2175c36eb0"),inline:!0,wrapperComponent:""},$P.panelTitle=i18n("ca746b1ff10193a3ce20878dec04a733"),$P.panelJustify=!0,$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.actions=[],$P.panelBodyCreator=function(tme){var ame=/\/cell\/field\/tpl$/.test(tme.path);return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),ame?null:getSchemaTpl("tpl:wrapperComponent"),getSchemaTpl("switch",{label:tipedLabel(i18n("2fb0853874c2cc8cc42f0c7520af662a"),i18n("47ae015d04dda362d066e4f9ac09d647")),name:"inline",pipeIn:defaultValue(!0),hiddenOn:'this.wrapperComponent !== ""'}),{type:"input-number",label:i18n("1f9ba0bdeb0cf0d3193cac269dd2f708"),name:"maxLine",min:0},getSchemaTpl("tpl:content"),{type:"textarea",name:"editorSetting.mock.tpl",mode:"vertical",label:tipedLabel(i18n("2043742930f9833b4405aa0314a496b1"),i18n("a903e51cb1915b56f94bf54a81816cf5")),pipeOut:function(nme){return nme===""?void 0:nme}},getSchemaTpl("tpl:rich-text")]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"],baseExtra:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.baseControlClassName.font"})]})),!1))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P.popOverBody=[getSchemaTpl("tpl:content"),getSchemaTpl("tpl:rich-text"),getSchemaTpl("tpl:wrapperComponent")],$P}return eme.id="TplPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(TplPlugin);var IconPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="icon",$P.$schema="/schemas/Icon.json",$P.name=i18n("5ef69f62dc668c1a3e68b51c50a2530a"),$P.isBaseComponent=!0,$P.icon="fa fa-calendar",$P.panelTitle=i18n("5ef69f62dc668c1a3e68b51c50a2530a"),$P.description=i18n("6ca92e3386f9e392584367df5054c27c"),$P.docLink="/amis/zh-CN/components/icon",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.pluginIcon="button-plugin",$P.scaffold={type:"icon",icon:"fa fa-spotify",vendor:""},$P.previewSchema={type:"icon",icon:"fa fa-spotify",vendor:""},$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("icon",{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:[getSchemaTpl("theme:select",{label:i18n("c8339fd2a85af4ba66084d28df808de4"),name:"themeCss.className.iconSize"}),getSchemaTpl("theme:colorPicker",{label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),name:"themeCss.className.font.color",labelMode:"input"}),getSchemaTpl("theme:paddingAndMargin",{label:i18n("e8ed49e9fde0bb778e2185876c2d2697")})]}])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P}return eme.id="IconPlugin",eme}(BasePlugin);registerEditorPlugin(IconPlugin);var LinkPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="link",$P.$schema="/schemas/LinkSchema.json",$P.name=i18n("bfe68d5844f8e54602760e18f45954f7"),$P.isBaseComponent=!0,$P.description=i18n("6dfe63d8c039df37787c87afe4c68604"),$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-link",$P.pluginIcon="url-plugin",$P.scaffold={type:"link",value:"http://www.baidu.com/"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{label:$P.name}),$P.panelTitle=i18n("bfe68d5844f8e54602760e18f45954f7"),$P.panelJustify=!0,$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("valueFormula",{name:"href",label:tipedLabel(i18n("6ab20dc4b64021b85886ad9c12b6e0cc"),i18n("78ce29fdc55e6d0980b591a264c537a8")),rendererSchema:{type:"input-text"}}),{label:tipedLabel(i18n("2d711b09bd0db0ad240cc83b30dd8014"),i18n("5d809212900f3bc3ba122fe93638394d")),type:"ae-textareaFormulaControl",mode:"normal",pipeIn:function(tme,ame){return tme||ame&&ame.html},name:"body"},getSchemaTpl("switch",{name:"blank",label:i18n("88a5126f6a1463fc9986b590ee4ab99f")}),getSchemaTpl("iconLink",{name:"icon",label:i18n("c182ad6b97f0909596a523b1f04c28d2")}),getSchemaTpl("iconLink",{name:"rightIcon",label:i18n("ad7e6f016bc1d9a9bbc6e18224d73247")})]},getSchemaTpl("collapseGroup",[{title:i18n("e370757f933a8ecd87bf0255c3ce45d0"),body:[{name:"htmlTarget",type:"input-text",label:tipedLabel(i18n("6be15e9949e4be7fc485e1eaae472942"),i18n("e35dbea2b0c097d7fb76173da0e0bba1"))}]}]),getSchemaTpl("status",{disabled:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"iconClassName",label:i18n("c182ad6b97f0909596a523b1f04c28d2"),visibleOn:"this.icon"}),getSchemaTpl("className",{name:"rightIconClassName",label:i18n("ad7e6f016bc1d9a9bbc6e18224d73247"),visibleOn:"this.rightIcon"})]})])}])],$P}return eme.id="LinkPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(LinkPlugin);var ListPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="list",$P.$schema="/schemas/ListSchema.json",$P.name=i18n("3712972d84adf48acbd6ad24b4d75ad0"),$P.isBaseComponent=!0,$P.isListComponent=!0,$P.disabledRendererPlugin=!0,$P.memberImmutable=!0,$P.description=i18n("9f556fb46ecef854282d17e631578b1c"),$P.docLink="/amis/zh-CN/components/list",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-list",$P.pluginIcon="list-plugin",$P.scaffold={type:"list",listItem:{body:[{type:"tpl",tpl:i18n("3bb4d608c6bee2b7b6d788417cde04e3"),wrapperComponent:""}],actions:[{icon:"fa fa-eye",type:"button"}]}},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]}),$P.panelTitle=i18n("3712972d84adf48acbd6ad24b4d75ad0"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=["crud","crud2"].includes(tme.schema.type),nme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"title",type:nme?"input-text-i18n":"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")},ame?null:getSchemaTpl("formItemName",{label:i18n("41a344642681efaaa418c228ba7fb45c")}),{name:"placeholder",pipeIn:defaultValue(i18n("1ac0e1626be43287983fe3e5559320eb")),type:nme?"input-text-i18n":"input-text",label:i18n("35ba83e053cef95e55dfffde279822b5")},{type:"ae-switch-more",mode:"normal",formType:"extend",label:i18n("86aafaa75b388deb4a4cbdab2293c099"),name:"showHeader",form:{body:[{children:React__default.createElement(Button$1,{level:"primary",size:"sm",block:!0,onClick:$P.editHeaderDetail.bind($P,tme.id)},i18n("e6aa1b827415217c524ae9d9b665cca5"))}]}},{type:"ae-switch-more",mode:"normal",formType:"extend",label:i18n("12c4c5e8abda77e1fdc93653d6414187"),name:"showFooter",form:{body:[{children:React__default.createElement(Button$1,{level:"primary",size:"sm",block:!0,onClick:$P.editFooterDetail.bind($P,tme.id)},i18n("a2ecfd5a0db9c855f59eea75083678e6"))}]}}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:i18n("5e5d3f13111593b2710673006d4c8297")}),getSchemaTpl("className",{name:"itemClassName",label:"ListItem"}),getSchemaTpl("className",{name:"headerClassName",label:i18n("86aafaa75b388deb4a4cbdab2293c099")}),getSchemaTpl("className",{name:"footerClassName",label:i18n("12c4c5e8abda77e1fdc93653d6414187")})]}])}])},$P}return eme.prototype.filterProps=function($P,tme){if(!tme.state.value){if($P.isSlot){tme.updateState({value:[$P.data]});return}var ame=__assign$3(__assign$3({},$P.defaultData),$P.data),nme=resolveArrayDatasource({value:$P.value,data:ame,source:$P.source});if(!Array.isArray(nme)||!nme.length){var rme=this.buildMockData();tme.updateState({value:repeatArray(rme,1).map(function(lme,sme){return __assign$3(__assign$3({},lme),{id:sme+1})})})}}var ime=$P.$schema,ome=__rest$14($P,["$schema"]);return __assign$3(__assign$3({},ome),{$schema:ime})},eme.prototype.buildMockData=function(){return{id:666,title:i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),description:i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),a:i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),b:i18n("6cb01692eea2fa7066d20fe2b6ccaea3")}},eme.prototype.editHeaderDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"tpl",tpl:i18n("86aafaa75b388deb4a4cbdab2293c099"),wrapperComponent:""};rme&&ime&&this.manager.openSubEditor({title:i18n("e6aa1b827415217c524ae9d9b665cca5"),value:schemaToArray((tme=ime.header)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{header:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.prototype.editFooterDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"tpl",tpl:i18n("12c4c5e8abda77e1fdc93653d6414187"),wrapperComponent:""};rme&&ime&&this.manager.openSubEditor({title:i18n("a2ecfd5a0db9c855f59eea75083678e6"),value:schemaToArray((tme=ime.footer)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{footer:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);nme&&rme&&this.manager.openSubEditor({title:i18n("39a6853b109ae98f1aabca90283d7edc"),value:__assign$3({},rme.listItem),slot:{type:"list",listItem:"$$"},onChange:function(ime){ime=__assign$3(__assign$3({},rme),{listItem:ime}),tme.panelChangeValue(ime,diff(rme,ime))},data:{items:[this.buildMockData()]}})},eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info,rme=$P.schema;(nme.renderer.name==="list"||nme.renderer.name==="crud"&&rme.mode==="list")&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("39a6853b109ae98f1aabca90283d7edc"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.buildDataSchemas=function($P,tme){var ame={$id:"each",type:"object",title:i18n("64095ae27232995731f776f12bf66d8d"),properties:{}},nme=$P.schema.source&&String($P.schema.source).match(/{([\w-_]+)}/),rme=$P.schema.name||(nme==null?void 0:nme[1]),ime=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type));if(ime){var ome=this.manager.dataSchema.current;this.manager.dataSchema.switchTo(ime.parent);var lme=this.manager.dataSchema.getSchemaByPath(rme);this.manager.dataSchema.switchTo(ome),isObject$8(lme==null?void 0:lme.items)&&(ame=__assign$3(__assign$3({},ame),lme.items),set$1(ame,"properties.index",{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")}))}return ame},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id,nme=$P.schema;$P.region;var rme=$P.info,ime=$P.selections;ime.length||(rme==null?void 0:rme.plugin)!==this||(rme.renderer.name==="list"||rme.renderer.name==="crud"&&nme.mode==="list")&&tme.push("|",{label:i18n("39a6853b109ae98f1aabca90283d7edc"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.getRendererInfo=function($P){var tme,ame=this,nme=$P.renderer,rme=$P.schema;return!rme.$$id&&["crud","crud2"].includes((tme=rme.$$editor)===null||tme===void 0?void 0:tme.renderer.name)&&nme.name==="list"?__assign$3(__assign$3({},{id:rme.$$editor.id}),{name:ame.name,regions:ame.regions,patchContainers:ame.patchContainers,vRendererConfig:ame.vRendererConfig,wrapperProps:ame.wrapperProps,wrapperResolve:ame.wrapperResolve,filterProps:ame.filterProps,$schema:ame.$schema,renderRenderer:ame.renderRenderer,memberImmutable:ame.memberImmutable}):x_.prototype.getRendererInfo.call(this,$P)},eme.id="ListPlugin",eme}(BasePlugin);registerEditorPlugin(ListPlugin);var List2Plugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="cards",$P.$schema="/schemas/CardsSchema.json",$P.name=i18n("3712972d84adf48acbd6ad24b4d75ad0"),$P.isBaseComponent=!0,$P.isListComponent=!0,$P.memberImmutable=!0,$P.description=i18n("85c17b016309a3f867a1803049b3bcd8"),$P.docLink="/amis/zh-CN/components/cards",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-window-maximize",$P.pluginIcon="cards-plugin",$P.scaffold={type:"cards",columnsCount:1,card:{type:"container",body:[{type:"container",body:[{type:"tpl",tpl:"01",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"padding-and-margin:default":{marginRight:"10px"},"font:default":{color:"var(--colors-neutral-text-2)",fontSize:"var(--fonts-size-3)",fontWeight:"var(--fonts-weight-5)"}}},id:"u:0597d8ab5c3a"},{type:"tpl",tpl:"/",inline:!0,wrapperComponent:"",style:{},id:"u:95d2a3ac3e70",themeCss:{baseControlClassName:{"padding-and-margin:default":{marginRight:"10px"},"font:default":{fontSize:"var(--fonts-size-3)",color:"#cccccc"}}}},{type:"container",body:[{type:"tpl",tpl:i18n("c4767bc3ad5c6812a8ea302e6126d988"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)"}}},id:"u:d153d5c33ebf"},{type:"tpl",tpl:"2023",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)"}}},id:"u:4e03af905add"}],style:{position:"static",display:"flex",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:3e3e5dc43b6a"}],size:"none",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:0,flexBasis:"auto",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,themeCss:{baseControlClassName:{"border:default":{"right-border-width":"var(--borders-width-2)","right-border-style":"var(--borders-style-2)","right-border-color":"#ececec"},"padding-and-margin:default":{paddingLeft:"20px",paddingRight:"40px",marginRight:"40px"}}},id:"u:7a02e453c997"},{type:"container",body:[{type:"tpl",tpl:i18n("499d02b4034d1234b407042ccce614a8"),inline:!0,wrapperComponent:"",style:{},maxLine:1,id:"u:105ca9cda3ef",themeCss:{baseControlClassName:{"padding-and-margin:default":{marginBottom:"10px"},"font:default":{fontSize:"var(--fonts-size-5)",color:"var(--colors-neutral-text-4)",fontWeight:"var(--fonts-weight-4)"}}}},{type:"tpl",tpl:i18n("a302da1d8160ed0c72719c13346042a9"),inline:!0,wrapperComponent:"",maxLine:1,style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"13px",color:"var(--colors-neutral-text-5)"}}},id:"u:d8e3f4be33db"}],size:"none",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:1,flexBasis:"auto",flexWrap:"nowrap",flexDirection:"column",alignItems:"flex-start"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:0c0b56fd0c17"},{type:"container",body:[{type:"button",label:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),onEvent:{click:{actions:[]}},level:"default",size:"default",themeCss:{className:{"border:default":{"top-border-width":"var(--borders-width-2)","left-border-width":"var(--borders-width-2)","right-border-width":"var(--borders-width-2)","bottom-border-width":"var(--borders-width-2)","top-border-style":"var(--borders-style-2)","left-border-style":"var(--borders-style-2)","right-border-style":"var(--borders-style-2)","bottom-border-style":"var(--borders-style-2)","top-border-color":"var(--colors-brand-6)","left-border-color":"var(--colors-brand-6)","right-border-color":"var(--colors-brand-6)","bottom-border-color":"var(--colors-brand-6)"},"padding-and-margin:default":{paddingLeft:"20px",paddingRight:"20px"},"radius:default":{"top-left-border-radius":"20px","top-right-border-radius":"20px","bottom-left-border-radius":"20px","bottom-right-border-radius":"20px"},"font:default":{color:"var(--colors-brand-6)"}}},id:"u:0a2fe27eb501"}],size:"xs",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:0,flexBasis:"auto",flexWrap:"nowrap",flexDirection:"column",justifyContent:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:77cb3edb2288"}],wrapperBody:!1,style:{position:"relative",display:"flex",width:"100%"},themeCss:{baseControlClassName:{"radius:default":{"top-left-border-radius":"6px","top-right-border-radius":"6px","bottom-left-border-radius":"6px","bottom-right-border-radius":"6px"},"boxShadow:default":" 0px 0px 10px 0px var(--colors-neutral-line-8)","border:default":{"top-border-width":"var(--borders-width-1)","left-border-width":"var(--borders-width-1)","right-border-width":"var(--borders-width-1)","bottom-border-width":"var(--borders-width-1)","top-border-style":"var(--borders-style-1)","left-border-style":"var(--borders-style-1)","right-border-style":"var(--borders-style-1)","bottom-border-style":"var(--borders-style-1)","top-border-color":"#3be157","left-border-color":"#3be157","right-border-color":"#3be157","bottom-border-color":"#3be157"},"padding-and-margin:default":{paddingTop:"10px",paddingRight:"10px",paddingBottom:"10px",paddingLeft:"10px"}}},id:"u:bb14c60372c6"},placeholder:"",style:{gutterY:10},id:"u:0fb820345fc1"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{className:"text-left ",items:[{},{},{}],style:{gutterY:10,transform:"scale(0.7)",width:"1200px",transformOrigin:"left top"},name:"items"}),$P.panelTitle=i18n("3712972d84adf48acbd6ad24b4d75ad0"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme,rme=tme.schema.type==="crud",ime=(nme=(ame=tme==null?void 0:tme.schema)===null||ame===void 0?void 0:ame.style)===null||nme===void 0?void 0:nme.position,ome=ime==="fixed"||ime==="absolute";return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},rme?null:getSchemaTpl("formItemName",{label:i18n("41a344642681efaaa418c228ba7fb45c")}),getSchemaTpl("cardsPlaceholder")]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([{title:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),body:[{name:"columnsCount",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:12,step:1,label:i18n("fcd70206ed8109b7ed361c7bce0922c4")},{type:"input-number",label:i18n("3ccfcb4c0daac7bb3ef1399b4389e3e5"),name:"style.gutterX",visibleOn:"this.columnsCount > 1"},{type:"input-number",label:i18n("ab57255c391c3732b4b38ae78f55e058"),name:"style.gutterY"},getSchemaTpl("layout:originPosition",{visibleOn:ome||void 0,value:"left-top"})]}],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))}])]},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame={$id:"cards",type:"object",title:i18n("390d9ad686ba5622d49443d1e3659d51"),properties:{}},nme=$P.schema.source&&String($P.schema.source).match(/{([\w-_]+)}/),rme=$P.schema.name||(nme==null?void 0:nme[1]),ime=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type));if(ime){var ome=this.manager.dataSchema.current;this.manager.dataSchema.switchTo(ime.parent);var lme=this.manager.dataSchema.getSchemaByPath(rme);this.manager.dataSchema.switchTo(ome),isObject$8(lme==null?void 0:lme.items)&&(ame=__assign$3(__assign$3({},ame),lme.items),set$1(ame,"properties.index",{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")}))}return ame},eme.prototype.filterProps=function($P,tme){var ame,nme=($P.columnsCount||3)*2;return tme.state.value||tme.updateState({value:repeatArray({},nme).map(function(rme,ime){return __assign$3(__assign$3({},rme),{id:ime+1})})}),$P.className="".concat($P.className||""," ae-Editor-list"),$P.itemsClassName="".concat($P.itemsClassName||""," cards-items"),$P.card&&!(!((ame=$P.card.className)===null||ame===void 0)&&ame.includes("listItem"))&&($P.card=merge$4({className:"".concat($P.card.className||""," ae-Editor-listItem")},$P.card)),$P=escapeFormula($P),$P},eme.prototype.getRendererInfo=function($P){var tme,ame=this,nme=$P.renderer,rme=$P.schema;return!rme.$$id&&((tme=rme.$$editor)===null||tme===void 0?void 0:tme.renderer.name)==="crud"&&nme.name==="cards"?__assign$3(__assign$3({},{id:rme.$$editor.id}),{name:ame.name,regions:ame.regions,patchContainers:ame.patchContainers,vRendererConfig:ame.vRendererConfig,wrapperProps:ame.wrapperProps,wrapperResolve:ame.wrapperResolve,filterProps:ame.filterProps,$schema:ame.$schema,renderRenderer:ame.renderRenderer,memberImmutable:ame.memberImmutable}):x_.prototype.getRendererInfo.call(this,$P)},eme.id="List2Plugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(List2Plugin);var MappingPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="mapping",$P.$schema="/schemas/MappingSchema.json",$P.name=i18n("9da188491dd34c4382a5b9f006194e41"),$P.isBaseComponent=!0,$P.description=i18n("ddeeaa33ae62ead1a77a859fb79b78d7"),$P.docLink="/amis/zh-CN/components/mapping",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-exchange",$P.pluginIcon="mapping-plugin",$P.scaffold={type:"mapping",value:1,map:{1:i18n("0218cbc88086353118fea07e364334d4"),2:i18n("8167b3dd560a83cdc757d1022ff111e2"),3:i18n("8fa28f95c03faa7cc87e487a89a35a72"),4:i18n("d246bdddaf59436cb2160837f7bef634"),"*":i18n("2ab01e418dca1500dcb133d50656deea")},itemSchema:{type:"tag",label:"${item}"}},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("9da188491dd34c4382a5b9f006194e41"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path);return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),id:"properties-basic",body:[ame?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:i18n("8e1fee898434093aad55f5888497f970")}:null,getSchemaTpl("mapSourceControl"),{type:"ae-switch-more",mode:"normal",label:i18n("3585e4dd456b41fb8aec43f927b6a27c"),bulk:!1,name:"itemSchema",formType:"extend",form:{body:[{type:"button",level:"primary",size:"sm",block:!0,onClick:$P.editDetail.bind($P,tme.id),label:i18n("25e4c39320150bca74b4c05c7740e365")}]},pipeIn:function(nme){return nme!==void 0},pipeOut:function(nme,rme,ime){return nme===!0?{type:"tag",label:"${".concat($P.getDisplayField(ime),' | default: "-"}')}:nme||void 0}},getSchemaTpl("valueFormula",{pipeOut:function(nme){return nme==null||nme===""?void 0:nme}}),getSchemaTpl("placeholder",{pipeIn:defaultValue("-"),label:i18n("4c1cff4d8c05daa6ed9352a241ee628c")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:i18n("5e5d3f13111593b2710673006d4c8297")})]}])}])]},$P}return eme.prototype.getDisplayField=function($P){var tme;return $P.source||$P.map&&Array.isArray($P.map)&&$P.map[0]&&Object.keys($P.map[0]).length>1?(tme=$P.labelField)!==null&&tme!==void 0?tme:"label":"item"},eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info;$P.schema,nme.renderer.name==="mapping"&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("25e4c39320150bca74b4c05c7740e365"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id;$P.schema,$P.region;var nme=$P.info,rme=$P.selections;rme.length||(nme==null?void 0:nme.plugin)!==this||nme.renderer.name==="mapping"&&tme.push("|",{label:i18n("25e4c39320150bca74b4c05c7740e365"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.editDetail=function($P){var tme,ame,nme=this.manager,rme=nme.store,ime=rme.getNodeById($P),ome=rme.getValueOf($P),lme={type:"tag",label:"${".concat(this.getDisplayField(ome),"}")};ime&&ome&&this.manager.openSubEditor({title:i18n("25e4c39320150bca74b4c05c7740e365"),value:schemaToArray((ame=ome.itemSchema)!==null&&ame!==void 0?ame:lme),slot:{type:"container",body:"$$"},onChange:function(sme){sme=__assign$3(__assign$3({},ome),{itemSchema:schemaArrayFormat(sme)}),nme.panelChangeValue(sme,diff(ome,sme))},data:(tme={},tme[ome.labelField||"label"]=i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),tme[ome.valueField||"value"]=i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),tme.item=i18n("6cb01692eea2fa7066d20fe2b6ccaea3"),tme)})},eme.id="MappingPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(MappingPlugin);var DefaultSize=40,DefaultBorderRadius=20,widthOrheightPipeIn=function(x_,eme){var $P,tme;return x_||((tme=($P=eme.data)===null||$P===void 0?void 0:$P.size)!==null&&tme!==void 0?tme:DefaultSize)},AvatarPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="avatar",$P.$schema="/schemas/AvatarSchema.json",$P.name=i18n("4c50eef3bdaf0b4164ce179e576f2b2d"),$P.isBaseComponent=!0,$P.icon="fa fa-user",$P.pluginIcon="avatar-plugin",$P.description=i18n("18dc831ec12d358d05902bef1f00e1f1"),$P.docLink="/amis/zh-CN/components/avatar",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.scaffold={type:"avatar",showtype:"image",icon:"",fit:"cover",style:{width:DefaultSize,height:DefaultSize,borderRadius:DefaultBorderRadius}},$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.previewSchema=__assign$3({},$P.scaffold),$P.notRenderFormZone=!0,$P.panelJustify=!0,$P.panelTitle=i18n("4c50eef3bdaf0b4164ce179e576f2b2d"),$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{className:"p-none",title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"button-group-select",label:i18n("2d711b09bd0db0ad240cc83b30dd8014"),name:"showtype",tiled:!0,inputClassName:"items-center",options:[{label:i18n("20def7942674282277c3714ed7ea6ce0"),value:"image"},{label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),value:"icon"},{label:i18n("ca746b1ff10193a3ce20878dec04a733"),value:"text"}],pipeIn:function(ame,nme){var rme,ime;if(ame)return ame;var ome=!((rme=nme.data)===null||rme===void 0)&&rme.text?"text":!((ime=nme.data)===null||ime===void 0)&&ime.icon?"icon":"image";return setTimeout(function(){return nme.setValueByName("showtype",ome)}),ome},onChange:function(ame,nme,rme,ime){ime.setValues({src:void 0,defaultAvatar:void 0,fit:"cover",text:void 0,gap:4,icon:""})}},{type:"container",className:"ae-ExtendMore mb-3",body:[getSchemaTpl("icon",{name:"icon",label:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),visibleOn:'this.showtype === "icon"'}),getSchemaTpl("valueFormula",{rendererSchema:{type:"input-url"},name:"src",label:"头像地址",visibleOn:'this.showtype === "image"'}),getSchemaTpl("imageUrl",{name:"defaultAvatar",label:"默认头像",visibleOn:'this.showtype === "image"'}),{label:tipedLabel(i18n("b54f4a65cd257c87db32ee1023e1daa1"),i18n("def423db04dd24b226911b9e4cf5dc9c")),name:"fit",type:"select",pipeIn:defaultValue("cover"),options:[{label:i18n("74735df86a8e1c15bce50e2c1dd42e98"),value:"cover"},{label:i18n("9d7f3e170404f211a4f95c214f044b05"),value:"contain"},{label:i18n("9854f491213784118614be4a1970bcf9"),value:"fill"},{label:i18n("3d2b60dda894eba9a042beddf7daf3cc"),value:"none"}],visibleOn:'this.showtype === "image"'},getSchemaTpl("avatarText"),{type:"input-group",name:"gap",value:4,label:tipedLabel(i18n("c7fff1a6f585d7fb22c94bb1ef82707d"),i18n("f1b4c635cdb39c91461f181d27d06f8c")),body:[{type:"input-number",name:"gap",min:0},{type:"tpl",addOnclassName:"border-0 bg-none",tpl:"px"}],visibleOn:'this.showtype === "text"'}]},getSchemaTpl("badge")]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-number",label:i18n("dfd0cd7f2cba96917484569a646bdc8d"),min:0,name:"style.width",pipeIn:widthOrheightPipeIn},{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),min:1,name:"style.height",pipeIn:widthOrheightPipeIn},{type:"input-number",label:i18n("0103eb2d3dca70270d1a74e9ec987ac9"),min:0,name:"style.borderRadius",pipeIn:function(ame,nme){var rme,ime,ome;return ame||(((rme=nme.data)===null||rme===void 0?void 0:rme.shape)==="circle"?(nme.setValueByName("shape","square"),+(((ime=nme.data)===null||ime===void 0?void 0:ime.size)||DefaultSize)*.5):!((ome=nme.data)===null||ome===void 0)&&ome.size?0:DefaultBorderRadius)}}]},{header:i18n("ca746b1ff10193a3ce20878dec04a733"),key:"font",body:[{type:"style-font",label:!1,name:"style"}]},{header:i18n("9a233b241eef54521cfe9365bfaa7b2f"),key:"box-model",body:[{type:"style-box-model",label:!1,name:"style"}]},{header:i18n("961534b4ea37e4e88aada736b299d063"),key:"border",body:[{type:"style-border",label:!1,name:"style",disableRadius:!0}]},{title:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),body:[{type:"style-background",label:!1,name:"style",noImage:!0}]},{header:i18n("803205e38834280d9e6a75993ac00764"),key:"box-shadow",body:[{type:"style-box-shadow",label:!1,name:"style.boxShadow"}]},{header:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),key:"other",body:[{label:i18n("34dac4adbc96afd65f060cc4cfff1feb"),name:"style.opacity",min:0,max:1,step:.05,type:"input-range",pipeIn:defaultValue(1),marks:{"0%":"0","50%":"0.5","100%":"1"}}]},getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="AvatarPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(AvatarPlugin);var CardPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="card",$P.$schema="/schemas/CardSchema.json",$P.name=i18n("d87f215d9ac688b1d3399bf575a0ef6f"),$P.isBaseComponent=!0,$P.description=i18n("f49d40842a3c66c4de2e57a48157c707"),$P.docLink="/amis/zh-CN/components/card",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="",$P.pluginIcon="card-plugin",$P.scaffold={type:"card",header:{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),subTitle:i18n("72cf373be86a38b29f6d2f15900b0da1")},body:i18n("2d711b09bd0db0ad240cc83b30dd8014"),actions:[{type:"button",label:i18n("fa966345577ba81af19408f203db968f"),actionType:"dialog",dialog:{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:i18n("2d711b09bd0db0ad240cc83b30dd8014")}}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7")},{key:"actions",label:i18n("c8caf94205105bac5833ab31cc2129d7"),renderMethod:"renderActions",wrapperResolve:function(tme){return tme},preferTag:i18n("fa966345577ba81af19408f203db968f")}],$P.panelTitle=i18n("d87f215d9ac688b1d3399bf575a0ef6f"),$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:flatten$4([getSchemaTpl("layout:originPosition",{value:"left-top"}),{children:React__default.createElement("div",null,React__default.createElement(Button$1,{block:!0,level:"primary",size:"sm",onClick:function(){return $P.manager.showRendererPanel(i18n("027446c2f9070b0f5b16a18208bf5fc7"),i18n("6312e80e416fa79ff3383e1577c243b8"))}},i18n("a3cf7c9ee581ae71eb51d18b610b05b6")))},{type:"divider"},getSchemaTpl("cardTitle"),getSchemaTpl("cardSubTitle"),{name:"header.avatar",type:"input-text",label:i18n("f7a82c9758acc4ff4c5350182f2ca378"),description:i18n("00a1f644f34b9ee43adf82cb3449158c")},{name:"href",type:"input-text",label:i18n("a3f38735bf211edb2066ac4e51b55cb2")},getSchemaTpl("cardDesc"),{name:"header.highlight",type:"input-text",label:i18n("d85562778760b00b1372af642c4630e6"),description:i18n("4011e5fb23b422f755d81269a5242d22")}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{type:"input-range",name:"actionsCount",pipeIn:defaultValue(4),min:1,max:10,step:1,label:i18n("d4f223e0619836d03d488c89558f38e7")},getSchemaTpl("className",{name:"titleClassName",label:i18n("620868e5e60e5c22249c3277c971bb13")}),getSchemaTpl("className",{name:"highlightClassName",label:i18n("1fee6fa022c97f5dd7f48e362cea5acf")}),getSchemaTpl("className",{name:"subTitleClassName",label:i18n("2a3c7d647a29fb7dc5aedabac216575e")}),getSchemaTpl("className",{name:"descClassName",label:i18n("0e627e6a0ff773ee76bc4cc0871cb48d")}),getSchemaTpl("className",{name:"avatarClassName",label:i18n("a5680444d449b2099b067e9963fe43aa")}),getSchemaTpl("className",{name:"imageClassName",label:i18n("b8e1e46cbdea20de4e5fc130d31b7bcc")}),getSchemaTpl("className",{name:"bodyClassName",label:i18n("a31119cb2fddee3366163a311f317cf7")}),getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])]},$P.fieldWrapperResolve=function(tme){return tme},$P.overrides={renderFeild:function(tme,ame,nme,rme){var ime=this.super(tme,ame,nme,rme),ome=this.props.$$editor;if(!ome||!ame.$$id)return ime;var lme=ome.plugin,sme=ame.$$id;return React__default.createElement(VRenderer,{type:ome.type,plugin:ome.plugin,renderer:ome.renderer,multifactor:!0,key:sme,$schema:"/schemas/CardBodyField.json",hostId:ome.id,memberIndex:nme,name:"".concat(i18n("9caecd931b956381e0763d05aa42835c").concat(nme+1)),id:sme,draggable:!1,wrapperResolve:lme.fieldWrapperResolve,schemaPath:"".concat(ome.schemaPath,"/body/").concat(nme),path:"".concat(this.props.$path,"/").concat(nme),data:this.props.data},ime)}},$P.vRendererConfig={panelTitle:i18n("9caecd931b956381e0763d05aa42835c"),panelBodyCreator:function(tme){return[getSchemaTpl("label"),getSchemaTpl("className",{name:"labelClassName",label:i18n("6d0034a2419e1f394dedab07994b9665"),visibleOn:"this.label"})]}},$P}return eme.prototype.beforeInsert=function($P){var tme,ame,nme,rme,ime=$P.context;(ime.info.plugin===this||((tme=ime.node.sameIdChild)===null||tme===void 0?void 0:tme.info.plugin)===this)&&ime.region==="body"&&(ime.data=__assign$3(__assign$3({},ime.data),{label:(rme=(ame=ime.data.label)!==null&&ame!==void 0?ame:(nme=ime.subRenderer)===null||nme===void 0?void 0:nme.name)!==null&&rme!==void 0?rme:i18n("bcee820bc20342a4d388a35ed32a35fe")}))},eme.id="CardPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(CardPlugin);var Card2Plugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="card2",$P.$schema="/schemas/Card2Schema.json",$P.name=i18n("d87f215d9ac688b1d3399bf575a0ef6f"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.description=i18n("f49d40842a3c66c4de2e57a48157c707"),$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="",$P.scaffold={type:"card2",body:i18n("2d711b09bd0db0ad240cc83b30dd8014")},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7")}],$P.panelTitle=i18n("d87f215d9ac688b1d3399bf575a0ef6f"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"button-group-select",label:tipedLabel(i18n("97d03d4621f0024cf045afbd901197a5"),i18n("44705bb94d83e7bd6b3b6c1480ebfb38")),name:"checkOnItemClick",options:[{label:i18n("e30a958a6397e53fae9d5316e851d3aa"),value:!0},{label:i18n("31ad7a215f3df84c33b8c28223147b8e"),value:!1}],pipeIn:defaultValue(!1)},getSchemaTpl("switch",{label:tipedLabel(i18n("563ae5ccda5004fa1fce77c1ed5bf057"),i18n("aeca6900b9e45f7f235eb9d443f0dd61")),name:"hideCheckToggler",visibleOn:"this.checkOnItemClick"})]},getSchemaTpl("status",{isFormItem:!1})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"bodyClassName",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),visibleOn:"this.icon"}),getSchemaTpl("className",{name:"selectedClassName",label:i18n("1d4103a96a70de2cb69dd597d679fefe"),visibleOn:"this.icon"})]})])}])]},$P}return eme.id="Card2Plugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(Card2Plugin);var CardsPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="cards",$P.$schema="/schemas/CardsSchema.json",$P.name=i18n("093c340f7e1fbde1928ca56b5c7f9cc4"),$P.isBaseComponent=!0,$P.isListComponent=!0,$P.memberImmutable=!0,$P.description=i18n("85c17b016309a3f867a1803049b3bcd8"),$P.searchKeywords=i18n("52830af276fb186ff93f16a562acb2f6"),$P.docLink="/amis/zh-CN/components/cards",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-window-maximize",$P.pluginIcon="cards-plugin",$P.scaffold={type:"cards",columnsCount:4,card:{type:"container",body:[{type:"container",body:[{type:"icon",icon:"fa fa-check",vendor:"",themeCss:{className:{font:{color:"var(--colors-brand-6)",fontSize:"20px"},"padding-and-margin:default":{marginRight:"10px"}}},id:"u:c3a694c7f4e6"},{type:"tpl",tpl:i18n("b58da2d7e87937280042e1deca1153fa"),inline:!0,wrapperComponent:"",editorSetting:{mock:{}},style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)",color:"var(--colors-neutral-text-2)",fontWeight:"var(--fonts-weight-3)"}}},id:"u:4273575e1d7b"}],style:{position:"static",display:"flex",flexWrap:"nowrap",alignItems:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,size:"none",themeCss:{baseControlClassName:{"padding-and-margin:default":{marginBottom:"15px"}}},id:"u:561592d2ff0a"},{type:"flex",className:"p-1",items:[{type:"container",body:[{type:"container",body:[{type:"tpl",tpl:"12/",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)",color:"var(--colors-neutral-text-2)",fontWeight:"var(--fonts-weight-3)"}}},id:"u:c53d2e838649"},{type:"tpl",tpl:"19",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{color:"var(--colors-neutral-text-6)",fontSize:"var(--fonts-size-6)"}}},id:"u:774766c09a3e"}],style:{position:"static",display:"block",flex:"0 0 auto"},wrapperBody:!1,isFixedWidth:!1,size:"none",themeCss:{baseControlClassName:{"padding-and-margin:default":{marginTop:"var(--sizes-size-0)",marginRight:"var(--sizes-size-0)",marginBottom:"var(--sizes-size-0)",marginLeft:"var(--sizes-size-0)"}}},id:"u:7b8d9478caf0"},{type:"container",body:[{type:"tpl",tpl:i18n("93b824b57d4c22085c1035f7254619db"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{color:"var(--colors-neutral-text-5)"}}},id:"u:4abe984e2cdf"}],style:{position:"static",display:"flex",flexWrap:"nowrap",flexDirection:"column",justifyContent:"center",alignItems:"center",flex:"0 0 auto"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,size:"none",id:"u:10268e055c48"}],size:"xs",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:1,flexBasis:"auto",flexWrap:"nowrap",flexDirection:"column",justifyContent:"center",alignItems:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:a35d9094c57a"},{type:"container",body:[{type:"tpl",tpl:"100%",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)",color:"var(--colors-neutral-text-2)",fontWeight:"var(--fonts-weight-3)"}}},id:"u:dfa080010477"},{type:"tpl",tpl:i18n("2a8249ce9e52240855dfabc0efc83a3a"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{color:"var(--colors-neutral-text-5)"}}},id:"u:ee6afab8bebf"}],size:"xs",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:1,flexBasis:"auto",flexWrap:"nowrap",flexDirection:"column",justifyContent:"flex-start",alignItems:"center"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:8d1113a60808"},{type:"container",body:[{type:"tpl",tpl:"99.9%",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"var(--fonts-size-6)",color:"var(--colors-neutral-text-2)",fontWeight:"var(--fonts-weight-3)"}}},id:"u:538523c38973"},{type:"tpl",tpl:i18n("09eb6d258fd00deaf350c2d1a0fd6f46"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{color:"var(--colors-neutral-text-5)"}}},id:"u:4b2f8311836c"}],size:"xs",style:{position:"static",display:"flex",flex:"1 1 auto",flexGrow:1,flexBasis:"auto",flexWrap:"nowrap",justifyContent:"center",alignItems:"center",flexDirection:"column"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,id:"u:7543aef28c33"}],style:{position:"relative"},id:"u:0f802c8852fd"},{type:"container",body:[{type:"tpl",tpl:i18n("a5cd4ea1820d5c17c35e86885b1ef10d"),inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"14px",color:"var(--colors-neutral-text-5)"}}},id:"u:ec80d1113007"},{type:"tpl",tpl:"2023-01-01 12:00",inline:!0,wrapperComponent:"",style:{},themeCss:{baseControlClassName:{"font:default":{fontSize:"12px",color:"var(--colors-neutral-text-6)"}}},id:"u:7f6bef513eb3"}],style:{position:"static",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!1,themeCss:{baseControlClassName:{"padding-and-margin:default":{marginTop:"20px"}}},id:"u:6606cebce092"}],size:"none",style:{position:"static",display:"block",flex:"0 0 150px",flexBasis:"100%"},wrapperBody:!1,isFixedHeight:!1,isFixedWidth:!0,onEvent:{click:{weight:0,actions:[]}},themeCss:{baseControlClassName:{"radius:default":{"top-left-border-radius":"6px","top-right-border-radius":"6px","bottom-left-border-radius":"6px","bottom-right-border-radius":"6px"},"border:default":{"top-border-width":"var(--borders-width-4)","left-border-width":"var(--borders-width-2)","right-border-width":"var(--borders-width-2)","bottom-border-width":"var(--borders-width-2)","top-border-style":"var(--borders-style-2)","left-border-style":"var(--borders-style-2)","right-border-style":"var(--borders-style-2)","bottom-border-style":"var(--borders-style-2)","top-border-color":"var(--colors-brand-6)","left-border-color":"var(--colors-brand-10)","right-border-color":"var(--colors-brand-10)","bottom-border-color":"var(--colors-brand-10)"},"padding-and-margin:default":{paddingTop:"10px",paddingRight:"10px",paddingBottom:"10px",paddingLeft:"10px",marginRight:"15px"}}},id:"u:b39411e7f540"},placeholder:"",name:"",style:{gutterX:15,gutterY:15},id:"u:1f941707f77f"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{className:"text-left",name:"items",columnsCount:2,style:__assign$3(__assign$3({},$P.scaffold.style),{transform:"scale(0.5)",width:"600px",transformOrigin:"left top"}),items:[{},{},{},{}]}),$P.panelTitle=i18n("6223c41373004e3111e768225450b4e8"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme,rme=tme.schema.type==="crud",ime=(nme=(ame=tme==null?void 0:tme.schema)===null||ame===void 0?void 0:ame.style)===null||nme===void 0?void 0:nme.position,ome=ime==="fixed"||ime==="absolute";return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},rme?null:getSchemaTpl("formItemName",{label:i18n("41a344642681efaaa418c228ba7fb45c")}),getSchemaTpl("cardsPlaceholder")]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([{title:i18n("bb79667f37035e9562ec6bcffd6cf8ef"),body:[{name:"columnsCount",type:"input-range",visibleOn:"!this.leftFixed",min:0,max:12,step:1,label:i18n("fcd70206ed8109b7ed361c7bce0922c4"),description:i18n("3cf0da9fe51f92842e0a6d375fa5c605")},{type:"input-number",label:i18n("3ccfcb4c0daac7bb3ef1399b4389e3e5"),name:"style.gutterX"},{type:"input-number",label:i18n("ab57255c391c3732b4b38ae78f55e058"),name:"style.gutterY"},getSchemaTpl("switch",{name:"masonryLayout",label:i18n("953e91f3df59837ac2965cc04dec4b0d")}),getSchemaTpl("layout:originPosition",{visibleOn:ome||void 0,value:"left-top"})]}],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))}])]},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame={$id:"cards",type:"object",title:i18n("390d9ad686ba5622d49443d1e3659d51"),properties:{}},nme=$P.schema.source&&String($P.schema.source).match(/{([\w-_]+)}/),rme=$P.schema.name||(nme==null?void 0:nme[1]),ime=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type));if(ime){var ome=this.manager.dataSchema.current;this.manager.dataSchema.switchTo(ime.parent);var lme=this.manager.dataSchema.getSchemaByPath(rme);this.manager.dataSchema.switchTo(ome),isObject$8(lme==null?void 0:lme.items)&&(ame=__assign$3(__assign$3({},ame),lme.items),set$1(ame,"properties.index",{type:"number",title:i18n("b271e427962758c71e342a2c06df493a")}))}return ame},eme.prototype.filterProps=function($P,tme){var ame,nme=($P.columnsCount||3)*2;return tme.state.value||tme.updateState({value:repeatArray({},nme).map(function(rme,ime){return __assign$3(__assign$3({},rme),{id:ime+1})})}),$P.className="".concat($P.className||""," ae-Editor-list"),$P.itemsClassName="".concat($P.itemsClassName||""," cards-items"),$P.card&&!(!((ame=$P.card.className)===null||ame===void 0)&&ame.includes("listItem"))&&($P.card=merge$4({className:"".concat($P.card.className||""," ae-Editor-listItem")},$P.card)),$P=escapeFormula($P),$P},eme.prototype.getRendererInfo=function($P){var tme,ame=this,nme=$P.renderer,rme=$P.schema;return!rme.$$id&&((tme=rme.$$editor)===null||tme===void 0?void 0:tme.renderer.name)==="crud"&&nme.name==="cards"?__assign$3(__assign$3({},{id:rme.$$editor.id}),{name:ame.name,regions:ame.regions,patchContainers:ame.patchContainers,vRendererConfig:ame.vRendererConfig,wrapperProps:ame.wrapperProps,wrapperResolve:ame.wrapperResolve,filterProps:ame.filterProps,$schema:ame.$schema,renderRenderer:ame.renderRenderer,memberImmutable:ame.memberImmutable}):x_.prototype.getRendererInfo.call(this,$P)},eme.id="CardsPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(CardsPlugin);var TablePlugin=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.rendererName="table",tme.$schema="/schemas/TableSchema.json",tme.name=i18n("642d94fa418e15a3997bcf7488315e4d"),tme.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],tme.isBaseComponent=!0,tme.description=i18n("ea2b32f5d78d2305b9b7bc21e056a009"),tme.docLink="/amis/zh-CN/components/table",tme.icon="fa fa-table",tme.pluginIcon="table-plugin",tme.scaffold={type:"table",columns:[{label:i18n("20aadc3f9b7edb564dc58898898e0dc8"),name:"a"}]},tme.regions=[{key:"columns",label:i18n("1f9794dd5634220ed0a498c666cf46fe"),renderMethod:"renderTableContent",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7"),dndMode:"position-h"}],tme.previewSchema={type:"table",className:"text-left m-b-none",affixHeader:!1,items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}],columns:[{label:"A",name:"a"},{label:"B",name:"b"}]},tme.panelTitle=i18n("b339aa87104709397ba68e7ebbc6e5ba"),tme.events=[{eventName:"selectedChange",eventLabel:i18n("257f5a3886d87d2255206f86b880d07e"),description:i18n("6130b1f75d624b2f73f5d923492e92f7"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{selectedItems:{type:"array",title:i18n("94935dfa6c9b908515a593956ee7d07c")},unSelectedItems:{type:"array",title:i18n("f10b94a4ac77878be53fad599a761928")}}}}}]},{eventName:"columnSort",eventLabel:i18n("f3d21138c8ecf5683503c4f814cc7199"),description:i18n("d84464cfb2a5828a200fe9c28a323122"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{orderBy:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},orderDir:{type:"string",title:i18n("c35c1a13309c6f9da9837857517e65fc")}}}}}]},{eventName:"columnFilter",eventLabel:i18n("3d0b957a99d0c366612c01913e17a0c7"),description:i18n("b35963687361af98e6acdc004e87fc3c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{filterName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},filterValue:{type:"string",title:i18n("e125986c2ba6783c4297ffe5405cc8bc")}}}}}]},{eventName:"columnSearch",eventLabel:i18n("93a5a0253f11e3a2e58f4e87a52fb094"),description:i18n("6d4c4990ab2c32efe8a17c5f22e10cb5"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{searchName:{type:"string",title:i18n("8f98291c9fa89c0bfce463c0a2eaf97c")},searchValue:{type:"object",title:i18n("caafbcb52c70ad0bbbbf127ee7b08b89")}}}}}]},{eventName:"orderChange",eventLabel:i18n("85ddd38957256b6e9026f42ed570bc35"),description:i18n("d7a66def82af88cd5d408e38feb8a65a"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{movedItems:{type:"array",title:i18n("64ef585f778c9d1b010e86b032398ab6")}}}}}]},{eventName:"columnToggled",eventLabel:i18n("ecfebbc91e2c18a512aeb11b7da15193"),description:i18n("c94f45773a42dc386b9c9dcdc6fa542b"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{columns:{type:"array",title:i18n("db9df54392e408520ca12c6a56113b5a")}}}}}]},{eventName:"rowClick",eventLabel:i18n("76e47871d654c3b0b0e301c0a076e55a"),description:i18n("cc13521eab2c7423b3fb857772405cc3"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]},{eventName:"rowDbClick",eventLabel:i18n("1385df54facf9564658f05d0e9e2c3c7"),description:i18n("1c00d9cceec92084b116a382f2714ebb"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]},{eventName:"rowMouseEnter",eventLabel:i18n("5db079b140feffa84c84d1b51d824dea"),description:i18n("90a5608bcd85a3cfcfbb5263a229915c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]},{eventName:"rowMouseLeave",eventLabel:i18n("e8bf039de5dc6751c4045f55930e0c83"),description:i18n("f1ca0d305f3251a81f361a2dc8e11fff"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{item:{type:"object",title:i18n("bf2a4fd8ecd654982e2d466f10f54d3f")},index:{type:"number",title:i18n("f74fd69ce55e3f96fe9a032c0da42330")},indexPath:{type:"number",title:"行索引路劲"}}}}}]}],tme.actions=[{actionType:"select",actionLabel:i18n("8eb3c8b16106e5487cd1fa3b8a1342ce"),description:i18n("908cc16fe4f7972450167e26276ac726"),innerArgs:["selected"],descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("e366ccf1556c0672dcecba135ed5472e"),buildLinkActionDesc(rme.manager,ame),i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"))},schema:getArgsWrapper([getSchemaTpl("formulaControl",{name:"selected",label:i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"),variables:"${variables}",size:"lg",mode:"horizontal"})])},__assign$3({actionType:"selectAll",actionLabel:i18n("366a3c07289bd6efb7c2a182f7a12772"),description:i18n("e97c09cd119b64ae0a8dfd42a1d449cb")},getActionCommonProps("selectAll")),{actionType:"clearAll",actionLabel:i18n("c3e8652924c258e121eed16414d3a9e5"),description:i18n("7619ec29c0a854dd49e0a7a47bf1a127"),descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("288f0c404c4e546aa3683ff5054e85e2"),buildLinkActionDesc(rme.manager,ame),i18n("a2b39e5a8b5015234dcd8e07a2e00e3d"))}},{actionType:"initDrag",actionLabel:i18n("b94bd878cae4ddc567b00a2dc4f21d74"),description:i18n("5dc3017c21ae2e31ab127dbde8ec80e9"),descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),buildLinkActionDesc(rme.manager,ame),i18n("c360e994dbcffdf31e86d2d8875370e1"))}},{actionType:"cancelDrag",actionLabel:"取消排序",description:"取消表格拖拽排序功能",descDetail:function(ame,nme,rme){return React__default.createElement("div",{className:"action-desc"},i18n("625fb26b4b3340f7872b411f401e754c"),buildLinkActionDesc(rme.manager,ame),i18n("c360e994dbcffdf31e86d2d8875370e1"))}}],tme.panelJustify=!0,tme.panelBodyCreator=function(ame){var nme=ame.schema.type==="crud",rme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"title",type:rme?"input-text-i18n":"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")},nme?null:getSchemaTpl("sourceBindControl",{label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0")}),{name:"combineNum",label:tipedLabel(i18n("25915fb58615ba9a5e145efa252fec30"),i18n("80174cabf025dfe269aee5390b813708")),type:"input-number",labelAlign:"left",horizontal:{left:5,right:7},placeholder:i18n("d7d0936858fcdf4ffdb2899451ec74fc")},{type:"ae-switch-more",mode:"normal",formType:"extend",label:i18n("86aafaa75b388deb4a4cbdab2293c099"),name:"showHeader",pipeIn:function(ime){return ime??!0},form:{body:[{children:React__default.createElement(Button$1,{level:"primary",size:"sm",block:!0,onClick:tme.editHeaderDetail.bind(tme,ame.id)},i18n("e6aa1b827415217c524ae9d9b665cca5"))}]}},{type:"ae-switch-more",mode:"normal",formType:"extend",label:i18n("12c4c5e8abda77e1fdc93653d6414187"),name:"showFooter",pipeIn:function(ime){return ime??!0},form:{body:[{children:React__default.createElement(Button$1,{level:"primary",size:"sm",block:!0,onClick:tme.editFooterDetail.bind(tme,ame.id)},i18n("a2ecfd5a0db9c855f59eea75083678e6"))}]}}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"columnsTogglable",label:tipedLabel(i18n("de0302f6f891653ac2d8417a46249ebf"),i18n("142184926b0ae6169a9b7bdefb9b42ff")),type:"button-group-select",pipeIn:defaultValue("auto"),size:"sm",labelAlign:"left",options:[{label:i18n("3aed2c11e95a9c0ea1d853d4aee72e8c"),value:"auto"},{label:i18n("cc42dd3170fdf36bdc2b0f58ab23eb84"),value:!0},{label:i18n("b15d91274e9fc68608c609999e0413fa"),value:!1}]},getSchemaTpl("switch",{name:"affixHeader",label:i18n("e8bb313fb86cf474c0e264794bc85896"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"footable",label:tipedLabel(i18n("5006fdc5659989e42c3855c17c57f878"),i18n("9db359f376a1a588ef7dcbef53cc114a")),pipeIn:function(ime){return!!ime}}),{name:"footable.expand",type:"button-group-select",size:"sm",visibleOn:"this.footable",label:i18n("df74194830e695efbfce16c0c64223cf"),pipeIn:defaultValue("none"),options:[{label:i18n("94be543c4fd399f0839211464c8583ce"),value:"first"},{label:i18n("9a7b52fc8659f1786907fe93efa85bf7"),value:"all"},{label:i18n("b07deca9076bd3354b1b2709d58d725a"),value:"none"}]},{name:"placeholder",pipeIn:defaultValue(i18n("21efd88b67a39834582ad99aabb9dc60")),type:"input-text",label:i18n("35ba83e053cef95e55dfffde279822b5")},{name:"rowClassNameExpr",type:"input-text",label:i18n("76b3250fb1e8593fac075b64029300fa"),placeholder:"支持模板语法，如 <%= this.id % 2 ? 'bg-success' : '' %>"}]},{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:i18n("5e5d3f13111593b2710673006d4c8297")}),getSchemaTpl("className",{name:"tableClassName",label:i18n("b339aa87104709397ba68e7ebbc6e5ba")}),getSchemaTpl("className",{name:"headerClassName",label:i18n("9e25d776a57c610940bcc1c19847b97d")}),getSchemaTpl("className",{name:"footerClassName",label:i18n("2ec1b0bb189b486945e79c167a4a024d")}),getSchemaTpl("className",{name:"toolbarClassName",label:i18n("012f602372cd2dbd639cd966c63e1f90")})]}])},nme?null:{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig(tme.manager,ame)))]}])},tme.unWatchWidthChange={},tme.dsManager=new DSBuilderManager($P),tme}return Object.defineProperty(eme.prototype,"scaffoldForm",{get:function(){var $P=getI18nEnabled();return{title:i18n("6b93fcfc1a5795189c6072fa6e86d4f6"),body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:i18n("0c14e431f1b5ecd163f8fa010a0654c7"),draggable:!0,items:[{type:$P?"input-text-i18n":"input-text",name:"label",placeholder:i18n("32c65d8d7431e76029678ec7bb73a5ab")},{type:"input-text",name:"name",placeholder:i18n("41a344642681efaaa418c228ba7fb45c")},{type:"select",name:"type",placeholder:i18n("226b0912184333c81babf2f1894ec0c1"),value:"text",options:[{value:"text",label:i18n("ffb01e5bcf4c00447f5150d3cba81371")},{value:"tpl",label:i18n("59cf15fe6b8d659c9bd2f86143534a06")},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0")},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"progress",label:i18n("c7bff79d059a0b7ff9b02441959d8be2")},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b")},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41")},{value:"operation",label:i18n("8abc564260a1564521e0c3a1d5419b4a")}]}]}],canRebuild:!0}},enumerable:!1,configurable:!0}),eme.prototype.filterProps=function($P,tme){if(!tme.state.value){var ame=resolveArrayDatasource($P);if(!Array.isArray(ame)||!ame.length){var nme={};Array.isArray($P.columns)&&$P.columns.forEach(function(rme){rme.name&&setVariable(nme,rme.name,mockValue(rme))}),tme.updateState({value:repeatArray(nme,1).map(function(rme,ime){return __assign$3(__assign$3({},rme),{id:ime+1})})})}else tme.updateState({value:ame.slice(0,3)})}return $P.resizable=!1,$P},eme.prototype.getRendererInfo=function($P){var tme,ame=this,nme=$P.schema,rme=$P.renderer;return!nme.$$id&&((tme=nme.$$editor)===null||tme===void 0?void 0:tme.renderer.name)==="crud"&&rme.name==="table"?__assign$3(__assign$3({},{id:nme.$$editor.id}),{name:ame.name,regions:ame.regions,patchContainers:ame.patchContainers,vRendererConfig:ame.vRendererConfig,wrapperProps:ame.wrapperProps,wrapperResolve:ame.wrapperResolve,filterProps:ame.filterProps,$schema:ame.$schema,renderRenderer:ame.renderRenderer}):x_.prototype.getRendererInfo.call(this,$P)},eme.prototype.beforeInsert=function($P){var tme,ame,nme,rme,ime=$P.context;(ime.info.plugin===this||((tme=ime.node.sameIdChild)===null||tme===void 0?void 0:tme.info.plugin)===this)&&ime.region==="columns"&&(ime.data=__assign$3(__assign$3({},ime.data),{label:(rme=(ame=ime.data.label)!==null&&ame!==void 0?ame:(nme=ime.subRenderer)===null||nme===void 0?void 0:nme.name)!==null&&rme!==void 0?rme:i18n("bcee820bc20342a4d388a35ed32a35fe")}))},eme.prototype.buildDataSchemas=function($P,tme,ame,nme){var rme,ime,ome,lme,sme,cme;return __awaiter(this,void 0,void 0,function(){var dme,ume,fme,pme,xme,hme,bme,mme,vme,gme,yme,_me,$me,Cme,Sme,Tme,Eme,xme,Tme;return __generator(this,function(Ome){switch(Ome.label){case 0:dme={$id:"".concat($P.id,"-").concat($P.type,"-tableRows"),type:"object",properties:{}},ume=$P.children.find(function(Rme){return Rme.isRegion&&Rme.region==="columns"}),fme="".concat(nme==null?void 0:nme.id,"-").concat(nme==null?void 0:nme.type).concat(((rme=$P.parent)===null||rme===void 0?void 0:rme.type)==="cell"?"-currentRow":""),pme=!1,ame&&(pme=someTree(ume==null?void 0:ume.children,function(Rme){return Rme.id===ame.id}),pme&&(xme="".concat($P.id,"-").concat($P.type,"-currentRow"),this.manager.dataSchema.getScope(xme)&&this.manager.dataSchema.removeScope(xme),this.manager.dataSchema.getScope(fme)&&this.manager.dataSchema.switchTo(fme),this.manager.dataSchema.addScope([],xme),this.manager.dataSchema.current.tag=i18n("bf2a4fd8ecd654982e2d466f10f54d3f"),this.manager.dataSchema.current.group=i18n("813a5158d9f7171d20e7df340c5b48f9"))),hme=0,bme=ume.children.concat(),Ome.label=1;case 1:if(!(bme.length>0&&hme<$P.schema.columns.length))return[3,6];mme=bme.shift(),vme=mme.children.concat(),Ome.label=2;case 2:return vme.length?(gme=vme.shift(),yme=gme.schema,yme.name?[4,(ome=(ime=gme.info.plugin).buildDataSchemas)===null||ome===void 0?void 0:ome.call(ime,gme,tme,ame,$P)]:[3,4]):[3,5];case 3:_me=Ome.sent(),dme.properties[yme.name]=__assign$3(__assign$3({},_me),_me!=null&&_me.$id?{}:{$id:"".concat(gme.id,"-").concat(gme.type)}),Ome.label=4;case 4:return[3,2];case 5:return hme++,[3,1];case 6:if($P.schema.source)for($me=$P.schema.source.match(/\$\{(.*?)\}/),Cme=$P.schema.source.match(/\$(\w+$)/),Sme=$me?$me[1]:Cme?Cme[1]:"",Tme=this.manager.dataSchema.getScope("".concat($P.info.id,"-").concat($P.info.type));Tme;)Eme=Tme.schemas.find(function(Rme){var Nme;return(Nme=Rme.properties)===null||Nme===void 0?void 0:Nme[Sme]}),Eme&&(dme=__assign$3(__assign$3({},dme),{properties:__assign$3(__assign$3({},dme.properties),(cme=(sme=(lme=Eme.properties)===null||lme===void 0?void 0:lme[Sme])===null||sme===void 0?void 0:sme.items)===null||cme===void 0?void 0:cme.properties)})),Tme=Eme?void 0:Tme.parent;return(tme==null?void 0:tme.region)==="columns"?[2,dme]:(pme&&(xme="".concat($P.id,"-").concat($P.type,"-currentRow"),Tme=this.manager.dataSchema.getScope(xme),Tme==null||Tme.addSchema(dme)),[2,{$id:"".concat($P.id,"-").concat($P.type),type:"object",properties:{rows:{type:"array",title:i18n("77fdd35933c099cdcb64b71f3fbe7a6c"),items:dme},selectedItems:{type:"array",title:i18n("41c5c859a80b635c23b3b4d1d8b44efb"),items:dme},unSelectedItems:{type:"array",title:i18n("f87912f19be48f36e4e261e585764d6e"),items:dme}}}])}})})},eme.prototype.getAvailableContextFields=function($P,tme,ame){var nme,rme,ime,ome,lme,sme,cme,dme;return __awaiter(this,void 0,void 0,function(){var ume;return __generator(this,function(fme){return((rme=(nme=tme==null?void 0:tme.info)===null||nme===void 0?void 0:nme.renderer)===null||rme===void 0?void 0:rme.name)==="table-cell"&&((ime=$P.parent)===null||ime===void 0?void 0:ime.type)==="service"&&!((sme=(lme=(ome=$P.parent)===null||ome===void 0?void 0:ome.parent)===null||lme===void 0?void 0:lme.path)===null||sme===void 0)&&sme.endsWith("service")?[2,(dme=(cme=$P.parent.parent.info.plugin).getAvailableContextFields)===null||dme===void 0?void 0:dme.call(cme,$P.parent.parent,tme,ame)]:(ume=this.dsManager.getBuilderBySchema($P.schema),ume&&$P.schema.api?[2,ume.getAvailableContextFields({schema:$P.schema,sourceKey:"api",feat:"List"},tme)]:[2])})})},eme.prototype.editHeaderDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"tpl",tpl:i18n("86aafaa75b388deb4a4cbdab2293c099"),wrapperComponent:""};rme&&ime&&this.manager.openSubEditor({title:i18n("e6aa1b827415217c524ae9d9b665cca5"),value:schemaToArray((tme=ime.header)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{header:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.prototype.editFooterDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"tpl",tpl:i18n("12c4c5e8abda77e1fdc93653d6414187"),wrapperComponent:""};rme&&ime&&this.manager.openSubEditor({title:i18n("a2ecfd5a0db9c855f59eea75083678e6"),value:schemaToArray((tme=ime.footer)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{footer:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.prototype.componentRef=function($P,tme){var ame=this,nme,rme;if(tme){var ime=tme.props.store;this.unWatchWidthChange[$P.id]=reaction(function(){return ime.columns.map(function(ome){return ome.pristine.width}).join(",")},function(){tme.updateTableInfoLazy(function(){ame.manager.store.highlightNodes.forEach(function(ome){return ome.calculateHighlightBox()})})})}else(rme=(nme=this.unWatchWidthChange)[$P.id])===null||rme===void 0||rme.call(nme)},eme.id="TablePlugin",eme}(BasePlugin);registerEditorPlugin(TablePlugin);var TableCell2Plugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="cell-field",$P.panelTitle=i18n("dc7558211f2990370954c2e7ca498ee9"),$P.panelIcon="fa fa-columns",$P.panelJustify=!0,$P._dynamicControls={name:function(){return getSchemaTpl("formItemName",{name:"name",label:i18n("4ca07911d10b74cc7c357b510e7cc948"),visibleOn:"this.name !== undefined || this.key === undefined"})},key:function(){return getSchemaTpl("formItemName",{name:"key",label:i18n("4ca07911d10b74cc7c357b510e7cc948"),visibleOn:"this.name === undefined && this.key"})},sorter:function(){return getSchemaTpl("switch",{name:"sorter",hidden:$P._isOpColumn,label:tipedLabel(i18n("b4521626a48dcb61001fc563d2433ed3"),i18n("ac83dbca40c9d2151b5f7d81795535cc"))})},searchable:function(){return[getSchemaTpl("switch",{name:"searchable",label:i18n("af9cbd3988196fc104af4fed9461e152"),hidden:$P._isOpColumn,pipeIn:function(tme){return!!tme}}),{name:"searchable",visibleOn:"this.searchable",asFormItem:!0,label:!1,children:function(tme){var ame,nme=tme.value,rme=tme.onChange,ime=tme.data;nme===!0?nme={}:typeof nme>"u"&&(nme=getVariable(ime,"searchable"));var ome=nme.mode;return nme=__assign$3(__assign$3({},nme),{type:"form",mode:"normal",wrapWithPanel:!1,body:!((ame=nme==null?void 0:nme.body)===null||ame===void 0)&&ame.length?nme.body:[{type:"input-text",name:ime.key}]}),delete nme.mode,React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",onClick:function(){$P.manager.openSubEditor({title:i18n("34dceb7c51000849ea3596fbaab6f67c"),value:nme,onChange:function(lme){return rme(__assign$3(__assign$3({},lme),{mode:ome}),"searchable")}})}},React__default.createElement("span",{className:"inline-flex items-center"},React__default.createElement(Icon$1,{icon:"edit",className:"mr-1 w-3"}),i18n("34dceb7c51000849ea3596fbaab6f67c")))}}]},popover:function(){return{name:"popOver",label:i18n("a193a0f0b38ea06f46b1d3051c433cf5"),type:"ae-switch-more",hidden:$P._isOpColumn,mode:"normal",formType:"extend",bulk:!0,defaultData:{popOver:{mode:"popOver"}},trueValue:{mode:"popOver",body:[{type:"tpl",tpl:i18n("3c87936b95f844aa21605c75d217c8f9")}]},isChecked:function(tme){var ame=tme.data,nme=tme.name;return get$6(ame,nme)},form:{body:[{name:"popOver.mode",type:"button-group-select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),value:"popOver",options:[{label:i18n("02d9819ddaaaeb1b7b22b12608c7e5ca"),value:"popOver"},{label:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"}]},getSchemaTpl("formItemSize",{name:"popOver.size",clearValueOnHidden:!0,visibleOn:'popOver.mode !== "popOver"'}),{type:"select",name:"popOver.position",label:i18n("59b9e2022323a63079c6ddab63fec112"),visibleOn:'popOver.mode === "popOver"',options:["center","left-top","right-top","left-bottom","right-bottom"],clearValueOnHidden:!0},{name:"popOver.trigger",type:"button-group-select",label:i18n("159dbc2fafd57b9d3652f16659b1b519"),options:[{label:i18n("4363c17ebb346b646af55bd8c8075915"),value:"click"},{label:i18n("f6d767f39ba3bf955077a3c0ce81e581"),value:"hover"}],pipeIn:defaultValue("click")},getSchemaTpl("switch",{name:"popOver.showIcon",label:i18n("731f9b470e0948cbf56341a53c423213"),value:!0}),{type:"input-text",name:"popOver.title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab")},{name:"popOver.body",asFormItem:!0,label:!1,children:function(tme){var ame=tme.value;tme.onBulkChange;var nme=tme.onChange;return tme.name,tme.data,ame={body:ame&&ame.body?ame.body:[{type:"tpl",tpl:i18n("3c87936b95f844aa21605c75d217c8f9")}]},React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",onClick:function(){$P.manager.openSubEditor({title:i18n("a0f14a16feaece37026df27feb9070a1"),value:ame,onChange:function(rme){nme(rme?Array.isArray(rme)?rme:rme!=null&&rme.body?rme.body:[]:[])}})}},React__default.createElement("span",{className:"inline-flex items-center"},React__default.createElement(Icon$1,{icon:"edit",className:"mr-1 w-3"}),i18n("a0f14a16feaece37026df27feb9070a1")))}}]}}},quickEdit:function(){return{name:"quickEdit",label:tipedLabel(i18n("9a899d9ab83d8ffa6308fb31e93f23a1"),i18n("9306b956ca5950203ee49a2680cac63d")),type:"ae-switch-more",hidden:$P._isOpColumn,mode:"normal",formType:"extend",bulk:!0,trueValue:{mode:"popOver"},isChecked:function(tme){var ame=tme.data,nme=tme.name;return!!get$6(ame,nme)},form:{body:[{name:"quickEdit.mode",type:"button-group-select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),value:"popOver",options:[{label:i18n("78f395c15aaf8c92d9223f6ca69b41a4"),value:"popOver"},{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"inline"}]},getSchemaTpl("icon",{name:"quickEdit.icon"}),getSchemaTpl("switch",{name:"quickEdit.saveImmediately",label:tipedLabel(i18n("4562be5a3f9823a5f61b25f8d14b2b43"),i18n("8bb1910d5bc3b1b32c1e037978ba9d3b")),pipeIn:function(tme){return!!tme}}),getSchemaTpl("apiControl",{label:i18n("eccba4475f3144e417e55fd96e831e09"),description:i18n("df23e8db7baa38e0d9db41384788a40c"),name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{name:"quickEdit",asFormItem:!0,label:!1,children:function(tme){var ame=tme.value,nme=tme.onBulkChange,rme=tme.name,ime=tme.data;ame===!0?ame={}:typeof ame>"u"&&(ame=getVariable(ime,"quickEdit")),ame=__assign$3({},ame);var ome=ame.mode||"popOver";ame.mode&&delete ame.mode;var lme=ame.saveImmediately;return ame.saveImmediately&&delete ame.saveImmediately,ame=ame.body&&["container","wrapper"].includes(ame.type)?__assign$3({type:"wrapper",body:[]},ame):{type:"wrapper",body:[__assign$3({type:"input-text",name:ime.name},ame)]},React__default.createElement(Button$1,{className:"w-full flex flex-col items-center",onClick:function(){$P.manager.openSubEditor({title:i18n("c3ed36e4abb96c18a6c83350994cdea7"),value:ame,onChange:function(sme){var cme;return nme((cme={},cme[rme]=__assign$3(__assign$3({},sme),{mode:ome,saveImmediately:lme}),cme))}})}},React__default.createElement("span",{className:"inline-flex items-center"},React__default.createElement(Icon$1,{icon:"edit",className:"mr-1 w-3"}),i18n("fba91204d335ae6eda35809023a94f7f")))}}]}}}},$P.panelBodyCreator=function(tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme=$P.manager,ume=$P.dynamicControls;return $P._isOpColumn=((ame=tme==null?void 0:tme.schema)===null||ame===void 0?void 0:ame.type)==="operation",getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),hidden:$P._isOpColumn,body:flattenDeep$1([(nme=ume==null?void 0:ume.name)===null||nme===void 0?void 0:nme.call(ume,tme),(rme=ume==null?void 0:ume.key)===null||rme===void 0?void 0:rme.call(ume,tme),{name:"title",label:i18n("eb2719a7e6cebda7ca234560f21fb448"),type:"input-text"},remarkTpl({name:"remark",label:i18n("3ba265c6b63bde0319822afd6b9a649d"),labelRemark:i18n("7ad83bbe4646a0011ece7fd338d1e189")}),{name:"placeholder",type:"input-text",label:tipedLabel(i18n("940b12c19fcf7aced0cdd164edc9acbc"),i18n("f35c90b504521a2da346960b9db23828")),value:"-"}]).filter(Boolean)},(ime=ume==null?void 0:ume.relationBuildSetting)===null||ime===void 0?void 0:ime.call(ume,tme),{title:i18n("f4a3780b66d65a315a762976ab5e781f"),hidden:!$P._isOpColumn,body:[{type:"ae-feature-control",strictMode:!1,label:!1,manager:dme,addable:!0,sortable:!0,removeable:!0,features:function(){var fme,pme,hme=dme.store.getNodeById(tme.id);return((pme=(fme=hme==null?void 0:hme.schema)===null||fme===void 0?void 0:fme.buttons)!==null&&pme!==void 0?pme:[]).map(function(bme,mme){return{label:bme.label,value:bme.$$id||"",remove:function(vme){var gme;!((gme=vme==null?void 0:vme.buttons)===null||gme===void 0)&&gme.length&&vme.buttons.splice(mme,1)}}})},goFeatureComp:function(fme){return fme.value},onSort:function(fme,pme){var hme;((hme=fme==null?void 0:fme.buttons)===null||hme===void 0?void 0:hme.length)>1&&(fme.buttons[pme.oldIndex]=fme.buttons.splice(pme.newIndex,1,fme.buttons[pme.oldIndex])[0])},customAction:function(fme){var pme=fme.onBulkChange,hme=fme.schema;return{type:"button",label:i18n("f9f2b9cc91cd332db6b2b732c3869233"),level:"enhance",className:"ae-FeatureControl-action",onClick:function(){hme.buttons.push({label:i18n("f9f2b9cc91cd332db6b2b732c3869233"),level:"link"}),pme(hme)}}}}]},{title:i18n("949a8b7bd2c10070a2fae16f9c66afbb"),body:flattenDeep$1([{type:"ae-columnWidthControl",name:"width",label:!1,formLabel:i18n("bdd9d38d7e2929024089363dc8f48b7a")},{type:"select",name:"align",label:i18n("d5bc35360607472de4525358af126de4"),hidden:$P._isOpColumn,options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"}]},{type:"select",name:"fixed",label:i18n("a0dbb2b0a000cdb3a265d096d4e5ed8d"),hidden:$P._isOpColumn,options:[{label:i18n("9ed8a4c5d1b3726121175dc986268b0c"),value:!1},{label:i18n("00ed921de3ababcafcb0594ff0e9a997"),value:"left"},{label:i18n("a5b48f7807e3c1ddd80fa160f46f9cc9"),value:"right"}]},{type:"ae-Switch-More",mode:"normal",name:"copyable",label:i18n("f9a9fcc3bf6a3c8ff1e99fa48ed6d03d"),hiddenOnDefault:!0,formType:"extend",form:{body:[{name:"copyable.content",visibleOn:"this.copyable",type:"ae-formulaControl",label:i18n("6a086902a84969a835423002718e86b4")}]}},(ome=ume==null?void 0:ume.sorter)===null||ome===void 0?void 0:ome.call(ume,tme),(lme=ume==null?void 0:ume.searchable)===null||lme===void 0?void 0:lme.call(ume,tme),(sme=ume==null?void 0:ume.popover)===null||sme===void 0?void 0:sme.call(ume,tme),(cme=ume==null?void 0:ume.quickEdit)===null||cme===void 0?void 0:cme.call(ume,tme)]).filter(Boolean)}].filter(Boolean))}])},$P}return eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema;return this.rendererName===(tme==null?void 0:tme.name)?{name:ame.title?"<".concat(ame.title,">列"):i18n("044892c0c637f2d9e78e78956b1ded01"),$schema:"/schemas/TableSchema.json",multifactor:!0,wrapperResolve:function(nme){var rme,ime,ome=(rme=nme.parentElement)===null||rme===void 0?void 0:rme.parentElement,lme=ome==null?void 0:ome.getAttribute("data-col"),sme=(ime=nme.closest("table").parentElement)===null||ime===void 0?void 0:ime.parentElement;return[].slice.call(sme==null?void 0:sme.querySelectorAll('th[data-col="'.concat(lme,`"],
              td[data-col="`).concat(lme,'"]')))}}:x_.prototype.getRendererInfo.call(this,$P)},eme.prototype.beforeReplace=function($P){var tme=$P.context;tme.info.plugin===this&&tme.data&&(tme.data.title=tme.data.title||tme.schema.title,tme.data.key=tme.data.key||tme.schema.key)},eme.prototype.afterBuildPanelBody=function($P){var tme,ame,nme=$P.context,rme=nme.context;nme.data,!(!(!((ame=(tme=rme.node.parent)===null||tme===void 0?void 0:tme.parent)===null||ame===void 0)&&ame.type)||rme.node.parent.parent.type!=="table2")&&([{sameName:rme.info.renderer.isFormItem?"name":void 0,name:"name",type:"ae-DataBindingControl",label:i18n("4ca07911d10b74cc7c357b510e7cc948"),onBindingChange:function(ime,ome){var lme,sme=((lme=ime==null?void 0:ime.resolveColumnSchema)===null||lme===void 0?void 0:lme.call(ime,"List"))||{title:ime.label};ome(sme)}},{sameName:rme.info.renderer.isFormItem?"label":void 0,name:"title",label:i18n("eb2719a7e6cebda7ca234560f21fb448"),type:"input-text"},remarkTpl({name:"remark",label:i18n("3ba265c6b63bde0319822afd6b9a649d"),labelRemark:i18n("7ad83bbe4646a0011ece7fd338d1e189")}),{name:"placeholder",type:"input-text",label:tipedLabel(i18n("940b12c19fcf7aced0cdd164edc9acbc"),i18n("f35c90b504521a2da346960b9db23828")),value:"-"}].filter(Boolean),getSchemaTpl("switch",{name:"sorter",label:tipedLabel(i18n("b4521626a48dcb61001fc563d2433ed3"),i18n("ac83dbca40c9d2151b5f7d81795535cc"))}),getSchemaTpl("switch",{name:"searchable",label:i18n("af9cbd3988196fc104af4fed9461e152"),pipeIn:function(ime){return!!ime}}))},Object.defineProperty(eme.prototype,"dynamicControls",{get:function(){return this._dynamicControls},set:function($P){if(!$P||!isObject$8($P))throw new Error(i18n("44c9d7cb031327029dd0b1bc92689542"));this._dynamicControls=__assign$3(__assign$3({},this._dynamicControls),$P)},enumerable:!1,configurable:!0}),eme.id="TableCell2Plugin",eme}(BasePlugin);registerEditorPlugin(TableCell2Plugin);var ChartConfigEditor=function(x_){var eme=x_.value,$P=x_.onChange;return React__default.createElement("div",{className:"ae-JsonEditor"},React__default.createElement(AMisCodeEditor,{value:eme,onChange:$P}))},DEFAULT_EVENT_PARAMS=[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{componentType:{type:"string",title:"componentType"},seriesType:{type:"string",title:"seriesType"},seriesIndex:{type:"number",title:"seriesIndex"},seriesName:{type:"string",title:"seriesName"},name:{type:"string",title:"name"},dataIndex:{type:"number",title:"dataIndex"},data:{type:"object",title:"data"},dataType:{type:"string",title:"dataType"},value:{type:"number",title:"value"},color:{type:"string",title:"color"}}}}}],chartDefaultConfig={xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}],backgroundColor:"transparent"},ChartPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="chart",$P.$schema="/schemas/ChartSchema.json",$P.name=i18n("d09504750ebc1d75c38d86e16060f83d"),$P.isBaseComponent=!0,$P.description=i18n("10e14f791d73c7c0f4113787f36f1626"),$P.docLink="/amis/zh-CN/components/chart",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-pie-chart",$P.pluginIcon="chart-plugin",$P.scaffold={type:"chart",config:chartDefaultConfig,replaceChartOption:!0},$P.previewSchema=__assign$3({},$P.scaffold),$P.events=[{eventName:"init",eventLabel:i18n("2cb472ff9cad0c89a033c53996b52053"),description:i18n("76ddcc0ad85aa4be6875b73244a64faf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"click",eventLabel:i18n("2ea6f1f33dec7cb3c23a1bf1f9eab11a"),description:i18n("fe9228649853d08eebee72ad5521a3dd"),dataSchema:DEFAULT_EVENT_PARAMS},{eventName:"mouseover",eventLabel:i18n("728c7cdfa431821d291b5108394ec65a"),description:i18n("a643d2fe12d205eb8fb5cffe92f62c35"),dataSchema:DEFAULT_EVENT_PARAMS},{eventName:"legendselectchanged",eventLabel:i18n("764c134791952dd1acb0f23587e75421"),description:i18n("262cd2f688751332c1907a659e686210"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{name:{type:"string",title:"name"},selected:{type:"object",title:"selected"}}}}}]}],$P.actions=[__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("d09504750ebc1d75c38d86e16060f83d"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("name")]},{title:i18n("e7af71fb102cc86ab3be6a2fb32b5e3f"),body:[getSchemaTpl("apiControl",{label:tipedLabel(i18n("31f8a7a967286a16eb404e3ba237619e"),i18n("eabda74dd2ac5b4e6eab9229e0e63f79")),mode:"normal"}),getSchemaTpl("switch",{label:i18n("1396ebc166bd49c1e3b67549a1b4caa0"),name:"initFetch",visibleOn:"this.api.url",pipeIn:defaultValue(!0)}),{name:"interval",label:tipedLabel(i18n("2af32ab13a9dece315cec2764d6aa7d4"),i18n("bc827aaffaa35a95607346cc104c0785")),type:"input-number",step:500,min:1e3,visibleOn:"this.api.url",unitOptions:["ms"]},getSchemaTpl("expressionFormulaControl",{evalMode:!1,label:tipedLabel(i18n("59688d1a484179aef8edc0ccbabb9fc1"),i18n("3fd81a573ea309b203ab019c1aa95a2c")),name:"trackExpression",placeholder:"\\${xxx}"}),{name:"config",asFormItem:!0,component:ChartConfigEditor,mode:"normal",label:tipedLabel(i18n("57c7d1125d2803b946a5b25c3f80f249"),i18n("3d3fa75d8b345b22a5fbd14a65a0af71"))},{name:"dataFilter",type:"ae-functionEditorControl",allowFullscreen:!0,mode:"normal",label:tipedLabel(i18n("d0d852432ce09f627e6ae471b3f86b0a"),i18n("06e89ed3cb501da6d57e35bc28a37089")),renderLabel:!0,params:[{label:"config",tip:i18n("f25c9fd2852b85502157decbedd19082")},{label:"echarts",tip:i18n("2695f318db820c2bfe4c886fed3697f0")},{label:"data",tip:i18n("b76e25de5689ea51af0688d0ea6d7b39")}],placeholder:`debugger; // 可以浏览器中断点调试

// 查看原始数据
console.log(config)

// 返回新的结果 
return {}`},getSchemaTpl("switch",{label:tipedLabel(i18n("d98ef182637b4d10e16e8073c1101e51"),i18n("e8f96ea47cb322f4f1a4c938c7b155ac")),name:"replaceChartOption"})]},{title:i18n("e732f4c0d8075670b6c75cc52bd1f7d5"),body:[{name:"clickAction",asFormItem:!0,label:!1,children:function(ame){var nme=ame.onChange,rme=ame.value;return React__default.createElement("div",{className:"m-b"},React__default.createElement(Button$1,{size:"sm",level:rme?"danger":"info",onClick:$P.editDrillDown.bind($P,tme.id)},i18n("43ddd80698198791d4a738bb20a2d7f4")),rme?React__default.createElement(Button$1,{size:"sm",level:"link",className:"m-l",onClick:function(){return nme("")}},i18n("c8da43fe6ad1c537f86cecb353250145")):null)}}]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([{title:i18n("00958a92c5804d56047c18fc206382e1"),body:[getSchemaTpl("style:widthHeight",{widthSchema:{label:tipedLabel(i18n("c28479019e24e0e4745f4948e9e97ee7"),i18n("51ad722113289f70b6d77c78ddf0c64a")),pipeIn:defaultValue("100%")},heightSchema:{label:tipedLabel(i18n("c1df04eec5fa0857bc0df2d68d8e953c"),i18n("b3e991d11b9f0ee04f55627c62d4fcba")),pipeIn:defaultValue("300px")}})]}],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P}return eme.prototype.editDrillDown=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P),ime=rme.clickAction&&rme.clickAction.dialog||{title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:[i18n("40128a51e9667fe6a20a0454069368ba")]};nme&&rme&&this.manager.openSubEditor({title:i18n("7e3f6245e2a6adb903cf85c77cb1bbd7"),value:__assign$3({type:"container"},ime),slot:{type:"container",body:"$$"},typeMutable:!1,onChange:function(ome){ome=__assign$3(__assign$3({},rme),{clickAction:{actionType:"dialog",dialog:ome}}),tme.panelChangeValue(ome,diff(rme,ome))}})},eme.id="ChartPlugin",eme}(BasePlugin);registerEditorPlugin(ChartPlugin);var SparklinePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="sparkline",$P.$schema="/schemas/SparklineSchema.json",$P.name=i18n("29326bcd28fb39bd41e54242fa532c85"),$P.isBaseComponent=!0,$P.description=i18n("270301455c3de762a7e2b145dac7a8b4"),$P.docLink="/amis/zh-CN/components/sparkline",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-area-chart",$P.pluginIcon="sparkline-plugin",$P.scaffold={type:"sparkline",height:30,value:[3,5,2,4,1,8,3,7]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("29326bcd28fb39bd41e54242fa532c85"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("name")]},{title:i18n("00958a92c5804d56047c18fc206382e1"),body:[{name:"width",type:"input-number",label:i18n("c28479019e24e0e4745f4948e9e97ee7")},{name:"height",type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c")}]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"]})),!1))}])]},$P}return eme.id="SparklinePlugin",eme}(BasePlugin);registerEditorPlugin(SparklinePlugin);var CarouselPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="carousel",$P.$schema="/schemas/CarouselSchema.json",$P.name=i18n("0c0180cb06a322199a67f10d4ec41cd5"),$P.isBaseComponent=!0,$P.description=i18n("1007c97dbf952e032ce13be3cb811f23"),$P.docLink="/amis/zh-CN/components/carousel",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-images",$P.pluginIcon="carousel-plugin",$P.scaffold={type:"carousel",options:[{image:mockValue({type:"image"})},{html:'<div style="width: 100%; height: 300px; background: #e3e3e3; text-align: center; line-height: 300px;">carousel data</div>'},{image:mockValue({type:"image"})}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("0c0180cb06a322199a67f10d4ec41cd5"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path);return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),ame?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:i18n("37b12f2666b9e4e37f33eb5e83533d5e")}:null,{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),name:"__mode",type:"button-group-select",pipeIn:function(nme,rme){var ime=rme.data;return nme===void 0?!ime.name&&!ime.source&&Array.isArray(ime.options)?2:1:nme},options:[{label:i18n("0a2907a421b8f980986117e4f3044f92"),value:1},{label:i18n("e760ec18028fc075c5705bf184589e70"),value:2}]},{label:i18n("d314558953b3c76adb7e131aaec8bd86"),name:"name",type:"input-text",description:i18n("793a763e73f1f742e3a16ddc2ed95ccb"),visibleOn:"this.__mode == 1 || !this.__mode && (this.name || this.source || !Array.isArray(this.options))"},{type:"combo",name:"options",visibleOn:"this.__mode == 2 || !this.__mode && !this.name && !this.source && Array.isArray(this.options)",label:i18n("b9994cc749b4cfbbac0a9b140addd242"),mode:"vertical",multiple:!0,multiLine:!0,addable:!0,removable:!0,typeSwitchable:!1,conditions:[{label:i18n("20def7942674282277c3714ed7ea6ce0"),test:'this.type === "image"',items:[getSchemaTpl("imageUrl",{name:"content"}),getSchemaTpl("imageTitle"),getSchemaTpl("className",{label:i18n("ab8a46ccf46acbf82d020d11468291b1"),name:"titleClassName",visibleOn:'this.type == "image"'}),getSchemaTpl("imageDesc"),getSchemaTpl("className",{label:i18n("c6fc4066471664a8602c636cfe1cc766"),name:"descriptionClassName",visibleOn:'this.type == "image"'}),{type:"input-text",label:i18n("a3f38735bf211edb2066ac4e51b55cb2"),name:"href",visibleOn:'this.type == "image"'}],scaffold:{type:"input-image",image:""}},{label:"HTML",test:'this.type === "html"',items:[getSchemaTpl("richText",{label:i18n("2d711b09bd0db0ad240cc83b30dd8014"),name:"content"})],scaffold:{type:"html",content:i18n("cfb6f6e4c92a61ed0e0717abc8d0eec7")}}],pipeIn:function(nme){return Array.isArray(nme)&&nme.length?nme.map(function(rme){return rme&&rme.hasOwnProperty("html")?{type:"html",content:rme.html}:{type:"image",content:rme.image,title:rme.title,href:rme.href,titleClassName:rme.titleClassName,description:rme.description,descriptionClassName:rme.descriptionClassName}}):[]},pipeOut:function(nme,rme,ime){return Array.isArray(nme)&&nme.length?nme.map(function(ome){return ome.type==="html"?{html:ome.content}:{image:ome.content,href:ome.href,title:ome.title,titleClassName:ome.titleClassName,description:ome.description,descriptionClassName:ome.descriptionClassName}}):[]}}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("switch",{name:"auto",label:i18n("97cc997910b99083bd23c6ac39294ff3"),pipeIn:defaultValue(!0)}),getSchemaTpl("valueFormula",{rendererSchema:{type:"input-number"},name:"interval",label:i18n("9dd651411c1cb25e19249bb4ea8878c3"),valueType:"number",pipeIn:defaultValue(5e3)}),{name:"duration",type:"input-number",label:i18n("46bc66b19c2b589ebd24d1c583325080"),min:100,step:10,size:"sm",pipeIn:defaultValue(500)},{name:"animation",label:i18n("5bc37c57ee54d407f441b222f02391db"),type:"button-group-select",pipeIn:defaultValue("fade"),options:[{label:"fade",value:"fade"},{label:"slide",value:"slide"}]},{name:"controlsTheme",label:i18n("8a0d716ded7baa7ee356ff39c3cf0bec"),type:"button-group-select",pipeIn:defaultValue("light"),options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},{name:"controls",label:i18n("f7471313dce32bc3669d338764a0d036"),type:"button-group-select",pipeIn:defaultValue("dots,arrows"),multiple:!0,options:[{label:i18n("1c0fe943329339003e9e3c1b12a27fe3"),value:"dots"},{label:i18n("e030190fd1c10b0c967f48e789fa86b1"),value:"arrows"}]},getSchemaTpl("switch",{name:"alwaysShowArrow",label:i18n("9cb33a16b57ef10b79ae76a66379d66f"),clearValueOnHidden:!0,hiddenOn:'!~this.controls.indexOf("arrows")',pipeIn:defaultValue(!1)}),{type:"ae-switch-more",bulk:!0,mode:"normal",name:"multiple",label:i18n("f4f965513462fcc9fe6fe896a9c249d8"),formType:"extend",form:{body:[{name:"multiple.count",label:i18n("0bf60b32f9db93b87e08763b1c815469"),type:"input-number",min:2,step:1}]}},{name:"width",type:"input-text",label:i18n("c28479019e24e0e4745f4948e9e97ee7"),validations:"isNumeric",addOn:{type:"button",label:"px"}},{name:"height",type:"input-text",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),validations:"isNumeric",addOn:{type:"button",label:"px"}}]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]},getSchemaTpl("theme:base",{title:i18n("0c0180cb06a322199a67f10d4ec41cd5")}),{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[{name:"themeCss.baseControlClassName.--image-images-prev-icon",label:i18n("d63b707be8a6feb914a3f6899c38770f"),type:"icon-select",returnSvg:!0},{name:"themeCss.baseControlClassName.--image-images-next-icon",label:i18n("911f1640e858c362bfb3ba9a55e8269a"),type:"icon-select",returnSvg:!0},getSchemaTpl("theme:select",{label:i18n("8a0b967b90e89dd8e7311065c1de720a"),name:"themeCss.galleryControlClassName.width:default"})]},getSchemaTpl("theme:cssCode")])}])]},$P}return eme.prototype.filterProps=function($P){return $P.auto=!1,$P},eme.prototype.buildEditorToolbar=function($P,tme){if($P.info.plugin===this&&$P.info.renderer.name==="carousel"&&!$P.info.hostId){var ame=$P.node;tme.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:i18n("ad5a36ee5f4054594c30b6dc481e2d81"),onClick:function(){var nme,rme=ame.getComponent();(nme=rme==null?void 0:rme.prev)===null||nme===void 0||nme.call(rme)}}),tme.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:i18n("49e0f68798e3c69b7990076bd8f1f47f"),onClick:function(){var nme,rme=ame.getComponent();(nme=rme==null?void 0:rme.next)===null||nme===void 0||nme.call(rme)}})}},eme.id="CarouselPlugin",eme}(BasePlugin);registerEditorPlugin(CarouselPlugin);var ImagePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="image",$P.$schema="/schemas/ImageSchema.json",$P.name=i18n("67997ccf7ea846c3c2d278b01ed9600b"),$P.isBaseComponent=!0,$P.description=i18n("6dcf991e992a0b765df0933411fe9bb2"),$P.docLink="/amis/zh-CN/components/image",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-photo",$P.pluginIcon="image-plugin",$P.scaffold={type:"image"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{thumbMode:"cover",value:mockValue({type:"image"})}),$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),defaultShow:!0,dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.actions=[{actionType:"preview",actionLabel:i18n("645dbc5504e722a30896486085a06b32"),description:i18n("9aa70276e6d364abdc0543deccea2dac"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("645dbc5504e722a30896486085a06b32"),buildLinkActionDesc(nme.manager,tme))}},{actionType:"zoom",actionLabel:i18n("893a9d45e4df161d0b0c57340631bd2f"),description:i18n("e8aaab64292d8b17db25a1ab44bcd8e0"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},"调整",buildLinkActionDesc(nme.manager,tme),"图片比例")},schema:{type:"container",body:[getArgsWrapper([getSchemaTpl("formulaControl",{name:"scale",mode:"horizontal",variables:"${variables}",horizontal:{leftFixed:4},label:tipedLabel(i18n("28a7e3af290b229c490da0ad4e9b700e"),i18n("7f2081cebf9bd4b10b953b4008c4b568")),value:50,size:"lg"})])]}}],$P.panelTitle=i18n("20def7942674282277c3714ed7ea6ce0"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path),nme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"title",type:nme?"input-text-i18n":"input-text",label:i18n("c6c7456d446d62a906c2809b6ba19ce1")},{name:"imageCaption",type:nme?"input-text-i18n":"input-text",label:i18n("098c3d959911b48b4d912cb85ccc4942")},{name:"imageMode",label:i18n("1fdadb49bcabfdc36a4a9e020f597f4d"),type:"select",pipeIn:defaultValue("thumb"),options:[{label:i18n("0f088d8f579c362068d7a3858e207280"),value:"thumb"},{label:i18n("fb43d5ffa21f3c4055c29fad350f27e4"),value:"original"}]},ame?null:getSchemaTpl("imageUrl",{name:"src",label:i18n("582570bef8c57c5af7658c4a4eea45ff"),description:i18n("1193e1aab7bea094279ae7b4288ba848")}),getSchemaTpl("backgroundImageUrl",{name:"editorSetting.mock.src",label:tipedLabel(i18n("1fd65acd90f99791d70ca70e046c9f05"),i18n("5789be67da4a1dc0fd9600bd626776a1"))}),{type:"ae-switch-more",mode:"normal",name:"enlargeAble",label:tipedLabel(i18n("26122d95c72204c83ebdc37cd16a96f9"),i18n("a19769d02b8de60a1e3b46c3ef96f122")),value:!1,hiddenOnDefault:!1,formType:"extend",pipeIn:function(rme){return!!rme},form:{body:[getSchemaTpl("imageUrl",{name:"originalSrc",label:i18n("7ffade593e390a2a2cc43e6663461b71"),description:i18n("214953c5f7557b1a5f1310c87238ee03")})]}},{type:"input-text",label:i18n("a3f38735bf211edb2066ac4e51b55cb2"),name:"href",hiddenOn:"this.enlargeAble",clearValueOnHidden:!0},getSchemaTpl("imageUrl",{name:"defaultImage",label:tipedLabel(i18n("d196eb8f65e84003b7ca64d5dd8fc737"),i18n("f5865bf2d791d293374af4aa76d27c4d"))}),getSchemaTpl("formulaControl",{name:"maxScale",mode:"horizontal",label:tipedLabel(i18n("cb90ac33f6b3bf684635d4f57cb290a0"),i18n("7ab252f7aab256f1785c793049d01e13")),value:200}),getSchemaTpl("formulaControl",{name:"minScale",mode:"horizontal",label:tipedLabel(i18n("7d645933c48d5061c2a13dd5f8b9b4fa"),i18n("164f3e6ced78578c534477da66e0b008")),value:50})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:display",{flexHide:!0,value:"inline-block",label:i18n("a5d833839a610994dc4752e2d91f4192")}),{name:"thumbMode",visibleOn:'${!imageMode || imageMode ===  "thumb"}',type:"select",label:i18n("1fdadb49bcabfdc36a4a9e020f597f4d"),mode:"horizontal",labelAlign:"left",horizontal:{left:5,right:7},pipeIn:defaultValue("contain"),options:[{label:i18n("b0267f4aa776e75443b7ef6e8dad257e"),value:"w-full"},{label:i18n("c30b1b6f29debb05449aa3cb40268e7e"),value:"h-full"},{label:i18n("e13556bb3580ac3746e1f8663eb15896"),value:"contain"},{label:i18n("47303119ba97a66d168ff042575b9de4"),value:"cover"}]},getSchemaTpl("theme:size",{label:i18n("c8339fd2a85af4ba66084d28df808de4"),name:"themeCss.imageContentClassName.size:default"})]},getSchemaTpl("theme:base",{classname:"imageControlClassName",title:i18n("20def7942674282277c3714ed7ea6ce0")}),{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[getSchemaTpl("theme:font",{label:i18n("eded9ed93a453c3f790126e30b776a22"),name:"themeCss.titleControlClassName.font",editorValueToken:"--image-image-normal"}),getSchemaTpl("theme:paddingAndMargin",{label:i18n("11d938eaa50cff1b7e59c64b891de73d"),name:"themeCss.titleControlClassName.padding-and-margin",editorValueToken:"--image-image-normal-title"}),getSchemaTpl("theme:font",{label:i18n("36285b8c01571203859d6b8ce7af0cba"),name:"themeCss.desControlClassName.font",editorValueToken:"--image-image-description"}),getSchemaTpl("theme:paddingAndMargin",{label:i18n("a7dcee68c68f8f19f39c9788e08fac31"),name:"themeCss.desControlClassName.padding-and-margin",editorValueToken:"--image-image-description"}),{name:"themeCss.iconControlClassName.--image-image-normal-icon",label:i18n("80dc1f6307e4acf29ece7ac2f6e04334"),type:"icon-select",returnSvg:!0},{name:"themeCss.galleryControlClassName.--image-images-prev-icon",label:i18n("d63b707be8a6feb914a3f6899c38770f"),type:"icon-select",returnSvg:!0},{name:"themeCss.galleryControlClassName.--image-images-next-icon",label:i18n("911f1640e858c362bfb3ba9a55e8269a"),type:"icon-select",returnSvg:!0},getSchemaTpl("theme:select",{label:i18n("8a0b967b90e89dd8e7311065c1de720a"),name:"themeCss.galleryControlClassName.--image-images-item-size"})]},getSchemaTpl("theme:cssCode")])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.onActive=function($P){var tme,ame=$P.context;if(!(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)!==this||!ame.node)){var nme=ame.node;nme.setHeightMutable(!0),nme.setWidthMutable(!0)}},eme.prototype.onWidthChangeStart=function($P){return this.onSizeChangeStart($P,"horizontal")},eme.prototype.onHeightChangeStart=function($P){return this.onSizeChangeStart($P,"vertical")},eme.prototype.onSizeChangeStart=function($P,tme){var ame;tme===void 0&&(tme="both");var nme=$P.context,rme=nme.node;if(((ame=rme.info)===null||ame===void 0?void 0:ame.plugin)===this){var ime=nme.resizer,ome=nme.dom,lme=ome.parentElement.getBoundingClientRect(),sme=ome.getBoundingClientRect(),cme=nme.nativeEvent.pageX,dme=nme.nativeEvent.pageY;$P.setData({onMove:function(ume){var fme=ume.pageY-dme,pme=ume.pageX-cme,hme=Math.max(50,sme.height+fme),bme=Math.max(100,Math.min(sme.width+pme,lme.width)),mme={width:bme,height:hme};tme==="both"?ime.setAttribute("data-value","".concat(bme,"px x ").concat(hme,"px")):tme==="vertical"?(ime.setAttribute("data-value","".concat(hme,"px")),delete mme.width):(ime.setAttribute("data-value","".concat(bme,"px")),delete mme.height),rme.updateState(mme),requestAnimationFrame(function(){rme.calculateHighlightBox()})},onEnd:function(ume){var fme=ume.pageY-dme,pme=ume.pageX-cme,hme=Math.max(50,sme.height+fme),bme=Math.max(100,Math.min(sme.width+pme,lme.width)),mme={width:bme,height:hme};tme==="vertical"?delete mme.width:tme==="horizontal"&&delete mme.height,ime.removeAttribute("data-value"),rme.updateSchema(mme),rme.updateState({},!0),requestAnimationFrame(function(){rme.calculateHighlightBox()})}})}},eme.id="ImagePlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ImagePlugin);var ImagesPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="images",$P.$schema="/schemas/ImagesSchema.json",$P.name=i18n("e040fc4bf539dd1cf6ebca6b4bff857a"),$P.isBaseComponent=!0,$P.description=i18n("93f46deec83b8f9005233a1467498d52"),$P.docLink="/amis/zh-CN/components/images",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-clone",$P.pluginIcon="images-plugin",$P.scaffold={type:"images",imageGallaryClassName:"app-popover :AMISCSSWrapper"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{listClassName:"nowrap",thumbMode:"cover",value:[{title:i18n("2382c315a6ba396be1932dd8dafaff52"),image:mockValue({type:"image"}),src:mockValue({type:"image"})},{title:i18n("ce6e2814f207c9333f10785606c57df3"),image:mockValue({type:"image"}),src:mockValue({type:"image"})}]}),$P.panelTitle=i18n("e040fc4bf539dd1cf6ebca6b4bff857a"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path),nme=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:(ame?[]:[{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),name:"__mode",type:"button-group-select",size:"sm",options:[{label:i18n("0a2907a421b8f980986117e4f3044f92"),value:1},{label:i18n("e760ec18028fc075c5705bf184589e70"),value:2}],onChange:function(rme,ime,ome,lme){rme!==ime&&rme==1&&lme.deleteValueByName("options")}},getSchemaTpl("sourceBindControl",{label:tipedLabel(i18n("45a4922d3f42d0b137c6845c4c77031f"),i18n("47fd366b711a0567646854f541449f8b")),visibleOn:"this.__mode == 1"}),{type:"combo",name:"options",visibleOn:"this.__mode == 2",minLength:1,label:i18n("81a2b634d7ddcffc21b787613673943c"),multiple:!0,multiLine:!0,addable:!0,removable:!0,value:[{}],items:[getSchemaTpl("imageUrl",{name:"image",label:i18n("0f088d8f579c362068d7a3858e207280")}),getSchemaTpl("imageUrl",{name:"src",label:i18n("fb43d5ffa21f3c4055c29fad350f27e4")}),{type:nme?"input-text-i18n":"input-text",label:i18n("c6c7456d446d62a906c2809b6ba19ce1"),name:"title"},{type:nme?"textarea-i18n":"textarea",label:i18n("098c3d959911b48b4d912cb85ccc4942"),name:"caption"}]},getSchemaTpl("switch",{name:"enlargeAble",label:i18n("26122d95c72204c83ebdc37cd16a96f9")})]).concat([getSchemaTpl("imageUrl",{name:"defaultImage",label:tipedLabel(i18n("d196eb8f65e84003b7ca64d5dd8fc737"),i18n("f5865bf2d791d293374af4aa76d27c4d"))})])},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{name:"thumbMode",type:"select",label:i18n("00cedb73310cc531a43d23cfa5ba0e5f"),mode:"horizontal",labelAlign:"left",horizontal:{left:5,right:7},pipeIn:defaultValue("contain"),options:[{label:i18n("b0267f4aa776e75443b7ef6e8dad257e"),value:"w-full"},{label:i18n("c30b1b6f29debb05449aa3cb40268e7e"),value:"h-full"},{label:i18n("e13556bb3580ac3746e1f8663eb15896"),value:"contain"},{label:i18n("47303119ba97a66d168ff042575b9de4"),value:"cover"}]},{name:"thumbRatio",type:"button-group-select",label:i18n("319501b9acacdd6f94a9bdd0637a3cd2"),size:"sm",pipeIn:defaultValue("1:1"),options:[{label:"1:1",value:"1:1"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]}]},getSchemaTpl("theme:base",{classname:"imagesControlClassName",title:i18n("e040fc4bf539dd1cf6ebca6b4bff857a")}),{title:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),body:[{name:"themeCss.galleryControlClassName.--image-images-prev-icon",label:i18n("d63b707be8a6feb914a3f6899c38770f"),type:"icon-select",returnSvg:!0},{name:"themeCss.galleryControlClassName.--image-images-next-icon",label:i18n("911f1640e858c362bfb3ba9a55e8269a"),type:"icon-select",returnSvg:!0},getSchemaTpl("theme:select",{label:i18n("8a0b967b90e89dd8e7311065c1de720a"),name:"themeCss.galleryControlClassName.--image-images-item-size"})]},getSchemaTpl("theme:cssCode")])}])},$P}return eme.id="ImagesPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ImagesPlugin);var dateFormatOptions$2=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"},{label:i18n("84c7af622906c4e9d62bbf905d6ee517"),value:"x"},{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:i18n("8935dbb864f032bacc618b0938887ad7"),value:i18n("8935dbb864f032bacc618b0938887ad7")}],valueDateFormatOptions$1=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"}],DatePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="date",$P.$schema="/schemas/DateSchema.json",$P.name=i18n("356b1959a9da95997b4de31415d9d74e"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.description=i18n("2bc6d101e5701a70f2fb9e0b67581594"),$P.docLink="/amis/zh-CN/components/date",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-calendar",$P.pluginIcon="date-plugin",$P.scaffold={type:"date",value:Math.round(Date.now()/1e3)},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{format:"YYYY-MM-DD",value:Math.round(Date.now()/1e3)}),$P.panelTitle=i18n("356b1959a9da95997b4de31415d9d74e"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-date",name:"value",label:i18n("7441768e25f67a80f0f2173c2a618c35")},{type:"input-text",name:"format",label:tipedLabel(i18n("ecd1a3cadcf1d55250afafbbde767250"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:dateFormatOptions$2,pipeIn:defaultValue("YYYY-MM-DD")},{type:"input-text",name:"valueFormat",label:tipedLabel(i18n("db0258df1ddbd88749b335aecdc8425e"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:valueDateFormatOptions$1,pipeIn:defaultValue("X")},getSchemaTpl("placeholder",{pipeIn:defaultValue("-"),label:i18n("4c1cff4d8c05daa6ed9352a241ee628c")})]},getSchemaTpl("status")])},getSchemaTpl("onlyClassNameTab")])]},$P}return eme.id="DatePlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(DatePlugin);var timeFormatOptions=[{label:"HH:mm",value:"HH:mm",timeFormat:"HH:mm"},{label:"HH:mm:ss",value:"HH:mm:ss",timeFormat:"HH:mm:ss"},{label:i18n("90696835bfa70d38b02ef5533d33c88d"),value:i18n("90696835bfa70d38b02ef5533d33c88d"),timeFormat:"HH:mm"},{label:i18n("6154f88c0ac259ace41b0a5be45d753c"),value:i18n("6154f88c0ac259ace41b0a5be45d753c"),timeFormat:"HH:mm:ss"}],dateFormatOptions$1=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"}],TimePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="time",$P.name=i18n("7ac24322bc8eeac88db6823942423ac3"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.pluginIcon="time-plugin",$P.docLink="/amis/zh-CN/components/date",$P.scaffold={type:"time",value:Math.round(Date.now()/1e3),format:"HH:mm:ss"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{format:"HH:mm:ss",value:Math.round(Date.now()/1e3)}),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-time",name:"value",inputFormat:"HH:mm:ss",timeFormat:"HH:mm:ss",label:i18n("0a72b3858efffaa1bab685fa840b701b")},{type:"input-text",name:"format",label:tipedLabel(i18n("ecd1a3cadcf1d55250afafbbde767250"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:timeFormatOptions,pipeIn:defaultValue("HH:mm:ss")},{type:"input-text",name:"valueFormat",label:tipedLabel(i18n("db0258df1ddbd88749b335aecdc8425e"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:dateFormatOptions$1,pipeIn:defaultValue("X")},getSchemaTpl("placeholder",{pipeIn:defaultValue("-"),label:i18n("4c1cff4d8c05daa6ed9352a241ee628c")})]},getSchemaTpl("status")])},getSchemaTpl("onlyClassNameTab")])]},$P}return eme.id="TimePlugin",eme}(DatePlugin);registerEditorPlugin(TimePlugin);var dateFormatOptions=[{label:i18n("0c6482892e9df6505c8de1eabca68266"),children:[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"},{label:i18n("84c7af622906c4e9d62bbf905d6ee517"),value:"x"}]},{label:i18n("398e51caf9e8fabbeb075833f0c1e701"),children:[{label:"YYYY-MM-DD",value:"YYYY-MM-DD"},{label:"YYYY/MM/DD",value:"YYYY/MM/DD"},{label:i18n("8935dbb864f032bacc618b0938887ad7"),value:i18n("8935dbb864f032bacc618b0938887ad7")}]},{label:i18n("2ca9949e2a05e63f735b713260307c45"),children:[{label:"HH:mm:ss",value:"HH:mm:ss",timeFormat:"HH:mm:ss"},{label:"HH:mm",value:"HH:mm",timeFormat:"HH:mm"},{label:i18n("90696835bfa70d38b02ef5533d33c88d"),value:i18n("90696835bfa70d38b02ef5533d33c88d"),timeFormat:"HH:mm"},{label:i18n("6154f88c0ac259ace41b0a5be45d753c"),value:i18n("6154f88c0ac259ace41b0a5be45d753c"),timeFormat:"HH:mm:ss"}]},{label:i18n("e63e4cf37bf0af962b6ad66243dbe0f4"),children:[{label:"YYYY-MM-DD HH:mm:ss",value:"YYYY-MM-DD HH:mm:ss"},{label:"YYYY/MM/DD HH:mm:ss",value:"YYYY/MM/DD HH:mm:ss"},{label:i18n("3e253325914594e1dc483c0b64ea7643"),value:i18n("3e253325914594e1dc483c0b64ea7643")}]}],valueDateFormatOptions=[{label:i18n("79d7c8cd739a1f94c7bb30c74323eaa7"),value:"X"}],DatetimePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="datetime",$P.scaffold={type:"datetime",format:"YYYY-MM-DD HH:mm:ss",value:Math.round(Date.now()/1e3)},$P.name=i18n("b54e0f0a60f8e2c4c31f3b1ad7d5a613"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!1,$P.pluginIcon="datetime-plugin",$P.docLink="/amis/zh-CN/components/date",$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{format:"YYYY-MM-DD HH:mm:ss",value:Math.round(Date.now()/1e3)}),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-datetime",name:"value",label:i18n("8036cf5e8dbf62ee4f4e896f7354ce5c")},{type:"nested-select",name:"format",hideNodePathLabel:!0,onlyLeaf:!0,label:tipedLabel(i18n("ecd1a3cadcf1d55250afafbbde767250"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:dateFormatOptions,pipeIn:defaultValue("YYYY-MM-DD HH:mm:ss")},{type:"input-text",name:"valueFormat",label:tipedLabel(i18n("db0258df1ddbd88749b335aecdc8425e"),i18n("fcb9b16d5d056bfbf6b6cba9dcf61efa")),clearable:!0,options:valueDateFormatOptions,pipeIn:defaultValue("X")},getSchemaTpl("placeholder",{pipeIn:defaultValue("-"),label:i18n("4c1cff4d8c05daa6ed9352a241ee628c")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray(__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"],baseExtra:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.baseControlClassName.font"})]})),!1),[{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className")]}],!1))}])]},$P}return eme.id="DatetimePlugin",eme.scene=["layout"],eme}(DatePlugin);registerEditorPlugin(DatetimePlugin);var CalendarPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="calendar",$P.$schema="/schemas/Calendar.json",$P.name=i18n("a15e0eac4fe49346a744fa7943c46890"),$P.isBaseComponent=!0,$P.icon="fa fa-calendar",$P.pluginIcon="inputDatetime",$P.panelTitle=i18n("a15e0eac4fe49346a744fa7943c46890"),$P.description=i18n("b13bf2bdf8a7abbd8cdf85683214be45"),$P.docLink="/amis/zh-CN/components/calendar",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.scaffold={type:"calendar"},$P.previewSchema=__assign$3({},$P.scaffold),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("96f9d9fc9cef8b18e3cd1cf9077147d1"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]},{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:{type:"string",title:i18n("a610ef4a4fbe8f0c8b756162acfb6186")}}}}}]}],$P.actions=[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("288f0c404c4e546aa3683ff5054e85e2")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:"将值重置为初始值"},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("valueFormula",{rendererSchema:{type:"input-date"},placeholder:i18n("8f7ae284d0039fe05b9f57fd5ae3ede9"),header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,label:i18n("225f3ed00750ae78ad1e6ea42c8f5087")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P}return eme.id="CalendarPlugin",eme}(BasePlugin);registerEditorPlugin(CalendarPlugin);var presetColors=["#2468f2","#b8babf","#528eff","#30bf13","#f33e3e","#ff9326","#fff","#000"],TagPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tag",$P.$schema="/schemas/TagSchema.json",$P.name=i18n("14d342362f66aa86e2aa1c1e11aa1204"),$P.isBaseComponent=!0,$P.icon="fa fa-tag",$P.pluginIcon="tag-plugin",$P.description=i18n("77ad0879912d0a306724c319eed113e2"),$P.docLink="/amis/zh-CN/components/tag",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.previewSchema={type:"tag",label:i18n("ee66d7a2d02188816d633d11cf1a8b27"),color:"processing"},$P.scaffold={type:"tag",label:i18n("ee66d7a2d02188816d633d11cf1a8b27"),color:"processing"},$P.panelTitle=i18n("14d342362f66aa86e2aa1c1e11aa1204"),$P.panelJustify=!0,$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}},data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{label:{type:"object",title:i18n("341fe804cc8b65dc17a31c7a25a90444")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}},data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{label:{type:"object",title:i18n("341fe804cc8b65dc17a31c7a25a90444")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}},data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{label:{type:"object",title:i18n("341fe804cc8b65dc17a31c7a25a90444")}}}}}]},{eventName:"close",eventLabel:i18n("d04f139ee0fb6fac19ccaec0f7b323df"),description:i18n("fe7967a547915be9ae4083ed50c3b94a"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}},data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{label:{type:"object",title:i18n("341fe804cc8b65dc17a31c7a25a90444")}}}}}]}],$P.actions=[],$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("valueFormula",{name:"label",label:i18n("5cbd7ad8a3ecf059b62219c17fa58cae"),rendererSchema:{type:"input-text"}}),{type:"button-group-select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),name:"displayMode",value:"normal",options:[{label:i18n("35242cff1266fd3610f124b0e5e76f9b"),value:"normal"},{label:i18n("0103eb2d3dca70270d1a74e9ec987ac9"),value:"rounded"},{label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),value:"status"}],onChange:function(ame,nme,rme,ime){ame!=="status"&&ime.setValues({icon:void 0})}},getSchemaTpl("icon",{visibleOn:'this.displayMode === "status"',label:i18n("092c4410e162bb3371f2aab804501f24")}),getSchemaTpl("switch",{label:i18n("cbda486dbec5bdacb593294e240c5e63"),name:"closable"})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),body:[{type:"input-color",label:i18n("9970ad07468267e2f309f1467c75bb80"),name:"color",presetColors,pipeOut:undefinedPipeOut},{type:"input-color",label:i18n("2f97db95d75280bfedc5afa72d2c717d"),name:"style.backgroundColor",presetColors,pipeOut:undefinedPipeOut},{type:"input-color",label:i18n("961534b4ea37e4e88aada736b299d063"),name:"style.borderColor",presetColors,pipeOut:undefinedPipeOut},{type:"input-color",label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"style.color",presetColors,pipeOut:undefinedPipeOut}]},getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.id="TagPlugin",eme}(BasePlugin);registerEditorPlugin(TagPlugin);var JsonPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="json",$P.$schema="/schemas/JsonSchema.json",$P.name=i18n("5acc93183b7fe3816a845aca52baeff2"),$P.isBaseComponent=!0,$P.description=i18n("5a4b81442789f3b2e7b665bd430eeabf"),$P.docLink="/amis/zh-CN/components/json",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-code",$P.pluginIcon="json-view-plugin",$P.scaffold={type:"json"},$P.previewSchema=__assign$3(__assign$3({},$P.scaffold),{name:"json",value:{a:1,b:{c:2}}}),$P.panelTitle="JSON",$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=/\/field\/\w+$/.test(tme.path);return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[ame?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:i18n("8e1fee898434093aad55f5888497f970")}:null,{name:"levelExpand",type:"input-number",label:i18n("f891291cbfaec7ba3754520e2a5227d8"),pipeIn:defaultValue(1)}]},getSchemaTpl("status")])},getSchemaTpl("onlyClassNameTab")])]},$P}return eme.id="JsonPlugin",eme}(BasePlugin);registerEditorPlugin(JsonPlugin);var ProgressPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="progress",$P.$schema="/schemas/ProgressSchema.json",$P.name=i18n("83077805e05ac6bedad69b47fca4462b"),$P.searchKeywords=i18n("c77048def6e8a2d6c556a3fcc9c66730"),$P.isBaseComponent=!0,$P.description=i18n("b1aefb18d4bf96dc283a26d67abc41a8"),$P.docLink="/amis/zh-CN/components/progress",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-angle-double-right",$P.pluginIcon="progress-plugin",$P.scaffold={type:"progress",mode:"line",value:66,strokeWidth:6,valueTpl:"${value}%"},$P.previewSchema=__assign$3({},$P.scaffold),$P.actions=[__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("770fe9e7899cd310b035ef50a39ab2ae")},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("c7bff79d059a0b7ff9b02441959d8be2"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=!!(tme!=null&&tme.info.renderer.isFormItem);return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("226b0912184333c81babf2f1894ec0c1"),name:"mode",type:"select",option:i18n("2dde3029c4170a1c8e961a90766e0194"),pipeIn:defaultValue("line"),tiled:!0,options:[{label:i18n("ce179eca04fab0d584506b0d19736836"),value:"line"},{label:i18n("2db0fcd5342b479688fd999a0108ef5a"),value:"circle"},{label:i18n("3fa8b34a2744f62fe93dd599a275af39"),value:"dashboard"}],onChange:function(nme,rme,ime,ome){nme==="circle"?(ome.setValueByName("gapDegree",0),ome.setValueByName("gapPosition","")):nme==="dashboard"&&(ome.setValueByName("gapDegree",75),ome.setValueByName("gapPosition","bottom"))}},getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"input-number"}),needDeleteProps:["placeholder"],valueType:"number"}),getSchemaTpl("switch",{name:"showLabel",label:i18n("1ca3fa86d8faa46cc75792bcf90d7fff"),pipeIn:defaultValue(!0)}),getSchemaTpl("placeholder",{value:"-",placeholder:i18n("b0932e5bb7f7d95e3636d82d1a039854"),label:tipedLabel(i18n("940b12c19fcf7aced0cdd164edc9acbc"),i18n("9cf66e7783e4c9b1d74bcd411edb6950"))})]},getSchemaTpl("status",{isFormItem:ame})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"select",name:"progressClassName",label:i18n("c8339fd2a85af4ba66084d28df808de4"),value:"",options:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"w-xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"w-sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"w-md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"w-lg"},{label:i18n("18c63459a2c069022c7790430f761214"),value:""}]},{type:"input-number",name:"strokeWidth",label:i18n("2f0faae87508471abce4384b60900e15"),value:6,min:0,max:100},{type:"input-number",name:"gapDegree",visibleOn:'this.mode === "dashboard"',label:i18n("bd9b3f7e564c9eeaedd72f1bcbb7fc9f"),value:75,min:0,max:295},{label:i18n("31a088147dc0006e4775d066980fa688"),name:"gapPosition",type:"button-group-select",visibleOn:'this.mode === "dashboard"',value:defaultValue("bottom"),tiled:!0,options:[{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"},{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}]},getSchemaTpl("switch",{name:"animate",label:i18n("77a7419dd4fad70c3f3e4b075b2c3fcb"),visibleOn:'this.mode === "line"'}),{type:"button-group-select",name:"styleType",label:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),visibleOn:'this.mode === "line"',options:[{label:i18n("a04564aaca658461333b00cbcd071518"),value:"purity"},{label:i18n("0a9fc7083e2768107fc178ff36f29ba0"),value:"stripe"}],pipeIn:function(nme,rme){var ime;return!((ime=rme.data)===null||ime===void 0)&&ime.stripe?"stripe":"purity"},onChange:function(nme,rme,ime,ome){ome.setValueByName("stripe",nme==="stripe")}},getSchemaTpl("combo-container",{name:"map",type:"combo",mode:"normal",multiple:!0,label:tipedLabel(i18n("6b36c6f7ec834692ec6c8e3816349fdd"),i18n("087e631da111edc6db508289a7b5a95b")),items:[{placeholder:"color",type:"input-color",name:"color"},{type:"input-number",name:"value",placeholder:"value",columnClassName:"w-xs",unique:!0,requiredOn:"this.map?.length > 1",min:0,step:10,precision:0}],value:[{color:"#dc3545",value:20},{color:"#fad733",value:60},{color:"#28a745",value:100}],pipeIn:function(nme){return Array.isArray(nme)&&nme.length?typeof nme[0]=="string"?nme.map(function(rme,ime){var ome=100/nme.length;return{value:(ime+1)*ome,color:rme}}):nme.length===1&&!nme[0].value?[{color:nme[0].color,value:100}]:nme:nme?[nme]:[]},pipeOut:function(nme,rme,ime){return nme.length===1&&!nme[0].value?[{color:nme[0].color,value:100}]:nme}})]},getSchemaTpl("style:classNames",{schema:[],isFormItem:ame})])}])},$P}return eme.id="ProgressPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ProgressPlugin);var StatusPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="status",$P.$schema="/schemas/StatusSchema.json",$P.name=i18n("44e13bdad8c7eb6391e84d940513b927"),$P.isBaseComponent=!0,$P.description=i18n("82a3047196be368be13dcdd2373520ff"),$P.docLink="/amis/zh-CN/components/status",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-check-square-o",$P.pluginIcon="status-plugin",$P.scaffold={type:"status",value:1},$P.previewSchema=__assign$3({},$P.scaffold),$P.defaultSource=[{label:"-",value:"0",icon:"fail",status:0},{label:"-",value:"1",icon:"success",status:1},{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"success",icon:"success",status:"success"},{label:i18n("d679aea3aae1201e38c4baaaeef86efe"),value:"pending",icon:"rolling",status:"pending"},{label:i18n("e5ac1d2029adff17ec123b86ea07ce26"),value:"queue",icon:"warning",status:"queue"},{label:i18n("f406ef0ea3f09572835a9b1ec61f576a"),value:"schedule",icon:"schedule",status:"schedule"},{label:i18n("acd5cb847a4aff235c9a01ddeb6f9770"),value:"fail",icon:"fail",status:"fail"}],$P.panelTitle=i18n("3fea7ca76cdece641436d7ab0d02ab1b"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("combo-container",{type:"combo",name:"__source",inputClassName:"ae-Status-control",labelClassName:"ae-Status-label",label:[i18n("774b2bcaca8a64f46c84b510cec89109"),{children:React__default.createElement(TooltipWrapper$1,{tooltipClassName:"ae-Status-default-icon-tooltip",trigger:"hover",rootClose:!0,placement:"bottom",tooltip:{children:function(){return render$2({type:"container",body:[{type:"tpl",tpl:i18n("391299a1c1722a777991a182a44bccbf"),wrapperComponent:"p",className:"ae-Status-default-icon-tip"},{type:"table",data:{items:$P.defaultSource},columns:[{name:"icon",label:i18n("33563f1d3d203bc682069a8c85506b86")},{name:"label",label:i18n("2cc90d2f2cd9ba213f9aace88c386f3f")},{name:"value",label:i18n("aad245582dc9f55cf71e3934bb3b1709")},{name:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),type:"mapping",map:{"*":{type:"status"}}}]}]})}}},React__default.createElement("div",{className:"ae-Status-label-tip-icon"},React__default.createElement(Icon$1,{icon:"editor-help",className:"icon"})))}],mode:"normal",multiple:!0,items:[getSchemaTpl("icon",{label:"",placeholder:i18n("5ef69f62dc668c1a3e68b51c50a2530a"),onChange:function(nme,rme,ime,ome){nme&&nme.name&&ome.setValues({label:nme.name})}}),{type:ame?"input-text-i18n":"input-text",name:"label",placeholder:"label"},{type:"input-text",name:"value",placeholder:"value",unique:!0,required:!0,validationErrors:{isRequired:i18n("2634cea5a95ece79e05b5a68c38cbd4d")}},getSchemaTpl("theme:colorPicker",{label:"",name:"color"})],pipeIn:function(nme,rme){var ime=rme.data;if(nme===void 0){var ome=ime.map,lme=ime.labelMap,sme=ime.source,cme=cloneDeep$1(sme)||{};return ome&&Object.entries(ome).forEach(function(dme){var ume=__read$3(dme,2),fme=ume[0],pme=ume[1];fme===""||fme==null||fme==="$$id"||(cme[fme]?cme[fme]=__assign$3(__assign$3({},cme[fme]),{icon:pme}):cme[fme]={icon:pme})}),lme&&Object.entries(lme).forEach(function(dme){var ume=__read$3(dme,2),fme=ume[0],pme=ume[1];fme===""||fme==null||(cme[fme]?cme[fme]=__assign$3(__assign$3({},cme[fme]),{label:pme}):cme[fme]={label:pme})}),Object.keys(cme).forEach(function(dme,ume){var fme=cme[dme];"key"in fme||(fme.key=dme),"value"in fme||(fme.value=dme)}),Object.values(cme)}else return nme},onChange:function(nme,rme,ime,ome){var lme={};nme.forEach(function(sme){sme.value!==""&&sme.value!=null&&(lme[sme.value]=pick$3(sme,["label","color","icon"]))}),ome.setValues({map:void 0,labelMap:void 0,source:Object.keys(lme).length>0?lme:void 0})}}),getSchemaTpl("valueFormula",{pipeOut:function(nme){return nme==null||nme===""?void 0:nme}}),getSchemaTpl("placeholder",{label:i18n("4c1cff4d8c05daa6ed9352a241ee628c"),pipeIn:defaultValue("-")})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("261bba7ad82914e477f4b37f6a83874e"),body:[getSchemaTpl("className",{label:i18n("5e5d3f13111593b2710673006d4c8297")})]}])}])]},$P}return eme.id="StatusPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(StatusPlugin);var StepsPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="steps",$P.$schema="/schemas/StepsSchema.json",$P.name=i18n("87d88a457161f2a09f95f6aa29b38051"),$P.isBaseComponent=!0,$P.icon="fa fa-forward",$P.pluginIcon="steps-plugin",$P.description=i18n("aacb2b36c47395e4b4b409e351eb4279"),$P.docLink="/amis/zh-CN/components/steps",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.scaffold={type:"steps",value:1,steps:[{title:i18n("863a8583132d087e57aebb7d89e18a50"),subTitle:i18n("72cf373be86a38b29f6d2f15900b0da1"),description:i18n("3bdd08adab6ea90b9164b20a0e4151ac")},{title:i18n("9757f2c59c17e9aea46e0c8adb69597e")},{title:i18n("207e30c0e7318027d521dd7c6fab6a99")}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle="Steps",$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("combo-container",{name:"steps",label:i18n("b8a2d347bdb22fde367a851df8335771"),type:"combo",scaffold:{type:"wrapper",body:i18n("bc78248b34b7bf18691e6d385e0f544b")},minLength:2,multiple:!0,draggable:!0,items:[getSchemaTpl("title",{label:!1,placeholder:i18n("32c65d8d7431e76029678ec7bb73a5ab")}),getSchemaTpl("stepSubTitle"),getSchemaTpl("stepDescription")]}),{name:"value",type:"input-text",label:i18n("59cecbff0cc77511590d2161cc3058e9"),description:i18n("c207ba29769aca6ffd45db9f80bcb29e")},{name:"status",type:"select",label:i18n("6bf1f392c0a404d1f7558e6dcdd6c2e6"),creatable:!0,value:"finish",options:[{label:i18n("fb852fc6cce168301447d1baff276dc5"),value:"process"},{label:i18n("8797922788916874c39ee1524bbc3638"),value:"wait"},{label:i18n("769d88e425e03120b83ee4ed6b9d588e"),value:"finish"},{label:i18n("ad8e01fe719bf1a5af82ee0d100d246b"),value:"error"}]},getSchemaTpl("api",{name:"source",label:i18n("d1f03ea8d9d3c3a241e8a340b8a384d3")})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("switch",{name:"iconPosition",label:"图标文字垂直展示",value:!1}),{name:"mode",type:"select",label:i18n("f0789e79d48f135e5d870753f7a85d05"),value:"horizontal",options:[{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"},{label:i18n("2a9a1329b191c2787b1a70c289e3bbe0"),value:"vertical"},{label:i18n("d517acb68fbed2331b57d1a11ca21dcc"),value:"simple"}]},getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("visible")]}])],$P}return eme.id="StepsPlugin",eme}(BasePlugin);registerEditorPlugin(StepsPlugin);var TimelinePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="timeline",$P.$schema="/schemas/TimelineSchema.json",$P.name=i18n("7cef725b75da8afecda59900b780be75"),$P.isBaseComponent=!0,$P.icon="fa fa-bars",$P.description=i18n("8f32bcb8d5baf6cbb410ef3f6dbed8d5"),$P.docLink="/amis/zh-CN/components/timeline",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.scaffold={type:"timeline",label:i18n("7cef725b75da8afecda59900b780be75"),name:"timeline",items:[{time:"2012-12-21",title:i18n("70b8342d743374233bfee0f56c7f0fc7")},{time:"2012-12-24",title:i18n("70b8342d743374233bfee0f56c7f0fc7")},{time:"2012-12-27",title:i18n("70b8342d743374233bfee0f56c7f0fc7")}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("7cef725b75da8afecda59900b780be75"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("c360e994dbcffdf31e86d2d8875370e1"),name:"reverse",value:!1,type:"button-group-select",inline:!1,size:"sm",options:[{label:i18n("825f53899a11e598fc9f9b43e0814a58"),value:!1},{label:i18n("8eb4b7abb66f0922778a39044b42d345"),value:!0}]},{label:i18n("0da2ab28a6e03922d4a0c78451146b87"),name:"direction",value:"vertical",type:"button-group-select",size:"sm",inline:!0,options:[{label:i18n("75ac842f8e77305846f1d776f97dfaf8"),value:"vertical"},{label:i18n("4cde06e6162ed66720e3133cb83bc059"),value:"horizontal"}]},{label:tipedLabel(i18n("d1b490c01d24a1a70e9c83a29ac38fde"),i18n("00ff9356c34d05ecbfd6559a46f56e25")),name:"mode",value:"right",type:"button-group-select",visibleOn:'this.direction === "vertical"',size:"sm",options:[{label:i18n("39a2cb79c6d9762783e20522ea86dcff"),value:"right"},{label:i18n("de2a774bf98944b8f0ec8755d5f59d64"),value:"left"},{label:i18n("71039986e2386573ab6e5681986c2230"),value:"alternate"}]}]},{title:i18n("0d83078816aa273f2941c9b55ec82bf3"),body:[getSchemaTpl("timelineItemControl",{name:"items",mode:"normal"}),{type:"ae-switch-more",mode:"normal",label:"自定义标题模板",bulk:!1,name:"itemTitleSchema",formType:"extend",form:{body:[{type:"button",level:"primary",size:"sm",block:!0,onClick:$P.editDetail.bind($P,tme),label:"配置展示模板"}]},pipeIn:function(ame){return typeof ame>"u"?!1:typeof ame!="string"},pipeOut:function(ame){return ame===!0?{type:"tpl",tpl:$P.scaffold.label}:ame||void 0}}]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"timeClassName",label:i18n("3d95415ee75837db2660255ea1ca1b9b")}),getSchemaTpl("className",{name:"titleClassName",label:i18n("030c8cb75e9707285b28c4931bfeddc5")}),getSchemaTpl("className",{name:"detailClassName",label:i18n("2fe3c5280ea644639bc6378bcecc8b27")})]})])}])},$P}return eme.prototype.editDetail=function($P){var tme,ame=$P.id;$P.schema;var nme=this.manager,rme=nme.store,ime=rme.getNodeById(ame),ome=rme.getValueOf(ame),lme={type:"tpl",tpl:this.scaffold.label};ime&&ome&&this.manager.openSubEditor({title:"配置标题显示模版",value:schemaToArray((tme=ome.itemTitleSchema)!==null&&tme!==void 0?tme:lme),slot:{type:"container",body:"$$"},onChange:function(sme){sme=__assign$3(__assign$3({},ome),{itemTitleSchema:schemaArrayFormat(sme)}),nme.panelChangeValue(sme,diff(ome,sme))}})},eme.id="TimelinePlugin",eme}(BasePlugin);registerEditorPlugin(TimelinePlugin);var DividerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="divider",$P.$schema="/schemas/DividerSchema.json",$P.name=i18n("7e1eb2c588aa1301f4aa19395ef0a177"),$P.isBaseComponent=!0,$P.icon="fa fa-minus",$P.pluginIcon="divider-plugin",$P.description=i18n("bc43ae8e61f1ad4be2b0a9e70501e490"),$P.docLink="/amis/zh-CN/components/divider",$P.scaffold={type:"divider",$$dragMode:"hv"},$P.previewSchema={type:"divider",className:"m-t-none m-b-none"},$P.panelTitle=i18n("7e1eb2c588aa1301f4aa19395ef0a177"),$P.panelJustify=!0,$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[ame?{type:"input-text-i18n",name:"title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),placeholder:i18n("96641a78cfd9f9f8ba68f0524347b186")}:getSchemaTpl("valueFormula",{name:"title",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),placeholder:i18n("96641a78cfd9f9f8ba68f0524347b186"),rendererSchema:{type:"input-text"}})]},getSchemaTpl("status")])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("6f99b6eed37795cb97d5f6370c32113b"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("layout:width:v2",{visibleOn:'this.style && this.style.position && (this.style.position === "fixed" || this.style.position === "absolute")'}),{mode:"horizontal",type:"select",label:i18n("226b0912184333c81babf2f1894ec0c1"),name:"lineStyle",value:"solid",options:[{value:"solid",label:i18n("cc4c575642609fbf059a5df81eb86bfc")},{value:"dashed",label:i18n("61f6f4fc0b806ac9d41ad0792e6155f6")}]},{mode:"horizontal",type:"select",label:i18n("a465db53b8c98f42caa15ca5662f9c90"),name:"direction",value:"horizontal",options:[{value:"horizontal",label:i18n("4cde06e6162ed66720e3133cb83bc059")},{value:"vertical",label:i18n("75ac842f8e77305846f1d776f97dfaf8")}]},{mode:"horizontal",type:"input-number",label:i18n("40d39c3bc7bebced7d63eace0191a0a8"),name:"rotate",value:0,min:-360,max:360},getSchemaTpl("theme:select",{mode:"horizontal",label:i18n("f27f10e4660cba730189cc73bcbec0dc"),name:"style.width",placeholder:"100%",visibleOn:'this.direction !== "vertical"',clearValueOnHidden:!0}),getSchemaTpl("theme:select",{mode:"horizontal",label:i18n("f27f10e4660cba730189cc73bcbec0dc"),name:"style.height",placeholder:"var(--sizes-base-15)",visibleOn:'this.direction === "vertical"',clearValueOnHidden:!0}),getSchemaTpl("theme:select",{mode:"horizontal",label:i18n("bade10099f8447210ce7b97fa106b527"),name:"style.borderWidth",placeholder:"1px",visibleOn:'!this.title || this.direction === "vertical"'}),getSchemaTpl("theme:select",{mode:"horizontal",label:i18n("bade10099f8447210ce7b97fa106b527"),name:"themeCss.titleWrapperControlClassName.border-bottom-width",placeholder:"1px",visibleOn:'!!this.title && this.direction !== "vertical"',clearValueOnHidden:!0,pipeIn:function(nme,rme){var ime,ome;if(nme===void 0&&((ome=(ime=rme.data)===null||ime===void 0?void 0:ime.style)===null||ome===void 0?void 0:ome.borderWidth)!==void 0){var lme=rme.data.style.borderWidth;return setTimeout(function(){return rme.setValueByName("themeCss.titleWrapperControlClassName.border-bottom-width",lme)}),lme}return nme}}),getSchemaTpl("theme:colorPicker",{mode:"horizontal",label:i18n("6b36c6f7ec834692ec6c8e3816349fdd"),name:"color",placeholder:"var(--colors-neutral-line-8)",labelMode:"input",needGradient:!0}),getSchemaTpl("theme:paddingAndMargin",{name:"style",hidePadding:!0})]},{title:i18n("35633d4bcf019258d4a5b927e8644bed"),visibleOn:'!!this.title && this.direction !== "vertical"',body:[{type:"select",name:"titlePosition",label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),pipeIn:defaultValue("center"),options:[{value:"left",label:i18n("316a639631f712780829a202258ec3cc")},{value:"center",label:i18n("0bbc2ea4e1d1f23feb576de5dca1ce3b")},{value:"right",label:i18n("e2aaec83377244c9d15f78f51cccfe6f")}],clearValueOnHidden:!0},getSchemaTpl("theme:select",{label:tipedLabel(i18n("3ec2bba02a859a90b023ee793a2381d5"),i18n("12ae2cd5a178cdaed37967ec4226c4d3")),name:"themeCss.titleWrapperControlClassName.flex-basis",placeholder:"5%",visibleOn:'this.titlePosition === "left" || this.titlePosition === "right"',clearValueOnHidden:!0}),getSchemaTpl("theme:font",{title:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.titleControlClassName.font",textAlign:!1,clearValueOnHidden:!0}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.titleControlClassName.padding-and-margin",hidePadding:!0,clearValueOnHidden:!0})]}])}])},$P}return eme.id="DividerPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(DividerPlugin);var CodeViewPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="code",$P.$schema="/schemas/CodeSchema.json",$P.name=i18n("38bbd995a790f5a67211e034b007c145"),$P.isBaseComponent=!0,$P.icon="fa fa-code",$P.pluginIcon="code-plugin",$P.description=i18n("38bbd995a790f5a67211e034b007c145"),$P.docLink="/amis/zh-CN/components/code",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.scaffold={type:"code",language:"html",value:"<div>html</div>"},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("38bbd995a790f5a67211e034b007c145"),$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{type:"input-text",label:i18n("d7ec2d3fea4756bc1642e0f10c180cf5"),name:"name"},{type:"editor",label:i18n("86e38e6425f722ba725718af2366ac08"),allowFullscreen:!0,name:"value"}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])},$P}return eme.id="CodeViewPlugin",eme}(BasePlugin);registerEditorPlugin(CodeViewPlugin);var MarkdownPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="markdown",$P.$schema="/schemas/MarkdownSchema.json",$P.name="Markdown",$P.isBaseComponent=!0,$P.description=i18n("87cac3a9c9576d9b5bad6639c891112c"),$P.docLink="/amis/zh-CN/components/markdown",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-file-text",$P.pluginIcon="markdown-plugin",$P.scaffold={type:"markdown",value:i18n("eb99816b4a216b2eb884cc6194f00ec6")},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle="MD",$P.panelBodyCreator=function(tme){return/\/field\/\w+$/.test(tme.path),[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("markdownBody")]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])]},$P}return eme.id="MarkdownPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(MarkdownPlugin);var CollapsePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="collapse",$P.$schema="/schemas/CollapseSchema.json",$P.name=i18n("e90e6ff080f179215c3566a61ca62367"),$P.isBaseComponent=!0,$P.description=i18n("452b62e9b7e650fa163300da2893654a"),$P.docLink="/amis/zh-CN/components/collapse",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-window-minimize",$P.pluginIcon="collapse-plugin",$P.scaffold={type:"collapse",header:i18n("32c65d8d7431e76029678ec7bb73a5ab"),body:[{type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),wrapperComponent:"",inline:!1}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("e90e6ff080f179215c3566a61ca62367"),$P.panelJustify=!0,$P.events=[{eventName:"change",eventLabel:i18n("8e5ff4f20463c03f7935e0627888c03c"),description:i18n("bcfcd9d31a7a469fa1f3a2ea9e3e3f89"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{collapsed:{type:"boolean",title:i18n("0e8638286319f6efb0afe2616714e8c3")}}}}}]},{eventName:"expand",eventLabel:i18n("dce3879aaf11920ab97c94781ddaaed5"),description:i18n("0f680e944e33feb4719bd0dfe618aa50"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{collapsed:{type:"boolean",title:i18n("0e8638286319f6efb0afe2616714e8c3")}}}}}]},{eventName:"collapse",eventLabel:i18n("0469f19533c2fa1d63418b86ec203ab7"),description:i18n("3ffa0c7285daa4c39f7b7699a845860c"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{collapsed:{type:"boolean",title:i18n("0e8638286319f6efb0afe2616714e8c3")}}}}}]}],$P.actions=[{actionType:"expand",actionLabel:i18n("578125c5d7586aefb797caca9111ed1f"),description:i18n("ae772db91ee1bd385ffafed3e9b8f4cc"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("e2edde5adbdf33f6dce59a299cbf5fad"),buildLinkActionDesc(nme.manager,tme))}},__assign$3({actionLabel:i18n("5882cb6b5133d35488c386965321c60b"),actionType:"collapse",description:i18n("04e36bd57e0e1623da86ee2c19c2a885")},getActionCommonProps("collapse"))],$P.panelBodyCreator=function(tme){var ame,nme;return getI18nEnabled(),getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("title",{name:"header",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),pipeIn:defaultValue(((ame=tme==null?void 0:tme.schema)===null||ame===void 0?void 0:ame.title)||((nme=tme==null?void 0:tme.schema)===null||nme===void 0?void 0:nme.header)||""),onChange:function(rme,ime,ome,lme){lme.setValueByName("header",rme),lme.setValueByName("title",void 0)}}),getSchemaTpl("collapseOpenHeader"),{name:"headerPosition",label:i18n("3a8647306ee6456517b7bf9c8bc7de23"),type:"button-group-select",size:"sm",pipeIn:defaultValue("top"),options:[{label:i18n("c949729cd1a1e425595c1a297649c7c6"),value:"top",icon:"fa fa-arrow-up"},{label:i18n("12c4c5e8abda77e1fdc93653d6414187"),value:"bottom",icon:"fa fa-arrow-down"}]},{name:"showArrow",label:i18n("731f9b470e0948cbf56341a53c423213"),mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",type:"switch",pipeIn:defaultValue(!0)},getSchemaTpl("switch",{name:"collapsable",label:i18n("96c0cc844a06e0850c04f7c44b6475fb"),pipeIn:defaultValue(!0)})]},getSchemaTpl("status",{disabled:!0})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",__spreadArray(__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout"],hideAnimation:!0,classname:"baseControlClassName",needState:!1,baseTitle:i18n("6f99b6eed37795cb97d5f6370c32113b"),extra:[getSchemaTpl("theme:base",{classname:"headerControlClassName",title:"标题区样式",state:["default","hover"],extra:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.headerControlClassName.font"})]}),getSchemaTpl("theme:base",{classname:"bodyControlClassName",needState:!1,title:i18n("4e74ff55b36a0f35d511a761c264fce3")})]})),!1),[getSchemaTpl("style:classNames",{isFormItem:!1,schema:[getSchemaTpl("className",{name:"headingClassName",label:i18n("63b67eead04256e42ea9f6f7218731ee")}),getSchemaTpl("className",{name:"bodyClassName",label:i18n("66d88b3e01aff17c7973181e53fc8c0c")})]})],!1))},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P}return eme.id="CollapsePlugin",eme}(BasePlugin);registerEditorPlugin(CollapsePlugin);var OfficeViewerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="office-viewer",$P.$schema="/schemas/OfficeViewerSchema.json",$P.name=i18n("3212f1de74130815d12d982437fc6919"),$P.isBaseComponent=!0,$P.description=i18n("a7199769ae58f8a5c35ac0e5f8804abf"),$P.docLink="/amis/zh-CN/components/office-viewer",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-file-word",$P.pluginIcon="officeViewer-plugin",$P.scaffold={type:"office-viewer"},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("3212f1de74130815d12d982437fc6919"),$P.panelJustify=!0,$P.actions=[{actionType:"print",actionLabel:i18n("e414473c886072e393710563f201d7f3"),description:i18n("6a62d33c838524f0609a624aa59ee9e7"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("6a62d33c838524f0609a624aa59ee9e7"),buildLinkActionDesc(nme.manager,tme))}},{actionType:"saveAs",actionLabel:i18n("f26ef914245883c80f181c4aade2ed04"),description:i18n("fc856cd721f5b5955f8c4be2767a1cee"),descDetail:function(tme,ame,nme){return React__default.createElement("div",{className:"action-desc"},i18n("fc856cd721f5b5955f8c4be2767a1cee"),buildLinkActionDesc(nme.manager,tme))}}],$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("officeUrl",{name:"src",type:"input-text",label:i18n("270c7dfc38ec1f8eb7b211481d26659a")}),getSchemaTpl("switch",{type:"switch",label:i18n("2bd4fa4fe6637a09add46354f52ea9dc"),name:"display",pipeIn:defaultValue(!0),inline:!0})]},{title:i18n("010787d733c97c5f7a8f9bda438af9e2"),collapsed:!0,body:[{type:"combo",name:"wordOptions",mode:"normal",noBorder:!0,multiLine:!0,items:[getSchemaTpl("switch",{label:i18n("9a50cbc2f0c7115043a19c3b1db5776b"),inline:!0,name:"ignoreWidth"}),{type:"input-text",label:i18n("927ed823f52a6d3bbceed4436636a7dd"),name:"padding"},getSchemaTpl("switch",{label:i18n("755ea661684e7bffe9f97fb07b8d4921"),pipeIn:defaultValue(!0),name:"bulletUseFont",inline:!0}),getSchemaTpl("switch",{label:i18n("9b87dc5a019f749722a1d3a9c854a2b9"),name:"enableVar",inline:!0}),{type:"input-text",label:i18n("c6adeba660df8e19ac6cd3b8c57416ad"),name:"forceLineHeight"},{type:"input-kv",label:i18n("b93ea0046d63e2df7cf24a7a63bf5c99"),name:"fontMapping"},getSchemaTpl("switch",{label:i18n("f6e9b56f97af64235bf81f4ddc2288ab"),name:"page",inline:!0}),{type:"input-number",label:i18n("4c71a09da7ce050d45514b68bb15b4ab"),name:"pageMarginBottom",visibleOn:"this.page"},{type:"input-color",label:i18n("3651c159e19c05a3bdaa7036dac91e4e"),pipeIn:defaultValue("#FFFFFF"),name:"pageBackground",visibleOn:"this.page"},getSchemaTpl("switch",{label:i18n("91bc444339545a7785f3aa3055d9ba05"),name:"pageShadow",inline:!0,visibleOn:"this.page"}),getSchemaTpl("switch",{label:i18n("c856051e8c80913ff6607dc880341a20"),name:"pageWrap",inline:!0,visibleOn:"this.page"}),{type:"input-number",label:i18n("6a6772a0eae27591ed8763b6e616e988"),name:"pageWrapPadding",visibleOn:"this.page"},{type:"input-color",label:i18n("22bca073daae505d7fc9e7d7c8ee047c"),pipeIn:defaultValue("#ECECEC"),name:"pageWrapBackground",visibleOn:"this.page"},{type:"input-number",label:i18n("2839785a190e062058635add192f961d"),min:.1,max:1,name:"zoom",visibleOn:"this.page"},getSchemaTpl("switch",{label:i18n("9723e66141840db4dc6bd1db9b165302"),name:"zoomFitWidth",inline:!0,visibleOn:"this.page"})]}]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1})])}])]},$P}return eme.id="OfficeViewerPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(OfficeViewerPlugin);var PdfViewerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="pdf-viewer",$P.$schema="/schemas/PdfViewerSchema.json",$P.name="PDF预览",$P.isBaseComponent=!0,$P.description="PDF 文件预览",$P.docLink="/amis/zh-CN/components/pdf-viewer",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-file-pdf",$P.pluginIcon="pdfViewer-plugin",$P.scaffold={type:"pdf-viewer"},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle="PDF预览",$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"button-group-select",label:"文件来源",name:"source",tiled:!0,value:"src",options:[{label:"文件链接",value:"src"},{label:"本地文件",value:"file"}]},getSchemaTpl("tplFormulaControl",{name:"src",label:"链接地址",visibleOn:'this.source === "src"'}),{type:"input-file",label:i18n("481e034e6026969aae4ce7ce7c8a7b6f"),autoUpload:!0,proxy:!0,accept:".pdf",name:"__file",visibleOn:'this.source === "file"',autoFill:{src:"${url}"}}]},getSchemaTpl("status",{isFormItem:!1})])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("style:classNames",{isFormItem:!1})])}])]},$P}return eme.id="PdfViewerPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(PdfViewerPlugin);var LogPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="log",$P.$schema="/schemas/LogSchema.json",$P.name=i18n("456d29ef8bafd5202547e50d3e64d4ea"),$P.isBaseComponent=!0,$P.icon="fa fa-file-text-o",$P.pluginIcon="log-plugin",$P.description=i18n("d06f8476d115020496058363a32bc40b"),$P.searchKeywords=i18n("a94180c2142df3122cffcf1900c507f9"),$P.docLink="/amis/zh-CN/components/log",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.previewSchema={type:"log",height:120,autoScroll:!0},$P.scaffold={type:"log",autoScroll:!0,height:500,encoding:"utf-8"},$P.panelJustify=!0,$P.panelTitle=i18n("456d29ef8bafd5202547e50d3e64d4ea"),$P.panelBodyCreator=function(tme){return tme.info.renderer,getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("apiControl",{required:!0,name:"source",renderLabel:!0,label:tipedLabel(i18n("c11322c9cc43ce3c004cf03f5ac0acd0"),i18n("fa0b9c20503ee00554e8c86d4a4461b6"))}),{type:"input-text",label:tipedLabel(i18n("1d3d7de6b84f4d5d4a4e126e145af132"),i18n("d55bbcd785be46c3182dcd7663c3c041")),name:"encoding"},getSchemaTpl("placeholder",{label:i18n("0021bd6b2290ddca1ad6a9c8848377bc"),placeholder:i18n("f013ea9dcba3f5ca1278aa850931fec8")}),{type:"switch",label:tipedLabel(i18n("d7eb1e98e6cfbe38ab3b242c4dda1b7b"),i18n("ab2dd531871defe1ef7d8d06548411f3")),name:"autoScroll",value:!0,inputClassName:"is-inline"},{label:tipedLabel(i18n("2b6bc0f293f5ca01b006206c2535ccbc"),i18n("41058383885336fbe750665044e4e38a")),type:"checkboxes",name:"operation",inline:!1,options:[{label:i18n("095e938e2a09eaddc8db146b86879f4a"),value:"stop"},{label:i18n("694fc5efa9e1d1c2c5eb6525e1c7fb29"),value:"restart"},{label:i18n("288f0c404c4e546aa3683ff5054e85e2"),value:"clear"},{label:i18n("0cee3cd1e0b0956fb3447d7188553e4b"),value:"showLineNumber"},{label:i18n("bee912d79eefb7335988c4997aa9138d"),value:"filter"}]}]},{title:i18n("c2f42bd2a149bbeb4627b1e1b5fabedb"),body:[{type:"input-number",label:tipedLabel(i18n("45f14d9548decc8a1df4e470efcf8d08"),i18n("ef744ba73b07d85f877fa8774f64da36")),name:"rowHeight",min:1},{type:"input-number",label:tipedLabel(i18n("7a5d14c5f61745f08700ba315609cf9a"),i18n("686e0a9356c1cbbaff2ce3b98bf8439a")),name:"maxLength",min:1}]},getSchemaTpl("status",{isFormItem:!1})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-number",label:tipedLabel(i18n("c1df04eec5fa0857bc0df2d68d8e953c"),i18n("bddc8f2d9bdcc083bb4f3dd38eaba459")),name:"height",min:1}]},getSchemaTpl("style:classNames",{isFormItem:!1})])}])},$P}return eme.id="LogPlugin",eme}(BasePlugin);registerEditorPlugin(LogPlugin);var ActionPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.panelTitle=i18n("fa966345577ba81af19408f203db968f"),$P.rendererName="action",$P.name=i18n("b7dd79307fb7bcc921aa1b94ef904fe9"),$P.$schema="/schemas/ActionSchema.json",$P.panelBodyCreator=function(tme){var ame=/(?:\/|^)dialog\/.+$/.test(tme.path);/(?:\/|^)dropdown-button\/.+$/.test(tme.path);var nme=[{label:i18n("88d1257b0cf667319085f3e0033b9607"),type:"select",name:"actionType",pipeIn:defaultValue(""),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:""},{label:i18n("ab3aec075a09d055b2a28c8b61925ee0"),value:"dialog"},{label:i18n("f10f0be4aa9684eef9d78234072fe08b"),value:"drawer"},{label:i18n("4f02d2efe05a20232ab9da63c090595c"),value:"ajax"},{label:i18n("5dfd5a78e2ba1bc8afb482a8745454ea"),value:"download"},{label:i18n("4e58f9c94d345e14e2d69cc8496b7b5a"),value:"link"},{label:i18n("982db3084a2c470d1a9b34efa024511c"),value:"url"},{label:i18n("f20d9579ebdc9dfc30a212ae6cae931f"),value:"reload"},{label:i18n("6a086902a84969a835423002718e86b4"),value:"copy"},{label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),value:"submit"},{label:i18n("4b9c3271dc2f299dc3aeffb369187513"),value:"reset"},{label:i18n("a56c9f13b1566009fdc7640bc551709e"),value:"reset-and-submit"},{label:i18n("30313d6fa06603604db18086bbcad9d3"),value:"clear-and-submit"},{label:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),value:"confirm"},{label:i18n("625fb26b4b3340f7872b411f401e754c"),value:"cancel"},{label:i18n("0fc26855080a4219bbfad638029a795c"),value:"next"},{label:i18n("8ba8a1bead7ca55554cff1c85246ae09"),value:"prev"}]},{type:"input-text",name:"content",visibleOn:'this.actionType == "copy"',label:i18n("deb65aca8dba2ff9d0cfaed0a3441068")},{type:"select",name:"copyFormat",options:[{label:i18n("ffb01e5bcf4c00447f5150d3cba81371"),value:"text/plain"},{label:i18n("e2591e971f4c28db7c80a5f546084a1d"),value:"text/html"}],visibleOn:'this.actionType == "copy"',label:i18n("c28f4d63beabc4833b17aaa10ca550db")},{type:"input-text",name:"target",visibleOn:'this.actionType == "reload"',label:i18n("21fa07f18f80bee50695686831ae1286"),required:!0},{name:"dialog",pipeIn:defaultValue({title:i18n("8a089992349df754f182a5d02de8e8e0"),body:i18n("1a9aaf05889002e65708c4950012a652"),showCloseButton:!0,showErrorMsg:!0,showLoading:!0}),asFormItem:!0,visibleOn:'${actionType == "dialog"}',children:function(rme){var ime=rme.value,ome=rme.onChange;return rme.data,React__default.createElement(Button$1,{size:"sm",level:"danger",className:"m-b",onClick:function(){return $P.manager.openSubEditor({title:i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),value:__assign$3({type:"dialog"},ime),onChange:function(lme){return ome(lme)}})},block:!0},i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"))}},{name:"drawer",pipeIn:defaultValue({title:i18n("8a089992349df754f182a5d02de8e8e0"),body:i18n("1a9aaf05889002e65708c4950012a652")}),asFormItem:!0,visibleOn:'${actionType == "drawer"}',children:function(rme){var ime=rme.value,ome=rme.onChange;return rme.data,React__default.createElement(Button$1,{size:"sm",level:"danger",className:"m-b",onClick:function(){return $P.manager.openSubEditor({title:i18n("262c7c7b9874ae5607fb51da468d0e8c"),value:__assign$3({type:"drawer"},ime),onChange:function(lme){return ome(lme)}})},block:!0},i18n("262c7c7b9874ae5607fb51da468d0e8c"))}},getSchemaTpl("api",{label:i18n("5eb694a4252528628929ced97ca95823"),visibleOn:'this.actionType == "ajax" || this.actionType == "download"'}),{name:"feedback",pipeIn:defaultValue({title:i18n("8a089992349df754f182a5d02de8e8e0"),body:i18n("2d711b09bd0db0ad240cc83b30dd8014")}),asFormItem:!0,visibleOn:'${actionType == "ajax"}',children:function(rme){var ime=rme.onChange,ome=rme.value;return rme.data,React__default.createElement("div",{className:"m-b"},React__default.createElement(Button$1,{size:"sm",level:ome?"danger":"info",onClick:function(){return $P.manager.openSubEditor({title:i18n("0cc0fff6eb667b140d3fd06e34a8c69f"),value:__assign$3({type:"dialog"},ome),onChange:function(lme){return ime(lme)}})}},i18n("deb9089ed7ebcacd712117fc4204c65f")),ome?React__default.createElement(Button$1,{size:"sm",level:"link",className:"m-l",onClick:function(){return ime("")}},i18n("215f64480a93893fc56c51aeb5d40f11")):null)}},{name:"feedback.visibleOn",label:i18n("7984d95c01b725a2709fb8f5ee330fb4"),type:"input-text",visibleOn:"this.feedback",autoComplete:!1,description:i18n("dfa07586a471e24b23fe68e11f5dc41a")},{name:"feedback.skipRestOnCancel",label:i18n("47186f00df86d3edad3b5595ba8c2a0a"),type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{name:"feedback.skipRestOnConfirm",label:i18n("4f21e04fe35d39c79e7779cdf2f4e232"),type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{type:"input-text",label:i18n("6ab20dc4b64021b85886ad9c12b6e0cc"),name:"link",visibleOn:'this.actionType == "link"'},{type:"input-text",label:i18n("6ab20dc4b64021b85886ad9c12b6e0cc"),name:"url",visibleOn:'this.actionType == "url"',placeholder:"http://"},{type:"switch",name:"blank",visibleOn:'this.actionType == "url"',mode:"inline",className:"w-full",label:i18n("0bbc3ec26c36a87c9df3183def6ca9e0"),value:!0},ame?{visibleOn:'this.actionType == "submit" || this.type == "submit"',name:"close",type:"switch",mode:"inline",className:"w-full",pipeIn:defaultValue(!0),label:i18n("d0c3025a64b26e5fbf22005f400c06d7")}:null,{name:"confirmText",type:"textarea",label:i18n("0c15a924dc3bedefb79c958972bef2b9"),description:i18n("06b13b11740f7663af325bf5426930ba")},{type:"input-text",name:"reload",label:i18n("fa9a0a79f29fef72e3060ea1af93c305"),visibleOn:'this.actionType != "link" && this.actionType != "url"',description:i18n("437d629f00e62cf99b3ad288f84ade46")},{type:"input-text",name:"target",visibleOn:'this.actionType != "reload"',label:i18n("b01f08bf5b9f8e3ef9d49e31d89bf770"),description:i18n("f667748a8e9717498da714d4e5087af2")},{type:"js-editor",allowFullscreen:!0,name:"onClick",label:i18n("80ddab8a52f74d707765501b0caae21f"),description:i18n("babbd439bc04241ed3536f892668c250")},{type:"input-text",name:"hotKey",label:i18n("867ade50f0bbb10bac65a5c3bc7895e9")}];return[{type:"container",className:"p-3",body:nme}]},$P}return eme.prototype.buildEditorPanel=function($P,tme){if(!$P.selections.length)if($P.info.renderer.name==="action"){var ame=this.panelBodyCreator($P);tme.push({key:"action",icon:"fa fa-gavel",title:i18n("c500cfabdec9b2761fe9f1aa543933eb"),render:this.manager.makeSchemaFormRender({body:ame}),order:100})}else x_.prototype.buildEditorPanel.call(this,$P,tme)},eme.prototype.buildEditorToolbar=function($P,tme){var ame=this,nme=$P.id,rme=$P.schema,ime=$P.info;~["action","button","submit","reset"].indexOf(ime.renderer.name)&&rme.actionType==="dialog"&&tme.push({iconSvg:"dialog",tooltip:i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),placement:"bottom",onClick:function(){return ame.editDetail(nme)}})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);nme&&rme&&this.manager.openSubEditor({title:i18n("c3c8422fcecd8c1cc922cba15ab5cbc0"),value:__assign$3({type:"dialog"},rme.dialog),onChange:function(ime){ime=__assign$3(__assign$3({},rme),{dialog:ime}),tme.panelChangeValue(ime,diff(rme,ime))}})},eme.id="ActionPlugin",eme}(BasePlugin);registerEditorPlugin(ActionPlugin);var TableCellPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.panelTitle=i18n("dc7558211f2990370954c2e7ca498ee9"),$P.panelIcon="fa fa-columns",$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("label",{label:i18n("bcee820bc20342a4d388a35ed32a35fe")}),getSchemaTpl("formItemName",{label:i18n("41a344642681efaaa418c228ba7fb45c")}),getSchemaTpl("tableCellRemark"),getSchemaTpl("tableCellPlaceholder"),getSchemaTpl("switch",{name:"sortable",label:i18n("233662283039ded8c29f070d1a807029"),description:i18n("348097cc50579e489f0bcb5433637d3a")})]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[{name:"groupName",label:i18n("9db64f772c11c614ee00bb3cc066f46f"),type:ame?"input-text-i18n":"input-text",description:i18n("9791b05a4df9d72f1a01b81fa695fbc6")},getSchemaTpl("switch",{name:"quickEdit",label:i18n("19c4f5e98ad302574202de30dddbaf66"),isChecked:function(nme){var rme=nme.data,ime=nme.name;return!!get$6(rme,ime)},pipeIn:function(nme){return!!nme}}),{visibleOn:"this.quickEdit",name:"quickEdit.mode",type:"button-group-select",value:"popOver",label:i18n("abd733d00ec656e7b0cfd88deedf102f"),size:"xs",mode:"inline",className:"w-full",options:[{label:i18n("78f395c15aaf8c92d9223f6ca69b41a4"),value:"popOver"},{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"inline"}]},getSchemaTpl("icon",{name:"quickEdit.icon"}),getSchemaTpl("switch",{name:"quickEdit.saveImmediately",label:i18n("15c3796e07e33afc7252df751f610c5d"),visibleOn:"this.quickEdit",description:i18n("2d2eb2ac28f074d1caef0d332d61cfb0"),descriptionClassName:"help-block m-b-none",pipeIn:function(nme){return!!nme}}),getSchemaTpl("api",{label:i18n("eccba4475f3144e417e55fd96e831e09"),description:i18n("c8e5c062d5ad38e54413abd9c7cfb2f4"),name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{visibleOn:"this.quickEdit",name:"quickEdit",asFormItem:!0,children:function(nme){var rme=nme.value,ime=nme.onChange,ome=nme.data;rme===!0?rme={}:typeof rme>"u"&&(rme=getVariable(ome,"quickEdit")),rme=__assign$3({},rme);var lme=rme.mode||"popOver";rme.mode&&delete rme.mode;var sme=rme.saveImmediately;return rme.saveImmediately&&delete rme.saveImmediately,rme=rme.body&&["container","wrapper"].includes(rme.type)?__assign$3({type:"wrapper",body:[]},rme):{type:"wrapper",body:[__assign$3({type:"input-text",name:ome.name},rme)]},React__default.createElement(Button$1,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){$P.manager.openSubEditor({title:i18n("c3ed36e4abb96c18a6c83350994cdea7"),value:rme,onChange:function(cme){return ime(__assign$3(__assign$3({},cme),{mode:lme,saveImmediately:sme}),"quickEdit")}})}},i18n("45a6c55d8d2d92af84e219defef084d5"))}},getSchemaTpl("switch",{name:"popOver",label:i18n("ba5a0a1ff2c438ae7719ca48b0ce3af7"),pipeIn:function(nme){return!!nme}}),{name:"popOver.mode",label:i18n("d689e3c38fdb32c98fb27f8f35a26552"),type:"select",visibleOn:"this.popOver",pipeIn:defaultValue("popOver"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"popOver"},{label:i18n("ab3aec075a09d055b2a28c8b61925ee0"),value:"dialog"},{label:i18n("33e6c41fed95c25e3b426d596d504579"),value:"drawer"}]},{name:"popOver.position",label:i18n("d689e3c38fdb32c98fb27f8f35a26552"),type:"select",visibleOn:'this.popOver && this.popOver.mode === "popOver"',pipeIn:defaultValue("center"),options:[{label:i18n("68b54e7b408c4fb83561c931aa668eae"),value:"center"},{label:i18n("e18459c93769a5afec01e1ce60f9b9fd"),value:"left-top"},{label:i18n("1fc3cdd8437f5057774cde2f2c51f97c"),value:"right-top"},{label:i18n("63dd9faca92bccfd436ff21a6b4b3151"),value:"left-bottom"},{label:i18n("d01c239688b9c8fc145191ee642dc080"),value:"right-bottom"},{label:i18n("8fcf9802436282672a8e28ebd6262390"),value:"fixed-left-top"},{label:i18n("aed25160b4e8cfc613a743c4549e9222"),value:"fixed-right-top"},{label:i18n("d4a4ab1916187e09b9c037705fd49ffa"),value:"fixed-left-bottom"},{label:i18n("921fccbb84c829bf8c6f0b9957029f44"),value:"fixed-right-bottom"}]},{visibleOn:"this.popOver",name:"popOver",asFormItem:!0,children:function(nme){var rme=nme.value,ime=nme.onChange;return rme=__assign$3({type:"panel",title:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),body:i18n("1d53f83df1d889a70131b7a93c819575")},rme),React__default.createElement(Button$1,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){$P.manager.openSubEditor({title:i18n("8dda45360dcf9ca501fd7d0eb53045b5"),value:rme,onChange:function(ome){return ime(ome,"popOver")}})}},i18n("fd389de167730ba8542217ad31b95562"))}},getSchemaTpl("switch",{name:"copyable",label:i18n("6e78b595d6a296938201a3c80660bf35"),pipeIn:function(nme){return!!nme}}),{visibleOn:"this.copyable",name:"copyable.content",type:"textarea",label:i18n("deb65aca8dba2ff9d0cfaed0a3441068"),description:i18n("622e14515c4fd5ca6fe6946e3a1bfb4a")}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[{type:"select",name:"align",label:i18n("d5bc35360607472de4525358af126de4"),pipeIn:defaultValue("left"),options:[{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"},{label:i18n("da1b972efb29f850b50e219ad4d98ba5"),value:"justify"}]},{type:"select",name:"headerAlign",label:"表头对齐方式",pipeIn:defaultValue(""),options:[{label:"复用对齐方式",value:""},{label:i18n("413f48cc71f71083ce532a86e3efdc21"),value:"left"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),value:"right"},{label:i18n("da1b972efb29f850b50e219ad4d98ba5"),value:"justify"}]},{type:"select",name:"vAlign",label:i18n("5b15af1f73b4f2d5bb152410863602f4"),pipeIn:defaultValue("middle"),options:[{label:i18n("2a6ad292447e6354ca39ee7f40d2fcc8"),value:"top"},{label:i18n("4117e80d2c2e52f795ec64160f399364"),value:"middle"},{label:i18n("d68c21b6b65e7a2e361762b65b8a5032"),value:"bottom"}]},{name:"fixed",type:"button-group-select",label:i18n("65f7e01d58cb5065f49e0e8f48cc16be"),pipeIn:defaultValue(""),size:"xs",mode:"inline",inputClassName:"mt-1 w-full",options:[{value:"",label:i18n("9ed8a4c5d1b3726121175dc986268b0c")},{value:"left",label:i18n("39a2cb79c6d9762783e20522ea86dcff")},{value:"right",label:i18n("de2a774bf98944b8f0ec8755d5f59d64")}]},getSchemaTpl("switch",{name:"toggled",label:i18n("0a5ac2f5c327e28c58d51db967a0e603"),pipeIn:defaultValue(!0)}),{name:"breakpoint",type:"button-group-select",label:i18n("a3bd2104e3df81df713de636b907462c"),visibleOn:"this.tableFootableEnabled",size:"xs",multiple:!0,options:[{label:i18n("986a5f50e946674bb91c9408fc974497"),value:"*"},{label:i18n("a165f0fe5fb904049f6b6961105e433f"),value:"xs"},{label:i18n("03ee8b948c9b34daca9584811bcca17d"),value:"sm"},{label:i18n("82d9f1f96084674e2b0101ecc04d5d58"),value:"md"},{label:i18n("f4166de371b5dfb87efce228b17a3fbb"),value:"lg"}],pipeIn:function(nme){return nme?typeof nme=="string"?nme:"*":""},pipeOut:function(nme){return typeof nme=="string"&&~nme.indexOf("*")&&/xs|sm|md|lg/.test(nme)?nme.replace(/\*\s*,\s*|\s*,\s*\*/g,""):nme}},{name:"textOverflow",type:"button-group-select",label:"文本超出处理",size:"xs",mode:"inline",inputClassName:"mt-1 w-full",pipeIn:defaultValue("default"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:"溢出隐藏",value:"ellipsis"},{label:"取消换行",value:"noWrap"}]},getSchemaTpl("switch",{name:"className",label:tipedLabel("允许任意字符间断行","开启此项，换行处理将在任意字母处断行，长英文单词或长英文字符会被切断，如url链接"),pipeIn:function(nme){return typeof nme=="string"&&/\word\-break\b/.test(nme)},pipeOut:function(nme,rme){return(nme?"word-break ":"")+(rme||"").replace(/\bword\-break\b/g,"").trim()}}),getSchemaTpl("className"),getSchemaTpl("className",{name:"innerClassName",label:i18n("4619988f1c5d9093dc00d1430633b2bd")}),{name:"width",type:"input-number",label:i18n("bdd9d38d7e2929024089363dc8f48b7a"),description:i18n("b198805e7a6b35830ba813f51db2fdc4")}]}])]},$P}return eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema;if(tme.name==="table-cell")return{name:ame.label?"<".concat(ame.label,">列"):i18n("044892c0c637f2d9e78e78956b1ded01"),$schema:"/schemas/TableColumn.json",multifactor:!0,wrapperResolve:function(nme){var rme=[].slice.call(nme.parentElement.children),ime=rme.indexOf(nme)+1,ome=nme.closest("table");return[].slice.call(ome.querySelectorAll("th:nth-child(".concat(ime,'):not([data-editor-id="').concat(ame.id,`"]),
              td:nth-child(`).concat(ime,'):not([data-editor-id="').concat(ame.id,'"])')))}}},eme.prototype.beforeReplace=function($P){var tme=$P.context;tme.info.plugin===this&&tme.data&&(tme.data.label=tme.data.label||tme.schema.label,tme.data.name=tme.data.name||tme.schema.name)},eme.id="TableCellPlugin",eme}(BasePlugin);registerEditorPlugin(TableCellPlugin);var ArrayControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-array",$P.$schema="/schemas/ArrayControlSchema.json",$P.disabledRendererPlugin=!0,$P.name=i18n("b6946d13d670fc49b721b626bca426b7"),$P.isBaseComponent=!0,$P.icon="fa fa-bars",$P.pluginIcon="input-array-plugin",$P.description=i18n("6e43f86d0b2973c34078bc7c7bc02eb0"),$P.docLink="/amis/zh-CN/components/form/input-array",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-array",label:i18n("b6946d13d670fc49b721b626bca426b7"),name:"array",items:{type:"input-text",placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7")}},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3(__assign$3({},$P.scaffold),{value:["row1",""],draggable:!0})]},$P.panelTitle=i18n("a4b72cd5d7c953c57b00e3597b9ef666"),$P.panelBodyCreator=function(tme){return[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("switchDefaultValue"),{type:"textarea",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087"),visibleOn:'typeof this.value !== "undefined"',pipeOut:valuePipeOut},{children:React__default.createElement(Button$1,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:$P.editDetail.bind($P,tme.id)},i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"))},getSchemaTpl("switch",{label:i18n("7f2579cabd4d654458a720eed517a37d"),name:"addable",pipeIn:defaultValue(!0)}),{label:i18n("ea1e5695bf682ea3b31aba0c35198ae3"),name:"addButtonText",type:"input-text",visibleOn:"this.addable",pipeIn:defaultValue(i18n("66ab5e9f24c8f46012a25c89919fb191"))},{type:"textarea",name:"scaffold",label:i18n("aab09f676645f2651655a711d5e3327c"),visibleOn:"this.addable !== false",pipeOut:valuePipeOut,pipeIn:defaultValue("")},getSchemaTpl("switch",{label:i18n("1ab31449faaaeeeb7200d724eab9a7ab"),name:"removable",pipeIn:defaultValue(!0)}),getSchemaTpl("api",{name:"deleteApi",label:i18n("fa3e9f9e49f5a81c998f949155f86b50"),visibleOn:"this.removable"}),{label:i18n("f962922d46ef18e68127642e5c00165a"),name:"deleteConfirmText",type:"input-text",visibleOn:"this.deleteApi",pipeIn:defaultValue(i18n("fc763fd5ddf637fe4ba1ac59e10b8d3a"))},getSchemaTpl("switch",{name:"draggable",label:i18n("89e34c77922f9362fc8f4033e7f6bdf4")}),{name:"draggableTip",visibleOn:"this.draggable",type:"input-text",label:i18n("1362211a6bfc8cc4130d54643e8e9732"),pipeIn:defaultValue(i18n("91396e9bc25c9e8b63907fe22408e2bb"))},{name:"addButtonText",type:"input-text",label:i18n("ea1e5695bf682ea3b31aba0c35198ae3"),pipeIn:defaultValue(i18n("66ab5e9f24c8f46012a25c89919fb191"))},getSchemaTpl("minLength"),getSchemaTpl("maxLength")]},$P}return eme.prototype.filterProps=function($P,tme){return $P=JSONPipeOut($P),!tme.state.value&&!$P.value&&tme.updateState({value:[""]}),$P},eme.prototype.buildEditorToolbar=function($P,tme){var ame=$P.id,nme=$P.info;nme.renderer.name==="input-array"&&tme.push({icon:"fa fa-expand",order:100,tooltip:i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"),onClick:this.editDetail.bind(this,ame)})},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=$P.id;$P.schema,$P.region;var nme=$P.info;nme.renderer.name==="input-array"&&tme.push("|",{label:i18n("39a6853b109ae98f1aabca90283d7edc"),onSelect:this.editDetail.bind(this,ame)})},eme.prototype.editDetail=function($P){var tme=this.manager,ame=tme.store,nme=ame.getNodeById($P),rme=ame.getValueOf($P);nme&&rme&&this.manager.openSubEditor({title:i18n("50bfed6ada3e7d0ef4d20eb727b3d7df"),value:rme.items,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(ime){ime=__assign$3(__assign$3({},rme),{items:ime}),tme.panelChangeValue(ime,diff(rme,ime))}})},eme.id="ArrayControlPlugin",eme}(BasePlugin);registerEditorPlugin(ArrayControlPlugin);var ControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="control",$P.$schema="/schemas/FormControlSchema.json",$P.name=i18n("61260d9386fd95a268dfc93d977c2706"),$P.isBaseComponent=!0,$P.icon="fa fa-object-group",$P.pluginIcon="form-group-plugin",$P.description=i18n("61260d9386fd95a268dfc93d977c2706"),$P.docLink="/amis/zh-CN/components/form/group",$P.tags=[i18n("22c799040acdb2601b437ed5449de076")],$P.disabledRendererPlugin=!0,$P.scaffold={type:"control",label:i18n("61260d9386fd95a268dfc93d977c2706"),body:[{type:"tpl",wrapperComponent:"",tpl:"a"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.regions=[{key:"body",label:i18n("c5739a29e7c403fc212608cefe70cf29"),preferTag:i18n("55b45c73ae417c4dead67905b1550e85")}],$P.panelTitle=i18n("61260d9386fd95a268dfc93d977c2706"),$P.panelBodyCreator=function(tme){return formItemControl({common:{replace:!0,body:[{children:React__default.createElement(Button$1,{className:"m-b",onClick:function(){return $P.manager.showRendererPanel(i18n("55b45c73ae417c4dead67905b1550e85"))},level:"danger",tooltip:i18n("a00f44e570f896de5490cba9d2462951"),size:"sm",block:!0},i18n("a9a8efb2541ee6f89ea7b83e610ebf7f"))},getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]}})},$P}return eme.id="ControlPlugin",eme}(BasePlugin);registerEditorPlugin(ControlPlugin);var DateTimeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-datetime",$P.$schema="/schemas/DateTimeControlSchema.json",$P.isBaseComponent=!0,$P.icon="fa fa-calendar",$P.pluginIcon="input-datetime-plugin",$P.name=i18n("0c3bf4fce50589b1073baf15f8a00d36"),$P.description=i18n("59a81f21a829e24e9a765c4d6e509e68"),$P.docLink="/amis/zh-CN/components/form/input-datetime",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-datetime",label:i18n("0c3bf4fce50589b1073baf15f8a00d36"),name:"datetime"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3({},$P.scaffold)]},$P.panelTitle=i18n("0c3bf4fce50589b1073baf15f8a00d36"),$P}return eme.id="DateTimeControlPlugin",eme}(DateControlPlugin);registerEditorPlugin(DateTimeControlPlugin);var DateTimeRangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-datetime-range",$P.$schema="/schemas/DateTimeRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-date-range-plugin",$P.name=i18n("5eb8cb70e4dc97622c967d7c7efd6566"),$P.isBaseComponent=!0,$P.description=i18n("7f4466c0a16a1808b5ee398ce55997ab"),$P.docLink="/amis/zh-CN/components/form/input-datetime-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-datetime-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"datetime-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.disabledRendererPlugin=!0,$P.notRenderFormZone=!0,$P}return eme.id="DateTimeRangeControlPlugin",eme}(DateRangeControlPlugin);registerEditorPlugin(DateTimeRangeControlPlugin);var EmailControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-email",$P.$schema="/schemas/TextControlSchema.json",$P.name=i18n("ab37cc3baa3ec204bd7ebfa450568c40"),$P.isBaseComponent=!0,$P.icon="fa fa-envelope-o",$P.pluginIcon="input-email-plugin",$P.description=i18n("e3c0d799e8880a36edb07e34fd1bed67"),$P.scaffold={type:"input-email",label:i18n("3bc5e602b2d4c7fffe79258e2ac6952e"),name:"email"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3({},$P.scaffold)},$P.panelTitle=$P.name,$P}return eme.id="EmailControlPlugin",eme}(TextControlPlugin);registerEditorPlugin(EmailControlPlugin);var FormulaControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="formula",$P.$schema="/schemas/FormulaControlSchema.json",$P.name=i18n("eb332076d766c2e817285f0a6d4860b9"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.icon="fa fa-calculator",$P.pluginIcon="formula-plugin",$P.description=i18n("000cf7353ce03857c671e89c91b35464"),$P.docLink="/amis/zh-CN/components/form/formula",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"formula",name:"formula"},$P.previewSchema={type:"tpl",tpl:i18n("9da7578f9329ccaee1bbdf6a766744fd")},$P.panelTitle=i18n("eb332076d766c2e817285f0a6d4860b9"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("d314558953b3c76adb7e131aaec8bd86"),name:"name",type:"input-text",description:i18n("77562ec3db28683ec71612a11e6b39ef")},{type:"input-text",name:"value",label:i18n("225f3ed00750ae78ad1e6ea42c8f5087")},{type:"input-text",name:"formula",label:i18n("eb332076d766c2e817285f0a6d4860b9"),description:i18n("c80c42a0be1b39ed899b1f5560875cf8")},{type:"input-text",name:"condition",label:i18n("89a8549c2ed7fc23a683599731d92b22"),description:i18n("8add6799ceff24eb041c5a6a92bb1694")},getSchemaTpl("switch",{name:"initSet",label:i18n("3df193f5d4f652a4bac331a69761041b"),description:i18n("86cebf86c66c6a4e6731b840c3967ab0"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"autoSet",label:i18n("aaff9b44fa3c84058d6bec9888b7b39f"),description:i18n("677568b4f6505bdd63387137bfcbf35a"),pipeIn:defaultValue(!0)})],$P}return eme.prototype.renderRenderer=function($P){return this.renderPlaceholder(i18n("222c7bc60f06552b019d71bce57013ed"),$P.key,$P.style)},eme.id="FormulaControlPlugin",eme}(BasePlugin);registerEditorPlugin(FormulaControlPlugin);var GroupControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="group",$P.$schema="/schemas/GroupControlSchema.json",$P.disabledRendererPlugin=!0,$P.name=i18n("bb09a378529edac439abc2edf05c10d7"),$P.isBaseComponent=!0,$P.icon="fa fa-id-card-o",$P.pluginIcon="form-group-plugin",$P.description=i18n("39d36f049a794eb8df305b5ca7710c36"),$P.docLink="/amis/zh-CN/components/form/group",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"group",body:[{type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"var1"},{type:"input-text",label:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"var2"}],label:!1},$P.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[__assign$3(__assign$3({},$P.scaffold),{mode:"normal"})]},$P.regions=[{key:"body",label:i18n("32f6f7f8164c7f78e4b46eb50c158ab9"),renderMethod:"renderInput",preferTag:i18n("55b45c73ae417c4dead67905b1550e85"),wrapperResolve:function(tme){return tme}}],$P.panelTitle=i18n("bb09a378529edac439abc2edf05c10d7"),$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("label"),getSchemaTpl("description",{visible:"this.label"}),{children:React__default.createElement(Button$1,{className:"m-b",onClick:function(){$P.manager.showRendererPanel(i18n("55b45c73ae417c4dead67905b1550e85"),i18n("400fbff5e744d3b7317dd130eaad723e"))},level:"danger",tooltip:i18n("a00f44e570f896de5490cba9d2462951"),size:"sm",block:!0},i18n("a9a8efb2541ee6f89ea7b83e610ebf7f"))},getSchemaTpl("remark"),getSchemaTpl("labelRemark")]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("formItemMode"),getSchemaTpl("horizontalMode"),getSchemaTpl("horizontal",{visibleOn:'(this.$$formMode == "horizontal" || this.mode == "horizontal") && this.label !== false && this.horizontal',pipeIn:function(tme,ame){return tme=tme||ame.formHorizontal&&makeHorizontalDeeper(ame.formHorizontal,ame.body.length),{leftRate:tme&&typeof tme.left=="number"?tme.left:tme&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(tme.left)?parseInt(RegExp.$1,10):2,leftFixed:tme&&tme.leftFixed||""}}}),getSchemaTpl("subFormItemMode"),getSchemaTpl("subFormHorizontalMode"),getSchemaTpl("subFormHorizontal"),{name:"body",type:"combo",label:i18n("bd1aded1c983ab7fcf3990f0dc31047c"),multiple:!0,removable:!1,addable:!1,multiLine:!0,visibleOn:'this.$$formMode != "inline"',items:[{type:"button-group-select",name:"columnRatio",label:i18n("a170a375b264f7fe0c02a7ca8c268784"),tiled:!0,pipeIn:function(tme,ame){return typeof tme=="number"||ame.columnClassName&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(ame.columnClassName)?"custom":tme||""},pipeOut:function(tme){return tme==="custom"?2:tme},options:[{value:"",label:i18n("daa0f354e189c0da577ea25be13f874d")},{value:"auto",label:i18n("4db804afe5c99f7ca4fe988ada35c77f")},{value:"custom",label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e")}]},{label:i18n("d5d885add2551454955bd70411769c88"),type:"input-range",name:"columnRatio",visibleOn:'typeof this.columnRatio === "number" || this.columnClassName && /\\bcol\\-(?:xs|sm|md|lg)\\-(\\d+)\\b/.test(this.columnClassName)',pipeIn:function(tme,ame){return typeof tme=="number"?tme:!ame.columnClassName||!/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(ame.columnClassName)?2:parseInt(RegExp.$1,10)||2},min:1,max:12,step:1}]},{type:"button-group-select",name:"gap",label:i18n("ff7e66f1feaaed3260b6e8ef432efc79"),pipeIn:defaultValue(""),size:"sm",tiled:!0,clearable:!0,options:[{value:"xs",label:i18n("23ecf42cada8bf2715792d718544d107")},{value:"sm",label:i18n("391b8fa9c747a1799353ab856e666ad5")},{value:"md",label:i18n("aed1dfbc31703955e64806b799b67645")},{value:"lg",label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4")}]},getSchemaTpl("className"),{name:"body",type:"combo",label:i18n("1b3408880b73544a3fad501dafbb71e6"),multiple:!0,removable:!1,addable:!1,items:[{type:"input-text",name:"columnClassName"}]}]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])],$P}return eme.prototype.buildEditorContextMenu=function($P,tme){var ame=this,nme=$P.id,rme=$P.schema;$P.region;var ime=$P.selections,ome=$P.info;ime.length||ome.plugin!==this||!Array.isArray(rme.body)||rme.body.length<2||tme.push({label:i18n("551481accddd97e18d7152f511fb8987"),onSelect:function(){var lme=ame.manager.store,sme=lme.schema;sme=JSONUpdate(sme,nme,JSONPipeIn(rme.body),!0),lme.traceableSetSchema(sme)}})},eme.id="GroupControlPlugin",eme}(BasePlugin);registerEditorPlugin(GroupControlPlugin);var ItemPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.panelTitle=i18n("55b45c73ae417c4dead67905b1550e85"),$P.order=-990,$P.pluginIcon="form-plugin",$P.panelBodyCreator=function(tme){var ame=tme.schema.type||"",nme=getRendererByName(ame),rme=!!(nme!=null&&nme.isFormItem)&&!NO_SUPPORT_STATIC_FORMITEM_CMPTS.includes(ame),ime=~["button","submit","reset"].indexOf(ame),ome=~["button-toobar","container","fieldSet","group","grid","hbox","input-group","panel","service","tabs","table","elevator","static"].indexOf(ame),lme=~["switch","wizard","diff-editor","editor","input-rating","input-text","textarea"].indexOf(ame),sme=!!~["input-group"].indexOf(ame),cme=tme.info.renderer;return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),ime?null:getSchemaTpl("formItemName",{required:!ome}),cme.renderLabel!==!1?getSchemaTpl("label"):null,lme?getSchemaTpl("switch",{name:"readOnly",label:i18n("973b69af999dbdf4fa124df8c928ca6e")}):null,getSchemaTpl("disabled"),sme?null:getSchemaTpl("required"),getSchemaTpl("description"),getSchemaTpl("placeholder"),getSchemaTpl("remark",{mode:"row"}),cme.renderLabel!==!1?getSchemaTpl("labelRemark",{mode:"row"}):null]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:__spreadArray([getSchemaTpl("formItemMode"),getSchemaTpl("horizontalMode"),getSchemaTpl("horizontal",{label:"",visibleOn:'this.mode == "horizontal" && this.label !== false && this.horizontal'}),cme.sizeMutable!==!1?getSchemaTpl("formItemSize",{options:[{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("4a12e9b9fc5443e5e9999b5a7c56c19a"),value:"full"}]}):null,getSchemaTpl("formItemInline"),getSchemaTpl("className"),getSchemaTpl("className",{label:i18n("6d0034a2419e1f394dedab07994b9665"),name:"labelClassName"}),getSchemaTpl("className",{label:i18n("2cadb6621afe19333b142faa541b0f91"),name:"inputClassName"}),getSchemaTpl("className",{label:i18n("0e627e6a0ff773ee76bc4cc0871cb48d"),name:"descriptionClassName",visibleOn:"this.description"})],__read$3(rme?[getSchemaTpl("className",{label:i18n("3e573fd37473d789211ee44335d82fad"),name:"staticClassName"})]:[]),!1)},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("visible"),rme?getSchemaTpl("static"):null,getSchemaTpl("switch",{name:"clearValueOnHidden",label:i18n("7abf78a41095c6d21a1cc89b4a876233")})]},sme?null:{title:i18n("cd8992b644e6c18367861a4d913fd116"),body:[getSchemaTpl("validations"),getSchemaTpl("validationErrors"),getSchemaTpl("validateOnChange"),getSchemaTpl("submitOnChange"),getSchemaTpl("api",{name:"validateApi",label:i18n("1040279cf7b8dbdb842f597c30095f62"),description:i18n("133886b10fd9721e6cf91b76f2df5b6e")})]}])]},$P}return eme.prototype.buildEditorPanel=function($P,tme){var ame=this,nme=$P.info.renderer,rme=this.manager.store;if(!$P.selections.length){var ime=$P.info.plugin;!$P.info.hostId&&(nme!=null&&nme.isFormItem)&&!(ime!=null&&ime.notRenderFormZone)&&tme.push({key:"form-item",icon:"fa fa-desktop",pluginIcon:ame.pluginIcon,title:this.panelTitle,render:this.manager.makeSchemaFormRender({body:this.panelBodyCreator($P),panelById:rme.activeId,formKey:"form-item"}),order:-200})}},eme.prototype.afterUpdate=function($P){var tme,ame,nme=$P.context;if(nme.info.renderer.isFormItem&&(!((tme=nme.diff)===null||tme===void 0)&&tme.some(function(lme){var sme;return((sme=lme.path)===null||sme===void 0?void 0:sme.join("."))==="value"}))){var rme=nme.value.value,ime=(ame=nme.node)===null||ame===void 0?void 0:ame.getComponent();if(typeof rme=="string"&&isExpression(rme)){var ome=(ime==null?void 0:ime.props.data)||{};rme=resolveVariableAndFilter(rme,ome,"| raw")}ime==null||ime.props.onChange(rme)}},eme.prototype.beforeReplace=function($P){var tme=$P.context;tme.info.renderer.isFormItem&&tme.data&&tme.subRenderer&&!~tme.subRenderer.tags.indexOf(i18n("55b45c73ae417c4dead67905b1550e85"))&&~tme.subRenderer.tags.indexOf(i18n("027446c2f9070b0f5b16a18208bf5fc7"))&&(tme.data=__assign$3(__assign$3({},tme.data),{type:"static-".concat(tme.data.type),label:tme.data.label||tme.schema.label,name:tme.data.name||tme.schema.name})),tme.schema&&(tme.data.name=tme.schema.name||tme.data.name)},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=this;$P.id,$P.schema,$P.region;var nme=$P.selections;if(this.manager.store.toolbarMode!=="mini"&&!(!nme.length||nme.length>3)){var rme=nme.concat(),ime=rme.shift(),ome=ime.node.parent;rme.some(function(lme){var sme;return lme.node.parent!==ome||!(!((sme=lme.info.renderer)===null||sme===void 0)&&sme.isFormItem)})||tme.unshift({label:i18n("b95c6e14a4d8f6a6c6d99d583916f327"),icon:"merge-icon",onSelect:function(){var lme=ame.manager.store,sme=nme.concat(),cme=sme.shift(),dme=lme.schema,ume=[__assign$3({},cme.schema)];delete ume[0].$$id,sme.forEach(function(pme){ume.push(pme.node.schema),dme=JSONDelete(dme,pme.id)});var fme=JSONPipeIn({type:"group",body:ume});dme=JSONUpdate(dme,cme.id,fme,!0),lme.traceableSetSchema(dme),setTimeout(function(){lme.setActiveId(cme.id)},40)}},"|")}},eme.id="ItemPlugin",eme}(BasePlugin);registerEditorPlugin(ItemPlugin);var MonthControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-month",$P.$schema="/schemas/MonthControlSchema.json",$P.name=i18n("4ff1e74e43a3586339251494117185ad"),$P.isBaseComponent=!0,$P.pluginIcon="inputMonth-plugin",$P.icon="fa fa-calendar",$P.description=i18n("4f9c849b6b7f048cfd242cef3e707a58"),$P.docLink="/amis/zh-CN/components/form/input-month",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-month",name:"month"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle="Month",$P}return eme.id="MonthControlPlugin",eme}(DateControlPlugin);registerEditorPlugin(MonthControlPlugin);var MonthRangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-month-range",$P.$schema="/schemas/MonthRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-month-range-plugin",$P.name=i18n("7c3885e3c3eca4d95521b3e220586628"),$P.isBaseComponent=!0,$P.description=i18n("5b4ad7ffa6eee985e72e002bf18ac09a"),$P.docLink="/amis/zh-CN/components/form/input-month-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-month-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"month-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.disabledRendererPlugin=!0,$P.notRenderFormZone=!0,$P}return eme.id="MonthRangeControlPlugin",eme}(DateRangeControlPlugin);registerEditorPlugin(MonthRangeControlPlugin);var PasswordControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-password",$P.$schema="/schemas/TextControlSchema.json",$P.name=i18n("5dd92ede50cc183f0f067dd29be5c325"),$P.isBaseComponent=!0,$P.icon="fa fa-asterisk",$P.pluginIcon="input-password-plugin",$P.description=i18n("e3c0d799e8880a36edb07e34fd1bed67"),$P.scaffold={type:"input-password",label:i18n("a8105204604a0b11e916f3879aae3b0b"),name:"password"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3({},$P.scaffold)},$P.panelTitle=$P.name,$P}return eme.id="PasswordControlPlugin",eme}(TextControlPlugin);registerEditorPlugin(PasswordControlPlugin);var InputQuarterPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-quarter",$P.$schema="/schemas/QuarterControlSchema.json",$P.name=i18n("a483bccf85587055ab31314ad1d2f82a"),$P.isBaseComponent=!0,$P.icon="fa fa-calendar",$P.pluginIcon="input-quarter-plugin",$P.description=i18n("549a2a421951fc8c304c6223f346e024"),$P.docLink="/amis/zh-CN/components/form/input-quarter",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-quarter",name:"month"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle="Quarter",$P}return eme.id="InputQuarterPlugin",eme}(DateControlPlugin);registerEditorPlugin(InputQuarterPlugin);var QuarterRangePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-quarter-range",$P.$schema="/schemas/MonthRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-quarter-range-plugin",$P.name=i18n("39891e1760c79287985adece9a107fd6"),$P.isBaseComponent=!0,$P.description=i18n("5b4ad7ffa6eee985e72e002bf18ac09a"),$P.docLink="/amis/zh-CN/components/form/input-quarter-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-quarter-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"quarter-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.disabledRendererPlugin=!0,$P.notRenderFormZone=!0,$P}return eme.id="QuarterRangePlugin",eme}(DateRangeControlPlugin);registerEditorPlugin(QuarterRangePlugin);var TimeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-time",$P.$schema="/schemas/TimeControlSchema.json",$P.name=i18n("82a61b32c76fba3dc83e2611624e93ec"),$P.isBaseComponent=!0,$P.icon="fa fa-clock-o",$P.pluginIcon="input-time-plugin",$P.description=i18n("c54993eb4c2a46263cca2e6bdebb051d"),$P.docLink="/amis/zh-CN/components/form/input-time",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-time",label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),name:"time"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3({},$P.scaffold)},$P.panelTitle=i18n("82a61b32c76fba3dc83e2611624e93ec"),$P}return eme.id="TimeControlPlugin",eme}(DateControlPlugin);registerEditorPlugin(TimeControlPlugin);var TimeRangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-time-range",$P.$schema="/schemas/DateRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-time-range-plugin",$P.name=i18n("7866226eb814f681dcc4037e7489aab8"),$P.isBaseComponent=!0,$P.description=i18n("c166d8f9804ecef74b3b74190599a7b8"),$P.docLink="/amis/zh-CN/components/form/time-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-time-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"time-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.disabledRendererPlugin=!0,$P.notRenderFormZone=!0,$P}return eme.id="TimeRangeControlPlugin",eme}(DateRangeControlPlugin);registerEditorPlugin(TimeRangeControlPlugin);var TreeSelectControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="tree-select",$P.$schema="/schemas/TreeSelectControlSchema.json",$P.name=i18n("6e065eee612393b1d6a16e7696e4c911"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.icon="fa fa-list-alt",$P.pluginIcon="tree-select-plugin",$P.description=i18n("912beb37a3785e50d6483852be41111f"),$P.searchKeywords=i18n("98cb62edf3436738df2561d01ee19ab0"),$P.docLink="/amis/zh-CN/components/form/treeselect",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"tree-select",label:i18n("6e065eee612393b1d6a16e7696e4c911"),name:"tree",clearable:!1,options:[{label:i18n("05f87b331e1c97691776d93a6598373f"),value:"A",children:[{label:i18n("57a6105deead3fec79028cce7bfa2004"),value:"C"},{label:i18n("9bc04a190ce0a5ba1ed473cb628b5ed4"),value:"D"}]},{label:i18n("f38c0a46797523b11051e35ec0f82a42"),value:"B"}]},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3(__assign$3({},$P.scaffold),{label:i18n("a386f65cf2c47acabfab13781dbdd89f"),mode:"normal"})},$P.notRenderFormZone=!0,$P.panelTitle=i18n("f77f634e6892c6447c5d9df623e42aff"),$P.events=function(tme){return __spreadArray(__spreadArray([],__read$3(TREE_BASE_EVENTS(tme)),!1),[{eventName:"focus",eventLabel:i18n("ab0710b367acefa1d6a78e2338291e86"),description:i18n("4638e799b95e1b71edd55f278a6f707c"),dataSchema:function(ame){var nme=resolveOptionEventDataSchame(ame),rme=nme.value,ime=nme.items,ome=nme.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:rme,item:{type:"object",title:i18n("029e280e119b028bffc51424d909c07d"),properties:ome},items:ime}}}}]}},{eventName:"blur",eventLabel:i18n("fc96a5f1b79cb734afe08e401b6ba5e7"),description:i18n("c776ab86eb24f6b3db35114e43026f75"),dataSchema:function(ame){var nme=resolveOptionEventDataSchame(ame),rme=nme.value,ime=nme.items,ome=nme.itemSchema;return[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{value:rme,item:{type:"object",title:i18n("029e280e119b028bffc51424d909c07d"),properties:ome},items:ime}}}}]}}],!1)},$P.actions=__spreadArray(__spreadArray([],__read$3(TreeCommonAction),!1),[__assign$3({actionType:"clear",actionLabel:i18n("288f0c404c4e546aa3683ff5054e85e2"),description:i18n("d81f0b9079d5a38bbedffeacaad8b905")},getActionCommonProps("clear")),__assign$3({actionType:"reset",actionLabel:i18n("4b9c3271dc2f299dc3aeffb369187513"),description:i18n("ce5e449208bb568eaf722bab9a20380e")},getActionCommonProps("reset")),__assign$3({actionType:"setValue",actionLabel:i18n("8f40db3b25528063f1b6a59602a05cd5"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue")),__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload"))],!1),$P.panelDefinitions={options:{label:i18n("25ae4ca8d4b8a67b273066a97a516327"),name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("65d76d0590aa6e05d61fe8db4c6a11ca"),scaffold:{label:"",value:""},items:[{type:"group",body:[getSchemaTpl("optionsLabel"),{type:"input-text",name:"value",placeholder:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),unique:!0}]},{$ref:"options",label:i18n("72453d792655604f1fab821146133d7d"),name:"children",addButtonText:i18n("210da23d108e85b2f0bbfa85846cb792")}]}},$P.panelJustify=!0,$P.panelBodyCreator=function(tme){tme.info.renderer;var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("formItemName",{required:!0}),getSchemaTpl("label"),{type:"button-group-select",name:"type",label:i18n("f0789e79d48f135e5d870753f7a85d05"),pipeIn:defaultValue("tree-select"),options:[{label:i18n("c6e1b91d329a61b691d0d5d2eb343ddd"),value:"input-tree"},{label:i18n("a553741d5ebb9c80d7d2a63b202cf4b8"),value:"tree-select"}]},getSchemaTpl("clearable",{mode:"horizontal",horizontal:{justify:!0,left:8},value:!1,inputClassName:"is-inline ",visibleOn:'this.type === "tree-select"'}),getSchemaTpl("switch",{label:i18n("dbdae74eb12668e2b9568b013bf27d45"),name:"searchable"}),getSchemaTpl("apiControl",{name:"searchApi",label:i18n("5c52d3e283d197588e29ca31bc613ffe"),labelClassName:"none",visibleOn:'this.type === "input-tree" && this.searchable'}),getSchemaTpl("multiple",{body:[{type:"input-number",label:tipedLabel(i18n("4e373f3ff64ad29a01da87317eb92088"),i18n("7a377ac3904628fd73e7d33ce6130ae1")),name:"minLength",min:0},{type:"input-number",label:tipedLabel(i18n("160cb9a7d57c5b5ca65b5cdf79e8fd28"),i18n("674ddb63a7cd9e14a49813d52cf7e25e")),name:"maxLength",min:0}]}),getSchemaTpl("switch",{label:tipedLabel(i18n("204770091fd4b7cd0611ddc65bf21d37"),i18n("be7d848c40dfdd3e20f233c373af00a5")),name:"autoCheckChildren",hiddenOn:"!this.multiple",value:!0}),getSchemaTpl("switch",{label:tipedLabel(i18n("4c3ed2fc7331db687fc0e8ffb8f672a7"),i18n("0ae8c01434dc2a38a90561fcbf5d79b5")),name:"cascade",hiddenOn:"!this.multiple || !this.autoCheckChildren"}),getSchemaTpl("switch",{label:tipedLabel("子节点反选取消父节点","取消任意子节点选中状态的同时取消父节点选中状态"),name:"autoCancelParent",hiddenOn:"!this.multiple || !this.cascade"}),getSchemaTpl("switch",{label:tipedLabel(i18n("22c023bf51970a461cc164e711f3d3ff"),i18n("6e19e48a52986659ae5ba1bfe612ba8a")),name:"withChildren",hiddenOn:"!this.multiple || !this.autoCheckChildren && this.cascade"}),getSchemaTpl("switch",{label:tipedLabel(i18n("cccb3595f8ff536e27d94ec91a49bfdf"),i18n("49ccf100ac35e1cc3d40b7222cdcd1a7")),name:"onlyChildren",hiddenOn:"!this.multiple  || !this.autoCheckChildren"}),getSchemaTpl("valueFormula",{rendererSchema:__assign$3(__assign$3({},tme==null?void 0:tme.schema),{type:"tree-select"}),visibleOn:"this.options && this.options.length > 0"}),getSchemaTpl("labelRemark"),getSchemaTpl("remark"),getSchemaTpl("placeholder"),getSchemaTpl("description")]},{title:i18n("ea15ae2b7fba76c83eec6d0986d15197"),body:[getSchemaTpl("treeOptionControl",{label:i18n("0d83078816aa273f2941c9b55ec82bf3"),showIconField:!0}),getSchemaTpl("optionsMenuTpl",{manager:$P.manager}),getSchemaTpl("apiControl",{name:"deferApi",label:i18n("dd52923c45686a6f507854e438d4880e"),labelClassName:"none"}),getSchemaTpl("deferField"),getSchemaTpl("loadingConfig",{visibleOn:"this.source || !this.options"},{context:tme}),{type:"checkboxes",name:"nodeBehavior",label:"节点行为",value:["check"],joinValues:!1,extractValue:!0,inline:!0,options:[{label:"选中",value:"check"},{label:i18n("e2edde5adbdf33f6dce59a299cbf5fad"),value:"unfold"}]},getSchemaTpl("switch",{label:i18n("a0e965072593eb1b19b4568fa26d977c"),name:"onlyLeaf"}),getSchemaTpl("optionAddControl",{manager:$P.manager,collections:[getSchemaTpl("switch",{label:i18n("bc560e477282dafc3c37b7a665af4f9c"),value:!0,name:"rootCreatable"}),{type:"input-text",label:i18n("9a3af29bac4ff8dff3305e283acb2516"),value:i18n("b4eab506cf436d3cdd1cd68fc857ec04"),name:"rootCreateTip",hiddenOn:"!this.rootCreatable"},{type:"input-text",label:i18n("f273cc663180d6f62497ff3a28f4fdd7"),value:i18n("897deae9c4c3dc0baa4a6989bb8727b6"),name:"createTip"}]}),getSchemaTpl("optionEditControl",{manager:$P.manager,collections:[{type:"input-text",label:i18n("aefacb210d5fa5eff897a302269ed920"),value:i18n("f9886b3adb1ec253d24432615b62151c"),name:"editTip"}]}),getSchemaTpl("optionDeleteControl",{manager:$P.manager,collections:[{type:"input-text",label:i18n("b8079d1411b21dbc48749154a827a680"),value:i18n("176a53a7fc4759482d71312551d868ec"),name:"removeTip"}]}),{type:"select",label:"操作栏位置",value:"",name:"themeCss.actionControlClassName.marginLeft",options:[{label:i18n("39a2cb79c6d9762783e20522ea86dcff"),value:""},{label:i18n("de2a774bf98944b8f0ec8755d5f59d64"),value:"auto"}]},{type:"ae-switch-more",mode:"normal",label:"自定义操作",bulk:!1,name:"itemActions",formType:"extend",form:{body:[{type:"button",level:"primary",size:"sm",block:!0,onClick:$P.editDetail.bind($P,tme.id),label:"配置自定义操作模板"}]},pipeIn:function(nme){return nme!==void 0},pipeOut:function(nme){return nme===!0?{type:"button",icon:"fa fa-plus",level:"link",size:"xs"}:nme||void 0}}]},{title:i18n("dfac151de712ab0b3618072c8a7f0a0f"),body:[getSchemaTpl("valueFormula",{name:"highlightTxt",label:i18n("2b3073b1ba5f9deab7818d8be02de3a1"),visibleOn:'this.type === "input-tree"'}),{type:"ae-Switch-More",mode:"normal",name:"enableNodePath",label:tipedLabel(i18n("14dc30e68a3d8d53e8ddd98876c1d480"),i18n("68c7da9593da32100cb82ef5106047e1")),value:!1,formType:"extend",autoFocus:!1,form:{body:[{type:"input-text",label:i18n("9cb417cfac37e6d65dedbc35ee9e916e"),value:"/",name:"pathSeparator"}]}},{type:"ae-Switch-More",mode:"normal",name:"hideRoot",label:i18n("d6840c02c4d9cd5f4f5fd4d9f3e6b916"),value:!0,trueValue:!1,falseValue:!0,formType:"extend",autoFocus:!1,form:{body:[{type:ame?"input-text-i18n":"input-text",label:i18n("e2c310a329c2cf62a0764fc912f2f583"),value:i18n("c48d9f48ce8a798772f17d1f47560529"),name:"rootLabel"}]},visibleOn:'this.type === "input-tree"'},getSchemaTpl("switch",{label:tipedLabel(i18n("0aa73cfbe5a84cd34a212de5bab2058d"),i18n("4dabfefd787102b8159b5c4a221aa048")),name:"hideNodePathLabel",visibleOn:'this.type==="tree-select"'}),getSchemaTpl("switch",{label:i18n("8c9a3a8cd5de83121c03c83f909a7534"),name:"showIcon",value:!0}),getSchemaTpl("switch",{label:tipedLabel(i18n("ae7d563d3190ddbafdda8093fc28fc5f"),i18n("4444d03faa51f8550a8a4547fb471ab7")),name:"showRadio",hiddenOn:"this.multiple"}),getSchemaTpl("switch",{label:tipedLabel(i18n("0f993a54d2c67716220632577d3b5b51"),i18n("846da282ebfa6dfe61deb1d58145158c")),name:"showOutline"}),{type:"ae-Switch-More",mode:"normal",name:"initiallyOpen",label:tipedLabel(i18n("d7eae84550f9b9bc0c78a94e4072ad0d"),i18n("346f7e0c7ef27b6a83f3c9f8f406d737")),value:!0,trueValue:!1,falseValue:!0,formType:"extend",autoFocus:!1,form:{body:[{type:"input-number",label:i18n("b40163733b8e3a420e38f295bfab369d"),name:"unfoldedLevel",value:1,min:0,hiddenOn:"this.initiallyOpen"}]}},getSchemaTpl("virtualThreshold"),getSchemaTpl("virtualItemHeight")]},getSchemaTpl("status",{isFormItem:!0}),getSchemaTpl("validation",{tag:ValidatorTag.Tree})])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[getSchemaTpl("theme:formItem"),getSchemaTpl("theme:form-label"),getSchemaTpl("theme:form-description"),{title:i18n("f7e3d7e3146bb53b5e6f09f7c90dea3a"),body:__spreadArray([],__read$3(inputStateTpl("themeCss.inputControlClassName","--input-default")),!1)}])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildDataSchemas=function($P,tme){var ame,nme,rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme=resolveOptionType($P.schema),yme={type:gme,title:((nme=$P.schema)===null||nme===void 0?void 0:nme.label)||((rme=$P.schema)===null||rme===void 0?void 0:rme.name),originalValue:(ime=$P.schema)===null||ime===void 0?void 0:ime.value};return((ome=$P.schema)===null||ome===void 0?void 0:ome.joinValues)===!1&&(yme=__assign$3(__assign$3({},yme),{type:"object",title:((lme=$P.schema)===null||lme===void 0?void 0:lme.label)||((sme=$P.schema)===null||sme===void 0?void 0:sme.name),properties:(ame={},ame[((cme=$P.schema)===null||cme===void 0?void 0:cme.labelField)||"label"]={type:"string",title:i18n("97d07614380da93d257f9fbf81aa56fb")},ame[((dme=$P.schema)===null||dme===void 0?void 0:dme.valueField)||"value"]={type:gme,title:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},ame)})),!((ume=$P.schema)===null||ume===void 0)&&ume.multiple&&(!((fme=$P.schema)===null||fme===void 0)&&fme.extractValue?yme={type:"array",title:((pme=$P.schema)===null||pme===void 0?void 0:pme.label)||((hme=$P.schema)===null||hme===void 0?void 0:hme.name)}:((bme=$P.schema)===null||bme===void 0?void 0:bme.joinValues)===!1&&(yme={type:"array",title:((mme=$P.schema)===null||mme===void 0?void 0:mme.label)||((vme=$P.schema)===null||vme===void 0?void 0:vme.name),items:{type:"object",title:i18n("ab5dea29793d933fa7b5487a7309df6a"),properties:yme.properties},originalValue:yme.originalValue})),yme},eme.prototype.getSubEditorVariable=function($P){var tme=($P==null?void 0:$P.labelField)||"label",ame=($P==null?void 0:$P.valueField)||"value";return[{label:"节点选项",children:[{label:"节点索引",value:"index"},{label:"节点名称",value:tme},{label:"节点值",value:ame},{label:"节点状态",value:"checked"}]}]},eme.prototype.getDisplayField=function($P){var tme;return $P.source||$P.map&&Array.isArray($P.map)&&$P.map[0]&&Object.keys($P.map[0]).length>1?(tme=$P.labelField)!==null&&tme!==void 0?tme:"label":"item"},eme.prototype.editDetail=function($P){var tme,ame=this.manager,nme=ame.store,rme=nme.getNodeById($P),ime=nme.getValueOf($P),ome={type:"button",icon:"fa fa-plus",level:"link",size:"xs"};rme&&ime&&this.manager.openSubEditor({title:"配置自定义操作模板",value:schemaToArray((tme=ime.itemActions)!==null&&tme!==void 0?tme:ome),slot:{type:"container",body:"$$"},onChange:function(lme){lme=__assign$3(__assign$3({},ime),{itemActions:schemaArrayFormat(lme)}),ame.panelChangeValue(lme,diff(ime,lme))}})},eme.id="TreeSelectControlPlugin",eme}(BasePlugin);registerEditorPlugin(TreeSelectControlPlugin);var URLControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-url",$P.$schema="/schemas/TextControlSchema.json",$P.name=i18n("13604cddfe74bc9b9078dd61f9fb94ef"),$P.isBaseComponent=!0,$P.icon="fa fa-link",$P.pluginIcon="input-url-plugin",$P.description=i18n("ed2e16700e32afdcdd745aa31454edb9"),$P.docLink="/amis/zh-CN/components/form/input-url",$P.scaffold={type:"input-url",label:i18n("bfe68d5844f8e54602760e18f45954f7"),name:"url"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:__assign$3({},$P.scaffold)},$P.panelTitle="URL",$P}return eme.id="URLControlPlugin",eme}(TextControlPlugin);registerEditorPlugin(URLControlPlugin);var YearControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-year",$P.$schema="/schemas/YearControlSchema.json",$P.name="Year",$P.isBaseComponent=!0,$P.icon="fa fa-calendar",$P.pluginIcon="input-year-plugin",$P.description=i18n("b233766d3fae72574d3f9ee98c5be120"),$P.docLink="/amis/zh-CN/components/form/input-year",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-year",name:"year"},$P.disabledRendererPlugin=!0,$P.previewSchema={type:"form",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.panelTitle="Year",$P}return eme.id="YearControlPlugin",eme}(DateControlPlugin);registerEditorPlugin(YearControlPlugin);var YearRangeControlPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="input-year-range",$P.$schema="/schemas/DateRangeControlSchema.json",$P.icon="fa fa-calendar",$P.pluginIcon="input-month-range-plugin",$P.name=i18n("7866226eb814f681dcc4037e7489aab8"),$P.isBaseComponent=!0,$P.description=i18n("32a750b4fd61f1cfe37cac7147f05b3c"),$P.docLink="/amis/zh-CN/components/form/year-range",$P.tags=[i18n("55b45c73ae417c4dead67905b1550e85")],$P.scaffold={type:"input-year-range",label:i18n("7866226eb814f681dcc4037e7489aab8"),name:"year-range"},$P.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[__assign$3({},$P.scaffold)]},$P.disabledRendererPlugin=!0,$P.notRenderFormZone=!0,$P}return eme.id="YearRangeControlPlugin",eme}(DateRangeControlPlugin);registerEditorPlugin(YearRangeControlPlugin);var BreadcrumbPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="breadcrumb",$P.$schema="/schemas/BreadcrumbSchema.json",$P.disabledRendererPlugin=!0,$P.name=i18n("169b227aff15b834b64205d0fdcb0f33"),$P.isBaseComponent=!0,$P.icon="fa fa-list",$P.pluginIcon="breadcrumb-plugin",$P.description=i18n("3576258acd7269da9f44859a2edec1aa"),$P.docLink="/amis/zh-CN/components/breadcrumb",$P.tags=[i18n("0d98c74797e49d00bcc4c17c9d557a2b")],$P.scaffold={type:"breadcrumb",items:[{label:i18n("db1c89e0f6e62f9642018cbb531bbd4f"),href:"/",icon:"fa fa-home"},{label:i18n("2e8bf3c87641fba59c2a9cb6636d7e88")},{label:i18n("12d358955755488ff3790bbd6d75673a")}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("169b227aff15b834b64205d0fdcb0f33"),$P.panelBody=[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("894b94fbb15650da7f9290e7106446f3"),type:"input-text",name:"separator"},getSchemaTpl("api",{label:i18n("a38100f22f59f7cd89e36139faa6fd4d"),name:"source"}),{label:i18n("169b227aff15b834b64205d0fdcb0f33"),name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:i18n("66ab5e9f24c8f46012a25c89919fb191"),items:[{type:"input-text",placeholder:i18n("97d07614380da93d257f9fbf81aa56fb"),name:"label"},{type:"input-text",name:"href",placeholder:i18n("bfe68d5844f8e54602760e18f45954f7")},getSchemaTpl("icon",{name:"icon",label:i18n("5ef69f62dc668c1a3e68b51c50a2530a")})]}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className"),getSchemaTpl("className",{name:"itemClassName",label:i18n("ba7f916a39c0beb545388ea3b7f6b3b7")}),,getSchemaTpl("className",{name:"separatorClassName",label:i18n("e3acc9857c852dae27e064ace5e5688e")})]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("ref"),getSchemaTpl("visible")]}])],$P}return eme.id="BreadcrumbPlugin",eme}(BasePlugin);registerEditorPlugin(BreadcrumbPlugin);var CustomPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="custom",$P.$schema="/schemas/CustomSchema.json",$P.name=i18n("b82231f254baf9a28bf752683d31b169"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.description=i18n("e5b5798a8bab7dc8a578431991731040"),$P.docLink="/amis/zh-CN/components/custom",$P.tags=[i18n("997c7a5d34f6fc628893f509d0df32e0"),i18n("22c799040acdb2601b437ed5449de076")],$P.icon="fa fa-gears",$P.scaffold={type:"custom",html:i18n("73ac822ddf4685dbfec661dec41a96b7"),onMount:"this.renderChild('body', props.body, document.getElementById('customBox'));",body:[{type:"tpl",wrapperComponent:"",tpl:i18n("5323ab3e5c12066101244f0577c30e22")}]},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P.panelTitle=i18n("473d2078518479669823205110842376"),$P.panelBody=[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("fieldSet",{title:i18n("0b13dc6251002bf556263fb3e4675b11"),body:[{label:i18n("0b13dc6251002bf556263fb3e4675b11"),name:"html",type:"editor",allowFullscreen:!0}]}),getSchemaTpl("fieldSet",{title:"onMount",body:[{name:"onMount",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("d6b917c76b92aa9b92b6bebdcab993f3"),options:{lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}}]}),getSchemaTpl("fieldSet",{title:"onUpdate",body:[{name:"onUpdate",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("e64739dd24bb0bfcb6f6e1ee2cce5413")}]}),getSchemaTpl("fieldSet",{title:"onUnmount",body:[{name:"onUnmount",type:"editor",allowFullscreen:!0,size:"xxl",label:i18n("0601b7aa5b53cbc3616e24719bcd2aaa")}]})],$P}return eme.prototype.getRendererInfo=function($P){var tme=this,ame=$P.renderer,nme=$P.schema;if(nme.$$id&&tme.name&&tme.rendererName&&tme.rendererName===ame.name){var rme=tme.regions;return!rme&&nme&&nme.body&&isArray$t(nme.body)&&(rme=[{key:"body",label:i18n("749f710d280419b1da031c9bc79b3b07")}]),{name:tme.name,regions:rme,patchContainers:tme.patchContainers,vRendererConfig:tme.vRendererConfig,wrapperProps:tme.wrapperProps,wrapperResolve:tme.wrapperResolve,filterProps:tme.filterProps,$schema:tme.$schema,renderRenderer:tme.renderRenderer,multifactor:tme.multifactor,scaffoldForm:tme.scaffoldForm,disabledRendererPlugin:tme.disabledRendererPlugin,isBaseComponent:tme.isBaseComponent,rendererName:tme.rendererName,memberImmutable:tme.memberImmutable}}},eme.id="CustomRegionPlugin",eme}(BasePlugin);registerEditorPlugin(CustomPlugin);var ModalSettingPanel=observer(function(x_){var eme=x_.store,$P=x_.manager;x_.popOverContainer;var tme=React__default.useMemo(function(){return[getSchemaTpl("collapseGroup",[{title:"弹窗入参",body:[{type:"json-schema-editor",name:"inputParams",label:!1,mini:!0,disabledTypes:["array"],evalMode:!0,addButtonText:"添加入参"}]}])]},[]),ame=eme.root.firstChild,nme=eme.getValueOf(ame.id),rme=React__default.useCallback(function(ome,lme){$P.panelChangeValue(ome,lme,void 0,ame.id)},[]),ime=React__default.useMemo(function(){return __assign$3(__assign$3({},$P.env),{session:"left-panel-form"})},[]);return React__default.createElement("div",{className:"ae-Outline-panel"},React__default.createElement("div",{className:"panel-header"},"弹窗参数"),React__default.createElement(SchemaFrom,{body:tme,value:nme,onChange:rme,submitOnChange:!0,env:ime,node:ame,manager:$P,justify:!0}))}),DialogPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="dialog",$P.$schema="/schemas/DialogSchema.json",$P.name=i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),$P.isBaseComponent=!0,$P.wrapperProps={wrapperComponent:InlineModal,onClose:noop,show:!0},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",renderMethodOverride:function(tme,ame){return function(){for(var nme=[],rme=0;rme<arguments.length;rme++)nme[rme]=arguments[rme];var ime=this.props.$$editor,ome=this.super.apply(this,__spreadArray([],__read$3(nme),!1));return ime&&nme[1]==="body"?ame(this,ome,tme,ime,ime.plugin.manager):ome}}},{key:"actions",label:i18n("c8caf94205105bac5833ab31cc2129d7"),renderMethod:"renderFooter",wrapperResolve:function(tme){return tme}}],$P.events=[{eventName:"confirm",eventLabel:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),description:i18n("773ddc154f1e9b80f04e8bc9d83d2caf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"cancel",eventLabel:i18n("625fb26b4b3340f7872b411f401e754c"),description:i18n("08ab4ffcd1bddd249a193e6353bb52bb"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]}],$P.actions=[{actionType:"confirm",actionLabel:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),description:i18n("4708bcefff645287c8781a1de2a0f20b"),descDetail:function(tme){return React__default.createElement("div",null,i18n("56eafb82d11c72b65efe07b9bedb5c19"))}},{actionType:"cancel",actionLabel:i18n("625fb26b4b3340f7872b411f401e754c"),description:i18n("af17a4e37e5c6d68fff33c084192801b")},__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("ab3aec075a09d055b2a28c8b61925ee0"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme=getI18nEnabled();return((ame=tme.schema)===null||ame===void 0?void 0:ame.dialogType)==="confirm"?getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},{type:"radios",label:"弹出方式",name:"actionType",pipeIn:function(rme,ime,ome){return rme??ome.type},inline:!1,options:[{label:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"},{label:i18n("fa6b01f51cc2b8e16bfbb914b6c08ace"),value:"confirmDialog"}]},{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:"input-text",name:"title"},{label:i18n("e406488d1b9545168eb1896e35139bf2"),type:"input-text",name:"confirmText"},{label:i18n("d919d62d7e5ec5cb63ad47e5dc347a7e"),type:"input-text",name:"cancelText"},getSchemaTpl("switch",{label:i18n("f29ab26877ed22ffa59636d747d824b9"),name:"closeOnEsc",value:!1})]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{label:i18n("c8339fd2a85af4ba66084d28df808de4"),type:"button-group-select",name:"size",size:"sm",options:[{label:i18n("544fac400db790f57ea8ee4207cbeb6b"),value:""},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("949934d97c42801151673a51d3adc421"),value:"xl"}],pipeIn:defaultValue(""),pipeOut:function(rme){return rme||void 0}},getSchemaTpl("buttonLevel",{label:i18n("b12df8decf62700970e08b9b2ebce1f8"),name:"confirmBtnLevel"}),getSchemaTpl("buttonLevel",{label:i18n("7f29931020c2d8ce97b8043a933db151"),name:"cancelBtnLevel"})]}])}]):getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},{type:"radios",label:"弹出方式",name:"actionType",pipeIn:function(rme,ime,ome){return rme??ome.type},inline:!1,options:[{label:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"},{label:i18n("fa6b01f51cc2b8e16bfbb914b6c08ace"),value:"confirmDialog"}]},getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:nme?"input-text-i18n":"input-text",name:"title"},getSchemaTpl("button-manager"),getSchemaTpl("switch",{label:i18n("8c8fbec263e20f087555c9abcb6dd07a"),name:"showCloseButton",value:!0}),getSchemaTpl("switch",{label:i18n("67a2d9746956b631dd3ae9d13b6ae9ff"),name:"closeOnOutside",value:!1}),getSchemaTpl("switch",{label:i18n("f29ab26877ed22ffa59636d747d824b9"),name:"closeOnEsc",value:!1}),{type:"ae-StatusControl",label:i18n("36f5b682310bd52f19c63b077ec054d1"),mode:"normal",name:"hideActions",expressionName:"hideActionsOn"},getSchemaTpl("switch",{label:i18n("dcba76890a534e1fe94421be2a17b484"),name:"showErrorMsg",value:!0}),getSchemaTpl("switch",{label:i18n("af5876b89583552eef4c781718886dec"),name:"showLoading",value:!0}),getSchemaTpl("switch",{label:i18n("69a79a0e5083305255d191f708a41860"),name:"draggable",value:!1}),getSchemaTpl("dataMap")]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),body:[{label:i18n("c8339fd2a85af4ba66084d28df808de4"),type:"button-group-select",name:"size",size:"xs",options:[{label:i18n("544fac400db790f57ea8ee4207cbeb6b"),value:""},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("949934d97c42801151673a51d3adc421"),value:"xl"},{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:"custom"}],pipeIn:defaultValue(""),pipeOut:function(rme){return rme||void 0},onChange:function(rme,ime,ome,lme){rme!=="custom"&&lme.setValueByName("style",void 0)}},{type:"input-number",label:i18n("c28479019e24e0e4745f4948e9e97ee7"),name:"style.width",disabled:!0,clearable:!0,unitOptions:["px","%","em","vh","vw"],visibleOn:'this.size !== "custom"',pipeIn:function(rme,ime){if(ime.data.size){if(ime.data.size==="sm")return"350px";if(ime.data.size==="md")return"800px";if(ime.data.size==="lg")return"1100px";if(ime.data.size==="xl")return"90%"}else return"500px";return""}},{type:"input-number",label:i18n("c28479019e24e0e4745f4948e9e97ee7"),name:"style.width",clearable:!0,unitOptions:["px","%","em","vh","vw"],visibleOn:'this.size === "custom"',pipeOut:function(rme){var ime=parseInt(rme);if(rme==="auto"||ime||ime===0)return rme}},{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),name:"style.height",disabled:!0,visibleOn:'this.size !== "custom"',clearable:!0,unitOptions:["px","%","em","vh","vw"]},{type:"input-number",label:i18n("c1df04eec5fa0857bc0df2d68d8e953c"),name:"style.height",visibleOn:'this.size === "custom"',clearable:!0,unitOptions:["px","%","em","vh","vw"],pipeOut:function(rme){var ime=parseInt(rme);if(rme==="auto"||ime||ime===0)return rme}},getSchemaTpl("theme:border",{name:"themeCss.dialogClassName.border"}),getSchemaTpl("theme:radius",{name:"themeCss.dialogClassName.radius"}),getSchemaTpl("theme:shadow",{name:"themeCss.dialogClassName.box-shadow"}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.dialogClassName.background",labelMode:"input"}),getSchemaTpl("theme:colorPicker",{label:i18n("6bdc97671296112658e3a1cd369c0686"),name:"themeCss.dialogMaskClassName.background",labelMode:"input"})]},{title:i18n("030c8cb75e9707285b28c4931bfeddc5"),body:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.dialogTitleClassName.font",hasVertical:!1}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.dialogHeaderClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.dialogHeaderClassName.background",labelMode:"input"})]},{title:i18n("132a78bdf68d6d17bde00aa807bbf032"),body:[getSchemaTpl("theme:border",{name:"themeCss.dialogBodyClassName.border"}),getSchemaTpl("theme:radius",{name:"themeCss.dialogBodyClassName.radius"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.dialogBodyClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.dialogBodyClassName.background",labelMode:"input"})]},{title:i18n("b3b287010ea79586507a77e0580d9cad"),body:[getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.dialogFooterClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.dialogFooterClassName.background",labelMode:"input"})]}])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.afterUpdate=function($P){var tme=this,ame,nme=$P.context;if(nme.info.renderer.type&&["dialog","drawer"].includes(nme.info.renderer.type)&&(!((ame=nme.diff)===null||ame===void 0)&&ame.some(function(lme){var sme;return((sme=lme.path)===null||sme===void 0?void 0:sme.join("."))==="actionType"}))){var rme=find$3(nme.diff,function(lme){var sme;return((sme=lme.path)===null||sme===void 0?void 0:sme.join("."))==="actionType"}),ime=rme==null?void 0:rme.rhs,ome=ime==="drawer"?"drawer":"dialog";ome!==nme.schema.type&&this.manager.replaceChild(nme.id,__assign$3(__assign$3({},nme.schema),{type:ime==="drawer"?"drawer":"dialog"}))&&setTimeout(function(){tme.manager.rebuild()},4)}},eme.prototype.buildSubRenderers=function(){},eme.prototype.wrapperResolve=function($P){return $P.lastChild},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume;return __generator(this,function(fme){if(lme=(nme=this.manager.store.getNodeById($P.id))===null||nme===void 0?void 0:nme.getComponent(),sme=omit$1(lme.props.$schema.data,"$$id"),cme=JSONPipeOut(lme.props.$schema.inputParams),dme=__assign$3({},cme==null?void 0:cme.properties),lme.props.$schema.data===void 0||!isEmpty(sme))for(ume in sme)["&"].includes(ume)||(dme[ume]={type:(rme=typeof sme[ume])!==null&&rme!==void 0?rme:"string",title:ume});return[2,__assign$3(__assign$3({$id:"dialog",type:"object"},cme),{title:((ime=$P.schema)===null||ime===void 0?void 0:ime.label)||((ome=$P.schema)===null||ome===void 0?void 0:ome.name),properties:dme})]})})},eme.prototype.patchSchema=function($P,tme,ame){if(!Array.isArray($P.actions))return __assign$3(__assign$3({},$P),{actions:[{type:"button",actionType:"cancel",label:i18n("625fb26b4b3340f7872b411f401e754c")},ame!=null&&ame.confirm?{type:"button",actionType:"confirm",label:i18n("38cf16f2204ffab8a6e0187070558721"),primary:!0}:null].filter(function(nme){return nme})})},eme.prototype.buildEditorPanel=function($P,tme){var ame;this.manager.store.isSubEditor&&["dialog","drawer"].includes((ame=this.manager.store.schema)===null||ame===void 0?void 0:ame.type)&&tme.push({key:"modal-setting",icon:"",title:React__default.createElement("span",{className:"editor-tab-icon editor-tab-s-icon","editor-tooltip":"弹窗参数"},React__default.createElement(Icon$1,{icon:"modal-setting"})),position:"left",component:ModalSettingPanel,order:-99999}),x_.prototype.buildEditorPanel.call(this,$P,tme)},eme.id="DialogPlugin",eme}(BasePlugin);registerEditorPlugin(DialogPlugin);var InlineModal=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.componentDidMount=function(){},eme.prototype.render=function(){var $P=this.props,tme=$P.type,ame=$P.children,nme=$P.dialogType,rme=$P.cancelText,ime=$P.confirmText,ome=$P.cancelBtnLevel,lme=$P.confirmBtnLevel,sme=$P.editorDialogMountNode,cme=tme==="drawer"?Drawer$1:FinalModal;return nme==="confirm"?(ame=ame.filter(function(dme){return(dme==null?void 0:dme.key)!=="actions"}),React__default.createElement(FinalModal,__assign$3({},this.props,{container:sme}),React__default.createElement("div",{className:"ae-InlineModal"},ame,React__default.createElement("div",{className:"ae-InlineModal-footer"},React__default.createElement(Button$1,{className:"ae-InlineModal-footer-btn",level:ome},rme||i18n("625fb26b4b3340f7872b411f401e754c")),React__default.createElement(Button$1,{className:"ae-InlineModal-footer-btn",level:lme},ime||i18n("e83a256e4f5bb4ff8b3d804b5473217a")))))):React__default.createElement(cme,__assign$3({},this.props,{container:sme}),ame)},eme}(React__default.Component),DrawerPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="drawer",$P.$schema="/schemas/DrawerSchema.json",$P.name=i18n("33f1fc330b325469b43614c9d96f590e"),$P.isBaseComponent=!0,$P.wrapperProps={wrapperComponent:InlineModal,onClose:noop,resizable:!1,show:!0},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",renderMethodOverride:function(tme,ame){return function(){for(var nme=[],rme=0;rme<arguments.length;rme++)nme[rme]=arguments[rme];var ime=this.props.$$editor,ome=this.super.apply(this,__spreadArray([],__read$3(nme),!1));return ime&&nme[1]==="body"?ame(this,ome,tme,ime,ime.plugin.manager):ome}}},{key:"actions",label:i18n("c8caf94205105bac5833ab31cc2129d7"),renderMethod:"renderFooter",wrapperResolve:function(tme){return tme}}],$P.events=[{eventName:"confirm",eventLabel:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),description:i18n("0c5a0448b07419ad2900c36867e8e4e0"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"cancel",eventLabel:i18n("625fb26b4b3340f7872b411f401e754c"),description:i18n("57f215184a2fb83541f7cfa22d039feb"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]}],$P.actions=[{actionType:"confirm",actionLabel:i18n("e83a256e4f5bb4ff8b3d804b5473217a"),description:i18n("97b6bad87c4320faac2f6a5cf556c26c"),descDetail:function(tme){return React__default.createElement("div",null,"触发确认操作")}},{actionType:"cancel",actionLabel:i18n("625fb26b4b3340f7872b411f401e754c"),description:i18n("909ba2872b2d670ec0ecbcacc4c8c833")},__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.panelTitle=i18n("ab3aec075a09d055b2a28c8b61925ee0"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"input-text",label:i18n("3791ba5c2962a42a251489872342b7d6"),name:"editorSetting.displayName"},{type:"radios",label:"弹出方式",name:"actionType",pipeIn:function(nme,rme,ime){return nme??ime.type},inline:!1,options:[{label:i18n("6cff4b6d794cc17f5d24dbe0d21e5732"),value:"dialog"},{label:i18n("2a2924380dfcaea998bd8a49703545a9"),value:"drawer"},{label:i18n("fa6b01f51cc2b8e16bfbb914b6c08ace"),value:"confirmDialog"}]},getSchemaTpl("layout:originPosition",{value:"left-top"}),{label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),type:ame?"input-text-i18n":"input-text",name:"title"},getSchemaTpl("switch",{name:"overlay",label:i18n("bde8a41fc64bfe78d0c4951ac6f93718"),pipeIn:defaultValue(!0)}),getSchemaTpl("button-manager"),getSchemaTpl("switch",{name:"showCloseButton",label:i18n("8c8fbec263e20f087555c9abcb6dd07a"),pipeIn:defaultValue(!0)}),getSchemaTpl("switch",{name:"closeOnOutside",label:i18n("67a2d9746956b631dd3ae9d13b6ae9ff")}),getSchemaTpl("switch",{label:i18n("f29ab26877ed22ffa59636d747d824b9"),name:"closeOnEsc"}),{type:"ae-StatusControl",label:i18n("36f5b682310bd52f19c63b077ec054d1"),mode:"normal",name:"hideActions",expressionName:"hideActionsOn"},getSchemaTpl("switch",{name:"resizable",label:i18n("874cf31274d782914c7833cc39836c4e"),value:!1}),getSchemaTpl("dataMap")]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("39003734d1d700d5bd97bf1e7a2fcf73"),body:[{type:"button-group-select",name:"position",label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),mode:"horizontal",options:[{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("af767b7e4ae069d54f9ea839858d4c6d"),value:"top"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"},{label:i18n("3850a186c3235bc646d4c2f79cebac36"),value:"bottom"}],pipeIn:defaultValue("right"),pipeOut:function(nme){return nme||"right"},onChange:function(nme,rme,ime,ome){nme==="left"||nme==="right"?ome.deleteValueByName("height"):(nme==="top"||nme==="bottom")&&ome.deleteValueByName("width")}},{type:"button-group-select",name:"size",label:i18n("c8339fd2a85af4ba66084d28df808de4"),size:"sm",mode:"horizontal",options:[{label:i18n("544fac400db790f57ea8ee4207cbeb6b"),value:""},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"},{label:i18n("949934d97c42801151673a51d3adc421"),value:"xl"}],pipeIn:defaultValue(""),pipeOut:function(nme){return nme||void 0}},getSchemaTpl("style:widthHeight",{widthSchema:{label:tipedLabel(i18n("c28479019e24e0e4745f4948e9e97ee7"),i18n("94397b87ac63fe238c779120fadab024")),visibleOn:'this.position === "left" || this.position === "right" || !this.position'},heightSchema:{label:tipedLabel(i18n("c1df04eec5fa0857bc0df2d68d8e953c"),i18n("a6d91e801974dfa735a4ae0e098c522a")),visibleOn:'this.position === "top" || this.position === "bottom"'}}),getSchemaTpl("theme:border",{name:"themeCss.drawerClassName.border"}),getSchemaTpl("theme:radius",{name:"themeCss.drawerClassName.radius"}),getSchemaTpl("theme:shadow",{name:"themeCss.drawerClassName.box-shadow"}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.drawerClassName.background",labelMode:"input"}),getSchemaTpl("theme:colorPicker",{label:i18n("6bdc97671296112658e3a1cd369c0686"),name:"themeCss.drawerMaskClassName.background",labelMode:"input"})]},{title:i18n("030c8cb75e9707285b28c4931bfeddc5"),body:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.drawerTitleClassName.font"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.drawerHeaderClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.drawerHeaderClassName.background",labelMode:"input"})]},{title:i18n("132a78bdf68d6d17bde00aa807bbf032"),body:[getSchemaTpl("theme:border",{name:"themeCss.drawerBodyClassName.border"}),getSchemaTpl("theme:radius",{name:"themeCss.drawerBodyClassName.radius"}),getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.drawerBodyClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.drawerBodyClassName.background",labelMode:"input"})]},{title:i18n("b3b287010ea79586507a77e0580d9cad"),body:[getSchemaTpl("theme:paddingAndMargin",{name:"themeCss.drawerFooterClassName.padding-and-margin",label:i18n("60bac4c0a381a42b320a703227be59eb")}),getSchemaTpl("theme:colorPicker",{label:i18n("8e1b944f4389bdaab6f11d5bc83190c8"),name:"themeCss.drawerFooterClassName.background",labelMode:"input"})]}])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P}return eme.prototype.buildSubRenderers=function(){},eme.prototype.wrapperResolve=function($P){return $P.lastChild},eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume;return __generator(this,function(fme){if(lme=(nme=this.manager.store.getNodeById($P.id))===null||nme===void 0?void 0:nme.getComponent(),sme=omit$1(lme.props.$schema.data,"$$id"),cme=JSONPipeOut(lme.props.$schema.inputParams),dme=__assign$3({},cme==null?void 0:cme.properties),lme.props.$schema.data===void 0||!isEmpty(sme))for(ume in sme)["&"].includes(ume)||(dme[ume]={type:(rme=typeof sme[ume])!==null&&rme!==void 0?rme:"string",title:ume});return[2,__assign$3(__assign$3({$id:"drawer",type:"object"},cme),{title:((ime=$P.schema)===null||ime===void 0?void 0:ime.label)||((ome=$P.schema)===null||ome===void 0?void 0:ome.name),properties:dme})]})})},eme.id="DrawerPlugin",eme}(BasePlugin);registerEditorPlugin(DrawerPlugin);var HBoxPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="hbox",$P.$schema="/schemas/HBoxSchema.json",$P.disabledRendererPlugin=!0,$P.name="HBox",$P.isBaseComponent=!0,$P.icon="fa fa-columns",$P.description=i18n("69a519f6b7fd6d0bebba72e7572ea1d6"),$P.docLink="/amis/zh-CN/components/hbox",$P.tags=[i18n("22c799040acdb2601b437ed5449de076")],$P.scaffold={type:"hbox",gap:"base",columns:[{body:[]},{body:[]}]},$P.previewSchema={type:"hbox",columns:[{type:"tpl",tpl:i18n("f9c91bffab8b1202cf32ab508879e805"),columnClassName:"bg-primary w-xs"},{type:"tpl",tpl:i18n("8c187c1862900db487c8d47e19490fac"),columnClassName:"bg-success"}]},$P.panelTitle="HBox",$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),getSchemaTpl("fieldSet",{title:i18n("9bdb07e72d3a9a6084201a7398523f5a"),collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowAfter(tme.node)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-bottom"}),React__default.createElement("span",null,i18n("3c43c5860b4dfaced296d7a63eae1513")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowBefore(tme.node)}},React__default.createElement(Icon$1,{className:"icon",icon:"top-arrow-to-top"}),React__default.createElement("span",null,i18n("decaeded2b6f2c66f191ff34b868b1eb")))}]},{label:i18n("eb22d47f16f92e6f621c2b9d87119303"),name:"columns",type:"select",pipeIn:function(ame){return Array.isArray(ame)?ame.length:void 0},pipeOut:function(ame,nme){return Array.isArray(nme)&&(nme.length>ame?(nme=nme.concat(),nme.splice(ame-1,nme.length-ame)):nme=nme.concat(repeatArray({body:[]},ame-nme.length))),nme},options:repeatArray(null,12).map(function(ame,nme){return{label:"".concat(nme+1),value:nme+1}})}]}),{type:"list-select",name:"gap",label:i18n("c288b519484207bea1d51884a5e9acaf"),size:"sm",clearable:!0,tiled:!0,options:[{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"base"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"}]},getSchemaTpl("combo-container",{name:"columns",label:i18n("1f9794dd5634220ed0a498c666cf46fe"),type:"combo",scaffold:{body:[]},minLength:1,multiple:!0,draggableTip:"",items:[{type:"tpl",tpl:'<span class="label label-default">'.concat(i18n("cb2f68c9c24e85d21e6b090b6e5657d8"),"${index | plus}</span>"),columnClassName:"no-grow v-middle"},getSchemaTpl("className",{name:"columnClassName",labelRemark:"",label:""})]}),getSchemaTpl("fieldSet",{title:i18n("98d695d6a6a48cfb4bc2f6396ee64787"),collapsable:!1,body:[{type:"button-group-select",name:"align",size:"sm",label:!1,tiled:!0,pipeIn:defaultValue("left"),options:[{value:"left",label:i18n("413f48cc71f71083ce532a86e3efdc21")},{value:"center",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"right",label:i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]}]}),getSchemaTpl("fieldSet",{title:i18n("11b7fc50778c89572391ec4c6c4b55e1"),collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,pipeIn:defaultValue("top"),options:[{value:"top",label:i18n("2a6ad292447e6354ca39ee7f40d2fcc8")},{value:"middle",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"bottom",label:i18n("d68c21b6b65e7a2e361762b65b8a5032")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]}]})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className"),getSchemaTpl("subFormItemMode"),getSchemaTpl("subFormHorizontalMode"),getSchemaTpl("subFormHorizontal")]},{title:i18n("33bf801796fd255b5f6147e33146669b"),body:[getSchemaTpl("visible")]}])]},$P.vRendererConfig={regions:{body:{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("cb2f68c9c24e85d21e6b090b6e5657d8"),wrapperResolve:function(tme){return tme}}},panelTitle:i18n("cb2f68c9c24e85d21e6b090b6e5657d8"),panelBodyCreator:function(tme){return[getSchemaTpl("tabs",[{title:i18n("22b777e6fcb613b8ba83ced9594cd07e"),body:[getSchemaTpl("fieldSet",{title:i18n("9bdb07e72d3a9a6084201a7398523f5a"),collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowAfter(tme.node.host)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-bottom"}),React__default.createElement("span",null,i18n("3c43c5860b4dfaced296d7a63eae1513")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertRowBefore(tme.node.host)}},React__default.createElement(Icon$1,{className:"icon",icon:"top-arrow-to-top"}),React__default.createElement("span",null,i18n("decaeded2b6f2c66f191ff34b868b1eb")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertColumnBefore(tme)}},React__default.createElement(Icon$1,{className:"icon",icon:"left-arrow-to-left"}),React__default.createElement("span",null,i18n("0d9eb53682343f1cbd562c9a944ef5bf")))},{children:React__default.createElement(Button$1,{size:"sm",onClick:function(){return $P.insertColumnAfter(tme)}},React__default.createElement(Icon$1,{className:"icon",icon:"arrow-to-right"}),React__default.createElement("span",null,i18n("814276d30e338eccbaee96c3e6bacb61")))}]}]}),getSchemaTpl("fieldSet",{title:i18n("a170a375b264f7fe0c02a7ca8c268784"),collapsable:!1,body:[{type:"button-group-select",name:"width",size:"sm",label:!1,pipeIn:function(ame){return ame&&ame!=="auto"?"manual":ame||""},pipeOut:function(ame){return ame==="manual"?"20%":ame},options:[{value:"",label:i18n("daa0f354e189c0da577ea25be13f874d")},{value:"auto",label:i18n("4db804afe5c99f7ca4fe988ada35c77f")},{value:"manual",label:i18n("2a3e7f5c382c56faf261a87573658325")}],description:'<% if (this.width && this.width !== "auto") {%>'.concat(i18n("92e2c6523449dfad4350f58908260266"),"<%}%>")}]}),getSchemaTpl("fieldSet",{title:i18n("11b7fc50778c89572391ec4c6c4b55e1"),collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,options:[{value:"top",label:i18n("2a6ad292447e6354ca39ee7f40d2fcc8")},{value:"middle",label:i18n("1cc9a6949b47913462ff832cb684bdde")},{value:"bottom",label:i18n("d68c21b6b65e7a2e361762b65b8a5032")},{value:"between",label:i18n("da1b972efb29f850b50e219ad4d98ba5")}]}]})]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className",{name:"columnClassName",label:i18n("129b16a89a82c6d5e03ab075633b3892"),description:i18n("d34cc10492e80595a901a292d0c16bb8")})]}])]}},$P.vWrapperResolve=function(tme){return tme},$P.overrides={renderColumn:function(tme,ame){var nme,rme,ime=this.super(tme,ame),ome=this.props.$$editor;if(ome&&tme.$$id){var lme=ome.plugin,sme=(rme=(nme=lme.vRendererConfig)===null||nme===void 0?void 0:nme.regions)===null||rme===void 0?void 0:rme.body;return sme?React__default.createElement(VRenderer,{key:tme.$$id,type:ome.type,plugin:ome.plugin,renderer:ome.renderer,$schema:"",hostId:ome.id,memberIndex:ame,name:"第".concat(ame+1,i18n("cb2f68c9c24e85d21e6b090b6e5657d8")),id:tme.$$id,draggable:!1,schemaPath:"".concat(ome.schemaPath,"/hbox/").concat(ame),wrapperResolve:lme.vWrapperResolve,path:"".concat(this.props.$path,"/").concat(ame),data:this.props.data,widthMutable:!0},sme?React__default.createElement(RegionWrapper,{key:sme.key,preferTag:sme.preferTag,name:sme.key,label:sme.label,regionConfig:sme,placeholder:sme.placeholder,editorStore:lme.manager.store,manager:lme.manager,children:ime,wrapperResolve:sme.wrapperResolve,rendererName:ome.renderer.name}):ime):ime}return ime}},$P}return eme.prototype.afterResolveJsonSchema=function($P){var tme,ame,nme=$P.context,rme=(tme=nme.node.parent)===null||tme===void 0?void 0:tme.host;((ame=rme==null?void 0:rme.info)===null||ame===void 0?void 0:ame.plugin)===this&&$P.setData("/schemas/HBoxColumn.json")},eme.prototype.buildEditorContextMenu=function($P,tme){var ame=this,nme;$P.selections.length||((nme=$P.info)===null||nme===void 0?void 0:nme.plugin)!==this||($P.node.isVitualRenderer?(tme.push("|"),tme.push({label:i18n("4bfd6e7e1ec0fe485aa0e7741d1670db"),onSelect:function(){return ame.insertColumnBefore($P)}}),tme.push({label:i18n("9d75cc0b193601391a139285d55a3493"),onSelect:function(){return ame.insertColumnAfter($P)}}),tme.push("|"),tme.push({label:i18n("57ff158884582ed498a87d03aed46146"),onSelect:function(){return ame.insertRowBefore($P.node.host)}}),tme.push({label:i18n("bd63eab86ac0e0b35a06d0f24a098096"),onSelect:function(){return ame.insertRowAfter($P.node.host)}})):(tme.push("|"),tme.push({label:i18n("57ff158884582ed498a87d03aed46146"),onSelect:function(){return ame.insertRowBefore($P.node)}}),tme.push({label:i18n("bd63eab86ac0e0b35a06d0f24a098096"),onSelect:function(){return ame.insertRowAfter($P.node)}})))},eme.prototype.onWidthChangeStart=function($P){var tme,ame,nme=$P.context,rme=nme.node;if(((tme=rme.info)===null||tme===void 0?void 0:tme.plugin)===this){var ime=rme.host;if(!(!ime||((ame=ime.info)===null||ame===void 0?void 0:ame.plugin)!==this)){var ome=nme.dom,lme=ome.parentElement;if(lme){var sme=nme.resizer,cme=lme.getBoundingClientRect(),dme=ime.schema.columns,ume=rme.index,fme=dme[ume].width,pme=ome.getBoundingClientRect();$P.setData({onMove:function(hme){var bme=hme.pageX-pme.left,mme=fme="".concat(Math.max(1,Math.min(99,Math.round(100*bme/cme.width))),"%");dme=dme.concat(),dme[ume]=__assign$3(__assign$3({},dme[ume]),{width:mme}),sme.setAttribute("data-value",mme),ime.updateState({columns:dme}),requestAnimationFrame(function(){rme.calculateHighlightBox()})},onEnd:function(){ime.updateState({},!0),sme.removeAttribute("data-value"),rme.updateSchema({width:fme}),requestAnimationFrame(function(){rme.calculateHighlightBox()})}})}}}},eme.prototype.insertRowAfter=function($P){var tme;if(((tme=$P.info)===null||tme===void 0?void 0:tme.plugin)===this){var ame=this.manager.store,nme=ame.schema,rme=$P.id;ame.traceableSetSchema(JSONChangeInArray(nme,rme,function(ime,ome,lme){ime.splice(lme+1,0,JSONPipeIn({type:"hbox",align:ome.align,valign:ome.valign,columns:ome.columns.map(function(sme){return{body:[],width:sme==null?void 0:sme.width}})}))}))}},eme.prototype.insertRowBefore=function($P){var tme;if(((tme=$P.info)===null||tme===void 0?void 0:tme.plugin)===this){var ame=this.manager.store,nme=$P.id,rme=ame.schema;ame.traceableSetSchema(JSONChangeInArray(rme,nme,function(ime,ome,lme){ime.splice(lme,0,JSONPipeIn({type:"hbox",align:ome.align,valign:ome.valign,columns:ome.columns.map(function(sme){return{body:[],width:sme==null?void 0:sme.width}})}))}))}},eme.prototype.insertColumnBefore=function($P){var tme,ame=$P.node;if(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)===this){var nme=this.manager.store,rme=nme.schema,ime=$P.id;nme.traceableSetSchema(JSONChangeInArray(rme,ime,function(ome,lme,sme){ome.splice(sme,0,JSONPipeIn({body:[]}))}))}},eme.prototype.insertColumnAfter=function($P){var tme,ame=$P.node;if(((tme=ame.info)===null||tme===void 0?void 0:tme.plugin)===this){var nme=$P.id,rme=this.manager.store,ime=rme.schema;rme.traceableSetSchema(JSONChangeInArray(ime,nme,function(ome,lme,sme){ome.splice(sme+1,0,JSONPipeIn({body:[]}))}))}},eme.id="HBoxPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(HBoxPlugin);var ListItemPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="list-item",$P.isBaseComponent=!0,$P.$schema="/schemas/ListItemSchema.json",$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),renderMethod:"renderBody",preferTag:i18n("027446c2f9070b0f5b16a18208bf5fc7")},{key:"actions",label:i18n("3b49c8cece3f495f0e76b73823c68bfa"),preferTag:i18n("fa966345577ba81af19408f203db968f"),renderMethod:"renderRight",insertPosition:"inner"}],$P.panelTitle=i18n("d9eac94850a74ec881198f4ffe4edcfa"),$P.panelBodyCreator=function(tme){var ame=getI18nEnabled();return getSchemaTpl("tabs",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"title",type:ame?"input-text-i18n":"input-text",label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),descrition:i18n("3ed7b428165499a1b91ed1eb287ba343")},{name:"subTitle",type:ame?"input-text-i18n":"input-text",label:i18n("72cf373be86a38b29f6d2f15900b0da1"),descrition:i18n("3ed7b428165499a1b91ed1eb287ba343")},{name:"avatar",type:"input-text",label:i18n("f7a82c9758acc4ff4c5350182f2ca378"),descrition:i18n("3ed7b428165499a1b91ed1eb287ba343")},{name:"desc",type:ame?"textarea-i18n":"textarea",label:i18n("3bdd08adab6ea90b9164b20a0e4151ac"),descrition:i18n("3ed7b428165499a1b91ed1eb287ba343")}]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className",{name:"avatarClassName",label:i18n("b8e1e46cbdea20de4e5fc130d31b7bcc"),pipeIn:defaultValue("thumb-sm avatar m-r")}),getSchemaTpl("className",{name:"titleClassName",label:i18n("620868e5e60e5c22249c3277c971bb13")})]}])},$P.fieldWrapperResolve=function(tme){return tme},$P.overrides={renderFeild:function(tme,ame,nme,rme){var ime=this.super(tme,ame,nme,rme),ome=this.props.$$editor;if(!ome||!ame.$$id)return ime;var lme=ome.plugin,sme=ame.$$id;return React__default.createElement(VRenderer,{type:ome.type,plugin:ome.plugin,renderer:ome.renderer,multifactor:!0,key:sme,$schema:"/schemas/ListBodyField.json",hostId:ome.id,memberIndex:nme,name:"".concat(i18n("9caecd931b956381e0763d05aa42835c").concat(nme+1)),id:sme,draggable:!1,wrapperResolve:lme.fieldWrapperResolve,schemaPath:"".concat(ome.schemaPath,"/body/").concat(nme),path:"".concat(this.props.$path,"/").concat(nme),data:this.props.data},ime)}},$P.vRendererConfig={panelTitle:i18n("9caecd931b956381e0763d05aa42835c"),panelBodyCreator:function(tme){return[getSchemaTpl("label"),getSchemaTpl("className",{name:"labelClassName",label:i18n("6d0034a2419e1f394dedab07994b9665"),visibleOn:"this.label"})]}},$P}return eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema;if(ame.$$id&&this.rendererName===tme.name)return{name:this.panelTitle,regions:this.regions,$schema:this.$schema}},eme.prototype.beforeInsert=function($P){var tme,ame,nme,rme,ime=$P.context;(ime.info.plugin===this||((tme=ime.node.sameIdChild)===null||tme===void 0?void 0:tme.info.plugin)===this)&&ime.region==="body"&&(ime.data=__assign$3(__assign$3({},ime.data),{label:(rme=(ame=ime.data.label)!==null&&ame!==void 0?ame:(nme=ime.subRenderer)===null||nme===void 0?void 0:nme.name)!==null&&rme!==void 0?rme:i18n("bcee820bc20342a4d388a35ed32a35fe")}))},eme.id="ListItemPlugin",eme.scene=["layout"],eme}(BasePlugin);registerEditorPlugin(ListItemPlugin);var OperationPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="operation",$P.$schema="/schemas/OperationSchema.json",$P.name=i18n("8abc564260a1564521e0c3a1d5419b4a"),$P.isBaseComponent=!0,$P.description=i18n("8d79a8cbe0ed37accbe0739024d5d896"),$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="",$P.scaffold={type:"operation",label:i18n("2b6bc0f293f5ca01b006206c2535ccbc"),buttons:[{label:i18n("fa966345577ba81af19408f203db968f"),type:"button"}]},$P.previewSchema={type:"tpl",tpl:i18n("8abc564260a1564521e0c3a1d5419b4a")},$P.regions=[{key:"buttons",label:i18n("6c0fe599b36c2a55efd8705681783ee5"),renderMethod:"render",insertPosition:"inner",preferTag:i18n("fa966345577ba81af19408f203db968f")}],$P.panelTitle=i18n("8abc564260a1564521e0c3a1d5419b4a"),$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:[getSchemaTpl("className",{name:"innerClassName"})]}])},$P}return eme.prototype.buildSubRenderers=function($P,tme){if($P&&$P.info&&$P.info.renderer&&($P.info.renderer.name==="table"||$P.info.renderer.name==="crud"))return x_.prototype.buildSubRenderers.apply(this,arguments)},eme.id="OperationPlugin",eme}(BasePlugin);registerEditorPlugin(OperationPlugin);var PagePlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="page",$P.$schema="/schemas/PageSchema.json",$P.name=i18n("59ceff465ad16932d8972191ad815dfb"),$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.description=i18n("243e91d5fbc5a03a5c54da6d8e662e4f"),$P.docLink="/amis/zh-CN/components/page",$P.tags=i18n("22c799040acdb2601b437ed5449de076"),$P.icon="fa fa-desktop",$P.scaffold={type:"page",regions:["body"],body:[{type:"tpl",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014")}]},$P.previewSchema={type:"page",className:"text-left b-a",asideClassName:"w-xs",title:i18n("32c65d8d7431e76029678ec7bb73a5ab"),subTitle:i18n("72cf373be86a38b29f6d2f15900b0da1"),aside:i18n("54002bbf7eb3da8346dd4be61d642bca"),body:i18n("2d711b09bd0db0ad240cc83b30dd8014")},$P.events=[{eventName:"init",eventLabel:i18n("2cb472ff9cad0c89a033c53996b52053"),description:i18n("76ddcc0ad85aa4be6875b73244a64faf"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),description:i18n("85f1708454f409855d552f702ac27b19")}}}]},{eventName:"inited",eventLabel:i18n("f36616e35765ac3d5c9c7646e50a305d"),description:i18n("48c43999cf3908d9f5100a6d5f0b4404"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{responseData:{type:"object",title:i18n("aa6070a7f454f554fc1c7d8b1d2d935f")},responseStatus:{type:"number",title:i18n("23d861e4b6635508eb877a50a9333a9b")},responseMsg:{type:"string",title:i18n("a303669d47440ed05558efbf3d5d0592")}}}}}]},{eventName:"pullRefresh",eventLabel:i18n("5d758dc5e33ba0122c256d80c1572e88"),description:i18n("d6fdfa4f989be6586a7a29ea85522f24")}],$P.actions=[__assign$3({actionType:"reload",actionLabel:i18n("64ca9bab920a2983bcf270320d850d00"),description:i18n("9ef5597ac0b4da662bcd967da37eceb4")},getActionCommonProps("reload")),__assign$3({actionType:"setValue",actionLabel:i18n("e22855f53b7a1ab33e920375c0cd0e3d"),description:i18n("0310aa5a05fe07147d8b7ef20616f659")},getActionCommonProps("setValue"))],$P.regions=[{key:"toolbar",label:i18n("012f602372cd2dbd639cd966c63e1f90"),preferTag:i18n("56e6db657d4775698984f883b71cb379")},{key:"aside",label:i18n("54002bbf7eb3da8346dd4be61d642bca"),placeholder:i18n("4f9fa9ee5b0604d97da73e77fdbc281e")},{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032"),placeholder:i18n("40fd4b2a194b2b1284a7f7f738b69640")}],$P.wrapper=ContainerWrapper,$P.panelTitle=i18n("59ceff465ad16932d8972191ad815dfb"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:[getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"checkboxes",name:"regions",label:i18n("0e82bfaaec104a9f0eeb14820b42e7c8"),pipeIn:function(ame){return Array.isArray(ame)?ame:["body","toolbar","aside","header"]},pipeOut:function(ame){return Array.isArray(ame)&&ame.length?ame:["body","toolbar","aside","header"]},joinValues:!1,extractValue:!0,inline:!1,options:[{label:i18n("132a78bdf68d6d17bde00aa807bbf032"),value:"body"},{label:i18n("391555a3772260743f19278f01adf75e"),value:"header"},{label:i18n("012f602372cd2dbd639cd966c63e1f90"),value:"toolbar"},{label:i18n("54002bbf7eb3da8346dd4be61d642bca"),value:"aside"}]},getSchemaTpl("pageTitle"),getSchemaTpl("pageSubTitle"),getSchemaTpl("remark",{label:i18n("3ba265c6b63bde0319822afd6b9a649d"),hiddenOn:'this.regions && !this.regions.includes("header") || !this.title'}),{type:"ae-Switch-More",name:"asideResizor",mode:"normal",label:i18n("e7f2f04f7c2b2e9e07b69767ea28d6ab"),hiddenOn:'this.regions && !this.regions.includes("aside")',value:!1,hiddenOnDefault:!0,formType:"extend",form:{body:[{type:"input-number",label:i18n("a2b62974f4d7564bb68b570116f25a10"),min:0,name:"asideMinWidth",pipeIn:defaultValue(160),pipeOut:function(ame){return ame||0}},{type:"input-number",label:i18n("99b57d8c9244ff9a695fcd519b4e2e57"),min:0,name:"asideMaxWidth",pipeIn:defaultValue(350),pipeOut:function(ame){return ame||0}}]}},{type:"switch",label:tipedLabel(i18n("28d602809bd1dc6b47ceb38cb54f32de"),i18n("36bded76593f98fab62453c7430b2918")),name:"asideSticky",inputClassName:"is-inline",pipeIn:defaultValue(!0),hiddenOn:'this.regions && !this.regions.includes("aside")'},{type:"button-group-select",name:"asidePosition",size:"sm",label:"边栏位置",pipeIn:defaultValue("left"),options:[{label:i18n("d2aff1417831aa621c16cd5b95306b4b"),value:"left"},{label:i18n("4d9c32c23df5d234e629c922c58d8e12"),value:"right"}],hiddenOn:'this.regions && !this.regions.includes("aside")'}]},{title:i18n("0d83078816aa273f2941c9b55ec82bf3"),body:[getSchemaTpl("pageData"),getSchemaTpl("apiControl",{name:"initApi",mode:"row",labelClassName:"none",label:tipedLabel(i18n("b4bc91701b86fe8543d649e97daea602"),i18n("4143d7418de740e8bc26ef4b27c63534"))})]},,{title:i18n("c95e748d5811faae5c52bdc07bee51a0"),body:[{type:"combo",name:"pullRefresh",mode:"normal",noBorder:!0,items:[{type:"ae-Switch-More",mode:"normal",label:i18n("5d758dc5e33ba0122c256d80c1572e88"),name:"disabled",formType:"extend",value:!0,trueValue:!1,falseValue:!0,autoFocus:!1,form:{body:[{name:"pullingText",label:tipedLabel(i18n("04f767eaa571383ea271432bee6deedf"),i18n("e24bc5fd094c7c272725c6340d8aeb8e")),type:"input-text"},{name:"loosingText",label:tipedLabel(i18n("0b3eef4f8a8061baa22416dc1e5dad03"),i18n("717b23399e04873441478fef1cc16d43")),type:"input-text"}]}}]}]}])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:[getSchemaTpl("collapseGroup",__spreadArray(__spreadArray([],__read$3(getSchemaTpl("theme:common",{exclude:["layout","theme-css-code"],classname:"baseControlClassName",baseTitle:i18n("6f99b6eed37795cb97d5f6370c32113b"),extra:[getSchemaTpl("theme:base",{classname:"bodyControlClassName",title:i18n("4e74ff55b36a0f35d511a761c264fce3"),hiddenOn:'this.regions && !this.regions.includes("body")'}),getSchemaTpl("theme:base",{classname:"headerControlClassName",title:i18n("a67496c9ef1b1951fb9f104d1ef17997"),extra:[getSchemaTpl("theme:font",{label:i18n("ca746b1ff10193a3ce20878dec04a733"),name:"themeCss.titleControlClassName.font"})],hiddenOn:'this.regions && !this.regions.includes("header")'}),getSchemaTpl("theme:base",{classname:"toolbarControlClassName",title:i18n("af608093f1d3c25e85bdb4ed17f8b947"),hiddenOn:'this.regions && !this.regions.includes("toolbar")'}),getSchemaTpl("theme:base",{classname:"asideControlClassName",title:i18n("fa898e5ae4c0315061129c6cef47c326"),hiddenOn:'this.regions && !this.regions.includes("aside")'})]})),!1),[getSchemaTpl("theme:singleCssCode",{selectors:[{label:"页面基本样式",isRoot:!0,selector:".cxd-Page"},{label:"页面内容区样式",selector:".cxd-Page-body"},{label:"页面标题栏样式",selector:".cxd-Page-title"},{label:"页面工具栏样式",selector:".cxd-Page-toolbar"},{label:"页面边栏样式",selector:".cxd-Page-aside"}]})],!1))]},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P}return eme.prototype.buildDataSchemas=function($P,tme,ame){var nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume;return __generator(this,function(fme){switch(fme.label){case 0:lme=__assign$3({},jsonToJsonSchema(JSONPipeOut($P.schema.data))),sme=$P.children.concat(),fme.label=1;case 1:return sme.length?(cme=sme.shift(),dme=cme.schema,!((nme=cme.rendererConfig)===null||nme===void 0)&&nme.isFormItem&&(dme!=null&&dme.name)?[4,(ime=(rme=cme.info.plugin).buildDataSchemas)===null||ime===void 0?void 0:ime.call(rme,cme,void 0,ame,$P)]:[3,3]):[3,5];case 2:return ume=fme.sent(),lme.properties[dme.name]=__assign$3(__assign$3({},ume),ume!=null&&ume.$id?{}:{$id:"".concat(cme.id,"-").concat(cme.type)}),[3,4];case 3:!((ome=cme.rendererConfig)===null||ome===void 0)&&ome.storeType||sme.push.apply(sme,__spreadArray([],__read$3(cme.children),!1)),fme.label=4;case 4:return[3,1];case 5:return[2,lme]}})})},eme.prototype.rendererBeforeDispatchEvent=function($P,tme,ame){if(tme==="inited"){var nme=this.manager.dataSchema.getScope("".concat($P.id,"-").concat($P.type)),rme=__assign$3({$id:"pageInitedData"},jsonToJsonSchema(ame.responseData));nme==null||nme.removeSchema(rme.$id),nme==null||nme.addSchema(rme)}},eme.id="PagePlugin",eme}(BasePlugin);registerEditorPlugin(PagePlugin);var PaginationPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="pagination",$P.$schema="/schemas/PaginationSchema.json",$P.name=i18n("f59b11ff84daeb60b027dc02490b627a"),$P.isBaseComponent=!0,$P.description=i18n("7cfb5e222a5954e891fba6e3802c7ea6"),$P.docLink="/amis/zh-CN/components/pagination",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.icon="fa fa-window-minimize",$P.lastLayoutSetting=["pager"],$P.layoutOptions=[{text:i18n("9ed7d3adc032f6b78808e7f3786ec9cc"),value:"total",checked:!1},{text:i18n("8e60090c332693095d5852d92ee149ee"),value:"perPage",checked:!1},{text:i18n("3862626c138ce5945e0e273a1bdfbad0"),value:"pager",checked:!0},{text:i18n("0059d50e3f7b2fe7f1822ccc218fed66"),value:"go",checked:!1}],$P.scaffold={type:"pagination",mode:"normal",layout:["pager"],activePage:1,lastPage:1,total:1,hasNext:!1,disabled:!1,perPageAvailable:[10,20,50,100],perPage:10,maxButtons:7,ellipsisPageGap:5},$P.previewSchema=__assign$3({},$P.scaffold),$P.panelTitle=i18n("47c62ec10a240c35b8446cc923c5e8ef"),$P.events=[{eventName:"change",eventLabel:i18n("755955372bcc0c7ebf161a656bc389b3"),description:i18n("224c9f857217e09f7c244093d4f08cd0"),dataSchema:[{type:"object",properties:{data:{type:"object",title:i18n("0d83078816aa273f2941c9b55ec82bf3"),properties:{page:{type:"number",title:i18n("319c7a1a88910df53d6cd1b408f5894d")},perPage:{type:"number",title:i18n("ace080d5d9684a05aa5ec0ca38ec2831")}},description:i18n("85f1708454f409855d552f702ac27b19")}}}]}],$P.panelJustify=!0,$P.panelBodyCreator=function(tme){return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("layout:originPosition",{value:"left-top"}),{name:"mode",label:i18n("f0789e79d48f135e5d870753f7a85d05"),type:"button-group-select",size:"sm",pipeIn:defaultValue("normal"),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"normal"},{label:i18n("b30f254eccefa14c9980235bcbec74f9"),value:"simple"}]},getSchemaTpl("combo-container",{name:"layout",type:"combo",label:tipedLabel(i18n("07b59fd09f6007bac246d9a73b793a49"),i18n("41ed1e238b846005dfb0f087cbec644b")),visibleOn:'!this.mode || this.mode === "normal"',mode:"normal",multiple:!0,multiLine:!1,addable:!1,removable:!1,draggable:!0,editable:!1,minLength:1,tabsStyle:"inline",formClassName:"ae-pagination-layout-item",items:[{type:"checkbox",name:"checked",inputClassName:"p-t-none mt-1.5"},{type:"tpl",name:"text",className:"inline-block pt-1.5"}],pipeIn:function(ame){return typeof ame=="string"?ame=ame.split(","):(!ame||!Array.isArray(ame))&&(ame=$P.lastLayoutSetting),sortBy$1($P.layoutOptions.map(function(nme){return __assign$3(__assign$3({},nme),{checked:ame.includes(nme.value)})}),[function(nme){var rme=ame.findIndex(function(ime){return ime===nme.value});return~rme?rme:1/0}])},pipeOut:function(ame){return $P.lastLayoutSetting=ame.filter(function(nme){return nme.checked}).map(function(nme){return nme.value}),$P.lastLayoutSetting.concat()}}),getSchemaTpl("combo-container",{name:"perPageAvailable",type:"combo",label:i18n("71fa2ba926cd032c0ebe0bcdd5d3eb10"),visibleOn:'(!this.mode || this.mode === "normal") && this.layout && this.layout.includes("perPage")',mode:"normal",multiple:!0,multiLine:!1,addable:!0,removable:!0,draggable:!0,editable:!0,minLength:1,tabsStyle:"inline",addButtonClassName:"m-b-sm",items:[{type:"input-number",name:"value",min:1}],pipeIn:function(ame){return(ame==null?void 0:ame.map(function(nme){return{value:nme}}))||[10]},pipeOut:function(ame){var nme=ame.map(function(rme){return rme.value});return nme.map(function(rme){return rme||Math.max.apply(Math,__spreadArray([],__read$3(nme.filter(Boolean)),!1))+5})}}),{name:"perPage",type:"input-number",label:i18n("04519bf3bf428bb1a75938ac65dba040"),visibleOn:'(!this.mode || this.mode === "normal") && this.layout?.includes("perPage")'},{name:"maxButtons",label:tipedLabel(i18n("040f05137eb37e880873a763ff653fe9"),i18n("2ee8eb6b1a80a4b025f97fca6afb800d")),type:"input-number",min:5,max:20,pipeOut:function(ame){return ame||5},visibleOn:'!this.mode || this.mode === "normal"'},{name:"ellipsisPageGap",label:"多页跳转页数",type:"input-number",min:1,pipeIn:function(ame){return ame||5},pipeOut:function(ame){return ame||5},visibleOn:'this.mode && this.mode === "normal"'}]},{title:i18n("3fea7ca76cdece641436d7ab0d02ab1b"),body:[getSchemaTpl("disabled"),getSchemaTpl("hidden"),getSchemaTpl("visible")]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{type:"select",name:"size",label:i18n("c8339fd2a85af4ba66084d28df808de4"),value:"",pipeIn:defaultValue("md"),options:[{label:i18n("fd6e80f1e0199d6ecc3ee81ae04aa9ef"),value:"md"},{label:"微型",value:"sm"}]}]},getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])},$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P}return eme.id="PaginationPlugin",eme}(BasePlugin);registerEditorPlugin(PaginationPlugin);var PlainPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="plain",$P.$schema="/schemas/PlainSchema.json",$P.disabledRendererPlugin=!0,$P.name=i18n("ffb01e5bcf4c00447f5150d3cba81371"),$P.isBaseComponent=!0,$P.icon="fa fa-file-text-o",$P.pluginIcon="plain-plugin",$P.description=i18n("6c5b1f0e8e361a801fa75da070d1cba5"),$P.docLink="/amis/zh-CN/components/plain",$P.tags=[i18n("027446c2f9070b0f5b16a18208bf5fc7")],$P.previewSchema={type:"plain",text:i18n("67e77a196826a8880e47ad949ce08ac0"),className:"text-center",inline:!1},$P.scaffold={type:"plain",tpl:i18n("2d711b09bd0db0ad240cc83b30dd8014"),inline:!1},$P.panelTitle=i18n("ffb01e5bcf4c00447f5150d3cba81371"),$P.panelJustify=!0,$P.events=[{eventName:"click",eventLabel:i18n("4363c17ebb346b646af55bd8c8075915"),description:i18n("7af5e3ef39ff71d39fe3f645c8079124"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseenter",eventLabel:i18n("f6d767f39ba3bf955077a3c0ce81e581"),description:i18n("bcdd89d453da0dc0622a2f3189728357"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]},{eventName:"mouseleave",eventLabel:i18n("e272b0b8c7fedc670a87075514d9b49f"),description:i18n("727309bc724ff237c5e2cdf7a90cf28e"),dataSchema:[{type:"object",properties:{context:{type:"object",title:i18n("50f198f07fc820a4911d1c97a0ceb8c2"),properties:{nativeEvent:{type:"object",title:i18n("64561733c68085af3d09315c1d4d7ed6")}}}}}]}],$P.actions=[],$P.panelBodyCreator=function(tme){var ame=tme.info.renderer.name==="table-cell";return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("textareaFormulaControl",{name:"tpl",label:i18n("2d711b09bd0db0ad240cc83b30dd8014"),mode:"normal",pipeIn:function(nme,rme){return nme||rme&&rme.text},description:i18n("f8fc21a9fd40881e8fd3d7f15919465c")}),getSchemaTpl("placeholder",{pipeIn:defaultValue("-"),label:i18n("4c1cff4d8c05daa6ed9352a241ee628c")})]},ame?null:getSchemaTpl("status")])},ame?null:{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("switch",{name:"inline",label:i18n("2fb0853874c2cc8cc42f0c7520af662a"),value:!0})]},getSchemaTpl("style:classNames",{isFormItem:!1})])},{title:i18n("10b2761db5a8e089049df39675abc550"),className:"p-none",body:[getSchemaTpl("eventControl",__assign$3({name:"onEvent"},getEventControlConfig($P.manager,tme)))]}])]},$P}return eme.id="PlainPlugin",eme}(BasePlugin);registerEditorPlugin(PlainPlugin);var ResetPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="reset",$P.disabledRendererPlugin=!0,$P.name=i18n("4b9c3271dc2f299dc3aeffb369187513"),$P.isBaseComponent=!0,$P.icon="fa fa-eraser",$P.description=i18n("d5e6d5c44426a82e18e31eadf7f1e09b"),$P.panelTitle=i18n("fa966345577ba81af19408f203db968f"),$P.scaffold={type:"reset",label:i18n("4b9c3271dc2f299dc3aeffb369187513")},$P.previewSchema=__assign$3({},$P.scaffold),$P}return eme.id="ResetPlugin",eme}(ButtonPlugin);registerEditorPlugin(ResetPlugin);var SubmitPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="submit",$P.disabledRendererPlugin=!0,$P.name=i18n("939d5345ad4345dbaabe14798f6ac0f1"),$P.isBaseComponent=!0,$P.description=i18n("74f0f6730053049f4c9beca2ab00c193"),$P.panelTitle=i18n("fa966345577ba81af19408f203db968f"),$P.scaffold={type:"submit",label:i18n("939d5345ad4345dbaabe14798f6ac0f1"),level:"primary"},$P.previewSchema=__assign$3({},$P.scaffold),$P}return eme.id="SubmitPlugin",eme}(ButtonPlugin);registerEditorPlugin(SubmitPlugin);var WrapperPlugin=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="wrapper",$P.$schema="/schemas/WrapperSchema.json",$P.disabledRendererPlugin=!0,$P.name=i18n("8df7c8a1f9f579f0ddc35bb4ee50f166"),$P.isBaseComponent=!0,$P.description=i18n("de5e232d10e2fa6218259289d4de4835"),$P.docLink="/amis/zh-CN/components/wrapper",$P.tags=[i18n("22c799040acdb2601b437ed5449de076")],$P.icon="fa fa-square-o",$P.scaffold={type:"wrapper",body:i18n("2d711b09bd0db0ad240cc83b30dd8014")},$P.previewSchema=__assign$3({},$P.scaffold),$P.regions=[{key:"body",label:i18n("132a78bdf68d6d17bde00aa807bbf032")}],$P.panelTitle=i18n("8df7c8a1f9f579f0ddc35bb4ee50f166"),$P.panelJustify=!0,$P.panelBodyCreator=function(tme){var ame,nme,rme=tme==null?void 0:tme.schema,ime=(ame=$P.manager)===null||ame===void 0?void 0:ame.isFlexItem(tme==null?void 0:tme.id),ome=(nme=$P.manager)===null||nme===void 0?void 0:nme.isFlexColumnItem(tme==null?void 0:tme.id);return[getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),className:"p-none",body:[getSchemaTpl("collapseGroup",[{title:i18n("5aefca559c5a41d10078e21e6d616825"),body:__spreadArray(__spreadArray([getSchemaTpl("layout:position",{visibleOn:"!this.stickyStatus"}),getSchemaTpl("layout:originPosition"),getSchemaTpl("layout:inset",{mode:"vertical"}),getSchemaTpl("layout:display"),getSchemaTpl("layout:flex-setting",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")',direction:rme.direction,justify:rme.justify,alignItems:rme.alignItems}),getSchemaTpl("layout:flex-wrap",{visibleOn:'this.style && (this.style.display === "flex" || this.style.display === "inline-flex")'})],__read$3(ime?[getSchemaTpl("layout:flex",{isFlexColumnItem:ome,label:i18n(ome?"f02f876ee64cc016d97fa4dc498d4857":"a170a375b264f7fe0c02a7ca8c268784"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-grow",{visibleOn:'this.style && this.style.flex === "1 1 auto" && (this.style.position === "static" || this.style.position === "relative")'}),getSchemaTpl("layout:flex-basis",{label:i18n(ome?"183f00df0922a6be371fea58cd46a60a":"f92626f9e56b3e2d0c47495a446acf71"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "1 1 auto"'}),getSchemaTpl("layout:flex-basis",{label:i18n(ome?"c19b79073b676b9bade80613aba2dbfa":"b591aed69defa2abf0486da6a58dfb5e"),visibleOn:'this.style && (this.style.position === "static" || this.style.position === "relative") && this.style.flex === "0 0 150px"'})]:[]),!1),[getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(ime&&!ome," && this.style.flex === '0 0 150px'")}),getSchemaTpl("layout:isFixedHeight",{visibleOn:"".concat(!ime||!ome),onChange:function(lme){tme==null||tme.node.setHeightMutable(lme)}}),getSchemaTpl("layout:height",{visibleOn:"".concat(!ime||!ome)}),getSchemaTpl("layout:max-height",{visibleOn:"".concat(!ime||!ome)}),getSchemaTpl("layout:min-height",{visibleOn:"".concat(!ime||!ome)}),getSchemaTpl("layout:overflow-y",{visibleOn:"".concat(!ime||!ome," && (this.isFixedHeight || this.style && this.style.maxHeight) || (").concat(ime&&ome," && this.style.flex === '0 0 150px')")}),getSchemaTpl("layout:isFixedWidth",{visibleOn:"".concat(!ime||ome),onChange:function(lme){tme==null||tme.node.setWidthMutable(lme)}}),getSchemaTpl("layout:width",{visibleOn:"".concat(!ime||ome)}),getSchemaTpl("layout:max-width",{visibleOn:"".concat(!ime||ome)}),getSchemaTpl("layout:min-width",{visibleOn:"".concat(!ime||ome)}),getSchemaTpl("layout:overflow-x",{visibleOn:"".concat(!ime||ome," && (this.isFixedWidth || this.style && this.style.maxWidth)")}),ime?null:getSchemaTpl("layout:margin-center"),ime?null:getSchemaTpl("layout:textAlign",{name:"style.textAlign",label:i18n("a3221d2d224767df4afa7a8653ded8fe"),visibleOn:'this.style && this.style.display !== "flex" && this.style.display !== "inline-flex"'}),getSchemaTpl("layout:z-index")],!1)},{title:i18n("f7e68bde2caa2cb5696d6a37fe4a23a4"),body:[getSchemaTpl("layout:padding")]},getSchemaTpl("status")])]},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),className:"p-none",body:getSchemaTpl("collapseGroup",__spreadArray(__spreadArray([],__read$3(getSchemaTpl("style:common",["layout"])),!1),[{title:i18n("4434b33a8731a73613ba5fa1eb984efb"),body:[getSchemaTpl("className",{description:i18n("5db7ca044a5179bf05428b283ac0452c"),pipeIn:defaultValue("bg-white")})]}],!1))}])]},$P}return eme.id="WrapperPlugin",eme.scene=["layout"],eme}(LayoutBasePlugin);registerEditorPlugin(WrapperPlugin);var baseGet=_baseGet,baseSet=_baseSet;function baseUpdate$1(x_,eme,$P,tme){return baseSet(x_,eme,$P(baseGet(x_,eme)),tme)}var _baseUpdate=baseUpdate$1,baseUpdate=_baseUpdate,castFunction=_castFunction;function update(x_,eme,$P){return x_==null?x_:baseUpdate(x_,eme,castFunction($P))}var update_1=update;const update$1=getDefaultExportFromCjs(update_1);var ColumnToggler=function(x_){__extends$2(eme,x_);function eme(){var $P=x_!==null&&x_.apply(this,arguments)||this;return $P.rendererName="column-toggler",$P.name=i18n("2816cea6c4887a53c417831deb5fbe00"),$P.panelTitle=i18n("2816cea6c4887a53c417831deb5fbe00"),$P.icon="fa fa-square",$P.tags=[i18n("2816cea6c4887a53c417831deb5fbe00")],$P.$schema="/schemas/ColumnTogglerSchema.json",$P.description=i18n("a955021cdf0249de1f3818f83cf248b7"),$P.panelJustify=!0,$P.isBaseComponent=!0,$P.disabledRendererPlugin=!0,$P.panelBodyCreator=function(tme){var ame,nme,rme,ime,ome=(ame=tme==null?void 0:tme.node)===null||ame===void 0?void 0:ame.getClosestParentByType("crud2");ome&&($P.crudInfo={id:ome.id,columns:ome.schema.columns||[],schema:ome.schema});var lme=((ime=(rme=(nme=$P.crudInfo)===null||nme===void 0?void 0:nme.schema)===null||rme===void 0?void 0:rme.columns)!==null&&ime!==void 0?ime:[]).map(function(sme,cme){return{label:sme.title,value:cme}});return getSchemaTpl("tabs",[{title:i18n("24d67862f87f439db7ca957aecb77cce"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[{label:i18n("24bdc7e8957abfc5d82f4206e92bb518"),type:"input-text",name:"label"},{label:i18n("787366b0d678071a5ed98e55d31eba84"),type:"input-text",name:"tooltip"},getSchemaTpl("switch",{name:"defaultIsOpened",label:i18n("6a0508144ae12bfa79001693d713c0d6")}),getSchemaTpl("icon",{label:i18n("ae3816c5b00fcff4111842ac19f0a706")}),{type:"button-group-select",label:"下拉菜单对齐",size:"xs",name:"align",value:"right",options:[{label:i18n("39a2cb79c6d9762783e20522ea86dcff"),value:"left"},{label:i18n("de2a774bf98944b8f0ec8755d5f59d64"),value:"right"}]}]},{title:i18n("abd55237a0df8da6ffda1ef377982707"),body:[{name:"__toggled",value:"",type:"checkboxes",label:!1,inline:!1,joinValues:!1,extractValue:!0,options:lme,pipeIn:function(sme,cme){var dme,ume,fme,pme=[];return(fme=(ume=(dme=$P.crudInfo)===null||dme===void 0?void 0:dme.schema)===null||ume===void 0?void 0:ume.columns)===null||fme===void 0||fme.forEach(function(hme,bme){hme.toggled!==!1&&pme.push(bme)}),pme},onChange:function(sme){if($P.crudInfo){var cme=$P.crudInfo.schema.columns;cme=cme.map(function(ume,fme){return __assign$3(__assign$3({},ume),{toggled:sme.includes(fme)?void 0:!1})});var dme=update$1($P.crudInfo.schema,"columns",function(ume){return cme});$P.manager.store.changeValueById($P.crudInfo.id,dme),$P.crudInfo.schema=dme}}}]}])},{title:i18n("afcde2611bdd13c1e65b4fb6a2f13425"),body:getSchemaTpl("collapseGroup",[{title:i18n("4092ed98e9035652d4c9ca9441701ed7"),body:[getSchemaTpl("size",{label:i18n("fe805d91ae93be775670c61214dd2f28")})]},{title:i18n("4434b33a8731a73613ba5fa1eb984efb"),body:[getSchemaTpl("className",{name:"className",label:i18n("fbbbe30d78c335bad27f3dfc5efd2a5d")}),getSchemaTpl("className",{name:"btnClassName",label:i18n("ac3880323853de9adc4f66bc06d438ff")})]}])}])},$P}return eme.prototype.filterProps=function($P){return $P.disabled=!1,$P},eme.prototype.getRendererInfo=function($P){var tme=$P.renderer,ame=$P.schema,nme=this;if(ame.$$id&&nme.name&&nme.rendererName&&nme.rendererName===tme.name)return{name:ame.label?ame.label:nme.name,regions:nme.regions,patchContainers:nme.patchContainers,vRendererConfig:nme.vRendererConfig,wrapperProps:nme.wrapperProps,wrapperResolve:nme.wrapperResolve,filterProps:nme.filterProps,$schema:nme.$schema,renderRenderer:nme.renderRenderer}},eme.id="ColumnToggler",eme}(BasePlugin);registerEditorPlugin(ColumnToggler);var CustomOptionControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.targetRef=function($P){this.target=$P?reactDomExports.findDOMNode($P):null},eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.initDragging=function(){var $P=this,tme=this.props.onChange,ame=reactDomExports.findDOMNode(this);this.sortable=new Sortable(ame.querySelector(".ae-OptionControl-content"),{group:"OptionControlGroup",animation:150,handle:".ae-OptionControlItem-dragBar",ghostClass:"ae-OptionControlItem--dragging",onEnd:function(nme){if(nme.newIndex!==nme.oldIndex){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item);var ime=$P.props.options.concat();ime.splice(nme.newIndex,0,ime.splice(nme.oldIndex,1)[0]),tme({options:ime})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.handleDelete=function($P){var tme=this.props,ame=tme.onChange,nme=tme.options,rme=nme.concat();rme.splice($P,1),ame({options:rme})},eme.prototype.handleToggleDefaultValue=function($P,tme,ame){var nme,rme=this.props,ime=rme.onChange,ome=rme.options,lme=ome.concat(),sme=getOwnValue(this.props.data,"multiple")||((nme=this.props)===null||nme===void 0?void 0:nme.multiple);sme?lme.splice($P,1,__assign$3(__assign$3({},lme[$P]),{checked:tme})):lme=lme.map(function(cme,dme){return __assign$3(__assign$3({},cme),{checked:dme===$P?tme:!1})}),ime({options:lme})},eme.prototype.toggleEdit=function($P){var tme=this.props,ame=tme.onChange,nme=tme.options,rme=nme.concat();rme.splice($P,1,__assign$3(__assign$3({},rme[$P]),{editing:!rme[$P].editing})),ame({options:rme})},eme.prototype.toggleBadge=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.options,ime=rme.concat();ime.splice($P,1,__assign$3(__assign$3({},ime[$P]),{badge:tme})),nme({options:ime})},eme.prototype.handleEditLabel=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.options,ime=rme.concat();ime.splice($P,1,__assign$3(__assign$3({},ime[$P]),{label:tme})),nme({options:ime})},eme.prototype.handleHiddenValueChange=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.options,ime=rme.concat(),ome=ime[$P];ome.hiddenOn;var lme=__rest$14(ome,["hiddenOn"]),sme=__assign$3({},lme);tme?sme.hiddenOn=tme:delete sme.hiddenOn,ime.splice($P,1,sme),nme({options:ime})},eme.prototype.handleAdd=function(){var $P=this.props,tme=$P.onChange,ame=$P.options,nme=ame.concat();nme.push({label:"",value:null,checked:!1}),tme({options:nme})},eme.prototype.handleValueChange=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.options,ime=rme.concat();ime[$P].value=tme,nme({options:ime})},eme.prototype.handleBatchAdd=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.customEdit,ime=rme===void 0?!0:rme,ome=getOwnValue(this.props.data,"options")||[],lme=$P[0].batchOption.split(`
`).map(function(cme){var dme=cme.trim();if(~dme.indexOf(" ")&&ime){var ume=__read$3(dme.split(" "),2),fme=ume[0],pme=ume[1];return{label:fme.trim(),value:pme.trim(),checked:!1}}return{label:dme,value:dme,checked:!1}}),sme=uniqBy$1(__spreadArray(__spreadArray([],__read$3(ome),!1),__read$3(lme),!1),"value");nme({options:sme})},eme.prototype.renderOption=function($P){var tme=this,ame=$P.checked,nme=$P.index,rme=$P.editing,ime=$P.multipleProps,ome=$P.closeDefaultCheck,lme=$P.hiddenOn,sme=$P.customEdit,cme=sme===void 0?!0:sme,dme=this.props,ume=dme.render,fme=dme.node,pme=__assign$3({},this.props.data),hme=(pme==null?void 0:pme.multiple)===!0||ime,bme=getI18nEnabled(),mme=fme.type==="button-group-select",vme=rme?React__default.createElement("div",{className:"ae-OptionControlItem-extendMore"},ume("option",{type:"container",className:"ae-ExtendMore right mb-2",body:[{type:"button",className:"ae-OptionControlItem-closeBtn",label:"×",level:"link",value:ame,onClick:function(){return tme.toggleEdit(nme)}},{children:function($me){var Cme=$me.render,Sme=$me.innerValue;return Cme("innerLabel",{name:"label",type:bme?"input-text-i18n":"input-text",placeholder:i18n("b4fdf79b8f54856b072ec3874b830d1f"),label:i18n("97d07614380da93d257f9fbf81aa56fb"),mode:"horizontal",labelClassName:"ae-OptionControlItem-EditLabel",valueClassName:"ae-OptionControlItem-EditValue"},{value:Sme.label||"",onChange:function(Eme){return tme.handleEditLabel(nme,Eme)}})}},{children:function($me){var Cme=$me.render,Sme=$me.innerValue;return Cme("innerValue",{name:"value",type:"ae-valueFormat",placeholder:i18n("f4ab507e2fa2d2bd66bcdeafd9fef797"),labelClassName:"ae-OptionControlItem-EditLabel",valueClassName:"ae-OptionControlItem-EditValue",label:i18n("fe7509e0ed085b86f07e3e9975cc5b3d")},{value:(Sme==null?void 0:Sme.value)||"",onChange:function(Eme){return tme.handleValueChange(nme,Eme)}})}},{children:function($me){var Cme=$me.render,Sme=$me.innerValue;return Cme("innerHiddenOn",getSchemaTpl("expressionFormulaControl",{label:i18n("dce5379cb978a8259ecfca8f08f00817"),name:"hiddenOn",labelClassName:"ae-OptionControlItem-EditLabel",valueClassName:"ae-OptionControlItem-EditValue"}),{value:Sme.hiddenOn||"",onChange:function(Eme){return tme.handleHiddenValueChange(nme,Eme)}})}},{children:function($me){var Cme=$me.render,Sme=$me.innerValue;return Cme("innerBadge",{type:bme?"input-text-i18n":"input-text",placeholder:i18n("7f05bea37729325a6cc84eb26bb9f8c8"),label:i18n("b8c467fce096a649583c0bc9d9281a5c"),mode:"horizontal",name:"badge",visible:mme,labelClassName:"ae-OptionControlItem-EditLabel",valueClassName:"ae-OptionControlItem-EditValue"},{value:Sme.badge||"",onChange:function(Eme){return tme.toggleBadge(nme,Eme)}})}}]},{innerValue:{label:$P.label,value:$P.value,badge:$P.badge,hiddenOn:lme}})):null,gme=[{type:"button",className:"ae-OptionControlItem-action",label:i18n("95b351c86267f3aedf89520959bce689"),onClick:function(){return tme.toggleEdit(nme)}},{type:"button",className:"ae-OptionControlItem-action",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),onClick:function(){return tme.handleDelete(nme)}}];!ome&&!hme&&ame&&gme.unshift({type:"button",className:"ae-OptionControlItem-action",label:i18n("aafda9e8f6b7b613680677c513edb7a6"),onClick:function(){return tme.handleToggleDefaultValue(nme,!1)}});var yme=($P==null?void 0:$P.hidden)===!0,_me=i18n(yme?"bc3f5a690d8c3a47d27ef8a1b127bafc":"0560b060c438e9326f92718ccbc3f95b");return React__default.createElement("li",{className:"ae-OptionControlItem",key:nme},React__default.createElement("div",{className:"ae-OptionControlItem-Main"},React__default.createElement("a",{className:"ae-OptionControlItem-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),!this.props.closeDefaultCheck&&this.props.data.defaultCheckAll!==!0&&React__default.createElement("span",{className:"inline-flex","data-tooltip":_me},React__default.createElement(Checkbox$1$1,{className:"ae-OptionControlItem-checkbox",checked:ame,disabled:yme,type:hme?"checkbox":"radio",onChange:function($me,Cme){return tme.handleToggleDefaultValue(nme,$me,Cme)}})),ume("label",{name:"label",type:bme?"input-text-i18n":"input-text",label:!1,className:"ae-OptionControlItem-input",placeholder:i18n("5d26b8a41e805204c9dcd5ea7e23b150"),clearable:!1},{value:($P==null?void 0:$P.label)||"",disabled:rme,onChange:function($me){tme.handleEditLabel(nme,$me)}}),cme?ume("dropdown",{type:"dropdown-button",className:"ae-OptionControlItem-dropdown",btnClassName:"px-2",icon:"fa fa-ellipsis-h",hideCaret:!0,closeOnClick:!0,align:"right",menuClassName:"ae-OptionControlItem-ulmenu",buttons:gme},{popOverContainer:null}):ume("delete",{type:"button",className:"ae-OptionControlItem-action-delete",icon:"fa fa-trash",level:"link",onClick:function(){return tme.handleDelete(nme)}})),vme)},eme.prototype.buildBatchAddSchema=function(){var $P=this.props.customEdit,tme=$P===void 0?!0:$P;return{type:"action",actionType:"dialog",label:i18n("22de6ef85ed60ec54dbdc1d8583e5104"),dialog:{title:i18n("421252e16c6cb544fe9ce0be94a190e0"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,onConfirm:this.handleBatchAdd,body:[{type:"alert",level:"warning",body:[{type:"tpl",tpl:"每个选项单列一行，将所有值不重复的项加为新的选项;"+(tme?'<br/>每行可通过空格来分别设置label和value,例："张三 zhangsan"':"")}],showIcon:!0,className:"mb-2.5"},{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{left:0,right:12},body:[{name:"batchOption",type:"textarea",label:"",placeholder:i18n("1e2f96a69fbef8caa8823a3067ebbdc7"),trimContents:!0,minRows:10,maxRows:50,required:!0}]}]}}},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.options,nme=tme.multiple,rme=tme.render;return React__default.createElement("div",{className:"ae-OptionControl-wrapper"},Array.isArray(ame)&&ame.length?React__default.createElement("ul",{className:"ae-OptionControl-content",ref:this.dragRef},ame.map(function(ime,ome){return $P.renderOption(__assign$3(__assign$3(__assign$3({},$P.props),ime),{index:ome,multipleProps:nme}))})):React__default.createElement("div",{className:"ae-OptionControl-placeholder"},i18n("a4f1ddbbfc96930d24e4b54cb815b62b")),React__default.createElement("div",{className:"ae-OptionControl-footer"},React__default.createElement(Button$1,{level:"enhance",onClick:this.handleAdd,ref:this.targetRef},i18n("e8755fb1e985a5d26df0fce1f0b7b0f8")),rme("inner",this.buildBatchAddSchema())))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"targetRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditLabel",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleHiddenValueChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBatchAdd",null),eme}(React__default.Component);function APIOptionControl(x_){var eme=x_.render,$P=x_.source,tme=x_.api,ame=x_.onChange,nme=x_.labelField,rme=x_.valueField,ime=React__default.useCallback(function(dme){ame({api:dme})},[]),ome=React__default.useCallback(function(dme){ame({labelField:dme})},[]),lme=React__default.useCallback(function(dme){ame({valueField:dme})},[]),sme=React__default.useMemo(function(){return[{children:function(dme){var ume=dme.render,fme=dme.labelField;return ume("inner",{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("26ff46d82166741297ce666b2792af85")),type:"input-text",name:"labelField",clearable:!0,placeholder:i18n("6d4ce0631f37676a887c9599691fabec")},{value:fme,onChange:ome})}},{children:function(dme){var ume=dme.render,fme=dme.valueField;return ume("inner",{label:i18n("2e01f5f5889e33d003bec7857cd38445"),type:"input-text",name:"valueField",clearable:!0,placeholder:i18n("959c27193eb0a41d01f4b53dcc4b9245")},{value:fme,onChange:lme})}}]},[]),cme=React__default.useMemo(function(){return getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",mode:"normal",className:"ae-ExtendMore",visibleOn:"this.autoComplete !== false",footer:sme})},[sme]);return eme("api",cme,{value:tme,onChange:ime,sourceType:$P,labelField:nme,valueField:rme})}function variableOptionControl(x_){var eme=x_.render,$P=x_.api,tme=x_.onChange,ame=x_.labelField,nme=x_.valueField,rme=React__default.useCallback(function(cme){tme({api:cme})},[]),ime=React__default.useCallback(function(cme){tme({labelField:cme})},[]),ome=React__default.useCallback(function(cme){tme({valueField:cme})},[]),lme=React__default.useMemo(function(){return[{children:function(cme){var dme=cme.render,ume=cme.controlledValue;return dme("inner",{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("26ff46d82166741297ce666b2792af85")),type:"input-text",name:"labelField",clearable:!0,placeholder:i18n("6d4ce0631f37676a887c9599691fabec")},{value:ume.labelField,onChange:ime})}},{children:function(cme){var dme=cme.render,ume=cme.controlledValue;return dme("inner",{label:i18n("2e01f5f5889e33d003bec7857cd38445"),type:"input-text",name:"valueField",clearable:!0,placeholder:i18n("959c27193eb0a41d01f4b53dcc4b9245")},{value:ume.valueField,onChange:ome})}}]},[]),sme=React__default.useMemo(function(){return{type:"control",label:!1,className:"ae-ExtendMore",body:[{children:function(cme){var dme=cme.render,ume=cme.controlledValue;return dme("inner",getSchemaTpl("sourceBindControl",{label:!1}),{value:ume.api,onChange:rme})}}].concat(lme)}},[lme]);return eme("api",sme,{controlledValue:{api:$P,labelField:ame,valueField:nme}})}var builtinOptionSource=[{label:i18n("01820262aa9ad5b130f8f5b86bfd2968"),value:"custom",component:CustomOptionControl},{label:i18n("f99603414a616bdee85de0e6e3938b65"),value:"api",component:APIOptionControl,test:function(x_){var eme=x_.api,$P=normalizeApi(eme).url;return!!(typeof $P=="string"&&$P&&!(typeof eme=="string"&&/\$\{(.*?)\}/g.test(eme)))}},{label:i18n("e6ff6a97bf600c02942db3126a7077b8"),value:"apicenter",component:APIOptionControl,test:function(x_){var eme=x_.api,$P=normalizeApi(eme).url;return typeof $P=="string"&&$P.startsWith("api://")}},{label:i18n("50334fc77fc5a2c2636f14f158d3c417"),value:"variable",component:variableOptionControl,test:function(x_){var eme=x_.api;return typeof eme=="string"&&/\$\{(.*?)\}/g.test(eme)}}],OptionControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.internalProps=["checked","editing"],tme.optionSources=[],tme.optionSources=builtinOptionSource.concat(Array.isArray($P.extraOptionSources)?$P.extraOptionSources:[]);var ame={options:tme.transformOptions($P)||[],api:getOwnValue($P.data,"source"),labelField:$P.data.labelField,valueField:$P.data.valueField},nme=tme.enabledOptionSources.reduce(function(rme,ime){var ome;return rme??(((ome=ime.test)===null||ome===void 0?void 0:ome.call(ime,ame))===!0?ime.value:rme)},void 0)||"custom";return tme.state=__assign$3(__assign$3({},ame),{source:nme}),tme}return eme.prototype.componentWillReceiveProps=function($P){var tme=$P.data.options;DeepDiff.diff(tme,this.lastOptions)&&this.setState({options:this.transformOptions($P)})},Object.defineProperty(eme.prototype,"enabledOptionSources",{get:function(){var $P=this.props,tme=$P.hasApiCenter,ame=$P.enabledOptionSourceType,nme=this.optionSources;return tme||(nme=nme.filter(function(rme){return rme.value!=="apicenter"})),Array.isArray(ame)&&(nme=ame.map(function(rme){return nme.find(function(ime){return ime.value===rme})}).filter(function(rme){return rme})),nme},enumerable:!1,configurable:!0}),eme.prototype.transformOptions=function($P){var tme=__assign$3({},$P.data),ame=tme.options,nme=tme.value,rme=value2array(nme,tme).map(function(ime){var ome;return ime[(ome=tme==null?void 0:tme.valueField)!==null&&ome!==void 0?ome:"value"]});return Array.isArray(ame)?ame.map(function(ime){var ome;return __assign$3(__assign$3(__assign$3({label:ime.label,value:ime.label===ime.value?null:ime.value,checked:!!~rme.indexOf(ime[(ome=tme==null?void 0:tme.valueField)!==null&&ome!==void 0?ome:"value"])},ime!=null&&ime.badge?{badge:ime.badge}:{}),ime.hidden!==void 0?{hidden:ime.hidden}:{}),ime.hiddenOn!==void 0?{hiddenOn:ime.hiddenOn}:{})}):[]},eme.prototype.normalizeValue=function(){var $P=this,tme=this.props.multiple,ame=__assign$3({},this.props.data),nme=ame.joinValues,rme=nme===void 0?!0:nme,ime=ame.extractValue,ome=ame.multiple,lme=ame.delimiter,sme=ame.valueField,cme=this.state.options.filter(function(ume){return ume.checked&&(ume==null?void 0:ume.hidden)!==!0}).map(function(ume){return omit$1(ume,$P.internalProps)}),dme;if(cme.length)return ome||tme?(dme=cme,rme?dme=cme.map(function(ume){return ume[sme||"value"]||ume[sme||"label"]}).join(lme||","):ime&&(dme=cme.map(function(ume){return ume[sme||"value"]||ume[sme||"label"]}))):(dme=cme[0],(rme||ime)&&(dme=dme[sme||"value"]||dme[sme||"label"])),dme},eme.prototype.emitChange=function(){var $P=this.state,tme=$P.source,ame=$P.options,nme=this.props.onBulkChange,rme=this.normalizeValue(),ime={source:void 0,options:void 0,labelField:void 0,valueField:void 0};if(tme==="custom"&&(ime.options=ame.map(function(dme){return __assign$3(__assign$3(__assign$3({},dme!=null&&dme.badge?{badge:dme.badge}:{}),{label:dme.label,value:dme.value==null||dme.value===""?dme.label:dme.value}),dme.hiddenOn!==void 0?{hiddenOn:dme.hiddenOn}:{})}),ime.value=rme,this.lastOptions=ime.options),tme==="api"||tme==="apicenter"||tme==="variable"){var ome=this.state,lme=ome.api,sme=ome.labelField,cme=ome.valueField;ime.source=lme,ime.labelField=sme||void 0,ime.valueField=cme||void 0,this.lastOptions=ime.source}nme&&nme(ime)},eme.prototype.handleSourceChange=function($P){this.state.source!==$P&&this.setState({api:"",source:$P},this.emitChange)},eme.prototype.handleSourceControlChange=function($P){this.setState($P,this.emitChange)},eme.prototype.renderHeader=function(){var $P=this,tme,ame,nme=this.props,rme=nme.render,ime=nme.label,ome=nme.labelRemark,lme=nme.useMobileUI,sme=nme.env,cme=nme.popOverContainer,dme=(tme=sme==null?void 0:sme.theme)===null||tme===void 0?void 0:tme.classPrefix,ume=this.state.source,fme=this.enabledOptionSources.map(function(pme){return{label:pme.label,value:pme.value,onClick:function(){return $P.handleSourceChange(pme.value)}}});return React__default.createElement("header",{className:"ae-OptionControl-header"},React__default.createElement("label",{className:cx$1("".concat(dme,"Form-label"))},ime||"",ome?rme("label-remark",{type:"remark",icon:ome.icon||"warning-mark",tooltip:ome,className:cx$1("Form-lableRemark",ome==null?void 0:ome.className),useMobileUI:lme,container:cme||sme.getModalContainer}):null),React__default.createElement("div",null,rme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:fme},{popOverContainer:null,data:{selected:(ame=fme.find(function(pme){return pme.value===ume}))===null||ame===void 0?void 0:ame.label}})))},eme.prototype.render=function(){var $P=this.state.source,tme=this.props.className,ame=this.optionSources.find(function(rme){return rme.value===$P}),nme=__assign$3(__assign$3(__assign$3({},this.props),this.state),{onChange:this.handleSourceControlChange});return React__default.createElement("div",{className:cx$1("ae-OptionControl",tme)},this.renderHeader(),ame?ame.component?React__default.createElement(ame.component,__assign$3({},nme,{key:$P})):ame.render(nme):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"emitChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceControlChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"ae-optionControl"})],eme),eme})(OptionControl);var getOptionValueType=function(x_,eme){return typeof x_=="boolean"&&eme.supportBoolType!==!1?"boolean":typeof x_=="number"&&eme.supportNumberType!==!1?"number":"text"},normalizeOptionValue=function(x_,eme){if(eme==="number"){var $P=Number(x_);return isNaN($P)?0:$P}return eme==="boolean"?!(!x_||x_==="false"):String(x_)},ValueFormatControl=function(x_){var eme=x_.render,$P=x_.value,tme=x_.onChange,ame=x_.placeholder;return eme("body",{type:"form",wrapWithPanel:!1,data:{vType:getOptionValueType($P,x_),vValue:$P},onChange:function(nme){return tme(normalizeOptionValue(nme.vValue,nme.vType))},body:[{type:"input-group",name:"input-group",label:!1,mode:"horizontal",body:[{type:"select",name:"vType",options:[{label:i18n("97d07614380da93d257f9fbf81aa56fb"),value:"text"},{label:i18n("55d4790c5d819cd0462cbe89561b0dd4"),value:"number",hidden:x_.supportNumberType===!1},{label:i18n("97b0b6499334ed889b372513290a2a52"),value:"boolean",hidden:x_.supportBoolType===!1}].filter(function(nme){return nme.hidden!==!0}),checkAll:!1,onChange:function(nme,rme,ime,ome){var lme=((ome==null?void 0:ome.data)||{}).vValue;ome.setValues({vValue:normalizeOptionValue(lme,nme)})}},{type:"input-text",placeholder:ame,name:"vValue",value:$P,visibleOn:"this.vType !== 'boolean'"},{type:"input-text",placeholder:ame,name:"vValue",value:$P,visibleOn:"this.vType === 'boolean'",options:[{label:"true",value:!0},{label:"false",value:!1}]}]}]})};FormItem({type:"ae-valueFormat"})(ValueFormatControl);var NavSourceControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=getOwnValue($P.data,"source");return tme.state={links:tme.transformOptions($P),api:ame,source:tme.transformSource(ame),showDialog:!1,isEdit:!1,modalName:"",modalParent:"",modalIcon:"",modalTarget:"_self",modalBadge:"",modalUrl:"",currentIndex:"",previousModalParent:""},tme.sortables=[],tme}return eme.prototype.transformSource=function($P){return $P?"api":"custom"},eme.prototype.transformOptions=function($P){var tme=getOwnValue($P.data,"links");return Array.isArray(tme)?tme:[]},eme.prototype.onChange=function(){var $P=this.props.onBulkChange,tme=this.state.source,ame={source:void 0,links:void 0};if(tme==="custom"){var nme=this.state.links;this.handleSetNavId(nme,""),ame.links=nme}else{var rme=this.state.api;ame.source=rme}$P&&$P(ame)},eme.prototype.handleSourceChange=function($P){this.setState({api:"",source:$P},this.onChange)},eme.prototype.dragRef=function($P){!this.drag&&$P?(this.drag=$P,this.initDragging()):this.drag&&!$P&&this.destroyDragging(!0)},eme.prototype.initDragging=function(){var $P=this,tme,ame=new Sortable(this.drag,{group:"NavSourceControlGroup",animation:150,handle:".nav-links-item-dragBar",onEnd:function(rme){$P.handleDragging(rme)}});this.sortables.push(ame);var nme=(tme=this.drag)===null||tme===void 0?void 0:tme.querySelectorAll(".nav-links-children");nme&&Array.from(nme).forEach(function(rme){var ime=new Sortable(rme,{group:"NavSourceControlGroup",animation:150,handle:".nav-links-item-dragBar",onEnd:function(ome){$P.handleDragging(ome)}});$P.sortables.push(ime)})},eme.prototype.handleDragging=function($P){var tme=this,ame=$P.oldIndex,nme=$P.newIndex,rme=$P.from,ime=$P.to,ome=rme.dataset.level?"".concat(rme.dataset.level,"_").concat(ame):"".concat(ame),lme=ime.dataset.level?"".concat(ime.dataset.level,"_").concat(nme):"".concat(nme),sme=cloneDeep$1(this.state.links);if(!(!ome||!lme)){var cme=this.getNodePath(ome),dme=cme.path,ume=cme.parentPath,fme=get$6(sme,"".concat(dme));if(ume){var pme=get$6(sme,"".concat(ume,".children"),[]);typeof ame=="number"&&pme.splice(ame,1),set$1(sme,"".concat(ume,".children"),pme)}else typeof ame=="number"&&sme.splice(ame,1);var hme=this.getNodePath(lme).parentPath;if(hme){var bme=get$6(sme,"".concat(hme,".children"),[]);typeof nme=="number"&&bme.splice(nme,0,fme),set$1(sme,"".concat(hme,".children"),bme)}else typeof nme=="number"&&sme.splice(nme,0,fme);this.setState({source:""},function(){tme.setState({links:sme,source:"custom"},function(){tme.refreshBindDrag(),tme.onChange()})})}},eme.prototype.getNodePath=function($P){var tme=$P.split("_");if(tme.length===1)return{path:tme,parentPath:""};var ame="[".concat(tme.join("].children["),"]");tme=tme.slice(0,tme.length-1);var nme="[".concat(tme.join("].children["),"]");return{path:ame,parentPath:nme}},eme.prototype.refreshBindDrag=function(){this.drag&&(this.destroyDragging(),this.initDragging())},eme.prototype.destroyDragging=function($P){this.sortables.forEach(function(tme){tme==null||tme.destroy()}),this.sortables=[],$P&&(this.drag=null)},eme.prototype.handleDelete=function($P){var tme=this;return new Promise(function(ame){var nme=tme.state.links.concat(),rme=$P.split("_"),ime=rme.slice(0,rme.length-1),ome="[".concat(ime.join("].children["),"]"),lme=ime.length>0?get$6(nme,"".concat(ome,".children"),[]):nme;lme.splice(parseInt(rme[rme.length-1]),1),tme.setState({links:nme},function(){return tme.onChange()}),ame("")})},eme.prototype.handleUpdate=function($P){var tme=this.state.links,ame=$P.split("_"),nme="[".concat(ame.join("].children["),"]"),rme=get$6(tme,nme),ime=ame.slice(0,ame.length-1),ome="[".concat(ime.join("].children["),"]");ime.length>0&&(ome+="id");var lme=ime.length>0?get$6(tme,ome):"";this.setState({modalName:rme.label,modalBadge:rme.badge,modalIcon:rme.icon,modalParent:lme,previousModalParent:lme,modalTarget:rme.target,modalUrl:rme.to,showDialog:!0,isEdit:!0,currentIndex:$P})},eme.prototype.getChildren=function(){var $P=this.state,tme=$P.currentIndex,ame=$P.links;if(!tme)return[];var nme=tme.split("_"),rme="[".concat(nme.join("].children["),"]"),ime=get$6(ame,rme);return ime&&ime.children?ime.children:[]},eme.prototype.handleSubmit=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme,rme,ime,ome,lme,sme,cme,dme,pme,ume,fme,pme,hme,bme,mme,vme=this;return __generator(this,function(gme){return $P=this.state,tme=$P.isEdit,ame=$P.modalBadge,nme=$P.modalIcon,rme=$P.modalName,ime=$P.modalParent,ome=$P.modalTarget,lme=$P.modalUrl,sme=$P.currentIndex,cme=$P.previousModalParent,rme?tme&&sme===ime?(toast.error(i18n("822be91778b5ac22d31681f7256b849b")),[2]):(dme={label:rme,to:lme,icon:nme,target:ome,badge:ame,children:this.getChildren()},tme&&cme===ime?(pme=cloneDeep$1(this.state.links),ume=sme.split("_"),fme="[".concat(ume.join("].children["),"]"),ume.length>0?set$1(pme,fme,dme):pme[parseInt(sme)]=dme,this.setState({links:pme},function(){return vme.onChange()}),this.closeModal()):(pme=cloneDeep$1(this.state.links),ime?(hme=ime.split("_"),bme="[".concat(hme.join("].children["),"].children"),mme=get$6(pme,bme)||[],mme.push(dme),set$1(pme,bme,mme)):pme.push(dme),this.setState({links:pme},function(){return __awaiter(vme,void 0,void 0,function(){return __generator(this,function(yme){switch(yme.label){case 0:return this.onChange(),tme?[4,this.handleDelete(sme)]:[3,2];case 1:yme.sent(),yme.label=2;case 2:return[2]}})})}),this.closeModal()),[2]):(toast.error(i18n("404f38ae7ac36860c0b3af6f2f4a13f9")),[2])})})},eme.prototype.handleSetNavId=function($P,tme){for(var ame=0;ame<$P.length;ame++){var nme=$P[ame],rme=tme?"".concat(tme,"_").concat(ame):"".concat(ame);nme.id=rme,nme.children&&this.handleSetNavId(nme.children,rme)}},eme.prototype.handleDeleteNavId=function($P){var tme,ame;if(Array.isArray($P))try{for(var nme=__values$1($P),rme=nme.next();!rme.done;rme=nme.next()){var ime=rme.value;delete ime.id,ime.children&&this.handleDeleteNavId(ime.children)}}catch(ome){tme={error:ome}}finally{try{rme&&!rme.done&&(ame=nme.return)&&ame.call(nme)}finally{if(tme)throw tme.error}}else delete $P.id,$P.children&&this.handleDeleteNavId($P.children)},eme.prototype.handleFilterTreeData=function($P){var tme,ame,nme=this.state.currentIndex;try{for(var rme=__values$1($P),ime=rme.next();!ime.done;ime=rme.next()){var ome=ime.value;if(ome.id===nme){this.handleDeleteNavId(ome);break}else ome.children&&this.handleFilterTreeData(ome.children)}}catch(lme){tme={error:lme}}finally{try{ime&&!ime.done&&(ame=rme.return)&&ame.call(rme)}finally{if(tme)throw tme.error}}},eme.prototype.openModal=function(){this.setState({showDialog:!0})},eme.prototype.closeModal=function(){this.setState({showDialog:!1,isEdit:!1,modalParent:"",modalName:"",modalUrl:"",modalIcon:"",modalBadge:"",modalTarget:"_self",currentIndex:""})},eme.prototype.handleChange=function($P){this.setState($P,this.onChange)},eme.prototype.handleAPIChange=function($P){this.setState({api:$P},this.onChange)},eme.prototype.renderApiPanel=function(){var $P=this.props.render,tme=this.state,ame=tme.source,nme=tme.api;return ame==="api"?$P("nav-"+ame,getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",mode:"normal",className:"ae-ExtendMore",value:nme,onChange:this.handleAPIChange,sourceType:ame})):null},eme.prototype.renderHeader=function(){var $P=this,tme,ame,nme=this.props,rme=nme.render,ime=nme.label,ome=nme.labelRemark,lme=nme.mobileUI,sme=nme.env,cme=nme.popOverContainer,dme=(tme=sme==null?void 0:sme.theme)===null||tme===void 0?void 0:tme.classPrefix,ume=this.state.source,fme=[{label:i18n("088b54ee8f10a43977afa9d16ea5350f"),value:"custom"},{label:i18n("f99603414a616bdee85de0e6e3938b65"),value:"api"}].map(function(pme){return __assign$3(__assign$3({key:pme.value},pme),{onClick:function(){return $P.handleSourceChange(pme.value)}})});return React__default.createElement("header",{className:"ae-NavControl-header"},React__default.createElement("label",{className:cx$1("".concat(dme,"Form-label"))},ime||"",ome?rme("label-remark",{type:"remark",icon:ome.icon||"warning-mark",tooltip:ome,className:cx$1("Form-lableRemark",ome==null?void 0:ome.className),mobileUI:lme,container:cme||sme.getModalContainer}):null),React__default.createElement("div",null,rme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:fme},{popOverContainer:null,data:{selected:(ame=fme.find(function(pme){return pme.value===ume}))===null||ame===void 0?void 0:ame.label}})))},eme.prototype.renderNav=function($P,tme){var ame=this,nme=this.props.render;return React__default.createElement(React__default.Fragment,null,$P.map(function(rme,ime){return React__default.createElement("div",{className:"nav-links-parent",key:rme.id||tme?"".concat(tme,"_").concat(ime):"".concat(ime),"data-path":tme?"".concat(tme,"_").concat(ime):"".concat(ime)},React__default.createElement("div",{className:"nav-links-item"},React__default.createElement("a",{className:"nav-links-item-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),rme.icon&&nme("render-icon-".concat(typeof rme.icon!="string"?rme.icon.id:rme.icon),{type:"icon",icon:rme.icon,className:"nav-links-item-icon"}),React__default.createElement(TooltipWrapper$1,{tooltip:rme.label,placement:"left"},React__default.createElement("div",{className:"nav-links-item-label"},rme.label)),React__default.createElement("div",{className:"nav-links-item-actions"},React__default.createElement(TooltipWrapper$1,{tooltip:i18n("95b351c86267f3aedf89520959bce689"),placement:"left"},React__default.createElement(Icon$1,{icon:"edit",className:"icon icon-edit",onClick:function(){return ame.handleUpdate(tme?"".concat(tme,"_").concat(ime):"".concat(ime))}})),React__default.createElement(TooltipWrapper$1,{tooltip:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),placement:"left"},React__default.createElement(Icon$1,{icon:"delete-btn",className:"icon icon-delete",onClick:function(){return ame.handleDelete(tme?"".concat(tme,"_").concat(ime):"".concat(ime))}})))),rme.children&&rme.children.length>0&&React__default.createElement("div",{className:"nav-links-children","data-level":tme?"".concat(tme,"_").concat(ime):"".concat(ime)},ame.renderNav(rme.children,tme?"".concat(tme,"_").concat(ime):"".concat(ime))))}))},eme.prototype.renderDialog=function(){var $P=this,tme=this.state,ame=tme.links,nme=tme.modalBadge,rme=tme.modalIcon,ime=tme.modalName,ome=tme.modalParent,lme=tme.modalUrl,sme=tme.modalTarget,cme=tme.showDialog,dme=tme.isEdit,ume=cloneDeep$1(ame);return this.handleFilterTreeData(ume),render$2({type:"dialog",title:i18n(dme?"cd1e63aed43df0827cc09fb26521936c":"648c5e847b923bdd51bf5c72436169ba"),bodyClassName:"ae-NavControl-dialog",body:{type:"form",mode:"horizontal",wrapperComponent:"div",actions:[],body:[{type:"input-text",label:i18n("8ee9f276a6356aab65f8178c4f30fabd"),name:"modalName",placeholder:i18n("4cd5629f32fc9710fbb0291b51adc34b"),mode:"horizontal",required:!0,horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalName:fme})}},{type:"tree-select",label:i18n("e3cc5bd7fc92d7287a14bf5398c4ecc3"),name:"modalParent",initiallyOpen:!1,placeholder:i18n("24ceb2a06b1962b396b75286fc0960d1"),searchable:!0,multiple:!1,valueField:"id",options:ume,mode:"horizontal",horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalParent:fme})}},getSchemaTpl("icon",{name:"modalIcon",label:i18n("9483042d09dbad731addc1791b5d207d"),mode:"horizontal",horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalIcon:fme})}}),{type:"input-text",label:i18n("7fa141f341e173e2339dcf0ce6869b5c"),placeholder:i18n("6107b3c4fd8587589210cb9fe2fcdad9"),mode:"horizontal",name:"modalUrl",horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalUrl:fme})}},{type:"radios",name:"modalTarget",label:i18n("76b5162d1b7a16b4b6adf1b79231c96a"),inline:!0,options:[{label:i18n("b2d1bffc689e4478519d8a010450192c"),value:"_self"},{label:i18n("80fb2db8d3f212b3dd130d24da1c970e"),value:"_blank"}],mode:"horizontal",horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalTarget:fme})}},{type:"input-text",label:i18n("70b4d0676f9a9640c5a7b1d5f66faa64"),placeholder:i18n("9f3cdf6aa12759fab68a5a88179462c4"),mode:"horizontal",name:"modalBadge",horizontal:{justify:!0,left:2},onChange:function(fme){$P.setState({modalBadge:fme})}}]}},{data:{modalBadge:nme,modalIcon:rme,modalName:ime,modalParent:ome,modalUrl:lme,modalTarget:sme},show:cme,onClose:this.closeModal,onConfirm:this.handleSubmit})},eme.prototype.render=function(){var $P=this.state,tme=$P.links,ame=$P.source;$P.showDialog;var nme=this.props.className;return React__default.createElement("div",{className:cx$1("ae-NavControl",nme)},this.renderHeader(),ame==="custom"?React__default.createElement("div",{className:"ae-NavControl-wrapper"},Array.isArray(tme)&&tme.length?React__default.createElement("div",{className:"ae-NavControl-content",ref:this.dragRef},this.renderNav(tme)):React__default.createElement("div",{className:"ae-NavControl-placeholder"},i18n("a4f1ddbbfc96930d24e4b54cb815b62b")),React__default.createElement("div",{className:"ae-NavControl-footer"},React__default.createElement(Button$1,{level:"enhance",onClick:this.openModal},i18n("14794add5446201274dd148086bc0361")))):this.renderApiPanel(),this.renderDialog())},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDragging",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"getNodePath",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"destroyDragging",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleDelete",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleUpdate",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"getChildren",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleSubmit",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSetNavId",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDeleteNavId",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleFilterTreeData",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"openModal",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeModal",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAPIChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-navSourceControl",renderLabel:!1})],eme),eme})(NavSourceControl);(function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={unitOptions:tme.transformOptions($P)},tme}return eme.prototype.transformOptions=function($P){var tme=$P.value;return Array.isArray(tme)?tme.map(function(ame){return typeof ame=="string"?{label:ame,value:ame}:ame}):[]},eme.prototype.componentWillReceiveProps=function($P){var tme=$P.value?this.transformOptions($P):[];JSON.stringify(this.state.unitOptions.map(function(ame){return __assign$3(__assign$3({},ame),{editing:void 0})}))!==JSON.stringify(tme)&&this.setState({unitOptions:tme})},eme.prototype.handleAdd=function(){var $P=this,tme=this.state.unitOptions;tme.push({label:"",value:"",editing:!1}),this.setState({unitOptions:tme},function(){$P.onChange()})},eme.prototype.handleBatchAdd=function($P){var tme=this,ame=this.state.unitOptions.concat(),nme=$P[0].batchOption.split(`
`).map(function(ome){var lme=ome.trim();if(~lme.indexOf(" ")){var sme=__read$3(lme.split(" "),2),cme=sme[0],dme=sme[1];return{label:cme.trim(),value:dme.trim()}}return{label:lme,value:lme}}),rme=uniqBy$1(__spreadArray(__spreadArray([],__read$3(ame),!1),__read$3(nme),!1),"label"),ime=uniqBy$1(rme,"value");this.setState({unitOptions:ime},function(){return tme.onChange()})},eme.prototype.handleEditLabel=function($P,tme){var ame=this,nme=this.state.unitOptions.concat();nme.splice($P,1,__assign$3(__assign$3({},nme[$P]),{label:tme})),this.setState({unitOptions:nme},function(){return ame.onChange()})},eme.prototype.handleValueChange=function($P,tme){var ame=this,nme=this.state.unitOptions.concat();nme.splice($P,1,__assign$3(__assign$3({},nme[$P]),{value:tme})),this.setState({unitOptions:nme},function(){return ame.onChange()})},eme.prototype.toggleEdit=function($P){var tme=this.state.unitOptions;tme[$P].editing=!tme[$P].editing,this.setState({unitOptions:tme})},eme.prototype.handleDelete=function($P){var tme=this,ame=this.state.unitOptions.concat();ame.splice($P,1),this.setState({unitOptions:ame},function(){return tme.onChange()})},eme.prototype.onChange=function(){var $P=this.props.onBulkChange,tme=this.state.unitOptions,ame=tme.map(function(nme){return{label:nme.label,value:nme.value}});$P&&$P({unitOptions:ame})},eme.prototype.renderOption=function($P,tme){var ame=this,nme=$P.label,rme=$P.value,ime=$P.editing,ome=this.props.render,lme=getI18nEnabled(),sme=ime?React__default.createElement("div",{className:"ae-KeyValMapControlItem-extendMore"},ome("option",{type:"container",className:"ae-ExtendMore right mb-2",body:[{type:"button",className:"ae-KeyValMapControlItem-closeBtn",label:"×",level:"link",onClick:function(){return ame.toggleEdit(tme)}},{children:function(dme){var ume=dme.render;return ume("label",{type:lme?"input-text-i18n":"input-text",placeholder:i18n("bab9f8592e1b8e286ee17ddf5dbea4b3"),label:i18n("97d07614380da93d257f9fbf81aa56fb"),mode:"horizontal",name:"optionLabel",labelClassName:"ae-KeyValMapControlItem-EditLabel",valueClassName:"ae-KeyValMapControlItem-EditValue"},{value:nme,onChange:function(fme){return ame.handleEditLabel(tme,fme)}})}},{children:function(dme){var ume=dme.render;return ume("value",{type:lme?"input-text-i18n":"input-text",placeholder:i18n("2c8c25bb51dfd9ddfc74fd75a8a380a1"),label:i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),mode:"horizontal",name:"optionValue",labelClassName:"ae-KeyValMapControlItem-EditLabel",valueClassName:"ae-KeyValMapControlItem-EditValue"},{value:rme,onChange:function(fme){return ame.handleValueChange(tme,fme)}})}}]})):null,cme=[{type:"button",className:"ae-KeyValMapControlItem-action",label:i18n("95b351c86267f3aedf89520959bce689"),onClick:function(){return ame.toggleEdit(tme)}},{type:"button",className:"ae-KeyValMapControlItem-action",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),onClick:function(){return ame.handleDelete(tme)}}];return React__default.createElement("div",{className:"ae-KeyValMapControlItem",key:tme},React__default.createElement("div",{className:"ae-KeyValMapControlItem-Main"},ome("dropdown",{type:"flex",className:"ae-KeyValMapControlItem-flex",items:[{children:function(dme){var ume=dme.render;return ume("value",{type:lme?"input-text-i18n":"input-text",className:"ae-KeyValMapControlItem-input",label:!1,name:"optionLabel",placeholder:i18n("5d26b8a41e805204c9dcd5ea7e23b150"),clearable:!1},{value:nme,onChange:function(fme){ame.handleEditLabel(tme,fme)}})}},{type:"dropdown-button",className:"ae-KeyValMapControlItem-dropdown",btnClassName:"px-2",icon:"fa fa-ellipsis-h",hideCaret:!0,closeOnClick:!0,align:"right",menuClassName:"ae-KeyValMapControlItem-ulmenu",buttons:cme}]})),sme)},eme.prototype.buildBatchAddSchema=function(){return{type:"action",actionType:"dialog",label:i18n("22de6ef85ed60ec54dbdc1d8583e5104"),dialog:{title:i18n("421252e16c6cb544fe9ce0be94a190e0"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,onConfirm:this.handleBatchAdd,body:[{type:"alert",level:"warning",body:[{type:"tpl",tpl:i18n("c130bd5b55edefdaf8923269e9a52439")}],showIcon:!0,className:"mb-2.5"},{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{left:0,right:12},body:[{name:"batchOption",type:"textarea",label:"",placeholder:i18n("1e2f96a69fbef8caa8823a3067ebbdc7"),trimContents:!0,minRows:10,maxRows:50,required:!0}]}]}}},eme.prototype.render=function(){var $P=this,tme=this.state.unitOptions,ame=this.props.render;return React__default.createElement("div",{className:"ae-KeyValMapControl-wrapper"},tme.length?React__default.createElement("div",null,tme.map(function(nme,rme){return $P.renderOption(nme,rme)})):null,React__default.createElement("div",{className:"ae-KeyValMapControl-footer"},React__default.createElement(Button$1,{level:"enhance",onClick:this.handleAdd},i18n("e8755fb1e985a5d26df0fce1f0b7b0f8")),ame("inner",this.buildBatchAddSchema())))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleBatchAdd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditLabel",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleValueChange",null),eme=__decorate$1([FormItem({type:"ae-keyValueMapControl"}),__metadata("design:paramtypes",[Object])],eme),eme})(React__default.Component);var BadgeControl$1=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={checked:!!isObject($P==null?void 0:$P.value)},tme}return eme.prototype.transformBadgeValue=function(){var $P,tme,ame=this.props.data,nme=($P=ame==null?void 0:ame.badge)!==null&&$P!==void 0?$P:{},rme=(tme=ame==null?void 0:ame.badge)===null||tme===void 0?void 0:tme.size,ime=[0,0];return Array.isArray(nme==null?void 0:nme.offset)&&(nme==null?void 0:nme.offset.length)>=2&&(ime[0]=nme.offset[0],ime[1]=nme.offset[1]),__assign$3(__assign$3({},nme),{size:rme,offset:ime})},eme.prototype.normalizeBadgeValue=function($P){var tme,ame,nme=isObject($P==null?void 0:$P.offset)&&(!((tme=$P==null?void 0:$P.offset)===null||tme===void 0)&&tme[0])&&(!((ame=$P==null?void 0:$P.offset)===null||ame===void 0)&&ame[1])?{offset:[$P.offset[0],$P.offset[1]]}:{};return __assign$3(__assign$3({},$P),nme)},eme.prototype.handleSwitchChange=function($P){var tme=this.props,ame=tme.onBulkChange,nme=tme.data;this.setState({checked:$P}),$P?nme.badge?ame==null||ame({badge:nme.badge}):ame==null||ame({badge:{mode:"dot"}}):ame==null||ame({badge:void 0})},eme.prototype.handleSubmit=function($P,tme){$P.visibleOn="${badge}",$P.mode==="dot"?$P.text=void 0:$P.text="${badge}";var ame=this.props.onBulkChange;(tme==null?void 0:tme.type)==="submit"&&(ame==null||ame({badge:this.normalizeBadgeValue($P)}))},eme.prototype.renderBody=function(){var $P=this.props.render,tme=this.transformBadgeValue();return getI18nEnabled(),$P("badge-form",{type:"form",className:"ae-BadgeControl-form w-full",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",preventEnterSubmit:!0,submitOnChange:!0,body:[{label:i18n("a7999d1390b7dc775e4287511c395d6c"),name:"mode",type:"button-group-select",size:"sm",tiled:!0,className:"ae-BadgeControl-buttonGroup",options:[{label:i18n("be604f8b7ec5e80288b091ee12bbab7f"),value:"dot"},{label:i18n("ca746b1ff10193a3ce20878dec04a733"),value:"text"},{label:i18n("9adcfe38533f68035b2bf7831d310381"),value:"ribbon"}],mode:"horizontal",horizontal:{justify:!0,left:4},pipeIn:defaultValue("dot")},{label:tipedLabel(i18n("29e13ada94b145a1359291d5e1564655"),i18n("31175366279c15232e27b6736ccb2fd4")),name:"overflowCount",type:"input-number",size:"sm",visibleOn:"data.mode === 'text'",mode:"horizontal",horizontal:{justify:!0,left:4}},{label:i18n("58f966670529f4753fb3c5a0647606be"),name:"size",type:"input-number",size:"sm",suffix:"px",mode:"horizontal",horizontal:{justify:!0,left:4}},{label:i18n("9970ad07468267e2f309f1467c75bb80"),name:"level",type:"select",size:"sm",mode:"horizontal",horizontal:{justify:!0,left:4},tiled:!0,className:"input-select",options:[{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"success"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"danger"},{label:i18n("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"info"}],pipeIn:defaultValue("danger")},{label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),name:"position",type:"select",size:"sm",mode:"horizontal",horizontal:{justify:!0,left:4},tiled:!0,className:"input-select",options:[{label:i18n("df68a5dc8f8847179b7afdf943f80796"),value:"top-left"},{label:i18n("e717b4ae480e7c073fd5a44647a7f0da"),value:"top-right"},{label:i18n("2a97dfb2d236c87c41fd588f006111dc"),value:"bottom-left"},{label:i18n("1c9bc9dab33944e953412f8b22cb024a"),value:"bottom-right"}],pipeIn:defaultValue("top-right")},{type:"group",mode:"horizontal",horizontal:{justify:!0,left:4},label:tipedLabel(i18n("ebc556841a9264ebaab728efad7af777"),i18n("81cdf47e8d8adfc70faac2cbc55e4067")),body:[{type:"input-text",name:"offset[0]",label:!1,addOn:{label:"X",type:"text",position:"left"},validateOnChange:!0,validations:{isNumeric:!0}},{type:"input-text",label:!1,name:"offset[1]",addOn:{label:"Y",type:"text",position:"left"},validateOnChange:!0,validations:{isNumeric:!0}}]}]},{data:tme,onSubmit:this.handleSubmit.bind(this)})},eme.prototype.render=function(){var $P=this,tme=this.props;tme.classPrefix;var ame=tme.className;tme.labelClassName,tme.label,tme.disabled;var nme=tme.render,rme=this.state.checked;return React__default.createElement("div",{className:cx$1("ae-BadgeControl",ame)},nme("",getSchemaTpl("switch",{label:tipedLabel(i18n("b8c467fce096a649583c0bc9d9281a5c"),i18n("b3c1b71ed42c7f2fe55f3c64346f1ae6")),name:"checked",mode:"horizontal",value:rme,onChange:function(ime){return $P.handleSwitchChange(ime)}})),rme?this.renderBody():null)},eme.defaultProps={mode:"dot",overflowCount:99,position:"top-right",level:"danger"},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitchChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-nav-badge",renderLabel:!1})],eme),eme})(BadgeControl$1);var NavDefaultActiveControl=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.deleteActive=function($P){var tme,ame;try{for(var nme=__values$1($P),rme=nme.next();!rme.done;rme=nme.next()){var ime=rme.value;ime.active&&delete ime.active,ime.children&&this.deleteActive(ime.children)}}catch(ome){tme={error:ome}}finally{try{rme&&!rme.done&&(ame=nme.return)&&ame.call(nme)}finally{if(tme)throw tme.error}}},eme.prototype.findActiveKey=function($P,tme){for(var ame=0;ame<$P.length;ame++){var nme=$P[ame];if(nme.active){this.activeKey=tme?"".concat(tme,"_").concat(ame):"".concat(ame);return}nme.children&&nme.children.length&&this.findActiveKey(nme.children,"".concat(ame))}},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.render,nme=tme.data,rme=tme.onBulkChange;return this.findActiveKey(nme.links),ame("",{type:"tree-select",name:"treeSelect",label:tipedLabel(i18n("515e8b11c3c24c6c3b03c6c76b1da496"),i18n("4f80ea1e761598ba9fe393e7c745468d")),valueField:"id",options:nme.links,mode:"horizontal",value:this.activeKey,horizontal:{justify:!0,left:4},onChange:function(ime){var ome=ime&&ime.split("_")||[],lme=nme.links;$P.deleteActive(lme);var sme="[".concat(ome.join("].children["),"]");get$6(lme,sme+".label")&&set$1(lme,sme+".active",!0),rme&&rme({links:lme})}})},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-nav-default-active",renderLabel:!1})],eme),eme})(NavDefaultActiveControl);var MapType;(function(x_){x_.CUSTOM="custom",x_.API="api",x_.VARIABLE="variable"})(MapType||(MapType={}));var MapSourceControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.debounceMapChange=debounce$6(tme.handleMapChange,250);var ame=MapType.CUSTOM;return $P.data.hasOwnProperty("source")&&$P.data.source&&(ame=/\$\{(.*?)\}/g.test($P.data.source)?MapType.VARIABLE:MapType.API),tme.state={map:$P.data.map,source:$P.data.source,labelField:$P.data.labelField,valueField:$P.data.valueField,mapType:ame},tme}return eme.prototype.componentDidUpdate=function($P,tme,ame){var nme,rme,ime,ome=Array.isArray((nme=$P.data)===null||nme===void 0?void 0:nme.map),lme=Array.isArray((rme=this.props.data)===null||rme===void 0?void 0:rme.map);ome!==lme&&this.setState({map:(ime=this.props.data)===null||ime===void 0?void 0:ime.map})},eme.prototype.onChange=function(){var $P=this.state,tme=$P.mapType,ame=$P.source,nme=$P.map,rme=$P.labelField,ime=$P.valueField,ome=this.props.onBulkChange;if(rme=rme===""?void 0:rme,ime=ime===""?void 0:ime,tme===MapType.CUSTOM){ome&&ome({map:nme,source:void 0,labelField:rme,valueField:ime});return}if([MapType.API,MapType.VARIABLE].includes(tme)){ome&&ome({source:ame,map:void 0,labelField:rme,valueField:ime});return}},eme.prototype.handleMapTypeChange=function($P){this.setState({mapType:$P,labelField:void 0,valueField:void 0},this.onChange)},eme.prototype.renderHeader=function(){var $P=this,tme,ame=this.props,nme=ame.render,rme=ame.label,ime=ame.labelRemark,ome=ame.useMobileUI,lme=ame.env,sme=ame.popOverContainer,cme=(tme=lme==null?void 0:lme.theme)===null||tme===void 0?void 0:tme.classPrefix,dme=this.state.mapType,ume=[{label:i18n("01820262aa9ad5b130f8f5b86bfd2968"),value:MapType.CUSTOM},{label:i18n("f99603414a616bdee85de0e6e3938b65"),value:MapType.API},{label:i18n("50334fc77fc5a2c2636f14f158d3c417"),value:MapType.VARIABLE}].map(function(fme){return __assign$3(__assign$3({},fme),{onClick:function(){return $P.handleMapTypeChange(fme.value)}})});return React__default.createElement("header",{className:"ae-OptionControl-header"},React__default.createElement("label",{className:cx$1("".concat(cme,"Form-label")),style:{marginBottom:0}},rme||"",ime?nme("label-remark",{type:"remark",icon:ime.icon||"warning-mark",tooltip:ime,className:cx$1("Form-lableRemark",ime==null?void 0:ime.className),useMobileUI:ome,container:sme||lme.getModalContainer}):null),React__default.createElement("div",null,nme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:ume},{popOverContainer:null,data:{selected:ume.find(function(fme){return fme.value===dme}).label}})))},eme.prototype.handleMapChange=function($P){this.setState({map:$P},this.onChange)},eme.prototype.handleAPIChange=function($P){this.setState({source:$P},this.onChange)},eme.prototype.handleLabelFieldChange=function($P){this.setState({labelField:$P},this.onChange)},eme.prototype.handleValueFieldChange=function($P){this.setState({valueField:$P},this.onChange)},eme.prototype.renderOtherFields=function(){return[{label:tipedLabel(i18n("3e7392ab43c6c76f294f41c3058c2ab1"),i18n("2135be5a60fc3c6fe864e159e289af51")),type:"input-text",name:"valueField",placeholder:i18n("6a1ca1c113a9b5bee58ea009e40f5954"),onChange:this.handleValueFieldChange},{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("dc7becbad712786c9e4766636047e509")),type:"input-text",name:"labelField",placeholder:i18n("1140acc9ac4b803b733f70445e7d495a"),onChange:this.handleLabelFieldChange,visibleOn:"${!itemSchema}"}]},eme.prototype.renderApiPanel=function(){var $P=this.props.render,tme=this.state,ame=tme.mapType,nme=tme.source;return tme.labelField,tme.valueField,ame===MapType.CUSTOM?null:$P("api",getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",mode:"normal",className:"ae-ExtendMore",visibleOn:"this.autoComplete !== false",value:nme,onChange:this.handleAPIChange,sourceType:ame,footer:this.renderOtherFields()}))},eme.prototype.renderObjectMap=function(){var $P=this,tme=this.props.render;return tme("objectMap",getSchemaTpl("combo-container",{label:"",type:"combo",mode:"normal",scaffold:{key:"key-{index}",value:"value-{index}"},required:!0,name:"map",descriptionClassName:"help-block text-xs m-b-none",description:i18n("55497c5de8558f1a164e437205cd510b"),multiple:!0,pipeIn:function(ame){if(!isObject$8(ame))return[{key:"key0",value:"value1"}];var nme=[];return Object.keys(ame).forEach(function(rme){nme.push({key:rme||"",value:typeof ame[rme]=="string"?ame[rme]:JSON.stringify(ame[rme])})}),nme},pipeOut:function(ame){if(!Array.isArray(ame))return ame;var nme={};return ame.forEach(function(rme,ime){var ome=rme.key||"",lme=rme.value;ome==="key-{index}"&&lme==="value-{index}"&&(ome=ome.replace("-{index}","".concat(ime)),lme=lme.replace("-{index}","".concat(ime)));try{lme=JSON.parse(lme)}catch{}nme[ome]=lme}),nme},onChange:function(ame){$P.handleMapChange(ame||{"*":i18n("2b10dfa6dbdf8775ab2b38fc67e7ea49")})},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:i18n("2d711b09bd0db0ad240cc83b30dd8014"),type:"input-text",name:"value"}]}))},eme.prototype.handleMapItemChange=function($P,tme){var ame=this.state.map,nme=ame===void 0?[]:ame,rme=nme.slice();try{tme=JSON.parse(tme)}catch{}rme.splice($P,1,tme),this.handleMapChange(rme)},eme.prototype.renderArrayMap=function(){var $P=this,tme=this.props.render;return React__default.createElement("div",{className:"ae-ExtendMore"},tme("arrayMap",__spreadArray([{type:"json-editor",name:"map",label:!1,placeholder:i18n("94124fa72dbfbb81611496cada6ebf4c"),onChange:function(ame){try{var nme=JSON.parse(ame);$P.debounceMapChange(nme)}catch{console.error()}}}],__read$3(this.renderOtherFields()),!1)))},eme.prototype.renderMap=function(){var $P=this.state.map;return $P&&Array.isArray($P)?this.renderArrayMap():this.renderObjectMap()},eme.prototype.render=function(){var $P=this.state.mapType,tme=this.props,ame=tme.className,nme=tme.render;return React__default.createElement("div",{className:cx$1("ae-OptionControl",ame)},this.renderHeader(),$P===MapType.CUSTOM?this.renderMap():null,$P===MapType.API?this.renderApiPanel():null,$P===MapType.VARIABLE?nme("variable",getSchemaTpl("sourceBindControl",{label:!1,className:"ae-ExtendMore"}),{onChange:this.handleAPIChange}):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleMapTypeChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleMapChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAPIChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleLabelFieldChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleValueFieldChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-mapSourceControl",renderLabel:!1})],eme),eme})(MapSourceControl);var TimelineItemControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=($P.data||{}).source;return tme.state={items:$P.value,api:ame,source:ame?isExpression(ame)?"variable":"api":"custom"},tme}return eme.prototype.handleSourceChange=function($P){$P!==this.state.source&&this.setState({source:$P,api:"",items:[]},this.onChange)},eme.prototype.handleAPIChange=function($P){this.setState({api:$P},this.onChange)},eme.prototype.onChange=function(){var $P=this.state,tme=$P.source,ame=$P.items,nme=$P.api,rme=this.props.onBulkChange,ime={source:void 0,items:void 0};tme==="custom"&&(ime.items=ame.map(function(ome){return __assign$3({},ome)})),(tme==="api"||tme==="variable")&&(ime.items=[],ime.source=nme),rme&&rme(ime)},eme.prototype.toggleEdit=function($P,tme){var ame=this.state.items.concat();ame[tme]=$P,this.setState({items:ame},this.onChange)},eme.prototype.toggleCopy=function($P){var tme=this.state.items,ame=tme.concat(tme[$P]);this.setState({items:ame},this.onChange)},eme.prototype.toggleDelete=function($P){var tme=this.state.items.concat();tme.splice($P,1),this.setState({items:tme},this.onChange)},eme.prototype.handleEditLabel=function($P,tme,ame){var nme,rme=this,ime=this.state.items.concat();ime.splice($P,1,__assign$3(__assign$3({},ime[$P]),(nme={},nme[ame]=tme,nme))),this.setState({items:ime},function(){return rme.onChange()})},eme.prototype.handleBatchAdd=function($P,tme){var ame=this,nme=this.state.items.concat(),rme=$P.batchItems.split(`
`).map(function(ome){var lme=ome.trim();if(~lme.indexOf(" ")){var sme=__read$3(lme.split(" "),2),cme=sme[0],dme=sme[1];return{time:cme.trim(),title:dme.trim()}}return{label:lme,value:lme}}),ime=uniqBy$1(__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(rme),!1),"time");this.setState({items:ime},function(){return ame.onChange()})},eme.prototype.handleAdd=function($P){var tme=this.state.items,ame=tme.concat(__assign$3({},$P));this.setState({items:ame},this.onChange)},eme.prototype.buildAddOrEditSchema=function($P){var tme=getI18nEnabled();return[{type:tme?"input-text-i18n":"input-text",name:"time",required:!0,placeholder:i18n("37087e5bb2d0367872a461f535580d91"),label:i18n("19fcb9eb2594059036dfede5f4ec53e8"),value:$P==null?void 0:$P.time},{type:tme?"input-text-i18n":"input-text",name:"title",required:!0,placeholder:i18n("96641a78cfd9f9f8ba68f0524347b186"),label:i18n("32c65d8d7431e76029678ec7bb73a5ab"),value:$P==null?void 0:$P.title},{type:"input-color",name:"color",value:$P==null?void 0:$P.color,placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7"),label:i18n("6b36c6f7ec834692ec6c8e3816349fdd")},getSchemaTpl("icon",{value:$P==null?void 0:$P.icon,placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7"),clearable:!0,description:"",className:"fix-icon-picker-overflow",pipeIn:function(ame){return ame==null?void 0:ame.icon},pipeOut:function(ame){if(ame)return{type:"icon",vendor:"",icon:ame}}})]},eme.prototype.buildBatchAddSchema=function(){return{type:"action",actionType:"dialog",label:i18n("22de6ef85ed60ec54dbdc1d8583e5104"),dialog:{title:i18n("421252e16c6cb544fe9ce0be94a190e0"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"alert",level:"warning",body:[{type:"tpl",tpl:"每个选项单列一行，将所有值不重复的项加为新的选项;<br/>每个数据单独一行，时间与标题用空格分隔，例：“2024-01-01 提交申请”"}],showIcon:!0,className:"mb-2.5"},{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{left:0,right:12},body:[{name:"batchItems",type:"textarea",label:"",placeholder:i18n("1e2f96a69fbef8caa8823a3067ebbdc7"),trimContents:!0,minRows:10,maxRows:50,required:!0}]}]}}},eme.prototype.buildAddSchema=function(){return{type:"action",actionType:"dialog",label:"添加一项",active:!0,dialog:{title:i18n("d584018521820dac9e92120737b733ba"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"form",wrapWithPanel:!1,wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{justify:!0,left:3,right:9},body:this.buildAddOrEditSchema()}]}}},eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.initDragging=function(){var $P=this,tme=reactDomExports.findDOMNode(this);this.sortable=new Sortable(tme.querySelector(".ae-TimelineItemControl-content"),{group:"TimelineItemControlGroup",animation:150,handle:".ae-TimelineItemControlItem-dragBar",ghostClass:"ae-TimelineItemControlItem--dragging",onEnd:function(ame){if(ame.newIndex!==ame.oldIndex){var nme=ame.to;ame.oldIndex<nme.childNodes.length-1?nme.insertBefore(ame.item,nme.childNodes[ame.oldIndex>ame.newIndex?ame.oldIndex+1:ame.oldIndex]):nme.appendChild(ame.item);var rme=$P.state.items.concat();rme[ame.oldIndex]=rme.splice(ame.newIndex,1,rme[ame.oldIndex])[0],$P.setState({items:rme},function(){return $P.onChange()})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.renderHeader=function(){var $P=this,tme,ame=this.props,nme=ame.render,rme=ame.label,ime=ame.labelRemark,ome=ame.useMobileUI,lme=ame.env,sme=ame.popOverContainer,cme=(tme=lme==null?void 0:lme.theme)===null||tme===void 0?void 0:tme.classPrefix,dme=this.state.source,ume=[{label:i18n("01820262aa9ad5b130f8f5b86bfd2968"),value:"custom"},{label:i18n("c8158b3cad598b0b5939788ca4efb298"),value:"api"},{label:i18n("50334fc77fc5a2c2636f14f158d3c417"),value:"variable"}].map(function(fme){return __assign$3(__assign$3({},fme),{onClick:function(){return $P.handleSourceChange(fme.value)}})});return React__default.createElement("header",{className:"ae-TimelineItemControl-header"},React__default.createElement("label",{className:cx$1("".concat(cme,"Form-label"))},rme||"",ime?nme("label-remark",{type:"remark",icon:ime.icon||"warning-mark",tooltip:ime,className:cx$1("Form-lableRemark",ime==null?void 0:ime.className),useMobileUI:ome,container:sme||lme.getModalContainer}):null),React__default.createElement("div",null,nme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:ume},{popOverContainer:null,data:{selected:ume.find(function(fme){return fme.value===dme}).label}})))},eme.prototype.renderOption=function($P){var tme=this,ame=$P.time,nme=$P.title,rme=$P.index,ime=!(this.state.items.length>2),ome=getI18nEnabled();return React__default.createElement("li",{className:"ae-TimelineItemControlItem",key:rme},React__default.createElement("div",{className:"ae-TimelineItemControlItem-Main"},React__default.createElement("a",{className:"ae-TimelineItemControlItem-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),render$2({type:ome?"input-text-i18n":"input-text",className:"ae-TimelineItemControlItem-input",value:ame,placeholder:i18n("72a3c1690dead6e24f7ac1abc90d5063"),clearable:!1,onChange:function(lme){return tme.handleEditLabel(rme,lme,"time")}}),render$2({type:"dropdown-button",className:"ae-TimelineItemControlItem-dropdown",btnClassName:"px-2",icon:"fa fa-ellipsis-h",hideCaret:!0,closeOnClick:!0,align:"right",menuClassName:"ae-TimelineItemControlItem-ulmenu",buttons:[{type:"action",className:"ae-TimelineItemControlItem-action",label:i18n("95b351c86267f3aedf89520959bce689"),actionType:"dialog",dialog:{title:i18n("d584018521820dac9e92120737b733ba"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"form",wrapWithPanel:!1,wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{justify:!0,left:3,right:9},body:this.buildAddOrEditSchema($P),onSubmit:function(lme){return tme.toggleEdit(lme,rme)}}]}},{type:"button",className:"ae-TimelineItemControlItem-action",label:i18n("79d3abe929f67f0644a78bf32adb3a89"),onClick:function(){return tme.toggleCopy(rme)}},{type:"button",className:"ae-TimelineItemControlItem-action",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),disabled:ime,onClick:function(){return tme.toggleDelete(rme)}}]},{popOverContainer:null})),React__default.createElement("div",{className:"ae-TimelineItemControlItem-Main"},render$2({type:ome?"input-text-i18n":"input-text",className:"ae-TimelineItemControlItem-input-title",value:nme,clearable:!1,placeholder:i18n("96641a78cfd9f9f8ba68f0524347b186"),onChange:function(lme){return tme.handleEditLabel(rme,lme,"title")}})))},eme.prototype.renderApiPanel=function(){var $P=this.props.render,tme=this.state,ame=tme.source,nme=tme.api;return $P("api",getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",className:"ae-ExtendMore",visibleOn:"this.autoComplete !== false",value:nme,onChange:this.handleAPIChange,sourceType:ame}))},eme.prototype.render=function(){var $P=this,tme=this.state,ame=tme.source,nme=tme.items,rme=this.props,ime=rme.render,ome=rme.className;return React__default.createElement("div",{className:cx$1("ae-TimelineItemControl",ome)},this.renderHeader(),ame==="custom"?React__default.createElement("div",{className:"ae-TimelineItemControl-wrapper"},Array.isArray(nme)&&nme.length?React__default.createElement("ul",{className:"ae-TimelineItemControl-content",ref:this.dragRef},nme.map(function(lme,sme){return $P.renderOption(__assign$3(__assign$3({},lme),{index:sme}))})):React__default.createElement("div",{className:"ae-TimelineItemControl-placeholder"},i18n("a4f1ddbbfc96930d24e4b54cb815b62b")),React__default.createElement("div",{className:"ae-TimelineItemControl-footer"},render$2(this.buildAddSchema(),{onSubmit:this.handleAdd}),render$2(this.buildBatchAddSchema(),{onSubmit:this.handleBatchAdd}))):null,ame==="api"?this.renderApiPanel():null,ame==="variable"?ime("variable",getSchemaTpl("sourceBindControl",{label:!1,className:"ae-ExtendMore"}),{onChange:this.handleAPIChange}):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAPIChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"toggleEdit",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleBatchAdd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(TimelineItemControl,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"ae-timelineItemControl",renderLabel:!1})],eme),eme})(React__default.Component);var baseMerge=_baseMerge,createAssigner=_createAssigner,mergeWith=createAssigner(function(x_,eme,$P,tme){baseMerge(x_,eme,$P,tme)}),mergeWith_1=mergeWith;const mergeWith$1=getDefaultExportFromCjs(mergeWith_1);var APIControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleSimpleInputChange=function(ame){tme.handleSubmit(ame.currentTarget.value,"input")},tme.state={apiStr:tme.transformApi2Str($P.value),selectedItem:[],schema:$P.pickerSchema,loading:!1},tme}return eme.prototype.componentDidMount=function(){this.updatePickerOptions()},eme.prototype.componentDidUpdate=function($P){var tme=this.props;$P.value!==tme.value&&(this.setState({apiStr:this.transformApi2Str(tme.value)}),this.updatePickerOptions()),anyChanged(["enablePickerMode","pickerSchema"],$P,tme)&&this.setState({schema:tme.pickerSchema}),isApiOutdated($P==null?void 0:$P.pickerSource,tme==null?void 0:tme.pickerSource,$P.data,tme.data)&&this.fetchOptions()},eme.prototype.updatePickerOptions=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame;return __generator(this,function(nme){switch(nme.label){case 0:if(tme=normalizeApi(this.props.value),!(!(($P=tme==null?void 0:tme.url)===null||$P===void 0)&&$P.startsWith("api://")))return[3,4];this.setState({loading:!0}),ame=tme.url.replace("api://",""),nme.label=1;case 1:return nme.trys.push([1,3,,4]),[4,this.fetchOptions(ame)];case 2:return nme.sent(),[3,4];case 3:return nme.sent(),[3,4];case 4:return this.setState({loading:!1}),[2]}})})},eme.prototype.transformApi2Str=function($P){var tme=normalizeApi($P);return tme.url?"".concat(tme.method&&tme.method.toLowerCase()!=="get"?"".concat(tme.method,":"):"").concat(tme.url):""},eme.prototype.fetchOptions=function($P){var tme,ame,nme,rme;return __awaiter(this,void 0,void 0,function(){var ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme;return __generator(this,function(_me){switch(_me.label){case 0:return ime=this.props,ome=ime.value,lme=ime.data,sme=ime.env,cme=ime.searchField,dme=ime.searchType,ume=this.props.pickerSource,fme=normalizeApi(ome),!ume||!(fme!=null&&fme.url)?[2]:(pme=(ame=(tme=fme==null?void 0:fme.url)===null||tme===void 0?void 0:tme.split("api://"))===null||ame===void 0?void 0:ame[1],hme=createObject(lme,__assign$3({value:ome,op:"loadOptions"},$P&&cme?(yme={},yme[cme]=$P,yme.searchType=dme,yme):{})),bme=getEnv(window.editorStore).schemaFilter,bme&&(ume=bme({api:ume}).api),isEffectiveApi(ume,hme)?[4,sme.fetcher(ume,hme)]:[3,2]);case 1:mme=_me.sent(),vme=((nme=mme.data)===null||nme===void 0?void 0:nme.items)||((rme=mme==null?void 0:mme.data)===null||rme===void 0?void 0:rme.rows),vme.length&&(gme=vme.find(function($me){return $me.key===pme}),this.setState({selectedItem:gme?[gme]:[]})),_me.label=2;case 2:return[2]}})})},eme.prototype.inputRef=function($P){this.input=$P},eme.prototype.focus=function(){this.input&&this.input.focus()},eme.prototype.clearPickerValue=function(){var $P=this,tme=this.props.onChange;this.setState({apiStr:this.transformApi2Str(void 0),selectedItem:[]},function(){tme==null||tme(void 0),$P.focus()})},eme.prototype.handleSubmit=function($P,tme){var ame=this.props,nme=ame.onChange,rme=ame.value,ime=$P;!$P&&tme==="picker-submit"||((typeof rme!="string"||typeof $P!="string")&&(ime=mergeWith$1({},normalizeApi(rme),normalizeApi($P),function(ome,lme,sme){if(["data","responseData","headers"].includes(sme))return lme}),["data","responseData","headers"].forEach(function(ome){ime[ome]==null&&delete ime[ome]})),nme==null||nme(ime))},eme.prototype.handleAction=function($P,tme,ame,nme){var rme=this.props.onAction;rme==null||rme($P,tme,ame,nme)},eme.prototype.normalizeValue=function($P,tme){var ame=cloneDeep$1($P);return typeof tme=="function"&&(ame=tme($P)),ame},eme.prototype.handlePickerConfirm=function($P){var tme=this.props.onPickerConfirm;this.handleSubmit(this.normalizeValue($P,tme),"picker-submit")},eme.prototype.handlePickerClose=function(){var $P=this.props.onPickerClose;$P==null||$P()},eme.prototype.renderHeader=function(){var $P,tme=this.props,ame=tme.render,nme=tme.labelRemark,rme=tme.useMobileUI,ime=tme.popOverContainer,ome=tme.env,lme=this.props.label,sme=($P=ome==null?void 0:ome.theme)===null||$P===void 0?void 0:$P.classPrefix;return React__default.createElement("header",{className:"ApiControl-header",key:"header"},React__default.createElement("label",{className:cx$1("".concat(sme,"Form-label"))},lme!=null&&lme.type?ame("label",lme):lme||"",nme?ame("label-remark",{type:"remark",icon:nme.icon||"warning-mark",tooltip:nme,className:cx$1("Form-lableRemark",nme==null?void 0:nme.className),useMobileUI:rme,container:ime||ome.getModalContainer}):null))},eme.prototype.renderPickerSchema=function(){var $P=this,tme=this.props,ame=tme.render,nme=tme.pickerTitle;tme.pickerName;var rme=tme.pickerSize,ime=tme.pickerHeaderClassName,ome=tme.pickerBtnSchema,lme=tme.enablePickerMode,sme=tme.onPickerSelect,cme=this.state,dme=cme.selectedItem,ume=cme.schema;return ume?React__default.createElement(PickerContainer$1,{title:nme,headerClassName:cx$1(ime,"font-bold"),onConfirm:this.handlePickerConfirm,onCancel:this.handlePickerClose,size:rme,bodyRender:function(fme){var pme=fme.onChange,hme=fme.setState;return ame("api-control-picker",ume,{value:dme,onSelect:function(bme){hme({selectedItem:bme}),pme($P.normalizeValue(bme,sme))}})}},function(fme){var pme=fme.onClick,hme=fme.isOpened;return ame("picker-action",__assign$3(__assign$3({icon:React__default.createElement(Icon$1,{icon:"picker-icon",className:"icon ae-ApiControl-icon"})},ome),{className:cx$1("ae-ApiControl-PickerBtn",ome==null?void 0:ome.className)}),{onClick:function(bme){return __awaiter($P,void 0,void 0,function(){return __generator(this,function(mme){switch(mme.label){case 0:if(!(!hme&&lme))return[3,4];mme.label=1;case 1:return mme.trys.push([1,3,,4]),[4,this.fetchOptions()];case 2:return mme.sent(),[3,4];case 3:return mme.sent(),[3,4];case 4:return pme(bme),[2]}})})}})}):null},eme.prototype.renderApiDialog=function(){return{label:"",type:"action",acitonType:"dialog",size:"sm",icon:React__default.createElement(Icon$1,{icon:"setting",className:"icon ae-ApiControl-icon"}),className:"ae-ApiControl-setting-button",actionType:"dialog",dialog:{title:i18n("e370757f933a8ecd87bf0255c3ce45d0"),size:"md",className:"ae-ApiControl-dialog",headerClassName:"font-bold",bodyClassName:"ae-ApiControl-dialog-body",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[this.renderApiConfigTabs()]}}},eme.prototype.renderApiConfigTabs=function($P){$P===void 0&&($P=!1);var tme=this.props;tme.messageDesc;var ame=tme.debug,nme=ame===void 0?!1:ame,rme=tme.name;return{type:"form",className:"ae-ApiControl-form :AMISCSSWrapper",mode:"horizontal",submitOnChange:$P,wrapWithPanel:!1,onSubmit:this.handleSubmit,debug:nme,body:[{type:"tabs",className:"ae-ApiControl-tabs",contentClassName:"ae-ApiControl-tabContent",tabs:[{title:i18n("7c57a563ab87bc6eb5edd8f5b953f499"),tab:[{label:i18n("6aa351f5dacd13d3d862d9c93e4a0241"),name:"method",value:"get",type:"button-group-select",mode:"horizontal",options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"}]},{label:i18n("85624c8e8b0fc98954eecbe508e8b59d"),type:"input-text",name:"url",mode:"horizontal",size:"lg",placeholder:"http://",required:!0},{label:i18n("8dc91bca9bc83efea73150e3478657fc"),type:"input-text",name:"sendOn",mode:"horizontal",size:"lg",placeholder:i18n("bf9e242338d2c26b182aa6b9c015d84c"),description:i18n("91ee84292a5bf5e59d3b6309f948f2f1")},{label:i18n("7c6722203327e8173be987f36fadf610"),type:"button-group-select",name:"dataType",size:"sm",mode:"horizontal",description:"".concat(i18n("55409342e28d37db86fb23efbd84a025"),'：<%= data.dataType === "json" ? "application/json" : (data.dataType === "form-data" ? "multipart/form-data" : (data.dataType === "form" ? "application/x-www-form-urlencoded" : "")) %>，').concat(i18n("e06a14abe7ef66a8ead143db4ae9786e")),options:[{label:"JSON",value:"json"},{label:"FormData",value:"form-data"},{label:"Form",value:"form"}],disabled:!1},{type:"group",body:[{type:"switch",label:tipedLabel(i18n("6e6d4269d0dc3324d551062350a2ae9f"),i18n("ddca9c0f0e3d07c3341701b80f139cc0")),name:"silent",mode:"horizontal"}]},{type:"switch",label:i18n("773a0e8384fd6f784088b829d7cc2f68"),name:"cache",mode:"horizontal",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?3e3:void 0}},{label:"",type:"input-number",name:"cache",mode:"horizontal",size:"md",min:0,step:500,visibleOn:"this.cache",description:i18n("c1b110f13431df9662299f26def71df1"),pipeIn:function(ime){return typeof ime=="number"?ime:0}},{label:i18n("a18ea11244325dd3d20c5988bc7f6e39"),name:"responseType",type:"switch",mode:"horizontal",description:i18n("68caa6082eda1745aa3f6b6d12efe423"),pipeIn:function(ime){return ime==="blob"},pipeOut:function(ime){return ime?"blob":void 0}},{label:i18n("91831507074270c0da8a31ad9ff87495"),name:"replaceData",type:"switch",mode:"horizontal",description:i18n("42be3061671b38468cc6ac84f6a0dd77")},{label:"",name:"interval",type:"input-number",mode:"horizontal",size:"md",visibleOn:'typeof this.interval === "number"',step:500,description:i18n("81fe75a5216d4f612f1809c122f5145a")},{label:i18n("19c5410b23fba4bbfd1a58bbd5268c9b"),name:"silentPolling",type:"switch",mode:"horizontal",visibleOn:"!!data.interval",description:i18n("04f840b0772f4b5d59954a29a76f4e7b")},{label:tipedLabel(i18n("83f16354dd1532422dc8b3581d096e7b"),i18n("620f826a77f079c5683a9d3c59461ea1")),name:"stopAutoRefreshWhen",type:"input-text",mode:"horizontal",horizontal:{leftFixed:"md"},size:"lg",visibleOn:"!!data.interval",placeholder:i18n("6037dae99e9446deaed45f7e408f47ab")}]},{title:i18n("90260d55567cfd97ec2f085963a60bcf"),tab:[{type:"switch",label:tipedLabel(i18n("be47bd270e7756d4233e59bbe4cd5b96"),i18n("f80cc88446cc10da4838556666f6b9f1")),name:"headers",mode:"horizontal",className:"m-b-xs",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?{"":""}:null}},{type:"combo",name:"headers",mode:"horizontal",syncDefaultValue:!1,multiple:!0,visibleOn:"this.headers",items:[{type:"input-text",name:"key",placeholder:"Key",unique:!0,required:!0,options:[{label:"Content-Encoding",value:"Content-Encoding"},{label:"Content-Type",value:"Content-Type"}]},{type:"input-text",name:"value",placeholder:"Value",disabled:!1}],pipeIn:function(ime){if(!isObject(ime))return ime;var ome=[];return Object.keys(ime).forEach(function(lme){ome.push({key:lme||"",value:typeof ime[lme]=="string"?ime[lme]:JSON.stringify(ime[lme])})}),ome},pipeOut:function(ime){if(!Array.isArray(ime))return ime;var ome={};return ime.forEach(function(lme){var sme=lme.key||"",cme=lme.value;try{cme=JSON.parse(cme)}catch{}ome[sme]=cme}),ome}},{type:"switch",label:tipedLabel(i18n("8f0064a9cfd7dcbb3c729f1357f11772"),i18n("0fcbf036057c6dd88b7b809daa0c5eb7")),name:"data",mode:"horizontal",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?{"&":"$$"}:null}},{type:"combo",syncDefaultValue:!1,name:"data",mode:"horizontal",renderLabel:!1,visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:i18n("5414824fb8efdb7d59beae4bf95fdefd"),multiple:!0,pipeIn:function(ime){if(!isObject(ime))return ime;var ome=[];return Object.keys(ime).forEach(function(lme){ome.push({key:lme||"",value:typeof ime[lme]=="string"?ime[lme]:JSON.stringify(ime[lme])})}),ome},pipeOut:function(ime){if(!Array.isArray(ime))return ime;var ome={};return ime.forEach(function(lme){var sme=lme.key||"",cme=lme.value;try{cme=JSON.parse(cme)}catch{}ome[sme]=cme}),ome},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0},getSchemaTpl("DataPickerControl",{placeholder:"Value",name:"value"})]},getSchemaTpl("apiRequestAdaptor"),{type:"switch",label:tipedLabel(i18n("6d33298a54888a30753373ca5bfe3bc2"),i18n("542e06175ff4f7407c467bbde90de56a")),name:"responseData",mode:"horizontal",pipeIn:function(ime){return!!ime},pipeOut:function(ime){return ime?{"&":"$$"}:null}},{type:"combo",syncDefaultValue:!1,name:"responseData",mode:"horizontal",renderLabel:!1,visibleOn:"this.responseData",descriptionClassName:"help-block text-xs m-b-none",multiple:!0,pipeIn:function(ime){if(!isObject(ime))return ime;var ome=[];return Object.keys(ime).forEach(function(lme){ome.push({key:lme||"",value:typeof ime[lme]=="string"?ime[lme]:JSON.stringify(ime[lme])})}),ome},pipeOut:function(ime){if(!Array.isArray(ime))return ime;var ome={};return ime.forEach(function(lme){var sme=lme.key||"",cme=lme.value;try{cme=JSON.parse(cme)}catch{}ome[sme]=cme}),ome},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0},{placeholder:"Value",type:"input-text",name:"value"}]},getSchemaTpl(rme==="validateApi"?"validateApiAdaptor":"apiAdaptor")]},{title:i18n("99c74120cc62f4bf31d661e3212b7121"),tab:[{label:i18n("7c583ecdf795ce4f1f40d7960ead9344"),type:"combo",name:"messages",mode:"normal",multiLine:!0,items:[{label:i18n("70941a02776496ec446f21f98ebf754e"),type:"input-text",name:"success"},{label:i18n("f50bf418323ee425eca7208c09a4577e"),type:"input-text",name:"failed"}]}]}]}]}},eme.prototype.render=function(){var $P,tme,ame=this.props,nme=ame.render,rme=ame.className,ime=ame.footerClassName;ame.classPrefix,ame.label,ame.labelRemark;var ome=ame.value,lme=ame.footer,sme=ame.border,cme=sme===void 0?!1:sme,dme=ame.onlyTabs,ume=dme===void 0?!1:dme;ame.messageDesc;var fme=ame.enablePickerMode,pme=ame.disabled;ame.mode;var hme=ame.enableHighlight,bme=ame.labelField,mme=bme===void 0?"label":bme;ame.useMobileUI,ame.popOverContainer,ame.env;var vme=ame.renderLabel,gme=this.state,yme=gme.apiStr,_me=gme.selectedItem,$me=gme.loading;_me=Array.isArray(_me)&&_me.length!==0?_me:[];var Cme=(tme=($P=_me==null?void 0:_me[0])===null||$P===void 0?void 0:$P[mme])!==null&&tme!==void 0?tme:"";return React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:cx$1("ae-ApiControl",rme,{border:cme})},ume?nme("api-control-tabs",this.renderApiConfigTabs(!0),{data:normalizeApi(ome)}):React__default.createElement(React__default.Fragment,null,!vme&&this.renderHeader(),React__default.createElement("div",{className:"ae-ApiControl-content",key:"content"},React__default.createElement("div",{className:cx$1("ae-ApiControl-input")},hme&&Cme?React__default.createElement("div",{className:cx$1("ae-ApiControl-highlight")},$me?React__default.createElement(Spinner$1,{show:!0,icon:"reload",size:"sm",spinnerClassName:cx$1("Select-spinner")}):React__default.createElement("span",{className:cx$1("ae-ApiControl-highlight-tag")},React__default.createElement("span",null,Cme),React__default.createElement("a",{onClick:this.clearPickerValue,className:cx$1("Modal-close")},React__default.createElement(Icon$1,{icon:"close",className:cx$1("icon","ae-ApiControl-highlight-close")})))):React__default.createElement(Input,{ref:this.inputRef,value:yme,type:"text",disabled:pme,placeholder:"http://",onChange:this.handleSimpleInputChange}),fme?this.renderPickerSchema():null),nme("api-control-dialog",this.renderApiDialog(),{data:normalizeApi(ome)})))),Array.isArray(lme)&&lme.length!==0?React__default.createElement("footer",{className:cx$1("mt-3",ime),key:"footer"},nme("api-control-footer",lme)):null)},eme.defaultProps={pickerBtnSchema:{type:"button",level:"link",size:"sm"},labelField:"label",searchType:"key"},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"inputRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"clearPickerValue",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmit",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handlePickerConfirm",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handlePickerClose",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderHeader",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-apiControl",renderLabel:!1})],eme),eme})(APIControl);var ValidationItem=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=tme.props.data;return tme.validator=tme.props.validator,tme.state={value:ame==null?void 0:ame.value,checked:ame.value!=null,message:(ame==null?void 0:ame.message)||"",isBuiltIn:ame==null?void 0:ame.isBuiltIn},tme}return eme.prototype.handleEdit=function($P,tme){var ame=this.props,nme=ame.onEdit,rme=ame.data;(tme==null?void 0:tme.type)==="submit"&&nme&&nme(__assign$3({name:rme.name},$P))},eme.prototype.handleDelete=function(){var $P=this.props,tme=$P.onDelete,ame=$P.data;tme&&tme(ame.name)},eme.prototype.handleSwitch=function($P){var tme=this.props,ame=tme.onSwitch,nme=tme.data,rme=this.state,ime=rme.value;rme.message,this.setState({checked:$P}),$P&&(nme.value=this.validator.schema?ime:!0,nme.message=""),ame&&ame($P,nme)},eme.prototype.renderActions=function(){var $P=this.props.isDefault,tme=[];return $P||tme.push(React__default.createElement(Button$1,{className:"ae-ValidationControl-item-action",level:"link",size:"md",key:"delete",onClick:this.handleDelete},React__default.createElement("i",{className:"fa fa-trash"}))),tme.length!==0?React__default.createElement(React__default.Fragment,null,React__default.createElement("div",{className:"ae-ValidationControl-item-actions"},tme)):null},eme.prototype.renderInputControl=function(){var $P=this,tme=this.state,ame=tme.value,nme=tme.message,rme=tme.checked,ime=this.props,ome=ime.fields,lme=ime.rendererSchema,sme=getI18nEnabled(),cme=[];if(!rme)return null;if(lme){var dme=Array.isArray(lme)?lme:[lme],ume=dme.filter(function(fme){return fme.validateName===$P.validator.name});!ume.length&&this.validator.schema&&(ume=ume.concat(this.validator.schema)),cme=ume}else this.validator.schema&&(cme=cme.concat(this.validator.schema));return this.validator.message&&cme.push({name:"message",type:sme?"input-text-i18n":"input-text",label:tipedLabel(i18n("d7a169e81b60ee08c82b5d9de473e362"),"系统默认提示：".concat(this.validator.message)),placeholder:i18n("5ef6ce89f52b4331b080a0f3019414f3")}),cme.length!==0?React__default.createElement("section",{className:cx$1("ae-ValidationControl-item-input","ae-ExtendMore")},render$2({type:"form",className:"w-full",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",mode:"horizontal",horizontal:{justify:!0,left:4,right:8},preventEnterSubmit:!0,submitOnChange:!0,body:cme},{data:{value:ame,message:nme,fields:ome},onSubmit:this.handleEdit})):null},eme.prototype.render=function(){var $P=this.props,tme=$P.classPrefix,ame=$P.data;$P.isDefault;var nme=this.state,rme=nme.checked,ime=nme.isBuiltIn;return React__default.createElement("div",{className:cx$1("ae-ValidationControl-item",{"is-active":rme}),key:ame.name},React__default.createElement("section",{className:cx$1("ae-ValidationControl-item-control",{"is-active":rme&&ame.name!=="required"})},React__default.createElement("label",{className:cx$1("".concat(tme,"Form-label"))},this.validator.label),React__default.createElement("div",null,this.renderActions(),React__default.createElement(Switch$1,{key:"switch",value:rme,disabled:ime,onChange:this.handleSwitch}))),this.renderInputControl())},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleDelete",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitch",null),eme}(React__default.Component),ValidationControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={avaliableValids:tme.getAvaliableValids($P),fields:[]},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P;return __generator(this,function(tme){switch(tme.label){case 0:return[4,this.buildFieldsData()];case 1:return $P=tme.sent(),this.setState({fields:$P}),[2]}})})},eme.prototype.componentWillReceiveProps=function($P){var tme,ame,nme;(this.props.data.type!==$P.data.type||((tme=this.cache)===null||tme===void 0?void 0:tme.required)!==$P.data.required||isObjectShallowModified((ame=this.cache)===null||ame===void 0?void 0:ame.validations,$P.data.validations)||isObjectShallowModified((nme=this.cache)===null||nme===void 0?void 0:nme.validationErrors,$P.data.validationErrors))&&this.setState({avaliableValids:this.getAvaliableValids($P)})},eme.prototype.buildFieldsData=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme;return __generator(this,function(ame){switch(ame.label){case 0:return[4,getConditionVariables(this)];case 1:return $P=ame.sent(),tme=flattenTree($P,function(nme){var rme={label:nme.label,value:nme.value};return rme}),[2,tme]}})})},eme.prototype.getAvaliableValids=function($P){var tme=$P.data,ame=$P.tag;return ame=typeof ame=="string"?ame:ame(tme),getValidatorsByTag(ame)},eme.prototype.transformValid=function($P){var tme=$P.required,ame=$P.validations,nme=$P.validationErrors,rme=[];return tme&&rme.push({name:"required",value:!0,message:nme==null?void 0:nme.required}),ame&&Object.keys(ame).forEach(function(ime){rme.push({name:ime,value:ame[ime],message:nme==null?void 0:nme[ime]})}),rme},eme.prototype.updateValidation=function($P){var tme=this.props.onBulkChange;if(!$P.length){this.cache=void 0,tme&&tme({required:void 0,validations:void 0,validationErrors:void 0});return}var ame=void 0,nme={},rme={};$P.forEach(function(ime){var ome=ime.name,lme=ime.value,sme=ime.message;if(ome==="required"){ame=lme;return}lme!=null&&(nme[ome]=lme,sme&&(rme[ome]=sme))}),this.cache={required:ame,validations:Object.keys(nme).length?nme:void 0,validationErrors:Object.keys(rme).length?rme:void 0},tme&&tme(__assign$3({},this.cache))},eme.prototype.handleAddValidator=function($P){var tme=this.transformValid(this.props.data);tme.push({name:$P.name,value:$P.schema?"":!0,message:""}),this.updateValidation(tme)},eme.prototype.handleEditRule=function($P){var tme=this.transformValid(this.props.data),ame=tme.find(function(nme){return nme.name===$P.name});ame?(ame.value=$P.value,ame.message=$P.message):tme.push($P),this.updateValidation(tme)},eme.prototype.handleRemoveRule=function($P){var tme=this.transformValid(this.props.data);remove$1(tme,function(ame){return ame.name===$P}),this.updateValidation(tme)},eme.prototype.handleSwitchRule=function($P,tme){var ame=this.transformValid(this.props.data),nme=ame.find(function(rme){return rme.name===tme.name});nme||(nme={name:tme.name},ame.push(nme)),nme.value=$P?tme.value:void 0,nme.message=$P?tme.message:void 0,this.updateValidation(ame)},eme.prototype.renderDropdown=function(){var $P=this,tme=this.props,ame=tme.render,nme=tme.validations,rme=nme===void 0?{}:nme,ime=this.state.avaliableValids.moreValidators,ome=Object.values(ime).filter(function(sme){return!rme.hasOwnProperty(sme.name)}),lme=Object.entries(groupBy$1(ome,"group")).map(function(sme){var cme=__read$3(sme,2),dme=cme[0],ume=cme[1];return{label:dme,children:ume.map(function(fme){return{label:fme.label,onClick:function(){return $P.handleAddValidator(fme)}}})}});return React__default.createElement("div",{className:"ae-ValidationControl-dropdown"},ame("validation-control-dropdown",{type:"dropdown-button",btnClassName:"ae-ValidationControl-dropdown-btn",menuClassName:"ae-ValidationControl-dropdown-menu",level:"link",size:"md",icon:"fa fa-plus",label:"",tooltip:i18n("442781667396d6eff51113f482d89e54"),placement:"left",align:"right",tooltipTrigger:"hover",closeOnClick:!0,closeOnOutside:!0,hideCaret:!0,disabled:lme.length===0,buttons:lme},{key:"validation-control-dropdown",popOverContainer:null}))},eme.prototype.renderValidaton=function(){var $P=this,tme,ame,nme,rme=eme.getRendererSchemaFromProps(this.props),ime=this.filterCustomRendererProps(rme),ome=(nme=(ame=(tme=this.props)===null||tme===void 0?void 0:tme.env)===null||ame===void 0?void 0:ame.theme)===null||nme===void 0?void 0:nme.classPrefix,lme=this.state,sme=lme.avaliableValids,cme=sme.defaultValidators,dme=sme.moreValidators,ume=sme.builtInValidators,fme=lme.fields,pme=this.transformValid(this.props.data),hme=[];return pme=pme.concat(),Object.keys(cme).forEach(function(bme){var mme=remove$1(pme,function(vme){return vme.name===bme});hme.push(React__default.createElement(ValidationItem,{rendererSchema:ime,fields:fme,key:bme,validator:cme[bme],data:mme.length?mme[0]:{name:bme},classPrefix:ome,isDefault:cme.hasOwnProperty(bme),onEdit:$P.handleEditRule,onDelete:$P.handleRemoveRule,onSwitch:$P.handleSwitchRule}))}),Object.keys(ume).forEach(function(bme){var mme=remove$1(pme,function(vme){return vme.name===bme});hme.push(React__default.createElement(ValidationItem,{rendererSchema:ime,fields:fme,key:bme,validator:ume[bme],data:mme.length?__assign$3(__assign$3({},mme[0]),{isBuiltIn:!0}):{name:bme,value:!0,isBuiltIn:!0},classPrefix:ome,isDefault:ume.hasOwnProperty(bme),onEdit:$P.handleEditRule,onDelete:$P.handleRemoveRule,onSwitch:$P.handleSwitchRule}))}),pme.length&&pme.forEach(function(bme){var mme=dme[bme.name]||getValidator(bme.name);mme&&hme.push(React__default.createElement(ValidationItem,{rendererSchema:ime,fields:fme,key:bme.name,data:bme,classPrefix:ome,validator:mme,isDefault:cme.hasOwnProperty(bme.name),onEdit:$P.handleEditRule,onDelete:$P.handleRemoveRule,onSwitch:$P.handleSwitchRule}))}),React__default.createElement("div",{className:"ae-ValidationControl-rules",key:"rules"},hme)},eme.prototype.filterCustomRendererProps=function($P){var tme,ame=this.props,nme=ame.data;ame.name;var rme=ame.placeholder,ime=ame.rendererSchema,ome=$P;if($P&&typeof ime=="function"){ome=Object.assign({},$P,{type:(tme=$P.type)!==null&&tme!==void 0?tme:nme.type,popOverContainer:function(){return document.body},name:"value"});var lme=["id","$$id","className","style","readOnly","horizontal","size","remark","labelRemark","static","staticOn","hidden","hiddenOn","visible","visibleOn","disabled","disabledOn","required","requiredOn","className","labelClassName","labelAlign","inputClassName","description","autoUpdate","prefix","suffix","unitOptions","keyboard","kilobitSeparator","value","inputControlClassName","css","validateApi","validations","themeCss","onEvent","embed"];ome=omit$1(ome,lme),ome.clearable=!0,rme&&(ome.placeholder=rme)}return JSONPipeOut(ome),ome},eme.getRendererSchemaFromProps=function($P){var tme=$P.rendererSchema;if(typeof tme=="function"){var ame=$P.data?__assign$3({},$P.data):void 0;return tme(ame)}else return tme},eme.prototype.render=function(){var $P=this.props.className;return React__default.createElement("div",{className:cx$1("ae-ValidationControl",$P),key:"validation-control"},this.renderDropdown(),this.renderValidaton())},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"buildFieldsData",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditRule",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleRemoveRule",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitchRule",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"filterCustomRendererProps",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-validationControl",renderLabel:!1,strictMode:!1,shouldComponentUpdate:function($P,tme){var ame=ValidationControl.getRendererSchemaFromProps($P),nme=ValidationControl.getRendererSchemaFromProps(tme);return isObjectShallowModified(ame,nme)}})],eme),eme})(ValidationControl);var ValidationApiControl=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.renderValidateApiControl=function(){var $P=this.props,tme=$P.onBulkChange,ame=$P.render;return React__default.createElement("div",{className:"ae-ValidationControl-item"},ame("validate-api-control",{type:"form",wrapWithPanel:!1,className:"w-full mb-2",bodyClassName:"p-none",wrapperComponent:"div",mode:"horizontal",data:{switchStatus:this.props.data.validateApi!==void 0},preventEnterSubmit:!0,submitOnChange:!0,onSubmit:function(nme){var rme=nme.switchStatus,ime=nme.validateApi;tme&&tme({validateApi:rme?ime:void 0})},body:[getSchemaTpl("switch",{label:tipedLabel(i18n("240a19929878c26f5e4c41c08f63cd1c"),i18n("ae7ca6f3dec57a73ddc145a7094adc97")),name:"switchStatus"}),{type:"container",className:"ae-ExtendMore ae-ValidationControl-item-input",bodyClassName:"w-full",visibleOn:"this.switchStatus",data:{validateApi:this.props.data.validateApi},body:[getSchemaTpl("apiControl",{name:"validateApi",renderLabel:!0,label:"",mode:"normal",className:"w-full"})]}]}))},eme.prototype.render=function(){return React__default.createElement(React__default.Fragment,null,this.renderValidateApiControl())},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-validationApiControl",renderLabel:!1,strictMode:!1})],eme),eme})(ValidationApiControl);function fromPairs(x_){for(var eme=-1,$P=x_==null?0:x_.length,tme={};++eme<$P;){var ame=x_[eme];tme[ame[0]]=ame[1]}return tme}var fromPairs_1=fromPairs;const fromPairs$1=getDefaultExportFromCjs(fromPairs_1);var baseEach=_baseEach;function baseSome$1(x_,eme){var $P;return baseEach(x_,function(tme,ame,nme){return $P=eme(tme,ame,nme),!$P}),!!$P}var _baseSome=baseSome$1,arraySome=_arraySome,baseIteratee=_baseIteratee,baseSome=_baseSome,isArray=isArray_1,isIterateeCall=_isIterateeCall;function some(x_,eme,$P){var tme=isArray(x_)?arraySome:baseSome;return $P&&isIterateeCall(x_,eme,$P)&&(eme=void 0),tme(x_,baseIteratee(eme))}var some_1=some;const some$1=getDefaultExportFromCjs(some_1);var SwitchMore=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state=tme.initState(),tme}return eme.prototype.initState=function(){var $P=this.props,tme=$P.data,ame=$P.value,nme=$P.trueValue;$P.falseValue;var rme=$P.name,ime=$P.bulk;$P.hiddenOnDefault;var ome=$P.isChecked,lme=!1,sme=!1;if(ome&&typeof ome=="function")lme=ome({data:tme,value:ame,name:rme,bulk:ime}),sme=lme;else if(rme)lme=!!ame===nme;else if(ime){var cme=this.getFormItemNames();lme=some$1(cme,function(dme){return tme[dme]!==void 0}),sme=lme}else lme=ame===nme;return{checked:lme,show:sme}},eme.prototype.getFormItemNames=function(){var $P=this.props.form,tme=$P&&Array.isArray($P==null?void 0:$P.body)?$P.body.map(function(ame){return typeof ame=="string"||ame==null?void 0:ame.name}).filter(function(ame){return ame}):[];return tme},eme.prototype.overlayRef=function($P){this.overlay=$P?reactDomExports.findDOMNode($P):null},eme.prototype.openPopover=function(){this.setState({show:!0})},eme.prototype.toogleExtend=function(){this.setState({show:!this.state.show})},eme.prototype.closePopover=function(){this.setState({show:!1})},eme.prototype.handleDelete=function($P){var tme=this.props.onRemove;tme&&tme($P)},eme.prototype.handleSwitchChange=function($P){var tme=this.props,ame=tme.onBulkChange,nme=tme.onChange,rme=tme.bulk,ime=tme.defaultData,ome=tme.name,lme=tme.trueValue,sme=tme.falseValue,cme=tme.clearChildValuesOnOff;if(this.setState({checked:$P}),rme){if($P){var dme=ime?__assign$3({},ime):{};ome&&(dme[ome]=lme),ame&&ame(dme)}else{var ume=cme?fromPairs$1(this.getFormItemNames().map(function(fme){return[fme,void 0]})):{};ome&&(ume[ome]=sme),ame&&ame(ume)}return}nme($P?ime||!0:void 0)},eme.prototype.handleSubmit=function($P){var tme=this.props,ame=tme.onChange,nme=tme.onBulkChange,rme=tme.bulk;rme?nme&&nme($P):ame&&ame($P)},eme.prototype.handleAction=function($P,tme,ame,nme,rme){var ime=this.props.onClose;tme.actionType==="close"&&(this.setState({show:!1}),ime&&ime($P))},eme.prototype.renderActions=function(){var $P=this.props,tme=$P.render,ame=$P.removable,nme=$P.disabled,rme=$P.form,ime=$P.formType,ome=$P.hiddenOnDefault,lme=$P.bulk,sme=this.state,cme=sme.checked,dme=sme.show;if(!rme||!cme||nme)return null;var ume=[];return ime==="dialog"?ume.push(tme("switch-more-form",this.renderDialogMore(),{key:"edit",onSubmit:this.handleSubmit})):ime==="pop"?ume.push(React__default.createElement(Button$1,{key:"edit",level:"link",size:"sm",className:"action-btn",ref:this.overlayRef,onClick:this.openPopover},React__default.createElement(Icon$1,{icon:"pencil",className:"icon"}))):lme&&ome&&ime==="extend"&&ume.push(React__default.createElement("div",{key:"open","data-tooltip":dme?void 0:i18n("311f6d1fa5f13b0e280d7b3c9d40c5be"),"data-position":"bottom"},React__default.createElement(Button$1,{level:"link",size:"sm",className:"action-btn open-btn"+(dme?" opening":""),onClick:this.toogleExtend},React__default.createElement(Icon$1,{icon:"caret",className:"icon"})))),ame&&ume.push(React__default.createElement(Button$1,{key:"remove",level:"link",size:"sm",onClick:this.handleDelete},React__default.createElement(Icon$1,{icon:"delete-btn",className:"icon ae-SwitchMore-icon"}))),ume},eme.prototype.renderPopover=function(){var $P=this.props,tme=$P.render,ame=$P.popOverclassName,nme=$P.overlay,rme=$P.offset,ime=$P.target,ome=$P.container,lme=$P.placement,sme=$P.rootClose,cme=$P.style,dme=$P.title;return React__default.createElement(Overlay,{show:!0,rootClose:sme,placement:lme,target:ime||this.overlay,container:ome},React__default.createElement(PopOver$1,{className:cx$1("ae-SwitchMore-popover",ame),placement:lme,overlay:nme,offset:rme,style:cme},React__default.createElement("header",null,React__default.createElement("p",{className:"ae-SwitchMore-title"},dme||i18n("38aa9dc2a0f14555322061d2ff997349")),React__default.createElement("a",{onClick:this.closePopover,className:"ae-SwitchMore-close"},React__default.createElement(Icon$1,{icon:"close",className:"icon"}))),tme("switch-more-form",this.renderForm(),{onSubmit:this.handleSubmit})))},eme.prototype.renderExtend=function(){var $P=this.props,tme=$P.render;$P.form,$P.bulk;var ame=$P.hiddenOnDefault,nme=this.state.show;return ame&&!nme?null:React__default.createElement("div",null,React__default.createElement("div",{className:cx$1("ae-SwitchMore-content","inFormItem")},tme("switch-more-form",this.renderForm(),{onSubmit:this.handleSubmit})))},eme.prototype.renderDialogMore=function(){return{type:"input-sub-form",btnLabel:"",className:"inline-block m-0 h-6 bg-white ",itemClassName:"bg-white hover:bg-white m-0 p-0",icon:"fa fa-cog",form:__assign$3({title:this.props.label},this.renderForm())}},eme.prototype.renderForm=function(){var $P,tme=this.props,ame=tme.form,nme=tme.name,rme=tme.formType,ime=tme.data,ome=tme.bulk,lme=tme.defaultData,sme=tme.autoFocus;return __assign$3({type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",mode:"horizontal",horizontal:{justify:!0,left:4},autoFocus:sme,formLazyChange:!0,preventEnterSubmit:!0,submitOnChange:["pop","extend"].includes(rme),data:ime&&nme&&!ome?($P=ime[nme])!==null&&$P!==void 0?$P:lme:lme??{}},ame)},eme.prototype.renderMoreSection=function(){var $P=this.props.formType,tme=this.state,ame=tme.show,nme=tme.checked;return nme?$P==="pop"?ame?this.renderPopover():null:$P==="extend"?this.renderExtend():null:null},eme.prototype.render=function(){var $P,tme=this.props,ame=tme.render,nme=tme.disabled,rme=tme.className,ime=tme.body,ome=tme.env,lme=tme.hidden,sme=tme.formType,cme=tme.onText,dme=tme.offText;if(lme)return null;var ume=this.state;ume.show;var fme=ume.checked,pme=this.renderActions();return($P=ome==null?void 0:ome.theme)===null||$P===void 0||$P.classPrefix,React__default.createElement("div",{className:cx$1("ae-SwitchMore","ae-SwitchMore-"+sme,rme)},React__default.createElement("div",{className:cx$1("ae-SwitchMore-switch")},ime?ame("body",ime):null,pme&&pme.length?React__default.createElement("div",{className:"ae-SwitchMore-actions"},pme,fme?React__default.createElement("hr",null):null):null,React__default.createElement(Switch$1,{value:fme,onChange:this.handleSwitchChange,disabled:nme,onText:cme,offText:dme})),this.renderMoreSection())},eme.defaultProps={container:document.body,autoFocus:!0,overlay:!0,rootClose:!1,trueValue:!0,falseValue:!1,formType:"pop",bulk:!0,clearChildValuesOnOff:!0},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"overlayRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"openPopover",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"toogleExtend",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closePopover",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDelete",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitchChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSubmit",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object,Object,Boolean,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAction",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-switch-more",strictMode:!1})],eme),eme})(SwitchMore);var StatusControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state=tme.initState(),tme}return eme.prototype.initState=function(){var $P=this.props,tme=$P.data,ame=tme===void 0?{}:tme,nme=$P.noBulkChange,rme=$P.noBulkChangeData,ime=$P.expressionName,ome=$P.name,lme=$P.trueValue,sme=$P.defaultTrue,cme={statusType:1,expression:"",condition:{conjunction:"and",children:[]}},dme=ame;return nme&&rme&&(dme=rme),typeof dme[ime]=="string"&&(dme[ime]||dme[ime]==="")&&(cme.statusType=2,cme.expression=dme[ime]),typeof dme[ime]=="object"&&dme[ime]&&dme[ime].conjunction&&(cme.statusType=3,cme.condition=dme[ime]),{checked:dme[ome]==lme||typeof dme[ime]=="string"||Object.prototype.toString.call(dme[ime])==="[object Object]"||!!sme&&dme[ome]==null&&dme[ime]==null,formData:cme}},eme.prototype.shouldComponentUpdate=function($P,tme){return tme.checked!==this.state.checked},eme.prototype.handleSwitch=function($P){var tme=this,ame=this.props,nme=ame.trueValue,rme=ame.falseValue,ime=this.state.formData||{},ome=ime.condition,lme=ime.expression,sme=ime.statusType,cme=sme===void 0?1:sme;this.setState({checked:$P==nme},function(){var dme,ume=tme.props,fme=ume.onBulkChange,pme=ume.noBulkChange,hme=ume.onDataChange,bme=ume.expressionName,mme=ume.name,vme=(dme={},dme[mme]=$P==rme?rme:void 0,dme[bme]=void 0,dme);if($P==nme)switch(cme){case 1:vme[mme]=nme;break;case 2:vme[bme]=lme;break;case 3:vme[bme]=ome;break}!pme&&fme&&fme(vme),hme&&hme(vme)})},eme.prototype.handleFormSubmit=function($P){var tme,ame=this.props,nme=ame.onBulkChange,rme=ame.noBulkChange,ime=ame.onDataChange,ome=ame.name,lme=ame.expressionName,sme=(tme={},tme[ome]=void 0,tme[lme]=void 0,tme);switch(this.setState({formData:$P}),$P.statusType){case 1:sme[ome]=!0;break;case 2:sme[lme]=$P.expression;break;case 3:sme[lme]=$P.condition;break}!rme&&nme&&nme(sme),ime&&ime(sme)},eme.prototype.render=function(){var $P=this.props,tme=$P.className;$P.data;var ame=$P.trueValue,nme=$P.falseValue;$P.env;var rme=this.state.checked;return React__default.createElement("div",{className:cx$1("ae-StatusControl",tme)},React__default.createElement("header",{className:cx$1("ae-StatusControl-switch")},React__default.createElement("div",null,React__default.createElement(Switch$1,{className:"ae-BaseSwitch",size:"md",trueValue:ame,falseValue:nme,checked:rme,onChange:this.handleSwitch}))),rme?this.renderContent():null)},eme.prototype.renderContent=function(){var $P=this.props,tme=$P.render,ame=$P.label;$P.data,$P.name,$P.expressionName;var nme=$P.options;$P.children;var rme=$P.messages,ime=this.state.formData;return React__default.createElement("div",{className:"ae-StatusControl-content"},tme("status-control-form",{type:"form",title:"",panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",submitOnChange:!0,formLazyChange:!0,footerWrapClassName:"hidden",preventEnterSubmit:!0,messages:rme,mode:"horizontal",horizontal:{justify:!0,left:3},body:[{type:"select",label:i18n("69fbb2e5fc9eb3ba06096cbedbf5a622"),name:"statusType",options:nme||[{label:i18n("8baf21fa26d6d24b4faa872953275d8d"),value:1},{label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:2},{label:"自定义条件",value:3}]},getSchemaTpl("expressionFormulaControl",{evalMode:!1,label:i18n("a9400c408441f1f7f6d6954deb05ae9a"),name:"expression",placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7").concat(ame,i18n("69fbb2e5fc9eb3ba06096cbedbf5a622")),visibleOn:"this.statusType === 2"}),getSchemaTpl("conditionFormulaControl",{label:"条件设置",name:"condition",visibleOn:"this.statusType === 3"})]},{data:ime,onSubmit:this.handleFormSubmit}))},eme.defaultProps={trueValue:!0,falseValue:!1},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitch",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleFormSubmit",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-statusControl"})],eme),eme})(StatusControl);var ExpressionFormulaControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={variables:[],formulaPickerValue:""},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame=this;return __generator(this,function(nme){switch(nme.label){case 0:return this.initFormulaPickerValue(this.props.value),$P=window.editorStore,this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,this.unReaction=reaction(function(){return $P==null?void 0:$P.appLocaleState},function(){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(rme){return this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,[2]})})}),[4,getVariables(this)];case 1:return tme=nme.sent(),this.setState({variables:tme}),[2]}})})},eme.prototype.componentDidUpdate=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){return $P.value!==this.props.value&&this.initFormulaPickerValue(this.props.value),[2]})})},eme.prototype.componentWillUnmount=function(){var $P;this.isUnmount=!0,($P=this.unReaction)===null||$P===void 0||$P.call(this)},eme.prototype.initFormulaPickerValue=function($P){var tme=($P==null?void 0:$P.replace(/^\$\{([\s\S]*)\}$/,function(ame,nme){return nme}))||"";this.setState({formulaPickerValue:tme})},eme.prototype.handleConfirm=function($P){var tme,ame;$P===void 0&&($P="");var nme=/^\$\{([\s\S]*)\}$/;$P&&!nme.test($P)&&($P="${".concat($P,"}")),(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.handleClearExpression=function($P){var tme,ame;$P.stopPropagation(),$P.preventDefault(),(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onChange)===null||ame===void 0||ame.call(tme,void 0)},eme.prototype.handleOnClick=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,getVariables(this)];case 1:return ame=nme.sent(),this.setState({variables:ame}),[2,tme==null?void 0:tme($P)]}})})},eme.prototype.render=function(){var $P=this,tme,ame,nme=this.props,rme=nme.value,ime=nme.className,ome=nme.variableMode,lme=nme.header,sme=nme.size,cme=__rest$14(nme,["value","className","variableMode","header","size"]),dme=this.state,ume=dme.formulaPickerValue,fme=dme.variables,pme=isExpression(rme),hme=(ame=(tme=this.props)===null||tme===void 0?void 0:tme.data)===null||ame===void 0?void 0:ame.name;return React__default.createElement("div",{className:cx$1("ae-ExpressionFormulaControl",ime)},React__default.createElement(PickerContainer$1,{showTitle:!1,bodyRender:function(bme){var mme=bme.value,vme=bme.onChange;return React__default.createElement(FormulaEditor,__assign$3({},cme,{evalMode:!0,variableMode:ome,variables:fme,header:lme||i18n("a9400c408441f1f7f6d6954deb05ae9a"),value:mme,onChange:vme,selfVariableName:hme}))},value:ume,onConfirm:this.handleConfirm,size:sme??"lg"},function(bme){var mme=bme.onClick;return rme&&!pme?React__default.createElement(InputBox$1,{value:rme,onChange:cme.onChange}):ume?React__default.createElement(Button$1,{className:"btn-configured",tooltip:{placement:"left",tooltipTheme:"dark",mouseLeaveDelay:20,content:rme,tooltipClassName:"btn-configured-tooltip",children:function(){return React__default.createElement(CodeEditor$1,{readOnly:!0,value:typeof rme=="string"?rme.substring(2,rme.length-1):"",variables:fme,evalMode:!0,editorTheme:"dark",editorOptions:{lineNumbers:!1}})}},onClick:function(vme){return $P.handleOnClick(vme,mme)}},React__default.createElement(CodeEditor$1,{singleLine:!0,readOnly:!0,highlightMode:"expression",value:rme,variables:fme,evalMode:!1}),React__default.createElement(Icon$1,{icon:"input-clear",className:"icon",onClick:$P.handleClearExpression})):React__default.createElement(React__default.Fragment,null,React__default.createElement(Button$1,{size:"sm",className:"btn-set-expression",onClick:function(vme){return $P.handleOnClick(vme,mme)}},i18n("fbb96f7ea104d34fc4b7bd625d892c45")))}))},eme.defaultProps={variableMode:"tree",requiredDataPropsVariables:!1,evalMode:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"initFormulaPickerValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleClearExpression",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",Promise)],eme.prototype,"handleOnClick",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-expressionFormulaControl"})],eme),eme})(ExpressionFormulaControl);var PropsFieldsMapping={string:"text",number:"number",boolean:"boolean"},ConditionFormulaControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={fields:[],formulaPickerValue:""},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame=this;return __generator(this,function(nme){switch(nme.label){case 0:return this.initFormulaPickerValue(this.props.value),$P=window.editorStore,this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,this.unReaction=reaction(function(){return $P==null?void 0:$P.appLocaleState},function(){return __awaiter(ame,void 0,void 0,function(){return __generator(this,function(rme){return this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,[2]})})}),[4,this.buildFieldsData()];case 1:return tme=nme.sent(),this.setState({fields:tme}),[2]}})})},eme.prototype.componentDidUpdate=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){return $P.value!==this.props.value&&this.initFormulaPickerValue(this.props.value),[2]})})},eme.prototype.componentWillUnmount=function(){var $P;this.isUnmount=!0,($P=this.unReaction)===null||$P===void 0||$P.call(this)},eme.prototype.buildFieldsData=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime;return __generator(this,function(ome){switch(ome.label){case 0:return tme=[],ame=this.props,nme=ame.requiredDataPropsFields,rme=ame.fields,nme?[4,getConditionVariables(this)]:[3,2];case 1:ime=ome.sent(),tme=($P=flattenTree(ime,function(lme){if(PropsFieldsMapping[lme.type]){var sme={label:lme.label,type:PropsFieldsMapping[lme.type],name:lme.value};return sme}}))===null||$P===void 0?void 0:$P.filter(function(lme){return lme}),ome.label=2;case 2:return[2,tme.concat(rme||[])]}})})},eme.prototype.initFormulaPickerValue=function($P){this.setState({formulaPickerValue:$P})},eme.prototype.handleConfirm=function($P){var tme,ame;$P===void 0&&($P=""),(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.handleOnClick=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:return[4,this.buildFieldsData()];case 1:return ame=nme.sent(),this.setState({fields:ame}),[2,tme==null?void 0:tme($P)]}})})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.name,nme=tme.className,rme=tme.modalSize,ime=this.state,ome=ime.formulaPickerValue,lme=ime.fields;return React__default.createElement("div",{className:cx$1("ae-ExpressionFormulaControl",nme)},React__default.createElement(PickerContainer$1,{title:"条件设置",bodyRender:function(sme){var cme=sme.value,dme=sme.onChange,ume=render$2({type:"condition-builder",label:!1,name:ame,fields:lme},{value:cme,onChange:dme});return ume},value:ome,onConfirm:this.handleConfirm,size:rme??"lg"},function(sme){var cme=sme.onClick;return React__default.createElement(Button$1,{size:"sm",className:"btn-set-expression",onClick:function(dme){return $P.handleOnClick(dme,cme)}},"点击编写条件")}))},eme.defaultProps={requiredDataPropsFields:!0},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"buildFieldsData",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"initFormulaPickerValue",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function]),__metadata("design:returntype",Promise)],eme.prototype,"handleOnClick",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-conditionFormulaControl"})],eme),eme})(ConditionFormulaControl);var TextareaFormulaControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.wrapRef=React__default.createRef(),tme.tooltipRef=React__default.createRef(),tme.state={value:tme.props.value||"",variables:[],quickVariables:[],formulaPickerOpen:!1,formulaPickerValue:"",isFullscreen:!1,tooltipStyle:{},loading:!1,menuIsOpened:!1,quickVariablesIsOpened:!1},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:return $P=window.editorStore,this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,this.unReaction=reaction(function(){return $P==null?void 0:$P.appLocaleState},function(){return __awaiter(nme,void 0,void 0,function(){return __generator(this,function(ime){return this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,[2]})})}),this.tooltipRef.current&&this.tooltipRef.current.addEventListener("mouseleave",this.hiddenToolTip),[4,getVariables(this)];case 1:return tme=rme.sent(),[4,getQuickVariables(this)];case 2:return ame=rme.sent(),this.setState({variables:tme,quickVariables:ame}),[2]}})})},eme.prototype.componentDidUpdate=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){return this.state.value!==this.props.value&&$P.value!==this.props.value&&(this.setState({value:this.props.value},this.editorAutoMark),this.editorPlugin.setValue(this.props.value||"")),[2]})})},eme.prototype.componentWillUnmount=function(){var $P,tme;this.tooltipRef.current&&this.tooltipRef.current.removeEventListener("mouseleave",this.hiddenToolTip),($P=this.editorPlugin)===null||$P===void 0||$P.dispose(),(tme=this.unReaction)===null||tme===void 0||tme.call(this)},eme.prototype.menuRef=function($P){this.buttonTarget=$P},eme.prototype.onExpressionMouseEnter=function($P,tme,ame){var nme,rme=(nme=this.wrapRef.current)===null||nme===void 0?void 0:nme.getBoundingClientRect(),ime=$P.target.getBoundingClientRect();if(rme){var ome=ime.left-rme.left,lme=ime.top-rme.top;this.setState({tooltipStyle:{left:"".concat(ome,"px"),top:"".concat(lme,"px"),width:"".concat(ime.width,"px")},formulaPickerValue:tme,expressionBrace:ame})}},eme.prototype.hiddenToolTip=function(){this.setState({tooltipStyle:{display:"none"}})},eme.prototype.closeFormulaPicker=function(){this.setState({formulaPickerOpen:!1})},eme.prototype.handleConfirm=function($P){var tme,ame=this.props.beforeFxConfirm,nme=this.state.expressionBrace;ame&&ame(this.editorPlugin),$P=$P.replace(/^\$\{([\s\S]*)\}$/m,function(rme,ime){return ime}),$P=$P&&"${".concat($P,"}"),(tme=this.editorPlugin)===null||tme===void 0||tme.insertContent($P,"expression",nme),this.setState({formulaPickerOpen:!1,expressionBrace:void 0})},eme.prototype.handleOnChange=function($P){var tme,ame;this.setState({value:$P}),(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.editorFactory=function($P,tme){return editorFactory$1($P,tme,this.props.value)},eme.prototype.handleEditorMounted=function($P,tme){var ame=this,nme=this.state.variables||[],rme=this.state.quickVariables||[];this.editorPlugin=new FormulaPlugin(tme,{getProps:function(){return __assign$3(__assign$3({},ame.props),{variables:__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(rme),!1)})},onExpressionMouseEnter:this.onExpressionMouseEnter,customMarkText:this.props.customMarkText,onPluginInit:this.props.onPluginInit,showClearIcon:!0})},eme.prototype.handleFullscreenModeChange=function(){this.props.onOverallClick||this.setState({isFullscreen:!this.state.isFullscreen})},eme.prototype.handleFormulaEditorOpen=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:tme=this.props,ame=tme.node,nme=tme.manager,rme=tme.data,ime=($P=nme==null?void 0:nme.config)===null||$P===void 0?void 0:$P.onFormulaEditorOpen,this.setState({loading:!0}),cme.label=1;case 1:return cme.trys.push([1,5,,6]),nme&&ime&&typeof ime=="function"?[4,ime(ame,nme,rme)]:[3,4];case 2:return ome=cme.sent(),ome===!1?[3,4]:[4,getVariables(this)];case 3:lme=cme.sent(),this.setState({variables:lme}),cme.label=4;case 4:return[3,6];case 5:return sme=cme.sent(),console.error("[amis-editor][TextareaFormulaControl] onFormulaEditorOpen failed: ",sme==null?void 0:sme.stack),[3,6];case 6:return this.setState({loading:!1}),[2]}})})},eme.prototype.handleFormulaClick=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame;return __generator(this,function(nme){switch(nme.label){case 0:if(this.props.onOverallClick)return[2];nme.label=1;case 1:return nme.trys.push([1,3,,4]),[4,this.handleFormulaEditorOpen()];case 2:return nme.sent(),[3,4];case 3:return nme.sent(),[3,4];case 4:return[4,getVariables(this)];case 5:return ame=nme.sent(),this.setState({variables:ame,formulaPickerOpen:!0}),tme!=="update"&&this.setState({formulaPickerValue:"",expressionBrace:void 0}),[2]}})})},eme.prototype.editorAutoMark=function(){var $P;($P=this.editorPlugin)===null||$P===void 0||$P.autoMark()},eme.prototype.handleAddtionalMenuClick=function($P,tme){var ame;(ame=tme.onClick)===null||ame===void 0||ame.call(tme,$P,{value:this.props.value||"",setValue:this.editorPlugin.setValue,insertContent:this.editorPlugin.insertContent})},eme.prototype.closeMenuOuter=function(){this.setState({menuIsOpened:!1})},eme.prototype.closeQuickVariablesOuter=function(){this.setState({quickVariablesIsOpened:!1})},eme.prototype.renderMenuOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state.menuIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!ime,onRootClose:this.closeMenuOuter},function(ome){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),onClick:$P.closeMenuOuter,ref:ome},React__default.createElement("li",{onClick:function(){return $P.setState({quickVariablesIsOpened:!0})}},"快捷变量"),React__default.createElement("li",{onClick:$P.handleFormulaClick},"函数计算"))})))},eme.prototype.renderQuickVariablesOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state,ome=ime.quickVariables,lme=ime.quickVariablesIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!lme,onRootClose:this.closeQuickVariablesOuter},function(sme){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),ref:sme},React__default.createElement(VariableList$1,{className:nme("FormulaEditor-VariableList","FormulaEditor-VariableList-root"),data:ome,onSelect:$P.handleQuickVariableSelect,popOverContainer:ame,simplifyMemberOprs:!0}))})))},eme.prototype.handleQuickVariableSelect=function($P){var tme=this,ame=this.props.value||"",nme=ame+"${"+$P.value+"}";this.handleOnChange(nme),this.closeQuickVariablesOuter(),setTimeout(function(){tme.editorAutoMark()},100)},eme.prototype.renderButton=function(){var $P=this,tme=this.props;tme.loading;var ame=tme.quickVariables,nme=this.state,rme=nme.menuIsOpened,ime=nme.quickVariablesIsOpened;return React__default.createElement("div",{ref:this.menuRef},ame?React__default.createElement("a",{onClick:function(){return $P.setState({menuIsOpened:!0})}},React__default.createElement(Icon$1,{icon:"add",className:cx$1("ae-TplFormulaControl-icon","icon")})):React__default.createElement("a",{"data-tooltip":i18n("a9400c408441f1f7f6d6954deb05ae9a"),"data-position":"top",onClick:this.handleFormulaClick},React__default.createElement(Icon$1,{icon:"input-add-fx",className:"icon"})),rme?this.renderMenuOuter():null,ime?this.renderQuickVariablesOuter():null)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.header;tme.label;var rme=tme.placeholder,ime=tme.height,ome=tme.additionalMenus,lme=tme.onOverallClick,sme=tme.customFormulaPicker;tme.quickVariables;var cme=tme.allowFullscreen,dme=cme===void 0?!0:cme,ume=__rest$14(tme,["className","header","label","placeholder","height","additionalMenus","onOverallClick","customFormulaPicker","quickVariables","allowFullscreen"]),fme=this.state,pme=fme.formulaPickerOpen,hme=fme.formulaPickerValue,bme=fme.isFullscreen,mme=fme.variables,vme=fme.tooltipStyle,gme=fme.loading,yme=sme??FormulaPicker,_me={};ime&&(_me.height="".concat(ime,"px"));var $me=FormulaEditor.highlightValue(hme,mme)||{html:hme};return React__default.createElement("div",{className:cx$1("ae-TextareaFormulaControl",{"is-fullscreen":this.state.isFullscreen},ame),ref:this.wrapRef},React__default.createElement("div",{className:cx$1("ae-TextareaResultBox"),style:_me},React__default.createElement(CodeMirrorEditor,{className:"ae-TextareaResultBox-editor",value:this.props.value,onChange:this.handleOnChange,editorFactory:this.editorFactory,editorDidMount:this.handleEditorMounted,onBlur:this.editorAutoMark}),!this.state.value&&React__default.createElement("div",{className:"ae-TextareaResultBox-placeholder"},rme),React__default.createElement("ul",{className:"ae-TextareaResultBox-footer"},dme?React__default.createElement("li",{className:"ae-TextareaResultBox-footer-fullscreen"},React__default.createElement("a",{className:cx$1("Modal-fullscreen"),"data-tooltip":i18n(bme?"49041f245018a6d799fee3c6f177c782":"185926bf986c784d03a9a73102da6542"),"data-position":"top",onClick:this.handleFullscreenModeChange},React__default.createElement(Icon$1,{icon:bme?"compress-alt":"expand-alt",className:"icon"}))):null,React__default.createElement("li",{className:cx$1("ae-TextareaResultBox-footer-fxIcon",{"is-loading":gme})},gme?React__default.createElement(Spinner$1,{show:!0,icon:"reload",size:"sm"}):this.renderButton()),Array.isArray(ome)&&ome.length>0&&(ome==null?void 0:ome.map(function(Cme,Sme){return React__default.createElement("li",{key:Sme},Cme.icon?React__default.createElement("a",{"data-tooltip":Cme.label,"data-position":"top",onClick:function(Eme){return $P.handleAddtionalMenuClick(Eme,Cme)}},render$2({type:"icon",icon:Cme.icon,vendor:"",className:Cme.className})):React__default.createElement("a",{onClick:function(Eme){return $P.handleAddtionalMenuClick(Eme,Cme)}},Cme.label))})))),lme?React__default.createElement("div",{className:cx$1("ae-TextareaResultBox-overlay"),onClick:lme}):null,React__default.createElement(TooltipWrapper$1,{container:function(){return reactDomExports.findDOMNode($P)},trigger:"hover",placement:"top",style:{fontSize:"12px"},tooltip:{tooltipTheme:"dark",children:function(){return renderFormulaValue($me)}}},React__default.createElement("div",{className:"ae-TplFormulaControl-tooltip",style:vme,ref:this.tooltipRef,onClick:function(Cme){return $P.handleFormulaClick(Cme,"update")}})),pme?React__default.createElement(yme,__assign$3({},this.props,{value:hme,initable:!0,variables:mme,header:nme,variableMode:ume.variableMode,evalMode:!0,onClose:this.closeFormulaPicker,onConfirm:this.handleConfirm})):null)},eme.defaultProps={variableMode:"tree",requiredDataPropsVariables:!1,height:100,placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7")},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLDivElement]),__metadata("design:returntype",void 0)],eme.prototype,"menuRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String,Array]),__metadata("design:returntype",void 0)],eme.prototype,"onExpressionMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"hiddenToolTip",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeFormulaPicker",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleOnChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorFactory",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditorMounted",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleFullscreenModeChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handleFormulaEditorOpen",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",Promise)],eme.prototype,"handleFormulaClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"editorAutoMark",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddtionalMenuClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeMenuOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeQuickVariablesOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderMenuOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderQuickVariablesOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleQuickVariableSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderButton",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-textareaFormulaControl"})],eme),eme})(TextareaFormulaControl);var preInputLocation={start:0,end:0},TplFormulaControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.wrapRef=React__default.createRef(),tme.tooltipRef=React__default.createRef(),tme.state={value:"",variables:[],quickVariables:[],formulaPickerOpen:!1,formulaPickerValue:"",tooltipStyle:{display:"none"},loading:!1,menuIsOpened:!1,quickVariablesIsOpened:!1},tme}return eme.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme=this;return __generator(this,function(rme){switch(rme.label){case 0:return $P=window.editorStore,this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,this.unReaction=reaction(function(){return $P==null?void 0:$P.appLocaleState},function(){return __awaiter(nme,void 0,void 0,function(){return __generator(this,function(ime){return this.appLocale=$P==null?void 0:$P.appLocale,this.appCorpusData=$P==null?void 0:$P.appCorpusData,[2]})})}),this.tooltipRef.current&&this.tooltipRef.current.addEventListener("mouseleave",this.hiddenToolTip),this.wrapRef.current&&this.wrapRef.current.addEventListener("keydown",this.handleKeyDown,!0),[4,getVariables(this)];case 1:return tme=rme.sent(),[4,getQuickVariables(this)];case 2:return ame=rme.sent(),this.setState({variables:tme,quickVariables:ame}),[2]}})})},eme.prototype.componentWillUnmount=function(){var $P,tme;this.tooltipRef.current&&this.tooltipRef.current.removeEventListener("mouseleave",this.hiddenToolTip),this.wrapRef.current&&this.wrapRef.current.removeEventListener("keydown",this.handleKeyDown),($P=this.editorPlugin)===null||$P===void 0||$P.dispose(),(tme=this.unReaction)===null||tme===void 0||tme.call(this)},eme.prototype.menuRef=function($P){this.buttonTarget=$P},eme.prototype.onExpressionMouseEnter=function($P,tme,ame){var nme,rme=(nme=this.wrapRef.current)===null||nme===void 0?void 0:nme.getBoundingClientRect(),ime=$P.target.getBoundingClientRect();if(rme){var ome=ime.left-rme.left;this.setState({tooltipStyle:{left:"".concat(ome,"px"),width:"".concat(ime.width,"px")},formulaPickerValue:tme,expressionBrace:ame})}},eme.prototype.hiddenToolTip=function(){this.setState({tooltipStyle:{display:"none"}})},eme.prototype.handleKeyDown=function($P){$P.key==="Enter"&&($P.stopPropagation(),$P.preventDefault())},eme.prototype.closeFormulaPicker=function(){this.setState({formulaPickerOpen:!1})},eme.prototype.handleConfirm=function($P){var tme,ame=this.state.expressionBrace;$P=$P.replace(/^\$\{([\s\S]*)\}$/m,function(nme,rme){return rme}),$P=$P&&"${".concat($P,"}"),(tme=this.editorPlugin)===null||tme===void 0||tme.insertContent($P,"expression",ame),this.setState({formulaPickerOpen:!1,expressionBrace:void 0})},eme.prototype.handleOnChange=function($P){var tme,ame;this.checkOpenFormulaPicker($P),(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.checkOpenFormulaPicker=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme;return __generator(this,function(ume){switch(ume.label){case 0:if(ame=((tme=this.props.value)===null||tme===void 0?void 0:tme.length)||0,$P.length<ame||$P===this.props.value)return[2];for(nme=0,rme=0,ime=$P.length;nme<ame&&$P.charAt(nme)===this.props.value.charAt(nme);)nme++;for(;rme<ame&&$P.charAt(ime-1-rme)===this.props.value.charAt(ame-1-rme);)rme++;if((preInputLocation==null?void 0:preInputLocation.end)!==nme&&(preInputLocation=null),ome=preInputLocation?preInputLocation.start:nme,lme=nme===ime-rme?nme+1:ime-rme,sme=$P.substring(ome,lme),!/\$|\{|\}$/.test(sme))return[3,7];if(!/\$\{\}/.test(sme))return[3,5];cme=$P.slice(0,ome)+sme.replace("${}","")+$P.slice(lme),this.props.onChange(cme),ume.label=1;case 1:return ume.trys.push([1,3,,4]),[4,this.beforeFormulaEditorOpen()];case 2:return ume.sent(),[3,4];case 3:return ume.sent(),[3,4];case 4:return dme=this.editorPlugin.getCorsur(),this.setState({formulaPickerOpen:!0,formulaPickerValue:"",expressionBrace:[{line:dme==null?void 0:dme.line,ch:lme-3},{line:dme==null?void 0:dme.line,ch:lme}]}),preInputLocation=null,[3,6];case 5:preInputLocation=__assign$3(__assign$3({start:nme},preInputLocation),{end:lme}),ume.label=6;case 6:return[3,8];case 7:preInputLocation=null,ume.label=8;case 8:return[2]}})})},eme.prototype.handleClear=function(){var $P;($P=this.editorPlugin)===null||$P===void 0||$P.setValue("")},eme.prototype.beforeFormulaEditorOpen=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,lme,sme;return __generator(this,function(cme){switch(cme.label){case 0:tme=this.props,ame=tme.node,nme=tme.manager,rme=tme.data,ime=($P=nme==null?void 0:nme.config)===null||$P===void 0?void 0:$P.onFormulaEditorOpen,this.setState({loading:!0}),cme.label=1;case 1:return cme.trys.push([1,8,,9]),nme&&ime&&typeof ime=="function"?[4,ime(ame,nme,rme)]:[3,5];case 2:return ome=cme.sent(),ome===!1?[3,4]:[4,getVariables(this)];case 3:lme=cme.sent(),this.setState({variables:lme}),cme.label=4;case 4:return[3,7];case 5:return[4,getVariables(this)];case 6:lme=cme.sent(),this.setState({variables:lme}),cme.label=7;case 7:return[3,9];case 8:return sme=cme.sent(),console.error("[amis-editor] onFormulaEditorOpen failed: ",sme==null?void 0:sme.stack),[3,9];case 9:return this.setState({loading:!1}),[2]}})})},eme.prototype.handleFormulaClick=function($P,tme){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(ame){switch(ame.label){case 0:return ame.trys.push([0,2,,3]),[4,this.beforeFormulaEditorOpen()];case 1:return ame.sent(),[3,3];case 2:return ame.sent(),[3,3];case 3:return this.setState({formulaPickerOpen:!0}),tme!=="update"&&this.setState({formulaPickerValue:"",expressionBrace:void 0}),[2]}})})},eme.prototype.editorFactory=function($P,tme){return editorFactory$1($P,tme,this.props.value,{lineWrapping:!1,cursorHeight:.85})},eme.prototype.handleEditorMounted=function($P,tme){var ame=this,nme=this.state.variables,rme=this.state.quickVariables;this.editorPlugin=new FormulaPlugin(tme,{getProps:function(){return __assign$3(__assign$3({},ame.props),{variables:__spreadArray(__spreadArray([],__read$3(nme),!1),__read$3(rme),!1)})},onExpressionMouseEnter:this.onExpressionMouseEnter,showPopover:!1,showClearIcon:!0})},eme.prototype.editorAutoMark=function(){var $P;($P=this.editorPlugin)===null||$P===void 0||$P.autoMark()},eme.prototype.closeMenuOuter=function(){this.setState({menuIsOpened:!1})},eme.prototype.closeQuickVariablesOuter=function(){this.setState({quickVariablesIsOpened:!1})},eme.prototype.renderMenuOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state.menuIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!ime,onRootClose:this.closeMenuOuter},function(ome){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),onClick:$P.closeMenuOuter,ref:ome},React__default.createElement("li",{onClick:function(){return $P.setState({quickVariablesIsOpened:!0})}},"快捷变量"),React__default.createElement("li",{onClick:$P.handleFormulaClick},"函数计算"))})))},eme.prototype.renderQuickVariablesOuter=function(){var $P=this,tme=this.props,ame=tme.popOverContainer,nme=tme.classnames,rme=tme.classPrefix,ime=this.state,ome=ime.quickVariables,lme=ime.quickVariablesIsOpened;return React__default.createElement(Overlay,{container:ame||this.wrapRef.current,target:function(){return $P.wrapRef.current},placement:"right-bottom-right-top",show:!0},React__default.createElement(PopOver$1,{classPrefix:rme,className:nme("DropDown-popover")},React__default.createElement(RootClose,{disabled:!lme,onRootClose:this.closeQuickVariablesOuter},function(sme){return React__default.createElement("ul",{className:nme("DropDown-menu-root","DropDown-menu",{"is-mobile":isMobile$2()}),ref:sme},React__default.createElement(VariableList$1,{className:nme("FormulaEditor-VariableList","FormulaEditor-VariableList-root"),data:ome,onSelect:$P.handleQuickVariableSelect,popOverContainer:ame,simplifyMemberOprs:!0}))})))},eme.prototype.handleQuickVariableSelect=function($P){var tme=this,ame=this.props.value||"",nme=ame+"${"+$P.value+"}";this.handleOnChange(nme),this.closeQuickVariablesOuter(),setTimeout(function(){tme.editorAutoMark()},100)},eme.prototype.renderButton=function(){var $P=this,tme=this.props,ame=tme.loading,nme=tme.quickVariables,rme=this.state,ime=rme.menuIsOpened,ome=rme.quickVariablesIsOpened;return React__default.createElement("div",{className:"ae-TplFormulaControl-buttonWrapper",ref:this.menuRef},nme?React__default.createElement(Button$1,{className:"ae-TplFormulaControl-buttonWrapper-button",size:"sm",onClick:function(){return $P.setState({menuIsOpened:!0})}},React__default.createElement(Icon$1,{icon:"add",className:cx$1("ae-TplFormulaControl-icon","icon")})):React__default.createElement(Button$1,{className:"ae-TplFormulaControl-button",size:"sm",tooltip:{enterable:!1,content:i18n("0e69a56857c65181f96cd272d20455d6"),tooltipTheme:"dark",placement:"left",mouseLeaveDelay:0},onClick:this.handleFormulaClick,loading:ame},React__default.createElement(Icon$1,{icon:"input-add-fx",className:cx$1("ae-TplFormulaControl-icon","icon")})),ime?this.renderMenuOuter():null,ome?this.renderQuickVariablesOuter():null)},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.header;tme.label;var rme=tme.placeholder,ime=tme.customFormulaPicker,ome=tme.clearable;tme.quickVariables,tme.simplifyMemberOprs;var lme=__rest$14(tme,["className","header","label","placeholder","customFormulaPicker","clearable","quickVariables","simplifyMemberOprs"]),sme=this.state,cme=sme.formulaPickerOpen,dme=sme.formulaPickerValue,ume=sme.variables,fme=sme.tooltipStyle;sme.loading;var pme=ime??FormulaPicker,hme=FormulaEditor.highlightValue(dme,ume)||{html:dme};return React__default.createElement("div",{className:cx$1("ae-TplFormulaControl",ame,{clearable:ome}),ref:this.wrapRef},React__default.createElement("div",{className:cx$1("ae-TplResultBox")},React__default.createElement(CodeMirrorEditor,{className:"ae-TplResultBox-editor",value:this.props.value,onChange:this.handleOnChange,editorFactory:this.editorFactory,editorDidMount:this.handleEditorMounted,onBlur:this.editorAutoMark}),!this.props.value&&React__default.createElement("div",{className:"ae-TplFormulaControl-placeholder"},rme),ome&&this.props.value&&React__default.createElement(Icon$1,{icon:"input-clear",className:"input-clear-icon",iconContent:"InputText-clear",onClick:this.handleClear})),this.renderButton(),React__default.createElement(TooltipWrapper$1,{trigger:"hover",placement:"top",style:{fontSize:"12px"},tooltip:{tooltipTheme:"dark",children:function(){return renderFormulaValue(hme)}}},React__default.createElement("div",{className:"ae-TplFormulaControl-tooltip",style:fme,ref:this.tooltipRef,onClick:function(bme){return $P.handleFormulaClick(bme,"update")}})),cme?React__default.createElement(pme,__assign$3({},this.props,{value:dme,initable:!0,header:nme,variables:ume,variableMode:lme.variableMode,evalMode:!0,onClose:this.closeFormulaPicker,onConfirm:this.handleConfirm})):null)},eme.defaultProps={variableMode:"tree",requiredDataPropsVariables:!1,placeholder:i18n("02cc4f8f5a9aefbc03c778f7a5c989c7")},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLDivElement]),__metadata("design:returntype",void 0)],eme.prototype,"menuRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[MouseEvent,String,Array]),__metadata("design:returntype",void 0)],eme.prototype,"onExpressionMouseEnter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"hiddenToolTip",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleKeyDown",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeFormulaPicker",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleOnChange",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleClear",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"beforeFormulaEditorOpen",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,String]),__metadata("design:returntype",Promise)],eme.prototype,"handleFormulaClick",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[HTMLElement,Object]),__metadata("design:returntype",void 0)],eme.prototype,"editorFactory",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditorMounted",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"editorAutoMark",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeMenuOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"closeQuickVariablesOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderMenuOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderQuickVariablesOuter",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleQuickVariableSelect",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderButton",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-tplFormulaControl"})],eme),eme})(TplFormulaControl);var DefaultValue=["yesterday","7daysago","thismonth","prevmonth","prevquarter"],CertainPresetShorcut={today:i18n("800dfdd90200bd47bb4bb83def4fea56"),yesterday:i18n("2f8d6f1584b73bfc6dada44526abb502"),thisweek:i18n("0dc86a275145ad5a7774e594f0d94a06"),prevweek:i18n("79abd4ee3661ff70c7d79716c8aaed83"),thismonth:i18n("8f2a5a5f6e3777c7a0e1ce9484a2f7d7"),prevmonth:i18n("d5578d93388a5b2552316418cd1124da"),thisquarter:i18n("ffb2b7fbf227d9d21e03d0f160fb2a34"),prevquarter:i18n("dd657784cc0d5511d2f25459e49ead1a"),thisyear:i18n("d3dbc7a7fd9fc5ccd168084c8579c1ec")},ModifyPresetShorcut={$hoursago:i18n("6de215632addbb664d254e00532d92aa"),$daysago:i18n("fd312ae2f1c24b8a14d9412bb3c6bb76"),$dayslater:i18n("68cba5f27ab003cfada5eb4c1f29eb21"),$weeksago:i18n("34b06708894a178c440e6f6539e95e9e"),$weekslater:i18n("f0e1b8d8a6e731360d7348bc8301d44a"),$monthsago:i18n("5cad2778bb8f01d1a1b1226082eb2117"),$monthslater:i18n("ff76f60b3da86a0d2c6663b170a7955a"),$quartersago:i18n("9ff9b56c9ed633ee09396830e93113ad"),$quarterslater:i18n("2b80b20008b3ae81136217ae10a1fbaf"),$yearsago:i18n("84752114d27119dc50d8a7b9ac0b788b"),$yearslater:i18n("5df2352afebd73d1f568ebaa81e2db28")},OptionType;(function(x_){x_[x_.Custom=1]="Custom",x_[x_.Certain=2]="Certain",x_[x_.Modify=3]="Modify"})(OptionType||(OptionType={}));var ShortCutItemWrap=function(x_){return React__default.createElement(React__default.Fragment,null,React__default.createElement("a",{className:klass$1+"Item-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),React__default.createElement("span",{className:klass$1+"Item-content"},x_.children),React__default.createElement("span",{className:klass$1+"Item-close",onClick:function(eme){return x_.handleDelete(x_.index,eme)}},React__default.createElement(Icon$1,{icon:"status-close",className:"icon"})))},klass$1="ae-DateShortCutControl",DateShortCutControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=this,ame,nme;tme=x_.call(this,$P)||this;var rme=$P.certainOptions,ime=$P.modifyOptions,ome=$P.data;tme.certainDropDownOptions=rme.map(function(sme){return{label:CertainPresetShorcut[sme],value:sme}}),tme.modifyDropDownOptions=ime.map(function(sme){return{label:ModifyPresetShorcut[sme],value:sme}});var lme=(nme=(ame=ome==null?void 0:ome.ranges)!==null&&ame!==void 0?ame:ome==null?void 0:ome.shortcuts)!==null&&nme!==void 0?nme:DefaultValue;return lme=Array.isArray(lme)?lme:lme.split(","),tme.state={options:lme.map(function(sme){if(!sme)return null;if(typeof sme!="string"&&sme.label&&sme.startDate&&sme.endDate)return{type:OptionType.Custom,data:sme};var cme=sme.match(/^([a-zA-Z]*)(\d+)([a-zA-Z]*)$/);return cme?{data:{value:cme[2],key:"".concat(cme[1],"$").concat(cme[3])},type:OptionType.Modify}:{data:sme,type:OptionType.Certain}}).filter(Boolean)},tme}return eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.scrollToBottom=function(){var $P,tme;this.drag&&((tme=($P=this.drag)===null||$P===void 0?void 0:$P.lastElementChild)===null||tme===void 0||tme.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))},eme.prototype.initDragging=function(){var $P=this,tme=reactDomExports.findDOMNode(this);this.sortable=new Sortable(tme.querySelector(".".concat(klass$1,"-content")),{group:"OptionControlGroup",animation:150,handle:".".concat(klass$1,"Item-dragBar"),ghostClass:"".concat(klass$1,"Item-dragging"),onEnd:function(ame){if(ame.newIndex!==ame.oldIndex){var nme=ame.to;ame.oldIndex<nme.childNodes.length-1?nme.insertBefore(ame.item,nme.childNodes[ame.oldIndex>ame.newIndex?ame.oldIndex+1:ame.oldIndex]):nme.appendChild(ame.item);var rme=$P.state.options.concat();rme.splice(ame.newIndex,0,rme.splice(ame.oldIndex,1)[0]),$P.setState({options:rme},function(){return $P.onChangeOptions()})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.renderOption=function($P,tme){var ame=this,nme,rme=this.props,ime=rme.render,ome=rme.data;if($P.type===OptionType.Certain)return React__default.createElement("span",{className:klass$1+"Item-content-label"},CertainPresetShorcut[$P.data]);if($P.type===OptionType.Custom){var lme=$P==null?void 0:$P.data;return ime("inner",{type:"form",wrapWithPanel:!1,body:[{type:"input-text",mode:"normal",placeholder:i18n("a6a93b404bc039cded728683af5d625d"),name:"label"},getSchemaTpl("valueFormula",{name:"startDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:__assign$3(__assign$3({},ome),{type:"input-date"}),placeholder:i18n("592c59589144ddc68d05d528da17dcdc"),needDeleteProps:["ranges","shortcuts","maxDate","id","minDuration"],label:!1}),getSchemaTpl("valueFormula",{name:"endDate",header:i18n("98229308e2e9484583fde4ae363a979f"),DateTimeType:FormulaDateType.IsDate,rendererSchema:__assign$3(__assign$3({},ome),{type:"input-date"}),placeholder:i18n("f782779e8b5d709462c8e71e0d9019f2"),needDeleteProps:["ranges","shortcuts","maxDate","id","minDuration"],label:!1})],onChange:function(dme){ame.handleOptionChange(dme,tme)}},{data:lme})}var sme=$P.data.key,cme=((nme=ModifyPresetShorcut[sme])===null||nme===void 0?void 0:nme.split("n"))||[];return ime("inner",{type:"form",wrapWithPanel:!1,body:[{name:"value",type:"input-text",prefix:cme[0]||void 0,suffix:cme[1]||void 0,mode:"normal",placeholder:"n"}],onChange:function(dme){return ame.handleOptionChange(dme,tme)}},{data:$P.data})},eme.prototype.renderContent=function(){var $P=this,tme=this.state.options;return React__default.createElement("div",{className:klass$1+"-wrapper"},tme&&tme.length?React__default.createElement("ul",{className:klass$1+"-content",ref:this.dragRef},tme.map(function(ame,nme){return React__default.createElement("li",{className:klass$1+"Item",key:nme},React__default.createElement(ShortCutItemWrap,{index:nme,handleDelete:$P.handleDelete},$P.renderOption(ame,nme)))})):React__default.createElement("div",{className:klass$1+"-content "+klass$1+"-empty"},i18n("71dc8feb597052ecd0e73c9062eecdeb")))},eme.prototype.handleOptionChange=function($P,tme){var ame=this,nme=__spreadArray([],__read$3(this.state.options),!1);nme[tme].data=$P,this.setState({options:nme},function(){return ame.onChangeOptions()})},eme.prototype.addItem=function($P,tme){var ame=this;this.setState({options:this.state.options.concat({type:tme,data:tme===OptionType.Certain?$P.value:tme===OptionType.Modify?{key:$P.value,value:void 0}:{label:void 0,startDate:void 0,endDate:void 0}})},function(){ame.onChangeOptions(),ame.scrollToBottom()})},eme.prototype.handleDelete=function($P,tme){var ame=this,nme=this.state.options.concat();nme.splice($P,1),this.setState({options:nme},function(){return ame.onChangeOptions()})},eme.prototype.onChangeOptions=function(){var $P,tme=this.state.options,ame=this.props,nme=ame.onBulkChange,rme=ame.name,ime=[];tme.forEach(function(ome){if(ome.type===OptionType.Certain&&ime.push(ome.data),ome.type===OptionType.Modify){var lme=ome.data,sme=lme.value;/^\d+$/.test(sme)&&ime.push(lme.key.replace("$",sme))}if(ome.type===OptionType.Custom){var lme=ome.data;lme.label&&lme.startDate&&lme.endDate&&ime.push(__assign$3({},lme))}}),nme&&nme(($P={},$P[rme??"shortcuts"]=ime,$P.ranges=void 0,$P))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.label,rme=tme.render;return React__default.createElement("div",{className:cx$1(klass$1,ame)},React__default.createElement("header",{className:klass$1+"-header"},React__default.createElement("label",null,nme)),this.renderContent(),React__default.createElement("div",{className:klass$1+"-footer"},React__default.createElement("div",{className:klass$1+"-footer-btn"},rme("inner",{type:"dropdown-button",label:i18n("279d93f2d745ed08e9034022941510dc"),closeOnClick:!0,closeOnOutside:!0,level:"enhance",buttons:this.certainDropDownOptions.map(function(ime){return __assign$3(__assign$3({},ime),{type:"button",onAction:function(ome,lme){return $P.addItem(ime,OptionType.Certain)}})})},{popOverContainer:null})),React__default.createElement("div",{className:klass$1+"-footer-btn"},rme("inner",{type:"dropdown-button",label:i18n("7a1e5f93e362d371519bcb2bfdb0fc9a"),closeOnClick:!0,closeOnOutside:!0,buttons:this.modifyDropDownOptions.map(function(ime){return __assign$3(__assign$3({},ime),{type:"button",onAction:function(ome,lme){return $P.addItem(ime,OptionType.Modify)}})}).concat([{type:"button",label:i18n("0d98c74797e49d00bcc4c17c9d557a2b"),onAction:function(ime,ome){return $P.addItem({value:{label:void 0,startDate:void 0,endData:void 0}},OptionType.Custom)}}])},{popOverContainer:null}))))},eme.defaultProps={label:i18n("f7d2996639d97b4a03fc0e40e2eb853a")},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleDelete",null),eme}(React__default.PureComponent);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:klass$1,renderLabel:!1})],eme),eme})(DateShortCutControl);var BadgeControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={checked:!!isObject($P==null?void 0:$P.value)},tme}return eme.prototype.componentDidUpdate=function($P){var tme,ame,nme=this.props;anyChanged(["mode","text","size","offset","position","overflowCount","visibleOn","animation","style","level"],(tme=$P==null?void 0:$P.value)!==null&&tme!==void 0?tme:{},(ame=nme==null?void 0:nme.value)!==null&&ame!==void 0?ame:{})&&this.setState({checked:!!isObject(nme==null?void 0:nme.value)})},eme.prototype.transformBadgeValue=function(){var $P,tme,ame,nme,rme=this.props,ime=rme.data,ome=rme.node,lme=rme.name,sme=($P=ime==null?void 0:ime[lme||"badge"])!==null&&$P!==void 0?$P:{},cme=(tme=ime==null?void 0:ime.badge)===null||tme===void 0?void 0:tme.size;ome.type==="button-group-select"&&(sme=(nme=(ame=ime==null?void 0:ime.option)===null||ame===void 0?void 0:ame.badge)!==null&&nme!==void 0?nme:{},cme=sme==null?void 0:sme.size);var dme=[0,0];return Array.isArray(sme==null?void 0:sme.offset)&&(sme==null?void 0:sme.offset.length)>=2&&(dme[0]=sme.offset[0],dme[1]=sme.offset[1]),__assign$3(__assign$3({},sme),{size:cme,offset:dme})},eme.prototype.normalizeBadgeValue=function($P){var tme,ame,nme=isObject($P==null?void 0:$P.offset)&&(!((tme=$P==null?void 0:$P.offset)===null||tme===void 0)&&tme[0])&&(!((ame=$P==null?void 0:$P.offset)===null||ame===void 0)&&ame[1])?{offset:[$P.offset[0],$P.offset[1]]}:{};return __assign$3(__assign$3({},$P),nme)},eme.prototype.handleSwitchChange=function($P){var tme=this.props,ame=tme.onChange,nme=tme.disabled;nme||(this.setState({checked:$P}),ame==null||ame($P?{mode:"dot"}:void 0))},eme.prototype.handleSubmit=function($P,tme){var ame,nme=this.props,rme=nme.onBulkChange,ime=nme.name;(tme==null?void 0:tme.type)==="submit"&&(rme==null||rme((ame={},ame[ime||"badge"]=this.normalizeBadgeValue($P),ame)))},eme.prototype.renderBody=function(){var $P=this.props.render,tme=this.transformBadgeValue(),ame=getI18nEnabled();return $P("badge-form",{type:"form",className:"ae-BadgeControl-form w-full",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",preventEnterSubmit:!0,submitOnChange:!0,body:[{label:i18n("226b0912184333c81babf2f1894ec0c1"),name:"mode",type:"button-group-select",size:"sm",mode:"row",tiled:!0,className:"ae-BadgeControl-buttonGroup",inputClassName:"flex-nowrap",options:[{label:i18n("be604f8b7ec5e80288b091ee12bbab7f"),value:"dot",icon:"fa fa-circle"},{label:i18n("ca746b1ff10193a3ce20878dec04a733"),value:"text",icon:"fa fa-font"},{label:i18n("9adcfe38533f68035b2bf7831d310381"),value:"ribbon",icon:"fa fa-ribbon"}],pipeIn:defaultValue("dot")},{label:i18n("cbc608353218e1d63e6f47c9db1eae64"),name:"text",type:ame?"input-text-i18n":"input-text",mode:"row",visibleOn:"data.mode !== 'dot'",pipeOut:function(nme){return Number.isNaN(Number(nme))||nme===""?nme:Number(nme)}},{label:i18n("9970ad07468267e2f309f1467c75bb80"),name:"level",type:"button-group-select",size:"sm",mode:"row",tiled:!0,className:"ae-BadgeControl-buttonGroup",inputClassName:"flex-nowrap",options:[{label:i18n("330363dfc524cff2488f2ebde0500896"),value:"success"},{label:i18n("900c70fa5f7dbc014e6f762d5e0e885c"),value:"warning"},{label:i18n("540f84ddc0883866b229f71c2844199a"),value:"danger"},{label:i18n("d8c7e04c8e2be23dd3b81a31db6e04f1"),value:"info"}],pipeIn:defaultValue("danger")},{label:i18n("d4d2a66820d30e07b44c850eb3f116c0"),name:"position",type:"button-group-select",size:"sm",mode:"row",tiled:!0,className:"ae-BadgeControl-buttonGroup",inputClassName:"flex-nowrap",options:[{label:"",value:"top-left",icon:"fa fa-long-arrow-alt-up",className:"ae-BadgeControl-position--antiClockwise"},{label:"",value:"top-right",icon:"fa fa-long-arrow-alt-up",className:"ae-BadgeControl-position--clockwise"},{label:"",value:"bottom-left",icon:"fa fa-long-arrow-alt-down",className:"ae-BadgeControl-position--clockwise"},{label:"",value:"bottom-right",icon:"fa fa-long-arrow-alt-down",className:"ae-BadgeControl-position--antiClockwise"}],pipeIn:defaultValue("top-right")},{type:"input-group",mode:"row",inputClassName:"inline-flex justify-right flex-row-reverse",label:tipedLabel(i18n("ebc556841a9264ebaab728efad7af777"),i18n("81cdf47e8d8adfc70faac2cbc55e4067")),body:[{type:"input-number",name:"offset",suffix:"px",pipeIn:function(nme){return Array.isArray(nme)&&nme[0]||0},pipeOut:function(nme,rme,ime){return[nme,ime.offset[1]]}},{type:"input-number",name:"offset",suffix:"px",pipeIn:function(nme){return Array.isArray(nme)&&nme[1]||0},pipeOut:function(nme,rme,ime){return[ime.offset[0],nme]}}]},{label:i18n("7ba3812c61e01b3049404a46fac8deda"),name:"size",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",pipeIn:function(nme){return!!nme},pipeOut:function(nme,rme,ime){return nme?(ime==null?void 0:ime.mode)==="dot"?6:(ime==null?void 0:ime.mode)==="ribbon"?12:16:void 0}},{label:"",name:"size",type:"input-number",size:"sm",mode:"row",min:1,max:100,suffix:"px",visibleOn:"this.size",pipeIn:function(nme){return typeof nme=="number"?nme:0}},{label:tipedLabel(i18n("29e13ada94b145a1359291d5e1564655"),i18n("42becf09dfd209746b66726e7d21d014")),name:"overflowCount",type:"input-number",size:"sm",mode:"row",visibleOn:"data.mode === 'text'"},{label:i18n("b599979e9a40823363451aeaadc0723f"),name:"animation",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"}]},{data:tme,onSubmit:this.handleSubmit.bind(this)})},eme.prototype.render=function(){var $P=this.props,tme=$P.classPrefix,ame=$P.className,nme=$P.labelClassName,rme=$P.label,ime=$P.disabled,ome=this.state.checked;return React__default.createElement("div",{className:cx$1("ae-BadgeControl",ame)},React__default.createElement("div",{className:cx$1("ae-BadgeControl-switch")},React__default.createElement("label",{className:cx$1("".concat(tme,"Form-label"),nme)},rme||i18n("b8c467fce096a649583c0bc9d9281a5c")),React__default.createElement(Switch$1,{value:ome,onChange:this.handleSwitchChange,disabled:ime})),ome?this.renderBody():null)},eme.defaultProps={mode:"dot",overflowCount:99,position:"top-right",level:"danger",animation:!1},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"handleSwitchChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-badge",renderLabel:!1})],eme),eme})(BadgeControl);function BoxModel(x_){var eme=x_.value,$P=x_.onChange,tme=["left","right","top","bottom"];function ame(rme){return function(ime){var ome,lme,sme=ime.target.value;if(!sme){$P(__assign$3(__assign$3({},eme),(ome={},ome[rme]=void 0,ome)));return}(isNumeric(sme)||isAuto(sme)||/^(-?(\d*\.)?\d+)((px)|(em)|(%)|(ex)|(ch)|(rem)|(vw)|(vh)|(vmin)|(vmax)|(cm)|(mm)|(in)|(pt)|(pc))$/.test(sme))&&$P(__assign$3(__assign$3({},eme),(lme={},lme[rme]=sme,lme)))}}function nme(rme){return React__default.createElement(React__default.Fragment,null,tme.map(function(ime){var ome=camelCase$1("".concat(rme,"-").concat(ime));return React__default.createElement("input",{key:ome,placeholder:"0",className:"ae-BoxModel-input ".concat(ime),type:"text",onChange:ame(ome),value:(eme==null?void 0:eme[ome])||""})}),React__default.createElement("div",{className:"ae-BoxModel-title"},rme.toUpperCase()),["lt","lb","rt","rb"].map(function(ime){return React__default.createElement("div",{key:ime,className:cx$1("ae-BoxModel-line",ime)})}))}return React__default.createElement("div",{className:"mx-2 ae-BoxModel"},React__default.createElement("div",{className:"ae-BoxModel-inner"},React__default.createElement("div",{className:"ae-BoxModel"},React__default.createElement("div",{className:"ae-BoxModel-inner"}),nme("padding"))),nme("margin"))}observer(BoxModel);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(BoxModel,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"style-box-model"})],eme),eme})(React__default.Component);var fontFamilyList=[{label:i18n("65786fea9d354015d3a2724086f7f3d6"),value:""},{label:"Times New Roman",value:"Times New Roman"}];fontFamilyList.reduce(function(x_,eme){var $P;return __assign$3(__assign$3({},x_),($P={},$P[eme.label]=eme.value,$P))},{});fontFamilyList.reduce(function(x_,eme){var $P;return __assign$3(__assign$3({},x_),($P={},$P[eme.value]=eme.label,$P))},{});var Font=function(x_){var eme,$P,tme,ame,nme,rme=x_.value,ime=x_.onChange,ome=x_.render,lme=["color","fontFamily","fontSize","fontWeight","fontStyle","textAlign","letterSpacing","lineHeight"],sme=isObject(rme)?__assign$3(__assign$3({},pick$3(rme,lme)),{underline:~((eme=rme==null?void 0:rme.textDecoration)!==null&&eme!==void 0?eme:"").indexOf("underline")?"underline":void 0,lineThrough:~(($P=rme==null?void 0:rme.textDecoration)!==null&&$P!==void 0?$P:"").indexOf("line-through")?"line-through":void 0}):{},cme=function(dme,ume){ime==null||ime(__assign$3(__assign$3(__assign$3({},rme),mapValues$1(__assign$3(__assign$3({},pick$3(dme,lme)),{textDecoration:[dme.underline,dme.lineThrough].filter(Boolean).join(" "),letterSpacing:string2CSSUnit(dme.letterSpacing),lineHeight:string2CSSUnit(dme.lineHeight)}),function(fme){return fme||void 0})),{fontFamily:dme.fontFamily}))};return React__default.createElement(React__default.Fragment,null,ome("inner",{type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",preventEnterSubmit:!0,submitOnChange:!0,body:[{name:"fontFamily",label:i18n("6b461e0a4ffef9438fb8f01369091cac"),type:"select",mode:"row",size:"md",placeholder:i18n("2539fe0e6d40a023dd95d0bd71d10bc9"),menuTpl:'<div style="font-family: ${value};">${label}</div>',options:fontFamilyList,clearable:!1,value:(tme=rme==null?void 0:rme.fontFamily)!==null&&tme!==void 0?tme:""},{name:"color",label:i18n("690660d9dbd7312ad2825e554736e2f8"),type:"input-color",mode:"row",size:"md",value:(ame=rme==null?void 0:rme.color)!==null&&ame!==void 0?ame:""},{name:"fontSize",label:i18n("5f15efdc32badce0902c46a7a0105c51"),type:"input-range",max:100,min:12,step:1,clearable:!1,value:(nme=rme==null?void 0:rme.fontSize)!==null&&nme!==void 0?nme:12},{type:"input-group",name:"input-group",label:i18n("4c5fead0489fbc7651c91400dec5d379"),mode:"row",body:[{type:"button-group-select",name:"fontWeight",clearable:!0,label:!1,options:[{label:"",value:"bold",icon:"fa fa-bold",className:"ae-Font-group-lhs ae-Font-relative-left"}]},{type:"button-group-select",name:"fontStyle",clearable:!0,label:!1,options:[{label:"",value:"italic",icon:"fa fa-italic",className:"ae-Font-group-middle"}]},{type:"button-group-select",name:"underline",clearable:!0,label:!1,options:[{label:"",value:"underline",icon:"fa fa-underline",className:"ae-Font-group-middle ae-Font-relative-right"}]},{type:"button-group-select",name:"lineThrough",clearable:!0,label:!1,options:[{label:"",value:"line-through",icon:"fa fa-strikethrough",className:"ae-Font-group-rhs ae-Font-relative-right-2"}]}]},getSchemaTpl("layout:textAlign",{label:i18n("d1b490c01d24a1a70e9c83a29ac38fde"),mode:"row"}),{type:"group",label:i18n("4ae7f423d9ed9ffa48c3e404f96bb51f"),body:[{name:"letterSpacing",label:"",type:"input-text",addOn:{className:"ae-Font-group-lhs",label:"",type:"text",position:"left",icon:"fa fa-text-width"}},{name:"lineHeight",label:"",type:"input-text",addOn:{className:"ae-Font-group-lhs",label:"",type:"text",position:"left",icon:"fa fa-text-height"}}]}]},{data:sme,onSubmit:cme}))};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(Font,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"style-font",renderLabel:!1})],eme),eme})(React__default.Component);var borderItems=[{item:"left",tip:i18n("a80a25b59908402cf7ee31a07d0e7739"),content:"┣"},{item:"top",tip:i18n("e0dfa25ebceabddb2180720d36d4c3b6"),content:"┳"},{item:"right",tip:i18n("57463587977a534f7859eb9d7c536629"),content:"┫"},{item:"bottom",tip:i18n("154d5216e42c916884431f0eea951999"),content:"┻"},{item:"all",tip:i18n("a8b0c20416853bda54120bf19477ad11"),content:"╋"}],radiusItems=[{item:"top-left",tip:i18n("df68a5dc8f8847179b7afdf943f80796"),content:"┏"},{item:"top-right",tip:i18n("e717b4ae480e7c073fd5a44647a7f0da"),content:"┓"},{item:"bottom-left",tip:i18n("2a97dfb2d236c87c41fd588f006111dc"),content:"┗"},{item:"bottom-right",tip:i18n("1c9bc9dab33944e953412f8b22cb024a"),content:"┛"},{item:"all",tip:i18n("a8b0c20416853bda54120bf19477ad11"),content:"╋"}];function BoxBorder(x_){var eme=x_.disableBorder,$P=eme===void 0?!1:eme,tme=x_.disableRadius,ame=tme===void 0?!1:tme,nme=x_.onChange,rme=x_.value,ime=rme===void 0?{}:rme,ome=x_.render,lme=__read$3(reactExports.useState("all"),2),sme=lme[0],cme=lme[1],dme=__read$3(reactExports.useState("all"),2),ume=dme[0],fme=dme[1];function pme(vme,gme){var yme=gme==="radius"?ume:sme;return camelCase$1(yme==="all"?gme==="radius"?"".concat(vme,"-top-left-").concat(gme):"".concat(vme,"-left-").concat(gme):"".concat(vme,"-").concat(yme,"-").concat(gme))}function hme(vme,gme){return function(yme){var _me,$me=(yme==null?void 0:yme.value)||yme,Cme=pme(vme,gme),Sme=gme==="radius",Eme=Sme?ume:sme;if(Eme==="all"){var xme={},Tme=(Sme?radiusItems:borderItems).filter(function(Ome){return(Ome==null?void 0:Ome.item)!=="all"});Tme.forEach(function(Ome){var Rme=camelCase$1("".concat(vme,"-").concat(Ome.item,"-").concat(gme));xme[Rme]=$me}),nme(__assign$3(__assign$3({},ime),xme))}else nme(__assign$3(__assign$3({},ime),(_me={},_me[Cme]=$me,_me)))}}function bme(){return jsxs("div",{className:"ae-border-wrap ae-border-radius flex items-center",children:[jsx("div",{className:"ae-border-items",children:radiusItems.map(function(vme){var gme=camelCase$1("border-".concat(vme.item));return jsx("div",{className:cx$1("ae-border-item ".concat(vme.item),{active:ume===vme.item}),onClick:function(){return fme(vme.item)},children:jsx("span",{"data-tooltip":vme.tip,"data-position":"top",children:vme.content})},gme)})}),jsx("div",{className:"ae-border-settings",children:jsxs("div",{className:"flex items-center",children:[jsx("label",{children:i18n("0103eb2d3dca70270d1a74e9ec987ac9")}),jsx(NumberInput$1,{placeholder:i18n("4dbe7c40ee82a56bb7a8152d4bbc07f9"),value:ime[pme("border","radius")],step:1,min:0,onChange:hme("border","radius")})]})})]})}function mme(){return jsxs("div",{className:"ae-border-wrap flex flex-top mb-2",children:[jsx("div",{className:"ae-border-items",children:borderItems.map(function(vme){var gme=camelCase$1("border-".concat(vme.item));return jsx("div",{className:cx$1("ae-border-item ".concat(vme.item),{active:sme===vme.item}),onClick:function(){return cme(vme.item)},children:jsx("span",{"data-tooltip":vme.tip,"data-position":"top",children:vme.content})},gme)})}),jsxs("div",{className:"ae-border-settings",children:[jsxs("div",{className:"flex items-center",children:[jsx("label",{children:i18n("ce179eca04fab0d584506b0d19736836")}),jsx(EnhancedSelect,{className:"ae-border-input",placeholder:i18n("bb1531cc9643230ba0cbd7465818b52f"),onChange:hme("border","style"),value:ime[pme("border","style")],options:[{label:i18n("d81bb206a889656035b929cd8bb1ef10"),value:"none"},{label:i18n("cc4c575642609fbf059a5df81eb86bfc"),value:"solid"},{label:i18n("b1e0ebac23ed95807ecc566da3ffab48"),value:"dotted"},{label:i18n("61f6f4fc0b806ac9d41ad0792e6155f6"),value:"dashed"}]})]}),jsxs("div",{className:"flex items-center",children:[jsx("label",{children:i18n("bade10099f8447210ce7b97fa106b527")}),jsx(NumberInput$1,{placeholder:i18n("5babfafd769570de3bba47605753361a"),value:ime[pme("border","width")],step:1,min:0,onChange:hme("border","width")})]}),jsxs("div",{className:"flex items-center",children:[jsx("label",{children:i18n("6b36c6f7ec834692ec6c8e3816349fdd")}),ome("color",{type:"input-color",placeholder:i18n("9b4bae5d8251de0b6f00b704936b00d3"),clearable:!0,value:ime[pme("border","color")],inputClassName:"ae-border-colorpicker",label:!1},{onChange:hme("border","color")})]})]})]})}return jsxs("div",{className:"p-2 ae-border",children:[!$P&&mme(),!ame&&bme()]})}observer(BoxBorder);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(BoxBorder,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"style-border",renderLabel:!1})],eme),eme})(React__default.Component);function parseBoxShadow(x_){var eme=/\s(?![^(]*\))/,$P=/^[0-9]+[a-zA-Z%]+?$/,tme=function(rme){return rme==="0"||$P.test(rme)},ame=function(rme){if(!rme.endsWith("px")&&rme!=="0")return rme;var ime=parseFloat(rme);return isNaN(ime)?rme:ime},nme=function(rme){var ime=rme.split(eme),ome=ime.includes("inset"),lme=ime.slice(-1)[0],sme=tme(lme)?void 0:lme,cme=ime.filter(function(bme){return bme!=="inset"}).filter(function(bme){return bme!==sme}).map(ame),dme=__read$3(cme,4),ume=dme[0],fme=dme[1],pme=dme[2],hme=dme[3];return{inset:ome,x:ume,y:fme,blur:pme,spread:hme,color:sme}};return nme(x_)}function normalizeBoxShadow(x_){var eme=x_.x,$P=x_.y,tme=x_.blur,ame=x_.spread,nme=x_.color;x_.inset;var rme=[];if(x_!=null&&x_.inset&&rme.push("inset"),eme||$P||ame||tme){var ime=function(ome){return isNumber$5(ome==null?void 0:ome.length)&&ome.length>0?Math.round(ome==null?void 0:ome.length)+(ome==null?void 0:ome.unit):void 0};rme.push(compact$1([ime(eme),ime($P),ime(tme),ime(ame)]).join(" "))}return nme&&rme.push(nme),rme.length?{boxShadow:rme.join(" ")}:{boxShadow:void 0}}function BoxShadow(x_){var eme=x_.value,$P=eme===void 0?"":eme,tme=x_.onChange,ame=x_.render,nme=mapValues$1(parseBoxShadow(typeof $P!="string"?"":$P),function(ime,ome,lme){return ome==="color"||ome==="inset"?ime:{length:ime,unit:"px"}}),rme=function(ime,ome){tme==null||tme(normalizeBoxShadow(ime).boxShadow)};return React__default.createElement(React__default.Fragment,null,ame("inner",{type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",formLazyChange:!0,preventEnterSubmit:!0,submitOnChange:!0,body:__spreadArray(__spreadArray([],__read$3([{name:i18n("af208c560d926f0daf4b2ce2d396505d"),field:"x"},{name:i18n("b6b46126bfb0851ca10e74541c5d7be1"),field:"y"},{name:i18n("4a32b29da68a6ee204b3743e0fab8bb3"),field:"blur"},{name:i18n("22d460dcddb7fda718bc62034c459158"),field:"spread"}].map(function(ime){return{type:"combo",name:ime.field,label:ime.name,formClassName:"ae-BoxShadow-group",items:[{type:"input-range",label:!1,name:"length",max:120,min:0,step:1},{type:"select",label:!1,name:"unit",columnClassName:"ae-BoxShadow-unit",size:"xs",options:["px"]}]}})),!1),[{type:"switch",name:"inset",label:i18n("b24a723b73f96ab3340fe9502370ee13"),mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"},{type:"input-color",name:"color",label:i18n("1cbac849ccc41edb12271d9fe9b65b5f"),placeholder:i18n("e94d6fc08a97892ff9d8c8d9a8d9e0ab"),mode:"row"}],!1)},{data:nme,onSubmit:rme}))}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(BoxShadow,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"style-box-shadow"})],eme),eme})(React__default.Component);var Background=function(x_){var eme,$P=__read$3(reactExports.useState(0),2),tme=$P[0],ame=$P[1],nme=x_.noImage,rme=x_.render,ime=nme?["pure","gradient","noset"]:["pure","gradient","image","noset"];function ome(mme){return function(vme){var gme,yme,_me,$me,Cme=vme!==null&&typeof vme=="object"?typeof vme.target=="object"?vme.target.value:vme.value:vme,Sme=x_.value,Eme=x_.onChange,xme=__assign$3(__assign$3({},Sme),(gme={},gme[mme]=Cme,gme));if(mme==="alpha"&&(xme.backgroundColor=(yme=xme.backgroundColor)===null||yme===void 0?void 0:yme.replace(/,\s(1|0){1}.?[0-9]*\)$/g,", ".concat(vme/100,")"))),mme==="backgroundPosition"&&(xme.backgroundPosition=vme.target.getAttribute("data-pos")),mme==="backgroundSize"){var Tme=Cme??"",Ome=Tme.split(" ");Ome.length>1?(xme.backgroundSize=Ome[0],xme.backgroundRepeat=Ome[1]):(xme.backgroundSize=Tme,xme.backgroundRepeat="no-repeat")}if(mme==="angle"){var Rme=(_me=xme.backgroundImage)!==null&&_me!==void 0?_me:"",Nme=Rme.indexOf("linear-gradient")!==-1?Rme:"linear-gradient(180deg, transparent, transparent)";xme.backgroundImage=Nme.replace(/linear-gradient\(\d{1,3}/g,"linear-gradient(".concat(Cme))}if(mme==="gradientPrev"||mme==="gradientNext"){var Rme=($me=xme.backgroundImage)!==null&&$me!==void 0?$me:"",Nme=Rme.indexOf("linear-gradient")!==-1?Rme:"linear-gradient(180deg, transparent, transparent)",Ime=Nme.split(", "),Pme=Ime.length;if(mme==="gradientPrev"){if(Pme===3)Ime[1]=Cme;else if(Pme===5||Pme===6){for(var Mme=0,kme=0,Bme=0;Bme<Pme;Bme++)Ime[Bme].indexOf("rgb")!==-1&&(Mme=Bme),Ime[Bme].indexOf(")")!==-1&&kme===0&&(kme=Bme);kme===Pme-1?Ime.splice(1,1,Cme):Ime.splice(Mme,kme+1,Cme)}else if(Pme>=7)for(var Bme=0;Bme<Pme;Bme++){var Dme=Ime[Bme].indexOf(")");if(Dme!==-1){Ime.splice(1,Bme,Cme);break}}}if(mme==="gradientNext"){if(Pme===3)Ime[2]=Cme+")";else if(Pme===5||Pme===6){for(var Mme=0,kme=0,Bme=0;Bme<Pme;Bme++)Ime[Bme].indexOf("rgb")!==-1&&(Mme=Bme),Ime[Bme].indexOf(")")!==-1&&kme===0&&(kme=Bme);kme===Pme-1?Ime.splice(Mme,kme+1,Cme+")"):Ime.splice(-1,1,Cme+")")}else if(Pme>=7)for(var jme=0,Bme=0;Bme<Pme;Bme++){var Dme=Ime[Bme].indexOf("rgb");if(Dme!==-1&&(jme++,jme===2)){Ime.splice(Bme,Pme-Bme+1,Cme);break}}}xme.backgroundImage=Ime.join(", "),xme=pick$3(xme,"backgroundImage")}(mme==="alpha"||mme==="backgroundColor")&&(xme=pick$3(xme,"backgroundColor")),(mme==="backgroundImage"||mme==="backgroundPosition"||mme==="backgroundSize")&&(/linear-gradient/g.test(xme==null?void 0:xme.backgroundImage)?xme=pick$3(xme,"backgroundPosition","backgroundSize","backgroundRepeat"):xme=pick$3(xme,"backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat")),Eme(__assign$3(__assign$3({},omit$1(Sme,["backgroundColor","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","angle","gradientNext","gradientPrev"])),xme))}}function lme(mme){var vme,gme=(vme=x_.value)===null||vme===void 0?void 0:vme.backgroundImage,yme="",_me="";if(/linear-gradient/g.test(gme)){var $me=gme.split(", "),Cme=$me.length;if(Cme===3)yme=$me[1],_me=$me[2].slice(0,-1);else if(Cme===5||Cme===6)for(var Sme=0,Eme=0,xme=0;xme<Cme;xme++)$me[xme].indexOf("rgb")!==-1&&(Sme=xme),$me[xme].indexOf(")")!==-1&&Eme===0&&(Eme=xme,xme!==Cme-1?(yme=$me.slice(Sme,xme+1).join(", "),_me=$me.slice(xme+1).join("").slice(0,-1)):(yme=$me.slice(1,Sme).join(""),_me=$me.slice(Sme,Cme-1).join(", ")));else if(Cme>=7){for(var Tme=0,Ome=0,Rme=0,Nme=0,xme=0;xme<Cme;xme++)$me[xme].indexOf("rgb")!==-1&&(Tme===0?Tme=xme:Rme===0&&(Rme=xme)),$me[xme].indexOf(")")!==-1&&(Ome===0?Ome=xme:Nme===0&&(Nme=xme));yme=$me.slice(Tme,Ome+1).join(", "),_me=$me.slice(Rme,Nme).join(", ")}gme.split("")}var Ime=mme==="prev"?yme:_me;return Ime==="transparent"?"":Ime}function sme(){var mme,vme=(mme=x_.value)===null||mme===void 0?void 0:mme.backgroundImage,gme=180,yme=/linear-gradient\((\d{1,3})/.exec(String(vme||""));return yme&&(gme=+yme[1]),+gme}function cme(){var mme=x_.value;mme!=null&&mme.backgroundColor||mme!=null&&mme.alpha?ame(0):mme!=null&&mme.backgroundImage?/linear-gradient/g.test(mme.backgroundImage)?ame(1):ame(2):mme!=null&&mme.backgroundPosition||mme!=null&&mme.backgroundSize?ame(2):ame(ime.length-1)}function dme(){var mme,vme,gme=((mme=x_.value)===null||mme===void 0?void 0:mme.backgroundSize)||"auto",yme=(vme=x_.value)===null||vme===void 0?void 0:vme.backgroundRepeat,_me=gme||"";return gme==="auto"&&yme&&(_me=gme+" "+yme),_me}function ume(){var mme,vme,gme=(vme=(mme=x_.data)===null||mme===void 0?void 0:mme.style)===null||vme===void 0?void 0:vme.backgroundImage;return/linear-gradient/g.test(gme)?"":gme}function fme(){var mme=x_.value,vme=x_.onChange,gme=__assign$3(__assign$3({},mme),{backgroundSize:"",backgroundPosition:"",backgroundColor:"",backgroundImage:""});vme(gme)}function pme(mme,vme){vme==="noset"&&fme(),ame(mme)}function hme(mme,vme){var gme,yme,_me=x_.value,$me=x_.onChange,Cme={};if(mme==="backgroundColor")Cme=__assign$3(__assign$3({},omit$1(_me,["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","angle"])),(gme={},gme[mme]=vme,gme));else if(mme==="angle"){vme=vme||0;var Sme=_me==null?void 0:_me.backgroundImage,Eme=Sme==null?void 0:Sme.replace(/(\d{1,})?deg/,"".concat(vme,"deg"));Cme=__assign$3(__assign$3({},_me),{backgroundImage:Eme})}else Cme=__assign$3(__assign$3({},_me),(yme={},yme[mme]=vme,yme));$me(Cme)}var bme=ime[tme];return reactExports.useEffect(function(){cme()},[]),jsx("div",{className:"ae-Background",children:jsxs("div",{className:"ae-Background_tabs",children:[jsx("ul",{className:"ae-Background_tabs-nav",children:ime.map(function(mme,vme){return jsx("li",{className:cx$1(mme,{active:tme===vme}),onClick:function(){return pme(vme,mme)}},vme)})}),jsxs("div",{className:"ae-Background_tabs-content",children:[bme==="pure"&&jsx("div",{className:"ae-Background_setting",children:rme("backgroundColor",{type:"input-color",label:i18n("2f97db95d75280bfedc5afa72d2c717d"),format:"rgba",mode:"normal",value:(eme=x_.value)===null||eme===void 0?void 0:eme.backgroundColor},{onChange:function(mme){return hme("backgroundColor",mme)}})}),bme==="gradient"&&jsxs("div",{className:"ae-Background_setting",children:[jsxs("div",{className:"ae-Background_setting-item",children:[jsx("div",{className:"ae-Background_setting-item_color",children:rme("prev",{type:"input-color",label:i18n("7241f67ee4fa8e0adb5d602b5f9516df"),clearable:!1,placeholder:i18n("9f1b854df133912bb46203e84f0594ee"),inputClassName:"ae-Background-colorpicker",value:lme("prev")},{onChange:ome("gradientPrev")})}),jsx("div",{className:"ae-Background_setting-item_pic"}),jsx("div",{className:"ae-Background_setting-item_color",children:rme("next",{type:"input-color",label:i18n("8ea65e3d4e52c871d1c58b1926380ab0"),clearable:!1,placeholder:i18n("0c46a7f77a7247a9cc6d6e995c0ea8cb"),inputClassName:"ae-Background-colorpicker",value:lme("next")},{onChange:ome("gradientNext")})})]}),jsx("div",{className:"ae-Background_setting-item",children:rme("gradient",{type:"input-number",label:i18n("c7706039e8ad85969df13ce3458d199a"),mode:"row",step:10,min:0,max:360,value:sme(),description:i18n("f4882cbf65b232af449d7289354b9a16")},{onChange:function(mme){return hme("angle",mme)}})})]}),bme==="image"&&jsxs("div",{className:"ae-Background_setting",children:[rme("image",{type:"group",mode:"horizontal",body:[getSchemaTpl("backgroundImageUrl",{name:"backgroundImage",placeholder:i18n("5b9ea77bb6ce2d6c82e97b120d757201"),fixedSize:!0,value:ume(),onChange:ome("backgroundImage"),fixedSizeClassName:"ae-Background-upload",accept:".jpg,.png,.svg,.gif",crop:!0,columnRatio:6,horizontal:{left:4,right:8}}),{type:"",label:i18n("61a87a021904dc65995e99d4c476cb21"),name:"backgroundPosition",asFormItem:!0,columnRatio:6,horizontal:{left:4,right:8},children:function(){return jsx("ul",{className:"ae-Background_setting—pos",children:["0 0","50% 0","100% 0","0 50%","50% 50%","100% 50%","0 100%","50% 100%","100% 100%"].map(function(mme){var vme;return jsx("li",{"data-pos":mme,className:cx$1("ae-Background_setting—pos_item",{active:mme===((vme=x_.value)===null||vme===void 0?void 0:vme.backgroundPosition)}),onClick:ome("backgroundPosition")},mme)})})}}]}),rme("size",{type:"select",label:i18n("737391648d1216a1f84ac9ff52da5aa2"),name:"backgroundSize",mode:"horizontal",placeholder:i18n("737391648d1216a1f84ac9ff52da5aa2"),value:dme(),options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"auto"},{label:i18n("0f1fd39145bad43e18f81337e0144c8c"),value:"cover"},{label:i18n("e0d76824dfe5e09c7068b44f605266d2"),value:"contain"},{label:i18n("e39d3b7a3600d9327221a637f910fc0b"),value:"100%"},{label:i18n("e1ff2c83c09f2dc6cc74ae02ab6b8222"),value:"auto repeat"},{label:i18n("7ddd9dbf373f760acfd63778469b5c4b"),value:"auto repeat-x"},{label:i18n("4ab931e0f709f9b493e660156925a113"),value:"auto repeat-y"},{label:i18n("21f3929a4484e6e992af64ec1dd3a576"),value:"auto no-repeat"}]},{onChange:function(mme){return hme("backgroundSize",mme)}})]}),bme==="noset"&&jsx("div",{className:"ae-Background_setting noset"})]})]})})};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(Background,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"style-background"})],eme),eme})(React__default.Component);var Display=function(x_){var eme=x_.onChange,$P=x_.value,tme=x_.render,ame={type:"html",html:"<span>${label}</span><code class='ae-Code'>${value}</code>",className:"ae-selection-code"},nme=pick$3(isObject($P)?$P:{},["display","flexWrap","flexDirection","justifyContent","alignItems"]);nme.display||(nme.display="default");var rme=function(ime,ome){var lme=ime.display==="flex"?ime:mapValues$1(nme,function(sme,cme){return cme!=="display"||cme==="display"&&ime[cme]==="default"?void 0:ime[cme]});eme==null||eme(__assign$3(__assign$3({},$P),lme))};return React__default.createElement(React__default.Fragment,null,tme("inner",{type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",formLazyChange:!0,preventEnterSubmit:!0,submitOnChange:!0,body:[{label:i18n("a5d833839a610994dc4752e2d91f4192"),name:"display",type:"select",mode:"row",menuTpl:ame,options:[{label:i18n("18c63459a2c069022c7790430f761214"),value:"default"},{label:i18n("2c86d897c71cc9c2e648222a200d5bbb"),icon:"display-block",value:"block"},{label:i18n("0b0052c532b457b2d032c9f56af9e4e5"),icon:"display-inline-block",value:"inline-block"},{label:i18n("70d457cd36de1acefe7d9587f3f862c9"),icon:"display-inline",value:"inline"},{label:i18n("b5f55e5c7101d9be5218d63850e1ad8b"),icon:"display-flex",value:"flex"}]},{type:"wrapper",visibleOn:"this.display === 'flex'",className:"ae-Display-group",body:[{type:"tpl",tpl:i18n("a648bd0b9eb3c86e39cabeac484917a5"),className:"text-base font-bold mb-1"},{label:i18n("452dba7c65211630f8066b070fdf157f"),name:"flexWrap",type:"switch",trueValue:"wrap",falseValue:"nowrap",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",clearValueOnHidden:!0},{label:i18n("098d946b6f0cc85110c54cfac8691cc3"),name:"flexDirection",type:"select",clearValueOnHidden:!0,menuTpl:ame,options:[{label:i18n("aee1aeb8d65547f8a368bd7364cacf12"),value:"row",icon:"drow"},{label:i18n("4c38eb0fea71a9506fd434a7ac5cb1c2"),value:"column",icon:"dcolumn"},{label:i18n("ae07817b441091793c8af39256908373"),value:"row-reverse",icon:"drowReverse"},{label:i18n("618515fd68ecfc4a5b58462f0cb9666b"),value:"column-reverse",icon:"dcolumnReverse"}]},{label:i18n("58554717be87c1f8a6d6c769f74f0679"),type:"select",name:"justifyContent",clearValueOnHidden:!0,menuTpl:ame,options:[{label:i18n("4ba6c2256050d805ae5cd1e0e84737cf"),value:"flex-start"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("abeb360ab1e66534a041fb8b44e1a00e"),value:"flex-end"},{label:i18n("dfc71567fb75f5c73da377013a223168"),value:"space-around"},{label:i18n("eb5ec10ef70689996dd5cd66e17a64aa"),value:"space-between"},{label:i18n("ba3a7db7cc1ac5a908358f62fdbb21de"),value:"space-evenly"},{label:i18n("7ac1519928de413cfe36f5d2e0610430"),value:"stretch"}]},{label:i18n("f6cbf29fdb5e94052a22986533c7267f"),type:"select",name:"alignItems",clearValueOnHidden:!0,menuTpl:ame,options:[{label:i18n("4ba6c2256050d805ae5cd1e0e84737cf"),value:"flex-start"},{label:i18n("56c17ba6a56c01706ae00a31611deb03"),value:"center"},{label:i18n("abeb360ab1e66534a041fb8b44e1a00e"),value:"flex-end"},{label:i18n("ed97c73866617b40a7b1215867e0f489"),value:"baseline"},{label:i18n("7ac1519928de413cfe36f5d2e0610430"),value:"stretch"}]}]}]},{data:nme,onSubmit:rme}))};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(Display,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"style-display"})],eme),eme})(React__default.Component);function InsetBoxModel(x_){var eme=x_.value,$P=x_.onChange,tme=["left","right","top","bottom"];function ame(rme){return function(ime){var ome,lme,sme=ime.target.value;if(!sme){$P(__assign$3(__assign$3({},eme),(ome={},ome[rme]="",ome)));return}(isNumeric(sme)||isAuto(sme)||/^(-?(\d*\.)?\d+)((px)|(em)|(%)|(ex)|(ch)|(rem)|(vw)|(vh)|(vmin)|(vmax)|(cm)|(mm)|(in)|(pt)|(pc))$/.test(sme))&&$P(__assign$3(__assign$3({},eme),(lme={},lme[rme]=sme,lme)))}}function nme(rme){return React__default.createElement(React__default.Fragment,null,tme.map(function(ime){var ome=camelCase$1("".concat(rme,"-").concat(ime));return React__default.createElement("input",{key:ome,placeholder:"0",className:"ae-BoxModel-input ".concat(ime),type:"text",onChange:ame(ome),value:(eme==null?void 0:eme[ome])||""})}),React__default.createElement("div",{className:"ae-BoxModel-title"},rme.toUpperCase()),["lt","lb","rt","rb"].map(function(ime){return React__default.createElement("div",{key:ime,className:cx$1("ae-BoxModel-line",ime)})}))}return React__default.createElement("div",{className:"mx-2 ae-BoxModel"},React__default.createElement("div",{className:"ae-BoxModel-inner"}),nme("inset"))}observer(InsetBoxModel);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(InsetBoxModel,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"inset-box-model"})],eme),eme})(React__default.Component);function LayoutItem(x_){var eme=x_.value,$P=x_.onSelect,tme=x_.active,ame=x_.tip,nme=x_.flexDirection,rme=String(eme).split(":");return jsx(TooltipWrapper$1,{tooltip:ame,children:jsx("div",{className:cx$1("ae-FlexLayout-item",{active:tme}),style:{flex:eme,flexDirection:nme||"row"},onClick:$P,children:rme.map(function(ime,ome){return jsx("div",{className:"ae-FlexLayout-itemColumn",style:{flex:ime}},ome)})})},"TooltipWrapper")}function FlexLayouts(x_){var eme,$P=x_.onChange,tme=x_.value,ame=x_.data,nme=["1","1:1","1:2","2:1","1:3","1:1:1","1:2:1","1:1:1:1"],rme=__read$3(reactExports.useState(""),2),ime=rme[0],ome=rme[1];reactExports.useEffect(function(){if(tme){var cme=String(tme).split(":"),dme=Math.min.apply(null,cme);if(cme.every(function(fme){return+fme%dme===0})){cme=cme.map(function(fme){return String(+fme/dme)});var ume=cme.join(":");ume!==ime&&ome(cme.join(":"))}else tme!==ime&&ome(tme)}},[]);var lme=((eme=ame.style)===null||eme===void 0?void 0:eme.flexDirection)||"row";function sme(){/\d[\d:]+\d$/.test(ime)&&$P(ime)}return jsxs("div",{className:"ae-FlexLayout",children:[jsx("div",{className:"ae-FlexLayout-wrap",children:nme.map(function(cme){return jsx(LayoutItem,{value:cme,tip:"排列".concat(cme),flexDirection:lme,onSelect:function(){ome(cme),$P(cme)},active:cme===ime},cme)})}),jsxs("div",{className:"flex items-center",children:[jsx("span",{className:"mr-2 text-gray-500",children:"自定义分隔比例"}),jsx(InputBox$1,{className:"ae-FlexLayout-input",clearable:!1,value:ime,placeholder:"例如 1:3:2",onChange:function(cme){return ome(cme)},onBlur:function(){return ime&&sme()},onKeyDown:function(cme){cme.key==="Enter"&&(cme.preventDefault(),sme())}})]})]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(FlexLayouts,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"flex-layout"})],eme),eme})(React__default.Component);var PartsSourceEnum={NO_BLOCK:"NO_BLOCK",AVERAGE:"AVERAGE",STEPS:"STEPS",CUSTOM:"CUSTOM"},MarksSourceEnum={PARKS:"PARKS",CUSTOM:"CUSTOM"},PartsSourceOptions=[{label:i18n("5b4ffa2eadaf629b833b37a3e8742b2c"),value:PartsSourceEnum.NO_BLOCK},{label:i18n("3569877e498155b59ef5299870c43f80"),value:PartsSourceEnum.AVERAGE},{label:i18n("15e1fdd9d5cc4dc595fba0eee0719cba"),value:PartsSourceEnum.STEPS},{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:PartsSourceEnum.CUSTOM}],MarksSourceOptions=[{label:i18n("56d37871117270ce5d157a8de90dacd6"),value:MarksSourceEnum.PARKS},{label:i18n("f1d4ff50f3828f9b73412e7d94e6dd6e"),value:MarksSourceEnum.CUSTOM}],getPartsSource=function(x_,eme){return Array.isArray(x_)?PartsSourceEnum.CUSTOM:x_>1?PartsSourceEnum.AVERAGE:eme?PartsSourceEnum.STEPS:PartsSourceEnum.NO_BLOCK},PartsControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=$P.data,nme=ame.parts,rme=nme===void 0?1:nme,ime=ame.showSteps;return tme.state={options:tme.transformOptionValue(getPartsSource(rme),rme),source:getPartsSource(rme,ime),parts:rme},tme}return eme.prototype.transformOptionValue=function($P,tme){return $P===PartsSourceEnum.CUSTOM&&Array.isArray(tme)?tme.map(function(ame){return{number:Number(ame)}}):[]},eme.prototype.onChange=function(){var $P=this.state,tme=$P.source,ame=$P.parts,nme=$P.options,rme=this.props.onBulkChange,ime={parts:ame,showSteps:!1};switch(tme){case PartsSourceEnum.NO_BLOCK:ime.parts=1;break;case PartsSourceEnum.AVERAGE:ime.parts=ame;break;case PartsSourceEnum.STEPS:ime.parts=1,ime.showSteps=!0;break;case PartsSourceEnum.CUSTOM:ime.parts=[],nme&&nme.length&&nme.forEach(function(ome){ime.parts.push(ome.number)})}rme&&rme(ime)},eme.prototype.handleSourceChange=function($P){this.setState({source:$P},this.onChange)},eme.prototype.handleOptionsChange=function($P){$P===void 0&&($P=[]),this.setState({options:$P},this.onChange)},eme.prototype.renderHeader=function(){var $P,tme=this.props,ame=tme.env,nme=tme.render,rme=this.state.source;return($P=ame==null?void 0:ame.theme)===null||$P===void 0||$P.classPrefix,nme("header",{type:"select",name:"optionSourceList",label:i18n("6903085e7f31286560e4a2e160beac42")},{options:PartsSourceOptions,value:rme,onChange:this.handleSourceChange})},eme.prototype.renderContent=function($P){var tme=this,ame=this.props,nme=ame.classPrefix,rme=ame.render,ime=this.state,ome=ime.parts,lme=ime.options;return $P===PartsSourceEnum.AVERAGE?React__default.createElement("div",{className:cx$1("ae-ExtendMore","".concat(nme,"Form-item"),"".concat(nme,"Form-item--horizontal"),"".concat(nme,"Form-item--horizontal-justify"))},React__default.createElement("label",{className:cx$1("".concat(nme,"Form-label"),"".concat(nme,"Form-itemColumn--4"))},i18n("7145575ab9e3b4529eea61fe5fe76d0e")),React__default.createElement("div",{className:cx$1("".concat(nme,"Form-value"))},React__default.createElement(NumberInput$1,{value:ome,onChange:this.handlePartsChange}))):$P===PartsSourceEnum.CUSTOM?React__default.createElement("div",{className:"ae-OptionControl-wrapper"},rme("content",getSchemaTpl("combo-container",{type:"combo",label:!1,name:"texts",items:[{type:"input-number",name:"number",require:!0}],draggable:!1,multiple:!0,value:lme,onChange:function(sme){return tme.setState({options:sme},tme.onChange)},addButtonText:i18n("1c8737ec7da60e12207c9eb04ccabcd4")}))):React__default.createElement(React__default.Fragment,null)},eme.prototype.handlePartsChange=function($P){this.setState({parts:$P},this.onChange)},eme.prototype.render=function(){var $P=this.props.className,tme=this.state.source;return React__default.createElement("div",{className:cx$1("ae-OptionControl",$P)},this.renderHeader(),this.renderContent(tme))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"transformOptionValue",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array]),__metadata("design:returntype",void 0)],eme.prototype,"handleOptionsChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number]),__metadata("design:returntype",void 0)],eme.prototype,"handlePartsChange",null),eme}(React__default.Component),MarksControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this,ame=$P.data.marks,nme=ame===void 0?{}:ame;return tme.state={options:tme.transformOptionValue(nme),source:Object.keys(nme).length?MarksSourceEnum.CUSTOM:MarksSourceEnum.PARKS},tme}return eme.prototype.componentDidUpdate=function($P){var tme=$P.data,ame=tme.parts,nme=tme.unit,rme=tme.max,ime=tme.min,ome=tme.showSteps,lme=this.props.data,sme=lme.parts,cme=lme.unit,dme=lme.max,ume=lme.min,fme=lme.showSteps,pme=this.state.source;(ame!==sme||nme!==cme||rme!==dme||ime!==ume||ome!==fme)&&pme===MarksSourceEnum.PARKS&&this.onSynchronismParts()},eme.prototype.transformOptionValue=function($P){return Object.keys($P).map(function(tme){return{number:+tme,label:$P[tme]}})},eme.prototype.onChange=function(){var $P=this.state.options,tme=this.props.onChange,ame={};$P&&$P.length&&$P.forEach(function(nme){ame[nme.number]=nme.label||nme.number}),tme&&tme(ame)},eme.prototype.onSynchronismParts=function(){var $P=this.props.data,tme=$P.parts,ame=$P.max,nme=$P.min,rme=$P.step,ime=rme===void 0?1:rme,ome=$P.unit,lme=ome===void 0?"":ome,sme=$P.showSteps,cme=[],dme=getPartsSource(tme,sme);switch(dme){case PartsSourceEnum.AVERAGE:for(var ume=(ame-nme)/tme,fme=0;fme<=tme;fme++)cme.push({number:fme*ume+nme,label:fme*ume+nme+lme});break;case PartsSourceEnum.STEPS:for(var pme=(ame-nme)/ime,fme=0;fme<=pme;fme++)cme.push({number:fme*ime+nme,label:fme*ime+nme+lme});break;case PartsSourceEnum.CUSTOM:Array.isArray(tme)&&tme.forEach(function(hme){(hme||hme===0)&&cme.push({number:hme,label:hme+lme})});break}this.setState({options:cme},this.onChange)},eme.prototype.handleSourceChange=function($P){this.setState({source:$P}),$P===MarksSourceEnum.PARKS&&this.onSynchronismParts()},eme.prototype.renderHeader=function(){var $P=this.props.render,tme=this.state.source;return $P("header",{type:"select",name:"optionSourceList",label:i18n("dc4c91dfaa3b760147bd92e648560af4")},{options:MarksSourceOptions,value:tme,onChange:this.handleSourceChange})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.render,rme=this.state,ime=rme.source,ome=rme.options;return React__default.createElement("div",{className:cx$1("ae-OptionControl",ame)},this.renderHeader(),ime===MarksSourceEnum.CUSTOM&&nme("inner",getSchemaTpl("combo-container",{type:"combo",label:!1,name:"texts",draggable:!1,multiple:!0,items:[{type:"input-number",name:"number",required:!0},{type:"input-text",name:"label",required:!0}],addButtonText:i18n("662d8b49913650f543c024d4d02009a2"),value:ome,onChange:function(lme){$P.setState({options:lme},$P.onChange)}})))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"transformOptionValue",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onSynchronismParts",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-partsControl",renderLabel:!1})],eme),eme})(PartsControl);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-marksControl",renderLabel:!1})],eme),eme})(MarksControl);var DataBindingControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={loading:!1,hint:void 0},tme}return eme.prototype.handleConfirm=function($P){var tme,ame,nme=this.props,rme=nme.manager,ime=nme.data,ome=nme.onChange,lme=nme.onBulkChange,sme=nme.onBindingChange;$P!=null&&$P.value&&(ome($P.value),lme&&(sme==null||sme($P,lme)),(ame=(tme=rme.config)===null||tme===void 0?void 0:tme.dataBindingChange)===null||ame===void 0||ame.call(tme,$P.value,ime,rme))},eme.prototype.handlePickerOpen=function(){return __awaiter(this,void 0,void 0,function(){var $P,tme,ame,nme;return __generator(this,function(rme){switch(rme.label){case 0:$P=this.props,tme=$P.manager,ame=$P.node,this.setState({loading:!0,schema:void 0}),rme.label=1;case 1:return rme.trys.push([1,3,,4]),[4,tme.getAvailableContextFields(ame)];case 2:return nme=rme.sent(),[3,4];case 3:return rme.sent(),this.setState({loading:!1,hint:i18n("005c50d1af6e833d6991ab882653b7ae")}),[2];case 4:return this.setState({loading:!1,hint:nme?void 0:i18n("76f47297fe988267a26073a9aaf7911f"),schema:nme??void 0}),[2]}})})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className;tme.classnames;var nme=tme.value,rme=tme.onChange;tme.multiple;var ime=tme.disabled,ome=tme.render,lme=this.state,sme=lme.schema,cme=lme.loading,dme=lme.hint;return React__default.createElement(PickerContainer$1,{onPickerOpen:this.handlePickerOpen,className:ame,title:i18n("020586d0c69f8211840ddf9ee9bbf6ab"),bodyRender:function(ume){var fme,pme,hme=ume.value,bme=ume.isOpened,mme=ume.onChange;return bme?cme?React__default.createElement(Spinner$1,{show:!0,icon:"reload",spinnerClassName:"ae-DataBindingList-spinner"}):dme?React__default.createElement("p",{className:"ae-DataBindingList-hint"},dme):ome("content",sme,{onSelect:mme,value:hme&&typeof hme=="object"?(pme=(fme=hme==null?void 0:hme.selected)===null||fme===void 0?void 0:fme.value)!==null&&pme!==void 0?pme:hme==null?void 0:hme.value:nme}):null},value:nme,onConfirm:this.handleConfirm},function(ume){var fme=ume.onClick;return React__default.createElement(InputBox$1,{className:"ae-InputVariable",clearable:!1,value:nme,onChange:rme,disabled:ime},React__default.createElement("span",{onClick:function(pme){return __awaiter($P,void 0,void 0,function(){return __generator(this,function(hme){return fme(pme),[2]})})}},React__default.createElement(Icon$1,{icon:"info",className:"icon cursor-pointer"})))})},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handlePickerOpen",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-DataBindingControl"})],eme),eme})(DataBindingControl);var SimpleDataBindingControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.handleSearchDebounced=debounce$6(tme.handleSearch,250,{trailing:!0,leading:!1}),tme.state={filteredFields:$P.fields},tme}return eme.prototype.handleSearch=function($P){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(tme){return this.setState({filteredFields:matchSorter(this.props.fields,$P,{keys:["label","value","children"],threshold:matchSorter.rankings.CONTAINS})}),[2]})})},eme.prototype.handleSelect=function(){},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.value,nme=$P.onSelect,rme=$P.isSelected,ime=this.state.filteredFields;return React__default.createElement("div",{className:cx$1("ae-DataBindingList",tme)},React__default.createElement("div",{className:cx$1("ae-DataBindingList-searchBox")},React__default.createElement(SearchBox$1,{mini:!1,placeholder:i18n("91be693dd1ccea38f8f514318fd8a944"),onSearch:this.handleSearchDebounced})),React__default.createElement("div",{className:cx$1("ae-DataBindingList-body")},React__default.createElement(CollapseGroup$1,{className:cx$1("ae-DataBindingList-collapseGroup"),defaultActiveKey:ime.map(function(ome){return ome.value||ome.label}),expandIcon:React__default.createElement(Icon$1,{cx:cx$1,icon:"fa fa-chevron-right expandIcon",className:"Icon"}),expandIconPosition:"right"},ime.map(function(ome,lme){return React__default.createElement(Collapse$1$1,{className:cx$1("ae-DataBindingList-collapse"),headingClassName:cx$1("ae-DataBindingList-collapse-title"),bodyClassName:cx$1("ae-DataBindingList-collapse-body"),propKey:ome.value||ome.label,key:ome.value||ome.label,header:React__default.createElement("span",null,ome.label)},Array.isArray(ome.children)&&ome.children.length>0?ome.children.map(function(sme){var cme=rme?rme(sme):sme.value===ame;return React__default.createElement("div",{className:cx$1("ae-DataBindingList-item",{"is-active":cme}),onClick:function(){return nme(sme)},key:sme.value},sme.label)}):React__default.createElement("p",{className:cx$1("ae-DataBindingList-hint")},i18n("8517171ce4ad0e9a5b511bd6bb26f839")))}))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",Promise)],eme.prototype,"handleSearch",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSelect",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"ae-SimpleDataBindingPanel"})],eme),eme})(SimpleDataBindingControl);var DataMappingControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.renderValue=function($P,tme,ame){var nme=this.props.render;return nme("value",getSchemaTpl("DataPickerControl",{inputOnly:!0,name:"any"}),{value:$P,onChange:tme})},eme.prototype.render=function(){var $P=this.props,tme=$P.schema,ame=$P.render,nme=$P.name,rme=$P.description,ime=$P.required,ome=__rest$14($P,["schema","render","name","description","required"]);return ame("inner",{type:"json-schema",schema:tme,name:nme,description:rme,required:ime},__assign$3(__assign$3({},ome),{renderValue:this.renderValue}))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Function,Object]),__metadata("design:returntype",void 0)],eme.prototype,"renderValue",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"ae-DataMappingControl"})],eme),eme})(DataMappingControl);var DataPickerControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.handleConfirm=function($P){this.props.onChange($P)},eme.prototype.handlePickerOpen=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme;return __generator(this,function(ime){switch(ime.label){case 0:return tme=this.props,ame=tme.manager,nme=tme.node,rme=($P=this.props.variables)!==null&&$P!==void 0?$P:this.props.data.variables,rme?[3,2]:[4,ame.getContextSchemas(nme.info.id)];case 1:ime.sent(),rme=ame.dataSchema.getDataPropsAsOptions(),ime.label=2;case 2:return[2,{variables:rme.map(function(ome){return __assign$3(__assign$3({},ome),{selectMode:"tree"})}),variableMode:"tree"}]}})})},eme.prototype.render=function(){var $P=this.props;$P.classnames;var tme=$P.value,ame=$P.onChange,nme=$P.disabled;return $P.manager,$P.node,React__default.createElement(FormulaPicker$1$1,__assign$3({},this.props,{onPickerOpen:this.handlePickerOpen,evalMode:!1,onConfirm:this.handleConfirm,value:tme,onChange:function(){},header:""}),function(rme){var ime=rme.onClick;return React__default.createElement(InputBox$1,{className:"ae-InputVariable",clearable:!1,value:tme,onChange:ame,disabled:nme},React__default.createElement("span",{onClick:ime},React__default.createElement(Icon$1,{icon:"info",className:"icon"})))})},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleConfirm",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"handlePickerOpen",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-DataPickerControl",renderLabel:!1})],eme),eme})(DataPickerControl);var GoConfigControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.onClick=function(){var $P=this.props,tme=$P.data,ame=tme===void 0?{}:tme,nme=$P.compId,rme=$P.manager,ime=typeof nme=="string"?nme:nme(ame);if(!ime){toast.error(i18n("b51796f5778fdc31bac73769a85f89c7"));return}rme.setActiveId(ime)},eme.prototype.render=function(){var $P=this.props,tme=$P.className,ame=$P.label;return $P.data,React__default.createElement("div",{className:cx$1("ae-GoConfig",tme),onClick:this.onClick},ame,React__default.createElement("div",{className:cx$1("ae-GoConfig-trigger")},i18n("eee03351367bb1907dcc3140ffa3e3b8")))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"onClick",null),eme}(React__default.PureComponent);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([Renderer({type:"ae-go-config"})],eme),eme})(GoConfigControl);var klass="ae-FeatureControl",FeatureControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state=eme.initState($P.data,$P.features),tme}return eme.getDerivedStateFromProps=function($P,tme){return eme.initState($P.data,$P.features,tme.inUseFeat,tme.unUseFeat)},eme.initState=function($P,tme,ame,nme){var rme=[],ime=[];return Array.isArray(tme)||(tme=tme($P)),tme.forEach(function(ome){var lme;ome.isActive==null||!((lme=ome.isActive)===null||lme===void 0)&&lme.call(ome,$P)?rme.push(ome):ome.add&&ime.push(ome)}),{inUseFeat:rme,unUseFeat:ime}},eme.prototype.handleRemove=function($P,tme){var ame,nme=this.props,rme=nme.removeFeature,ime=nme.data,ome=nme.onBulkChange,lme=cloneDeep$1(ime),sme=this.state,cme=sme.inUseFeat,dme=sme.unUseFeat;(ame=$P.remove)===null||ame===void 0||ame.call($P,lme),rme==null||rme($P,lme),remove$1(cme,$P),$P.add&&dme.push($P),ome==null||ome(lme),this.setState({inUseFeat:cme,unUseFeat:dme})},eme.prototype.handleSort=function($P){var tme=this.props,ame=tme.data,nme=tme.onBulkChange,rme=tme.onSort,ime=cloneDeep$1(ame);rme==null||rme(ime,$P),nme==null||nme(ime)},eme.prototype.handleAdd=function($P){var tme,ame=this.props,nme=ame.addFeature,rme=ame.data,ime=ame.onBulkChange,ome=this.state,lme=ome.inUseFeat,sme=ome.unUseFeat;lme.push($P),remove$1(sme,$P);var cme=cloneDeep$1(rme);(tme=$P.add)===null||tme===void 0||tme.call($P,cme),nme==null||nme($P,cme),ime==null||ime(cme)},eme.prototype.dragRef=function($P){var tme=this.props.sortable;tme&&(!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P)},eme.prototype.initDragging=function(){var $P=this,tme=reactDomExports.findDOMNode(this);this.sortable=new Sortable(tme.querySelector(".".concat(klass,"-features")),{group:"FeatureControlGroup",animation:150,handle:".".concat(klass,"Item-dragBar"),ghostClass:"".concat(klass,"Item-dragging"),onEnd:function(ame){if(ame.newIndex!==ame.oldIndex){var nme=ame.to;ame.oldIndex<nme.childNodes.length-1?nme.insertBefore(ame.item,nme.childNodes[ame.oldIndex>ame.newIndex?ame.oldIndex+1:ame.oldIndex]):nme.appendChild(ame.item);var rme=$P.state.inUseFeat.concat();rme[ame.oldIndex]=rme.splice(ame.newIndex,1,rme[ame.oldIndex])[0],$P.setState({inUseFeat:rme},function(){$P.handleSort({oldIndex:ame.oldIndex,newIndex:ame.newIndex})})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.handleCheck=function($P,tme){var ame=this.props,nme=ame.data,rme=ame.onBulkChange,ime=ame.onItemCheck,ome=cloneDeep$1(nme);ime==null||ime($P,tme,ome),rme==null||rme(ome)},eme.prototype.renderItem=function($P,tme,ame){var nme=this,rme=this.props,ime=rme.sortable,ome=rme.goFeatureComp;rme.node;var lme=rme.manager,sme=rme.onItemCheck,cme=rme.isItemChecked,dme=rme.data,ume=null;return ome?ume=React__default.createElement(GoConfigControl,{className:cx$1("".concat(klass,"Item-go")),label:$P.label,manager:lme,compId:function(){return ome($P,tme)}}):ume=React__default.createElement("div",{className:cx$1("".concat(klass,"Item-label"))},$P.label),React__default.createElement("li",{className:klass+"Item",key:tme},ame&&sme&&React__default.createElement(Checkbox$1$1,{checked:cme($P,tme,dme),onChange:function(fme){return nme.handleCheck(fme,tme)}}),React__default.createElement("div",{className:klass+"Item-content"},ime&&React__default.createElement("a",{className:klass+"Item-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),ume),React__default.createElement(Button$1,{className:klass+"Item-action",onClick:function(){return nme.handleRemove($P,tme)}},React__default.createElement(Icon$1,{icon:"delete-btn",className:"icon"})))},eme.prototype.renderAction=function(){var $P=this,tme=this.props,ame=tme.addable,nme=tme.addText,rme=tme.render,ime=tme.customAction,ome=tme.data,lme=tme.onBulkChange,sme=tme.hideAddWhenAll;if(!ame)return null;if(ime&&typeof ime=="function"){var cme=ime({onBulkChange:lme,schema:cloneDeep$1(ome)});if(isPlainObject$b(cme)&&typeof cme.type=="string")return rme("custom-action",cme)}return sme&&!this.state.unUseFeat.length?null:rme("action",{type:"dropdown-button",closeOnClick:!0,label:i18n("b58c7549c0246c55b9cac96383200338")||nme,className:"".concat(klass,"-action"),btnClassName:"".concat(klass,"-action--btn"),menuClassName:"".concat(klass,"-action--menus"),buttons:this.state.unUseFeat.map(function(dme){return{label:dme.label,onClick:function(){return $P.handleAdd(dme)}}},{popOverContainer:null})})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.className,nme=tme.checkable,rme=tme.checkableOn,ime=tme.data,ome=!1;return nme!==void 0?ome=nme:rme&&(ome=evalExpression(rme,ime)===!0),React__default.createElement("div",{className:cx$1("ae-FeatureControl",ame)},React__default.createElement("ul",{className:cx$1("ae-FeatureControl-features"),ref:this.dragRef},this.state.inUseFeat.map(function(lme,sme){return $P.renderItem(lme,sme,ome)})),this.renderAction())},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleRemove",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleCheck",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-feature-control"})],eme),eme})(FeatureControl);var defaultOption={label:"",value:""},TreeOptionControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;tme.internalProps=["checked","editing"];var ame=__assign$3({},$P.data),nme=ame.source,rme=ame.labelField,ime=ame.valueField,ome=ame.showIconField,lme=ame.iconField;return tme.state={options:tme.transformOptions($P),api:nme,labelField:rme,valueField:ime,iconField:ome?lme:void 0,source:nme?/\$\{(.*?)\}/g.test(nme)?"variable":"api":"custom",modalVisible:!1},tme.sortables=[],tme}return eme.prototype.transformOptions=function($P){var tme=$P.value;return!tme||!Array.isArray(tme)||!tme.length?[__assign$3({},defaultOption)]:tme},eme.prototype.pretreatOptions=function($P){var tme=this;return Array.isArray($P)?$P.map(function(ame){return ame.children&&ame.children.length&&(ame.children=tme.pretreatOptions(ame.children)),ame.value=ame.value==null||ame.value===""?ame.label:ame.value,ame}):[]},eme.prototype.onChange=function(){var $P=this.state,tme=$P.source,ame=$P.api,nme=$P.labelField,rme=$P.valueField,ime=$P.iconField,ome=this.props.onBulkChange,lme={source:void 0,options:void 0,labelField:void 0,valueField:void 0,iconField:void 0};if(tme==="custom"){var sme=this.state.options.concat();lme.options=this.pretreatOptions(sme)}(tme==="api"||tme==="apicenter"||tme==="variable")&&(lme.source=ame,lme.labelField=nme||void 0,lme.valueField=rme||void 0,lme.iconField=ime),ome&&ome(lme)},eme.prototype.handleSourceChange=function($P){this.setState({api:"",source:$P},this.onChange)},eme.prototype.renderHeader=function(){var $P=this,tme,ame=this.props,nme=ame.render,rme=ame.label,ime=ame.labelRemark,ome=ame.useMobileUI,lme=ame.env,sme=ame.popOverContainer,cme=ame.hasApiCenter,dme=(tme=lme==null?void 0:lme.theme)===null||tme===void 0?void 0:tme.classPrefix,ume=this.state.source,fme=__spreadArray(__spreadArray([{label:i18n("01820262aa9ad5b130f8f5b86bfd2968"),value:"custom"},{label:i18n("f99603414a616bdee85de0e6e3938b65"),value:"api"}],__read$3(cme?[{label:i18n("e6ff6a97bf600c02942db3126a7077b8"),value:"apicenter"}]:[]),!1),[{label:i18n("50334fc77fc5a2c2636f14f158d3c417"),value:"variable"}],!1).map(function(pme){return __assign$3(__assign$3({},pme),{onClick:function(){return $P.handleSourceChange(pme.value)}})});return React__default.createElement("header",{className:"ae-TreeOptionControl-header"},React__default.createElement("label",{className:cx$1("".concat(dme,"Form-label"))},rme||"",ime?nme("label-remark",{type:"remark",icon:ime.icon||"warning-mark",tooltip:ime,className:cx$1("Form-lableRemark",ime==null?void 0:ime.className),useMobileUI:ome,container:sme||lme.getModalContainer}):null),React__default.createElement("div",null,nme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:fme},{popOverContainer:null,data:{selected:fme.find(function(pme){return pme.value===ume}).label}})))},eme.prototype.handleEditLabelOrValue=function($P,tme,ame){var nme=this,rme=cloneDeep$1(this.state.options),ime=this.getNodePath(tme).path;set$1(rme,"".concat(ime,".").concat(ame),$P),this.setState({options:rme},function(){return nme.rereshBindDrag()})},eme.prototype.handleDelete=function($P,tme){var ame=this,nme,rme,ime=cloneDeep$1(this.state.options);if(!$P.includes("-")&&ime.length===1){toast.warning(i18n("41be5ce31e28742d0b259fe734e49c28"),{closeButton:!0});return}var ome=$P.split("-");if(ome.length===1)ime.splice(tme,1);else{var lme=this.getNodePath($P).parentPath,sme=get$6(ime,lme,{});(nme=sme==null?void 0:sme.children)===null||nme===void 0||nme.splice(tme,1),((rme=sme==null?void 0:sme.children)===null||rme===void 0?void 0:rme.length)===0&&delete sme.children,set$1(ime,lme,sme)}this.setState({options:ime},function(){return ame.rereshBindDrag()})},eme.prototype.getNodePath=function($P){var tme=$P.split("-");if(tme.length===1)return{path:tme,parentPath:""};var ame="[".concat(tme.join("].children["),"]");tme=tme.slice(0,tme.length-1);var nme="[".concat(tme.join("].children["),"]");return{path:ame,parentPath:nme}},eme.prototype.addOption=function($P){var tme=this,ame,nme=cloneDeep$1(this.state.options),rme=$P.split("-");if(rme.length===1)nme.splice(+rme[0]+1,0,__assign$3({},defaultOption));else{var ime=rme[rme.length-1],ome=this.getNodePath($P).parentPath,lme=get$6(nme,ome,{});(ame=lme.children)===null||ame===void 0||ame.splice(+ime+1,0,__assign$3({},defaultOption)),set$1(nme,ome,lme)}this.setState({options:nme},function(){return tme.rereshBindDrag()})},eme.prototype.addChildOption=function($P){var tme=this;if($P.split("-").length>=6){toast.warning(i18n("9046ad86a1a47f16e954f2ec38fb680a"),{closeButton:!0});return}var ame=cloneDeep$1(this.state.options),nme=this.getNodePath($P).path,rme=get$6(ame,nme)||[];rme.children?rme.children.push(__assign$3({},defaultOption)):rme.children=[__assign$3({},defaultOption)],set$1(ame,nme,rme),this.setState({options:ame},function(){return tme.rereshBindDrag()})},eme.prototype.hideModal=function($P){this.setState({modalVisible:!1}),$P||this.setState({options:this.transformOptions(this.props)})},eme.prototype.renderOptions=function($P,tme,ame){var nme=this,rme=this.props.render,ime=getI18nEnabled(),ome=ame.join("-");if($P.children&&$P.children.length){var lme=cloneDeep$1($P);return delete lme.children,React__default.createElement("div",{className:cx$1("ae-TreeOptionControlItem-parent"),key:"parent".concat(ome).concat(tme).concat($P.label)},this.renderOptions(lme,tme,ame),React__default.createElement("div",{className:cx$1("ae-TreeOptionControlItem-son"),key:"son".concat(ome).concat(tme).concat($P.label),"data-level":ome},$P.children.map(function(sme,cme){return nme.renderOptions(sme,cme,ame.concat(cme))})))}return React__default.createElement("div",{className:"ae-TreeOptionControlItem",key:"child".concat(ome).concat(tme).concat($P.label),"data-path":ome},React__default.createElement("a",{className:"ae-TreeOptionControlItem-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),ime?render$2({type:"input-text-i18n",className:"ae-TreeOptionControlItem-input-label",value:$P.label,placeholder:i18n("f69608e93e9728f4fbef583bfa1326c1"),clearable:!1,onBlur:function(sme){nme.handleEditLabelOrValue(sme.target.value,ome,"label")},onI18nChange:function(sme){nme.handleEditLabelOrValue(sme,ome,"label")}}):React__default.createElement(InputBox$1,{className:"ae-TreeOptionControlItem-input-label",value:$P.label,placeholder:i18n("f69608e93e9728f4fbef583bfa1326c1"),clearable:!1,onBlur:function(sme){nme.handleEditLabelOrValue(sme.target.value,ome,"label")}}),React__default.createElement(InputBox$1,{className:"ae-TreeOptionControlItem-input-value",value:$P.value,placeholder:i18n("684a0d1aeca4e9acff89221b57826d4d"),clearable:!1,onBlur:function(sme){nme.handleEditLabelOrValue(sme.target.value,ome,"value")}}),React__default.createElement("div",{className:"ae-TreeOptionControlItem-btns"},rme("dropdown",{type:"dropdown-button",className:"ae-TreeOptionControlItem-dropdown fa-sm",btnClassName:"px-2",icon:"add",hideCaret:!0,closeOnClick:!0,trigger:"hover",align:"right",menuClassName:"ae-TreeOptionControlItem-ulmenu",buttons:[{type:"button",className:"ae-OptionControlItem-action",label:i18n("e8755fb1e985a5d26df0fce1f0b7b0f8"),onClick:function(){nme.addOption(ome)}},{type:"button",className:"ae-OptionControlItem-action",label:i18n("bbcbe681f9225f8adf3663f563a9f294"),onClick:function(){nme.addChildOption(ome)}}]},{popOverContainer:null}),React__default.createElement(Button$1,{size:"sm",onClick:function(){nme.handleDelete(ome,tme)}},React__default.createElement(Icon$1,{className:"icon",icon:"delete-bold-btn"}))))},eme.prototype.dragRef=function($P){!this.drag&&$P?(this.drag=$P,this.initDragging()):this.drag&&!$P&&this.destroyDragging(!0)},eme.prototype.rereshBindDrag=function(){this.drag&&(this.destroyDragging(),this.initDragging())},eme.prototype.initDragging=function(){var $P=this,tme,ame=new Sortable(this.drag,{group:"TreeOptionControlGroup",animation:150,handle:".ae-TreeOptionControlItem-dragBar",ghostClass:"ae-TreeOptionControlItem-dragging",onEnd:function(rme){var ime,ome=cloneDeep$1($P.state.options),lme=rme.oldIndex,sme=rme.newIndex;ime=__read$3([ome[lme],ome[sme]],2),ome[sme]=ime[0],ome[lme]=ime[1],$P.setState({options:ome},function(){return $P.rereshBindDrag()})},onMove:function(rme){var ime=rme.from,ome=rme.to;return ime.dataset.level===ome.dataset.level}});this.sortables.push(ame);var nme=(tme=this.drag)===null||tme===void 0?void 0:tme.querySelectorAll(".ae-TreeOptionControlItem-son");nme&&Array.from(nme).forEach(function(rme){var ime=new Sortable(rme,{group:"TreeOptionControlGroup",animation:150,handle:".ae-TreeOptionControlItem-dragBar",ghostClass:"ae-TreeOptionControlItem-dragging",onEnd:function(ome){var lme,sme=ome.item,cme=ome.oldIndex,dme=ome.newIndex,ume=cloneDeep$1($P.state.options),fme=sme.dataset.path;if(fme){var pme=$P.getNodePath(fme).parentPath,hme=get$6(ume,"".concat(pme,".children"))||[];hme&&(lme=__read$3([hme[dme],hme[cme]],2),hme[cme]=lme[0],hme[dme]=lme[1],set$1(ume,"".concat(pme,".children"),hme),$P.setState({options:ume}))}},onMove:function(ome){var lme=ome.from,sme=ome.to;return lme.dataset.level===sme.dataset.level}});$P.sortables.push(ime)})},eme.prototype.destroyDragging=function($P){this.sortables.forEach(function(tme){tme==null||tme.destroy()}),this.sortables=[],$P&&(this.drag=null)},eme.prototype.renderModal=function(){var $P=this,tme=this.state,ame=tme.modalVisible,nme=tme.options;return React__default.createElement(FinalModal,{className:"ae-TreeOptionControl-Modal",show:ame,onHide:function(){$P.hideModal()}},React__default.createElement(FinalModal.Header,{onClose:function(){$P.hideModal()}},i18n("c08dbaf90614532aed9f526e58b7fef2")),React__default.createElement(FinalModal.Body,null,React__default.createElement("div",{className:"ae-TreeOptionControl-content",ref:this.dragRef},nme.map(function(rme,ime){return $P.renderOptions(rme,ime,[ime])}))),React__default.createElement(FinalModal.Footer,null,React__default.createElement(Button$1,{onClick:function(){$P.hideModal()}},i18n("625fb26b4b3340f7872b411f401e754c")),React__default.createElement(Button$1,{level:"primary",onClick:function(){$P.onChange(),$P.hideModal(!0)}},i18n("e83a256e4f5bb4ff8b3d804b5473217a"))))},eme.prototype.handleAPIChange=function($P){this.setState({api:$P},this.onChange)},eme.prototype.handleLableFieldChange=function($P){this.setState({labelField:$P},this.onChange)},eme.prototype.handleValueFieldChange=function($P){this.setState({valueField:$P},this.onChange)},eme.prototype.handleIconFieldChange=function($P){this.setState({iconField:$P},this.onChange)},eme.prototype.renderApiPanel=function(){var $P=this.props,tme=$P.render,ame=$P.showIconField,nme=ame===void 0?!1:ame,rme=this.state,ime=rme.source,ome=rme.api,lme=rme.labelField,sme=rme.valueField,cme=rme.iconField;return tme("api",getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",className:"ae-ExtendMore",visibleOn:"this.autoComplete !== false",value:ome,onChange:this.handleAPIChange,sourceType:ime,footer:[{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("26ff46d82166741297ce666b2792af85")),type:"input-text",name:"labelField",value:lme,placeholder:i18n("6d4ce0631f37676a887c9599691fabec"),onChange:this.handleLableFieldChange},{label:i18n("2e01f5f5889e33d003bec7857cd38445"),type:"input-text",name:"valueField",value:sme,placeholder:i18n("959c27193eb0a41d01f4b53dcc4b9245"),onChange:this.handleValueFieldChange},{type:"input-text",label:i18n("1cd9e1bb335cb0643d9e310dd4edd830"),name:"iconField",value:cme,placeholder:i18n("152b66069787294e53cfc176a189c81f"),visible:nme,onChange:this.handleIconFieldChange}]}))},eme.prototype.render=function(){var $P=this,tme=this.state.source,ame=this.props,nme=ame.className,rme=ame.render;return React__default.createElement("div",{className:cx$1("ae-TreeOptionControl",nme)},this.renderHeader(),tme==="custom"?React__default.createElement("div",{className:"ae-TreeOptionControl-wrapper"},React__default.createElement("div",null,React__default.createElement(Button$1,{block:!0,onClick:function(){$P.setState({modalVisible:!0})}},i18n("c08dbaf90614532aed9f526e58b7fef2")),this.renderModal())):null,tme==="api"||tme==="apicenter"?this.renderApiPanel():null,tme==="variable"?rme("variable",getSchemaTpl("sourceBindControl",{label:!1,className:"ae-ExtendMore"}),{onChange:this.handleAPIChange}):null)},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleSourceChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Number]),__metadata("design:returntype",void 0)],eme.prototype,"handleDelete",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"getNodePath",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"addOption",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"addChildOption",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"hideModal",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number,Array]),__metadata("design:returntype",Object)],eme.prototype,"renderOptions",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",void 0)],eme.prototype,"destroyDragging",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"renderModal",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAPIChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleLableFieldChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String,Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleValueFieldChange",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleIconFieldChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-treeOptionControl",renderLabel:!1})],eme),eme})(TreeOptionControl);function BaseOptionControl(x_){return function(eme){__extends$2($P,eme);function $P(tme){var ame=eme.call(this,tme)||this;return ame.internalProps=["checked","editing"],ame.state={api:tme.data.source,labelField:tme.data.labelField,valueField:tme.data.valueField,source:tme.data.source?/\$\{(.*?)\}/g.test(tme.data.source)?"variable":"api":"custom"},ame.handleSourceChange=ame.handleSourceChange.bind(ame),ame.handleAPIChange=ame.handleAPIChange.bind(ame),ame.handleLableFieldChange=ame.handleLableFieldChange.bind(ame),ame.handleValueFieldChange=ame.handleValueFieldChange.bind(ame),ame.onChange=ame.onChange.bind(ame),ame}return $P.prototype.onChange=function(){var tme=this.state.source,ame=this.props.onBulkChange,nme={source:void 0,options:void 0,labelField:void 0,valueField:void 0};if(["api","variable"].includes(tme)){var rme=this.state,ime=rme.api,ome=rme.labelField,lme=rme.valueField;nme.source=ime,nme.labelField=ome||void 0,nme.valueField=lme||void 0}ame&&ame(nme)},$P.prototype.handleSourceChange=function(tme){this.setState({api:"",source:tme},this.onChange)},$P.prototype.handleAPIChange=function(tme){this.setState({api:tme},this.onChange)},$P.prototype.handleLableFieldChange=function(tme){this.setState({labelField:tme},this.onChange)},$P.prototype.handleValueFieldChange=function(tme){this.setState({valueField:tme},this.onChange)},$P.prototype.buildBatchAddSchema=function(){return{type:"action",actionType:"dialog",label:i18n("22de6ef85ed60ec54dbdc1d8583e5104"),dialog:{title:i18n("421252e16c6cb544fe9ce0be94a190e0"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"alert",level:"warning",body:[{type:"tpl",tpl:i18n("c130bd5b55edefdaf8923269e9a52439")}],showIcon:!0,className:"mb-2.5"},{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{left:0,right:12},body:[{name:"batchOption",type:"textarea",label:"",placeholder:i18n("1e2f96a69fbef8caa8823a3067ebbdc7"),trimContents:!0,minRows:10,maxRows:50,required:!0}]}]}}},$P.prototype.renderHeader=function(){var tme=this,ame,nme=this.props,rme=nme.render,ime=nme.label,ome=nme.labelRemark,lme=nme.useMobileUI,sme=nme.env,cme=nme.popOverContainer,dme=(ame=sme==null?void 0:sme.theme)===null||ame===void 0?void 0:ame.classPrefix,ume=this.state.source,fme=[{label:i18n("01820262aa9ad5b130f8f5b86bfd2968"),value:"custom"},{label:i18n("c8158b3cad598b0b5939788ca4efb298"),value:"api"},{label:i18n("50334fc77fc5a2c2636f14f158d3c417"),value:"variable"}].map(function(pme){return __assign$3(__assign$3({},pme),{onClick:function(){return tme.handleSourceChange(pme.value)}})});return React__default.createElement("header",{className:"ae-OptionControl-header"},React__default.createElement("label",{className:cx$1("".concat(dme,"Form-label"))},ime||"",ome?rme("label-remark",{type:"remark",icon:ome.icon||"warning-mark",tooltip:ome,className:cx$1("Form-lableRemark",ome==null?void 0:ome.className),useMobileUI:lme,container:cme||sme.getModalContainer}):null),React__default.createElement("div",null,rme("validation-control-addBtn",{type:"dropdown-button",level:"link",size:"sm",label:"${selected}",align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:fme},{popOverContainer:null,data:{selected:fme.find(function(pme){return pme.value===ume}).label}})))},$P.prototype.renderApiPanel=function(){var tme=this.props.render,ame=this.state,nme=ame.source,rme=ame.api,ime=ame.labelField,ome=ame.valueField;return nme!=="api"?null:tme("api",getSchemaTpl("apiControl",{label:i18n("54ea89b497ec3bb319c68844dfa3687f"),name:"source",className:"ae-ExtendMore",visibleOn:"this.autoComplete !== false",value:rme,onChange:this.handleAPIChange,footer:[{label:tipedLabel(i18n("7e9c83e86beb612377a94e6e8d1fc644"),i18n("26ff46d82166741297ce666b2792af85")),type:"input-text",name:"labelField",value:ime,placeholder:i18n("6d4ce0631f37676a887c9599691fabec"),onChange:this.handleLableFieldChange},{label:i18n("2e01f5f5889e33d003bec7857cd38445"),type:"input-text",name:"valueField",value:ome,placeholder:i18n("959c27193eb0a41d01f4b53dcc4b9245"),onChange:this.handleValueFieldChange}]}))},$P.prototype.render=function(){var tme,ame=this.state,nme=ame.source,rme=ame.api,ime=ame.labelField,ome=ame.valueField,lme=this.props,sme=lme.className,cme=lme.render,dme=__assign$3(__assign$3({},this.props),{data:__assign$3({api:rme,labelField:ime,valueField:ome},(tme=this.props)===null||tme===void 0?void 0:tme.data)});return React__default.createElement("div",{className:cx$1("ae-OptionControl",sme)},this.renderHeader(),nme==="custom"?React__default.createElement(x_,__assign$3({},dme)):null,nme==="api"?this.renderApiPanel():null,nme==="variable"?cme("variable",getSchemaTpl("sourceBindControl",{label:!1,className:"ae-ExtendMore"}),{onChange:this.handleAPIChange}):null)},$P}(React__default.Component)}var renderInput=function(x_,eme,$P,tme){return $P===void 0&&($P=!0),tme===void 0&&(tme=!1),{type:"input-text",name:x_,placeholder:eme,required:$P,unique:tme}},TransferTableOption=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.addColumns=function(){var $P=this,tme=this.props.data.columns,ame=tme===void 0?[{type:"text"}]:tme;return{type:"action",actionType:"dialog",label:"设置表格列",level:"enhance",dialog:{title:i18n("ec159d98c6c25fadd38bcd9362f6a28e"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,onConfirm:function(){for(var nme=[],rme=0;rme<arguments.length;rme++)nme[rme]=arguments[rme];return $P.handleChange(nme[2].columns,"columns")},body:[{name:"columns",type:"combo",multiple:!0,label:!1,strictMode:!1,addButtonText:i18n("0c14e431f1b5ecd163f8fa010a0654c7"),draggable:!1,value:ame,items:[{type:"input-text",name:"label",placeholder:i18n("32c65d8d7431e76029678ec7bb73a5ab"),required:!0},{type:"input-text",name:"name",placeholder:i18n("41a344642681efaaa418c228ba7fb45c"),required:!0},{type:"select",name:"type",placeholder:i18n("226b0912184333c81babf2f1894ec0c1"),value:"text",options:[{value:"text",label:i18n("ffb01e5bcf4c00447f5150d3cba81371")},{value:"tpl",label:i18n("59cf15fe6b8d659c9bd2f86143534a06")},{value:"image",label:i18n("20def7942674282277c3714ed7ea6ce0")},{value:"date",label:i18n("4ff1e74e43a3586339251494117185ad")},{value:"progress",label:i18n("c7bff79d059a0b7ff9b02441959d8be2")},{value:"status",label:i18n("3fea7ca76cdece641436d7ab0d02ab1b")},{value:"mapping",label:i18n("9da188491dd34c4382a5b9f006194e41")},{value:"operation",label:i18n("8abc564260a1564521e0c3a1d5419b4a")}]}]}]}}},eme.prototype.addRows=function(){var $P=this,tme=this.props.data,ame=tme.columns,nme=ame===void 0?[]:ame,rme=tme.options,ime=rme===void 0?[{}]:rme;return{type:"tooltip-wrapper",tooltip:i18n("f302b37cf6530d3fb39234a220d95437"),tooltipTheme:"dark",placement:"top",tooltipStyle:{fontSize:"12px"},className:"ae-formItemControl-label-tip",body:[{type:"action",actionType:"dialog",label:"设置表格行",level:"enhance",disabled:nme&&nme.length===0,block:!0,dialog:{title:i18n("e6a10b831ae920bba1bb89a725e0fbe8"),headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,size:nme.length>=6?"md":"",onConfirm:function(){for(var ome=[],lme=0;lme<arguments.length;lme++)ome[lme]=arguments[lme];return $P.handleChange(ome[2].options,"options")},body:[{type:"form",wrapWithPanel:!1,mode:"normal",body:[{name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:i18n("66ab5e9f24c8f46012a25c89919fb191"),value:ime,items:__spreadArray(__spreadArray([],__read$3(nme.map(function(ome){var lme;return renderInput(ome.name,(lme=ome.label)!==null&&lme!==void 0?lme:"",!1)})),!1),[renderInput("value",i18n("fe7509e0ed085b86f07e3e9975cc5b3d"),!0,!0)],!1)}]}]}}]}},eme.prototype.handleChange=function($P,tme){var ame,nme=this.props.data,rme=this.props,ime=rme.onBulkChange,ome=rme.onValueChange;if(nme[tme]=$P,tme==="columns"){var lme=$P.map(function(sme){return sme.name});nme.options=((ame=nme.options)!==null&&ame!==void 0?ame:[]).map(function(sme){return __assign$3({},lme.reduce(function(cme,dme){return cme[dme]=sme[dme],cme},{value:sme.value}))})}ome&&ome(tme,nme,ime)},eme.prototype.render=function(){return React__default.createElement("div",{className:"ae-OptionControl-footer"},render$2(this.addColumns()),render$2(this.addRows()))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Array,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleChange",null),eme}(React__default.Component),TransferTableControl=BaseOptionControl(TransferTableOption);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-transferTableControl",strictMode:!1,renderLabel:!1})],eme),eme})(TransferTableControl);var index_min={};(function(x_){var eme={};(()=>{var $P={241:ime=>{var ome=String,lme=function(){return{isColorSupported:!1,reset:ome,bold:ome,dim:ome,italic:ome,underline:ome,inverse:ome,hidden:ome,strikethrough:ome,black:ome,red:ome,green:ome,yellow:ome,blue:ome,magenta:ome,cyan:ome,white:ome,gray:ome,bgBlack:ome,bgRed:ome,bgGreen:ome,bgYellow:ome,bgBlue:ome,bgMagenta:ome,bgCyan:ome,bgWhite:ome}};ime.exports=lme(),ime.exports.createColors=lme},353:(ime,ome,lme)=>{let sme=lme(19);class cme extends sme{constructor(ume){super(ume),this.type="atrule"}append(...ume){return this.proxyOf.nodes||(this.nodes=[]),super.append(...ume)}prepend(...ume){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...ume)}}ime.exports=cme,cme.default=cme,sme.registerAtRule(cme)},932:(ime,ome,lme)=>{let sme=lme(631);class cme extends sme{constructor(ume){super(ume),this.type="comment"}}ime.exports=cme,cme.default=cme},19:(ime,ome,lme)=>{let sme,cme,dme,ume,{isClean:fme,my:pme}=lme(513),hme=lme(258),bme=lme(932),mme=lme(631);function vme(_me){return _me.map($me=>($me.nodes&&($me.nodes=vme($me.nodes)),delete $me.source,$me))}function gme(_me){if(_me[fme]=!1,_me.proxyOf.nodes)for(let $me of _me.proxyOf.nodes)gme($me)}class yme extends mme{push($me){return $me.parent=this,this.proxyOf.nodes.push($me),this}each($me){if(!this.proxyOf.nodes)return;let Cme,Sme,Eme=this.getIterator();for(;this.indexes[Eme]<this.proxyOf.nodes.length&&(Cme=this.indexes[Eme],Sme=$me(this.proxyOf.nodes[Cme],Cme),Sme!==!1);)this.indexes[Eme]+=1;return delete this.indexes[Eme],Sme}walk($me){return this.each((Cme,Sme)=>{let Eme;try{Eme=$me(Cme,Sme)}catch(xme){throw Cme.addToError(xme)}return Eme!==!1&&Cme.walk&&(Eme=Cme.walk($me)),Eme})}walkDecls($me,Cme){return Cme?$me instanceof RegExp?this.walk((Sme,Eme)=>{if(Sme.type==="decl"&&$me.test(Sme.prop))return Cme(Sme,Eme)}):this.walk((Sme,Eme)=>{if(Sme.type==="decl"&&Sme.prop===$me)return Cme(Sme,Eme)}):(Cme=$me,this.walk((Sme,Eme)=>{if(Sme.type==="decl")return Cme(Sme,Eme)}))}walkRules($me,Cme){return Cme?$me instanceof RegExp?this.walk((Sme,Eme)=>{if(Sme.type==="rule"&&$me.test(Sme.selector))return Cme(Sme,Eme)}):this.walk((Sme,Eme)=>{if(Sme.type==="rule"&&Sme.selector===$me)return Cme(Sme,Eme)}):(Cme=$me,this.walk((Sme,Eme)=>{if(Sme.type==="rule")return Cme(Sme,Eme)}))}walkAtRules($me,Cme){return Cme?$me instanceof RegExp?this.walk((Sme,Eme)=>{if(Sme.type==="atrule"&&$me.test(Sme.name))return Cme(Sme,Eme)}):this.walk((Sme,Eme)=>{if(Sme.type==="atrule"&&Sme.name===$me)return Cme(Sme,Eme)}):(Cme=$me,this.walk((Sme,Eme)=>{if(Sme.type==="atrule")return Cme(Sme,Eme)}))}walkComments($me){return this.walk((Cme,Sme)=>{if(Cme.type==="comment")return $me(Cme,Sme)})}append(...$me){for(let Cme of $me){let Sme=this.normalize(Cme,this.last);for(let Eme of Sme)this.proxyOf.nodes.push(Eme)}return this.markDirty(),this}prepend(...$me){$me=$me.reverse();for(let Cme of $me){let Sme=this.normalize(Cme,this.first,"prepend").reverse();for(let Eme of Sme)this.proxyOf.nodes.unshift(Eme);for(let Eme in this.indexes)this.indexes[Eme]=this.indexes[Eme]+Sme.length}return this.markDirty(),this}cleanRaws($me){if(super.cleanRaws($me),this.nodes)for(let Cme of this.nodes)Cme.cleanRaws($me)}insertBefore($me,Cme){let Sme,Eme=this.index($me),xme=Eme===0&&"prepend",Tme=this.normalize(Cme,this.proxyOf.nodes[Eme],xme).reverse();Eme=this.index($me);for(let Ome of Tme)this.proxyOf.nodes.splice(Eme,0,Ome);for(let Ome in this.indexes)Sme=this.indexes[Ome],Eme<=Sme&&(this.indexes[Ome]=Sme+Tme.length);return this.markDirty(),this}insertAfter($me,Cme){let Sme,Eme=this.index($me),xme=this.normalize(Cme,this.proxyOf.nodes[Eme]).reverse();Eme=this.index($me);for(let Tme of xme)this.proxyOf.nodes.splice(Eme+1,0,Tme);for(let Tme in this.indexes)Sme=this.indexes[Tme],Eme<Sme&&(this.indexes[Tme]=Sme+xme.length);return this.markDirty(),this}removeChild($me){let Cme;$me=this.index($me),this.proxyOf.nodes[$me].parent=void 0,this.proxyOf.nodes.splice($me,1);for(let Sme in this.indexes)Cme=this.indexes[Sme],Cme>=$me&&(this.indexes[Sme]=Cme-1);return this.markDirty(),this}removeAll(){for(let $me of this.proxyOf.nodes)$me.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues($me,Cme,Sme){return Sme||(Sme=Cme,Cme={}),this.walkDecls(Eme=>{Cme.props&&!Cme.props.includes(Eme.prop)||Cme.fast&&!Eme.value.includes(Cme.fast)||(Eme.value=Eme.value.replace($me,Sme))}),this.markDirty(),this}every($me){return this.nodes.every($me)}some($me){return this.nodes.some($me)}index($me){return typeof $me=="number"?$me:($me.proxyOf&&($me=$me.proxyOf),this.proxyOf.nodes.indexOf($me))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize($me,Cme){if(typeof $me=="string")$me=vme(sme($me).nodes);else if(Array.isArray($me)){$me=$me.slice(0);for(let Eme of $me)Eme.parent&&Eme.parent.removeChild(Eme,"ignore")}else if($me.type==="root"&&this.type!=="document"){$me=$me.nodes.slice(0);for(let Eme of $me)Eme.parent&&Eme.parent.removeChild(Eme,"ignore")}else if($me.type)$me=[$me];else if($me.prop){if($me.value===void 0)throw new Error("Value field is missed in node creation");typeof $me.value!="string"&&($me.value=String($me.value)),$me=[new hme($me)]}else if($me.selector)$me=[new cme($me)];else if($me.name)$me=[new dme($me)];else{if(!$me.text)throw new Error("Unknown node type in node creation");$me=[new bme($me)]}return $me.map(Eme=>(Eme[pme]||yme.rebuild(Eme),(Eme=Eme.proxyOf).parent&&Eme.parent.removeChild(Eme),Eme[fme]&&gme(Eme),Eme.raws.before===void 0&&Cme&&Cme.raws.before!==void 0&&(Eme.raws.before=Cme.raws.before.replace(/\S/g,"")),Eme.parent=this.proxyOf,Eme))}getProxyProcessor(){return{set:($me,Cme,Sme)=>($me[Cme]===Sme||($me[Cme]=Sme,Cme!=="name"&&Cme!=="params"&&Cme!=="selector"||$me.markDirty()),!0),get:($me,Cme)=>Cme==="proxyOf"?$me:$me[Cme]?Cme==="each"||typeof Cme=="string"&&Cme.startsWith("walk")?(...Sme)=>$me[Cme](...Sme.map(Eme=>typeof Eme=="function"?(xme,Tme)=>Eme(xme.toProxy(),Tme):Eme)):Cme==="every"||Cme==="some"?Sme=>$me[Cme]((Eme,...xme)=>Sme(Eme.toProxy(),...xme)):Cme==="root"?()=>$me.root().toProxy():Cme==="nodes"?$me.nodes.map(Sme=>Sme.toProxy()):Cme==="first"||Cme==="last"?$me[Cme].toProxy():$me[Cme]:$me[Cme]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let $me=this.lastEach;return this.indexes[$me]=0,$me}}yme.registerParse=_me=>{sme=_me},yme.registerRule=_me=>{cme=_me},yme.registerAtRule=_me=>{dme=_me},yme.registerRoot=_me=>{ume=_me},ime.exports=yme,yme.default=yme,yme.rebuild=_me=>{_me.type==="atrule"?Object.setPrototypeOf(_me,dme.prototype):_me.type==="rule"?Object.setPrototypeOf(_me,cme.prototype):_me.type==="decl"?Object.setPrototypeOf(_me,hme.prototype):_me.type==="comment"?Object.setPrototypeOf(_me,bme.prototype):_me.type==="root"&&Object.setPrototypeOf(_me,ume.prototype),_me[pme]=!0,_me.nodes&&_me.nodes.forEach($me=>{yme.rebuild($me)})}},671:(ime,ome,lme)=>{let sme=lme(241),cme=lme(868);class dme extends Error{constructor(fme,pme,hme,bme,mme,vme){super(fme),this.name="CssSyntaxError",this.reason=fme,mme&&(this.file=mme),bme&&(this.source=bme),vme&&(this.plugin=vme),pme!==void 0&&hme!==void 0&&(typeof pme=="number"?(this.line=pme,this.column=hme):(this.line=pme.line,this.column=pme.column,this.endLine=hme.line,this.endColumn=hme.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,dme)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",this.line!==void 0&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(fme){if(!this.source)return"";let pme=this.source;fme==null&&(fme=sme.isColorSupported),cme&&fme&&(pme=cme(pme));let hme,bme,mme=pme.split(/\r?\n/),vme=Math.max(this.line-3,0),gme=Math.min(this.line+2,mme.length),yme=String(gme).length;if(fme){let{bold:_me,red:$me,gray:Cme}=sme.createColors(!0);hme=Sme=>_me($me(Sme)),bme=Sme=>Cme(Sme)}else hme=bme=_me=>_me;return mme.slice(vme,gme).map((_me,$me)=>{let Cme=vme+1+$me,Sme=" "+(" "+Cme).slice(-yme)+" | ";if(Cme===this.line){let Eme=bme(Sme.replace(/\d/g," "))+_me.slice(0,this.column-1).replace(/[^\t]/g," ");return hme(">")+bme(Sme)+_me+`
 `+Eme+hme("^")}return" "+bme(Sme)+_me}).join(`
`)}toString(){let fme=this.showSourceCode();return fme&&(fme=`

`+fme+`
`),this.name+": "+this.message+fme}}ime.exports=dme,dme.default=dme},258:(ime,ome,lme)=>{let sme=lme(631);class cme extends sme{constructor(ume){ume&&ume.value!==void 0&&typeof ume.value!="string"&&(ume={...ume,value:String(ume.value)}),super(ume),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}ime.exports=cme,cme.default=cme},461:(ime,ome,lme)=>{let sme,cme,dme=lme(19);class ume extends dme{constructor(pme){super({type:"document",...pme}),this.nodes||(this.nodes=[])}toResult(pme={}){return new sme(new cme,this,pme).stringify()}}ume.registerLazyResult=fme=>{sme=fme},ume.registerProcessor=fme=>{cme=fme},ime.exports=ume,ume.default=ume},250:(ime,ome,lme)=>{let sme=lme(258),cme=lme(981),dme=lme(932),ume=lme(353),fme=lme(995),pme=lme(25),hme=lme(675);function bme(mme,vme){if(Array.isArray(mme))return mme.map(_me=>bme(_me));let{inputs:gme,...yme}=mme;if(gme){vme=[];for(let _me of gme){let $me={..._me,__proto__:fme.prototype};$me.map&&($me.map={...$me.map,__proto__:cme.prototype}),vme.push($me)}}if(yme.nodes&&(yme.nodes=mme.nodes.map(_me=>bme(_me,vme))),yme.source){let{inputId:_me,...$me}=yme.source;yme.source=$me,_me!=null&&(yme.source.input=vme[_me])}if(yme.type==="root")return new pme(yme);if(yme.type==="decl")return new sme(yme);if(yme.type==="rule")return new hme(yme);if(yme.type==="comment")return new dme(yme);if(yme.type==="atrule")return new ume(yme);throw new Error("Unknown node type: "+mme.type)}ime.exports=bme,bme.default=bme},995:(ime,ome,lme)=>{let{SourceMapConsumer:sme,SourceMapGenerator:cme}=lme(209),{fileURLToPath:dme,pathToFileURL:ume}=lme(414),{resolve:fme,isAbsolute:pme}=lme(830),{nanoid:hme}=lme(961),bme=lme(868),mme=lme(671),vme=lme(981),gme=Symbol("fromOffsetCache"),yme=!!(sme&&cme),_me=!!(fme&&pme);class $me{constructor(Sme,Eme={}){if(Sme==null||typeof Sme=="object"&&!Sme.toString)throw new Error(`PostCSS received ${Sme} instead of CSS string`);if(this.css=Sme.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,Eme.from&&(!_me||/^\w+:\/\//.test(Eme.from)||pme(Eme.from)?this.file=Eme.from:this.file=fme(Eme.from)),_me&&yme){let xme=new vme(this.css,Eme);if(xme.text){this.map=xme;let Tme=xme.consumer().file;!this.file&&Tme&&(this.file=this.mapResolve(Tme))}}this.file||(this.id="<input css "+hme(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(Sme){let Eme,xme;if(this[gme])xme=this[gme];else{let Ome=this.css.split(`
`);xme=new Array(Ome.length);let Rme=0;for(let Nme=0,Ime=Ome.length;Nme<Ime;Nme++)xme[Nme]=Rme,Rme+=Ome[Nme].length+1;this[gme]=xme}Eme=xme[xme.length-1];let Tme=0;if(Sme>=Eme)Tme=xme.length-1;else{let Ome,Rme=xme.length-2;for(;Tme<Rme;)if(Ome=Tme+(Rme-Tme>>1),Sme<xme[Ome])Rme=Ome-1;else{if(!(Sme>=xme[Ome+1])){Tme=Ome;break}Tme=Ome+1}}return{line:Tme+1,col:Sme-xme[Tme]+1}}error(Sme,Eme,xme,Tme={}){let Ome,Rme,Nme;if(Eme&&typeof Eme=="object"){let Pme=Eme,Mme=xme;if(typeof Eme.offset=="number"){let kme=this.fromOffset(Pme.offset);Eme=kme.line,xme=kme.col}else Eme=Pme.line,xme=Pme.column;if(typeof Mme.offset=="number"){let kme=this.fromOffset(Mme.offset);Rme=kme.line,Nme=kme.col}else Rme=Mme.line,Nme=Mme.column}else if(!xme){let Pme=this.fromOffset(Eme);Eme=Pme.line,xme=Pme.col}let Ime=this.origin(Eme,xme,Rme,Nme);return Ome=Ime?new mme(Sme,Ime.endLine===void 0?Ime.line:{line:Ime.line,column:Ime.column},Ime.endLine===void 0?Ime.column:{line:Ime.endLine,column:Ime.endColumn},Ime.source,Ime.file,Tme.plugin):new mme(Sme,Rme===void 0?Eme:{line:Eme,column:xme},Rme===void 0?xme:{line:Rme,column:Nme},this.css,this.file,Tme.plugin),Ome.input={line:Eme,column:xme,endLine:Rme,endColumn:Nme,source:this.css},this.file&&(ume&&(Ome.input.url=ume(this.file).toString()),Ome.input.file=this.file),Ome}origin(Sme,Eme,xme,Tme){if(!this.map)return!1;let Ome,Rme,Nme=this.map.consumer(),Ime=Nme.originalPositionFor({line:Sme,column:Eme});if(!Ime.source)return!1;typeof xme=="number"&&(Ome=Nme.originalPositionFor({line:xme,column:Tme})),Rme=pme(Ime.source)?ume(Ime.source):new URL(Ime.source,this.map.consumer().sourceRoot||ume(this.map.mapFile));let Pme={url:Rme.toString(),line:Ime.line,column:Ime.column,endLine:Ome&&Ome.line,endColumn:Ome&&Ome.column};if(Rme.protocol==="file:"){if(!dme)throw new Error("file: protocol is not available in this PostCSS build");Pme.file=dme(Rme)}let Mme=Nme.sourceContentFor(Ime.source);return Mme&&(Pme.source=Mme),Pme}mapResolve(Sme){return/^\w+:\/\//.test(Sme)?Sme:fme(this.map.consumer().sourceRoot||this.map.root||".",Sme)}get from(){return this.file||this.id}toJSON(){let Sme={};for(let Eme of["hasBOM","css","file","id"])this[Eme]!=null&&(Sme[Eme]=this[Eme]);return this.map&&(Sme.map={...this.map},Sme.map.consumerCache&&(Sme.map.consumerCache=void 0)),Sme}}ime.exports=$me,$me.default=$me,bme&&bme.registerInput&&bme.registerInput($me)},939:(ime,ome,lme)=>{let{isClean:sme,my:cme}=lme(513),dme=lme(505),ume=lme(88),fme=lme(19),pme=lme(461),hme=(lme(448),lme(632)),bme=lme(964),mme=lme(25);const vme={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},gme={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},yme={postcssPlugin:!0,prepare:!0,Once:!0};function _me(Tme){return typeof Tme=="object"&&typeof Tme.then=="function"}function $me(Tme){let Ome=!1,Rme=vme[Tme.type];return Tme.type==="decl"?Ome=Tme.prop.toLowerCase():Tme.type==="atrule"&&(Ome=Tme.name.toLowerCase()),Ome&&Tme.append?[Rme,Rme+"-"+Ome,0,Rme+"Exit",Rme+"Exit-"+Ome]:Ome?[Rme,Rme+"-"+Ome,Rme+"Exit",Rme+"Exit-"+Ome]:Tme.append?[Rme,0,Rme+"Exit"]:[Rme,Rme+"Exit"]}function Cme(Tme){let Ome;return Ome=Tme.type==="document"?["Document",0,"DocumentExit"]:Tme.type==="root"?["Root",0,"RootExit"]:$me(Tme),{node:Tme,events:Ome,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Sme(Tme){return Tme[sme]=!1,Tme.nodes&&Tme.nodes.forEach(Ome=>Sme(Ome)),Tme}let Eme={};class xme{constructor(Ome,Rme,Nme){let Ime;if(this.stringified=!1,this.processed=!1,typeof Rme!="object"||Rme===null||Rme.type!=="root"&&Rme.type!=="document")if(Rme instanceof xme||Rme instanceof hme)Ime=Sme(Rme.root),Rme.map&&(Nme.map===void 0&&(Nme.map={}),Nme.map.inline||(Nme.map.inline=!1),Nme.map.prev=Rme.map);else{let Pme=bme;Nme.syntax&&(Pme=Nme.syntax.parse),Nme.parser&&(Pme=Nme.parser),Pme.parse&&(Pme=Pme.parse);try{Ime=Pme(Rme,Nme)}catch(Mme){this.processed=!0,this.error=Mme}Ime&&!Ime[cme]&&fme.rebuild(Ime)}else Ime=Sme(Rme);this.result=new hme(Ome,Ime,Nme),this.helpers={...Eme,result:this.result,postcss:Eme},this.plugins=this.processor.plugins.map(Pme=>typeof Pme=="object"&&Pme.prepare?{...Pme,...Pme.prepare(this.result)}:Pme)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(Ome,Rme){return this.async().then(Ome,Rme)}catch(Ome){return this.async().catch(Ome)}finally(Ome){return this.async().then(Ome,Ome)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let Ome of this.plugins)if(_me(this.runOnRoot(Ome)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let Ome=this.result.root;for(;!Ome[sme];)Ome[sme]=!0,this.walkSync(Ome);if(this.listeners.OnceExit)if(Ome.type==="document")for(let Rme of Ome.nodes)this.visitSync(this.listeners.OnceExit,Rme);else this.visitSync(this.listeners.OnceExit,Ome)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let Ome=this.result.opts,Rme=ume;Ome.syntax&&(Rme=Ome.syntax.stringify),Ome.stringifier&&(Rme=Ome.stringifier),Rme.stringify&&(Rme=Rme.stringify);let Nme=new dme(Rme,this.result.root,this.result.opts).generate();return this.result.css=Nme[0],this.result.map=Nme[1],this.result}walkSync(Ome){Ome[sme]=!0;let Rme=$me(Ome);for(let Nme of Rme)if(Nme===0)Ome.nodes&&Ome.each(Ime=>{Ime[sme]||this.walkSync(Ime)});else{let Ime=this.listeners[Nme];if(Ime&&this.visitSync(Ime,Ome.toProxy()))return}}visitSync(Ome,Rme){for(let[Nme,Ime]of Ome){let Pme;this.result.lastPlugin=Nme;try{Pme=Ime(Rme,this.helpers)}catch(Mme){throw this.handleError(Mme,Rme.proxyOf)}if(Rme.type!=="root"&&Rme.type!=="document"&&!Rme.parent)return!0;if(_me(Pme))throw this.getAsyncError()}}runOnRoot(Ome){this.result.lastPlugin=Ome;try{if(typeof Ome=="object"&&Ome.Once){if(this.result.root.type==="document"){let Rme=this.result.root.nodes.map(Nme=>Ome.Once(Nme,this.helpers));return _me(Rme[0])?Promise.all(Rme):Rme}return Ome.Once(this.result.root,this.helpers)}if(typeof Ome=="function")return Ome(this.result.root,this.result)}catch(Rme){throw this.handleError(Rme)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(Ome,Rme){let Nme=this.result.lastPlugin;try{Rme&&Rme.addToError(Ome),this.error=Ome,Ome.name!=="CssSyntaxError"||Ome.plugin?Nme.postcssVersion:(Ome.plugin=Nme.postcssPlugin,Ome.setMessage())}catch(Ime){console&&console.error&&console.error(Ime)}return Ome}async runAsync(){this.plugin=0;for(let Ome=0;Ome<this.plugins.length;Ome++){let Rme=this.plugins[Ome],Nme=this.runOnRoot(Rme);if(_me(Nme))try{await Nme}catch(Ime){throw this.handleError(Ime)}}if(this.prepareVisitors(),this.hasListener){let Ome=this.result.root;for(;!Ome[sme];){Ome[sme]=!0;let Rme=[Cme(Ome)];for(;Rme.length>0;){let Nme=this.visitTick(Rme);if(_me(Nme))try{await Nme}catch(Ime){let Pme=Rme[Rme.length-1].node;throw this.handleError(Ime,Pme)}}}if(this.listeners.OnceExit)for(let[Rme,Nme]of this.listeners.OnceExit){this.result.lastPlugin=Rme;try{if(Ome.type==="document"){let Ime=Ome.nodes.map(Pme=>Nme(Pme,this.helpers));await Promise.all(Ime)}else await Nme(Ome,this.helpers)}catch(Ime){throw this.handleError(Ime)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let Ome=(Rme,Nme,Ime)=>{this.listeners[Nme]||(this.listeners[Nme]=[]),this.listeners[Nme].push([Rme,Ime])};for(let Rme of this.plugins)if(typeof Rme=="object")for(let Nme in Rme){if(!gme[Nme]&&/^[A-Z]/.test(Nme))throw new Error(`Unknown event ${Nme} in ${Rme.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!yme[Nme])if(typeof Rme[Nme]=="object")for(let Ime in Rme[Nme])Ome(Rme,Ime==="*"?Nme:Nme+"-"+Ime.toLowerCase(),Rme[Nme][Ime]);else typeof Rme[Nme]=="function"&&Ome(Rme,Nme,Rme[Nme])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(Ome){let Rme=Ome[Ome.length-1],{node:Nme,visitors:Ime}=Rme;if(Nme.type!=="root"&&Nme.type!=="document"&&!Nme.parent)return void Ome.pop();if(Ime.length>0&&Rme.visitorIndex<Ime.length){let[Mme,kme]=Ime[Rme.visitorIndex];Rme.visitorIndex+=1,Rme.visitorIndex===Ime.length&&(Rme.visitors=[],Rme.visitorIndex=0),this.result.lastPlugin=Mme;try{return kme(Nme.toProxy(),this.helpers)}catch(Bme){throw this.handleError(Bme,Nme)}}if(Rme.iterator!==0){let Mme,kme=Rme.iterator;for(;Mme=Nme.nodes[Nme.indexes[kme]];)if(Nme.indexes[kme]+=1,!Mme[sme])return Mme[sme]=!0,void Ome.push(Cme(Mme));Rme.iterator=0,delete Nme.indexes[kme]}let Pme=Rme.events;for(;Rme.eventIndex<Pme.length;){let Mme=Pme[Rme.eventIndex];if(Rme.eventIndex+=1,Mme===0)return void(Nme.nodes&&Nme.nodes.length&&(Nme[sme]=!0,Rme.iterator=Nme.getIterator()));if(this.listeners[Mme])return void(Rme.visitors=this.listeners[Mme])}Ome.pop()}}xme.registerPostcss=Tme=>{Eme=Tme},ime.exports=xme,xme.default=xme,mme.registerLazyResult(xme),pme.registerLazyResult(xme)},715:ime=>{let ome={split(lme,sme,cme){let dme=[],ume="",fme=!1,pme=0,hme=!1,bme="",mme=!1;for(let vme of lme)mme?mme=!1:vme==="\\"?mme=!0:hme?vme===bme&&(hme=!1):vme==='"'||vme==="'"?(hme=!0,bme=vme):vme==="("?pme+=1:vme===")"?pme>0&&(pme-=1):pme===0&&sme.includes(vme)&&(fme=!0),fme?(ume!==""&&dme.push(ume.trim()),ume="",fme=!1):ume+=vme;return(cme||ume!=="")&&dme.push(ume.trim()),dme},space:lme=>ome.split(lme,[" ",`
`,"	"]),comma:lme=>ome.split(lme,[","],!0)};ime.exports=ome,ome.default=ome},505:(ime,ome,lme)=>{let{SourceMapConsumer:sme,SourceMapGenerator:cme}=lme(209),{dirname:dme,resolve:ume,relative:fme,sep:pme}=lme(830),{pathToFileURL:hme}=lme(414),bme=lme(995),mme=!!(sme&&cme),vme=!!(dme&&ume&&fme&&pme);ime.exports=class{constructor(gme,yme,_me,$me){this.stringify=gme,this.mapOpts=_me.map||{},this.root=yme,this.opts=_me,this.css=$me,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return this.opts.map!==void 0?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(gme=>{if(gme.source&&gme.source.input.map){let yme=gme.source.input.map;this.previousMaps.includes(yme)||this.previousMaps.push(yme)}});else{let gme=new bme(this.css,this.opts);gme.map&&this.previousMaps.push(gme.map)}return this.previousMaps}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let gme=this.mapOpts.annotation;return(gme===void 0||gme===!0)&&(!this.previous().length||this.previous().some(yme=>yme.inline))}isSourcesContent(){return this.mapOpts.sourcesContent!==void 0?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(gme=>gme.withContent())}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let gme;for(let yme=this.root.nodes.length-1;yme>=0;yme--)gme=this.root.nodes[yme],gme.type==="comment"&&gme.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(yme)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let gme={};if(this.root)this.root.walk(yme=>{if(yme.source){let _me=yme.source.input.from;if(_me&&!gme[_me]){gme[_me]=!0;let $me=this.usesFileUrls?this.toFileUrl(_me):this.toUrl(this.path(_me));this.map.setSourceContent($me,yme.source.input.css)}}});else if(this.css){let yme=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(yme,this.css)}}applyPrevMaps(){for(let gme of this.previous()){let yme,_me=this.toUrl(this.path(gme.file)),$me=gme.root||dme(gme.file);this.mapOpts.sourcesContent===!1?(yme=new sme(gme.text),yme.sourcesContent&&(yme.sourcesContent=yme.sourcesContent.map(()=>null))):yme=gme.consumer(),this.map.applySourceMap(yme,_me,this.toUrl(this.path($me)))}}isAnnotation(){return!!this.isInline()||(this.mapOpts.annotation!==void 0?this.mapOpts.annotation:!this.previous().length||this.previous().some(gme=>gme.annotation))}toBase64(gme){return Buffer?Buffer.from(gme).toString("base64"):window.btoa(unescape(encodeURIComponent(gme)))}addAnnotation(){let gme;gme=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let yme=`
`;this.css.includes(`\r
`)&&(yme=`\r
`),this.css+=yme+"/*# sourceMappingURL="+gme+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let gme=this.previous()[0].consumer();gme.file=this.outputFile(),this.map=cme.fromSourceMap(gme)}else this.map=new cme({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(gme){if(gme.indexOf("<")===0||/^\w+:\/\//.test(gme)||this.mapOpts.absolute)return gme;let yme=this.opts.to?dme(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(yme=dme(ume(yme,this.mapOpts.annotation))),fme(yme,gme)}toUrl(gme){return pme==="\\"&&(gme=gme.replace(/\\/g,"/")),encodeURI(gme).replace(/[#?]/g,encodeURIComponent)}toFileUrl(gme){if(hme)return hme(gme).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}sourcePath(gme){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(gme.source.input.from):this.toUrl(this.path(gme.source.input.from))}generateString(){this.css="",this.map=new cme({file:this.outputFile()});let gme,yme,_me=1,$me=1,Cme="<no source>",Sme={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,(Eme,xme,Tme)=>{if(this.css+=Eme,xme&&Tme!=="end"&&(Sme.generated.line=_me,Sme.generated.column=$me-1,xme.source&&xme.source.start?(Sme.source=this.sourcePath(xme),Sme.original.line=xme.source.start.line,Sme.original.column=xme.source.start.column-1,this.map.addMapping(Sme)):(Sme.source=Cme,Sme.original.line=1,Sme.original.column=0,this.map.addMapping(Sme))),gme=Eme.match(/\n/g),gme?(_me+=gme.length,yme=Eme.lastIndexOf(`
`),$me=Eme.length-yme):$me+=Eme.length,xme&&Tme!=="start"){let Ome=xme.parent||{raws:{}};(xme.type!=="decl"||xme!==Ome.last||Ome.raws.semicolon)&&(xme.source&&xme.source.end?(Sme.source=this.sourcePath(xme),Sme.original.line=xme.source.end.line,Sme.original.column=xme.source.end.column-1,Sme.generated.line=_me,Sme.generated.column=$me-2,this.map.addMapping(Sme)):(Sme.source=Cme,Sme.original.line=1,Sme.original.column=0,Sme.generated.line=_me,Sme.generated.column=$me-1,this.map.addMapping(Sme)))}})}generate(){if(this.clearAnnotation(),vme&&mme&&this.isMap())return this.generateMap();{let gme="";return this.stringify(this.root,yme=>{gme+=yme}),[gme]}}}},647:(ime,ome,lme)=>{let sme=lme(505),cme=lme(88),dme=(lme(448),lme(964));const ume=lme(632);class fme{constructor(hme,bme,mme){let vme;bme=bme.toString(),this.stringified=!1,this._processor=hme,this._css=bme,this._opts=mme,this._map=void 0;let gme=cme;this.result=new ume(this._processor,vme,this._opts),this.result.css=bme;let yme=this;Object.defineProperty(this.result,"root",{get:()=>yme.root});let _me=new sme(gme,vme,this._opts,bme);if(_me.isMap()){let[$me,Cme]=_me.generate();$me&&(this.result.css=$me),Cme&&(this.result.map=Cme)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let hme,bme=dme;try{hme=bme(this._css,this._opts)}catch(mme){this.error=mme}if(this.error)throw this.error;return this._root=hme,hme}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(hme,bme){return this.async().then(hme,bme)}catch(hme){return this.async().catch(hme)}finally(hme){return this.async().then(hme,hme)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}ime.exports=fme,fme.default=fme},631:(ime,ome,lme)=>{let{isClean:sme,my:cme}=lme(513),dme=lme(671),ume=lme(62),fme=lme(88);function pme(bme,mme){let vme=new bme.constructor;for(let gme in bme){if(!Object.prototype.hasOwnProperty.call(bme,gme)||gme==="proxyCache")continue;let yme=bme[gme],_me=typeof yme;gme==="parent"&&_me==="object"?mme&&(vme[gme]=mme):gme==="source"?vme[gme]=yme:Array.isArray(yme)?vme[gme]=yme.map($me=>pme($me,vme)):(_me==="object"&&yme!==null&&(yme=pme(yme)),vme[gme]=yme)}return vme}class hme{constructor(mme={}){this.raws={},this[sme]=!1,this[cme]=!0;for(let vme in mme)if(vme==="nodes"){this.nodes=[];for(let gme of mme[vme])typeof gme.clone=="function"?this.append(gme.clone()):this.append(gme)}else this[vme]=mme[vme]}error(mme,vme={}){if(this.source){let{start:gme,end:yme}=this.rangeBy(vme);return this.source.input.error(mme,{line:gme.line,column:gme.column},{line:yme.line,column:yme.column},vme)}return new dme(mme)}warn(mme,vme,gme){let yme={node:this};for(let _me in gme)yme[_me]=gme[_me];return mme.warn(vme,yme)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(mme=fme){mme.stringify&&(mme=mme.stringify);let vme="";return mme(this,gme=>{vme+=gme}),vme}assign(mme={}){for(let vme in mme)this[vme]=mme[vme];return this}clone(mme={}){let vme=pme(this);for(let gme in mme)vme[gme]=mme[gme];return vme}cloneBefore(mme={}){let vme=this.clone(mme);return this.parent.insertBefore(this,vme),vme}cloneAfter(mme={}){let vme=this.clone(mme);return this.parent.insertAfter(this,vme),vme}replaceWith(...mme){if(this.parent){let vme=this,gme=!1;for(let yme of mme)yme===this?gme=!0:gme?(this.parent.insertAfter(vme,yme),vme=yme):this.parent.insertBefore(vme,yme);gme||this.remove()}return this}next(){if(!this.parent)return;let mme=this.parent.index(this);return this.parent.nodes[mme+1]}prev(){if(!this.parent)return;let mme=this.parent.index(this);return this.parent.nodes[mme-1]}before(mme){return this.parent.insertBefore(this,mme),this}after(mme){return this.parent.insertAfter(this,mme),this}root(){let mme=this;for(;mme.parent&&mme.parent.type!=="document";)mme=mme.parent;return mme}raw(mme,vme){return new ume().raw(this,mme,vme)}cleanRaws(mme){delete this.raws.before,delete this.raws.after,mme||delete this.raws.between}toJSON(mme,vme){let gme={},yme=vme==null;vme=vme||new Map;let _me=0;for(let $me in this){if(!Object.prototype.hasOwnProperty.call(this,$me)||$me==="parent"||$me==="proxyCache")continue;let Cme=this[$me];if(Array.isArray(Cme))gme[$me]=Cme.map(Sme=>typeof Sme=="object"&&Sme.toJSON?Sme.toJSON(null,vme):Sme);else if(typeof Cme=="object"&&Cme.toJSON)gme[$me]=Cme.toJSON(null,vme);else if($me==="source"){let Sme=vme.get(Cme.input);Sme==null&&(Sme=_me,vme.set(Cme.input,_me),_me++),gme[$me]={inputId:Sme,start:Cme.start,end:Cme.end}}else gme[$me]=Cme}return yme&&(gme.inputs=[...vme.keys()].map($me=>$me.toJSON())),gme}positionInside(mme){let vme=this.toString(),gme=this.source.start.column,yme=this.source.start.line;for(let _me=0;_me<mme;_me++)vme[_me]===`
`?(gme=1,yme+=1):gme+=1;return{line:yme,column:gme}}positionBy(mme){let vme=this.source.start;if(mme.index)vme=this.positionInside(mme.index);else if(mme.word){let gme=this.toString().indexOf(mme.word);gme!==-1&&(vme=this.positionInside(gme))}return vme}rangeBy(mme){let vme={line:this.source.start.line,column:this.source.start.column},gme=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:vme.line,column:vme.column+1};if(mme.word){let yme=this.toString().indexOf(mme.word);yme!==-1&&(vme=this.positionInside(yme),gme=this.positionInside(yme+mme.word.length))}else mme.start?vme={line:mme.start.line,column:mme.start.column}:mme.index&&(vme=this.positionInside(mme.index)),mme.end?gme={line:mme.end.line,column:mme.end.column}:mme.endIndex?gme=this.positionInside(mme.endIndex):mme.index&&(gme=this.positionInside(mme.index+1));return(gme.line<vme.line||gme.line===vme.line&&gme.column<=vme.column)&&(gme={line:vme.line,column:vme.column+1}),{start:vme,end:gme}}getProxyProcessor(){return{set:(mme,vme,gme)=>(mme[vme]===gme||(mme[vme]=gme,vme!=="prop"&&vme!=="value"&&vme!=="name"&&vme!=="params"&&vme!=="important"&&vme!=="text"||mme.markDirty()),!0),get:(mme,vme)=>vme==="proxyOf"?mme:vme==="root"?()=>mme.root().toProxy():mme[vme]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(mme){if(mme.postcssNode=this,mme.stack&&this.source&&/\n\s{4}at /.test(mme.stack)){let vme=this.source;mme.stack=mme.stack.replace(/\n\s{4}at /,`$&${vme.input.from}:${vme.start.line}:${vme.start.column}$&`)}return mme}markDirty(){if(this[sme]){this[sme]=!1;let mme=this;for(;mme=mme.parent;)mme[sme]=!1}}get proxyOf(){return this}}ime.exports=hme,hme.default=hme},964:(ime,ome,lme)=>{let sme=lme(19),cme=lme(867),dme=lme(995);function ume(fme,pme){let hme=new dme(fme,pme),bme=new cme(hme);try{bme.parse()}catch(mme){throw mme}return bme.root}ime.exports=ume,ume.default=ume,sme.registerParse(ume)},867:(ime,ome,lme)=>{let sme=lme(258),cme=lme(852),dme=lme(932),ume=lme(353),fme=lme(25),pme=lme(675);const hme={empty:!0,space:!0};ime.exports=class{constructor(bme){this.input=bme,this.root=new fme,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:bme,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=cme(this.input)}parse(){let bme;for(;!this.tokenizer.endOfFile();)switch(bme=this.tokenizer.nextToken(),bme[0]){case"space":this.spaces+=bme[1];break;case";":this.freeSemicolon(bme);break;case"}":this.end(bme);break;case"comment":this.comment(bme);break;case"at-word":this.atrule(bme);break;case"{":this.emptyRule(bme);break;default:this.other(bme)}this.endFile()}comment(bme){let mme=new dme;this.init(mme,bme[2]),mme.source.end=this.getPosition(bme[3]||bme[2]);let vme=bme[1].slice(2,-2);if(/^\s*$/.test(vme))mme.text="",mme.raws.left=vme,mme.raws.right="";else{let gme=vme.match(/^(\s*)([^]*\S)(\s*)$/);mme.text=gme[2],mme.raws.left=gme[1],mme.raws.right=gme[3]}}emptyRule(bme){let mme=new pme;this.init(mme,bme[2]),mme.selector="",mme.raws.between="",this.current=mme}other(bme){let mme=!1,vme=null,gme=!1,yme=null,_me=[],$me=bme[1].startsWith("--"),Cme=[],Sme=bme;for(;Sme;){if(vme=Sme[0],Cme.push(Sme),vme==="("||vme==="[")yme||(yme=Sme),_me.push(vme==="("?")":"]");else if($me&&gme&&vme==="{")yme||(yme=Sme),_me.push("}");else if(_me.length===0){if(vme===";"){if(gme)return void this.decl(Cme,$me);break}if(vme==="{")return void this.rule(Cme);if(vme==="}"){this.tokenizer.back(Cme.pop()),mme=!0;break}vme===":"&&(gme=!0)}else vme===_me[_me.length-1]&&(_me.pop(),_me.length===0&&(yme=null));Sme=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(mme=!0),_me.length>0&&this.unclosedBracket(yme),mme&&gme){if(!$me)for(;Cme.length&&(Sme=Cme[Cme.length-1][0],Sme==="space"||Sme==="comment");)this.tokenizer.back(Cme.pop());this.decl(Cme,$me)}else this.unknownWord(Cme)}rule(bme){bme.pop();let mme=new pme;this.init(mme,bme[0][2]),mme.raws.between=this.spacesAndCommentsFromEnd(bme),this.raw(mme,"selector",bme),this.current=mme}decl(bme,mme){let vme=new sme;this.init(vme,bme[0][2]);let gme,yme=bme[bme.length-1];for(yme[0]===";"&&(this.semicolon=!0,bme.pop()),vme.source.end=this.getPosition(yme[3]||yme[2]||function(Sme){for(let Eme=Sme.length-1;Eme>=0;Eme--){let xme=Sme[Eme],Tme=xme[3]||xme[2];if(Tme)return Tme}}(bme));bme[0][0]!=="word";)bme.length===1&&this.unknownWord(bme),vme.raws.before+=bme.shift()[1];for(vme.source.start=this.getPosition(bme[0][2]),vme.prop="";bme.length;){let Sme=bme[0][0];if(Sme===":"||Sme==="space"||Sme==="comment")break;vme.prop+=bme.shift()[1]}for(vme.raws.between="";bme.length;){if(gme=bme.shift(),gme[0]===":"){vme.raws.between+=gme[1];break}gme[0]==="word"&&/\w/.test(gme[1])&&this.unknownWord([gme]),vme.raws.between+=gme[1]}vme.prop[0]!=="_"&&vme.prop[0]!=="*"||(vme.raws.before+=vme.prop[0],vme.prop=vme.prop.slice(1));let _me,$me=[];for(;bme.length&&(_me=bme[0][0],_me==="space"||_me==="comment");)$me.push(bme.shift());this.precheckMissedSemicolon(bme);for(let Sme=bme.length-1;Sme>=0;Sme--){if(gme=bme[Sme],gme[1].toLowerCase()==="!important"){vme.important=!0;let Eme=this.stringFrom(bme,Sme);Eme=this.spacesFromEnd(bme)+Eme,Eme!==" !important"&&(vme.raws.important=Eme);break}if(gme[1].toLowerCase()==="important"){let Eme=bme.slice(0),xme="";for(let Tme=Sme;Tme>0;Tme--){let Ome=Eme[Tme][0];if(xme.trim().indexOf("!")===0&&Ome!=="space")break;xme=Eme.pop()[1]+xme}xme.trim().indexOf("!")===0&&(vme.important=!0,vme.raws.important=xme,bme=Eme)}if(gme[0]!=="space"&&gme[0]!=="comment")break}bme.some(Sme=>Sme[0]!=="space"&&Sme[0]!=="comment")&&(vme.raws.between+=$me.map(Sme=>Sme[1]).join(""),$me=[]),this.raw(vme,"value",$me.concat(bme),mme),vme.value.includes(":")&&!mme&&this.checkMissedSemicolon(bme)}atrule(bme){let mme,vme,gme,yme=new ume;yme.name=bme[1].slice(1),yme.name===""&&this.unnamedAtrule(yme,bme),this.init(yme,bme[2]);let _me=!1,$me=!1,Cme=[],Sme=[];for(;!this.tokenizer.endOfFile();){if(mme=(bme=this.tokenizer.nextToken())[0],mme==="("||mme==="["?Sme.push(mme==="("?")":"]"):mme==="{"&&Sme.length>0?Sme.push("}"):mme===Sme[Sme.length-1]&&Sme.pop(),Sme.length===0){if(mme===";"){yme.source.end=this.getPosition(bme[2]),this.semicolon=!0;break}if(mme==="{"){$me=!0;break}if(mme==="}"){if(Cme.length>0){for(gme=Cme.length-1,vme=Cme[gme];vme&&vme[0]==="space";)vme=Cme[--gme];vme&&(yme.source.end=this.getPosition(vme[3]||vme[2]))}this.end(bme);break}Cme.push(bme)}else Cme.push(bme);if(this.tokenizer.endOfFile()){_me=!0;break}}yme.raws.between=this.spacesAndCommentsFromEnd(Cme),Cme.length?(yme.raws.afterName=this.spacesAndCommentsFromStart(Cme),this.raw(yme,"params",Cme),_me&&(bme=Cme[Cme.length-1],yme.source.end=this.getPosition(bme[3]||bme[2]),this.spaces=yme.raws.between,yme.raws.between="")):(yme.raws.afterName="",yme.params=""),$me&&(yme.nodes=[],this.current=yme)}end(bme){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(bme[2]),this.current=this.current.parent):this.unexpectedClose(bme)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(bme){if(this.spaces+=bme[1],this.current.nodes){let mme=this.current.nodes[this.current.nodes.length-1];mme&&mme.type==="rule"&&!mme.raws.ownSemicolon&&(mme.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(bme){let mme=this.input.fromOffset(bme);return{offset:bme,line:mme.line,column:mme.col}}init(bme,mme){this.current.push(bme),bme.source={start:this.getPosition(mme),input:this.input},bme.raws.before=this.spaces,this.spaces="",bme.type!=="comment"&&(this.semicolon=!1)}raw(bme,mme,vme,gme){let yme,_me,$me,Cme,Sme=vme.length,Eme="",xme=!0;for(let Tme=0;Tme<Sme;Tme+=1)yme=vme[Tme],_me=yme[0],_me!=="space"||Tme!==Sme-1||gme?_me==="comment"?(Cme=vme[Tme-1]?vme[Tme-1][0]:"empty",$me=vme[Tme+1]?vme[Tme+1][0]:"empty",hme[Cme]||hme[$me]||Eme.slice(-1)===","?xme=!1:Eme+=yme[1]):Eme+=yme[1]:xme=!1;if(!xme){let Tme=vme.reduce((Ome,Rme)=>Ome+Rme[1],"");bme.raws[mme]={value:Eme,raw:Tme}}bme[mme]=Eme}spacesAndCommentsFromEnd(bme){let mme,vme="";for(;bme.length&&(mme=bme[bme.length-1][0],mme==="space"||mme==="comment");)vme=bme.pop()[1]+vme;return vme}spacesAndCommentsFromStart(bme){let mme,vme="";for(;bme.length&&(mme=bme[0][0],mme==="space"||mme==="comment");)vme+=bme.shift()[1];return vme}spacesFromEnd(bme){let mme,vme="";for(;bme.length&&(mme=bme[bme.length-1][0],mme==="space");)vme=bme.pop()[1]+vme;return vme}stringFrom(bme,mme){let vme="";for(let gme=mme;gme<bme.length;gme++)vme+=bme[gme][1];return bme.splice(mme,bme.length-mme),vme}colon(bme){let mme,vme,gme,yme=0;for(let[_me,$me]of bme.entries()){if(mme=$me,vme=mme[0],vme==="("&&(yme+=1),vme===")"&&(yme-=1),yme===0&&vme===":"){if(gme){if(gme[0]==="word"&&gme[1]==="progid")continue;return _me}this.doubleColon(mme)}gme=mme}return!1}unclosedBracket(bme){throw this.input.error("Unclosed bracket",{offset:bme[2]},{offset:bme[2]+1})}unknownWord(bme){throw this.input.error("Unknown word",{offset:bme[0][2]},{offset:bme[0][2]+bme[0][1].length})}unexpectedClose(bme){throw this.input.error("Unexpected }",{offset:bme[2]},{offset:bme[2]+1})}unclosedBlock(){let bme=this.current.source.start;throw this.input.error("Unclosed block",bme.line,bme.column)}doubleColon(bme){throw this.input.error("Double colon",{offset:bme[2]},{offset:bme[2]+bme[1].length})}unnamedAtrule(bme,mme){throw this.input.error("At-rule without name",{offset:mme[2]},{offset:mme[2]+mme[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(bme){let mme=this.colon(bme);if(mme===!1)return;let vme,gme=0;for(let yme=mme-1;yme>=0&&(vme=bme[yme],vme[0]==="space"||(gme+=1,gme!==2));yme--);throw this.input.error("Missed semicolon",vme[0]==="word"?vme[3]+1:vme[2])}}},20:(ime,ome,lme)=>{let sme=lme(671),cme=lme(258),dme=lme(939),ume=lme(19),fme=lme(723),pme=lme(88),hme=lme(250),bme=lme(461),mme=lme(728),vme=lme(932),gme=lme(353),yme=lme(632),_me=lme(995),$me=lme(964),Cme=lme(715),Sme=lme(675),Eme=lme(25),xme=lme(631);function Tme(...Ome){return Ome.length===1&&Array.isArray(Ome[0])&&(Ome=Ome[0]),new fme(Ome)}Tme.plugin=function(Ome,Rme){let Nme,Ime=!1;function Pme(...Mme){console&&console.warn&&!Ime&&(Ime=!0,console.warn(Ome+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),eme.LANG&&eme.LANG.startsWith("cn")&&console.warn(Ome+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let kme=Rme(...Mme);return kme.postcssPlugin=Ome,kme.postcssVersion=new fme().version,kme}return Object.defineProperty(Pme,"postcss",{get:()=>(Nme||(Nme=Pme()),Nme)}),Pme.process=function(Mme,kme,Bme){return Tme([Pme(Bme)]).process(Mme,kme)},Pme},Tme.stringify=pme,Tme.parse=$me,Tme.fromJSON=hme,Tme.list=Cme,Tme.comment=Ome=>new vme(Ome),Tme.atRule=Ome=>new gme(Ome),Tme.decl=Ome=>new cme(Ome),Tme.rule=Ome=>new Sme(Ome),Tme.root=Ome=>new Eme(Ome),Tme.document=Ome=>new bme(Ome),Tme.CssSyntaxError=sme,Tme.Declaration=cme,Tme.Container=ume,Tme.Processor=fme,Tme.Document=bme,Tme.Comment=vme,Tme.Warning=mme,Tme.AtRule=gme,Tme.Result=yme,Tme.Input=_me,Tme.Rule=Sme,Tme.Root=Eme,Tme.Node=xme,dme.registerPostcss(Tme),ime.exports=Tme,Tme.default=Tme},981:(ime,ome,lme)=>{let{SourceMapConsumer:sme,SourceMapGenerator:cme}=lme(209),{existsSync:dme,readFileSync:ume}=lme(777),{dirname:fme,join:pme}=lme(830);class hme{constructor(mme,vme){if(vme.map===!1)return;this.loadAnnotation(mme),this.inline=this.startWith(this.annotation,"data:");let gme=vme.map?vme.map.prev:void 0,yme=this.loadMap(vme.from,gme);!this.mapFile&&vme.from&&(this.mapFile=vme.from),this.mapFile&&(this.root=fme(this.mapFile)),yme&&(this.text=yme)}consumer(){return this.consumerCache||(this.consumerCache=new sme(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(mme,vme){return!!mme&&mme.substr(0,vme.length)===vme}getAnnotationURL(mme){return mme.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(mme){let vme=mme.match(/\/\*\s*# sourceMappingURL=/gm);if(!vme)return;let gme=mme.lastIndexOf(vme.pop()),yme=mme.indexOf("*/",gme);gme>-1&&yme>-1&&(this.annotation=this.getAnnotationURL(mme.substring(gme,yme)))}decodeInline(mme){if(/^data:application\/json;charset=utf-?8,/.test(mme)||/^data:application\/json,/.test(mme))return decodeURIComponent(mme.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(mme)||/^data:application\/json;base64,/.test(mme))return vme=mme.substr(RegExp.lastMatch.length),Buffer?Buffer.from(vme,"base64").toString():window.atob(vme);var vme;let gme=mme.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+gme)}loadFile(mme){if(this.root=fme(mme),dme(mme))return this.mapFile=mme,ume(mme,"utf-8").toString().trim()}loadMap(mme,vme){if(vme===!1)return!1;if(vme){if(typeof vme=="string")return vme;if(typeof vme!="function"){if(vme instanceof sme)return cme.fromSourceMap(vme).toString();if(vme instanceof cme)return vme.toString();if(this.isMap(vme))return JSON.stringify(vme);throw new Error("Unsupported previous source map format: "+vme.toString())}{let gme=vme(mme);if(gme){let yme=this.loadFile(gme);if(!yme)throw new Error("Unable to load previous source map: "+gme.toString());return yme}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let gme=this.annotation;return mme&&(gme=pme(fme(mme),gme)),this.loadFile(gme)}}}isMap(mme){return typeof mme=="object"&&(typeof mme.mappings=="string"||typeof mme._mappings=="string"||Array.isArray(mme.sections))}}ime.exports=hme,hme.default=hme},723:(ime,ome,lme)=>{let sme=lme(647),cme=lme(939),dme=lme(461),ume=lme(25);class fme{constructor(hme=[]){this.version="8.4.19",this.plugins=this.normalize(hme)}use(hme){return this.plugins=this.plugins.concat(this.normalize([hme])),this}process(hme,bme={}){return this.plugins.length===0&&bme.parser===void 0&&bme.stringifier===void 0&&bme.syntax===void 0?new sme(this,hme,bme):new cme(this,hme,bme)}normalize(hme){let bme=[];for(let mme of hme)if(mme.postcss===!0?mme=mme():mme.postcss&&(mme=mme.postcss),typeof mme=="object"&&Array.isArray(mme.plugins))bme=bme.concat(mme.plugins);else if(typeof mme=="object"&&mme.postcssPlugin)bme.push(mme);else if(typeof mme=="function")bme.push(mme);else if(typeof mme!="object"||!mme.parse&&!mme.stringify)throw new Error(mme+" is not a PostCSS plugin");return bme}}ime.exports=fme,fme.default=fme,ume.registerProcessor(fme),dme.registerProcessor(fme)},632:(ime,ome,lme)=>{let sme=lme(728);class cme{constructor(ume,fme,pme){this.processor=ume,this.messages=[],this.root=fme,this.opts=pme,this.css=void 0,this.map=void 0}toString(){return this.css}warn(ume,fme={}){fme.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(fme.plugin=this.lastPlugin.postcssPlugin);let pme=new sme(ume,fme);return this.messages.push(pme),pme}warnings(){return this.messages.filter(ume=>ume.type==="warning")}get content(){return this.css}}ime.exports=cme,cme.default=cme},25:(ime,ome,lme)=>{let sme,cme,dme=lme(19);class ume extends dme{constructor(pme){super(pme),this.type="root",this.nodes||(this.nodes=[])}removeChild(pme,hme){let bme=this.index(pme);return!hme&&bme===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[bme].raws.before),super.removeChild(pme)}normalize(pme,hme,bme){let mme=super.normalize(pme);if(hme){if(bme==="prepend")this.nodes.length>1?hme.raws.before=this.nodes[1].raws.before:delete hme.raws.before;else if(this.first!==hme)for(let vme of mme)vme.raws.before=hme.raws.before}return mme}toResult(pme={}){return new sme(new cme,this,pme).stringify()}}ume.registerLazyResult=fme=>{sme=fme},ume.registerProcessor=fme=>{cme=fme},ime.exports=ume,ume.default=ume,dme.registerRoot(ume)},675:(ime,ome,lme)=>{let sme=lme(19),cme=lme(715);class dme extends sme{constructor(fme){super(fme),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return cme.comma(this.selector)}set selectors(fme){let pme=this.selector?this.selector.match(/,\s*/):null,hme=pme?pme[0]:","+this.raw("between","beforeOpen");this.selector=fme.join(hme)}}ime.exports=dme,dme.default=dme,sme.registerRule(dme)},62:ime=>{const ome={colon:": ",indent:"    ",beforeDecl:`
`,beforeRule:`
`,beforeOpen:" ",beforeClose:`
`,beforeComment:`
`,after:`
`,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class lme{constructor(cme){this.builder=cme}stringify(cme,dme){if(!this[cme.type])throw new Error("Unknown AST node type "+cme.type+". Maybe you need to change PostCSS stringifier.");this[cme.type](cme,dme)}document(cme){this.body(cme)}root(cme){this.body(cme),cme.raws.after&&this.builder(cme.raws.after)}comment(cme){let dme=this.raw(cme,"left","commentLeft"),ume=this.raw(cme,"right","commentRight");this.builder("/*"+dme+cme.text+ume+"*/",cme)}decl(cme,dme){let ume=this.raw(cme,"between","colon"),fme=cme.prop+ume+this.rawValue(cme,"value");cme.important&&(fme+=cme.raws.important||" !important"),dme&&(fme+=";"),this.builder(fme,cme)}rule(cme){this.block(cme,this.rawValue(cme,"selector")),cme.raws.ownSemicolon&&this.builder(cme.raws.ownSemicolon,cme,"end")}atrule(cme,dme){let ume="@"+cme.name,fme=cme.params?this.rawValue(cme,"params"):"";if(cme.raws.afterName!==void 0?ume+=cme.raws.afterName:fme&&(ume+=" "),cme.nodes)this.block(cme,ume+fme);else{let pme=(cme.raws.between||"")+(dme?";":"");this.builder(ume+fme+pme,cme)}}body(cme){let dme=cme.nodes.length-1;for(;dme>0&&cme.nodes[dme].type==="comment";)dme-=1;let ume=this.raw(cme,"semicolon");for(let fme=0;fme<cme.nodes.length;fme++){let pme=cme.nodes[fme],hme=this.raw(pme,"before");hme&&this.builder(hme),this.stringify(pme,dme!==fme||ume)}}block(cme,dme){let ume,fme=this.raw(cme,"between","beforeOpen");this.builder(dme+fme+"{",cme,"start"),cme.nodes&&cme.nodes.length?(this.body(cme),ume=this.raw(cme,"after")):ume=this.raw(cme,"after","emptyBody"),ume&&this.builder(ume),this.builder("}",cme,"end")}raw(cme,dme,ume){let fme;if(ume||(ume=dme),dme&&(fme=cme.raws[dme],fme!==void 0))return fme;let pme=cme.parent;if(ume==="before"&&(!pme||pme.type==="root"&&pme.first===cme||pme&&pme.type==="document"))return"";if(!pme)return ome[ume];let hme=cme.root();if(hme.rawCache||(hme.rawCache={}),hme.rawCache[ume]!==void 0)return hme.rawCache[ume];if(ume==="before"||ume==="after")return this.beforeAfter(cme,ume);{let mme="raw"+((bme=ume)[0].toUpperCase()+bme.slice(1));this[mme]?fme=this[mme](hme,cme):hme.walk(vme=>{if(fme=vme.raws[dme],fme!==void 0)return!1})}var bme;return fme===void 0&&(fme=ome[ume]),hme.rawCache[ume]=fme,fme}rawSemicolon(cme){let dme;return cme.walk(ume=>{if(ume.nodes&&ume.nodes.length&&ume.last.type==="decl"&&(dme=ume.raws.semicolon,dme!==void 0))return!1}),dme}rawEmptyBody(cme){let dme;return cme.walk(ume=>{if(ume.nodes&&ume.nodes.length===0&&(dme=ume.raws.after,dme!==void 0))return!1}),dme}rawIndent(cme){if(cme.raws.indent)return cme.raws.indent;let dme;return cme.walk(ume=>{let fme=ume.parent;if(fme&&fme!==cme&&fme.parent&&fme.parent===cme&&ume.raws.before!==void 0){let pme=ume.raws.before.split(`
`);return dme=pme[pme.length-1],dme=dme.replace(/\S/g,""),!1}}),dme}rawBeforeComment(cme,dme){let ume;return cme.walkComments(fme=>{if(fme.raws.before!==void 0)return ume=fme.raws.before,ume.includes(`
`)&&(ume=ume.replace(/[^\n]+$/,"")),!1}),ume===void 0?ume=this.raw(dme,null,"beforeDecl"):ume&&(ume=ume.replace(/\S/g,"")),ume}rawBeforeDecl(cme,dme){let ume;return cme.walkDecls(fme=>{if(fme.raws.before!==void 0)return ume=fme.raws.before,ume.includes(`
`)&&(ume=ume.replace(/[^\n]+$/,"")),!1}),ume===void 0?ume=this.raw(dme,null,"beforeRule"):ume&&(ume=ume.replace(/\S/g,"")),ume}rawBeforeRule(cme){let dme;return cme.walk(ume=>{if(ume.nodes&&(ume.parent!==cme||cme.first!==ume)&&ume.raws.before!==void 0)return dme=ume.raws.before,dme.includes(`
`)&&(dme=dme.replace(/[^\n]+$/,"")),!1}),dme&&(dme=dme.replace(/\S/g,"")),dme}rawBeforeClose(cme){let dme;return cme.walk(ume=>{if(ume.nodes&&ume.nodes.length>0&&ume.raws.after!==void 0)return dme=ume.raws.after,dme.includes(`
`)&&(dme=dme.replace(/[^\n]+$/,"")),!1}),dme&&(dme=dme.replace(/\S/g,"")),dme}rawBeforeOpen(cme){let dme;return cme.walk(ume=>{if(ume.type!=="decl"&&(dme=ume.raws.between,dme!==void 0))return!1}),dme}rawColon(cme){let dme;return cme.walkDecls(ume=>{if(ume.raws.between!==void 0)return dme=ume.raws.between.replace(/[^\s:]/g,""),!1}),dme}beforeAfter(cme,dme){let ume;ume=cme.type==="decl"?this.raw(cme,null,"beforeDecl"):cme.type==="comment"?this.raw(cme,null,"beforeComment"):dme==="before"?this.raw(cme,null,"beforeRule"):this.raw(cme,null,"beforeClose");let fme=cme.parent,pme=0;for(;fme&&fme.type!=="root";)pme+=1,fme=fme.parent;if(ume.includes(`
`)){let hme=this.raw(cme,null,"indent");if(hme.length)for(let bme=0;bme<pme;bme++)ume+=hme}return ume}rawValue(cme,dme){let ume=cme[dme],fme=cme.raws[dme];return fme&&fme.value===ume?fme.raw:ume}}ime.exports=lme,lme.default=lme},88:(ime,ome,lme)=>{let sme=lme(62);function cme(dme,ume){new sme(ume).stringify(dme)}ime.exports=cme,cme.default=cme},513:ime=>{ime.exports.isClean=Symbol("isClean"),ime.exports.my=Symbol("my")},852:ime=>{const xme=/[\t\n\f\r "#'()/;[\\\]{}]/g,Tme=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ome=/.[\n"'(/\\]/,Rme=/[\da-f]/i;ime.exports=function(Nme,Ime={}){let Pme,Mme,kme,Bme,Dme,jme,Vme,Wme,Lme,zme,Ume=Nme.css.valueOf(),Gme=Ime.ignoreErrors,Jme=Ume.length,Yme=0,Qme=[],Xme=[];function Kme(Zme){throw Nme.error("Unclosed "+Zme,Yme)}return{back:function(Zme){Xme.push(Zme)},nextToken:function(Zme){if(Xme.length)return Xme.pop();if(Yme>=Jme)return;let nbe=!!Zme&&Zme.ignoreUnclosed;switch(Pme=Ume.charCodeAt(Yme),Pme){case 10:case 32:case 9:case 13:case 12:Mme=Yme;do Mme+=1,Pme=Ume.charCodeAt(Mme);while(Pme===32||Pme===10||Pme===9||Pme===13||Pme===12);zme=["space",Ume.slice(Yme,Mme)],Yme=Mme-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let lbe=String.fromCharCode(Pme);zme=[lbe,lbe,Yme];break}case 40:if(Wme=Qme.length?Qme.pop()[1]:"",Lme=Ume.charCodeAt(Yme+1),Wme==="url"&&Lme!==39&&Lme!==34&&Lme!==32&&Lme!==10&&Lme!==9&&Lme!==12&&Lme!==13){Mme=Yme;do{if(jme=!1,Mme=Ume.indexOf(")",Mme+1),Mme===-1){if(Gme||nbe){Mme=Yme;break}Kme("bracket")}for(Vme=Mme;Ume.charCodeAt(Vme-1)===92;)Vme-=1,jme=!jme}while(jme);zme=["brackets",Ume.slice(Yme,Mme+1),Yme,Mme],Yme=Mme}else Mme=Ume.indexOf(")",Yme+1),Bme=Ume.slice(Yme,Mme+1),Mme===-1||Ome.test(Bme)?zme=["(","(",Yme]:(zme=["brackets",Bme,Yme,Mme],Yme=Mme);break;case 39:case 34:kme=Pme===39?"'":'"',Mme=Yme;do{if(jme=!1,Mme=Ume.indexOf(kme,Mme+1),Mme===-1){if(Gme||nbe){Mme=Yme+1;break}Kme("string")}for(Vme=Mme;Ume.charCodeAt(Vme-1)===92;)Vme-=1,jme=!jme}while(jme);zme=["string",Ume.slice(Yme,Mme+1),Yme,Mme],Yme=Mme;break;case 64:xme.lastIndex=Yme+1,xme.test(Ume),Mme=xme.lastIndex===0?Ume.length-1:xme.lastIndex-2,zme=["at-word",Ume.slice(Yme,Mme+1),Yme,Mme],Yme=Mme;break;case 92:for(Mme=Yme,Dme=!0;Ume.charCodeAt(Mme+1)===92;)Mme+=1,Dme=!Dme;if(Pme=Ume.charCodeAt(Mme+1),Dme&&Pme!==47&&Pme!==32&&Pme!==10&&Pme!==9&&Pme!==13&&Pme!==12&&(Mme+=1,Rme.test(Ume.charAt(Mme)))){for(;Rme.test(Ume.charAt(Mme+1));)Mme+=1;Ume.charCodeAt(Mme+1)===32&&(Mme+=1)}zme=["word",Ume.slice(Yme,Mme+1),Yme,Mme],Yme=Mme;break;default:Pme===47&&Ume.charCodeAt(Yme+1)===42?(Mme=Ume.indexOf("*/",Yme+2)+1,Mme===0&&(Gme||nbe?Mme=Ume.length:Kme("comment")),zme=["comment",Ume.slice(Yme,Mme+1),Yme,Mme],Yme=Mme):(Tme.lastIndex=Yme+1,Tme.test(Ume),Mme=Tme.lastIndex===0?Ume.length-1:Tme.lastIndex-2,zme=["word",Ume.slice(Yme,Mme+1),Yme,Mme],Qme.push(zme),Yme=Mme)}return Yme++,zme},endOfFile:function(){return Xme.length===0&&Yme>=Jme},position:function(){return Yme}}}},448:ime=>{let ome={};ime.exports=function(lme){ome[lme]||(ome[lme]=!0,typeof console<"u"&&console.warn&&console.warn(lme))}},728:ime=>{class ome{constructor(sme,cme={}){if(this.type="warning",this.text=sme,cme.node&&cme.node.source){let dme=cme.node.rangeBy(cme);this.line=dme.start.line,this.column=dme.start.column,this.endLine=dme.end.line,this.endColumn=dme.end.column}for(let dme in cme)this[dme]=cme[dme]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}ime.exports=ome,ome.default=ome},465:function(ime,ome,lme){var sme=this&&this.__createBinding||(Object.create?function(dme,ume,fme,pme){pme===void 0&&(pme=fme);var hme=Object.getOwnPropertyDescriptor(ume,fme);hme&&!("get"in hme?!ume.__esModule:hme.writable||hme.configurable)||(hme={enumerable:!0,get:function(){return ume[fme]}}),Object.defineProperty(dme,pme,hme)}:function(dme,ume,fme,pme){pme===void 0&&(pme=fme),dme[pme]=ume[fme]}),cme=this&&this.__exportStar||function(dme,ume){for(var fme in dme)fme==="default"||Object.prototype.hasOwnProperty.call(ume,fme)||sme(ume,dme,fme)};ome.__esModule=!0,cme(lme(20),ome)},868:()=>{},777:()=>{},830:()=>{},209:()=>{},414:()=>{},961:ime=>{ime.exports={nanoid:(ome=21)=>{let lme="",sme=ome;for(;sme--;)lme+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return lme},customAlphabet:(ome,lme=21)=>(sme=lme)=>{let cme="",dme=sme;for(;dme--;)cme+=ome[Math.random()*ome.length|0];return cme}}}},tme={},ame=function ime(ome){var lme=tme[ome];if(lme!==void 0)return lme.exports;var sme=tme[ome]={exports:{}};return $P[ome].call(sme.exports,sme,sme.exports,ime),sme.exports}(465),nme=x_;for(var rme in ame)nme[rme]=ame[rme];ame.__esModule&&Object.defineProperty(nme,"__esModule",{value:!0})})()})(index_min);var _g$1L;function _extends$2l(){return _extends$2l=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2l.apply(null,arguments)}var SvgAudio=function x_(eme){return reactExports.createElement("svg",_extends$2l({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1L||(_g$1L=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 1.5h8l3 3v10h-11z"}),reactExports.createElement("circle",{cx:7,cy:10.5,r:2}),reactExports.createElement("path",{strokeLinecap:"round",d:"m11 4.5-2 1v5"}))))},_path$B;function _extends$2k(){return _extends$2k=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2k.apply(null,arguments)}var SvgCustom=function x_(eme){return reactExports.createElement("svg",_extends$2k({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$B||(_path$B=reactExports.createElement("path",{d:"m9 2.5-2 11m-2.247-2.247L1.5 8l3.253-3.253m6.505 6.506L14.511 8l-3.253-3.253",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))},_g$1K;function _extends$2j(){return _extends$2j=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2j.apply(null,arguments)}var SvgEach=function x_(eme){return reactExports.createElement("svg",_extends$2j({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1K||(_g$1K=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M6 3.5h5.5m-1.5 9H4.5"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M10.086 2.086 11.5 3.5l-1.414 1.414m-4.172 6.172L4.5 12.5l1.414 1.414M6 3.5a4.5 4.5 0 0 0-4.03 6.505m12.065-3.999A4.5 4.5 0 0 1 10 12.5M8 8a1.5 1.5 0 1 0-.998 1.414M8 8a1.5 1.5 0 1 0 1-1.415"}))))},_g$1J;function _extends$2i(){return _extends$2i=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2i.apply(null,arguments)}var SvgForm=function x_(eme){return reactExports.createElement("svg",_extends$2i({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1J||(_g$1J=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M1.5 5.502h13M3.752 8.244h1.5m1.996 0h5m-8.496 2.5h1.5m1.996 0h5"}))))},_path$A;function _extends$2h(){return _extends$2h=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2h.apply(null,arguments)}var SvgNav=function x_(eme){return reactExports.createElement("svg",_extends$2h({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$A||(_path$A=reactExports.createElement("path",{stroke:"currentColor",d:"m8 1.5 5.5 13-5.5-3-5.5 3z",fill:"none",strokeLinejoin:"round"})))},_g$1I;function _extends$2g(){return _extends$2g=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2g.apply(null,arguments)}var SvgQrcode=function x_(eme){return reactExports.createElement("svg",_extends$2g({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1I||(_g$1I=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h5v5H2zm7 0h5v5H9zM2 9h5v5H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M9 9v5m2.5-5v5M14 9v5"}))))},_g$1H;function _extends$2f(){return _extends$2f=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2f.apply(null,arguments)}var SvgService=function x_(eme){return reactExports.createElement("svg",_extends$2f({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1H||(_g$1H=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M2 6h12M2 10h12M4 4h2M4 8h2m-2 4h2"}))))},_g$1G;function _extends$2e(){return _extends$2e=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2e.apply(null,arguments)}var SvgTable=function x_(eme){return reactExports.createElement("svg",_extends$2e({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1G||(_g$1G=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2 6h12M2 10h12"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M6 6v8m4-8v8"}))))},_g$1F;function _extends$2d(){return _extends$2d=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2d.apply(null,arguments)}var SvgTasks=function x_(eme){return reactExports.createElement("svg",_extends$2d({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1F||(_g$1F=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M7.268 4.526 5.146 6.647 3.732 5.233M9 5.5h3"}),reactExports.createElement("circle",{cx:5.5,cy:10.5,r:1.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"M9 10.5h3"}))))},_g$1E;function _extends$2c(){return _extends$2c=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2c.apply(null,arguments)}var SvgVideo=function x_(eme){return reactExports.createElement("svg",_extends$2c({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1E||(_g$1E=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"m10.5 8-4 2.5v-5z"}))))},_g$1D;function _extends$2b(){return _extends$2b=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2b.apply(null,arguments)}var SvgWizard=function x_(eme){return reactExports.createElement("svg",_extends$2b({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1D||(_g$1D=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:3.25,cy:3.25,r:1.25}),reactExports.createElement("circle",{cx:3.25,cy:8,r:1.25}),reactExports.createElement("circle",{cx:3.25,cy:12.75,r:1.25}),reactExports.createElement("path",{strokeLinecap:"round",d:"M6.5 3.25H14m-7.5 9.5H14M6.5 8H14M3.25 4.5v2m0 3v2"}))))},_g$1C;function _extends$2a(){return _extends$2a=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2a.apply(null,arguments)}var SvgAnchorNav=function x_(eme){return reactExports.createElement("svg",_extends$2a({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1C||(_g$1C=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"M2 2v12"}),reactExports.createElement("path",{d:"M4.5 2H14v2.5H4.5zm0 4.75H14v2.5H4.5zm0 4.75H14V14H4.5z"}))))},_g$1B;function _extends$29(){return _extends$29=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$29.apply(null,arguments)}var SvgCollapse=function x_(eme){return reactExports.createElement("svg",_extends$29({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1B||(_g$1B=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M10.828 8 8 5.172 5.172 8M2 11h12"}))))},_path$z;function _extends$28(){return _extends$28=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$28.apply(null,arguments)}var SvgContainer=function x_(eme){return reactExports.createElement("svg",_extends$28({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$z||(_path$z=reactExports.createElement("path",{stroke:"currentColor",d:"M2 2h12v12H2z",fill:"none",strokeLinejoin:"round"})))},_path$y;function _extends$27(){return _extends$27=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$27.apply(null,arguments)}var SvgSwitchContainer=function x_(eme){return reactExports.createElement("svg",_extends$27({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$y||(_path$y=reactExports.createElement("path",{d:"M0 265.143v713.143h1024V265.143H0zm987.429 676.571H36.57v-640h950.86v640zM54.857 228.571h914.286a18.286 18.286 0 0 0 0-36.571H54.857a18.286 18.286 0 0 0 0 36.571zm54.857-73.142h804.572a18.286 18.286 0 0 0 0-36.572H109.714a18.286 18.286 0 0 0 0 36.572zm54.857-73.143H859.43a18.286 18.286 0 0 0 0-36.572H164.57a18.286 18.286 0 0 0 0 36.572z"})))},_g$1A;function _extends$26(){return _extends$26=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$26.apply(null,arguments)}var SvgFlexContainer=function x_(eme){return reactExports.createElement("svg",_extends$26({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1A||(_g$1A=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M2 6h12M7 6v8"}))))},_g$1z;function _extends$25(){return _extends$25=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$25.apply(null,arguments)}var SvgFormGroup=function x_(eme){return reactExports.createElement("svg",_extends$25({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1z||(_g$1z=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4 5h1m2 0h5M4 8h1m2 0h5m-8 3h1m2 0h5"}))))},_path$x;function _extends$24(){return _extends$24=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$24.apply(null,arguments)}var SvgGrid=function x_(eme){return reactExports.createElement("svg",_extends$24({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$x||(_path$x=reactExports.createElement("path",{d:"M1.498 2H7v12H1.498zM9 2h5.502v12H9z",fill:"none",strokeLinejoin:"round",stroke:"currentColor"})))},_g$1y;function _extends$23(){return _extends$23=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$23.apply(null,arguments)}var SvgIframe=function x_(eme){return reactExports.createElement("svg",_extends$23({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1y||(_g$1y=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"M2 8h6v6H2z"}))))},_g$1x;function _extends$22(){return _extends$22=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$22.apply(null,arguments)}var SvgPanel=function x_(eme){return reactExports.createElement("svg",_extends$22({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1x||(_g$1x=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M2 6h12"}))))},_g$1w;function _extends$21(){return _extends$21=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$21.apply(null,arguments)}var SvgTableView=function x_(eme){return reactExports.createElement("svg",_extends$21({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1w||(_g$1w=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M2 6h12M2 10h12M6 2v12m4-12v12"}))))},_g$1v;function _extends$20(){return _extends$20=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$20.apply(null,arguments)}var SvgTabs=function x_(eme){return reactExports.createElement("svg",_extends$20({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1v||(_g$1v=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.498 2H8v3.838h6.498V14h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M3.713 3.807h2m4.989-.073h2.069"}))))},_path$w;function _extends$1$(){return _extends$1$=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1$.apply(null,arguments)}var SvgWebComponent=function x_(eme){return reactExports.createElement("svg",_extends$1$({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$w||(_path$w=reactExports.createElement("path",{d:"M9 2a1.5 1.5 0 0 1 1.493 1.356l.007.144H14v4a1.5 1.5 0 0 0 0 3V14h-3.5a1.5 1.5 0 0 0-3 0h-4v-3.5a1.5 1.5 0 0 1-.144-2.993L3.5 7.5v-4h4A1.5 1.5 0 0 1 9 2Z",stroke:"currentColor",fill:"none",strokeLinejoin:"round"})))},_g$1u;function _extends$1_(){return _extends$1_=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1_.apply(null,arguments)}var SvgTooltipWrapper=function x_(eme){return reactExports.createElement("svg",_extends$1_({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1u||(_g$1u=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v9.5h-4L6 14v-2.5H2z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m5.5 4.5 5 .015"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M8 4.5v5"}))))},_g$1t;function _extends$1Z(){return _extends$1Z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1Z.apply(null,arguments)}var SvgBtnGroup=function x_(eme){return reactExports.createElement("svg",_extends$1Z({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1t||(_g$1t=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 4.5h11v9h-11z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.5 2.5h11v9"}),reactExports.createElement("path",{d:"M4.383 10.506c.32 0 .574-.06.75-.178.208-.143.313-.366.313-.67 0-.203-.05-.367-.148-.485a.734.734 0 0 0-.447-.24.743.743 0 0 0 .346-.25.749.749 0 0 0 .122-.43.682.682 0 0 0-.236-.543c-.168-.144-.405-.216-.704-.216H3v3.012h1.383ZM4.248 8.76h-.755V7.9h.764c.202 0 .346.033.438.1.085.064.131.17.131.313 0 .156-.046.27-.13.341-.09.068-.237.106-.448.106Zm.064 1.34h-.819v-.936h.831c.22 0 .38.038.481.114.097.076.148.199.148.371 0 .17-.068.287-.203.363a.908.908 0 0 1-.438.089Zm2.846.406v-2.59h.987v-.422H5.678v.422h.987v2.59h.493Zm1.839 0V8.304h.017l1.505 2.202H11V7.494h-.498v2.172h-.016l-1.49-2.172h-.493v3.012h.494Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$1s;function _extends$1Y(){return _extends$1Y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1Y.apply(null,arguments)}var SvgBtnSelect=function x_(eme){return reactExports.createElement("svg",_extends$1Y({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1s||(_g$1s=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"M5.527 5.52 9.77 6.934 8.356 8.348 6.942 9.762z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m8.356 8.348 2.121 2.122"}))))},_g$1r;function _extends$1X(){return _extends$1X=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1X.apply(null,arguments)}var SvgBtnToolbar=function x_(eme){return reactExports.createElement("svg",_extends$1X({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1r||(_g$1r=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{d:"M4.729 10.118c.4 0 .717-.078.938-.235.259-.19.39-.488.39-.891 0-.269-.063-.487-.184-.644-.127-.163-.311-.27-.559-.32a.934.934 0 0 0 .432-.33c.1-.157.153-.347.153-.572 0-.302-.1-.543-.295-.722-.21-.19-.506-.286-.88-.286H3v4h1.729Zm-.169-2.32h-.943V6.657h.954c.253 0 .432.045.548.134.106.084.164.224.164.415 0 .207-.058.358-.164.454-.11.09-.295.14-.559.14Zm.08 1.782H3.616V8.337h1.038c.274 0 .475.05.601.15.121.102.185.264.185.494 0 .224-.085.38-.253.482-.132.078-.317.117-.549.117Zm3.558.538v-3.44H9.43v-.56H6.347v.56h1.234v3.44h.617Zm2.298 0V7.194h.021l1.882 2.924H13v-4h-.622v2.885h-.021l-1.861-2.885h-.617v4h.617Z",strokeWidth:.15,fill:"currentColor",fillRule:"nonzero"}))))},_g$1q;function _extends$1W(){return _extends$1W=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1W.apply(null,arguments)}var SvgButton=function x_(eme){return reactExports.createElement("svg",_extends$1W({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1q||(_g$1q=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{d:"M4.897 9.785c.38 0 .68-.07.89-.21.245-.17.37-.435.37-.795 0-.24-.06-.435-.175-.575-.12-.145-.295-.24-.53-.285a.881.881 0 0 0 .41-.295.888.888 0 0 0 .146-.51.811.811 0 0 0-.28-.645c-.2-.17-.48-.255-.835-.255H3.258v3.57h1.64Zm-.16-2.07h-.895v-1.02h.905c.24 0 .41.04.52.12.1.075.155.2.155.37 0 .185-.054.32-.154.405-.106.08-.28.125-.53.125Zm.075 1.59h-.97v-1.11h.985c.26 0 .45.045.57.135.115.09.175.235.175.44 0 .2-.08.34-.24.43-.125.07-.3.105-.52.105Zm3.375.48v-3.07h1.17v-.5H6.434v.5h1.17v3.07h.585Zm2.18 0v-2.61h.02l1.785 2.61h.57v-3.57h-.59V8.79h-.02l-1.764-2.575h-.585v3.57h.585Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$1p;function _extends$1V(){return _extends$1V=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1V.apply(null,arguments)}var SvgDropdownBtn=function x_(eme){return reactExports.createElement("svg",_extends$1V({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1p||(_g$1p=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M11.182 6.433 8 9.615 4.818 6.433"}))))},_g$1o;function _extends$1U(){return _extends$1U=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1U.apply(null,arguments)}var SvgBreadcrumb=function x_(eme){return reactExports.createElement("svg",_extends$1U({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1o||(_g$1o=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h3v10h-3zm10 0h3v10h-3z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M7.14 6.232 8.909 8 7.141 9.768"}))))},_g$1n;function _extends$1T(){return _extends$1T=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1T.apply(null,arguments)}var SvgCard=function x_(eme){return reactExports.createElement("svg",_extends$1T({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1n||(_g$1n=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M1.5 5.5h13M3.5 10h3"}))))},_path$v;function _extends$1S(){return _extends$1S=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1S.apply(null,arguments)}var SvgCards=function x_(eme){return reactExports.createElement("svg",_extends$1S({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$v||(_path$v=reactExports.createElement("path",{d:"M2 2h5v4H2zm0 6h5v6H2zm7-6h5v7H9zm0 9h5v3H9z",fill:"none",strokeLinejoin:"round",stroke:"currentColor"})))},_g$1m;function _extends$1R(){return _extends$1R=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1R.apply(null,arguments)}var SvgCarousel=function x_(eme){return reactExports.createElement("svg",_extends$1R({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1m||(_g$1m=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M3.5 2.5h9v11h-9z"}),reactExports.createElement("circle",{cx:6.5,cy:6,r:1}),reactExports.createElement("path",{d:"M13.022 4H14.5v8h-1.48M2.998 12H1.5V4h1.496M3.5 9.5a2.828 2.828 0 0 0 4 0 3.45 3.45 0 0 1 4.353-.431l.647.431h0",strokeLinecap:"round"}))))},_g$1l;function _extends$1Q(){return _extends$1Q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1Q.apply(null,arguments)}var SvgChart=function x_(eme){return reactExports.createElement("svg",_extends$1Q({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1l||(_g$1l=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M6.966 2.5v6.533H13.5A6.013 6.013 0 1 1 6.966 2.5Z"}),reactExports.createElement("path",{d:"M9.393 1.5A5.107 5.107 0 0 1 14.485 7H9V1.515c.13-.01.26-.015.393-.015Z"}))))},_g$1k;function _extends$1P(){return _extends$1P=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1P.apply(null,arguments)}var SvgCode=function x_(eme){return reactExports.createElement("svg",_extends$1P({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1k||(_g$1k=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.621 10.121 3.5 8l2.121-2.121m4.757 0L12.499 8l-2.121 2.121"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m9 5-2 6"}))))},_g$1j;function _extends$1O(){return _extends$1O=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1O.apply(null,arguments)}var SvgDate=function x_(eme){return reactExports.createElement("svg",_extends$1O({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1j||(_g$1j=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 7.002h13"}))))},_g$1i;function _extends$1N(){return _extends$1N=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1N.apply(null,arguments)}var SvgDatetime=function x_(eme){return reactExports.createElement("svg",_extends$1N({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1i||(_g$1i=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 6.002h13M6.997 11h3m-3-3v3"}))))},_g$1h;function _extends$1M(){return _extends$1M=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1M.apply(null,arguments)}var SvgTime=function x_(eme){return reactExports.createElement("svg",_extends$1M({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1h||(_g$1h=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"m8 8 2.598 1.5M8 5v3"}))))},_g$1g;function _extends$1L(){return _extends$1L=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1L.apply(null,arguments)}var SvgImage=function x_(eme){return reactExports.createElement("svg",_extends$1L({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1g||(_g$1g=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("circle",{cx:5,cy:5,r:1}),reactExports.createElement("path",{strokeLinecap:"round",d:"m2 12 3-3 2 2 4-4 3 3"}))))},_g$1f;function _extends$1K(){return _extends$1K=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1K.apply(null,arguments)}var SvgImages=function x_(eme){return reactExports.createElement("svg",_extends$1K({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1f||(_g$1f=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 4h10v10H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m2 13 3-3 2 2 3-3 2 2"}),reactExports.createElement("circle",{cx:4.5,cy:6.5,r:1}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4 2h10v10"}))))},_g$1e;function _extends$1J(){return _extends$1J=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1J.apply(null,arguments)}var SvgList=function x_(eme){return reactExports.createElement("svg",_extends$1J({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1e||(_g$1e=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4 5h1M4 8h1m-1 3h1m2-6h5m-5 6h5M7 8h5"}))))},_g$1d;function _extends$1I(){return _extends$1I=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1I.apply(null,arguments)}var SvgLog=function x_(eme){return reactExports.createElement("svg",_extends$1I({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1d||(_g$1d=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 2.5h11v12h-11z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 1.5v2m6-2v2M5.5 6h5m-5 2.5h5m-5 2.5h3"}))))},_g$1c;function _extends$1H(){return _extends$1H=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1H.apply(null,arguments)}var SvgMapping=function x_(eme){return reactExports.createElement("svg",_extends$1H({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1c||(_g$1c=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h4.5v12H2zm7.5 0H14v12H9.5z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4.25 7v2m7.5-2v2M6.5 8h3"}))))},_g$1b;function _extends$1G(){return _extends$1G=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1G.apply(null,arguments)}var SvgAvatar=function x_(eme){return reactExports.createElement("svg",_extends$1G({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1b||(_g$1b=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("circle",{cx:8,cy:5.5,r:2}),reactExports.createElement("path",{d:"M12.519 12.358a5 5 0 0 0-8.99-.1",strokeLinecap:"round"}))))},_g$1a;function _extends$1F(){return _extends$1F=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1F.apply(null,arguments)}var SvgSparkline=function x_(eme){return reactExports.createElement("svg",_extends$1F({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1a||(_g$1a=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M14.5 13.5h-13v-11"}),reactExports.createElement("path",{d:"m4 10 2.5-3 3 2L13 5"}))))},_path$u;function _extends$1E(){return _extends$1E=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1E.apply(null,arguments)}var SvgProgress=function x_(eme){return reactExports.createElement("svg",_extends$1E({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$u||(_path$u=reactExports.createElement("path",{d:"M10.964 4.464 14.5 8l-3.536 3.536M6.168 4.464 9.703 8l-3.535 3.536M1.5 4.464 5.036 8 1.5 11.536",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))},_g$19;function _extends$1D(){return _extends$1D=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1D.apply(null,arguments)}var SvgJsonView=function x_(eme){return reactExports.createElement("svg",_extends$1D({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$19||(_g$19=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:5,cy:9.75,r:1}),reactExports.createElement("circle",{cx:8,cy:9.75,r:1}),reactExports.createElement("circle",{cx:11,cy:9.75,r:1}),reactExports.createElement("path",{d:"M1.5 8a1 1 0 0 0 1-1V3.5a1 1 0 0 1 1-1h0M1.5 8a1 1 0 0 1 1 1v3.5a1 1 0 0 0 1 1h0m11-5.5a1 1 0 0 1-1-1V3.5a1 1 0 0 0-1-1h0m2 5.5a1 1 0 0 0-1 1v3.5a1 1 0 0 1-1 1h0",strokeLinecap:"round"}))))},_g$18;function _extends$1C(){return _extends$1C=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1C.apply(null,arguments)}var SvgMarkdown=function x_(eme){return reactExports.createElement("svg",_extends$1C({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$18||(_g$18=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 1.5h8l3 3v10h-11z"}),reactExports.createElement("path",{strokeWidth:.2,fill:"currentColor",fillRule:"nonzero",d:"M6.149 11.5V8.056h.027l1.47 3.444h.708l1.47-3.444h.027V11.5h.82V6.502h-.96l-1.694 3.92H7.99l-1.702-3.92H5.33V11.5z"}))))},_g$17;function _extends$1B(){return _extends$1B=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1B.apply(null,arguments)}var SvgSteps=function x_(eme){return reactExports.createElement("svg",_extends$1B({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$17||(_g$17=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M3.13 6.232 4.898 8 3.13 9.768zm4 0L8.898 8 7.13 9.768zm4 0L12.898 8 11.13 9.768z"}))))},_g$16;function _extends$1A(){return _extends$1A=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1A.apply(null,arguments)}var SvgStatus=function x_(eme){return reactExports.createElement("svg",_extends$1A({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$16||(_g$16=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M8 5.5A4.001 4.001 0 0 1 11.71 8a4.002 4.002 0 0 1-7.42 0A4 4 0 0 1 8 5.5Z"}),reactExports.createElement("circle",{cx:8,cy:8,r:1}),reactExports.createElement("path",{d:"M2 2h12v12H2z"}))))},_g$15;function _extends$1z(){return _extends$1z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1z.apply(null,arguments)}var SvgPlain=function x_(eme){return reactExports.createElement("svg",_extends$1z({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$15||(_g$15=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M5 13h6"}),reactExports.createElement("path",{d:"M3 3v1.5M13 3v1.5"}),reactExports.createElement("path",{strokeLinejoin:"round",d:"M3 3h10"}),reactExports.createElement("path",{d:"M8 3v10"}))))},_g$14;function _extends$1y(){return _extends$1y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1y.apply(null,arguments)}var SvgUrl=function x_(eme){return reactExports.createElement("svg",_extends$1y({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$14||(_g$14=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.506.506h16v16h-16z"}),reactExports.createElement("path",{d:"m5.667 7.103.707.707-2.788 2.788a2 2 0 0 0 2.702 2.946l.127-.117 2.788-2.79.707.708-2.788 2.789a3.001 3.001 0 0 1-4.378-4.1l.135-.143 2.788-2.788Zm8.467-4.224a3 3 0 0 1 .135 4.098l-.135.144-2.75 2.75-.707-.707 2.75-2.75a2 2 0 0 0-2.702-2.945l-.127.117-2.75 2.75-.707-.708 2.75-2.749a3 3 0 0 1 4.243 0Z",fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"m9.203 7.012.707.708-2.121 2.12-.707-.706z"}))))},_g$13;function _extends$1x(){return _extends$1x=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1x.apply(null,arguments)}var SvgChainedSelect=function x_(eme){return reactExports.createElement("svg",_extends$1x({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$13||(_g$13=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13V7h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m12.5 4.185-1.06 1.061-1.061-1.06"}),reactExports.createElement("path",{d:"M1.5 9h13v4.5h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m12.5 10.685-1.06 1.061-1.061-1.06"}))))},_g$12;function _extends$1w(){return _extends$1w=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1w.apply(null,arguments)}var SvgCheckbox=function x_(eme){return reactExports.createElement("svg",_extends$1w({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$12||(_g$12=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"m11.536 5.781-4.243 4.243-2.829-2.829"}))))},_g$11;function _extends$1v(){return _extends$1v=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1v.apply(null,arguments)}var SvgCheckboxes=function x_(eme){return reactExports.createElement("svg",_extends$1v({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$11||(_g$11=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m11.536 5.825-4.243 4.243-2.829-2.829"}))))},_g$10;function _extends$1u(){return _extends$1u=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1u.apply(null,arguments)}var SvgCombo=function x_(eme){return reactExports.createElement("svg",_extends$1u({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$10||(_g$10=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"M4 2h10v10"}),reactExports.createElement("path",{d:"M2 4h10v10H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M9.121 8 7 10.121 4.879 8"}))))},_g$$;function _extends$1t(){return _extends$1t=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1t.apply(null,arguments)}var SvgConditionBuilder=function x_(eme){return reactExports.createElement("svg",_extends$1t({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$$||(_g$$=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"m7.322 10.502 1.386 1v-4L11 4.498H5l2.322 3.004z"}))))},_g$_;function _extends$1s(){return _extends$1s=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1s.apply(null,arguments)}var SvgDiffEditor=function x_(eme){return reactExports.createElement("svg",_extends$1s({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$_||(_g$_=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 3.5h7l2 2v9h-9z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4.5 1.5h7l2 2v9m-8-4.75h3M7 6.25v3m-1.5 2.5h3"}))))},_g$Z;function _extends$1r(){return _extends$1r=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1r.apply(null,arguments)}var SvgEditor=function x_(eme){return reactExports.createElement("svg",_extends$1r({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$Z||(_g$Z=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5.768 6.232 4 8l1.768 1.768m4.464-3.536L12 8l-1.768 1.768M8.5 5.5l-1 5"}))))},_g$Y;function _extends$1q(){return _extends$1q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1q.apply(null,arguments)}var SvgHidden=function x_(eme){return reactExports.createElement("svg",_extends$1q({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$Y||(_g$Y=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M8 3.5c2.967 0 5.5 1.868 6.5 4.5-1 2.631-3.533 4.5-6.5 4.5S2.5 10.632 1.5 8c1-2.63 3.533-4.5 6.5-4.5Z"}),reactExports.createElement("circle",{cx:8,cy:8,r:2.25}),reactExports.createElement("path",{strokeLinecap:"round",d:"m3.5 2.5 9 11"}))))},_g$X;function _extends$1p(){return _extends$1p=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1p.apply(null,arguments)}var SvgInputCity=function x_(eme){return reactExports.createElement("svg",_extends$1p({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$X||(_g$X=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M3 2h7v12H3zm7 5h3v7h-3z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M2 14h12M5 5h3M5 8h3m-3 3h3"}))))},_g$W;function _extends$1o(){return _extends$1o=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1o.apply(null,arguments)}var SvgInputColor=function x_(eme){return reactExports.createElement("svg",_extends$1o({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$W||(_g$W=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("circle",{cx:8,cy:6.85,r:2.5}),reactExports.createElement("circle",{cx:9.5,cy:9.15,r:2.5}),reactExports.createElement("circle",{cx:6.5,cy:9.15,r:2.5}))))},_g$V;function _extends$1n(){return _extends$1n=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1n.apply(null,arguments)}var SvgInputTimeRange=function x_(eme){return reactExports.createElement("svg",_extends$1n({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$V||(_g$V=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"M6.5 13.75h-5v-11h13v4m-9.5-5v2m6-2v2M1.5 5.752h13m-10.75 2h1.5"}),reactExports.createElement("circle",{cx:11,cy:10.75,r:3.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"M10.669 11.135h1.5m-1.5-1.497v1.5M3.75 9.752h1.5m-1.5 2h1.5"}))))},_g$U;function _extends$1m(){return _extends$1m=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1m.apply(null,arguments)}var SvgInputDateRange=function x_(eme){return reactExports.createElement("svg",_extends$1m({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$U||(_g$U=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 6.002h13M4.5 10h7m-7-1.5v3m7-3v3"}))))},_g$T;function _extends$1l(){return _extends$1l=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1l.apply(null,arguments)}var SvgInputMonthRange=function x_(eme){return reactExports.createElement("svg",_extends$1l({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$T||(_g$T=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 6.002h13M6 8.005v1m0-.5h6m-8 2.998h6m0-.5v1"}))))},_g$S;function _extends$1k(){return _extends$1k=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1k.apply(null,arguments)}var SvgInputQuarterRange=function x_(eme){return reactExports.createElement("svg",_extends$1k({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$S||(_g$S=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 2v2m6-2v2M1.5 6.002h13"}),reactExports.createElement("path",{d:"M4.7 11.799v-3.57h-.44c-.12.125-.27.24-.45.35-.18.1-.35.17-.51.21v.58c.33-.095.6-.24.815-.435v2.865H4.7Zm6.705.07c.39 0 .705-.11.945-.325.23-.21.345-.48.345-.81 0-.21-.06-.385-.18-.52-.11-.13-.275-.225-.485-.29.395-.13.595-.39.595-.78 0-.31-.11-.55-.325-.725-.22-.175-.515-.26-.875-.26-.35 0-.64.095-.865.295-.24.2-.37.48-.4.84h.575c.02-.215.09-.375.21-.48.115-.105.275-.155.485-.155.205 0 .36.045.465.135.095.09.145.22.145.395 0 .175-.055.31-.16.4-.11.09-.27.135-.48.135h-.25v.44h.25c.23 0 .405.045.525.145.12.095.185.245.185.45 0 .17-.06.31-.175.425-.13.125-.31.19-.535.19a.704.704 0 0 1-.495-.175c-.14-.125-.21-.305-.22-.535h-.595c.03.4.17.71.42.92.225.19.525.285.895.285Z",strokeWidth:.2,fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("path",{strokeWidth:.8,strokeLinecap:"round",strokeLinejoin:"round",d:"M5.923 10.014h3"}))))},_g$R;function _extends$1j(){return _extends$1j=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1j.apply(null,arguments)}var SvgInputDate=function x_(eme){return reactExports.createElement("svg",_extends$1j({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$R||(_g$R=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{d:"M8.784 12.005v-4h-.493c-.134.14-.302.269-.504.392-.202.112-.392.19-.571.235v.65c.37-.106.672-.269.913-.487v3.21h.655Z",strokeWidth:.2,fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 2v2m6-2v2M1.5 6.002h13"}))))},_g$Q;function _extends$1i(){return _extends$1i=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1i.apply(null,arguments)}var SvgInputDatetime=function x_(eme){return reactExports.createElement("svg",_extends$1i({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$Q||(_g$Q=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 6.002h13M6.997 11h3m-3-3v3"}))))},_g$P;function _extends$1h(){return _extends$1h=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1h.apply(null,arguments)}var SvgInputEmail=function x_(eme){return reactExports.createElement("svg",_extends$1h({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$P||(_g$P=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m1.5 3.5 6.5 5 6.5-5"}))))},_g$O;function _extends$1g(){return _extends$1g=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1g.apply(null,arguments)}var SvgInputExcel=function x_(eme){return reactExports.createElement("svg",_extends$1g({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$O||(_g$O=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 1.5h8l3 3v10h-11z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5.879 8.121 8 6l2.121 2.121M8 6v5"}))))},_g$N;function _extends$1f(){return _extends$1f=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1f.apply(null,arguments)}var SvgInputFile=function x_(eme){return reactExports.createElement("svg",_extends$1f({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$N||(_g$N=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h5l2 2h6v9h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5.879 8.612 8 6.491l2.121 2.121M8 6.509v5"}))))},_g$M;function _extends$1e(){return _extends$1e=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1e.apply(null,arguments)}var SvgInputGroup=function x_(eme){return reactExports.createElement("svg",_extends$1e({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$M||(_g$M=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"M4 2h10v10"}),reactExports.createElement("path",{d:"M2 4h10v10H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M6 6.5h2m-1 0v5m-1 0h2"}))))},_g$L;function _extends$1d(){return _extends$1d=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1d.apply(null,arguments)}var SvgInputImage=function x_(eme){return reactExports.createElement("svg",_extends$1d({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$L||(_g$L=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"m10.964 11.732 1.768-1.768 1.768 1.768m-5 .768h-8v-10h13v6m-1.768 1.464v3.5"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m3.5 10.5 2-2 2 2 5-5"}),reactExports.createElement("circle",{cx:4.5,cy:5.5,r:1}))))},_g$K;function _extends$1c(){return _extends$1c=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1c.apply(null,arguments)}var SvgInputKv=function x_(eme){return reactExports.createElement("svg",_extends$1c({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$K||(_g$K=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"M5.09 9.785v-1.23l.435-.425 1.41 1.655h.79L5.92 7.745l1.57-1.53h-.74L5.09 7.9V6.215h-.585v3.57h.585Zm5.135 0 1.27-3.57h-.635l-.98 2.91h-.015l-.98-2.91H8.25l1.27 3.57h.705Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$J;function _extends$1b(){return _extends$1b=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1b.apply(null,arguments)}var SvgInputNumber=function x_(eme){return reactExports.createElement("svg",_extends$1b({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$J||(_g$J=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"M9.092 10.856V5.144h-.656a3.324 3.324 0 0 1-.72.568c-.288.16-.552.272-.808.336v.864c.528-.152.968-.392 1.312-.72v4.664h.872Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$I;function _extends$1a(){return _extends$1a=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1a.apply(null,arguments)}var SvgInputPassword=function x_(eme){return reactExports.createElement("svg",_extends$1a({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$I||(_g$I=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v10h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m5.215 7.25 2.598 1.5m-2.598 0 2.598-1.5M6.514 6.5v3m4.271-3v3"}))))},_g$H;function _extends$19(){return _extends$19=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$19.apply(null,arguments)}var SvgInputRange=function x_(eme){return reactExports.createElement("svg",_extends$19({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$H||(_g$H=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4 5.5h1m-1 5h4"}),reactExports.createElement("circle",{cx:6.5,cy:5.5,r:1.5}),reactExports.createElement("circle",{cx:9.5,cy:10.5,r:1.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"M8 5.5h4m-1 5h1"}))))},_path$t;function _extends$18(){return _extends$18=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$18.apply(null,arguments)}var SvgInputRating=function x_(eme){return reactExports.createElement("svg",_extends$18({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$t||(_path$t=reactExports.createElement("path",{stroke:"currentColor",d:"M8 11.698 4.326 13.63l.702-4.09-2.972-2.898 4.107-.597L8 2.323l1.837 3.722 4.107.597-2.972 2.897.702 4.09z",fill:"none",strokeLinejoin:"round"})))},_g$G;function _extends$17(){return _extends$17=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$17.apply(null,arguments)}var SvgInputRepeat=function x_(eme){return reactExports.createElement("svg",_extends$17({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$G||(_g$G=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M13.151 4.035a6.5 6.5 0 0 0-11.48 5.453m1.208 2.516a6.5 6.5 0 0 0 11.445-5.513"}),reactExports.createElement("path",{d:"M13.5 2v2.5H11M2.5 14v-2.5H5M7 9h3M7 6v3"}))))},_g$F;function _extends$16(){return _extends$16=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$16.apply(null,arguments)}var SvgInputRichText=function x_(eme){return reactExports.createElement("svg",_extends$16({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$F||(_g$F=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("circle",{strokeLinejoin:"round",cx:3,cy:3,r:1}),reactExports.createElement("circle",{strokeLinejoin:"round",cx:13,cy:3,r:1}),reactExports.createElement("circle",{strokeLinejoin:"round",cx:13,cy:13,r:1}),reactExports.createElement("circle",{strokeLinejoin:"round",cx:3,cy:13,r:1}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3h8M4 13h8M3 4v8m10-8v8"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M8 5.5v5"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 5.5h4"}))))},_g$E;function _extends$15(){return _extends$15=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$15.apply(null,arguments)}var SvgInputTag=function x_(eme){return reactExports.createElement("svg",_extends$15({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$E||(_g$E=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"m1.98 7.636.706-4.95 4.95-.707L14 8.343 8.343 14z"}),reactExports.createElement("circle",{cx:6.045,cy:6.044,r:1.25}))))},_g$D;function _extends$14(){return _extends$14=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$14.apply(null,arguments)}var SvgInputText=function x_(eme){return reactExports.createElement("svg",_extends$14({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$D||(_g$D=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5h6"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M8 5v6"}))))},_path$s;function _extends$13(){return _extends$13=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$13.apply(null,arguments)}var SvgInputSignature=function x_(eme){return reactExports.createElement("svg",_extends$13({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$s||(_path$s=reactExports.createElement("path",{d:"M793.6 960H230.4C140.8 960 64 883.2 64 793.6V230.4C64 140.8 140.8 64 230.4 64h563.2C883.2 64 960 140.8 960 230.4v563.2c0 89.6-76.8 166.4-166.4 166.4zm108.8-729.6c0-64-51.2-115.2-115.2-115.2H230.4c-64 0-115.2 51.2-115.2 115.2v563.2c0 64 51.2 115.2 115.2 115.2h563.2c64 0 115.2-51.2 115.2-115.2V230.4zM403.2 793.6h390.4v57.6H403.2v-57.6zM512 678.4V736H288v-19.2L268.8 736l-38.4-38.4 467.2-467.2 38.4 38.4-409.6 409.6H512z",fill:"currentColor"})))},_g$C;function _extends$12(){return _extends$12=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$12.apply(null,arguments)}var SvgInputTime=function x_(eme){return reactExports.createElement("svg",_extends$12({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$C||(_g$C=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("circle",{cx:8,cy:8,r:3.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"M7.5 6.5v2m0 0h2"}))))},_g$B;function _extends$11(){return _extends$11=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$11.apply(null,arguments)}var SvgInputTree=function x_(eme){return reactExports.createElement("svg",_extends$11({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$B||(_g$B=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 2h12v4H2zm3 6h2v2H5zm0 4h2v2H5z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M3 6v7m6-5h5m-5 4h5m-5 2h3M3 9h2m-2 4h2m4-3h3"}))))},_g$A;function _extends$10(){return _extends$10=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$10.apply(null,arguments)}var SvgInputUrl=function x_(eme){return reactExports.createElement("svg",_extends$10({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$A||(_g$A=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("g",{strokeLinecap:"round"},reactExports.createElement("path",{d:"M8.707 7.293a1.5 1.5 0 0 1 0 2.121l-1.414 1.414a1.5 1.5 0 0 1-2.121-2.12l.353-.354"}),reactExports.createElement("path",{d:"M7.293 8.707a1.5 1.5 0 0 1 0-2.121l1.414-1.414a1.5 1.5 0 0 1 2.121 2.12l-.353.354"})))))},_g$z;function _extends$$(){return _extends$$=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$$.apply(null,arguments)}var SvgInputYear=function x_(eme){return reactExports.createElement("svg",_extends$$({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$z||(_g$z=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 2v2m6-2v2M1.5 6.002h13"}),reactExports.createElement("path",{d:"M8.607 12.35v-1.065h1.67v-.51h-1.67V9.85h1.346v-.49H8.607v-.645h1.52V8.21H7.111c.056-.14.106-.29.15-.45l-.54-.1a2.682 2.682 0 0 1-1 1.49l.35.445c.316-.24.58-.53.79-.88h1.22v.645h-1.48v1.415h-.77v.51h2.25v1.065h.525Zm-.524-1.575h-.955V9.85h.954v.925Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_path$r;function _extends$_(){return _extends$_=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$_.apply(null,arguments)}var SvgListSelect=function x_(eme){return reactExports.createElement("svg",_extends$_({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$r||(_path$r=reactExports.createElement("path",{d:"M2 10h12M2 14h12M6.95 2.39 3.768 5.572 2 3.804M9.5 2H14M9.5 6H14",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))},_g$y;function _extends$Z(){return _extends$Z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$Z.apply(null,arguments)}var SvgLocationPicker=function x_(eme){return reactExports.createElement("svg",_extends$Z({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$y||(_g$y=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M8 12.5c3-2.676 4.5-4.843 4.5-6.5a4.5 4.5 0 1 0-9 0C3.5 7.657 5 9.824 8 12.5Z"}),reactExports.createElement("circle",{cx:8,cy:6,r:2}),reactExports.createElement("path",{strokeLinecap:"round",d:"m12 11.5 1.5 3h-11l1.5-3"}))))},_path$q;function _extends$Y(){return _extends$Y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$Y.apply(null,arguments)}var SvgMatrixCheckboxes=function x_(eme){return reactExports.createElement("svg",_extends$Y({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$q||(_path$q=reactExports.createElement("path",{d:"M2 2h3v3H2zm4.5 0h3v3h-3zM11 2h3v3h-3zM2 6.5h3v3H2zm4.5 0h3v3h-3zm4.5 0h3v3h-3zM2 11h3v3H2zm4.5 0h3v3h-3zm4.5 0h3v3h-3z",fill:"none",strokeLinejoin:"round",stroke:"currentColor"})))},_g$x;function _extends$X(){return _extends$X=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$X.apply(null,arguments)}var SvgMonth=function x_(eme){return reactExports.createElement("svg",_extends$X({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$x||(_g$x=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5 2v2m6-2v2M1.5 6.002h13m-8 2.003H7m2 0h.5m2 0h.5m-8 2h.5m2 0H7m2 0h.5m2 0h.5m-8 2h.5m2 0H7m2 0h.5"}))))},_path$p;function _extends$W(){return _extends$W=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$W.apply(null,arguments)}var SvgNestedSelect=function x_(eme){return reactExports.createElement("svg",_extends$W({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$p||(_path$p=reactExports.createElement("path",{d:"M2 5.879 4.121 8 2 10.121M2 14h12M2 2h12m-7 8h7M7 6h7",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))},_g$w;function _extends$V(){return _extends$V=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$V.apply(null,arguments)}var SvgPicker=function x_(eme){return reactExports.createElement("svg",_extends$V({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$w||(_g$w=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 3.5h9v11h-9z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4.5 1.5h9v11M5 6h4M5 9h4m-4 3h4"}))))},_g$v;function _extends$U(){return _extends$U=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$U.apply(null,arguments)}var SvgQuarter=function x_(eme){return reactExports.createElement("svg",_extends$U({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$v||(_g$v=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v11h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 2v2m6-2v2M1.5 6.002h13"}),reactExports.createElement("path",{d:"M5.987 10.16c.83-.32 1.405-.705 1.736-1.15h.005v.7h.53v-.7h.02c.35.46.944.835 1.78 1.12l.235-.49c-.66-.155-1.16-.365-1.49-.63h1.354v-.48h-1.9v-.255c.556-.04 1.046-.095 1.47-.17L9.492 7.7c-.9.13-1.995.195-3.285.195l.146.44c.49 0 .945-.01 1.375-.03v.225h-1.9v.48h1.334c-.295.255-.78.49-1.455.7l.28.45Zm1.816 2.14c.375 0 .564-.165.564-.485v-.43h1.69v-.475h-1.69v-.04c.315-.17.6-.34.86-.515V9.9h-2.59v.455h1.896c-.175.09-.405.195-.69.325v.23h-1.92v.475h1.92v.26c0 .13-.075.2-.215.2-.196 0-.375-.005-.546-.005l.136.46h.585Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$u;function _extends$T(){return _extends$T=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$T.apply(null,arguments)}var SvgRadios=function x_(eme){return reactExports.createElement("svg",_extends$T({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$u||(_g$u=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("circle",{fill:"currentColor",cx:8,cy:8,r:2.5}))))},_g$t;function _extends$S(){return _extends$S=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$S.apply(null,arguments)}var SvgSelect=function x_(eme){return reactExports.createElement("svg",_extends$S({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$t||(_g$t=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M1.5 3h13v10h-13z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m12.5 6.95-2.121 2.122-2.122-2.121"}))))},_g$s;function _extends$R(){return _extends$R=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$R.apply(null,arguments)}var SvgStatic=function x_(eme){return reactExports.createElement("svg",_extends$R({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$s||(_g$s=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v10h-13z"}),reactExports.createElement("path",{d:"M7.957 6.537a.53.53 0 0 0 .377-.144.502.502 0 0 0 .158-.378.507.507 0 0 0-.15-.37.546.546 0 0 0-.385-.145.53.53 0 0 0-.378.144.482.482 0 0 0-.151.371c0 .151.048.275.15.378a.53.53 0 0 0 .379.144Zm.391 3.963V6.95h-.783v3.55h.783Z",strokeWidth:.2,fill:"currentColor",fillRule:"nonzero"}))))},_g$r;function _extends$Q(){return _extends$Q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$Q.apply(null,arguments)}var SvgSubForm=function x_(eme){return reactExports.createElement("svg",_extends$Q({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$r||(_g$r=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2 4h10v10H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M4 2h10v10M2 6.5h10M4 9h1m2 0h3m-6 2.502h1m2 0h3"}))))},_g$q;function _extends$P(){return _extends$P=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$P.apply(null,arguments)}var SvgSwitch=function x_(eme){return reactExports.createElement("svg",_extends$P({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$q||(_g$q=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("rect",{x:1.5,y:4,width:13,height:8,rx:4}),reactExports.createElement("circle",{cx:5.5,cy:8,r:2}))))},_g$p;function _extends$O(){return _extends$O=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$O.apply(null,arguments)}var SvgTabsTransfer=function x_(eme){return reactExports.createElement("svg",_extends$O({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$p||(_g$p=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{strokeLinecap:"round",d:"M4 2h10v10"}),reactExports.createElement("path",{d:"M2 4h10v10H2z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5.414 8.828 4 7.414 5.414 6m3.172 3.172L10 10.586 8.586 12M5 7.414h3m-2 3.172h3"}))))},_g$o;function _extends$N(){return _extends$N=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$N.apply(null,arguments)}var SvgTextarea=function x_(eme){return reactExports.createElement("svg",_extends$N({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$o||(_g$o=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 5h5"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M7 5v6"}),reactExports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.5 11h2m-2-2h2"}))))},_g$n;function _extends$M(){return _extends$M=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$M.apply(null,arguments)}var SvgTransfer=function x_(eme){return reactExports.createElement("svg",_extends$M({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$n||(_g$n=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M6 11.499V14H2V2h4v2.499m4 .001V2h4v12h-4v-2.504M5 8h2"}),reactExports.createElement("path",{d:"M5.414 9.414 4 8l1.414-1.414m5.172 0L12 8l-1.414 1.414M9 8h2"}))))},_g$m;function _extends$L(){return _extends$L=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$L.apply(null,arguments)}var SvgTreeSelect=function x_(eme){return reactExports.createElement("svg",_extends$L({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$m||(_g$m=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 1.5h11V6h-11z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"m11.5 3.185-1.06 1.061-1.061-1.06M3.5 6v7.5"}),reactExports.createElement("path",{d:"M7.5 8.5h6v2h-6zm0 4h6v2h-6z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M3.5 9.5h2m-2 4h2"}))))},_g$l;function _extends$K(){return _extends$K=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$K.apply(null,arguments)}var SvgUuid=function x_(eme){return reactExports.createElement("svg",_extends$K({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$l||(_g$l=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 3h13v10h-13z"}),reactExports.createElement("path",{d:"M4.218 9.456c.376 0 .668-.096.876-.288.208-.196.312-.48.312-.852V6.544h-.468v1.78c0 .248-.06.428-.172.548-.116.116-.3.176-.548.176-.252 0-.436-.06-.548-.176-.116-.12-.172-.3-.172-.548v-1.78H3.03v1.772c0 .372.104.656.316.856.2.188.492.284.872.284Zm3.136 0c.376 0 .668-.096.876-.288.208-.196.312-.48.312-.852V6.544h-.468v1.78c0 .248-.06.428-.172.548-.116.116-.3.176-.548.176-.252 0-.436-.06-.548-.176-.116-.12-.172-.3-.172-.548v-1.78h-.468v1.772c0 .372.104.656.316.856.2.188.492.284.872.284ZM9.77 9.4V6.544h-.468V9.4h.468Zm1.804 0c.464 0 .812-.128 1.052-.384.228-.244.344-.592.344-1.044 0-.456-.116-.804-.344-1.044-.24-.256-.588-.384-1.052-.384H10.53V9.4h1.044Zm-.088-.4h-.488V6.944h.488c.356 0 .616.08.78.244.16.16.24.424.24.784 0 .352-.08.612-.24.78-.164.164-.424.248-.78.248Z",strokeWidth:.2,fill:"currentColor",fillRule:"nonzero"}))))},_g$k;function _extends$J(){return _extends$J=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$J.apply(null,arguments)}var SvgFormula=function x_(eme){return reactExports.createElement("svg",_extends$J({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$k||(_g$k=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M2 2h12v12H2z"}),reactExports.createElement("path",{d:"M7.175 4.456c.434-.278 1.15-.227 1.492-.189.144.017.46.046.428.358-.025.25-.393.224-.491.224-.597 0-1.242-.306-1.589.952l-.162.79h.82c.15 0 .272.12.272.269 0 .149-.122.27-.273.27h-.935l-.736 3.58s-.07.574-.428.552a.38.38 0 0 1-.048-.006l.04-.013a.25.25 0 0 1-.098.02h-.996a.234.234 0 0 1-.234-.234v-.003a.25.25 0 0 1 .226-.249 3.49 3.49 0 0 0 .662-.121.53.53 0 0 0 .258-.145l.698-3.381H4.973a.267.267 0 0 1-.224-.122l-.022-.043.01-.016c.016-.015.042-.028.052-.046-.015-.014-.066-.027-.066-.043v.095L4.72 6.95l-.015-.066c.012-.252.126-.293.268-.293H6.2l.17-.805c.121-.57.371-1.05.806-1.329Zm3.954 2.23c.084.044.128.096.133.154.005.058-.018.115-.07.172l-.985 1.058.972 1.32c.03.04.038.087.02.139-.015.052-.083.09-.174.138a.33.33 0 0 1-.246.03.307.307 0 0 1-.157-.116l-.82-1.074-.996 1.07c-.119.126-.253.145-.407.055a.576.576 0 0 1-.193-.234c-.013-.061.012-.125.075-.194l1.1-1.185-.801-1.05c-.033-.048-.037-.104-.01-.168.025-.064.084-.101.147-.139a.4.4 0 0 1 .236-.047c.063.004.119.039.17.104l.667.86.806-.87a.44.44 0 0 1 .226-.125c.075-.022.225.056.307.101Z",fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("path",{d:"M0 0h14.5A1.5 1.5 0 0 1 16 1.5v13a1.5 1.5 0 0 1-1.5 1.5H0v-.5h14.5a1 1 0 0 0 1-1v-13a1 1 0 0 0-1-1H0V0Z"}))))},_g$j;function _extends$I(){return _extends$I=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$I.apply(null,arguments)}var SvgInputArray=function x_(eme){return reactExports.createElement("svg",_extends$I({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$j||(_g$j=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"currentColor"},reactExports.createElement("path",{strokeLinejoin:"round",d:"M1.5 2.5h13v11h-13z"}),reactExports.createElement("path",{d:"m7.582 10.318.266-.386c-.34-.23-.63-.555-.88-.97.27-.575.42-1.27.45-2.084h.29v-.455h-1.27c.04-.205.07-.42.1-.65l-.466-.08c-.1.93-.29 1.67-.57 2.22l.3.37c.09-.15.17-.32.25-.5.126.434.276.824.446 1.17a2.78 2.78 0 0 1-.886.965l.245.395c.35-.25.646-.56.88-.926.24.386.52.695.845.93Zm-4.135-2.25c.385-.27.66-.585.825-.946v.846h.435v-.56c.155.1.34.24.56.414l.25-.375a9.815 9.815 0 0 0-.81-.385v-.025h.87v-.415h-.87v-.92h-.434v.92h-.945v.415h.63c-.15.23-.396.446-.746.646l.235.385Zm1.726-1.515c.154-.205.28-.415.38-.625l-.335-.16c-.09.2-.215.405-.375.615l.33.17Zm-1.44-.016.34-.154c-.086-.22-.18-.42-.29-.61l-.375.125c.115.184.224.4.325.64Zm2.98 1.93a6.755 6.755 0 0 1-.43-1.365c.02-.07.04-.145.06-.224h.644c-.02.6-.11 1.13-.274 1.59Zm-3.29 1.83c.494-.13.91-.3 1.24-.514.274.125.51.245.704.365l.255-.37c-.19-.1-.39-.2-.595-.29.23-.23.39-.495.48-.795v-.386h-1.02c.03-.08.056-.155.085-.235l-.444-.054c-.03.09-.066.19-.106.29h-.705v.405h.525c-.095.19-.204.385-.325.595.23.09.45.175.656.26-.27.14-.595.25-.97.34l.22.39Zm1.17-.99a7.678 7.678 0 0 0-.51-.19c.08-.13.154-.265.224-.405h.775c-.11.22-.27.42-.49.595Zm3.84-.26a7.97 7.97 0 0 0 1.6-.415v-.434c-.34.13-.67.23-1 .31.3-.365.67-.94 1.104-1.72l-.43-.16c-.11.2-.21.385-.31.564-.19.03-.385.055-.575.075.26-.36.516-.83.766-1.41l-.45-.175c-.2.53-.43 1.005-.7 1.435-.06.09-.13.15-.206.18l.12.44.79-.104c-.25.394-.454.674-.62.84a.84.84 0 0 1-.215.14l.125.434Zm4.364 1.09v-.46h-.4v-3.76h-2.11v3.76h-.41v.46h2.92Zm-.865-2.985h-1.18v-.78h1.18v.78Zm0 1.266h-1.18v-.82h1.18v.82Zm0 1.26h-1.18v-.81h1.18v.81Zm-3.575.424a7.555 7.555 0 0 0 1.636-.56v-.45a7.432 7.432 0 0 1-1.696.535l.06.475Z",strokeWidth:.1,fill:"currentColor",fillRule:"nonzero"}))))},_g$i;function _extends$H(){return _extends$H=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$H.apply(null,arguments)}var SvgPropertySheet=function x_(eme){return reactExports.createElement("svg",_extends$H({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$i||(_g$i=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("path",{d:"M2.5 1.5h11v13h-11z"}),reactExports.createElement("path",{strokeLinecap:"round",d:"M5.5 5h5m-5 3h5m-5 3h5"}))))},_g$h;function _extends$G(){return _extends$G=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$G.apply(null,arguments)}var SvgTooltip=function x_(eme){return reactExports.createElement("svg",_extends$G({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$h||(_g$h=reactExports.createElement("g",{fill:"none",fillRule:"evenodd",strokeLinejoin:"round",stroke:"currentColor"},reactExports.createElement("circle",{cx:8,cy:8,r:6.5}),reactExports.createElement("path",{strokeLinecap:"round",d:"M8 7v4.5m0-7V5"}))))},_path$o;function _extends$F(){return _extends$F=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$F.apply(null,arguments)}var SvgDivider=function x_(eme){return reactExports.createElement("svg",_extends$F({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$o||(_path$o=reactExports.createElement("path",{d:"M2 3h12M2 13h12M2 8h2.6m6.8 0H14M6.7 8h2.6",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})))},_path$n,_path2$g,_path3$g;function _extends$E(){return _extends$E=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$E.apply(null,arguments)}var SvgLayoutAbsolute=function x_(eme){return reactExports.createElement("svg",_extends$E({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path$n||(_path$n=reactExports.createElement("path",{d:"M592 336H176c-52.928 0-96 43.072-96 96v416c0 52.928 43.072 96 96 96h416c52.928 0 96-43.072 96-96V432c0-52.928-43.072-96-96-96zm32 512a32 32 0 0 1-32 32H176c-17.632 0-32-14.336-32-32V432c0-17.632 14.368-32 32-32h416c17.664 0 32 14.368 32 32v416z",fill:"#515151"})),_path2$g||(_path2$g=reactExports.createElement("path",{d:"M720 208H304a32 32 0 0 0 0 64h416c17.664 0 32 14.368 32 32v416a32 32 0 1 0 64 0V304c0-52.928-43.072-96-96-96zM528 752H240a32 32 0 1 0 0 64h288a32 32 0 1 0 0-64z",fill:"currentColor"})),_path3$g||(_path3$g=reactExports.createElement("path",{d:"M848 80H432a32 32 0 0 0 0 64h416c17.664 0 32 14.368 32 32v416a32 32 0 1 0 64 0V176c0-52.928-43.072-96-96-96z",fill:"currentColor"})))},_g$g;function _extends$D(){return _extends$D=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$D.apply(null,arguments)}var SvgLayoutFixed=function x_(eme){return reactExports.createElement("svg",_extends$D({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$g||(_g$g=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.5 0h16v16H.5z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M11 10h4v4h-4z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M9.029 14H2V2h13v6"}))))},_g$f;function _extends$C(){return _extends$C=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$C.apply(null,arguments)}var SvgLayout1With2=function x_(eme){return reactExports.createElement("svg",_extends$C({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$f||(_g$f=reactExports.createElement("g",{stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M32.5 17h-31m16 3v13",strokeDasharray:0}))))},_g$e;function _extends$B(){return _extends$B=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$B.apply(null,arguments)}var SvgLayout2Cols=function x_(eme){return reactExports.createElement("svg",_extends$B({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$e||(_g$e=reactExports.createElement("g",{stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M16.5 1.5v32",strokeDasharray:0}))))},_g$d;function _extends$A(){return _extends$A=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$A.apply(null,arguments)}var SvgLayout2Row=function x_(eme){return reactExports.createElement("svg",_extends$A({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$d||(_g$d=reactExports.createElement("g",{stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M32.5 17h-31",strokeDasharray:0}))))},_g$c;function _extends$z(){return _extends$z=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$z.apply(null,arguments)}var SvgLayout2With1=function x_(eme){return reactExports.createElement("svg",_extends$z({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$c||(_g$c=reactExports.createElement("g",{transform:"matrix(1 0 0 -1 0 34)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M32.5 17h-31m16 3v13",strokeDasharray:0}))))},_g$b;function _extends$y(){return _extends$y=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$y.apply(null,arguments)}var SvgLayout3Cols=function x_(eme){return reactExports.createElement("svg",_extends$y({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$b||(_g$b=reactExports.createElement("g",{stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M11.5 1.5v32m11-32v32",strokeDasharray:0}))))},_g$a;function _extends$x(){return _extends$x=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$x.apply(null,arguments)}var SvgLayout3Row=function x_(eme){return reactExports.createElement("svg",_extends$x({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$a||(_g$a=reactExports.createElement("g",{transform:"rotate(90 17 17)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{d:"M11.5 1.5v32m11-32v32",strokeDasharray:0}))))},_defs,_g$9;function _extends$w(){return _extends$w=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$w.apply(null,arguments)}var SvgLayoutFull=function x_(eme){return reactExports.createElement("svg",_extends$w({viewBox:"0 0 34 34",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"icon"},eme),_defs||(_defs=reactExports.createElement("defs",null,reactExports.createElement("path",{id:"layout-full_svg__a",d:"M4.5 4h26v26h-26z"}),reactExports.createElement("mask",{id:"layout-full_svg__b",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:0,y:0,width:26,height:26,fill:"#fff"},reactExports.createElement("use",{xlinkHref:"#layout-full_svg__a"})))),_g$9||(_g$9=reactExports.createElement("g",{stroke:"currentColor",fill:"none"},reactExports.createElement("rect",{strokeWidth:2,x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("use",{mask:"url(#layout-full_svg__b)",strokeWidth:4,strokeDasharray:2,xlinkHref:"#layout-full_svg__a"}))))},_g$8;function _extends$v(){return _extends$v=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$v.apply(null,arguments)}var SvgLayout12=function x_(eme){return reactExports.createElement("svg",_extends$v({viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$8||(_g$8=reactExports.createElement("g",{transform:"rotate(-90 20 17)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{strokeDasharray:0,d:"M32.5 17h-31m16 3v13"}))))},_g$7;function _extends$u(){return _extends$u=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$u.apply(null,arguments)}var SvgLayout21=function x_(eme){return reactExports.createElement("svg",_extends$u({viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$7||(_g$7=reactExports.createElement("g",{transform:"matrix(0 -1 -1 0 37 37)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{strokeDasharray:0,d:"M32.5 17h-31m16 3v13"}))))},_g$6;function _extends$t(){return _extends$t=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$t.apply(null,arguments)}var SvgLayout31=function x_(eme){return reactExports.createElement("svg",_extends$t({viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$6||(_g$6=reactExports.createElement("g",{transform:"translate(3 3)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{strokeDasharray:0,d:"M32.5 17h-31m10 3v13m2.5-8h18"}))))},_g$5;function _extends$s(){return _extends$s=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$s.apply(null,arguments)}var SvgLayout32=function x_(eme){return reactExports.createElement("svg",_extends$s({viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$5||(_g$5=reactExports.createElement("g",{transform:"translate(3 3)",stroke:"currentColor",strokeWidth:2,fill:"none"},reactExports.createElement("rect",{x:1,y:1,width:32,height:32,rx:1}),reactExports.createElement("path",{strokeDasharray:0,d:"M9.5 17h-8m30 0h-8m-12-16v32m12-32v32"}))))},_g$4;function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$r.apply(null,arguments)}var SvgLayoutFreeContainer=function x_(eme){return reactExports.createElement("svg",_extends$r({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$4||(_g$4=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.25 0h16v16h-16z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M1.75 2h13v12h-13z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinecap:"square",d:"M2.25 11.038h12M11.617 2v12"}))))},_g$3;function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$q.apply(null,arguments)}var SvgLayoutFixedTop=function x_(eme){return reactExports.createElement("svg",_extends$q({xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$3||(_g$3=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M.375 0h16v16h-16z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",d:"M1.875 2h13v12h-13z"}),reactExports.createElement("path",{stroke:"currentColor",strokeLinecap:"square",d:"M2.375 11.159h12"}))))},_g$2;function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$p.apply(null,arguments)}var SvgFx$1=function x_(eme){return reactExports.createElement("svg",_extends$p({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$2||(_g$2=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M9.897 1.429c.865-.554 1.646-.489 2.328-.412.286.032.918.09.853.712-.052.497-.785.437-.98.446-1.128.05-1.83-.573-2.52 1.933L9.01 6.66l.887-.007c.3 0 .544.24.544.537a.54.54 0 0 1-.544.538l-1.118.008-1.545 6.16S7.092 15.043 6.38 15a.771.771 0 0 1-.08-.01l.069-.02a.467.467 0 0 1-.167.031H4.97a.467.467 0 0 1-.467-.467v-.032c0-.242.183-.444.423-.466a7.96 7.96 0 0 0 .992-.152.71.71 0 0 1 .02-.082l1.533-6.065H6.263a.535.535 0 0 1-.533-.492c.024-.503.25-.584.533-.584h1.442l.586-2.584c.241-1.136.74-2.091 1.606-2.647Zm4.885 4.449c.137.09.208.192.217.309a.502.502 0 0 1-.115.343l-1.61 2.108 1.589 2.63c.05.078.062.173.033.276-.024.105-.137.179-.286.275a.452.452 0 0 1-.4.06.52.52 0 0 1-.258-.23l-1.34-2.14-1.626 2.13c-.195.254-.415.291-.666.112-.103-.074-.292-.345-.314-.467-.022-.122.018-.25.122-.386l1.798-2.362-1.31-2.092a.397.397 0 0 1-.017-.335c.041-.127.138-.202.241-.276a.556.556 0 0 1 .386-.095c.102.008.194.078.278.207l1.09 1.713 1.317-1.733a.694.694 0 0 1 .368-.25c.124-.042.369.113.503.203Z",fill:"currentColor",fillRule:"nonzero"}),reactExports.createElement("rect",{fill:"currentColor",x:.898,y:6.66,width:4.5,height:1,rx:.5}),reactExports.createElement("rect",{fill:"currentColor",transform:"rotate(90 3.148 7.16)",x:.898,y:6.66,width:4.5,height:1,rx:.5}))))},_g$1;function _extends$o(){return _extends$o=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$o.apply(null,arguments)}var SvgFx=function x_(eme){return reactExports.createElement("svg",_extends$o({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_g$1||(_g$1=reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 0h16v16H0z"}),reactExports.createElement("path",{d:"M6.855 1.437C7.72.883 9.146.984 9.828 1.061c.286.032.918.09.853.712-.052.496-.785.446-.98.446-.216 0-.435-.02-.653-.038l-.218-.016c-.906-.058-1.771.053-2.294 1.951L6.213 5.69h1.633c.3 0 .543.24.543.537a.54.54 0 0 1-.543.538H5.982l-1.467 7.132S4.374 15.043 3.662 15a.782.782 0 0 1-.07-.008A.533.533 0 0 1 3.5 15H1.467A.467.467 0 0 1 1 14.533v-.032c0-.242.183-.444.423-.466.517-.05.965-.13 1.347-.244.12-.036.223-.078.308-.126a.465.465 0 0 1 .182-.057l1.415-6.844H2.467a.535.535 0 0 1-.534-.491l.012.069.008-.019c.014-.016.037-.03.046-.05-.013-.015-.058-.03-.058-.047v.093l-.008-.046c.022-.462.214-.568.464-.582l.07-.002h2.441l.34-1.605c.242-1.136.74-2.091 1.607-2.647Zm7.879 4.441c.167.09.254.192.265.309.01.116-.036.23-.14.343l-1.964 2.108 1.937 2.63a.282.282 0 0 1 .042.276c-.03.105-.168.179-.35.275a.656.656 0 0 1-.488.06.613.613 0 0 1-.314-.23l-1.634-2.14-1.983 2.13c-.237.254-.506.291-.812.112-.126-.074-.356-.345-.384-.467-.026-.122.023-.25.15-.386l2.192-2.362-1.597-2.092c-.067-.096-.073-.208-.021-.335.05-.127.168-.202.295-.276a.798.798 0 0 1 .47-.095c.124.008.236.078.339.207l1.328 1.713 1.607-1.733c.139-.152.297-.206.449-.25.15-.042.45.113.613.203Z",fill:"currentColor",fillRule:"nonzero"}))))},_path$m;function _extends$n(){return _extends$n=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$n.apply(null,arguments)}var SvgModalSetting=function x_(eme){return reactExports.createElement("svg",_extends$n({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$m||(_path$m=reactExports.createElement("path",{d:"M11.7 8c.11 0 .2.09.2.2v.933c.57.096 1.071.392 1.43.813l.859-.496a.2.2 0 0 1 .233.024l.04.05.2.346a.2.2 0 0 1-.023.233l-.05.04-.85.49a2.394 2.394 0 0 1 .042 1.617l.868.5a.2.2 0 0 1 .073.274l-.2.346a.2.2 0 0 1-.273.073l-.842-.485a2.399 2.399 0 0 1-1.507.909v.934a.2.2 0 0 1-.2.2h-.4a.2.2 0 0 1-.2-.2l-.001-.934a2.398 2.398 0 0 1-1.468-.86l-.758.436a.2.2 0 0 1-.232-.023l-.04-.05-.2-.346a.2.2 0 0 1 .023-.233l.05-.04.765-.443a2.396 2.396 0 0 1 .045-1.731l-.75-.434a.2.2 0 0 1-.074-.273l.2-.346a.2.2 0 0 1 .273-.074l.779.45c.354-.397.84-.674 1.387-.767l.001-.932c0-.11.09-.2.2-.2h.4Zm.8-6.9a2.4 2.4 0 0 1 2.394 2.236l.006.164v4.332a.2.2 0 0 1-.2.2h-.4a.2.2 0 0 1-.2-.2V4.9H1.899l.001 7.6a1.6 1.6 0 0 0 1.454 1.593l.146.007h4.304c.11 0 .2.09.2.2v.4a.2.2 0 0 1-.2.2H3.5a2.4 2.4 0 0 1-2.394-2.236L1.1 12.5v-9a2.4 2.4 0 0 1 2.236-2.394L3.5 1.1h9Zm-1.442 8.862.027-.008-.034.01-.028.008-.017.005-.011.003-.05.019a1.591 1.591 0 0 0-.502.3l-.016.014c-.16.144-.29.32-.38.517l-.061.151-.032.105.002-.011-.005.019.003-.008-.006.021-.001.007-.013.057a1.599 1.599 0 0 0-.026.168l-.001.015-.007.146a1.616 1.616 0 0 0 .036.337l.014.06c.055.215.152.411.283.58l.104.122.032.032.036.036-.068-.068a1.61 1.61 0 0 0 .296.246l.057.035c.125.074.261.13.405.168l.004.001.113.025a1.61 1.61 0 0 0 .576 0l.112-.024a1.594 1.594 0 0 0 .67-.36l.04-.038c.188-.18.331-.407.413-.66l.042-.156a1.5 1.5 0 0 0 .028-.19l.007-.146-.008-.146.004.035a1.61 1.61 0 0 0-.003-.04l-.007-.065a1.59 1.59 0 0 0-.047-.225l-.006-.017a1.598 1.598 0 0 0-.407-.679l-.056-.05-.04-.036-.008-.007-.053-.044a1.605 1.605 0 0 0-.224-.142l-.044-.022a1.592 1.592 0 0 0-.117-.052L12.06 10a1.485 1.485 0 0 0-.148-.047L11.9 9.95a1.603 1.603 0 0 0-.67-.027l-.13.028-.017.004-.025.007-.014.004-.008.002-.014.005-.01.002-.01.003.004-.001.006-.002.011-.003.013-.004.008-.002.014-.004ZM12.5 1.9h-9a1.6 1.6 0 0 0-1.593 1.454L1.9 3.5l-.001.6H14.1v-.6a1.6 1.6 0 0 0-1.454-1.593L12.5 1.9Zm-8.51.7a.2.2 0 0 1 .2.2v.4a.2.2 0 0 1-.2.2H3.4a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2h.59Zm1.8 0a.2.2 0 0 1 .2.2v.4a.2.2 0 0 1-.2.2H5.2a.2.2 0 0 1-.2-.2v-.4c0-.11.09-.2.2-.2h.59Z",fill:"currentColor"})))},_path$l,_path2$f,_path3$f;function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$m.apply(null,arguments)}var SvgBlock=function x_(eme){return reactExports.createElement("svg",_extends$m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 14",className:"icon"},eme),_path$l||(_path$l=reactExports.createElement("path",{opacity:.15,d:"M19 3v8H3V3h16m1-1H2v10h18V2z"})),_path2$f||(_path2$f=reactExports.createElement("path",{d:"M19.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h17.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 19.8 1zm.2 11H2V2h18v10z"})),_path3$f||(_path3$f=reactExports.createElement("path",{opacity:.35,d:"M3 3h16v8H3z"})))},_path$k;function _extends$l(){return _extends$l=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$l.apply(null,arguments)}var SvgInline=function x_(eme){return reactExports.createElement("svg",_extends$l({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 8",className:"icon"},eme),_path$k||(_path$k=reactExports.createElement("path",{d:"M14.814 6.25c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.41-.19V5.13h-.153c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.484.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3 1.566 1.566 0 0 1-.38-.57c-.1-.24-.152-.54-.152-.9 0-.346.048-.638.14-.878s.217-.437.368-.58c.16-.155.33-.26.52-.33a1.786 1.786 0 0 1 1.117-.013c.165.055.317.124.458.205a4.385 4.385 0 0 1 .643.47h.17V1.52c-.107-.05-.23-.107-.37-.168a3.613 3.613 0 0 0-1.003-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.674.33-.923.59c-.26.26-.458.58-.59.95S14 3.57 14 4.02c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.608c.272-.075.52-.2.75-.377a1.5 1.5 0 0 0 .46-.56 1.72 1.72 0 0 0 .17-.77c0-.4-.11-.72-.332-.96-.22-.244-.52-.404-.896-.48v-.04a1.46 1.46 0 0 0 .623-.516c.147-.22.22-.474.22-.763 0-.25-.052-.47-.16-.66a1.152 1.152 0 0 0-.49-.46 2.06 2.06 0 0 0-.64-.212A7.67 7.67 0 0 0 10.237 1H8v5.97h2.515c.418 0 .763-.037 1.035-.112zM9.478 2.095h.14c.29 0 .517.002.678.006.162.01.296.03.404.07a.46.46 0 0 1 .253.23.69.69 0 0 1 .072.298.85.85 0 0 1-.062.34.492.492 0 0 1-.263.24 1.052 1.052 0 0 1-.39.08c-.166.006-.366.01-.6.01h-.232v-1.27zm.108 3.78h-.108V4.388h.324c.222 0 .434 0 .638.004a1.8 1.8 0 0 1 .48.056c.17.05.29.127.36.23.07.104.106.25.106.44 0 .144-.03.272-.087.383s-.17.2-.32.27-.32.1-.5.11c-.18.004-.48.004-.9.004zm-6.64-.106h2.187l.41 1.2h1.574L4.935 1.03H3.182L1 6.97h1.535l.412-1.2zM4.04 2.55l.727 2.13H3.313l.727-2.13z"})))},_path$j,_path2$e,_path3$e;function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$k.apply(null,arguments)}var SvgInlineBlock=function x_(eme){return reactExports.createElement("svg",_extends$k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 14",className:"icon"},eme),_path$j||(_path$j=reactExports.createElement("path",{d:"M25 3v8H3V3h22m1-1H2v10h24V2z",opacity:.15})),_path2$e||(_path2$e=reactExports.createElement("path",{opacity:.35,d:"M8.418 9.8H7.66L7.25 11h1.58l-.232-.676-.18-.525zM3 11h.567l2.916-7.94h3.15L11 6.78V3H3v8zm15.12-1.002a3.302 3.302 0 0 1-.48-.586c-.173.343-.42.653-.73.888.002 0 .004-.002.005-.003l-.008.006.003-.003a3.145 3.145 0 0 1-1.092.55c-.4.11-.825.15-1.303.15h6.017a4.416 4.416 0 0 1-1.12-.215 3.51 3.51 0 0 1-1.292-.787zM14.237 3c.49 0 .853.014 1.167.06.335.05.656.16.953.314h.003l.004.003c.365.19.694.492.898.866.13.234.197.49.24.747.16-.298.343-.58.578-.82v-.002c.358-.366.8-.643 1.287-.826a4.373 4.373 0 0 1 1.557-.272 5.67 5.67 0 0 1 1.442.18l.01.002.01.003c.205.06.4.126.59.208.15.064.283.125.407.185l.562.274v3.016h-1.54l-.28-.24a7.018 7.018 0 0 0-.233-.188 2.703 2.703 0 0 0-.26-.175 1.594 1.594 0 0 0-.277-.125h-.006l-.2-.03a.772.772 0 0 0-.26.042l-.16.102a.63.63 0 0 0-.13.22 1.486 1.486 0 0 0-.075.516c0 .266.04.436.074.513a.59.59 0 0 0 .13.212l.15.09h.003a.868.868 0 0 0 .265.045l.236-.037h.008a1.04 1.04 0 0 0 .25-.113l.007-.004.01-.005.24-.16a6.41 6.41 0 0 0 .216-.17l.285-.254h1.536v3.017l-.59.266c-.15.066-.292.13-.422.184a4.19 4.19 0 0 1-.53.19 5.918 5.918 0 0 1-.636.15c-.076.012-.16.02-.24.026H25V3H14.237z"})),_path3$e||(_path3$e=reactExports.createElement("path",{d:"M25.8 1H2.2A1.2 1.2 0 0 0 1 2.2v9.6A1.2 1.2 0 0 0 2.2 13h23.6a1.2 1.2 0 0 0 1.2-1.2V2.2A1.2 1.2 0 0 0 25.8 1zm.2 11H2V2h24v10zm-7.186-2.72c.258.248.567.435.927.56s.76.19 1.18.19c.29 0 .51-.014.68-.042.167-.028.34-.07.53-.123.143-.04.28-.09.41-.146l.412-.19V8.16h-.154c-.07.06-.157.134-.265.22a3.337 3.337 0 0 1-.35.237 2.11 2.11 0 0 1-.485.22 1.798 1.798 0 0 1-1.1-.01 1.403 1.403 0 0 1-.523-.3c-.15-.14-.28-.33-.38-.57a2.36 2.36 0 0 1-.152-.9c0-.347.047-.64.14-.88s.216-.433.367-.58c.157-.15.33-.26.517-.325a1.786 1.786 0 0 1 1.116-.014c.164.056.316.125.457.206a4.868 4.868 0 0 1 .644.466h.17V4.54a13.03 13.03 0 0 0-.367-.168 3.667 3.667 0 0 0-1.005-.27 4.736 4.736 0 0 0-.65-.04c-.436 0-.837.07-1.205.207s-.675.333-.924.59c-.26.262-.457.58-.59.95S18 6.6 18 7.055c0 .488.07.918.213 1.29s.343.683.6.933zm-3.264.607c.272-.076.52-.2.75-.38.195-.15.35-.338.46-.567.113-.23.17-.488.17-.778 0-.4-.11-.722-.332-.967-.22-.245-.52-.406-.896-.484v-.03a1.46 1.46 0 0 0 .623-.51 1.36 1.36 0 0 0 .22-.77c0-.25-.052-.47-.16-.665a1.15 1.15 0 0 0-.49-.465 2.065 2.065 0 0 0-.64-.215A7.67 7.67 0 0 0 14.237 4H12v6h2.515c.418 0 .763-.037 1.035-.113zM13.478 5.1h.14c.29 0 .517.002.678.006s.296.027.404.07c.12.05.206.123.253.223a.69.69 0 0 1 .072.29.86.86 0 0 1-.062.34c-.042.1-.13.18-.263.24a1.05 1.05 0 0 1-.39.08c-.166.007-.366.01-.6.01h-.233V5.1zm.108 3.8h-.108V7.405h.324c.222 0 .434 0 .638.004.203 0 .363.02.48.05.17.05.29.13.36.23s.106.25.106.44c0 .144-.03.272-.087.384s-.17.2-.32.27a1.257 1.257 0 0 1-.5.104c-.18.003-.48.004-.9.004zm-6.64-.1h2.187l.41 1.2h1.574L8.935 4.06H7.182L5 10h1.535l.412-1.2zM8.04 5.58l.727 2.13H7.313l.727-2.13z"})))},_path$i,_path2$d,_path3$d,_path4$a,_path5,_path6,_path7,_path8;function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$j.apply(null,arguments)}var SvgFlex=function x_(eme){return reactExports.createElement("svg",_extends$j({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 14",className:"icon"},eme),_path$i||(_path$i=reactExports.createElement("path",{d:"M21 2v10H2V2h19zm1-1H1v12h21V1z",opacity:.15})),_path2$d||(_path2$d=reactExports.createElement("path",{d:"M1.2 0A1.2 1.2 0 0 0 0 1.2v11.6A1.2 1.2 0 0 0 1.2 14h20.6a1.2 1.2 0 0 0 1.2-1.2V1.2A1.2 1.2 0 0 0 21.8 0H1.2zM22 13H1V1h21v12z"})),_path3$d||(_path3$d=reactExports.createElement("path",{opacity:.4,d:"M3 3h5v8H3z"})),_path4$a||(_path4$a=reactExports.createElement("path",{d:"M4 4v6h3V4H4zm4-1v8H3V3h5z"})),_path5||(_path5=reactExports.createElement("path",{opacity:.4,d:"M9 3h5v8H9z"})),_path6||(_path6=reactExports.createElement("path",{d:"M10 4v6h3V4h-3zm4-1v8H9V3h5z"})),_path7||(_path7=reactExports.createElement("path",{opacity:.4,d:"M15 3h5v8h-5z"})),_path8||(_path8=reactExports.createElement("path",{d:"M16 4v6h3V4h-3zm4-1v8h-5V3h5z"})))},_path$h,_path2$c,_path3$c;function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$i.apply(null,arguments)}var SvgDrow=function x_(eme){return reactExports.createElement("svg",_extends$i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19 9",className:"icon"},eme),_path$h||(_path$h=reactExports.createElement("path",{d:"M16 4h-4v1h4v2l3-2.5L16 2v2zM6 0h5v9H6z"})),_path2$c||(_path2$c=reactExports.createElement("path",{opacity:.4,d:"M1 1h3v7H1z"})),_path3$c||(_path3$c=reactExports.createElement("path",{d:"M1 1v7h3V1H1zM0 0h5v9H0V0z"})))},_path$g,_path2$b,_path3$b;function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$h.apply(null,arguments)}var SvgDcolumn=function x_(eme){return reactExports.createElement("svg",_extends$h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9 18",className:"icon"},eme),_path$g||(_path$g=reactExports.createElement("path",{d:"M0 6h9v5H0zm5 9v-3H4v3H2l2.5 3L7 15H5z"})),_path2$b||(_path2$b=reactExports.createElement("path",{opacity:.4,d:"M1 1h7v3H1z"})),_path3$b||(_path3$b=reactExports.createElement("path",{d:"M1 1v3h7V1H1zM0 0h9v5H0V0z"})))},_path$f,_path2$a,_path3$a;function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$g.apply(null,arguments)}var SvgDrowReverse=function x_(eme){return reactExports.createElement("svg",_extends$g({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 19 9",className:"icon"},eme),_path$f||(_path$f=reactExports.createElement("path",{d:"M16 4h-4v1h4v2l3-2.5L16 2v2zM6 0h5v9H6z"})),_path2$a||(_path2$a=reactExports.createElement("path",{opacity:.4,d:"M1 1h3v7H1z"})),_path3$a||(_path3$a=reactExports.createElement("path",{d:"M1 1v7h3V1H1zM0 0h5v9H0V0z"})))},_g;function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$f.apply(null,arguments)}var SvgDcolumnReverse=function x_(eme){return reactExports.createElement("svg",_extends$f({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 9 18",className:"icon",style:{verticalAlign:"middle"}},eme),_g||(_g=reactExports.createElement("g",{fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 6h9v5H0zm5 9v-3H4v3H2l2.5 3L7 15H5z"}),reactExports.createElement("path",{opacity:.4,d:"M1 1h7v3H1z","data-spm-anchor-id":"a2q5o.26736379.0.i51.35962a19sy6kFy"}),reactExports.createElement("path",{d:"M1 1v3h7V1H1zM0 0h9v5H0V0z"}))))},_path$e,_path2$9,_path3$9,_path4$9;function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$e.apply(null,arguments)}var SvgAFlexStart=function x_(eme){return reactExports.createElement("svg",_extends$e({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 18",className:"icon"},eme),_path$e||(_path$e=reactExports.createElement("path",{opacity:.5,d:"M0 0h21v1H0z"})),_path2$9||(_path2$9=reactExports.createElement("path",{d:"M11 2h5v9h-5z"})),_path3$9||(_path3$9=reactExports.createElement("path",{opacity:.4,d:"M6 3h3v7H6z"})),_path4$9||(_path4$9=reactExports.createElement("path",{d:"M6 3v7h3V3H6zM5 2h5v9H5V2z"})))},_path$d,_path2$8,_path3$8,_path4$8;function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$d.apply(null,arguments)}var SvgACenter=function x_(eme){return reactExports.createElement("svg",_extends$d({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 9",className:"icon"},eme),_path$d||(_path$d=reactExports.createElement("path",{d:"M0 4h21v1H0V4zm4.5 0h6v1h-6V4zm6 0h6v1h-6V4z",opacity:.5})),_path2$8||(_path2$8=reactExports.createElement("path",{d:"M11 0h5v9h-5z"})),_path3$8||(_path3$8=reactExports.createElement("path",{opacity:.4,d:"M6 1h3v7H6z"})),_path4$8||(_path4$8=reactExports.createElement("path",{d:"M6 1v7h3V1H6zM5 0h5v9H5V0z"})))},_path$c,_path2$7,_path3$7,_path4$7;function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$c.apply(null,arguments)}var SvgAFlexEnd=function x_(eme){return reactExports.createElement("svg",_extends$c({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 18",className:"icon"},eme),_path$c||(_path$c=reactExports.createElement("path",{opacity:.5,d:"M0 17h21v1H0z"})),_path2$7||(_path2$7=reactExports.createElement("path",{d:"M11 7h5v9h-5z"})),_path3$7||(_path3$7=reactExports.createElement("path",{opacity:.4,d:"M6 8h3v7H6z"})),_path4$7||(_path4$7=reactExports.createElement("path",{d:"M6 8v7h3V8H6zM5 7h5v9H5V7z"})))},_path$b,_path2$6,_path3$6,_path4$6;function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$b.apply(null,arguments)}var SvgAStretch=function x_(eme){return reactExports.createElement("svg",_extends$b({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 18",className:"icon"},eme),_path$b||(_path$b=reactExports.createElement("path",{opacity:.5,d:"M0 17h21v1H0zM0 0h21v1H0z"})),_path2$6||(_path2$6=reactExports.createElement("path",{d:"M11 2h5v14h-5z"})),_path3$6||(_path3$6=reactExports.createElement("path",{opacity:.4,d:"M6 3h3v12H6z"})),_path4$6||(_path4$6=reactExports.createElement("path",{d:"M6 3v12h3V3H6zM5 2h5v14H5V2z"})))},_path$a,_path2$5,_path3$5,_path4$5;function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$a.apply(null,arguments)}var SvgABaseline=function x_(eme){return reactExports.createElement("svg",_extends$a({fill:"currentColor",viewBox:"0 0 21 11",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$a||(_path$a=reactExports.createElement("path",{d:"M0 5h21v1H0V5zm4.5 0h6v1h-6V5zm6 0h6v1h-6V5z",opacity:.5})),_path2$5||(_path2$5=reactExports.createElement("path",{d:"M11 1h5v9h-5V1zm1 1h3v3h-3V2z"})),_path3$5||(_path3$5=reactExports.createElement("path",{opacity:.4,d:"M6 5h3v5H6z"})),_path4$5||(_path4$5=reactExports.createElement("path",{d:"M6 3v7h3V3H6zM5 2h5v9H5V2z"})))},_path$9,_path2$4,_path3$4,_path4$4;function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$9.apply(null,arguments)}var SvgJFlexStart=function x_(eme){return reactExports.createElement("svg",_extends$9({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 17",className:"icon"},eme),_path$9||(_path$9=reactExports.createElement("path",{opacity:.5,d:"M0 0h1v17H0z"})),_path2$4||(_path2$4=reactExports.createElement("path",{d:"M8 4h5v9H8z"})),_path3$4||(_path3$4=reactExports.createElement("path",{opacity:.4,d:"M3 5h3v7H3z"})),_path4$4||(_path4$4=reactExports.createElement("path",{d:"M3 5v7h3V5H3zM2 4h5v9H2V4z"})))},_path$8,_path2$3,_path3$3,_path4$3;function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$8.apply(null,arguments)}var SvgJCenter=function x_(eme){return reactExports.createElement("svg",_extends$8({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 13 17",className:"icon"},eme),_path$8||(_path$8=reactExports.createElement("path",{opacity:.5,d:"M6 0h1v17H6z"})),_path2$3||(_path2$3=reactExports.createElement("path",{d:"M8 4h5v9H8z"})),_path3$3||(_path3$3=reactExports.createElement("path",{opacity:.4,d:"M1 5h3v7H1z"})),_path4$3||(_path4$3=reactExports.createElement("path",{d:"M1 5v7h3V5H1zM0 4h5v9H0V4z"})))},_path$7,_path2$2,_path3$2,_path4$2;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$7.apply(null,arguments)}var SvgJFlexEnd=function x_(eme){return reactExports.createElement("svg",_extends$7({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 17",className:"icon"},eme),_path$7||(_path$7=reactExports.createElement("path",{opacity:.5,d:"M23 0h1v17h-1z"})),_path2$2||(_path2$2=reactExports.createElement("path",{d:"M17 4h5v9h-5z"})),_path3$2||(_path3$2=reactExports.createElement("path",{opacity:.4,d:"M12 5h3v7h-3z"})),_path4$2||(_path4$2=reactExports.createElement("path",{d:"M12 5v7h3V5h-3zm-1-1h5v9h-5V4z"})))},_path$6,_path2$1,_path3$1,_path4$1;function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$6.apply(null,arguments)}var SvgJSpaceBetween=function x_(eme){return reactExports.createElement("svg",_extends$6({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 17",className:"icon"},eme),_path$6||(_path$6=reactExports.createElement("path",{opacity:.5,d:"M0 0h1v17H0zm23 0h1v17h-1z"})),_path2$1||(_path2$1=reactExports.createElement("path",{d:"M17 4h5v9h-5z"})),_path3$1||(_path3$1=reactExports.createElement("path",{opacity:.4,d:"M3 5h3v7H3z"})),_path4$1||(_path4$1=reactExports.createElement("path",{d:"M3 5v7h3V5H3zM2 4h5v9H2V4z"})))},_path$5,_path2,_path3,_path4;function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$5.apply(null,arguments)}var SvgJSpaceAround=function x_(eme){return reactExports.createElement("svg",_extends$5({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 17",className:"icon"},eme),_path$5||(_path$5=reactExports.createElement("path",{d:"M2 0h1v17H2V0zm0 3.5h1v10H2v-10zM13 0h1v17h-1V0zm0 3.5h1v10h-1v-10z",opacity:.5})),_path2||(_path2=reactExports.createElement("path",{d:"M11 4h5v9h-5z"})),_path3||(_path3=reactExports.createElement("path",{opacity:.4,d:"M1 5h3v7H1z"})),_path4||(_path4=reactExports.createElement("path",{d:"M1 5v7h3V5H1zM0 4h5v9H0V4z"})))},_path$4;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$4.apply(null,arguments)}var SvgCss=function x_(eme){return reactExports.createElement("svg",_extends$4({viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$4||(_path$4=reactExports.createElement("path",{d:"M173.32 64.96v891.65h677.655v-631.4l-5.015-5.573L596.297 69.976l-5.573-5.015H173.32zm35.667 35.666h356.66v249.662h249.662v570.656H208.987V100.626zm392.325 25.635 188.361 188.36h-188.36v-188.36zM367.287 467.885c23.945 0 42.98 11.666 54.953 24.867l-14.43 16.27c-10.745-11.359-23.638-18.726-40.216-18.726-38.375 0-63.855 31.314-63.855 81.354 0 50.653 24.252 82.581 62.627 82.581 19.034 0 33.155-7.982 46.049-22.41l14.43 15.657c-15.657 18.42-35.613 29.164-61.093 29.164-50.654 0-88.414-38.681-88.414-104.378 0-64.777 38.374-104.379 89.95-104.379zm89.03 161.173c14.43 15.043 34.384 25.174 55.566 25.174 26.403 0 42.06-13.2 42.06-32.849 0-20.57-14.736-27.015-33.77-35.612l-28.858-12.586c-18.727-7.983-40.83-22.41-40.83-51.883 0-30.7 27.015-53.417 63.548-53.417 23.946 0 45.13 10.131 59.25 24.867l-13.507 16.577c-12.28-11.666-27.322-19.033-45.743-19.033-22.717 0-37.76 11.358-37.76 29.47 0 19.341 17.806 26.71 33.463 33.464l28.858 12.28c23.331 10.13 41.444 23.945 41.444 53.723 0 31.928-26.402 57.409-68.767 57.409-28.244 0-52.803-11.665-70.302-29.778l15.348-17.806zm158.1 0c14.43 15.043 34.384 25.174 55.566 25.174 26.402 0 42.059-13.2 42.059-32.849 0-20.57-14.736-27.015-33.77-35.612l-28.857-12.586c-18.727-7.983-40.83-22.41-40.83-51.883 0-30.7 27.015-53.417 63.548-53.417 23.945 0 45.129 10.131 59.25 24.867l-13.507 16.577c-12.28-11.666-27.322-19.033-45.743-19.033-22.717 0-37.76 11.358-37.76 29.47 0 19.341 17.806 26.71 33.463 33.464l28.857 12.28c23.332 10.13 41.444 23.945 41.444 53.723 0 31.928-26.4 57.409-68.766 57.409-28.244 0-52.803-11.665-70.302-29.778l15.348-17.806z",fill:"currentColor"})))},_path$3;function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$3.apply(null,arguments)}var SvgColumnSetting=function x_(eme){return reactExports.createElement("svg",_extends$3({fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$3||(_path$3=reactExports.createElement("path",{d:"M3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM13 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z",fill:"currentColor"})))},_path$2;function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$2.apply(null,arguments)}var SvgColumnDelete=function x_(eme){return reactExports.createElement("svg",_extends$2({fill:"none",className:"icon"},eme),_path$2||(_path$2=reactExports.createElement("path",{d:"m6.196 6.205 8.396 8.268m-8.752-.106L14.237 6.1",stroke:"currentColor",strokeWidth:1.6})))},_path$1;function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends$1.apply(null,arguments)}var SvgColumnAdd=function x_(eme){return reactExports.createElement("svg",_extends$1({fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"icon"},eme),_path$1||(_path$1=reactExports.createElement("path",{d:"M2.667 8h10.667M8 2.667v10.667",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})))},_path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(x_){for(var eme=1;eme<arguments.length;eme++){var $P=arguments[eme];for(var tme in $P)({}).hasOwnProperty.call($P,tme)&&(x_[tme]=$P[tme])}return x_},_extends.apply(null,arguments)}var SvgShareLink=function x_(eme){return reactExports.createElement("svg",_extends({className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eme),_path||(_path=reactExports.createElement("path",{d:"M938.667 469.333C915.2 469.333 896 488.533 896 512v405.333c0 12.8-8.533 21.334-21.333 21.334h-768c-12.8 0-21.334-8.534-21.334-21.334V234.667c0-12.8 8.534-21.334 21.334-21.334h362.666c23.467 0 42.667-19.2 42.667-42.666C512 147.2 492.8 128 469.333 128h-384C38.4 128 0 166.4 0 213.333v725.334C0 985.6 38.4 1024 85.333 1024H896c46.933 0 85.333-38.4 85.333-85.333V512c0-23.467-19.2-42.667-42.666-42.667zm72.533-307.2L861.867 12.8C855.467 4.267 844.8 0 832 0c-23.467 0-42.667 19.2-42.667 42.667 0 12.8 4.267 23.466 12.8 29.866l83.2 83.2C554.667 202.667 298.667 488.533 298.667 832c0 23.467 19.2 42.667 42.666 42.667S384 855.467 384 832c0-290.133 206.933-533.333 484.267-586.667l-66.134 66.134c-8.533 6.4-12.8 17.066-12.8 29.866C789.333 364.8 808.533 384 832 384c12.8 0 23.467-4.267 29.867-12.8L1011.2 221.867c8.533-6.4 12.8-17.067 12.8-29.867s-4.267-23.467-12.8-29.867z"})))};registerIcon("audio-plugin",SvgAudio);registerIcon("custom-plugin",SvgCustom);registerIcon("each-plugin",SvgEach);registerIcon("form-plugin",SvgForm);registerIcon("nav-plugin",SvgNav);registerIcon("qrcode-plugin",SvgQrcode);registerIcon("service-plugin",SvgService);registerIcon("table-plugin",SvgTable);registerIcon("tasks-plugin",SvgTasks);registerIcon("video-plugin",SvgVideo);registerIcon("wizard-plugin",SvgWizard);registerIcon("anchor-nav-plugin",SvgAnchorNav);registerIcon("collapse-plugin",SvgCollapse);registerIcon("flex-container-plugin",SvgFlexContainer);registerIcon("container-plugin",SvgContainer);registerIcon("switch-container-plugin",SvgSwitchContainer);registerIcon("form-group-plugin",SvgFormGroup);registerIcon("panel-plugin",SvgPanel);registerIcon("grid-plugin",SvgGrid);registerIcon("iframe-plugin",SvgIframe);registerIcon("table-view-plugin",SvgTableView);registerIcon("tabs-plugin",SvgTabs);registerIcon("web-component-plugin",SvgWebComponent);registerIcon("tooltip-wrapper-plugin",SvgTooltipWrapper);registerIcon("btn-group-plugin",SvgBtnGroup);registerIcon("btn-select-plugin",SvgBtnSelect);registerIcon("btn-toolbar-plugin",SvgBtnToolbar);registerIcon("button-plugin",SvgButton);registerIcon("dropdown-btn-plugin",SvgDropdownBtn);registerIcon("breadcrumb-plugin",SvgBreadcrumb);registerIcon("card-plugin",SvgCard);registerIcon("cards-plugin",SvgCards);registerIcon("carousel-plugin",SvgCarousel);registerIcon("chart-plugin",SvgChart);registerIcon("code-plugin",SvgCode);registerIcon("date-plugin",SvgDate);registerIcon("datetime-plugin",SvgDatetime);registerIcon("time-plugin",SvgTime);registerIcon("image-plugin",SvgImage);registerIcon("images-plugin",SvgImages);registerIcon("list-plugin",SvgList);registerIcon("log-plugin",SvgLog);registerIcon("mapping-plugin",SvgMapping);registerIcon("sparkline-plugin",SvgSparkline);registerIcon("avatar-plugin",SvgAvatar);registerIcon("progress-plugin",SvgProgress);registerIcon("json-view-plugin",SvgJsonView);registerIcon("markdown-plugin",SvgMarkdown);registerIcon("steps-plugin",SvgSteps);registerIcon("status-plugin",SvgStatus);registerIcon("plain-plugin",SvgPlain);registerIcon("url-plugin",SvgUrl);registerIcon("chained-select-plugin",SvgChainedSelect);registerIcon("checkbox-plugin",SvgCheckbox);registerIcon("checkboxes-plugin",SvgCheckboxes);registerIcon("combo-plugin",SvgCombo);registerIcon("condition-builder-plugin",SvgConditionBuilder);registerIcon("diff-editor-plugin",SvgDiffEditor);registerIcon("editor-plugin",SvgEditor);registerIcon("hidden-plugin",SvgHidden);registerIcon("input-city-plugin",SvgInputCity);registerIcon("input-color-plugin",SvgInputColor);registerIcon("input-date-range-plugin",SvgInputDateRange);registerIcon("input-date-plugin",SvgInputDate);registerIcon("input-datetime-plugin",SvgInputDatetime);registerIcon("input-email-plugin",SvgInputEmail);registerIcon("input-excel-plugin",SvgInputExcel);registerIcon("input-file-plugin",SvgInputFile);registerIcon("input-group-plugin",SvgInputGroup);registerIcon("input-image-plugin",SvgInputImage);registerIcon("input-kv-plugin",SvgInputKv);registerIcon("input-month-range-plugin",SvgInputMonthRange);registerIcon("input-number-plugin",SvgInputNumber);registerIcon("input-password-plugin",SvgInputPassword);registerIcon("input-quarter-range-plugin",SvgInputQuarterRange);registerIcon("input-range-plugin",SvgInputRange);registerIcon("input-rating-plugin",SvgInputRating);registerIcon("input-repeat-plugin",SvgInputRepeat);registerIcon("input-rich-text-plugin",SvgInputRichText);registerIcon("input-tag-plugin",SvgInputTag);registerIcon("input-text-plugin",SvgInputText);registerIcon("input-time-range-plugin",SvgInputTimeRange);registerIcon("input-signature-plugin",SvgInputSignature);registerIcon("input-time-plugin",SvgInputTime);registerIcon("input-tree-plugin",SvgInputTree);registerIcon("input-url-plugin",SvgInputUrl);registerIcon("input-year-plugin",SvgInputYear);registerIcon("list-select-plugin",SvgListSelect);registerIcon("location-picker-plugin",SvgLocationPicker);registerIcon("matrix-checkboxes-plugin",SvgMatrixCheckboxes);registerIcon("month-plugin",SvgMonth);registerIcon("nested-select-plugin",SvgNestedSelect);registerIcon("picker-plugin",SvgPicker);registerIcon("quarter-plugin",SvgQuarter);registerIcon("radios-plugin",SvgRadios);registerIcon("search-box-plugin",SvgSelect);registerIcon("select-plugin",SvgSelect);registerIcon("static-plugin",SvgStatic);registerIcon("sub-form-plugin",SvgSubForm);registerIcon("switch-plugin",SvgSwitch);registerIcon("tabs-transfer-plugin",SvgTabsTransfer);registerIcon("textarea-plugin",SvgTextarea);registerIcon("transfer-plugin",SvgTransfer);registerIcon("tree-select-plugin",SvgTreeSelect);registerIcon("uuid-plugin",SvgUuid);registerIcon("input-array-plugin",SvgInputArray);registerIcon("formula-plugin",SvgFormula);registerIcon("property-sheet-plugin",SvgPropertySheet);registerIcon("tooltip-plugin",SvgTooltip);registerIcon("divider-plugin",SvgDivider);registerIcon("modal-setting",SvgModalSetting);registerIcon("layout-absolute-plugin",SvgLayoutAbsolute);registerIcon("layout-fixed-plugin",SvgLayoutFixed);registerIcon("layout-1with2-plugin",SvgLayout1With2);registerIcon("layout-2cols-plugin",SvgLayout2Cols);registerIcon("layout-2row-plugin",SvgLayout2Row);registerIcon("layout-2with1-plugin",SvgLayout2With1);registerIcon("layout-3cols-plugin",SvgLayout3Cols);registerIcon("layout-3row-plugin",SvgLayout3Row);registerIcon("layout-full-plugin",SvgLayoutFull);registerIcon("layout-1-2-plugin",SvgLayout12);registerIcon("layout-2-1-plugin",SvgLayout21);registerIcon("layout-3-1-plugin",SvgLayout31);registerIcon("layout-3-2-plugin",SvgLayout32);registerIcon("layout-free-container",SvgLayoutFreeContainer);registerIcon("layout-fixed-top",SvgLayoutFixedTop);registerIcon("input-add-fx",SvgFx$1);registerIcon("input-fx",SvgFx);registerIcon("inline-display",SvgInline);registerIcon("inline-block-display",SvgInlineBlock);registerIcon("block-display",SvgBlock);registerIcon("flex-display",SvgFlex);registerIcon("drow",SvgDrow);registerIcon("dcolumn",SvgDcolumn);registerIcon("drowReverse",SvgDrowReverse);registerIcon("dcolumnReverse",SvgDcolumnReverse);registerIcon("aFlexStart",SvgAFlexStart);registerIcon("aCenter",SvgACenter);registerIcon("aFlexEnd",SvgAFlexEnd);registerIcon("aStretch",SvgAStretch);registerIcon("aBaseline",SvgABaseline);registerIcon("jFlexStart",SvgJFlexStart);registerIcon("jCenter",SvgJCenter);registerIcon("jFlexEnd",SvgJFlexEnd);registerIcon("jSpaceBetween",SvgJSpaceBetween);registerIcon("jSpaceAround",SvgJSpaceAround);registerIcon("theme-css",SvgCss);registerIcon("column-setting",SvgColumnSetting);registerIcon("column-delete",SvgColumnDelete);registerIcon("column-add",SvgColumnAdd);registerIcon("share-link",SvgShareLink);var editorPlaceholder=i18n("0552d08957a270160d5203e0611661b2"),editorOptions={autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},scrollbar:{alwaysConsumeMouseWheel:!1},bracketPairColorization:{enabled:!0},automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0,overviewRulerBorder:!1};function ThemeCssCode(x_){var eme=x_.data,$P=x_.onBulkChange,tme=eme.wrapperCustomStyle,ame=reactExports.useRef(null),nme=__read$3(reactExports.useState(!1),2),rme=nme[0],ime=nme[1],ome=__read$3(reactExports.useState(""),2),lme=ome[0],sme=ome[1];function cme(bme){for(var mme="",vme=0;vme<bme;vme++)mme+="  ";return mme}function dme(bme,mme,vme){if(isEmpty$4(bme))return"";for(var gme in bme)bme.hasOwnProperty(gme)&&(isObject$r(bme[gme])?(mme+=cme(vme)+"".concat(gme,` {
`),mme+=dme(bme[gme],"",vme+1),mme+=cme(vme)+`}
`,vme===0&&(mme+=`
`)):mme+=cme(vme)+"".concat(gme,": ").concat(bme[gme],`;
`));return mme}reactExports.useEffect(function(){sme(dme(tme,"",0))},[]);function ume(){ime(!0)}function fme(bme){var mme={};return isEmpty$4(bme)||bme.nodes.forEach(function(vme){var gme=vme.prop,yme=vme.value,_me=vme.selector;yme&&(mme[gme]=yme,vme.important&&(mme[gme]+=" !important")),vme.nodes&&(mme[_me]=fme(vme))}),mme}var pme=debounce$6(function(bme){try{var mme=index_min.parse(bme),vme=fme(mme);$P&&$P({wrapperCustomStyle:vme})}catch{}});function hme(bme){pme(bme),sme(bme)}return jsxs(Fragment,{children:[jsxs("div",{ref:ame,className:"ThemeCssCode",children:[jsx("a",{onClick:ume,className:"ThemeCssCode-button ThemeCssCode-icon",children:jsx(Icon$1,{icon:"expand-alt",className:"icon"})}),jsx("div",{className:"ThemeCssCode-editor-wrap",style:{height:"180px"},children:jsx(MonacoEditor,{className:"ThemeCssCode-custom-editor",value:lme,placeholder:editorPlaceholder,language:"scss",onChange:hme,options:editorOptions})})]}),jsx(Overlay,{container:document.body,placement:"left",target:ame.current,show:rme,rootClose:!1,children:jsx(PopOver$1,{overlay:!0,onHide:function(){return ime(!1)},children:jsxs("div",{className:"ThemeCssCode-editor",children:[jsx("div",{className:"ThemeCssCode-editor-title",children:i18n("aaf9656ba493b58fbab398d52efa9f7c")}),jsx("div",{className:"ThemeCssCode-editor-close",children:jsx("a",{onClick:function(){return ime(!1)},className:"ThemeCssCode-icon",children:jsx(Icon$1,{icon:"close",className:"icon"})})}),jsx("div",{className:"ThemeCssCode-editor-content",children:jsx("div",{className:"ThemeCssCode-editor-wrap",style:{height:"460px"},children:jsx(MonacoEditor,{value:lme,placeholder:editorPlaceholder,language:"scss",onChange:hme,options:editorOptions})})})]})})})]})}(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(ThemeCssCode,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"theme-cssCode",strictMode:!1})],eme),eme})(React__default.Component);var conf={ws:`[ 	
\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",tokenizer:{root:[{include:"@selector"}],selector:[{include:"@selectorbody"}],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"]],rulevalue:[{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],term:[["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r
]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}},keywords={"additive-symbols":{},"align-content":{values:["center","flex-end","flex-start","space-around","space-between","stretch","start","end","normal","baseline","first baseline","last baseline","space-around","space-between","space-evenly","stretch","safe","unsafe"]},"align-items":{values:["baseline","center","flex-end","flex-start","stretch","normal","start","end","self-start","self-end","first baseline","last baseline","stretch","safe","unsafe"]},"justify-items":{values:["auto","normal","end","start","flex-end","flex-start","self-end","self-start","center","left","right","baseline","first baseline","last baseline","stretch","safe","unsafe","legacy"]},"justify-self":{values:["auto","normal","end","start","flex-end","flex-start","self-end","self-start","center","left","right","baseline","first baseline","last baseline","stretch","save","unsave"]},"align-self":{values:["auto","normal","self-end","self-start","baseline","center","flex-end","flex-start","stretch","baseline","first baseline","last baseline","safe","unsafe"]},all:{values:[]},alt:{values:[]},animation:{values:["alternate","alternate-reverse","backwards","both","forwards","infinite","none","normal","reverse"]},"animation-delay":{},"animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"animation-duration":{},"animation-fill-mode":{values:["backwards","both","forwards","none"]},"animation-iteration-count":{values:["infinite"]},"animation-name":{values:["none"]},"animation-play-state":{values:["paused","running"]},"animation-timing-function":{},"backface-visibility":{values:["hidden","visible"]},background:{values:["fixed","local","none","scroll"]},"background-attachment":{values:["fixed","local","scroll"]},"background-blend-mode":{values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},"background-clip":{},"background-color":{},"background-image":{values:["none"]},"background-origin":{},"background-position":{},"background-position-x":{values:["center","left","right"]},"background-position-y":{values:["bottom","center","top"]},"background-repeat":{values:[]},"background-size":{values:["auto","contain","cover"]},behavior:{},"block-size":{values:["auto"]},border:{},"border-block-end":{},"border-block-start":{},"border-block-end-color":{},"border-block-start-color":{},"border-block-end-style":{},"border-block-start-style":{},"border-block-end-width":{},"border-block-start-width":{},"border-bottom":{},"border-bottom-color":{},"border-bottom-left-radius":{},"border-bottom-right-radius":{},"border-bottom-style":{},"border-bottom-width":{},"border-collapse":{values:["collapse","separate"]},"border-color":{values:[]},"border-image":{values:["auto","fill","none","repeat","round","space","stretch","url()"]},"border-image-outset":{},"border-image-repeat":{values:["repeat","round","space","stretch"]},"border-image-slice":{values:["fill"]},"border-image-source":{values:["none"]},"border-image-width":{values:["auto"]},"border-inline-end":{},"border-inline-start":{},"border-inline-end-color":{},"border-inline-start-color":{},"border-inline-end-style":{},"border-inline-start-style":{},"border-inline-end-width":{},"border-inline-start-width":{},"border-left":{},"border-left-color":{},"border-left-style":{},"border-left-width":{},"border-radius":{},"border-right":{},"border-right-color":{},"border-right-style":{},"border-right-width":{},"border-spacing":{},"border-style":{values:[]},"border-top":{},"border-top-color":{},"border-top-left-radius":{},"border-top-right-radius":{},"border-top-style":{},"border-top-width":{},"border-width":{values:[]},bottom:{values:["auto"]},"box-decoration-break":{values:["clone","slice"]},"box-shadow":{values:["inset","none"]},"box-sizing":{values:["border-box","content-box"]},"break-after":{values:["always","auto","avoid","avoid-column","avoid-page","column","left","page","right"]},"break-before":{values:["always","auto","avoid","avoid-column","avoid-page","column","left","page","right"]},"break-inside":{values:["auto","avoid","avoid-column","avoid-page"]},"caption-side":{values:["bottom","top"]},"caret-color":{values:["auto"]},clear:{values:["both","left","none","right"]},clip:{values:["auto","rect()"]},"clip-path":{values:["none","url()"]},"clip-rule":{values:["evenodd","nonzero"]},color:{},"color-interpolation-filters":{values:["auto","linearRGB","sRGB"]},"column-count":{values:["auto"]},"column-fill":{values:["auto","balance"]},"column-gap":{values:["normal"]},"column-rule":{},"column-rule-color":{},"column-rule-style":{},"column-rule-width":{},columns:{values:["auto"]},"column-span":{values:["all","none"]},"column-width":{values:["auto"]},contain:{values:["none","strict","content","size","layout","style","paint"]},content:{values:["attr()","counter(name)","icon","none","normal","url()"]},"counter-increment":{values:["none"]},"counter-reset":{values:["none"]},cursor:{values:["alias","all-scroll","auto","cell","col-resize","context-menu","copy","crosshair","default","e-resize","ew-resize","grab","grabbing","help","move","-moz-grab","-moz-grabbing","-moz-zoom-in","-moz-zoom-out","ne-resize","nesw-resize","no-drop","none","not-allowed","n-resize","ns-resize","nw-resize","nwse-resize","pointer","progress","row-resize","se-resize","s-resize","sw-resize","text","vertical-text","wait","-webkit-grab","-webkit-grabbing","-webkit-zoom-in","-webkit-zoom-out","w-resize","zoom-in","zoom-out"]},direction:{values:["ltr","rtl"]},display:{values:["block","contents","flex","flexbox","flow-root","grid","inline","inline-block","inline-flex","inline-flexbox","inline-table","list-item","-moz-box","-moz-deck","-moz-grid","-moz-grid-group","-moz-grid-line","-moz-groupbox","-moz-inline-box","-moz-inline-grid","-moz-inline-stack","-moz-marker","-moz-popup","-moz-stack","-ms-flexbox","-ms-grid","-ms-inline-flexbox","-ms-inline-grid","none","ruby","ruby-base","ruby-base-container","ruby-text","ruby-text-container","run-in","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","-webkit-box","-webkit-flex","-webkit-inline-box","-webkit-inline-flex"]},"empty-cells":{values:["hide","-moz-show-background","show"]},"enable-background":{values:["accumulate","new"]},fallback:{},fill:{values:["url()","none"]},"fill-opacity":{},"fill-rule":{values:["evenodd","nonzero"]},filter:{values:["none","blur()","brightness()","contrast()","drop-shadow()","grayscale()","hue-rotate()","invert()","opacity()","saturate()","sepia()","url()"]},flex:{values:["auto","content","none"]},"flex-basis":{values:["auto","content"]},"flex-direction":{values:["column","column-reverse","row","row-reverse"]},"flex-flow":{values:["column","column-reverse","nowrap","row","row-reverse","wrap","wrap-reverse"]},"flex-grow":{},"flex-shrink":{},"flex-wrap":{values:["nowrap","wrap","wrap-reverse"]},float:{values:["inline-end","inline-start","left","none","right"]},"flood-color":{},"flood-opacity":{},font:{values:["100","200","300","400","500","600","700","800","900","bold","bolder","caption","icon","italic","large","larger","lighter","medium","menu","message-box","normal","oblique","small","small-caps","small-caption","smaller","status-bar","x-large","x-small","xx-large","xx-small"]},"font-family":{values:["system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif","Arial, Helvetica, sans-serif","Cambria, Cochin, Georgia, Times, 'Times New Roman', serif","'Courier New', Courier, monospace","cursive","fantasy","'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif","Georgia, 'Times New Roman', Times, serif","'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif","Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif","'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif","monospace","sans-serif","'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","serif","'Times New Roman', Times, serif","'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif","Verdana, Geneva, Tahoma, sans-serif"]},"font-feature-settings":{values:['"aalt"','"abvf"','"abvm"','"abvs"','"afrc"','"akhn"','"blwf"','"blwm"','"blws"','"calt"','"case"','"ccmp"','"cfar"','"cjct"','"clig"','"cpct"','"cpsp"','"cswh"','"curs"','"c2pc"','"c2sc"','"dist"','"dlig"','"dnom"','"dtls"','"expt"','"falt"','"fin2"','"fin3"','"fina"','"flac"','"frac"','"fwid"','"half"','"haln"','"halt"','"hist"','"hkna"','"hlig"','"hngl"','"hojo"','"hwid"','"init"','"isol"','"ital"','"jalt"','"jp78"','"jp83"','"jp90"','"jp04"','"kern"','"lfbd"','"liga"','"ljmo"','"lnum"','"locl"','"ltra"','"ltrm"','"mark"','"med2"','"medi"','"mgrk"','"mkmk"','"nalt"','"nlck"','"nukt"','"numr"','"onum"','"opbd"','"ordn"','"ornm"','"palt"','"pcap"','"pkna"','"pnum"','"pref"','"pres"','"pstf"','"psts"','"pwid"','"qwid"','"rand"','"rclt"','"rlig"','"rkrf"','"rphf"','"rtbd"','"rtla"','"rtlm"','"ruby"','"salt"','"sinf"','"size"','"smcp"','"smpl"','"ssty"','"stch"','"subs"','"sups"','"swsh"','"titl"','"tjmo"','"tnam"','"tnum"','"trad"','"twid"','"unic"','"valt"','"vatu"','"vert"','"vhal"','"vjmo"','"vkna"','"vkrn"','"vpal"','"vrt2"','"zero"',"normal","off","on"]},"font-kerning":{values:["auto","none","normal"]},"font-language-override":{values:["normal"]},"font-size":{values:["large","larger","medium","small","smaller","x-large","x-small","xx-large","xx-small"]},"font-size-adjust":{values:["none"]},"font-stretch":{values:["condensed","expanded","extra-condensed","extra-expanded","narrower","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded","wider"]},"font-style":{values:["italic","normal","oblique"]},"font-synthesis":{values:["none","style","weight"]},"font-variant":{values:["normal","small-caps"]},"font-variant-alternates":{values:["annotation()","character-variant()","historical-forms","normal","ornaments()","styleset()","stylistic()","swash()"]},"font-variant-caps":{values:["all-petite-caps","all-small-caps","normal","petite-caps","small-caps","titling-caps","unicase"]},"font-variant-east-asian":{values:["full-width","jis04","jis78","jis83","jis90","normal","proportional-width","ruby","simplified","traditional"]},"font-variant-ligatures":{values:["additional-ligatures","common-ligatures","contextual","discretionary-ligatures","historical-ligatures","no-additional-ligatures","no-common-ligatures","no-contextual","no-discretionary-ligatures","no-historical-ligatures","none","normal"]},"font-variant-numeric":{values:["diagonal-fractions","lining-nums","normal","oldstyle-nums","ordinal","proportional-nums","slashed-zero","stacked-fractions","tabular-nums"]},"font-variant-position":{values:["normal","sub","super"]},"font-weight":{values:["100","200","300","400","500","600","700","800","900","bold","bolder","lighter","normal"]},"glyph-orientation-horizontal":{},"glyph-orientation-vertical":{values:["auto"]},"grid-area":{values:["auto","span"]},grid:{},"grid-auto-columns":{values:["min-content","max-content","auto","minmax()"]},"grid-auto-flow":{values:["row","column","dense"]},"grid-auto-rows":{values:["min-content","max-content","auto","minmax()"]},"grid-column":{values:["auto","span"]},"grid-column-end":{values:["auto","span"]},"grid-column-gap":{},"grid-column-start":{values:["auto","span"]},"grid-gap":{},"grid-row":{values:["auto","span"]},"grid-row-end":{values:["auto","span"]},"grid-row-gap":{},"grid-row-start":{values:["auto","span"]},"grid-template":{values:["none","min-content","max-content","auto","subgrid","minmax()","repeat()"]},"grid-template-areas":{values:["none"]},"grid-template-columns":{values:["none","min-content","max-content","auto","subgrid","minmax()","repeat()"]},"grid-template-rows":{values:["none","min-content","max-content","auto","subgrid","minmax()","repeat()"]},height:{values:["auto","fit-content","max-content","min-content"]},hyphens:{values:["auto","manual","none"]},"image-orientation":{values:["flip","from-image"]},"image-rendering":{values:["auto","crisp-edges","-moz-crisp-edges","optimizeQuality","optimizeSpeed","pixelated"]},"ime-mode":{values:["active","auto","disabled","inactive","normal"]},"inline-size":{values:["auto"]},isolation:{values:["auto","isolate"]},"justify-content":{values:["center","start","end","left","right","safe","unsafe","stretch","space-evenly","flex-end","flex-start","space-around","space-between","baseline","first baseline","last baseline"]},kerning:{values:["auto"]},left:{values:["auto"]},"letter-spacing":{values:["normal"]},"lighting-color":{},"line-break":{values:["auto","loose","normal","strict","anywhere"]},"line-height":{values:["normal"]},"list-style":{values:["armenian","circle","decimal","decimal-leading-zero","disc","georgian","inside","lower-alpha","lower-greek","lower-latin","lower-roman","none","outside","square","symbols()","upper-alpha","upper-latin","upper-roman","url()"]},"list-style-image":{values:["none"]},"list-style-position":{values:["inside","outside"]},"list-style-type":{values:["armenian","circle","decimal","decimal-leading-zero","disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","symbols()","upper-alpha","upper-latin","upper-roman"]},margin:{values:["auto"]},"margin-block-end":{values:["auto"]},"margin-block-start":{values:["auto"]},"margin-bottom":{values:["auto"]},"margin-inline-end":{values:["auto"]},"margin-inline-start":{values:["auto"]},"margin-left":{values:["auto"]},"margin-right":{values:["auto"]},"margin-top":{values:["auto"]},marker:{values:["none","url()"]},"marker-end":{values:["none","url()"]},"marker-mid":{values:["none","url()"]},"marker-start":{values:["none","url()"]},"mask-image":{values:["none","url()"]},"mask-mode":{values:["alpha","auto","luminance"]},"mask-origin":{},"mask-position":{},"mask-repeat":{},"mask-size":{values:["auto","contain","cover"]},"mask-type":{values:["alpha","luminance"]},"max-block-size":{values:["none"]},"max-height":{values:["none","fit-content","max-content","min-content"]},"max-inline-size":{values:["none"]},"max-width":{values:["none","fit-content","max-content","min-content"]},"min-block-size":{},"min-height":{values:["auto","fit-content","max-content","min-content"]},"min-inline-size":{},"min-width":{values:["auto","fit-content","max-content","min-content"]},"mix-blend-mode":{values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},motion:{values:["none","path()","auto","reverse"]},"motion-offset":{},"motion-path":{values:["none","path()"]},"motion-rotation":{values:["auto","reverse"]},"-moz-animation":{values:["alternate","alternate-reverse","backwards","both","forwards","infinite","none","normal","reverse"]},"-moz-animation-delay":{},"-moz-animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"-moz-animation-duration":{},"-moz-animation-iteration-count":{values:["infinite"]},"-moz-animation-name":{values:["none"]},"-moz-animation-play-state":{values:["paused","running"]},"-moz-animation-timing-function":{},"-moz-appearance":{values:["button","button-arrow-down","button-arrow-next","button-arrow-previous","button-arrow-up","button-bevel","checkbox","checkbox-container","checkbox-label","dialog","groupbox","listbox","menuarrow","menuimage","menuitem","menuitemtext","menulist","menulist-button","menulist-text","menulist-textfield","menupopup","menuradio","menuseparator","-moz-mac-unified-toolbar","-moz-win-borderless-glass","-moz-win-browsertabbar-toolbox","-moz-win-communications-toolbox","-moz-win-glass","-moz-win-media-toolbox","none","progressbar","progresschunk","radio","radio-container","radio-label","radiomenuitem","resizer","resizerpanel","scrollbarbutton-down","scrollbarbutton-left","scrollbarbutton-right","scrollbarbutton-up","scrollbar-small","scrollbartrack-horizontal","scrollbartrack-vertical","separator","spinner","spinner-downbutton","spinner-textfield","spinner-upbutton","statusbar","statusbarpanel","tab","tabpanels","tab-scroll-arrow-back","tab-scroll-arrow-forward","textfield","textfield-multiline","toolbar","toolbox","tooltip","treeheadercell","treeheadersortarrow","treeitem","treetwistyopen","treeview","treewisty","window"]},"-moz-backface-visibility":{values:["hidden","visible"]},"-moz-background-clip":{values:["padding"]},"-moz-background-inline-policy":{values:["bounding-box","continuous","each-box"]},"-moz-background-origin":{},"-moz-border-bottom-colors":{},"-moz-border-image":{values:["auto","fill","none","repeat","round","space","stretch","url()"]},"-moz-border-left-colors":{},"-moz-border-right-colors":{},"-moz-border-top-colors":{},"-moz-box-align":{values:["baseline","center","end","start","stretch"]},"-moz-box-direction":{values:["normal","reverse"]},"-moz-box-flex":{},"-moz-box-flexgroup":{},"-moz-box-ordinal-group":{},"-moz-box-orient":{values:["block-axis","horizontal","inline-axis","vertical"]},"-moz-box-pack":{values:["center","end","justify","start"]},"-moz-box-sizing":{values:["border-box","content-box","padding-box"]},"-moz-column-count":{values:["auto"]},"-moz-column-gap":{values:["normal"]},"-moz-column-rule":{},"-moz-column-rule-color":{},"-moz-column-rule-style":{},"-moz-column-rule-width":{},"-moz-columns":{values:["auto"]},"-moz-column-width":{values:["auto"]},"-moz-font-feature-settings":{values:['"c2cs"','"dlig"','"kern"','"liga"','"lnum"','"onum"','"smcp"','"swsh"','"tnum"',"normal","off","on"]},"-moz-hyphens":{values:["auto","manual","none"]},"-moz-perspective":{values:["none"]},"-moz-perspective-origin":{},"-moz-text-align-last":{values:["auto","center","justify","left","right"]},"-moz-text-decoration-color":{},"-moz-text-decoration-line":{values:["line-through","none","overline","underline"]},"-moz-text-decoration-style":{values:["dashed","dotted","double","none","solid","wavy"]},"-moz-text-size-adjust":{values:["auto","none"]},"-moz-transform":{values:["matrix()","matrix3d()","none","perspective","rotate()","rotate3d()","rotateX('angle')","rotateY('angle')","rotateZ('angle')","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skew()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"-moz-transform-origin":{},"-moz-transition":{values:["all","none"]},"-moz-transition-delay":{},"-moz-transition-duration":{},"-moz-transition-property":{values:["all","none"]},"-moz-transition-timing-function":{},"-moz-user-focus":{values:["ignore","normal"]},"-moz-user-select":{values:["all","element","elements","-moz-all","-moz-none","none","text","toggle"]},"-ms-accelerator":{values:["false","true"]},"-ms-behavior":{},"-ms-block-progression":{values:["bt","lr","rl","tb"]},"-ms-content-zoom-chaining":{values:["chained","none"]},"-ms-content-zooming":{values:["none","zoom"]},"-ms-content-zoom-limit":{},"-ms-content-zoom-limit-max":{},"-ms-content-zoom-limit-min":{},"-ms-content-zoom-snap":{values:["mandatory","none","proximity","snapInterval(100%, 100%)","snapList()"]},"-ms-content-zoom-snap-points":{values:["snapInterval(100%, 100%)","snapList()"]},"-ms-content-zoom-snap-type":{values:["mandatory","none","proximity"]},"-ms-filter":{},"-ms-flex":{values:["auto","none"]},"-ms-flex-align":{values:["baseline","center","end","start","stretch"]},"-ms-flex-direction":{values:["column","column-reverse","row","row-reverse"]},"-ms-flex-flow":{values:["column","column-reverse","nowrap","row","wrap","wrap-reverse"]},"-ms-flex-item-align":{values:["auto","baseline","center","end","start","stretch"]},"-ms-flex-line-pack":{values:["center","distribute","end","justify","start","stretch"]},"-ms-flex-order":{},"-ms-flex-pack":{values:["center","distribute","end","justify","start"]},"-ms-flex-wrap":{values:["nowrap","wrap","wrap-reverse"]},"-ms-flow-from":{values:["none"]},"-ms-flow-into":{values:["none"]},"-ms-grid-column":{values:["auto","end","start"]},"-ms-grid-column-align":{values:["center","end","start","stretch"]},"-ms-grid-columns":{},"-ms-grid-column-span":{},"-ms-grid-layer":{},"-ms-grid-row":{values:["auto","end","start"]},"-ms-grid-row-align":{values:["center","end","start","stretch"]},"-ms-grid-rows":{},"-ms-grid-row-span":{},"-ms-high-contrast-adjust":{values:["auto","none"]},"-ms-hyphenate-limit-chars":{values:["auto"]},"-ms-hyphenate-limit-lines":{values:["no-limit"]},"-ms-hyphenate-limit-zone":{},"-ms-hyphens":{values:["auto","manual","none"]},"-ms-ime-mode":{values:["active","auto","disabled","inactive","normal"]},"-ms-interpolation-mode":{values:["bicubic","nearest-neighbor"]},"-ms-layout-grid":{values:["char","line","mode","type"]},"-ms-layout-grid-char":{values:["auto","none"]},"-ms-layout-grid-line":{values:["auto","none"]},"-ms-layout-grid-mode":{values:["both","char","line","none"]},"-ms-layout-grid-type":{values:["fixed","loose","strict"]},"-ms-line-break":{values:["auto","keep-all","newspaper","normal","strict"]},"-ms-overflow-style":{values:["auto","-ms-autohiding-scrollbar","none","scrollbar"]},"-ms-perspective":{values:["none"]},"-ms-perspective-origin":{},"-ms-perspective-origin-x":{},"-ms-perspective-origin-y":{},"-ms-progress-appearance":{values:["bar","ring"]},"-ms-scrollbar-3dlight-color":{},"-ms-scrollbar-arrow-color":{},"-ms-scrollbar-base-color":{},"-ms-scrollbar-darkshadow-color":{},"-ms-scrollbar-face-color":{},"-ms-scrollbar-highlight-color":{},"-ms-scrollbar-shadow-color":{},"-ms-scrollbar-track-color":{},"-ms-scroll-chaining":{values:["chained","none"]},"-ms-scroll-limit":{values:["auto"]},"-ms-scroll-limit-x-max":{values:["auto"]},"-ms-scroll-limit-x-min":{},"-ms-scroll-limit-y-max":{values:["auto"]},"-ms-scroll-limit-y-min":{},"-ms-scroll-rails":{values:["none","railed"]},"-ms-scroll-snap-points-x":{values:["snapInterval(100%, 100%)","snapList()"]},"-ms-scroll-snap-points-y":{values:["snapInterval(100%, 100%)","snapList()"]},"-ms-scroll-snap-type":{values:["none","mandatory","proximity"]},"-ms-scroll-snap-x":{values:["mandatory","none","proximity","snapInterval(100%, 100%)","snapList()"]},"-ms-scroll-snap-y":{values:["mandatory","none","proximity","snapInterval(100%, 100%)","snapList()"]},"-ms-scroll-translation":{values:["none","vertical-to-horizontal"]},"-ms-text-align-last":{values:["auto","center","justify","left","right"]},"-ms-text-autospace":{values:["ideograph-alpha","ideograph-numeric","ideograph-parenthesis","ideograph-space","none","punctuation"]},"-ms-text-combine-horizontal":{values:["all","digits","none"]},"-ms-text-justify":{values:["auto","distribute","inter-cluster","inter-ideograph","inter-word","kashida"]},"-ms-text-kashida-space":{},"-ms-text-overflow":{values:["clip","ellipsis"]},"-ms-text-size-adjust":{values:["auto","none"]},"-ms-text-underline-position":{values:["alphabetic","auto","over","under"]},"-ms-touch-action":{values:["auto","double-tap-zoom","manipulation","none","pan-x","pan-y","pinch-zoom"]},"-ms-touch-select":{values:["grippers","none"]},"-ms-transform":{values:["matrix()","matrix3d()","none","rotate()","rotate3d()","rotateX('angle')","rotateY('angle')","rotateZ('angle')","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skew()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"-ms-transform-origin":{},"-ms-transform-origin-x":{},"-ms-transform-origin-y":{},"-ms-transform-origin-z":{},"-ms-user-select":{values:["element","none","text"]},"-ms-word-break":{values:["break-all","keep-all","normal"]},"-ms-word-wrap":{values:["break-word","normal"]},"-ms-wrap-flow":{values:["auto","both","clear","end","maximum","minimum","start"]},"-ms-wrap-margin":{},"-ms-wrap-through":{values:["none","wrap"]},"-ms-writing-mode":{values:["bt-lr","bt-rl","lr-bt","lr-tb","rl-bt","rl-tb","tb-lr","tb-rl"]},"-ms-zoom":{values:["normal"]},"-ms-zoom-animation":{values:["default","none"]},"nav-down":{values:["auto","current","root"]},"nav-index":{values:["auto"]},"nav-left":{values:["auto","current","root"]},"nav-right":{values:["auto","current","root"]},"nav-up":{values:["auto","current","root"]},negative:{},"-o-animation":{values:["alternate","alternate-reverse","backwards","both","forwards","infinite","none","normal","reverse"]},"-o-animation-delay":{},"-o-animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"-o-animation-duration":{},"-o-animation-fill-mode":{values:["backwards","both","forwards","none"]},"-o-animation-iteration-count":{values:["infinite"]},"-o-animation-name":{values:["none"]},"-o-animation-play-state":{values:["paused","running"]},"-o-animation-timing-function":{},"object-fit":{values:["contain","cover","fill","none","scale-down"]},"object-position":{},"-o-border-image":{values:["auto","fill","none","repeat","round","space","stretch"]},"-o-object-fit":{values:["contain","cover","fill","none","scale-down"]},"-o-object-position":{},opacity:{},order:{},orphans:{},"-o-table-baseline":{},"-o-tab-size":{},"-o-text-overflow":{values:["clip","ellipsis"]},"-o-transform":{values:["matrix()","matrix3d()","none","rotate()","rotate3d()","rotateX('angle')","rotateY('angle')","rotateZ('angle')","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skew()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"-o-transform-origin":{},"-o-transition":{values:["all","none"]},"-o-transition-delay":{},"-o-transition-duration":{},"-o-transition-property":{values:["all","none"]},"-o-transition-timing-function":{},"offset-block-end":{values:["auto"]},"offset-block-start":{values:["auto"]},"offset-inline-end":{values:["auto"]},"offset-inline-start":{values:["auto"]},outline:{values:["auto","invert"]},"outline-color":{values:["invert"]},"outline-offset":{},"outline-style":{values:["auto"]},"outline-width":{},overflow:{values:["auto","hidden","-moz-hidden-unscrollable","scroll","visible"]},"overflow-wrap":{values:["break-word","normal"]},"overflow-x":{values:["auto","hidden","scroll","visible"]},"overflow-y":{values:["auto","hidden","scroll","visible"]},pad:{},padding:{values:[]},"padding-bottom":{},"padding-block-end":{},"padding-block-start":{},"padding-inline-end":{},"padding-inline-start":{},"padding-left":{},"padding-right":{},"padding-top":{},"page-break-after":{values:["always","auto","avoid","left","right"]},"page-break-before":{values:["always","auto","avoid","left","right"]},"page-break-inside":{values:["auto","avoid"]},"paint-order":{values:["fill","markers","normal","stroke"]},perspective:{values:["none"]},"perspective-origin":{},"pointer-events":{values:["all","fill","none","painted","stroke","visible","visibleFill","visiblePainted","visibleStroke"]},position:{values:["absolute","fixed","-ms-page","relative","static","sticky","-webkit-sticky"]},prefix:{},quotes:{values:["none"]},range:{values:["auto","infinite"]},resize:{values:["both","horizontal","none","vertical"]},right:{values:["auto"]},"ruby-align":{values:["auto","center","distribute-letter","distribute-space","left","line-edge","right","start","space-between","space-around"]},"ruby-overhang":{values:["auto","end","none","start"]},"ruby-position":{values:["after","before","inline","right"]},"ruby-span":{values:["attr(x)","none"]},"scrollbar-3dlight-color":{},"scrollbar-arrow-color":{},"scrollbar-base-color":{},"scrollbar-darkshadow-color":{},"scrollbar-face-color":{},"scrollbar-highlight-color":{},"scrollbar-shadow-color":{},"scrollbar-track-color":{},"scroll-behavior":{values:["auto","smooth"]},"scroll-snap-coordinate":{values:["none"]},"scroll-snap-destination":{},"scroll-snap-points-x":{values:["none","repeat()"]},"scroll-snap-points-y":{values:["none","repeat()"]},"scroll-snap-type":{values:["none","mandatory","proximity"]},"shape-image-threshold":{},"shape-margin":{},"shape-outside":{values:["margin-box","none"]},"shape-rendering":{values:["auto","crispEdges","geometricPrecision","optimizeSpeed"]},size:{},src:{values:["url()","format()","local()"]},"stop-color":{},"stop-opacity":{},stroke:{values:["url()","none"]},"stroke-dasharray":{values:["none"]},"stroke-dashoffset":{},"stroke-linecap":{values:["butt","round","square"]},"stroke-linejoin":{values:["bevel","miter","round"]},"stroke-miterlimit":{},"stroke-opacity":{},"stroke-width":{},suffix:{},system:{values:["additive","alphabetic","cyclic","extends","fixed","numeric","symbolic"]},symbols:{},"table-layout":{values:["auto","fixed"]},"tab-size":{},"text-align":{values:["center","end","justify","left","right","start"]},"text-align-last":{values:["auto","center","justify","left","right"]},"text-anchor":{values:["end","middle","start"]},"text-decoration":{values:["dashed","dotted","double","line-through","none","overline","solid","underline","wavy"]},"text-decoration-color":{},"text-decoration-line":{values:["line-through","none","overline","underline"]},"text-decoration-style":{values:["dashed","dotted","double","none","solid","wavy"]},"text-indent":{values:[]},"text-justify":{values:["auto","distribute","distribute-all-lines","inter-cluster","inter-ideograph","inter-word","kashida","newspaper"]},"text-orientation":{values:["sideways","sideways-right","upright"]},"text-overflow":{values:["clip","ellipsis"]},"text-rendering":{values:["auto","geometricPrecision","optimizeLegibility","optimizeSpeed"]},"text-shadow":{values:["none"]},"text-transform":{values:["capitalize","lowercase","none","uppercase"]},"text-underline-position":{values:["above","auto","below"]},top:{values:["auto"]},"touch-action":{values:["auto","cross-slide-x","cross-slide-y","double-tap-zoom","manipulation","none","pan-x","pan-y","pinch-zoom"]},transform:{values:["matrix()","matrix3d()","none","perspective()","rotate()","rotate3d()","rotateX('angle')","rotateY('angle')","rotateZ('angle')","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skew()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"transform-origin":{},"transform-style":{values:["flat","preserve-3d"]},transition:{values:["all","none"]},"transition-delay":{},"transition-duration":{},"transition-property":{values:["all","none"]},"transition-timing-function":{},"unicode-bidi":{values:["bidi-override","embed","isolate","isolate-override","normal","plaintext"]},"unicode-range":{values:["U+26","U+20-24F, U+2B0-2FF, U+370-4FF, U+1E00-1EFF, U+2000-20CF, U+2100-23FF, U+2500-26FF, U+E000-F8FF, U+FB00-FB4F","U+20-17F, U+2B0-2FF, U+2000-206F, U+20A0-20CF, U+2100-21FF, U+2600-26FF","U+20-2FF, U+370-4FF, U+1E00-20CF, U+2100-23FF, U+2500-26FF, U+FB00-FB4F, U+FFF0-FFFD","U+20-4FF, U+530-58F, U+10D0-10FF, U+1E00-23FF, U+2440-245F, U+2500-26FF, U+FB00-FB4F, U+FE20-FE2F, U+FFF0-FFFD","U+00-7F","U+80-FF","U+100-17F","U+180-24F","U+1E00-1EFF","U+250-2AF","U+370-3FF","U+1F00-1FFF","U+400-4FF","U+500-52F","U+00-52F, U+1E00-1FFF, U+2200-22FF","U+530-58F","U+590-5FF","U+600-6FF","U+750-77F","U+8A0-8FF","U+700-74F","U+900-97F","U+980-9FF","U+A00-A7F","U+A80-AFF","U+B00-B7F","U+B80-BFF","U+C00-C7F","U+C80-CFF","U+D00-D7F","U+D80-DFF","U+118A0-118FF","U+E00-E7F","U+1A20-1AAF","U+AA80-AADF","U+E80-EFF","U+F00-FFF","U+1000-109F","U+10A0-10FF","U+1200-137F","U+1380-139F","U+2D80-2DDF","U+AB00-AB2F","U+1780-17FF","U+1800-18AF","U+1B80-1BBF","U+1CC0-1CCF","U+4E00-9FD5","U+3400-4DB5","U+2F00-2FDF","U+2E80-2EFF","U+1100-11FF","U+AC00-D7AF","U+3040-309F","U+30A0-30FF","U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F","U+A4D0-A4FF","U+A000-A48F","U+A490-A4CF","U+2000-206F","U+3000-303F","U+2070-209F","U+20A0-20CF","U+2100-214F","U+2150-218F","U+2190-21FF","U+2200-22FF","U+2300-23FF","U+E000-F8FF","U+FB00-FB4F","U+FB50-FDFF","U+1F600-1F64F","U+2600-26FF","U+1F300-1F5FF","U+1F900-1F9FF","U+1F680-1F6FF"]},"user-select":{values:["all","auto","contain","none","text"]},"vertical-align":{values:["auto","baseline","bottom","middle","sub","super","text-bottom","text-top","top","-webkit-baseline-middle"]},visibility:{values:["collapse","hidden","visible"]},"-webkit-animation":{values:["alternate","alternate-reverse","backwards","both","forwards","infinite","none","normal","reverse"]},"-webkit-animation-delay":{},"-webkit-animation-direction":{values:["alternate","alternate-reverse","normal","reverse"]},"-webkit-animation-duration":{},"-webkit-animation-fill-mode":{values:["backwards","both","forwards","none"]},"-webkit-animation-iteration-count":{values:["infinite"]},"-webkit-animation-name":{values:["none"]},"-webkit-animation-play-state":{values:["paused","running"]},"-webkit-animation-timing-function":{},"-webkit-appearance":{values:["button","button-bevel","caps-lock-indicator","caret","checkbox","default-button","listbox","listitem","media-fullscreen-button","media-mute-button","media-play-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","menulist","menulist-button","menulist-text","menulist-textfield","none","push-button","radio","scrollbarbutton-down","scrollbarbutton-left","scrollbarbutton-right","scrollbarbutton-up","scrollbargripper-horizontal","scrollbargripper-vertical","scrollbarthumb-horizontal","scrollbarthumb-vertical","scrollbartrack-horizontal","scrollbartrack-vertical","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","slider-horizontal","sliderthumb-horizontal","sliderthumb-vertical","slider-vertical","square-button","textarea","textfield"]},"-webkit-backdrop-filter":{values:["none","blur()","brightness()","contrast()","drop-shadow()","grayscale()","hue-rotate()","invert()","opacity()","saturate()","sepia()","url()"]},"-webkit-backface-visibility":{values:["hidden","visible"]},"-webkit-background-clip":{},"-webkit-background-composite":{values:["border","padding"]},"-webkit-background-origin":{},"-webkit-border-image":{values:["auto","fill","none","repeat","round","space","stretch","url()"]},"-webkit-box-align":{values:["baseline","center","end","start","stretch"]},"-webkit-box-direction":{values:["normal","reverse"]},"-webkit-box-flex":{},"-webkit-box-flex-group":{},"-webkit-box-ordinal-group":{},"-webkit-box-orient":{values:["block-axis","horizontal","inline-axis","vertical"]},"-webkit-box-pack":{values:["center","end","justify","start"]},"-webkit-box-reflect":{values:["above","below","left","right"]},"-webkit-box-sizing":{values:["border-box","content-box"]},"-webkit-break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"-webkit-break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"-webkit-break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"-webkit-column-break-after":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"-webkit-column-break-before":{values:["always","auto","avoid","avoid-column","avoid-page","avoid-region","column","left","page","region","right"]},"-webkit-column-break-inside":{values:["auto","avoid","avoid-column","avoid-page","avoid-region"]},"-webkit-column-count":{values:["auto"]},"-webkit-column-gap":{values:["normal"]},"-webkit-column-rule":{},"-webkit-column-rule-color":{},"-webkit-column-rule-style":{},"-webkit-column-rule-width":{},"-webkit-columns":{values:["auto"]},"-webkit-column-span":{values:["all","none"]},"-webkit-column-width":{values:["auto"]},"-webkit-filter":{values:["none","blur()","brightness()","contrast()","drop-shadow()","grayscale()","hue-rotate()","invert()","opacity()","saturate()","sepia()","url()"]},"-webkit-flow-from":{values:["none"]},"-webkit-flow-into":{values:["none"]},"-webkit-font-feature-settings":{values:['"c2cs"','"dlig"','"kern"','"liga"','"lnum"','"onum"','"smcp"','"swsh"','"tnum"',"normal","off","on"]},"-webkit-hyphens":{values:["auto","manual","none"]},"-webkit-line-break":{values:["after-white-space","normal"]},"-webkit-margin-bottom-collapse":{values:["collapse","discard","separate"]},"-webkit-margin-collapse":{values:["collapse","discard","separate"]},"-webkit-margin-start":{values:["auto"]},"-webkit-margin-top-collapse":{values:["collapse","discard","separate"]},"-webkit-mask-clip":{},"-webkit-mask-image":{values:["none","url()"]},"-webkit-mask-origin":{},"-webkit-mask-repeat":{},"-webkit-mask-size":{values:["auto","contain","cover"]},"-webkit-nbsp-mode":{values:["normal","space"]},"-webkit-overflow-scrolling":{values:["auto","touch"]},"-webkit-padding-start":{},"-webkit-perspective":{values:["none"]},"-webkit-perspective-origin":{},"-webkit-region-fragment":{values:["auto","break"]},"-webkit-tap-highlight-color":{},"-webkit-text-fill-color":{},"-webkit-text-size-adjust":{values:["auto","none"]},"-webkit-text-stroke":{},"-webkit-text-stroke-color":{},"-webkit-text-stroke-width":{},"-webkit-touch-callout":{values:["none"]},"-webkit-transform":{values:["matrix()","matrix3d()","none","perspective()","rotate()","rotate3d()","rotateX('angle')","rotateY('angle')","rotateZ('angle')","scale()","scale3d()","scaleX()","scaleY()","scaleZ()","skew()","skewX()","skewY()","translate()","translate3d()","translateX()","translateY()","translateZ()"]},"-webkit-transform-origin":{},"-webkit-transform-origin-x":{},"-webkit-transform-origin-y":{},"-webkit-transform-origin-z":{},"-webkit-transform-style":{values:["flat"]},"-webkit-transition":{values:["all","none"]},"-webkit-transition-delay":{},"-webkit-transition-duration":{},"-webkit-transition-property":{values:["all","none"]},"-webkit-transition-timing-function":{},"-webkit-user-drag":{values:["auto","element","none"]},"-webkit-user-modify":{values:["read-only","read-write","read-write-plaintext-only"]},"-webkit-user-select":{values:["auto","none","text"]},widows:{},width:{values:["auto","fit-content","max-content","min-content"]},"will-change":{values:["auto","contents","scroll-position"]},"word-break":{values:["break-all","keep-all","normal"]},"word-spacing":{values:["normal"]},"word-wrap":{values:["break-word","normal"]},"writing-mode":{values:["horizontal-tb","sideways-lr","sideways-rl","vertical-lr","vertical-rl"]},"z-index":{values:["auto"]},zoom:{values:["normal"]},"-ms-ime-align":{values:["auto","after"]},"-moz-binding":{},"-moz-context-properties":{},"-moz-float-edge":{values:["border-box","content-box","margin-box","padding-box"]},"-moz-force-broken-image-icon":{values:["0","1"]},"-moz-image-region":{},"-moz-orient":{values:["inline","block","horizontal","vertical"]},"-moz-outline-radius":{},"-moz-outline-radius-bottomleft":{},"-moz-outline-radius-bottomright":{},"-moz-outline-radius-topleft":{},"-moz-outline-radius-topright":{},"-moz-stack-sizing":{values:["ignore","stretch-to-fit"]},"-moz-text-blink":{values:["none","blink"]},"-moz-user-input":{values:["auto","none","enabled","disabled"]},"-moz-user-modify":{values:["read-only","read-write","write-only"]},"-moz-window-dragging":{values:["drag","no-drag"]},"-moz-window-shadow":{values:["default","menu","tooltip","sheet","none"]},"-webkit-border-before":{},"-webkit-border-before-color":{},"-webkit-border-before-style":{},"-webkit-border-before-width":{},"-webkit-line-clamp":{},"-webkit-mask":{},"-webkit-mask-attachment":{},"-webkit-mask-composite":{},"-webkit-mask-position":{},"-webkit-mask-position-x":{},"-webkit-mask-position-y":{},"-webkit-mask-repeat-x":{values:["repeat","no-repeat","space","round"]},"-webkit-mask-repeat-y":{values:["repeat","no-repeat","space","round"]},"accent-color":{},"align-tracks":{},"animation-composition":{},"animation-timeline":{},appearance:{},"aspect-ratio":{},azimuth:{},"backdrop-filter":{},"border-block":{},"border-block-color":{},"border-block-style":{},"border-block-width":{},"border-end-end-radius":{},"border-end-start-radius":{},"border-inline":{},"border-inline-color":{},"border-inline-style":{},"border-inline-width":{},"border-start-end-radius":{},"border-start-start-radius":{},"box-align":{values:["start","center","end","baseline","stretch"]},"box-direction":{values:["normal","reverse","inherit"]},"box-flex":{},"box-flex-group":{},"box-lines":{values:["single","multiple"]},"box-ordinal-group":{},"box-orient":{values:["horizontal","vertical","inline-axis","block-axis","inherit"]},"box-pack":{values:["start","center","end","justify"]},caret:{},"caret-shape":{values:["auto","bar","block","underscore"]},"print-color-adjust":{values:["economy","exact"]},"color-scheme":{},"contain-intrinsic-size":{},"contain-intrinsic-block-size":{},"contain-intrinsic-height":{},"contain-intrinsic-inline-size":{},"contain-intrinsic-width":{},"content-visibility":{values:["visible","auto","hidden"]},"counter-set":{},"font-optical-sizing":{values:["auto","none"]},"font-variation-settings":{},"font-smooth":{},"forced-color-adjust":{values:["auto","none"]},gap:{},"hanging-punctuation":{},"hyphenate-character":{},"image-resolution":{},"initial-letter":{},"initial-letter-align":{},"input-security":{values:["auto","none"]},inset:{},"inset-block":{},"inset-block-end":{},"inset-block-start":{},"inset-inline":{},"inset-inline-end":{},"inset-inline-start":{},"justify-tracks":{},"line-clamp":{},"line-height-step":{},"margin-block":{},"margin-inline":{},"margin-trim":{values:["none","in-flow","all"]},mask:{},"mask-border":{},"mask-border-mode":{values:["luminance","alpha"]},"mask-border-outset":{},"mask-border-repeat":{},"mask-border-slice":{},"mask-border-source":{},"mask-border-width":{},"mask-clip":{},"mask-composite":{},"masonry-auto-flow":{},"math-depth":{},"math-shift":{values:["normal","compact"]},"math-style":{values:["normal","compact"]},"max-lines":{},offset:{},"offset-anchor":{},"offset-distance":{},"offset-path":{},"offset-position":{},"offset-rotate":{},"overflow-anchor":{values:["auto","none"]},"overflow-block":{values:["visible","hidden","clip","scroll","auto"]},"overflow-clip-box":{values:["padding-box","content-box"]},"overflow-clip-margin":{},"overflow-inline":{values:["visible","hidden","clip","scroll","auto"]},"overscroll-behavior":{},"overscroll-behavior-block":{values:["contain","none","auto"]},"overscroll-behavior-inline":{values:["contain","none","auto"]},"overscroll-behavior-x":{values:["contain","none","auto"]},"overscroll-behavior-y":{values:["contain","none","auto"]},"padding-block":{},"padding-inline":{},"place-content":{},"place-items":{},"place-self":{},rotate:{},"row-gap":{},"ruby-merge":{values:["separate","collapse","auto"]},scale:{},"scrollbar-color":{},"scrollbar-gutter":{},"scrollbar-width":{values:["auto","thin","none"]},"scroll-margin":{},"scroll-margin-block":{},"scroll-margin-block-start":{},"scroll-margin-block-end":{},"scroll-margin-bottom":{},"scroll-margin-inline":{},"scroll-margin-inline-start":{},"scroll-margin-inline-end":{},"scroll-margin-left":{},"scroll-margin-right":{},"scroll-margin-top":{},"scroll-padding":{},"scroll-padding-block":{},"scroll-padding-block-start":{},"scroll-padding-block-end":{},"scroll-padding-bottom":{},"scroll-padding-inline":{},"scroll-padding-inline-start":{},"scroll-padding-inline-end":{},"scroll-padding-left":{},"scroll-padding-right":{},"scroll-padding-top":{},"scroll-snap-align":{},"scroll-snap-stop":{values:["normal","always"]},"scroll-snap-type-x":{values:["none","mandatory","proximity"]},"scroll-snap-type-y":{values:["none","mandatory","proximity"]},"scroll-timeline":{},"scroll-timeline-axis":{values:["block","inline","vertical","horizontal"]},"scroll-timeline-name":{},"text-combine-upright":{},"text-decoration-skip":{},"text-decoration-skip-ink":{values:["auto","all","none"]},"text-decoration-thickness":{},"text-emphasis":{},"text-emphasis-color":{},"text-emphasis-position":{},"text-emphasis-style":{},"text-size-adjust":{},"text-underline-offset":{},"transform-box":{values:["content-box","border-box","fill-box","stroke-box","view-box"]},translate:{},"white-space":{values:["normal","pre","nowrap","pre-wrap","pre-line","break-spaces"]},"speak-as":{},"ascent-override":{},"descent-override":{},"font-display":{},"line-gap-override":{},"size-adjust":{},bleed:{},marks:{},syntax:{},inherits:{values:["true","false"]},"initial-value":{},"max-zoom":{},"min-zoom":{},orientation:{values:["auto","portrait","landscape"]},"user-zoom":{values:["zoom","fixed"]},"viewport-fit":{values:["auto","contain","cover"]}},validate=function(x_,eme){for(var $P=x_.getModel(),tme=[],ame=$P.getLineCount(),nme=1;nme<ame+1;nme++){var rme={startLineNumber:nme,startColumn:1,endLineNumber:nme,endColumn:$P.getLineLength(nme)+1},ime=$P.getValueInRange(rme);ime!==""&&(ime.includes(":")?/^(.*):\s?;?$/.test(ime)?tme.push({message:i18n("af26fdb215bad5b2296529802b129c12"),severity:eme.MarkerSeverity.Error,startLineNumber:rme.startLineNumber,startColumn:rme.endColumn,endLineNumber:rme.endLineNumber,endColumn:rme.endColumn+1}):ime.endsWith(";")||tme.push({message:i18n("3955b2e2e06144010a1142d3624b17b1"),severity:eme.MarkerSeverity.Error,startLineNumber:rme.startLineNumber,startColumn:rme.endColumn,endLineNumber:rme.endLineNumber,endColumn:rme.endColumn+1}):tme.push({message:i18n("bb7654f7c2768614e95a0da7e94f4045"),severity:eme.MarkerSeverity.Error,startLineNumber:rme.startLineNumber,startColumn:rme.endColumn,endLineNumber:rme.endLineNumber,endColumn:rme.endColumn+1}))}eme.editor.setModelMarkers($P,"owner",tme)},editorFactory=function(x_,eme,$P){eme.languages.getEncodedLanguageId("amisTheme")||(eme.languages.register({id:"amisTheme"}),eme.languages.setMonarchTokensProvider("amisTheme",conf),eme.languages.registerCompletionItemProvider("amisTheme",{provideCompletionItems:function(ame,nme){var rme=nme.lineNumber,ime=nme.column,ome=ame.getValueInRange({startLineNumber:rme,startColumn:0,endLineNumber:rme,endColumn:ime});if(/(.*):(.*);/.test(ome))return{suggestions:[]};var lme=/(.*):/.exec(ome)||[],sme=keywords[lme[1]],cme;return isEmpty$4(sme)?cme=__spreadArray([],__read$3(Object.keys(keywords).map(function(dme){return{label:dme,kind:eme.languages.CompletionItemKind.Keyword,insertText:dme+": "}})),!1):cme=__spreadArray([],__read$3(sme.values.map(function(dme){return{label:dme,kind:eme.languages.CompletionItemKind.Enum,insertText:dme+";"}})),!1),{suggestions:cme}},triggerCharacters:[" "]}));var tme=eme.editor.create(x_,__assign$3(__assign$3({},$P),{language:"amisTheme",autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},scrollbar:{alwaysConsumeMouseWheel:!1},"bracketPairColorization.enabled":!0,automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0}));return tme.onDidChangeModelContent(function(){validate(tme,eme),$P.onChange&&$P.onChange(tme.getValue())}),tme},SingleThemeCssCode=function(x_){var eme=x_.data,$P=x_.onChange,tme=x_.selector,ame=tme.label,nme=tme.selector,rme=tme.isRoot,ime=eme.wrapperCustomStyle,ome=reactExports.useRef(null),lme=__read$3(reactExports.useState(!1),2),sme=lme[0],cme=lme[1],dme=__read$3(reactExports.useState(""),2),ume=dme[0],fme=dme[1],pme=rme?"root":nme;reactExports.useEffect(function(){fme(bme(ime==null?void 0:ime[pme],"",0))},[]);var hme=function(_me){for(var $me="",Cme=0;Cme<_me;Cme++)$me+="  ";return $me},bme=function(_me,$me,Cme){if(isEmpty$4(_me))return"";for(var Sme in _me)_me.hasOwnProperty(Sme)&&(isObject$r(_me[Sme])?($me+=hme(Cme)+"".concat(Sme,` {
`),$me+=bme(_me[Sme],"",Cme+1),$me+=hme(Cme)+`}
`,Cme===0&&($me+=`
`)):$me+=hme(Cme)+"".concat(Sme,": ").concat(_me[Sme],`;
`));return $me},mme=function(_me){var $me={};return isEmpty$4(_me)||_me.nodes.forEach(function(Cme){var Sme=Cme.prop,Eme=Cme.value,xme=Cme.selector;Eme&&($me[Sme]=Eme,Cme.important&&($me[Sme]+=" !important")),Cme.nodes&&($me[xme]=mme(Cme))}),$me},vme=debounce$6(function(_me){try{var $me=index_min.parse(_me),Cme=mme($me);$P&&$P(Cme)}catch{}}),gme=function(_me){vme(_me),fme(_me)},yme=jsxs(Fragment,{children:[jsx("div",{className:"ae-SingleThemeCssCode-header",children:jsx("div",{className:"ae-SingleThemeCssCode-title mtk14",children:nme+" {"})}),jsx("div",{className:"ae-SingleThemeCssCode-content",children:jsx(MonacoEditor,{className:"ae-SingleThemeCssCode-custom-editor",value:ume,editorFactory,onChange:gme})}),jsx("div",{className:"ae-SingleThemeCssCode-footer mtk14",children:"}"})]});return jsxs(Fragment,{children:[jsx("div",{className:"ae-SingleThemeCssCode-label",children:ame}),jsxs("div",{ref:ome,className:"ae-SingleThemeCssCode",children:[jsx("a",{className:"ae-SingleThemeCssCode-button ae-SingleThemeCssCode-icon",onClick:function(){return cme(!0)},children:jsx(Icon$1,{icon:"expand-alt",className:"icon"})}),yme]}),jsx(Overlay,{container:document.body,placement:"left",target:ome.current,show:sme,rootClose:!1,children:jsx(PopOver$1,{overlay:!0,onHide:function(){return cme(!1)},children:jsxs("div",{className:"ae-SingleThemeCssCode-panel",children:[jsx("div",{className:"ae-SingleThemeCssCode-panel-title",children:i18n("aaf9656ba493b58fbab398d52efa9f7c")}),jsx("div",{className:"ae-SingleThemeCssCode-panel-close",children:jsx("a",{onClick:function(){return cme(!1)},className:"ae-SingleThemeCssCode-icon",children:jsx(Icon$1,{icon:"close",className:"icon"})})}),jsx("div",{className:"ae-SingleThemeCssCode-panel-content",children:yme})]})})})]})};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(SingleThemeCssCode,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"ae-single-theme-cssCode",strictMode:!1})],eme),eme})(React__default.Component);var colCount=[1,2,3,4],ColCount=function(x_){var eme=__read$3(React__default.useState(x_.value),2),$P=eme[0],tme=eme[1];function ame(nme){x_.manager.store;for(var rme=__spreadArray([],__read$3(x_.data.body||[]),!1),ime=0,ome=nme,lme=0;lme<rme.length;lme++)rme[lme].$$dragMode==="hv"?(ome=nme,rme[lme]=__assign$3(__assign$3({},rme[lme]),{row:++ime}),ime++):(ome--,rme[lme]=__assign$3(__assign$3({},rme[lme]),{row:ime,colSize:nme>1?"1/".concat(nme):"1"}),ome===0&&(ime++,ome=nme));x_.setValue(rme,"body"),tme(nme)}return React__default.createElement("div",{className:"ColCount"},colCount.map(function(nme){return React__default.createElement("div",{key:nme,className:cx$1("ColCount-item",$P===nme&&"is-active"),onClick:function(){return ame(nme)}},nme)}))};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(ColCount,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"col-count",strictMode:!1})],eme),eme})(React__default.Component);var baseColSize=["1/4","1/3","1/2","2/3","3/4","1"],colSizeMap={1:baseColSize,2:baseColSize,3:["1/3","1/2","1"],4:["1/4","1"]};function getColSize(x_,eme){if(!x_.includes("/"))return x_;var $P=__read$3(x_.split("/").map(function(rme){return parseInt(rme,10)}),2),tme=$P[0],ame=$P[1],nme=ame-tme;return nme%eme===0?"".concat(nme/eme,"/").concat(ame):"".concat(nme,"/").concat(ame*eme)}var ColSize=function(x_){var eme,$P,tme,ame=x_.manager.store,nme=__spreadArray([],__read$3(ame.getSchemaParentById(ame.activeId)),!1),rme=ame.getNodeById(ame.activeId),ime=x_.data.row,ome=nme.filter(function(pme){return pme.row===ime}),lme=ome.length,sme=ame.getNodeById(rme.parentId),cme=((eme=sme==null?void 0:sme.schema)===null||eme===void 0?void 0:eme.mode)==="flex",dme=cme?x_.data.colSize:x_.data.size;function ume(pme){var hme,bme;if(!(!colSizeMap[lme].includes(pme)||((bme=rme==null?void 0:rme.schema)===null||bme===void 0?void 0:bme.$$dragMode)==="hv")){var mme=__spreadArray([],__read$3(nme),!1);if(lme>1)if(pme==="1"){var vme=mme.findIndex(function($me){return $me.$$id===rme.id}),gme=!1;mme=mme.map(function($me,Cme){return $me.row===ime&&(Cme<vme&&(gme=!0),Cme===vme&&gme&&($me.row+=1)),Cme>vme&&($me.row+=gme?2:1),$me})}else{var yme=getColSize(pme,lme-1);mme=mme.map(function($me){return $me.row===ime&&$me.$$id!==rme.id&&($me.colSize=yme),$me})}var _me=JSONUpdate(ame.schema,rme.parentId,(hme={},hme[rme.parentRegion]=mme,hme));ame.setSchema(_me),x_.setValue(pme,"colSize")}}function fme(pme){x_.setValue(pme,"size")}return cme?React__default.createElement("div",{className:"ColSize"},baseColSize.map(function(pme){var hme;return React__default.createElement("div",{className:cx$1("ColSize-item",dme===pme&&"is-active",!(!((hme=colSizeMap[lme])===null||hme===void 0)&&hme.includes(pme))&&"is-disabled",rme.schema.$$dragMode==="hv"&&"is-disabled"),key:pme,onClick:function(){return ume(pme)}},pme)})):x_.render("size",{label:!1,type:"amis-theme-select",name:"size",value:dme,options:__spreadArray([{label:i18n("ffaa96ef7232cb6d8ee4d7e673dbf4ac"),value:"full"},{label:i18n("23ecf42cada8bf2715792d718544d107"),value:"xs"},{label:i18n("391b8fa9c747a1799353ab856e666ad5"),value:"sm"},{label:i18n("aed1dfbc31703955e64806b799b67645"),value:"md"},{label:i18n("ab18e30c0dc4093ceeda8961fac3d1f4"),value:"lg"}],__read$3(((tme=($P=x_.data)===null||$P===void 0?void 0:$P.sizesOptions)===null||tme===void 0?void 0:tme.filter(function(pme){return!["var(--sizes-size-0)","var(--sizes-size-1)"].includes(pme.value)}))||[]),!1),onChange:fme})};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(ColSize,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"col-size",strictMode:!1})],eme),eme})(React__default.Component);var LabelAlign=function(x_){var eme,$P=x_.manager.store,tme=$P.getNodeById($P.activeId),ame=$P.getNodeById(tme.parentId),nme=(eme=ame==null?void 0:ame.schema)===null||eme===void 0?void 0:eme.mode;function rme(ime){var ome=ime.value;ome&&(x_.onChange(ome),nme!=="flex"&&(ome==="inherit"?x_.setValue(void 0,"mode"):ome!=="top"?x_.setValue("horizontal","mode"):x_.setValue("normal","mode")))}return React__default.createElement(EnhancedSelect,{className:":LabelAlign",value:x_.value||"inherit",onChange:rme,clearable:!1,options:[{label:i18n("2dde3029c4170a1c8e961a90766e0194"),value:"inherit"},{label:"上下布局",value:"top"},{label:"水平居左",value:"left"},{label:"水平居右",value:"right"}]})};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return React__default.createElement(LabelAlign,__assign$3({},this.props))},eme=__decorate$1([FormItem({type:"label-align",strictMode:!1})],eme),eme})(React__default.Component);var ButtonGroupControl=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.render=function(){var $P=this.props,tme=$P.options,ame=$P.value,nme=$P.onChange,rme=$P.classnames,ime=rme||cx$1;return React__default.createElement("div",{className:ime("ButtonGroup","icon-ButtonList")},tme&&tme.map(function(ome){return React__default.createElement(Button$1,{key:ome.value,onClick:function(){return nme(ome.value)},level:ame===ome.value?"primary":"default",tooltip:ome.label,active:ame===ome.value},hasIcon(ome.icon)?React__default.createElement(Icon$1,{icon:ome.icon,className:cx$1("icon",ome.iconClassName)}):ome.icon?React__default.createElement("i",{className:cx$1(ome.icon,ome.iconClassName)}):ome.label)}))},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"icon-button-group"})],eme),eme})(ButtonGroupControl);var directionText={row:[i18n("413f48cc71f71083ce532a86e3efdc21"),i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),i18n("2a6ad292447e6354ca39ee7f40d2fcc8"),i18n("d68c21b6b65e7a2e361762b65b8a5032")],column:[i18n("2a6ad292447e6354ca39ee7f40d2fcc8"),i18n("d68c21b6b65e7a2e361762b65b8a5032"),i18n("413f48cc71f71083ce532a86e3efdc21"),i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")],"row-reverse":[i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9"),i18n("413f48cc71f71083ce532a86e3efdc21"),i18n("2a6ad292447e6354ca39ee7f40d2fcc8"),i18n("d68c21b6b65e7a2e361762b65b8a5032")],"column-reverse":[i18n("d68c21b6b65e7a2e361762b65b8a5032"),i18n("2a6ad292447e6354ca39ee7f40d2fcc8"),i18n("413f48cc71f71083ce532a86e3efdc21"),i18n("fd8e9572cc6bf87653c4d8f8b8dd0db9")]},scaleX={row:"",column:"scaleX-90","row-reverse":"scaleX-180","column-reverse":"scaleX-270"},scaleY={row:"",column:"scaleX-270","row-reverse":"","column-reverse":"scaleX-270"},getFlexItem=function(x_){var eme=x_.value,$P=x_.direction,tme=x_.justify,ame=x_.alignItems,nme=(eme==null?void 0:eme.flexDirection)||$P||"row",rme=nme==="column"||nme==="column-reverse",ime=[{label:i18n("ed33c46d1d69336bb011813e8352fa01"),value:"row",icon:"drow"},{label:i18n("963e9ff4252cdef288063c41eb6d4998"),value:"column",icon:"dcolumn"},{label:i18n("ae07817b441091793c8af39256908373"),value:"row-reverse",icon:"drowReverse",iconClassName:"scaleX-180"},{label:i18n("618515fd68ecfc4a5b58462f0cb9666b"),value:"column-reverse",icon:"dcolumnReverse",iconClassName:"scaleX-180"}],ome=[{label:directionText[nme][0],value:"flex-start",icon:"jFlexStart",iconClassName:scaleX[nme]},{label:i18n(rme?"4117e80d2c2e52f795ec64160f399364":"d365d58d281508b9982f6a0370649ae2"),value:"center",icon:"jCenter",iconClassName:scaleX[nme]},{label:directionText[nme][1],value:"flex-end",icon:"jFlexEnd",iconClassName:scaleX[nme]},{label:i18n("da1b972efb29f850b50e219ad4d98ba5"),value:"space-between",icon:"jSpaceBetween",iconClassName:scaleX[nme]},{label:i18n("21af94c1abc5891b2703c9321417a1a9"),value:"space-around",icon:"jSpaceAround",iconClassName:scaleX[nme]}],lme=[{label:directionText[nme][2],value:"flex-start",icon:"aFlexStart",iconClassName:scaleY[nme]},{label:i18n(rme?"d365d58d281508b9982f6a0370649ae2":"4117e80d2c2e52f795ec64160f399364"),value:"center",icon:"aCenter",iconClassName:scaleY[nme]},{label:directionText[nme][3],value:"flex-end",icon:"aFlexEnd",iconClassName:scaleY[nme]},{label:i18n("ed97c73866617b40a7b1215867e0f489"),value:"baseline",icon:"aBaseline",iconClassName:scaleY[nme]},{label:i18n(rme?"849b9b944a65eb0685f3e6af60a0c523":"cbac406a3f51abad691702015b0784ba"),value:"stretch",icon:"aStretch",iconClassName:rme?"scaleX-90":""}],sme=[{field:"flexDirection",options:ime,default:$P||"row"},{field:"justifyContent",options:ome,default:tme||"flex-start"},{field:"alignItems",options:lme,default:ame||"stretch"}];return sme},FlexSettingControl=function(x_){__extends$2(eme,x_);function eme($P){return x_.call(this,$P)||this}return eme.prototype.setField=function($P){var tme=this.props,ame=tme.value,nme=tme.onChange;return function(rme){var ime;nme(__assign$3(__assign$3({},ame),(ime={},ime[$P]=rme,ime)))}},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.value,nme=tme.label,rme=__rest$14(tme,["value","label"]),ime=getFlexItem(this.props);return React__default.createElement("div",{className:"ap-Flex"},!nme&&React__default.createElement("div",{className:"ap-Flex-label"},"内部对齐设置"),ime.map(function(ome){return React__default.createElement("div",{className:"ap-Flex-item ap-Flex-".concat(ome.field),key:ome.field},React__default.createElement(ButtonGroupControl,__assign$3({},rme,{options:ome.options,value:(ame==null?void 0:ame[ome.field])||ome.default,onChange:$P.setField(ome.field)})))}))},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"flex-layout-setting"})],eme),eme})(FlexSettingControl);var TableColumnWidthControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.options=[{label:i18n("07c60b53a84fd7751095864a5310cc7d"),value:"adaptive"},{label:i18n("81522afdfef2e4121c9240d00583f531"),value:"percentage"},{label:i18n("b591aed69defa2abf0486da6a58dfb5e"),value:"fixed"}],tme.state={activeOption:tme.options[0]},tme}return eme.prototype.componentDidMount=function(){var $P=this.props.value;$P!==void 0&&(typeof $P=="number"?this.state.activeOption!==this.options[2]&&this.setState({activeOption:this.options[2]}):typeof $P=="string"&&$P.endsWith("%")?this.state.activeOption!==this.options[1]&&this.setState({activeOption:this.options[1]}):this.state.activeOption!==this.options[0]&&this.setState({activeOption:this.options[0]}))},eme.prototype.handleOptionChange=function($P){var tme,ame;$P!==this.state.activeOption&&(this.setState({activeOption:$P}),(ame=(tme=this.props)===null||tme===void 0?void 0:tme.onChange)===null||ame===void 0||ame.call(tme,void 0))},eme.prototype.renderHeader=function(){var $P=this,tme,ame=this.props,nme=ame.render,rme=ame.formLabel,ime=ame.labelRemark,ome=ame.useMobileUI,lme=ame.env,sme=ame.popOverContainer;ame.data;var cme=(tme=lme==null?void 0:lme.theme)===null||tme===void 0?void 0:tme.classPrefix,dme=this.state.activeOption;return React__default.createElement("div",{className:"ae-columnWidthControl-header"},React__default.createElement("label",{className:cx$1("".concat(cme,"Form-label"))},rme||"",ime?nme("label-remark",{type:"remark",icon:ime.icon||"warning-mark",tooltip:ime,className:cx$1("Form-lableRemark",ime==null?void 0:ime.className),useMobileUI:ome,container:sme||(lme&&lme.getModalContainer?lme.getModalContainer:void 0)}):null),nme("columnWidthControl-options",{type:"dropdown-button",level:"link",size:"sm",label:dme.label,align:"right",closeOnClick:!0,closeOnOutside:!0,buttons:this.options.map(function(ume){return __assign$3(__assign$3({},ume),{onClick:function(){return $P.handleOptionChange(ume)}})})},{popOverContainer:null}))},eme.prototype.handleChange=function($P,tme){var ame=this.props.onChange;if(!(typeof tme!="number"||isNaN(tme))){if(tme<=0){ame==null||ame(void 0);return}ame==null||ame($P==="percentage"?tme+"%":tme)}},eme.prototype.renderBody=function(){var $P=this,tme=this.props;tme.onBulkChange;var ame=tme.render;tme.onChange;var nme=tme.value,rme=this.state.activeOption;return rme.value==="adaptive"?null:rme.value==="fixed"?ame("columnWidthControl-fixed",getSchemaTpl("withUnit",{label:i18n("9a8aed590bb7fcdd9198daca349b055a"),name:"interval",control:{type:"input-number",min:0,value:nme},unit:"px",className:"mt-3"}),{onChange:function(ime){return $P.handleChange("fixed",ime)}}):ame("columnWidthControl-fixed",{type:"input-range",name:"range",min:0,max:100,step:1,label:i18n("e0dbf4a939e6c84610d28b8a9b1803c1"),value:toNumber$1(nme),onChange:function(ime){return rme.value==="percentage"&&$P.handleChange("percentage",ime)}})},eme.prototype.render=function(){return React__default.createElement("div",{className:cx$1("ae-columnWidthControl")},this.renderHeader(),this.renderBody())},eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-columnWidthControl",renderLabel:!1})],eme),eme})(TableColumnWidthControl);var AddColumnModal=function(x_){var eme=x_.classnames,$P=x_.render,tme=x_.visible,ame=x_.initData,nme=x_.ctx;x_.manager;var rme=x_.builder,ime=x_.onConfirm,ome=x_.onClose,lme=nme==null?void 0:nme.id,sme=reactExports.useRef(null),cme=reactExports.useRef(null),dme=__read$3(reactExports.useState(!1),2),ume=dme[0],fme=dme[1],pme=reactExports.useCallback(function(){return __awaiter(void 0,void 0,void 0,function(){var hme,bme,mme,vme,gme,yme,_me;return __generator(this,function($me){switch($me.label){case 0:if(hme=(yme=(gme=cme==null?void 0:cme.current)===null||gme===void 0?void 0:gme.getWrappedInstance)===null||yme===void 0?void 0:yme.call(gme),fme(!0),!hme)return[3,4];$me.label=1;case 1:return $me.trys.push([1,3,,4]),[4,(_me=hme.submit)===null||_me===void 0?void 0:_me.call(hme,function(Cme){return __awaiter(void 0,void 0,void 0,function(){var Sme,Eme,xme,Tme,Ome,Rme;return __generator(this,function(Nme){switch(Nme.label){case 0:return Cme.colType!=="field"?[3,2]:[4,(Tme=rme.buildCRUDColumn)===null||Tme===void 0?void 0:Tme.call(rme,Cme.__fieldItem?__assign$3(__assign$3({},Cme.__fieldItem),{checked:!0}):__assign$3(__assign$3({},Cme),{label:Cme.title,name:Cme.name,displayType:"tpl"}),{renderer:"crud",inScaffold:!1,schema:nme},lme)];case 1:return Eme=Nme.sent(),Sme=Eme!==!1?Eme:{label:Cme.title,name:Cme.name},[3,4];case 2:return Cme.colType!=="operation"?[3,4]:(xme=((Ome=nme==null?void 0:nme.columns)!==null&&Ome!==void 0?Ome:[]).map(function(Ime){var Pme,Mme;return{displayType:(Pme=Ime.type)!==null&&Pme!==void 0?Pme:"input-text",inputType:(Mme=Ime.type)!==null&&Mme!==void 0?Mme:"input-text",name:Ime.name,label:Ime.title}}),[4,(Rme=rme.buildCRUDOpColumn)===null||Rme===void 0?void 0:Rme.call(rme,{renderer:"crud",inScaffold:!1,feats:Cme.feats,schema:nme,scaffoldConfig:{viewFields:xme,editFields:xme,viewApi:Cme==null?void 0:Cme.viewApi,editApi:Cme==null?void 0:Cme.editApi,deleteApi:Cme==null?void 0:Cme.deleteApi},buildSettings:{useDefaultFields:!0}},lme)]);case 3:Sme=Nme.sent(),Nme.label=4;case 4:return[2,Promise.resolve(JSONPipeIn(omit$1(Sme,["key"])))]}})})})];case 2:return bme=$me.sent(),[3,4];case 3:return vme=$me.sent(),mme=vme.stack,[3,4];case 4:return fme(!1),mme?console.error(mme):(ime(bme),ome==null||ome()),[2]}})})},[ime]);return reactExports.useEffect(function(){},[]),jsx(Fragment,{children:jsxs(FinalModal,{ref:sme,size:"sm",show:tme,onHide:ome,closeOnEsc:!1,contentClassName:"ae-Scaffold-Modal :AMISCSSWrapper",children:[jsx(FinalModal.Header,{showCloseButton:!0,onClose:ome,children:jsx(FinalModal.Title,{className:"ae-Scaffold-Modal-title",children:i18n("49198f84cea6c212cd5d463037827cd5")})}),jsx(FinalModal.Body,{children:$P("column-control-modal",{type:"form",title:"",mode:"horizontal",horizontal:{justify:!0,leftFixed:"sm"},submitOnChange:!0,wrapWithPanel:!1,clearValueOnHidden:!0,preventEnterSubmit:!0,actions:[],body:__spreadArray(__spreadArray([{type:"input-tag",name:"colType",label:i18n("fb4c95bae088e3f216ea9312bcdb26ca"),static:!0,className:"mb-2",options:[{label:i18n("8eebb8ae809cf1ceaa23cd2fa2c73898"),value:"field"},{label:i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),value:"operation"}]}],__read$3((ame==null?void 0:ame.colType)==="field"?[getSchemaTpl("formItemName",{name:"name",label:i18n("4ca07911d10b74cc7c357b510e7cc948"),required:!0,onBindingChange:function(hme,bme){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(mme){return bme==null||bme({name:hme.value,title:hme.label,__fieldItem:hme},!0),[2,!1]})})}}),{name:"title",label:i18n("eb2719a7e6cebda7ca234560f21fb448"),type:"input-text",required:!0}]:[]),!1),__read$3((ame==null?void 0:ame.colType)==="operation"?__spreadArray([{type:"checkboxes",label:i18n("5246d2c81fa12b1f4f73635c257e232d"),name:"feats",joinValues:!1,extractValue:!0,multiple:!0,inline:!1,options:[{label:i18n("5b48dbb8dc710cffe6313bb56a7f6d47"),value:"View"},{label:i18n("e22b59b6bda1cf9a58f8979fd0a0b43c"),value:"Edit"},{label:i18n("a790208cafd5c95a18dd9a168319ecf8"),value:"Delete"}],value:[DSFeatureEnum.View,DSFeatureEnum.Edit,DSFeatureEnum.Delete]}],__read$3(rme.key!==ModelDSBuilderKey?__spreadArray(__spreadArray(__spreadArray([],__read$3(rme.makeSourceSettingForm({feat:"View",renderer:"crud",inScaffold:!1,sourceSettings:{name:"viewApi",visibleOn:"data.feats && data.feats.indexOf('View') > -1"}})),!1),__read$3(rme.makeSourceSettingForm({feat:"Edit",renderer:"crud",inScaffold:!1,sourceSettings:{name:"editApi",visibleOn:"data.feats && data.feats.indexOf('Edit') > -1"}})),!1),__read$3(rme.makeSourceSettingForm({feat:"Delete",renderer:"crud",inScaffold:!1,sourceSettings:{name:"deleteApi",visibleOn:"data.feats && data.feats.indexOf('Delete') > -1"}})),!1).filter(Boolean):[]),!1).filter(function(hme){return!!hme}):[]),!1)},{ref:cme,popOverContainer:sme.current,disabled:ume,data:createObject$1(nme,__assign$3({},ame))})}),jsxs(FinalModal.Footer,{children:[jsx(Button$1,{onClick:ome,children:i18n("625fb26b4b3340f7872b411f401e754c")}),jsx(Button$1,{loading:ume,loadingClassName:eme("ae-CRUDConfigControl-modal-btn-loading"),level:"primary",onClick:pme,children:i18n("38cf16f2204ffab8a6e0187070558721")})]})]})})},AddColumnModal$1=themeable(AddColumnModal),CRUDColumnControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={options:[],loading:!1,showAddModal:!1},tme}return eme.prototype.componentDidMount=function(){this.dom=reactDomExports.findDOMNode(this),this.initOptions()},eme.prototype.componentDidUpdate=function($P){$P.value!==this.props.value&&this.initOptions()},eme.prototype.transformOption=function($P){var tme;return $P.name||$P.type==="operation"?{label:typeof $P.title=="string"?$P.title:$P.type==="tpl"&&typeof $P.tpl=="string"?$P.tpl:$P.name,value:(tme=$P.name)!==null&&tme!==void 0?tme:$P.key,nodeId:$P.$$id,hidden:$P.type==="operation",pristine:$P}:!1},eme.prototype.initOptions=function(){var $P;return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme,dme=this;return __generator(this,function(ume){switch(ume.label){case 0:if(tme=this.props,ame=tme.manager,nme=tme.nodeId,rme=tme.builder,tme.data,ime=ame.store,ome=ime.getNodeById(nme),this.setState({loading:!0}),!(rme&&rme.getCRUDListFields))return[3,5];ume.label=1;case 1:return ume.trys.push([1,3,,4]),[4,rme.getCRUDListFields({renderer:"crud",schema:ome.schema,inScaffold:!1,controlSettings:{fieldMapper:this.transformOption.bind(this)}})];case 2:return lme=ume.sent(),this.setState({options:lme}),[3,4];case 3:return ume.sent(),[3,4];case 4:return[3,6];case 5:sme=($P=ome==null?void 0:ome.schema)===null||$P===void 0?void 0:$P.columns,cme=[],sme.forEach(function(fme){var pme=dme.transformOption(fme);pme!==!1&&cme.push(pme)}),this.setState({options:cme}),ume.label=6;case 6:return this.setState({loading:!1}),[2]}})})},eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.initDragging=function(){var $P=this,tme=this.props.classnames,ame=reactDomExports.findDOMNode(this);this.sortable=new Sortable(ame.querySelector(".".concat(tme("ae-CRUDConfigControl-list"))),{group:"CRUDColumnControlGroup",animation:150,handle:".".concat(tme("ae-CRUDConfigControl-list-item")),ghostClass:".".concat(tme("ae-CRUDConfigControl-list-item--dragging")),onEnd:function(nme){if(!(nme.newIndex===nme.oldIndex||nme.newIndex==null||nme.oldIndex==null)){var rme=nme.to;nme.oldIndex<rme.childNodes.length-1?rme.insertBefore(nme.item,rme.childNodes[nme.oldIndex>nme.newIndex?nme.oldIndex+1:nme.oldIndex]):rme.appendChild(nme.item);var ime=$P.state.options.concat();ime.splice(nme.newIndex,0,ime.splice(nme.oldIndex,1)[0]),$P.setState({options:ime},function(){return $P.handleSort()})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.handleSort=function(){var $P=this.props.onBulkChange,tme=this.state.options.concat();$P==null||$P({columns:tme.map(function(ame){return ame.pristine})})},eme.prototype.handleEdit=function($P){var tme,ame,nme,rme=this.props,ime=rme.manager,ome=rme.node,lme=(ame=(tme=ome==null?void 0:ome.schema)===null||tme===void 0?void 0:tme.columns)!==null&&ame!==void 0?ame:[],sme=lme.findIndex(function(cme){return cme.id===$P.pristine.id});if(!~sme){toast.warning("未找到对应列「".concat($P.label,"」"));return}ime.setActiveId((nme=lme[sme])===null||nme===void 0?void 0:nme.$$id)},eme.prototype.handleAddColumn=function($P){var tme=this.props.onBulkChange,ame=this.state.options.concat(),nme;switch($P){case"field":this.setState({showAddModal:!0,addModalData:{colTypeLabel:i18n("8eebb8ae809cf1ceaa23cd2fa2c73898"),colType:$P}});break;case"empty":nme={title:i18n("f9e759ac21d528e7d1e84b5feae4560a"),name:"empty"};break;case"container":nme={title:i18n("22c799040acdb2601b437ed5449de076"),name:"container",type:"container",style:{position:"static",display:"block"},wrapperBody:!1,body:[]};break;case"operation":this.setState({showAddModal:!0,addModalData:{colTypeLabel:i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),colType:$P}});break}if(nme){var rme=JSONPipeIn(__assign$3({},nme));ame.push({label:rme.title,value:rme.name,nodeId:rme.$$id,hidden:$P==="operation",pristine:rme}),this.setState({options:ame},function(){tme==null||tme({columns:ame.map(function(ime){return ime.pristine})})})}},eme.prototype.handleAddModalConfirm=function($P){var tme=this.props.onBulkChange,ame=this.state.options.concat();ame.push({label:typeof $P.title=="string"?$P.title:$P.name,value:$P.name,nodeId:$P.$$id,hidden:$P.type==="operation",pristine:$P}),this.setState({options:ame},function(){tme==null||tme({columns:ame.map(function(nme){return nme.pristine})})})},eme.prototype.handleAddModalClose=function(){this.setState({showAddModal:!1,addModalData:void 0})},eme.prototype.handleDelete=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome;return __generator(this,function(lme){switch(lme.label){case 0:return ame=this.props,nme=ame.onBulkChange,rme=ame.env,ime=this.state.options,[4,rme.confirm("确定要删除列「".concat($P.label,"」吗？"))];case 1:return ome=lme.sent(),~tme&&ome&&(ime.splice(tme,1),this.setState({options:ime},function(){nme==null||nme({columns:ime.map(function(sme){return sme.pristine})})})),[2]}})})},eme.prototype.renderOption=function($P,tme){var ame=this,nme,rme,ime,ome=this.props,lme=ome.classnames;ome.data,ome.render;var sme=ome.popOverContainer,cme=ome.env;return React__default.createElement("li",{key:tme,className:lme("ae-CRUDConfigControl-list-item","is-draggable")},React__default.createElement(TooltipWrapper$1,{tooltip:{content:$P.label,tooltipTheme:"dark",style:{fontSize:"12px"}},container:sme||((nme=cme==null?void 0:cme.getModalContainer)===null||nme===void 0?void 0:nme.call(cme)),trigger:["hover"],delay:150},React__default.createElement("div",{className:lme("ae-CRUDConfigControl-list-item-info")},React__default.createElement("span",null,$P.label))),React__default.createElement("div",{className:lme("ae-CRUDConfigControl-list-item-actions")},$P.hidden||!(!((rme=$P==null?void 0:$P.context)===null||rme===void 0)&&rme.isCascadingField)?null:React__default.createElement(Tag$1,{label:(ime=$P==null?void 0:$P.context)===null||ime===void 0?void 0:ime.modelLabel,displayMode:"normal",className:lme("ae-CRUDConfigControl-list-item-tag","ae-CRUDConfigControl-list-item-tag--cascading")}),React__default.createElement(Button$1,{level:"link",size:"sm",tooltip:{content:i18n("eee03351367bb1907dcc3140ffa3e3b8"),tooltipTheme:"dark",style:{fontSize:"12px"}},onClick:function(){return ame.handleEdit($P)}},React__default.createElement(Icon$1,{icon:"column-setting",className:"icon"})),React__default.createElement(Button$1,{level:"link",size:"sm",onClick:function(){return ame.handleDelete($P,tme)}},React__default.createElement(Icon$1,{icon:"column-delete",className:"icon"}))))},eme.prototype.renderHeader=function(){var $P=this,tme,ame,nme=this.props,rme=nme.classnames;nme.data;var ime=nme.render,ome=nme.env;return React__default.createElement("header",{className:rme("ae-CRUDConfigControl-header")},React__default.createElement("span",{className:rme("Form-label")},i18n("dc7558211f2990370954c2e7ca498ee9")),ime("column-control-dropdown",{type:"dropdown-button",closeOnClick:!0,hideCaret:!0,level:"link",align:"right",trigger:["click"],popOverContainer:(ame=(tme=ome.getModalContainer)!==null&&tme!==void 0?tme:this.dom)!==null&&ame!==void 0?ame:document.body,icon:"column-add",label:i18n("49198f84cea6c212cd5d463037827cd5"),className:rme("ae-CRUDConfigControl-dropdown"),buttons:[{type:"button",label:i18n("8eebb8ae809cf1ceaa23cd2fa2c73898"),onClick:function(){return $P.handleAddColumn("field")}},{type:"button",label:i18n("f9e759ac21d528e7d1e84b5feae4560a"),onClick:function(){return $P.handleAddColumn("empty")}},{type:"button",label:i18n("7202bba23492811d2964234485a909e5"),onClick:function(){return $P.handleAddColumn("container")}},{type:"button",label:i18n("39ccc34fa3ee9be12d8bae7e6fecbac2"),onClick:function(){return $P.handleAddColumn("operation")}}]}))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames,nme=tme.data,rme=tme.manager,ime=tme.builder,ome=this.state,lme=ome.options,sme=ome.loading,cme=ome.showAddModal,dme=ome.addModalData;return React__default.createElement("div",{className:ame("ae-CRUDConfigControl")},sme?React__default.createElement(Spinner$1,{show:!0,tip:i18n("4c2dc6491d29ef77f421daa19541c8ab"),tipPlacement:"bottom",size:"sm",className:ame("flex")}):React__default.createElement(React__default.Fragment,null,this.renderHeader(),Array.isArray(lme)&&lme.length>0?React__default.createElement("ul",{className:ame("ae-CRUDConfigControl-list"),ref:this.dragRef},lme.map(function(ume,fme){return $P.renderOption(ume,fme)})):React__default.createElement("ul",{className:ame("ae-CRUDConfigControl-list"),ref:this.dragRef},React__default.createElement("p",{className:ame("ae-CRUDConfigControl-placeholder")},i18n("21efd88b67a39834582ad99aabb9dc60")))),cme?React__default.createElement(AddColumnModal$1,{render:this.props.render,visible:cme,initData:dme,ctx:nme,manager:rme,builder:ime,onConfirm:this.handleAddModalConfirm,onClose:this.handleAddModalClose}):null)},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleSort",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddColumn",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddModalConfirm",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAddModalClose",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"handleDelete",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderOption",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-crud-column-control",renderLabel:!1,wrap:!1})],eme),eme})(CRUDColumnControl);var CRUDToolbarControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.collection=[DSFeatureEnum.Insert,DSFeatureEnum.BulkEdit,DSFeatureEnum.BulkDelete],tme.state={options:[],loading:!1},tme}return eme.prototype.componentDidMount=function(){this.dom=reactDomExports.findDOMNode(this);var $P=this.getActionNodes(this.props);this.initOptions($P)},eme.prototype.getActionNodes=function($P){var tme=$P.manager,ame=$P.nodeId,nme=$P.name,rme=nme===void 0?"headerToolbar":nme,ime=tme.store,ome=ime.getNodeById(ame),lme=[];return traverseSchemaDeep(pick$3(ome==null?void 0:ome.schema,rme),function(sme,cme,dme){if(sme==="behavior"&&[DSFeatureEnum.Insert,DSFeatureEnum.BulkEdit,DSFeatureEnum.BulkDelete,"custom"].includes(cme)){var ume=ime.getNodeById(dme==null?void 0:dme.$$id);ume&&lme.push(ume)}return[sme,cme]}),lme},eme.prototype.initOptions=function($P){var tme=this;if(!$P||!Array.isArray($P)||!$P.length){this.setState({options:[]});return}var ame=$P.map(function(nme){var rme=nme.schema,ime=rme.behavior;return{label:tme.getOptionLabel(rme,ime),value:ime,nodeId:rme.$$id,node:nme,pristine:nme.schema}});this.setState({options:ame})},eme.prototype.getOptionLabel=function($P,tme){return tme==="custom"?$P.label:DSFeature[tme].label},eme.prototype.handleEdit=function($P){var tme=this.props.manager;if(!$P.nodeId){toast.warning("未找到工具栏中对应操作「".concat($P.label,"」"));return}tme.setActiveId($P.nodeId)},eme.prototype.handleAddAction=function($P){var tme,ame,nme;return __awaiter(this,void 0,void 0,function(){var rme,ime,ome,lme,sme,cme,dme,ume,fme,pme,hme,bme,mme;return __generator(this,function(vme){switch(vme.label){case 0:switch(this.setState({loading:!0}),rme=this.props,rme.onBulkChange,ime=rme.onChange,ome=rme.data,lme=rme.nodeId,sme=rme.manager,cme=rme.builder,dme=this.state.options.concat(),ume=sme.store.getNodeById(lme),fme=(tme=ume==null?void 0:ume.schema)===null||tme===void 0?void 0:tme.id,hme=$P,hme){case"Insert":return[3,1];case"BulkEdit":return[3,3];case"BulkDelete":return[3,5]}return[3,7];case 1:return[4,cme.buildInsertSchema({feat:DSFeatureEnum.Insert,renderer:"crud",inScaffold:!1,schema:ome,scaffoldConfig:{insertFields:((ame=ome==null?void 0:ome.columns)!==null&&ame!==void 0?ame:[]).filter(function(gme){return gme.type!=="operation"}).map(function(gme){var yme;return{inputType:(yme=gme.type)!==null&&yme!==void 0?yme:"input-text",name:gme.name,label:gme.title}}),insertApi:""}},fme)];case 2:return pme=vme.sent(),[3,8];case 3:return[4,cme.buildBulkEditSchema({feat:DSFeatureEnum.BulkEdit,renderer:"crud",inScaffold:!1,schema:ome,scaffoldConfig:{bulkEditFields:((nme=ome==null?void 0:ome.columns)!==null&&nme!==void 0?nme:[]).filter(function(gme){return gme.type!=="operation"}).map(function(gme){var yme;return{inputType:(yme=gme.type)!==null&&yme!==void 0?yme:"input-text",name:gme.name,label:gme.title}}),bulkEdit:""}},fme)];case 4:return pme=vme.sent(),[3,8];case 5:return[4,cme.buildCRUDBulkDeleteSchema({feat:DSFeatureEnum.BulkDelete,renderer:"crud",inScaffold:!1,schema:ome,scaffoldConfig:{bulkDeleteApi:""}},fme)];case 6:return pme=vme.sent(),[3,8];case 7:pme={type:"button",label:i18n("fa966345577ba81af19408f203db968f"),behavior:"custom",className:"m-r-xs",onEvent:{click:{actions:[]}}},vme.label=8;case 8:return pme?(bme=cloneDeep$1(ome.headerToolbar),mme=JSONPipeIn(__assign$3({},pme)),dme.push({label:this.getOptionLabel(mme,$P),value:$P,nodeId:mme.$$id,pristine:mme}),this.setState({options:dme,loading:!1},function(){var gme={headerToolbar:bme};addSchema2Toolbar(gme,mme,"header","left"),ime==null||ime(gme.headerToolbar,!0,!0)}),[2]):(this.setState({loading:!1}),[2])}})})},eme.prototype.handleDelete=function($P,tme){return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:return ame=this.props,nme=ame.env,rme=ame.data,ame.onBulkChange,ime=ame.onChange,ome=this.state.options.concat(),[4,nme.confirm("确定要删除工具栏中「".concat($P.label,"」吗？"))];case 1:return lme=dme.sent(),sme=cloneDeep$1(rme.headerToolbar),lme&&(cme=deepRemove(sme,function(ume){return ume.behavior===$P.value}),cme&&(ome.splice(tme,1),this.setState({options:ome},function(){ime==null||ime(sme,!0,!0)}))),[2]}})})},eme.prototype.renderOption=function($P,tme){var ame=this,nme,rme=this.props,ime=rme.classnames,ome=rme.popOverContainer,lme=rme.env;return React__default.createElement("li",{key:tme,className:ime("ae-CRUDConfigControl-list-item")},React__default.createElement(TooltipWrapper$1,{tooltip:{content:$P.label,tooltipTheme:"dark",style:{fontSize:"12px"}},container:ome||((nme=lme==null?void 0:lme.getModalContainer)===null||nme===void 0?void 0:nme.call(lme)),trigger:["hover"],delay:150},React__default.createElement("div",{className:ime("ae-CRUDConfigControl-list-item-info")},React__default.createElement("span",null,$P.label))),React__default.createElement("div",{className:ime("ae-CRUDConfigControl-list-item-actions")},React__default.createElement(Button$1,{level:"link",size:"sm",tooltip:{content:i18n("eee03351367bb1907dcc3140ffa3e3b8"),tooltipTheme:"dark",style:{fontSize:"12px"}},onClick:function(){return ame.handleEdit($P)}},React__default.createElement(Icon$1,{icon:"column-setting",className:"icon"})),React__default.createElement(Button$1,{level:"link",size:"sm",onClick:function(){return ame.handleDelete($P,tme)}},React__default.createElement(Icon$1,{icon:"column-delete",className:"icon"}))))},eme.prototype.renderHeader=function(){var $P=this,tme,ame,nme=this.props,rme=nme.classnames,ime=nme.render,ome=nme.env,lme=this.state.options,sme=this.collection.concat(),cme=lme.map(function(dme){return dme.value});return React__default.createElement("header",{className:rme("ae-CRUDConfigControl-header")},React__default.createElement("span",{className:rme("Form-label")},i18n("012f602372cd2dbd639cd966c63e1f90")),ime("crud-toolbar-control-dropdown",{type:"dropdown-button",closeOnClick:!0,hideCaret:!0,level:"link",align:"right",trigger:["click"],popOverContainer:(ame=(tme=ome.getModalContainer)!==null&&tme!==void 0?tme:this.dom)!==null&&ame!==void 0?ame:document.body,icon:"column-add",label:i18n("84a2f40385427bbf2edc79e3368e4e0f"),className:rme("ae-CRUDConfigControl-dropdown"),disabledTip:{content:i18n("dc858fed3c66a1194d5f9aec81faee3d"),tooltipTheme:"dark"},buttons:sme.map(function(dme){return{type:"button",label:DSFeature[dme].label,disabled:!!~cme.findIndex(function(ume){return ume===dme}),onClick:function(){return $P.handleAddAction(dme)}}}).concat({type:"button",label:i18n("fb3304d27d85c79d89ce6cac22a174b8"),disabled:!1,onClick:function(){return $P.handleAddAction("custom")}})}))},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.classnames;tme.data;var nme=this.state,rme=nme.options,ime=nme.loading;return React__default.createElement("div",{className:ame("ae-CRUDConfigControl")},ime?React__default.createElement(Spinner$1,{show:!0,tip:i18n("e40c411876b4a57e24fbc6b4b4fd5027"),tipPlacement:"bottom",size:"sm",className:ame("flex")}):React__default.createElement(React__default.Fragment,null,this.renderHeader(),React__default.createElement("ul",{className:ame("ae-CRUDConfigControl-list")},Array.isArray(rme)&&rme.length>0?rme.map(function(ome,lme){return $P.renderOption(ome,lme)}):React__default.createElement("p",{className:ame("ae-CRUDConfigControl-placeholder")},i18n("21efd88b67a39834582ad99aabb9dc60")))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",Promise)],eme.prototype,"handleAddAction",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",Promise)],eme.prototype,"handleDelete",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderOption",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-crud-toolbar-control",renderLabel:!1,wrap:!1})],eme),eme})(CRUDToolbarControl);var CRUDFiltersControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.state={options:[],loading:!1,checked:!1},tme}return eme.prototype.componentDidMount=function(){this.dom=reactDomExports.findDOMNode(this),this.initOptions()},eme.prototype.componentDidUpdate=function($P,tme,ame){($P.data.headerToolbar!==this.props.data.headerToolbar||$P.data.filter!==this.props.data.filter)&&this.initOptions()},eme.prototype.transformOption=function($P){var tme,ame;return $P.name?{label:typeof $P.label=="string"?$P.label:((tme=$P.label)===null||tme===void 0?void 0:tme.type)==="tpl"&&typeof $P.label.tpl=="string"?$P.label.tpl:$P.name,value:(ame=$P.name)!==null&&ame!==void 0?ame:$P.key,nodeId:$P.$$id,pristine:$P}:!1},eme.prototype.initOptions=function(){var $P,tme,ame,nme,rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,Cme,Cme,$me,Cme,Sme,Eme=this;return __generator(this,function(xme){switch(xme.label){case 0:if(cme=this.props,dme=cme.manager,ume=cme.nodeId,fme=cme.feat,pme=cme.builder,hme=dme.store,bme=hme.getNodeById(ume),mme=bme.schema,vme=mme!=null&&mme.filter?Array.isArray(mme.filter)?mme.filter.find(function(Tme){return Tme.behavior&&Array.isArray(Tme.behavior)}):(($P=mme.filter)===null||$P===void 0?void 0:$P.type)==="form"?mme.filter:void 0:void 0,gme=vme?vme.$$id:"",!pme)return yme=[],((tme=vme==null?void 0:vme.body)!==null&&tme!==void 0?tme:[]).forEach(function(Tme){if(!(Tme.type==="condition-builder"||Tme.behavior==="AdvancedQuery")){var Ome=Eme.transformOption(Tme);Ome!==!1&&yme.push(Ome)}}),this.setState({options:yme,checked:yme.length>0,targetNodeId:gme}),[2];this.setState({loading:!0}),_me={feat:fme,renderer:"crud",schema:bme.schema,inScaffold:!1,controlSettings:{fieldMapper:this.transformOption.bind(this)}},xme.label=1;case 1:return xme.trys.push([1,8,,9]),fme===DSFeatureEnum.SimpleQuery&&pme.filterByFeat(fme)?[4,(ame=pme.getCRUDSimpleQueryFields)===null||ame===void 0?void 0:ame.call(pme,__assign$3({},_me))]:[3,3];case 2:return Cme=(nme=xme.sent())!==null&&nme!==void 0?nme:[],this.setState({options:Cme,checked:Cme.length>0,targetNodeId:gme}),[3,7];case 3:return fme===DSFeatureEnum.AdvancedQuery&&pme.filterByFeat(fme)?[4,(rme=pme==null?void 0:pme.getCRUDAdvancedQueryFields)===null||rme===void 0?void 0:rme.call(pme,__assign$3({},_me))]:[3,5];case 4:return Cme=(ime=xme.sent())!==null&&ime!==void 0?ime:[],$me=((ome=vme==null?void 0:vme.body)!==null&&ome!==void 0?ome:[]).find(function(Tme){return Tme.type==="condition-builder"&&(Tme.behavior===DSFeatureEnum.AdvancedQuery||Tme.name==="__filter")}),gme=$me?$me.$$id:"",this.setState({options:Cme,checked:Cme.length>0,targetNodeId:gme}),[3,7];case 5:return fme===DSFeatureEnum.FuzzyQuery&&pme.filterByFeat(fme)?[4,(lme=pme==null?void 0:pme.getCRUDFuzzyQueryFields)===null||lme===void 0?void 0:lme.call(pme,__assign$3({},_me))]:[3,7];case 6:Cme=(sme=xme.sent())!==null&&sme!==void 0?sme:[],traverseSchemaDeep(mme,function(Tme,Ome,Rme){return Tme==="behavior"&&Ome===DSFeatureEnum.FuzzyQuery&&Rme.type==="search-box"&&(Sme=Rme),[Tme,Ome]}),gme=Sme?Sme.$$id:"",this.setState({options:Cme,checked:Cme.length>0,targetNodeId:gme}),xme.label=7;case 7:return[3,9];case 8:return xme.sent(),[3,9];case 9:return this.setState({loading:!1}),[2]}})})},eme.prototype.setFilterVisible=function($P){var tme;!("visibleOn"in $P)&&$P.type&&($P.visible=((tme=$P.body)===null||tme===void 0?void 0:tme.length)>0)},eme.prototype.updateSimpleQuery=function($P){var tme,ame,nme,rme,ime,ome;return __awaiter(this,void 0,void 0,function(){var lme,sme,cme,dme,ume,fme,pme,hme,bme,yme,mme,yme,mme,vme,gme,yme,_me;return __generator(this,function($me){switch($me.label){case 0:return lme=this.props,sme=lme.manager,cme=lme.nodeId,dme=lme.builder,ume=sme.store,fme=ume.getNodeById(cme),pme=fme==null?void 0:fme.schema,(tme=pme==null?void 0:pme.schema)===null||tme===void 0||tme.id,[4,dme.guessCRUDScaffoldConfig({schema:pme})];case 1:return $me.sent(),hme=cloneDeep$1(pme!=null&&pme.filter?Array.isArray(pme.filter)?pme.filter.find(function(Cme){return Cme.behavior&&Array.isArray(Cme.behavior)&&Cme.type==="form"}):((ame=pme.filter)===null||ame===void 0?void 0:ame.type)==="form"?pme.filter:void 0:void 0),hme?$P?[4,(nme=dme.buildSimpleQueryCollectionSchema)===null||nme===void 0?void 0:nme.call(dme,{renderer:"crud",schema:pme,inScaffold:!1,buildSettings:{useDefaultFields:!0}})]:[3,3]:[3,5];case 2:return bme=(rme=$me.sent())!==null&&rme!==void 0?rme:[],yme=traverseSchemaDeep(hme,function(Cme,Sme,Eme){return Cme==="behavior"&&Array.isArray(Sme)?[Cme,uniq$1(__spreadArray(__spreadArray([],__read$3(Sme),!1),[DSFeatureEnum.SimpleQuery],!1).filter(Boolean))]:Cme==="body"&&Array.isArray(Sme)&&(Eme==null?void 0:Eme.type)==="form"?[Cme,__spreadArray(__spreadArray([],__read$3(Sme),!1),__read$3(bme),!1).filter(Boolean)]:[Cme,Sme]}),this.setFilterVisible(yme),mme=sme.store.getNodeById(hme.$$id),mme&&mme.updateSchema(yme),[3,4];case 3:yme=traverseSchemaDeep(hme,function(Cme,Sme,Eme){return Cme==="behavior"&&Array.isArray(Sme)?[Cme,Sme.filter(function(xme){return xme!==DSFeatureEnum.SimpleQuery})]:Cme==="body"&&Array.isArray(Sme)&&(Eme==null?void 0:Eme.type)==="form"?[Cme,Sme.filter(function(xme){return(xme==null?void 0:xme.behavior)!==DSFeatureEnum.SimpleQuery})]:[Cme,Sme]}),this.setFilterVisible(yme),mme=sme.store.getNodeById(hme.$$id),mme&&mme.updateSchema(yme),$me.label=4;case 4:return[3,8];case 5:return $P?[4,(ime=dme.buildSimpleQueryCollectionSchema)===null||ime===void 0?void 0:ime.call(dme,{renderer:"crud",schema:pme,inScaffold:!1,buildSettings:{useDefaultFields:!0}})]:[3,8];case 6:return vme=(ome=$me.sent())!==null&&ome!==void 0?ome:[],[4,dme.buildCRUDFilterSchema({renderer:"crud",inScaffold:!1,schema:pme,feats:[DSFeatureEnum.SimpleQuery],scaffoldConfig:{dsType:pme.dsType,simpleQueryFields:vme},buildSettings:{useDefaultFields:!0}})];case 7:gme=$me.sent(),yme=cloneDeep$1(fme==null?void 0:fme.schema.filter),_me=Array.isArray(yme),_me&&yme.push(gme),fme.updateSchema(__assign$3(__assign$3({},pme),{filter:_me?yme:gme})),$me.label=8;case 8:return[2]}})})},eme.prototype.updateAdvancedQuery=function($P){var tme;return __awaiter(this,void 0,void 0,function(){var ame,nme,rme,ime,ome,lme,sme,cme,dme,pme,ume,pme,ume,fme,pme,hme;return __generator(this,function(bme){switch(bme.label){case 0:return ame=this.props,nme=ame.manager,rme=ame.nodeId,ime=ame.builder,ome=nme.store,lme=ome.getNodeById(rme),sme=lme==null?void 0:lme.schema,cme=cloneDeep$1(Array.isArray(sme.filter)?lme==null?void 0:lme.schema.filter.find(function(mme){return mme.behavior&&Array.isArray(mme.behavior)}):lme==null?void 0:lme.schema.filter),cme?$P?[4,(tme=ime.buildAdvancedQuerySchema)===null||tme===void 0?void 0:tme.call(ime,{renderer:"crud",inScaffold:!1,schema:sme,buildSettings:{useDefaultFields:!0}})]:[3,2]:[3,4];case 1:return dme=bme.sent(),pme=traverseSchemaDeep(cme,function(mme,vme,gme){return mme==="behavior"&&Array.isArray(vme)?[mme,uniq$1(__spreadArray(__spreadArray([],__read$3(vme),!1),[DSFeatureEnum.AdvancedQuery],!1).filter(Boolean))]:mme==="body"&&Array.isArray(vme)&&(gme==null?void 0:gme.type)==="form"?[mme,__spreadArray([dme],__read$3(vme),!1)]:[mme,vme]}),this.setFilterVisible(pme),ume=nme.store.getNodeById(cme.$$id),ume&&ume.updateSchema(pme),[3,3];case 2:pme=traverseSchemaDeep(cme,function(mme,vme,gme){return mme==="behavior"&&Array.isArray(vme)?[mme,vme.filter(function(yme){return yme!==DSFeatureEnum.AdvancedQuery})]:mme==="body"&&Array.isArray(vme)&&(gme==null?void 0:gme.type)==="form"?[mme,vme.filter(function(yme){return(yme==null?void 0:yme.behavior)!==DSFeatureEnum.AdvancedQuery&&yme.type!=="condition-builder"})]:[mme,vme]}),this.setFilterVisible(pme),ume=nme.store.getNodeById(cme.$$id),ume&&ume.updateSchema(pme),bme.label=3;case 3:return[3,6];case 4:return $P?[4,ime.buildCRUDFilterSchema({renderer:"crud",inScaffold:!1,schema:sme,feats:[DSFeatureEnum.AdvancedQuery],buildSettings:{useDefaultFields:!0}})]:[3,6];case 5:fme=bme.sent(),pme=cloneDeep$1(lme==null?void 0:lme.schema.filter),hme=Array.isArray(pme),hme&&pme.push(fme),lme.updateSchema(__assign$3(__assign$3({},sme),{filter:hme?pme:fme})),bme.label=6;case 6:return[2]}})})},eme.prototype.updateFuzzyQuery=function($P){var tme,ame,nme,rme,ime,ome,lme,sme;return __awaiter(this,void 0,void 0,function(){var cme,dme,ume,fme,pme,hme,bme,mme,vme,gme,yme,_me,$me,Sme,Cme,Tme,Sme,Eme,xme,Tme,Ome,Rme,Nme;return __generator(this,function(Ime){switch(Ime.label){case 0:return cme=this.props,dme=cme.manager,ume=cme.nodeId,fme=cme.builder,pme=dme.store,hme=pme.getNodeById(ume),bme=hme==null?void 0:hme.schema,mme=(tme=bme==null?void 0:bme.schema)===null||tme===void 0?void 0:tme.id,vme=cloneDeep$1(bme.headerToolbar),$P?vme?[3,2]:(yme=(gme=hme).updateSchema,_me=[__assign$3({},bme)],Nme={},[4,(ame=fme.buildCRUDHeaderToolbar)===null||ame===void 0?void 0:ame.call(fme,{renderer:"crud",inScaffold:!1,schema:bme,buildSettings:{useDefaultFields:!0}},mme)]):(vme&&(deepRemove(vme,function(Pme){return Pme.behavior===DSFeatureEnum.FuzzyQuery&&Pme.type==="search-box"},!0),hme.updateSchema(__assign$3(__assign$3({},bme),{headerToolbar:vme}))),[2]);case 1:return yme.apply(gme,[__assign$3.apply(void 0,_me.concat([(Nme.headerToolbar=Ime.sent(),Nme)]))]),[2];case 2:return traverseSchemaDeep(bme,function(Pme,Mme,kme){return Pme==="behavior"&&Array.isArray(Mme)&&(kme!=null&&kme.behavior.includes("FuzzyQuery"))&&(kme==null?void 0:kme.type)==="container"&&Array.isArray(kme==null?void 0:kme.body)&&($me=kme),[Pme,Mme]}),$me?[4,(nme=fme.buildFuzzyQuerySchema)===null||nme===void 0?void 0:nme.call(fme,{renderer:"crud",inScaffold:!1,schema:bme,buildSettings:{useDefaultFields:!0}})]:[3,4];case 3:return Sme=Ime.sent(),Cme=cloneDeep$1($me),Cme.body=__spreadArray(__spreadArray([],__read$3(Cme.body),!1),[Sme],!1),Tme=dme.store.getNodeById($me.$$id),Tme&&Tme.updateSchema(Cme),[3,9];case 4:return[4,(rme=fme.buildFuzzyQuerySchema)===null||rme===void 0?void 0:rme.call(fme,{renderer:"crud",inScaffold:!1,schema:bme,buildSettings:{useDefaultFields:!0}})];case 5:return Sme=Ime.sent(),((ime=vme==null?void 0:vme[0])===null||ime===void 0?void 0:ime.type)==="flex"&&Array.isArray((ome=vme[0])===null||ome===void 0?void 0:ome.items)?(Eme=cloneDeep$1(vme[0]),[4,(lme=fme.buildFuzzyQuerySchema)===null||lme===void 0?void 0:lme.call(fme,{renderer:"crud",inScaffold:!1,schema:bme,buildSettings:{useDefaultFields:!0,wrapContainer:"container"}})]):[3,7];case 6:return xme=Ime.sent(),Eme.items.push(xme),Tme=dme.store.getNodeById(vme[0].$$id),Tme&&Tme.updateSchema(Eme),[3,9];case 7:return Ome=cloneDeep$1(vme),[4,(sme=fme.buildFuzzyQuerySchema)===null||sme===void 0?void 0:sme.call(fme,{renderer:"crud",inScaffold:!1,schema:bme,buildSettings:{useDefaultFields:!0,wrapContainer:"flex"}})];case 8:Rme=Ime.sent(),Ome.push(Rme),hme.updateSchema(__assign$3(__assign$3({},bme),{headerToolbar:Ome})),Ime.label=9;case 9:return[2]}})})},eme.prototype.handleToggle=function($P){return __awaiter(this,void 0,void 0,function(){var tme,ame,nme,rme,ime,ome,lme,sme,cme;return __generator(this,function(dme){switch(dme.label){case 0:tme=this.props,ame=tme.manager,nme=tme.nodeId,rme=tme.feat,ime=tme.builder,ome=ame.store,this.setState({loading:!0,checked:$P}),dme.label=1;case 1:return dme.trys.push([1,10,,11]),rme===DSFeatureEnum.SimpleQuery&&ime.filterByFeat(rme)?[4,this.updateSimpleQuery($P)]:[3,3];case 2:return dme.sent(),[3,5];case 3:return rme===DSFeatureEnum.AdvancedQuery&&ime.filterByFeat(rme)?[4,this.updateAdvancedQuery($P)]:[3,5];case 4:dme.sent(),dme.label=5;case 5:return rme===DSFeatureEnum.FuzzyQuery&&ime.filterByFeat(rme)?[4,this.updateFuzzyQuery($P)]:[3,7];case 6:dme.sent(),dme.label=7;case 7:return ime.key!==ModelDSBuilderKey?[3,9]:(lme=ome.getNodeById(nme),sme=lme==null?void 0:lme.schema,sme?[4,ime.buildApiSchema({schema:lme.schema,renderer:"crud",sourceKey:"api",feat:DSFeatureEnum.List})]:[3,9]);case 8:cme=dme.sent(),lme.updateSchema({api:cme.api}),dme.label=9;case 9:return[3,11];case 10:return dme.sent(),[3,11];case 11:return this.setState({loading:!1,checked:$P}),[2]}})})},eme.prototype.handleEdit=function($P){var tme=this.props.manager,ame=$P?$P==null?void 0:$P.nodeId:this.state.targetNodeId;if(!ame){toast.warning(i18n("e11e888f47bc6cd5816a1147be05e792"));return}tme.setActiveId(ame)},eme.prototype.renderOption=function($P,tme){var ame=this,nme,rme,ime,ome=this.props,lme=ome.classnames,sme=ome.feat,cme=ome.popOverContainer,dme=ome.env;return React__default.createElement("li",{key:tme,className:lme("ae-CRUDConfigControl-list-item")},React__default.createElement(TooltipWrapper$1,{tooltip:{content:$P.label,tooltipTheme:"dark",style:{fontSize:"12px"}},container:cme||((nme=dme==null?void 0:dme.getModalContainer)===null||nme===void 0?void 0:nme.call(dme)),trigger:["hover"],delay:150},React__default.createElement("div",{className:lme("ae-CRUDConfigControl-list-item-info")},React__default.createElement("span",null,$P.label))),React__default.createElement("div",{className:lme("ae-CRUDConfigControl-list-item-actions")},!((rme=$P==null?void 0:$P.context)===null||rme===void 0)&&rme.isCascadingField?React__default.createElement(Tag$1,{label:(ime=$P==null?void 0:$P.context)===null||ime===void 0?void 0:ime.modelLabel,displayMode:"normal",className:lme("ae-CRUDConfigControl-list-item-tag","ae-CRUDConfigControl-list-item-tag--cascading")}):null,sme==="SimpleQuery"?React__default.createElement(Button$1,{level:"link",size:"sm",tooltip:{content:i18n("eee03351367bb1907dcc3140ffa3e3b8"),tooltipTheme:"dark",style:{fontSize:"12px"}},onClick:function(){return ame.handleEdit($P)}},React__default.createElement(Icon$1,{icon:"column-setting",className:lme("icon")})):null))},eme.prototype.renderHeader=function(){var $P=this,tme=this.props,ame=tme.classPrefix,nme=tme.classnames;tme.render,tme.env;var rme=tme.label;tme.feat;var ime=this.state;ime.options;var ome=ime.checked;return React__default.createElement("header",{className:nme("ae-CRUDConfigControl-header","mb-2")},React__default.createElement("span",{className:nme("Form-label")},rme),React__default.createElement("div",{className:nme("ae-CRUDConfigControl-header-actions")},React__default.createElement(Switch$1,{className:nme("ae-CRUDConfigControl-header-actions-switch"),key:"switch",size:"sm",classPrefix:ame,value:ome,onChange:this.handleToggle}),React__default.createElement("div",{className:nme("ae-CRUDConfigControl-header-actions-divider")}),React__default.createElement(Button$1,{level:"link",size:"sm",tooltip:{content:i18n("e6413abdc2fd3ccbbf15327e4004b1b2"),tooltipTheme:"dark",style:{fontSize:"12px"}},onClick:function(){return $P.handleEdit()}},React__default.createElement(Icon$1,{icon:"share-link",className:nme("icon"),style:{width:"16px",height:"16px"}}))))},eme.prototype.render=function(){var $P=this,tme=this.props.classnames,ame=this.state,nme=ame.options,rme=ame.loading;return React__default.createElement("div",{className:tme("ae-CRUDConfigControl")},this.renderHeader(),React__default.createElement("ul",{className:tme("ae-CRUDConfigControl-list")},rme?React__default.createElement(Spinner$1,{show:!0,tip:i18n("4c2dc6491d29ef77f421daa19541c8ab"),tipPlacement:"bottom",size:"sm",className:tme("flex")}):Array.isArray(nme)&&nme.length>0?nme.map(function(ime,ome){return $P.renderOption(ime,ome)}):React__default.createElement("p",{className:tme("ae-CRUDConfigControl-placeholder")},i18n("fcebd5cda006253365b4453596290f48"))))},__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",Promise)],eme.prototype,"initOptions",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",Promise)],eme.prototype,"updateAdvancedQuery",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",Promise)],eme.prototype,"updateFuzzyQuery",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Boolean]),__metadata("design:returntype",Promise)],eme.prototype,"handleToggle",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"handleEdit",null),__decorate$1([autobind$1,__metadata("design:type",Function),__metadata("design:paramtypes",[Object,Number]),__metadata("design:returntype",void 0)],eme.prototype,"renderOption",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-crud-filters-control",renderLabel:!1,wrap:!1})],eme),eme})(CRUDFiltersControl);var InputRangeValue=function(x_){var eme,$P=x_.classnames,tme=x_.minField,ame=tme===void 0?"min":tme,nme=x_.maxField,rme=nme===void 0?"max":nme,ime=x_.data,ome=x_.name,lme=x_.onChange,sme=x_.value,cme=x_.render,dme=x_.precision,ume="InputRangeValue",fme=(eme=ime==null?void 0:ime.joinValues)!==null&&eme!==void 0?eme:!0,pme=(ime==null?void 0:ime.delimiter)||",",hme=ime==null?void 0:ime.extraName,bme=reactExports.useCallback(function(vme){var gme,yme,_me;if(!vme)return gme={},gme[ame]=void 0,gme[rme]=void 0,gme;if(typeof vme=="string"){var $me=__read$3(vme.split(pme),2),Cme=$me[0],Sme=$me[1];return yme={},yme[ame]=Cme,yme[rme]=Sme,yme}else return Array.isArray(vme)?(_me={},_me[ame]=vme[0],_me[rme]=vme[1],_me):vme},[ame,rme,pme,sme,fme,hme]),mme=reactExports.useCallback(function(vme,gme){var yme,_me=vme;vme[ame]==null||vme[rme]==null||(hme?_me=[vme[ame],vme[rme]]:fme?_me=[vme[ame],vme[rme]].join(pme||","):_me=(yme={},yme[ame]=vme[ame],yme[rme]=vme[rme],yme),lme==null||lme(_me))},[ume,ame,rme,pme,fme,hme,sme]);return jsx(Fragment,{children:cme("input-range-value-control",{type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",formLazyChange:!0,preventEnterSubmit:!0,submitOnChange:!0,body:[{label:!1,type:"input-group",name:ume,className:$P("ae-InputRangeValue-input-group"),body:[{type:"input-number",validations:"isNumeric",name:ame,precision:dme,value:0},{type:"html",html:"-",className:$P("ae-InputRangeValue-input-group-delimiter")},{type:"input-number",validations:"isNumeric",name:rme,precision:dme,value:100}]}]},{data:ome?bme(ime[ome]):{},onSubmit:mme})})};InputRangeValue.defaultProps={minField:"min",maxField:"max"};(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.render=function(){return jsx(InputRangeValue,{...__assign$3({},this.props)})},eme=__decorate$1([FormItem({type:"ae-input-range-value"})],eme),eme})(React__default.Component);var FunctionEditorControl=function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme.prototype.onChange=function($P){var tme,ame;$P===void 0&&($P=""),(ame=(tme=this.props).onChange)===null||ame===void 0||ame.call(tme,$P)},eme.prototype.genTooltipProps=function($P,tme){var ame=this.props.render;return __assign$3(__assign$3(__assign$3({tooltipTheme:"light",trigger:"hover",rootClose:!0,placement:"top",tooltipClassName:"ae-FunctionEditorControl-desc-tooltip"},typeof $P=="string"?{content:$P}:{content:" ",children:function(){return React__default.isValidElement($P)?$P:ame("content",$P)}}),this.props.tooltipProps||{}),tme||{})},eme.prototype.render=function(){var $P=this,tme=this.props,ame=tme.render,nme=tme.params,rme=nme===void 0?[]:nme,ime=tme.allowFullscreen,ome=tme.value,lme=tme.placeholder;tme.desc;var sme=tme.mergeParams,cme=typeof sme=="function"?sme(rme):rme;return React__default.createElement(React__default.Fragment,null,ame("api-function-editor-control-editor/0",{type:"container",className:"ae-FunctionEditorControl-func-header",body:__spreadArray(__spreadArray(['<span class="mtk6">function&nbsp;</span>','<span class="mtk1 bracket-highlighting-0">(</span>'],__read$3(cme.map(function(dme,ume){var fme=dme.label,pme=dme.tip;return __spreadArray([__assign$3({type:"button",level:"link",label:fme,className:"ae-FunctionEditorControl-func-arg"},pme?{tooltip:$P.genTooltipProps(pme)}:{})],__read$3(ume===cme.length-1?[]:['<span class="mtk1">,&nbsp;</span>']),!1)}).flat()),!1),['<span class="mtk1 bracket-highlighting-0">)&nbsp;{</span>'],!1)}),ame("api-function-editor-control-editor/1",{label:"",name:"__whatever_name_adpator",placeholder:lme||"",mode:"normal",type:"js-editor",className:"ae-FunctionEditorControl-func-editor",allowFullscreen:ime},{value:ome,onChange:this.onChange}),ame("api-function-editor-control-editor/2",{type:"container",body:'<span class="mtk1 bracket-highlighting-0">}</span>',className:"ae-FunctionEditorControl-func-footer"}))},eme.defaultProps={params:[]},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"onChange",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-functionEditorControl",renderLabel:!1})],eme),eme})(FunctionEditorControl);var ListItemControl=function(x_){__extends$2(eme,x_);function eme($P){var tme=x_.call(this,$P)||this;return tme.internalProps=["checked","editing"],tme.state={items:tme.transformOptions($P),labelField:$P.data.labelField||"title",valueField:$P.data.valueField},tme}return eme.prototype.componentWillReceiveProps=function($P){var tme=get$6($P,"items")?this.transformOptions($P):[];JSON.stringify(this.state.items.map(function(ame){return __assign$3(__assign$3({},ame),{editing:void 0})}))!==JSON.stringify(tme)&&this.setState({items:tme})},eme.prototype.transformOptionValue=function($P){return typeof $P>"u"||$P===null?"":typeof $P=="string"?$P:JSON.stringify($P)},eme.prototype.transformOptions=function($P){$P.data;var tme=$P.value;return Array.isArray(tme)?tme.map(function(ame){return __assign$3(__assign$3(__assign$3({},ame),ame.hidden!==void 0?{hidden:ame.hidden}:{}),ame.hiddenOn!==void 0?{hiddenOn:ame.hiddenOn}:{})}):[]},eme.prototype.onChange=function(){var $P=this.props.onChange;$P(this.state.items)},eme.prototype.targetRef=function($P){this.target=$P?reactDomExports.findDOMNode($P):null},eme.prototype.dragRef=function($P){!this.drag&&$P?this.initDragging():this.drag&&!$P&&this.destroyDragging(),this.drag=$P},eme.prototype.initDragging=function(){var $P=this,tme=reactDomExports.findDOMNode(this);this.sortable=new Sortable(tme.querySelector(".ae-OptionControl-content"),{group:"OptionControlGroup",animation:150,handle:".ae-OptionControlItem-dragBar",ghostClass:"ae-OptionControlItem--dragging",onEnd:function(ame){if(ame.newIndex!==ame.oldIndex){var nme=ame.to;ame.oldIndex<nme.childNodes.length-1?nme.insertBefore(ame.item,nme.childNodes[ame.oldIndex>ame.newIndex?ame.oldIndex+1:ame.oldIndex]):nme.appendChild(ame.item);var rme=$P.state.items.concat();rme[ame.oldIndex]=rme.splice(ame.newIndex,1,rme[ame.oldIndex])[0],$P.setState({items:rme},function(){return $P.onChange()})}}})},eme.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},eme.prototype.handleDelete=function($P){var tme=this,ame=this.state.items.concat(),nme=this.props.minLength;if(nme>0&&ame.length<=nme){toast.warning("列表项数目不能少于".concat(nme));return}ame.splice($P,1),this.setState({items:ame},function(){return tme.onChange()})},eme.prototype.toggleEdit=function($P){var tme=this.state.items;tme[$P].editing=!tme[$P].editing,this.setState({items:tme})},eme.prototype.editItem=function($P,tme){var ame=this,nme=this.state.items.concat();nme[tme]&&(nme[tme]=$P),this.setState({items:nme},function(){return ame.onChange()})},eme.prototype.handleEditLabel=function($P,tme){var ame,nme=this,rme=this.state.items.concat();rme.splice($P,1,__assign$3(__assign$3({},rme[$P]),(ame={},ame[this.state.labelField]=tme,ame))),this.setState({items:rme},function(){return nme.onChange()})},eme.prototype.handleAdd=function(){var $P,tme=this,ame=this.props.scaffold,nme=this.state.labelField,rme=this.state.items.slice();rme.push(ame||($P={},$P[nme]=i18n("97d43b5b163c9299f70b76d12541828c"),$P.body={},$P)),this.setState({items:rme},function(){tme.onChange()})},eme.prototype.handleValueChange=function($P,tme){var ame=this,nme=this.state.items.concat();nme[$P].value=tme,this.setState({items:nme},function(){return ame.onChange()})},eme.prototype.renderHeader=function(){var $P,tme=this.props,ame=tme.render,nme=tme.label,rme=tme.labelRemark,ime=tme.useMobileUI,ome=tme.env,lme=tme.popOverContainer,sme=($P=ome==null?void 0:ome.theme)===null||$P===void 0?void 0:$P.classPrefix;return React__default.createElement("header",{className:"ae-OptionControl-header"},React__default.createElement("label",{className:cx$1("".concat(sme,"Form-label"))},nme||"",rme?ame("label-remark",{type:"remark",icon:rme.icon||"warning-mark",tooltip:rme,className:cx$1("Form-lableRemark",rme==null?void 0:rme.className),useMobileUI:ime,container:lme||ome.getModalContainer}):null))},eme.prototype.renderOption=function($P){var tme,ame=this,nme=$P.index,rme=$P.editing,ime=this.props,ome=ime.render,lme=ime.data,sme=ime.items,cme=sme===void 0?[]:sme,dme=this.transformOptionValue($P[this.state.labelField]),ume=rme?React__default.createElement("div",{className:"ae-OptionControlItem-extendMore"},ome("item",{type:"form",title:null,className:"ae-ExtendMore right mb-2 border-none",wrapWithPanel:!1,labelAlign:"left",horizontal:{left:4,right:8},body:__spreadArray([{type:"button",className:"ae-OptionControlItem-closeBtn",label:"×",level:"link",onClick:function(){return ame.toggleEdit(nme)}}],__read$3(cme),!1),onChange:function(hme){ame.editItem(hme,nme)}},{data:createObject$1(lme,$P)})):null,fme=[{type:"button",className:"ae-OptionControlItem-action",label:i18n("95b351c86267f3aedf89520959bce689"),onClick:function(){return ame.toggleEdit(nme)}},{type:"button",className:"ae-OptionControlItem-action",label:i18n("2f4aaddde33c9b93c36fd2503f3d122b"),onClick:function(){return ame.handleDelete(nme)}}],pme=this.state.labelField;return React__default.createElement("li",{className:"ae-OptionControlItem",key:nme},React__default.createElement("div",{className:"ae-OptionControlItem-Main"},React__default.createElement("a",{className:"ae-OptionControlItem-dragBar"},React__default.createElement(Icon$1,{icon:"drag-bar",className:"icon"})),render$2({type:"input-text",name:pme,className:"ae-OptionControlItem-input",value:dme,placeholder:i18n("c887c83f280bd63012d32179ff5273ed"),clearable:!1,onChange:function(hme){ame.handleEditLabel(nme,hme)}},{data:(tme={},tme[pme]=dme,tme)}),ome("dropdown",{type:"dropdown-button",className:"ae-OptionControlItem-dropdown",btnClassName:"px-2",icon:"fa fa-ellipsis-h",hideCaret:!0,closeOnClick:!0,align:"right",menuClassName:"ae-OptionControlItem-ulmenu",buttons:fme},{popOverContainer:null})),ume)},eme.prototype.render=function(){var $P=this,tme=this.state.items,ame=this.props,nme=ame.className,rme=ame.addTip,ime=ame.placeholder;return React__default.createElement("div",{className:cx$1("ae-OptionControl",nme)},this.renderHeader(),React__default.createElement("div",{className:"ae-OptionControl-wrapper"},Array.isArray(tme)&&tme.length?React__default.createElement("ul",{className:"ae-OptionControl-content",ref:this.dragRef},tme.map(function(ome,lme){return $P.renderOption(__assign$3(__assign$3({},ome),{index:lme}))})):React__default.createElement("div",{className:"ae-OptionControl-placeholder"},ime||i18n("01ceb3edde98440157f199c292011dfc")),React__default.createElement("div",{className:"ae-OptionControl-footer"},React__default.createElement(Button$1,{level:"enhance",onClick:this.handleAdd,ref:this.targetRef,className:"w-full"},rme||i18n("e8755fb1e985a5d26df0fce1f0b7b0f8")))))},__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"targetRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],eme.prototype,"dragRef",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[Number,String]),__metadata("design:returntype",void 0)],eme.prototype,"handleEditLabel",null),__decorate$1([autobind,__metadata("design:type",Function),__metadata("design:paramtypes",[]),__metadata("design:returntype",void 0)],eme.prototype,"handleAdd",null),eme}(React__default.Component);(function(x_){__extends$2(eme,x_);function eme(){return x_!==null&&x_.apply(this,arguments)||this}return eme=__decorate$1([FormItem({type:"ae-listItemControl",renderLabel:!1})],eme),eme})(ListItemControl);function AmisEditor({onChange:x_,preview:eme,defaultSchema:$P}){$P||($P={type:"page",regions:["body"]});const[tme,ame]=React__default.useState($P),{getSetting:nme}=useSetting(),rme=useHistory(),ime=cme=>{x_(cme)},lme={locale:{zh_CN:"zh-CN",en:"en-US"}[nme("locale")||"zh_CN"]||"zh-CN",location:rme.location},sme={enableAMISDebug:nme("show_development_tools"),fetcher:({url:cme,method:dme,data:ume})=>amisRequest(cme,dme,ume),updateLocation:(cme,dme)=>{dme||rme.push(cme)},jumpTo:cme=>{cme.startsWith("http")||cme.startsWith("https")?window.open(cme):rme.push(cme.startsWith("/")?cme:`/${cme}`)},copy:async cme=>{await clipboard(cme),staticMethods$1.success(lme.locale==="zh-CN"?"复制成功":"Copy success")},notify:(cme,dme,ume)=>{if(typeof dme!="string"&&(dme=ume==null?void 0:ume.body),!(dme!=null&&dme.length))return;msgHandler(dme,()=>staticMethods$1.open({content:dme,type:["info","success","error","warning","loading"].includes(cme)?cme:"info",duration:((ume==null?void 0:ume.timeout)||3e3)/1e3}))},isCurrentUrl:cme=>rme.location.pathname+rme.location.search===cme};return jsx("div",{className:"h-full",style:{"--colors-neutral-text-1":"#141414","--colors-neutral-fill-1":"#141414","--colors-neutral-line-1":"#141414","--colors-neutral-text-2":"#1f1f1f","--colors-neutral-fill-2":"#1f1f1f","--colors-neutral-line-2":"#1f1f1f","--colors-neutral-text-3":"#262626","--colors-neutral-fill-3":"#262626","--colors-neutral-line-3":"#262626","--colors-neutral-text-4":"#434343","--colors-neutral-fill-4":"#434343","--colors-neutral-line-4":"#434343","--colors-neutral-text-5":"#595959","--colors-neutral-fill-5":"#595959","--colors-neutral-line-5":"#595959","--colors-neutral-text-6":"#8c8c8c","--colors-neutral-fill-6":"#8c8c8c","--colors-neutral-line-6":"#8c8c8c","--colors-neutral-text-7":"#bfbfbf","--colors-neutral-fill-7":"#bfbfbf","--colors-neutral-line-7":"#bfbfbf","--colors-neutral-text-8":"#d9d9d9","--colors-neutral-fill-8":"#d9d9d9","--colors-neutral-line-8":"#d9d9d9","--colors-neutral-text-9":"#f0f0f0","--colors-neutral-fill-9":"#f0f0f0","--colors-neutral-line-9":"#f0f0f0","--colors-neutral-text-10":"#f5f5f5","--colors-neutral-fill-10":"#f5f5f5","--colors-neutral-line-10":"#f5f5f5","--colors-neutral-text-11":"#ffffff","--colors-neutral-fill-11":"#ffffff","--colors-neutral-line-11":"#ffffff","--Tabs-content-bg":"#ffffff"},children:jsx(Editor$1,{theme:"cxd",onChange:ime,value:tme,preview:eme,amisEnv:sme})})}const SchemaEditor=reactExports.forwardRef((x_,eme)=>{const{t:$P}=useLang(),[tme,ame]=React__default.useState(x_.static),[nme,rme]=React__default.useState(x_.value),ime={type:"button",label:$P("amis_editor.get_php_code"),level:"success",actionType:"ajax",api:{method:"post",url:"/dev_tools/editor_parse",data:{schema:nme}},feedback:{title:"PHP Schema",size:"lg",body:{type:"editor",language:"php",name:"schema"}}};return jsx("div",{className:"h-full "+x_.className,children:jsx(Card$3,{className:"h-full",title:$P("amis_editor.editor"),bodyStyle:{padding:0,height:"calc(100% - 55px)"},extra:jsxs(Space,{children:[jsx(AmisRender,{schema:ime}),!x_.static&&jsx(Button$1,{level:"primary",onClick:()=>ame(!tme),children:$P(tme?"amis_editor.edit":"amis_editor.preview")})]}),children:jsx("div",{className:"w-full h-full overflow-x-auto",children:jsx(AmisEditor,{onChange:ome=>{rme(ome),x_.onChange(ome)},preview:tme,defaultSchema:x_.value})})})})}),registerCustomComponents=()=>{Renderer({type:"custom-svg-icon",autoVar:!0})(SvgIcon),FormItem({type:"custom-wang-editor",autoVar:!0})(WangEditor),Renderer({type:"custom-watermark",autoVar:!0})(Watermark),FormItem({type:"custom-amis-editor",autoVar:!0})(SchemaEditor)},useSetup=x_=>{const[eme,$P]=useStorage("owl-lang","zh-CN"),tme=useRequest(fetchSettings,{manual:!0,retryCount:3,cacheKey:"app-settings",onBefore(){x_.dispatch({type:"update-userInfo",payload:{userLoading:!0}})},onSuccess(lme){x_.dispatch({type:"update-settings",payload:{settings:lme.data}}),localStorage.setItem(getCacheKey("locale"),lme.data.locale),$P(lme.data.locale=="zh_CN"?"zh-CN":"en-US"),dynamicAssetsHandler(lme.data.assets)},onFinally(){x_.dispatch({type:"update-inited",payload:{inited:!0}})}}),ame=useRequest(fetchUserInfo,{manual:!0,onSuccess(lme){x_.dispatch({type:"update-userInfo",payload:{userInfo:lme.data}})}}),nme=useRequest(fetchLogout,{manual:!0,onFinally(){Token().clear(),goToLoginPage()}}),rme=()=>{switch(eme){case"zh_CN":return zhCN;case"en":return enUS;default:return zhCN}},ime=()=>{registerGlobalFunction("logout",()=>nme.run()),registerGlobalFunction("getCacheKey",lme=>getCacheKey(lme))},ome=async()=>{var lme;clearMsgSign(),ime(),registerCustomComponents(),await tme.runAsync(),Token().value?((lme=(await ame.runAsync()).data)==null?void 0:lme.code)!=401&&await window.$owl.refreshRoutes():inLoginPage()||goToLoginPage(),appLoaded()};return useMount(()=>{ome().then()}),{getAntdLocale:rme}},store=createStore(store$3),Admin=()=>{const{getAntdLocale:x_}=useSetup(store),[eme,$P]=reactExports.useState(store.getState().antdToken);useTheme(store);const tme={antdToken:eme,setAntdToken:$P};return jsx(HashRouter,{children:jsx(Provider,{store,children:jsx(ConfigProvider,{wave:{disabled:!0},locale:x_(),theme:{...eme,algorithm:store.getState().settings.system_theme_setting.darkTheme?theme$1.darkAlgorithm:theme$1.defaultAlgorithm,cssVar:{key:"owl"}},children:jsx(reactActivationExports.AliveScope,{children:jsx(GlobalContext.Provider,{value:tme,children:jsxs(Switch$4,{children:[jsx(Route,{path:"/login",component:Login}),jsx(Route,{path:"/",component:Layout})]})})})})})})};ReactDOM.render(jsx(Admin,{}),document.getElementById("root"));export{withBadge as $,AmisRender as A,Button$3 as B,ConfigContext as C,Renderer as D,__awaiter as E,Fragment as F,__generator as G,Html$1 as H,Icon$3 as I,AsideNav$1 as J,filter$1 as K,Icon$1 as L,Layout$1$1 as M,_404 as N,Spinner$1 as O,autobind$1 as P,__metadata as Q,RefIcon$o as R,Space as S,ScopedContext as T,AppStore as U,isApiOutdated as V,envOverwrite as W,isEffectiveApi as X,replaceText as Y,Avatar$1 as Z,_extends$4C as _,RefIcon$n as a,difference$2 as a$,ButtonGroupControl$1 as a0,FormItem as a1,Breadcrumb$1$1 as a2,createObject$1 as a3,isMobile$2 as a4,isVisible as a5,isDisabled as a6,filterClassNameObject as a7,RootClose as a8,noop$9 as a9,findIndex$3 as aA,find$3 as aB,getExprProperties as aC,omit$1 as aD,EnhancedSelect as aE,isPlainObject$b as aF,getVariable as aG,__spreadArray as aH,__read$3 as aI,CRUDStore as aJ,isAlive as aK,getMatchedEventTargets as aL,isIntegerInRange as aM,evalExpression as aN,isArrayChildrenModified as aO,JSONTraverse$1 as aP,upperFirst$2 as aQ,PullRefresh$1 as aR,isEmpty$4 as aS,_baseIteratee as aT,pickBy_1 as aU,filterDate as aV,hooks as aW,normalizeDate$1 as aX,DatePicker$1 as aY,supportStatic as aZ,Pagination$1 as a_,Overlay as aa,PopOver$1 as ab,TooltipWrapper$1 as ac,setThemeClassName as ad,CustomStyle as ae,CollapseGroup$1 as af,cx$1 as ag,resolveEventData as ah,getPropValue as ai,memoize$4 as aj,parseQuery as ak,anyChanged$1 as al,isEqual$1 as am,isObjectShallowModified$1 as an,isObject$8 as ao,reactDomExports as ap,str2function as aq,createObjectFromChain as ar,pickBy$1 as as,qsparse as at,qsstringify as au,parsePrimitiveQueryString as av,filterTarget as aw,mapTree as ax,extendObject as ay,pick$3 as az,RefIcon$l as b,spliceTree as b$,Sortable$1 as b0,ucFirst as b1,buildStyle as b2,ListStore as b3,Checkbox$1$1 as b4,ReactDOM as b5,isString$8 as b6,getAugmentedNamespace as b7,moment$1 as b8,guid$1 as b9,numberFormatter as bA,Textarea$1 as bB,toFinite_1 as bC,toNumber_1 as bD,hasAbility as bE,columnsSplit as bF,flattenTreeWithLeafNodes as bG,formateCheckThemeCss as bH,themeable as bI,localeable as bJ,CityArea$1 as bK,Rating$1 as bL,toNumber$1 as bM,Switch$1 as bN,Radios$1 as bO,withRemoteConfig as bP,InputJSONSchema$1 as bQ,schemaEditorItemPlaceholder as bR,JSONSchemaEditor as bS,ThemedCity as bT,TransferDropDown$1 as bU,string2regExp as bV,Transfer$1 as bW,findTreeIndex as bX,getOptionValueBindField as bY,optionValueCompare$1 as bZ,getTree as b_,reaction as ba,FinalModal as bb,ModalStore as bc,resolveVariable as bd,FormItemWrap as be,debounce$6 as bf,Downshift$1 as bg,matchSorter as bh,OverflowTpl$1 as bi,Input as bj,highlight as bk,formatInputThemeCss as bl,OptionsControl as bm,setVariable as bn,uniq$1 as bo,compact$1 as bp,unionWith$1 as bq,isInteger$1 as br,filterTree as bs,ResultBox$1 as bt,PopUp$1 as bu,ListMenu$1 as bv,normalizeOptions$1 as bw,NumberInput$1 as bx,toFixed$1 as by,__values$1 as bz,classNames as c,Signature$1 as c$,findTree as c0,DateRangePicker$1 as c1,parseDuration as c2,FormulaPicker$1$1 as c3,Range$1 as c4,resizeSensor as c5,SearchBox$1 as c6,Tree as c7,value2array as c8,getTreeAncestors as c9,labelToString as cA,getTreeDepth as cB,flattenTree as cC,Cascader$1 as cD,renderTextByKeyword as cE,xor$1 as cF,getTreeParent as cG,TransferPicker$1 as cH,SimpleMap as cI,applyFilters as cJ,sortArray as cK,getRendererByName as cL,isExpression as cM,everyTree as cN,intersectionWith$1 as cO,keycode as cP,makeTranslator as cQ,getDefaultLocale as cR,evalJS as cS,BaseSelection as cT,TabsTransfer$1 as cU,Selection$1 as cV,TabsTransferPicker as cW,makeHorizontalDeeper$1 as cX,getWidthRate as cY,UserTabSelect$1 as cZ,UserSelect$1 as c_,uuidv4 as ca,buildApi as cb,isValidApi as cc,isObject$r as cd,isNumber$5 as ce,stripNumber as cf,forEach$3 as cg,isNumeric$1 as ch,ComboStore as ci,deleteVariable as cj,dataMapping as ck,ThemedTabs as cl,Tab$1 as cm,str2AsyncFunction as cn,cloneDeep$1 as co,destroy as cp,clone$3 as cq,evalExpressionWithConditionBuilderAsync as cr,ConditionBuilder as cs,merge$4 as ct,Dropzone as cu,DiffEditor as cv,_baseRest as cw,_baseFlatten as cx,_baseUniq as cy,isArrayLikeObject_1 as cz,useLang as d,resolveMappingObject as d$,VerificationCode as d0,ThemedImageThumb as d1,imagePlaceholder as d2,VirtualList as d3,bulkBindFunctions as d4,ServiceStore as d5,PaginationStore as d6,RENDERER_TRANSMISSION_OMIT_PROPS as d7,visibilityFilter as d8,mapValues$1 as d9,requireDefineProperty as dA,requireToPropertyKey as dB,redux as dC,requireClassCallCheck as dD,interopRequireDefaultExports as dE,propTypesExports as dF,classnamesExports as dG,requireToConsumableArray as dH,padArr as dI,detectPropValueChanged as dJ,insertStyle as dK,Menu$1 as dL,isUnfolded as dM,someTree as dN,num2str as dO,Drawer$1 as dP,createRendererEvent as dQ,runActions as dR,ENTERING as dS,ENTERED as dT,EXITING as dU,Transition as dV,EXITED as dW,AnchorNavSection as dX,ThemedAnchorNav as dY,StepStatus as dZ,Timeline$1$1 as d_,isNaN$2 as da,escapeHtml as db,asyncFilter as dc,StoreNode as dd,types as de,flow as df,withStore as dg,normalizeApi as dh,normalizeApiResponseData as di,Progress$1 as dj,assign$1 as dk,importLazyComponent as dl,Link$1 as dm,until as dn,tokenize as dp,Steps$1 as dq,SkipOperation as dr,themedLazyComponent as ds,findObjectsWithKey as dt,loadScript as du,DndContainer$1 as dv,extend$4 as dw,isEmpty$2 as dx,SparkLine$1 as dy,require_typeof as dz,useHistory as e,validations as e0,handleAction as e1,GridNav as e2,GridNavItem as e3,Tag$1 as e4,HeadCellDropDown$1 as e5,observer as e6,TableCell as e7,HocPopOver as e8,HocCopyable as e9,HocQuickEdit as ea,changedEffect as eb,Table$1$1 as ec,intersection$1 as ed,TableStore2 as ee,ColumnToggler$1 as ef,MultilineText$1 as eg,bulkRegisterFunctionDoc as eh,commonjsRequire as ei,SketchPicker as ej,GithubPicker as ek,uncontrollable as el,invariant$4 as em,warning as en,getGlobalOptions as eo,React__default as f,genStyleHooks as g,jsxs as h,Card$3 as i,jsx as j,Button$1 as k,AmisEditor as l,merge$5 as m,Spin as n,__vitePreload as o,getDefaultExportFromCjs as p,commonjsGlobal$1 as q,reactExports as r,__extends$2 as s,__rest$14 as t,unit$1 as u,isPureVariable as v,resolveVariableAndFilter as w,Alert2 as x,__assign$3 as y,__decorate$1 as z};
